Commit Graph

456 Commits

Author SHA1 Message Date
Andrew Phillips (aider)
970d69af70 chore: remove unused imports 2025-05-22 14:02:24 -03:00
Andrew Phillips (aider)
a68d75351f refactor: remove magic function and related code 2025-05-22 13:57:00 -03:00
Andrew Phillips (aider)
f2d210c4d1 fix: add missing is_default field to MetaPluginProgram 2025-05-22 13:46:42 -03:00
Andrew Phillips (aider)
a0fb0dec8a feat: add is_default method to MetaPlugin and MetaPluginProgram 2025-05-22 13:42:41 -03:00
Andrew Phillips (aider)
e2cb180a22 fix: add missing meta_name argument to MetaPluginProgram::new 2025-05-22 13:32:52 -03:00
Andrew Phillips
232807d2cc feat: add meta_name method to MetaPlugin trait 2025-05-22 13:32:49 -03:00
Andrew Phillips (aider)
815a818b39 feat: add meta_name column to meta plugin table 2025-05-22 13:28:59 -03:00
Andrew Phillips (aider)
7a1f1699ff feat: add meta_name support to MetaPluginProgram 2025-05-22 13:26:23 -03:00
Andrew Phillips
25e41c46a9 refactor: remove unused MetaPluginType::None and related code 2025-05-22 13:21:10 -03:00
Andrew Phillips (aider)
08001aa2d0 chore: add meta_plugin module import 2025-05-22 13:10:00 -03:00
Andrew Phillips (aider)
923ed65d42 feat: add meta plugins table to status mode 2025-05-22 13:04:46 -03:00
Andrew Phillips (aider)
be82248129 refactor: rename MetaPluginType::File to FileMagic 2025-05-22 13:02:28 -03:00
Andrew Phillips (aider)
8686537e0b feat: add meta_plugins to ItemArgs 2025-05-22 12:51:39 -03:00
Andrew Phillips
3d94965c2e chore: remove unused common module 2025-05-22 10:02:41 -03:00
Andrew Phillips (aider)
9f2171ea45 fix: make stdin field in ProgramWriter public 2025-05-22 10:00:20 -03:00
Andrew Phillips (aider)
d6a25e8b77 refactor: rename common.rs to plugins.rs and update imports 2025-05-22 09:57:19 -03:00
Andrew Phillips (aider)
e1a5dbf0f1 refactor: move ProgramWriter to common.rs 2025-05-22 09:48:19 -03:00
Andrew Phillips (aider)
beef2e773e feat: add meta plugin with file and none implementations 2025-05-22 09:38:43 -03:00
Andrew Phillips
1fd5ec1988 feat: add meta plugin program 2025-05-22 09:38:41 -03:00
Andrew Phillips
91cceff3e8 refactor: remove digest type and value handling 2025-05-22 09:06:51 -03:00
Andrew Phillips
a8c363333c refactor: remove digest fields from db and item struct 2025-05-21 20:24:17 -03:00
Andrew Phillips (aider)
894a893536 docs: add comments to src/main.rs 2025-05-21 20:19:09 -03:00
Andrew Phillips (aider)
9af7af4687 docs: add README.org for Keep command-line utility 2025-05-16 14:32:24 -03:00
Andrew Phillips
5a6a8ee97b refactor: improve code formatting and readability in SQL and function calls 2025-05-14 22:50:35 -03:00
Andrew Phillips
dd8f828ed3 refactor: update function parameters to use references where appropriate 2025-05-14 22:09:23 -03:00
Andrew Phillips
d1edd20845 feat: extract digest and compression type handling into common command functions 2025-05-14 21:54:45 -03:00
Andrew Phillips (aider)
947ed55fb7 refactor: use params! macro for SQL query parameters 2025-05-14 21:22:28 -03:00
Andrew Phillips
4d2ff50992 refactor: use params! macro for consistent and safer query parameter passing 2025-05-14 21:20:09 -03:00
Andrew Phillips (aider)
2694000c9b feat: add get_item_meta_name function to retrieve specific meta by name 2025-05-14 17:32:55 -03:00
Andrew Phillips (aider)
075c571e53 fix: change return type to anyhow::Error to support ? operator 2025-05-14 17:22:22 -03:00
Andrew Phillips (aider)
0774e36184 fix: add missing imports and fix return type in store_item_digest_value 2025-05-14 17:20:28 -03:00
Andrew Phillips (aider)
4ac2943683 refactor: update store_item_digest_value calls to use new argument types 2025-05-14 17:18:11 -03:00
Andrew Phillips (aider)
3c4938857f feat: update store_item_digest_value to take owned Item and String 2025-05-14 17:16:31 -03:00
Andrew Phillips (aider)
f049406858 feat: Update store_item_digest_value to use DigestType enum for digest type parameter 2025-05-14 17:14:19 -03:00
Andrew Phillips (aider)
72a8337f4e refactor: use store_item_digest_value in mode_update and mode_save 2025-05-14 17:12:18 -03:00
Andrew Phillips (aider)
75ac080591 feat: add store_item_digest_value function to common.rs 2025-05-14 17:09:18 -03:00
Andrew Phillips
5790aa6993 refactor: rename variable to clarify digest metadata purpose 2025-05-14 17:04:11 -03:00
Andrew Phillips (aider)
ac4660684d fix: clone moved values to resolve ownership issues 2025-05-14 16:32:04 -03:00
Andrew Phillips (aider)
477a03fbb7 feat: store digest in meta entry with get_digest_type_meta as name 2025-05-14 16:29:27 -03:00
Andrew Phillips (aider)
7353fbd9b4 feat: add get_digest_type_meta function to format digest type as lowercase string 2025-05-14 16:15:08 -03:00
Andrew Phillips
bbdfe19836 feat: add compression and digest support with database schema updates 2025-05-14 09:45:51 -03:00
Andrew Phillips (aider)
9b61a37036 refactor: Rename env variable to keep_cmd in tests 2025-05-14 09:45:04 -03:00
Andrew Phillips
f089c8002d refactor: rename env variable to keep_cmd for clarity 2025-05-14 09:44:51 -03:00
Andrew Phillips
412f5d74d0 test: add command and status to assertion messages 2025-05-14 09:34:52 -03:00
Andrew Phillips
7af9147abd build: update Rust edition to 2024 and add package metadata 2025-05-14 09:20:59 -03:00
Andrew Phillips (aider)
dc76b6af52 refactor: use compression_engine.open for file handling in update mode 2025-05-13 19:02:51 -03:00
Andrew Phillips (aider)
51acd0933f fix: Implement digest calculation loop and update item in DB 2025-05-13 19:01:52 -03:00
Andrew Phillips
932b32edef refactor: move compression engine init and reorganize digest recalculation logic 2025-05-13 19:01:44 -03:00
Andrew Phillips (aider)
ce44134ab7 refactor: replace if let with match for digest type handling 2025-05-13 18:45:13 -03:00
Andrew Phillips (aider)
6d2640650c fix: remove unused imports and fix as_ref usage 2025-05-13 18:44:03 -03:00