github-router 0.3.375 → 0.3.377
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-aRld02_r.js +1 -0
- package/dist/{attribution-settings-Cs6CsXK3.js → attribution-settings-CD0_yLqf.js} +5 -5
- package/dist/{attribution-settings-Cs6CsXK3.js.map → attribution-settings-CD0_yLqf.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-Q1yfHGGE.js → claude-Drda1tQL.js} +10 -10
- package/dist/{claude-Q1yfHGGE.js.map → claude-Drda1tQL.js.map} +1 -1
- package/dist/{claude-md-injection-DU5KYXNc.js → claude-md-injection-C0EQfdJo.js} +2 -2
- package/dist/{claude-md-injection-DU5KYXNc.js.map → claude-md-injection-C0EQfdJo.js.map} +1 -1
- package/dist/{codex-BuOUR6lB.js → codex-BloFb0Da.js} +6 -6
- package/dist/{codex-BuOUR6lB.js.map → codex-BloFb0Da.js.map} +1 -1
- package/dist/engine-CtUZAPuu.js +1 -0
- package/dist/{gate-discovery-DiXu_olc.js → gate-discovery-ByWG9xdK.js} +2 -2
- package/dist/{gate-discovery-DiXu_olc.js.map → gate-discovery-ByWG9xdK.js.map} +1 -1
- package/dist/{index-cmd-BPXhTfGQ.js → index-cmd-sKwchRJz.js} +2 -2
- package/dist/{index-cmd-BPXhTfGQ.js.map → index-cmd-sKwchRJz.js.map} +1 -1
- package/dist/{internal-stop-hook-VQuOYpUC.js → internal-stop-hook-BC5__bNI.js} +2 -2
- package/dist/{internal-stop-hook-VQuOYpUC.js.map → internal-stop-hook-BC5__bNI.js.map} +1 -1
- package/dist/main.js +7 -7
- package/dist/{peer-mcp-personas-Cv21q_YR.js → peer-mcp-personas-B1prNNMJ.js} +2 -2
- package/dist/{peer-mcp-personas-Cv21q_YR.js.map → peer-mcp-personas-B1prNNMJ.js.map} +1 -1
- package/dist/{pi-B5qq1G6b.js → pi-CzDdGipf.js} +29 -9
- package/dist/pi-CzDdGipf.js.map +1 -0
- package/dist/{provision-CRmtV6ew.js → provision-DktDm-f0.js} +3 -3
- package/dist/{provision-CRmtV6ew.js.map → provision-DktDm-f0.js.map} +1 -1
- package/dist/rerank-cross-encoder-B87lZgvc.js +110 -0
- package/dist/rerank-cross-encoder-B87lZgvc.js.map +1 -0
- package/dist/{serve-wl5FKum-.js → serve-CU3bV4e0.js} +7 -7
- package/dist/{serve-wl5FKum-.js.map → serve-CU3bV4e0.js.map} +1 -1
- package/dist/{server-setup-Ck_FRAEt.js → server-setup-DjHNoWhQ.js} +4 -4
- package/dist/{server-setup-Ck_FRAEt.js.map → server-setup-DjHNoWhQ.js.map} +1 -1
- package/dist/{service-backend-Ce6b2XEe.js → service-backend-Cdgz6WPx.js} +7 -6
- package/dist/service-backend-Cdgz6WPx.js.map +1 -0
- package/dist/{start-CsMY6_qY.js → start-RJ2tOdL-.js} +4 -4
- package/dist/{start-CsMY6_qY.js.map → start-RJ2tOdL-.js.map} +1 -1
- package/dist/{workiq-tools-7n2xXMrQ.js → workiq-tools-CQeCqmyX.js} +1 -1
- package/package.json +2 -5
- package/dist/ado-tools-BOW1k1KW.js +0 -1
- package/dist/engine-BC4TF4pt.js +0 -1
- package/dist/pi-B5qq1G6b.js.map +0 -1
- package/dist/service-backend-Ce6b2XEe.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-DjHNoWhQ.js";
|
|
2
2
|
import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-BKveu679.js";
|
|
3
3
|
import { d as removeAicLedgerFile, f as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath } from "./aic-ledger-CeSXqTEE.js";
|
|
4
4
|
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-CHNQLYDJ.js";
|
|
5
5
|
import { r as resolveSelfInvocation } from "./self-invocation-DMUnXVGT.js";
|
|
6
6
|
import { t as PATHS } from "./paths-CVEO8jEH.js";
|
|
7
|
-
import { t as FRESH_CONSULT_CONTRACT } from "./claude-md-injection-
|
|
8
|
-
import { Bn as colbertDegradedWarning, Bt as cloudAgentToolsEnabled, D as toolbeltEnabled, Dt as artifactToolsEnabled, Gn as LOCAL_CONSULT_REDACTION_NOTE, Mn as provisionBrowserAssets, Nt as browserToolsEnabled, Qt as kustoToolsEnabled, Sn as unregisterLaunch, Tt as adoToolsEnabled, Vn as provisionAndIndexColbert, Wn as LOCAL_CONSULT_REDACTION_LINE, bn as registerLaunch, fn as configureLocalEgress, jt as browseAgentEnabled, pn as localBaseUrl, sn as workiqToolsEnabled } from "./peer-mcp-personas-
|
|
7
|
+
import { t as FRESH_CONSULT_CONTRACT } from "./claude-md-injection-C0EQfdJo.js";
|
|
8
|
+
import { Bn as colbertDegradedWarning, Bt as cloudAgentToolsEnabled, D as toolbeltEnabled, Dt as artifactToolsEnabled, Gn as LOCAL_CONSULT_REDACTION_NOTE, Mn as provisionBrowserAssets, Nt as browserToolsEnabled, Qt as kustoToolsEnabled, Sn as unregisterLaunch, Tt as adoToolsEnabled, Vn as provisionAndIndexColbert, Wn as LOCAL_CONSULT_REDACTION_LINE, bn as registerLaunch, fn as configureLocalEgress, jt as browseAgentEnabled, pn as localBaseUrl, sn as workiqToolsEnabled } from "./peer-mcp-personas-B1prNNMJ.js";
|
|
9
9
|
import { C as localContractFor, O as LOCAL_PROFILE_TIER_MODELS, S as local2AdvisorContract, _ as isBalancedFamily, b as isLocalFamily, f as balancedContractFor, h as consultIsLocalTransport, p as cheapestContractFor, v as isCheapestFamily, y as isCheaplocalProfile } from "./static-context-pack-DwC69_VA.js";
|
|
10
|
-
import { i as launchChild, t as provisionToolbelt } from "./provision-
|
|
10
|
+
import { i as launchChild, t as provisionToolbelt } from "./provision-DktDm-f0.js";
|
|
11
11
|
import { t as state } from "./state-CCGDJ43X.js";
|
|
12
12
|
import { t as getPackageVersion } from "./version-CTqwKr26.js";
|
|
13
|
-
import { P as warmTreeSitterPool } from "./service-backend-
|
|
13
|
+
import { P as warmTreeSitterPool } from "./service-backend-Cdgz6WPx.js";
|
|
14
14
|
import { defineCommand } from "citty";
|
|
15
15
|
import consola from "consola";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
@@ -490,6 +490,22 @@ const PI_MIN_VERSION_NOTE = `Requires Pi >= ${PI_MIN_VERSION} and Node >= 22.19.
|
|
|
490
490
|
* digest for keywords.
|
|
491
491
|
*/
|
|
492
492
|
const PI_TOOL_PREFERENCE_LINE = "- Use the dedicated tools where they fit — read/write/edit for files and grep/find/ls for search — instead of shelling out to cat, sed, or python; but reach for rg, jq, ast-grep, git, and the build/test commands whenever those are the better tool for the job.";
|
|
493
|
+
/**
|
|
494
|
+
* The search-order steer, emitted only when this launch serves `code`.
|
|
495
|
+
*
|
|
496
|
+
* The tool's own description already says semantic-first with a labelled
|
|
497
|
+
* lexical fallback, but a description is read once at roster time and the
|
|
498
|
+
* model still reaches for `grep` first on exact strings. This sentence is the
|
|
499
|
+
* ordering, stated where it is read every turn: narrow by meaning first,
|
|
500
|
+
* because a semantic hit set is ranked and small, then fall back to
|
|
501
|
+
* `rg`/`grep` for what meaning cannot answer — every occurrence, a literal
|
|
502
|
+
* token, a regex, a filename.
|
|
503
|
+
*
|
|
504
|
+
* Only emitted when the launch actually serves the tool (`surfaces.codeSearch`,
|
|
505
|
+
* i.e. `--search` or Bluebird). Naming a tool that is not in the roster is the
|
|
506
|
+
* failure mode the digest exists to avoid.
|
|
507
|
+
*/
|
|
508
|
+
const PI_SEARCH_ORDER_LINE = "- When code search is available, narrow with semantic `code` search first — it ranks by meaning and returns a small relevant set — then reach for rg/grep for what meaning cannot answer: every occurrence, an exact token, a regex, or a filename.";
|
|
493
509
|
function piCopilotContractFor(profileId) {
|
|
494
510
|
return isCheapestFamily(profileId) ? cheapestContractFor(profileId) : balancedContractFor(profileId);
|
|
495
511
|
}
|
|
@@ -1408,7 +1424,8 @@ function buildPiAppendSystem(profileId, opts = {}) {
|
|
|
1408
1424
|
`# gh-router ${profileId} mode`,
|
|
1409
1425
|
"",
|
|
1410
1426
|
`- Lead owns planning directly; there is no Plan subagent.`,
|
|
1411
|
-
PI_TOOL_PREFERENCE_LINE
|
|
1427
|
+
PI_TOOL_PREFERENCE_LINE,
|
|
1428
|
+
...opts.codeSearch === true ? [PI_SEARCH_ORDER_LINE] : []
|
|
1412
1429
|
];
|
|
1413
1430
|
if (peers) {
|
|
1414
1431
|
const oracle = piOracleEnabled(profileId);
|
|
@@ -3437,7 +3454,10 @@ const pi = defineCommand({
|
|
|
3437
3454
|
swe: sweEnabled,
|
|
3438
3455
|
peers: peersEnabled
|
|
3439
3456
|
})) await writeTextFile(path.join(mirror, "prompts", `${prompt.name}.md`), prompt.content);
|
|
3440
|
-
await writeTextFile(path.join(mirror, "APPEND_SYSTEM.md"), buildPiAppendSystem(profileId, {
|
|
3457
|
+
await writeTextFile(path.join(mirror, "APPEND_SYSTEM.md"), buildPiAppendSystem(profileId, {
|
|
3458
|
+
peers: peersEnabled,
|
|
3459
|
+
codeSearch: surfaces.codeSearch
|
|
3460
|
+
}));
|
|
3441
3461
|
try {
|
|
3442
3462
|
const collected = globalThis.__ghRouterBridgeCollected;
|
|
3443
3463
|
if (collected) {
|
|
@@ -3523,7 +3543,7 @@ const pi = defineCommand({
|
|
|
3523
3543
|
})}\n`);
|
|
3524
3544
|
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");
|
|
3525
3545
|
const { disposeBluebirdClients } = await import("./bluebird-client-BvoMTmEv.js");
|
|
3526
|
-
const { disposeAdoClients } = await import("./ado-tools-
|
|
3546
|
+
const { disposeAdoClients } = await import("./ado-tools-aRld02_r.js");
|
|
3527
3547
|
launchChild({
|
|
3528
3548
|
kind: "pi",
|
|
3529
3549
|
envVars: {
|
|
@@ -3560,4 +3580,4 @@ const pi = defineCommand({
|
|
|
3560
3580
|
});
|
|
3561
3581
|
export { pi };
|
|
3562
3582
|
|
|
3563
|
-
//# sourceMappingURL=pi-
|
|
3583
|
+
//# sourceMappingURL=pi-CzDdGipf.js.map
|