codeburn/windows/src-tauri/src
ozymandiashh 157347aa99
feat: Amp support - read the local thread mirror (#1572) (#1578)
* feat: Amp support - read the local thread mirror (#1572)

Amp (Sourcegraph's coding agent) mirrors every thread it serves as one
JSON document per thread at ~/.local/share/amp/threads/ (AMP_DATA_DIR
honored, comma-separated). Each file is { id, messages,
usageLedger?{events} }; the ledger's events are the per-request record
(tokens.input/output, cache tokens joined from the billed message
through toMessageId -> messages[].messageId), with a per-assistant-
message usage fallback for threads without a ledger and a total-only
record billing as output.

Amp bills a subscription and records no charged dollars, so every call
is priced from the underlying model's token rates and marked
costIsEstimated; the recorded credits field is ignored (no published
per-credit dollar rate). Thread files carry no cwd, so sessions group
under the provider name. Registered eager; parse version
usage-ledger-v1; no artwork yet (mono-initial fallback, like Codebuff).

Surfaces: CLI registry + doctor probe roots, Electron sandbox read
paths + menubar catalog (Amp after Cursor, matching the Swift order),
Windows tray tab color + usage_guard root, GNOME prefs dropdown, macOS
ProviderConnectionCatalog, docs/providers/amp.md, README tool list,
CHANGELOG.

* fix: address Amp provider review feedback
2026-10-02 10:36:05 +02:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs fix(dock): serialize claudeProfiles in camelCase on DockQuota::Ready (#1594) 2026-10-02 10:28:54 +02:00
config.rs feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dock.rs feat(dock): one Claude ring per config directory, with its own sessions and today (#1570) 2026-09-28 19:06:53 +02:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
glance.rs feat(windows): cache the Capacity Dock's glance data in Rust 2026-09-02 08:16:48 -07:00
lib.rs feat(dock): one Claude ring per config directory, with its own sessions and today (#1570) 2026-09-28 19:06:53 +02:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs fix(windows): read the Claude quota credential from running WSL distros (#1061) (#1554) 2026-09-25 01:35:41 +02:00
refresh.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
session.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
settings.rs fix(windows): wait out a reader when replacing a preference file 2026-09-03 11:10:33 -07:00
telemetry.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
tray_badge.rs feat(windows): the tray says when a paired device did not report 2026-09-02 01:39:10 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
update.rs feat(windows): report updates and point at GitHub instead of installing them 2026-09-02 23:09:36 -07:00
usage_guard.rs feat: Amp support - read the local thread mirror (#1572) (#1578) 2026-10-02 10:36:05 +02:00