internal/

directory
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT

Directories

Path Synopsis
Package atomicfile writes a file through a sibling temp file and a rename, so a concurrent reader sees one whole version or another and never a torn one.
Package atomicfile writes a file through a sibling temp file and a rename, so a concurrent reader sees one whole version or another and never a torn one.
Package browser opens a URL in the user's browser.
Package browser opens a URL in the user's browser.
Package buildinfo carries the version stamped in at link time.
Package buildinfo carries the version stamped in at link time.
Package ccactivity says when Claude Code last did anything on this machine.
Package ccactivity says when Claude Code last did anything on this machine.
Package cclink classifies and merges the top-level keys of Claude Code's .credentials.json, and reads and writes the file itself — Load, Activate, ActivateWith, ClearLogin, and the atomic writer.
Package cclink classifies and merges the top-level keys of Claude Code's .credentials.json, and reads and writes the file itself — Load, Activate, ActivateWith, ClearLogin, and the atomic writer.
cclinktest
Package cclinktest is an in-memory macOS Keychain item for tests in other packages, the way net/http/httptest is a server for them.
Package cclinktest is an in-memory macOS Keychain item for tests in other packages, the way net/http/httptest is a server for them.
Package cclock cooperates with the advisory locks Claude Code takes while mutating its own files.
Package cclock cooperates with the advisory locks Claude Code takes while mutating its own files.
Package ccpath resolves the files Claude Code reads and writes, mirroring Claude Code's own resolution so ccdad touches exactly the same paths.
Package ccpath resolves the files Claude Code reads and writes, mirroring Claude Code's own resolution so ccdad touches exactly the same paths.
Package ccver names the Claude Code that is installed on this machine, and does it without running one.
Package ccver names the Claude Code that is installed on this machine, and does it without running one.
Package cli holds the ccdad command tree and the process-wide exit contract.
Package cli holds the ccdad command tree and the process-wide exit contract.
Package codexauth is ccdad's Codex credential: the record it stores, the hash the needs-relogin mark is made of, and (from a later change) the device login, the token refresh and the refresh classifier.
Package codexauth is ccdad's Codex credential: the record it stores, the hash the needs-relogin mark is made of, and (from a later change) the device login, the token refresh and the refresh classifier.
Package codexlaunch owns the per-launch secret that lets one codex process reach ccdad's local Codex proxy, and the evidence that says the launch is still running.
Package codexlaunch owns the per-launch secret that lets one codex process reach ccdad's local Codex proxy, and the evidence that says the launch is still running.
Package codexproxy is ccdad's loopback reverse proxy for codex.
Package codexproxy is ccdad's loopback reverse proxy for codex.
Package codexswitch repoints the account ccdad's codex proxy serves.
Package codexswitch repoints the account ccdad's codex proxy serves.
Package codexusage reads a Codex account's quota.
Package codexusage reads a Codex account's quota.
Package config is ~/.ccdad/config.toml: the auto-switch engine's knobs, their defaults, and the re-read the daemon's tick loop performs every second.
Package config is ~/.ccdad/config.toml: the auto-switch engine's knobs, their defaults, and the re-read the daemon's tick loop performs every second.
Package credhome is the exclusion that stops two ccdad stores from driving one Claude Code login.
Package credhome is the exclusion that stops two ccdad stores from driving one Claude Code login.
Package daemon owns ccdad's background process: where its files live, the singleton that decides whether one is running, and the detached spawn that starts one.
Package daemon owns ccdad's background process: where its files live, the singleton that decides whether one is running, and the detached spawn that starts one.
Package forecast measures how fast a fleet of accounts is spending its quota and decides what that rate implies.
Package forecast measures how fast a fleet of accounts is spending its quota and decides what that rate implies.
Package history persists the usage readings the poller was already taking, so a burn rate can be measured from more than one of them.
Package history persists the usage readings the poller was already taking, so a burn rate can be measured from more than one of them.
Package identity resolves an OAuth token to the account it belongs to and classifies that account.
Package identity resolves an OAuth token to the account it belongs to and classifies that account.
Package mcpsrv is ccdad's Model Context Protocol server.
Package mcpsrv is ccdad's Model Context Protocol server.
Package oauth implements the Claude Code OAuth login: PKCE, the dual-path authorization race, and the token endpoint.
Package oauth implements the Claude Code OAuth login: PKCE, the dual-path authorization race, and the token endpoint.
Package pollpolicy decides when to poll /api/oauth/usage next.
Package pollpolicy decides when to poll /api/oauth/usage next.
Package provider names the two account providers ccdad manages.
Package provider names the two account providers ccdad manages.
Package release holds everything about WHERE ccdad releases live: how a tag is spelled and ordered, what this machine's asset is called, how the published sha256sums.txt is read, and the HTTP client that reads them.
Package release holds everything about WHERE ccdad releases live: how a tag is spelled and ordered, what this machine's asset is called, how the published sha256sums.txt is read, and the HTTP client that reads them.
Package relsign verifies and produces the minisign signature this repository publishes beside sha256sums.txt.
Package relsign verifies and produces the minisign signature this repository publishes beside sha256sums.txt.
Package store persists the accounts ccdad manages.
Package store persists the accounts ccdad manages.
Package strategy decides which account the engine should be on.
Package strategy decides which account the engine should be on.
Package switcher performs the credential swap, and answers the question the swap turns on: which managed account is live right now.
Package switcher performs the credential swap, and answers the question the swap turns on: which managed account is live right now.
Package theme is the palette every rendered surface reads its colours from.
Package theme is the palette every rendered surface reads its colours from.
Package tokens hands out a valid access token for a managed account, refreshing the stored credential snapshot when one has expired.
Package tokens hands out a valid access token for a managed account, refreshing the stored credential snapshot when one has expired.
Package tui is the interactive dashboard's rendering layer: the row cells, the gauge, the state map, and eventually the whole page.
Package tui is the interactive dashboard's rendering layer: the row cells, the gauge, the state map, and eventually the whole page.
Package usage reads GET /api/oauth/usage and normalizes it into a shape the auto-switch engine can rank on.
Package usage reads GET /api/oauth/usage and normalizes it into a shape the auto-switch engine can rank on.
Package view is the dashboard's model: one account's row, and every cell a human table renders it into.
Package view is the dashboard's model: one account's row, and every cell a human table renders it into.
Package winerr classifies the Windows file errors that mean another process is momentarily holding the file, rather than that the operation is impossible.
Package winerr classifies the Windows file errors that mean another process is momentarily holding the file, rather than that the operation is impossible.
Package zone renders every timestamp inside a value in one time zone.
Package zone renders every timestamp inside a value in one time zone.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL