Skip to content

desktop/src-tauri/crates/core/src/adapters/gemini/mod.rs

Comment 1, line 1

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

//! Gemini CLI adapter directory: architecture.md#adapter-layout.

Comment 2, line 2

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

//! - Stable agent entry point with interface implementation and reexports.

Comment 3, line 3

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

//! - detect checks the documented format; no native version field for dispatch.

Comment 4, line 4

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

//! - versions exposes the single documented session-doc-1 format.

Comment 5, line 5

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

//! - Shared gemini/qwen map_genai_usage remains in root usage_map.rs.

Comment 6, line 6

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

//!

Comment 7, line 7

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

//! See versions::session_doc1 for format references.

Comment 8, line 8

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

//! M2/V30 moved root gemini.rs without changing rejection behavior:

Comment 9, line 9

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

//! reject undocumented message types or tokens outside the expected records.

Comment 10, line 20

desktop/src-tauri/crates/core/src/adapters/gemini/mod.rs:20

/// Remove UTF-8 BOM for detection/parsing; return BOM-free input unchanged.

Comment 11, line 25

desktop/src-tauri/crates/core/src/adapters/gemini/mod.rs:25

/// Stateless Gemini CLI adapter.

Comment 12, line 67

desktop/src-tauri/crates/core/src/adapters/gemini/mod.rs:67

// Bounded depth-two JSON enumeration under tmp; expected chats use tmp/<project_hash>/chats/session-*.json.

Comment 13, line 102

desktop/src-tauri/crates/core/src/adapters/gemini/mod.rs:102

// One format without version dispatch. If the registry later adds implementations

Comment 14, line 103

desktop/src-tauri/crates/core/src/adapters/gemini/mod.rs:103

// such as session-doc-2, dispatch here using the detection result.