@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,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tifan/pi-preferred-thinking",
|
|
3
|
-
"version": "1.0.2",
|
|
4
|
-
"description": "Set and apply per-model thinking levels from Pi's native settings.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"pi",
|
|
7
|
-
"pi-extension",
|
|
8
|
-
"pi-package",
|
|
9
|
-
"settings",
|
|
10
|
-
"thinking"
|
|
11
|
-
],
|
|
12
|
-
"homepage": "https://github.com/tifandotme/pi-extensions/tree/master/packages/pi-preferred-thinking#readme",
|
|
13
|
-
"bugs": "https://github.com/tifandotme/pi-extensions/issues",
|
|
14
|
-
"license": "MIT",
|
|
15
|
-
"author": "Tifan Dwi Avianto <hi@tifan.me>",
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/tifandotme/pi-extensions.git",
|
|
19
|
-
"directory": "packages/pi-preferred-thinking"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"src/**/*.ts",
|
|
23
|
-
"README.md",
|
|
24
|
-
"LICENSE"
|
|
25
|
-
],
|
|
26
|
-
"type": "module",
|
|
27
|
-
"publishConfig": {
|
|
28
|
-
"access": "public",
|
|
29
|
-
"provenance": true
|
|
30
|
-
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"@earendil-works/pi-coding-agent": "*"
|
|
33
|
-
},
|
|
34
|
-
"engines": {
|
|
35
|
-
"node": ">=20"
|
|
36
|
-
},
|
|
37
|
-
"pi": {
|
|
38
|
-
"extensions": [
|
|
39
|
-
"./src/index.ts"
|
|
40
|
-
],
|
|
41
|
-
"image": "https://raw.githubusercontent.com/tifandotme/pi-extensions/refs/heads/master/packages/pi-preferred-thinking/assets/picker.webp"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { mkdirSync, readFileSync, writeFileSync } from "node:fs"
|
|
2
|
-
import path from "node:path"
|
|
3
|
-
import {
|
|
4
|
-
getAgentDir,
|
|
5
|
-
type ExtensionAPI,
|
|
6
|
-
type ExtensionCommandContext,
|
|
7
|
-
type ExtensionContext,
|
|
8
|
-
} from "@earendil-works/pi-coding-agent"
|
|
9
|
-
|
|
10
|
-
type ThinkingLevel = Parameters<ExtensionAPI["setThinkingLevel"]>[0]
|
|
11
|
-
type PiSettings = Record<string, unknown> & {
|
|
12
|
-
enabledModels?: unknown
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const SETTINGS_PATH = path.join(getAgentDir(), "settings.json")
|
|
16
|
-
const UNSET_OPTION = "unset"
|
|
17
|
-
const THINKING_LEVEL_OPTIONS: readonly ThinkingLevel[] = [
|
|
18
|
-
"off",
|
|
19
|
-
"minimal",
|
|
20
|
-
"low",
|
|
21
|
-
"medium",
|
|
22
|
-
"high",
|
|
23
|
-
"xhigh",
|
|
24
|
-
"max",
|
|
25
|
-
]
|
|
26
|
-
const HINT_WIDGET_KEY = "pi-preferred-thinking"
|
|
27
|
-
const HINT_DURATION_MS = 3_000
|
|
28
|
-
|
|
29
|
-
let hintTimer: ReturnType<typeof setTimeout> | undefined
|
|
30
|
-
const nudgedModels = new Set<string>()
|
|
31
|
-
|
|
32
|
-
function getModelKey(provider: string, modelId: string): string {
|
|
33
|
-
return `${provider}/${modelId}`
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function readSettings(): PiSettings {
|
|
37
|
-
const content = readFileSync(SETTINGS_PATH, "utf8")
|
|
38
|
-
const settings = JSON.parse(content) as unknown
|
|
39
|
-
return settings && typeof settings === "object" && !Array.isArray(settings)
|
|
40
|
-
? (settings as PiSettings)
|
|
41
|
-
: {}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function getEnabledModels(settings: PiSettings): string[] {
|
|
45
|
-
return Array.isArray(settings.enabledModels)
|
|
46
|
-
? settings.enabledModels.filter(
|
|
47
|
-
(entry): entry is string => typeof entry === "string",
|
|
48
|
-
)
|
|
49
|
-
: []
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function isExactModelEntry(entry: string, modelKey: string): boolean {
|
|
53
|
-
return (
|
|
54
|
-
entry === modelKey ||
|
|
55
|
-
THINKING_LEVEL_OPTIONS.some((level) => entry === `${modelKey}:${level}`)
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function saveThinkingLevel(
|
|
60
|
-
modelKey: string,
|
|
61
|
-
level: ThinkingLevel | undefined,
|
|
62
|
-
): void {
|
|
63
|
-
const settings = readSettings()
|
|
64
|
-
if (!Array.isArray(settings.enabledModels)) {
|
|
65
|
-
throw new Error(
|
|
66
|
-
"Pi enabledModels is not configured. Add the model with /scoped-models first.",
|
|
67
|
-
)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const entries = getEnabledModels(settings)
|
|
71
|
-
const exactIndex = entries.findIndex((entry) =>
|
|
72
|
-
isExactModelEntry(entry, modelKey),
|
|
73
|
-
)
|
|
74
|
-
const nextEntries = entries.filter(
|
|
75
|
-
(entry) => !isExactModelEntry(entry, modelKey),
|
|
76
|
-
)
|
|
77
|
-
const replacement = level
|
|
78
|
-
? `${modelKey}:${level}`
|
|
79
|
-
: exactIndex >= 0
|
|
80
|
-
? modelKey
|
|
81
|
-
: undefined
|
|
82
|
-
|
|
83
|
-
if (replacement) {
|
|
84
|
-
const insertAt =
|
|
85
|
-
exactIndex < 0 ? 0 : Math.min(exactIndex, nextEntries.length)
|
|
86
|
-
nextEntries.splice(insertAt, 0, replacement)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
settings.enabledModels = nextEntries
|
|
90
|
-
mkdirSync(path.dirname(SETTINGS_PATH), { recursive: true })
|
|
91
|
-
writeFileSync(SETTINGS_PATH, `${JSON.stringify(settings, null, 2)}\n`, "utf8")
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function getPinnedThinkingLevel(
|
|
95
|
-
ctx: ExtensionContext,
|
|
96
|
-
modelKey: string,
|
|
97
|
-
): ThinkingLevel | undefined {
|
|
98
|
-
const scopedModel = ctx.scopedModels.find(
|
|
99
|
-
(entry) => getModelKey(entry.model.provider, entry.model.id) === modelKey,
|
|
100
|
-
)
|
|
101
|
-
if (scopedModel?.thinkingLevel !== undefined) {
|
|
102
|
-
return scopedModel.thinkingLevel
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
try {
|
|
106
|
-
const entry = getEnabledModels(readSettings()).find((candidate) =>
|
|
107
|
-
candidate.startsWith(`${modelKey}:`),
|
|
108
|
-
)
|
|
109
|
-
const level = entry?.slice(modelKey.length + 1) as ThinkingLevel | undefined
|
|
110
|
-
return level && THINKING_LEVEL_OPTIONS.includes(level) ? level : undefined
|
|
111
|
-
} catch {
|
|
112
|
-
return undefined
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function clearHint(ctx: ExtensionContext): void {
|
|
117
|
-
if (hintTimer) {
|
|
118
|
-
clearTimeout(hintTimer)
|
|
119
|
-
hintTimer = undefined
|
|
120
|
-
}
|
|
121
|
-
ctx.ui.setWidget(HINT_WIDGET_KEY, undefined)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function showHint(ctx: ExtensionContext, modelKey: string): void {
|
|
125
|
-
if (!ctx.hasUI) return
|
|
126
|
-
clearHint(ctx)
|
|
127
|
-
ctx.ui.setWidget(
|
|
128
|
-
HINT_WIDGET_KEY,
|
|
129
|
-
[
|
|
130
|
-
`No saved thinking level for ${modelKey}.`,
|
|
131
|
-
"Run /preferred-thinking to set one.",
|
|
132
|
-
],
|
|
133
|
-
{ placement: "aboveEditor" },
|
|
134
|
-
)
|
|
135
|
-
hintTimer = setTimeout(() => {
|
|
136
|
-
ctx.ui.setWidget(HINT_WIDGET_KEY, undefined)
|
|
137
|
-
hintTimer = undefined
|
|
138
|
-
}, HINT_DURATION_MS)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function hasExplicitSubagentThinking(): boolean {
|
|
142
|
-
return (
|
|
143
|
-
Boolean(process.env["PI_SUBAGENT_ID"]) &&
|
|
144
|
-
process.argv.some(
|
|
145
|
-
(arg) => arg === "--thinking" || arg.startsWith("--thinking="),
|
|
146
|
-
)
|
|
147
|
-
)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function applyPreferredThinking(
|
|
151
|
-
pi: ExtensionAPI,
|
|
152
|
-
ctx: ExtensionContext,
|
|
153
|
-
model: NonNullable<ExtensionContext["model"]>,
|
|
154
|
-
): void {
|
|
155
|
-
const modelKey = getModelKey(model.provider, model.id)
|
|
156
|
-
const thinkingLevel = getPinnedThinkingLevel(ctx, modelKey)
|
|
157
|
-
|
|
158
|
-
if (thinkingLevel !== undefined) {
|
|
159
|
-
clearHint(ctx)
|
|
160
|
-
if (pi.getThinkingLevel() !== thinkingLevel) {
|
|
161
|
-
pi.setThinkingLevel(thinkingLevel)
|
|
162
|
-
}
|
|
163
|
-
return
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
if (model.reasoning && !nudgedModels.has(modelKey)) {
|
|
167
|
-
nudgedModels.add(modelKey)
|
|
168
|
-
showHint(ctx, modelKey)
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
async function configurePreferredThinking(
|
|
173
|
-
pi: ExtensionAPI,
|
|
174
|
-
ctx: ExtensionCommandContext,
|
|
175
|
-
): Promise<void> {
|
|
176
|
-
const model = ctx.model
|
|
177
|
-
if (!model) {
|
|
178
|
-
ctx.ui.notify("No current model selected.", "error")
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const modelKey = getModelKey(model.provider, model.id)
|
|
183
|
-
const current = getPinnedThinkingLevel(ctx, modelKey) ?? UNSET_OPTION
|
|
184
|
-
const selected = await ctx.ui.select(
|
|
185
|
-
`Preferred thinking for ${modelKey} (current: ${current})`,
|
|
186
|
-
[...THINKING_LEVEL_OPTIONS, UNSET_OPTION],
|
|
187
|
-
)
|
|
188
|
-
if (selected === undefined) return
|
|
189
|
-
|
|
190
|
-
const level = THINKING_LEVEL_OPTIONS.includes(selected as ThinkingLevel)
|
|
191
|
-
? (selected as ThinkingLevel)
|
|
192
|
-
: undefined
|
|
193
|
-
|
|
194
|
-
try {
|
|
195
|
-
saveThinkingLevel(modelKey, level)
|
|
196
|
-
} catch (error) {
|
|
197
|
-
const reason = error instanceof SyntaxError ? "invalid JSON" : String(error)
|
|
198
|
-
ctx.ui.notify(`Could not update Pi settings: ${reason}`, "error")
|
|
199
|
-
return
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (level) {
|
|
203
|
-
pi.setThinkingLevel(level)
|
|
204
|
-
ctx.ui.notify(`Thinking for ${modelKey} set to ${level}.`, "info")
|
|
205
|
-
} else {
|
|
206
|
-
ctx.ui.notify(`Thinking pin for ${modelKey} removed.`, "info")
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
await ctx.reload()
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export default function (pi: ExtensionAPI): void {
|
|
213
|
-
pi.registerCommand("preferred-thinking", {
|
|
214
|
-
description: "set the native thinking level for the current model",
|
|
215
|
-
handler: async (_args, ctx) => {
|
|
216
|
-
await configurePreferredThinking(pi, ctx)
|
|
217
|
-
},
|
|
218
|
-
})
|
|
219
|
-
|
|
220
|
-
pi.on("session_start", async (_event, ctx) => {
|
|
221
|
-
nudgedModels.clear()
|
|
222
|
-
if (ctx.model && !hasExplicitSubagentThinking()) {
|
|
223
|
-
applyPreferredThinking(pi, ctx, ctx.model)
|
|
224
|
-
}
|
|
225
|
-
})
|
|
226
|
-
|
|
227
|
-
pi.on("model_select", async (event, ctx) => {
|
|
228
|
-
if (!hasExplicitSubagentThinking()) {
|
|
229
|
-
applyPreferredThinking(pi, ctx, event.model)
|
|
230
|
-
}
|
|
231
|
-
})
|
|
232
|
-
|
|
233
|
-
pi.on("session_shutdown", async (_event, ctx) => {
|
|
234
|
-
clearHint(ctx)
|
|
235
|
-
})
|
|
236
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
_getWarmWordIndexCacheStateForTests,
|
|
4
|
-
_resetWarmWordIndexCacheForTests,
|
|
5
|
-
acquireWarmWordIndex,
|
|
6
|
-
analyzeFile,
|
|
7
|
-
summarizeWarningTiers
|
|
8
|
-
} from "./chunk-WGRJOXED.js";
|
|
9
|
-
import "./chunk-LBLBAFG3.js";
|
|
10
|
-
import "./chunk-MNJIXFX4.js";
|
|
11
|
-
import "./chunk-Y7F7IEE3.js";
|
|
12
|
-
import "./chunk-JJ2RRESP.js";
|
|
13
|
-
import "./chunk-EAOK7MIZ.js";
|
|
14
|
-
import "./chunk-4LM3VAZH.js";
|
|
15
|
-
import "./chunk-E7HJ56Y7.js";
|
|
16
|
-
import "./chunk-V63BC55Q.js";
|
|
17
|
-
import "./chunk-CPSR3AVL.js";
|
|
18
|
-
import "./chunk-ZE3KXHS7.js";
|
|
19
|
-
import "./chunk-RQS4QQSD.js";
|
|
20
|
-
import "./chunk-CB4WHS4H.js";
|
|
21
|
-
import "./chunk-N5WSK2K7.js";
|
|
22
|
-
import "./chunk-7E2563GA.js";
|
|
23
|
-
import "./chunk-MB6PXBUA.js";
|
|
24
|
-
import "./chunk-DQZFQSR5.js";
|
|
25
|
-
import "./chunk-3YY7IXIL.js";
|
|
26
|
-
import "./chunk-WDBICWH3.js";
|
|
27
|
-
import "./chunk-H7OR7DFZ.js";
|
|
28
|
-
import "./chunk-3MED75HT.js";
|
|
29
|
-
import "./chunk-FZKFVUEC.js";
|
|
30
|
-
import "./chunk-XT2HTCJ5.js";
|
|
31
|
-
import "./chunk-XIMYZ3JA.js";
|
|
32
|
-
import "./chunk-R5MOQM2H.js";
|
|
33
|
-
import "./chunk-24BILSZW.js";
|
|
34
|
-
import "./chunk-PR6PO3ES.js";
|
|
35
|
-
import "./chunk-RC2Z6K47.js";
|
|
36
|
-
import "./chunk-F5Z6URKM.js";
|
|
37
|
-
import "./chunk-5W3R6LFT.js";
|
|
38
|
-
import "./chunk-MPKRJBPK.js";
|
|
39
|
-
import "./chunk-DH5JPM3K.js";
|
|
40
|
-
import "./chunk-PKES3ISE.js";
|
|
41
|
-
import "./chunk-ZKXQKGWZ.js";
|
|
42
|
-
import "./chunk-L5JYIU47.js";
|
|
43
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
44
|
-
import "./chunk-U6VN4NVL.js";
|
|
45
|
-
import "./chunk-TIQJPRDD.js";
|
|
46
|
-
import "./chunk-YISME6ON.js";
|
|
47
|
-
import "./chunk-6HWVI6MI.js";
|
|
48
|
-
import "./chunk-O4BJFESU.js";
|
|
49
|
-
import "./chunk-CKEQFGLT.js";
|
|
50
|
-
import "./chunk-HO6LWE2E.js";
|
|
51
|
-
import "./chunk-SNDXCFRS.js";
|
|
52
|
-
import "./chunk-QOE342SU.js";
|
|
53
|
-
import "./chunk-AWDSEDER.js";
|
|
54
|
-
import "./chunk-LLS45EWB.js";
|
|
55
|
-
import "./chunk-2BEMIWEW.js";
|
|
56
|
-
import "./chunk-IJYGIDF4.js";
|
|
57
|
-
import "./chunk-KDX35VXP.js";
|
|
58
|
-
import "./chunk-DPGEAHZT.js";
|
|
59
|
-
import "./chunk-NA7SEXHE.js";
|
|
60
|
-
import "./chunk-3F6BMY53.js";
|
|
61
|
-
import "./chunk-KW5JQPO5.js";
|
|
62
|
-
import "./chunk-PUZ3E2J4.js";
|
|
63
|
-
import "./chunk-ABPKUVA4.js";
|
|
64
|
-
import "./chunk-EKWX4WD3.js";
|
|
65
|
-
import "./chunk-ZGSJDWQU.js";
|
|
66
|
-
import "./chunk-YVHBNSME.js";
|
|
67
|
-
import "./chunk-AWQWXSW4.js";
|
|
68
|
-
import "./chunk-QYF5S6P6.js";
|
|
69
|
-
import "./chunk-RZOXUSPC.js";
|
|
70
|
-
import "./chunk-KPPJTH44.js";
|
|
71
|
-
import "./chunk-J6JP25XU.js";
|
|
72
|
-
import "./chunk-U5HPROLA.js";
|
|
73
|
-
import "./chunk-WME2OQST.js";
|
|
74
|
-
import "./chunk-KXF5R4UN.js";
|
|
75
|
-
import "./chunk-S26LC76R.js";
|
|
76
|
-
import "./chunk-Z2XAOKHK.js";
|
|
77
|
-
import "./chunk-VSFLRN5Y.js";
|
|
78
|
-
import "./chunk-LJDODBBZ.js";
|
|
79
|
-
import "./chunk-OSTKYB55.js";
|
|
80
|
-
import "./chunk-PQJFG24Z.js";
|
|
81
|
-
import "./chunk-NXL4FFQQ.js";
|
|
82
|
-
export {
|
|
83
|
-
_getWarmWordIndexCacheStateForTests,
|
|
84
|
-
_resetWarmWordIndexCacheForTests,
|
|
85
|
-
acquireWarmWordIndex,
|
|
86
|
-
analyzeFile,
|
|
87
|
-
summarizeWarningTiers
|
|
88
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
calcCyclomaticComplexity,
|
|
4
|
-
functionFactProvider
|
|
5
|
-
} from "./chunk-3YY7IXIL.js";
|
|
6
|
-
import "./chunk-WDBICWH3.js";
|
|
7
|
-
import "./chunk-5W3R6LFT.js";
|
|
8
|
-
import "./chunk-L5JYIU47.js";
|
|
9
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
10
|
-
import "./chunk-U6VN4NVL.js";
|
|
11
|
-
import "./chunk-TIQJPRDD.js";
|
|
12
|
-
import "./chunk-YISME6ON.js";
|
|
13
|
-
import "./chunk-HO6LWE2E.js";
|
|
14
|
-
import "./chunk-KW5JQPO5.js";
|
|
15
|
-
import "./chunk-YVHBNSME.js";
|
|
16
|
-
import "./chunk-RZOXUSPC.js";
|
|
17
|
-
import "./chunk-KPPJTH44.js";
|
|
18
|
-
import "./chunk-J6JP25XU.js";
|
|
19
|
-
import "./chunk-U5HPROLA.js";
|
|
20
|
-
import "./chunk-WME2OQST.js";
|
|
21
|
-
import "./chunk-KXF5R4UN.js";
|
|
22
|
-
import "./chunk-S26LC76R.js";
|
|
23
|
-
import "./chunk-Z2XAOKHK.js";
|
|
24
|
-
import "./chunk-VSFLRN5Y.js";
|
|
25
|
-
import "./chunk-LJDODBBZ.js";
|
|
26
|
-
import "./chunk-PQJFG24Z.js";
|
|
27
|
-
import "./chunk-NXL4FFQQ.js";
|
|
28
|
-
export {
|
|
29
|
-
calcCyclomaticComplexity,
|
|
30
|
-
functionFactProvider
|
|
31
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
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-N5WSK2K7.js";
|
|
7
|
-
import "./chunk-7E2563GA.js";
|
|
8
|
-
import "./chunk-MB6PXBUA.js";
|
|
9
|
-
import {
|
|
10
|
-
mapWithConcurrency
|
|
11
|
-
} from "./chunk-XIMYZ3JA.js";
|
|
12
|
-
import "./chunk-R5MOQM2H.js";
|
|
13
|
-
import "./chunk-24BILSZW.js";
|
|
14
|
-
import "./chunk-PR6PO3ES.js";
|
|
15
|
-
import "./chunk-RC2Z6K47.js";
|
|
16
|
-
import "./chunk-PKES3ISE.js";
|
|
17
|
-
import "./chunk-ZKXQKGWZ.js";
|
|
18
|
-
import "./chunk-U6VN4NVL.js";
|
|
19
|
-
import "./chunk-TIQJPRDD.js";
|
|
20
|
-
import "./chunk-YISME6ON.js";
|
|
21
|
-
import "./chunk-O4BJFESU.js";
|
|
22
|
-
import "./chunk-CKEQFGLT.js";
|
|
23
|
-
import "./chunk-HO6LWE2E.js";
|
|
24
|
-
import "./chunk-SNDXCFRS.js";
|
|
25
|
-
import "./chunk-QOE342SU.js";
|
|
26
|
-
import "./chunk-2BEMIWEW.js";
|
|
27
|
-
import "./chunk-IJYGIDF4.js";
|
|
28
|
-
import "./chunk-KDX35VXP.js";
|
|
29
|
-
import "./chunk-DPGEAHZT.js";
|
|
30
|
-
import "./chunk-NA7SEXHE.js";
|
|
31
|
-
import "./chunk-3F6BMY53.js";
|
|
32
|
-
import "./chunk-KW5JQPO5.js";
|
|
33
|
-
import "./chunk-PUZ3E2J4.js";
|
|
34
|
-
import "./chunk-ABPKUVA4.js";
|
|
35
|
-
import "./chunk-EKWX4WD3.js";
|
|
36
|
-
import "./chunk-ZGSJDWQU.js";
|
|
37
|
-
import "./chunk-YVHBNSME.js";
|
|
38
|
-
import "./chunk-AWQWXSW4.js";
|
|
39
|
-
import "./chunk-QYF5S6P6.js";
|
|
40
|
-
import "./chunk-RZOXUSPC.js";
|
|
41
|
-
import "./chunk-KPPJTH44.js";
|
|
42
|
-
import "./chunk-J6JP25XU.js";
|
|
43
|
-
import "./chunk-U5HPROLA.js";
|
|
44
|
-
import "./chunk-WME2OQST.js";
|
|
45
|
-
import "./chunk-KXF5R4UN.js";
|
|
46
|
-
import "./chunk-S26LC76R.js";
|
|
47
|
-
import "./chunk-Z2XAOKHK.js";
|
|
48
|
-
import "./chunk-VSFLRN5Y.js";
|
|
49
|
-
import "./chunk-LJDODBBZ.js";
|
|
50
|
-
import "./chunk-PQJFG24Z.js";
|
|
51
|
-
import "./chunk-NXL4FFQQ.js";
|
|
52
|
-
export {
|
|
53
|
-
DependencyChecker,
|
|
54
|
-
buildMadgeArgs,
|
|
55
|
-
mapWithConcurrency,
|
|
56
|
-
resetMadgeManagedPathMemo
|
|
57
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GovulncheckClient,
|
|
4
|
-
parseGovulncheckJson
|
|
5
|
-
} from "./chunk-YHC2O2WO.js";
|
|
6
|
-
import "./chunk-JJ2RRESP.js";
|
|
7
|
-
import "./chunk-ZE3KXHS7.js";
|
|
8
|
-
import "./chunk-3F6BMY53.js";
|
|
9
|
-
import "./chunk-KW5JQPO5.js";
|
|
10
|
-
import "./chunk-YVHBNSME.js";
|
|
11
|
-
import "./chunk-AWQWXSW4.js";
|
|
12
|
-
import "./chunk-KPPJTH44.js";
|
|
13
|
-
import "./chunk-J6JP25XU.js";
|
|
14
|
-
import "./chunk-U5HPROLA.js";
|
|
15
|
-
import "./chunk-WME2OQST.js";
|
|
16
|
-
import "./chunk-KXF5R4UN.js";
|
|
17
|
-
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-Z2XAOKHK.js";
|
|
19
|
-
import "./chunk-VSFLRN5Y.js";
|
|
20
|
-
import "./chunk-LJDODBBZ.js";
|
|
21
|
-
import "./chunk-PQJFG24Z.js";
|
|
22
|
-
import "./chunk-NXL4FFQQ.js";
|
|
23
|
-
export {
|
|
24
|
-
GovulncheckClient,
|
|
25
|
-
parseGovulncheckJson
|
|
26
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
AgentBehaviorClient,
|
|
4
|
-
agentBehaviorClient
|
|
5
|
-
} from "./chunk-ZJTT47IG.js";
|
|
6
|
-
import "./chunk-XT2HTCJ5.js";
|
|
7
|
-
import "./chunk-YVHBNSME.js";
|
|
8
|
-
import "./chunk-KPPJTH44.js";
|
|
9
|
-
import "./chunk-J6JP25XU.js";
|
|
10
|
-
import "./chunk-U5HPROLA.js";
|
|
11
|
-
import "./chunk-WME2OQST.js";
|
|
12
|
-
import "./chunk-KXF5R4UN.js";
|
|
13
|
-
import "./chunk-S26LC76R.js";
|
|
14
|
-
import "./chunk-Z2XAOKHK.js";
|
|
15
|
-
import "./chunk-VSFLRN5Y.js";
|
|
16
|
-
import "./chunk-LJDODBBZ.js";
|
|
17
|
-
import "./chunk-PQJFG24Z.js";
|
|
18
|
-
import "./chunk-NXL4FFQQ.js";
|
|
19
|
-
export {
|
|
20
|
-
AgentBehaviorClient,
|
|
21
|
-
agentBehaviorClient
|
|
22
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getSourceFiles,
|
|
4
|
-
getSourceFilesAsync
|
|
5
|
-
} from "./chunk-ABPKUVA4.js";
|
|
6
|
-
import "./chunk-EKWX4WD3.js";
|
|
7
|
-
import "./chunk-ZGSJDWQU.js";
|
|
8
|
-
import "./chunk-YVHBNSME.js";
|
|
9
|
-
import "./chunk-QYF5S6P6.js";
|
|
10
|
-
import "./chunk-RZOXUSPC.js";
|
|
11
|
-
import "./chunk-KPPJTH44.js";
|
|
12
|
-
import "./chunk-J6JP25XU.js";
|
|
13
|
-
import "./chunk-U5HPROLA.js";
|
|
14
|
-
import "./chunk-WME2OQST.js";
|
|
15
|
-
import "./chunk-KXF5R4UN.js";
|
|
16
|
-
import "./chunk-S26LC76R.js";
|
|
17
|
-
import "./chunk-Z2XAOKHK.js";
|
|
18
|
-
import "./chunk-VSFLRN5Y.js";
|
|
19
|
-
import "./chunk-LJDODBBZ.js";
|
|
20
|
-
import "./chunk-PQJFG24Z.js";
|
|
21
|
-
import "./chunk-NXL4FFQQ.js";
|
|
22
|
-
export {
|
|
23
|
-
getSourceFiles,
|
|
24
|
-
getSourceFilesAsync
|
|
25
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
truncatedByOutputCap
|
|
4
|
-
} from "./chunk-U5HPROLA.js";
|
|
5
|
-
import {
|
|
6
|
-
LEDGER_FIELD_MAX
|
|
7
|
-
} from "./chunk-WME2OQST.js";
|
|
8
|
-
|
|
9
|
-
// dist/clients/dispatch/runners/utils/spawn-outcome.js
|
|
10
|
-
function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
|
|
11
|
-
for (const line of String(text ?? "").split(/\r?\n/)) {
|
|
12
|
-
const trimmed = line.trim();
|
|
13
|
-
if (!trimmed)
|
|
14
|
-
continue;
|
|
15
|
-
return trimmed.length > max ? `${trimmed.slice(0, max)}\u2026` : trimmed;
|
|
16
|
-
}
|
|
17
|
-
return "";
|
|
18
|
-
}
|
|
19
|
-
function processCutShort(result) {
|
|
20
|
-
return Boolean(result.error || result.signal) || (result.status ?? null) === null;
|
|
21
|
-
}
|
|
22
|
-
function classifyRunOutcome(input) {
|
|
23
|
-
const { result, exitCodes, reportMissing } = input;
|
|
24
|
-
const status = result.status ?? null;
|
|
25
|
-
const signal = result.signal ?? null;
|
|
26
|
-
const output = input.output ?? result.stdout;
|
|
27
|
-
const base = {
|
|
28
|
-
status,
|
|
29
|
-
signal,
|
|
30
|
-
firstOutputLine: firstOutputLine(result.stderr) || firstOutputLine(result.stdout) || firstOutputLine(result.error?.message),
|
|
31
|
-
// Evidence carried alongside the verdict, never part of deciding it — the
|
|
32
|
-
// branches below are byte-for-byte the pre-#2100 rules.
|
|
33
|
-
outputCapped: truncatedByOutputCap(result)
|
|
34
|
-
};
|
|
35
|
-
if (processCutShort(result) || status === null) {
|
|
36
|
-
return { kind: "did-not-run", ...base };
|
|
37
|
-
}
|
|
38
|
-
if (reportMissing) {
|
|
39
|
-
return status === 0 ? { kind: "ran", ...base } : { kind: "report-missing", ...base };
|
|
40
|
-
}
|
|
41
|
-
if (status !== 0 && exitCodes && !exitCodes.ran.includes(status)) {
|
|
42
|
-
return { kind: "rejected-invocation", ...base };
|
|
43
|
-
}
|
|
44
|
-
if (status !== 0 && !output?.trim()) {
|
|
45
|
-
return { kind: "did-not-run", ...base };
|
|
46
|
-
}
|
|
47
|
-
return { kind: "ran", ...base };
|
|
48
|
-
}
|
|
49
|
-
function spawnFailedWithNoOutput(result, output = result.stdout) {
|
|
50
|
-
return classifyRunOutcome({ result, output }).kind !== "ran" && !output?.trim();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export {
|
|
54
|
-
firstOutputLine,
|
|
55
|
-
processCutShort,
|
|
56
|
-
classifyRunOutcome,
|
|
57
|
-
spawnFailedWithNoOutput
|
|
58
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
computeImpactCascade,
|
|
4
|
-
computeTransitiveImpact
|
|
5
|
-
} from "./chunk-EAOK7MIZ.js";
|
|
6
|
-
import "./chunk-DH5JPM3K.js";
|
|
7
|
-
import "./chunk-ZKXQKGWZ.js";
|
|
8
|
-
import "./chunk-YVHBNSME.js";
|
|
9
|
-
import "./chunk-KPPJTH44.js";
|
|
10
|
-
import "./chunk-J6JP25XU.js";
|
|
11
|
-
import "./chunk-U5HPROLA.js";
|
|
12
|
-
import "./chunk-WME2OQST.js";
|
|
13
|
-
import "./chunk-KXF5R4UN.js";
|
|
14
|
-
import "./chunk-S26LC76R.js";
|
|
15
|
-
import "./chunk-Z2XAOKHK.js";
|
|
16
|
-
import "./chunk-VSFLRN5Y.js";
|
|
17
|
-
import "./chunk-LJDODBBZ.js";
|
|
18
|
-
import "./chunk-PQJFG24Z.js";
|
|
19
|
-
import "./chunk-NXL4FFQQ.js";
|
|
20
|
-
export {
|
|
21
|
-
computeImpactCascade,
|
|
22
|
-
computeTransitiveImpact
|
|
23
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GoClient,
|
|
4
|
-
goClient,
|
|
5
|
-
resetGoAvailability
|
|
6
|
-
} from "./chunk-4LM3VAZH.js";
|
|
7
|
-
import "./chunk-CB4WHS4H.js";
|
|
8
|
-
import "./chunk-3F6BMY53.js";
|
|
9
|
-
import "./chunk-KW5JQPO5.js";
|
|
10
|
-
import "./chunk-YVHBNSME.js";
|
|
11
|
-
import "./chunk-AWQWXSW4.js";
|
|
12
|
-
import "./chunk-KPPJTH44.js";
|
|
13
|
-
import "./chunk-J6JP25XU.js";
|
|
14
|
-
import "./chunk-U5HPROLA.js";
|
|
15
|
-
import "./chunk-WME2OQST.js";
|
|
16
|
-
import "./chunk-KXF5R4UN.js";
|
|
17
|
-
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-Z2XAOKHK.js";
|
|
19
|
-
import "./chunk-VSFLRN5Y.js";
|
|
20
|
-
import "./chunk-LJDODBBZ.js";
|
|
21
|
-
import "./chunk-PQJFG24Z.js";
|
|
22
|
-
import "./chunk-NXL4FFQQ.js";
|
|
23
|
-
export {
|
|
24
|
-
GoClient,
|
|
25
|
-
goClient,
|
|
26
|
-
resetGoAvailability
|
|
27
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
RustClient,
|
|
4
|
-
resetRustAvailability,
|
|
5
|
-
rustClient
|
|
6
|
-
} from "./chunk-RQS4QQSD.js";
|
|
7
|
-
import "./chunk-CB4WHS4H.js";
|
|
8
|
-
import "./chunk-3F6BMY53.js";
|
|
9
|
-
import "./chunk-KW5JQPO5.js";
|
|
10
|
-
import "./chunk-YVHBNSME.js";
|
|
11
|
-
import "./chunk-AWQWXSW4.js";
|
|
12
|
-
import "./chunk-KPPJTH44.js";
|
|
13
|
-
import "./chunk-J6JP25XU.js";
|
|
14
|
-
import "./chunk-U5HPROLA.js";
|
|
15
|
-
import "./chunk-WME2OQST.js";
|
|
16
|
-
import "./chunk-KXF5R4UN.js";
|
|
17
|
-
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-Z2XAOKHK.js";
|
|
19
|
-
import "./chunk-VSFLRN5Y.js";
|
|
20
|
-
import "./chunk-LJDODBBZ.js";
|
|
21
|
-
import "./chunk-PQJFG24Z.js";
|
|
22
|
-
import "./chunk-NXL4FFQQ.js";
|
|
23
|
-
export {
|
|
24
|
-
RustClient,
|
|
25
|
-
resetRustAvailability,
|
|
26
|
-
rustClient
|
|
27
|
-
};
|