@humain/humain-code 0.8.2 → 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 +152 -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-PJXBU6CR.js → chunk-52642TYH.js} +394 -204
- 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-EFY2QPVP.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-U4EAJPMO.js → chunk-EVDQRT3I.js} +252 -371
- 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-G2QMON4O.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-H2B3WLIM.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-S2US54IU.js +37 -0
- package/dist/bundle/chunks/{chunk-H7UPU2SH.js → chunk-SOE25WIS.js} +1218 -1239
- 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-ELBUCH6U.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-NERIS6SW.js → dist-7PCCEUQF.js} +2 -2
- package/dist/bundle/chunks/{dist-QSYDYE3Y.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-SRYLSS5P.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-3P3BHQ7E.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-3PDJKE5F.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/adapter/delivery.d.ts +27 -0
- package/dist/coordination/adapter/delivery.d.ts.map +1 -1
- package/dist/coordination/adapter/delivery.js +164 -4
- package/dist/coordination/adapter/delivery.js.map +1 -1
- package/dist/coordination/adapter/index.d.ts.map +1 -1
- package/dist/coordination/adapter/index.js +31 -5
- package/dist/coordination/adapter/index.js.map +1 -1
- package/dist/coordination/adapter/presence.d.ts +5 -0
- package/dist/coordination/adapter/presence.d.ts.map +1 -1
- package/dist/coordination/adapter/presence.js +25 -3
- package/dist/coordination/adapter/presence.js.map +1 -1
- package/dist/coordination/adapter/question-routing.d.ts +7 -0
- package/dist/coordination/adapter/question-routing.d.ts.map +1 -0
- package/dist/coordination/adapter/question-routing.js +40 -0
- package/dist/coordination/adapter/question-routing.js.map +1 -0
- package/dist/coordination/adapter/receipts.d.ts +7 -0
- package/dist/coordination/adapter/receipts.d.ts.map +1 -1
- package/dist/coordination/adapter/receipts.js +25 -2
- package/dist/coordination/adapter/receipts.js.map +1 -1
- package/dist/coordination/adapter/tool.d.ts +19 -3
- package/dist/coordination/adapter/tool.d.ts.map +1 -1
- package/dist/coordination/adapter/tool.js +93 -19
- package/dist/coordination/adapter/tool.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/coordination/client/client.d.ts +2 -2
- package/dist/coordination/client/client.d.ts.map +1 -1
- package/dist/coordination/client/client.js +4 -0
- package/dist/coordination/client/client.js.map +1 -1
- package/dist/coordination/transport/protocol.d.ts.map +1 -1
- package/dist/coordination/transport/protocol.js +23 -0
- package/dist/coordination/transport/protocol.js.map +1 -1
- package/dist/coordination/transport/types.d.ts +11 -1
- package/dist/coordination/transport/types.d.ts.map +1 -1
- package/dist/coordination/transport/types.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 +20 -10
- 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/oauth-account-pool.d.ts +14 -0
- package/dist/core/oauth-account-pool.d.ts.map +1 -1
- package/dist/core/oauth-account-pool.js +166 -14
- package/dist/core/oauth-account-pool.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/run-outcome.d.ts +1 -1
- package/dist/core/run-outcome.d.ts.map +1 -1
- package/dist/core/run-outcome.js +2 -2
- package/dist/core/run-outcome.js.map +1 -1
- package/dist/core/run-preflight.d.ts.map +1 -1
- package/dist/core/run-preflight.js +15 -8
- package/dist/core/run-preflight.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 +38 -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 +45 -3
- package/docs/codemode.md +7 -3
- package/docs/compaction.md +1 -1
- package/docs/coordination.md +16 -4
- package/docs/development.md +6 -0
- package/docs/environment-variables.md +5 -3
- 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 +25 -3
- 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-3PJ7NPWN.js +0 -80
- package/dist/bundle/chunks/chunk-6JTCRCNF.js +0 -74
- 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-JQBZUFH7.js +0 -3580
- 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-UEW6TUSP.js +0 -36
- 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/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-SDUO5OLD.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-IU5KWB2C.js +0 -28
package/docs/coordination.md
CHANGED
|
@@ -10,7 +10,7 @@ Turn it off with `--no-coordinate`, the `coordination.enabled` setting, or `--no
|
|
|
10
10
|
|
|
11
11
|
## Messages
|
|
12
12
|
|
|
13
|
-
The agent uses the `coordination` tool with `peers`, `send`,
|
|
13
|
+
The agent uses the `coordination` tool with `peers`, `ask`, `send`, `broadcast`, `inbox` and `resolve` for messages. Its record, artifact and handoff actions are described in [Shared records](#shared-records), [Artifacts](#artifacts) and [Handoffs and integration](#handoffs-and-integration). Incoming messages appear as advisory cards with `repo · branch — focus (handle)`. The session name replaces a missing focus; missing location parts are omitted. Handles are the shortest unique suffix of a session ID among live sessions, at least four characters, with hyphens removed. They grow when suffixes collide. Metadata is sanitized, bounded and displayed as literal text, never markup or commands.
|
|
14
14
|
|
|
15
15
|
Cards are on by default, with no extra setting. Incoming cards start with `⇠ peer`; outgoing sends start with `⇢ to` and show `✓ delivered`, `⏳ queued`, or `✗ failed: <reason>`. Uncertain delivery stays explicitly uncertain: it is not confirmation or permission to send a new message. The existing expand-tool-output keybinding (`ctrl+o` by default) reveals the full sender or recipient ID and message ID. Inbound expansion also shows the worktree path and the full safety sentence. The model still receives the original full peer header, disclaimer and message body, and unchanged send-result text.
|
|
16
16
|
|
|
@@ -18,13 +18,25 @@ Cards are on by default, with no extra setting. Incoming cards start with `⇠ p
|
|
|
18
18
|
|
|
19
19
|
1. Run `coordination action:"peers"` with optional `repo`, `query` and `path` filters. Results are grouped by repository, your repository first. Filters combine with AND: `repo` is a case-insensitive label substring, `query` matches repository, branch, name or focus, and `path` is a prefix of the session's repository-relative working directory or written paths. Each result includes focus and at most five matching written paths per session. Brackets in displayed paths are percent-escaped (`[` as `%5B`, `]` as `%5D`; existing `%` becomes `%25`). Oversized lists are truncated; narrow the filters.
|
|
20
20
|
2. Send to the chosen session with `action:"send" to:"<session id>" text:"..."`. Exact targets resolve first, live sessions before offline ones: a session ID, `to:"<repo>/<name>"` (an exact, case-sensitive repository label and name; both must be defined), or a bare name, which matches case-insensitively in your repository first, then across the device. After exact IDs and names, a unique live suffix handle resolves device-wide (for example `to:"8b2c"`). Ambiguous handles are refused with full candidate IDs; they never fall through to a prefix guess. Disconnected sessions still need an exact ID or name, or an existing ID prefix. Only when no exact target or live handle matches does a unique ID prefix or the name prefix of a connected session resolve, in your repository first and never to the sender. Multiple matches return `E_AMBIGUOUS_TARGET` with at most five candidates formatted as `<repo>/<name> (<id>)`, followed by `... and N more` when needed. Repository labels and names are self-reported by sessions; the broker does not verify them. Continue the thread with `replyTo:"<message id>"` and send to the original sender's ID.
|
|
21
|
-
3.
|
|
21
|
+
3. Prefer `action:"ask" text:"Who owns #261 in src/router.ts?"`. Routing deterministically selects the best 1–3 status matches (exact ID/name tokens, MR/issue references in focus, paths/prefixes, repository and branch), breaking score ties by session ID. The result explains the matched fields. With no match it broadcasts in the current repository, inferring the repository audience and path hints from the question; `scope:"device"` explicitly widens fallback discovery. No classifier runs. Respond with directed `send`, `replyTo` and `kind:"answer"` (or `"ack"` / `"decline"`). Broadcast without `scope` defaults to `"repo"`; unrelated repositories receive nothing.
|
|
22
22
|
4. Update `action:"presence_set" focus:"..."` when your task changes materially. An empty focus clears the override.
|
|
23
23
|
|
|
24
24
|
Repository labels come from the `origin` remote path (for example `humain/deploynow`), falling back to the worktree root basename. Focus is one line, at most 256 characters: an explicit override wins until cleared, otherwise the session name wins, otherwise the first line of the latest user prompt. **Automatic focus copies prompt text into presence, visible to every same-user session on this device.**
|
|
25
25
|
|
|
26
|
+
MR (`!996`) and issue (`#261`) references from user prompts are automatically retained in the published focus, even when a session name or explicit focus is set (up to 16 references within the 256-character focus limit). The next model turn nudges a refresh after a successful commit/push command, a new user task phase, or about 15 minutes without a refresh. Branch and worktree are derived automatically; no model classifier is involved.
|
|
27
|
+
|
|
26
28
|
Presence retains the most recent 20 repository-relative paths successfully written through this session's own `edit` and `write` tools, deduplicated and timestamped, newest first. Reads, bash-driven writes, failed writes and paths outside the worktree are not tracked. `subpath` is the working directory relative to the worktree root.
|
|
27
29
|
|
|
30
|
+
### Wake rules and quiet inbox
|
|
31
|
+
|
|
32
|
+
All routing fields are optional. Broadcasts default to `intent:"notice"`; use `intent:"question"` for a question. New senders mark broadcast deliveries on the wire even when intent is omitted. Older senders implemented broadcast as independent, unmarked directed sends; receivers cannot distinguish those from legacy direct messages, so they retain direct-send behavior. Older receivers may ignore the new fields and still wake for notices. Optional `audience` is an object with `repo`, `paths` (prefixes) and/or `sessions` (exact IDs or names). Direct sends always qualify to wake, including status/verdict messages and typed or untyped replies, except `ack`/`decline` replies and replies to resolved questions. Existing wake budgets and busy-session delivery still apply. Broadcasts naming this session by an exact ID/name token, matching its audience, or mentioning a recently written path wake too; substrings of names do not match. Broadcasts targeting more than three named live sessions or more than three audience sessions stay quiet, even if this session is named. Peer-supplied intent alone never forces a wake.
|
|
33
|
+
|
|
34
|
+
A reply with `replyTo` referencing this session's prior message counts as an answer even when `kind` is omitted, unless it is explicitly `ack` or `decline`. Answers to direct sends (including status-matched `ask` deliveries) wake immediately without batching. For a locally registered broadcast question, answers from addressed peers open a 30-second batching window; all addressed peers answering flushes early. One combined message uses the existing wake budget and held queue. Pending answers reserve their sender/message-ID receipt claim on arrival, before batching; a different sender reusing a held ID is deferred for broker redelivery, never allowed to displace the original answer. Reserved answers are not judged missing from the conversation until handed to the host. Every member must fit receipt tracking before the combined message is handed to the host; a partially admitted batch is refused, never injected with contradictory receipts. All answers received during an active window are included, including multipart and untyped replies. Subsequent answers can start another batch while the question remains open. Typed question context includes the exact sender ID, question ID and reply fields. Close broadcast-question batching with `action:"resolve" messageId:"<question ID>"` (the broadcast/fallback ask result prints the group ID). Pending answers move to the quiet inbox on resolution; later replies to the resolved question, typed or untyped, also stay quiet. New direct messages still qualify to wake.
|
|
35
|
+
|
|
36
|
+
Replies to resolved questions, `ack`/`decline` replies and unaddressed broadcasts are quiet under these routing rules; an acknowledgement or decline reply stays quiet even if its body or audience names this receiver. Quiet messages never trigger a turn or steer. They remain in a session-local inbox for 15 minutes, capped at 64 entries and 1 MiB (oldest entries evicted). A one-line digest is added to the next model turn's context (including the next turn of an already-running session), without starting a turn. `action:"inbox"` reads the retained messages even while disconnected, preserving the peer-content safety banner. This inbox is in memory, not durable across process exit; its messages receive `not_injected` with a quiet-inbox explanation. Batches and open-question tracking are also session-local and bounded.
|
|
37
|
+
|
|
38
|
+
For messages that qualify to wake:
|
|
39
|
+
|
|
28
40
|
- A busy session sees the message at its next safe point.
|
|
29
41
|
- An idle interactive or RPC session starts a turn for it, up to `coordination.peerWakeLimit` turns per 10 minutes (default 6). Set it to `0` to never wake. The setting is clamped to the range 0-60.
|
|
30
42
|
- An idle print or JSON session keeps the message for its next turn.
|
|
@@ -32,11 +44,11 @@ Presence retains the most recent 20 repository-relative paths successfully writt
|
|
|
32
44
|
|
|
33
45
|
### Delivery guarantees
|
|
34
46
|
|
|
35
|
-
If a send reports uncertain delivery, the tool returns the accepted message ID, delivery state, error code, `retryable` and `outcomeKnown`. The message may still arrive. Retry with `action:"send" messageId:"<returned ID>"` and the same recipient, text and `
|
|
47
|
+
If a send reports uncertain delivery, the tool returns the accepted message ID, delivery state, error code, `retryable` and `outcomeKnown`. The message may still arrive. Retry with `action:"send" messageId:"<returned ID>"` and the same recipient, text, `replyTo`, `intent`, `audience` and `kind`; preserve `broadcast:true` when retrying a broadcast (omit it when originally absent). Do not create a new message ID. An uncertain broadcast returns one ID per recipient: retry those messages individually with directed `send`, not another broadcast.
|
|
36
48
|
|
|
37
49
|
- **Confirmed socket delivery.** Built-in HUMAIN recipients promise receipts. A send reports `socket_delivered` only after the receiving endpoint confirms arrival, not merely because its socket accepted a write. This confirms receipt, not injection. If no confirmation arrives within 5 seconds, or the receiver disconnects first, the result is `delivery: "unknown"`, `retryable: true`, `outcomeKnown: false` (`E_RECEIPT_TIMEOUT` or `E_RECEIVER_DISCONNECTED`). The message may still arrive; it remains durable, and retrying the same authored message ID never creates a second mailbox entry. Plain protocol clients that do not promise receipts retain immediate socket results. Set `HUMAIN_TERMINAL_COORDINATION_RECEIPT_TIMEOUT_MS` before the broker starts to change the deadline (positive integer below 10000).
|
|
38
50
|
- **Durable until acknowledged.** The broker saves every accepted message to its mailbox before it writes anything to the recipient and before it tells the sender `socket_delivered` or `queued`. A message stays in the mailbox after it is written to the recipient's socket. It is removed only when the recipient reports a final outcome (`injected` or `not_injected`), when it expires after 24 hours, when the sender cancels it, or when a later message supersedes it. `receiver_received` does not remove it, and a receipt from any other session is ignored.
|
|
39
|
-
- **Deferred at shutdown.** If the recipient session ends before a message reaches its conversation, it reports `deferred`. The broker keeps the message and delivers it again when that same session resumes. A session that never resumes (for example one started with `--no-session`) loses it when it expires after 24 hours. `not_injected`
|
|
51
|
+
- **Deferred at shutdown.** If the recipient session ends before a message reaches its conversation, it reports `deferred`. The broker keeps the message and delivers it again when that same session resumes. A session that never resumes (for example one started with `--no-session`) loses it when it expires after 24 hours. `not_injected` also covers messages retained only in the bounded quiet inbox, as well as refused messages such as oversized ones.
|
|
40
52
|
- **At least once, deduplicated.** If the recipient disconnects, or the broker restarts, before the final outcome arrives, the message is delivered again on reconnect. A recipient never injects the same message twice: a repeat of a message it already handled is answered with the same final outcome, and after a restart a message already present in the resumed session is reported as `injected` without being added again. A sender's retry of a message the broker still holds is answered from the broker's record and queues nothing new. A message id already used by another sender is refused with `E_INVALID_REQUEST`. Reusing your own id with different content returns `E_MESSAGE_ID_REUSE`.
|
|
41
53
|
- **Per-sender ordering.** Messages from one sender to one recipient are delivered in the order they were sent, across live delivery, queued mail, reconnects, broker restarts, and retries. A new message never overtakes an older one that has not been written yet, for example while the recipient is reading slowly.
|
|
42
54
|
- **Limits.** Each recipient can hold up to 256 messages and 8 MiB, and the broker holds up to 12 MiB in total (each message counted as its saved size, including messages written but not yet acknowledged). A message that would exceed a limit is refused with the retryable error `E_MAILBOX_FULL` before anything changes; accepted mail is never dropped to make room. When the broker restarts it keeps each recipient's newest messages that fit these limits. Message ids are 1-128 characters; a longer id is refused with `E_MESSAGE_ID_TOO_LONG` before anything is saved.
|
package/docs/development.md
CHANGED
|
@@ -72,6 +72,12 @@ npm run hydrate:model-data:pinned
|
|
|
72
72
|
|
|
73
73
|
Before releases and for performance changes, run `npm run build` followed by `npm run bench:budgets` from the repository root on an idle machine. The offline workloads measure built Node startup, optional compiled Bun startup, session loading/rendering, streaming Markdown, shell spill output and fullscreen search, with one warm-up and seven measured runs. Any median more than 15% above `bench/budgets/<platform>-<arch>.json` fails; a missing baseline is informational. Review the ranges before establishing or deliberately replacing it with `npm run bench:budgets -- --write-baseline`; this check is not part of `npm run check` or CI.
|
|
74
74
|
|
|
75
|
+
Session workloads cover 2,000, 10,000 and 50,000 alternating user/assistant messages. `session` (2k), `session.10000` and `session.50000` each report `parseMs` (file loading plus SessionManager initialization), `projectionMs` (context construction), and `renderMs` (component construction plus rendering), as well as their total `ms` and RSS. Fixture generation and all correctness assertions are outside those timers. Validation scans the transcript once and checks every canonical decimal message ID in order, rejecting duplicates, omissions and noncanonical forms such as `Message 00:`. The new metrics require a reviewed baseline refresh; old baseline files intentionally report them as missing rather than silently ignoring them.
|
|
76
|
+
|
|
77
|
+
Run `node --test scripts/bench-budgets.test.mjs` for budget regressions. Session correctness is checked directly through the lightweight `scripts/bench/session-validation.mjs`, including malformed IDs, duplicates, ordering, counts and all three fixture sizes. One 50k real-worker smoke checks phase metrics and wiring with a 120-second bound: it took 23.4 seconds on the shared development host under load (one-minute load 23 at test launch), so the former 30-second bound left little cold-start margin. This is a test timeout, not a performance budget; benchmark thresholds remain separate.
|
|
78
|
+
|
|
79
|
+
For focused measurements after building, run `node scripts/bench/budgets-workloads.mjs session /path/to/empty-scratch` (or `session-10000` / `session-50000`). Use a disposable scratch directory and isolated HOME/agent directory; repeat under the same Node version and machine load. Keep raw samples and distinguish workload timing from process startup and validation time.
|
|
80
|
+
|
|
75
81
|
### Headless source memory floor
|
|
76
82
|
|
|
77
83
|
From the repository root, with Node 24 or newer:
|
|
@@ -81,15 +81,16 @@ These variables are read by HUMAIN Code CLI itself:
|
|
|
81
81
|
|
|
82
82
|
| Variable | Description |
|
|
83
83
|
|----------|-------------|
|
|
84
|
-
| `HUMAIN_TERMINAL_CODING_AGENT_DIR` | Override the config directory; default is `~/.humain-terminal/agent` |
|
|
84
|
+
| `HUMAIN_TERMINAL_CODING_AGENT_DIR` | Override the config directory; default is `~/.humain-terminal/agent`. Falls back to `PI_CODING_AGENT_DIR`; overridden by `--agent-dir` |
|
|
85
85
|
| `HUMAIN_TERMINAL_TRUSTED_AGENTS_DIR` | Absolute directory of trusted packaged subagent definitions; loaded below user agents, above project agents, which cannot shadow its names. Agents in this directory load with user-level trust in every session where the variable is set. Flow sets it for its own children. Launchers that accept untrusted environment input must strip it |
|
|
86
|
-
| `HUMAIN_TERMINAL_CODING_AGENT_SESSION_DIR` | Override session storage
|
|
86
|
+
| `HUMAIN_TERMINAL_CODING_AGENT_SESSION_DIR` | Override session storage. Falls back to `PI_CODING_AGENT_SESSION_DIR`; overridden by `--session-dir` |
|
|
87
87
|
| `HUMAIN_TERMINAL_PACKAGE_DIR` | Override the package directory, useful for Nix/Guix store paths |
|
|
88
88
|
| `HUMAIN_TERMINAL_CODEMODE_MODE` | Set to `on` or `only` to override the `codemode.mode` setting for this process; see [Codemode](codemode.md). Flow sets `only` for its codemode-only implementer children |
|
|
89
89
|
| `HUMAIN_TERMINAL_CODEMODE_MAX_WORKERS` | Maximum codemode workers alive at once across all sessions in the process; default `2`. Each worker's script may use up to 256 MB. Raise it when one process runs several sessions, such as in-process subagents. Further scripts wait for a free worker. See [Codemode](codemode.md) |
|
|
90
90
|
| `HUMAIN_FLOW_IMPLEMENTER_CODEMODE` | `off` gives the Flow SMALL/MEDIUM implementer its plain tool list instead of the default codemode-only tools; `only` forces codemode-only. Overrides the `codemode.flowImplementer` setting; see [Flow](flow.md#codemode-only-implementer) |
|
|
91
91
|
| `HUMAIN_TERMINAL_OFFLINE` | Disable startup network operations, including update checks, package updates, and install/update telemetry |
|
|
92
92
|
| `HUMAIN_TERMINAL_COORDINATION_WORKTREE_HINT` | Set to `1` to add separate-worktree guidance to the one-time shared-worktree warning. Defaults off; other values leave the warning unchanged. See [Session coordination](coordination.md#shared-worktrees-and-the-single-writer). |
|
|
93
|
+
| `HUMAIN_TERMINAL_STDIN_TIMEOUT_MS` | How long a prompt or `@path` argument waits for piped stdin to send its first data, in milliseconds; default `2000`. Stdin that sends nothing in that time is not read, and HUMAIN Code CLI prints a warning to stderr; once data arrives, it reads stdin to the end. `0` waits for the end of stdin |
|
|
93
94
|
| `HUMAIN_TERMINAL_SKIP_VERSION_CHECK` | Disable the configured HUMAIN Code CLI latest-version request |
|
|
94
95
|
| `HUMAIN_TERMINAL_SELF_UPDATE_COMMAND` | Command `humain-code update` runs to update HUMAIN Code CLI itself, split on whitespace, with `{packageName}`, `{version}`, and `{installSpec}` placeholders. Takes precedence over the `selfUpdateCommand` setting. See [Custom update command](cli.md#custom-update-command) |
|
|
95
96
|
| `HUMAIN_TERMINAL_CLEAR_ON_SHRINK` | Set to `1` to clear empty rows when rendered content shrinks; the `terminal.clearOnShrink` setting takes precedence. See [Settings](settings.md) |
|
|
@@ -105,7 +106,8 @@ These variables are read by HUMAIN Code CLI itself:
|
|
|
105
106
|
| `HUMAIN_TERMINAL_TUI_ESC_TIMEOUT` | How long to wait after a lone ESC before treating it as Escape, in milliseconds; defaults to `100` over SSH and `10` otherwise. Increase if Alt-key input is misread as Escape |
|
|
106
107
|
| `HUMAIN_TERMINAL_CLIPBOARD_OSC52` | Set to `1` to also send copied text to the terminal with OSC 52 after the local clipboard write, as HUMAIN Code CLI does over SSH. Use it when a remote client reaches HUMAIN Code CLI without SSH variables, such as a multiplexer attached from another machine or a remote IDE daemon |
|
|
107
108
|
| `VISUAL`, `EDITOR` | External editor fallback when `externalEditor` is unset |
|
|
108
|
-
| `HTTP_PROXY`, `HTTPS_PROXY` | Proxy outbound HTTP requests |
|
|
109
|
+
| `HTTP_PROXY`, `HTTPS_PROXY` | Proxy outbound HTTP requests, including early Forge Run catalog discovery and auth startup. Desktop setup initializes transport before auth; native Run initializes before discovery without desktop settings. Later desktop settings/timeout updates still reconfigure transport |
|
|
110
|
+
| `NO_PROXY` | Hosts that bypass the outbound HTTP proxy |
|
|
109
111
|
| `HUMAIN_TERMINAL_RPC_SUBAGENT_PROGRESS` | Set to exactly `1` before starting RPC mode to enable optional subagent progress metadata. Default off; unset and all other values disable it. Read once per RPC runtime, not persisted in settings; reload and session replacement retain the startup choice. See [RPC subagent progress](rpc.md#subagent-progress). |
|
|
110
112
|
| `HUMAIN_TERMINAL_SUBAGENT_MAX_DEPTH` | Maximum nesting depth for the `subagent` tool. Default `1`, ceiling `3`. |
|
|
111
113
|
| `HUMAIN_TERMINAL_SUBAGENT_MAX_CONCURRENCY` | Maximum children running at once in parallel mode. Default `4`, ceiling `8`. |
|
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.
|
|
@@ -459,6 +477,10 @@ The design spec's `zai-coding` wording names the global Coding Plan product, not
|
|
|
459
477
|
|
|
460
478
|
Legacy unidentified Codex credentials have a separate removal action in `/logout`, alongside any saved-account choices. Its confirmation defaults to keeping the credential. Removing that credential keeps unrelated saved accounts; selecting a saved account removes only that account. Concurrent credential changes prevent deletion. Account-read and removal failures display sanitized guidance, never backend error details or credential values.
|
|
461
479
|
|
|
480
|
+
Refresh results stay bound to the local entry and upstream account that issued the refresh grant, under the existing credential locks and current-credential checks. Provider-returned local keys cannot redirect a refresh; a different upstream account or workspace is rejected. Switching changes only the selection and never moves credentials between entries. Codex reconciliation uses the access token's account identity rather than a conflicting local stamp. Load-time quarantine requires another existing slot as ownership evidence: a foreign local stamp must point to an existing neighbor; a Codex token/account-ID mismatch must name an existing neighbor through either identity. A self-stamped legacy Codex upstream-key slot holding a different token identity is quarantined only when the token's canonical neighboring slot exists and holds that identity, retaining the original slot identity for reauthentication. Detected crosslinks stay in place, not restamped or deleted. An unstamped alias (including an expired one), a stamp pointing to an absent slot, or inconsistent identity metadata in a single-entry pool is not enough to infer corruption on load. Loading preserves those grants unchanged and performs no refresh or persistence. Auth reconciliation repairs conflicting account-ID metadata only when the stamp names a different stored owner (or fills a missing ID); otherwise it retains the mismatch for downstream identity validation instead of silently making it valid. These load constraints do not weaken refresh-time binding or upstream-identity checks. Generated local keys are not upstream IDs; independent grants in those slots remain valid. Reads detect quarantine without writing; the next successful mutation persists its ownership evidence alongside the unchanged credential. Quarantined entries cannot activate, refresh, serve inference, rotate, return automatically, or become removal/credit fallback targets. Use `/accounts` → Reauthenticate with the slot's expected upstream identity to replace its grant and clear quarantine; a different or unidentifiable identity is rejected. If no identity can be established, use Add another account instead. Equal upstream identities alone are not corruption: independent grants are retained. Signing in again to the same upstream account updates its matching entry. Request and refresh-failure attribution uses the credential actually consumed, not a later active selection, including failures during stream request preparation. Preflight authentication and quota errors name the observed account label and upstream ID when available, not the account selected after dispatch; raw provider errors and credentials remain hidden.
|
|
481
|
+
|
|
482
|
+
Refresh and switching use the same auth lock; pool operations acquire the pool lock before the auth lock. Before consuming a grant, usage refresh re-reads auth under both locks and replans if the complete credential value differs (including account key, upstream identity, access token, refresh token and expiry). Inference likewise refreshes the credential re-read under the auth lock, not its optimistic pre-lock snapshot. Refresh stays under that lock through persistence, so a switch cannot commit over an in-flight refresh. This is a full credential-value comparison, not a separate monotonic grant-revision counter. A delayed caller may complete after another account is selected without moving its refreshed grant to that account.
|
|
483
|
+
|
|
462
484
|
Pooled accounts remain in `~/.humain-terminal/agent/oauth-accounts.json`, while `auth.json` holds the active credential. The first mutation migrates a legacy pool to `{ "version": 2, "providers": { ... } }` after saving a private migration backup. Both pool and backup use mode `0600`. Corrupt or unsupported documents refuse mutation. Custom SDK credential stores use an in-memory pool unless the host explicitly supplies one.
|
|
463
485
|
|
|
464
486
|
Automatic usage-limit rotation tries another usable account of the same credential type and keeps the same provider and model. OAuth rotation keeps its existing defaults. API-key rotation requires subscription-marked API-key authentication, such as `zai`, `zai-coding-cn` or Kimi Coding; ordinary paid API keys do not rotate implicitly. The global `oauthAccounts.autoSwitch` default is `true`; `oauthAccounts.providers.<id>.autoSwitch` overrides it for one provider. See [Settings](settings.md#oauth-accounts).
|
|
@@ -477,4 +499,4 @@ Account recovery happens inside the shared request dispatch. An orchestrator see
|
|
|
477
499
|
|
|
478
500
|
OpenAI Codex additionally supports usage-limit rotation and its existing credit-related behavior. Run `/login openai-codex` again to add another ChatGPT account. Each account is tried at most once per prompt during quota rotation; exhausted or otherwise unusable accounts may be skipped. When no untried usable account remains, Codex can continue with credits automatically only on an account observed serving responses that may have been billed to credits. The provider does not confirm billing.
|
|
479
501
|
|
|
480
|
-
For credentials created by an older HUMAIN Code version without
|
|
502
|
+
For opaque credentials created by an older HUMAIN Code version without any resolvable upstream identity or account stamp, a refresh is treated as a refresh of the currently active account. If that older version logs in to a different account and writes an unstamped credential, it can overwrite the active account's stored entry.
|
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`:
|