desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:1
//! Kimi Work adapter; see architecture.md#adapter-layout, M4/A13.Comment 2, line 2
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:2
//! - Stable entry point implements the shared interface and re-exports modules.Comment 3, line 3
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:3
//! - detect reads the initial metadata header and protocol_version,Comment 4, line 4
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:4
//! with registered format 1.4.Comment 5, line 5
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:5
//! - versions registers verified formats; unregistered values, including 1.5,Comment 6, line 6
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:6
//! or missing versions use the latest built-in parser as fallback.Comment 7, line 7
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:7
//! - Wire parsing is shared in crate::adapters::kimi_wire; roots and instanceComment 8, line 8
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:8
//! identities, version registries and Agent statistics stay product-specific (adapters.md).Comment 9, line 9
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:9
//!Comment 10, line 10
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:10
//! Product references: embedded kimi-code home under the daimon host directory,Comment 11, line 11
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:11
//! state.json createdBy=daimon-kernel-adapter, separate from standalone Kimi CodeComment 12, line 12
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:12
//! default ~/.kimi-code data.Comment 13, line 21
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:21
/// Observed embedded-home candidate: 69 files/31.5 MiB in the 2026-09-25 local inventory.Comment 14, line 22
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:22
/// Derived from this installation with custom D:/Cache; not an official default.Comment 15, line 23
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:23
/// No documented environment override was found; other locations use manual_roots.Comment 16, line 27
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:27
/// Stateless Kimi Work adapter.Comment 17, line 56
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:56
// Candidate pairs contain sessions directory and basis; the instance root is that directory.Comment 18, line 57
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:57
// Candidates are the observed local layout and manual_roots.Comment 19, line 58
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:58
// Default candidates require a matching home context; tests or isolated callersComment 20, line 59
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:59
// without it use manual roots, following the framework convention for claude/pi/qwen.Comment 21, line 60
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:60
// No documented environment override: do not read KIMI_CODE_HOME for this product.Comment 22, line 62
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:62
// This custom absolute installation belongs to the current process user.Comment 23, line 63
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:63
// A caller supplying an isolated home must never discover personal sources.Comment 24, line 82
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:82
// A manual root containing sessions is an embedded home; otherwise use the root as sessions.Comment 25, line 95
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:95
// Bounded depth 4 covers sessions/<wd>/<conv-*|ctitle-*>/agents/*/wire.jsonl.Comment 26, line 96
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:96
// Filename filtering excludes state.json, output.log and content-hash files.Comment 27, line 132
desktop/src-tauri/crates/core/src/adapters/kimi-work/mod.rs:132
// All attempted versions use wire_v14; extend dispatch when the registry has more implementations.