@humain/humain-code 0.5.4 → 0.6.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 (694) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/bundle/agent-monitor.js +1 -1
  3. package/dist/bundle/chunks/anthropic-messages-FGFIMZUF.js +66 -0
  4. package/dist/bundle/chunks/azure-openai-responses-6JNTC7KO.js +15 -0
  5. package/dist/bundle/chunks/bedrock-converse-stream.js +261 -237
  6. package/dist/bundle/chunks/chunk-2H3LUS62.js +1966 -0
  7. package/dist/bundle/chunks/{chunk-GEISZXXH.js → chunk-4ZBGTJJM.js} +1 -1
  8. package/dist/bundle/chunks/{chunk-QWXPGBAG.js → chunk-5JSLXC2A.js} +1 -1
  9. package/dist/bundle/chunks/{chunk-L2VKM23Q.js → chunk-6DE7LJKV.js} +21 -21
  10. package/dist/bundle/chunks/{chunk-V62QBESW.js → chunk-6E6RHNOU.js} +11 -10
  11. package/dist/bundle/chunks/chunk-7RZ5BS7U.js +2 -0
  12. package/dist/bundle/chunks/chunk-AHSNQWZU.js +24 -0
  13. package/dist/bundle/chunks/{chunk-UJLCKIMZ.js → chunk-AOH2O5CP.js} +3469 -3133
  14. package/dist/bundle/chunks/{chunk-ODJUBJK2.js → chunk-B7NJMF7B.js} +11 -11
  15. package/dist/bundle/chunks/chunk-BQ3TMEWD.js +7 -0
  16. package/dist/bundle/chunks/{chunk-KKCMWB63.js → chunk-C6VERWRZ.js} +1 -1
  17. package/dist/bundle/chunks/{chunk-CN3Q5UNB.js → chunk-CFHOPLW5.js} +658 -574
  18. package/dist/bundle/chunks/chunk-CVC2GV26.js +1986 -0
  19. package/dist/bundle/chunks/{chunk-DU6POZ7E.js → chunk-DHW3REC5.js} +1 -1
  20. package/dist/bundle/chunks/{chunk-UTNHGOFS.js → chunk-EDONIPUJ.js} +38 -38
  21. package/dist/bundle/chunks/{chunk-FO2NYB6O.js → chunk-FDGW5ZTG.js} +1147 -1110
  22. package/dist/bundle/chunks/{chunk-XQX7S3GM.js → chunk-GICL5V54.js} +1 -1
  23. package/dist/bundle/chunks/chunk-H7Y4QY7K.js +11 -0
  24. package/dist/bundle/chunks/chunk-HW6HMUXS.js +188 -0
  25. package/dist/bundle/chunks/chunk-I6AQOITY.js +53 -0
  26. package/dist/bundle/chunks/{chunk-ZI7TK7HM.js → chunk-IADQJFNH.js} +21 -17
  27. package/dist/bundle/chunks/chunk-J7AP2BUJ.js +3 -0
  28. package/dist/bundle/chunks/chunk-JFE52VSN.js +120 -0
  29. package/dist/bundle/chunks/{chunk-MIJHJNNQ.js → chunk-LDGCU6PD.js} +127 -3
  30. package/dist/bundle/chunks/{chunk-PS7DGA7B.js → chunk-M4CHQBAI.js} +1 -1
  31. package/dist/bundle/chunks/{chunk-YDBNMIA3.js → chunk-NN53K2QQ.js} +19 -1
  32. package/dist/bundle/chunks/{chunk-RTXDU3AA.js → chunk-ONR6Q3II.js} +255 -195
  33. package/dist/bundle/chunks/{chunk-Y3OPKKDR.js → chunk-P4P7OZ7R.js} +34 -32
  34. package/dist/bundle/chunks/{chunk-OZNC2W4B.js → chunk-PCTLFSQG.js} +444 -411
  35. package/dist/bundle/chunks/{chunk-YFBDR4IW.js → chunk-PNGNZXOI.js} +3 -3
  36. package/dist/bundle/chunks/{chunk-UDB6NI4G.js → chunk-RGUZULEE.js} +593 -481
  37. package/dist/bundle/chunks/chunk-RO5YPAJH.js +23 -0
  38. package/dist/bundle/chunks/{chunk-A6B2QMA7.js → chunk-RU7ADKA7.js} +176 -162
  39. package/dist/bundle/chunks/{chunk-JCXXRCP6.js → chunk-T3KDZFM4.js} +16 -16
  40. package/dist/bundle/chunks/{chunk-HT5YN3LX.js → chunk-TEOMXMW6.js} +3 -3
  41. package/dist/bundle/chunks/{chunk-HIZWUSPN.js → chunk-VEGJT52D.js} +77 -77
  42. package/dist/bundle/chunks/{chunk-IDU5BNNI.js → chunk-XMZGB3H4.js} +12 -3
  43. package/dist/bundle/chunks/chunk-YEPHPMQC.js +647 -0
  44. package/dist/bundle/chunks/{chunk-XA7CJAYH.js → chunk-YRUIJ5AH.js} +48 -42
  45. package/dist/bundle/chunks/{cli-ENEFJH2B.js → cli-BNCWK54K.js} +21 -17
  46. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-T7TPP7SQ.js → cloudflare-workers-ai-system-one-KI6W3USX.js} +1 -1
  47. package/dist/bundle/chunks/codemode-worker.js +81 -75
  48. package/dist/bundle/chunks/compat-I5VPOXFT.js +13 -0
  49. package/dist/bundle/chunks/dist-J5IUPLMH.js +37 -0
  50. package/dist/bundle/chunks/{dist-RKNCFFGM.js → dist-SKBR3C7C.js} +720 -696
  51. package/dist/bundle/chunks/dist-TVRQXUY6.js +8 -0
  52. package/dist/bundle/chunks/{dist-cjs-HTASUQXQ.js → dist-cjs-2SKN226B.js} +77 -77
  53. package/dist/bundle/chunks/{easter-egg-3d-YOPLCOVW.js → easter-egg-3d-673VRP6Y.js} +1 -1
  54. package/dist/bundle/chunks/{esm-R6HJ4QEG.js → esm-WPALMLUO.js} +3 -3
  55. package/dist/bundle/chunks/{event-streams-BR2IL6C5.js → event-streams-7YGFEPBZ.js} +1 -1
  56. package/dist/bundle/chunks/{execute-2JXEKQ2X.js → execute-PIUR5MUV.js} +23 -23
  57. package/dist/bundle/chunks/{extract-OTCGZGTL.js → extract-4O5Z5725.js} +74 -71
  58. package/dist/bundle/chunks/github-copilot.js +50 -51
  59. package/dist/bundle/chunks/google-generative-ai-635YZEHN.js +22 -0
  60. package/dist/bundle/chunks/google-vertex-I3ZJ3SB2.js +26 -0
  61. package/dist/bundle/chunks/host-OQOEIWHK.js +2 -0
  62. package/dist/bundle/chunks/image-resize-worker.js +3 -2
  63. package/dist/bundle/chunks/kimi-coding.js +13 -14
  64. package/dist/bundle/chunks/{llama-cpp-classify-B3G57LVR.js → llama-cpp-classify-PP63BYDF.js} +1 -1
  65. package/dist/bundle/chunks/meta.js +10 -10
  66. package/dist/bundle/chunks/mistral-conversations-OKG5GKXR.js +42 -0
  67. package/dist/bundle/chunks/{node-VSA4ZN7D.js → node-UGQUSQE6.js} +1 -1
  68. package/dist/bundle/chunks/{node-SJPZTR4K.js → node-UNHECG4X.js} +168 -157
  69. package/dist/bundle/chunks/openai-codex-responses-6JYZIFT4.js +100 -0
  70. package/dist/bundle/chunks/openai-completions-YBNI6CAP.js +82 -0
  71. package/dist/bundle/chunks/{openai-decisions-WOWUC65P.js → openai-decisions-5G5YBFRQ.js} +1 -1
  72. package/dist/bundle/chunks/openai-responses-C3APJ6MK.js +27 -0
  73. package/dist/bundle/chunks/{openrouter-images-5K47HDAT.js → openrouter-images-FCJT7C7I.js} +2 -2
  74. package/dist/bundle/chunks/{pdfjs-EK6K7CXX.js → pdfjs-AKD6EBKN.js} +196 -175
  75. package/dist/bundle/chunks/pdfjs-decoders-OFXX4HDZ.js +2 -0
  76. package/dist/bundle/chunks/pdfjs-jbig2-TXR26KRI.js +278 -0
  77. package/dist/bundle/chunks/pdfjs-jbig2_nowasm_fallback-FH3KJM4H.js +326 -0
  78. package/dist/bundle/chunks/pdfjs-openjpeg-SKR7C34X.js +671 -0
  79. package/dist/bundle/chunks/pdfjs-openjpeg_nowasm_fallback-VUBL7UEE.js +974 -0
  80. package/dist/bundle/chunks/pi-messages-UHYZYEOC.js +25 -0
  81. package/dist/bundle/chunks/radius.js +8 -8
  82. package/dist/bundle/chunks/{runtime-K3F2QDQP.js → runtime-KE3HDSRT.js} +1 -1
  83. package/dist/bundle/chunks/{turndown.cjs-U7XOXH4O.js → turndown.cjs-WKGZX7NZ.js} +1 -1
  84. package/dist/bundle/chunks/{typesafe-system-one-43OCHGKP.js → typesafe-system-one-VYVAMWQV.js} +1 -1
  85. package/dist/bundle/chunks/{undici-EK3EUI2E.js → undici-C6S56CGI.js} +1 -1
  86. package/dist/bundle/chunks/virtual-modules-KDUZIB3W.js +23 -0
  87. package/dist/bundle/cli-runtime.js +3 -3
  88. package/dist/bundle/flow/package.json +5 -5
  89. package/dist/bundle/index.js +10 -10
  90. package/dist/bundle/rpc-entry.js +3 -3
  91. package/dist/cli/args.d.ts.map +1 -1
  92. package/dist/cli/args.js +9 -8
  93. package/dist/cli/args.js.map +1 -1
  94. package/dist/config.d.ts +12 -0
  95. package/dist/config.d.ts.map +1 -1
  96. package/dist/config.js +29 -5
  97. package/dist/config.js.map +1 -1
  98. package/dist/coordination/adapter/tool.d.ts +8 -5
  99. package/dist/coordination/adapter/tool.d.ts.map +1 -1
  100. package/dist/coordination/adapter/tool.js +32 -6
  101. package/dist/coordination/adapter/tool.js.map +1 -1
  102. package/dist/coordination/client/client.d.ts.map +1 -1
  103. package/dist/coordination/client/client.js +19 -1
  104. package/dist/coordination/client/client.js.map +1 -1
  105. package/dist/core/agent-session-runtime.js +3 -3
  106. package/dist/core/agent-session-runtime.js.map +1 -1
  107. package/dist/core/agent-session.d.ts +23 -3
  108. package/dist/core/agent-session.d.ts.map +1 -1
  109. package/dist/core/agent-session.js +142 -39
  110. package/dist/core/agent-session.js.map +1 -1
  111. package/dist/core/anthropic-subscription-usage.d.ts +4 -0
  112. package/dist/core/anthropic-subscription-usage.d.ts.map +1 -1
  113. package/dist/core/anthropic-subscription-usage.js +71 -1
  114. package/dist/core/anthropic-subscription-usage.js.map +1 -1
  115. package/dist/core/bug-report.d.ts +4 -4
  116. package/dist/core/codex-reset.d.ts +45 -0
  117. package/dist/core/codex-reset.d.ts.map +1 -0
  118. package/dist/core/codex-reset.js +190 -0
  119. package/dist/core/codex-reset.js.map +1 -0
  120. package/dist/core/codex-usage.d.ts +4 -2
  121. package/dist/core/codex-usage.d.ts.map +1 -1
  122. package/dist/core/codex-usage.js +9 -4
  123. package/dist/core/codex-usage.js.map +1 -1
  124. package/dist/core/compaction/branch-summarization.d.ts +3 -1
  125. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  126. package/dist/core/compaction/branch-summarization.js +25 -10
  127. package/dist/core/compaction/branch-summarization.js.map +1 -1
  128. package/dist/core/compaction/compaction.d.ts +37 -3
  129. package/dist/core/compaction/compaction.d.ts.map +1 -1
  130. package/dist/core/compaction/compaction.js +274 -65
  131. package/dist/core/compaction/compaction.js.map +1 -1
  132. package/dist/core/compaction/utils.d.ts +19 -6
  133. package/dist/core/compaction/utils.d.ts.map +1 -1
  134. package/dist/core/compaction/utils.js +49 -11
  135. package/dist/core/compaction/utils.js.map +1 -1
  136. package/dist/core/exec.d.ts +9 -1
  137. package/dist/core/exec.d.ts.map +1 -1
  138. package/dist/core/exec.js +105 -61
  139. package/dist/core/exec.js.map +1 -1
  140. package/dist/core/export-html/template.css +9 -0
  141. package/dist/core/export-html/template.html +2 -0
  142. package/dist/core/export-html/template.js +200 -62
  143. package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
  144. package/dist/core/export-html/tool-renderer.js +3 -0
  145. package/dist/core/export-html/tool-renderer.js.map +1 -1
  146. package/dist/core/extensions/index.d.ts +1 -1
  147. package/dist/core/extensions/index.d.ts.map +1 -1
  148. package/dist/core/extensions/index.js.map +1 -1
  149. package/dist/core/extensions/loader.d.ts.map +1 -1
  150. package/dist/core/extensions/loader.js +7 -6
  151. package/dist/core/extensions/loader.js.map +1 -1
  152. package/dist/core/extensions/pi-ai-extension-view.d.ts +19 -0
  153. package/dist/core/extensions/pi-ai-extension-view.d.ts.map +1 -0
  154. package/dist/core/extensions/pi-ai-extension-view.js +22 -0
  155. package/dist/core/extensions/pi-ai-extension-view.js.map +1 -0
  156. package/dist/core/extensions/types.d.ts +27 -4
  157. package/dist/core/extensions/types.d.ts.map +1 -1
  158. package/dist/core/extensions/types.js.map +1 -1
  159. package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
  160. package/dist/core/extensions/virtual-modules.js +8 -7
  161. package/dist/core/extensions/virtual-modules.js.map +1 -1
  162. package/dist/core/http-dispatcher.d.ts +7 -0
  163. package/dist/core/http-dispatcher.d.ts.map +1 -1
  164. package/dist/core/http-dispatcher.js +107 -0
  165. package/dist/core/http-dispatcher.js.map +1 -1
  166. package/dist/core/keybindings.d.ts +56 -0
  167. package/dist/core/keybindings.d.ts.map +1 -1
  168. package/dist/core/keybindings.js +14 -2
  169. package/dist/core/keybindings.js.map +1 -1
  170. package/dist/core/mcp-servers.d.ts +9 -4
  171. package/dist/core/mcp-servers.d.ts.map +1 -1
  172. package/dist/core/mcp-servers.js +15 -5
  173. package/dist/core/mcp-servers.js.map +1 -1
  174. package/dist/core/model-config.d.ts +1691 -2042
  175. package/dist/core/model-config.d.ts.map +1 -1
  176. package/dist/core/model-config.js +2 -3
  177. package/dist/core/model-config.js.map +1 -1
  178. package/dist/core/model-registry.d.ts +35 -4
  179. package/dist/core/model-registry.d.ts.map +1 -1
  180. package/dist/core/model-registry.js +70 -8
  181. package/dist/core/model-registry.js.map +1 -1
  182. package/dist/core/model-resolver.d.ts.map +1 -1
  183. package/dist/core/model-resolver.js +16 -10
  184. package/dist/core/model-resolver.js.map +1 -1
  185. package/dist/core/model-runtime.d.ts.map +1 -1
  186. package/dist/core/model-runtime.js +21 -17
  187. package/dist/core/model-runtime.js.map +1 -1
  188. package/dist/core/package-manager.d.ts +29 -0
  189. package/dist/core/package-manager.d.ts.map +1 -1
  190. package/dist/core/package-manager.js +311 -60
  191. package/dist/core/package-manager.js.map +1 -1
  192. package/dist/core/pi-ai-schemas.d.ts +164 -0
  193. package/dist/core/pi-ai-schemas.d.ts.map +1 -0
  194. package/dist/core/pi-ai-schemas.js +21 -0
  195. package/dist/core/pi-ai-schemas.js.map +1 -0
  196. package/dist/core/pi-manifest.d.ts +1 -0
  197. package/dist/core/pi-manifest.d.ts.map +1 -1
  198. package/dist/core/pi-manifest.js +4 -0
  199. package/dist/core/pi-manifest.js.map +1 -1
  200. package/dist/core/project-trust.js +1 -1
  201. package/dist/core/project-trust.js.map +1 -1
  202. package/dist/core/resource-loader.d.ts +4 -1
  203. package/dist/core/resource-loader.d.ts.map +1 -1
  204. package/dist/core/resource-loader.js +38 -23
  205. package/dist/core/resource-loader.js.map +1 -1
  206. package/dist/core/sdk.d.ts.map +1 -1
  207. package/dist/core/sdk.js +4 -1
  208. package/dist/core/sdk.js.map +1 -1
  209. package/dist/core/session-manager.d.ts +7 -0
  210. package/dist/core/session-manager.d.ts.map +1 -1
  211. package/dist/core/session-manager.js +66 -26
  212. package/dist/core/session-manager.js.map +1 -1
  213. package/dist/core/settings-defaults.d.ts +2 -0
  214. package/dist/core/settings-defaults.d.ts.map +1 -1
  215. package/dist/core/settings-defaults.js +2 -0
  216. package/dist/core/settings-defaults.js.map +1 -1
  217. package/dist/core/settings-manager.d.ts +19 -8
  218. package/dist/core/settings-manager.d.ts.map +1 -1
  219. package/dist/core/settings-manager.js +70 -16
  220. package/dist/core/settings-manager.js.map +1 -1
  221. package/dist/core/settings-schema.d.ts +15 -2
  222. package/dist/core/settings-schema.d.ts.map +1 -1
  223. package/dist/core/settings-schema.js +37 -3
  224. package/dist/core/settings-schema.js.map +1 -1
  225. package/dist/core/skills.d.ts.map +1 -1
  226. package/dist/core/skills.js +6 -14
  227. package/dist/core/skills.js.map +1 -1
  228. package/dist/core/slash-commands.js +2 -2
  229. package/dist/core/slash-commands.js.map +1 -1
  230. package/dist/core/source-info.d.ts +9 -0
  231. package/dist/core/source-info.d.ts.map +1 -1
  232. package/dist/core/source-info.js +13 -0
  233. package/dist/core/source-info.js.map +1 -1
  234. package/dist/core/subscription-credits.d.ts +14 -0
  235. package/dist/core/subscription-credits.d.ts.map +1 -0
  236. package/dist/core/subscription-credits.js +10 -0
  237. package/dist/core/subscription-credits.js.map +1 -0
  238. package/dist/core/subscription-reset-status.d.ts +10 -0
  239. package/dist/core/subscription-reset-status.d.ts.map +1 -0
  240. package/dist/core/subscription-reset-status.js +2 -0
  241. package/dist/core/subscription-reset-status.js.map +1 -0
  242. package/dist/core/system-prompt.d.ts.map +1 -1
  243. package/dist/core/system-prompt.js +5 -6
  244. package/dist/core/system-prompt.js.map +1 -1
  245. package/dist/core/tools/bash.d.ts +2 -2
  246. package/dist/core/tools/bash.d.ts.map +1 -1
  247. package/dist/core/tools/bash.js.map +1 -1
  248. package/dist/core/tools/edit.d.ts +3 -3
  249. package/dist/core/tools/edit.d.ts.map +1 -1
  250. package/dist/core/tools/edit.js +2 -4
  251. package/dist/core/tools/edit.js.map +1 -1
  252. package/dist/core/tools/find.d.ts +2 -2
  253. package/dist/core/tools/find.d.ts.map +1 -1
  254. package/dist/core/tools/find.js.map +1 -1
  255. package/dist/core/tools/grep.d.ts +2 -2
  256. package/dist/core/tools/grep.d.ts.map +1 -1
  257. package/dist/core/tools/grep.js +7 -3
  258. package/dist/core/tools/grep.js.map +1 -1
  259. package/dist/core/tools/ls.d.ts +2 -2
  260. package/dist/core/tools/ls.d.ts.map +1 -1
  261. package/dist/core/tools/ls.js.map +1 -1
  262. package/dist/core/tools/read.d.ts +2 -2
  263. package/dist/core/tools/read.d.ts.map +1 -1
  264. package/dist/core/tools/read.js.map +1 -1
  265. package/dist/core/tools/render-utils.d.ts +4 -0
  266. package/dist/core/tools/render-utils.d.ts.map +1 -1
  267. package/dist/core/tools/render-utils.js +42 -12
  268. package/dist/core/tools/render-utils.js.map +1 -1
  269. package/dist/core/tools/renderers/edit.d.ts.map +1 -1
  270. package/dist/core/tools/renderers/edit.js +3 -3
  271. package/dist/core/tools/renderers/edit.js.map +1 -1
  272. package/dist/core/tools/renderers/write.d.ts.map +1 -1
  273. package/dist/core/tools/renderers/write.js +37 -29
  274. package/dist/core/tools/renderers/write.js.map +1 -1
  275. package/dist/core/tools/subagent.d.ts +9 -8
  276. package/dist/core/tools/subagent.d.ts.map +1 -1
  277. package/dist/core/tools/subagent.js +8 -5
  278. package/dist/core/tools/subagent.js.map +1 -1
  279. package/dist/core/tools/tool-definition-wrapper.d.ts +11 -1
  280. package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
  281. package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
  282. package/dist/core/tools/write.d.ts +2 -2
  283. package/dist/core/tools/write.d.ts.map +1 -1
  284. package/dist/core/tools/write.js.map +1 -1
  285. package/dist/core/trust-manager.d.ts.map +1 -1
  286. package/dist/core/trust-manager.js +14 -8
  287. package/dist/core/trust-manager.js.map +1 -1
  288. package/dist/core/usage-totals.d.ts.map +1 -1
  289. package/dist/core/usage-totals.js +2 -0
  290. package/dist/core/usage-totals.js.map +1 -1
  291. package/dist/extensions/codemode/renderer.d.ts.map +1 -1
  292. package/dist/extensions/codemode/renderer.js +17 -9
  293. package/dist/extensions/codemode/renderer.js.map +1 -1
  294. package/dist/extensions/codemode/tool.d.ts +2 -1
  295. package/dist/extensions/codemode/tool.d.ts.map +1 -1
  296. package/dist/extensions/codemode/tool.js +33 -8
  297. package/dist/extensions/codemode/tool.js.map +1 -1
  298. package/dist/extensions/llama/ui.d.ts.map +1 -1
  299. package/dist/extensions/llama/ui.js +16 -4
  300. package/dist/extensions/llama/ui.js.map +1 -1
  301. package/dist/extensions/mcp/cli.d.ts.map +1 -1
  302. package/dist/extensions/mcp/cli.js +34 -8
  303. package/dist/extensions/mcp/cli.js.map +1 -1
  304. package/dist/extensions/mcp/index.js +4 -3
  305. package/dist/extensions/mcp/index.js.map +1 -1
  306. package/dist/extensions/mcp/oauth.d.ts +1 -1
  307. package/dist/extensions/mcp/oauth.d.ts.map +1 -1
  308. package/dist/extensions/mcp/oauth.js +7 -3
  309. package/dist/extensions/mcp/oauth.js.map +1 -1
  310. package/dist/extensions/mcp/ui.d.ts +1 -0
  311. package/dist/extensions/mcp/ui.d.ts.map +1 -1
  312. package/dist/extensions/mcp/ui.js +56 -28
  313. package/dist/extensions/mcp/ui.js.map +1 -1
  314. package/dist/extensions/tool-search/tool.d.ts +21 -6
  315. package/dist/extensions/tool-search/tool.d.ts.map +1 -1
  316. package/dist/extensions/tool-search/tool.js +104 -36
  317. package/dist/extensions/tool-search/tool.js.map +1 -1
  318. package/dist/extensions/usage/confirmation.d.ts +40 -0
  319. package/dist/extensions/usage/confirmation.d.ts.map +1 -0
  320. package/dist/extensions/usage/confirmation.js +198 -0
  321. package/dist/extensions/usage/confirmation.js.map +1 -0
  322. package/dist/extensions/usage/index.d.ts +4 -4
  323. package/dist/extensions/usage/index.d.ts.map +1 -1
  324. package/dist/extensions/usage/index.js +352 -33
  325. package/dist/extensions/usage/index.js.map +1 -1
  326. package/dist/extensions/usage/overview.d.ts +8 -1
  327. package/dist/extensions/usage/overview.d.ts.map +1 -1
  328. package/dist/extensions/usage/overview.js +54 -11
  329. package/dist/extensions/usage/overview.js.map +1 -1
  330. package/dist/extensions/usage/popup.d.ts +37 -6
  331. package/dist/extensions/usage/popup.d.ts.map +1 -1
  332. package/dist/extensions/usage/popup.js +396 -45
  333. package/dist/extensions/usage/popup.js.map +1 -1
  334. package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +564 -130
  335. package/dist/humain/node-provider.d.ts.map +1 -1
  336. package/dist/humain/node-provider.js +1 -0
  337. package/dist/humain/node-provider.js.map +1 -1
  338. package/dist/humain/web-access/host.d.ts +2 -1
  339. package/dist/humain/web-access/host.d.ts.map +1 -1
  340. package/dist/humain/web-access/host.js +1 -1
  341. package/dist/humain/web-access/host.js.map +1 -1
  342. package/dist/humain/web-access/vendor/brave-rate-limit.d.ts +2 -0
  343. package/dist/humain/web-access/vendor/brave-rate-limit.d.ts.map +1 -1
  344. package/dist/humain/web-access/vendor/brave-rate-limit.js +2 -2
  345. package/dist/humain/web-access/vendor/brave-rate-limit.js.map +1 -1
  346. package/dist/humain/web-access/vendor/cloudflare-search.d.ts +5 -0
  347. package/dist/humain/web-access/vendor/cloudflare-search.d.ts.map +1 -0
  348. package/dist/humain/web-access/vendor/cloudflare-search.js +230 -0
  349. package/dist/humain/web-access/vendor/cloudflare-search.js.map +1 -0
  350. package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
  351. package/dist/humain/web-access/vendor/curator-page.js +18 -1
  352. package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
  353. package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
  354. package/dist/humain/web-access/vendor/curator-server.js +12 -0
  355. package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
  356. package/dist/humain/web-access/vendor/duckduckgo-rate-limit.d.ts +33 -0
  357. package/dist/humain/web-access/vendor/duckduckgo-rate-limit.d.ts.map +1 -0
  358. package/dist/humain/web-access/vendor/duckduckgo-rate-limit.js +84 -0
  359. package/dist/humain/web-access/vendor/duckduckgo-rate-limit.js.map +1 -0
  360. package/dist/humain/web-access/vendor/duckduckgo.d.ts +3 -0
  361. package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
  362. package/dist/humain/web-access/vendor/duckduckgo.js +54 -49
  363. package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
  364. package/dist/humain/web-access/vendor/exa.d.ts +8 -3
  365. package/dist/humain/web-access/vendor/exa.d.ts.map +1 -1
  366. package/dist/humain/web-access/vendor/exa.js +129 -14
  367. package/dist/humain/web-access/vendor/exa.js.map +1 -1
  368. package/dist/humain/web-access/vendor/extract.d.ts +1 -1
  369. package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
  370. package/dist/humain/web-access/vendor/extract.js +68 -10
  371. package/dist/humain/web-access/vendor/extract.js.map +1 -1
  372. package/dist/humain/web-access/vendor/fetch-params.d.ts +2 -1
  373. package/dist/humain/web-access/vendor/fetch-params.d.ts.map +1 -1
  374. package/dist/humain/web-access/vendor/fetch-params.js +2 -2
  375. package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
  376. package/dist/humain/web-access/vendor/field-extract.d.ts +38 -0
  377. package/dist/humain/web-access/vendor/field-extract.d.ts.map +1 -0
  378. package/dist/humain/web-access/vendor/field-extract.js +350 -0
  379. package/dist/humain/web-access/vendor/field-extract.js.map +1 -0
  380. package/dist/humain/web-access/vendor/gemini-search.d.ts +15 -4
  381. package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
  382. package/dist/humain/web-access/vendor/gemini-search.js +198 -16
  383. package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
  384. package/dist/humain/web-access/vendor/github-api.js +1 -1
  385. package/dist/humain/web-access/vendor/github-api.js.map +1 -1
  386. package/dist/humain/web-access/vendor/github-extract.d.ts.map +1 -1
  387. package/dist/humain/web-access/vendor/github-extract.js +3 -2
  388. package/dist/humain/web-access/vendor/github-extract.js.map +1 -1
  389. package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
  390. package/dist/humain/web-access/vendor/index.js +137 -118
  391. package/dist/humain/web-access/vendor/index.js.map +1 -1
  392. package/dist/humain/web-access/vendor/mistral-search.js +1 -1
  393. package/dist/humain/web-access/vendor/mistral-search.js.map +1 -1
  394. package/dist/humain/web-access/vendor/ninerouter.d.ts +4 -0
  395. package/dist/humain/web-access/vendor/ninerouter.d.ts.map +1 -0
  396. package/dist/humain/web-access/vendor/ninerouter.js +110 -0
  397. package/dist/humain/web-access/vendor/ninerouter.js.map +1 -0
  398. package/dist/humain/web-access/vendor/offtopic-judge.d.ts +27 -0
  399. package/dist/humain/web-access/vendor/offtopic-judge.d.ts.map +1 -0
  400. package/dist/humain/web-access/vendor/offtopic-judge.js +61 -0
  401. package/dist/humain/web-access/vendor/offtopic-judge.js.map +1 -0
  402. package/dist/humain/web-access/vendor/openai-search.d.ts +1 -1
  403. package/dist/humain/web-access/vendor/openai-search.d.ts.map +1 -1
  404. package/dist/humain/web-access/vendor/openai-search.js +39 -13
  405. package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
  406. package/dist/humain/web-access/vendor/outcrawl.d.ts +4 -0
  407. package/dist/humain/web-access/vendor/outcrawl.d.ts.map +1 -0
  408. package/dist/humain/web-access/vendor/outcrawl.js +196 -0
  409. package/dist/humain/web-access/vendor/outcrawl.js.map +1 -0
  410. package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
  411. package/dist/humain/web-access/vendor/page-query.js +13 -3
  412. package/dist/humain/web-access/vendor/page-query.js.map +1 -1
  413. package/dist/humain/web-access/vendor/pdf-extract.d.ts +1 -3
  414. package/dist/humain/web-access/vendor/pdf-extract.d.ts.map +1 -1
  415. package/dist/humain/web-access/vendor/pdf-extract.js +0 -2
  416. package/dist/humain/web-access/vendor/pdf-extract.js.map +1 -1
  417. package/dist/humain/web-access/vendor/perplexity.d.ts +3 -0
  418. package/dist/humain/web-access/vendor/perplexity.d.ts.map +1 -1
  419. package/dist/humain/web-access/vendor/perplexity.js.map +1 -1
  420. package/dist/humain/web-access/vendor/query-rewrite.d.ts +2 -2
  421. package/dist/humain/web-access/vendor/query-rewrite.d.ts.map +1 -1
  422. package/dist/humain/web-access/vendor/query-rewrite.js +39 -13
  423. package/dist/humain/web-access/vendor/query-rewrite.js.map +1 -1
  424. package/dist/humain/web-access/vendor/searchapi.d.ts +4 -0
  425. package/dist/humain/web-access/vendor/searchapi.d.ts.map +1 -0
  426. package/dist/humain/web-access/vendor/searchapi.js +195 -0
  427. package/dist/humain/web-access/vendor/searchapi.js.map +1 -0
  428. package/dist/humain/web-access/vendor/sofya.d.ts +4 -0
  429. package/dist/humain/web-access/vendor/sofya.d.ts.map +1 -0
  430. package/dist/humain/web-access/vendor/sofya.js +193 -0
  431. package/dist/humain/web-access/vendor/sofya.js.map +1 -0
  432. package/dist/humain/web-access/vendor/source-check.d.ts +5 -1
  433. package/dist/humain/web-access/vendor/source-check.d.ts.map +1 -1
  434. package/dist/humain/web-access/vendor/source-check.js +34 -16
  435. package/dist/humain/web-access/vendor/source-check.js.map +1 -1
  436. package/dist/humain/web-access/vendor/ssrf-protection.d.ts +7 -0
  437. package/dist/humain/web-access/vendor/ssrf-protection.d.ts.map +1 -1
  438. package/dist/humain/web-access/vendor/ssrf-protection.js +24 -1
  439. package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
  440. package/dist/humain/web-access/vendor/summary-model-scope.d.ts +8 -3
  441. package/dist/humain/web-access/vendor/summary-model-scope.d.ts.map +1 -1
  442. package/dist/humain/web-access/vendor/summary-model-scope.js +15 -1
  443. package/dist/humain/web-access/vendor/summary-model-scope.js.map +1 -1
  444. package/dist/humain/web-access/vendor/summary-review.d.ts +7 -2
  445. package/dist/humain/web-access/vendor/summary-review.d.ts.map +1 -1
  446. package/dist/humain/web-access/vendor/summary-review.js +32 -28
  447. package/dist/humain/web-access/vendor/summary-review.js.map +1 -1
  448. package/dist/humain/web-access/vendor/tabstack.d.ts +6 -0
  449. package/dist/humain/web-access/vendor/tabstack.d.ts.map +1 -0
  450. package/dist/humain/web-access/vendor/tabstack.js +236 -0
  451. package/dist/humain/web-access/vendor/tabstack.js.map +1 -0
  452. package/dist/humain/web-access/vendor/tool-arguments.js +1 -1
  453. package/dist/humain/web-access/vendor/tool-arguments.js.map +1 -1
  454. package/dist/humain/web-access/vendor/upgrade-notice.d.ts +8 -0
  455. package/dist/humain/web-access/vendor/upgrade-notice.d.ts.map +1 -0
  456. package/dist/humain/web-access/vendor/upgrade-notice.js +46 -0
  457. package/dist/humain/web-access/vendor/upgrade-notice.js.map +1 -0
  458. package/dist/humain/web-access/vendor/utils.d.ts +9 -0
  459. package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
  460. package/dist/humain/web-access/vendor/utils.js +113 -27
  461. package/dist/humain/web-access/vendor/utils.js.map +1 -1
  462. package/dist/humain/web-access/vendor/web-tool-contract.d.ts +4 -0
  463. package/dist/humain/web-access/vendor/web-tool-contract.d.ts.map +1 -1
  464. package/dist/humain/web-access/vendor/web-tool-contract.js.map +1 -1
  465. package/dist/humain/web-access/vendor/web-tool-core.d.ts +17 -1
  466. package/dist/humain/web-access/vendor/web-tool-core.d.ts.map +1 -1
  467. package/dist/humain/web-access/vendor/web-tool-core.js +99 -22
  468. package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
  469. package/dist/humain/web-access/vendor/xai-search.d.ts +1 -1
  470. package/dist/humain/web-access/vendor/xai-search.d.ts.map +1 -1
  471. package/dist/humain/web-access/vendor/xai-search.js +6 -5
  472. package/dist/humain/web-access/vendor/xai-search.js.map +1 -1
  473. package/dist/index.d.ts +3 -3
  474. package/dist/index.d.ts.map +1 -1
  475. package/dist/index.js.map +1 -1
  476. package/dist/main.d.ts.map +1 -1
  477. package/dist/main.js +20 -9
  478. package/dist/main.js.map +1 -1
  479. package/dist/modes/interactive/components/assistant-code-block.d.ts +34 -0
  480. package/dist/modes/interactive/components/assistant-code-block.d.ts.map +1 -0
  481. package/dist/modes/interactive/components/assistant-code-block.js +160 -0
  482. package/dist/modes/interactive/components/assistant-code-block.js.map +1 -0
  483. package/dist/modes/interactive/components/assistant-message.d.ts +31 -10
  484. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  485. package/dist/modes/interactive/components/assistant-message.js +276 -73
  486. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  487. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
  488. package/dist/modes/interactive/components/compaction-summary-message.js +2 -1
  489. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
  490. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
  491. package/dist/modes/interactive/components/config-selector.js +4 -17
  492. package/dist/modes/interactive/components/config-selector.js.map +1 -1
  493. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  494. package/dist/modes/interactive/components/custom-editor.js +7 -0
  495. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  496. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  497. package/dist/modes/interactive/components/custom-entry.js +2 -1
  498. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  499. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  500. package/dist/modes/interactive/components/custom-message.js +2 -1
  501. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  502. package/dist/modes/interactive/components/diff.d.ts.map +1 -1
  503. package/dist/modes/interactive/components/diff.js +3 -1
  504. package/dist/modes/interactive/components/diff.js.map +1 -1
  505. package/dist/modes/interactive/components/extension-editor.d.ts +2 -0
  506. package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
  507. package/dist/modes/interactive/components/extension-editor.js +4 -0
  508. package/dist/modes/interactive/components/extension-editor.js.map +1 -1
  509. package/dist/modes/interactive/components/footer.d.ts +4 -1
  510. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  511. package/dist/modes/interactive/components/footer.js +6 -5
  512. package/dist/modes/interactive/components/footer.js.map +1 -1
  513. package/dist/modes/interactive/components/login-dialog.d.ts +5 -0
  514. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  515. package/dist/modes/interactive/components/login-dialog.js +107 -11
  516. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  517. package/dist/modes/interactive/components/markdown-transform.d.ts +2 -1
  518. package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -1
  519. package/dist/modes/interactive/components/markdown-transform.js +3 -2
  520. package/dist/modes/interactive/components/markdown-transform.js.map +1 -1
  521. package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
  522. package/dist/modes/interactive/components/mermaid.js +18 -6
  523. package/dist/modes/interactive/components/mermaid.js.map +1 -1
  524. package/dist/modes/interactive/components/model-selector.d.ts +1 -0
  525. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  526. package/dist/modes/interactive/components/model-selector.js +17 -6
  527. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  528. package/dist/modes/interactive/components/oauth-selector.d.ts +1 -0
  529. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  530. package/dist/modes/interactive/components/oauth-selector.js +13 -4
  531. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  532. package/dist/modes/interactive/components/scoped-models-selector.d.ts +1 -0
  533. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  534. package/dist/modes/interactive/components/scoped-models-selector.js +14 -3
  535. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  536. package/dist/modes/interactive/components/session-selector-search.d.ts +4 -0
  537. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
  538. package/dist/modes/interactive/components/session-selector-search.js +86 -22
  539. package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
  540. package/dist/modes/interactive/components/session-selector.d.ts +2 -1
  541. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  542. package/dist/modes/interactive/components/session-selector.js +16 -24
  543. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  544. package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
  545. package/dist/modes/interactive/components/settings-submenu.js +2 -0
  546. package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
  547. package/dist/modes/interactive/components/tool-execution.d.ts +2 -0
  548. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  549. package/dist/modes/interactive/components/tool-execution.js +15 -5
  550. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  551. package/dist/modes/interactive/components/tree-selector.d.ts +1 -0
  552. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
  553. package/dist/modes/interactive/components/tree-selector.js +5 -6
  554. package/dist/modes/interactive/components/tree-selector.js.map +1 -1
  555. package/dist/modes/interactive/components/user-message-selector.d.ts +1 -0
  556. package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
  557. package/dist/modes/interactive/components/user-message-selector.js +9 -1
  558. package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
  559. package/dist/modes/interactive/components/user-message.d.ts +4 -3
  560. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  561. package/dist/modes/interactive/components/user-message.js +20 -18
  562. package/dist/modes/interactive/components/user-message.js.map +1 -1
  563. package/dist/modes/interactive/external-editor.d.ts +1 -0
  564. package/dist/modes/interactive/external-editor.d.ts.map +1 -1
  565. package/dist/modes/interactive/external-editor.js +16 -4
  566. package/dist/modes/interactive/external-editor.js.map +1 -1
  567. package/dist/modes/interactive/interactive-mode.d.ts +6 -0
  568. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  569. package/dist/modes/interactive/interactive-mode.js +259 -83
  570. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  571. package/dist/modes/interactive/model-search.d.ts +10 -0
  572. package/dist/modes/interactive/model-search.d.ts.map +1 -1
  573. package/dist/modes/interactive/model-search.js +21 -0
  574. package/dist/modes/interactive/model-search.js.map +1 -1
  575. package/dist/modes/interactive/oauth-account-format.d.ts +10 -1
  576. package/dist/modes/interactive/oauth-account-format.d.ts.map +1 -1
  577. package/dist/modes/interactive/oauth-account-format.js +42 -0
  578. package/dist/modes/interactive/oauth-account-format.js.map +1 -1
  579. package/dist/modes/interactive/theme/theme.d.ts +10 -0
  580. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  581. package/dist/modes/interactive/theme/theme.js +28 -24
  582. package/dist/modes/interactive/theme/theme.js.map +1 -1
  583. package/dist/modes/print-mode.d.ts.map +1 -1
  584. package/dist/modes/print-mode.js +3 -2
  585. package/dist/modes/print-mode.js.map +1 -1
  586. package/dist/package-manager-cli.d.ts.map +1 -1
  587. package/dist/package-manager-cli.js +55 -4
  588. package/dist/package-manager-cli.js.map +1 -1
  589. package/dist/utils/ansi.d.ts.map +1 -1
  590. package/dist/utils/ansi.js +5 -2
  591. package/dist/utils/ansi.js.map +1 -1
  592. package/dist/utils/clipboard-command.d.ts.map +1 -1
  593. package/dist/utils/clipboard-command.js +4 -0
  594. package/dist/utils/clipboard-command.js.map +1 -1
  595. package/dist/utils/clipboard-image.d.ts +8 -0
  596. package/dist/utils/clipboard-image.d.ts.map +1 -1
  597. package/dist/utils/clipboard-image.js +31 -1
  598. package/dist/utils/clipboard-image.js.map +1 -1
  599. package/dist/utils/git.d.ts +1 -1
  600. package/dist/utils/git.d.ts.map +1 -1
  601. package/dist/utils/git.js.map +1 -1
  602. package/dist/utils/image-resize-core.d.ts.map +1 -1
  603. package/dist/utils/image-resize-core.js +5 -3
  604. package/dist/utils/image-resize-core.js.map +1 -1
  605. package/dist/utils/open-browser.d.ts.map +1 -1
  606. package/dist/utils/open-browser.js +96 -6
  607. package/dist/utils/open-browser.js.map +1 -1
  608. package/dist/utils/paths.d.ts +17 -0
  609. package/dist/utils/paths.d.ts.map +1 -1
  610. package/dist/utils/paths.js +42 -1
  611. package/dist/utils/paths.js.map +1 -1
  612. package/dist/utils/shell.d.ts +2 -1
  613. package/dist/utils/shell.d.ts.map +1 -1
  614. package/dist/utils/shell.js +12 -2
  615. package/dist/utils/shell.js.map +1 -1
  616. package/dist/utils/syntax-highlight.d.ts +5 -0
  617. package/dist/utils/syntax-highlight.d.ts.map +1 -1
  618. package/dist/utils/syntax-highlight.js +156 -11
  619. package/dist/utils/syntax-highlight.js.map +1 -1
  620. package/dist/utils/tools-manager.d.ts.map +1 -1
  621. package/dist/utils/tools-manager.js +30 -35
  622. package/dist/utils/tools-manager.js.map +1 -1
  623. package/docs/cli.md +22 -12
  624. package/docs/compaction.md +32 -8
  625. package/docs/coordination.md +2 -0
  626. package/docs/custom-provider.md +4 -2
  627. package/docs/environment-variables.md +2 -0
  628. package/docs/extensions.md +3169 -229
  629. package/docs/flow.md +2 -0
  630. package/docs/keybindings.md +24 -2
  631. package/docs/llama-cpp.md +30 -19
  632. package/docs/mcp.md +4 -2
  633. package/docs/message-types.md +7 -7
  634. package/docs/packages.md +27 -1
  635. package/docs/sessions.md +11 -3
  636. package/docs/settings.md +21 -9
  637. package/docs/slash-commands.md +51 -11
  638. package/docs/terminal-setup.md +3 -1
  639. package/docs/tmux.md +6 -0
  640. package/docs/tui.md +3 -1
  641. package/docs/windows.md +27 -0
  642. package/examples/extensions/README.md +2 -1
  643. package/examples/extensions/custom-provider-anthropic/index.ts +27 -31
  644. package/examples/extensions/custom-provider-anthropic/package-lock.json +7 -7
  645. package/examples/extensions/custom-provider-anthropic/package.json +2 -2
  646. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  647. package/examples/extensions/debug-provider.ts +2 -2
  648. package/examples/extensions/gondolin/package-lock.json +14 -24
  649. package/examples/extensions/gondolin/package.json +2 -2
  650. package/examples/extensions/preset.ts +2 -0
  651. package/examples/extensions/reload-runtime.ts +17 -5
  652. package/examples/extensions/todo.ts +7 -0
  653. package/examples/extensions/tools.ts +2 -0
  654. package/examples/extensions/with-deps/package-lock.json +2 -2
  655. package/examples/extensions/with-deps/package.json +1 -1
  656. package/examples/tsconfig.json +252 -0
  657. package/npm-shrinkwrap.json +289 -277
  658. package/package.json +29 -29
  659. package/schemas/keybindings.schema.json +28 -0
  660. package/schemas/models.schema.json +36 -36
  661. package/schemas/settings.schema.json +49 -0
  662. package/src/humain/ponytail/UPSTREAM.md +16 -2
  663. package/src/humain/ponytail/upstream.json +4 -4
  664. package/src/humain/web-access/UPSTREAM.md +48 -1
  665. package/src/humain/web-access/upstream.json +9 -6
  666. package/src/humain/web-access/vendor/CHANGELOG.md +1223 -0
  667. package/dist/bundle/chunks/anthropic-messages-ZP5KUK52.js +0 -67
  668. package/dist/bundle/chunks/azure-openai-responses-QJFYQ3DF.js +0 -15
  669. package/dist/bundle/chunks/chunk-2GCMACT4.js +0 -1956
  670. package/dist/bundle/chunks/chunk-AO6FF5JL.js +0 -21
  671. package/dist/bundle/chunks/chunk-EY3LZOUP.js +0 -1963
  672. package/dist/bundle/chunks/chunk-M74U5X4S.js +0 -119
  673. package/dist/bundle/chunks/chunk-N7CQ3UV3.js +0 -80
  674. package/dist/bundle/chunks/chunk-OR25QDSS.js +0 -365
  675. package/dist/bundle/chunks/chunk-PH7UP57J.js +0 -6
  676. package/dist/bundle/chunks/chunk-QW6PTCAB.js +0 -10
  677. package/dist/bundle/chunks/chunk-ROZV2IYD.js +0 -125
  678. package/dist/bundle/chunks/chunk-YFOLLX5D.js +0 -23
  679. package/dist/bundle/chunks/chunk-ZR4GF4WU.js +0 -54
  680. package/dist/bundle/chunks/compat-CJBWWYHE.js +0 -13
  681. package/dist/bundle/chunks/dist-IBUWEKEE.js +0 -24
  682. package/dist/bundle/chunks/dist-YFMJEHPH.js +0 -8
  683. package/dist/bundle/chunks/google-generative-ai-HVPCGIZ6.js +0 -21
  684. package/dist/bundle/chunks/google-vertex-UM5MAALA.js +0 -25
  685. package/dist/bundle/chunks/host-ZHEL5XQW.js +0 -2
  686. package/dist/bundle/chunks/mistral-conversations-AH72RLXK.js +0 -44
  687. package/dist/bundle/chunks/openai-codex-responses-L366637C.js +0 -98
  688. package/dist/bundle/chunks/openai-completions-ZP62QXJX.js +0 -83
  689. package/dist/bundle/chunks/openai-responses-DXUGSUTN.js +0 -26
  690. package/dist/bundle/chunks/pi-messages-MOQQDZBK.js +0 -23
  691. package/dist/bundle/chunks/virtual-modules-5D6QIJPN.js +0 -5
  692. package/examples/extensions/sandbox/index.ts +0 -321
  693. package/examples/extensions/sandbox/package-lock.json +0 -66
  694. package/examples/extensions/sandbox/package.json +0 -19
package/docs/windows.md CHANGED
@@ -76,6 +76,33 @@ JSON uses backslashes for escape sequences. When you write a Windows path with b
76
76
 
77
77
  See [Configure shell commands](shell-aliases.md) for command prefixes, aliases, and the complete shell-resolution behavior.
78
78
 
79
+ ## Choose a terminal
80
+
81
+ Windows terminals run HUMAIN Code CLI through a console host (conhost). Some bundle an up-to-date copy; others use the older one built into Windows, which has bugs that affect HUMAIN Code CLI.
82
+
83
+ We recommend [Windows Terminal](https://aka.ms/terminal). It always ships an up-to-date conhost, and HUMAIN Code CLI is best tested with it.
84
+
85
+ Last updated: October 2026.
86
+
87
+ | Terminal | Conhost | Status |
88
+ |---|---|---|
89
+ | [Windows Terminal](https://aka.ms/terminal) | Bundled, current | Recommended |
90
+ | [VS Code](https://code.visualstudio.com), [Tabby](https://tabby.sh), [WezTerm](https://wezterm.org) nightly | Bundled, current | Works |
91
+ | [Alacritty](https://alacritty.org) | Built-in, unless `conpty.dll` and `OpenConsole.exe` from Windows Terminal are next to `alacritty.exe` | Works only with those files |
92
+ | WezTerm 20240203 and older | Bundled, old | [Known issues](#known-issues) |
93
+ | Classic console (`cmd.exe` or PowerShell without Windows Terminal), mintty (Git Bash), ConEmu, Cmder, [Hyper](https://hyper.is), Windows OpenSSH | Built-in | [Known issues](#known-issues) |
94
+
79
95
  ## Configure Windows Terminal
80
96
 
81
97
  Windows Terminal reserves or rewrites some modified keys. See [Windows Terminal](terminal-setup.md#windows-terminal) to configure `Shift+Enter` and `Alt+Enter`, and [Keybindings](keybindings.md) for HUMAIN Code CLI's Windows and WSL shortcut defaults.
98
+
99
+ ## Known issues
100
+
101
+ These issues come from conhost. Microsoft has fixed them in its source, but has not said when the built-in conhost will get the fixes.
102
+
103
+ | Issue | Affects | Remedy |
104
+ |---|---|---|
105
+ | Switching from fullscreen to regular mode, or `Ctrl+G` from fullscreen, crashes the session ([#9186](https://github.com/earendil-works/pi/issues/9186), [microsoft/terminal#17515](https://github.com/microsoft/terminal/issues/17515)) | Built-in conhost | Use a terminal with a current conhost, or start HUMAIN Code CLI with `--tui-mode regular` |
106
+ | Text such as `;0;rgb:0000/0000/0000` appears in the prompt, and BEL opens the external editor ([#10256](https://github.com/earendil-works/pi/issues/10256)) | Built-in conhost behind another terminal: mintty, Windows OpenSSH | Use a terminal with a current conhost |
107
+ | Fragments such as `79` or `55` appear in the prompt ([#10717](https://github.com/earendil-works/pi/issues/10717)) | WezTerm 20240203 | Use WezTerm nightly |
108
+ | In regular mode, each keystroke redraws the input line on a new row ([#6300](https://github.com/earendil-works/pi/issues/6300)) | Built-in conhost, classic console | Use fullscreen mode (the default), or a terminal with a current conhost |
@@ -23,9 +23,10 @@ cp permission-gate.ts ~/.humain-terminal/agent/extensions/
23
23
  | `protected-paths.ts` | Blocks writes to protected paths (.env, .git/, node_modules/) |
24
24
  | `confirm-destructive.ts` | Confirms before destructive session actions (clear, switch, fork) |
25
25
  | `dirty-repo-guard.ts` | Prevents session changes with uncommitted git changes |
26
- | `sandbox/` | OS-level sandboxing using `@anthropic-ai/sandbox-runtime` with per-project config |
27
26
  | `gondolin/` | Route built-in tools and `!` commands into a Gondolin micro-VM |
28
27
 
28
+ For isolation setup and limitations, see [Run HUMAIN Code CLI in an isolated environment](../../docs/containerization.md).
29
+
29
30
  ### Custom Tools
30
31
 
31
32
  | Extension | Description |
@@ -42,7 +42,7 @@ import {
42
42
  type TextContent,
43
43
  type ThinkingContent,
44
44
  type Tool,
45
- type ToolCall,
45
+ ToolCallArgumentsStream,
46
46
  type ToolResultMessage,
47
47
  type TranscriptContext,
48
48
  } from "@earendil-works/pi-ai";
@@ -457,8 +457,9 @@ function streamCustomAnthropic(
457
457
  const anthropicStream = client.messages.stream({ ...params }, { signal: options?.signal });
458
458
  stream.push({ type: "start", partial: output });
459
459
 
460
- type Block = (ThinkingContent | TextContent | (ToolCall & { partialJson: string })) & { index: number };
461
- const blocks = output.content as Block[];
460
+ // Stream state per Anthropic block index, kept off the content blocks so it never reaches partial messages.
461
+ // ToolCallArgumentsStream reads each argument delta once and shows the arguments parsed so far.
462
+ const openBlocks = new Map<number, { contentIndex: number; arguments?: ToolCallArgumentsStream }>();
462
463
 
463
464
  for await (const event of anthropicStream) {
464
465
  if (event.type === "message_start") {
@@ -471,15 +472,12 @@ function streamCustomAnthropic(
471
472
  calculateCost(model, output.usage);
472
473
  } else if (event.type === "content_block_start") {
473
474
  if (event.content_block.type === "text") {
474
- output.content.push({ type: "text", text: "", index: event.index } as any);
475
+ output.content.push({ type: "text", text: "" });
476
+ openBlocks.set(event.index, { contentIndex: output.content.length - 1 });
475
477
  stream.push({ type: "text_start", contentIndex: output.content.length - 1, partial: output });
476
478
  } else if (event.content_block.type === "thinking") {
477
- output.content.push({
478
- type: "thinking",
479
- thinking: "",
480
- thinkingSignature: "",
481
- index: event.index,
482
- } as any);
479
+ output.content.push({ type: "thinking", thinking: "", thinkingSignature: "" });
480
+ openBlocks.set(event.index, { contentIndex: output.content.length - 1 });
483
481
  stream.push({ type: "thinking_start", contentIndex: output.content.length - 1, partial: output });
484
482
  } else if (event.content_block.type === "tool_use") {
485
483
  output.content.push({
@@ -487,15 +485,18 @@ function streamCustomAnthropic(
487
485
  id: event.content_block.id,
488
486
  name: isOAuth ? fromClaudeCodeName(event.content_block.name, tools) : event.content_block.name,
489
487
  arguments: {},
490
- partialJson: "",
491
- index: event.index,
492
- } as any);
488
+ });
489
+ openBlocks.set(event.index, {
490
+ contentIndex: output.content.length - 1,
491
+ arguments: new ToolCallArgumentsStream(),
492
+ });
493
493
  stream.push({ type: "toolcall_start", contentIndex: output.content.length - 1, partial: output });
494
494
  }
495
495
  } else if (event.type === "content_block_delta") {
496
- const index = blocks.findIndex((b) => b.index === event.index);
497
- const block = blocks[index];
498
- if (!block) continue;
496
+ const open = openBlocks.get(event.index);
497
+ if (!open) continue;
498
+ const index = open.contentIndex;
499
+ const block = output.content[index]!;
499
500
 
500
501
  if (event.delta.type === "text_delta" && block.type === "text") {
501
502
  block.text += event.delta.text;
@@ -508,11 +509,8 @@ function streamCustomAnthropic(
508
509
  delta: event.delta.thinking,
509
510
  partial: output,
510
511
  });
511
- } else if (event.delta.type === "input_json_delta" && block.type === "toolCall") {
512
- (block as any).partialJson += event.delta.partial_json;
513
- try {
514
- block.arguments = JSON.parse((block as any).partialJson);
515
- } catch {}
512
+ } else if (event.delta.type === "input_json_delta" && block.type === "toolCall" && open.arguments) {
513
+ block.arguments = open.arguments.append(event.delta.partial_json);
516
514
  stream.push({
517
515
  type: "toolcall_delta",
518
516
  contentIndex: index,
@@ -523,20 +521,19 @@ function streamCustomAnthropic(
523
521
  block.thinkingSignature = (block.thinkingSignature || "") + (event.delta as any).signature;
524
522
  }
525
523
  } else if (event.type === "content_block_stop") {
526
- const index = blocks.findIndex((b) => b.index === event.index);
527
- const block = blocks[index];
528
- if (!block) continue;
524
+ const open = openBlocks.get(event.index);
525
+ if (!open) continue;
526
+ openBlocks.delete(event.index);
527
+ const index = open.contentIndex;
528
+ const block = output.content[index]!;
529
529
 
530
- delete (block as any).index;
531
530
  if (block.type === "text") {
532
531
  stream.push({ type: "text_end", contentIndex: index, content: block.text, partial: output });
533
532
  } else if (block.type === "thinking") {
534
533
  stream.push({ type: "thinking_end", contentIndex: index, content: block.thinking, partial: output });
535
- } else if (block.type === "toolCall") {
536
- try {
537
- block.arguments = JSON.parse((block as any).partialJson);
538
- } catch {}
539
- delete (block as any).partialJson;
534
+ } else if (block.type === "toolCall" && open.arguments) {
535
+ // One full parse of the complete text; malformed arguments are reported in `argumentsError`.
536
+ Object.assign(block, open.arguments.finish());
540
537
  stream.push({ type: "toolcall_end", contentIndex: index, toolCall: block, partial: output });
541
538
  }
542
539
  } else if (event.type === "message_delta") {
@@ -566,7 +563,6 @@ function streamCustomAnthropic(
566
563
  stream.push({ type: "done", reason: output.stopReason, message: output });
567
564
  stream.end();
568
565
  } catch (error) {
569
- for (const block of output.content) delete (block as any).index;
570
566
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
571
567
  output.errorMessage = error instanceof Error ? error.message : JSON.stringify(error);
572
568
  stream.push({ type: "error", reason: output.stopReason, error: output });
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider-anthropic",
9
- "version": "1.3.0",
9
+ "version": "1.5.0",
10
10
  "dependencies": {
11
- "@anthropic-ai/sdk": "0.135.0"
11
+ "@anthropic-ai/sdk": "1.6.0"
12
12
  }
13
13
  },
14
14
  "node_modules/@anthropic-ai/sdk": {
15
- "version": "0.135.0",
16
- "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.135.0.tgz",
17
- "integrity": "sha512-WWrdL57JhU5KoynpTjt9GXK6k7ud9nPw2uw/Trn+oBXh6s0KpjhAccWZm2Qxw08ARYG1UDQj5iC+JO42j1rt/g==",
18
- "license": "MIT",
15
+ "version": "1.6.0",
16
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.6.0.tgz",
17
+ "integrity": "sha512-XqiO/46n8S6So8jQ/6/uNCkHntyW6QHHs1gZ+hlwTx1fWDr929g4VmwIXfdMVk7SuBWNdQvAlwyi1G3t6SEIuQ==",
18
+ "license": "Apache-2.0",
19
19
  "dependencies": {
20
20
  "@opentelemetry/api": "^1.4.1",
21
21
  "json-schema-to-ts": "^3.1.1",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -14,6 +14,6 @@
14
14
  ]
15
15
  },
16
16
  "dependencies": {
17
- "@anthropic-ai/sdk": "1.2.0"
17
+ "@anthropic-ai/sdk": "1.6.0"
18
18
  }
19
19
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -6,7 +6,7 @@
6
6
  * as expandable custom entries.
7
7
  */
8
8
 
9
- import { type ExtensionAPI, keyHint } from "@earendil-works/pi-coding-agent";
9
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
10
10
  import { Box, Text } from "@earendil-works/pi-tui";
11
11
 
12
12
  const ENTRY_TYPE = "debug-provider-events";
@@ -24,7 +24,7 @@ export default function (pi: ExtensionAPI) {
24
24
  let activeEvents: unknown[] | undefined;
25
25
  let completedEntry: ProviderDebugEntry | undefined;
26
26
 
27
- pi.registerEntryRenderer<ProviderDebugEntry>(ENTRY_TYPE, (entry, { expanded }, theme) => {
27
+ pi.registerEntryRenderer<ProviderDebugEntry>(ENTRY_TYPE, (entry, { expanded, keyHint }, theme) => {
28
28
  const data = entry.data;
29
29
  if (!data) return new Text(theme.fg("warning", "[provider debug] Missing event data"), 0, 0);
30
30
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-gondolin",
9
- "version": "1.4.0",
9
+ "version": "1.5.0",
10
10
  "dependencies": {
11
- "@earendil-works/gondolin": "0.13.0"
11
+ "@earendil-works/gondolin": "0.14.0"
12
12
  }
13
13
  },
14
14
  "node_modules/@cto.af/wtf8": {
@@ -21,13 +21,12 @@
21
21
  }
22
22
  },
23
23
  "node_modules/@earendil-works/gondolin": {
24
- "version": "0.13.0",
25
- "resolved": "https://registry.npmjs.org/@earendil-works/gondolin/-/gondolin-0.13.0.tgz",
26
- "integrity": "sha512-856nRmJ5932EkVn0mtW4WfJHRiVCXKlxz5Y/3+qDamqo5G2FORAqgVQOQRUg8rrdG1fGsjc0BxlDWjwPfL1rIQ==",
24
+ "version": "0.14.0",
25
+ "resolved": "https://registry.npmjs.org/@earendil-works/gondolin/-/gondolin-0.14.0.tgz",
26
+ "integrity": "sha512-MSw+EGcqFJeyKHdXEfm+nMRr74ytT4x8DGIohav0oPCHeVQAB9AajquM94cv2xqvIU3VDAaZZVC07IXsOY6OVQ==",
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
29
  "cbor2": "^2.3.0",
30
- "node-forge": "^1.4.0",
31
30
  "ssh2": "^1.17.0",
32
31
  "undici": "^6.29.0"
33
32
  },
@@ -38,14 +37,14 @@
38
37
  "node": ">=22.19.0"
39
38
  },
40
39
  "optionalDependencies": {
41
- "@earendil-works/gondolin-krun-runner-darwin-arm64": "0.13.0",
42
- "@earendil-works/gondolin-krun-runner-linux-x64": "0.13.0"
40
+ "@earendil-works/gondolin-krun-runner-darwin-arm64": "0.14.0",
41
+ "@earendil-works/gondolin-krun-runner-linux-x64": "0.14.0"
43
42
  }
44
43
  },
45
44
  "node_modules/@earendil-works/gondolin-krun-runner-darwin-arm64": {
46
- "version": "0.13.0",
47
- "resolved": "https://registry.npmjs.org/@earendil-works/gondolin-krun-runner-darwin-arm64/-/gondolin-krun-runner-darwin-arm64-0.13.0.tgz",
48
- "integrity": "sha512-b/Rz0YH0C10CBkPzlGbaqJW4kRX/uAb5iDDSb0CknarmWvwkbQRgaaQVJ7DXjmNkBf/88kp4/dpdpEGsUT08VA==",
45
+ "version": "0.14.0",
46
+ "resolved": "https://registry.npmjs.org/@earendil-works/gondolin-krun-runner-darwin-arm64/-/gondolin-krun-runner-darwin-arm64-0.14.0.tgz",
47
+ "integrity": "sha512-fvuhz1CZPaEbmXC0luZoXd1obAb0bjaaGJz33Jo63bhMlosYunAahItakh7cU0dnTlNFzufOSnpGOPqtuYjnpQ==",
49
48
  "cpu": [
50
49
  "arm64"
51
50
  ],
@@ -59,9 +58,9 @@
59
58
  }
60
59
  },
61
60
  "node_modules/@earendil-works/gondolin-krun-runner-linux-x64": {
62
- "version": "0.13.0",
63
- "resolved": "https://registry.npmjs.org/@earendil-works/gondolin-krun-runner-linux-x64/-/gondolin-krun-runner-linux-x64-0.13.0.tgz",
64
- "integrity": "sha512-IFGOKhx+fxsl0Jk1XhNVl83cPJYpGpetKnU1GWgI7u+MYm4iUfce0/QK05zpn2xs/FXsNzGMmb0lPkd19FQqhw==",
61
+ "version": "0.14.0",
62
+ "resolved": "https://registry.npmjs.org/@earendil-works/gondolin-krun-runner-linux-x64/-/gondolin-krun-runner-linux-x64-0.14.0.tgz",
63
+ "integrity": "sha512-91iw4smoOH/yOoAuQS6N2UZOxqSFwRhtk8rTyrokXBoWiWcveAzg4kHvnLcm40ZlNrWwzIDFrere4bkZeGDQcA==",
65
64
  "cpu": [
66
65
  "x64"
67
66
  ],
@@ -134,15 +133,6 @@
134
133
  "license": "MIT",
135
134
  "optional": true
136
135
  },
137
- "node_modules/node-forge": {
138
- "version": "1.4.0",
139
- "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz",
140
- "integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==",
141
- "license": "(BSD-3-Clause OR GPL-2.0)",
142
- "engines": {
143
- "node": ">= 6.13.0"
144
- }
145
- },
146
136
  "node_modules/safer-buffer": {
147
137
  "version": "2.1.2",
148
138
  "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
3
  "private": true,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -14,6 +14,6 @@
14
14
  ]
15
15
  },
16
16
  "dependencies": {
17
- "@earendil-works/gondolin": "0.13.0"
17
+ "@earendil-works/gondolin": "0.14.0"
18
18
  }
19
19
  }
@@ -252,6 +252,8 @@ export default function presetExtension(pi: ExtensionAPI) {
252
252
  container.addChild(new DynamicBorder((str) => theme.fg("accent", str)));
253
253
 
254
254
  return {
255
+ // Let PageUp/PageDown page the list instead of scrolling the fullscreen transcript.
256
+ capturesViewportInput: selectList.capturesViewportInput,
255
257
  render(width: number) {
256
258
  return container.render(width);
257
259
  },
@@ -2,7 +2,7 @@
2
2
  * Reload Runtime Extension
3
3
  *
4
4
  * Demonstrates ctx.reload() from ExtensionCommandContext and an LLM-callable
5
- * tool that queues a follow-up command to trigger reload.
5
+ * tool that requests a reload once the agent has settled.
6
6
  */
7
7
 
8
8
  import type { ExtensionAPI } from "@humain/humain-code";
@@ -19,19 +19,31 @@ export default function (pi: ExtensionAPI) {
19
19
  },
20
20
  });
21
21
 
22
- // LLM-callable tool. Tools get ExtensionContext, so they cannot call ctx.reload() directly.
23
- // Instead, queue a follow-up user command that executes the command above.
22
+ // LLM-callable tool. Tools do not receive ExtensionCommandContext, so they cannot call
23
+ // ctx.reload(), and Pi cannot reload while the agent is running. The tool records the
24
+ // request and ends the run; the agent_settled handler then runs the command above.
25
+ let reloadRequested = false;
26
+
24
27
  pi.registerTool({
25
28
  name: "reload_runtime",
26
29
  label: "Reload Runtime",
27
30
  description: "Reload extensions, skills, prompts, themes, and context files",
28
31
  parameters: Type.Object({}),
29
32
  async execute() {
30
- pi.sendUserMessage("/reload-runtime", { deliverAs: "followUp" });
33
+ reloadRequested = true;
31
34
  return {
32
- content: [{ type: "text", text: "Queued /reload-runtime as a follow-up command." }],
35
+ content: [{ type: "text", text: "Reload requested. HUMAIN Code CLI reloads after this response." }],
33
36
  details: {},
37
+ terminate: true,
34
38
  };
35
39
  },
36
40
  });
41
+
42
+ pi.on("agent_settled", () => {
43
+ if (!reloadRequested) return;
44
+ reloadRequested = false;
45
+ // Sent from agent_settled, the command runs after every settled handler finishes, while
46
+ // the agent is idle. expandPromptTemplates dispatches it as a command, not as model input.
47
+ pi.sendUserMessage("/reload-runtime", { expandPromptTemplates: true });
48
+ });
37
49
  }
@@ -276,6 +276,13 @@ export default function (pi: ExtensionAPI) {
276
276
 
277
277
  case "clear":
278
278
  return new Text(theme.fg("success", "✓ ") + theme.fg("muted", "Cleared all todos"), 0, 0);
279
+
280
+ default:
281
+ return new Text(
282
+ result.content[0]?.type === "text" ? theme.fg("error", result.content[0].text) : "",
283
+ 0,
284
+ 0,
285
+ );
279
286
  }
280
287
  },
281
288
  });
@@ -117,6 +117,8 @@ export default function toolsExtension(pi: ExtensionAPI) {
117
117
  container.addChild(settingsList);
118
118
 
119
119
  const component = {
120
+ // Let PageUp/PageDown page the list instead of scrolling the fullscreen transcript.
121
+ capturesViewportInput: settingsList.capturesViewportInput,
120
122
  render(width: number) {
121
123
  return container.render(width);
122
124
  },
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "1.3.0",
9
+ "version": "1.5.0",
10
10
  "dependencies": {
11
11
  "ms": "2.1.3"
12
12
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
3
  "private": true,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",