github-router 0.3.367 → 0.3.369
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-C0sY_rX1.js +1 -0
- package/dist/{attribution-settings-wVzQvIdL.js → attribution-settings-zoBxw08y.js} +223 -191
- package/dist/attribution-settings-zoBxw08y.js.map +1 -0
- 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/browser-ext/manifest.json +1 -1
- package/dist/{claude-B3pIageM.js → claude-BbIfnWbm.js} +15 -13
- package/dist/claude-BbIfnWbm.js.map +1 -0
- package/dist/{claude-md-injection-BV4tPUWo.js → claude-md-injection-BtBG1RBZ.js} +36 -11
- package/dist/claude-md-injection-BtBG1RBZ.js.map +1 -0
- package/dist/{codex-B_AMB6JM.js → codex-CZVlP2tB.js} +5 -5
- package/dist/{codex-B_AMB6JM.js.map → codex-CZVlP2tB.js.map} +1 -1
- package/dist/engine-DeIo-VIR.js +1 -0
- package/dist/{gate-discovery-CXE-7VcM.js → gate-discovery-BYyYeUnn.js} +2 -2
- package/dist/{gate-discovery-CXE-7VcM.js.map → gate-discovery-BYyYeUnn.js.map} +1 -1
- package/dist/hooks.mjs +72 -10
- package/dist/hooks.sha256 +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-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-BbyobGUU.js} +2 -2
- package/dist/{internal-stop-hook-B2TTl6Zp.js.map → internal-stop-hook-BbyobGUU.js.map} +1 -1
- package/dist/main.js +9 -9
- package/dist/{peer-mcp-personas-BOgR46nM.js → peer-mcp-personas-DNtWI2C1.js} +721 -330
- package/dist/peer-mcp-personas-DNtWI2C1.js.map +1 -0
- package/dist/{pi-DcWp83mx.js → pi-Bc-MVgAo.js} +31 -12
- package/dist/{pi-DcWp83mx.js.map → pi-Bc-MVgAo.js.map} +1 -1
- package/dist/{provision-DkWR9B6I.js → provision-DUWdcY_a.js} +2 -2
- package/dist/{provision-DkWR9B6I.js.map → provision-DUWdcY_a.js.map} +1 -1
- package/dist/{serve-BGwEVDdc.js → serve-CmWOTR7m.js} +7 -7
- package/dist/{serve-BGwEVDdc.js.map → serve-CmWOTR7m.js.map} +1 -1
- package/dist/{server-setup-DVPL9iph.js → server-setup-CIzmDJzT.js} +55 -121
- package/dist/server-setup-CIzmDJzT.js.map +1 -0
- package/dist/{start-BUWx3nSr.js → start-rlpaeAtx.js} +3 -3
- package/dist/{start-BUWx3nSr.js.map → start-rlpaeAtx.js.map} +1 -1
- package/dist/state-CiwCLVDZ.js.map +1 -1
- 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/package.json +1 -1
- package/dist/ado-tools-rysFZDws.js +0 -1
- package/dist/attribution-settings-wVzQvIdL.js.map +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/server-setup-DVPL9iph.js.map +0 -1
- package/dist/static-context-pack-ChHuxBpk.js.map +0 -1
|
@@ -2,13 +2,13 @@ import { P as warmTreeSitterPool } from "./service-backend-B6D_DY1Z.js";
|
|
|
2
2
|
import { t as getPackageVersion } from "./version-C8x2hQrZ.js";
|
|
3
3
|
import { t as PATHS } from "./paths-C5477RGC.js";
|
|
4
4
|
import { t as state } from "./state-CiwCLVDZ.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { H as profileDescriptor, I as formatBalancedPrerequisiteFailure, S as enableFileLogging, U as resolveLaunchProfile, V as formatLocalPrerequisiteFailure, W as validateBalancedProfilePrerequisites, Y as validateLocalProfilePrerequisites, Z as runSelfUpdate, _ as sweepStalePiAgentMirrors, a as setupAndServe, c as PI_MIN_VERSION, d as meetsPiMinVersion, f as refreshPiInBackground, g as removeOwnPiAgentMirror, h as ensurePiAgentMirror, i as parseSharedArgs, l as ensurePiInstalled, m as updatePi, o as sharedServerArgs, p as resolvePiRegistry, q as validateCheapestProfilePrerequisites, r as getPiLaunchEnvVars, s as LAUNCH_SECRET_HEADER, u as getInstalledPiVersion, v as startKeepAwake, y as stopKeepAwake, z as formatCheapestPrerequisiteFailure } from "./server-setup-CIzmDJzT.js";
|
|
6
|
+
import { Ct as browseAgentEnabled, D as toolbeltEnabled, Mn as provisionAndIndexColbert, Mt as cloudAgentToolsEnabled, Tn as provisionBrowserAssets, Tt as browserToolsEnabled, Wt as kustoToolsEnabled, _t as adoToolsEnabled, dn as registerLaunch, in as localBaseUrl, jn as colbertDegradedWarning, pn as unregisterLaunch, rn as configureLocalEgress, yt as artifactToolsEnabled } from "./peer-mcp-personas-DNtWI2C1.js";
|
|
7
|
+
import { D as LOCAL_PROFILE_TIER_MODELS, S as localContractFor, _ as isCheapestFamily, f as balancedContractFor, g as isBalancedFamily, p as cheapestContractFor, v as isCheaplocalProfile, x as local2AdvisorContract, y as isLocalFamily } from "./static-context-pack-DvwLWlbe.js";
|
|
8
8
|
import { r as resolveSelfInvocation } from "./self-invocation-BtcGj-lY.js";
|
|
9
|
-
import { i as launchChild, t as provisionToolbelt } from "./provision-
|
|
9
|
+
import { i as launchChild, t as provisionToolbelt } from "./provision-DUWdcY_a.js";
|
|
10
10
|
import { d as removeAicLedgerFile, f as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath } from "./aic-ledger-_mvGW2Ev.js";
|
|
11
|
-
import { t as FRESH_CONSULT_CONTRACT } from "./claude-md-injection-
|
|
11
|
+
import { t as FRESH_CONSULT_CONTRACT } from "./claude-md-injection-BtBG1RBZ.js";
|
|
12
12
|
import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-B5EMMSFC.js";
|
|
13
13
|
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-BuDbQOHq.js";
|
|
14
14
|
import { defineCommand } from "citty";
|
|
@@ -1836,6 +1836,17 @@ const PI_MCP_NONCE_PLACEHOLDER = "Bearer ${GH_ROUTER_HOOK_NONCE}";
|
|
|
1836
1836
|
*/
|
|
1837
1837
|
const PI_MCP_WORKSPACE_PLACEHOLDER = "${GH_ROUTER_WORKSPACE}";
|
|
1838
1838
|
/**
|
|
1839
|
+
* Header carrying the launch's conversation id on the MCP connection.
|
|
1840
|
+
*
|
|
1841
|
+
* Pi's MCP client, like Claude Code's, sends no conversation header, and a
|
|
1842
|
+
* `cheaplocal` Oracle call has nothing else to key the local endpoint's
|
|
1843
|
+
* prompt-cache routing on. `cheaplocal` is the only profile that reads it, so
|
|
1844
|
+
* on every other Pi launch the value is inert; writing it unconditionally
|
|
1845
|
+
* keeps the entry shape uniform rather than making one profile's config look
|
|
1846
|
+
* different for a header nobody else consumes.
|
|
1847
|
+
*/
|
|
1848
|
+
const PI_MCP_SESSION_ID_HEADER = "x-claude-code-session-id";
|
|
1849
|
+
/**
|
|
1839
1850
|
* Deferred, not direct.
|
|
1840
1851
|
*
|
|
1841
1852
|
* `deferred` keeps the tools out of the declared tool set until `tool_search`
|
|
@@ -2014,16 +2025,19 @@ async function writePiMcpJson(opts) {
|
|
|
2014
2025
|
}
|
|
2015
2026
|
const added = [];
|
|
2016
2027
|
const nextServers = { ...existingServers };
|
|
2028
|
+
const sessionId = opts.sessionId?.trim();
|
|
2017
2029
|
for (const group of opts.groups) {
|
|
2018
2030
|
const key = piMcpServerKey(group.group);
|
|
2019
2031
|
added.push(key);
|
|
2032
|
+
const headers = {
|
|
2033
|
+
Authorization: PI_MCP_NONCE_PLACEHOLDER,
|
|
2034
|
+
"X-GH-Workspace": PI_MCP_WORKSPACE_PLACEHOLDER
|
|
2035
|
+
};
|
|
2036
|
+
if (sessionId !== void 0 && sessionId.length > 0) headers[PI_MCP_SESSION_ID_HEADER] = sessionId;
|
|
2020
2037
|
nextServers[key] = {
|
|
2021
2038
|
type: "http",
|
|
2022
2039
|
url: `${opts.serverUrl}/mcp/${group.group}`,
|
|
2023
|
-
headers
|
|
2024
|
-
Authorization: PI_MCP_NONCE_PLACEHOLDER,
|
|
2025
|
-
"X-GH-Workspace": PI_MCP_WORKSPACE_PLACEHOLDER
|
|
2026
|
-
},
|
|
2040
|
+
headers,
|
|
2027
2041
|
exposure: PI_MCP_EXPOSURE,
|
|
2028
2042
|
description: group.description
|
|
2029
2043
|
};
|
|
@@ -2181,6 +2195,10 @@ const pi = defineCommand({
|
|
|
2181
2195
|
}
|
|
2182
2196
|
const parsed = parseSharedArgs(args);
|
|
2183
2197
|
const launchProfileId = resolveLaunchProfile(args.model);
|
|
2198
|
+
if (isCheaplocalProfile(launchProfileId)) {
|
|
2199
|
+
process$1.stderr.write("github-router pi does not support -m cheaplocal: Pi's model settings bind one provider per profile, and cheaplocal's Advisor and Oracle are served by the local endpoint. Use -m cheapest or -m cheapest2 on Pi, or run `github-router claude -m cheaplocal`.\n");
|
|
2200
|
+
process$1.exit(1);
|
|
2201
|
+
}
|
|
2184
2202
|
if (!isCheapestFamily(launchProfileId) && !isBalancedFamily(launchProfileId) && !isLocalFamily(launchProfileId)) {
|
|
2185
2203
|
process$1.stderr.write(`github-router pi supports only -m cheapest, -m cheapest2, -m balanced, -m balanced2, -m local, and -m local2 (got ${JSON.stringify(args.model ?? "")}).\n`);
|
|
2186
2204
|
process$1.exit(1);
|
|
@@ -2385,7 +2403,8 @@ const pi = defineCommand({
|
|
|
2385
2403
|
mirrorDir: mirror,
|
|
2386
2404
|
workspace: process$1.cwd(),
|
|
2387
2405
|
serverUrl,
|
|
2388
|
-
groups: surfaces.groups
|
|
2406
|
+
groups: surfaces.groups,
|
|
2407
|
+
sessionId: state.sessionId
|
|
2389
2408
|
});
|
|
2390
2409
|
if (written.skippedReason) consola.warn(`Pi MCP: left ${written.path} alone (${written.skippedReason}); the scoped groups are not exposed to Pi this launch.`);
|
|
2391
2410
|
else for (const { key, file } of written.shadowed) consola.warn(`Pi MCP: ${file} declares "${key}" and outranks the mirror copy, so the router's version is not the one Pi will run. Rename that entry to keep both.`);
|
|
@@ -2491,7 +2510,7 @@ const pi = defineCommand({
|
|
|
2491
2510
|
})}\n`);
|
|
2492
2511
|
if (sweEnabled && !peersEnabled) process$1.stderr.write("Note: --swe without --peers emits no delegate/review skills or prompts (no agents behind them in a peerless launch).\n");
|
|
2493
2512
|
const { disposeBluebirdClients } = await import("./bluebird-client-DGE3WZqh.js");
|
|
2494
|
-
const { disposeAdoClients } = await import("./ado-tools-
|
|
2513
|
+
const { disposeAdoClients } = await import("./ado-tools-C0sY_rX1.js");
|
|
2495
2514
|
launchChild({
|
|
2496
2515
|
kind: "pi",
|
|
2497
2516
|
envVars: {
|
|
@@ -2529,4 +2548,4 @@ const pi = defineCommand({
|
|
|
2529
2548
|
//#endregion
|
|
2530
2549
|
export { pi };
|
|
2531
2550
|
|
|
2532
|
-
//# sourceMappingURL=pi-
|
|
2551
|
+
//# sourceMappingURL=pi-Bc-MVgAo.js.map
|