github-router 0.3.247 → 0.3.249

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.
@@ -16338,25 +16338,25 @@ async function provisionColbert() {
16338
16338
  }
16339
16339
  async function provisionBinary(asset, dest) {
16340
16340
  const sidecar = `${dest}.sha256`;
16341
- if (existsSync(dest) && await sidecarMatches(sidecar, asset.sha256)) return;
16341
+ if (await installedArtifactIsIntact(sidecar, dest, asset.sha256)) return;
16342
16342
  await mkdir(path.dirname(dest), { recursive: true });
16343
16343
  const archive = await download(asset.url);
16344
16344
  verifySha(archive, asset.sha256, "colgrep binary");
16345
16345
  const member = await extractMember(asset, archive, "colgrep");
16346
16346
  if (!member) throw new Error("colgrep binary not found in archive");
16347
16347
  await atomicWrite(dest, member, true);
16348
- await writeFile(sidecar, asset.sha256).catch(() => {});
16348
+ await writeFile(sidecar, sidecarContent(asset.sha256, member)).catch(() => {});
16349
16349
  }
16350
16350
  async function provisionOrt(asset, dest) {
16351
16351
  const sidecar = `${dest}.sha256`;
16352
- if (existsSync(dest) && await sidecarMatches(sidecar, asset.sha256)) return;
16352
+ if (await installedArtifactIsIntact(sidecar, dest, asset.sha256)) return;
16353
16353
  await mkdir(path.dirname(dest), { recursive: true });
16354
16354
  const archive = await download(asset.url);
16355
16355
  verifySha(archive, asset.sha256, "ONNX Runtime");
16356
16356
  const member = await extractMember(asset, archive, asset.member ?? "");
16357
16357
  if (!member) throw new Error("ORT dylib not found in archive");
16358
16358
  await atomicWrite(dest, member, true);
16359
- await writeFile(sidecar, asset.sha256).catch(() => {});
16359
+ await writeFile(sidecar, sidecarContent(asset.sha256, member)).catch(() => {});
16360
16360
  if (process$1.platform !== "win32" && asset.soname) {
16361
16361
  const link = path.join(path.dirname(dest), asset.soname);
16362
16362
  await rm(link, { force: true }).catch(() => {});
@@ -16431,13 +16431,44 @@ async function atomicWrite(dest, bytes, executable) {
16431
16431
  }
16432
16432
  }
16433
16433
  }
16434
- async function sidecarMatches(sidecar, sha256) {
16434
+ /**
16435
+ * Is the artifact already installed AND still the bytes we installed?
16436
+ *
16437
+ * Sidecar format is two whitespace-separated hashes: the ARCHIVE sha (which
16438
+ * manifest revision this came from) and the INSTALLED-FILE sha (what we wrote
16439
+ * to disk). Both are required.
16440
+ *
16441
+ * The archive hash alone is not enough, and trusting it caused a real outage.
16442
+ * `existsSync(dest) && sidecarMatches(archiveSha)` treats any file at the path
16443
+ * as good, so when a lane-1 test with a leaked `node:os` mock overwrote the
16444
+ * real `colgrep.exe` with a 6-byte stub, provisioning kept short-circuiting on
16445
+ * the still-valid sidecar and never re-downloaded. The smoke test then failed
16446
+ * every launch, removed `.smoke-ok`, and semantic search reported "unavailable
16447
+ * on this host" forever. Only manually deleting the binary could recover it.
16448
+ *
16449
+ * A legacy single-hash sidecar means the installed bytes were never recorded,
16450
+ * so their provenance is unknown. That returns false deliberately: one extra
16451
+ * download self-heals every install already corrupted by the above, which is
16452
+ * the whole point of checking.
16453
+ *
16454
+ * This matches what the model files already do (they hash installed content
16455
+ * before reuse); the binary and ORT were the two that skipped it.
16456
+ */
16457
+ async function installedArtifactIsIntact(sidecar, dest, archiveSha) {
16435
16458
  try {
16436
- return (await readFile(sidecar, "utf8")).trim() === sha256;
16459
+ if (!existsSync(dest)) return false;
16460
+ const [recordedArchive, recordedInstalled] = (await readFile(sidecar, "utf8")).trim().split(/\s+/);
16461
+ if (recordedArchive !== archiveSha) return false;
16462
+ if (!recordedInstalled) return false;
16463
+ return createHash("sha256").update(await readFile(dest)).digest("hex") === recordedInstalled;
16437
16464
  } catch {
16438
16465
  return false;
16439
16466
  }
16440
16467
  }
16468
+ /** Sidecar content pairing the archive revision with the installed bytes. */
16469
+ function sidecarContent(archiveSha, installed) {
16470
+ return `${archiveSha}\n${createHash("sha256").update(installed).digest("hex")}`;
16471
+ }
16441
16472
  /**
16442
16473
  * Post-provision smoke test. Runs ONE cheap colgrep invocation with the
16443
16474
  * EXACT isolating env the runner uses (`COLGREP_DATA_DIR`,
@@ -17689,18 +17720,30 @@ function lexicalSearchCodeMode(mode) {
17689
17720
  * Status-specific, actionable fallback hint. The semantic index isn't ready,
17690
17721
  * so the model got LEXICAL results (great for exact symbols, sparse for a
17691
17722
  * natural-language phrase since the lexical backend matches literally). Tell
17692
- * it both levers: retry `mode:"semantic"` shortly (the index is self-healing
17693
- * in the background) OR re-query now with specific symbol/keyword terms.
17723
+ * it both levers: retry `mode:"semantic"` (the index is self-healing in the
17724
+ * background) OR re-query now with specific symbol/keyword terms.
17725
+ *
17726
+ * "shortly" was too vague and cost a real recovery. A build takes MINUTES on a
17727
+ * large repo, and after a failed build the FIRST query is consumed triggering
17728
+ * the re-kick and still returns a fallback. So a caller who retried once,
17729
+ * seconds later, saw a second fallback and concluded the tool was broken
17730
+ * rather than mid-repair. Observed end to end on this repo: query, then
17731
+ * ~5 minutes of `building`, then `ready`. Naming the timescale and the
17732
+ * one-query-to-trigger behaviour is what turns "it's still broken" into
17733
+ * "it's coming back".
17734
+ *
17735
+ * The wording stays a range rather than a number: build time scales with
17736
+ * repository size, so a hard figure would be wrong for most callers.
17694
17737
  */
17695
17738
  const FALLBACK_GUIDANCE_MARKER = "retry mode:\"semantic\"";
17696
- const FALLBACK_GUIDANCE = `${FALLBACK_GUIDANCE_MARKER} shortly, or re-query now with specific symbol/keyword terms`;
17739
+ const FALLBACK_GUIDANCE = `${FALLBACK_GUIDANCE_MARKER} in a few minutes (a build takes minutes on a large repo), or re-query now with specific symbol/keyword terms`;
17697
17740
  function fallbackNoticeFor(status) {
17698
17741
  const tail = FALLBACK_GUIDANCE;
17699
17742
  switch (status) {
17700
- case "building": return `semantic index is building; returned lexical keyword matches ${tail}`;
17701
- case "stale": return `semantic index predates the current HEAD/tree (a background re-index was started); returned lexical keyword matches ${tail}`;
17702
- case "unavailable": return `no semantic index for this workspace yet (a background build was started); returned lexical keyword matches ${tail}`;
17703
- case "failed": return `semantic index unavailable (build failing see proxy logs); returned lexical keyword matches ${tail}`;
17743
+ case "building": return `semantic index is building; returned lexical keyword matches. ${tail}`;
17744
+ case "stale": return `semantic index predates the current HEAD/tree (a background re-index was started); returned lexical keyword matches. ${tail}`;
17745
+ case "unavailable": return `no semantic index for this workspace yet (a background build was started); returned lexical keyword matches. ${tail}`;
17746
+ case "failed": return `semantic index unavailable; this query started a background rebuild, so it returned lexical keyword matches. ${tail}`;
17704
17747
  default: return "returned lexical results";
17705
17748
  }
17706
17749
  }
@@ -19876,6 +19919,20 @@ function detectAgentCall(input) {
19876
19919
  //#endregion
19877
19920
  //#region src/services/copilot/endpoint.ts
19878
19921
  /**
19922
+ * Catalog spellings that mean each of our two clients. Copilot is not
19923
+ * self-consistent about the `/v1` prefix — the live catalog advertises
19924
+ * `/v1/messages` prefixed but `/chat/completions` bare, and this repo's own
19925
+ * fixtures carry both forms — so an exact-match on the bare spelling alone
19926
+ * silently misses a real shape. `src/lib/model-validation.ts` already
19927
+ * normalizes the same way (`ENDPOINT_ALIASES`); this keeps the two agreeing.
19928
+ *
19929
+ * Matching is EXACT against this set, never a suffix/`includes` test: a
19930
+ * `ws:/responses` (websocket transport) entry is NOT the `/responses` HTTP
19931
+ * client and must keep resolving to "serves neither".
19932
+ */
19933
+ const CHAT_ENDPOINTS = /* @__PURE__ */ new Set(["/chat/completions", "/v1/chat/completions"]);
19934
+ const RESPONSES_ENDPOINTS = /* @__PURE__ */ new Set(["/responses", "/v1/responses"]);
19935
+ /**
19879
19936
  * Decide which endpoint to call for a model from its catalog
19880
19937
  * `supported_endpoints`. Prefers `/chat/completions` when available (the
19881
19938
  * simpler, more widely-supported shape) and falls back to `/responses` for
@@ -19891,19 +19948,37 @@ function detectAgentCall(input) {
19891
19948
  function pickEndpoint(model) {
19892
19949
  const eps = model.supported_endpoints;
19893
19950
  if (!eps || eps.length === 0) return "chat";
19894
- if (eps.includes("/chat/completions")) return "chat";
19895
- if (eps.includes("/responses")) return "responses";
19951
+ if (eps.some((e) => CHAT_ENDPOINTS.has(e))) return "chat";
19952
+ if (eps.some((e) => RESPONSES_ENDPOINTS.has(e))) return "responses";
19896
19953
  }
19897
19954
  /**
19898
- * `pickEndpoint` by model id against the live catalog. Returns "chat" when
19899
- * the id isn't in the catalog (unknown models default to the chat shape,
19900
- * matching the field-absent rule above) — callers that need a hard
19901
- * presence check should look the model up themselves.
19955
+ * `pickEndpoint` by model id against the live catalog, WITHOUT collapsing
19956
+ * "absent from the catalog" into "serves neither of our endpoints".
19957
+ *
19958
+ * This function deliberately has no default. The predecessor
19959
+ * (`endpointForModelId`) returned `pickEndpoint(found) ?? "chat"`, which
19960
+ * coerced both cases to "chat" — defensible for an unknown id, silently wrong
19961
+ * for a catalog model serving only, say, `/v1/messages`: the caller would drive
19962
+ * it through the chat client and get an opaque upstream 400 with no local
19963
+ * signal about the real cause. `src/lib/browser-mcp/compressor.ts` already
19964
+ * treats that case correctly (`if (!endpoint) continue`); this makes the same
19965
+ * distinction available to callers that resolve by id.
19966
+ *
19967
+ * Callers that legitimately want the chat default for an unknown id can still
19968
+ * have it — they just have to write it, per case, on purpose.
19902
19969
  */
19903
- function endpointForModelId(id) {
19970
+ function resolveEndpointForModelId(id) {
19904
19971
  const found = state.models?.data?.find((m) => m.id === id);
19905
- if (!found) return "chat";
19906
- return pickEndpoint(found) ?? "chat";
19972
+ if (!found) return { kind: "unknown-model" };
19973
+ const endpoint = pickEndpoint(found);
19974
+ if (endpoint) return {
19975
+ kind: "endpoint",
19976
+ endpoint
19977
+ };
19978
+ return {
19979
+ kind: "unreachable",
19980
+ endpoints: found.supported_endpoints ?? []
19981
+ };
19907
19982
  }
19908
19983
  //#endregion
19909
19984
  //#region src/lib/browser-mcp/compressor.ts
@@ -24126,7 +24201,12 @@ async function runStreamLoop(stream, context, opts, options) {
24126
24201
  return;
24127
24202
  }
24128
24203
  }
24129
- if (endpointForModelId(resolved.modelId) === "responses") {
24204
+ const resolution = resolveEndpointForModelId(resolved.modelId);
24205
+ if (resolution.kind === "unreachable") {
24206
+ pushUndrivableModelDiagnostic(stream, resolved, resolution.endpoints);
24207
+ return;
24208
+ }
24209
+ if (resolution.kind === "endpoint" && resolution.endpoint === "responses") {
24130
24210
  await runResponsesStreamLoop(stream, context, opts, options);
24131
24211
  return;
24132
24212
  }
@@ -24950,6 +25030,33 @@ function pushBackstopDiagnostic(stream, resolved, assembledTokens, limitTokens)
24950
25030
  error: final
24951
25031
  });
24952
25032
  }
25033
+ /**
25034
+ * Terminal diagnostic for a model the worker cannot drive AT ALL: it is in the
25035
+ * live catalog, but its `supported_endpoints` name neither `/chat/completions`
25036
+ * nor `/responses` — our only two clients. Fails here, locally, naming the
25037
+ * model and what it actually serves, instead of coercing it onto the chat
25038
+ * client and surfacing an opaque upstream `unsupported_api_for_model` 400.
25039
+ * Carried as assistant TEXT so the engine surfaces it as an `isError` result
25040
+ * (same shape as the request-boundary backstop).
25041
+ */
25042
+ function pushUndrivableModelDiagnostic(stream, resolved, endpoints) {
25043
+ const served = endpoints.length > 0 ? endpoints.join(", ") : "(none advertised)";
25044
+ const text = `Cannot run: ${resolved.modelId} is in the Copilot catalog but serves neither /chat/completions nor /responses — the only two APIs a worker can drive. Its catalog supported_endpoints are: ${served}. Pick a different model for this call, or change the mode default via worker_defaults (a zero-arg worker_defaults call lists the models a worker can be pointed at).`;
25045
+ const final = {
25046
+ ...makeBaseMessage(resolved),
25047
+ content: [{
25048
+ type: "text",
25049
+ text
25050
+ }],
25051
+ stopReason: "error",
25052
+ errorMessage: `model ${resolved.modelId} serves no worker-drivable endpoint (${served})`
25053
+ };
25054
+ stream.push({
25055
+ type: "error",
25056
+ reason: "error",
25057
+ error: final
25058
+ });
25059
+ }
24953
25060
  function describeError(err) {
24954
25061
  if (err instanceof HTTPError) return `${err.message} (status ${err.response.status})`;
24955
25062
  if (err instanceof Error) return err.message;
@@ -30732,6 +30839,36 @@ function extractAssistantText(content) {
30732
30839
  for (const part of content) if (part.type === "text") out += part.text;
30733
30840
  return out;
30734
30841
  }
30842
+ /**
30843
+ * Banner that prefixes text salvaged from an EARLIER assistant turn when the
30844
+ * run ends without a usable final answer.
30845
+ *
30846
+ * It is deliberately loud. Recovered text is partial work — the model was
30847
+ * mid-investigation when it went quiet — and returning it bare would let the
30848
+ * caller read an interim note as a conclusion. That is a different bug from
30849
+ * the one this recovery fixes, and a worse one: silently wrong beats loudly
30850
+ * missing only for the model that produced it.
30851
+ */
30852
+ const RECOVERED_TEXT_BANNER = "[recovered from an earlier turn — this run ended without a final answer, so the text below is partial work in progress, NOT a conclusion. Treat it as leads to verify, not as the worker's answer.]";
30853
+ /**
30854
+ * Compose the recovered-text block for a run that is ending with nothing
30855
+ * usable in its final turn.
30856
+ *
30857
+ * Returns `""` in the two cases where recovery would be noise: the run DID
30858
+ * produce live text (nothing was lost), or no turn ever produced any.
30859
+ *
30860
+ * Scope note: `highWater` is the LAST non-empty assistant text, not a
30861
+ * concatenation of every non-empty turn. Accumulating them would turn a
30862
+ * recovered result into a transcript dump — mostly interim narration — where
30863
+ * the last turn is both the most complete and the one the model was building
30864
+ * toward when it stalled.
30865
+ */
30866
+ function recoveredBlock(liveText, highWater) {
30867
+ if (liveText.trim()) return "";
30868
+ const recovered = highWater.trim();
30869
+ if (!recovered) return "";
30870
+ return `${RECOVERED_TEXT_BANNER}\n\n${recovered}`;
30871
+ }
30735
30872
  const MAX_EMPTY_OUTPUT_NUDGES = 3;
30736
30873
  const EMPTY_OUTPUT_NUDGES = [
30737
30874
  "Summarize your findings so far.",
@@ -30908,6 +31045,7 @@ async function runWorkerAgentOnce(opts) {
30908
31045
  const abortHandler = () => agent.abort();
30909
31046
  if (opts.signal) opts.signal.addEventListener("abort", abortHandler, { once: true });
30910
31047
  let finalText = "";
31048
+ let lastNonEmptyText = "";
30911
31049
  let lastStopReason = null;
30912
31050
  let nudgeCount = 0;
30913
31051
  const maxEmptyOutputNudges = resolveMaxEmptyOutputNudges();
@@ -30934,6 +31072,7 @@ async function runWorkerAgentOnce(opts) {
30934
31072
  const content = msg.content;
30935
31073
  if (!Array.isArray(content)) return;
30936
31074
  finalText = extractAssistantText(content);
31075
+ if (finalText.trim()) lastNonEmptyText = finalText;
30937
31076
  const sr = msg.stopReason;
30938
31077
  if (typeof sr === "string") lastStopReason = sr;
30939
31078
  });
@@ -30956,30 +31095,41 @@ async function runWorkerAgentOnce(opts) {
30956
31095
  try {
30957
31096
  await ws.remove();
30958
31097
  } catch {}
30959
- const text = isBrowse ? terminalText ?? finalText : diff ? `${finalText}\n\n${diff}` : finalText;
31098
+ const liveAnswer = isBrowse ? terminalText ?? finalText : finalText;
31099
+ const recovered = recoveredBlock(liveAnswer, lastNonEmptyText);
31100
+ const text = isBrowse ? liveAnswer : diff ? `${finalText}\n\n${diff}` : finalText;
30960
31101
  if (lastStopReason === "error" || lastStopReason === "aborted") {
30961
- const diag = (terminalText ?? finalText).trim();
31102
+ const diag = liveAnswer.trim();
30962
31103
  let diagnostic;
30963
31104
  if (lastStopReason === "aborted") diagnostic = wallClockExpired ? "[halted: wallclock]" : "[halted: cancelled]";
30964
31105
  else diagnostic = diag || "Worker run failed before producing an answer — the model's input likely overflowed (a large tool result), or the upstream errored. Retry with a narrower task: target a specific section / file / element rather than reading everything at once.";
30965
31106
  return {
30966
31107
  text: lastStopReason === "aborted" ? [
30967
31108
  diag,
31109
+ recovered,
30968
31110
  diff,
30969
31111
  diagnostic
30970
- ].filter(Boolean).join("\n\n") : [diagnostic, diff].filter(Boolean).join("\n\n"),
31112
+ ].filter(Boolean).join("\n\n") : [
31113
+ diagnostic,
31114
+ recovered,
31115
+ diff
31116
+ ].filter(Boolean).join("\n\n"),
30971
31117
  isError: true
30972
31118
  };
30973
31119
  }
30974
31120
  if (budget.hardStopReason) return {
30975
- text: [text, `[halted: ${budget.hardStopReason}]`].filter(Boolean).join("\n\n"),
31121
+ text: [
31122
+ text,
31123
+ recovered,
31124
+ `[halted: ${budget.hardStopReason}]`
31125
+ ].filter(Boolean).join("\n\n"),
30976
31126
  isError: true
30977
31127
  };
30978
31128
  if (!text.trim()) return {
30979
- text: `${NO_OUTPUT_PREFIX} after ${nudgeCount} nudges (stopReason=${lastStopReason ?? "unknown"}, turns=${budget.turns}, elapsed=${budget.elapsedMs}ms)]; retry with a different model via worker_defaults, or narrow/split the task.`,
31129
+ text: [`${NO_OUTPUT_PREFIX} after ${nudgeCount} nudges (stopReason=${lastStopReason ?? "unknown"}, turns=${budget.turns}, elapsed=${budget.elapsedMs}ms)]; retry with a different model via worker_defaults, or narrow/split the task.`, recovered].filter(Boolean).join("\n\n"),
30980
31130
  isError: true
30981
31131
  };
30982
- return { text };
31132
+ return { text: [text, recovered].filter(Boolean).join("\n\n") };
30983
31133
  } catch (err) {
30984
31134
  let diff = "";
30985
31135
  try {
@@ -30992,7 +31142,12 @@ async function runWorkerAgentOnce(opts) {
30992
31142
  } catch {}
30993
31143
  const haltOrErr = err instanceof Error ? err.message : String(err);
30994
31144
  const parts = [];
30995
- if (finalText) parts.push(finalText);
31145
+ const liveAnswer = isBrowse ? terminalText ?? finalText : finalText;
31146
+ if (liveAnswer.trim()) parts.push(liveAnswer);
31147
+ else {
31148
+ const recovered = recoveredBlock(liveAnswer, lastNonEmptyText);
31149
+ if (recovered) parts.push(recovered);
31150
+ }
30996
31151
  if (diff) parts.push(diff);
30997
31152
  parts.push(haltOrErr);
30998
31153
  return {
@@ -35021,4 +35176,4 @@ function enumerateInjectedMcpToolNames(groupKeys, opts = {}) {
35021
35176
  //#endregion
35022
35177
  export { searchWeb as $, DEFAULT_CLAUDE_MODEL_FALLBACKS as $t, trustRepo as A, state as An, getTokenCount as At, TEST_DEFAULT_MODEL as B, hasSupportedBrowserInstalled as Bt, fileLastPromptStore as C, fetchWithTransientRetry as Cn, scoutModel as Ct, repoRoot as D, copilotBaseUrl as Dn, shimDefaultsToXhigh as Dt, repoFingerprint as E, GITHUB_API_BASE_URL as En, workerToolsEnabled as Et, EXPLORE_DEFAULT_MODEL as F, createChatCompletions as Ft, buildEnv as G, CONDENSED_OPERATING_SEQUENCE as Gt, resolveModeDefaults as H, extractTarGzMember as Ht, EXPLORE_DEFAULT_THINKING as I, MAX_RESPONSE_BODY_BYTES as It, toolbeltEnabled as J, ArtifactClient as Jt, availableToolCommands as K, DEFINITION_OF_GREATNESS as Kt, IMPLEMENT_DEFAULT_MODEL as L, readResponseBodyCapped as Lt, resolveSealedGate as M, resolveMcpToolTimeoutMs as Mt, BROWSE_DEFAULT_MODEL as N, pickEndpoint as Nt, stopGateEnabledForRepo as O, copilotHeaders as On, countTokens as Ot, DEFAULT_MODEL as P, createResponses as Pt, assetFor as Q, toolbeltPathOverride as Qt, PLAN_DEFAULT_MODEL as R, parseJsonOrDiagnose as Rt, fileFindingsStore as S, getGitHubUser as Sn, reviewerModel as St, isSubagentContext as T, forwardError as Tn, standInToolEnabled as Tt, resolveWorkerRunOpts as U, extractZipMember as Ut, appendPlanReminder as V, provisionAndIndexColbert as Vt, runWorkerAgent as W, warmTreeSitterPool as Wt, vscodeRipgrepPath as X, buildWorkspaceHeaderJson as Xt, toolbeltSkipSet as Y, buildWorkspaceHeaderHelperCommand as Yt, TOOLBELT_TOOLS$1 as Z, collapsePathKeys as Zt, stopGateDisabled as _, isNullish as _n, browserCompoundToolsEnabled as _t, buildPeerAwarenessSnippet as a, generateRandomPort as an, buildAnthropicErrorEvent as at, stopReviewEnabled as b, sleep$3 as bn, geminiAvailable as bt, personasFor as c, withInstallLock as cn, logStreamError as ct, buildStopHookCommand as d, setupGitHubToken as dn, handleMcpDelete as dt, DEFAULT_CODEX_MODEL as en, ADVISOR_INTERNAL_TOOL_NAME as et, captureLaunchBaseline as f, tryRefreshAndRetry as fn, handleMcpPost as ft, launchBaselineKey as g, filterBetaHeader as gn, browseAgentEnabled as gt, injectStopHookIntoSettingsFile as h, cacheVSCodeVersion as hn, brainstormModel as ht, buildAgentPrompt as i, UPSTREAM_INACTIVITY_TIMEOUT_MS as in, isAdvisorRequested as it, liveExec as j, assembleResponsesPayload as jt, stopReviewStateDir as k, githubHeaders as kn, createMessages as kt, buildArtifactOpenHookCommand as l, setupCopilotToken as ln, readIteratorWithTimeout as lt, fileBlockBudget as m, cacheModels as mn, artifactToolsEnabled as mt, MCP_GROUPS as n, DEFAULT_PORT as nn, buildAdvisorStream as nt, buildPeerAwarenessSummary as o, pickClaudeDefault as on, buildOpenAIErrorEvent as ot, decideStopHook as p, cacheCopilotVersion as pn, agentToolsEnabled as pt, buildToolbeltAwareness as q, shouldUseInsecureTls as qt, assertMcpToolSurfaceConsistent as r, UPSTREAM_FETCH_TIMEOUT_MS as rn, injectAdvisorTool as rt, enumerateInjectedMcpToolNames as s, getPackageVersion as sn, isControllerClosedError as st, GROUP_META as t, DEFAULT_CODEX_MODEL_FALLBACKS as tn, ADVISOR_TOOL_INSTRUCTIONS as tt, buildSessionBindHookCommand as u, setupGitHubAgentToken as un, relayAnthropicStream as ut, stopGateId as v, resolveCodexModel as vn, browserToolsEnabled as vt, fileReviewDebounce as w, HTTPError as wn, scribeModel as wt, fileBaselineStore as x, getModels as xn, nativeSubagentModel as xt, stopGatePlanMode as y, resolveModel as yn, fleetToolsEnabled as yt, REVIEW_DEFAULT_MODEL as z, provisionBrowserAssets as zt };
35023
35178
 
35024
- //# sourceMappingURL=peer-mcp-personas-EM3cQqlR.js.map
35179
+ //# sourceMappingURL=peer-mcp-personas-DJzLpfDJ.js.map