@herbertgao/pi-extensions 2026.11.2 → 2026.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +13 -13
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +12 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +109 -16
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +33 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +72 -17
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +5 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +10 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +16 -7
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +7 -5
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +92 -0
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +92 -0
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +12 -10
- package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +1 -1
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-record-entry.ts +22 -6
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +9 -4
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +167 -7
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +8 -4
- package/node_modules/@narumitw/pi-btw/CHANGELOG.md +259 -0
- package/node_modules/@narumitw/pi-btw/package.json +6 -5
- package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +70 -0
- package/node_modules/@narumitw/pi-caffeinate/package.json +5 -4
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +48 -0
- package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +64 -5
- package/node_modules/pi-commandcode-provider/README.md +44 -18
- package/node_modules/pi-commandcode-provider/RELEASE.md +25 -0
- package/node_modules/pi-commandcode-provider/index.ts +222 -42
- package/node_modules/pi-commandcode-provider/package.json +9 -8
- package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +6 -13
- package/node_modules/pi-commandcode-provider/scripts/typecheck-entrypoint.mjs +88 -0
- package/node_modules/pi-commandcode-provider/src/api-key.ts +67 -10
- package/node_modules/pi-commandcode-provider/src/auth-server.ts +33 -24
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
- package/node_modules/pi-commandcode-provider/src/cost.ts +29 -43
- package/node_modules/pi-commandcode-provider/src/diagnostics.ts +215 -0
- package/node_modules/pi-commandcode-provider/src/oauth.ts +41 -7
- package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -3
- package/node_modules/pi-commandcode-provider/src/quota-command.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/routing.ts +166 -0
- package/node_modules/pi-commandcode-provider/src/runtime.ts +23 -10
- package/node_modules/pi-commandcode-provider/src/transport.ts +82 -85
- package/node_modules/pi-commandcode-provider/src/types.ts +20 -39
- package/node_modules/pi-commandcode-provider/src/usage.ts +1 -1
- package/node_modules/pi-lens/CHANGELOG-USER.md +31 -0
- package/node_modules/pi-lens/CHANGELOG.md +178 -0
- package/node_modules/pi-lens/README.md +2 -1
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/node_modules/pi-lens/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/node_modules/pi-lens/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/node_modules/pi-lens/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-4ENEJHF4.js +198 -0
- package/node_modules/pi-lens/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/node_modules/pi-lens/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/node_modules/pi-lens/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/node_modules/pi-lens/dist/chunk-DGKFWQK4.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/node_modules/pi-lens/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/node_modules/pi-lens/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/node_modules/pi-lens/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/node_modules/pi-lens/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/node_modules/pi-lens/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-H6FLQ5NW.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/node_modules/pi-lens/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/node_modules/pi-lens/dist/chunk-KR5VGMVT.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/node_modules/pi-lens/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/node_modules/pi-lens/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/node_modules/pi-lens/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/node_modules/pi-lens/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/node_modules/pi-lens/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/node_modules/pi-lens/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/node_modules/pi-lens/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/node_modules/pi-lens/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/node_modules/pi-lens/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-Q6JQKWPK.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-QJJKOHLH.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/node_modules/pi-lens/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/node_modules/pi-lens/dist/chunk-T5QSLSMM.js +50 -0
- package/node_modules/pi-lens/dist/chunk-TGQDAG4B.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/node_modules/pi-lens/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/node_modules/pi-lens/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-TYHPVE5H.js +25 -0
- package/node_modules/pi-lens/dist/chunk-UAKO2M6B.js +73 -0
- package/node_modules/pi-lens/dist/chunk-UC5AXW5Z.js +20 -0
- package/node_modules/pi-lens/dist/chunk-UTJP6WOS.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/node_modules/pi-lens/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/node_modules/pi-lens/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/node_modules/pi-lens/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/node_modules/pi-lens/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/node_modules/pi-lens/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/node_modules/pi-lens/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/node_modules/pi-lens/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-ZD4KVFXI.js +234 -0
- package/node_modules/pi-lens/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/node_modules/pi-lens/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/node_modules/pi-lens/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/node_modules/pi-lens/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/node_modules/pi-lens/dist/index.js +4910 -4218
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +12 -17
- package/node_modules/pi-lens/dist/mcp/cli.js +41 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1451 -648
- package/node_modules/pi-lens/dist/mcp/worker.js +59 -60
- package/node_modules/pi-lens/dist/probes/installer.js +17 -19
- package/node_modules/pi-lens/docs/agent-tools.md +40 -8
- package/node_modules/pi-lens/docs/analysisall.md +1 -1
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +7 -5
- package/node_modules/pi-lens/docs/configuration.md +51 -9
- package/node_modules/pi-lens/docs/defect-shapes.md +52 -3
- package/node_modules/pi-lens/docs/environment-variables.md +18 -1
- package/node_modules/pi-lens/docs/features.md +12 -5
- package/node_modules/pi-lens/docs/globalconfig.md +11 -3
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +9 -2
- package/node_modules/pi-lens/docs/invariants/session-telemetry.md +2 -2
- package/node_modules/pi-lens/docs/language-coverage.md +1 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +57 -35
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +4 -1
- package/node_modules/pi-lens/docs/merge-queue-rollout.md +10 -8
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +34 -23
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +11 -1
- package/node_modules/pi-lens/docs/pi-lens-investigator.md +3 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +15 -7
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +13 -0
- package/node_modules/pi-lens/docs/public-api-stability.md +39 -5
- package/node_modules/pi-lens/docs/release-qa-baseline.md +7 -4
- package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +11 -2
- package/node_modules/pi-lens/docs/servercapabilities.md +3 -1
- package/node_modules/pi-lens/docs/settings.md +2 -2
- package/node_modules/pi-lens/docs/word-index.md +3 -2
- package/node_modules/pi-lens/package.json +8 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/node_modules/pi-lens/scripts/download-grammars.js +3 -2
- package/node_modules/pi-lens/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/node_modules/pi-provider-qoder/dist/index.js +473 -62
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-web-access/CHANGELOG.md +22 -0
- package/node_modules/pi-web-access/README.md +31 -12
- package/node_modules/pi-web-access/curator-page.ts +5 -1
- package/node_modules/pi-web-access/curator-server.ts +2 -0
- package/node_modules/pi-web-access/dist/index.js +673 -308
- package/node_modules/pi-web-access/dist/mcp-cli.js +666 -309
- package/node_modules/pi-web-access/gemini-search.ts +12 -4
- package/node_modules/pi-web-access/github-api.ts +1 -1
- package/node_modules/pi-web-access/github-extract.ts +3 -2
- package/node_modules/pi-web-access/index.ts +7 -3
- package/node_modules/pi-web-access/mcp-tool-definitions.ts +1 -1
- package/node_modules/pi-web-access/outcrawl.ts +204 -0
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/sofya.ts +201 -0
- package/node_modules/pi-web-access/utils.ts +16 -6
- package/node_modules/pi-web-access/web-tool-core.ts +4 -0
- package/package.json +16 -14
- package/node_modules/pi-commandcode-provider/src/converters.ts +0 -477
- package/node_modules/pi-commandcode-provider/src/core.ts +0 -836
- package/node_modules/pi-commandcode-provider/src/json-schema.ts +0 -417
- package/node_modules/pi-commandcode-provider/src/transcript.ts +0 -56
- package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +0 -31
- package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +0 -27
- package/node_modules/pi-lens/dist/chunk-447YZL4S.js +0 -25
- package/node_modules/pi-lens/dist/chunk-565VRUP4.js +0 -136
- package/node_modules/pi-lens/dist/chunk-57X2CDRX.js +0 -49
- package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +0 -27
- package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +0 -58
- package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +0 -22
- package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +0 -89
- package/node_modules/pi-lens/dist/chunk-U3AS2FR6.js +0 -106
- package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +0 -27
- package/node_modules/pi-lens/dist/chunk-WQV6BI4Q.js +0 -48
- package/node_modules/pi-lens/dist/chunk-YHGYAEFH.js +0 -443
- package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +0 -74
- package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +0 -30
|
@@ -2,6 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.8.0 - 2026-11-05
|
|
6
|
+
|
|
7
|
+
### Breaking changes and migration
|
|
8
|
+
|
|
9
|
+
- Require documented Provider API access for inference, carrying [#164](https://github.com/patlux/pi-commandcode-provider/pull/164) by @patlux. `403 upgrade_required` stops without any internal `/alpha/generate` retry. Go users must use the official CLI within its supported plan or an account with Provider API entitlement; GOAT, Pro and Max retain their entitled API access. This deliberately supersedes the fallback hardened in #154 and the subsequent generate-specific fixes. Remove the retired client, serializers and Go live profile from the package; preserve credentials, sessions, endpoint choices and native host gates. Read-only quota/account endpoints remain an explicit exception, not an entitlement bypass. Retry after an entitlement change; sign in again only if changing accounts.
|
|
10
|
+
- The Provider-only policy was integrated through [#203](https://github.com/patlux/pi-commandcode-provider/pull/203). Generate-only behavior, including the `COMMANDCODE_TASTE_LEARNING` opt-in, no longer applies. Native hosts own inference serialization, timeout and retry behavior; the extension no longer implements a generate retry loop. Updating does not delete or migrate credentials, sessions or persisted endpoint choices. A successful login or quota request is not evidence of API entitlement.
|
|
11
|
+
|
|
12
|
+
### Improvements and fixes
|
|
13
|
+
|
|
14
|
+
- Add `/commandcode-endpoint <model-id> auto|responses|chat-completions` for persistent per-model Provider API routing, carried forward from [#158](https://github.com/patlux/pi-commandcode-provider/pull/158) by @patlux. Choices survive refresh/restart and appear in status/diagnostics. Malformed routing files fall back to catalog routing with a visible warning; explicit command repair preserves their previous contents in a private backup. Wire changes replace stale compatibility flags rather than merging them, while same-wire host/user settings and Oh My Pi reasoning replay are preserved. The global routing default is unchanged; no automatic retries or mid-stream switching are added. Inference entitlement follows the breaking change above.
|
|
15
|
+
|
|
16
|
+
- Preserve Chat Completions reasoning history on Oh My Pi; previous reasoning was dropped from follow-up requests. Carries the fix and real-host protocol contracts from [#162](https://github.com/patlux/pi-commandcode-provider/pull/162) by @patlux, with image-payload assertions, catalog preconditions and process cleanup hardened during the carry. Pi's reasoning behavior is unchanged.
|
|
17
|
+
- Require a dedicated entrypoint typecheck against the installed Pi declarations, with compile-time host contracts. Copy model costs and context tiers into independent mutable registration metadata without applying request-time peak pricing; cover registration at peak and off-peak hours through the real Pi loader ([#198](https://github.com/patlux/pi-commandcode-provider/pull/198)).
|
|
18
|
+
- Refresh the capability snapshot to `command-code@1.88.3`: advertise image input for `stealth/crouton-alpha`, plus reasoning and selectable efforts for Crouton (`low`/`medium`/`high`/`xhigh`/`max`) and `inclusionai/ling-3.1-flash-1019` (`low`/`medium`/`high`). Use their published output limits of 943,718 and 262,144 tokens respectively, still capped by the model's context window. Pricing and endpoint routing are unchanged.
|
|
19
|
+
- Add content-free `/commandcode-diagnostics` reports, per-request body-chunk timing and error categories, plus explicit unknown-price warnings. Measurements use the caller's fetch hook without retaining request bodies. Carried forward from #159 by @patlux; the per-model endpoint routing from the same stack stays with #158.
|
|
20
|
+
- Add guarded, bounded and deduplicated catalog maintenance alerts, carrying [#163](https://github.com/patlux/pi-commandcode-provider/pull/163) by @patlux through [#202](https://github.com/patlux/pi-commandcode-provider/pull/202). Two consecutive default-branch catalog failures create or reopen one bot-owned incident, and a processed current success comments and closes it. Recovery can be delayed by newer failed runs; loss of the reserved label can hide an incident and allow duplicates. See `RELEASE.md` for the operational limits and manual triage.
|
|
21
|
+
|
|
22
|
+
### Integration and validation
|
|
23
|
+
|
|
24
|
+
- This release includes the diagnostics, routing and reasoning carries [#180](https://github.com/patlux/pi-commandcode-provider/pull/180), [#200](https://github.com/patlux/pi-commandcode-provider/pull/200) and [#201](https://github.com/patlux/pi-commandcode-provider/pull/201), the catalog snapshot [#199](https://github.com/patlux/pi-commandcode-provider/pull/199), the entrypoint gate [#198](https://github.com/patlux/pi-commandcode-provider/pull/198), and the maintenance and entitlement carries #202 and #203.
|
|
25
|
+
- Source and packed-package checks use real Pi and Oh My Pi hosts against isolated loopback mocks, including all three Provider API protocols, reasoning/tool/image history and persisted endpoint routing. These checks do not claim live account entitlement, billing accuracy or upstream performance. Existing catalog-workflow action pinning and host-action deprecation warnings remain separate maintenance work.
|
|
26
|
+
|
|
27
|
+
### Contributors
|
|
28
|
+
|
|
29
|
+
- @patlux (Patrick Wozniak) — authored the diagnostics, endpoint routing, Oh My Pi reasoning, maintenance policy and Provider API entitlement work carried forward from #159, #158, #162, #163 and #164.
|
|
30
|
+
- @pierreraby — reviewed and adapted the carries, added integration and regression guards, updated capability metadata, introduced the real-host entrypoint gate, and prepared this release.
|
|
31
|
+
|
|
32
|
+
## 0.7.12 - 2026-11-04
|
|
33
|
+
|
|
34
|
+
- Reuse the shared credential redactor for `/commandcode-status` diagnostic text while preserving URL query, fragment, and userinfo removal. Defensive hardening with synthetic regression coverage, not a confirmed production leak. Carries the shared-redactor fix from #165 by @patlux ([#195](https://github.com/patlux/pi-commandcode-provider/pull/195)).
|
|
35
|
+
- Clear the `/commandcode-status` stream-warning slot when the next Responses HTTP request starts, rather than keeping a one-off malformed-reasoning warning until restart. Other transports do not clear the slot; concurrent Responses requests still share it. Carries the warning-reset fix from #165 by @patlux, with precise reset semantics and a real Pi RPC regression ([#194](https://github.com/patlux/pi-commandcode-provider/pull/194)).
|
|
36
|
+
- Preserve and double context-tier rates alongside base rates during DeepSeek V4 peak windows on the Provider API path. Copy the readonly catalog into an independent mutable cost table at the native-host boundary. The adapter's mutable return shape is guarded by the project typecheck and mutation tests; this does not extend typecheck coverage to the host entrypoint. This is a synthetic future-proofing case: no current time-priced model has context tiers. Carries the peak-tier fix from #165 by @patlux, with the native-host contract adapted during integration ([#193](https://github.com/patlux/pi-commandcode-provider/pull/193)).
|
|
37
|
+
- Reset the transport probe on `/commandcode-refresh` so an upgraded Go account retries the Provider API with the same key. Prevent requests started before a reset or key change from overwriting the new probe result. Carries the refresh fix from #165 by @patlux, with same-key race coverage and a real Pi RPC wiring test ([#192](https://github.com/patlux/pi-commandcode-provider/pull/192)).
|
|
38
|
+
- Make server-side taste learning opt-in on the legacy generate transport via `COMMANDCODE_TASTE_LEARNING=1`, always disabled under `CMD_ZDR=1` or `COMMANDCODE_ZDR=1`. Caller headers cannot override this policy, regardless of casing. Document the working-directory, project-slug, and session metadata. Carries the taste-learning fix from #165 by @patlux, with the header-override review concern addressed ([#191](https://github.com/patlux/pi-commandcode-provider/pull/191)).
|
|
39
|
+
- Validate pasted `/login` API keys against the configured `COMMANDCODE_API_BASE` instead of always calling production, with a 15-second deadline even when fetch ignores cancellation. An explicitly empty base is preserved instead of silently sending the key to production. Carries the login-validation fix from #165 by @patlux ([#190](https://github.com/patlux/pi-commandcode-provider/pull/190)).
|
|
40
|
+
- Read ambient credentials through one shared reader for the Provider API, generate fallback, and quota commands. The generate fallback now follows the documented `.commandcode` → pi → `.omp` file order and accepts the `"command-code": "user_..."` string form. `PI_CODING_AGENT_DIR` redirects the pi slot without falling back to the default pi profile; `.commandcode` and `.omp` still resolve from `HOME`. Carries the credential-reader fix from #165 by @patlux ([#189](https://github.com/patlux/pi-commandcode-provider/pull/189)).
|
|
41
|
+
- Require the matching login state token before honoring OAuth callback errors, and reject the local development browser origin `http://localhost:3000`. Invalid callbacks leave the server waiting for the legitimate login. Carried forward from @patlux's #165 (`a918138`); callbacks that omit the state on cancellation now wait for the existing timeout and manual-key fallback instead of cancelling immediately ([#186](https://github.com/patlux/pi-commandcode-provider/pull/186)).
|
|
42
|
+
- Add reviewed zero display pricing for `stealth/crouton-alpha`, free up to 1,000 requests per day while the stealth preview lasts, with no fixed expiry published. Refresh the API/pricing snapshots to 96 models, verified on 2026-11-04. CLI capability metadata remains unchanged at `command-code@1.88.2`; Crouton keeps conservative text-only, non-reasoning defaults with a 65,536-token output limit and uses its advertised Chat Completions endpoint ([#188](https://github.com/patlux/pi-commandcode-provider/pull/188)).
|
|
43
|
+
- Report generate response-body stalls as timeouts instead of user cancellations, retrying only while no visible content has been emitted and the retry budget remains. Real user cancellations still abort without retry. Carried forward from @patlux's #165 (`cef7402`); the native Provider API transports are unchanged ([#187](https://github.com/patlux/pi-commandcode-provider/pull/187)).
|
|
44
|
+
- Add reviewed display pricing for `inclusionai/ling-3.1-flash-1019` after its free preview ended on 2026-11-03 at 16:00 UTC: $0.30 input / $0.90 output / $0.06 cache read per million tokens, with no cache-write charge. Remove the retired `:free` entry and its dated pricing guard, and refresh the 95-model snapshot against the Provider API. The existing `inclusionai/ling-3.1-flash` keeps its own list rates. The CLI still publishes no capability metadata for the 1019 model, so it retains conservative text-only, non-reasoning defaults with a 65,536-token output limit ([#185](https://github.com/patlux/pi-commandcode-provider/pull/185)).
|
|
45
|
+
- Refresh the capability snapshot pin to `command-code@1.88.2`; upstream reports no capability or output-limit changes ([#178](https://github.com/patlux/pi-commandcode-provider/pull/178)).
|
|
46
|
+
- Stabilize the abort regression test by cancelling after the first observed text delta, verifying iterator completion and upstream closure, and bounding failed-test teardown. Cover immediate and delayed mock responses; no runtime behavior change ([#196](https://github.com/patlux/pi-commandcode-provider/pull/196)).
|
|
47
|
+
|
|
48
|
+
### Contributors
|
|
49
|
+
|
|
50
|
+
- @patlux (Patrick Wozniak) — authored the nine auth, credential, privacy, transport, pricing-tier and diagnostic-redaction lots carried forward from #165 through #186, #187 and #189–#195.
|
|
51
|
+
- @pierreraby — reviewed and adapted the carries, contributed integration guards and tests, maintained model pricing, stabilized the abort test, and prepared this release.
|
|
52
|
+
|
|
5
53
|
## 0.7.11 - 2026-10-28
|
|
6
54
|
|
|
7
55
|
- Refresh the static capability snapshot to `command-code@1.88.1`, which publishes metadata for two models the CLI previously did not describe: `moonshotai/Kimi-K3.1-Pro` finally gains image input, reasoning, and selectable `low`/`high`/`max` efforts instead of the conservative text-only defaults it carried since 0.7.10, and the newly advertised `gpt-6.1-terra` arrives with image input, reasoning, and `low`/`medium`/`high`/`xhigh`/`max` efforts. Neither model publishes a model-specific output limit, so both keep the 65,536-token default. No other model metadata changed ([#175](https://github.com/patlux/pi-commandcode-provider/pull/175)).
|
|
@@ -19,8 +19,6 @@ npm run format:check
|
|
|
19
19
|
npm run test:unit
|
|
20
20
|
npm run test:models
|
|
21
21
|
npm run test:oauth
|
|
22
|
-
npm run test:abort
|
|
23
|
-
npm run test:stream
|
|
24
22
|
npm run test:pi-isolated
|
|
25
23
|
npm run test:pi-authenticated
|
|
26
24
|
npm run test:pi-local
|
|
@@ -45,32 +43,93 @@ Both commands accept additional pi arguments after `--`, for example `npm run pi
|
|
|
45
43
|
Run the transport-specific live tests with separate credentials:
|
|
46
44
|
|
|
47
45
|
```sh
|
|
48
|
-
COMMANDCODE_E2E_GO_API_KEY_FILE=/path/to/go-key npm run test:e2e:live:go
|
|
49
46
|
COMMANDCODE_E2E_GOAT_API_KEY_FILE=/path/to/goat-key npm run test:e2e:live:goat
|
|
50
47
|
COMMANDCODE_E2E_PROVIDER_API_KEY_FILE=/path/to/provider-key npm run test:e2e:live:provider
|
|
51
48
|
```
|
|
52
49
|
|
|
53
|
-
Use `npm run test:e2e:live:all` with the
|
|
50
|
+
Use `npm run test:e2e:live:all` with the GOAT and Provider file variables to run both entitled profiles sequentially. Store keys in a secret manager and export each one to a new mode-`0600` temporary file for the test; never add key files to the repository. Direct `*_API_KEY` variables are intended primarily for protected CI secrets.
|
|
54
51
|
|
|
55
52
|
### pi end-to-end
|
|
56
53
|
|
|
57
54
|
`tests/test-pi-local.mjs` runs the extension inside a real `pi` binary against a mock Command Code API, including every credential source (`/login` OAuth and API-key credentials, `--api-key`, env keys). It skips locally when `pi` is not on `PATH`; CI installs pi and runs it as part of `npm test` with `PI_LOCAL_REQUIRED=1`. Point `PI_BIN` at another pi executable to test against a specific version.
|
|
58
55
|
|
|
56
|
+
### Entrypoint static validation
|
|
57
|
+
|
|
58
|
+
`npm run typecheck` checks the host-independent source, unit tests, and maintenance
|
|
59
|
+
scripts. The extension entrypoint has a separate **required CI gate** against the
|
|
60
|
+
real declarations of the Pi package installed for the integration tests:
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
npm run typecheck:entrypoint -- "$(npm root -g)/@earendil-works/pi-coding-agent"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
For a non-npm/global installation, pass the installed package directory containing
|
|
67
|
+
Pi's `package.json` (not the CLI wrapper). If the optional Pi peers are already
|
|
68
|
+
resolvable from the checkout, the directory argument may be omitted. This command
|
|
69
|
+
fails when host declarations are missing; it never installs packages or silently
|
|
70
|
+
skips. It uses `tsconfig.entrypoint.json` and also compiles the positive/negative
|
|
71
|
+
contracts in `tests/types/entrypoint.ts`. No ambient host stubs, error baseline,
|
|
72
|
+
private host dependencies, or broad boundary casts stand in for the real types.
|
|
73
|
+
`skipLibCheck` is inherited from the unit project: upstream declaration internals
|
|
74
|
+
are not audited, but our source and its use of the host contracts are checked.
|
|
75
|
+
|
|
76
|
+
This static gate targets Pi's public declarations. Real Pi **and** Oh My Pi mock
|
|
77
|
+
integration tests remain necessary to cover runtime exports, loader aliases, and
|
|
78
|
+
Provider API entitlement and transport behavior; this does not claim an OMP declaration-level check.
|
|
79
|
+
|
|
59
80
|
### Oh My Pi compatibility
|
|
60
81
|
|
|
61
82
|
`tests/test-omp-compat.mjs` runs the extension inside a real `omp` binary against a mock Command Code API. It skips locally when `omp` is not on `PATH`; CI installs Oh My Pi and runs it as a required check with `OMP_COMPAT_REQUIRED=1`, so a change that only loads on pi fails CI instead of the next `omp plugin install`.
|
|
62
83
|
|
|
63
|
-
To run it locally, point `OMP_BIN` at an omp executable (
|
|
84
|
+
To run it locally, point `OMP_BIN` at an omp executable (OMP 18.16.0 requires Bun ≥ 1.4.4; check the installed version's engine requirements):
|
|
64
85
|
|
|
65
86
|
```sh
|
|
66
87
|
npm install -g @oh-my-pi/pi-coding-agent
|
|
67
88
|
OMP_BIN="$(npm prefix -g)/bin/omp" node tests/test-omp-compat.mjs
|
|
68
89
|
```
|
|
69
90
|
|
|
91
|
+
### Protocol and host contracts
|
|
92
|
+
|
|
93
|
+
`npm run test:host-protocols` checks the helper regressions, then runs available Pi
|
|
94
|
+
and OMP binaries against loopback mocks over Chat Completions, Responses and
|
|
95
|
+
Anthropic Messages. It verifies system instructions, reasoning replay (including
|
|
96
|
+
encrypted/signed reasoning), two tool-call/result pairs, and actual image payloads
|
|
97
|
+
on the follow-up request. Homes and credentials are synthetic and isolated; no
|
|
98
|
+
live API calls are made. Set `COMMANDCODE_CONTRACT_HOST=pi` or `omp` to select a
|
|
99
|
+
host. `PI_LOCAL_REQUIRED=1` and `OMP_COMPAT_REQUIRED=1` make missing selected hosts
|
|
100
|
+
fail instead of skip. `PI_BIN` and `OMP_BIN` select explicit binaries.
|
|
101
|
+
|
|
102
|
+
`npm run test:routing` covers persisted endpoint choices and private recovery
|
|
103
|
+
backups. `npm run test:routing-hosts` drives the real Pi and OMP RPC lifecycles:
|
|
104
|
+
command, catalog refresh, emitted wire, reasoning/tool follow-up, auto reset,
|
|
105
|
+
restart, malformed-file warning and explicit repair. It uses the same host
|
|
106
|
+
selection/required flags and bounded process helper as the protocol contracts.
|
|
107
|
+
Both suites run in `npm test`; the OMP CI job also requires the routing-host
|
|
108
|
+
suite, and the package smoke runner targets the installed artifact.
|
|
109
|
+
|
|
110
|
+
The fixtures depend on reasoning and image capabilities for DeepSeek V4.1 Flash,
|
|
111
|
+
Muse Spark 1.3 and Claude Sonnet 4.6. A preflight extension checks those catalog
|
|
112
|
+
capabilities, the common `high` thinking effort and routing rules in the tested
|
|
113
|
+
checkout or installed package before registering tools. Responses also checks that a long native item-ID suffix does
|
|
114
|
+
not leak into replayed call IDs.
|
|
115
|
+
|
|
116
|
+
Host timeouts signal the isolated POSIX process group with SIGTERM then SIGKILL,
|
|
117
|
+
including descendants that retain inherited pipes. On Windows only the direct
|
|
118
|
+
child is signalled. The helper normally waits for `close` and retains late output;
|
|
119
|
+
if stdio still has not closed after the final grace period, it destroys its read
|
|
120
|
+
pipes, unreferences the child and fails with cleanup explicitly unconfirmed.
|
|
121
|
+
This bounds the runner, not arbitrary descendants that escape the process group.
|
|
122
|
+
|
|
123
|
+
PR CI continues to test `@latest` hosts with the required Pi entrypoint gate and
|
|
124
|
+
Bun 1.4.4 for OMP. No older host baseline or weekly-only drift gate is introduced.
|
|
125
|
+
The package smoke runner also executes these contracts against the installed
|
|
126
|
+
artifact; see `RELEASE.md` for that separately authorized installation.
|
|
127
|
+
|
|
70
128
|
Before opening a PR, run:
|
|
71
129
|
|
|
72
130
|
```sh
|
|
73
131
|
npm test
|
|
132
|
+
npm run typecheck:entrypoint -- /path/to/installed/@earendil-works/pi-coding-agent
|
|
74
133
|
npm run format:check
|
|
75
134
|
git diff --check
|
|
76
135
|
```
|
|
@@ -7,6 +7,16 @@ A custom provider for [pi](https://github.com/earendil-works/pi) that connects t
|
|
|
7
7
|
|
|
8
8
|
> **Disclaimer:** This is an unofficial, community-maintained integration. It is not affiliated with, endorsed by, or supported by Command Code. You need your own Command Code account, API key, and a plan with Provider API access. Command Code's terms, availability, and pricing apply.
|
|
9
9
|
|
|
10
|
+
## Provider API access required
|
|
11
|
+
|
|
12
|
+
This extension requires [Provider API access](https://commandcode.ai/docs/provider). GOAT, Pro, Max, Team and Provider accounts with API entitlement use the documented inference endpoints. The Go plan does not include API access. A successful login or quota response does not establish inference entitlement.
|
|
13
|
+
|
|
14
|
+
A `403 upgrade_required` stops with an actionable error; the extension never retries the prompt on the internal `/alpha/generate` endpoint. There is no switch to restore that fallback. Endpoint overrides select a supported Provider API wire, not a way around plan restrictions.
|
|
15
|
+
|
|
16
|
+
If you previously used the Go fallback, use the official Command Code CLI within its supported plan, or an account with Provider API entitlement. After an entitlement change, retry a small request; if you changed accounts, run `/login` again and reload the host. Existing credentials, sessions and persisted endpoint choices are not deleted or migrated.
|
|
17
|
+
|
|
18
|
+
The Provider API-only rule here applies to **inference**. Authentication/key validation and read-only account/quota reporting still use internal account endpoints; they do not generate text or grant missing API access. These are not claimed to be documented Provider API routes. See the quota limitations below.
|
|
19
|
+
|
|
10
20
|
## Install
|
|
11
21
|
|
|
12
22
|
```sh
|
|
@@ -51,12 +61,14 @@ export COMMAND_CODE_API_KEY="user_..."
|
|
|
51
61
|
|
|
52
62
|
### Auth file
|
|
53
63
|
|
|
54
|
-
The provider also reads existing credentials from:
|
|
64
|
+
The provider also reads existing credentials from, in this order:
|
|
55
65
|
|
|
56
66
|
- `~/.commandcode/auth.json`
|
|
57
|
-
- `~/.pi/agent/auth.json`
|
|
67
|
+
- `~/.pi/agent/auth.json` (or `$PI_CODING_AGENT_DIR/auth.json` when pi runs with that variable)
|
|
58
68
|
- `~/.omp/agent/auth.json`
|
|
59
69
|
|
|
70
|
+
The Provider API path and the quota commands use the same ambient lookup, after any credentials supplied by the host. `PI_CODING_AGENT_DIR` redirects only the pi auth-file slot; the `.commandcode` and `.omp` paths still use `HOME`. Isolate `HOME` as well when a sandbox must not read those credentials.
|
|
71
|
+
|
|
60
72
|
Supported examples:
|
|
61
73
|
|
|
62
74
|
```json
|
|
@@ -96,9 +108,25 @@ The Provider API serves models on different wires, and `/provider/v1/models` adv
|
|
|
96
108
|
|
|
97
109
|
A model whose catalog entry omits `supported_endpoints` keeps Chat Completions, which every non-Claude model serves, so discovery keeps working when the field is absent. The selection is applied per model, so a catalog that mixes wires streams each model correctly.
|
|
98
110
|
|
|
111
|
+
### Persistent endpoint overrides
|
|
112
|
+
|
|
113
|
+
Use `/commandcode-endpoint <model-id> chat-completions` to select Chat Completions for one model, for example:
|
|
114
|
+
|
|
115
|
+
```txt
|
|
116
|
+
/commandcode-endpoint zai-org/GLM-5.3 chat-completions
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Use `responses` to select Responses where the catalog advertises it, or `auto` to remove that model's override and restore catalog routing. Claude models require `auto` (Anthropic Messages). Use the exact catalog model ID, without the host's `commandcode/` provider prefix. The command waits for the current turn to finish and affects subsequent requests; it never retries a partial stream on another endpoint. `/commandcode-status` and `/commandcode-diagnostics` show the effective model endpoint and whether it came from the catalog or a user override. Endpoint overrides apply only to Provider API requests and cannot grant missing plan access. This is a routing choice, not a guarantee of upstream capacity, throughput or caching.
|
|
120
|
+
|
|
121
|
+
Choices are stored in `commandcode-routing.json` inside the host agent directory, separate from the generated model cache. They survive refreshes, restarts and package updates. Do not edit the model cache. A malformed or unreadable routing file is ignored with a visible warning, so requests use catalog routing until repaired. Startup does not rewrite it. Run an explicit `/commandcode-endpoint` command to repair a malformed file: the invalid choices are replaced, and its previous contents are preserved in a mode-`0600` `commandcode-routing.json.invalid-*.bak` file in the same directory. An unreadable file is not overwritten; fix its permissions first. A syntactically valid choice that the current catalog no longer supports is rejected for that model; use `auto` to reset it.
|
|
122
|
+
|
|
123
|
+
Host/user compatibility settings are preserved when they are associated with the same wire as the request. Switching wires (including a catalog change) replaces stale compatibility flags with the new wire's defaults instead of merging them; an old host model must not carry Responses flags into Chat Completions. Models no longer in the catalog use the ID-based fallback, and status explicitly notes that stored endpoint choices are ignored until that model returns.
|
|
124
|
+
|
|
125
|
+
Changes made to the file externally require a reload (or a successful endpoint command). Commands within one host are serialized, but writes from separate host processes are not coordinated; use one host to change routing settings.
|
|
126
|
+
|
|
99
127
|
### Reasoning support
|
|
100
128
|
|
|
101
|
-
Reasoning capability and selectable effort levels follow the official CLI catalog independently. Models can therefore be marked as reasoning-capable even when Command Code chooses their depth automatically. Models with explicit effort support register a model-specific `thinkingLevelMap`, so pi and OMP expose only valid levels. For a few reasoning models the CLI catalog ships no effort levels although the endpoint accepts `reasoning_effort`; `src/commandcode-catalog-overrides.ts` adds a manual level set for those on top of the generated catalog (currently empty because upstream publishes every level). The catalog sync removes an override as soon as upstream publishes its own levels. Pi's native OpenAI- and Anthropic-compatible providers translate the selected level for Provider API accounts
|
|
129
|
+
Reasoning capability and selectable effort levels follow the official CLI catalog independently. Models can therefore be marked as reasoning-capable even when Command Code chooses their depth automatically. Models with explicit effort support register a model-specific `thinkingLevelMap`, so pi and OMP expose only valid levels. For a few reasoning models the CLI catalog ships no effort levels although the endpoint accepts `reasoning_effort`; `src/commandcode-catalog-overrides.ts` adds a manual level set for those on top of the generated catalog (currently empty because upstream publishes every level). The catalog sync removes an override as soon as upstream publishes its own levels. Pi's native OpenAI- and Anthropic-compatible providers translate the selected level for Provider API accounts.
|
|
102
130
|
|
|
103
131
|
List Command Code models from the terminal:
|
|
104
132
|
|
|
@@ -132,11 +160,12 @@ When a valid cache exists, the provider registers the cached catalog immediately
|
|
|
132
160
|
|
|
133
161
|
While pi is running, use these provider commands without restarting:
|
|
134
162
|
|
|
135
|
-
- `/commandcode-refresh` fetches and re-registers the current model catalog. Overlapping refreshes are coalesced, and a failed refresh keeps the last valid catalog active.
|
|
136
|
-
- `/commandcode-status` shows redacted discovery diagnostics, including the source, model count, timestamps, cache path, endpoint, and warning. If a Responses reasoning event has an unsupported shape, a separate stream warning
|
|
163
|
+
- `/commandcode-refresh` fetches and re-registers the current model catalog, and resets the latest transport status. Every inference attempt uses the Provider API; entitlement denials are not cached. Overlapping refreshes are coalesced, and a failed refresh keeps the last valid catalog active.
|
|
164
|
+
- `/commandcode-status` shows redacted discovery diagnostics, including the source, model count, timestamps, cache path, endpoint, and warning. Transport status is `unknown` until the latest inference attempt completes successfully; a denial remains `unknown`, not proof of API entitlement. If a Responses reasoning event has an unsupported shape, a separate stream warning is cleared when the next Responses HTTP request starts, before its outcome is known. Requests on Chat Completions or Messages do not clear it. The slot is shared by concurrent Responses requests, so a late warning from an older in-flight response can still replace it. The event is preserved unchanged; no reasoning text is included in the warning.
|
|
165
|
+
- `/commandcode-diagnostics` shows a shareable support report: plugin/host version, CLI snapshot, selected transport and wire, capability provenance, price status, and the latest request's HTTP status, attempts, outcome, first body-chunk latency and longest gap. It keeps only one request summary in memory. It never collects prompts, tool content, credentials, raw errors, account data or configured local paths. Model identifiers come from the host; recognized path-/credential-shaped values are redacted, but custom names can still identify your setup. Request IDs are included only when they match a bounded hexadecimal/UUID format. Timing is measured between body chunks, not tokens; first-chunk latency may include an error response. A request started most recently owns the report even if another request finishes later. Retry counts are scoped to that stream call, not host-level retries. Review the report before sharing it.
|
|
137
166
|
- `/commandcode-quota` shows your Command Code account usage and quota in a dashboard-style layout: credits remaining and used with a percentage, monthly/purchased/free sources, the current plan, available usage totals, the API key name, and the 5-hour and weekly usage windows.
|
|
138
167
|
|
|
139
|
-
|
|
168
|
+
As an explicit exception to the inference policy, the `commandcode-quota` command reads from the internal Command Code alpha usage endpoints (the same ones the `cmd` CLI `/usage` command uses): `whoami`, `billing/credits`, `billing/subscriptions`, and `usage/summary`. It authenticates with the same API key the provider already uses. These requests are GET-only account/usage reads, not an inference fallback. Their success says nothing about Provider API entitlement; the undocumented schemas and availability may change independently. If the command cannot reach those endpoints or an endpoint schema changes, unavailable sections are reported explicitly instead of being displayed as zero usage. Output is plain text (via `ui.notify`) so it works across pi and compatible hosts such as OMP.
|
|
140
169
|
|
|
141
170
|
On Oh My Pi the provider also registers an OMP usage provider through the `usage` field of `pi.registerProvider`, reading the same endpoints with the same credentials. It supplies the account's 5-hour and weekly usage windows, credits remaining and used against the billing-period pool, and the current plan to the host's usage surfaces, and it follows the same rule for sections the API does not report. pi has no such field and ignores it.
|
|
142
171
|
|
|
@@ -144,24 +173,24 @@ Set `CMD_ZDR=1` to send Command Code's documented `x-cmd-zdr: 1` zero-data-reten
|
|
|
144
173
|
|
|
145
174
|
The following environment variables are intended for tests, local mocks, and compatible API endpoints:
|
|
146
175
|
|
|
147
|
-
- `COMMANDCODE_API_BASE`
|
|
176
|
+
- `COMMANDCODE_API_BASE` (Provider API base; the alpha endpoints used by `/login` key validation and `/commandcode-quota` are derived from it without the `/provider/v1` suffix; an explicitly empty value does not fall back to production)
|
|
148
177
|
- `COMMANDCODE_MODELS_URL`
|
|
149
178
|
- `COMMANDCODE_MODELS_CACHE`
|
|
150
179
|
- `COMMANDCODE_MODELS_TIMEOUT_MS` (defaults to 10 seconds; invalid or non-positive values use the default)
|
|
151
180
|
|
|
152
181
|
## Image input
|
|
153
182
|
|
|
154
|
-
The provider advertises image input only for models marked with the `image` input modality in the official Command Code CLI model catalog. The capability snapshot currently follows `command-code@1.88.
|
|
183
|
+
The provider advertises image input only for models marked with the `image` input modality in the official Command Code CLI model catalog. The capability snapshot currently follows `command-code@1.88.3`; unknown models default to text-only until their upstream metadata is reviewed. A daily GitHub Actions job synchronizes the CLI version, image capabilities, reasoning flags, reasoning efforts, and model-specific output limits with the latest published CLI package, also dropping manual effort overrides that upstream has published itself, and opens or updates a reviewable pull request when they change. Pricing remains manually reviewed because temporary promotions and long-context tiers require explicit review.
|
|
155
184
|
|
|
156
185
|
For vision-capable models, Pi's native provider adapters forward image blocks from user messages and tool results using the documented OpenAI or Anthropic message schema. Unknown and text-only models remain marked text-only in Pi.
|
|
157
186
|
|
|
158
|
-
The
|
|
187
|
+
The native host adapter uses the registered model's input capabilities on the Provider API. Host overrides can advertise image support before the catalog catches up, but cannot grant missing model or plan access.
|
|
159
188
|
|
|
160
189
|
## Pricing display
|
|
161
190
|
|
|
162
|
-
The Command Code Provider API does not currently include prices in its model catalog. This extension therefore keeps a static table for models with known prices so pi and OMP can display estimated request costs. DeepSeek V4 uses time-dependent rates: the extension applies the documented 2x peak rates on weekdays from 01:00-04:00 and 06:00-10:00 UTC, and off-peak rates at all other times, including the entire weekend.
|
|
191
|
+
The Command Code Provider API does not currently include prices in its model catalog. This extension therefore keeps a static table for models with known prices so pi and OMP can display estimated request costs. DeepSeek V4 uses time-dependent rates: the extension applies the documented 2x peak rates on weekdays from 01:00-04:00 and 06:00-10:00 UTC, and off-peak rates at all other times, including the entire weekend. These rates are selected at request time on the native Provider API path.
|
|
163
192
|
|
|
164
|
-
Models missing from that table display zero cost in pi. This does **not** mean that Command Code will bill the request at zero. The Command Code Usage page remains authoritative for each request. Check the current [Command Code pricing](https://commandcode.ai/docs/resources/pricing-limits) before relying on the displayed value.
|
|
193
|
+
Models missing from that table display zero cost in pi. The provider warns once per selected unpriced model per load, and diagnostics distinguishes an unknown price from an explicitly free model. An expired tracked promotion is marked `review-required`; the snapshot verification date is always shown. This does **not** mean that Command Code will bill the request at zero. The Command Code Usage page remains authoritative for each request. Check the current [Command Code pricing](https://commandcode.ai/docs/resources/pricing-limits) before relying on the displayed value.
|
|
165
194
|
|
|
166
195
|
A read-only companion check, `npm run check:commandcode-pricing`, compares the live Provider API catalog and the official pricing page with the static table. It never writes prices: exit code `0` means every compared rate matches, `1` means drift or an expired promotion needs manual review, and `2` means the price could not be checked. The daily catalog workflow and applicable pull requests publish the Markdown report to the GitHub Actions summary. The pricing page has no public pricing API, so the check parses its private Next.js Flight payload; if that format changes the check fails loudly instead of reporting a false pass, and prices stay manually reviewed.
|
|
167
196
|
|
|
@@ -209,26 +238,23 @@ Both commands accept additional pi arguments after `--`, for example `npm run pi
|
|
|
209
238
|
|
|
210
239
|
### Live transport tests
|
|
211
240
|
|
|
212
|
-
Keep
|
|
241
|
+
Keep GOAT- and Provider-plan test keys in separate secret-manager entries. Pass them through protected files so the keys do not enter shell history:
|
|
213
242
|
|
|
214
243
|
```sh
|
|
215
|
-
COMMANDCODE_E2E_GO_API_KEY_FILE=/path/to/go-key \
|
|
216
|
-
npm run test:e2e:live:go
|
|
217
|
-
|
|
218
244
|
COMMANDCODE_E2E_GOAT_API_KEY_FILE=/path/to/goat-key \
|
|
219
245
|
npm run test:e2e:live:goat
|
|
220
246
|
|
|
221
247
|
COMMANDCODE_E2E_PROVIDER_API_KEY_FILE=/path/to/provider-key \
|
|
222
248
|
npm run test:e2e:live:provider
|
|
223
249
|
|
|
224
|
-
|
|
250
|
+
COMMANDCODE_E2E_PROVIDER_API_KEY_FILE=/path/to/provider-key \
|
|
225
251
|
COMMANDCODE_E2E_GOAT_API_KEY_FILE=/path/to/goat-key \
|
|
226
252
|
npm run test:e2e:live:all
|
|
227
253
|
```
|
|
228
254
|
|
|
229
|
-
Each profile runs with an isolated Pi agent directory and asserts transport selection, reasoning across turns, quota plan identity, abort handling, tool calls, and the packed npm artifact.
|
|
255
|
+
Each profile runs with an isolated Pi agent directory and asserts transport selection, reasoning across turns, quota plan identity, abort handling, tool calls, and the packed npm artifact. Both profiles must select `provider`; GOAT also completes a live vision request. Go entitlement denial and zero internal-generation requests are covered by isolated mock Pi/OMP tests, not paid probes. The profile-specific `*_API_KEY` environment variables are also supported for CI secrets, but key files are preferred for local use.
|
|
230
256
|
|
|
231
|
-
The
|
|
257
|
+
The Provider profile defaults to DeepSeek V4 Flash; GOAT defaults to Grok 4.6 because its Provider API stream exposes reasoning consistently across consecutive turns. Override them with `COMMANDCODE_E2E_GOAT_MODEL` or `COMMANDCODE_E2E_PROVIDER_MODEL`. The GOAT vision phase defaults to GPT-5.6 Luna and can be overridden with `COMMANDCODE_E2E_GOAT_VISION_MODEL`. A successful live Anthropic `/provider/v1/messages` test requires a paid account whose plan includes the selected Claude model.
|
|
232
258
|
|
|
233
259
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for local setup and tests. See [RELEASE.md](RELEASE.md) for the release process.
|
|
234
260
|
|
|
@@ -56,6 +56,31 @@ GitHub collaborators can release through this workflow without personal npm publ
|
|
|
56
56
|
|
|
57
57
|
These checks prevent accidental releases from the wrong commit; they are not a sandbox against a trusted writer who can modify workflows. Repository, tag and environment permissions remain the trust boundary.
|
|
58
58
|
|
|
59
|
+
## Maintenance review and release cadence
|
|
60
|
+
|
|
61
|
+
Review open maintenance alerts and unreleased fixes at least weekly. A calendar reminder or a green catalog PR is not release authorization. Prioritize broken authentication/transport, missing paid-model pricing, and host compatibility regressions; propose a patch release when a verified user-facing fix is ready rather than waiting for unrelated features.
|
|
62
|
+
|
|
63
|
+
The daily catalog workflow reports capability-parser drift separately from official-pricing drift. Two consecutive failed scheduled/manual default-branch runs create or reopen one bot-owned issue labeled `maintenance-alert`. Further failures update that issue; a successful run comments once and closes it without replacing the failing-run evidence. Do not remove the reserved label or deduplication marker. Fork/PR runs, non-default branches and canceled runs do not trigger alerts; a canceled predecessor breaks the failure streak. Only `failure` and `timed_out` count as failures.
|
|
64
|
+
|
|
65
|
+
Alert decisions use the event as the current run even if the listing API is behind, and reject known newer completed runs or newer attempts of the same run (including in-progress reruns). API reads and issue writes are not transactional; the serialized alert job is not a guarantee against every concurrent upstream run or delayed API observation. History scans are bounded to ten pages of 100 items per scheduled/manual query, issue query or recovery-comment query. The run queries exclude PR events and stop early on a known newer run. Otherwise they scan the bounded history rather than assuming rerun ordering. Reaching a full limit fails the alert job without guessing from truncated history; investigate manually. Watch the **Maintenance alerts** workflow itself for API/permission/limit errors. The bot creates the reserved label on the first incident if it is missing; it does not change repository settings.
|
|
66
|
+
|
|
67
|
+
Two operational limits need explicit triage:
|
|
68
|
+
|
|
69
|
+
- **Delayed recovery:** if an incident is open and a success run N is followed by a completed, isolated failure N+1 before N's alert is processed, the success event is stale and N+1 is below the two-failure threshold. Neither event closes the old incident. It remains open until a later successful event is actually processed; there is no guaranteed one-day recovery deadline. Inspect the linked run history for the current state rather than treating the open issue as proof of an uninterrupted failure streak. The bot does not close an incident merely because the current failure is below threshold.
|
|
70
|
+
- **Reserved label loss:** deleting `maintenance-alert`, or removing it from the incident, hides that issue from the bot's label-filtered search. Two subsequent failures can create a duplicate, and later recovery only closes the labeled issue; the unlabeled original can remain open. Recreating the label definition alone does not restore the original issue's label. If this happens, inspect the marked bot-owned incidents, restore the label on the intended incident, and reconcile any duplicates manually before relying on automation again. Keep the failing-run evidence when reconciling; do not broaden the bot's search or edit human-authored issues to silence an alert.
|
|
71
|
+
|
|
72
|
+
This policy currently covers catalog maintenance only. Pi/OMP `@latest` tests remain required in PR CI; there is no weekly-host workflow or older pinned-host baseline introduced here. Investigate linked catalog/pricing reports; do not silence alerts by accepting guessed prices or loosening parser checks.
|
|
73
|
+
|
|
74
|
+
For every proposed release, record:
|
|
75
|
+
|
|
76
|
+
- Which merged PRs and issues the release includes, with contributor credit.
|
|
77
|
+
- Whether live catalog/pricing checks pass; distinguish expected upstream drift from code failures. Review unknown prices and expired promotions explicitly.
|
|
78
|
+
- Host versions actually tested, local versus packed-package results, and any separately authorized live checks. Mock tests do not prove upstream performance or plan access.
|
|
79
|
+
- Any migration requirements and known limitations. Breaking entitlement/routing changes belong in a separately approved minor-version release while the package is pre-1.0, with a clearly labeled migration notice; do not slip them into a routine patch.
|
|
80
|
+
- The requested version/channel and release authorization before executing the existing tag/OIDC process.
|
|
81
|
+
|
|
82
|
+
After publication, use the completion checklist below before reporting an issue as released. Keep “merged”, “tested from source” and “available on npm” distinct. This maintenance policy carries the contribution from [Patrick Wozniak (@patlux), #163](https://github.com/patlux/pi-commandcode-provider/pull/163), adapted to the current CI.
|
|
83
|
+
|
|
59
84
|
## Prepare a release PR
|
|
60
85
|
|
|
61
86
|
Confirm the requested version and channel, a clean/current checkout, the canonical repository and the maintainer's own GitHub identity. Record the current npm dist-tags and latest stable GitHub Release so prerelease verification can prove they were preserved:
|