@herbertgao/pi-extensions 2026.11.12 → 2026.11.14
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/CHANGELOG.md +16 -0
- package/README.md +6 -4
- package/node_modules/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +37 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +239 -0
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +10 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +37 -7
- package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +113 -34
- package/node_modules/@herbertgao/pi-subagents/package.json +9 -4
- package/node_modules/@herbertgao/pi-subagents/skills/workflow-authoring/SKILL.md +147 -0
- package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +48 -32
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +16 -8
- package/node_modules/@herbertgao/pi-subagents/src/custom-agents.ts +16 -6
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +99 -7
- package/node_modules/@herbertgao/pi-subagents/src/mention.ts +5 -7
- package/node_modules/@herbertgao/pi-subagents/src/settings.ts +26 -0
- package/node_modules/@herbertgao/pi-subagents/src/structured-output.ts +13 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +55 -8
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card-redraw.ts +86 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card.ts +5 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-dialog.ts +478 -115
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-menu.ts +77 -6
- package/node_modules/@herbertgao/pi-subagents/src/workflow/agent-detail.ts +148 -0
- package/node_modules/@herbertgao/pi-subagents/src/workflow/host.ts +88 -14
- package/node_modules/@herbertgao/pi-subagents/src/workflow/journal.ts +8 -0
- package/node_modules/@herbertgao/pi-subagents/src/workflow/json-schema.ts +507 -57
- package/node_modules/@herbertgao/pi-subagents/src/workflow/progress.ts +41 -11
- package/node_modules/@herbertgao/pi-subagents/src/workflow/runtime.ts +106 -34
- package/node_modules/@herbertgao/pi-subagents/src/workflow/task.ts +43 -5
- package/node_modules/@herbertgao/pi-subagents/src/workflow/tool-description.ts +93 -153
- package/node_modules/@herbertgao/pi-subagents/src/workflow/worker-source.ts +283 -71
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +288 -177
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
- package/node_modules/@pi-plugins/fast-mode/package.json +7 -7
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +132 -0
- package/node_modules/pi-lens/README.md +2 -0
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/node_modules/pi-lens/dist/{chunk-LGH2HHZG.js → chunk-25CAONWT.js} +36 -25
- package/node_modules/pi-lens/dist/{chunk-ZQSSO7LO.js → chunk-2DWNYVUN.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-YCR6ZYTE.js → chunk-2RQREVGO.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VWEBZ2JV.js → chunk-2XALJI2K.js} +40 -40
- package/node_modules/pi-lens/dist/{chunk-PQXUZYTQ.js → chunk-2YQ5LI7R.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-VSQT6IHZ.js → chunk-35UJUF27.js} +18 -4
- package/node_modules/pi-lens/dist/{chunk-OLWGYBYT.js → chunk-3IWMNN2S.js} +17 -17
- package/node_modules/pi-lens/dist/chunk-3UTDLQWO.js +88 -0
- package/node_modules/pi-lens/dist/chunk-3Z7Z3B7V.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-UNP6Y4JV.js → chunk-4E4OCW3L.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-37IDWT6O.js → chunk-4GLSO2EM.js} +13 -11
- package/node_modules/pi-lens/dist/{chunk-QV3JPCMK.js → chunk-5HVDD7IA.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ZRQMENT4.js → chunk-62PIU4TO.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3TSMQZG6.js → chunk-6MDWNZ7E.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-WLD6BGON.js → chunk-6MWX2J5H.js} +4 -0
- package/node_modules/pi-lens/dist/{chunk-SCU62JLX.js → chunk-6MZLS6CK.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-B42AIWPJ.js → chunk-7BWPQZHE.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-I3NZVAMN.js → chunk-7JMEPY6P.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-7DPXUPRF.js → chunk-7ORBRDFY.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6E5QLMWI.js → chunk-7WAQ3K26.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-2H5GHZKC.js → chunk-AB26NAHA.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-BBSDJTOV.js → chunk-AFSG6YUB.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-XDNWR7SG.js → chunk-ALTHJUZO.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-UN72ZAJ5.js → chunk-AOEVZXR6.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-HRLF35WL.js → chunk-ARTCVE6I.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-LQQNFCQJ.js → chunk-B2QO7GHY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-I2FYOZNW.js → chunk-BJGWP4UX.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-G53LBDNU.js → chunk-BKJ6WZKP.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-P5MSLVUW.js → chunk-BQ72NQQM.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-K7O6AHSJ.js → chunk-BWGNVM33.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-ADYQRETD.js → chunk-BYIEU4E4.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7ZVTFLCC.js → chunk-CDAJQBKJ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-BKWFDWYM.js → chunk-D3UQWOCB.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-3PAS2ERX.js → chunk-DHFJS2I4.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-KNSOA43J.js → chunk-DKXIUGNA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-LOEJFTF2.js → chunk-DLGJYQML.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-VGRGW4UL.js → chunk-DNJJVKJZ.js} +31 -31
- package/node_modules/pi-lens/dist/{chunk-5HBQL7DH.js → chunk-EBXCYEII.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-EH6EHFW2.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-W26QZ3OM.js → chunk-EKQDQPX6.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TWEOJE3D.js → chunk-EXHSWN3P.js} +844 -377
- package/node_modules/pi-lens/dist/{chunk-4IZZEN63.js → chunk-F7BFIENK.js} +33 -33
- package/node_modules/pi-lens/dist/{chunk-ZI7YHV6I.js → chunk-FD4LJQ6Y.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-RIH3UBK4.js → chunk-GFCPPCNR.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-5JB4WENL.js → chunk-GIK6VUCY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-PPQHMSPH.js → chunk-GNK2IHVG.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-CXQYK4YT.js → chunk-H6DNTQ4V.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-NGNBJIUO.js → chunk-HERQPNY6.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-INBK3HIT.js → chunk-HFIFEH46.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-J2ZB5MDS.js → chunk-HKRESBMC.js} +20 -20
- package/node_modules/pi-lens/dist/{chunk-AZG5UJYY.js → chunk-HMXWZUQW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XSC3BCN3.js → chunk-HOWHAKXO.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-7CLWC2UH.js → chunk-HUWW77QY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KZ732ZVW.js → chunk-IO6P3NBP.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7WKVCZI4.js → chunk-J7VNGHLN.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QE7BJQ6K.js → chunk-JGCBMCCS.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-PFJLYRO3.js → chunk-KIQSNH3F.js} +34 -34
- package/node_modules/pi-lens/dist/{chunk-JGUDT5KD.js → chunk-KSQJBGRO.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-RJ3APNIP.js → chunk-KXKM2DFP.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-L3Q72QGQ.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-6GLMMGCX.js → chunk-LDPY22FS.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-3PO4YYOX.js → chunk-M3QGXGY4.js} +3793 -3814
- package/node_modules/pi-lens/dist/{chunk-NNEQOC3U.js → chunk-MET776XM.js} +9 -7
- package/node_modules/pi-lens/dist/{chunk-X33QECRJ.js → chunk-MKQFSW2Q.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7U36VQL6.js → chunk-MKW7ZUTT.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-PQF6YGYB.js → chunk-N2U644ZW.js} +4 -18
- package/node_modules/pi-lens/dist/{chunk-DI4AZZNY.js → chunk-NAACKIKT.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-O6LCSHHI.js → chunk-NHHS5T52.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-DCA2MXVQ.js → chunk-NIZKGBOU.js} +51 -27
- package/node_modules/pi-lens/dist/{chunk-PKWEBMCA.js → chunk-NNDZ7DOP.js} +194 -111
- package/node_modules/pi-lens/dist/{chunk-Q7J3JYJ2.js → chunk-NZ7NSKIW.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-S6MCMD27.js → chunk-OG3UCAHV.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-3QXFUP6T.js → chunk-OHTHVILU.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-NHA5K226.js → chunk-P7EV5ISR.js} +17 -2
- package/node_modules/pi-lens/dist/{chunk-L6BDRYUK.js → chunk-PVV27TOX.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-HIRBC72R.js → chunk-Q32RJDYC.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QE5DJ7MX.js → chunk-Q4UQNTLB.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-SDYLT45T.js → chunk-QQGZY2BR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QMWKSYWB.js → chunk-S247BOH2.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-ARTYCUGF.js → chunk-S7KUDW73.js} +121 -18
- package/node_modules/pi-lens/dist/{chunk-6CFSDLHE.js → chunk-SJ2SR432.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-CQY2HEH7.js → chunk-SL4G67AP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-LVLPA32Q.js → chunk-T2D2WWP6.js} +48 -11
- package/node_modules/pi-lens/dist/{chunk-HIJ4CHFF.js → chunk-T7KHGEJ5.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-74AMPWNC.js → chunk-TABDCX35.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-TFSBHRL2.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-KNJH6WJQ.js → chunk-TQKWR5AZ.js} +7 -7
- package/node_modules/pi-lens/dist/chunk-TWAQFMLW.js +110 -0
- package/node_modules/pi-lens/dist/{chunk-TKOFTLGB.js → chunk-UARVPNAU.js} +33 -33
- package/node_modules/pi-lens/dist/chunk-UWBD3JMH.js +56 -0
- package/node_modules/pi-lens/dist/{chunk-K4Z7MK6T.js → chunk-VEF3GFOL.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-4DAHGU3V.js → chunk-W2JPGW7Q.js} +27 -25
- package/node_modules/pi-lens/dist/{chunk-CZJGAOKL.js → chunk-W2YHHNY3.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-R4L7KZ7R.js → chunk-WA6U2URH.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-OZQQ3AIR.js → chunk-WAK2AXQQ.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-DFKOA74L.js → chunk-WH6O4IFD.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-27JQHK7Y.js → chunk-WJ7GY5WJ.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KXGTLAUW.js → chunk-WWZLT6AM.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-O2MHF7QM.js → chunk-XRLZ75YY.js} +38 -38
- package/node_modules/pi-lens/dist/chunk-XWWFESYZ.js +27 -0
- package/node_modules/pi-lens/dist/chunk-XZSXSM4K.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-C5PLBTNR.js → chunk-Y2LIOCA7.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AXAR5ZW2.js → chunk-YIEHUKX2.js} +84 -169
- package/node_modules/pi-lens/dist/{chunk-B2OXE4AH.js → chunk-YOMLAKU6.js} +182 -180
- package/node_modules/pi-lens/dist/{chunk-MOAVEPC4.js → chunk-YV7XVYSJ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-ZULZS2I6.js → chunk-ZVQUYCBU.js} +996 -365
- package/node_modules/pi-lens/dist/index.js +4911 -2376
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +8 -8
- package/node_modules/pi-lens/dist/mcp/cli.js +40 -40
- package/node_modules/pi-lens/dist/mcp/server.js +321 -234
- package/node_modules/pi-lens/dist/mcp/worker.js +58 -58
- package/node_modules/pi-lens/dist/probes/installer.js +21 -21
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +18 -9
- package/node_modules/pi-lens/docs/ci.md +7 -0
- package/node_modules/pi-lens/docs/defect-shapes.md +43 -28
- package/node_modules/pi-lens/docs/globalconfig.md +1 -0
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +15 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +3 -3
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +3 -2
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +6 -2
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +3 -2
- package/node_modules/pi-lens/docs/pi-lens-orchestration.md +2 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +2 -1
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/settings.md +1 -0
- package/node_modules/pi-lens/docs/usage.md +1 -0
- package/node_modules/pi-lens/package.json +1 -1
- package/package.json +9 -4
- package/node_modules/pi-lens/dist/chunk-2H7NFZ4Q.js +0 -25
- package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +0 -56
- package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +0 -27
- package/node_modules/pi-lens/dist/chunk-H5API74E.js +0 -67
- package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +0 -27
- package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +0 -88
- package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +0 -73
- package/node_modules/pi-lens/dist/chunk-MJRGPEQ5.js +0 -25
- package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +0 -27
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
getFilterStats,
|
|
16
16
|
isBuildArtifact,
|
|
17
17
|
sourceTwinCandidates
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WA6U2URH.js";
|
|
19
|
+
import "./chunk-TABDCX35.js";
|
|
20
|
+
import "./chunk-M3QGXGY4.js";
|
|
21
21
|
import "./chunk-QYF5S6P6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-N2U644ZW.js";
|
|
23
|
+
import "./chunk-SL4G67AP.js";
|
|
24
|
+
import "./chunk-DLGJYQML.js";
|
|
25
|
+
import "./chunk-EKQDQPX6.js";
|
|
26
|
+
import "./chunk-P7EV5ISR.js";
|
|
27
27
|
import "./chunk-S26LC76R.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-HUWW77QY.js";
|
|
29
29
|
import "./chunk-LJDODBBZ.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-6MWX2J5H.js";
|
|
31
31
|
import "./chunk-NXL4FFQQ.js";
|
|
32
32
|
export {
|
|
33
33
|
ALL_SCANNABLE_EXTENSIONS,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
collectSourceFiles,
|
|
4
4
|
collectSourceFilesAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WA6U2URH.js";
|
|
6
6
|
|
|
7
7
|
// dist/clients/scan-utils.js
|
|
8
8
|
function getSourceFiles(dir, _isTsProject) {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getGlobalPiLensDir,
|
|
4
4
|
safeSpawnAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M3QGXGY4.js";
|
|
6
6
|
import {
|
|
7
7
|
createSingleFlight
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GIK6VUCY.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/tool-probe.js
|
|
11
11
|
import * as fs from "node:fs";
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
nestedWorktreeOffsets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OG3UCAHV.js";
|
|
5
5
|
import {
|
|
6
6
|
parseReportJson,
|
|
7
7
|
runReportScan
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-HFIFEH46.js";
|
|
9
|
+
import "./chunk-QQGZY2BR.js";
|
|
10
10
|
import {
|
|
11
11
|
createAvailabilityChecker,
|
|
12
12
|
findManagedNodeToolBinary,
|
|
13
13
|
resolveAvailableOrInstall
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-NNDZ7DOP.js";
|
|
15
|
+
import "./chunk-YIEHUKX2.js";
|
|
16
|
+
import "./chunk-J7VNGHLN.js";
|
|
17
|
+
import "./chunk-AB26NAHA.js";
|
|
18
|
+
import "./chunk-5HVDD7IA.js";
|
|
19
|
+
import "./chunk-H6DNTQ4V.js";
|
|
20
|
+
import "./chunk-2DWNYVUN.js";
|
|
21
|
+
import "./chunk-HMXWZUQW.js";
|
|
22
|
+
import "./chunk-MET776XM.js";
|
|
23
|
+
import "./chunk-BQ72NQQM.js";
|
|
24
24
|
import {
|
|
25
25
|
getJscpdMaxEntriesDerived
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-BYIEU4E4.js";
|
|
27
|
+
import "./chunk-NAACKIKT.js";
|
|
28
28
|
import "./chunk-2APSZHHI.js";
|
|
29
29
|
import "./chunk-2BEMIWEW.js";
|
|
30
30
|
import "./chunk-IJYGIDF4.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-YOMLAKU6.js";
|
|
32
|
+
import "./chunk-T2D2WWP6.js";
|
|
33
33
|
import {
|
|
34
34
|
findNodeToolBinary
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-25CAONWT.js";
|
|
36
36
|
import {
|
|
37
37
|
getIsolatedNpxSpawnOptions
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-27JQHK7Y.js";
|
|
45
|
-
import "./chunk-R4L7KZ7R.js";
|
|
38
|
+
} from "./chunk-WWZLT6AM.js";
|
|
39
|
+
import "./chunk-DKXIUGNA.js";
|
|
40
|
+
import "./chunk-LDPY22FS.js";
|
|
41
|
+
import "./chunk-HOWHAKXO.js";
|
|
42
|
+
import "./chunk-WJ7GY5WJ.js";
|
|
43
|
+
import "./chunk-WA6U2URH.js";
|
|
46
44
|
import {
|
|
47
45
|
shouldRecurseIntoDir,
|
|
48
46
|
walkTreeStackSync
|
|
49
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TABDCX35.js";
|
|
48
|
+
import "./chunk-TQWRH25U.js";
|
|
49
|
+
import "./chunk-UYXV5NIS.js";
|
|
50
50
|
import {
|
|
51
51
|
getExcludedDirGlobs,
|
|
52
52
|
getProjectIgnoreGlobs,
|
|
53
53
|
getProjectIgnoreMatcher,
|
|
54
54
|
safeSpawnAsync
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-M3QGXGY4.js";
|
|
56
|
+
import "./chunk-GIK6VUCY.js";
|
|
57
57
|
import "./chunk-QYF5S6P6.js";
|
|
58
|
-
import {
|
|
59
|
-
isJstsFactFile
|
|
60
|
-
} from "./chunk-CQY2HEH7.js";
|
|
61
58
|
import {
|
|
62
59
|
isDeclarationFile
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import
|
|
60
|
+
} from "./chunk-N2U644ZW.js";
|
|
61
|
+
import {
|
|
62
|
+
isJstsFactFile
|
|
63
|
+
} from "./chunk-SL4G67AP.js";
|
|
64
|
+
import "./chunk-DLGJYQML.js";
|
|
65
65
|
import "./chunk-CIA7X2PZ.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-EKQDQPX6.js";
|
|
67
67
|
import {
|
|
68
68
|
createSubsystemLogger,
|
|
69
69
|
incrementDegradationCount
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-P7EV5ISR.js";
|
|
71
71
|
import "./chunk-S26LC76R.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-HUWW77QY.js";
|
|
73
73
|
import "./chunk-LJDODBBZ.js";
|
|
74
74
|
import {
|
|
75
75
|
isAtOrAboveHomeDir,
|
|
76
76
|
isFullyQualified,
|
|
77
77
|
realpathOrResolve,
|
|
78
78
|
toPosix
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-6MWX2J5H.js";
|
|
80
80
|
import "./chunk-NXL4FFQQ.js";
|
|
81
81
|
|
|
82
82
|
// dist/clients/jscpd-client.js
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
importFactProvider,
|
|
4
|
+
importFactsApplyTo
|
|
5
|
+
} from "./chunk-Q32RJDYC.js";
|
|
6
|
+
import "./chunk-IO6P3NBP.js";
|
|
7
|
+
import "./chunk-4GLSO2EM.js";
|
|
8
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
9
|
+
import "./chunk-2DWNYVUN.js";
|
|
10
|
+
import "./chunk-NAACKIKT.js";
|
|
11
|
+
import "./chunk-LDPY22FS.js";
|
|
12
|
+
import "./chunk-M3QGXGY4.js";
|
|
13
|
+
import "./chunk-N2U644ZW.js";
|
|
14
|
+
import "./chunk-SL4G67AP.js";
|
|
15
|
+
import "./chunk-DLGJYQML.js";
|
|
16
|
+
import "./chunk-CIA7X2PZ.js";
|
|
17
|
+
import "./chunk-EKQDQPX6.js";
|
|
18
|
+
import "./chunk-P7EV5ISR.js";
|
|
19
|
+
import "./chunk-S26LC76R.js";
|
|
20
|
+
import "./chunk-HUWW77QY.js";
|
|
21
|
+
import "./chunk-LJDODBBZ.js";
|
|
22
|
+
import "./chunk-6MWX2J5H.js";
|
|
23
|
+
import "./chunk-NXL4FFQQ.js";
|
|
24
|
+
export {
|
|
25
|
+
importFactProvider,
|
|
26
|
+
importFactsApplyTo
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
functionFactProvider
|
|
4
|
+
} from "./chunk-2YQ5LI7R.js";
|
|
5
|
+
import "./chunk-Y2LIOCA7.js";
|
|
6
|
+
import "./chunk-IO6P3NBP.js";
|
|
7
|
+
import "./chunk-5W3R6LFT.js";
|
|
8
|
+
import "./chunk-4GLSO2EM.js";
|
|
9
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
10
|
+
import "./chunk-2DWNYVUN.js";
|
|
11
|
+
import "./chunk-NAACKIKT.js";
|
|
12
|
+
import "./chunk-LDPY22FS.js";
|
|
13
|
+
import "./chunk-M3QGXGY4.js";
|
|
14
|
+
import "./chunk-N2U644ZW.js";
|
|
15
|
+
import "./chunk-SL4G67AP.js";
|
|
16
|
+
import "./chunk-DLGJYQML.js";
|
|
17
|
+
import "./chunk-CIA7X2PZ.js";
|
|
18
|
+
import "./chunk-EKQDQPX6.js";
|
|
19
|
+
import "./chunk-P7EV5ISR.js";
|
|
20
|
+
import "./chunk-S26LC76R.js";
|
|
21
|
+
import "./chunk-HUWW77QY.js";
|
|
22
|
+
import "./chunk-LJDODBBZ.js";
|
|
23
|
+
import "./chunk-6MWX2J5H.js";
|
|
24
|
+
import "./chunk-NXL4FFQQ.js";
|
|
25
|
+
export {
|
|
26
|
+
functionFactProvider
|
|
27
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveOpengrepConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J7VNGHLN.js";
|
|
5
5
|
import {
|
|
6
6
|
PYTHON_COMPILE_VERDICT_SERVER_ID,
|
|
7
7
|
augmentPythonEnvironment,
|
|
8
8
|
detectPythonEnvironment,
|
|
9
9
|
pythonEnvironmentToolCandidates
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AB26NAHA.js";
|
|
11
11
|
import {
|
|
12
12
|
scannerReportParentDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5HVDD7IA.js";
|
|
14
14
|
import {
|
|
15
15
|
getUserRuleRoot,
|
|
16
16
|
load,
|
|
17
17
|
resolvePackagePath,
|
|
18
18
|
ruleCorpusFingerprintForCycle
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2DWNYVUN.js";
|
|
20
20
|
import {
|
|
21
21
|
extensionsForLanguage,
|
|
22
22
|
isTypeScriptFile
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NAACKIKT.js";
|
|
24
24
|
import {
|
|
25
25
|
ensureTool,
|
|
26
26
|
findManagedToolBinary,
|
|
@@ -30,32 +30,29 @@ import {
|
|
|
30
30
|
isZizmorAuditTarget,
|
|
31
31
|
logSessionStart,
|
|
32
32
|
resolveZizmorGitHubToken
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YOMLAKU6.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveToolCwd
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-T2D2WWP6.js";
|
|
37
37
|
import {
|
|
38
38
|
commandSearchReachesProject,
|
|
39
39
|
findGlobalBinary,
|
|
40
40
|
isProjectLocalBinPath
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-25CAONWT.js";
|
|
42
42
|
import {
|
|
43
43
|
hasCargoWorkspaceTable,
|
|
44
44
|
readCargoWorkspaceExclude,
|
|
45
45
|
readCargoWorkspaceMembers,
|
|
46
46
|
readTextFileOrUndefined
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DKXIUGNA.js";
|
|
48
48
|
import {
|
|
49
|
-
classifyFinderFailure,
|
|
50
49
|
classifyProbeFailure,
|
|
51
|
-
createAvailabilityLatch,
|
|
52
50
|
describeInstallAttempt,
|
|
53
|
-
logAvailabilityDecision
|
|
54
|
-
|
|
55
|
-
} from "./chunk-6GLMMGCX.js";
|
|
51
|
+
logAvailabilityDecision
|
|
52
|
+
} from "./chunk-LDPY22FS.js";
|
|
56
53
|
import {
|
|
57
54
|
readDirEntriesSafeAsync
|
|
58
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-TABDCX35.js";
|
|
59
56
|
import {
|
|
60
57
|
OWNER_TAG_ENV,
|
|
61
58
|
SpawnFailureError,
|
|
@@ -84,13 +81,7 @@ import {
|
|
|
84
81
|
safeSpawnAsync,
|
|
85
82
|
statIsFile,
|
|
86
83
|
trustScopedEnvironment
|
|
87
|
-
} from "./chunk-
|
|
88
|
-
import {
|
|
89
|
-
DOTNET_CSHARP_ROOT_MARKERS,
|
|
90
|
-
DOTNET_FSHARP_ROOT_MARKERS,
|
|
91
|
-
KIND_EXTENSIONS,
|
|
92
|
-
LEAN_ROOT_MARKERS
|
|
93
|
-
} from "./chunk-CQY2HEH7.js";
|
|
84
|
+
} from "./chunk-M3QGXGY4.js";
|
|
94
85
|
import {
|
|
95
86
|
boundedKeyLabel,
|
|
96
87
|
finalizeRecords,
|
|
@@ -102,7 +93,13 @@ import {
|
|
|
102
93
|
reportPiLensConfigRecords,
|
|
103
94
|
resolvePiLensConfig,
|
|
104
95
|
summarizeConfigResolution
|
|
105
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-N2U644ZW.js";
|
|
97
|
+
import {
|
|
98
|
+
DOTNET_CSHARP_ROOT_MARKERS,
|
|
99
|
+
DOTNET_FSHARP_ROOT_MARKERS,
|
|
100
|
+
KIND_EXTENSIONS,
|
|
101
|
+
LEAN_ROOT_MARKERS
|
|
102
|
+
} from "./chunk-SL4G67AP.js";
|
|
106
103
|
import {
|
|
107
104
|
FRESHNESS_CADENCE_MS,
|
|
108
105
|
LSP_NAMESPACE_KEY,
|
|
@@ -113,19 +110,19 @@ import {
|
|
|
113
110
|
getDirectoryMarkers,
|
|
114
111
|
getPiLensGlobalConfigPath,
|
|
115
112
|
unknownDirMtimeRecords
|
|
116
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-DLGJYQML.js";
|
|
117
114
|
import {
|
|
118
115
|
HOOK_WALL_BUDGET_MS,
|
|
119
116
|
bounded,
|
|
120
117
|
getProjectTrustGeneration,
|
|
121
118
|
getProjectTrustState
|
|
122
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-EKQDQPX6.js";
|
|
123
120
|
import {
|
|
124
121
|
getDegradationLedgerGeneration,
|
|
125
122
|
incrementDegradationCount,
|
|
126
123
|
logExtension,
|
|
127
124
|
recordDegradationOnce
|
|
128
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-P7EV5ISR.js";
|
|
129
126
|
import {
|
|
130
127
|
claimPhaseOncePerSession,
|
|
131
128
|
currentSessionRecordId,
|
|
@@ -136,7 +133,7 @@ import {
|
|
|
136
133
|
logLatency,
|
|
137
134
|
redactSecrets,
|
|
138
135
|
releasePhaseClaim
|
|
139
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-HUWW77QY.js";
|
|
140
137
|
import {
|
|
141
138
|
STAGE_TMP_PATTERN
|
|
142
139
|
} from "./chunk-LJDODBBZ.js";
|
|
@@ -163,7 +160,7 @@ import {
|
|
|
163
160
|
toPosix,
|
|
164
161
|
toProjectRelativePath,
|
|
165
162
|
walkUpDirs
|
|
166
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-6MWX2J5H.js";
|
|
167
164
|
|
|
168
165
|
// dist/clients/analysis-root.js
|
|
169
166
|
import * as fs from "node:fs";
|
|
@@ -280,6 +277,57 @@ function holdsProjectConfig(dir) {
|
|
|
280
277
|
});
|
|
281
278
|
}
|
|
282
279
|
|
|
280
|
+
// dist/clients/lsp/server-covers.js
|
|
281
|
+
var BUILTIN_SERVER_RUNNER_COVERS = /* @__PURE__ */ new Map([
|
|
282
|
+
[
|
|
283
|
+
"bash",
|
|
284
|
+
{ runnerIds: ["shellcheck"], gateCommands: ["bash-language-server"] }
|
|
285
|
+
],
|
|
286
|
+
["shuck", { runnerIds: ["shellcheck"], gateCommands: ["shuck"] }],
|
|
287
|
+
["toml", { runnerIds: ["taplo"], gateCommands: ["taplo"] }]
|
|
288
|
+
]);
|
|
289
|
+
|
|
290
|
+
// dist/clients/lsp/server-traits.js
|
|
291
|
+
var ROLE_MEMBERS = {
|
|
292
|
+
language: "language",
|
|
293
|
+
auxiliary: "auxiliary"
|
|
294
|
+
};
|
|
295
|
+
var DEFAULT_LSP_SERVER_ROLE = "language";
|
|
296
|
+
function isTsgoLaunchVariant(variant) {
|
|
297
|
+
return variant === "native-ts7" || variant === "effect-tsgo";
|
|
298
|
+
}
|
|
299
|
+
function isAuxiliary(bearer) {
|
|
300
|
+
const declared = bearer?.role;
|
|
301
|
+
const role = typeof declared === "string" && Object.hasOwn(ROLE_MEMBERS, declared) ? ROLE_MEMBERS[declared] : DEFAULT_LSP_SERVER_ROLE;
|
|
302
|
+
switch (role) {
|
|
303
|
+
case "auxiliary":
|
|
304
|
+
return true;
|
|
305
|
+
case "language":
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
var DEFAULT_RESEND_RECHECK = "unmeasured";
|
|
310
|
+
var DEFAULT_NOTIFY_INFLIGHT_LIMIT = 8;
|
|
311
|
+
var DEFAULT_REPLY_ORDERING = "unmeasured";
|
|
312
|
+
function serverTraits(declaration) {
|
|
313
|
+
const declaredLimit = declaration.notifyInflightLimit;
|
|
314
|
+
if (typeof declaredLimit === "number" && Number.isFinite(declaredLimit) && declaredLimit > 0) {
|
|
315
|
+
return {
|
|
316
|
+
role: declaration.role,
|
|
317
|
+
notifyInflightLimit: Math.floor(declaredLimit),
|
|
318
|
+
replyOrdering: declaration.replyOrdering ?? DEFAULT_REPLY_ORDERING,
|
|
319
|
+
resendRecheck: declaration.resendRecheck ?? DEFAULT_RESEND_RECHECK
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
const envLimit = Number(process.env.PI_LENS_LSP_AUX_NOTIFY_INFLIGHT);
|
|
323
|
+
return {
|
|
324
|
+
role: declaration.role,
|
|
325
|
+
notifyInflightLimit: Number.isFinite(envLimit) && envLimit > 0 ? Math.floor(envLimit) : DEFAULT_NOTIFY_INFLIGHT_LIMIT,
|
|
326
|
+
replyOrdering: declaration.replyOrdering ?? DEFAULT_REPLY_ORDERING,
|
|
327
|
+
resendRecheck: declaration.resendRecheck ?? DEFAULT_RESEND_RECHECK
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
|
|
283
331
|
// dist/clients/lsp/file-server-match.js
|
|
284
332
|
import path from "node:path";
|
|
285
333
|
function fileMatchKeys(filePath) {
|
|
@@ -679,47 +727,6 @@ function findLocalTyposConfig(startDir) {
|
|
|
679
727
|
return findLocalToolConfig(startDir, LOCAL_TYPOS_CONFIG_NAMES);
|
|
680
728
|
}
|
|
681
729
|
|
|
682
|
-
// dist/clients/lsp/server-traits.js
|
|
683
|
-
var ROLE_MEMBERS = {
|
|
684
|
-
language: "language",
|
|
685
|
-
auxiliary: "auxiliary"
|
|
686
|
-
};
|
|
687
|
-
var DEFAULT_LSP_SERVER_ROLE = "language";
|
|
688
|
-
function isTsgoLaunchVariant(variant) {
|
|
689
|
-
return variant === "native-ts7" || variant === "effect-tsgo";
|
|
690
|
-
}
|
|
691
|
-
function isAuxiliary(bearer) {
|
|
692
|
-
const declared = bearer?.role;
|
|
693
|
-
const role = typeof declared === "string" && Object.hasOwn(ROLE_MEMBERS, declared) ? ROLE_MEMBERS[declared] : DEFAULT_LSP_SERVER_ROLE;
|
|
694
|
-
switch (role) {
|
|
695
|
-
case "auxiliary":
|
|
696
|
-
return true;
|
|
697
|
-
case "language":
|
|
698
|
-
return false;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
var DEFAULT_RESEND_RECHECK = "unmeasured";
|
|
702
|
-
var DEFAULT_NOTIFY_INFLIGHT_LIMIT = 8;
|
|
703
|
-
var DEFAULT_REPLY_ORDERING = "unmeasured";
|
|
704
|
-
function serverTraits(declaration) {
|
|
705
|
-
const declaredLimit = declaration.notifyInflightLimit;
|
|
706
|
-
if (typeof declaredLimit === "number" && Number.isFinite(declaredLimit) && declaredLimit > 0) {
|
|
707
|
-
return {
|
|
708
|
-
role: declaration.role,
|
|
709
|
-
notifyInflightLimit: Math.floor(declaredLimit),
|
|
710
|
-
replyOrdering: declaration.replyOrdering ?? DEFAULT_REPLY_ORDERING,
|
|
711
|
-
resendRecheck: declaration.resendRecheck ?? DEFAULT_RESEND_RECHECK
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
const envLimit = Number(process.env.PI_LENS_LSP_AUX_NOTIFY_INFLIGHT);
|
|
715
|
-
return {
|
|
716
|
-
role: declaration.role,
|
|
717
|
-
notifyInflightLimit: Number.isFinite(envLimit) && envLimit > 0 ? Math.floor(envLimit) : DEFAULT_NOTIFY_INFLIGHT_LIMIT,
|
|
718
|
-
replyOrdering: declaration.replyOrdering ?? DEFAULT_REPLY_ORDERING,
|
|
719
|
-
resendRecheck: declaration.resendRecheck ?? DEFAULT_RESEND_RECHECK
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
|
|
723
730
|
// dist/clients/lsp/config.js
|
|
724
731
|
import * as os3 from "node:os";
|
|
725
732
|
import path5 from "node:path";
|
|
@@ -2690,7 +2697,6 @@ import { existsSync as existsSync2, readdirSync as readdirSync4 } from "node:fs"
|
|
|
2690
2697
|
import os5 from "node:os";
|
|
2691
2698
|
import path7 from "node:path";
|
|
2692
2699
|
var JAVA_EXE = process.platform === "win32" ? "java.exe" : "java";
|
|
2693
|
-
var JAVA_PROBE_TIMEOUT_MS = 5e3;
|
|
2694
2700
|
var MIN_JAVA_MAJOR = 17;
|
|
2695
2701
|
function jdkHomeFrom(dir) {
|
|
2696
2702
|
if (existsSync2(path7.join(dir, "bin", JAVA_EXE)))
|
|
@@ -2771,91 +2777,13 @@ function discoverJdkHome(roots = candidateRoots(), javaHome = process.env.JAVA_H
|
|
|
2771
2777
|
return usable[0].home;
|
|
2772
2778
|
}
|
|
2773
2779
|
var _cachedEnv;
|
|
2774
|
-
var
|
|
2775
|
-
var inFlightJavaProbe = null;
|
|
2776
|
-
function probeJavaOnPath() {
|
|
2777
|
-
const trustGeneration = getProjectTrustGeneration();
|
|
2778
|
-
const memo = javaAvailabilityLatch.read();
|
|
2779
|
-
if (memo !== null) {
|
|
2780
|
-
if (javaAvailabilityLatch.getOutcome() === "transient") {
|
|
2781
|
-
logAvailabilityDecision({
|
|
2782
|
-
tool: "java",
|
|
2783
|
-
verdict: "unavailable",
|
|
2784
|
-
outcome: "transient",
|
|
2785
|
-
cause: javaAvailabilityLatch.getCause() ?? "probe-timeout",
|
|
2786
|
-
elapsedMs: 0,
|
|
2787
|
-
latched: false,
|
|
2788
|
-
retryAfterMs: Math.max(0, javaAvailabilityLatch.getRetryAtMs() - Date.now()),
|
|
2789
|
-
budgetMs: JAVA_PROBE_TIMEOUT_MS,
|
|
2790
|
-
// No probe ran here: the latch's own remembered cause is replayed
|
|
2791
|
-
// as-is, so the call site is the one asserting it (#2209).
|
|
2792
|
-
classifiedBy: "caller"
|
|
2793
|
-
});
|
|
2794
|
-
return Promise.resolve(void 0);
|
|
2795
|
-
}
|
|
2796
|
-
return Promise.resolve(memo);
|
|
2797
|
-
}
|
|
2798
|
-
if (inFlightJavaProbe?.trustGeneration === trustGeneration)
|
|
2799
|
-
return inFlightJavaProbe.promise;
|
|
2800
|
-
const promise = runJavaProbe().finally(() => {
|
|
2801
|
-
if (inFlightJavaProbe?.promise === promise)
|
|
2802
|
-
inFlightJavaProbe = null;
|
|
2803
|
-
});
|
|
2804
|
-
inFlightJavaProbe = { trustGeneration, promise };
|
|
2805
|
-
return promise;
|
|
2806
|
-
}
|
|
2807
|
-
async function runJavaProbe() {
|
|
2808
|
-
const finder = process.platform === "win32" ? "where" : "which";
|
|
2809
|
-
const startedAt = Date.now();
|
|
2810
|
-
const sampler = startHostStallSampler();
|
|
2811
|
-
let result;
|
|
2812
|
-
let hostStallMs;
|
|
2813
|
-
try {
|
|
2814
|
-
result = await safeSpawnAsync(finder, ["java"], {
|
|
2815
|
-
timeout: JAVA_PROBE_TIMEOUT_MS
|
|
2816
|
-
});
|
|
2817
|
-
} finally {
|
|
2818
|
-
hostStallMs = sampler.stop();
|
|
2819
|
-
}
|
|
2820
|
-
const elapsedMs = Date.now() - startedAt;
|
|
2821
|
-
if (result.status === 0 && !result.error) {
|
|
2822
|
-
javaAvailabilityLatch.noteAvailable();
|
|
2823
|
-
logAvailabilityDecision({
|
|
2824
|
-
tool: "java",
|
|
2825
|
-
verdict: "available",
|
|
2826
|
-
outcome: "success",
|
|
2827
|
-
cause: "ok",
|
|
2828
|
-
elapsedMs,
|
|
2829
|
-
latched: true,
|
|
2830
|
-
hostStallMs,
|
|
2831
|
-
budgetMs: JAVA_PROBE_TIMEOUT_MS,
|
|
2832
|
-
classifiedBy: "probe"
|
|
2833
|
-
});
|
|
2834
|
-
return true;
|
|
2835
|
-
}
|
|
2836
|
-
const { outcome, cause, forced } = classifyFinderFailure(result, {
|
|
2837
|
-
hostStallMs
|
|
2838
|
-
});
|
|
2839
|
-
const retryAfterMs = javaAvailabilityLatch.noteUnavailable(outcome, cause);
|
|
2840
|
-
logAvailabilityDecision({
|
|
2841
|
-
tool: "java",
|
|
2842
|
-
verdict: "unavailable",
|
|
2843
|
-
outcome,
|
|
2844
|
-
cause,
|
|
2845
|
-
elapsedMs,
|
|
2846
|
-
latched: outcome !== "transient",
|
|
2847
|
-
hostStallMs,
|
|
2848
|
-
...retryAfterMs > 0 && { retryAfterMs },
|
|
2849
|
-
budgetMs: JAVA_PROBE_TIMEOUT_MS,
|
|
2850
|
-
classifiedBy: forced ? "caller" : "probe"
|
|
2851
|
-
});
|
|
2852
|
-
return outcome === "transient" ? void 0 : false;
|
|
2853
|
-
}
|
|
2780
|
+
var probeModule;
|
|
2854
2781
|
async function resolveJavaRuntimeEnv() {
|
|
2855
2782
|
if (_cachedEnv?.trustGeneration === getProjectTrustGeneration())
|
|
2856
2783
|
return _cachedEnv.value;
|
|
2784
|
+
const { toolOnPath } = probeModule ??= await import("./chunk-TWAQFMLW.js");
|
|
2857
2785
|
const trustGeneration = getProjectTrustGeneration();
|
|
2858
|
-
const javaOnPath = await
|
|
2786
|
+
const javaOnPath = await toolOnPath("java");
|
|
2859
2787
|
if (javaOnPath === true) {
|
|
2860
2788
|
_cachedEnv = { value: void 0, trustGeneration };
|
|
2861
2789
|
return void 0;
|
|
@@ -2879,16 +2807,6 @@ async function resolveJavaRuntimeEnv() {
|
|
|
2879
2807
|
return void 0;
|
|
2880
2808
|
}
|
|
2881
2809
|
|
|
2882
|
-
// dist/clients/lsp/server-covers.js
|
|
2883
|
-
var BUILTIN_SERVER_RUNNER_COVERS = /* @__PURE__ */ new Map([
|
|
2884
|
-
[
|
|
2885
|
-
"bash",
|
|
2886
|
-
{ runnerIds: ["shellcheck"], gateCommands: ["bash-language-server"] }
|
|
2887
|
-
],
|
|
2888
|
-
["shuck", { runnerIds: ["shellcheck"], gateCommands: ["shuck"] }],
|
|
2889
|
-
["toml", { runnerIds: ["taplo"], gateCommands: ["taplo"] }]
|
|
2890
|
-
]);
|
|
2891
|
-
|
|
2892
2810
|
// dist/clients/lsp/server.js
|
|
2893
2811
|
function withRootMarkers(root, markers) {
|
|
2894
2812
|
root.rootMarkers = markers;
|
|
@@ -3529,7 +3447,7 @@ async function resolveAndLaunch(spec, allowInstall) {
|
|
|
3529
3447
|
}
|
|
3530
3448
|
}
|
|
3531
3449
|
const runtimeInstall = trustRefused ? void 0 : spec.runtimeInstall;
|
|
3532
|
-
const runtimeAvailable = runtimeInstall ? await
|
|
3450
|
+
const runtimeAvailable = runtimeInstall ? await isCommandAvailableAsync(runtimeInstall.runtimeCommand) : false;
|
|
3533
3451
|
if (staleLaunch(generation, `${toolLabel}:runtimeAvailability`)) {
|
|
3534
3452
|
return void 0;
|
|
3535
3453
|
}
|
|
@@ -3567,7 +3485,7 @@ async function resolveAndLaunch(spec, allowInstall) {
|
|
|
3567
3485
|
async function resolveAndLaunchBundle(spec, allowInstall) {
|
|
3568
3486
|
let runtime;
|
|
3569
3487
|
for (const candidate of spec.runtimeCandidates) {
|
|
3570
|
-
if (await
|
|
3488
|
+
if (await isCommandAvailableAsync(candidate)) {
|
|
3571
3489
|
runtime = candidate;
|
|
3572
3490
|
break;
|
|
3573
3491
|
}
|
|
@@ -3880,9 +3798,6 @@ function NearestRoot(includePatterns, excludePatterns, stopDir) {
|
|
|
3880
3798
|
}, includePatterns);
|
|
3881
3799
|
}
|
|
3882
3800
|
var createRootDetector = NearestRoot;
|
|
3883
|
-
function isOnPath(command) {
|
|
3884
|
-
return isCommandAvailableAsync(command);
|
|
3885
|
-
}
|
|
3886
3801
|
async function tryGoInstallGopls() {
|
|
3887
3802
|
const isWindows2 = process.platform === "win32";
|
|
3888
3803
|
const result = await safeSpawnAsync(isWindows2 ? "go.exe" : "go", ["install", "golang.org/x/tools/gopls@latest"], { timeout: 18e4, ignoreAmbientSignal: true });
|
|
@@ -4335,9 +4250,9 @@ async function classifyAgentLevelMarker(extensionRootKey, file) {
|
|
|
4335
4250
|
var TypeScriptRoot = withRootMarkers(DenoExcludeRoot(async (file) => {
|
|
4336
4251
|
const extensionRootKey = piAgentExtensionsRootKey(file) ?? piAgentExtensionsRootKey(realpathOrResolve(file));
|
|
4337
4252
|
if (extensionRootKey) {
|
|
4338
|
-
const
|
|
4339
|
-
if (
|
|
4340
|
-
return
|
|
4253
|
+
const extensionRoot = await findExtensionBoundedRoot(file, extensionRootKey);
|
|
4254
|
+
if (extensionRoot)
|
|
4255
|
+
return extensionRoot;
|
|
4341
4256
|
const agentMarker = await classifyAgentLevelMarker(extensionRootKey, file);
|
|
4342
4257
|
if (agentMarker === "config") {
|
|
4343
4258
|
return realpathOrResolve(path8.dirname(extensionRootKey));
|