@herbertgao/pi-extensions 2026.11.3 → 2026.11.4
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 +9 -0
- package/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +33 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +72 -17
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +10 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +16 -7
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +7 -5
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +92 -0
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +92 -0
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +27 -0
- package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +64 -5
- package/node_modules/pi-commandcode-provider/README.md +40 -26
- package/node_modules/pi-commandcode-provider/RELEASE.md +25 -0
- package/node_modules/pi-commandcode-provider/index.ts +212 -38
- package/node_modules/pi-commandcode-provider/package.json +9 -8
- package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +6 -13
- package/node_modules/pi-commandcode-provider/scripts/typecheck-entrypoint.mjs +88 -0
- package/node_modules/pi-commandcode-provider/src/api-key.ts +43 -2
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
- package/node_modules/pi-commandcode-provider/src/cost.ts +3 -37
- package/node_modules/pi-commandcode-provider/src/diagnostics.ts +215 -0
- package/node_modules/pi-commandcode-provider/src/oauth.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/quota-command.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/routing.ts +166 -0
- package/node_modules/pi-commandcode-provider/src/runtime.ts +15 -9
- package/node_modules/pi-commandcode-provider/src/transport.ts +79 -85
- package/node_modules/pi-commandcode-provider/src/types.ts +20 -39
- package/node_modules/pi-commandcode-provider/src/usage.ts +1 -1
- package/node_modules/pi-lens/CHANGELOG-USER.md +31 -0
- package/node_modules/pi-lens/CHANGELOG.md +178 -0
- package/node_modules/pi-lens/README.md +2 -1
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/node_modules/pi-lens/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/node_modules/pi-lens/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/node_modules/pi-lens/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-4ENEJHF4.js +198 -0
- package/node_modules/pi-lens/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/node_modules/pi-lens/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/node_modules/pi-lens/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/node_modules/pi-lens/dist/chunk-DGKFWQK4.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/node_modules/pi-lens/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/node_modules/pi-lens/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/node_modules/pi-lens/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/node_modules/pi-lens/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/node_modules/pi-lens/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-H6FLQ5NW.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/node_modules/pi-lens/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/node_modules/pi-lens/dist/chunk-KR5VGMVT.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/node_modules/pi-lens/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/node_modules/pi-lens/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/node_modules/pi-lens/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/node_modules/pi-lens/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/node_modules/pi-lens/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/node_modules/pi-lens/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/node_modules/pi-lens/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/node_modules/pi-lens/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/node_modules/pi-lens/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-Q6JQKWPK.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-QJJKOHLH.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/node_modules/pi-lens/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/node_modules/pi-lens/dist/chunk-T5QSLSMM.js +50 -0
- package/node_modules/pi-lens/dist/chunk-TGQDAG4B.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/node_modules/pi-lens/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/node_modules/pi-lens/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-TYHPVE5H.js +25 -0
- package/node_modules/pi-lens/dist/chunk-UAKO2M6B.js +73 -0
- package/node_modules/pi-lens/dist/chunk-UC5AXW5Z.js +20 -0
- package/node_modules/pi-lens/dist/chunk-UTJP6WOS.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/node_modules/pi-lens/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/node_modules/pi-lens/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/node_modules/pi-lens/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/node_modules/pi-lens/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/node_modules/pi-lens/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/node_modules/pi-lens/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/node_modules/pi-lens/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-ZD4KVFXI.js +234 -0
- package/node_modules/pi-lens/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/node_modules/pi-lens/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/node_modules/pi-lens/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/node_modules/pi-lens/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/node_modules/pi-lens/dist/index.js +4910 -4218
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +12 -17
- package/node_modules/pi-lens/dist/mcp/cli.js +41 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1451 -648
- package/node_modules/pi-lens/dist/mcp/worker.js +59 -60
- package/node_modules/pi-lens/dist/probes/installer.js +17 -19
- package/node_modules/pi-lens/docs/agent-tools.md +40 -8
- package/node_modules/pi-lens/docs/analysisall.md +1 -1
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +7 -5
- package/node_modules/pi-lens/docs/configuration.md +51 -9
- package/node_modules/pi-lens/docs/defect-shapes.md +52 -3
- package/node_modules/pi-lens/docs/environment-variables.md +18 -1
- package/node_modules/pi-lens/docs/features.md +12 -5
- package/node_modules/pi-lens/docs/globalconfig.md +11 -3
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +9 -2
- package/node_modules/pi-lens/docs/invariants/session-telemetry.md +2 -2
- package/node_modules/pi-lens/docs/language-coverage.md +1 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +57 -35
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +4 -1
- package/node_modules/pi-lens/docs/merge-queue-rollout.md +10 -8
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +34 -23
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +11 -1
- package/node_modules/pi-lens/docs/pi-lens-investigator.md +3 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +15 -7
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +13 -0
- package/node_modules/pi-lens/docs/public-api-stability.md +39 -5
- package/node_modules/pi-lens/docs/release-qa-baseline.md +7 -4
- package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +11 -2
- package/node_modules/pi-lens/docs/servercapabilities.md +3 -1
- package/node_modules/pi-lens/docs/settings.md +2 -2
- package/node_modules/pi-lens/docs/word-index.md +3 -2
- package/node_modules/pi-lens/package.json +8 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/node_modules/pi-lens/scripts/download-grammars.js +3 -2
- package/node_modules/pi-lens/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/node_modules/pi-provider-qoder/dist/index.js +473 -62
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/package.json +10 -8
- package/node_modules/pi-commandcode-provider/src/converters.ts +0 -419
- package/node_modules/pi-commandcode-provider/src/core.ts +0 -861
- package/node_modules/pi-commandcode-provider/src/json-schema.ts +0 -417
- package/node_modules/pi-commandcode-provider/src/transcript.ts +0 -56
- package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +0 -31
- package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +0 -27
- package/node_modules/pi-lens/dist/chunk-447YZL4S.js +0 -25
- package/node_modules/pi-lens/dist/chunk-565VRUP4.js +0 -136
- package/node_modules/pi-lens/dist/chunk-57X2CDRX.js +0 -49
- package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +0 -27
- package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +0 -58
- package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +0 -22
- package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +0 -89
- package/node_modules/pi-lens/dist/chunk-U3AS2FR6.js +0 -106
- package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +0 -27
- package/node_modules/pi-lens/dist/chunk-WQV6BI4Q.js +0 -48
- package/node_modules/pi-lens/dist/chunk-YHGYAEFH.js +0 -443
- package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +0 -74
- package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +0 -30
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getSourceFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CDFJF5YD.js";
|
|
5
5
|
import {
|
|
6
6
|
readDirEntriesSafe,
|
|
7
7
|
shouldRecurseIntoDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZCQBNPRH.js";
|
|
9
9
|
import {
|
|
10
10
|
getProjectIgnoreMatcher
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TMNUTMT5.js";
|
|
12
12
|
import {
|
|
13
13
|
CODE_KINDS,
|
|
14
14
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
LEAN_ROOT_MARKERS,
|
|
18
18
|
TERRAGRUNT_FILENAMES,
|
|
19
19
|
detectFileKind
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CZCAZVTD.js";
|
|
21
21
|
import {
|
|
22
22
|
findNearestDirWithAnyBasename,
|
|
23
23
|
registerWorkspaceTopologyReset
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NL5LSKVD.js";
|
|
25
25
|
import {
|
|
26
26
|
BoundedLruCache,
|
|
27
27
|
direntsHaveMarkerGlobMatch,
|
|
28
28
|
isUnderDir,
|
|
29
29
|
normalizeMapKey,
|
|
30
30
|
realpathOrResolve
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
32
32
|
|
|
33
33
|
// dist/clients/language-profile.js
|
|
34
34
|
import * as fs from "node:fs";
|
|
@@ -94,6 +94,7 @@ var LANGUAGE_POLICY = {
|
|
|
94
94
|
lua: { lspCapable: true },
|
|
95
95
|
zig: { lspCapable: true },
|
|
96
96
|
haskell: { lspCapable: true },
|
|
97
|
+
groovy: { lspCapable: true },
|
|
97
98
|
"helm-template": { lspCapable: false },
|
|
98
99
|
elixir: { lspCapable: true },
|
|
99
100
|
gleam: { lspCapable: true },
|
|
@@ -221,6 +222,7 @@ var PRIMARY_DISPATCH_GROUPS = {
|
|
|
221
222
|
lua: { mode: "fallback", runnerIds: ["lsp"], filterKinds: ["lua"] },
|
|
222
223
|
zig: { mode: "all", runnerIds: ["lsp", "zig-check"], filterKinds: ["zig"] },
|
|
223
224
|
haskell: { mode: "fallback", runnerIds: ["lsp"], filterKinds: ["haskell"] },
|
|
225
|
+
groovy: { mode: "fallback", runnerIds: ["lsp"], filterKinds: ["groovy"] },
|
|
224
226
|
"helm-template": {
|
|
225
227
|
mode: "all",
|
|
226
228
|
// helm-render is opt-in (`helm.renderValidation.enabled`) and skips itself
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
getAmbientAbortSignal,
|
|
11
11
|
hasSpawnFailureKind,
|
|
12
12
|
holdOwnChildPid,
|
|
13
|
-
isCommandAvailable,
|
|
14
13
|
isCommandAvailableAsync,
|
|
15
14
|
isOwnLiveChild,
|
|
16
15
|
mergeWindowsEnvironment,
|
|
@@ -22,23 +21,20 @@ import {
|
|
|
22
21
|
resolveWindowsCommandForEnvironment,
|
|
23
22
|
safeSpawn,
|
|
24
23
|
safeSpawnAsync,
|
|
25
|
-
safeSpawnBatch,
|
|
26
24
|
setAmbientAbortSignal,
|
|
27
25
|
spawnAbortScope,
|
|
28
26
|
statIsFile,
|
|
29
27
|
trustScopedEnvironment,
|
|
30
28
|
trustScopedSearchPath
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-WQV6BI4Q.js";
|
|
29
|
+
} from "./chunk-TMNUTMT5.js";
|
|
30
|
+
import "./chunk-X5BJ3G2P.js";
|
|
31
|
+
import "./chunk-NL5LSKVD.js";
|
|
32
|
+
import "./chunk-PIIUNJIT.js";
|
|
33
|
+
import "./chunk-W5E72HJA.js";
|
|
37
34
|
import "./chunk-S26LC76R.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-VLQ7UKZH.js";
|
|
35
|
+
import "./chunk-VCRVNLE7.js";
|
|
40
36
|
import "./chunk-LJDODBBZ.js";
|
|
41
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-CB7PEVOJ.js";
|
|
42
38
|
import "./chunk-NXL4FFQQ.js";
|
|
43
39
|
export {
|
|
44
40
|
SpawnFailureError,
|
|
@@ -51,7 +47,6 @@ export {
|
|
|
51
47
|
getAmbientAbortSignal,
|
|
52
48
|
hasSpawnFailureKind,
|
|
53
49
|
holdOwnChildPid,
|
|
54
|
-
isCommandAvailable,
|
|
55
50
|
isCommandAvailableAsync,
|
|
56
51
|
isOwnLiveChild,
|
|
57
52
|
mergeWindowsEnvironment,
|
|
@@ -63,7 +58,6 @@ export {
|
|
|
63
58
|
resolveWindowsCommandForEnvironment,
|
|
64
59
|
safeSpawn,
|
|
65
60
|
safeSpawnAsync,
|
|
66
|
-
safeSpawnBatch,
|
|
67
61
|
setAmbientAbortSignal,
|
|
68
62
|
spawnAbortScope,
|
|
69
63
|
statIsFile,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
detectFileRole
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X5BJ3G2P.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/collateral-test-role.js
|
|
7
7
|
function isTestRoleCollateral(filePath) {
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
measureFile
|
|
4
|
+
} from "./chunk-ZD4KVFXI.js";
|
|
5
|
+
import {
|
|
6
|
+
isComplexityLanguageId,
|
|
7
|
+
isComplexitySupportedFile,
|
|
8
|
+
resolveTreeSitterLanguage,
|
|
9
|
+
walk,
|
|
10
|
+
withTreeSitterRoot
|
|
11
|
+
} from "./chunk-ZZSJAR76.js";
|
|
12
|
+
import "./chunk-Z54ZSOBZ.js";
|
|
13
|
+
import "./chunk-5YSEQHJN.js";
|
|
14
|
+
import "./chunk-QGITU23N.js";
|
|
15
|
+
import "./chunk-WTB4GKMH.js";
|
|
16
|
+
import "./chunk-MKPDIAZH.js";
|
|
17
|
+
import "./chunk-AACN5GNE.js";
|
|
18
|
+
import "./chunk-TMNUTMT5.js";
|
|
19
|
+
import "./chunk-CZCAZVTD.js";
|
|
20
|
+
import "./chunk-X5BJ3G2P.js";
|
|
21
|
+
import "./chunk-NL5LSKVD.js";
|
|
22
|
+
import "./chunk-PIIUNJIT.js";
|
|
23
|
+
import {
|
|
24
|
+
createSubsystemLogger
|
|
25
|
+
} from "./chunk-W5E72HJA.js";
|
|
26
|
+
import "./chunk-S26LC76R.js";
|
|
27
|
+
import "./chunk-VCRVNLE7.js";
|
|
28
|
+
import "./chunk-LJDODBBZ.js";
|
|
29
|
+
import "./chunk-CB7PEVOJ.js";
|
|
30
|
+
import "./chunk-NXL4FFQQ.js";
|
|
31
|
+
|
|
32
|
+
// dist/clients/complexity-client.js
|
|
33
|
+
import * as fs from "node:fs";
|
|
34
|
+
import * as path from "node:path";
|
|
35
|
+
var COMMENT_TYPES = /* @__PURE__ */ new Set(["comment", "line_comment", "block_comment"]);
|
|
36
|
+
function countTryCatch(root) {
|
|
37
|
+
let count = 0;
|
|
38
|
+
walk(root, (n) => {
|
|
39
|
+
if (n.type === "try_statement")
|
|
40
|
+
count++;
|
|
41
|
+
});
|
|
42
|
+
return count;
|
|
43
|
+
}
|
|
44
|
+
function countLines(content, root) {
|
|
45
|
+
const lines = content.split(/\r?\n/);
|
|
46
|
+
const commentLineSet = /* @__PURE__ */ new Set();
|
|
47
|
+
walk(root, (n) => {
|
|
48
|
+
if (COMMENT_TYPES.has(n.type)) {
|
|
49
|
+
for (let l = n.startPosition.row; l <= n.endPosition.row; l++) {
|
|
50
|
+
commentLineSet.add(l);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const codeLines = lines.filter((line, i) => {
|
|
55
|
+
if (line.trim().length === 0)
|
|
56
|
+
return false;
|
|
57
|
+
if (!commentLineSet.has(i))
|
|
58
|
+
return true;
|
|
59
|
+
const stripped = line.replace(/\/\/.*$/, "").replace(/\/\*[\s\S]*?\*\//g, "").replace(/#.*$/, "").trim();
|
|
60
|
+
return stripped.length > 0;
|
|
61
|
+
}).length;
|
|
62
|
+
return { codeLines, commentLines: commentLineSet.size };
|
|
63
|
+
}
|
|
64
|
+
var AI_COMMENT_PATTERNS = [
|
|
65
|
+
/(?:🔍|✅|📝|🔧|🐛|⚠️|🚀|💡|🎯|📌|🏷️|🔑|🏗️|🧪|🗑️|🔄|♻️|📋|🔖|📊|💬|🔥|💎|⭐|🌟|🎨|🛠️)/u,
|
|
66
|
+
/(?:\/\/|#)\s*(Initialize|Setup|Clean up|Create|Define|Check if|Handle|Process|Validate|Return|Get|Set|Add|Remove|Update|Fetch)\b/i,
|
|
67
|
+
/(?:\/\/|#)\s*(This function|This method|This code|Here we|Now we)\b/i,
|
|
68
|
+
/\/\*\*?\s*(Overview|Summary|Description|Example|Usage)\s*\*?\//i
|
|
69
|
+
];
|
|
70
|
+
function countAICommentPatterns(sourceText) {
|
|
71
|
+
let count = 0;
|
|
72
|
+
for (const line of sourceText.split(/\r?\n/)) {
|
|
73
|
+
const trimmed = line.trim();
|
|
74
|
+
if (trimmed.startsWith("//") || trimmed.startsWith("/*") || trimmed.startsWith("*") || trimmed.startsWith("#")) {
|
|
75
|
+
for (const pattern of AI_COMMENT_PATTERNS) {
|
|
76
|
+
if (pattern.test(line)) {
|
|
77
|
+
count++;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return count;
|
|
84
|
+
}
|
|
85
|
+
function calculateCodeEntropy(sourceText) {
|
|
86
|
+
const tokens = sourceText.replace(/\/\/.*/g, "").replace(/\/\*[\s\S]*?\*\//g, "").replace(/["'`][^"'`]*["'`]/g, "STR").replace(/\b\d+(\.\d+)?\b/g, "NUM").split(/[\s\n\r\t,;:()[\]{}=<>!&|+\-*/%^~?]+/).filter((t) => t.length > 0);
|
|
87
|
+
if (tokens.length === 0)
|
|
88
|
+
return 0;
|
|
89
|
+
const freq = /* @__PURE__ */ new Map();
|
|
90
|
+
for (const token of tokens)
|
|
91
|
+
freq.set(token, (freq.get(token) || 0) + 1);
|
|
92
|
+
let entropy = 0;
|
|
93
|
+
for (const count of freq.values()) {
|
|
94
|
+
const p = count / tokens.length;
|
|
95
|
+
if (p > 0)
|
|
96
|
+
entropy -= p * Math.log2(p);
|
|
97
|
+
}
|
|
98
|
+
return entropy;
|
|
99
|
+
}
|
|
100
|
+
function calculateMaintainabilityIndex(cyclomatic, loc, comments) {
|
|
101
|
+
if (loc === 0)
|
|
102
|
+
return 100;
|
|
103
|
+
const lnLOC = Math.log(loc);
|
|
104
|
+
let mi = (171 - 0.23 * cyclomatic - 16.2 * lnLOC) * 100 / 171;
|
|
105
|
+
const commentBonus = Math.min(10, comments / loc * 50);
|
|
106
|
+
mi += commentBonus;
|
|
107
|
+
return Math.max(0, Math.min(100, mi));
|
|
108
|
+
}
|
|
109
|
+
function countSingleUseFunctions(functions) {
|
|
110
|
+
return functions.filter((f) => f.length < 10 && f.cyclomatic <= 2 && /^(get|set|check|is|has|validate|format|parse|convert|create|make)/i.test(f.name)).length;
|
|
111
|
+
}
|
|
112
|
+
var ComplexityClient = class {
|
|
113
|
+
log;
|
|
114
|
+
constructor(verbose = false) {
|
|
115
|
+
this.log = verbose ? createSubsystemLogger("complexity") : () => {
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/** True if the file's grammar has a complexity node mapping.
|
|
119
|
+
*
|
|
120
|
+
* Delegates to the module-free predicate in `tree-sitter-shared.ts`: the
|
|
121
|
+
* same question is asked by `handleToolCallImpl` BEFORE the analyzer
|
|
122
|
+
* bootstrap is loaded (#2467), and two copies of it would be two answers. */
|
|
123
|
+
isSupportedFile(filePath) {
|
|
124
|
+
return isComplexitySupportedFile(filePath);
|
|
125
|
+
}
|
|
126
|
+
/** Analyze complexity metrics for a file (null if unsupported / unparseable). */
|
|
127
|
+
async analyzeFile(filePath) {
|
|
128
|
+
const absolutePath = path.resolve(filePath);
|
|
129
|
+
const languageId = resolveTreeSitterLanguage(absolutePath);
|
|
130
|
+
if (!languageId || !isComplexityLanguageId(languageId))
|
|
131
|
+
return null;
|
|
132
|
+
let content;
|
|
133
|
+
try {
|
|
134
|
+
if (!fs.existsSync(absolutePath))
|
|
135
|
+
return null;
|
|
136
|
+
content = fs.readFileSync(absolutePath, "utf-8");
|
|
137
|
+
} catch (err) {
|
|
138
|
+
this.log(`Read error for ${filePath}: ${err.message}`);
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
try {
|
|
142
|
+
const parsed = await withTreeSitterRoot(absolutePath, content, (root) => this.computeMetrics(absolutePath, content, root, languageId), "complexity");
|
|
143
|
+
return parsed.parsed ? parsed.value : null;
|
|
144
|
+
} catch (err) {
|
|
145
|
+
this.log(`Analysis error for ${filePath}: ${err.message}`);
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
computeMetrics(absolutePath, content, root, languageId) {
|
|
150
|
+
const { codeLines, commentLines } = countLines(content, root);
|
|
151
|
+
const file = measureFile(root, languageId);
|
|
152
|
+
const functions = file.functions.map((f) => ({
|
|
153
|
+
name: f.name,
|
|
154
|
+
line: f.line,
|
|
155
|
+
length: f.length,
|
|
156
|
+
cyclomatic: f.cyclomatic - 1,
|
|
157
|
+
cognitive: f.cognitive,
|
|
158
|
+
nestingDepth: f.nesting
|
|
159
|
+
}));
|
|
160
|
+
const funcStats = this.aggregateFunctionStats(functions);
|
|
161
|
+
return {
|
|
162
|
+
filePath: path.relative(process.cwd(), absolutePath),
|
|
163
|
+
maxNestingDepth: file.nesting,
|
|
164
|
+
avgFunctionLength: funcStats.avgLength,
|
|
165
|
+
maxFunctionLength: funcStats.maxLength,
|
|
166
|
+
functionCount: functions.length,
|
|
167
|
+
cyclomaticComplexity: funcStats.avgCyclomatic,
|
|
168
|
+
maxCyclomaticComplexity: funcStats.maxCyclomatic,
|
|
169
|
+
cognitiveComplexity: file.cognitive,
|
|
170
|
+
maintainabilityIndex: Math.round(calculateMaintainabilityIndex(funcStats.avgCyclomatic, codeLines, commentLines) * 10) / 10,
|
|
171
|
+
linesOfCode: codeLines,
|
|
172
|
+
commentLines,
|
|
173
|
+
codeEntropy: Math.round(calculateCodeEntropy(content) * 100) / 100,
|
|
174
|
+
maxParamsInFunction: Math.max(0, ...file.functions.map((f) => f.parameters)),
|
|
175
|
+
aiCommentPatterns: countAICommentPatterns(content),
|
|
176
|
+
singleUseFunctions: countSingleUseFunctions(functions),
|
|
177
|
+
tryCatchCount: countTryCatch(root),
|
|
178
|
+
functions
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
aggregateFunctionStats(functions) {
|
|
182
|
+
if (functions.length === 0) {
|
|
183
|
+
return { avgLength: 0, maxLength: 0, avgCyclomatic: 1, maxCyclomatic: 1 };
|
|
184
|
+
}
|
|
185
|
+
const lengths = functions.map((f) => f.length);
|
|
186
|
+
const cyclomatics = functions.map((f) => f.cyclomatic);
|
|
187
|
+
const sum = (arr) => arr.reduce((a, b) => a + b, 0);
|
|
188
|
+
return {
|
|
189
|
+
avgLength: Math.round(sum(lengths) / lengths.length),
|
|
190
|
+
maxLength: Math.max(...lengths),
|
|
191
|
+
avgCyclomatic: Math.max(1, Math.round(sum(cyclomatics) / cyclomatics.length)),
|
|
192
|
+
maxCyclomatic: Math.max(1, Math.max(...cyclomatics))
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
export {
|
|
197
|
+
ComplexityClient
|
|
198
|
+
};
|
|
@@ -2,21 +2,19 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
computeImpactCascade,
|
|
4
4
|
computeTransitiveImpact
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HYSKJMZK.js";
|
|
6
6
|
import "./chunk-PKLB2XJL.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-WQV6BI4Q.js";
|
|
7
|
+
import "./chunk-7UTSNTWM.js";
|
|
8
|
+
import "./chunk-J3Q2NYJR.js";
|
|
9
|
+
import "./chunk-TMNUTMT5.js";
|
|
10
|
+
import "./chunk-X5BJ3G2P.js";
|
|
11
|
+
import "./chunk-NL5LSKVD.js";
|
|
12
|
+
import "./chunk-PIIUNJIT.js";
|
|
13
|
+
import "./chunk-W5E72HJA.js";
|
|
15
14
|
import "./chunk-S26LC76R.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-VLQ7UKZH.js";
|
|
15
|
+
import "./chunk-VCRVNLE7.js";
|
|
18
16
|
import "./chunk-LJDODBBZ.js";
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-CB7PEVOJ.js";
|
|
20
18
|
import "./chunk-NXL4FFQQ.js";
|
|
21
19
|
export {
|
|
22
20
|
computeImpactCascade,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getGlobalPiLensDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TMNUTMT5.js";
|
|
5
5
|
import {
|
|
6
6
|
getTurnId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VCRVNLE7.js";
|
|
8
8
|
import {
|
|
9
9
|
BoundedFifoMap
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
11
11
|
|
|
12
12
|
// dist/clients/custom-rule-locations.js
|
|
13
13
|
import * as path from "node:path";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-3MED75HT.js";
|
|
5
5
|
import {
|
|
6
6
|
getProjectDataDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TMNUTMT5.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PIIUNJIT.js";
|
|
11
11
|
import {
|
|
12
12
|
normalizeMapKey,
|
|
13
13
|
toProjectRelativePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
15
15
|
|
|
16
16
|
// dist/clients/call-graph.js
|
|
17
17
|
import * as fs from "node:fs";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadProjectSnapshotWithoutWordIndex
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PRHYIA6X.js";
|
|
5
5
|
import {
|
|
6
6
|
resolvePackagePath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QGITU23N.js";
|
|
8
8
|
import {
|
|
9
9
|
TERRAGRUNT_FILENAMES
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CZCAZVTD.js";
|
|
11
11
|
import {
|
|
12
12
|
recordDegradationOnce
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W5E72HJA.js";
|
|
14
14
|
import {
|
|
15
15
|
logLatency
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VCRVNLE7.js";
|
|
17
17
|
import {
|
|
18
18
|
findNearestContaining,
|
|
19
19
|
normalizeMapKey,
|
|
20
20
|
walkUpDirs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
22
22
|
|
|
23
23
|
// dist/clients/tool-policy.js
|
|
24
24
|
import * as fs from "node:fs";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
readCargoDependencyNames,
|
|
5
5
|
readCargoPackageName,
|
|
6
6
|
readCargoWorkspaceMembers
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J3Q2NYJR.js";
|
|
8
8
|
import {
|
|
9
9
|
getProjectIgnoreMatcher,
|
|
10
10
|
isExcludedDirName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TMNUTMT5.js";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceManifestMarkers
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NL5LSKVD.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeMapKey,
|
|
17
17
|
toPosix
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
19
19
|
|
|
20
20
|
// dist/clients/review-graph/workspace-modules.js
|
|
21
21
|
import * as fs from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveOpengrepRulePack
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RTFMDIKV.js";
|
|
5
5
|
import {
|
|
6
6
|
findLocalToolConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/opengrep-config.js
|
|
10
10
|
import * as path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getProjectTrustGeneration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PIIUNJIT.js";
|
|
5
5
|
import {
|
|
6
6
|
logLatency
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VCRVNLE7.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/dispatch/runners/utils/availability-policy.js
|
|
10
10
|
function describeProbeEvidence(result, command) {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
findGoverningTsconfigDir,
|
|
4
4
|
getDirectoryMarkers,
|
|
5
5
|
registerWorkspaceTopologyReset
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NL5LSKVD.js";
|
|
7
7
|
import {
|
|
8
8
|
BoundedLruCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
10
10
|
|
|
11
11
|
// dist/clients/review-graph/tsconfig-paths.js
|
|
12
12
|
import * as fs from "node:fs";
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
collectSourceFiles
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RNXOWDM6.js";
|
|
5
|
+
import "./chunk-ZCQBNPRH.js";
|
|
6
|
+
import "./chunk-TMNUTMT5.js";
|
|
7
7
|
import "./chunk-QYF5S6P6.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-WQV6BI4Q.js";
|
|
8
|
+
import "./chunk-CZCAZVTD.js";
|
|
9
|
+
import "./chunk-X5BJ3G2P.js";
|
|
10
|
+
import "./chunk-NL5LSKVD.js";
|
|
11
|
+
import "./chunk-PIIUNJIT.js";
|
|
12
|
+
import "./chunk-W5E72HJA.js";
|
|
14
13
|
import "./chunk-S26LC76R.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-VLQ7UKZH.js";
|
|
14
|
+
import "./chunk-VCRVNLE7.js";
|
|
17
15
|
import "./chunk-LJDODBBZ.js";
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-CB7PEVOJ.js";
|
|
19
17
|
import "./chunk-NXL4FFQQ.js";
|
|
20
18
|
|
|
21
19
|
// dist/clients/todo-scanner.js
|
|
@@ -2605,13 +2605,20 @@ function relativeInside(root, file, pathImpl = path2) {
|
|
|
2605
2605
|
return relative !== ".." && !relative.startsWith(`..${pathImpl.sep}`) && !pathImpl.isAbsolute(relative) ? relative.replace(/\\/g, "/") : void 0;
|
|
2606
2606
|
}
|
|
2607
2607
|
function toProjectRelativePath(filePath, projectRoot) {
|
|
2608
|
+
return relativeToProjectRoot(filePath, projectRoot, () => normalizeFilePath(projectRoot));
|
|
2609
|
+
}
|
|
2610
|
+
function createProjectRelativePathResolver(projectRoot) {
|
|
2611
|
+
let canonicalRoot;
|
|
2612
|
+
return (filePath) => relativeToProjectRoot(filePath, projectRoot, () => canonicalRoot ??= normalizeFilePath(projectRoot));
|
|
2613
|
+
}
|
|
2614
|
+
function relativeToProjectRoot(filePath, projectRoot, canonicalRoot) {
|
|
2608
2615
|
const p = isWindowsPath(filePath) ? win32 : path2;
|
|
2609
2616
|
if (!p.isAbsolute(filePath))
|
|
2610
2617
|
return filePath.replace(/\\/g, "/");
|
|
2611
2618
|
const direct = relativeInside(projectRoot, filePath, p);
|
|
2612
2619
|
if (direct)
|
|
2613
2620
|
return direct;
|
|
2614
|
-
const canonical = relativeInside(
|
|
2621
|
+
const canonical = relativeInside(canonicalRoot(), normalizeFilePath(filePath), p);
|
|
2615
2622
|
if (canonical)
|
|
2616
2623
|
return canonical;
|
|
2617
2624
|
return filePath.replace(/\\/g, "/");
|
|
@@ -2997,6 +3004,7 @@ export {
|
|
|
2997
3004
|
normalizeMapKey,
|
|
2998
3005
|
relativeInside,
|
|
2999
3006
|
toProjectRelativePath,
|
|
3007
|
+
createProjectRelativePathResolver,
|
|
3000
3008
|
normalizeEphemeralMapKey,
|
|
3001
3009
|
pathsEqual,
|
|
3002
3010
|
walkUpDirs,
|
|
@@ -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-RNXOWDM6.js";
|
|
6
6
|
|
|
7
7
|
// dist/clients/scan-utils.js
|
|
8
8
|
function getSourceFiles(dir, _isTsProject) {
|
|
@@ -1,40 +1,38 @@
|
|
|
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-VO4JFPTV.js";
|
|
5
5
|
import {
|
|
6
6
|
SecurityScanClient
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import
|
|
9
|
-
scannerReportParentDir
|
|
10
|
-
} from "./chunk-RGGH6M34.js";
|
|
11
|
-
import "./chunk-RZG472YW.js";
|
|
7
|
+
} from "./chunk-PBZNYHMM.js";
|
|
8
|
+
import "./chunk-ZZN74OGD.js";
|
|
12
9
|
import {
|
|
13
10
|
resolveOpengrepConfig
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7YTRG6YW.js";
|
|
12
|
+
import {
|
|
13
|
+
scannerReportParentDir
|
|
14
|
+
} from "./chunk-LT62P654.js";
|
|
15
15
|
import {
|
|
16
16
|
stripPackRuleIdPrefix
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-RTFMDIKV.js";
|
|
18
|
+
import "./chunk-L6WBJGQS.js";
|
|
19
|
+
import "./chunk-AACN5GNE.js";
|
|
20
20
|
import {
|
|
21
21
|
safeSpawnAsync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TMNUTMT5.js";
|
|
23
23
|
import "./chunk-AWQWXSW4.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-X5BJ3G2P.js";
|
|
25
|
+
import "./chunk-NL5LSKVD.js";
|
|
26
|
+
import "./chunk-PIIUNJIT.js";
|
|
27
27
|
import {
|
|
28
28
|
recordDegradationOnce
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-WQV6BI4Q.js";
|
|
29
|
+
} from "./chunk-W5E72HJA.js";
|
|
31
30
|
import "./chunk-S26LC76R.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-VLQ7UKZH.js";
|
|
31
|
+
import "./chunk-VCRVNLE7.js";
|
|
34
32
|
import "./chunk-LJDODBBZ.js";
|
|
35
33
|
import {
|
|
36
34
|
realpathOrResolve
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
38
36
|
import "./chunk-NXL4FFQQ.js";
|
|
39
37
|
|
|
40
38
|
// dist/clients/opengrep-client.js
|