Commit Graph

239 Commits

Author SHA1 Message Date
Andrew Phillips
cd6033ad3b feat: add default_options method to all meta plugins
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-19 13:36:59 -03:00
Andrew Phillips
c7a0e285e0 feat: add default outputs to meta plugins
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-19 13:35:49 -03:00
Andrew Phillips
a1a66c1920 fix: remove unused imports and fix settings default error
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-19 13:33:10 -03:00
Andrew Phillips
2b79c6380f refactor: split configure into configure_options and configure_outputs methods
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-19 13:17:27 -03:00
Andrew Phillips
38cbf06579 refactor: replace get_* and set_* methods with direct field access
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-19 13:15:48 -03:00
Andrew Phillips
58ecbd63cf refactor: update meta plugin to use output mappings
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-19 12:57:06 -03:00
Andrew Phillips
1659bf20d4 fix: handle buffer capacity check correctly 2025-08-19 12:56:45 -03:00
Andrew Phillips
ff5d233509 refactor: improve buffer handling logic and comments
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 20:54:42 -03:00
Andrew Phillips
cec6081218 fix: remove deprecated max_buffer option support 2025-08-18 20:54:40 -03:00
Andrew Phillips
d19ef19a5b feat: implement buffer size limit and early metadata storage for binary plugin
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 20:39:52 -03:00
Andrew Phillips
4ba8ce74cb refactor: move binary plugin to its own module
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 20:30:33 -03:00
Andrew Phillips
40637c8881 feat: add binary meta plugin implementation 2025-08-18 20:30:29 -03:00
Andrew Phillips
d96804bdfb refactor: remove connection storage from plugin structs and pass as argument
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 15:52:27 -03:00
Andrew Phillips
2a16edcbe7 fix: remove unused magic_file metadata outputs and fix binary detection timing
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 11:08:48 -03:00
Andrew Phillips
7f28129c00 feat: add central metadata output handler
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 10:51:58 -03:00
Andrew Phillips
ecd3e316c5 fix: correct type mismatch in max_buffer_size handling
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 10:09:45 -03:00
Andrew Phillips
592c277735 feat: add support for meta plugin options and outputs
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 10:07:51 -03:00
Andrew Phillips
15774d377d fix: remove unused digest field and mutable process
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 09:54:02 -03:00
Andrew Phillips
18a3f1b36e feat: add sha256 hash metadata storage in finalize
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 09:20:07 -03:00
Andrew Phillips
9e62356a30 feat: initialize cookie once and use set_flags for subsequent operations
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 09:16:40 -03:00
Andrew Phillips
e86fbda144 feat: rename magic meta fields to remove prefix 2025-08-18 09:16:37 -03:00
Andrew Phillips
1b6ff44312 fix: correct magic file type and mime encoding detection
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:50:01 -03:00
Andrew Phillips
1e4e039672 feat: add combined mime info support and remove metadata filtering
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:47:04 -03:00
Andrew Phillips
ffd5fb12cc fix: initialize magic cookie with mime type and encoding flags
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:44:21 -03:00
Andrew Phillips
8de8368df7 feat: implement program plugin metadata saving
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:40:36 -03:00
Andrew Phillips
c89fe9bef3 fix: add std::io imports and update finalize return type
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:35:01 -03:00
Andrew Phillips
cd63dda271 fix: update trait and remove unused io imports
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:31:47 -03:00
Andrew Phillips
22206de5ab feat: update finalize to return Result<()> and simplify save mode
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:12:49 -03:00
Andrew Phillips
f11070dc60 feat: implement buffer-based storage for magic file metadata
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:08:27 -03:00
Andrew Phillips
2424c543d6 fix: implement debug for meta plugin program and remove unused imports
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:03:55 -03:00
Andrew Phillips
3dac2d3073 fix: remove deprecated create method from MetaPlugin implementations
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:03:06 -03:00
Andrew Phillips
2b6f068784 refactor: remove unused create() method from MetaPlugin trait
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-18 08:00:24 -03:00
Andrew Phillips
c38ae0d4a9 feat: add max_buffer_size to MagicFileMetaPlugin and refactor MetaPluginProgram
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-18 07:56:56 -03:00
Andrew Phillips
133538881f feat: combine magic plugins into single magic_file plugin
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-17 17:36:46 -03:00
Andrew Phillips
51453db3c3 fix: specify type parameter for cookie.load
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-16 14:53:11 -03:00
Andrew Phillips
7615d6af88 fix: update magic cookie flags and default value
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-16 14:52:35 -03:00
Andrew Phillips
151ec151db feat: add magic meta plugin implementation
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-16 14:51:30 -03:00
Andrew Phillips
28959a357c feat: add magic plugin and update debug log format 2025-08-16 14:51:26 -03:00
Andrew Phillips
31a653449c fix: prevent duplicate metadata storage by returning empty strings from finalize
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-16 14:37:13 -03:00
Andrew Phillips
6b2cb49881 fix: add is_saved tracking to prevent duplicate metadata saves
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-08-16 14:32:40 -03:00
Andrew Phillips
4f05dbd61f fix: prevent duplicate metadata saves and fix binary plugin detection
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:29:31 -03:00
Andrew Phillips
c23edf0fb8 refactor: rename saved_during_io to is_saved
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:26:32 -03:00
Andrew Phillips
9dea6dec4e refactor: remove redundant save_meta implementation from BinaryMetaPlugin
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:26:02 -03:00
Andrew Phillips
e8c9eda1fa fix: add missing log::debug import
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:24:35 -03:00
Andrew Phillips
cfee32ff35 fix: remove saved_during_io from trait and add to BinaryMetaPlugin
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:24:06 -03:00
Andrew Phillips
389bb59531 feat: add early binary detection and prevent duplicate metadata saving
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:23:28 -03:00
Andrew Phillips
b4c9fd47c2 fix: change self reference to mutable in save_meta and remove unused imports
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:06:04 -03:00
Andrew Phillips
a7977139a7 refactor: move meta plugin finalization logic into meta plugins
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-16 14:04:19 -03:00
Andrew Phillips
6e4b690bd8 feat: use humansize crate and which crate for program lookup
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-12 16:23:11 -03:00
Andrew Phillips
d0eecc94f2 perf: Cache program lookups to reduce filesystem operations
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
2025-08-12 16:18:07 -03:00