desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:1
//! Zoo Code adapter layout: architecture.md#adapter-layout.Comment 2, line 2
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:2
//! - Stable entry point for the shared interface and reexports.Comment 3, line 3
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:3
//! - detect checks documented product/format fingerprints; ui_messages.json hasComment 4, line 4
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:4
//! no client-version field for dispatch.Comment 5, line 5
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:5
//! - versions keeps one documented zoo-ui-messages-doc-1 format entry,Comment 6, line 6
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:6
//! independently of Cline's implementation.Comment 7, line 7
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:7
//! - common contains Zoo-specific total-input/cache and cost mapping.Comment 8, line 8
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:8
//!Comment 9, line 9
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:9
//! Native reference: official VSIX 3.86.0 / 6aa9d0174a9ecae155c6c5db9134bead4b67197d.Comment 10, line 10
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:10
//! Nonempty isolated VS Code container samples were compared with the public API/model service 2026-10-06.Comment 11, line 11
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:11
//! Older f780647 finished/condense paths remain separately documented without native scenario acceptance.Comment 12, line 12
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:12
//! - packages/core/src/message-utils/consolidateTokenUsage.ts reads say/api_req_startedComment 13, line 13
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:13
//! text JSON with optional tokensIn/tokensOut/cacheWrites/cacheReads/costComment 14, line 14
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:14
//! and apiProtocol.Comment 15, line 15
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:15
//! tokensIn includes cache; contextCondense.cost contributes to totalCost.Comment 16, line 16
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:16
//! Upstream calculates contextTokens=input+output.Comment 17, line 17
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:17
//! - packages/core/src/message-utils/consolidateApiRequests.ts pairs finishedComment 18, line 18
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:18
//! with the latest unmatched started in LIFO order and merges text JSON.Comment 19, line 19
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:19
//! Finished fields override start fields; unmatched finished entries are discarded.Comment 20, line 20
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:20
//! - packages/core/src/task-persistence/taskMessages.ts andComment 21, line 21
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:21
//! src/shared/globalFileNames.ts store full JSON arrays under host globalStorageComment 22, line 22
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:22
//! at tasks/<taskId>/ui_messages.json.Comment 23, line 23
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:23
//! - VS Code extension: ZooCodeOrganization.zoo-code (src/package.json).Comment 24, line 24
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:24
//! Source CLI default: ~/.vscode-mock/global-storage (apps/cli and vscode-shim).Comment 25, line 25
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:25
//!Comment 26, line 26
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:26
//! Verify Zoo's own directories and fields rather than inheriting Roo rules (A19).Comment 27, line 37
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:37
/// Lowercase extension ID from package publisher/name used as the VS CodeComment 28, line 38
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:38
/// globalStorage directory name.Comment 29, line 40
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:40
/// Source CLI task-history DEFAULT_CLI_TASK_STORAGE_PATH and vscode-shim default:Comment 30, line 41
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:41
/// ~/.vscode-mock/global-storage.Comment 31, line 46
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:46
/// Strip UTF-8 BOM for detection and whole-file parsing; return other bytes unchanged.Comment 32, line 51
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:51
/// Stateless Zoo Code adapter.Comment 33, line 66
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:66
/// Manual roots may contain tasks/ or identify the tasks directory itself.Comment 34, line 93
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:93
// APPDATA supplies an independent Windows default, including isolated callersComment 35, line 94
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:94
// that omit HOME/USERPROFILE.Comment 36, line 105
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:105
// Source CLI default is ~/.vscode-mock/global-storageComment 37, line 106
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:106
// under the user home.Comment 38, line 112
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:112
// VS Code extension roots: Windows APPDATA/Code, macOSComment 39, line 113
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:113
// ~/Library/Application Support/Code, and Unix XDG or ~/.config/Code.Comment 40, line 114
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:114
// APPDATA/XDG_CONFIG_HOME select the platform's default base directory.Comment 41, line 145
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:145
// A manual root can be tasks/; standard storage roots contain a tasks/ child.Comment 42, line 149
desktop/src-tauri/crates/core/src/adapters/zoo/mod.rs:149
// Enumerate tasks/<taskId>/ui_messages.json within a bounded depth of two.