@humain/humain-code 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +152 -0
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-42CGJCSR.js +82 -0
- package/dist/bundle/chunks/ask-VH7GNX75.js +97 -0
- package/dist/bundle/chunks/azure-openai-responses-DOKKMBUN.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +200 -179
- package/dist/bundle/chunks/bowser-UX7KDMIY.js +92 -0
- package/dist/bundle/chunks/{chunk-46C6D7UC.js → chunk-2CYGUEQO.js} +1 -1
- package/dist/bundle/chunks/chunk-3RXT35Y3.js +3 -0
- package/dist/bundle/chunks/chunk-4BNDLR6C.js +177 -0
- package/dist/bundle/chunks/{chunk-MPRAQ6ZI.js → chunk-4LGBXPUD.js} +1 -1
- package/dist/bundle/chunks/chunk-4SL6URR3.js +90 -0
- package/dist/bundle/chunks/{chunk-PJXBU6CR.js → chunk-52642TYH.js} +394 -204
- package/dist/bundle/chunks/{chunk-LSRXA7OS.js → chunk-5C5K4EVJ.js} +3 -3
- package/dist/bundle/chunks/{chunk-2JNJJ6SZ.js → chunk-5KUCY54O.js} +3 -3
- package/dist/bundle/chunks/{chunk-4TDNOR36.js → chunk-625QJSFJ.js} +1 -1
- package/dist/bundle/chunks/chunk-73YX5XGR.js +2461 -0
- package/dist/bundle/chunks/chunk-7DIRHF4H.js +17 -0
- package/dist/bundle/chunks/{chunk-QJB5YI3I.js → chunk-7PAXKU7M.js} +1 -1
- package/dist/bundle/chunks/{chunk-R2KD2HFT.js → chunk-7YB3HRRN.js} +83 -196
- package/dist/bundle/chunks/{chunk-DCXHRP6C.js → chunk-A2UZYK23.js} +13 -13
- package/dist/bundle/chunks/chunk-A5ZMBTTM.js +12 -0
- package/dist/bundle/chunks/{chunk-JKX5EGOT.js → chunk-AER66CNP.js} +13 -13
- package/dist/bundle/chunks/chunk-ARTF7ZMQ.js +5 -0
- package/dist/bundle/chunks/chunk-B3FT6L6S.js +131 -0
- package/dist/bundle/chunks/chunk-BIC5BSNX.js +13 -0
- package/dist/bundle/chunks/{chunk-JSHKS7VH.js → chunk-BNZZJ4LO.js} +1 -1
- package/dist/bundle/chunks/{chunk-4MKATHT2.js → chunk-CG43CMFH.js} +1 -1
- package/dist/bundle/chunks/{chunk-EFY2QPVP.js → chunk-CIAXW64K.js} +16 -16
- package/dist/bundle/chunks/{chunk-VFLVWPLZ.js → chunk-CKFLQGJN.js} +20 -16
- package/dist/bundle/chunks/chunk-D4UCXXDP.js +115 -0
- package/dist/bundle/chunks/{chunk-HQMUDHC3.js → chunk-D6ZWWDW5.js} +6 -5
- package/dist/bundle/chunks/{chunk-U4EAJPMO.js → chunk-EVDQRT3I.js} +252 -371
- package/dist/bundle/chunks/{chunk-FJIISX5W.js → chunk-F74XLJPC.js} +195 -192
- package/dist/bundle/chunks/chunk-FDRBTGFJ.js +4 -0
- package/dist/bundle/chunks/{chunk-E4VUW4RI.js → chunk-FLWO3H5J.js} +12 -12
- package/dist/bundle/chunks/{chunk-KLSRGGOH.js → chunk-G2PFPQX7.js} +2 -2
- package/dist/bundle/chunks/chunk-GMPJWLZS.js +57 -0
- package/dist/bundle/chunks/{chunk-M5TVWJ5T.js → chunk-H35P7ROY.js} +462 -441
- package/dist/bundle/chunks/chunk-HCHCYBNK.js +2 -0
- package/dist/bundle/chunks/{chunk-7WE77IE3.js → chunk-HRNYDRL7.js} +1 -1
- package/dist/bundle/chunks/chunk-HWFAAGYK.js +23 -0
- package/dist/bundle/chunks/{chunk-G2QMON4O.js → chunk-HWXQCJDP.js} +408 -392
- package/dist/bundle/chunks/{chunk-PVNXN2TC.js → chunk-II5C7G67.js} +1 -1
- package/dist/bundle/chunks/{chunk-F2H47FRF.js → chunk-IMRZP5SC.js} +182 -137
- package/dist/bundle/chunks/{chunk-H2B3WLIM.js → chunk-J5YFXMTM.js} +4 -4
- package/dist/bundle/chunks/chunk-J64VNQ6D.js +13 -0
- package/dist/bundle/chunks/{chunk-65FLSKDA.js → chunk-K5EFEIFP.js} +5 -4
- package/dist/bundle/chunks/{chunk-KI7CHPWC.js → chunk-KJ3QRSSY.js} +46 -43
- package/dist/bundle/chunks/{cli-6DJO467D.js → chunk-KSEO2LRK.js} +12 -10
- package/dist/bundle/chunks/{chunk-HHWVVNGG.js → chunk-MA2WCMSN.js} +2 -2
- package/dist/bundle/chunks/{chunk-L4J7SMJB.js → chunk-MAEKQSFU.js} +1 -1
- package/dist/bundle/chunks/chunk-MHQNLTZR.js +8 -0
- package/dist/bundle/chunks/chunk-MLOUZAVZ.js +122 -0
- package/dist/bundle/chunks/chunk-MQYR4Q6X.js +5 -0
- package/dist/bundle/chunks/chunk-MXF3KYLZ.js +4 -0
- package/dist/bundle/chunks/{chunk-GY663MNP.js → chunk-MZRTVX7F.js} +1 -1
- package/dist/bundle/chunks/chunk-MZYHSWHX.js +59 -0
- package/dist/bundle/chunks/{chunk-6HTHDVJC.js → chunk-NPVRWPGX.js} +1 -1
- package/dist/bundle/chunks/{chunk-BRSLXHED.js → chunk-O44A4E4K.js} +1 -1
- package/dist/bundle/chunks/{chunk-T2ZGMEMV.js → chunk-OADQOW67.js} +175 -260
- package/dist/bundle/chunks/chunk-OTVHRZ67.js +17 -0
- package/dist/bundle/chunks/{chunk-J4GII2EE.js → chunk-P7SLTLSZ.js} +51 -46
- package/dist/bundle/chunks/{chunk-7OZNMWAJ.js → chunk-PPGSQZZF.js} +1 -1
- package/dist/bundle/chunks/chunk-PYX6ZCC7.js +29 -0
- package/dist/bundle/chunks/chunk-PZ7NYBHJ.js +8 -0
- package/dist/bundle/chunks/{chunk-VCMXBP5S.js → chunk-QESIDBMW.js} +1 -7
- package/dist/bundle/chunks/chunk-QUWVILLB.js +3 -0
- package/dist/bundle/chunks/chunk-QZWUXGY7.js +99 -0
- package/dist/bundle/chunks/{chunk-MIAXMK5F.js → chunk-QZXLTW7V.js} +8 -7
- package/dist/bundle/chunks/chunk-RP6MWUAP.js +4 -0
- package/dist/bundle/chunks/chunk-S2US54IU.js +37 -0
- package/dist/bundle/chunks/{chunk-H7UPU2SH.js → chunk-SOE25WIS.js} +1218 -1239
- package/dist/bundle/chunks/{chunk-JSZBTGI6.js → chunk-SZZ5PNP6.js} +2 -2
- package/dist/bundle/chunks/chunk-T5WECB2D.js +7 -0
- package/dist/bundle/chunks/{chunk-2NVGOSBN.js → chunk-T7F2TEIS.js} +37 -13
- package/dist/bundle/chunks/{chunk-ZSWU5KKA.js → chunk-UOSJTMCL.js} +7 -3
- package/dist/bundle/chunks/{chunk-6P6MMQUH.js → chunk-UTRUALFN.js} +3 -3
- package/dist/bundle/chunks/{chunk-PWFM6AQQ.js → chunk-V2HTCZRF.js} +70 -67
- package/dist/bundle/chunks/{chunk-JX6YIPNK.js → chunk-WCKS2DPT.js} +1 -1
- package/dist/bundle/chunks/chunk-XGOJCV6Z.js +2 -0
- package/dist/bundle/chunks/chunk-XGSJX23G.js +1151 -0
- package/dist/bundle/chunks/{chunk-7WETECIB.js → chunk-Z7BWHPJ2.js} +1 -1
- package/dist/bundle/chunks/chunk-ZFFDBTG3.js +17 -0
- package/dist/bundle/chunks/cli-NJLV3XDZ.js +3 -0
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-JEZVYITT.js → cloudflare-workers-ai-system-one-ZAZW4M4B.js} +1 -1
- package/dist/bundle/chunks/{compat-ELBUCH6U.js → compat-7UJJAO4E.js} +12 -12
- package/dist/bundle/chunks/{curator-server-QB4GITGS.js → curator-server-MW645JI3.js} +2 -2
- package/dist/bundle/chunks/{dist-NERIS6SW.js → dist-7PCCEUQF.js} +2 -2
- package/dist/bundle/chunks/{dist-QSYDYE3Y.js → dist-I53JI67E.js} +9 -9
- package/dist/bundle/chunks/{dist-35STTNYA.js → dist-NI2PTSLH.js} +1 -1
- package/dist/bundle/chunks/{dist-CBODG4CA.js → dist-VXQT3DQY.js} +6 -6
- package/dist/bundle/chunks/{dist-cjs-EROMDUKS.js → dist-cjs-4JQA6W3S.js} +31 -31
- package/dist/bundle/chunks/doctor-KJVAYG3F.js +83 -0
- package/dist/bundle/chunks/{easter-egg-3d-VZC5WOYV.js → easter-egg-3d-Z24JLXD4.js} +1 -1
- package/dist/bundle/chunks/entry-3EL6GOWK.js +2 -0
- package/dist/bundle/chunks/{entry-SRYLSS5P.js → entry-4IMREZBD.js} +80 -79
- package/dist/bundle/chunks/{execute-6MEJJF2T.js → execute-C4BZQRPQ.js} +23 -22
- package/dist/bundle/chunks/{extract-L373D6O7.js → extract-XVQCIS7D.js} +5 -5
- package/dist/bundle/chunks/{flow-implementer-3P3BHQ7E.js → flow-implementer-GE2ARQKR.js} +5 -5
- package/dist/bundle/chunks/github-copilot.js +57 -56
- package/dist/bundle/chunks/google-generative-ai-P2P45MYP.js +22 -0
- package/dist/bundle/chunks/google-vertex-SHY4IS5F.js +26 -0
- package/dist/bundle/chunks/{host-WOLZCWQQ.js → host-YESS2VAB.js} +1 -1
- package/dist/bundle/chunks/{index.bundle-HONF3PUD.js → index.bundle-TZT64KLH.js} +102 -89
- package/dist/bundle/chunks/{inprocess-3PDJKE5F.js → inprocess-MGMVI6HN.js} +6 -6
- package/dist/bundle/chunks/interactive-mode-HHWOE4FD.js +5 -0
- package/dist/bundle/chunks/{llama-cpp-classify-KYZT532X.js → llama-cpp-classify-RSRH4KV2.js} +5 -5
- package/dist/bundle/chunks/mistral-conversations-YTMJKHHI.js +42 -0
- package/dist/bundle/chunks/{node-N7TPBUJB.js → node-FF6QQQLH.js} +1 -1
- package/dist/bundle/chunks/openai-codex-responses-NUCJOJSZ.js +97 -0
- package/dist/bundle/chunks/openai-completions-E5NRJUHA.js +91 -0
- package/dist/bundle/chunks/{openai-decisions-JMSDGR7K.js → openai-decisions-342J5ZYG.js} +1 -1
- package/dist/bundle/chunks/openai-responses-BN5Z4HFI.js +26 -0
- package/dist/bundle/chunks/openrouter-images-7RNG3JVF.js +12 -0
- package/dist/bundle/chunks/{pdfjs-FE3L72A6.js → pdfjs-LSTLRXQW.js} +1415 -1416
- package/dist/bundle/chunks/pi-messages-2L7FV5OK.js +22 -0
- package/dist/bundle/chunks/questionnaire-session-XEVAK7JS.js +123 -0
- package/dist/bundle/chunks/runtime-2FSZRUG5.js +2 -0
- package/dist/bundle/chunks/session-picker-666KJIVM.js +4 -0
- package/dist/bundle/chunks/startup-ui-INEVSNGK.js +3 -0
- package/dist/bundle/chunks/{trace-command-VM7FBWPE.js → trace-command-BCVMZ5ZD.js} +4 -4
- package/dist/bundle/chunks/typesafe-system-one-UJUNSZG4.js +3 -0
- package/dist/bundle/chunks/{undici-WVNE45GY.js → undici-7IGAYA4S.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-UXSSFNV5.js +29 -0
- package/dist/bundle/cli-runtime.js +5 -5
- package/dist/bundle/flow/package.json +3 -3
- package/dist/bundle/index.js +13 -13
- package/dist/bundle/orchestrate/package.json +1 -1
- package/dist/bundle/rpc-entry.js +5 -4
- package/dist/cli/agent-dir-arg.d.ts +12 -0
- package/dist/cli/agent-dir-arg.d.ts.map +1 -0
- package/dist/cli/agent-dir-arg.js +15 -0
- package/dist/cli/agent-dir-arg.js.map +1 -0
- package/dist/cli/args.d.ts +9 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +19 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/auth-check.d.ts +1 -1
- package/dist/cli/auth-check.d.ts.map +1 -1
- package/dist/cli/auth-check.js +4 -2
- package/dist/cli/auth-check.js.map +1 -1
- package/dist/cli/doctor-config.d.ts +14 -0
- package/dist/cli/doctor-config.d.ts.map +1 -0
- package/dist/cli/doctor-config.js +92 -0
- package/dist/cli/doctor-config.js.map +1 -0
- package/dist/cli/doctor-system.d.ts +12 -0
- package/dist/cli/doctor-system.d.ts.map +1 -0
- package/dist/cli/doctor-system.js +109 -0
- package/dist/cli/doctor-system.js.map +1 -0
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +323 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/doctor.lazy.d.ts +3 -0
- package/dist/cli/doctor.lazy.d.ts.map +1 -0
- package/dist/cli/doctor.lazy.js +3 -0
- package/dist/cli/doctor.lazy.js.map +1 -0
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js +0 -4
- package/dist/cli/list-models.js.map +1 -1
- package/dist/cli/project-trust.d.ts.map +1 -1
- package/dist/cli/project-trust.js +6 -6
- package/dist/cli/project-trust.js.map +1 -1
- package/dist/cli/startup-ui.d.ts +3 -2
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +23 -10
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/config.d.ts +5 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -3
- package/dist/config.js.map +1 -1
- package/dist/coordination/adapter/delivery.d.ts +27 -0
- package/dist/coordination/adapter/delivery.d.ts.map +1 -1
- package/dist/coordination/adapter/delivery.js +164 -4
- package/dist/coordination/adapter/delivery.js.map +1 -1
- package/dist/coordination/adapter/index.d.ts.map +1 -1
- package/dist/coordination/adapter/index.js +31 -5
- package/dist/coordination/adapter/index.js.map +1 -1
- package/dist/coordination/adapter/presence.d.ts +5 -0
- package/dist/coordination/adapter/presence.d.ts.map +1 -1
- package/dist/coordination/adapter/presence.js +25 -3
- package/dist/coordination/adapter/presence.js.map +1 -1
- package/dist/coordination/adapter/question-routing.d.ts +7 -0
- package/dist/coordination/adapter/question-routing.d.ts.map +1 -0
- package/dist/coordination/adapter/question-routing.js +40 -0
- package/dist/coordination/adapter/question-routing.js.map +1 -0
- package/dist/coordination/adapter/receipts.d.ts +7 -0
- package/dist/coordination/adapter/receipts.d.ts.map +1 -1
- package/dist/coordination/adapter/receipts.js +25 -2
- package/dist/coordination/adapter/receipts.js.map +1 -1
- package/dist/coordination/adapter/tool.d.ts +19 -3
- package/dist/coordination/adapter/tool.d.ts.map +1 -1
- package/dist/coordination/adapter/tool.js +93 -19
- package/dist/coordination/adapter/tool.js.map +1 -1
- package/dist/coordination/broker/broker.d.ts +3 -3
- package/dist/coordination/broker/broker.d.ts.map +1 -1
- package/dist/coordination/broker/broker.js +15 -7
- package/dist/coordination/broker/broker.js.map +1 -1
- package/dist/coordination/client/client.d.ts +2 -2
- package/dist/coordination/client/client.d.ts.map +1 -1
- package/dist/coordination/client/client.js +4 -0
- package/dist/coordination/client/client.js.map +1 -1
- package/dist/coordination/transport/protocol.d.ts.map +1 -1
- package/dist/coordination/transport/protocol.js +23 -0
- package/dist/coordination/transport/protocol.js.map +1 -1
- package/dist/coordination/transport/types.d.ts +11 -1
- package/dist/coordination/transport/types.d.ts.map +1 -1
- package/dist/coordination/transport/types.js.map +1 -1
- package/dist/core/acceptance-command.d.ts +6 -3
- package/dist/core/acceptance-command.d.ts.map +1 -1
- package/dist/core/acceptance-command.js +43 -12
- package/dist/core/acceptance-command.js.map +1 -1
- package/dist/core/acceptance-ledger.d.ts +2 -0
- package/dist/core/acceptance-ledger.d.ts.map +1 -1
- package/dist/core/acceptance-ledger.js +14 -3
- package/dist/core/acceptance-ledger.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +11 -4
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +13 -4
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +6 -0
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +19 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +131 -36
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +7 -1
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts +3 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +18 -8
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +2 -2
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +9 -15
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +3 -0
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +12 -10
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.js +23 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +13 -2
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +9 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +2 -4
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/http-dispatcher.d.ts +5 -2
- package/dist/core/http-dispatcher.d.ts.map +1 -1
- package/dist/core/http-dispatcher.js +6 -3
- package/dist/core/http-dispatcher.js.map +1 -1
- package/dist/core/keybindings.d.ts +20 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +4 -1
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +29 -0
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +63 -17
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/messages.d.ts +4 -0
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +10 -2
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +36 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-resolver.js +1 -1
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +20 -10
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/nested-tool-calls.d.ts +6 -5
- package/dist/core/nested-tool-calls.d.ts.map +1 -1
- package/dist/core/nested-tool-calls.js +1 -3
- package/dist/core/nested-tool-calls.js.map +1 -1
- package/dist/core/oauth-account-pool.d.ts +14 -0
- package/dist/core/oauth-account-pool.d.ts.map +1 -1
- package/dist/core/oauth-account-pool.js +166 -14
- package/dist/core/oauth-account-pool.js.map +1 -1
- package/dist/core/os-secret-store.js +1 -1
- package/dist/core/os-secret-store.js.map +1 -1
- package/dist/core/package-manager.d.ts +3 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +25 -4
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +4 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/provider-composer.d.ts +1 -0
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +1 -0
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts +4 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js +14 -3
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +40 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/run-outcome.d.ts +1 -1
- package/dist/core/run-outcome.d.ts.map +1 -1
- package/dist/core/run-outcome.js +2 -2
- package/dist/core/run-outcome.js.map +1 -1
- package/dist/core/run-preflight.d.ts.map +1 -1
- package/dist/core/run-preflight.js +15 -8
- package/dist/core/run-preflight.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +11 -7
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +8 -4
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +22 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +227 -37
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +10 -1
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +7 -1
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +14 -4
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +48 -15
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +20 -2
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +27 -4
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/tools/bash-jobs.js +2 -2
- package/dist/core/tools/bash-jobs.js.map +1 -1
- package/dist/core/tools/bash.d.ts +3 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +78 -46
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +7 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +139 -75
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +4 -1
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts +21 -6
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +90 -76
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +7 -2
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +14 -1
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +9 -3
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/truncate.d.ts +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +16 -7
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +2 -0
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trust-manager.d.ts +2 -0
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +5 -4
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +3 -0
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +64 -20
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +8 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +5 -0
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +3 -13
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/ui.d.ts.map +1 -1
- package/dist/extensions/llama/ui.js +2 -1
- package/dist/extensions/llama/ui.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts +7 -0
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +35 -8
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts +33 -0
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +11 -2
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts +8 -0
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +16 -0
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +1 -1
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +4 -3
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +1 -1
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +15 -14
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +1 -24
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +10 -163
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/humain/ask-user-question/index.d.ts +4 -0
- package/dist/humain/ask-user-question/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/index.js +18 -0
- package/dist/humain/ask-user-question/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts +38 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.js +97 -0
- package/dist/humain/ask-user-question/vendor/ask/answer-channel.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js +441 -0
- package/dist/humain/ask-user-question/vendor/ask/ask-user-question.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/config.d.ts +39 -0
- package/dist/humain/ask-user-question/vendor/ask/config.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/config.js +95 -0
- package/dist/humain/ask-user-question/vendor/ask/config.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/events.d.ts +132 -0
- package/dist/humain/ask-user-question/vendor/ask/events.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/events.js +50 -0
- package/dist/humain/ask-user-question/vendor/ask/events.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/index.d.ts +5 -0
- package/dist/humain/ask-user-question/vendor/ask/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/index.js +15 -0
- package/dist/humain/ask-user-question/vendor/ask/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts +81 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.js +105 -0
- package/dist/humain/ask-user-question/vendor/ask/presentation.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts +28 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.js +45 -0
- package/dist/humain/ask-user-question/vendor/ask/reconcile.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js +166 -0
- package/dist/humain/ask-user-question/vendor/ask/rpc-fallback.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts +46 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js +247 -0
- package/dist/humain/ask-user-question/vendor/ask/state/build-questionnaire.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts +11 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js +56 -0
- package/dist/humain/ask-user-question/vendor/ask/state/external-editor.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts +6 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js +10 -0
- package/dist/humain/ask-user-question/vendor/ask/state/i18n-bridge.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts +57 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.js +357 -0
- package/dist/humain/ask-user-question/vendor/ask/state/key-router.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts +112 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js +240 -0
- package/dist/humain/ask-user-question/vendor/ask/state/questionnaire-session.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts +87 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js +79 -0
- package/dist/humain/ask-user-question/vendor/ask/state/row-intent.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts +22 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/contract.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts +27 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js +48 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/derivations.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts +13 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js +15 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/focus.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts +14 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js +96 -0
- package/dist/humain/ask-user-question/vendor/ask/state/selectors/projections.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts +58 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js +310 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state-reducer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts +68 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/state/state.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts +24 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js +114 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/external-answer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts +18 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js +29 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/format-answer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts +41 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js +99 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/normalize-params.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts +37 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js +70 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/response-envelope.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts +129 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.js +76 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/types.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts +21 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js +49 -0
- package/dist/humain/ask-user-question/vendor/ask/tool/validate-questionnaire.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js +16 -0
- package/dist/humain/ask-user-question/vendor/ask/view/component-binding.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts +21 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js +49 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/inline-input.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts +43 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js +130 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/multi-select-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts +45 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js +39 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/option-list-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts +36 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js +72 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/markdown-content-cache.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts +61 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js +108 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-block-renderer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts +39 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js +76 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-box-renderer.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts +123 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js +180 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-layout-decider.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts +108 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js +235 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/preview/preview-pane.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts +37 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js +47 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/submit-picker.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts +31 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js +35 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/tab-bar.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts +124 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js +205 -0
- package/dist/humain/ask-user-question/vendor/ask/view/components/wrapping-select.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts +83 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js +186 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-builder.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts +47 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js +48 -0
- package/dist/humain/ask-user-question/vendor/ask/view/dialog-copy.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts +58 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js +84 -0
- package/dist/humain/ask-user-question/vendor/ask/view/props-adapter.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts +20 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js +55 -0
- package/dist/humain/ask-user-question/vendor/ask/view/scroll-window.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/view/stateful-view.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts +15 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js +2 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-components.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts +98 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js +248 -0
- package/dist/humain/ask-user-question/vendor/ask/view/tab-content-strategy.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts +23 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.js +131 -0
- package/dist/humain/ask-user-question/vendor/ask/view/transcript.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/config.d.ts +132 -0
- package/dist/humain/ask-user-question/vendor/config/config.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/config.js +286 -0
- package/dist/humain/ask-user-question/vendor/config/config.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/index.d.ts +2 -0
- package/dist/humain/ask-user-question/vendor/config/index.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/config/index.js +2 -0
- package/dist/humain/ask-user-question/vendor/config/index.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts +64 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.js +185 -0
- package/dist/humain/ask-user-question/vendor/i18n/i18n.js.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts +44 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.d.ts.map +1 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.js +55 -0
- package/dist/humain/ask-user-question/vendor/i18n/loader.js.map +1 -0
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +26 -16
- package/dist/humain/brand-logo.d.ts +2 -0
- package/dist/humain/brand-logo.d.ts.map +1 -1
- package/dist/humain/brand-logo.js +4 -0
- package/dist/humain/brand-logo.js.map +1 -1
- package/dist/humain/bundled-extension-names.d.ts +1 -0
- package/dist/humain/bundled-extension-names.d.ts.map +1 -1
- package/dist/humain/bundled-extension-names.js +1 -0
- package/dist/humain/bundled-extension-names.js.map +1 -1
- package/dist/humain/checklist/footer-progress.d.ts +7 -0
- package/dist/humain/checklist/footer-progress.d.ts.map +1 -0
- package/dist/humain/checklist/footer-progress.js +15 -0
- package/dist/humain/checklist/footer-progress.js.map +1 -0
- package/dist/humain/checklist/glyphs.d.ts +7 -0
- package/dist/humain/checklist/glyphs.d.ts.map +1 -0
- package/dist/humain/checklist/glyphs.js +8 -0
- package/dist/humain/checklist/glyphs.js.map +1 -0
- package/dist/humain/checklist/index.d.ts +6 -0
- package/dist/humain/checklist/index.d.ts.map +1 -0
- package/dist/humain/checklist/index.js +37 -0
- package/dist/humain/checklist/index.js.map +1 -0
- package/dist/humain/checklist/progress.d.ts +37 -0
- package/dist/humain/checklist/progress.d.ts.map +1 -0
- package/dist/humain/checklist/progress.js +234 -0
- package/dist/humain/checklist/progress.js.map +1 -0
- package/dist/humain/checklist/projector.d.ts +53 -0
- package/dist/humain/checklist/projector.d.ts.map +1 -0
- package/dist/humain/checklist/projector.js +198 -0
- package/dist/humain/checklist/projector.js.map +1 -0
- package/dist/humain/checklist/sidebar.d.ts +18 -0
- package/dist/humain/checklist/sidebar.d.ts.map +1 -0
- package/dist/humain/checklist/sidebar.js +38 -0
- package/dist/humain/checklist/sidebar.js.map +1 -0
- package/dist/humain/checklist/status-segment.d.ts +19 -0
- package/dist/humain/checklist/status-segment.d.ts.map +1 -0
- package/dist/humain/checklist/status-segment.js +59 -0
- package/dist/humain/checklist/status-segment.js.map +1 -0
- package/dist/humain/checklist/vendor/add-task-dialog.d.ts +54 -0
- package/dist/humain/checklist/vendor/add-task-dialog.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/add-task-dialog.js +238 -0
- package/dist/humain/checklist/vendor/add-task-dialog.js.map +1 -0
- package/dist/humain/checklist/vendor/commands.d.ts +38 -0
- package/dist/humain/checklist/vendor/commands.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/commands.js +193 -0
- package/dist/humain/checklist/vendor/commands.js.map +1 -0
- package/dist/humain/checklist/vendor/index.d.ts +3 -0
- package/dist/humain/checklist/vendor/index.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/index.js +276 -0
- package/dist/humain/checklist/vendor/index.js.map +1 -0
- package/dist/humain/checklist/vendor/render.d.ts +97 -0
- package/dist/humain/checklist/vendor/render.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/render.js +354 -0
- package/dist/humain/checklist/vendor/render.js.map +1 -0
- package/dist/humain/checklist/vendor/settings.d.ts +11 -0
- package/dist/humain/checklist/vendor/settings.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/settings.js +8 -0
- package/dist/humain/checklist/vendor/settings.js.map +1 -0
- package/dist/humain/checklist/vendor/store.d.ts +120 -0
- package/dist/humain/checklist/vendor/store.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/store.js +990 -0
- package/dist/humain/checklist/vendor/store.js.map +1 -0
- package/dist/humain/checklist/vendor/tools.d.ts +21 -0
- package/dist/humain/checklist/vendor/tools.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/tools.js +162 -0
- package/dist/humain/checklist/vendor/tools.js.map +1 -0
- package/dist/humain/checklist/vendor/types.d.ts +188 -0
- package/dist/humain/checklist/vendor/types.d.ts.map +1 -0
- package/dist/humain/checklist/vendor/types.js +32 -0
- package/dist/humain/checklist/vendor/types.js.map +1 -0
- package/dist/humain/gateway/catalog.d.ts +1 -0
- package/dist/humain/gateway/catalog.d.ts.map +1 -1
- package/dist/humain/gateway/catalog.js +1 -0
- package/dist/humain/gateway/catalog.js.map +1 -1
- package/dist/humain/gateway/client.d.ts +1 -0
- package/dist/humain/gateway/client.d.ts.map +1 -1
- package/dist/humain/gateway/client.js +8 -1
- package/dist/humain/gateway/client.js.map +1 -1
- package/dist/humain/gateway/http.d.ts.map +1 -1
- package/dist/humain/gateway/http.js +11 -3
- package/dist/humain/gateway/http.js.map +1 -1
- package/dist/humain/gateway/images.d.ts +3 -0
- package/dist/humain/gateway/images.d.ts.map +1 -0
- package/dist/humain/gateway/images.js +73 -0
- package/dist/humain/gateway/images.js.map +1 -0
- package/dist/humain/gateway/provider.js +1 -1
- package/dist/humain/gateway/provider.js.map +1 -1
- package/dist/humain/hcode/account-store.d.ts.map +1 -1
- package/dist/humain/hcode/account-store.js +3 -1
- package/dist/humain/hcode/account-store.js.map +1 -1
- package/dist/humain/hcode/account.d.ts.map +1 -1
- package/dist/humain/hcode/account.js +23 -13
- package/dist/humain/hcode/account.js.map +1 -1
- package/dist/humain/hcode/images.d.ts.map +1 -1
- package/dist/humain/hcode/images.js +19 -13
- package/dist/humain/hcode/images.js.map +1 -1
- package/dist/humain/hcode/login-failure.d.ts +1 -0
- package/dist/humain/hcode/login-failure.d.ts.map +1 -1
- package/dist/humain/hcode/login-failure.js +1 -0
- package/dist/humain/hcode/login-failure.js.map +1 -1
- package/dist/humain/hcode/provider.d.ts.map +1 -1
- package/dist/humain/hcode/provider.js +2 -1
- package/dist/humain/hcode/provider.js.map +1 -1
- package/dist/humain/hcode/run-credential.d.ts +1 -0
- package/dist/humain/hcode/run-credential.d.ts.map +1 -1
- package/dist/humain/hcode/run-credential.js +12 -4
- package/dist/humain/hcode/run-credential.js.map +1 -1
- package/dist/humain/index.d.ts.map +1 -1
- package/dist/humain/index.js +4 -0
- package/dist/humain/index.js.map +1 -1
- package/dist/humain/node-provider.d.ts.map +1 -1
- package/dist/humain/node-provider.js +37 -8
- package/dist/humain/node-provider.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +38 -26
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/chat-viewport.js +1 -1
- package/dist/modes/interactive/chat-viewport.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +2 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +7 -4
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +2 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +20 -1
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +1 -1
- package/dist/modes/interactive/components/extension-editor.js +2 -2
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +7 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +74 -1
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +11 -4
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +2 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +56 -8
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +13 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +10 -9
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +3 -3
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -3
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +83 -37
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.js +3 -3
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +18 -7
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +70 -24
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/status-line.d.ts +16 -0
- package/dist/modes/interactive/components/status-line.d.ts.map +1 -0
- package/dist/modes/interactive/components/status-line.js +51 -0
- package/dist/modes/interactive/components/status-line.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +5 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +8 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js +11 -3
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/external-editor.d.ts.map +1 -1
- package/dist/modes/interactive/external-editor.js +13 -3
- package/dist/modes/interactive/external-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +17 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +232 -108
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/program-status-reporter.d.ts +2 -0
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -1
- package/dist/modes/interactive/program-status-reporter.js +4 -0
- package/dist/modes/interactive/program-status-reporter.js.map +1 -1
- package/dist/modes/interactive/session-share.d.ts.map +1 -1
- package/dist/modes/interactive/session-share.js +9 -1
- package/dist/modes/interactive/session-share.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +34 -7
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/jsonl.js +6 -5
- package/dist/modes/rpc/jsonl.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +2 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +9 -2
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +2 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +113 -13
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +22 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/modes/uncaught-errors.d.ts +20 -0
- package/dist/modes/uncaught-errors.d.ts.map +1 -0
- package/dist/modes/uncaught-errors.js +56 -0
- package/dist/modes/uncaught-errors.js.map +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +10 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/clipboard-image.js +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard.js +2 -2
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/image-process.d.ts +5 -0
- package/dist/utils/image-process.d.ts.map +1 -1
- package/dist/utils/image-process.js +22 -4
- package/dist/utils/image-process.js.map +1 -1
- package/dist/utils/output-files.d.ts +44 -7
- package/dist/utils/output-files.d.ts.map +1 -1
- package/dist/utils/output-files.js +206 -12
- package/dist/utils/output-files.js.map +1 -1
- package/dist/utils/piped-stdin.d.ts +21 -0
- package/dist/utils/piped-stdin.d.ts.map +1 -0
- package/dist/utils/piped-stdin.js +60 -0
- package/dist/utils/piped-stdin.js.map +1 -0
- package/dist/utils/shell.d.ts +5 -2
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +77 -8
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +33 -2
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +77 -10
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts +1 -0
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +9 -8
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/wsl.d.ts +8 -2
- package/dist/utils/wsl.d.ts.map +1 -1
- package/dist/utils/wsl.js +12 -3
- package/dist/utils/wsl.js.map +1 -1
- package/docs/cli.md +45 -3
- package/docs/codemode.md +7 -3
- package/docs/compaction.md +1 -1
- package/docs/coordination.md +16 -4
- package/docs/development.md +6 -0
- package/docs/environment-variables.md +5 -3
- package/docs/extensions.md +19 -5
- package/docs/keybindings.md +2 -0
- package/docs/llama-cpp.md +2 -2
- package/docs/message-types.md +1 -0
- package/docs/models-configuration.md +14 -3
- package/docs/models.md +29 -7
- package/docs/providers.md +25 -3
- package/docs/rpc-commands.md +25 -2
- package/docs/rpc.md +20 -0
- package/docs/run-preflight.md +2 -2
- package/docs/session-format.md +9 -0
- package/docs/settings.md +35 -5
- package/docs/shell-aliases.md +1 -1
- package/docs/slash-commands.md +3 -1
- package/docs/terminal-setup.md +25 -0
- package/docs/windows.md +2 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/rpc-extension-ui.ts +8 -7
- package/npm-shrinkwrap.json +209 -180
- package/package.json +26 -20
- package/schemas/keybindings.schema.json +12 -0
- package/schemas/models.schema.json +20 -7
- package/schemas/settings.schema.json +43 -5
- package/src/coordination/UPSTREAM.md +27 -1
- package/src/coordination/upstream.json +3 -3
- package/src/humain/ask-user-question/UPSTREAM.md +31 -0
- package/src/humain/ask-user-question/upstream.json +258 -0
- package/src/humain/ask-user-question/vendor/ask/LICENSE +21 -0
- package/src/humain/ask-user-question/vendor/ask/locales/de.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/en.json +41 -0
- package/src/humain/ask-user-question/vendor/ask/locales/es.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/fr.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/pt-BR.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/pt.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/ru.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/uk.json +38 -0
- package/src/humain/ask-user-question/vendor/ask/locales/zh.json +40 -0
- package/src/humain/ask-user-question/vendor/config/LICENSE +21 -0
- package/src/humain/ask-user-question/vendor/i18n/LICENSE +21 -0
- package/src/humain/caveman/UPSTREAM.md +44 -11
- package/src/humain/caveman/upstream.json +3 -3
- package/src/humain/caveman/vendor/NOTICE +4 -0
- package/dist/bundle/chunks/anthropic-messages-XFCDMGD6.js +0 -77
- package/dist/bundle/chunks/azure-openai-responses-F4KQM3NK.js +0 -15
- package/dist/bundle/chunks/bowser-DXKSTXFQ.js +0 -89
- package/dist/bundle/chunks/chunk-3E37CJCE.js +0 -34
- package/dist/bundle/chunks/chunk-3HVHETMU.js +0 -18
- package/dist/bundle/chunks/chunk-3PJ7NPWN.js +0 -80
- package/dist/bundle/chunks/chunk-6JTCRCNF.js +0 -74
- package/dist/bundle/chunks/chunk-F77J5EQZ.js +0 -3
- package/dist/bundle/chunks/chunk-GPLWWO5Q.js +0 -121
- package/dist/bundle/chunks/chunk-GV5OVRKK.js +0 -4
- package/dist/bundle/chunks/chunk-JBSWWCT5.js +0 -12
- package/dist/bundle/chunks/chunk-JQBZUFH7.js +0 -3580
- package/dist/bundle/chunks/chunk-JWOPWHVH.js +0 -51
- package/dist/bundle/chunks/chunk-KRBELWQH.js +0 -7
- package/dist/bundle/chunks/chunk-PFBAIRCY.js +0 -56
- package/dist/bundle/chunks/chunk-Q5RKNQ2T.js +0 -73
- package/dist/bundle/chunks/chunk-QFDZEUFU.js +0 -12
- package/dist/bundle/chunks/chunk-SKCJ25SX.js +0 -24
- package/dist/bundle/chunks/chunk-UEW6TUSP.js +0 -36
- package/dist/bundle/chunks/chunk-UZOIHLNU.js +0 -23
- package/dist/bundle/chunks/chunk-YSWDFV2L.js +0 -11
- package/dist/bundle/chunks/chunk-YZMQXAJM.js +0 -8
- package/dist/bundle/chunks/entry-2GZ3PTWQ.js +0 -2
- package/dist/bundle/chunks/google-generative-ai-WIASMWS3.js +0 -22
- package/dist/bundle/chunks/google-vertex-WSPHRZIZ.js +0 -25
- package/dist/bundle/chunks/interactive-mode-SDUO5OLD.js +0 -5
- package/dist/bundle/chunks/mistral-conversations-7JYDDRUT.js +0 -43
- package/dist/bundle/chunks/openai-codex-responses-7PAML4NF.js +0 -102
- package/dist/bundle/chunks/openai-completions-UJDAIGTK.js +0 -87
- package/dist/bundle/chunks/openai-responses-2WNCE6AY.js +0 -26
- package/dist/bundle/chunks/openrouter-images-V3UCCO6X.js +0 -8
- package/dist/bundle/chunks/pi-messages-TQ7LJUNQ.js +0 -28
- package/dist/bundle/chunks/runtime-H7LYNKCZ.js +0 -2
- package/dist/bundle/chunks/session-picker-EYKCMFQR.js +0 -4
- package/dist/bundle/chunks/startup-ui-7ODOR34R.js +0 -3
- package/dist/bundle/chunks/typesafe-system-one-YP7GGN4C.js +0 -3
- package/dist/bundle/chunks/virtual-modules-IU5KWB2C.js +0 -28
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projector.js","sourceRoot":"","sources":["../../../src/humain/checklist/projector.ts"],"names":[],"mappings":"AA4BA,MAAM,CAAC,MAAM,qBAAqB,GAAG,iEAAiE,CAAC;AAEvG,2FAA2F;AAC3F,MAAM,OAAO,kBAAkB;IACtB,QAAQ,GAAG,IAAI,GAAG,EAAsB,CAAC;IACzC,MAAM,GAAG,IAAI,GAAG,EAA8B,CAAC;IAC/C,KAAK,GAAG,IAAI,GAAG,EAA6D,CAAC;IAC7E,OAAO,GAAG,IAAI,GAAG,EAA6C,CAAC;IAEvE,+EAA+E;IAC/E,WAAW,CAAC,GAAa;QACxB,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;YACpC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;gBACvB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACzB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACvB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACxB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;oBAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;YACnG,CAAC;IACH,CAAC;IAED,cAAc,C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AAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,KAAK,GAAG;gBACP,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,EAAE;gBACZ,eAAe,EAAE,CAAC;gBAClB,YAAY,EAAE,IAAI,GAAG,EAAE;gBACvB,MAAM,EAAE,EAAE;gBACV,cAAc,EAAE,EAAE;aAClB,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAED,SAAS,MAAM,CAAC,KAAc;IAC7B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAE,KAAiC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9F,CAAC","sourcesContent":["// Derives bounded per-task activity from tool lifecycle events without persisting output.\nimport type { ChecklistActivity } from \"@humain/humain-code-contracts/rpc\";\nimport type { TaskStatus } from \"./vendor/types.ts\";\n\nexport type { ChecklistActivity };\nexport interface ChecklistSubagentRow {\n\tagent: string;\n\tstatus: \"queued\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\";\n\tstartedAt: string | null;\n\ttoolCalls: number;\n}\nexport interface ChecklistTaskTrace {\n\tcreatedAt: string;\n\tstartedAt: string | null;\n\tendedAt: string | null;\n\tactivity: ChecklistActivity[];\n\tactivityOmitted: number;\n\tfilesTouched: Map<string, { added: number | null; removed: number | null }>;\n\tchecks: { command: string; outcome: \"passed\" | \"failed\"; at: string }[];\n\tsubagentRunIds: string[];\n}\nexport interface ToolResultLike {\n\tisError?: boolean;\n\tdetails?: unknown;\n\tstructuredContent?: unknown;\n\tcontent?: unknown;\n\tdurationMs?: number;\n}\nexport const CHECK_COMMAND_PATTERN = /\\b(test|check|lint|vitest|jest|pytest|cargo test|go test|tsc)\\b/;\n\n/** Owns one session epoch's attribution; callers reset before replaying another branch. */\nexport class ChecklistProjector {\n\tprivate statuses = new Map<string, TaskStatus>();\n\tprivate traces = new Map<string, ChecklistTaskTrace>();\n\tprivate calls = new Map<string, { owners: string[]; at: string; shared: boolean }>();\n\tprivate workers = new Map<string, Map<string, ChecklistSubagentRow>>();\n\n\t/** Retires removed tasks so replacement lists cannot inherit active owners. */\n\tretainTasks(ids: string[]): void {\n\t\tfor (const id of this.statuses.keys())\n\t\t\tif (!ids.includes(id)) {\n\t\t\t\tthis.statuses.delete(id);\n\t\t\t\tthis.traces.delete(id);\n\t\t\t\tthis.workers.delete(id);\n\t\t\t\tfor (const call of this.calls.values()) call.owners = call.owners.filter((owner) => owner !== id);\n\t\t\t}\n\t}\n\n\tonStatusChange(taskId: string, status: TaskStatus, at: string): void {\n\t\tconst trace = this.ensure(taskId, at);\n\t\tif (status === \"ongoing\" && trace.startedAt === null) trace.startedAt = at;\n\t\tif ((status === \"done\" || status === \"cancelled\") && trace.endedAt === null) trace.endedAt = at;\n\t\tthis.statuses.set(taskId, status);\n\t}\n\n\tonToolStart(toolCallId: string, at: string): void {\n\t\tif (this.calls.has(toolCallId)) return;\n\t\tconst owners = [...this.statuses].filter(([, status]) => status === \"ongoing\").map(([id]) => id);\n\t\tthis.calls.set(toolCallId, { owners: owners.length ? owners : [\"unassigned\"], at, shared: owners.length > 1 });\n\t}\n\n\tonToolEnd(toolCallId: string, tool: string, args: unknown, result: ToolResultLike, at: string): void {\n\t\tconst call = this.calls.get(toolCallId);\n\t\tif (!call) return;\n\t\tif (tool === \"subagent\") this.onToolUpdate(toolCallId, tool, result, at);\n\t\tthis.calls.delete(toolCallId);\n\t\tconst input = record(args);\n\t\tconst details = record(result.details);\n\t\tconst structured = record(result.structuredContent);\n\t\tlet code = structured.exit_code ?? details.exitCode;\n\t\t// Session tool-result entries omit structuredContent. The shell's fixed status\n\t\t// suffix is the persisted exit evidence; do not retain its transcript output.\n\t\tif (tool === \"bash\" && code === undefined) {\n\t\t\tif (!result.isError) code = 0;\n\t\t\telse if (Array.isArray(result.content)) {\n\t\t\t\tfor (const part of result.content) {\n\t\t\t\t\tconst text = record(part).text;\n\t\t\t\t\tconst match = typeof text === \"string\" ? /Command exited with code (-?\\d+)\\s*$/.exec(text) : null;\n\t\t\t\t\tif (match) code = Number(match[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconst exitCode = typeof code === \"number\" && Number.isSafeInteger(code) ? code : null;\n\t\tconst outcome = result.isError || (exitCode !== null && exitCode !== 0) ? \"error\" : \"ok\";\n\t\tconst target =\n\t\t\ttypeof input.command === \"string\" ? input.command : typeof input.path === \"string\" ? input.path : \"\";\n\t\tfor (const id of call.owners) {\n\t\t\tconst trace = this.ensure(id, call.at);\n\t\t\ttrace.activity.push({\n\t\t\t\tat,\n\t\t\t\ttool,\n\t\t\t\ttarget: target.slice(0, 160).replace(/[\\uD800-\\uDBFF]$/, \"\"),\n\t\t\t\toutcome,\n\t\t\t\texitCode,\n\t\t\t\tdurationMs: result.durationMs ?? Math.max(0, Date.parse(at) - Date.parse(call.at)),\n\t\t\t\tshared: call.shared,\n\t\t\t});\n\t\t\tif (trace.activity.length > 50) {\n\t\t\t\ttrace.activity.shift();\n\t\t\t\ttrace.activityOmitted++;\n\t\t\t}\n\t\t\tif (outcome === \"ok\" && (tool === \"edit\" || tool === \"write\") && typeof input.path === \"string\") {\n\t\t\t\tconst patch = typeof details.patch === \"string\" ? details.patch.split(\"\\n\") : undefined;\n\t\t\t\tconst added =\n\t\t\t\t\ttypeof details.added === \"number\"\n\t\t\t\t\t\t? details.added\n\t\t\t\t\t\t: (patch?.filter((line) => line.startsWith(\"+\") && !line.startsWith(\"+++\")).length ?? null);\n\t\t\t\tconst removed =\n\t\t\t\t\ttypeof details.removed === \"number\"\n\t\t\t\t\t\t? details.removed\n\t\t\t\t\t\t: (patch?.filter((line) => line.startsWith(\"-\") && !line.startsWith(\"---\")).length ?? null);\n\t\t\t\tconst prior = trace.filesTouched.get(input.path);\n\t\t\t\ttrace.filesTouched.set(input.path, {\n\t\t\t\t\tadded: added === null || prior?.added === null ? null : (prior?.added ?? 0) + added,\n\t\t\t\t\tremoved: removed === null || prior?.removed === null ? null : (prior?.removed ?? 0) + removed,\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (tool === \"bash\" && CHECK_COMMAND_PATTERN.test(target))\n\t\t\t\ttrace.checks.push({ command: target, outcome: outcome === \"ok\" ? \"passed\" : \"failed\", at });\n\t\t\tconst progress = record(details.subagentProgress);\n\t\t\tif (typeof progress.runId === \"string\" && !trace.subagentRunIds.includes(progress.runId))\n\t\t\t\ttrace.subagentRunIds.push(progress.runId);\n\t\t\tif (Array.isArray(progress.runs))\n\t\t\t\tfor (const value of progress.runs) {\n\t\t\t\t\tconst run = record(value);\n\t\t\t\t\tif (typeof run.runId === \"string\" && !trace.subagentRunIds.includes(run.runId))\n\t\t\t\t\t\ttrace.subagentRunIds.push(run.runId);\n\t\t\t\t}\n\t\t}\n\t}\n\n\tonToolUpdate(toolCallId: string, tool: string, partial: unknown, at: string): void {\n\t\tif (tool !== \"subagent\") return;\n\t\tconst call = this.calls.get(toolCallId);\n\t\tif (!call) return;\n\t\tconst envelope = record(partial);\n\t\tconst details = record(envelope.details ?? partial);\n\t\tif (!Array.isArray(details.results)) return;\n\t\tconst events = Array.isArray(details.taskEvents) ? details.taskEvents.map(record) : [];\n\t\tfor (const id of call.owners) {\n\t\t\tlet rows = this.workers.get(id);\n\t\t\tif (!rows) {\n\t\t\t\trows = new Map();\n\t\t\t\tthis.workers.set(id, rows);\n\t\t\t}\n\t\t\tfor (const [index, value] of details.results.entries()) {\n\t\t\t\tconst result = record(value);\n\t\t\t\tif (typeof result.agent !== \"string\") continue;\n\t\t\t\tconst key = `${toolCallId}:${typeof result.taskId === \"string\" ? result.taskId : index}`;\n\t\t\t\tconst prior = rows.get(key);\n\t\t\t\tlet status: ChecklistSubagentRow[\"status\"] = prior?.status ?? \"queued\";\n\t\t\t\tlet startedAt = prior?.startedAt ?? null;\n\t\t\t\tfor (const event of events) {\n\t\t\t\t\tif (event.taskId !== result.taskId) continue;\n\t\t\t\t\tif (event.type === \"start\") {\n\t\t\t\t\t\tstatus = \"running\";\n\t\t\t\t\t\tstartedAt = typeof event.at === \"number\" ? new Date(event.at).toISOString() : at;\n\t\t\t\t\t}\n\t\t\t\t\tif (event.type === \"complete\") status = \"completed\";\n\t\t\t\t\tif (event.type === \"fail\" || event.type === \"skip\") status = \"failed\";\n\t\t\t\t}\n\t\t\t\tif (!events.length || !events.some((event) => event.taskId === result.taskId)) {\n\t\t\t\t\tstatus = result.exitCode === -1 ? \"running\" : result.exitCode === 0 ? \"completed\" : \"failed\";\n\t\t\t\t\tif (status === \"running\") startedAt ??= at;\n\t\t\t\t}\n\t\t\t\tconst usage = record(result.usage);\n\t\t\t\trows.set(key, {\n\t\t\t\t\tagent: result.agent,\n\t\t\t\t\tstatus,\n\t\t\t\t\tstartedAt,\n\t\t\t\t\ttoolCalls: typeof usage.toolCalls === \"number\" ? usage.toolCalls : (prior?.toolCalls ?? 0),\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\ttrace(taskId: string): ChecklistTaskTrace | undefined {\n\t\treturn this.traces.get(taskId);\n\t}\n\tsubagents(taskId: string): ChecklistSubagentRow[] {\n\t\treturn this.statuses.get(taskId) === \"done\" || this.statuses.get(taskId) === \"cancelled\"\n\t\t\t? []\n\t\t\t: [...(this.workers.get(taskId)?.values() ?? [])];\n\t}\n\trunningSubagentCount(): number {\n\t\tconst keys = new Set<string>();\n\t\tfor (const workers of this.workers.values())\n\t\t\tfor (const [key, row] of workers) if (row.status === \"running\") keys.add(key);\n\t\treturn keys.size;\n\t}\n\treset(): void {\n\t\tthis.statuses.clear();\n\t\tthis.traces.clear();\n\t\tthis.calls.clear();\n\t\tthis.workers.clear();\n\t}\n\tprivate ensure(id: string, at: string): ChecklistTaskTrace {\n\t\tlet trace = this.traces.get(id);\n\t\tif (!trace) {\n\t\t\ttrace = {\n\t\t\t\tcreatedAt: at,\n\t\t\t\tstartedAt: null,\n\t\t\t\tendedAt: null,\n\t\t\t\tactivity: [],\n\t\t\t\tactivityOmitted: 0,\n\t\t\t\tfilesTouched: new Map(),\n\t\t\t\tchecks: [],\n\t\t\t\tsubagentRunIds: [],\n\t\t\t};\n\t\t\tthis.traces.set(id, trace);\n\t\t}\n\t\treturn trace;\n\t}\n}\n\nfunction record(value: unknown): Record<string, unknown> {\n\treturn typeof value === \"object\" && value !== null ? (value as Record<string, unknown>) : {};\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Theme } from "../../modes/interactive/theme/theme.ts";
|
|
2
|
+
import type { TaskView } from "./vendor/types.ts";
|
|
3
|
+
export interface ChecklistSubagentRow {
|
|
4
|
+
agent: string;
|
|
5
|
+
status: "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
6
|
+
startedAt: string | null;
|
|
7
|
+
toolCalls: number;
|
|
8
|
+
}
|
|
9
|
+
/** Render wrapped checklist details; subagent rows are supplied by the caller. */
|
|
10
|
+
export declare class ChecklistSidebar {
|
|
11
|
+
constructor(privateTasks: () => TaskView[], subagents: (taskId: string) => ChecklistSubagentRow[], theme: Theme);
|
|
12
|
+
private theme;
|
|
13
|
+
private tasks;
|
|
14
|
+
private subagents;
|
|
15
|
+
invalidate(): void;
|
|
16
|
+
render(width: number): string[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/humain/checklist/sidebar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,oBAAoB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACpE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,kFAAkF;AAClF,qBAAa,gBAAgB;IAC5B,YAAY,YAAY,EAAE,MAAM,QAAQ,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,oBAAoB,EAAE,EAAE,KAAK,EAAE,KAAK,EAI9G;IACD,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,SAAS,CAA6C;IAC9D,UAAU,IAAI,IAAI,CAAG;IACrB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAkC9B;CACD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Passive, right-anchored checklist details. */
|
|
2
|
+
import { wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
3
|
+
import { checklistResolvedCount } from "./footer-progress.js";
|
|
4
|
+
import { CHECKLIST_GLYPHS } from "./glyphs.js";
|
|
5
|
+
/** Render wrapped checklist details; subagent rows are supplied by the caller. */
|
|
6
|
+
export class ChecklistSidebar {
|
|
7
|
+
constructor(privateTasks, subagents, theme) {
|
|
8
|
+
this.tasks = privateTasks;
|
|
9
|
+
this.subagents = subagents;
|
|
10
|
+
this.theme = theme;
|
|
11
|
+
}
|
|
12
|
+
theme;
|
|
13
|
+
tasks;
|
|
14
|
+
subagents;
|
|
15
|
+
invalidate() { }
|
|
16
|
+
render(width) {
|
|
17
|
+
const tasks = this.tasks();
|
|
18
|
+
const lines = [`Tasks ${checklistResolvedCount(tasks)}/${tasks.length}`];
|
|
19
|
+
for (const task of tasks) {
|
|
20
|
+
lines.push(...wrapTextWithAnsi(`${this.theme.fg(CHECKLIST_GLYPHS[task.status].color, CHECKLIST_GLYPHS[task.status].glyph)} ${task.title}`, width));
|
|
21
|
+
if (task.blockedBy.length)
|
|
22
|
+
lines.push(...wrapTextWithAnsi(` waits on: ${task.blockedBy.map((id) => tasks.find((t) => t.id === id)?.title ?? "unavailable dependency").join(", ")}`, width));
|
|
23
|
+
if (task.notes)
|
|
24
|
+
lines.push(...wrapTextWithAnsi(` ${task.notes}`, width));
|
|
25
|
+
if (task.status === "done" || task.status === "cancelled")
|
|
26
|
+
continue;
|
|
27
|
+
for (const row of this.subagents(task.id)) {
|
|
28
|
+
const glyph = row.status === "running" ? "●" : row.status === "completed" ? "✓" : row.status === "queued" ? "○" : "✗";
|
|
29
|
+
const elapsed = row.startedAt
|
|
30
|
+
? `${Math.max(0, Math.floor((Date.now() - Date.parse(row.startedAt)) / 60000))}m`
|
|
31
|
+
: "";
|
|
32
|
+
lines.push(...wrapTextWithAnsi(`└ ${this.theme.fg(row.status === "running" ? "warning" : row.status === "completed" ? "success" : "dim", glyph)} ${row.agent} ${elapsed} · ${row.toolCalls} tools`, width));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return lines;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=sidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../../../src/humain/checklist/sidebar.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAU/C,kFAAkF;AAClF,MAAM,OAAO,gBAAgB;IAC5B,YAAY,YAA8B,EAAE,SAAqD,EAAE,KAAY;QAC9G,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KA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AAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC3C,MAAM,KAAK,GACV,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACzG,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS;oBAC5B,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG;oBACjF,CAAC,CAAC,EAAE,CAAC;gBACN,KAAK,CAAC,IAAI,CACT,GAAG,gBAAgB,CAClB,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,KAAK,OAAO,MAAM,GAAG,CAAC,SAAS,QAAQ,EACpK,KAAK,CACL,CACD,CAAC;YACH,CAAC;QACF,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;CACD","sourcesContent":["/** Passive, right-anchored checklist details. */\nimport { wrapTextWithAnsi } from \"@earendil-works/pi-tui\";\nimport type { Theme } from \"../../modes/interactive/theme/theme.ts\";\nimport { checklistResolvedCount } from \"./footer-progress.ts\";\nimport { CHECKLIST_GLYPHS } from \"./glyphs.ts\";\nimport type { TaskView } from \"./vendor/types.ts\";\n\nexport interface ChecklistSubagentRow {\n\tagent: string;\n\tstatus: \"queued\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\";\n\tstartedAt: string | null;\n\ttoolCalls: number;\n}\n\n/** Render wrapped checklist details; subagent rows are supplied by the caller. */\nexport class ChecklistSidebar {\n\tconstructor(privateTasks: () => TaskView[], subagents: (taskId: string) => ChecklistSubagentRow[], theme: Theme) {\n\t\tthis.tasks = privateTasks;\n\t\tthis.subagents = subagents;\n\t\tthis.theme = theme;\n\t}\n\tprivate theme: Theme;\n\tprivate tasks: () => TaskView[];\n\tprivate subagents: (taskId: string) => ChecklistSubagentRow[];\n\tinvalidate(): void {}\n\trender(width: number): string[] {\n\t\tconst tasks = this.tasks();\n\t\tconst lines = [`Tasks ${checklistResolvedCount(tasks)}/${tasks.length}`];\n\t\tfor (const task of tasks) {\n\t\t\tlines.push(\n\t\t\t\t...wrapTextWithAnsi(\n\t\t\t\t\t`${this.theme.fg(CHECKLIST_GLYPHS[task.status].color, CHECKLIST_GLYPHS[task.status].glyph)} ${task.title}`,\n\t\t\t\t\twidth,\n\t\t\t\t),\n\t\t\t);\n\t\t\tif (task.blockedBy.length)\n\t\t\t\tlines.push(\n\t\t\t\t\t...wrapTextWithAnsi(\n\t\t\t\t\t\t` waits on: ${task.blockedBy.map((id) => tasks.find((t) => t.id === id)?.title ?? \"unavailable dependency\").join(\", \")}`,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\tif (task.notes) lines.push(...wrapTextWithAnsi(` ${task.notes}`, width));\n\t\t\tif (task.status === \"done\" || task.status === \"cancelled\") continue;\n\t\t\tfor (const row of this.subagents(task.id)) {\n\t\t\t\tconst glyph =\n\t\t\t\t\trow.status === \"running\" ? \"●\" : row.status === \"completed\" ? \"✓\" : row.status === \"queued\" ? \"○\" : \"✗\";\n\t\t\t\tconst elapsed = row.startedAt\n\t\t\t\t\t? `${Math.max(0, Math.floor((Date.now() - Date.parse(row.startedAt)) / 60000))}m`\n\t\t\t\t\t: \"\";\n\t\t\t\tlines.push(\n\t\t\t\t\t...wrapTextWithAnsi(\n\t\t\t\t\t\t`└ ${this.theme.fg(row.status === \"running\" ? \"warning\" : row.status === \"completed\" ? \"success\" : \"dim\", glyph)} ${row.agent} ${elapsed} · ${row.toolCalls} tools`,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn lines;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Owner-scoped checklist projection consumed by the bundled status line. */
|
|
2
|
+
import type { TaskView } from "./vendor/types.ts";
|
|
3
|
+
export interface ChecklistProvider {
|
|
4
|
+
current(): readonly TaskView[];
|
|
5
|
+
subscribe(listener: () => void): () => void;
|
|
6
|
+
}
|
|
7
|
+
/** Read task views on demand; subscribing creates no timer or persisted state. */
|
|
8
|
+
export declare function getChecklistProvider(): ChecklistProvider;
|
|
9
|
+
/** Read the active checklist's compact status without exposing task state. */
|
|
10
|
+
export declare function getChecklistStatusSegment(): {
|
|
11
|
+
text: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
/** Create a session owner; superseded owners cannot publish or clear newer state. */
|
|
14
|
+
export declare function createChecklistStatusOwner(tasks?: () => readonly TaskView[]): {
|
|
15
|
+
activate: () => void;
|
|
16
|
+
update(text: string | undefined): void;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=status-segment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-segment.d.ts","sourceRoot":"","sources":["../../../src/humain/checklist/status-segment.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,iBAAiB;IACjC,OAAO,IAAI,SAAS,QAAQ,EAAE,CAAC;IAC/B,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC5C;AAiBD,kFAAkF;AAClF,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD;AASD,8EAA8E;AAC9E,wBAAgB,yBAAyB,IAAI;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAExE;AAED,qFAAqF;AACrF,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,MAAM,SAAS,QAAQ,EAAE;oBAEtD,IAAI;iBASX,MAAM,GAAG,SAAS,GAAG,IAAI;eAK3B,IAAI;EAQhB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const emptyTasks = [];
|
|
2
|
+
let readTasks;
|
|
3
|
+
let listeners;
|
|
4
|
+
const provider = {
|
|
5
|
+
current: () => readTasks?.() ?? emptyTasks,
|
|
6
|
+
subscribe(listener) {
|
|
7
|
+
listeners ??= new Set();
|
|
8
|
+
listeners.add(listener);
|
|
9
|
+
return () => {
|
|
10
|
+
listeners?.delete(listener);
|
|
11
|
+
if (listeners?.size === 0)
|
|
12
|
+
listeners = undefined;
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
/** Read task views on demand; subscribing creates no timer or persisted state. */
|
|
17
|
+
export function getChecklistProvider() {
|
|
18
|
+
return provider;
|
|
19
|
+
}
|
|
20
|
+
function notify() {
|
|
21
|
+
if (listeners)
|
|
22
|
+
for (const listener of listeners)
|
|
23
|
+
listener();
|
|
24
|
+
}
|
|
25
|
+
let activeOwner;
|
|
26
|
+
let segment;
|
|
27
|
+
/** Read the active checklist's compact status without exposing task state. */
|
|
28
|
+
export function getChecklistStatusSegment() {
|
|
29
|
+
return segment;
|
|
30
|
+
}
|
|
31
|
+
/** Create a session owner; superseded owners cannot publish or clear newer state. */
|
|
32
|
+
export function createChecklistStatusOwner(tasks) {
|
|
33
|
+
const owner = {};
|
|
34
|
+
function activate() {
|
|
35
|
+
activeOwner = owner;
|
|
36
|
+
segment = undefined;
|
|
37
|
+
readTasks = tasks;
|
|
38
|
+
notify();
|
|
39
|
+
}
|
|
40
|
+
activate();
|
|
41
|
+
return {
|
|
42
|
+
activate,
|
|
43
|
+
update(text) {
|
|
44
|
+
if (activeOwner !== owner)
|
|
45
|
+
return;
|
|
46
|
+
segment = text === undefined ? undefined : { text };
|
|
47
|
+
notify();
|
|
48
|
+
},
|
|
49
|
+
dispose() {
|
|
50
|
+
if (activeOwner !== owner)
|
|
51
|
+
return;
|
|
52
|
+
activeOwner = undefined;
|
|
53
|
+
segment = undefined;
|
|
54
|
+
readTasks = undefined;
|
|
55
|
+
notify();
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=status-segment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-segment.js","sourceRoot":"","sources":["../../../src/humain/checklist/status-segment.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,GAAwB,EAAE,CAAC;AAC3C,IAAI,SAAkD,CAAC;AACvD,IAAI,SAAsC,CAAC;AAC3C,MAAM,QAAQ,GAAsB;IACnC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,EAAE,IAAI,UAAU;IAC1C,SAAS,CAAC,QAAQ;QACjB,SAAS,KAAK,IAAI,GAAG,EAAE,CAAC;QACxB,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO,GAAG,EAAE;YACX,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5B,IAAI,SAAS,EAAE,IAAI,KAAK,CAAC;gBAAE,SAAS,GAAG,SAAS,CAAC;QAClD,CAAC,CAAC;IACH,CAAC;CACD,CAAC;AAEF,kFAAkF;AAClF,MAAM,UAAU,oBAAoB;IACnC,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,SAAS,MAAM;IACd,IAAI,SAAS;QAAE,KAAK,MAAM,QAAQ,IAAI,SAAS;YAAE,QAAQ,EAAE,CAAC;AAC7D,CAAC;AAED,IAAI,WAA+B,CAAC;AACpC,IAAI,OAAqC,CAAC;AAE1C,8EAA8E;AAC9E,MAAM,UAAU,yBAAyB;IACxC,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,0BAA0B,CAAC,KAAiC;IAC3E,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,SAAS,QAAQ;QAChB,WAAW,GAAG,KAAK,CAAC;QACpB,OAAO,GAAG,SAAS,CAAC;QACpB,SAAS,GAAG,KAAK,CAAC;QAClB,MAAM,EAAE,CAAC;IACV,CAAC;IACD,QAAQ,EAAE,CAAC;IACX,OAAO;QACN,QAAQ;QACR,MAAM,CAAC,IAAwB;YAC9B,IAAI,WAAW,KAAK,KAAK;gBAAE,OAAO;YAClC,OAAO,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;YACpD,MAAM,EAAE,CAAC;QACV,CAAC;QACD,OAAO;YACN,IAAI,WAAW,KAAK,KAAK;gBAAE,OAAO;YAClC,WAAW,GAAG,SAAS,CAAC;YACxB,OAAO,GAAG,SAAS,CAAC;YACpB,SAAS,GAAG,SAAS,CAAC;YACtB,MAAM,EAAE,CAAC;QACV,CAAC;KACD,CAAC;AACH,CAAC","sourcesContent":["/** Owner-scoped checklist projection consumed by the bundled status line. */\nimport type { TaskView } from \"./vendor/types.ts\";\n\nexport interface ChecklistProvider {\n\tcurrent(): readonly TaskView[];\n\tsubscribe(listener: () => void): () => void;\n}\n\nconst emptyTasks: readonly TaskView[] = [];\nlet readTasks: (() => readonly TaskView[]) | undefined;\nlet listeners: Set<() => void> | undefined;\nconst provider: ChecklistProvider = {\n\tcurrent: () => readTasks?.() ?? emptyTasks,\n\tsubscribe(listener) {\n\t\tlisteners ??= new Set();\n\t\tlisteners.add(listener);\n\t\treturn () => {\n\t\t\tlisteners?.delete(listener);\n\t\t\tif (listeners?.size === 0) listeners = undefined;\n\t\t};\n\t},\n};\n\n/** Read task views on demand; subscribing creates no timer or persisted state. */\nexport function getChecklistProvider(): ChecklistProvider {\n\treturn provider;\n}\n\nfunction notify(): void {\n\tif (listeners) for (const listener of listeners) listener();\n}\n\nlet activeOwner: object | undefined;\nlet segment: { text: string } | undefined;\n\n/** Read the active checklist's compact status without exposing task state. */\nexport function getChecklistStatusSegment(): { text: string } | undefined {\n\treturn segment;\n}\n\n/** Create a session owner; superseded owners cannot publish or clear newer state. */\nexport function createChecklistStatusOwner(tasks?: () => readonly TaskView[]) {\n\tconst owner = {};\n\tfunction activate(): void {\n\t\tactiveOwner = owner;\n\t\tsegment = undefined;\n\t\treadTasks = tasks;\n\t\tnotify();\n\t}\n\tactivate();\n\treturn {\n\t\tactivate,\n\t\tupdate(text: string | undefined): void {\n\t\t\tif (activeOwner !== owner) return;\n\t\t\tsegment = text === undefined ? undefined : { text };\n\t\t\tnotify();\n\t\t},\n\t\tdispose(): void {\n\t\t\tif (activeOwner !== owner) return;\n\t\t\tactiveOwner = undefined;\n\t\t\tsegment = undefined;\n\t\t\treadTasks = undefined;\n\t\t\tnotify();\n\t\t},\n\t};\n}\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** /checklist add: TUI dialog for entering one task by hand (text, dependencies). */
|
|
2
|
+
import { type Focusable } from "@earendil-works/pi-tui";
|
|
3
|
+
import type { Theme } from "../../../modes/interactive/theme/theme.ts";
|
|
4
|
+
import { type RenderOpts } from "./render.ts";
|
|
5
|
+
import { type AddTaskDraft, type AddTaskResult } from "./store.ts";
|
|
6
|
+
import type { Checklist } from "./types.ts";
|
|
7
|
+
export interface AddTaskDialogCallbacks {
|
|
8
|
+
/** Validate + commit the task. The dialog stays open on `ok: false`. */
|
|
9
|
+
onSubmit: (draft: Omit<AddTaskDraft, "id">) => AddTaskResult;
|
|
10
|
+
/** Close the dialog (after a successful submit or on cancel). */
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
requestRender: () => void;
|
|
13
|
+
/** Max rows the whole dialog may occupy (see dialogMaxRows). Undefined = unlimited. */
|
|
14
|
+
getMaxRows?: () => number | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The add-task dialog: Task field, and a checkbox picker over the
|
|
18
|
+
* existing tasks for `dependsOn`. Keyboard only (see `hintFor`). Validation is
|
|
19
|
+
* delegated to `onSubmit` (the store), which checks against the live checklist.
|
|
20
|
+
*/
|
|
21
|
+
export declare class AddTaskDialog implements Focusable {
|
|
22
|
+
private readonly items;
|
|
23
|
+
private readonly theme;
|
|
24
|
+
private readonly cb;
|
|
25
|
+
private readonly opts;
|
|
26
|
+
private readonly titleInput;
|
|
27
|
+
private readonly picked;
|
|
28
|
+
private focus;
|
|
29
|
+
/** Highlighted picker row. */
|
|
30
|
+
private cursor;
|
|
31
|
+
/** First visible picker row when the list is taller than the dialog. */
|
|
32
|
+
private scrollTop;
|
|
33
|
+
private errors;
|
|
34
|
+
private hostFocused;
|
|
35
|
+
constructor(checklist: Checklist | null, initial: {
|
|
36
|
+
title?: string;
|
|
37
|
+
}, theme: Theme, cb: AddTaskDialogCallbacks, opts?: RenderOpts);
|
|
38
|
+
get focused(): boolean;
|
|
39
|
+
set focused(value: boolean);
|
|
40
|
+
private syncFocus;
|
|
41
|
+
/** Field order for Tab / arrows; the picker is skipped when there is nothing to pick. */
|
|
42
|
+
private fields;
|
|
43
|
+
private moveFocus;
|
|
44
|
+
private setFocus;
|
|
45
|
+
private draft;
|
|
46
|
+
private submit;
|
|
47
|
+
handleInput(data: string): void;
|
|
48
|
+
private hintFor;
|
|
49
|
+
private label;
|
|
50
|
+
private errorLines;
|
|
51
|
+
render(width: number): string[];
|
|
52
|
+
invalidate(): void;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=add-task-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-task-dialog.d.ts","sourceRoot":"","sources":["../../../../src/humain/checklist/vendor/add-task-dialog.ts"],"names":[],"mappings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AE,KAAK,EACZ,EAAE,EAAE,sBAAsB,EAC1B,IAAI,GAAE,UAAgC,EAatC;IAID,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAGzB;IAED,OAAO,CAAC,SAAS;IAMjB,yFAAyF;IACzF,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,MAAM;IAed,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAmD9B;IAID,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,UAAU;IAMlB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAgE9B;IAED,UAAU,IAAI,IAAI,CAEjB;CACD"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/** /checklist add: TUI dialog for entering one task by hand (text, dependencies). */
|
|
2
|
+
import { Input, matchesKey, truncateToWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
3
|
+
import { colorFor, DEFAULT_RENDER_OPTS, frameDialog, glyphFor, statusKindOf } from "./render.js";
|
|
4
|
+
import { viewsOf } from "./store.js";
|
|
5
|
+
/** Rows the dialog uses besides the picker's task rows are counted at render
|
|
6
|
+
* time; this is only the frame (top + bottom border). */
|
|
7
|
+
const FRAME_ROWS = 2;
|
|
8
|
+
const LABEL_WIDTH = 10; // "Depends on"
|
|
9
|
+
/** marker (2) + label + space, inside the 1-col left pad. */
|
|
10
|
+
const PREFIX_WIDTH = 1 + 2 + LABEL_WIDTH + 1;
|
|
11
|
+
/** Replace an Input's text and leave the cursor at the end (setValue alone keeps it at 0). */
|
|
12
|
+
function fillInput(input, text) {
|
|
13
|
+
input.setValue("");
|
|
14
|
+
if (text !== "")
|
|
15
|
+
input.handleInput(`\x1b[200~${text}\x1b[201~`);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The add-task dialog: Task field, and a checkbox picker over the
|
|
19
|
+
* existing tasks for `dependsOn`. Keyboard only (see `hintFor`). Validation is
|
|
20
|
+
* delegated to `onSubmit` (the store), which checks against the live checklist.
|
|
21
|
+
*/
|
|
22
|
+
export class AddTaskDialog {
|
|
23
|
+
items;
|
|
24
|
+
theme;
|
|
25
|
+
cb;
|
|
26
|
+
opts;
|
|
27
|
+
titleInput;
|
|
28
|
+
picked = new Set();
|
|
29
|
+
focus = "title";
|
|
30
|
+
/** Highlighted picker row. */
|
|
31
|
+
cursor = 0;
|
|
32
|
+
/** First visible picker row when the list is taller than the dialog. */
|
|
33
|
+
scrollTop = 0;
|
|
34
|
+
errors = {};
|
|
35
|
+
hostFocused = false;
|
|
36
|
+
constructor(checklist, initial, theme, cb, opts = DEFAULT_RENDER_OPTS) {
|
|
37
|
+
this.items = checklist ? viewsOf(checklist) : [];
|
|
38
|
+
this.theme = theme;
|
|
39
|
+
this.cb = cb;
|
|
40
|
+
this.opts = opts;
|
|
41
|
+
this.titleInput = new Input({
|
|
42
|
+
prompt: "",
|
|
43
|
+
placeholder: "what needs doing?",
|
|
44
|
+
placeholderStyle: (s) => theme.fg("dim", s),
|
|
45
|
+
});
|
|
46
|
+
fillInput(this.titleInput, (initial.title ?? "").replace(/[\r\n]+/g, " ").trim());
|
|
47
|
+
this.syncFocus();
|
|
48
|
+
}
|
|
49
|
+
// -- Focusable: forward the host's focus to the visible text input (IME cursor) --
|
|
50
|
+
get focused() {
|
|
51
|
+
return this.hostFocused;
|
|
52
|
+
}
|
|
53
|
+
set focused(value) {
|
|
54
|
+
this.hostFocused = value;
|
|
55
|
+
this.syncFocus();
|
|
56
|
+
}
|
|
57
|
+
syncFocus() {
|
|
58
|
+
this.titleInput.focused = this.hostFocused && this.focus === "title";
|
|
59
|
+
}
|
|
60
|
+
// -- state helpers ----------------------------------------------------------
|
|
61
|
+
/** Field order for Tab / arrows; the picker is skipped when there is nothing to pick. */
|
|
62
|
+
fields() {
|
|
63
|
+
return this.items.length > 0 ? ["title", "deps"] : ["title"];
|
|
64
|
+
}
|
|
65
|
+
moveFocus(delta, wrap) {
|
|
66
|
+
const fields = this.fields();
|
|
67
|
+
const at = fields.indexOf(this.focus);
|
|
68
|
+
let next = at + delta;
|
|
69
|
+
if (wrap)
|
|
70
|
+
next = (next + fields.length) % fields.length;
|
|
71
|
+
next = Math.max(0, Math.min(fields.length - 1, next));
|
|
72
|
+
this.setFocus(fields[next]);
|
|
73
|
+
}
|
|
74
|
+
setFocus(field) {
|
|
75
|
+
this.focus = field;
|
|
76
|
+
this.syncFocus();
|
|
77
|
+
}
|
|
78
|
+
draft() {
|
|
79
|
+
return {
|
|
80
|
+
title: this.titleInput.getValue(),
|
|
81
|
+
dependsOn: this.items.filter((v) => this.picked.has(v.id)).map((v) => v.id),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
submit() {
|
|
85
|
+
const result = this.cb.onSubmit(this.draft());
|
|
86
|
+
if (result.ok) {
|
|
87
|
+
this.cb.onClose();
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
this.errors = result.errors;
|
|
91
|
+
// Jump to the first field with a problem.
|
|
92
|
+
if (result.errors.title)
|
|
93
|
+
this.setFocus("title");
|
|
94
|
+
else if (result.errors.dependsOn && this.items.length > 0)
|
|
95
|
+
this.setFocus("deps");
|
|
96
|
+
this.cb.requestRender();
|
|
97
|
+
}
|
|
98
|
+
// -- input ------------------------------------------------------------------
|
|
99
|
+
handleInput(data) {
|
|
100
|
+
if (matchesKey(data, "escape") || matchesKey(data, "ctrl+c")) {
|
|
101
|
+
this.cb.onClose();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (matchesKey(data, "enter")) {
|
|
105
|
+
this.submit();
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (matchesKey(data, "tab")) {
|
|
109
|
+
this.moveFocus(1, true);
|
|
110
|
+
this.cb.requestRender();
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (matchesKey(data, "shift+tab")) {
|
|
114
|
+
this.moveFocus(-1, true);
|
|
115
|
+
this.cb.requestRender();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (this.focus === "deps") {
|
|
119
|
+
if (matchesKey(data, "up") || data === "k") {
|
|
120
|
+
if (this.cursor > 0)
|
|
121
|
+
this.cursor--;
|
|
122
|
+
else
|
|
123
|
+
this.setFocus("title");
|
|
124
|
+
}
|
|
125
|
+
else if (matchesKey(data, "down") || data === "j") {
|
|
126
|
+
if (this.cursor < this.items.length - 1)
|
|
127
|
+
this.cursor++;
|
|
128
|
+
}
|
|
129
|
+
else if (matchesKey(data, "space") || data === " " || data === "x") {
|
|
130
|
+
const id = this.items[this.cursor]?.id;
|
|
131
|
+
if (id !== undefined && !this.picked.delete(id))
|
|
132
|
+
this.picked.add(id);
|
|
133
|
+
this.errors = { ...this.errors, dependsOn: undefined };
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this.cb.requestRender();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
// Text fields: ↑/↓ move between fields, everything else edits the text.
|
|
142
|
+
if (matchesKey(data, "up")) {
|
|
143
|
+
this.moveFocus(-1, false);
|
|
144
|
+
this.cb.requestRender();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (matchesKey(data, "down")) {
|
|
148
|
+
this.moveFocus(1, false);
|
|
149
|
+
this.cb.requestRender();
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this.titleInput.handleInput(data);
|
|
153
|
+
this.errors = { ...this.errors, title: undefined };
|
|
154
|
+
this.cb.requestRender();
|
|
155
|
+
}
|
|
156
|
+
// -- render -----------------------------------------------------------------
|
|
157
|
+
hintFor() {
|
|
158
|
+
if (this.focus === "deps")
|
|
159
|
+
return "↑/↓ move · Space toggle · Tab next · Enter add task · Esc cancel";
|
|
160
|
+
return "Tab/↓ next · Enter add task · Esc cancel";
|
|
161
|
+
}
|
|
162
|
+
label(text, field) {
|
|
163
|
+
const th = this.theme;
|
|
164
|
+
const active = this.focus === field;
|
|
165
|
+
const bad = field === "deps" ? this.errors.dependsOn : this.errors[field];
|
|
166
|
+
const color = bad ? "error" : active ? "accent" : "muted";
|
|
167
|
+
const marker = active ? th.fg("accent", "› ") : " ";
|
|
168
|
+
return ` ${marker}${th.fg(color, active ? th.bold(text.padEnd(LABEL_WIDTH)) : text.padEnd(LABEL_WIDTH))} `;
|
|
169
|
+
}
|
|
170
|
+
errorLines(message, innerW) {
|
|
171
|
+
if (!message)
|
|
172
|
+
return [];
|
|
173
|
+
const width = Math.max(1, innerW - PREFIX_WIDTH - 1);
|
|
174
|
+
return wrapTextWithAnsi(this.theme.fg("error", `✗ ${message}`), width).map((l) => " ".repeat(PREFIX_WIDTH) + l);
|
|
175
|
+
}
|
|
176
|
+
render(width) {
|
|
177
|
+
const th = this.theme;
|
|
178
|
+
const innerW = Math.max(1, width - 2);
|
|
179
|
+
const fieldW = Math.max(1, innerW - PREFIX_WIDTH - 1);
|
|
180
|
+
const lines = [];
|
|
181
|
+
// Task text.
|
|
182
|
+
const titleText = this.focus === "title"
|
|
183
|
+
? this.titleInput.render(fieldW)[0]
|
|
184
|
+
: this.titleInput.getValue() !== ""
|
|
185
|
+
? truncateToWidth(this.titleInput.getValue(), fieldW)
|
|
186
|
+
: th.fg("dim", truncateToWidth("what needs doing?", fieldW, ""));
|
|
187
|
+
lines.push(this.label("Task", "title") + titleText);
|
|
188
|
+
lines.push(...this.errorLines(this.errors.title, innerW));
|
|
189
|
+
lines.push("");
|
|
190
|
+
// Dependencies header (+ scroll range, filled once the window is known).
|
|
191
|
+
const headerIdx = lines.push("") - 1;
|
|
192
|
+
const tail = [];
|
|
193
|
+
tail.push(...this.errorLines(this.errors.dependsOn, innerW));
|
|
194
|
+
tail.push(...this.errorLines(this.errors.form, innerW));
|
|
195
|
+
tail.push("");
|
|
196
|
+
for (const l of wrapTextWithAnsi(th.fg("dim", this.hintFor()), Math.max(1, innerW - 2)))
|
|
197
|
+
tail.push(` ${l}`);
|
|
198
|
+
// Picker rows, windowed to whatever height is left.
|
|
199
|
+
const maxRows = this.cb.getMaxRows?.();
|
|
200
|
+
const n = this.items.length;
|
|
201
|
+
const budget = maxRows === undefined
|
|
202
|
+
? Number.POSITIVE_INFINITY
|
|
203
|
+
: Math.max(1, maxRows - FRAME_ROWS - lines.length - tail.length);
|
|
204
|
+
let start = 0;
|
|
205
|
+
let end = n;
|
|
206
|
+
if (n > budget) {
|
|
207
|
+
start = Math.min(this.scrollTop, this.cursor);
|
|
208
|
+
if (this.cursor >= start + budget)
|
|
209
|
+
start = this.cursor - budget + 1;
|
|
210
|
+
start = Math.max(0, Math.min(start, n - budget));
|
|
211
|
+
end = start + budget;
|
|
212
|
+
}
|
|
213
|
+
this.scrollTop = start;
|
|
214
|
+
const picked = this.picked.size;
|
|
215
|
+
const range = n > end - start ? ` · ${start + 1}–${end} of ${n}` : "";
|
|
216
|
+
const summary = n === 0 ? "" : `(optional) · ${picked} selected${range}`;
|
|
217
|
+
lines[headerIdx] = this.label("Depends on", "deps") + th.fg("dim", truncateToWidth(summary, fieldW, ""));
|
|
218
|
+
if (n === 0) {
|
|
219
|
+
lines.push(" ".repeat(PREFIX_WIDTH) + th.fg("dim", truncateToWidth("no tasks yet, nothing to depend on", fieldW, "")));
|
|
220
|
+
}
|
|
221
|
+
for (let i = start; i < end; i++) {
|
|
222
|
+
const v = this.items[i];
|
|
223
|
+
const kind = statusKindOf(v);
|
|
224
|
+
const color = colorFor(kind);
|
|
225
|
+
const here = this.focus === "deps" && i === this.cursor;
|
|
226
|
+
const box = this.picked.has(v.id) ? th.fg("success", "[x]") : th.fg("dim", "[ ]");
|
|
227
|
+
const title = v.status === "done" || v.status === "cancelled" ? th.fg("dim", v.title) : th.fg(color, v.title);
|
|
228
|
+
const row = `${here ? th.fg("accent", "› ") : " "}${box} ${th.fg(color, glyphFor(kind, this.opts))} ${title}`;
|
|
229
|
+
lines.push(" ".repeat(PREFIX_WIDTH - 2) + truncateToWidth(row, Math.max(1, innerW - PREFIX_WIDTH + 2), "..."));
|
|
230
|
+
}
|
|
231
|
+
lines.push(...tail);
|
|
232
|
+
return frameDialog("Add checklist task", lines, width, th);
|
|
233
|
+
}
|
|
234
|
+
invalidate() {
|
|
235
|
+
// Rendering is recomputed from state on every call; nothing is cached.
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=add-task-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-task-dialog.js","sourceRoot":"","sources":["../../../../src/humain/checklist/vendor/add-task-dialog.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAkB,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE9G,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAmB,YAAY,EAAE,MAAM,aAAa,CAAC;AAClH,OAAO,EAA6D,OAAO,EAAE,MAAM,YAAY,CAAC;AAKhG;yDACyD;AACzD,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,WAAW,GAAG,EAAE,CAAC,CAAC,eAAe;AACvC,6DAA6D;AAC7D,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC;AAY7C,8FAA8F;AAC9F,SAAS,SAAS,CAAC,KAAY,EAAE,IAAY;IAC5C,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnB,IAAI,IAAI,KAAK,EAAE;QAAE,KAAK,CAAC,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,CAAC;AACjE,CAAC;AAED;;;;GAIG;AACH,MAAM,OAAO,aAAa;IACR,KAAK,CAAa;IAClB,KAAK,CAAQ;IACb,EAAE,CAAyB;IAC3B,IAA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AAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC;YAC/G,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QAChH,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAEpB,OAAO,WAAW,CAAC,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU;QACT,uEAAuE;IACxE,CAAC;CACD","sourcesContent":["/** /checklist add: TUI dialog for entering one task by hand (text, dependencies). */\n\nimport { type Focusable, Input, matchesKey, truncateToWidth, wrapTextWithAnsi } from \"@earendil-works/pi-tui\";\nimport type { Theme } from \"../../../modes/interactive/theme/theme.ts\";\nimport { colorFor, DEFAULT_RENDER_OPTS, frameDialog, glyphFor, type RenderOpts, statusKindOf } from \"./render.ts\";\nimport { type AddTaskDraft, type AddTaskErrors, type AddTaskResult, viewsOf } from \"./store.ts\";\nimport type { Checklist, TaskView } from \"./types.ts\";\n\ntype Field = \"title\" | \"deps\";\n\n/** Rows the dialog uses besides the picker's task rows are counted at render\n * time; this is only the frame (top + bottom border). */\nconst FRAME_ROWS = 2;\nconst LABEL_WIDTH = 10; // \"Depends on\"\n/** marker (2) + label + space, inside the 1-col left pad. */\nconst PREFIX_WIDTH = 1 + 2 + LABEL_WIDTH + 1;\n\nexport interface AddTaskDialogCallbacks {\n\t/** Validate + commit the task. The dialog stays open on `ok: false`. */\n\tonSubmit: (draft: Omit<AddTaskDraft, \"id\">) => AddTaskResult;\n\t/** Close the dialog (after a successful submit or on cancel). */\n\tonClose: () => void;\n\trequestRender: () => void;\n\t/** Max rows the whole dialog may occupy (see dialogMaxRows). Undefined = unlimited. */\n\tgetMaxRows?: () => number | undefined;\n}\n\n/** Replace an Input's text and leave the cursor at the end (setValue alone keeps it at 0). */\nfunction fillInput(input: Input, text: string): void {\n\tinput.setValue(\"\");\n\tif (text !== \"\") input.handleInput(`\\x1b[200~${text}\\x1b[201~`);\n}\n\n/**\n * The add-task dialog: Task field, and a checkbox picker over the\n * existing tasks for `dependsOn`. Keyboard only (see `hintFor`). Validation is\n * delegated to `onSubmit` (the store), which checks against the live checklist.\n */\nexport class AddTaskDialog implements Focusable {\n\tprivate readonly items: TaskView[];\n\tprivate readonly theme: Theme;\n\tprivate readonly cb: AddTaskDialogCallbacks;\n\tprivate readonly opts: RenderOpts;\n\tprivate readonly titleInput: Input;\n\tprivate readonly picked = new Set<string>();\n\tprivate focus: Field = \"title\";\n\t/** Highlighted picker row. */\n\tprivate cursor = 0;\n\t/** First visible picker row when the list is taller than the dialog. */\n\tprivate scrollTop = 0;\n\tprivate errors: AddTaskErrors = {};\n\tprivate hostFocused = false;\n\n\tconstructor(\n\t\tchecklist: Checklist | null,\n\t\tinitial: { title?: string },\n\t\ttheme: Theme,\n\t\tcb: AddTaskDialogCallbacks,\n\t\topts: RenderOpts = DEFAULT_RENDER_OPTS,\n\t) {\n\t\tthis.items = checklist ? viewsOf(checklist) : [];\n\t\tthis.theme = theme;\n\t\tthis.cb = cb;\n\t\tthis.opts = opts;\n\t\tthis.titleInput = new Input({\n\t\t\tprompt: \"\",\n\t\t\tplaceholder: \"what needs doing?\",\n\t\t\tplaceholderStyle: (s) => theme.fg(\"dim\", s),\n\t\t});\n\t\tfillInput(this.titleInput, (initial.title ?? \"\").replace(/[\\r\\n]+/g, \" \").trim());\n\t\tthis.syncFocus();\n\t}\n\n\t// -- Focusable: forward the host's focus to the visible text input (IME cursor) --\n\n\tget focused(): boolean {\n\t\treturn this.hostFocused;\n\t}\n\n\tset focused(value: boolean) {\n\t\tthis.hostFocused = value;\n\t\tthis.syncFocus();\n\t}\n\n\tprivate syncFocus(): void {\n\t\tthis.titleInput.focused = this.hostFocused && this.focus === \"title\";\n\t}\n\n\t// -- state helpers ----------------------------------------------------------\n\n\t/** Field order for Tab / arrows; the picker is skipped when there is nothing to pick. */\n\tprivate fields(): Field[] {\n\t\treturn this.items.length > 0 ? [\"title\", \"deps\"] : [\"title\"];\n\t}\n\n\tprivate moveFocus(delta: number, wrap: boolean): void {\n\t\tconst fields = this.fields();\n\t\tconst at = fields.indexOf(this.focus);\n\t\tlet next = at + delta;\n\t\tif (wrap) next = (next + fields.length) % fields.length;\n\t\tnext = Math.max(0, Math.min(fields.length - 1, next));\n\t\tthis.setFocus(fields[next]!);\n\t}\n\n\tprivate setFocus(field: Field): void {\n\t\tthis.focus = field;\n\t\tthis.syncFocus();\n\t}\n\n\tprivate draft(): Omit<AddTaskDraft, \"id\"> {\n\t\treturn {\n\t\t\ttitle: this.titleInput.getValue(),\n\t\t\tdependsOn: this.items.filter((v) => this.picked.has(v.id)).map((v) => v.id),\n\t\t};\n\t}\n\n\tprivate submit(): void {\n\t\tconst result = this.cb.onSubmit(this.draft());\n\t\tif (result.ok) {\n\t\t\tthis.cb.onClose();\n\t\t\treturn;\n\t\t}\n\t\tthis.errors = result.errors;\n\t\t// Jump to the first field with a problem.\n\t\tif (result.errors.title) this.setFocus(\"title\");\n\t\telse if (result.errors.dependsOn && this.items.length > 0) this.setFocus(\"deps\");\n\t\tthis.cb.requestRender();\n\t}\n\n\t// -- input ------------------------------------------------------------------\n\n\thandleInput(data: string): void {\n\t\tif (matchesKey(data, \"escape\") || matchesKey(data, \"ctrl+c\")) {\n\t\t\tthis.cb.onClose();\n\t\t\treturn;\n\t\t}\n\t\tif (matchesKey(data, \"enter\")) {\n\t\t\tthis.submit();\n\t\t\treturn;\n\t\t}\n\t\tif (matchesKey(data, \"tab\")) {\n\t\t\tthis.moveFocus(1, true);\n\t\t\tthis.cb.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tif (matchesKey(data, \"shift+tab\")) {\n\t\t\tthis.moveFocus(-1, true);\n\t\t\tthis.cb.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.focus === \"deps\") {\n\t\t\tif (matchesKey(data, \"up\") || data === \"k\") {\n\t\t\t\tif (this.cursor > 0) this.cursor--;\n\t\t\t\telse this.setFocus(\"title\");\n\t\t\t} else if (matchesKey(data, \"down\") || data === \"j\") {\n\t\t\t\tif (this.cursor < this.items.length - 1) this.cursor++;\n\t\t\t} else if (matchesKey(data, \"space\") || data === \" \" || data === \"x\") {\n\t\t\t\tconst id = this.items[this.cursor]?.id;\n\t\t\t\tif (id !== undefined && !this.picked.delete(id)) this.picked.add(id);\n\t\t\t\tthis.errors = { ...this.errors, dependsOn: undefined };\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.cb.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\t// Text fields: ↑/↓ move between fields, everything else edits the text.\n\t\tif (matchesKey(data, \"up\")) {\n\t\t\tthis.moveFocus(-1, false);\n\t\t\tthis.cb.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tif (matchesKey(data, \"down\")) {\n\t\t\tthis.moveFocus(1, false);\n\t\t\tthis.cb.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tthis.titleInput.handleInput(data);\n\t\tthis.errors = { ...this.errors, title: undefined };\n\t\tthis.cb.requestRender();\n\t}\n\n\t// -- render -----------------------------------------------------------------\n\n\tprivate hintFor(): string {\n\t\tif (this.focus === \"deps\") return \"↑/↓ move · Space toggle · Tab next · Enter add task · Esc cancel\";\n\t\treturn \"Tab/↓ next · Enter add task · Esc cancel\";\n\t}\n\n\tprivate label(text: string, field: Field): string {\n\t\tconst th = this.theme;\n\t\tconst active = this.focus === field;\n\t\tconst bad = field === \"deps\" ? this.errors.dependsOn : this.errors[field];\n\t\tconst color = bad ? \"error\" : active ? \"accent\" : \"muted\";\n\t\tconst marker = active ? th.fg(\"accent\", \"› \") : \" \";\n\t\treturn ` ${marker}${th.fg(color, active ? th.bold(text.padEnd(LABEL_WIDTH)) : text.padEnd(LABEL_WIDTH))} `;\n\t}\n\n\tprivate errorLines(message: string | undefined, innerW: number): string[] {\n\t\tif (!message) return [];\n\t\tconst width = Math.max(1, innerW - PREFIX_WIDTH - 1);\n\t\treturn wrapTextWithAnsi(this.theme.fg(\"error\", `✗ ${message}`), width).map((l) => \" \".repeat(PREFIX_WIDTH) + l);\n\t}\n\n\trender(width: number): string[] {\n\t\tconst th = this.theme;\n\t\tconst innerW = Math.max(1, width - 2);\n\t\tconst fieldW = Math.max(1, innerW - PREFIX_WIDTH - 1);\n\t\tconst lines: string[] = [];\n\n\t\t// Task text.\n\t\tconst titleText =\n\t\t\tthis.focus === \"title\"\n\t\t\t\t? this.titleInput.render(fieldW)[0]!\n\t\t\t\t: this.titleInput.getValue() !== \"\"\n\t\t\t\t\t? truncateToWidth(this.titleInput.getValue(), fieldW)\n\t\t\t\t\t: th.fg(\"dim\", truncateToWidth(\"what needs doing?\", fieldW, \"\"));\n\t\tlines.push(this.label(\"Task\", \"title\") + titleText);\n\t\tlines.push(...this.errorLines(this.errors.title, innerW));\n\t\tlines.push(\"\");\n\n\t\t// Dependencies header (+ scroll range, filled once the window is known).\n\t\tconst headerIdx = lines.push(\"\") - 1;\n\t\tconst tail: string[] = [];\n\t\ttail.push(...this.errorLines(this.errors.dependsOn, innerW));\n\t\ttail.push(...this.errorLines(this.errors.form, innerW));\n\t\ttail.push(\"\");\n\t\tfor (const l of wrapTextWithAnsi(th.fg(\"dim\", this.hintFor()), Math.max(1, innerW - 2))) tail.push(` ${l}`);\n\n\t\t// Picker rows, windowed to whatever height is left.\n\t\tconst maxRows = this.cb.getMaxRows?.();\n\t\tconst n = this.items.length;\n\t\tconst budget =\n\t\t\tmaxRows === undefined\n\t\t\t\t? Number.POSITIVE_INFINITY\n\t\t\t\t: Math.max(1, maxRows - FRAME_ROWS - lines.length - tail.length);\n\t\tlet start = 0;\n\t\tlet end = n;\n\t\tif (n > budget) {\n\t\t\tstart = Math.min(this.scrollTop, this.cursor);\n\t\t\tif (this.cursor >= start + budget) start = this.cursor - budget + 1;\n\t\t\tstart = Math.max(0, Math.min(start, n - budget));\n\t\t\tend = start + budget;\n\t\t}\n\t\tthis.scrollTop = start;\n\t\tconst picked = this.picked.size;\n\t\tconst range = n > end - start ? ` · ${start + 1}–${end} of ${n}` : \"\";\n\t\tconst summary = n === 0 ? \"\" : `(optional) · ${picked} selected${range}`;\n\t\tlines[headerIdx] = this.label(\"Depends on\", \"deps\") + th.fg(\"dim\", truncateToWidth(summary, fieldW, \"\"));\n\n\t\tif (n === 0) {\n\t\t\tlines.push(\n\t\t\t\t\" \".repeat(PREFIX_WIDTH) + th.fg(\"dim\", truncateToWidth(\"no tasks yet, nothing to depend on\", fieldW, \"\")),\n\t\t\t);\n\t\t}\n\t\tfor (let i = start; i < end; i++) {\n\t\t\tconst v = this.items[i]!;\n\t\t\tconst kind = statusKindOf(v);\n\t\t\tconst color = colorFor(kind);\n\t\t\tconst here = this.focus === \"deps\" && i === this.cursor;\n\t\t\tconst box = this.picked.has(v.id) ? th.fg(\"success\", \"[x]\") : th.fg(\"dim\", \"[ ]\");\n\t\t\tconst title = v.status === \"done\" || v.status === \"cancelled\" ? th.fg(\"dim\", v.title) : th.fg(color, v.title);\n\t\t\tconst row = `${here ? th.fg(\"accent\", \"› \") : \" \"}${box} ${th.fg(color, glyphFor(kind, this.opts))} ${title}`;\n\t\t\tlines.push(\" \".repeat(PREFIX_WIDTH - 2) + truncateToWidth(row, Math.max(1, innerW - PREFIX_WIDTH + 2), \"...\"));\n\t\t}\n\t\tlines.push(...tail);\n\n\t\treturn frameDialog(\"Add checklist task\", lines, width, th);\n\t}\n\n\tinvalidate(): void {\n\t\t// Rendering is recomputed from state on every call; nothing is cached.\n\t}\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** /checklist command: overlay + settings (display / style / icons / usage) + show/hide/clear. */
|
|
2
|
+
import type { ExtensionAPI, ExtensionCommandContext } from "../../../core/extensions/types.ts";
|
|
3
|
+
import { type RenderOpts } from "./render.ts";
|
|
4
|
+
import { type AddTaskDraft, type AddTaskResult } from "./store.ts";
|
|
5
|
+
import type { Checklist, DisplayMode } from "./types.ts";
|
|
6
|
+
export type ChecklistAction = {
|
|
7
|
+
name: "sidebar";
|
|
8
|
+
value: "toggle" | "on" | "off";
|
|
9
|
+
} | {
|
|
10
|
+
name: "open";
|
|
11
|
+
} | {
|
|
12
|
+
name: "show";
|
|
13
|
+
} | {
|
|
14
|
+
name: "hide";
|
|
15
|
+
} | {
|
|
16
|
+
name: "clear";
|
|
17
|
+
} | {
|
|
18
|
+
name: "add";
|
|
19
|
+
title?: string;
|
|
20
|
+
} | {
|
|
21
|
+
name: "settings";
|
|
22
|
+
} | {
|
|
23
|
+
name: "help";
|
|
24
|
+
};
|
|
25
|
+
export declare function parseChecklistArgs(raw: string): ChecklistAction;
|
|
26
|
+
export interface ChecklistCommandDeps {
|
|
27
|
+
/** Validate against the live checklist and, when fine, append + persist + refresh the UI. */
|
|
28
|
+
addTask: (draft: AddTaskDraft, ctx: ExtensionCommandContext) => AddTaskResult;
|
|
29
|
+
getDisplayMode: () => DisplayMode;
|
|
30
|
+
setDisplayMode: (mode: DisplayMode, ctx: ExtensionCommandContext) => void | Promise<void>;
|
|
31
|
+
getMetaEnabled: () => boolean;
|
|
32
|
+
getRenderOpts: () => RenderOpts;
|
|
33
|
+
clear: (ctx: ExtensionCommandContext) => void;
|
|
34
|
+
getChecklist: () => Checklist | null;
|
|
35
|
+
toggleSidebar: (value: "toggle" | "on" | "off", ctx: ExtensionCommandContext) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function registerChecklistCommand(pi: ExtensionAPI, deps: ChecklistCommandDeps): void;
|
|
38
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../src/humain/checklist/vendor/commands.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAG/F,OAAO,EAKN,KAAK,UAAU,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,aAAa,EAMlB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,MAAM,eAAe,GACxB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpB,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAqB/D;AA0DD,MAAM,WAAW,oBAAoB;IACpC,6FAA6F;IAC7F,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,uBAAuB,KAAK,aAAa,CAAC;IAC9E,cAAc,EAAE,MAAM,WAAW,CAAC;IAClC,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,uBAAuB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;I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