@humain/humain-code 0.8.3 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +147 -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-2RXTZK2V.js +177 -0
- package/dist/bundle/chunks/{chunk-2XD7TLKB.js → chunk-3OOOEJV4.js} +16 -16
- package/dist/bundle/chunks/chunk-3RXT35Y3.js +3 -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-AW24RHGJ.js → chunk-53DWQSBC.js} +4 -4
- 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-7DIRHF4H.js +17 -0
- package/dist/bundle/chunks/{chunk-QJB5YI3I.js → chunk-7PAXKU7M.js} +1 -1
- package/dist/bundle/chunks/chunk-7XRMMCKG.js +2477 -0
- 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-B3FT6L6S.js +131 -0
- package/dist/bundle/chunks/{chunk-VSXVZVBE.js → chunk-BDNX23GT.js} +433 -412
- 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-VFLVWPLZ.js → chunk-CKFLQGJN.js} +20 -16
- package/dist/bundle/chunks/{chunk-7LSTTCSC.js → chunk-COZTJAOY.js} +348 -177
- 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-MUN4ZZZP.js → chunk-EWPEY4F4.js} +1341 -1366
- 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-FHP5BULR.js +5 -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-PVNXN2TC.js → chunk-II5C7G67.js} +1 -1
- package/dist/bundle/chunks/{chunk-F2H47FRF.js → chunk-IMRZP5SC.js} +182 -137
- 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-N3W4ALAM.js +1151 -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-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-SASR4VNV.js +17 -0
- 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-4GB7A76U.js → chunk-VWUEKLRH.js} +225 -348
- 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-7WETECIB.js → chunk-Z7BWHPJ2.js} +1 -1
- package/dist/bundle/chunks/chunk-ZFFDBTG3.js +17 -0
- package/dist/bundle/chunks/cli-NJLV3XDZ.js +3 -0
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-JEZVYITT.js → cloudflare-workers-ai-system-one-ZAZW4M4B.js} +1 -1
- package/dist/bundle/chunks/{compat-4ILE5BEC.js → compat-2RC4CJNV.js} +12 -12
- package/dist/bundle/chunks/{curator-server-QB4GITGS.js → curator-server-MW645JI3.js} +2 -2
- package/dist/bundle/chunks/{dist-NXHRL2KY.js → dist-3DAGUOYC.js} +2 -2
- package/dist/bundle/chunks/{dist-I6CI3CG5.js → dist-K4QIXV5O.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-EH7X36SK.js +83 -0
- package/dist/bundle/chunks/{easter-egg-3d-VZC5WOYV.js → easter-egg-3d-Z24JLXD4.js} +1 -1
- package/dist/bundle/chunks/entry-3EL6GOWK.js +2 -0
- package/dist/bundle/chunks/{entry-6XDR2IDE.js → entry-4IMREZBD.js} +80 -79
- package/dist/bundle/chunks/{execute-6MEJJF2T.js → execute-C4BZQRPQ.js} +23 -22
- package/dist/bundle/chunks/{extract-L373D6O7.js → extract-XVQCIS7D.js} +5 -5
- package/dist/bundle/chunks/{flow-implementer-XOP4MG5X.js → flow-implementer-J6QTLBTH.js} +5 -5
- package/dist/bundle/chunks/github-copilot.js +57 -56
- package/dist/bundle/chunks/google-generative-ai-P2P45MYP.js +22 -0
- package/dist/bundle/chunks/google-vertex-SHY4IS5F.js +26 -0
- package/dist/bundle/chunks/{host-WOLZCWQQ.js → host-YESS2VAB.js} +1 -1
- package/dist/bundle/chunks/{index.bundle-HONF3PUD.js → index.bundle-TZT64KLH.js} +102 -89
- package/dist/bundle/chunks/{inprocess-MBKFGDM2.js → inprocess-OHNEKTFB.js} +6 -6
- package/dist/bundle/chunks/interactive-mode-ZREVRX7W.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-6FVRJTM3.js +29 -0
- package/dist/bundle/cli-runtime.js +5 -5
- package/dist/bundle/flow/package.json +3 -3
- package/dist/bundle/index.js +13 -13
- package/dist/bundle/orchestrate/package.json +1 -1
- package/dist/bundle/rpc-entry.js +5 -4
- package/dist/cli/agent-dir-arg.d.ts +12 -0
- package/dist/cli/agent-dir-arg.d.ts.map +1 -0
- package/dist/cli/agent-dir-arg.js +15 -0
- package/dist/cli/agent-dir-arg.js.map +1 -0
- package/dist/cli/args.d.ts +9 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +19 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/auth-check.d.ts +1 -1
- package/dist/cli/auth-check.d.ts.map +1 -1
- package/dist/cli/auth-check.js +4 -2
- package/dist/cli/auth-check.js.map +1 -1
- package/dist/cli/doctor-config.d.ts +14 -0
- package/dist/cli/doctor-config.d.ts.map +1 -0
- package/dist/cli/doctor-config.js +92 -0
- package/dist/cli/doctor-config.js.map +1 -0
- package/dist/cli/doctor-system.d.ts +12 -0
- package/dist/cli/doctor-system.d.ts.map +1 -0
- package/dist/cli/doctor-system.js +109 -0
- package/dist/cli/doctor-system.js.map +1 -0
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +323 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/doctor.lazy.d.ts +3 -0
- package/dist/cli/doctor.lazy.d.ts.map +1 -0
- package/dist/cli/doctor.lazy.js +3 -0
- package/dist/cli/doctor.lazy.js.map +1 -0
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js +0 -4
- package/dist/cli/list-models.js.map +1 -1
- package/dist/cli/project-trust.d.ts.map +1 -1
- package/dist/cli/project-trust.js +6 -6
- package/dist/cli/project-trust.js.map +1 -1
- package/dist/cli/startup-ui.d.ts +3 -2
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +23 -10
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/config.d.ts +5 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -3
- package/dist/config.js.map +1 -1
- package/dist/coordination/broker/broker.d.ts +3 -3
- package/dist/coordination/broker/broker.d.ts.map +1 -1
- package/dist/coordination/broker/broker.js +15 -7
- package/dist/coordination/broker/broker.js.map +1 -1
- package/dist/core/acceptance-command.d.ts +6 -3
- package/dist/core/acceptance-command.d.ts.map +1 -1
- package/dist/core/acceptance-command.js +43 -12
- package/dist/core/acceptance-command.js.map +1 -1
- package/dist/core/acceptance-ledger.d.ts +2 -0
- package/dist/core/acceptance-ledger.d.ts.map +1 -1
- package/dist/core/acceptance-ledger.js +14 -3
- package/dist/core/acceptance-ledger.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +11 -4
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +13 -4
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +6 -0
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +19 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +131 -36
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +7 -1
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts +3 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +18 -8
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/bug-report.d.ts +24 -1
- package/dist/core/bug-report.d.ts.map +1 -1
- package/dist/core/bug-report.js +216 -19
- package/dist/core/bug-report.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/containment.d.ts +26 -0
- package/dist/core/extensions/containment.d.ts.map +1 -0
- package/dist/core/extensions/containment.js +66 -0
- package/dist/core/extensions/containment.js.map +1 -0
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +65 -7
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +2 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +68 -12
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +14 -3
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/wrapper.d.ts.map +1 -1
- package/dist/core/extensions/wrapper.js +4 -1
- package/dist/core/extensions/wrapper.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +2 -4
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/http-dispatcher.d.ts +5 -2
- package/dist/core/http-dispatcher.d.ts.map +1 -1
- package/dist/core/http-dispatcher.js +6 -3
- package/dist/core/http-dispatcher.js.map +1 -1
- package/dist/core/keybindings.d.ts +20 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +4 -1
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +29 -0
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +63 -17
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/messages.d.ts +4 -0
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +10 -2
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +36 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-resolver.js +1 -1
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +6 -2
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/nested-tool-calls.d.ts +6 -5
- package/dist/core/nested-tool-calls.d.ts.map +1 -1
- package/dist/core/nested-tool-calls.js +1 -3
- package/dist/core/nested-tool-calls.js.map +1 -1
- package/dist/core/os-secret-store.js +1 -1
- package/dist/core/os-secret-store.js.map +1 -1
- package/dist/core/package-manager.d.ts +3 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +25 -4
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +4 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/provider-composer.d.ts +1 -0
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +1 -0
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts +4 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js +14 -3
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +40 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +11 -7
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +8 -4
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +22 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +227 -37
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +10 -1
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +7 -1
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +14 -4
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +48 -15
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +20 -2
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +27 -4
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/tools/bash-jobs.js +2 -2
- package/dist/core/tools/bash-jobs.js.map +1 -1
- package/dist/core/tools/bash.d.ts +3 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +78 -46
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +7 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +139 -75
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +4 -1
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts +21 -6
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +90 -76
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +7 -2
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +14 -1
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +9 -3
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/truncate.d.ts +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +16 -7
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +2 -0
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trust-manager.d.ts +2 -0
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +5 -4
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +3 -0
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +64 -20
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +8 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +5 -0
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +3 -13
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/ui.d.ts.map +1 -1
- package/dist/extensions/llama/ui.js +2 -1
- package/dist/extensions/llama/ui.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts +7 -0
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +35 -8
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts +33 -0
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +11 -2
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts +8 -0
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +16 -0
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +1 -1
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +4 -3
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +1 -1
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +15 -14
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +1 -24
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +10 -163
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/humain/ask-user-question/index.d.ts +4 -0
- package/dist/humain/ask-user-question/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/index.js +18 -0
- package/dist/humain/ask-user-question/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts +38 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.js +97 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js +441 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/config.d.ts +39 -0
- package/dist/humain/ask-user-question/vendor/ask/config.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/config.js +95 -0
- package/dist/humain/ask-user-question/vendor/ask/config.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/events.d.ts +132 -0
- package/dist/humain/ask-user-question/vendor/ask/events.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/events.js +50 -0
- package/dist/humain/ask-user-question/vendor/ask/events.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/index.d.ts +5 -0
- package/dist/humain/ask-user-question/vendor/ask/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/index.js +15 -0
- package/dist/humain/ask-user-question/vendor/ask/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts +81 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.js +105 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts +28 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.js +45 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js +166 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts +46 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js +247 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts +11 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js +56 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts +6 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js +10 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts +57 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.js +357 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts +112 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js +240 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts +87 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js +79 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts +22 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts +27 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js +48 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts +13 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js +15 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts +14 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js +96 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts +58 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js +310 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts +68 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts +24 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js +114 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts +18 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js +29 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js +99 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts +37 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js +70 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts +129 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.js +76 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts +21 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js +49 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js +16 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts +21 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js +49 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts +43 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js +130 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts +45 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js +39 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts +36 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js +72 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts +61 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js +108 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts +39 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js +76 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts +123 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js +180 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts +108 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js +235 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts +37 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js +47 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts +31 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js +35 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts +124 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js +205 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts +83 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js +186 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts +47 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js +48 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts +58 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js +84 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts +20 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js +55 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts +15 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts +98 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js +248 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.js +131 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/config.d.ts +132 -0
- package/dist/humain/ask-user-question/vendor/config/config.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/config.js +286 -0
- package/dist/humain/ask-user-question/vendor/config/config.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/index.d.ts +2 -0
- package/dist/humain/ask-user-question/vendor/config/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/index.js +2 -0
- package/dist/humain/ask-user-question/vendor/config/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts +64 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.js +185 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts +44 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.js +55 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.js.map +1 -0
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +26 -16
- package/dist/humain/brand-logo.d.ts +2 -0
- package/dist/humain/brand-logo.d.ts.map +1 -1
- package/dist/humain/brand-logo.js +4 -0
- package/dist/humain/brand-logo.js.map +1 -1
- package/dist/humain/bundled-extension-names.d.ts +1 -0
- package/dist/humain/bundled-extension-names.d.ts.map +1 -1
- package/dist/humain/bundled-extension-names.js +1 -0
- package/dist/humain/bundled-extension-names.js.map +1 -1
- package/dist/humain/checklist/footer-progress.d.ts +7 -0
- package/dist/humain/checklist/footer-progress.d.ts.map +1 -0
- package/dist/humain/checklist/footer-progress.js +15 -0
- package/dist/humain/checklist/footer-progress.js.map +1 -0
- package/dist/humain/checklist/glyphs.d.ts +7 -0
- package/dist/humain/checklist/glyphs.d.ts.map +1 -0
- package/dist/humain/checklist/glyphs.js +8 -0
- package/dist/humain/checklist/glyphs.js.map +1 -0
- package/dist/humain/checklist/index.d.ts +6 -0
- package/dist/humain/checklist/index.d.ts.map +1 -0
- package/dist/humain/checklist/index.js +37 -0
- package/dist/humain/checklist/index.js.map +1 -0
- package/dist/humain/checklist/progress.d.ts +37 -0
- package/dist/humain/checklist/progress.d.ts.map +1 -0
- package/dist/humain/checklist/progress.js +234 -0
- package/dist/humain/checklist/progress.js.map +1 -0
- package/dist/humain/checklist/projector.d.ts +53 -0
- package/dist/humain/checklist/projector.d.ts.map +1 -0
- package/dist/humain/checklist/projector.js +198 -0
- package/dist/humain/checklist/projector.js.map +1 -0
- package/dist/humain/checklist/sidebar.d.ts +18 -0
- package/dist/humain/checklist/sidebar.d.ts.map +1 -0
- package/dist/humain/checklist/sidebar.js +38 -0
- package/dist/humain/checklist/sidebar.js.map +1 -0
- package/dist/humain/checklist/status-segment.d.ts +19 -0
- package/dist/humain/checklist/status-segment.d.ts.map +1 -0
- package/dist/humain/checklist/status-segment.js +59 -0
- package/dist/humain/checklist/status-segment.js.map +1 -0
- package/dist/humain/checklist/vendor/add-task-dialog.d.ts +54 -0
- package/dist/humain/checklist/vendor/add-task-dialog.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/add-task-dialog.js +238 -0
- package/dist/humain/checklist/vendor/add-task-dialog.js.map +1 -0
- package/dist/humain/checklist/vendor/commands.d.ts +38 -0
- package/dist/humain/checklist/vendor/commands.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/commands.js +205 -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/flow-loader.d.ts.map +1 -1
- package/dist/humain/flow-loader.js +31 -5
- package/dist/humain/flow-loader.js.map +1 -1
- 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/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +11 -1
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +36 -26
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/bug-report.d.ts.map +1 -1
- package/dist/modes/interactive/bug-report.js +48 -12
- package/dist/modes/interactive/bug-report.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 +20 -4
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +260 -154
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/program-status-reporter.d.ts +2 -0
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -1
- package/dist/modes/interactive/program-status-reporter.js +4 -0
- package/dist/modes/interactive/program-status-reporter.js.map +1 -1
- package/dist/modes/interactive/session-share.d.ts.map +1 -1
- package/dist/modes/interactive/session-share.js +9 -1
- package/dist/modes/interactive/session-share.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +34 -7
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/jsonl.js +6 -5
- package/dist/modes/rpc/jsonl.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +2 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +9 -2
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +2 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +113 -13
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +22 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/modes/uncaught-errors.d.ts +20 -0
- package/dist/modes/uncaught-errors.d.ts.map +1 -0
- package/dist/modes/uncaught-errors.js +56 -0
- package/dist/modes/uncaught-errors.js.map +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +10 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/clipboard-image.js +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard.js +2 -2
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/image-process.d.ts +5 -0
- package/dist/utils/image-process.d.ts.map +1 -1
- package/dist/utils/image-process.js +22 -4
- package/dist/utils/image-process.js.map +1 -1
- package/dist/utils/output-files.d.ts +44 -7
- package/dist/utils/output-files.d.ts.map +1 -1
- package/dist/utils/output-files.js +206 -12
- package/dist/utils/output-files.js.map +1 -1
- package/dist/utils/piped-stdin.d.ts +21 -0
- package/dist/utils/piped-stdin.d.ts.map +1 -0
- package/dist/utils/piped-stdin.js +60 -0
- package/dist/utils/piped-stdin.js.map +1 -0
- package/dist/utils/shell.d.ts +5 -2
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +77 -8
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +33 -2
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +77 -10
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts +1 -0
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +9 -8
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/wsl.d.ts +8 -2
- package/dist/utils/wsl.d.ts.map +1 -1
- package/dist/utils/wsl.js +12 -3
- package/dist/utils/wsl.js.map +1 -1
- package/docs/cli.md +39 -3
- package/docs/codemode.md +7 -3
- package/docs/compaction.md +1 -1
- package/docs/development.md +6 -0
- package/docs/environment-variables.md +3 -2
- package/docs/extensions.md +21 -5
- package/docs/flow.md +2 -0
- package/docs/humain-code.md +1 -1
- package/docs/keybindings.md +2 -0
- package/docs/llama-cpp.md +2 -2
- package/docs/message-types.md +1 -0
- package/docs/models-configuration.md +14 -3
- package/docs/models.md +29 -7
- package/docs/providers.md +20 -2
- package/docs/rpc-commands.md +25 -2
- package/docs/rpc.md +20 -0
- package/docs/run-preflight.md +2 -2
- package/docs/session-format.md +9 -0
- package/docs/settings.md +35 -5
- package/docs/shell-aliases.md +1 -1
- package/docs/slash-commands.md +3 -1
- package/docs/terminal-setup.md +25 -0
- package/docs/windows.md +2 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/rpc-extension-ui.ts +8 -7
- package/npm-shrinkwrap.json +209 -180
- package/package.json +26 -20
- package/schemas/keybindings.schema.json +12 -0
- package/schemas/models.schema.json +20 -7
- package/schemas/settings.schema.json +43 -5
- package/src/coordination/UPSTREAM.md +27 -1
- package/src/coordination/upstream.json +3 -3
- package/src/humain/ask-user-question/UPSTREAM.md +31 -0
- package/src/humain/ask-user-question/upstream.json +258 -0
- package/src/humain/ask-user-question/vendor/ask/LICENSE +21 -0
- package/src/humain/ask-user-question/vendor/ask/locales/de.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/en.json +41 -0
- package/src/humain/ask-user-question/vendor/ask/locales/es.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/fr.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/pt-BR.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/pt.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/ru.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/uk.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/zh.json +40 -0
- package/src/humain/ask-user-question/vendor/config/LICENSE +21 -0
- package/src/humain/ask-user-question/vendor/i18n/LICENSE +21 -0
- package/src/humain/caveman/UPSTREAM.md +44 -11
- package/src/humain/caveman/upstream.json +3 -3
- package/src/humain/caveman/vendor/NOTICE +4 -0
- package/src/humain/web-access/UPSTREAM.md +8 -0
- package/dist/bundle/chunks/anthropic-messages-XFCDMGD6.js +0 -77
- package/dist/bundle/chunks/azure-openai-responses-F4KQM3NK.js +0 -15
- package/dist/bundle/chunks/bowser-DXKSTXFQ.js +0 -89
- package/dist/bundle/chunks/chunk-3E37CJCE.js +0 -34
- package/dist/bundle/chunks/chunk-3HVHETMU.js +0 -18
- package/dist/bundle/chunks/chunk-6JTCRCNF.js +0 -74
- package/dist/bundle/chunks/chunk-B3ZLWVDA.js +0 -80
- package/dist/bundle/chunks/chunk-F77J5EQZ.js +0 -3
- package/dist/bundle/chunks/chunk-GPLWWO5Q.js +0 -121
- package/dist/bundle/chunks/chunk-GV5OVRKK.js +0 -4
- package/dist/bundle/chunks/chunk-JBSWWCT5.js +0 -12
- package/dist/bundle/chunks/chunk-JWOPWHVH.js +0 -51
- package/dist/bundle/chunks/chunk-KRBELWQH.js +0 -7
- package/dist/bundle/chunks/chunk-PFBAIRCY.js +0 -56
- package/dist/bundle/chunks/chunk-Q5RKNQ2T.js +0 -73
- package/dist/bundle/chunks/chunk-QFDZEUFU.js +0 -12
- package/dist/bundle/chunks/chunk-SKCJ25SX.js +0 -24
- package/dist/bundle/chunks/chunk-UZOIHLNU.js +0 -23
- package/dist/bundle/chunks/chunk-YSWDFV2L.js +0 -11
- package/dist/bundle/chunks/chunk-YZMQXAJM.js +0 -8
- package/dist/bundle/chunks/chunk-ZAHVC5V2.js +0 -3591
- package/dist/bundle/chunks/entry-2GZ3PTWQ.js +0 -2
- package/dist/bundle/chunks/google-generative-ai-WIASMWS3.js +0 -22
- package/dist/bundle/chunks/google-vertex-WSPHRZIZ.js +0 -25
- package/dist/bundle/chunks/interactive-mode-3322RQEH.js +0 -5
- package/dist/bundle/chunks/mistral-conversations-7JYDDRUT.js +0 -43
- package/dist/bundle/chunks/openai-codex-responses-7PAML4NF.js +0 -102
- package/dist/bundle/chunks/openai-completions-UJDAIGTK.js +0 -87
- package/dist/bundle/chunks/openai-responses-2WNCE6AY.js +0 -26
- package/dist/bundle/chunks/openrouter-images-V3UCCO6X.js +0 -8
- package/dist/bundle/chunks/pi-messages-TQ7LJUNQ.js +0 -28
- package/dist/bundle/chunks/runtime-H7LYNKCZ.js +0 -2
- package/dist/bundle/chunks/session-picker-EYKCMFQR.js +0 -4
- package/dist/bundle/chunks/startup-ui-7ODOR34R.js +0 -3
- package/dist/bundle/chunks/typesafe-system-one-YP7GGN4C.js +0 -3
- package/dist/bundle/chunks/virtual-modules-47MGUPYN.js +0 -28
|
@@ -13,7 +13,7 @@ import { CombinedAutocompleteProvider, Container, fuzzyFilter, getCapabilities,
|
|
|
13
13
|
import chalk from "chalk";
|
|
14
14
|
import { spawn } from "child_process";
|
|
15
15
|
import { trackUserWait } from "../../agent-monitor/user-wait.js";
|
|
16
|
-
import { APP_COMMAND, APP_TITLE, CONFIG_DIR_NAME, detectInstallChange, ENV_OFFLINE, getAgentDir, getAuthPath, getChangelogUrl, getDebugLogPath, getDocsPath, VERSION, } from "../../config.js";
|
|
16
|
+
import { APP_COMMAND, APP_TITLE, CONFIG_DIR_NAME, detectInstallChange, ENV_OFFLINE, getAgentDir, getAuthPath, getChangelogUrl, getDebugLogPath, getDocsPath, usesDefaultAgentDir, VERSION, } from "../../config.js";
|
|
17
17
|
import { formatAccountUsageReport } from "../../core/account-reporting.js";
|
|
18
18
|
import { parseSkillBlock } from "../../core/agent-session.js";
|
|
19
19
|
import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
|
|
@@ -24,6 +24,7 @@ import { formatCacheWarmingStatus, formatCacheWarmingUsage } from "../../core/ca
|
|
|
24
24
|
import { CODEX_USAGE_PROVIDER_ID, getCodexAvailability } from "../../core/codex-usage.js";
|
|
25
25
|
import { findExtensionStackMatches, recordCrash, takeUnnotifiedCrash } from "../../core/crash-log.js";
|
|
26
26
|
import { DEFAULT_THINKING_LEVEL, THINKING_LEVEL_OPTIONS } from "../../core/defaults.js";
|
|
27
|
+
import { containStaleExtension, setExtensionErrorReporter } from "../../core/extensions/containment.js";
|
|
27
28
|
import { FooterDataProvider } from "../../core/footer-data-provider.js";
|
|
28
29
|
import { configureHttpDispatcher, formatHttpIdleTimeoutMs } from "../../core/http-dispatcher.js";
|
|
29
30
|
import { KeybindingsManager } from "../../core/keybindings.js";
|
|
@@ -48,7 +49,7 @@ import { loadMcpConfig } from "../../extensions/mcp/config.js";
|
|
|
48
49
|
import { bindClaudeUsageReconnect } from "../../extensions/usage/account-reconnect.js";
|
|
49
50
|
import { readClaudeUsage } from "../../extensions/usage/overview.js";
|
|
50
51
|
import { resolveAdhdSessionMode } from "../../humain/adhd/index.js";
|
|
51
|
-
import { renderHumainCodeIcon } from "../../humain/brand-logo.js";
|
|
52
|
+
import { renderHumainCodeIcon, renderHumainCodeIconInline } from "../../humain/brand-logo.js";
|
|
52
53
|
import { CAVEMAN_LEVELS, getCavemanDefaultMode, resolveCavemanSessionMode } from "../../humain/caveman/index.js";
|
|
53
54
|
import { bindFlowAccountsHost, createFlowAccountReporter, FLOW_ACCOUNT_PERSISTENCE_NOTICE, flowUsageTargets, formatFlowAccountAdvanced, listFlowAccountMetadata, nodeLabelContainsStoredKey, readFlowNodeFallbackState, refreshFlowCatalog, updateFlowNodeFallback, } from "../../humain/flow-accounts-host.js";
|
|
54
55
|
import { HUMAIN_FUSE_PROVIDER } from "../../humain/fuse-provider.js";
|
|
@@ -72,13 +73,14 @@ import { readClipboardImage, writePastedImage } from "../../utils/clipboard-imag
|
|
|
72
73
|
import { flushStdout } from "../../utils/flush-stdout.js";
|
|
73
74
|
import { parseGitUrl } from "../../utils/git.js";
|
|
74
75
|
import { ensurePngTranscoderOnFirstUse } from "../../utils/image-convert.js";
|
|
75
|
-
import { getCwdRelativePath, shortenHomePath } from "../../utils/paths.js";
|
|
76
|
+
import { getCwdRelativePath, resolvePath, shortenHomePath } from "../../utils/paths.js";
|
|
76
77
|
import { killTrackedDetachedChildren, killTrackedDetachedChildrenAsync } from "../../utils/shell.js";
|
|
77
78
|
import { loadAllHighlightLanguagesOnDemand } from "../../utils/syntax-highlight.js";
|
|
78
79
|
import { stripBom } from "../../utils/text.js";
|
|
79
80
|
import { ensureTool } from "../../utils/tools-manager.js";
|
|
80
81
|
import { checkForNewPiVersion } from "../../utils/version-check.js";
|
|
81
82
|
import { waitForSignalShutdown } from "../signal-shutdown.js";
|
|
83
|
+
import { onUnhandledRejection } from "../uncaught-errors.js";
|
|
82
84
|
import { reportBug } from "./bug-report.js";
|
|
83
85
|
import { createChatViewport } from "./chat-viewport.js";
|
|
84
86
|
import { AccountPickerComponent, } from "./components/account-picker.js";
|
|
@@ -108,6 +110,7 @@ import { SessionSelectorComponent } from "./components/session-selector.js";
|
|
|
108
110
|
import { createWorkingIndicatorChoice, SettingsSelectorComponent } from "./components/settings-selector.js";
|
|
109
111
|
import { SkillInvocationMessageComponent } from "./components/skill-invocation-message.js";
|
|
110
112
|
import { BranchSummaryStatusIndicator, CompactionStatusIndicator, IdleStatus, RetryStatusIndicator, WorkingStatusIndicator, } from "./components/status-indicator.js";
|
|
113
|
+
import { StatusLineContainer } from "./components/status-line.js";
|
|
111
114
|
import { ThemedText } from "./components/themed-text.js";
|
|
112
115
|
import { ThinkingSelectorComponent } from "./components/thinking-selector.js";
|
|
113
116
|
import { ToolExecutionComponent } from "./components/tool-execution.js";
|
|
@@ -121,7 +124,7 @@ import { FULLSCREEN_OVERLAY, fullscreenSurface } from "./fullscreen.js";
|
|
|
121
124
|
import { checkWatchedHcodeCatalog, refreshModelCatalogs, refreshStartupModelCatalogs, retryHcodeCatalog, } from "./model-catalog-refresh.js";
|
|
122
125
|
import { getModelSearchText } from "./model-search.js";
|
|
123
126
|
import { formatOAuthAccountOption, formatOAuthAccountResetTime, formatOAuthAccountUsage, subscriptionAccountUsage, } from "./oauth-account-format.js";
|
|
124
|
-
import { ProgramStatusReporter } from "./program-status-reporter.js";
|
|
127
|
+
import { dialogBlockedStatus, ProgramStatusReporter } from "./program-status-reporter.js";
|
|
125
128
|
import { shareSession } from "./session-share.js";
|
|
126
129
|
import { DEFAULT_THEME_NAME, getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getSelectListTheme, getThemeByName, onThemeChange, setRegisteredThemes, stopThemeWatcher, Theme, theme, } from "./theme/theme.js";
|
|
127
130
|
import { InteractiveThemeController } from "./theme/theme-controller.js";
|
|
@@ -196,20 +199,30 @@ function quoteIfNeeded(value) {
|
|
|
196
199
|
}
|
|
197
200
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
198
201
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
return undefined;
|
|
202
|
+
/** Arguments that open the session in a new process, or undefined while the session has no file to open. */
|
|
203
|
+
function getResumeArgs(sessionManager, environment) {
|
|
202
204
|
if (!sessionManager.isPersisted())
|
|
203
205
|
return undefined;
|
|
204
206
|
const sessionFile = sessionManager.getSessionFile();
|
|
205
207
|
if (!sessionFile || !fs.existsSync(sessionFile))
|
|
206
208
|
return undefined;
|
|
207
209
|
const args = [APP_COMMAND];
|
|
210
|
+
if (environment && environment !== "production")
|
|
211
|
+
args.push("--env", environment);
|
|
212
|
+
if (!usesDefaultAgentDir()) {
|
|
213
|
+
args.push("--agent-dir", resolvePath(getAgentDir()));
|
|
214
|
+
}
|
|
208
215
|
if (!sessionManager.usesDefaultSessionDir()) {
|
|
209
|
-
args.push("--session-dir",
|
|
216
|
+
args.push("--session-dir", sessionManager.getSessionDir());
|
|
210
217
|
}
|
|
211
218
|
args.push("--session", sessionManager.getSessionId());
|
|
212
|
-
return args
|
|
219
|
+
return args;
|
|
220
|
+
}
|
|
221
|
+
/** The resume command as shell text for the user to copy. */
|
|
222
|
+
export function formatResumeCommand(sessionManager, environment) {
|
|
223
|
+
if (!process.stdout.isTTY)
|
|
224
|
+
return undefined;
|
|
225
|
+
return getResumeArgs(sessionManager, environment)?.map(quoteIfNeeded).join(" ");
|
|
213
226
|
}
|
|
214
227
|
function hasDefaultModelProvider(providerId) {
|
|
215
228
|
return providerId in defaultModelPerProvider;
|
|
@@ -278,14 +291,19 @@ function formatLoginProviderCompletionDescription(provider) {
|
|
|
278
291
|
const REASONING_DROP_DIAGNOSTICS = new Map([
|
|
279
292
|
[
|
|
280
293
|
"anthropic_input_transformations",
|
|
281
|
-
{
|
|
294
|
+
{
|
|
295
|
+
provider: "Anthropic",
|
|
296
|
+
droppedType: "thinking_dropped",
|
|
297
|
+
keyFields: ["signatureHash", "path"],
|
|
298
|
+
noun: ["thinking block", "thinking blocks"],
|
|
299
|
+
},
|
|
282
300
|
],
|
|
283
301
|
[
|
|
284
302
|
"openai_input_transformations",
|
|
285
|
-
{ provider: "OpenAI", droppedType: "reasoning", noun: ["reasoning item", "reasoning items"] },
|
|
303
|
+
{ provider: "OpenAI", droppedType: "reasoning", keyFields: ["id"], noun: ["reasoning item", "reasoning items"] },
|
|
286
304
|
],
|
|
287
305
|
]);
|
|
288
|
-
/**
|
|
306
|
+
/** The reasoning blocks a provider reported as withheld from the request that produced `message`. */
|
|
289
307
|
function getDroppedReasoning(message) {
|
|
290
308
|
for (const diagnostic of message.diagnostics ?? []) {
|
|
291
309
|
const kind = REASONING_DROP_DIAGNOSTICS.get(diagnostic.type);
|
|
@@ -295,17 +313,25 @@ function getDroppedReasoning(message) {
|
|
|
295
313
|
const transformations = diagnostic.details?.transformations;
|
|
296
314
|
if (!Array.isArray(transformations))
|
|
297
315
|
continue;
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
transformation
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
316
|
+
const blocks = [];
|
|
317
|
+
for (const transformation of transformations) {
|
|
318
|
+
if (typeof transformation !== "object" || transformation === null || Array.isArray(transformation))
|
|
319
|
+
continue;
|
|
320
|
+
if (transformation.type !== kind.droppedType)
|
|
321
|
+
continue;
|
|
322
|
+
let key;
|
|
323
|
+
for (const field of kind.keyFields) {
|
|
324
|
+
const value = transformation[field];
|
|
325
|
+
if (typeof value === "string") {
|
|
326
|
+
key = `${field}:${value}`;
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
const reason = transformation.reason;
|
|
331
|
+
blocks.push({ key, reason: typeof reason === "string" ? reason : undefined });
|
|
307
332
|
}
|
|
308
|
-
|
|
333
|
+
if (blocks.length > 0)
|
|
334
|
+
return { diagnostic: kind, blocks };
|
|
309
335
|
}
|
|
310
336
|
return undefined;
|
|
311
337
|
}
|
|
@@ -322,6 +348,10 @@ export class InteractiveMode {
|
|
|
322
348
|
fullscreenLayoutRoot;
|
|
323
349
|
pendingMessagesContainer;
|
|
324
350
|
statusContainer;
|
|
351
|
+
statusDetailsVisible = false;
|
|
352
|
+
statusError = false;
|
|
353
|
+
statusStartedAt = 0;
|
|
354
|
+
statusLastDuration = 0;
|
|
325
355
|
defaultEditor;
|
|
326
356
|
editor;
|
|
327
357
|
editorComponentFactory;
|
|
@@ -497,7 +527,27 @@ export class InteractiveMode {
|
|
|
497
527
|
this.documentContainer.addChild(this.loadedResourcesContainer);
|
|
498
528
|
this.documentContainer.addChild(this.chatContainer);
|
|
499
529
|
this.pendingMessagesContainer = new Container();
|
|
500
|
-
|
|
530
|
+
const renderStatus = (width) => {
|
|
531
|
+
const busy = !this.session.isIdle || this.session.isRetrying || this.activeStatusIndicator !== undefined;
|
|
532
|
+
const maintenance = this.activeStatusIndicator !== undefined && this.activeStatusIndicator.kind !== "working";
|
|
533
|
+
const state = this.extensionDialogs.length > 0
|
|
534
|
+
? theme.fg("warning", "‖ needs you")
|
|
535
|
+
: busy
|
|
536
|
+
? (this.activeStatusIndicator?.renderStatusInBorder(maintenance ? width : Math.min(24, Math.max(1, Math.floor(width / 3)))) ?? theme.fg("accent", "Working"))
|
|
537
|
+
: this.statusError
|
|
538
|
+
? theme.fg("error", "✗ error")
|
|
539
|
+
: `${renderHumainCodeIconInline((text) => theme.bold(theme.fg("text", text)), (text) => theme.bold(theme.fg("accent", text)))} Idle`;
|
|
540
|
+
return this.footer.renderStatus(width, state, busy, this.statusStartedAt, this.statusLastDuration, this.editor.borderColor, maintenance ? "maintenance" : "balanced");
|
|
541
|
+
};
|
|
542
|
+
this.statusContainer = new StatusLineContainer((width) => {
|
|
543
|
+
const hasStatusBorder = this.editorContainer.children.includes(this.editor) &&
|
|
544
|
+
"renderStatusBorder" in this.editor &&
|
|
545
|
+
typeof this.editor.renderStatusBorder === "function";
|
|
546
|
+
return [
|
|
547
|
+
...(hasStatusBorder ? [] : [renderStatus(width)]),
|
|
548
|
+
...(this.statusDetailsVisible ? this.footer.renderDetails(width) : []),
|
|
549
|
+
];
|
|
550
|
+
});
|
|
501
551
|
this.widgetContainerAbove = new Container();
|
|
502
552
|
this.widgetContainerBelow = new Container();
|
|
503
553
|
this.keybindings = KeybindingsManager.create();
|
|
@@ -507,8 +557,9 @@ export class InteractiveMode {
|
|
|
507
557
|
this.defaultEditor = new CustomEditor(this.ui, getEditorTheme(), this.keybindings, {
|
|
508
558
|
paddingX: editorPaddingX,
|
|
509
559
|
autocompleteMaxVisible,
|
|
510
|
-
embedWorkingStatus:
|
|
560
|
+
embedWorkingStatus: false,
|
|
511
561
|
});
|
|
562
|
+
this.defaultEditor.renderStatusBorder = renderStatus;
|
|
512
563
|
this.editor = this.defaultEditor;
|
|
513
564
|
this.editorContainer = new Container();
|
|
514
565
|
this.editorContainer.addChild(this.editor);
|
|
@@ -517,6 +568,8 @@ export class InteractiveMode {
|
|
|
517
568
|
if (this.isInitialized && !this.customFooter)
|
|
518
569
|
this.ui.requestRender();
|
|
519
570
|
});
|
|
571
|
+
this.footer.extensionStatusesOnly = true;
|
|
572
|
+
this.footer.tasksProvider = options.statusTasksProvider;
|
|
520
573
|
this.footerContainer = new Container();
|
|
521
574
|
this.footerContainer.addChild(this.footer);
|
|
522
575
|
// Load hide thinking block setting
|
|
@@ -830,12 +883,16 @@ export class InteractiveMode {
|
|
|
830
883
|
this.mountInteractiveTui(this.renderer, [
|
|
831
884
|
this.documentContainer,
|
|
832
885
|
this.pendingMessagesContainer,
|
|
833
|
-
this.statusContainer,
|
|
834
886
|
this.widgetContainerAbove,
|
|
887
|
+
this.statusContainer,
|
|
835
888
|
this.editorContainer,
|
|
836
889
|
this.widgetContainerBelow,
|
|
837
890
|
this.footerContainer,
|
|
838
891
|
]);
|
|
892
|
+
this.defaultEditor.onAction("app.status.toggle", () => {
|
|
893
|
+
this.statusDetailsVisible = !this.statusDetailsVisible;
|
|
894
|
+
this.ui.requestRender();
|
|
895
|
+
});
|
|
839
896
|
// Accept text while startup completes, but only enable interrupt, exit, and submission feedback.
|
|
840
897
|
this.defaultEditor.onAction("app.clear", () => this.handleCtrlC());
|
|
841
898
|
this.defaultEditor.onCtrlD = () => this.handleCtrlD();
|
|
@@ -1051,10 +1108,6 @@ export class InteractiveMode {
|
|
|
1051
1108
|
if (migratedProviders && migratedProviders.length > 0) {
|
|
1052
1109
|
this.showWarning(`Migrated credentials to auth.json: ${migratedProviders.join(", ")}`);
|
|
1053
1110
|
}
|
|
1054
|
-
const modelsJsonError = this.session.modelRuntime.getError();
|
|
1055
|
-
if (modelsJsonError) {
|
|
1056
|
-
this.showError(`models.json error: ${modelsJsonError}`);
|
|
1057
|
-
}
|
|
1058
1111
|
if (modelFallbackMessage && !restoringHcode) {
|
|
1059
1112
|
this.showWarning(modelFallbackMessage);
|
|
1060
1113
|
}
|
|
@@ -1232,7 +1285,7 @@ export class InteractiveMode {
|
|
|
1232
1285
|
const changelogPath = getChangelogPath();
|
|
1233
1286
|
const entries = parseChangelog(changelogPath);
|
|
1234
1287
|
if (!lastVersion) {
|
|
1235
|
-
// Fresh install -
|
|
1288
|
+
// Fresh install - observe the version without showing earlier changelog entries.
|
|
1236
1289
|
this.settingsManager.setLastChangelogVersion(VERSION);
|
|
1237
1290
|
this.reportInstallTelemetry(VERSION);
|
|
1238
1291
|
return undefined;
|
|
@@ -1833,9 +1886,7 @@ export class InteractiveMode {
|
|
|
1833
1886
|
void this.shutdown();
|
|
1834
1887
|
}
|
|
1835
1888
|
},
|
|
1836
|
-
onError: (error) =>
|
|
1837
|
-
this.showExtensionError(error.extensionPath, error.error, error.stack);
|
|
1838
|
-
},
|
|
1889
|
+
onError: (error) => this.handleExtensionError(error),
|
|
1839
1890
|
});
|
|
1840
1891
|
this.bindFlowAccountsHostToSession();
|
|
1841
1892
|
setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
|
|
@@ -2002,13 +2053,23 @@ export class InteractiveMode {
|
|
|
2002
2053
|
const cause = change.kind === "updated"
|
|
2003
2054
|
? `${APP_TITLE} was updated to ${change.version} while this session was running (${VERSION})`
|
|
2004
2055
|
: `The ${APP_TITLE} installation this session runs from was removed or replaced`;
|
|
2005
|
-
const resumeCommand = formatResumeCommand(this.sessionManager);
|
|
2056
|
+
const resumeCommand = formatResumeCommand(this.sessionManager, this.session.modelRuntime.hcode.environment.id);
|
|
2006
2057
|
const restart = resumeCommand
|
|
2007
2058
|
? `Restart with \`${resumeCommand}\` to continue this session.`
|
|
2008
2059
|
: `Restart ${APP_COMMAND}.`;
|
|
2009
2060
|
this.showWarning(`${cause}. Features that load code on demand can fail until restart. ${restart}`);
|
|
2010
2061
|
return true;
|
|
2011
2062
|
}
|
|
2063
|
+
/**
|
|
2064
|
+
* Forget the tool rows waiting for a result. They get no final result after this, so their elapsed-time timers are
|
|
2065
|
+
* stopped (Pi-Bolt 4adb6bb99): a dropped row's timer would otherwise ask for a frame every second for the rest of
|
|
2066
|
+
* the session.
|
|
2067
|
+
*/
|
|
2068
|
+
clearPendingTools() {
|
|
2069
|
+
for (const component of this.pendingTools.values())
|
|
2070
|
+
component.dispose();
|
|
2071
|
+
this.pendingTools.clear();
|
|
2072
|
+
}
|
|
2012
2073
|
renderCurrentSessionState() {
|
|
2013
2074
|
this.loadedResourcesContainer.clear();
|
|
2014
2075
|
this.chatContainer.clear();
|
|
@@ -2017,7 +2078,7 @@ export class InteractiveMode {
|
|
|
2017
2078
|
this.compactionQueuedMessages = [];
|
|
2018
2079
|
this.streamingComponent = undefined;
|
|
2019
2080
|
this.streamingMessage = undefined;
|
|
2020
|
-
this.
|
|
2081
|
+
this.clearPendingTools();
|
|
2021
2082
|
this.renderInitialMessages();
|
|
2022
2083
|
}
|
|
2023
2084
|
/**
|
|
@@ -2040,51 +2101,25 @@ export class InteractiveMode {
|
|
|
2040
2101
|
const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
|
|
2041
2102
|
if (shortcuts.size === 0)
|
|
2042
2103
|
return;
|
|
2043
|
-
// Create a context for shortcut handlers
|
|
2044
|
-
const createContext = () => ({
|
|
2045
|
-
ui: this.createExtensionUIContext(),
|
|
2046
|
-
mode: "tui",
|
|
2047
|
-
hasUI: true,
|
|
2048
|
-
cwd: this.sessionManager.getCwd(),
|
|
2049
|
-
sessionManager: this.sessionManager,
|
|
2050
|
-
modelRegistry: extensionRunner.getModelRegistry(),
|
|
2051
|
-
model: this.session.model,
|
|
2052
|
-
scopedModels: this.session.scopedModels,
|
|
2053
|
-
thinkingLevel: this.session.thinkingLevel,
|
|
2054
|
-
isIdle: () => this.session.isIdle,
|
|
2055
|
-
isProjectTrusted: () => this.settingsManager.isProjectTrusted(),
|
|
2056
|
-
signal: this.session.agent.signal,
|
|
2057
|
-
abort: () => {
|
|
2058
|
-
this.restoreQueuedMessagesToEditor({ abort: true });
|
|
2059
|
-
},
|
|
2060
|
-
hasPendingMessages: () => this.session.pendingMessageCount > 0,
|
|
2061
|
-
shutdown: () => {
|
|
2062
|
-
this.shutdownRequested = true;
|
|
2063
|
-
},
|
|
2064
|
-
getContextUsage: () => this.session.getContextUsage(),
|
|
2065
|
-
compact: (options) => {
|
|
2066
|
-
void (async () => {
|
|
2067
|
-
try {
|
|
2068
|
-
const result = await this.session.compact(options?.customInstructions);
|
|
2069
|
-
options?.onComplete?.(result);
|
|
2070
|
-
}
|
|
2071
|
-
catch (error) {
|
|
2072
|
-
const err = error instanceof Error ? error : new Error(String(error));
|
|
2073
|
-
options?.onError?.(err);
|
|
2074
|
-
}
|
|
2075
|
-
})();
|
|
2076
|
-
},
|
|
2077
|
-
getSystemPrompt: () => this.session.systemPrompt,
|
|
2078
|
-
});
|
|
2079
2104
|
// Set up the extension shortcut handler on the default editor
|
|
2080
2105
|
this.defaultEditor.onExtensionShortcut = (data) => {
|
|
2081
2106
|
for (const [shortcutStr, shortcut] of shortcuts) {
|
|
2082
2107
|
// Cast to KeyId - extension shortcuts use the same format
|
|
2083
2108
|
if (matchesKey(data, shortcutStr)) {
|
|
2084
|
-
//
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2109
|
+
// Catch synchronous throws as well as rejections without blocking input.
|
|
2110
|
+
void (async () => {
|
|
2111
|
+
try {
|
|
2112
|
+
await shortcut.handler(extensionRunner.createContext());
|
|
2113
|
+
}
|
|
2114
|
+
catch (error) {
|
|
2115
|
+
this.handleExtensionError({
|
|
2116
|
+
extensionPath: shortcut.extensionPath,
|
|
2117
|
+
event: `shortcut:${shortcutStr}`,
|
|
2118
|
+
error: error instanceof Error ? error.message : String(error),
|
|
2119
|
+
stack: error instanceof Error ? error.stack : undefined,
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
})();
|
|
2088
2123
|
return true;
|
|
2089
2124
|
}
|
|
2090
2125
|
}
|
|
@@ -2108,6 +2143,7 @@ export class InteractiveMode {
|
|
|
2108
2143
|
showStatusIndicator(indicator) {
|
|
2109
2144
|
this.activeStatusIndicator?.dispose();
|
|
2110
2145
|
this.activeStatusIndicator = indicator;
|
|
2146
|
+
this.statusStartedAt = performance.now();
|
|
2111
2147
|
this.activeWorkingIndicatorEmbedded = false;
|
|
2112
2148
|
this.statusContainer.clear();
|
|
2113
2149
|
this.setEditorWorkingStatusIndicator(undefined);
|
|
@@ -2121,6 +2157,8 @@ export class InteractiveMode {
|
|
|
2121
2157
|
if (kind && this.activeStatusIndicator?.kind !== kind) {
|
|
2122
2158
|
return;
|
|
2123
2159
|
}
|
|
2160
|
+
if (this.activeStatusIndicator)
|
|
2161
|
+
this.statusLastDuration = Math.max(0, Math.floor((performance.now() - this.statusStartedAt) / 1000));
|
|
2124
2162
|
const clearedIndicator = this.activeStatusIndicator;
|
|
2125
2163
|
const clearedIndicatorWasEmbedded = this.activeWorkingIndicatorEmbedded;
|
|
2126
2164
|
clearedIndicator?.dispose();
|
|
@@ -2136,6 +2174,7 @@ export class InteractiveMode {
|
|
|
2136
2174
|
}
|
|
2137
2175
|
}
|
|
2138
2176
|
showWorkingStatusIndicator() {
|
|
2177
|
+
this.statusError = false;
|
|
2139
2178
|
if (this.settingsPreviewOpen)
|
|
2140
2179
|
return;
|
|
2141
2180
|
const colorFn = isEmbeddedStatus(this.editor)
|
|
@@ -2146,6 +2185,17 @@ export class InteractiveMode {
|
|
|
2146
2185
|
? this.session.thinkingLevel
|
|
2147
2186
|
: "off", this.settingsManager.getReducedMotion()));
|
|
2148
2187
|
}
|
|
2188
|
+
getStatusIndicatorConfiguration() {
|
|
2189
|
+
return {
|
|
2190
|
+
indicator: this.workingIndicatorOptions,
|
|
2191
|
+
style: this.resolveWorkingIndicator(this.settingsManager.getWorkingIndicator()),
|
|
2192
|
+
level: this.session.model?.reasoning &&
|
|
2193
|
+
this.session.getAvailableThinkingLevels().includes(this.session.thinkingLevel)
|
|
2194
|
+
? this.session.thinkingLevel
|
|
2195
|
+
: "off",
|
|
2196
|
+
reducedMotion: this.settingsManager.getReducedMotion(),
|
|
2197
|
+
};
|
|
2198
|
+
}
|
|
2149
2199
|
setWorkingVisible(visible) {
|
|
2150
2200
|
this.workingVisible = visible;
|
|
2151
2201
|
if (!visible) {
|
|
@@ -2407,8 +2457,14 @@ export class InteractiveMode {
|
|
|
2407
2457
|
setHeader: (factory) => this.setExtensionHeader(factory),
|
|
2408
2458
|
setTitle: (title) => this.ui.terminal.setTitle(title),
|
|
2409
2459
|
custom: (factory, options) => this.showExtensionCustom(factory, options),
|
|
2410
|
-
pasteToEditor: (text) =>
|
|
2411
|
-
|
|
2460
|
+
pasteToEditor: (text) => {
|
|
2461
|
+
this.editor.handleInput(`\x1b[200~${text}\x1b[201~`);
|
|
2462
|
+
this.ui.requestRender();
|
|
2463
|
+
},
|
|
2464
|
+
setEditorText: (text) => {
|
|
2465
|
+
this.editor.setText(text);
|
|
2466
|
+
this.ui.requestRender();
|
|
2467
|
+
},
|
|
2412
2468
|
getEditorText: () => this.editor.getExpandedText?.() ?? this.editor.getText(),
|
|
2413
2469
|
editor: (title, prefill) => trackUserWait(title, this.showExtensionEditor(title, prefill)),
|
|
2414
2470
|
addAutocompleteProvider: (factory) => {
|
|
@@ -2491,7 +2547,7 @@ export class InteractiveMode {
|
|
|
2491
2547
|
/**
|
|
2492
2548
|
* Show a selector for extensions.
|
|
2493
2549
|
*/
|
|
2494
|
-
showExtensionSelector(title, options, opts
|
|
2550
|
+
showExtensionSelector(title, options, opts) {
|
|
2495
2551
|
return new Promise((resolve) => {
|
|
2496
2552
|
if (opts?.signal?.aborted) {
|
|
2497
2553
|
resolve(undefined);
|
|
@@ -2506,16 +2562,16 @@ export class InteractiveMode {
|
|
|
2506
2562
|
const onAbort = () => finish(undefined);
|
|
2507
2563
|
opts?.signal?.addEventListener("abort", onAbort, { once: true });
|
|
2508
2564
|
const selector = new ExtensionSelectorComponent(title, options, (option) => finish(option), () => finish(undefined), { tui: this.ui, timeout: opts?.timeout, onToggleToolsExpanded: () => this.toggleToolOutputExpansion() });
|
|
2509
|
-
this.pushExtensionDialog(selector,
|
|
2565
|
+
this.pushExtensionDialog(selector, dialogBlockedStatus(opts?.blockedKind ?? "question", title), onAbort);
|
|
2510
2566
|
});
|
|
2511
2567
|
}
|
|
2512
2568
|
/**
|
|
2513
2569
|
* Show a confirmation dialog for extensions.
|
|
2514
2570
|
*/
|
|
2515
2571
|
async showExtensionConfirm(title, message, opts) {
|
|
2516
|
-
const result = await this.showExtensionSelector(`${title}\n${message}`, ["Yes", "No"],
|
|
2517
|
-
|
|
2518
|
-
|
|
2572
|
+
const result = await this.showExtensionSelector(`${title}\n${message}`, ["Yes", "No"], {
|
|
2573
|
+
...opts,
|
|
2574
|
+
blockedKind: opts?.blockedKind ?? "permission",
|
|
2519
2575
|
});
|
|
2520
2576
|
return result === "Yes";
|
|
2521
2577
|
}
|
|
@@ -2619,7 +2675,7 @@ export class InteractiveMode {
|
|
|
2619
2675
|
const onAbort = () => finish(undefined);
|
|
2620
2676
|
opts?.signal?.addEventListener("abort", onAbort, { once: true });
|
|
2621
2677
|
const input = new ExtensionInputComponent(title, placeholder, (value) => finish(value), () => finish(undefined), { tui: this.ui, timeout: opts?.timeout });
|
|
2622
|
-
this.pushExtensionDialog(input,
|
|
2678
|
+
this.pushExtensionDialog(input, dialogBlockedStatus(opts?.blockedKind ?? "question", title), onAbort);
|
|
2623
2679
|
});
|
|
2624
2680
|
}
|
|
2625
2681
|
/**
|
|
@@ -2632,7 +2688,7 @@ export class InteractiveMode {
|
|
|
2632
2688
|
resolve(value);
|
|
2633
2689
|
};
|
|
2634
2690
|
const editor = new ExtensionEditorComponent(this.ui, this.keybindings, title, prefill, (value) => finish(value), () => finish(undefined), undefined, this.settingsManager.getExternalEditorCommand());
|
|
2635
|
-
this.pushExtensionDialog(editor,
|
|
2691
|
+
this.pushExtensionDialog(editor, dialogBlockedStatus("question", title), () => finish(undefined));
|
|
2636
2692
|
});
|
|
2637
2693
|
}
|
|
2638
2694
|
/**
|
|
@@ -2675,6 +2731,7 @@ export class InteractiveMode {
|
|
|
2675
2731
|
// Use duck typing since instanceof fails across jiti module boundaries
|
|
2676
2732
|
const customEditor = newEditor;
|
|
2677
2733
|
if ("actionHandlers" in customEditor && customEditor.actionHandlers instanceof Map) {
|
|
2734
|
+
customEditor.renderStatusBorder = this.defaultEditor.renderStatusBorder;
|
|
2678
2735
|
if (!customEditor.onEscape) {
|
|
2679
2736
|
customEditor.onEscape = () => this.defaultEditor.onEscape?.();
|
|
2680
2737
|
}
|
|
@@ -2813,9 +2870,15 @@ export class InteractiveMode {
|
|
|
2813
2870
|
});
|
|
2814
2871
|
});
|
|
2815
2872
|
}
|
|
2816
|
-
/**
|
|
2817
|
-
|
|
2818
|
-
|
|
2873
|
+
/** Record contained failures for /bug without interrupting the current operation. */
|
|
2874
|
+
handleExtensionError(failure) {
|
|
2875
|
+
const error = new Error(`Extension "${failure.extensionPath}" (${failure.event}): ${failure.error}`);
|
|
2876
|
+
if (failure.stack)
|
|
2877
|
+
error.stack = `${error.message}\n${failure.stack}`;
|
|
2878
|
+
this.recordCrash("uncaught_exception", error);
|
|
2879
|
+
this.showExtensionError(failure.extensionPath, failure.error, failure.stack);
|
|
2880
|
+
}
|
|
2881
|
+
/** Show an extension error in the UI. */
|
|
2819
2882
|
showExtensionError(extensionPath, error, stack) {
|
|
2820
2883
|
const errorMsg = `Extension "${extensionPath}" error: ${error}`;
|
|
2821
2884
|
const errorText = new ThemedText(() => theme.fg("error", errorMsg), 1, 0);
|
|
@@ -2879,6 +2942,10 @@ export class InteractiveMode {
|
|
|
2879
2942
|
this.ui.onDebug = () => this.handleDebugCommand();
|
|
2880
2943
|
this.defaultEditor.onAction("app.model.select", () => this.showModelSelector());
|
|
2881
2944
|
this.defaultEditor.onAction("app.tools.expand", () => this.toggleToolOutputExpansion());
|
|
2945
|
+
this.defaultEditor.onAction("app.checklist.sidebar", () => {
|
|
2946
|
+
if (this.isExtensionCommand("/checklist sidebar"))
|
|
2947
|
+
void this.session.prompt("/checklist sidebar").catch((error) => this.showError(String(error)));
|
|
2948
|
+
});
|
|
2882
2949
|
this.defaultEditor.onAction("app.thinking.toggle", () => this.toggleThinkingBlockVisibility());
|
|
2883
2950
|
this.defaultEditor.onAction("app.editor.external", () => void this.handleOpenExternalEditor());
|
|
2884
2951
|
this.defaultEditor.onAction("app.message.copy", () => void this.handleCopyCommand({ flashConfirmation: true, preferSelection: true }));
|
|
@@ -2988,6 +3055,12 @@ export class InteractiveMode {
|
|
|
2988
3055
|
if (!text.startsWith("/"))
|
|
2989
3056
|
this.footer.markActivity();
|
|
2990
3057
|
// Handle commands
|
|
3058
|
+
if (text === "/status") {
|
|
3059
|
+
this.statusDetailsVisible = !this.statusDetailsVisible;
|
|
3060
|
+
this.chatContainer.addChild(new ThemedText(() => this.footer.renderDetails(10000).join("\n"), this.outputPad, 0));
|
|
3061
|
+
this.ui.requestRender();
|
|
3062
|
+
return;
|
|
3063
|
+
}
|
|
2991
3064
|
if (text === "/settings") {
|
|
2992
3065
|
this.showSettingsSelector();
|
|
2993
3066
|
this.editor.setText("");
|
|
@@ -3134,7 +3207,7 @@ export class InteractiveMode {
|
|
|
3134
3207
|
this.editor.setText("");
|
|
3135
3208
|
return;
|
|
3136
3209
|
}
|
|
3137
|
-
if (text === "/quit") {
|
|
3210
|
+
if (text === "/quit" || text === "/exit") {
|
|
3138
3211
|
this.editor.setText("");
|
|
3139
3212
|
await this.shutdown();
|
|
3140
3213
|
return;
|
|
@@ -3145,7 +3218,7 @@ export class InteractiveMode {
|
|
|
3145
3218
|
const command = isExcluded ? text.slice(2).trim() : text.slice(1).trim();
|
|
3146
3219
|
if (command) {
|
|
3147
3220
|
if (this.session.isBashRunning) {
|
|
3148
|
-
this.showWarning(
|
|
3221
|
+
this.showWarning(`A bash command is already running. Press ${keyText("app.interrupt")} to cancel it first.`);
|
|
3149
3222
|
this.editor.setText(text);
|
|
3150
3223
|
return;
|
|
3151
3224
|
}
|
|
@@ -3228,7 +3301,7 @@ export class InteractiveMode {
|
|
|
3228
3301
|
}
|
|
3229
3302
|
switch (event.type) {
|
|
3230
3303
|
case "agent_start":
|
|
3231
|
-
this.
|
|
3304
|
+
this.clearPendingTools();
|
|
3232
3305
|
// Restore main escape handler if retry handler is still active
|
|
3233
3306
|
// (retry success event fires later, but we need main handler now)
|
|
3234
3307
|
if (this.retryEscapeHandler) {
|
|
@@ -3331,7 +3404,9 @@ export class InteractiveMode {
|
|
|
3331
3404
|
}
|
|
3332
3405
|
break;
|
|
3333
3406
|
case "message_update":
|
|
3334
|
-
if (this.
|
|
3407
|
+
if (this.workingMessage === undefined &&
|
|
3408
|
+
this.activeStatusIndicator?.kind === "working" &&
|
|
3409
|
+
this.activeStatusIndicator instanceof WorkingStatusIndicator) {
|
|
3335
3410
|
if (event.assistantMessageEvent.type === "thinking_delta")
|
|
3336
3411
|
this.activeStatusIndicator.setPhase("Thinking");
|
|
3337
3412
|
if (event.assistantMessageEvent.type === "text_delta")
|
|
@@ -3369,6 +3444,10 @@ export class InteractiveMode {
|
|
|
3369
3444
|
case "message_end":
|
|
3370
3445
|
if (event.message.role === "user")
|
|
3371
3446
|
break;
|
|
3447
|
+
if (event.message.role === "assistant" &&
|
|
3448
|
+
(event.message.stopReason === "error" || event.message.stopReason === "aborted")) {
|
|
3449
|
+
this.statusError = true;
|
|
3450
|
+
}
|
|
3372
3451
|
if (this.streamingComponent && event.message.role === "assistant") {
|
|
3373
3452
|
this.streamingMessage = event.message;
|
|
3374
3453
|
let errorMessage;
|
|
@@ -3396,7 +3475,7 @@ export class InteractiveMode {
|
|
|
3396
3475
|
isError: true,
|
|
3397
3476
|
});
|
|
3398
3477
|
}
|
|
3399
|
-
this.
|
|
3478
|
+
this.clearPendingTools();
|
|
3400
3479
|
this.maybeSuggestBugReport(this.streamingMessage);
|
|
3401
3480
|
}
|
|
3402
3481
|
else {
|
|
@@ -3420,15 +3499,10 @@ export class InteractiveMode {
|
|
|
3420
3499
|
// The bash execution callback handles TUI output rendering.
|
|
3421
3500
|
break;
|
|
3422
3501
|
case "tool_execution_start": {
|
|
3423
|
-
if (this.
|
|
3424
|
-
|
|
3425
|
-
this.activeStatusIndicator
|
|
3426
|
-
|
|
3427
|
-
: /edit|write/.test(name)
|
|
3428
|
-
? "Editing"
|
|
3429
|
-
: /search|grep|find/.test(name)
|
|
3430
|
-
? "Searching"
|
|
3431
|
-
: "Running");
|
|
3502
|
+
if (this.workingMessage === undefined &&
|
|
3503
|
+
this.activeStatusIndicator?.kind === "working" &&
|
|
3504
|
+
this.activeStatusIndicator instanceof WorkingStatusIndicator) {
|
|
3505
|
+
this.activeStatusIndicator.setPhase(event.toolName);
|
|
3432
3506
|
}
|
|
3433
3507
|
// Nested calls (from codemode scripts) are shown inside their parent's row.
|
|
3434
3508
|
if (event.parentToolCallId)
|
|
@@ -3484,7 +3558,7 @@ export class InteractiveMode {
|
|
|
3484
3558
|
this.streamingComponent = undefined;
|
|
3485
3559
|
this.streamingMessage = undefined;
|
|
3486
3560
|
}
|
|
3487
|
-
this.
|
|
3561
|
+
this.clearPendingTools();
|
|
3488
3562
|
this.ui.requestRender();
|
|
3489
3563
|
break;
|
|
3490
3564
|
case "agent_settled":
|
|
@@ -3505,7 +3579,7 @@ export class InteractiveMode {
|
|
|
3505
3579
|
const colorFn = isEmbeddedStatus(this.editor)
|
|
3506
3580
|
? (text) => (this.editor.borderColor ?? theme.getThinkingBorderColor(this.session.thinkingLevel || "off"))(text)
|
|
3507
3581
|
: undefined;
|
|
3508
|
-
this.showStatusIndicator(new CompactionStatusIndicator(this.ui, event.reason, colorFn));
|
|
3582
|
+
this.showStatusIndicator(new CompactionStatusIndicator(this.ui, event.reason, colorFn, this.getStatusIndicatorConfiguration()));
|
|
3509
3583
|
this.ui.requestRender();
|
|
3510
3584
|
break;
|
|
3511
3585
|
}
|
|
@@ -3564,7 +3638,7 @@ export class InteractiveMode {
|
|
|
3564
3638
|
this.defaultEditor.onEscape = () => {
|
|
3565
3639
|
this.session.abortRetry();
|
|
3566
3640
|
};
|
|
3567
|
-
this.showStatusIndicator(new RetryStatusIndicator(this.ui, event.attempt, event.maxAttempts, event.delayMs));
|
|
3641
|
+
this.showStatusIndicator(new RetryStatusIndicator(this.ui, event.attempt, event.maxAttempts, event.delayMs, this.getStatusIndicatorConfiguration()));
|
|
3568
3642
|
this.ui.requestRender();
|
|
3569
3643
|
break;
|
|
3570
3644
|
}
|
|
@@ -3617,20 +3691,20 @@ export class InteractiveMode {
|
|
|
3617
3691
|
}
|
|
3618
3692
|
case "summarization_retry_scheduled": {
|
|
3619
3693
|
this.showError(event.errorMessage);
|
|
3620
|
-
this.showStatusIndicator(new RetryStatusIndicator(this.ui, event.attempt, event.maxAttempts, event.delayMs));
|
|
3694
|
+
this.showStatusIndicator(new RetryStatusIndicator(this.ui, event.attempt, event.maxAttempts, event.delayMs, this.getStatusIndicatorConfiguration()));
|
|
3621
3695
|
this.ui.requestRender();
|
|
3622
3696
|
break;
|
|
3623
3697
|
}
|
|
3624
3698
|
case "summarization_retry_attempt_start": {
|
|
3625
3699
|
this.clearStatusIndicator("retry");
|
|
3626
3700
|
if (event.source === "branchSummary") {
|
|
3627
|
-
this.showStatusIndicator(new BranchSummaryStatusIndicator(this.ui));
|
|
3701
|
+
this.showStatusIndicator(new BranchSummaryStatusIndicator(this.ui, this.getStatusIndicatorConfiguration()));
|
|
3628
3702
|
}
|
|
3629
3703
|
else {
|
|
3630
3704
|
const colorFn = isEmbeddedStatus(this.editor)
|
|
3631
3705
|
? (text) => (this.editor.borderColor ?? theme.getThinkingBorderColor(this.session.thinkingLevel || "off"))(text)
|
|
3632
3706
|
: undefined;
|
|
3633
|
-
this.showStatusIndicator(new CompactionStatusIndicator(this.ui, event.reason, colorFn));
|
|
3707
|
+
this.showStatusIndicator(new CompactionStatusIndicator(this.ui, event.reason, colorFn, this.getStatusIndicatorConfiguration()));
|
|
3634
3708
|
}
|
|
3635
3709
|
this.ui.requestRender();
|
|
3636
3710
|
break;
|
|
@@ -3715,7 +3789,8 @@ export class InteractiveMode {
|
|
|
3715
3789
|
if (message.output) {
|
|
3716
3790
|
component.appendOutput(message.output);
|
|
3717
3791
|
}
|
|
3718
|
-
component.setComplete(message.exitCode, message.cancelled, message.truncated ? { truncated: true } : undefined, message.fullOutputPath);
|
|
3792
|
+
component.setComplete(message.exitCode, message.cancelled, message.truncated ? { truncated: true } : undefined, message.fullOutputPath, message.fullOutputError);
|
|
3793
|
+
component.setExpanded(this.toolOutputExpanded);
|
|
3719
3794
|
this.chatContainer.addChild(component);
|
|
3720
3795
|
break;
|
|
3721
3796
|
}
|
|
@@ -3788,11 +3863,11 @@ export class InteractiveMode {
|
|
|
3788
3863
|
}
|
|
3789
3864
|
}
|
|
3790
3865
|
renderSessionItems(items, messageMeta, options = {}) {
|
|
3791
|
-
this.
|
|
3866
|
+
this.clearPendingTools();
|
|
3792
3867
|
const renderedPendingTools = new Map();
|
|
3793
3868
|
// Cache misses are not persisted, unlike successful cache-warming usage.
|
|
3794
3869
|
// Re-derive them and inject them after the assistant messages that paid for them.
|
|
3795
|
-
const cacheMisses = this.settingsManager.
|
|
3870
|
+
const cacheMisses = this.settingsManager.getNotices().cacheMisses
|
|
3796
3871
|
? collectCacheMisses(this.sessionManager.getEntries(), this.session.modelRuntime)
|
|
3797
3872
|
: new Map();
|
|
3798
3873
|
if (options.updateFooter) {
|
|
@@ -3905,7 +3980,7 @@ export class InteractiveMode {
|
|
|
3905
3980
|
this.renderSessionItems(items, messageMeta, options);
|
|
3906
3981
|
}
|
|
3907
3982
|
addCacheWarmingUsage(entry) {
|
|
3908
|
-
if (!this.settingsManager.
|
|
3983
|
+
if (!this.settingsManager.getNotices().cacheWarming)
|
|
3909
3984
|
return;
|
|
3910
3985
|
this.chatContainer.addChild(new Spacer(1));
|
|
3911
3986
|
const usage = formatCacheWarmingUsage(entry);
|
|
@@ -3916,7 +3991,7 @@ export class InteractiveMode {
|
|
|
3916
3991
|
* from persisted summary usage and is not stored as a separate session entry.
|
|
3917
3992
|
*/
|
|
3918
3993
|
addCompactionCostNotice(notice) {
|
|
3919
|
-
if (!this.settingsManager.
|
|
3994
|
+
if (!this.settingsManager.getNotices().compactionCosts)
|
|
3920
3995
|
return;
|
|
3921
3996
|
const { usage } = notice;
|
|
3922
3997
|
const tokens = usage.input + usage.output + usage.cacheRead + usage.cacheWrite;
|
|
@@ -3926,29 +4001,38 @@ export class InteractiveMode {
|
|
|
3926
4001
|
this.chatContainer.addChild(new ThemedText(() => theme.fg("warning", `${label}: ${formatTokens(tokens)} tokens billed${cost}`), 1, 0));
|
|
3927
4002
|
}
|
|
3928
4003
|
maybeShowThinkingDropNotice(message) {
|
|
3929
|
-
if (!this.settingsManager.
|
|
4004
|
+
if (!this.settingsManager.getNotices().reasoningDrops)
|
|
3930
4005
|
return;
|
|
3931
4006
|
const dropped = getDroppedReasoning(message);
|
|
3932
4007
|
if (!dropped)
|
|
3933
4008
|
return;
|
|
3934
|
-
//
|
|
3935
|
-
// a
|
|
3936
|
-
// the current message is persisted, so the branch
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
if (entry.type
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
4009
|
+
// A block is announced once per session branch: a block withheld for good is no longer replayed, but one that
|
|
4010
|
+
// cannot be named, or one withheld for a reason that can change, is reported again on every later request that
|
|
4011
|
+
// replays it. message_end reaches the UI before the current message is persisted, so the branch holds only
|
|
4012
|
+
// earlier responses.
|
|
4013
|
+
const announced = new Set();
|
|
4014
|
+
for (const entry of this.sessionManager.getBranch()) {
|
|
4015
|
+
if (entry.type !== "message" || entry.message.role !== "assistant" || !entry.message.diagnostics)
|
|
4016
|
+
continue;
|
|
4017
|
+
const earlier = getDroppedReasoning(entry.message);
|
|
4018
|
+
if (earlier?.diagnostic !== dropped.diagnostic)
|
|
4019
|
+
continue;
|
|
4020
|
+
for (const block of earlier.blocks)
|
|
4021
|
+
if (block.key !== undefined)
|
|
4022
|
+
announced.add(block.key);
|
|
3946
4023
|
}
|
|
4024
|
+
const fresh = dropped.blocks.filter((block) => block.key === undefined || !announced.has(block.key));
|
|
4025
|
+
if (fresh.length === 0)
|
|
4026
|
+
return;
|
|
3947
4027
|
const { provider, noun: nouns } = dropped.diagnostic;
|
|
3948
|
-
const noun = nouns[
|
|
3949
|
-
const
|
|
4028
|
+
const noun = nouns[fresh.length === 1 ? 0 : 1];
|
|
4029
|
+
const reasonSet = new Set();
|
|
4030
|
+
for (const block of fresh)
|
|
4031
|
+
if (block.reason !== undefined)
|
|
4032
|
+
reasonSet.add(block.reason);
|
|
4033
|
+
const reasons = reasonSet.size > 0 ? `: ${[...reasonSet].join(", ")}` : "";
|
|
3950
4034
|
this.chatContainer.addChild(new Spacer(1));
|
|
3951
|
-
this.chatContainer.addChild(new ThemedText(() => theme.fg("warning", `${provider} dropped ${
|
|
4035
|
+
this.chatContainer.addChild(new ThemedText(() => theme.fg("warning", `${provider} dropped ${fresh.length} ${noun}${reasons} (details in session)`), 1, 0));
|
|
3952
4036
|
}
|
|
3953
4037
|
/**
|
|
3954
4038
|
* Show a transcript notice when a completed assistant message paid for a
|
|
@@ -3956,7 +4040,7 @@ export class InteractiveMode {
|
|
|
3956
4040
|
* a model switch, or an idle gap past the cache TTL.
|
|
3957
4041
|
*/
|
|
3958
4042
|
maybeShowCacheMissNotice(message) {
|
|
3959
|
-
if (!this.settingsManager.
|
|
4043
|
+
if (!this.settingsManager.getNotices().cacheMisses)
|
|
3960
4044
|
return;
|
|
3961
4045
|
// Entries don't contain `message` yet: message_end fires before persistence.
|
|
3962
4046
|
const miss = detectCacheMiss(this.sessionManager.getEntries(), message, this.session.modelRuntime);
|
|
@@ -4053,7 +4137,7 @@ export class InteractiveMode {
|
|
|
4053
4137
|
// `signal-exit` checks the listener list during the same SIGTERM/SIGHUP
|
|
4054
4138
|
// dispatch and re-sends the signal if only its own listeners remain.
|
|
4055
4139
|
if (options?.fromSignal) {
|
|
4056
|
-
// Signal-triggered shutdown (SIGTERM/SIGHUP). Emit extension cleanup
|
|
4140
|
+
// Signal-triggered shutdown (SIGTERM/SIGHUP, SIGBREAK on Windows). Emit extension cleanup
|
|
4057
4141
|
// (session_shutdown) BEFORE touching the terminal. Extension teardown
|
|
4058
4142
|
// such as removing sockets does not write to the tty, so it must not be
|
|
4059
4143
|
// skipped if a later terminal-restore write fails on a dead or stalled
|
|
@@ -4070,6 +4154,7 @@ export class InteractiveMode {
|
|
|
4070
4154
|
await this.ui.terminal.drainInput(1000);
|
|
4071
4155
|
this.stop();
|
|
4072
4156
|
await flushStdout();
|
|
4157
|
+
killTrackedDetachedChildren();
|
|
4073
4158
|
process.exit(0);
|
|
4074
4159
|
}
|
|
4075
4160
|
// Interactive quit (Ctrl+D, Ctrl+C, /quit, extension shutdown()). Stop the
|
|
@@ -4086,12 +4171,15 @@ export class InteractiveMode {
|
|
|
4086
4171
|
finally {
|
|
4087
4172
|
await termination;
|
|
4088
4173
|
}
|
|
4089
|
-
const resumeCommand = formatResumeCommand(this.sessionManager);
|
|
4174
|
+
const resumeCommand = formatResumeCommand(this.sessionManager, this.session.modelRuntime.hcode.environment.id);
|
|
4090
4175
|
if (resumeCommand) {
|
|
4091
4176
|
// Own line so the command can be selected with a triple-click (#12237).
|
|
4092
4177
|
process.stdout.write(`${chalk.dim("To resume this session:")}\n${resumeCommand}\n`);
|
|
4093
4178
|
}
|
|
4094
4179
|
await flushStdout();
|
|
4180
|
+
// dispose() only starts killing a running `!` command, which on Windows loses the race with
|
|
4181
|
+
// exit. After the last await, so it also catches a shell spawned after the abort.
|
|
4182
|
+
killTrackedDetachedChildren();
|
|
4095
4183
|
process.exit(0);
|
|
4096
4184
|
}
|
|
4097
4185
|
emergencyTerminalExit() {
|
|
@@ -4115,6 +4203,8 @@ export class InteractiveMode {
|
|
|
4115
4203
|
* paste / Kitty / modifyOtherKeys sequences.
|
|
4116
4204
|
*/
|
|
4117
4205
|
uncaughtCrash(error) {
|
|
4206
|
+
if (containStaleExtension(error, (failure) => this.handleExtensionError(failure)))
|
|
4207
|
+
return;
|
|
4118
4208
|
// A dead terminal is not a pi crash. Do not try to restore it or record it.
|
|
4119
4209
|
if (isDeadTerminalError(error)) {
|
|
4120
4210
|
this.emergencyTerminalExit();
|
|
@@ -4157,10 +4247,14 @@ export class InteractiveMode {
|
|
|
4157
4247
|
}
|
|
4158
4248
|
registerSignalHandlers() {
|
|
4159
4249
|
this.unregisterSignalHandlers();
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4250
|
+
this.signalCleanupHandlers.push(setExtensionErrorReporter((error) => this.handleExtensionError(error)));
|
|
4251
|
+
const signals = ["SIGTERM", "SIGHUP"];
|
|
4252
|
+
// Without a listener, a console Ctrl+Break ends the process without running any JavaScript,
|
|
4253
|
+
// leaving the alternate screen, mouse reporting and keyboard modes on (#12133). Raw mode does
|
|
4254
|
+
// not block it, and a console child calling GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT) on a
|
|
4255
|
+
// process that is not a group leader sends it to every process in the console.
|
|
4256
|
+
if (process.platform === "win32")
|
|
4257
|
+
signals.push("SIGBREAK");
|
|
4164
4258
|
for (const signal of signals) {
|
|
4165
4259
|
const handler = () => {
|
|
4166
4260
|
if (this.isShuttingDown) {
|
|
@@ -4195,6 +4289,8 @@ export class InteractiveMode {
|
|
|
4195
4289
|
const uncaughtExceptionHandler = (error) => this.uncaughtCrash(error);
|
|
4196
4290
|
process.prependListener("uncaughtException", uncaughtExceptionHandler);
|
|
4197
4291
|
this.signalCleanupHandlers.push(() => process.off("uncaughtException", uncaughtExceptionHandler));
|
|
4292
|
+
// Node raises an unhandled rejection as an uncaught exception; Bun exits without calling the handler above.
|
|
4293
|
+
this.signalCleanupHandlers.push(onUnhandledRejection((error) => this.uncaughtCrash(error)));
|
|
4198
4294
|
}
|
|
4199
4295
|
unregisterSignalHandlers() {
|
|
4200
4296
|
for (const cleanup of this.signalCleanupHandlers) {
|
|
@@ -4412,6 +4508,7 @@ export class InteractiveMode {
|
|
|
4412
4508
|
this.ui.requestRender();
|
|
4413
4509
|
}
|
|
4414
4510
|
showError(errorMessage) {
|
|
4511
|
+
this.statusError = true;
|
|
4415
4512
|
this.chatContainer.addChild(new Spacer(1));
|
|
4416
4513
|
this.chatContainer.addChild(new ThemedText(() => theme.fg("error", `Error: ${errorMessage}`), this.outputPad, 0));
|
|
4417
4514
|
this.ui.requestRender();
|
|
@@ -4714,6 +4811,7 @@ export class InteractiveMode {
|
|
|
4714
4811
|
const defaultModelId = this.settingsManager.getDefaultModel();
|
|
4715
4812
|
const defaultModel = defaultProvider && defaultModelId ? `${defaultProvider}/${defaultModelId}` : "not set";
|
|
4716
4813
|
selector = new SettingsSelectorComponent({
|
|
4814
|
+
checklistSettingsManager: this.settingsManager,
|
|
4717
4815
|
autoCompact: this.session.autoCompactionEnabled,
|
|
4718
4816
|
autoSessionNamer: this.settingsManager.getAutoSessionNamerEnabled(),
|
|
4719
4817
|
autoEffortDefault: this.settingsManager.getAutoEffortEnabled(),
|
|
@@ -4749,7 +4847,6 @@ export class InteractiveMode {
|
|
|
4749
4847
|
doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
|
|
4750
4848
|
treeFilterMode: this.settingsManager.getTreeFilterMode(),
|
|
4751
4849
|
showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
|
|
4752
|
-
showCacheMissNotices: this.settingsManager.getShowCacheMissNotices(),
|
|
4753
4850
|
defaultProjectTrust: this.settingsManager.getDefaultProjectTrust(),
|
|
4754
4851
|
editorPaddingX: this.settingsManager.getEditorPaddingX(),
|
|
4755
4852
|
outputPad: this.settingsManager.getOutputPad(),
|
|
@@ -4763,6 +4860,7 @@ export class InteractiveMode {
|
|
|
4763
4860
|
fullscreenCopyOnSelect: this.settingsManager.getFullscreenCopyOnSelect(),
|
|
4764
4861
|
fullscreenWheelScrollLines: this.settingsManager.getFullscreenWheelScrollLines(),
|
|
4765
4862
|
warnings: this.settingsManager.getWarnings(),
|
|
4863
|
+
notices: this.settingsManager.getNotices(),
|
|
4766
4864
|
}, {
|
|
4767
4865
|
onAutoSessionNamerChange: (enabled) => {
|
|
4768
4866
|
this.settingsManager.setAutoSessionNamerEnabled(enabled);
|
|
@@ -4889,10 +4987,6 @@ export class InteractiveMode {
|
|
|
4889
4987
|
this.chatContainer.invalidate();
|
|
4890
4988
|
this.ui.requestRender();
|
|
4891
4989
|
},
|
|
4892
|
-
onShowCacheMissNoticesChange: (shown) => {
|
|
4893
|
-
this.settingsManager.setShowCacheMissNotices(shown);
|
|
4894
|
-
this.rebuildChatFromMessages();
|
|
4895
|
-
},
|
|
4896
4990
|
onCollapseChangelogChange: (collapsed) => {
|
|
4897
4991
|
this.settingsManager.setCollapseChangelog(collapsed);
|
|
4898
4992
|
},
|
|
@@ -4982,6 +5076,11 @@ export class InteractiveMode {
|
|
|
4982
5076
|
onWarningsChange: (warnings) => {
|
|
4983
5077
|
this.settingsManager.setWarnings(warnings);
|
|
4984
5078
|
},
|
|
5079
|
+
onNoticeChange: (key, shown) => {
|
|
5080
|
+
this.settingsManager.setNotice(key, shown);
|
|
5081
|
+
// Cache miss, cache warming and compaction notices are derived when the transcript renders.
|
|
5082
|
+
this.rebuildChatFromMessages();
|
|
5083
|
+
},
|
|
4985
5084
|
onCancel: () => {
|
|
4986
5085
|
done();
|
|
4987
5086
|
this.ui.requestRender();
|
|
@@ -5512,7 +5611,7 @@ export class InteractiveMode {
|
|
|
5512
5611
|
this.session.abortBranchSummary();
|
|
5513
5612
|
};
|
|
5514
5613
|
this.chatContainer.addChild(new Spacer(1));
|
|
5515
|
-
this.showStatusIndicator(new BranchSummaryStatusIndicator(this.ui));
|
|
5614
|
+
this.showStatusIndicator(new BranchSummaryStatusIndicator(this.ui, this.getStatusIndicatorConfiguration()));
|
|
5516
5615
|
showingSummaryIndicator = true;
|
|
5517
5616
|
this.ui.requestRender();
|
|
5518
5617
|
}
|
|
@@ -5636,12 +5735,14 @@ export class InteractiveMode {
|
|
|
5636
5735
|
const options = [];
|
|
5637
5736
|
for (const provider of this.session.modelRuntime.getProviders()) {
|
|
5638
5737
|
const authStatus = this.session.modelRuntime.getProviderAuthStatus(provider.id);
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5738
|
+
let status;
|
|
5739
|
+
if (authStatus.configured) {
|
|
5740
|
+
const type = this.session.modelRuntime.isUsingOAuth(provider.id) ? "oauth" : "api_key";
|
|
5741
|
+
status = { kind: "configured", type, source: authStatus.label ?? authStatus.source };
|
|
5742
|
+
}
|
|
5743
|
+
else if (authStatus.source === "stored") {
|
|
5744
|
+
status = { kind: "unresolved" };
|
|
5745
|
+
}
|
|
5645
5746
|
const subscription = provider.auth.oauth?.isSubscription === true;
|
|
5646
5747
|
if ((!authType || authType === "oauth") && provider.auth.oauth) {
|
|
5647
5748
|
options.push({
|
|
@@ -5690,7 +5791,7 @@ export class InteractiveMode {
|
|
|
5690
5791
|
id: providerId,
|
|
5691
5792
|
name: provider?.name ?? providerId,
|
|
5692
5793
|
authType: type,
|
|
5693
|
-
status: { type, source: "stored credential" },
|
|
5794
|
+
status: { kind: "configured", type, source: "stored credential" },
|
|
5694
5795
|
subscription: type === "oauth" ? provider?.auth.oauth?.isSubscription : provider?.auth.apiKey?.isSubscription,
|
|
5695
5796
|
});
|
|
5696
5797
|
}
|
|
@@ -5727,7 +5828,9 @@ export class InteractiveMode {
|
|
|
5727
5828
|
const auth = this.session.modelRuntime.getProvider(provider.id)?.auth;
|
|
5728
5829
|
withAccounts.push({
|
|
5729
5830
|
...provider,
|
|
5730
|
-
status: effective
|
|
5831
|
+
status: effective
|
|
5832
|
+
? { kind: "configured", type: effective.type, source: "effective credential" }
|
|
5833
|
+
: undefined,
|
|
5731
5834
|
subscription: effective?.type === "oauth" ? auth?.oauth?.isSubscription : auth?.apiKey?.isSubscription,
|
|
5732
5835
|
});
|
|
5733
5836
|
}
|
|
@@ -7277,7 +7380,7 @@ export class InteractiveMode {
|
|
|
7277
7380
|
chatRestoredBeforeSessionStart = true;
|
|
7278
7381
|
};
|
|
7279
7382
|
try {
|
|
7280
|
-
await this.
|
|
7383
|
+
await this.runtimeHost.reload({ beforeSessionStart: restoreChatBeforeSessionStart });
|
|
7281
7384
|
restoreChatBeforeSessionStart();
|
|
7282
7385
|
this.keybindings.reload();
|
|
7283
7386
|
const activeHeader = this.customHeader ?? this.builtInHeader;
|
|
@@ -7298,8 +7401,9 @@ export class InteractiveMode {
|
|
|
7298
7401
|
const savedImplicitProjectTrust = this.maybeSaveImplicitProjectTrustAfterReload();
|
|
7299
7402
|
const modelsJsonError = this.session.modelRuntime.getError();
|
|
7300
7403
|
if (modelsJsonError) {
|
|
7301
|
-
this.
|
|
7404
|
+
this.showWarning(`models.json error: ${modelsJsonError}`);
|
|
7302
7405
|
}
|
|
7406
|
+
this.showRuntimeDiagnostics(this.runtimeHost.takeUnreportedDiagnostics());
|
|
7303
7407
|
this.showStatus(savedImplicitProjectTrust
|
|
7304
7408
|
? "Reloaded keybindings, extensions, skills, prompts, themes, and context files; saved project trust"
|
|
7305
7409
|
: "Reloaded keybindings, extensions, skills, prompts, themes, and context files");
|
|
@@ -7644,6 +7748,7 @@ export class InteractiveMode {
|
|
|
7644
7748
|
const yankPop = this.getEditorKeyDisplay("tui.editor.yankPop");
|
|
7645
7749
|
const undo = this.getEditorKeyDisplay("tui.editor.undo");
|
|
7646
7750
|
const tab = this.getEditorKeyDisplay("tui.input.tab");
|
|
7751
|
+
const cancelAutocomplete = this.getEditorKeyDisplay("tui.select.cancel");
|
|
7647
7752
|
// App keybindings
|
|
7648
7753
|
const interrupt = this.getAppKeyDisplay("app.interrupt");
|
|
7649
7754
|
const clear = this.getAppKeyDisplay("app.clear");
|
|
@@ -7691,7 +7796,8 @@ export class InteractiveMode {
|
|
|
7691
7796
|
| Key | Action |
|
|
7692
7797
|
|-----|--------|
|
|
7693
7798
|
| \`${tab}\` | Path completion / accept autocomplete |
|
|
7694
|
-
| \`${
|
|
7799
|
+
| \`${cancelAutocomplete}\` | Cancel autocomplete |
|
|
7800
|
+
| \`${interrupt}\` | Abort streaming or running bash command |
|
|
7695
7801
|
| \`${clear}\` | Clear editor (first) / exit (second) |
|
|
7696
7802
|
| \`${exit}\` | Exit (when editor is empty) |
|
|
7697
7803
|
| \`${suspend}\` | Suspend to background |
|
|
@@ -7821,7 +7927,7 @@ export class InteractiveMode {
|
|
|
7821
7927
|
if (result.output) {
|
|
7822
7928
|
this.bashComponent.appendOutput(result.output);
|
|
7823
7929
|
}
|
|
7824
|
-
this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
|
|
7930
|
+
this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath, result.fullOutputError);
|
|
7825
7931
|
// Record the result in session
|
|
7826
7932
|
this.session.recordBashResult(command, result, { excludeFromContext });
|
|
7827
7933
|
this.bashComponent = undefined;
|
|
@@ -7850,7 +7956,7 @@ export class InteractiveMode {
|
|
|
7850
7956
|
}
|
|
7851
7957
|
}, { excludeFromContext, operations: eventResult?.operations });
|
|
7852
7958
|
if (this.bashComponent) {
|
|
7853
|
-
this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
|
|
7959
|
+
this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath, result.fullOutputError);
|
|
7854
7960
|
}
|
|
7855
7961
|
}
|
|
7856
7962
|
catch (error) {
|