🏗️ refactor(fb-27): apply round 1 review nits
- schema.rs: extract `SCHEMA_V1_ID` const + re-export via kebab-app::lib.rs. wire.rs::wire_schema 의 2 literal 도 import 해서 single source of truth. - schema.rs::collect_models: parser_version 가 markdown 만 surface 함을 주석으로 명시 (PDF/image extractor 의 자체 version 은 SchemaV1.models 가 multi-medium map 으로 진화 시 surface). - main.rs::print_schema_text: 헤더 줄 끝의 `\n` 제거 + `println!()` 추가 — 다른 section 들과 패턴 일관. - error_classify.rs::llm_unreachable_classifies: timeout 50ms → 500ms (10x headroom) + 접근 방식 + 한계 주석 추가. - HOTFIXES: open_existing 의 RW flag + 주석-only enforcement 갭을 Known-limitation 에 명시. Round 1 review summary: #104 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -144,12 +144,12 @@ pub fn wire_schema(s: &kebab_app::SchemaV1) -> Value {
|
||||
if let Value::Object(ref map) = v {
|
||||
if matches!(
|
||||
map.get("schema_version"),
|
||||
Some(Value::String(s)) if s == "schema.v1"
|
||||
Some(Value::String(s)) if s == kebab_app::SCHEMA_V1_ID
|
||||
) {
|
||||
return v;
|
||||
}
|
||||
}
|
||||
tag_object(v, "schema.v1")
|
||||
tag_object(v, kebab_app::SCHEMA_V1_ID)
|
||||
}
|
||||
|
||||
/// Wrap an [`crate::error_classify::ErrorV1`] as `error.v1`.
|
||||
|
||||
Reference in New Issue
Block a user