@humain/humain-code 0.5.3 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +180 -0
- package/README.md +2 -2
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-FGFIMZUF.js +66 -0
- package/dist/bundle/chunks/azure-openai-responses-6JNTC7KO.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +261 -237
- package/dist/bundle/chunks/chunk-2H3LUS62.js +1966 -0
- package/dist/bundle/chunks/{chunk-GEISZXXH.js → chunk-4ZBGTJJM.js} +1 -1
- package/dist/bundle/chunks/{chunk-QWXPGBAG.js → chunk-5JSLXC2A.js} +1 -1
- package/dist/bundle/chunks/{chunk-L2VKM23Q.js → chunk-6DE7LJKV.js} +21 -21
- package/dist/bundle/chunks/{chunk-V62QBESW.js → chunk-6E6RHNOU.js} +11 -10
- package/dist/bundle/chunks/chunk-7RZ5BS7U.js +2 -0
- package/dist/bundle/chunks/chunk-AHSNQWZU.js +24 -0
- package/dist/bundle/chunks/{chunk-UJLCKIMZ.js → chunk-AOH2O5CP.js} +3469 -3133
- package/dist/bundle/chunks/{chunk-ODJUBJK2.js → chunk-B7NJMF7B.js} +11 -11
- package/dist/bundle/chunks/chunk-BQ3TMEWD.js +7 -0
- package/dist/bundle/chunks/{chunk-KKCMWB63.js → chunk-C6VERWRZ.js} +1 -1
- package/dist/bundle/chunks/{chunk-CN3Q5UNB.js → chunk-CFHOPLW5.js} +658 -574
- package/dist/bundle/chunks/chunk-CVC2GV26.js +1986 -0
- package/dist/bundle/chunks/{chunk-DU6POZ7E.js → chunk-DHW3REC5.js} +1 -1
- package/dist/bundle/chunks/{chunk-UTNHGOFS.js → chunk-EDONIPUJ.js} +38 -38
- package/dist/bundle/chunks/{chunk-FO2NYB6O.js → chunk-FDGW5ZTG.js} +1147 -1110
- package/dist/bundle/chunks/{chunk-XQX7S3GM.js → chunk-GICL5V54.js} +1 -1
- package/dist/bundle/chunks/chunk-H7Y4QY7K.js +11 -0
- package/dist/bundle/chunks/chunk-HW6HMUXS.js +188 -0
- package/dist/bundle/chunks/chunk-I6AQOITY.js +53 -0
- package/dist/bundle/chunks/{chunk-ZI7TK7HM.js → chunk-IADQJFNH.js} +21 -17
- package/dist/bundle/chunks/chunk-J7AP2BUJ.js +3 -0
- package/dist/bundle/chunks/chunk-JFE52VSN.js +120 -0
- package/dist/bundle/chunks/{chunk-MIJHJNNQ.js → chunk-LDGCU6PD.js} +127 -3
- package/dist/bundle/chunks/{chunk-PS7DGA7B.js → chunk-M4CHQBAI.js} +1 -1
- package/dist/bundle/chunks/{chunk-YDBNMIA3.js → chunk-NN53K2QQ.js} +19 -1
- package/dist/bundle/chunks/{chunk-RTXDU3AA.js → chunk-ONR6Q3II.js} +255 -195
- package/dist/bundle/chunks/{chunk-Y3OPKKDR.js → chunk-P4P7OZ7R.js} +34 -32
- package/dist/bundle/chunks/{chunk-OZNC2W4B.js → chunk-PCTLFSQG.js} +444 -411
- package/dist/bundle/chunks/{chunk-YFBDR4IW.js → chunk-PNGNZXOI.js} +3 -3
- package/dist/bundle/chunks/{chunk-UDB6NI4G.js → chunk-RGUZULEE.js} +593 -481
- package/dist/bundle/chunks/chunk-RO5YPAJH.js +23 -0
- package/dist/bundle/chunks/{chunk-A6B2QMA7.js → chunk-RU7ADKA7.js} +176 -162
- package/dist/bundle/chunks/{chunk-JCXXRCP6.js → chunk-T3KDZFM4.js} +16 -16
- package/dist/bundle/chunks/{chunk-HT5YN3LX.js → chunk-TEOMXMW6.js} +3 -3
- package/dist/bundle/chunks/{chunk-HIZWUSPN.js → chunk-VEGJT52D.js} +77 -77
- package/dist/bundle/chunks/{chunk-IDU5BNNI.js → chunk-XMZGB3H4.js} +12 -3
- package/dist/bundle/chunks/chunk-YEPHPMQC.js +647 -0
- package/dist/bundle/chunks/{chunk-XA7CJAYH.js → chunk-YRUIJ5AH.js} +48 -42
- package/dist/bundle/chunks/{cli-ENEFJH2B.js → cli-BNCWK54K.js} +21 -17
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-T7TPP7SQ.js → cloudflare-workers-ai-system-one-KI6W3USX.js} +1 -1
- package/dist/bundle/chunks/codemode-worker.js +81 -75
- package/dist/bundle/chunks/compat-I5VPOXFT.js +13 -0
- package/dist/bundle/chunks/dist-J5IUPLMH.js +37 -0
- package/dist/bundle/chunks/{dist-RKNCFFGM.js → dist-SKBR3C7C.js} +720 -696
- package/dist/bundle/chunks/dist-TVRQXUY6.js +8 -0
- package/dist/bundle/chunks/{dist-cjs-HTASUQXQ.js → dist-cjs-2SKN226B.js} +77 -77
- package/dist/bundle/chunks/{easter-egg-3d-YOPLCOVW.js → easter-egg-3d-673VRP6Y.js} +1 -1
- package/dist/bundle/chunks/{esm-R6HJ4QEG.js → esm-WPALMLUO.js} +3 -3
- package/dist/bundle/chunks/{event-streams-BR2IL6C5.js → event-streams-7YGFEPBZ.js} +1 -1
- package/dist/bundle/chunks/{execute-2JXEKQ2X.js → execute-PIUR5MUV.js} +23 -23
- package/dist/bundle/chunks/{extract-OTCGZGTL.js → extract-4O5Z5725.js} +74 -71
- package/dist/bundle/chunks/github-copilot.js +50 -51
- package/dist/bundle/chunks/google-generative-ai-635YZEHN.js +22 -0
- package/dist/bundle/chunks/google-vertex-I3ZJ3SB2.js +26 -0
- package/dist/bundle/chunks/host-OQOEIWHK.js +2 -0
- package/dist/bundle/chunks/image-resize-worker.js +3 -2
- package/dist/bundle/chunks/kimi-coding.js +13 -14
- package/dist/bundle/chunks/{llama-cpp-classify-B3G57LVR.js → llama-cpp-classify-PP63BYDF.js} +1 -1
- package/dist/bundle/chunks/meta.js +10 -10
- package/dist/bundle/chunks/mistral-conversations-OKG5GKXR.js +42 -0
- package/dist/bundle/chunks/{node-VSA4ZN7D.js → node-UGQUSQE6.js} +1 -1
- package/dist/bundle/chunks/{node-SJPZTR4K.js → node-UNHECG4X.js} +168 -157
- package/dist/bundle/chunks/openai-codex-responses-6JYZIFT4.js +100 -0
- package/dist/bundle/chunks/openai-completions-YBNI6CAP.js +82 -0
- package/dist/bundle/chunks/{openai-decisions-WOWUC65P.js → openai-decisions-5G5YBFRQ.js} +1 -1
- package/dist/bundle/chunks/openai-responses-C3APJ6MK.js +27 -0
- package/dist/bundle/chunks/{openrouter-images-5K47HDAT.js → openrouter-images-FCJT7C7I.js} +2 -2
- package/dist/bundle/chunks/{pdfjs-EK6K7CXX.js → pdfjs-AKD6EBKN.js} +196 -175
- package/dist/bundle/chunks/pdfjs-decoders-OFXX4HDZ.js +2 -0
- package/dist/bundle/chunks/pdfjs-jbig2-TXR26KRI.js +278 -0
- package/dist/bundle/chunks/pdfjs-jbig2_nowasm_fallback-FH3KJM4H.js +326 -0
- package/dist/bundle/chunks/pdfjs-openjpeg-SKR7C34X.js +671 -0
- package/dist/bundle/chunks/pdfjs-openjpeg_nowasm_fallback-VUBL7UEE.js +974 -0
- package/dist/bundle/chunks/pi-messages-UHYZYEOC.js +25 -0
- package/dist/bundle/chunks/radius.js +8 -8
- package/dist/bundle/chunks/{runtime-K3F2QDQP.js → runtime-KE3HDSRT.js} +1 -1
- package/dist/bundle/chunks/{turndown.cjs-U7XOXH4O.js → turndown.cjs-WKGZX7NZ.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-43OCHGKP.js → typesafe-system-one-VYVAMWQV.js} +1 -1
- package/dist/bundle/chunks/{undici-EK3EUI2E.js → undici-C6S56CGI.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-KDUZIB3W.js +23 -0
- package/dist/bundle/cli-runtime.js +3 -3
- package/dist/bundle/flow/package.json +5 -5
- package/dist/bundle/index.js +10 -10
- package/dist/bundle/rpc-entry.js +3 -3
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +9 -8
- package/dist/cli/args.js.map +1 -1
- package/dist/config.d.ts +12 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +29 -5
- package/dist/config.js.map +1 -1
- package/dist/coordination/adapter/tool.d.ts +8 -5
- package/dist/coordination/adapter/tool.d.ts.map +1 -1
- package/dist/coordination/adapter/tool.js +32 -6
- package/dist/coordination/adapter/tool.js.map +1 -1
- package/dist/coordination/client/client.d.ts.map +1 -1
- package/dist/coordination/client/client.js +19 -1
- package/dist/coordination/client/client.js.map +1 -1
- package/dist/core/agent-session-runtime.js +3 -3
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session.d.ts +23 -3
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +142 -39
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/anthropic-subscription-usage.d.ts +4 -0
- package/dist/core/anthropic-subscription-usage.d.ts.map +1 -1
- package/dist/core/anthropic-subscription-usage.js +71 -1
- package/dist/core/anthropic-subscription-usage.js.map +1 -1
- package/dist/core/bug-report.d.ts +4 -4
- package/dist/core/codex-reset.d.ts +45 -0
- package/dist/core/codex-reset.d.ts.map +1 -0
- package/dist/core/codex-reset.js +190 -0
- package/dist/core/codex-reset.js.map +1 -0
- package/dist/core/codex-usage.d.ts +4 -2
- package/dist/core/codex-usage.d.ts.map +1 -1
- package/dist/core/codex-usage.js +9 -4
- package/dist/core/codex-usage.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +3 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +25 -10
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +37 -3
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +274 -65
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts +19 -6
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +49 -11
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/exec.d.ts +9 -1
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +105 -61
- package/dist/core/exec.js.map +1 -1
- package/dist/core/export-html/template.css +9 -0
- package/dist/core/export-html/template.html +2 -0
- package/dist/core/export-html/template.js +200 -62
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/dist/core/export-html/tool-renderer.js +3 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +7 -6
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/pi-ai-extension-view.d.ts +19 -0
- package/dist/core/extensions/pi-ai-extension-view.d.ts.map +1 -0
- package/dist/core/extensions/pi-ai-extension-view.js +22 -0
- package/dist/core/extensions/pi-ai-extension-view.js.map +1 -0
- package/dist/core/extensions/types.d.ts +27 -4
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/virtual-modules.js +8 -7
- package/dist/core/extensions/virtual-modules.js.map +1 -1
- package/dist/core/http-dispatcher.d.ts +7 -0
- package/dist/core/http-dispatcher.d.ts.map +1 -1
- package/dist/core/http-dispatcher.js +107 -0
- package/dist/core/http-dispatcher.js.map +1 -1
- package/dist/core/keybindings.d.ts +56 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +14 -2
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +9 -4
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +15 -5
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/model-config.d.ts +1691 -2042
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +2 -3
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-registry.d.ts +35 -4
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +70 -8
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +16 -10
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +21 -17
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts +29 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +311 -60
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +164 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -0
- package/dist/core/pi-ai-schemas.js +21 -0
- package/dist/core/pi-ai-schemas.js.map +1 -0
- package/dist/core/pi-manifest.d.ts +1 -0
- package/dist/core/pi-manifest.d.ts.map +1 -1
- package/dist/core/pi-manifest.js +4 -0
- package/dist/core/pi-manifest.js.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/resource-loader.d.ts +4 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +38 -23
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +4 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +7 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +66 -26
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +2 -0
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +2 -0
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +19 -8
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +70 -16
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +15 -2
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +37 -3
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +6 -14
- package/dist/core/skills.js.map +1 -1
- package/dist/core/slash-commands.js +2 -2
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/source-info.d.ts +9 -0
- package/dist/core/source-info.d.ts.map +1 -1
- package/dist/core/source-info.js +13 -0
- package/dist/core/source-info.js.map +1 -1
- package/dist/core/subscription-credits.d.ts +14 -0
- package/dist/core/subscription-credits.d.ts.map +1 -0
- package/dist/core/subscription-credits.js +10 -0
- package/dist/core/subscription-credits.js.map +1 -0
- package/dist/core/subscription-reset-status.d.ts +10 -0
- package/dist/core/subscription-reset-status.d.ts.map +1 -0
- package/dist/core/subscription-reset-status.js +2 -0
- package/dist/core/subscription-reset-status.js.map +1 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +5 -6
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash.d.ts +2 -2
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit.d.ts +3 -3
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +2 -4
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/find.d.ts +2 -2
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts +2 -2
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +7 -3
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/ls.d.ts +2 -2
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/read.d.ts +2 -2
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +4 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +42 -12
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/edit.d.ts.map +1 -1
- package/dist/core/tools/renderers/edit.js +3 -3
- package/dist/core/tools/renderers/edit.js.map +1 -1
- package/dist/core/tools/renderers/write.d.ts.map +1 -1
- package/dist/core/tools/renderers/write.js +37 -29
- package/dist/core/tools/renderers/write.js.map +1 -1
- package/dist/core/tools/subagent.d.ts +9 -8
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +8 -5
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts +11 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
- package/dist/core/tools/write.d.ts +2 -2
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +14 -8
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +2 -0
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +17 -9
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +2 -1
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +33 -8
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/ui.d.ts.map +1 -1
- package/dist/extensions/llama/ui.js +16 -4
- package/dist/extensions/llama/ui.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +34 -8
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/index.js +4 -3
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/oauth.d.ts +1 -1
- package/dist/extensions/mcp/oauth.d.ts.map +1 -1
- package/dist/extensions/mcp/oauth.js +7 -3
- package/dist/extensions/mcp/oauth.js.map +1 -1
- package/dist/extensions/mcp/ui.d.ts +1 -0
- package/dist/extensions/mcp/ui.d.ts.map +1 -1
- package/dist/extensions/mcp/ui.js +56 -28
- package/dist/extensions/mcp/ui.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts +21 -6
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +104 -36
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/extensions/usage/confirmation.d.ts +40 -0
- package/dist/extensions/usage/confirmation.d.ts.map +1 -0
- package/dist/extensions/usage/confirmation.js +198 -0
- package/dist/extensions/usage/confirmation.js.map +1 -0
- package/dist/extensions/usage/index.d.ts +4 -4
- package/dist/extensions/usage/index.d.ts.map +1 -1
- package/dist/extensions/usage/index.js +352 -33
- package/dist/extensions/usage/index.js.map +1 -1
- package/dist/extensions/usage/overview.d.ts +8 -1
- package/dist/extensions/usage/overview.d.ts.map +1 -1
- package/dist/extensions/usage/overview.js +54 -11
- package/dist/extensions/usage/overview.js.map +1 -1
- package/dist/extensions/usage/popup.d.ts +37 -6
- package/dist/extensions/usage/popup.d.ts.map +1 -1
- package/dist/extensions/usage/popup.js +396 -45
- package/dist/extensions/usage/popup.js.map +1 -1
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +564 -130
- package/dist/humain/node-provider.d.ts.map +1 -1
- package/dist/humain/node-provider.js +1 -0
- package/dist/humain/node-provider.js.map +1 -1
- package/dist/humain/web-access/host.d.ts +2 -1
- package/dist/humain/web-access/host.d.ts.map +1 -1
- package/dist/humain/web-access/host.js +1 -1
- package/dist/humain/web-access/host.js.map +1 -1
- package/dist/humain/web-access/vendor/brave-rate-limit.d.ts +2 -0
- package/dist/humain/web-access/vendor/brave-rate-limit.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/brave-rate-limit.js +2 -2
- package/dist/humain/web-access/vendor/brave-rate-limit.js.map +1 -1
- package/dist/humain/web-access/vendor/cloudflare-search.d.ts +5 -0
- package/dist/humain/web-access/vendor/cloudflare-search.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/cloudflare-search.js +230 -0
- package/dist/humain/web-access/vendor/cloudflare-search.js.map +1 -0
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +18 -1
- package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.js +12 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.d.ts +33 -0
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.js +84 -0
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.js.map +1 -0
- package/dist/humain/web-access/vendor/duckduckgo.d.ts +3 -0
- package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.js +54 -49
- package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
- package/dist/humain/web-access/vendor/exa.d.ts +8 -3
- package/dist/humain/web-access/vendor/exa.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/exa.js +129 -14
- package/dist/humain/web-access/vendor/exa.js.map +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +68 -10
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.d.ts +2 -1
- package/dist/humain/web-access/vendor/fetch-params.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.js +2 -2
- package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
- package/dist/humain/web-access/vendor/field-extract.d.ts +38 -0
- package/dist/humain/web-access/vendor/field-extract.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/field-extract.js +350 -0
- package/dist/humain/web-access/vendor/field-extract.js.map +1 -0
- package/dist/humain/web-access/vendor/gemini-search.d.ts +15 -4
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +198 -16
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/github-api.js +1 -1
- package/dist/humain/web-access/vendor/github-api.js.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.js +3 -2
- package/dist/humain/web-access/vendor/github-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +137 -118
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/mistral-search.js +1 -1
- package/dist/humain/web-access/vendor/mistral-search.js.map +1 -1
- package/dist/humain/web-access/vendor/ninerouter.d.ts +4 -0
- package/dist/humain/web-access/vendor/ninerouter.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/ninerouter.js +110 -0
- package/dist/humain/web-access/vendor/ninerouter.js.map +1 -0
- package/dist/humain/web-access/vendor/offtopic-judge.d.ts +27 -0
- package/dist/humain/web-access/vendor/offtopic-judge.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/offtopic-judge.js +61 -0
- package/dist/humain/web-access/vendor/offtopic-judge.js.map +1 -0
- package/dist/humain/web-access/vendor/openai-search.d.ts +1 -1
- package/dist/humain/web-access/vendor/openai-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/openai-search.js +39 -13
- package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
- package/dist/humain/web-access/vendor/outcrawl.d.ts +4 -0
- package/dist/humain/web-access/vendor/outcrawl.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/outcrawl.js +196 -0
- package/dist/humain/web-access/vendor/outcrawl.js.map +1 -0
- package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/page-query.js +13 -3
- package/dist/humain/web-access/vendor/page-query.js.map +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.d.ts +1 -3
- package/dist/humain/web-access/vendor/pdf-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.js +0 -2
- package/dist/humain/web-access/vendor/pdf-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.d.ts +3 -0
- package/dist/humain/web-access/vendor/perplexity.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.js.map +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.d.ts +2 -2
- package/dist/humain/web-access/vendor/query-rewrite.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.js +39 -13
- package/dist/humain/web-access/vendor/query-rewrite.js.map +1 -1
- package/dist/humain/web-access/vendor/searchapi.d.ts +4 -0
- package/dist/humain/web-access/vendor/searchapi.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/searchapi.js +195 -0
- package/dist/humain/web-access/vendor/searchapi.js.map +1 -0
- package/dist/humain/web-access/vendor/sofya.d.ts +4 -0
- package/dist/humain/web-access/vendor/sofya.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/sofya.js +193 -0
- package/dist/humain/web-access/vendor/sofya.js.map +1 -0
- package/dist/humain/web-access/vendor/source-check.d.ts +5 -1
- package/dist/humain/web-access/vendor/source-check.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/source-check.js +34 -16
- package/dist/humain/web-access/vendor/source-check.js.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts +7 -0
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js +24 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
- package/dist/humain/web-access/vendor/summary-model-scope.d.ts +8 -3
- package/dist/humain/web-access/vendor/summary-model-scope.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/summary-model-scope.js +15 -1
- package/dist/humain/web-access/vendor/summary-model-scope.js.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.d.ts +7 -2
- package/dist/humain/web-access/vendor/summary-review.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.js +32 -28
- package/dist/humain/web-access/vendor/summary-review.js.map +1 -1
- package/dist/humain/web-access/vendor/tabstack.d.ts +6 -0
- package/dist/humain/web-access/vendor/tabstack.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/tabstack.js +236 -0
- package/dist/humain/web-access/vendor/tabstack.js.map +1 -0
- package/dist/humain/web-access/vendor/tool-arguments.js +1 -1
- package/dist/humain/web-access/vendor/tool-arguments.js.map +1 -1
- package/dist/humain/web-access/vendor/upgrade-notice.d.ts +8 -0
- package/dist/humain/web-access/vendor/upgrade-notice.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/upgrade-notice.js +46 -0
- package/dist/humain/web-access/vendor/upgrade-notice.js.map +1 -0
- package/dist/humain/web-access/vendor/utils.d.ts +9 -0
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +113 -27
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-contract.d.ts +4 -0
- package/dist/humain/web-access/vendor/web-tool-contract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-contract.js.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts +17 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.js +99 -22
- package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
- package/dist/humain/web-access/vendor/xai-search.d.ts +1 -1
- package/dist/humain/web-access/vendor/xai-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/xai-search.js +6 -5
- package/dist/humain/web-access/vendor/xai-search.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +20 -9
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-code-block.d.ts +34 -0
- package/dist/modes/interactive/components/assistant-code-block.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-code-block.js +160 -0
- package/dist/modes/interactive/components/assistant-code-block.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +31 -10
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +276 -73
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +2 -1
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +4 -17
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +7 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js +2 -1
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +2 -1
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/diff.d.ts.map +1 -1
- package/dist/modes/interactive/components/diff.js +3 -1
- package/dist/modes/interactive/components/diff.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +2 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-editor.js +4 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +4 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +6 -5
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +5 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +107 -11
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/markdown-transform.d.ts +2 -1
- package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -1
- package/dist/modes/interactive/components/markdown-transform.js +3 -2
- package/dist/modes/interactive/components/markdown-transform.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +18 -6
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +17 -6
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +13 -4
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +14 -3
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts +4 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.js +86 -22
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +2 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +16 -24
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.js +2 -0
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +2 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +15 -5
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +5 -6
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message-selector.js +9 -1
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts +4 -3
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +20 -18
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/external-editor.d.ts +1 -0
- package/dist/modes/interactive/external-editor.d.ts.map +1 -1
- package/dist/modes/interactive/external-editor.js +16 -4
- package/dist/modes/interactive/external-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +6 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +259 -83
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/model-search.d.ts +10 -0
- package/dist/modes/interactive/model-search.d.ts.map +1 -1
- package/dist/modes/interactive/model-search.js +21 -0
- package/dist/modes/interactive/model-search.js.map +1 -1
- package/dist/modes/interactive/oauth-account-format.d.ts +10 -1
- package/dist/modes/interactive/oauth-account-format.d.ts.map +1 -1
- package/dist/modes/interactive/oauth-account-format.js +42 -0
- package/dist/modes/interactive/oauth-account-format.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts +10 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +28 -24
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +3 -2
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +55 -4
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/ansi.d.ts.map +1 -1
- package/dist/utils/ansi.js +5 -2
- package/dist/utils/ansi.js.map +1 -1
- package/dist/utils/clipboard-command.d.ts.map +1 -1
- package/dist/utils/clipboard-command.js +4 -0
- package/dist/utils/clipboard-command.js.map +1 -1
- package/dist/utils/clipboard-image.d.ts +8 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js +31 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/git.d.ts +1 -1
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +5 -3
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/open-browser.d.ts.map +1 -1
- package/dist/utils/open-browser.js +96 -6
- package/dist/utils/open-browser.js.map +1 -1
- package/dist/utils/paths.d.ts +17 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +42 -1
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/shell.d.ts +2 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +12 -2
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +5 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +156 -11
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +30 -35
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/assets/humain-code-logo.svg +8 -0
- package/docs/cli.md +22 -12
- package/docs/compaction.md +32 -8
- package/docs/coordination.md +2 -0
- package/docs/custom-provider.md +4 -2
- package/docs/environment-variables.md +2 -0
- package/docs/extensions.md +3169 -229
- package/docs/flow.md +2 -0
- package/docs/keybindings.md +24 -2
- package/docs/llama-cpp.md +30 -19
- package/docs/mcp.md +4 -2
- package/docs/message-types.md +7 -7
- package/docs/packages.md +27 -1
- package/docs/sessions.md +11 -3
- package/docs/settings.md +21 -9
- package/docs/slash-commands.md +51 -11
- package/docs/terminal-setup.md +3 -1
- package/docs/tmux.md +6 -0
- package/docs/tui.md +3 -1
- package/docs/windows.md +27 -0
- package/examples/extensions/README.md +2 -1
- package/examples/extensions/custom-provider-anthropic/index.ts +27 -31
- package/examples/extensions/custom-provider-anthropic/package-lock.json +7 -7
- package/examples/extensions/custom-provider-anthropic/package.json +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/debug-provider.ts +2 -2
- package/examples/extensions/gondolin/package-lock.json +14 -24
- package/examples/extensions/gondolin/package.json +2 -2
- package/examples/extensions/preset.ts +2 -0
- package/examples/extensions/reload-runtime.ts +17 -5
- package/examples/extensions/todo.ts +7 -0
- package/examples/extensions/tools.ts +2 -0
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/tsconfig.json +252 -0
- package/npm-shrinkwrap.json +289 -277
- package/package.json +29 -29
- package/schemas/keybindings.schema.json +28 -0
- package/schemas/models.schema.json +36 -36
- package/schemas/settings.schema.json +49 -0
- package/src/humain/ponytail/UPSTREAM.md +16 -2
- package/src/humain/ponytail/upstream.json +4 -4
- package/src/humain/web-access/UPSTREAM.md +48 -1
- package/src/humain/web-access/upstream.json +9 -6
- package/src/humain/web-access/vendor/CHANGELOG.md +1223 -0
- package/dist/bundle/chunks/anthropic-messages-ZP5KUK52.js +0 -67
- package/dist/bundle/chunks/azure-openai-responses-QJFYQ3DF.js +0 -15
- package/dist/bundle/chunks/chunk-2GCMACT4.js +0 -1956
- package/dist/bundle/chunks/chunk-AO6FF5JL.js +0 -21
- package/dist/bundle/chunks/chunk-EY3LZOUP.js +0 -1963
- package/dist/bundle/chunks/chunk-M74U5X4S.js +0 -119
- package/dist/bundle/chunks/chunk-N7CQ3UV3.js +0 -80
- package/dist/bundle/chunks/chunk-OR25QDSS.js +0 -365
- package/dist/bundle/chunks/chunk-PH7UP57J.js +0 -6
- package/dist/bundle/chunks/chunk-QW6PTCAB.js +0 -10
- package/dist/bundle/chunks/chunk-ROZV2IYD.js +0 -125
- package/dist/bundle/chunks/chunk-YFOLLX5D.js +0 -23
- package/dist/bundle/chunks/chunk-ZR4GF4WU.js +0 -54
- package/dist/bundle/chunks/compat-CJBWWYHE.js +0 -13
- package/dist/bundle/chunks/dist-IBUWEKEE.js +0 -24
- package/dist/bundle/chunks/dist-YFMJEHPH.js +0 -8
- package/dist/bundle/chunks/google-generative-ai-HVPCGIZ6.js +0 -21
- package/dist/bundle/chunks/google-vertex-UM5MAALA.js +0 -25
- package/dist/bundle/chunks/host-ZHEL5XQW.js +0 -2
- package/dist/bundle/chunks/mistral-conversations-AH72RLXK.js +0 -44
- package/dist/bundle/chunks/openai-codex-responses-L366637C.js +0 -98
- package/dist/bundle/chunks/openai-completions-ZP62QXJX.js +0 -83
- package/dist/bundle/chunks/openai-responses-DXUGSUTN.js +0 -26
- package/dist/bundle/chunks/pi-messages-MOQQDZBK.js +0 -23
- package/dist/bundle/chunks/virtual-modules-5D6QIJPN.js +0 -5
- package/examples/extensions/sandbox/index.ts +0 -321
- package/examples/extensions/sandbox/package-lock.json +0 -66
- package/examples/extensions/sandbox/package.json +0 -19
package/docs/flow.md
CHANGED
|
@@ -63,6 +63,8 @@ Opt-in. `--verify-after`, a profile with `verification: { "mode": "after" }`, or
|
|
|
63
63
|
- `CHECKS FAILING`: the change broke a check. Flow repairs it automatically (at most `limits.repairRounds`, default 2, shown as `FIXING N CHECK(S)`) only while the workspace is still the tree Flow produced, and keeps a repair only when it removes failures and adds none; otherwise it restores the pre-repair tree. Run `/flow fix` to start a new run from the local failing-check report.
|
|
64
64
|
- `NOT VERIFIED · <reason>`: no checks, checks could not run, the verify budget ran out, or the workspace changed during a check batch.
|
|
65
65
|
|
|
66
|
+
Interrupted or failed repair dispatches retain their partial edits: Flow cannot distinguish those writes from concurrent user edits. A completed repair is reverted only while the workspace still matches its checked tree.
|
|
67
|
+
|
|
66
68
|
Verification and repairs share `limits.verifyBudgetMs` (default 15 minutes) from the moment the result is shown. A new `/flow run` supersedes a run that is only verifying. LARGE runs verify inline. Inline runs (the default) emit exactly the same events as before.
|
|
67
69
|
|
|
68
70
|
## Codemode-only implementer
|
package/docs/keybindings.md
CHANGED
|
@@ -12,7 +12,7 @@ Map each action identifier to one key or a list of keys:
|
|
|
12
12
|
|
|
13
13
|
```json
|
|
14
14
|
{
|
|
15
|
-
"$schema": "https://
|
|
15
|
+
"$schema": "https://code.humain.com/schemas/keybindings.schema.json",
|
|
16
16
|
"app.session.new": "ctrl+shift+n",
|
|
17
17
|
"app.session.tree": ["ctrl+shift+t", "alt+shift+t"]
|
|
18
18
|
}
|
|
@@ -98,7 +98,7 @@ The dedicated history actions browse prompt history regardless of cursor positio
|
|
|
98
98
|
|
|
99
99
|
#### Fullscreen
|
|
100
100
|
|
|
101
|
-
In fullscreen mode, these actions control the transcript and take precedence over editor actions using the same key.
|
|
101
|
+
In fullscreen mode, these actions control the transcript and take precedence over editor actions using the same key. While an overlay or a scrollable list such as autocomplete, `/settings`, or the model selector has focus, the scrolling and prompt-jump actions go to it instead of the transcript, so `tui.select.pageUp` and `tui.select.pageDown` move the list selection. Transcript search actions keep working.
|
|
102
102
|
|
|
103
103
|
| Keybinding id | Default | Description |
|
|
104
104
|
|---|---|---|
|
|
@@ -163,10 +163,13 @@ On native Windows, `app.suspend` has no default because Windows terminals do not
|
|
|
163
163
|
|--------|---------|-------------|
|
|
164
164
|
| `app.tools.expand` | `ctrl+o` | Collapse or expand tool output |
|
|
165
165
|
| `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 |
|
|
166
|
+
| `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. |
|
|
166
167
|
| `app.message.followUp` | `alt+enter` (`ctrl+q` on Windows and WSL) | Queue follow-up message; submit normally when idle |
|
|
167
168
|
| `app.message.followUpWhileBusy` | `tab` | Queue a non-empty follow-up while busy; visible autocomplete takes precedence |
|
|
168
169
|
| `app.message.dequeue` | `alt+up` (`alt+q` on Windows and WSL) | Restore queued messages to editor |
|
|
169
170
|
|
|
171
|
+
Block copy preserves the original contents, including whitespace and Unicode, without fences or display wrapping. If a Markdown transformer makes the original block source ambiguous, copy fails rather than guessing. `/hotkeys` shows the active binding. Rebind `app.block.copy` if your terminal reserves its shortcut.
|
|
172
|
+
|
|
170
173
|
Follow-ups wait until the current tool and steering loop finishes, rather than steering its next response. With the default bindings, `Tab` accepts a visible autocomplete suggestion first; otherwise it queues a non-empty draft while the agent is working (including compaction). Idle `Tab` retains completion, and empty or whitespace-only drafts never queue.
|
|
171
174
|
|
|
172
175
|
To keep `Tab` exclusively for completion, disable the busy-only action:
|
|
@@ -179,6 +182,25 @@ To keep `Tab` exclusively for completion, disable the busy-only action:
|
|
|
179
182
|
|
|
180
183
|
You can also rebind this action independently of `tui.input.tab` and `app.message.followUp`.
|
|
181
184
|
|
|
185
|
+
### Usage Popup
|
|
186
|
+
|
|
187
|
+
Used inside `/usage`'s full-terminal overlay, independent of extension widgets and input dock height. Accounts is the default when saved Codex or Claude accounts exist; otherwise Session opens.
|
|
188
|
+
|
|
189
|
+
| Keybinding id | Default | Description |
|
|
190
|
+
|--------|---------|-------------|
|
|
191
|
+
| `app.usage.showAccounts` | `a` | Show the saved subscription account list |
|
|
192
|
+
| `app.usage.showSession` | `s` | Show session usage |
|
|
193
|
+
| `app.usage.nextTab` | `tab`, `right` | Select the next account, wrapping at the end |
|
|
194
|
+
| `app.usage.previousTab` | `shift+tab`, `left` | Select the previous account, wrapping at the start |
|
|
195
|
+
| `app.usage.reset` | `r` | Check Codex reset availability, then confirm using one saved reset; open Claude usage settings |
|
|
196
|
+
| `app.usage.billing` | `b` | Open the selected provider's official billing/usage settings |
|
|
197
|
+
|
|
198
|
+
`tui.select.up` / `tui.select.down` select an account in the list. `tui.select.confirm` (Enter) focuses its details; `tui.select.cancel` (Esc) returns to the list, or closes from the list or Session. In focused details or Session, the selection movement and page actions scroll content; the mouse wheel also scrolls. Click an account to select it.
|
|
199
|
+
|
|
200
|
+
Opening or selecting an account never activates it. Codex redemption requires a separate availability check, account-specific confirmation and fresh preflight; it never retries automatically. An uncertain write blocks all Codex reset actions in the current view; check the official page before closing and reopening `/usage`.
|
|
201
|
+
|
|
202
|
+
Reset and browser confirmations are bounded, responsive overlays that default to **Cancel**. Movement/page actions and the mouse wheel scroll the body; all body text must be reviewed before acceptance. `app.usage.nextTab` / `app.usage.previousTab` choose between Cancel and the action; `tui.select.confirm` accepts the selected choice and `tui.select.cancel` cancels. Claude reset and all billing actions show the exact selected-account reminder and destination URL before the explicit **Open usage settings** choice launches the browser. Session shutdown closes usage views and child confirmations and aborts pending requests. See [Usage](slash-commands.md#usage).
|
|
203
|
+
|
|
182
204
|
### Tree Navigation
|
|
183
205
|
|
|
184
206
|
| Keybinding id | Default | Description |
|
package/docs/llama-cpp.md
CHANGED
|
@@ -1,31 +1,42 @@
|
|
|
1
1
|
# Local Models with llama.cpp
|
|
2
2
|
|
|
3
|
-
HUMAIN Code CLI supports the [llama.cpp](https://
|
|
3
|
+
HUMAIN Code CLI supports the [llama.cpp](https://llama.app) router server. The router discovers multiple GGUF models and loads or unloads them on demand.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Install llama.cpp
|
|
6
|
+
|
|
7
|
+
Install llama.cpp with the [official installer](https://llama.app/docs/installation):
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
curl -LsSf https://llama.app/install.sh | sh
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Verify the installation:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
llama cli --version
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
See [llama.app](https://llama.app) for other installation methods, including package managers and building from source.
|
|
6
20
|
|
|
7
21
|
## Start the router
|
|
8
22
|
|
|
9
|
-
Start `llama
|
|
23
|
+
Start `llama serve` without `--model`, `-m`, or `-hf`. Passing a model starts single-model mode instead of router mode. See the [llama.cpp server guide](https://llama.app/docs/serve#serving-multiple-models-router-mode) for router configuration.
|
|
10
24
|
|
|
11
25
|
```bash
|
|
12
|
-
llama
|
|
13
|
-
--models-dir ~/models \
|
|
26
|
+
llama serve \
|
|
14
27
|
--no-models-autoload \
|
|
15
|
-
--jinja \
|
|
16
28
|
--host 127.0.0.1 \
|
|
17
29
|
--port 8080 \
|
|
18
|
-
-ngl
|
|
30
|
+
-ngl all \
|
|
19
31
|
-c 32768
|
|
20
32
|
```
|
|
21
33
|
|
|
22
34
|
Important options:
|
|
23
35
|
|
|
24
|
-
- `--models-dir ~/models` discovers local GGUF files.
|
|
25
36
|
- `--no-models-autoload` keeps loading explicit through `/llama`.
|
|
26
37
|
- `--jinja` enables compatible chat templates and tool calling.
|
|
27
|
-
- `-ngl
|
|
28
|
-
- `-c 32768` sets the context
|
|
38
|
+
- `-ngl all` offloads all layers to the GPU. Omit it to use automatic GPU offloading.
|
|
39
|
+
- `-c 32768` sets the context size in tokens. Use `-c 0` for the model's full context window, which may require substantially more memory. Context is shared across parallel server slots.
|
|
29
40
|
|
|
30
41
|
A single-file model can sit directly in the model directory. Put multimodal and multi-shard models in separate subdirectories:
|
|
31
42
|
|
|
@@ -41,11 +52,11 @@ A single-file model can sit directly in the model directory. Put multimodal and
|
|
|
41
52
|
└── large-model-Q4_K_M-00003-of-00003.gguf
|
|
42
53
|
```
|
|
43
54
|
|
|
44
|
-
Restart the router after manually adding files.
|
|
55
|
+
Restart the router after manually adding files. The router also supports cached models and preset files via `--models-preset`, as described in the [server guide](https://llama.app/docs/serve#serving-multiple-models-router-mode).
|
|
45
56
|
|
|
46
|
-
## Configure
|
|
57
|
+
## Configure HUMAIN Code CLI
|
|
47
58
|
|
|
48
|
-
Start
|
|
59
|
+
Start HUMAIN Code CLI and configure the provider:
|
|
49
60
|
|
|
50
61
|
```text
|
|
51
62
|
/login llama.cpp
|
|
@@ -60,10 +71,10 @@ Environment variables can configure the same values without `/login`:
|
|
|
60
71
|
```bash
|
|
61
72
|
export LLAMA_BASE_URL=http://127.0.0.1:8080
|
|
62
73
|
export LLAMA_API_KEY=optional-secret
|
|
63
|
-
|
|
74
|
+
humain-code
|
|
64
75
|
```
|
|
65
76
|
|
|
66
|
-
If the server uses an API key, start `llama
|
|
77
|
+
If the server uses an API key, start `llama serve` with the matching `--api-key` value. Keep `--host 127.0.0.1` for local-only access.
|
|
67
78
|
|
|
68
79
|
## Manage models
|
|
69
80
|
|
|
@@ -78,9 +89,9 @@ Run:
|
|
|
78
89
|
- Select **Download model…**, search Hugging Face, then choose a repository and quantization. Exact `owner/repository[:quant]` values also work.
|
|
79
90
|
- Press Escape during a load or download to confirm cancellation.
|
|
80
91
|
|
|
81
|
-
Hugging Face search uses `HF_TOKEN` when set, then checks `$HF_TOKEN_PATH`, `$HF_HOME/token`, `$XDG_CACHE_HOME/huggingface/token`, and `~/.cache/huggingface/token`. Search also works without authentication, subject to lower rate limits.
|
|
92
|
+
Hugging Face search uses `HF_TOKEN` when set, then checks `$HF_TOKEN_PATH`, `$HF_HOME/token`, `$XDG_CACHE_HOME/huggingface/token`, and `~/.cache/huggingface/token`. Search also works without authentication, subject to lower rate limits. HUMAIN Code CLI warns before downloading gated repositories and links to their access page. The llama.cpp server performs the download, so its process must also have `HF_TOKEN` when the selected repository requires access.
|
|
82
93
|
|
|
83
|
-
If other models are loaded,
|
|
94
|
+
If other models are loaded, HUMAIN Code CLI asks whether to unload them first or keep them loaded. HUMAIN Code CLI does not silently unload models and never deletes model files. The router may be shared with other clients, so `/llama` always displays the router's current state.
|
|
84
95
|
|
|
85
96
|
Loaded and sleeping models appear in `/model`. Sleeping models wake automatically when selected. With router autoload enabled, unloaded preset models also appear and load when selected. With `--no-models-autoload`, load a model through `/llama` before selecting it.
|
|
86
97
|
|
|
@@ -88,12 +99,12 @@ If the router disconnects, `/llama` shows **Retry** and **Close**. Retry reconne
|
|
|
88
99
|
|
|
89
100
|
## Classification
|
|
90
101
|
|
|
91
|
-
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).
|
|
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:
|
|
92
103
|
|
|
93
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`.
|
|
94
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.
|
|
95
106
|
|
|
96
|
-
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
|
|
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.
|
|
97
108
|
|
|
98
109
|
### Chat models as classifiers
|
|
99
110
|
|
package/docs/mcp.md
CHANGED
|
@@ -126,7 +126,7 @@ Remote servers that use OAuth, such as Sentry, need no credentials in `mcp.json`
|
|
|
126
126
|
|
|
127
127
|
When the server rejects an unauthenticated connection, `/mcp` shows that it needs sign-in. Select "Sign in", run `/mcp login sentry`, or run `humain-code mcp login sentry`. HUMAIN Code CLI opens the authorization page and waits for approval. If the browser runs on another machine, such as over SSH, paste its redirected URL into the sign-in screen. A running session uses the new credentials on its next turn.
|
|
128
128
|
|
|
129
|
-
HUMAIN Code CLI
|
|
129
|
+
HUMAIN Code CLI identifies itself to the authorization server with its Client ID Metadata Document or by registering a client, stores tokens in `~/.humain-terminal/agent/mcp-auth.json`, and refreshes access tokens when they expire or the server rejects them. If a server later requests additional scope, HUMAIN Code CLI asks for sign-in again. Signing out deletes the stored credentials.
|
|
130
130
|
|
|
131
131
|
Credentials belong to a server name and URL. Servers with the same URL under different names, such as one per account, sign in separately; servers with the same name and URL in different `mcp.json` files share one sign-in.
|
|
132
132
|
|
|
@@ -164,11 +164,13 @@ Some authorization servers allow clients by their Client ID Metadata Document UR
|
|
|
164
164
|
```json
|
|
165
165
|
{
|
|
166
166
|
"mcpServers": {
|
|
167
|
-
"example": { "url": "https://mcp.example.com/mcp", "oauth": { "clientRegistration": "
|
|
167
|
+
"example": { "url": "https://mcp.example.com/mcp", "oauth": { "clientRegistration": "dcr" } }
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
+
`humain-code mcp add --oauth-client-registration <mode>` sets the registration method when adding a server.
|
|
173
|
+
|
|
172
174
|
The client ID is `<base>/client.json` with the redirect URI `http://127.0.0.1:<port>/callback`. If the authorization server does not send the `iss` parameter in authorization responses (RFC 9207), HUMAIN Code CLI uses a document and redirect path specific to the MCP server instead: `<base>/<id>/client.json` with `http://127.0.0.1:<port>/callback/<id>`. The authorization server must advertise Client ID Metadata Document support and public clients, or sign-in fails. `cimd` cannot be combined with `clientId` or `clientName`, and a `callbackUrl` must use `localhost` or `127.0.0.1` with the path `/callback`.
|
|
173
175
|
|
|
174
176
|
HUMAIN Code CLI finds the authorization server through the server's protected resource metadata (RFC 9728) and checks that the authorization server's metadata names the expected issuer (RFC 8414). Some servers advertise the wrong authorization server or none, so sign-in opens a page that does not exist. Set `authServerMetadataUrl` to the metadata document of the right authorization server:
|
package/docs/message-types.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Message Types
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
HUMAIN Code CLI uses `AgentMessage` values in SDK state, lifecycle events, RPC responses, and persisted session message entries. This page defines those shared messages and their content blocks.
|
|
4
4
|
|
|
5
5
|
Message timestamps are Unix timestamps in milliseconds. They are different from the ISO 8601 timestamps on [session entries](session-format.md#entry-base).
|
|
6
6
|
|
|
@@ -140,9 +140,9 @@ interface AssistantMessage {
|
|
|
140
140
|
}
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
`responseModel` records
|
|
143
|
+
`responseModel` records the concrete model reported by the provider, when the provider reports one. It may equal the requested model. `responseId`, `providerThinkingLevel`, `thinkingLevel`, `diagnostics`, and `rawStopReason` preserve provider or runtime details.
|
|
144
144
|
|
|
145
|
-
`"pending"` is used for a partial assistant message while it streams. The completed message in `message_end` has a terminal stop reason, and
|
|
145
|
+
`"pending"` is used for a partial assistant message while it streams. The completed message in `message_end` has a terminal stop reason, and HUMAIN Code CLI does not persist `"pending"` assistant messages in session JSONL.
|
|
146
146
|
|
|
147
147
|
A `"deferred"` response has a `DeferredHandle` with the provider data needed to retrieve it:
|
|
148
148
|
|
|
@@ -215,7 +215,7 @@ interface BashExecutionMessage {
|
|
|
215
215
|
}
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
Unless `excludeFromContext` is true,
|
|
218
|
+
Unless `excludeFromContext` is true, HUMAIN Code CLI converts this message to user-role text before the next model request.
|
|
219
219
|
|
|
220
220
|
### CustomMessage
|
|
221
221
|
|
|
@@ -232,7 +232,7 @@ interface CustomMessage<T = unknown> {
|
|
|
232
232
|
}
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
HUMAIN Code CLI converts its content to a user message for model requests. `display` controls terminal rendering; `details` is not sent to the model.
|
|
236
236
|
|
|
237
237
|
### BranchSummaryMessage
|
|
238
238
|
|
|
@@ -245,7 +245,7 @@ interface BranchSummaryMessage {
|
|
|
245
245
|
}
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
HUMAIN Code CLI creates this context message from a persisted `branch_summary` entry.
|
|
249
249
|
|
|
250
250
|
### CompactionSummaryMessage
|
|
251
251
|
|
|
@@ -258,7 +258,7 @@ interface CompactionSummaryMessage {
|
|
|
258
258
|
}
|
|
259
259
|
```
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
HUMAIN Code CLI creates this context message from a persisted `compaction` entry.
|
|
262
262
|
|
|
263
263
|
## AgentMessage union
|
|
264
264
|
|
package/docs/packages.md
CHANGED
|
@@ -16,6 +16,8 @@ humain-code install ./local-package
|
|
|
16
16
|
|
|
17
17
|
`humain-code list` shows configured packages. Use `humain-code remove <source>` to remove one and `humain-code update --extensions` to reconcile package installations. See [Command Line](cli.md#package-commands) for every package command and option.
|
|
18
18
|
|
|
19
|
+
If a configured package fails to install at startup, for example because npm cannot reach the registry, HUMAIN Code CLI warns about it, skips that package's resources, and keeps running. HUMAIN Code CLI tries to install it again on the next start or `/reload`. `humain-code install` and `humain-code update --extensions` still report the failure and exit non-zero.
|
|
20
|
+
|
|
19
21
|
Personal installs are written to `~/.humain-terminal/agent/settings.json`. Add `--local` or `-l` to write the package declaration to `.humain-terminal/settings.json`. HUMAIN Code CLI reads declarations from that file only after project trust is granted.
|
|
20
22
|
|
|
21
23
|
Project packages are installed and loaded only after project trust is resolved. Packages can execute extension code and can include skills that instruct the model to run programs. Review third-party package source before installing it. Review project package declarations before granting project trust.
|
|
@@ -26,6 +28,8 @@ Use `--extension` or `-e` to try a package for one invocation without adding it
|
|
|
26
28
|
humain-code -e npm:@example/pi-tools
|
|
27
29
|
```
|
|
28
30
|
|
|
31
|
+
HUMAIN Code CLI caches `-e` packages under `~/.humain-terminal/agent/tmp/extensions/` and checks them on every start and `/reload`. An npm package is reinstalled when the registry has a newer version that matches the specification. A version pinned to an exact number, such as `@1.2.3`, is not checked. A git package is fetched and reset to the remote branch or ref. A ref that is a commit hash already checked out is not fetched. If the check fails or offline mode is on, HUMAIN Code CLI loads the cached copy.
|
|
32
|
+
|
|
29
33
|
## Choose a source
|
|
30
34
|
|
|
31
35
|
| Source | Example | Behavior |
|
|
@@ -37,6 +41,8 @@ humain-code -e npm:@example/pi-tools
|
|
|
37
41
|
|
|
38
42
|
Versioned npm specifications are pinned. Git tags and commits are also pinned; package updates reconcile the checkout but do not move a configured ref.
|
|
39
43
|
|
|
44
|
+
The HUMAIN Code CLI npm directory (`~/.humain-terminal/agent/npm`, or `.humain-terminal/npm` for project packages) is a package-manager project. Every install, update, and removal reifies it from its `package.json`, so a package placed there without being saved, for example with `npm install --no-save`, is removed together with its dependencies. HUMAIN Code CLI lists the removed packages after the command. To keep another package in that directory, save it as a dependency, for example `npm install --prefix ~/.humain-terminal/agent/npm --save <package>`.
|
|
45
|
+
|
|
40
46
|
Relative local paths resolve from the settings file that contains them. A file path loads one extension. A directory follows normal package discovery rules.
|
|
41
47
|
|
|
42
48
|
## Create a package
|
|
@@ -71,7 +77,27 @@ Use an explicit manifest when resources live elsewhere or need filtering:
|
|
|
71
77
|
|
|
72
78
|
Paths are relative to the package root. Arrays accept glob patterns and exclusions. List dot-prefixed or symlinked resource roots directly when traversal through a glob would not discover them.
|
|
73
79
|
|
|
74
|
-
The `humain-terminal-package` keyword makes an npm package eligible for discovery in the [
|
|
80
|
+
The `humain-terminal-package` keyword makes an npm package eligible for discovery in the [HUMAIN Code CLI package gallery](https://code.humain.com/packages). Optional `humainTerminal.image` and `humainTerminal.video` fields add gallery previews.
|
|
81
|
+
|
|
82
|
+
## Show a changelog
|
|
83
|
+
|
|
84
|
+
After a package update, HUMAIN Code CLI can show what changed. On the next fresh launch, HUMAIN Code CLI reads the package changelog and shows entries newer than the last seen version under "Extension Updates", the same way it shows its own changelog. The first time HUMAIN Code CLI sees a package, it records the version without showing anything.
|
|
85
|
+
|
|
86
|
+
This applies to packages that load at least one extension. Packages that only provide skills, prompt templates, or themes do not show a changelog.
|
|
87
|
+
|
|
88
|
+
By default HUMAIN Code CLI reads `CHANGELOG.md` from the package root. Point `pi.changelogPath` at another file inside the package, or set it to `""` to disable the changelog:
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"name": "my-pi-package",
|
|
93
|
+
"version": "1.2.0",
|
|
94
|
+
"pi": {
|
|
95
|
+
"changelogPath": "./docs/CHANGELOG.md"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Use version headings in the same format as HUMAIN Code CLI's changelog, such as `## [1.2.0]` or `## 1.2.0 - 2026-01-01`. Entries are matched against the `version` field in `package.json`, so a git package only shows a changelog when that field increases. The `collapseChangelog` setting condenses the section to one line per package, such as `Updated my-pi-package to v1.2.0.` Unlike HUMAIN Code CLI's own changelog, `/changelog` does not show package changelogs, so read the package's changelog file or repository for details.
|
|
75
101
|
|
|
76
102
|
## Declare dependencies
|
|
77
103
|
|
package/docs/sessions.md
CHANGED
|
@@ -11,7 +11,17 @@ humain-code --continue
|
|
|
11
11
|
humain-code --resume
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
`--continue` opens the most recent session for the current
|
|
14
|
+
`--continue` opens the most recent session for the current directory. `--resume` opens the session picker. In interactive mode, `/resume` opens the same picker and `/new` starts a new session.
|
|
15
|
+
|
|
16
|
+
Each session records the working directory it was created in and never changes it. HUMAIN Code CLI runs a session in its working directory, so tools, `@path` references, project configuration, and context files resolve from there.
|
|
17
|
+
|
|
18
|
+
| Entry point | Working directory |
|
|
19
|
+
|---|---|
|
|
20
|
+
| `--continue` | The current directory |
|
|
21
|
+
| `--resume`, `/resume`, `--session`, `/import` | The session's working directory, which can differ from the current directory |
|
|
22
|
+
| `--fork`, or a `--session` ID from another directory that you choose to fork | The current directory, in a new session |
|
|
23
|
+
|
|
24
|
+
If a session's working directory no longer exists, interactive mode offers to run the session in the current directory instead. HUMAIN Code CLI does not store that choice, so it asks again the next time you open the session. Other modes exit with an error.
|
|
15
25
|
|
|
16
26
|
Use `/name` or `--name` to assign a recognizable session name. Run `/session` to verify the current session file, ID, message count, token usage, and cost.
|
|
17
27
|
|
|
@@ -51,8 +61,6 @@ By default, HUMAIN Code CLI stores sessions under `~/.humain-terminal/agent/sess
|
|
|
51
61
|
|
|
52
62
|
Use `--no-session` for an ephemeral run. An ephemeral session cannot be resumed after HUMAIN Code CLI exits.
|
|
53
63
|
|
|
54
|
-
Use `--session` when you already know the session path or ID. Use `--fork` to create a new session from an existing session before interactive mode starts.
|
|
55
|
-
|
|
56
64
|
## Export or share a session
|
|
57
65
|
|
|
58
66
|
Use `/export` to write the current session as HTML or JSONL. Use `/share` to upload it and get a viewer link. By default, HUMAIN Code CLI uses a Radius artifact when Radius authentication is configured; otherwise, it uses a private GitHub gist. Set [`sessionShareDestination`](settings.md#sessions-and-context) to `gist` or `radius` to force one destination.
|
package/docs/settings.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This reference lists user-configurable settings, their types, defaults, and purposes. Project settings override agent-directory settings. Resource lists are combined. See [Configuration](configuration.md) for file locations and trust behavior.
|
|
4
4
|
|
|
5
|
-
Add `"$schema": "https://
|
|
5
|
+
Add `"$schema": "https://code.humain.com/schemas/settings.schema.json"` to `settings.json` for editor validation and completion.
|
|
6
6
|
|
|
7
7
|
## Model and thinking
|
|
8
8
|
|
|
@@ -104,7 +104,7 @@ This replaces `bash` with `powershell` and enables `grep`: `["-bash", "+powershe
|
|
|
104
104
|
|
|
105
105
|
`/reload` enables tools newly added to `defaultTools`. It does not disable tools removed from it or re-enable unchanged tools you turned off. `--tools` with plain names, `--no-tools`, and `--no-builtin-tools` override `defaultTools`, also on reload.
|
|
106
106
|
|
|
107
|
-
CLI tool options override this setting for one invocation. `--tools` with only `+name` and `-name` entries changes the resolved `defaultTools` selection instead, for example `
|
|
107
|
+
CLI tool options override this setting for one invocation. `--tools` with only `+name` and `-name` entries changes the resolved `defaultTools` selection instead, for example `humain-code --tools +codemode`. On `/reload`, these entries apply to the reloaded setting too, so a tool removed with `-name` stays removed. See [Command Line](cli.md#tools).
|
|
108
108
|
|
|
109
109
|
## Sessions and context
|
|
110
110
|
|
|
@@ -120,13 +120,23 @@ CLI tool options override this setting for one invocation. `--tools` with only `
|
|
|
120
120
|
| Setting | Type | Default | Description |
|
|
121
121
|
|---|---|---|---|
|
|
122
122
|
| `compaction.enabled` | boolean | `true` | Enable automatic compaction. |
|
|
123
|
-
| `compaction.reserveTokens` | number | `16384` |
|
|
124
|
-
| `compaction.keepRecentTokens` | number | `20000` | Recent tokens retained without summarization. |
|
|
123
|
+
| `compaction.reserveTokens` | number | `16384` | Tokens reserved for the model response. Setting it turns off the `thresholdPercent` default and the context-window share of the summary cap. |
|
|
124
|
+
| `compaction.keepRecentTokens` | number | Larger of `20000` and 5% of the context window | Recent tokens retained without summarization. |
|
|
125
|
+
| `compaction.thresholdPercent` | number | `90` while `reserveTokens` is unset | Also compact above this percentage of the context window when that is below `contextWindow - reserveTokens`. |
|
|
126
|
+
| `compaction.summaryMaxTokens` | number | Largest of 80% of `reserveTokens`, `4096` and 3.2% of the context window | Output cap of a compaction summary; a split turn's prefix gets half. The window share applies only while `reserveTokens` is unset. |
|
|
125
127
|
| `compaction.modelOverrides` | object | None | Per-model token settings keyed by exact `provider/modelId`. |
|
|
126
128
|
|
|
129
|
+
The defaults scale with the context window only while the matching setting is unset:
|
|
130
|
+
|
|
131
|
+
| Context window | Compacts above | Kept recent tokens | Summary cap |
|
|
132
|
+
|---|---|---|---|
|
|
133
|
+
| 128K | 111616 | 20000 | 13107 |
|
|
134
|
+
| 200K | 180000 | 20000 | 13107 |
|
|
135
|
+
| 1M | 900000 | 50000 | 32000 |
|
|
136
|
+
|
|
127
137
|
<a id="per-model-compaction-overrides"></a>
|
|
128
138
|
|
|
129
|
-
|
|
139
|
+
`reserveTokens` and `keepRecentTokens` must be non-negative safe integers, `thresholdPercent` an integer from 1 to 100, and `summaryMaxTokens` a positive safe integer. Each value resolves independently from the matching model override, then the ordinary compaction setting, then the built-in default. Project and user objects merge before model lookup.
|
|
130
140
|
|
|
131
141
|
See [Compaction Reference](compaction.md) for trigger, summarization, and validation behavior.
|
|
132
142
|
|
|
@@ -154,7 +164,7 @@ See [Compaction Reference](compaction.md) for trigger, summarization, and valida
|
|
|
154
164
|
| `showHardwareCursor` | boolean | `false` | Use the terminal cursor instead of HUMAIN Code CLI's drawn cursor. HUMAIN Code CLI still positions it for input methods. |
|
|
155
165
|
| `terminal.showImages` | boolean | `true` | Display inline images when supported. |
|
|
156
166
|
| `terminal.imageWidthCells` | number | `60` | Preferred inline image width in terminal cells. |
|
|
157
|
-
| `terminal.clearOnShrink` | boolean | `false` | Clear empty rows when rendered content shrinks. |
|
|
167
|
+
| `terminal.clearOnShrink` | boolean | `false` | Clear empty rows when rendered content shrinks. When unset, `HUMAIN_TERMINAL_CLEAR_ON_SHRINK=1` enables it. |
|
|
158
168
|
| `terminal.showTerminalProgress` | boolean | `false` | Show OSC 9;4 progress in the terminal tab. |
|
|
159
169
|
| `terminal.hyperlinks` | `boolean \| "auto"` | `"auto"` | Override OSC 8 hyperlink detection. |
|
|
160
170
|
| `terminal.images` | `"kitty" \| "iterm2" \| "auto" \| false` | `"auto"` | Override inline-image protocol detection. |
|
|
@@ -172,8 +182,9 @@ See [Themes](themes.md) and [Terminal Setup](terminal-setup.md) for format and p
|
|
|
172
182
|
|---|---|---|---|
|
|
173
183
|
| `transport` | `"auto" \| "sse" \| "websocket" \| "websocket-cached"` | `"auto"` | Preferred transport for AI providers that support multiple transports. |
|
|
174
184
|
| `httpProxy` | string | None | Proxy URL applied as `HTTP_PROXY` and `HTTPS_PROXY` for HUMAIN Code CLI-managed HTTP clients. **Can only be set in agent-directory settings.** |
|
|
175
|
-
| `httpIdleTimeoutMs` | number | `300000` | HTTP header and body idle timeout in milliseconds. Set to `0` to disable. |
|
|
176
|
-
| `
|
|
185
|
+
| `httpIdleTimeoutMs` | number \| `"disabled"` | `300000` | HTTP header and body idle timeout in milliseconds. Set to `0` or `"disabled"` to disable. |
|
|
186
|
+
| `noProgressTimeoutMs` | positive integer | `120000` | Abort model streams after this many milliseconds without meaningful progress. Range: `1`–`2147483647`; cannot be disabled. |
|
|
187
|
+
| `websocketConnectTimeoutMs` | number \| `"disabled"` | `15000` | WebSocket connection timeout in milliseconds. Set to `0` or `"disabled"` to disable. |
|
|
177
188
|
| `retry.enabled` | boolean | `true` | Enable automatic agent-level retry for transient failures. |
|
|
178
189
|
| `retry.maxRetries` | number | `3` | Maximum agent-level retry attempts. |
|
|
179
190
|
| `retry.baseDelayMs` | number | `2000` | Initial exponential-backoff delay in milliseconds. |
|
|
@@ -191,6 +202,7 @@ Keep `retry.provider.maxRetries` at `0` unless provider-level retries are requir
|
|
|
191
202
|
| `shellPath` | string | Platform default | Custom shell executable path. Supports a leading `~`. |
|
|
192
203
|
| `shellCommandPrefix` | string | None | Prefix prepended to every shell command. |
|
|
193
204
|
| `npmCommand` | `string[]` | `npm` | Command and arguments used for npm package lookup and installation. |
|
|
205
|
+
| `selfUpdateCommand` | `string[]` | None | Command and arguments `humain-code update` runs to update HUMAIN Code CLI itself, with `{packageName}`, `{version}`, and `{installSpec}` placeholders. `HUMAIN_TERMINAL_SELF_UPDATE_COMMAND` takes precedence. **Can only be set in agent-directory settings.** See [Custom update command](cli.md#custom-update-command). |
|
|
194
206
|
|
|
195
207
|
See [Shell aliases](shell-aliases.md) for shell setup and [HUMAIN Code CLI Packages](packages.md) for package-manager behavior.
|
|
196
208
|
|
|
@@ -215,7 +227,7 @@ The built-in extensions are named `builtin:mcp`, `builtin:llama.cpp`, `builtin:c
|
|
|
215
227
|
|
|
216
228
|
| Setting | Type | Default | Description |
|
|
217
229
|
|---|---|---|---|
|
|
218
|
-
| `collapseChangelog` | boolean | `false` | Show a condensed changelog after an update. |
|
|
230
|
+
| `collapseChangelog` | boolean | `false` | Show a condensed changelog after an update. Also condenses extension package changelogs to one line per package. |
|
|
219
231
|
| `enableInstallTelemetry` | boolean | `true` | Enable anonymous install/update reporting and selected provider attribution headers. Does not control update checks. |
|
|
220
232
|
| `enableAnalytics` | boolean | `false` | Opt in to analytics data sharing. Currently used only by the experimental first-run setup. |
|
|
221
233
|
| `warnings.anthropicExtraUsage` | boolean | `true` | Warn when Anthropic subscription authentication may use paid extra usage. |
|
package/docs/slash-commands.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Slash commands
|
|
2
2
|
|
|
3
|
-
Type `/` in
|
|
3
|
+
Type `/` in HUMAIN Code CLI's terminal editor to search the commands available in the current session. This page lists the built-in commands in the current HUMAIN Code CLI release.
|
|
4
4
|
|
|
5
|
-
Extensions, prompt templates, and skills can add commands. The command menu in
|
|
5
|
+
Extensions, prompt templates, and skills can add commands. The command menu in HUMAIN Code CLI is therefore the exact reference for the resources loaded in your session.
|
|
6
6
|
|
|
7
7
|
## Models and settings
|
|
8
8
|
|
|
@@ -14,6 +14,7 @@ Extensions, prompt templates, and skills can add commands. The command menu in P
|
|
|
14
14
|
| `/scoped-models` | Configure the models used by interactive cycling |
|
|
15
15
|
| `/login [provider]` | Add provider authentication |
|
|
16
16
|
| `/logout` | Remove provider authentication |
|
|
17
|
+
| `/accounts` | Manage saved OAuth accounts and compare weekly allowance, saved resets and paid credits |
|
|
17
18
|
| `/llama` | Manage models on the configured llama.cpp router |
|
|
18
19
|
|
|
19
20
|
## Sessions and context
|
|
@@ -21,24 +22,62 @@ Extensions, prompt templates, and skills can add commands. The command menu in P
|
|
|
21
22
|
| Command | Description |
|
|
22
23
|
|---|---|
|
|
23
24
|
| `/new` | Start a new session |
|
|
24
|
-
| `/resume` |
|
|
25
|
+
| `/resume` | Resume another session |
|
|
25
26
|
| `/name [name]` | Set the session display name, or show the current name when omitted |
|
|
26
27
|
| `/session` | Show current session information and statistics |
|
|
27
|
-
| `/usage` | Show session
|
|
28
|
+
| `/usage` | Show session statistics and saved OpenAI Codex and Claude accounts' subscription limits (see [/usage](#usage)) |
|
|
28
29
|
| `/tree` | Navigate the session tree |
|
|
29
30
|
| `/fork` | Create a new session from an earlier user message |
|
|
30
31
|
| `/clone` | Duplicate the current session at its current position |
|
|
31
32
|
| `/compact [instructions]` | Compact the current context, optionally with custom instructions |
|
|
32
|
-
| `/import <path>` | Import
|
|
33
|
+
| `/import <path>` | Import a JSONL session, preserving its ID and working directory |
|
|
33
34
|
|
|
34
35
|
### /usage
|
|
35
36
|
|
|
36
|
-
`/usage` opens
|
|
37
|
+
`/usage` opens an interactive-only, full-terminal overlay through `ctx.ui.custom`, independent of extension widgets and input dock height. It defaults to **Accounts** when saved Codex or Claude OAuth accounts exist, otherwise **Session**. Accounts appear in a provider-grouped list with selected-account details, not a truncated tab strip. They are shown regardless of the selected model, provider or API-key use. These are subscription limits, not API-key quotas; other providers' subscription limits are not shown. **Session** shows tokens, cost, context use and duration.
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
- **Claude subscription:** the 5h, weekly, weekly Opus, weekly Sonnet and weekly OAuth apps limits, plus extra usage as a percentage when it is enabled. These come from Anthropic's undocumented subscription usage endpoint (`https://api.anthropic.com/api/oauth/usage`), requested with the active Anthropic account's token, without redirects. Results are cached for 60 seconds, and a rate-limit response is remembered for its `Retry-After`. If the live request fails, the popup shows Claude Code's cached limits from `~/.claude.json` and their age. The live failure reason is shown only when that fallback also fails.
|
|
39
|
+
Default controls (all configurable in [keybindings.json](keybindings.md#usage-popup)):
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
- **a** opens Accounts; **s** opens Session.
|
|
42
|
+
- **Up/Down** selects an account; **Enter** focuses its details. **Esc** returns to the account list, or closes from the list or Session.
|
|
43
|
+
- **Tab/Right** cycles to the next account; **Shift+Tab/Left** cycles to the previous account. These retain the `app.usage.nextTab` / `app.usage.previousTab` action names.
|
|
44
|
+
- **r** checks Codex reset availability, then offers **Use 1 saved reset**; for Claude it asks to open the official usage page. **b** asks to open billing settings on the selected provider's official usage page.
|
|
45
|
+
- **Up/Down**, **PageUp/PageDown** and the mouse wheel scroll focused details or Session. Click an account to select it.
|
|
46
|
+
|
|
47
|
+
Account results appear progressively, with at most three lookups at once and a 10-second timeout per lookup. Closing or host disposal cancels pending requests; session shutdown closes every usage view and its child confirmation and aborts requests. Repeated cleanup is safe. Viewing never switches the active account, redeems a reset or changes account cooldowns. The explicit Codex redemption action is the exception described below. Credentials never appear in the popup or provider-page URLs.
|
|
48
|
+
|
|
49
|
+
#### Account limits and paid credits
|
|
50
|
+
|
|
51
|
+
Each limit window shows its percentage used and reset time when reported. Weekly allowance, saved resets and paid credits are separate facts:
|
|
52
|
+
|
|
53
|
+
- **OpenAI Codex (ChatGPT subscription):** reads every window from `https://chatgpt.com/backend-api/wham/usage`, the same route `/accounts` reads. The 5h and weekly windows appear first, then provider-named additional limits and the code review limit. Reached limits use the error color. Paid balances accept validated string or numeric amounts in Codex's native **credits**, not dollars. Missing or malformed balances remain unavailable; explicit provider flags can report unlimited or no credits.
|
|
54
|
+
- **Claude subscription:** shows 5h, weekly, weekly Opus, weekly Sonnet and weekly OAuth apps limits, plus extra-usage percentage when enabled. Anthropic's undocumented `https://api.anthropic.com/api/oauth/usage?cedar_ember=1` endpoint is read-only, uses the selected account's token without redirects, truthfully identifies HUMAIN, caches results per account for 60 seconds and honors `Retry-After`. Its extra-usage response proves enabled/disabled status and reported percentage only, not a purchased balance or currency units. Paid balance, monthly spending amounts and auto-reload status remain unavailable unless verified; enablement does not mean paid credits exist.
|
|
55
|
+
|
|
56
|
+
If live Claude limits are unavailable, Claude Code's cached bars in `~/.claude.json` are used only when the provider-issued Claude credential `accountId` UUID matches `oauthAccount.accountUuid`. Editable pool labels and emails never establish a match; an unknown UUID refuses the cache. Cached bars show their age; the live failure reason appears only when that fallback also fails. Cached data never supplies reset eligibility.
|
|
57
|
+
|
|
58
|
+
Purchases and auto-reload configuration stay on the providers' official pages: [Codex usage settings](https://chatgpt.com/codex/settings/usage) and [Claude usage settings](https://claude.ai/settings/usage). Before opening either page, a bounded, responsive confirmation shows `Sign in as: <selected account label>`, the account-mismatch warning and the exact destination URL. It defaults to **Cancel** and requires review of all body text (scrolling when needed) before accepting **Open usage settings**. No browser launches until you explicitly accept. Browser sign-in can differ from the CLI account; no credentials are passed to the browser.
|
|
59
|
+
|
|
60
|
+
#### Saved resets
|
|
61
|
+
|
|
62
|
+
A saved reset count does not prove a reset can be used now. Missing, gated or unrecognized data stays unknown or unavailable, not zero or ineligible. Expiry appears only when reported and understood.
|
|
63
|
+
|
|
64
|
+
**Codex** initially reads `rate_limit_reset_credits.available_count` from usage; this does not prove redemption eligibility or expiry. To request a saved reset:
|
|
65
|
+
|
|
66
|
+
1. Select the account and press **r** (**Check reset availability**). HUMAIN reads `GET https://chatgpt.com/backend-api/wham/rate-limit-reset-credits` and selects an explicitly available Codex reset credit, rejecting expired or malformed reported expiries.
|
|
67
|
+
2. Press **r** again (**Use 1 saved reset**) to review an account-specific, bounded, responsive confirmation. It defaults to **Cancel**, explains that spending the reset cannot be undone, and requires review of all body text (scrolling when needed) before accepting **Use 1 saved reset**. HUMAIN rereads availability and verifies the same credit and token-derived account identity immediately before submission. If either changed, nothing is submitted.
|
|
68
|
+
3. HUMAIN sends one `POST https://chatgpt.com/backend-api/wham/rate-limit-reset-credits/consume` with the exact `credit_id` and a deterministic account-and-credit-bound UUID `redeem_request_id`. It never requests a generic next credit or automatically retries an uncertain write. An unconfirmed outcome blocks all Codex reset actions across every account in the current view, including availability checks. Check the official page, then close and reopen `/usage` before requesting another reset.
|
|
69
|
+
|
|
70
|
+
Confirmed redemption refreshes that account's usage. Only fresh, explicitly provider-allowed limits permit guarded clearing of an unchanged saved cooldown. Blocked, unknown or changed cooldowns stay intact. This never switches the global active account or purchases credits.
|
|
71
|
+
|
|
72
|
+
**Claude** recognizes only the known `cedar_ember` schema with `eligible: true` and grants explicitly clearing `seven_day` or `seven_day_*` windows. Redemption status requires explicit grant-level `usable_now`; campaign eligibility alone is insufficient. The truthfully identified HUMAIN client may be gated out of grants. Omitted data does not mean no resets. Claude reset actions remain read-only in the CLI and open [Claude usage settings](https://claude.ai/settings/usage), only after the same selected-account confirmation and explicit **Open usage settings** choice.
|
|
73
|
+
|
|
74
|
+
#### Account-bound integration contract
|
|
75
|
+
|
|
76
|
+
`ModelRegistry.getUsageAccounts()` returns saved-account metadata, never credentials. `getCodexUsage()` and `getAnthropicUsage()` accept `accountKey` to read that exact account without activating it or clearing cooldowns. `getCodexResetDetails()` requires an exact local account key and returns reset metadata bound to its token-derived remote account identity. `redeemCodexReset()` requires that key, `expectedAccountId`, the exact `creditId` and caller-owned UUID `requestId`; its caller owns explicit confirmation and fresh exact-credit preflight. The same account/credit pair retains the same request UUID after uncertainty, including after reopening. Tokens remain inside account/provider helpers and never enter UI metadata or output. Only confirmed Codex redemption permits the guarded refresh described above.
|
|
77
|
+
|
|
78
|
+
### /accounts
|
|
79
|
+
|
|
80
|
+
`/accounts` retains account management and cooldown recovery. Its Codex and Claude account summaries share `/usage`'s weekly allowance, saved-reset and paid-credit interpretation. Missing values remain unavailable; Claude extra-usage enablement is separate from purchased credits. Refreshing Codex availability retains guarded cooldown recovery: only fresh provider-allowed limits can clear an unchanged saved cooldown, without selecting a different account. Adding, selecting and removing accounts remain explicit management actions; `/usage` never performs them.
|
|
42
81
|
|
|
43
82
|
## Export and share
|
|
44
83
|
|
|
@@ -55,11 +94,12 @@ Review a session before exporting or sharing it. Sessions can contain prompts, t
|
|
|
55
94
|
|
|
56
95
|
| Command | Description |
|
|
57
96
|
|---|---|
|
|
58
|
-
| `/trust` | Save a project trust decision for future
|
|
97
|
+
| `/trust` | Save a project trust decision for future HUMAIN Code CLI processes |
|
|
98
|
+
| `/mcp` | Manage MCP servers: sign in, reconnect, enable or disable, and change exposure |
|
|
59
99
|
| `/reload` | Reload keybindings, extensions, skills, templates, themes, and context files |
|
|
60
100
|
| `/hotkeys` | Show active keyboard shortcuts |
|
|
61
101
|
| `/changelog` | Show changelog entries |
|
|
62
|
-
| `/quit` | Quit
|
|
102
|
+
| `/quit` | Quit HUMAIN Code CLI |
|
|
63
103
|
|
|
64
104
|
## Commands added by resources
|
|
65
105
|
|
package/docs/terminal-setup.md
CHANGED
|
@@ -40,7 +40,7 @@ This is an iTerm2-wide setting and can also change native trackpad scrolling. Th
|
|
|
40
40
|
|
|
41
41
|
## Apple Terminal
|
|
42
42
|
|
|
43
|
-
HUMAIN Code CLI enables enhanced key reporting when available. If Terminal.app still sends plain Return for `Shift+Enter`, HUMAIN Code CLI uses a local macOS modifier fallback and treats it as `Shift+Enter`.
|
|
43
|
+
HUMAIN Code CLI enables enhanced key reporting when available. If Terminal.app still sends plain Return or `ESC` + Return for `Shift+Enter`, HUMAIN Code CLI uses a local macOS modifier fallback and treats it as `Shift+Enter`. `ESC` + Return without Shift held remains `Alt+Enter`.
|
|
44
44
|
|
|
45
45
|
The fallback works only when HUMAIN Code CLI runs on the same Mac as Terminal.app. It cannot inspect the local modifier state when HUMAIN Code CLI runs on another machine over SSH.
|
|
46
46
|
|
|
@@ -170,6 +170,8 @@ Windows Terminal uses HUMAIN Code CLI's Windows and WSL shortcut defaults. See [
|
|
|
170
170
|
|
|
171
171
|
### Forward Shift+Enter
|
|
172
172
|
|
|
173
|
+
When HUMAIN Code CLI runs natively on Windows, it checks the local Shift key state and treats plain Return or `ESC` + Return as `Shift+Enter` while Shift is held. This fallback does not work in WSL or over SSH. If `Shift+Enter` still submits, forward it explicitly.
|
|
174
|
+
|
|
173
175
|
Open Windows Terminal's `settings.json` with `Ctrl+Shift+,` or **Settings > Open JSON file**. Add this object to its `actions` array:
|
|
174
176
|
|
|
175
177
|
```json
|
package/docs/tmux.md
CHANGED
|
@@ -53,3 +53,9 @@ set -g extended-keys on
|
|
|
53
53
|
HUMAIN Code CLI supports the xterm `modifyOtherKeys` format used by these versions. Restart tmux and repeat the verification steps.
|
|
54
54
|
|
|
55
55
|
For older versions, upgrade tmux or use HUMAIN Code CLI outside tmux rather than relying on modified Enter shortcuts.
|
|
56
|
+
|
|
57
|
+
## Known issues
|
|
58
|
+
|
|
59
|
+
| Issue | Affects | Remedy |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| Text such as `c0c/0c0c/0c0c` appears in the editor at startup ([tmux#4749](https://github.com/tmux/tmux/issues/4749)) | tmux 3.6 | Upgrade tmux. Changing HUMAIN Code CLI's theme does not help. |
|
package/docs/tui.md
CHANGED
|
@@ -70,7 +70,7 @@ Regular mode leaves mouse input to the terminal because the terminal owns scroll
|
|
|
70
70
|
This complete extension shows the custom-component lifecycle: render within the supplied width, use injected keybindings, invalidate cached output after state changes, request a render, and finish through `done()`.
|
|
71
71
|
|
|
72
72
|
```typescript
|
|
73
|
-
import type { ExtensionAPI } from "@
|
|
73
|
+
import type { ExtensionAPI } from "@humain/humain-code";
|
|
74
74
|
import { truncateToWidth } from "@earendil-works/pi-tui";
|
|
75
75
|
|
|
76
76
|
export default function (pi: ExtensionAPI) {
|
|
@@ -135,6 +135,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
135
135
|
|
|
136
136
|
This component does not display a text cursor, so it does not need `Focusable`. A component containing `Input` or `Editor` must implement `Focusable` and propagate its `focused` value to that child.
|
|
137
137
|
|
|
138
|
+
Custom components do not report HUMAIN Code CLI as waiting for the user, because `ctx.ui.custom()` also hosts loaders and other non-blocking UI. When an inline component waits for an answer, pass `blocked: { kind: "question", message: "Pick a color" }` so terminals that support [program status](terminal-setup.md#program-status) show HUMAIN Code CLI as blocked while the component is visible. `kind` is `"question"`, `"permission"`, or `"auth"`. Overlays ignore this option.
|
|
139
|
+
|
|
138
140
|
Pass `overlay: true` to draw above existing content. Overlay options control size, anchors, offsets, margins, and responsive visibility. An overlay handle can change focus or temporarily hide and show the overlay with `setHidden()` while the interaction remains active.
|
|
139
141
|
|
|
140
142
|
Focused overlays retain input ownership across ordinary renders. If another component should receive input while an overlay remains visible, explicitly release or redirect focus through the handle.
|