@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
|
@@ -219,6 +219,11 @@ export declare function getControlDeniedEntryIds(entries: readonly SessionEntry[
|
|
|
219
219
|
export declare function buildSessionProjection(entries: SessionEntry[], leafId?: string | null, byId?: Map<string, SessionEntry>): SessionProjection;
|
|
220
220
|
/** Build the finalized model context from the canonical session projection. */
|
|
221
221
|
export declare function buildSessionContext(entries: SessionEntry[], leafId?: string | null, byId?: Map<string, SessionEntry>): SessionContext;
|
|
222
|
+
/**
|
|
223
|
+
* Compute the default session directory for a cwd.
|
|
224
|
+
* Encodes cwd into a safe directory name under ~/.humain-terminal/agent/sessions/.
|
|
225
|
+
*/
|
|
226
|
+
export declare function getDefaultSessionDirPath(cwd: string, agentDir?: string): string;
|
|
222
227
|
export declare function getDefaultSessionDir(cwd: string, agentDir?: string): string;
|
|
223
228
|
/** Exported for testing */
|
|
224
229
|
export declare function loadEntriesFromFile(filePath: string): FileEntry[];
|
|
@@ -251,6 +256,11 @@ export declare class SessionManager {
|
|
|
251
256
|
private labelsById;
|
|
252
257
|
private labelTimestampsById;
|
|
253
258
|
private leafId;
|
|
259
|
+
/**
|
|
260
|
+
* Whether the parent links may form a cycle: set by _buildIndex() when an entry names a parent that is not before it
|
|
261
|
+
* in the file, or an id repeats. Appends cannot make one, so a healthy file never pays for the check in getTree().
|
|
262
|
+
*/
|
|
263
|
+
private linksMayCycle;
|
|
254
264
|
private leafPath;
|
|
255
265
|
private projection;
|
|
256
266
|
private projectionRevision;
|
|
@@ -262,7 +272,9 @@ export declare class SessionManager {
|
|
|
262
272
|
setSessionFile(sessionFile: string): void;
|
|
263
273
|
private _setSessionFile;
|
|
264
274
|
newSession(options?: NewSessionOptions): string | undefined;
|
|
275
|
+
/** Returns whether an entry names a parent that is not before it in the file (_buildIndex()). */
|
|
265
276
|
private _loadEntries;
|
|
277
|
+
/** Returns whether an entry names a parent that is not before it in the file (lost, or later). */
|
|
266
278
|
private _buildIndex;
|
|
267
279
|
private _rewriteFile;
|
|
268
280
|
isPersisted(): boolean;
|
|
@@ -347,6 +359,7 @@ export declare class SessionManager {
|
|
|
347
359
|
* @internal
|
|
348
360
|
*/
|
|
349
361
|
getContextUsageEntries(): SessionEntry[];
|
|
362
|
+
private _contextUsageEntriesFromLeafPath;
|
|
350
363
|
private _walkBranch;
|
|
351
364
|
/** The cached path to the current leaf. Must not be modified or returned to callers. */
|
|
352
365
|
private _leafPath;
|
|
@@ -394,9 +407,17 @@ export declare class SessionManager {
|
|
|
394
407
|
/**
|
|
395
408
|
* Get the session as a tree structure. Returns a shallow defensive copy of all entries.
|
|
396
409
|
* A well-formed session has exactly one root (first entry with parentId === null).
|
|
397
|
-
* Orphaned entries (broken parent chain) are also returned as roots.
|
|
410
|
+
* Orphaned entries (broken parent chain) are also returned as roots. A repeated id is placed once, by its last
|
|
411
|
+
* definition (as getEntry() returns it). An entry whose parent link closes a cycle (a damaged file) is a root too,
|
|
412
|
+
* with `parentId` null on its node's copy of the entry, so walks up the tree end.
|
|
398
413
|
*/
|
|
399
414
|
getTree(): SessionTreeNode[];
|
|
415
|
+
/**
|
|
416
|
+
* The ids of entries whose parent link closes a cycle, found by walking up from every entry. getTree() makes each a
|
|
417
|
+
* root, as walkToRoot() does for a branch: without the cut, a cycle and everything below it would be unreachable.
|
|
418
|
+
* The walks start at the last entry, so a cycle above the leaf is cut where the leaf's branch cuts it.
|
|
419
|
+
*/
|
|
420
|
+
private _cycleCuts;
|
|
400
421
|
/**
|
|
401
422
|
* Start a new branch from an earlier entry.
|
|
402
423
|
* Moves the leaf pointer to the specified entry. The next appendXXX() call
|
|
@@ -1 +1 @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,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,mBAAmB,EAChC,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,EAAE,CAAC,CASxB;IAED;;;OAGG;IACH,OAAa,OAAO,CAAC,UAAU,CAAC,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACrG,OAAa,OAAO,CACnB,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,mBAAmB,EAChC,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAuF1B"}
|
|
1
|
+
{"version":3,"file":"session-manager.d.ts","sourceRoot":"","sources":["../../src/core/session-manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,WAAW,EAEhB,MAAM,uBAAuB,CAAC;AAuB/B,OAAO,EACN,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAIlB,MAAM,eAAe,CAAC;AACvB,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gB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{ randomUUID } from "crypto";
|
|
3
|
-
import {
|
|
3
|
+
import { closeSync, existsSync, fchmodSync, fstatSync, fsyncSync, mkdirSync, openSync, readdirSync, readSync, renameSync, statSync, writeFileSync, writeSync, } from "fs";
|
|
4
4
|
import { open, readdir, stat } from "fs/promises";
|
|
5
5
|
import { basename, join, resolve } from "path";
|
|
6
6
|
import { StringDecoder } from "string_decoder";
|
|
@@ -122,6 +122,39 @@ export function parseSessionEntries(content) {
|
|
|
122
122
|
}
|
|
123
123
|
return entries;
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Links each entry whose parent is not in the file to the entry before it in file order. Returns how many were linked.
|
|
127
|
+
*
|
|
128
|
+
* A line damaged by a partial write (a full disk, a process killed mid-append) does not parse and its entry is skipped.
|
|
129
|
+
* The next entry still names the lost one as its parent, so the branch would end there and drop everything before the
|
|
130
|
+
* damage. Roots and entries whose parent is in the file (forks included) are left as they are.
|
|
131
|
+
*
|
|
132
|
+
* Only for files whose every parent comes before its child, as appending writes them: a file with a parent after its
|
|
133
|
+
* child (an imported one) is left as it is. There, every parent is earlier, so the links make no cycle. Control
|
|
134
|
+
* denials apply by id across all branches, so a relinked branch never shows a message whose denial was read.
|
|
135
|
+
*/
|
|
136
|
+
function relinkOrphanedEntries(entries, byId) {
|
|
137
|
+
const earlier = new Set();
|
|
138
|
+
for (const entry of entries) {
|
|
139
|
+
if (entry.type === "session")
|
|
140
|
+
continue;
|
|
141
|
+
if (entry.parentId && byId.has(entry.parentId) && !earlier.has(entry.parentId))
|
|
142
|
+
return 0;
|
|
143
|
+
earlier.add(entry.id);
|
|
144
|
+
}
|
|
145
|
+
let previousId;
|
|
146
|
+
let relinked = 0;
|
|
147
|
+
for (const entry of entries) {
|
|
148
|
+
if (entry.type === "session")
|
|
149
|
+
continue;
|
|
150
|
+
if (entry.parentId && previousId !== undefined && !byId.has(entry.parentId)) {
|
|
151
|
+
entry.parentId = previousId;
|
|
152
|
+
relinked++;
|
|
153
|
+
}
|
|
154
|
+
previousId = entry.id;
|
|
155
|
+
}
|
|
156
|
+
return relinked;
|
|
157
|
+
}
|
|
125
158
|
export function getLatestCompactionEntry(entries) {
|
|
126
159
|
for (let i = entries.length - 1; i >= 0; i--) {
|
|
127
160
|
if (entries[i].type === "compaction") {
|
|
@@ -152,14 +185,34 @@ function buildSessionPath(entries, leafId, byId) {
|
|
|
152
185
|
if (!leaf) {
|
|
153
186
|
return [];
|
|
154
187
|
}
|
|
188
|
+
return walkToRoot(leaf, index);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* The path from the root to `leaf`. Parent links that form a cycle (only a damaged file has one) are cut where the walk
|
|
192
|
+
* meets an entry already on the path, as if that entry's parent were missing.
|
|
193
|
+
*/
|
|
194
|
+
function walkToRoot(leaf, byId) {
|
|
155
195
|
const path = [];
|
|
156
196
|
let current = leaf;
|
|
157
197
|
while (current) {
|
|
198
|
+
// A walk longer than the index has met an entry twice. Only then are the ids on the path tracked.
|
|
199
|
+
if (path.length > byId.size)
|
|
200
|
+
return walkToRootCuttingCycle(leaf, byId);
|
|
201
|
+
path.push(current);
|
|
202
|
+
current = current.parentId ? byId.get(current.parentId) : undefined;
|
|
203
|
+
}
|
|
204
|
+
return path.reverse();
|
|
205
|
+
}
|
|
206
|
+
function walkToRootCuttingCycle(leaf, byId) {
|
|
207
|
+
const path = [];
|
|
208
|
+
const seen = new Set();
|
|
209
|
+
let current = leaf;
|
|
210
|
+
while (current && !seen.has(current.id)) {
|
|
211
|
+
seen.add(current.id);
|
|
158
212
|
path.push(current);
|
|
159
|
-
current = current.parentId ?
|
|
213
|
+
current = current.parentId ? byId.get(current.parentId) : undefined;
|
|
160
214
|
}
|
|
161
|
-
path.reverse();
|
|
162
|
-
return path;
|
|
215
|
+
return path.reverse();
|
|
163
216
|
}
|
|
164
217
|
function getSessionContextSettings(path) {
|
|
165
218
|
const settings = { thinkingLevel: "off", model: null };
|
|
@@ -244,7 +297,9 @@ export function buildContextEntries(entries, leafId, byId) {
|
|
|
244
297
|
contextEntries.push(entry);
|
|
245
298
|
}
|
|
246
299
|
}
|
|
247
|
-
|
|
300
|
+
for (let i = compactionIdx + 1; i < path.length; i++) {
|
|
301
|
+
contextEntries.push(path[i]);
|
|
302
|
+
}
|
|
248
303
|
return contextEntries;
|
|
249
304
|
}
|
|
250
305
|
/**
|
|
@@ -346,7 +401,7 @@ function openSessionFile(path, flags) {
|
|
|
346
401
|
* Compute the default session directory for a cwd.
|
|
347
402
|
* Encodes cwd into a safe directory name under ~/.humain-terminal/agent/sessions/.
|
|
348
403
|
*/
|
|
349
|
-
function getDefaultSessionDirPath(cwd, agentDir = getDefaultAgentDir()) {
|
|
404
|
+
export function getDefaultSessionDirPath(cwd, agentDir = getDefaultAgentDir()) {
|
|
350
405
|
const resolvedCwd = resolvePath(cwd);
|
|
351
406
|
const resolvedAgentDir = resolvePath(agentDir);
|
|
352
407
|
const safePath = `--${resolvedCwd.replace(/^[/\\]/, "").replace(/[/\\:]/g, "-")}--`;
|
|
@@ -380,12 +435,41 @@ function parseSessionEntryLine(line) {
|
|
|
380
435
|
return null;
|
|
381
436
|
}
|
|
382
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Whether a line parsed after the header is a record: `{}`, `42` or `[1]` parse but are none, and are skipped like a
|
|
440
|
+
* malformed line (trust boundary: file input). Since version 2 every entry has an id; version 1 files get theirs on
|
|
441
|
+
* migration.
|
|
442
|
+
*/
|
|
443
|
+
function isSessionRecord(parsed, needsId) {
|
|
444
|
+
const value = parsed;
|
|
445
|
+
if (typeof value !== "object" || value === null || typeof value.type !== "string")
|
|
446
|
+
return false;
|
|
447
|
+
return !needsId || parsed.type === "session" || typeof parsed.id === "string";
|
|
448
|
+
}
|
|
449
|
+
/** Whether the entries after this first parsed line must carry ids (version 2 and later headers). */
|
|
450
|
+
function headerRequiresEntryIds(first) {
|
|
451
|
+
return first.type === "session" && (first.version ?? 1) >= 2;
|
|
452
|
+
}
|
|
383
453
|
/** Exported for testing */
|
|
384
454
|
export function loadEntriesFromFile(filePath) {
|
|
385
455
|
const resolvedFilePath = normalizePath(filePath);
|
|
386
456
|
if (!existsSync(resolvedFilePath))
|
|
387
457
|
return [];
|
|
388
458
|
const entries = [];
|
|
459
|
+
let entriesHaveIds = false;
|
|
460
|
+
const consume = (line) => {
|
|
461
|
+
const entry = parseSessionEntryLine(line);
|
|
462
|
+
if (!entry)
|
|
463
|
+
return;
|
|
464
|
+
// The first parsed line is kept as is: the header check below rejects the file when it is not a header.
|
|
465
|
+
if (entries.length === 0) {
|
|
466
|
+
entriesHaveIds = headerRequiresEntryIds(entry);
|
|
467
|
+
entries.push(entry);
|
|
468
|
+
}
|
|
469
|
+
else if (isSessionRecord(entry, entriesHaveIds)) {
|
|
470
|
+
entries.push(entry);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
389
473
|
let pending = "";
|
|
390
474
|
const fd = openSync(resolvedFilePath, "r");
|
|
391
475
|
try {
|
|
@@ -401,9 +485,7 @@ export function loadEntriesFromFile(filePath) {
|
|
|
401
485
|
let newlineIndex = chunk.indexOf("\n", lineStart);
|
|
402
486
|
while (newlineIndex !== -1) {
|
|
403
487
|
lineChunks.push(chunk.slice(lineStart, newlineIndex));
|
|
404
|
-
|
|
405
|
-
if (entry)
|
|
406
|
-
entries.push(entry);
|
|
488
|
+
consume(lineChunks.join(""));
|
|
407
489
|
lineChunks.length = 0;
|
|
408
490
|
lineStart = newlineIndex + 1;
|
|
409
491
|
newlineIndex = chunk.indexOf("\n", lineStart);
|
|
@@ -413,9 +495,7 @@ export function loadEntriesFromFile(filePath) {
|
|
|
413
495
|
}
|
|
414
496
|
lineChunks.push(decoder.end());
|
|
415
497
|
pending = lineChunks.join("");
|
|
416
|
-
|
|
417
|
-
if (finalEntry)
|
|
418
|
-
entries.push(finalEntry);
|
|
498
|
+
consume(pending);
|
|
419
499
|
}
|
|
420
500
|
finally {
|
|
421
501
|
closeSync(fd);
|
|
@@ -520,7 +600,15 @@ export function findMostRecentSession(sessionDir, cwd) {
|
|
|
520
600
|
const files = readdirSync(resolvedSessionDir)
|
|
521
601
|
.filter((file) => file.endsWith(".jsonl"))
|
|
522
602
|
.map((file) => join(resolvedSessionDir, file))
|
|
523
|
-
.
|
|
603
|
+
.flatMap((path) => {
|
|
604
|
+
// One entry that cannot be read (a dangling symlink, a file deleted since readdir) must not hide the others.
|
|
605
|
+
try {
|
|
606
|
+
return [{ path, mtime: statSync(path).mtimeMs }];
|
|
607
|
+
}
|
|
608
|
+
catch {
|
|
609
|
+
return [];
|
|
610
|
+
}
|
|
611
|
+
})
|
|
524
612
|
.sort((a, b) => b.mtime - a.mtime);
|
|
525
613
|
for (const { path } of files) {
|
|
526
614
|
const header = readSessionHeaderForDiscovery(path);
|
|
@@ -672,6 +760,7 @@ async function buildSessionInfo(filePath, signal, fileStats) {
|
|
|
672
760
|
const denialEntries = [];
|
|
673
761
|
let name;
|
|
674
762
|
let lastActivityTime;
|
|
763
|
+
let entriesHaveIds = false;
|
|
675
764
|
await forEachLineOfFile(filePath, signal, (buffer, start, end) => {
|
|
676
765
|
if (header) {
|
|
677
766
|
const kind = classifySessionLine(buffer, start, end);
|
|
@@ -689,8 +778,11 @@ async function buildSessionInfo(filePath, signal, fileStats) {
|
|
|
689
778
|
if (entry.type !== "session")
|
|
690
779
|
return false;
|
|
691
780
|
header = entry;
|
|
781
|
+
entriesHaveIds = headerRequiresEntryIds(entry);
|
|
692
782
|
return true;
|
|
693
783
|
}
|
|
784
|
+
if (!isSessionRecord(entry, entriesHaveIds))
|
|
785
|
+
return true;
|
|
694
786
|
if ((entry.type === "context_edit" && entry.reason === "control-denied" && entry.replacement === null) ||
|
|
695
787
|
(entry.type === "message" && entry.controlDenied)) {
|
|
696
788
|
denialEntries.push(entry);
|
|
@@ -810,6 +902,33 @@ async function listSessionsFromDir(dir, onProgress, signal) {
|
|
|
810
902
|
}
|
|
811
903
|
/** How long a session file stays open for appends after the last one. */
|
|
812
904
|
const APPEND_FILE_IDLE_MS = 1000;
|
|
905
|
+
/**
|
|
906
|
+
* Ends a line that an earlier write left unfinished (a full disk, a process killed mid-append), so the next entry
|
|
907
|
+
* starts on its own line instead of fusing with the fragment and being lost with it. Reads only the last byte.
|
|
908
|
+
*/
|
|
909
|
+
function endPartialLine(fd, size) {
|
|
910
|
+
if (size === 0)
|
|
911
|
+
return;
|
|
912
|
+
const last = Buffer.alloc(1);
|
|
913
|
+
if (readSync(fd, last, 0, 1, size - 1) === 1 && last[0] !== 0x0a)
|
|
914
|
+
writeLine(fd, "\n");
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Appends all of `line`, continuing a short write (a full disk) like appendFileSync would. A write that fails partway
|
|
918
|
+
* leaves its part in the file: without a lock on the file, cutting it off could cut a line another process appended
|
|
919
|
+
* after it. The part is ended by endPartialLine() when the file is next opened for appends, so it does not fuse with
|
|
920
|
+
* the next entry.
|
|
921
|
+
*/
|
|
922
|
+
function writeLine(fd, line) {
|
|
923
|
+
const bytes = Buffer.from(line);
|
|
924
|
+
for (let offset = 0; offset < bytes.length;) {
|
|
925
|
+
const written = writeSync(fd, bytes, offset, bytes.length - offset);
|
|
926
|
+
// A write that makes no progress would repeat forever.
|
|
927
|
+
if (written === 0)
|
|
928
|
+
throw new Error("Session file write made no progress");
|
|
929
|
+
offset += written;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
813
932
|
/**
|
|
814
933
|
* A session file kept open for appends while they come in quick succession: opening and closing the file for every
|
|
815
934
|
* entry costs far more than a write on an open file, and a turn appends an entry per message and tool result. Each
|
|
@@ -818,7 +937,8 @@ const APPEND_FILE_IDLE_MS = 1000;
|
|
|
818
937
|
* The file is checked by path before each append (a stat): when the path no longer names the open file (deleted,
|
|
819
938
|
* renamed, or replaced, as an atomic rewrite does), the open file is closed and the path is opened again, so the line
|
|
820
939
|
* goes where appending by path puts it. The file is closed after APPEND_FILE_IDLE_MS without appends, and when the
|
|
821
|
-
* session changes or is flushed.
|
|
940
|
+
* session changes or is flushed. Each time it is opened (also after a failed append), a line left unfinished at its end
|
|
941
|
+
* is ended first, so entries never fuse.
|
|
822
942
|
*/
|
|
823
943
|
class SessionAppendFile {
|
|
824
944
|
path;
|
|
@@ -830,9 +950,10 @@ class SessionAppendFile {
|
|
|
830
950
|
closed = false;
|
|
831
951
|
constructor(path) {
|
|
832
952
|
this.path = path;
|
|
833
|
-
this.fd = openSessionFile(path, "a");
|
|
953
|
+
this.fd = openSessionFile(path, "a+");
|
|
834
954
|
try {
|
|
835
955
|
const stats = fstatSync(this.fd);
|
|
956
|
+
endPartialLine(this.fd, stats.size);
|
|
836
957
|
this.dev = stats.dev;
|
|
837
958
|
this.ino = stats.ino;
|
|
838
959
|
}
|
|
@@ -849,11 +970,7 @@ class SessionAppendFile {
|
|
|
849
970
|
return stats !== undefined && stats.ino === this.ino && stats.dev === this.dev;
|
|
850
971
|
}
|
|
851
972
|
append(line) {
|
|
852
|
-
|
|
853
|
-
// A short write (a full disk): write the rest like appendFileSync would.
|
|
854
|
-
for (let offset = 0; offset < bytes.length;) {
|
|
855
|
-
offset += writeSync(this.fd, bytes, offset, bytes.length - offset);
|
|
856
|
-
}
|
|
973
|
+
writeLine(this.fd, line);
|
|
857
974
|
this.lastAppend = performance.now();
|
|
858
975
|
if (!this.timer)
|
|
859
976
|
this.scheduleClose(APPEND_FILE_IDLE_MS);
|
|
@@ -908,6 +1025,11 @@ export class SessionManager {
|
|
|
908
1025
|
labelsById = new Map();
|
|
909
1026
|
labelTimestampsById = new Map();
|
|
910
1027
|
leafId = null;
|
|
1028
|
+
/**
|
|
1029
|
+
* Whether the parent links may form a cycle: set by _buildIndex() when an entry names a parent that is not before it
|
|
1030
|
+
* in the file, or an id repeats. Appends cannot make one, so a healthy file never pays for the check in getTree().
|
|
1031
|
+
*/
|
|
1032
|
+
linksMayCycle = false;
|
|
911
1033
|
leafPath;
|
|
912
1034
|
projection;
|
|
913
1035
|
projectionRevision = 0;
|
|
@@ -953,7 +1075,12 @@ export class SessionManager {
|
|
|
953
1075
|
this.flushed = true;
|
|
954
1076
|
return;
|
|
955
1077
|
}
|
|
956
|
-
|
|
1078
|
+
// Only a file with a parent missing, or after its child, is walked again: a healthy file is not.
|
|
1079
|
+
const relinked = this._loadEntries(entries) ? relinkOrphanedEntries(this.fileEntries, this.byId) : 0;
|
|
1080
|
+
if (relinked > 0) {
|
|
1081
|
+
// Changed in memory only: the index holds the same entries, and nothing was derived from the links yet.
|
|
1082
|
+
console.warn(`Warning: session file ${this.sessionFile} has damaged lines; relinked ${relinked} ${relinked === 1 ? "entry" : "entries"} whose parent was lost.`);
|
|
1083
|
+
}
|
|
957
1084
|
this.flushed = true;
|
|
958
1085
|
}
|
|
959
1086
|
else {
|
|
@@ -986,6 +1113,7 @@ export class SessionManager {
|
|
|
986
1113
|
this.labelsById.clear();
|
|
987
1114
|
this.labelTimestampsById.clear();
|
|
988
1115
|
this.leafId = null;
|
|
1116
|
+
this.linksMayCycle = false;
|
|
989
1117
|
this.flushed = false;
|
|
990
1118
|
if (this.persist) {
|
|
991
1119
|
const fileTimestamp = timestamp.replace(/[:.]/g, "-");
|
|
@@ -993,6 +1121,7 @@ export class SessionManager {
|
|
|
993
1121
|
}
|
|
994
1122
|
return this.sessionFile;
|
|
995
1123
|
}
|
|
1124
|
+
/** Returns whether an entry names a parent that is not before it in the file (_buildIndex()). */
|
|
996
1125
|
_loadEntries(entries, options) {
|
|
997
1126
|
const header = entries.find((e) => e.type === "session");
|
|
998
1127
|
if (header) {
|
|
@@ -1006,8 +1135,9 @@ export class SessionManager {
|
|
|
1006
1135
|
this.newSession(options);
|
|
1007
1136
|
this.fileEntries = this.fileEntries.concat(entries);
|
|
1008
1137
|
}
|
|
1009
|
-
this._buildIndex();
|
|
1138
|
+
return this._buildIndex();
|
|
1010
1139
|
}
|
|
1140
|
+
/** Returns whether an entry names a parent that is not before it in the file (lost, or later). */
|
|
1011
1141
|
_buildIndex() {
|
|
1012
1142
|
this.leafPath = undefined;
|
|
1013
1143
|
this.projection = undefined;
|
|
@@ -1017,9 +1147,14 @@ export class SessionManager {
|
|
|
1017
1147
|
this.labelTimestampsById.clear();
|
|
1018
1148
|
this.leafId = null;
|
|
1019
1149
|
this.controlDeniedEntryIds = getControlDeniedEntryIds(this.fileEntries.filter((entry) => entry.type !== "session"));
|
|
1150
|
+
let unlinked = false;
|
|
1020
1151
|
for (const entry of this.fileEntries) {
|
|
1021
1152
|
if (entry.type === "session")
|
|
1022
1153
|
continue;
|
|
1154
|
+
// Appended entries name the entry before them: one comparison, no lookup.
|
|
1155
|
+
const parentId = entry.parentId;
|
|
1156
|
+
if (parentId && parentId !== this.leafId && !this.byId.has(parentId))
|
|
1157
|
+
unlinked = true;
|
|
1023
1158
|
this.byId.set(entry.id, entry);
|
|
1024
1159
|
this.leafId = entry.id;
|
|
1025
1160
|
if (entry.type === "session_info")
|
|
@@ -1035,6 +1170,8 @@ export class SessionManager {
|
|
|
1035
1170
|
}
|
|
1036
1171
|
}
|
|
1037
1172
|
}
|
|
1173
|
+
this.linksMayCycle = unlinked || this.byId.size + 1 !== this.fileEntries.length;
|
|
1174
|
+
return unlinked;
|
|
1038
1175
|
}
|
|
1039
1176
|
_rewriteFile() {
|
|
1040
1177
|
if (!this.persist || !this.sessionFile)
|
|
@@ -1096,7 +1233,14 @@ export class SessionManager {
|
|
|
1096
1233
|
_appendLine(path, line) {
|
|
1097
1234
|
// An open file can keep others from deleting or renaming it on Windows.
|
|
1098
1235
|
if (process.platform === "win32") {
|
|
1099
|
-
|
|
1236
|
+
const fd = openSessionFile(path, "a+");
|
|
1237
|
+
try {
|
|
1238
|
+
endPartialLine(fd, fstatSync(fd).size);
|
|
1239
|
+
writeLine(fd, line);
|
|
1240
|
+
}
|
|
1241
|
+
finally {
|
|
1242
|
+
closeSync(fd);
|
|
1243
|
+
}
|
|
1100
1244
|
return;
|
|
1101
1245
|
}
|
|
1102
1246
|
if (!this.appendFile?.isFor(path)) {
|
|
@@ -1419,6 +1563,9 @@ export class SessionManager {
|
|
|
1419
1563
|
const entries = [];
|
|
1420
1564
|
let current = this.leafId ? this.byId.get(this.leafId) : undefined;
|
|
1421
1565
|
while (current) {
|
|
1566
|
+
// A walk longer than the index met a parent-link cycle: take the leaf path, which cuts it.
|
|
1567
|
+
if (entries.length > this.byId.size)
|
|
1568
|
+
return this._contextUsageEntriesFromLeafPath();
|
|
1422
1569
|
entries.push(omitControlDeniedContent(current, this.controlDeniedEntryIds));
|
|
1423
1570
|
if (current.type === "compaction")
|
|
1424
1571
|
break;
|
|
@@ -1426,15 +1573,15 @@ export class SessionManager {
|
|
|
1426
1573
|
}
|
|
1427
1574
|
return entries.reverse();
|
|
1428
1575
|
}
|
|
1576
|
+
_contextUsageEntriesFromLeafPath() {
|
|
1577
|
+
const path = this._leafPath();
|
|
1578
|
+
let start = path.length - 1;
|
|
1579
|
+
while (start > 0 && path[start].type !== "compaction")
|
|
1580
|
+
start--;
|
|
1581
|
+
return path.slice(start).map((entry) => omitControlDeniedContent(entry, this.controlDeniedEntryIds));
|
|
1582
|
+
}
|
|
1429
1583
|
_walkBranch(startId) {
|
|
1430
|
-
|
|
1431
|
-
let current = startId ? this.byId.get(startId) : undefined;
|
|
1432
|
-
while (current) {
|
|
1433
|
-
path.push(current);
|
|
1434
|
-
current = current.parentId ? this.byId.get(current.parentId) : undefined;
|
|
1435
|
-
}
|
|
1436
|
-
path.reverse();
|
|
1437
|
-
return path;
|
|
1584
|
+
return walkToRoot(startId ? this.byId.get(startId) : undefined, this.byId);
|
|
1438
1585
|
}
|
|
1439
1586
|
/** The cached path to the current leaf. Must not be modified or returned to callers. */
|
|
1440
1587
|
_leafPath() {
|
|
@@ -1565,22 +1712,35 @@ export class SessionManager {
|
|
|
1565
1712
|
/**
|
|
1566
1713
|
* Get the session as a tree structure. Returns a shallow defensive copy of all entries.
|
|
1567
1714
|
* A well-formed session has exactly one root (first entry with parentId === null).
|
|
1568
|
-
* Orphaned entries (broken parent chain) are also returned as roots.
|
|
1715
|
+
* Orphaned entries (broken parent chain) are also returned as roots. A repeated id is placed once, by its last
|
|
1716
|
+
* definition (as getEntry() returns it). An entry whose parent link closes a cycle (a damaged file) is a root too,
|
|
1717
|
+
* with `parentId` null on its node's copy of the entry, so walks up the tree end.
|
|
1569
1718
|
*/
|
|
1570
1719
|
getTree() {
|
|
1571
1720
|
const entries = this.getEntries();
|
|
1572
1721
|
const nodeMap = new Map();
|
|
1573
1722
|
const roots = [];
|
|
1574
|
-
|
|
1575
|
-
|
|
1723
|
+
const cuts = this.linksMayCycle ? this._cycleCuts() : undefined;
|
|
1724
|
+
// The index of each id's last definition, only kept when an id repeats.
|
|
1725
|
+
const lastIndexById = this.byId.size !== entries.length ? new Map() : undefined;
|
|
1726
|
+
// Create nodes with resolved labels. The last definition of a repeated id supplies its node.
|
|
1727
|
+
for (let i = 0; i < entries.length; i++) {
|
|
1728
|
+
const entry = entries[i];
|
|
1576
1729
|
const label = this.labelsById.get(entry.id);
|
|
1577
1730
|
const labelTimestamp = this.labelTimestampsById.get(entry.id);
|
|
1578
|
-
|
|
1731
|
+
const nodeEntry = cuts?.has(entry.id) ? { ...entry, parentId: null } : entry;
|
|
1732
|
+
nodeMap.set(entry.id, { entry: nodeEntry, children: [], label, labelTimestamp });
|
|
1733
|
+
lastIndexById?.set(entry.id, i);
|
|
1579
1734
|
}
|
|
1580
1735
|
// Build tree
|
|
1581
|
-
for (
|
|
1736
|
+
for (let i = 0; i < entries.length; i++) {
|
|
1737
|
+
const entry = entries[i];
|
|
1738
|
+
// A repeated id is placed once, by the definition that supplied its node: the links of its other occurrences
|
|
1739
|
+
// could close a cycle that _cycleCuts() does not see.
|
|
1740
|
+
if (lastIndexById && lastIndexById.get(entry.id) !== i)
|
|
1741
|
+
continue;
|
|
1582
1742
|
const node = nodeMap.get(entry.id);
|
|
1583
|
-
if (entry.parentId === null || entry.parentId === entry.id) {
|
|
1743
|
+
if (entry.parentId === null || entry.parentId === entry.id || cuts?.has(entry.id)) {
|
|
1584
1744
|
roots.push(node);
|
|
1585
1745
|
}
|
|
1586
1746
|
else {
|
|
@@ -1604,6 +1764,36 @@ export class SessionManager {
|
|
|
1604
1764
|
}
|
|
1605
1765
|
return roots;
|
|
1606
1766
|
}
|
|
1767
|
+
/**
|
|
1768
|
+
* The ids of entries whose parent link closes a cycle, found by walking up from every entry. getTree() makes each a
|
|
1769
|
+
* root, as walkToRoot() does for a branch: without the cut, a cycle and everything below it would be unreachable.
|
|
1770
|
+
* The walks start at the last entry, so a cycle above the leaf is cut where the leaf's branch cuts it.
|
|
1771
|
+
*/
|
|
1772
|
+
_cycleCuts() {
|
|
1773
|
+
const cuts = new Set();
|
|
1774
|
+
const done = new Set();
|
|
1775
|
+
for (let i = this.fileEntries.length - 1; i >= 0; i--) {
|
|
1776
|
+
const entry = this.fileEntries[i];
|
|
1777
|
+
if (entry.type === "session")
|
|
1778
|
+
continue;
|
|
1779
|
+
const onPath = new Set();
|
|
1780
|
+
let current = this.byId.get(entry.id);
|
|
1781
|
+
let last;
|
|
1782
|
+
while (current && !done.has(current.id)) {
|
|
1783
|
+
if (onPath.has(current.id)) {
|
|
1784
|
+
if (last)
|
|
1785
|
+
cuts.add(last.id);
|
|
1786
|
+
break;
|
|
1787
|
+
}
|
|
1788
|
+
onPath.add(current.id);
|
|
1789
|
+
last = current;
|
|
1790
|
+
current = current.parentId ? this.byId.get(current.parentId) : undefined;
|
|
1791
|
+
}
|
|
1792
|
+
for (const id of onPath)
|
|
1793
|
+
done.add(id);
|
|
1794
|
+
}
|
|
1795
|
+
return cuts;
|
|
1796
|
+
}
|
|
1607
1797
|
// =========================================================================
|
|
1608
1798
|
// Branching
|
|
1609
1799
|
// =========================================================================
|