internal/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT

Directories

Path Synopsis
Package cli wires up the cobra command tree for cc-pool.
Package cli wires up the cobra command tree for cc-pool.
Package daemon implements the background user-LaunchAgent: a usage poller, idle-only credential refresher, score cache, and unix-socket server.
Package daemon implements the background user-LaunchAgent: a usage poller, idle-only credential refresher, score cache, and unix-socket server.
Package keychain is the linchpin: it derives the per-config-dir Keychain service name exactly as Claude Code does, and reads/writes the credential item by shelling out to /usr/bin/security.
Package keychain is the linchpin: it derives the per-config-dir Keychain service name exactly as Claude Code does, and reads/writes the credential item by shelling out to /usr/bin/security.
Package oauth talks to Anthropic's OAuth token-refresh and usage endpoints using the stored subscription credential (never an API key — API keys force per-request billing and disable subscription mode).
Package oauth talks to Anthropic's OAuth token-refresh and usage endpoints using the stored subscription credential (never an API key — API keys force per-request billing and disable subscription mode).
Package overlay makes a pool account dir present the live contents of ~/.claude with writes shared straight back, so a pooled session sees the same projects/skills/settings as plain `claude`.
Package overlay makes a pool account dir present the live contents of ~/.claude with writes shared straight back, so a pooled session sees the same projects/skills/settings as plain `claude`.
Package pool owns the canonical filesystem layout, account model, and per-account lifecycle helpers for cc-pool.
Package pool owns the canonical filesystem layout, account model, and per-account lifecycle helpers for cc-pool.
Package procscan discovers live `claude` sessions and the account each is bound to, by reading process environments.
Package procscan discovers live `claude` sessions and the account each is bound to, by reading process environments.
Package score implements cc-pool's account-selection scoring.
Package score implements cc-pool's account-selection scoring.
Package service manages the cc-pool user LaunchAgent.
Package service manages the cc-pool user LaunchAgent.
Package store is cc-pool's sole state layer: a modernc.org/sqlite (pure-Go) database holding accounts, usage samples, sessions, and the refresh log.
Package store is cc-pool's sole state layer: a modernc.org/sqlite (pure-Go) database holding accounts, usage samples, sessions, and the refresh log.
Package version exposes build metadata, injected at link time via -ldflags.
Package version exposes build metadata, injected at link time via -ldflags.

Jump to

Keyboard shortcuts

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