go/pkg/cli
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
..
ansi.go feat(cli): add NO_COLOR environment variable support (#98) 2026-02-01 16:40:03 +00:00
ansi_test.go feat(cli): add NO_COLOR environment variable support (#98) 2026-02-01 16:40:03 +00:00
app.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
check.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
check_test.go fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
command.go feat(plugin): add Claude Code plugin for host-uk framework 2026-01-31 10:27:04 +00:00
commands.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
daemon.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
daemon_test.go Migrate pkg/repos to Medium abstraction (#291) 2026-02-04 18:03:54 +00:00
errors.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
glyph.go feat(cli): add NO_COLOR environment variable support (#98) 2026-02-01 16:40:03 +00:00
glyph_maps.go feat(cli): add glyph system 2026-01-31 23:54:01 +00:00
glyph_test.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
i18n.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
layout.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
layout_test.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
log.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
output.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
output_test.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
prompt.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
render.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
runtime.go Add streaming API to pkg/io and optimize agentic context gathering (#313) 2026-02-05 11:00:49 +00:00
strings.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
styles.go Add logging for security events (authentication, access) (#320) 2026-02-05 10:26:48 +00:00
utils.go Add logging for security events (authentication, access) (#320) 2026-02-05 10:26:48 +00:00