github-router 0.3.337 → 0.3.339
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-Bpa-YTZ5.js → attribution-settings-DpDZcVka.js} +117 -152
- package/dist/attribution-settings-DpDZcVka.js.map +1 -0
- package/dist/{balanced-profile-contract-DdmG6RRd.js → balanced-profile-contract-C6AgFJNp.js} +13 -16
- package/dist/balanced-profile-contract-C6AgFJNp.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-X8KYtT5_.js → claude-D0SUYfyr.js} +8 -12
- package/dist/claude-D0SUYfyr.js.map +1 -0
- package/dist/{codex-CbYioKum.js → codex-CzV-I2h3.js} +4 -4
- package/dist/{codex-CbYioKum.js.map → codex-CzV-I2h3.js.map} +1 -1
- package/dist/engine-vxnquZvh.js +2 -0
- package/dist/{gate-discovery-C27g6aJn.js → gate-discovery-BKjq0x66.js} +2 -2
- package/dist/{gate-discovery-C27g6aJn.js.map → gate-discovery-BKjq0x66.js.map} +1 -1
- package/dist/hooks.mjs +1 -5
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-fast-dispatch-guard-0Or2xigH.js → internal-fast-dispatch-guard-7UiD_vM5.js} +5 -4
- package/dist/internal-fast-dispatch-guard-7UiD_vM5.js.map +1 -0
- package/dist/{internal-fast-dispatch-guard-UQSbkLqY.js → internal-fast-dispatch-guard-ByXUE5oO.js} +1 -1
- package/dist/{internal-stop-hook-YCK7DX-x.js → internal-stop-hook-DV7o7chW.js} +2 -2
- package/dist/{internal-stop-hook-YCK7DX-x.js.map → internal-stop-hook-DV7o7chW.js.map} +1 -1
- package/dist/main.js +6 -6
- package/dist/{peer-mcp-personas-DU2SO1RG.js → peer-mcp-personas-CmR3f7nO.js} +22 -23
- package/dist/peer-mcp-personas-CmR3f7nO.js.map +1 -0
- package/dist/{provision-Ck059J4j.js → provision-CxulCZpS.js} +2 -2
- package/dist/{provision-Ck059J4j.js.map → provision-CxulCZpS.js.map} +1 -1
- package/dist/{serve-QSuKiRrF.js → serve-DVq-m7p5.js} +5 -5
- package/dist/{serve-QSuKiRrF.js.map → serve-DVq-m7p5.js.map} +1 -1
- package/dist/{server-setup-BMd_WJqh.js → server-setup-Df9BxQ-V.js} +51 -35
- package/dist/server-setup-Df9BxQ-V.js.map +1 -0
- package/dist/{start-Ikh4r6Pa.js → start-C4wi5ccP.js} +3 -3
- package/dist/{start-Ikh4r6Pa.js.map → start-C4wi5ccP.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-Bpa-YTZ5.js.map +0 -1
- package/dist/balanced-profile-contract-DdmG6RRd.js.map +0 -1
- package/dist/claude-X8KYtT5_.js.map +0 -1
- package/dist/engine-Di1OB28h.js +0 -2
- package/dist/internal-fast-dispatch-guard-0Or2xigH.js.map +0 -1
- package/dist/peer-mcp-personas-DU2SO1RG.js.map +0 -1
- package/dist/server-setup-BMd_WJqh.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-C6AgFJNp.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-CmR3f7nO.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,9 @@ 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 Sol/high reviewer
|
|
428
|
+
* Sol/high Oracle, and a Sol/high reviewer — and no `Plan` subagent: the lead
|
|
429
|
+
* plans directly and reviews the final plan with the Advisor (advisory)
|
|
430
|
+
* before presenting it. Oracle-only peer set, no
|
|
429
431
|
* `astra`. Hard-denies match fast's: core workers, `orchestrate`, `decide`,
|
|
430
432
|
* `fleet`, and `first-mate`.
|
|
431
433
|
*/
|
|
@@ -443,10 +445,11 @@ const CHEAPEST_PROFILE = Object.freeze({
|
|
|
443
445
|
});
|
|
444
446
|
/**
|
|
445
447
|
* The `-m balanced` roster: the most-complex-tasks tier. A Sol/high lead at
|
|
446
|
-
* the 200K default window,
|
|
447
|
-
*
|
|
448
|
-
* the Grok-4.6/medium Oracle-only peer set. Hard-denies
|
|
449
|
-
* workers, `orchestrate`, `decide`, `fleet`, and
|
|
448
|
+
* the 200K default window, a three-agent surface (`Explore`/
|
|
449
|
+
* `General-Purpose`/`reviewer`, every role at 200K — no `Plan`: the lead
|
|
450
|
+
* owns planning), and the Grok-4.6/medium Oracle-only peer set. Hard-denies
|
|
451
|
+
* match fast's: core workers, `orchestrate`, `decide`, `fleet`, and
|
|
452
|
+
* `first-mate`.
|
|
450
453
|
*/
|
|
451
454
|
const BALANCED_PROFILE = Object.freeze({
|
|
452
455
|
id: "balanced",
|
|
@@ -562,7 +565,6 @@ const CHEAP_REVIEWER_ALIAS_ID = "gh-router-cheap-reviewer-max";
|
|
|
562
565
|
* `buildCheapestProfileAgentDefinitions`.
|
|
563
566
|
*/
|
|
564
567
|
const CHEAPEST_EXPLORE_ALIAS_ID = "gh-router-cheapest-explore-high";
|
|
565
|
-
const CHEAPEST_PLAN_ALIAS_ID = "gh-router-cheapest-plan-high";
|
|
566
568
|
const CHEAPEST_GENERAL_PURPOSE_ALIAS_ID = "gh-router-cheapest-general-purpose-xhigh";
|
|
567
569
|
const CHEAPEST_IMPLEMENTER_ALIAS_ID = "gh-router-cheapest-implementer-max";
|
|
568
570
|
const CHEAPEST_REVIEWER_ALIAS_ID = "gh-router-cheapest-reviewer-high";
|
|
@@ -574,11 +576,20 @@ const CHEAPEST_REVIEWER_ALIAS_ID = "gh-router-cheapest-reviewer-high";
|
|
|
574
576
|
* `buildBalancedProfileAgentDefinitions`.
|
|
575
577
|
*/
|
|
576
578
|
const BALANCED_EXPLORE_ALIAS_ID = "gh-router-balanced-explore-high";
|
|
577
|
-
const BALANCED_PLAN_ALIAS_ID = "gh-router-balanced-plan-high";
|
|
578
579
|
const BALANCED_GENERAL_PURPOSE_ALIAS_ID = "gh-router-balanced-general-purpose-max";
|
|
579
580
|
const BALANCED_REVIEWER_ALIAS_ID = "gh-router-balanced-reviewer-high";
|
|
580
581
|
const LUNA_SONNET_ALIAS_ID = "gh-router-luna-sonnet-xhigh";
|
|
581
582
|
/**
|
|
583
|
+
* Shared browse-dispatcher alias (every pinned profile except max): the
|
|
584
|
+
* `worker-browse` native is an identical thin dispatcher on fast, cheap,
|
|
585
|
+
* cheap1m, cheapest, and balanced, so one router-owned, non-catalog identity
|
|
586
|
+
* serves all five (precedent: the shared `SKILL_*` aliases). Carries the
|
|
587
|
+
* fixed `low` effort until the authenticated request boundary. Emitted BARE
|
|
588
|
+
* (no `[1m]`) by every pinned `build*ProfileAgentDefinitions` worker-browse
|
|
589
|
+
* block, so the dispatcher's own turns run at the 200K default window.
|
|
590
|
+
*/
|
|
591
|
+
const BROWSE_LOW_ALIAS_ID = "gh-router-browse-low";
|
|
592
|
+
/**
|
|
582
593
|
* Router-owned alias id for the fast profile's Haiku-tier row
|
|
583
594
|
* (`ANTHROPIC_DEFAULT_HAIKU_MODEL` / `ANTHROPIC_SMALL_FAST_MODEL`).
|
|
584
595
|
*/
|
|
@@ -588,6 +599,10 @@ const LUNA_HAIKU_ALIAS_ID = "gh-router-luna-haiku-high";
|
|
|
588
599
|
* boundary and are never valid on standard or fast launches. */
|
|
589
600
|
const MAX_LUNA_HIGH_ALIAS_ID = "gh-router-max-luna-high";
|
|
590
601
|
const MAX_LUNA_MAX_ALIAS_ID = "gh-router-max-luna-max";
|
|
602
|
+
/** Max-profile browse-dispatcher alias: same `low`-effort, bare-200K browse
|
|
603
|
+
* as the shared alias above, but max-isolated (the max preprocessor never
|
|
604
|
+
* consults the shared alias table, so a shared id would be rejected there). */
|
|
605
|
+
const MAX_BROWSE_LOW_ALIAS_ID = "gh-router-max-browse-low";
|
|
591
606
|
/**
|
|
592
607
|
* Pipeline skill aliases (`/gh-gather-context`, `/gh-plan`, `/gh-implement`).
|
|
593
608
|
* Router-owned, non-catalog identities shared by every pinned profile: all
|
|
@@ -607,7 +622,11 @@ const SKILL_REVIEW_PASS2_ALIAS_ID = "gh-router-skill-review-pass2-medium";
|
|
|
607
622
|
const LUNA_REAL_MODEL_ID = FAST_PROFILE_MODELS.luna;
|
|
608
623
|
/** The real Copilot catalog id every Sol skill alias canonicalizes to. */
|
|
609
624
|
const SKILL_SOL_REAL_MODEL_ID = FAST_PROFILE_MODELS.plan;
|
|
610
|
-
const MAX_ALIAS_IDS = /* @__PURE__ */ new Set([
|
|
625
|
+
const MAX_ALIAS_IDS = /* @__PURE__ */ new Set([
|
|
626
|
+
MAX_LUNA_HIGH_ALIAS_ID,
|
|
627
|
+
MAX_LUNA_MAX_ALIAS_ID,
|
|
628
|
+
MAX_BROWSE_LOW_ALIAS_ID
|
|
629
|
+
]);
|
|
611
630
|
function isMaxModelAlias(id) {
|
|
612
631
|
return MAX_ALIAS_IDS.has(stripTrailingOneMSuffix(id).base);
|
|
613
632
|
}
|
|
@@ -615,6 +634,7 @@ function maxAliasEffort(id) {
|
|
|
615
634
|
const base = stripTrailingOneMSuffix(id).base;
|
|
616
635
|
if (base === "gh-router-max-luna-high") return "high";
|
|
617
636
|
if (base === "gh-router-max-luna-max") return "max";
|
|
637
|
+
if (base === "gh-router-max-browse-low") return "low";
|
|
618
638
|
}
|
|
619
639
|
function maxAliasModel(id) {
|
|
620
640
|
return isMaxModelAlias(id) ? LUNA_REAL_MODEL_ID : void 0;
|
|
@@ -667,6 +687,11 @@ const MODEL_ALIAS_TABLE = /* @__PURE__ */ new Map([
|
|
|
667
687
|
realModel: LUNA_REAL_MODEL_ID,
|
|
668
688
|
absentEffortDefault: "high"
|
|
669
689
|
}],
|
|
690
|
+
[BROWSE_LOW_ALIAS_ID, {
|
|
691
|
+
aliasId: BROWSE_LOW_ALIAS_ID,
|
|
692
|
+
realModel: LUNA_REAL_MODEL_ID,
|
|
693
|
+
absentEffortDefault: "low"
|
|
694
|
+
}],
|
|
670
695
|
[CHEAP_EXPLORE_ALIAS_ID, {
|
|
671
696
|
aliasId: CHEAP_EXPLORE_ALIAS_ID,
|
|
672
697
|
realModel: CHEAP_PROFILE_MODELS.explore,
|
|
@@ -697,11 +722,6 @@ const MODEL_ALIAS_TABLE = /* @__PURE__ */ new Map([
|
|
|
697
722
|
realModel: CHEAPEST_PROFILE_MODELS.explore,
|
|
698
723
|
absentEffortDefault: "high"
|
|
699
724
|
}],
|
|
700
|
-
[CHEAPEST_PLAN_ALIAS_ID, {
|
|
701
|
-
aliasId: CHEAPEST_PLAN_ALIAS_ID,
|
|
702
|
-
realModel: CHEAPEST_PROFILE_MODELS.plan,
|
|
703
|
-
absentEffortDefault: "high"
|
|
704
|
-
}],
|
|
705
725
|
[CHEAPEST_GENERAL_PURPOSE_ALIAS_ID, {
|
|
706
726
|
aliasId: CHEAPEST_GENERAL_PURPOSE_ALIAS_ID,
|
|
707
727
|
realModel: CHEAPEST_PROFILE_MODELS["General-Purpose"],
|
|
@@ -722,11 +742,6 @@ const MODEL_ALIAS_TABLE = /* @__PURE__ */ new Map([
|
|
|
722
742
|
realModel: BALANCED_PROFILE_MODELS.explore,
|
|
723
743
|
absentEffortDefault: "high"
|
|
724
744
|
}],
|
|
725
|
-
[BALANCED_PLAN_ALIAS_ID, {
|
|
726
|
-
aliasId: BALANCED_PLAN_ALIAS_ID,
|
|
727
|
-
realModel: BALANCED_PROFILE_MODELS.plan,
|
|
728
|
-
absentEffortDefault: "high"
|
|
729
|
-
}],
|
|
730
745
|
[BALANCED_GENERAL_PURPOSE_ALIAS_ID, {
|
|
731
746
|
aliasId: BALANCED_GENERAL_PURPOSE_ALIAS_ID,
|
|
732
747
|
realModel: BALANCED_PROFILE_MODELS["General-Purpose"],
|
|
@@ -999,9 +1014,10 @@ function formatCheapPrerequisiteFailure(missing) {
|
|
|
999
1014
|
const CHEAPEST_SUBAGENT_MIN_CONTEXT_TOKENS = CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS;
|
|
1000
1015
|
/**
|
|
1001
1016
|
* Validate the live Copilot catalog for `-m cheapest`: Luna lead at the 200K
|
|
1002
|
-
* default window, Luna Explore/GP roles, a Sol
|
|
1003
|
-
* and a Sol/medium Advisor — all at the 200K default with
|
|
1004
|
-
* their fixed efforts and supported endpoints.
|
|
1017
|
+
* default window, Luna Explore/GP roles, a Sol/high reviewer, a Sol/high
|
|
1018
|
+
* Oracle, and a Sol/medium Advisor — all at the 200K default with
|
|
1019
|
+
* their fixed efforts and supported endpoints. There is no `Plan` role: the
|
|
1020
|
+
* lead plans directly.
|
|
1005
1021
|
*/
|
|
1006
1022
|
function validateCheapestProfilePrerequisites(catalog) {
|
|
1007
1023
|
const missing = [];
|
|
@@ -1013,14 +1029,13 @@ function validateCheapestProfilePrerequisites(catalog) {
|
|
|
1013
1029
|
if (!supportsEffort(luna, "high") || !supportsEffort(luna, "max") || !supportsEffort(luna, "xhigh")) missing.push(`${CHEAPEST_PROFILE_MODELS.lead}: does not advertise "high", "max", and "xhigh" reasoning effort`);
|
|
1014
1030
|
if (!supportsEndpoint(luna, "responses")) missing.push(`${CHEAPEST_PROFILE_MODELS.lead}: does not advertise a supported Responses endpoint`);
|
|
1015
1031
|
}
|
|
1016
|
-
const
|
|
1017
|
-
if (!
|
|
1032
|
+
const oracle = findModel(catalog, CHEAPEST_PROFILE_MODELS.oracle);
|
|
1033
|
+
if (!oracle) missing.push(`${CHEAPEST_PROFILE_MODELS.oracle}: absent from the live catalog`);
|
|
1018
1034
|
else {
|
|
1019
|
-
if (!
|
|
1020
|
-
if (!
|
|
1021
|
-
if (!
|
|
1022
|
-
if (!
|
|
1023
|
-
if (!hasUsablePromptMetadata(sol)) missing.push(`${CHEAPEST_PROFILE_MODELS.plan}: no usable max_prompt_tokens metadata (Oracle brief)`);
|
|
1035
|
+
if (!hasContextAtLeast(oracle, CHEAPEST_SUBAGENT_MIN_CONTEXT_TOKENS)) missing.push(`${CHEAPEST_PROFILE_MODELS.oracle}: advertised context window is below the 200K subagent floor`);
|
|
1036
|
+
if (!supportsEffort(oracle, "high")) missing.push(`${CHEAPEST_PROFILE_MODELS.oracle}: does not advertise a "high" reasoning effort`);
|
|
1037
|
+
if (!supportsEndpoint(oracle, "responses")) missing.push(`${CHEAPEST_PROFILE_MODELS.oracle}: does not advertise a supported Responses endpoint`);
|
|
1038
|
+
if (!hasUsablePromptMetadata(oracle)) missing.push(`${CHEAPEST_PROFILE_MODELS.oracle}: no usable max_prompt_tokens metadata (Oracle brief)`);
|
|
1024
1039
|
}
|
|
1025
1040
|
const reviewer = findModel(catalog, CHEAPEST_PROFILE_MODELS.reviewer);
|
|
1026
1041
|
if (!reviewer) missing.push(`${CHEAPEST_PROFILE_MODELS.reviewer}: absent from the live catalog`);
|
|
@@ -1046,9 +1061,10 @@ function formatCheapestPrerequisiteFailure(missing) {
|
|
|
1046
1061
|
const BALANCED_SUBAGENT_MIN_CONTEXT_TOKENS = BALANCED_PROFILE_SUBAGENT_CONTEXT_TOKENS;
|
|
1047
1062
|
/**
|
|
1048
1063
|
* Validate the live Copilot catalog for `-m balanced`: Sol lead at the 200K
|
|
1049
|
-
* default window, Luna Explore/General-Purpose roles, Sol
|
|
1064
|
+
* default window, Luna Explore/General-Purpose roles, a Sol/high reviewer,
|
|
1050
1065
|
* and a Grok Oracle — all at the 200K default with their
|
|
1051
|
-
* fixed efforts and supported endpoints.
|
|
1066
|
+
* fixed efforts and supported endpoints. There is no `Plan` role: the lead
|
|
1067
|
+
* owns planning directly.
|
|
1052
1068
|
*/
|
|
1053
1069
|
function validateBalancedProfilePrerequisites(catalog) {
|
|
1054
1070
|
const missing = [];
|
|
@@ -2474,7 +2490,7 @@ function collectToolFieldKeys(body) {
|
|
|
2474
2490
|
//#endregion
|
|
2475
2491
|
//#region package.json
|
|
2476
2492
|
var name = "github-router";
|
|
2477
|
-
var version = "0.3.
|
|
2493
|
+
var version = "0.3.339";
|
|
2478
2494
|
//#endregion
|
|
2479
2495
|
//#region src/lib/approval.ts
|
|
2480
2496
|
const awaitApproval = async () => {
|
|
@@ -8124,6 +8140,6 @@ function getCodexEnvVars(serverUrl) {
|
|
|
8124
8140
|
return vars;
|
|
8125
8141
|
}
|
|
8126
8142
|
//#endregion
|
|
8127
|
-
export { profileDescriptor as A, updateClaude as B,
|
|
8143
|
+
export { profileDescriptor as A, updateClaude as B, LUNA_SCOUT_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_REVIEWER_ALIAS_ID as S, formatBalancedPrerequisiteFailure as T, CHEAPEST_GENERAL_PURPOSE_ALIAS_ID as _, sharedServerArgs as a, CHEAP_GENERAL_PURPOSE_ALIAS_ID as b, stopKeepAwake as c, enableFileLogging as d, BALANCED_EXPLORE_ALIAS_ID as f, CHEAPEST_EXPLORE_ALIAS_ID as g, BROWSE_LOW_ALIAS_ID as h, setupAndServe as i, resolveLaunchProfile as j, formatFastPrerequisiteFailure as k, injectModelPickerSettingsFile as l, BALANCED_REVIEWER_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_REVIEWER_ALIAS_ID as v, MAX_BROWSE_LOW_ALIAS_ID as w, CHEAP_PLAN_ALIAS_ID as x, CHEAP_EXPLORE_ALIAS_ID as y, checkClaudeVersion as z };
|
|
8128
8144
|
|
|
8129
|
-
//# sourceMappingURL=server-setup-
|
|
8145
|
+
//# sourceMappingURL=server-setup-Df9BxQ-V.js.map
|