@herbertgao/pi-extensions 2026.10.19 → 2026.11.1
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 +759 -0
- package/README.md +21 -6
- package/THIRD_PARTY_NOTICES.md +53 -2
- package/extensions/clef.mjs +1 -1
- package/node_modules/@herbertgao/pi-agency/CHANGELOG.md +19 -0
- package/node_modules/@herbertgao/pi-agency/package.json +4 -2
- package/node_modules/@herbertgao/pi-agency/src/index.ts +1 -1
- package/node_modules/@herbertgao/pi-bark/CHANGELOG.md +52 -0
- package/node_modules/@herbertgao/pi-bark/package.json +2 -1
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +207 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +7 -5
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +10 -7
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +20 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +61 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +11 -16
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +60 -11
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/compact-thinking.ts +29 -11
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer-layout.ts +54 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +23 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/session-tokens.ts +52 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +5 -4
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +13 -0
- package/node_modules/@herbertgao/pi-impeccable/package.json +2 -1
- 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/@herbertgao/sol-pi/CHANGELOG.md +84 -0
- package/node_modules/@herbertgao/sol-pi/README.md +3 -3
- package/node_modules/@herbertgao/sol-pi/THIRD_PARTY_NOTICES.md +4 -4
- package/node_modules/@herbertgao/sol-pi/agents-install.md +3 -3
- package/node_modules/@herbertgao/sol-pi/docs/compatibility.md +1 -1
- package/node_modules/@herbertgao/sol-pi/package.json +2 -1
- 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 +375 -12
- package/node_modules/pi-provider-qoder/package.json +5 -2
- package/package.json +17 -13
- 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
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.9.1] - 2026-10-13
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **`typebox` moves to a `"*"` peer dependency, silencing pi's host-package startup warning.** Since pi 0.99.0, pi warns at load when an extension lists a host-provided module in `dependencies`, because an installed copy can bypass the extension loader and create a duplicate runtime module. pi already injects its own `typebox` at runtime, so nothing changes under pi; it stays pinned in `devDependencies` for tests and type checks, and a non-pi host must now provide it. ([#66](https://github.com/tintinweb/pi-tasks/issues/66) — thanks [@kevinkirkup](https://github.com/kevinkirkup) — [#68](https://github.com/tintinweb/pi-tasks/issues/68) — thanks [@s85io](https://github.com/s85io) — and [#67](https://github.com/tintinweb/pi-tasks/pull/67) — thanks [@rebelthor](https://github.com/rebelthor))
|
|
14
|
+
- **The task widget's spinner no longer keeps `pi -p` alive after a run.** The animation runs on a 150ms interval that was cleared only when the task list emptied or no task was active, so a session ending with a task still `in_progress` left it running and kept Node's event loop busy — non-interactive `pi -p` never exited. It is now disposed on `session_shutdown` and restarts on the next session if a task is still active. ([#65](https://github.com/tintinweb/pi-tasks/pull/65) — thanks [@smantzavinos](https://github.com/smantzavinos))
|
|
15
|
+
- **`TaskStop` no longer claims a confirmed stop when the stop RPC fails or times out.** The subagent stop is best-effort and the task is still marked completed (the `subagents:failed` listener reconciles the real outcome), but the message now reflects whether the stop was confirmed: a confirmed stop reads "stopped", an unconfirmed one "stop requested — not confirmed". ([#46](https://github.com/tintinweb/pi-tasks/issues/46) — thanks [@alexei-led](https://github.com/alexei-led) — and [#69](https://github.com/tintinweb/pi-tasks/issues/69) — thanks [@Jaggerxtrm](https://github.com/Jaggerxtrm))
|
|
16
|
+
- **`TaskUpdate` warns when a status change bypasses open blockers.** Moving a task to `in_progress` or `completed` while a `blockedBy` task is unfinished — which `TaskExecute` refuses — previously succeeded silently. The change still applies (it is a manual override), but now returns a warning naming the open blockers, matching how cycle/self/dangling dependency problems are already reported. ([#71](https://github.com/tintinweb/pi-tasks/issues/71) — thanks [@xulongwu4](https://github.com/xulongwu4))
|
|
17
|
+
- **`TaskExecute` no longer invites a duplicate subagent after a spawn timeout.** A spawn that timed out reverted the task to `pending`, so a retry could start a second agent if the first had launched but its reply was late. A timeout now leaves the task `in_progress`, and a reply arriving within five minutes links the agent to it; if the task was reset or deleted by then, the late agent is stopped. If no reply arrives, reset the task with `TaskUpdate status=pending` before retrying. Auto-cascade spawns behave the same way. ([#48](https://github.com/tintinweb/pi-tasks/issues/48))
|
|
18
|
+
|
|
19
|
+
## [0.9.0] - 2026-08-24
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- **`taskScope: "session-global"` — per-session tasks kept outside the workspace.** Session scope writes `.pi/tasks/tasks-<sessionId>.json` into the workspace, so every repository pi runs in picks up an untracked directory holding a file keyed by a session ID: data of no use to anyone else cloning it, and one more `.gitignore` rule per project. The new scope keeps the same per-session isolation but stores the file at `<agent-dir>/tasks/sessions/<project-key>/tasks-<sessionId>.json` (`~/.pi/agent/tasks/…` by default, following pi's configured agent path like every other piece of user-level state), where `<project-key>` encodes the workspace path the way pi encodes it for its own session logs (`--Users-me-work-repo--`), so a project's tasks sit under the same name as its transcripts and same-ID sessions in different workspaces stay apart.
|
|
23
|
+
|
|
24
|
+
**`session` remains the default and is unchanged** — upgrading moves nothing. Opting in is non-destructive too: it only changes where *new* session files are created, and a session that already has a file in `<workspace>/.pi/tasks/` keeps using it, so switching back strands nothing. ([#61](https://github.com/tintinweb/pi-tasks/pull/61) — thanks [@kunaaal13](https://github.com/kunaaal13) — for [#53](https://github.com/tintinweb/pi-tasks/issues/53) — thanks [@rfgamaral](https://github.com/rfgamaral) — and [#57](https://github.com/tintinweb/pi-tasks/issues/57))
|
|
25
|
+
|
|
26
|
+
- **Every glyph the widget draws is configurable.** A `glyphs` map in `tasks-config.json` at either scope replaces the status marks (`✔` / `◼` / `◻`), the active-task spinner frames, and the widget's furniture — header bullet, overflow and clipping markers, blocked-by marker, token arrows, stats separator, active-row ellipsis, and the glyph on the collapsed `N completed` line. Enough to run the widget in pure ASCII on a terminal without a Nerd Font, or in a set of your own. Every key is optional and falls back on its own, so a partial or malformed map still leaves every task marked, and glyphs merge per key across the global and project files rather than as a block. Glyphs are the first config value to reach the terminal as free text, so control characters and bidi overrides are rejected per glyph — a `.pi/tasks-config.json` arriving with a cloned repository cannot retitle your window or break a widget line in two. Config file only, not in `/tasks` → Settings. See [CUSTOMIZING.md](CUSTOMIZING.md#task-glyphs). ([#60](https://github.com/tintinweb/pi-tasks/pull/60) — thanks [@ningw42](https://github.com/ningw42))
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- **`TaskCreate` is told how to create a batch in one turn.** Its description now says that several tasks are created by issuing one `TaskCreate` call per task in a single response — pi runs independent tool calls in parallel — rather than leaving the model to serialize them across turns. No schema change: `subject` and `description` stay required, and there is no batch parameter to get wrong. ([#58](https://github.com/tintinweb/pi-tasks/pull/58) — thanks [@elecnix](https://github.com/elecnix))
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
- **`TaskOutput` returns a finished subagent's result, and dismisses its completion notification.** It reported only `Task #N [status] — subagent <id>`, so a model that had just blocked on the join still had to call `TaskGet` to read what the agent produced — and pi-subagents, never told the result had been read, delivered its completion notification anyway, after the parent had already answered, costing another turn. The result (or the error) now comes back under the status line, and handing it over consumes it through the new `subagents:rpc:consume` RPC. The suppression half needs a pi-subagents that answers that channel; one that does not keeps notifying rather than failing, and an agent that is still running is never consumed — its notification is the only thing that will announce it. ([#62](https://github.com/tintinweb/pi-tasks/issues/62) — thanks [@felipe3dfx](https://github.com/felipe3dfx))
|
|
33
|
+
- **A failed subagent run no longer leaves the previous run's result behind.** The failure listener recorded `lastError` and reverted the task to `pending` but kept `metadata.result` from an earlier successful run, so a retry that failed carried both — and every reader had to guess which was current. A task back to `pending` now has no result, which is what `TaskOutput`, `TaskGet` and a cascaded agent's injected prerequisite output all already assumed. An intentional stop still keeps its partial result: that task is completed, not retried.
|
|
34
|
+
- **The test suite no longer reads or writes the real `~/.pi/`.** Shared named lists and the global `tasks-config.json` both resolve from the home directory, so the suite left files in the home directory of whoever ran it and picked up their global settings. `HOME` now points at a scratch directory for the duration of the run, and `PI_CODING_AGENT_DIR` is cleared — `getAgentDir()` consults it first, so redirecting the home directory alone would not have contained a contributor who has it set.
|
|
35
|
+
- **`vitest.config.ts` is no longer published to npm.** It refers to `test/`, which `.npmignore` excludes, so the tarball carried a config file pointing at files that were not there.
|
|
36
|
+
|
|
37
|
+
## [0.8.0] - 2026-08-16
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- **Custom widget sort orders.** `sortOrder` now also accepts a *sort spec* — an ordered list of comparison keys (`id` / `status` / `updatedAt`), each with an optional `direction` and, on `status`, a custom `rank` — written into `tasks-config.json` at either scope. A new `active` preset (in-progress → pending → completed, then by id) covers the common case from `/tasks` → Settings without editing a file. Specs are data, not code: anything unrecognised falls back to `id` order, which also tightens a typo'd `sortOrder` name that previously left tasks in storage order. See [CUSTOMIZING.md](CUSTOMIZING.md). ([#35](https://github.com/tintinweb/pi-tasks/pull/35) — thanks [@Minh-Ng](https://github.com/Minh-Ng) — and [#54](https://github.com/tintinweb/pi-tasks/pull/54) — thanks [@Rizhiy](https://github.com/Rizhiy))
|
|
41
|
+
- **Completed tasks can be collapsed to a single line.** `collapseCompleted` (default `false`, toggleable from `/tasks` → Settings) replaces finished tasks with one `✔ N completed` line at the bottom of the widget. It composes with the visible limit rather than overriding it: collapsing decides what is in the list, then `maxVisible` / `showAll` / `hiddenAt` apply to what is left. The header still counts every task. ([#54](https://github.com/tintinweb/pi-tasks/pull/54) — thanks [@Rizhiy](https://github.com/Rizhiy))
|
|
42
|
+
- **A customization guide** — [CUSTOMIZING.md](CUSTOMIZING.md), linked from the README: config scopes and precedence, the display settings and the order they apply in, sort presets and specs, recipes, and troubleshooting.
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
- **An unrecognised `hiddenAt` value no longer blanks the task widget.** Anything other than `top` or `bottom` in a hand-edited `tasks-config.json` threw on every render; the widget's render guard caught it, so the widget silently showed nothing at all with tasks still in the list. The value now falls back to `bottom`.
|
|
46
|
+
- **A new batch of tasks no longer lands under the completed list from the last one.** Both auto-clear modes count in turns and only tick at `turn_start`, so the countdown stops when the agent does — and a run that ends right after its final completion, which is the usual shape, freezes one mid-count. The finished list then stayed on screen, and the next batch was appended to it (`#4` under three completed rows) rather than starting fresh, which reset the countdown again; across a session of short batches the list never cleared. A task created after the agent has stopped now retires a list that has nothing left to do, before it is added to it. The finished list still stays visible while you read it and through follow-up questions, a list with unfinished work in it is untouched, and task IDs remain monotonic. Tasks the agent adds while working through a list are unaffected — that is the same batch taking shape, not a new one, which is why the run boundary rather than the list's state decides. Also fixes the same problem on a resumed session, where the countdown never started at all. (Reported in [#51](https://github.com/tintinweb/pi-tasks/pull/51) — thanks [@ElJeskos](https://github.com/ElJeskos) — and [#56](https://github.com/tintinweb/pi-tasks/issues/56) — thanks [@kunaaal13](https://github.com/kunaaal13))
|
|
47
|
+
- **An auto-cleared session task file is deleted rather than left behind empty.** Clearing writes the emptied list back to `.pi/tasks/tasks-<sessionId>.json`; the manual and session-start clear paths already removed the file afterwards, the automatic one did not.
|
|
48
|
+
|
|
49
|
+
## [0.7.3] - 2026-08-16
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
- **The active-task spinner animates at a steady rate.** Its frame advanced inside the widget's redraw, which also runs on every task mutation and tool execution — so the animation raced ahead during bursts of activity and stalled when nothing was happening. The frame now advances only on the widget's own 150 ms timer. (Diagnosed in [#41](https://github.com/tintinweb/pi-tasks/pull/41) — thanks [@xz-dev](https://github.com/xz-dev))
|
|
53
|
+
- **Task paths resolve from the session's workspace, not the directory pi was started in.** The two match in the ordinary terminal flow, but not in a host that serves sessions from elsewhere, or when a session is opened by an explicit path from another project — those wrote every session's tasks into whichever directory pi happened to start in. Task files, `.pi/tasks-config.json` and relative `PI_TASKS` paths now all follow the workspace pi reports for the session, the same one its own file tools use. This also makes the `taskScope` setting take effect on the next session start as its description promises; it previously needed a full restart. If you open sessions by path from outside their project, an existing `.pi/tasks/` in your launch directory will no longer be read — the files are untouched, just no longer the ones in use. ([#45](https://github.com/tintinweb/pi-tasks/pull/45) — thanks [@yeyaowei](https://github.com/yeyaowei))
|
|
54
|
+
- **A malformed task file no longer corrupts task IDs or silently empties the list.** `normalizeTask` hardens each record, but nothing checked the envelope around them. A file that parsed but had no `nextId` produced the task ID `"NaN"`, and after the next reload IDs restarted at `"0"` — colliding with tasks already in the list — while a file with no `tasks` array threw mid-load and left the store wiped. The counter is now derived from the records when the stored one is missing or stale, entries that aren't task records are skipped, and a file that isn't usable leaves the current state untouched.
|
|
55
|
+
- **Subagents are reattached to their tasks after a reload.** The agent→task map lives only in the extension instance, so a reload started with an empty one while the subagents kept running. Every completion or failure event for an agent spawned before the reload was dropped and its task stayed `in_progress` permanently — and with auto-cascade on, the rest of the chain stalled behind it. The map is now rebuilt on session start from the `agentId` already recorded in task metadata. Only `in_progress` tasks are relinked, so a late event cannot resurrect a task that was reverted to pending. Fixes #47.
|
|
56
|
+
- **A finishing subagent can no longer close an unrelated task in the next session.** The agent→task map was never cleared on `/new`, `/resume` or `/fork`, and task IDs restart at 1 in every session — so a mapping held over from the previous session pointed at a different task, which the agent's completion then marked completed and overwrote the metadata of. The map is cleared on every session switch and rebuilt from the incoming session's own tasks.
|
|
57
|
+
- **`pi --no-session` no longer leaves a task file behind.** pi mints a session ID even when it is not persisting the session, so a session-scoped store wrote `.pi/tasks/tasks-<id>.json` for a session that could never be resumed, and left it on disk. Tasks now stay in memory whenever pi reports no session file. Fixes #43.
|
|
58
|
+
- **`TaskOutput` and `TaskStop` now act on the task an agent ID refers to.** Both tools accept an agent ID in place of a task ID and resolve it through the agent→task map, but then kept querying the store with the original argument. `TaskStop` therefore stopped the subagent and reported success while leaving the task `in_progress` and its widget spinner running, and `TaskOutput` reported the status captured before the wait — visible on file-backed stores, where each read deserializes a fresh object.
|
|
59
|
+
- **Releasing a file lock no longer deletes a lock that has changed hands.** Stale-lock detection asks the local process table whether the holder is alive, so a session in another PID namespace — a container, or a list shared over NFS — can read a live holder's PID as dead and reclaim the lock. The original holder then deleted the successor's lock on the way out, leaving two sessions writing the file at once. Lock files now carry a `<pid>:<uuid>` token and are only removed by the session that wrote them.
|
|
60
|
+
- **A lock file left behind without a PID no longer wedges a shared task list.** `acquireLock()` writes the lock file and then its PID, so a crash in between leaves an empty lock naming no process. Stale-lock detection only recognised locks naming a *dead* process, so every later mutation burned the full 5-second retry budget and threw — permanently, until the file was deleted by hand. An unreadable PID now counts as stale too, after a couple of polls so a live acquirer in that same window is not evicted.
|
|
61
|
+
- **`TaskOutput` rejects an empty `task_id`.** It accepts agent IDs and matches them by prefix, and every ID starts with the empty string — so an empty argument silently reported on whichever background agent the internal map yielded first. It now fails with `task_id is required`, matching `TaskStop`.
|
|
62
|
+
|
|
63
|
+
## [0.7.2] - 2026-07-22
|
|
64
|
+
|
|
65
|
+
### Added
|
|
66
|
+
- **Global task defaults** can be set in `<agent-dir>/tasks-config.json` (`~/.pi/agent/tasks-config.json` by default). Project settings in `<cwd>/.pi/tasks-config.json` override global values key by key, and the settings menu persists only project-level differences. (#36)
|
|
67
|
+
- **The system-reminder now catches stale `in_progress` tasks.** Previously the reminder could only fire from the `tool_result` hook, so an agent that finished a turn with text only (no tool call) was never nudged and could leave tasks stuck `in_progress`. That case is now detected on `turn_end` and a reminder is scheduled for the next LLM call. (#37)
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
- **The auto-cascade setting is easier to find** in `/tasks` → Settings because its label now uses the same "auto-cascade" terminology as the documentation.
|
|
71
|
+
- **System-reminder reshaped after Claude Code's todo reminders** — it is now either an empty-list nudge or a JSON echo of the current task list. The echo is capped at 10 tasks (completed dropped first) to bound its size on large or long-lived lists, and says so when truncated rather than presenting itself as the full list. Also restores the cheap `store.list()` guard on the hot `tool_result` path and stops mutating the shared cadence config. (#37)
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
- **Legacy task files no longer crash the host on load.** Task files written before the dependency feature have no `blockedBy`/`blocks`/`metadata` fields; `TaskStore.load()` deserialized them as-is, so unguarded reads (e.g. `task.blockedBy.length` in the widget) threw a `TypeError`. Because the widget renders on a pi-tui timer, that throw was uncaught and killed the whole pi process on the first render after upgrade. Every record is now normalized at the `load()` boundary (`normalizeTask`, with type guards for hand-edited files), and the widget render is wrapped in a `try/catch` returning a safe fallback so a render error can never again escape to the TUI timer. Fixes #33. (#39)
|
|
75
|
+
- **Persisted tasks are rehydrated correctly on reload, and forks get an independent copy.** `session_switch` is never emitted by the SDK, so the `/new` and `/resume` reset logic was dead code and forks silently lost (or leaked writes into) the parent's tasks. All session lifecycle handling is consolidated into `session_start`, keyed on `event.reason`: `new`/`resume`/`fork` reset session-scoped state (store pointer, shown flag, cadence, auto-clear) on the cached closure, while `startup`/`reload` start clean; on `/fork` the parent's tasks are snapshotted and seeded into the new session file so writes no longer leak back. Adds `TaskStore.snapshot()`/`seed()`. (#34)
|
|
76
|
+
- **Task-store writes survive removal of the parent directory** — `acquireLock()` and `save()` now `mkdir -p` the target directory before writing, so a task write after the `.pi/tasks/` directory was deleted mid-session recreates it instead of throwing. (#27)
|
|
77
|
+
- **The task directory is created lazily, on first write** — the `TaskStore` constructor no longer eagerly creates `.pi/tasks/`. A session that never persists a task now leaves no `.pi/tasks/` directory behind. (#38)
|
|
78
|
+
|
|
79
|
+
## [0.7.1] - 2026-06-24
|
|
80
|
+
|
|
81
|
+
### Changed
|
|
82
|
+
- **`TaskExecute` now offers a recovery path when subagents are unavailable.** When `@tintinweb/pi-subagents` isn't loaded (or its protocol version mismatches), the tool previously dead-ended with "ensure the extension is loaded". It now tells the agent it can run the work as plain Agent-tool spawns, with the explicit caveat that pi-tasks won't track those — status stays pending, cascade won't fire, and `TaskOutput` stays empty. Scoped to the unavailable branch so it doesn't conflict with the success-path guideline. Message only; no behaviour change. (#26)
|
|
83
|
+
|
|
84
|
+
## [0.7.0] - 2026-05-30
|
|
85
|
+
|
|
86
|
+
### Changed
|
|
87
|
+
- **⚠ Behaviour change — system-reminder delivery.** The periodic `<system-reminder>` nudge was previously appended onto the `content` of whatever unrelated tool (`read`, `bash`, `grep`, …) happened to run when it was due. That misattributed host policy text as tool output and **persisted a now-stale reminder into session history**, so it reappeared on every later turn even after task tools were used. It is now injected via the `context` hook as a **transient** `<system-reminder>`-tagged user message on the one request where it's due — not persisted, and not attached to any tool result. `tool_result` is now used solely for cadence tracking and never mutates tool output. The *cadence* (when a reminder fires) is unchanged; only the delivery mechanism and persistence differ. Cadence logic was extracted into a pure, unit-tested `src/reminder-cadence.ts`. (#19)
|
|
88
|
+
|
|
89
|
+
### Added
|
|
90
|
+
- **Configurable widget display settings** — four new options in `/tasks` → Settings (persisted to `.pi/tasks-config.json`), all defaulting to the previous behaviour: (#22)
|
|
91
|
+
- `sortOrder` (default `id`) — `id` (creation order), `status` (completed → in-progress → pending), `recent` / `oldest` (by last-updated time). Sort logic lives in `TaskStore.list(sortOrder)`.
|
|
92
|
+
- `maxVisible` (default `10`) — caps how many task lines the widget shows (`5`–`100`).
|
|
93
|
+
- `showAll` (default `false`) — when `true`, every task is shown regardless of `maxVisible`.
|
|
94
|
+
- `hiddenAt` (default `bottom`) — controls whether the `… and N more` overflow collapses from the `bottom` or `top` of the list; `top` pairs with `sortOrder: status` to keep active work visible.
|
|
95
|
+
|
|
96
|
+
## [0.6.1] - 2026-05-30
|
|
97
|
+
|
|
98
|
+
### Fixed
|
|
99
|
+
- **CI test failures on `webidl.util.markAsUncloneable is not a function`** — bumped the GitHub Actions `node-version` from `20` to `22`. Node 20's bundled `undici` lacks `webidl.util.markAsUncloneable`, which pi's event/RPC layer (exercised by `subagent-integration.test.ts`) requires. Matches the same fix in `@tintinweb/pi-subagents`.
|
|
100
|
+
|
|
101
|
+
## [0.6.0] - 2026-05-30
|
|
102
|
+
|
|
103
|
+
### Changed
|
|
104
|
+
- **Migrated pi peer dependencies to the `@earendil-works` scope** — `@mariozechner/pi-coding-agent` and `@mariozechner/pi-tui` (`>=0.70.5`) → `@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` (`>=0.74.0`). Package was renamed/rescoped across `package.json` and `src` imports; lockfile regenerated. Matches the same migration in `@tintinweb/pi-subagents`. (#21)
|
|
105
|
+
|
|
106
|
+
## [0.5.0] - 2026-04-28
|
|
107
|
+
|
|
108
|
+
### Changed
|
|
109
|
+
- **Bumped `@mariozechner/pi-coding-agent` and `@mariozechner/pi-tui` `^0.62.0` → `^0.70.5`.** Picks up the TypeBox 1.x validator path (pi 0.69), session-replacement context invalidation (pi 0.69), the cwd-bound built-in tool removals (pi 0.68), and the working-indicator / autocomplete-provider APIs along the way. No public surface used by this extension was renamed or removed.
|
|
110
|
+
- **Migrated from `@sinclair/typebox` to `typebox` `^1.1.34`** per the pi 0.69 extension guidance. One-line import change in `src/index.ts`; all `Type.*` calls (`Object`, `String`, `Optional`, `Boolean`, `Number`, `Array`, `Record`, `Any`, `Unsafe`) work unchanged.
|
|
111
|
+
- **Toolchain bumps**: TypeScript `^5` → `^6`, `@types/node` `^20` → `^25`, `@biomejs/biome` `^2.3.5` → `^2.4.13`, `vitest` `^4.0.18` → `^4.1.5`.
|
|
112
|
+
|
|
113
|
+
## [0.4.3] - 2026-04-28
|
|
114
|
+
|
|
115
|
+
### Added
|
|
116
|
+
- **Cascade dependency-result injection** — when `autoCascade` is enabled, a cascaded subagent's prompt now includes a `## Prerequisite task results` section listing each completed blocker's stored `metadata.result` (capped at 4 KB per dep, with a truncation marker pointing at `TaskGet`). Cascaded agents previously had no context from their prerequisites. (#7)
|
|
117
|
+
|
|
118
|
+
### Performance
|
|
119
|
+
- **Spinner render rate** — reduced widget animation interval from 80 ms (12.5 fps) to 150 ms (~6.7 fps). pi-tui's `requestRender()` triggers a full component-tree re-render with no scoped invalidation, so the spinner alone could drive sustained ~70-100% single-core CPU on long sessions. ~47% fewer renders, well above the perceptual threshold where the twinkling-star animation reads as alive. (#11)
|
|
120
|
+
|
|
121
|
+
### Fixed
|
|
122
|
+
- **`TaskUpdate.status` schema** — replaced the `anyOf` of `enum`+`const` shape with a single flat `enum: ["pending", "in_progress", "completed", "deleted"]`. Some LLMs (notably Gemini and earlier Claude variants) parsed the previous shape into double-quoted values like `"\"completed\""`, causing `TaskUpdate` calls to silently fail validation. The accepted value set is unchanged. (#13)
|
|
123
|
+
- **`TaskExecute` `model` parameter now actually forwards** — the `model` option was declared on the tool and captured into the cascade config, but silently dropped at both `spawnSubagent` call sites (initial spawn and cascade). Now propagated end-to-end. (#7)
|
|
124
|
+
|
|
125
|
+
## [0.4.2] - 2026-03-24
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
- **Task numbers in widget** — each task line now shows its `#id` (e.g., `◻ #3 Do something`), making blocker references like `blocked by #3` easy to cross-reference at a glance. Numbers are dimmed so they stay readable without competing with the task subject.
|
|
129
|
+
|
|
130
|
+
## [0.4.1] - 2026-03-22
|
|
131
|
+
|
|
132
|
+
### Added
|
|
133
|
+
- **Auto-clear completed tasks** — new `autoClearCompleted` setting with three modes:
|
|
134
|
+
- `never`: completed tasks stay visible until manually cleared
|
|
135
|
+
- `on_list_complete` **(default)**: completed tasks are cleared after all tasks are done and a few turns pass — user sees the "all done" state before cleanup
|
|
136
|
+
- `on_task_complete`: each completed task is cleared individually after a few turns
|
|
137
|
+
- Both auto-clear modes use a turn-based delay (matching `REMINDER_INTERVAL`) for consistent, non-jarring UX — tasks linger briefly so the user sees the completion before they disappear
|
|
138
|
+
- **`AutoClearManager`** — extracted, testable class (`src/auto-clear.ts`) handling turn-based clearing logic with per-task and batch countdown tracking
|
|
139
|
+
- **20 new unit tests** — full coverage of all three auto-clear modes, turn delays, dependency cleanup, batch reset, dynamic mode switching, session reset, and store swap
|
|
140
|
+
|
|
141
|
+
### Changed
|
|
142
|
+
- **Settings** — `/tasks` → Settings now shows "Auto-clear completed tasks" toggle with `never` / `on_list_complete` / `on_task_complete` values. Also configurable via `.pi/tasks-config.json`.
|
|
143
|
+
|
|
144
|
+
### Fixed
|
|
145
|
+
- **`/new` and `/resume` now correctly switch session state** — `storeUpgraded` and `persistedTasksShown` flags were never reset on `session_switch`, causing the store to stay pointed at the old session file and the widget to not refresh. All session-scoped state (turn counters, reminder flags, auto-clear tracking) is now reset on both `/new` and `/resume`. Memory-mode tasks are explicitly cleared on `/new`.
|
|
146
|
+
|
|
147
|
+
## [0.4.0] - 2026-03-22
|
|
148
|
+
|
|
149
|
+
### Added
|
|
150
|
+
- **RPC-based subagent spawning** — `TaskExecute` now communicates with `@tintinweb/pi-subagents` via a standardized RPC envelope (`rpcCall` helper) with protocol version negotiation and timeout handling.
|
|
151
|
+
- **RPC-based subagent stopping** — `stopSubagent` sends stop requests via `subagents:rpc:stop` event bus RPC.
|
|
152
|
+
- **TaskOutput supports subagent tasks** — can wait for subagent completion with blocking/timeout, using `subagents:completed` and `subagents:failed` events.
|
|
153
|
+
- **TaskStop supports subagent tasks** — stops running subagents via RPC and marks the task as completed.
|
|
154
|
+
- **Debug logging** — set `PI_TASKS_DEBUG=1` to trace RPC communication (request/reply/timeout) and spawn errors to stderr.
|
|
155
|
+
- **TaskExecute prompt guidelines** — agents are instructed not to use the Agent tool for tasks already launched via TaskExecute.
|
|
156
|
+
- **Biome linter** — added [Biome](https://biomejs.dev/) for correctness linting.
|
|
157
|
+
|
|
158
|
+
### Changed
|
|
159
|
+
- **TaskOutput/TaskStop accept agent IDs** — both tools now resolve agent IDs (including partial prefixes) to task IDs via `agentTaskMap`, fixing the mismatch where TaskExecute returns agent IDs but TaskOutput/TaskStop only accepted task IDs.
|
|
160
|
+
- **TaskGet shows metadata** — non-empty metadata is now displayed in TaskGet output as JSON.
|
|
161
|
+
- **TaskGet filters completed blockers** — consistent with TaskList, TaskGet now only shows open (non-completed) blockers instead of all dependency edges.
|
|
162
|
+
- **TaskExecute success message** — now includes guidance to use TaskOutput for progress and not spawn duplicate agents.
|
|
163
|
+
- **Softened TaskExecute description** — removed "Requires @tintinweb/pi-subagents extension" from the tool description to prevent agents from refusing to use it when the extension is loaded.
|
|
164
|
+
- **Stopped subagents handled gracefully** — `subagents:failed` listener now distinguishes intentional stops (status `"stopped"` → mark completed, preserve partial result) from actual errors (revert to pending).
|
|
165
|
+
|
|
166
|
+
## [0.3.3] - 2026-03-17
|
|
167
|
+
|
|
168
|
+
### Added
|
|
169
|
+
- **Session-scoped task storage** — new `taskScope` config with three modes: `memory` (in-memory only), `session` (per-session file, default), `project` (shared across sessions). Session mode uses `tasks-<sessionId>.json`, surviving session resume while keeping sessions isolated.
|
|
170
|
+
- **Session resume support** — `session_switch` event handler reloads persisted tasks on resume without auto-clearing completed tasks (user may want to review).
|
|
171
|
+
- **Session file cleanup** — empty session task files are automatically deleted when all tasks are cleared, preventing stale file accumulation.
|
|
172
|
+
- **"Clear all" in `/tasks` menu** — wipe all tasks regardless of status, not just completed ones.
|
|
173
|
+
|
|
174
|
+
### Changed
|
|
175
|
+
- **Unified storage setting** — replaced `persistTasks` (boolean) with a single `taskScope: "memory" | "session" | "project"` setting. The `persistTasks` field is no longer recognized.
|
|
176
|
+
- **Auto-clear completed on new session start** — when all persisted tasks are completed, they are silently cleared instead of showing stale completed work. On resume, completed tasks are preserved.
|
|
177
|
+
- **Widget only shows on start if there's unfinished work** — sessions with only completed tasks start with a clean slate.
|
|
178
|
+
- **Settings moved to last position** in `/tasks` menu for better UX (actions first, config last).
|
|
179
|
+
|
|
180
|
+
### Fixed
|
|
181
|
+
- **Robust session store upgrade** — store upgrade from in-memory to file-backed triggers on `turn_start`, `before_agent_start`, `session_switch`, and `tool_execution_start` — whichever fires first.
|
|
182
|
+
|
|
183
|
+
## [0.3.2] - 2026-03-17
|
|
184
|
+
|
|
185
|
+
### Fixed
|
|
186
|
+
- **Completed tasks no longer vanish from the list** — completed tasks are now persisted to disk so they survive reloads and show as strikethrough instead of disappearing. Use "Clear completed" in `/tasks` to explicitly remove them.
|
|
187
|
+
|
|
188
|
+
## [0.3.1] - 2026-03-16
|
|
189
|
+
|
|
190
|
+
### Added
|
|
191
|
+
- **Local-by-default task persistence** — tasks now auto-persist to `<cwd>/.pi/tasks/tasks.json` on every mutation and reload on restart. No config needed. Set `PI_TASKS=off` to opt out (CI/automation).
|
|
192
|
+
- **Settings persistence** — `persistTasks` and `autoCascade` settings survive restarts via `<cwd>/.pi/tasks-config.json`.
|
|
193
|
+
- **"Persist tasks" toggle in Settings** — `/tasks` → Settings now shows two toggles: auto-execute and persist. Both are saved immediately to `tasks-config.json`.
|
|
194
|
+
- **Completed tasks excluded from disk** — only `pending` and `in_progress` tasks are written to disk. Completed tasks are in-memory only and pruned on restart. *(Reverted in 0.3.2 — completed tasks are now persisted.)*
|
|
195
|
+
- **Absolute path support** — `TaskStore` now accepts an absolute file path in addition to a short list ID.
|
|
196
|
+
|
|
197
|
+
### Changed
|
|
198
|
+
- **⚠ BREAKING: `PI_TASKS_FILE` / `PI_TASKS_LIST` → `PI_TASKS`** — two env vars consolidated into one. Values: `off` (in-memory), `sprint-1` (named list → `~/.pi/tasks/sprint-1.json`), `/abs/path` (absolute), `./rel/path` (relative to cwd). `PI_TASKS_LIST=name` users: rename to `PI_TASKS=name`.
|
|
199
|
+
- **Settings menu** — extracted to `src/ui/settings-menu.ts` and rebuilt using `ui.custom()` + `SettingsList` for native TUI rendering: keyboard navigation, live toggle, per-row descriptions, theme-consistent styling.
|
|
200
|
+
- **`autoCascade` setting** — now loaded from `tasks-config.json` on startup so the toggle survives restarts.
|
|
201
|
+
- **Hardened `TaskUpdate` description** — added "Before starting work on a task: mark it `in_progress` BEFORE beginning" as an explicit use case. Previously this rule only appeared in `TaskCreate`; now it lives in the tool actually used to set that status.
|
|
202
|
+
- **Removed `before_agent_start` system prompt injection** — task state is no longer injected into the system prompt on every agent loop. Analysis showed this creates wallpaper noise that trains the model to ignore the task block. Claude Code itself does not do this: the workflow contract lives in tool descriptions (read at decision time) and the periodic `<system-reminder>` nudge (fired when task tools haven't been used recently). Removed the corresponding 3 tests.
|
|
203
|
+
- **Widget render-once refactor** — `TaskWidget` now registers the widget callback a single time and uses `tui.requestRender()` for subsequent updates instead of calling `setWidget()` on every tick. Rendering logic extracted to `renderWidget()`. Eliminates redundant callback re-registration and keeps a cached `tui` reference for lightweight invalidation.
|
|
204
|
+
|
|
205
|
+
## [0.3.0] - 2026-03-14
|
|
206
|
+
|
|
207
|
+
### Changed
|
|
208
|
+
- **Eventbus RPC for subagent communication** — replaced the `Symbol.for` global registry bridge with a proper eventbus RPC protocol. [`pi-tasks`](https://github.com/tintinweb/pi-tasks) now communicates with `@tintinweb/pi-subagents` via scoped request/reply channels (`subagents:rpc:spawn`, `subagents:rpc:ping`), eliminating shared mutable global state and enabling reliable cross-extension coordination regardless of load order.
|
|
209
|
+
- **Presence detection** — two-path handshake: (1) ping RPC on init with scoped reply channel, (2) `subagents:ready` broadcast listener. Works whether [`pi-subagents`](https://github.com/tintinweb/pi-subagents) loads before or after [`pi-tasks`](https://github.com/tintinweb/pi-tasks).
|
|
210
|
+
- **Agent-task mapping** — in-memory `agentTaskMap` (agentId → taskId) replaces linear `store.list().find()` scans for O(1) completion event lookup.
|
|
211
|
+
- **Spawn error handling** — `spawnSubagent()` returns a Promise with 30s timeout. Failed spawns revert tasks to `pending` with error in metadata instead of silently failing.
|
|
212
|
+
- **Removed `SubagentBridge` type** — the `types.ts` interface for the global registry bridge is no longer needed.
|
|
213
|
+
- **Widget icon colors** — completed tasks show green `✔`, in-progress tasks show accent-colored `◼` (matching Claude Code's UI).
|
|
214
|
+
|
|
215
|
+
## [0.2.0] - 2026-03-12
|
|
216
|
+
|
|
217
|
+
### Added
|
|
218
|
+
- **`TaskExecute` tool** — execute tasks as background subagents via @tintinweb/pi-subagents. Tasks with `agentType` metadata are spawned as independent agents; validates status, dependencies, and agent type before launching.
|
|
219
|
+
- **`agentType` parameter on `TaskCreate`** — opt-in field (e.g., `"general-purpose"`, `"Explore"`) that marks tasks for subagent execution.
|
|
220
|
+
- **Auto-cascade** — when enabled via `/tasks` → Settings, completed agent tasks automatically trigger execution of their unblocked dependents, flowing through the task DAG like a build system. Off by default.
|
|
221
|
+
- **Subagent completion listener** — listens to `subagents:completed` and `subagents:failed` events to automatically update task status. Failed tasks revert to `pending` with error stored in metadata.
|
|
222
|
+
- **READY tags in system prompt** — pending tasks with `agentType` and all dependencies completed are marked `[READY — use TaskExecute to start]` in the system prompt.
|
|
223
|
+
- **Agent ID in widget** — in-progress tasks backed by subagents show the agent ID (e.g., `✳ Writing tests (agent abc12)…`).
|
|
224
|
+
- **Settings menu** — `/tasks` → Settings → toggle "Auto-execute tasks with agents".
|
|
225
|
+
- **`SubagentBridge` type** — typed interface for the cross-extension Symbol.for bridge.
|
|
226
|
+
|
|
227
|
+
### Changed
|
|
228
|
+
- `@tintinweb/pi-subagents` global registry now exposes `spawn()` and `getRecord()` in addition to `waitForAll()` and `hasRunning()`.
|
|
229
|
+
- `@tintinweb/pi-subagents` emits lifecycle events on `pi.events`: `subagents:created`, `subagents:started`, `subagents:completed`, `subagents:failed`, `subagents:steered`.
|
|
230
|
+
- `AgentManager` accepts an optional `onStart` callback, fired when an agent transitions to running (including from queue).
|
|
231
|
+
|
|
232
|
+
## [0.1.0] - 2026-03-12
|
|
233
|
+
|
|
234
|
+
Initial release — Claude Code-style task tracking and coordination for pi.
|
|
235
|
+
|
|
236
|
+
### Added
|
|
237
|
+
- **6 LLM-callable tools** — `TaskCreate`, `TaskList`, `TaskGet`, `TaskUpdate`, `TaskOutput`, `TaskStop` — matching Claude Code's exact tool specs, descriptions, and schemas.
|
|
238
|
+
- **System-reminder injection** — periodic `<system-reminder>` nudges appended to non-task tool results when tasks exist but task tools haven't been used for 4+ turns. Matches Claude Code's host-level reminder mechanism.
|
|
239
|
+
- **Prompt guidelines** — `promptGuidelines` on TaskCreate injects persistent guidance into the system prompt, nudging the LLM to use task tools for complex work.
|
|
240
|
+
- **Task state in system prompt** — `before_agent_start` event appends current task state to the system prompt on every agent loop, ensuring task awareness survives context compaction.
|
|
241
|
+
- **Persistent widget** — live task list above editor with `✔` (completed, strikethrough + dim), `◼` (in-progress), `◻` (pending), animated star spinner (`✳✽`) for active tasks with elapsed time and token counts (e.g., `✳ Running tests… (2m 49s · ↑ 4.1k ↓ 1.2k)`).
|
|
242
|
+
- **Multiple parallel active tasks** — widget supports multiple simultaneous spinners.
|
|
243
|
+
- **`/tasks` command** — interactive menu: view tasks with actions (start, complete, delete), create tasks, clear completed.
|
|
244
|
+
- **Bidirectional dependency management** — `addBlocks`/`addBlockedBy` maintain both sides automatically. Edges cleaned up on task deletion.
|
|
245
|
+
- **Dependency warnings** — cycles, self-dependencies, and dangling references produce warnings in TaskUpdate responses. Edges are still stored, matching Claude Code's permissive behavior.
|
|
246
|
+
- **File-backed shared storage** — set `PI_TASK_LIST_ID` env var for multi-session coordination at `~/.pi/tasks/<id>.json`. File locking with stale-lock detection prevents race conditions.
|
|
247
|
+
- **In-memory session-scoped mode** — default when no env var is set, zero disk I/O.
|
|
248
|
+
- **Background process tracker** — output buffering (stdout + stderr), waiter notification, graceful stop with timeout escalation (SIGTERM → 5s → SIGKILL).
|
|
249
|
+
- **78 unit tests** — task store CRUD, dependencies, warnings, file persistence; widget rendering, icons, spinners, token/duration formatting; process tracker lifecycle.
|
|
250
|
+
|
|
251
|
+
[0.9.1]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.9.1
|
|
252
|
+
[0.9.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.9.0
|
|
253
|
+
[0.8.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.8.0
|
|
254
|
+
[0.7.3]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.7.3
|
|
255
|
+
[0.7.2]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.7.2
|
|
256
|
+
[0.7.1]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.7.1
|
|
257
|
+
[0.7.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.7.0
|
|
258
|
+
[0.6.1]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.6.1
|
|
259
|
+
[0.6.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.6.0
|
|
260
|
+
[0.5.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.5.0
|
|
261
|
+
[0.4.3]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.4.3
|
|
262
|
+
[0.4.2]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.4.2
|
|
263
|
+
[0.4.1]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.4.1
|
|
264
|
+
[0.4.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.4.0
|
|
265
|
+
[0.3.3]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.3.3
|
|
266
|
+
[0.3.2]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.3.2
|
|
267
|
+
[0.3.1]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.3.1
|
|
268
|
+
[0.3.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.3.0
|
|
269
|
+
[0.2.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.2.0
|
|
270
|
+
[0.1.0]: https://github.com/tintinweb/pi-tasks/releases/tag/v0.1.0
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Contributing to @tintinweb/pi-tasks
|
|
2
|
+
|
|
3
|
+
This guide exists to save both sides time.
|
|
4
|
+
|
|
5
|
+
## Philosophy
|
|
6
|
+
|
|
7
|
+
`pi-tasks` is a [pi](https://pi.dev) extension, and it tries to stay focused:
|
|
8
|
+
track multi-step work and coordinate it across sessions in a way that feels
|
|
9
|
+
native to pi, and do that well. Features that don't serve that goal, or that
|
|
10
|
+
bolt on unrelated complexity, are likely to be declined. When in doubt, open an
|
|
11
|
+
issue and discuss the idea before writing the code.
|
|
12
|
+
|
|
13
|
+
The extension deliberately mirrors Claude Code's tool names, calling
|
|
14
|
+
conventions, and UI patterns. Changes should respect that compatibility unless
|
|
15
|
+
there's a good reason to diverge.
|
|
16
|
+
|
|
17
|
+
## The One Rule
|
|
18
|
+
|
|
19
|
+
**You must understand your code.** If you cannot explain what your changes do and
|
|
20
|
+
how they interact with the rest of the system, the PR will be closed.
|
|
21
|
+
|
|
22
|
+
Using AI to write code is fine. Submitting AI-generated slop without
|
|
23
|
+
understanding it is not.
|
|
24
|
+
|
|
25
|
+
## Filing Issues
|
|
26
|
+
|
|
27
|
+
Keep issues short, concrete, and worth reading.
|
|
28
|
+
|
|
29
|
+
- Keep it concise. If it does not fit on one screen, it is too long.
|
|
30
|
+
- Write in your own voice. If you used an LLM to draft it, review and shape it
|
|
31
|
+
yourself before posting.
|
|
32
|
+
- State the bug or request clearly, and explain why it matters.
|
|
33
|
+
- For bugs, include a minimal repro: pi version, this extension's version, your
|
|
34
|
+
task config, the steps, and the actual vs. expected behavior.
|
|
35
|
+
- If you want to implement the change yourself, say so.
|
|
36
|
+
|
|
37
|
+
For security issues, do **not** open a public issue — see [SECURITY.md](SECURITY.md).
|
|
38
|
+
|
|
39
|
+
## Before Submitting a PR
|
|
40
|
+
|
|
41
|
+
For anything beyond a trivial fix, open an issue first so we can agree on the
|
|
42
|
+
approach before you invest the time.
|
|
43
|
+
|
|
44
|
+
Make sure the full check suite passes locally:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm run lint # biome
|
|
48
|
+
npm run typecheck # tsc --noEmit
|
|
49
|
+
npm run test # vitest
|
|
50
|
+
npm run build # tsc
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
All four must pass. `npm run lint:fix` will auto-fix most style issues.
|
|
54
|
+
|
|
55
|
+
Other guidelines:
|
|
56
|
+
|
|
57
|
+
- Keep PRs focused — one logical change per PR. Unrelated refactors make review
|
|
58
|
+
harder and are likely to be split out or declined.
|
|
59
|
+
- Add or update tests for behavior you change.
|
|
60
|
+
- Match the surrounding code style (enforced by biome).
|
|
61
|
+
- Do not edit `CHANGELOG.md`. Changelog entries are added by the maintainer.
|
|
62
|
+
- Update the README when you add or change user-facing behavior.
|
|
63
|
+
|
|
64
|
+
## Questions?
|
|
65
|
+
|
|
66
|
+
Open an [issue](https://github.com/tintinweb/pi-tasks/issues) — questions and
|
|
67
|
+
discussion are welcome.
|