@herbertgao/pi-extensions 2026.10.19 → 2026.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/CHANGELOG.md +759 -0
  2. package/README.md +21 -6
  3. package/THIRD_PARTY_NOTICES.md +53 -2
  4. package/extensions/clef.mjs +1 -1
  5. package/node_modules/@herbertgao/pi-agency/CHANGELOG.md +19 -0
  6. package/node_modules/@herbertgao/pi-agency/package.json +4 -2
  7. package/node_modules/@herbertgao/pi-agency/src/index.ts +1 -1
  8. package/node_modules/@herbertgao/pi-bark/CHANGELOG.md +52 -0
  9. package/node_modules/@herbertgao/pi-bark/package.json +2 -1
  10. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +207 -0
  11. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +7 -5
  12. package/node_modules/@herbertgao/pi-cc-extensions/README.md +10 -7
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +20 -0
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +61 -6
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +11 -16
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +60 -11
  17. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/compact-thinking.ts +29 -11
  18. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer-layout.ts +54 -6
  19. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +23 -5
  20. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/session-tokens.ts +52 -0
  21. package/node_modules/@herbertgao/pi-cc-extensions/package.json +5 -4
  22. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +13 -0
  23. package/node_modules/@herbertgao/pi-impeccable/package.json +2 -1
  24. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  25. package/node_modules/@herbertgao/pi-subagents/README.md +142 -45
  26. package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +17 -7
  27. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  28. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +111 -59
  29. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +135 -117
  30. package/node_modules/@herbertgao/pi-subagents/src/cross-extension-rpc.ts +41 -14
  31. package/node_modules/@herbertgao/pi-subagents/src/index.ts +110 -19
  32. package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +8 -0
  33. package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +31 -0
  34. package/node_modules/@herbertgao/sol-pi/CHANGELOG.md +84 -0
  35. package/node_modules/@herbertgao/sol-pi/README.md +3 -3
  36. package/node_modules/@herbertgao/sol-pi/THIRD_PARTY_NOTICES.md +4 -4
  37. package/node_modules/@herbertgao/sol-pi/agents-install.md +3 -3
  38. package/node_modules/@herbertgao/sol-pi/docs/compatibility.md +1 -1
  39. package/node_modules/@herbertgao/sol-pi/package.json +2 -1
  40. package/node_modules/@tintinweb/pi-tasks/CHANGELOG.md +270 -0
  41. package/node_modules/@tintinweb/pi-tasks/CONTRIBUTING.md +67 -0
  42. package/node_modules/@tintinweb/pi-tasks/CUSTOMIZING.md +289 -0
  43. package/node_modules/@tintinweb/pi-tasks/LICENSE +21 -0
  44. package/node_modules/@tintinweb/pi-tasks/README.md +417 -0
  45. package/node_modules/@tintinweb/pi-tasks/SECURITY.md +107 -0
  46. package/node_modules/@tintinweb/pi-tasks/dist/auto-clear.d.ts +64 -0
  47. package/node_modules/@tintinweb/pi-tasks/dist/auto-clear.js +129 -0
  48. package/node_modules/@tintinweb/pi-tasks/dist/index.d.ts +17 -0
  49. package/node_modules/@tintinweb/pi-tasks/dist/index.js +1338 -0
  50. package/node_modules/@tintinweb/pi-tasks/dist/process-tracker.d.ts +29 -0
  51. package/node_modules/@tintinweb/pi-tasks/dist/process-tracker.js +121 -0
  52. package/node_modules/@tintinweb/pi-tasks/dist/reminder-cadence.d.ts +39 -0
  53. package/node_modules/@tintinweb/pi-tasks/dist/reminder-cadence.js +61 -0
  54. package/node_modules/@tintinweb/pi-tasks/dist/task-glyphs.d.ts +48 -0
  55. package/node_modules/@tintinweb/pi-tasks/dist/task-glyphs.js +68 -0
  56. package/node_modules/@tintinweb/pi-tasks/dist/task-paths.d.ts +44 -0
  57. package/node_modules/@tintinweb/pi-tasks/dist/task-paths.js +60 -0
  58. package/node_modules/@tintinweb/pi-tasks/dist/task-sort.d.ts +23 -0
  59. package/node_modules/@tintinweb/pi-tasks/dist/task-sort.js +69 -0
  60. package/node_modules/@tintinweb/pi-tasks/dist/task-store.d.ts +61 -0
  61. package/node_modules/@tintinweb/pi-tasks/dist/task-store.js +397 -0
  62. package/node_modules/@tintinweb/pi-tasks/dist/tasks-config.d.ts +16 -0
  63. package/node_modules/@tintinweb/pi-tasks/dist/tasks-config.js +51 -0
  64. package/node_modules/@tintinweb/pi-tasks/dist/types.d.ts +36 -0
  65. package/node_modules/@tintinweb/pi-tasks/dist/types.js +4 -0
  66. package/node_modules/@tintinweb/pi-tasks/dist/ui/settings-menu.d.ts +15 -0
  67. package/node_modules/@tintinweb/pi-tasks/dist/ui/settings-menu.js +140 -0
  68. package/node_modules/@tintinweb/pi-tasks/dist/ui/task-widget.d.ts +69 -0
  69. package/node_modules/@tintinweb/pi-tasks/dist/ui/task-widget.js +278 -0
  70. package/node_modules/@tintinweb/pi-tasks/package.json +57 -0
  71. package/node_modules/@tintinweb/pi-tasks/src/auto-clear.ts +134 -0
  72. package/node_modules/@tintinweb/pi-tasks/src/index.ts +1417 -0
  73. package/node_modules/@tintinweb/pi-tasks/src/process-tracker.ts +140 -0
  74. package/node_modules/@tintinweb/pi-tasks/src/reminder-cadence.ts +90 -0
  75. package/node_modules/@tintinweb/pi-tasks/src/task-glyphs.ts +110 -0
  76. package/node_modules/@tintinweb/pi-tasks/src/task-paths.ts +65 -0
  77. package/node_modules/@tintinweb/pi-tasks/src/task-sort.ts +90 -0
  78. package/node_modules/@tintinweb/pi-tasks/src/task-store.ts +402 -0
  79. package/node_modules/@tintinweb/pi-tasks/src/tasks-config.ts +77 -0
  80. package/node_modules/@tintinweb/pi-tasks/src/types.ts +40 -0
  81. package/node_modules/@tintinweb/pi-tasks/src/ui/settings-menu.ts +174 -0
  82. package/node_modules/@tintinweb/pi-tasks/src/ui/task-widget.ts +325 -0
  83. package/node_modules/pi-commandcode-provider/CHANGELOG.md +330 -0
  84. package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +192 -0
  85. package/node_modules/pi-commandcode-provider/LICENSE +21 -0
  86. package/node_modules/pi-commandcode-provider/README.md +243 -0
  87. package/node_modules/pi-commandcode-provider/RELEASE.md +194 -0
  88. package/node_modules/pi-commandcode-provider/index.ts +309 -0
  89. package/node_modules/pi-commandcode-provider/package.json +91 -0
  90. package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +87 -0
  91. package/node_modules/pi-commandcode-provider/scripts/pi-authenticated.mjs +50 -0
  92. package/node_modules/pi-commandcode-provider/scripts/pi-isolated.mjs +79 -0
  93. package/node_modules/pi-commandcode-provider/src/api-key.ts +69 -0
  94. package/node_modules/pi-commandcode-provider/src/auth-server.ts +229 -0
  95. package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +28 -0
  96. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +260 -0
  97. package/node_modules/pi-commandcode-provider/src/converters.ts +477 -0
  98. package/node_modules/pi-commandcode-provider/src/core.ts +836 -0
  99. package/node_modules/pi-commandcode-provider/src/cost.ts +76 -0
  100. package/node_modules/pi-commandcode-provider/src/json-schema.ts +417 -0
  101. package/node_modules/pi-commandcode-provider/src/models.ts +515 -0
  102. package/node_modules/pi-commandcode-provider/src/oauth.ts +229 -0
  103. package/node_modules/pi-commandcode-provider/src/overflow.ts +120 -0
  104. package/node_modules/pi-commandcode-provider/src/pricing.ts +370 -0
  105. package/node_modules/pi-commandcode-provider/src/quota-command.ts +66 -0
  106. package/node_modules/pi-commandcode-provider/src/quota-format.ts +143 -0
  107. package/node_modules/pi-commandcode-provider/src/quota-types.ts +47 -0
  108. package/node_modules/pi-commandcode-provider/src/quota.ts +357 -0
  109. package/node_modules/pi-commandcode-provider/src/responses-stream.ts +249 -0
  110. package/node_modules/pi-commandcode-provider/src/runtime.ts +330 -0
  111. package/node_modules/pi-commandcode-provider/src/transcript.ts +56 -0
  112. package/node_modules/pi-commandcode-provider/src/transport.ts +147 -0
  113. package/node_modules/pi-commandcode-provider/src/types.ts +212 -0
  114. package/node_modules/pi-commandcode-provider/src/usage.ts +261 -0
  115. package/node_modules/pi-lens/CHANGELOG.md +149 -0
  116. package/node_modules/pi-lens/README.md +12 -2
  117. package/node_modules/pi-lens/config/markdownlint/run-no-fix.mjs +36 -0
  118. package/node_modules/pi-lens/dist/{chunk-WME2OQST.js → chunk-2453RRJ2.js} +11 -6
  119. package/node_modules/pi-lens/dist/{chunk-FZKFVUEC.js → chunk-2BKUFQKR.js} +276 -208
  120. package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +31 -0
  121. package/node_modules/pi-lens/dist/{chunk-QHSNL7B2.js → chunk-2ZE3AUJQ.js} +12 -14
  122. package/node_modules/pi-lens/dist/{chunk-MPKRJBPK.js → chunk-35WKJWO5.js} +28 -30
  123. package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +27 -0
  124. package/node_modules/pi-lens/dist/{chunk-4LM3VAZH.js → chunk-3O5EII3W.js} +2 -2
  125. package/node_modules/pi-lens/dist/chunk-447YZL4S.js +25 -0
  126. package/node_modules/pi-lens/dist/{chunk-H7OR7DFZ.js → chunk-4B2YFN4U.js} +25 -21
  127. package/node_modules/pi-lens/dist/{chunk-OSTKYB55.js → chunk-4BKU7PV3.js} +1 -1
  128. package/node_modules/pi-lens/dist/{chunk-RRV3FNNM.js → chunk-4LL2VRNY.js} +27 -28
  129. package/node_modules/pi-lens/dist/{chunk-BZARLRJW.js → chunk-4NBWFYWW.js} +9 -9
  130. package/node_modules/pi-lens/dist/{chunk-KKCK636N.js → chunk-4QG55RRC.js} +12 -12
  131. package/node_modules/pi-lens/dist/{chunk-RQS4QQSD.js → chunk-4W52ZKZX.js} +2 -2
  132. package/node_modules/pi-lens/dist/{chunk-Z2XAOKHK.js → chunk-565VRUP4.js} +2 -2
  133. package/node_modules/pi-lens/dist/{chunk-HWDAVBFU.js → chunk-57X2CDRX.js} +23 -23
  134. package/node_modules/pi-lens/dist/{chunk-MB6PXBUA.js → chunk-5F3XF3SX.js} +7 -15
  135. package/node_modules/pi-lens/dist/{chunk-O4BJFESU.js → chunk-5RNB4HVK.js} +1 -1
  136. package/node_modules/pi-lens/dist/{chunk-ZMAUPOMG.js → chunk-5T5A6YAJ.js} +35 -34
  137. package/node_modules/pi-lens/dist/{chunk-4ZYJHQMB.js → chunk-6FIRFP6A.js} +12 -12
  138. package/node_modules/pi-lens/dist/{chunk-4YHYPW2G.js → chunk-6GMGEKQN.js} +9 -5
  139. package/node_modules/pi-lens/dist/{chunk-4LOE5R5P.js → chunk-6LJOJ6EO.js} +20 -15
  140. package/node_modules/pi-lens/dist/{chunk-3YY7IXIL.js → chunk-6YUNI7B5.js} +3 -3
  141. package/node_modules/pi-lens/dist/{chunk-PKES3ISE.js → chunk-7ANZ7XDD.js} +2 -2
  142. package/node_modules/pi-lens/dist/{chunk-FB5SCCPT.js → chunk-7CGIDRIK.js} +16 -15
  143. package/node_modules/pi-lens/dist/{chunk-L3CMBQMH.js → chunk-7MAD5ZAY.js} +16 -17
  144. package/node_modules/pi-lens/dist/{chunk-WDBICWH3.js → chunk-7TNILKGY.js} +1 -1
  145. package/node_modules/pi-lens/dist/{chunk-RORGS5II.js → chunk-A5GRLYPZ.js} +9 -9
  146. package/node_modules/pi-lens/dist/{chunk-MNJIXFX4.js → chunk-AGGUWKRK.js} +1 -1
  147. package/node_modules/pi-lens/dist/{chunk-ABPKUVA4.js → chunk-BBET6HD6.js} +1 -1
  148. package/node_modules/pi-lens/dist/{chunk-L5JYIU47.js → chunk-BHWW6FAX.js} +14 -13
  149. package/node_modules/pi-lens/dist/{chunk-URCQWAQ4.js → chunk-BOPDQ7AZ.js} +23 -21
  150. package/node_modules/pi-lens/dist/{chunk-KDX35VXP.js → chunk-BQG2QFVO.js} +158 -133
  151. package/node_modules/pi-lens/dist/{chunk-CB4WHS4H.js → chunk-BUZIQDFS.js} +3 -3
  152. package/node_modules/pi-lens/dist/{chunk-2PHMIAKO.js → chunk-CM73PPGD.js} +4 -4
  153. package/node_modules/pi-lens/dist/{chunk-DH5JPM3K.js → chunk-CUDD35TW.js} +10 -9
  154. package/node_modules/pi-lens/dist/{chunk-AWDSEDER.js → chunk-CZL44WFN.js} +2 -2
  155. package/node_modules/pi-lens/dist/{chunk-N5WSK2K7.js → chunk-DIWK3LBC.js} +12 -15
  156. package/node_modules/pi-lens/dist/{chunk-24BILSZW.js → chunk-DYRZGUMA.js} +2 -2
  157. package/node_modules/pi-lens/dist/{chunk-PR6PO3ES.js → chunk-FHEV6T4L.js} +22 -18
  158. package/node_modules/pi-lens/dist/{chunk-DQZFQSR5.js → chunk-FRLAUP2B.js} +4 -4
  159. package/node_modules/pi-lens/dist/{chunk-RZOXUSPC.js → chunk-G5GV2Q7K.js} +2 -2
  160. package/node_modules/pi-lens/dist/{chunk-EKWX4WD3.js → chunk-G6JKM4O7.js} +7 -7
  161. package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +27 -0
  162. package/node_modules/pi-lens/dist/{chunk-XT2HTCJ5.js → chunk-GIRBSBGL.js} +6 -5
  163. package/node_modules/pi-lens/dist/{chunk-PQJFG24Z.js → chunk-GMROJJRN.js} +1292 -946
  164. package/node_modules/pi-lens/dist/{chunk-U6VN4NVL.js → chunk-HHR7WGCI.js} +3 -3
  165. package/node_modules/pi-lens/dist/{chunk-TIQJPRDD.js → chunk-HKIL6DCL.js} +3 -2
  166. package/node_modules/pi-lens/dist/{chunk-SNDXCFRS.js → chunk-HUAM7QG3.js} +11 -11
  167. package/node_modules/pi-lens/dist/{chunk-QOE342SU.js → chunk-HXFUTMX2.js} +2 -2
  168. package/node_modules/pi-lens/dist/{chunk-U7BD2QL7.js → chunk-I22THIHI.js} +12 -12
  169. package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +58 -0
  170. package/node_modules/pi-lens/dist/{chunk-DPGEAHZT.js → chunk-IYVYZQRL.js} +10 -16
  171. package/node_modules/pi-lens/dist/{chunk-3F6BMY53.js → chunk-JBP7KESM.js} +1 -1
  172. package/node_modules/pi-lens/dist/{chunk-U5HPROLA.js → chunk-JE6HKLC7.js} +2 -2
  173. package/node_modules/pi-lens/dist/{chunk-ZE3KXHS7.js → chunk-JPRDTY5S.js} +85 -3
  174. package/node_modules/pi-lens/dist/{chunk-HO6LWE2E.js → chunk-JYLOYTZD.js} +17 -1
  175. package/node_modules/pi-lens/dist/{chunk-KW5JQPO5.js → chunk-JZRP4DGP.js} +2 -2
  176. package/node_modules/pi-lens/dist/{chunk-CPSR3AVL.js → chunk-KZ4ALBCH.js} +2 -2
  177. package/node_modules/pi-lens/dist/{chunk-6IR3ZYIB.js → chunk-L3CLUGDY.js} +3 -3
  178. package/node_modules/pi-lens/dist/{chunk-LV4UMYVH.js → chunk-L4NEVZ4T.js} +28 -27
  179. package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +22 -0
  180. package/node_modules/pi-lens/dist/{chunk-WGRJOXED.js → chunk-LSFXZLPW.js} +1016 -636
  181. package/node_modules/pi-lens/dist/{chunk-LBLBAFG3.js → chunk-MC6VB2E5.js} +4 -4
  182. package/node_modules/pi-lens/dist/{chunk-U2SDMG7C.js → chunk-NM2NWH55.js} +5 -5
  183. package/node_modules/pi-lens/dist/{chunk-T7A2HK2B.js → chunk-NSPVR3FN.js} +19 -18
  184. package/node_modules/pi-lens/dist/{chunk-ZGSJDWQU.js → chunk-O2ARHQKF.js} +2 -2
  185. package/node_modules/pi-lens/dist/{chunk-OXOI55RU.js → chunk-O4N5BQ3T.js} +10 -10
  186. package/node_modules/pi-lens/dist/{chunk-3FRLWYBG.js → chunk-OC7VWJBZ.js} +39 -40
  187. package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +89 -0
  188. package/node_modules/pi-lens/dist/{chunk-HR3OJ3TH.js → chunk-OWTG6UMO.js} +21 -21
  189. package/node_modules/pi-lens/dist/{chunk-75GAYVNO.js → chunk-OY7WZI7Q.js} +6 -6
  190. package/node_modules/pi-lens/dist/{chunk-ZJTT47IG.js → chunk-OZWXLJMX.js} +2 -2
  191. package/node_modules/pi-lens/dist/{chunk-F6X3YJWD.js → chunk-PIQQM32Y.js} +2 -2
  192. package/node_modules/pi-lens/dist/chunk-PKLB2XJL.js +8 -0
  193. package/node_modules/pi-lens/dist/{chunk-EAOK7MIZ.js → chunk-PKSUMEPT.js} +17 -4
  194. package/node_modules/pi-lens/dist/{chunk-YISME6ON.js → chunk-PPKECBPP.js} +1 -1
  195. package/node_modules/pi-lens/dist/{chunk-4L36HG27.js → chunk-R2QQC33W.js} +14 -14
  196. package/node_modules/pi-lens/dist/{chunk-LUBPZN36.js → chunk-R4QWJQ2H.js} +11 -11
  197. package/node_modules/pi-lens/dist/{chunk-V63BC55Q.js → chunk-RGGH6M34.js} +1 -1
  198. package/node_modules/pi-lens/dist/{chunk-Y7F7IEE3.js → chunk-RZG472YW.js} +65 -7
  199. package/node_modules/pi-lens/dist/{chunk-PUZ3E2J4.js → chunk-SDFKOLSF.js} +6 -6
  200. package/node_modules/pi-lens/dist/{chunk-YHC2O2WO.js → chunk-SFLHSL5R.js} +9 -9
  201. package/node_modules/pi-lens/dist/{chunk-CCV2EU7T.js → chunk-SP4TFY5F.js} +14 -13
  202. package/node_modules/pi-lens/dist/{chunk-J6JP25XU.js → chunk-SQC7K3SP.js} +4 -3
  203. package/node_modules/pi-lens/dist/{chunk-3K2F6UDZ.js → chunk-T2S3FNNJ.js} +44 -42
  204. package/node_modules/pi-lens/dist/{chunk-2TF6RXWB.js → chunk-TV6RXRYH.js} +10 -10
  205. package/node_modules/pi-lens/dist/{chunk-GNSIWBAT.js → chunk-U3AS2FR6.js} +3 -3
  206. package/node_modules/pi-lens/dist/{chunk-F7K5IBZG.js → chunk-UHHLR2VY.js} +40 -40
  207. package/node_modules/pi-lens/dist/chunk-UYXV5NIS.js +20 -0
  208. package/node_modules/pi-lens/dist/{chunk-VSFLRN5Y.js → chunk-VLQ7UKZH.js} +1 -1
  209. package/node_modules/pi-lens/dist/{chunk-VUZWQ7UG.js → chunk-VN3L2JWZ.js} +46 -72
  210. package/node_modules/pi-lens/dist/{chunk-NA7SEXHE.js → chunk-VOP4PJKA.js} +7 -7
  211. package/node_modules/pi-lens/dist/{chunk-F5Z6URKM.js → chunk-VOXTCULR.js} +2 -2
  212. package/node_modules/pi-lens/dist/{chunk-LLS45EWB.js → chunk-VPLBLWFO.js} +6 -8
  213. package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +27 -0
  214. package/node_modules/pi-lens/dist/{chunk-ZKXQKGWZ.js → chunk-WC6WRNQT.js} +4 -3
  215. package/node_modules/pi-lens/dist/{chunk-YVHBNSME.js → chunk-WMDUT4KH.js} +1148 -1132
  216. package/node_modules/pi-lens/dist/{chunk-KXF5R4UN.js → chunk-WQV6BI4Q.js} +1 -1
  217. package/node_modules/pi-lens/dist/chunk-WXUDRAG6.js +24 -0
  218. package/node_modules/pi-lens/dist/{chunk-KPPJTH44.js → chunk-X35S7HSB.js} +28 -10
  219. package/node_modules/pi-lens/dist/{chunk-JMEKXFOL.js → chunk-X66YJ2SS.js} +40 -34
  220. package/node_modules/pi-lens/dist/{chunk-CE6VMBCB.js → chunk-XOMGO63G.js} +22 -21
  221. package/node_modules/pi-lens/dist/{chunk-LS3QJRUB.js → chunk-XWIME22V.js} +13 -13
  222. package/node_modules/pi-lens/dist/{chunk-R5MOQM2H.js → chunk-XYLC35E4.js} +119 -87
  223. package/node_modules/pi-lens/dist/{chunk-OE5ZBP7F.js → chunk-YHGYAEFH.js} +18 -18
  224. package/node_modules/pi-lens/dist/{chunk-7E2563GA.js → chunk-ZFORSIED.js} +13 -13
  225. package/node_modules/pi-lens/dist/{chunk-E7HJ56Y7.js → chunk-ZKLTNLAW.js} +64 -73
  226. package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +74 -0
  227. package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +30 -0
  228. package/node_modules/pi-lens/dist/{chunk-RC2Z6K47.js → chunk-ZZDIOAAJ.js} +15 -6
  229. package/node_modules/pi-lens/dist/index.js +6993 -5396
  230. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -10
  231. package/node_modules/pi-lens/dist/mcp/cli.js +44 -42
  232. package/node_modules/pi-lens/dist/mcp/server.js +1627 -504
  233. package/node_modules/pi-lens/dist/mcp/worker.js +62 -61
  234. package/node_modules/pi-lens/dist/probes/installer.js +20 -19
  235. package/node_modules/pi-lens/docs/adr/0003-git-guard-latch-writer.md +11 -6
  236. package/node_modules/pi-lens/docs/agent-tools.md +18 -8
  237. package/node_modules/pi-lens/docs/alignment-families.md +29 -0
  238. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +6 -4
  239. package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +126 -0
  240. package/node_modules/pi-lens/docs/configuration.md +99 -3
  241. package/node_modules/pi-lens/docs/defect-shapes.md +55 -12
  242. package/node_modules/pi-lens/docs/engineering-principles.md +27 -2
  243. package/node_modules/pi-lens/docs/features.md +2 -2
  244. package/node_modules/pi-lens/docs/invariants/git-guard-host.md +7 -3
  245. package/node_modules/pi-lens/docs/invariants/language-config.md +15 -4
  246. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +16 -2
  247. package/node_modules/pi-lens/docs/invariants/paths-os.md +4 -2
  248. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +119 -39
  249. package/node_modules/pi-lens/docs/merge-queue-rollout.md +1 -1
  250. package/node_modules/pi-lens/docs/pi-lens-fixer.md +24 -17
  251. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +20 -11
  252. package/node_modules/pi-lens/docs/pi-lens-monitor.md +9 -0
  253. package/node_modules/pi-lens/docs/pi-lens-orchestration.md +4 -1
  254. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +5 -5
  255. package/node_modules/pi-lens/docs/pi-lens-subagent.md +6 -3
  256. package/node_modules/pi-lens/docs/public-api-stability.md +18 -2
  257. package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +10 -0
  258. package/node_modules/pi-lens/docs/settings.md +10 -6
  259. package/node_modules/pi-lens/docs/word-index.md +17 -5
  260. package/node_modules/pi-lens/package.json +5 -3
  261. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
  262. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
  263. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
  264. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
  265. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
  266. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
  267. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
  268. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
  269. package/node_modules/pi-lens/rules/ast-grep-rules/self-scan-baseline.json +1 -1
  270. package/node_modules/pi-provider-qoder/README.md +22 -0
  271. package/node_modules/pi-provider-qoder/dist/index.js +375 -12
  272. package/node_modules/pi-provider-qoder/package.json +5 -2
  273. package/package.json +17 -13
  274. package/node_modules/@tifan/pi-preferred-thinking/README.md +0 -54
  275. package/node_modules/@tifan/pi-preferred-thinking/package.json +0 -43
  276. package/node_modules/@tifan/pi-preferred-thinking/src/index.ts +0 -236
  277. package/node_modules/pi-lens/dist/chunk-46TNM7XZ.js +0 -88
  278. package/node_modules/pi-lens/dist/chunk-72OKUXSD.js +0 -31
  279. package/node_modules/pi-lens/dist/chunk-7GLOLOSH.js +0 -57
  280. package/node_modules/pi-lens/dist/chunk-AKUUMGD5.js +0 -26
  281. package/node_modules/pi-lens/dist/chunk-ASUXV767.js +0 -22
  282. package/node_modules/pi-lens/dist/chunk-CTADOKYM.js +0 -25
  283. package/node_modules/pi-lens/dist/chunk-JJ2RRESP.js +0 -58
  284. package/node_modules/pi-lens/dist/chunk-LSC3VADM.js +0 -23
  285. package/node_modules/pi-lens/dist/chunk-SHLDT3OI.js +0 -27
  286. package/node_modules/pi-lens/dist/chunk-UF7RTZSO.js +0 -27
  287. package/node_modules/pi-lens/dist/chunk-W4WP2ERB.js +0 -30
  288. package/node_modules/pi-lens/dist/chunk-YES5CACN.js +0 -73
@@ -0,0 +1,229 @@
1
+ /**
2
+ * Local HTTP callback server for the Command Code browser auth flow.
3
+ *
4
+ * Starts a one-shot server on a CLI-compatible localhost port. The Command Code
5
+ * Studio website POSTs the user's API key to /callback after they authenticate.
6
+ */
7
+
8
+ import { createServer, type Server } from "node:http"
9
+ import type { AddressInfo } from "node:net"
10
+
11
+ const DEFAULT_PORT = 5959
12
+ const DEFAULT_PORT_RANGE = 10
13
+
14
+ export interface AuthCallback {
15
+ apiKey: string
16
+ state: string
17
+ userId: string
18
+ userName: string
19
+ keyName: string
20
+ }
21
+
22
+ export interface AuthServer {
23
+ server: Server
24
+ port: number
25
+ waitForCallback: Promise<AuthCallback>
26
+ }
27
+
28
+ export interface AuthServerOptions {
29
+ startPort?: number
30
+ portRange?: number
31
+ expectedState?: string
32
+ }
33
+
34
+ function listenOnAvailablePort(
35
+ server: Server,
36
+ startPort = DEFAULT_PORT,
37
+ range = DEFAULT_PORT_RANGE,
38
+ ): Promise<number> {
39
+ return new Promise((resolve, reject) => {
40
+ let offset = 0
41
+
42
+ const tryListen = () => {
43
+ const useFallbackPort = startPort === 0 || offset >= range
44
+ const port = useFallbackPort ? 0 : startPort + offset
45
+
46
+ const onError = (err: NodeJS.ErrnoException) => {
47
+ server.off("listening", onListening)
48
+ if (err.code === "EADDRINUSE" && !useFallbackPort) {
49
+ offset += 1
50
+ tryListen()
51
+ return
52
+ }
53
+ reject(err)
54
+ }
55
+
56
+ const onListening = () => {
57
+ server.off("error", onError)
58
+ const address = server.address() as AddressInfo
59
+ resolve(address.port)
60
+ }
61
+
62
+ server.once("error", onError)
63
+ server.once("listening", onListening)
64
+ server.listen(port, "127.0.0.1")
65
+ }
66
+
67
+ tryListen()
68
+ })
69
+ }
70
+
71
+ function closeServer(server: Server) {
72
+ server.close((err: NodeJS.ErrnoException | undefined) => {
73
+ if (err && err.code !== "ERR_SERVER_NOT_RUNNING") {
74
+ // There is nowhere useful to report this during auth cleanup.
75
+ }
76
+ })
77
+ }
78
+
79
+ /**
80
+ * Start a local HTTP server that listens for the Command Code Studio
81
+ * to POST the API key after the user authenticates in their browser.
82
+ *
83
+ * The server accepts exactly one valid POST to /callback and then closes.
84
+ */
85
+ export async function startAuthServer(options: AuthServerOptions = {}): Promise<AuthServer> {
86
+ let resolveCallback!: (value: AuthCallback) => void
87
+ let rejectCallback!: (error: Error) => void
88
+
89
+ const waitForCallback = new Promise<AuthCallback>((resolve, reject) => {
90
+ resolveCallback = resolve
91
+ rejectCallback = reject
92
+ })
93
+
94
+ const server = createServer((req, res) => {
95
+ // CORS: allow requests from Command Code domains and localhost for dev.
96
+ const origin = req.headers.origin || ""
97
+ const allowedOrigins = [
98
+ "http://localhost:3000",
99
+ "https://staging.commandcode.ai",
100
+ "https://commandcode.ai",
101
+ ]
102
+ // CORS response headers do not prevent cross-origin POST side effects.
103
+ // Reject untrusted browser origins before handling the callback.
104
+ if (origin && !allowedOrigins.includes(origin)) {
105
+ res.writeHead(403, { "Content-Type": "application/json" })
106
+ res.end(JSON.stringify({ success: false, error: "Origin not allowed" }))
107
+ return
108
+ }
109
+
110
+ const responseOrigin = origin || allowedOrigins[0]
111
+ const requestedHeaders = req.headers["access-control-request-headers"]
112
+
113
+ res.setHeader("Access-Control-Allow-Origin", responseOrigin)
114
+ res.setHeader("Access-Control-Allow-Methods", "POST, OPTIONS")
115
+ res.setHeader(
116
+ "Access-Control-Allow-Headers",
117
+ typeof requestedHeaders === "string" && requestedHeaders.length > 0
118
+ ? requestedHeaders
119
+ : "Content-Type",
120
+ )
121
+ // Chrome's Private Network Access preflight may require this for an HTTPS
122
+ // page posting to a localhost HTTP callback.
123
+ res.setHeader("Access-Control-Allow-Private-Network", "true")
124
+ res.setHeader("Content-Type", "application/json")
125
+
126
+ // Handle CORS preflight.
127
+ if (req.method === "OPTIONS") {
128
+ res.writeHead(204)
129
+ res.end()
130
+ return
131
+ }
132
+
133
+ if (req.url !== "/callback") {
134
+ res.writeHead(404)
135
+ res.end(JSON.stringify({ success: false, error: "Not found" }))
136
+ return
137
+ }
138
+
139
+ if (req.method !== "POST") {
140
+ res.writeHead(405)
141
+ res.end(
142
+ JSON.stringify({
143
+ success: false,
144
+ error: "Method not allowed. Use POST.",
145
+ }),
146
+ )
147
+ return
148
+ }
149
+
150
+ let body = ""
151
+ req.on("data", (chunk) => {
152
+ body += chunk.toString()
153
+ if (body.length > 10_000) req.destroy()
154
+ })
155
+
156
+ req.on("end", () => {
157
+ try {
158
+ const parsed = JSON.parse(body) as Record<string, unknown>
159
+
160
+ if (parsed.error) {
161
+ res.writeHead(200)
162
+ res.end(JSON.stringify({ success: true }))
163
+ const description =
164
+ typeof parsed.error_description === "string"
165
+ ? parsed.error_description
166
+ : String(parsed.error)
167
+ if (parsed.error === "access_denied") {
168
+ rejectCallback(new Error(description || "Authorization was denied by the user"))
169
+ } else {
170
+ rejectCallback(new Error(description || String(parsed.error)))
171
+ }
172
+ closeServer(server)
173
+ return
174
+ }
175
+
176
+ const apiKey = typeof parsed.apiKey === "string" ? parsed.apiKey : ""
177
+ const state = typeof parsed.state === "string" ? parsed.state : ""
178
+ const userId = typeof parsed.userId === "string" ? parsed.userId : ""
179
+ const userName = typeof parsed.userName === "string" ? parsed.userName : ""
180
+ const keyName = typeof parsed.keyName === "string" ? parsed.keyName : ""
181
+
182
+ if (!apiKey || !state || !userId || !userName || !keyName) {
183
+ res.writeHead(400)
184
+ res.end(
185
+ JSON.stringify({
186
+ success: false,
187
+ error: "Missing required fields",
188
+ }),
189
+ )
190
+ return
191
+ }
192
+
193
+ if (options.expectedState !== undefined && state !== options.expectedState) {
194
+ res.writeHead(403)
195
+ res.end(JSON.stringify({ success: false, error: "Invalid state token" }))
196
+ return
197
+ }
198
+
199
+ res.writeHead(200)
200
+ res.end(JSON.stringify({ success: true }))
201
+
202
+ resolveCallback({ apiKey, state, userId, userName, keyName })
203
+ closeServer(server)
204
+ } catch {
205
+ res.writeHead(400)
206
+ res.end(JSON.stringify({ success: false, error: "Invalid JSON" }))
207
+ }
208
+ })
209
+
210
+ req.on("error", () => {
211
+ res.writeHead(500)
212
+ res.end(JSON.stringify({ success: false, error: "Request error" }))
213
+ })
214
+ })
215
+
216
+ try {
217
+ const port = await listenOnAvailablePort(
218
+ server,
219
+ options.startPort ?? DEFAULT_PORT,
220
+ options.portRange ?? DEFAULT_PORT_RANGE,
221
+ )
222
+ return { server, port, waitForCallback }
223
+ } catch (err) {
224
+ const message = err instanceof Error ? err.message : String(err)
225
+ const error = new Error(`Failed to start auth server: ${message}`)
226
+ rejectCallback(error)
227
+ throw error
228
+ }
229
+ }
@@ -0,0 +1,28 @@
1
+ import type { CommandCodeReasoningEffort } from "./commandcode-catalog.ts"
2
+
3
+ /**
4
+ * Manual reasoning-effort policy for models the official CLI marks as
5
+ * reasoning-capable without publishing selectable efforts.
6
+ *
7
+ * `src/commandcode-catalog.ts` is generated from the CLI package and must stay
8
+ * byte-identical to upstream so the daily drift check works. Entries here are
9
+ * merged over the generated catalog at load time. `npm run sync:commandcode-catalog`
10
+ * deletes an entry as soon as upstream publishes its own levels, so nothing has to
11
+ * be removed by hand.
12
+ *
13
+ * An entry only takes effect for a model the generated catalog already marks as
14
+ * reasoning-capable: `src/core.ts` drops `reasoning_effort` when `model.reasoning`
15
+ * is false, and a model missing from `MODEL_REASONING` stays false. Upstream emits
16
+ * the flag whenever it emits efforts, so a sync that brings in new efforts brings
17
+ * the flag with it.
18
+ *
19
+ * Keep shared rationale above the declaration. The sync parses this object
20
+ * literal and preserves neighboring declarations; review entry-specific comments
21
+ * after pruning because they may describe removed entries.
22
+ *
23
+ * Add a model only when the effort parameter is known to be accepted by the
24
+ * Command Code endpoint.
25
+ */
26
+ export const MODEL_EFFORT_OVERRIDES: Readonly<
27
+ Record<string, readonly CommandCodeReasoningEffort[]>
28
+ > = {}
@@ -0,0 +1,260 @@
1
+ export const COMMAND_CODE_CLI_VERSION = "1.88.1"
2
+
3
+ export type CommandCodeInputType = "text" | "image"
4
+ export type CommandCodeReasoningEffort =
5
+ | "off"
6
+ | "minimal"
7
+ | "low"
8
+ | "medium"
9
+ | "high"
10
+ | "xhigh"
11
+ | "max"
12
+
13
+ /**
14
+ * Generated from command-code@1.88.1 by `npm run sync:commandcode-catalog`.
15
+ * Do not edit manually.
16
+ */
17
+ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCodeInputType[]>> = {
18
+ "claude-fable-5": ["text", "image"],
19
+ "claude-fable-5-1": ["text", "image"],
20
+ "claude-haiku-4-5-20251001": ["text", "image"],
21
+ "claude-haiku-5-5": ["text", "image"],
22
+ "claude-opus-4-7": ["text", "image"],
23
+ "claude-opus-4-8": ["text", "image"],
24
+ "claude-opus-5": ["text", "image"],
25
+ "claude-opus-5-5": ["text", "image"],
26
+ "claude-sonnet-4-6": ["text", "image"],
27
+ "claude-sonnet-5": ["text", "image"],
28
+ "claude-sonnet-5-5": ["text", "image"],
29
+ "deepseek/deepseek-v4-flash-vision-exp": ["text", "image"],
30
+ "deepseek/deepseek-v4.1-flash": ["text", "image"],
31
+ "deepseek/deepseek-v4.1-flash-fast": ["text", "image"],
32
+ "google/gemini-3.1-flash-lite": ["text", "image"],
33
+ "google/gemini-3.5-flash": ["text", "image"],
34
+ "google/gemini-3.5-flash-lite": ["text", "image"],
35
+ "google/gemini-3.6-flash": ["text", "image"],
36
+ "google/gemini-3.7-flash": ["text", "image"],
37
+ "google/gemini-3.8-flash": ["text", "image"],
38
+ "google/gemini-4-argon": ["text", "image"],
39
+ "gpt-5.3-codex": ["text", "image"],
40
+ "gpt-5.4": ["text", "image"],
41
+ "gpt-5.4-mini": ["text", "image"],
42
+ "gpt-5.5": ["text", "image"],
43
+ "gpt-5.6-luna": ["text", "image"],
44
+ "gpt-5.6-sol": ["text", "image"],
45
+ "gpt-5.6-terra": ["text", "image"],
46
+ "gpt-6-astra": ["text", "image"],
47
+ "gpt-6-luna": ["text", "image"],
48
+ "gpt-6-sol": ["text", "image"],
49
+ "gpt-6.1-sol": ["text", "image"],
50
+ "gpt-6.1-terra": ["text", "image"],
51
+ "meta/muse-spark-1.1": ["text", "image"],
52
+ "meta/muse-spark-1.2": ["text", "image"],
53
+ "meta/muse-spark-1.2-contributor": ["text", "image"],
54
+ "meta/muse-spark-1.3": ["text", "image"],
55
+ "meta/muse-spark-1.3-contributor": ["text", "image"],
56
+ "meta/muse-spark-open": ["text", "image"],
57
+ "meta/muse-wonder-1.0": ["text", "image"],
58
+ "minimax/minimax-m3.1-flash": ["text", "image"],
59
+ "MiniMaxAI/MiniMax-M3": ["text", "image"],
60
+ "mistral/mistral-large-4": ["text", "image"],
61
+ "moonshotai/Kimi-K2.5": ["text", "image"],
62
+ "moonshotai/Kimi-K2.6": ["text", "image"],
63
+ "moonshotai/Kimi-K2.7-Code": ["text", "image"],
64
+ "moonshotai/Kimi-K2.7-Code-Highspeed": ["text", "image"],
65
+ "moonshotai/Kimi-K3": ["text", "image"],
66
+ "moonshotai/Kimi-K3.1-Pro": ["text", "image"],
67
+ "nvidia/nemotron-3.5-super-vl": ["text", "image"],
68
+ "ornith/ornith-1.5-122b": ["text", "image"],
69
+ "Qwen/Qwen3.6-Plus": ["text", "image"],
70
+ "Qwen/Qwen3.7-Flash": ["text", "image"],
71
+ "Qwen/Qwen3.7-Plus": ["text", "image"],
72
+ "Qwen/Qwen3.8-27B": ["text", "image"],
73
+ "Qwen/Qwen3.8-Flash": ["text", "image"],
74
+ "Qwen/Qwen3.8-Max": ["text", "image"],
75
+ "Qwen/Qwen3.8-Max-0902": ["text", "image"],
76
+ "Qwen/Qwen3.8-Max-Prime": ["text", "image"],
77
+ "Qwen/Qwen3.8-Omni-Flash": ["text", "image"],
78
+ "sakana/fugu-ultra": ["text", "image"],
79
+ "stepfun/Step-3.7-Flash": ["text", "image"],
80
+ "stepfun/Step-5-Preview": ["text", "image"],
81
+ "thinkingmachines/inkling": ["text", "image"],
82
+ "thinkingmachines/inkling-small": ["text", "image"],
83
+ "xai/grok-4.5": ["text", "image"],
84
+ "xai/grok-4.6": ["text", "image"],
85
+ "xai/grok-4.7": ["text", "image"],
86
+ "xiaomi/mimo-v2.6-flash": ["text", "image"],
87
+ "xiaomi/mimo-v2.6-pro": ["text", "image"],
88
+ "xiaomi/mimo-v2.6-pro-ultraspeed": ["text", "image"],
89
+ "z-ai/glm-5.3-flash": ["text", "image"],
90
+ "z-ai/glm-5.3-flashx": ["text", "image"],
91
+ }
92
+
93
+ export const MODEL_REASONING: Readonly<Record<string, true>> = {
94
+ "claude-fable-5": true,
95
+ "claude-fable-5-1": true,
96
+ "claude-haiku-5-5": true,
97
+ "claude-opus-4-7": true,
98
+ "claude-opus-4-8": true,
99
+ "claude-opus-5": true,
100
+ "claude-opus-5-5": true,
101
+ "claude-sonnet-4-6": true,
102
+ "claude-sonnet-5": true,
103
+ "claude-sonnet-5-5": true,
104
+ "deepseek/deepseek-v4-flash": true,
105
+ "deepseek/deepseek-v4-flash-fast": true,
106
+ "deepseek/deepseek-v4-flash-vision-exp": true,
107
+ "deepseek/deepseek-v4-pro": true,
108
+ "deepseek/deepseek-v4.1-flash": true,
109
+ "deepseek/deepseek-v4.1-flash-fast": true,
110
+ "google/gemini-3.1-flash-lite": true,
111
+ "google/gemini-3.5-flash": true,
112
+ "google/gemini-3.5-flash-lite": true,
113
+ "google/gemini-3.6-flash": true,
114
+ "google/gemini-3.7-flash": true,
115
+ "google/gemini-3.8-flash": true,
116
+ "google/gemini-4-argon": true,
117
+ "gpt-5.3-codex": true,
118
+ "gpt-5.4": true,
119
+ "gpt-5.4-mini": true,
120
+ "gpt-5.5": true,
121
+ "gpt-5.6-luna": true,
122
+ "gpt-5.6-sol": true,
123
+ "gpt-5.6-terra": true,
124
+ "gpt-6-astra": true,
125
+ "gpt-6-luna": true,
126
+ "gpt-6-sol": true,
127
+ "gpt-6.1-sol": true,
128
+ "gpt-6.1-terra": true,
129
+ "inclusionai/ling-3.1-flash": true,
130
+ "meituan/LongCat-2.0": true,
131
+ "meta/muse-spark-1.1": true,
132
+ "meta/muse-spark-1.2": true,
133
+ "meta/muse-spark-1.2-contributor": true,
134
+ "meta/muse-spark-1.3": true,
135
+ "meta/muse-spark-1.3-contributor": true,
136
+ "meta/muse-spark-open": true,
137
+ "meta/muse-wonder-1.0": true,
138
+ "minimax/minimax-m3.1-flash": true,
139
+ "MiniMaxAI/MiniMax-M3": true,
140
+ "mistral/mistral-large-4": true,
141
+ "moonshotai/Kimi-K2.7-Code": true,
142
+ "moonshotai/Kimi-K2.7-Code-Highspeed": true,
143
+ "moonshotai/Kimi-K3": true,
144
+ "moonshotai/Kimi-K3.1-Pro": true,
145
+ "nvidia/nemotron-3-ultra-550b-a55b": true,
146
+ "nvidia/nemotron-3.5-super-vl": true,
147
+ "ornith/ornith-1.5-122b": true,
148
+ "poolside/laguna-s-2.1-free": true,
149
+ "Qwen/Qwen3.6-Max-Preview": true,
150
+ "Qwen/Qwen3.6-Plus": true,
151
+ "Qwen/Qwen3.7-Flash": true,
152
+ "Qwen/Qwen3.7-Max": true,
153
+ "Qwen/Qwen3.7-Plus": true,
154
+ "Qwen/Qwen3.8-27B": true,
155
+ "Qwen/Qwen3.8-Flash": true,
156
+ "Qwen/Qwen3.8-Max": true,
157
+ "Qwen/Qwen3.8-Max-0902": true,
158
+ "Qwen/Qwen3.8-Max-Prime": true,
159
+ "Qwen/Qwen3.8-Omni-Flash": true,
160
+ "reflection/beam:free": true,
161
+ "sakana/fugu-ultra": true,
162
+ "stealth/glyph-cluster:free": true,
163
+ "stepfun/Step-3.5-Flash": true,
164
+ "stepfun/Step-3.7-Flash": true,
165
+ "stepfun/Step-5-Preview": true,
166
+ "tencent/hy3-paid": true,
167
+ "tencent/hy4-preview": true,
168
+ "thinkingmachines/inkling": true,
169
+ "thinkingmachines/inkling-small": true,
170
+ "xai/grok-4.5": true,
171
+ "xai/grok-4.6": true,
172
+ "xai/grok-4.7": true,
173
+ "z-ai/glm-5.3-flash": true,
174
+ "z-ai/glm-5.3-flashx": true,
175
+ "zai-org/GLM-5.2": true,
176
+ "zai-org/GLM-5.3": true,
177
+ }
178
+
179
+ export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasoningEffort[]>> = {
180
+ "claude-fable-5": ["low", "medium", "high", "xhigh", "max"],
181
+ "claude-fable-5-1": ["low", "medium", "high", "xhigh", "max"],
182
+ "claude-haiku-5-5": ["low", "medium", "high", "xhigh", "max"],
183
+ "claude-opus-4-7": ["low", "medium", "high", "xhigh", "max"],
184
+ "claude-opus-4-8": ["low", "medium", "high", "xhigh", "max"],
185
+ "claude-opus-5": ["low", "medium", "high", "xhigh", "max"],
186
+ "claude-opus-5-5": ["low", "medium", "high", "xhigh", "max"],
187
+ "claude-sonnet-4-6": ["low", "medium", "high", "xhigh", "max"],
188
+ "claude-sonnet-5": ["low", "medium", "high", "xhigh", "max"],
189
+ "claude-sonnet-5-5": ["low", "medium", "high", "xhigh", "max"],
190
+ "deepseek/deepseek-v4-flash": ["off", "high", "max"],
191
+ "deepseek/deepseek-v4-flash-fast": ["low", "high", "max"],
192
+ "deepseek/deepseek-v4-flash-vision-exp": ["off", "high", "max"],
193
+ "deepseek/deepseek-v4-pro": ["off", "high", "max"],
194
+ "deepseek/deepseek-v4.1-flash": ["off", "low", "high", "max"],
195
+ "deepseek/deepseek-v4.1-flash-fast": ["off", "low", "high", "max"],
196
+ "google/gemini-3.1-flash-lite": ["low", "medium", "high"],
197
+ "google/gemini-3.5-flash": ["low", "medium", "high"],
198
+ "google/gemini-3.5-flash-lite": ["low", "medium", "high"],
199
+ "google/gemini-3.6-flash": ["low", "medium", "high"],
200
+ "google/gemini-3.7-flash": ["low", "medium", "high"],
201
+ "google/gemini-3.8-flash": ["low", "medium", "high"],
202
+ "google/gemini-4-argon": ["low", "medium", "high"],
203
+ "gpt-5.3-codex": ["low", "medium", "high", "xhigh"],
204
+ "gpt-5.4": ["low", "medium", "high", "xhigh"],
205
+ "gpt-5.4-mini": ["low", "medium", "high"],
206
+ "gpt-5.5": ["low", "medium", "high", "xhigh"],
207
+ "gpt-5.6-luna": ["low", "medium", "high", "xhigh", "max"],
208
+ "gpt-5.6-sol": ["low", "medium", "high", "xhigh", "max"],
209
+ "gpt-5.6-terra": ["low", "medium", "high", "xhigh", "max"],
210
+ "gpt-6-astra": ["low", "medium", "high", "xhigh", "max"],
211
+ "gpt-6-luna": ["low", "medium", "high", "xhigh", "max"],
212
+ "gpt-6-sol": ["low", "medium", "high", "xhigh", "max"],
213
+ "gpt-6.1-sol": ["low", "medium", "high", "xhigh", "max"],
214
+ "gpt-6.1-terra": ["low", "medium", "high", "xhigh", "max"],
215
+ "inclusionai/ling-3.1-flash": ["low", "medium", "high"],
216
+ "meta/muse-spark-1.1": ["low", "medium", "high", "xhigh"],
217
+ "meta/muse-spark-1.2": ["low", "medium", "high", "xhigh"],
218
+ "meta/muse-spark-1.2-contributor": ["low", "medium", "high", "xhigh"],
219
+ "meta/muse-spark-1.3": ["low", "medium", "high", "xhigh", "max"],
220
+ "meta/muse-spark-1.3-contributor": ["low", "medium", "high", "xhigh"],
221
+ "meta/muse-spark-open": ["low", "medium", "high"],
222
+ "meta/muse-wonder-1.0": ["low", "medium", "high", "xhigh"],
223
+ "minimax/minimax-m3.1-flash": ["low", "medium", "high", "xhigh", "max"],
224
+ "MiniMaxAI/MiniMax-M3": ["low", "medium", "high"],
225
+ "mistral/mistral-large-4": ["low", "medium", "high"],
226
+ "moonshotai/Kimi-K3": ["low", "high", "max"],
227
+ "moonshotai/Kimi-K3.1-Pro": ["low", "high", "max"],
228
+ "nvidia/nemotron-3.5-super-vl": ["low", "medium", "high"],
229
+ "Qwen/Qwen3.8-27B": ["low", "medium", "xhigh"],
230
+ "Qwen/Qwen3.8-Flash": ["low", "medium", "xhigh"],
231
+ "Qwen/Qwen3.8-Max": ["low", "medium", "xhigh"],
232
+ "Qwen/Qwen3.8-Max-0902": ["low", "medium", "xhigh"],
233
+ "Qwen/Qwen3.8-Max-Prime": ["low", "medium", "xhigh"],
234
+ "Qwen/Qwen3.8-Omni-Flash": ["low", "medium", "xhigh"],
235
+ "reflection/beam:free": ["low", "medium", "high", "xhigh", "max"],
236
+ "sakana/fugu-ultra": ["high", "xhigh"],
237
+ "stealth/glyph-cluster:free": ["low", "medium", "high", "xhigh"],
238
+ "stepfun/Step-5-Preview": ["low", "medium", "high"],
239
+ "tencent/hy4-preview": ["low", "medium", "high"],
240
+ "xai/grok-4.5": ["low", "medium", "high"],
241
+ "xai/grok-4.6": ["low", "medium", "high", "xhigh"],
242
+ "xai/grok-4.7": ["low", "medium", "high", "xhigh"],
243
+ "z-ai/glm-5.3-flash": ["low", "high", "max"],
244
+ "z-ai/glm-5.3-flashx": ["low", "high", "max"],
245
+ "zai-org/GLM-5.2": ["high", "max"],
246
+ "zai-org/GLM-5.3": ["low", "high", "max"],
247
+ }
248
+
249
+ export const MODEL_MAX_OUTPUT_TOKENS: Readonly<Record<string, number>> = {
250
+ "inclusionai/ling-3.1-flash": 32_768,
251
+ "mistral/mistral-large-4": 262_144,
252
+ "poolside/laguna-s-2.1-free": 32_768,
253
+ "Qwen/Qwen3.8-27B": 32_768,
254
+ "Qwen/Qwen3.8-Max-Prime": 131_072,
255
+ "Qwen/Qwen3.8-Omni-Flash": 131_072,
256
+ "reflection/beam:free": 131_072,
257
+ "stealth/glyph-cluster:free": 256_000,
258
+ "z-ai/glm-5.3-flash": 131_072,
259
+ "z-ai/glm-5.3-flashx": 131_072,
260
+ }