codeburn/mac/Sources/CodeBurnMenubar/Data
Resham Joshi 063e42796d
feat(providers): add Command Code (#1658)
* feat: Command Code support

Reads the cmd CLI's session transcripts at
~/.commandcode/projects/<slug>/<id>.jsonl (CODEBURN_COMMANDCODE_DIR moves
the root). Checkpoint and prompt sidecars are skipped.

usage.inputTokens includes cacheReadTokens, so fresh input is
inputTokens - cacheReadTokens. The recorded costUsd is kept per call
(costFromBilling); a call without one is priced from tokens and marked
estimated. Forks copy parent message ids into a new file, so calls dedupe
by message id across sessions.

Desktop: Electron sandbox read path, macOS and Windows change watchers,
Windows tab colour. No quota adapter.

* fix(command-code): dedupe on meta.messageId, not the 8-hex line id

The top-level id is randomUUID().slice(0, 8) and only unique within one
file, so calls from unrelated sessions could collide and vanish.
meta.messageId is a full uuid that survives forks. Fixture ids now use
the real 8-hex shape.

* test(command-code): check sidecar skipping by file name, not a posix path
2026-10-07 00:18:50 +02:00
..
AntigravityQuotaPresentation.swift
AntigravitySubscriptionService.swift
CapacityDockGlanceWindow.swift
CapacityDockInteractionState.swift
CapacityDockPreferences.swift
CapacityDockProviderCredential.swift
CapacityDockProviderQuotaService.swift
CapacityEstimator.swift
ClaudeCredentialStore.swift
ClaudeSubscriptionService.swift
CLIClaudeConfig.swift
CLICursorSyncConfig.swift
ClinePassSubscriptionService.swift
CLIWatchdog.swift
CodeBurnCacheDirectory.swift
CodexBankedResets.swift
CodexCredentialStore.swift
CodexSubscriptionService.swift
CodexUsage.swift
CopilotExplicitDisconnect.swift
CopilotHostEndpoint.swift
CopilotQuotaPresentation.swift
CopilotSubscriptionService.swift
CursorSubscriptionService.swift
DataClient.swift
DevinSubscriptionService.swift
EarlyQuotaReset.swift
EarlyQuotaResetMonitor.swift
GeminiQuotaPresentation.swift
GeminiSubscriptionService.swift
GrokBotSubscriptionService.swift
GrokBuildSubscriptionService.swift
KimiQuotaPresentation.swift
KimiSubscriptionService.swift
LanguagePreference.swift
MenubarPayload.swift
MenubarStatusCache.swift
ProviderConnectionCatalog.swift
ProviderReconnectPresentation.swift
ProviderStripPagingState.swift
QuotaCrossing.swift
QuotaPace.swift
QuotaPacePresentation.swift
QuotaSummary.swift
QuotaWarningPresentation.swift
ServeConnection.swift
SubscriptionRefreshCadence.swift
SubscriptionSnapshotStore.swift
SubscriptionUsage.swift
Telemetry.swift
UpdateChecker.swift
UpdateNotifier.swift
UsageDataChangeGuard.swift
UsageRefreshCadence.swift
ZaiPlanQuotaDecoder.swift
ZaiSubscriptionService.swift
ZcodeSubscriptionService.swift