@herbertgao/pi-extensions 2026.11.2 → 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 +19 -0
- package/README.md +13 -13
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +12 -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/compact-mode.ts +109 -16
- 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/diff/write-execution.ts +5 -1
- 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/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +12 -10
- package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +1 -1
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-record-entry.ts +22 -6
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +9 -4
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +167 -7
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +8 -4
- package/node_modules/@narumitw/pi-btw/CHANGELOG.md +259 -0
- package/node_modules/@narumitw/pi-btw/package.json +6 -5
- package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +70 -0
- package/node_modules/@narumitw/pi-caffeinate/package.json +5 -4
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +48 -0
- package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +64 -5
- package/node_modules/pi-commandcode-provider/README.md +44 -18
- package/node_modules/pi-commandcode-provider/RELEASE.md +25 -0
- package/node_modules/pi-commandcode-provider/index.ts +222 -42
- 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 +67 -10
- package/node_modules/pi-commandcode-provider/src/auth-server.ts +33 -24
- 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 +29 -43
- package/node_modules/pi-commandcode-provider/src/diagnostics.ts +215 -0
- package/node_modules/pi-commandcode-provider/src/oauth.ts +41 -7
- package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -3
- 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 +23 -10
- package/node_modules/pi-commandcode-provider/src/transport.ts +82 -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/node_modules/pi-web-access/CHANGELOG.md +22 -0
- package/node_modules/pi-web-access/README.md +31 -12
- package/node_modules/pi-web-access/curator-page.ts +5 -1
- package/node_modules/pi-web-access/curator-server.ts +2 -0
- package/node_modules/pi-web-access/dist/index.js +673 -308
- package/node_modules/pi-web-access/dist/mcp-cli.js +666 -309
- package/node_modules/pi-web-access/gemini-search.ts +12 -4
- package/node_modules/pi-web-access/github-api.ts +1 -1
- package/node_modules/pi-web-access/github-extract.ts +3 -2
- package/node_modules/pi-web-access/index.ts +7 -3
- package/node_modules/pi-web-access/mcp-tool-definitions.ts +1 -1
- package/node_modules/pi-web-access/outcrawl.ts +204 -0
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/sofya.ts +201 -0
- package/node_modules/pi-web-access/utils.ts +16 -6
- package/node_modules/pi-web-access/web-tool-core.ts +4 -0
- package/package.json +16 -14
- package/node_modules/pi-commandcode-provider/src/converters.ts +0 -477
- package/node_modules/pi-commandcode-provider/src/core.ts +0 -836
- 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,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveToolCwd
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RNJFRXEN.js";
|
|
5
5
|
import {
|
|
6
6
|
allAvailableGlobalBinDirs,
|
|
7
7
|
installArgs,
|
|
8
8
|
pmBinary,
|
|
9
9
|
resolveNodePackageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E65WJVI5.js";
|
|
11
11
|
import {
|
|
12
12
|
probeToolAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L6WBJGQS.js";
|
|
14
14
|
import {
|
|
15
15
|
registerBackgroundWriteDrain
|
|
16
16
|
} from "./chunk-UYXV5NIS.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
createAvailabilityLatch,
|
|
21
21
|
logAvailabilityDecision,
|
|
22
22
|
startHostStallSampler
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AACN5GNE.js";
|
|
24
24
|
import {
|
|
25
25
|
acquireBoundedPidFileLock,
|
|
26
26
|
acquireQuarantinePidFileLock,
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
isLockContention,
|
|
31
31
|
isUntrustedProjectPath,
|
|
32
32
|
ownsTopGeneration,
|
|
33
|
+
realIsPidAlive,
|
|
33
34
|
recordGenerationTakeover,
|
|
34
35
|
recordLegacyLockHeld,
|
|
35
36
|
recordProjectCommandRefusal,
|
|
@@ -39,28 +40,27 @@ import {
|
|
|
39
40
|
startGenerationHeartbeat,
|
|
40
41
|
tryAcquireGeneration,
|
|
41
42
|
windowsExe
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TMNUTMT5.js";
|
|
43
44
|
import {
|
|
44
45
|
assertInstallAllowed,
|
|
45
46
|
getProjectTrustGeneration,
|
|
46
47
|
projectTrustDenialReason,
|
|
47
48
|
writeFileAtomic,
|
|
48
49
|
writeFileAtomicAsync
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-PIIUNJIT.js";
|
|
50
51
|
import {
|
|
51
52
|
getDegradationLedgerGeneration,
|
|
52
53
|
incrementDegradationCount,
|
|
54
|
+
logExtension,
|
|
53
55
|
recordDegradationOnce
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import {
|
|
56
|
-
logExtension
|
|
57
|
-
} from "./chunk-WQV6BI4Q.js";
|
|
56
|
+
} from "./chunk-W5E72HJA.js";
|
|
58
57
|
import {
|
|
59
58
|
createNdjsonLogger,
|
|
60
59
|
getGlobalPiLensLogDir,
|
|
61
60
|
getMaxLogSizeMB,
|
|
62
|
-
isTestMode
|
|
63
|
-
|
|
61
|
+
isTestMode,
|
|
62
|
+
isToolInstallDisabled
|
|
63
|
+
} from "./chunk-VCRVNLE7.js";
|
|
64
64
|
import {
|
|
65
65
|
BoundedLruCache,
|
|
66
66
|
findLocalToolConfig,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
isUnderDir,
|
|
69
69
|
realpathOrResolve,
|
|
70
70
|
toPosix
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
72
72
|
import {
|
|
73
73
|
__require
|
|
74
74
|
} from "./chunk-NXL4FFQQ.js";
|
|
@@ -373,14 +373,6 @@ var installLockExitCleanupRegistered = false;
|
|
|
373
373
|
function getManagedToolsDir() {
|
|
374
374
|
return TOOLS_DIR;
|
|
375
375
|
}
|
|
376
|
-
function isProcessAlive(pid) {
|
|
377
|
-
try {
|
|
378
|
-
process.kill(pid, 0);
|
|
379
|
-
return true;
|
|
380
|
-
} catch (error) {
|
|
381
|
-
return error.code === "EPERM";
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
376
|
function installLockMaxAgeMs() {
|
|
385
377
|
return (Number(process.env.PI_LENS_INSTALL_TIMEOUT_MS) || 12e4) + 6e4;
|
|
386
378
|
}
|
|
@@ -388,7 +380,7 @@ function legacyInstallLockIsStale(maxAgeMs) {
|
|
|
388
380
|
try {
|
|
389
381
|
const owner = JSON.parse(readFileSync2(INSTALL_LOCK_PATH, "utf8"));
|
|
390
382
|
const expired = Number.isFinite(owner.createdAt) && Date.now() - owner.createdAt > maxAgeMs;
|
|
391
|
-
return expired || Number.isInteger(owner.pid) && owner.pid > 0 && !
|
|
383
|
+
return expired || Number.isInteger(owner.pid) && owner.pid > 0 && !realIsPidAlive(owner.pid);
|
|
392
384
|
} catch {
|
|
393
385
|
try {
|
|
394
386
|
return Date.now() - statSync2(INSTALL_LOCK_PATH).mtimeMs > maxAgeMs;
|
|
@@ -3216,7 +3208,7 @@ ${result.stderr}`);
|
|
|
3216
3208
|
}
|
|
3217
3209
|
}
|
|
3218
3210
|
async function acquireManagedInstallGate(context) {
|
|
3219
|
-
if (
|
|
3211
|
+
if (isToolInstallDisabled()) {
|
|
3220
3212
|
return {
|
|
3221
3213
|
ok: false,
|
|
3222
3214
|
reason: "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1"
|
|
@@ -4129,7 +4121,7 @@ async function stampInstallResolution(toolId) {
|
|
|
4129
4121
|
return;
|
|
4130
4122
|
try {
|
|
4131
4123
|
const resolutionId = lastInstallResolutionId.get(toolId);
|
|
4132
|
-
const refresh = await import("./chunk-
|
|
4124
|
+
const refresh = await import("./chunk-N56BNAA6.js");
|
|
4133
4125
|
await refresh.stampManagedToolInstall(toolId, resolutionId);
|
|
4134
4126
|
} catch {
|
|
4135
4127
|
}
|
|
@@ -4142,7 +4134,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
|
|
|
4142
4134
|
if (ok) {
|
|
4143
4135
|
resetSafeSpawnWindowsCommandCache();
|
|
4144
4136
|
try {
|
|
4145
|
-
const { resetMadgeManagedPathMemo } = await import("./chunk-
|
|
4137
|
+
const { resetMadgeManagedPathMemo } = await import("./chunk-QJJKOHLH.js");
|
|
4146
4138
|
resetMadgeManagedPathMemo();
|
|
4147
4139
|
} catch (err) {
|
|
4148
4140
|
logSessionStart(`auto-install ${toolId}: madge memo reset failed: ${err.message}`);
|
|
@@ -4151,7 +4143,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
|
|
|
4151
4143
|
return ok;
|
|
4152
4144
|
}
|
|
4153
4145
|
async function installTool(toolId, ownsLock) {
|
|
4154
|
-
if (
|
|
4146
|
+
if (isToolInstallDisabled()) {
|
|
4155
4147
|
installFailureReasons.set(toolId, "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4156
4148
|
noteInstallAttempt(toolId, "declined", "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4157
4149
|
logSessionStart(`auto-install ${toolId}: refused \u2014 PI_LENS_DISABLE_TOOL_INSTALL=1`);
|
|
@@ -4172,7 +4164,7 @@ async function installTool(toolId, ownsLock) {
|
|
|
4172
4164
|
return false;
|
|
4173
4165
|
const npmPath = await installNpmTool(tool.id, tool.packageName, tool.binaryName, tool.checkArgs, getToolVerificationTimeout(tool), packageEntryVerification(tool), ownsLock);
|
|
4174
4166
|
if (npmPath !== void 0) {
|
|
4175
|
-
await import("./chunk-
|
|
4167
|
+
await import("./chunk-N56BNAA6.js").then((m) => m.stampManagedToolInstalled(tool.id, tool.packageName)).catch(() => {
|
|
4176
4168
|
});
|
|
4177
4169
|
}
|
|
4178
4170
|
return finishInstallAttempt(tool.id, npmPath !== void 0, startedAt);
|
|
@@ -4275,7 +4267,7 @@ async function ensureToolResolved(toolId, opts) {
|
|
|
4275
4267
|
logSessionStart(`auto-install ensure ${toolId}: force reinstall blocked \u2014 install disabled, discovery only (${Date.now() - ensureStartMs2}ms)`);
|
|
4276
4268
|
return cacheResolvedPath(await getToolPath(toolId));
|
|
4277
4269
|
}
|
|
4278
|
-
if (
|
|
4270
|
+
if (isToolInstallDisabled()) {
|
|
4279
4271
|
installFailureReasons.set(toolId, "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4280
4272
|
noteInstallAttempt(toolId, "declined", "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4281
4273
|
logSessionStart(`auto-install ensure ${toolId}: refused \u2014 PI_LENS_DISABLE_TOOL_INSTALL=1`);
|
|
@@ -4364,7 +4356,7 @@ async function ensureToolResolved(toolId, opts) {
|
|
|
4364
4356
|
logSessionStart(`auto-install ensure ${toolId}: install disabled \u2014 discovery only, not found (${Date.now() - ensureStartMs}ms)`);
|
|
4365
4357
|
return void 0;
|
|
4366
4358
|
}
|
|
4367
|
-
if (
|
|
4359
|
+
if (isToolInstallDisabled()) {
|
|
4368
4360
|
installFailureReasons.set(toolId, "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4369
4361
|
noteInstallAttempt(toolId, "declined", "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4370
4362
|
logSessionStart(`auto-install ensure ${toolId}: refused \u2014 PI_LENS_DISABLE_TOOL_INSTALL=1 (${Date.now() - ensureStartMs}ms)`);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadPiLensProjectConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X5BJ3G2P.js";
|
|
5
5
|
import {
|
|
6
6
|
lazyEnvNumber,
|
|
7
7
|
toPositiveFinite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VCRVNLE7.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/project-scale.js
|
|
11
11
|
var DEFAULT_PROJECT_SCALE_BASE = 2e3;
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
OPENGREP_REGISTRY_PACK_URL,
|
|
11
11
|
cachedOpengrepPackPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RTFMDIKV.js";
|
|
13
13
|
import {
|
|
14
14
|
HOOK_WALL_BUDGET_MS
|
|
15
15
|
} from "./chunk-CKEQFGLT.js";
|
|
16
16
|
import {
|
|
17
17
|
bounded
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MKPDIAZH.js";
|
|
19
19
|
import {
|
|
20
20
|
acquireManagedInstallGate,
|
|
21
21
|
commitDurableStoreAsync,
|
|
@@ -29,42 +29,40 @@ import {
|
|
|
29
29
|
refreshManagedTool,
|
|
30
30
|
resolveManagedNpmBinPath,
|
|
31
31
|
verifyToolBinary
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-MQ4PPCJB.js";
|
|
33
|
+
import "./chunk-RNJFRXEN.js";
|
|
34
34
|
import {
|
|
35
35
|
pmBinary,
|
|
36
36
|
resolveNodePackageManager,
|
|
37
37
|
updateArgs
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-E65WJVI5.js";
|
|
39
|
+
import "./chunk-L6WBJGQS.js";
|
|
40
40
|
import "./chunk-UYXV5NIS.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-AACN5GNE.js";
|
|
42
|
+
import "./chunk-3HTZDY3C.js";
|
|
43
|
+
import "./chunk-CDFJF5YD.js";
|
|
44
|
+
import "./chunk-RNXOWDM6.js";
|
|
45
|
+
import "./chunk-ZCQBNPRH.js";
|
|
46
46
|
import {
|
|
47
47
|
safeSpawnAsync
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TMNUTMT5.js";
|
|
49
49
|
import "./chunk-AWQWXSW4.js";
|
|
50
50
|
import "./chunk-QYF5S6P6.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-CZCAZVTD.js";
|
|
52
|
+
import "./chunk-X5BJ3G2P.js";
|
|
53
|
+
import "./chunk-NL5LSKVD.js";
|
|
54
54
|
import {
|
|
55
55
|
writeFileAtomicAsync
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-PIIUNJIT.js";
|
|
57
57
|
import {
|
|
58
58
|
recordDegradationOnce
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-WQV6BI4Q.js";
|
|
59
|
+
} from "./chunk-W5E72HJA.js";
|
|
61
60
|
import "./chunk-S26LC76R.js";
|
|
62
|
-
import "./chunk-565VRUP4.js";
|
|
63
61
|
import {
|
|
64
62
|
isTestMode
|
|
65
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-VCRVNLE7.js";
|
|
66
64
|
import "./chunk-LJDODBBZ.js";
|
|
67
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-CB7PEVOJ.js";
|
|
68
66
|
import "./chunk-NXL4FFQQ.js";
|
|
69
67
|
|
|
70
68
|
// dist/clients/installer/managed-tool-refresh.js
|
|
@@ -9,26 +9,24 @@ import {
|
|
|
9
9
|
getDeadCodeClients,
|
|
10
10
|
parseVultureOutput,
|
|
11
11
|
stableFindingKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HEA3EM23.js";
|
|
13
13
|
import "./chunk-7U2IDNXN.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VO4JFPTV.js";
|
|
15
|
+
import "./chunk-ZZN74OGD.js";
|
|
16
|
+
import "./chunk-J3Q2NYJR.js";
|
|
17
|
+
import "./chunk-E65WJVI5.js";
|
|
18
|
+
import "./chunk-L6WBJGQS.js";
|
|
19
|
+
import "./chunk-AACN5GNE.js";
|
|
20
|
+
import "./chunk-TMNUTMT5.js";
|
|
21
21
|
import "./chunk-AWQWXSW4.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-WQV6BI4Q.js";
|
|
22
|
+
import "./chunk-X5BJ3G2P.js";
|
|
23
|
+
import "./chunk-NL5LSKVD.js";
|
|
24
|
+
import "./chunk-PIIUNJIT.js";
|
|
25
|
+
import "./chunk-W5E72HJA.js";
|
|
27
26
|
import "./chunk-S26LC76R.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-VLQ7UKZH.js";
|
|
27
|
+
import "./chunk-VCRVNLE7.js";
|
|
30
28
|
import "./chunk-LJDODBBZ.js";
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-CB7PEVOJ.js";
|
|
32
30
|
import "./chunk-NXL4FFQQ.js";
|
|
33
31
|
export {
|
|
34
32
|
DEAD_CODE_DELTA_MAX_SHOWN,
|
|
@@ -2,16 +2,16 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getToolCommandSpec,
|
|
4
4
|
shouldAutoInstallTool
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7R5GZIA6.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTIN_SERVER_RUNNER_COVERS,
|
|
8
8
|
getServersForFileWithConfig,
|
|
9
9
|
isAuxiliary,
|
|
10
10
|
resolveAnalysisRootPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YOXCCJDF.js";
|
|
12
12
|
import {
|
|
13
13
|
emitBounded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V67D6TMU.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureTool,
|
|
17
17
|
findManagedToolBinary,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
isSpawnableCommand,
|
|
22
22
|
logSessionStart,
|
|
23
23
|
resetPathWalkMemo
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MQ4PPCJB.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveToolCwd
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RNJFRXEN.js";
|
|
28
28
|
import {
|
|
29
29
|
findGlobalBinary,
|
|
30
30
|
findLocalBinAt,
|
|
31
31
|
findLocalBinUpwards,
|
|
32
32
|
localBinPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-E65WJVI5.js";
|
|
34
34
|
import {
|
|
35
35
|
createAvailabilityProbeFlight,
|
|
36
36
|
probeToolAsync
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-L6WBJGQS.js";
|
|
38
38
|
import {
|
|
39
39
|
classifyProbeFailure,
|
|
40
40
|
createAvailabilityLatch,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
logAvailabilityDecision,
|
|
45
45
|
startHostStallSampler,
|
|
46
46
|
transientRetryDelayMs
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AACN5GNE.js";
|
|
48
48
|
import {
|
|
49
49
|
VENDOR_BIN_DIRS,
|
|
50
50
|
VENV_BIN_DIRS,
|
|
@@ -53,22 +53,22 @@ import {
|
|
|
53
53
|
isInSpawnTimeoutCooldown,
|
|
54
54
|
resolveWindowsCommandForEnvironment,
|
|
55
55
|
safeSpawnAsync
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-TMNUTMT5.js";
|
|
57
57
|
import {
|
|
58
58
|
PathKeyedMap
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-X5BJ3G2P.js";
|
|
60
60
|
import {
|
|
61
61
|
getProjectTrustState
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-PIIUNJIT.js";
|
|
63
63
|
import {
|
|
64
64
|
compareOrdinal,
|
|
65
65
|
incrementDegradationCount
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-W5E72HJA.js";
|
|
67
67
|
import {
|
|
68
68
|
isUnderDir,
|
|
69
69
|
normalizeEphemeralMapKey,
|
|
70
70
|
normalizeMapKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
72
72
|
|
|
73
73
|
// dist/clients/dispatch/runners/utils/runner-helpers.js
|
|
74
74
|
import * as fs from "node:fs";
|
|
@@ -987,26 +987,7 @@ function resolveAvailableOrInstall(checker, toolId, cwd) {
|
|
|
987
987
|
return promise;
|
|
988
988
|
}
|
|
989
989
|
var sgLatch = createAvailabilityLatch();
|
|
990
|
-
var sgCmd = null;
|
|
991
|
-
var sgCmdArgs = [];
|
|
992
|
-
var sgAvailableInFlight = null;
|
|
993
990
|
var sgAvailabilityGeneration = availabilityGeneration.current();
|
|
994
|
-
function ensureCurrentSgGeneration() {
|
|
995
|
-
if (sgAvailabilityGeneration === availabilityGeneration.current())
|
|
996
|
-
return;
|
|
997
|
-
sgLatch.reset();
|
|
998
|
-
sgCmd = null;
|
|
999
|
-
sgCmdArgs = [];
|
|
1000
|
-
sgAvailableInFlight = null;
|
|
1001
|
-
sgAvailabilityGeneration = availabilityGeneration.current();
|
|
1002
|
-
}
|
|
1003
|
-
function getSgCommand() {
|
|
1004
|
-
ensureCurrentSgGeneration();
|
|
1005
|
-
return {
|
|
1006
|
-
cmd: sgCmd ?? "npx",
|
|
1007
|
-
args: sgCmdArgs.length ? sgCmdArgs : ["--no", "--package", "@ast-grep/cli", "--", "ast-grep"]
|
|
1008
|
-
};
|
|
1009
|
-
}
|
|
1010
991
|
async function resolveLocalFirstAsync(toolName, cwd, windowsExt = ".cmd") {
|
|
1011
992
|
const local = localBinPath(findLocalBinAt(toolName, cwd, { windowsExt }));
|
|
1012
993
|
if (local)
|
|
@@ -1047,7 +1028,6 @@ export {
|
|
|
1047
1028
|
resolveToolCommandWithInstallFallback,
|
|
1048
1029
|
resolveCommandArgsWithInstallFallback,
|
|
1049
1030
|
resolveAvailableOrInstall,
|
|
1050
|
-
getSgCommand,
|
|
1051
1031
|
resolveLocalFirstAsync,
|
|
1052
1032
|
resolveRunnerCwd
|
|
1053
1033
|
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-S26LC76R.js";
|
|
7
7
|
import {
|
|
8
8
|
logLatency
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VCRVNLE7.js";
|
|
10
10
|
import {
|
|
11
11
|
isWindowsPath,
|
|
12
12
|
nameMatchesMarkerGlob,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
realpathOrResolve,
|
|
15
15
|
toPosix,
|
|
16
16
|
walkUpDirs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
18
18
|
|
|
19
19
|
// dist/clients/workspace-topology.js
|
|
20
20
|
import * as fs2 from "node:fs";
|
|
@@ -15,21 +15,19 @@ import {
|
|
|
15
15
|
getFilterStats,
|
|
16
16
|
isBuildArtifact,
|
|
17
17
|
sourceTwinCandidates
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-RNXOWDM6.js";
|
|
19
|
+
import "./chunk-ZCQBNPRH.js";
|
|
20
|
+
import "./chunk-TMNUTMT5.js";
|
|
21
21
|
import "./chunk-QYF5S6P6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-WQV6BI4Q.js";
|
|
22
|
+
import "./chunk-CZCAZVTD.js";
|
|
23
|
+
import "./chunk-X5BJ3G2P.js";
|
|
24
|
+
import "./chunk-NL5LSKVD.js";
|
|
25
|
+
import "./chunk-PIIUNJIT.js";
|
|
26
|
+
import "./chunk-W5E72HJA.js";
|
|
28
27
|
import "./chunk-S26LC76R.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-VLQ7UKZH.js";
|
|
28
|
+
import "./chunk-VCRVNLE7.js";
|
|
31
29
|
import "./chunk-LJDODBBZ.js";
|
|
32
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-CB7PEVOJ.js";
|
|
33
31
|
import "./chunk-NXL4FFQQ.js";
|
|
34
32
|
export {
|
|
35
33
|
ALL_SCANNABLE_EXTENSIONS,
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getProjectDataDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-WQV6BI4Q.js";
|
|
4
|
+
} from "./chunk-TMNUTMT5.js";
|
|
5
|
+
import "./chunk-X5BJ3G2P.js";
|
|
6
|
+
import "./chunk-NL5LSKVD.js";
|
|
7
|
+
import "./chunk-PIIUNJIT.js";
|
|
8
|
+
import "./chunk-W5E72HJA.js";
|
|
10
9
|
import "./chunk-S26LC76R.js";
|
|
11
|
-
import "./chunk-565VRUP4.js";
|
|
12
10
|
import {
|
|
13
11
|
redactSecrets
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VCRVNLE7.js";
|
|
15
13
|
import "./chunk-LJDODBBZ.js";
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-CB7PEVOJ.js";
|
|
17
15
|
import "./chunk-NXL4FFQQ.js";
|
|
18
16
|
|
|
19
17
|
// dist/clients/fix-worklog.js
|
|
@@ -67,31 +65,8 @@ function readWorklog(cwd) {
|
|
|
67
65
|
return [];
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
|
-
function summarizeWorklog(cwd) {
|
|
71
|
-
const entries = readWorklog(cwd);
|
|
72
|
-
const byRule = /* @__PURE__ */ new Map();
|
|
73
|
-
let totalAutoFixed = 0;
|
|
74
|
-
let totalFixable = 0;
|
|
75
|
-
for (const e of entries) {
|
|
76
|
-
const r = byRule.get(e.rule) ?? { count: 0, autoFixed: 0 };
|
|
77
|
-
r.count++;
|
|
78
|
-
if (e.autoFixed) {
|
|
79
|
-
r.autoFixed++;
|
|
80
|
-
totalAutoFixed++;
|
|
81
|
-
}
|
|
82
|
-
if (e.fixable)
|
|
83
|
-
totalFixable++;
|
|
84
|
-
byRule.set(e.rule, r);
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
totalAutoFixed,
|
|
88
|
-
totalFixable,
|
|
89
|
-
byRule: [...byRule.entries()].map(([rule, v]) => ({ rule, ...v })).sort((a, b) => b.count - a.count)
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
68
|
export {
|
|
93
69
|
appendToWorklog,
|
|
94
70
|
getWorklogPath,
|
|
95
|
-
readWorklog
|
|
96
|
-
summarizeWorklog
|
|
71
|
+
readWorklog
|
|
97
72
|
};
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
6
6
|
DOTNET_CSHARP_SOLUTION_MARKERS,
|
|
7
7
|
DOTNET_FSHARP_ROOT_MARKERS,
|
|
8
|
+
GROOVY_FILENAMES,
|
|
8
9
|
KIND_EXTENSIONS,
|
|
9
10
|
LEAN_ROOT_MARKERS,
|
|
10
11
|
NON_CODE_KINDS,
|
|
@@ -19,12 +20,11 @@ import {
|
|
|
19
20
|
isHelmYamlTemplatePath,
|
|
20
21
|
isJstsFactFile,
|
|
21
22
|
isReadableSourceFile
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-CZCAZVTD.js";
|
|
24
|
+
import "./chunk-NL5LSKVD.js";
|
|
24
25
|
import "./chunk-S26LC76R.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-GMROJJRN.js";
|
|
26
|
+
import "./chunk-VCRVNLE7.js";
|
|
27
|
+
import "./chunk-CB7PEVOJ.js";
|
|
28
28
|
import "./chunk-NXL4FFQQ.js";
|
|
29
29
|
export {
|
|
30
30
|
CODE_KINDS,
|
|
@@ -32,6 +32,7 @@ export {
|
|
|
32
32
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
33
33
|
DOTNET_CSHARP_SOLUTION_MARKERS,
|
|
34
34
|
DOTNET_FSHARP_ROOT_MARKERS,
|
|
35
|
+
GROOVY_FILENAMES,
|
|
35
36
|
KIND_EXTENSIONS,
|
|
36
37
|
LEAN_ROOT_MARKERS,
|
|
37
38
|
NON_CODE_KINDS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isMutatingToolName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VWLSU3XV.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeMapKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/agent-behavior-client.js
|
|
10
10
|
var READ_OPS = /* @__PURE__ */ new Set(["read", "bash", "grep", "glob", "find", "rg"]);
|