cut 으로 제거된 기능이 diff 밖 contract surface 에 남긴 잔재 정리: - integrations/claude-code/kebab/SKILL.md: 제거된 --session/session_id 안내, answer.v1 의 conversation_id/turn_index 필드 목록, rag-v2 기본 pin, kebab tui 언급 제거. 기본 템플릿 rag-v4(대체 rag-v3)로 갱신. - docs/mcp-usage.md: ask 입력 스키마의 session_id, 'Session 관리(multi-turn)' 섹션 전체(chat_sessions/chat_turns 포함), 예시의 conversation_id/turn_index 제거. - docs/wire-schema/v1/answer.schema.json + answer_event.schema.json: Answer 가 더는 방출 않는 conversation_id/turn_index 속성 제거(producer/doc 괴리 해소). - schema.rs + wire.rs: capabilities.rag_multi_turn true→false(search_cache 와 동일 처리; frozen v1 맵이라 키는 유지, 값만 flip). - CLAUDE.md: 24→22 crates(tui+candle crate 제거 반영).
17 lines
1.2 KiB
JSON
17 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://kb.local/wire/v1/answer_event.schema.json",
|
|
"title": "AnswerEvent v1",
|
|
"description": "Streaming event emitted by `kebab ask --stream`. One event per line on stderr (ndjson). Discriminated by `kind`. The success path closes with `final`; refusal paths (score_gate / no_chunks) emit only `retrieval_done` and rely on the stdout `answer.v1` line for the canonical signal. Cancel paths (BrokenPipe) may emit any prefix and stop. Final stdout line is always `answer.v1` for backwards compat (see ingest_progress.v1 precedent).",
|
|
"type": "object",
|
|
"required": ["schema_version", "kind", "ts"],
|
|
"properties": {
|
|
"schema_version": { "const": "answer_event.v1" },
|
|
"kind": { "enum": ["retrieval_done", "token", "final"] },
|
|
"ts": { "type": "string", "format": "date-time" },
|
|
"hits": { "type": "array", "description": "retrieval_done: search_hit.v1[]" },
|
|
"delta": { "type": "string", "description": "token: incremental string chunk" },
|
|
"answer": { "type": "object", "description": "final: complete answer.v1 payload" }
|
|
}
|
|
}
|