diff --git a/crates/kebab-app/src/schema.rs b/crates/kebab-app/src/schema.rs index daab650..d99b1a6 100644 --- a/crates/kebab-app/src/schema.rs +++ b/crates/kebab-app/src/schema.rs @@ -142,10 +142,10 @@ fn capabilities_snapshot() -> Capabilities { rag_multi_turn: true, search_cache: true, incremental_ingest: true, - streaming_ask: false, + streaming_ask: true, http_daemon: false, mcp_server: true, - single_file_ingest: false, + single_file_ingest: true, bulk_search: true, } } @@ -268,3 +268,24 @@ mod tests_stats_ext { assert_eq!(s.stats.stale_doc_count, 0); } } + +#[cfg(test)] +mod tests_capabilities { + use super::*; + + #[test] + fn capabilities_streaming_ask_matches_cli_surface() { + // Bug #9: kebab ask --stream 가 answer_event.v1 ndjson 191 event 정상 emit → + // capabilities.streaming_ask 가 true 여야 함. + let caps = capabilities_snapshot(); + assert!(caps.streaming_ask, "streaming_ask must be true (Bug #9)"); + } + + #[test] + fn capabilities_single_file_ingest_matches_cli_surface() { + // Bug #9: kebab ingest-file + kebab ingest-stdin --title 양쪽 모두 + // ingest_report.v1 정상 emit → capabilities.single_file_ingest 가 true 여야 함. + let caps = capabilities_snapshot(); + assert!(caps.single_file_ingest, "single_file_ingest must be true (Bug #9)"); + } +}