github-router 0.3.130 → 0.3.131
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/browser-ext/manifest.json +1 -1
- package/dist/engine-DCsTvsSw.js +6 -0
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/{peer-mcp-personas-YFzQuogX.js → peer-mcp-personas-CH2gmdPN.js} +32 -22
- package/dist/peer-mcp-personas-CH2gmdPN.js.map +1 -0
- package/package.json +1 -1
- package/dist/engine-CpFJzsSG.js +0 -6
- package/dist/peer-mcp-personas-YFzQuogX.js.map +0 -1
|
@@ -14868,7 +14868,7 @@ function standInToolEnabled() {
|
|
|
14868
14868
|
*
|
|
14869
14869
|
* Returns true iff BOTH:
|
|
14870
14870
|
* 1. Copilot's live catalog (`state.models?.data`) contains the
|
|
14871
|
-
* worker default model (`
|
|
14871
|
+
* worker default model (`gpt-5.4-mini`, used by explore)
|
|
14872
14872
|
* AND that entry advertises `capabilities.supports.tool_calls ===
|
|
14873
14873
|
* true`. The worker loop is function-calling; a model that can't
|
|
14874
14874
|
* emit tool_calls is unusable, so dormant-register (omit from
|
|
@@ -18822,22 +18822,31 @@ async function createWorktree(workspaceAbs, opts) {
|
|
|
18822
18822
|
*/
|
|
18823
18823
|
const WORKTREE_REGISTRY = new WorktreeRegistry();
|
|
18824
18824
|
registerExitHandlers(WORKTREE_REGISTRY);
|
|
18825
|
-
/** Default model + thinking for the
|
|
18826
|
-
* `
|
|
18827
|
-
*
|
|
18825
|
+
/** Default model + thinking for the `explore` mode. `gpt-5.4-mini` at
|
|
18826
|
+
* `xhigh` — fast, cheap, 400k-context, tool-call-capable, with tight
|
|
18827
|
+
* function-calling-loop discipline.
|
|
18828
18828
|
*
|
|
18829
|
-
* HISTORY / CAVEAT:
|
|
18830
|
-
* `gemini-3.
|
|
18831
|
-
*
|
|
18832
|
-
*
|
|
18833
|
-
*
|
|
18834
|
-
*
|
|
18829
|
+
* HISTORY / CAVEAT: earlier iterations used `gemini-3.1-pro-preview` then
|
|
18830
|
+
* `gemini-3.5-flash`; both flash defaults early-stopped with empty turns
|
|
18831
|
+
* on the function-calling loop (read a file then end the turn with no
|
|
18832
|
+
* summary), which the single no-output retry couldn't reliably recover.
|
|
18833
|
+
* `gpt-5.4-mini` does not show that pathology and is the proven `browse`
|
|
18834
|
+
* default. Routed through `/responses` by the stream-fn endpoint split.
|
|
18835
18835
|
*
|
|
18836
18836
|
* Exported so the MCP handler + the gate (`workerToolsEnabled`) read the
|
|
18837
18837
|
* same constant — drift would ship a tool whose docs/gate disagree with
|
|
18838
18838
|
* its runtime default. Caller can override per call via the `model` arg. */
|
|
18839
|
-
const DEFAULT_MODEL = "
|
|
18840
|
-
const DEFAULT_THINKING = "
|
|
18839
|
+
const DEFAULT_MODEL = "gpt-5.4-mini";
|
|
18840
|
+
const DEFAULT_THINKING = "xhigh";
|
|
18841
|
+
/** Default model + thinking for the READ-ONLY `review` mode. `gpt-5.5` at
|
|
18842
|
+
* `xhigh` — the strongest reasoning tier, 1M+ context, so the reviewer
|
|
18843
|
+
* has full headroom to verify correctness against the actual code. Same
|
|
18844
|
+
* model as `implement`; like it, this is NOT a `workerToolsEnabled` gate
|
|
18845
|
+
* input — if absent (e.g. a non-enterprise tier) `review` errors helpfully
|
|
18846
|
+
* at call time rather than vanishing the whole worker surface. Caller can
|
|
18847
|
+
* override per call via the `model` arg. */
|
|
18848
|
+
const REVIEW_DEFAULT_MODEL = "gpt-5.5";
|
|
18849
|
+
const REVIEW_DEFAULT_THINKING = "xhigh";
|
|
18841
18850
|
/** Default model + thinking for the READ+WRITE `implement` mode. `gpt-5.5`
|
|
18842
18851
|
* at `xhigh` — the strongest reasoning tier in the catalog, 1M+ context,
|
|
18843
18852
|
* routed through `/responses` by the stream-fn endpoint split. Coding edits
|
|
@@ -18964,9 +18973,10 @@ async function runWorkerAgentOnce(opts) {
|
|
|
18964
18973
|
try {
|
|
18965
18974
|
const isBrowse = opts.mode === "browse";
|
|
18966
18975
|
const isPlan = opts.mode === "plan";
|
|
18976
|
+
const isReview = opts.mode === "review";
|
|
18967
18977
|
const isWriteCapable = opts.mode === "implement" || opts.mode === "test";
|
|
18968
|
-
const defaultModel = isBrowse ? BROWSE_DEFAULT_MODEL : isPlan ? PLAN_DEFAULT_MODEL : isWriteCapable ? IMPLEMENT_DEFAULT_MODEL : DEFAULT_MODEL;
|
|
18969
|
-
const defaultThinking = isBrowse ? BROWSE_DEFAULT_THINKING : isPlan ? PLAN_DEFAULT_THINKING : isWriteCapable ? IMPLEMENT_DEFAULT_THINKING : DEFAULT_THINKING;
|
|
18978
|
+
const defaultModel = isBrowse ? BROWSE_DEFAULT_MODEL : isPlan ? PLAN_DEFAULT_MODEL : isReview ? REVIEW_DEFAULT_MODEL : isWriteCapable ? IMPLEMENT_DEFAULT_MODEL : DEFAULT_MODEL;
|
|
18979
|
+
const defaultThinking = isBrowse ? BROWSE_DEFAULT_THINKING : isPlan ? PLAN_DEFAULT_THINKING : isReview ? REVIEW_DEFAULT_THINKING : isWriteCapable ? IMPLEMENT_DEFAULT_THINKING : DEFAULT_THINKING;
|
|
18970
18980
|
const resolved = resolveModelAndThinking({
|
|
18971
18981
|
model: opts.model ?? defaultModel,
|
|
18972
18982
|
thinking: opts.thinking ?? defaultThinking
|
|
@@ -21865,7 +21875,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
21865
21875
|
toolNameHttp: "explore",
|
|
21866
21876
|
group: "workers",
|
|
21867
21877
|
capability: "worker",
|
|
21868
|
-
description: "Read-only investigation by an autonomous worker (Pi runtime; default model `
|
|
21878
|
+
description: "Read-only investigation by an autonomous worker (Pi runtime; default model `gpt-5.4-mini` at xhigh reasoning, override via the `model` arg with any Copilot-catalog model that advertises `tool_calls`). Tools: read, glob, grep, code_search (semantic-first), web_search, fetch_url, advisor (consult a stronger cross-lab model), update_plan (planning checklist), and toolbelt (run a read-only analysis CLI: rg/fd/jq/yq/sg/gron/tokei/difft/git). The worker's system prompt sandboxes it and gives one-line descriptions of each tool, so brief it on the investigation, not on tool semantics. Offloads bounded research that would otherwise eat your context window — the worker plans its own tool calls and returns a single text answer. Examples: \"find files matching X then summarize\", \"how does library Y handle Z\", \"survey this codebase for usages of deprecated API\".",
|
|
21869
21879
|
inputSchema: {
|
|
21870
21880
|
type: "object",
|
|
21871
21881
|
required: ["prompt"],
|
|
@@ -21877,7 +21887,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
21877
21887
|
},
|
|
21878
21888
|
model: {
|
|
21879
21889
|
type: "string",
|
|
21880
|
-
description: "Optional Copilot catalog model id (defaults to
|
|
21890
|
+
description: "Optional Copilot catalog model id (defaults to gpt-5.4-mini). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
|
|
21881
21891
|
},
|
|
21882
21892
|
thinking: {
|
|
21883
21893
|
type: "string",
|
|
@@ -21957,7 +21967,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
21957
21967
|
toolNameHttp: "review",
|
|
21958
21968
|
group: "workers",
|
|
21959
21969
|
capability: "worker",
|
|
21960
|
-
description: "Read-only code review by an autonomous worker (Pi runtime; default model `
|
|
21970
|
+
description: "Read-only code review by an autonomous worker (Pi runtime; default model `gpt-5.5` at xhigh reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). Same read-only toolset as `explore` (read, glob, grep, code_search, web_search, fetch_url, advisor, update_plan, toolbelt) — it CANNOT edit — but the worker is framed as a reviewer: it verifies correctness against the actual code itself rather than trusting a claim, and reports findings (bugs, edge cases, security / concurrency / resource risks, missing handling) with a severity and `file:line`. Brief it with the change / diff / claim to verify (paste it, or name the files) — it reads the code to confirm, so you get a self-verifying second opinion that doesn't depend on you having pre-extracted the relevant code. Unlike the `peers` critics (single stateless model calls on the artifact you paste), this worker can navigate the repo to check surrounding context for itself.",
|
|
21961
21971
|
inputSchema: {
|
|
21962
21972
|
type: "object",
|
|
21963
21973
|
required: ["prompt"],
|
|
@@ -21969,7 +21979,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
21969
21979
|
},
|
|
21970
21980
|
model: {
|
|
21971
21981
|
type: "string",
|
|
21972
|
-
description: "Optional Copilot catalog model id (defaults to
|
|
21982
|
+
description: "Optional Copilot catalog model id (defaults to gpt-5.5). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
|
|
21973
21983
|
},
|
|
21974
21984
|
thinking: {
|
|
21975
21985
|
type: "string",
|
|
@@ -22001,7 +22011,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
22001
22011
|
toolNameHttp: "plan",
|
|
22002
22012
|
group: "workers",
|
|
22003
22013
|
capability: "worker",
|
|
22004
|
-
description: "Read-only implementation planning by an autonomous worker (Pi runtime; default model `
|
|
22014
|
+
description: "Read-only implementation planning by an autonomous worker (Pi runtime; default model `claude-opus-4.8`, override via `model` with any Copilot-catalog model that advertises `tool_calls`). Same read-only toolset as `explore` (read, glob, grep, code_search, web_search, fetch_url, advisor, update_plan, toolbelt) — it CANNOT edit — but the worker is framed as a planner: from the task and acceptance criteria it produces a concrete, ordered implementation plan (the files to change, the approach, the key risks, and how each acceptance criterion will be verified), grounded by reading the actual code. Brief it with the task and any acceptance criteria; it returns a single plan, not code.",
|
|
22005
22015
|
inputSchema: {
|
|
22006
22016
|
type: "object",
|
|
22007
22017
|
required: ["prompt"],
|
|
@@ -22013,7 +22023,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
22013
22023
|
},
|
|
22014
22024
|
model: {
|
|
22015
22025
|
type: "string",
|
|
22016
|
-
description: "Optional Copilot catalog model id (defaults to
|
|
22026
|
+
description: "Optional Copilot catalog model id (defaults to claude-opus-4.8). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
|
|
22017
22027
|
},
|
|
22018
22028
|
thinking: {
|
|
22019
22029
|
type: "string",
|
|
@@ -22695,5 +22705,5 @@ async function runStandInToolCall(args, signal) {
|
|
|
22695
22705
|
}
|
|
22696
22706
|
|
|
22697
22707
|
//#endregion
|
|
22698
|
-
export {
|
|
22699
|
-
//# sourceMappingURL=peer-mcp-personas-
|
|
22708
|
+
export { relayAnthropicStream as $, IMPLEMENT_DEFAULT_MODEL as A, withInstallLock as At, vscodeRipgrepPath as B, resolveModel as Bt, stopGateEnabledForRepo as C, DEFAULT_CODEX_MODEL_FALLBACKS as Ct, liveExec as D, generateRandomPort as Dt, resolveSealedGate as E, UPSTREAM_INACTIVITY_TIMEOUT_MS as Et, withNoOutputRetry as F, cacheModels as Ft, ADVISOR_TOOL_INSTRUCTIONS as G, forwardError as Gt, assetFor as H, getModels as Ht, availableToolCommands as I, cacheVSCodeVersion as It, isAdvisorRequested as J, copilotHeaders as Jt, buildAdvisorStream as K, GITHUB_API_BASE_URL as Kt, buildToolbeltAwareness as L, filterBetaHeader as Lt, REVIEW_DEFAULT_MODEL as M, setupGitHubToken as Mt, appendPlanReminder as N, tryRefreshAndRetry as Nt, BROWSE_DEFAULT_MODEL as O, pickClaudeDefault as Ot, runWorkerAgent as P, cacheCopilotVersion as Pt, readIteratorWithTimeout as Q, toolbeltEnabled as R, isNullish as Rt, repoRoot as S, DEFAULT_CODEX_MODEL as St, trustRepo as T, UPSTREAM_FETCH_TIMEOUT_MS as Tt, searchWeb as U, fetchWithTransientRetry as Ut, TOOLBELT_TOOLS$1 as V, sleep as Vt, ADVISOR_INTERNAL_TOOL_NAME as W, HTTPError as Wt, isControllerClosedError as X, state as Xt, buildOpenAIErrorEvent as Y, githubHeaders as Yt, logStreamError as Z, fileFindingsStore as _, extractTarGzMember as _t, buildPeerAwarenessSnippet as a, workerToolsEnabled as at, isSubagentContext as b, toolbeltPathOverride as bt, buildStopHookCommand as c, getTokenCount as ct, fileBlockBudget as d, MAX_RESPONSE_BODY_BYTES as dt, handleMcpDelete as et, injectStopHookIntoSettingsFile as f, readResponseBodyCapped as ft, fileBaselineStore as g, provisionAndIndexColbert as gt, stopReviewEnabled as h, hasSupportedBrowserInstalled as ht, buildAgentPrompt as i, standInToolEnabled as it, PLAN_DEFAULT_MODEL as j, setupCopilotToken as jt, DEFAULT_MODEL as k, getPackageVersion as kt, captureLaunchBaseline as l, createResponses as lt, stopGateId as m, provisionBrowserAssets as mt, MCP_GROUPS as n, browserToolsEnabled as nt, personasFor as o, countTokens as ot, launchBaselineKey as p, parseJsonOrDiagnose as pt, injectAdvisorTool as q, copilotBaseUrl as qt, assertMcpToolSurfaceConsistent as r, fleetToolsEnabled as rt, buildSessionBindHookCommand as s, createMessages as st, GROUP_META as t, handleMcpPost as tt, decideStopHook as u, createChatCompletions as ut, fileLastPromptStore as v, extractZipMember as vt, stopReviewStateDir as w, DEFAULT_PORT as wt, repoFingerprint as x, DEFAULT_CLAUDE_MODEL_FALLBACKS as xt, fileReviewDebounce as y, collapsePathKeys as yt, toolbeltSkipSet as z, resolveCodexModel as zt };
|
|
22709
|
+
//# sourceMappingURL=peer-mcp-personas-CH2gmdPN.js.map
|