@ensocode/server 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +117 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-MGNURJ72.js +6 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-4WDOP7MF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CCYGJPSU.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-H4W2F2IO.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-JLFZH7C6.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-LCB5FO32.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-LQUBM7HF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MABPTPMF.js +30 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MPEFJ3RP.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-PYBKJQVF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-VUPOM3AH.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-XM4MQFQV.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZKNSXGL5.js +1243 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-35W4A75E.js} +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-WKRH5HZA.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/codemode-worker.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/github-copilot.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-VSMFCHJU.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-35UTLZJN.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-Z3SS4FP4.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-LWJTUFIM.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-YYIXDJWF.js +10 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-X2I4TQ2L.js} +3 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-GG3FBAIF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-5CX3GG6R.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-WHNK2UQG.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-5CXWY5I7.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-KA2SBSSD.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-7ZY53V4K.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-command.js +26 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.d.ts +15 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.js +232 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.d.ts +14 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.js +57 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.d.ts +17 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.js +63 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts +5 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +7 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +25 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +139 -50
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +3 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.d.ts +4 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.js +11 -89
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +10 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +1 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +9 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +28 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.d.ts +12 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.js +42 -121
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-config.d.ts +52 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +20 -19
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.d.ts +5 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.js +11 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +10 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +50 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/pi-ai-schemas.d.ts +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.d.ts +17 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.js +24 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +18 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-composer.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.d.ts +6 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.js +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.d.ts +13 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.js +29 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/remote-catalog-provider.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.js +15 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +35 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.d.ts +23 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js +182 -41
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +8 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +82 -36
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts +5 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +87 -75
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/powershell.js +15 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +141 -25
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.d.ts +4 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +23 -29
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.js +4 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/tool.js +34 -12
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.d.ts +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.js +23 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/ui.js +15 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.d.ts +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js +49 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/config.js +4 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/index.js +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.d.ts +11 -49
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.js +56 -319
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.js +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.d.ts +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.js +7 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.d.ts +2 -23
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.js +6 -58
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/tool-search/tool.js +18 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/main.js +46 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +5 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js +10 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/diff.js +11 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +9 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +1 -18
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.d.ts +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.js +25 -20
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +14 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +10 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +32 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.d.ts +14 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.js +66 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.d.ts +1 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.js +6 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +1 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +19 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +11 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +110 -63
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +19 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +53 -23
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +39 -8
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js +12 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.js +24 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.d.ts +12 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.js +20 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/cli.md +14 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +27 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/keybindings.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +4 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/models-configuration.md +6 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/models.md +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +4 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/index.ts +23 -13
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/utils.ts +42 -16
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/README.md +14 -11
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/index.ts +392 -171
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/tsconfig.json +63 -35
- package/out/node_modules/@earendil-works/pi-coding-agent/package.json +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/schemas/models.schema.json +29 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/schemas/settings.schema.json +1 -1
- package/out/phone/assets/{abnfDiagram-VCTEODGH-CLgfII9z.js → abnfDiagram-VCTEODGH-6JYofuK8.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-D7mwyuxS.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-I2RDn32D.js → architectureDiagram-5GKGNRK7-BeLeAQB1.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-D5xNQZkS.js → blockDiagram-I7D4REHJ-uXn3vhT2.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-CRKpzdlA.js → c4Diagram-7LVT6UL2-CjzMFRll.js} +1 -1
- package/out/phone/assets/channel-BsGN1oT0.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-CcezrqKz.js → chunk-4HAMMTFA-BA8HaYy2.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-DDCXp4y1.js → chunk-75Z2AOVW-BhIfO9es.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-CjWveEkB.js → chunk-DU6HZSFF-BTLBHwj-.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-Bgl_xI02.js → chunk-F27PBJKO-CUw8NZk8.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-EmL8nOme.js → chunk-GMAD6QVW-bZOKnRyM.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-Dox_nphF.js → chunk-GVQU2GXP-B0WIm1dS.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-BapGpI4S.js → chunk-IMKFNOWR-DWND4rEr.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-Cq_UZI8A.js → chunk-L3NEJ4N5-DgMknY3k.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-2VVlErAd.js → chunk-OSK3NFVY-C5aEouov.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-Cci-G-p1.js → chunk-P2QGCYS3-D2ID3RxV.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-CJ47EOfE.js → chunk-POPQ4Y6H-C1lOuNpV.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-D9dLdFqC.js → chunk-PWAF6VOD-CfqWQZRE.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-BlGSiWZn.js → chunk-SHT3W25Y-p37Dlvn4.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-C0zdsa_A.js → chunk-SVP7TREG-CSSqW-zb.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-DAQW8nQU.js → chunk-TICWLB2K-Bse5ne4b.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-a1PUvjC2.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-a1PUvjC2.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-_zsx5mdV.js → cynefin-OW5HDTMX-BGQqPhYk.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-Cww-w0ex.js → cynefinDiagram-5FMLGOSQ-Cz3XWaxY.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-C0i7DPqX.js → dagre-GXQ25YYZ-CjAF6lSz.js} +1 -1
- package/out/phone/assets/desk-1McWacjU.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-Bx-G5hYz.js → diagram-S7CK7UJ4-B135cp5a.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DaTblkjV.js → diagram-UQ7AKVKN-C4pCe0fQ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-gmN2e1b4.js → diagram-VSXAHHWV-CYkCrin2.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-WYtRtOo8.js → diagram-VX7I27RA-CT_vufh_.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-Cr6uUB5B.js → diagram-Z3DM3KII-XEkkXu3P.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-BCicfvpA.js → ebnfDiagram-PWID7BFC-DfLyeXjw.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-B3QlJvfQ.js → erDiagram-RLTQ6QDP-pKNbKkAP.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-DcUsfQiW.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-sUobw8zi.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-LYy2mfCh.js → ganttDiagram-EL5Y4UJY-Df4E50Mj.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-dT22Z2jG.js → gitGraph-4MIJSDKK-CkjzZeFD.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DHNdY57l.js → gitGraphDiagram-WWUBYQGX-CBxfRAfy.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-nIu8NSOs.js → info-A6RAGUB7-CHFXa2pw.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-DGkWZIMT.js → infoDiagram-27XIBGKW-K0DnZhi4.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-C8EPXru-.js → ishikawaDiagram-5VMMS53U-DTQF2ZuR.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-Dyd9L3l3.js → journeyDiagram-3NMN7TZE-wBltkU2i.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-DehTYcsL.js → kanban-definition-UXKFOSKX-BZpcOajP.js} +1 -1
- package/out/phone/assets/{line-Db4SulF4.js → line-BflnZFgp.js} +1 -1
- package/out/phone/assets/main-CnA1zWP8.css +1 -0
- package/out/phone/assets/main-Crtf_g8h.js +1643 -0
- package/out/phone/assets/{mermaid-parser.core-D7h_8WV8.js → mermaid-parser.core-BiCTmcqa.js} +3 -3
- package/out/phone/assets/{mermaid.core-Dw_E5kj4.js → mermaid.core-D3TwYaLF.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-_5Mxqxsy.js → mindmap-definition-YA3MSWOX-Cz0aS_6Y.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-_cgeMDdN.js → packet-AYTQ26CC-DW-djbhd.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-BhBwaNEr.js → pegDiagram-XKGWAZYB-CE0sZZAE.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-BepY80_0.js → pie-WAS4IAKB-CKGFlXok.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CQQgqmI8.js → pieDiagram-E7YTZNPT-BrnQ32_6.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-DEEatC1J.js → quadrantDiagram-AXDQQJYC-BrxDAygB.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-BqsiI_qQ.js → radar-RG4KPBEZ-Bo2f5QyA.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-C_2pEUjD.js → railroad-74A4TZTK-BZEmm0Ha.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-CGiIT1ZV.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-C85Q3c0J.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-8qPPCLgU.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-B7786u7W.js → railroadDiagram-O6MQD6OU-BvOyUNMC.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-Ci3b5uwm.js → requirementDiagram-BXWQKSXE-T42N3TW5.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-PwT2gJjH.js → sankeyDiagram-P5KCCOFB-0us9ErVV.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-H6sgB5RI.js → sequenceDiagram-WJ2MYXX4-BMcYh2ll.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-BxyRe7OB.js → stateDiagram-D77RDMKH-CgP9dUc3.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-WM4CNSf-.js +1 -0
- package/out/phone/assets/storage-CahQ0cyN.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-DWT3f1Hk.js → swimlanes-42K2YHIH-VnE4ceCW.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-65AiMWVp.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-D67esSVY.js → timeline-definition-24CTP7MA-tH3izgae.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-BTIfu3Qr.js → treeView-Q6P3EWNA-CVFDOC7i.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-DkPf6LQc.js → treemap-WGGIJYW6-vmikHzt3.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-DRMRxJ4f.js → vennDiagram-4TSXK5OY-b8ttDCR-.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-hOvC_8-W.js → wardley-WFR3VGLG-D32vKoC1.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-a5aYRgrw.js → wardleyDiagram-VM6X3IG4-CMkaIPVH.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DXjoRFDL.js → xychartDiagram-S5SC5T6Z-pLYDcql3.js} +1 -1
- package/out/phone/desk.html +2 -2
- package/out/phone/index.html +3 -3
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-DhskujJf.js → abnfDiagram-VCTEODGH-N6OiVFQx.js} +1 -1
- package/out/renderer/assets/{arc-BcW67t47.js → arc-CXVc3U0J.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-D-x057Ia.js → architectureDiagram-5GKGNRK7-BT5CXpcQ.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-DR3sZkhW.js → blockDiagram-I7D4REHJ-C32Vqzip.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-CQ4lScWs.js → c4Diagram-7LVT6UL2-qjwL2BP8.js} +1 -1
- package/out/renderer/assets/channel-B1Cv56hA.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-CtT0yqF3.js → chunk-2Q5K7J3B-YC6CQiyD.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-DlCfddrY.js → chunk-5VM5RSS4-E-kluPz3.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-BAJ5dGzo.js → chunk-F27PBJKO-Bhx1_P75.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Dlah_YbP.js → chunk-IMKFNOWR-Dgb_730B.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-BiXd3nUZ.js → chunk-JWPE2WC7-COQNHw4u.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-Ch86i4EJ.js → chunk-POPQ4Y6H-CQz4hRgP.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-z3inDV-H.js → chunk-SVP7TREG-DGp9XQFd.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-B34A2AKD.js → chunk-TICWLB2K-CovR1uHr.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-Do_L0wRR.js → chunk-XXDRQBXY-gVmqSU5b.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-CDWgELaf.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-CDWgELaf.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-BQraKmgl.js → cose-bilkent-JH36ORCC-DD4PEqt_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-BwixoR4r.js → cynefin-OW5HDTMX-DNsYCrBx.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-BLTBma3J.js → cynefinDiagram-5FMLGOSQ-CoSzqs25.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-BRpJ5tyq.js → cytoscape-fcose-CV0MpCmk.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-aWsjA_wn.js → dagre-GXQ25YYZ-BxpTPeHN.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-Cur2zK4q.js → diagram-S7CK7UJ4-Df_OM1vW.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-DlrY8YcD.js → diagram-UQ7AKVKN-iovjmny_.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-BBdjreqR.js → diagram-VSXAHHWV-BMrwlcQx.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-XiWMdc8S.js → diagram-VX7I27RA-DqLh449X.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-CBB5leat.js → diagram-Z3DM3KII-CH_W77UO.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-nl8RPo8j.js → ebnfDiagram-PWID7BFC-yjzodXoL.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-C_oaG80x.js → erDiagram-RLTQ6QDP-DXxhvHYS.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-nDoVZFS7.js → flowDiagram-HODETNUW-b2AWCAaB.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DOrcuM3Q.js → ganttDiagram-EL5Y4UJY-COkyXL3K.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-D_DB3jro.js → gitGraphDiagram-WWUBYQGX-BYPqy5fh.js} +1 -1
- package/out/renderer/assets/globals-DX-8GWfJ.css +1 -0
- package/out/renderer/assets/{globals-D1ocHHQV.js → globals-y5_C1IiJ.js} +182 -176
- package/out/renderer/assets/index-CHJ6mVl2.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-BbBrANxo.js → infoDiagram-27XIBGKW-DNg-VxlH.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-7UlfWlWV.js → ishikawaDiagram-5VMMS53U-DProTI6a.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-CJP9bosH.js → journeyDiagram-3NMN7TZE-BWhC4n3f.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-D772kW7T.js → kanban-definition-UXKFOSKX-CHJRR0qi.js} +1 -1
- package/out/renderer/assets/{layout-BzVfJEvx.js → layout-D8t6q8k0.js} +1 -1
- package/out/renderer/assets/{linear-DBjhr05m.js → linear-Cxb1p4iF.js} +1 -1
- package/out/renderer/assets/{mermaid.core-CJpNSowm.js → mermaid.core-CFNOEUmc.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-C2oqlH5E.js → mindmap-definition-YA3MSWOX-Ba78cyY4.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-CcZ8Hae-.js → pegDiagram-XKGWAZYB-C7zqoWMk.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-DTw-_k2D.js → pieDiagram-E7YTZNPT-g304yFeX.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-D5eX0DO7.js → quadrantDiagram-AXDQQJYC-Bwn3gGTO.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DzpBB_Re.js → railroadDiagram-O6MQD6OU-DRetS8pv.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-UbOUXLgl.js → requirementDiagram-BXWQKSXE-CHz0FVZ7.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-jRbXLLsa.js → sankeyDiagram-P5KCCOFB-BYGRDIG9.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-s0WBQQPf.js → sequenceDiagram-WJ2MYXX4-B60RuFFk.js} +1 -1
- package/out/renderer/assets/settings-Cd128yRb.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-DvUs5rDx.js → sizeCapture-INFHLROL-CB-i3Fmz.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-C1_V497y.js → stateDiagram-D77RDMKH-CJOcikAJ.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-BosPi5SR.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-BulPeZ6y.js → swimlanes-42K2YHIH-Buap2upT.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B7TQEEbL.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-gQ5OygZn.js → timeline-definition-24CTP7MA-BdQta3QT.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-A8QyA5Ix.js → vennDiagram-4TSXK5OY-BynM2l28.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-CfP6E41T.js → wardleyDiagram-VM6X3IG4-FZjDO9FY.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DTG5UHh7.js → xychartDiagram-S5SC5T6Z-pJPSISxM.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/plugin-view.html +39 -0
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +1502 -370
- package/out/server/chunks/{agent-BhQn6jGA.js → agent--Q7N17bY.js} +356 -165
- package/out/server/chunks/{gpuBackendInstall-CdExgjGi.js → gpuBackendInstall-P7COXJlD.js} +6 -5
- package/out/server/chunks/{loadProvider-BnkyjMSW.js → loadProvider-DvvFIF6F.js} +2 -2
- package/out/server/chunks/{manifest-2odvnxjZ.js → manifest-BvEa5QR3.js} +125 -5
- package/out/server/chunks/{workflowPresets-DqSsjOj6.js → workflowPresets-CuLnfQqa.js} +3444 -448
- package/out/server/index.js +2719 -308
- package/out/server/plugin-host.js +7 -3
- package/package.json +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1234
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
- package/out/phone/assets/architecture-7GRP2DOG-CQOPTv6S.js +0 -1
- package/out/phone/assets/channel-DdXebl9x.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-BCctWEp1.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-BCctWEp1.js +0 -1
- package/out/phone/assets/desk-mfuEW2n4.js +0 -2
- package/out/phone/assets/eventmodeling-NTZA5JFV-BtfapP6M.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-BsyiyBtD.js +0 -1
- package/out/phone/assets/main-Dv9ve8mT.css +0 -1
- package/out/phone/assets/main-uMMbioCA.js +0 -1638
- package/out/phone/assets/railroad-abnf-HS5TGJTU-TmODpceI.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BTCjNR9u.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DjhKNo8j.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Cncmf_cL.js +0 -1
- package/out/phone/assets/storage-D9RW_4__.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-DAahG4fH.js +0 -8
- package/out/renderer/assets/channel-CudRig7z.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DL20WkD0.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DL20WkD0.js +0 -1
- package/out/renderer/assets/globals-Bkw7iiQG.css +0 -1
- package/out/renderer/assets/index-Cm5iq85v.js +0 -117
- package/out/renderer/assets/settings-DxYo7s4h.js +0 -34
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C9dfLXR8.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-LXwy6qGO.js +0 -8
|
@@ -1,48 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getProviderEnvValue } from "@earendil-works/pi-ai/utils/provider-env";
|
|
3
|
-
/** Streaming warming never continues past this long after the real request that started it. */
|
|
4
|
-
const MAX_WARMING_AGE_MS = 60 * 60_000;
|
|
5
|
-
/** Idle warming uses a shorter horizon because continuation estimates become less reliable with age. */
|
|
6
|
-
const MAX_IDLE_WARMING_AGE_MS = 30 * 60_000;
|
|
7
|
-
/** A refresh is sent only when it is expected to save at least this many dollars. */
|
|
8
|
-
const CACHE_WARMING_MINIMUM_EXPECTED_SAVINGS = 0.05;
|
|
9
|
-
/**
|
|
10
|
-
* Chance that a real request arrives before the cache entry expires while the
|
|
11
|
-
* agent sits idle. Measured from our own usage; per-session estimates were not
|
|
12
|
-
* better than this constant.
|
|
13
|
-
*/
|
|
14
|
-
const IDLE_CONTINUATION_PROBABILITY = 0.15;
|
|
15
|
-
/** Refresh at 90% of the TTL while preserving at least ten seconds of margin. */
|
|
16
|
-
export function getCacheWarmingDelayMs(ttlMs) {
|
|
17
|
-
if (ttlMs <= 10_000)
|
|
18
|
-
return undefined;
|
|
19
|
-
return Math.max(1, Math.floor(Math.min(ttlMs * 0.9, ttlMs - 10_000)));
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Lifetime of the prompt cache entry a request writes, from the model's
|
|
23
|
-
* `promptCache` tier for the retention the request used. Undefined when the
|
|
24
|
-
* model has no lifetime for that tier or caching is off.
|
|
25
|
-
*/
|
|
26
|
-
export function getPromptCacheTtlMs(model, options) {
|
|
27
|
-
const retention = options?.cacheRetention ??
|
|
28
|
-
(getProviderEnvValue("PI_CACHE_RETENTION", options?.env) === "long" ? "long" : "short");
|
|
29
|
-
if (retention === "none")
|
|
30
|
-
return undefined;
|
|
31
|
-
const seconds = model.promptCache?.[retention];
|
|
32
|
-
return seconds === undefined ? undefined : seconds * 1000;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Whether replaying the request with a one-token output cap leaves its cache
|
|
36
|
-
* entry untouched. Anthropic's budget-based thinking (Claude models without
|
|
37
|
-
* adaptive thinking) derives `budget_tokens` from `max_tokens`; the replay
|
|
38
|
-
* would get a different budget, which Anthropic keys the message cache on,
|
|
39
|
-
* and the model could still think for thousands of tokens.
|
|
40
|
-
*/
|
|
41
|
-
export function isReplayable(model, options) {
|
|
42
|
-
if (!options?.reasoning || model.api !== "anthropic-messages")
|
|
43
|
-
return true;
|
|
44
|
-
return model.compat?.forceAdaptiveThinking === true;
|
|
45
|
-
}
|
|
1
|
+
import { CACHE_WARMING_MAX_AGE_MS, CACHE_WARMING_MAX_IDLE_AGE_MS, CACHE_WARMING_MINIMUM_EXPECTED_SAVINGS, evaluateCacheWarming, getCacheWarmingDelayMs, getCacheWarmingRequestOptions, getPromptCacheTtlMs, isCacheWarmingReplayable, } from "@earendil-works/pi-ai";
|
|
46
2
|
/** Prompt size of the most recent real request on the branch, as reported by the provider. */
|
|
47
3
|
function lastPromptTokens(entries) {
|
|
48
4
|
for (let index = entries.length - 1; index >= 0; index--) {
|
|
@@ -54,18 +10,6 @@ function lastPromptTokens(entries) {
|
|
|
54
10
|
}
|
|
55
11
|
return 0;
|
|
56
12
|
}
|
|
57
|
-
function price(model, tokens) {
|
|
58
|
-
const usage = {
|
|
59
|
-
input: 0,
|
|
60
|
-
output: 0,
|
|
61
|
-
cacheRead: 0,
|
|
62
|
-
cacheWrite: 0,
|
|
63
|
-
totalTokens: 0,
|
|
64
|
-
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },
|
|
65
|
-
...tokens,
|
|
66
|
-
};
|
|
67
|
-
return calculateCost(model, usage).total;
|
|
68
|
-
}
|
|
69
13
|
/**
|
|
70
14
|
* Keeps one prompt cache entry alive by re-sending its request with a
|
|
71
15
|
* one-token output cap before the entry expires. `start` replaces any
|
|
@@ -116,7 +60,7 @@ export class CacheWarmer {
|
|
|
116
60
|
this.stop("cache warming disabled");
|
|
117
61
|
return;
|
|
118
62
|
}
|
|
119
|
-
if (!
|
|
63
|
+
if (!isCacheWarmingReplayable(request.model, request.options)) {
|
|
120
64
|
this.stop("request cannot be replayed safely");
|
|
121
65
|
return;
|
|
122
66
|
}
|
|
@@ -155,7 +99,7 @@ export class CacheWarmer {
|
|
|
155
99
|
return;
|
|
156
100
|
}
|
|
157
101
|
run.phase = "idle";
|
|
158
|
-
const deadline = run.startedAt +
|
|
102
|
+
const deadline = run.startedAt + CACHE_WARMING_MAX_IDLE_AGE_MS;
|
|
159
103
|
if (run.nextWarmAt > deadline || Date.now() >= deadline) {
|
|
160
104
|
this.stop("30-minute idle safety limit reached");
|
|
161
105
|
}
|
|
@@ -192,7 +136,7 @@ export class CacheWarmer {
|
|
|
192
136
|
// the planned pre-expiry margin for that delay and request dispatch; a
|
|
193
137
|
// late refresh is likely a full-price cache write, not a cache warm.
|
|
194
138
|
run.refreshDeadlineAt = run.nextWarmAt + Math.floor((run.ttlMs - run.delayMs) / 2);
|
|
195
|
-
const deadline = run.startedAt + (run.phase === "idle" ?
|
|
139
|
+
const deadline = run.startedAt + (run.phase === "idle" ? CACHE_WARMING_MAX_IDLE_AGE_MS : CACHE_WARMING_MAX_AGE_MS);
|
|
196
140
|
if (run.nextWarmAt > deadline || Date.now() >= deadline) {
|
|
197
141
|
this.stop(run.phase === "idle" ? "30-minute idle safety limit reached" : "one-hour safety limit reached");
|
|
198
142
|
return;
|
|
@@ -236,12 +180,7 @@ export class CacheWarmer {
|
|
|
236
180
|
run.extensionOverride = extensionOverride;
|
|
237
181
|
try {
|
|
238
182
|
const message = await this.models
|
|
239
|
-
.streamSimple(run.model, run.context,
|
|
240
|
-
...run.options,
|
|
241
|
-
maxTokens: 1,
|
|
242
|
-
maxRetries: 0,
|
|
243
|
-
signal: run.controller.signal,
|
|
244
|
-
})
|
|
183
|
+
.streamSimple(run.model, run.context, getCacheWarmingRequestOptions(run.options, run.controller.signal))
|
|
245
184
|
.result();
|
|
246
185
|
if (!this.validateRun(run))
|
|
247
186
|
return;
|
|
@@ -280,24 +219,7 @@ export class CacheWarmer {
|
|
|
280
219
|
return undefined;
|
|
281
220
|
}
|
|
282
221
|
evaluate(run) {
|
|
283
|
-
|
|
284
|
-
const promptTokens = lastPromptTokens(this.sessionManager.getBranch());
|
|
285
|
-
const cacheHitCost = price(model, { cacheRead: promptTokens });
|
|
286
|
-
const cacheMissCost = price(model, model.cost.cacheWrite > 0 ? { cacheWrite: promptTokens } : { input: promptTokens });
|
|
287
|
-
const warmCost = price(model, { cacheRead: promptTokens, output: 1 });
|
|
288
|
-
const missCost = Math.max(0, cacheMissCost - cacheHitCost);
|
|
289
|
-
const continuationProbability = run.phase === "idle" ? IDLE_CONTINUATION_PROBABILITY : 1;
|
|
290
|
-
const economicsAvailable = promptTokens > 0 && (cacheHitCost > 0 || cacheMissCost > 0);
|
|
291
|
-
const expectedSavings = continuationProbability * missCost - warmCost;
|
|
292
|
-
return {
|
|
293
|
-
phase: run.phase,
|
|
294
|
-
warmCost,
|
|
295
|
-
missCost,
|
|
296
|
-
continuationProbability,
|
|
297
|
-
expectedSavings,
|
|
298
|
-
economicsAvailable,
|
|
299
|
-
action: expectedSavings >= CACHE_WARMING_MINIMUM_EXPECTED_SAVINGS ? "warm" : "stop",
|
|
300
|
-
};
|
|
222
|
+
return evaluateCacheWarming(run.model, lastPromptTokens(this.sessionManager.getBranch()), run.phase);
|
|
301
223
|
}
|
|
302
224
|
}
|
|
303
225
|
function formatDollars(value) {
|
|
@@ -347,10 +269,10 @@ export function formatCacheWarmingStatus(status, now = Date.now()) {
|
|
|
347
269
|
return `Warming cache (${details})`;
|
|
348
270
|
return `${formatCacheWarmingDecisionTime(status.nextWarmAt, now)} (${details})`;
|
|
349
271
|
}
|
|
350
|
-
/** One-line transcript text for
|
|
351
|
-
export function formatCacheWarmingUsage(
|
|
352
|
-
const
|
|
353
|
-
const cost =
|
|
354
|
-
return `Cache warmed${
|
|
272
|
+
/** One-line transcript text for the total cost of one or more consecutive cache warms. */
|
|
273
|
+
export function formatCacheWarmingUsage(totalCost, note) {
|
|
274
|
+
const noteText = note ? ` (${note})` : "";
|
|
275
|
+
const cost = totalCost.toFixed(6).replace(/(\.\d{3}\d*?)0+$/, "$1");
|
|
276
|
+
return `Cache warmed${noteText}: $${cost}`;
|
|
355
277
|
}
|
|
356
278
|
//# sourceMappingURL=cache-warmer.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Shared utilities for compaction and branch summarization.
|
|
3
3
|
*/
|
|
4
4
|
import { contentText } from "@earendil-works/pi-ai";
|
|
5
|
+
import { sliceHead } from "../tools/truncate.js";
|
|
5
6
|
export function createFileOps() {
|
|
6
7
|
return {
|
|
7
8
|
read: new Set(),
|
|
@@ -88,7 +89,7 @@ function truncateForSummary(text, maxChars) {
|
|
|
88
89
|
if (text.length <= maxChars)
|
|
89
90
|
return text;
|
|
90
91
|
const truncatedChars = text.length - maxChars;
|
|
91
|
-
return `${text
|
|
92
|
+
return `${sliceHead(text, maxChars)}\n\n[... ${truncatedChars} more characters truncated]`;
|
|
92
93
|
}
|
|
93
94
|
/**
|
|
94
95
|
* Serialize LLM messages to text for summarization.
|
|
@@ -6,7 +6,7 @@ export type { SourceInfo } from "../source-info.ts";
|
|
|
6
6
|
export { createExtensionRuntime, discoverAndLoadExtensions, loadExtensionFromFactory, loadExtensions, } from "./loader.ts";
|
|
7
7
|
export type { ExtensionErrorListener, ForkHandler, NavigateTreeHandler, NewSessionHandler, ShutdownHandler, SwitchSessionHandler, } from "./runner.ts";
|
|
8
8
|
export { ExtensionRunner } from "./runner.ts";
|
|
9
|
-
export type { AfterProviderResponseEvent, AgentActivityOutcome, AgentBeforeSettleEvent, AgentBeforeSettleEventResult, AgentEndEvent, AgentSettledEvent, AgentStartEvent, AgentToolResult, AgentToolUpdateCallback, AppendEntryHandler, AppKeybinding, AutocompleteProviderFactory, BashToolCallEvent, BashToolResultEvent, BeforeAgentStartCustomEvent, BeforeAgentStartEvent, BeforeAgentStartEventResult, BeforeAgentStartUserEvent, BeforeProviderHeadersEvent, BeforeProviderRequestEvent, BeforeProviderRequestEventResult, BoundaryContextPreview, BoundaryResult, BoundaryState, BuildSystemPromptOptions, CacheWarmingDecisionEvent, CacheWarmingDecisionEventResult, CompactionEntryDraft, CompactOptions, ContextEditEntryDraft, ContextEvent, ContextEventResult, ContextUsage, ContextWithSystemEvent, CustomEntryDraft, CustomMessageEntryDraft, CustomToolCallEvent, CustomToolResultEvent, EditorFactory, EditToolCallEvent, EditToolResultEvent, EntryRenderer, EntryRenderOptions, ExecOptions, ExecResult, ExecuteToolOptions, Extension, ExtensionActions, ExtensionAPI, ExtensionCommandContext, ExtensionCommandContextActions, ExtensionContext, ExtensionContextActions, ExtensionError, ExtensionEvent, ExtensionFactory, ExtensionFlag, ExtensionHandler, ExtensionMode, ExtensionRuntime, ExtensionShortcut, ExtensionToolContext, ExtensionUIContext, ExtensionUIDialogOptions, ExtensionVirtualModel, ExtensionWidgetOptions, FindToolCallEvent, FindToolResultEvent, GetActiveToolsHandler, GetAllToolsHandler, GetCommandsHandler, GetThinkingLevelHandler, GrepToolCallEvent, GrepToolResultEvent, InlineExtension, InputEvent, InputEventResult, InputSource, KeybindingHints, KeybindingsManager, LoadExtensionsResult, LsToolCallEvent, LsToolResultEvent, MarkdownTransformContext, MarkdownTransformer, McpServersChangeEvent, MessageEndEvent, MessageEndEventResult, MessageRenderer, MessageRenderOptions, MessageStartEvent, MessageUpdateEvent, ModelSelectEvent, ModelSelectSource, NormalizedBuildSystemPromptOptions, PowerShellToolCallEvent, PowerShellToolResultEvent, ProjectTrustContext, ProjectTrustEvent, ProjectTrustEventDecision, ProjectTrustEventResult, ProjectTrustHandler, ProviderConfig, ProviderModelConfig, ProviderStreamEvent, ReadToolCallEvent, ReadToolResultEvent, RegisteredCommand, RegisteredTool, ReplacedSessionContext, ResolvedCommand, ResourcesDiscoverEvent, ResourcesDiscoverResult, SendMessageHandler, SendUserMessageHandler, SessionBeforeCompactEvent, SessionBeforeCompactResult, SessionBeforeForkEvent, SessionBeforeForkResult, SessionBeforeSwitchEvent, SessionBeforeSwitchResult, SessionBeforeTreeEvent, SessionBeforeTreeResult, SessionBoundaryDraft, SessionCompactEvent, SessionCompactFailedEvent, SessionEvent, SessionInfoChangedEvent, SessionShutdownEvent, SessionStartEvent, SessionTreeEvent, SetActiveToolsHandler, SetLabelHandler, SetModelHandler, SetThinkingLevelHandler, TerminalInputHandler, ThinkingLevelSelectEvent, ToolAnnotations, ToolCallEvent, ToolCallEventResult, ToolDefinition, ToolExecutionEndEvent, ToolExecutionMode, ToolExecutionStartEvent, ToolExecutionUpdateEvent, ToolExposure, ToolInfo, ToolLoadout, ToolLoadoutChanges, ToolNamespace, ToolRendererResolver, ToolRenderers, ToolRenderResultOptions, ToolResultEvent, ToolResultEventResult, TreePreparation, TurnEndEvent, TurnEndEventResult, TurnStartEvent, UIPromptEndEvent, UIPromptKind, UIPromptStartEvent, UserBashEvent, UserBashEventResult, WidgetPlacement, WorkingIndicatorOptions, WriteToolCallEvent, WriteToolResultEvent, } from "./types.ts";
|
|
9
|
+
export type { AfterProviderResponseEvent, AgentActivityOutcome, AgentBeforeSettleEvent, AgentBeforeSettleEventResult, AgentEndEvent, AgentSettledEvent, AgentStartEvent, AgentToolResult, AgentToolUpdateCallback, AppendEntryHandler, AppKeybinding, AutocompleteProviderFactory, BashToolCallEvent, BashToolResultEvent, BeforeAgentStartCustomEvent, BeforeAgentStartEvent, BeforeAgentStartEventResult, BeforeAgentStartUserEvent, BeforeProviderHeadersEvent, BeforeProviderRequestEvent, BeforeProviderRequestEventResult, BoundaryContextPreview, BoundaryResult, BoundaryState, BuildSystemPromptOptions, CacheWarmingDecisionEvent, CacheWarmingDecisionEventResult, CompactionEntryDraft, CompactOptions, ContextEditEntryDraft, ContextEvent, ContextEventResult, ContextUsage, ContextWithSystemEvent, CustomEntryDraft, CustomMessageEntryDraft, CustomToolCallEvent, CustomToolResultEvent, EditorFactory, EditToolCallEvent, EditToolResultEvent, EntryRenderer, EntryRenderOptions, ExecOptions, ExecResult, ExecuteToolOptions, Extension, ExtensionActions, ExtensionAPI, ExtensionCommandContext, ExtensionCommandContextActions, ExtensionContext, ExtensionContextActions, ExtensionError, ExtensionEvent, ExtensionFactory, ExtensionFlag, ExtensionHandler, ExtensionMode, ExtensionRuntime, ExtensionShortcut, ExtensionToolContext, ExtensionUIContext, ExtensionUIDialogOptions, ExtensionVirtualModel, ExtensionWidgetOptions, FindToolCallEvent, FindToolResultEvent, GetActiveToolsHandler, GetAllToolsHandler, GetCommandsHandler, GetThinkingLevelHandler, GrepToolCallEvent, GrepToolResultEvent, InlineExtension, InputEvent, InputEventResult, InputSource, KeybindingHints, KeybindingsManager, LoadExtensionsResult, LsToolCallEvent, LsToolResultEvent, MarkdownMessageType, MarkdownTransformContext, MarkdownTransformer, MarkdownTransformerOptions, MarkdownTransformerRegistration, McpServersChangeEvent, MessageEndEvent, MessageEndEventResult, MessageRenderer, MessageRenderOptions, MessageStartEvent, MessageUpdateEvent, ModelSelectEvent, ModelSelectSource, NormalizedBuildSystemPromptOptions, PowerShellToolCallEvent, PowerShellToolResultEvent, ProjectTrustContext, ProjectTrustEvent, ProjectTrustEventDecision, ProjectTrustEventResult, ProjectTrustHandler, ProviderConfig, ProviderModelConfig, ProviderStreamEvent, ReadToolCallEvent, ReadToolResultEvent, RegisteredCommand, RegisteredTool, ReplacedSessionContext, ResolvedCommand, ResourcesDiscoverEvent, ResourcesDiscoverResult, SendMessageHandler, SendUserMessageHandler, SessionBeforeCompactEvent, SessionBeforeCompactResult, SessionBeforeForkEvent, SessionBeforeForkResult, SessionBeforeSwitchEvent, SessionBeforeSwitchResult, SessionBeforeTreeEvent, SessionBeforeTreeResult, SessionBoundaryDraft, SessionCompactEvent, SessionCompactFailedEvent, SessionEvent, SessionInfoChangedEvent, SessionShutdownEvent, SessionStartEvent, SessionTreeEvent, SetActiveToolsHandler, SetLabelHandler, SetModelHandler, SetThinkingLevelHandler, TerminalInputHandler, ThinkingLevelSelectEvent, ToolAnnotations, ToolCallEvent, ToolCallEventResult, ToolDefinition, ToolExecutionEndEvent, ToolExecutionMode, ToolExecutionStartEvent, ToolExecutionUpdateEvent, ToolExposure, ToolInfo, ToolLoadout, ToolLoadoutChanges, ToolNamespace, ToolRendererResolver, ToolRenderers, ToolRenderResultOptions, ToolResultEvent, ToolResultEventResult, TreePreparation, TurnEndEvent, TurnEndEventResult, TurnStartEvent, UIPromptEndEvent, UIPromptKind, UIPromptStartEvent, UserBashEvent, UserBashEventResult, WidgetPlacement, WorkingIndicatorOptions, WriteToolCallEvent, WriteToolResultEvent, } from "./types.ts";
|
|
10
10
|
export { defineTool, isBashToolResult, isEditToolResult, isFindToolResult, isGrepToolResult, isLsToolResult, isPowerShellToolResult, isReadToolResult, isToolCallEventType, isWriteToolResult, } from "./types.ts";
|
|
11
11
|
export { wrapRegisteredTool, wrapRegisteredTools } from "./wrapper.ts";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,11 +6,12 @@ import * as fs from "node:fs";
|
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as path from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
+
import { mcpNamespace } from "@earendil-works/pi-mcp";
|
|
9
10
|
import { CONFIG_DIR_NAME, getAgentDir, isBunBinary, isBundledNode } from "../../config.js";
|
|
10
|
-
import { pathsEqual, resolvePath } from "../../utils/paths.js";
|
|
11
|
+
import { canonicalizePath, pathsEqual, resolvePath } from "../../utils/paths.js";
|
|
11
12
|
import { createEventBus } from "../event-bus.js";
|
|
12
13
|
import { execCommand } from "../exec.js";
|
|
13
|
-
import { McpServerRegistry,
|
|
14
|
+
import { McpServerRegistry, validateMcpServerConfig } from "../mcp-servers.js";
|
|
14
15
|
import { readPiManifest } from "../pi-manifest.js";
|
|
15
16
|
import { createSyntheticSourceInfo, getSyntheticPathSource, isSyntheticPath } from "../source-info.js";
|
|
16
17
|
import { time } from "../timings.js";
|
|
@@ -190,6 +191,7 @@ export function createExtensionRuntime() {
|
|
|
190
191
|
* Registration methods write to the extension object.
|
|
191
192
|
* Action methods delegate to the shared runtime.
|
|
192
193
|
*/
|
|
194
|
+
const DEFAULT_MARKDOWN_MESSAGE_TYPES = ["user", "assistant", "assistant-thinking"];
|
|
193
195
|
function createExtensionAPI(extension, runtime, cwd, eventBus) {
|
|
194
196
|
const pendingFlagValues = new Map();
|
|
195
197
|
const pendingRuntimeChanges = [];
|
|
@@ -281,9 +283,12 @@ function createExtensionAPI(extension, runtime, cwd, eventBus) {
|
|
|
281
283
|
assertActive();
|
|
282
284
|
extension.messageRenderers.set(customType, renderer);
|
|
283
285
|
},
|
|
284
|
-
registerMarkdownTransformer(transformer) {
|
|
286
|
+
registerMarkdownTransformer(transformer, options) {
|
|
285
287
|
assertActive();
|
|
286
|
-
extension.markdownTransformer =
|
|
288
|
+
extension.markdownTransformer = {
|
|
289
|
+
transformer,
|
|
290
|
+
messageTypes: new Set(options?.messageTypes ?? DEFAULT_MARKDOWN_MESSAGE_TYPES),
|
|
291
|
+
};
|
|
287
292
|
},
|
|
288
293
|
registerEntryRenderer(customType, renderer) {
|
|
289
294
|
assertActive();
|
|
@@ -482,7 +487,7 @@ async function loadExtensionModule(extensionPath, cacheToken) {
|
|
|
482
487
|
moduleCache: false,
|
|
483
488
|
...resolutionOptions,
|
|
484
489
|
});
|
|
485
|
-
const module = await jiti.import(extensionPath, { default: true });
|
|
490
|
+
const module = await jiti.import(canonicalizePath(extensionPath), { default: true });
|
|
486
491
|
const factory = module;
|
|
487
492
|
if (typeof factory !== "function") {
|
|
488
493
|
return undefined;
|
|
@@ -150,6 +150,7 @@ export declare class ExtensionRunner {
|
|
|
150
150
|
reportUnhandledMcpServers(): void;
|
|
151
151
|
hasHandlers(eventType: string): boolean;
|
|
152
152
|
getMessageRenderer(customType: string): MessageRenderer | undefined;
|
|
153
|
+
/** Markdown transformers in extension load order; each one leaves Markdown of unregistered surfaces unchanged. */
|
|
153
154
|
getMarkdownTransformers(): MarkdownTransformer[];
|
|
154
155
|
/** Renderers of calls to `toolName`: extension resolvers in load order, then `base`. */
|
|
155
156
|
resolveToolRenderers(toolName: string, base: () => ToolRenderers | undefined): ToolRenderers | undefined;
|
|
@@ -535,8 +535,16 @@ export class ExtensionRunner {
|
|
|
535
535
|
}
|
|
536
536
|
return undefined;
|
|
537
537
|
}
|
|
538
|
+
/** Markdown transformers in extension load order; each one leaves Markdown of unregistered surfaces unchanged. */
|
|
538
539
|
getMarkdownTransformers() {
|
|
539
|
-
return this.extensions.flatMap((ext) =>
|
|
540
|
+
return this.extensions.flatMap((ext) => {
|
|
541
|
+
if (!ext.markdownTransformer)
|
|
542
|
+
return [];
|
|
543
|
+
const { transformer, messageTypes } = ext.markdownTransformer;
|
|
544
|
+
return [
|
|
545
|
+
(markdown, context) => (messageTypes.has(context.messageType) ? transformer(markdown, context) : markdown),
|
|
546
|
+
];
|
|
547
|
+
});
|
|
540
548
|
}
|
|
541
549
|
/** Renderers of calls to `toolName`: extension resolvers in load order, then `base`. */
|
|
542
550
|
resolveToolRenderers(toolName, base) {
|
|
@@ -140,8 +140,9 @@ export interface ExtensionUIContext {
|
|
|
140
140
|
/** Called with the overlay handle after the overlay is shown. Use to control visibility. */
|
|
141
141
|
onHandle?: (handle: OverlayHandle) => void;
|
|
142
142
|
/**
|
|
143
|
-
* Report pi as blocked on user input (OSC 7501 program status) while this component
|
|
144
|
-
*
|
|
143
|
+
* Report pi as blocked on user input (OSC 7501 program status) while this component waits for input.
|
|
144
|
+
* Inline components report it while visible. Overlays report it until `done()` is called, also while
|
|
145
|
+
* hidden with `setHidden()`.
|
|
145
146
|
*/
|
|
146
147
|
blocked?: {
|
|
147
148
|
kind: NonNullable<ProgramStatus["kind"]>;
|
|
@@ -1176,8 +1177,17 @@ export interface MessageRenderOptions extends KeybindingHints {
|
|
|
1176
1177
|
/** Horizontal padding configured by the outputPad setting. */
|
|
1177
1178
|
outputPad: number;
|
|
1178
1179
|
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Markdown surface a transformer runs on.
|
|
1182
|
+
* - `user`, `assistant`, `assistant-thinking`: transcript messages (the default types of a transformer)
|
|
1183
|
+
* - `custom`: custom messages without a custom renderer, and expanded skill blocks (their content, without Pi's header)
|
|
1184
|
+
* - `summary`: expanded branch and compaction summaries (the summary, without Pi's header)
|
|
1185
|
+
* - `changelog`: Pi's changelog ("What's New" and `/changelog`), the "Extension Updates" notice, and the release note of
|
|
1186
|
+
* the "Update Available" notice
|
|
1187
|
+
*/
|
|
1188
|
+
export type MarkdownMessageType = "user" | "assistant" | "assistant-thinking" | "custom" | "summary" | "changelog";
|
|
1179
1189
|
export interface MarkdownTransformContext {
|
|
1180
|
-
messageType:
|
|
1190
|
+
messageType: MarkdownMessageType;
|
|
1181
1191
|
isStreaming: boolean;
|
|
1182
1192
|
availableWidth: number;
|
|
1183
1193
|
/** Persisted session-entry id. Undefined for live messages or live rendering; available when rendering from persisted session entries. */
|
|
@@ -1186,6 +1196,15 @@ export interface MarkdownTransformContext {
|
|
|
1186
1196
|
timestamp?: string;
|
|
1187
1197
|
}
|
|
1188
1198
|
export type MarkdownTransformer = (markdown: string, context: MarkdownTransformContext) => string;
|
|
1199
|
+
export interface MarkdownTransformerOptions {
|
|
1200
|
+
/** Surfaces the transformer runs on. Default: `["user", "assistant", "assistant-thinking"]`. */
|
|
1201
|
+
messageTypes?: readonly MarkdownMessageType[];
|
|
1202
|
+
}
|
|
1203
|
+
/** A registered Markdown transformer and the surfaces it runs on. */
|
|
1204
|
+
export interface MarkdownTransformerRegistration {
|
|
1205
|
+
transformer: MarkdownTransformer;
|
|
1206
|
+
messageTypes: ReadonlySet<MarkdownMessageType>;
|
|
1207
|
+
}
|
|
1189
1208
|
export interface EntryRenderOptions extends KeybindingHints {
|
|
1190
1209
|
expanded: boolean;
|
|
1191
1210
|
}
|
|
@@ -1271,8 +1290,11 @@ export interface ExtensionAPI {
|
|
|
1271
1290
|
getFlag(name: string): boolean | string | undefined;
|
|
1272
1291
|
/** Register a custom renderer for CustomMessageEntry. */
|
|
1273
1292
|
registerMessageRenderer<T = unknown>(customType: string, renderer: MessageRenderer<T>): void;
|
|
1274
|
-
/**
|
|
1275
|
-
|
|
1293
|
+
/**
|
|
1294
|
+
* Register a transformer for Markdown before Pi renders it in interactive mode. By default it runs on user,
|
|
1295
|
+
* assistant and thinking Markdown; `options.messageTypes` selects the surfaces instead.
|
|
1296
|
+
*/
|
|
1297
|
+
registerMarkdownTransformer(transformer: MarkdownTransformer, options?: MarkdownTransformerOptions): void;
|
|
1276
1298
|
/** Register a custom renderer for CustomEntry. Custom entries do not participate in LLM context. */
|
|
1277
1299
|
registerEntryRenderer<T = unknown>(customType: string, renderer: EntryRenderer<T>): void;
|
|
1278
1300
|
/** Choose how tool calls are drawn. Resolvers run in extension load order. */
|
|
@@ -1751,7 +1773,7 @@ export interface Extension {
|
|
|
1751
1773
|
tools: Map<string, RegisteredTool>;
|
|
1752
1774
|
messageRenderers: Map<string, MessageRenderer>;
|
|
1753
1775
|
toolRenderers?: ToolRendererResolver[];
|
|
1754
|
-
markdownTransformer?:
|
|
1776
|
+
markdownTransformer?: MarkdownTransformerRegistration;
|
|
1755
1777
|
entryRenderers?: Map<string, EntryRenderer>;
|
|
1756
1778
|
commands: Map<string, RegisteredCommand>;
|
|
1757
1779
|
flags: Map<string, ExtensionFlag>;
|
|
@@ -66,7 +66,7 @@ declare const APP_KEYBINDINGS: {
|
|
|
66
66
|
readonly description: "Restore queued messages";
|
|
67
67
|
};
|
|
68
68
|
readonly "app.clipboard.pasteImage": {
|
|
69
|
-
readonly defaultKeys: "alt+v" | "ctrl+v";
|
|
69
|
+
readonly defaultKeys: "ctrl+v" | ("alt+v" | "ctrl+v")[];
|
|
70
70
|
readonly description: "Paste files on macOS, images, or text from clipboard";
|
|
71
71
|
};
|
|
72
72
|
readonly "app.session.new": {
|
|
@@ -420,7 +420,7 @@ export declare const KEYBINDINGS: {
|
|
|
420
420
|
readonly description: "Restore queued messages";
|
|
421
421
|
};
|
|
422
422
|
readonly "app.clipboard.pasteImage": {
|
|
423
|
-
readonly defaultKeys: "alt+v" | "ctrl+v";
|
|
423
|
+
readonly defaultKeys: "ctrl+v" | ("alt+v" | "ctrl+v")[];
|
|
424
424
|
readonly description: "Paste files on macOS, images, or text from clipboard";
|
|
425
425
|
};
|
|
426
426
|
readonly "app.session.new": {
|
|
@@ -60,7 +60,7 @@ const APP_KEYBINDINGS = {
|
|
|
60
60
|
description: "Restore queued messages",
|
|
61
61
|
},
|
|
62
62
|
"app.clipboard.pasteImage": {
|
|
63
|
-
defaultKeys: windowsKeybindings ? "alt+v" : "ctrl+v",
|
|
63
|
+
defaultKeys: windowsKeybindings ? ["alt+v", "ctrl+v"] : "ctrl+v",
|
|
64
64
|
description: "Paste files on macOS, images, or text from clipboard",
|
|
65
65
|
},
|
|
66
66
|
"app.session.new": { defaultKeys: [], description: "Start a new session" },
|
|
@@ -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 { type McpHttpServerConfig as McpHttpServerFields, type McpOAuthConfig as McpOAuthFields, type McpStdioServerConfig as McpStdioServerFields } from "@earendil-works/pi-mcp";
|
|
7
10
|
/** Whether a tool name matches any of the entries, each an exact name or a pattern. */
|
|
8
11
|
export declare function createToolNameMatcher(entries: readonly string[]): (name: string) => boolean;
|
|
9
12
|
/** MCP resource tools, which reach every server with resources. */
|
|
@@ -22,6 +25,10 @@ export declare function isMcpToolName(name: string): boolean;
|
|
|
22
25
|
* - `hidden`: tools are registered but unreachable.
|
|
23
26
|
*/
|
|
24
27
|
export type McpExposure = "codemode" | "deferred" | "direct" | "hidden";
|
|
28
|
+
/**
|
|
29
|
+
* pi's fields of every server entry, beside the shared `mcpServers` fields of pi-mcp. `description`
|
|
30
|
+
* and `timeout` are shared fields, declared again for pi's documentation.
|
|
31
|
+
*/
|
|
25
32
|
interface McpServerConfigBase {
|
|
26
33
|
/** Default: `codemode`. */
|
|
27
34
|
exposure?: McpExposure;
|
|
@@ -37,39 +44,19 @@ interface McpServerConfigBase {
|
|
|
37
44
|
* overrides for a few tools exposes only those.
|
|
38
45
|
*/
|
|
39
46
|
toolExposure?: Record<string, McpExposure>;
|
|
40
|
-
/** Set to false to keep the entry without connecting. Default: true. */
|
|
41
|
-
enabled?: boolean;
|
|
42
47
|
/** Per-request timeout in seconds. Progress notifications from the server reset it. Default: 60. */
|
|
43
48
|
timeout?: number;
|
|
44
49
|
}
|
|
45
|
-
export interface McpStdioServerConfig extends McpServerConfigBase {
|
|
46
|
-
type?: "stdio";
|
|
47
|
-
command: string;
|
|
48
|
-
args?: string[];
|
|
50
|
+
export interface McpStdioServerConfig extends McpStdioServerFields, McpServerConfigBase {
|
|
49
51
|
/** Values may reference environment variables (`${NAME}`) or commands (`!cmd`). */
|
|
50
52
|
env?: Record<string, string>;
|
|
51
53
|
/** Relative paths resolve against the session working directory. */
|
|
52
54
|
cwd?: string;
|
|
53
55
|
}
|
|
54
56
|
/** OAuth client settings for servers that do not support dynamic client registration. */
|
|
55
|
-
export interface McpOAuthConfig {
|
|
56
|
-
/** Pre-registered client id. Without it, pi registers a client with the authorization server. */
|
|
57
|
-
clientId?: string;
|
|
57
|
+
export interface McpOAuthConfig extends McpOAuthFields {
|
|
58
58
|
/** May reference environment variables (`${NAME}`) or commands (`!cmd`). */
|
|
59
59
|
clientSecret?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Port of the loopback callback server, for clients registered with a fixed redirect URI. Without
|
|
62
|
-
* `callbackUrl`, the redirect URI is `http://127.0.0.1:<port>/callback`.
|
|
63
|
-
*/
|
|
64
|
-
callbackPort?: number;
|
|
65
|
-
/**
|
|
66
|
-
* Redirect URI registered for `clientId`, for example `http://localhost:8080/oauth/callback`. It must
|
|
67
|
-
* be an `http` URI on `localhost`, `127.0.0.1`, or `[::1]`. Without a port, the callback server
|
|
68
|
-
* listens on `callbackPort` or a free port, which is added to the URI (RFC 8252).
|
|
69
|
-
*/
|
|
70
|
-
callbackUrl?: string;
|
|
71
|
-
/** Scopes to request, separated by spaces. Default: the scopes the server advertises. */
|
|
72
|
-
scope?: string;
|
|
73
60
|
/**
|
|
74
61
|
* `client_name` sent with dynamic client registration, for servers that only accept known clients.
|
|
75
62
|
* Default: `pi`.
|
|
@@ -83,23 +70,13 @@ export interface McpOAuthConfig {
|
|
|
83
70
|
* `dcr`: always dynamic client registration.
|
|
84
71
|
*/
|
|
85
72
|
clientRegistration?: "auto" | "dcr" | "cimd";
|
|
86
|
-
/**
|
|
87
|
-
* Authorization server metadata document (RFC 8414 or OpenID Connect discovery) to use instead of
|
|
88
|
-
* discovery through the server, for servers that advertise a wrong authorization server or none.
|
|
89
|
-
* The document is trusted as configured. Must use https, except on loopback hosts.
|
|
90
|
-
*/
|
|
91
|
-
authServerMetadataUrl?: string;
|
|
92
73
|
}
|
|
93
|
-
/** Whether a redirect URI can be served by pi's loopback callback server. */
|
|
94
|
-
export declare function isLoopbackRedirectUri(value: string): boolean;
|
|
95
74
|
/**
|
|
96
75
|
* Whether pi's Client ID Metadata Documents list a redirect URI for the loopback `callbackUrl`: they list
|
|
97
76
|
* `/callback` on localhost and 127.0.0.1, on any port. Without `callbackUrl`, pi uses such a URI.
|
|
98
77
|
*/
|
|
99
78
|
export declare function isClientMetadataDocumentCallback(callbackUrl: string | undefined): boolean;
|
|
100
|
-
export interface McpHttpServerConfig extends McpServerConfigBase {
|
|
101
|
-
type?: "http";
|
|
102
|
-
url: string;
|
|
79
|
+
export interface McpHttpServerConfig extends McpHttpServerFields, McpServerConfigBase {
|
|
103
80
|
/** Values may reference environment variables (`${NAME}`) or commands (`!cmd`). */
|
|
104
81
|
headers?: Record<string, string>;
|
|
105
82
|
oauth?: McpOAuthConfig;
|
|
@@ -112,13 +89,11 @@ export interface McpHttpServerConfig extends McpServerConfigBase {
|
|
|
112
89
|
};
|
|
113
90
|
}
|
|
114
91
|
export type McpServerConfig = McpStdioServerConfig | McpHttpServerConfig;
|
|
115
|
-
/** Namespace of a server's tools: `mcp__<server>` with `-` replaced by `_`, like the tool names. */
|
|
116
|
-
export declare function mcpNamespace(server: string): string;
|
|
117
92
|
/** Exposure of one tool of a server: its `toolExposure` entry, else the server's `exposure`. */
|
|
118
93
|
export declare function getMcpToolExposure(config: McpServerConfig, toolName: string): McpExposure;
|
|
119
94
|
/**
|
|
120
|
-
* Validate one server entry of the `mcpServers` shape
|
|
121
|
-
* aliases resolved, or an error message.
|
|
95
|
+
* Validate one server entry of the `mcpServers` shape: pi-mcp's shared fields and pi's own. Returns a
|
|
96
|
+
* copy of the config with exposure aliases resolved, or an error message.
|
|
122
97
|
*/
|
|
123
98
|
export declare function validateMcpServerConfig(name: string, raw: unknown): McpServerConfig | string;
|
|
124
99
|
/** A server an extension registered with `pi.registerMcpServer()`. */
|