@ensocode/server 0.3.3 → 0.3.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/README.md +10 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +117 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-MGNURJ72.js +6 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-4WDOP7MF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CCYGJPSU.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-H4W2F2IO.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-JLFZH7C6.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-LCB5FO32.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-LQUBM7HF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MABPTPMF.js +30 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MPEFJ3RP.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-PYBKJQVF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-VUPOM3AH.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-XM4MQFQV.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZKNSXGL5.js +1243 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-35W4A75E.js} +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-WKRH5HZA.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/codemode-worker.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/github-copilot.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-VSMFCHJU.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-35UTLZJN.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-Z3SS4FP4.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-LWJTUFIM.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-YYIXDJWF.js +10 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-X2I4TQ2L.js} +3 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-GG3FBAIF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-5CX3GG6R.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-WHNK2UQG.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-5CXWY5I7.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-KA2SBSSD.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-7ZY53V4K.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-command.js +26 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.d.ts +15 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.js +232 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.d.ts +14 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.js +57 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.d.ts +17 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.js +63 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts +5 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +7 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +25 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +139 -50
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +3 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.d.ts +4 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.js +11 -89
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +10 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +1 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +9 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +28 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.d.ts +12 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.js +42 -121
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-config.d.ts +52 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +20 -19
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.d.ts +5 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.js +11 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +10 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +50 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/pi-ai-schemas.d.ts +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.d.ts +17 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.js +24 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +18 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-composer.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.d.ts +6 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.js +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.d.ts +13 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.js +29 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/remote-catalog-provider.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.js +15 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +35 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.d.ts +23 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js +182 -41
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +8 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +82 -36
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts +5 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +87 -75
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/powershell.js +15 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +141 -25
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.d.ts +4 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +23 -29
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.js +4 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/tool.js +34 -12
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.d.ts +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.js +23 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/ui.js +15 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.d.ts +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js +49 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/config.js +4 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/index.js +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.d.ts +11 -49
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.js +56 -319
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.js +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.d.ts +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.js +7 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.d.ts +2 -23
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.js +6 -58
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/tool-search/tool.js +18 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/main.js +46 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +5 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js +10 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/diff.js +11 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +9 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +1 -18
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.d.ts +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.js +25 -20
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +14 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +10 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +32 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.d.ts +14 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.js +66 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.d.ts +1 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.js +6 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +1 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +19 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +11 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +110 -63
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +19 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +53 -23
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +39 -8
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js +12 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.js +24 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.d.ts +12 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.js +20 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/cli.md +14 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +27 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/keybindings.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +4 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/models-configuration.md +6 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/models.md +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +4 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/index.ts +23 -13
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/utils.ts +42 -16
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/README.md +14 -11
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/index.ts +392 -171
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/tsconfig.json +63 -35
- package/out/node_modules/@earendil-works/pi-coding-agent/package.json +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/schemas/models.schema.json +29 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/schemas/settings.schema.json +1 -1
- package/out/phone/assets/{abnfDiagram-VCTEODGH-CLgfII9z.js → abnfDiagram-VCTEODGH-6JYofuK8.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-D7mwyuxS.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-I2RDn32D.js → architectureDiagram-5GKGNRK7-BeLeAQB1.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-D5xNQZkS.js → blockDiagram-I7D4REHJ-uXn3vhT2.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-CRKpzdlA.js → c4Diagram-7LVT6UL2-CjzMFRll.js} +1 -1
- package/out/phone/assets/channel-BsGN1oT0.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-CcezrqKz.js → chunk-4HAMMTFA-BA8HaYy2.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-DDCXp4y1.js → chunk-75Z2AOVW-BhIfO9es.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-CjWveEkB.js → chunk-DU6HZSFF-BTLBHwj-.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-Bgl_xI02.js → chunk-F27PBJKO-CUw8NZk8.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-EmL8nOme.js → chunk-GMAD6QVW-bZOKnRyM.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-Dox_nphF.js → chunk-GVQU2GXP-B0WIm1dS.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-BapGpI4S.js → chunk-IMKFNOWR-DWND4rEr.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-Cq_UZI8A.js → chunk-L3NEJ4N5-DgMknY3k.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-2VVlErAd.js → chunk-OSK3NFVY-C5aEouov.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-Cci-G-p1.js → chunk-P2QGCYS3-D2ID3RxV.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-CJ47EOfE.js → chunk-POPQ4Y6H-C1lOuNpV.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-D9dLdFqC.js → chunk-PWAF6VOD-CfqWQZRE.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-BlGSiWZn.js → chunk-SHT3W25Y-p37Dlvn4.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-C0zdsa_A.js → chunk-SVP7TREG-CSSqW-zb.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-DAQW8nQU.js → chunk-TICWLB2K-Bse5ne4b.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-a1PUvjC2.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-a1PUvjC2.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-_zsx5mdV.js → cynefin-OW5HDTMX-BGQqPhYk.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-Cww-w0ex.js → cynefinDiagram-5FMLGOSQ-Cz3XWaxY.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-C0i7DPqX.js → dagre-GXQ25YYZ-CjAF6lSz.js} +1 -1
- package/out/phone/assets/desk-1McWacjU.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-Bx-G5hYz.js → diagram-S7CK7UJ4-B135cp5a.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DaTblkjV.js → diagram-UQ7AKVKN-C4pCe0fQ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-gmN2e1b4.js → diagram-VSXAHHWV-CYkCrin2.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-WYtRtOo8.js → diagram-VX7I27RA-CT_vufh_.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-Cr6uUB5B.js → diagram-Z3DM3KII-XEkkXu3P.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-BCicfvpA.js → ebnfDiagram-PWID7BFC-DfLyeXjw.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-B3QlJvfQ.js → erDiagram-RLTQ6QDP-pKNbKkAP.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-DcUsfQiW.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-sUobw8zi.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-LYy2mfCh.js → ganttDiagram-EL5Y4UJY-Df4E50Mj.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-dT22Z2jG.js → gitGraph-4MIJSDKK-CkjzZeFD.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DHNdY57l.js → gitGraphDiagram-WWUBYQGX-CBxfRAfy.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-nIu8NSOs.js → info-A6RAGUB7-CHFXa2pw.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-DGkWZIMT.js → infoDiagram-27XIBGKW-K0DnZhi4.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-C8EPXru-.js → ishikawaDiagram-5VMMS53U-DTQF2ZuR.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-Dyd9L3l3.js → journeyDiagram-3NMN7TZE-wBltkU2i.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-DehTYcsL.js → kanban-definition-UXKFOSKX-BZpcOajP.js} +1 -1
- package/out/phone/assets/{line-Db4SulF4.js → line-BflnZFgp.js} +1 -1
- package/out/phone/assets/main-CnA1zWP8.css +1 -0
- package/out/phone/assets/main-Crtf_g8h.js +1643 -0
- package/out/phone/assets/{mermaid-parser.core-D7h_8WV8.js → mermaid-parser.core-BiCTmcqa.js} +3 -3
- package/out/phone/assets/{mermaid.core-Dw_E5kj4.js → mermaid.core-D3TwYaLF.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-_5Mxqxsy.js → mindmap-definition-YA3MSWOX-Cz0aS_6Y.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-_cgeMDdN.js → packet-AYTQ26CC-DW-djbhd.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-BhBwaNEr.js → pegDiagram-XKGWAZYB-CE0sZZAE.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-BepY80_0.js → pie-WAS4IAKB-CKGFlXok.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CQQgqmI8.js → pieDiagram-E7YTZNPT-BrnQ32_6.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-DEEatC1J.js → quadrantDiagram-AXDQQJYC-BrxDAygB.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-BqsiI_qQ.js → radar-RG4KPBEZ-Bo2f5QyA.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-C_2pEUjD.js → railroad-74A4TZTK-BZEmm0Ha.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-CGiIT1ZV.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-C85Q3c0J.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-8qPPCLgU.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-B7786u7W.js → railroadDiagram-O6MQD6OU-BvOyUNMC.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-Ci3b5uwm.js → requirementDiagram-BXWQKSXE-T42N3TW5.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-PwT2gJjH.js → sankeyDiagram-P5KCCOFB-0us9ErVV.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-H6sgB5RI.js → sequenceDiagram-WJ2MYXX4-BMcYh2ll.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-BxyRe7OB.js → stateDiagram-D77RDMKH-CgP9dUc3.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-WM4CNSf-.js +1 -0
- package/out/phone/assets/storage-CahQ0cyN.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-DWT3f1Hk.js → swimlanes-42K2YHIH-VnE4ceCW.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-65AiMWVp.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-D67esSVY.js → timeline-definition-24CTP7MA-tH3izgae.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-BTIfu3Qr.js → treeView-Q6P3EWNA-CVFDOC7i.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-DkPf6LQc.js → treemap-WGGIJYW6-vmikHzt3.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-DRMRxJ4f.js → vennDiagram-4TSXK5OY-b8ttDCR-.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-hOvC_8-W.js → wardley-WFR3VGLG-D32vKoC1.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-a5aYRgrw.js → wardleyDiagram-VM6X3IG4-CMkaIPVH.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DXjoRFDL.js → xychartDiagram-S5SC5T6Z-pLYDcql3.js} +1 -1
- package/out/phone/desk.html +2 -2
- package/out/phone/index.html +3 -3
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-DhskujJf.js → abnfDiagram-VCTEODGH-N6OiVFQx.js} +1 -1
- package/out/renderer/assets/{arc-BcW67t47.js → arc-CXVc3U0J.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-D-x057Ia.js → architectureDiagram-5GKGNRK7-BT5CXpcQ.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-DR3sZkhW.js → blockDiagram-I7D4REHJ-C32Vqzip.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-CQ4lScWs.js → c4Diagram-7LVT6UL2-qjwL2BP8.js} +1 -1
- package/out/renderer/assets/channel-B1Cv56hA.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-CtT0yqF3.js → chunk-2Q5K7J3B-YC6CQiyD.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-DlCfddrY.js → chunk-5VM5RSS4-E-kluPz3.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-BAJ5dGzo.js → chunk-F27PBJKO-Bhx1_P75.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Dlah_YbP.js → chunk-IMKFNOWR-Dgb_730B.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-BiXd3nUZ.js → chunk-JWPE2WC7-COQNHw4u.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-Ch86i4EJ.js → chunk-POPQ4Y6H-CQz4hRgP.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-z3inDV-H.js → chunk-SVP7TREG-DGp9XQFd.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-B34A2AKD.js → chunk-TICWLB2K-CovR1uHr.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-Do_L0wRR.js → chunk-XXDRQBXY-gVmqSU5b.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-CDWgELaf.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-CDWgELaf.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-BQraKmgl.js → cose-bilkent-JH36ORCC-DD4PEqt_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-BwixoR4r.js → cynefin-OW5HDTMX-DNsYCrBx.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-BLTBma3J.js → cynefinDiagram-5FMLGOSQ-CoSzqs25.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-BRpJ5tyq.js → cytoscape-fcose-CV0MpCmk.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-aWsjA_wn.js → dagre-GXQ25YYZ-BxpTPeHN.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-Cur2zK4q.js → diagram-S7CK7UJ4-Df_OM1vW.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-DlrY8YcD.js → diagram-UQ7AKVKN-iovjmny_.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-BBdjreqR.js → diagram-VSXAHHWV-BMrwlcQx.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-XiWMdc8S.js → diagram-VX7I27RA-DqLh449X.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-CBB5leat.js → diagram-Z3DM3KII-CH_W77UO.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-nl8RPo8j.js → ebnfDiagram-PWID7BFC-yjzodXoL.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-C_oaG80x.js → erDiagram-RLTQ6QDP-DXxhvHYS.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-nDoVZFS7.js → flowDiagram-HODETNUW-b2AWCAaB.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DOrcuM3Q.js → ganttDiagram-EL5Y4UJY-COkyXL3K.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-D_DB3jro.js → gitGraphDiagram-WWUBYQGX-BYPqy5fh.js} +1 -1
- package/out/renderer/assets/globals-DX-8GWfJ.css +1 -0
- package/out/renderer/assets/{globals-D1ocHHQV.js → globals-y5_C1IiJ.js} +182 -176
- package/out/renderer/assets/index-CHJ6mVl2.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-BbBrANxo.js → infoDiagram-27XIBGKW-DNg-VxlH.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-7UlfWlWV.js → ishikawaDiagram-5VMMS53U-DProTI6a.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-CJP9bosH.js → journeyDiagram-3NMN7TZE-BWhC4n3f.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-D772kW7T.js → kanban-definition-UXKFOSKX-CHJRR0qi.js} +1 -1
- package/out/renderer/assets/{layout-BzVfJEvx.js → layout-D8t6q8k0.js} +1 -1
- package/out/renderer/assets/{linear-DBjhr05m.js → linear-Cxb1p4iF.js} +1 -1
- package/out/renderer/assets/{mermaid.core-CJpNSowm.js → mermaid.core-CFNOEUmc.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-C2oqlH5E.js → mindmap-definition-YA3MSWOX-Ba78cyY4.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-CcZ8Hae-.js → pegDiagram-XKGWAZYB-C7zqoWMk.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-DTw-_k2D.js → pieDiagram-E7YTZNPT-g304yFeX.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-D5eX0DO7.js → quadrantDiagram-AXDQQJYC-Bwn3gGTO.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DzpBB_Re.js → railroadDiagram-O6MQD6OU-DRetS8pv.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-UbOUXLgl.js → requirementDiagram-BXWQKSXE-CHz0FVZ7.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-jRbXLLsa.js → sankeyDiagram-P5KCCOFB-BYGRDIG9.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-s0WBQQPf.js → sequenceDiagram-WJ2MYXX4-B60RuFFk.js} +1 -1
- package/out/renderer/assets/settings-Cd128yRb.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-DvUs5rDx.js → sizeCapture-INFHLROL-CB-i3Fmz.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-C1_V497y.js → stateDiagram-D77RDMKH-CJOcikAJ.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-BosPi5SR.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-BulPeZ6y.js → swimlanes-42K2YHIH-Buap2upT.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B7TQEEbL.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-gQ5OygZn.js → timeline-definition-24CTP7MA-BdQta3QT.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-A8QyA5Ix.js → vennDiagram-4TSXK5OY-BynM2l28.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-CfP6E41T.js → wardleyDiagram-VM6X3IG4-FZjDO9FY.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DTG5UHh7.js → xychartDiagram-S5SC5T6Z-pJPSISxM.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/plugin-view.html +39 -0
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +1502 -370
- package/out/server/chunks/{agent-BhQn6jGA.js → agent--Q7N17bY.js} +356 -165
- package/out/server/chunks/{gpuBackendInstall-CdExgjGi.js → gpuBackendInstall-P7COXJlD.js} +6 -5
- package/out/server/chunks/{loadProvider-BnkyjMSW.js → loadProvider-DvvFIF6F.js} +2 -2
- package/out/server/chunks/{manifest-2odvnxjZ.js → manifest-BvEa5QR3.js} +125 -5
- package/out/server/chunks/{workflowPresets-DqSsjOj6.js → workflowPresets-CuLnfQqa.js} +3444 -448
- package/out/server/index.js +2719 -308
- package/out/server/plugin-host.js +7 -3
- package/package.json +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1234
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
- package/out/phone/assets/architecture-7GRP2DOG-CQOPTv6S.js +0 -1
- package/out/phone/assets/channel-DdXebl9x.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-BCctWEp1.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-BCctWEp1.js +0 -1
- package/out/phone/assets/desk-mfuEW2n4.js +0 -2
- package/out/phone/assets/eventmodeling-NTZA5JFV-BtfapP6M.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-BsyiyBtD.js +0 -1
- package/out/phone/assets/main-Dv9ve8mT.css +0 -1
- package/out/phone/assets/main-uMMbioCA.js +0 -1638
- package/out/phone/assets/railroad-abnf-HS5TGJTU-TmODpceI.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BTCjNR9u.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DjhKNo8j.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Cncmf_cL.js +0 -1
- package/out/phone/assets/storage-D9RW_4__.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-DAahG4fH.js +0 -8
- package/out/renderer/assets/channel-CudRig7z.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DL20WkD0.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DL20WkD0.js +0 -1
- package/out/renderer/assets/globals-Bkw7iiQG.css +0 -1
- package/out/renderer/assets/index-Cm5iq85v.js +0 -117
- package/out/renderer/assets/settings-DxYo7s4h.js +0 -34
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C9dfLXR8.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-LXwy6qGO.js +0 -8
package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js
CHANGED
|
@@ -25,7 +25,10 @@ import { createCompactionSummaryMessage, createCustomMessage } from "../../core/
|
|
|
25
25
|
import { defaultModelPerProvider, findExactModelReferenceMatch, resolveModelScopeFromModels, } from "../../core/model-resolver.js";
|
|
26
26
|
import { CredentialSynchronizationError } from "../../core/model-runtime.js";
|
|
27
27
|
import { DefaultPackageManager } from "../../core/package-manager.js";
|
|
28
|
-
import {
|
|
28
|
+
import { compareProviders } from "../../core/preferred-providers.js";
|
|
29
|
+
import { findMatchingProviders } from "../../core/provider-matching.js";
|
|
30
|
+
import { RADIUS_PROVIDER_ID } from "../../core/radius.js";
|
|
31
|
+
import { planRadiusMcpServer } from "../../core/radius-mcp.js";
|
|
29
32
|
import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
|
|
30
33
|
import { SessionManager, sessionEntryToContextMessages, } from "../../core/session-manager.js";
|
|
31
34
|
import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
|
|
@@ -34,7 +37,7 @@ import { isInstallTelemetryEnabled } from "../../core/telemetry.js";
|
|
|
34
37
|
import { withBuiltInRenderers } from "../../core/tools/renderers/index.js";
|
|
35
38
|
import { hasTrustRequiringProjectResources, ProjectTrustStore } from "../../core/trust-manager.js";
|
|
36
39
|
import { getUsageCostBreakdown } from "../../core/usage-totals.js";
|
|
37
|
-
import { addMcpServerConfig
|
|
40
|
+
import { addMcpServerConfig } from "../../extensions/mcp/config.js";
|
|
38
41
|
import { getChangelogPath, getNewEntries, normalizeChangelogLinks, parseChangelog } from "../../utils/changelog.js";
|
|
39
42
|
import { copyToClipboard, readClipboardFilePaths, readClipboardText } from "../../utils/clipboard.js";
|
|
40
43
|
import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
|
|
@@ -66,6 +69,7 @@ import { ExtensionSelectorComponent } from "./components/extension-selector.js";
|
|
|
66
69
|
import { FooterComponent, formatTokens } from "./components/footer.js";
|
|
67
70
|
import { formatKeyText, keyDisplayText, keyHint, keyText, rawKeyHint } from "./components/keybinding-hints.js";
|
|
68
71
|
import { LoginDialogComponent } from "./components/login-dialog.js";
|
|
72
|
+
import { createMarkdownTransform } from "./components/markdown-transform.js";
|
|
69
73
|
import { createMermaidMarkdownTransformer } from "./components/mermaid.js";
|
|
70
74
|
import { ModelSelectorComponent } from "./components/model-selector.js";
|
|
71
75
|
import { formatAuthSelectorProviderStatus, formatAuthSelectorProviderType, OAuthSelectorComponent, } from "./components/oauth-selector.js";
|
|
@@ -220,7 +224,7 @@ function getLoginProviderCompletionOptions(providerOptions) {
|
|
|
220
224
|
subscription: provider.subscription,
|
|
221
225
|
});
|
|
222
226
|
}
|
|
223
|
-
return Array.from(byId.values()).sort(
|
|
227
|
+
return Array.from(byId.values()).sort(compareProviders);
|
|
224
228
|
}
|
|
225
229
|
function getLoginProviderSearchText(provider) {
|
|
226
230
|
const authTypes = provider.authTypes
|
|
@@ -278,6 +282,8 @@ export class InteractiveMode {
|
|
|
278
282
|
changelogMarkdown = undefined;
|
|
279
283
|
extensionChangelogUpdates = [];
|
|
280
284
|
startupNoticesShown = false;
|
|
285
|
+
/** Last cache-warming notice, extended in place while it is the last chat line. */
|
|
286
|
+
cacheWarmingNotice;
|
|
281
287
|
anthropicSubscriptionWarningShown = false;
|
|
282
288
|
// Status line tracking (for mutating immediately-sequential status updates)
|
|
283
289
|
lastStatusSpacer = undefined;
|
|
@@ -327,6 +333,13 @@ export class InteractiveMode {
|
|
|
327
333
|
// Extension dialogs shown in the editor slot (select, confirm, input, editor, inline custom).
|
|
328
334
|
// The last entry is visible; see pushExtensionDialog().
|
|
329
335
|
extensionDialogs = [];
|
|
336
|
+
/** Numbers the program status sources of blocking overlays, so closing one keeps the others. */
|
|
337
|
+
nextBlockingOverlayId = 0;
|
|
338
|
+
/**
|
|
339
|
+
* Open extension overlays (custom with overlay: true) and the function that removes each, in opening
|
|
340
|
+
* order. Reset removes only these, not pi's own overlays.
|
|
341
|
+
*/
|
|
342
|
+
extensionOverlays = new Map();
|
|
330
343
|
extensionTerminalInputSubscriptions = new Set();
|
|
331
344
|
// Extension widgets (components rendered above/below the editor)
|
|
332
345
|
extensionWidgetsAbove = new Map();
|
|
@@ -583,7 +596,7 @@ export class InteractiveMode {
|
|
|
583
596
|
else {
|
|
584
597
|
this.chatContainer.addChild(new ThemedText(() => theme.bold(theme.fg("accent", "What's New")), 1, 0));
|
|
585
598
|
this.chatContainer.addChild(new Spacer(1));
|
|
586
|
-
this.chatContainer.addChild(
|
|
599
|
+
this.chatContainer.addChild(this.createChangelogMarkdown(this.changelogMarkdown.trim(), 1, 0));
|
|
587
600
|
this.chatContainer.addChild(new Spacer(1));
|
|
588
601
|
}
|
|
589
602
|
}
|
|
@@ -601,7 +614,7 @@ export class InteractiveMode {
|
|
|
601
614
|
this.chatContainer.addChild(new ThemedText(() => theme.bold(theme.fg("accent", "Extension Updates")), 1, 0));
|
|
602
615
|
this.chatContainer.addChild(new Spacer(1));
|
|
603
616
|
const markdown = this.extensionChangelogUpdates.map((update) => update.markdown).join("\n\n");
|
|
604
|
-
this.chatContainer.addChild(
|
|
617
|
+
this.chatContainer.addChild(this.createChangelogMarkdown(markdown, 1, 0));
|
|
605
618
|
this.chatContainer.addChild(new Spacer(1));
|
|
606
619
|
}
|
|
607
620
|
}
|
|
@@ -1020,6 +1033,11 @@ export class InteractiveMode {
|
|
|
1020
1033
|
return undefined;
|
|
1021
1034
|
}
|
|
1022
1035
|
const newEntries = getNewEntries(entries, lastVersion);
|
|
1036
|
+
if (!newEntries) {
|
|
1037
|
+
// Unreadable saved version: show nothing and record the current one so later updates compare again
|
|
1038
|
+
this.settingsManager.setLastChangelogVersion(VERSION);
|
|
1039
|
+
return undefined;
|
|
1040
|
+
}
|
|
1023
1041
|
if (newEntries.length > 0) {
|
|
1024
1042
|
this.settingsManager.setLastChangelogVersion(VERSION);
|
|
1025
1043
|
this.reportInstallTelemetry(VERSION);
|
|
@@ -1054,6 +1072,11 @@ export class InteractiveMode {
|
|
|
1054
1072
|
continue;
|
|
1055
1073
|
}
|
|
1056
1074
|
const newEntries = getNewEntries(parseChangelog(sourceInfo.changelogPath), lastVersion);
|
|
1075
|
+
if (!newEntries) {
|
|
1076
|
+
// Unreadable saved version: show nothing and record the current one so later updates compare again
|
|
1077
|
+
this.settingsManager.setExtensionChangelogVersion(key, pkg.version);
|
|
1078
|
+
continue;
|
|
1079
|
+
}
|
|
1057
1080
|
if (newEntries.length > 0) {
|
|
1058
1081
|
this.settingsManager.setExtensionChangelogVersion(key, pkg.version);
|
|
1059
1082
|
const name = pkg.name || sourceInfo.source;
|
|
@@ -1776,6 +1799,7 @@ export class InteractiveMode {
|
|
|
1776
1799
|
this.loadedResourcesContainer.clear();
|
|
1777
1800
|
this.chatContainer.clear();
|
|
1778
1801
|
this.pendingMessagesContainer.clear();
|
|
1802
|
+
this.pendingBashComponents = [];
|
|
1779
1803
|
this.compactionQueuedMessages = [];
|
|
1780
1804
|
this.streamingComponent = undefined;
|
|
1781
1805
|
this.streamingMessage = undefined;
|
|
@@ -1795,6 +1819,12 @@ export class InteractiveMode {
|
|
|
1795
1819
|
getMarkdownTransformers() {
|
|
1796
1820
|
return [this.mermaidMarkdownTransformer, ...this.session.extensionRunner.getMarkdownTransformers()];
|
|
1797
1821
|
}
|
|
1822
|
+
/** Markdown of a changelog or release note that runs the Markdown transformers of the `changelog` type. */
|
|
1823
|
+
createChangelogMarkdown(markdown, paddingX, paddingY, defaultTextStyle) {
|
|
1824
|
+
return new Markdown(markdown, paddingX, paddingY, this.getMarkdownThemeWithSettings(), defaultTextStyle, {
|
|
1825
|
+
transform: createMarkdownTransform("changelog", () => false, this.getMarkdownTransformers()),
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1798
1828
|
/**
|
|
1799
1829
|
* Set up keyboard shortcuts registered by extensions.
|
|
1800
1830
|
*/
|
|
@@ -1990,7 +2020,10 @@ export class InteractiveMode {
|
|
|
1990
2020
|
this.extensionDialogs = [];
|
|
1991
2021
|
this.showTopExtensionDialog();
|
|
1992
2022
|
}
|
|
1993
|
-
|
|
2023
|
+
// Reload and session switches replace every extension without calling done(): remove their overlays,
|
|
2024
|
+
// newest first, the same way done() does, but leave the promises pending as for inline dialogs.
|
|
2025
|
+
for (const removeOverlay of [...this.extensionOverlays.values()].reverse())
|
|
2026
|
+
removeOverlay();
|
|
1994
2027
|
this.clearExtensionTerminalInputListeners();
|
|
1995
2028
|
this.setExtensionFooter(undefined);
|
|
1996
2029
|
this.setExtensionHeader(undefined);
|
|
@@ -2293,7 +2326,7 @@ export class InteractiveMode {
|
|
|
2293
2326
|
setCustomEditorComponent(factory) {
|
|
2294
2327
|
this.editorComponentFactory = factory;
|
|
2295
2328
|
// Save text from current editor before switching
|
|
2296
|
-
const currentText = this.editor.getText();
|
|
2329
|
+
const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
|
|
2297
2330
|
// An open extension dialog keeps the editor slot; the new editor is shown when the last dialog closes.
|
|
2298
2331
|
const dialogOpen = this.extensionDialogs.length > 0;
|
|
2299
2332
|
if (!dialogOpen) {
|
|
@@ -2379,11 +2412,13 @@ export class InteractiveMode {
|
|
|
2379
2412
|
}
|
|
2380
2413
|
/** Show a custom component with keyboard focus. Overlay mode renders on top of existing content. */
|
|
2381
2414
|
async showExtensionCustom(factory, options) {
|
|
2382
|
-
const savedText = this.editor.getText();
|
|
2415
|
+
const savedText = this.editor.getExpandedText?.() ?? this.editor.getText();
|
|
2383
2416
|
const isOverlay = options?.overlay ?? false;
|
|
2384
2417
|
return new Promise((resolve, reject) => {
|
|
2385
2418
|
let component;
|
|
2386
2419
|
let overlayHandle;
|
|
2420
|
+
// An overlay stays blocked until its interaction ends, also while setHidden() hides it.
|
|
2421
|
+
const overlayStatusSource = isOverlay && options?.blocked ? `extension-overlay:${this.nextBlockingOverlayId++}` : undefined;
|
|
2387
2422
|
let closed = false;
|
|
2388
2423
|
const restoreEditor = () => {
|
|
2389
2424
|
if (component)
|
|
@@ -2391,17 +2426,7 @@ export class InteractiveMode {
|
|
|
2391
2426
|
this.editor.setText(savedText);
|
|
2392
2427
|
this.ui.requestRender();
|
|
2393
2428
|
};
|
|
2394
|
-
const
|
|
2395
|
-
if (closed)
|
|
2396
|
-
return;
|
|
2397
|
-
closed = true;
|
|
2398
|
-
// Remove this overlay, not the topmost one: another overlay may have opened above it.
|
|
2399
|
-
if (isOverlay)
|
|
2400
|
-
overlayHandle?.hide();
|
|
2401
|
-
else
|
|
2402
|
-
restoreEditor();
|
|
2403
|
-
// Note: both branches above already call requestRender
|
|
2404
|
-
resolve(result);
|
|
2429
|
+
const disposeComponent = () => {
|
|
2405
2430
|
try {
|
|
2406
2431
|
component?.dispose?.();
|
|
2407
2432
|
}
|
|
@@ -2409,6 +2434,30 @@ export class InteractiveMode {
|
|
|
2409
2434
|
/* ignore dispose errors */
|
|
2410
2435
|
}
|
|
2411
2436
|
};
|
|
2437
|
+
// Shared by done() and resetExtensionUI(). Removing the map entry first makes a second call a no-op.
|
|
2438
|
+
const removeOverlay = () => {
|
|
2439
|
+
if (!overlayHandle || !this.extensionOverlays.delete(overlayHandle))
|
|
2440
|
+
return;
|
|
2441
|
+
// Remove this overlay, not the topmost one: another overlay may have opened above it.
|
|
2442
|
+
overlayHandle.hide();
|
|
2443
|
+
if (overlayStatusSource)
|
|
2444
|
+
this.programStatus.setBlocked(overlayStatusSource, undefined);
|
|
2445
|
+
disposeComponent();
|
|
2446
|
+
};
|
|
2447
|
+
const close = (result) => {
|
|
2448
|
+
if (closed)
|
|
2449
|
+
return;
|
|
2450
|
+
closed = true;
|
|
2451
|
+
if (isOverlay) {
|
|
2452
|
+
removeOverlay();
|
|
2453
|
+
resolve(result);
|
|
2454
|
+
}
|
|
2455
|
+
else {
|
|
2456
|
+
restoreEditor();
|
|
2457
|
+
resolve(result);
|
|
2458
|
+
disposeComponent();
|
|
2459
|
+
}
|
|
2460
|
+
};
|
|
2412
2461
|
Promise.resolve(factory(this.ui, theme, this.keybindings, close))
|
|
2413
2462
|
.then((c) => {
|
|
2414
2463
|
if (closed)
|
|
@@ -2428,6 +2477,9 @@ export class InteractiveMode {
|
|
|
2428
2477
|
return w ? { width: w } : undefined;
|
|
2429
2478
|
};
|
|
2430
2479
|
overlayHandle = this.ui.showOverlay(c, resolveOptions());
|
|
2480
|
+
this.extensionOverlays.set(overlayHandle, removeOverlay);
|
|
2481
|
+
if (overlayStatusSource)
|
|
2482
|
+
this.programStatus.setBlocked(overlayStatusSource, options?.blocked);
|
|
2431
2483
|
// Expose handle to caller for visibility control
|
|
2432
2484
|
options?.onHandle?.(overlayHandle);
|
|
2433
2485
|
}
|
|
@@ -3018,6 +3070,9 @@ export class InteractiveMode {
|
|
|
3018
3070
|
this.ui.requestRender();
|
|
3019
3071
|
break;
|
|
3020
3072
|
case "agent_settled":
|
|
3073
|
+
// The session records deferred user bash results when the run settles; show them there too.
|
|
3074
|
+
this.flushPendingBashComponents();
|
|
3075
|
+
this.ui.requestRender();
|
|
3021
3076
|
await this.checkShutdownRequested();
|
|
3022
3077
|
break;
|
|
3023
3078
|
case "compaction_start": {
|
|
@@ -3216,7 +3271,7 @@ export class InteractiveMode {
|
|
|
3216
3271
|
case "custom": {
|
|
3217
3272
|
if (message.display) {
|
|
3218
3273
|
const renderer = this.session.extensionRunner.getMessageRenderer(message.customType);
|
|
3219
|
-
const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings(), this.outputPad);
|
|
3274
|
+
const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
|
|
3220
3275
|
component.setExpanded(this.toolOutputExpanded);
|
|
3221
3276
|
this.chatContainer.addChild(component);
|
|
3222
3277
|
}
|
|
@@ -3224,14 +3279,14 @@ export class InteractiveMode {
|
|
|
3224
3279
|
}
|
|
3225
3280
|
case "compactionSummary": {
|
|
3226
3281
|
this.chatContainer.addChild(new Spacer(1));
|
|
3227
|
-
const component = new CompactionSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad);
|
|
3282
|
+
const component = new CompactionSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
|
|
3228
3283
|
component.setExpanded(this.toolOutputExpanded);
|
|
3229
3284
|
this.chatContainer.addChild(component);
|
|
3230
3285
|
break;
|
|
3231
3286
|
}
|
|
3232
3287
|
case "branchSummary": {
|
|
3233
3288
|
this.chatContainer.addChild(new Spacer(1));
|
|
3234
|
-
const component = new BranchSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad);
|
|
3289
|
+
const component = new BranchSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
|
|
3235
3290
|
component.setExpanded(this.toolOutputExpanded);
|
|
3236
3291
|
this.chatContainer.addChild(component);
|
|
3237
3292
|
break;
|
|
@@ -3247,7 +3302,7 @@ export class InteractiveMode {
|
|
|
3247
3302
|
const skillBlock = parseSkillBlock(textContent);
|
|
3248
3303
|
if (skillBlock) {
|
|
3249
3304
|
// Render skill block (collapsible)
|
|
3250
|
-
const component = new SkillInvocationMessageComponent(skillBlock, this.getMarkdownThemeWithSettings(), this.outputPad);
|
|
3305
|
+
const component = new SkillInvocationMessageComponent(skillBlock, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
|
|
3251
3306
|
component.setExpanded(this.toolOutputExpanded);
|
|
3252
3307
|
this.chatContainer.addChild(component);
|
|
3253
3308
|
// Render user message separately if present
|
|
@@ -3401,9 +3456,18 @@ export class InteractiveMode {
|
|
|
3401
3456
|
addCacheWarmingUsage(entry) {
|
|
3402
3457
|
if (!this.settingsManager.getShowCacheMissNotices())
|
|
3403
3458
|
return;
|
|
3459
|
+
// Back-to-back warms collapse into one line with the cumulative cost.
|
|
3460
|
+
const previous = this.cacheWarmingNotice;
|
|
3461
|
+
if (previous && this.chatContainer.children.at(-1) === previous.component && previous.note === entry.note) {
|
|
3462
|
+
previous.total.cost += entry.usage.cost.total;
|
|
3463
|
+
previous.component.invalidate();
|
|
3464
|
+
return;
|
|
3465
|
+
}
|
|
3466
|
+
const total = { cost: entry.usage.cost.total };
|
|
3467
|
+
const component = new ThemedText(() => theme.fg("dim", formatCacheWarmingUsage(total.cost, entry.note)), 1, 0);
|
|
3468
|
+
this.cacheWarmingNotice = { component, total, note: entry.note };
|
|
3404
3469
|
this.chatContainer.addChild(new Spacer(1));
|
|
3405
|
-
|
|
3406
|
-
this.chatContainer.addChild(new ThemedText(() => theme.fg("dim", usage), 1, 0));
|
|
3470
|
+
this.chatContainer.addChild(component);
|
|
3407
3471
|
}
|
|
3408
3472
|
/**
|
|
3409
3473
|
* Render billing usage for a compaction or branch summary. The notice is derived
|
|
@@ -3809,7 +3873,7 @@ export class InteractiveMode {
|
|
|
3809
3873
|
if (isExpandable(activeHeader)) {
|
|
3810
3874
|
activeHeader.setExpanded(expanded);
|
|
3811
3875
|
}
|
|
3812
|
-
for (const container of [this.loadedResourcesContainer, this.chatContainer]) {
|
|
3876
|
+
for (const container of [this.loadedResourcesContainer, this.chatContainer, this.pendingMessagesContainer]) {
|
|
3813
3877
|
for (const child of container.children) {
|
|
3814
3878
|
if (isExpandable(child)) {
|
|
3815
3879
|
child.setExpanded(expanded);
|
|
@@ -3887,9 +3951,7 @@ export class InteractiveMode {
|
|
|
3887
3951
|
this.chatContainer.addChild(new ThemedText(() => `${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction()}`, 1, 0));
|
|
3888
3952
|
if (note) {
|
|
3889
3953
|
this.chatContainer.addChild(new Spacer(1));
|
|
3890
|
-
this.chatContainer.addChild(
|
|
3891
|
-
color: (text) => theme.fg("muted", text),
|
|
3892
|
-
}));
|
|
3954
|
+
this.chatContainer.addChild(this.createChangelogMarkdown(note, 1, 0, { color: (text) => theme.fg("muted", text) }));
|
|
3893
3955
|
this.chatContainer.addChild(new Spacer(1));
|
|
3894
3956
|
}
|
|
3895
3957
|
this.chatContainer.addChild(new ThemedText(changelogLine, 1, 0));
|
|
@@ -3942,6 +4004,10 @@ export class InteractiveMode {
|
|
|
3942
4004
|
}
|
|
3943
4005
|
updatePendingMessagesDisplay() {
|
|
3944
4006
|
this.pendingMessagesContainer.clear();
|
|
4007
|
+
// User bash output shown while the agent works lives here until it moves to the chat.
|
|
4008
|
+
for (const component of this.pendingBashComponents) {
|
|
4009
|
+
this.pendingMessagesContainer.addChild(component);
|
|
4010
|
+
}
|
|
3945
4011
|
const { steering: steeringMessages, followUp: followUpMessages } = this.getAllQueuedMessages();
|
|
3946
4012
|
if (steeringMessages.length > 0 || followUpMessages.length > 0) {
|
|
3947
4013
|
this.pendingMessagesContainer.addChild(new Spacer(1));
|
|
@@ -3969,7 +4035,7 @@ export class InteractiveMode {
|
|
|
3969
4035
|
return 0;
|
|
3970
4036
|
}
|
|
3971
4037
|
const queuedText = allQueued.join("\n\n");
|
|
3972
|
-
const currentText = options?.currentText ?? this.editor.getText();
|
|
4038
|
+
const currentText = options?.currentText ?? this.editor.getExpandedText?.() ?? this.editor.getText();
|
|
3973
4039
|
const combinedText = [queuedText, currentText].filter((t) => t.trim()).join("\n\n");
|
|
3974
4040
|
this.editor.setText(combinedText);
|
|
3975
4041
|
this.updatePendingMessagesDisplay();
|
|
@@ -4922,7 +4988,8 @@ export class InteractiveMode {
|
|
|
4922
4988
|
});
|
|
4923
4989
|
}
|
|
4924
4990
|
}
|
|
4925
|
-
|
|
4991
|
+
// The sort is stable, so a provider's account option stays above its API key option.
|
|
4992
|
+
return options.sort(compareProviders);
|
|
4926
4993
|
}
|
|
4927
4994
|
async getLogoutProviderOptions() {
|
|
4928
4995
|
return (await this.session.modelRuntime.listCredentials({ signal: AbortSignal.timeout(15_000) }))
|
|
@@ -4936,22 +5003,14 @@ export class InteractiveMode {
|
|
|
4936
5003
|
subscription: provider?.auth.oauth?.isSubscription === true,
|
|
4937
5004
|
};
|
|
4938
5005
|
})
|
|
4939
|
-
.sort(
|
|
4940
|
-
}
|
|
4941
|
-
findLoginProviderOptions(providerRef) {
|
|
4942
|
-
const normalizedProviderRef = providerRef.trim().toLowerCase();
|
|
4943
|
-
if (!normalizedProviderRef) {
|
|
4944
|
-
return [];
|
|
4945
|
-
}
|
|
4946
|
-
return this.getLoginProviderOptions().filter((provider) => provider.id.toLowerCase() === normalizedProviderRef ||
|
|
4947
|
-
provider.name.toLowerCase() === normalizedProviderRef);
|
|
5006
|
+
.sort(compareProviders);
|
|
4948
5007
|
}
|
|
4949
5008
|
async handleLoginCommand(providerRef) {
|
|
4950
5009
|
if (!providerRef) {
|
|
4951
5010
|
this.showLoginAuthTypeSelector();
|
|
4952
5011
|
return;
|
|
4953
5012
|
}
|
|
4954
|
-
const providerOptions = this.
|
|
5013
|
+
const providerOptions = findMatchingProviders(this.getLoginProviderOptions(), providerRef);
|
|
4955
5014
|
if (providerOptions.length === 1) {
|
|
4956
5015
|
await this.startProviderLogin(providerOptions[0]);
|
|
4957
5016
|
return;
|
|
@@ -5068,8 +5127,8 @@ export class InteractiveMode {
|
|
|
5068
5127
|
else {
|
|
5069
5128
|
this.ui.requestRender();
|
|
5070
5129
|
}
|
|
5071
|
-
}, initialSearchInput);
|
|
5072
|
-
return { component: selector, focus: selector };
|
|
5130
|
+
}, initialSearchInput, this.ui);
|
|
5131
|
+
return { component: selector, focus: selector, dispose: () => selector.dispose() };
|
|
5073
5132
|
});
|
|
5074
5133
|
}
|
|
5075
5134
|
async showOAuthSelector(mode) {
|
|
@@ -5115,8 +5174,8 @@ export class InteractiveMode {
|
|
|
5115
5174
|
}, () => {
|
|
5116
5175
|
done();
|
|
5117
5176
|
this.ui.requestRender();
|
|
5118
|
-
});
|
|
5119
|
-
return { component: selector, focus: selector };
|
|
5177
|
+
}, undefined, this.ui);
|
|
5178
|
+
return { component: selector, focus: selector, dispose: () => selector.dispose() };
|
|
5120
5179
|
});
|
|
5121
5180
|
}
|
|
5122
5181
|
async completeProviderAuthentication(providerId, providerName, authType, previousModel) {
|
|
@@ -5392,24 +5451,10 @@ export class InteractiveMode {
|
|
|
5392
5451
|
* when missing. Nothing is asked when a global server already uses this login.
|
|
5393
5452
|
*/
|
|
5394
5453
|
offerRadiusMcpServer(providerId, providerName) {
|
|
5395
|
-
const
|
|
5396
|
-
|
|
5397
|
-
const { servers } = loadMcpConfig({
|
|
5398
|
-
agentDir: getAgentDir(),
|
|
5399
|
-
cwd: this.sessionManager.getCwd(),
|
|
5400
|
-
projectTrusted: false,
|
|
5401
|
-
});
|
|
5402
|
-
const existing = servers.find((server) => "url" in server.config && normalizeUrl(server.config.url) === normalizeUrl(RADIUS_MCP_URL));
|
|
5403
|
-
if (existing && "url" in existing.config && existing.config.auth?.provider === providerId)
|
|
5454
|
+
const plan = planRadiusMcpServer(providerId, getAgentDir(), this.sessionManager.getCwd());
|
|
5455
|
+
if (!plan)
|
|
5404
5456
|
return;
|
|
5405
|
-
|
|
5406
|
-
if (!existing && servers.some((server) => server.name === name))
|
|
5407
|
-
name = "radius-mcp";
|
|
5408
|
-
const config = existing && "url" in existing.config
|
|
5409
|
-
? { ...existing.config, auth: { provider: providerId } }
|
|
5410
|
-
: { url: RADIUS_MCP_URL, auth: { provider: providerId } };
|
|
5411
|
-
// `auth` replaces the MCP OAuth sign-in.
|
|
5412
|
-
delete config.oauth;
|
|
5457
|
+
const { mcpPath, name, config } = plan;
|
|
5413
5458
|
this.showSelector((done) => {
|
|
5414
5459
|
const selector = new ExtensionSelectorComponent(`Configure ${providerName} MCP in ${mcpPath}?`, ["Yes", "No"], (option) => {
|
|
5415
5460
|
done();
|
|
@@ -5753,7 +5798,7 @@ export class InteractiveMode {
|
|
|
5753
5798
|
this.chatContainer.addChild(new DynamicBorder());
|
|
5754
5799
|
this.chatContainer.addChild(new ThemedText(() => theme.bold(theme.fg("accent", "What's New")), 1, 0));
|
|
5755
5800
|
this.chatContainer.addChild(new Spacer(1));
|
|
5756
|
-
this.chatContainer.addChild(
|
|
5801
|
+
this.chatContainer.addChild(this.createChangelogMarkdown(changelogMarkdown, 1, 1));
|
|
5757
5802
|
this.chatContainer.addChild(new DynamicBorder());
|
|
5758
5803
|
this.ui.requestRender();
|
|
5759
5804
|
}
|
|
@@ -5955,6 +6000,7 @@ export class InteractiveMode {
|
|
|
5955
6000
|
const result = eventResult.result;
|
|
5956
6001
|
// Create UI component for display
|
|
5957
6002
|
this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext, this.outputPad);
|
|
6003
|
+
this.bashComponent.setExpanded(this.toolOutputExpanded);
|
|
5958
6004
|
if (this.session.isStreaming) {
|
|
5959
6005
|
this.pendingMessagesContainer.addChild(this.bashComponent);
|
|
5960
6006
|
this.pendingBashComponents.push(this.bashComponent);
|
|
@@ -5976,6 +6022,7 @@ export class InteractiveMode {
|
|
|
5976
6022
|
// Normal execution path (possibly with custom operations)
|
|
5977
6023
|
const isDeferred = this.session.isStreaming;
|
|
5978
6024
|
this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext, this.outputPad);
|
|
6025
|
+
this.bashComponent.setExpanded(this.toolOutputExpanded);
|
|
5979
6026
|
if (isDeferred) {
|
|
5980
6027
|
// Show in pending area when agent is streaming
|
|
5981
6028
|
this.pendingMessagesContainer.addChild(this.bashComponent);
|
|
@@ -18,15 +18,18 @@ export async function runPrintMode(runtimeHost, options) {
|
|
|
18
18
|
let session = runtimeHost.session;
|
|
19
19
|
let unsubscribe;
|
|
20
20
|
let unsubscribeBackpressure;
|
|
21
|
-
let
|
|
21
|
+
let disposing;
|
|
22
|
+
// SIGTERM/SIGHUP received so far. Only a repeated signal forces exit during disposal.
|
|
23
|
+
let signalCount = 0;
|
|
22
24
|
const signalCleanupHandlers = [];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
// Callers share one disposal, so a signal during the final disposal waits for it to finish.
|
|
26
|
+
const disposeRuntime = () => {
|
|
27
|
+
disposing ??= (async () => {
|
|
28
|
+
unsubscribe?.();
|
|
29
|
+
unsubscribeBackpressure?.();
|
|
30
|
+
await runtimeHost.dispose();
|
|
31
|
+
})();
|
|
32
|
+
return disposing;
|
|
30
33
|
};
|
|
31
34
|
const registerSignalHandlers = () => {
|
|
32
35
|
const signals = ["SIGTERM"];
|
|
@@ -34,10 +37,14 @@ export async function runPrintMode(runtimeHost, options) {
|
|
|
34
37
|
signals.push("SIGHUP");
|
|
35
38
|
}
|
|
36
39
|
for (const signal of signals) {
|
|
40
|
+
const exitCode = signal === "SIGHUP" ? 129 : 143;
|
|
37
41
|
const handler = () => {
|
|
42
|
+
signalCount++;
|
|
38
43
|
killTrackedDetachedChildren();
|
|
44
|
+
if (signalCount > 1)
|
|
45
|
+
process.exit(exitCode);
|
|
39
46
|
void disposeRuntime().finally(() => {
|
|
40
|
-
process.exit(
|
|
47
|
+
process.exit(exitCode);
|
|
41
48
|
});
|
|
42
49
|
};
|
|
43
50
|
process.on(signal, handler);
|
|
@@ -136,10 +143,12 @@ export async function runPrintMode(runtimeHost, options) {
|
|
|
136
143
|
return 1;
|
|
137
144
|
}
|
|
138
145
|
finally {
|
|
146
|
+
// Keep the signal handlers until disposal is done: without one, a signal would kill the
|
|
147
|
+
// process mid-dispose (for example during a pending MCP token refresh).
|
|
148
|
+
await disposeRuntime();
|
|
139
149
|
for (const cleanup of signalCleanupHandlers) {
|
|
140
150
|
cleanup();
|
|
141
151
|
}
|
|
142
|
-
await disposeRuntime();
|
|
143
152
|
await flushRawStdout();
|
|
144
153
|
}
|
|
145
154
|
}
|
|
@@ -39,10 +39,14 @@ export async function runRpcMode(runtimeHost) {
|
|
|
39
39
|
};
|
|
40
40
|
// Pending extension UI requests waiting for response
|
|
41
41
|
const pendingExtensionRequests = new Map();
|
|
42
|
-
//
|
|
42
|
+
// Extension shutdown requests (ctx.shutdown()) wait until input is attached, no command is
|
|
43
|
+
// being handled, and the session is idle. See checkShutdownRequested().
|
|
43
44
|
let shutdownRequested = false;
|
|
44
45
|
let shuttingDown = false;
|
|
45
|
-
|
|
46
|
+
let inputReady = false;
|
|
47
|
+
let activeCommands = 0;
|
|
48
|
+
// SIGTERM/SIGHUP received so far. Only a repeated signal forces exit during shutdown.
|
|
49
|
+
let signalCount = 0;
|
|
46
50
|
/** Helper for dialog methods with signal/timeout support */
|
|
47
51
|
function createDialogPromise(opts, defaultValue, request, parseResponse) {
|
|
48
52
|
if (opts?.signal?.aborted)
|
|
@@ -255,6 +259,9 @@ export async function runRpcMode(runtimeHost) {
|
|
|
255
259
|
},
|
|
256
260
|
shutdownHandler: () => {
|
|
257
261
|
shutdownRequested = true;
|
|
262
|
+
// An idle session has no command response or agent_settled left to check the flag.
|
|
263
|
+
// Check on the next tick so the requesting handler finishes first.
|
|
264
|
+
setImmediate(checkShutdownRequested);
|
|
258
265
|
},
|
|
259
266
|
onError: (err) => {
|
|
260
267
|
output({ type: "extension_error", extensionPath: err.extensionPath, event: err.event, error: err.error });
|
|
@@ -265,7 +272,7 @@ export async function runRpcMode(runtimeHost) {
|
|
|
265
272
|
unsubscribe = session.subscribe((event) => {
|
|
266
273
|
output(toJsonEvent(event));
|
|
267
274
|
if (event.type === "agent_settled") {
|
|
268
|
-
|
|
275
|
+
checkShutdownRequested();
|
|
269
276
|
}
|
|
270
277
|
});
|
|
271
278
|
unsubscribeBackpressure = session.agent.subscribe(async () => {
|
|
@@ -278,12 +285,21 @@ export async function runRpcMode(runtimeHost) {
|
|
|
278
285
|
signals.push("SIGHUP");
|
|
279
286
|
}
|
|
280
287
|
for (const signal of signals) {
|
|
281
|
-
const
|
|
288
|
+
const exitCode = signal === "SIGHUP" ? 129 : 143;
|
|
289
|
+
// Handlers stay registered until exit: without one, a signal during shutdown would kill
|
|
290
|
+
// the process before dispose() finishes (for example a pending MCP token refresh).
|
|
291
|
+
process.on(signal, () => {
|
|
292
|
+
signalCount++;
|
|
282
293
|
killTrackedDetachedChildren();
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
294
|
+
if (!shuttingDown) {
|
|
295
|
+
void shutdown(exitCode, signal);
|
|
296
|
+
}
|
|
297
|
+
else if (signalCount > 1) {
|
|
298
|
+
// Process managers often close stdin and send SIGTERM together, so one signal
|
|
299
|
+
// during shutdown is not a request to skip cleanup; a repeated one is.
|
|
300
|
+
process.exit(exitCode);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
287
303
|
}
|
|
288
304
|
};
|
|
289
305
|
await rebindSession();
|
|
@@ -299,6 +315,8 @@ export async function runRpcMode(runtimeHost) {
|
|
|
299
315
|
// Start prompt handling immediately, but emit the authoritative response only after
|
|
300
316
|
// prompt preflight succeeds. Queued and immediately handled prompts also count as success.
|
|
301
317
|
let preflightSucceeded = false;
|
|
318
|
+
// Extension commands run inside prompt(); defer shutdown requests until it settles.
|
|
319
|
+
activeCommands++;
|
|
302
320
|
void session
|
|
303
321
|
.prompt(command.message, {
|
|
304
322
|
images: command.images,
|
|
@@ -313,6 +331,10 @@ export async function runRpcMode(runtimeHost) {
|
|
|
313
331
|
if (!preflightSucceeded) {
|
|
314
332
|
output(error(id, "prompt", e.message));
|
|
315
333
|
}
|
|
334
|
+
})
|
|
335
|
+
.finally(() => {
|
|
336
|
+
activeCommands--;
|
|
337
|
+
checkShutdownRequested();
|
|
316
338
|
});
|
|
317
339
|
return undefined;
|
|
318
340
|
}
|
|
@@ -571,19 +593,12 @@ export async function runRpcMode(runtimeHost) {
|
|
|
571
593
|
}
|
|
572
594
|
}
|
|
573
595
|
};
|
|
574
|
-
/**
|
|
575
|
-
* Check if shutdown was requested and perform shutdown if so.
|
|
576
|
-
* Called after handling each command when waiting for the next command.
|
|
577
|
-
*/
|
|
578
596
|
let detachInput = () => { };
|
|
597
|
+
/** Dispose the runtime and exit. Runs once; later calls (stdin EOF after a signal) do nothing. */
|
|
579
598
|
async function shutdown(exitCode = 0, signal) {
|
|
580
|
-
if (shuttingDown)
|
|
581
|
-
|
|
582
|
-
}
|
|
599
|
+
if (shuttingDown)
|
|
600
|
+
return;
|
|
583
601
|
shuttingDown = true;
|
|
584
|
-
for (const cleanup of signalCleanupHandlers) {
|
|
585
|
-
cleanup();
|
|
586
|
-
}
|
|
587
602
|
unsubscribe?.();
|
|
588
603
|
unsubscribeBackpressure?.();
|
|
589
604
|
await runtimeHost.dispose();
|
|
@@ -594,10 +609,15 @@ export async function runRpcMode(runtimeHost) {
|
|
|
594
609
|
}
|
|
595
610
|
process.exit(exitCode);
|
|
596
611
|
}
|
|
597
|
-
|
|
598
|
-
|
|
612
|
+
/**
|
|
613
|
+
* Shut down if an extension requested it and nothing still needs the process: input is attached,
|
|
614
|
+
* no command (including a prompt that has not settled) is being handled, and the session is idle.
|
|
615
|
+
* Each of those ending calls this again.
|
|
616
|
+
*/
|
|
617
|
+
function checkShutdownRequested() {
|
|
618
|
+
if (!shutdownRequested || shuttingDown || !inputReady || activeCommands > 0 || !session.isIdle)
|
|
599
619
|
return;
|
|
600
|
-
|
|
620
|
+
void shutdown();
|
|
601
621
|
}
|
|
602
622
|
const handleInputLine = async (line) => {
|
|
603
623
|
let parsed;
|
|
@@ -623,13 +643,20 @@ export async function runRpcMode(runtimeHost) {
|
|
|
623
643
|
return;
|
|
624
644
|
}
|
|
625
645
|
const command = parsed;
|
|
646
|
+
activeCommands++;
|
|
626
647
|
try {
|
|
627
|
-
|
|
648
|
+
let response;
|
|
649
|
+
try {
|
|
650
|
+
response = await handleCommand(command);
|
|
651
|
+
}
|
|
652
|
+
finally {
|
|
653
|
+
activeCommands--;
|
|
654
|
+
}
|
|
628
655
|
if (response) {
|
|
629
656
|
output(response);
|
|
630
657
|
await waitForRawStdoutBackpressure();
|
|
631
658
|
}
|
|
632
|
-
|
|
659
|
+
checkShutdownRequested();
|
|
633
660
|
}
|
|
634
661
|
catch (commandError) {
|
|
635
662
|
output(error(command.id, command.type, commandError instanceof Error ? commandError.message : String(commandError)));
|
|
@@ -649,6 +676,9 @@ export async function runRpcMode(runtimeHost) {
|
|
|
649
676
|
process.stdin.off("end", onInputEnd);
|
|
650
677
|
};
|
|
651
678
|
})();
|
|
679
|
+
inputReady = true;
|
|
680
|
+
// Handle a shutdown requested during startup (e.g. from session_start).
|
|
681
|
+
checkShutdownRequested();
|
|
652
682
|
// Keep process alive forever
|
|
653
683
|
return new Promise(() => { });
|
|
654
684
|
}
|