Commit Graph

377 Commits

Author SHA1 Message Date
Andrew Phillips
b5b101ee35 fix: add ConnectInfo extension and error logging to server handlers
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 21:39:16 -03:00
Andrew Phillips
91af08b48c fix: enable trace feature in tower-http and derive Debug for TagsQuery
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 21:36:26 -03:00
Andrew Phillips
badcd66217 feat: add request logging and source address tracking to server
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 21:35:50 -03:00
Andrew Phillips
4be4831334 fix: remove unused imports and fix undefined behavior from mem::zeroed
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 21:30:16 -03:00
Andrew Phillips
64789ef48b feat: add REST HTTP server mode with OpenAPI documentation and Swagger UI
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 21:27:13 -03:00
Andrew Phillips
380eb59094 feat: add REST HTTP server mode with OpenAPI documentation
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 20:42:34 -03:00
Andrew Phillips
7c1c5bd9c9 fix: resolve compilation errors by adding missing ErrorKind import and removing unused imports
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-10 11:34:44 -03:00
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
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
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
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
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
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
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
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
ca6a1a455c fix: ignore KEEP_META_PLUGINS when searching for metadata environment variables
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:17:49 -03:00
Andrew Phillips
6452eee203 fix: clone meta_name before moving it to store_item_meta_value
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:12:44 -03:00
Andrew Phillips
3de832d886 feat: add hostname and full_hostname meta plugins with error handling
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:11:46 -03:00
Andrew Phillips
ed22df4b98 fix: add missing IntoEnumIterator import for MetaPluginType::iter() usage
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:01:16 -03:00
Andrew Phillips
14c2c347cb fix: lookup meta plugins by meta name instead of type name
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 12:00:29 -03:00
Andrew Phillips
3bbce80d2d fix: support comma-separated meta plugin types and reorganize read time/rate plugins
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:57:22 -03:00
Andrew Phillips
00ee90a6d9 feat: add enabled column to meta plugins status table
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:49:48 -03:00
Andrew Phillips
05af560399 refactor: remove default column from meta plugin status table and simplify default logic
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:46:02 -03:00
Andrew Phillips
632184221b fix: correctly display meta plugin implementation status in status mode
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:42:37 -03:00
Andrew Phillips
ee6869a94c fix: make meta_plugin mutable to call meta_name() method
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:19:12 -03:00
Andrew Phillips
0c29102369 fix: correctly detect internal meta plugins as supported in status display
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:17:53 -03:00
Andrew Phillips
d0ac4cf637 fix: reorder variable declarations to fix scope issue with meta_plugin_types
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
2025-07-29 11:05:25 -03:00