cli/pkg/framework/core
Snider bfa5353205
Add streaming API to pkg/io and optimize agentic context gathering (#313)
* feat(io): add streaming API to Medium interface and optimize agentic context

- Added ReadStream and WriteStream to io.Medium interface.
- Implemented streaming methods in local and mock mediums.
- Updated pkg/agentic/context.go to use streaming I/O with LimitReader.
- Added 5000-byte truncation limit for all AI context file reads to reduce memory usage.
- Documented when to use streaming vs full-file APIs in io.Medium.

* feat(io): optimize streaming API and fix PR feedback

- Fixed resource leak in agentic context by using defer for closing file streams.
- Improved truncation logic in agentic context to handle multibyte characters correctly by checking byte length before string conversion.
- Added comprehensive documentation to ReadStream and WriteStream in local medium.
- Added unit tests for ReadStream and WriteStream in local medium.
- Applied formatting and fixed auto-merge CI configuration.

* feat(io): add streaming API and fix CI failures (syntax fix)

- Introduced ReadStream and WriteStream to io.Medium interface.
- Implemented streaming methods in local and mock mediums.
- Optimized agentic context with streaming reads and truncation logic.
- Fixed syntax error in local client tests by overwriting the file.
- Fixed auto-merge CI by adding checkout and repository context.
- Applied formatting fixes.
2026-02-05 11:00:49 +00:00
..
docs/site feat(framework): add core DI framework and improve dev commands 2026-01-30 09:02:16 +00:00
testdata feat(framework): add core DI framework and improve dev commands 2026-01-30 09:02:16 +00:00
core.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
core_extra_test.go refactor(framework): rename package from framework to core 2026-01-30 09:45:18 +00:00
core_lifecycle_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
core_test.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
e.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
e_test.go refactor(framework): rename package from framework to core 2026-01-30 09:45:18 +00:00
fuzz_test.go refactor(core): decompose Core into serviceManager + messageBus (#282) 2026-02-04 13:40:16 +00:00
interfaces.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
ipc_test.go Implement Background Goroutines for Long-Running Operations (#309) 2026-02-05 10:26:45 +00:00
message_bus.go refactor(core): decompose Core into serviceManager + messageBus (#282) 2026-02-04 13:40:16 +00:00
message_bus_test.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
query_test.go feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
runtime_pkg.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
runtime_pkg_extra_test.go refactor(framework): rename package from framework to core 2026-01-30 09:45:18 +00:00
runtime_pkg_test.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
service_manager.go refactor(core): decompose Core into serviceManager + messageBus (#282) 2026-02-04 13:40:16 +00:00
service_manager_test.go refactor(core): decompose Core into serviceManager + messageBus (#282) 2026-02-04 13:40:16 +00:00