github-router 0.3.357 → 0.3.369
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ado-tools-C0sY_rX1.js +1 -0
- package/dist/{aic-ledger-BuFrsGur.js → aic-ledger-_mvGW2Ev.js} +42 -7
- package/dist/aic-ledger-_mvGW2Ev.js.map +1 -0
- package/dist/{aic-statusline-settings-DBS9sEGC.js → aic-statusline-settings-B5EMMSFC.js} +2 -2
- package/dist/{aic-statusline-settings-DBS9sEGC.js.map → aic-statusline-settings-B5EMMSFC.js.map} +1 -1
- package/dist/{attribution-settings-D9PxJxkL.js → attribution-settings-zoBxw08y.js} +374 -218
- package/dist/attribution-settings-zoBxw08y.js.map +1 -0
- package/dist/{auth-DFawaLJU.js → auth-B3UvYB2r.js} +3 -3
- package/dist/{auth-DFawaLJU.js.map → auth-B3UvYB2r.js.map} +1 -1
- package/dist/{balanced-profile-contract-DtnTIBjL.js → balanced-profile-contract-Dm_usmw7.js} +7 -1
- package/dist/{balanced-profile-contract-DtnTIBjL.js.map → balanced-profile-contract-Dm_usmw7.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{check-usage-BkVEl-Su.js → check-usage-45vyaLfl.js} +4 -4
- package/dist/{check-usage-BkVEl-Su.js.map → check-usage-45vyaLfl.js.map} +1 -1
- package/dist/{claude-BTYQjK-K.js → claude-BbIfnWbm.js} +92 -42
- package/dist/claude-BbIfnWbm.js.map +1 -0
- package/dist/{claude-md-injection-Cpzolxin.js → claude-md-injection-BtBG1RBZ.js} +153 -37
- package/dist/claude-md-injection-BtBG1RBZ.js.map +1 -0
- package/dist/{codex-TdsG6C9K.js → codex-CZVlP2tB.js} +7 -7
- package/dist/{codex-TdsG6C9K.js.map → codex-CZVlP2tB.js.map} +1 -1
- package/dist/{copilot-discount-Bsmv_3OX.js → copilot-discount-BuDbQOHq.js} +2 -2
- package/dist/{copilot-discount-Bsmv_3OX.js.map → copilot-discount-BuDbQOHq.js.map} +1 -1
- package/dist/{debug-DkNTuErv.js → debug-DL2JsRqY.js} +2 -2
- package/dist/{debug-DkNTuErv.js.map → debug-DL2JsRqY.js.map} +1 -1
- package/dist/engine-DeIo-VIR.js +1 -0
- package/dist/{gate-discovery-NNQg0t0H.js → gate-discovery-BYyYeUnn.js} +5 -5
- package/dist/{gate-discovery-NNQg0t0H.js.map → gate-discovery-BYyYeUnn.js.map} +1 -1
- package/dist/{get-copilot-usage-P9chc-X2.js → get-copilot-usage-BbGmK03C.js} +2 -2
- package/dist/{get-copilot-usage-P9chc-X2.js.map → get-copilot-usage-BbGmK03C.js.map} +1 -1
- package/dist/hooks.mjs +262 -117
- package/dist/hooks.sha256 +1 -1
- package/dist/{index-cmd-BkfYr9FH.js → index-cmd-CjRcmYk3.js} +4 -4
- package/dist/{index-cmd-BkfYr9FH.js.map → index-cmd-CjRcmYk3.js.map} +1 -1
- package/dist/{internal-aic-status-C6L4-ncP.js → internal-aic-status-BAVomi5A.js} +4 -4
- package/dist/{internal-aic-status-C6L4-ncP.js.map → internal-aic-status-BAVomi5A.js.map} +1 -1
- package/dist/{internal-artifact-open-DgJ3PCtt.js → internal-artifact-open-NAGn9Mgt.js} +2 -2
- package/dist/{internal-artifact-open-DgJ3PCtt.js.map → internal-artifact-open-NAGn9Mgt.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-CicGz6oM.js → internal-fast-dispatch-guard-De_DJOyZ.js} +1 -1
- package/dist/{internal-fast-dispatch-guard-CgBtUsQI.js → internal-fast-dispatch-guard-_n-A8hgo.js} +3 -3
- package/dist/{internal-fast-dispatch-guard-CgBtUsQI.js.map → internal-fast-dispatch-guard-_n-A8hgo.js.map} +1 -1
- package/dist/{internal-first-mate-guard-DTXPT7JW.js → internal-first-mate-guard-C8GwLbaX.js} +1 -1
- package/dist/{internal-first-mate-guard-BfWYN6Jb.js → internal-first-mate-guard-GufCUMl3.js} +3 -3
- package/dist/{internal-first-mate-guard-BfWYN6Jb.js.map → internal-first-mate-guard-GufCUMl3.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-mNl9CCir.js → internal-max-dispatch-guard-BB0vwiPx.js} +1 -1
- package/dist/{internal-max-dispatch-guard-CY8l9SDw.js → internal-max-dispatch-guard-BodVFHRC.js} +2 -2
- package/dist/{internal-max-dispatch-guard-CY8l9SDw.js.map → internal-max-dispatch-guard-BodVFHRC.js.map} +1 -1
- package/dist/{internal-plan-review-2OHTs8Nk.js → internal-plan-review-ChFx8wTX.js} +3 -3
- package/dist/{internal-plan-review-2OHTs8Nk.js.map → internal-plan-review-ChFx8wTX.js.map} +1 -1
- package/dist/{internal-prompt-submit-DZ_-2A6a.js → internal-prompt-submit-B-kKTl-8.js} +2 -2
- package/dist/{internal-prompt-submit-CkfUcu34.js → internal-prompt-submit-bi7F7pKk.js} +4 -4
- package/dist/{internal-prompt-submit-CkfUcu34.js.map → internal-prompt-submit-bi7F7pKk.js.map} +1 -1
- package/dist/{internal-rebrief-EhBHAHsz.js → internal-rebrief-B6ZJS6Mp.js} +4 -4
- package/dist/{internal-rebrief-EhBHAHsz.js.map → internal-rebrief-B6ZJS6Mp.js.map} +1 -1
- package/dist/{internal-session-bind-Bv50ju2n.js → internal-session-bind-dsUOcKxU.js} +2 -2
- package/dist/{internal-session-bind-Bv50ju2n.js.map → internal-session-bind-dsUOcKxU.js.map} +1 -1
- package/dist/{internal-stop-hook-Iz8XXE07.js → internal-stop-hook-BbyobGUU.js} +5 -5
- package/dist/{internal-stop-hook-Iz8XXE07.js.map → internal-stop-hook-BbyobGUU.js.map} +1 -1
- package/dist/{internal-stop-review-K6f8xsCh.js → internal-stop-review-D_KEV_04.js} +2 -2
- package/dist/{internal-stop-review-K6f8xsCh.js.map → internal-stop-review-D_KEV_04.js.map} +1 -1
- package/dist/{internal-worker-guard-GVhTjVlR.js → internal-worker-guard-DB6shBIn.js} +2 -2
- package/dist/{internal-worker-guard-GVhTjVlR.js.map → internal-worker-guard-DB6shBIn.js.map} +1 -1
- package/dist/{internal-workspace-header-d2hFf9Jy.js → internal-workspace-header-DBg5Y7oN.js} +2 -2
- package/dist/{internal-workspace-header-d2hFf9Jy.js.map → internal-workspace-header-DBg5Y7oN.js.map} +1 -1
- package/dist/{lifecycle-C6cxM_Nk.js → lifecycle-9nX09dBl.js} +2 -2
- package/dist/{lifecycle-C6cxM_Nk.js.map → lifecycle-9nX09dBl.js.map} +1 -1
- package/dist/lifecycle-C_CT13c9.js +1 -0
- package/dist/lifecycle-DibiH857.js +1 -0
- package/dist/{lifecycle-pl9QpvqD.js → lifecycle-Gge2Dadd.js} +2 -2
- package/dist/{lifecycle-pl9QpvqD.js.map → lifecycle-Gge2Dadd.js.map} +1 -1
- package/dist/main.js +23 -23
- package/dist/{mcp-workspace-header-Su8uUxJg.js → mcp-workspace-header-Xw9B1W6T.js} +2 -2
- package/dist/{mcp-workspace-header-Su8uUxJg.js.map → mcp-workspace-header-Xw9B1W6T.js.map} +1 -1
- package/dist/{models-D8v8OTbN.js → models-BR6i348u.js} +3 -3
- package/dist/{models-D8v8OTbN.js.map → models-BR6i348u.js.map} +1 -1
- package/dist/{orchestration-Bov4rZEi.js → orchestration-D3-2ulhX.js} +2 -2
- package/dist/{orchestration-Bov4rZEi.js.map → orchestration-D3-2ulhX.js.map} +1 -1
- package/dist/{paths-BSI_EtDT.js → paths-C5477RGC.js} +48 -4
- package/dist/paths-C5477RGC.js.map +1 -0
- package/dist/paths-CEswtFj5.js +1 -0
- package/dist/{peer-mcp-personas-GANlrtNR.js → peer-mcp-personas-DNtWI2C1.js} +1139 -398
- package/dist/peer-mcp-personas-DNtWI2C1.js.map +1 -0
- package/dist/{pi-TKFwPyLA.js → pi-Bc-MVgAo.js} +397 -603
- package/dist/pi-Bc-MVgAo.js.map +1 -0
- package/dist/{plan-review-hook-CHK1wL3-.js → plan-review-hook-C9K-em4D.js} +3 -3
- package/dist/{plan-review-hook-CHK1wL3-.js.map → plan-review-hook-C9K-em4D.js.map} +1 -1
- package/dist/{provision-BNN6yRk8.js → provision-DUWdcY_a.js} +5 -5
- package/dist/{provision-BNN6yRk8.js.map → provision-DUWdcY_a.js.map} +1 -1
- package/dist/{self-invocation-Dk_UHD_v.js → self-invocation-BtcGj-lY.js} +2 -2
- package/dist/{self-invocation-Dk_UHD_v.js.map → self-invocation-BtcGj-lY.js.map} +1 -1
- package/dist/{serve-BaeLm9Um.js → serve-CmWOTR7m.js} +14 -14
- package/dist/{serve-BaeLm9Um.js.map → serve-CmWOTR7m.js.map} +1 -1
- package/dist/{server-setup-BcUQv5ac.js → server-setup-CIzmDJzT.js} +848 -103
- package/dist/server-setup-CIzmDJzT.js.map +1 -0
- package/dist/{service-backend-DHyd9vjW.js → service-backend-B6D_DY1Z.js} +3 -3
- package/dist/{service-backend-DHyd9vjW.js.map → service-backend-B6D_DY1Z.js.map} +1 -1
- package/dist/{start-BdoGJc36.js → start-rlpaeAtx.js} +4 -4
- package/dist/{start-BdoGJc36.js.map → start-rlpaeAtx.js.map} +1 -1
- package/dist/state-CiwCLVDZ.js.map +1 -1
- package/dist/{static-context-pack-dKrzbfIN.js → static-context-pack-DvwLWlbe.js} +371 -64
- package/dist/static-context-pack-DvwLWlbe.js.map +1 -0
- package/dist/{stop-gate-hook-CC7VWkZM.js → stop-gate-hook-DnLC09Lg.js} +3 -3
- package/dist/{stop-gate-hook-CC7VWkZM.js.map → stop-gate-hook-DnLC09Lg.js.map} +1 -1
- package/dist/{stop-gate-policy-CoR8xKNQ.js → stop-gate-policy-Dx9c98_d.js} +2 -2
- package/dist/{stop-gate-policy-CoR8xKNQ.js.map → stop-gate-policy-Dx9c98_d.js.map} +1 -1
- package/dist/{token-CA2s70qj.js → token-OTb61rOC.js} +2 -2
- package/dist/{token-CA2s70qj.js.map → token-OTb61rOC.js.map} +1 -1
- package/dist/{worker-dispatch-B_rriT7z.js → worker-dispatch-B1w2qfjX.js} +2 -2
- package/dist/{worker-dispatch-B_rriT7z.js.map → worker-dispatch-B1w2qfjX.js.map} +1 -1
- package/docs/azure-mcp.md +29 -31
- package/package.json +1 -1
- package/dist/ado-tools-DqLJ-u19.js +0 -1
- package/dist/aic-ledger-BuFrsGur.js.map +0 -1
- package/dist/attribution-settings-D9PxJxkL.js.map +0 -1
- package/dist/claude-BTYQjK-K.js.map +0 -1
- package/dist/claude-md-injection-Cpzolxin.js.map +0 -1
- package/dist/engine-CmhUwYI5.js +0 -1
- package/dist/lifecycle-BU_d2QMs.js +0 -1
- package/dist/lifecycle-ByFyew_w.js +0 -1
- package/dist/paths-BSI_EtDT.js.map +0 -1
- package/dist/paths-BYxX9DfA.js +0 -1
- package/dist/peer-mcp-personas-GANlrtNR.js.map +0 -1
- package/dist/pi-TKFwPyLA.js.map +0 -1
- package/dist/server-setup-BcUQv5ac.js.map +0 -1
- package/dist/static-context-pack-dKrzbfIN.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ensurePaths, t as PATHS } from "./paths-
|
|
1
|
+
import { i as ensurePaths, t as PATHS } from "./paths-C5477RGC.js";
|
|
2
2
|
import { t as state } from "./state-CiwCLVDZ.js";
|
|
3
|
-
import { r as setupGitHubToken } from "./token-
|
|
3
|
+
import { r as setupGitHubToken } from "./token-OTb61rOC.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import consola from "consola";
|
|
6
6
|
//#region src/auth.ts
|
|
@@ -42,4 +42,4 @@ const auth = defineCommand({
|
|
|
42
42
|
//#endregion
|
|
43
43
|
export { auth };
|
|
44
44
|
|
|
45
|
-
//# sourceMappingURL=auth-
|
|
45
|
+
//# sourceMappingURL=auth-B3UvYB2r.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-
|
|
1
|
+
{"version":3,"file":"auth-B3UvYB2r.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { defineCommand } from \"citty\"\nimport consola from \"consola\"\n\nimport { PATHS, ensurePaths } from \"./lib/paths\"\nimport { state } from \"./lib/state\"\nimport { setupGitHubToken } from \"./lib/token\"\n\ninterface RunAuthOptions {\n verbose: boolean\n showToken: boolean\n}\n\nexport async function runAuth(options: RunAuthOptions): Promise<void> {\n if (options.verbose) {\n consola.level = 5\n consola.info(\"Verbose logging enabled\")\n }\n\n state.showToken = options.showToken\n\n await ensurePaths()\n await setupGitHubToken({ force: true })\n consola.success(\"GitHub token written to\", PATHS.GITHUB_TOKEN_PATH)\n}\n\nexport const auth = defineCommand({\n meta: {\n name: \"auth\",\n description: \"Run GitHub auth flow without running the server\",\n },\n args: {\n verbose: {\n alias: \"v\",\n type: \"boolean\",\n default: false,\n description: \"Enable verbose logging\",\n },\n \"show-token\": {\n type: \"boolean\",\n default: false,\n description: \"Show GitHub token on auth\",\n },\n },\n run({ args }) {\n return runAuth({\n verbose: args.verbose,\n showToken: args[\"show-token\"],\n })\n },\n})\n"],"mappings":";;;;;;AAcA,eAAsB,QAAQ,SAAwC;CACpE,IAAI,QAAQ,SAAS;EACnB,QAAQ,QAAQ;EAChB,QAAQ,KAAK,yBAAyB;CACxC;CAEA,MAAM,YAAY,QAAQ;CAE1B,MAAM,YAAY;CAClB,MAAM,iBAAiB,EAAE,OAAO,KAAK,CAAC;CACtC,QAAQ,QAAQ,2BAA2B,MAAM,iBAAiB;AACpE;AAEA,MAAa,OAAO,cAAc;CAChC,MAAM;EACJ,MAAM;EACN,aAAa;CACf;CACA,MAAM;EACJ,SAAS;GACP,OAAO;GACP,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA,cAAc;GACZ,MAAM;GACN,SAAS;GACT,aAAa;EACf;CACF;CACA,IAAI,EAAE,QAAQ;EACZ,OAAO,QAAQ;GACb,SAAS,KAAK;GACd,WAAW,KAAK;EAClB,CAAC;CACH;AACF,CAAC"}
|
package/dist/{balanced-profile-contract-DtnTIBjL.js → balanced-profile-contract-Dm_usmw7.js}
RENAMED
|
@@ -96,10 +96,16 @@ const BALANCED_PROFILE_CONTRACT = Object.freeze({
|
|
|
96
96
|
leadEffort: BALANCED_PROFILE_LEAD_EFFORT,
|
|
97
97
|
oracleModel: BALANCED_PROFILE_ORACLE_MODEL,
|
|
98
98
|
oracleEffort: BALANCED_PROFILE_ORACLE_EFFORT,
|
|
99
|
+
/**
|
|
100
|
+
* Where the family's consultants are served. Both balanced members consult
|
|
101
|
+
* Copilot. Present on every family contract so a consumer can read the field
|
|
102
|
+
* off the union without narrowing to a member first.
|
|
103
|
+
*/
|
|
104
|
+
consultTransport: "copilot",
|
|
99
105
|
synthesizedPeers: BALANCED_PROFILE_SYNTHESIZED_PEERS,
|
|
100
106
|
delegationGraph: BALANCED_PROFILE_DELEGATION_GRAPH
|
|
101
107
|
});
|
|
102
108
|
//#endregion
|
|
103
109
|
export { BALANCED_PROFILE_NATIVE_EFFORTS as a, BALANCED_PROFILE_NATIVE_AGENT_NAMES as i, BALANCED_PROFILE_DELEGATION_GRAPH as n, BALANCED_PROFILE_MODELS as r, BALANCED_PROFILE_CONTRACT as t };
|
|
104
110
|
|
|
105
|
-
//# sourceMappingURL=balanced-profile-contract-
|
|
111
|
+
//# sourceMappingURL=balanced-profile-contract-Dm_usmw7.js.map
|
package/dist/{balanced-profile-contract-DtnTIBjL.js.map → balanced-profile-contract-Dm_usmw7.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanced-profile-contract-
|
|
1
|
+
{"version":3,"file":"balanced-profile-contract-Dm_usmw7.js","names":[],"sources":["../src/lib/balanced-profile-contract.ts"],"sourcesContent":["/**\n * Fixed identities for the literal `github-router claude -m balanced` profile.\n *\n * The most-complex-tasks tier: a `gpt-5.6-sol`/medium LEAD at Claude Code's\n * DEFAULT (bare-slug) 200K window, every subagent at the same 200K default,\n * and a `grok-4.6`/medium primary Oracle. Advisor-free by design: no Advisor\n * model, tool, or prose is wired for this profile. Oracle-only peer set\n * (no `astra`) and a three-agent surface (`Explore`/`General-Purpose`/\n * `reviewer`): the cheap-family surface minus `Plan` — the lead owns\n * planning directly — except the `reviewer` may invoke `Explore` for\n * targeted discovery (search-first, then delegate).\n *\n * Delegation policy is lead-owns-by-default: the lead plans, implements,\n * and verifies itself, delegating FREELY to the Luna-powered `Explore` and\n * `General-Purpose` roles, and to `reviewer` ONLY when genuinely\n * needed (behavior-changing review).\n *\n * This module is deliberately dependency-free, including its own delegation\n * graph literal: each pinned profile owns its graph so tuning one roster\n * cannot silently retune another. The PreToolUse ACL reads each profile's\n * own graph.\n */\n\nexport const BALANCED_PROFILE_MODELS = Object.freeze({\n lead: \"gpt-5.6-sol\",\n explore: \"gpt-6-luna\",\n \"General-Purpose\": \"gpt-6-luna\",\n reviewer: \"gpt-5.6-sol\",\n oracle: \"grok-4.6\",\n astra: \"gpt-6-astra\",\n} as const)\n\nexport const BALANCED_PROFILE_NATIVE_AGENT_NAMES = [\n \"Explore\",\n \"General-Purpose\",\n \"reviewer\",\n] as const\n\nexport type BalancedProfileNativeAgentName =\n (typeof BALANCED_PROFILE_NATIVE_AGENT_NAMES)[number]\n\nexport const BALANCED_PROFILE_NATIVE_MODELS: Readonly<\n Record<BalancedProfileNativeAgentName, string>\n> = Object.freeze({\n Explore: BALANCED_PROFILE_MODELS.explore,\n \"General-Purpose\": BALANCED_PROFILE_MODELS[\"General-Purpose\"],\n reviewer: BALANCED_PROFILE_MODELS.reviewer,\n})\n\nexport const BALANCED_PROFILE_NATIVE_EFFORTS = Object.freeze({\n Explore: \"high\",\n \"General-Purpose\": \"max\",\n reviewer: \"high\",\n} as const)\n\n/**\n * Lead context window (tokens) for `-m balanced`. The Sol LEAD runs at\n * Claude Code's DEFAULT (bare-slug) 200K budget — the whole point of the\n * balanced launch is frontier reasoning without any `[1m]` accounting.\n */\nexport const BALANCED_PROFILE_LEAD_CONTEXT_TOKENS = 200_000 as const\n\n/**\n * Subagent/peer context window (tokens). Every non-lead role (and the lead\n * as well) runs at Claude Code's DEFAULT (bare-slug) budget — 200K.\n */\nexport const BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS = 200_000 as const\n\nexport const BALANCED_PROFILE_LEAD_EFFORT = \"medium\" as const\nexport const BALANCED_PROFILE_ORACLE_MODEL = BALANCED_PROFILE_MODELS.oracle\nexport const BALANCED_PROFILE_ORACLE_EFFORT = \"medium\" as const\n\n/**\n * Synthesized MCP consultant tools for `-m balanced`: Oracle only, like\n * `-m cheap` (never `astra`).\n */\nexport const BALANCED_PROFILE_SYNTHESIZED_PEERS = [\"oracle\"] as const\nexport type BalancedProfileSynthesizedPeer =\n (typeof BALANCED_PROFILE_SYNTHESIZED_PEERS)[number]\n\n/** Each native role's permitted native-agent targets. The lead gets the roster.\n * Unlike the fast/cheap graphs, the balanced `reviewer` may invoke `Explore`\n * for targeted discovery: the Sol-backed reviewer narrows scope with\n * search first, then delegates scoped evidence questions rather than\n * sweeping the repository itself. There is no `Plan` role: the lead owns\n * planning directly. */\nexport const BALANCED_PROFILE_DELEGATION_GRAPH = Object.freeze({\n Explore: Object.freeze([]),\n \"General-Purpose\": Object.freeze([\"reviewer\"]),\n reviewer: Object.freeze([\"Explore\"]),\n} as const satisfies Record<\n BalancedProfileNativeAgentName,\n ReadonlyArray<BalancedProfileNativeAgentName>\n>)\n\n/**\n * Every fixed identity for `-m balanced` in one frozen aggregate.\n *\n * `balanced2-profile-contract.ts` derives from this by spread, overriding only\n * the Sol lead/reviewer identities and the Oracle. Keeping the aggregate here\n * means a field added to the family later is inherited by BOTH siblings\n * automatically instead of being silently absent from the copy nobody\n * remembered to edit.\n *\n * The family is Advisor-free by design, so there are deliberately no advisor\n * fields here.\n */\nexport const BALANCED_PROFILE_CONTRACT = Object.freeze({\n models: BALANCED_PROFILE_MODELS,\n nativeAgentNames: BALANCED_PROFILE_NATIVE_AGENT_NAMES,\n nativeModels: BALANCED_PROFILE_NATIVE_MODELS,\n nativeEfforts: BALANCED_PROFILE_NATIVE_EFFORTS,\n leadContextTokens: BALANCED_PROFILE_LEAD_CONTEXT_TOKENS,\n subagentContextTokens: BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS,\n leadEffort: BALANCED_PROFILE_LEAD_EFFORT,\n oracleModel: BALANCED_PROFILE_ORACLE_MODEL,\n oracleEffort: BALANCED_PROFILE_ORACLE_EFFORT,\n /**\n * Where the family's consultants are served. Both balanced members consult\n * Copilot. Present on every family contract so a consumer can read the field\n * off the union without narrowing to a member first.\n */\n consultTransport: \"copilot\" as const,\n synthesizedPeers: BALANCED_PROFILE_SYNTHESIZED_PEERS,\n delegationGraph: BALANCED_PROFILE_DELEGATION_GRAPH,\n})\n\nexport type BalancedProfileContract = typeof BALANCED_PROFILE_CONTRACT\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,0BAA0B,OAAO,OAAO;CACnD,MAAM;CACN,SAAS;CACT,mBAAmB;CACnB,UAAU;CACV,QAAQ;CACR,OAAO;AACT,CAAU;AAEV,MAAa,sCAAsC;CACjD;CACA;CACA;AACF;AAKA,MAAa,iCAET,OAAO,OAAO;CAChB,SAAS,wBAAwB;CACjC,mBAAmB,wBAAwB;CAC3C,UAAU,wBAAwB;AACpC,CAAC;AAED,MAAa,kCAAkC,OAAO,OAAO;CAC3D,SAAS;CACT,mBAAmB;CACnB,UAAU;AACZ,CAAU;;;;;;AAOV,MAAa,uCAAuC;;;;;AAMpD,MAAa,2CAA2C;AAExD,MAAa,+BAA+B;AAC5C,MAAa,gCAAgC,wBAAwB;AACrE,MAAa,iCAAiC;;;;;AAM9C,MAAa,qCAAqC,CAAC,QAAQ;;;;;;;AAU3D,MAAa,oCAAoC,OAAO,OAAO;CAC7D,SAAS,OAAO,OAAO,CAAC,CAAC;CACzB,mBAAmB,OAAO,OAAO,CAAC,UAAU,CAAC;CAC7C,UAAU,OAAO,OAAO,CAAC,SAAS,CAAC;AACrC,CAGC;;;;;;;;;;;;;AAcD,MAAa,4BAA4B,OAAO,OAAO;CACrD,QAAQ;CACR,kBAAkB;CAClB,cAAc;CACd,eAAe;CACf,mBAAmB;CACnB,uBAAuB;CACvB,YAAY;CACZ,aAAa;CACb,cAAc;;;;;;CAMd,kBAAkB;CAClB,kBAAkB;CAClB,iBAAiB;AACnB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "github-router browser bridge",
|
|
4
4
|
"short_name": "gh-router-browser",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.369",
|
|
6
6
|
"description": "Bridge between Claude (via github-router /mcp) and the browser. Implements tab control, navigation, clicks, form fill, downloads, screenshots, devtools eval. Blocks navigation to chrome://settings.",
|
|
7
7
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqJElxuBlonBS3TVW9FJN0mGTtShB3L1hoaYf6k39SOr1ogGYmF90EjRxy1i21k9wQQjPf26bcBu/9X67KrQjQV0uB38CaNukgiSeoLjfptN811u+PJHx6BP+jx3Qa6/3VenNPxHC8WEU0GXql8QSjIHEyCwKb6fMASXOK94JyB5Ywov2x8mt/+9ncqBBBMVzf6r5Sagy4PL1XnryLsuADD/vOEkPet8wXgH/Oj7v5tTsQQZ7U1JT51PoDs2BFnXc5v3TkVgZwd32k3ONh+nkDw1Hof+4zwUGOyJE6eMrlYzRlKM4Qxdf9JpavQvqfieAbTRWcyKeclnHeoIfE7cDBQIDAQAB",
|
|
8
8
|
"background": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ensurePaths } from "./paths-
|
|
2
|
-
import { r as setupGitHubToken } from "./token-
|
|
3
|
-
import { t as getCopilotUsage } from "./get-copilot-usage-
|
|
1
|
+
import { i as ensurePaths } from "./paths-C5477RGC.js";
|
|
2
|
+
import { r as setupGitHubToken } from "./token-OTb61rOC.js";
|
|
3
|
+
import { t as getCopilotUsage } from "./get-copilot-usage-BbGmK03C.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import consola from "consola";
|
|
6
6
|
//#region src/check-usage.ts
|
|
@@ -40,4 +40,4 @@ const checkUsage = defineCommand({
|
|
|
40
40
|
//#endregion
|
|
41
41
|
export { checkUsage };
|
|
42
42
|
|
|
43
|
-
//# sourceMappingURL=check-usage-
|
|
43
|
+
//# sourceMappingURL=check-usage-45vyaLfl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-usage-
|
|
1
|
+
{"version":3,"file":"check-usage-45vyaLfl.js","names":[],"sources":["../src/check-usage.ts"],"sourcesContent":["import { defineCommand } from \"citty\"\nimport consola from \"consola\"\n\nimport { ensurePaths } from \"./lib/paths\"\nimport { setupGitHubToken } from \"./lib/token\"\nimport {\n getCopilotUsage,\n type QuotaDetail,\n} from \"./services/github/get-copilot-usage\"\n\nexport const checkUsage = defineCommand({\n meta: {\n name: \"check-usage\",\n description: \"Show current GitHub Copilot usage/quota information\",\n },\n async run() {\n await ensurePaths()\n await setupGitHubToken()\n try {\n const usage = await getCopilotUsage()\n const premium = usage.quota_snapshots.premium_interactions\n const premiumTotal = premium.entitlement\n const premiumUsed = premiumTotal - premium.remaining\n const premiumPercentUsed =\n premiumTotal > 0 ? (premiumUsed / premiumTotal) * 100 : 0\n const premiumPercentRemaining = premium.percent_remaining\n\n // Helper to summarize a quota snapshot\n function summarizeQuota(name: string, snap: QuotaDetail | undefined) {\n if (!snap) return `${name}: N/A`\n const total = snap.entitlement\n const used = total - snap.remaining\n const percentUsed = total > 0 ? (used / total) * 100 : 0\n const percentRemaining = snap.percent_remaining\n return `${name}: ${used}/${total} used (${percentUsed.toFixed(1)}% used, ${percentRemaining.toFixed(1)}% remaining)`\n }\n\n const premiumLine = `Premium: ${premiumUsed}/${premiumTotal} used (${premiumPercentUsed.toFixed(1)}% used, ${premiumPercentRemaining.toFixed(1)}% remaining)`\n const chatLine = summarizeQuota(\"Chat\", usage.quota_snapshots.chat)\n const completionsLine = summarizeQuota(\n \"Completions\",\n usage.quota_snapshots.completions,\n )\n\n consola.box(\n `Copilot Usage (plan: ${usage.copilot_plan})\\n`\n + `Quota resets: ${usage.quota_reset_date}\\n`\n + `\\nQuotas:\\n`\n + ` ${premiumLine}\\n`\n + ` ${chatLine}\\n`\n + ` ${completionsLine}`,\n )\n } catch (err) {\n consola.error(\"Failed to fetch Copilot usage:\", err)\n process.exit(1)\n }\n },\n})\n"],"mappings":";;;;;;AAUA,MAAa,aAAa,cAAc;CACtC,MAAM;EACJ,MAAM;EACN,aAAa;CACf;CACA,MAAM,MAAM;EACV,MAAM,YAAY;EAClB,MAAM,iBAAiB;EACvB,IAAI;GACF,MAAM,QAAQ,MAAM,gBAAgB;GACpC,MAAM,UAAU,MAAM,gBAAgB;GACtC,MAAM,eAAe,QAAQ;GAC7B,MAAM,cAAc,eAAe,QAAQ;GAC3C,MAAM,qBACJ,eAAe,IAAK,cAAc,eAAgB,MAAM;GAC1D,MAAM,0BAA0B,QAAQ;GAGxC,SAAS,eAAe,MAAc,MAA+B;IACnE,IAAI,CAAC,MAAM,OAAO,GAAG,KAAK;IAC1B,MAAM,QAAQ,KAAK;IACnB,MAAM,OAAO,QAAQ,KAAK;IAC1B,MAAM,cAAc,QAAQ,IAAK,OAAO,QAAS,MAAM;IACvD,MAAM,mBAAmB,KAAK;IAC9B,OAAO,GAAG,KAAK,IAAI,KAAK,GAAG,MAAM,SAAS,YAAY,QAAQ,CAAC,EAAE,UAAU,iBAAiB,QAAQ,CAAC,EAAE;GACzG;GAEA,MAAM,cAAc,YAAY,YAAY,GAAG,aAAa,SAAS,mBAAmB,QAAQ,CAAC,EAAE,UAAU,wBAAwB,QAAQ,CAAC,EAAE;GAChJ,MAAM,WAAW,eAAe,QAAQ,MAAM,gBAAgB,IAAI;GAClE,MAAM,kBAAkB,eACtB,eACA,MAAM,gBAAgB,WACxB;GAEA,QAAQ,IACN,wBAAwB,MAAM,aAAa,mBACtB,MAAM,iBAAiB,iBAEnC,YAAY,MACZ,SAAS,MACT,iBACX;EACF,SAAS,KAAK;GACZ,QAAQ,MAAM,kCAAkC,GAAG;GACnD,QAAQ,KAAK,CAAC;EAChB;CACF;AACF,CAAC"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { P as warmTreeSitterPool } from "./service-backend-
|
|
2
|
-
import { d as writeArtifactCredsToMirror, o as purgeNonRouterAgentsFromMirror, r as ensureClaudeConfigMirror, s as removeOwnClaudeConfigMirror, t as PATHS } from "./paths-
|
|
1
|
+
import { P as warmTreeSitterPool } from "./service-backend-B6D_DY1Z.js";
|
|
2
|
+
import { d as writeArtifactCredsToMirror, f as writeLaunchBoundSyntheticCredential, o as purgeNonRouterAgentsFromMirror, r as ensureClaudeConfigMirror, s as removeOwnClaudeConfigMirror, t as PATHS } from "./paths-C5477RGC.js";
|
|
3
3
|
import { t as state } from "./state-CiwCLVDZ.js";
|
|
4
|
-
import { d as resolveModel } from "./token-
|
|
4
|
+
import { d as resolveModel } from "./token-OTb61rOC.js";
|
|
5
5
|
import { a as parseBoolEnv } from "./exec-Bf8g_bIR.js";
|
|
6
|
-
import {
|
|
6
|
+
import { $ as updateClaude, B as formatFastPrerequisiteFailure, G as validateCheap1mProfilePrerequisites, H as profileDescriptor, I as formatBalancedPrerequisiteFailure, J as validateFastProfilePrerequisites, K as validateCheapProfilePrerequisites, L as formatCheap1mPrerequisiteFailure, Q as checkClaudeVersion, R as formatCheapPrerequisiteFailure, S as enableFileLogging, U as resolveLaunchProfile, V as formatLocalPrerequisiteFailure, W as validateBalancedProfilePrerequisites, X as validateMaxProfileLaunch, Y as validateLocalProfilePrerequisites, Z as runSelfUpdate, a as setupAndServe, b as injectModelPickerSettingsFile, i as parseSharedArgs, o as sharedServerArgs, q as validateCheapestProfilePrerequisites, s as LAUNCH_SECRET_HEADER, t as getClaudeCodeEnvVars, v as startKeepAwake, x as listModelsForEndpoint, y as stopKeepAwake, z as formatCheapestPrerequisiteFailure } from "./server-setup-CIzmDJzT.js";
|
|
7
7
|
import { t as FAST_PROFILE_ADVISOR_CLIENT_MODEL } from "./fast-profile-contract-JOnZBgFB.js";
|
|
8
|
-
import { At as
|
|
9
|
-
import { S as
|
|
8
|
+
import { At as cheapestOracleModel, Bn as DEFAULT_CLAUDE_MODEL_FALLBACKS, Bt as fleetToolsEnabled, Ct as browseAgentEnabled, D as toolbeltEnabled, Dt as cheapOracleModel, E as buildToolbeltAwareness, Et as cheapAdvisorModel, Ft as fastGeneralPurposeModel, Gt as nativeSubagentModel, Ht as generalPurposeFastModel, It as fastOracleModel, Jn as pickClaudeDefault, Jt as reviewerModel, Kt as resolveGeminiReviewModel, Lt as fastPlanModel, Mn as provisionAndIndexColbert, Mt as cloudAgentToolsEnabled, Nn as semanticSearchOptedIn, Nt as fastAdvisorModel, Ot as cheapReviewerModel, Pn as shouldUseInsecureTls, Pt as fastAstraModel, Qt as workerToolsEnabled, Rt as fastReviewerModel, St as brainstormModel, T as availableToolCommands, Tn as provisionBrowserAssets, Tt as browserToolsEnabled, Ut as implementerFastModel, Vt as geminiAvailable, Wt as kustoToolsEnabled, Xt as scribeModel, Yn as resolveLeadSlugArg, Yt as scoutModel, Zt as standInToolEnabled, _t as adoToolsEnabled, bt as balancedOracleModel, dn as registerLaunch, in as localBaseUrl, ir as CHEAP_PROFILE_MODELS, jn as colbertDegradedWarning, jt as cheapestReviewerModel, kt as cheapestAdvisorModel, o as buildPeerAwarenessSnippet, pn as unregisterLaunch, qn as isBudgetClaudeLead, qt as reviewerFastModel, r as agentNamesForToolAllowlist, rn as configureLocalEgress, rr as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, s as buildPeerAwarenessSummary, sr as CHEAP_PROFILE_NATIVE_MODELS, un as launchBoundAccessToken, vt as agentToolsEnabled, wt as browserCompoundToolsEnabled, xt as balancedReviewerModel, yt as artifactToolsEnabled, zt as fastScoutModel } from "./peer-mcp-personas-DNtWI2C1.js";
|
|
9
|
+
import { S as localContractFor, _ as isCheapestFamily, b as isPinnedLaunchProfile, f as balancedContractFor, g as isBalancedFamily, h as displayModelName, k as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, p as cheapestContractFor, r as buildPromptSubmitHookCommand, x as local2AdvisorContract, y as isLocalFamily } from "./static-context-pack-DvwLWlbe.js";
|
|
10
10
|
import { _ as maxReviewerModel, c as formatMaxPrerequisiteFailure, f as maxCodexReviewerModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, m as maxGrokModel, o as MAX_PROFILE_NATIVE_EFFORTS, p as maxGeminiModel, v as maxSonnetModel } from "./max-profile-contract-Cx5_Z1Y7.js";
|
|
11
|
-
import { n as hookLauncherDegradedWarning, r as resolveSelfInvocation } from "./self-invocation-
|
|
12
|
-
import { i as launchChild, r as getCodexVersion, t as provisionToolbelt } from "./provision-
|
|
13
|
-
import { d as stopGateEnabledForRepo, l as repoFingerprint, p as trustRepo, t as fileBaselineStore, u as repoRoot } from "./stop-gate-policy-
|
|
14
|
-
import { d as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath
|
|
15
|
-
import { d as stopGateId, i as captureLaunchBaseline, l as purgeNonRouterHooksForPinnedProfile, n as buildSessionBindHookCommand, r as buildStopHookCommand, s as injectStopHookIntoSettingsFile, t as buildArtifactOpenHookCommand, u as stopGateDisabled } from "./stop-gate-hook-
|
|
16
|
-
import { t as liveExec } from "./orchestration-
|
|
17
|
-
import { l as guardToolMatcher, n as activeDispatchModes, r as buildWorkerGuardHookCommand } from "./worker-dispatch-
|
|
18
|
-
import { a as buildArtifactReviewSkill, c as injectAllowRules, f as injectPeerMcpIntoMirror, g as writePeerMcpRuntimeFiles, h as workersKeyOf, i as writeInjectedSkill, l as planModeAllowRules, m as resolveGroupKeysFromMirror, p as resolveCodexCliBackend, r as injectedSkillsForLaunch, t as injectAttributionSuppressionIntoSettingsFile } from "./attribution-settings-
|
|
11
|
+
import { n as hookLauncherDegradedWarning, r as resolveSelfInvocation } from "./self-invocation-BtcGj-lY.js";
|
|
12
|
+
import { i as launchChild, r as getCodexVersion, t as provisionToolbelt } from "./provision-DUWdcY_a.js";
|
|
13
|
+
import { d as stopGateEnabledForRepo, l as repoFingerprint, p as trustRepo, t as fileBaselineStore, u as repoRoot } from "./stop-gate-policy-Dx9c98_d.js";
|
|
14
|
+
import { d as removeAicLedgerFile, f as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath } from "./aic-ledger-_mvGW2Ev.js";
|
|
15
|
+
import { d as stopGateId, i as captureLaunchBaseline, l as purgeNonRouterHooksForPinnedProfile, n as buildSessionBindHookCommand, r as buildStopHookCommand, s as injectStopHookIntoSettingsFile, t as buildArtifactOpenHookCommand, u as stopGateDisabled } from "./stop-gate-hook-DnLC09Lg.js";
|
|
16
|
+
import { t as liveExec } from "./orchestration-D3-2ulhX.js";
|
|
17
|
+
import { l as guardToolMatcher, n as activeDispatchModes, r as buildWorkerGuardHookCommand } from "./worker-dispatch-B1w2qfjX.js";
|
|
18
|
+
import { a as buildArtifactReviewSkill, c as injectAllowRules, f as injectPeerMcpIntoMirror, g as writePeerMcpRuntimeFiles, h as workersKeyOf, i as writeInjectedSkill, l as planModeAllowRules, m as resolveGroupKeysFromMirror, p as resolveCodexCliBackend, r as injectedSkillsForLaunch, t as injectAttributionSuppressionIntoSettingsFile } from "./attribution-settings-zoBxw08y.js";
|
|
19
19
|
import { r as hookMcpRuntimeFromEnv } from "./hook-mcp-client-DERIkeR7.js";
|
|
20
|
-
import { i as planReviewEnabled, t as buildPlanReviewHookCommand } from "./plan-review-hook-
|
|
21
|
-
import { a as checksForDescriptor, i as writeDiscoveredGate, n as readDiscoveredGate, o as descriptorHash, r as sourcesHash, s as parseGateDescriptor, t as discoverGateCommands } from "./gate-discovery-
|
|
22
|
-
import { i as assertShapingInstalled, n as buildFirstMateGuardHookCommand, t as FIRST_MATE_GUARD_MATCHER } from "./internal-first-mate-guard-
|
|
23
|
-
import { r as FAST_DISPATCH_TOOL_MATCHER, t as buildFastDispatchGuardHookCommand } from "./internal-fast-dispatch-guard-
|
|
24
|
-
import { i as assertMaxDispatchGuardInstalled, r as MAX_DISPATCH_TOOL_MATCHER, t as buildMaxDispatchGuardHookCommand } from "./internal-max-dispatch-guard-
|
|
25
|
-
import { a as buildOperatingDefaultsDirective, c as prependOperatingDefaultsToMirroredClaudeMd, i as buildOperatingDefaultsDigest, l as prependStyleDirectiveToMirroredClaudeMd, n as appendPeerAwarenessToMirroredClaudeMd, r as appendToolbeltAwarenessToMirroredClaudeMd, s as prependArtifactPanelDirectiveToMirroredClaudeMd } from "./claude-md-injection-
|
|
26
|
-
import { a as injectAicStatusLineIntoSettingsFile, i as buildAicStatusHookCommand, r as AIC_USER_STATUSLINE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-
|
|
27
|
-
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-
|
|
20
|
+
import { i as planReviewEnabled, t as buildPlanReviewHookCommand } from "./plan-review-hook-C9K-em4D.js";
|
|
21
|
+
import { a as checksForDescriptor, i as writeDiscoveredGate, n as readDiscoveredGate, o as descriptorHash, r as sourcesHash, s as parseGateDescriptor, t as discoverGateCommands } from "./gate-discovery-BYyYeUnn.js";
|
|
22
|
+
import { i as assertShapingInstalled, n as buildFirstMateGuardHookCommand, t as FIRST_MATE_GUARD_MATCHER } from "./internal-first-mate-guard-GufCUMl3.js";
|
|
23
|
+
import { r as FAST_DISPATCH_TOOL_MATCHER, t as buildFastDispatchGuardHookCommand } from "./internal-fast-dispatch-guard-_n-A8hgo.js";
|
|
24
|
+
import { i as assertMaxDispatchGuardInstalled, r as MAX_DISPATCH_TOOL_MATCHER, t as buildMaxDispatchGuardHookCommand } from "./internal-max-dispatch-guard-BodVFHRC.js";
|
|
25
|
+
import { a as buildOperatingDefaultsDirective, c as prependOperatingDefaultsToMirroredClaudeMd, i as buildOperatingDefaultsDigest, l as prependStyleDirectiveToMirroredClaudeMd, n as appendPeerAwarenessToMirroredClaudeMd, r as appendToolbeltAwarenessToMirroredClaudeMd, s as prependArtifactPanelDirectiveToMirroredClaudeMd } from "./claude-md-injection-BtBG1RBZ.js";
|
|
26
|
+
import { a as injectAicStatusLineIntoSettingsFile, i as buildAicStatusHookCommand, r as AIC_USER_STATUSLINE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-B5EMMSFC.js";
|
|
27
|
+
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-BuDbQOHq.js";
|
|
28
28
|
import { defineCommand } from "citty";
|
|
29
29
|
import consola from "consola";
|
|
30
30
|
import path from "node:path";
|
|
@@ -219,7 +219,15 @@ const claudeArgs = {
|
|
|
219
219
|
model: {
|
|
220
220
|
alias: "m",
|
|
221
221
|
type: "string",
|
|
222
|
-
description: "Override the default model for Claude Code. Accepts a profile alias (fast, cheap, cheap1m, cheapest, cheapest2, balanced, balanced2, max), a full slug (e.g. claude-opus-4-7), or an Opus family shorthand (e.g. 4.7, 4.8, 4.6) which expands to the best variant for that family — adding the [1m] suffix when a 1M-context backend is in the catalog."
|
|
222
|
+
description: "Override the default model for Claude Code. Accepts a profile alias (fast, cheap, cheap1m, cheapest, cheapest2, cheaplocal, balanced, balanced2, max, local, local2), a full slug (e.g. claude-opus-4-7), or an Opus family shorthand (e.g. 4.7, 4.8, 4.6) which expands to the best variant for that family — adding the [1m] suffix when a 1M-context backend is in the catalog. `local` / `local2` send the main loop to a locally running Anthropic-compatible server instead of Copilot; `cheaplocal` keeps the main loop on Copilot and sends only its Advisor and Oracle there."
|
|
223
|
+
},
|
|
224
|
+
localport: {
|
|
225
|
+
type: "string",
|
|
226
|
+
description: "Port of the LOCAL MODEL SERVER that `-m local` / `-m local2` forward the main loop to (not the proxy's own --port). Default 11111, giving https://localhost:11111/v1. Inert on every other profile."
|
|
227
|
+
},
|
|
228
|
+
localurl: {
|
|
229
|
+
type: "string",
|
|
230
|
+
description: "Full base URL, including the /v1 prefix, of the local inference endpoint for `-m local` / `-m local2` (e.g. http://localhost:11111/v1). Sets scheme/host/path, which --localport cannot. Mutually exclusive with --localport. Inert on every other profile."
|
|
223
231
|
},
|
|
224
232
|
"codex-mcp": {
|
|
225
233
|
type: "boolean",
|
|
@@ -336,6 +344,17 @@ const claude = defineCommand({
|
|
|
336
344
|
}
|
|
337
345
|
const parsed = parseSharedArgs(args);
|
|
338
346
|
const requestedLaunchProfileId = resolveLaunchProfile(args.model);
|
|
347
|
+
try {
|
|
348
|
+
configureLocalEgress({
|
|
349
|
+
...typeof args.localurl === "string" ? { baseUrl: args.localurl } : {},
|
|
350
|
+
...typeof args.localport === "string" ? { port: args.localport } : {},
|
|
351
|
+
profileId: requestedLaunchProfileId
|
|
352
|
+
});
|
|
353
|
+
if (isLocalFamily(requestedLaunchProfileId)) consola.info(`[local] upstream ${localBaseUrl()}`);
|
|
354
|
+
} catch (error) {
|
|
355
|
+
process$1.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
356
|
+
process$1.exit(1);
|
|
357
|
+
}
|
|
339
358
|
const codexMcpEnabled = args["codex-mcp"] !== false;
|
|
340
359
|
const sweEnabled = args["swe"] === true;
|
|
341
360
|
if (requestedLaunchProfileId === "max" && args["codex-cli"]) {
|
|
@@ -440,10 +459,13 @@ const claude = defineCommand({
|
|
|
440
459
|
} else if (isBalancedFamily(launchProfileId)) {
|
|
441
460
|
const prereqCheck = validateBalancedProfilePrerequisites(state.models, {}, launchProfileId);
|
|
442
461
|
if (!prereqCheck.ok) await fastFatal(formatBalancedPrerequisiteFailure(prereqCheck.missing, launchProfileId));
|
|
462
|
+
} else if (isLocalFamily(launchProfileId)) {
|
|
463
|
+
const prereqCheck = validateLocalProfilePrerequisites(state.models, launchProfileId);
|
|
464
|
+
if (!prereqCheck.ok) await fastFatal(formatLocalPrerequisiteFailure(prereqCheck.missing, launchProfileId));
|
|
443
465
|
}
|
|
444
466
|
let chosenSlug = requestedSlug;
|
|
445
|
-
let resolvedSlug = resolveModel(chosenSlug);
|
|
446
|
-
if (usingDefault && state.models) {
|
|
467
|
+
let resolvedSlug = isLocalFamily(launchProfileId) ? chosenSlug : resolveModel(chosenSlug);
|
|
468
|
+
if (usingDefault && state.models && !isLocalFamily(launchProfileId)) {
|
|
447
469
|
const inCache = (slug) => state.models?.data.some((m) => m.id === resolveModel(slug)) ?? false;
|
|
448
470
|
if (!inCache(chosenSlug)) {
|
|
449
471
|
for (const fallback of DEFAULT_CLAUDE_MODEL_FALLBACKS) if (inCache(fallback)) {
|
|
@@ -456,7 +478,7 @@ const claude = defineCommand({
|
|
|
456
478
|
}
|
|
457
479
|
}
|
|
458
480
|
if (resolvedSlug !== chosenSlug) consola.info(`Model "${chosenSlug}" resolved to "${resolvedSlug}"`);
|
|
459
|
-
if (!state.models?.data.find((m) => m.id === resolvedSlug)) {
|
|
481
|
+
if (!(isLocalFamily(launchProfileId) ? void 0 : state.models?.data.find((m) => m.id === resolvedSlug)) && !isLocalFamily(launchProfileId)) {
|
|
460
482
|
const available = listModelsForEndpoint("/v1/messages");
|
|
461
483
|
consola.warn(`Model "${resolvedSlug}" not found. Available claude models: ${available.join(", ")}`);
|
|
462
484
|
}
|
|
@@ -488,7 +510,7 @@ const claude = defineCommand({
|
|
|
488
510
|
consola.warn(`Model-picker settings injection skipped: ${err instanceof Error ? err.message : String(err)}. Use an explicit -m model if the curated rows are unavailable.`);
|
|
489
511
|
}
|
|
490
512
|
const envVars = getClaudeCodeEnvVars(serverUrl, chosenSlug, launchProfileId, pickerModels);
|
|
491
|
-
if (launchProfileId === "cheap" || isCheapestFamily(launchProfileId) || isBalancedFamily(launchProfileId)) {
|
|
513
|
+
if (launchProfileId === "cheap" || isCheapestFamily(launchProfileId) || isBalancedFamily(launchProfileId) || isLocalFamily(launchProfileId)) {
|
|
492
514
|
const suspectKeys = [
|
|
493
515
|
"ANTHROPIC_MODEL",
|
|
494
516
|
"ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
@@ -537,6 +559,8 @@ const claude = defineCommand({
|
|
|
537
559
|
if (launchProfileId === "fast") extraArgs = withFixedFastAdvisorArg(extraArgs, fastAdvisorClientEnabled(process$1.env));
|
|
538
560
|
else if (launchProfileId === "cheap" || launchProfileId === "cheap1m" || isBalancedFamily(launchProfileId)) extraArgs = withFixedCheapAdvisorArg(extraArgs, cheapAdvisorClientEnabled(process$1.env));
|
|
539
561
|
else if (isCheapestFamily(launchProfileId)) extraArgs = withFixedCheapestAdvisorArg(extraArgs, cheapestAdvisorClientEnabled(process$1.env), cheapestContractFor(launchProfileId).advisorClientModel);
|
|
562
|
+
else if (launchProfileId === "local2") extraArgs = withFixedCheapestAdvisorArg(extraArgs, cheapestAdvisorClientEnabled(process$1.env), local2AdvisorContract().advisorClientModel);
|
|
563
|
+
else if (isLocalFamily(launchProfileId)) extraArgs = withFixedCheapestAdvisorArg(extraArgs, false);
|
|
540
564
|
if (toolbeltEnabled()) {
|
|
541
565
|
provisionToolbelt().catch((err) => consola.debug("Toolbelt provisioning failed:", err));
|
|
542
566
|
const toolbeltLine = buildToolbeltAwareness(availableToolCommands());
|
|
@@ -557,7 +581,7 @@ const claude = defineCommand({
|
|
|
557
581
|
await stopKeepAwake();
|
|
558
582
|
const { disposeBluebirdClients } = await import("./bluebird-client-DGE3WZqh.js");
|
|
559
583
|
await disposeBluebirdClients();
|
|
560
|
-
const { disposeAdoClients } = await import("./ado-tools-
|
|
584
|
+
const { disposeAdoClients } = await import("./ado-tools-C0sY_rX1.js");
|
|
561
585
|
await disposeAdoClients();
|
|
562
586
|
await removeOwnClaudeConfigMirror();
|
|
563
587
|
await removeAicLedgerFile();
|
|
@@ -569,7 +593,7 @@ const claude = defineCommand({
|
|
|
569
593
|
const isCheapLaunch = launchProfileId === "cheap" || launchProfileId === "cheap1m" || isCheapestFamily(launchProfileId) || isBalancedFamily(launchProfileId);
|
|
570
594
|
let fastWiringComplete = launchProfileId !== "fast" && !isCheapLaunch;
|
|
571
595
|
const astraAvailable = (launchProfileId === "fast" || launchProfileId === "cheap1m") && Boolean(fastAstraModel());
|
|
572
|
-
const browseAgentAvailable = browseAgentEnabled();
|
|
596
|
+
const browseAgentAvailable = browseAgentEnabled() && !isLocalFamily(launchProfileId);
|
|
573
597
|
const directBrowserAvailable = browserToolsEnabled();
|
|
574
598
|
const artifactAvailable = artifactToolsEnabled();
|
|
575
599
|
const resolvedMaxReviewerModel = launchProfileId === "max" ? maxReviewerModel() : void 0;
|
|
@@ -592,6 +616,10 @@ const claude = defineCommand({
|
|
|
592
616
|
Explore: balancedContractFor(launchProfileId).nativeModels.Explore,
|
|
593
617
|
"General-Purpose": balancedContractFor(launchProfileId).nativeModels["General-Purpose"],
|
|
594
618
|
reviewer: balancedReviewerModel(launchProfileId)
|
|
619
|
+
} : isLocalFamily(launchProfileId) ? {
|
|
620
|
+
Explore: localContractFor(launchProfileId).nativeModels.Explore,
|
|
621
|
+
"General-Purpose": localContractFor(launchProfileId).nativeModels["General-Purpose"],
|
|
622
|
+
reviewer: localContractFor(launchProfileId).nativeModels.reviewer
|
|
595
623
|
} : launchProfileId === "max" ? {
|
|
596
624
|
Explore: MAX_PROFILE_MODELS.luna,
|
|
597
625
|
Plan: MAX_PROFILE_MODELS.sol,
|
|
@@ -610,7 +638,7 @@ const claude = defineCommand({
|
|
|
610
638
|
"general-purpose-fast": generalPurposeFastModel()
|
|
611
639
|
};
|
|
612
640
|
const nativeAvailability = {
|
|
613
|
-
scoutAvailable: (launchProfileId === "fast" || launchProfileId === "cheap" || launchProfileId === "cheap1m" || isCheapestFamily(launchProfileId) || isBalancedFamily(launchProfileId) ? nativeAgentModels.Explore : nativeAgentModels.scout) != null,
|
|
641
|
+
scoutAvailable: (launchProfileId === "fast" || launchProfileId === "cheap" || launchProfileId === "cheap1m" || isCheapestFamily(launchProfileId) || isBalancedFamily(launchProfileId) || isLocalFamily(launchProfileId) ? nativeAgentModels.Explore : nativeAgentModels.scout) != null,
|
|
614
642
|
implementerFastAvailable: nativeAgentModels["implementer-fast"] != null,
|
|
615
643
|
reviewerFastAvailable: nativeAgentModels["reviewer-fast"] != null,
|
|
616
644
|
generalPurposeFastAvailable: nativeAgentModels["general-purpose-fast"] != null,
|
|
@@ -627,8 +655,9 @@ const claude = defineCommand({
|
|
|
627
655
|
const isFastProfile = launchProfileId === "fast";
|
|
628
656
|
const isMaxProfile = launchProfileId === "max";
|
|
629
657
|
const isCheapProfile = launchProfileId === "cheap" || launchProfileId === "cheap1m" || isCheapestFamily(launchProfileId) || isBalancedFamily(launchProfileId);
|
|
630
|
-
const
|
|
631
|
-
|
|
658
|
+
const isLocalProfile = isLocalFamily(launchProfileId);
|
|
659
|
+
const isPinnedProfile = isFastProfile || isMaxProfile || isCheapProfile || isLocalProfile;
|
|
660
|
+
if ((isFastProfile || isCheapProfile || isLocalProfile) && requestedCli) process$1.stderr.write("Fast/cheap profile uses its fixed HTTP MCP surface; ignoring --codex-cli.\n");
|
|
632
661
|
const backend = isPinnedProfile ? "http" : resolveCodexCliBackend({
|
|
633
662
|
requested: requestedCli,
|
|
634
663
|
codexInfo: requestedCli ? getCodexVersion() : null
|
|
@@ -644,6 +673,10 @@ const claude = defineCommand({
|
|
|
644
673
|
if (workerToolsEnabled() && !isPinnedProfile) baseGroups.push("workers");
|
|
645
674
|
if (isPinnedProfile && browseAgentAvailable) baseGroups.push("workers");
|
|
646
675
|
const enabledGroups = fastDescriptor.allowedGroups ? baseGroups.filter((g) => fastDescriptor.allowedGroups.has(g)) : baseGroups;
|
|
676
|
+
if (fastDescriptor.personaAllowlist && fastDescriptor.personaAllowlist.size === 0 && !artifactAvailable) {
|
|
677
|
+
const peersIndex = enabledGroups.indexOf("peers");
|
|
678
|
+
if (peersIndex >= 0) enabledGroups.splice(peersIndex, 1);
|
|
679
|
+
}
|
|
647
680
|
if (!isPinnedProfile && standInToolEnabled()) enabledGroups.push("decide");
|
|
648
681
|
if (isMaxProfile && maxOpusModel() !== void 0 && standInToolEnabled({ maxProfile: true })) enabledGroups.push("decide");
|
|
649
682
|
if (directBrowserAvailable && (!fastDescriptor.allowedGroups || fastDescriptor.allowedGroups.has("browser"))) enabledGroups.push("browser");
|
|
@@ -657,10 +690,15 @@ const claude = defineCommand({
|
|
|
657
690
|
if (isMaxProfile && agentToolsEnabled()) enabledGroups.push("first-mate");
|
|
658
691
|
const { keys: groupKeys, skipped: skippedGroups } = await resolveGroupKeysFromMirror(enabledGroups);
|
|
659
692
|
operatingGroupKeys = groupKeys;
|
|
660
|
-
if (
|
|
693
|
+
if (isLocalProfile) {
|
|
694
|
+
const localCheck = validateLocalProfilePrerequisites(state.models, launchProfileId);
|
|
695
|
+
if (!localCheck.ok) throw new Error(formatLocalPrerequisiteFailure(localCheck.missing, launchProfileId));
|
|
696
|
+
}
|
|
697
|
+
const consultIsLocal = isCheapestFamily(launchProfileId) && cheapestContractFor(launchProfileId).consultTransport === "local";
|
|
698
|
+
if (isPinnedProfile && !isLocalProfile && (!consultIsLocal && ((isCheapestFamily(launchProfileId) ? cheapestOracleModel(launchProfileId) : isBalancedFamily(launchProfileId) ? balancedOracleModel(launchProfileId) : isCheapProfile ? cheapOracleModel() : fastOracleModel()) == null || (isBalancedFamily(launchProfileId) ? false : (isCheapestFamily(launchProfileId) ? cheapestAdvisorModel(launchProfileId) : isCheapProfile ? cheapAdvisorModel() : fastAdvisorModel()) == null)) || nativeAgentModels.reviewer == null)) {
|
|
661
699
|
if (isCheapestFamily(launchProfileId)) {
|
|
662
700
|
const contract = cheapestContractFor(launchProfileId);
|
|
663
|
-
throw new Error(`${launchProfileId} profile prerequisite drift: exact reviewer (${displayModelName(contract.nativeModels.reviewer)}), oracle (${displayModelName(contract.oracleModel)}), or advisor (${displayModelName(contract.advisorModel)}) model no longer resolves`);
|
|
701
|
+
throw new Error(consultIsLocal ? `${launchProfileId} profile prerequisite drift: exact reviewer (${displayModelName(contract.nativeModels.reviewer)}) model no longer resolves` : `${launchProfileId} profile prerequisite drift: exact reviewer (${displayModelName(contract.nativeModels.reviewer)}), oracle (${displayModelName(contract.oracleModel)}), or advisor (${displayModelName(contract.advisorModel)}) model no longer resolves`);
|
|
664
702
|
}
|
|
665
703
|
if (isBalancedFamily(launchProfileId)) {
|
|
666
704
|
const contract = balancedContractFor(launchProfileId);
|
|
@@ -683,12 +721,12 @@ const claude = defineCommand({
|
|
|
683
721
|
reviewerModel: nativeAgentModels.reviewer,
|
|
684
722
|
reviewerFastModel: nativeAgentModels["reviewer-fast"],
|
|
685
723
|
brainstormModel: nativeAgentModels.brainstorm,
|
|
686
|
-
scoutModel: isFastProfile || isCheapProfile ? nativeAgentModels.Explore : nativeAgentModels.scout,
|
|
724
|
+
scoutModel: isFastProfile || isCheapProfile || isLocalProfile ? nativeAgentModels.Explore : nativeAgentModels.scout,
|
|
687
725
|
scribeModel: nativeAgentModels.scribe,
|
|
688
726
|
implementerFastModel: nativeAgentModels["implementer-fast"],
|
|
689
727
|
generalPurposeFastModel: nativeAgentModels["general-purpose-fast"],
|
|
690
728
|
nativeRoster: fastDescriptor.nativeRoster,
|
|
691
|
-
personaAllowlist: isFastProfile || isCheapProfile ? void 0 : fastDescriptor.personaAllowlist ? agentNamesForToolAllowlist(fastDescriptor.personaAllowlist) : void 0,
|
|
729
|
+
personaAllowlist: isFastProfile || isCheapProfile || isLocalProfile ? void 0 : fastDescriptor.personaAllowlist ? agentNamesForToolAllowlist(fastDescriptor.personaAllowlist) : void 0,
|
|
692
730
|
includeCoordinator: fastDescriptor.hasCoordinator,
|
|
693
731
|
semanticSearchAvailable: semanticSearchOptedIn() || state.bluebirdEnabled === true,
|
|
694
732
|
bluebirdEnabled: state.bluebirdEnabled === true,
|
|
@@ -700,6 +738,7 @@ const claude = defineCommand({
|
|
|
700
738
|
fastReviewerModel: nativeAgentModels.reviewer
|
|
701
739
|
} : isCheapestFamily(launchProfileId) ? {
|
|
702
740
|
cheapestProfile: true,
|
|
741
|
+
cheaplocalProfile: consultIsLocal,
|
|
703
742
|
cheapestExploreModel: nativeAgentModels.Explore,
|
|
704
743
|
cheapestGeneralPurposeModel: nativeAgentModels["General-Purpose"],
|
|
705
744
|
cheapestReviewerModel: nativeAgentModels.reviewer
|
|
@@ -708,6 +747,12 @@ const claude = defineCommand({
|
|
|
708
747
|
balancedExploreModel: nativeAgentModels.Explore,
|
|
709
748
|
balancedGeneralPurposeModel: nativeAgentModels["General-Purpose"],
|
|
710
749
|
balancedReviewerModel: nativeAgentModels.reviewer
|
|
750
|
+
} : isLocalProfile ? {
|
|
751
|
+
localProfile: true,
|
|
752
|
+
localExploreModel: nativeAgentModels.Explore,
|
|
753
|
+
localGeneralPurposeModel: nativeAgentModels["General-Purpose"],
|
|
754
|
+
localReviewerModel: nativeAgentModels.reviewer,
|
|
755
|
+
advisorAvailable: launchProfileId === "local2"
|
|
711
756
|
} : isCheapProfile ? {
|
|
712
757
|
cheapProfile: true,
|
|
713
758
|
cheapExploreModel: nativeAgentModels.Explore,
|
|
@@ -748,6 +793,11 @@ const claude = defineCommand({
|
|
|
748
793
|
allowedPersonas: fastDescriptor.personaAllowlist
|
|
749
794
|
});
|
|
750
795
|
if (isPinnedProfile) fastLaunchId = launchEntry.launchId;
|
|
796
|
+
if (isLocalFamily(launchProfileId)) try {
|
|
797
|
+
await writeLaunchBoundSyntheticCredential(launchBoundAccessToken(launchSecret));
|
|
798
|
+
} catch (err) {
|
|
799
|
+
consola.warn(`Could not bind this local launch's synthetic credential (${err instanceof Error ? err.message : String(err)}). Agent-team teammates would send unbound traffic for this session.`);
|
|
800
|
+
}
|
|
751
801
|
envVars.ANTHROPIC_CUSTOM_HEADERS = envVars.ANTHROPIC_CUSTOM_HEADERS ? `${envVars.ANTHROPIC_CUSTOM_HEADERS}\n${LAUNCH_SECRET_HEADER}: ${launchSecret}` : `${LAUNCH_SECRET_HEADER}: ${launchSecret}`;
|
|
752
802
|
envVars.GH_ROUTER_HOOK_MCP_URL = serverUrl;
|
|
753
803
|
envVars.GH_ROUTER_HOOK_NONCE = runtime.nonce;
|
|
@@ -769,7 +819,7 @@ const claude = defineCommand({
|
|
|
769
819
|
};
|
|
770
820
|
let subagentVisibility;
|
|
771
821
|
let injected;
|
|
772
|
-
if (isFastProfile || isCheapProfile) {
|
|
822
|
+
if (isFastProfile || isCheapProfile || isLocalProfile) {
|
|
773
823
|
extraArgs.push("--mcp-config", runtime.mcpConfigPath);
|
|
774
824
|
if (args["codex-mcp-only"] === true) extraArgs.push("--strict-mcp-config");
|
|
775
825
|
subagentVisibility = "role-scoped (lead via --mcp-config; subagents via inline mcpServers)";
|
|
@@ -787,7 +837,7 @@ const claude = defineCommand({
|
|
|
787
837
|
} else if (args["codex-mcp-only"] === true) consola.warn("--codex-mcp-only has no effect when peer MCP is wired via the mirrored .claude.json (the user's existing user-scope MCPs in the snapshot are still visible). Pass --no-codex-mcp to skip peer-MCP wiring entirely.");
|
|
788
838
|
subagentVisibility = injected.ok ? `subagent-visible (mirrored mcpServers: [${injected.serversAdded.join(", ")}])` : `subagent-INVISIBLE (collision on user-side mcpServers: [${injected.conflictingServers.join(", ")}]; parent-only via --mcp-config)`;
|
|
789
839
|
}
|
|
790
|
-
if (isFastProfile || isCheapProfile) {
|
|
840
|
+
if (isFastProfile || isCheapProfile || isLocalProfile) {
|
|
791
841
|
let fastGuardInstalled = false;
|
|
792
842
|
try {
|
|
793
843
|
const settingsPath = path.join(PATHS.CLAUDE_CONFIG_DIR, "settings.json");
|
|
@@ -853,7 +903,7 @@ const claude = defineCommand({
|
|
|
853
903
|
consola.warn(`Could not auto-approve injected tools: ${String(err)}`);
|
|
854
904
|
}
|
|
855
905
|
if (workerSkillsActive || isPinnedProfile && browseAgentAvailable) {
|
|
856
|
-
if (!(isFastProfile || isCheapProfile || injected?.ok === true)) consola.warn("Workers non-blocking guard NOT registered: subagent MCP injection fell back to parent-only (--mcp-config), so worker-* dispatchers cannot reach the workers server. Raw (blocking) worker tools remain usable on the main thread this session.");
|
|
906
|
+
if (!(isFastProfile || isCheapProfile || isLocalProfile || injected?.ok === true)) consola.warn("Workers non-blocking guard NOT registered: subagent MCP injection fell back to parent-only (--mcp-config), so worker-* dispatchers cannot reach the workers server. Raw (blocking) worker tools remain usable on the main thread this session.");
|
|
857
907
|
else if (process$1.env.GH_ROUTER_DISABLE_WORKER_GUARD === "1") consola.info("Workers non-blocking guard disabled via GH_ROUTER_DISABLE_WORKER_GUARD=1 — raw mcp__workers__* is callable on the main thread (blocking); the worker-* background agents remain the steered, non-blocking default.");
|
|
858
908
|
else try {
|
|
859
909
|
const settingsPath = path.join(PATHS.CLAUDE_CONFIG_DIR, "settings.json");
|
|
@@ -909,14 +959,14 @@ const claude = defineCommand({
|
|
|
909
959
|
consola.warn(`Could not register the artifact auto-open hook: ${String(err)}`);
|
|
910
960
|
}
|
|
911
961
|
}
|
|
912
|
-
if (!isFastProfile && !isCheapProfile && hookMcpRuntimeFromEnv(envVars) && planReviewEnabled()) try {
|
|
962
|
+
if (!isFastProfile && !isCheapProfile && !isLocalProfile && hookMcpRuntimeFromEnv(envVars) && planReviewEnabled()) try {
|
|
913
963
|
const settingsPath = path.join(PATHS.CLAUDE_CONFIG_DIR, "settings.json");
|
|
914
964
|
const command = buildPlanReviewHookCommand(selfInvocation);
|
|
915
965
|
await injectStopHookIntoSettingsFile(settingsPath, command, "PostToolUse", void 0, "ExitPlanMode");
|
|
916
966
|
} catch (err) {
|
|
917
967
|
consola.warn(`Could not register the advisory plan-review hook: ${String(err)}`);
|
|
918
968
|
}
|
|
919
|
-
if (!isFastProfile && !isCheapProfile && !isMaxProfile && args["trust-gate"] === true) try {
|
|
969
|
+
if (!isFastProfile && !isCheapProfile && !isLocalProfile && !isMaxProfile && args["trust-gate"] === true) try {
|
|
920
970
|
const root = await trustRepo(sessionCwd);
|
|
921
971
|
process$1.stderr.write(`Structural gate trusted for this repo (${root}); it will run on launch here from now on.\n`);
|
|
922
972
|
} catch (err) {
|
|
@@ -1142,4 +1192,4 @@ const claude = defineCommand({
|
|
|
1142
1192
|
//#endregion
|
|
1143
1193
|
export { claude };
|
|
1144
1194
|
|
|
1145
|
-
//# sourceMappingURL=claude-
|
|
1195
|
+
//# sourceMappingURL=claude-BbIfnWbm.js.map
|