github-router 0.3.335 → 0.3.336
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/README.md +8 -8
- package/dist/aic-ledger-D4fmThbS.js.map +1 -1
- package/dist/{attribution-settings-3dNc9yQY.js → attribution-settings-XDkhQ2bk.js} +14 -14
- package/dist/attribution-settings-XDkhQ2bk.js.map +1 -0
- package/dist/{balanced-profile-contract-DkmALvc7.js → balanced-profile-contract-B_3kJNoA.js} +13 -13
- package/dist/balanced-profile-contract-B_3kJNoA.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-BdMCpacv.js → claude-BOY6z6BX.js} +20 -20
- package/dist/claude-BOY6z6BX.js.map +1 -0
- package/dist/{codex-B-RHFAbV.js → codex-De2FoGs9.js} +5 -5
- package/dist/{codex-B-RHFAbV.js.map → codex-De2FoGs9.js.map} +1 -1
- package/dist/{copilot-discount-BcUa3f-k.js → copilot-discount-yDaMQob0.js} +4 -1
- package/dist/copilot-discount-yDaMQob0.js.map +1 -0
- package/dist/engine-PIHIf_NI.js +2 -0
- package/dist/{gate-discovery-bTdZN63-.js → gate-discovery-aa7sEYNv.js} +3 -3
- package/dist/{gate-discovery-bTdZN63-.js.map → gate-discovery-aa7sEYNv.js.map} +1 -1
- package/dist/{hook-mcp-client-DbFtxo6_.js → hook-mcp-client-BRL_y-bz.js} +3 -3
- package/dist/hook-mcp-client-BRL_y-bz.js.map +1 -0
- package/dist/hooks.mjs +29 -25
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-aic-status-Bma0r0ZS.js → internal-aic-status-DV2ATIRT.js} +2 -2
- package/dist/{internal-aic-status-Bma0r0ZS.js.map → internal-aic-status-DV2ATIRT.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-VvR1xQnL.js → internal-fast-dispatch-guard-COveGbiT.js} +1 -1
- package/dist/{internal-fast-dispatch-guard-BykpMYog.js → internal-fast-dispatch-guard-Dtvd08n5.js} +2 -2
- package/dist/{internal-fast-dispatch-guard-BykpMYog.js.map → internal-fast-dispatch-guard-Dtvd08n5.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-6ZCEanI6.js → internal-max-dispatch-guard-BSRTtOit.js} +1 -1
- package/dist/{internal-max-dispatch-guard-CtIO7pm1.js → internal-max-dispatch-guard-CioyE9wn.js} +7 -6
- package/dist/internal-max-dispatch-guard-CioyE9wn.js.map +1 -0
- package/dist/{internal-plan-review-jIts3KYd.js → internal-plan-review-B4f0dpss.js} +3 -3
- package/dist/{internal-plan-review-jIts3KYd.js.map → internal-plan-review-B4f0dpss.js.map} +1 -1
- package/dist/{internal-prompt-submit-BfoWVyzs.js → internal-prompt-submit-BMJ0A7vR.js} +6 -6
- package/dist/internal-prompt-submit-BMJ0A7vR.js.map +1 -0
- package/dist/{internal-stop-hook-fbULtsfL.js → internal-stop-hook-D45G87LA.js} +5 -5
- package/dist/{internal-stop-hook-fbULtsfL.js.map → internal-stop-hook-D45G87LA.js.map} +1 -1
- package/dist/{internal-stop-review-BtGDVrv-.js → internal-stop-review-C7bOxX1q.js} +5 -5
- package/dist/internal-stop-review-C7bOxX1q.js.map +1 -0
- package/dist/main.js +11 -11
- package/dist/{max-profile-contract-MJJt0zm-.js → max-profile-contract-LTJstj1e.js} +7 -7
- package/dist/max-profile-contract-LTJstj1e.js.map +1 -0
- package/dist/{orchestration-Ccmfslh4.js → orchestration-BMISq91N.js} +2 -2
- package/dist/{orchestration-Ccmfslh4.js.map → orchestration-BMISq91N.js.map} +1 -1
- package/dist/{peer-mcp-personas-Ba1_UNif.js → peer-mcp-personas-ChXkCxu9.js} +175 -138
- package/dist/peer-mcp-personas-ChXkCxu9.js.map +1 -0
- package/dist/{plan-review-hook-ciat1jgZ.js → plan-review-hook-BTvxvCCo.js} +2 -2
- package/dist/{plan-review-hook-ciat1jgZ.js.map → plan-review-hook-BTvxvCCo.js.map} +1 -1
- package/dist/{prompt-submit-hook-C8q_hDOv.js → prompt-submit-hook-BeLUDy_m.js} +3 -3
- package/dist/prompt-submit-hook-BeLUDy_m.js.map +1 -0
- package/dist/{provision-C-3FuKJU.js → provision-ChzRLLTd.js} +3 -3
- package/dist/{provision-C-3FuKJU.js.map → provision-ChzRLLTd.js.map} +1 -1
- package/dist/{serve-BkmVVLbB.js → serve-BWVdTPFB.js} +8 -8
- package/dist/{serve-BkmVVLbB.js.map → serve-BWVdTPFB.js.map} +1 -1
- package/dist/{server-setup-BR9ejqJs.js → server-setup-azGmaBuy.js} +56 -53
- package/dist/server-setup-azGmaBuy.js.map +1 -0
- package/dist/{start-8h-FFyI7.js → start-iGITduYA.js} +4 -4
- package/dist/{start-8h-FFyI7.js.map → start-iGITduYA.js.map} +1 -1
- package/dist/{stop-gate-hook-DZVfKoSh.js → stop-gate-hook-DBcxPgkF.js} +2 -2
- package/dist/{stop-gate-hook-DZVfKoSh.js.map → stop-gate-hook-DBcxPgkF.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-3dNc9yQY.js.map +0 -1
- package/dist/balanced-profile-contract-DkmALvc7.js.map +0 -1
- package/dist/claude-BdMCpacv.js.map +0 -1
- package/dist/copilot-discount-BcUa3f-k.js.map +0 -1
- package/dist/engine-DfqorzCg.js +0 -2
- package/dist/hook-mcp-client-DbFtxo6_.js.map +0 -1
- package/dist/internal-max-dispatch-guard-CtIO7pm1.js.map +0 -1
- package/dist/internal-prompt-submit-BfoWVyzs.js.map +0 -1
- package/dist/internal-stop-review-BtGDVrv-.js.map +0 -1
- package/dist/max-profile-contract-MJJt0zm-.js.map +0 -1
- package/dist/peer-mcp-personas-Ba1_UNif.js.map +0 -1
- package/dist/prompt-submit-hook-C8q_hDOv.js.map +0 -1
- package/dist/server-setup-BR9ejqJs.js.map +0 -1
|
@@ -6,9 +6,9 @@ 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-
|
|
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-
|
|
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-B_3kJNoA.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-ChXkCxu9.js";
|
|
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";
|
|
14
14
|
import fs, { existsSync } from "node:fs";
|
|
@@ -424,7 +424,7 @@ const CHEAP_PROFILE = Object.freeze({
|
|
|
424
424
|
});
|
|
425
425
|
/**
|
|
426
426
|
* The `-m cheapest` roster: the exact cheap surface and groups, but Luna-led
|
|
427
|
-
* (`gpt-
|
|
427
|
+
* (`gpt-6-luna`/max at the 200K default window), a Sol/medium Advisor, a
|
|
428
428
|
* Sol/high Oracle, and a Gemini/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`.
|
|
@@ -507,7 +507,7 @@ function profileDescriptor(id) {
|
|
|
507
507
|
* to `FAST_LEAD_MODEL` (`./port`) before this is of any use to a caller who
|
|
508
508
|
* only has the resolved id, so callers that already resolved the lead must
|
|
509
509
|
* pass the ORIGINAL `-m` value here, not the resolved one. This is what
|
|
510
|
-
* keeps `-m gpt-
|
|
510
|
+
* keeps `-m gpt-6-luna` (a direct pin of the same underlying model) a
|
|
511
511
|
* standard-surface launch — only the literal alias narrows the surface.
|
|
512
512
|
*/
|
|
513
513
|
function resolveLaunchProfile(modelArg) {
|
|
@@ -1399,14 +1399,14 @@ function listModelsForEndpoint(path) {
|
|
|
1399
1399
|
//#region src/lib/model-picker-settings.ts
|
|
1400
1400
|
const STANDARD_PICKER_MODELS = Object.freeze([
|
|
1401
1401
|
{
|
|
1402
|
-
id: "gpt-
|
|
1403
|
-
label: "GPT-
|
|
1404
|
-
behavesAs: "claude-opus-5"
|
|
1402
|
+
id: "gpt-6-sol",
|
|
1403
|
+
label: "GPT-6 Sol",
|
|
1404
|
+
behavesAs: "claude-opus-5.5"
|
|
1405
1405
|
},
|
|
1406
1406
|
{
|
|
1407
|
-
id: "gpt-
|
|
1408
|
-
label: "GPT-
|
|
1409
|
-
behavesAs: "claude-opus-5"
|
|
1407
|
+
id: "gpt-6-luna",
|
|
1408
|
+
label: "GPT-6 Luna",
|
|
1409
|
+
behavesAs: "claude-opus-5.5"
|
|
1410
1410
|
},
|
|
1411
1411
|
{
|
|
1412
1412
|
id: "gemini-3.8-flash",
|
|
@@ -1423,13 +1423,13 @@ const STANDARD_PICKER_MODELS = Object.freeze([
|
|
|
1423
1423
|
const MAX_PICKER_MODELS = Object.freeze([
|
|
1424
1424
|
{
|
|
1425
1425
|
id: MAX_PROFILE_MODELS.sol,
|
|
1426
|
-
label: "GPT-
|
|
1427
|
-
behavesAs: "claude-opus-5"
|
|
1426
|
+
label: "GPT-6 Sol",
|
|
1427
|
+
behavesAs: "claude-opus-5.5"
|
|
1428
1428
|
},
|
|
1429
1429
|
{
|
|
1430
1430
|
id: MAX_PROFILE_MODELS.luna,
|
|
1431
|
-
label: "GPT-
|
|
1432
|
-
behavesAs: "claude-opus-5"
|
|
1431
|
+
label: "GPT-6 Luna",
|
|
1432
|
+
behavesAs: "claude-opus-5.5"
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
1435
|
id: MAX_PROFILE_MODELS.gemini,
|
|
@@ -1438,21 +1438,21 @@ const MAX_PICKER_MODELS = Object.freeze([
|
|
|
1438
1438
|
},
|
|
1439
1439
|
{
|
|
1440
1440
|
id: MAX_PROFILE_MODELS.opus,
|
|
1441
|
-
label: "Claude Opus 5",
|
|
1442
|
-
behavesAs: "claude-opus-5"
|
|
1441
|
+
label: "Claude Opus 5.5",
|
|
1442
|
+
behavesAs: "claude-opus-5.5"
|
|
1443
1443
|
}
|
|
1444
1444
|
]);
|
|
1445
1445
|
const CHEAP_PICKER_MODELS = Object.freeze([
|
|
1446
1446
|
{
|
|
1447
|
-
id: "gpt-
|
|
1448
|
-
label: "GPT-
|
|
1449
|
-
behavesAs: "claude-opus-5",
|
|
1447
|
+
id: "gpt-6-sol",
|
|
1448
|
+
label: "GPT-6 Sol",
|
|
1449
|
+
behavesAs: "claude-opus-5.5",
|
|
1450
1450
|
neverOneM: true
|
|
1451
1451
|
},
|
|
1452
1452
|
{
|
|
1453
|
-
id: "gpt-
|
|
1454
|
-
label: "GPT-
|
|
1455
|
-
behavesAs: "claude-opus-5",
|
|
1453
|
+
id: "gpt-6-luna",
|
|
1454
|
+
label: "GPT-6 Luna",
|
|
1455
|
+
behavesAs: "claude-opus-5.5",
|
|
1456
1456
|
neverOneM: false
|
|
1457
1457
|
},
|
|
1458
1458
|
{
|
|
@@ -1470,15 +1470,15 @@ const CHEAP_PICKER_MODELS = Object.freeze([
|
|
|
1470
1470
|
]);
|
|
1471
1471
|
const CHEAPEST_PICKER_MODELS = Object.freeze([
|
|
1472
1472
|
{
|
|
1473
|
-
id: "gpt-
|
|
1474
|
-
label: "GPT-
|
|
1475
|
-
behavesAs: "claude-opus-5",
|
|
1473
|
+
id: "gpt-6-sol",
|
|
1474
|
+
label: "GPT-6 Sol",
|
|
1475
|
+
behavesAs: "claude-opus-5.5",
|
|
1476
1476
|
neverOneM: true
|
|
1477
1477
|
},
|
|
1478
1478
|
{
|
|
1479
|
-
id: "gpt-
|
|
1480
|
-
label: "GPT-
|
|
1481
|
-
behavesAs: "claude-opus-5",
|
|
1479
|
+
id: "gpt-6-luna",
|
|
1480
|
+
label: "GPT-6 Luna",
|
|
1481
|
+
behavesAs: "claude-opus-5.5",
|
|
1482
1482
|
neverOneM: false
|
|
1483
1483
|
},
|
|
1484
1484
|
{
|
|
@@ -1490,15 +1490,15 @@ const CHEAPEST_PICKER_MODELS = Object.freeze([
|
|
|
1490
1490
|
]);
|
|
1491
1491
|
const BALANCED_PICKER_MODELS = Object.freeze([
|
|
1492
1492
|
{
|
|
1493
|
-
id: "gpt-
|
|
1494
|
-
label: "GPT-
|
|
1495
|
-
behavesAs: "claude-opus-5",
|
|
1493
|
+
id: "gpt-6-sol",
|
|
1494
|
+
label: "GPT-6 Sol",
|
|
1495
|
+
behavesAs: "claude-opus-5.5",
|
|
1496
1496
|
neverOneM: true
|
|
1497
1497
|
},
|
|
1498
1498
|
{
|
|
1499
|
-
id: "gpt-
|
|
1500
|
-
label: "GPT-
|
|
1501
|
-
behavesAs: "claude-opus-5",
|
|
1499
|
+
id: "gpt-6-luna",
|
|
1500
|
+
label: "GPT-6 Luna",
|
|
1501
|
+
behavesAs: "claude-opus-5.5",
|
|
1502
1502
|
neverOneM: false
|
|
1503
1503
|
},
|
|
1504
1504
|
{
|
|
@@ -2489,7 +2489,7 @@ function collectToolFieldKeys(body) {
|
|
|
2489
2489
|
//#endregion
|
|
2490
2490
|
//#region package.json
|
|
2491
2491
|
var name = "github-router";
|
|
2492
|
-
var version = "0.3.
|
|
2492
|
+
var version = "0.3.336";
|
|
2493
2493
|
//#endregion
|
|
2494
2494
|
//#region src/lib/approval.ts
|
|
2495
2495
|
const awaitApproval = async () => {
|
|
@@ -5554,12 +5554,15 @@ function identityPreflightErrorResponse(c, reason, path = "/v1/messages") {
|
|
|
5554
5554
|
//#region src/lib/max-request-preprocess.ts
|
|
5555
5555
|
function maxRequestError(result) {
|
|
5556
5556
|
if (result.rejectedAlias) return `Router-owned model alias ${JSON.stringify(result.rejectedAlias)} is valid only for an authenticated -m max launch.`;
|
|
5557
|
-
if (result.rejectedModel) return `Model ${JSON.stringify(result.rejectedModel)} is outside the fixed -m max model set (Sol, Luna, Gemini 3.8 Flash, or Opus 5).`;
|
|
5557
|
+
if (result.rejectedModel) return `Model ${JSON.stringify(result.rejectedModel)} is outside the fixed -m max model set (Sol, Luna, Gemini 3.8 Flash, or Opus 5.5).`;
|
|
5558
5558
|
}
|
|
5559
5559
|
const MAX_MODEL_EFFORTS = Object.freeze({
|
|
5560
|
+
"gpt-6-sol": "high",
|
|
5560
5561
|
"gpt-5.6-sol": "high",
|
|
5562
|
+
"gpt-6-luna": "high",
|
|
5561
5563
|
"gpt-5.6-luna": "high",
|
|
5562
5564
|
"gemini-3.8-flash": "high",
|
|
5565
|
+
"claude-opus-5.5": "high",
|
|
5563
5566
|
"claude-opus-5": "high"
|
|
5564
5567
|
});
|
|
5565
5568
|
function allowedModel(base) {
|
|
@@ -5614,14 +5617,14 @@ function preprocessMaxRequest(rawBody, launch, subagentRequest = false) {
|
|
|
5614
5617
|
modified: true
|
|
5615
5618
|
};
|
|
5616
5619
|
}
|
|
5617
|
-
const allowedSubagentModel = subagentRequest && (base === "grok-4.6" || base === "gpt-5.6-luna" || base === "claude-sonnet-5");
|
|
5620
|
+
const allowedSubagentModel = subagentRequest && (base === "grok-4.6" || base === "gpt-6-luna" || base === "gpt-5.6-luna" || base === "claude-sonnet-5");
|
|
5618
5621
|
if (!allowedModel(base) && !allowedSubagentModel) return {
|
|
5619
5622
|
body: rawBody,
|
|
5620
5623
|
originalModel,
|
|
5621
5624
|
modified: false,
|
|
5622
5625
|
rejectedModel: originalModel
|
|
5623
5626
|
};
|
|
5624
|
-
const effort = allowedSubagentModel ? base === "claude-sonnet-5" ? "xhigh" : base === "gpt-5.6-luna" ? "max" : "high" : MAX_MODEL_EFFORTS[base];
|
|
5627
|
+
const effort = allowedSubagentModel ? base === "claude-sonnet-5" ? "xhigh" : base === "gpt-6-luna" || base === "gpt-5.6-luna" ? "max" : "high" : MAX_MODEL_EFFORTS[base];
|
|
5625
5628
|
if (!effort) return {
|
|
5626
5629
|
body: rawBody,
|
|
5627
5630
|
originalModel,
|
|
@@ -5718,12 +5721,12 @@ function preprocessFastRequest(rawBody, launch, subagentRequest = false) {
|
|
|
5718
5721
|
if (alias) {
|
|
5719
5722
|
fixedEffort = alias.absentEffortDefault;
|
|
5720
5723
|
parsed.model = canonicalizeAliasModel(originalModel);
|
|
5721
|
-
} else if (bare === "gpt-
|
|
5722
|
-
else if (bare === "gpt-
|
|
5724
|
+
} else if (bare === "gpt-6-luna" || bare === "gpt-6-luna") fixedEffort = "max";
|
|
5725
|
+
else if (bare === "gpt-6-sol" || bare === "gpt-6-sol") fixedEffort = profileId === "balanced" && !subagentRequest ? BALANCED_PROFILE_LEAD_EFFORT : "high";
|
|
5723
5726
|
else if (bare === "grok-4.6") fixedEffort = "medium";
|
|
5724
5727
|
else if (bare === "gemini-3.8-flash") fixedEffort = "high";
|
|
5725
5728
|
else if (bare === "claude-sonnet-5") fixedEffort = "xhigh";
|
|
5726
|
-
else if (bare === "claude-opus-5") fixedEffort = "high";
|
|
5729
|
+
else if (bare === "claude-opus-5.5" || bare === "claude-opus-5-5" || bare === "claude-opus-5.5") fixedEffort = "high";
|
|
5727
5730
|
if (!fixedEffort && !alias) return {
|
|
5728
5731
|
body: rawBody,
|
|
5729
5732
|
originalModel,
|
|
@@ -6230,7 +6233,7 @@ async function handleCompletion(c) {
|
|
|
6230
6233
|
type: "error",
|
|
6231
6234
|
error: {
|
|
6232
6235
|
type: "invalid_request_error",
|
|
6233
|
-
message: `Invalid GH_ROUTER_ADVISOR_MODEL ${JSON.stringify(requestedAdvisor)} for max profile; must be gpt-
|
|
6236
|
+
message: `Invalid GH_ROUTER_ADVISOR_MODEL ${JSON.stringify(requestedAdvisor)} for max profile; must be gpt-6-sol or claude-opus-5.5.`
|
|
6234
6237
|
}
|
|
6235
6238
|
}, 400, { "x-should-retry": "false" });
|
|
6236
6239
|
const model = maxAdvisorModelFromPin(requestedAdvisor, maxOpusModel());
|
|
@@ -7958,7 +7961,7 @@ function parseSharedArgs(args) {
|
|
|
7958
7961
|
* upstream Copilot returns 401. See `src/routes/messages/handler.ts`.
|
|
7959
7962
|
*/
|
|
7960
7963
|
/**
|
|
7961
|
-
* Decorate a Luna-alias id with `[1m]` based on the REAL `gpt-
|
|
7964
|
+
* Decorate a Luna-alias id with `[1m]` based on the REAL `gpt-6-luna`
|
|
7962
7965
|
* catalog entry's advertised window, never on the alias string itself
|
|
7963
7966
|
* (which is never a catalog entry — `catalogAdvertises1M`/`resolveModel`
|
|
7964
7967
|
* would find nothing and silently leave it bare). Shared by every
|
|
@@ -8017,35 +8020,35 @@ function getClaudeCodeEnvVars(serverUrl, model, launchProfileId = "standard", pi
|
|
|
8017
8020
|
if (maxOpusModel()) seedMaxRow("ANTHROPIC_DEFAULT_OPUS_MODEL", "ANTHROPIC_DEFAULT_OPUS_MODEL_NAME", MAX_PROFILE_MODELS.opus);
|
|
8018
8021
|
if (process.env.ANTHROPIC_CUSTOM_MODEL_OPTION === void 0) {
|
|
8019
8022
|
vars.ANTHROPIC_CUSTOM_MODEL_OPTION = oneMSuffixForMaxModel(MAX_PROFILE_MODELS.sol);
|
|
8020
|
-
if (process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME = "GPT-
|
|
8023
|
+
if (process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME = "GPT-6 Sol";
|
|
8021
8024
|
}
|
|
8022
8025
|
} else if (isCheapProfile) {
|
|
8023
|
-
seedCheapAliasTierRow("ANTHROPIC_DEFAULT_SONNET_MODEL", "ANTHROPIC_DEFAULT_SONNET_MODEL_NAME", LUNA_SONNET_ALIAS_ID, "GPT-
|
|
8024
|
-
seedCheapAliasTierRow("ANTHROPIC_DEFAULT_HAIKU_MODEL", "ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME", LUNA_HAIKU_ALIAS_ID, "GPT-
|
|
8026
|
+
seedCheapAliasTierRow("ANTHROPIC_DEFAULT_SONNET_MODEL", "ANTHROPIC_DEFAULT_SONNET_MODEL_NAME", LUNA_SONNET_ALIAS_ID, "GPT-6 Luna (xhigh)", routerWinsTiers);
|
|
8027
|
+
seedCheapAliasTierRow("ANTHROPIC_DEFAULT_HAIKU_MODEL", "ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME", LUNA_HAIKU_ALIAS_ID, "GPT-6 Luna (high)", routerWinsTiers);
|
|
8025
8028
|
const cheapAliasCapabilities = "effort,xhigh_effort,max_effort,thinking,adaptive_thinking,interleaved_thinking";
|
|
8026
8029
|
if (routerWinsTiers || process.env.ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES === void 0) vars.ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES = cheapAliasCapabilities;
|
|
8027
8030
|
if (routerWinsTiers || process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES === void 0) vars.ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES = cheapAliasCapabilities;
|
|
8028
8031
|
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION === void 0) {
|
|
8029
8032
|
vars.ANTHROPIC_CUSTOM_MODEL_OPTION = LUNA_DRIVER_ALIAS_ID;
|
|
8030
|
-
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME = "GPT-
|
|
8033
|
+
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME = "GPT-6 Luna (max)";
|
|
8031
8034
|
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES = cheapAliasCapabilities;
|
|
8032
8035
|
}
|
|
8033
8036
|
} else if (isFastProfile) {
|
|
8034
|
-
seedFastAliasTierRow("ANTHROPIC_DEFAULT_SONNET_MODEL", "ANTHROPIC_DEFAULT_SONNET_MODEL_NAME", LUNA_SONNET_ALIAS_ID, "GPT-
|
|
8035
|
-
seedFastAliasTierRow("ANTHROPIC_DEFAULT_HAIKU_MODEL", "ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME", LUNA_HAIKU_ALIAS_ID, "GPT-
|
|
8037
|
+
seedFastAliasTierRow("ANTHROPIC_DEFAULT_SONNET_MODEL", "ANTHROPIC_DEFAULT_SONNET_MODEL_NAME", LUNA_SONNET_ALIAS_ID, "GPT-6 Luna (xhigh)", routerWinsTiers);
|
|
8038
|
+
seedFastAliasTierRow("ANTHROPIC_DEFAULT_HAIKU_MODEL", "ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME", LUNA_HAIKU_ALIAS_ID, "GPT-6 Luna (high)", routerWinsTiers);
|
|
8036
8039
|
const fastAliasCapabilities = "effort,xhigh_effort,max_effort,thinking,adaptive_thinking,interleaved_thinking";
|
|
8037
8040
|
if (routerWinsTiers || process.env.ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES === void 0) vars.ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES = fastAliasCapabilities;
|
|
8038
8041
|
if (routerWinsTiers || process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES === void 0) vars.ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES = fastAliasCapabilities;
|
|
8039
8042
|
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION === void 0) {
|
|
8040
8043
|
vars.ANTHROPIC_CUSTOM_MODEL_OPTION = oneMSuffixForAlias(LUNA_DRIVER_ALIAS_ID);
|
|
8041
|
-
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME = "GPT-
|
|
8044
|
+
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_NAME = "GPT-6 Luna (max)";
|
|
8042
8045
|
if (routerWinsTiers || process.env.ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES === void 0) vars.ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES = fastAliasCapabilities;
|
|
8043
8046
|
}
|
|
8044
8047
|
} else {
|
|
8045
8048
|
seedTierRow("ANTHROPIC_DEFAULT_SONNET_MODEL", "ANTHROPIC_DEFAULT_SONNET_MODEL_NAME", "claude-sonnet-5");
|
|
8046
8049
|
seedTierRow("ANTHROPIC_DEFAULT_HAIKU_MODEL", "ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME", smallFastModel);
|
|
8047
8050
|
}
|
|
8048
|
-
if (!isMaxProfile) seedTierRow("ANTHROPIC_DEFAULT_OPUS_MODEL", "ANTHROPIC_DEFAULT_OPUS_MODEL_NAME", "claude-opus-5");
|
|
8051
|
+
if (!isMaxProfile) seedTierRow("ANTHROPIC_DEFAULT_OPUS_MODEL", "ANTHROPIC_DEFAULT_OPUS_MODEL_NAME", "claude-opus-5.5");
|
|
8049
8052
|
if (process.env.CLAUDE_CODE_PLAN_V2_AGENT_COUNT === void 0) vars.CLAUDE_CODE_PLAN_V2_AGENT_COUNT = "7";
|
|
8050
8053
|
for (const key of [
|
|
8051
8054
|
"CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL",
|
|
@@ -8138,4 +8141,4 @@ function getCodexEnvVars(serverUrl) {
|
|
|
8138
8141
|
//#endregion
|
|
8139
8142
|
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 };
|
|
8140
8143
|
|
|
8141
|
-
//# sourceMappingURL=server-setup-
|
|
8144
|
+
//# sourceMappingURL=server-setup-azGmaBuy.js.map
|