github-router 0.3.367 → 0.3.370
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-B5MNQMFs.js +1 -0
- package/dist/{aic-ledger-_mvGW2Ev.js → aic-ledger-Cp7Yk9-Q.js} +2 -2
- package/dist/{aic-ledger-_mvGW2Ev.js.map → aic-ledger-Cp7Yk9-Q.js.map} +1 -1
- package/dist/{attribution-settings-wVzQvIdL.js → attribution-settings-Cppl9atx.js} +224 -192
- package/dist/attribution-settings-Cppl9atx.js.map +1 -0
- package/dist/{auth-B3UvYB2r.js → auth-B1egtvt4.js} +3 -3
- package/dist/{auth-B3UvYB2r.js.map → auth-B1egtvt4.js.map} +1 -1
- package/dist/{balanced-profile-contract-DtnTIBjL.js → balanced-profile-contract-Dm_usmw7.js} +7 -1
- package/dist/{balanced-profile-contract-DtnTIBjL.js.map → balanced-profile-contract-Dm_usmw7.js.map} +1 -1
- package/dist/{bluebird-client-C29-JOkG.js → bluebird-client-ByCRusGQ.js} +3 -3
- package/dist/bluebird-client-ByCRusGQ.js.map +1 -0
- package/dist/bluebird-client-CY6NBHQu.js +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{check-usage-45vyaLfl.js → check-usage-T_z84Pgc.js} +3 -3
- package/dist/{check-usage-45vyaLfl.js.map → check-usage-T_z84Pgc.js.map} +1 -1
- package/dist/{claude-B3pIageM.js → claude-B3qNFwtc.js} +25 -20
- package/dist/claude-B3qNFwtc.js.map +1 -0
- package/dist/{claude-md-injection-BV4tPUWo.js → claude-md-injection-K3DKhsfI.js} +37 -12
- package/dist/claude-md-injection-K3DKhsfI.js.map +1 -0
- package/dist/{codex-B_AMB6JM.js → codex-3DEffjlm.js} +8 -8
- package/dist/{codex-B_AMB6JM.js.map → codex-3DEffjlm.js.map} +1 -1
- package/dist/{copilot-discount-BuDbQOHq.js → copilot-discount-T-cfWmc4.js} +2 -2
- package/dist/{copilot-discount-BuDbQOHq.js.map → copilot-discount-T-cfWmc4.js.map} +1 -1
- package/dist/engine-C2YCclx0.js +1 -0
- package/dist/{gate-discovery-CXE-7VcM.js → gate-discovery-BV6UGGVd.js} +2 -2
- package/dist/{gate-discovery-CXE-7VcM.js.map → gate-discovery-BV6UGGVd.js.map} +1 -1
- package/dist/{get-copilot-usage-BbGmK03C.js → get-copilot-usage-BSXeQEx8.js} +3 -3
- package/dist/{get-copilot-usage-BbGmK03C.js.map → get-copilot-usage-BSXeQEx8.js.map} +1 -1
- package/dist/hooks.mjs +74 -10
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-aic-status-BAVomi5A.js → internal-aic-status-CY0QxSa7.js} +3 -3
- package/dist/{internal-aic-status-BAVomi5A.js.map → internal-aic-status-CY0QxSa7.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-DP25L_Bx.js → internal-fast-dispatch-guard-De_DJOyZ.js} +1 -1
- package/dist/{internal-fast-dispatch-guard-DbrgO9Ab.js → internal-fast-dispatch-guard-_n-A8hgo.js} +2 -2
- package/dist/{internal-fast-dispatch-guard-DbrgO9Ab.js.map → internal-fast-dispatch-guard-_n-A8hgo.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-BodVFHRC.js → internal-max-dispatch-guard-4rh6KSd8.js} +2 -2
- package/dist/{internal-max-dispatch-guard-BodVFHRC.js.map → internal-max-dispatch-guard-4rh6KSd8.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-BB0vwiPx.js → internal-max-dispatch-guard-CKnzgJje.js} +1 -1
- package/dist/{internal-prompt-submit-DPUBQZtG.js → internal-prompt-submit-B-kKTl-8.js} +2 -2
- package/dist/{internal-prompt-submit-BaccW_CC.js → internal-prompt-submit-bi7F7pKk.js} +2 -2
- package/dist/{internal-prompt-submit-BaccW_CC.js.map → internal-prompt-submit-bi7F7pKk.js.map} +1 -1
- package/dist/{internal-rebrief-NjSlx5QY.js → internal-rebrief-B6ZJS6Mp.js} +3 -3
- package/dist/{internal-rebrief-NjSlx5QY.js.map → internal-rebrief-B6ZJS6Mp.js.map} +1 -1
- package/dist/{internal-stop-hook-B2TTl6Zp.js → internal-stop-hook-covotLvl.js} +2 -2
- package/dist/{internal-stop-hook-B2TTl6Zp.js.map → internal-stop-hook-covotLvl.js.map} +1 -1
- package/dist/main.js +15 -14
- package/dist/main.js.map +1 -1
- package/dist/{max-profile-contract-Cx5_Z1Y7.js → max-profile-contract-CRj7N211.js} +2 -2
- package/dist/{max-profile-contract-Cx5_Z1Y7.js.map → max-profile-contract-CRj7N211.js.map} +1 -1
- package/dist/{models-BR6i348u.js → models-Ca-HQTYi.js} +2 -2
- package/dist/{models-BR6i348u.js.map → models-Ca-HQTYi.js.map} +1 -1
- package/dist/{peer-mcp-personas-BOgR46nM.js → peer-mcp-personas-6zWkXHQW.js} +1181 -354
- package/dist/peer-mcp-personas-6zWkXHQW.js.map +1 -0
- package/dist/{pi-DcWp83mx.js → pi-DJJlBHP9.js} +41 -19
- package/dist/{pi-DcWp83mx.js.map → pi-DJJlBHP9.js.map} +1 -1
- package/dist/{provision-DkWR9B6I.js → provision-C_aTowyW.js} +3 -2
- package/dist/provision-C_aTowyW.js.map +1 -0
- package/dist/{serve-BGwEVDdc.js → serve-CfizTkRS.js} +19 -11
- package/dist/serve-CfizTkRS.js.map +1 -0
- package/dist/{server-setup-DVPL9iph.js → server-setup-rm8ELtYa.js} +107 -138
- package/dist/server-setup-rm8ELtYa.js.map +1 -0
- package/dist/{start-BUWx3nSr.js → start-D7RcHG8T.js} +3 -3
- package/dist/{start-BUWx3nSr.js.map → start-D7RcHG8T.js.map} +1 -1
- package/dist/{state-CiwCLVDZ.js → state-DzsaGHr9.js} +3 -1
- package/dist/state-DzsaGHr9.js.map +1 -0
- package/dist/{static-context-pack-ChHuxBpk.js → static-context-pack-DvwLWlbe.js} +153 -17
- package/dist/static-context-pack-DvwLWlbe.js.map +1 -0
- package/dist/token-CVG0yI_j.js +480 -0
- package/dist/token-CVG0yI_j.js.map +1 -0
- package/dist/{token-OTb61rOC.js → token-Dqjs5ixP.js} +3 -3
- package/dist/{token-OTb61rOC.js.map → token-Dqjs5ixP.js.map} +1 -1
- package/dist/workiq-qnJR5_n2.js +144 -0
- package/dist/workiq-qnJR5_n2.js.map +1 -0
- package/dist/workiq-tools-BeTneKco.js +1 -0
- package/package.json +1 -1
- package/dist/ado-tools-rysFZDws.js +0 -1
- package/dist/attribution-settings-wVzQvIdL.js.map +0 -1
- package/dist/bluebird-client-C29-JOkG.js.map +0 -1
- package/dist/bluebird-client-DGE3WZqh.js +0 -1
- package/dist/claude-B3pIageM.js.map +0 -1
- package/dist/claude-md-injection-BV4tPUWo.js.map +0 -1
- package/dist/engine-D3oNrF6Z.js +0 -1
- package/dist/peer-mcp-personas-BOgR46nM.js.map +0 -1
- package/dist/provision-DkWR9B6I.js.map +0 -1
- package/dist/serve-BGwEVDdc.js.map +0 -1
- package/dist/server-setup-DVPL9iph.js.map +0 -1
- package/dist/state-CiwCLVDZ.js.map +0 -1
- package/dist/static-context-pack-ChHuxBpk.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { I as provisionTreeSitterAssets, L as withInstallLock } from "./service-backend-B6D_DY1Z.js";
|
|
2
2
|
import { t as getPackageVersion } from "./version-C8x2hQrZ.js";
|
|
3
3
|
import { i as ensurePaths, t as PATHS } from "./paths-C5477RGC.js";
|
|
4
|
-
import { t as state } from "./state-
|
|
5
|
-
import {
|
|
4
|
+
import { t as state } from "./state-DzsaGHr9.js";
|
|
5
|
+
import { C as copilotHeaders, S as copilotBaseUrl, c as cacheVSCodeVersion, f as resolveModel, i as tryRefreshAndRetry, l as filterBetaHeader, n as setupGitHubAgentToken, o as cacheCopilotVersion, p as sleep, r as setupGitHubToken, s as cacheModels, t as setupCopilotToken, u as isNullish, v as HTTPError, y as forwardError } from "./token-Dqjs5ixP.js";
|
|
6
6
|
import { r as fetchWithTransientRetry } from "./upstream-retry-i1k1Xai2.js";
|
|
7
|
-
import { t as getCopilotUsage } from "./get-copilot-usage-
|
|
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
|
|
11
|
-
import {
|
|
12
|
-
import { i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, r as BALANCED_PROFILE_MODELS } from "./balanced-profile-contract-
|
|
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-
|
|
14
|
-
import { f as getAzureRepoFromGit } from "./bluebird-client-
|
|
15
|
-
import { a as extractAndRecordPricedAic, g as nanoAiuToCredits, h as formatAic, i as extractAndRecordAic, l as recordAic, m as extractCopilotUsage, p as copilotUsageToWire, u as recordZeroCostRequest } from "./aic-ledger-
|
|
10
|
+
import { $ as buildAnthropicErrorEvent, $n as isBudgetClaudeLead, An as normalizeOpenAIUsage, B as FAST_ADVISOR_TOOL_INSTRUCTIONS, Cn as createResponses, Ct as agentToolsEnabled, D as toolbeltEnabled, Dn as parseJsonOrDiagnose, En as readResponseBodyCapped, F as ADVISOR_TOOL_INSTRUCTIONS, G as isAdvisorRequested, Gn as BUDGET_SMALL_FAST_SLUG, 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, Nn as normalizeCloudAgentEnvironment, On as assertCopilotModelAllowed, P as ADVISOR_INTERNAL_TOOL_NAME, Pn as normalizeKustoClusterUri, Q as repairRejectedThinkingHistory, Qn as generateRandomPort, R as CHEAPLOCAL_ADVISOR_TOOL_INSTRUCTIONS, Sn as resolveMcpToolTimeoutMs, Tn as MAX_RESPONSE_BODY_BYTES, U as buildAdvisorStream, Un as toolbeltPathOverride, V as LOCAL_ADVISOR_TOOL_INSTRUCTIONS, W as injectAdvisorTool, X as rememberThinkingHistoryRepair, Xn as UPSTREAM_FETCH_TIMEOUT_MS, Y as formatThinkingRepairDecline, Z as repairKnownThinkingHistory, Zn as UPSTREAM_INACTIVITY_TIMEOUT_MS, an as shimDefaultsToXhigh, ar as catalogAdvertises1M, at as EFFORT_ORDER, bn as assembleResponsesPayload, bt as ADO_DEFAULT_TOOLSETS, cn as getTokenizerFromModel, cr as withOneMSuffixForLead, ct as clampEffort, dn as localSessionId, dr as CHEAP_PROFILE_NATIVE_AGENT_NAMES, et as buildOpenAIErrorEvent, fn as countTokens, hn as findLaunchBySecret, i as assertMcpToolSurfaceConsistent, ir as classifyMessagesRoute, it as relayAnthropicStream, kn as effectiveLocalProfile, lr as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, lt as handleMcpDelete, mn as LAUNCH_BOUND_TOKEN_PREFIX, mr as CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS, mt as provisionWorkiqTools, nr as upstreamAllowH2, nt as logStreamError, on as getTextTokenCount, or as oneMContextDisabled, ot as UNKNOWN_EFFORT_ANCHOR, pn as createMessages, q as resolveAdvisorModel, rr as upstreamMaxConnections, rt as readIteratorWithTimeout, sn as getTokenCount, sr as withOneMSuffix, st as bucketEffort, tt as isControllerClosedError, un as localBaseUrl, ur as CHEAP_PROFILE_MODELS, ut as handleMcpPost, vn as rememberLaunchSessionId, wn as createChatCompletions, xn as warnOnTokenPriceDrift, xt as normalizeAdoToolsets, yt as provisionAdoTools, z as CHEAPLOCAL_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS } from "./peer-mcp-personas-6zWkXHQW.js";
|
|
11
|
+
import { D as LOCAL_PROFILE_TIER_MODELS, F as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, P as CHEAPEST_PROFILE_MODELS, S as localContractFor, _ as isCheapestFamily, b as isPinnedLaunchProfile, f as balancedContractFor, g as isBalancedFamily, h as displayModelName, k as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, p as cheapestContractFor, x as local2AdvisorContract, y as isLocalFamily } from "./static-context-pack-DvwLWlbe.js";
|
|
12
|
+
import { i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, r as BALANCED_PROFILE_MODELS } from "./balanced-profile-contract-Dm_usmw7.js";
|
|
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
|
+
import { f as getAzureRepoFromGit } from "./bluebird-client-ByCRusGQ.js";
|
|
15
|
+
import { a as extractAndRecordPricedAic, g as nanoAiuToCredits, h as formatAic, i as extractAndRecordAic, l as recordAic, m as extractCopilotUsage, p as copilotUsageToWire, u as recordZeroCostRequest } from "./aic-ledger-Cp7Yk9-Q.js";
|
|
16
16
|
import consola from "consola";
|
|
17
17
|
import fs, { existsSync } from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
@@ -400,7 +400,8 @@ const FAST_PROFILE = Object.freeze({
|
|
|
400
400
|
"browser",
|
|
401
401
|
"ado",
|
|
402
402
|
"kusto",
|
|
403
|
-
"cloudagent"
|
|
403
|
+
"cloudagent",
|
|
404
|
+
"workiq"
|
|
404
405
|
]),
|
|
405
406
|
hasCoordinator: false
|
|
406
407
|
});
|
|
@@ -423,7 +424,8 @@ const CHEAP1M_PROFILE = Object.freeze({
|
|
|
423
424
|
"browser",
|
|
424
425
|
"ado",
|
|
425
426
|
"kusto",
|
|
426
|
-
"cloudagent"
|
|
427
|
+
"cloudagent",
|
|
428
|
+
"workiq"
|
|
427
429
|
]),
|
|
428
430
|
hasCoordinator: false
|
|
429
431
|
});
|
|
@@ -446,7 +448,8 @@ const CHEAP_PROFILE = Object.freeze({
|
|
|
446
448
|
"browser",
|
|
447
449
|
"ado",
|
|
448
450
|
"kusto",
|
|
449
|
-
"cloudagent"
|
|
451
|
+
"cloudagent",
|
|
452
|
+
"workiq"
|
|
450
453
|
]),
|
|
451
454
|
hasCoordinator: false
|
|
452
455
|
});
|
|
@@ -470,7 +473,8 @@ const CHEAPEST_PROFILE = Object.freeze({
|
|
|
470
473
|
"browser",
|
|
471
474
|
"ado",
|
|
472
475
|
"kusto",
|
|
473
|
-
"cloudagent"
|
|
476
|
+
"cloudagent",
|
|
477
|
+
"workiq"
|
|
474
478
|
]),
|
|
475
479
|
hasCoordinator: false
|
|
476
480
|
});
|
|
@@ -493,7 +497,8 @@ const BALANCED_PROFILE = Object.freeze({
|
|
|
493
497
|
"browser",
|
|
494
498
|
"ado",
|
|
495
499
|
"kusto",
|
|
496
|
-
"cloudagent"
|
|
500
|
+
"cloudagent",
|
|
501
|
+
"workiq"
|
|
497
502
|
]),
|
|
498
503
|
hasCoordinator: false
|
|
499
504
|
});
|
|
@@ -511,7 +516,33 @@ const CHEAPEST2_PROFILE = Object.freeze({
|
|
|
511
516
|
"browser",
|
|
512
517
|
"ado",
|
|
513
518
|
"kusto",
|
|
514
|
-
"cloudagent"
|
|
519
|
+
"cloudagent",
|
|
520
|
+
"workiq"
|
|
521
|
+
]),
|
|
522
|
+
hasCoordinator: false
|
|
523
|
+
});
|
|
524
|
+
/**
|
|
525
|
+
* The `-m cheaplocal` roster: `cheapest` exactly, with its Advisor and Oracle
|
|
526
|
+
* served by the local Anthropic-Messages endpoint rather than Copilot.
|
|
527
|
+
*
|
|
528
|
+
* The surface is inherited from the family contract and the group set is the
|
|
529
|
+
* cheapest one unchanged: the lead and natives are still Copilot calls, and the
|
|
530
|
+
* `workers` group works as it does on `cheapest` (subject to the profile's
|
|
531
|
+
* Copilot family ceiling, enforced at egress).
|
|
532
|
+
*/
|
|
533
|
+
const CHEAPLOCAL_PROFILE = Object.freeze({
|
|
534
|
+
id: "cheaplocal",
|
|
535
|
+
nativeRoster: new Set(cheapestContractFor("cheaplocal").nativeAgentNames),
|
|
536
|
+
personaAllowlist: /* @__PURE__ */ new Set(["oracle"]),
|
|
537
|
+
allowedGroups: /* @__PURE__ */ new Set([
|
|
538
|
+
"peers",
|
|
539
|
+
"search",
|
|
540
|
+
"workers",
|
|
541
|
+
"browser",
|
|
542
|
+
"ado",
|
|
543
|
+
"kusto",
|
|
544
|
+
"cloudagent",
|
|
545
|
+
"workiq"
|
|
515
546
|
]),
|
|
516
547
|
hasCoordinator: false
|
|
517
548
|
});
|
|
@@ -528,7 +559,8 @@ const BALANCED2_PROFILE = Object.freeze({
|
|
|
528
559
|
"browser",
|
|
529
560
|
"ado",
|
|
530
561
|
"kusto",
|
|
531
|
-
"cloudagent"
|
|
562
|
+
"cloudagent",
|
|
563
|
+
"workiq"
|
|
532
564
|
]),
|
|
533
565
|
hasCoordinator: false
|
|
534
566
|
});
|
|
@@ -560,7 +592,8 @@ const LOCAL_PROFILE = Object.freeze({
|
|
|
560
592
|
"browser",
|
|
561
593
|
"ado",
|
|
562
594
|
"kusto",
|
|
563
|
-
"cloudagent"
|
|
595
|
+
"cloudagent",
|
|
596
|
+
"workiq"
|
|
564
597
|
]),
|
|
565
598
|
hasCoordinator: false
|
|
566
599
|
});
|
|
@@ -581,7 +614,8 @@ const LOCAL2_PROFILE = Object.freeze({
|
|
|
581
614
|
"browser",
|
|
582
615
|
"ado",
|
|
583
616
|
"kusto",
|
|
584
|
-
"cloudagent"
|
|
617
|
+
"cloudagent",
|
|
618
|
+
"workiq"
|
|
585
619
|
]),
|
|
586
620
|
hasCoordinator: false
|
|
587
621
|
});
|
|
@@ -614,7 +648,8 @@ const MAX_PROFILE = Object.freeze({
|
|
|
614
648
|
"first-mate",
|
|
615
649
|
"ado",
|
|
616
650
|
"kusto",
|
|
617
|
-
"cloudagent"
|
|
651
|
+
"cloudagent",
|
|
652
|
+
"workiq"
|
|
618
653
|
]),
|
|
619
654
|
hasCoordinator: true
|
|
620
655
|
});
|
|
@@ -625,6 +660,7 @@ function profileDescriptor(id) {
|
|
|
625
660
|
if (id === "cheap") return CHEAP_PROFILE;
|
|
626
661
|
if (id === "cheapest") return CHEAPEST_PROFILE;
|
|
627
662
|
if (id === "cheapest2") return CHEAPEST2_PROFILE;
|
|
663
|
+
if (id === "cheaplocal") return CHEAPLOCAL_PROFILE;
|
|
628
664
|
if (id === "balanced") return BALANCED_PROFILE;
|
|
629
665
|
if (id === "balanced2") return BALANCED2_PROFILE;
|
|
630
666
|
if (id === "local") return LOCAL_PROFILE;
|
|
@@ -650,6 +686,7 @@ function resolveLaunchProfile(modelArg) {
|
|
|
650
686
|
if (arg === "cheap") return "cheap";
|
|
651
687
|
if (arg === "cheapest") return "cheapest";
|
|
652
688
|
if (arg === "cheapest2") return "cheapest2";
|
|
689
|
+
if (arg === "cheaplocal") return "cheaplocal";
|
|
653
690
|
if (arg === "balanced") return "balanced";
|
|
654
691
|
if (arg === "balanced2") return "balanced2";
|
|
655
692
|
if (arg === "local") return "local";
|
|
@@ -1180,7 +1217,7 @@ function validateCheapestProfilePrerequisites(catalog, opts = {}, profileId = "c
|
|
|
1180
1217
|
if (!supportsEffort(luna, "high") || !supportsEffort(luna, "max") || !supportsEffort(luna, "xhigh")) missing.push(`${contract.models.lead}: does not advertise "high", "max", and "xhigh" reasoning effort`);
|
|
1181
1218
|
if (!supportsEndpoint(luna, "responses")) missing.push(`${contract.models.lead}: does not advertise a supported Responses endpoint`);
|
|
1182
1219
|
}
|
|
1183
|
-
if (peers) {
|
|
1220
|
+
if (peers && contract.consultTransport !== "local") {
|
|
1184
1221
|
const oracle = findModel(catalog, contract.oracleModel);
|
|
1185
1222
|
if (!oracle) missing.push(`${contract.oracleModel}: absent from the live catalog`);
|
|
1186
1223
|
else {
|
|
@@ -1189,6 +1226,8 @@ function validateCheapestProfilePrerequisites(catalog, opts = {}, profileId = "c
|
|
|
1189
1226
|
if (!supportsEndpoint(oracle, "responses")) missing.push(`${contract.oracleModel}: does not advertise a supported Responses endpoint`);
|
|
1190
1227
|
if (!hasUsablePromptMetadata(oracle)) missing.push(`${contract.oracleModel}: no usable max_prompt_tokens metadata (Oracle brief)`);
|
|
1191
1228
|
}
|
|
1229
|
+
}
|
|
1230
|
+
if (peers) {
|
|
1192
1231
|
const reviewer = findModel(catalog, contract.models.reviewer);
|
|
1193
1232
|
if (!reviewer) missing.push(`${contract.models.reviewer}: absent from the live catalog`);
|
|
1194
1233
|
else {
|
|
@@ -3510,7 +3549,7 @@ function collectToolFieldKeys(body) {
|
|
|
3510
3549
|
//#endregion
|
|
3511
3550
|
//#region package.json
|
|
3512
3551
|
var name = "github-router";
|
|
3513
|
-
var version = "0.3.
|
|
3552
|
+
var version = "0.3.370";
|
|
3514
3553
|
//#endregion
|
|
3515
3554
|
//#region src/lib/approval.ts
|
|
3516
3555
|
const awaitApproval = async () => {
|
|
@@ -6812,114 +6851,6 @@ function preprocessFastRequest(rawBody, launch, subagentRequest = false) {
|
|
|
6812
6851
|
modified: true
|
|
6813
6852
|
};
|
|
6814
6853
|
}
|
|
6815
|
-
const LOCAL_DEFAULT_BASE_URL = `https://localhost:11111/v1`;
|
|
6816
|
-
let cliOverride;
|
|
6817
|
-
let warnedInert = false;
|
|
6818
|
-
function trimTrailingSlashes(value) {
|
|
6819
|
-
return value.replace(/\/+$/, "");
|
|
6820
|
-
}
|
|
6821
|
-
/**
|
|
6822
|
-
* Validate an absolute http(s) base URL and normalize it to the form the
|
|
6823
|
-
* egress concatenates (`<base>/messages`). A bare origin gains the documented
|
|
6824
|
-
* `/v1` prefix so `--localurl http://localhost:11111` and
|
|
6825
|
-
* `--localurl http://localhost:11111/v1` mean the same thing.
|
|
6826
|
-
*/
|
|
6827
|
-
function normalizeBaseUrl(raw, source) {
|
|
6828
|
-
const trimmed = raw.trim();
|
|
6829
|
-
if (trimmed.length === 0) throw new Error(`${source} must not be empty`);
|
|
6830
|
-
let parsed;
|
|
6831
|
-
try {
|
|
6832
|
-
parsed = new URL(trimmed);
|
|
6833
|
-
} catch {
|
|
6834
|
-
throw new Error(`${source} must be an absolute http(s) URL (got "${trimmed}")`);
|
|
6835
|
-
}
|
|
6836
|
-
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") throw new Error(`${source} must be an http(s) URL (got "${parsed.protocol}")`);
|
|
6837
|
-
if (parsed.search.length > 0 || parsed.hash.length > 0) throw new Error(`${source} must not carry a query or fragment (got "${trimmed}")`);
|
|
6838
|
-
if (parsed.pathname === "/" || parsed.pathname === "") parsed.pathname = "/v1";
|
|
6839
|
-
return trimTrailingSlashes(parsed.toString());
|
|
6840
|
-
}
|
|
6841
|
-
function parseLocalPort(raw, source) {
|
|
6842
|
-
const trimmed = raw.trim();
|
|
6843
|
-
if (!/^\d+$/.test(trimmed)) throw new Error(`${source} must be an integer port (got "${trimmed}")`);
|
|
6844
|
-
const port = Number(trimmed);
|
|
6845
|
-
if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error(`${source} must be between 1 and 65535 (got "${trimmed}")`);
|
|
6846
|
-
return port;
|
|
6847
|
-
}
|
|
6848
|
-
function withPort(baseUrl, port) {
|
|
6849
|
-
const parsed = new URL(baseUrl);
|
|
6850
|
-
parsed.port = String(port);
|
|
6851
|
-
return trimTrailingSlashes(parsed.toString());
|
|
6852
|
-
}
|
|
6853
|
-
/**
|
|
6854
|
-
* Resolve the local upstream base URL.
|
|
6855
|
-
*
|
|
6856
|
-
* Precedence, highest first:
|
|
6857
|
-
* 1. `--localurl` (full base URL)
|
|
6858
|
-
* 2. `--localport` (port of the base URL resolved below)
|
|
6859
|
-
* 3. `GH_ROUTER_LOCAL_BASE_URL`
|
|
6860
|
-
* 4. `GH_ROUTER_LOCAL_PORT`
|
|
6861
|
-
* 5. `https://localhost:11111/v1`
|
|
6862
|
-
*
|
|
6863
|
-
* The default scheme is `https` because that is the only endpoint measured.
|
|
6864
|
-
* A plain-HTTP server needs an explicit `--localurl http://...`; inferring the
|
|
6865
|
-
* scheme from the port number would be exactly the guess this profile refuses
|
|
6866
|
-
* to make.
|
|
6867
|
-
*/
|
|
6868
|
-
function localBaseUrl(env = process.env) {
|
|
6869
|
-
if (cliOverride?.baseUrl !== void 0) return cliOverride.baseUrl;
|
|
6870
|
-
const envBaseRaw = (env.GH_ROUTER_LOCAL_BASE_URL ?? "").trim();
|
|
6871
|
-
const base = envBaseRaw.length > 0 ? normalizeBaseUrl(envBaseRaw, "GH_ROUTER_LOCAL_BASE_URL") : LOCAL_DEFAULT_BASE_URL;
|
|
6872
|
-
if (cliOverride?.port !== void 0) return withPort(base, cliOverride.port);
|
|
6873
|
-
const envPortRaw = (env.GH_ROUTER_LOCAL_PORT ?? "").trim();
|
|
6874
|
-
if (envPortRaw.length > 0) return withPort(base, parseLocalPort(envPortRaw, "GH_ROUTER_LOCAL_PORT"));
|
|
6875
|
-
return base;
|
|
6876
|
-
}
|
|
6877
|
-
/**
|
|
6878
|
-
* Apply the CLI-level endpoint override. Called once per launch, before
|
|
6879
|
-
* `setupAndServe` starts accepting requests. Passing an empty object clears
|
|
6880
|
-
* any previous override.
|
|
6881
|
-
*
|
|
6882
|
-
* Deliberately does NOT write `process.env`: the child environment is
|
|
6883
|
-
* filtered and rebuilt, so a module-level value is the only surface that
|
|
6884
|
-
* cannot be reinterpreted by something else downstream.
|
|
6885
|
-
*/
|
|
6886
|
-
function configureLocalEgress(override) {
|
|
6887
|
-
const baseProvided = override.baseUrl !== void 0;
|
|
6888
|
-
const portProvided = override.port !== void 0;
|
|
6889
|
-
if (!baseProvided && !portProvided) {
|
|
6890
|
-
cliOverride = void 0;
|
|
6891
|
-
warnedInert = false;
|
|
6892
|
-
return;
|
|
6893
|
-
}
|
|
6894
|
-
if (baseProvided && portProvided) throw new Error("--localurl and --localport cannot be combined; pass one endpoint spelling");
|
|
6895
|
-
if (override.profileId !== void 0 && !isLocalFamily(override.profileId)) {
|
|
6896
|
-
if (!warnedInert) {
|
|
6897
|
-
warnedInert = true;
|
|
6898
|
-
consola.warn(`--localurl/--localport only apply to the local launch profiles (profile: ${override.profileId}); ignoring`);
|
|
6899
|
-
}
|
|
6900
|
-
cliOverride = void 0;
|
|
6901
|
-
return;
|
|
6902
|
-
}
|
|
6903
|
-
if (override.baseUrl !== void 0) {
|
|
6904
|
-
cliOverride = { baseUrl: normalizeBaseUrl(override.baseUrl, "--localurl") };
|
|
6905
|
-
return;
|
|
6906
|
-
}
|
|
6907
|
-
cliOverride = { port: parseLocalPort(String(override.port), "--localport") };
|
|
6908
|
-
}
|
|
6909
|
-
/**
|
|
6910
|
-
* The session id sent upstream on the local path.
|
|
6911
|
-
*
|
|
6912
|
-
* `x-claude-code-session-id` is what the local server requires (a request
|
|
6913
|
-
* without it is a 400). It must stay stable per conversation, so the client's
|
|
6914
|
-
* own value always wins and the process-level id is only a fallback for a
|
|
6915
|
-
* caller that sent none. Never synthesize a fresh value per request: the
|
|
6916
|
-
* header exists for prompt-cache routing, and a random value defeats it.
|
|
6917
|
-
*/
|
|
6918
|
-
function localSessionId(c) {
|
|
6919
|
-
const incoming = c.req.header("x-claude-code-session-id")?.trim();
|
|
6920
|
-
if (incoming !== void 0 && incoming.length > 0) return incoming;
|
|
6921
|
-
return state.sessionId;
|
|
6922
|
-
}
|
|
6923
6854
|
//#endregion
|
|
6924
6855
|
//#region src/lib/prompt-window-salvage.ts
|
|
6925
6856
|
/**
|
|
@@ -7337,6 +7268,7 @@ async function handleCompletion(c) {
|
|
|
7337
7268
|
const startTime = Date.now();
|
|
7338
7269
|
const identity = runMessagesIdentityPreflight(c);
|
|
7339
7270
|
if (!identity.ok) return identityPreflightErrorResponse(c, identity.reason);
|
|
7271
|
+
rememberLaunchSessionId(identity.launch, c.req.header("x-claude-code-session-id"));
|
|
7340
7272
|
await checkRateLimit(state);
|
|
7341
7273
|
const rawBody = await c.req.text();
|
|
7342
7274
|
recordBodySize(rawBody.length);
|
|
@@ -7422,6 +7354,8 @@ async function handleCompletion(c) {
|
|
|
7422
7354
|
const curatedAdvisorContract = localAdvisorRequest ? local2AdvisorContract() : cheapestProfileRequest ? cheapestContractFor(identity.launch?.profileId) : void 0;
|
|
7423
7355
|
const curatedAdvisorModel = curatedAdvisorContract?.advisorModel;
|
|
7424
7356
|
const curatedAdvisorClientModel = curatedAdvisorContract?.advisorClientModel;
|
|
7357
|
+
const curatedLocalConsult = curatedAdvisorContract?.consultTransport === "local";
|
|
7358
|
+
const curatedAdvisorLocalEffort = curatedLocalConsult ? curatedAdvisorContract?.advisorEffort : void 0;
|
|
7425
7359
|
const subagentAgentId = (c.req.header("x-claude-code-agent-id") ?? "").trim();
|
|
7426
7360
|
const subagentRequest = subagentAgentId.length > 0;
|
|
7427
7361
|
const fastSubagentRequest = fastProfileRequest && subagentRequest;
|
|
@@ -7507,8 +7441,8 @@ async function handleCompletion(c) {
|
|
|
7507
7441
|
if (curatedAdvisorEnabled) {
|
|
7508
7442
|
const mismatch = cheapestAdvisorMetadataMismatch(rawBody, curatedAdvisorClientModel ?? CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL);
|
|
7509
7443
|
if (mismatch) {
|
|
7510
|
-
const curatedLabel = localAdvisorRequest ? "Local Advisor" : "Cheapest Advisor";
|
|
7511
|
-
const curatedAlias = localAdvisorRequest ? "local2" : "cheapest";
|
|
7444
|
+
const curatedLabel = localAdvisorRequest ? "Local Advisor" : curatedLocalConsult ? "Cheap local Advisor" : "Cheapest Advisor";
|
|
7445
|
+
const curatedAlias = localAdvisorRequest ? "local2" : curatedLocalConsult ? "cheaplocal" : "cheapest";
|
|
7512
7446
|
return c.json({
|
|
7513
7447
|
type: "error",
|
|
7514
7448
|
error: {
|
|
@@ -7518,7 +7452,7 @@ async function handleCompletion(c) {
|
|
|
7518
7452
|
}, 400);
|
|
7519
7453
|
}
|
|
7520
7454
|
try {
|
|
7521
|
-
fastAdvisorChoice =
|
|
7455
|
+
fastAdvisorChoice = resolveCuratedAdvisorModel(curatedAdvisorModel, curatedAdvisorContract?.consultTransport ?? "copilot");
|
|
7522
7456
|
} catch (error) {
|
|
7523
7457
|
return c.json({
|
|
7524
7458
|
type: "error",
|
|
@@ -7530,7 +7464,7 @@ async function handleCompletion(c) {
|
|
|
7530
7464
|
}
|
|
7531
7465
|
}
|
|
7532
7466
|
if (curatedReviewerEnabled && !fastAdvisorChoice) try {
|
|
7533
|
-
fastAdvisorChoice =
|
|
7467
|
+
fastAdvisorChoice = resolveCuratedAdvisorModel(curatedAdvisorModel, curatedAdvisorContract?.consultTransport ?? "copilot");
|
|
7534
7468
|
} catch (error) {
|
|
7535
7469
|
return c.json({
|
|
7536
7470
|
type: "error",
|
|
@@ -7569,6 +7503,9 @@ async function handleCompletion(c) {
|
|
|
7569
7503
|
const curatedAdvisorInstructions = localAdvisorRequest ? {
|
|
7570
7504
|
lead: LOCAL_ADVISOR_TOOL_INSTRUCTIONS,
|
|
7571
7505
|
reviewer: LOCAL_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS
|
|
7506
|
+
} : curatedLocalConsult ? {
|
|
7507
|
+
lead: CHEAPLOCAL_ADVISOR_TOOL_INSTRUCTIONS,
|
|
7508
|
+
reviewer: CHEAPLOCAL_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS
|
|
7572
7509
|
} : {
|
|
7573
7510
|
lead: CHEAPEST_ADVISOR_TOOL_INSTRUCTIONS,
|
|
7574
7511
|
reviewer: CHEAPEST_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS
|
|
@@ -7622,7 +7559,7 @@ async function handleCompletion(c) {
|
|
|
7622
7559
|
fastProfile: false
|
|
7623
7560
|
} : cheapAdvisorEnabled || curatedAdvisorEnabled || curatedReviewerEnabled ? {
|
|
7624
7561
|
model: fastAdvisorChoice.model,
|
|
7625
|
-
effort: resolveAdvisorEffort(rawBody, fastAdvisorChoice.model, true),
|
|
7562
|
+
effort: curatedAdvisorLocalEffort ?? resolveAdvisorEffort(rawBody, fastAdvisorChoice.model, true),
|
|
7626
7563
|
escalated: fastAdvisorChoice.escalated,
|
|
7627
7564
|
fastProfile: true
|
|
7628
7565
|
} : {
|
|
@@ -7644,6 +7581,10 @@ async function handleCompletion(c) {
|
|
|
7644
7581
|
advisorCheapestProfile: curatedAdvisorEnabled || curatedReviewerEnabled,
|
|
7645
7582
|
advisorReviewerProfile: curatedReviewerEnabled,
|
|
7646
7583
|
advisorLocalProfile: localAdvisorRequest,
|
|
7584
|
+
advisorLocalEgress: curatedLocalConsult ? {
|
|
7585
|
+
baseUrl: localBaseUrl(),
|
|
7586
|
+
sessionId: localSessionId(c, identity.launch?.sessionId)
|
|
7587
|
+
} : void 0,
|
|
7647
7588
|
advisorMaxTurns: curatedReviewerEnabled ? 5 : void 0,
|
|
7648
7589
|
advisorEffort: advisorChoice.effort,
|
|
7649
7590
|
externalAborter: translatedAdvisorAborter,
|
|
@@ -7781,8 +7722,12 @@ async function handleCompletion(c) {
|
|
|
7781
7722
|
baseUrl: localBaseUrl(),
|
|
7782
7723
|
sessionId: localSessionId(c)
|
|
7783
7724
|
} : void 0,
|
|
7725
|
+
advisorLocalEgress: curatedLocalConsult ? {
|
|
7726
|
+
baseUrl: localBaseUrl(),
|
|
7727
|
+
sessionId: localSessionId(c, identity.launch?.sessionId)
|
|
7728
|
+
} : void 0,
|
|
7784
7729
|
advisorMaxTurns: curatedReviewerEnabled ? 5 : void 0,
|
|
7785
|
-
advisorEffort: maxAdvisorChoice ? maxAdvisorChoice.effort : resolveAdvisorEffort(rawBody, advisorChoice.model, fastLeadAdvisor || cheapLeadAdvisor || curatedLeadAdvisor),
|
|
7730
|
+
advisorEffort: maxAdvisorChoice ? maxAdvisorChoice.effort : curatedAdvisorLocalEffort ?? resolveAdvisorEffort(rawBody, advisorChoice.model, fastLeadAdvisor || cheapLeadAdvisor || curatedLeadAdvisor),
|
|
7786
7731
|
externalAborter: advisorAborter
|
|
7787
7732
|
}), {
|
|
7788
7733
|
status: response.status,
|
|
@@ -9046,6 +8991,12 @@ async function setupAndServe(options) {
|
|
|
9046
8991
|
state.kustoDatabase = azureFlags.kustoDatabase;
|
|
9047
8992
|
state.cloudAgentEnabled = cloudAgentFlags.enabled;
|
|
9048
8993
|
state.cloudAgentEnvironment = cloudAgentFlags.environment;
|
|
8994
|
+
state.workiqEnabled = options.workiqEnabled === true || process.env.GH_ROUTER_ENABLE_WORKIQ === "1";
|
|
8995
|
+
state.workiqWriteEnabled = options.workiqWriteEnabled === true;
|
|
8996
|
+
if (state.workiqWriteEnabled && !state.workiqEnabled) {
|
|
8997
|
+
consola.warn("Work IQ: --workiq-write has no effect without --workiq (or GH_ROUTER_ENABLE_WORKIQ=1).");
|
|
8998
|
+
state.workiqWriteEnabled = false;
|
|
8999
|
+
}
|
|
9049
9000
|
if (state.kustoEnabled && state.kustoCluster === null) consola.info("Kusto MCP: no default cluster; every call must name one (--kusto-cluster sets a default).");
|
|
9050
9001
|
for (const reason of azureFlags.reasons) consola.info(`Azure MCP auto-enabled (${reason}).`);
|
|
9051
9002
|
if (azureFlags.reasons.length > 0) consola.info("Suppress auto-enabled Azure surfaces with --no-bluebird / --no-ado / --no-kusto, or GH_ROUTER_AZURE_MCPS=off.");
|
|
@@ -9056,11 +9007,17 @@ async function setupAndServe(options) {
|
|
|
9056
9007
|
consola.info(`Cloud Agent MCP (${state.cloudAgentEnvironment}): enabled by ${source}${veto}.`);
|
|
9057
9008
|
}
|
|
9058
9009
|
if (state.adoEnabled && options.adoWriteEnabled === true) consola.warn("Azure DevOps MCP is running WITHOUT X-MCP-Readonly (--ado-write). Mutating tools are reachable from this session.");
|
|
9010
|
+
if (state.workiqWriteEnabled) consola.warn("Work IQ MCP is exposing its mutating tools (--workiq-write): create_entity, update_entity, delete_entity and do_action can change M365 data from this session.");
|
|
9059
9011
|
if (state.adoEnabled) {
|
|
9060
9012
|
consola.info("Azure DevOps MCP: provisioning the remote tool surface...");
|
|
9061
9013
|
const result = await provisionAdoTools();
|
|
9062
9014
|
if (result.ok) consola.info(`Azure DevOps MCP: ${result.toolCount} tool(s) exposed.`);
|
|
9063
9015
|
}
|
|
9016
|
+
if (state.workiqEnabled) {
|
|
9017
|
+
consola.info("Work IQ MCP: provisioning the remote tool surface...");
|
|
9018
|
+
const result = await provisionWorkiqTools();
|
|
9019
|
+
if (result.ok) consola.info(`Work IQ MCP: ${result.toolCount} tool(s) exposed.`);
|
|
9020
|
+
}
|
|
9064
9021
|
state.fleetEnabled = options.fleetEnabled || process.env.GH_ROUTER_ENABLE_FLEET === "1";
|
|
9065
9022
|
state.agentsEnabled = options.agentsEnabled || process.env.GH_ROUTER_ENABLE_AGENTS === "1";
|
|
9066
9023
|
state.powerBrowseEnabled = options.powerBrowseEnabled || process.env.GH_ROUTER_ENABLE_POWER_BROWSE === "1";
|
|
@@ -9268,6 +9225,16 @@ const sharedServerArgs = {
|
|
|
9268
9225
|
"cloudagent-env": {
|
|
9269
9226
|
type: "string",
|
|
9270
9227
|
description: "Cloud Agent service environment: prod (default) or ppe. Naming one does NOT enable the group; it selects which service --cloudagent talks to, and which Entra audience the token is minted for. Falls back to GH_ROUTER_CLOUDAGENT_ENV."
|
|
9228
|
+
},
|
|
9229
|
+
workiq: {
|
|
9230
|
+
type: "boolean",
|
|
9231
|
+
default: false,
|
|
9232
|
+
description: "Expose the Work IQ MCP group (mcp__workiq__*): Microsoft 365 research over mail, files, chats, meetings and sites through the hosted Work IQ MCP service. Read-only by default (ask, retrieve, fetch, fetch_blob, agents, get_schema, search_paths, call_function). Because the calls run on the Work IQ service, they are billed through its Copilot Credits usage-based plan rather than GitHub Copilot premium requests. Nothing is enabled implicitly: sign in first with `github-router workiq auth`. GH_ROUTER_ENABLE_WORKIQ=1 is the env equivalent."
|
|
9233
|
+
},
|
|
9234
|
+
"workiq-write": {
|
|
9235
|
+
type: "boolean",
|
|
9236
|
+
default: false,
|
|
9237
|
+
description: "Also expose the four mutating Work IQ tools (create_entity, update_entity, delete_entity, do_action). Off by default and never implied by --workiq; a banner line marks the elevated session."
|
|
9271
9238
|
}
|
|
9272
9239
|
};
|
|
9273
9240
|
const allowedAccountTypes = /* @__PURE__ */ new Set([
|
|
@@ -9333,7 +9300,9 @@ function parseSharedArgs(args) {
|
|
|
9333
9300
|
kustoCluster: args["kusto-cluster"],
|
|
9334
9301
|
kustoDatabase: args["kusto-database"],
|
|
9335
9302
|
cloudAgentEnabled: args.cloudagent,
|
|
9336
|
-
cloudAgentEnvironment: args["cloudagent-env"]
|
|
9303
|
+
cloudAgentEnvironment: args["cloudagent-env"],
|
|
9304
|
+
workiqEnabled: args.workiq,
|
|
9305
|
+
workiqWriteEnabled: args["workiq-write"]
|
|
9337
9306
|
};
|
|
9338
9307
|
}
|
|
9339
9308
|
/**
|
|
@@ -9601,6 +9570,6 @@ function getPiLaunchEnvVars(mirrorDir) {
|
|
|
9601
9570
|
return vars;
|
|
9602
9571
|
}
|
|
9603
9572
|
//#endregion
|
|
9604
|
-
export {
|
|
9573
|
+
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 };
|
|
9605
9574
|
|
|
9606
|
-
//# sourceMappingURL=server-setup-
|
|
9575
|
+
//# sourceMappingURL=server-setup-rm8ELtYa.js.map
|