Skip to content

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs

Comment 1, line 1

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:1

//! Qwen legacy ChatRecord detection reads a bounded first line, requiring a documented type

Comment 2, line 2

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:2

//! from the fixed-source four-value enumeration and uuid/sessionId/timestamp identity,

Comment 3, line 3

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:3

//! then selects the implementation through super::versions.

Comment 4, line 4

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:4

//!

Comment 5, line 5

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:5

//! Rules: architecture.md#unknown-version / V17.

Comment 6, line 6

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:6

//! - Non-JSON, undocumented type or missing identity: unknown format;

Comment 7, line 7

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:7

//! reject rather than guess an arbitrary file format.

Comment 8, line 8

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:8

//! - Format ID is the registered fixed-source commit prefix: KnownVersion.

Comment 9, line 9

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:9

//! Store each record.version (CLI release) as schema_version without restricting releases;

Comment 10, line 10

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:10

//! it does not control detection dispatch.

Comment 11, line 11

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:11

//!

Comment 12, line 12

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:12

//! M2/V30 moved root-level qwen.rs into this directory without changing these rules.

Comment 13, line 23

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:23

/// Detect a legacy ChatRecord file and select through its registry.

Comment 14, line 47

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:47

// Fixed source requires uuid/sessionId/timestamp identity fields.

Comment 15, line 56

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:56

// The registered fixed-source commit prefix selects KnownVersion.

Comment 16, line 57

desktop/src-tauri/crates/core/src/adapters/qwen/detect.rs:57

// Do not select by record.version; scanning stores it as schema_version per record.