Skip to content

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

Comment 1, line 1

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

//! oh-my-pi (omp) adapter; independent directory under architecture.md#adapter-layout.

Comment 2, line 2

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

//! - Stable adapter entry point implementing the shared interface and re-exports.

Comment 3, line 3

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

//! - detect: product/format detection and selection, retaining title/session first-line outcomes.

Comment 4, line 4

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

//! - versions: checked format mappings; unknown versions try the latest built-in parser.

Comment 5, line 5

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

//! - Retain historical implementations inside this directory instead of root-level files.

Comment 6, line 6

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

//!

Comment 7, line 7

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

//! Original format references are in implementation headers and the M2-B/C validation record.

Comment 8, line 8

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

//! V30 moved adapters/omp.rs here; only unknown-version policy changed, without recreating sources/resetting cursors.

Comment 9, line 19

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

/// Stateless oh-my-pi adapter.

Comment 10, line 48

desktop/src-tauri/crates/core/src/adapters/omp/mod.rs:48

// Store (sessions directory, basis); normalized sessions roots are scanned once after cross-source deduplication.

Comment 11, line 69

desktop/src-tauri/crates/core/src/adapters/omp/mod.rs:69

// Manual roots containing sessions/ resolve there; otherwise treat the root as the sessions directory.

Comment 12, line 82

desktop/src-tauri/crates/core/src/adapters/omp/mod.rs:82

// Expected primary files: sessions/<cwd>/*.jsonl at depth two; sub-agents below <cwd>/<ts>_<uuid>

Comment 13, line 83

desktop/src-tauri/crates/core/src/adapters/omp/mod.rs:83

// at depth three/four. Enumerate JSONL to depth four; reject companion JSON/Markdown/log files.

Comment 14, line 119

desktop/src-tauri/crates/core/src/adapters/omp/mod.rs:119

// All registered versions currently use session_v3; extend dispatch when multiple implementations are added.