@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
|
@@ -9,12 +9,14 @@ import "node:child_process";
|
|
|
9
9
|
import "node:crypto";
|
|
10
10
|
import "node:events";
|
|
11
11
|
import "node:os";
|
|
12
|
-
import "./agent
|
|
13
|
-
import "./workflowPresets-
|
|
12
|
+
import "./agent--Q7N17bY.js";
|
|
13
|
+
import "./workflowPresets-CuLnfQqa.js";
|
|
14
14
|
import "node:fs/promises";
|
|
15
15
|
import "node:zlib";
|
|
16
|
+
import "@earendil-works/pi-ai";
|
|
16
17
|
import "@earendil-works/pi-coding-agent";
|
|
17
18
|
import "yaml";
|
|
19
|
+
import "node:string_decoder";
|
|
18
20
|
import "node:util";
|
|
19
21
|
import "node:buffer";
|
|
20
22
|
import "node:dns/promises";
|
|
@@ -22,9 +24,8 @@ import "@mozilla/readability";
|
|
|
22
24
|
import "linkedom";
|
|
23
25
|
import "turndown";
|
|
24
26
|
import "node:http";
|
|
25
|
-
import "@earendil-works/pi-ai";
|
|
26
27
|
import "tweetnacl";
|
|
27
|
-
import "./manifest-
|
|
28
|
+
import "./manifest-BvEa5QR3.js";
|
|
28
29
|
import "@earendil-works/pi-mcp/oauth";
|
|
29
30
|
import "node:stream/promises";
|
|
30
31
|
import "better-sqlite3";
|
|
@@ -153,4 +154,4 @@ export {
|
|
|
153
154
|
hasPackagedAddon,
|
|
154
155
|
llamaCppVersion
|
|
155
156
|
};
|
|
156
|
-
//# sourceMappingURL=gpuBackendInstall-
|
|
157
|
+
//# sourceMappingURL=gpuBackendInstall-P7COXJlD.js.map
|
|
@@ -5,7 +5,7 @@ import { randomUUID } from "node:crypto";
|
|
|
5
5
|
import { EventEmitter, once } from "node:events";
|
|
6
6
|
import http2 from "node:http2";
|
|
7
7
|
import { PassThrough } from "node:stream";
|
|
8
|
-
import { a as emptyUsage } from "./workflowPresets-
|
|
8
|
+
import { a as emptyUsage } from "./workflowPresets-CuLnfQqa.js";
|
|
9
9
|
const CURSOR_CLIENT_VERSION = process.env.PI_CURSOR_CLIENT_VERSION || "cli-2026.07.23-e383d2b";
|
|
10
10
|
const MAX_BRIDGE_MESSAGE_BYTES = 64 * 1024 * 1024;
|
|
11
11
|
const MAX_ERROR_BODY_BYTES = 1024 * 1024;
|
|
@@ -985,4 +985,4 @@ export {
|
|
|
985
985
|
isCursorModel as i,
|
|
986
986
|
loadCursorProvider as l
|
|
987
987
|
};
|
|
988
|
-
//# sourceMappingURL=loadProvider-
|
|
988
|
+
//# sourceMappingURL=loadProvider-DvvFIF6F.js.map
|
|
@@ -1,4 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as pluginToolName, a0 as isReservedAgentTypeName, a1 as BUILTIN_AGENT_TYPES, V as THINKING_LEVELS, bv as isWorkflowPresetId, bw as PLUGIN_EVENTS, bx as isInterceptEvent, by as APPEND_ONLY_INTERCEPT_EVENTS } from "./agent--Q7N17bY.js";
|
|
2
|
+
const STATUS_TONES = ["neutral", "accent", "success", "warning", "danger"];
|
|
3
|
+
const MAX_STATUS_TEXT = 24;
|
|
4
|
+
const MAX_STATUS_TOOLTIP = 200;
|
|
5
|
+
const MAX_STATUS_ITEMS = 8;
|
|
6
|
+
const PATCH_KEYS = /* @__PURE__ */ new Set(["text", "tooltip", "tone", "visible"]);
|
|
7
|
+
function parseStatusPatch(raw) {
|
|
8
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return null;
|
|
9
|
+
const record = raw;
|
|
10
|
+
if (Object.keys(record).some((key) => !PATCH_KEYS.has(key))) return null;
|
|
11
|
+
const patch = {};
|
|
12
|
+
if (record.text !== void 0) {
|
|
13
|
+
if (typeof record.text !== "string") return null;
|
|
14
|
+
patch.text = record.text.slice(0, MAX_STATUS_TEXT);
|
|
15
|
+
}
|
|
16
|
+
if (record.tooltip !== void 0) {
|
|
17
|
+
if (typeof record.tooltip !== "string") return null;
|
|
18
|
+
patch.tooltip = record.tooltip.slice(0, MAX_STATUS_TOOLTIP);
|
|
19
|
+
}
|
|
20
|
+
if (record.tone !== void 0) {
|
|
21
|
+
if (!STATUS_TONES.includes(record.tone)) return null;
|
|
22
|
+
patch.tone = record.tone;
|
|
23
|
+
}
|
|
24
|
+
if (record.visible !== void 0) {
|
|
25
|
+
if (typeof record.visible !== "boolean") return null;
|
|
26
|
+
patch.visible = record.visible;
|
|
27
|
+
}
|
|
28
|
+
return patch;
|
|
29
|
+
}
|
|
30
|
+
function mergeStatusItems(declared, state) {
|
|
31
|
+
return declared.map((item) => {
|
|
32
|
+
const patch = Object.hasOwn(state, item.id) ? state[item.id] : void 0;
|
|
33
|
+
const tooltip = patch?.tooltip ?? item.tooltip;
|
|
34
|
+
return {
|
|
35
|
+
id: item.id,
|
|
36
|
+
text: patch?.text ?? item.text,
|
|
37
|
+
...tooltip !== void 0 ? { tooltip } : {},
|
|
38
|
+
tone: patch?.tone ?? "neutral",
|
|
39
|
+
visible: patch?.visible ?? true,
|
|
40
|
+
...item.command !== void 0 ? { command: item.command } : {}
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
}
|
|
2
44
|
const EXTENSION_PLUGIN_PERMISSIONS = [
|
|
3
45
|
"agent.tool",
|
|
4
46
|
"ui.slot",
|
|
@@ -23,10 +65,25 @@ const EXTENSION_PLUGIN_PERMISSIONS = [
|
|
|
23
65
|
"session.create"
|
|
24
66
|
];
|
|
25
67
|
const PLUGIN_TRIGGER_SYMBOLS = ["#"];
|
|
68
|
+
const KEY_NAME = /^(?:[a-z0-9]|f(?:[1-9]|1[0-2])|[,./;'[\]\\=`-]|arrow(?:up|down|left|right)|enter|space|tab|backspace|delete|home|end|pageup|pagedown)$/;
|
|
69
|
+
function isPluginKeyBinding(value) {
|
|
70
|
+
if (typeof value !== "string") return false;
|
|
71
|
+
const parts = value.split("+");
|
|
72
|
+
const key = parts.pop() ?? "";
|
|
73
|
+
const order = ["mod", "ctrl", "alt", "shift"];
|
|
74
|
+
let last = -1;
|
|
75
|
+
for (const part of parts) {
|
|
76
|
+
const at = order.indexOf(part);
|
|
77
|
+
if (at <= last) return false;
|
|
78
|
+
last = at;
|
|
79
|
+
}
|
|
80
|
+
return parts.some((part) => part !== "shift") && KEY_NAME.test(key);
|
|
81
|
+
}
|
|
26
82
|
const PLUGIN_CONFIG_TYPES = ["string", "number", "boolean", "enum", "path"];
|
|
27
83
|
const ID = /^[a-z][a-z0-9]*(\.[a-z0-9]+)+$/;
|
|
28
84
|
const TOOL = /^[a-z][a-z0-9_]*$/;
|
|
29
85
|
const LOCAL_ID = /^[a-z][a-z0-9-]{0,31}$/;
|
|
86
|
+
const FILE_SUFFIX = /^\.[a-z0-9][a-z0-9_-]*(\.[a-z0-9][a-z0-9_-]*)*$/;
|
|
30
87
|
const DOMAIN = /^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;
|
|
31
88
|
const ENGINE = /^>=(\d+)\.(\d+)\.(\d+)$/;
|
|
32
89
|
const METHOD = /^[A-Za-z][A-Za-z0-9_.-]{0,63}$/;
|
|
@@ -259,9 +316,14 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
259
316
|
uniqueIds(agentTools, "工具");
|
|
260
317
|
const commands = [];
|
|
261
318
|
for (const cmd of list("commands")) {
|
|
262
|
-
if (!isRecord(cmd) || typeof cmd.id !== "string" || !LOCAL_ID.test(cmd.id) || !isNonEmptyString(cmd.title, 60))
|
|
319
|
+
if (!isRecord(cmd) || typeof cmd.id !== "string" || !LOCAL_ID.test(cmd.id) || !isNonEmptyString(cmd.title, 60) || cmd.key !== void 0 && !isPluginKeyBinding(cmd.key))
|
|
263
320
|
errors.push("命令不合法");
|
|
264
|
-
else
|
|
321
|
+
else
|
|
322
|
+
commands.push({
|
|
323
|
+
id: cmd.id,
|
|
324
|
+
title: cmd.title,
|
|
325
|
+
...cmd.key !== void 0 ? { key: cmd.key } : {}
|
|
326
|
+
});
|
|
265
327
|
}
|
|
266
328
|
uniqueIds(commands, "命令");
|
|
267
329
|
const views = [];
|
|
@@ -271,6 +333,37 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
271
333
|
else views.push({ id: v.id, title: v.title, entry: v.entry });
|
|
272
334
|
}
|
|
273
335
|
uniqueIds(views, "侧栏页面");
|
|
336
|
+
const fileViewers = [];
|
|
337
|
+
for (const v of list("fileViewers")) {
|
|
338
|
+
if (!isRecord(v) || typeof v.id !== "string" || !LOCAL_ID.test(v.id) || !isNonEmptyString(v.title, 40) || !isPluginRelativePath(v.entry) || !v.entry.endsWith(".html") || !Array.isArray(v.extensions) || v.extensions.length === 0 || v.extensions.length > 32 || !v.extensions.every(
|
|
339
|
+
(ext) => typeof ext === "string" && ext.length <= 32 && FILE_SUFFIX.test(ext)
|
|
340
|
+
) || v.default !== void 0 && typeof v.default !== "boolean")
|
|
341
|
+
errors.push("文件查看器不合法");
|
|
342
|
+
else
|
|
343
|
+
fileViewers.push({
|
|
344
|
+
id: v.id,
|
|
345
|
+
title: v.title,
|
|
346
|
+
entry: v.entry,
|
|
347
|
+
extensions: [...new Set(v.extensions)],
|
|
348
|
+
default: v.default === true
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
uniqueIds(fileViewers, "文件查看器");
|
|
352
|
+
const statusItems = [];
|
|
353
|
+
const statusRaw = list("statusItems");
|
|
354
|
+
if (statusRaw.length > MAX_STATUS_ITEMS) errors.push(`statusItems 最多 ${MAX_STATUS_ITEMS} 个`);
|
|
355
|
+
for (const s of statusRaw.slice(0, MAX_STATUS_ITEMS)) {
|
|
356
|
+
if (!isRecord(s) || typeof s.id !== "string" || !LOCAL_ID.test(s.id) || !isNonEmptyString(s.text, MAX_STATUS_TEXT) || s.tooltip !== void 0 && !isNonEmptyString(s.tooltip, MAX_STATUS_TOOLTIP) || s.command !== void 0 && (typeof s.command !== "string" || !commands.some((c2) => c2.id === s.command)))
|
|
357
|
+
errors.push("状态项不合法");
|
|
358
|
+
else
|
|
359
|
+
statusItems.push({
|
|
360
|
+
id: s.id,
|
|
361
|
+
text: s.text,
|
|
362
|
+
...s.tooltip !== void 0 ? { tooltip: s.tooltip } : {},
|
|
363
|
+
...s.command !== void 0 ? { command: s.command } : {}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
uniqueIds(statusItems, "状态项");
|
|
274
367
|
const themes = [];
|
|
275
368
|
for (const theme of list("themes")) {
|
|
276
369
|
if (!isRecord(theme) || typeof theme.id !== "string" || !LOCAL_ID.test(theme.id) || !isNonEmptyString(theme.name, 40) || !isPluginRelativePath(theme.path) || !theme.path.endsWith(".json") || theme.css !== void 0 && (!isPluginRelativePath(theme.css) || !theme.css.endsWith(".css")))
|
|
@@ -296,6 +389,15 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
296
389
|
"contributes.skills",
|
|
297
390
|
(p) => isPluginRelativePath(p) && p !== "."
|
|
298
391
|
);
|
|
392
|
+
const workflows = stringList(
|
|
393
|
+
contrib.workflows,
|
|
394
|
+
"contributes.workflows",
|
|
395
|
+
(p) => isPluginRelativePath(p) && isWorkflowPresetId(workflowFileId(p))
|
|
396
|
+
);
|
|
397
|
+
uniqueIds(
|
|
398
|
+
workflows.map((p) => ({ id: workflowFileId(p) })),
|
|
399
|
+
"workflow 预设"
|
|
400
|
+
);
|
|
299
401
|
const mcpServers = [];
|
|
300
402
|
for (const s of list("mcpServers")) {
|
|
301
403
|
const env2 = isRecord(s) && s.env !== void 0 ? s.env : {};
|
|
@@ -387,6 +489,11 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
387
489
|
);
|
|
388
490
|
if (Array.isArray(item.agentTypes) && item.agentTypes.some((name) => !agentTypes.some((type) => type.name === name)))
|
|
389
491
|
errors.push(`预设 ${item.id} 引用了未声明的子代理类型`);
|
|
492
|
+
const presetWorkflows = stringList(
|
|
493
|
+
item.workflows,
|
|
494
|
+
`预设 ${item.id} 的 workflows`,
|
|
495
|
+
(p) => typeof p === "string" && workflows.includes(p)
|
|
496
|
+
);
|
|
390
497
|
const instruction = promptPath(item.instruction, `预设 ${item.id} 的指令`);
|
|
391
498
|
const systemPrompt = promptPath(item.systemPrompt, `预设 ${item.id} 的角色描述`);
|
|
392
499
|
const systemPromptTail = promptPath(item.systemPromptTail, `预设 ${item.id} 的真尾`);
|
|
@@ -414,6 +521,7 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
414
521
|
skills: presetSkills,
|
|
415
522
|
mcpServers: presetMcp,
|
|
416
523
|
...presetAgentTypes.length > 0 ? { agentTypes: presetAgentTypes } : {},
|
|
524
|
+
...presetWorkflows.length > 0 ? { workflows: presetWorkflows } : {},
|
|
417
525
|
...instruction ? { instruction } : {},
|
|
418
526
|
...systemPrompt ? { systemPrompt } : {},
|
|
419
527
|
...systemPromptTail ? { systemPromptTail } : {},
|
|
@@ -438,9 +546,12 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
438
546
|
const configRaw = list("configuration");
|
|
439
547
|
if (configRaw.length > MAX_CONFIG_ITEMS) errors.push(`配置项最多 ${MAX_CONFIG_ITEMS} 个`);
|
|
440
548
|
for (const c2 of configRaw) {
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
|
|
549
|
+
const reasons = [];
|
|
550
|
+
const field = parseConfigField(c2, reasons);
|
|
551
|
+
if (!field) {
|
|
552
|
+
const name = isRecord(c2) ? String(c2.key) : "";
|
|
553
|
+
errors.push(`配置项不合法:${name}${reasons.length > 0 ? `(${reasons.join(";")})` : ""}`);
|
|
554
|
+
} else configuration.push(field);
|
|
444
555
|
}
|
|
445
556
|
uniqueIds(
|
|
446
557
|
configuration.map((c2) => ({ id: c2.key })),
|
|
@@ -525,6 +636,7 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
525
636
|
need(renderer !== void 0, "ui.slot", "renderer");
|
|
526
637
|
need(triggers.length > 0, "ui.slot", "triggers");
|
|
527
638
|
need(views.length > 0, "ui.view", "views");
|
|
639
|
+
need(fileViewers.length > 0, "ui.view", "fileViewers");
|
|
528
640
|
need(mcpServers.length > 0, "mcp.server", "mcpServers");
|
|
529
641
|
need(fs.read.length > 0, "fs.read", "fs.read");
|
|
530
642
|
need(fs.write.length > 0, "fs.write", "fs.write");
|
|
@@ -559,9 +671,12 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
559
671
|
agentTools,
|
|
560
672
|
commands,
|
|
561
673
|
views,
|
|
674
|
+
fileViewers,
|
|
675
|
+
statusItems,
|
|
562
676
|
triggers,
|
|
563
677
|
skills,
|
|
564
678
|
mcpServers,
|
|
679
|
+
workflows,
|
|
565
680
|
methods,
|
|
566
681
|
configuration,
|
|
567
682
|
presets,
|
|
@@ -575,6 +690,10 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
575
690
|
}
|
|
576
691
|
};
|
|
577
692
|
}
|
|
693
|
+
function workflowFileId(path) {
|
|
694
|
+
const name = path.slice(path.lastIndexOf("/") + 1);
|
|
695
|
+
return name.endsWith(".js") ? name.slice(0, -3) : "";
|
|
696
|
+
}
|
|
578
697
|
function parseEventSubscription(raw) {
|
|
579
698
|
if (!isRecord(raw) || !PLUGIN_EVENTS.includes(raw.event)) return null;
|
|
580
699
|
const event = raw.event;
|
|
@@ -583,6 +702,8 @@ function parseEventSubscription(raw) {
|
|
|
583
702
|
if (mode === "intercept" && !isInterceptEvent(event)) return null;
|
|
584
703
|
if (raw.failClosed !== void 0 && (typeof raw.failClosed !== "boolean" || mode !== "intercept"))
|
|
585
704
|
return null;
|
|
705
|
+
if (raw.failClosed === true && APPEND_ONLY_INTERCEPT_EVENTS.includes(event))
|
|
706
|
+
return null;
|
|
586
707
|
let tools;
|
|
587
708
|
if (raw.tools !== void 0) {
|
|
588
709
|
if (event !== "tool_call" && event !== "tool_result") return null;
|
|
@@ -592,13 +713,45 @@ function parseEventSubscription(raw) {
|
|
|
592
713
|
}
|
|
593
714
|
return { event, mode, failClosed: raw.failClosed === true, ...tools ? { tools } : {} };
|
|
594
715
|
}
|
|
595
|
-
function parseConfigField(c) {
|
|
596
|
-
if (!isRecord(c)
|
|
716
|
+
function parseConfigField(c, reasons = []) {
|
|
717
|
+
if (!isRecord(c)) {
|
|
718
|
+
reasons.push("必须是对象");
|
|
719
|
+
return null;
|
|
720
|
+
}
|
|
721
|
+
if (typeof c.key !== "string") {
|
|
722
|
+
reasons.push("key 必须是字符串");
|
|
723
|
+
return null;
|
|
724
|
+
}
|
|
725
|
+
if (!CONFIG_KEY.test(c.key)) {
|
|
726
|
+
reasons.push("key 必须以字母开头,只含字母数字下划线,最长 32");
|
|
727
|
+
return null;
|
|
728
|
+
}
|
|
729
|
+
if (!isNonEmptyString(c.title, 60)) {
|
|
730
|
+
reasons.push("title 必须是非空字符串,最长 60");
|
|
731
|
+
return null;
|
|
732
|
+
}
|
|
733
|
+
if (c.description !== void 0 && !isNonEmptyString(c.description, 500)) {
|
|
734
|
+
reasons.push("description 必须是非空字符串,最长 500");
|
|
735
|
+
return null;
|
|
736
|
+
}
|
|
737
|
+
if (c.secret !== void 0 && typeof c.secret !== "boolean") {
|
|
738
|
+
reasons.push("secret 必须是布尔值");
|
|
597
739
|
return null;
|
|
740
|
+
}
|
|
598
741
|
const type = c.type ?? "string";
|
|
599
|
-
if (!PLUGIN_CONFIG_TYPES.includes(type))
|
|
742
|
+
if (!PLUGIN_CONFIG_TYPES.includes(type)) {
|
|
743
|
+
reasons.push(`type 只能是 ${PLUGIN_CONFIG_TYPES.join("、")}`);
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
600
746
|
const secret = c.secret === true;
|
|
601
|
-
if (secret && type !== "string")
|
|
747
|
+
if (secret && type !== "string") {
|
|
748
|
+
reasons.push("secret 只能用在 string 类型上");
|
|
749
|
+
return null;
|
|
750
|
+
}
|
|
751
|
+
if (c.multiline !== void 0 && typeof c.multiline !== "boolean") {
|
|
752
|
+
reasons.push("multiline 必须是布尔值");
|
|
753
|
+
return null;
|
|
754
|
+
}
|
|
602
755
|
const field = {
|
|
603
756
|
key: c.key,
|
|
604
757
|
title: c.title,
|
|
@@ -607,22 +760,45 @@ function parseConfigField(c) {
|
|
|
607
760
|
type
|
|
608
761
|
};
|
|
609
762
|
const has = (k) => c[k] !== void 0;
|
|
610
|
-
const only = (...allowed) =>
|
|
763
|
+
const only = (...allowed) => {
|
|
764
|
+
const extra = ["default", "options", "min", "max", "pathKind", "multiline"].filter(
|
|
765
|
+
(k) => !allowed.includes(k) && has(k)
|
|
766
|
+
);
|
|
767
|
+
if (extra.length === 0) return true;
|
|
768
|
+
reasons.push(`${String(type)} 类型不支持 ${extra.join("、")}`);
|
|
769
|
+
return false;
|
|
770
|
+
};
|
|
611
771
|
switch (type) {
|
|
612
772
|
case "string":
|
|
613
|
-
if (!only("default"
|
|
773
|
+
if (!only("default", "multiline")) return null;
|
|
774
|
+
if (has("default") && !isNonEmptyString(c.default, 4096)) {
|
|
775
|
+
reasons.push("default 必须是非空字符串,最长 4096");
|
|
776
|
+
return null;
|
|
777
|
+
}
|
|
614
778
|
if (has("default")) field.default = c.default;
|
|
779
|
+
if (c.multiline === true) field.multiline = true;
|
|
615
780
|
return field;
|
|
616
781
|
case "number": {
|
|
617
782
|
if (!only("default", "min", "max")) return null;
|
|
618
783
|
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
619
|
-
if (has("min") && !finite(c.min) || has("max") && !finite(c.max))
|
|
620
|
-
|
|
784
|
+
if (has("min") && !finite(c.min) || has("max") && !finite(c.max)) {
|
|
785
|
+
reasons.push("min 和 max 必须是有限数字");
|
|
786
|
+
return null;
|
|
787
|
+
}
|
|
788
|
+
if (has("min") && has("max") && c.min > c.max) {
|
|
789
|
+
reasons.push("min 不能大于 max");
|
|
790
|
+
return null;
|
|
791
|
+
}
|
|
621
792
|
if (has("default")) {
|
|
622
|
-
if (!finite(c.default))
|
|
793
|
+
if (!finite(c.default)) {
|
|
794
|
+
reasons.push("default 必须是有限数字");
|
|
795
|
+
return null;
|
|
796
|
+
}
|
|
623
797
|
const d = c.default;
|
|
624
|
-
if (has("min") && d < c.min || has("max") && d > c.max)
|
|
798
|
+
if (has("min") && d < c.min || has("max") && d > c.max) {
|
|
799
|
+
reasons.push("default 必须落在 min 和 max 之间");
|
|
625
800
|
return null;
|
|
801
|
+
}
|
|
626
802
|
field.default = d;
|
|
627
803
|
}
|
|
628
804
|
if (has("min")) field.min = c.min;
|
|
@@ -630,22 +806,42 @@ function parseConfigField(c) {
|
|
|
630
806
|
return field;
|
|
631
807
|
}
|
|
632
808
|
case "boolean":
|
|
633
|
-
if (!only("default")
|
|
809
|
+
if (!only("default")) return null;
|
|
810
|
+
if (has("default") && typeof c.default !== "boolean") {
|
|
811
|
+
reasons.push("default 必须是布尔值");
|
|
812
|
+
return null;
|
|
813
|
+
}
|
|
634
814
|
if (has("default")) field.default = c.default;
|
|
635
815
|
return field;
|
|
636
816
|
case "enum": {
|
|
637
817
|
if (!only("default", "options")) return null;
|
|
638
818
|
const options = c.options;
|
|
639
|
-
if (!Array.isArray(options) || options.length === 0 || options.length > 50
|
|
819
|
+
if (!Array.isArray(options) || options.length === 0 || options.length > 50) {
|
|
820
|
+
reasons.push("options 必须是 1 到 50 项的数组");
|
|
821
|
+
return null;
|
|
822
|
+
}
|
|
823
|
+
if (!options.every((o) => isNonEmptyString(o, 200))) {
|
|
824
|
+
reasons.push("options 每一项都必须是非空字符串,最长 200");
|
|
640
825
|
return null;
|
|
641
|
-
|
|
826
|
+
}
|
|
827
|
+
if (new Set(options).size !== options.length) {
|
|
828
|
+
reasons.push("options 不能有重复项");
|
|
829
|
+
return null;
|
|
830
|
+
}
|
|
831
|
+
if (has("default") && !options.includes(c.default)) {
|
|
832
|
+
reasons.push("default 必须是 options 里的一项");
|
|
833
|
+
return null;
|
|
834
|
+
}
|
|
642
835
|
field.options = options;
|
|
643
836
|
if (has("default")) field.default = c.default;
|
|
644
837
|
return field;
|
|
645
838
|
}
|
|
646
839
|
default:
|
|
647
840
|
if (!only("pathKind")) return null;
|
|
648
|
-
if (has("pathKind") && c.pathKind !== "file" && c.pathKind !== "directory")
|
|
841
|
+
if (has("pathKind") && c.pathKind !== "file" && c.pathKind !== "directory") {
|
|
842
|
+
reasons.push("pathKind 只能是 file 或 directory");
|
|
843
|
+
return null;
|
|
844
|
+
}
|
|
649
845
|
field.pathKind = c.pathKind === "directory" ? "directory" : "file";
|
|
650
846
|
return field;
|
|
651
847
|
}
|
|
@@ -654,8 +850,10 @@ export {
|
|
|
654
850
|
MAX_TOOL_TIMEOUT_MS as M,
|
|
655
851
|
isNewerPluginVersion as a,
|
|
656
852
|
isPluginRelativePath as b,
|
|
853
|
+
parseExtensionPluginManifest as c,
|
|
657
854
|
enginesAllow as e,
|
|
658
855
|
isPluginId as i,
|
|
659
|
-
|
|
856
|
+
mergeStatusItems as m,
|
|
857
|
+
parseStatusPatch as p
|
|
660
858
|
};
|
|
661
|
-
//# sourceMappingURL=manifest-
|
|
859
|
+
//# sourceMappingURL=manifest-BvEa5QR3.js.map
|