github-router 0.3.344 → 0.3.345
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/{aic-ledger-D4fmThbS.js → aic-ledger-D4oMcg7c.js} +24 -2
- package/dist/aic-ledger-D4oMcg7c.js.map +1 -0
- package/dist/{attribution-settings-BkhBJn_K.js → attribution-settings-B7i9EI_k.js} +4 -4
- package/dist/{attribution-settings-BkhBJn_K.js.map → attribution-settings-B7i9EI_k.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-CarqHLsD.js → claude-CqAnTpZv.js} +8 -8
- package/dist/{claude-CarqHLsD.js.map → claude-CqAnTpZv.js.map} +1 -1
- package/dist/{codex-AdG6FZIV.js → codex-DVTp1CuU.js} +4 -4
- package/dist/{codex-AdG6FZIV.js.map → codex-DVTp1CuU.js.map} +1 -1
- package/dist/{copilot-discount-yDaMQob0.js → copilot-discount-CilBhKQW.js} +2 -2
- package/dist/{copilot-discount-yDaMQob0.js.map → copilot-discount-CilBhKQW.js.map} +1 -1
- package/dist/engine-PexAztE4.js +2 -0
- package/dist/{gate-discovery-ByujYipc.js → gate-discovery-TC3k4dr1.js} +2 -2
- package/dist/{gate-discovery-ByujYipc.js.map → gate-discovery-TC3k4dr1.js.map} +1 -1
- package/dist/hooks.mjs +92 -0
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-aic-status-BmXhfpTS.js → internal-aic-status-CCvU7zhC.js} +3 -3
- package/dist/{internal-aic-status-BmXhfpTS.js.map → internal-aic-status-CCvU7zhC.js.map} +1 -1
- package/dist/{internal-stop-hook-DEMbF-hU.js → internal-stop-hook-BjdKy6On.js} +2 -2
- package/dist/{internal-stop-hook-DEMbF-hU.js.map → internal-stop-hook-BjdKy6On.js.map} +1 -1
- package/dist/main.js +7 -7
- package/dist/{peer-mcp-personas-CvqVopTx.js → peer-mcp-personas-CIV3aDP6.js} +12 -4
- package/dist/peer-mcp-personas-CIV3aDP6.js.map +1 -0
- package/dist/{pi-C8jxbK_2.js → pi-DJM02Mm2.js} +22 -11
- package/dist/{pi-C8jxbK_2.js.map → pi-DJM02Mm2.js.map} +1 -1
- package/dist/{provision-CJ3Zzs_Q.js → provision-J68elA3c.js} +2 -2
- package/dist/{provision-CJ3Zzs_Q.js.map → provision-J68elA3c.js.map} +1 -1
- package/dist/{serve-DQhAmfp2.js → serve-CCjPimSJ.js} +5 -5
- package/dist/{serve-DQhAmfp2.js.map → serve-CCjPimSJ.js.map} +1 -1
- package/dist/{server-setup-BBbpJRWv.js → server-setup-BO-kzlt0.js} +5 -4
- package/dist/server-setup-BO-kzlt0.js.map +1 -0
- package/dist/{start-C34seGtb.js → start-B_ikqtvL.js} +3 -3
- package/dist/{start-C34seGtb.js.map → start-B_ikqtvL.js.map} +1 -1
- package/package.json +1 -1
- package/dist/aic-ledger-D4fmThbS.js.map +0 -1
- package/dist/engine-gOzWnh6S.js +0 -2
- package/dist/peer-mcp-personas-CvqVopTx.js.map +0 -1
- package/dist/server-setup-BBbpJRWv.js.map +0 -1
|
@@ -3,13 +3,14 @@ import { t as getPackageVersion } from "./version-C8x2hQrZ.js";
|
|
|
3
3
|
import { t as PATHS } from "./paths-CpbTHKeP.js";
|
|
4
4
|
import { t as state } from "./state-CVp30CBF.js";
|
|
5
5
|
import { c as runCommandVoid, o as resolveExecutable, s as runCommandCapture } from "./exec-MCU1H-KZ.js";
|
|
6
|
-
import { B as runSelfUpdate, E as formatBalancedPrerequisiteFailure, I as validateCheapestProfilePrerequisites, M as resolveLaunchProfile, N as validateBalancedProfilePrerequisites, a as setupAndServe, c as startKeepAwake, f as enableFileLogging, i as parseSharedArgs, j as profileDescriptor, k as formatCheapestPrerequisiteFailure, l as stopKeepAwake, o as sharedServerArgs, r as getPiLaunchEnvVars, z as queueDetachedGlobalInstall } from "./server-setup-
|
|
6
|
+
import { B as runSelfUpdate, E as formatBalancedPrerequisiteFailure, I as validateCheapestProfilePrerequisites, M as resolveLaunchProfile, N as validateBalancedProfilePrerequisites, a as setupAndServe, c as startKeepAwake, f as enableFileLogging, i as parseSharedArgs, j as profileDescriptor, k as formatCheapestPrerequisiteFailure, l as stopKeepAwake, o as sharedServerArgs, r as getPiLaunchEnvVars, z as queueDetachedGlobalInstall } from "./server-setup-BO-kzlt0.js";
|
|
7
7
|
import { a as BALANCED_PROFILE_NATIVE_EFFORTS, c as BALANCED_PROFILE_ORACLE_MODEL, r as BALANCED_PROFILE_MODELS, s as BALANCED_PROFILE_ORACLE_EFFORT } from "./balanced-profile-contract-C6AgFJNp.js";
|
|
8
|
-
import { D as toolbeltEnabled, Gt as registerLaunch, In as CHEAPEST_PROFILE_NATIVE_EFFORTS, Kt as unregisterLaunch, Mn as CHEAPEST_PROFILE_ADVISOR_EFFORT, Nn as CHEAPEST_PROFILE_ADVISOR_MODEL, Pn as CHEAPEST_PROFILE_MODELS, Rn as CHEAPEST_PROFILE_ORACLE_EFFORT, an as provisionAndIndexColbert, ft as browserToolsEnabled, in as colbertDegradedWarning, nn as provisionBrowserAssets, zn as CHEAPEST_PROFILE_ORACLE_MODEL } from "./peer-mcp-personas-
|
|
8
|
+
import { D as toolbeltEnabled, Gt as registerLaunch, In as CHEAPEST_PROFILE_NATIVE_EFFORTS, Kt as unregisterLaunch, Mn as CHEAPEST_PROFILE_ADVISOR_EFFORT, Nn as CHEAPEST_PROFILE_ADVISOR_MODEL, Pn as CHEAPEST_PROFILE_MODELS, Rn as CHEAPEST_PROFILE_ORACLE_EFFORT, an as provisionAndIndexColbert, ft as browserToolsEnabled, in as colbertDegradedWarning, nn as provisionBrowserAssets, zn as CHEAPEST_PROFILE_ORACLE_MODEL } from "./peer-mcp-personas-CIV3aDP6.js";
|
|
9
9
|
import { r as resolveSelfInvocation } from "./self-invocation-DIUyoRgL.js";
|
|
10
|
-
import { i as launchChild, t as provisionToolbelt } from "./provision-
|
|
11
|
-
import { d as sweepStaleAicLedgerFiles, t as aicLedgerPath } from "./aic-ledger-
|
|
10
|
+
import { i as launchChild, t as provisionToolbelt } from "./provision-J68elA3c.js";
|
|
11
|
+
import { d as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath, u as removeAicLedgerFile } from "./aic-ledger-D4oMcg7c.js";
|
|
12
12
|
import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-YoDG20pq.js";
|
|
13
|
+
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-CilBhKQW.js";
|
|
13
14
|
import { defineCommand } from "citty";
|
|
14
15
|
import consola from "consola";
|
|
15
16
|
import { existsSync } from "node:fs";
|
|
@@ -2284,15 +2285,25 @@ const pi = defineCommand({
|
|
|
2284
2285
|
extraArgs,
|
|
2285
2286
|
model: lead,
|
|
2286
2287
|
serverUrl
|
|
2287
|
-
}, server, {
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2288
|
+
}, server, {
|
|
2289
|
+
onShutdown: async () => {
|
|
2290
|
+
unregisterLaunch(entry.launchId);
|
|
2291
|
+
await stopKeepAwake();
|
|
2292
|
+
await disposeBluebirdClients();
|
|
2293
|
+
await removeOwnPiAgentMirror();
|
|
2294
|
+
await removeAicLedgerFile();
|
|
2295
|
+
},
|
|
2296
|
+
onExitSummary: () => {
|
|
2297
|
+
const snapshot = aicSnapshot();
|
|
2298
|
+
if (snapshot.requests === 0 || snapshot.totalNanoAiu <= 0) return;
|
|
2299
|
+
const summary = formatAicExitSummary(snapshot, { verbose: consola.level >= 4 });
|
|
2300
|
+
const table = formatDiscountedCostTable(snapshot, discountedUsdForSnapshot(snapshot));
|
|
2301
|
+
return table ? `${summary}\n${table}` : summary;
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2293
2304
|
}
|
|
2294
2305
|
});
|
|
2295
2306
|
//#endregion
|
|
2296
2307
|
export { pi };
|
|
2297
2308
|
|
|
2298
|
-
//# sourceMappingURL=pi-
|
|
2309
|
+
//# sourceMappingURL=pi-DJM02Mm2.js.map
|