@ensocode/server 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-k76opPl1.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-DFA8x3QF.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-I2RDn32D.js → architectureDiagram-5GKGNRK7-yxQH9IuZ.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-D5xNQZkS.js → blockDiagram-I7D4REHJ-DoHteZpO.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-CRKpzdlA.js → c4Diagram-7LVT6UL2-DQVO6L4q.js} +1 -1
- package/out/phone/assets/channel-BBjWfdZr.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-CcezrqKz.js → chunk-4HAMMTFA-N9Rw4SGW.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-DDCXp4y1.js → chunk-75Z2AOVW-DKJ8pOxp.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-CjWveEkB.js → chunk-DU6HZSFF-BqGW8Nbd.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-Bgl_xI02.js → chunk-F27PBJKO-PkFmkghF.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-EmL8nOme.js → chunk-GMAD6QVW-C9VeD3Jk.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-Dox_nphF.js → chunk-GVQU2GXP-COhntOeE.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-BapGpI4S.js → chunk-IMKFNOWR-B87ghLVD.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-Cq_UZI8A.js → chunk-L3NEJ4N5-C3N2izjg.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-2VVlErAd.js → chunk-OSK3NFVY-DaAlvVhz.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-Cci-G-p1.js → chunk-P2QGCYS3-BQpKr8IZ.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-CJ47EOfE.js → chunk-POPQ4Y6H-B2TZMY6U.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-D9dLdFqC.js → chunk-PWAF6VOD-CgRhpUJy.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-BlGSiWZn.js → chunk-SHT3W25Y-BySMFA99.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-C0zdsa_A.js → chunk-SVP7TREG-EDGanDUX.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-DAQW8nQU.js → chunk-TICWLB2K-BtCZ8R2k.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CXXjdIIU.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CXXjdIIU.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-_zsx5mdV.js → cynefin-OW5HDTMX-CdZmp44V.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-Cww-w0ex.js → cynefinDiagram-5FMLGOSQ-BCz9KwUb.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-C0i7DPqX.js → dagre-GXQ25YYZ-CgFeNgh6.js} +1 -1
- package/out/phone/assets/desk-C_b7mE6l.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-Bx-G5hYz.js → diagram-S7CK7UJ4-CwvaZIBf.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DaTblkjV.js → diagram-UQ7AKVKN-DqnD4XoZ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-gmN2e1b4.js → diagram-VSXAHHWV-Kqc9GudQ.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-WYtRtOo8.js → diagram-VX7I27RA-B_0DLDQ0.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-Cr6uUB5B.js → diagram-Z3DM3KII-CppKBEPW.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-BCicfvpA.js → ebnfDiagram-PWID7BFC-DeYPNCu9.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-B3QlJvfQ.js → erDiagram-RLTQ6QDP-MsfxDUmk.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-D4a6gbOs.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-BBTtB5oX.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-LYy2mfCh.js → ganttDiagram-EL5Y4UJY-DaScS1os.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-dT22Z2jG.js → gitGraph-4MIJSDKK-C-FzqpZm.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DHNdY57l.js → gitGraphDiagram-WWUBYQGX-4Yv-hAwf.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-nIu8NSOs.js → info-A6RAGUB7-CGLEP4t7.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-DGkWZIMT.js → infoDiagram-27XIBGKW-DapEgYQa.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-C8EPXru-.js → ishikawaDiagram-5VMMS53U-D1B2lZSG.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-Dyd9L3l3.js → journeyDiagram-3NMN7TZE-BSAtMVJw.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-DehTYcsL.js → kanban-definition-UXKFOSKX-CfZ4oI7A.js} +1 -1
- package/out/phone/assets/{line-Db4SulF4.js → line-DAXmUM4p.js} +1 -1
- package/out/phone/assets/main-B0yD1pMI.js +1643 -0
- package/out/phone/assets/main-DNRbLxEx.css +1 -0
- package/out/phone/assets/{mermaid-parser.core-D7h_8WV8.js → mermaid-parser.core-IObm7oM0.js} +3 -3
- package/out/phone/assets/{mermaid.core-Dw_E5kj4.js → mermaid.core-C1wA-mhD.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-_5Mxqxsy.js → mindmap-definition-YA3MSWOX-3ph0EaB9.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-_cgeMDdN.js → packet-AYTQ26CC-BbDAe9Au.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-BhBwaNEr.js → pegDiagram-XKGWAZYB-EsuDcX_3.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-BepY80_0.js → pie-WAS4IAKB-BQfIj1fu.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CQQgqmI8.js → pieDiagram-E7YTZNPT-Cw19z5Ip.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-DEEatC1J.js → quadrantDiagram-AXDQQJYC-Bqwz_sa8.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-BqsiI_qQ.js → radar-RG4KPBEZ-Dmp-89iD.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-C_2pEUjD.js → railroad-74A4TZTK-dq2H8w8Y.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-DddVaVQM.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BjvyqMjh.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-lBl4CV1_.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-B7786u7W.js → railroadDiagram-O6MQD6OU-D2Sbc7Wn.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-Ci3b5uwm.js → requirementDiagram-BXWQKSXE-CLNUqxbl.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-PwT2gJjH.js → sankeyDiagram-P5KCCOFB-Dme5iwcw.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-H6sgB5RI.js → sequenceDiagram-WJ2MYXX4-C5dYSwPE.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-BxyRe7OB.js → stateDiagram-D77RDMKH-BuxkPvJ6.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Exd8xDBD.js +1 -0
- package/out/phone/assets/storage-p-WxHA1h.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-DWT3f1Hk.js → swimlanes-42K2YHIH-DHyXnytv.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-B62_42fO.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-D67esSVY.js → timeline-definition-24CTP7MA-Bm8Z0u2Z.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-BTIfu3Qr.js → treeView-Q6P3EWNA-DFUxvDDO.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-DkPf6LQc.js → treemap-WGGIJYW6-CMC-hwzt.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-DRMRxJ4f.js → vennDiagram-4TSXK5OY-CNL4gZsd.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-hOvC_8-W.js → wardley-WFR3VGLG-CHQoq9KJ.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-a5aYRgrw.js → wardleyDiagram-VM6X3IG4-DAuBfK1O.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DXjoRFDL.js → xychartDiagram-S5SC5T6Z-B2T9ECKd.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-gdhrQbX6.js} +1 -1
- package/out/renderer/assets/{arc-BcW67t47.js → arc-D6-Q4l2d.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-D-x057Ia.js → architectureDiagram-5GKGNRK7-C4y0SbLT.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-DR3sZkhW.js → blockDiagram-I7D4REHJ-DrsoSFRK.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-CQ4lScWs.js → c4Diagram-7LVT6UL2-1DD8BlM8.js} +1 -1
- package/out/renderer/assets/channel-Sck-tAAK.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-CtT0yqF3.js → chunk-2Q5K7J3B-DRyc0B7g.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-DlCfddrY.js → chunk-5VM5RSS4-BJe8SghE.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-BAJ5dGzo.js → chunk-F27PBJKO-BIipq4SK.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Dlah_YbP.js → chunk-IMKFNOWR-D5Ak3Xd9.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-BiXd3nUZ.js → chunk-JWPE2WC7-BcaWCpW-.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-Ch86i4EJ.js → chunk-POPQ4Y6H-C1TwLrrN.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-z3inDV-H.js → chunk-SVP7TREG-DDOXG_t3.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-B34A2AKD.js → chunk-TICWLB2K-BqT15hZi.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-Do_L0wRR.js → chunk-XXDRQBXY-D01ts6SC.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DnB4QNNe.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DnB4QNNe.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-BQraKmgl.js → cose-bilkent-JH36ORCC-C7NVrT2_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-BwixoR4r.js → cynefin-OW5HDTMX-2LxdFmSk.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-BLTBma3J.js → cynefinDiagram-5FMLGOSQ-_AN_Mulc.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-BRpJ5tyq.js → cytoscape-fcose-COZkZZmX.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-aWsjA_wn.js → dagre-GXQ25YYZ-BUTwlM6j.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-Cur2zK4q.js → diagram-S7CK7UJ4-CseZZ-y2.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-DlrY8YcD.js → diagram-UQ7AKVKN-Cb7llS-8.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-BBdjreqR.js → diagram-VSXAHHWV-CtuGqQvp.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-XiWMdc8S.js → diagram-VX7I27RA-BA8eov-1.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-CBB5leat.js → diagram-Z3DM3KII-VZOjj6Hg.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-nl8RPo8j.js → ebnfDiagram-PWID7BFC-YBIrle6d.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-C_oaG80x.js → erDiagram-RLTQ6QDP-BiKyPEqW.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-nDoVZFS7.js → flowDiagram-HODETNUW-7wmZyLHw.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DOrcuM3Q.js → ganttDiagram-EL5Y4UJY-D4j4GJaT.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-D_DB3jro.js → gitGraphDiagram-WWUBYQGX-BqveM1NI.js} +1 -1
- package/out/renderer/assets/globals-C9M_MZZV.js +2539 -0
- package/out/renderer/assets/globals-l3kDGoYH.css +1 -0
- package/out/renderer/assets/index-BzSTiwH2.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-BbBrANxo.js → infoDiagram-27XIBGKW-DLPLnIFP.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-7UlfWlWV.js → ishikawaDiagram-5VMMS53U-48drIAMR.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-CJP9bosH.js → journeyDiagram-3NMN7TZE-vjigqUq_.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-D772kW7T.js → kanban-definition-UXKFOSKX-CpsYVONZ.js} +1 -1
- package/out/renderer/assets/{layout-BzVfJEvx.js → layout-DqfoORoO.js} +1 -1
- package/out/renderer/assets/{linear-DBjhr05m.js → linear-CJzBBHcp.js} +1 -1
- package/out/renderer/assets/{mermaid.core-CJpNSowm.js → mermaid.core-DdrGP-Hn.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-C2oqlH5E.js → mindmap-definition-YA3MSWOX-D68tLNxp.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-CcZ8Hae-.js → pegDiagram-XKGWAZYB-DkgLTcrv.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-DTw-_k2D.js → pieDiagram-E7YTZNPT-bz5NuX1w.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-D5eX0DO7.js → quadrantDiagram-AXDQQJYC-o_VKLyJA.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DzpBB_Re.js → railroadDiagram-O6MQD6OU-Dkf03e07.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-UbOUXLgl.js → requirementDiagram-BXWQKSXE-CBUz_3YU.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-jRbXLLsa.js → sankeyDiagram-P5KCCOFB-B0pjUr9g.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-s0WBQQPf.js → sequenceDiagram-WJ2MYXX4-ClugIL0e.js} +1 -1
- package/out/renderer/assets/settings-DvhrDn2q.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-DvUs5rDx.js → sizeCapture-INFHLROL-D6y0rctc.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-C1_V497y.js → stateDiagram-D77RDMKH-DiftQepS.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DxB2-9tl.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-BulPeZ6y.js → swimlanes-42K2YHIH-DhuTjCNj.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CYDUqExO.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-gQ5OygZn.js → timeline-definition-24CTP7MA-CrXqgptd.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-A8QyA5Ix.js → vennDiagram-4TSXK5OY-CDm8SO8U.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-CfP6E41T.js → wardleyDiagram-VM6X3IG4-CxyunHwQ.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DTG5UHh7.js → xychartDiagram-S5SC5T6Z-CvC5YMSy.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 +2022 -860
- package/out/server/chunks/{agent-BhQn6jGA.js → agent-_G_O-Cpa.js} +359 -227
- package/out/server/chunks/{gpuBackendInstall-CdExgjGi.js → gpuBackendInstall-Cb6TFh_8.js} +11 -9
- package/out/server/chunks/{loadProvider-BnkyjMSW.js → loadProvider-Be9Lu1Oi.js} +7 -20
- package/out/server/chunks/{manifest-2odvnxjZ.js → manifest-CB63GQ-i.js} +129 -6
- package/out/server/chunks/{workflowPresets-DqSsjOj6.js → workflowPresets-Djlp5LPV.js} +4004 -2054
- package/out/server/index.js +8251 -6660
- package/out/server/plugin-host.js +36 -26
- package/package.json +10 -10
- 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/globals-D1ocHHQV.js +0 -2533
- 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
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { SettingsManager } from "./settings-manager.ts";
|
|
2
|
+
/** Whether PI_OFFLINE is set; package installs and updates then skip all network access. */
|
|
3
|
+
export declare function isOfflineModeEnabled(): boolean;
|
|
2
4
|
export interface PathMetadata {
|
|
3
5
|
source: string;
|
|
4
6
|
scope: SourceScope;
|
|
@@ -28,7 +30,13 @@ export interface PackageInstallFailure {
|
|
|
28
30
|
}
|
|
29
31
|
export type MissingSourceAction = "install" | "skip" | "error";
|
|
30
32
|
export interface ProgressEvent {
|
|
31
|
-
|
|
33
|
+
/**
|
|
34
|
+
* `start` is followed by exactly one `complete` or `error` for the same source.
|
|
35
|
+
* `progress` carries an intermediate message or warning.
|
|
36
|
+
* `result` reports an outcome outside that pairing, e.g. one changed package
|
|
37
|
+
* after update(): `npm:foo 1.2.0 -> 1.3.0`.
|
|
38
|
+
*/
|
|
39
|
+
type: "start" | "progress" | "complete" | "error" | "result";
|
|
32
40
|
action: "install" | "remove" | "update" | "clone" | "pull";
|
|
33
41
|
source: string;
|
|
34
42
|
message?: string;
|
|
@@ -123,6 +131,7 @@ export declare class DefaultPackageManager implements PackageManager {
|
|
|
123
131
|
}): Promise<boolean>;
|
|
124
132
|
update(source?: string): Promise<void>;
|
|
125
133
|
private updateConfiguredSources;
|
|
134
|
+
private getGitHead;
|
|
126
135
|
private shouldUpdateNpmSource;
|
|
127
136
|
private updateNpmBatch;
|
|
128
137
|
/**
|
|
@@ -35,7 +35,8 @@ import { BUILTIN_PATH_PREFIX, getResourcePathKey } from "./source-info.js";
|
|
|
35
35
|
const NETWORK_TIMEOUT_MS = 10000;
|
|
36
36
|
const UPDATE_CHECK_CONCURRENCY = 4;
|
|
37
37
|
const GIT_UPDATE_CONCURRENCY = 4;
|
|
38
|
-
|
|
38
|
+
/** Whether PI_OFFLINE is set; package installs and updates then skip all network access. */
|
|
39
|
+
export function isOfflineModeEnabled() {
|
|
39
40
|
const value = process.env.PI_OFFLINE;
|
|
40
41
|
if (!value)
|
|
41
42
|
return false;
|
|
@@ -914,10 +915,8 @@ export class DefaultPackageManager {
|
|
|
914
915
|
const npmCheckResults = await this.runWithConcurrency(npmCheckTasks, UPDATE_CHECK_CONCURRENCY);
|
|
915
916
|
const userNpmUpdates = [];
|
|
916
917
|
const projectNpmUpdates = [];
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
continue;
|
|
920
|
-
}
|
|
918
|
+
const npmUpdates = npmCheckResults.filter((result) => result.shouldUpdate);
|
|
919
|
+
for (const result of npmUpdates) {
|
|
921
920
|
if (result.entry.scope === "user") {
|
|
922
921
|
userNpmUpdates.push(result.entry);
|
|
923
922
|
}
|
|
@@ -932,13 +931,59 @@ export class DefaultPackageManager {
|
|
|
932
931
|
if (projectNpmUpdates.length > 0) {
|
|
933
932
|
tasks.push(this.updateNpmBatch(projectNpmUpdates, "project"));
|
|
934
933
|
}
|
|
934
|
+
const gitUpdates = [];
|
|
935
935
|
if (gitCandidates.length > 0) {
|
|
936
936
|
const gitTasks = gitCandidates.map((entry) => async () => this.withProgress("update", entry.source, `Updating ${entry.source}...`, async () => {
|
|
937
|
+
const targetDir = this.getGitInstallPath(entry.parsed, entry.scope);
|
|
938
|
+
const from = await this.getGitHead(targetDir);
|
|
937
939
|
await this.updateGit(entry.parsed, entry.scope);
|
|
940
|
+
const to = await this.getGitHead(targetDir);
|
|
941
|
+
if (from !== to) {
|
|
942
|
+
gitUpdates.push({ source: entry.source, type: "git", scope: entry.scope, from, to });
|
|
943
|
+
}
|
|
938
944
|
}));
|
|
939
945
|
tasks.push(this.runWithConcurrency(gitTasks, GIT_UPDATE_CONCURRENCY).then(() => { }));
|
|
940
946
|
}
|
|
941
947
|
await Promise.all(tasks);
|
|
948
|
+
const updated = [];
|
|
949
|
+
for (const { entry } of npmUpdates) {
|
|
950
|
+
const installedPath = this.getManagedNpmInstallPath(entry.parsed, entry.scope);
|
|
951
|
+
const to = existsSync(installedPath) ? this.getInstalledNpmVersion(installedPath) : undefined;
|
|
952
|
+
if (to !== entry.installedVersion) {
|
|
953
|
+
updated.push({ source: entry.source, type: "npm", scope: entry.scope, from: entry.installedVersion, to });
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
// Keep git results in configured order, independent of completion order.
|
|
957
|
+
for (const entry of gitCandidates) {
|
|
958
|
+
const update = gitUpdates.find((u) => u.source === entry.source && u.scope === entry.scope);
|
|
959
|
+
if (update)
|
|
960
|
+
updated.push(update);
|
|
961
|
+
}
|
|
962
|
+
// Report each changed package, e.g. "npm:foo 1.2.0 -> 1.3.0".
|
|
963
|
+
for (const pkg of updated) {
|
|
964
|
+
const format = (value) => value === undefined ? "(none)" : pkg.type === "git" ? value.slice(0, 7) : value;
|
|
965
|
+
const scope = pkg.scope === "project" ? " (project)" : "";
|
|
966
|
+
this.emitProgress({
|
|
967
|
+
type: "result",
|
|
968
|
+
action: "update",
|
|
969
|
+
source: pkg.source,
|
|
970
|
+
message: `${pkg.source}${scope} ${format(pkg.from)} -> ${format(pkg.to)}`,
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
async getGitHead(targetDir) {
|
|
975
|
+
if (!existsSync(targetDir))
|
|
976
|
+
return undefined;
|
|
977
|
+
try {
|
|
978
|
+
const head = await this.runCommandCapture("git", ["rev-parse", "HEAD"], {
|
|
979
|
+
cwd: targetDir,
|
|
980
|
+
timeoutMs: NETWORK_TIMEOUT_MS,
|
|
981
|
+
});
|
|
982
|
+
return head.trim() || undefined;
|
|
983
|
+
}
|
|
984
|
+
catch {
|
|
985
|
+
return undefined;
|
|
986
|
+
}
|
|
942
987
|
}
|
|
943
988
|
async shouldUpdateNpmSource(source, scope) {
|
|
944
989
|
const installedPath = this.getManagedNpmInstallPath(source, scope);
|
|
@@ -11,6 +11,8 @@ export declare const ProviderCompatSchema: Type.TUnsafe<{
|
|
|
11
11
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
12
12
|
requiresToolResultName?: boolean | undefined;
|
|
13
13
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
14
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
15
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
14
16
|
requiresThinkingAsText?: boolean | undefined;
|
|
15
17
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
16
18
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -77,6 +79,7 @@ export declare const ProviderCompatSchema: Type.TUnsafe<{
|
|
|
77
79
|
allowEmptySignature?: boolean | undefined;
|
|
78
80
|
supportsStrictTools?: boolean | undefined;
|
|
79
81
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
82
|
+
supportsMessageThreads?: boolean | undefined;
|
|
80
83
|
allowedFallbackModels?: {
|
|
81
84
|
provider: string;
|
|
82
85
|
model: string;
|
|
@@ -99,6 +102,7 @@ export declare const ProviderCompatSchema: Type.TUnsafe<{
|
|
|
99
102
|
supportsDeveloperRole?: boolean | undefined;
|
|
100
103
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
101
104
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
105
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
102
106
|
supportsMidConvoEffort?: boolean | undefined;
|
|
103
107
|
supportsLongCacheRetention?: boolean | undefined;
|
|
104
108
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preferred partner providers and the order provider lists show them in. Kept free of UI code so the list can move
|
|
3
|
+
* to pi-ai once provider lists are offered there.
|
|
4
|
+
*/
|
|
5
|
+
/** Ids of the preferred partner providers, most preferred first. */
|
|
6
|
+
export declare const PREFERRED_PROVIDER_IDS: readonly string[];
|
|
7
|
+
/** Whether the provider is a preferred partner. */
|
|
8
|
+
export declare function isPreferredProvider(providerId: string): boolean;
|
|
9
|
+
/** Orders providers: preferred partners first, in their order, then all others alphabetically by name. */
|
|
10
|
+
export declare function compareProviders(a: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}, b: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}): number;
|
|
17
|
+
//# sourceMappingURL=preferred-providers.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preferred partner providers and the order provider lists show them in. Kept free of UI code so the list can move
|
|
3
|
+
* to pi-ai once provider lists are offered there.
|
|
4
|
+
*/
|
|
5
|
+
import { RADIUS_PROVIDER_ID } from "./radius.js";
|
|
6
|
+
/** Ids of the preferred partner providers, most preferred first. */
|
|
7
|
+
export const PREFERRED_PROVIDER_IDS = [RADIUS_PROVIDER_ID, "openrouter"];
|
|
8
|
+
/** Whether the provider is a preferred partner. */
|
|
9
|
+
export function isPreferredProvider(providerId) {
|
|
10
|
+
return PREFERRED_PROVIDER_IDS.includes(providerId);
|
|
11
|
+
}
|
|
12
|
+
/** Orders providers: preferred partners first, in their order, then all others alphabetically by name. */
|
|
13
|
+
export function compareProviders(a, b) {
|
|
14
|
+
const rankA = preferredRank(a.id);
|
|
15
|
+
const rankB = preferredRank(b.id);
|
|
16
|
+
if (rankA !== rankB)
|
|
17
|
+
return rankA - rankB;
|
|
18
|
+
return a.name.localeCompare(b.name);
|
|
19
|
+
}
|
|
20
|
+
function preferredRank(providerId) {
|
|
21
|
+
const index = PREFERRED_PROVIDER_IDS.indexOf(providerId);
|
|
22
|
+
return index === -1 ? PREFERRED_PROVIDER_IDS.length : index;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=preferred-providers.js.map
|
|
@@ -14,18 +14,27 @@ export function parseCommandArgs(argsString) {
|
|
|
14
14
|
// Tracks whether a token has started, so quoted empty strings ("" or '') are kept as arguments
|
|
15
15
|
let hasToken = false;
|
|
16
16
|
let inQuote = null;
|
|
17
|
+
// Where the open quote started, so an unclosed quote can be re-read as literal text
|
|
18
|
+
let quoteStart = 0;
|
|
17
19
|
for (let i = 0; i < argsString.length; i++) {
|
|
18
20
|
const char = argsString[i];
|
|
19
21
|
if (inQuote) {
|
|
20
|
-
if (char === inQuote) {
|
|
22
|
+
if (char === "\\" && argsString[i + 1] === inQuote) {
|
|
23
|
+
// A backslash before the open quote's character keeps it as text: "say \"hi\"" gives say "hi"
|
|
24
|
+
current += inQuote;
|
|
25
|
+
i++;
|
|
26
|
+
}
|
|
27
|
+
else if (char === inQuote) {
|
|
21
28
|
inQuote = null;
|
|
22
29
|
}
|
|
23
30
|
else {
|
|
24
31
|
current += char;
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
|
-
else if (char === '"' || char === "'") {
|
|
34
|
+
else if ((char === '"' || char === "'") && !hasToken) {
|
|
35
|
+
// Quotes only open at the start of an argument, so apostrophes inside words stay literal
|
|
28
36
|
inQuote = char;
|
|
37
|
+
quoteStart = i;
|
|
29
38
|
hasToken = true;
|
|
30
39
|
}
|
|
31
40
|
else if (/\s/.test(char)) {
|
|
@@ -39,6 +48,13 @@ export function parseCommandArgs(argsString) {
|
|
|
39
48
|
current += char;
|
|
40
49
|
hasToken = true;
|
|
41
50
|
}
|
|
51
|
+
if (inQuote && i === argsString.length - 1) {
|
|
52
|
+
// Unclosed quote: keep the quote character as text and parse the rest normally
|
|
53
|
+
// (current was empty when the quote opened, because quotes only open a new argument)
|
|
54
|
+
inQuote = null;
|
|
55
|
+
current = argsString[quoteStart];
|
|
56
|
+
i = quoteStart;
|
|
57
|
+
}
|
|
42
58
|
}
|
|
43
59
|
if (hasToken) {
|
|
44
60
|
args.push(current);
|
|
@@ -389,7 +389,7 @@ export function composeModelProvider(providerId, base, modelConfig, extension) {
|
|
|
389
389
|
return simple
|
|
390
390
|
? api.streamSimple(model, context, options)
|
|
391
391
|
: api.stream(model, context, options);
|
|
392
|
-
});
|
|
392
|
+
}, undefined, options?.signal);
|
|
393
393
|
const provider = {
|
|
394
394
|
id: providerId,
|
|
395
395
|
name: extension?.name ?? config?.name ?? base?.name ?? extension?.oauth?.name ?? providerId,
|
|
@@ -398,6 +398,8 @@ export function composeModelProvider(providerId, base, modelConfig, extension) {
|
|
|
398
398
|
auth: { ...(apiKey ? { apiKey } : {}), ...(oauth ? { oauth } : {}) },
|
|
399
399
|
getModels: () => getAllModels().filter((model) => isModelType(model, "chat")),
|
|
400
400
|
getAllModels,
|
|
401
|
+
// Extension hooks read context.credential, so they need the default credential refresh.
|
|
402
|
+
refreshModelsAuth: extension?.refreshModels || extension?.oauth?.modifyModels ? undefined : base?.refreshModelsAuth,
|
|
401
403
|
refreshModels: base?.refreshModels || extension?.refreshModels || extension?.oauth?.modifyModels
|
|
402
404
|
? async (context) => {
|
|
403
405
|
await base?.refreshModels?.(context);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Match provider IDs and display names exactly, ignoring case and surrounding whitespace in the reference. */
|
|
2
|
+
export declare function findMatchingProviders<T extends {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}>(providers: readonly T[], providerRef: string): T[];
|
|
6
|
+
//# sourceMappingURL=provider-matching.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Match provider IDs and display names exactly, ignoring case and surrounding whitespace in the reference. */
|
|
2
|
+
export function findMatchingProviders(providers, providerRef) {
|
|
3
|
+
const normalized = providerRef.trim().toLowerCase();
|
|
4
|
+
if (!normalized)
|
|
5
|
+
return [];
|
|
6
|
+
return providers.filter((provider) => provider.id.toLowerCase() === normalized || provider.name.toLowerCase() === normalized);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=provider-matching.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { McpHttpServerConfig } from "./mcp-servers.ts";
|
|
2
|
+
/** Change to the global mcp.json that points the Radius MCP server at a Radius login. */
|
|
3
|
+
export interface RadiusMcpServerPlan {
|
|
4
|
+
mcpPath: string;
|
|
5
|
+
name: string;
|
|
6
|
+
config: McpHttpServerConfig;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The global mcp.json entry that makes the Radius MCP server use the login of `providerId`, adding the server when
|
|
10
|
+
* missing, or undefined when a global server already uses that login.
|
|
11
|
+
*/
|
|
12
|
+
export declare function planRadiusMcpServer(providerId: string, agentDir: string, cwd: string): RadiusMcpServerPlan | undefined;
|
|
13
|
+
//# sourceMappingURL=radius-mcp.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { mcpNamespace } from "@earendil-works/pi-mcp";
|
|
3
|
+
import { loadMcpConfig } from "../extensions/mcp/config.js";
|
|
4
|
+
import { RADIUS_MCP_URL } from "./radius.js";
|
|
5
|
+
/**
|
|
6
|
+
* The global mcp.json entry that makes the Radius MCP server use the login of `providerId`, adding the server when
|
|
7
|
+
* missing, or undefined when a global server already uses that login.
|
|
8
|
+
*/
|
|
9
|
+
export function planRadiusMcpServer(providerId, agentDir, cwd) {
|
|
10
|
+
const normalizeUrl = (url) => url.replace(/\/+$/u, "");
|
|
11
|
+
const { servers } = loadMcpConfig({ agentDir, cwd, projectTrusted: false });
|
|
12
|
+
const existing = servers.find((server) => "url" in server.config && normalizeUrl(server.config.url) === normalizeUrl(RADIUS_MCP_URL));
|
|
13
|
+
if (existing && "url" in existing.config && existing.config.auth?.provider === providerId)
|
|
14
|
+
return undefined;
|
|
15
|
+
let name = existing?.name ?? "radius";
|
|
16
|
+
if (!existing) {
|
|
17
|
+
const namespaces = new Set(servers.map((server) => mcpNamespace(server.name)));
|
|
18
|
+
for (let suffix = 1; namespaces.has(mcpNamespace(name)); suffix++) {
|
|
19
|
+
name = suffix === 1 ? "radius-mcp" : `radius-mcp-${suffix}`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const config = existing && "url" in existing.config
|
|
23
|
+
? { ...existing.config, auth: { provider: providerId } }
|
|
24
|
+
: { url: RADIUS_MCP_URL, auth: { provider: providerId } };
|
|
25
|
+
// `auth` replaces the MCP OAuth sign-in.
|
|
26
|
+
delete config.oauth;
|
|
27
|
+
return { mcpPath: path.join(agentDir, "mcp.json"), name, config };
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=radius-mcp.js.map
|
package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/remote-catalog-provider.js
CHANGED
|
@@ -72,6 +72,8 @@ export function withRemoteCatalog(provider, catalogBaseUrl = DEFAULT_CATALOG_BAS
|
|
|
72
72
|
...provider,
|
|
73
73
|
getModels: () => mergeModels(provider.getModels(), dynamicModels.filter((model) => isModelType(model, "chat"))),
|
|
74
74
|
getAllModels: () => mergeModels(provider.getAllModels?.() ?? provider.getModels(), dynamicModels),
|
|
75
|
+
// pi.dev serves the catalog, so a stale provider login must not block or fail its refresh.
|
|
76
|
+
refreshModelsAuth: "configured",
|
|
75
77
|
refreshModels: async (context) => {
|
|
76
78
|
const stored = context.stored;
|
|
77
79
|
const restored = remoteModels(stored, localGeneratedAt).filter((model) => model.provider === provider.id);
|
|
@@ -3,6 +3,8 @@ import type { AuthOperationOptions, Credential, CredentialInfo, CredentialStore
|
|
|
3
3
|
export declare class RuntimeCredentials implements CredentialStore {
|
|
4
4
|
private readonly store;
|
|
5
5
|
private readonly overrides;
|
|
6
|
+
/** Modifications not yet written or failed, for example an OAuth refresh. */
|
|
7
|
+
private readonly pendingModifications;
|
|
6
8
|
constructor(store: CredentialStore);
|
|
7
9
|
setRuntimeApiKey(providerId: string, apiKey: string): void;
|
|
8
10
|
removeRuntimeApiKey(providerId: string): void;
|
|
@@ -10,6 +12,12 @@ export declare class RuntimeCredentials implements CredentialStore {
|
|
|
10
12
|
read(providerId: string, options?: AuthOperationOptions): Promise<Credential | undefined>;
|
|
11
13
|
list(options?: AuthOperationOptions): Promise<readonly CredentialInfo[]>;
|
|
12
14
|
modify(providerId: string, fn: (current: Credential | undefined) => Promise<Credential | undefined>, options?: AuthOperationOptions): Promise<Credential | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Resolves when every modification started so far is written or failed. An OAuth refresh may
|
|
17
|
+
* already have spent the single-use refresh token, so exiting before its result is written would
|
|
18
|
+
* leave only the spent token in auth.json.
|
|
19
|
+
*/
|
|
20
|
+
settled(): Promise<void>;
|
|
13
21
|
delete(providerId: string, options?: AuthOperationOptions): Promise<void>;
|
|
14
22
|
}
|
|
15
23
|
//# sourceMappingURL=runtime-credentials.d.ts.map
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export class RuntimeCredentials {
|
|
3
3
|
store;
|
|
4
4
|
overrides = new Map();
|
|
5
|
+
/** Modifications not yet written or failed, for example an OAuth refresh. */
|
|
6
|
+
pendingModifications = new Set();
|
|
5
7
|
constructor(store) {
|
|
6
8
|
this.store = store;
|
|
7
9
|
}
|
|
@@ -28,7 +30,19 @@ export class RuntimeCredentials {
|
|
|
28
30
|
return [...entries.values()];
|
|
29
31
|
}
|
|
30
32
|
modify(providerId, fn, options) {
|
|
31
|
-
|
|
33
|
+
const modification = this.store.modify(providerId, fn, options);
|
|
34
|
+
const pending = modification.then(() => undefined, () => undefined);
|
|
35
|
+
this.pendingModifications.add(pending);
|
|
36
|
+
void pending.finally(() => this.pendingModifications.delete(pending));
|
|
37
|
+
return modification;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Resolves when every modification started so far is written or failed. An OAuth refresh may
|
|
41
|
+
* already have spent the single-use refresh token, so exiting before its result is written would
|
|
42
|
+
* leave only the spent token in auth.json.
|
|
43
|
+
*/
|
|
44
|
+
async settled() {
|
|
45
|
+
await Promise.all(this.pendingModifications);
|
|
32
46
|
}
|
|
33
47
|
async delete(providerId, options) {
|
|
34
48
|
options?.signal?.throwIfAborted();
|
|
@@ -56,7 +56,7 @@ export declare const SETTINGS_DEFAULTS: {
|
|
|
56
56
|
readonly mode: "on";
|
|
57
57
|
readonly inlineBudget: 3000;
|
|
58
58
|
};
|
|
59
|
-
readonly cacheWarming: "
|
|
59
|
+
readonly cacheWarming: "idle";
|
|
60
60
|
readonly tuiMode: "fullscreen";
|
|
61
61
|
readonly fullscreenExitOutput: "transcript";
|
|
62
62
|
readonly fullscreenScrollbar: "auto";
|
|
@@ -44,6 +44,18 @@ const bashOutputSchema = Type.Object({
|
|
|
44
44
|
exit_code: Type.Number(),
|
|
45
45
|
wall_time_seconds: Type.Number(),
|
|
46
46
|
});
|
|
47
|
+
/**
|
|
48
|
+
* Timeout of the local shell backend. Its message keeps the `timeout:<seconds>` form custom operations throw.
|
|
49
|
+
* `shellExit` is set when the shell itself exited before the deadline, so the tool was only still waiting
|
|
50
|
+
* because background processes kept writing to the inherited stdout/stderr pipes (#11613).
|
|
51
|
+
*/
|
|
52
|
+
class ShellTimeoutError extends Error {
|
|
53
|
+
shellExit;
|
|
54
|
+
constructor(timeout, shellExit) {
|
|
55
|
+
super(`timeout:${timeout}`);
|
|
56
|
+
this.shellExit = shellExit;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
47
59
|
/** Shared process execution used by the built-in shell tools. */
|
|
48
60
|
export function createLocalShellOperations(shellName, resolveShellConfig) {
|
|
49
61
|
return {
|
|
@@ -73,7 +85,13 @@ export function createLocalShellOperations(shellName, resolveShellConfig) {
|
|
|
73
85
|
}
|
|
74
86
|
if (child.pid)
|
|
75
87
|
trackDetachedChildPid(child.pid);
|
|
88
|
+
const startedAt = performance.now();
|
|
89
|
+
let shellExitedAfterMs;
|
|
90
|
+
child.once("exit", () => {
|
|
91
|
+
shellExitedAfterMs = performance.now() - startedAt;
|
|
92
|
+
});
|
|
76
93
|
let timedOut = false;
|
|
94
|
+
let exitedBeforeDeadlineAfterMs;
|
|
77
95
|
let timeoutHandle;
|
|
78
96
|
const onAbort = () => {
|
|
79
97
|
if (child.pid)
|
|
@@ -84,6 +102,9 @@ export function createLocalShellOperations(shellName, resolveShellConfig) {
|
|
|
84
102
|
if (timeoutMs !== undefined) {
|
|
85
103
|
timeoutHandle = setTimeout(() => {
|
|
86
104
|
timedOut = true;
|
|
105
|
+
exitedBeforeDeadlineAfterMs = shellExitedAfterMs;
|
|
106
|
+
// Also when the shell already exited: on Unix the group kill still reaches background
|
|
107
|
+
// processes holding the pipes. Windows cannot find them once the shell pid is gone.
|
|
87
108
|
if (child.pid)
|
|
88
109
|
killProcessTree(child.pid);
|
|
89
110
|
}, timeoutMs);
|
|
@@ -104,13 +125,16 @@ export function createLocalShellOperations(shellName, resolveShellConfig) {
|
|
|
104
125
|
if (signal?.aborted) {
|
|
105
126
|
throw new Error("aborted");
|
|
106
127
|
}
|
|
107
|
-
if (timedOut) {
|
|
108
|
-
throw new Error(`timeout:${timeout}`);
|
|
109
|
-
}
|
|
110
128
|
// A signal-killed shell has no exit code. Use the standard shell convention so
|
|
111
129
|
// callers do not mistake the termination for a successful command.
|
|
112
130
|
const signalCode = child.signalCode;
|
|
113
|
-
|
|
131
|
+
const resolvedExitCode = exitCode ?? (signalCode ? 128 + (osConstants.signals[signalCode] ?? 0) : 1);
|
|
132
|
+
if (timedOut) {
|
|
133
|
+
throw new ShellTimeoutError(timeout, exitedBeforeDeadlineAfterMs !== undefined
|
|
134
|
+
? { exitCode: resolvedExitCode, afterSeconds: Math.round(exitedBeforeDeadlineAfterMs / 100) / 10 }
|
|
135
|
+
: undefined);
|
|
136
|
+
}
|
|
137
|
+
return { exitCode: resolvedExitCode };
|
|
114
138
|
}
|
|
115
139
|
finally {
|
|
116
140
|
if (child.pid)
|
|
@@ -272,7 +296,13 @@ export function createShellToolDefinition(cwd, config, options) {
|
|
|
272
296
|
}
|
|
273
297
|
if (err instanceof Error && err.message.startsWith("timeout:")) {
|
|
274
298
|
const timeoutSecs = err.message.split(":")[1];
|
|
275
|
-
|
|
299
|
+
let status = `Command timed out after ${timeoutSecs} seconds`;
|
|
300
|
+
if (err instanceof ShellTimeoutError && err.shellExit) {
|
|
301
|
+
// Both facts matter: the command's real result, and that its background processes
|
|
302
|
+
// were still writing output when the timeout hit (#11613).
|
|
303
|
+
status += `. The shell exited with code ${err.shellExit.exitCode} after ${err.shellExit.afterSeconds} seconds, but background processes it started kept writing output until the timeout.`;
|
|
304
|
+
}
|
|
305
|
+
throw new Error(appendStatus(text, status));
|
|
276
306
|
}
|
|
277
307
|
throw err;
|
|
278
308
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared diff computation utilities for the edit and similar tools.
|
|
3
3
|
*/
|
|
4
|
-
export declare function detectLineEnding(content: string): "\r\n" | "\n";
|
|
5
4
|
export declare function normalizeToLF(text: string): string;
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Apply replacements matched in `normalizeToLF(originalContent)` to `originalContent` itself.
|
|
7
|
+
* Text outside the replaced ranges keeps its bytes, including its line endings. Line breaks in
|
|
8
|
+
* the new text get the line ending of the line where the replaced range starts. The result,
|
|
9
|
+
* normalized to LF, equals the replacements applied to the normalized content.
|
|
10
|
+
*/
|
|
11
|
+
export declare function applyReplacementsToOriginal(originalContent: string, replacements: TextReplacement[]): string;
|
|
7
12
|
/**
|
|
8
13
|
* Normalize text for fuzzy matching. Applies progressive transformations:
|
|
9
14
|
* - Strip trailing whitespace from each line
|
|
@@ -18,18 +23,8 @@ interface MatchedEdit {
|
|
|
18
23
|
matchLength: number;
|
|
19
24
|
newText: string;
|
|
20
25
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Apply replacements matched against `baseContent` to `originalContent` while
|
|
24
|
-
* preserving unchanged line blocks from the original.
|
|
25
|
-
*
|
|
26
|
-
* This is useful when `baseContent` is a normalized view of the original. Each
|
|
27
|
-
* replacement is widened to the lines it actually touches, those touched lines
|
|
28
|
-
* are rewritten from the normalized base, and all other lines are copied back
|
|
29
|
-
* from `originalContent`. The actual replacement ranges drive preservation so
|
|
30
|
-
* duplicate normalized lines cannot be aligned to the wrong occurrence.
|
|
31
|
-
*/
|
|
32
|
-
export declare function applyReplacementsPreservingUnchangedLines(originalContent: string, baseContent: string, replacements: TextReplacement[]): string;
|
|
26
|
+
/** Replacement of `matchLength` characters at `matchIndex` with `newText`. */
|
|
27
|
+
export type TextReplacement = Pick<MatchedEdit, "matchIndex" | "matchLength" | "newText">;
|
|
33
28
|
export interface FuzzyMatchResult {
|
|
34
29
|
/** Whether a match was found */
|
|
35
30
|
found: boolean;
|
|
@@ -52,6 +47,8 @@ export interface Edit {
|
|
|
52
47
|
export interface AppliedEditsResult {
|
|
53
48
|
baseContent: string;
|
|
54
49
|
newContent: string;
|
|
50
|
+
/** Sorted replacements of `baseContent` that turn it into `newContent` */
|
|
51
|
+
replacements: TextReplacement[];
|
|
55
52
|
}
|
|
56
53
|
/**
|
|
57
54
|
* Find oldText in content, trying exact match first, then fuzzy match.
|
|
@@ -80,6 +77,18 @@ export declare function generateDiffString(oldContent: string, newContent: strin
|
|
|
80
77
|
diff: string;
|
|
81
78
|
firstChangedLine: number | undefined;
|
|
82
79
|
};
|
|
80
|
+
/** Display diff and unified patch of an edit, as returned in the edit tool's details. */
|
|
81
|
+
export interface EditDiff {
|
|
82
|
+
diff: string;
|
|
83
|
+
patch: string;
|
|
84
|
+
firstChangedLine: number | undefined;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Diff an edit only around its replacements, so time and memory follow the size of the change instead of
|
|
88
|
+
* the file. The result matches generateDiffString and generateUnifiedPatch over the whole contents, except
|
|
89
|
+
* that jsdiff may align runs of repeated lines differently within a window.
|
|
90
|
+
*/
|
|
91
|
+
export declare function generateEditDiff(path: string, baseContent: string, newContent: string, replacements: TextReplacement[], contextLines?: number): EditDiff;
|
|
83
92
|
export interface EditDiffResult {
|
|
84
93
|
diff: string;
|
|
85
94
|
firstChangedLine: number | undefined;
|