github-router 0.3.332 → 0.3.333
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/{attribution-settings-BeO1w_DL.js → attribution-settings-Cu9cYRHf.js} +91 -51
- package/dist/attribution-settings-Cu9cYRHf.js.map +1 -0
- package/dist/balanced-profile-contract-CqFRoCUe.js +133 -0
- package/dist/balanced-profile-contract-CqFRoCUe.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-BQQPdXLb.js → claude-BObYdG2J.js} +13 -12
- package/dist/claude-BObYdG2J.js.map +1 -0
- package/dist/{codex-fW-hbxtT.js → codex-JnNE58nu.js} +4 -4
- package/dist/{codex-fW-hbxtT.js.map → codex-JnNE58nu.js.map} +1 -1
- package/dist/engine-DApePSq4.js +2 -0
- package/dist/{gate-discovery-DbwVeERm.js → gate-discovery-CljRUZjm.js} +2 -2
- package/dist/{gate-discovery-DbwVeERm.js.map → gate-discovery-CljRUZjm.js.map} +1 -1
- package/dist/hooks.mjs +52 -3
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-fast-dispatch-guard-DPR16qUE.js → internal-fast-dispatch-guard-BYRYbsFh.js} +1 -1
- package/dist/{internal-fast-dispatch-guard-DoXO3X7P.js → internal-fast-dispatch-guard-BuRlhFek.js} +26 -4
- package/dist/internal-fast-dispatch-guard-BuRlhFek.js.map +1 -0
- package/dist/{internal-stop-hook-DO8RKfKB.js → internal-stop-hook-Cz88dW5S.js} +2 -2
- package/dist/{internal-stop-hook-DO8RKfKB.js.map → internal-stop-hook-Cz88dW5S.js.map} +1 -1
- package/dist/main.js +6 -6
- package/dist/{peer-mcp-personas-CeB2Kcn2.js → peer-mcp-personas-CorhWEhi.js} +29 -80
- package/dist/peer-mcp-personas-CorhWEhi.js.map +1 -0
- package/dist/{provision-DZLsyRYh.js → provision-DwNx-PZA.js} +2 -2
- package/dist/{provision-DZLsyRYh.js.map → provision-DwNx-PZA.js.map} +1 -1
- package/dist/{serve-ik_96Q2Z.js → serve-Cu19zfEL.js} +5 -5
- package/dist/{serve-ik_96Q2Z.js.map → serve-Cu19zfEL.js.map} +1 -1
- package/dist/{server-setup-CK3O_Hwf.js → server-setup-Dz7chd0b.js} +42 -27
- package/dist/server-setup-Dz7chd0b.js.map +1 -0
- package/dist/{start-DPOJJSvp.js → start-BvN5FA6O.js} +3 -3
- package/dist/{start-DPOJJSvp.js.map → start-BvN5FA6O.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-BeO1w_DL.js.map +0 -1
- package/dist/claude-BQQPdXLb.js.map +0 -1
- package/dist/engine-E4WJGSeg.js +0 -2
- package/dist/fast-profile-contract-DmsyQQrw.js +0 -61
- package/dist/fast-profile-contract-DmsyQQrw.js.map +0 -1
- package/dist/internal-fast-dispatch-guard-DoXO3X7P.js.map +0 -1
- package/dist/peer-mcp-personas-CeB2Kcn2.js.map +0 -1
- package/dist/server-setup-CK3O_Hwf.js.map +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
//#region src/lib/fast-profile-contract.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fixed identities for the literal `github-router claude -m fast` profile.
|
|
4
|
+
*
|
|
5
|
+
* This module is deliberately dependency-free. Launch validation, request
|
|
6
|
+
* routing, native-agent generation, and the PreToolUse ACL all import the same
|
|
7
|
+
* literals so a role cannot silently mean different things at each boundary.
|
|
8
|
+
*/
|
|
9
|
+
const FAST_PROFILE_MODELS = Object.freeze({
|
|
10
|
+
luna: "gpt-5.6-luna",
|
|
11
|
+
sol: "gpt-5.6-sol",
|
|
12
|
+
gemini: "gemini-3.8-flash",
|
|
13
|
+
grok: "grok-4.6",
|
|
14
|
+
opus: "claude-opus-5",
|
|
15
|
+
sonnet: "claude-sonnet-5",
|
|
16
|
+
lead: "gemini-3.8-flash",
|
|
17
|
+
explore: "gpt-5.6-luna",
|
|
18
|
+
plan: "gpt-5.6-sol",
|
|
19
|
+
"General-Purpose": "gemini-3.8-flash",
|
|
20
|
+
reviewer: "claude-sonnet-5",
|
|
21
|
+
advisor: "gpt-5.6-sol",
|
|
22
|
+
oracle: "claude-opus-5",
|
|
23
|
+
astra: "gpt-6-astra"
|
|
24
|
+
});
|
|
25
|
+
const FAST_PROFILE_NATIVE_AGENT_NAMES = [
|
|
26
|
+
"Explore",
|
|
27
|
+
"Plan",
|
|
28
|
+
"General-Purpose",
|
|
29
|
+
"reviewer"
|
|
30
|
+
];
|
|
31
|
+
const FAST_PROFILE_NATIVE_MODELS = Object.freeze({
|
|
32
|
+
Explore: FAST_PROFILE_MODELS.luna,
|
|
33
|
+
Plan: FAST_PROFILE_MODELS.sol,
|
|
34
|
+
"General-Purpose": FAST_PROFILE_MODELS.gemini,
|
|
35
|
+
reviewer: FAST_PROFILE_MODELS.reviewer
|
|
36
|
+
});
|
|
37
|
+
const FAST_PROFILE_NATIVE_EFFORTS = Object.freeze({
|
|
38
|
+
Explore: "high",
|
|
39
|
+
Plan: "high",
|
|
40
|
+
"General-Purpose": "high",
|
|
41
|
+
reviewer: "xhigh"
|
|
42
|
+
});
|
|
43
|
+
const FAST_PROFILE_ADVISOR_MODEL = FAST_PROFILE_MODELS.advisor;
|
|
44
|
+
const FAST_PROFILE_ADVISOR_CLIENT_MODEL = `${FAST_PROFILE_ADVISOR_MODEL}[1m]`;
|
|
45
|
+
const FAST_PROFILE_ADVISOR_EFFORT = "high";
|
|
46
|
+
const FAST_PROFILE_ORACLE_MODEL = FAST_PROFILE_MODELS.oracle;
|
|
47
|
+
const FAST_PROFILE_ORACLE_EFFORT = "high";
|
|
48
|
+
const FAST_PROFILE_ASTRA_MODEL = FAST_PROFILE_MODELS.astra;
|
|
49
|
+
const FAST_PROFILE_ASTRA_EFFORT = "high";
|
|
50
|
+
const FAST_PROFILE_ASTRA_PROMPT_TOKENS = 2e5;
|
|
51
|
+
/** Each native role's permitted native-agent targets. The lead gets the roster. */
|
|
52
|
+
const FAST_PROFILE_DELEGATION_GRAPH = Object.freeze({
|
|
53
|
+
Explore: Object.freeze([]),
|
|
54
|
+
Plan: Object.freeze(["Explore", "reviewer"]),
|
|
55
|
+
"General-Purpose": Object.freeze(["reviewer"]),
|
|
56
|
+
reviewer: Object.freeze([])
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/lib/balanced-profile-contract.ts
|
|
60
|
+
/**
|
|
61
|
+
* Fixed identities for the literal `github-router claude -m balanced` profile.
|
|
62
|
+
*
|
|
63
|
+
* The most-complex-tasks tier: a `gpt-5.6-sol`/medium LEAD at Claude Code's
|
|
64
|
+
* DEFAULT (bare-slug) 200K window, every subagent at the same 200K default,
|
|
65
|
+
* a `gpt-5.6-sol`/medium Advisor (bare slug), and a `grok-4.6`/medium primary
|
|
66
|
+
* Oracle. Oracle-only peer set (no `astra`) and the same four-agent surface
|
|
67
|
+
* as the cheap family minus `implementer`, except the `reviewer` may invoke
|
|
68
|
+
* `Explore` for targeted discovery (search-first, then delegate).
|
|
69
|
+
*
|
|
70
|
+
* Delegation policy is lead-owns-by-default: the lead plans, implements,
|
|
71
|
+
* and verifies itself, delegating FREELY to the Luna-powered `Explore` and
|
|
72
|
+
* `General-Purpose` roles, and to `Plan`/`reviewer` ONLY when genuinely
|
|
73
|
+
* needed (complex sequencing / behavior-changing review).
|
|
74
|
+
*
|
|
75
|
+
* This module is deliberately dependency-free, including its own delegation
|
|
76
|
+
* graph literal: balanced shares cheap's authority shape today, but each
|
|
77
|
+
* pinned profile owns its graph so tuning one roster cannot silently retune
|
|
78
|
+
* another. The PreToolUse ACL reads each profile's own graph.
|
|
79
|
+
*/
|
|
80
|
+
const BALANCED_PROFILE_MODELS = Object.freeze({
|
|
81
|
+
lead: "gpt-5.6-sol",
|
|
82
|
+
explore: "gpt-5.6-luna",
|
|
83
|
+
plan: "gpt-5.6-sol",
|
|
84
|
+
"General-Purpose": "gpt-5.6-luna",
|
|
85
|
+
reviewer: "gemini-3.8-flash",
|
|
86
|
+
advisor: "gpt-5.6-sol",
|
|
87
|
+
oracle: "grok-4.6",
|
|
88
|
+
astra: "gpt-6-astra"
|
|
89
|
+
});
|
|
90
|
+
const BALANCED_PROFILE_NATIVE_AGENT_NAMES = [
|
|
91
|
+
"Explore",
|
|
92
|
+
"Plan",
|
|
93
|
+
"General-Purpose",
|
|
94
|
+
"reviewer"
|
|
95
|
+
];
|
|
96
|
+
const BALANCED_PROFILE_NATIVE_MODELS = Object.freeze({
|
|
97
|
+
Explore: BALANCED_PROFILE_MODELS.explore,
|
|
98
|
+
Plan: BALANCED_PROFILE_MODELS.plan,
|
|
99
|
+
"General-Purpose": BALANCED_PROFILE_MODELS["General-Purpose"],
|
|
100
|
+
reviewer: BALANCED_PROFILE_MODELS.reviewer
|
|
101
|
+
});
|
|
102
|
+
const BALANCED_PROFILE_NATIVE_EFFORTS = Object.freeze({
|
|
103
|
+
Explore: "high",
|
|
104
|
+
Plan: "high",
|
|
105
|
+
"General-Purpose": "max",
|
|
106
|
+
reviewer: "high"
|
|
107
|
+
});
|
|
108
|
+
/**
|
|
109
|
+
* Subagent/peer context window (tokens). Every non-lead role (and the lead
|
|
110
|
+
* as well) runs at Claude Code's DEFAULT (bare-slug) budget — 200K.
|
|
111
|
+
*/
|
|
112
|
+
const BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS = 2e5;
|
|
113
|
+
const BALANCED_PROFILE_ADVISOR_MODEL = BALANCED_PROFILE_MODELS.advisor;
|
|
114
|
+
BALANCED_PROFILE_MODELS.advisor;
|
|
115
|
+
const BALANCED_PROFILE_LEAD_EFFORT = "medium";
|
|
116
|
+
const BALANCED_PROFILE_ADVISOR_EFFORT = "medium";
|
|
117
|
+
const BALANCED_PROFILE_ORACLE_MODEL = BALANCED_PROFILE_MODELS.oracle;
|
|
118
|
+
const BALANCED_PROFILE_ORACLE_EFFORT = "medium";
|
|
119
|
+
/** Each native role's permitted native-agent targets. The lead gets the roster.
|
|
120
|
+
* Unlike the fast/cheap graphs, the balanced `reviewer` may invoke `Explore`
|
|
121
|
+
* for targeted discovery: the Gemini-backed reviewer narrows scope with
|
|
122
|
+
* search first, then delegates scoped evidence questions rather than
|
|
123
|
+
* sweeping the repository itself. */
|
|
124
|
+
const BALANCED_PROFILE_DELEGATION_GRAPH = Object.freeze({
|
|
125
|
+
Explore: Object.freeze([]),
|
|
126
|
+
Plan: Object.freeze(["Explore", "reviewer"]),
|
|
127
|
+
"General-Purpose": Object.freeze(["reviewer"]),
|
|
128
|
+
reviewer: Object.freeze(["Explore"])
|
|
129
|
+
});
|
|
130
|
+
//#endregion
|
|
131
|
+
export { FAST_PROFILE_ORACLE_EFFORT as C, FAST_PROFILE_NATIVE_MODELS as S, FAST_PROFILE_ASTRA_PROMPT_TOKENS as _, BALANCED_PROFILE_MODELS as a, FAST_PROFILE_NATIVE_AGENT_NAMES as b, BALANCED_PROFILE_NATIVE_MODELS as c, BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS as d, FAST_PROFILE_ADVISOR_CLIENT_MODEL as f, FAST_PROFILE_ASTRA_MODEL as g, FAST_PROFILE_ASTRA_EFFORT as h, BALANCED_PROFILE_LEAD_EFFORT as i, BALANCED_PROFILE_ORACLE_EFFORT as l, FAST_PROFILE_ADVISOR_MODEL as m, BALANCED_PROFILE_ADVISOR_MODEL as n, BALANCED_PROFILE_NATIVE_AGENT_NAMES as o, FAST_PROFILE_ADVISOR_EFFORT as p, BALANCED_PROFILE_DELEGATION_GRAPH as r, BALANCED_PROFILE_NATIVE_EFFORTS as s, BALANCED_PROFILE_ADVISOR_EFFORT as t, BALANCED_PROFILE_ORACLE_MODEL as u, FAST_PROFILE_DELEGATION_GRAPH as v, FAST_PROFILE_ORACLE_MODEL as w, FAST_PROFILE_NATIVE_EFFORTS as x, FAST_PROFILE_MODELS as y };
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=balanced-profile-contract-CqFRoCUe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balanced-profile-contract-CqFRoCUe.js","names":[],"sources":["../src/lib/fast-profile-contract.ts","../src/lib/balanced-profile-contract.ts"],"sourcesContent":["/**\n * Fixed identities for the literal `github-router claude -m fast` profile.\n *\n * This module is deliberately dependency-free. Launch validation, request\n * routing, native-agent generation, and the PreToolUse ACL all import the same\n * literals so a role cannot silently mean different things at each boundary.\n */\n\nexport const FAST_PROFILE_MODELS = Object.freeze({\n luna: \"gpt-5.6-luna\",\n sol: \"gpt-5.6-sol\",\n gemini: \"gemini-3.8-flash\",\n grok: \"grok-4.6\",\n opus: \"claude-opus-5\",\n sonnet: \"claude-sonnet-5\",\n lead: \"gemini-3.8-flash\",\n explore: \"gpt-5.6-luna\",\n plan: \"gpt-5.6-sol\",\n \"General-Purpose\": \"gemini-3.8-flash\",\n reviewer: \"claude-sonnet-5\",\n advisor: \"gpt-5.6-sol\",\n oracle: \"claude-opus-5\",\n astra: \"gpt-6-astra\",\n} as const)\n\nexport const FAST_PROFILE_NATIVE_AGENT_NAMES = [\n \"Explore\",\n \"Plan\",\n \"General-Purpose\",\n \"reviewer\",\n] as const\n\nexport type FastProfileNativeAgentName =\n (typeof FAST_PROFILE_NATIVE_AGENT_NAMES)[number]\n\nexport const FAST_PROFILE_NATIVE_MODELS: Readonly<\n Record<FastProfileNativeAgentName, string>\n> = Object.freeze({\n Explore: FAST_PROFILE_MODELS.luna,\n Plan: FAST_PROFILE_MODELS.sol,\n \"General-Purpose\": FAST_PROFILE_MODELS.gemini,\n reviewer: FAST_PROFILE_MODELS.reviewer,\n})\n\nexport const FAST_PROFILE_NATIVE_EFFORTS = Object.freeze({\n Explore: \"high\",\n Plan: \"high\",\n \"General-Purpose\": \"high\",\n reviewer: \"xhigh\",\n} as const)\n\nexport const FAST_PROFILE_ADVISOR_MODEL = FAST_PROFILE_MODELS.advisor\nexport const FAST_PROFILE_ADVISOR_CLIENT_MODEL =\n `${FAST_PROFILE_ADVISOR_MODEL}[1m]` as const\nexport const FAST_PROFILE_ADVISOR_EFFORT = \"high\" as const\nexport const FAST_PROFILE_ORACLE_MODEL = FAST_PROFILE_MODELS.oracle\nexport const FAST_PROFILE_ORACLE_EFFORT = \"high\" as const\nexport const FAST_PROFILE_ASTRA_MODEL = FAST_PROFILE_MODELS.astra\nexport const FAST_PROFILE_ASTRA_EFFORT = \"high\" as const\nexport const FAST_PROFILE_ASTRA_PROMPT_TOKENS = 200_000 as const\n\n/** Synthesized MCP consultant tools specific to the fast profile. */\nexport const FAST_PROFILE_SYNTHESIZED_PEERS = [\"oracle\", \"astra\"] as const\nexport type FastProfileSynthesizedPeer = (typeof FAST_PROFILE_SYNTHESIZED_PEERS)[number]\n\n/** Each native role's permitted native-agent targets. The lead gets the roster. */\nexport const FAST_PROFILE_DELEGATION_GRAPH = Object.freeze({\n Explore: Object.freeze([]),\n Plan: Object.freeze([\"Explore\", \"reviewer\"]),\n \"General-Purpose\": Object.freeze([\"reviewer\"]),\n reviewer: Object.freeze([]),\n} as const satisfies Record<\n FastProfileNativeAgentName,\n ReadonlyArray<FastProfileNativeAgentName>\n>)\n","/**\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 * a `gpt-5.6-sol`/medium Advisor (bare slug), and a `grok-4.6`/medium primary\n * Oracle. Oracle-only peer set (no `astra`) and the same four-agent surface\n * as the cheap family minus `implementer`, except the `reviewer` may invoke\n * `Explore` for 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 `Plan`/`reviewer` ONLY when genuinely\n * needed (complex sequencing / behavior-changing review).\n *\n * This module is deliberately dependency-free, including its own delegation\n * graph literal: balanced shares cheap's authority shape today, but each\n * pinned profile owns its graph so tuning one roster cannot silently retune\n * another. The PreToolUse ACL reads each profile's own graph.\n */\n\nexport const BALANCED_PROFILE_MODELS = Object.freeze({\n lead: \"gpt-5.6-sol\",\n explore: \"gpt-5.6-luna\",\n plan: \"gpt-5.6-sol\",\n \"General-Purpose\": \"gpt-5.6-luna\",\n reviewer: \"gemini-3.8-flash\",\n advisor: \"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 \"Plan\",\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 Plan: BALANCED_PROFILE_MODELS.plan,\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 Plan: \"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_ADVISOR_MODEL = BALANCED_PROFILE_MODELS.advisor\n/**\n * Client-visible Advisor identity for balanced mode. The BARE Sol slug\n * (no `[1m]` bracket): Claude Code budgets the Advisor tool as a 200K-model\n * and forwards no more than ~200K of the lead's transcript, and the proxy\n * mirrors that with `BALANCED_PROFILE_ADVISOR_CONTEXT_TOKENS`.\n */\nexport const BALANCED_PROFILE_ADVISOR_CLIENT_MODEL =\n BALANCED_PROFILE_MODELS.advisor\n/** Advisor context window for balanced mode (tokens). */\nexport const BALANCED_PROFILE_ADVISOR_CONTEXT_TOKENS =\n BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS\nexport const BALANCED_PROFILE_LEAD_EFFORT = \"medium\" as const\nexport const BALANCED_PROFILE_ADVISOR_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 Gemini-backed reviewer narrows scope with\n * search first, then delegates scoped evidence questions rather than\n * sweeping the repository itself. */\nexport const BALANCED_PROFILE_DELEGATION_GRAPH = Object.freeze({\n Explore: Object.freeze([]),\n Plan: Object.freeze([\"Explore\", \"reviewer\"]),\n \"General-Purpose\": Object.freeze([\"reviewer\"]),\n reviewer: Object.freeze([\"Explore\"]),\n} as const satisfies Record<\n BalancedProfileNativeAgentName,\n ReadonlyArray<BalancedProfileNativeAgentName>\n>)\n"],"mappings":";;;;;;;;AAQA,MAAa,sBAAsB,OAAO,OAAO;CAC/C,MAAM;CACN,KAAK;CACL,QAAQ;CACR,MAAM;CACN,MAAM;CACN,QAAQ;CACR,MAAM;CACN,SAAS;CACT,MAAM;CACN,mBAAmB;CACnB,UAAU;CACV,SAAS;CACT,QAAQ;CACR,OAAO;AACT,CAAU;AAEV,MAAa,kCAAkC;CAC7C;CACA;CACA;CACA;AACF;AAKA,MAAa,6BAET,OAAO,OAAO;CAChB,SAAS,oBAAoB;CAC7B,MAAM,oBAAoB;CAC1B,mBAAmB,oBAAoB;CACvC,UAAU,oBAAoB;AAChC,CAAC;AAED,MAAa,8BAA8B,OAAO,OAAO;CACvD,SAAS;CACT,MAAM;CACN,mBAAmB;CACnB,UAAU;AACZ,CAAU;AAEV,MAAa,6BAA6B,oBAAoB;AAC9D,MAAa,oCACX,GAAG,2BAA2B;AAChC,MAAa,8BAA8B;AAC3C,MAAa,4BAA4B,oBAAoB;AAC7D,MAAa,6BAA6B;AAC1C,MAAa,2BAA2B,oBAAoB;AAC5D,MAAa,4BAA4B;AACzC,MAAa,mCAAmC;;AAOhD,MAAa,gCAAgC,OAAO,OAAO;CACzD,SAAS,OAAO,OAAO,CAAC,CAAC;CACzB,MAAM,OAAO,OAAO,CAAC,WAAW,UAAU,CAAC;CAC3C,mBAAmB,OAAO,OAAO,CAAC,UAAU,CAAC;CAC7C,UAAU,OAAO,OAAO,CAAC,CAAC;AAC5B,CAGC;;;;;;;;;;;;;;;;;;;;;;;ACrDD,MAAa,0BAA0B,OAAO,OAAO;CACnD,MAAM;CACN,SAAS;CACT,MAAM;CACN,mBAAmB;CACnB,UAAU;CACV,SAAS;CACT,QAAQ;CACR,OAAO;AACT,CAAU;AAEV,MAAa,sCAAsC;CACjD;CACA;CACA;CACA;AACF;AAKA,MAAa,iCAET,OAAO,OAAO;CAChB,SAAS,wBAAwB;CACjC,MAAM,wBAAwB;CAC9B,mBAAmB,wBAAwB;CAC3C,UAAU,wBAAwB;AACpC,CAAC;AAED,MAAa,kCAAkC,OAAO,OAAO;CAC3D,SAAS;CACT,MAAM;CACN,mBAAmB;CACnB,UAAU;AACZ,CAAU;;;;;AAaV,MAAa,2CAA2C;AAExD,MAAa,iCAAiC,wBAAwB;AAQpE,wBAAwB;AAI1B,MAAa,+BAA+B;AAC5C,MAAa,kCAAkC;AAC/C,MAAa,gCAAgC,wBAAwB;AACrE,MAAa,iCAAiC;;;;;;AAe9C,MAAa,oCAAoC,OAAO,OAAO;CAC7D,SAAS,OAAO,OAAO,CAAC,CAAC;CACzB,MAAM,OAAO,OAAO,CAAC,WAAW,UAAU,CAAC;CAC3C,mBAAmB,OAAO,OAAO,CAAC,UAAU,CAAC;CAC7C,UAAU,OAAO,OAAO,CAAC,SAAS,CAAC;AACrC,CAGC"}
|
|
@@ -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.333",
|
|
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": {
|
|
@@ -3,24 +3,24 @@ import { d as writeArtifactCredsToMirror, o as purgeNonRouterAgentsFromMirror, r
|
|
|
3
3
|
import { t as state } from "./state-CVp30CBF.js";
|
|
4
4
|
import { d as resolveModel } from "./token-DATA_OQK.js";
|
|
5
5
|
import { i as parseBoolEnv } from "./exec-MCU1H-KZ.js";
|
|
6
|
-
import { A as profileDescriptor, B as updateClaude, D as formatCheapPrerequisiteFailure, E as formatCheap1mPrerequisiteFailure, F as validateCheapestProfilePrerequisites, I as validateFastProfilePrerequisites, L as validateMaxProfileLaunch, M as validateBalancedProfilePrerequisites, N as validateCheap1mProfilePrerequisites, O as formatCheapestPrerequisiteFailure, P as validateCheapProfilePrerequisites, R as runSelfUpdate, T as formatBalancedPrerequisiteFailure, a as sharedServerArgs, c as stopKeepAwake, d as enableFileLogging, i as setupAndServe, j as resolveLaunchProfile, k as formatFastPrerequisiteFailure, l as injectModelPickerSettingsFile, o as LAUNCH_SECRET_HEADER, r as parseSharedArgs, s as startKeepAwake, t as getClaudeCodeEnvVars, u as listModelsForEndpoint, z as checkClaudeVersion } from "./server-setup-
|
|
7
|
-
import {
|
|
8
|
-
import { At as implementerFastModel, Cn as pickClaudeDefault, Ct as fastOracleModel, D as toolbeltEnabled, Dt as fleetToolsEnabled, E as buildToolbeltAwareness, Et as fastScoutModel,
|
|
6
|
+
import { A as profileDescriptor, B as updateClaude, D as formatCheapPrerequisiteFailure, E as formatCheap1mPrerequisiteFailure, F as validateCheapestProfilePrerequisites, I as validateFastProfilePrerequisites, L as validateMaxProfileLaunch, M as validateBalancedProfilePrerequisites, N as validateCheap1mProfilePrerequisites, O as formatCheapestPrerequisiteFailure, P as validateCheapProfilePrerequisites, R as runSelfUpdate, T as formatBalancedPrerequisiteFailure, a as sharedServerArgs, c as stopKeepAwake, d as enableFileLogging, i as setupAndServe, j as resolveLaunchProfile, k as formatFastPrerequisiteFailure, l as injectModelPickerSettingsFile, o as LAUNCH_SECRET_HEADER, r as parseSharedArgs, s as startKeepAwake, t as getClaudeCodeEnvVars, u as listModelsForEndpoint, z as checkClaudeVersion } from "./server-setup-Dz7chd0b.js";
|
|
7
|
+
import { c as BALANCED_PROFILE_NATIVE_MODELS, f as FAST_PROFILE_ADVISOR_CLIENT_MODEL } from "./balanced-profile-contract-CqFRoCUe.js";
|
|
8
|
+
import { At as implementerFastModel, Cn as pickClaudeDefault, Ct as fastOracleModel, D as toolbeltEnabled, Dt as fleetToolsEnabled, E as buildToolbeltAwareness, Et as fastScoutModel, Ft as scoutModel, Hn as CHEAP_PROFILE_NATIVE_MODELS, In as CHEAPEST_PROFILE_NATIVE_MODELS, It as scribeModel, Kt as registerLaunch, Lt as standInToolEnabled, Mn as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, Mt as resolveGeminiReviewModel, Nt as reviewerFastModel, Ot as geminiAvailable, Pt as reviewerModel, Rn as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, Rt as workerToolsEnabled, Sn as isBudgetClaudeLead, St as fastGeneralPurposeModel, T as availableToolCommands, Tt as fastReviewerModel, _t as cheapestAdvisorModel, an as colbertDegradedWarning, at as agentToolsEnabled, bt as fastAdvisorModel, ct as balancedOracleModel, dt as browseAgentEnabled, ft as browserCompoundToolsEnabled, gt as cheapReviewerModel, hn as DEFAULT_CLAUDE_MODEL_FALLBACKS, ht as cheapOracleModel, jt as nativeSubagentModel, kt as generalPurposeFastModel, lt as balancedReviewerModel, mt as cheapAdvisorModel, o as buildPeerAwarenessSnippet, on as provisionAndIndexColbert, ot as artifactToolsEnabled, pt as browserToolsEnabled, qt as unregisterLaunch, r as agentNamesForToolAllowlist, rn as provisionBrowserAssets, s as buildPeerAwarenessSummary, sn as semanticSearchOptedIn, st as balancedAdvisorModel, un as shouldUseInsecureTls, ut as brainstormModel, vt as cheapestOracleModel, wn as resolveLeadSlugArg, wt as fastPlanModel, xt as fastAstraModel, yt as cheapestReviewerModel } from "./peer-mcp-personas-CorhWEhi.js";
|
|
9
9
|
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-MJJt0zm-.js";
|
|
10
10
|
import { n as hookLauncherDegradedWarning, r as resolveSelfInvocation, t as buildSelfCommand } from "./self-invocation-DIUyoRgL.js";
|
|
11
|
-
import { i as launchChild, r as getCodexVersion, t as provisionToolbelt } from "./provision-
|
|
11
|
+
import { i as launchChild, r as getCodexVersion, t as provisionToolbelt } from "./provision-DwNx-PZA.js";
|
|
12
12
|
import { d as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath, u as removeAicLedgerFile } from "./aic-ledger-D4fmThbS.js";
|
|
13
13
|
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-DZVfKoSh.js";
|
|
14
14
|
import { t as liveExec } from "./orchestration-Ccmfslh4.js";
|
|
15
15
|
import { c as repoRoot, d as trustRepo, l as stopGateEnabledForRepo, s as repoFingerprint, t as fileBaselineStore } from "./stop-gate-policy-Gd_cNT9-.js";
|
|
16
16
|
import { l as guardToolMatcher, n as activeDispatchModes, r as buildWorkerGuardHookCommand } from "./worker-dispatch-lRhno09M.js";
|
|
17
|
-
import { C as writePeerMcpRuntimeFiles, S as workersKeyOf, a as appendPeerAwarenessToMirroredClaudeMd, b as resolveCodexCliBackend, c as buildOperatingDefaultsDirective, d as prependStyleDirectiveToMirroredClaudeMd, f as buildArtifactReviewSkill, g as planModeAllowRules, h as injectAllowRules, i as writeInjectedSkill, l as prependArtifactPanelDirectiveToMirroredClaudeMd, o as appendToolbeltAwarenessToMirroredClaudeMd, r as injectedSkillsForLaunch, s as buildOperatingDefaultsDigest, t as injectAttributionSuppressionIntoSettingsFile, u as prependOperatingDefaultsToMirroredClaudeMd, x as resolveGroupKeysFromMirror, y as injectPeerMcpIntoMirror } from "./attribution-settings-
|
|
17
|
+
import { C as writePeerMcpRuntimeFiles, S as workersKeyOf, a as appendPeerAwarenessToMirroredClaudeMd, b as resolveCodexCliBackend, c as buildOperatingDefaultsDirective, d as prependStyleDirectiveToMirroredClaudeMd, f as buildArtifactReviewSkill, g as planModeAllowRules, h as injectAllowRules, i as writeInjectedSkill, l as prependArtifactPanelDirectiveToMirroredClaudeMd, o as appendToolbeltAwarenessToMirroredClaudeMd, r as injectedSkillsForLaunch, s as buildOperatingDefaultsDigest, t as injectAttributionSuppressionIntoSettingsFile, u as prependOperatingDefaultsToMirroredClaudeMd, x as resolveGroupKeysFromMirror, y as injectPeerMcpIntoMirror } from "./attribution-settings-Cu9cYRHf.js";
|
|
18
18
|
import { r as hookMcpRuntimeFromEnv } from "./hook-mcp-client-DbFtxo6_.js";
|
|
19
19
|
import { i as planReviewEnabled, t as buildPlanReviewHookCommand } from "./plan-review-hook-ciat1jgZ.js";
|
|
20
|
-
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-
|
|
20
|
+
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-CljRUZjm.js";
|
|
21
21
|
import { t as buildPromptSubmitHookCommand } from "./prompt-submit-hook-C8q_hDOv.js";
|
|
22
22
|
import { i as assertShapingInstalled, n as buildFirstMateGuardHookCommand, t as FIRST_MATE_GUARD_MATCHER } from "./internal-first-mate-guard-BEwDjHfX.js";
|
|
23
|
-
import { r as FAST_DISPATCH_TOOL_MATCHER, t as buildFastDispatchGuardHookCommand } from "./internal-fast-dispatch-guard-
|
|
23
|
+
import { r as FAST_DISPATCH_TOOL_MATCHER, t as buildFastDispatchGuardHookCommand } from "./internal-fast-dispatch-guard-BuRlhFek.js";
|
|
24
24
|
import { i as assertMaxDispatchGuardInstalled, r as MAX_DISPATCH_TOOL_MATCHER, t as buildMaxDispatchGuardHookCommand } from "./internal-max-dispatch-guard-CtIO7pm1.js";
|
|
25
25
|
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-BcUa3f-k.js";
|
|
26
26
|
import { defineCommand } from "citty";
|
|
@@ -315,7 +315,7 @@ function cheapestAdvisorClientEnabled(env = process.env) {
|
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* Remove every caller-supplied Advisor option and insert the fixed cheapest
|
|
318
|
-
* value (the BARE `
|
|
318
|
+
* value (the BARE `gpt-5.6-sol` — 200K default window — see
|
|
319
319
|
* `CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL`). Same parser semantics as the
|
|
320
320
|
* cheap variant: keeps scanning after `--`, and the fixed option is inserted
|
|
321
321
|
* before the first separator so Claude Code parses it as an option.
|
|
@@ -624,7 +624,7 @@ const claude = defineCommand({
|
|
|
624
624
|
"ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
625
625
|
"ANTHROPIC_CUSTOM_MODEL_OPTION"
|
|
626
626
|
].filter((key) => typeof envVars[key] === "string" && /\[1m\]/i.test(envVars[key]));
|
|
627
|
-
const suspectPicker = (pickerModels ?? []).filter((id) => /\[1m\]/i.test(id));
|
|
627
|
+
const suspectPicker = (pickerModels ?? []).filter((id) => /\[1m\]/i.test(id) && id.replace(/(?:\[1m\])+$/i, "") !== "gpt-5.6-luna");
|
|
628
628
|
if (suspectKeys.length > 0 || suspectPicker.length > 0) consola.warn(`Pinned-profile context leak (${launchProfileId} must be bare 200K): ` + [...suspectKeys.map((key) => `env:${key}`), ...suspectPicker.map((id) => `picker:${id}`)].join(", "));
|
|
629
629
|
}
|
|
630
630
|
if (launchProfileId === "fast" || launchProfileId === "cheap" || launchProfileId === "cheap1m" || launchProfileId === "cheapest" || launchProfileId === "balanced") consola.info(`Pinned launch: profile=${launchProfileId} lead=${chosenSlug} pickerRows=${pickerModels?.length ?? 0}.`);
|
|
@@ -748,7 +748,7 @@ const claude = defineCommand({
|
|
|
748
748
|
const { keys: groupKeys, skipped: skippedGroups } = await resolveGroupKeysFromMirror(enabledGroups);
|
|
749
749
|
operatingGroupKeys = groupKeys;
|
|
750
750
|
if (isPinnedProfile && ((launchProfileId === "cheapest" ? cheapestOracleModel() : launchProfileId === "balanced" ? balancedOracleModel() : isCheapProfile ? cheapOracleModel() : fastOracleModel()) == null || (launchProfileId === "cheapest" ? cheapestAdvisorModel() : launchProfileId === "balanced" ? balancedAdvisorModel() : isCheapProfile ? cheapAdvisorModel() : fastAdvisorModel()) == null || nativeAgentModels.reviewer == null)) {
|
|
751
|
-
if (launchProfileId === "cheapest") throw new Error("cheapest profile prerequisite drift: exact reviewer, oracle (gpt-5.6-sol), or advisor (
|
|
751
|
+
if (launchProfileId === "cheapest") throw new Error("cheapest profile prerequisite drift: exact reviewer, oracle (gpt-5.6-sol), or advisor (gpt-5.6-sol) model no longer resolves");
|
|
752
752
|
if (launchProfileId === "balanced") throw new Error("balanced profile prerequisite drift: exact reviewer, oracle (grok-4.6), or advisor (gpt-5.6-sol) model no longer resolves");
|
|
753
753
|
if (isCheapProfile) throw new Error("cheap profile prerequisite drift: exact reviewer or oracle (grok-4.6) model no longer resolves");
|
|
754
754
|
throw new Error("fast profile prerequisite drift: exact Oracle, Advisor, or reviewer model no longer resolves");
|
|
@@ -879,7 +879,8 @@ const claude = defineCommand({
|
|
|
879
879
|
const settingsPath = path.join(PATHS.CLAUDE_CONFIG_DIR, "settings.json");
|
|
880
880
|
const guardCommand = buildFastDispatchGuardHookCommand(selfInvocation, {
|
|
881
881
|
allowBrowse: browseAgentAvailable,
|
|
882
|
-
allowedTargets: [...fastDescriptor.nativeRoster ?? [], ...browseAgentAvailable ? ["worker-browse"] : []]
|
|
882
|
+
allowedTargets: [...fastDescriptor.nativeRoster ?? [], ...browseAgentAvailable ? ["worker-browse"] : []],
|
|
883
|
+
graph: launchProfileId === "balanced" ? "balanced" : void 0
|
|
883
884
|
});
|
|
884
885
|
await injectStopHookIntoSettingsFile(settingsPath, guardCommand, "PreToolUse", 10, FAST_DISPATCH_TOOL_MATCHER);
|
|
885
886
|
fastGuardInstalled = true;
|
|
@@ -1221,4 +1222,4 @@ const claude = defineCommand({
|
|
|
1221
1222
|
//#endregion
|
|
1222
1223
|
export { claude };
|
|
1223
1224
|
|
|
1224
|
-
//# sourceMappingURL=claude-
|
|
1225
|
+
//# sourceMappingURL=claude-BObYdG2J.js.map
|