@humain/humain-code 0.8.3 → 0.8.4
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 +141 -0
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-42CGJCSR.js +82 -0
- package/dist/bundle/chunks/ask-VH7GNX75.js +97 -0
- package/dist/bundle/chunks/azure-openai-responses-DOKKMBUN.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +200 -179
- package/dist/bundle/chunks/bowser-UX7KDMIY.js +92 -0
- package/dist/bundle/chunks/{chunk-46C6D7UC.js → chunk-2CYGUEQO.js} +1 -1
- package/dist/bundle/chunks/chunk-3RXT35Y3.js +3 -0
- package/dist/bundle/chunks/chunk-4BNDLR6C.js +177 -0
- package/dist/bundle/chunks/{chunk-MPRAQ6ZI.js → chunk-4LGBXPUD.js} +1 -1
- package/dist/bundle/chunks/chunk-4SL6URR3.js +90 -0
- package/dist/bundle/chunks/{chunk-7LSTTCSC.js → chunk-52642TYH.js} +316 -148
- package/dist/bundle/chunks/{chunk-LSRXA7OS.js → chunk-5C5K4EVJ.js} +3 -3
- package/dist/bundle/chunks/{chunk-2JNJJ6SZ.js → chunk-5KUCY54O.js} +3 -3
- package/dist/bundle/chunks/{chunk-4TDNOR36.js → chunk-625QJSFJ.js} +1 -1
- package/dist/bundle/chunks/chunk-73YX5XGR.js +2461 -0
- package/dist/bundle/chunks/chunk-7DIRHF4H.js +17 -0
- package/dist/bundle/chunks/{chunk-QJB5YI3I.js → chunk-7PAXKU7M.js} +1 -1
- package/dist/bundle/chunks/{chunk-R2KD2HFT.js → chunk-7YB3HRRN.js} +83 -196
- package/dist/bundle/chunks/{chunk-DCXHRP6C.js → chunk-A2UZYK23.js} +13 -13
- package/dist/bundle/chunks/chunk-A5ZMBTTM.js +12 -0
- package/dist/bundle/chunks/{chunk-JKX5EGOT.js → chunk-AER66CNP.js} +13 -13
- package/dist/bundle/chunks/chunk-ARTF7ZMQ.js +5 -0
- package/dist/bundle/chunks/chunk-B3FT6L6S.js +131 -0
- package/dist/bundle/chunks/chunk-BIC5BSNX.js +13 -0
- package/dist/bundle/chunks/{chunk-JSHKS7VH.js → chunk-BNZZJ4LO.js} +1 -1
- package/dist/bundle/chunks/{chunk-4MKATHT2.js → chunk-CG43CMFH.js} +1 -1
- package/dist/bundle/chunks/{chunk-2XD7TLKB.js → chunk-CIAXW64K.js} +16 -16
- package/dist/bundle/chunks/{chunk-VFLVWPLZ.js → chunk-CKFLQGJN.js} +20 -16
- package/dist/bundle/chunks/chunk-D4UCXXDP.js +115 -0
- package/dist/bundle/chunks/{chunk-HQMUDHC3.js → chunk-D6ZWWDW5.js} +6 -5
- package/dist/bundle/chunks/{chunk-4GB7A76U.js → chunk-EVDQRT3I.js} +225 -348
- package/dist/bundle/chunks/{chunk-FJIISX5W.js → chunk-F74XLJPC.js} +195 -192
- package/dist/bundle/chunks/chunk-FDRBTGFJ.js +4 -0
- package/dist/bundle/chunks/{chunk-E4VUW4RI.js → chunk-FLWO3H5J.js} +12 -12
- package/dist/bundle/chunks/{chunk-KLSRGGOH.js → chunk-G2PFPQX7.js} +2 -2
- package/dist/bundle/chunks/chunk-GMPJWLZS.js +57 -0
- package/dist/bundle/chunks/{chunk-M5TVWJ5T.js → chunk-H35P7ROY.js} +462 -441
- package/dist/bundle/chunks/chunk-HCHCYBNK.js +2 -0
- package/dist/bundle/chunks/{chunk-7WE77IE3.js → chunk-HRNYDRL7.js} +1 -1
- package/dist/bundle/chunks/chunk-HWFAAGYK.js +23 -0
- package/dist/bundle/chunks/{chunk-VSXVZVBE.js → chunk-HWXQCJDP.js} +408 -392
- package/dist/bundle/chunks/{chunk-PVNXN2TC.js → chunk-II5C7G67.js} +1 -1
- package/dist/bundle/chunks/{chunk-F2H47FRF.js → chunk-IMRZP5SC.js} +182 -137
- package/dist/bundle/chunks/{chunk-AW24RHGJ.js → chunk-J5YFXMTM.js} +4 -4
- package/dist/bundle/chunks/chunk-J64VNQ6D.js +13 -0
- package/dist/bundle/chunks/{chunk-65FLSKDA.js → chunk-K5EFEIFP.js} +5 -4
- package/dist/bundle/chunks/{chunk-KI7CHPWC.js → chunk-KJ3QRSSY.js} +46 -43
- package/dist/bundle/chunks/{cli-6DJO467D.js → chunk-KSEO2LRK.js} +12 -10
- package/dist/bundle/chunks/{chunk-HHWVVNGG.js → chunk-MA2WCMSN.js} +2 -2
- package/dist/bundle/chunks/{chunk-L4J7SMJB.js → chunk-MAEKQSFU.js} +1 -1
- package/dist/bundle/chunks/chunk-MHQNLTZR.js +8 -0
- package/dist/bundle/chunks/chunk-MLOUZAVZ.js +122 -0
- package/dist/bundle/chunks/chunk-MQYR4Q6X.js +5 -0
- package/dist/bundle/chunks/chunk-MXF3KYLZ.js +4 -0
- package/dist/bundle/chunks/{chunk-GY663MNP.js → chunk-MZRTVX7F.js} +1 -1
- package/dist/bundle/chunks/chunk-MZYHSWHX.js +59 -0
- package/dist/bundle/chunks/{chunk-6HTHDVJC.js → chunk-NPVRWPGX.js} +1 -1
- package/dist/bundle/chunks/{chunk-BRSLXHED.js → chunk-O44A4E4K.js} +1 -1
- package/dist/bundle/chunks/{chunk-T2ZGMEMV.js → chunk-OADQOW67.js} +175 -260
- package/dist/bundle/chunks/chunk-OTVHRZ67.js +17 -0
- package/dist/bundle/chunks/{chunk-J4GII2EE.js → chunk-P7SLTLSZ.js} +51 -46
- package/dist/bundle/chunks/{chunk-7OZNMWAJ.js → chunk-PPGSQZZF.js} +1 -1
- package/dist/bundle/chunks/chunk-PYX6ZCC7.js +29 -0
- package/dist/bundle/chunks/chunk-PZ7NYBHJ.js +8 -0
- package/dist/bundle/chunks/{chunk-VCMXBP5S.js → chunk-QESIDBMW.js} +1 -7
- package/dist/bundle/chunks/chunk-QUWVILLB.js +3 -0
- package/dist/bundle/chunks/chunk-QZWUXGY7.js +99 -0
- package/dist/bundle/chunks/{chunk-MIAXMK5F.js → chunk-QZXLTW7V.js} +8 -7
- package/dist/bundle/chunks/chunk-RP6MWUAP.js +4 -0
- package/dist/bundle/chunks/{chunk-MUN4ZZZP.js → chunk-SOE25WIS.js} +1143 -1167
- package/dist/bundle/chunks/{chunk-JSZBTGI6.js → chunk-SZZ5PNP6.js} +2 -2
- package/dist/bundle/chunks/chunk-T5WECB2D.js +7 -0
- package/dist/bundle/chunks/{chunk-2NVGOSBN.js → chunk-T7F2TEIS.js} +37 -13
- package/dist/bundle/chunks/{chunk-ZSWU5KKA.js → chunk-UOSJTMCL.js} +7 -3
- package/dist/bundle/chunks/{chunk-6P6MMQUH.js → chunk-UTRUALFN.js} +3 -3
- package/dist/bundle/chunks/{chunk-PWFM6AQQ.js → chunk-V2HTCZRF.js} +70 -67
- package/dist/bundle/chunks/{chunk-JX6YIPNK.js → chunk-WCKS2DPT.js} +1 -1
- package/dist/bundle/chunks/chunk-XGOJCV6Z.js +2 -0
- package/dist/bundle/chunks/chunk-XGSJX23G.js +1151 -0
- package/dist/bundle/chunks/{chunk-7WETECIB.js → chunk-Z7BWHPJ2.js} +1 -1
- package/dist/bundle/chunks/chunk-ZFFDBTG3.js +17 -0
- package/dist/bundle/chunks/cli-NJLV3XDZ.js +3 -0
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-JEZVYITT.js → cloudflare-workers-ai-system-one-ZAZW4M4B.js} +1 -1
- package/dist/bundle/chunks/{compat-4ILE5BEC.js → compat-7UJJAO4E.js} +12 -12
- package/dist/bundle/chunks/{curator-server-QB4GITGS.js → curator-server-MW645JI3.js} +2 -2
- package/dist/bundle/chunks/{dist-NXHRL2KY.js → dist-7PCCEUQF.js} +2 -2
- package/dist/bundle/chunks/{dist-I6CI3CG5.js → dist-I53JI67E.js} +9 -9
- package/dist/bundle/chunks/{dist-35STTNYA.js → dist-NI2PTSLH.js} +1 -1
- package/dist/bundle/chunks/{dist-CBODG4CA.js → dist-VXQT3DQY.js} +6 -6
- package/dist/bundle/chunks/{dist-cjs-EROMDUKS.js → dist-cjs-4JQA6W3S.js} +31 -31
- package/dist/bundle/chunks/doctor-KJVAYG3F.js +83 -0
- package/dist/bundle/chunks/{easter-egg-3d-VZC5WOYV.js → easter-egg-3d-Z24JLXD4.js} +1 -1
- package/dist/bundle/chunks/entry-3EL6GOWK.js +2 -0
- package/dist/bundle/chunks/{entry-6XDR2IDE.js → entry-4IMREZBD.js} +80 -79
- package/dist/bundle/chunks/{execute-6MEJJF2T.js → execute-C4BZQRPQ.js} +23 -22
- package/dist/bundle/chunks/{extract-L373D6O7.js → extract-XVQCIS7D.js} +5 -5
- package/dist/bundle/chunks/{flow-implementer-XOP4MG5X.js → flow-implementer-GE2ARQKR.js} +5 -5
- package/dist/bundle/chunks/github-copilot.js +57 -56
- package/dist/bundle/chunks/google-generative-ai-P2P45MYP.js +22 -0
- package/dist/bundle/chunks/google-vertex-SHY4IS5F.js +26 -0
- package/dist/bundle/chunks/{host-WOLZCWQQ.js → host-YESS2VAB.js} +1 -1
- package/dist/bundle/chunks/{index.bundle-HONF3PUD.js → index.bundle-TZT64KLH.js} +102 -89
- package/dist/bundle/chunks/{inprocess-MBKFGDM2.js → inprocess-MGMVI6HN.js} +6 -6
- package/dist/bundle/chunks/interactive-mode-HHWOE4FD.js +5 -0
- package/dist/bundle/chunks/{llama-cpp-classify-KYZT532X.js → llama-cpp-classify-RSRH4KV2.js} +5 -5
- package/dist/bundle/chunks/mistral-conversations-YTMJKHHI.js +42 -0
- package/dist/bundle/chunks/{node-N7TPBUJB.js → node-FF6QQQLH.js} +1 -1
- package/dist/bundle/chunks/openai-codex-responses-NUCJOJSZ.js +97 -0
- package/dist/bundle/chunks/openai-completions-E5NRJUHA.js +91 -0
- package/dist/bundle/chunks/{openai-decisions-JMSDGR7K.js → openai-decisions-342J5ZYG.js} +1 -1
- package/dist/bundle/chunks/openai-responses-BN5Z4HFI.js +26 -0
- package/dist/bundle/chunks/openrouter-images-7RNG3JVF.js +12 -0
- package/dist/bundle/chunks/{pdfjs-FE3L72A6.js → pdfjs-LSTLRXQW.js} +1415 -1416
- package/dist/bundle/chunks/pi-messages-2L7FV5OK.js +22 -0
- package/dist/bundle/chunks/questionnaire-session-XEVAK7JS.js +123 -0
- package/dist/bundle/chunks/runtime-2FSZRUG5.js +2 -0
- package/dist/bundle/chunks/session-picker-666KJIVM.js +4 -0
- package/dist/bundle/chunks/startup-ui-INEVSNGK.js +3 -0
- package/dist/bundle/chunks/{trace-command-VM7FBWPE.js → trace-command-BCVMZ5ZD.js} +4 -4
- package/dist/bundle/chunks/typesafe-system-one-UJUNSZG4.js +3 -0
- package/dist/bundle/chunks/{undici-WVNE45GY.js → undici-7IGAYA4S.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-UXSSFNV5.js +29 -0
- package/dist/bundle/cli-runtime.js +5 -5
- package/dist/bundle/flow/package.json +3 -3
- package/dist/bundle/index.js +13 -13
- package/dist/bundle/orchestrate/package.json +1 -1
- package/dist/bundle/rpc-entry.js +5 -4
- package/dist/cli/agent-dir-arg.d.ts +12 -0
- package/dist/cli/agent-dir-arg.d.ts.map +1 -0
- package/dist/cli/agent-dir-arg.js +15 -0
- package/dist/cli/agent-dir-arg.js.map +1 -0
- package/dist/cli/args.d.ts +9 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +19 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/auth-check.d.ts +1 -1
- package/dist/cli/auth-check.d.ts.map +1 -1
- package/dist/cli/auth-check.js +4 -2
- package/dist/cli/auth-check.js.map +1 -1
- package/dist/cli/doctor-config.d.ts +14 -0
- package/dist/cli/doctor-config.d.ts.map +1 -0
- package/dist/cli/doctor-config.js +92 -0
- package/dist/cli/doctor-config.js.map +1 -0
- package/dist/cli/doctor-system.d.ts +12 -0
- package/dist/cli/doctor-system.d.ts.map +1 -0
- package/dist/cli/doctor-system.js +109 -0
- package/dist/cli/doctor-system.js.map +1 -0
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +323 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/doctor.lazy.d.ts +3 -0
- package/dist/cli/doctor.lazy.d.ts.map +1 -0
- package/dist/cli/doctor.lazy.js +3 -0
- package/dist/cli/doctor.lazy.js.map +1 -0
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js +0 -4
- package/dist/cli/list-models.js.map +1 -1
- package/dist/cli/project-trust.d.ts.map +1 -1
- package/dist/cli/project-trust.js +6 -6
- package/dist/cli/project-trust.js.map +1 -1
- package/dist/cli/startup-ui.d.ts +3 -2
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +23 -10
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/config.d.ts +5 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -3
- package/dist/config.js.map +1 -1
- package/dist/coordination/broker/broker.d.ts +3 -3
- package/dist/coordination/broker/broker.d.ts.map +1 -1
- package/dist/coordination/broker/broker.js +15 -7
- package/dist/coordination/broker/broker.js.map +1 -1
- package/dist/core/acceptance-command.d.ts +6 -3
- package/dist/core/acceptance-command.d.ts.map +1 -1
- package/dist/core/acceptance-command.js +43 -12
- package/dist/core/acceptance-command.js.map +1 -1
- package/dist/core/acceptance-ledger.d.ts +2 -0
- package/dist/core/acceptance-ledger.d.ts.map +1 -1
- package/dist/core/acceptance-ledger.js +14 -3
- package/dist/core/acceptance-ledger.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +11 -4
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +13 -4
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +6 -0
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +19 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +131 -36
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +7 -1
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts +3 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +18 -8
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +2 -2
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +9 -15
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +3 -0
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +12 -10
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.js +23 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +13 -2
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +9 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +2 -4
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/http-dispatcher.d.ts +5 -2
- package/dist/core/http-dispatcher.d.ts.map +1 -1
- package/dist/core/http-dispatcher.js +6 -3
- package/dist/core/http-dispatcher.js.map +1 -1
- package/dist/core/keybindings.d.ts +20 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +4 -1
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +29 -0
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +63 -17
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/messages.d.ts +4 -0
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +10 -2
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +36 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-resolver.js +1 -1
- 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 +6 -2
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/nested-tool-calls.d.ts +6 -5
- package/dist/core/nested-tool-calls.d.ts.map +1 -1
- package/dist/core/nested-tool-calls.js +1 -3
- package/dist/core/nested-tool-calls.js.map +1 -1
- package/dist/core/os-secret-store.js +1 -1
- package/dist/core/os-secret-store.js.map +1 -1
- package/dist/core/package-manager.d.ts +3 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +25 -4
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +4 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/provider-composer.d.ts +1 -0
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +1 -0
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts +4 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js +14 -3
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +40 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +11 -7
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +8 -4
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +22 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +227 -37
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +10 -1
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +7 -1
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +14 -4
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +48 -15
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +20 -2
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +27 -4
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/tools/bash-jobs.js +2 -2
- package/dist/core/tools/bash-jobs.js.map +1 -1
- package/dist/core/tools/bash.d.ts +3 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +78 -46
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +7 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +139 -75
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +4 -1
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts +21 -6
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +90 -76
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +7 -2
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +14 -1
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +9 -3
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/truncate.d.ts +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +16 -7
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +2 -0
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trust-manager.d.ts +2 -0
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +5 -4
- 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 +3 -0
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +64 -20
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +8 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +5 -0
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +3 -13
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/ui.d.ts.map +1 -1
- package/dist/extensions/llama/ui.js +2 -1
- package/dist/extensions/llama/ui.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts +7 -0
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +35 -8
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts +33 -0
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +11 -2
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts +8 -0
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +16 -0
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +1 -1
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +4 -3
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +1 -1
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +15 -14
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +1 -24
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +10 -163
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/humain/ask-user-question/index.d.ts +4 -0
- package/dist/humain/ask-user-question/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/index.js +18 -0
- package/dist/humain/ask-user-question/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts +38 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.js +97 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js +441 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/config.d.ts +39 -0
- package/dist/humain/ask-user-question/vendor/ask/config.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/config.js +95 -0
- package/dist/humain/ask-user-question/vendor/ask/config.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/events.d.ts +132 -0
- package/dist/humain/ask-user-question/vendor/ask/events.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/events.js +50 -0
- package/dist/humain/ask-user-question/vendor/ask/events.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/index.d.ts +5 -0
- package/dist/humain/ask-user-question/vendor/ask/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/index.js +15 -0
- package/dist/humain/ask-user-question/vendor/ask/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts +81 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.js +105 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts +28 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.js +45 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js +166 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts +46 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js +247 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts +11 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js +56 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts +6 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js +10 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts +57 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.js +357 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts +112 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js +240 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts +87 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js +79 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts +22 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts +27 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js +48 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts +13 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js +15 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts +14 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js +96 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts +58 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js +310 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts +68 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts +24 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js +114 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts +18 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js +29 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js +99 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts +37 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js +70 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts +129 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.js +76 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts +21 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js +49 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js +16 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts +21 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js +49 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts +43 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js +130 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts +45 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js +39 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts +36 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js +72 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts +61 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js +108 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts +39 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js +76 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts +123 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js +180 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts +108 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js +235 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts +37 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js +47 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts +31 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js +35 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts +124 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js +205 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts +83 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js +186 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts +47 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js +48 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts +58 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js +84 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts +20 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js +55 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts +15 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts +98 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js +248 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.js +131 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/config.d.ts +132 -0
- package/dist/humain/ask-user-question/vendor/config/config.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/config.js +286 -0
- package/dist/humain/ask-user-question/vendor/config/config.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/index.d.ts +2 -0
- package/dist/humain/ask-user-question/vendor/config/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/index.js +2 -0
- package/dist/humain/ask-user-question/vendor/config/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts +64 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.js +185 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts +44 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.js +55 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.js.map +1 -0
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +26 -16
- package/dist/humain/brand-logo.d.ts +2 -0
- package/dist/humain/brand-logo.d.ts.map +1 -1
- package/dist/humain/brand-logo.js +4 -0
- package/dist/humain/brand-logo.js.map +1 -1
- package/dist/humain/bundled-extension-names.d.ts +1 -0
- package/dist/humain/bundled-extension-names.d.ts.map +1 -1
- package/dist/humain/bundled-extension-names.js +1 -0
- package/dist/humain/bundled-extension-names.js.map +1 -1
- package/dist/humain/checklist/footer-progress.d.ts +7 -0
- package/dist/humain/checklist/footer-progress.d.ts.map +1 -0
- package/dist/humain/checklist/footer-progress.js +15 -0
- package/dist/humain/checklist/footer-progress.js.map +1 -0
- package/dist/humain/checklist/glyphs.d.ts +7 -0
- package/dist/humain/checklist/glyphs.d.ts.map +1 -0
- package/dist/humain/checklist/glyphs.js +8 -0
- package/dist/humain/checklist/glyphs.js.map +1 -0
- package/dist/humain/checklist/index.d.ts +6 -0
- package/dist/humain/checklist/index.d.ts.map +1 -0
- package/dist/humain/checklist/index.js +37 -0
- package/dist/humain/checklist/index.js.map +1 -0
- package/dist/humain/checklist/progress.d.ts +37 -0
- package/dist/humain/checklist/progress.d.ts.map +1 -0
- package/dist/humain/checklist/progress.js +234 -0
- package/dist/humain/checklist/progress.js.map +1 -0
- package/dist/humain/checklist/projector.d.ts +53 -0
- package/dist/humain/checklist/projector.d.ts.map +1 -0
- package/dist/humain/checklist/projector.js +198 -0
- package/dist/humain/checklist/projector.js.map +1 -0
- package/dist/humain/checklist/sidebar.d.ts +18 -0
- package/dist/humain/checklist/sidebar.d.ts.map +1 -0
- package/dist/humain/checklist/sidebar.js +38 -0
- package/dist/humain/checklist/sidebar.js.map +1 -0
- package/dist/humain/checklist/status-segment.d.ts +19 -0
- package/dist/humain/checklist/status-segment.d.ts.map +1 -0
- package/dist/humain/checklist/status-segment.js +59 -0
- package/dist/humain/checklist/status-segment.js.map +1 -0
- package/dist/humain/checklist/vendor/add-task-dialog.d.ts +54 -0
- package/dist/humain/checklist/vendor/add-task-dialog.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/add-task-dialog.js +238 -0
- package/dist/humain/checklist/vendor/add-task-dialog.js.map +1 -0
- package/dist/humain/checklist/vendor/commands.d.ts +38 -0
- package/dist/humain/checklist/vendor/commands.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/commands.js +193 -0
- package/dist/humain/checklist/vendor/commands.js.map +1 -0
- package/dist/humain/checklist/vendor/index.d.ts +3 -0
- package/dist/humain/checklist/vendor/index.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/index.js +276 -0
- package/dist/humain/checklist/vendor/index.js.map +1 -0
- package/dist/humain/checklist/vendor/render.d.ts +97 -0
- package/dist/humain/checklist/vendor/render.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/render.js +354 -0
- package/dist/humain/checklist/vendor/render.js.map +1 -0
- package/dist/humain/checklist/vendor/settings.d.ts +11 -0
- package/dist/humain/checklist/vendor/settings.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/settings.js +8 -0
- package/dist/humain/checklist/vendor/settings.js.map +1 -0
- package/dist/humain/checklist/vendor/store.d.ts +120 -0
- package/dist/humain/checklist/vendor/store.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/store.js +990 -0
- package/dist/humain/checklist/vendor/store.js.map +1 -0
- package/dist/humain/checklist/vendor/tools.d.ts +21 -0
- package/dist/humain/checklist/vendor/tools.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/tools.js +162 -0
- package/dist/humain/checklist/vendor/tools.js.map +1 -0
- package/dist/humain/checklist/vendor/types.d.ts +188 -0
- package/dist/humain/checklist/vendor/types.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/types.js +32 -0
- package/dist/humain/checklist/vendor/types.js.map +1 -0
- package/dist/humain/gateway/catalog.d.ts +1 -0
- package/dist/humain/gateway/catalog.d.ts.map +1 -1
- package/dist/humain/gateway/catalog.js +1 -0
- package/dist/humain/gateway/catalog.js.map +1 -1
- package/dist/humain/gateway/client.d.ts +1 -0
- package/dist/humain/gateway/client.d.ts.map +1 -1
- package/dist/humain/gateway/client.js +8 -1
- package/dist/humain/gateway/client.js.map +1 -1
- package/dist/humain/gateway/http.d.ts.map +1 -1
- package/dist/humain/gateway/http.js +11 -3
- package/dist/humain/gateway/http.js.map +1 -1
- package/dist/humain/gateway/images.d.ts +3 -0
- package/dist/humain/gateway/images.d.ts.map +1 -0
- package/dist/humain/gateway/images.js +73 -0
- package/dist/humain/gateway/images.js.map +1 -0
- package/dist/humain/gateway/provider.js +1 -1
- package/dist/humain/gateway/provider.js.map +1 -1
- package/dist/humain/hcode/account-store.d.ts.map +1 -1
- package/dist/humain/hcode/account-store.js +3 -1
- package/dist/humain/hcode/account-store.js.map +1 -1
- package/dist/humain/hcode/account.d.ts.map +1 -1
- package/dist/humain/hcode/account.js +23 -13
- package/dist/humain/hcode/account.js.map +1 -1
- package/dist/humain/hcode/images.d.ts.map +1 -1
- package/dist/humain/hcode/images.js +19 -13
- package/dist/humain/hcode/images.js.map +1 -1
- package/dist/humain/hcode/login-failure.d.ts +1 -0
- package/dist/humain/hcode/login-failure.d.ts.map +1 -1
- package/dist/humain/hcode/login-failure.js +1 -0
- package/dist/humain/hcode/login-failure.js.map +1 -1
- package/dist/humain/hcode/provider.d.ts.map +1 -1
- package/dist/humain/hcode/provider.js +2 -1
- package/dist/humain/hcode/provider.js.map +1 -1
- package/dist/humain/hcode/run-credential.d.ts +1 -0
- package/dist/humain/hcode/run-credential.d.ts.map +1 -1
- package/dist/humain/hcode/run-credential.js +12 -4
- package/dist/humain/hcode/run-credential.js.map +1 -1
- package/dist/humain/index.d.ts.map +1 -1
- package/dist/humain/index.js +4 -0
- package/dist/humain/index.js.map +1 -1
- package/dist/humain/node-provider.d.ts.map +1 -1
- package/dist/humain/node-provider.js +37 -8
- package/dist/humain/node-provider.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +36 -26
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/chat-viewport.js +1 -1
- package/dist/modes/interactive/chat-viewport.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +2 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +7 -4
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +2 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +20 -1
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +1 -1
- package/dist/modes/interactive/components/extension-editor.js +2 -2
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +7 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +74 -1
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +11 -4
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +2 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +56 -8
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +13 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +10 -9
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +3 -3
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -3
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +83 -37
- package/dist/modes/interactive/components/settings-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 +3 -3
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +18 -7
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +70 -24
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/status-line.d.ts +16 -0
- package/dist/modes/interactive/components/status-line.d.ts.map +1 -0
- package/dist/modes/interactive/components/status-line.js +51 -0
- package/dist/modes/interactive/components/status-line.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +5 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +8 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js +11 -3
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/external-editor.d.ts.map +1 -1
- package/dist/modes/interactive/external-editor.js +13 -3
- package/dist/modes/interactive/external-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +17 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +232 -108
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/program-status-reporter.d.ts +2 -0
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -1
- package/dist/modes/interactive/program-status-reporter.js +4 -0
- package/dist/modes/interactive/program-status-reporter.js.map +1 -1
- package/dist/modes/interactive/session-share.d.ts.map +1 -1
- package/dist/modes/interactive/session-share.js +9 -1
- package/dist/modes/interactive/session-share.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +34 -7
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/jsonl.js +6 -5
- package/dist/modes/rpc/jsonl.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +2 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +9 -2
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +2 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +113 -13
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +22 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/modes/uncaught-errors.d.ts +20 -0
- package/dist/modes/uncaught-errors.d.ts.map +1 -0
- package/dist/modes/uncaught-errors.js +56 -0
- package/dist/modes/uncaught-errors.js.map +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +10 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/clipboard-image.js +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard.js +2 -2
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/image-process.d.ts +5 -0
- package/dist/utils/image-process.d.ts.map +1 -1
- package/dist/utils/image-process.js +22 -4
- package/dist/utils/image-process.js.map +1 -1
- package/dist/utils/output-files.d.ts +44 -7
- package/dist/utils/output-files.d.ts.map +1 -1
- package/dist/utils/output-files.js +206 -12
- package/dist/utils/output-files.js.map +1 -1
- package/dist/utils/piped-stdin.d.ts +21 -0
- package/dist/utils/piped-stdin.d.ts.map +1 -0
- package/dist/utils/piped-stdin.js +60 -0
- package/dist/utils/piped-stdin.js.map +1 -0
- package/dist/utils/shell.d.ts +5 -2
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +77 -8
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +33 -2
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +77 -10
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts +1 -0
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +9 -8
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/wsl.d.ts +8 -2
- package/dist/utils/wsl.d.ts.map +1 -1
- package/dist/utils/wsl.js +12 -3
- package/dist/utils/wsl.js.map +1 -1
- package/docs/cli.md +39 -3
- package/docs/codemode.md +7 -3
- package/docs/compaction.md +1 -1
- package/docs/development.md +6 -0
- package/docs/environment-variables.md +3 -2
- package/docs/extensions.md +19 -5
- package/docs/keybindings.md +2 -0
- package/docs/llama-cpp.md +2 -2
- package/docs/message-types.md +1 -0
- package/docs/models-configuration.md +14 -3
- package/docs/models.md +29 -7
- package/docs/providers.md +20 -2
- package/docs/rpc-commands.md +25 -2
- package/docs/rpc.md +20 -0
- package/docs/run-preflight.md +2 -2
- package/docs/session-format.md +9 -0
- package/docs/settings.md +35 -5
- package/docs/shell-aliases.md +1 -1
- package/docs/slash-commands.md +3 -1
- package/docs/terminal-setup.md +25 -0
- package/docs/windows.md +2 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/rpc-extension-ui.ts +8 -7
- package/npm-shrinkwrap.json +209 -180
- package/package.json +26 -20
- package/schemas/keybindings.schema.json +12 -0
- package/schemas/models.schema.json +20 -7
- package/schemas/settings.schema.json +43 -5
- package/src/coordination/UPSTREAM.md +27 -1
- package/src/coordination/upstream.json +3 -3
- package/src/humain/ask-user-question/UPSTREAM.md +31 -0
- package/src/humain/ask-user-question/upstream.json +258 -0
- package/src/humain/ask-user-question/vendor/ask/LICENSE +21 -0
- package/src/humain/ask-user-question/vendor/ask/locales/de.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/en.json +41 -0
- package/src/humain/ask-user-question/vendor/ask/locales/es.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/fr.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/pt-BR.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/pt.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/ru.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/uk.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/zh.json +40 -0
- package/src/humain/ask-user-question/vendor/config/LICENSE +21 -0
- package/src/humain/ask-user-question/vendor/i18n/LICENSE +21 -0
- package/src/humain/caveman/UPSTREAM.md +44 -11
- package/src/humain/caveman/upstream.json +3 -3
- package/src/humain/caveman/vendor/NOTICE +4 -0
- package/dist/bundle/chunks/anthropic-messages-XFCDMGD6.js +0 -77
- package/dist/bundle/chunks/azure-openai-responses-F4KQM3NK.js +0 -15
- package/dist/bundle/chunks/bowser-DXKSTXFQ.js +0 -89
- package/dist/bundle/chunks/chunk-3E37CJCE.js +0 -34
- package/dist/bundle/chunks/chunk-3HVHETMU.js +0 -18
- package/dist/bundle/chunks/chunk-6JTCRCNF.js +0 -74
- package/dist/bundle/chunks/chunk-B3ZLWVDA.js +0 -80
- package/dist/bundle/chunks/chunk-F77J5EQZ.js +0 -3
- package/dist/bundle/chunks/chunk-GPLWWO5Q.js +0 -121
- package/dist/bundle/chunks/chunk-GV5OVRKK.js +0 -4
- package/dist/bundle/chunks/chunk-JBSWWCT5.js +0 -12
- package/dist/bundle/chunks/chunk-JWOPWHVH.js +0 -51
- package/dist/bundle/chunks/chunk-KRBELWQH.js +0 -7
- package/dist/bundle/chunks/chunk-PFBAIRCY.js +0 -56
- package/dist/bundle/chunks/chunk-Q5RKNQ2T.js +0 -73
- package/dist/bundle/chunks/chunk-QFDZEUFU.js +0 -12
- package/dist/bundle/chunks/chunk-SKCJ25SX.js +0 -24
- package/dist/bundle/chunks/chunk-UZOIHLNU.js +0 -23
- package/dist/bundle/chunks/chunk-YSWDFV2L.js +0 -11
- package/dist/bundle/chunks/chunk-YZMQXAJM.js +0 -8
- package/dist/bundle/chunks/chunk-ZAHVC5V2.js +0 -3591
- package/dist/bundle/chunks/entry-2GZ3PTWQ.js +0 -2
- package/dist/bundle/chunks/google-generative-ai-WIASMWS3.js +0 -22
- package/dist/bundle/chunks/google-vertex-WSPHRZIZ.js +0 -25
- package/dist/bundle/chunks/interactive-mode-3322RQEH.js +0 -5
- package/dist/bundle/chunks/mistral-conversations-7JYDDRUT.js +0 -43
- package/dist/bundle/chunks/openai-codex-responses-7PAML4NF.js +0 -102
- package/dist/bundle/chunks/openai-completions-UJDAIGTK.js +0 -87
- package/dist/bundle/chunks/openai-responses-2WNCE6AY.js +0 -26
- package/dist/bundle/chunks/openrouter-images-V3UCCO6X.js +0 -8
- package/dist/bundle/chunks/pi-messages-TQ7LJUNQ.js +0 -28
- package/dist/bundle/chunks/runtime-H7LYNKCZ.js +0 -2
- package/dist/bundle/chunks/session-picker-EYKCMFQR.js +0 -4
- package/dist/bundle/chunks/startup-ui-7ODOR34R.js +0 -3
- package/dist/bundle/chunks/typesafe-system-one-YP7GGN4C.js +0 -3
- package/dist/bundle/chunks/virtual-modules-47MGUPYN.js +0 -28
package/docs/extensions.md
CHANGED
|
@@ -359,7 +359,7 @@ The model request runs these hooks in order:
|
|
|
359
359
|
2. `context_with_system` (can modify the full transcript)
|
|
360
360
|
3. `before_provider_headers` (can mutate headers)
|
|
361
361
|
4. `before_provider_request` (can inspect or replace the payload)
|
|
362
|
-
5. `after_provider_response` (status and headers, before
|
|
362
|
+
5. `after_provider_response` (status and headers of each HTTP response, including errors and retried attempts; successful responses fire before their stream is consumed)
|
|
363
363
|
6. `provider_stream_event` (raw parsed stream events) and `message_start` / `message_update` / `message_end` for the assistant message
|
|
364
364
|
|
|
365
365
|
A tool call that executes runs these hooks in order:
|
|
@@ -702,6 +702,8 @@ If the run is aborted while `agent_before_settle` handlers are running, valid re
|
|
|
702
702
|
|
|
703
703
|
Notification-only lifecycle events for blocking user-facing extension UI prompts. They fire around `ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`, `ctx.ui.editor()`, and `ctx.ui.custom()` so host/status integrations can report "waiting for user" instead of just "running".
|
|
704
704
|
|
|
705
|
+
Passive custom overlays (`overlay: true` with `overlayOptions.nonCapturing: true`) do not emit blocking prompt events or suppress events from real dialogs. Function-valued `overlayOptions` are resolved once when opening the custom UI.
|
|
706
|
+
|
|
705
707
|
Nested or overlapping prompts are coalesced into one outer waiting span. Handlers are invoked best-effort and are not awaited before showing or closing the prompt.
|
|
706
708
|
|
|
707
709
|
```typescript
|
|
@@ -886,7 +888,7 @@ The payload is the full request. Providers that continue from a previous respons
|
|
|
886
888
|
|
|
887
889
|
#### after_provider_response
|
|
888
890
|
|
|
889
|
-
Fired
|
|
891
|
+
Fired for each HTTP response the provider receives, including error responses (4xx/5xx) and responses to retried attempts, so one request can fire it more than once. Successful responses fire before their stream body is consumed. Handlers run in extension load order.
|
|
890
892
|
|
|
891
893
|
```typescript
|
|
892
894
|
pi.on("after_provider_response", (event, ctx) => {
|
|
@@ -898,7 +900,7 @@ pi.on("after_provider_response", (event, ctx) => {
|
|
|
898
900
|
});
|
|
899
901
|
```
|
|
900
902
|
|
|
901
|
-
|
|
903
|
+
Coverage depends on provider and transport. Some providers report empty headers or only some responses. It does not fire for errors that arrive inside an already started SSE stream, or for WebSocket transports, including a WebSocket connection that fails to open.
|
|
902
904
|
|
|
903
905
|
#### provider_stream_event
|
|
904
906
|
|
|
@@ -1229,7 +1231,7 @@ Use `ctx.modelRegistry.streamSimple(model, context, options)` for provider-neutr
|
|
|
1229
1231
|
|
|
1230
1232
|
`streamSimple()` returns an `AssistantMessageEventStream`. Iterate it for response events and await `.result()` for the final message. Setup failures produce error events and error results.
|
|
1231
1233
|
|
|
1232
|
-
For non-chat models, `findOfType()`, `getModelsOfType()`, `getAvailableOfType()`, and `getModelOfType()` look up image and classifier models, and `classify()` and `generateImages()` call them. See [Use
|
|
1234
|
+
For non-chat models, `findOfType()`, `getModelsOfType()`, `getAvailableOfType()`, and `getModelOfType()` look up image and decision (`"classifier"`) models, and `classify()` and `generateImages()` call them. See [Use decision models](models.md#use-decision-models) and [Use image models](models.md#use-image-models).
|
|
1233
1235
|
|
|
1234
1236
|
### ctx.signal
|
|
1235
1237
|
|
|
@@ -2292,7 +2294,7 @@ async execute(toolCallId, params) {
|
|
|
2292
2294
|
|
|
2293
2295
|
**Structured output:** Declare `outputSchema` and return a matching `structuredContent` when the result is data. The model still receives `content`; programmatic callers such as codemode scripts receive `structuredContent` instead of the text. Tools without `outputSchema` are passed to scripts as their text content. To report a failure that still carries data, return the result with `isError: true` instead of throwing: the model sees an error, and scripts still receive `structuredContent`.
|
|
2294
2296
|
|
|
2295
|
-
**Execution mode:** Tool calls from one assistant message run in parallel by default. Set `executionMode: "sequential"` when a tool must not run concurrently with other calls, for example because it shares mutable in-memory state.
|
|
2297
|
+
**Execution mode:** Tool calls from one assistant message run in parallel by default. Set `executionMode: "sequential"` when a tool must not run concurrently with other calls, for example because it shares mutable in-memory state. A call to such a tool runs alone: the calls before it in the message finish first, and the calls after it start once it has finished. The built-in `bash`, `powershell`, `write` and `edit` tools are sequential, so `bash, read, read, bash` runs as `bash`, then both reads together, then `bash`. Calls a tool makes through `ctx.executeTool()` are ordered by that tool: nested calls of the built-in `bash`, `powershell`, `write` and `edit` still run in parallel there.
|
|
2296
2298
|
|
|
2297
2299
|
**Other definition fields:**
|
|
2298
2300
|
|
|
@@ -2880,8 +2882,20 @@ if (confirmed) {
|
|
|
2880
2882
|
|
|
2881
2883
|
See [examples/extensions/timed-confirm.ts](../examples/extensions/timed-confirm.ts) for complete examples.
|
|
2882
2884
|
|
|
2885
|
+
#### Program Status Kind
|
|
2886
|
+
|
|
2887
|
+
While a dialog waits, terminals that support [program status](terminal-setup.md#program-status) show pi as blocked, with the first line of the title as the message. `confirm()` reports `"permission"`, `select()` and `input()` report `"question"`. Pass `blockedKind` when the dialog asks for something else, for example a select that approves an action:
|
|
2888
|
+
|
|
2889
|
+
```typescript
|
|
2890
|
+
const choice = await ctx.ui.select("Deploy to production?", ["Deploy", "Deploy and tag", "Cancel"], {
|
|
2891
|
+
blockedKind: "permission", // "permission" | "question" | "auth"
|
|
2892
|
+
});
|
|
2893
|
+
```
|
|
2894
|
+
|
|
2883
2895
|
### Widgets, Status, and Footer
|
|
2884
2896
|
|
|
2897
|
+
The bundled checklist exports the pure internal provider `getChecklistStatusSegment(): { text: string } | undefined` from `src/humain/checklist/index.ts`. Status-line owns the while-building `Tasks` segment and its rendering; this is not an extension UI setter. MR-B owns the toggled `alt+t` sidebar and provider only: it makes no footer modifications, does not change `Last event` to idle-only or remove the `/settings` hint, and adds no `setFooterProgress` API. Existing extension status and custom-footer APIs below remain independent.
|
|
2898
|
+
|
|
2885
2899
|
```typescript
|
|
2886
2900
|
// Status in footer (persistent until cleared)
|
|
2887
2901
|
ctx.ui.setStatus("my-ext", "Processing...");
|
package/docs/keybindings.md
CHANGED
|
@@ -89,6 +89,7 @@ The dedicated history actions browse prompt history regardless of cursor positio
|
|
|
89
89
|
| `tui.input.submit` | `enter` | Submit input |
|
|
90
90
|
| `tui.input.tab` | `tab` | Tab or autocomplete |
|
|
91
91
|
| `tui.input.copy` | `ctrl+c` | Copy selection |
|
|
92
|
+
| `tui.input.endPendingInput` | `ctrl+c` | End a bracketed paste whose end sequence never came, or drop an unterminated terminal reply. The key is still passed on to the other bindings |
|
|
92
93
|
| `tui.select.up` | `up` | Move selection up |
|
|
93
94
|
| `tui.select.down` | `down` | Move selection down |
|
|
94
95
|
| `tui.select.pageUp` | `pageUp` | Page up in list |
|
|
@@ -155,6 +156,7 @@ On native Windows, `app.suspend` has no default because Windows terminals do not
|
|
|
155
156
|
| `app.models.save` | `ctrl+s` | Save the selected default model or scoped model configuration to settings |
|
|
156
157
|
| `app.thinking.cycle` | `shift+tab` | Cycle thinking level |
|
|
157
158
|
| `app.thinking.save` | `ctrl+s` | Save current thinking level to settings |
|
|
159
|
+
| `app.checklist.sidebar` | `alt+t` | Toggle checklist sidebar (120 columns minimum) |
|
|
158
160
|
| `app.thinking.toggle` | `ctrl+t` | Collapse or expand thinking blocks |
|
|
159
161
|
|
|
160
162
|
### Display and Message Queue
|
package/docs/llama-cpp.md
CHANGED
|
@@ -101,8 +101,8 @@ If the router disconnects, `/llama` shows **Retry** and **Close**. Retry reconne
|
|
|
101
101
|
|
|
102
102
|
Classifier models answer typed `choice`, `bool`, and `score` questions about JSON state, like TypeSafe's Jev models. The model reaches them from [`codemode`](cli.md#enable-codemode) scripts, and extensions through `ctx.modelRegistry.classify()`; see [Classifier models](models.md#use-classifier-models). HUMAIN Code CLI lists llama.cpp models as classifiers in two ways:
|
|
103
103
|
|
|
104
|
-
- **Decision models** such as [Julia-1, Laya, Kev, lev, and OpenJev](https://huggingface.co/collections/ggml-org/decision-models-6abf80cca3c83f127060a769) answer natively through llama.cpp's `/v1/systemone` endpoint. They appear only
|
|
105
|
-
- **Chat models** are also listed
|
|
104
|
+
- **Decision models** such as [Julia-1, Laya, Kev, lev, and OpenJev](https://huggingface.co/collections/ggml-org/decision-models-6abf80cca3c83f127060a769) answer natively through llama.cpp's `/v1/systemone` endpoint. They appear only under the `classifier` model type, with the `typesafe-system-one` API, and not in `/model`.
|
|
105
|
+
- **Chat models** are also listed under the `classifier` model type with the same ID and the `llama-cpp-classify` API, which reads answers from next-token probabilities as described below.
|
|
106
106
|
|
|
107
107
|
llama.cpp 0.6.0 and later report decision models in the router's model list: their `architecture.output_modalities` contains `decisions`. The router reads this from the GGUF metadata without loading the model, so HUMAIN Code CLI recognizes unloaded and sleeping decision models too. Older llama.cpp builds do not report it, and HUMAIN Code CLI lists their decision models as chat models.
|
|
108
108
|
|
package/docs/message-types.md
CHANGED
|
@@ -210,6 +210,7 @@ interface BashExecutionMessage {
|
|
|
210
210
|
cancelled: boolean;
|
|
211
211
|
truncated: boolean;
|
|
212
212
|
fullOutputPath?: string;
|
|
213
|
+
fullOutputError?: string; // why the full output could not be saved, when truncated
|
|
213
214
|
excludeFromContext?: boolean;
|
|
214
215
|
timestamp: number;
|
|
215
216
|
}
|
|
@@ -34,7 +34,7 @@ Each `models` entry adds a model to the provider. An entry whose `id` matches an
|
|
|
34
34
|
| `api` | string | | Overrides the provider api. |
|
|
35
35
|
| `baseUrl` | string | | Overrides the provider baseUrl. |
|
|
36
36
|
| `reasoning` | boolean | `false` | Whether the model supports thinking. |
|
|
37
|
-
| `thinkingLevelMap` | object | | Provider value sent for each thinking level.
|
|
37
|
+
| `thinkingLevelMap` | object | | Provider value sent for each thinking level. A string is sent to the provider; null hides the level. Levels left out use the provider's default value for off through high; xhigh and max are opt-in and only offered when mapped to a string. |
|
|
38
38
|
| `input` | `("text" \| "image")[]` | `["text"]` | |
|
|
39
39
|
| `inputLimits` | [object](#input-limits) | | |
|
|
40
40
|
| `cost` | object | | |
|
|
@@ -42,6 +42,7 @@ Each `models` entry adds a model to the provider. An entry whose `id` matches an
|
|
|
42
42
|
| `cost.output` | number | | Required. Output cost in USD per million tokens. |
|
|
43
43
|
| `cost.cacheRead` | number | | Required. Cache-read cost in USD per million tokens. |
|
|
44
44
|
| `cost.cacheWrite` | number | | Required. Cache-write cost in USD per million tokens. |
|
|
45
|
+
| `cost.imageOutput` | number | | Image output cost in USD per million tokens, for models that generate images. Image output tokens use this rate and the rest of output (text and reasoning) uses `output`. Unset means image tokens cost `output`. |
|
|
45
46
|
| `cost.tiers` | `object[]` | | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
|
|
46
47
|
| `cost.tiers[].inputTokensAbove` | number | | Required. Use this tier when total request input exceeds this token count. |
|
|
47
48
|
| `cost.tiers[].input` | number | | Required. Input cost in USD per million tokens. |
|
|
@@ -64,7 +65,7 @@ Each `modelOverrides` key is the ID of a built-in or extension model. Unknown ID
|
|
|
64
65
|
|---|---|---|---|
|
|
65
66
|
| `name` | string | | Display name, also matched by --model patterns. |
|
|
66
67
|
| `reasoning` | boolean | | Whether the model supports thinking. |
|
|
67
|
-
| `thinkingLevelMap` | object | | Provider value sent for each thinking level.
|
|
68
|
+
| `thinkingLevelMap` | object | | Provider value sent for each thinking level. A string is sent to the provider; null hides the level. Levels left out use the provider's default value for off through high; xhigh and max are opt-in and only offered when mapped to a string. |
|
|
68
69
|
| `input` | `("text" \| "image")[]` | | |
|
|
69
70
|
| `inputLimits` | [object](#input-limits) | | |
|
|
70
71
|
| `cost` | object | | |
|
|
@@ -72,6 +73,7 @@ Each `modelOverrides` key is the ID of a built-in or extension model. Unknown ID
|
|
|
72
73
|
| `cost.output` | number | | Output cost in USD per million tokens. |
|
|
73
74
|
| `cost.cacheRead` | number | | Cache-read cost in USD per million tokens. |
|
|
74
75
|
| `cost.cacheWrite` | number | | Cache-write cost in USD per million tokens. |
|
|
76
|
+
| `cost.imageOutput` | number | | Image output cost in USD per million tokens, for models that generate images. Image output tokens use this rate and the rest of output (text and reasoning) uses `output`. Unset means image tokens cost `output`. |
|
|
75
77
|
| `cost.tiers` | `object[]` | | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
|
|
76
78
|
| `cost.tiers[].inputTokensAbove` | number | | Required. Use this tier when total request input exceeds this token count. |
|
|
77
79
|
| `cost.tiers[].input` | number | | Required. Input cost in USD per million tokens. |
|
|
@@ -123,7 +125,7 @@ See [Describe model input and caching](models.md#describe-model-input-and-cachin
|
|
|
123
125
|
| `requiresThinkingAsText` | boolean | | Whether thinking blocks must be converted to text blocks with <thinking> delimiters. Default: auto-detected from URL. |
|
|
124
126
|
| `requiresReasoningContentOnAssistantMessages` | boolean | | Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. Default: auto-detected from URL. |
|
|
125
127
|
| `inlineThinkTags` | boolean | | Whether a leading <think>...</think> section in streamed content is reasoning and is parsed into thinking blocks. Default: false. |
|
|
126
|
-
| `thinkingFormat` | `"openai" \| "openrouter" \| "deepseek" \| "together" \| "baseten" \| "zai" \| "qwen" \| "chat-template" \| "qwen-chat-template" \| "string-thinking"
|
|
128
|
+
| `thinkingFormat` | `"openai" \| "openrouter" \| "deepseek" \| "ant-ling" \| "together" \| "baseten" \| "zai" \| "qwen" \| "chat-template" \| "qwen-chat-template" \| "string-thinking"` | | Format for reasoning or thinking parameters. When omitted, Pi auto-detects the format from the provider URL. "openai" uses reasoning_effort, "openrouter" uses reasoning.effort, "deepseek" (deprecated alias: "ant-ling") uses thinking.type plus reasoning_effort when supported, "together" uses reasoning.enabled plus reasoning_effort when supported, "baseten" uses configurable chat_template_args plus reasoning_effort when supported, "zai" uses thinking.type, "qwen" uses top-level enable_thinking, "qwen-chat-template" uses chat_template_kwargs.enable_thinking and preserve_thinking, "chat-template" uses configurable chat_template_kwargs, and "string-thinking" uses top-level thinking. |
|
|
127
129
|
| `chatTemplateKwargs` | object | | Kwargs sent as chat_template_kwargs when thinkingFormat is "chat-template". Use $var with "thinking.enabled", "thinking.effort", or "thinking.budget" for pi-controlled values. |
|
|
128
130
|
| `chatTemplateArgs` | object | | Arguments sent as chat_template_args when thinkingFormat is "baseten". Use $var with "thinking.enabled", "thinking.effort", or "thinking.budget" for pi-controlled values. |
|
|
129
131
|
| `openRouterRouting` | object | | OpenRouter provider routing preferences. Controls which upstream providers OpenRouter routes requests to. Sent as the provider field in the OpenRouter API request body. See https://openrouter.ai/docs/guides/routing/provider-selection. |
|
|
@@ -186,6 +188,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
186
188
|
| Field | Type | Default | Description |
|
|
187
189
|
|---|---|---|---|
|
|
188
190
|
| `supportsStrictMode` | boolean | `false` | Whether the model supports Bedrock strict tool schemas. |
|
|
191
|
+
| `supportsReasoningReplay` | boolean | `true` | Whether the model accepts reasoning blocks from earlier assistant messages. When false, earlier reasoning is not sent back. The generated catalog disables this for Kimi K3 models, which fail on Converse when it is sent. |
|
|
189
192
|
|
|
190
193
|
### `mistral-conversations`
|
|
191
194
|
|
|
@@ -194,6 +197,14 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
194
197
|
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message. |
|
|
195
198
|
| `supportsStrictMode` | boolean | `false` | Whether the model supports strict (schema-constrained) function tools. |
|
|
196
199
|
|
|
200
|
+
### `google-generative-ai`
|
|
201
|
+
|
|
202
|
+
Also applies to `google-vertex`.
|
|
203
|
+
|
|
204
|
+
| Field | Type | Default | Description |
|
|
205
|
+
|---|---|---|---|
|
|
206
|
+
| `supportsStrictMode` | boolean | | Whether the model enforces strict tools through Gemini's VALIDATED function-calling mode. Default: true for model IDs containing gemini-3 or a later version, such as gemini-3-pro or vendor-gemini-4-argon, false otherwise. Set true for Gemini 3+ models served under IDs without the version. |
|
|
207
|
+
|
|
197
208
|
### `typesafe-system-one`
|
|
198
209
|
|
|
199
210
|
Also applies to `cloudflare-workers-ai-system-one`.
|
package/docs/models.md
CHANGED
|
@@ -30,6 +30,12 @@ Keep `auth.json` and any credential commands private. Project settings and exten
|
|
|
30
30
|
|
|
31
31
|
Run `/model` to search available models. The picker shows models whose providers have usable authentication. Press Enter to use a model for the current session, or `Ctrl+S` to also save it as the default for new sessions.
|
|
32
32
|
|
|
33
|
+
For HUMAIN Node, Fuse, Gateway and Amazon Bedrock, `/model` defaults to curated suggestions after qualification and access checks. Select the **Show all qualified models** row and press Enter to toggle the full qualified inventory; this never grants access. Other providers and the native HUMAIN Code account picker are unchanged. Current and saved non-curated models remain listed with a retirement notice when still available in the qualified inventory; unavailable saved identities are not made selectable. Scoped references use the qualified inventory's model metadata, not stale scope metadata. Choose a replacement explicitly (and save it if desired); cancelling preserves the model and provider. Existing sessions and explicit model selection retain their identity.
|
|
34
|
+
|
|
35
|
+
Current/default choices stay pinned; other curated-provider suggestions follow the shared Node → Bedrock → Fuse → Gateway order. Explicit scoped choices are not hidden by curation, but still require qualification and access.
|
|
36
|
+
|
|
37
|
+
The HUMAIN Code model picker opened after sign-in stays locked to models enabled for that account. Tab does not switch to ordinary scopes, and `Ctrl+S` does not save a default there; use `/model` afterward to save a default.
|
|
38
|
+
|
|
33
39
|
Run `/thinking` to select the thinking level for the current model. Press `Ctrl+S` there to save the startup level. HUMAIN Code CLI limits the choices to levels supported by the selected model.
|
|
34
40
|
|
|
35
41
|
`Ctrl+P` cycles through available models. Use `/scoped-models` to control that cycle and save the selection, or configure model patterns through [Settings](settings.md#model-cycling).
|
|
@@ -113,6 +119,20 @@ Use `promptCache` to declare the provider's best-effort cache lifetime in second
|
|
|
113
119
|
|
|
114
120
|
Choose the conservative end of any published range. A model without a lifetime for the active tier is not eligible for cache warming. A `modelOverrides` entry can set `inputLimits` or `promptCache` for a built-in or extension model, including a model accessed through a validated proxy. See [`cacheWarming`](settings.md#model-and-thinking).
|
|
115
121
|
|
|
122
|
+
### Map thinking levels
|
|
123
|
+
|
|
124
|
+
Use `thinkingLevelMap` to choose which thinking levels `/thinking` offers and which provider value HUMAIN Code CLI sends for each:
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"id": "reasoning-model",
|
|
129
|
+
"reasoning": true,
|
|
130
|
+
"thinkingLevelMap": { "minimal": null, "xhigh": "xhigh", "max": "max" }
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
A string is sent to the provider as the effort value, and `null` hides the level. Levels left out use the provider's default value for `off` through `high`. `xhigh` and `max` are opt-in: HUMAIN Code CLI offers them only when the map gives them a string, which must be a value the provider accepts. Set the map in `models.json`, on a custom model or in a `modelOverrides` entry for a built-in model, not in `settings.json`.
|
|
135
|
+
|
|
116
136
|
### Configure sampling by thinking level
|
|
117
137
|
|
|
118
138
|
OpenAI-compatible APIs support free-form `samplingParams` model defaults and `samplingParamsByThinkingLevel` overrides. The latter uses HUMAIN Code CLI thinking-level keys (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`), not provider values from `thinkingLevelMap`:
|
|
@@ -141,9 +161,11 @@ HUMAIN Code CLI first clamps unsupported thinking levels, then merges model `sam
|
|
|
141
161
|
|
|
142
162
|
Compatibility settings should describe verified differences in the endpoint's request or response behavior. Do not enable them based only on an endpoint advertising OpenAI or Anthropic compatibility.
|
|
143
163
|
|
|
144
|
-
|
|
164
|
+
<a id="use-classifier-models"></a>
|
|
165
|
+
|
|
166
|
+
## Use decision models
|
|
145
167
|
|
|
146
|
-
|
|
168
|
+
Decision models (the `classifier` model type) do not chat. They answer typed questions about JSON state: pick one of several choices, answer yes or no, or give a score, each with probabilities. HUMAIN Code CLI includes TypeSafe's Jev model from these providers, Cloudflare's Clef, Clef Flash, and Clef Omni models from Workers AI and OpenRouter, and OpenAI's GPT-6 Luna through the [Decisions API](https://developers.openai.com/api/docs/guides/decisions):
|
|
147
169
|
|
|
148
170
|
| Provider | Model IDs | Authentication |
|
|
149
171
|
|---|---|---|
|
|
@@ -154,7 +176,7 @@ Classifier models do not chat. They answer typed questions about JSON state: pic
|
|
|
154
176
|
| `opencode` | `jev-1.13`, `jev-1.13-free` | `OPENCODE_API_KEY` |
|
|
155
177
|
| `openai` | `gpt-6-luna` | `OPENAI_API_KEY` |
|
|
156
178
|
|
|
157
|
-
Chat models on a [llama.cpp router](llama-cpp.md#classification) are also listed
|
|
179
|
+
Chat models on a [llama.cpp router](llama-cpp.md#classification) are also listed under the `classifier` model type.
|
|
158
180
|
|
|
159
181
|
OpenAI's Decisions API needs an API key. Sign in with ChatGPT credentials do not work with it, so `gpt-6-luna` is not listed as available while `openai` is logged in through `/login`, even when `OPENAI_API_KEY` is set; log out of `openai` to use the key. The API rejects inputs above 922K tokens, but requests that run longer than about five seconds, currently above roughly 600K input tokens, fail with a gateway timeout.
|
|
160
182
|
|
|
@@ -177,19 +199,19 @@ return result.answers;
|
|
|
177
199
|
|
|
178
200
|
[Codemode](codemode.md#classify) describes the question and answer types.
|
|
179
201
|
|
|
180
|
-
|
|
202
|
+
Decision models whose `input` includes `"image"` also judge images passed in `images`; other decision models return an error for them. Image input works with GPT-6 Luna, with Jev from `typesafe` and `cloudflare-workers-ai`, with Clef from `cloudflare-workers-ai`, and with the OpenRouter models whose catalog lists image input. Jev takes PNG and JPEG images, and image input is experimental on TypeSafe's own API. Clef takes PNG, JPEG, and WebP images, at most four per request. Jev from `vercel-ai-gateway` and `opencode` takes text only.
|
|
181
203
|
|
|
182
|
-
Each System One service takes images in its own request format, set by the model's `compat.imageInput`. Built-in models set it, so overriding a provider's `baseUrl` keeps it. A custom provider that proxies another service's
|
|
204
|
+
Each System One service takes images in its own request format, set by the model's `compat.imageInput`. Built-in models set it, so overriding a provider's `baseUrl` keeps it. A custom provider that proxies another service's decision models sets it in its provider-level `compat` in `models.json` (see [System One compatibility](models-configuration.md#typesafe-system-one)). OpenRouter in particular answers requests in TypeSafe's format without an error but drops the images.
|
|
183
205
|
|
|
184
206
|
When the service reports token counts, as all System One services do, `result.usage` carries them with their cost. HUMAIN Code CLI adds the usage of a script's classifier calls to the `codemode` tool result, so it counts toward the session cost in the footer and `/session`. The cost uses the model's catalog price; models without one, such as TypeSafe's direct `jev-latest`, report tokens at no cost.
|
|
185
207
|
|
|
186
|
-
Extensions call
|
|
208
|
+
Extensions call decision models through `ctx.modelRegistry.classify()`, without codemode. [Virtual models](virtual-models.md#route-requests) can use them to route requests; see the `jev-router.ts` example.
|
|
187
209
|
|
|
188
210
|
## Use image models
|
|
189
211
|
|
|
190
212
|
Image models generate images from a prompt and optional input images. HUMAIN Code CLI lists OpenRouter's image models, such as `google/gemini-2.5-flash-image` and `black-forest-labs/flux.2-pro`, under the `openrouter` provider; they use the same `OPENROUTER_API_KEY` or `/login` credential as its chat models.
|
|
191
213
|
|
|
192
|
-
Like
|
|
214
|
+
Like decision models, image models do not appear in `/model`; the model reaches them through the [`codemode`](cli.md#enable-codemode) tool. Scripts list them with `models.getAvailableOfType("image")` and call `models.generateImages(model, { input })`. The result's `output` holds base64 image blocks, which `image()` attaches to the `codemode` result so the model sees them:
|
|
193
215
|
|
|
194
216
|
```js
|
|
195
217
|
const painter = await models.getModelOfType("image", "openrouter", "google/gemini-2.5-flash-image");
|
package/docs/providers.md
CHANGED
|
@@ -65,7 +65,7 @@ This table covers providers with a single primary API-key variable. Providers th
|
|
|
65
65
|
| ZAI Coding Plan (China) | `ZAI_CODING_CN_API_KEY` |
|
|
66
66
|
| OpenCode Zen and Go | `OPENCODE_API_KEY` |
|
|
67
67
|
| Radius | `RADIUS_API_KEY` |
|
|
68
|
-
| TypeSafe ([
|
|
68
|
+
| TypeSafe ([decision models](models.md#use-decision-models)) | `TYPESAFE_API_KEY` |
|
|
69
69
|
| Hugging Face | `HF_TOKEN` |
|
|
70
70
|
| Fireworks | `FIREWORKS_API_KEY` |
|
|
71
71
|
| Together AI | `TOGETHER_API_KEY` |
|
|
@@ -100,7 +100,7 @@ To use a secret manager without writing the resolved key to disk, set a provider
|
|
|
100
100
|
}
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
HUMAIN Code CLI runs the command when the key is first needed and caches its standard output for the process lifetime. Empty output, a timeout, or a nonzero exit leaves the key unresolved
|
|
103
|
+
HUMAIN Code CLI runs the command when the key is first needed and caches its standard output for the process lifetime. Empty output, a timeout, or a nonzero exit leaves the key unresolved. `/login` shows `stored key did not resolve`; enter the same `!command` again to retry, or restart HUMAIN Code CLI.
|
|
104
104
|
|
|
105
105
|
## Provider Specific Config
|
|
106
106
|
|
|
@@ -275,6 +275,10 @@ Start with `humain-code --env dev`, `--env staging` (alias `stg`), or `--env pro
|
|
|
275
275
|
|
|
276
276
|
Use `/login humain-code-account`. A classified `503 hcode_unavailable` shows the same not-available-on-this-environment explanation as the menu; other HTTP rejections show the same status and sanitized message. Direct commands omit the menu's `[Retry]` label; run `/login humain-code-account` again to retry. An unreachable server still says `Can't reach <host>: check VPN/Zscaler, then try /login again.`; other unavailable readiness says `HUMAIN Code is unavailable for this environment. Try /login again later.` (with the selected environment suffix when applicable). Readiness proves presentation only, not account eligibility or model availability. Browser/device sign-in always displays the validated verification URI and user code for remote use; MFA remains issuer-controlled. Device-code polling retries DNS, connection and 5xx errors with backoff (1 s doubling to 30 s) until the code expires; an invalid token response still fails at once.
|
|
277
277
|
|
|
278
|
+
Device authorization uses PKCE S256: each sign-in attempt generates a fresh ephemeral verifier in memory, sends `code_challenge` and `code_challenge_method=S256` when requesting the device code, and sends the matching `code_verifier` when polling for tokens. The verifier is not saved to account files or generic credentials; a new login attempt uses a new verifier.
|
|
279
|
+
|
|
280
|
+
If sign-in says the credential storage directory is inside a Git repository, check the agent directory and **every ancestor** for a `.git` directory or worktree `.git` file. An enclosing repository counts even when the agent directory itself has no `.git`. Set `HUMAIN_TERMINAL_CODING_AGENT_DIR` to a private directory outside all Git repositories, restart with the same `--env`, and retry `/login humain-code-account`. Keep the agent directory outside the current working directory as well. Do not remove Git metadata or disable the guard to make login work; do not copy credentials into a checkout. A rejected storage path does not permit session-only fallback.
|
|
281
|
+
|
|
278
282
|
Persistent login encrypts private account files under the agent directory's `hcode/accounts/<environment>` with a purpose key in the OS keychain. Generic auth holds only an environment/account/generation reference, never access or refresh tokens. One native account is active per environment; native grants are not pooled or automatically switched. The saved sign-in is shared by every `humain-code` process that uses the same agent directory and environment: a terminal opened later starts signed in, and `/login` and `/model` re-read a sign-in or sign-out made in another terminal. A terminal started without `--env` targets production; when only another environment has a saved sign-in, startup and `/login status` name it and the `--env` flag that selects it.
|
|
279
283
|
|
|
280
284
|
Only genuine keychain unavailability permits the prompt **Secure keychain unavailable. Sign in for this session only?** Choose **Sign in for this session only** or **Cancel** before obtaining a grant. Corruption, unsafe permissions and cancellation are not permission to fall back. A session-only grant/reference/account ID stays in memory: no account/auth/pool/settings/session-JSONL/journal/tombstone writes and no overwrite of inaccessible saved state.
|
|
@@ -351,6 +355,10 @@ After saving the session, the CLI discovers models with `GET /ai-gateway/v1/mode
|
|
|
351
355
|
|
|
352
356
|
Run `/model` and pick a `humain-gateway` model. Only chat models your account is entitled to appear; models the Gateway blocks for HUMAIN Code are hidden and named in a warning with the reason. Press `Ctrl+S` on a model to make it the default for new sessions.
|
|
353
357
|
|
|
358
|
+
Image input follows each model's `input_modalities` from discovery, not a shipped model-name list. Only a nonempty array containing `text` and no values other than `text` or `image` is accepted; missing or malformed metadata defaults to text-only. Text-only models retain the existing image-omission notice instead of uploading images.
|
|
359
|
+
|
|
360
|
+
Gateway images must be inline base64 PNG or JPEG data, not remote URLs or file IDs. Before upload, the CLI refuses each image larger than 10 MiB decoded or whose headers report more than 40 megapixels or a side longer than 32768 pixels. Limits are inclusive; the checks do not decode pixels or resize images. Only recognizable PNG/JPEG headers with nonzero dimensions are accepted: unknown formats, unreadable or truncated headers, and zero dimensions fail closed with an instruction to use a valid inline PNG or JPEG. These header checks verify dimensions, not full image validity. Payload-hook images receive the same checks. The existing 20 MiB total request-body limit still applies, including base64 overhead; convert to PNG/JPEG or reduce or resize images locally after a refusal.
|
|
361
|
+
|
|
354
362
|
For print mode, sign in interactively once, then pass the provider and model:
|
|
355
363
|
|
|
356
364
|
```bash
|
|
@@ -394,6 +402,16 @@ After login, use `/model` to select a discovered Node model and submit a prompt
|
|
|
394
402
|
|
|
395
403
|
Only models advertising a supported text API, streaming, and tool calling are offered for coding. Node's model metadata chooses Responses, Chat Completions, or Messages and supplies context/output limits and image-input support. Catalogs are refreshed from Node and kept in memory, scoped to the active key and URL; Node models are unavailable offline after a restart. Image generation and realtime sessions are outside the coding model picker.
|
|
396
404
|
|
|
405
|
+
Node does not advertise reasoning capabilities. The CLI enables thinking only for these verified exact IDs on the Responses transport:
|
|
406
|
+
|
|
407
|
+
| Model IDs | Provider efforts |
|
|
408
|
+
| --- | --- |
|
|
409
|
+
| `gpt-5-mini`, `gpt-5-nano` | `low`, `medium`, `high` |
|
|
410
|
+
| `gpt-5.3-codex`, `gpt-5.5` | `low`, `medium`, `high`, `xhigh` |
|
|
411
|
+
| `gpt-5.6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-6-astra`, `gpt-6-luna`, `gpt-6-sol`, `gpt-6.1-sol`, `gpt-6.1-terra` | `low`, `medium`, `high`, `xhigh`, `max` |
|
|
412
|
+
|
|
413
|
+
These Node GPT models do not offer thinking off: the lowest provider effort is `low`. `minimal` maps to `low`; the CLI clamps an `off` selection to `minimal` and sends `low`, never `none` or an omitted reasoning field. Omitting reasoning is not off: Node defaults to `medium` on 11 of the 12 verified models (`gpt-5.3-codex` echoed `none`). Direct provider API calls without a reasoning selection can still omit the parameter; this does not disable server reasoning. Enabled reasoning requests ask for automatic summaries and encrypted reasoning content for subsequent turns. Chat-only and unverified IDs remain nonreasoning; Anthropic Messages models retain the shipped Anthropic thinking settings. Before extending the allowlist in [`node-provider.ts`](../src/humain/node-provider.ts), verify accepted efforts and actual reasoning output against Node, including streaming summaries and encrypted-content replay. Do not infer support from a model-family name or HTTP success alone.
|
|
414
|
+
|
|
397
415
|
Node's `max_output_tokens: 0` means the output limit is unknown. The model remains available with internal `maxTokens: 0`, and `--list-models` shows `unknown`. For these models, Chat Completions and Responses requests omit the output cap unless the caller supplies a positive `maxTokens`; zero does not mean unlimited output.
|
|
398
416
|
|
|
399
417
|
Token and cache usage reported by Node flows into the normal session statistics. Node's `/models` catalog can advertise per-million-token input, output and cached-input prices, but this provider currently leaves internal model cost fields at zero; those zeros mean unknown cost, not free usage. Flow and its evaluation harness reprice zero costs using a shipped, provider-scoped pricing snapshot, not a live billing lookup. The supplied API does not expose account spend or remaining quota. Use HUMAIN Node for billing and account usage reports.
|
package/docs/rpc-commands.md
CHANGED
|
@@ -486,7 +486,7 @@ Response:
|
|
|
486
486
|
}
|
|
487
487
|
```
|
|
488
488
|
|
|
489
|
-
If output was truncated, includes `fullOutputPath
|
|
489
|
+
If output was truncated, includes `fullOutputPath`, or `fullOutputError` with the reason when the full output could not be saved (for example a full temp directory). Output files are created in a private per-process directory, `pi-output-<pid>-<random>` under the temp directory, never at its top level; a saved output file keeps at most 256 MiB and then ends with a note:
|
|
490
490
|
```json
|
|
491
491
|
{
|
|
492
492
|
"type": "response",
|
|
@@ -497,7 +497,7 @@ If output was truncated, includes `fullOutputPath`:
|
|
|
497
497
|
"exitCode": 0,
|
|
498
498
|
"cancelled": false,
|
|
499
499
|
"truncated": true,
|
|
500
|
-
"fullOutputPath": "/tmp/pi-bash-abc123.log"
|
|
500
|
+
"fullOutputPath": "/tmp/pi-output-4242-k3J9x2/pi-bash-abc123.log"
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
```
|
|
@@ -845,6 +845,29 @@ Each command has:
|
|
|
845
845
|
|
|
846
846
|
**Note**: Built-in TUI commands (`/settings`, `/hotkeys`, etc.) are not included. They are handled only in interactive mode and would not execute if sent via `prompt`.
|
|
847
847
|
|
|
848
|
+
## Checklist
|
|
849
|
+
|
|
850
|
+
### get_checklist_task
|
|
851
|
+
|
|
852
|
+
Requires the startup [checklist progress gate](rpc.md#checklist-progress) and the enabled bundled checklist.
|
|
853
|
+
|
|
854
|
+
```json
|
|
855
|
+
{"id":"detail-1","type":"get_checklist_task","taskId":"abc"}
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
A successful response has `command: "get_checklist_task"`, `success: true`, and `data` containing:
|
|
859
|
+
|
|
860
|
+
- `task`: the same task summary as `get_state.checklistProgress.tasks`.
|
|
861
|
+
- `activity`: the 50 most recent entries, each with `at`, `tool`, `target` (160 UTF-16 code units), `outcome` (`ok`/`error`), nullable `exitCode`, `durationMs`, and `shared`.
|
|
862
|
+
- `activityOmitted`: count of older activity entries.
|
|
863
|
+
- `filesTouched`: `{ path, added, removed }` records; unknown line counts are `null`.
|
|
864
|
+
- `checks`: `{ command, outcome: "passed" | "failed", at }` records.
|
|
865
|
+
- `subagentRunIds`: linked subagent progress run IDs.
|
|
866
|
+
|
|
867
|
+
Use `taskId: "unassigned"` for calls started with no ongoing task. An unknown task returns `success: false`, `code: "TASK_NOT_FOUND"`, and a fixed non-sensitive `error`. When gated off or disabled the code is `UNKNOWN_COMMAND`; an oversized/unrepresentable detail returns `FRAME_TOO_LARGE`. Errors never echo task titles, paths or commands. The complete response is subject to the same byte and code-unit caps as `get_state`.
|
|
868
|
+
|
|
869
|
+
`get_state` and checklist tool end events expose the optional `checklistProgress` summary; see [bounds, merge and privacy rules](rpc.md#checklist-progress). Do not use presentation text as URL, route or authorization input.
|
|
870
|
+
|
|
848
871
|
## Model object
|
|
849
872
|
|
|
850
873
|
Model commands return the complete configured model definition. Costs are in US dollars per million tokens.
|
package/docs/rpc.md
CHANGED
|
@@ -68,6 +68,12 @@ A successful `prompt` response means the prompt was accepted, queued, or handled
|
|
|
68
68
|
|
|
69
69
|
Continue consuming [events](json.md) after that response. `agent_end` marks the end of one low-level agent run, but retries, overflow recovery, compaction, steering, or follow-up work can still follow. Wait for `agent_settled` when the client needs to know HUMAIN Code CLI will not continue automatically.
|
|
70
70
|
|
|
71
|
+
A prompt rejected while another run is active emits only its correlated `success:false` response, not a `run_end` for the active run. An idle prompt setup failure still emits its failure `run_end` before its failed response.
|
|
72
|
+
|
|
73
|
+
If `abort` arrives while prompt admission is pending (including `prompt` and `abort` in the same stdin write), cancellation is not acknowledged: the response is `success:false` with `data:{"reason":"prompt_pending"}` and an explanatory `error`. The prompt may still start. Keep consuming its response and retry `abort` once admission settles. This refusal also applies while an extension command or input hook is pending; it does not cancel an active native or Flow run. With no pending admission and no active native or Flow run, `abort` returns `success:false`, `data:{"reason":"no_active_run"}`, and an explanatory `error`, including when it precedes a prompt in the same stdin write. Refusal reasons live in the allowed `data` payload, not at the response top level. Active native and Flow cancellation behavior is unchanged.
|
|
74
|
+
|
|
75
|
+
Admission remains pending when a prompt is deferred by an asynchronous `agent_settled` extension handler, until that deferred prompt is accepted or rejected. `RpcClient.abort()` rejects refusal responses with the server's message and preserves the structured payload on the error's `data` property (including `data.reason`); a fulfilled call means cancellation was acknowledged.
|
|
76
|
+
|
|
71
77
|
Subscribe before sending a prompt to avoid missing a fast completion. `RpcClient.promptAndWait()` does this internally. If using separate `RpcClient` calls, install the event listener before `prompt()` and call `waitForIdle()` only while a run is active.
|
|
72
78
|
|
|
73
79
|
## Subagent progress
|
|
@@ -96,6 +102,20 @@ Consumers should use `(runtimeId, sessionEpoch)` from `get_state` or an authorit
|
|
|
96
102
|
|
|
97
103
|
Existing transcript-bearing `content` and `details` are unchanged and are not sanitized. Snapshot bounds do not bound complete frames or transport/downstream accumulation. No new progress events are emitted: a state change need not produce a push, so use `get_state` to resynchronize. When the subagent tool throws, the agent loop replaces the result, so `tool_execution_end` carries no `subagentProgress`; the run's final snapshot (`final: true`) is available via `get_state`. Live grandchild progress is not reported. No UI, Forge integration, or deployed-consumer compatibility is delivered; this is the phase-one CLI/contracts foundation.
|
|
98
104
|
|
|
105
|
+
## Checklist progress
|
|
106
|
+
|
|
107
|
+
Opt in with `HUMAIN_TERMINAL_RPC_CHECKLIST_PROGRESS=1` before starting RPC. The gate is read once; other values disable it. The bundled checklist must also be enabled and not replaced by `npm:pi-checklist`. Otherwise `checklistProgress` is absent and `get_checklist_task` returns `UNKNOWN_COMMAND`. This gate does not enable checklist tools in Flow implementers.
|
|
108
|
+
|
|
109
|
+
Enabled runtimes attach a top-level `checklistProgress` snapshot to checklist tool `tool_execution_end` events and return it in `get_state`. It contains `schemaVersion: 1`, `runtimeId`, `sessionEpoch`, `seq`, `complete`, status counts (including cancelled), and tasks in CLI display order. Each task includes `id`, `title`, `status`, `blocked`, `dependsOn`, nullable `notes`, `createdAt`, nullable `startedAt`/`endedAt`, `activityCount`, `filesTouchedCount`, and check counts (`passed`, `failed`). The snapshot is limited to 64 tasks, titles to 120 UTF-16 code units, and notes to 160. Invalid or oversized projections are omitted; coverage remains `complete: false` until epoch reset. Whole-response size limits still apply; checklist projection is omitted before the existing subagent/base-state fallbacks.
|
|
110
|
+
|
|
111
|
+
Within one `(runtimeId, sessionEpoch)`, replace only on a higher `seq`. A different pair requires `get_state` resynchronization. Session/branch reconstruction resets activity and rotates the epoch; process identity stays fixed. Disconnect means stale, not cancelled. Absence means unavailable, not an empty checklist.
|
|
112
|
+
|
|
113
|
+
[`get_checklist_task`](rpc-commands.md#get_checklist_task) returns bounded activity and derived file/check/subagent links, including the reserved `unassigned` bucket. Calls are attributed to tasks ongoing at start, with `shared: true` for multiple owners. The last 50 activities are retained; older entries remain counted. Full tool output is never copied into the projection. Subagent live rows are derived locally even without the subagent RPC gate.
|
|
114
|
+
|
|
115
|
+
Replay reconstructs starts from persisted tool-result timestamps and durations and replays status snapshots chronologically. It does not add persisted activity data. Calls without a matching persisted assistant call cannot be reconstructed. Nested codemode lifecycle events have no individual persisted tool results: replay marks coverage incomplete for such sessions rather than claiming parity with live attribution. Exact wall-clock start events and transient subagent updates are not retained by the session format.
|
|
116
|
+
|
|
117
|
+
Titles, notes, commands, paths and targets are tenant-sensitive transcript content. Render as escaped plain text, apply transcript access controls and retention, never send to logs, telemetry or analytics, and never use as URL, route or authorization input. Truncation is not redaction. Contracts and safe readers are exported from `@humain/humain-code-contracts/rpc` (`parseChecklistProgressSnapshot`, `parseChecklistTaskDetail`, `readRpcChecklistProgress`).
|
|
118
|
+
|
|
99
119
|
## Errors
|
|
100
120
|
|
|
101
121
|
A failed command returns one response with `success: false`:
|
package/docs/run-preflight.md
CHANGED
|
@@ -30,7 +30,7 @@ The shared vocabulary, class/code validation, and exit codes live in the narrow
|
|
|
30
30
|
|
|
31
31
|
Headless sessions produce `acceptance_started`, `acceptance_verification_start`, and `acceptance_settled` events with `completion: verified | partial | unverified` and criterion-specific evidence. The PHC-VERIFY acceptance ledger preserves unsupported requirements as uncheckable; assistant claims alone never prove them. `@file` attachments sent with other prompt text (a message or piped input) are data: they add no criteria and authorize no checks, though text in them that restricts running or reading still withholds automatic checks; a prompt that is only attachments is the task, but a command in an attachment is listed and never run automatically, even then. The exception is an attached document (`.md`, `.markdown`, `.txt`, `.rst`, `.adoc`) that the whole instruction hands the work to, as one sentence in the fixed form `DELEGATION` in `src/core/acceptance-ledger.ts` defines: lead-ins such as "please" or "your task is to"; implement, follow, fulfil or fulfill, satisfy, or carry out; optionally "(all of) the/these/this <spec, requirements, steps, …> in", "from", "of", "described in" or "listed in"; then document names, optionally after "the attached" and separated by spaces, commas or "and", or "the/this attached <file, spec, …>" or "the/this attachment"; then at most a trailing word such as "please" or "exactly". Examples are "Follow requirements.md." and "Implement the spec in the attached file.". "Attached …" and "attachment" without a name count only when the one attached file is a document, and a name that matches two attached documents counts for neither. The instruction must be that sentence alone, ending with "." or "!" or nothing, not "?". Any other wording, or any other text in the instruction, leaves attachments as data, since it could narrow or withdraw the handover. A delegated document's lines are added as criteria, but only its explicit file lines are checked: commands in it never run, files it mentions are not read, and its exact-output lines are not compared with the reply. If the prompt is rewritten so that the attached text can no longer be found, no automatic check runs. Exact requested output is compared locally. Explicit file and test requirements may use one local verification round (at most eight checks, sharing a 30-second deadline), through the normal tool permission and raw-observation pipeline, without another model request. Task restrictions and disabled tools are respected; later mutations invalidate stale evidence. Settlement is persisted and printed in text mode.
|
|
32
32
|
|
|
33
|
-
For multiple command criteria, the final round can preserve earlier command evidence only when the exact local executor proves read-only execution. On Linux x64/arm64 this uses an already-installed `/usr/bin/bwrap` with private namespaces, read-only host mounts, fresh devices, dropped capabilities, disabled nested user namespaces, and a seccomp filter denying external socket access and io_uring. No command-name or test-file whitelist establishes immutability.
|
|
33
|
+
Every final-round command, including a single command criterion, uses the same read-only admission. For multiple command criteria, the final round can preserve earlier command evidence only when the exact local executor proves read-only execution. On Linux x64/arm64 this uses an already-installed `/usr/bin/bwrap` with private namespaces, read-only host mounts, fresh devices, dropped capabilities, disabled nested user namespaces, and a seccomp filter denying external socket access and io_uring. No command-name or test-file whitelist establishes immutability. A completed isolated check retains read-only custody on both zero and nonzero exit: passing acceptance settles to 0, and an actual failed test settles to 25. Completion requires matching start (`child-pid`) and exec-confirmed completion (`exit-code`) JSON documents on the dedicated `--json-status-fd 4` channel, not the backend process exit or command stdout/stderr. Bubblewrap closes this FD in the sandbox child and gates completion on successful exec ([native implementation](https://github.com/containers/bubblewrap/blob/v0.11.0/bubblewrap.c)). Missing, malformed, oversized, incomplete or mismatched metadata fails closed. Backend failures after a successful admission probe and shell cannot-execute/not-found exits remain typed `execution-unconfirmed` (26), not failed tests (25); shell statuses at or above 126 are conservatively unconfirmed, including signal exits. An installed backend without this metadata protocol cannot issue receipts. Nonzero isolated commands are never retried outside isolation. Tests that require writes or external services may fail under these restrictions; this failure is not permission to rerun with broader access. Read-only receipts attest immutability, not success, so failed isolated checks can also preserve earlier command evidence. Custom/remote executors, transformed command prefixes, unsupported platforms, and unavailable kernel/backend isolation retain conservative invalidation; no sandbox is installed automatically. On macOS (Darwin) and other unsupported hosts, commands still run through the normal authorized executor, but unrestricted executables such as `node --test` retain lifetime uncertainty even after exit zero; their settlement remains unverified (exit 26), with the typed criterion `isolationReason: unsupported-platform`. Unsupported architectures report `unsupported-architecture`, unavailable or refused backends report `backend-unavailable`, and an admitted execution without a completed exact-local-execution receipt reports `execution-unconfirmed`. These reasons are also included in criterion evidence. This fallback does not relax effect custody or clear its uncertainty latch. The single-command regression checks admission on every host and real command exit results; verified Linux success requires a working isolation backend, not just an installed binary. The companion `209-isolated-command-settlement.test.ts` uses a Linux-semantics spawn stub on Darwin/POSIX to exercise actual Node tests, nonzero no-retry behavior, receipt settlement, unavailable/refused checks and interruption. This stub verifies executor/ledger logic, not Linux namespace or seccomp security; native Linux backend verification is still required for that guarantee. Session-owned foreground and background launches retain effect custody after their starting tool call returns. An unrestricted executable can detach a descendant into a new process group, so absence or termination of the original group does not prove quiescence. Such launches retain explicit uncertainty for that session, including across task boundaries and after group cleanup; command/file evidence cannot establish final-state completion. The executor can avoid this uncertainty for OS-confined acceptance commands and a narrow launch-free grammar of literal `/bin/bash` builtins (`printf`, `echo`, `true`, `false`, `:`), with optional output redirection and no expansions, operators, startup scripts, imported functions or loader overrides. The `printf` subset accepts a literal non-option format with only `%s` and `%%` conversions, followed by literal arguments; assignment options, `%n`, and other conversions retain uncertainty. `echo`, `true`, `false`, and `:` do not evaluate their literal arguments. Launch-free does not mean read-only: redirects still invalidate earlier evidence. Other commands still execute normally, but without a lifetime receipt. Verification never kills a daemon or signals an escaped process merely to obtain proof. This does not protect against independent host processes or trusted extensions modifying state outside observed tool calls.
|
|
34
34
|
|
|
35
35
|
An unmet criterion takes precedence over a verified claim. Partial results without unmet criteria remain unverified. Missing, interrupted, or unavailable verification conservatively returns 26. Interactive sessions and SDK sessions without the headless gate do not enable automatic acceptance checks.
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ Internal OAuth exhaustion and account-pool failures stop further submissions but
|
|
|
40
40
|
|
|
41
41
|
RPC remains resident after a failed preflight and accepts another request. Its orderly exit reflects the last settled/rejected task. Existing signal exit conventions remain unchanged. Agent-exec retains its single-response stdout protocol; admission failures emit `run_end` to stderr. Main runtime setup failures use stdout for JSON/RPC and stderr otherwise.
|
|
42
42
|
|
|
43
|
-
Subagents preserve and merge completed-wrong/unverified edits while retaining their nonzero result and useful output. They do not retry those outcomes as provider failures. Chains do not proceed past a failed verification result. Flow consumes authoritative terminal frames from both child and experimental in-process transports and
|
|
43
|
+
Subagents preserve and merge completed-wrong/unverified edits while retaining their nonzero result and useful output. They do not retry those outcomes as provider failures. Chains do not proceed past a failed verification result. Flow consumes authoritative terminal frames from both child and experimental in-process transports. A normally stopped, settled child with final text and an authoritative completed-unverified frame may proceed to Flow's own verification after process exit 0 or 26; this is dispatch completion, not verified acceptance. Bare exit 26 and other known failure exits never become successful teardown recovery; see [child completion and verification](../../flow/docs/executors.md#child-completion-and-verification). Unresolved in-process effect custody remains a nonzero failure even after verified acceptance.
|
|
44
44
|
|
|
45
45
|
## OAuth refresh coordination
|
|
46
46
|
|
package/docs/session-format.md
CHANGED
|
@@ -229,6 +229,15 @@ Entries normally form one tree, but navigation APIs can create multiple roots:
|
|
|
229
229
|
- The "leaf" is the current position in the tree
|
|
230
230
|
- Calling `resetLeaf()` or `branchWithSummary(null, ...)` allows a later entry to become another root
|
|
231
231
|
|
|
232
|
+
### Damaged files
|
|
233
|
+
|
|
234
|
+
HUMAIN Code CLI reads a damaged session file without rewriting it:
|
|
235
|
+
- Lines that do not parse, and lines after the header that parse but are not entries (`{}`, `42`, or a version 2+ record without an `id`), are skipped.
|
|
236
|
+
- When a skipped line held an entry's parent, that entry is linked to the entry before it in the file, in memory only, and a warning is printed. This applies only to files whose parents all come before their children, as appending writes them. Files with forward references, such as imported ones, are left as they are.
|
|
237
|
+
- Parent links that form a cycle are cut where the walk from the leaf meets an entry again. That entry becomes a root in branches, the tree, branch summaries and HTML exports.
|
|
238
|
+
- A repeated `id` is placed once in the tree, by its last definition.
|
|
239
|
+
- Before appending, an unfinished last line (from a failed or interrupted write) is ended with a newline so the next entry starts on its own line. A failed write's partial line is not truncated, because another process may have appended to the file since.
|
|
240
|
+
|
|
232
241
|
```
|
|
233
242
|
[user msg] ─── [assistant] ─── [user msg] ─── [assistant] ─┬─ [user msg] ← current leaf
|
|
234
243
|
│
|
package/docs/settings.md
CHANGED
|
@@ -18,9 +18,14 @@ Add `"$schema": "https://code.humain.com/schemas/settings.schema.json"` to `sett
|
|
|
18
18
|
| `thinkingBudgets` | object | Built-in budgets | Token budgets for `minimal`, `low`, `medium`, and `high` thinking levels. |
|
|
19
19
|
| `enabledModels` | `string[]` | All available models | Model patterns used for startup selection and model cycling. Uses the same format as `--models`. |
|
|
20
20
|
| `hideThinkingBlock` | boolean | `false` | Hide thinking blocks in the transcript. |
|
|
21
|
-
| `
|
|
21
|
+
| `notices.cacheMisses` | boolean | `false` | Show when a response re-bills a significant part of the prompt cache. |
|
|
22
|
+
| `notices.cacheWarming` | boolean | `false` | Show the cost of cache warming requests. |
|
|
23
|
+
| `notices.compactionCosts` | boolean | `false` | Show the cost of compactions and branch summaries. |
|
|
24
|
+
| `notices.reasoningDrops` | boolean | `false` | Show when a provider drops reasoning items during recovery. |
|
|
22
25
|
| `cacheWarming` | `"off" \| "streaming" \| "idle"` | `"streaming"` | Keep eligible provider prompt caches warm during active runs or, with `"idle"`, between runs. Global setting only. |
|
|
23
26
|
|
|
27
|
+
HUMAIN Code CLI migrates `showCacheMissNotices` to all four `notices` keys. An explicitly set `notices` key takes precedence over the legacy value.
|
|
28
|
+
|
|
24
29
|
Cache warming runs only when the model declares a cache lifetime and HUMAIN Code CLI estimates at least $0.05 in avoided cache-miss cost. Refresh usage counts toward session totals but does not enter model context. `/session` shows the next decision; extensions can override it with `cache_warming_decision`. See [Prompt Cache Lifetimes](models.md#prompt-cache-lifetimes).
|
|
25
30
|
|
|
26
31
|
See [Choose a Model](models.md) for model selection and thinking controls.
|
|
@@ -112,6 +117,31 @@ This replaces `bash` with `powershell` and enables `grep`: `["-bash", "+powershe
|
|
|
112
117
|
|
|
113
118
|
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).
|
|
114
119
|
|
|
120
|
+
## Checklist
|
|
121
|
+
|
|
122
|
+
The bundled checklist provides `checklist_create`, `checklist_read`, `checklist_update` and `/checklist`.
|
|
123
|
+
Use `/settings` → Checklist (also accessible through `/checklist settings`). Changes apply next session.
|
|
124
|
+
|
|
125
|
+
The sidebar heading and compact status both count done and cancelled tasks as resolved (cancelled tasks retain their `✗` row glyph).
|
|
126
|
+
|
|
127
|
+
Other native task views consume the same session through `getChecklistProvider()` from `src/humain/checklist/index.ts`: `current()` reads the current task views and `subscribe(listener)` returns an unsubscribe callback. No polling or second checklist store is needed. A fullscreen sidebar integration must suppress this overlay and the compact Tasks segment only while its own Tasks surface is visible, and reuse `app.checklist.sidebar` rather than register a second task-toggle binding.
|
|
128
|
+
|
|
129
|
+
Status-line owns the while-building `Tasks` segment and its rendering. The bundled checklist supplies pure `getChecklistStatusSegment(): { text: string } | undefined` from `src/humain/checklist/index.ts`: `Tasks 1/4 ●1`, with `‖` when blocked and nonzero ongoing counts only. Empty checklists supply nothing; completed/cancelled work supplies `✓ 4/4` until the next user prompt. `/checklist show|hide` controls segment availability, not footer layout.
|
|
130
|
+
|
|
131
|
+
`/checklist sidebar [on|off]` toggles a 40-column, non-capturing overlay; `app.checklist.sidebar` defaults to `alt+t`. While visible, the sidebar suppresses the provider segment. Below 120 columns the sidebar hides and the segment becomes available again. The overlay covers chat rather than reflowing it. MR-B owns this sidebar and provider only: no footer modifications, no `Last event` idle-only change, no `/settings` hint removal, and no `setFooterProgress` API.
|
|
132
|
+
|
|
133
|
+
Human checklist output shows task titles, not internal task IDs; dependency references use titles too.
|
|
134
|
+
`/checklist add [text]` accepts a title and optional dependency selections in the TUI and allocates an ID automatically.
|
|
135
|
+
Machine-facing tool text and snapshots retain IDs for subsequent updates. When a tool result has no task snapshot,
|
|
136
|
+
the human transcript reports that the snapshot is unavailable rather than echoing ID-bearing machine diagnostics.
|
|
137
|
+
|
|
138
|
+
| Setting | Type | Default | Description |
|
|
139
|
+
|---|---|---|---|
|
|
140
|
+
| `checklist.enabled` | boolean | `true` | Register checklist tools and command. Disabled sessions can still replay older checklist entries. |
|
|
141
|
+
| `checklist.sidebarPinned` | boolean | `false` | Pin the checklist sidebar at session start (requires 120 terminal columns). |
|
|
142
|
+
|
|
143
|
+
Remove `npm:pi-checklist` (including pinned versions) from package settings. While configured, it replaces the bundled copy and a migration warning is shown once.
|
|
144
|
+
|
|
115
145
|
## Sessions and context
|
|
116
146
|
|
|
117
147
|
| Setting | Type | Default | Description |
|
|
@@ -186,7 +216,7 @@ See [Themes](themes.md) and [Terminal Setup](terminal-setup.md) for format and p
|
|
|
186
216
|
|
|
187
217
|
`workingIndicator` defaults to `rotate`: one random choice of `life`, `rain`, or `decode` per interactive session, stable across turns and settings previews. Set an explicit style to pin it; switching back to `rotate` restores the session's original choice without another random draw. Supported pins are `classic` (the existing braille frames, capped at 10 updates/s like all working indicators), `life` (6/8/10 binary cells with a Working suffix, 3–10 updates/s), `rain` (4–12 falling-bit columns with elapsed time and level on the right), or `decode` (binary scramble resolving left to right into the current action). Higher thinking levels lengthen decode scrambling and increase rain speed (4–12 rows/s, computed at a fixed 10 Hz) and trail length. Rain's inner rule uses the same thinking-level color as the editor border. Decoded labels hold until the phase changes: Thinking for reasoning, Writing for text, and Reading/Editing/Running/Searching for tools. Animation uses only the active model's thinking level; non-reasoning models use off.
|
|
188
218
|
|
|
189
|
-
`reducedMotion: true` disables working animation (default `false`). Redirected output and `NO_COLOR` also use a still frame of the selected style (decode shows the resolved phase). Print and JSON modes do not create these interactive animations. `/settings` offers both settings and previews changes immediately; the preview stops when settings close. A still-running response restores its working indicator only when no retry, compaction, or summary indicator owns the status area. While settings are open, the preview replaces the working animation rather than running alongside it. Thinking-level and theme changes update the visible animation without resetting elapsed time; decoded words stop ticking while held. Extension-supplied working-indicator frames retain precedence over built-in styles.
|
|
219
|
+
`reducedMotion: true` disables working animation (default `false`). Redirected output and `NO_COLOR` also use a still frame of the selected style (decode shows the resolved phase). Print and JSON modes do not create these interactive animations. `/settings` offers both settings and previews changes immediately; the preview stops when settings close. A still-running response restores its working indicator only when no retry, compaction, or summary indicator owns the status area. While settings are open, the preview replaces the working animation rather than running alongside it. Thinking-level and theme changes update the visible animation without resetting elapsed time; decoded words stop ticking while held. Extension-supplied working-indicator frames retain precedence over built-in styles. Manual and automatic compaction, branch summaries, and retry countdowns use the same session-selected style, reduced-motion setting, and extension frames in the same status area. During decode, maintenance countdowns and cancellation hints remain readable while the state word resolves. Maintenance labels take priority over model, context, and optional status fields. At narrow widths the label shortens before the cancellation hint; below the width of the configured cancel hint itself, physical terminal clipping is unavoidable. The working state's existing 24-column budget is unchanged.
|
|
190
220
|
|
|
191
221
|
The built-in HUMAIN thinking-border colors follow this ramp. Light colors are darkened for at least 3:1 contrast against white and the theme's export/editor-panel backgrounds (minimum measured ratio: 3.435:1). Terminal background overrides can change contrast.
|
|
192
222
|
|
|
@@ -208,9 +238,9 @@ Each visible working indicator owns at most one timer, capped at 10 frames/s and
|
|
|
208
238
|
|---|---|---|---|
|
|
209
239
|
| `transport` | `"auto" \| "sse" \| "websocket" \| "websocket-cached"` | `"auto"` | Preferred transport for AI providers that support multiple transports. |
|
|
210
240
|
| `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.** |
|
|
211
|
-
| `httpIdleTimeoutMs` | number \| `"disabled"` | `300000` | HTTP header and body idle timeout in milliseconds. Set to `0` or `"disabled"` to disable. |
|
|
241
|
+
| `httpIdleTimeoutMs` | number \| `"disabled"` | `300000` | HTTP header and body idle timeout in milliseconds. Set to `0` or `"disabled"` to disable. Values above `2147483647` (about 24.8 days) also disable it. |
|
|
212
242
|
| `noProgressTimeoutMs` | positive integer | `120000` | Abort model streams after this many milliseconds without meaningful progress. Range: `1`–`2147483647`; cannot be disabled. When unset, HUMAIN Code account requests use `330000`; a configured value applies to every provider. |
|
|
213
|
-
| `websocketConnectTimeoutMs` | number \| `"disabled"` | `15000` | WebSocket connection timeout in milliseconds. Set to `0` or `"disabled"` to disable. |
|
|
243
|
+
| `websocketConnectTimeoutMs` | number \| `"disabled"` | `15000` | WebSocket connection timeout in milliseconds. Set to `0` or `"disabled"` to disable. Values above `2147483647` (about 24.8 days) also disable it. |
|
|
214
244
|
| `retry.enabled` | boolean | `true` | Enable automatic agent-level retry for transient failures. |
|
|
215
245
|
| `retry.maxRetries` | number | `3` | Maximum agent-level retry attempts. |
|
|
216
246
|
| `retry.baseDelayMs` | number | `2000` | Initial exponential-backoff delay in milliseconds. |
|
|
@@ -249,7 +279,7 @@ Resource arrays support glob exclusions with `!pattern`, exact inclusion with `+
|
|
|
249
279
|
|
|
250
280
|
The built-in extensions are named `builtin:mcp`, `builtin:llama.cpp`, `builtin:codemode`, and `builtin:tool-search` in `extensions`. They load by default; `-builtin:mcp` disables one. A `+builtin:<name>` or `-builtin:<name>` entry in project settings overrides the user setting. `humain-code config` lists them under Built-in. `--no-extensions` disables them too, and `-e builtin:<name>` loads one explicitly.
|
|
251
281
|
|
|
252
|
-
## Updates
|
|
282
|
+
## Updates and warnings
|
|
253
283
|
|
|
254
284
|
| Setting | Type | Default | Description |
|
|
255
285
|
|---|---|---|---|
|
package/docs/shell-aliases.md
CHANGED
|
@@ -13,7 +13,7 @@ Use `shellPath` to choose the Bash executable and `shellCommandPrefix` to run se
|
|
|
13
13
|
| Model calls the optional `powershell` tool | PowerShell 7 (`pwsh.exe`) or Windows PowerShell |
|
|
14
14
|
| An extension provides or replaces a shell tool | The operations implemented by that extension |
|
|
15
15
|
|
|
16
|
-
HUMAIN Code CLI normally invokes Bash with `bash -c`. On Unix systems, it uses `/bin/bash`, then `bash` on `PATH`, and finally `sh` when Bash is unavailable. Native Windows first checks the configured path, then Git Bash, then `bash.exe` on `PATH`.
|
|
16
|
+
HUMAIN Code CLI normally invokes Bash with `bash -c`. On Unix systems, it uses `/bin/bash`, then `bash` on `PATH`, and finally `sh` when Bash is unavailable. Native Windows first checks the configured path, then Git Bash under Program Files, then Git Bash associated with `git.exe` on `PATH`, then `bash.exe` on `PATH`.
|
|
17
17
|
|
|
18
18
|
## Choose a Bash executable
|
|
19
19
|
|
package/docs/slash-commands.md
CHANGED
|
@@ -103,7 +103,9 @@ Review a session before exporting or sharing it. Sessions can contain prompts, t
|
|
|
103
103
|
| `/reload` | Reload keybindings, extensions, skills, templates, themes, and context files |
|
|
104
104
|
| `/hotkeys` | Show active keyboard shortcuts |
|
|
105
105
|
| `/changelog` | Show changelog entries |
|
|
106
|
-
| `/quit` | Quit HUMAIN Code CLI |
|
|
106
|
+
| `/quit`, `/exit` | Quit HUMAIN Code CLI (same shutdown and extension cleanup) |
|
|
107
|
+
|
|
108
|
+
These are interactive commands. In RPC and print/headless modes, neither command has built-in shutdown behavior.
|
|
107
109
|
|
|
108
110
|
## Commands added by resources
|
|
109
111
|
|