github-router 0.3.352 → 0.3.354

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.
Files changed (72) hide show
  1. package/README.md +1 -38
  2. package/dist/ado-tools-CN4i9OVl.js +1 -0
  3. package/dist/{aic-statusline-settings-LnoxjBPe.js → aic-statusline-settings-EdsV1gzY.js} +6 -4
  4. package/dist/aic-statusline-settings-EdsV1gzY.js.map +1 -0
  5. package/dist/{attribution-settings-ul6VU6iP.js → attribution-settings-8Uv97n9j.js} +51 -39
  6. package/dist/{attribution-settings-ul6VU6iP.js.map → attribution-settings-8Uv97n9j.js.map} +1 -1
  7. package/dist/balanced-profile-contract-DtnTIBjL.js +105 -0
  8. package/dist/balanced-profile-contract-DtnTIBjL.js.map +1 -0
  9. package/dist/browser-ext/manifest.json +1 -1
  10. package/dist/{claude-xO1XW-Nn.js → claude-C_1OM7ce.js} +68 -59
  11. package/dist/claude-C_1OM7ce.js.map +1 -0
  12. package/dist/{claude-md-injection-BoXOsg7h.js → claude-md-injection-CDOoGNEJ.js} +20 -15
  13. package/dist/claude-md-injection-CDOoGNEJ.js.map +1 -0
  14. package/dist/{codex-DzUR40JA.js → codex-5eTmciDG.js} +5 -5
  15. package/dist/{codex-DzUR40JA.js.map → codex-5eTmciDG.js.map} +1 -1
  16. package/dist/{copilot-discount-C3jfysK-.js → copilot-discount-kpOLluHm.js} +3 -1
  17. package/dist/copilot-discount-kpOLluHm.js.map +1 -0
  18. package/dist/engine-CIAopp0h.js +1 -0
  19. package/dist/fast-profile-contract-JOnZBgFB.js +61 -0
  20. package/dist/fast-profile-contract-JOnZBgFB.js.map +1 -0
  21. package/dist/{gate-discovery-Cvdko01z.js → gate-discovery-CqJVzT_D.js} +2 -2
  22. package/dist/{gate-discovery-Cvdko01z.js.map → gate-discovery-CqJVzT_D.js.map} +1 -1
  23. package/dist/hooks.mjs +193 -12
  24. package/dist/hooks.sha256 +1 -1
  25. package/dist/{internal-aic-status-Dmi2bCsR.js → internal-aic-status-wYPsCG4r.js} +2 -2
  26. package/dist/{internal-aic-status-Dmi2bCsR.js.map → internal-aic-status-wYPsCG4r.js.map} +1 -1
  27. package/dist/{internal-fast-dispatch-guard-Cv7zf0ZI.js → internal-fast-dispatch-guard-A8teEib4.js} +1 -1
  28. package/dist/{internal-fast-dispatch-guard-BQm1MI9d.js → internal-fast-dispatch-guard-D_TCtJhQ.js} +3 -2
  29. package/dist/{internal-fast-dispatch-guard-BQm1MI9d.js.map → internal-fast-dispatch-guard-D_TCtJhQ.js.map} +1 -1
  30. package/dist/{internal-max-dispatch-guard-T-M7DRIW.js → internal-max-dispatch-guard-BM_B15EH.js} +1 -1
  31. package/dist/{internal-max-dispatch-guard-DkJixDmG.js → internal-max-dispatch-guard-D7ByWH4v.js} +2 -2
  32. package/dist/{internal-max-dispatch-guard-DkJixDmG.js.map → internal-max-dispatch-guard-D7ByWH4v.js.map} +1 -1
  33. package/dist/{internal-prompt-submit-B9MJxc3K.js → internal-prompt-submit-C77GnEaW.js} +3 -3
  34. package/dist/internal-prompt-submit-C77GnEaW.js.map +1 -0
  35. package/dist/{internal-prompt-submit-6OXEdQCK.js → internal-prompt-submit-CDTwamkW.js} +2 -2
  36. package/dist/{internal-rebrief-zIdunX3R.js → internal-rebrief-DZygfGHp.js} +6 -6
  37. package/dist/internal-rebrief-DZygfGHp.js.map +1 -0
  38. package/dist/{internal-stop-hook-DGcRVh_2.js → internal-stop-hook-Dn_AF0BF.js} +2 -2
  39. package/dist/{internal-stop-hook-DGcRVh_2.js.map → internal-stop-hook-Dn_AF0BF.js.map} +1 -1
  40. package/dist/main.js +11 -11
  41. package/dist/{max-profile-contract-DQDEDCsR.js → max-profile-contract-CMvzKSsg.js} +2 -2
  42. package/dist/max-profile-contract-CMvzKSsg.js.map +1 -0
  43. package/dist/{peer-mcp-personas-DDMKRFFG.js → peer-mcp-personas-DlF1dKCs.js} +142 -165
  44. package/dist/peer-mcp-personas-DlF1dKCs.js.map +1 -0
  45. package/dist/{pi-jVNeQXWf.js → pi-2m2IgZlm.js} +61 -62
  46. package/dist/pi-2m2IgZlm.js.map +1 -0
  47. package/dist/{provision-BtYRtvrj.js → provision-DLGlhu3a.js} +2 -2
  48. package/dist/{provision-BtYRtvrj.js.map → provision-DLGlhu3a.js.map} +1 -1
  49. package/dist/{serve-CmgmxigM.js → serve-8tXHVHOr.js} +7 -7
  50. package/dist/{serve-CmgmxigM.js.map → serve-8tXHVHOr.js.map} +1 -1
  51. package/dist/{server-setup-DinOFWiC.js → server-setup-BBSmse1J.js} +190 -127
  52. package/dist/server-setup-BBSmse1J.js.map +1 -0
  53. package/dist/{start-Dgsaz0HM.js → start-B7jTBpAc.js} +3 -3
  54. package/dist/{start-Dgsaz0HM.js.map → start-B7jTBpAc.js.map} +1 -1
  55. package/dist/{static-context-pack-CyucviRD.js → static-context-pack-BRqt4ajJ.js} +313 -6
  56. package/dist/static-context-pack-BRqt4ajJ.js.map +1 -0
  57. package/package.json +1 -1
  58. package/dist/ado-tools-xbuVU7YN.js +0 -1
  59. package/dist/aic-statusline-settings-LnoxjBPe.js.map +0 -1
  60. package/dist/balanced-profile-contract-XiIj4O1U.js +0 -127
  61. package/dist/balanced-profile-contract-XiIj4O1U.js.map +0 -1
  62. package/dist/claude-md-injection-BoXOsg7h.js.map +0 -1
  63. package/dist/claude-xO1XW-Nn.js.map +0 -1
  64. package/dist/copilot-discount-C3jfysK-.js.map +0 -1
  65. package/dist/engine-DwLIk1Zn.js +0 -1
  66. package/dist/internal-prompt-submit-B9MJxc3K.js.map +0 -1
  67. package/dist/internal-rebrief-zIdunX3R.js.map +0 -1
  68. package/dist/max-profile-contract-DQDEDCsR.js.map +0 -1
  69. package/dist/peer-mcp-personas-DDMKRFFG.js.map +0 -1
  70. package/dist/pi-jVNeQXWf.js.map +0 -1
  71. package/dist/server-setup-DinOFWiC.js.map +0 -1
  72. package/dist/static-context-pack-CyucviRD.js.map +0 -1
@@ -3,15 +3,15 @@ import { t as getPackageVersion } from "./version-C8x2hQrZ.js";
3
3
  import { t as PATHS } from "./paths-xTSEAWfN.js";
4
4
  import { t as state } from "./state-CfEVoqBM.js";
5
5
  import { c as runCommandCapture, s as resolveExecutable, u as runCommandVoid } from "./exec-Bf8g_bIR.js";
6
- import { B as runSelfUpdate, E as formatBalancedPrerequisiteFailure, I as validateCheapestProfilePrerequisites, M as resolveLaunchProfile, N as validateBalancedProfilePrerequisites, a as setupAndServe, c as startKeepAwake, f as enableFileLogging, i as parseSharedArgs, j as profileDescriptor, k as formatCheapestPrerequisiteFailure, l as stopKeepAwake, o as sharedServerArgs, r as getPiLaunchEnvVars, z as queueDetachedGlobalInstall } from "./server-setup-DinOFWiC.js";
7
- import { a as BALANCED_PROFILE_NATIVE_EFFORTS, c as BALANCED_PROFILE_ORACLE_MODEL, r as BALANCED_PROFILE_MODELS, s as BALANCED_PROFILE_ORACLE_EFFORT } from "./balanced-profile-contract-XiIj4O1U.js";
8
- import { D as toolbeltEnabled, Gn as CHEAPEST_PROFILE_MODELS, Un as CHEAPEST_PROFILE_ADVISOR_EFFORT, Wn as CHEAPEST_PROFILE_ADVISOR_MODEL, Xn as CHEAPEST_PROFILE_ORACLE_MODEL, Yn as CHEAPEST_PROFILE_ORACLE_EFFORT, _n as colbertDegradedWarning, fn as provisionBrowserAssets, nn as unregisterLaunch, pt as adoToolsEnabled, qn as CHEAPEST_PROFILE_NATIVE_EFFORTS, tn as registerLaunch, vn as provisionAndIndexColbert, xt as browserToolsEnabled, zt as kustoToolsEnabled } from "./peer-mcp-personas-DDMKRFFG.js";
6
+ import { B as runSelfUpdate, E as formatBalancedPrerequisiteFailure, I as validateCheapestProfilePrerequisites, M as resolveLaunchProfile, N as validateBalancedProfilePrerequisites, a as setupAndServe, c as startKeepAwake, f as enableFileLogging, i as parseSharedArgs, j as profileDescriptor, k as formatCheapestPrerequisiteFailure, l as stopKeepAwake, o as sharedServerArgs, r as getPiLaunchEnvVars, z as queueDetachedGlobalInstall } from "./server-setup-BBSmse1J.js";
7
+ import { D as toolbeltEnabled, _n as colbertDegradedWarning, fn as provisionBrowserAssets, nn as unregisterLaunch, pt as adoToolsEnabled, tn as registerLaunch, vn as provisionAndIndexColbert, xt as browserToolsEnabled, zt as kustoToolsEnabled } from "./peer-mcp-personas-DlF1dKCs.js";
8
+ import { _ as isBalancedFamily, m as cheapestContractFor, p as balancedContractFor, v as isCheapestFamily } from "./static-context-pack-BRqt4ajJ.js";
9
9
  import { r as resolveSelfInvocation } from "./self-invocation-Dr5zlbpM.js";
10
- import { i as launchChild, t as provisionToolbelt } from "./provision-BtYRtvrj.js";
10
+ import { i as launchChild, t as provisionToolbelt } from "./provision-DLGlhu3a.js";
11
11
  import { d as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath, u as removeAicLedgerFile } from "./aic-ledger-BdvCgRmx.js";
12
- import { t as CHEAPEST_CONSULT_CONTRACT } from "./claude-md-injection-BoXOsg7h.js";
13
- import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-LnoxjBPe.js";
14
- import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-C3jfysK-.js";
12
+ import { t as CHEAPEST_CONSULT_CONTRACT } from "./claude-md-injection-CDOoGNEJ.js";
13
+ import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-EdsV1gzY.js";
14
+ import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-kpOLluHm.js";
15
15
  import { defineCommand } from "citty";
16
16
  import consola from "consola";
17
17
  import { existsSync } from "node:fs";
@@ -309,19 +309,26 @@ function refreshPiInBackground(opts) {
309
309
  * - gpt-6-luna: Default ≤ 272K ($0.10 in) vs Long > 272K ($0.20 in)
310
310
  * - gpt-5.6-sol: Default ≤ 272K ($4.00 in) vs Long > 272K ($8.00 in)
311
311
  * - gpt-6-sol: Default ≤ 272K ($2.00 in) vs Long > 272K ($4.00 in)
312
+ * - gpt-6.1-sol: Default ≤ 272K ($2.00 in) vs Long > 272K ($4.00 in)
312
313
  * - grok-4.6: Default ≤ 200K ($2.00 in) vs Long > 200K ($4.00 in)
314
+ * - grok-4.7: Default ≤ 200K ($2.00 in) vs Long > 200K ($4.00 in)
313
315
  *
314
316
  * The live catalog carries no tier data (flat `billing.token_prices` +
315
317
  * single `limits.*` only), so this table is hardcoded by exact model id —
316
318
  * same precedent as `FALLBACK_TOKEN_PRICES`. Anything not listed here
317
- * runs at the 200K default window. LAST_VERIFIED 2026-09-24: refresh the
318
- * values (and the drift expectations below) when the billing doc changes.
319
+ * runs at the 200K default window. LAST_VERIFIED 2026-10-21: the six
320
+ * rows above were re-read from the billing doc, and the catalog input
321
+ * prices for the two newest ids (`gpt-6.1-sol`, `grok-4.7`) were checked
322
+ * against it the same day. Refresh the values (and the drift
323
+ * expectations below) when the billing doc changes.
319
324
  */
320
325
  const PI_TIER_THRESHOLDS = Object.freeze({
321
326
  "gpt-6-luna": 272e3,
322
327
  "gpt-5.6-sol": 272e3,
323
328
  "gpt-6-sol": 272e3,
324
- "grok-4.6": 2e5
329
+ "gpt-6.1-sol": 272e3,
330
+ "grok-4.6": 2e5,
331
+ "grok-4.7": 2e5
325
332
  });
326
333
  /** Pinned Default-tier threshold for a model id, or the 200K fallback. */
327
334
  function piTierThresholdFor(modelId) {
@@ -349,7 +356,9 @@ const EXPECTED_DEFAULT_INPUT_PER_1M = Object.freeze({
349
356
  "gpt-6-luna": 10,
350
357
  "gpt-5.6-sol": 400,
351
358
  "gpt-6-sol": 200,
352
- "grok-4.6": 200
359
+ "gpt-6.1-sol": 200,
360
+ "grok-4.6": 200,
361
+ "grok-4.7": 200
353
362
  });
354
363
  /**
355
364
  * Warn loudly when live catalog input prices disagree with the pinned
@@ -804,64 +813,54 @@ function piThinkingLevelMapFor(efforts) {
804
813
  /** Provider key used in models.json and agent `provider/model` references. */
805
814
  const PI_PROVIDER_NAME = "gh-router";
806
815
  const PI_MIN_VERSION_NOTE = `Requires Pi >= ${PI_MIN_VERSION} and Node >= 22.19.`;
816
+ /**
817
+ * The family contract for a Pi profile. `cheapest2` and `balanced2` are
818
+ * derived from their bases, so every resolver below reads one object and a
819
+ * `-2` launch cannot pick up a base literal by omission.
820
+ */
821
+ function piContractFor(profileId) {
822
+ return isCheapestFamily(profileId) ? cheapestContractFor(profileId) : balancedContractFor(profileId);
823
+ }
807
824
  function piLeadModel(profileId) {
808
- return profileId === "cheapest" ? CHEAPEST_PROFILE_MODELS.lead : BALANCED_PROFILE_MODELS.lead;
825
+ return piContractFor(profileId).models.lead;
809
826
  }
810
827
  function piLeadThinking(profileId) {
811
- return profileId === "cheapest" ? "max" : "medium";
828
+ return piContractFor(profileId).leadEffort;
812
829
  }
813
830
  function piOracleModel(profileId) {
814
- return profileId === "cheapest" ? CHEAPEST_PROFILE_ORACLE_MODEL : BALANCED_PROFILE_ORACLE_MODEL;
831
+ return piContractFor(profileId).oracleModel;
815
832
  }
816
833
  function piOracleThinking(profileId) {
817
- return profileId === "cheapest" ? CHEAPEST_PROFILE_ORACLE_EFFORT : BALANCED_PROFILE_ORACLE_EFFORT;
834
+ return piContractFor(profileId).oracleEffort;
818
835
  }
819
836
  /** Cheapest-only advisor. Balanced is advisor-free by design: undefined. */
820
837
  function piAdvisorModel(profileId) {
821
- if (profileId !== "cheapest") return void 0;
838
+ if (!isCheapestFamily(profileId)) return void 0;
839
+ const contract = cheapestContractFor(profileId);
822
840
  return {
823
- model: CHEAPEST_PROFILE_ADVISOR_MODEL,
824
- thinking: CHEAPEST_PROFILE_ADVISOR_EFFORT
841
+ model: contract.advisorModel,
842
+ thinking: contract.advisorEffort
825
843
  };
826
844
  }
827
845
  function piNativeRoles(profileId) {
828
- if (profileId === "cheapest") return [
829
- {
830
- name: "Explore",
831
- model: CHEAPEST_PROFILE_MODELS.explore,
832
- thinking: CHEAPEST_PROFILE_NATIVE_EFFORTS.Explore,
833
- readOnly: true
834
- },
835
- {
836
- name: "General-Purpose",
837
- model: CHEAPEST_PROFILE_MODELS["General-Purpose"],
838
- thinking: CHEAPEST_PROFILE_NATIVE_EFFORTS["General-Purpose"],
839
- readOnly: false
840
- },
841
- {
842
- name: "reviewer",
843
- model: CHEAPEST_PROFILE_MODELS.reviewer,
844
- thinking: CHEAPEST_PROFILE_NATIVE_EFFORTS.reviewer,
845
- readOnly: true
846
- }
847
- ];
846
+ const { nativeModels, nativeEfforts: efforts } = piContractFor(profileId);
848
847
  return [
849
848
  {
850
849
  name: "Explore",
851
- model: BALANCED_PROFILE_MODELS.explore,
852
- thinking: BALANCED_PROFILE_NATIVE_EFFORTS.Explore,
850
+ model: nativeModels.Explore,
851
+ thinking: efforts.Explore,
853
852
  readOnly: true
854
853
  },
855
854
  {
856
855
  name: "General-Purpose",
857
- model: BALANCED_PROFILE_MODELS["General-Purpose"],
858
- thinking: BALANCED_PROFILE_NATIVE_EFFORTS["General-Purpose"],
856
+ model: nativeModels["General-Purpose"],
857
+ thinking: efforts["General-Purpose"],
859
858
  readOnly: false
860
859
  },
861
860
  {
862
861
  name: "reviewer",
863
- model: BALANCED_PROFILE_MODELS.reviewer,
864
- thinking: BALANCED_PROFILE_NATIVE_EFFORTS.reviewer,
862
+ model: nativeModels.reviewer,
863
+ thinking: efforts.reviewer,
865
864
  readOnly: true
866
865
  }
867
866
  ];
@@ -1320,8 +1319,8 @@ function mergeSubagentsSettings(userSubagents, builtSubagents) {
1320
1319
  function roleDescription(profileId, role) {
1321
1320
  const oracleNote = "May consult the oracle subagent when a decision feels risky.";
1322
1321
  if (role.name === "Explore") return "Fast read-only recon: locate code, answer evidence questions, return compressed context.";
1323
- if (role.name === "General-Purpose") return profileId === "balanced" ? `General implementation and follow-through on scoped tasks. May hand the result to reviewer only when the change alters behavior. ${oracleNote}` : `General implementation and follow-through on scoped tasks. May hand the result to reviewer for assessment. ${oracleNote}`;
1324
- return profileId === "balanced" ? "Behavior-changing review only: assess a change, narrow scope with search first, delegate targeted discovery to Explore rather than sweeping the repo." : "Code review and assessment, including reproducing and root-causing a failure.";
1322
+ if (role.name === "General-Purpose") return isBalancedFamily(profileId) ? `General implementation and follow-through on scoped tasks. May hand the result to reviewer only when the change alters behavior. ${oracleNote}` : `General implementation and follow-through on scoped tasks. May hand the result to reviewer for assessment. ${oracleNote}`;
1323
+ return isBalancedFamily(profileId) ? "Behavior-changing review only: assess a change, narrow scope with search first, delegate targeted discovery to Explore rather than sweeping the repo." : "Code review and assessment, including reproducing and root-causing a failure.";
1325
1324
  }
1326
1325
  /**
1327
1326
  * Build `.md` agent definitions for the mode's native roster, in the
@@ -1370,7 +1369,7 @@ function buildPiAgentFiles(profileId) {
1370
1369
  for (const role of piNativeRoles(profileId)) {
1371
1370
  const isImplementer = role.name === "General-Purpose";
1372
1371
  const isReviewer = role.name === "reviewer";
1373
- const tools = isImplementer ? "read, grep, find, ls, bash, edit, write, subagent, contact_supervisor" : isReviewer ? profileId === "balanced" ? "read, grep, find, ls, watchdog_diff, subagent" : "read, grep, find, ls, watchdog_diff" : "read, grep, find, ls, bash";
1372
+ const tools = isImplementer ? "read, grep, find, ls, bash, edit, write, subagent, contact_supervisor" : isReviewer ? isBalancedFamily(profileId) ? "read, grep, find, ls, watchdog_diff, subagent" : "read, grep, find, ls, watchdog_diff" : "read, grep, find, ls, bash";
1374
1373
  const lines = [
1375
1374
  "---",
1376
1375
  `name: ${role.name}`,
@@ -1386,7 +1385,7 @@ function buildPiAgentFiles(profileId) {
1386
1385
  ];
1387
1386
  if (role.name === "Explore") lines.push("aliases: scout");
1388
1387
  if (isImplementer) lines.push("aliases: worker, developer, coder, implementer, develop", "acceptanceRole: writer", "allowNestedSubagents: true", "allowedAgents: reviewer, oracle");
1389
- if (profileId === "balanced" && isReviewer) lines.push("allowNestedSubagents: true", "allowedAgents: Explore");
1388
+ if (isBalancedFamily(profileId) && isReviewer) lines.push("allowNestedSubagents: true", "allowedAgents: Explore");
1390
1389
  lines.push("---", "");
1391
1390
  if (role.name === "Explore") lines.push("You are a read-only scout. Never modify files.", "Use bash only for non-interactive inspection.", "Search first, read second: return the smallest sufficient evidence — entry points,", "key types and functions, data flow, files likely to need changes, constraints and", "open questions — with exact file paths and line ranges.");
1392
1391
  else if (isReviewer) lines.push("You are a disciplined review subagent. Inspect the actual change; verify from code,", "tests, and docs — never guess. Cover intent match, correctness and edge cases,", "test coverage, side effects, and minimality.", "Report findings with file:line evidence ranked P0 (blocker) / P1 (should fix) / P2 (nit),", "ending with one of: Merge verdict: BLOCK, Merge verdict: OK, Merge verdict: OK with notes.", "You have no shell: cite the test commands for the lead to run rather than executing them.", "Do not rewrite code outside small, clearly-marked suggestions.");
@@ -1477,7 +1476,7 @@ function buildPiAppendSystem(profileId, opts = {}) {
1477
1476
  "",
1478
1477
  `- Lead owns planning directly; there is no Plan subagent.`
1479
1478
  ];
1480
- if (peers) lines.push(`- Delegate FREELY to Explore for discovery and General-Purpose for scoped work.`, `- Call subagent directly (agent + task); save workflows for genuinely parallel fanout.`, profileId === "balanced" ? `- Send work to reviewer ONLY when the change alters behavior.` : `- Send finished work to reviewer for assessment.`, `- Ask oracle for a second opinion when the decision itself feels risky.`, advisor ? `- Review the final plan with advisor (advisory) before presenting it.` : `- There is no advisor in this mode: oracle is the only consultant.`, `- Verify, don't vote: consultant verdicts never substitute for running the tests.`, `- After any subagent work completes, always write the final answer yourself.`);
1479
+ if (peers) lines.push(`- Delegate FREELY to Explore for discovery and General-Purpose for scoped work.`, `- Call subagent directly (agent + task); save workflows for genuinely parallel fanout.`, isBalancedFamily(profileId) ? `- Send work to reviewer ONLY when the change alters behavior.` : `- Send finished work to reviewer for assessment.`, `- Ask oracle for a second opinion when the decision itself feels risky.`, advisor ? `- Review the final plan with advisor (advisory) before presenting it.` : `- There is no advisor in this mode: oracle is the only consultant.`, `- Verify, don't vote: consultant verdicts never substitute for running the tests.`, `- After any subagent work completes, always write the final answer yourself.`);
1481
1480
  else lines.push(`- Peerless launch: no subagents or consultants in this session; plan, implement, and verify directly.`);
1482
1481
  if (advisor) lines.push("", CHEAPEST_CONSULT_CONTRACT.trimEnd());
1483
1482
  lines.push("", `(${PI_MIN_VERSION_NOTE})`, "");
@@ -1846,7 +1845,7 @@ function buildPiMemoryBridgeSection(bridge) {
1846
1845
  function buildPiExtensionSource(opts) {
1847
1846
  const peers = opts.peers !== false;
1848
1847
  const advisor = peers ? piAdvisorModel(opts.profileId) : void 0;
1849
- const promptBrief = opts.profileId === "cheapest";
1848
+ const promptBrief = isCheapestFamily(opts.profileId);
1850
1849
  const lines = [];
1851
1850
  lines.push(`// gh-router-pi extension (${opts.profileId} mode). Generated per launch; do not edit.`, `// Executable seams only. Workflow guidance lives in skills/, not here.`, `import { Type } from "typebox";`, `import { spawn } from "node:child_process";`, ``, ...peers ? [
1852
1851
  `const OracleParams = Type.Object({`,
@@ -2022,7 +2021,7 @@ function buildPiSkills(opts) {
2022
2021
  ].join("\n")
2023
2022
  });
2024
2023
  if (opts.swe === true && peers) {
2025
- const consults = opts.profileId === "balanced" ? "`oracle` for consults" : "`oracle`/`advisor` for consults";
2024
+ const consults = isBalancedFamily(opts.profileId) ? "`oracle` for consults" : "`oracle`/`advisor` for consults";
2026
2025
  skills.push({
2027
2026
  dir: "gh-delegate",
2028
2027
  content: [
@@ -2046,7 +2045,7 @@ function buildPiSkills(opts) {
2046
2045
  "our agents run foreground and background runs add spawn overhead.",
2047
2046
  "After any subagent work completes, always write the final answer",
2048
2047
  "yourself; never end on tool output or completion notices alone.",
2049
- opts.profileId === "balanced" ? "Send work to reviewer ONLY when the change alters behavior." : "Send finished work to reviewer for assessment."
2048
+ isBalancedFamily(opts.profileId) ? "Send work to reviewer ONLY when the change alters behavior." : "Send finished work to reviewer for assessment."
2050
2049
  ].join("\n")
2051
2050
  });
2052
2051
  if (peers && piAdvisorModel(opts.profileId)) skills.push({
@@ -2311,7 +2310,7 @@ const piArgs = {
2311
2310
  model: {
2312
2311
  alias: "m",
2313
2312
  type: "string",
2314
- description: "Pi launch profile: cheapest (Luna-led, cheapest tier) or balanced (Sol-led, most-complex-tasks tier). Only these two aliases are supported for `github-router pi`."
2313
+ description: "Pi launch profile: cheapest/cheapest2 (Luna-led, cheapest tier) or balanced/balanced2 (Sol-led, most-complex-tasks tier). The `-2` aliases move the Sol tier from 5.6 to 6.1; cheapest2 also raises the Advisor to high, and balanced2's Oracle is Grok 4.7. Only these four aliases are supported for `github-router pi`."
2315
2314
  },
2316
2315
  "update-check": {
2317
2316
  type: "boolean",
@@ -2326,12 +2325,12 @@ const piArgs = {
2326
2325
  swe: {
2327
2326
  type: "boolean",
2328
2327
  default: false,
2329
- description: "Enable the SWE pipeline surface: delegation/review skills (gh-delegate, cheapest-only gh-advisor) and the review prompt shortcuts (/review, /parallel-review, cheapest-only /plan-review). Off by default; a bare launch advertises no skills or prompts."
2328
+ description: "Enable the SWE pipeline surface: delegation/review skills (gh-delegate, cheapest-family gh-advisor) and the review prompt shortcuts (/review, /parallel-review, cheapest-family /plan-review). Off by default; a bare launch advertises no skills or prompts."
2330
2329
  },
2331
2330
  peers: {
2332
2331
  type: "boolean",
2333
2332
  default: true,
2334
- description: "Wire the peer/subagent floor: native agent files, the oracle tool (plus cheapest-only advisor), the gh-oracle skill, and the pi-subagents package. Set to false (--no-peers) for a lead-only session; prereqs then validate the lead model only."
2333
+ description: "Wire the peer/subagent floor: native agent files, the oracle tool (plus cheapest-family advisor), the gh-oracle skill, and the pi-subagents package. Set to false (--no-peers) for a lead-only session; prereqs then validate the lead model only."
2335
2334
  },
2336
2335
  helpers: {
2337
2336
  type: "boolean",
@@ -2403,7 +2402,7 @@ async function writeTextFile(file, content) {
2403
2402
  const pi = defineCommand({
2404
2403
  meta: {
2405
2404
  name: "pi",
2406
- description: "Start the proxy server and launch the Pi coding agent (cheapest/balanced)"
2405
+ description: "Start the proxy server and launch the Pi coding agent (cheapest/balanced families)"
2407
2406
  },
2408
2407
  args: piArgs,
2409
2408
  async run({ args, rawArgs }) {
@@ -2414,8 +2413,8 @@ const pi = defineCommand({
2414
2413
  }
2415
2414
  const parsed = parseSharedArgs(args);
2416
2415
  const launchProfileId = resolveLaunchProfile(args.model);
2417
- if (launchProfileId !== "cheapest" && launchProfileId !== "balanced") {
2418
- process$1.stderr.write(`github-router pi supports only -m cheapest and -m balanced (got ${JSON.stringify(args.model ?? "")}). Run plain \`github-router pi -m cheapest\` or \`github-router pi -m balanced\`.\n`);
2416
+ if (!isCheapestFamily(launchProfileId) && !isBalancedFamily(launchProfileId)) {
2417
+ process$1.stderr.write(`github-router pi supports only -m cheapest, -m cheapest2, -m balanced, and -m balanced2 (got ${JSON.stringify(args.model ?? "")}).\n`);
2419
2418
  process$1.exit(1);
2420
2419
  }
2421
2420
  const profileId = launchProfileId;
@@ -2501,9 +2500,9 @@ const pi = defineCommand({
2501
2500
  helpersEnabled,
2502
2501
  peersEnabled
2503
2502
  });
2504
- const prereqCheck = profileId === "cheapest" ? validateCheapestProfilePrerequisites(state.models, { peers: peersEnabled }) : validateBalancedProfilePrerequisites(state.models, { peers: peersEnabled });
2503
+ const prereqCheck = isCheapestFamily(profileId) ? validateCheapestProfilePrerequisites(state.models, { peers: peersEnabled }, profileId) : validateBalancedProfilePrerequisites(state.models, { peers: peersEnabled }, profileId);
2505
2504
  if (!prereqCheck.ok) {
2506
- const message = profileId === "cheapest" ? formatCheapestPrerequisiteFailure(prereqCheck.missing) : formatBalancedPrerequisiteFailure(prereqCheck.missing);
2505
+ const message = isCheapestFamily(profileId) ? formatCheapestPrerequisiteFailure(prereqCheck.missing, profileId) : formatBalancedPrerequisiteFailure(prereqCheck.missing, profileId);
2507
2506
  consola.error(message);
2508
2507
  process$1.stderr.write(`${message}\n`);
2509
2508
  process$1.exit(1);
@@ -2711,7 +2710,7 @@ const pi = defineCommand({
2711
2710
  })}\n`);
2712
2711
  if (sweEnabled && !peersEnabled) process$1.stderr.write("Note: --swe without --peers emits no delegate/review skills or prompts (no agents behind them in a peerless launch).\n");
2713
2712
  const { disposeBluebirdClients } = await import("./bluebird-client-mr3M67k-.js");
2714
- const { disposeAdoClients } = await import("./ado-tools-xbuVU7YN.js");
2713
+ const { disposeAdoClients } = await import("./ado-tools-CN4i9OVl.js");
2715
2714
  launchChild({
2716
2715
  kind: "pi",
2717
2716
  envVars: {
@@ -2749,4 +2748,4 @@ const pi = defineCommand({
2749
2748
  //#endregion
2750
2749
  export { pi };
2751
2750
 
2752
- //# sourceMappingURL=pi-jVNeQXWf.js.map
2751
+ //# sourceMappingURL=pi-2m2IgZlm.js.map