@humain/humain-code 0.8.3 → 0.8.5

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 (926) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/dist/bundle/agent-monitor.js +1 -1
  3. package/dist/bundle/chunks/anthropic-messages-42CGJCSR.js +82 -0
  4. package/dist/bundle/chunks/ask-VH7GNX75.js +97 -0
  5. package/dist/bundle/chunks/azure-openai-responses-DOKKMBUN.js +15 -0
  6. package/dist/bundle/chunks/bedrock-converse-stream.js +200 -179
  7. package/dist/bundle/chunks/bowser-UX7KDMIY.js +92 -0
  8. package/dist/bundle/chunks/{chunk-46C6D7UC.js → chunk-2CYGUEQO.js} +1 -1
  9. package/dist/bundle/chunks/chunk-2RXTZK2V.js +177 -0
  10. package/dist/bundle/chunks/{chunk-2XD7TLKB.js → chunk-3OOOEJV4.js} +16 -16
  11. package/dist/bundle/chunks/chunk-3RXT35Y3.js +3 -0
  12. package/dist/bundle/chunks/{chunk-MPRAQ6ZI.js → chunk-4LGBXPUD.js} +1 -1
  13. package/dist/bundle/chunks/chunk-4SL6URR3.js +90 -0
  14. package/dist/bundle/chunks/{chunk-AW24RHGJ.js → chunk-53DWQSBC.js} +4 -4
  15. package/dist/bundle/chunks/{chunk-LSRXA7OS.js → chunk-5C5K4EVJ.js} +3 -3
  16. package/dist/bundle/chunks/{chunk-2JNJJ6SZ.js → chunk-5KUCY54O.js} +3 -3
  17. package/dist/bundle/chunks/{chunk-4TDNOR36.js → chunk-625QJSFJ.js} +1 -1
  18. package/dist/bundle/chunks/chunk-7DIRHF4H.js +17 -0
  19. package/dist/bundle/chunks/{chunk-QJB5YI3I.js → chunk-7PAXKU7M.js} +1 -1
  20. package/dist/bundle/chunks/chunk-7XRMMCKG.js +2477 -0
  21. package/dist/bundle/chunks/{chunk-R2KD2HFT.js → chunk-7YB3HRRN.js} +83 -196
  22. package/dist/bundle/chunks/{chunk-DCXHRP6C.js → chunk-A2UZYK23.js} +13 -13
  23. package/dist/bundle/chunks/chunk-A5ZMBTTM.js +12 -0
  24. package/dist/bundle/chunks/{chunk-JKX5EGOT.js → chunk-AER66CNP.js} +13 -13
  25. package/dist/bundle/chunks/chunk-B3FT6L6S.js +131 -0
  26. package/dist/bundle/chunks/{chunk-VSXVZVBE.js → chunk-BDNX23GT.js} +433 -412
  27. package/dist/bundle/chunks/chunk-BIC5BSNX.js +13 -0
  28. package/dist/bundle/chunks/{chunk-JSHKS7VH.js → chunk-BNZZJ4LO.js} +1 -1
  29. package/dist/bundle/chunks/{chunk-4MKATHT2.js → chunk-CG43CMFH.js} +1 -1
  30. package/dist/bundle/chunks/{chunk-VFLVWPLZ.js → chunk-CKFLQGJN.js} +20 -16
  31. package/dist/bundle/chunks/{chunk-7LSTTCSC.js → chunk-COZTJAOY.js} +348 -177
  32. package/dist/bundle/chunks/chunk-D4UCXXDP.js +115 -0
  33. package/dist/bundle/chunks/{chunk-HQMUDHC3.js → chunk-D6ZWWDW5.js} +6 -5
  34. package/dist/bundle/chunks/{chunk-MUN4ZZZP.js → chunk-EWPEY4F4.js} +1341 -1366
  35. package/dist/bundle/chunks/{chunk-FJIISX5W.js → chunk-F74XLJPC.js} +195 -192
  36. package/dist/bundle/chunks/chunk-FDRBTGFJ.js +4 -0
  37. package/dist/bundle/chunks/chunk-FHP5BULR.js +5 -0
  38. package/dist/bundle/chunks/{chunk-E4VUW4RI.js → chunk-FLWO3H5J.js} +12 -12
  39. package/dist/bundle/chunks/{chunk-KLSRGGOH.js → chunk-G2PFPQX7.js} +2 -2
  40. package/dist/bundle/chunks/chunk-GMPJWLZS.js +57 -0
  41. package/dist/bundle/chunks/{chunk-M5TVWJ5T.js → chunk-H35P7ROY.js} +462 -441
  42. package/dist/bundle/chunks/chunk-HCHCYBNK.js +2 -0
  43. package/dist/bundle/chunks/{chunk-7WE77IE3.js → chunk-HRNYDRL7.js} +1 -1
  44. package/dist/bundle/chunks/chunk-HWFAAGYK.js +23 -0
  45. package/dist/bundle/chunks/{chunk-PVNXN2TC.js → chunk-II5C7G67.js} +1 -1
  46. package/dist/bundle/chunks/{chunk-F2H47FRF.js → chunk-IMRZP5SC.js} +182 -137
  47. package/dist/bundle/chunks/chunk-J64VNQ6D.js +13 -0
  48. package/dist/bundle/chunks/{chunk-65FLSKDA.js → chunk-K5EFEIFP.js} +5 -4
  49. package/dist/bundle/chunks/{chunk-KI7CHPWC.js → chunk-KJ3QRSSY.js} +46 -43
  50. package/dist/bundle/chunks/{cli-6DJO467D.js → chunk-KSEO2LRK.js} +12 -10
  51. package/dist/bundle/chunks/{chunk-HHWVVNGG.js → chunk-MA2WCMSN.js} +2 -2
  52. package/dist/bundle/chunks/{chunk-L4J7SMJB.js → chunk-MAEKQSFU.js} +1 -1
  53. package/dist/bundle/chunks/chunk-MHQNLTZR.js +8 -0
  54. package/dist/bundle/chunks/chunk-MLOUZAVZ.js +122 -0
  55. package/dist/bundle/chunks/chunk-MQYR4Q6X.js +5 -0
  56. package/dist/bundle/chunks/chunk-MXF3KYLZ.js +4 -0
  57. package/dist/bundle/chunks/{chunk-GY663MNP.js → chunk-MZRTVX7F.js} +1 -1
  58. package/dist/bundle/chunks/chunk-MZYHSWHX.js +59 -0
  59. package/dist/bundle/chunks/chunk-N3W4ALAM.js +1151 -0
  60. package/dist/bundle/chunks/{chunk-6HTHDVJC.js → chunk-NPVRWPGX.js} +1 -1
  61. package/dist/bundle/chunks/{chunk-BRSLXHED.js → chunk-O44A4E4K.js} +1 -1
  62. package/dist/bundle/chunks/{chunk-T2ZGMEMV.js → chunk-OADQOW67.js} +175 -260
  63. package/dist/bundle/chunks/{chunk-J4GII2EE.js → chunk-P7SLTLSZ.js} +51 -46
  64. package/dist/bundle/chunks/{chunk-7OZNMWAJ.js → chunk-PPGSQZZF.js} +1 -1
  65. package/dist/bundle/chunks/chunk-PYX6ZCC7.js +29 -0
  66. package/dist/bundle/chunks/chunk-PZ7NYBHJ.js +8 -0
  67. package/dist/bundle/chunks/{chunk-VCMXBP5S.js → chunk-QESIDBMW.js} +1 -7
  68. package/dist/bundle/chunks/chunk-QUWVILLB.js +3 -0
  69. package/dist/bundle/chunks/chunk-QZWUXGY7.js +99 -0
  70. package/dist/bundle/chunks/{chunk-MIAXMK5F.js → chunk-QZXLTW7V.js} +8 -7
  71. package/dist/bundle/chunks/chunk-RP6MWUAP.js +4 -0
  72. package/dist/bundle/chunks/chunk-SASR4VNV.js +17 -0
  73. package/dist/bundle/chunks/{chunk-JSZBTGI6.js → chunk-SZZ5PNP6.js} +2 -2
  74. package/dist/bundle/chunks/chunk-T5WECB2D.js +7 -0
  75. package/dist/bundle/chunks/{chunk-2NVGOSBN.js → chunk-T7F2TEIS.js} +37 -13
  76. package/dist/bundle/chunks/{chunk-ZSWU5KKA.js → chunk-UOSJTMCL.js} +7 -3
  77. package/dist/bundle/chunks/{chunk-6P6MMQUH.js → chunk-UTRUALFN.js} +3 -3
  78. package/dist/bundle/chunks/{chunk-PWFM6AQQ.js → chunk-V2HTCZRF.js} +70 -67
  79. package/dist/bundle/chunks/{chunk-4GB7A76U.js → chunk-VWUEKLRH.js} +225 -348
  80. package/dist/bundle/chunks/{chunk-JX6YIPNK.js → chunk-WCKS2DPT.js} +1 -1
  81. package/dist/bundle/chunks/chunk-XGOJCV6Z.js +2 -0
  82. package/dist/bundle/chunks/{chunk-7WETECIB.js → chunk-Z7BWHPJ2.js} +1 -1
  83. package/dist/bundle/chunks/chunk-ZFFDBTG3.js +17 -0
  84. package/dist/bundle/chunks/cli-NJLV3XDZ.js +3 -0
  85. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-JEZVYITT.js → cloudflare-workers-ai-system-one-ZAZW4M4B.js} +1 -1
  86. package/dist/bundle/chunks/{compat-4ILE5BEC.js → compat-2RC4CJNV.js} +12 -12
  87. package/dist/bundle/chunks/{curator-server-QB4GITGS.js → curator-server-MW645JI3.js} +2 -2
  88. package/dist/bundle/chunks/{dist-NXHRL2KY.js → dist-3DAGUOYC.js} +2 -2
  89. package/dist/bundle/chunks/{dist-I6CI3CG5.js → dist-K4QIXV5O.js} +9 -9
  90. package/dist/bundle/chunks/{dist-35STTNYA.js → dist-NI2PTSLH.js} +1 -1
  91. package/dist/bundle/chunks/{dist-CBODG4CA.js → dist-VXQT3DQY.js} +6 -6
  92. package/dist/bundle/chunks/{dist-cjs-EROMDUKS.js → dist-cjs-4JQA6W3S.js} +31 -31
  93. package/dist/bundle/chunks/doctor-EH7X36SK.js +83 -0
  94. package/dist/bundle/chunks/{easter-egg-3d-VZC5WOYV.js → easter-egg-3d-Z24JLXD4.js} +1 -1
  95. package/dist/bundle/chunks/entry-3EL6GOWK.js +2 -0
  96. package/dist/bundle/chunks/{entry-6XDR2IDE.js → entry-4IMREZBD.js} +80 -79
  97. package/dist/bundle/chunks/{execute-6MEJJF2T.js → execute-C4BZQRPQ.js} +23 -22
  98. package/dist/bundle/chunks/{extract-L373D6O7.js → extract-XVQCIS7D.js} +5 -5
  99. package/dist/bundle/chunks/{flow-implementer-XOP4MG5X.js → flow-implementer-J6QTLBTH.js} +5 -5
  100. package/dist/bundle/chunks/github-copilot.js +57 -56
  101. package/dist/bundle/chunks/google-generative-ai-P2P45MYP.js +22 -0
  102. package/dist/bundle/chunks/google-vertex-SHY4IS5F.js +26 -0
  103. package/dist/bundle/chunks/{host-WOLZCWQQ.js → host-YESS2VAB.js} +1 -1
  104. package/dist/bundle/chunks/{index.bundle-HONF3PUD.js → index.bundle-TZT64KLH.js} +102 -89
  105. package/dist/bundle/chunks/{inprocess-MBKFGDM2.js → inprocess-OHNEKTFB.js} +6 -6
  106. package/dist/bundle/chunks/interactive-mode-ZREVRX7W.js +5 -0
  107. package/dist/bundle/chunks/{llama-cpp-classify-KYZT532X.js → llama-cpp-classify-RSRH4KV2.js} +5 -5
  108. package/dist/bundle/chunks/mistral-conversations-YTMJKHHI.js +42 -0
  109. package/dist/bundle/chunks/{node-N7TPBUJB.js → node-FF6QQQLH.js} +1 -1
  110. package/dist/bundle/chunks/openai-codex-responses-NUCJOJSZ.js +97 -0
  111. package/dist/bundle/chunks/openai-completions-E5NRJUHA.js +91 -0
  112. package/dist/bundle/chunks/{openai-decisions-JMSDGR7K.js → openai-decisions-342J5ZYG.js} +1 -1
  113. package/dist/bundle/chunks/openai-responses-BN5Z4HFI.js +26 -0
  114. package/dist/bundle/chunks/openrouter-images-7RNG3JVF.js +12 -0
  115. package/dist/bundle/chunks/{pdfjs-FE3L72A6.js → pdfjs-LSTLRXQW.js} +1415 -1416
  116. package/dist/bundle/chunks/pi-messages-2L7FV5OK.js +22 -0
  117. package/dist/bundle/chunks/questionnaire-session-XEVAK7JS.js +123 -0
  118. package/dist/bundle/chunks/runtime-2FSZRUG5.js +2 -0
  119. package/dist/bundle/chunks/session-picker-666KJIVM.js +4 -0
  120. package/dist/bundle/chunks/startup-ui-INEVSNGK.js +3 -0
  121. package/dist/bundle/chunks/{trace-command-VM7FBWPE.js → trace-command-BCVMZ5ZD.js} +4 -4
  122. package/dist/bundle/chunks/typesafe-system-one-UJUNSZG4.js +3 -0
  123. package/dist/bundle/chunks/{undici-WVNE45GY.js → undici-7IGAYA4S.js} +1 -1
  124. package/dist/bundle/chunks/virtual-modules-6FVRJTM3.js +29 -0
  125. package/dist/bundle/cli-runtime.js +5 -5
  126. package/dist/bundle/flow/package.json +3 -3
  127. package/dist/bundle/index.js +13 -13
  128. package/dist/bundle/orchestrate/package.json +1 -1
  129. package/dist/bundle/rpc-entry.js +5 -4
  130. package/dist/cli/agent-dir-arg.d.ts +12 -0
  131. package/dist/cli/agent-dir-arg.d.ts.map +1 -0
  132. package/dist/cli/agent-dir-arg.js +15 -0
  133. package/dist/cli/agent-dir-arg.js.map +1 -0
  134. package/dist/cli/args.d.ts +9 -0
  135. package/dist/cli/args.d.ts.map +1 -1
  136. package/dist/cli/args.js +19 -5
  137. package/dist/cli/args.js.map +1 -1
  138. package/dist/cli/auth-check.d.ts +1 -1
  139. package/dist/cli/auth-check.d.ts.map +1 -1
  140. package/dist/cli/auth-check.js +4 -2
  141. package/dist/cli/auth-check.js.map +1 -1
  142. package/dist/cli/doctor-config.d.ts +14 -0
  143. package/dist/cli/doctor-config.d.ts.map +1 -0
  144. package/dist/cli/doctor-config.js +92 -0
  145. package/dist/cli/doctor-config.js.map +1 -0
  146. package/dist/cli/doctor-system.d.ts +12 -0
  147. package/dist/cli/doctor-system.d.ts.map +1 -0
  148. package/dist/cli/doctor-system.js +109 -0
  149. package/dist/cli/doctor-system.js.map +1 -0
  150. package/dist/cli/doctor.d.ts +11 -0
  151. package/dist/cli/doctor.d.ts.map +1 -0
  152. package/dist/cli/doctor.js +323 -0
  153. package/dist/cli/doctor.js.map +1 -0
  154. package/dist/cli/doctor.lazy.d.ts +3 -0
  155. package/dist/cli/doctor.lazy.d.ts.map +1 -0
  156. package/dist/cli/doctor.lazy.js +3 -0
  157. package/dist/cli/doctor.lazy.js.map +1 -0
  158. package/dist/cli/list-models.d.ts.map +1 -1
  159. package/dist/cli/list-models.js +0 -4
  160. package/dist/cli/list-models.js.map +1 -1
  161. package/dist/cli/project-trust.d.ts.map +1 -1
  162. package/dist/cli/project-trust.js +6 -6
  163. package/dist/cli/project-trust.js.map +1 -1
  164. package/dist/cli/startup-ui.d.ts +3 -2
  165. package/dist/cli/startup-ui.d.ts.map +1 -1
  166. package/dist/cli/startup-ui.js +23 -10
  167. package/dist/cli/startup-ui.js.map +1 -1
  168. package/dist/config.d.ts +5 -1
  169. package/dist/config.d.ts.map +1 -1
  170. package/dist/config.js +13 -3
  171. package/dist/config.js.map +1 -1
  172. package/dist/coordination/broker/broker.d.ts +3 -3
  173. package/dist/coordination/broker/broker.d.ts.map +1 -1
  174. package/dist/coordination/broker/broker.js +15 -7
  175. package/dist/coordination/broker/broker.js.map +1 -1
  176. package/dist/core/acceptance-command.d.ts +6 -3
  177. package/dist/core/acceptance-command.d.ts.map +1 -1
  178. package/dist/core/acceptance-command.js +43 -12
  179. package/dist/core/acceptance-command.js.map +1 -1
  180. package/dist/core/acceptance-ledger.d.ts +2 -0
  181. package/dist/core/acceptance-ledger.d.ts.map +1 -1
  182. package/dist/core/acceptance-ledger.js +14 -3
  183. package/dist/core/acceptance-ledger.js.map +1 -1
  184. package/dist/core/agent-session-runtime.d.ts +11 -4
  185. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  186. package/dist/core/agent-session-runtime.js +13 -4
  187. package/dist/core/agent-session-runtime.js.map +1 -1
  188. package/dist/core/agent-session-services.d.ts.map +1 -1
  189. package/dist/core/agent-session-services.js +6 -0
  190. package/dist/core/agent-session-services.js.map +1 -1
  191. package/dist/core/agent-session.d.ts +19 -1
  192. package/dist/core/agent-session.d.ts.map +1 -1
  193. package/dist/core/agent-session.js +131 -36
  194. package/dist/core/agent-session.js.map +1 -1
  195. package/dist/core/auth-storage.d.ts.map +1 -1
  196. package/dist/core/auth-storage.js +7 -1
  197. package/dist/core/auth-storage.js.map +1 -1
  198. package/dist/core/bash-executor.d.ts +3 -1
  199. package/dist/core/bash-executor.d.ts.map +1 -1
  200. package/dist/core/bash-executor.js +18 -8
  201. package/dist/core/bash-executor.js.map +1 -1
  202. package/dist/core/bug-report.d.ts +24 -1
  203. package/dist/core/bug-report.d.ts.map +1 -1
  204. package/dist/core/bug-report.js +216 -19
  205. package/dist/core/bug-report.js.map +1 -1
  206. package/dist/core/compaction/branch-summarization.d.ts +2 -2
  207. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  208. package/dist/core/compaction/branch-summarization.js +9 -15
  209. package/dist/core/compaction/branch-summarization.js.map +1 -1
  210. package/dist/core/compaction/compaction.d.ts.map +1 -1
  211. package/dist/core/compaction/compaction.js +3 -0
  212. package/dist/core/compaction/compaction.js.map +1 -1
  213. package/dist/core/export-html/index.d.ts.map +1 -1
  214. package/dist/core/export-html/index.js +12 -10
  215. package/dist/core/export-html/index.js.map +1 -1
  216. package/dist/core/export-html/template.js +23 -1
  217. package/dist/core/extensions/containment.d.ts +26 -0
  218. package/dist/core/extensions/containment.d.ts.map +1 -0
  219. package/dist/core/extensions/containment.js +66 -0
  220. package/dist/core/extensions/containment.js.map +1 -0
  221. package/dist/core/extensions/loader.d.ts.map +1 -1
  222. package/dist/core/extensions/loader.js +65 -7
  223. package/dist/core/extensions/loader.js.map +1 -1
  224. package/dist/core/extensions/runner.d.ts +2 -1
  225. package/dist/core/extensions/runner.d.ts.map +1 -1
  226. package/dist/core/extensions/runner.js +68 -12
  227. package/dist/core/extensions/runner.js.map +1 -1
  228. package/dist/core/extensions/types.d.ts +14 -3
  229. package/dist/core/extensions/types.d.ts.map +1 -1
  230. package/dist/core/extensions/types.js.map +1 -1
  231. package/dist/core/extensions/wrapper.d.ts.map +1 -1
  232. package/dist/core/extensions/wrapper.js +4 -1
  233. package/dist/core/extensions/wrapper.js.map +1 -1
  234. package/dist/core/footer-data-provider.d.ts.map +1 -1
  235. package/dist/core/footer-data-provider.js +2 -4
  236. package/dist/core/footer-data-provider.js.map +1 -1
  237. package/dist/core/http-dispatcher.d.ts +5 -2
  238. package/dist/core/http-dispatcher.d.ts.map +1 -1
  239. package/dist/core/http-dispatcher.js +6 -3
  240. package/dist/core/http-dispatcher.js.map +1 -1
  241. package/dist/core/keybindings.d.ts +20 -0
  242. package/dist/core/keybindings.d.ts.map +1 -1
  243. package/dist/core/keybindings.js +4 -1
  244. package/dist/core/keybindings.js.map +1 -1
  245. package/dist/core/mcp-servers.d.ts +29 -0
  246. package/dist/core/mcp-servers.d.ts.map +1 -1
  247. package/dist/core/mcp-servers.js +63 -17
  248. package/dist/core/mcp-servers.js.map +1 -1
  249. package/dist/core/messages.d.ts +4 -0
  250. package/dist/core/messages.d.ts.map +1 -1
  251. package/dist/core/messages.js +10 -2
  252. package/dist/core/messages.js.map +1 -1
  253. package/dist/core/model-config.d.ts +36 -0
  254. package/dist/core/model-config.d.ts.map +1 -1
  255. package/dist/core/model-resolver.js +1 -1
  256. package/dist/core/model-resolver.js.map +1 -1
  257. package/dist/core/model-runtime.d.ts.map +1 -1
  258. package/dist/core/model-runtime.js +6 -2
  259. package/dist/core/model-runtime.js.map +1 -1
  260. package/dist/core/nested-tool-calls.d.ts +6 -5
  261. package/dist/core/nested-tool-calls.d.ts.map +1 -1
  262. package/dist/core/nested-tool-calls.js +1 -3
  263. package/dist/core/nested-tool-calls.js.map +1 -1
  264. package/dist/core/os-secret-store.js +1 -1
  265. package/dist/core/os-secret-store.js.map +1 -1
  266. package/dist/core/package-manager.d.ts +3 -1
  267. package/dist/core/package-manager.d.ts.map +1 -1
  268. package/dist/core/package-manager.js +25 -4
  269. package/dist/core/package-manager.js.map +1 -1
  270. package/dist/core/pi-ai-schemas.d.ts +4 -0
  271. package/dist/core/pi-ai-schemas.d.ts.map +1 -1
  272. package/dist/core/project-trust.d.ts.map +1 -1
  273. package/dist/core/project-trust.js +1 -1
  274. package/dist/core/project-trust.js.map +1 -1
  275. package/dist/core/provider-composer.d.ts +1 -0
  276. package/dist/core/provider-composer.d.ts.map +1 -1
  277. package/dist/core/provider-composer.js +1 -0
  278. package/dist/core/provider-composer.js.map +1 -1
  279. package/dist/core/resolve-config-value.d.ts +4 -0
  280. package/dist/core/resolve-config-value.d.ts.map +1 -1
  281. package/dist/core/resolve-config-value.js +14 -3
  282. package/dist/core/resolve-config-value.js.map +1 -1
  283. package/dist/core/resource-loader.d.ts.map +1 -1
  284. package/dist/core/resource-loader.js +40 -2
  285. package/dist/core/resource-loader.js.map +1 -1
  286. package/dist/core/runtime-credentials.d.ts.map +1 -1
  287. package/dist/core/runtime-credentials.js +11 -7
  288. package/dist/core/runtime-credentials.js.map +1 -1
  289. package/dist/core/sdk.d.ts.map +1 -1
  290. package/dist/core/sdk.js +8 -4
  291. package/dist/core/sdk.js.map +1 -1
  292. package/dist/core/session-manager.d.ts +22 -1
  293. package/dist/core/session-manager.d.ts.map +1 -1
  294. package/dist/core/session-manager.js +227 -37
  295. package/dist/core/session-manager.js.map +1 -1
  296. package/dist/core/settings-defaults.d.ts +10 -1
  297. package/dist/core/settings-defaults.d.ts.map +1 -1
  298. package/dist/core/settings-defaults.js +7 -1
  299. package/dist/core/settings-defaults.js.map +1 -1
  300. package/dist/core/settings-manager.d.ts +14 -4
  301. package/dist/core/settings-manager.d.ts.map +1 -1
  302. package/dist/core/settings-manager.js +48 -15
  303. package/dist/core/settings-manager.js.map +1 -1
  304. package/dist/core/settings-schema.d.ts +20 -2
  305. package/dist/core/settings-schema.d.ts.map +1 -1
  306. package/dist/core/settings-schema.js +27 -4
  307. package/dist/core/settings-schema.js.map +1 -1
  308. package/dist/core/slash-commands.d.ts.map +1 -1
  309. package/dist/core/slash-commands.js +2 -0
  310. package/dist/core/slash-commands.js.map +1 -1
  311. package/dist/core/tools/bash-jobs.js +2 -2
  312. package/dist/core/tools/bash-jobs.js.map +1 -1
  313. package/dist/core/tools/bash.d.ts +3 -0
  314. package/dist/core/tools/bash.d.ts.map +1 -1
  315. package/dist/core/tools/bash.js +78 -46
  316. package/dist/core/tools/bash.js.map +1 -1
  317. package/dist/core/tools/edit-diff.d.ts +7 -1
  318. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  319. package/dist/core/tools/edit-diff.js +139 -75
  320. package/dist/core/tools/edit-diff.js.map +1 -1
  321. package/dist/core/tools/edit.d.ts.map +1 -1
  322. package/dist/core/tools/edit.js +4 -1
  323. package/dist/core/tools/edit.js.map +1 -1
  324. package/dist/core/tools/output-accumulator.d.ts +21 -6
  325. package/dist/core/tools/output-accumulator.d.ts.map +1 -1
  326. package/dist/core/tools/output-accumulator.js +90 -76
  327. package/dist/core/tools/output-accumulator.js.map +1 -1
  328. package/dist/core/tools/render-utils.d.ts +7 -2
  329. package/dist/core/tools/render-utils.d.ts.map +1 -1
  330. package/dist/core/tools/render-utils.js +14 -1
  331. package/dist/core/tools/render-utils.js.map +1 -1
  332. package/dist/core/tools/renderers/bash.d.ts.map +1 -1
  333. package/dist/core/tools/renderers/bash.js +9 -3
  334. package/dist/core/tools/renderers/bash.js.map +1 -1
  335. package/dist/core/tools/truncate.d.ts +1 -1
  336. package/dist/core/tools/truncate.d.ts.map +1 -1
  337. package/dist/core/tools/truncate.js +16 -7
  338. package/dist/core/tools/truncate.js.map +1 -1
  339. package/dist/core/tools/write.d.ts.map +1 -1
  340. package/dist/core/tools/write.js +2 -0
  341. package/dist/core/tools/write.js.map +1 -1
  342. package/dist/core/trust-manager.d.ts +2 -0
  343. package/dist/core/trust-manager.d.ts.map +1 -1
  344. package/dist/core/trust-manager.js +5 -4
  345. package/dist/core/trust-manager.js.map +1 -1
  346. package/dist/core/usage-totals.d.ts.map +1 -1
  347. package/dist/core/usage-totals.js +3 -0
  348. package/dist/core/usage-totals.js.map +1 -1
  349. package/dist/extensions/codemode/execute.d.ts.map +1 -1
  350. package/dist/extensions/codemode/execute.js +64 -20
  351. package/dist/extensions/codemode/execute.js.map +1 -1
  352. package/dist/extensions/codemode/renderer.d.ts.map +1 -1
  353. package/dist/extensions/codemode/renderer.js +8 -3
  354. package/dist/extensions/codemode/renderer.js.map +1 -1
  355. package/dist/extensions/codemode/tool.d.ts +5 -0
  356. package/dist/extensions/codemode/tool.d.ts.map +1 -1
  357. package/dist/extensions/codemode/tool.js.map +1 -1
  358. package/dist/extensions/llama/client.d.ts.map +1 -1
  359. package/dist/extensions/llama/client.js +3 -13
  360. package/dist/extensions/llama/client.js.map +1 -1
  361. package/dist/extensions/llama/ui.d.ts.map +1 -1
  362. package/dist/extensions/llama/ui.js +2 -1
  363. package/dist/extensions/llama/ui.js.map +1 -1
  364. package/dist/extensions/mcp/cli.d.ts +7 -0
  365. package/dist/extensions/mcp/cli.d.ts.map +1 -1
  366. package/dist/extensions/mcp/cli.js +35 -8
  367. package/dist/extensions/mcp/cli.js.map +1 -1
  368. package/dist/extensions/mcp/config.d.ts +33 -0
  369. package/dist/extensions/mcp/config.d.ts.map +1 -1
  370. package/dist/extensions/mcp/config.js +11 -2
  371. package/dist/extensions/mcp/config.js.map +1 -1
  372. package/dist/extensions/mcp/index.d.ts +8 -0
  373. package/dist/extensions/mcp/index.d.ts.map +1 -1
  374. package/dist/extensions/mcp/index.js +16 -0
  375. package/dist/extensions/mcp/index.js.map +1 -1
  376. package/dist/extensions/mcp/resources.d.ts +1 -1
  377. package/dist/extensions/mcp/resources.d.ts.map +1 -1
  378. package/dist/extensions/mcp/resources.js +4 -3
  379. package/dist/extensions/mcp/resources.js.map +1 -1
  380. package/dist/extensions/mcp/runtime.d.ts +1 -1
  381. package/dist/extensions/mcp/runtime.d.ts.map +1 -1
  382. package/dist/extensions/mcp/runtime.js +15 -14
  383. package/dist/extensions/mcp/runtime.js.map +1 -1
  384. package/dist/extensions/mcp/tools.d.ts +1 -24
  385. package/dist/extensions/mcp/tools.d.ts.map +1 -1
  386. package/dist/extensions/mcp/tools.js +10 -163
  387. package/dist/extensions/mcp/tools.js.map +1 -1
  388. package/dist/humain/ask-user-question/index.d.ts +4 -0
  389. package/dist/humain/ask-user-question/index.d.ts.map +1 -0
  390. package/dist/humain/ask-user-question/index.js +18 -0
  391. package/dist/humain/ask-user-question/index.js.map +1 -0
  392. package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts +38 -0
  393. package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts.map +1 -0
  394. package/dist/humain/ask-user-question/vendor/ask/answer-channel.js +97 -0
  395. package/dist/humain/ask-user-question/vendor/ask/answer-channel.js.map +1 -0
  396. package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts +41 -0
  397. package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts.map +1 -0
  398. package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js +441 -0
  399. package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js.map +1 -0
  400. package/dist/humain/ask-user-question/vendor/ask/config.d.ts +39 -0
  401. package/dist/humain/ask-user-question/vendor/ask/config.d.ts.map +1 -0
  402. package/dist/humain/ask-user-question/vendor/ask/config.js +95 -0
  403. package/dist/humain/ask-user-question/vendor/ask/config.js.map +1 -0
  404. package/dist/humain/ask-user-question/vendor/ask/events.d.ts +132 -0
  405. package/dist/humain/ask-user-question/vendor/ask/events.d.ts.map +1 -0
  406. package/dist/humain/ask-user-question/vendor/ask/events.js +50 -0
  407. package/dist/humain/ask-user-question/vendor/ask/events.js.map +1 -0
  408. package/dist/humain/ask-user-question/vendor/ask/index.d.ts +5 -0
  409. package/dist/humain/ask-user-question/vendor/ask/index.d.ts.map +1 -0
  410. package/dist/humain/ask-user-question/vendor/ask/index.js +15 -0
  411. package/dist/humain/ask-user-question/vendor/ask/index.js.map +1 -0
  412. package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts +81 -0
  413. package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts.map +1 -0
  414. package/dist/humain/ask-user-question/vendor/ask/presentation.js +105 -0
  415. package/dist/humain/ask-user-question/vendor/ask/presentation.js.map +1 -0
  416. package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts +28 -0
  417. package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts.map +1 -0
  418. package/dist/humain/ask-user-question/vendor/ask/reconcile.js +45 -0
  419. package/dist/humain/ask-user-question/vendor/ask/reconcile.js.map +1 -0
  420. package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts +41 -0
  421. package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts.map +1 -0
  422. package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js +166 -0
  423. package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js.map +1 -0
  424. package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts +46 -0
  425. package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts.map +1 -0
  426. package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js +247 -0
  427. package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js.map +1 -0
  428. package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts +11 -0
  429. package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts.map +1 -0
  430. package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js +56 -0
  431. package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js.map +1 -0
  432. package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts +6 -0
  433. package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts.map +1 -0
  434. package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js +10 -0
  435. package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js.map +1 -0
  436. package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts +57 -0
  437. package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts.map +1 -0
  438. package/dist/humain/ask-user-question/vendor/ask/state/key-router.js +357 -0
  439. package/dist/humain/ask-user-question/vendor/ask/state/key-router.js.map +1 -0
  440. package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts +112 -0
  441. package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts.map +1 -0
  442. package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js +240 -0
  443. package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js.map +1 -0
  444. package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts +87 -0
  445. package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts.map +1 -0
  446. package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js +79 -0
  447. package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js.map +1 -0
  448. package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts +22 -0
  449. package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts.map +1 -0
  450. package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js +2 -0
  451. package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js.map +1 -0
  452. package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts +27 -0
  453. package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts.map +1 -0
  454. package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js +48 -0
  455. package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js.map +1 -0
  456. package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts +13 -0
  457. package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts.map +1 -0
  458. package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js +15 -0
  459. package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js.map +1 -0
  460. package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts +14 -0
  461. package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts.map +1 -0
  462. package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js +96 -0
  463. package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js.map +1 -0
  464. package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts +58 -0
  465. package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts.map +1 -0
  466. package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js +310 -0
  467. package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js.map +1 -0
  468. package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts +68 -0
  469. package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts.map +1 -0
  470. package/dist/humain/ask-user-question/vendor/ask/state/state.js +2 -0
  471. package/dist/humain/ask-user-question/vendor/ask/state/state.js.map +1 -0
  472. package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts +24 -0
  473. package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts.map +1 -0
  474. package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js +114 -0
  475. package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js.map +1 -0
  476. package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts +18 -0
  477. package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts.map +1 -0
  478. package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js +29 -0
  479. package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js.map +1 -0
  480. package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts +41 -0
  481. package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts.map +1 -0
  482. package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js +99 -0
  483. package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js.map +1 -0
  484. package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts +37 -0
  485. package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts.map +1 -0
  486. package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js +70 -0
  487. package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js.map +1 -0
  488. package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts +129 -0
  489. package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts.map +1 -0
  490. package/dist/humain/ask-user-question/vendor/ask/tool/types.js +76 -0
  491. package/dist/humain/ask-user-question/vendor/ask/tool/types.js.map +1 -0
  492. package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts +21 -0
  493. package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts.map +1 -0
  494. package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js +49 -0
  495. package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js.map +1 -0
  496. package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts +23 -0
  497. package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts.map +1 -0
  498. package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js +16 -0
  499. package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js.map +1 -0
  500. package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts +21 -0
  501. package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts.map +1 -0
  502. package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js +49 -0
  503. package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js.map +1 -0
  504. package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts +43 -0
  505. package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts.map +1 -0
  506. package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js +130 -0
  507. package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js.map +1 -0
  508. package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts +45 -0
  509. package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts.map +1 -0
  510. package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js +39 -0
  511. package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js.map +1 -0
  512. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts +36 -0
  513. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts.map +1 -0
  514. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js +72 -0
  515. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js.map +1 -0
  516. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts +61 -0
  517. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts.map +1 -0
  518. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js +108 -0
  519. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js.map +1 -0
  520. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts +39 -0
  521. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts.map +1 -0
  522. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js +76 -0
  523. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js.map +1 -0
  524. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts +123 -0
  525. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts.map +1 -0
  526. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js +180 -0
  527. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js.map +1 -0
  528. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts +108 -0
  529. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts.map +1 -0
  530. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js +235 -0
  531. package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js.map +1 -0
  532. package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts +37 -0
  533. package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts.map +1 -0
  534. package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js +47 -0
  535. package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js.map +1 -0
  536. package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts +31 -0
  537. package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts.map +1 -0
  538. package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js +35 -0
  539. package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js.map +1 -0
  540. package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts +124 -0
  541. package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts.map +1 -0
  542. package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js +205 -0
  543. package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js.map +1 -0
  544. package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts +83 -0
  545. package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts.map +1 -0
  546. package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js +186 -0
  547. package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js.map +1 -0
  548. package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts +47 -0
  549. package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts.map +1 -0
  550. package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js +48 -0
  551. package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js.map +1 -0
  552. package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts +58 -0
  553. package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts.map +1 -0
  554. package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js +84 -0
  555. package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js.map +1 -0
  556. package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts +20 -0
  557. package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts.map +1 -0
  558. package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js +55 -0
  559. package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js.map +1 -0
  560. package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts +23 -0
  561. package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts.map +1 -0
  562. package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js +2 -0
  563. package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js.map +1 -0
  564. package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts +15 -0
  565. package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts.map +1 -0
  566. package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js +2 -0
  567. package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js.map +1 -0
  568. package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts +98 -0
  569. package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts.map +1 -0
  570. package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js +248 -0
  571. package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js.map +1 -0
  572. package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts +23 -0
  573. package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts.map +1 -0
  574. package/dist/humain/ask-user-question/vendor/ask/view/transcript.js +131 -0
  575. package/dist/humain/ask-user-question/vendor/ask/view/transcript.js.map +1 -0
  576. package/dist/humain/ask-user-question/vendor/config/config.d.ts +132 -0
  577. package/dist/humain/ask-user-question/vendor/config/config.d.ts.map +1 -0
  578. package/dist/humain/ask-user-question/vendor/config/config.js +286 -0
  579. package/dist/humain/ask-user-question/vendor/config/config.js.map +1 -0
  580. package/dist/humain/ask-user-question/vendor/config/index.d.ts +2 -0
  581. package/dist/humain/ask-user-question/vendor/config/index.d.ts.map +1 -0
  582. package/dist/humain/ask-user-question/vendor/config/index.js +2 -0
  583. package/dist/humain/ask-user-question/vendor/config/index.js.map +1 -0
  584. package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts +64 -0
  585. package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts.map +1 -0
  586. package/dist/humain/ask-user-question/vendor/i18n/i18n.js +185 -0
  587. package/dist/humain/ask-user-question/vendor/i18n/i18n.js.map +1 -0
  588. package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts +44 -0
  589. package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts.map +1 -0
  590. package/dist/humain/ask-user-question/vendor/i18n/loader.js +55 -0
  591. package/dist/humain/ask-user-question/vendor/i18n/loader.js.map +1 -0
  592. package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +26 -16
  593. package/dist/humain/brand-logo.d.ts +2 -0
  594. package/dist/humain/brand-logo.d.ts.map +1 -1
  595. package/dist/humain/brand-logo.js +4 -0
  596. package/dist/humain/brand-logo.js.map +1 -1
  597. package/dist/humain/bundled-extension-names.d.ts +1 -0
  598. package/dist/humain/bundled-extension-names.d.ts.map +1 -1
  599. package/dist/humain/bundled-extension-names.js +1 -0
  600. package/dist/humain/bundled-extension-names.js.map +1 -1
  601. package/dist/humain/checklist/footer-progress.d.ts +7 -0
  602. package/dist/humain/checklist/footer-progress.d.ts.map +1 -0
  603. package/dist/humain/checklist/footer-progress.js +15 -0
  604. package/dist/humain/checklist/footer-progress.js.map +1 -0
  605. package/dist/humain/checklist/glyphs.d.ts +7 -0
  606. package/dist/humain/checklist/glyphs.d.ts.map +1 -0
  607. package/dist/humain/checklist/glyphs.js +8 -0
  608. package/dist/humain/checklist/glyphs.js.map +1 -0
  609. package/dist/humain/checklist/index.d.ts +6 -0
  610. package/dist/humain/checklist/index.d.ts.map +1 -0
  611. package/dist/humain/checklist/index.js +37 -0
  612. package/dist/humain/checklist/index.js.map +1 -0
  613. package/dist/humain/checklist/progress.d.ts +37 -0
  614. package/dist/humain/checklist/progress.d.ts.map +1 -0
  615. package/dist/humain/checklist/progress.js +234 -0
  616. package/dist/humain/checklist/progress.js.map +1 -0
  617. package/dist/humain/checklist/projector.d.ts +53 -0
  618. package/dist/humain/checklist/projector.d.ts.map +1 -0
  619. package/dist/humain/checklist/projector.js +198 -0
  620. package/dist/humain/checklist/projector.js.map +1 -0
  621. package/dist/humain/checklist/sidebar.d.ts +18 -0
  622. package/dist/humain/checklist/sidebar.d.ts.map +1 -0
  623. package/dist/humain/checklist/sidebar.js +38 -0
  624. package/dist/humain/checklist/sidebar.js.map +1 -0
  625. package/dist/humain/checklist/status-segment.d.ts +19 -0
  626. package/dist/humain/checklist/status-segment.d.ts.map +1 -0
  627. package/dist/humain/checklist/status-segment.js +59 -0
  628. package/dist/humain/checklist/status-segment.js.map +1 -0
  629. package/dist/humain/checklist/vendor/add-task-dialog.d.ts +54 -0
  630. package/dist/humain/checklist/vendor/add-task-dialog.d.ts.map +1 -0
  631. package/dist/humain/checklist/vendor/add-task-dialog.js +238 -0
  632. package/dist/humain/checklist/vendor/add-task-dialog.js.map +1 -0
  633. package/dist/humain/checklist/vendor/commands.d.ts +38 -0
  634. package/dist/humain/checklist/vendor/commands.d.ts.map +1 -0
  635. package/dist/humain/checklist/vendor/commands.js +205 -0
  636. package/dist/humain/checklist/vendor/commands.js.map +1 -0
  637. package/dist/humain/checklist/vendor/index.d.ts +3 -0
  638. package/dist/humain/checklist/vendor/index.d.ts.map +1 -0
  639. package/dist/humain/checklist/vendor/index.js +276 -0
  640. package/dist/humain/checklist/vendor/index.js.map +1 -0
  641. package/dist/humain/checklist/vendor/render.d.ts +97 -0
  642. package/dist/humain/checklist/vendor/render.d.ts.map +1 -0
  643. package/dist/humain/checklist/vendor/render.js +354 -0
  644. package/dist/humain/checklist/vendor/render.js.map +1 -0
  645. package/dist/humain/checklist/vendor/settings.d.ts +11 -0
  646. package/dist/humain/checklist/vendor/settings.d.ts.map +1 -0
  647. package/dist/humain/checklist/vendor/settings.js +8 -0
  648. package/dist/humain/checklist/vendor/settings.js.map +1 -0
  649. package/dist/humain/checklist/vendor/store.d.ts +120 -0
  650. package/dist/humain/checklist/vendor/store.d.ts.map +1 -0
  651. package/dist/humain/checklist/vendor/store.js +990 -0
  652. package/dist/humain/checklist/vendor/store.js.map +1 -0
  653. package/dist/humain/checklist/vendor/tools.d.ts +21 -0
  654. package/dist/humain/checklist/vendor/tools.d.ts.map +1 -0
  655. package/dist/humain/checklist/vendor/tools.js +162 -0
  656. package/dist/humain/checklist/vendor/tools.js.map +1 -0
  657. package/dist/humain/checklist/vendor/types.d.ts +188 -0
  658. package/dist/humain/checklist/vendor/types.d.ts.map +1 -0
  659. package/dist/humain/checklist/vendor/types.js +32 -0
  660. package/dist/humain/checklist/vendor/types.js.map +1 -0
  661. package/dist/humain/flow-loader.d.ts.map +1 -1
  662. package/dist/humain/flow-loader.js +31 -5
  663. package/dist/humain/flow-loader.js.map +1 -1
  664. package/dist/humain/gateway/catalog.d.ts +1 -0
  665. package/dist/humain/gateway/catalog.d.ts.map +1 -1
  666. package/dist/humain/gateway/catalog.js +1 -0
  667. package/dist/humain/gateway/catalog.js.map +1 -1
  668. package/dist/humain/gateway/client.d.ts +1 -0
  669. package/dist/humain/gateway/client.d.ts.map +1 -1
  670. package/dist/humain/gateway/client.js +8 -1
  671. package/dist/humain/gateway/client.js.map +1 -1
  672. package/dist/humain/gateway/http.d.ts.map +1 -1
  673. package/dist/humain/gateway/http.js +11 -3
  674. package/dist/humain/gateway/http.js.map +1 -1
  675. package/dist/humain/gateway/images.d.ts +3 -0
  676. package/dist/humain/gateway/images.d.ts.map +1 -0
  677. package/dist/humain/gateway/images.js +73 -0
  678. package/dist/humain/gateway/images.js.map +1 -0
  679. package/dist/humain/gateway/provider.js +1 -1
  680. package/dist/humain/gateway/provider.js.map +1 -1
  681. package/dist/humain/hcode/account-store.d.ts.map +1 -1
  682. package/dist/humain/hcode/account-store.js +3 -1
  683. package/dist/humain/hcode/account-store.js.map +1 -1
  684. package/dist/humain/hcode/account.d.ts.map +1 -1
  685. package/dist/humain/hcode/account.js +23 -13
  686. package/dist/humain/hcode/account.js.map +1 -1
  687. package/dist/humain/hcode/images.d.ts.map +1 -1
  688. package/dist/humain/hcode/images.js +19 -13
  689. package/dist/humain/hcode/images.js.map +1 -1
  690. package/dist/humain/hcode/login-failure.d.ts +1 -0
  691. package/dist/humain/hcode/login-failure.d.ts.map +1 -1
  692. package/dist/humain/hcode/login-failure.js +1 -0
  693. package/dist/humain/hcode/login-failure.js.map +1 -1
  694. package/dist/humain/hcode/provider.d.ts.map +1 -1
  695. package/dist/humain/hcode/provider.js +2 -1
  696. package/dist/humain/hcode/provider.js.map +1 -1
  697. package/dist/humain/hcode/run-credential.d.ts +1 -0
  698. package/dist/humain/hcode/run-credential.d.ts.map +1 -1
  699. package/dist/humain/hcode/run-credential.js +12 -4
  700. package/dist/humain/hcode/run-credential.js.map +1 -1
  701. package/dist/humain/index.d.ts.map +1 -1
  702. package/dist/humain/index.js +4 -0
  703. package/dist/humain/index.js.map +1 -1
  704. package/dist/humain/node-provider.d.ts.map +1 -1
  705. package/dist/humain/node-provider.js +37 -8
  706. package/dist/humain/node-provider.js.map +1 -1
  707. package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
  708. package/dist/humain/web-access/vendor/index.js +11 -1
  709. package/dist/humain/web-access/vendor/index.js.map +1 -1
  710. package/dist/main.d.ts +1 -1
  711. package/dist/main.d.ts.map +1 -1
  712. package/dist/main.js +36 -26
  713. package/dist/main.js.map +1 -1
  714. package/dist/modes/interactive/bug-report.d.ts.map +1 -1
  715. package/dist/modes/interactive/bug-report.js +48 -12
  716. package/dist/modes/interactive/bug-report.js.map +1 -1
  717. package/dist/modes/interactive/chat-viewport.js +1 -1
  718. package/dist/modes/interactive/chat-viewport.js.map +1 -1
  719. package/dist/modes/interactive/components/bash-execution.d.ts +2 -1
  720. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  721. package/dist/modes/interactive/components/bash-execution.js +7 -4
  722. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  723. package/dist/modes/interactive/components/config-selector.js +1 -1
  724. package/dist/modes/interactive/components/config-selector.js.map +1 -1
  725. package/dist/modes/interactive/components/custom-editor.d.ts +2 -0
  726. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  727. package/dist/modes/interactive/components/custom-editor.js +20 -1
  728. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  729. package/dist/modes/interactive/components/extension-editor.d.ts +1 -1
  730. package/dist/modes/interactive/components/extension-editor.js +2 -2
  731. package/dist/modes/interactive/components/extension-editor.js.map +1 -1
  732. package/dist/modes/interactive/components/footer.d.ts +7 -0
  733. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  734. package/dist/modes/interactive/components/footer.js +74 -1
  735. package/dist/modes/interactive/components/footer.js.map +1 -1
  736. package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
  737. package/dist/modes/interactive/components/mermaid.js +11 -4
  738. package/dist/modes/interactive/components/mermaid.js.map +1 -1
  739. package/dist/modes/interactive/components/model-selector.d.ts +2 -0
  740. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  741. package/dist/modes/interactive/components/model-selector.js +56 -8
  742. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  743. package/dist/modes/interactive/components/oauth-selector.d.ts +13 -1
  744. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  745. package/dist/modes/interactive/components/oauth-selector.js +10 -9
  746. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  747. package/dist/modes/interactive/components/session-selector.js +3 -3
  748. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  749. package/dist/modes/interactive/components/settings-selector.d.ts +4 -3
  750. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  751. package/dist/modes/interactive/components/settings-selector.js +83 -37
  752. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  753. package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
  754. package/dist/modes/interactive/components/settings-submenu.js +3 -3
  755. package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
  756. package/dist/modes/interactive/components/status-indicator.d.ts +18 -7
  757. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
  758. package/dist/modes/interactive/components/status-indicator.js +70 -24
  759. package/dist/modes/interactive/components/status-indicator.js.map +1 -1
  760. package/dist/modes/interactive/components/status-line.d.ts +16 -0
  761. package/dist/modes/interactive/components/status-line.d.ts.map +1 -0
  762. package/dist/modes/interactive/components/status-line.js +51 -0
  763. package/dist/modes/interactive/components/status-line.js.map +1 -0
  764. package/dist/modes/interactive/components/tool-execution.d.ts +5 -0
  765. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  766. package/dist/modes/interactive/components/tool-execution.js +8 -1
  767. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  768. package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
  769. package/dist/modes/interactive/components/visual-truncate.js +11 -3
  770. package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
  771. package/dist/modes/interactive/external-editor.d.ts.map +1 -1
  772. package/dist/modes/interactive/external-editor.js +13 -3
  773. package/dist/modes/interactive/external-editor.js.map +1 -1
  774. package/dist/modes/interactive/interactive-mode.d.ts +20 -4
  775. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  776. package/dist/modes/interactive/interactive-mode.js +260 -154
  777. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  778. package/dist/modes/interactive/program-status-reporter.d.ts +2 -0
  779. package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -1
  780. package/dist/modes/interactive/program-status-reporter.js +4 -0
  781. package/dist/modes/interactive/program-status-reporter.js.map +1 -1
  782. package/dist/modes/interactive/session-share.d.ts.map +1 -1
  783. package/dist/modes/interactive/session-share.js +9 -1
  784. package/dist/modes/interactive/session-share.js.map +1 -1
  785. package/dist/modes/print-mode.d.ts.map +1 -1
  786. package/dist/modes/print-mode.js +34 -7
  787. package/dist/modes/print-mode.js.map +1 -1
  788. package/dist/modes/rpc/jsonl.js +6 -5
  789. package/dist/modes/rpc/jsonl.js.map +1 -1
  790. package/dist/modes/rpc/rpc-client.d.ts +2 -0
  791. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  792. package/dist/modes/rpc/rpc-client.js +9 -2
  793. package/dist/modes/rpc/rpc-client.js.map +1 -1
  794. package/dist/modes/rpc/rpc-mode.d.ts +2 -1
  795. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  796. package/dist/modes/rpc/rpc-mode.js +113 -13
  797. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  798. package/dist/modes/rpc/rpc-types.d.ts +22 -1
  799. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  800. package/dist/modes/rpc/rpc-types.js.map +1 -1
  801. package/dist/modes/uncaught-errors.d.ts +20 -0
  802. package/dist/modes/uncaught-errors.d.ts.map +1 -0
  803. package/dist/modes/uncaught-errors.js +56 -0
  804. package/dist/modes/uncaught-errors.js.map +1 -0
  805. package/dist/package-manager-cli.d.ts.map +1 -1
  806. package/dist/package-manager-cli.js +10 -1
  807. package/dist/package-manager-cli.js.map +1 -1
  808. package/dist/utils/clipboard-image.js +1 -1
  809. package/dist/utils/clipboard-image.js.map +1 -1
  810. package/dist/utils/clipboard.js +2 -2
  811. package/dist/utils/clipboard.js.map +1 -1
  812. package/dist/utils/image-process.d.ts +5 -0
  813. package/dist/utils/image-process.d.ts.map +1 -1
  814. package/dist/utils/image-process.js +22 -4
  815. package/dist/utils/image-process.js.map +1 -1
  816. package/dist/utils/output-files.d.ts +44 -7
  817. package/dist/utils/output-files.d.ts.map +1 -1
  818. package/dist/utils/output-files.js +206 -12
  819. package/dist/utils/output-files.js.map +1 -1
  820. package/dist/utils/piped-stdin.d.ts +21 -0
  821. package/dist/utils/piped-stdin.d.ts.map +1 -0
  822. package/dist/utils/piped-stdin.js +60 -0
  823. package/dist/utils/piped-stdin.js.map +1 -0
  824. package/dist/utils/shell.d.ts +5 -2
  825. package/dist/utils/shell.d.ts.map +1 -1
  826. package/dist/utils/shell.js +77 -8
  827. package/dist/utils/shell.js.map +1 -1
  828. package/dist/utils/syntax-highlight.d.ts +33 -2
  829. package/dist/utils/syntax-highlight.d.ts.map +1 -1
  830. package/dist/utils/syntax-highlight.js +77 -10
  831. package/dist/utils/syntax-highlight.js.map +1 -1
  832. package/dist/utils/tools-manager.d.ts +1 -0
  833. package/dist/utils/tools-manager.d.ts.map +1 -1
  834. package/dist/utils/tools-manager.js +9 -8
  835. package/dist/utils/tools-manager.js.map +1 -1
  836. package/dist/utils/wsl.d.ts +8 -2
  837. package/dist/utils/wsl.d.ts.map +1 -1
  838. package/dist/utils/wsl.js +12 -3
  839. package/dist/utils/wsl.js.map +1 -1
  840. package/docs/cli.md +39 -3
  841. package/docs/codemode.md +7 -3
  842. package/docs/compaction.md +1 -1
  843. package/docs/development.md +6 -0
  844. package/docs/environment-variables.md +3 -2
  845. package/docs/extensions.md +21 -5
  846. package/docs/flow.md +2 -0
  847. package/docs/humain-code.md +1 -1
  848. package/docs/keybindings.md +2 -0
  849. package/docs/llama-cpp.md +2 -2
  850. package/docs/message-types.md +1 -0
  851. package/docs/models-configuration.md +14 -3
  852. package/docs/models.md +29 -7
  853. package/docs/providers.md +20 -2
  854. package/docs/rpc-commands.md +25 -2
  855. package/docs/rpc.md +20 -0
  856. package/docs/run-preflight.md +2 -2
  857. package/docs/session-format.md +9 -0
  858. package/docs/settings.md +35 -5
  859. package/docs/shell-aliases.md +1 -1
  860. package/docs/slash-commands.md +3 -1
  861. package/docs/terminal-setup.md +25 -0
  862. package/docs/windows.md +2 -1
  863. package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
  864. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  865. package/examples/rpc-extension-ui.ts +8 -7
  866. package/npm-shrinkwrap.json +209 -180
  867. package/package.json +26 -20
  868. package/schemas/keybindings.schema.json +12 -0
  869. package/schemas/models.schema.json +20 -7
  870. package/schemas/settings.schema.json +43 -5
  871. package/src/coordination/UPSTREAM.md +27 -1
  872. package/src/coordination/upstream.json +3 -3
  873. package/src/humain/ask-user-question/UPSTREAM.md +31 -0
  874. package/src/humain/ask-user-question/upstream.json +258 -0
  875. package/src/humain/ask-user-question/vendor/ask/LICENSE +21 -0
  876. package/src/humain/ask-user-question/vendor/ask/locales/de.json +38 -0
  877. package/src/humain/ask-user-question/vendor/ask/locales/en.json +41 -0
  878. package/src/humain/ask-user-question/vendor/ask/locales/es.json +38 -0
  879. package/src/humain/ask-user-question/vendor/ask/locales/fr.json +38 -0
  880. package/src/humain/ask-user-question/vendor/ask/locales/pt-BR.json +38 -0
  881. package/src/humain/ask-user-question/vendor/ask/locales/pt.json +38 -0
  882. package/src/humain/ask-user-question/vendor/ask/locales/ru.json +38 -0
  883. package/src/humain/ask-user-question/vendor/ask/locales/uk.json +38 -0
  884. package/src/humain/ask-user-question/vendor/ask/locales/zh.json +40 -0
  885. package/src/humain/ask-user-question/vendor/config/LICENSE +21 -0
  886. package/src/humain/ask-user-question/vendor/i18n/LICENSE +21 -0
  887. package/src/humain/caveman/UPSTREAM.md +44 -11
  888. package/src/humain/caveman/upstream.json +3 -3
  889. package/src/humain/caveman/vendor/NOTICE +4 -0
  890. package/src/humain/web-access/UPSTREAM.md +8 -0
  891. package/dist/bundle/chunks/anthropic-messages-XFCDMGD6.js +0 -77
  892. package/dist/bundle/chunks/azure-openai-responses-F4KQM3NK.js +0 -15
  893. package/dist/bundle/chunks/bowser-DXKSTXFQ.js +0 -89
  894. package/dist/bundle/chunks/chunk-3E37CJCE.js +0 -34
  895. package/dist/bundle/chunks/chunk-3HVHETMU.js +0 -18
  896. package/dist/bundle/chunks/chunk-6JTCRCNF.js +0 -74
  897. package/dist/bundle/chunks/chunk-B3ZLWVDA.js +0 -80
  898. package/dist/bundle/chunks/chunk-F77J5EQZ.js +0 -3
  899. package/dist/bundle/chunks/chunk-GPLWWO5Q.js +0 -121
  900. package/dist/bundle/chunks/chunk-GV5OVRKK.js +0 -4
  901. package/dist/bundle/chunks/chunk-JBSWWCT5.js +0 -12
  902. package/dist/bundle/chunks/chunk-JWOPWHVH.js +0 -51
  903. package/dist/bundle/chunks/chunk-KRBELWQH.js +0 -7
  904. package/dist/bundle/chunks/chunk-PFBAIRCY.js +0 -56
  905. package/dist/bundle/chunks/chunk-Q5RKNQ2T.js +0 -73
  906. package/dist/bundle/chunks/chunk-QFDZEUFU.js +0 -12
  907. package/dist/bundle/chunks/chunk-SKCJ25SX.js +0 -24
  908. package/dist/bundle/chunks/chunk-UZOIHLNU.js +0 -23
  909. package/dist/bundle/chunks/chunk-YSWDFV2L.js +0 -11
  910. package/dist/bundle/chunks/chunk-YZMQXAJM.js +0 -8
  911. package/dist/bundle/chunks/chunk-ZAHVC5V2.js +0 -3591
  912. package/dist/bundle/chunks/entry-2GZ3PTWQ.js +0 -2
  913. package/dist/bundle/chunks/google-generative-ai-WIASMWS3.js +0 -22
  914. package/dist/bundle/chunks/google-vertex-WSPHRZIZ.js +0 -25
  915. package/dist/bundle/chunks/interactive-mode-3322RQEH.js +0 -5
  916. package/dist/bundle/chunks/mistral-conversations-7JYDDRUT.js +0 -43
  917. package/dist/bundle/chunks/openai-codex-responses-7PAML4NF.js +0 -102
  918. package/dist/bundle/chunks/openai-completions-UJDAIGTK.js +0 -87
  919. package/dist/bundle/chunks/openai-responses-2WNCE6AY.js +0 -26
  920. package/dist/bundle/chunks/openrouter-images-V3UCCO6X.js +0 -8
  921. package/dist/bundle/chunks/pi-messages-TQ7LJUNQ.js +0 -28
  922. package/dist/bundle/chunks/runtime-H7LYNKCZ.js +0 -2
  923. package/dist/bundle/chunks/session-picker-EYKCMFQR.js +0 -4
  924. package/dist/bundle/chunks/startup-ui-7ODOR34R.js +0 -3
  925. package/dist/bundle/chunks/typesafe-system-one-YP7GGN4C.js +0 -3
  926. package/dist/bundle/chunks/virtual-modules-47MGUPYN.js +0 -28
@@ -259,6 +259,8 @@ Extension factories may run in invocations that never start a session. Do not st
259
259
 
260
260
  Defer background resource startup until `session_start` or the command/tool/event that needs the resource. Register an idempotent `session_shutdown` handler to close any session-scoped resources you start.
261
261
 
262
+ After session replacement or reload, captured `ctx` and `pi` references are stale. Each registration receives an attribution view of the shared dispatch context; do not rely on `ctx` object identity between handlers. Awaited handlers retain their extension identity; a stale-context guard failure disables the originating registration. In interactive mode, attributable stale-context failures from detached work are reported without exiting or aborting the current operation. Other uncaught errors remain fatal. Editor-change and terminal-input callbacks have their own error boundary: a failing callback is unsubscribed and its originating registration disabled. These errors, and ordinary runner event errors, are shown with the extension path and saved in the crash attachment used by `/bug`. Late errors from an old runner are routed to the current interactive UI even after its listeners have been detached. This containment does not replace cleanup of extension-owned timers, processes, or other resources.
263
+
262
264
  ### Extension Styles
263
265
 
264
266
  **Single file** - simplest, for small extensions:
@@ -359,7 +361,7 @@ The model request runs these hooks in order:
359
361
  2. `context_with_system` (can modify the full transcript)
360
362
  3. `before_provider_headers` (can mutate headers)
361
363
  4. `before_provider_request` (can inspect or replace the payload)
362
- 5. `after_provider_response` (status and headers, before the stream is consumed)
364
+ 5. `after_provider_response` (status and headers of each HTTP response, including errors and retried attempts; successful responses fire before their stream is consumed)
363
365
  6. `provider_stream_event` (raw parsed stream events) and `message_start` / `message_update` / `message_end` for the assistant message
364
366
 
365
367
  A tool call that executes runs these hooks in order:
@@ -702,6 +704,8 @@ If the run is aborted while `agent_before_settle` handlers are running, valid re
702
704
 
703
705
  Notification-only lifecycle events for blocking user-facing extension UI prompts. They fire around `ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`, `ctx.ui.editor()`, and `ctx.ui.custom()` so host/status integrations can report "waiting for user" instead of just "running".
704
706
 
707
+ Passive custom overlays (`overlay: true` with `overlayOptions.nonCapturing: true`) do not emit blocking prompt events or suppress events from real dialogs. Function-valued `overlayOptions` are resolved once when opening the custom UI.
708
+
705
709
  Nested or overlapping prompts are coalesced into one outer waiting span. Handlers are invoked best-effort and are not awaited before showing or closing the prompt.
706
710
 
707
711
  ```typescript
@@ -886,7 +890,7 @@ The payload is the full request. Providers that continue from a previous respons
886
890
 
887
891
  #### after_provider_response
888
892
 
889
- Fired after an HTTP response is received and before its stream body is consumed. Handlers run in extension load order.
893
+ Fired for each HTTP response the provider receives, including error responses (4xx/5xx) and responses to retried attempts, so one request can fire it more than once. Successful responses fire before their stream body is consumed. Handlers run in extension load order.
890
894
 
891
895
  ```typescript
892
896
  pi.on("after_provider_response", (event, ctx) => {
@@ -898,7 +902,7 @@ pi.on("after_provider_response", (event, ctx) => {
898
902
  });
899
903
  ```
900
904
 
901
- Header availability depends on provider and transport. Providers that abstract HTTP responses may not expose headers.
905
+ Coverage depends on provider and transport. Some providers report empty headers or only some responses. It does not fire for errors that arrive inside an already started SSE stream, or for WebSocket transports, including a WebSocket connection that fails to open.
902
906
 
903
907
  #### provider_stream_event
904
908
 
@@ -1229,7 +1233,7 @@ Use `ctx.modelRegistry.streamSimple(model, context, options)` for provider-neutr
1229
1233
 
1230
1234
  `streamSimple()` returns an `AssistantMessageEventStream`. Iterate it for response events and await `.result()` for the final message. Setup failures produce error events and error results.
1231
1235
 
1232
- For non-chat models, `findOfType()`, `getModelsOfType()`, `getAvailableOfType()`, and `getModelOfType()` look up image and classifier models, and `classify()` and `generateImages()` call them. See [Use classifier models](models.md#use-classifier-models) and [Use image models](models.md#use-image-models).
1236
+ For non-chat models, `findOfType()`, `getModelsOfType()`, `getAvailableOfType()`, and `getModelOfType()` look up image and decision (`"classifier"`) models, and `classify()` and `generateImages()` call them. See [Use decision models](models.md#use-decision-models) and [Use image models](models.md#use-image-models).
1233
1237
 
1234
1238
  ### ctx.signal
1235
1239
 
@@ -2292,7 +2296,7 @@ async execute(toolCallId, params) {
2292
2296
 
2293
2297
  **Structured output:** Declare `outputSchema` and return a matching `structuredContent` when the result is data. The model still receives `content`; programmatic callers such as codemode scripts receive `structuredContent` instead of the text. Tools without `outputSchema` are passed to scripts as their text content. To report a failure that still carries data, return the result with `isError: true` instead of throwing: the model sees an error, and scripts still receive `structuredContent`.
2294
2298
 
2295
- **Execution mode:** Tool calls from one assistant message run in parallel by default. Set `executionMode: "sequential"` when a tool must not run concurrently with other calls, for example because it shares mutable in-memory state.
2299
+ **Execution mode:** Tool calls from one assistant message run in parallel by default. Set `executionMode: "sequential"` when a tool must not run concurrently with other calls, for example because it shares mutable in-memory state. A call to such a tool runs alone: the calls before it in the message finish first, and the calls after it start once it has finished. The built-in `bash`, `powershell`, `write` and `edit` tools are sequential, so `bash, read, read, bash` runs as `bash`, then both reads together, then `bash`. Calls a tool makes through `ctx.executeTool()` are ordered by that tool: nested calls of the built-in `bash`, `powershell`, `write` and `edit` still run in parallel there.
2296
2300
 
2297
2301
  **Other definition fields:**
2298
2302
 
@@ -2880,8 +2884,20 @@ if (confirmed) {
2880
2884
 
2881
2885
  See [examples/extensions/timed-confirm.ts](../examples/extensions/timed-confirm.ts) for complete examples.
2882
2886
 
2887
+ #### Program Status Kind
2888
+
2889
+ While a dialog waits, terminals that support [program status](terminal-setup.md#program-status) show pi as blocked, with the first line of the title as the message. `confirm()` reports `"permission"`, `select()` and `input()` report `"question"`. Pass `blockedKind` when the dialog asks for something else, for example a select that approves an action:
2890
+
2891
+ ```typescript
2892
+ const choice = await ctx.ui.select("Deploy to production?", ["Deploy", "Deploy and tag", "Cancel"], {
2893
+ blockedKind: "permission", // "permission" | "question" | "auth"
2894
+ });
2895
+ ```
2896
+
2883
2897
  ### Widgets, Status, and Footer
2884
2898
 
2899
+ The bundled checklist exports the pure internal provider `getChecklistStatusSegment(): { text: string } | undefined` from `src/humain/checklist/index.ts`. Status-line owns the while-building `Tasks` segment and its rendering; this is not an extension UI setter. MR-B owns the toggled `alt+t` sidebar and provider only: it makes no footer modifications, does not change `Last event` to idle-only or remove the `/settings` hint, and adds no `setFooterProgress` API. Existing extension status and custom-footer APIs below remain independent.
2900
+
2885
2901
  ```typescript
2886
2902
  // Status in footer (persistent until cleared)
2887
2903
  ctx.ui.setStatus("my-ext", "Processing...");
package/docs/flow.md CHANGED
@@ -26,6 +26,8 @@ Flow uses `/flow` with subcommands. The private bundled `@humain/orchestrate` pa
26
26
 
27
27
  Help and argument completion are static: they work before either package loads and while Flow is disabled. Neither executor package loads at startup. HUMAIN Code registers the lightweight `/flow` and `/orchestrate` commands plus the `--profile` and `--flow-admission` startup flags. The first Flow-requiring invocation loads the bundled `@humain/flow` package through a memoized dynamic import. Hierarchy commands additionally load `@humain/orchestrate` through a separate memoized import and reuse the initialized Flow instance. Ordinary SMALL/MEDIUM `/flow run` does not load Orchestrate. If Flow needs hierarchy execution and none is registered, it can request this same host loader, independently of command spelling. Orchestrate registers its hierarchy implementation through Flow’s executor hook. Hierarchy personas and nested role-cost interpretation belong to Orchestrate; implementer personas, child bootstrap, sessions, recovery storage, telemetry and the usage ledger remain Flow-owned. Nested children resolve both packages’ trusted personas through a private child-lifetime directory, with unchanged user override and repository trust rules. A failed load is reported as `Failed to load Flow: <message>` and retried on the next invocation. A recognized subcommand that a build does not implement answers `/flow <command> is not available in this build. Use /flow help to see supported commands.`
28
28
 
29
+ If the session is replaced or reloaded while an executor import or staged startup replay is pending, the loader discards that session's pending command and registrations. It does not replay a stale startup context, report load errors through the closed session, or dispatch the old command into the replacement session. This lifecycle boundary is covered by `test/suite/regressions/398-bundled-stale-context.test.ts`, including delayed Flow/profile and Orchestrate import success/failure, interrupted factory/startup replay, and successful command dispatch from a fresh replacement registration. Pending commands are discarded, not migrated; deliberate post-replacement UI work belongs in `withSession` using its supplied context.
30
+
29
31
  A plain prompt goes to the normal session and never touches Flow. The previous per-command slash names are not registered and have no aliases; see [Migration](../../flow/docs/migration.md) for the old-to-new mapping. Internal tools, `flow_*` RPC operations, and run settlement contracts are unchanged.
30
32
 
31
33
  Flow payloads are passed through verbatim: the goal, message, or title text after the subcommand is never split or rejoined.
@@ -91,7 +91,7 @@ Native login uses browser/device authorization and MFA, not an API key. Persiste
91
91
 
92
92
  `/usage` keeps combined Web+CLI monthly amounts separate from local session estimates and other providers. Used is actual usage (a known subtotal when incomplete); Pending is reserved, not a final charge or free usage. Remaining is the server's reported amount. Reset dates are UTC. Select Pending by mouse, or focus details, move the selection to Pending with the configured navigation actions, and confirm to read its explanation. Source filters affect details only. Fuse does not share a Forge allowance. Busy and allowance refusals do not trigger automatic inference retries; ambiguous outcomes may charge, so check `/usage` before retrying manually.
93
93
 
94
- `/bug` creates a local reviewed ZIP. Narrow environment/account/generation/install IDs are included only when already available; exporting never bootstraps identity or sign-in. Each invocation asks whether to attach the secret-redacted conversation, with its UTF-8 byte size. Declining excludes conversation-derived diagnostics. Optional model summaries require separate explicit consent and may use allowance or provider tokens. Secrets are excluded before collection, summary inference and final ZIP inspection; unassured content is omitted or export fails closed. Review code and business content before manually emailing the archive to [akarim@humain.com](mailto:akarim@humain.com). Nothing is automatically emailed or uploaded. GitLab remains the internal tracker.
94
+ `/bug` creates a local reviewed ZIP. Narrow environment/account/generation/install IDs are included only when already available; exporting never bootstraps identity or sign-in. Each invocation asks whether to attach the secret-redacted conversation, with its UTF-8 byte size. Declining excludes conversation-derived diagnostics. Optional model summaries require separate explicit consent and may use allowance or provider tokens. Secrets are excluded before collection, summary inference and final ZIP inspection. When a field exceeds projection limits, a bounded shared discovery pass must complete before that field can be dropped while retaining other safely redacted fields, including crash messages and stacks. Secrets discovered inside omitted fields still mask echoes elsewhere. Omission notes identify incomplete exports. If description, conversation or summary review cannot be preserved, `/bug` exports a reduced ZIP with safely redacted crash details when discovery remains assured; initial or collection failures ask for export confirmation first. If discovery itself fails (for example, oversized uninspectable text, malformed embedded credentials or insufficient literal coverage), no independent field retry can restore assurance: the ZIP contains only generated report identifiers, CLI version/platform/architecture, canonical crash dates and recognized crash kinds, plus an omission note. All arbitrary text is excluded in that closed fallback, preventing echoes of undiscovered secrets. The fallback makes no additional model calls. Exports with omission notes retain the original crash log locally. Review code and business content before manually emailing the archive to [akarim@humain.com](mailto:akarim@humain.com). Nothing is automatically emailed or uploaded. GitLab remains the internal tracker.
95
95
 
96
96
  Interactive startup discloses metadata policy for the selected built-in environment. The first eligible print/JSON/RPC/agent-exec CLI run prints the notice only on stderr and atomically records global acknowledgment. SDK and metadata-only commands remain silent. Acknowledgment is not consent or a delivery gate; `HUMAIN_TERMINAL_OFFLINE=1`, `PI_OFFLINE=1` and no-network controls suppress delivery. Analytics retention is 400 days; diagnostics retention is 30 days. See [metadata disclosure](../README.md#metadata-disclosure) for identity, exclusions, readers and erasure policy. Contact: [akarim@humain.com](mailto:akarim@humain.com).
97
97
 
@@ -89,6 +89,7 @@ The dedicated history actions browse prompt history regardless of cursor positio
89
89
  | `tui.input.submit` | `enter` | Submit input |
90
90
  | `tui.input.tab` | `tab` | Tab or autocomplete |
91
91
  | `tui.input.copy` | `ctrl+c` | Copy selection |
92
+ | `tui.input.endPendingInput` | `ctrl+c` | End a bracketed paste whose end sequence never came, or drop an unterminated terminal reply. The key is still passed on to the other bindings |
92
93
  | `tui.select.up` | `up` | Move selection up |
93
94
  | `tui.select.down` | `down` | Move selection down |
94
95
  | `tui.select.pageUp` | `pageUp` | Page up in list |
@@ -155,6 +156,7 @@ On native Windows, `app.suspend` has no default because Windows terminals do not
155
156
  | `app.models.save` | `ctrl+s` | Save the selected default model or scoped model configuration to settings |
156
157
  | `app.thinking.cycle` | `shift+tab` | Cycle thinking level |
157
158
  | `app.thinking.save` | `ctrl+s` | Save current thinking level to settings |
159
+ | `app.checklist.sidebar` | `alt+t` | Toggle checklist sidebar (120 columns minimum) |
158
160
  | `app.thinking.toggle` | `ctrl+t` | Collapse or expand thinking blocks |
159
161
 
160
162
  ### Display and Message Queue
package/docs/llama-cpp.md CHANGED
@@ -101,8 +101,8 @@ If the router disconnects, `/llama` shows **Retry** and **Close**. Retry reconne
101
101
 
102
102
  Classifier models answer typed `choice`, `bool`, and `score` questions about JSON state, like TypeSafe's Jev models. The model reaches them from [`codemode`](cli.md#enable-codemode) scripts, and extensions through `ctx.modelRegistry.classify()`; see [Classifier models](models.md#use-classifier-models). HUMAIN Code CLI lists llama.cpp models as classifiers in two ways:
103
103
 
104
- - **Decision models** such as [Julia-1, Laya, Kev, lev, and OpenJev](https://huggingface.co/collections/ggml-org/decision-models-6abf80cca3c83f127060a769) answer natively through llama.cpp's `/v1/systemone` endpoint. They appear only as classifiers, with the `typesafe-system-one` API, and not in `/model`.
105
- - **Chat models** are also listed as classifiers with the same ID and the `llama-cpp-classify` API, which reads answers from next-token probabilities as described below.
104
+ - **Decision models** such as [Julia-1, Laya, Kev, lev, and OpenJev](https://huggingface.co/collections/ggml-org/decision-models-6abf80cca3c83f127060a769) answer natively through llama.cpp's `/v1/systemone` endpoint. They appear only under the `classifier` model type, with the `typesafe-system-one` API, and not in `/model`.
105
+ - **Chat models** are also listed under the `classifier` model type with the same ID and the `llama-cpp-classify` API, which reads answers from next-token probabilities as described below.
106
106
 
107
107
  llama.cpp 0.6.0 and later report decision models in the router's model list: their `architecture.output_modalities` contains `decisions`. The router reads this from the GGUF metadata without loading the model, so HUMAIN Code CLI recognizes unloaded and sleeping decision models too. Older llama.cpp builds do not report it, and HUMAIN Code CLI lists their decision models as chat models.
108
108
 
@@ -210,6 +210,7 @@ interface BashExecutionMessage {
210
210
  cancelled: boolean;
211
211
  truncated: boolean;
212
212
  fullOutputPath?: string;
213
+ fullOutputError?: string; // why the full output could not be saved, when truncated
213
214
  excludeFromContext?: boolean;
214
215
  timestamp: number;
215
216
  }
@@ -34,7 +34,7 @@ Each `models` entry adds a model to the provider. An entry whose `id` matches an
34
34
  | `api` | string | | Overrides the provider api. |
35
35
  | `baseUrl` | string | | Overrides the provider baseUrl. |
36
36
  | `reasoning` | boolean | `false` | Whether the model supports thinking. |
37
- | `thinkingLevelMap` | object | | Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported. |
37
+ | `thinkingLevelMap` | object | | Provider value sent for each thinking level. A string is sent to the provider; null hides the level. Levels left out use the provider's default value for off through high; xhigh and max are opt-in and only offered when mapped to a string. |
38
38
  | `input` | `("text" \| "image")[]` | `["text"]` | |
39
39
  | `inputLimits` | [object](#input-limits) | | |
40
40
  | `cost` | object | | |
@@ -42,6 +42,7 @@ Each `models` entry adds a model to the provider. An entry whose `id` matches an
42
42
  | `cost.output` | number | | Required. Output cost in USD per million tokens. |
43
43
  | `cost.cacheRead` | number | | Required. Cache-read cost in USD per million tokens. |
44
44
  | `cost.cacheWrite` | number | | Required. Cache-write cost in USD per million tokens. |
45
+ | `cost.imageOutput` | number | | Image output cost in USD per million tokens, for models that generate images. Image output tokens use this rate and the rest of output (text and reasoning) uses `output`. Unset means image tokens cost `output`. |
45
46
  | `cost.tiers` | `object[]` | | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
46
47
  | `cost.tiers[].inputTokensAbove` | number | | Required. Use this tier when total request input exceeds this token count. |
47
48
  | `cost.tiers[].input` | number | | Required. Input cost in USD per million tokens. |
@@ -64,7 +65,7 @@ Each `modelOverrides` key is the ID of a built-in or extension model. Unknown ID
64
65
  |---|---|---|---|
65
66
  | `name` | string | | Display name, also matched by --model patterns. |
66
67
  | `reasoning` | boolean | | Whether the model supports thinking. |
67
- | `thinkingLevelMap` | object | | Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported. |
68
+ | `thinkingLevelMap` | object | | Provider value sent for each thinking level. A string is sent to the provider; null hides the level. Levels left out use the provider's default value for off through high; xhigh and max are opt-in and only offered when mapped to a string. |
68
69
  | `input` | `("text" \| "image")[]` | | |
69
70
  | `inputLimits` | [object](#input-limits) | | |
70
71
  | `cost` | object | | |
@@ -72,6 +73,7 @@ Each `modelOverrides` key is the ID of a built-in or extension model. Unknown ID
72
73
  | `cost.output` | number | | Output cost in USD per million tokens. |
73
74
  | `cost.cacheRead` | number | | Cache-read cost in USD per million tokens. |
74
75
  | `cost.cacheWrite` | number | | Cache-write cost in USD per million tokens. |
76
+ | `cost.imageOutput` | number | | Image output cost in USD per million tokens, for models that generate images. Image output tokens use this rate and the rest of output (text and reasoning) uses `output`. Unset means image tokens cost `output`. |
75
77
  | `cost.tiers` | `object[]` | | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
76
78
  | `cost.tiers[].inputTokensAbove` | number | | Required. Use this tier when total request input exceeds this token count. |
77
79
  | `cost.tiers[].input` | number | | Required. Input cost in USD per million tokens. |
@@ -123,7 +125,7 @@ See [Describe model input and caching](models.md#describe-model-input-and-cachin
123
125
  | `requiresThinkingAsText` | boolean | | Whether thinking blocks must be converted to text blocks with &lt;thinking> delimiters. Default: auto-detected from URL. |
124
126
  | `requiresReasoningContentOnAssistantMessages` | boolean | | Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. Default: auto-detected from URL. |
125
127
  | `inlineThinkTags` | boolean | | Whether a leading &lt;think>...&lt;/think> section in streamed content is reasoning and is parsed into thinking blocks. Default: false. |
126
- | `thinkingFormat` | `"openai" \| "openrouter" \| "deepseek" \| "together" \| "baseten" \| "zai" \| "qwen" \| "chat-template" \| "qwen-chat-template" \| "string-thinking" \| "ant-ling"` | | Format for reasoning or thinking parameters. When omitted, Pi auto-detects the format from the provider URL. "openai" uses reasoning_effort, "openrouter" uses reasoning.effort, "deepseek" uses thinking.type plus reasoning_effort when supported, "together" uses reasoning.enabled plus reasoning_effort when supported, "baseten" uses configurable chat_template_args plus reasoning_effort when supported, "zai" uses thinking.type, "qwen" uses top-level enable_thinking, "qwen-chat-template" uses chat_template_kwargs.enable_thinking and preserve_thinking, "chat-template" uses configurable chat_template_kwargs, "string-thinking" uses top-level thinking, and "ant-ling" uses reasoning.effort only when the mapped effort is non-null. |
128
+ | `thinkingFormat` | `"openai" \| "openrouter" \| "deepseek" \| "ant-ling" \| "together" \| "baseten" \| "zai" \| "qwen" \| "chat-template" \| "qwen-chat-template" \| "string-thinking"` | | Format for reasoning or thinking parameters. When omitted, Pi auto-detects the format from the provider URL. "openai" uses reasoning_effort, "openrouter" uses reasoning.effort, "deepseek" (deprecated alias: "ant-ling") uses thinking.type plus reasoning_effort when supported, "together" uses reasoning.enabled plus reasoning_effort when supported, "baseten" uses configurable chat_template_args plus reasoning_effort when supported, "zai" uses thinking.type, "qwen" uses top-level enable_thinking, "qwen-chat-template" uses chat_template_kwargs.enable_thinking and preserve_thinking, "chat-template" uses configurable chat_template_kwargs, and "string-thinking" uses top-level thinking. |
127
129
  | `chatTemplateKwargs` | object | | Kwargs sent as chat_template_kwargs when thinkingFormat is "chat-template". Use $var with "thinking.enabled", "thinking.effort", or "thinking.budget" for pi-controlled values. |
128
130
  | `chatTemplateArgs` | object | | Arguments sent as chat_template_args when thinkingFormat is "baseten". Use $var with "thinking.enabled", "thinking.effort", or "thinking.budget" for pi-controlled values. |
129
131
  | `openRouterRouting` | object | | OpenRouter provider routing preferences. Controls which upstream providers OpenRouter routes requests to. Sent as the provider field in the OpenRouter API request body. See https://openrouter.ai/docs/guides/routing/provider-selection. |
@@ -186,6 +188,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
186
188
  | Field | Type | Default | Description |
187
189
  |---|---|---|---|
188
190
  | `supportsStrictMode` | boolean | `false` | Whether the model supports Bedrock strict tool schemas. |
191
+ | `supportsReasoningReplay` | boolean | `true` | Whether the model accepts reasoning blocks from earlier assistant messages. When false, earlier reasoning is not sent back. The generated catalog disables this for Kimi K3 models, which fail on Converse when it is sent. |
189
192
 
190
193
  ### `mistral-conversations`
191
194
 
@@ -194,6 +197,14 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
194
197
  | `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message. |
195
198
  | `supportsStrictMode` | boolean | `false` | Whether the model supports strict (schema-constrained) function tools. |
196
199
 
200
+ ### `google-generative-ai`
201
+
202
+ Also applies to `google-vertex`.
203
+
204
+ | Field | Type | Default | Description |
205
+ |---|---|---|---|
206
+ | `supportsStrictMode` | boolean | | Whether the model enforces strict tools through Gemini's VALIDATED function-calling mode. Default: true for model IDs containing gemini-3 or a later version, such as gemini-3-pro or vendor-gemini-4-argon, false otherwise. Set true for Gemini 3+ models served under IDs without the version. |
207
+
197
208
  ### `typesafe-system-one`
198
209
 
199
210
  Also applies to `cloudflare-workers-ai-system-one`.
package/docs/models.md CHANGED
@@ -30,6 +30,12 @@ Keep `auth.json` and any credential commands private. Project settings and exten
30
30
 
31
31
  Run `/model` to search available models. The picker shows models whose providers have usable authentication. Press Enter to use a model for the current session, or `Ctrl+S` to also save it as the default for new sessions.
32
32
 
33
+ For HUMAIN Node, Fuse, Gateway and Amazon Bedrock, `/model` defaults to curated suggestions after qualification and access checks. Select the **Show all qualified models** row and press Enter to toggle the full qualified inventory; this never grants access. Other providers and the native HUMAIN Code account picker are unchanged. Current and saved non-curated models remain listed with a retirement notice when still available in the qualified inventory; unavailable saved identities are not made selectable. Scoped references use the qualified inventory's model metadata, not stale scope metadata. Choose a replacement explicitly (and save it if desired); cancelling preserves the model and provider. Existing sessions and explicit model selection retain their identity.
34
+
35
+ Current/default choices stay pinned; other curated-provider suggestions follow the shared Node → Bedrock → Fuse → Gateway order. Explicit scoped choices are not hidden by curation, but still require qualification and access.
36
+
37
+ The HUMAIN Code model picker opened after sign-in stays locked to models enabled for that account. Tab does not switch to ordinary scopes, and `Ctrl+S` does not save a default there; use `/model` afterward to save a default.
38
+
33
39
  Run `/thinking` to select the thinking level for the current model. Press `Ctrl+S` there to save the startup level. HUMAIN Code CLI limits the choices to levels supported by the selected model.
34
40
 
35
41
  `Ctrl+P` cycles through available models. Use `/scoped-models` to control that cycle and save the selection, or configure model patterns through [Settings](settings.md#model-cycling).
@@ -113,6 +119,20 @@ Use `promptCache` to declare the provider's best-effort cache lifetime in second
113
119
 
114
120
  Choose the conservative end of any published range. A model without a lifetime for the active tier is not eligible for cache warming. A `modelOverrides` entry can set `inputLimits` or `promptCache` for a built-in or extension model, including a model accessed through a validated proxy. See [`cacheWarming`](settings.md#model-and-thinking).
115
121
 
122
+ ### Map thinking levels
123
+
124
+ Use `thinkingLevelMap` to choose which thinking levels `/thinking` offers and which provider value HUMAIN Code CLI sends for each:
125
+
126
+ ```json
127
+ {
128
+ "id": "reasoning-model",
129
+ "reasoning": true,
130
+ "thinkingLevelMap": { "minimal": null, "xhigh": "xhigh", "max": "max" }
131
+ }
132
+ ```
133
+
134
+ A string is sent to the provider as the effort value, and `null` hides the level. Levels left out use the provider's default value for `off` through `high`. `xhigh` and `max` are opt-in: HUMAIN Code CLI offers them only when the map gives them a string, which must be a value the provider accepts. Set the map in `models.json`, on a custom model or in a `modelOverrides` entry for a built-in model, not in `settings.json`.
135
+
116
136
  ### Configure sampling by thinking level
117
137
 
118
138
  OpenAI-compatible APIs support free-form `samplingParams` model defaults and `samplingParamsByThinkingLevel` overrides. The latter uses HUMAIN Code CLI thinking-level keys (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`), not provider values from `thinkingLevelMap`:
@@ -141,9 +161,11 @@ HUMAIN Code CLI first clamps unsupported thinking levels, then merges model `sam
141
161
 
142
162
  Compatibility settings should describe verified differences in the endpoint's request or response behavior. Do not enable them based only on an endpoint advertising OpenAI or Anthropic compatibility.
143
163
 
144
- ## Use classifier models
164
+ <a id="use-classifier-models"></a>
165
+
166
+ ## Use decision models
145
167
 
146
- Classifier models do not chat. They answer typed questions about JSON state: pick one of several choices, answer yes or no, or give a score, each with probabilities. HUMAIN Code CLI includes TypeSafe's Jev model from these providers, Cloudflare's Clef, Clef Flash, and Clef Omni models from Workers AI and OpenRouter, and OpenAI's GPT-6 Luna through the [Decisions API](https://developers.openai.com/api/docs/guides/decisions):
168
+ Decision models (the `classifier` model type) do not chat. They answer typed questions about JSON state: pick one of several choices, answer yes or no, or give a score, each with probabilities. HUMAIN Code CLI includes TypeSafe's Jev model from these providers, Cloudflare's Clef, Clef Flash, and Clef Omni models from Workers AI and OpenRouter, and OpenAI's GPT-6 Luna through the [Decisions API](https://developers.openai.com/api/docs/guides/decisions):
147
169
 
148
170
  | Provider | Model IDs | Authentication |
149
171
  |---|---|---|
@@ -154,7 +176,7 @@ Classifier models do not chat. They answer typed questions about JSON state: pic
154
176
  | `opencode` | `jev-1.13`, `jev-1.13-free` | `OPENCODE_API_KEY` |
155
177
  | `openai` | `gpt-6-luna` | `OPENAI_API_KEY` |
156
178
 
157
- Chat models on a [llama.cpp router](llama-cpp.md#classification) are also listed as classifier models.
179
+ Chat models on a [llama.cpp router](llama-cpp.md#classification) are also listed under the `classifier` model type.
158
180
 
159
181
  OpenAI's Decisions API needs an API key. Sign in with ChatGPT credentials do not work with it, so `gpt-6-luna` is not listed as available while `openai` is logged in through `/login`, even when `OPENAI_API_KEY` is set; log out of `openai` to use the key. The API rejects inputs above 922K tokens, but requests that run longer than about five seconds, currently above roughly 600K input tokens, fail with a gateway timeout.
160
182
 
@@ -177,19 +199,19 @@ return result.answers;
177
199
 
178
200
  [Codemode](codemode.md#classify) describes the question and answer types.
179
201
 
180
- Classifier models whose `input` includes `"image"` also judge images passed in `images`; other classifier models return an error for them. Image input works with GPT-6 Luna, with Jev from `typesafe` and `cloudflare-workers-ai`, with Clef from `cloudflare-workers-ai`, and with the OpenRouter models whose catalog lists image input. Jev takes PNG and JPEG images, and image input is experimental on TypeSafe's own API. Clef takes PNG, JPEG, and WebP images, at most four per request. Jev from `vercel-ai-gateway` and `opencode` takes text only.
202
+ Decision models whose `input` includes `"image"` also judge images passed in `images`; other decision models return an error for them. Image input works with GPT-6 Luna, with Jev from `typesafe` and `cloudflare-workers-ai`, with Clef from `cloudflare-workers-ai`, and with the OpenRouter models whose catalog lists image input. Jev takes PNG and JPEG images, and image input is experimental on TypeSafe's own API. Clef takes PNG, JPEG, and WebP images, at most four per request. Jev from `vercel-ai-gateway` and `opencode` takes text only.
181
203
 
182
- Each System One service takes images in its own request format, set by the model's `compat.imageInput`. Built-in models set it, so overriding a provider's `baseUrl` keeps it. A custom provider that proxies another service's classifiers sets it in its provider-level `compat` in `models.json` (see [System One compatibility](models-configuration.md#typesafe-system-one)). OpenRouter in particular answers requests in TypeSafe's format without an error but drops the images.
204
+ Each System One service takes images in its own request format, set by the model's `compat.imageInput`. Built-in models set it, so overriding a provider's `baseUrl` keeps it. A custom provider that proxies another service's decision models sets it in its provider-level `compat` in `models.json` (see [System One compatibility](models-configuration.md#typesafe-system-one)). OpenRouter in particular answers requests in TypeSafe's format without an error but drops the images.
183
205
 
184
206
  When the service reports token counts, as all System One services do, `result.usage` carries them with their cost. HUMAIN Code CLI adds the usage of a script's classifier calls to the `codemode` tool result, so it counts toward the session cost in the footer and `/session`. The cost uses the model's catalog price; models without one, such as TypeSafe's direct `jev-latest`, report tokens at no cost.
185
207
 
186
- Extensions call classifiers through `ctx.modelRegistry.classify()`, without codemode. [Virtual models](virtual-models.md#route-requests) can use them to route requests; see the `jev-router.ts` example.
208
+ Extensions call decision models through `ctx.modelRegistry.classify()`, without codemode. [Virtual models](virtual-models.md#route-requests) can use them to route requests; see the `jev-router.ts` example.
187
209
 
188
210
  ## Use image models
189
211
 
190
212
  Image models generate images from a prompt and optional input images. HUMAIN Code CLI lists OpenRouter's image models, such as `google/gemini-2.5-flash-image` and `black-forest-labs/flux.2-pro`, under the `openrouter` provider; they use the same `OPENROUTER_API_KEY` or `/login` credential as its chat models.
191
213
 
192
- Like classifier models, image models do not appear in `/model`; the model reaches them through the [`codemode`](cli.md#enable-codemode) tool. Scripts list them with `models.getAvailableOfType("image")` and call `models.generateImages(model, { input })`. The result's `output` holds base64 image blocks, which `image()` attaches to the `codemode` result so the model sees them:
214
+ Like decision models, image models do not appear in `/model`; the model reaches them through the [`codemode`](cli.md#enable-codemode) tool. Scripts list them with `models.getAvailableOfType("image")` and call `models.generateImages(model, { input })`. The result's `output` holds base64 image blocks, which `image()` attaches to the `codemode` result so the model sees them:
193
215
 
194
216
  ```js
195
217
  const painter = await models.getModelOfType("image", "openrouter", "google/gemini-2.5-flash-image");
package/docs/providers.md CHANGED
@@ -65,7 +65,7 @@ This table covers providers with a single primary API-key variable. Providers th
65
65
  | ZAI Coding Plan (China) | `ZAI_CODING_CN_API_KEY` |
66
66
  | OpenCode Zen and Go | `OPENCODE_API_KEY` |
67
67
  | Radius | `RADIUS_API_KEY` |
68
- | TypeSafe ([classifier models](models.md#use-classifier-models)) | `TYPESAFE_API_KEY` |
68
+ | TypeSafe ([decision models](models.md#use-decision-models)) | `TYPESAFE_API_KEY` |
69
69
  | Hugging Face | `HF_TOKEN` |
70
70
  | Fireworks | `FIREWORKS_API_KEY` |
71
71
  | Together AI | `TOGETHER_API_KEY` |
@@ -100,7 +100,7 @@ To use a secret manager without writing the resolved key to disk, set a provider
100
100
  }
101
101
  ```
102
102
 
103
- HUMAIN Code CLI runs the command when the key is first needed and caches its standard output for the process lifetime. Empty output, a timeout, or a nonzero exit leaves the key unresolved until HUMAIN Code CLI restarts.
103
+ HUMAIN Code CLI runs the command when the key is first needed and caches its standard output for the process lifetime. Empty output, a timeout, or a nonzero exit leaves the key unresolved. `/login` shows `stored key did not resolve`; enter the same `!command` again to retry, or restart HUMAIN Code CLI.
104
104
 
105
105
  ## Provider Specific Config
106
106
 
@@ -275,6 +275,10 @@ Start with `humain-code --env dev`, `--env staging` (alias `stg`), or `--env pro
275
275
 
276
276
  Use `/login humain-code-account`. A classified `503 hcode_unavailable` shows the same not-available-on-this-environment explanation as the menu; other HTTP rejections show the same status and sanitized message. Direct commands omit the menu's `[Retry]` label; run `/login humain-code-account` again to retry. An unreachable server still says `Can't reach <host>: check VPN/Zscaler, then try /login again.`; other unavailable readiness says `HUMAIN Code is unavailable for this environment. Try /login again later.` (with the selected environment suffix when applicable). Readiness proves presentation only, not account eligibility or model availability. Browser/device sign-in always displays the validated verification URI and user code for remote use; MFA remains issuer-controlled. Device-code polling retries DNS, connection and 5xx errors with backoff (1 s doubling to 30 s) until the code expires; an invalid token response still fails at once.
277
277
 
278
+ Device authorization uses PKCE S256: each sign-in attempt generates a fresh ephemeral verifier in memory, sends `code_challenge` and `code_challenge_method=S256` when requesting the device code, and sends the matching `code_verifier` when polling for tokens. The verifier is not saved to account files or generic credentials; a new login attempt uses a new verifier.
279
+
280
+ If sign-in says the credential storage directory is inside a Git repository, check the agent directory and **every ancestor** for a `.git` directory or worktree `.git` file. An enclosing repository counts even when the agent directory itself has no `.git`. Set `HUMAIN_TERMINAL_CODING_AGENT_DIR` to a private directory outside all Git repositories, restart with the same `--env`, and retry `/login humain-code-account`. Keep the agent directory outside the current working directory as well. Do not remove Git metadata or disable the guard to make login work; do not copy credentials into a checkout. A rejected storage path does not permit session-only fallback.
281
+
278
282
  Persistent login encrypts private account files under the agent directory's `hcode/accounts/<environment>` with a purpose key in the OS keychain. Generic auth holds only an environment/account/generation reference, never access or refresh tokens. One native account is active per environment; native grants are not pooled or automatically switched. The saved sign-in is shared by every `humain-code` process that uses the same agent directory and environment: a terminal opened later starts signed in, and `/login` and `/model` re-read a sign-in or sign-out made in another terminal. A terminal started without `--env` targets production; when only another environment has a saved sign-in, startup and `/login status` name it and the `--env` flag that selects it.
279
283
 
280
284
  Only genuine keychain unavailability permits the prompt **Secure keychain unavailable. Sign in for this session only?** Choose **Sign in for this session only** or **Cancel** before obtaining a grant. Corruption, unsafe permissions and cancellation are not permission to fall back. A session-only grant/reference/account ID stays in memory: no account/auth/pool/settings/session-JSONL/journal/tombstone writes and no overwrite of inaccessible saved state.
@@ -351,6 +355,10 @@ After saving the session, the CLI discovers models with `GET /ai-gateway/v1/mode
351
355
 
352
356
  Run `/model` and pick a `humain-gateway` model. Only chat models your account is entitled to appear; models the Gateway blocks for HUMAIN Code are hidden and named in a warning with the reason. Press `Ctrl+S` on a model to make it the default for new sessions.
353
357
 
358
+ Image input follows each model's `input_modalities` from discovery, not a shipped model-name list. Only a nonempty array containing `text` and no values other than `text` or `image` is accepted; missing or malformed metadata defaults to text-only. Text-only models retain the existing image-omission notice instead of uploading images.
359
+
360
+ Gateway images must be inline base64 PNG or JPEG data, not remote URLs or file IDs. Before upload, the CLI refuses each image larger than 10 MiB decoded or whose headers report more than 40 megapixels or a side longer than 32768 pixels. Limits are inclusive; the checks do not decode pixels or resize images. Only recognizable PNG/JPEG headers with nonzero dimensions are accepted: unknown formats, unreadable or truncated headers, and zero dimensions fail closed with an instruction to use a valid inline PNG or JPEG. These header checks verify dimensions, not full image validity. Payload-hook images receive the same checks. The existing 20 MiB total request-body limit still applies, including base64 overhead; convert to PNG/JPEG or reduce or resize images locally after a refusal.
361
+
354
362
  For print mode, sign in interactively once, then pass the provider and model:
355
363
 
356
364
  ```bash
@@ -394,6 +402,16 @@ After login, use `/model` to select a discovered Node model and submit a prompt
394
402
 
395
403
  Only models advertising a supported text API, streaming, and tool calling are offered for coding. Node's model metadata chooses Responses, Chat Completions, or Messages and supplies context/output limits and image-input support. Catalogs are refreshed from Node and kept in memory, scoped to the active key and URL; Node models are unavailable offline after a restart. Image generation and realtime sessions are outside the coding model picker.
396
404
 
405
+ Node does not advertise reasoning capabilities. The CLI enables thinking only for these verified exact IDs on the Responses transport:
406
+
407
+ | Model IDs | Provider efforts |
408
+ | --- | --- |
409
+ | `gpt-5-mini`, `gpt-5-nano` | `low`, `medium`, `high` |
410
+ | `gpt-5.3-codex`, `gpt-5.5` | `low`, `medium`, `high`, `xhigh` |
411
+ | `gpt-5.6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-6-astra`, `gpt-6-luna`, `gpt-6-sol`, `gpt-6.1-sol`, `gpt-6.1-terra` | `low`, `medium`, `high`, `xhigh`, `max` |
412
+
413
+ These Node GPT models do not offer thinking off: the lowest provider effort is `low`. `minimal` maps to `low`; the CLI clamps an `off` selection to `minimal` and sends `low`, never `none` or an omitted reasoning field. Omitting reasoning is not off: Node defaults to `medium` on 11 of the 12 verified models (`gpt-5.3-codex` echoed `none`). Direct provider API calls without a reasoning selection can still omit the parameter; this does not disable server reasoning. Enabled reasoning requests ask for automatic summaries and encrypted reasoning content for subsequent turns. Chat-only and unverified IDs remain nonreasoning; Anthropic Messages models retain the shipped Anthropic thinking settings. Before extending the allowlist in [`node-provider.ts`](../src/humain/node-provider.ts), verify accepted efforts and actual reasoning output against Node, including streaming summaries and encrypted-content replay. Do not infer support from a model-family name or HTTP success alone.
414
+
397
415
  Node's `max_output_tokens: 0` means the output limit is unknown. The model remains available with internal `maxTokens: 0`, and `--list-models` shows `unknown`. For these models, Chat Completions and Responses requests omit the output cap unless the caller supplies a positive `maxTokens`; zero does not mean unlimited output.
398
416
 
399
417
  Token and cache usage reported by Node flows into the normal session statistics. Node's `/models` catalog can advertise per-million-token input, output and cached-input prices, but this provider currently leaves internal model cost fields at zero; those zeros mean unknown cost, not free usage. Flow and its evaluation harness reprice zero costs using a shipped, provider-scoped pricing snapshot, not a live billing lookup. The supplied API does not expose account spend or remaining quota. Use HUMAIN Node for billing and account usage reports.
@@ -486,7 +486,7 @@ Response:
486
486
  }
487
487
  ```
488
488
 
489
- If output was truncated, includes `fullOutputPath`:
489
+ If output was truncated, includes `fullOutputPath`, or `fullOutputError` with the reason when the full output could not be saved (for example a full temp directory). Output files are created in a private per-process directory, `pi-output-<pid>-<random>` under the temp directory, never at its top level; a saved output file keeps at most 256 MiB and then ends with a note:
490
490
  ```json
491
491
  {
492
492
  "type": "response",
@@ -497,7 +497,7 @@ If output was truncated, includes `fullOutputPath`:
497
497
  "exitCode": 0,
498
498
  "cancelled": false,
499
499
  "truncated": true,
500
- "fullOutputPath": "/tmp/pi-bash-abc123.log"
500
+ "fullOutputPath": "/tmp/pi-output-4242-k3J9x2/pi-bash-abc123.log"
501
501
  }
502
502
  }
503
503
  ```
@@ -845,6 +845,29 @@ Each command has:
845
845
 
846
846
  **Note**: Built-in TUI commands (`/settings`, `/hotkeys`, etc.) are not included. They are handled only in interactive mode and would not execute if sent via `prompt`.
847
847
 
848
+ ## Checklist
849
+
850
+ ### get_checklist_task
851
+
852
+ Requires the startup [checklist progress gate](rpc.md#checklist-progress) and the enabled bundled checklist.
853
+
854
+ ```json
855
+ {"id":"detail-1","type":"get_checklist_task","taskId":"abc"}
856
+ ```
857
+
858
+ A successful response has `command: "get_checklist_task"`, `success: true`, and `data` containing:
859
+
860
+ - `task`: the same task summary as `get_state.checklistProgress.tasks`.
861
+ - `activity`: the 50 most recent entries, each with `at`, `tool`, `target` (160 UTF-16 code units), `outcome` (`ok`/`error`), nullable `exitCode`, `durationMs`, and `shared`.
862
+ - `activityOmitted`: count of older activity entries.
863
+ - `filesTouched`: `{ path, added, removed }` records; unknown line counts are `null`.
864
+ - `checks`: `{ command, outcome: "passed" | "failed", at }` records.
865
+ - `subagentRunIds`: linked subagent progress run IDs.
866
+
867
+ Use `taskId: "unassigned"` for calls started with no ongoing task. An unknown task returns `success: false`, `code: "TASK_NOT_FOUND"`, and a fixed non-sensitive `error`. When gated off or disabled the code is `UNKNOWN_COMMAND`; an oversized/unrepresentable detail returns `FRAME_TOO_LARGE`. Errors never echo task titles, paths or commands. The complete response is subject to the same byte and code-unit caps as `get_state`.
868
+
869
+ `get_state` and checklist tool end events expose the optional `checklistProgress` summary; see [bounds, merge and privacy rules](rpc.md#checklist-progress). Do not use presentation text as URL, route or authorization input.
870
+
848
871
  ## Model object
849
872
 
850
873
  Model commands return the complete configured model definition. Costs are in US dollars per million tokens.
package/docs/rpc.md CHANGED
@@ -68,6 +68,12 @@ A successful `prompt` response means the prompt was accepted, queued, or handled
68
68
 
69
69
  Continue consuming [events](json.md) after that response. `agent_end` marks the end of one low-level agent run, but retries, overflow recovery, compaction, steering, or follow-up work can still follow. Wait for `agent_settled` when the client needs to know HUMAIN Code CLI will not continue automatically.
70
70
 
71
+ A prompt rejected while another run is active emits only its correlated `success:false` response, not a `run_end` for the active run. An idle prompt setup failure still emits its failure `run_end` before its failed response.
72
+
73
+ If `abort` arrives while prompt admission is pending (including `prompt` and `abort` in the same stdin write), cancellation is not acknowledged: the response is `success:false` with `data:{"reason":"prompt_pending"}` and an explanatory `error`. The prompt may still start. Keep consuming its response and retry `abort` once admission settles. This refusal also applies while an extension command or input hook is pending; it does not cancel an active native or Flow run. With no pending admission and no active native or Flow run, `abort` returns `success:false`, `data:{"reason":"no_active_run"}`, and an explanatory `error`, including when it precedes a prompt in the same stdin write. Refusal reasons live in the allowed `data` payload, not at the response top level. Active native and Flow cancellation behavior is unchanged.
74
+
75
+ Admission remains pending when a prompt is deferred by an asynchronous `agent_settled` extension handler, until that deferred prompt is accepted or rejected. `RpcClient.abort()` rejects refusal responses with the server's message and preserves the structured payload on the error's `data` property (including `data.reason`); a fulfilled call means cancellation was acknowledged.
76
+
71
77
  Subscribe before sending a prompt to avoid missing a fast completion. `RpcClient.promptAndWait()` does this internally. If using separate `RpcClient` calls, install the event listener before `prompt()` and call `waitForIdle()` only while a run is active.
72
78
 
73
79
  ## Subagent progress
@@ -96,6 +102,20 @@ Consumers should use `(runtimeId, sessionEpoch)` from `get_state` or an authorit
96
102
 
97
103
  Existing transcript-bearing `content` and `details` are unchanged and are not sanitized. Snapshot bounds do not bound complete frames or transport/downstream accumulation. No new progress events are emitted: a state change need not produce a push, so use `get_state` to resynchronize. When the subagent tool throws, the agent loop replaces the result, so `tool_execution_end` carries no `subagentProgress`; the run's final snapshot (`final: true`) is available via `get_state`. Live grandchild progress is not reported. No UI, Forge integration, or deployed-consumer compatibility is delivered; this is the phase-one CLI/contracts foundation.
98
104
 
105
+ ## Checklist progress
106
+
107
+ Opt in with `HUMAIN_TERMINAL_RPC_CHECKLIST_PROGRESS=1` before starting RPC. The gate is read once; other values disable it. The bundled checklist must also be enabled and not replaced by `npm:pi-checklist`. Otherwise `checklistProgress` is absent and `get_checklist_task` returns `UNKNOWN_COMMAND`. This gate does not enable checklist tools in Flow implementers.
108
+
109
+ Enabled runtimes attach a top-level `checklistProgress` snapshot to checklist tool `tool_execution_end` events and return it in `get_state`. It contains `schemaVersion: 1`, `runtimeId`, `sessionEpoch`, `seq`, `complete`, status counts (including cancelled), and tasks in CLI display order. Each task includes `id`, `title`, `status`, `blocked`, `dependsOn`, nullable `notes`, `createdAt`, nullable `startedAt`/`endedAt`, `activityCount`, `filesTouchedCount`, and check counts (`passed`, `failed`). The snapshot is limited to 64 tasks, titles to 120 UTF-16 code units, and notes to 160. Invalid or oversized projections are omitted; coverage remains `complete: false` until epoch reset. Whole-response size limits still apply; checklist projection is omitted before the existing subagent/base-state fallbacks.
110
+
111
+ Within one `(runtimeId, sessionEpoch)`, replace only on a higher `seq`. A different pair requires `get_state` resynchronization. Session/branch reconstruction resets activity and rotates the epoch; process identity stays fixed. Disconnect means stale, not cancelled. Absence means unavailable, not an empty checklist.
112
+
113
+ [`get_checklist_task`](rpc-commands.md#get_checklist_task) returns bounded activity and derived file/check/subagent links, including the reserved `unassigned` bucket. Calls are attributed to tasks ongoing at start, with `shared: true` for multiple owners. The last 50 activities are retained; older entries remain counted. Full tool output is never copied into the projection. Subagent live rows are derived locally even without the subagent RPC gate.
114
+
115
+ Replay reconstructs starts from persisted tool-result timestamps and durations and replays status snapshots chronologically. It does not add persisted activity data. Calls without a matching persisted assistant call cannot be reconstructed. Nested codemode lifecycle events have no individual persisted tool results: replay marks coverage incomplete for such sessions rather than claiming parity with live attribution. Exact wall-clock start events and transient subagent updates are not retained by the session format.
116
+
117
+ Titles, notes, commands, paths and targets are tenant-sensitive transcript content. Render as escaped plain text, apply transcript access controls and retention, never send to logs, telemetry or analytics, and never use as URL, route or authorization input. Truncation is not redaction. Contracts and safe readers are exported from `@humain/humain-code-contracts/rpc` (`parseChecklistProgressSnapshot`, `parseChecklistTaskDetail`, `readRpcChecklistProgress`).
118
+
99
119
  ## Errors
100
120
 
101
121
  A failed command returns one response with `success: false`:
@@ -30,7 +30,7 @@ The shared vocabulary, class/code validation, and exit codes live in the narrow
30
30
 
31
31
  Headless sessions produce `acceptance_started`, `acceptance_verification_start`, and `acceptance_settled` events with `completion: verified | partial | unverified` and criterion-specific evidence. The PHC-VERIFY acceptance ledger preserves unsupported requirements as uncheckable; assistant claims alone never prove them. `@file` attachments sent with other prompt text (a message or piped input) are data: they add no criteria and authorize no checks, though text in them that restricts running or reading still withholds automatic checks; a prompt that is only attachments is the task, but a command in an attachment is listed and never run automatically, even then. The exception is an attached document (`.md`, `.markdown`, `.txt`, `.rst`, `.adoc`) that the whole instruction hands the work to, as one sentence in the fixed form `DELEGATION` in `src/core/acceptance-ledger.ts` defines: lead-ins such as "please" or "your task is to"; implement, follow, fulfil or fulfill, satisfy, or carry out; optionally "(all of) the/these/this <spec, requirements, steps, …> in", "from", "of", "described in" or "listed in"; then document names, optionally after "the attached" and separated by spaces, commas or "and", or "the/this attached <file, spec, …>" or "the/this attachment"; then at most a trailing word such as "please" or "exactly". Examples are "Follow requirements.md." and "Implement the spec in the attached file.". "Attached …" and "attachment" without a name count only when the one attached file is a document, and a name that matches two attached documents counts for neither. The instruction must be that sentence alone, ending with "." or "!" or nothing, not "?". Any other wording, or any other text in the instruction, leaves attachments as data, since it could narrow or withdraw the handover. A delegated document's lines are added as criteria, but only its explicit file lines are checked: commands in it never run, files it mentions are not read, and its exact-output lines are not compared with the reply. If the prompt is rewritten so that the attached text can no longer be found, no automatic check runs. Exact requested output is compared locally. Explicit file and test requirements may use one local verification round (at most eight checks, sharing a 30-second deadline), through the normal tool permission and raw-observation pipeline, without another model request. Task restrictions and disabled tools are respected; later mutations invalidate stale evidence. Settlement is persisted and printed in text mode.
32
32
 
33
- For multiple command criteria, the final round can preserve earlier command evidence only when the exact local executor proves read-only execution. On Linux x64/arm64 this uses an already-installed `/usr/bin/bwrap` with private namespaces, read-only host mounts, fresh devices, dropped capabilities, disabled nested user namespaces, and a seccomp filter denying external socket access and io_uring. No command-name or test-file whitelist establishes immutability. Commands that need writes or external services cannot receive this proof. A nonzero isolated execution is retried once through the same authorized local executor without isolation, within the shared deadline. Its output identifies the retry and preserves the normal execution's exit result; final-state acceptance still requires resolved effect custody. The retry cannot restore any earlier command evidence, even if it succeeds. Isolation is an evidence optimization, not a task execution restriction. Custom/remote executors, transformed command prefixes, unsupported platforms, and unavailable kernel/backend isolation retain conservative invalidation; no sandbox is installed automatically. Session-owned foreground and background launches retain effect custody after their starting tool call returns. An unrestricted executable can detach a descendant into a new process group, so absence or termination of the original group does not prove quiescence. Such launches retain explicit uncertainty for that session, including across task boundaries and after group cleanup; command/file evidence cannot establish final-state completion. The executor can avoid this uncertainty for OS-confined acceptance commands and a narrow launch-free grammar of literal `/bin/bash` builtins (`printf`, `echo`, `true`, `false`, `:`), with optional output redirection and no expansions, operators, startup scripts, imported functions or loader overrides. The `printf` subset accepts a literal non-option format with only `%s` and `%%` conversions, followed by literal arguments; assignment options, `%n`, and other conversions retain uncertainty. `echo`, `true`, `false`, and `:` do not evaluate their literal arguments. Launch-free does not mean read-only: redirects still invalidate earlier evidence. Other commands still execute normally, but without a lifetime receipt. Verification never kills a daemon or signals an escaped process merely to obtain proof. This does not protect against independent host processes or trusted extensions modifying state outside observed tool calls.
33
+ Every final-round command, including a single command criterion, uses the same read-only admission. For multiple command criteria, the final round can preserve earlier command evidence only when the exact local executor proves read-only execution. On Linux x64/arm64 this uses an already-installed `/usr/bin/bwrap` with private namespaces, read-only host mounts, fresh devices, dropped capabilities, disabled nested user namespaces, and a seccomp filter denying external socket access and io_uring. No command-name or test-file whitelist establishes immutability. A completed isolated check retains read-only custody on both zero and nonzero exit: passing acceptance settles to 0, and an actual failed test settles to 25. Completion requires matching start (`child-pid`) and exec-confirmed completion (`exit-code`) JSON documents on the dedicated `--json-status-fd 4` channel, not the backend process exit or command stdout/stderr. Bubblewrap closes this FD in the sandbox child and gates completion on successful exec ([native implementation](https://github.com/containers/bubblewrap/blob/v0.11.0/bubblewrap.c)). Missing, malformed, oversized, incomplete or mismatched metadata fails closed. Backend failures after a successful admission probe and shell cannot-execute/not-found exits remain typed `execution-unconfirmed` (26), not failed tests (25); shell statuses at or above 126 are conservatively unconfirmed, including signal exits. An installed backend without this metadata protocol cannot issue receipts. Nonzero isolated commands are never retried outside isolation. Tests that require writes or external services may fail under these restrictions; this failure is not permission to rerun with broader access. Read-only receipts attest immutability, not success, so failed isolated checks can also preserve earlier command evidence. Custom/remote executors, transformed command prefixes, unsupported platforms, and unavailable kernel/backend isolation retain conservative invalidation; no sandbox is installed automatically. On macOS (Darwin) and other unsupported hosts, commands still run through the normal authorized executor, but unrestricted executables such as `node --test` retain lifetime uncertainty even after exit zero; their settlement remains unverified (exit 26), with the typed criterion `isolationReason: unsupported-platform`. Unsupported architectures report `unsupported-architecture`, unavailable or refused backends report `backend-unavailable`, and an admitted execution without a completed exact-local-execution receipt reports `execution-unconfirmed`. These reasons are also included in criterion evidence. This fallback does not relax effect custody or clear its uncertainty latch. The single-command regression checks admission on every host and real command exit results; verified Linux success requires a working isolation backend, not just an installed binary. The companion `209-isolated-command-settlement.test.ts` uses a Linux-semantics spawn stub on Darwin/POSIX to exercise actual Node tests, nonzero no-retry behavior, receipt settlement, unavailable/refused checks and interruption. This stub verifies executor/ledger logic, not Linux namespace or seccomp security; native Linux backend verification is still required for that guarantee. Session-owned foreground and background launches retain effect custody after their starting tool call returns. An unrestricted executable can detach a descendant into a new process group, so absence or termination of the original group does not prove quiescence. Such launches retain explicit uncertainty for that session, including across task boundaries and after group cleanup; command/file evidence cannot establish final-state completion. The executor can avoid this uncertainty for OS-confined acceptance commands and a narrow launch-free grammar of literal `/bin/bash` builtins (`printf`, `echo`, `true`, `false`, `:`), with optional output redirection and no expansions, operators, startup scripts, imported functions or loader overrides. The `printf` subset accepts a literal non-option format with only `%s` and `%%` conversions, followed by literal arguments; assignment options, `%n`, and other conversions retain uncertainty. `echo`, `true`, `false`, and `:` do not evaluate their literal arguments. Launch-free does not mean read-only: redirects still invalidate earlier evidence. Other commands still execute normally, but without a lifetime receipt. Verification never kills a daemon or signals an escaped process merely to obtain proof. This does not protect against independent host processes or trusted extensions modifying state outside observed tool calls.
34
34
 
35
35
  An unmet criterion takes precedence over a verified claim. Partial results without unmet criteria remain unverified. Missing, interrupted, or unavailable verification conservatively returns 26. Interactive sessions and SDK sessions without the headless gate do not enable automatic acceptance checks.
36
36
 
@@ -40,7 +40,7 @@ Internal OAuth exhaustion and account-pool failures stop further submissions but
40
40
 
41
41
  RPC remains resident after a failed preflight and accepts another request. Its orderly exit reflects the last settled/rejected task. Existing signal exit conventions remain unchanged. Agent-exec retains its single-response stdout protocol; admission failures emit `run_end` to stderr. Main runtime setup failures use stdout for JSON/RPC and stderr otherwise.
42
42
 
43
- Subagents preserve and merge completed-wrong/unverified edits while retaining their nonzero result and useful output. They do not retry those outcomes as provider failures. Chains do not proceed past a failed verification result. Flow consumes authoritative terminal frames from both child and experimental in-process transports and never turns their known failure exits into successful teardown recovery. Unresolved in-process effect custody remains a nonzero failure even after verified acceptance.
43
+ Subagents preserve and merge completed-wrong/unverified edits while retaining their nonzero result and useful output. They do not retry those outcomes as provider failures. Chains do not proceed past a failed verification result. Flow consumes authoritative terminal frames from both child and experimental in-process transports. A normally stopped, settled child with final text and an authoritative completed-unverified frame may proceed to Flow's own verification after process exit 0 or 26; this is dispatch completion, not verified acceptance. Bare exit 26 and other known failure exits never become successful teardown recovery; see [child completion and verification](../../flow/docs/executors.md#child-completion-and-verification). Unresolved in-process effect custody remains a nonzero failure even after verified acceptance.
44
44
 
45
45
  ## OAuth refresh coordination
46
46
 
@@ -229,6 +229,15 @@ Entries normally form one tree, but navigation APIs can create multiple roots:
229
229
  - The "leaf" is the current position in the tree
230
230
  - Calling `resetLeaf()` or `branchWithSummary(null, ...)` allows a later entry to become another root
231
231
 
232
+ ### Damaged files
233
+
234
+ HUMAIN Code CLI reads a damaged session file without rewriting it:
235
+ - Lines that do not parse, and lines after the header that parse but are not entries (`{}`, `42`, or a version 2+ record without an `id`), are skipped.
236
+ - When a skipped line held an entry's parent, that entry is linked to the entry before it in the file, in memory only, and a warning is printed. This applies only to files whose parents all come before their children, as appending writes them. Files with forward references, such as imported ones, are left as they are.
237
+ - Parent links that form a cycle are cut where the walk from the leaf meets an entry again. That entry becomes a root in branches, the tree, branch summaries and HTML exports.
238
+ - A repeated `id` is placed once in the tree, by its last definition.
239
+ - Before appending, an unfinished last line (from a failed or interrupted write) is ended with a newline so the next entry starts on its own line. A failed write's partial line is not truncated, because another process may have appended to the file since.
240
+
232
241
  ```
233
242
  [user msg] ─── [assistant] ─── [user msg] ─── [assistant] ─┬─ [user msg] ← current leaf
234
243
  │