github-router 0.3.336 → 0.3.337
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-Bpa-YTZ5.js} +7 -7
- package/dist/attribution-settings-Bpa-YTZ5.js.map +1 -0
- package/dist/{balanced-profile-contract-B_3kJNoA.js → balanced-profile-contract-DdmG6RRd.js} +3 -3
- package/dist/{balanced-profile-contract-B_3kJNoA.js.map → balanced-profile-contract-DdmG6RRd.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-BOY6z6BX.js → claude-X8KYtT5_.js} +10 -10
- package/dist/claude-X8KYtT5_.js.map +1 -0
- package/dist/{codex-De2FoGs9.js → codex-CbYioKum.js} +4 -4
- package/dist/{codex-De2FoGs9.js.map → codex-CbYioKum.js.map} +1 -1
- package/dist/engine-Di1OB28h.js +2 -0
- package/dist/{gate-discovery-aa7sEYNv.js → gate-discovery-C27g6aJn.js} +2 -2
- package/dist/{gate-discovery-aa7sEYNv.js.map → gate-discovery-C27g6aJn.js.map} +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-fast-dispatch-guard-Dtvd08n5.js → internal-fast-dispatch-guard-0Or2xigH.js} +3 -3
- package/dist/internal-fast-dispatch-guard-0Or2xigH.js.map +1 -0
- package/dist/{internal-fast-dispatch-guard-COveGbiT.js → internal-fast-dispatch-guard-UQSbkLqY.js} +1 -1
- package/dist/{internal-stop-hook-D45G87LA.js → internal-stop-hook-YCK7DX-x.js} +2 -2
- package/dist/{internal-stop-hook-D45G87LA.js.map → internal-stop-hook-YCK7DX-x.js.map} +1 -1
- package/dist/main.js +6 -6
- package/dist/{peer-mcp-personas-ChXkCxu9.js → peer-mcp-personas-DU2SO1RG.js} +9 -9
- package/dist/peer-mcp-personas-DU2SO1RG.js.map +1 -0
- package/dist/{provision-ChzRLLTd.js → provision-Ck059J4j.js} +2 -2
- package/dist/{provision-ChzRLLTd.js.map → provision-Ck059J4j.js.map} +1 -1
- package/dist/{serve-BWVdTPFB.js → serve-QSuKiRrF.js} +5 -5
- package/dist/{serve-BWVdTPFB.js.map → serve-QSuKiRrF.js.map} +1 -1
- package/dist/{server-setup-azGmaBuy.js → server-setup-BMd_WJqh.js} +29 -44
- package/dist/server-setup-BMd_WJqh.js.map +1 -0
- package/dist/{start-iGITduYA.js → start-Ikh4r6Pa.js} +3 -3
- package/dist/{start-iGITduYA.js.map → start-Ikh4r6Pa.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-XDkhQ2bk.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
|
@@ -6,8 +6,8 @@ import { _ as forwardError, a as cacheCopilotVersion, b as copilotBaseUrl, c as
|
|
|
6
6
|
import { r as fetchWithTransientRetry } from "./upstream-retry-i1k1Xai2.js";
|
|
7
7
|
import { t as getCopilotUsage } from "./get-copilot-usage-CGaV01dC.js";
|
|
8
8
|
import { c as runCommandVoid, i as parseBoolEnv, o as resolveExecutable, r as killManagedTree, s as runCommandCapture } from "./exec-MCU1H-KZ.js";
|
|
9
|
-
import { _ as FAST_PROFILE_MODELS, f as FAST_PROFILE_ADVISOR_MODEL, i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, l as BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS, n as BALANCED_PROFILE_LEAD_EFFORT, r as BALANCED_PROFILE_MODELS, v as FAST_PROFILE_NATIVE_AGENT_NAMES } from "./balanced-profile-contract-
|
|
10
|
-
import { $ as EFFORT_ORDER, $t as readResponseBodyCapped, An as withOneMSuffixForLead, B as resolveAdvisorEffort, Bt as createMessages, D as toolbeltEnabled, Dn as catalogAdvertises1M, En as classifyMessagesRoute, F as ADVISOR_TOOL_INSTRUCTIONS, G as repairKnownThinkingHistory, H as resolveCheapestAdvisorModel, Hn as CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS, Ht as getTokenCount, I as FAST_ADVISOR_TOOL_INSTRUCTIONS, In as CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS, J as buildOpenAIErrorEvent, Jt as warnOnTokenPriceDrift, K as repairRejectedThinkingHistory, L as buildAdvisorStream, Ln as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, Mn as CHEAPEST_PROFILE_MODELS, N as searchWeb, Nn as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, On as oneMContextDisabled, P as ADVISOR_INTERNAL_TOOL_NAME, Q as relayAnthropicStream, Qt as MAX_RESPONSE_BODY_BYTES, R as injectAdvisorTool, Rn as CHEAP_PROFILE_MODELS, Rt as shimDefaultsToXhigh, Tn as upstreamMaxConnections, U as formatThinkingRepairDecline, Ut as getTokenizerFromModel, V as resolveAdvisorModel, Vt as getTextTokenCount, W as rememberThinkingHistoryRepair, Wt as findLaunchBySecret, X as logStreamError, Xt as createResponses, Y as isControllerClosedError, Yt as resolveMcpToolTimeoutMs, Z as readIteratorWithTimeout, Zt as createChatCompletions, at as agentToolsEnabled, bn as generateRandomPort, dn as toolbeltPathOverride, en as parseJsonOrDiagnose, et as UNKNOWN_EFFORT_ANCHOR, i as assertMcpToolSurfaceConsistent, it as handleMcpPost, jn as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, kn as withOneMSuffix, nt as clampEffort, pn as BUDGET_SMALL_FAST_SLUG, q as buildAnthropicErrorEvent, qt as assembleResponsesPayload, rt as handleMcpDelete, tn as normalizeOpenAIUsage, tt as bucketEffort, vn as UPSTREAM_FETCH_TIMEOUT_MS, wn as upstreamAllowH2, xn as isBudgetClaudeLead, yn as UPSTREAM_INACTIVITY_TIMEOUT_MS, z as isAdvisorRequested, zn as CHEAP_PROFILE_NATIVE_AGENT_NAMES, zt as countTokens } from "./peer-mcp-personas-
|
|
9
|
+
import { _ as FAST_PROFILE_MODELS, f as FAST_PROFILE_ADVISOR_MODEL, i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, l as BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS, n as BALANCED_PROFILE_LEAD_EFFORT, r as BALANCED_PROFILE_MODELS, v as FAST_PROFILE_NATIVE_AGENT_NAMES } from "./balanced-profile-contract-DdmG6RRd.js";
|
|
10
|
+
import { $ as EFFORT_ORDER, $t as readResponseBodyCapped, An as withOneMSuffixForLead, B as resolveAdvisorEffort, Bt as createMessages, D as toolbeltEnabled, Dn as catalogAdvertises1M, En as classifyMessagesRoute, F as ADVISOR_TOOL_INSTRUCTIONS, G as repairKnownThinkingHistory, H as resolveCheapestAdvisorModel, Hn as CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS, Ht as getTokenCount, I as FAST_ADVISOR_TOOL_INSTRUCTIONS, In as CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS, J as buildOpenAIErrorEvent, Jt as warnOnTokenPriceDrift, K as repairRejectedThinkingHistory, L as buildAdvisorStream, Ln as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, Mn as CHEAPEST_PROFILE_MODELS, N as searchWeb, Nn as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, On as oneMContextDisabled, P as ADVISOR_INTERNAL_TOOL_NAME, Q as relayAnthropicStream, Qt as MAX_RESPONSE_BODY_BYTES, R as injectAdvisorTool, Rn as CHEAP_PROFILE_MODELS, Rt as shimDefaultsToXhigh, Tn as upstreamMaxConnections, U as formatThinkingRepairDecline, Ut as getTokenizerFromModel, V as resolveAdvisorModel, Vt as getTextTokenCount, W as rememberThinkingHistoryRepair, Wt as findLaunchBySecret, X as logStreamError, Xt as createResponses, Y as isControllerClosedError, Yt as resolveMcpToolTimeoutMs, Z as readIteratorWithTimeout, Zt as createChatCompletions, at as agentToolsEnabled, bn as generateRandomPort, dn as toolbeltPathOverride, en as parseJsonOrDiagnose, et as UNKNOWN_EFFORT_ANCHOR, i as assertMcpToolSurfaceConsistent, it as handleMcpPost, jn as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, kn as withOneMSuffix, nt as clampEffort, pn as BUDGET_SMALL_FAST_SLUG, q as buildAnthropicErrorEvent, qt as assembleResponsesPayload, rt as handleMcpDelete, tn as normalizeOpenAIUsage, tt as bucketEffort, vn as UPSTREAM_FETCH_TIMEOUT_MS, wn as upstreamAllowH2, xn as isBudgetClaudeLead, yn as UPSTREAM_INACTIVITY_TIMEOUT_MS, z as isAdvisorRequested, zn as CHEAP_PROFILE_NATIVE_AGENT_NAMES, zt as countTokens } from "./peer-mcp-personas-DU2SO1RG.js";
|
|
11
11
|
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-LTJstj1e.js";
|
|
12
12
|
import { a as extractAndRecordPricedAic, f as copilotUsageToWire, h as nanoAiuToCredits, i as extractAndRecordAic, l as recordAic, m as formatAic, p as extractCopilotUsage } from "./aic-ledger-D4fmThbS.js";
|
|
13
13
|
import consola from "consola";
|
|
@@ -425,7 +425,7 @@ const CHEAP_PROFILE = Object.freeze({
|
|
|
425
425
|
/**
|
|
426
426
|
* The `-m cheapest` roster: the exact cheap surface and groups, but Luna-led
|
|
427
427
|
* (`gpt-6-luna`/max at the 200K default window), a Sol/medium Advisor, a
|
|
428
|
-
* Sol/high Oracle, and a
|
|
428
|
+
* Sol/high Oracle, and a Sol/high reviewer. Oracle-only peer set, no
|
|
429
429
|
* `astra`. Hard-denies match fast's: core workers, `orchestrate`, `decide`,
|
|
430
430
|
* `fleet`, and `first-mate`.
|
|
431
431
|
*/
|
|
@@ -999,8 +999,8 @@ function formatCheapPrerequisiteFailure(missing) {
|
|
|
999
999
|
const CHEAPEST_SUBAGENT_MIN_CONTEXT_TOKENS = CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS;
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Validate the live Copilot catalog for `-m cheapest`: Luna lead at the 200K
|
|
1002
|
-
* default window, Luna Explore/GP roles, a Sol Plan
|
|
1003
|
-
*
|
|
1002
|
+
* default window, Luna Explore/GP roles, a Sol Plan, Oracle, and reviewer,
|
|
1003
|
+
* and a Sol/medium Advisor — all at the 200K default with
|
|
1004
1004
|
* their fixed efforts and supported endpoints.
|
|
1005
1005
|
*/
|
|
1006
1006
|
function validateCheapestProfilePrerequisites(catalog) {
|
|
@@ -1022,13 +1022,13 @@ function validateCheapestProfilePrerequisites(catalog) {
|
|
|
1022
1022
|
if (!supportsEndpoint(sol, "responses")) missing.push(`${CHEAPEST_PROFILE_MODELS.plan}: does not advertise a supported Responses endpoint`);
|
|
1023
1023
|
if (!hasUsablePromptMetadata(sol)) missing.push(`${CHEAPEST_PROFILE_MODELS.plan}: no usable max_prompt_tokens metadata (Oracle brief)`);
|
|
1024
1024
|
}
|
|
1025
|
-
const
|
|
1026
|
-
if (!
|
|
1025
|
+
const reviewer = findModel(catalog, CHEAPEST_PROFILE_MODELS.reviewer);
|
|
1026
|
+
if (!reviewer) missing.push(`${CHEAPEST_PROFILE_MODELS.reviewer}: absent from the live catalog`);
|
|
1027
1027
|
else {
|
|
1028
|
-
if (!hasToolCalls(
|
|
1029
|
-
if (!hasContextAtLeast(
|
|
1030
|
-
if (!supportsEffort(
|
|
1031
|
-
if (!supportsEndpoint(
|
|
1028
|
+
if (!hasToolCalls(reviewer)) missing.push(`${CHEAPEST_PROFILE_MODELS.reviewer}: does not advertise tool_calls`);
|
|
1029
|
+
if (!hasContextAtLeast(reviewer, CHEAPEST_SUBAGENT_MIN_CONTEXT_TOKENS)) missing.push(`${CHEAPEST_PROFILE_MODELS.reviewer}: advertised context window is below the 200K subagent floor`);
|
|
1030
|
+
if (!supportsEffort(reviewer, "high")) missing.push(`${CHEAPEST_PROFILE_MODELS.reviewer}: does not advertise a "high" reasoning effort`);
|
|
1031
|
+
if (!supportsEndpoint(reviewer, "responses")) missing.push(`${CHEAPEST_PROFILE_MODELS.reviewer}: does not advertise a supported Responses endpoint`);
|
|
1032
1032
|
}
|
|
1033
1033
|
return {
|
|
1034
1034
|
ok: missing.length === 0,
|
|
@@ -1046,8 +1046,8 @@ function formatCheapestPrerequisiteFailure(missing) {
|
|
|
1046
1046
|
const BALANCED_SUBAGENT_MIN_CONTEXT_TOKENS = BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS;
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Validate the live Copilot catalog for `-m balanced`: Sol lead at the 200K
|
|
1049
|
-
* default window, Luna Explore/General-Purpose roles, Sol Plan,
|
|
1050
|
-
*
|
|
1049
|
+
* default window, Luna Explore/General-Purpose roles, Sol Plan and reviewer,
|
|
1050
|
+
* and a Grok Oracle — all at the 200K default with their
|
|
1051
1051
|
* fixed efforts and supported endpoints.
|
|
1052
1052
|
*/
|
|
1053
1053
|
function validateBalancedProfilePrerequisites(catalog) {
|
|
@@ -1082,7 +1082,7 @@ function validateBalancedProfilePrerequisites(catalog) {
|
|
|
1082
1082
|
if (!hasToolCalls(balancedReviewer)) missing.push(`${BALANCED_PROFILE_MODELS.reviewer}: does not advertise tool_calls`);
|
|
1083
1083
|
if (!hasContextAtLeast(balancedReviewer, BALANCED_SUBAGENT_MIN_CONTEXT_TOKENS)) missing.push(`${BALANCED_PROFILE_MODELS.reviewer}: advertised context window is below the 200K subagent floor`);
|
|
1084
1084
|
if (!supportsEffort(balancedReviewer, "high")) missing.push(`${BALANCED_PROFILE_MODELS.reviewer}: does not advertise a "high" reasoning effort`);
|
|
1085
|
-
if (!supportsEndpoint(balancedReviewer, "
|
|
1085
|
+
if (!supportsEndpoint(balancedReviewer, "responses")) missing.push(`${BALANCED_PROFILE_MODELS.reviewer}: does not advertise a supported Responses endpoint`);
|
|
1086
1086
|
}
|
|
1087
1087
|
const grok = findModel(catalog, BALANCED_PROFILE_MODELS.oracle);
|
|
1088
1088
|
if (!grok) missing.push(`${BALANCED_PROFILE_MODELS.oracle}: absent from the live catalog`);
|
|
@@ -1468,26 +1468,17 @@ const CHEAP_PICKER_MODELS = Object.freeze([
|
|
|
1468
1468
|
neverOneM: true
|
|
1469
1469
|
}
|
|
1470
1470
|
]);
|
|
1471
|
-
const CHEAPEST_PICKER_MODELS = Object.freeze([
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
neverOneM: false
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
id: "gemini-3.8-flash",
|
|
1486
|
-
label: "Gemini 3.8 Flash",
|
|
1487
|
-
behavesAs: "claude-sonnet-5",
|
|
1488
|
-
neverOneM: true
|
|
1489
|
-
}
|
|
1490
|
-
]);
|
|
1471
|
+
const CHEAPEST_PICKER_MODELS = Object.freeze([{
|
|
1472
|
+
id: "gpt-6-sol",
|
|
1473
|
+
label: "GPT-6 Sol",
|
|
1474
|
+
behavesAs: "claude-opus-5.5",
|
|
1475
|
+
neverOneM: true
|
|
1476
|
+
}, {
|
|
1477
|
+
id: "gpt-6-luna",
|
|
1478
|
+
label: "GPT-6 Luna",
|
|
1479
|
+
behavesAs: "claude-opus-5.5",
|
|
1480
|
+
neverOneM: false
|
|
1481
|
+
}]);
|
|
1491
1482
|
const BALANCED_PICKER_MODELS = Object.freeze([
|
|
1492
1483
|
{
|
|
1493
1484
|
id: "gpt-6-sol",
|
|
@@ -1501,12 +1492,6 @@ const BALANCED_PICKER_MODELS = Object.freeze([
|
|
|
1501
1492
|
behavesAs: "claude-opus-5.5",
|
|
1502
1493
|
neverOneM: false
|
|
1503
1494
|
},
|
|
1504
|
-
{
|
|
1505
|
-
id: "gemini-3.8-flash",
|
|
1506
|
-
label: "Gemini 3.8 Flash",
|
|
1507
|
-
behavesAs: "claude-sonnet-5",
|
|
1508
|
-
neverOneM: true
|
|
1509
|
-
},
|
|
1510
1495
|
{
|
|
1511
1496
|
id: "grok-4.6",
|
|
1512
1497
|
label: "Grok 4.6",
|
|
@@ -2489,7 +2474,7 @@ function collectToolFieldKeys(body) {
|
|
|
2489
2474
|
//#endregion
|
|
2490
2475
|
//#region package.json
|
|
2491
2476
|
var name = "github-router";
|
|
2492
|
-
var version = "0.3.
|
|
2477
|
+
var version = "0.3.337";
|
|
2493
2478
|
//#endregion
|
|
2494
2479
|
//#region src/lib/approval.ts
|
|
2495
2480
|
const awaitApproval = async () => {
|
|
@@ -5664,8 +5649,8 @@ function explicitEffortOf(value) {
|
|
|
5664
5649
|
* balanced) shares fast's effort mapping (same model-to-effort rows, just
|
|
5665
5650
|
* bare subagent slugs at the wiring layer), so this preprocess is shared.
|
|
5666
5651
|
* Note the reviewer differs: fast reviews on Sonnet 5/xhigh while cheap
|
|
5667
|
-
* reviews on Luna/max, cheapest reviews on
|
|
5668
|
-
* on
|
|
5652
|
+
* reviews on Luna/max, cheapest reviews on Sol/high, and balanced reviews
|
|
5653
|
+
* on Sol/high — all rows exist here, so each profile's reviewer resolves to
|
|
5669
5654
|
* its fixed effort. The balanced LEAD is the other exception: bare Sol leads
|
|
5670
5655
|
* at medium (`BALANCED_PROFILE_LEAD_EFFORT`), not the shared high.
|
|
5671
5656
|
*
|
|
@@ -8141,4 +8126,4 @@ function getCodexEnvVars(serverUrl) {
|
|
|
8141
8126
|
//#endregion
|
|
8142
8127
|
export { profileDescriptor as A, updateClaude as B, CHEAP_REVIEWER_ALIAS_ID as C, formatCheapPrerequisiteFailure as D, formatCheap1mPrerequisiteFailure as E, validateCheapestProfilePrerequisites as F, validateFastProfilePrerequisites as I, validateMaxProfileLaunch as L, validateBalancedProfilePrerequisites as M, validateCheap1mProfilePrerequisites as N, formatCheapestPrerequisiteFailure as O, validateCheapProfilePrerequisites as P, runSelfUpdate as R, CHEAP_PLAN_ALIAS_ID as S, formatBalancedPrerequisiteFailure as T, CHEAPEST_GENERAL_PURPOSE_ALIAS_ID as _, sharedServerArgs as a, CHEAP_EXPLORE_ALIAS_ID as b, stopKeepAwake as c, enableFileLogging as d, BALANCED_EXPLORE_ALIAS_ID as f, CHEAPEST_EXPLORE_ALIAS_ID as g, BALANCED_REVIEWER_ALIAS_ID as h, setupAndServe as i, resolveLaunchProfile as j, formatFastPrerequisiteFailure as k, injectModelPickerSettingsFile as l, BALANCED_PLAN_ALIAS_ID as m, getCodexEnvVars as n, LAUNCH_SECRET_HEADER as o, BALANCED_GENERAL_PURPOSE_ALIAS_ID as p, parseSharedArgs as r, startKeepAwake as s, getClaudeCodeEnvVars as t, listModelsForEndpoint as u, CHEAPEST_PLAN_ALIAS_ID as v, LUNA_SCOUT_ALIAS_ID as w, CHEAP_GENERAL_PURPOSE_ALIAS_ID as x, CHEAPEST_REVIEWER_ALIAS_ID as y, checkClaudeVersion as z };
|
|
8143
8128
|
|
|
8144
|
-
//# sourceMappingURL=server-setup-
|
|
8129
|
+
//# sourceMappingURL=server-setup-BMd_WJqh.js.map
|