feat(cli)!: add agent-first chat and session ask output modes
This commit is contained in:
+25
-1
@@ -12,6 +12,29 @@ CLI history before v0.3 is recorded in the project root
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Breaking
|
||||
- `chat` and `session ask` now distinguish JSON from NDJSON: the default
|
||||
`--format json` buffers a bounded answer-event projection into one
|
||||
`{ok:true,data:{events:[...]}}` envelope; use `--format ndjson` for the
|
||||
complete raw event stream.
|
||||
- JSON, text, and MCP chat/session output hide reasoning, tools, lifecycle
|
||||
frames, and references by default. `--reference` adds bounded `kb_id` /
|
||||
`chunk_id` / `parent_chunk_id` indexes; `--verbose` adds execution events.
|
||||
|
||||
### Added
|
||||
- `chat` / `session ask --reference` includes indexed citations, while
|
||||
`--verbose` includes reasoning, tools, and lifecycle events. MCP `chat` /
|
||||
`session_ask` expose the same controls through `reference` / `verbose` inputs.
|
||||
- Buffered chat/session errors include the auto-created `session_id` in
|
||||
`error.detail` so interrupted sessions remain recoverable.
|
||||
|
||||
### Changed
|
||||
- JSON, text, and MCP now share one event projector and filtering policy.
|
||||
- Projected references contain lookup indexes only; fetch full
|
||||
passages with `chunk view <chunk_id>` or `chunk view <parent_chunk_id>`.
|
||||
- NDJSON remains an unmodified SDK event trace, including reasoning and full
|
||||
reference payloads.
|
||||
|
||||
### Fixed
|
||||
- Streaming SDK calls are no longer cut off by the client's default 30-second
|
||||
timeout (explicit `WithTimeout` values remain honored), and SSE data lines
|
||||
@@ -20,7 +43,8 @@ CLI history before v0.3 is recorded in the project root
|
||||
even when the server leaves the HTTP connection open.
|
||||
- Agent accumulation now waits for `response_type=complete` instead of treating
|
||||
per-event `done:true` markers as completion of the whole run.
|
||||
- Reference `parent_chunk_id` / `sub_chunk_id` fields now survive SDK unmarshal.
|
||||
- Reference `knowledge_base_id`, `parent_chunk_id`, and `sub_chunk_id` fields
|
||||
now survive SDK unmarshal.
|
||||
|
||||
## [0.9.0] - 2026-06-10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user