codeburn/windows/src/lib
iamtoruk 0a0d8ea300 feat(windows): provider panes gain config directories, cadence and API keys
The provider panes could say what the connection was and retry it, which
left the three things the mac lets you do about a connection undone.

Claude gets its Config Directories list, persisted to the CLI's own
claudeConfigDirs so every `codeburn` run aggregates the same set whether
this app spawned it or the user typed it in a terminal. Add Directory
opens the shell's folder browser through SHBrowseForFolderW rather than
pulling in a dialog crate for one button; the modal runs on the thread
that owns the app's windows.

Every pane gets the quota refresh cadence, Manual to fifteen minutes, from
the mac's SubscriptionRefreshCadence. It is deliberately one setting shown
on each pane rather than ten that could disagree: one `codeburn quota` run
answers for every provider, so a per-provider cadence would be a promise
the transport cannot keep, and the copy says so.

Z.ai and ClinePass get a key field, because their adapters are the only
two that read a credential from the environment rather than a file the
provider's own tools wrote. The key is sealed with DPAPI under
%LOCALAPPDATA%\codeburn, which is the Windows counterpart of the mac's
CodeBurn-owned Keychain item: the ciphertext is bound to this user on this
machine. It reaches the CLI as an environment variable on the child
process, never on a command line and never in a log, and it is never read
back into the webview, which only learns whether a key is stored at all.

Cursor, Z.ai, Grok and ClinePass had no provider mark, so the sidebar
listed four dotted circles; their marks come from the same
Resources/ProviderIcons set as the six already here.

windows-sys gains Win32_Security_Cryptography for DPAPI and the Shell and
Com features for the folder browser. No version changes and no new crate.
2026-09-01 20:00:42 -07:00
..
accent.ts feat(windows): the mac header, with a flame wordmark and an accent picker 2026-09-01 17:57:08 -07:00
appSettings.ts feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
cache.ts feat(windows): a fetch-error overlay with Retry, and stuck-load recovery 2026-09-01 19:03:07 -07:00
currency.ts feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dates.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
history.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
payload.ts feat(windows): Local and Combined scope, and the Claude config picker 2026-09-01 18:55:32 -07:00
plan.ts feat(windows): show Plan for every provider with a live quota source 2026-09-01 17:15:08 -07:00
platform.ts windows: cfg-gate the tray badge so the Linux build has no dead code 2026-08-18 04:37:27 -07:00
quota.ts feat(windows): provider panes gain config directories, cadence and API keys 2026-09-01 20:00:42 -07:00
settings.ts feat(windows): the mac header, with a flame wordmark and an accent picker 2026-09-01 17:57:08 -07:00
tips.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00