@ensocode/server 0.3.2 → 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-7wNFPVNX.js → abnfDiagram-VCTEODGH-6JYofuK8.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-D7mwyuxS.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-CnuIop2x.js → architectureDiagram-5GKGNRK7-BeLeAQB1.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-JVET2iOX.js → blockDiagram-I7D4REHJ-uXn3vhT2.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-BLFmpm8Y.js → c4Diagram-7LVT6UL2-CjzMFRll.js} +1 -1
- package/out/phone/assets/channel-BsGN1oT0.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-t_CWzvX0.js → chunk-4HAMMTFA-BA8HaYy2.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-Ck9s4XbN.js → chunk-75Z2AOVW-BhIfO9es.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-Clg-W8ZP.js → chunk-DU6HZSFF-BTLBHwj-.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-Dg6DF7tm.js → chunk-F27PBJKO-CUw8NZk8.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-tyN1lr56.js → chunk-GMAD6QVW-bZOKnRyM.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-Cp6zlp3q.js → chunk-GVQU2GXP-B0WIm1dS.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-DivN0qgp.js → chunk-IMKFNOWR-DWND4rEr.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-H6AVmtE_.js → chunk-L3NEJ4N5-DgMknY3k.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-D8Gtw0_S.js → chunk-OSK3NFVY-C5aEouov.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-RZSHAUZq.js → chunk-P2QGCYS3-D2ID3RxV.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-BVS8pZqz.js → chunk-POPQ4Y6H-C1lOuNpV.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-D7FryQWf.js → chunk-PWAF6VOD-CfqWQZRE.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-DGdqMpPQ.js → chunk-SHT3W25Y-p37Dlvn4.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-BwyiT08_.js → chunk-SVP7TREG-CSSqW-zb.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-CY7mq27-.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-ep90c-ad.js → cynefin-OW5HDTMX-BGQqPhYk.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-M8djyXi6.js → cynefinDiagram-5FMLGOSQ-Cz3XWaxY.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-Qp6_rUFB.js → dagre-GXQ25YYZ-CjAF6lSz.js} +1 -1
- package/out/phone/assets/desk-1McWacjU.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-78nJmih8.js → diagram-S7CK7UJ4-B135cp5a.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DK3Lux6Z.js → diagram-UQ7AKVKN-C4pCe0fQ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-8uHrV5vL.js → diagram-VSXAHHWV-CYkCrin2.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-DM2jP_ep.js → diagram-VX7I27RA-CT_vufh_.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-Dk6weE7F.js → diagram-Z3DM3KII-XEkkXu3P.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-CcOU0Q-s.js → ebnfDiagram-PWID7BFC-DfLyeXjw.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-Cv4zHR88.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-DpMAd_jd.js → ganttDiagram-EL5Y4UJY-Df4E50Mj.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-CeZWGC9r.js → gitGraph-4MIJSDKK-CkjzZeFD.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-6QsSrkNy.js → gitGraphDiagram-WWUBYQGX-CBxfRAfy.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-C-8QwtyE.js → info-A6RAGUB7-CHFXa2pw.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-BEywxx6y.js → infoDiagram-27XIBGKW-K0DnZhi4.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-Dv5MWe8O.js → ishikawaDiagram-5VMMS53U-DTQF2ZuR.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-rZqFk8KG.js → journeyDiagram-3NMN7TZE-wBltkU2i.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-Vbp8P778.js → kanban-definition-UXKFOSKX-BZpcOajP.js} +1 -1
- package/out/phone/assets/{line-DtO-RzWq.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-CZ9_GWM0.js → mermaid-parser.core-BiCTmcqa.js} +3 -3
- package/out/phone/assets/{mermaid.core-B15T44DF.js → mermaid.core-D3TwYaLF.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-BgFUJmH3.js → mindmap-definition-YA3MSWOX-Cz0aS_6Y.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC--RETlRVk.js → packet-AYTQ26CC-DW-djbhd.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-D7jmN93W.js → pegDiagram-XKGWAZYB-CE0sZZAE.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-CxG1AbYJ.js → pie-WAS4IAKB-CKGFlXok.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CHxSdknk.js → pieDiagram-E7YTZNPT-BrnQ32_6.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-707LGShZ.js → quadrantDiagram-AXDQQJYC-BrxDAygB.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-BBg9aR2Q.js → radar-RG4KPBEZ-Bo2f5QyA.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-BvqQaIGQ.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-BQUOk6Jm.js → railroadDiagram-O6MQD6OU-BvOyUNMC.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-ByuJLR7x.js → requirementDiagram-BXWQKSXE-T42N3TW5.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-CaWA3qV1.js → sankeyDiagram-P5KCCOFB-0us9ErVV.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4--wDiyJo9.js → sequenceDiagram-WJ2MYXX4-BMcYh2ll.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-ScVywISP.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-Da4TbCnQ.js → swimlanes-42K2YHIH-VnE4ceCW.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-65AiMWVp.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-Csp8wyPz.js → timeline-definition-24CTP7MA-tH3izgae.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-DP_TpAnB.js → treeView-Q6P3EWNA-CVFDOC7i.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-CDX7X9Iz.js → treemap-WGGIJYW6-vmikHzt3.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-DU4FDr9s.js → vennDiagram-4TSXK5OY-b8ttDCR-.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-DJY3i8km.js → wardley-WFR3VGLG-D32vKoC1.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-CDWkRMg4.js → wardleyDiagram-VM6X3IG4-CMkaIPVH.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DAWohWCi.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-CyBOQPqT.js → abnfDiagram-VCTEODGH-N6OiVFQx.js} +1 -1
- package/out/renderer/assets/{arc-JLdYPu0k.js → arc-CXVc3U0J.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-Bq5gy8K8.js → architectureDiagram-5GKGNRK7-BT5CXpcQ.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-Bno0lw2B.js → blockDiagram-I7D4REHJ-C32Vqzip.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-BC6INPz6.js → c4Diagram-7LVT6UL2-qjwL2BP8.js} +1 -1
- package/out/renderer/assets/channel-B1Cv56hA.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-CcyqDHha.js → chunk-2Q5K7J3B-YC6CQiyD.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-QSbyABj3.js → chunk-5VM5RSS4-E-kluPz3.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-4574JVSg.js → chunk-F27PBJKO-Bhx1_P75.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-DCaKjC49.js → chunk-IMKFNOWR-Dgb_730B.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-CbFsKOIM.js → chunk-JWPE2WC7-COQNHw4u.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-B6j8RfR6.js → chunk-POPQ4Y6H-CQz4hRgP.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-kRAl0a5G.js → chunk-SVP7TREG-DGp9XQFd.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-BgG8vTk6.js → chunk-TICWLB2K-CovR1uHr.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-DdqB8mBq.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-HfctEoii.js → cose-bilkent-JH36ORCC-DD4PEqt_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-BNigpbGU.js → cynefin-OW5HDTMX-DNsYCrBx.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-CL-lRXZ7.js → cynefinDiagram-5FMLGOSQ-CoSzqs25.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-B40eUKiT.js → cytoscape-fcose-CV0MpCmk.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-D7VwJTHe.js → dagre-GXQ25YYZ-BxpTPeHN.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-CAp3JWMB.js → diagram-S7CK7UJ4-Df_OM1vW.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-H_c4KXAy.js → diagram-UQ7AKVKN-iovjmny_.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-CsEX84Cq.js → diagram-VSXAHHWV-BMrwlcQx.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-ebIy3O1D.js → diagram-VX7I27RA-DqLh449X.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-BtVfEzv9.js → diagram-Z3DM3KII-CH_W77UO.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-C25YK-UV.js → ebnfDiagram-PWID7BFC-yjzodXoL.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-1imAb8Go.js → erDiagram-RLTQ6QDP-DXxhvHYS.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-OwceYbhd.js → flowDiagram-HODETNUW-b2AWCAaB.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DDoN4Uki.js → ganttDiagram-EL5Y4UJY-COkyXL3K.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-yrrX43-g.js → gitGraphDiagram-WWUBYQGX-BYPqy5fh.js} +1 -1
- package/out/renderer/assets/globals-DX-8GWfJ.css +1 -0
- package/out/renderer/assets/globals-y5_C1IiJ.js +2539 -0
- package/out/renderer/assets/index-CHJ6mVl2.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-BoYY6yGv.js → infoDiagram-27XIBGKW-DNg-VxlH.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-BbtGOrLg.js → ishikawaDiagram-5VMMS53U-DProTI6a.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-BWTb58Kr.js → journeyDiagram-3NMN7TZE-BWhC4n3f.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-BSN2oIEH.js → kanban-definition-UXKFOSKX-CHJRR0qi.js} +1 -1
- package/out/renderer/assets/{layout-k2BpK8-6.js → layout-D8t6q8k0.js} +1 -1
- package/out/renderer/assets/{linear-DFArNkXT.js → linear-Cxb1p4iF.js} +1 -1
- package/out/renderer/assets/{mermaid.core-DthanE8x.js → mermaid.core-CFNOEUmc.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-BhETDMxE.js → mindmap-definition-YA3MSWOX-Ba78cyY4.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-B9w_o-Iv.js → pegDiagram-XKGWAZYB-C7zqoWMk.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-klH2bEkC.js → pieDiagram-E7YTZNPT-g304yFeX.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-DerYxAqw.js → quadrantDiagram-AXDQQJYC-Bwn3gGTO.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-D4EFSRd0.js → railroadDiagram-O6MQD6OU-DRetS8pv.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-C4O9MABZ.js → requirementDiagram-BXWQKSXE-CHz0FVZ7.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-ILgR3far.js → sankeyDiagram-P5KCCOFB-BYGRDIG9.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-SHHY6jka.js → sequenceDiagram-WJ2MYXX4-B60RuFFk.js} +1 -1
- package/out/renderer/assets/settings-Cd128yRb.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-CX9hC7Eu.js → sizeCapture-INFHLROL-CB-i3Fmz.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-CZ1zq3yT.js → stateDiagram-D77RDMKH-CJOcikAJ.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-BosPi5SR.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-BxCpUxk0.js → swimlanes-42K2YHIH-Buap2upT.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B7TQEEbL.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-BZrSf5qo.js → timeline-definition-24CTP7MA-BdQta3QT.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-g01Cyb5O.js → vennDiagram-4TSXK5OY-BynM2l28.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-Bt_RS10y.js → wardleyDiagram-VM6X3IG4-FZjDO9FY.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DuwmVyP6.js → xychartDiagram-S5SC5T6Z-pJPSISxM.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/plugin-view.html +66 -0
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +2355 -469
- package/out/server/chunks/{agent-D37_gFfr.js → agent--Q7N17bY.js} +567 -183
- package/out/server/chunks/{gpuBackendInstall-FekvL7Rv.js → gpuBackendInstall-P7COXJlD.js} +6 -5
- package/out/server/chunks/{loadProvider-CSeEHHnd.js → loadProvider-DvvFIF6F.js} +2 -2
- package/out/server/chunks/{manifest-Bj0K5UgY.js → manifest-BvEa5QR3.js} +220 -22
- package/out/server/chunks/{workflowPresets-DBDQwf8e.js → workflowPresets-CuLnfQqa.js} +3936 -675
- package/out/server/index.js +5666 -851
- package/out/server/plugin-host.js +42 -6
- 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-_byK4-L4.js +0 -1
- package/out/phone/assets/channel-Dgd_LVvp.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-C83rE770.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-C83rE770.js +0 -1
- package/out/phone/assets/desk-DOJjOIls.js +0 -2
- package/out/phone/assets/eventmodeling-NTZA5JFV-7mnBgbcg.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-sLsydHyr.js +0 -1
- package/out/phone/assets/main-CX13EK2l.js +0 -1636
- package/out/phone/assets/main-DZEEX8Mv.css +0 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-Cm1qeEMZ.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-MFhpnZ_W.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DCsilESk.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-D1LtnHXy.js +0 -1
- package/out/phone/assets/storage-DBoRTPSQ.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-C2SWpfVX.js +0 -8
- package/out/renderer/assets/channel-C0GtgNRj.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DUyds1A3.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DUyds1A3.js +0 -1
- package/out/renderer/assets/globals-C6gFTVZy.css +0 -1
- package/out/renderer/assets/globals-CYDlkaHa.js +0 -2509
- package/out/renderer/assets/index-D1rFnBbz.js +0 -116
- package/out/renderer/assets/settings-DB_fAikP.js +0 -33
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-NCbr7wNQ.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N--ymqRTT2.js +0 -8
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The core only validates and stores registrations. The MCP extension (built in, or another
|
|
5
5
|
* extension that handles `mcp_servers_change`) connects them next to the servers from `mcp.json`.
|
|
6
|
+
* The `mcpServers` shape itself (stdio and HTTP fields, `oauth`, `enabled`, `description`, `timeout`)
|
|
7
|
+
* is pi-mcp's; this file adds pi's fields to it.
|
|
6
8
|
*/
|
|
9
|
+
import { validateMcpServerConfig as validateMcpServerFields, } from "@earendil-works/pi-mcp";
|
|
7
10
|
/**
|
|
8
11
|
* Regular expression for a tool name pattern where `*` matches any characters, as `toolExposure`,
|
|
9
12
|
* `--tools`, and `--exclude-tools` accept them.
|
|
@@ -37,14 +40,6 @@ export function isMcpToolName(name) {
|
|
|
37
40
|
const MCP_EXPOSURES = ["codemode", "deferred", "direct", "hidden"];
|
|
38
41
|
/** Older exposure names, accepted in configs and replaced by their current name when validated. */
|
|
39
42
|
const MCP_EXPOSURE_ALIASES = { "codemode-deferred": "codemode" };
|
|
40
|
-
const LOOPBACK_HOSTS = ["localhost", "127.0.0.1", "[::1]"];
|
|
41
|
-
/** Whether a redirect URI can be served by pi's loopback callback server. */
|
|
42
|
-
export function isLoopbackRedirectUri(value) {
|
|
43
|
-
if (!URL.canParse(value))
|
|
44
|
-
return false;
|
|
45
|
-
const url = new URL(value);
|
|
46
|
-
return url.protocol === "http:" && LOOPBACK_HOSTS.includes(url.hostname) && url.search === "" && url.hash === "";
|
|
47
|
-
}
|
|
48
43
|
/**
|
|
49
44
|
* Whether pi's Client ID Metadata Documents list a redirect URI for the loopback `callbackUrl`: they list
|
|
50
45
|
* `/callback` on localhost and 127.0.0.1, on any port. Without `callbackUrl`, pi uses such a URI.
|
|
@@ -55,65 +50,9 @@ export function isClientMetadataDocumentCallback(callbackUrl) {
|
|
|
55
50
|
const url = new URL(callbackUrl);
|
|
56
51
|
return url.hostname !== "[::1]" && url.pathname === "/callback";
|
|
57
52
|
}
|
|
58
|
-
const SERVER_NAME = /^[A-Za-z0-9_-]+$/;
|
|
59
|
-
/** Namespace of a server's tools: `mcp__<server>` with `-` replaced by `_`, like the tool names. */
|
|
60
|
-
export function mcpNamespace(server) {
|
|
61
|
-
return `mcp__${server.replace(/-/g, "_")}`;
|
|
62
|
-
}
|
|
63
53
|
function isRecord(value) {
|
|
64
54
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
65
55
|
}
|
|
66
|
-
function isStringRecord(value) {
|
|
67
|
-
return isRecord(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
68
|
-
}
|
|
69
|
-
function validateOAuth(value) {
|
|
70
|
-
if (value === undefined)
|
|
71
|
-
return undefined;
|
|
72
|
-
if (!isRecord(value))
|
|
73
|
-
return "oauth must be an object";
|
|
74
|
-
if (value.clientId !== undefined && typeof value.clientId !== "string")
|
|
75
|
-
return "oauth.clientId must be a string";
|
|
76
|
-
if (value.clientSecret !== undefined && typeof value.clientSecret !== "string") {
|
|
77
|
-
return "oauth.clientSecret must be a string";
|
|
78
|
-
}
|
|
79
|
-
const port = value.callbackPort;
|
|
80
|
-
if (port !== undefined && (typeof port !== "number" || !Number.isInteger(port) || port < 1 || port > 65535)) {
|
|
81
|
-
return "oauth.callbackPort must be a port number";
|
|
82
|
-
}
|
|
83
|
-
if (value.callbackUrl !== undefined) {
|
|
84
|
-
if (typeof value.callbackUrl !== "string" || !isLoopbackRedirectUri(value.callbackUrl)) {
|
|
85
|
-
return "oauth.callbackUrl must be an http URI on localhost, 127.0.0.1, or [::1] without query or fragment";
|
|
86
|
-
}
|
|
87
|
-
const urlPort = new URL(value.callbackUrl).port;
|
|
88
|
-
if (urlPort && port !== undefined && Number(urlPort) !== port) {
|
|
89
|
-
return "oauth.callbackUrl and oauth.callbackPort name different ports";
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if (value.scope !== undefined && typeof value.scope !== "string")
|
|
93
|
-
return "oauth.scope must be a string";
|
|
94
|
-
if (value.clientName !== undefined && (typeof value.clientName !== "string" || !value.clientName.trim())) {
|
|
95
|
-
return "oauth.clientName must be a non-empty string";
|
|
96
|
-
}
|
|
97
|
-
const registration = value.clientRegistration;
|
|
98
|
-
if (registration !== undefined && registration !== "auto" && registration !== "dcr") {
|
|
99
|
-
if (registration !== "cimd")
|
|
100
|
-
return 'oauth.clientRegistration must be "auto", "dcr", or "cimd"';
|
|
101
|
-
if (value.clientId !== undefined || value.clientName !== undefined) {
|
|
102
|
-
return 'oauth.clientRegistration "cimd" cannot be combined with oauth.clientId or oauth.clientName';
|
|
103
|
-
}
|
|
104
|
-
if (!isClientMetadataDocumentCallback(typeof value.callbackUrl === "string" ? value.callbackUrl : undefined)) {
|
|
105
|
-
return 'oauth.clientRegistration "cimd" requires oauth.callbackUrl on localhost or 127.0.0.1 with path /callback';
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
const metadataUrl = value.authServerMetadataUrl;
|
|
109
|
-
if (metadataUrl !== undefined) {
|
|
110
|
-
const url = typeof metadataUrl === "string" && URL.canParse(metadataUrl) ? new URL(metadataUrl) : undefined;
|
|
111
|
-
if (!url || !(url.protocol === "https:" || (url.protocol === "http:" && LOOPBACK_HOSTS.includes(url.hostname)))) {
|
|
112
|
-
return "oauth.authServerMetadataUrl must be an https URL, or http on localhost, 127.0.0.1, or [::1]";
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return undefined;
|
|
116
|
-
}
|
|
117
56
|
function isExposure(value) {
|
|
118
57
|
return typeof value === "string" && MCP_EXPOSURES.includes(value);
|
|
119
58
|
}
|
|
@@ -144,72 +83,54 @@ export function getMcpToolExposure(config, toolName) {
|
|
|
144
83
|
}
|
|
145
84
|
return config.exposure ?? "codemode";
|
|
146
85
|
}
|
|
147
|
-
/**
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*/
|
|
151
|
-
export function validateMcpServerConfig(name, raw) {
|
|
152
|
-
if (!SERVER_NAME.test(name))
|
|
153
|
-
return `invalid server name "${name}" (use letters, digits, "_" and "-")`;
|
|
154
|
-
if (!isRecord(raw))
|
|
155
|
-
return `server "${name}" must be an object`;
|
|
156
|
-
const value = resolveExposureAliases(raw);
|
|
157
|
-
const { type, exposure, enabled, timeout, toolExposure, description } = value;
|
|
86
|
+
/** Checks `exposure` and `toolExposure`, after aliases were resolved. Returns an error message. */
|
|
87
|
+
function checkExposures(entry) {
|
|
88
|
+
const { exposure, toolExposure } = entry;
|
|
158
89
|
const exposures = MCP_EXPOSURES.map((value) => `"${value}"`).join(", ");
|
|
159
|
-
if (exposure !== undefined && !isExposure(exposure))
|
|
160
|
-
return `
|
|
161
|
-
}
|
|
90
|
+
if (exposure !== undefined && !isExposure(exposure))
|
|
91
|
+
return `exposure must be one of ${exposures}`;
|
|
162
92
|
if (toolExposure !== undefined) {
|
|
163
93
|
if (!isRecord(toolExposure))
|
|
164
|
-
return
|
|
94
|
+
return "toolExposure must map tool names to exposures";
|
|
165
95
|
for (const [tool, value] of Object.entries(toolExposure)) {
|
|
166
96
|
if (!isExposure(value))
|
|
167
|
-
return `
|
|
97
|
+
return `toolExposure "${tool}" must be one of ${exposures}`;
|
|
168
98
|
}
|
|
169
99
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if (
|
|
176
|
-
return
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return `server "${name}": legacy SSE transport is not supported; use the streamable HTTP URL`;
|
|
180
|
-
if (typeof value.url === "string" && (type === undefined || type === "http" || type === "streamable-http")) {
|
|
181
|
-
if (!URL.canParse(value.url) || !/^https?:$/.test(new URL(value.url).protocol)) {
|
|
182
|
-
return `server "${name}": url must be an http or https URL`;
|
|
183
|
-
}
|
|
184
|
-
if (value.headers !== undefined && !isStringRecord(value.headers)) {
|
|
185
|
-
return `server "${name}": headers must map names to strings`;
|
|
186
|
-
}
|
|
187
|
-
const oauthError = validateOAuth(value.oauth);
|
|
188
|
-
if (oauthError)
|
|
189
|
-
return `server "${name}": ${oauthError}`;
|
|
190
|
-
if (value.auth !== undefined) {
|
|
191
|
-
if (!isRecord(value.auth) || typeof value.auth.provider !== "string" || !value.auth.provider) {
|
|
192
|
-
return `server "${name}": auth.provider must be a provider name`;
|
|
193
|
-
}
|
|
194
|
-
const url = new URL(value.url);
|
|
195
|
-
if (url.protocol !== "https:" && !LOOPBACK_HOSTS.includes(url.hostname)) {
|
|
196
|
-
return `server "${name}": auth requires an https URL, or http on localhost, 127.0.0.1, or [::1]`;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return value;
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
const LOOPBACK_HOSTS = ["localhost", "127.0.0.1", "[::1]"];
|
|
103
|
+
/** Checks `auth` of an HTTP server, which sends a provider's credential to `url`. Returns an error message. */
|
|
104
|
+
function checkAuth(auth, url) {
|
|
105
|
+
if (auth === undefined)
|
|
106
|
+
return undefined;
|
|
107
|
+
if (!isRecord(auth) || typeof auth.provider !== "string" || !auth.provider) {
|
|
108
|
+
return "auth.provider must be a provider name";
|
|
200
109
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return `server "${name}": args must be an array of strings`;
|
|
205
|
-
}
|
|
206
|
-
if (value.env !== undefined && !isStringRecord(value.env))
|
|
207
|
-
return `server "${name}": env must map names to strings`;
|
|
208
|
-
if (value.cwd !== undefined && typeof value.cwd !== "string")
|
|
209
|
-
return `server "${name}": cwd must be a string`;
|
|
210
|
-
return value;
|
|
110
|
+
const parsed = new URL(url);
|
|
111
|
+
if (parsed.protocol !== "https:" && !LOOPBACK_HOSTS.includes(parsed.hostname)) {
|
|
112
|
+
return "auth requires an https URL, or http on localhost, 127.0.0.1, or [::1]";
|
|
211
113
|
}
|
|
212
|
-
return
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Validate one server entry of the `mcpServers` shape: pi-mcp's shared fields and pi's own. Returns a
|
|
118
|
+
* copy of the config with exposure aliases resolved, or an error message.
|
|
119
|
+
*/
|
|
120
|
+
export function validateMcpServerConfig(name, raw) {
|
|
121
|
+
const result = validateMcpServerFields(name, isRecord(raw) ? resolveExposureAliases(raw) : raw, {
|
|
122
|
+
checkMetadataDocumentCallback: (callbackUrl) => isClientMetadataDocumentCallback(callbackUrl)
|
|
123
|
+
? undefined
|
|
124
|
+
: 'oauth.clientRegistration "cimd" requires oauth.callbackUrl on localhost or 127.0.0.1 with path /callback',
|
|
125
|
+
});
|
|
126
|
+
if (result.kind === "invalid")
|
|
127
|
+
return result.error;
|
|
128
|
+
const error = checkExposures(result.config) ??
|
|
129
|
+
(result.kind === "http" ? checkAuth(result.config.auth, result.config.url) : undefined);
|
|
130
|
+
if (error)
|
|
131
|
+
return `server "${name}": ${error}`;
|
|
132
|
+
// The cast holds because pi's fields were checked above, which the types cannot express.
|
|
133
|
+
return result.config;
|
|
213
134
|
}
|
|
214
135
|
/** Servers registered by the extensions of one runtime. */
|
|
215
136
|
export class McpServerRegistry {
|
|
@@ -67,6 +67,8 @@ declare const ModelDefinitionSchema: Type.TObject<{
|
|
|
67
67
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
68
68
|
requiresToolResultName?: boolean | undefined;
|
|
69
69
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
70
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
71
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
70
72
|
requiresThinkingAsText?: boolean | undefined;
|
|
71
73
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
72
74
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -133,6 +135,7 @@ declare const ModelDefinitionSchema: Type.TObject<{
|
|
|
133
135
|
allowEmptySignature?: boolean | undefined;
|
|
134
136
|
supportsStrictTools?: boolean | undefined;
|
|
135
137
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
138
|
+
supportsMessageThreads?: boolean | undefined;
|
|
136
139
|
allowedFallbackModels?: {
|
|
137
140
|
provider: string;
|
|
138
141
|
model: string;
|
|
@@ -155,6 +158,7 @@ declare const ModelDefinitionSchema: Type.TObject<{
|
|
|
155
158
|
supportsDeveloperRole?: boolean | undefined;
|
|
156
159
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
157
160
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
161
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
158
162
|
supportsMidConvoEffort?: boolean | undefined;
|
|
159
163
|
supportsLongCacheRetention?: boolean | undefined;
|
|
160
164
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -226,6 +230,8 @@ declare const ModelOverrideSchema: Type.TObject<{
|
|
|
226
230
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
227
231
|
requiresToolResultName?: boolean | undefined;
|
|
228
232
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
233
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
234
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
229
235
|
requiresThinkingAsText?: boolean | undefined;
|
|
230
236
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
231
237
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -292,6 +298,7 @@ declare const ModelOverrideSchema: Type.TObject<{
|
|
|
292
298
|
allowEmptySignature?: boolean | undefined;
|
|
293
299
|
supportsStrictTools?: boolean | undefined;
|
|
294
300
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
301
|
+
supportsMessageThreads?: boolean | undefined;
|
|
295
302
|
allowedFallbackModels?: {
|
|
296
303
|
provider: string;
|
|
297
304
|
model: string;
|
|
@@ -314,6 +321,7 @@ declare const ModelOverrideSchema: Type.TObject<{
|
|
|
314
321
|
supportsDeveloperRole?: boolean | undefined;
|
|
315
322
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
316
323
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
324
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
317
325
|
supportsMidConvoEffort?: boolean | undefined;
|
|
318
326
|
supportsLongCacheRetention?: boolean | undefined;
|
|
319
327
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -336,6 +344,8 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
336
344
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
337
345
|
requiresToolResultName?: boolean | undefined;
|
|
338
346
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
347
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
348
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
339
349
|
requiresThinkingAsText?: boolean | undefined;
|
|
340
350
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
341
351
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -402,6 +412,7 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
402
412
|
allowEmptySignature?: boolean | undefined;
|
|
403
413
|
supportsStrictTools?: boolean | undefined;
|
|
404
414
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
415
|
+
supportsMessageThreads?: boolean | undefined;
|
|
405
416
|
allowedFallbackModels?: {
|
|
406
417
|
provider: string;
|
|
407
418
|
model: string;
|
|
@@ -424,6 +435,7 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
424
435
|
supportsDeveloperRole?: boolean | undefined;
|
|
425
436
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
426
437
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
438
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
427
439
|
supportsMidConvoEffort?: boolean | undefined;
|
|
428
440
|
supportsLongCacheRetention?: boolean | undefined;
|
|
429
441
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -498,6 +510,8 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
498
510
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
499
511
|
requiresToolResultName?: boolean | undefined;
|
|
500
512
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
513
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
514
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
501
515
|
requiresThinkingAsText?: boolean | undefined;
|
|
502
516
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
503
517
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -564,6 +578,7 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
564
578
|
allowEmptySignature?: boolean | undefined;
|
|
565
579
|
supportsStrictTools?: boolean | undefined;
|
|
566
580
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
581
|
+
supportsMessageThreads?: boolean | undefined;
|
|
567
582
|
allowedFallbackModels?: {
|
|
568
583
|
provider: string;
|
|
569
584
|
model: string;
|
|
@@ -586,6 +601,7 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
586
601
|
supportsDeveloperRole?: boolean | undefined;
|
|
587
602
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
588
603
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
604
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
589
605
|
supportsMidConvoEffort?: boolean | undefined;
|
|
590
606
|
supportsLongCacheRetention?: boolean | undefined;
|
|
591
607
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -657,6 +673,8 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
657
673
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
658
674
|
requiresToolResultName?: boolean | undefined;
|
|
659
675
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
676
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
677
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
660
678
|
requiresThinkingAsText?: boolean | undefined;
|
|
661
679
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
662
680
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -723,6 +741,7 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
723
741
|
allowEmptySignature?: boolean | undefined;
|
|
724
742
|
supportsStrictTools?: boolean | undefined;
|
|
725
743
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
744
|
+
supportsMessageThreads?: boolean | undefined;
|
|
726
745
|
allowedFallbackModels?: {
|
|
727
746
|
provider: string;
|
|
728
747
|
model: string;
|
|
@@ -745,6 +764,7 @@ declare const ProviderConfigSchema: Type.TObject<{
|
|
|
745
764
|
supportsDeveloperRole?: boolean | undefined;
|
|
746
765
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
747
766
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
767
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
748
768
|
supportsMidConvoEffort?: boolean | undefined;
|
|
749
769
|
supportsLongCacheRetention?: boolean | undefined;
|
|
750
770
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -769,6 +789,8 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
769
789
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
770
790
|
requiresToolResultName?: boolean | undefined;
|
|
771
791
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
792
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
793
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
772
794
|
requiresThinkingAsText?: boolean | undefined;
|
|
773
795
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
774
796
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -835,6 +857,7 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
835
857
|
allowEmptySignature?: boolean | undefined;
|
|
836
858
|
supportsStrictTools?: boolean | undefined;
|
|
837
859
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
860
|
+
supportsMessageThreads?: boolean | undefined;
|
|
838
861
|
allowedFallbackModels?: {
|
|
839
862
|
provider: string;
|
|
840
863
|
model: string;
|
|
@@ -857,6 +880,7 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
857
880
|
supportsDeveloperRole?: boolean | undefined;
|
|
858
881
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
859
882
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
883
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
860
884
|
supportsMidConvoEffort?: boolean | undefined;
|
|
861
885
|
supportsLongCacheRetention?: boolean | undefined;
|
|
862
886
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -931,6 +955,8 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
931
955
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
932
956
|
requiresToolResultName?: boolean | undefined;
|
|
933
957
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
958
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
959
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
934
960
|
requiresThinkingAsText?: boolean | undefined;
|
|
935
961
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
936
962
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -997,6 +1023,7 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
997
1023
|
allowEmptySignature?: boolean | undefined;
|
|
998
1024
|
supportsStrictTools?: boolean | undefined;
|
|
999
1025
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1026
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1000
1027
|
allowedFallbackModels?: {
|
|
1001
1028
|
provider: string;
|
|
1002
1029
|
model: string;
|
|
@@ -1019,6 +1046,7 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
1019
1046
|
supportsDeveloperRole?: boolean | undefined;
|
|
1020
1047
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1021
1048
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1049
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1022
1050
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1023
1051
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1024
1052
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -1090,6 +1118,8 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
1090
1118
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
1091
1119
|
requiresToolResultName?: boolean | undefined;
|
|
1092
1120
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
1121
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
1122
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
1093
1123
|
requiresThinkingAsText?: boolean | undefined;
|
|
1094
1124
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1095
1125
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -1156,6 +1186,7 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
1156
1186
|
allowEmptySignature?: boolean | undefined;
|
|
1157
1187
|
supportsStrictTools?: boolean | undefined;
|
|
1158
1188
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1189
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1159
1190
|
allowedFallbackModels?: {
|
|
1160
1191
|
provider: string;
|
|
1161
1192
|
model: string;
|
|
@@ -1178,6 +1209,7 @@ export declare const ModelsConfigSchema: Type.TObject<{
|
|
|
1178
1209
|
supportsDeveloperRole?: boolean | undefined;
|
|
1179
1210
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1180
1211
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1212
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1181
1213
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1182
1214
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1183
1215
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -1205,6 +1237,8 @@ export declare const ModelsJsonSchemas: {
|
|
|
1205
1237
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
1206
1238
|
requiresToolResultName?: boolean | undefined;
|
|
1207
1239
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
1240
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
1241
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
1208
1242
|
requiresThinkingAsText?: boolean | undefined;
|
|
1209
1243
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1210
1244
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -1271,6 +1305,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1271
1305
|
allowEmptySignature?: boolean | undefined;
|
|
1272
1306
|
supportsStrictTools?: boolean | undefined;
|
|
1273
1307
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1308
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1274
1309
|
allowedFallbackModels?: {
|
|
1275
1310
|
provider: string;
|
|
1276
1311
|
model: string;
|
|
@@ -1293,6 +1328,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1293
1328
|
supportsDeveloperRole?: boolean | undefined;
|
|
1294
1329
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1295
1330
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1331
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1296
1332
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1297
1333
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1298
1334
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -1367,6 +1403,8 @@ export declare const ModelsJsonSchemas: {
|
|
|
1367
1403
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
1368
1404
|
requiresToolResultName?: boolean | undefined;
|
|
1369
1405
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
1406
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
1407
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
1370
1408
|
requiresThinkingAsText?: boolean | undefined;
|
|
1371
1409
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1372
1410
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -1433,6 +1471,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1433
1471
|
allowEmptySignature?: boolean | undefined;
|
|
1434
1472
|
supportsStrictTools?: boolean | undefined;
|
|
1435
1473
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1474
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1436
1475
|
allowedFallbackModels?: {
|
|
1437
1476
|
provider: string;
|
|
1438
1477
|
model: string;
|
|
@@ -1455,6 +1494,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1455
1494
|
supportsDeveloperRole?: boolean | undefined;
|
|
1456
1495
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1457
1496
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1497
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1458
1498
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1459
1499
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1460
1500
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -1526,6 +1566,8 @@ export declare const ModelsJsonSchemas: {
|
|
|
1526
1566
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
1527
1567
|
requiresToolResultName?: boolean | undefined;
|
|
1528
1568
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
1569
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
1570
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
1529
1571
|
requiresThinkingAsText?: boolean | undefined;
|
|
1530
1572
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1531
1573
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -1592,6 +1634,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1592
1634
|
allowEmptySignature?: boolean | undefined;
|
|
1593
1635
|
supportsStrictTools?: boolean | undefined;
|
|
1594
1636
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1637
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1595
1638
|
allowedFallbackModels?: {
|
|
1596
1639
|
provider: string;
|
|
1597
1640
|
model: string;
|
|
@@ -1614,6 +1657,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1614
1657
|
supportsDeveloperRole?: boolean | undefined;
|
|
1615
1658
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1616
1659
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1660
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1617
1661
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1618
1662
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1619
1663
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -1689,6 +1733,8 @@ export declare const ModelsJsonSchemas: {
|
|
|
1689
1733
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
1690
1734
|
requiresToolResultName?: boolean | undefined;
|
|
1691
1735
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
1736
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
1737
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
1692
1738
|
requiresThinkingAsText?: boolean | undefined;
|
|
1693
1739
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1694
1740
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -1755,6 +1801,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1755
1801
|
allowEmptySignature?: boolean | undefined;
|
|
1756
1802
|
supportsStrictTools?: boolean | undefined;
|
|
1757
1803
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1804
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1758
1805
|
allowedFallbackModels?: {
|
|
1759
1806
|
provider: string;
|
|
1760
1807
|
model: string;
|
|
@@ -1777,6 +1824,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1777
1824
|
supportsDeveloperRole?: boolean | undefined;
|
|
1778
1825
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1779
1826
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1827
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1780
1828
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1781
1829
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1782
1830
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -1848,6 +1896,8 @@ export declare const ModelsJsonSchemas: {
|
|
|
1848
1896
|
maxTokensField?: "max_completion_tokens" | "max_tokens" | undefined;
|
|
1849
1897
|
requiresToolResultName?: boolean | undefined;
|
|
1850
1898
|
requiresAssistantAfterToolResult?: boolean | undefined;
|
|
1899
|
+
requiresNonNullAssistantContent?: boolean | undefined;
|
|
1900
|
+
requiresToolsWithToolHistory?: boolean | undefined;
|
|
1851
1901
|
requiresThinkingAsText?: boolean | undefined;
|
|
1852
1902
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1853
1903
|
thinkingFormat?: "ant-ling" | "baseten" | "chat-template" | "deepseek" | "openai" | "openrouter" | "qwen" | "qwen-chat-template" | "string-thinking" | "together" | "zai" | undefined;
|
|
@@ -1914,6 +1964,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1914
1964
|
allowEmptySignature?: boolean | undefined;
|
|
1915
1965
|
supportsStrictTools?: boolean | undefined;
|
|
1916
1966
|
supportsMidConvoToolChanges?: boolean | undefined;
|
|
1967
|
+
supportsMessageThreads?: boolean | undefined;
|
|
1917
1968
|
allowedFallbackModels?: {
|
|
1918
1969
|
provider: string;
|
|
1919
1970
|
model: string;
|
|
@@ -1936,6 +1987,7 @@ export declare const ModelsJsonSchemas: {
|
|
|
1936
1987
|
supportsDeveloperRole?: boolean | undefined;
|
|
1937
1988
|
supportsMidConvoSystemMessages?: boolean | undefined;
|
|
1938
1989
|
sessionAffinityFormat?: "openai" | "openai-nosession" | "openrouter" | undefined;
|
|
1990
|
+
promptCacheKeyMode?: "auto" | "disabled" | "enabled" | undefined;
|
|
1939
1991
|
supportsMidConvoEffort?: boolean | undefined;
|
|
1940
1992
|
supportsLongCacheRetention?: boolean | undefined;
|
|
1941
1993
|
supportsStrictMode?: boolean | undefined;
|
|
@@ -8,43 +8,44 @@ import { isValidThinkingLevel } from "../cli/args.js";
|
|
|
8
8
|
import { DEFAULT_THINKING_LEVEL } from "./defaults.js";
|
|
9
9
|
/** Default chat model IDs for providers with built-in chat models. */
|
|
10
10
|
export const defaultModelPerProvider = {
|
|
11
|
-
"amazon-bedrock": "us.anthropic.claude-opus-
|
|
11
|
+
"amazon-bedrock": "us.anthropic.claude-opus-5-5",
|
|
12
12
|
"ant-ling": "Ring-2.6-1T",
|
|
13
|
-
anthropic: "claude-opus-
|
|
13
|
+
anthropic: "claude-opus-5-5",
|
|
14
14
|
openai: "gpt-6.1-sol",
|
|
15
|
-
azure: "gpt-
|
|
15
|
+
azure: "gpt-6.1-sol",
|
|
16
16
|
"openai-codex": "gpt-6.1-sol",
|
|
17
17
|
radius: "balanced",
|
|
18
18
|
nvidia: "nvidia/nemotron-3.5-super-vl-120b-a12b",
|
|
19
19
|
deepseek: "deepseek-v4-pro",
|
|
20
|
-
google: "gemini-
|
|
21
|
-
"google-vertex": "gemini-
|
|
20
|
+
google: "gemini-4-argon",
|
|
21
|
+
"google-vertex": "gemini-4-argon",
|
|
22
22
|
"github-copilot": "gpt-6.1-sol",
|
|
23
|
-
openrouter: "moonshotai/kimi-k2.
|
|
24
|
-
"vercel-ai-gateway": "zai/glm-5.
|
|
23
|
+
openrouter: "moonshotai/kimi-k2.7-code",
|
|
24
|
+
"vercel-ai-gateway": "zai/glm-5.3",
|
|
25
25
|
xai: "grok-4.7",
|
|
26
26
|
groq: "openai/gpt-oss-120b",
|
|
27
27
|
cerebras: "gpt-oss-120b",
|
|
28
28
|
zai: "glm-5.3",
|
|
29
29
|
"zai-coding-cn": "glm-5.3",
|
|
30
30
|
mistral: "devstral-medium-latest",
|
|
31
|
-
minimax: "MiniMax-
|
|
32
|
-
"minimax-cn": "MiniMax-
|
|
33
|
-
moonshotai: "kimi-k2.
|
|
34
|
-
"moonshotai-cn": "kimi-k2.
|
|
35
|
-
huggingface: "moonshotai/Kimi-K2.
|
|
31
|
+
minimax: "MiniMax-M3",
|
|
32
|
+
"minimax-cn": "MiniMax-M3",
|
|
33
|
+
moonshotai: "kimi-k2.7-code",
|
|
34
|
+
"moonshotai-cn": "kimi-k2.7-code",
|
|
35
|
+
huggingface: "moonshotai/Kimi-K2.7-Code",
|
|
36
36
|
fireworks: "accounts/fireworks/models/kimi-k3",
|
|
37
37
|
together: "moonshotai/Kimi-K3",
|
|
38
|
-
baseten: "zai-org/GLM-5.
|
|
39
|
-
opencode: "kimi-k2.
|
|
40
|
-
"opencode-go": "kimi-k3",
|
|
38
|
+
baseten: "zai-org/GLM-5.3",
|
|
39
|
+
opencode: "kimi-k2.7-code",
|
|
40
|
+
"opencode-go": "kimi-k3.1-pro",
|
|
41
41
|
"kimi-coding": "kimi-for-coding",
|
|
42
42
|
meta: "muse-spark-1.3",
|
|
43
|
-
"cloudflare-workers-ai": "@cf/moonshotai/kimi-k2.
|
|
44
|
-
"cloudflare-ai-gateway": "workers-ai/@cf/moonshotai/kimi-k2.
|
|
45
|
-
"qwen-token-plan": "qwen3.
|
|
46
|
-
"qwen-token-plan-cn": "qwen3.
|
|
43
|
+
"cloudflare-workers-ai": "@cf/moonshotai/kimi-k2.7-code",
|
|
44
|
+
"cloudflare-ai-gateway": "workers-ai/@cf/moonshotai/kimi-k2.7-code",
|
|
45
|
+
"qwen-token-plan": "qwen3.8-max",
|
|
46
|
+
"qwen-token-plan-cn": "qwen3.8-max",
|
|
47
47
|
"qwen-token-plan-individual": "qwen3.8-max",
|
|
48
|
+
"qwen-token-plan-individual-cn": "qwen3.8-max",
|
|
48
49
|
xiaomi: "mimo-v2.6-pro",
|
|
49
50
|
"xiaomi-token-plan-cn": "mimo-v2.6-pro",
|
|
50
51
|
"xiaomi-token-plan-ams": "mimo-v2.6-pro",
|
|
@@ -92,6 +92,11 @@ export declare class ModelRuntime implements Models {
|
|
|
92
92
|
private synchronizeCredentialState;
|
|
93
93
|
setRuntimeApiKey(providerId: string, apiKey: string, options?: AuthOperationOptions): Promise<void>;
|
|
94
94
|
removeRuntimeApiKey(providerId: string, options?: AuthOperationOptions): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Wait until credential writes already in progress finish, such as an OAuth refresh started by a
|
|
97
|
+
* background catalog refresh. Call before the process exits so a rotated token is not lost.
|
|
98
|
+
*/
|
|
99
|
+
settleCredentialWrites(): Promise<void>;
|
|
95
100
|
listCredentials(options?: AuthOperationOptions): Promise<readonly CredentialInfo[]>;
|
|
96
101
|
getProviderAuthStatus(providerId: string): AuthStatus;
|
|
97
102
|
private prepareRequest;
|
|
@@ -435,6 +435,13 @@ export class ModelRuntime {
|
|
|
435
435
|
await this.synchronizeCredentialState(providerId, "removeRuntimeApiKey", undefined, signal);
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Wait until credential writes already in progress finish, such as an OAuth refresh started by a
|
|
440
|
+
* background catalog refresh. Call before the process exits so a rotated token is not lost.
|
|
441
|
+
*/
|
|
442
|
+
settleCredentialWrites() {
|
|
443
|
+
return this.credentials.settled();
|
|
444
|
+
}
|
|
438
445
|
listCredentials(options) {
|
|
439
446
|
return this.credentials.list(options);
|
|
440
447
|
}
|
|
@@ -489,7 +496,7 @@ export class ModelRuntime {
|
|
|
489
496
|
assertChatModel(model);
|
|
490
497
|
const prepared = await this.prepareRequest(model, options);
|
|
491
498
|
return prepared.provider.stream(prepared.model, transcript, prepared.options);
|
|
492
|
-
});
|
|
499
|
+
}, undefined, options?.signal);
|
|
493
500
|
}
|
|
494
501
|
complete(model, context, options) {
|
|
495
502
|
return this.stream(model, context, options).result();
|
|
@@ -513,13 +520,13 @@ export class ModelRuntime {
|
|
|
513
520
|
const { apiKey, headers, env, ...rest } = options ?? {};
|
|
514
521
|
const auth = route.model.provider === model.provider ? { apiKey, headers, env } : {};
|
|
515
522
|
return this.streamSimple(route.model, context, { ...rest, ...auth, maxTokens, reasoning });
|
|
516
|
-
});
|
|
523
|
+
}, undefined, options?.signal);
|
|
517
524
|
}
|
|
518
525
|
return lazyStream(model, async () => {
|
|
519
526
|
assertChatModel(model);
|
|
520
527
|
const prepared = await this.prepareRequest(model, options);
|
|
521
528
|
return prepared.provider.streamSimple(prepared.model, transcript, prepared.options);
|
|
522
|
-
});
|
|
529
|
+
}, undefined, options?.signal);
|
|
523
530
|
}
|
|
524
531
|
completeSimple(model, context, options) {
|
|
525
532
|
return this.streamSimple(model, context, options).result();
|
|
@@ -532,7 +539,7 @@ export class ModelRuntime {
|
|
|
532
539
|
throw new ModelsError("provider", `Provider ${model.provider} does not support deferred responses`);
|
|
533
540
|
}
|
|
534
541
|
return prepared.provider.fetchDeferred(prepared.model, handle, prepared.options);
|
|
535
|
-
});
|
|
542
|
+
}, undefined, options?.signal);
|
|
536
543
|
}
|
|
537
544
|
async fetchDeferred(model, handle, options) {
|
|
538
545
|
return this.streamDeferred(model, handle, options).result();
|