Commit Graph

803 Commits

Author SHA1 Message Date
Andrew Phillips
0d1ae9ff12 feat: add --output-format option for json/yaml support in info/status/list modes
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 11:21:04 -03:00
Andrew Phillips
9f93d6965f feat: change size formatting to k8s style (e.g. 3Gi, 4Ti)
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 11:13:10 -03:00
Andrew Phillips
e390139425 refactor: Remove transaction from save to allow partial saves on failure
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 00:34:55 -03:00
Andrew Phillips
a5bc9373a9 fix: remove unused imports in common.rs to eliminate build warnings
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 00:27:44 -03:00
Andrew Phillips
0f06d31423 fix: remove unused imports, unnecessary mutable variables, and dead code
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 00:27:02 -03:00
Andrew Phillips
7210aa08d0 fix: correct variable name and mutable transaction handling in save and update modes
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 00:26:18 -03:00
Andrew Phillips
d4370563c3 fix: correct mutable reference handling and remove unused variables
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:25:22 -03:00
Andrew Phillips
0e68e5ff03 fix: resolve mutable borrowing issues with Transaction and clean up warnings
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:24:42 -03:00
Andrew Phillips
469e3640b8 fix: resolve compilation errors by fixing mutable references and removing unused imports
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:23:58 -03:00
Andrew Phillips
cacf843da7 fix: resolve missing imports and incorrect mutable references in save and update modes
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:23:34 -03:00
Andrew Phillips
38f2caaf1b fix: resolve compilation errors by adding missing imports and fixing type mismatches
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:22:12 -03:00
Andrew Phillips
e1c0c81445 fix: resolve compilation errors by adding missing imports and fixing Result types
- Import `anyhow`, `clap::Command`, `log::debug`, and I/O traits
- Fix all `Result` return types to include error type `anyhow::Error`
- Replace `anyhow::anyhow!` with `anyhow!` macro calls
- Fix transaction handling in `mode_save`
- Add missing trait imports for I/O operations and string parsing

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:19:00 -03:00
Andrew Phillips
58f047ba6d fix: improve error messages and refactor large functions in save/diff modes
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-10 00:00:33 -03:00
Andrew Phillips
498f3e0b9d chore: mark completed items in PLAN.md as DONE
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-09 23:56:12 -03:00
Andrew Phillips
cb408bafa1 fix: use database transactions for atomic operations in save and update modes
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-09 23:33:53 -03:00
Andrew Phillips
a3eb9e7056 fix: address critical memory safety, error handling, concurrency and security issues
This commit fixes several critical issues across the codebase:
1. Memory safety & resource leaks: Added proper cleanup for compression engine processes using RAII patterns
2. Error handling: Replaced unsafe unwrap() calls with proper error propagation using ok_or_else()?
3. Concurrency issues: Improved diff mode thread safety with proper error handling and RAII guards
4. Security concerns: Added validation for item IDs to prevent path traversal vulnerabilities
5. Database design: Wrapped database operations in transactions for atomicity in save/update modes

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-09 23:33:06 -03:00
Andrew Phillips
2be895fea5 chore: remove invalid race condition bug risk #11 from PLAN.md
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-09 23:24:26 -03:00
Andrew Phillips
6804429c9f docs: update PLAN.md with refined issue descriptions and solutions
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-09 23:22:13 -03:00
Andrew Phillips
f88897000f docs: add comprehensive code quality issues and fixes plan
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-09 23:10:21 -03:00
Andrew Phillips
84fdffd97d docs: add project plan documentation 2025-08-09 23:10:20 -03:00
Andrew Phillips
096b907a23 feat: add indexes on tags.name and metas.name for improved query performance
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 17:12:23 -03:00
Andrew Phillips
46a1e8621f fix: resolve test failures in save_item, get_item, and info_item tests
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 15:42:06 -03:00
Andrew Phillips
ebada59764 fix: add missing import for FORMAT_NO_BORDER_LINE_SEPARATOR constant
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 15:40:39 -03:00
Andrew Phillips
983c9f20fa fix: remove unused imports and fix test stdin handling
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 15:39:54 -03:00
Andrew Phillips
ada0805671 fix: resolve Alignment import error in list mode and remove unused imports
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 15:38:22 -03:00
Andrew Phillips
3008f3fec0 fix: resolve compilation errors and warnings in keep crate
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 15:37:43 -03:00
Andrew Phillips
8814d02264 test: update tests to use keep binary directly instead of cargo run
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 15:01:44 -03:00
Andrew Phillips
52618586d1 chore: remove unused dependencies and dead code
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:53:07 -03:00
Andrew Phillips
6b34f2e226 fix: remove duplicate TtyMetaPlugin implementation
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:46:57 -03:00
Andrew Phillips
ebefa22074 chore: remove tty plugin and related code
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:46:36 -03:00
Andrew Phillips
b6b810e232 feat: use isatty::tty_path for TTY detection in meta plugin
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:43:50 -03:00
Andrew Phillips
f58a98ddae refactor: improve TTY detection using /proc/self/stat and device number parsing
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:40:30 -03:00
Andrew Phillips
f20cecbcc7 fix: use tty command instead of reading /dev/tty link for TTY meta plugin
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:40:00 -03:00
Andrew Phillips
8a2468522a feat: add tty meta plugin to get current terminal device
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:38:09 -03:00
Andrew Phillips
291b6d9587 feat: implement batch queries for improved list performance
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:26:26 -03:00
Andrew Phillips
47349802d8 chore: update dependencies and remove unused basic meta plugin 2025-07-29 14:17:06 -03:00
Andrew Phillips
cae1cfcaf2 fix: resolve borrowing issue in meta plugin support check
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:11:01 -03:00
Andrew Phillips
13a2747a8d fix: warn and remove unsupported meta plugins in save mode
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:04:19 -03:00
Andrew Phillips
a8717f4b94 feat: warn when meta plugins are enabled but not supported
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 14:01:27 -03:00
Andrew Phillips
cd092ab3ea fix: remove unused import in status module
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:59:07 -03:00
Andrew Phillips
71a37063a4 refactor: remove unused default_meta_plugin_type function
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:58:11 -03:00
Andrew Phillips
f32f898784 refactor: Remove duplicated program info definitions in status mode
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:56:41 -03:00
Andrew Phillips
9615e684f0 refactor: use MetaPlugin.is_supported() to determine plugin status display
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:53:11 -03:00
Andrew Phillips
93046a220e refactor: remove META_PLUGIN_PROGRAMS and use get_meta_plugin() instead
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:48:25 -03:00
Andrew Phillips
c7007cd416 fix: add -b flag to file mime type detection 2025-07-29 13:48:23 -03:00
Andrew Phillips
ca8629a3ac refactor: reorganize meta plugins table to show Meta Name first and remove Type column
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:02:33 -03:00
Andrew Phillips
471fc1b98d fix: apply BRIGHT_BLACK style only to "<INTERNAL>" in status mode binary column
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 13:00:45 -03:00
Andrew Phillips
1e00c30543 fix: apply BRIGHT_BLACK style to <INTERNAL> in meta plugin table
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:59:13 -03:00
Andrew Phillips
8c820965e8 fix: correct file_mime and file_encoding meta plugin flags for compatibility
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:52:36 -03:00
Andrew Phillips
6bcabf4fb8 fix: use SHELL environment variable instead of user database for shell meta plugin
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:49:39 -03:00