Skip to content

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs

Comment 1, line 1

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

//! Qwen legacy ChatRecord registry maps format IDs to implementations.

Comment 2, line 2

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

//! See architecture.md#adapter-layout / #unknown-version.

Comment 3, line 3

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

//!

Comment 4, line 4

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

//! Legacy ChatRecord uses fixed source commit prefix 085e98c0 as its format ID, not a release allowlist.

Comment 5, line 5

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

//! Each record.version (CLI version) is stored as schema_version without controlling dispatch.

Comment 6, line 6

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

//! This registry preserves the shared adapter interface; chatrecord_085e98c0 is its sole format

Comment 7, line 7

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

//! from fixed source A18. Add entries/selection variants when a new fixed-source format is verified.

Comment 8, line 8

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

//!

Comment 9, line 9

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

//! Selection rules follow the shared adapter interface:

Comment 10, line 10

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

//! - Registered format ID: KnownVersion, dispatch through the mapping.

Comment 11, line 11

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

//! - Unregistered/missing ID: LatestFallback through the latest built-in parser.

Comment 12, line 12

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

//! Legacy ChatRecord detection supplies the registered fixed ID; SDK reading is separate.

Comment 13, line 16

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:16

/// This constant selects the latest built-in implementation without network access.

Comment 14, line 19

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:19

/// Format ID is the fixed-source commit prefix defining this schema.

Comment 15, line 22

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:22

/// Registered format IDs mapped to implementations.

Comment 16, line 23

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

/// Keys identify fixed-source formats, not allowed CLI releases. Store record.version as

Comment 17, line 24

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:24

/// schema_version per record without a release allowlist; retain the shared registry interface.

Comment 18, line 26

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:26

// A18 fixed source: qwen-code commit 085e98c00cac2f8dd29eb39c760409bc6da889a9.

Comment 19, line 30

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:30

/// Version selection result.

Comment 20, line 37

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:37

/// Detection and scanning share this V30 format-selection function.

Comment 21, line 38

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:38

/// Legacy ChatRecord callers supply the registered fixed ID (KnownVersion).

Comment 22, line 39

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:39

/// Missing/unregistered branches preserve the shared interface and are not used by that route.

Comment 23, line 72

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:72

// Detection/scanning of legacy ChatRecord use the registered fixed-source ID: known_version.

Comment 24, line 84

desktop/src-tauri/crates/core/src/adapters/qwen/versions/mod.rs:84

// Shared fallback branch; legacy ChatRecord callers always supply the registered fixed ID.