@herbertgao/pi-extensions 2026.10.19 → 2026.11.0
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/README.md +19 -4
- package/THIRD_PARTY_NOTICES.md +53 -2
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +142 -45
- package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +17 -7
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +111 -59
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +135 -117
- package/node_modules/@herbertgao/pi-subagents/src/cross-extension-rpc.ts +41 -14
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +110 -19
- package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +8 -0
- package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +31 -0
- package/node_modules/@tintinweb/pi-tasks/CHANGELOG.md +270 -0
- package/node_modules/@tintinweb/pi-tasks/CONTRIBUTING.md +67 -0
- package/node_modules/@tintinweb/pi-tasks/CUSTOMIZING.md +289 -0
- package/node_modules/@tintinweb/pi-tasks/LICENSE +21 -0
- package/node_modules/@tintinweb/pi-tasks/README.md +417 -0
- package/node_modules/@tintinweb/pi-tasks/SECURITY.md +107 -0
- package/node_modules/@tintinweb/pi-tasks/dist/auto-clear.d.ts +64 -0
- package/node_modules/@tintinweb/pi-tasks/dist/auto-clear.js +129 -0
- package/node_modules/@tintinweb/pi-tasks/dist/index.d.ts +17 -0
- package/node_modules/@tintinweb/pi-tasks/dist/index.js +1338 -0
- package/node_modules/@tintinweb/pi-tasks/dist/process-tracker.d.ts +29 -0
- package/node_modules/@tintinweb/pi-tasks/dist/process-tracker.js +121 -0
- package/node_modules/@tintinweb/pi-tasks/dist/reminder-cadence.d.ts +39 -0
- package/node_modules/@tintinweb/pi-tasks/dist/reminder-cadence.js +61 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-glyphs.d.ts +48 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-glyphs.js +68 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-paths.d.ts +44 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-paths.js +60 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-sort.d.ts +23 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-sort.js +69 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-store.d.ts +61 -0
- package/node_modules/@tintinweb/pi-tasks/dist/task-store.js +397 -0
- package/node_modules/@tintinweb/pi-tasks/dist/tasks-config.d.ts +16 -0
- package/node_modules/@tintinweb/pi-tasks/dist/tasks-config.js +51 -0
- package/node_modules/@tintinweb/pi-tasks/dist/types.d.ts +36 -0
- package/node_modules/@tintinweb/pi-tasks/dist/types.js +4 -0
- package/node_modules/@tintinweb/pi-tasks/dist/ui/settings-menu.d.ts +15 -0
- package/node_modules/@tintinweb/pi-tasks/dist/ui/settings-menu.js +140 -0
- package/node_modules/@tintinweb/pi-tasks/dist/ui/task-widget.d.ts +69 -0
- package/node_modules/@tintinweb/pi-tasks/dist/ui/task-widget.js +278 -0
- package/node_modules/@tintinweb/pi-tasks/package.json +57 -0
- package/node_modules/@tintinweb/pi-tasks/src/auto-clear.ts +134 -0
- package/node_modules/@tintinweb/pi-tasks/src/index.ts +1417 -0
- package/node_modules/@tintinweb/pi-tasks/src/process-tracker.ts +140 -0
- package/node_modules/@tintinweb/pi-tasks/src/reminder-cadence.ts +90 -0
- package/node_modules/@tintinweb/pi-tasks/src/task-glyphs.ts +110 -0
- package/node_modules/@tintinweb/pi-tasks/src/task-paths.ts +65 -0
- package/node_modules/@tintinweb/pi-tasks/src/task-sort.ts +90 -0
- package/node_modules/@tintinweb/pi-tasks/src/task-store.ts +402 -0
- package/node_modules/@tintinweb/pi-tasks/src/tasks-config.ts +77 -0
- package/node_modules/@tintinweb/pi-tasks/src/types.ts +40 -0
- package/node_modules/@tintinweb/pi-tasks/src/ui/settings-menu.ts +174 -0
- package/node_modules/@tintinweb/pi-tasks/src/ui/task-widget.ts +325 -0
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +330 -0
- package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +192 -0
- package/node_modules/pi-commandcode-provider/LICENSE +21 -0
- package/node_modules/pi-commandcode-provider/README.md +243 -0
- package/node_modules/pi-commandcode-provider/RELEASE.md +194 -0
- package/node_modules/pi-commandcode-provider/index.ts +309 -0
- package/node_modules/pi-commandcode-provider/package.json +91 -0
- package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +87 -0
- package/node_modules/pi-commandcode-provider/scripts/pi-authenticated.mjs +50 -0
- package/node_modules/pi-commandcode-provider/scripts/pi-isolated.mjs +79 -0
- package/node_modules/pi-commandcode-provider/src/api-key.ts +69 -0
- package/node_modules/pi-commandcode-provider/src/auth-server.ts +229 -0
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +28 -0
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +260 -0
- package/node_modules/pi-commandcode-provider/src/converters.ts +477 -0
- package/node_modules/pi-commandcode-provider/src/core.ts +836 -0
- package/node_modules/pi-commandcode-provider/src/cost.ts +76 -0
- package/node_modules/pi-commandcode-provider/src/json-schema.ts +417 -0
- package/node_modules/pi-commandcode-provider/src/models.ts +515 -0
- package/node_modules/pi-commandcode-provider/src/oauth.ts +229 -0
- package/node_modules/pi-commandcode-provider/src/overflow.ts +120 -0
- package/node_modules/pi-commandcode-provider/src/pricing.ts +370 -0
- package/node_modules/pi-commandcode-provider/src/quota-command.ts +66 -0
- package/node_modules/pi-commandcode-provider/src/quota-format.ts +143 -0
- package/node_modules/pi-commandcode-provider/src/quota-types.ts +47 -0
- package/node_modules/pi-commandcode-provider/src/quota.ts +357 -0
- package/node_modules/pi-commandcode-provider/src/responses-stream.ts +249 -0
- package/node_modules/pi-commandcode-provider/src/runtime.ts +330 -0
- package/node_modules/pi-commandcode-provider/src/transcript.ts +56 -0
- package/node_modules/pi-commandcode-provider/src/transport.ts +147 -0
- package/node_modules/pi-commandcode-provider/src/types.ts +212 -0
- package/node_modules/pi-commandcode-provider/src/usage.ts +261 -0
- package/node_modules/pi-lens/CHANGELOG.md +149 -0
- package/node_modules/pi-lens/README.md +12 -2
- package/node_modules/pi-lens/config/markdownlint/run-no-fix.mjs +36 -0
- package/node_modules/pi-lens/dist/{chunk-WME2OQST.js → chunk-2453RRJ2.js} +11 -6
- package/node_modules/pi-lens/dist/{chunk-FZKFVUEC.js → chunk-2BKUFQKR.js} +276 -208
- package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +31 -0
- package/node_modules/pi-lens/dist/{chunk-QHSNL7B2.js → chunk-2ZE3AUJQ.js} +12 -14
- package/node_modules/pi-lens/dist/{chunk-MPKRJBPK.js → chunk-35WKJWO5.js} +28 -30
- package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-4LM3VAZH.js → chunk-3O5EII3W.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-447YZL4S.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-H7OR7DFZ.js → chunk-4B2YFN4U.js} +25 -21
- package/node_modules/pi-lens/dist/{chunk-OSTKYB55.js → chunk-4BKU7PV3.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-RRV3FNNM.js → chunk-4LL2VRNY.js} +27 -28
- package/node_modules/pi-lens/dist/{chunk-BZARLRJW.js → chunk-4NBWFYWW.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-KKCK636N.js → chunk-4QG55RRC.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-RQS4QQSD.js → chunk-4W52ZKZX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-Z2XAOKHK.js → chunk-565VRUP4.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HWDAVBFU.js → chunk-57X2CDRX.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-MB6PXBUA.js → chunk-5F3XF3SX.js} +7 -15
- package/node_modules/pi-lens/dist/{chunk-O4BJFESU.js → chunk-5RNB4HVK.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ZMAUPOMG.js → chunk-5T5A6YAJ.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-4ZYJHQMB.js → chunk-6FIRFP6A.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-4YHYPW2G.js → chunk-6GMGEKQN.js} +9 -5
- package/node_modules/pi-lens/dist/{chunk-4LOE5R5P.js → chunk-6LJOJ6EO.js} +20 -15
- package/node_modules/pi-lens/dist/{chunk-3YY7IXIL.js → chunk-6YUNI7B5.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-PKES3ISE.js → chunk-7ANZ7XDD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-FB5SCCPT.js → chunk-7CGIDRIK.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-L3CMBQMH.js → chunk-7MAD5ZAY.js} +16 -17
- package/node_modules/pi-lens/dist/{chunk-WDBICWH3.js → chunk-7TNILKGY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-RORGS5II.js → chunk-A5GRLYPZ.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-MNJIXFX4.js → chunk-AGGUWKRK.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ABPKUVA4.js → chunk-BBET6HD6.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-L5JYIU47.js → chunk-BHWW6FAX.js} +14 -13
- package/node_modules/pi-lens/dist/{chunk-URCQWAQ4.js → chunk-BOPDQ7AZ.js} +23 -21
- package/node_modules/pi-lens/dist/{chunk-KDX35VXP.js → chunk-BQG2QFVO.js} +158 -133
- package/node_modules/pi-lens/dist/{chunk-CB4WHS4H.js → chunk-BUZIQDFS.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2PHMIAKO.js → chunk-CM73PPGD.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DH5JPM3K.js → chunk-CUDD35TW.js} +10 -9
- package/node_modules/pi-lens/dist/{chunk-AWDSEDER.js → chunk-CZL44WFN.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-N5WSK2K7.js → chunk-DIWK3LBC.js} +12 -15
- package/node_modules/pi-lens/dist/{chunk-24BILSZW.js → chunk-DYRZGUMA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PR6PO3ES.js → chunk-FHEV6T4L.js} +22 -18
- package/node_modules/pi-lens/dist/{chunk-DQZFQSR5.js → chunk-FRLAUP2B.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-RZOXUSPC.js → chunk-G5GV2Q7K.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-EKWX4WD3.js → chunk-G6JKM4O7.js} +7 -7
- package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-XT2HTCJ5.js → chunk-GIRBSBGL.js} +6 -5
- package/node_modules/pi-lens/dist/{chunk-PQJFG24Z.js → chunk-GMROJJRN.js} +1292 -946
- package/node_modules/pi-lens/dist/{chunk-U6VN4NVL.js → chunk-HHR7WGCI.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-TIQJPRDD.js → chunk-HKIL6DCL.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-SNDXCFRS.js → chunk-HUAM7QG3.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-QOE342SU.js → chunk-HXFUTMX2.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-U7BD2QL7.js → chunk-I22THIHI.js} +12 -12
- package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +58 -0
- package/node_modules/pi-lens/dist/{chunk-DPGEAHZT.js → chunk-IYVYZQRL.js} +10 -16
- package/node_modules/pi-lens/dist/{chunk-3F6BMY53.js → chunk-JBP7KESM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-U5HPROLA.js → chunk-JE6HKLC7.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-ZE3KXHS7.js → chunk-JPRDTY5S.js} +85 -3
- package/node_modules/pi-lens/dist/{chunk-HO6LWE2E.js → chunk-JYLOYTZD.js} +17 -1
- package/node_modules/pi-lens/dist/{chunk-KW5JQPO5.js → chunk-JZRP4DGP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-CPSR3AVL.js → chunk-KZ4ALBCH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6IR3ZYIB.js → chunk-L3CLUGDY.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-LV4UMYVH.js → chunk-L4NEVZ4T.js} +28 -27
- package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-WGRJOXED.js → chunk-LSFXZLPW.js} +1016 -636
- package/node_modules/pi-lens/dist/{chunk-LBLBAFG3.js → chunk-MC6VB2E5.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-U2SDMG7C.js → chunk-NM2NWH55.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-T7A2HK2B.js → chunk-NSPVR3FN.js} +19 -18
- package/node_modules/pi-lens/dist/{chunk-ZGSJDWQU.js → chunk-O2ARHQKF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-OXOI55RU.js → chunk-O4N5BQ3T.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-3FRLWYBG.js → chunk-OC7VWJBZ.js} +39 -40
- package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +89 -0
- package/node_modules/pi-lens/dist/{chunk-HR3OJ3TH.js → chunk-OWTG6UMO.js} +21 -21
- package/node_modules/pi-lens/dist/{chunk-75GAYVNO.js → chunk-OY7WZI7Q.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-ZJTT47IG.js → chunk-OZWXLJMX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-F6X3YJWD.js → chunk-PIQQM32Y.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-PKLB2XJL.js +8 -0
- package/node_modules/pi-lens/dist/{chunk-EAOK7MIZ.js → chunk-PKSUMEPT.js} +17 -4
- package/node_modules/pi-lens/dist/{chunk-YISME6ON.js → chunk-PPKECBPP.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-4L36HG27.js → chunk-R2QQC33W.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-LUBPZN36.js → chunk-R4QWJQ2H.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-V63BC55Q.js → chunk-RGGH6M34.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-Y7F7IEE3.js → chunk-RZG472YW.js} +65 -7
- package/node_modules/pi-lens/dist/{chunk-PUZ3E2J4.js → chunk-SDFKOLSF.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-YHC2O2WO.js → chunk-SFLHSL5R.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-CCV2EU7T.js → chunk-SP4TFY5F.js} +14 -13
- package/node_modules/pi-lens/dist/{chunk-J6JP25XU.js → chunk-SQC7K3SP.js} +4 -3
- package/node_modules/pi-lens/dist/{chunk-3K2F6UDZ.js → chunk-T2S3FNNJ.js} +44 -42
- package/node_modules/pi-lens/dist/{chunk-2TF6RXWB.js → chunk-TV6RXRYH.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-GNSIWBAT.js → chunk-U3AS2FR6.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-F7K5IBZG.js → chunk-UHHLR2VY.js} +40 -40
- package/node_modules/pi-lens/dist/chunk-UYXV5NIS.js +20 -0
- package/node_modules/pi-lens/dist/{chunk-VSFLRN5Y.js → chunk-VLQ7UKZH.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VUZWQ7UG.js → chunk-VN3L2JWZ.js} +46 -72
- package/node_modules/pi-lens/dist/{chunk-NA7SEXHE.js → chunk-VOP4PJKA.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-F5Z6URKM.js → chunk-VOXTCULR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-LLS45EWB.js → chunk-VPLBLWFO.js} +6 -8
- package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-ZKXQKGWZ.js → chunk-WC6WRNQT.js} +4 -3
- package/node_modules/pi-lens/dist/{chunk-YVHBNSME.js → chunk-WMDUT4KH.js} +1148 -1132
- package/node_modules/pi-lens/dist/{chunk-KXF5R4UN.js → chunk-WQV6BI4Q.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-WXUDRAG6.js +24 -0
- package/node_modules/pi-lens/dist/{chunk-KPPJTH44.js → chunk-X35S7HSB.js} +28 -10
- package/node_modules/pi-lens/dist/{chunk-JMEKXFOL.js → chunk-X66YJ2SS.js} +40 -34
- package/node_modules/pi-lens/dist/{chunk-CE6VMBCB.js → chunk-XOMGO63G.js} +22 -21
- package/node_modules/pi-lens/dist/{chunk-LS3QJRUB.js → chunk-XWIME22V.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-R5MOQM2H.js → chunk-XYLC35E4.js} +119 -87
- package/node_modules/pi-lens/dist/{chunk-OE5ZBP7F.js → chunk-YHGYAEFH.js} +18 -18
- package/node_modules/pi-lens/dist/{chunk-7E2563GA.js → chunk-ZFORSIED.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-E7HJ56Y7.js → chunk-ZKLTNLAW.js} +64 -73
- package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +74 -0
- package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +30 -0
- package/node_modules/pi-lens/dist/{chunk-RC2Z6K47.js → chunk-ZZDIOAAJ.js} +15 -6
- package/node_modules/pi-lens/dist/index.js +6993 -5396
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -10
- package/node_modules/pi-lens/dist/mcp/cli.js +44 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1627 -504
- package/node_modules/pi-lens/dist/mcp/worker.js +62 -61
- package/node_modules/pi-lens/dist/probes/installer.js +20 -19
- package/node_modules/pi-lens/docs/adr/0003-git-guard-latch-writer.md +11 -6
- package/node_modules/pi-lens/docs/agent-tools.md +18 -8
- package/node_modules/pi-lens/docs/alignment-families.md +29 -0
- package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +6 -4
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +126 -0
- package/node_modules/pi-lens/docs/configuration.md +99 -3
- package/node_modules/pi-lens/docs/defect-shapes.md +55 -12
- package/node_modules/pi-lens/docs/engineering-principles.md +27 -2
- package/node_modules/pi-lens/docs/features.md +2 -2
- package/node_modules/pi-lens/docs/invariants/git-guard-host.md +7 -3
- package/node_modules/pi-lens/docs/invariants/language-config.md +15 -4
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +16 -2
- package/node_modules/pi-lens/docs/invariants/paths-os.md +4 -2
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +119 -39
- package/node_modules/pi-lens/docs/merge-queue-rollout.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +24 -17
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +20 -11
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +9 -0
- package/node_modules/pi-lens/docs/pi-lens-orchestration.md +4 -1
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +5 -5
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +6 -3
- package/node_modules/pi-lens/docs/public-api-stability.md +18 -2
- package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +10 -0
- package/node_modules/pi-lens/docs/settings.md +10 -6
- package/node_modules/pi-lens/docs/word-index.md +17 -5
- package/node_modules/pi-lens/package.json +5 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/self-scan-baseline.json +1 -1
- package/node_modules/pi-provider-qoder/README.md +22 -0
- package/node_modules/pi-provider-qoder/dist/index.js +370 -11
- package/node_modules/pi-provider-qoder/package.json +5 -2
- package/package.json +11 -8
- package/node_modules/@tifan/pi-preferred-thinking/README.md +0 -54
- package/node_modules/@tifan/pi-preferred-thinking/package.json +0 -43
- package/node_modules/@tifan/pi-preferred-thinking/src/index.ts +0 -236
- package/node_modules/pi-lens/dist/chunk-46TNM7XZ.js +0 -88
- package/node_modules/pi-lens/dist/chunk-72OKUXSD.js +0 -31
- package/node_modules/pi-lens/dist/chunk-7GLOLOSH.js +0 -57
- package/node_modules/pi-lens/dist/chunk-AKUUMGD5.js +0 -26
- package/node_modules/pi-lens/dist/chunk-ASUXV767.js +0 -22
- package/node_modules/pi-lens/dist/chunk-CTADOKYM.js +0 -25
- package/node_modules/pi-lens/dist/chunk-JJ2RRESP.js +0 -58
- package/node_modules/pi-lens/dist/chunk-LSC3VADM.js +0 -23
- package/node_modules/pi-lens/dist/chunk-SHLDT3OI.js +0 -27
- package/node_modules/pi-lens/dist/chunk-UF7RTZSO.js +0 -27
- package/node_modules/pi-lens/dist/chunk-W4WP2ERB.js +0 -30
- package/node_modules/pi-lens/dist/chunk-YES5CACN.js +0 -73
|
@@ -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-WMDUT4KH.js";
|
|
5
5
|
import {
|
|
6
6
|
getTurnId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VLQ7UKZH.js";
|
|
8
8
|
import {
|
|
9
9
|
BoundedFifoMap
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GMROJJRN.js";
|
|
11
11
|
|
|
12
12
|
// dist/clients/custom-rule-locations.js
|
|
13
13
|
import * as path from "node:path";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
realpathOrResolve,
|
|
3
4
|
walkUpDirs
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GMROJJRN.js";
|
|
5
6
|
import {
|
|
6
7
|
__export
|
|
7
8
|
} from "./chunk-NXL4FFQQ.js";
|
|
@@ -16,7 +17,7 @@ function getPackageRoot(importMetaUrl) {
|
|
|
16
17
|
if (cached)
|
|
17
18
|
return cached;
|
|
18
19
|
let root = "";
|
|
19
|
-
for (const dir of walkUpDirs(path.dirname(fileURLToPath(importMetaUrl)))) {
|
|
20
|
+
for (const dir of walkUpDirs(path.dirname(realpathOrResolve(fileURLToPath(importMetaUrl))))) {
|
|
20
21
|
root = dir;
|
|
21
22
|
if (fs.existsSync(path.join(dir, "package.json")))
|
|
22
23
|
break;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getWordIndexMaxFilesDerived
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HXFUTMX2.js";
|
|
5
5
|
import {
|
|
6
6
|
createSingleFlight
|
|
7
7
|
} from "./chunk-AWQWXSW4.js";
|
|
@@ -12,29 +12,29 @@ import {
|
|
|
12
12
|
} from "./chunk-QYF5S6P6.js";
|
|
13
13
|
import {
|
|
14
14
|
KIND_EXTENSIONS
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G5GV2Q7K.js";
|
|
16
16
|
import {
|
|
17
17
|
PathKeyedMap,
|
|
18
18
|
isTestFileName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X35S7HSB.js";
|
|
20
20
|
import {
|
|
21
21
|
incrementDegradationCount
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2453RRJ2.js";
|
|
23
23
|
import {
|
|
24
24
|
logLatency
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-565VRUP4.js";
|
|
26
26
|
import {
|
|
27
27
|
createNdjsonLogger,
|
|
28
28
|
getGlobalPiLensLogDir,
|
|
29
29
|
getMaxLogSizeMB,
|
|
30
30
|
isTestMode
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VLQ7UKZH.js";
|
|
32
32
|
import {
|
|
33
33
|
isAtOrAboveHomeDir,
|
|
34
34
|
normalizeEphemeralMapKey,
|
|
35
35
|
normalizeFilePath,
|
|
36
36
|
realpathOrResolve
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GMROJJRN.js";
|
|
38
38
|
|
|
39
39
|
// dist/clients/word-index.js
|
|
40
40
|
import * as fs from "node:fs";
|
|
@@ -861,7 +861,7 @@ async function updateWordIndexDocumentAsyncUnsafe(index, doc, shouldContinue) {
|
|
|
861
861
|
}
|
|
862
862
|
var WORD_INDEX_MAX_BYTES = 512 * 1024;
|
|
863
863
|
async function collectWordIndexDocs(root, shouldContinue = () => true, preflightFiles) {
|
|
864
|
-
const { collectSourceFilesAsync } = await import("./chunk-
|
|
864
|
+
const { collectSourceFilesAsync } = await import("./chunk-I22THIHI.js");
|
|
865
865
|
const maxFiles = preflightFiles?.length ?? getWordIndexMaxFilesDerived(root);
|
|
866
866
|
const files = preflightFiles ? preflightFiles.map((file) => file.path) : await collectSourceFilesAsync(root, {
|
|
867
867
|
maxFiles,
|
|
@@ -910,7 +910,7 @@ async function refreshWordIndexIncrementally(index, root, shouldContinue = () =>
|
|
|
910
910
|
timings: { sourceWalkMs: 0, statWalkMs: 0, refreshReadsMs: 0 }
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
const { collectSourceFilesAsync } = await import("./chunk-
|
|
913
|
+
const { collectSourceFilesAsync } = await import("./chunk-I22THIHI.js");
|
|
914
914
|
const maxFiles = getWordIndexMaxFilesDerived(root);
|
|
915
915
|
const sourceWalkStartMs = Date.now();
|
|
916
916
|
const walked = await collectSourceFilesAsync(root, {
|
|
@@ -1750,7 +1750,7 @@ function triggerBackgroundWordIndexBuild(cwd, dbg, options = {}) {
|
|
|
1750
1750
|
void (async () => {
|
|
1751
1751
|
const startMs = Date.now();
|
|
1752
1752
|
try {
|
|
1753
|
-
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-
|
|
1753
|
+
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-SP4TFY5F.js");
|
|
1754
1754
|
const docs = await collectWordIndexDocs(key);
|
|
1755
1755
|
const index = await buildWordIndexAsync(docs);
|
|
1756
1756
|
const existing = loadProjectSnapshot(key);
|
|
@@ -1817,7 +1817,7 @@ function getWordIndexPersistScheduler() {
|
|
|
1817
1817
|
async function writeWordIndexSnapshot(cwd, index, dbg) {
|
|
1818
1818
|
const persistStartedAt = Date.now();
|
|
1819
1819
|
try {
|
|
1820
|
-
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-
|
|
1820
|
+
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-SP4TFY5F.js");
|
|
1821
1821
|
const existing = loadProjectSnapshot(cwd);
|
|
1822
1822
|
const snapshot = existing ?? {
|
|
1823
1823
|
version: PROJECT_SNAPSHOT_VERSION,
|
|
@@ -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-X35S7HSB.js";
|
|
5
5
|
import {
|
|
6
6
|
lazyEnvNumber,
|
|
7
7
|
toPositiveFinite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VLQ7UKZH.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/project-scale.js
|
|
11
11
|
var DEFAULT_PROJECT_SCALE_BASE = 2e3;
|
|
@@ -15,21 +15,21 @@ import {
|
|
|
15
15
|
getFilterStats,
|
|
16
16
|
isBuildArtifact,
|
|
17
17
|
sourceTwinCandidates
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-G6JKM4O7.js";
|
|
19
|
+
import "./chunk-O2ARHQKF.js";
|
|
20
|
+
import "./chunk-WMDUT4KH.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-
|
|
22
|
+
import "./chunk-G5GV2Q7K.js";
|
|
23
|
+
import "./chunk-X35S7HSB.js";
|
|
24
|
+
import "./chunk-SQC7K3SP.js";
|
|
25
|
+
import "./chunk-JE6HKLC7.js";
|
|
26
|
+
import "./chunk-2453RRJ2.js";
|
|
27
|
+
import "./chunk-WQV6BI4Q.js";
|
|
28
28
|
import "./chunk-S26LC76R.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-565VRUP4.js";
|
|
30
|
+
import "./chunk-VLQ7UKZH.js";
|
|
31
31
|
import "./chunk-LJDODBBZ.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-GMROJJRN.js";
|
|
33
33
|
import "./chunk-NXL4FFQQ.js";
|
|
34
34
|
export {
|
|
35
35
|
ALL_SCANNABLE_EXTENSIONS,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DependencyChecker,
|
|
4
|
+
buildMadgeArgs,
|
|
5
|
+
resetMadgeManagedPathMemo
|
|
6
|
+
} from "./chunk-DIWK3LBC.js";
|
|
7
|
+
import "./chunk-ZFORSIED.js";
|
|
8
|
+
import "./chunk-5F3XF3SX.js";
|
|
9
|
+
import {
|
|
10
|
+
mapWithConcurrency
|
|
11
|
+
} from "./chunk-XIMYZ3JA.js";
|
|
12
|
+
import "./chunk-XYLC35E4.js";
|
|
13
|
+
import "./chunk-DYRZGUMA.js";
|
|
14
|
+
import "./chunk-FHEV6T4L.js";
|
|
15
|
+
import "./chunk-ZZDIOAAJ.js";
|
|
16
|
+
import "./chunk-7ANZ7XDD.js";
|
|
17
|
+
import "./chunk-WC6WRNQT.js";
|
|
18
|
+
import "./chunk-HHR7WGCI.js";
|
|
19
|
+
import "./chunk-HKIL6DCL.js";
|
|
20
|
+
import "./chunk-PPKECBPP.js";
|
|
21
|
+
import "./chunk-5RNB4HVK.js";
|
|
22
|
+
import "./chunk-CKEQFGLT.js";
|
|
23
|
+
import "./chunk-JYLOYTZD.js";
|
|
24
|
+
import "./chunk-HUAM7QG3.js";
|
|
25
|
+
import "./chunk-HXFUTMX2.js";
|
|
26
|
+
import "./chunk-2BEMIWEW.js";
|
|
27
|
+
import "./chunk-IJYGIDF4.js";
|
|
28
|
+
import "./chunk-BQG2QFVO.js";
|
|
29
|
+
import "./chunk-IYVYZQRL.js";
|
|
30
|
+
import "./chunk-VOP4PJKA.js";
|
|
31
|
+
import "./chunk-JBP7KESM.js";
|
|
32
|
+
import "./chunk-UYXV5NIS.js";
|
|
33
|
+
import "./chunk-JZRP4DGP.js";
|
|
34
|
+
import "./chunk-SDFKOLSF.js";
|
|
35
|
+
import "./chunk-BBET6HD6.js";
|
|
36
|
+
import "./chunk-G6JKM4O7.js";
|
|
37
|
+
import "./chunk-O2ARHQKF.js";
|
|
38
|
+
import "./chunk-WMDUT4KH.js";
|
|
39
|
+
import "./chunk-AWQWXSW4.js";
|
|
40
|
+
import "./chunk-QYF5S6P6.js";
|
|
41
|
+
import "./chunk-G5GV2Q7K.js";
|
|
42
|
+
import "./chunk-X35S7HSB.js";
|
|
43
|
+
import "./chunk-SQC7K3SP.js";
|
|
44
|
+
import "./chunk-JE6HKLC7.js";
|
|
45
|
+
import "./chunk-2453RRJ2.js";
|
|
46
|
+
import "./chunk-WQV6BI4Q.js";
|
|
47
|
+
import "./chunk-S26LC76R.js";
|
|
48
|
+
import "./chunk-565VRUP4.js";
|
|
49
|
+
import "./chunk-VLQ7UKZH.js";
|
|
50
|
+
import "./chunk-LJDODBBZ.js";
|
|
51
|
+
import "./chunk-GMROJJRN.js";
|
|
52
|
+
import "./chunk-NXL4FFQQ.js";
|
|
53
|
+
export {
|
|
54
|
+
DependencyChecker,
|
|
55
|
+
buildMadgeArgs,
|
|
56
|
+
mapWithConcurrency,
|
|
57
|
+
resetMadgeManagedPathMemo
|
|
58
|
+
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
rootMarkersForFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SDFKOLSF.js";
|
|
5
5
|
import {
|
|
6
6
|
createGenerationMap,
|
|
7
7
|
createGenerationSource
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WMDUT4KH.js";
|
|
9
9
|
import {
|
|
10
10
|
getDegradationLedgerGeneration,
|
|
11
11
|
recordDegradationOnce
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2453RRJ2.js";
|
|
13
13
|
import {
|
|
14
14
|
logExtension
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WQV6BI4Q.js";
|
|
16
16
|
import {
|
|
17
|
-
isAtOrAboveHomeDir,
|
|
18
17
|
isRealGitMarker,
|
|
19
18
|
isUnderDir,
|
|
20
19
|
isWindowsPath,
|
|
21
20
|
nameMatchesMarkerGlob,
|
|
22
21
|
normalizeEphemeralMapKey,
|
|
23
|
-
realpathOrResolve
|
|
24
|
-
|
|
22
|
+
realpathOrResolve,
|
|
23
|
+
toPosix,
|
|
24
|
+
walkUpDirs
|
|
25
|
+
} from "./chunk-GMROJJRN.js";
|
|
25
26
|
|
|
26
27
|
// dist/clients/tool-cwd.js
|
|
27
28
|
import * as os from "node:os";
|
|
@@ -120,12 +121,9 @@ function syncGeneration() {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
function walkMarkerRoot(startDir, markers, homeDir) {
|
|
123
|
-
|
|
124
|
-
for (let depth = 0; depth < 64; depth++) {
|
|
125
|
-
if (isAtOrAboveHomeDir(current, homeDir))
|
|
126
|
-
break;
|
|
124
|
+
for (const current of walkUpDirs(startDir, { homeDir, maxDepth: 64 })) {
|
|
127
125
|
for (const marker of markers) {
|
|
128
|
-
const slash = marker
|
|
126
|
+
const slash = toPosix(marker).lastIndexOf("/");
|
|
129
127
|
const parent = slash >= 0 ? marker.slice(0, slash) : "";
|
|
130
128
|
const basename = slash >= 0 ? marker.slice(slash + 1) : marker;
|
|
131
129
|
const target = parent ? path.join(current, ...parent.split("/").filter(Boolean)) : current;
|
|
@@ -142,10 +140,6 @@ function walkMarkerRoot(startDir, markers, homeDir) {
|
|
|
142
140
|
if (found)
|
|
143
141
|
return { root: current, marker };
|
|
144
142
|
}
|
|
145
|
-
const parentDir = path.dirname(current);
|
|
146
|
-
if (parentDir === current)
|
|
147
|
-
break;
|
|
148
|
-
current = parentDir;
|
|
149
143
|
}
|
|
150
144
|
return { root: null };
|
|
151
145
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
recordDegradation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2453RRJ2.js";
|
|
5
5
|
import {
|
|
6
6
|
logExtension
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WQV6BI4Q.js";
|
|
8
8
|
import {
|
|
9
9
|
stagePathFor
|
|
10
10
|
} from "./chunk-LJDODBBZ.js";
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
scannerReportParentDir
|
|
4
|
+
} from "./chunk-RGGH6M34.js";
|
|
5
|
+
import {
|
|
6
|
+
formatToolFailure
|
|
7
|
+
} from "./chunk-RZG472YW.js";
|
|
2
8
|
import {
|
|
3
9
|
createAvailabilityProbeFlight,
|
|
4
10
|
probeToolAsync
|
|
5
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JBP7KESM.js";
|
|
6
12
|
import {
|
|
7
13
|
classifyProbeFailure,
|
|
8
14
|
createAvailabilityLatch,
|
|
@@ -10,15 +16,19 @@ import {
|
|
|
10
16
|
describeProbeEvidence,
|
|
11
17
|
logAvailabilityDecision,
|
|
12
18
|
startHostStallSampler
|
|
13
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JZRP4DGP.js";
|
|
14
20
|
import {
|
|
15
21
|
createSingleFlight
|
|
16
22
|
} from "./chunk-AWQWXSW4.js";
|
|
23
|
+
import {
|
|
24
|
+
incrementDegradationCount
|
|
25
|
+
} from "./chunk-2453RRJ2.js";
|
|
17
26
|
import {
|
|
18
27
|
createSubsystemLogger
|
|
19
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WQV6BI4Q.js";
|
|
20
29
|
|
|
21
30
|
// dist/clients/security-scan-client.js
|
|
31
|
+
import * as fs from "node:fs";
|
|
22
32
|
import * as path from "node:path";
|
|
23
33
|
var securityProbeFlights = createAvailabilityProbeFlight();
|
|
24
34
|
var SecurityScanClient = class {
|
|
@@ -319,6 +329,78 @@ var SecurityScanClient = class {
|
|
|
319
329
|
this.inFlight.set(key, promise);
|
|
320
330
|
return promise;
|
|
321
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* Shared body of a scan whose CLI writes a JSON report file (gitleaks,
|
|
334
|
+
* trivy): a private report directory under the scanner temp root, the spawn,
|
|
335
|
+
* the three non-parse outcomes (spawn error, no report written, a throw) and
|
|
336
|
+
* the directory's removal on every path.
|
|
337
|
+
*
|
|
338
|
+
* Result policy: a spawn error, a throw, or a non-zero exit that left no
|
|
339
|
+
* report is an unsuccessful empty result (`success` false) and one
|
|
340
|
+
* `security-scan-report-failed` row; a CLI that exits 0 without writing its
|
|
341
|
+
* report is a successful empty one carrying stderr's first line (both CLIs
|
|
342
|
+
* write the report even when nothing is found, so a missing file after a
|
|
343
|
+
* clean exit is an empty run, while a non-zero exit before the report means
|
|
344
|
+
* the scan never ran and must not be cached as clean). A report that exists
|
|
345
|
+
* is parsed whatever the exit code. `spec.parse` runs inside the guard, so
|
|
346
|
+
* its own throw lands in the same unsuccessful result.
|
|
347
|
+
*/
|
|
348
|
+
async runReportScan(spec) {
|
|
349
|
+
const scannedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
350
|
+
const outDir = fs.mkdtempSync(path.join(scannerReportParentDir(), `pi-lens-${this.toolName}-`));
|
|
351
|
+
const reportPath = path.join(outDir, `${this.toolName}-report.json`);
|
|
352
|
+
try {
|
|
353
|
+
const result = await spec.spawn({ outDir, reportPath });
|
|
354
|
+
if (result.error) {
|
|
355
|
+
this.log(`Scan error: ${result.error.message}`);
|
|
356
|
+
this.recordReportScanFailure(result.error.message);
|
|
357
|
+
return spec.fail({
|
|
358
|
+
scannedAt,
|
|
359
|
+
summary: result.error.message.slice(0, 200)
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
if (!fs.existsSync(reportPath)) {
|
|
363
|
+
if (result.status !== 0) {
|
|
364
|
+
const reason = formatToolFailure({
|
|
365
|
+
tool: this.toolName,
|
|
366
|
+
status: result.status,
|
|
367
|
+
stderr: result.stderr,
|
|
368
|
+
reportMissing: true
|
|
369
|
+
});
|
|
370
|
+
this.recordReportScanFailure(reason);
|
|
371
|
+
return spec.fail({ scannedAt, summary: reason });
|
|
372
|
+
}
|
|
373
|
+
return spec.fail({
|
|
374
|
+
success: true,
|
|
375
|
+
scannedAt,
|
|
376
|
+
summary: (result.stderr ?? "").trim().split("\n")[0] || "no report produced"
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
return await spec.parse(fs.readFileSync(reportPath, "utf-8"), scannedAt);
|
|
380
|
+
} catch (err) {
|
|
381
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
382
|
+
this.recordReportScanFailure(message);
|
|
383
|
+
return spec.fail({ scannedAt, summary: message.slice(0, 200) });
|
|
384
|
+
} finally {
|
|
385
|
+
try {
|
|
386
|
+
fs.rmSync(outDir, { recursive: true, force: true });
|
|
387
|
+
} catch {
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Count a spawn error, a throw, or a non-zero exit that left no report in
|
|
393
|
+
* the degradation ledger, once per tool with the latest message kept. Before this, gitleaks and trivy surfaced
|
|
394
|
+
* these only as the result's `summary`, while opengrep, the same shape,
|
|
395
|
+
* recorded `opengrep-scan-refused`.
|
|
396
|
+
*/
|
|
397
|
+
recordReportScanFailure(message) {
|
|
398
|
+
incrementDegradationCount({
|
|
399
|
+
kind: "security-scan-report-failed",
|
|
400
|
+
subject: this.toolName,
|
|
401
|
+
reason: message
|
|
402
|
+
});
|
|
403
|
+
}
|
|
322
404
|
};
|
|
323
405
|
|
|
324
406
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
recordDegradationOnce
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2453RRJ2.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/deadline-utils.js
|
|
7
7
|
function combineAbortSignals(...signals) {
|
|
@@ -22,6 +22,21 @@ function combineAbortSignals(...signals) {
|
|
|
22
22
|
}
|
|
23
23
|
return controller.signal;
|
|
24
24
|
}
|
|
25
|
+
function untilAborted(work, signal, aborted) {
|
|
26
|
+
if (!signal)
|
|
27
|
+
return work;
|
|
28
|
+
if (signal.aborted)
|
|
29
|
+
return Promise.race([work, Promise.resolve(aborted)]);
|
|
30
|
+
let onAbort;
|
|
31
|
+
const abortedPromise = new Promise((resolve) => {
|
|
32
|
+
onAbort = () => resolve(aborted);
|
|
33
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
34
|
+
});
|
|
35
|
+
return Promise.race([work, abortedPromise]).finally(() => {
|
|
36
|
+
if (onAbort)
|
|
37
|
+
signal.removeEventListener("abort", onAbort);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
25
40
|
function withDeadline(promise, options) {
|
|
26
41
|
const onTimeout = options.onTimeout ?? "reject";
|
|
27
42
|
const onReject = options.onReject ?? "propagate";
|
|
@@ -114,6 +129,7 @@ async function bounded(promise, options) {
|
|
|
114
129
|
|
|
115
130
|
export {
|
|
116
131
|
combineAbortSignals,
|
|
132
|
+
untilAborted,
|
|
117
133
|
withDeadline,
|
|
118
134
|
withTimeout,
|
|
119
135
|
bounded
|
|
@@ -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-JE6HKLC7.js";
|
|
5
5
|
import {
|
|
6
6
|
logLatency
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-565VRUP4.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/dispatch/runners/utils/availability-policy.js
|
|
10
10
|
function describeProbeEvidence(result, command) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
canonicalDirectory,
|
|
5
5
|
getExcludedDirGlobs,
|
|
6
6
|
listNestedLinkedWorktreeRoots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WMDUT4KH.js";
|
|
8
8
|
import {
|
|
9
9
|
escapeRegExp
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2453RRJ2.js";
|
|
11
11
|
|
|
12
12
|
// dist/clients/scratch-tree-policy.js
|
|
13
13
|
import { relative } 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-WMDUT4KH.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JE6HKLC7.js";
|
|
11
11
|
import {
|
|
12
12
|
normalizeMapKey,
|
|
13
13
|
toProjectRelativePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GMROJJRN.js";
|
|
15
15
|
|
|
16
16
|
// dist/clients/call-graph.js
|
|
17
17
|
import * as fs from "node:fs";
|
|
@@ -52,40 +52,41 @@ import {
|
|
|
52
52
|
tryLazyInstallFormatterTool,
|
|
53
53
|
typstyleFormatter,
|
|
54
54
|
zigFormatter
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-4LL2VRNY.js";
|
|
56
|
+
import "./chunk-MC6VB2E5.js";
|
|
57
|
+
import "./chunk-5F3XF3SX.js";
|
|
58
|
+
import "./chunk-ZZDIOAAJ.js";
|
|
59
|
+
import "./chunk-WC6WRNQT.js";
|
|
60
|
+
import "./chunk-HKIL6DCL.js";
|
|
61
61
|
import "./chunk-6HWVI6MI.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-HUAM7QG3.js";
|
|
63
|
+
import "./chunk-HXFUTMX2.js";
|
|
64
64
|
import "./chunk-2BEMIWEW.js";
|
|
65
65
|
import "./chunk-IJYGIDF4.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-BQG2QFVO.js";
|
|
67
|
+
import "./chunk-IYVYZQRL.js";
|
|
68
|
+
import "./chunk-VOP4PJKA.js";
|
|
69
|
+
import "./chunk-JBP7KESM.js";
|
|
70
|
+
import "./chunk-UYXV5NIS.js";
|
|
71
|
+
import "./chunk-JZRP4DGP.js";
|
|
72
|
+
import "./chunk-SDFKOLSF.js";
|
|
73
|
+
import "./chunk-BBET6HD6.js";
|
|
74
|
+
import "./chunk-G6JKM4O7.js";
|
|
75
|
+
import "./chunk-O2ARHQKF.js";
|
|
76
|
+
import "./chunk-WMDUT4KH.js";
|
|
76
77
|
import "./chunk-AWQWXSW4.js";
|
|
77
78
|
import "./chunk-QYF5S6P6.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-G5GV2Q7K.js";
|
|
80
|
+
import "./chunk-X35S7HSB.js";
|
|
81
|
+
import "./chunk-SQC7K3SP.js";
|
|
82
|
+
import "./chunk-JE6HKLC7.js";
|
|
83
|
+
import "./chunk-2453RRJ2.js";
|
|
84
|
+
import "./chunk-WQV6BI4Q.js";
|
|
84
85
|
import "./chunk-S26LC76R.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-565VRUP4.js";
|
|
87
|
+
import "./chunk-VLQ7UKZH.js";
|
|
87
88
|
import "./chunk-LJDODBBZ.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-GMROJJRN.js";
|
|
89
90
|
import "./chunk-NXL4FFQQ.js";
|
|
90
91
|
export {
|
|
91
92
|
ALL_FORMATTERS,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AgentBehaviorClient,
|
|
4
|
+
agentBehaviorClient
|
|
5
|
+
} from "./chunk-OZWXLJMX.js";
|
|
6
|
+
import "./chunk-GIRBSBGL.js";
|
|
7
|
+
import "./chunk-WMDUT4KH.js";
|
|
8
|
+
import "./chunk-X35S7HSB.js";
|
|
9
|
+
import "./chunk-SQC7K3SP.js";
|
|
10
|
+
import "./chunk-JE6HKLC7.js";
|
|
11
|
+
import "./chunk-2453RRJ2.js";
|
|
12
|
+
import "./chunk-WQV6BI4Q.js";
|
|
13
|
+
import "./chunk-S26LC76R.js";
|
|
14
|
+
import "./chunk-565VRUP4.js";
|
|
15
|
+
import "./chunk-VLQ7UKZH.js";
|
|
16
|
+
import "./chunk-LJDODBBZ.js";
|
|
17
|
+
import "./chunk-GMROJJRN.js";
|
|
18
|
+
import "./chunk-NXL4FFQQ.js";
|
|
19
|
+
export {
|
|
20
|
+
AgentBehaviorClient,
|
|
21
|
+
agentBehaviorClient
|
|
22
|
+
};
|