@humain/humain-code 0.4.12 → 0.4.14
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 +21 -1
- package/dist/bun/sandbox-env-setup.js +1 -1
- package/dist/bun/sandbox-env-setup.js.map +1 -1
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-YSAHA7QM.js +67 -0
- package/dist/bundle/chunks/azure-openai-responses-Z5XYDPHS.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +393 -314
- package/dist/bundle/chunks/{chunk-EDKZRYWJ.js → chunk-2TTB6GIB.js} +2 -2
- package/dist/bundle/chunks/{chunk-HSDTSUZE.js → chunk-36Q5UVQL.js} +47 -89
- package/dist/bundle/chunks/chunk-4DXXZHY2.js +540 -0
- package/dist/bundle/chunks/{chunk-BKJU56SM.js → chunk-A7QKOI62.js} +142 -126
- package/dist/bundle/chunks/{chunk-UW4GMZL3.js → chunk-AIXI6RIE.js} +264 -248
- package/dist/bundle/chunks/{chunk-V5ZF7Q7L.js → chunk-BVHXWQLD.js} +52 -47
- package/dist/bundle/chunks/{chunk-I2ZWZAIV.js → chunk-COF5P635.js} +222 -148
- package/dist/bundle/chunks/{chunk-SCIGZFN5.js → chunk-DNGJMRJW.js} +11 -11
- package/dist/bundle/chunks/{chunk-XGO43DKL.js → chunk-DUSJT2W4.js} +21 -25
- package/dist/bundle/chunks/chunk-EYIYBQAR.js +7 -0
- package/dist/bundle/chunks/chunk-FRUFMISJ.js +505 -0
- package/dist/bundle/chunks/{chunk-R5VIAWGA.js → chunk-H2FY3PEV.js} +9 -8
- package/dist/bundle/chunks/{chunk-45ZBHMQG.js → chunk-HDA2IGKA.js} +4 -4
- package/dist/bundle/chunks/{chunk-KGI4EX6R.js → chunk-IUKCPYKD.js} +442 -442
- package/dist/bundle/chunks/{chunk-NLTW6A7G.js → chunk-KA7K6ECX.js} +3730 -3353
- package/dist/bundle/chunks/{chunk-AS2Y2MO6.js → chunk-KK3KUUMM.js} +643 -624
- package/dist/bundle/chunks/{chunk-6KAMTNN3.js → chunk-L3J4P5JR.js} +1 -1
- package/dist/bundle/chunks/chunk-L6Z6JKKC.js +3 -0
- package/dist/bundle/chunks/{chunk-DZ5C66IU.js → chunk-LUL775V7.js} +33 -33
- package/dist/bundle/chunks/{chunk-BRXQUQSC.js → chunk-MF2NEHP4.js} +778 -775
- package/dist/bundle/chunks/chunk-MG5PX4KU.js +31 -0
- package/dist/bundle/chunks/{chunk-LCOHFEZZ.js → chunk-NNKA2PAP.js} +1 -1
- package/dist/bundle/chunks/{chunk-HMWAH7ZY.js → chunk-OX2IBCCA.js} +53 -49
- package/dist/bundle/chunks/{chunk-WBJN6PEI.js → chunk-QYCOHSI7.js} +1 -1
- package/dist/bundle/chunks/{chunk-77EWF2NW.js → chunk-TJG52LZB.js} +1 -1
- package/dist/bundle/chunks/{chunk-5XD3DHYL.js → chunk-UDVC7A5S.js} +1 -1
- package/dist/bundle/chunks/chunk-UGXYG7HN.js +22 -0
- package/dist/bundle/chunks/{chunk-VYIIPF57.js → chunk-UHLW4KJ7.js} +419 -413
- package/dist/bundle/chunks/{chunk-FF26YENK.js → chunk-W2QRCQBX.js} +4 -3
- package/dist/bundle/chunks/chunk-XQRYOCHA.js +26 -0
- package/dist/bundle/chunks/{chunk-7Z5MWPYE.js → chunk-Y3RFGBG2.js} +1 -1
- package/dist/bundle/chunks/chunk-YJ3NQWES.js +9 -0
- package/dist/bundle/chunks/{chunk-YJBE3IGR.js → chunk-YRCLNWFV.js} +20 -20
- package/dist/bundle/chunks/chunk-YZMQXAJM.js +8 -0
- package/dist/bundle/chunks/{chunk-BHM75BJJ.js → chunk-Z74ZYQPX.js} +207 -79
- package/dist/bundle/chunks/{cli-5ACW3WND.js → cli-SRI4UOSL.js} +6 -6
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-FZ3UQCZ7.js → cloudflare-workers-ai-system-one-JGN7NZCV.js} +1 -1
- package/dist/bundle/chunks/codemode-worker.js +27 -14
- package/dist/bundle/chunks/{compat-KXWWOFHQ.js → compat-OQMUE3QD.js} +6 -6
- package/dist/bundle/chunks/{dist-6SWVHFCS.js → dist-65YQEF26.js} +277 -72
- package/dist/bundle/chunks/dist-MNSGVI4C.js +7 -0
- package/dist/bundle/chunks/{dist-cjs-RL2OCAP2.js → dist-cjs-4BMVQ74V.js} +1 -1
- package/dist/bundle/chunks/{easter-egg-3d-3L3IKAT6.js → easter-egg-3d-ZJ2JUFOA.js} +1 -1
- package/dist/bundle/chunks/es-YEFEOGR3.js +1905 -0
- package/dist/bundle/chunks/{esm-763X2IA7.js → esm-NCUV2DF7.js} +1 -1
- package/dist/bundle/chunks/{event-streams-R5OECII4.js → event-streams-NXFTZDSF.js} +1 -1
- package/dist/bundle/chunks/execute-LRTXH4YJ.js +553 -0
- package/dist/bundle/chunks/{extract-DLZ425VI.js → extract-OZW5JHG6.js} +140 -120
- package/dist/bundle/chunks/{google-generative-ai-JD2FVOIX.js → google-generative-ai-YXXFSTX7.js} +2 -2
- package/dist/bundle/chunks/{google-vertex-PFBMDCBW.js → google-vertex-3IVWLYJ5.js} +2 -2
- package/dist/bundle/chunks/host-2RMBOGA7.js +2 -0
- package/dist/bundle/chunks/{mistral-conversations-D74NZ65O.js → mistral-conversations-Y7GWO3QB.js} +14 -13
- package/dist/bundle/chunks/{node-W47VUEGE.js → node-ELWNZC34.js} +328 -337
- package/dist/bundle/chunks/{node-4GGYDW5Q.js → node-SPBTZUUS.js} +26 -25
- package/dist/bundle/chunks/{openai-codex-responses-JAAA7MSS.js → openai-codex-responses-NSXWHIDT.js} +3 -4
- package/dist/bundle/chunks/{openai-completions-PGPMGQPU.js → openai-completions-WGBQHTYA.js} +9 -8
- package/dist/bundle/chunks/{openai-decisions-QQ4MEABI.js → openai-decisions-QWEISDVO.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-FG2R2M4L.js → openai-responses-OKGCSIEY.js} +6 -6
- package/dist/bundle/chunks/{openrouter-images-NTBP3UUE.js → openrouter-images-BMVMAROU.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-JD4O7KIP.js → pi-messages-XNEG23NU.js} +1 -1
- package/dist/bundle/chunks/runtime-VGSK3QCM.js +2 -0
- package/dist/bundle/chunks/{typesafe-system-one-TTC7YCO3.js → typesafe-system-one-62YHYXZV.js} +1 -1
- package/dist/bundle/chunks/{undici-EEOUTE5F.js → undici-7EW63V4X.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-5KW36RPG.js +5 -0
- package/dist/bundle/cli-runtime.js +3 -3
- package/dist/bundle/flow/package.json +5 -6
- package/dist/bundle/index.js +6 -6
- package/dist/bundle/rpc-entry.js +2 -2
- package/dist/coordination/adapter/delivery.d.ts.map +1 -1
- package/dist/coordination/adapter/delivery.js +1 -0
- 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 +3 -1
- package/dist/coordination/adapter/index.js.map +1 -1
- package/dist/coordination/adapter/receipts.d.ts +2 -1
- package/dist/coordination/adapter/receipts.d.ts.map +1 -1
- package/dist/coordination/adapter/receipts.js +7 -4
- package/dist/coordination/adapter/receipts.js.map +1 -1
- package/dist/coordination/adapter/supervisor.d.ts.map +1 -1
- package/dist/coordination/adapter/supervisor.js +8 -0
- package/dist/coordination/adapter/supervisor.js.map +1 -1
- package/dist/coordination/broker/broker.d.ts +11 -0
- package/dist/coordination/broker/broker.d.ts.map +1 -1
- package/dist/coordination/broker/broker.js +195 -18
- package/dist/coordination/broker/broker.js.map +1 -1
- package/dist/coordination/client/client.d.ts +5 -0
- package/dist/coordination/client/client.d.ts.map +1 -1
- package/dist/coordination/client/client.js +23 -9
- 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 +8 -1
- package/dist/coordination/transport/protocol.js.map +1 -1
- package/dist/coordination/transport/types.d.ts +6 -0
- package/dist/coordination/transport/types.d.ts.map +1 -1
- package/dist/coordination/transport/types.js +2 -1
- package/dist/coordination/transport/types.js.map +1 -1
- package/dist/core/agent-session.d.ts +44 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +305 -124
- 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 +20 -13
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/auto-effort.d.ts +16 -0
- package/dist/core/auto-effort.d.ts.map +1 -0
- package/dist/core/auto-effort.js +69 -0
- package/dist/core/auto-effort.js.map +1 -0
- package/dist/core/auto-session-namer.d.ts.map +1 -1
- package/dist/core/auto-session-namer.js +2 -12
- package/dist/core/auto-session-namer.js.map +1 -1
- package/dist/core/bug-report.d.ts +11 -1
- package/dist/core/bug-report.d.ts.map +1 -1
- package/dist/core/bug-report.js +2 -2
- package/dist/core/bug-report.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +3 -2
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -1
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +13 -4
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +94 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts +6 -0
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +7 -8
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +4 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +6 -3
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +33 -7
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/key-id-schema.d.ts +6 -0
- package/dist/core/key-id-schema.d.ts.map +1 -0
- package/dist/core/key-id-schema.js +16 -0
- package/dist/core/key-id-schema.js.map +1 -0
- package/dist/core/keybindings-schema.d.ts +4 -0
- package/dist/core/keybindings-schema.d.ts.map +1 -0
- package/dist/core/keybindings-schema.js +16 -0
- package/dist/core/keybindings-schema.js.map +1 -0
- package/dist/core/keybindings.d.ts +198 -63
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +26 -23
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config.d.ts +695 -74
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +16 -166
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +39 -4
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +3 -3
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +2 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts +13 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +110 -27
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +5 -1
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/session-export.d.ts.map +1 -1
- package/dist/core/session-export.js +2 -2
- package/dist/core/session-export.js.map +1 -1
- package/dist/core/session-manager.d.ts +36 -5
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +164 -40
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +65 -0
- package/dist/core/settings-defaults.d.ts.map +1 -0
- package/dist/core/settings-defaults.js +66 -0
- package/dist/core/settings-defaults.js.map +1 -0
- package/dist/core/settings-manager.d.ts +10 -175
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +64 -44
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +257 -0
- package/dist/core/settings-schema.d.ts.map +1 -0
- package/dist/core/settings-schema.js +311 -0
- package/dist/core/settings-schema.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +4 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +480 -29
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +18 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +46 -0
- 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 +17 -46
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/renderers/edit.d.ts +19 -1
- package/dist/core/tools/renderers/edit.d.ts.map +1 -1
- package/dist/core/tools/renderers/edit.js +38 -7
- package/dist/core/tools/renderers/edit.js.map +1 -1
- package/dist/core/tools/renderers/find.d.ts.map +1 -1
- package/dist/core/tools/renderers/find.js +3 -0
- package/dist/core/tools/renderers/find.js.map +1 -1
- package/dist/core/tools/renderers/grep.d.ts.map +1 -1
- package/dist/core/tools/renderers/grep.js +3 -0
- package/dist/core/tools/renderers/grep.js.map +1 -1
- package/dist/core/tools/renderers/highlighting.d.ts +13 -0
- package/dist/core/tools/renderers/highlighting.d.ts.map +1 -0
- package/dist/core/tools/renderers/highlighting.js +42 -0
- package/dist/core/tools/renderers/highlighting.js.map +1 -0
- package/dist/core/tools/renderers/ls.d.ts.map +1 -1
- package/dist/core/tools/renderers/ls.js +3 -0
- package/dist/core/tools/renderers/ls.js.map +1 -1
- package/dist/core/tools/renderers/read.d.ts.map +1 -1
- package/dist/core/tools/renderers/read.js +3 -0
- package/dist/core/tools/renderers/read.js.map +1 -1
- package/dist/core/tools/renderers/write.d.ts.map +1 -1
- package/dist/core/tools/renderers/write.js +3 -1
- package/dist/core/tools/renderers/write.js.map +1 -1
- package/dist/core/tools/subagent.d.ts +4 -0
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +85 -8
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +92 -44
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/usage-totals.d.ts +8 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +106 -10
- 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 -45
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/index.d.ts.map +1 -1
- package/dist/extensions/codemode/index.js +2 -1
- package/dist/extensions/codemode/index.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts +2 -2
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +9 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +6 -12
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +44 -32
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/mcp/cli.js +5 -8
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +26 -23
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +0 -6
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +1 -1
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +3 -6
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +4 -39
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +2 -3
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +62 -6
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts +0 -2
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +2 -4
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/humain/adhd/index.d.ts +3 -2
- package/dist/humain/adhd/index.d.ts.map +1 -1
- package/dist/humain/adhd/index.js +22 -10
- package/dist/humain/adhd/index.js.map +1 -1
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +306 -20
- package/dist/humain/caveman/index.d.ts +4 -2
- package/dist/humain/caveman/index.d.ts.map +1 -1
- package/dist/humain/caveman/index.js +51 -16
- package/dist/humain/caveman/index.js.map +1 -1
- package/dist/humain/ponytail/index.d.ts +2 -0
- package/dist/humain/ponytail/index.d.ts.map +1 -1
- package/dist/humain/ponytail/index.js +2 -0
- package/dist/humain/ponytail/index.js.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.js +39 -9
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.js.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js.map +1 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.d.ts +4 -0
- package/dist/humain/ponytail/vendor/pi-extension/index.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.js +8 -0
- package/dist/humain/ponytail/vendor/pi-extension/index.js.map +1 -1
- package/dist/humain/web-access/vendor/baizhi.js.map +1 -1
- package/dist/humain/web-access/vendor/brave.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/brave.js +19 -2
- package/dist/humain/web-access/vendor/brave.js.map +1 -1
- package/dist/humain/web-access/vendor/ceramic.d.ts +4 -0
- package/dist/humain/web-access/vendor/ceramic.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/ceramic.js +212 -0
- package/dist/humain/web-access/vendor/ceramic.js.map +1 -0
- package/dist/humain/web-access/vendor/content-find.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/content-find.js +2 -1
- package/dist/humain/web-access/vendor/content-find.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +3 -1
- package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.js +2 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.js +5 -1
- package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.d.ts +23 -0
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.js +193 -0
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.js.map +1 -0
- package/dist/humain/web-access/vendor/extract.d.ts +5 -1
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +49 -12
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.d.ts +2 -0
- package/dist/humain/web-access/vendor/fetch-params.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.js +9 -0
- package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-api.d.ts +5 -0
- package/dist/humain/web-access/vendor/gemini-api.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-api.js +16 -0
- package/dist/humain/web-access/vendor/gemini-api.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.d.ts +3 -3
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +48 -172
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.d.ts +7 -0
- package/dist/humain/web-access/vendor/github-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.js +31 -2
- package/dist/humain/web-access/vendor/github-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/github-issue-pr.d.ts +2 -0
- package/dist/humain/web-access/vendor/github-issue-pr.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-issue-pr.js +86 -74
- package/dist/humain/web-access/vendor/github-issue-pr.js.map +1 -1
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +68 -27
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/openai-search.js +3 -3
- package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
- package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/page-query.js +6 -9
- package/dist/humain/web-access/vendor/page-query.js.map +1 -1
- package/dist/humain/web-access/vendor/parallel-mcp.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/parallel-mcp.js +2 -0
- package/dist/humain/web-access/vendor/parallel-mcp.js.map +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.d.ts +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.js +31 -1
- package/dist/humain/web-access/vendor/pdf-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.js +21 -2
- package/dist/humain/web-access/vendor/perplexity.js.map +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.js +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.js.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts +4 -0
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js +19 -4
- package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
- package/dist/humain/web-access/vendor/storage.d.ts +14 -0
- package/dist/humain/web-access/vendor/storage.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/storage.js +48 -0
- package/dist/humain/web-access/vendor/storage.js.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.js +18 -6
- package/dist/humain/web-access/vendor/summary-review.js.map +1 -1
- package/dist/humain/web-access/vendor/tool-arguments.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/tool-arguments.js +5 -2
- package/dist/humain/web-access/vendor/tool-arguments.js.map +1 -1
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +21 -6
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/humain/web-access/vendor/video-extract.js +6 -2
- package/dist/humain/web-access/vendor/video-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts +2 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.js +56 -13
- package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
- package/dist/humain/web-access/vendor/zai.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +21 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +79 -10
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +8 -3
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +156 -133
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +1 -1
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +10 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +83 -7
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +2 -2
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/themed-text.js +3 -1
- package/dist/modes/interactive/components/themed-text.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +7 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +36 -19
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/transcript-container.d.ts +12 -0
- package/dist/modes/interactive/components/transcript-container.d.ts.map +1 -0
- package/dist/modes/interactive/components/transcript-container.js +31 -0
- package/dist/modes/interactive/components/transcript-container.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +6 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +20 -5
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +20 -5
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js +42 -3
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +125 -19
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts +15 -16
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +26 -29
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +4 -0
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/utils/child-process.d.ts +0 -7
- package/dist/utils/child-process.d.ts.map +1 -1
- package/dist/utils/child-process.js +12 -3
- package/dist/utils/child-process.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +6 -1
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/image-convert.d.ts +7 -0
- package/dist/utils/image-convert.d.ts.map +1 -1
- package/dist/utils/image-convert.js +35 -3
- package/dist/utils/image-convert.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js +2 -2
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +7 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +54 -3
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/windows-path.js +1 -1
- package/dist/utils/windows-path.js.map +1 -1
- package/dist/utils/zip.d.ts.map +1 -1
- package/dist/utils/zip.js +3 -1
- package/dist/utils/zip.js.map +1 -1
- package/docs/auto-session-namer.md +4 -0
- package/docs/cli-integration.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/codemode.md +1 -1
- package/docs/compaction.md +9 -5
- package/docs/coordination.md +7 -0
- package/docs/environment-variables.md +1 -0
- package/docs/extensions.md +7 -4
- package/docs/keybindings.md +1 -0
- package/docs/mcp.md +1 -1
- package/docs/models.md +1 -0
- package/docs/providers.md +20 -0
- package/docs/session-format.md +16 -2
- package/docs/settings.md +16 -1
- package/docs/themes.md +4 -2
- package/docs/tui.md +1 -1
- package/docs/usage.md +6 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +6 -6
- package/examples/extensions/custom-provider-anthropic/package.json +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/dynamic-resources/dynamic.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +20 -20
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/overlay-test.ts +2 -2
- package/examples/extensions/plan-mode/index.ts +6 -2
- package/examples/extensions/sandbox/package-lock.json +8 -8
- package/examples/extensions/sandbox/package.json +2 -2
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/plugins/pi-example-plugin/package.json +2 -2
- package/examples/plugins/pi-example-plugin/src/contract.ts +1 -1
- package/examples/plugins/pi-example-plugin/src/session.ts +1 -1
- package/examples/plugins/pi-example-plugin/src/tui.ts +1 -1
- package/npm-shrinkwrap.json +174 -190
- package/package.json +24 -23
- package/schemas/keybindings.schema.json +397 -0
- package/schemas/models.schema.json +1157 -0
- package/schemas/settings.schema.json +875 -0
- package/schemas/theme.schema.json +365 -0
- package/src/coordination/UPSTREAM.md +36 -3
- package/src/coordination/upstream.json +3 -2
- package/src/humain/adhd/UPSTREAM.md +21 -3
- package/src/humain/adhd/upstream.json +1 -1
- package/src/humain/caveman/UPSTREAM.md +24 -3
- package/src/humain/ponytail/UPSTREAM.md +51 -4
- package/src/humain/ponytail/upstream.json +12 -12
- package/src/humain/ponytail/vendor/skills/ponytail/SKILL.md +1 -1
- package/src/humain/ponytail/vendor/skills/ponytail-audit/SKILL.md +1 -1
- package/src/humain/ponytail/vendor/skills/ponytail-debt/SKILL.md +13 -10
- package/src/humain/ponytail/vendor/skills/ponytail-help/SKILL.md +1 -1
- package/src/humain/ponytail/vendor/skills/ponytail-review/SKILL.md +1 -1
- package/src/humain/web-access/UPSTREAM.md +55 -1
- package/src/humain/web-access/upstream.json +4 -4
- package/dist/bundle/chunks/anthropic-messages-UNHXXOD4.js +0 -70
- package/dist/bundle/chunks/azure-openai-responses-4QRYJCC2.js +0 -14
- package/dist/bundle/chunks/chunk-GVVRXZHN.js +0 -17
- package/dist/bundle/chunks/chunk-QMUIATLD.js +0 -209
- package/dist/bundle/chunks/chunk-QSPDLT2R.js +0 -160
- package/dist/bundle/chunks/chunk-SZRZXVVZ.js +0 -125
- package/dist/bundle/chunks/chunk-XMHLSV3I.js +0 -48
- package/dist/bundle/chunks/chunk-YKZGL4MB.js +0 -86
- package/dist/bundle/chunks/dist-VNSMKBZ6.js +0 -7
- package/dist/bundle/chunks/es-N6YFJOD7.js +0 -1901
- package/dist/bundle/chunks/execute-4X6G65NZ.js +0 -536
- package/dist/bundle/chunks/host-4J7H7KDS.js +0 -2
- package/dist/bundle/chunks/runtime-SI76JZNE.js +0 -2
- package/dist/bundle/chunks/virtual-modules-GZY3Y4GX.js +0 -5
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DEFAULT_MAX_AGENT_RETRY_DELAY_MS } from "@earendil-works/pi-ai";
|
|
2
1
|
import { randomUUID } from "crypto";
|
|
3
2
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
4
3
|
import { dirname, join } from "path";
|
|
@@ -7,12 +6,13 @@ import { CONFIG_DIR_NAME, getAgentDir } from "../config.js";
|
|
|
7
6
|
import { normalizePath, resolvePath } from "../utils/paths.js";
|
|
8
7
|
import { stripBom } from "../utils/text.js";
|
|
9
8
|
import { DEFAULT_HTTP_IDLE_TIMEOUT_MS, parseHttpIdleTimeoutMs } from "./http-dispatcher.js";
|
|
10
|
-
|
|
11
|
-
reserveTokens: 16384,
|
|
12
|
-
keepRecentTokens: 20000,
|
|
13
|
-
};
|
|
9
|
+
import { SETTINGS_DEFAULTS } from "./settings-defaults.js";
|
|
14
10
|
/** Cache-warming profile. "idle" also warms between agent runs. */
|
|
15
11
|
export const CACHE_WARMING_MODES = ["off", "streaming", "idle"];
|
|
12
|
+
const DEFAULT_COMPACTION_TOKEN_SETTINGS = {
|
|
13
|
+
reserveTokens: SETTINGS_DEFAULTS.compaction.reserveTokens,
|
|
14
|
+
keepRecentTokens: SETTINGS_DEFAULTS.compaction.keepRecentTokens,
|
|
15
|
+
};
|
|
16
16
|
function isMergeableObject(value) {
|
|
17
17
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18
18
|
}
|
|
@@ -582,7 +582,7 @@ export class SettingsManager {
|
|
|
582
582
|
this.save();
|
|
583
583
|
}
|
|
584
584
|
getSteeringMode() {
|
|
585
|
-
return this.settings.steeringMode ||
|
|
585
|
+
return this.settings.steeringMode || SETTINGS_DEFAULTS.steeringMode;
|
|
586
586
|
}
|
|
587
587
|
setSteeringMode(mode) {
|
|
588
588
|
this.globalSettings.steeringMode = mode;
|
|
@@ -590,7 +590,7 @@ export class SettingsManager {
|
|
|
590
590
|
this.save();
|
|
591
591
|
}
|
|
592
592
|
getFollowUpMode() {
|
|
593
|
-
return this.settings.followUpMode ||
|
|
593
|
+
return this.settings.followUpMode || SETTINGS_DEFAULTS.followUpMode;
|
|
594
594
|
}
|
|
595
595
|
setFollowUpMode(mode) {
|
|
596
596
|
this.globalSettings.followUpMode = mode;
|
|
@@ -645,15 +645,31 @@ export class SettingsManager {
|
|
|
645
645
|
this.save();
|
|
646
646
|
}
|
|
647
647
|
getTransport() {
|
|
648
|
-
return this.settings.transport ??
|
|
648
|
+
return this.settings.transport ?? SETTINGS_DEFAULTS.transport;
|
|
649
649
|
}
|
|
650
650
|
setTransport(transport) {
|
|
651
651
|
this.globalSettings.transport = transport;
|
|
652
652
|
this.markModified("transport");
|
|
653
653
|
this.save();
|
|
654
654
|
}
|
|
655
|
+
getAutoSessionNamerEnabled() {
|
|
656
|
+
return this.settings.autoSessionNamer?.enabled !== false;
|
|
657
|
+
}
|
|
658
|
+
setAutoSessionNamerEnabled(enabled) {
|
|
659
|
+
this.globalSettings.autoSessionNamer = { ...this.globalSettings.autoSessionNamer, enabled };
|
|
660
|
+
this.markModified("autoSessionNamer", "enabled");
|
|
661
|
+
this.save();
|
|
662
|
+
}
|
|
663
|
+
getAutoEffortEnabled() {
|
|
664
|
+
return this.settings.autoEffort?.enabled === true;
|
|
665
|
+
}
|
|
666
|
+
setAutoEffortEnabled(enabled) {
|
|
667
|
+
this.globalSettings.autoEffort = { ...this.globalSettings.autoEffort, enabled };
|
|
668
|
+
this.markModified("autoEffort", "enabled");
|
|
669
|
+
this.save();
|
|
670
|
+
}
|
|
655
671
|
getCompactionEnabled() {
|
|
656
|
-
return this.settings.compaction?.enabled ??
|
|
672
|
+
return this.settings.compaction?.enabled ?? SETTINGS_DEFAULTS.compaction.enabled;
|
|
657
673
|
}
|
|
658
674
|
setCompactionEnabled(enabled) {
|
|
659
675
|
if (!this.globalSettings.compaction) {
|
|
@@ -696,15 +712,15 @@ export class SettingsManager {
|
|
|
696
712
|
}
|
|
697
713
|
getBranchSummarySettings() {
|
|
698
714
|
return {
|
|
699
|
-
reserveTokens: this.settings.branchSummary?.reserveTokens ??
|
|
700
|
-
skipPrompt: this.settings.branchSummary?.skipPrompt ??
|
|
715
|
+
reserveTokens: this.settings.branchSummary?.reserveTokens ?? SETTINGS_DEFAULTS.branchSummary.reserveTokens,
|
|
716
|
+
skipPrompt: this.settings.branchSummary?.skipPrompt ?? SETTINGS_DEFAULTS.branchSummary.skipPrompt,
|
|
701
717
|
};
|
|
702
718
|
}
|
|
703
719
|
getBranchSummarySkipPrompt() {
|
|
704
|
-
return this.settings.branchSummary?.skipPrompt ??
|
|
720
|
+
return this.settings.branchSummary?.skipPrompt ?? SETTINGS_DEFAULTS.branchSummary.skipPrompt;
|
|
705
721
|
}
|
|
706
722
|
getRetryEnabled() {
|
|
707
|
-
return this.settings.retry?.enabled ??
|
|
723
|
+
return this.settings.retry?.enabled ?? SETTINGS_DEFAULTS.retry.enabled;
|
|
708
724
|
}
|
|
709
725
|
setRetryEnabled(enabled) {
|
|
710
726
|
if (!this.globalSettings.retry) {
|
|
@@ -717,9 +733,9 @@ export class SettingsManager {
|
|
|
717
733
|
getRetrySettings() {
|
|
718
734
|
return {
|
|
719
735
|
enabled: this.getRetryEnabled(),
|
|
720
|
-
maxRetries: this.settings.retry?.maxRetries ??
|
|
721
|
-
baseDelayMs: this.settings.retry?.baseDelayMs ??
|
|
722
|
-
maxAgentDelayMs: this.settings.retry?.maxAgentDelayMs ??
|
|
736
|
+
maxRetries: this.settings.retry?.maxRetries ?? SETTINGS_DEFAULTS.retry.maxRetries,
|
|
737
|
+
baseDelayMs: this.settings.retry?.baseDelayMs ?? SETTINGS_DEFAULTS.retry.baseDelayMs,
|
|
738
|
+
maxAgentDelayMs: this.settings.retry?.maxAgentDelayMs ?? SETTINGS_DEFAULTS.retry.maxAgentDelayMs,
|
|
723
739
|
};
|
|
724
740
|
}
|
|
725
741
|
getOAuthAccountsAutoSwitch(providerId) {
|
|
@@ -842,7 +858,7 @@ export class SettingsManager {
|
|
|
842
858
|
/** Read from global settings only because warming costs money. */
|
|
843
859
|
getCacheWarmingMode() {
|
|
844
860
|
const mode = this.globalSettings.cacheWarming;
|
|
845
|
-
return mode !== undefined && CACHE_WARMING_MODES.includes(mode) ? mode :
|
|
861
|
+
return mode !== undefined && CACHE_WARMING_MODES.includes(mode) ? mode : SETTINGS_DEFAULTS.cacheWarming;
|
|
846
862
|
}
|
|
847
863
|
setCacheWarmingMode(mode) {
|
|
848
864
|
this.globalSettings.cacheWarming = mode;
|
|
@@ -853,17 +869,17 @@ export class SettingsManager {
|
|
|
853
869
|
return {
|
|
854
870
|
timeoutMs: this.settings.retry?.provider?.timeoutMs,
|
|
855
871
|
maxRetries: this.settings.retry?.provider?.maxRetries,
|
|
856
|
-
maxRetryDelayMs: this.settings.retry?.provider?.maxRetryDelayMs ??
|
|
872
|
+
maxRetryDelayMs: this.settings.retry?.provider?.maxRetryDelayMs ?? SETTINGS_DEFAULTS.retry.provider.maxRetryDelayMs,
|
|
857
873
|
};
|
|
858
874
|
}
|
|
859
875
|
getWebSocketConnectTimeoutMs() {
|
|
860
876
|
return parseTimeoutSetting(this.settings.websocketConnectTimeoutMs, "websocketConnectTimeoutMs");
|
|
861
877
|
}
|
|
862
878
|
getHideThinkingBlock() {
|
|
863
|
-
return this.settings.hideThinkingBlock ??
|
|
879
|
+
return this.settings.hideThinkingBlock ?? SETTINGS_DEFAULTS.hideThinkingBlock;
|
|
864
880
|
}
|
|
865
881
|
getShowCacheMissNotices() {
|
|
866
|
-
return this.settings.showCacheMissNotices ??
|
|
882
|
+
return this.settings.showCacheMissNotices ?? SETTINGS_DEFAULTS.showCacheMissNotices;
|
|
867
883
|
}
|
|
868
884
|
getExternalEditorCommand() {
|
|
869
885
|
const configuredEditor = this.settings.externalEditor;
|
|
@@ -897,7 +913,7 @@ export class SettingsManager {
|
|
|
897
913
|
}
|
|
898
914
|
getQuietStartup() {
|
|
899
915
|
const value = this.settings.quietStartup;
|
|
900
|
-
return value === true || value === "header" ? value :
|
|
916
|
+
return value === true || value === "header" ? value : SETTINGS_DEFAULTS.quietStartup;
|
|
901
917
|
}
|
|
902
918
|
getAgentMonitorEnabled() {
|
|
903
919
|
return this.settings.agentMonitor?.enabled !== false;
|
|
@@ -918,7 +934,7 @@ export class SettingsManager {
|
|
|
918
934
|
}
|
|
919
935
|
getDefaultProjectTrust() {
|
|
920
936
|
const value = this.globalSettings.defaultProjectTrust;
|
|
921
|
-
return value === "always" || value === "never" ? value :
|
|
937
|
+
return value === "always" || value === "never" ? value : SETTINGS_DEFAULTS.defaultProjectTrust;
|
|
922
938
|
}
|
|
923
939
|
setDefaultProjectTrust(defaultProjectTrust) {
|
|
924
940
|
this.globalSettings.defaultProjectTrust = defaultProjectTrust;
|
|
@@ -942,7 +958,7 @@ export class SettingsManager {
|
|
|
942
958
|
this.save();
|
|
943
959
|
}
|
|
944
960
|
getCollapseChangelog() {
|
|
945
|
-
return this.settings.collapseChangelog ??
|
|
961
|
+
return this.settings.collapseChangelog ?? SETTINGS_DEFAULTS.collapseChangelog;
|
|
946
962
|
}
|
|
947
963
|
setCollapseChangelog(collapse) {
|
|
948
964
|
this.globalSettings.collapseChangelog = collapse;
|
|
@@ -950,7 +966,7 @@ export class SettingsManager {
|
|
|
950
966
|
this.save();
|
|
951
967
|
}
|
|
952
968
|
getEnableInstallTelemetry() {
|
|
953
|
-
return this.settings.enableInstallTelemetry ??
|
|
969
|
+
return this.settings.enableInstallTelemetry ?? SETTINGS_DEFAULTS.enableInstallTelemetry;
|
|
954
970
|
}
|
|
955
971
|
setEnableInstallTelemetry(enabled) {
|
|
956
972
|
this.globalSettings.enableInstallTelemetry = enabled;
|
|
@@ -958,7 +974,7 @@ export class SettingsManager {
|
|
|
958
974
|
this.save();
|
|
959
975
|
}
|
|
960
976
|
getEnableAnalytics() {
|
|
961
|
-
return this.settings.enableAnalytics ??
|
|
977
|
+
return this.settings.enableAnalytics ?? SETTINGS_DEFAULTS.enableAnalytics;
|
|
962
978
|
}
|
|
963
979
|
getTrackingId() {
|
|
964
980
|
return this.settings.trackingId;
|
|
@@ -1052,7 +1068,7 @@ export class SettingsManager {
|
|
|
1052
1068
|
});
|
|
1053
1069
|
}
|
|
1054
1070
|
getEnableSkillCommands() {
|
|
1055
|
-
return this.settings.enableSkillCommands ??
|
|
1071
|
+
return this.settings.enableSkillCommands ?? SETTINGS_DEFAULTS.enableSkillCommands;
|
|
1056
1072
|
}
|
|
1057
1073
|
setEnableSkillCommands(enabled) {
|
|
1058
1074
|
this.globalSettings.enableSkillCommands = enabled;
|
|
@@ -1072,7 +1088,7 @@ export class SettingsManager {
|
|
|
1072
1088
|
};
|
|
1073
1089
|
}
|
|
1074
1090
|
getShowImages() {
|
|
1075
|
-
return this.settings.terminal?.showImages ??
|
|
1091
|
+
return this.settings.terminal?.showImages ?? SETTINGS_DEFAULTS.terminal.showImages;
|
|
1076
1092
|
}
|
|
1077
1093
|
setShowImages(show) {
|
|
1078
1094
|
if (!this.globalSettings.terminal) {
|
|
@@ -1085,7 +1101,7 @@ export class SettingsManager {
|
|
|
1085
1101
|
getImageWidthCells() {
|
|
1086
1102
|
const width = this.settings.terminal?.imageWidthCells;
|
|
1087
1103
|
if (typeof width !== "number" || !Number.isFinite(width)) {
|
|
1088
|
-
return
|
|
1104
|
+
return SETTINGS_DEFAULTS.terminal.imageWidthCells;
|
|
1089
1105
|
}
|
|
1090
1106
|
return Math.max(1, Math.floor(width));
|
|
1091
1107
|
}
|
|
@@ -1102,7 +1118,9 @@ export class SettingsManager {
|
|
|
1102
1118
|
if (this.settings.terminal?.clearOnShrink !== undefined) {
|
|
1103
1119
|
return this.settings.terminal.clearOnShrink;
|
|
1104
1120
|
}
|
|
1105
|
-
|
|
1121
|
+
if (process.env.PI_CLEAR_ON_SHRINK === "1")
|
|
1122
|
+
return true;
|
|
1123
|
+
return SETTINGS_DEFAULTS.terminal.clearOnShrink;
|
|
1106
1124
|
}
|
|
1107
1125
|
setClearOnShrink(enabled) {
|
|
1108
1126
|
if (!this.globalSettings.terminal) {
|
|
@@ -1113,7 +1131,7 @@ export class SettingsManager {
|
|
|
1113
1131
|
this.save();
|
|
1114
1132
|
}
|
|
1115
1133
|
getShowTerminalProgress() {
|
|
1116
|
-
return this.settings.terminal?.showTerminalProgress ??
|
|
1134
|
+
return this.settings.terminal?.showTerminalProgress ?? SETTINGS_DEFAULTS.terminal.showTerminalProgress;
|
|
1117
1135
|
}
|
|
1118
1136
|
setShowTerminalProgress(enabled) {
|
|
1119
1137
|
if (!this.globalSettings.terminal) {
|
|
@@ -1124,7 +1142,7 @@ export class SettingsManager {
|
|
|
1124
1142
|
this.save();
|
|
1125
1143
|
}
|
|
1126
1144
|
getTuiMode() {
|
|
1127
|
-
return this.settings.tuiMode === "regular" ? "regular" :
|
|
1145
|
+
return this.settings.tuiMode === "regular" ? "regular" : SETTINGS_DEFAULTS.tuiMode;
|
|
1128
1146
|
}
|
|
1129
1147
|
setTuiMode(mode) {
|
|
1130
1148
|
this.globalSettings.tuiMode = mode;
|
|
@@ -1132,7 +1150,9 @@ export class SettingsManager {
|
|
|
1132
1150
|
this.save();
|
|
1133
1151
|
}
|
|
1134
1152
|
getFullscreenExitOutput() {
|
|
1135
|
-
return this.settings.fullscreenExitOutput === "resume-hint"
|
|
1153
|
+
return this.settings.fullscreenExitOutput === "resume-hint"
|
|
1154
|
+
? "resume-hint"
|
|
1155
|
+
: SETTINGS_DEFAULTS.fullscreenExitOutput;
|
|
1136
1156
|
}
|
|
1137
1157
|
setFullscreenExitOutput(output) {
|
|
1138
1158
|
this.globalSettings.fullscreenExitOutput = output;
|
|
@@ -1141,7 +1161,7 @@ export class SettingsManager {
|
|
|
1141
1161
|
}
|
|
1142
1162
|
getFullscreenScrollbar() {
|
|
1143
1163
|
const mode = this.settings.fullscreenScrollbar;
|
|
1144
|
-
return mode === "always" || mode === "hidden" ? mode :
|
|
1164
|
+
return mode === "always" || mode === "hidden" ? mode : SETTINGS_DEFAULTS.fullscreenScrollbar;
|
|
1145
1165
|
}
|
|
1146
1166
|
setFullscreenScrollbar(mode) {
|
|
1147
1167
|
this.globalSettings.fullscreenScrollbar = mode;
|
|
@@ -1149,7 +1169,7 @@ export class SettingsManager {
|
|
|
1149
1169
|
this.save();
|
|
1150
1170
|
}
|
|
1151
1171
|
getFullscreenCopyOnSelect() {
|
|
1152
|
-
return this.settings.fullscreenCopyOnSelect ??
|
|
1172
|
+
return this.settings.fullscreenCopyOnSelect ?? SETTINGS_DEFAULTS.fullscreenCopyOnSelect;
|
|
1153
1173
|
}
|
|
1154
1174
|
setFullscreenCopyOnSelect(enabled) {
|
|
1155
1175
|
this.globalSettings.fullscreenCopyOnSelect = enabled;
|
|
@@ -1160,7 +1180,7 @@ export class SettingsManager {
|
|
|
1160
1180
|
const lines = this.settings.fullscreenWheelScrollLines;
|
|
1161
1181
|
return typeof lines === "number" && Number.isFinite(lines)
|
|
1162
1182
|
? Math.max(1, Math.min(100, Math.floor(lines)))
|
|
1163
|
-
:
|
|
1183
|
+
: SETTINGS_DEFAULTS.fullscreenWheelScrollLines;
|
|
1164
1184
|
}
|
|
1165
1185
|
setFullscreenWheelScrollLines(lines) {
|
|
1166
1186
|
this.globalSettings.fullscreenWheelScrollLines =
|
|
@@ -1169,7 +1189,7 @@ export class SettingsManager {
|
|
|
1169
1189
|
this.save();
|
|
1170
1190
|
}
|
|
1171
1191
|
getImageAutoResize() {
|
|
1172
|
-
return this.settings.images?.autoResize ??
|
|
1192
|
+
return this.settings.images?.autoResize ?? SETTINGS_DEFAULTS.images.autoResize;
|
|
1173
1193
|
}
|
|
1174
1194
|
setImageAutoResize(enabled) {
|
|
1175
1195
|
if (!this.globalSettings.images) {
|
|
@@ -1180,7 +1200,7 @@ export class SettingsManager {
|
|
|
1180
1200
|
this.save();
|
|
1181
1201
|
}
|
|
1182
1202
|
getBlockImages() {
|
|
1183
|
-
return this.settings.images?.blockImages ??
|
|
1203
|
+
return this.settings.images?.blockImages ?? SETTINGS_DEFAULTS.images.blockImages;
|
|
1184
1204
|
}
|
|
1185
1205
|
setBlockImages(blocked) {
|
|
1186
1206
|
if (!this.globalSettings.images) {
|
|
@@ -1206,7 +1226,7 @@ export class SettingsManager {
|
|
|
1206
1226
|
this.save();
|
|
1207
1227
|
}
|
|
1208
1228
|
getDoubleEscapeAction() {
|
|
1209
|
-
return this.settings.doubleEscapeAction ??
|
|
1229
|
+
return this.settings.doubleEscapeAction ?? SETTINGS_DEFAULTS.doubleEscapeAction;
|
|
1210
1230
|
}
|
|
1211
1231
|
setDoubleEscapeAction(action) {
|
|
1212
1232
|
this.globalSettings.doubleEscapeAction = action;
|
|
@@ -1216,7 +1236,7 @@ export class SettingsManager {
|
|
|
1216
1236
|
getTreeFilterMode() {
|
|
1217
1237
|
const mode = this.settings.treeFilterMode;
|
|
1218
1238
|
const valid = ["default", "no-tools", "user-only", "labeled-only", "all"];
|
|
1219
|
-
return mode && valid.includes(mode) ? mode :
|
|
1239
|
+
return mode && valid.includes(mode) ? mode : SETTINGS_DEFAULTS.treeFilterMode;
|
|
1220
1240
|
}
|
|
1221
1241
|
setTreeFilterMode(mode) {
|
|
1222
1242
|
this.globalSettings.treeFilterMode = mode;
|
|
@@ -1235,7 +1255,7 @@ export class SettingsManager {
|
|
|
1235
1255
|
this.save();
|
|
1236
1256
|
}
|
|
1237
1257
|
getEditorPaddingX() {
|
|
1238
|
-
return this.settings.editorPaddingX ??
|
|
1258
|
+
return this.settings.editorPaddingX ?? SETTINGS_DEFAULTS.editorPaddingX;
|
|
1239
1259
|
}
|
|
1240
1260
|
setEditorPaddingX(padding) {
|
|
1241
1261
|
this.globalSettings.editorPaddingX = Math.max(0, Math.min(3, Math.floor(padding)));
|
|
@@ -1243,7 +1263,7 @@ export class SettingsManager {
|
|
|
1243
1263
|
this.save();
|
|
1244
1264
|
}
|
|
1245
1265
|
getOutputPad() {
|
|
1246
|
-
return this.settings.outputPad === 0 ? 0 :
|
|
1266
|
+
return this.settings.outputPad === 0 ? 0 : SETTINGS_DEFAULTS.outputPad;
|
|
1247
1267
|
}
|
|
1248
1268
|
setOutputPad(padding) {
|
|
1249
1269
|
this.globalSettings.outputPad = padding;
|
|
@@ -1251,7 +1271,7 @@ export class SettingsManager {
|
|
|
1251
1271
|
this.save();
|
|
1252
1272
|
}
|
|
1253
1273
|
getAutocompleteMaxVisible() {
|
|
1254
|
-
return this.settings.autocompleteMaxVisible ??
|
|
1274
|
+
return this.settings.autocompleteMaxVisible ?? SETTINGS_DEFAULTS.autocompleteMaxVisible;
|
|
1255
1275
|
}
|
|
1256
1276
|
setAutocompleteMaxVisible(maxVisible) {
|
|
1257
1277
|
this.globalSettings.autocompleteMaxVisible = Math.max(3, Math.min(20, Math.floor(maxVisible)));
|
|
@@ -1259,11 +1279,11 @@ export class SettingsManager {
|
|
|
1259
1279
|
this.save();
|
|
1260
1280
|
}
|
|
1261
1281
|
getCodeBlockIndent() {
|
|
1262
|
-
return this.settings.markdown?.codeBlockIndent ??
|
|
1282
|
+
return this.settings.markdown?.codeBlockIndent ?? SETTINGS_DEFAULTS.markdown.codeBlockIndent;
|
|
1263
1283
|
}
|
|
1264
1284
|
getMermaidRenderingMode() {
|
|
1265
1285
|
const mode = this.settings.markdown?.mermaid;
|
|
1266
|
-
return mode === "off" || mode === "final" ? mode :
|
|
1286
|
+
return mode === "off" || mode === "final" ? mode : SETTINGS_DEFAULTS.markdown.mermaid;
|
|
1267
1287
|
}
|
|
1268
1288
|
setMermaidRenderingMode(mode) {
|
|
1269
1289
|
this.globalSettings.markdown ??= {};
|