@humain/humain-code 0.8.4 → 0.8.7

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 (242) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/bundle/agent-monitor.js +1 -1
  3. package/dist/bundle/chunks/{anthropic-messages-42CGJCSR.js → anthropic-messages-QMSJV4J5.js} +3 -3
  4. package/dist/bundle/chunks/{ask-VH7GNX75.js → ask-VVSJA5VG.js} +2 -2
  5. package/dist/bundle/chunks/{azure-openai-responses-DOKKMBUN.js → azure-openai-responses-P57ZD6XP.js} +3 -3
  6. package/dist/bundle/chunks/chunk-2QVKRSKH.js +4 -0
  7. package/dist/bundle/chunks/{chunk-OTVHRZ67.js → chunk-3BZUQ54Z.js} +1 -1
  8. package/dist/bundle/chunks/{chunk-XGOJCV6Z.js → chunk-4K6ISLTX.js} +1 -1
  9. package/dist/bundle/chunks/{chunk-BNZZJ4LO.js → chunk-4QVJYVS5.js} +1 -1
  10. package/dist/bundle/chunks/{chunk-MXF3KYLZ.js → chunk-4UXFF4IH.js} +1 -1
  11. package/dist/bundle/chunks/{chunk-J5YFXMTM.js → chunk-6PJEPQBW.js} +2 -2
  12. package/dist/bundle/chunks/{chunk-4SL6URR3.js → chunk-7X7QN6MX.js} +5 -3
  13. package/dist/bundle/chunks/{chunk-XGSJX23G.js → chunk-A7AH3VMJ.js} +69 -66
  14. package/dist/bundle/chunks/{chunk-H35P7ROY.js → chunk-B345VDHB.js} +9 -7
  15. package/dist/bundle/chunks/{chunk-A5ZMBTTM.js → chunk-B57IK7TV.js} +2 -2
  16. package/dist/bundle/chunks/{chunk-KJ3QRSSY.js → chunk-BVBEJBVY.js} +1 -1
  17. package/dist/bundle/chunks/{chunk-AER66CNP.js → chunk-BXDTDGHH.js} +1 -1
  18. package/dist/bundle/chunks/chunk-CDLUE6BJ.js +4 -0
  19. package/dist/bundle/chunks/{chunk-FLWO3H5J.js → chunk-DBC6XUKA.js} +1 -1
  20. package/dist/bundle/chunks/{chunk-HWXQCJDP.js → chunk-EB2ZJYOO.js} +295 -254
  21. package/dist/bundle/chunks/{chunk-4BNDLR6C.js → chunk-EK4QE622.js} +147 -37
  22. package/dist/bundle/chunks/{chunk-K5EFEIFP.js → chunk-H6CKS7HC.js} +1 -1
  23. package/dist/bundle/chunks/{chunk-UTRUALFN.js → chunk-HV25WMNO.js} +1 -1
  24. package/dist/bundle/chunks/{chunk-73YX5XGR.js → chunk-IP7R6BIN.js} +1079 -657
  25. package/dist/bundle/chunks/{chunk-HRNYDRL7.js → chunk-J5R2BQJS.js} +1 -1
  26. package/dist/bundle/chunks/{chunk-5C5K4EVJ.js → chunk-JNSFJADB.js} +1 -1
  27. package/dist/bundle/chunks/{chunk-CG43CMFH.js → chunk-KBIPIIKE.js} +1 -1
  28. package/dist/bundle/chunks/{chunk-CIAXW64K.js → chunk-MS3SLC2V.js} +10 -10
  29. package/dist/bundle/chunks/{chunk-WCKS2DPT.js → chunk-NO6T6CDO.js} +1 -1
  30. package/dist/bundle/chunks/{chunk-EVDQRT3I.js → chunk-NSSJ6OJK.js} +141 -225
  31. package/dist/bundle/chunks/{chunk-MZYHSWHX.js → chunk-OR3ORXP3.js} +2 -2
  32. package/dist/bundle/chunks/{chunk-MLOUZAVZ.js → chunk-PU7SKUJ6.js} +2 -2
  33. package/dist/bundle/chunks/{chunk-QZXLTW7V.js → chunk-RRGJHRKF.js} +1 -1
  34. package/dist/bundle/chunks/{chunk-625QJSFJ.js → chunk-SDPK3KZ3.js} +1 -1
  35. package/dist/bundle/chunks/{chunk-ZFFDBTG3.js → chunk-SPLJOIKL.js} +1 -1
  36. package/dist/bundle/chunks/{chunk-O44A4E4K.js → chunk-TNKPCYIM.js} +1 -1
  37. package/dist/bundle/chunks/{chunk-5KUCY54O.js → chunk-UY5TOBH2.js} +1 -1
  38. package/dist/bundle/chunks/{chunk-ARTF7ZMQ.js → chunk-VFPA5KPR.js} +1 -1
  39. package/dist/bundle/chunks/chunk-VP27C46J.js +23 -0
  40. package/dist/bundle/chunks/{chunk-B3FT6L6S.js → chunk-XZJT5U3V.js} +1 -1
  41. package/dist/bundle/chunks/{chunk-UOSJTMCL.js → chunk-YCGPXBJP.js} +1 -1
  42. package/dist/bundle/chunks/{chunk-52642TYH.js → chunk-YRSNKHEF.js} +389 -783
  43. package/dist/bundle/chunks/{chunk-MQYR4Q6X.js → chunk-YSRWNEZW.js} +1 -1
  44. package/dist/bundle/chunks/{chunk-SOE25WIS.js → chunk-ZAO4KC6J.js} +1054 -1069
  45. package/dist/bundle/chunks/{chunk-V2HTCZRF.js → chunk-ZXOTVZUX.js} +1 -1
  46. package/dist/bundle/chunks/{chunk-T5WECB2D.js → chunk-ZZNGVD5Q.js} +1 -1
  47. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-ZAZW4M4B.js → cloudflare-workers-ai-system-one-4BO66KHO.js} +1 -1
  48. package/dist/bundle/chunks/{compat-7UJJAO4E.js → compat-EOHVO2W3.js} +4 -4
  49. package/dist/bundle/chunks/{curator-server-MW645JI3.js → curator-server-72V7LMHQ.js} +1 -1
  50. package/dist/bundle/chunks/{dist-7PCCEUQF.js → dist-FW7ELRQH.js} +1 -1
  51. package/dist/bundle/chunks/{dist-I53JI67E.js → dist-YEVRRTWL.js} +8 -8
  52. package/dist/bundle/chunks/{dist-VXQT3DQY.js → dist-ZRUKAVTU.js} +3 -3
  53. package/dist/bundle/chunks/{doctor-KJVAYG3F.js → doctor-HJKC434Y.js} +29 -28
  54. package/dist/bundle/chunks/{easter-egg-3d-Z24JLXD4.js → easter-egg-3d-M37PJBL5.js} +1 -1
  55. package/dist/bundle/chunks/entry-M5TRX7N4.js +2 -0
  56. package/dist/bundle/chunks/{execute-C4BZQRPQ.js → execute-MIXK3CFW.js} +2 -2
  57. package/dist/bundle/chunks/{extract-XVQCIS7D.js → extract-WB6Y6ISY.js} +2 -2
  58. package/dist/bundle/chunks/{flow-implementer-GE2ARQKR.js → flow-implementer-ZNK5KVOG.js} +5 -5
  59. package/dist/bundle/chunks/github-copilot.js +1 -1
  60. package/dist/bundle/chunks/{google-generative-ai-P2P45MYP.js → google-generative-ai-B2BT7X4W.js} +3 -3
  61. package/dist/bundle/chunks/{google-vertex-SHY4IS5F.js → google-vertex-PCFDFRHY.js} +3 -3
  62. package/dist/bundle/chunks/{host-YESS2VAB.js → host-RF6R6GLZ.js} +1 -1
  63. package/dist/bundle/chunks/{inprocess-MGMVI6HN.js → inprocess-6MLIANGV.js} +6 -6
  64. package/dist/bundle/chunks/interactive-mode-QKREO5BH.js +6 -0
  65. package/dist/bundle/chunks/{llama-cpp-classify-RSRH4KV2.js → llama-cpp-classify-DMJSUUAD.js} +1 -1
  66. package/dist/bundle/chunks/{mistral-conversations-YTMJKHHI.js → mistral-conversations-OXWTIYWX.js} +2 -2
  67. package/dist/bundle/chunks/{openai-codex-responses-NUCJOJSZ.js → openai-codex-responses-YGXOZKWL.js} +3 -3
  68. package/dist/bundle/chunks/{openai-completions-E5NRJUHA.js → openai-completions-WDVOHMN6.js} +4 -4
  69. package/dist/bundle/chunks/{openai-decisions-342J5ZYG.js → openai-decisions-45LGQAD5.js} +1 -1
  70. package/dist/bundle/chunks/{openai-responses-BN5Z4HFI.js → openai-responses-OZDPUN4M.js} +3 -3
  71. package/dist/bundle/chunks/{openrouter-images-7RNG3JVF.js → openrouter-images-2IKRVRTZ.js} +2 -2
  72. package/dist/bundle/chunks/{pi-messages-2L7FV5OK.js → pi-messages-VZOJLMWW.js} +2 -2
  73. package/dist/bundle/chunks/{questionnaire-session-XEVAK7JS.js → questionnaire-session-RSZE5I3P.js} +2 -2
  74. package/dist/bundle/chunks/{session-picker-666KJIVM.js → session-picker-EUPZJEFF.js} +2 -2
  75. package/dist/bundle/chunks/{startup-ui-INEVSNGK.js → startup-ui-RTSTUGUC.js} +2 -2
  76. package/dist/bundle/chunks/{typesafe-system-one-UJUNSZG4.js → typesafe-system-one-IVWD24CQ.js} +1 -1
  77. package/dist/bundle/chunks/{virtual-modules-UXSSFNV5.js → virtual-modules-LS3DOCYU.js} +8 -8
  78. package/dist/bundle/cli-runtime.js +5 -5
  79. package/dist/bundle/flow/package.json +1 -1
  80. package/dist/bundle/index.js +11 -11
  81. package/dist/bundle/rpc-entry.js +5 -5
  82. package/dist/coordination/adapter/delivery.d.ts +6 -0
  83. package/dist/coordination/adapter/delivery.d.ts.map +1 -1
  84. package/dist/coordination/adapter/delivery.js +39 -4
  85. package/dist/coordination/adapter/delivery.js.map +1 -1
  86. package/dist/coordination/adapter/index.d.ts +2 -0
  87. package/dist/coordination/adapter/index.d.ts.map +1 -1
  88. package/dist/coordination/adapter/index.js +26 -0
  89. package/dist/coordination/adapter/index.js.map +1 -1
  90. package/dist/coordination/adapter/tool.js +3 -3
  91. package/dist/coordination/adapter/tool.js.map +1 -1
  92. package/dist/core/bug-report.d.ts +24 -1
  93. package/dist/core/bug-report.d.ts.map +1 -1
  94. package/dist/core/bug-report.js +216 -19
  95. package/dist/core/bug-report.js.map +1 -1
  96. package/dist/core/extensions/containment.d.ts +26 -0
  97. package/dist/core/extensions/containment.d.ts.map +1 -0
  98. package/dist/core/extensions/containment.js +66 -0
  99. package/dist/core/extensions/containment.js.map +1 -0
  100. package/dist/core/extensions/loader.d.ts.map +1 -1
  101. package/dist/core/extensions/loader.js +65 -7
  102. package/dist/core/extensions/loader.js.map +1 -1
  103. package/dist/core/extensions/runner.d.ts +2 -1
  104. package/dist/core/extensions/runner.d.ts.map +1 -1
  105. package/dist/core/extensions/runner.js +55 -10
  106. package/dist/core/extensions/runner.js.map +1 -1
  107. package/dist/core/extensions/types.d.ts +5 -2
  108. package/dist/core/extensions/types.d.ts.map +1 -1
  109. package/dist/core/extensions/types.js.map +1 -1
  110. package/dist/core/extensions/wrapper.d.ts.map +1 -1
  111. package/dist/core/extensions/wrapper.js +4 -1
  112. package/dist/core/extensions/wrapper.js.map +1 -1
  113. package/dist/core/footer-data-provider.d.ts +2 -0
  114. package/dist/core/footer-data-provider.d.ts.map +1 -1
  115. package/dist/core/footer-data-provider.js +4 -0
  116. package/dist/core/footer-data-provider.js.map +1 -1
  117. package/dist/core/keybindings.d.ts +16 -0
  118. package/dist/core/keybindings.d.ts.map +1 -1
  119. package/dist/core/keybindings.js +2 -0
  120. package/dist/core/keybindings.js.map +1 -1
  121. package/dist/core/settings-defaults.d.ts +5 -0
  122. package/dist/core/settings-defaults.d.ts.map +1 -1
  123. package/dist/core/settings-defaults.js +2 -0
  124. package/dist/core/settings-defaults.js.map +1 -1
  125. package/dist/core/settings-manager.d.ts +10 -0
  126. package/dist/core/settings-manager.d.ts.map +1 -1
  127. package/dist/core/settings-manager.js +31 -0
  128. package/dist/core/settings-manager.js.map +1 -1
  129. package/dist/core/settings-schema.d.ts +5 -0
  130. package/dist/core/settings-schema.d.ts.map +1 -1
  131. package/dist/core/settings-schema.js +8 -0
  132. package/dist/core/settings-schema.js.map +1 -1
  133. package/dist/core/slash-commands.d.ts.map +1 -1
  134. package/dist/core/slash-commands.js +1 -0
  135. package/dist/core/slash-commands.js.map +1 -1
  136. package/dist/forge-build-token.d.ts +3 -0
  137. package/dist/forge-build-token.d.ts.map +1 -0
  138. package/dist/forge-build-token.js +17 -0
  139. package/dist/forge-build-token.js.map +1 -0
  140. package/dist/humain/checklist/vendor/commands.d.ts +7 -0
  141. package/dist/humain/checklist/vendor/commands.d.ts.map +1 -1
  142. package/dist/humain/checklist/vendor/commands.js +85 -21
  143. package/dist/humain/checklist/vendor/commands.js.map +1 -1
  144. package/dist/humain/checklist/vendor/index.d.ts.map +1 -1
  145. package/dist/humain/checklist/vendor/index.js +4 -3
  146. package/dist/humain/checklist/vendor/index.js.map +1 -1
  147. package/dist/humain/flow-loader.d.ts.map +1 -1
  148. package/dist/humain/flow-loader.js +31 -5
  149. package/dist/humain/flow-loader.js.map +1 -1
  150. package/dist/humain/hcode/build-token.d.ts +35 -0
  151. package/dist/humain/hcode/build-token.d.ts.map +1 -0
  152. package/dist/humain/hcode/build-token.js +406 -0
  153. package/dist/humain/hcode/build-token.js.map +1 -0
  154. package/dist/humain/hcode/contracts.d.ts +3 -1
  155. package/dist/humain/hcode/contracts.d.ts.map +1 -1
  156. package/dist/humain/hcode/contracts.js +7 -4
  157. package/dist/humain/hcode/contracts.js.map +1 -1
  158. package/dist/humain/hcode/notices.d.ts +5 -0
  159. package/dist/humain/hcode/notices.d.ts.map +1 -1
  160. package/dist/humain/hcode/notices.js +5 -0
  161. package/dist/humain/hcode/notices.js.map +1 -1
  162. package/dist/humain/hcode/provider.d.ts.map +1 -1
  163. package/dist/humain/hcode/provider.js +1 -1
  164. package/dist/humain/hcode/provider.js.map +1 -1
  165. package/dist/humain/hcode/run-credential.d.ts +3 -1
  166. package/dist/humain/hcode/run-credential.d.ts.map +1 -1
  167. package/dist/humain/hcode/run-credential.js +123 -19
  168. package/dist/humain/hcode/run-credential.js.map +1 -1
  169. package/dist/humain/hcode/sandbox.d.ts.map +1 -1
  170. package/dist/humain/hcode/sandbox.js +10 -4
  171. package/dist/humain/hcode/sandbox.js.map +1 -1
  172. package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
  173. package/dist/humain/web-access/vendor/index.js +11 -1
  174. package/dist/humain/web-access/vendor/index.js.map +1 -1
  175. package/dist/modes/interactive/bug-report.d.ts.map +1 -1
  176. package/dist/modes/interactive/bug-report.js +48 -12
  177. package/dist/modes/interactive/bug-report.js.map +1 -1
  178. package/dist/modes/interactive/chat-viewport.d.ts +4 -0
  179. package/dist/modes/interactive/chat-viewport.d.ts.map +1 -1
  180. package/dist/modes/interactive/chat-viewport.js +29 -5
  181. package/dist/modes/interactive/chat-viewport.js.map +1 -1
  182. package/dist/modes/interactive/components/footer.d.ts +2 -0
  183. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  184. package/dist/modes/interactive/components/footer.js +29 -12
  185. package/dist/modes/interactive/components/footer.js.map +1 -1
  186. package/dist/modes/interactive/components/settings-selector.d.ts +6 -0
  187. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  188. package/dist/modes/interactive/components/settings-selector.js +20 -0
  189. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  190. package/dist/modes/interactive/components/status-line.js +2 -2
  191. package/dist/modes/interactive/components/status-line.js.map +1 -1
  192. package/dist/modes/interactive/components/tool-execution.d.ts +18 -1
  193. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  194. package/dist/modes/interactive/components/tool-execution.js +91 -3
  195. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  196. package/dist/modes/interactive/components/tool-group.d.ts +22 -0
  197. package/dist/modes/interactive/components/tool-group.d.ts.map +1 -0
  198. package/dist/modes/interactive/components/tool-group.js +117 -0
  199. package/dist/modes/interactive/components/tool-group.js.map +1 -0
  200. package/dist/modes/interactive/interactive-mode.d.ts +15 -3
  201. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  202. package/dist/modes/interactive/interactive-mode.js +183 -52
  203. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  204. package/dist/modes/interactive/sidebar/git-work.d.ts +18 -0
  205. package/dist/modes/interactive/sidebar/git-work.d.ts.map +1 -0
  206. package/dist/modes/interactive/sidebar/git-work.js +56 -0
  207. package/dist/modes/interactive/sidebar/git-work.js.map +1 -0
  208. package/dist/modes/interactive/sidebar/sidebar-component.d.ts +13 -0
  209. package/dist/modes/interactive/sidebar/sidebar-component.d.ts.map +1 -0
  210. package/dist/modes/interactive/sidebar/sidebar-component.js +61 -0
  211. package/dist/modes/interactive/sidebar/sidebar-component.js.map +1 -0
  212. package/dist/modes/interactive/sidebar/sidebar-model.d.ts +69 -0
  213. package/dist/modes/interactive/sidebar/sidebar-model.d.ts.map +1 -0
  214. package/dist/modes/interactive/sidebar/sidebar-model.js +217 -0
  215. package/dist/modes/interactive/sidebar/sidebar-model.js.map +1 -0
  216. package/dist/modes/interactive/tool-grouping.d.ts +11 -0
  217. package/dist/modes/interactive/tool-grouping.d.ts.map +1 -0
  218. package/dist/modes/interactive/tool-grouping.js +32 -0
  219. package/dist/modes/interactive/tool-grouping.js.map +1 -0
  220. package/docs/coordination.md +7 -3
  221. package/docs/environment-variables.md +14 -0
  222. package/docs/extensions.md +2 -0
  223. package/docs/flow.md +2 -0
  224. package/docs/forge-run-bootstrap.md +77 -42
  225. package/docs/humain-code.md +1 -1
  226. package/docs/keybindings.md +2 -0
  227. package/docs/providers.md +14 -0
  228. package/docs/settings.md +16 -1
  229. package/docs/slash-commands.md +3 -0
  230. package/examples/sdk/12-full-control.ts +1 -1
  231. package/npm-shrinkwrap.json +7 -6
  232. package/package.json +3 -2
  233. package/schemas/keybindings.schema.json +8 -0
  234. package/schemas/settings.schema.json +29 -0
  235. package/src/humain/caveman/UPSTREAM.md +15 -3
  236. package/src/humain/caveman/upstream.json +2 -2
  237. package/src/humain/web-access/UPSTREAM.md +8 -0
  238. package/dist/bundle/chunks/chunk-HWFAAGYK.js +0 -23
  239. package/dist/bundle/chunks/chunk-RP6MWUAP.js +0 -4
  240. package/dist/bundle/chunks/entry-3EL6GOWK.js +0 -2
  241. package/dist/bundle/chunks/interactive-mode-HHWOE4FD.js +0 -5
  242. /package/dist/bundle/chunks/{chunk-T7F2TEIS.js → chunk-3IX4NEXK.js} +0 -0
@@ -8,6 +8,20 @@ HUMAIN Code CLI uses environment variables in three ways:
8
8
 
9
9
  Provider API-key variables are documented separately in [Providers](providers.md#use-an-api-key-from-the-environment).
10
10
 
11
+ ## Managed Forge Build
12
+
13
+ These existing inputs are for managed Build launches, not desktop login:
14
+
15
+ | Variable | Description |
16
+ |----------|-------------|
17
+ | `HUMAIN_CODE_FORGE_ORIGIN` | Exact approved Build origin. Fixes the environment and derives `<origin>/api/inference`; an explicit mismatching `--env` fails before network access. See the [origin allowlist](forge-run-bootstrap.md#exact-destinations-and-environment-binding). |
18
+ | `HUMAIN_CODE_RUN_TOKEN` | Required valid Build credential. Captured with the origin and scrubbed before resource loading or child launch; never put it in argv, logs or shared files. Forge enforces scope, expiry and revocation. |
19
+ | `NODE_EXTRA_CA_CERTS` | Standard Node input. For private Build inference, Forge writes the public CA to `/tmp/forge-build-inference-ca.pem` and passes this path only to the launched Node agent at startup. Managed bootstrap removes it before tools/app/MCP children inherit the environment, without changing the CLI's startup-loaded trust. Desktop launches are unchanged. The CA is not a secret; normal TLS certificate and IP SAN verification remain enabled. |
20
+
21
+ With neither Build input, desktop startup is unchanged. Partial or invalid Build
22
+ inputs fail closed. See [Forge run bootstrap](forge-run-bootstrap.md) for the full
23
+ admission and TLS contract. No new environment variable names are introduced.
24
+
11
25
  ## Process Marker
12
26
 
13
27
  The CLI and RPC entry points set `HUMAIN_TERMINAL_CODING_AGENT=true`. Child processes inherit it and can use it to detect that they run inside HUMAIN Code CLI. It is not session-specific and is not set automatically when HUMAIN Code CLI is embedded through the SDK.
@@ -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:
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.
@@ -1,46 +1,81 @@
1
- # Forge run bootstrap (OFF in CLI 0.8.1)
2
-
3
- EPIC13T is OFF by default and cannot be enabled by launch configuration. The
4
- source-controlled private-channel qualification gate remains disabled until
5
- DeployNow #176 supplies and qualifies private credential custody. The sandbox
6
- marker is not attestation and an environment token is not a qualified channel.
7
- No replacement channel is implemented or implied here.
8
-
9
- When either `HUMAIN_CODE_FORGE_ORIGIN` or `HUMAIN_CODE_RUN_TOKEN` is present,
10
- including empty values or case variants, bootstrap removes both variables and
11
- fails closed before CLI setup/resource loading/child launch. Even a syntactically
12
- valid token, canonical origin and `HUMAIN_CODE_SANDBOX=1` cannot authorize a run.
13
- With neither variable, normal desktop startup remains unchanged. Scrubbing does
14
- not protect the original launch environment from process inspection; launchers
15
- must not inject tokens through this unqualified path.
16
-
17
- Never put a token in argv, logs, or shared files. Do not enable the Forge flag
18
- based on these tests. Reopening admission requires implementing and qualifying
19
- the private channel from DeployNow #176, not merely changing the gate or adding
20
- an environment override. No npm release or version bump is included.
21
-
22
- The dormant implementation is retained for future integration. It compares
23
- origins literally against the built-in destinations:
24
-
25
- - `https://code.dev.humain.com`
26
- - `https://code.stg.humain.com`
27
- - `https://code.humain.com`
28
-
29
- No paths, trailing slash, explicit port, URL credentials, query or fragment are
30
- accepted. Only the native `humain-code-account` provider has send authority, for
31
- `GET /api/inference/models` and `POST /api/inference/messages`. Redirects are
32
- refused, cookies omitted, and the account store, account sign-in, provider-key
33
- fallback and provider metadata are not used. The session/model registry are in
34
- memory, with automatic retries disabled. Forge remains authoritative for scope,
35
- expiry, revocation and metering.
36
-
37
- The retained path targets Node single-shot `-p` or `--mode json`, one literal
1
+ # Forge run bootstrap
2
+
3
+ ## Managed Build admission
4
+
5
+ Forge launches managed Build inference only with a valid `HUMAIN_CODE_RUN_TOKEN`
6
+ and an exact approved `HUMAIN_CODE_FORGE_ORIGIN`. Both variables are captured
7
+ once and removed from the inherited environment before argument parsing,
8
+ resource loading or child launch. Missing, empty, malformed or ambiguously cased
9
+ launch inputs fail closed when either variable is present. With neither variable,
10
+ normal desktop startup and interactive `/login` remain unchanged. No new
11
+ environment variable names or desktop credentials are introduced.
12
+
13
+ The CLI validates the launch credential format; Forge remains authoritative for
14
+ scope, expiry, revocation and metering. Never put a token in argv, logs or shared
15
+ files. Scrubbing does not protect the original launch environment from process
16
+ inspection.
17
+
18
+ ## Exact destinations and environment binding
19
+
20
+ `HUMAIN_CODE_FORGE_ORIGIN` must literally match one of these nine origins:
21
+
22
+ | Environment | Existing origin | Dedicated inference origin | Private inference origin |
23
+ | --- | --- | --- | --- |
24
+ | dev | `https://code.dev.humain.com` | `https://inference.code.dev.humain.com` | `https://10.160.3.240` |
25
+ | staging | `https://code.stg.humain.com` | `https://inference.code.stg.humain.com` | `https://10.146.15.230` |
26
+ | production | `https://code.humain.com` | `https://inference.code.humain.com` | `https://10.128.6.230` |
27
+
28
+ The origin fixes the environment and derives the inference base as
29
+ `<origin>/api/inference`. An explicit `--env` must match that environment; a
30
+ mismatch fails before any network request. There is no independent environment
31
+ override for a Build origin.
32
+
33
+ Matching uses exact strings, not URL normalization. Reject aliases, HTTP,
34
+ explicit ports (including `:443`), paths (including a trailing slash), query
35
+ strings, fragments, userinfo, trailing dots, other IP addresses, IPv6, and octal
36
+ or decimal spellings of the approved IPv4 addresses.
37
+
38
+ Only the native `humain-code-account` provider has send authority, for
39
+ `GET <origin>/api/inference/models` and
40
+ `POST <origin>/api/inference/messages`. Redirects are refused, cookies omitted,
41
+ and the account store, account sign-in, provider-key fallback and provider
42
+ metadata are not used. The session/model registry are in memory, with automatic
43
+ retries disabled. A 401 ends the Build session as expired or revoked: no retry,
44
+ no fallback, and the token is never printed.
45
+
46
+ ## Private-origin TLS
47
+
48
+ Forge writes the public CA certificate to `/tmp/forge-build-inference-ca.pem`
49
+ and passes `NODE_EXTRA_CA_CERTS=/tmp/forge-build-inference-ca.pem` only to the
50
+ launched Node agent, not as a global shell or desktop configuration. The CA
51
+ certificate is public trust material, not a secret; the file must never contain
52
+ a private key or Build token. Node reads `NODE_EXTRA_CA_CERTS` at process startup.
53
+ Managed bootstrap then removes that environment variable, alongside the launch
54
+ token and origin, before starting tools or app/dev-server/MCP children. The CLI
55
+ retains its already-loaded CA trust; those children do not inherit the Build CA.
56
+ Desktop launches preserve their existing `NODE_EXTRA_CA_CERTS` configuration.
57
+
58
+ Node's standard TLS verification remains enabled. A private IP endpoint's
59
+ certificate must chain to a trusted CA and contain the exact destination IP in
60
+ its IP subject alternative name (SAN). Adding a CA does not bypass identity
61
+ validation. Never disable certificate verification or replace standard IP SAN
62
+ validation. Desktop login destinations and trust configuration are unchanged.
63
+
64
+ ## Launch constraints and shared resolver
65
+
66
+ The managed path targets Node single-shot `-p` or `--mode json`, one literal
38
67
  prompt, and an explicit exact catalog model. Extensions, project resources and
39
68
  subagent execution are disabled. Bun, RPC, frozen admission and Flow fail closed
40
69
  before inference. Flow worker custody and Build artifact compatibility remain
41
- unqualified. These are implementation constraints, not supported launch modes
42
- while the gate is disabled.
70
+ unqualified. Ambient `SYSTEM.md` and `APPEND_SYSTEM.md` in the agent directory or
71
+ project are not loaded into the session.
72
+
73
+ The shared exported resolver is `resolveBuildInferenceEnvironment` from
74
+ `@humain/humain-code-contracts/build-inference`. It validates the literal origin
75
+ and launch credential and returns the fixed environment, origin and derived
76
+ inference base. Future challenge/refresh integration must reuse this resolver;
77
+ the actual challenge/refresh helper is absent and out of scope here.
43
78
 
44
- A 401 from Forge is reported as an expired or revoked Build token (no retry, no
45
- fallback, token never printed). Ambient `SYSTEM.md` and `APPEND_SYSTEM.md` in the
46
- agent directory or project are not loaded into the session.
79
+ See [Environment Variables](environment-variables.md#managed-forge-build) for the
80
+ launch inputs. Release notes belong in the merge request, not a CHANGELOG; this
81
+ change reserves contracts `0.4.25` for the CLI `0.8.6` batch; it does not publish a release.
@@ -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
 
@@ -163,6 +163,8 @@ On native Windows, `app.suspend` has no default because Windows terminals do not
163
163
 
164
164
  | Keybinding id | Default | Description |
165
165
  |--------|---------|-------------|
166
+ | `app.sidebar.toggle` | None | Toggle the saved sidebar preference (same control as `/sidebar on\|off`) |
167
+ | `app.tasks.toggle` | None | Reserved for checklist-overlay integration; not yet handled |
166
168
  | `app.tools.expand` | `ctrl+o` | Collapse or expand tool output |
167
169
  | `app.message.copy` | `ctrl+x` | Copy the selected message in `/tree`; in fullscreen mode, copy the active selection when `fullscreenCopyOnSelect` is `false`; otherwise copy the last assistant message. On OAuth sign-in screens, copy the sign-in URL |
168
170
  | `app.block.copy` | `ctrl+alt+c` | Copy an assistant fenced block. Copies the only block directly; otherwise opens a picker, newest first. Fullscreen also supports clicking a card's Copy action. Regular mode leaves mouse selection to the terminal. |
package/docs/providers.md CHANGED
@@ -289,6 +289,20 @@ After sign-in, use `/model` to choose an approved native model; login does not c
289
289
 
290
290
  Native inference uses the managed `pi-messages` transport at the selected origin's `/api/inference/messages`. The account owner adds authorization only at final dispatch. Each invocation submits once, with no automatic inference retry, account/model fallback, or response replay. Stream queue overflow cancels the request; an ambiguous outcome may still charge, so check `/usage` before retrying manually.
291
291
 
292
+ ### Forge Build credential refresh
293
+
294
+ Build launch credentials are separate from desktop sign-in. Forge supplies `HUMAIN_CODE_FORGE_ORIGIN`, `HUMAIN_CODE_RUN_TOKEN` and, only for explicitly enabled refresh launches, `HUMAIN_CODE_BUILD_REFRESH`. The CLI captures and removes these inputs (including case variants) and `NODE_EXTRA_CA_CERTS` before starting tools or children. Node must load the launch CA at process startup; TLS verification stays enabled.
295
+
296
+ The refresh input is a closed JSON object: `{ "v": 1, "runId": "<UUID>", "sandboxId": "<sandbox>", "contractId": "<UUID>", "launchGeneration": 1, "refreshPath": "/api/inference/token/refresh" }`. Only valid input activates refresh. Malformed or partial refresh input (including unknown fields) is scrubbed and ignored: an otherwise valid Build continues on its original fixed-lifetime token, without refresh or desktop credential fallback. Stderr receives exactly one sanitized warning, `Warning: HUMAIN_CODE_BUILD_REFRESH: refresh_invalid_configuration`, without input values. Absent refresh input keeps the capped behavior silently; invalid origin or launch credentials still refuse startup. Refresh accepts only the exact private destinations returned by `resolveBuildInferenceEnvironment`, not public code origins or arbitrary URLs. There is no challenge field or request: bootstrap (`mode: "bootstrap"`) and subsequent rotation (`mode: "refresh"`) both use the exact refresh path. The removed `challengePath` field is rejected as refresh configuration and therefore leaves the Build capped.
297
+
298
+ The native Build flow refreshes in-process before dispatch at about 80% of the last remaining token lifetime, including after a quiet interval. It bootstraps once using the launch bearer, then rotates a run-bound handle without an Authorization header. A pre-admission `401 {"code":"build_token_expired"}` permits one refresh and retry of the unsent inference operation; ordinary `unauthorized` and partially streamed replies never authorize replay. No account/model fallback or successor CLI is used.
299
+
300
+ State is local to `${TMPDIR:-/tmp}/forge-build-token/<runId>/state.json` (physical temp path), with directories 0700 and a file 0600, owned by the sandbox user. Symlinks, unsafe existing modes and ownership are refused. Cross-process locking serializes refresh; pending request keys are fsynced before sending, and replacements are fsynced and atomically renamed before success. Lost responses and local write failures retry the identical request/key within the server's 120-second recovery window, never remint a lost credential. Old bootstrap/handle material is replaced, and normal shutdown removes committed owned state; pending requests survive transient-failure shutdown or crashes for bounded recovery. Do not upload or log it. This rotating handle is a bearer credential, not workload identity.
301
+
302
+ The optional installed `/usr/local/bin/forge-build-token` entry point takes no arguments. A trusted consumer supplies `HUMAIN_CODE_BUILD_TOKEN_STATE` only to that subprocess to locate already initialized state; never export this locator to agent tools. The native CLI does not need the subprocess. Stdout is only `{"access_token":"<access token>","expires_in":<remaining whole seconds>}` plus newline. Stderr is a fixed typed reason: exit 64 for invalid local configuration/state, 75 for bounded transient failure, 77 for terminal refusal (including handle reuse, inactive run and exhausted credits). Transient attempts back off and retain the pending request; terminal refusals stop refresh. Out of credits is reported as `Build stopped: out of credits.` No token or handle belongs in argv, logs or telemetry.
303
+
304
+ Activation still requires the server's default-OFF launch switch, qualified private ingress/CA, the delivered CLI and sandbox image, and independent lifecycle/stream/credit qualification. This CLI support is not evidence of an enabled environment or permission to remove Forge's initial expiry fence before composed qualification.
305
+
292
306
  ### Removed providers
293
307
 
294
308
  Unsupported `humain-sso` and legacy env/API-key `humain-code` registrations are removed. The six inputs `HUMAIN_TERMINAL_HC_BASE_URL`, `HUMAIN_TERMINAL_HC_API_KEY`, `HUMAIN_TERMINAL_HC_MODELS`, `HUMAIN_TERMINAL_HUMAIN_CODE_BASE_URL`, `HUMAIN_TERMINAL_HUMAIN_CODE_API_KEY`, and `HUMAIN_TERMINAL_HUMAIN_CODE_MODELS` are no longer consumed. No old-ID translation, credential migration or unsupported-provider revocation occurs. User tier files and inert credentials are preserved.
package/docs/settings.md CHANGED
@@ -124,7 +124,7 @@ Use `/settings` → Checklist (also accessible through `/checklist settings`). C
124
124
 
125
125
  The sidebar heading and compact status both count done and cancelled tasks as resolved (cancelled tasks retain their `✗` row glyph).
126
126
 
127
- Other native task views consume the same session through `getChecklistProvider()` from `src/humain/checklist/index.ts`: `current()` reads the current task views and `subscribe(listener)` returns an unsubscribe callback. No polling or second checklist store is needed. A fullscreen sidebar integration must suppress this overlay and the compact Tasks segment only while its own Tasks surface is visible, and reuse `app.checklist.sidebar` rather than register a second task-toggle binding.
127
+ Other native task views consume the same session through `getChecklistProvider()` from `src/humain/checklist/index.ts`: `current()` reads the current task views and `subscribe(listener)` returns an unsubscribe callback. No polling or second checklist store is needed. The fullscreen sidebar suppresses the checklist popup, pinned checklist column and compact Tasks segment only while its own Tasks surface is visible. `app.tasks.toggle` (unbound by default) opens or closes the existing checklist popup when the fullscreen sidebar is hidden; it does nothing while the sidebar is visible. The separate `app.checklist.sidebar` binding retains its existing pinned-column behavior when the fullscreen sidebar is hidden.
128
128
 
129
129
  Status-line owns the while-building `Tasks` segment and its rendering. The bundled checklist supplies pure `getChecklistStatusSegment(): { text: string } | undefined` from `src/humain/checklist/index.ts`: `Tasks 1/4 ●1`, with `‖` when blocked and nonzero ongoing counts only. Empty checklists supply nothing; completed/cancelled work supplies `✓ 4/4` until the next user prompt. `/checklist show|hide` controls segment availability, not footer layout.
130
130
 
@@ -185,13 +185,24 @@ See [Compaction Reference](compaction.md) for trigger, summarization, and valida
185
185
 
186
186
  ## Terminal and display
187
187
 
188
+ Sidebar controls are opt-in: `/sidebar on|off` persists `sidebar.enabled`; `/settings` also exposes Sidebar and Sidebar width. In regular mode, enabling it stores the preference and reports: "The sidebar needs fullscreen mode (tuiMode: fullscreen)." In fullscreen mode at 100 or more terminal columns, the right-hand column shows Session, Work, Agents and Tasks. Below 100 columns it hides with a one-time notice and returns when widened; the saved preference is retained. Model subscriptions and pending redraws are released while hidden. Status-line fields duplicated by the visible sidebar return when it hides. Sidebar events request at most four frames per second without invalidating the transcript. Git status is asynchronous, triggered only by completed edits/writes/bash or turns and rate-limited to once per two seconds. With the sidebar disabled (the default), no sidebar model, subscriptions or timers are created. Sidebar content never enters model context, session records or noninteractive output.
189
+
190
+ For 0.8.5 the owner's 2026-11-30 decision is **"Ship opt-in, fix the gate (Recommended)"**: the sidebar remains disabled by default. The [UI benchmark](../../../docs/development.md#ui-performance-budget) gates sidebar-on retained memory (`heapUsed + external` after two forced GCs) at +10 MiB versus off, not raw RSS. Raw end-of-run RSS remains reported: six Linux x64/Node 24 pairs measured +114–134 MiB, versus about +30 MiB on Mac arm64/Node 26. These are historical diagnostic results, not an exact-head pass. Frame/CPU/scroll, off RSS and prompt budgets remain unchanged; allocation churn is tracked in [#397](https://gitlab.humain.com/humain/data-and-ai-modeling/standard/agentic/humain-terminal/-/issues/397).
191
+
192
+ The sidebar's session cost uses the same cumulative accounting as the footer: all session entries across branches, including compaction usage. Appended entries and completed compactions refresh the visible total without remounting the sidebar.
193
+
194
+ Without Git status, Work counts distinct successfully edited or written paths in the session. Edits already in flight when the sidebar is enabled or restored after narrowing count once they succeed; failed edits do not count.
195
+
188
196
  | Setting | Type | Default | Description |
189
197
  |---|---|---|---|
190
198
  | `theme` | string | `"system"` | Built-in or custom theme name. `system` derives colors from the terminal theme. |
191
199
  | `workingIndicator` | `"rotate" \| "classic" \| "life" \| "rain" \| "decode"` | `"rotate"` | One session-stable random binary indicator, or a pinned style; live preview in `/settings`. |
192
200
  | `reducedMotion` | boolean | `false` | Use a still working-indicator frame instead of animation. |
193
201
  | `quietStartup` | boolean \| `"header"` | `false` | `true` hides the startup header and loaded-resource listing. `"header"` keeps the header (version and key hints) but hides the model scope line and loaded-resource listing. |
202
+ | `sidebar.enabled` | boolean | `false` | Saved fullscreen sidebar preference. |
203
+ | `sidebar.width` | integer | `32` | Sidebar width in columns; runtime values are rounded down and clamped to 24–48. Invalid nonnumeric values use 32. |
194
204
  | `tuiMode` | `"regular" \| "fullscreen"` | `"fullscreen"` | Interactive terminal UI mode. |
205
+ | `toolDisplay` | `"default"` \| `"grouped"` | `"default"` | Interactive transcript only: fold consecutive read-only tools and show compact timed mutation and shell rows. |
195
206
  | `fullscreenExitOutput` | `"transcript" \| "resume-hint"` | `"transcript"` | Output printed when fullscreen mode exits. |
196
207
  | `fullscreenScrollbar` | `"auto" \| "always" \| "hidden"` | `"auto"` | Fullscreen transcript scrollbar behavior. |
197
208
  | `fullscreenCopyOnSelect` | boolean | `true` | Copy selected text automatically in fullscreen mode. |
@@ -212,6 +223,10 @@ See [Compaction Reference](compaction.md) for trigger, summarization, and valida
212
223
  | `markdown.codeBlockIndent` | string | `" "` | Prefix used to indent rendered code blocks. |
213
224
  | `markdown.mermaid` | `"off" \| "final" \| "streaming"` | `"streaming"` | Mermaid rendering mode. |
214
225
 
226
+ With `toolDisplay: "grouped"`, consecutive successful `read`, `grep`, `find`, and `ls` calls in one assistant turn fold into a summary. Assistant text, other tools, and failures break groups. Failed calls remain expanded, including when tool output is collapsed. The existing tool-output expand action reveals the original rows. Edits and writes show available diff counts. Without a diff, successful writes show the number of lines written when content is known (empty content is zero lines; a final newline does not add an extra line). This is not an added/deleted count: overwrites do not record the previous content, so no mutation delta is inferred. Shell commands are reduced to one line. Other tools retain their renderers. Completed live groups show elapsed wall-clock time across overlapping calls, not the sum of durations. Replayed calls without recorded timing show no duration. No additional timer or listener is registered. Default rendering is unchanged.
227
+
228
+ This setting does not alter model context, session persistence, `/export`, `/share`, RPC, JSON, or print output. It applies when interactive rows are created; restart or resume to rebuild an existing transcript after changing the saved setting.
229
+
215
230
  See [Themes](themes.md) and [Terminal Setup](terminal-setup.md) for format and platform details.
216
231
 
217
232
  `workingIndicator` defaults to `rotate`: one random choice of `life`, `rain`, or `decode` per interactive session, stable across turns and settings previews. Set an explicit style to pin it; switching back to `rotate` restores the session's original choice without another random draw. Supported pins are `classic` (the existing braille frames, capped at 10 updates/s like all working indicators), `life` (6/8/10 binary cells with a Working suffix, 3–10 updates/s), `rain` (4–12 falling-bit columns with elapsed time and level on the right), or `decode` (binary scramble resolving left to right into the current action). Higher thinking levels lengthen decode scrambling and increase rain speed (4–12 rows/s, computed at a fixed 10 Hz) and trail length. Rain's inner rule uses the same thinking-level color as the editor border. Decoded labels hold until the phase changes: Thinking for reasoning, Writing for text, and Reading/Editing/Running/Searching for tools. Animation uses only the active model's thinking level; non-reasoning models use off.
@@ -9,6 +9,7 @@ Extensions, prompt templates, and skills can add commands. The command menu in H
9
9
  | Command | Description |
10
10
  |---|---|
11
11
  | `/settings` | Open settings |
12
+ | `/sidebar on\|off` | Persist the fullscreen sidebar preference; other or missing arguments show usage |
12
13
  | `/model [provider/model]` | Select a model |
13
14
  | `/thinking [level]` | Set the thinking level |
14
15
  | `/scoped-models` | Configure the models used by interactive cycling |
@@ -17,6 +18,8 @@ Extensions, prompt templates, and skills can add commands. The command menu in H
17
18
  | `/accounts` | Manage saved OAuth accounts and compare weekly allowance, saved resets and paid credits |
18
19
  | `/llama` | Manage models on the configured llama.cpp router |
19
20
 
21
+ `/sidebar on` in regular mode saves the preference and reports "The sidebar needs fullscreen mode (tuiMode: fullscreen)." Sidebar rendering is added by the fullscreen integration; these controls alone do not mount it. See [sidebar settings](settings.md#terminal-and-display).
22
+
20
23
  ## Sessions and context
21
24
 
22
25
  | Command | Description |
@@ -22,7 +22,7 @@ if (process.env.MY_ANTHROPIC_KEY) {
22
22
  await modelRuntime.setRuntimeApiKey("anthropic", process.env.MY_ANTHROPIC_KEY);
23
23
  }
24
24
 
25
- const model = getModel("anthropic", "claude-sonnet-4-5");
25
+ const model = getModel("anthropic", "claude-sonnet-4-6");
26
26
  if (!model) throw new Error("Model not found");
27
27
 
28
28
  // In-memory settings with overrides
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@humain/humain-code",
3
- "version": "0.8.4",
3
+ "version": "0.8.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@humain/humain-code",
9
- "version": "0.8.4",
9
+ "version": "0.8.7",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@humain/humain-code-contracts": "0.4.23",
12
+ "@humain/humain-code-contracts": "0.4.25",
13
13
  "@aws-sdk/client-bedrock-runtime": "3.1179.0",
14
14
  "@aws-sdk/client-cloudwatch": "3.1179.0",
15
15
  "@earendil-works/pi-agent-core": "1.7.0",
@@ -51,6 +51,7 @@
51
51
  "@mariozechner/clipboard": "0.3.9"
52
52
  },
53
53
  "bin": {
54
+ "forge-build-token": "dist/forge-build-token.js",
54
55
  "humain-code": "dist/bundle/cli.js",
55
56
  "humain-code-cli": "dist/bundle/cli.js",
56
57
  "ht": "dist/bundle/cli.js",
@@ -611,9 +612,9 @@
611
612
  "hasInstallScript": true
612
613
  },
613
614
  "node_modules/@humain/humain-code-contracts": {
614
- "version": "0.4.23",
615
- "resolved": "https://registry.npmjs.org/@humain/humain-code-contracts/-/humain-code-contracts-0.4.23.tgz",
616
- "integrity": "sha512-YtR2UD4B//eVl+D4xjIdsbUKGolGlHzJG6kqbpwisc8w5VqE5ofY4fTYC49NfkAxDkZA7VmStVuszgrzyrANiA==",
615
+ "version": "0.4.25",
616
+ "resolved": "https://registry.npmjs.org/@humain/humain-code-contracts/-/humain-code-contracts-0.4.25.tgz",
617
+ "integrity": "sha512-AkUZfz5kixRZ2QEMuILbsKF+yWBeDlOBoaJCsVKKOn9sYblXR0UNWikNltbQ+uuSNhbfpPMN0Qony3rL5LS/jw==",
617
618
  "license": "MIT",
618
619
  "dependencies": {
619
620
  "typebox": "1.4.7"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humain/humain-code",
3
- "version": "0.8.4",
3
+ "version": "0.8.7",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "humainTerminalConfig": {
@@ -17,6 +17,7 @@
17
17
  "configDir": ".humain-terminal"
18
18
  },
19
19
  "bin": {
20
+ "forge-build-token": "dist/forge-build-token.js",
20
21
  "humain-code": "dist/bundle/cli.js",
21
22
  "humain-code-cli": "dist/bundle/cli.js",
22
23
  "ht": "dist/bundle/cli.js",
@@ -86,7 +87,7 @@
86
87
  "prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
87
88
  },
88
89
  "dependencies": {
89
- "@humain/humain-code-contracts": "0.4.23",
90
+ "@humain/humain-code-contracts": "0.4.25",
90
91
  "@aws-sdk/client-bedrock-runtime": "3.1179.0",
91
92
  "@aws-sdk/client-cloudwatch": "3.1179.0",
92
93
  "@earendil-works/pi-agent-core": "1.7.0",
@@ -199,6 +199,14 @@
199
199
  "$ref": "#/$defs/KeybindingValue",
200
200
  "description": "Scroll viewport to bottom"
201
201
  },
202
+ "app.sidebar.toggle": {
203
+ "$ref": "#/$defs/KeybindingValue",
204
+ "description": "Toggle sidebar"
205
+ },
206
+ "app.tasks.toggle": {
207
+ "$ref": "#/$defs/KeybindingValue",
208
+ "description": "Toggle checklist overlay"
209
+ },
202
210
  "app.status.toggle": {
203
211
  "$ref": "#/$defs/KeybindingValue",
204
212
  "description": "Toggle status details"
@@ -132,6 +132,20 @@
132
132
  "type": "boolean",
133
133
  "default": false
134
134
  },
135
+ "toolDisplay": {
136
+ "anyOf": [
137
+ {
138
+ "type": "string",
139
+ "const": "default"
140
+ },
141
+ {
142
+ "type": "string",
143
+ "const": "grouped"
144
+ }
145
+ ],
146
+ "description": "Interactive transcript tool display. Grouped display is opt-in and does not change stored or model-facing messages.",
147
+ "default": "default"
148
+ },
135
149
  "checklist": {
136
150
  "type": "object",
137
151
  "properties": {
@@ -145,6 +159,21 @@
145
159
  }
146
160
  }
147
161
  },
162
+ "sidebar": {
163
+ "type": "object",
164
+ "properties": {
165
+ "enabled": {
166
+ "type": "boolean",
167
+ "default": false
168
+ },
169
+ "width": {
170
+ "type": "integer",
171
+ "minimum": 24,
172
+ "maximum": 48,
173
+ "default": 32
174
+ }
175
+ }
176
+ },
148
177
  "theme": {
149
178
  "type": "string"
150
179
  },
@@ -1,8 +1,8 @@
1
1
  # caveman upstream tracking
2
2
 
3
3
  `vendor/skills/caveman/SKILL.md` and `vendor/skills/ultracave/SKILL.md` come from
4
- [`JuliusBrussee/caveman`](https://github.com/JuliusBrussee/caveman) at tag `v5.0.0`, peeled commit
5
- `4df9715b97f1e7bfb2d5ca8a25a3a4526a8f977e`. Per the upstream `LICENSING.md`,
4
+ [`JuliusBrussee/caveman`](https://github.com/JuliusBrussee/caveman) at tag `v5.1.0`, peeled commit
5
+ `35c0b3066f039a5e49f07faec2585270da15e37f`. Per the upstream `LICENSING.md`,
6
6
  everything in the repository from 3.0.0 on is Apache License 2.0, so the files
7
7
  are used under Apache-2.0. Contributions made before 3.0.0 to the formerly MIT
8
8
  parts (which include the skill) also remain available under MIT, so `vendor/`
@@ -14,6 +14,18 @@ The vendored files are byte-identical to the pinned commit; `upstream.json`
14
14
  records their SHA-256 (`vendoredSha256`) and `humainPatches` is empty.
15
15
  `test/humain-modules-upstream.test.ts` checks the hashes offline.
16
16
 
17
+ ## 5.1.0 provenance-only refresh (2026-12-01)
18
+
19
+ Verified annotated tag object `10715b5f423f79393c5a4b34730d6ba4b34003e8`
20
+ peels to `35c0b3066f039a5e49f07faec2585270da15e37f`, matching the remote tag.
21
+ The complete scoped diff from v5.0.0 is empty for both bundled skills,
22
+ `LICENSE`, `NOTICE`, `LICENSE-MIT` and `LICENSING.md`. All five vendor files
23
+ match the target Git objects byte-for-byte and retain their SHA-256 pins;
24
+ `humainPatches` remains empty. Apache-2.0 and the retained pre-3.0.0 MIT
25
+ notice still cover both skills. This adopts no runtime or instruction change,
26
+ new mode, installer, hook, proxy or dependency; no upstream code was executed.
27
+ The documented Git-object/hash bump below is the module's sync procedure.
28
+
17
29
  ## 5.0.0 provenance and notice refresh (2026-11-29)
18
30
 
19
31
  The owner approved this refresh and waived the release-age gate for this tag.
@@ -156,7 +168,7 @@ Run `npm run check:modules-upstream` to detect a newer tag or HEAD. To update:
156
168
  repo=$(mktemp -d)/caveman
157
169
  git -c core.hooksPath=/dev/null clone --no-checkout https://github.com/JuliusBrussee/caveman "$repo"
158
170
  read -r -p "Reviewed tag or commit: " target
159
- git -C "$repo" diff --no-ext-diff --no-textconv 4df9715b97f1e7bfb2d5ca8a25a3a4526a8f977e "$target" -- skills/caveman/SKILL.md skills/ultracave/SKILL.md LICENSE NOTICE LICENSE-MIT LICENSING.md
171
+ git -C "$repo" diff --no-ext-diff --no-textconv 35c0b3066f039a5e49f07faec2585270da15e37f "$target" -- skills/caveman/SKILL.md skills/ultracave/SKILL.md LICENSE NOTICE LICENSE-MIT LICENSING.md
160
172
  git -C "$repo" show "$target:LICENSING.md"
161
173
  for path in skills/caveman/SKILL.md skills/ultracave/SKILL.md LICENSE NOTICE LICENSE-MIT; do
162
174
  git -C "$repo" show "$target:$path" | shasum -a 256
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "caveman",
3
3
  "repository": "https://github.com/JuliusBrussee/caveman",
4
- "commit": "4df9715b97f1e7bfb2d5ca8a25a3a4526a8f977e",
5
- "upstreamVersion": "5.0.0",
4
+ "commit": "35c0b3066f039a5e49f07faec2585270da15e37f",
5
+ "upstreamVersion": "5.1.0",
6
6
  "license": "Apache-2.0",
7
7
  "vendoredSha256": {
8
8
  "LICENSE": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
@@ -19,6 +19,14 @@ pruning API accepts a `maxMemoryBytes` override for deterministic small-budget
19
19
  tests; it applies until changed or reset by `clearResults()`. `storage.ts`
20
20
  remains listed in `upstream.json` under `humainPatches`.
21
21
 
22
+ The `index.ts` patch also invalidates `/search` selector answers when their
23
+ session ends or its tree is restored. Each command captures the session's
24
+ abort signal and checks it after both selectors, before deleting a held result
25
+ or touching UI. This prevents a delayed Delete from releasing a replacement
26
+ session's hold on the same result. Offline runner regressions are in
27
+ `test/suite/regressions/398-web-access-stale-context.test.ts`; retain these
28
+ guards when refreshing the vendor source.
29
+
22
30
  Run `npm run check:web-access-upstream` to detect a newer npm release. The
23
31
  HUMAIN Code CLI release script runs this check as a blocking preflight so a
24
32
  new upstream release must be reviewed before publishing. Updating requires
@@ -1,23 +0,0 @@
1
- import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
- import{isWSL}from"./chunk-OADQOW67.js";import{Key,KeybindingsManager,TUI_KEYBINDINGS}from"./chunk-H35P7ROY.js";import{Compile}from"./chunk-MHQNLTZR.js";import{typebox_exports}from"./chunk-VEGJT52D.js";import{getAgentDir,stripBom}from"./chunk-CKFLQGJN.js";function areExperimentalFeaturesEnabled(){return process.env.PI_EXPERIMENTAL==="1"}import{existsSync,readFileSync}from"fs";import{join}from"path";var modifiers=["ctrl","shift","alt","super"],baseKeyPattern=`(?:[a-z0-9]|${Object.values(Key).flatMap(value=>typeof value=="string"?[value.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")]:[]).join("|")})`,duplicateModifierPattern=modifiers.map(modifier=>`${modifier}\\+.*${modifier}\\+`).join("|"),KeyIdSchema=typebox_exports.Unsafe(typebox_exports.String({pattern:`^(?!.*(?:${duplicateModifierPattern}))(?:(?:${modifiers.join("|")})\\+){0,4}${baseKeyPattern}$`,description:"Key identifier with optional ctrl, \
3
- shift, alt, or super modifiers."}));function keybindingValueSchema(options){return typebox_exports.Union([KeyIdSchema,typebox_exports.Array(KeyIdSchema)],options)}var KeybindingValueSchema=keybindingValueSchema();function useWindowsKeybindings(platform=process.platform,env=process.env){return platform==="win32"||isWSL(platform,env)}var windowsKeybindings=useWindowsKeybindings(),APP_KEYBINDINGS={"app.status.toggle":{defaultKeys:"alt+s",description:"Toggle status details"},"app.interrupt":{defaultKeys:"escape",description:"Cancel or abort"},"app.clear":{defaultKeys:"ctrl+c",description:"Clear editor"},"app.exit":{defaultKeys:"ctrl+d",description:"Exit when editor is empty"},"app.suspend":{defaultKeys:process.
4
- platform==="win32"?[]:"ctrl+z",description:"Suspend to background"},"app.thinking.cycle":{defaultKeys:"shift+tab",description:"Cycle thinking level"},"app.thinking.save":{defaultKeys:"ctrl+s",description:"Save thinking level"},"app.model.cycleForward":{defaultKeys:"ctrl+p",description:"Cycle to next model"},"app.model.cycleBackward":{defaultKeys:windowsKeybindings?"alt+p":"shift+ctrl+p",description:"Cycle to previous model"},"app.model.select":{defaultKeys:"ctrl+l",description:"Open model select\
5
- or"},"app.tools.expand":{defaultKeys:"ctrl+o",description:"Toggle tool output"},"app.select.upAlternate":{defaultKeys:"k",description:"Alternate up key in Trust and Extension selectors"},"app.select.downAlternate":{defaultKeys:"j",description:"Alternate down key in Trust and Extension selectors"},"app.usage.nextTab":{defaultKeys:["tab","right"],description:"Next usage account"},"app.usage.previousTab":{defaultKeys:["shift+tab","left"],description:"Previous usage account"},"app.usage.showAccounts":{
6
- defaultKeys:"a",description:"Show subscription accounts"},"app.usage.toggleDetails":{defaultKeys:"d",description:"Toggle recent HUMAIN Code requests"},"app.usage.showSession":{defaultKeys:"s",description:"Show session usage"},"app.usage.reset":{defaultKeys:"r",description:"Check or use a saved reset"},"app.usage.billing":{defaultKeys:"b",description:"Open provider billing settings"},"app.usage.refresh":{defaultKeys:"f",description:"Refresh Claude account usage"},"app.usage.reconnect":{defaultKeys:"\
7
- c",description:"Reconnect the selected Claude account"},"app.accounts.reconnect":{defaultKeys:"r",description:"Re-sign in to the selected account"},"app.accounts.remove":{defaultKeys:"d",description:"Review removal of the selected account"},"app.accounts.more":{defaultKeys:"m",description:"Open more actions for the selected account"},"app.checklist.sidebar":{defaultKeys:"alt+t",description:"Toggle checklist sidebar"},"app.thinking.toggle":{defaultKeys:"ctrl+t",description:"Toggle thinking blocks"},
8
- "app.session.toggleNamedFilter":{defaultKeys:"ctrl+n",description:"Toggle named session filter"},"app.editor.external":{defaultKeys:"ctrl+g",description:"Open external editor"},"app.message.copy":{defaultKeys:"ctrl+x",description:"Copy selection or last assistant message"},"app.block.copy":{defaultKeys:"ctrl+alt+c",description:"Choose an assistant fenced block to copy"},"app.message.followUp":{defaultKeys:windowsKeybindings?"ctrl+q":"alt+enter",description:"Queue follow-up message"},"app.message\
9
- .followUpWhileBusy":{defaultKeys:"tab",description:"Queue follow-up while busy (autocomplete takes precedence)"},"app.message.dequeue":{defaultKeys:windowsKeybindings?"alt+q":"alt+up",description:"Restore queued messages"},"app.clipboard.pasteImage":{defaultKeys:windowsKeybindings?["alt+v","ctrl+v"]:"ctrl+v",description:"Paste files on macOS, images, or text from clipboard"},"app.session.new":{defaultKeys:[],description:"Start a new session"},"app.session.tree":{defaultKeys:[],description:"Open \
10
- session tree"},"app.session.fork":{defaultKeys:[],description:"Fork current session"},"app.session.resume":{defaultKeys:[],description:"Resume a session"},"app.tree.foldOrUp":{defaultKeys:process.platform==="darwin"?["alt+left","ctrl+left"]:["ctrl+left","alt+left"],description:"Fold tree branch or move up"},"app.tree.unfoldOrDown":{defaultKeys:process.platform==="darwin"?["alt+right","ctrl+right"]:["ctrl+right","alt+right"],description:"Unfold tree branch or move down"},"app.tree.editLabel":{defaultKeys:"\
11
- shift+l",description:"Edit tree label"},"app.tree.toggleLabelTimestamp":{defaultKeys:"shift+t",description:"Toggle tree label timestamps"},"app.session.togglePath":{defaultKeys:"ctrl+p",description:"Toggle session path display"},"app.session.toggleSort":{defaultKeys:"ctrl+s",description:"Toggle session sort mode"},"app.session.rename":{defaultKeys:"ctrl+r",description:"Rename session"},"app.session.delete":{defaultKeys:"ctrl+d",description:"Delete session"},"app.session.deleteNoninvasive":{defaultKeys:"\
12
- ctrl+backspace",description:"Delete session when query is empty"},"app.models.save":{defaultKeys:"ctrl+s",description:"Save model selection"},"app.models.enableAll":{defaultKeys:"ctrl+a",description:"Enable all models"},"app.models.clearAll":{defaultKeys:"ctrl+x",description:"Clear all models"},"app.models.toggleProvider":{defaultKeys:"ctrl+p",description:"Toggle all models for provider"},"app.models.reorderUp":{defaultKeys:"alt+up",description:"Move model up in order"},"app.models.reorderDown":{
13
- defaultKeys:"alt+down",description:"Move model down in order"},"app.tree.filter.default":{defaultKeys:"ctrl+d",description:"Tree filter: default view"},"app.tree.filter.noTools":{defaultKeys:"ctrl+t",description:"Tree filter: hide tool results"},"app.tree.filter.userOnly":{defaultKeys:"ctrl+u",description:"Tree filter: user messages only"},"app.tree.filter.labeledOnly":{defaultKeys:"ctrl+l",description:"Tree filter: labeled entries only"},"app.tree.filter.all":{defaultKeys:"ctrl+a",description:"\
14
- Tree filter: show all entries"},"app.tree.filter.cycleForward":{defaultKeys:"ctrl+o",description:"Tree filter: cycle forward"},"app.tree.filter.cycleBackward":{defaultKeys:"shift+ctrl+o",description:"Tree filter: cycle backward"}},KEYBINDINGS={...TUI_KEYBINDINGS,"tui.editor.undo":{...TUI_KEYBINDINGS["tui.editor.undo"],defaultKeys:process.platform==="win32"?"ctrl+z":windowsKeybindings?"alt+z":"ctrl+-"},"tui.altScreen.previousPrompt":{...TUI_KEYBINDINGS["tui.altScreen.previousPrompt"],defaultKeys:windowsKeybindings?
15
- "ctrl+up":["ctrl+shift+up","ctrl+up"]},"tui.altScreen.nextPrompt":{...TUI_KEYBINDINGS["tui.altScreen.nextPrompt"],defaultKeys:windowsKeybindings?"ctrl+down":["ctrl+shift+down","ctrl+down"]},"tui.altScreen.search":{...TUI_KEYBINDINGS["tui.altScreen.search"],defaultKeys:windowsKeybindings?"ctrl+f":"ctrl+shift+f"},...APP_KEYBINDINGS},KEYBINDING_NAME_MIGRATIONS={cursorUp:"tui.editor.cursorUp",cursorDown:"tui.editor.cursorDown",cursorLeft:"tui.editor.cursorLeft",cursorRight:"tui.editor.cursorRight",cursorWordLeft:"\
16
- tui.editor.cursorWordLeft",cursorWordRight:"tui.editor.cursorWordRight",cursorLineStart:"tui.editor.cursorLineStart",cursorLineEnd:"tui.editor.cursorLineEnd",jumpForward:"tui.editor.jumpForward",jumpBackward:"tui.editor.jumpBackward",pageUp:"tui.editor.pageUp",pageDown:"tui.editor.pageDown",deleteCharBackward:"tui.editor.deleteCharBackward",deleteCharForward:"tui.editor.deleteCharForward",deleteWordBackward:"tui.editor.deleteWordBackward",deleteWordForward:"tui.editor.deleteWordForward",deleteToLineStart:"\
17
- tui.editor.deleteToLineStart",deleteToLineEnd:"tui.editor.deleteToLineEnd",yank:"tui.editor.yank",yankPop:"tui.editor.yankPop",undo:"tui.editor.undo",newLine:"tui.input.newLine",submit:"tui.input.submit",tab:"tui.input.tab",copy:"tui.input.copy",selectUp:"tui.select.up",selectDown:"tui.select.down",selectPageUp:"tui.select.pageUp",selectPageDown:"tui.select.pageDown",selectConfirm:"tui.select.confirm",selectCancel:"tui.select.cancel",interrupt:"app.interrupt",clear:"app.clear",exit:"app.exit",suspend:"\
18
- app.suspend",cycleThinkingLevel:"app.thinking.cycle",cycleModelForward:"app.model.cycleForward",cycleModelBackward:"app.model.cycleBackward",selectModel:"app.model.select",expandTools:"app.tools.expand",toggleThinking:"app.thinking.toggle",toggleSessionNamedFilter:"app.session.toggleNamedFilter",externalEditor:"app.editor.external",followUp:"app.message.followUp",dequeue:"app.message.dequeue",pasteImage:"app.clipboard.pasteImage",newSession:"app.session.new",tree:"app.session.tree",fork:"app.ses\
19
- sion.fork",resume:"app.session.resume",treeFoldOrUp:"app.tree.foldOrUp",treeUnfoldOrDown:"app.tree.unfoldOrDown",treeEditLabel:"app.tree.editLabel",treeToggleLabelTimestamp:"app.tree.toggleLabelTimestamp",toggleSessionPath:"app.session.togglePath",toggleSessionSort:"app.session.toggleSort",renameSession:"app.session.rename",deleteSession:"app.session.delete",deleteSessionNoninvasive:"app.session.deleteNoninvasive"};function isLegacyKeybindingName(key){return key in KEYBINDING_NAME_MIGRATIONS}var keybindingValueValidator;
20
- function toKeybindingsConfig(value){let config={};for(let[key,binding]of Object.entries(value))key!=="$schema"&&(keybindingValueValidator??=Compile(KeybindingValueSchema),keybindingValueValidator.Check(binding)&&(config[key]=binding));return config}function migrateKeybindingsConfig(rawConfig){let config={},migrated=!1;for(let[key,value]of Object.entries(rawConfig)){let nextKey=isLegacyKeybindingName(key)?KEYBINDING_NAME_MIGRATIONS[key]:key;if(nextKey!==key&&(migrated=!0),key!==nextKey&&Object.hasOwn(
21
- rawConfig,nextKey)){migrated=!0;continue}config[nextKey]=value}return{config:orderKeybindingsConfig(config),migrated}}function orderKeybindingsConfig(config){let ordered={};for(let keybinding of Object.keys(KEYBINDINGS))Object.hasOwn(config,keybinding)&&(ordered[keybinding]=config[keybinding]);let extras=Object.keys(config).filter(key=>!Object.hasOwn(ordered,key)).sort();for(let key of extras)ordered[key]=config[key];return ordered}function loadRawConfig(path){if(existsSync(path))try{let parsed=JSON.
22
- parse(stripBom(readFileSync(path,"utf-8")));return typeof parsed!="object"||parsed===null?void 0:parsed}catch{return}}var KeybindingsManager2=class _KeybindingsManager extends KeybindingsManager{configPath;constructor(userBindings={},configPath){super(KEYBINDINGS,userBindings),this.configPath=configPath}static create(agentDir=getAgentDir()){let configPath=join(agentDir,"keybindings.json"),userBindings=_KeybindingsManager.loadFromFile(configPath);return new _KeybindingsManager(userBindings,configPath)}reload(){
23
- this.configPath&&this.setUserBindings(_KeybindingsManager.loadFromFile(this.configPath))}getEffectiveConfig(){return this.getResolvedBindings()}static loadFromFile(path){let rawConfig=loadRawConfig(path);return rawConfig?toKeybindingsConfig(migrateKeybindingsConfig(rawConfig).config):{}}};function flushStdout(){return new Promise(resolve=>{let finish=error=>{clearTimeout(timer),error||process.stdout.off("error",finish),resolve()},timer=setTimeout(finish,1e3);process.stdout.on("error",finish),process.stdout.write("",finish)})}export{areExperimentalFeaturesEnabled,migrateKeybindingsConfig,KeybindingsManager2 as KeybindingsManager,flushStdout};
@@ -1,4 +0,0 @@
1
- import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
- import{DEFAULT_MAX_AGENT_RETRY_DELAY_MS}from"./chunk-BIC5BSNX.js";var SETTINGS_DEFAULTS={checklist:{enabled:!0,sidebarPinned:!1},transport:"auto",noProgressTimeoutMs:12e4,sessionShareDestination:"auto",steeringMode:"one-at-a-time",followUpMode:"one-at-a-time",compaction:{enabled:!0,reserveTokens:16384,keepRecentTokens:2e4,thresholdPercent:90},branchSummary:{reserveTokens:16384,skipPrompt:!1},retry:{enabled:!0,maxRetries:3,baseDelayMs:2e3,maxAgentDelayMs:DEFAULT_MAX_AGENT_RETRY_DELAY_MS,provider:{maxRetryDelayMs:6e4}},hideThinkingBlock:!1,bashOutputHeadTail:!1,
3
- bashOutputCleanup:!1,quietStartup:!1,defaultProjectTrust:"ask",collapseChangelog:!1,enableInstallTelemetry:!0,enableSkillCommands:!0,terminal:{showImages:!0,imageWidthCells:60,clearOnShrink:!1,showTerminalProgress:!1},images:{autoResize:!0,blockImages:!1},doubleEscapeAction:"tree",treeFilterMode:"default",editorPaddingX:0,outputPad:1,autocompleteMaxVisible:5,markdown:{codeBlockIndent:" ",mermaid:"streaming"},warnings:{anthropicExtraUsage:!0},notices:{cacheMisses:!1,cacheWarming:!1,compactionCosts:!1,
4
- reasoningDrops:!1},codemode:{mode:"on",inlineBudget:3e3,flowImplementer:"only"},cacheWarming:"streaming",tuiMode:"fullscreen",fullscreenExitOutput:"transcript",fullscreenScrollbar:"auto",fullscreenCopyOnSelect:!0,fullscreenWheelScrollLines:"auto"};export{SETTINGS_DEFAULTS};
@@ -1,2 +0,0 @@
1
- import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
- import{runAgentMonitorCommand}from"./chunk-HRNYDRL7.js";import"./chunk-625QJSFJ.js";import"./chunk-T7F2TEIS.js";import"./chunk-II5C7G67.js";import"./chunk-NPVRWPGX.js";import"./chunk-B47PNNLL.js";import"./chunk-PPGSQZZF.js";import"./chunk-MHQNLTZR.js";import"./chunk-QESIDBMW.js";import"./chunk-VEGJT52D.js";import"./chunk-CKFLQGJN.js";import"./chunk-JXWJOIH4.js";export{runAgentMonitorCommand};
@@ -1,5 +0,0 @@
1
- import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
- import{InteractiveMode,createInteractiveTui,createInteractiveTuiReference,formatCrashExtensionHint,formatResumeCommand}from"./chunk-HWXQCJDP.js";import"./chunk-O44A4E4K.js";import"./chunk-AER66CNP.js";import"./chunk-UOSJTMCL.js";import"./chunk-4BNDLR6C.js";import"./chunk-73YX5XGR.js";import"./chunk-7YB3HRRN.js";import"./chunk-BNZZJ4LO.js";import"./chunk-MLOUZAVZ.js";import"./chunk-OTVHRZ67.js";import"./chunk-XGSJX23G.js";import"./chunk-B3FT6L6S.js";
3
- import"./chunk-D4UCXXDP.js";import"./chunk-MAEKQSFU.js";import"./chunk-SOE25WIS.js";import"./chunk-J64VNQ6D.js";import"./chunk-SZZ5PNP6.js";import"./chunk-IWZQ25I3.js";import"./chunk-QZWUXGY7.js";import"./chunk-GMPJWLZS.js";import"./chunk-7DIRHF4H.js";import"./chunk-PYX6ZCC7.js";import"./chunk-HWFAAGYK.js";import"./chunk-XGOJCV6Z.js";import"./chunk-MXF3KYLZ.js";import"./chunk-FLWO3H5J.js";import"./chunk-OADQOW67.js";
4
- import"./chunk-4SL6URR3.js";import"./chunk-RP6MWUAP.js";import"./chunk-H35P7ROY.js";import"./chunk-XQRYOCHA.js";import"./chunk-F6ZAYLU2.js";import"./chunk-DNGJMRJW.js";import"./chunk-7H2WNBX7.js";import"./chunk-CIA6V3BP.js";import"./chunk-F74XLJPC.js";import"./chunk-QZXLTW7V.js";import"./chunk-BIC5BSNX.js";import"./chunk-ZTG5OKI7.js";import"./chunk-ZG74NES2.js";import"./chunk-KJ3QRSSY.js";import"./chunk-IYGHKVUG.js";
5
- import"./chunk-FACBDLFU.js";import"./chunk-LYZ37DJP.js";import"./chunk-AQ4EXORZ.js";import"./chunk-MZRTVX7F.js";import"./chunk-K5EFEIFP.js";import"./chunk-T7F2TEIS.js";import"./chunk-II5C7G67.js";import"./chunk-PPGSQZZF.js";import"./chunk-MHQNLTZR.js";import"./chunk-QESIDBMW.js";import"./chunk-VEGJT52D.js";import"./chunk-CKFLQGJN.js";import"./chunk-JXWJOIH4.js";export{InteractiveMode,createInteractiveTui,createInteractiveTuiReference,formatCrashExtensionHint,formatResumeCommand};