github-router 0.3.381 → 0.3.383
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/README.md +6 -0
- package/dist/ado-tools-Ddv910Zl.js +1 -0
- package/dist/{aic-ledger-6GKI28nY.js → aic-ledger-Bz87EuHl.js} +3 -3
- package/dist/{aic-ledger-6GKI28nY.js.map → aic-ledger-Bz87EuHl.js.map} +1 -1
- package/dist/{aic-statusline-settings-wLL1l_Z6.js → aic-statusline-settings-dkVZbpRL.js} +2 -2
- package/dist/{aic-statusline-settings-wLL1l_Z6.js.map → aic-statusline-settings-dkVZbpRL.js.map} +1 -1
- package/dist/{attribution-settings-BEwSkdhK.js → attribution-settings-BcPiSoZe.js} +27 -30
- package/dist/{attribution-settings-BEwSkdhK.js.map → attribution-settings-BcPiSoZe.js.map} +1 -1
- package/dist/{auth-5TKcQbbH.js → auth-D9eTY_W6.js} +3 -3
- package/dist/{auth-5TKcQbbH.js.map → auth-D9eTY_W6.js.map} +1 -1
- package/dist/bin.js +21 -4
- package/dist/bin.js.map +1 -1
- package/dist/bluebird-client-CLXs7q-X.js +1 -0
- package/dist/{bluebird-client-BasIdv5J.js → bluebird-client-bykMZyn1.js} +2 -2
- package/dist/{bluebird-client-BasIdv5J.js.map → bluebird-client-bykMZyn1.js.map} +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{check-usage-DM39fdel.js → check-usage-BBaD35u4.js} +4 -4
- package/dist/{check-usage-DM39fdel.js.map → check-usage-BBaD35u4.js.map} +1 -1
- package/dist/{claude-CkrhHkPQ.js → claude-DOKuv2zZ.js} +29 -29
- package/dist/{claude-CkrhHkPQ.js.map → claude-DOKuv2zZ.js.map} +1 -1
- package/dist/{claude-md-injection-DNMDcw1W.js → claude-md-injection-BadtN0-I.js} +17 -8
- package/dist/claude-md-injection-BadtN0-I.js.map +1 -0
- package/dist/{codex-50GzveCD.js → codex-Dw_eBfXW.js} +9 -9
- package/dist/{codex-50GzveCD.js.map → codex-Dw_eBfXW.js.map} +1 -1
- package/dist/{copilot-discount-DM98PuAF.js → copilot-discount-BSDefQRW.js} +2 -2
- package/dist/{copilot-discount-DM98PuAF.js.map → copilot-discount-BSDefQRW.js.map} +1 -1
- package/dist/{debug-Df0Kuzi3.js → debug-B8eRYH-c.js} +2 -2
- package/dist/{debug-Df0Kuzi3.js.map → debug-B8eRYH-c.js.map} +1 -1
- package/dist/engine-DPtLOUuj.js +1 -0
- package/dist/{exec-BC0MAnoA.js → exec-oCtz_dXO.js} +22 -5
- package/dist/exec-oCtz_dXO.js.map +1 -0
- package/dist/{gate-discovery-2ILpM2fi.js → gate-discovery-DE_KTX2p.js} +6 -6
- package/dist/{gate-discovery-2ILpM2fi.js.map → gate-discovery-DE_KTX2p.js.map} +1 -1
- package/dist/{get-copilot-usage-BZ6t2hFZ.js → get-copilot-usage-Dh9u7WeP.js} +2 -2
- package/dist/{get-copilot-usage-BZ6t2hFZ.js.map → get-copilot-usage-Dh9u7WeP.js.map} +1 -1
- package/dist/hooks.mjs +21 -4
- package/dist/hooks.sha256 +1 -1
- package/dist/{index-cmd-DsK6VFs8.js → index-cmd-C4womtOS.js} +5 -5
- package/dist/{index-cmd-DsK6VFs8.js.map → index-cmd-C4womtOS.js.map} +1 -1
- package/dist/{internal-aic-status-CUZ7-trf.js → internal-aic-status-DSO2sR5u.js} +4 -4
- package/dist/{internal-aic-status-CUZ7-trf.js.map → internal-aic-status-DSO2sR5u.js.map} +1 -1
- package/dist/{internal-artifact-open-DRBg1PpV.js → internal-artifact-open-dlgqWieq.js} +2 -2
- package/dist/{internal-artifact-open-DRBg1PpV.js.map → internal-artifact-open-dlgqWieq.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-ZeS9u0A3.js → internal-fast-dispatch-guard-5nCNht5y.js} +2 -2
- package/dist/{internal-fast-dispatch-guard-ZeS9u0A3.js.map → internal-fast-dispatch-guard-5nCNht5y.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-D6-Ees_6.js → internal-fast-dispatch-guard-DHm96Bj_.js} +1 -1
- package/dist/{internal-first-mate-guard-DsEEsLKJ.js → internal-first-mate-guard-Bb9Stjy-.js} +3 -3
- package/dist/{internal-first-mate-guard-DsEEsLKJ.js.map → internal-first-mate-guard-Bb9Stjy-.js.map} +1 -1
- package/dist/{internal-first-mate-guard-BijeVpi9.js → internal-first-mate-guard-D6HMd9Iz.js} +1 -1
- package/dist/{internal-max-dispatch-guard-4RLca1i5.js → internal-max-dispatch-guard-C8kq4WNV.js} +3 -3
- package/dist/{internal-max-dispatch-guard-4RLca1i5.js.map → internal-max-dispatch-guard-C8kq4WNV.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-DeEfWqfP.js → internal-max-dispatch-guard-CI17mrDJ.js} +1 -1
- package/dist/{internal-plan-review-bzqGNdtw.js → internal-plan-review-Bdga9wVP.js} +3 -3
- package/dist/{internal-plan-review-bzqGNdtw.js.map → internal-plan-review-Bdga9wVP.js.map} +1 -1
- package/dist/{internal-prompt-submit-ZBhH-SQ1.js → internal-prompt-submit-DKlHlcvK.js} +2 -2
- package/dist/{internal-prompt-submit-BZ2-CExM.js → internal-prompt-submit-Daswp8ro.js} +5 -5
- package/dist/{internal-prompt-submit-BZ2-CExM.js.map → internal-prompt-submit-Daswp8ro.js.map} +1 -1
- package/dist/{internal-rebrief-BIWbN7Sr.js → internal-rebrief-D8O1J-_J.js} +5 -5
- package/dist/{internal-rebrief-BIWbN7Sr.js.map → internal-rebrief-D8O1J-_J.js.map} +1 -1
- package/dist/{internal-session-bind-BL6hFRLO.js → internal-session-bind-0hQFrcWu.js} +2 -2
- package/dist/{internal-session-bind-BL6hFRLO.js.map → internal-session-bind-0hQFrcWu.js.map} +1 -1
- package/dist/{internal-stop-hook-cDF1MuJZ.js → internal-stop-hook-C3lLh-HY.js} +6 -6
- package/dist/{internal-stop-hook-cDF1MuJZ.js.map → internal-stop-hook-C3lLh-HY.js.map} +1 -1
- package/dist/{internal-stop-review-y8zjpK_3.js → internal-stop-review-Bnmzcqx5.js} +2 -2
- package/dist/{internal-stop-review-y8zjpK_3.js.map → internal-stop-review-Bnmzcqx5.js.map} +1 -1
- package/dist/{internal-worker-guard-DdyYBZR0.js → internal-worker-guard-LcPxDlbx.js} +2 -2
- package/dist/{internal-worker-guard-DdyYBZR0.js.map → internal-worker-guard-LcPxDlbx.js.map} +1 -1
- package/dist/{internal-workspace-header-BMKbO8yX.js → internal-workspace-header-BH53hBXO.js} +2 -2
- package/dist/{internal-workspace-header-BMKbO8yX.js.map → internal-workspace-header-BH53hBXO.js.map} +1 -1
- package/dist/{lifecycle-COZhARmE.js → lifecycle-BmoqtVj3.js} +2 -2
- package/dist/{lifecycle-COZhARmE.js.map → lifecycle-BmoqtVj3.js.map} +1 -1
- package/dist/lifecycle-CcNNfKbr.js +1 -0
- package/dist/lifecycle-CrImfxCd.js +1 -0
- package/dist/{lifecycle-BlC_kzNt.js → lifecycle-CwxOsp-U.js} +3 -3
- package/dist/{lifecycle-BlC_kzNt.js.map → lifecycle-CwxOsp-U.js.map} +1 -1
- package/dist/main.js +25 -25
- package/dist/{max-profile-contract-DbHwiLTx.js → max-profile-contract-CEn8hKb3.js} +60 -60
- package/dist/{max-profile-contract-DbHwiLTx.js.map → max-profile-contract-CEn8hKb3.js.map} +1 -1
- package/dist/{mcp-workspace-header-Bpa4BId8.js → mcp-workspace-header-lb7GV78v.js} +2 -2
- package/dist/{mcp-workspace-header-Bpa4BId8.js.map → mcp-workspace-header-lb7GV78v.js.map} +1 -1
- package/dist/{models-BDV-YLf2.js → models-BTCnhBCQ.js} +3 -3
- package/dist/{models-BDV-YLf2.js.map → models-BTCnhBCQ.js.map} +1 -1
- package/dist/{optional-DGAeyguL.js → optional-LUQJI6Vx.js} +216 -16
- package/dist/optional-LUQJI6Vx.js.map +1 -0
- package/dist/{orchestration-Bto5Nc1Y.js → orchestration-C_hyBL90.js} +3 -3
- package/dist/{orchestration-Bto5Nc1Y.js.map → orchestration-C_hyBL90.js.map} +1 -1
- package/dist/origin-9bOjyzvK.js +1 -0
- package/dist/{origin-BXtpcKP9.js → origin-B6GChVyp.js} +2 -2
- package/dist/{origin-BXtpcKP9.js.map → origin-B6GChVyp.js.map} +1 -1
- package/dist/{paths-DeFmYJhO.js → paths-CVXqt2tC.js} +3 -3
- package/dist/{paths-DeFmYJhO.js.map → paths-CVXqt2tC.js.map} +1 -1
- package/dist/paths-JIusmD6L.js +1 -0
- package/dist/{peer-mcp-personas-Dny0r5Am.js → peer-mcp-personas-Dgog_ZJ8.js} +54 -54
- package/dist/{peer-mcp-personas-Dny0r5Am.js.map → peer-mcp-personas-Dgog_ZJ8.js.map} +1 -1
- package/dist/{pi-DVud9eQn.js → pi-BZhnf1kx.js} +95 -35
- package/dist/pi-BZhnf1kx.js.map +1 -0
- package/dist/{pi-version-check-BeBB0Ny9.js → pi-version-check-BRt9XFLj.js} +4 -4
- package/dist/{pi-version-check-BeBB0Ny9.js.map → pi-version-check-BRt9XFLj.js.map} +1 -1
- package/dist/pi-version-check-SH1X9u4H.js +1 -0
- package/dist/{plan-review-hook-D_yyjOgO.js → plan-review-hook-Dx3suYmK.js} +4 -4
- package/dist/{plan-review-hook-D_yyjOgO.js.map → plan-review-hook-Dx3suYmK.js.map} +1 -1
- package/dist/{provision-BWtuDq_v.js → provision-A1YSravb.js} +6 -6
- package/dist/{provision-BWtuDq_v.js.map → provision-A1YSravb.js.map} +1 -1
- package/dist/{rerank-cross-encoder-BhjImuwG.js → rerank-cross-encoder-uqRu-LOe.js} +2 -2
- package/dist/{rerank-cross-encoder-BhjImuwG.js.map → rerank-cross-encoder-uqRu-LOe.js.map} +1 -1
- package/dist/{self-invocation-Dnq4iVD6.js → self-invocation-CayD3y72.js} +2 -2
- package/dist/{self-invocation-Dnq4iVD6.js.map → self-invocation-CayD3y72.js.map} +1 -1
- package/dist/{serve-B8Igr9Q0.js → serve-Cv3S3PFR.js} +17 -17
- package/dist/{serve-B8Igr9Q0.js.map → serve-Cv3S3PFR.js.map} +1 -1
- package/dist/{server-setup-byIhjgOb.js → server-setup--CYeBD-Z.js} +14 -14
- package/dist/{server-setup-byIhjgOb.js.map → server-setup--CYeBD-Z.js.map} +1 -1
- package/dist/{service-backend-BdhWVRSz.js → service-backend-EgwiO_K-.js} +6 -6
- package/dist/{service-backend-BdhWVRSz.js.map → service-backend-EgwiO_K-.js.map} +1 -1
- package/dist/{start-7CiQIl0r.js → start-CA0JsO56.js} +5 -5
- package/dist/{start-7CiQIl0r.js.map → start-CA0JsO56.js.map} +1 -1
- package/dist/{static-context-pack-BKFelEbM.js → static-context-pack-BIru_SKh.js} +142 -142
- package/dist/{static-context-pack-BKFelEbM.js.map → static-context-pack-BIru_SKh.js.map} +1 -1
- package/dist/{stop-gate-hook-DBOj0TqL.js → stop-gate-hook-Ba_RvZAj.js} +4 -4
- package/dist/{stop-gate-hook-DBOj0TqL.js.map → stop-gate-hook-Ba_RvZAj.js.map} +1 -1
- package/dist/{stop-gate-policy-Bp2wGh_W.js → stop-gate-policy-gW0a0hds.js} +3 -3
- package/dist/{stop-gate-policy-Bp2wGh_W.js.map → stop-gate-policy-gW0a0hds.js.map} +1 -1
- package/dist/{token-Ygd7D32L.js → token-BCzbNu8O.js} +3 -3
- package/dist/{token-Ygd7D32L.js.map → token-BCzbNu8O.js.map} +1 -1
- package/dist/{token-CKPOBdO0.js → token-CxKcs3I_.js} +2 -2
- package/dist/{token-CKPOBdO0.js.map → token-CxKcs3I_.js.map} +1 -1
- package/dist/{update-T1L7yFon.js → update-CM1yUCJR.js} +4 -4
- package/dist/{update-T1L7yFon.js.map → update-CM1yUCJR.js.map} +1 -1
- package/dist/update-Cpg-tbJG.js +1 -0
- package/dist/{update-fEgWTrIx.js → update-ZqCRVU0a.js} +4 -4
- package/dist/{update-fEgWTrIx.js.map → update-ZqCRVU0a.js.map} +1 -1
- package/dist/{worker-dispatch-DBWKTMda.js → worker-dispatch-DHZAfPO2.js} +2 -2
- package/dist/{worker-dispatch-DBWKTMda.js.map → worker-dispatch-DHZAfPO2.js.map} +1 -1
- package/dist/{workiq-D5b7xlbr.js → workiq-CRBVCUA4.js} +2 -2
- package/dist/{workiq-D5b7xlbr.js.map → workiq-CRBVCUA4.js.map} +1 -1
- package/dist/{workiq-tools-DdiQ2DOW.js → workiq-tools-BsoHfdYi.js} +1 -1
- package/package.json +1 -1
- package/dist/ado-tools-CsfbnY8x.js +0 -1
- package/dist/bluebird-client-BvoMTmEv.js +0 -1
- package/dist/claude-md-injection-DNMDcw1W.js.map +0 -1
- package/dist/engine-B6la_uIW.js +0 -1
- package/dist/exec-BC0MAnoA.js.map +0 -1
- package/dist/lifecycle-BOjgq9_l.js +0 -1
- package/dist/lifecycle-NQvr4flt.js +0 -1
- package/dist/optional-DGAeyguL.js.map +0 -1
- package/dist/origin-DbFUCiGp.js +0 -1
- package/dist/paths-CquOjytP.js +0 -1
- package/dist/pi-DVud9eQn.js.map +0 -1
- package/dist/pi-version-check-D5RvdLsG.js +0 -1
- package/dist/update-CB21YRKz.js +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as refreshPiInBackground, l as resolvePiRegistry, n as PI_MIN_VERSION, o as meetsPiMinVersion, u as runSelfUpdate } from "./pi-version-check-
|
|
2
|
-
import { c as runCommandCapture, s as resolveExecutable } from "./exec-
|
|
3
|
-
import { d as readPointer, l as isOurShim, o as scheduleBackgroundPiInstall, u as ensureManagedInstall } from "./update-
|
|
1
|
+
import { c as refreshPiInBackground, l as resolvePiRegistry, n as PI_MIN_VERSION, o as meetsPiMinVersion, u as runSelfUpdate } from "./pi-version-check-BRt9XFLj.js";
|
|
2
|
+
import { c as runCommandCapture, s as resolveExecutable } from "./exec-oCtz_dXO.js";
|
|
3
|
+
import { d as readPointer, l as isOurShim, o as scheduleBackgroundPiInstall, u as ensureManagedInstall } from "./update-CM1yUCJR.js";
|
|
4
4
|
import { b as versionDir } from "./paths-DK_b2ihK.js";
|
|
5
|
-
import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-
|
|
6
|
-
import { d as removeAicLedgerFile, f as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath } from "./aic-ledger-
|
|
7
|
-
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-
|
|
8
|
-
import { r as resolveSelfInvocation } from "./self-invocation-
|
|
9
|
-
import { H as validateCheapestProfilePrerequisites, I as formatLocalPrerequisiteFailure, L as profileDescriptor, P as formatCheapestPrerequisiteFailure, R as resolveLaunchProfile, W as validateLocalProfilePrerequisites, _ as enableFileLogging, a as setupAndServe, c as ensurePiAgentMirror, d as seedPiPackageCache, f as sweepStalePiPackageCaches, i as parseSharedArgs, j as formatBalancedPrerequisiteFailure, l as removeOwnPiAgentMirror, m as stopKeepAwake, o as sharedServerArgs, p as startKeepAwake, r as getPiLaunchEnvVars, s as LAUNCH_SECRET_HEADER, u as sweepStalePiAgentMirrors, z as validateBalancedProfilePrerequisites } from "./server-setup-
|
|
10
|
-
import { t as FRESH_CONSULT_CONTRACT } from "./claude-md-injection-
|
|
11
|
-
import { Bn as colbertDegradedWarning, Bt as cloudAgentToolsEnabled, D as toolbeltEnabled, Dt as artifactToolsEnabled,
|
|
12
|
-
import { C as localContractFor,
|
|
13
|
-
import { i as launchChild, t as provisionToolbelt } from "./provision-
|
|
14
|
-
import { t as PATHS } from "./paths-
|
|
5
|
+
import { i as buildAicStatusHookCommand, n as AIC_STATUSLINE_DISABLE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-dkVZbpRL.js";
|
|
6
|
+
import { d as removeAicLedgerFile, f as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath } from "./aic-ledger-Bz87EuHl.js";
|
|
7
|
+
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-BSDefQRW.js";
|
|
8
|
+
import { r as resolveSelfInvocation } from "./self-invocation-CayD3y72.js";
|
|
9
|
+
import { H as validateCheapestProfilePrerequisites, I as formatLocalPrerequisiteFailure, L as profileDescriptor, P as formatCheapestPrerequisiteFailure, R as resolveLaunchProfile, W as validateLocalProfilePrerequisites, _ as enableFileLogging, a as setupAndServe, c as ensurePiAgentMirror, d as seedPiPackageCache, f as sweepStalePiPackageCaches, i as parseSharedArgs, j as formatBalancedPrerequisiteFailure, l as removeOwnPiAgentMirror, m as stopKeepAwake, o as sharedServerArgs, p as startKeepAwake, r as getPiLaunchEnvVars, s as LAUNCH_SECRET_HEADER, u as sweepStalePiAgentMirrors, z as validateBalancedProfilePrerequisites } from "./server-setup--CYeBD-Z.js";
|
|
10
|
+
import { t as FRESH_CONSULT_CONTRACT } from "./claude-md-injection-BadtN0-I.js";
|
|
11
|
+
import { Bn as colbertDegradedWarning, Bt as cloudAgentToolsEnabled, D as toolbeltEnabled, Dt as artifactToolsEnabled, Mn as provisionBrowserAssets, Nt as browserToolsEnabled, Qt as kustoToolsEnabled, Sn as unregisterLaunch, Tt as adoToolsEnabled, Vn as provisionAndIndexColbert, _r as LOCAL_CONSULT_REDACTION_LINE, bn as registerLaunch, fn as configureLocalEgress, jt as browseAgentEnabled, pn as localBaseUrl, sn as workiqToolsEnabled, vr as LOCAL_CONSULT_REDACTION_NOTE } from "./peer-mcp-personas-Dgog_ZJ8.js";
|
|
12
|
+
import { C as localContractFor, D 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-BIru_SKh.js";
|
|
13
|
+
import { i as launchChild, t as provisionToolbelt } from "./provision-A1YSravb.js";
|
|
14
|
+
import { t as PATHS } from "./paths-CVXqt2tC.js";
|
|
15
15
|
import { t as state } from "./state-CCGDJ43X.js";
|
|
16
16
|
import { t as getPackageVersion } from "./version-CTqwKr26.js";
|
|
17
|
-
import { P as warmTreeSitterPool } from "./service-backend-
|
|
17
|
+
import { P as warmTreeSitterPool } from "./service-backend-EgwiO_K-.js";
|
|
18
18
|
import { defineCommand } from "citty";
|
|
19
19
|
import consola from "consola";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
@@ -563,21 +563,56 @@ const PI_MIN_VERSION_NOTE = `Requires Pi >= ${PI_MIN_VERSION} and Node >= 22.19.
|
|
|
563
563
|
*/
|
|
564
564
|
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.";
|
|
565
565
|
/**
|
|
566
|
-
* The search-order steer, emitted
|
|
566
|
+
* The search-order steer, emitted whenever the `code` tool is in the roster.
|
|
567
567
|
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
*
|
|
568
|
+
* Two variants, because the tool answers with two different engines and a
|
|
569
|
+
* digest that claims the wrong one is worse than silence. `semanticReady`
|
|
570
|
+
* (the launch opted into `--search` or Bluebird) selects the first; every
|
|
571
|
+
* other launch gets the second. The lexical variant is the default so the
|
|
572
|
+
* digest never claims a meaning-ranked index that nothing provisioned: the
|
|
573
|
+
* stock launch publishes `code` (`pi-mcp-config.ts` pushes the `search` group
|
|
574
|
+
* unconditionally) while `--search` defaults off, so this is the common path.
|
|
575
575
|
*
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
576
|
+
* Both variants carry the same four jobs that ranking cannot do — every
|
|
577
|
+
* occurrence, an exact token, a regex, a filename — because the tool's own
|
|
578
|
+
* description is read once at roster time while the digest is read every
|
|
579
|
+
* turn, and without the split the model greps for concepts and reads the
|
|
580
|
+
* whole tree for symbols. Both also carry the `tool_search` hint: the server is
|
|
581
|
+
* published with `exposure: "deferred"`, so the tool does not exist in the
|
|
582
|
+
* model's surface until it loads it, and naming `code` alone is a dead pointer.
|
|
583
|
+
*
|
|
584
|
+
* Neither variant claims why a fallback happened. `lexical-fallback` is
|
|
585
|
+
* returned both mid-index and when ColBERT is disabled or unprovisioned
|
|
586
|
+
* (`unified-code-search.ts`: `semanticOffNotice()` rides the same source
|
|
587
|
+
* label), so the text says what the label means and leaves the cause to the
|
|
588
|
+
* `notice`.
|
|
589
|
+
*/
|
|
590
|
+
const PI_SEARCH_ORDER_LINE = "- Search `code` first, before reading broadly: load it with `tool_search`, then semantic mode for intent and `lexical`/`exact` for a symbol, file, error, route, flag, or config key. `source`/`notice` say which engine answered; `lexical-fallback` means semantic did not run, not that the symbol is absent. Take what ranking cannot answer to rg/grep: every occurrence, an exact token, a regex, a filename. Never shell out to `grep -r`: the `grep` tool already runs ripgrep, and `rg -uu` is the only search that needs bash.";
|
|
591
|
+
/** The lexical-backend sibling of {@link PI_SEARCH_ORDER_LINE}, for a launch
|
|
592
|
+
* whose `code` tool answers without a semantic index. */
|
|
593
|
+
const PI_SEARCH_ORDER_LEXICAL_LINE = "- Search `code` first, before reading broadly: load it with `tool_search`. Semantic is off on this launch (`--search` turns it on), so it answers lexically and a `lexical-fallback` source is the expected state, not a miss. Take what it cannot answer to rg/grep: every occurrence, an exact token, a regex, a filename. Never shell out to `grep -r`: the `grep` tool already runs ripgrep.";
|
|
594
|
+
/**
|
|
595
|
+
* The batching steer. Pi runs every tool call from one assistant message
|
|
596
|
+
* concurrently with no semaphore (`src/vendor/pi/agent/agent-loop.ts`,
|
|
597
|
+
* `executeToolCallsParallel` -> `Promise.all`), and its own system prompt never
|
|
598
|
+
* mentions batching, so a model that issues one call per turn pays a full
|
|
599
|
+
* round trip per lookup. The second half is not a hedge: two edits of the same
|
|
600
|
+
* file in one batch race, and a call whose arguments come from an earlier
|
|
601
|
+
* result cannot be batched at all.
|
|
579
602
|
*/
|
|
580
|
-
const
|
|
603
|
+
const PI_PARALLEL_TOOL_LINE = "- Batch independent tool calls into one message: they run concurrently, so N reads, searches, or `ls` calls cost one round trip instead of N turns. Keep dependent calls and two edits of the same file in separate turns.";
|
|
604
|
+
/**
|
|
605
|
+
* The bounded-call steer. `timeout` is the ONLY per-call bound Pi exposes, and
|
|
606
|
+
* only `bash`/`powershell` take it; its schema documents "no default timeout"
|
|
607
|
+
* (`dist/core/tools/bash.js`), so an unbounded command can hold the turn
|
|
608
|
+
* indefinitely. There is no global tool timeout, concurrency cap, or
|
|
609
|
+
* forced-sequential setting in `schemas/settings.schema.json`, and the model
|
|
610
|
+
* cannot cancel a running call (`killProcessTree` runs at the bound or on the
|
|
611
|
+
* user's abort), so the instruction is to choose the bound up front rather
|
|
612
|
+
* than to stop a call later: an expired bound kills the process tree and
|
|
613
|
+
* returns, which is the outcome the digest wants.
|
|
614
|
+
*/
|
|
615
|
+
const PI_TOOL_TIMEOUT_LINE = "- Pass `timeout` (seconds) to `bash` and `powershell`: neither has a default, and the process is killed at the bound rather than left running. Read an expired bound as a signal that the command was too broad: narrow it and re-issue, unless the work is genuinely long, in which case bound it past the expected run.";
|
|
581
616
|
function piCopilotContractFor(profileId) {
|
|
582
617
|
return isCheapestFamily(profileId) ? cheapestContractFor(profileId) : balancedContractFor(profileId);
|
|
583
618
|
}
|
|
@@ -1433,6 +1468,7 @@ function roleDescription(profileId, role) {
|
|
|
1433
1468
|
function buildPiAgentFiles(profileId) {
|
|
1434
1469
|
const files = {};
|
|
1435
1470
|
const advisor = piAdvisorModel(profileId);
|
|
1471
|
+
const gatheringSteer = isCheapestFamily(profileId) || isLocalFamily(profileId);
|
|
1436
1472
|
for (const role of piNativeRoles(profileId)) {
|
|
1437
1473
|
const isImplementer = role.name === "General-Purpose";
|
|
1438
1474
|
const isReviewer = role.name === "reviewer";
|
|
@@ -1455,11 +1491,14 @@ function buildPiAgentFiles(profileId) {
|
|
|
1455
1491
|
if (isBalancedFamily(profileId) && isReviewer) lines.push("allowNestedSubagents: true", "allowedAgents: Explore");
|
|
1456
1492
|
if (advisor && isReviewer) lines.push("allowNestedSubagents: true", "allowedAgents: advisor");
|
|
1457
1493
|
lines.push("---", "");
|
|
1458
|
-
|
|
1494
|
+
const gatherSteer = gatheringSteer ? ["`grep` runs ripgrep and `find` walks the tree: narrow the `path` or `glob` before you", "read, and never shell out to `grep -r`."] : [];
|
|
1495
|
+
const batchSteer = gatheringSteer ? ["Batch independent searches and reads into one turn; they run concurrently."] : [];
|
|
1496
|
+
const boundsSteer = gatheringSteer ? ["Pass `bash` a `timeout` (seconds) for anything that can hang: there is no default."] : [];
|
|
1497
|
+
if (role.name === "Explore") lines.push("You are a read-only scout. Never modify files.", "Use bash only for non-interactive inspection.", ...gatherSteer, "Search first, read second: return the smallest sufficient evidence — entry points,", "key types and functions, data flow, files likely to need changes, constraints and", "open questions — with exact file paths and line ranges.", ...batchSteer, ...boundsSteer);
|
|
1459
1498
|
else if (isReviewer) {
|
|
1460
|
-
lines.push("You are a disciplined review subagent. Inspect the actual change; verify from code,", "tests, and docs — never guess. Cover intent match, correctness and edge cases,", "test coverage, side effects, and minimality.", "Report findings with file:line evidence ranked P0 (blocker) / P1 (should fix) / P2 (nit),", "ending with one of: Merge verdict: BLOCK, Merge verdict: OK, Merge verdict: OK with notes.", "You have no shell: cite the test commands for the lead to run rather than executing them.", "Do not rewrite code outside small, clearly-marked suggestions.");
|
|
1499
|
+
lines.push("You are a disciplined review subagent. Inspect the actual change; verify from code,", "tests, and docs — never guess. Cover intent match, correctness and edge cases,", "test coverage, side effects, and minimality.", ...gatherSteer, ...batchSteer, "Report findings with file:line evidence ranked P0 (blocker) / P1 (should fix) / P2 (nit),", "ending with one of: Merge verdict: BLOCK, Merge verdict: OK, Merge verdict: OK with notes.", "You have no shell: cite the test commands for the lead to run rather than executing them.", "Do not rewrite code outside small, clearly-marked suggestions.");
|
|
1461
1500
|
if (advisor) lines.push("You may consult the `advisor` subagent, the profile's own consultant,", "on the Advisor contract the lead uses: it sees only the brief you write.", "You own the verdict; the advisor is counsel, never authority: it never", "approves, vetoes, or decides for you.", "Budget: at most 5 advisor rounds per review — one round is one back-and-forth", "exchange. Spend them only on consequential uncertainty that code, builds, or tests", "cannot settle: a changed assumption, conflicting evidence, an approach that will", "not converge, or a severity call with merge-blocking consequences. Never consult for", "routine verification, progress narration, or completion ritual — run the check", "yourself. State the question, your evidence with file:line citations, the credible", "alternatives, and what evidence would change your verdict. If the advisor disagrees,", "evaluate on the merits: adopt what is right with a one-line reason, defend what you", "verified with evidence, and record the disagreement in your report. Do not delegate", "to any other agent.");
|
|
1462
|
-
} else lines.push("You are the single writer thread. Execute the assigned task with narrow, coherent edits;", "the lead remains the decision authority. Work from the brief's pasted context,", "then implement minimally and verify by running the relevant tests.", "If the work reveals an unapproved decision you cannot safely resolve, stop and escalate", "instead of guessing; never leave placeholders or TODOs.", "Hand behavior-changing results to reviewer when asked; otherwise summarize the diff,", "validation, risks, and next step.");
|
|
1501
|
+
} else lines.push("You are the single writer thread. Execute the assigned task with narrow, coherent edits;", "the lead remains the decision authority. Work from the brief's pasted context,", "then implement minimally and verify by running the relevant tests.", ...gatherSteer, ...batchSteer, ...boundsSteer, "If the work reveals an unapproved decision you cannot safely resolve, stop and escalate", "instead of guessing; never leave placeholders or TODOs.", "Hand behavior-changing results to reviewer when asked; otherwise summarize the diff,", "validation, risks, and next step.");
|
|
1463
1502
|
files[`agents/${agentFileName(role.name)}`] = `${lines.join("\n")}\n`;
|
|
1464
1503
|
}
|
|
1465
1504
|
const oracleModel = piOracleModel(profileId);
|
|
@@ -1567,16 +1606,36 @@ const PI_CONTEXT_CONTRACT_LINE = "- Your project instructions below come from `A
|
|
|
1567
1606
|
* Short operating digest appended to APPEND_SYSTEM.md (prompt-cache-stable).
|
|
1568
1607
|
* Mode identity — always injected. Peer consult sentences drop out under
|
|
1569
1608
|
* `peers: false` so the digest never names tools that don't exist.
|
|
1609
|
+
*
|
|
1610
|
+
* `codeTool` answers "is the `code` search tool in this launch's roster", NOT
|
|
1611
|
+
* "did `--search` opt into a semantic index". The `search` MCP group is pushed
|
|
1612
|
+
* unconditionally (`pi-mcp-config.ts`), so the tool is in every session while
|
|
1613
|
+
* `--search` defaults off; gating the search-order line on the flag left the
|
|
1614
|
+
* tool undocumented on the stock launch, which is the one that needs the
|
|
1615
|
+
* ordering most. `semanticReady` only picks which of the two order lines it
|
|
1616
|
+
* gets, and defaults to the lexical one rather than claiming an engine nothing
|
|
1617
|
+
* provisioned.
|
|
1618
|
+
*
|
|
1619
|
+
* The search-order line rides every profile that has the tool, `balanced*`
|
|
1620
|
+
* included: which engine answers, and when to reach for `rg` instead, is true
|
|
1621
|
+
* regardless of who gathers first. The batching and bounded-call steer is the
|
|
1622
|
+
* narrower one — only `cheapest*` and `local*`, whose leads do their own
|
|
1623
|
+
* gathering; `balanced*` sends discovery to `Explore` first, so those two
|
|
1624
|
+
* would fight its pipeline. `codeTool: false` omits the search line entirely:
|
|
1625
|
+
* a pointer to a tool the session does not have is the failure this digest
|
|
1626
|
+
* exists to avoid.
|
|
1570
1627
|
*/
|
|
1571
1628
|
function buildPiAppendSystem(profileId, opts = {}) {
|
|
1572
1629
|
const peers = opts.peers !== false;
|
|
1573
1630
|
const advisor = peers ? piAdvisorModel(profileId) : void 0;
|
|
1631
|
+
const gatheringSteer = isCheapestFamily(profileId) || isLocalFamily(profileId);
|
|
1574
1632
|
const lines = [
|
|
1575
1633
|
`# gh-router ${profileId} mode`,
|
|
1576
1634
|
"",
|
|
1577
1635
|
`- Lead owns planning directly; there is no Plan subagent.`,
|
|
1578
1636
|
PI_TOOL_PREFERENCE_LINE,
|
|
1579
|
-
...opts.
|
|
1637
|
+
...opts.codeTool === true ? [opts.semanticReady === true ? PI_SEARCH_ORDER_LINE : PI_SEARCH_ORDER_LEXICAL_LINE] : [],
|
|
1638
|
+
...gatheringSteer ? [PI_PARALLEL_TOOL_LINE, PI_TOOL_TIMEOUT_LINE] : [],
|
|
1580
1639
|
...opts.bridge === true ? [PI_CONTEXT_CONTRACT_LINE] : []
|
|
1581
1640
|
];
|
|
1582
1641
|
if (peers) {
|
|
@@ -3282,7 +3341,7 @@ function readMcpServerKeys(raw) {
|
|
|
3282
3341
|
*/
|
|
3283
3342
|
const GROUP_DESCRIPTIONS = {
|
|
3284
3343
|
peers: "Cross-lab adversarial reviewers (codex_critic, codex_reviewer, gemini_critic, gemini_reviewer, opus_critic) plus oracle, a stateless expert consultant. Reach for a critic when a plan or a diff needs a second lab's judgement; reach for oracle when repository evidence alone cannot settle a self-contained technical trade-off.",
|
|
3285
|
-
search: "Code and web search for this workspace
|
|
3344
|
+
search: "Code and web search for this workspace: code ranks the tree by meaning or lexical match and says which engine answered, while web runs a Copilot-backed search. Reach for code before broad file reads.",
|
|
3286
3345
|
workers: "Autonomous worker subagents that run their own agent loop on a scoped task: explore reads and searches, review also runs commands to verify, implement edits files in an isolated git worktree and returns the diff. Reach for a worker when the task is big enough that its context should not land in yours.",
|
|
3287
3346
|
browser: "Drive a real Chrome or Edge tab: open, navigate, read the page, screenshot, click, type, evaluate JavaScript. Reach for it when the answer lives in a web UI rather than in the repository.",
|
|
3288
3347
|
ado: "Azure DevOps for the open repository: repositories, work items, pipelines and wikis.",
|
|
@@ -3825,7 +3884,8 @@ const pi = defineCommand({
|
|
|
3825
3884
|
for (const prompt of routerPrompts) await writeTextFile(path.join(mirror, "prompts", `${prompt.name}.md`), prompt.content);
|
|
3826
3885
|
await writeTextFile(path.join(mirror, "APPEND_SYSTEM.md"), buildPiAppendSystem(profileId, {
|
|
3827
3886
|
peers: peersEnabled,
|
|
3828
|
-
|
|
3887
|
+
codeTool: true,
|
|
3888
|
+
semanticReady: surfaces.codeSearch,
|
|
3829
3889
|
bridge: bridgeActive
|
|
3830
3890
|
}));
|
|
3831
3891
|
let foreign;
|
|
@@ -4010,8 +4070,8 @@ const pi = defineCommand({
|
|
|
4010
4070
|
serverUrl
|
|
4011
4071
|
})}\n`);
|
|
4012
4072
|
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");
|
|
4013
|
-
const { disposeBluebirdClients } = await import("./bluebird-client-
|
|
4014
|
-
const { disposeAdoClients } = await import("./ado-tools-
|
|
4073
|
+
const { disposeBluebirdClients } = await import("./bluebird-client-CLXs7q-X.js");
|
|
4074
|
+
const { disposeAdoClients } = await import("./ado-tools-Ddv910Zl.js");
|
|
4015
4075
|
launchChild({
|
|
4016
4076
|
kind: "pi",
|
|
4017
4077
|
execArgs: piCommand && piCommand.command !== "" ? [piCommand.command, ...piCommand.args] : void 0,
|
|
@@ -4048,4 +4108,4 @@ const pi = defineCommand({
|
|
|
4048
4108
|
});
|
|
4049
4109
|
export { pi };
|
|
4050
4110
|
|
|
4051
|
-
//# sourceMappingURL=pi-
|
|
4111
|
+
//# sourceMappingURL=pi-BZhnf1kx.js.map
|