github-router 0.3.136 → 0.3.137

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.
@@ -9598,7 +9598,7 @@ async function callViaChat(model, systemPrompt, userMessage, tool$1, signal) {
9598
9598
  type: "function",
9599
9599
  function: { name: tool$1.name }
9600
9600
  }
9601
- }, void 0, signal)).choices?.[0]?.message;
9601
+ }, void 0, signal, true)).choices?.[0]?.message;
9602
9602
  const toolArgs = msg?.tool_calls?.[0]?.function?.arguments;
9603
9603
  if (typeof toolArgs === "string" && toolArgs.length > 0) return JSON.parse(toolArgs);
9604
9604
  const text = typeof msg?.content === "string" ? msg.content : "";
@@ -9631,7 +9631,7 @@ async function callViaResponses(model, systemPrompt, userMessage, tool$1, signal
9631
9631
  type: "function",
9632
9632
  name: tool$1.name
9633
9633
  }
9634
- }, void 0, signal);
9634
+ }, void 0, signal, true);
9635
9635
  const output = Array.isArray(resp.output) ? resp.output : [];
9636
9636
  for (const item of output) {
9637
9637
  if (!item || typeof item !== "object") continue;
@@ -13223,7 +13223,7 @@ async function runStreamLoop(stream, context, opts, options) {
13223
13223
  }
13224
13224
  let sseStream;
13225
13225
  try {
13226
- const result = await createChatCompletions(payload, void 0, options?.signal);
13226
+ const result = await createChatCompletions(payload, void 0, options?.signal, true);
13227
13227
  if (result == null || typeof result[Symbol.asyncIterator] !== "function") throw new Error("Upstream did not return an SSE stream (stream: true expected)");
13228
13228
  sseStream = result;
13229
13229
  } catch (err) {
@@ -13496,7 +13496,7 @@ async function runResponsesStreamLoop(stream, context, opts, options) {
13496
13496
  }
13497
13497
  let sseStream;
13498
13498
  try {
13499
- const result = await createResponses(payload, void 0, options?.signal);
13499
+ const result = await createResponses(payload, void 0, options?.signal, true);
13500
13500
  if (result == null || typeof result[Symbol.asyncIterator] !== "function") throw new Error("Upstream did not return an SSE stream (stream: true expected)");
13501
13501
  sseStream = result;
13502
13502
  } catch (err) {
@@ -16861,7 +16861,7 @@ function buildAdvisorStream(opts) {
16861
16861
  ...opts.baseBody,
16862
16862
  messages: conversation,
16863
16863
  stream: true
16864
- }), opts.requestHeaders, aborter.signal);
16864
+ }), opts.requestHeaders, aborter.signal, true);
16865
16865
  }
16866
16866
  if (aborter.signal.aborted) return;
16867
16867
  const finalIndex = nextSyntheticIndex++;
@@ -18612,7 +18612,7 @@ function advisorTool(getMessages) {
18612
18612
  }],
18613
18613
  stream: false,
18614
18614
  reasoning: { effort: ADVISOR_DEFAULT_EFFORT }
18615
- }, void 0, signal));
18615
+ }, void 0, signal, true));
18616
18616
  if (!text) throw new Error("advisor returned empty output");
18617
18617
  return textResult(text);
18618
18618
  } finally {
@@ -22915,4 +22915,4 @@ async function runStandInToolCall(args, signal) {
22915
22915
 
22916
22916
  //#endregion
22917
22917
  export { readIteratorWithTimeout as $, state as $t, DEFAULT_MODEL as A, generateRandomPort as At, toolbeltSkipSet as B, filterBetaHeader as Bt, repoRoot as C, toolbeltPathOverride as Ct, resolveSealedGate as D, DEFAULT_PORT as Dt, trustRepo as E, DEFAULT_CODEX_MODEL_FALLBACKS as Et, runWorkerAgent as F, setupGitHubToken as Ft, ADVISOR_INTERNAL_TOOL_NAME as G, getModels as Gt, TOOLBELT_TOOLS$1 as H, resolveCodexModel as Ht, withNoOutputRetry as I, tryRefreshAndRetry as It, injectAdvisorTool as J, forwardError as Jt, ADVISOR_TOOL_INSTRUCTIONS as K, fetchWithTransientRetry as Kt, availableToolCommands as L, cacheCopilotVersion as Lt, PLAN_DEFAULT_MODEL as M, getPackageVersion as Mt, REVIEW_DEFAULT_MODEL as N, withInstallLock as Nt, liveExec as O, UPSTREAM_FETCH_TIMEOUT_MS as Ot, appendPlanReminder as P, setupCopilotToken as Pt, logStreamError as Q, githubHeaders as Qt, buildToolbeltAwareness as R, cacheModels as Rt, repoFingerprint as S, collapsePathKeys as St, stopReviewStateDir as T, DEFAULT_CODEX_MODEL as Tt, assetFor as U, resolveModel as Ut, vscodeRipgrepPath as V, isNullish as Vt, searchWeb as W, sleep as Wt, buildOpenAIErrorEvent as X, copilotBaseUrl as Xt, isAdvisorRequested as Y, GITHUB_API_BASE_URL as Yt, isControllerClosedError as Z, copilotHeaders as Zt, fileBaselineStore as _, provisionAndIndexColbert as _t, buildPeerAwarenessSnippet as a, standInToolEnabled as at, fileReviewDebounce as b, shouldUseInsecureTls as bt, buildSessionBindHookCommand as c, createMessages as ct, decideStopHook as d, createChatCompletions as dt, relayAnthropicStream as et, fileBlockBudget as f, MAX_RESPONSE_BODY_BYTES as ft, stopReviewEnabled as g, hasSupportedBrowserInstalled as gt, stopGateId as h, provisionBrowserAssets as ht, buildAgentPrompt as i, fleetToolsEnabled as it, IMPLEMENT_DEFAULT_MODEL as j, pickClaudeDefault as jt, BROWSE_DEFAULT_MODEL as k, UPSTREAM_INACTIVITY_TIMEOUT_MS as kt, buildStopHookCommand as l, getTokenCount as lt, launchBaselineKey as m, parseJsonOrDiagnose as mt, MCP_GROUPS as n, handleMcpPost as nt, personasFor as o, workerToolsEnabled as ot, injectStopHookIntoSettingsFile as p, readResponseBodyCapped as pt, buildAdvisorStream as q, HTTPError as qt, assertMcpToolSurfaceConsistent as r, browserToolsEnabled as rt, buildArtifactOpenHookCommand as s, countTokens as st, GROUP_META as t, handleMcpDelete as tt, captureLaunchBaseline as u, createResponses as ut, fileFindingsStore as v, extractTarGzMember as vt, stopGateEnabledForRepo as w, DEFAULT_CLAUDE_MODEL_FALLBACKS as wt, isSubagentContext as x, ArtifactClient as xt, fileLastPromptStore as y, extractZipMember as yt, toolbeltEnabled as z, cacheVSCodeVersion as zt };
22918
- //# sourceMappingURL=peer-mcp-personas-Dmx4S0_5.js.map
22918
+ //# sourceMappingURL=peer-mcp-personas-KHFhxjFn.js.map