@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
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
getGlobalPiLensLogDir,
|
|
9
9
|
getMaxLogSizeMB,
|
|
10
10
|
getProbeHomeRedirectEvent,
|
|
11
|
+
getProcessSingleton,
|
|
11
12
|
getProcessSingletonResets,
|
|
12
13
|
getSinkOptionConflicts,
|
|
13
14
|
getSinkRotations,
|
|
@@ -18,11 +19,11 @@ import {
|
|
|
18
19
|
logLatency,
|
|
19
20
|
resetSinkRotations,
|
|
20
21
|
resetSinkWriteFailures
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HUWW77QY.js";
|
|
22
23
|
import {
|
|
23
24
|
getPathIdentityFallbacks,
|
|
24
25
|
resetPathIdentityFallbacks
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6MWX2J5H.js";
|
|
26
27
|
|
|
27
28
|
// dist/clients/extension-log.js
|
|
28
29
|
import * as path from "node:path";
|
|
@@ -628,6 +629,7 @@ var LENS_FLAGS = [
|
|
|
628
629
|
globalOptInFlag("lens-compact-lsp-status", "Opt-in (#3099): collapse the footer LSP status to one state glyph per group (LSP \u2713 green, LSP \u2717 red, dim LSP \u2717 when nothing is warm) instead of listing the active server names. Default off. Also via ui.compactLspStatus=true in ~/.pi-lens/config.json.", "ui.compactLspStatus"),
|
|
629
630
|
globalOptInFlag("lens-hide-lsp-status", "Opt-in (#3099): publish no pi-lens-lsp footer status at all, so a host that renders extension statuses stops showing the key. Outranks lens-compact-lsp-status when both are set. Default off. Also via ui.hideLspStatus=true in ~/.pi-lens/config.json.", "ui.hideLspStatus"),
|
|
630
631
|
globalOptInFlag("lens-compact-widget", "Opt-in (#3959): render the pi-lens widget as ONE summary line (languages + error/warning totals) instead of also stacking file rows, the suppressed count and blocker details below it. Default off. Also via ui.compactWidget=true in ~/.pi-lens/config.json.", "ui.compactWidget"),
|
|
632
|
+
globalOptInFlag("lens-issues-status", "Opt-in: publish a compact pi-lens-issues footer status (\u25CF<N>E, !<N>W, \u26A0 <N> unchecked, \u2713 clean) projected from the widget header. Default off. Also via ui.issuesStatus=true in ~/.pi-lens/config.json.", "ui.issuesStatus"),
|
|
631
633
|
{
|
|
632
634
|
name: "no-lazy-tools",
|
|
633
635
|
description: 'Keep every pi-lens tool active for the whole session. Same as tools.lazy=false in ~/.pi-lens/config.json; the default tools.lazy=true starts the situational tools inactive on every model, and tools.lazy="auto" only on models that support mid-conversation system messages.',
|
|
@@ -1031,6 +1033,17 @@ function readToolConfig(raw, warnInvalid) {
|
|
|
1031
1033
|
return Object.keys(result).length > 0 ? result : void 0;
|
|
1032
1034
|
}
|
|
1033
1035
|
|
|
1036
|
+
// dist/clients/spawn-abort-scope.js
|
|
1037
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
1038
|
+
var FAMILY = "spawn-abort-scope";
|
|
1039
|
+
var VERSION = 1;
|
|
1040
|
+
var scopes = getProcessSingleton(FAMILY, VERSION, () => ({
|
|
1041
|
+
abort: new AsyncLocalStorage(),
|
|
1042
|
+
cooldown: new AsyncLocalStorage()
|
|
1043
|
+
}));
|
|
1044
|
+
var spawnAbortScope = scopes.abort;
|
|
1045
|
+
var spawnCooldownScope = scopes.cooldown;
|
|
1046
|
+
|
|
1034
1047
|
export {
|
|
1035
1048
|
logExtension,
|
|
1036
1049
|
createSubsystemLogger,
|
|
@@ -1045,6 +1058,8 @@ export {
|
|
|
1045
1058
|
getDegradationSummary,
|
|
1046
1059
|
renderDegradationLines,
|
|
1047
1060
|
resetDegradationLedger,
|
|
1061
|
+
spawnAbortScope,
|
|
1062
|
+
spawnCooldownScope,
|
|
1048
1063
|
compareOrdinal,
|
|
1049
1064
|
escapeRegExp,
|
|
1050
1065
|
LENS_FLAGS,
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
isUnderSecretsLaneScratchTree,
|
|
5
5
|
nestedWorktreeOffsets,
|
|
6
6
|
rootPathRegexSource
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OG3UCAHV.js";
|
|
8
8
|
import {
|
|
9
9
|
SecurityScanClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FD4LJQ6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
parseReportJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HFIFEH46.js";
|
|
14
14
|
import {
|
|
15
15
|
collectTrackedFiles,
|
|
16
16
|
collectUntrackedIgnoredIds,
|
|
17
17
|
safeSpawnAsync
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-M3QGXGY4.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeEphemeralMapKey,
|
|
21
21
|
normalizeMapKey,
|
|
22
22
|
realpathOrResolve,
|
|
23
23
|
relativeInside,
|
|
24
24
|
walkUpDirs
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6MWX2J5H.js";
|
|
26
26
|
|
|
27
27
|
// dist/clients/gitleaks-client.js
|
|
28
28
|
import * as fs from "node:fs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withFactTree
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IO6P3NBP.js";
|
|
5
5
|
import {
|
|
6
6
|
childrenOfType,
|
|
7
7
|
firstChildOfType,
|
|
8
8
|
walk
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4GLSO2EM.js";
|
|
10
10
|
import {
|
|
11
11
|
isJstsFactFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SL4G67AP.js";
|
|
13
13
|
import {
|
|
14
14
|
logLatency
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HUWW77QY.js";
|
|
16
16
|
|
|
17
17
|
// dist/clients/dispatch/facts/import-facts.js
|
|
18
18
|
function importFactsApplyTo(filePath) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveRunnerPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-62PIU4TO.js";
|
|
5
5
|
import {
|
|
6
6
|
hashFileBytes
|
|
7
7
|
} from "./chunk-CIA7X2PZ.js";
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
recordDegradationOnce,
|
|
10
10
|
resolveLensToolName,
|
|
11
11
|
translateGuidanceToolNames
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P7EV5ISR.js";
|
|
13
13
|
import {
|
|
14
14
|
freshnessFromMtime
|
|
15
15
|
} from "./chunk-S26LC76R.js";
|
|
16
16
|
import {
|
|
17
17
|
logLatency
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HUWW77QY.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeMapKey,
|
|
21
21
|
toProjectRelativePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6MWX2J5H.js";
|
|
23
23
|
|
|
24
24
|
// dist/clients/advisory-provenance.js
|
|
25
25
|
import * as fs from "node:fs";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-2APSZHHI.js";
|
|
7
7
|
import {
|
|
8
8
|
truncatedByOutputCap
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EKQDQPX6.js";
|
|
10
10
|
import {
|
|
11
11
|
LEDGER_FIELD_MAX,
|
|
12
12
|
incrementDegradationCount,
|
|
13
13
|
truncateForLedger
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P7EV5ISR.js";
|
|
15
15
|
|
|
16
16
|
// dist/clients/dispatch/runners/utils/spawn-outcome.js
|
|
17
17
|
function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
|
|
@@ -2,21 +2,21 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
createAvailabilityProbeFlight,
|
|
4
4
|
probeToolAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WWZLT6AM.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyProbeFailure,
|
|
8
8
|
createAvailabilityLatch,
|
|
9
9
|
logAvailabilityDecision,
|
|
10
10
|
startHostStallSampler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LDPY22FS.js";
|
|
12
12
|
import {
|
|
13
13
|
createGenerationSource,
|
|
14
14
|
isUntrustedProjectPath,
|
|
15
15
|
recordProjectCommandRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M3QGXGY4.js";
|
|
17
17
|
import {
|
|
18
18
|
createSingleFlight
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GIK6VUCY.js";
|
|
20
20
|
|
|
21
21
|
// dist/clients/dispatch/runners/utils/candidate-probe.js
|
|
22
22
|
import * as fs from "node:fs";
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildModuleGraph
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KSQJBGRO.js";
|
|
5
5
|
import {
|
|
6
6
|
aliasedImportTargets,
|
|
7
7
|
referencedProjectImportTarget
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H6DNTQ4V.js";
|
|
9
9
|
import {
|
|
10
10
|
getSharedTreeSitterClient,
|
|
11
11
|
loadWebTreeSitter,
|
|
12
12
|
logTreeSitterDiagnostic,
|
|
13
13
|
resolveTreeSitterLanguage,
|
|
14
14
|
wasmQueryInput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4GLSO2EM.js";
|
|
16
16
|
import {
|
|
17
17
|
EXTENSION_TO_GRAMMAR,
|
|
18
18
|
KIND_TO_GRAMMAR
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NAACKIKT.js";
|
|
20
20
|
import {
|
|
21
21
|
toRunnerDisplayPath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-62PIU4TO.js";
|
|
23
23
|
import {
|
|
24
24
|
LSP_QUERY_MAX_FILE_LINES_MAX,
|
|
25
25
|
getGlobalLspQueryMaxFileLines,
|
|
26
26
|
loadPiLensGlobalConfig
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
isFileKind
|
|
30
|
-
} from "./chunk-CQY2HEH7.js";
|
|
27
|
+
} from "./chunk-M3QGXGY4.js";
|
|
31
28
|
import {
|
|
32
29
|
isDeclarationFile
|
|
33
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-N2U644ZW.js";
|
|
31
|
+
import {
|
|
32
|
+
isFileKind
|
|
33
|
+
} from "./chunk-SL4G67AP.js";
|
|
34
34
|
import {
|
|
35
35
|
hashContentBytes
|
|
36
36
|
} from "./chunk-CIA7X2PZ.js";
|
|
37
37
|
import {
|
|
38
38
|
HOOK_WALL_BUDGET_MS,
|
|
39
39
|
bounded
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EKQDQPX6.js";
|
|
41
41
|
import {
|
|
42
42
|
incrementDegradationCount,
|
|
43
43
|
recordDegradationOnce
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-P7EV5ISR.js";
|
|
45
45
|
import {
|
|
46
46
|
freshnessFromMtime
|
|
47
47
|
} from "./chunk-S26LC76R.js";
|
|
48
48
|
import {
|
|
49
49
|
toPositiveFinite
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HUWW77QY.js";
|
|
51
51
|
import {
|
|
52
52
|
BoundedFifoMap,
|
|
53
53
|
BoundedLruCache,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
normalizeEphemeralMapKey,
|
|
57
57
|
normalizeMapKey,
|
|
58
58
|
walkUpDirs
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6MWX2J5H.js";
|
|
60
60
|
|
|
61
61
|
// dist/clients/blocker-freshness.js
|
|
62
62
|
import * as fs4 from "node:fs";
|
|
@@ -907,9 +907,29 @@ var SYMBOL_QUERIES = {
|
|
|
907
907
|
name: (identifier) @funcName
|
|
908
908
|
parameters: (parameters) @funcParams) @funcDef
|
|
909
909
|
|
|
910
|
-
;; Struct
|
|
910
|
+
;; Struct, enum, trait, type alias, const and mod items (#5599). Each
|
|
911
|
+
;; reuses a SymbolKind the other languages already map to: struct and
|
|
912
|
+
;; enum are classes, a trait is an interface, a mod is a module (class,
|
|
913
|
+
;; as for ruby/elixir/ocaml), a const is a variable. struct_item
|
|
914
|
+
;; was captured as @structName, which no branch read, so structs never
|
|
915
|
+
;; reached the graph.
|
|
911
916
|
(struct_item
|
|
912
|
-
name: (type_identifier) @
|
|
917
|
+
name: (type_identifier) @className) @classDef
|
|
918
|
+
|
|
919
|
+
(enum_item
|
|
920
|
+
name: (type_identifier) @className) @classDef
|
|
921
|
+
|
|
922
|
+
(trait_item
|
|
923
|
+
name: (type_identifier) @interfaceName) @interfaceDef
|
|
924
|
+
|
|
925
|
+
(type_item
|
|
926
|
+
name: (type_identifier) @typeName) @typeDef
|
|
927
|
+
|
|
928
|
+
(const_item
|
|
929
|
+
name: (identifier) @constName) @constDef
|
|
930
|
+
|
|
931
|
+
(mod_item
|
|
932
|
+
name: (identifier) @moduleName) @moduleDef
|
|
913
933
|
|
|
914
934
|
;; Impl blocks: impl Foo { fn bar() { } }
|
|
915
935
|
(impl_item
|
|
@@ -1424,6 +1444,79 @@ SYMBOL_QUERIES.javascript = {
|
|
|
1424
1444
|
constructor: (identifier) @newIdent) @newRef
|
|
1425
1445
|
`
|
|
1426
1446
|
};
|
|
1447
|
+
function exportedByAccess(node, rule) {
|
|
1448
|
+
if (!rule.isPublic(node))
|
|
1449
|
+
return false;
|
|
1450
|
+
for (let up = node.parent; up; up = up.parent) {
|
|
1451
|
+
if (rule.bodies.includes(up.type))
|
|
1452
|
+
return false;
|
|
1453
|
+
if (rule.containers.includes(up.type))
|
|
1454
|
+
return exportedByAccess(up, rule);
|
|
1455
|
+
}
|
|
1456
|
+
return true;
|
|
1457
|
+
}
|
|
1458
|
+
var childOfType = (node, type) => (node.children ?? []).find((c) => c?.type === type);
|
|
1459
|
+
var RUST_ACCESS = {
|
|
1460
|
+
containers: ["mod_item", "trait_item"],
|
|
1461
|
+
bodies: ["block"],
|
|
1462
|
+
isPublic: (node) => node.parent?.parent?.type === "trait_item" || childOfType(node, "visibility_modifier")?.text === "pub"
|
|
1463
|
+
};
|
|
1464
|
+
var rustExportRule = (node) => node.parent?.parent?.type === "impl_item" && node.parent.parent.childForFieldName("trait") ? void 0 : exportedByAccess(node, RUST_ACCESS);
|
|
1465
|
+
var GO_ACCESS = {
|
|
1466
|
+
containers: [],
|
|
1467
|
+
bodies: ["block"],
|
|
1468
|
+
isPublic: (node) => /^\p{Lu}/u.test(String(node.childForFieldName("name")?.text ?? ""))
|
|
1469
|
+
};
|
|
1470
|
+
var JAVA_ACCESS = {
|
|
1471
|
+
containers: [
|
|
1472
|
+
"class_declaration",
|
|
1473
|
+
"interface_declaration",
|
|
1474
|
+
"enum_declaration",
|
|
1475
|
+
"record_declaration",
|
|
1476
|
+
"annotation_type_declaration"
|
|
1477
|
+
],
|
|
1478
|
+
bodies: ["block", "constructor_body"],
|
|
1479
|
+
isPublic: (node) => {
|
|
1480
|
+
const modifiers = childOfType(node, "modifiers");
|
|
1481
|
+
const has = (keyword) => !!modifiers && !!childOfType(modifiers, keyword);
|
|
1482
|
+
return node.parent?.type === "interface_body" || node.parent?.type === "annotation_type_body" ? !has("private") : has("public");
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
var KOTLIN_ACCESS = {
|
|
1486
|
+
containers: ["class_declaration", "object_declaration"],
|
|
1487
|
+
bodies: ["function_body"],
|
|
1488
|
+
isPublic: (node) => {
|
|
1489
|
+
const modifiers = childOfType(node, "modifiers");
|
|
1490
|
+
const visibility = modifiers ? childOfType(modifiers, "visibility_modifier")?.text : void 0;
|
|
1491
|
+
return visibility === void 0 || visibility === "public";
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
var CSHARP_ACCESS = {
|
|
1495
|
+
containers: [
|
|
1496
|
+
"class_declaration",
|
|
1497
|
+
"struct_declaration",
|
|
1498
|
+
"interface_declaration",
|
|
1499
|
+
"enum_declaration",
|
|
1500
|
+
"record_declaration"
|
|
1501
|
+
],
|
|
1502
|
+
bodies: [],
|
|
1503
|
+
isPublic: (node) => {
|
|
1504
|
+
const has = (keyword) => (node.children ?? []).some((c) => c?.type === "modifier" && c.text === keyword);
|
|
1505
|
+
return node.parent?.parent?.type === "interface_declaration" ? !has("private") && !has("internal") && !has("protected") : has("public");
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
var EXPORT_RULES = {
|
|
1509
|
+
rust: rustExportRule,
|
|
1510
|
+
go: (node) => exportedByAccess(node, GO_ACCESS),
|
|
1511
|
+
java: (node) => exportedByAccess(node, JAVA_ACCESS),
|
|
1512
|
+
kotlin: (node) => exportedByAccess(node, KOTLIN_ACCESS),
|
|
1513
|
+
csharp: (node) => exportedByAccess(node, CSHARP_ACCESS)
|
|
1514
|
+
};
|
|
1515
|
+
var JS_TS_EXPORT_LANGUAGES = [
|
|
1516
|
+
"typescript",
|
|
1517
|
+
"tsx",
|
|
1518
|
+
"javascript"
|
|
1519
|
+
];
|
|
1427
1520
|
function symbolExtractionGrammar(kind, filePath) {
|
|
1428
1521
|
if (!kind)
|
|
1429
1522
|
return void 0;
|
|
@@ -1727,6 +1820,11 @@ var TreeSitterSymbolExtractor = class _TreeSitterSymbolExtractor {
|
|
|
1727
1820
|
name = captures.typeName.text;
|
|
1728
1821
|
kind = "type";
|
|
1729
1822
|
defNode = captures.typeDef?.node;
|
|
1823
|
+
} else if (captures.constName) {
|
|
1824
|
+
nameNode = captures.constName.node;
|
|
1825
|
+
name = captures.constName.text;
|
|
1826
|
+
kind = "variable";
|
|
1827
|
+
defNode = captures.constDef?.node;
|
|
1730
1828
|
} else if (captures.moduleName) {
|
|
1731
1829
|
nameNode = captures.moduleName.node;
|
|
1732
1830
|
name = captures.moduleName.text;
|
|
@@ -1977,6 +2075,11 @@ var TreeSitterSymbolExtractor = class _TreeSitterSymbolExtractor {
|
|
|
1977
2075
|
}
|
|
1978
2076
|
// biome-ignore lint/suspicious/noExplicitAny: Node type
|
|
1979
2077
|
isExported(node, lineAt) {
|
|
2078
|
+
const rule = EXPORT_RULES[this.languageId];
|
|
2079
|
+
if (rule)
|
|
2080
|
+
return rule(node);
|
|
2081
|
+
if (!JS_TS_EXPORT_LANGUAGES.includes(this.languageId))
|
|
2082
|
+
return void 0;
|
|
1980
2083
|
const line = lineAt(node.startPosition.row);
|
|
1981
2084
|
return /^\s*export\b/.test(line) || this.hasExportModifier(node);
|
|
1982
2085
|
}
|
|
@@ -2478,11 +2581,11 @@ async function sweepInlineBlockerFreshness(runtime, cwd, options) {
|
|
|
2478
2581
|
let ownVerdict;
|
|
2479
2582
|
if (setSelfDrift) {
|
|
2480
2583
|
const hashBudgetWasExhausted = hashBudget.exhausted;
|
|
2481
|
-
const selfDrift = await bounded(detectSelfDrift({
|
|
2584
|
+
const selfDrift = await bounded((signal) => detectSelfDrift({
|
|
2482
2585
|
filePath: entry.filePath,
|
|
2483
2586
|
recordedSize: entry.recordedSize,
|
|
2484
2587
|
recordedHash: entry.recordedHash,
|
|
2485
|
-
signal
|
|
2588
|
+
signal,
|
|
2486
2589
|
budget: hashBudget
|
|
2487
2590
|
}), {
|
|
2488
2591
|
ms: HOOK_WALL_BUDGET_MS.turn_end,
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getScratchTreeDirNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OG3UCAHV.js";
|
|
5
5
|
import {
|
|
6
6
|
SecurityScanClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FD4LJQ6Y.js";
|
|
8
8
|
import {
|
|
9
9
|
runReportScan
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-HFIFEH46.js";
|
|
11
|
+
import "./chunk-QQGZY2BR.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveOpengrepConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-J7VNGHLN.js";
|
|
15
|
+
import "./chunk-5HVDD7IA.js";
|
|
16
16
|
import {
|
|
17
17
|
stripPackRuleIdPrefix
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HMXWZUQW.js";
|
|
19
19
|
import "./chunk-2APSZHHI.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WWZLT6AM.js";
|
|
21
|
+
import "./chunk-LDPY22FS.js";
|
|
22
22
|
import {
|
|
23
23
|
safeSpawnAsync
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-M3QGXGY4.js";
|
|
25
|
+
import "./chunk-GIK6VUCY.js";
|
|
26
|
+
import "./chunk-N2U644ZW.js";
|
|
27
|
+
import "./chunk-DLGJYQML.js";
|
|
28
|
+
import "./chunk-EKQDQPX6.js";
|
|
29
29
|
import {
|
|
30
30
|
LEDGER_FIELD_MAX,
|
|
31
31
|
recordDegradationOnce
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-P7EV5ISR.js";
|
|
33
33
|
import "./chunk-S26LC76R.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-HUWW77QY.js";
|
|
35
35
|
import "./chunk-LJDODBBZ.js";
|
|
36
36
|
import {
|
|
37
37
|
realpathOrResolve
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6MWX2J5H.js";
|
|
39
39
|
import "./chunk-NXL4FFQQ.js";
|
|
40
40
|
|
|
41
41
|
// dist/clients/opengrep-client.js
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
findNearestDirWithMarker
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DLGJYQML.js";
|
|
5
5
|
import {
|
|
6
6
|
isWindowsPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6MWX2J5H.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/file-kinds.js
|
|
10
10
|
import { basename, extname, win32 } from "node:path";
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
readJsonCache
|
|
4
|
-
} from "./chunk-TQWRH25U.js";
|
|
5
2
|
import {
|
|
6
3
|
hasTomlTable,
|
|
7
4
|
normalizeToml
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DKXIUGNA.js";
|
|
9
6
|
import {
|
|
10
7
|
rootMarkersForFile
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HOWHAKXO.js";
|
|
9
|
+
import {
|
|
10
|
+
readJsonCache
|
|
11
|
+
} from "./chunk-TQWRH25U.js";
|
|
12
12
|
import {
|
|
13
13
|
createGenerationMap,
|
|
14
|
-
createGenerationSource
|
|
15
|
-
|
|
14
|
+
createGenerationSource,
|
|
15
|
+
isUntrustedProjectPath,
|
|
16
|
+
recordProjectCommandRefusal
|
|
17
|
+
} from "./chunk-M3QGXGY4.js";
|
|
16
18
|
import {
|
|
17
19
|
getDegradationLedgerGeneration,
|
|
18
20
|
logExtension,
|
|
19
21
|
recordDegradationOnce
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-P7EV5ISR.js";
|
|
21
23
|
import {
|
|
22
24
|
isRealGitMarker,
|
|
23
25
|
isUnderDir,
|
|
@@ -28,7 +30,7 @@ import {
|
|
|
28
30
|
realpathOrResolve,
|
|
29
31
|
toPosix,
|
|
30
32
|
walkUpDirs
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6MWX2J5H.js";
|
|
32
34
|
|
|
33
35
|
// dist/clients/tool-config-presence.js
|
|
34
36
|
import * as fs2 from "node:fs";
|
|
@@ -712,6 +714,11 @@ function configAnchorOf(tool, fromDir, options) {
|
|
|
712
714
|
const anchored = CONFIG_ANCHORED_RUNNERS.find((id) => id === tool);
|
|
713
715
|
return anchored ? findToolConfig(anchored, fromDir, options) : void 0;
|
|
714
716
|
}
|
|
717
|
+
function configCeiling(cwd, projectRoot) {
|
|
718
|
+
if (!projectRoot)
|
|
719
|
+
return cwd;
|
|
720
|
+
return isUnderDir(cwd, projectRoot) ? projectRoot : cwd;
|
|
721
|
+
}
|
|
715
722
|
function resolveToolCwd(kind, tool, file, ctx) {
|
|
716
723
|
if (ctx.serverRoot) {
|
|
717
724
|
const rootPath = isWindowsPath(ctx.serverRoot) ? path2.win32 : path2;
|
|
@@ -732,7 +739,7 @@ function resolveToolCwd(kind, tool, file, ctx) {
|
|
|
732
739
|
if (markerRoot && (insideDispatch ? isUnderDir(markerRoot, dispatchRoot) : true)) {
|
|
733
740
|
const anchor = kind === "runner" && !ctx.rootMarkers ? configAnchorOf(tool, markerRoot, {
|
|
734
741
|
homeDir,
|
|
735
|
-
...insideDispatch ? { ceiling: dispatchRoot } : {}
|
|
742
|
+
...insideDispatch ? { ceiling: configCeiling(dispatchRoot, ctx.projectRoot) } : {}
|
|
736
743
|
}) : void 0;
|
|
737
744
|
if (anchor && !pathsEqual(anchor.dir, markerRoot) && !pathsEqual(anchor.dir, homeCeiling)) {
|
|
738
745
|
const anchorMarker = basename(anchor.file);
|
|
@@ -798,13 +805,43 @@ function resolveRunnerCwdWithReason(ctx, tool) {
|
|
|
798
805
|
return resolveToolCwd("runner", tool, ctx.filePath, ctx);
|
|
799
806
|
}
|
|
800
807
|
|
|
808
|
+
// dist/clients/command-path.js
|
|
809
|
+
import { statSync } from "node:fs";
|
|
810
|
+
import * as path3 from "node:path";
|
|
811
|
+
function findCommandOnPath(command, isWindows) {
|
|
812
|
+
const pathEnv = process.env.PATH || process.env.Path || process.env.path || "";
|
|
813
|
+
const dirs = pathEnv.split(path3.delimiter);
|
|
814
|
+
const names = isWindows ? [command, `${command}.exe`, `${command}.cmd`, `${command}.bat`] : [command];
|
|
815
|
+
for (const dir of dirs) {
|
|
816
|
+
if (!dir)
|
|
817
|
+
continue;
|
|
818
|
+
for (const name of names) {
|
|
819
|
+
const candidate = isWindows ? path3.join(dir, name) : `${dir}${path3.sep}${name}`;
|
|
820
|
+
try {
|
|
821
|
+
const stat = statSync(candidate);
|
|
822
|
+
if (!stat.isFile() || stat.size === 0)
|
|
823
|
+
continue;
|
|
824
|
+
if (isUntrustedProjectPath(candidate)) {
|
|
825
|
+
recordProjectCommandRefusal(candidate);
|
|
826
|
+
continue;
|
|
827
|
+
}
|
|
828
|
+
return candidate;
|
|
829
|
+
} catch {
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
return null;
|
|
834
|
+
}
|
|
835
|
+
|
|
801
836
|
export {
|
|
802
837
|
readFileContent,
|
|
803
838
|
findToolConfig,
|
|
804
839
|
toolConfigDirs,
|
|
805
840
|
hasToolConfig,
|
|
806
841
|
logRunnerAdvisoryOnce,
|
|
842
|
+
configCeiling,
|
|
807
843
|
resolveToolCwd,
|
|
808
844
|
resolveRunnerCwd,
|
|
809
|
-
resolveRunnerCwdWithReason
|
|
845
|
+
resolveRunnerCwdWithReason,
|
|
846
|
+
findCommandOnPath
|
|
810
847
|
};
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
findModuleForPath,
|
|
7
7
|
getDownstreamModules,
|
|
8
8
|
getModuleSourceFiles
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KSQJBGRO.js";
|
|
10
10
|
import {
|
|
11
11
|
detectFileRole
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N2U644ZW.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeMapKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6MWX2J5H.js";
|
|
16
16
|
|
|
17
17
|
// dist/clients/review-graph/query.js
|
|
18
18
|
function dedupe(items) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isExcludedDirName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M3QGXGY4.js";
|
|
5
5
|
import {
|
|
6
6
|
createDeadline,
|
|
7
7
|
yieldIfOverBudget
|
|
8
8
|
} from "./chunk-QYF5S6P6.js";
|
|
9
9
|
import {
|
|
10
10
|
isGeneratedArtifactDirectoryName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N2U644ZW.js";
|
|
12
12
|
|
|
13
13
|
// dist/clients/source-walker.js
|
|
14
14
|
import * as fs from "node:fs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
GoClient,
|
|
4
|
+
goClient,
|
|
5
|
+
resetGoAvailability
|
|
6
|
+
} from "./chunk-7ORBRDFY.js";
|
|
7
|
+
import "./chunk-S247BOH2.js";
|
|
8
|
+
import "./chunk-WWZLT6AM.js";
|
|
9
|
+
import "./chunk-LDPY22FS.js";
|
|
10
|
+
import "./chunk-M3QGXGY4.js";
|
|
11
|
+
import "./chunk-GIK6VUCY.js";
|
|
12
|
+
import "./chunk-N2U644ZW.js";
|
|
13
|
+
import "./chunk-DLGJYQML.js";
|
|
14
|
+
import "./chunk-EKQDQPX6.js";
|
|
15
|
+
import "./chunk-P7EV5ISR.js";
|
|
16
|
+
import "./chunk-S26LC76R.js";
|
|
17
|
+
import "./chunk-HUWW77QY.js";
|
|
18
|
+
import "./chunk-LJDODBBZ.js";
|
|
19
|
+
import "./chunk-6MWX2J5H.js";
|
|
20
|
+
import "./chunk-NXL4FFQQ.js";
|
|
21
|
+
export {
|
|
22
|
+
GoClient,
|
|
23
|
+
goClient,
|
|
24
|
+
resetGoAvailability
|
|
25
|
+
};
|