@herbertgao/pi-extensions 2026.11.11 → 2026.11.13

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 (262) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -11
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -39
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +21 -3
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
  17. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  18. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  19. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  20. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  21. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +2 -2
  22. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +12 -504
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +5 -34
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +17 -18
  35. package/node_modules/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
  36. package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +33 -0
  37. package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
  38. package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +213 -0
  39. package/node_modules/pi-antigravity/README.md +58 -9
  40. package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
  41. package/node_modules/pi-antigravity/package.json +15 -6
  42. package/node_modules/pi-antigravity/src/client/client.ts +63 -14
  43. package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
  44. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  45. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
  46. package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
  47. package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
  48. package/node_modules/pi-antigravity/src/image/image.ts +16 -2
  49. package/node_modules/pi-antigravity/src/index.ts +145 -2
  50. package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
  51. package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
  52. package/node_modules/pi-antigravity/src/models/models.ts +126 -14
  53. package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
  54. package/node_modules/pi-antigravity/src/types/types.ts +30 -1
  55. package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
  56. package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
  57. package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
  58. package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
  59. package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
  60. package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
  61. package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
  62. package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
  63. package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
  64. package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
  65. package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
  66. package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
  67. package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
  68. package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
  69. package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
  70. package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
  71. package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
  72. package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
  73. package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
  74. package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
  75. package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
  76. package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
  77. package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
  78. package/node_modules/pi-antigravity/tsconfig.json +2 -2
  79. package/node_modules/pi-commandcode-provider/CHANGELOG.md +10 -0
  80. package/node_modules/pi-commandcode-provider/README.md +2 -2
  81. package/node_modules/pi-commandcode-provider/package.json +1 -1
  82. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
  83. package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
  84. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  85. package/node_modules/pi-lens/CHANGELOG.md +172 -0
  86. package/node_modules/pi-lens/README.md +103 -217
  87. package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
  88. package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
  89. package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
  90. package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
  91. package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
  92. package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
  93. package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
  94. package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
  95. package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
  96. package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
  97. package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
  98. package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
  99. package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
  100. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
  101. package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
  102. package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
  103. package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
  104. package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
  105. package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
  106. package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
  107. package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
  108. package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
  109. package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
  110. package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
  111. package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
  112. package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
  113. package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
  114. package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
  115. package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
  116. package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
  117. package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
  118. package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
  119. package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
  120. package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
  121. package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
  122. package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
  123. package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
  124. package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
  125. package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
  126. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
  127. package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
  128. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
  129. package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
  130. package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
  131. package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
  132. package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
  133. package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
  134. package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
  135. package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
  136. package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
  137. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
  138. package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
  139. package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
  140. package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
  141. package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
  142. package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
  143. package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
  144. package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
  145. package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
  146. package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
  147. package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
  148. package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
  149. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
  150. package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
  151. package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
  152. package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
  153. package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
  154. package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
  155. package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
  156. package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
  157. package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
  158. package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
  159. package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
  160. package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
  161. package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
  162. package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
  163. package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
  164. package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
  165. package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
  166. package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
  167. package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
  168. package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
  169. package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
  170. package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
  171. package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
  172. package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
  173. package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
  174. package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
  175. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
  176. package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
  177. package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
  178. package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
  179. package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
  180. package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
  181. package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
  182. package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
  183. package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
  184. package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
  185. package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
  186. package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
  187. package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
  189. package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
  190. package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
  191. package/node_modules/pi-lens/dist/index.js +6508 -5413
  192. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
  193. package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
  194. package/node_modules/pi-lens/dist/mcp/server.js +602 -345
  195. package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
  196. package/node_modules/pi-lens/dist/probes/installer.js +19 -17
  197. package/node_modules/pi-lens/docs/architecture.md +113 -0
  198. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
  199. package/node_modules/pi-lens/docs/ci.md +18 -4
  200. package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
  201. package/node_modules/pi-lens/docs/dependencies.md +10 -10
  202. package/node_modules/pi-lens/docs/features.md +3 -3
  203. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
  204. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
  205. package/node_modules/pi-lens/docs/language-coverage.md +39 -0
  206. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
  207. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  208. package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
  209. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
  210. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
  211. package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
  212. package/node_modules/pi-lens/docs/prose-standard.md +112 -0
  213. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  214. package/node_modules/pi-lens/docs/usage.md +50 -0
  215. package/node_modules/pi-lens/package.json +1 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
  217. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
  218. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
  219. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
  220. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
  221. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
  222. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
  223. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
  224. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
  225. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
  226. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
  228. package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
  229. package/node_modules/pi-web-access/CHANGELOG.md +29 -0
  230. package/node_modules/pi-web-access/README.md +35 -15
  231. package/node_modules/pi-web-access/anysearch.ts +7 -3
  232. package/node_modules/pi-web-access/autom.ts +196 -0
  233. package/node_modules/pi-web-access/cloro.ts +254 -0
  234. package/node_modules/pi-web-access/curator-page.ts +7 -1
  235. package/node_modules/pi-web-access/curator-server.ts +3 -0
  236. package/node_modules/pi-web-access/dist/index.js +12931 -12111
  237. package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
  238. package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
  239. package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
  240. package/node_modules/pi-web-access/duckduckgo.ts +11 -3
  241. package/node_modules/pi-web-access/extract.ts +60 -4
  242. package/node_modules/pi-web-access/gemini-search.ts +25 -5
  243. package/node_modules/pi-web-access/index.ts +9 -1
  244. package/node_modules/pi-web-access/package.json +2 -2
  245. package/node_modules/pi-web-access/page-query.ts +12 -3
  246. package/node_modules/pi-web-access/specstream.ts +276 -0
  247. package/node_modules/pi-web-access/tool-activation.ts +21 -6
  248. package/node_modules/pi-web-access/utils.ts +4 -0
  249. package/node_modules/pi-web-access/video-extract.ts +2 -2
  250. package/node_modules/pi-web-access/web-tool-core.ts +24 -5
  251. package/node_modules/pi-web-access/youtube-extract.ts +2 -2
  252. package/package.json +13 -7
  253. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
  254. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
  255. package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
  256. package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
  257. package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
  258. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
  259. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
  260. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
  261. package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
  262. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
@@ -3,7 +3,7 @@
3
3
  "target": "ES2022",
4
4
  "module": "ESNext",
5
5
  "moduleResolution": "Bundler",
6
- "lib": ["ES2022"],
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
7
  "strict": true,
8
8
  "skipLibCheck": true,
9
9
  "noEmit": true,
@@ -17,5 +17,5 @@
17
17
  "forceConsistentCasingInFileNames": true,
18
18
  "types": ["node"]
19
19
  },
20
- "include": ["src/**/*.ts"]
20
+ "include": ["src/**/*.ts", "scripts/test-web-fetch.ts", "scripts/test-reader-foundations.ts"]
21
21
  }
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.4 - 2026-11-15
4
+
5
+ - Stop handing revoked or rotated API keys back on refresh. `refreshToken` used to return the stored key unchanged with a new ten-year expiry. On Oh My Pi, that let OMP keep selecting a dead `/login` credential over a valid one, and every request failed with `401 Invalid 'Authorization' header or token`. Refresh now checks the key against `whoami` first, and a `401` there fails the refresh with the message `401 invalid_token`. OMP forces a refresh after a `401`; when the refresh fails with that message, it signs the credential out and uses the next stored one. A network error or 5xx response from `whoami` fails the refresh with its own error, which OMP treats as temporary and does not sign out. pi refreshes only on expiry, so it runs the new check only then. ([#217](https://github.com/patlux/pi-commandcode-provider/pull/217))
6
+ - Refresh the capability snapshot to `command-code@1.89.1`: advertise image input, reasoning and selectable efforts for `claude-fable-5-2`, `google/gemini-4-carbon`, `meta/muse-ember` and `thinkingmachines/inkling-2-small:free`; raise Inkling 2 Small's output limit to 131,072 tokens; drop stale capability metadata for the retired `reflection/beam:free` and `stealth/crouton-alpha`. Public pricing checks pass for all 98 advertised models; prices and endpoint routing are unchanged. ([#218](https://github.com/patlux/pi-commandcode-provider/pull/218))
7
+
8
+ ### Contributors
9
+
10
+ - @mrshu — reported and fixed revoked-key refresh handling on Oh My Pi, preserved the host cancellation contract, and added regression tests ([#217](https://github.com/patlux/pi-commandcode-provider/pull/217)).
11
+ - @pierreraby — reviewed and validated the OAuth fix, refreshed the capability catalog with regression tests ([#218](https://github.com/patlux/pi-commandcode-provider/pull/218)), and prepared this release.
12
+
3
13
  ## 0.8.3 - 2026-11-13
4
14
 
5
15
  - Tag the Responses `system`/`developer` and `user` items with the item-level `type: "message"` the Provider API adapter requires for `zai-org/GLM-5.3`, which answered `400 invalid_request: input item is missing type` on the first turn. The rewrite is limited to the models known to need the verbose form, so every other model keeps the exact body the host sends. ([#214](https://github.com/patlux/pi-commandcode-provider/issues/214), [#215](https://github.com/patlux/pi-commandcode-provider/pull/215))
@@ -51,7 +51,7 @@ Run `/login` in pi or OMP. Select **Use a subscription**, then **Command Code**.
51
51
 
52
52
  If automatic transfer from the browser fails, copy the API key shown by Command Code and paste it into the terminal prompt.
53
53
 
54
- On Oh My Pi, `/login` stores those credentials in OMP's credential store and chat uses them directly. If chat still returns `401 Invalid 'Authorization' header`, restart OMP after `/login` and confirm `/commandcode-quota` shows your account.
54
+ On Oh My Pi, `/login` stores those credentials in OMP's credential store and chat uses them directly. When the Provider API rejects a stored login with `401`, OMP asks the provider to refresh it, and the provider checks the key against `whoami`. If Command Code no longer accepts the key, OMP signs that login out with the warning "A Command Code account was signed out automatically" and uses the next stored credential. If chat still returns `401 Invalid 'Authorization' header`, run `/login` again, restart OMP, and confirm `/commandcode-quota` shows your account.
55
55
 
56
56
  ### Environment variable
57
57
 
@@ -180,7 +180,7 @@ The following environment variables are intended for tests, local mocks, and com
180
180
 
181
181
  ## Image input
182
182
 
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.5`; 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.89.1`; 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.
184
184
 
185
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.
186
186
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-commandcode-provider",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "pi custom provider for Command Code API (commandcode.ai)",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -1,4 +1,4 @@
1
- export const COMMAND_CODE_CLI_VERSION = "1.88.5"
1
+ export const COMMAND_CODE_CLI_VERSION = "1.89.1"
2
2
 
3
3
  export type CommandCodeInputType = "text" | "image"
4
4
  export type CommandCodeReasoningEffort =
@@ -11,12 +11,13 @@ export type CommandCodeReasoningEffort =
11
11
  | "max"
12
12
 
13
13
  /**
14
- * Generated from command-code@1.88.5 by `npm run sync:commandcode-catalog`.
14
+ * Generated from command-code@1.89.1 by `npm run sync:commandcode-catalog`.
15
15
  * Do not edit manually.
16
16
  */
17
17
  export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCodeInputType[]>> = {
18
18
  "claude-fable-5": ["text", "image"],
19
19
  "claude-fable-5-1": ["text", "image"],
20
+ "claude-fable-5-2": ["text", "image"],
20
21
  "claude-haiku-4-5-20251001": ["text", "image"],
21
22
  "claude-haiku-5-5": ["text", "image"],
22
23
  "claude-opus-4-7": ["text", "image"],
@@ -37,6 +38,7 @@ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCod
37
38
  "google/gemini-3.7-flash": ["text", "image"],
38
39
  "google/gemini-3.8-flash": ["text", "image"],
39
40
  "google/gemini-4-argon": ["text", "image"],
41
+ "google/gemini-4-carbon": ["text", "image"],
40
42
  "gpt-5.3-codex": ["text", "image"],
41
43
  "gpt-5.4": ["text", "image"],
42
44
  "gpt-5.4-mini": ["text", "image"],
@@ -49,6 +51,7 @@ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCod
49
51
  "gpt-6-sol": ["text", "image"],
50
52
  "gpt-6.1-sol": ["text", "image"],
51
53
  "gpt-6.1-terra": ["text", "image"],
54
+ "meta/muse-ember": ["text", "image"],
52
55
  "meta/muse-spark-1.1": ["text", "image"],
53
56
  "meta/muse-spark-1.2": ["text", "image"],
54
57
  "meta/muse-spark-1.2-contributor": ["text", "image"],
@@ -77,10 +80,10 @@ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCod
77
80
  "Qwen/Qwen3.8-Max-Prime": ["text", "image"],
78
81
  "Qwen/Qwen3.8-Omni-Flash": ["text", "image"],
79
82
  "sakana/fugu-ultra": ["text", "image"],
80
- "stealth/crouton-alpha": ["text", "image"],
81
83
  "stepfun/Step-3.7-Flash": ["text", "image"],
82
84
  "stepfun/Step-5-Preview": ["text", "image"],
83
85
  "thinkingmachines/inkling": ["text", "image"],
86
+ "thinkingmachines/inkling-2-small:free": ["text", "image"],
84
87
  "thinkingmachines/inkling-small": ["text", "image"],
85
88
  "xai/grok-4.5": ["text", "image"],
86
89
  "xai/grok-4.6": ["text", "image"],
@@ -95,6 +98,7 @@ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCod
95
98
  export const MODEL_REASONING: Readonly<Record<string, true>> = {
96
99
  "claude-fable-5": true,
97
100
  "claude-fable-5-1": true,
101
+ "claude-fable-5-2": true,
98
102
  "claude-haiku-5-5": true,
99
103
  "claude-opus-4-7": true,
100
104
  "claude-opus-4-8": true,
@@ -117,6 +121,7 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
117
121
  "google/gemini-3.7-flash": true,
118
122
  "google/gemini-3.8-flash": true,
119
123
  "google/gemini-4-argon": true,
124
+ "google/gemini-4-carbon": true,
120
125
  "gpt-5.3-codex": true,
121
126
  "gpt-5.4": true,
122
127
  "gpt-5.4-mini": true,
@@ -132,6 +137,7 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
132
137
  "inclusionai/ling-3.1-flash": true,
133
138
  "inclusionai/ling-3.1-flash-1019": true,
134
139
  "meituan/LongCat-2.0": true,
140
+ "meta/muse-ember": true,
135
141
  "meta/muse-spark-1.1": true,
136
142
  "meta/muse-spark-1.2": true,
137
143
  "meta/muse-spark-1.2-contributor": true,
@@ -160,9 +166,7 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
160
166
  "Qwen/Qwen3.8-Max-0902": true,
161
167
  "Qwen/Qwen3.8-Max-Prime": true,
162
168
  "Qwen/Qwen3.8-Omni-Flash": true,
163
- "reflection/beam:free": true,
164
169
  "sakana/fugu-ultra": true,
165
- "stealth/crouton-alpha": true,
166
170
  "stealth/glyph-cluster:free": true,
167
171
  "stepfun/Step-3.5-Flash": true,
168
172
  "stepfun/Step-3.7-Flash": true,
@@ -170,6 +174,7 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
170
174
  "tencent/hy3-paid": true,
171
175
  "tencent/hy4-preview": true,
172
176
  "thinkingmachines/inkling": true,
177
+ "thinkingmachines/inkling-2-small:free": true,
173
178
  "thinkingmachines/inkling-small": true,
174
179
  "xai/grok-4.5": true,
175
180
  "xai/grok-4.6": true,
@@ -183,6 +188,7 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
183
188
  export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasoningEffort[]>> = {
184
189
  "claude-fable-5": ["low", "medium", "high", "xhigh", "max"],
185
190
  "claude-fable-5-1": ["low", "medium", "high", "xhigh", "max"],
191
+ "claude-fable-5-2": ["low", "medium", "high", "xhigh", "max"],
186
192
  "claude-haiku-5-5": ["low", "medium", "high", "xhigh", "max"],
187
193
  "claude-opus-4-7": ["low", "medium", "high", "xhigh", "max"],
188
194
  "claude-opus-4-8": ["low", "medium", "high", "xhigh", "max"],
@@ -205,6 +211,7 @@ export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasonin
205
211
  "google/gemini-3.7-flash": ["low", "medium", "high"],
206
212
  "google/gemini-3.8-flash": ["low", "medium", "high"],
207
213
  "google/gemini-4-argon": ["low", "medium", "high"],
214
+ "google/gemini-4-carbon": ["low", "medium", "high"],
208
215
  "gpt-5.3-codex": ["low", "medium", "high", "xhigh"],
209
216
  "gpt-5.4": ["low", "medium", "high", "xhigh"],
210
217
  "gpt-5.4-mini": ["low", "medium", "high"],
@@ -219,6 +226,7 @@ export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasonin
219
226
  "gpt-6.1-terra": ["low", "medium", "high", "xhigh", "max"],
220
227
  "inclusionai/ling-3.1-flash": ["low", "medium", "high"],
221
228
  "inclusionai/ling-3.1-flash-1019": ["low", "medium", "high"],
229
+ "meta/muse-ember": ["low", "medium", "high", "xhigh", "max"],
222
230
  "meta/muse-spark-1.1": ["low", "medium", "high", "xhigh"],
223
231
  "meta/muse-spark-1.2": ["low", "medium", "high", "xhigh"],
224
232
  "meta/muse-spark-1.2-contributor": ["low", "medium", "high", "xhigh"],
@@ -238,12 +246,11 @@ export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasonin
238
246
  "Qwen/Qwen3.8-Max-0902": ["low", "medium", "xhigh"],
239
247
  "Qwen/Qwen3.8-Max-Prime": ["low", "medium", "xhigh"],
240
248
  "Qwen/Qwen3.8-Omni-Flash": ["low", "medium", "xhigh"],
241
- "reflection/beam:free": ["low", "medium", "high", "xhigh", "max"],
242
249
  "sakana/fugu-ultra": ["high", "xhigh"],
243
- "stealth/crouton-alpha": ["low", "medium", "high", "xhigh", "max"],
244
250
  "stealth/glyph-cluster:free": ["low", "medium", "high", "xhigh"],
245
251
  "stepfun/Step-5-Preview": ["low", "medium", "high"],
246
252
  "tencent/hy4-preview": ["low", "medium", "high"],
253
+ "thinkingmachines/inkling-2-small:free": ["low", "medium", "high", "max"],
247
254
  "xai/grok-4.5": ["low", "medium", "high"],
248
255
  "xai/grok-4.6": ["low", "medium", "high", "xhigh"],
249
256
  "xai/grok-4.7": ["low", "medium", "high", "xhigh"],
@@ -260,9 +267,8 @@ export const MODEL_MAX_OUTPUT_TOKENS: Readonly<Record<string, number>> = {
260
267
  "Qwen/Qwen3.8-27B": 32_768,
261
268
  "Qwen/Qwen3.8-Max-Prime": 131_072,
262
269
  "Qwen/Qwen3.8-Omni-Flash": 131_072,
263
- "reflection/beam:free": 131_072,
264
- "stealth/crouton-alpha": 943_718,
265
270
  "stealth/glyph-cluster:free": 256_000,
271
+ "thinkingmachines/inkling-2-small:free": 131_072,
266
272
  "z-ai/glm-5.3-flash": 131_072,
267
273
  "z-ai/glm-5.3-flashx": 131_072,
268
274
  }
@@ -108,34 +108,69 @@ export function validationApiBase(env: NodeJS.ProcessEnv = process.env): string
108
108
  return providerApiBase.replace(/\/provider\/v1\/?$/, "")
109
109
  }
110
110
 
111
+ /** Thrown when `whoami` answers `401`: Command Code does not accept the key. */
112
+ export class InvalidApiKeyError extends Error {
113
+ constructor() {
114
+ super("Invalid Command Code API key")
115
+ this.name = "InvalidApiKeyError"
116
+ }
117
+ }
118
+
119
+ export type ValidateApiKeyOptions = {
120
+ fetchImpl?: typeof fetch
121
+ apiBase?: string
122
+ timeoutMs?: number
123
+ /** Caller cancellation, e.g. the host's refresh signal. */
124
+ signal?: AbortSignal
125
+ }
126
+
111
127
  export async function validateApiKey(
112
128
  apiKey: string,
113
- options: { fetchImpl?: typeof fetch; apiBase?: string; timeoutMs?: number } = {},
129
+ options: ValidateApiKeyOptions = {},
114
130
  ): Promise<void> {
115
131
  const timeoutMs = options.timeoutMs ?? VALIDATE_API_KEY_TIMEOUT_MS
116
132
  // AbortSignal is cooperative: a custom fetch may ignore it, so the deadline
117
- // also races the request. /login must never hang on a stalled whoami.
133
+ // and caller cancellation also race the request. /login must never hang on
134
+ // a stalled whoami.
118
135
  const controller = new AbortController()
119
136
  let rejectDeadline: ((error: Error) => void) | undefined
120
137
  const deadline = new Promise<never>((_resolve, reject) => {
121
138
  rejectDeadline = reject
122
139
  })
123
- const timer = setTimeout(() => {
124
- const error = new Error(
125
- `Could not validate the Command Code API key: request timed out after ${timeoutMs}ms`,
126
- )
140
+ const stop = (error: Error) => {
127
141
  controller.abort(error)
128
142
  rejectDeadline?.(error)
129
- }, timeoutMs)
143
+ }
144
+ const timer = setTimeout(
145
+ () =>
146
+ stop(
147
+ new Error(
148
+ `Could not validate the Command Code API key: request timed out after ${timeoutMs}ms`,
149
+ ),
150
+ ),
151
+ timeoutMs,
152
+ )
153
+ const onAbort = () => {
154
+ const reason = options.signal?.reason
155
+ stop(
156
+ reason instanceof Error
157
+ ? reason
158
+ : new Error("Could not validate the Command Code API key: request was aborted"),
159
+ )
160
+ }
161
+ if (options.signal?.aborted) onAbort()
162
+ else options.signal?.addEventListener("abort", onAbort, { once: true })
130
163
 
131
164
  let response: Response
132
165
  try {
166
+ // `deadline` goes first so an already-aborted signal wins over a fetch
167
+ // that settles immediately.
133
168
  response = await Promise.race([
169
+ deadline,
134
170
  (options.fetchImpl ?? fetch)(`${options.apiBase ?? validationApiBase()}/alpha/whoami`, {
135
171
  headers: { Authorization: `Bearer ${apiKey}` },
136
172
  signal: controller.signal,
137
173
  }),
138
- deadline,
139
174
  ])
140
175
  } catch (error) {
141
176
  if (controller.signal.aborted && controller.signal.reason instanceof Error) {
@@ -146,9 +181,10 @@ export async function validateApiKey(
146
181
  )
147
182
  } finally {
148
183
  clearTimeout(timer)
184
+ options.signal?.removeEventListener("abort", onAbort)
149
185
  }
150
186
 
151
- if (response.status === 401) throw new Error("Invalid Command Code API key")
187
+ if (response.status === 401) throw new InvalidApiKeyError()
152
188
  if (!response.ok) {
153
189
  throw new Error(`Could not validate the Command Code API key (${response.status})`)
154
190
  }
@@ -248,10 +284,31 @@ export async function login(callbacks: OAuthLoginCallbacks): Promise<OAuthCreden
248
284
  }
249
285
 
250
286
  /**
251
- * Command Code API keys don't expire, so "refresh" is a no-op.
252
- * Returns the same credentials with an updated far-future expiry.
287
+ * Command Code API keys don't expire, so a successful refresh returns the
288
+ * same key with a new expiry date far in the future. pi refreshes on expiry,
289
+ * and Oh My Pi also forces a refresh after the Provider API answers `401`.
290
+ * Refresh therefore checks the key against `whoami` first, so that a revoked
291
+ * or rotated key fails the refresh instead of coming back with a new expiry.
292
+ * The error message contains `401` and `invalid_token`, which Oh My Pi matches
293
+ * to sign out the stored credential. Network errors, 5xx responses and
294
+ * cancellation through the host's `signal` are rethrown unchanged and do not
295
+ * contain either. `options` exists for tests; hosts pass only the signal.
253
296
  */
254
- export async function refreshToken(credentials: OAuthCredentials): Promise<OAuthCredentials> {
297
+ export async function refreshToken(
298
+ credentials: OAuthCredentials,
299
+ signal?: AbortSignal,
300
+ options: Omit<ValidateApiKeyOptions, "signal"> = {},
301
+ ): Promise<OAuthCredentials> {
302
+ try {
303
+ await validateApiKey(credentials.refresh, { ...options, signal })
304
+ } catch (error) {
305
+ if (error instanceof InvalidApiKeyError) {
306
+ throw new Error(
307
+ "Command Code rejected the stored API key (401 invalid_token); run /login again",
308
+ )
309
+ }
310
+ throw error
311
+ }
255
312
  return credentialsFromApiKey(credentials.refresh)
256
313
  }
257
314
 
@@ -1,5 +1,11 @@
1
1
  # User changelog
2
2
 
3
+ ## [4.5.0] - 2026-11-14
4
+
5
+ 31 fixes, 2 other changes.
6
+
7
+ Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.5.0
8
+
3
9
  ## [4.4.12] - 2026-11-10
4
10
 
5
11
  1 feature, 2 fixes.
@@ -23,9 +29,3 @@ Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.10
23
29
  3 features, 29 fixes, 8 other changes.
24
30
 
25
31
  Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.9
26
-
27
- ## [4.4.8] - 2026-11-01
28
-
29
- 1 feature, 28 fixes, 6 other changes.
30
-
31
- Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.8
@@ -16,6 +16,178 @@ All notable changes to pi-lens will be documented in this file.
16
16
 
17
17
  ### Security
18
18
 
19
+ ## [4.5.0] - 2026-11-14
20
+
21
+ ### Changed
22
+
23
+ #### Runners and scanners
24
+
25
+ - **Formatter and linter config checks now stop at your home directory.** A `.clang-format`, `.oxlintrc.json`, `.prettierrc` or similar file above `$HOME` no longer selects its tool, and a commented or look-alike gem in a Gemfile no longer selects rubocop or standardrb. (refs #5408)
26
+
27
+ - **Kotlin formatter and Svelte config-file checks now stop at your home directory.** A `.ktfmt` file, a Spotless block or an `oxfmt.toml` above `$HOME` no longer selects ktfmt, ktlint or oxfmt for `.svelte`. Helm, Trivy, golangci-lint, detekt and Java also check their binary once per working directory now, so a lint run and its autofix in the same directory no longer probe the same tool twice. (refs #5408, #5410)
28
+
29
+ ### Fixed
30
+
31
+ #### Language servers
32
+
33
+ - **Public Rust functions now bring their callers into the neighbour cascade.** The cascade asked the language server at the `pub` keyword, where rust-analyzer returns no references, so an edit to a `pub fn` listed no dependents. It now asks at the function name, and methods in the other tree-sitter languages get the same position. (refs #5559)
34
+
35
+ - **`lens_diagnostics` in full mode now keeps one rule's findings apart when their columns differ.** Findings that share a rule and line now stay separate by column. LSP hints were already listed as warnings; only their semantic label now matches the CLI advisory tier. (refs #5412)
36
+
37
+ - **A cold Deno server now gets seven seconds on diagnostics calls, not on edits.** The pull wait fell back to the 1.5 second default, so a first check on a slow machine was abandoned and read as no answer. Per-edit checks stay capped at 2.5 seconds and the MCP warm-up at 6 seconds. The budget is only a ceiling, so a fast Deno answer returns at once. (refs #5464)
38
+
39
+ - **ElixirLS document symbol requests no longer fail on an omitted capability.** The client explicitly declares support for hierarchical document symbols while continuing to accept flat responses. Definition fallback uses the symbol name range so navigation and search-read coverage do not include the whole body. (refs #5476)
40
+
41
+ - **A cold Rust touch no longer reads clean while rust-analyzer is still loading.** The language server now says when it has finished loading, and the diagnostics read waits for that. If the wait runs out first, the result says the server is still loading. A workspace that failed to load (a broken manifest) is named with the server's message and a hint to fix the manifest. Neither case reads as a clean file. (refs #5487)
42
+
43
+ - **A fixed `Cargo.toml`, `go.mod` or `go.work` at the project root now reaches the running language server.** Before, rust-analyzer kept reporting that its workspace failed to load, and gopls kept an old `go` version's findings, until the server restarted. The manifest or workspace file at the project root is sent as a watched-files event when it changes outside the editor session. (refs #5501)
44
+
45
+ - **TypeScript 7 installed as `@typescript/native` now runs the native language server.** With `node_modules/typescript` at version 6 or older, pi-lens launches the alias's own `bin/tsc` with Node. An `effect-tsgo` that exits during startup now falls back to the native launch, and an alias that cannot start falls back to the classic server, so JavaScript and TypeScript files keep a language server. (refs #5504)
46
+
47
+ - **LSP command arguments opt out of strict schema conversion.** `lsp_navigation` advertises the full JSON value space for `commandArguments` without a strict opt-in, so providers can receive object arguments unchanged. Live confirmation on a strict-schema provider remains outstanding. (refs #5506)
48
+
49
+ #### Blockers and sessions
50
+
51
+ - **The footer keeps every file with findings visible.** Two files sharing a basename no longer collapse into one footer row. Rows are keyed on the file path and same-named files show enough of the parent directory to tell them apart, so a blocking file can no longer hide behind a clean one and the header keeps counting every recorded file. (refs #5460)
52
+
53
+ - **A blocker you cannot fix now reaches the agent in full at most three times.** After that, each prompt gets a one-line pointer to `lens_diagnostics` for it, however many other blockers are raised or fixed meanwhile. The blocker stays listed there and still blocks a `--lens-guard` commit, a fix stops the pointer at once, and a blocker re-raised with changed content gets three full deliveries again. (refs #5532)
54
+
55
+ #### Runners and scanners
56
+
57
+ - **`ast_grep_search` and `ast_grep_replace` stop answering "no matches" in some checkouts.** A rule-mode scan now runs inside the tree it scans, so the project's own ignore globs match paths relative to the scan root instead of an ancestor that happens to be named `.claude` or `build`; reported match paths stay absolute. The `npx` fallback keeps its isolated child cwd, while repository trees use native ignore handling and marker-less trees retain the project's own exclude globs. A glob or path you passed the tool yourself is still matched unchanged. (refs #5545)
58
+
59
+ - **A slow runner no longer piles up processes across edits.** A runner whose process outlives the dispatch budget, such as SpotBugs or Trivy Config, now holds its slot until that process exits, so the next edit joins the running check instead of starting another one. SpotBugs and Trivy Config also declare their existing spawn timeouts. (refs #5547)
60
+
61
+ - **A file whose checks were all skipped now says why it was not checked.** The write notice names each runner's cause (`spellcheck: not installed`, `vale: not configured`, a managed install turned off by `PI_LENS_DISABLE_TOOL_INSTALL=1`, a version probe that timed out or was rejected, a project binary that pi trust refused, a missing Java runtime, a project policy that prefers another tool) instead of one sentence for a missing tool, a timeout and a failure alike. Nothing that was unchecked reads clean. (refs #5258)
62
+
63
+ - **A tool config above your home directory no longer counts as project config.** ESLint, Biome, golangci-lint, PHPStan, Stylelint, markdownlint, Vite+, Vale, ShellCheck and the Java build check now stop their config search at your home directory, and a `vite.config` that only mentions `vite-plus` in a comment no longer selects the Vite+ tools. ShellCheck also reads a `.shellcheckrc` beside the script. (refs #5408)
64
+
65
+ - **Formatters now find their tool the way the linters do.** A formatter no longer runs a parent directory's Python virtualenv (a monorepo whose only venv sits at the repo root must put black on PATH), and a broken copy on PATH no longer hides a working managed install of shfmt, taplo, ktlint, ktfmt, typstyle, black, google-java-format or cljfmt. The order is the project's own tool, then PATH, then the managed copy: a working PATH formatter still wins, so a team that pins its formatter version is not overridden. A formatter that is installed but fails its version check is reported as failed, with its error output, instead of "not found", and a broken sqlfluff is no longer run and read as an unchanged file. (refs #5410)
66
+
67
+ - **oxlint and ESLint now run in the directory of their config.** A repo-root config with a path that a plugin resolves from the working directory no longer reports false findings for files under a nested workspace package, while the lint policy and the install lookup stay in the package. (refs #5541)
68
+
69
+ - **Lint findings now appear for files a linter had silently skipped.** `yamllint` and `markdownlint` were handed the absolute path of the dispatched file, and both match their config's ignore globs against that string, so a glob naming an ancestor of the file (such as `**/.claude/**` inside a `.claude/worktrees/` lane) skipped the file: the tool answered "no files selected", exited 0, and the runner reported a clean file it had never linted. Both now receive the path relative to the project, the form `actionlint` already uses, so a root-anchored ignore such as yamllint's `/src/` or markdownlint's `/src/**` now skips the files under it, which the absolute path had linted. A root-level name such as `-a.yml`, `#a.md` or `:a.md` is still read as a path, and `--fix` gets the same argument. (refs #5544)
70
+
71
+ - **Oxlint now lints files in ignored-ancestor worktrees.** The lint and autofix
72
+ paths now pass the project-relative file argument, so an `.eslintignore` glob
73
+ naming an ancestor cannot silently make oxlint skip the dispatched file.
74
+ A root-level name such as `-D.ts` is still read as a path, not an oxlint
75
+ option. Findings remain attributed to the dispatched path. (refs #5556)
76
+
77
+ - **Ruff autofix now uses the lint runner's resolved Ruff command.** Nested packages whose own `.venv` holds the only Ruff no longer get skipped when dispatch starts at a workspace root. (refs #5410)
78
+
79
+ - **A Gradle edit that keeps its timestamp now changes the Kotlin formatter pi-lens picks.** The Spotless check in `build.gradle(.kts)` remembered its answer by modification time alone, so a rewrite that kept the time (a copy that preserves times, an archive extract) and changed the length still read as the old `ktlint` or `ktfmt` choice. It now compares the length too. (refs #4907)
80
+
81
+ #### Rules
82
+
83
+ - **Four bundled rules now report far fewer false positives.**
84
+ `array-callback-return` exempts async callbacks and
85
+ `no-negation-in-equality-check` exempts double-negation comparisons in both
86
+ language twins, `ts-react-antipatterns` reports only files that import a
87
+ React or React-like hook source or contain JSX, and
88
+ `unchecked-throwing-call` drops to `warning` and documents that its `try`
89
+ check is lexical. (refs #5466)
90
+
91
+ #### Tools and reports
92
+
93
+ - **Esc now stops an `ast_grep_replace` apply's precheck.** The structural-rule precheck carries the call's abort signal, so a host with no tool scope stops it too. Esc does not stop the `--update-all` write once it starts: the write runs to completion, so an Esc leaves 0 or all matched files rewritten. (refs #5097)
94
+
95
+ - **pi-lens no longer calls a file clean when its check did not finish.**
96
+ The `lens_diagnostics` header and its check line say "unconfirmed" when a
97
+ full sweep stopped early, an analyzer failed, ran partly or was stopped,
98
+ a file changed after its last check or still has a check pending, or a
99
+ shown finding is stale. Delta mode reports "no new findings" instead of
100
+ "clean". Knip exiting with no report is named as unread, not "No issues
101
+ found". A warning re-check keeps each warning whose code-action lookup
102
+ never answered, and still retires the ones it confirmed fixed. (refs #5258)
103
+
104
+ - **A wedged formatter no longer starts a new child on every write.** Writes that one formatter handles in one project now wait their turn, so a hung child is never joined by a second one. Once a child runs out its own time, later writes skip that formatter for the session with a recorded reason, and a repeated deferred format failure is retried once. (refs #5549)
105
+
106
+ - **`/lens-allow-edit`, `effective_config` and the MCP analyze and turn-end tools read `~` and `@` paths.** They resolved a path such as `@src/a.ts` or `~/proj/a.ts` to a file that cannot exist, so `/lens-allow-edit` armed nothing, `effective_config` reported on a missing file, and `pilens_analyze` and `pilens_turn_end` checked a ghost path. They now resolve it as pi does, `pilens_analyze` reads a `~` cwd as the home directory, and `pilens_turn_end` no longer counts a file outside the workspace as registered. (refs #4907)
107
+
108
+ #### Install and updates
109
+
110
+ - **CMake language-server installs now refuse unsupported Python versions visibly.** The package floor prevents Python 3.14 from silently selecting 0.1.5, and nightly tool-smoke uses a pinned Ubuntu image. (refs #5561)
111
+
112
+ #### Hosts and integrations
113
+
114
+ - **Warm IPC never crosses workspaces under a long temporary directory.** Bind and connect use the bounded Unix socket path, so a `TMPDIR` that cuts only the `.sock` suffix keeps the warm side channel on hosts that reject an over-long socket path with `EINVAL`. A longer `TMPDIR` cuts the workspace identity out of the name: the MCP server does not bind it, no hook dials it, the server logs that the warm side channel is unavailable, and hooks fall back to cold analysis. (refs #4353)
115
+
116
+ - **Reloading the extension no longer slows every async operation a little more.** The spawn cancellation and cooldown scopes are now one per process instead of one per reload, so a long session that reloads pi-lens stays as fast as a fresh one. (refs #5182, #5413)
117
+
118
+ - **Bash overwrites that keep an old mtime are now seen.** A recognized `mv` or `cp -p` into a file that was clean before the command now reaches the normal dispatch path, including from a package-subdirectory session, even when the destination keeps its source's old modification time. A file you had already edited is still judged by mtime. (refs #5552)
119
+
120
+ #### Security
121
+
122
+ - **A secret found by gitleaks and trivy now shows as one blocker row.** The turn-end report used to list the same line twice, once per scanner, because gitleaks cites an absolute path and trivy a path relative to its scan root. A secret only trivy finds now also drops its ast-grep copy from the fixable-warnings advisory. (refs #5459)
123
+
124
+ - **A project under a scratch-named parent directory now keeps its scan results.** A checkout under `.claude/worktrees/<lane>` or a `.pi-lens` temp root had every gitleaks finding dropped or demoted, so the turn-end secrets blocker never fired. Opengrep and vulture also skipped the whole project there. Scratch directories are now judged below the project root only, and a gitleaks or trivy scan of a symlinked project root now scans the real directory instead of reporting nothing. (refs #5500)
125
+
126
+ ### Internal
127
+
128
+ <details>
129
+ <summary>27 internal changes: tests, CI, tooling, and refactors</summary>
130
+
131
+ - The clean-claim census owner test now carries a planted-stale-row cell, so master's baseline-owner governance is green again. (refs #5072)
132
+
133
+ - Move the documentation and prose standard to `docs/prose-standard.md`, name its sources, add the judgement-only ASD-STE100 rules and the collapsed comment layout, and add a pointer-only `write` skill. (refs #5510)
134
+
135
+ - The comment layout rule is now a repo check, `node scripts/check-prose.mjs --comment`: a comment over 12 lines needs at most 8 visible lines and a model-named fold. (refs #5558)
136
+
137
+ - **Generation-ledger stamp tests no longer follow the temp path length.** Five cells in three test files matched the end of a record whose text the ledger bounds at 200 characters, so a long `TMPDIR` cut the tail and reddened them. They now select each record by the bounded rendering of the identity its producer writes, and one cell pins the stamp's size component where it decides behaviour: the resolver's verdict memo. (refs #5575, #5576)
138
+
139
+ - **The cold-cache strict install now runs from its own workflow file.** `strict-install.yml` triggers on a master push and a manual dispatch only, so a pull request no longer shows a skipped `Strict install` row; the merge queue and the bot-PR dispatch no longer run it. (refs #5002)
140
+
141
+ - Shard 5 prints a per-file census of managed processes whose owner pid is dead, naming the test file whose worker spawned each (refs #5528).
142
+
143
+ - Join the registered deferred writers before `tests/index-3814-deferred-blocker-gate.test.ts` removes its witness home, watch the removed path, and spell the home at an `mkdtempSync` call the tmp-fixture census can attribute. (refs #5098)
144
+
145
+ - **Test witnesses wait for marker content, not existence.**
146
+ An empty marker can release a waiter that reads a report path or PID
147
+ from it. The scanner, tool-abort and madge witnesses, and the mutate
148
+ and outside-root waits, now wait for nonempty marker content.
149
+ (refs #5105)
150
+
151
+ - Require explicit boolean npm cache intent for every setup-node step, scope workflow writes to jobs, and cancel superseded PR scans. (refs #5182)
152
+
153
+ - Read `vi.doMock` in the whole-module mock-export sweep. Only hoisted `vi.mock` skips an importer, and the flake-shape scan and the trust-seam ratchet share one registration list. (refs #5256)
154
+
155
+ - **The test harness opts the loaded extension copy out of arming the orphan backstop.** `startPiSession` holds `PI_LENS_DISABLE_ORPHAN_BACKSTOP=1` across a tier-2 session start and `scheduleUntrackedOrphanSweep` reads it at arm time, so a harness session cannot SIGKILL fixture processes whose owner tags point at pids the harness already reaped. The key is a harness knob, not a supported user setting: `vitest-setup` scrubs a shell's value, and the spelling and the literal `"1"` contract are pinned by `tests/support/pi-session.test.ts` and `tests/clients/env-boolean-knob-literals.test.ts`. (refs #5267)
156
+
157
+ - The pre-push gate pins its own temp root instead of inheriting the caller's `TMPDIR`: `scripts/pre-push-targeted-tests.mjs` resolves `<PI_LENS_HOME or ~/.pi-lens>/prepush-tmp` (falling back to `~/.pi-lens/prepush-tmp`, with one notice line, when a `PI_LENS_HOME` base sits at or inside the checkout, where Vitest's worker home would trip the home-ceiling guard), creates a fresh real `run-*` directory for each run, removed after completion (including failure); interrupts first terminate and drain the owned wrapper and Vitest tree, and a drain timeout preserves the original directory with a warning, and points `TMPDIR`/`TEMP`/`TMP` there before any build, self-scan, selection, or test spawn, so macOS's long, symlinked `/private/var/folders/...` root can no longer red path-sensitive tests on the same commit that passes under a short real root. Allocation uses the existing scratch owner seam rather than a special hygiene admission. `PI_LENS_PREPUSH_TMPDIR` is the operator escape hatch, and the startup line records the resolved root and the caller's value (refs #5439). At startup the pre-push gate removes stale `run-*` directories left by detached late writers, preserves live scratch owners, and skips unsafe entries with one degradation line (refs #5439).
158
+
159
+ - Delete two wait-strategy rows keyed by names no LSP server has (`rust-analyzer`, `eslint`), measure why rust must not be re-keyed as it was, and fail any strategy key that is not a registry id. (refs #5485)
160
+
161
+ - **The server-teardown admission re-check now classifies each admitted file once.** Four admitted rows named three files, and the guard read and parsed each file again per row and again for the mechanism, so the case cost 1.07 s on Linux and timed out once at 5000 ms on the Windows leg (#5508). It now reads and classifies each distinct file once and checks every row against that one classification, which cut it to about 0.2 s on Linux. The Windows leg did not get faster (1.48 s on this change), so the fix there is a scaled 20 s budget in place of vitest's 5 s default. Every row is still re-checked, and a new case pins that one binding's close evidence no longer carries another's. (refs #5508)
162
+
163
+ - Run the `/lens-perf` render cell under a pinned trusted project, so a spawn left in flight can no longer add a `trust-refusal` row to its exact-list assertion. (refs #5509)
164
+
165
+ - Reach the workspace-glob memo cap from a 119-character member path instead of a 1,415-character one (the server-policy Cargo cell and the uv consumer cell no longer hit macOS `PATH_MAX`), and pass the generated pre-push probe's paths and argv through environment variables instead of interpolating them into its source (resolves CodeQL alerts 83 and 84). (refs #5521)
166
+
167
+ - The nightly capability doc keeps the raw-capability intro above carried server bullets (refs #5526).
168
+
169
+ - The #3179 race test drops `-p` from its churner `mkdir`, so a late writer cannot recreate the temp root the test removed (#5527).
170
+
171
+ - The pre-push gate's default temp root moves from `~/.pi-lens/prepush-tmp` to `~/.local/share/pi-lens-prepush`, outside every path `isPiLensInternalPath` treats as pi-lens-owned, so fixtures built under `os.tmpdir()` are no longer dropped and the turn-scenarios gitleaks cell stops redding every push that selects it (refs #5536).
172
+
173
+ - The turn-id observability test drains every log sink before it removes its temp home, so a row queued by its last case no longer recreates the directory during teardown (refs #5569).
174
+
175
+ - Join the `session_start` global-bin-dir prime in the test harness's background-write drains, so a tier-2 session's late `spawn_resource_usage` row no longer re-creates its removed fixture home and reds `tmp-fixture-hygiene`. (refs #4909)
176
+
177
+ - **Three hand-written realpath fallbacks now answer through the path-identity seam.** The probe-home tmpdir and real-home checks, the explicit analysis root of a fresh project run, and the git checkout `root` and `commonDir` now share `realpathOrResolve` and `isWithinIdentity`, and the three `PRE_4689` `raw-realpath` pins are gone. An answer changes only for a missing path spelled through a symbolic link; the fresh-run root answers as before, because its directory check runs first. (refs #4907)
178
+
179
+ - A governance check now fails the suite when a checked-in baseline has no owner test, or an owner that never reddens on a planted stale row. It takes every tracked file, finds baselines by name, by an exported binding name, or by JSON rows that name repo files, and fails on any it cannot place. Twenty baselines are covered, each by a planted-stale-row cell in its owner (refs #5072).
180
+
181
+ - **The run-outcome ratchet now audits `scripts/` and `clients/lsp/`.** A file under either root that starts a child process either routes through `classifyRunOutcome`, or carries a baseline row spelling out how a failed child reaches it (it throws, or it reads `status`/`exitCode`/`signal`/`killed`/`error`); the census follows a spawn that arrives through an import alias, an injected default, a namespace member, or a hand-off, and reports a `require`, a dynamic `import()`, or a re-export it cannot open instead of skipping it. 77 files with 152 spawn sites carry a row today. (refs #5308)
182
+
183
+ - Avoid an unnecessary complexity-analysis wait in path-attribution tests. (refs #5566)
184
+
185
+ - Make the self-scan and dependency-cruiser baselines red on a row nothing matches any more, so a fixed finding or cycle cannot leave a free pass behind. (refs #4907)
186
+
187
+ - Make the label-triage and ci-verdict pagination tests read the bearer header of every page they fetch, drop the kill-signal assertion from the knip purge timeout test (a 1 ms timeout on a real `git` races the child's exit, so only the `ETIMEDOUT` code is stable), and delete a self-asserting install-smoke drift case. (refs #4907)
188
+
189
+ </details>
190
+
19
191
  ## [4.4.12] - 2026-11-10
20
192
 
21
193
  ### Added