Skip to content

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs

Comment 1, line 1

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:1

//! Detect the documented --analytics-log JSONL format for Aider.

Comment 2, line 2

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:2

//!

Comment 3, line 3

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:3

//! V17: first-line JSON without event/properties/time is unknown format;

Comment 4, line 4

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:4

//! empty files are Pending. No version field; the documented format selects KnownVersion.

Comment 5, line 15

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:15

/// Inspect at most 64 KiB from the header; check structural fields of possibly long first lines.

Comment 6, line 19

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:19

// Temporary lock/timeout/removal after enumeration is Pending; retry next run.

Comment 7, line 30

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:30

// A full window without newline may truncate the first line and invalidate partial JSON.

Comment 8, line 31

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:31

// Keep Pending and retry a complete line, rather than permanently classifying the format.

Comment 9, line 32

desktop/src-tauri/crates/core/src/adapters/aider/detect.rs:32

// A short window read the whole file; a failed single-line parse is truly unknown format.