github-router 0.3.337 → 0.3.339

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 (38) hide show
  1. package/dist/{attribution-settings-Bpa-YTZ5.js → attribution-settings-DpDZcVka.js} +117 -152
  2. package/dist/attribution-settings-DpDZcVka.js.map +1 -0
  3. package/dist/{balanced-profile-contract-DdmG6RRd.js → balanced-profile-contract-C6AgFJNp.js} +13 -16
  4. package/dist/balanced-profile-contract-C6AgFJNp.js.map +1 -0
  5. package/dist/browser-ext/manifest.json +1 -1
  6. package/dist/{claude-X8KYtT5_.js → claude-D0SUYfyr.js} +8 -12
  7. package/dist/claude-D0SUYfyr.js.map +1 -0
  8. package/dist/{codex-CbYioKum.js → codex-CzV-I2h3.js} +4 -4
  9. package/dist/{codex-CbYioKum.js.map → codex-CzV-I2h3.js.map} +1 -1
  10. package/dist/engine-vxnquZvh.js +2 -0
  11. package/dist/{gate-discovery-C27g6aJn.js → gate-discovery-BKjq0x66.js} +2 -2
  12. package/dist/{gate-discovery-C27g6aJn.js.map → gate-discovery-BKjq0x66.js.map} +1 -1
  13. package/dist/hooks.mjs +1 -5
  14. package/dist/hooks.sha256 +1 -1
  15. package/dist/{internal-fast-dispatch-guard-0Or2xigH.js → internal-fast-dispatch-guard-7UiD_vM5.js} +5 -4
  16. package/dist/internal-fast-dispatch-guard-7UiD_vM5.js.map +1 -0
  17. package/dist/{internal-fast-dispatch-guard-UQSbkLqY.js → internal-fast-dispatch-guard-ByXUE5oO.js} +1 -1
  18. package/dist/{internal-stop-hook-YCK7DX-x.js → internal-stop-hook-DV7o7chW.js} +2 -2
  19. package/dist/{internal-stop-hook-YCK7DX-x.js.map → internal-stop-hook-DV7o7chW.js.map} +1 -1
  20. package/dist/main.js +6 -6
  21. package/dist/{peer-mcp-personas-DU2SO1RG.js → peer-mcp-personas-CmR3f7nO.js} +22 -23
  22. package/dist/peer-mcp-personas-CmR3f7nO.js.map +1 -0
  23. package/dist/{provision-Ck059J4j.js → provision-CxulCZpS.js} +2 -2
  24. package/dist/{provision-Ck059J4j.js.map → provision-CxulCZpS.js.map} +1 -1
  25. package/dist/{serve-QSuKiRrF.js → serve-DVq-m7p5.js} +5 -5
  26. package/dist/{serve-QSuKiRrF.js.map → serve-DVq-m7p5.js.map} +1 -1
  27. package/dist/{server-setup-BMd_WJqh.js → server-setup-Df9BxQ-V.js} +51 -35
  28. package/dist/server-setup-Df9BxQ-V.js.map +1 -0
  29. package/dist/{start-Ikh4r6Pa.js → start-C4wi5ccP.js} +3 -3
  30. package/dist/{start-Ikh4r6Pa.js.map → start-C4wi5ccP.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/attribution-settings-Bpa-YTZ5.js.map +0 -1
  33. package/dist/balanced-profile-contract-DdmG6RRd.js.map +0 -1
  34. package/dist/claude-X8KYtT5_.js.map +0 -1
  35. package/dist/engine-Di1OB28h.js +0 -2
  36. package/dist/internal-fast-dispatch-guard-0Or2xigH.js.map +0 -1
  37. package/dist/peer-mcp-personas-DU2SO1RG.js.map +0 -1
  38. package/dist/server-setup-BMd_WJqh.js.map +0 -1
@@ -6,7 +6,7 @@ import { t as state } from "./state-CVp30CBF.js";
6
6
  import { C as githubAgentGraphQLHeaders, S as copilotVersion, b as copilotBaseUrl, d as resolveModel, f as sleep$2, g as HTTPError, h as isAllowedCopilotHost, i as tryRefreshAndRetry, v as GITHUB_API_BASE_URL, w as githubAgentHeaders, x as copilotHeaders, y as GITHUB_GRAPHQL_URL } from "./token-DATA_OQK.js";
7
7
  import { a as withTransientRetry, i as sanitizeTransportText, n as classifyTransportError, r as fetchWithTransientRetry } from "./upstream-retry-i1k1Xai2.js";
8
8
  import { a as parseIntEnv, i as parseBoolEnv, l as runManagedExeCapture, o as resolveExecutable } from "./exec-MCU1H-KZ.js";
9
- import { S as FAST_PROFILE_ORACLE_MODEL, _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, c as BALANCED_PROFILE_ORACLE_MODEL, d as FAST_PROFILE_ADVISOR_EFFORT, f as FAST_PROFILE_ADVISOR_MODEL, m as FAST_PROFILE_ASTRA_MODEL, r as BALANCED_PROFILE_MODELS, x as FAST_PROFILE_ORACLE_EFFORT, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-DdmG6RRd.js";
9
+ import { S as FAST_PROFILE_ORACLE_MODEL, _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, c as BALANCED_PROFILE_ORACLE_MODEL, d as FAST_PROFILE_ADVISOR_EFFORT, f as FAST_PROFILE_ADVISOR_MODEL, m as FAST_PROFILE_ASTRA_MODEL, r as BALANCED_PROFILE_MODELS, x as FAST_PROFILE_ORACLE_EFFORT, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-C6AgFJNp.js";
10
10
  import { A as normalizeTrailingOneMSuffix, D as maxPeerInstructions, E as maxPeerDescription, O as fastEndpointForCatalogId, b as MAX_ADVISOR_SYSTEM_PROMPT, f as maxCodexReviewerModel, g as maxProReplacementModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, k as fastEndpointForModel, m as maxGrokModel, p as maxGeminiModel, r as MAX_PROFILE_LEAD_MODEL, v as maxSonnetModel } from "./max-profile-contract-LTJstj1e.js";
11
11
  import { i as registerExitHandlers$1, n as getInstanceUuid, r as recordWorkerRepo, t as WorktreeRegistry } from "./lifecycle-kpLzHUgD.js";
12
12
  import { t as MCP_WORKSPACE_HEADER } from "./mcp-workspace-header-B77WqVFw.js";
@@ -128,18 +128,18 @@ Object.freeze({
128
128
  * The cheapest all-200K tier: a `gpt-6-luna`/max LEAD at Claude Code's
129
129
  * DEFAULT (bare-slug) 200K window, every subagent at the same 200K default,
130
130
  * a `gpt-6-sol`/medium Advisor (bare slug), and a `gpt-6-sol`/high
131
- * primary Oracle. Oracle-only peer set (no `astra`), same exact four-agent
132
- * surface and authority structure as the cheap family.
131
+ * primary Oracle. Oracle-only peer set (no `astra`) and a three-agent
132
+ * surface (`Explore`/`General-Purpose`/`reviewer` — no `Plan`): the lead
133
+ * plans directly and reviews the final plan with the Advisor (advisory)
134
+ * before presenting it.
133
135
  *
134
136
  * This module is deliberately dependency-free, including its own delegation
135
- * graph literal: cheapest shares the cheap family's authority shape today,
136
- * but each pinned profile owns its graph so tuning one roster cannot silently
137
- * retune another.
137
+ * graph literal: each pinned profile owns its graph so tuning one roster
138
+ * cannot silently retune another.
138
139
  */
139
140
  const CHEAPEST_PROFILE_MODELS = Object.freeze({
140
141
  lead: "gpt-6-luna",
141
142
  explore: "gpt-6-luna",
142
- plan: "gpt-6-sol",
143
143
  "General-Purpose": "gpt-6-luna",
144
144
  reviewer: "gpt-6-sol",
145
145
  advisor: "gpt-6-sol",
@@ -147,19 +147,16 @@ const CHEAPEST_PROFILE_MODELS = Object.freeze({
147
147
  });
148
148
  const CHEAPEST_PROFILE_NATIVE_AGENT_NAMES = [
149
149
  "Explore",
150
- "Plan",
151
150
  "General-Purpose",
152
151
  "reviewer"
153
152
  ];
154
153
  const CHEAPEST_PROFILE_NATIVE_MODELS = Object.freeze({
155
154
  Explore: CHEAPEST_PROFILE_MODELS.explore,
156
- Plan: CHEAPEST_PROFILE_MODELS.plan,
157
155
  "General-Purpose": CHEAPEST_PROFILE_MODELS["General-Purpose"],
158
156
  reviewer: CHEAPEST_PROFILE_MODELS.reviewer
159
157
  });
160
158
  const CHEAPEST_PROFILE_NATIVE_EFFORTS = Object.freeze({
161
159
  Explore: "high",
162
- Plan: "high",
163
160
  "General-Purpose": "max",
164
161
  reviewer: "high"
165
162
  });
@@ -180,7 +177,6 @@ const CHEAPEST_PROFILE_ORACLE_MODEL = CHEAPEST_PROFILE_MODELS.oracle;
180
177
  const CHEAPEST_PROFILE_ORACLE_EFFORT = "high";
181
178
  Object.freeze({
182
179
  Explore: Object.freeze([]),
183
- Plan: Object.freeze(["Explore", "reviewer"]),
184
180
  "General-Purpose": Object.freeze(["reviewer"]),
185
181
  reviewer: Object.freeze([])
186
182
  });
@@ -29268,9 +29264,12 @@ const TEST_DEFAULT_THINKING = "high";
29268
29264
  * between the two would ship a tool whose docs disagree with its runtime
29269
29265
  * default. */
29270
29266
  const BROWSE_DEFAULT_MODEL = "gpt-6-luna";
29271
- /** Default thinking for `browse`. Higher than the page-driving workload
29272
- * strictly needs, but the termination discipline benefits from it. */
29273
- const BROWSE_DEFAULT_THINKING = "high";
29267
+ /** Default thinking for `browse`. Page-driving is observation-heavy but
29268
+ * reasoning-light, so `low` fits the workload; callers that need deeper
29269
+ * judgment restore a higher tier per call via `thinking` or per session via
29270
+ * `worker_defaults`. Unadvertised tiers clamp fail-safe in model resolution,
29271
+ * so this default never rejects on a thinner catalog. */
29272
+ const BROWSE_DEFAULT_THINKING = "low";
29274
29273
  /** Default model + thinking for the read-only `plan` mode. `claude-opus-5.5`
29275
29274
  * at `high` favours time-to-outcome while retaining the strongest planning
29276
29275
  * model rather than the lightweight `gpt-6-luna` explore default. Any
@@ -31597,10 +31596,10 @@ function buildPeerAwarenessSnippet(opts) {
31597
31596
  const artifactClause = opts.artifactToolsAvailable ? ` \`mcp__${fastPeersKey}__artifact_*\` provides artifact review with auto-open on plan completion.` : "";
31598
31597
  const astraClause = opts.astraAvailable && (opts.profile === "fast" || opts.profile === "cheap1m") ? ` \`mcp__${fastPeersKey}__astra\` is GPT-6 Astra (${astraDescriptor}), an expensive terminal escalation consultant available to the lead only for hardest dead ends.` : "";
31599
31598
  const searchClause = opts.bluebirdEnabled === true ? `\`mcp__${fastSearchKey}__code\` uses Bluebird for semantic and lexical modes over the checked-out Azure DevOps repository; Bluebird failures stay visible with no local fallback, while exact/regex/AST stay local. \`mcp__${fastSearchKey}__web\` surfaces citable sources.` : opts.semanticSearchAvailable === true ? `\`mcp__${fastSearchKey}__code\` is local ColBERT semantic-first code search (start lexical with mode:"lexical"/"exact" for symbols, filenames, errors, and config keys, then semantic for concepts; semantic falls back lexically while the local index is unavailable) and \`mcp__${fastSearchKey}__web\` surfaces citable sources.` : `\`mcp__${fastSearchKey}__code\` is local lexical code search (mode:"lexical"/"exact" for symbols, filenames, errors, and config keys; no model call) and \`mcp__${fastSearchKey}__web\` surfaces citable sources.`;
31600
- const rosterClause = isCheapest ? "Native Task roster: `Explore` (broad repository discovery spanning more than a couple of files), `Plan` (sequencing, interfaces, migration risk, acceptance criteria in plan mode), `General-Purpose` (mixed investigation and execution, follows a Plan handoff when one exists), and `reviewer` (repo-aware verification of behavior-changing or risk-sensitive changes). Handle straightforward tasks directly and verify claims with concrete repository evidence and tests before declaring done." : "Native Task roster: `Explore` (mandatory cheap broad discovery, launch in parallel; lead/`Plan` delegate rather than self-sweep), `Plan` (sequencing, interfaces, migration risk, acceptance criteria in plan mode; delegate discovery to `Explore` and write handoff-ready steps for `General-Purpose`), `General-Purpose` (mixed execution; follows a Plan handoff when one exists and drives to a verified end state), and `reviewer` (repo-aware verification after non-trivial changes, before done). In plan mode, delegate planning to `Plan` and do not edit files. Verify claims with concrete repository evidence and tests before declaring done.";
31601
- const balancedRosterClause = "Native Task roster: the lead owns planning, implementation, and verification by default. `Explore` (targeted breadth only when search is insufficient, launch in parallel; lead/`Plan` narrow scope with search first), `Plan` (sequencing, interfaces, migration risk, acceptance criteria; delegate ONLY when genuinely complex, lead owns planning by default; delegate discovery to `Explore`), `General-Purpose` (mixed execution; delegate FREELY for multi-step work; follows a Plan handoff when one exists and drives to a verified end state), and `reviewer` (repo-aware verification; invoke ONLY when genuinely behavior-changing, cross-boundary, or risk-sensitive, lead owns verification by default; narrows scope with search first and may invoke `Explore` for targeted discovery). Verify claims with concrete repository evidence and tests before declaring done.";
31602
- const escalationClause = isBalanced ? `This is the ${profileLabel} launch profile. Funnel unknowns cheapest-first: settle factual claims with \`mcp__${fastSearchKey}__code\` + \`mcp__${fastSearchKey}__web\` search first (narrow scope, rule out hypotheses), then \`Explore\` for targeted breadth, then \`Plan\` only when genuinely complex. \`mcp__${fastPeersKey}__oracle\` is ${oracleDescriptor}, a second opinion for precise, self-contained architectural/spec trade-offs that search and \`Explore\` (and \`Plan\`, where consulted) cannot settle, available to the lead and \`Plan\`; \`reviewer\` and other subagents cannot call Oracle.${astraClause}` : `This is the ${profileLabel} launch profile. Follow an evidence-first escalation ladder: settle factual claims directly through code, tests, and builds. Advisor is an optional, non-binding, lead-only transcript-aware sounding board for trajectory guidance, framing checks, or conflicting signals (direction, not dictation), not routine progress, waiting, verification, or completion. \`mcp__${fastPeersKey}__oracle\` is ${oracleDescriptor}, an expert consultant available to the lead and \`Plan\`, preferred over advisor for difficult conceptual, algorithmic, spec/protocol, or architectural tradeoffs evaluated in a self-contained brief; \`reviewer\` and other subagents cannot call Oracle.${astraClause}`;
31603
- const delegationClause = isBalanced ? "Native delegation is ACL-scoped: the lead may invoke all four; `Plan` may invoke `Explore` and `reviewer`; `General-Purpose` may invoke `reviewer`; `reviewer` may invoke `Explore` for targeted discovery; `Explore` and `worker-browse` cannot invoke native subagents." : "Native delegation is ACL-scoped: the lead may invoke all four; `Plan` may invoke `Explore` and `reviewer`; `General-Purpose` may invoke `reviewer`; `Explore`, `reviewer`, and `worker-browse` cannot invoke native subagents.";
31599
+ const rosterClause = isCheapest ? "Native Task roster: `Explore` (broad repository discovery spanning more than a couple of files), `General-Purpose` (mixed investigation and execution), and `reviewer` (repo-aware verification of behavior-changing or risk-sensitive changes). The lead plans directly: in plan mode, produce the plan and acceptance criteria without editing files, and review the final plan with the Advisor before presenting it to the user. Handle straightforward tasks directly and verify claims with concrete repository evidence and tests before declaring done." : "Native Task roster: `Explore` (mandatory cheap broad discovery, launch in parallel; lead/`Plan` delegate rather than self-sweep), `Plan` (sequencing, interfaces, migration risk, acceptance criteria in plan mode; delegate discovery to `Explore` and write handoff-ready steps for `General-Purpose`), `General-Purpose` (mixed execution; follows a Plan handoff when one exists and drives to a verified end state), and `reviewer` (repo-aware verification after non-trivial changes, before done). In plan mode, delegate planning to `Plan` and do not edit files. Verify claims with concrete repository evidence and tests before declaring done.";
31600
+ const balancedRosterClause = "Native Task roster: the lead owns planning, implementation, and verification by default. `Explore` (targeted breadth only when search is insufficient, launch in parallel), `General-Purpose` (mixed execution; delegate FREELY for multi-step work and drive to a verified end state), and `reviewer` (repo-aware verification; invoke ONLY when genuinely behavior-changing, cross-boundary, or risk-sensitive, lead owns verification by default; narrows scope with search first and may invoke `Explore` for targeted discovery). Verify claims with concrete repository evidence and tests before declaring done.";
31601
+ const escalationClause = isBalanced ? `This is the ${profileLabel} launch profile. Funnel unknowns cheapest-first: settle factual claims with \`mcp__${fastSearchKey}__code\` + \`mcp__${fastSearchKey}__web\` search first (narrow scope, rule out hypotheses), then \`Explore\` for targeted breadth. \`mcp__${fastPeersKey}__oracle\` is ${oracleDescriptor}, a second opinion for precise, self-contained architectural/spec trade-offs that search and \`Explore\` cannot settle, available to the lead; \`reviewer\` and other subagents cannot call Oracle.${astraClause}` : `This is the ${profileLabel} launch profile. Follow an evidence-first escalation ladder: settle factual claims directly through code, tests, and builds. Advisor is an optional, non-binding, lead-only transcript-aware sounding board for trajectory guidance, framing checks, or conflicting signals (direction, not dictation), not routine progress, waiting, verification, or completion. \`mcp__${fastPeersKey}__oracle\` is ${oracleDescriptor}, an expert consultant ${isCheapest ? "available to the lead" : "available to the lead and `Plan`"}, preferred over advisor for difficult conceptual, algorithmic, spec/protocol, or architectural tradeoffs evaluated in a self-contained brief; \`reviewer\` and other subagents cannot call Oracle.${astraClause}`;
31602
+ const delegationClause = isBalanced ? "Native delegation is ACL-scoped: the lead may invoke all three; `General-Purpose` may invoke `reviewer`; `reviewer` may invoke `Explore` for targeted discovery; `Explore` and `worker-browse` cannot invoke native subagents." : isCheapest ? "Native delegation is ACL-scoped: the lead may invoke all three; `General-Purpose` may invoke `reviewer`; `Explore`, `reviewer`, and `worker-browse` cannot invoke native subagents." : "Native delegation is ACL-scoped: the lead may invoke all four; `Plan` may invoke `Explore` and `reviewer`; `General-Purpose` may invoke `reviewer`; `Explore`, `reviewer`, and `worker-browse` cannot invoke native subagents.";
31604
31603
  return [
31605
31604
  "## Peer review and advisor",
31606
31605
  "",
@@ -31679,10 +31678,10 @@ function buildPeerAwarenessSummary(opts) {
31679
31678
  const browserClause = opts.browserToolsAvailable ?? opts.browseAvailable ? ` \`mcp__${key("browser")}__*\` provides the opt-in browser.` : "";
31680
31679
  const workerBrowseClause = opts.browseAvailable ? ` \`worker-browse\` runs delegated browsing tasks through \`mcp__${key("workers")}__browse\`.` : "";
31681
31680
  const astraClause = opts.astraAvailable && (opts.profile === "fast" || opts.profile === "cheap1m") ? ` \`mcp__${key("peers")}__astra\` is GPT-6 Astra (${astraDescriptor}), lead-only escalation for hardest dead ends.` : "";
31682
- const rosterLine = isCheapest ? `${profileLabel} launch profile. Task roster: \`Explore\` (broad discovery), \`Plan\` (planning in plan mode), \`General-Purpose\` (mixed execution), \`reviewer\` (verification of behavior-changing or risk-sensitive changes). Handle straightforward tasks directly. Verify claims with concrete repository evidence and tests before declaring done.` : `${profileLabel} launch profile. Task roster: \`Explore\` (mandatory parallel discovery delegate), \`Plan\` (planning in plan mode, writes handoff-ready steps for \`General-Purpose\`), \`General-Purpose\` (mixed execution, follows a Plan handoff when one exists), \`reviewer\` (verification after implementation, before done). Verify claims with concrete repository evidence and tests before declaring done.`;
31683
- const balancedRosterLine = `${profileLabel} launch profile. The lead owns planning, implementation, and verification by default. Task roster: \`Explore\` (targeted breadth when search is insufficient), \`Plan\` (delegate ONLY when genuinely complex), \`General-Purpose\` (delegate FREELY for multi-step work), \`reviewer\` (invoke ONLY when genuinely behavior-changing, cross-boundary, or risk-sensitive). Verify claims with concrete repository evidence and tests before declaring done.`;
31684
- const peerLine = isBalanced ? `\`mcp__${key("peers")}__oracle\` is ${oracleDescriptor}, a second opinion for precise, self-contained architectural/spec trade-offs that search and \`Explore\` (and \`Plan\`, where consulted) cannot settle, for the lead and \`Plan\`.${astraClause} \`mcp__${key("search")}__code\` provides ${opts.bluebirdEnabled === true ? "Bluebird semantic + lexical search with visible no-fallback errors and local exact/regex/AST" : opts.semanticSearchAvailable === true ? "local ColBERT semantic search with lexical fallback" : "local lexical search"}; \`mcp__${key("search")}__web\` provides web search.${browserClause}${workerBrowseClause}${opts.artifactToolsAvailable ? ` \`mcp__${key("peers")}__artifact_*\` provides human review with plan auto-open.` : ""}` : `Advisor is optional, non-binding, transcript-aware, and lead-only for trajectory guidance or framing checks (direction, not dictation). \`mcp__${key("peers")}__oracle\` is ${oracleDescriptor}, an expert consultant for the lead and \`Plan\`, preferred over advisor for substantive trade-offs.${astraClause} \`mcp__${key("search")}__code\` provides ${opts.bluebirdEnabled === true ? "Bluebird semantic + lexical search with visible no-fallback errors and local exact/regex/AST" : opts.semanticSearchAvailable === true ? "local ColBERT semantic search with lexical fallback" : "local lexical search"}; \`mcp__${key("search")}__web\` provides web search.${browserClause}${workerBrowseClause}${opts.artifactToolsAvailable ? ` \`mcp__${key("peers")}__artifact_*\` provides human review with plan auto-open.` : ""}`;
31685
- const summaryDelegation = isBalanced ? "Native delegation is ACL-scoped: the lead may invoke all four; `Plan` may invoke `Explore` and `reviewer`; `General-Purpose` may invoke `reviewer`; `reviewer` may invoke `Explore` for targeted discovery; `Explore` and `worker-browse` cannot invoke native subagents." : "Native delegation is ACL-scoped: the lead may invoke all four; `Plan` may invoke `Explore` and `reviewer`; `General-Purpose` may invoke `reviewer`; `Explore`, `reviewer`, and `worker-browse` cannot invoke native subagents.";
31681
+ const rosterLine = isCheapest ? `${profileLabel} launch profile. Task roster: \`Explore\` (broad discovery), \`General-Purpose\` (mixed execution), \`reviewer\` (verification of behavior-changing or risk-sensitive changes). The lead plans directly and reviews the final plan with the Advisor before presenting it to the user. Handle straightforward tasks directly. Verify claims with concrete repository evidence and tests before declaring done.` : `${profileLabel} launch profile. Task roster: \`Explore\` (mandatory parallel discovery delegate), \`Plan\` (planning in plan mode, writes handoff-ready steps for \`General-Purpose\`), \`General-Purpose\` (mixed execution, follows a Plan handoff when one exists), \`reviewer\` (verification after implementation, before done). Verify claims with concrete repository evidence and tests before declaring done.`;
31682
+ const balancedRosterLine = `${profileLabel} launch profile. The lead owns planning, implementation, and verification by default. Task roster: \`Explore\` (targeted breadth when search is insufficient), \`General-Purpose\` (delegate FREELY for multi-step work), \`reviewer\` (invoke ONLY when genuinely behavior-changing, cross-boundary, or risk-sensitive). Verify claims with concrete repository evidence and tests before declaring done.`;
31683
+ const peerLine = isBalanced ? `\`mcp__${key("peers")}__oracle\` is ${oracleDescriptor}, a second opinion for precise, self-contained architectural/spec trade-offs that search and \`Explore\` cannot settle, for the lead.${astraClause} \`mcp__${key("search")}__code\` provides ${opts.bluebirdEnabled === true ? "Bluebird semantic + lexical search with visible no-fallback errors and local exact/regex/AST" : opts.semanticSearchAvailable === true ? "local ColBERT semantic search with lexical fallback" : "local lexical search"}; \`mcp__${key("search")}__web\` provides web search.${browserClause}${workerBrowseClause}${opts.artifactToolsAvailable ? ` \`mcp__${key("peers")}__artifact_*\` provides human review with plan auto-open.` : ""}` : `Advisor is optional, non-binding, transcript-aware, and lead-only for trajectory guidance or framing checks (direction, not dictation). \`mcp__${key("peers")}__oracle\` is ${oracleDescriptor}, an expert consultant for ${isCheapest ? "the lead" : "the lead and `Plan`"}, preferred over advisor for substantive trade-offs.${astraClause} \`mcp__${key("search")}__code\` provides ${opts.bluebirdEnabled === true ? "Bluebird semantic + lexical search with visible no-fallback errors and local exact/regex/AST" : opts.semanticSearchAvailable === true ? "local ColBERT semantic search with lexical fallback" : "local lexical search"}; \`mcp__${key("search")}__web\` provides web search.${browserClause}${workerBrowseClause}${opts.artifactToolsAvailable ? ` \`mcp__${key("peers")}__artifact_*\` provides human review with plan auto-open.` : ""}`;
31684
+ const summaryDelegation = isBalanced ? "Native delegation is ACL-scoped: the lead may invoke all three; `General-Purpose` may invoke `reviewer`; `reviewer` may invoke `Explore` for targeted discovery; `Explore` and `worker-browse` cannot invoke native subagents." : isCheapest ? "Native delegation is ACL-scoped: the lead may invoke all three; `General-Purpose` may invoke `reviewer`; `Explore`, `reviewer`, and `worker-browse` cannot invoke native subagents." : "Native delegation is ACL-scoped: the lead may invoke all four; `Plan` may invoke `Explore` and `reviewer`; `General-Purpose` may invoke `reviewer`; `Explore`, `reviewer`, and `worker-browse` cannot invoke native subagents.";
31686
31685
  return [
31687
31686
  "## Injected capabilities (summary)",
31688
31687
  "",
@@ -33117,4 +33116,4 @@ function enumerateInjectedMcpToolNames(groupKeys, opts = {}) {
33117
33116
  //#endregion
33118
33117
  export { EFFORT_ORDER as $, readResponseBodyCapped as $t, TOOLBELT_TOOLS$1 as A, withOneMSuffixForLead as An, nativeSubagentModel as At, resolveAdvisorEffort as B, CHEAP_PROFILE_NATIVE_EFFORTS as Bn, createMessages as Bt, runWorkerAgent as C, resolveLeadSlugArg as Cn, fastPlanModel as Ct, toolbeltEnabled as D, catalogAdvertises1M as Dn, geminiAvailable as Dt, buildToolbeltAwareness as E, classifyMessagesRoute as En, fleetToolsEnabled as Et, ADVISOR_TOOL_INSTRUCTIONS as F, CHEAPEST_PROFILE_NATIVE_MODELS as Fn, scribeModel as Ft, repairKnownThinkingHistory as G, registerLaunch as Gt, resolveCheapestAdvisorModel as H, CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS as Hn, getTokenCount as Ht, FAST_ADVISOR_TOOL_INSTRUCTIONS as I, CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS as In, standInToolEnabled as It, buildOpenAIErrorEvent as J, warnOnTokenPriceDrift as Jt, repairRejectedThinkingHistory as K, unregisterLaunch as Kt, buildAdvisorStream as L, CHEAP_PROFILE_ADVISOR_CLIENT_MODEL as Ln, workerToolsEnabled as Lt, satisfiesMinVersion as M, CHEAPEST_PROFILE_MODELS as Mn, reviewerFastModel as Mt, searchWeb as N, CHEAPEST_PROFILE_NATIVE_AGENT_NAMES as Nn, reviewerModel as Nt, toolbeltSkipSet as O, oneMContextDisabled as On, generalPurposeFastModel as Ot, ADVISOR_INTERNAL_TOOL_NAME as P, CHEAPEST_PROFILE_NATIVE_EFFORTS as Pn, scoutModel as Pt, relayAnthropicStream as Q, MAX_RESPONSE_BODY_BYTES as Qt, injectAdvisorTool as R, CHEAP_PROFILE_MODELS as Rn, shimDefaultsToXhigh as Rt, resolveWorkerRunOpts as S, pickClaudeDefault as Sn, fastOracleModel as St, availableToolCommands as T, upstreamMaxConnections as Tn, fastScoutModel as Tt, formatThinkingRepairDecline as U, getTokenizerFromModel as Ut, resolveAdvisorModel as V, CHEAP_PROFILE_NATIVE_MODELS as Vn, getTextTokenCount as Vt, rememberThinkingHistoryRepair as W, findLaunchBySecret as Wt, logStreamError as X, createResponses as Xt, isControllerClosedError as Y, resolveMcpToolTimeoutMs as Yt, readIteratorWithTimeout as Z, createChatCompletions as Zt, REVIEW_DEFAULT_MODEL as _, DEFAULT_PORT as _n, cheapestOracleModel as _t, buildAgentPrompt as a, provisionAndIndexColbert as an, agentToolsEnabled as at, resolveDefaultModel as b, generateRandomPort as bn, fastAstraModel as bt, enumerateInjectedMcpToolNames as c, DEFINITION_OF_GREATNESS as cn, balancedReviewerModel as ct, BROWSE_DEFAULT_MODEL as d, toolbeltPathOverride as dn, browserCompoundToolsEnabled as dt, parseJsonOrDiagnose as en, UNKNOWN_EFFORT_ANCHOR as et, DEFAULT_MODEL_CHAIN as f, BUDGET_SMALL_FAST_CATALOG_ID as fn, browserToolsEnabled as ft, PLAN_DEFAULT_MODEL as g, DEFAULT_CODEX_MODEL_FALLBACKS as gn, cheapestAdvisorModel as gt, IMPLEMENT_DEFAULT_MODEL as h, DEFAULT_CODEX_MODEL as hn, cheapReviewerModel as ht, assertMcpToolSurfaceConsistent as i, colbertDegradedWarning as in, handleMcpPost as it, assetFor as j, CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL as jn, resolveGeminiReviewModel as jt, vscodeRipgrepPath as k, withOneMSuffix as kn, implementerFastModel as kt, maxPersonasFor as l, shouldUseInsecureTls as ln, brainstormModel as lt, EXPLORE_DEFAULT_THINKING as m, DEFAULT_CLAUDE_MODEL_FALLBACKS as mn, cheapOracleModel as mt, MCP_GROUPS as n, provisionBrowserAssets as nn, clampEffort as nt, buildPeerAwarenessSnippet as o, semanticSearchOptedIn as on, artifactToolsEnabled as ot, EXPLORE_DEFAULT_MODEL as p, BUDGET_SMALL_FAST_SLUG as pn, cheapAdvisorModel as pt, buildAnthropicErrorEvent as q, assembleResponsesPayload as qt, agentNamesForToolAllowlist as r, hasSupportedBrowserInstalled as rn, handleMcpDelete as rt, buildPeerAwarenessSummary as s, CONDENSED_OPERATING_SEQUENCE as sn, balancedOracleModel as st, GROUP_META as t, normalizeOpenAIUsage as tn, bucketEffort as tt, personasFor as u, collapsePathKeys as un, browseAgentEnabled as ut, TEST_DEFAULT_MODEL as v, UPSTREAM_FETCH_TIMEOUT_MS as vn, cheapestReviewerModel as vt, buildEnv as w, upstreamAllowH2 as wn, fastReviewerModel as wt, resolveModeDefaults as x, isBudgetClaudeLead as xn, fastGeneralPurposeModel as xt, appendPlanReminder as y, UPSTREAM_INACTIVITY_TIMEOUT_MS as yn, fastAdvisorModel as yt, isAdvisorRequested as z, CHEAP_PROFILE_NATIVE_AGENT_NAMES as zn, countTokens as zt };
33119
33118
 
33120
- //# sourceMappingURL=peer-mcp-personas-DU2SO1RG.js.map
33119
+ //# sourceMappingURL=peer-mcp-personas-CmR3f7nO.js.map