@herbertgao/pi-extensions 2026.11.3 → 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.
Files changed (203) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +7 -7
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +33 -5
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +72 -17
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +10 -2
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +16 -7
  11. package/node_modules/@herbertgao/pi-cc-extensions/package.json +7 -5
  12. package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +92 -0
  13. package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +92 -0
  14. package/node_modules/pi-commandcode-provider/CHANGELOG.md +27 -0
  15. package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +64 -5
  16. package/node_modules/pi-commandcode-provider/README.md +40 -26
  17. package/node_modules/pi-commandcode-provider/RELEASE.md +25 -0
  18. package/node_modules/pi-commandcode-provider/index.ts +212 -38
  19. package/node_modules/pi-commandcode-provider/package.json +9 -8
  20. package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +6 -13
  21. package/node_modules/pi-commandcode-provider/scripts/typecheck-entrypoint.mjs +88 -0
  22. package/node_modules/pi-commandcode-provider/src/api-key.ts +43 -2
  23. package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +1 -1
  24. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
  25. package/node_modules/pi-commandcode-provider/src/cost.ts +3 -37
  26. package/node_modules/pi-commandcode-provider/src/diagnostics.ts +215 -0
  27. package/node_modules/pi-commandcode-provider/src/oauth.ts +1 -1
  28. package/node_modules/pi-commandcode-provider/src/quota-command.ts +1 -1
  29. package/node_modules/pi-commandcode-provider/src/routing.ts +166 -0
  30. package/node_modules/pi-commandcode-provider/src/runtime.ts +15 -9
  31. package/node_modules/pi-commandcode-provider/src/transport.ts +79 -85
  32. package/node_modules/pi-commandcode-provider/src/types.ts +20 -39
  33. package/node_modules/pi-commandcode-provider/src/usage.ts +1 -1
  34. package/node_modules/pi-lens/CHANGELOG-USER.md +31 -0
  35. package/node_modules/pi-lens/CHANGELOG.md +178 -0
  36. package/node_modules/pi-lens/README.md +2 -1
  37. package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -1
  38. package/node_modules/pi-lens/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
  39. package/node_modules/pi-lens/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
  40. package/node_modules/pi-lens/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
  41. package/node_modules/pi-lens/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
  42. package/node_modules/pi-lens/dist/chunk-4ENEJHF4.js +198 -0
  43. package/node_modules/pi-lens/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
  44. package/node_modules/pi-lens/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
  45. package/node_modules/pi-lens/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
  46. package/node_modules/pi-lens/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
  47. package/node_modules/pi-lens/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
  48. package/node_modules/pi-lens/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
  49. package/node_modules/pi-lens/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
  50. package/node_modules/pi-lens/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
  51. package/node_modules/pi-lens/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
  52. package/node_modules/pi-lens/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
  53. package/node_modules/pi-lens/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
  54. package/node_modules/pi-lens/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
  55. package/node_modules/pi-lens/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
  56. package/node_modules/pi-lens/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
  57. package/node_modules/pi-lens/dist/chunk-DGKFWQK4.js +23 -0
  58. package/node_modules/pi-lens/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
  59. package/node_modules/pi-lens/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
  60. package/node_modules/pi-lens/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
  61. package/node_modules/pi-lens/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
  62. package/node_modules/pi-lens/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
  63. package/node_modules/pi-lens/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
  64. package/node_modules/pi-lens/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
  65. package/node_modules/pi-lens/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
  66. package/node_modules/pi-lens/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
  67. package/node_modules/pi-lens/dist/chunk-H6FLQ5NW.js +28 -0
  68. package/node_modules/pi-lens/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
  69. package/node_modules/pi-lens/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
  70. package/node_modules/pi-lens/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
  71. package/node_modules/pi-lens/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
  72. package/node_modules/pi-lens/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
  73. package/node_modules/pi-lens/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
  74. package/node_modules/pi-lens/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
  75. package/node_modules/pi-lens/dist/chunk-KR5VGMVT.js +25 -0
  76. package/node_modules/pi-lens/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
  77. package/node_modules/pi-lens/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
  78. package/node_modules/pi-lens/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
  79. package/node_modules/pi-lens/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
  80. package/node_modules/pi-lens/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
  81. package/node_modules/pi-lens/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
  82. package/node_modules/pi-lens/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
  83. package/node_modules/pi-lens/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
  84. package/node_modules/pi-lens/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
  85. package/node_modules/pi-lens/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
  86. package/node_modules/pi-lens/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
  87. package/node_modules/pi-lens/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
  88. package/node_modules/pi-lens/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
  89. package/node_modules/pi-lens/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
  90. package/node_modules/pi-lens/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
  91. package/node_modules/pi-lens/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
  92. package/node_modules/pi-lens/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
  93. package/node_modules/pi-lens/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
  94. package/node_modules/pi-lens/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
  95. package/node_modules/pi-lens/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
  96. package/node_modules/pi-lens/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
  97. package/node_modules/pi-lens/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
  98. package/node_modules/pi-lens/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
  99. package/node_modules/pi-lens/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
  100. package/node_modules/pi-lens/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
  101. package/node_modules/pi-lens/dist/chunk-Q6JQKWPK.js +25 -0
  102. package/node_modules/pi-lens/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
  103. package/node_modules/pi-lens/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
  104. package/node_modules/pi-lens/dist/chunk-QJJKOHLH.js +57 -0
  105. package/node_modules/pi-lens/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
  106. package/node_modules/pi-lens/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
  107. package/node_modules/pi-lens/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
  108. package/node_modules/pi-lens/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
  109. package/node_modules/pi-lens/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
  110. package/node_modules/pi-lens/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
  111. package/node_modules/pi-lens/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
  112. package/node_modules/pi-lens/dist/chunk-T5QSLSMM.js +50 -0
  113. package/node_modules/pi-lens/dist/chunk-TGQDAG4B.js +88 -0
  114. package/node_modules/pi-lens/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
  115. package/node_modules/pi-lens/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
  116. package/node_modules/pi-lens/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
  117. package/node_modules/pi-lens/dist/chunk-TYHPVE5H.js +25 -0
  118. package/node_modules/pi-lens/dist/chunk-UAKO2M6B.js +73 -0
  119. package/node_modules/pi-lens/dist/chunk-UC5AXW5Z.js +20 -0
  120. package/node_modules/pi-lens/dist/chunk-UTJP6WOS.js +28 -0
  121. package/node_modules/pi-lens/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
  122. package/node_modules/pi-lens/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
  123. package/node_modules/pi-lens/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
  124. package/node_modules/pi-lens/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
  125. package/node_modules/pi-lens/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
  126. package/node_modules/pi-lens/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
  127. package/node_modules/pi-lens/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
  128. package/node_modules/pi-lens/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
  129. package/node_modules/pi-lens/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
  130. package/node_modules/pi-lens/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
  131. package/node_modules/pi-lens/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
  132. package/node_modules/pi-lens/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
  133. package/node_modules/pi-lens/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
  134. package/node_modules/pi-lens/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
  135. package/node_modules/pi-lens/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
  136. package/node_modules/pi-lens/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
  137. package/node_modules/pi-lens/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
  138. package/node_modules/pi-lens/dist/chunk-ZD4KVFXI.js +234 -0
  139. package/node_modules/pi-lens/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
  140. package/node_modules/pi-lens/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
  141. package/node_modules/pi-lens/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
  142. package/node_modules/pi-lens/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
  143. package/node_modules/pi-lens/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
  144. package/node_modules/pi-lens/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
  145. package/node_modules/pi-lens/dist/index.js +4910 -4218
  146. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +12 -17
  147. package/node_modules/pi-lens/dist/mcp/cli.js +41 -42
  148. package/node_modules/pi-lens/dist/mcp/server.js +1451 -648
  149. package/node_modules/pi-lens/dist/mcp/worker.js +59 -60
  150. package/node_modules/pi-lens/dist/probes/installer.js +17 -19
  151. package/node_modules/pi-lens/docs/agent-tools.md +40 -8
  152. package/node_modules/pi-lens/docs/analysisall.md +1 -1
  153. package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +7 -5
  154. package/node_modules/pi-lens/docs/configuration.md +51 -9
  155. package/node_modules/pi-lens/docs/defect-shapes.md +52 -3
  156. package/node_modules/pi-lens/docs/environment-variables.md +18 -1
  157. package/node_modules/pi-lens/docs/features.md +12 -5
  158. package/node_modules/pi-lens/docs/globalconfig.md +11 -3
  159. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +9 -2
  160. package/node_modules/pi-lens/docs/invariants/session-telemetry.md +2 -2
  161. package/node_modules/pi-lens/docs/language-coverage.md +1 -0
  162. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +57 -35
  163. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +4 -1
  164. package/node_modules/pi-lens/docs/merge-queue-rollout.md +10 -8
  165. package/node_modules/pi-lens/docs/module-report-read-symbol.md +34 -23
  166. package/node_modules/pi-lens/docs/pi-lens-fixer.md +11 -1
  167. package/node_modules/pi-lens/docs/pi-lens-investigator.md +3 -0
  168. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +15 -7
  169. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +1 -1
  170. package/node_modules/pi-lens/docs/pi-lens-subagent.md +13 -0
  171. package/node_modules/pi-lens/docs/public-api-stability.md +39 -5
  172. package/node_modules/pi-lens/docs/release-qa-baseline.md +7 -4
  173. package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +11 -2
  174. package/node_modules/pi-lens/docs/servercapabilities.md +3 -1
  175. package/node_modules/pi-lens/docs/settings.md +2 -2
  176. package/node_modules/pi-lens/docs/word-index.md +3 -2
  177. package/node_modules/pi-lens/package.json +8 -3
  178. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
  179. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
  180. package/node_modules/pi-lens/scripts/download-grammars.js +3 -2
  181. package/node_modules/pi-lens/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
  182. package/node_modules/pi-provider-qoder/dist/index.js +473 -62
  183. package/node_modules/pi-provider-qoder/package.json +1 -1
  184. package/package.json +10 -8
  185. package/node_modules/pi-commandcode-provider/src/converters.ts +0 -419
  186. package/node_modules/pi-commandcode-provider/src/core.ts +0 -861
  187. package/node_modules/pi-commandcode-provider/src/json-schema.ts +0 -417
  188. package/node_modules/pi-commandcode-provider/src/transcript.ts +0 -56
  189. package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +0 -31
  190. package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +0 -27
  191. package/node_modules/pi-lens/dist/chunk-447YZL4S.js +0 -25
  192. package/node_modules/pi-lens/dist/chunk-565VRUP4.js +0 -136
  193. package/node_modules/pi-lens/dist/chunk-57X2CDRX.js +0 -49
  194. package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +0 -27
  195. package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +0 -58
  196. package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +0 -22
  197. package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +0 -89
  198. package/node_modules/pi-lens/dist/chunk-U3AS2FR6.js +0 -106
  199. package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +0 -27
  200. package/node_modules/pi-lens/dist/chunk-WQV6BI4Q.js +0 -48
  201. package/node_modules/pi-lens/dist/chunk-YHGYAEFH.js +0 -443
  202. package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +0 -74
  203. package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +0 -30
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "https://pi.dev/schemas/theme.schema.json",
3
+ "name": "cc-light-hc",
4
+ "appearance": "light",
5
+ "vars": {
6
+ "fg": "#1e252a",
7
+ "fgMuted": "#3e4a56",
8
+ "fgSubtle": "#46525e",
9
+ "canvas": "#ffffff",
10
+ "canvasSubtle": "#d6e1f1",
11
+ "canvasInset": "#e3ebf5",
12
+ "border": "#7391c2",
13
+ "borderMuted": "#a8bdd9",
14
+ "blue": "#0058ad",
15
+ "blueBright": "#004776",
16
+ "green": "#005a16",
17
+ "red": "#a81417",
18
+ "redSoft": "#9b1b1f",
19
+ "yellow": "#765300",
20
+ "orange": "#843f00",
21
+ "orangeSoft": "#663600",
22
+ "purple": "#65339c",
23
+ "pink": "#931662",
24
+ "cyan": "#005359",
25
+ "selection": "#c5d6ee",
26
+ "diffAddBg": "#c3dcd0",
27
+ "diffDelBg": "#f0d5d8"
28
+ },
29
+ "colors": {
30
+ "accent": "blue",
31
+ "border": "border",
32
+ "borderAccent": "blue",
33
+ "borderMuted": "borderMuted",
34
+ "success": "green",
35
+ "error": "#6f0307",
36
+ "warning": "yellow",
37
+ "muted": "fgMuted",
38
+ "dim": "#4e5966",
39
+ "text": "#0a0f14",
40
+ "thinkingText": "#262e36",
41
+ "selectedBg": "selection",
42
+ "scrollbarTrack": "borderMuted",
43
+ "scrollbarThumb": "#5d84b8",
44
+ "searchMatchBg": "#f3e4b0",
45
+ "searchMatchText": "fg",
46
+ "userMessageBg": "#8ecdfa",
47
+ "userMessageText": "#0a0f14",
48
+ "customMessageBg": "#c5d3e6",
49
+ "customMessageText": "fgMuted",
50
+ "customMessageLabel": "blue",
51
+ "toolPendingBg": "canvasSubtle",
52
+ "toolSuccessBg": "#8ce3b8",
53
+ "toolErrorBg": "#ffbdba",
54
+ "toolTitle": "#0a0f14",
55
+ "toolOutput": "#262e36",
56
+ "mdHeading": "#00294f",
57
+ "mdLink": "#003263",
58
+ "mdLinkUrl": "#262e36",
59
+ "mdCode": "#00294f",
60
+ "mdCodeBlock": "#0a0f14",
61
+ "mdCodeBlockBorder": "#2f4d75",
62
+ "mdQuote": "#262e36",
63
+ "mdQuoteBorder": "#4a6d9e",
64
+ "mdHr": "#2f4d75",
65
+ "mdListBullet": "#00294f",
66
+ "toolDiffAdded": "green",
67
+ "toolDiffRemoved": "red",
68
+ "toolDiffContext": "fgMuted",
69
+ "syntaxComment": "#262e36",
70
+ "syntaxKeyword": "#6f0307",
71
+ "syntaxFunction": "#3f1a66",
72
+ "syntaxVariable": "#552800",
73
+ "syntaxString": "#00294f",
74
+ "syntaxNumber": "#00294f",
75
+ "syntaxType": "#522500",
76
+ "syntaxOperator": "#6f0307",
77
+ "syntaxPunctuation": "#0a0f14",
78
+ "thinkingOff": "fgMuted",
79
+ "thinkingMinimal": "fgSubtle",
80
+ "thinkingLow": "blue",
81
+ "thinkingMedium": "blue",
82
+ "thinkingHigh": "blueBright",
83
+ "thinkingXhigh": "cyan",
84
+ "thinkingMax": "cyan",
85
+ "bashMode": "green"
86
+ },
87
+ "export": {
88
+ "pageBg": "#f4f7fb",
89
+ "cardBg": "canvasSubtle",
90
+ "infoBg": "#d0dff2"
91
+ }
92
+ }
@@ -2,6 +2,33 @@
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
+
5
32
  ## 0.7.12 - 2026-11-04
6
33
 
7
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)).
@@ -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 Go and GOAT file variables to run both subscription transports 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.
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 (Oh My Pi needs Bun ≥ 1.3.14):
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
@@ -57,7 +67,7 @@ The provider also reads existing credentials from, in this order:
57
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
 
60
- Both transports 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.
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.
61
71
 
62
72
  Supported examples:
63
73
 
@@ -98,9 +108,25 @@ The Provider API serves models on different wires, and `/provider/v1/models` adv
98
108
 
99
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.
100
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
+
101
127
  ### Reasoning support
102
128
 
103
- 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; the existing Command Code generate transport sends the matching `reasoning_effort` for Go 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.
104
130
 
105
131
  List Command Code models from the terminal:
106
132
 
@@ -134,26 +160,17 @@ When a valid cache exists, the provider registers the cached catalog immediately
134
160
 
135
161
  While pi is running, use these provider commands without restarting:
136
162
 
137
- - `/commandcode-refresh` fetches and re-registers the current model catalog, and forgets the probed transport so the next request tries the Provider API again (for example after upgrading a Go account). Overlapping refreshes are coalesced, and a failed refresh keeps the last valid catalog active.
138
- - `/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 is cleared when the next Responses HTTP request starts, before its outcome is known. Requests on Chat Completions, Messages, or generate 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.
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.
139
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.
140
167
 
141
- The `commandcode-quota` command reads from the 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. 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.
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.
142
169
 
143
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.
144
171
 
145
172
  Set `CMD_ZDR=1` to send Command Code's documented `x-cmd-zdr: 1` zero-data-retention header. The legacy `COMMANDCODE_ZDR=1` alias remains supported.
146
173
 
147
- ### Request metadata on the generate transport
148
-
149
- The legacy `/alpha/generate` fallback used by Go accounts mirrors the official CLI's request shape, which includes metadata the Provider API path does not send:
150
-
151
- - the absolute working directory (`config.workingDir`) and a slug derived from it (`x-project-slug`);
152
- - the host session id (`x-session-id`) and, when it is a UUID, the same value as `threadId`;
153
- - `x-taste-learning`, the CLI's opt-in for Command Code's server-side taste learning. The CLI sends its `tasteLearning` setting (default on); this extension never reads the learned profile back, so it sends `false` unless `COMMANDCODE_TASTE_LEARNING=1` is set, and always `false` under `CMD_ZDR=1` or `COMMANDCODE_ZDR=1`. Caller headers cannot override this policy.
154
-
155
- The dedicated local-files, git-state, memory, and skills request fields stay empty. Conversation messages, tool results, system prompts, and tool definitions are still sent as required for inference.
156
-
157
174
  The following environment variables are intended for tests, local mocks, and compatible API endpoints:
158
175
 
159
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)
@@ -163,17 +180,17 @@ The following environment variables are intended for tests, local mocks, and com
163
180
 
164
181
  ## Image input
165
182
 
166
- 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.2`; 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.
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.
167
184
 
168
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.
169
186
 
170
- The legacy generate transport resolves image support from the host's `model.input` when the host supplies it, and falls back to the capability snapshot otherwise. Because the snapshot is generated from a single CLI release, a host that marks a model as `["text", "image"]` — for example through a `models.yml` or `models.json` model override — can send images on both transports before the catalog catches up. A host that narrows a catalogued vision model to text is likewise honored.
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.
171
188
 
172
189
  ## Pricing display
173
190
 
174
- 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. The same request-time selection is used by the native Provider API path and the legacy generate fallback.
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.
175
192
 
176
- 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.
177
194
 
178
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.
179
196
 
@@ -221,26 +238,23 @@ Both commands accept additional pi arguments after `--`, for example `npm run pi
221
238
 
222
239
  ### Live transport tests
223
240
 
224
- Keep Go-, GOAT-, and optional Provider-plan test keys in separate secret-manager entries. Pass them through protected files so the keys do not enter shell history:
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:
225
242
 
226
243
  ```sh
227
- COMMANDCODE_E2E_GO_API_KEY_FILE=/path/to/go-key \
228
- npm run test:e2e:live:go
229
-
230
244
  COMMANDCODE_E2E_GOAT_API_KEY_FILE=/path/to/goat-key \
231
245
  npm run test:e2e:live:goat
232
246
 
233
247
  COMMANDCODE_E2E_PROVIDER_API_KEY_FILE=/path/to/provider-key \
234
248
  npm run test:e2e:live:provider
235
249
 
236
- COMMANDCODE_E2E_GO_API_KEY_FILE=/path/to/go-key \
250
+ COMMANDCODE_E2E_PROVIDER_API_KEY_FILE=/path/to/provider-key \
237
251
  COMMANDCODE_E2E_GOAT_API_KEY_FILE=/path/to/goat-key \
238
252
  npm run test:e2e:live:all
239
253
  ```
240
254
 
241
- 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. Go must select `generate` and reject unsupported images; GOAT must select `provider` and complete a live vision request. The profile-specific `*_API_KEY` environment variables are also supported for CI secrets, but key files are preferred for local use.
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.
242
256
 
243
- The Go 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_GO_MODEL`, `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.
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.
244
258
 
245
259
  See [CONTRIBUTING.md](CONTRIBUTING.md) for local setup and tests. See [RELEASE.md](RELEASE.md) for the release process.
246
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: