github-router 0.3.336 → 0.3.338
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-XDkhQ2bk.js → attribution-settings-CeaG4eQa.js} +108 -143
- package/dist/attribution-settings-CeaG4eQa.js.map +1 -0
- package/dist/{balanced-profile-contract-B_3kJNoA.js → balanced-profile-contract-C6AgFJNp.js} +15 -18
- package/dist/balanced-profile-contract-C6AgFJNp.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-BOY6z6BX.js → claude-CjsxXwv2.js} +10 -14
- package/dist/claude-CjsxXwv2.js.map +1 -0
- package/dist/{codex-De2FoGs9.js → codex-CjZXP_n6.js} +4 -4
- package/dist/{codex-De2FoGs9.js.map → codex-CjZXP_n6.js.map} +1 -1
- package/dist/engine-cNHuW0j7.js +2 -0
- package/dist/{gate-discovery-aa7sEYNv.js → gate-discovery-DGBZpoS7.js} +2 -2
- package/dist/{gate-discovery-aa7sEYNv.js.map → gate-discovery-DGBZpoS7.js.map} +1 -1
- package/dist/hooks.mjs +2 -6
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-fast-dispatch-guard-Dtvd08n5.js → internal-fast-dispatch-guard-7UiD_vM5.js} +6 -5
- package/dist/internal-fast-dispatch-guard-7UiD_vM5.js.map +1 -0
- package/dist/{internal-fast-dispatch-guard-COveGbiT.js → internal-fast-dispatch-guard-ByXUE5oO.js} +1 -1
- package/dist/{internal-stop-hook-D45G87LA.js → internal-stop-hook-BgtHofxp.js} +2 -2
- package/dist/{internal-stop-hook-D45G87LA.js.map → internal-stop-hook-BgtHofxp.js.map} +1 -1
- package/dist/main.js +6 -6
- package/dist/{peer-mcp-personas-ChXkCxu9.js → peer-mcp-personas-qQgzZDPP.js} +23 -27
- package/dist/peer-mcp-personas-qQgzZDPP.js.map +1 -0
- package/dist/{provision-ChzRLLTd.js → provision-CjIatImk.js} +2 -2
- package/dist/{provision-ChzRLLTd.js.map → provision-CjIatImk.js.map} +1 -1
- package/dist/{serve-BWVdTPFB.js → serve-BM6x_Cqs.js} +5 -5
- package/dist/{serve-BWVdTPFB.js.map → serve-BM6x_Cqs.js.map} +1 -1
- package/dist/{server-setup-azGmaBuy.js → server-setup-M0PHRPjd.js} +48 -71
- package/dist/server-setup-M0PHRPjd.js.map +1 -0
- package/dist/{start-iGITduYA.js → start-BWEckTMU.js} +3 -3
- package/dist/{start-iGITduYA.js.map → start-BWEckTMU.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-XDkhQ2bk.js.map +0 -1
- package/dist/balanced-profile-contract-B_3kJNoA.js.map +0 -1
- package/dist/claude-BOY6z6BX.js.map +0 -1
- package/dist/engine-PIHIf_NI.js +0 -2
- package/dist/internal-fast-dispatch-guard-Dtvd08n5.js.map +0 -1
- package/dist/peer-mcp-personas-ChXkCxu9.js.map +0 -1
- package/dist/server-setup-azGmaBuy.js.map +0 -1
package/dist/main.js
CHANGED
|
@@ -47,15 +47,15 @@ const main = defineCommand({
|
|
|
47
47
|
},
|
|
48
48
|
subCommands: {
|
|
49
49
|
auth: () => import("./auth-DjKEIiqG.js").then((m) => m.auth),
|
|
50
|
-
start: () => import("./start-
|
|
51
|
-
claude: () => import("./claude-
|
|
52
|
-
codex: () => import("./codex-
|
|
53
|
-
serve: () => import("./serve-
|
|
50
|
+
start: () => import("./start-BWEckTMU.js").then((m) => m.start),
|
|
51
|
+
claude: () => import("./claude-CjsxXwv2.js").then((m) => m.claude),
|
|
52
|
+
codex: () => import("./codex-CjZXP_n6.js").then((m) => m.codex),
|
|
53
|
+
serve: () => import("./serve-BM6x_Cqs.js").then((m) => m.serve),
|
|
54
54
|
models: () => import("./models-68HDOEPK.js").then((m) => m.models),
|
|
55
55
|
"check-usage": () => import("./check-usage-B7UrDwD8.js").then((m) => m.checkUsage),
|
|
56
56
|
index: () => import("./index-cmd-DXYWgKS6.js").then((m) => m.indexCmd),
|
|
57
57
|
debug: () => import("./debug-CigFsS-h.js").then((m) => m.debug),
|
|
58
|
-
"internal-stop-hook": () => import("./internal-stop-hook-
|
|
58
|
+
"internal-stop-hook": () => import("./internal-stop-hook-BgtHofxp.js").then((m) => m.internalStopHook),
|
|
59
59
|
"internal-prompt-submit": () => import("./internal-prompt-submit-BMJ0A7vR.js").then((m) => m.internalPromptSubmit),
|
|
60
60
|
"internal-stop-review": () => import("./internal-stop-review-C7bOxX1q.js").then((m) => m.internalStopReview),
|
|
61
61
|
"internal-plan-review": () => import("./internal-plan-review-B4f0dpss.js").then((m) => m.internalPlanReview),
|
|
@@ -64,7 +64,7 @@ const main = defineCommand({
|
|
|
64
64
|
"internal-artifact-open": () => import("./internal-artifact-open-lta2UPnE.js").then((m) => m.internalArtifactOpen),
|
|
65
65
|
"internal-first-mate-guard": () => import("./internal-first-mate-guard-CAefr6Ce.js").then((m) => m.internalFirstMateGuard),
|
|
66
66
|
"internal-worker-guard": () => import("./internal-worker-guard-C0FJ4b29.js").then((m) => m.internalWorkerGuard),
|
|
67
|
-
"internal-fast-dispatch-guard": () => import("./internal-fast-dispatch-guard-
|
|
67
|
+
"internal-fast-dispatch-guard": () => import("./internal-fast-dispatch-guard-ByXUE5oO.js").then((m) => m.internalFastDispatchGuard),
|
|
68
68
|
"internal-max-dispatch-guard": () => import("./internal-max-dispatch-guard-BSRTtOit.js").then((m) => m.internalMaxDispatchGuard),
|
|
69
69
|
"internal-aic-status": () => import("./internal-aic-status-DV2ATIRT.js").then((m) => m.internalAicStatus)
|
|
70
70
|
}
|
|
@@ -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-
|
|
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,38 +128,35 @@ 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`)
|
|
132
|
-
* surface
|
|
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:
|
|
136
|
-
*
|
|
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
|
-
reviewer: "
|
|
144
|
+
reviewer: "gpt-6-sol",
|
|
145
145
|
advisor: "gpt-6-sol",
|
|
146
146
|
oracle: "gpt-6-sol"
|
|
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
|
});
|
|
@@ -23264,16 +23260,16 @@ function cheapestOracleModel() {
|
|
|
23264
23260
|
if (fastEndpointForModel(found) !== "responses") return void 0;
|
|
23265
23261
|
return CHEAPEST_PROFILE_ORACLE_MODEL;
|
|
23266
23262
|
}
|
|
23267
|
-
/**
|
|
23263
|
+
/** Sol/high reviewer for the cheapest profile at the 200K default window. */
|
|
23268
23264
|
function cheapestReviewerModel() {
|
|
23269
|
-
const reviewer = state.models?.data.find((m) => m.id ===
|
|
23265
|
+
const reviewer = state.models?.data.find((m) => m.id === CHEAPEST_PROFILE_MODELS.reviewer);
|
|
23270
23266
|
if (!reviewer) return void 0;
|
|
23271
23267
|
if (reviewer.capabilities?.supports?.tool_calls !== true) return void 0;
|
|
23272
23268
|
if ((reviewer.capabilities?.limits?.max_context_window_tokens ?? 0) < 2e5) return void 0;
|
|
23273
23269
|
const efforts = reviewer.capabilities?.supports?.reasoning_effort;
|
|
23274
23270
|
if (!Array.isArray(efforts) || !efforts.includes(CHEAPEST_PROFILE_NATIVE_EFFORTS.reviewer)) return void 0;
|
|
23275
|
-
if (fastEndpointForModel(reviewer) !== "
|
|
23276
|
-
return
|
|
23271
|
+
if (fastEndpointForModel(reviewer) !== "responses") return void 0;
|
|
23272
|
+
return CHEAPEST_PROFILE_MODELS.reviewer;
|
|
23277
23273
|
}
|
|
23278
23274
|
/** Exact GPT-6 Astra only: cheap escalation consultant at 200K/medium. */
|
|
23279
23275
|
function cheapAstraModel() {
|
|
@@ -23299,7 +23295,7 @@ function balancedOracleModel() {
|
|
|
23299
23295
|
if (fastEndpointForModel(found) !== "responses") return void 0;
|
|
23300
23296
|
return BALANCED_PROFILE_ORACLE_MODEL;
|
|
23301
23297
|
}
|
|
23302
|
-
/**
|
|
23298
|
+
/** Sol/high reviewer for the balanced profile at the 200K default window. */
|
|
23303
23299
|
function balancedReviewerModel() {
|
|
23304
23300
|
const found = state.models?.data.find((m) => m.id === BALANCED_PROFILE_MODELS.reviewer);
|
|
23305
23301
|
if (!found) return void 0;
|
|
@@ -23307,7 +23303,7 @@ function balancedReviewerModel() {
|
|
|
23307
23303
|
if ((found.capabilities?.limits?.max_context_window_tokens ?? 0) < 2e5) return void 0;
|
|
23308
23304
|
const efforts = found.capabilities?.supports?.reasoning_effort;
|
|
23309
23305
|
if (!Array.isArray(efforts) || !efforts.includes(BALANCED_PROFILE_NATIVE_EFFORTS.reviewer)) return void 0;
|
|
23310
|
-
if (fastEndpointForModel(found) !== "
|
|
23306
|
+
if (fastEndpointForModel(found) !== "responses") return void 0;
|
|
23311
23307
|
return BALANCED_PROFILE_MODELS.reviewer;
|
|
23312
23308
|
}
|
|
23313
23309
|
/**
|
|
@@ -31597,10 +31593,10 @@ function buildPeerAwarenessSnippet(opts) {
|
|
|
31597
31593
|
const artifactClause = opts.artifactToolsAvailable ? ` \`mcp__${fastPeersKey}__artifact_*\` provides artifact review with auto-open on plan completion.` : "";
|
|
31598
31594
|
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
31595
|
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), `
|
|
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
|
|
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
|
|
31603
|
-
const delegationClause = isBalanced ? "Native delegation is ACL-scoped: the lead may invoke all
|
|
31596
|
+
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.";
|
|
31597
|
+
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.";
|
|
31598
|
+
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}`;
|
|
31599
|
+
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
31600
|
return [
|
|
31605
31601
|
"## Peer review and advisor",
|
|
31606
31602
|
"",
|
|
@@ -31679,10 +31675,10 @@ function buildPeerAwarenessSummary(opts) {
|
|
|
31679
31675
|
const browserClause = opts.browserToolsAvailable ?? opts.browseAvailable ? ` \`mcp__${key("browser")}__*\` provides the opt-in browser.` : "";
|
|
31680
31676
|
const workerBrowseClause = opts.browseAvailable ? ` \`worker-browse\` runs delegated browsing tasks through \`mcp__${key("workers")}__browse\`.` : "";
|
|
31681
31677
|
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), \`
|
|
31683
|
-
const balancedRosterLine = `${profileLabel} launch profile. The lead owns planning, implementation, and verification by default. Task roster: \`Explore\` (targeted breadth when search is insufficient), \`
|
|
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\`
|
|
31685
|
-
const summaryDelegation = isBalanced ? "Native delegation is ACL-scoped: the lead may invoke all
|
|
31678
|
+
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.`;
|
|
31679
|
+
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.`;
|
|
31680
|
+
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.` : ""}`;
|
|
31681
|
+
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
31682
|
return [
|
|
31687
31683
|
"## Injected capabilities (summary)",
|
|
31688
31684
|
"",
|
|
@@ -33117,4 +33113,4 @@ function enumerateInjectedMcpToolNames(groupKeys, opts = {}) {
|
|
|
33117
33113
|
//#endregion
|
|
33118
33114
|
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
33115
|
|
|
33120
|
-
//# sourceMappingURL=peer-mcp-personas-
|
|
33116
|
+
//# sourceMappingURL=peer-mcp-personas-qQgzZDPP.js.map
|