Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions pm-stack/aggregator/src/quota-extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ const extractMeta: Extractor = (s, now) => {
return { windows: [pctWindow("weekly", Number(pct[1]), resetIso)] };
};

function goWorkspace(name: "drewrypope" | "popesdrew"): Extractor {
function goWorkspace(name: "drewrypope" | "popesdrew" | "developing-today-0"): Extractor {
return (s, now) => {
const m = first(
s,
Expand Down Expand Up @@ -505,7 +505,8 @@ interface PoolSpec {

// POOL NAMING (2026-11-03, Drew): a pool's id is its OpenCode config
// provider id whenever the config defines one — meta, openai.main,
// openai.alternate, opencode-go.drewrypope, opencode-go.popesdrew, cline-pass,
// openai.alternate, opencode-go.drewrypope, opencode-go.popesdrew,
// opencode-go.developing-today-0, cline-pass,
// opendesign, deepseek, commandcode. The colon-suffixed spellings these
// replaced (meta:high-usage, openai:codex, opencode-go:drewrypope, ...)
// survive only in the historical snapshot series and the one-shot
Expand Down Expand Up @@ -582,6 +583,14 @@ export const POOL_SPECS: PoolSpec[] = [
extract: goWorkspace("popesdrew"),
shellNote: "No current read.",
},
{
id: "opencode-go.developing-today-0",
provider: "OpenCode Go",
plan: "developing-today-0 account",
heading: /^### OpenCode Go/,
extract: goWorkspace("developing-today-0"),
shellNote: "No current read.",
},
{
id: "cline-pass",
provider: "ClinePass",
Expand Down
5 changes: 4 additions & 1 deletion pm-stack/aggregator/src/quota-gather-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const GATHERER_SOURCE = "opencode-quota";
*/
export const GO_DREWRYPOPE_SERVICE_ID = "opencode-go.drewrypope";
export const GO_POPESDREW_SERVICE_ID = "opencode-go.popesdrew";
export const GO_DEVELOPING_TODAY_0_SERVICE_ID = "opencode-go.developing-today-0";
export const ANTIGRAVITY_GEMINI_SERVICE_ID = "_antigravity.gemini";
export const ANTIGRAVITY_CLAUDE_GPT_SERVICE_ID = "_antigravity.claude-gpt";
// Pre-rename (#1823) split ids: a gatherer still paired with the old
Expand All @@ -164,7 +165,8 @@ export const ANTIGRAVITY_LEGACY_CLAUDE_GPT_SERVICE_ID = "antigravity-direct.clau
/**
* Which split Go pool a per-workspace entry belongs to, from the
* credential's human label. OpenCode credential labels are user-set; on
* the fleet laptop the Go accounts are labeled "drewrypope" and "popesdrew"
* the fleet laptop the Go accounts are labeled "drewrypope", "popesdrew"
* and "developing-today-0" (third account, added 2026-11-08)
* (the "Home" workspace was removed 2026-11-03 and has no hub pool). Org ids are opaque per-machine strings, so they
* cannot name pools — the label is the only stable gatherer-side
* signal. Unmatched entries yield null: no fabricated pool row, the
Expand All @@ -174,6 +176,7 @@ export function goPoolServiceId(entry: QuotaCurrentEntry): string | null {
const label = entry.credentialLabel?.trim().toLowerCase();
if (label === "drewrypope") return GO_DREWRYPOPE_SERVICE_ID;
if (label === "popesdrew") return GO_POPESDREW_SERVICE_ID;
if (label === "developing-today-0") return GO_DEVELOPING_TODAY_0_SERVICE_ID;
return null;
}

Expand Down
Loading