@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,29 +1,29 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getStartupScanMaxSourceFilesDerived
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MRLH4MYU.js";
|
|
5
5
|
import {
|
|
6
6
|
shouldRecurseIntoDir,
|
|
7
7
|
walkTreeStackAsync,
|
|
8
8
|
walkTreeStackSync
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZCQBNPRH.js";
|
|
10
10
|
import {
|
|
11
11
|
getProjectIgnoreMatcher
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TMNUTMT5.js";
|
|
13
13
|
import {
|
|
14
14
|
getDirectoryMarkers,
|
|
15
15
|
registerWorkspaceTopologyReset
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NL5LSKVD.js";
|
|
17
17
|
import {
|
|
18
18
|
lazyEnvNumber
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VCRVNLE7.js";
|
|
20
20
|
import {
|
|
21
21
|
BoundedLruCache,
|
|
22
22
|
isAtOrAboveHomeDir,
|
|
23
23
|
normalizeMapKey,
|
|
24
24
|
realpathOrResolve,
|
|
25
25
|
walkUpDirs
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
27
27
|
|
|
28
28
|
// dist/clients/startup-scan.js
|
|
29
29
|
import * as os from "node:os";
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
parseSymbolKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6GPB3JLL.js";
|
|
5
5
|
import {
|
|
6
6
|
isTestRoleCollateral
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-47UCC4MM.js";
|
|
8
8
|
import "./chunk-3MED75HT.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-WQV6BI4Q.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
|
|
|
22
20
|
// dist/clients/project-diagnostics/runner-adapters/call-graph-impact.js
|
|
@@ -1,56 +1,12 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
truncatedByOutputCap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PIIUNJIT.js";
|
|
5
5
|
import {
|
|
6
6
|
LEDGER_FIELD_MAX,
|
|
7
7
|
incrementDegradationCount,
|
|
8
8
|
truncateForLedger
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
|
|
11
|
-
// dist/clients/dispatch/runners/utils/spawn-outcome.js
|
|
12
|
-
function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
|
|
13
|
-
for (const line of String(text ?? "").split(/\r?\n/)) {
|
|
14
|
-
const trimmed = line.trim();
|
|
15
|
-
if (!trimmed)
|
|
16
|
-
continue;
|
|
17
|
-
return trimmed.length > max ? `${trimmed.slice(0, max)}\u2026` : trimmed;
|
|
18
|
-
}
|
|
19
|
-
return "";
|
|
20
|
-
}
|
|
21
|
-
function processCutShort(result) {
|
|
22
|
-
return Boolean(result.error || result.signal) || (result.status ?? null) === null;
|
|
23
|
-
}
|
|
24
|
-
function classifyRunOutcome(input) {
|
|
25
|
-
const { result, exitCodes, reportMissing } = input;
|
|
26
|
-
const status = result.status ?? null;
|
|
27
|
-
const signal = result.signal ?? null;
|
|
28
|
-
const output = input.output ?? result.stdout;
|
|
29
|
-
const base = {
|
|
30
|
-
status,
|
|
31
|
-
signal,
|
|
32
|
-
firstOutputLine: firstOutputLine(result.stderr) || firstOutputLine(result.stdout) || firstOutputLine(result.error?.message),
|
|
33
|
-
// Evidence carried alongside the verdict, never part of deciding it — the
|
|
34
|
-
// branches below are byte-for-byte the pre-#2100 rules.
|
|
35
|
-
outputCapped: truncatedByOutputCap(result)
|
|
36
|
-
};
|
|
37
|
-
if (processCutShort(result) || status === null) {
|
|
38
|
-
return { kind: "did-not-run", ...base };
|
|
39
|
-
}
|
|
40
|
-
if (reportMissing) {
|
|
41
|
-
return status === 0 ? { kind: "ran", ...base } : { kind: "report-missing", ...base };
|
|
42
|
-
}
|
|
43
|
-
if (status !== 0 && exitCodes && !exitCodes.ran.includes(status)) {
|
|
44
|
-
return { kind: "rejected-invocation", ...base };
|
|
45
|
-
}
|
|
46
|
-
if (status !== 0 && !output?.trim()) {
|
|
47
|
-
return { kind: "did-not-run", ...base };
|
|
48
|
-
}
|
|
49
|
-
return { kind: "ran", ...base };
|
|
50
|
-
}
|
|
51
|
-
function spawnFailedWithNoOutput(result, output = result.stdout) {
|
|
52
|
-
return classifyRunOutcome({ result, output }).kind !== "ran" && !output?.trim();
|
|
53
|
-
}
|
|
9
|
+
} from "./chunk-W5E72HJA.js";
|
|
54
10
|
|
|
55
11
|
// dist/clients/dispatch/types.js
|
|
56
12
|
function spanOverlapsModifiedRanges(startLine, endLine, ranges) {
|
|
@@ -58,6 +14,36 @@ function spanOverlapsModifiedRanges(startLine, endLine, ranges) {
|
|
|
58
14
|
return true;
|
|
59
15
|
return ranges.some((r) => startLine <= r.end && endLine >= r.start);
|
|
60
16
|
}
|
|
17
|
+
var unchecked = (reason, surface = {}) => ({
|
|
18
|
+
checked: false,
|
|
19
|
+
reason,
|
|
20
|
+
...surface
|
|
21
|
+
});
|
|
22
|
+
var widgetUncheckedReason = (verdict) => verdict.checked || verdict.inapplicable ? void 0 : verdict.reason;
|
|
23
|
+
function checkedVerdict(tier, rows) {
|
|
24
|
+
const [first, ...rest] = rows.filter((row) => row.inconclusive !== true && hasUsableResult(row)).map((row) => row.runnerId);
|
|
25
|
+
if (first === void 0)
|
|
26
|
+
return void 0;
|
|
27
|
+
const completed = [first, ...rest];
|
|
28
|
+
return { checked: true, tier, runnerIds: completed };
|
|
29
|
+
}
|
|
30
|
+
function emptyDispatchResult(verdict) {
|
|
31
|
+
return {
|
|
32
|
+
diagnostics: [],
|
|
33
|
+
blockers: [],
|
|
34
|
+
warnings: [],
|
|
35
|
+
baselineWarningCount: 0,
|
|
36
|
+
fixed: [],
|
|
37
|
+
resolvedCount: 0,
|
|
38
|
+
output: "",
|
|
39
|
+
blockerOutput: "",
|
|
40
|
+
hasBlockers: false,
|
|
41
|
+
verdict
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
var IN_FLIGHT_REASON = "the primary check is still running (findings arrive at turn end if it lands)";
|
|
45
|
+
var NO_ANALYZER_REASON = "no analyzer handles this file type";
|
|
46
|
+
var noPrimaryCheckerReason = (lspEnabled) => `no primary checker is enabled for this kind${lspEnabled ? "" : " (--no-lsp turns off its language server)"}`;
|
|
61
47
|
var RUNNER_SKIP_REASONS = [
|
|
62
48
|
"no-files-matched",
|
|
63
49
|
"configured-non-biome-linter",
|
|
@@ -135,6 +121,50 @@ function reachedNoVerdict(result) {
|
|
|
135
121
|
}
|
|
136
122
|
}
|
|
137
123
|
|
|
124
|
+
// dist/clients/dispatch/runners/utils/spawn-outcome.js
|
|
125
|
+
function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
|
|
126
|
+
for (const line of String(text ?? "").split(/\r?\n/)) {
|
|
127
|
+
const trimmed = line.trim();
|
|
128
|
+
if (!trimmed)
|
|
129
|
+
continue;
|
|
130
|
+
return trimmed.length > max ? `${trimmed.slice(0, max)}\u2026` : trimmed;
|
|
131
|
+
}
|
|
132
|
+
return "";
|
|
133
|
+
}
|
|
134
|
+
function processCutShort(result) {
|
|
135
|
+
return Boolean(result.error || result.signal) || (result.status ?? null) === null;
|
|
136
|
+
}
|
|
137
|
+
function classifyRunOutcome(input) {
|
|
138
|
+
const { result, exitCodes, reportMissing } = input;
|
|
139
|
+
const status = result.status ?? null;
|
|
140
|
+
const signal = result.signal ?? null;
|
|
141
|
+
const output = input.output ?? result.stdout;
|
|
142
|
+
const base = {
|
|
143
|
+
status,
|
|
144
|
+
signal,
|
|
145
|
+
firstOutputLine: firstOutputLine(result.stderr) || firstOutputLine(result.stdout) || firstOutputLine(result.error?.message),
|
|
146
|
+
// Evidence carried alongside the verdict, never part of deciding it — the
|
|
147
|
+
// branches below are byte-for-byte the pre-#2100 rules.
|
|
148
|
+
outputCapped: truncatedByOutputCap(result)
|
|
149
|
+
};
|
|
150
|
+
if (processCutShort(result) || status === null) {
|
|
151
|
+
return { kind: "did-not-run", ...base };
|
|
152
|
+
}
|
|
153
|
+
if (reportMissing) {
|
|
154
|
+
return status === 0 ? { kind: "ran", ...base } : { kind: "report-missing", ...base };
|
|
155
|
+
}
|
|
156
|
+
if (status !== 0 && exitCodes && !exitCodes.ran.includes(status)) {
|
|
157
|
+
return { kind: "rejected-invocation", ...base };
|
|
158
|
+
}
|
|
159
|
+
if (status !== 0 && !output?.trim()) {
|
|
160
|
+
return { kind: "did-not-run", ...base };
|
|
161
|
+
}
|
|
162
|
+
return { kind: "ran", ...base };
|
|
163
|
+
}
|
|
164
|
+
function spawnFailedWithNoOutput(result, output = result.stdout) {
|
|
165
|
+
return classifyRunOutcome({ result, output }).kind !== "ran" && !output?.trim();
|
|
166
|
+
}
|
|
167
|
+
|
|
138
168
|
// dist/clients/dispatch/runners/utils/tool-failure.js
|
|
139
169
|
function describeEnding(input) {
|
|
140
170
|
if (input.outputCapped)
|
|
@@ -259,6 +289,13 @@ function finishParsedRun(input) {
|
|
|
259
289
|
|
|
260
290
|
export {
|
|
261
291
|
spanOverlapsModifiedRanges,
|
|
292
|
+
unchecked,
|
|
293
|
+
widgetUncheckedReason,
|
|
294
|
+
checkedVerdict,
|
|
295
|
+
emptyDispatchResult,
|
|
296
|
+
IN_FLIGHT_REASON,
|
|
297
|
+
NO_ANALYZER_REASON,
|
|
298
|
+
noPrimaryCheckerReason,
|
|
262
299
|
isNotApplicableSkipReason,
|
|
263
300
|
isRunnerSkipReason,
|
|
264
301
|
isRunnerClaimSource,
|
|
@@ -5,33 +5,33 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getUserRuleRoot,
|
|
7
7
|
ruleCorpusFingerprintForCycle
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5YSEQHJN.js";
|
|
9
9
|
import {
|
|
10
10
|
getPackageRoot,
|
|
11
11
|
js_yaml_default,
|
|
12
12
|
resolvePackagePath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QGITU23N.js";
|
|
14
14
|
import {
|
|
15
15
|
EXTENSION_TO_GRAMMAR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WTB4GKMH.js";
|
|
17
17
|
import {
|
|
18
18
|
withTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MKPDIAZH.js";
|
|
20
20
|
import {
|
|
21
21
|
transientRetryDelayMs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AACN5GNE.js";
|
|
23
23
|
import {
|
|
24
24
|
getProjectIgnoreMatcher,
|
|
25
25
|
isExcludedDirName
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TMNUTMT5.js";
|
|
27
27
|
import {
|
|
28
28
|
notifyUserDegradation
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X5BJ3G2P.js";
|
|
30
30
|
import {
|
|
31
31
|
assertInstallAllowed,
|
|
32
32
|
getProjectTrustGeneration,
|
|
33
33
|
writeFileAtomic
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PIIUNJIT.js";
|
|
35
35
|
import {
|
|
36
36
|
compareOrdinal,
|
|
37
37
|
escapeRegExp,
|
|
@@ -39,23 +39,21 @@ import {
|
|
|
39
39
|
incrementDegradationCount,
|
|
40
40
|
recordDegradation,
|
|
41
41
|
recordDegradationOnce
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import {
|
|
44
|
-
logLatency
|
|
45
|
-
} from "./chunk-565VRUP4.js";
|
|
42
|
+
} from "./chunk-W5E72HJA.js";
|
|
46
43
|
import {
|
|
47
44
|
createNdjsonLogger,
|
|
48
45
|
getGlobalPiLensLogDir,
|
|
49
46
|
getMaxLogSizeMB,
|
|
50
|
-
isTestMode
|
|
51
|
-
|
|
47
|
+
isTestMode,
|
|
48
|
+
logLatency
|
|
49
|
+
} from "./chunk-VCRVNLE7.js";
|
|
52
50
|
import {
|
|
53
51
|
BoundedFifoMap,
|
|
54
52
|
normalizeFilePath,
|
|
55
53
|
normalizeLoggedPath,
|
|
56
54
|
toPosix,
|
|
57
55
|
walkUpDirs
|
|
58
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
59
57
|
|
|
60
58
|
// dist/clients/tree-sitter-logger.js
|
|
61
59
|
import * as path from "node:path";
|
|
@@ -2009,6 +2007,28 @@ var queryLoader = new TreeSitterQueryLoader();
|
|
|
2009
2007
|
var _require2 = createRequire2(import.meta.url);
|
|
2010
2008
|
var TREE_SITTER_MAX_SCAN_FILES = 2e4;
|
|
2011
2009
|
var QUERY_BATCH_MAX_LOAD_FAILURES = 3;
|
|
2010
|
+
var BATCH_IDENTITY_IGNORED_FIELDS = /* @__PURE__ */ new Set([
|
|
2011
|
+
"category",
|
|
2012
|
+
"description",
|
|
2013
|
+
"tags",
|
|
2014
|
+
"cwe",
|
|
2015
|
+
"owasp",
|
|
2016
|
+
"confidence",
|
|
2017
|
+
"predicates"
|
|
2018
|
+
]);
|
|
2019
|
+
function queryBatchIdentity(queryDefs) {
|
|
2020
|
+
const canonical = queryDefs.map((queryDef) => {
|
|
2021
|
+
const fields = [];
|
|
2022
|
+
for (const [field, value] of Object.entries(queryDef)) {
|
|
2023
|
+
if (value === void 0 || BATCH_IDENTITY_IGNORED_FIELDS.has(field)) {
|
|
2024
|
+
continue;
|
|
2025
|
+
}
|
|
2026
|
+
fields.push([field, value]);
|
|
2027
|
+
}
|
|
2028
|
+
return fields.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
2029
|
+
});
|
|
2030
|
+
return crypto3.createHash("sha256").update(JSON.stringify(canonical)).digest("hex");
|
|
2031
|
+
}
|
|
2012
2032
|
var NO_NESTED_ANCHOR_VISIT_CAP = 1e4;
|
|
2013
2033
|
var PYTHON_SQL_SINK_METHODS = /* @__PURE__ */ new Set([
|
|
2014
2034
|
"execute",
|
|
@@ -3639,8 +3659,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
3639
3659
|
* pattern-index → rule map. Cached per language + rule-set identity.
|
|
3640
3660
|
*/
|
|
3641
3661
|
async compileQueryBatch(queryDefs, languageId, retain = false) {
|
|
3642
|
-
const
|
|
3643
|
-
const cacheKey = this.getQueryCacheKey(`batch:${identity}`, languageId);
|
|
3662
|
+
const cacheKey = this.getQueryCacheKey(`batch:${queryBatchIdentity(queryDefs)}`, languageId);
|
|
3644
3663
|
const cached = this.queryBatchCache.get(cacheKey);
|
|
3645
3664
|
if (cached !== void 0) {
|
|
3646
3665
|
this.queryBatchCache.delete(cacheKey);
|
|
@@ -3673,8 +3692,7 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
3673
3692
|
}
|
|
3674
3693
|
}
|
|
3675
3694
|
async compileQueryBatchOnce(queryDefs, languageId, lease) {
|
|
3676
|
-
const
|
|
3677
|
-
const cacheKey = this.getQueryCacheKey(`batch:${identity}`, languageId);
|
|
3695
|
+
const cacheKey = this.getQueryCacheKey(`batch:${queryBatchIdentity(queryDefs)}`, languageId);
|
|
3678
3696
|
const inputKeys = [
|
|
3679
3697
|
cacheKey,
|
|
3680
3698
|
...queryDefs.map((queryDef) => this.getQueryCacheKey(`raw:${queryDef.id}:${queryDef.query}`, languageId))
|