desktop/src-tauri/crates/core/src/adapters/omp/detect.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:1
//! omp detection reads at most four lines to identify a first-line title/session recordComment 2, line 2
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:2
//! and locate a session header within that window, then selects the implementation throughComment 3, line 3
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:3
//! the super::versions registry.Comment 4, line 4
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:4
//!Comment 5, line 5
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:5
//! Rules: architecture.md#unknown-version; preserve the four first-line detection outcomes.Comment 6, line 6
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:6
//! - Non-JSON/first type other than title/session: reject as unknown format.Comment 7, line 7
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:7
//! - Title without a session header in four lines: Pending, possibly an incomplete initial write.Comment 8, line 8
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:8
//! - Registered header version: KnownVersion; unregistered/missing: LatestFallback,Comment 9, line 9
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:9
//! trying the latest built-in parser with compatibility metadata.Comment 10, line 21
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:21
/// Detect an omp session file and select through its version registry.Comment 11, line 23
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:23
// Native omp files begin with title v=1 before session; locate the header within four lines.Comment 12, line 58
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:58
// With known product identity/input format, select through the registry; missing/unregisteredComment 13, line 59
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:59
// versions try the latest parser with compatibility metadata. Older omp formats remain unverified (V30).Comment 14, line 68
desktop/src-tauri/crates/core/src/adapters/omp/detect.rs:68
// Title without a session header in four lines may still be writing; retry next scan.