desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:1
//! ZCode detection: bounded first-line read identifies model-io JSONL type=model_ioComment 2, line 2
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:2
//! with required sessionId; then select the format through [`super::versions`].Comment 3, line 3
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:3
//!Comment 4, line 4
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:4
//! Rules: architecture.md#unknown-version.Comment 5, line 5
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:5
//! - Non-JSON/non-model_io/missing sessionId: unknown format,Comment 6, line 6
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:6
//! reject rather than parse arbitrary unidentified files.Comment 7, line 7
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:7
//! - Registered request.headers["x-zcode-app-version"]: KnownVersion;Comment 8, line 8
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:8
//! unregistered, such as future 9.9.9, or missing: marked LatestFallback.Comment 9, line 19
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:19
/// Detect model-io and select the registered implementation.Comment 10, line 42
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:42
// Confirm model_io and sessionId; the version field may be absent.Comment 11, line 43
desktop/src-tauri/crates/core/src/adapters/zcode/detect.rs:43
// Missing version uses the latest built-in parser, without immediate rejection.