github-router 0.3.371 → 0.3.372
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/ado-tools-CAtopk36.js +1 -0
- package/dist/{attribution-settings-Beer9wsJ.js → attribution-settings-HI_5bN_-.js} +6 -6
- package/dist/{attribution-settings-Beer9wsJ.js.map → attribution-settings-HI_5bN_-.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-CAYTTiyt.js → claude-BBSsqwln.js} +10 -10
- package/dist/claude-BBSsqwln.js.map +1 -0
- package/dist/{claude-md-injection-D1aMjvb_.js → claude-md-injection-BMon6WUD.js} +19 -22
- package/dist/claude-md-injection-BMon6WUD.js.map +1 -0
- package/dist/{codex-CALX-qG4.js → codex-PRWoBiOH.js} +5 -5
- package/dist/{codex-CALX-qG4.js.map → codex-PRWoBiOH.js.map} +1 -1
- package/dist/engine-CDZdAx8N.js +1 -0
- package/dist/{gate-discovery-CITKjhsD.js → gate-discovery-BNy8GKsC.js} +2 -2
- package/dist/{gate-discovery-CITKjhsD.js.map → gate-discovery-BNy8GKsC.js.map} +1 -1
- package/dist/hooks.mjs +45 -10
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-prompt-submit-bi7F7pKk.js → internal-prompt-submit-BW5g3MjD.js} +2 -2
- package/dist/{internal-prompt-submit-bi7F7pKk.js.map → internal-prompt-submit-BW5g3MjD.js.map} +1 -1
- package/dist/{internal-prompt-submit-B-kKTl-8.js → internal-prompt-submit-C4uDwr7G.js} +2 -2
- package/dist/{internal-rebrief-B6ZJS6Mp.js → internal-rebrief-DvBS8myn.js} +3 -3
- package/dist/{internal-rebrief-B6ZJS6Mp.js.map → internal-rebrief-DvBS8myn.js.map} +1 -1
- package/dist/{internal-stop-hook-DT27bzH7.js → internal-stop-hook-CXlOsW63.js} +2 -2
- package/dist/{internal-stop-hook-DT27bzH7.js.map → internal-stop-hook-CXlOsW63.js.map} +1 -1
- package/dist/main.js +8 -8
- package/dist/{peer-mcp-personas-D7vaM-V5.js → peer-mcp-personas-Dxxw5X1g.js} +265 -242
- package/dist/peer-mcp-personas-Dxxw5X1g.js.map +1 -0
- package/dist/{pi-D4LrdubN.js → pi-IYAvKF50.js} +805 -68
- package/dist/pi-IYAvKF50.js.map +1 -0
- package/dist/{provision-DonGTIfK.js → provision-CIn6I4w_.js} +33 -2
- package/dist/provision-CIn6I4w_.js.map +1 -0
- package/dist/{serve-jzmQ8KEE.js → serve-CttHP8dJ.js} +7 -7
- package/dist/{serve-jzmQ8KEE.js.map → serve-CttHP8dJ.js.map} +1 -1
- package/dist/{server-setup-wWidNq5m.js → server-setup-D7XHUrhM.js} +20 -17
- package/dist/server-setup-D7XHUrhM.js.map +1 -0
- package/dist/{start-CTluQxu5.js → start-XU5HwLd9.js} +3 -3
- package/dist/{start-CTluQxu5.js.map → start-XU5HwLd9.js.map} +1 -1
- package/dist/{static-context-pack-DvwLWlbe.js → static-context-pack-CsOAC87F.js} +98 -18
- package/dist/static-context-pack-CsOAC87F.js.map +1 -0
- package/dist/{workiq-tools-CDLIrILp.js → workiq-tools-CMoDjrO0.js} +1 -1
- package/package.json +1 -1
- package/dist/ado-tools-512UGB6R.js +0 -1
- package/dist/claude-CAYTTiyt.js.map +0 -1
- package/dist/claude-md-injection-D1aMjvb_.js.map +0 -1
- package/dist/engine-CSAEqj2p.js +0 -1
- package/dist/peer-mcp-personas-D7vaM-V5.js.map +0 -1
- package/dist/pi-D4LrdubN.js.map +0 -1
- package/dist/provision-DonGTIfK.js.map +0 -1
- package/dist/server-setup-wWidNq5m.js.map +0 -1
- package/dist/static-context-pack-DvwLWlbe.js.map +0 -1
|
@@ -7,8 +7,8 @@ import { r as fetchWithTransientRetry } from "./upstream-retry-i1k1Xai2.js";
|
|
|
7
7
|
import { t as getCopilotUsage } from "./get-copilot-usage-BSXeQEx8.js";
|
|
8
8
|
import { a as parseBoolEnv, c as runCommandCapture, i as killManagedTree, s as resolveExecutable, u as runCommandVoid } from "./exec-Bf8g_bIR.js";
|
|
9
9
|
import { c as FAST_PROFILE_MODELS, l as FAST_PROFILE_NATIVE_AGENT_NAMES, r as FAST_PROFILE_ADVISOR_MODEL } from "./fast-profile-contract-JOnZBgFB.js";
|
|
10
|
-
import { $ as buildAnthropicErrorEvent,
|
|
11
|
-
import {
|
|
10
|
+
import { $ as buildAnthropicErrorEvent, An as parseJsonOrDiagnose, B as FAST_ADVISOR_TOOL_INSTRUCTIONS, Cn as assembleResponsesPayload, Ct as ADO_DEFAULT_TOOLSETS, D as toolbeltEnabled, Dn as createChatCompletions, En as createResponses, Et as agentToolsEnabled, F as ADVISOR_TOOL_INSTRUCTIONS, Fn as normalizeKustoClusterUri, G as isAdvisorRequested, H as LOCAL_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS, I as CHEAPEST_ADVISOR_TOOL_INSTRUCTIONS, J as resolveCuratedAdvisorModel, K as resolveAdvisorEffort, L as CHEAPEST_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS, N as searchWeb, On as MAX_RESPONSE_BODY_BYTES, P as ADVISOR_INTERNAL_TOOL_NAME, Pn as normalizeCloudAgentEnvironment, Q as repairRejectedThinkingHistory, R as CHEAPLOCAL_ADVISOR_TOOL_INSTRUCTIONS, Rn as assertCopilotModelAllowed, St as provisionAdoTools, Tn as resolveMcpToolTimeoutMs, U as buildAdvisorStream, V as LOCAL_ADVISOR_TOOL_INSTRUCTIONS, W as injectAdvisorTool, X as rememberThinkingHistoryRepair, Y as formatThinkingRepairDecline, Yn as BUDGET_SMALL_FAST_SLUG, Z as repairKnownThinkingHistory, _n as LAUNCH_BOUND_TOKEN_PREFIX, _t as provisionWorkiqTools, at as EFFORT_ORDER, cn as shimDefaultsToXhigh, cr as classifyMessagesRoute, ct as clampEffort, dn as getTokenizerFromModel, dr as withOneMSuffix, dt as normalizeAnthropicUsageInPlace, er as UPSTREAM_FETCH_TIMEOUT_MS, et as buildOpenAIErrorEvent, fr as withOneMSuffixForLead, ft as handleMcpDelete, gn as createMessages, hn as countTokens, hr as CHEAP_PROFILE_NATIVE_AGENT_NAMES, i as assertMcpToolSurfaceConsistent, it as relayAnthropicStream, jn as normalizeOpenAIUsage, kn as readResponseBodyCapped, ln as getTextTokenCount, lr as catalogAdvertises1M, lt as anthropicUsageNormalizeDisabled, mn as localSessionId, mr as CHEAP_PROFILE_MODELS, nr as generateRandomPort, nt as logStreamError, or as upstreamAllowH2, ot as UNKNOWN_EFFORT_ANCHOR, pn as localBaseUrl, pr as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, pt as handleMcpPost, q as resolveAdvisorModel, qn as toolbeltPathOverride, rr as isBudgetClaudeLead, rt as readIteratorWithTimeout, sr as upstreamMaxConnections, st as bucketEffort, tr as UPSTREAM_INACTIVITY_TIMEOUT_MS, tt as isControllerClosedError, un as getTokenCount, ur as oneMContextDisabled, ut as createAnthropicUsageRewriteTransform, vn as findLaunchBySecret, vr as CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS, wn as warnOnTokenPriceDrift, wt as normalizeAdoToolsets, xn as rememberLaunchSessionId, z as CHEAPLOCAL_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS, zn as effectiveLocalProfile } from "./peer-mcp-personas-Dxxw5X1g.js";
|
|
11
|
+
import { C as localContractFor, I as CHEAPEST_PROFILE_MODELS, L as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, O as LOCAL_PROFILE_TIER_MODELS, S as local2AdvisorContract, _ as isBalancedFamily, b as isLocalFamily, f as balancedContractFor, g as displayModelName, j as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, p as cheapestContractFor, v as isCheapestFamily, x as isPinnedLaunchProfile } from "./static-context-pack-CsOAC87F.js";
|
|
12
12
|
import { i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, r as BALANCED_PROFILE_MODELS } from "./balanced-profile-contract-Dm_usmw7.js";
|
|
13
13
|
import { A as normalizeTrailingOneMSuffix, a as MAX_PROFILE_NATIVE_AGENT_NAMES, d as maxAdvisorPinIsValid, h as maxOpusModel, i as MAX_PROFILE_MODELS, j as stripTrailingOneMSuffix, k as fastEndpointForModel, l as maxAdvisorEffortForModel, n as MAX_PROFILE_ALLOWED_LEAD_MODEL_IDS, t as MAX_PROFILE_ADVISOR_INSTRUCTIONS, u as maxAdvisorModelFromPin, y as validateMaxProfilePrerequisites } from "./max-profile-contract-CRj7N211.js";
|
|
14
14
|
import { f as getAzureRepoFromGit } from "./bluebird-client-ByCRusGQ.js";
|
|
@@ -569,23 +569,26 @@ const BALANCED2_PROFILE = Object.freeze({
|
|
|
569
569
|
* coordinator), with every role's model swapped for the local endpoint's tier
|
|
570
570
|
* id.
|
|
571
571
|
*
|
|
572
|
-
* No agent turn on a local launch reaches a Copilot model, so every group
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
580
|
-
*
|
|
581
|
-
*
|
|
582
|
-
*
|
|
583
|
-
*
|
|
572
|
+
* No agent turn on a local launch reaches a Copilot model, so every group whose
|
|
573
|
+
* tools spawn one is absent: `workers` (the Pi workers resolve Copilot models)
|
|
574
|
+
* and every group built for model ties. `peers` is permitted for two reasons and
|
|
575
|
+
* only those: the artifact tools (human review, not model inference) and the
|
|
576
|
+
* `oracle` persona, whose consultant is the local endpoint itself
|
|
577
|
+
* (`consultTransport: "local"` on the contract). The allow-list is what keeps it
|
|
578
|
+
* to that one persona — every other peer stays unlisted and therefore
|
|
579
|
+
* uncallable. With the artifact panel off the group holds just the Oracle and
|
|
580
|
+
* both launchers still publish it. What remains is the surface that is not an
|
|
581
|
+
* agent model call — `search` (in-process lexical/ColBERT plus the PAT-backed
|
|
582
|
+
* web search), `browser` (a local extension, whose page compressor is the one
|
|
583
|
+
* model-backed exception and carries its own fixed chain), and the three Azure
|
|
584
|
+
* data groups. The egress guard in `copilot-model-policy.ts` enforces the same
|
|
585
|
+
* rule from the other side, so a path that somehow reaches Copilot still
|
|
586
|
+
* refuses.
|
|
584
587
|
*/
|
|
585
588
|
const LOCAL_PROFILE = Object.freeze({
|
|
586
589
|
id: "local",
|
|
587
590
|
nativeRoster: new Set(localContractFor("local").nativeAgentNames),
|
|
588
|
-
personaAllowlist: /* @__PURE__ */ new Set(),
|
|
591
|
+
personaAllowlist: /* @__PURE__ */ new Set(["oracle"]),
|
|
589
592
|
allowedGroups: /* @__PURE__ */ new Set([
|
|
590
593
|
"peers",
|
|
591
594
|
"search",
|
|
@@ -3549,7 +3552,7 @@ function collectToolFieldKeys(body) {
|
|
|
3549
3552
|
//#endregion
|
|
3550
3553
|
//#region package.json
|
|
3551
3554
|
var name = "github-router";
|
|
3552
|
-
var version = "0.3.
|
|
3555
|
+
var version = "0.3.372";
|
|
3553
3556
|
//#endregion
|
|
3554
3557
|
//#region src/lib/approval.ts
|
|
3555
3558
|
const awaitApproval = async () => {
|
|
@@ -9582,4 +9585,4 @@ function getPiLaunchEnvVars(mirrorDir) {
|
|
|
9582
9585
|
//#endregion
|
|
9583
9586
|
export { updateClaude as $, CHEAP_EXPLORE_ALIAS_ID as A, formatFastPrerequisiteFailure as B, BALANCED_EXPLORE_ALIAS_ID as C, CHEAPEST_EXPLORE_ALIAS_ID as D, BROWSE_LOW_ALIAS_ID as E, MAX_BROWSE_LOW_ALIAS_ID as F, validateCheap1mProfilePrerequisites as G, profileDescriptor as H, formatBalancedPrerequisiteFailure as I, validateFastProfilePrerequisites as J, validateCheapProfilePrerequisites as K, formatCheap1mPrerequisiteFailure as L, CHEAP_PLAN_ALIAS_ID as M, CHEAP_REVIEWER_ALIAS_ID as N, CHEAPEST_GENERAL_PURPOSE_ALIAS_ID as O, LUNA_SCOUT_ALIAS_ID as P, checkClaudeVersion as Q, formatCheapPrerequisiteFailure as R, enableFileLogging as S, BALANCED_REVIEWER_ALIAS_ID as T, resolveLaunchProfile as U, formatLocalPrerequisiteFailure as V, validateBalancedProfilePrerequisites as W, validateMaxProfileLaunch as X, validateLocalProfilePrerequisites as Y, runSelfUpdate as Z, sweepStalePiAgentMirrors as _, setupAndServe as a, injectModelPickerSettingsFile as b, PI_MIN_VERSION as c, meetsPiMinVersion as d, refreshPiInBackground as f, removeOwnPiAgentMirror as g, ensurePiAgentMirror as h, parseSharedArgs as i, CHEAP_GENERAL_PURPOSE_ALIAS_ID as j, CHEAPEST_REVIEWER_ALIAS_ID as k, ensurePiInstalled as l, updatePi as m, getCodexEnvVars as n, sharedServerArgs as o, resolvePiRegistry as p, validateCheapestProfilePrerequisites as q, getPiLaunchEnvVars as r, LAUNCH_SECRET_HEADER as s, getClaudeCodeEnvVars as t, getInstalledPiVersion as u, startKeepAwake as v, BALANCED_GENERAL_PURPOSE_ALIAS_ID as w, listModelsForEndpoint as x, stopKeepAwake as y, formatCheapestPrerequisiteFailure as z };
|
|
9584
9587
|
|
|
9585
|
-
//# sourceMappingURL=server-setup-
|
|
9588
|
+
//# sourceMappingURL=server-setup-D7XHUrhM.js.map
|