@ensocode/server 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +117 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-MGNURJ72.js +6 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-4WDOP7MF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CCYGJPSU.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-H4W2F2IO.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-JLFZH7C6.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-LCB5FO32.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-LQUBM7HF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MABPTPMF.js +30 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MPEFJ3RP.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-PYBKJQVF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-VUPOM3AH.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-XM4MQFQV.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZKNSXGL5.js +1243 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-35W4A75E.js} +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-WKRH5HZA.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/codemode-worker.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/github-copilot.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-VSMFCHJU.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-35UTLZJN.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-Z3SS4FP4.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-LWJTUFIM.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-YYIXDJWF.js +10 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-X2I4TQ2L.js} +3 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-GG3FBAIF.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-5CX3GG6R.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-WHNK2UQG.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-5CXWY5I7.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-KA2SBSSD.js} +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-7ZY53V4K.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-command.js +26 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.d.ts +15 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.js +232 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.d.ts +14 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.js +57 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.d.ts +17 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.js +63 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts +5 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +7 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +25 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +139 -50
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +3 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.d.ts +4 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.js +11 -89
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +10 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +1 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +9 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +28 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.d.ts +12 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.js +42 -121
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-config.d.ts +52 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +20 -19
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.d.ts +5 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.js +11 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +10 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +50 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/pi-ai-schemas.d.ts +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.d.ts +17 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.js +24 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +18 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-composer.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.d.ts +6 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.js +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.d.ts +13 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.js +29 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/remote-catalog-provider.js +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.js +15 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.js +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +35 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.d.ts +23 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js +182 -41
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +8 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +82 -36
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts +5 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +87 -75
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/powershell.js +15 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +141 -25
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.d.ts +4 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +23 -29
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.js +4 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/tool.js +34 -12
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.d.ts +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.js +23 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/ui.js +15 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.d.ts +2 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js +49 -14
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/config.js +4 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/index.js +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.d.ts +11 -49
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.js +56 -319
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.js +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.d.ts +4 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.js +7 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.d.ts +2 -23
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.js +6 -58
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/tool-search/tool.js +18 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/main.js +46 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +5 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js +10 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/diff.js +11 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +9 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +1 -18
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.d.ts +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.js +25 -20
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +14 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +10 -3
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +32 -5
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.d.ts +14 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.js +66 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.d.ts +1 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.js +6 -37
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +5 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +12 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +1 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +19 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +11 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +110 -63
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +4 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +19 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +53 -23
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +39 -8
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js +12 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js +3 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.d.ts +8 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.js +24 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.d.ts +12 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.js +20 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/cli.md +14 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +27 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/keybindings.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +4 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/models-configuration.md +6 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/models.md +2 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +4 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/index.ts +23 -13
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/utils.ts +42 -16
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/README.md +14 -11
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/index.ts +392 -171
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package-lock.json +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
- package/out/node_modules/@earendil-works/pi-coding-agent/examples/tsconfig.json +63 -35
- package/out/node_modules/@earendil-works/pi-coding-agent/package.json +7 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/schemas/models.schema.json +29 -0
- package/out/node_modules/@earendil-works/pi-coding-agent/schemas/settings.schema.json +1 -1
- package/out/phone/assets/{abnfDiagram-VCTEODGH-CLgfII9z.js → abnfDiagram-VCTEODGH-k76opPl1.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-DFA8x3QF.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-I2RDn32D.js → architectureDiagram-5GKGNRK7-yxQH9IuZ.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-D5xNQZkS.js → blockDiagram-I7D4REHJ-DoHteZpO.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-CRKpzdlA.js → c4Diagram-7LVT6UL2-DQVO6L4q.js} +1 -1
- package/out/phone/assets/channel-BBjWfdZr.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-CcezrqKz.js → chunk-4HAMMTFA-N9Rw4SGW.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-DDCXp4y1.js → chunk-75Z2AOVW-DKJ8pOxp.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-CjWveEkB.js → chunk-DU6HZSFF-BqGW8Nbd.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-Bgl_xI02.js → chunk-F27PBJKO-PkFmkghF.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-EmL8nOme.js → chunk-GMAD6QVW-C9VeD3Jk.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-Dox_nphF.js → chunk-GVQU2GXP-COhntOeE.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-BapGpI4S.js → chunk-IMKFNOWR-B87ghLVD.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-Cq_UZI8A.js → chunk-L3NEJ4N5-C3N2izjg.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-2VVlErAd.js → chunk-OSK3NFVY-DaAlvVhz.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-Cci-G-p1.js → chunk-P2QGCYS3-BQpKr8IZ.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-CJ47EOfE.js → chunk-POPQ4Y6H-B2TZMY6U.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-D9dLdFqC.js → chunk-PWAF6VOD-CgRhpUJy.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-BlGSiWZn.js → chunk-SHT3W25Y-BySMFA99.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-C0zdsa_A.js → chunk-SVP7TREG-EDGanDUX.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-DAQW8nQU.js → chunk-TICWLB2K-BtCZ8R2k.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CXXjdIIU.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CXXjdIIU.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-_zsx5mdV.js → cynefin-OW5HDTMX-CdZmp44V.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-Cww-w0ex.js → cynefinDiagram-5FMLGOSQ-BCz9KwUb.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-C0i7DPqX.js → dagre-GXQ25YYZ-CgFeNgh6.js} +1 -1
- package/out/phone/assets/desk-C_b7mE6l.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-Bx-G5hYz.js → diagram-S7CK7UJ4-CwvaZIBf.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DaTblkjV.js → diagram-UQ7AKVKN-DqnD4XoZ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-gmN2e1b4.js → diagram-VSXAHHWV-Kqc9GudQ.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-WYtRtOo8.js → diagram-VX7I27RA-B_0DLDQ0.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-Cr6uUB5B.js → diagram-Z3DM3KII-CppKBEPW.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-BCicfvpA.js → ebnfDiagram-PWID7BFC-DeYPNCu9.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-B3QlJvfQ.js → erDiagram-RLTQ6QDP-MsfxDUmk.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-D4a6gbOs.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-BBTtB5oX.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-LYy2mfCh.js → ganttDiagram-EL5Y4UJY-DaScS1os.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-dT22Z2jG.js → gitGraph-4MIJSDKK-C-FzqpZm.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DHNdY57l.js → gitGraphDiagram-WWUBYQGX-4Yv-hAwf.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-nIu8NSOs.js → info-A6RAGUB7-CGLEP4t7.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-DGkWZIMT.js → infoDiagram-27XIBGKW-DapEgYQa.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-C8EPXru-.js → ishikawaDiagram-5VMMS53U-D1B2lZSG.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-Dyd9L3l3.js → journeyDiagram-3NMN7TZE-BSAtMVJw.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-DehTYcsL.js → kanban-definition-UXKFOSKX-CfZ4oI7A.js} +1 -1
- package/out/phone/assets/{line-Db4SulF4.js → line-DAXmUM4p.js} +1 -1
- package/out/phone/assets/main-B0yD1pMI.js +1643 -0
- package/out/phone/assets/main-DNRbLxEx.css +1 -0
- package/out/phone/assets/{mermaid-parser.core-D7h_8WV8.js → mermaid-parser.core-IObm7oM0.js} +3 -3
- package/out/phone/assets/{mermaid.core-Dw_E5kj4.js → mermaid.core-C1wA-mhD.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-_5Mxqxsy.js → mindmap-definition-YA3MSWOX-3ph0EaB9.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-_cgeMDdN.js → packet-AYTQ26CC-BbDAe9Au.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-BhBwaNEr.js → pegDiagram-XKGWAZYB-EsuDcX_3.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-BepY80_0.js → pie-WAS4IAKB-BQfIj1fu.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CQQgqmI8.js → pieDiagram-E7YTZNPT-Cw19z5Ip.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-DEEatC1J.js → quadrantDiagram-AXDQQJYC-Bqwz_sa8.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-BqsiI_qQ.js → radar-RG4KPBEZ-Dmp-89iD.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-C_2pEUjD.js → railroad-74A4TZTK-dq2H8w8Y.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-DddVaVQM.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BjvyqMjh.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-lBl4CV1_.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-B7786u7W.js → railroadDiagram-O6MQD6OU-D2Sbc7Wn.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-Ci3b5uwm.js → requirementDiagram-BXWQKSXE-CLNUqxbl.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-PwT2gJjH.js → sankeyDiagram-P5KCCOFB-Dme5iwcw.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-H6sgB5RI.js → sequenceDiagram-WJ2MYXX4-C5dYSwPE.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-BxyRe7OB.js → stateDiagram-D77RDMKH-BuxkPvJ6.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Exd8xDBD.js +1 -0
- package/out/phone/assets/storage-p-WxHA1h.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-DWT3f1Hk.js → swimlanes-42K2YHIH-DHyXnytv.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-B62_42fO.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-D67esSVY.js → timeline-definition-24CTP7MA-Bm8Z0u2Z.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-BTIfu3Qr.js → treeView-Q6P3EWNA-DFUxvDDO.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-DkPf6LQc.js → treemap-WGGIJYW6-CMC-hwzt.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-DRMRxJ4f.js → vennDiagram-4TSXK5OY-CNL4gZsd.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-hOvC_8-W.js → wardley-WFR3VGLG-CHQoq9KJ.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-a5aYRgrw.js → wardleyDiagram-VM6X3IG4-DAuBfK1O.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DXjoRFDL.js → xychartDiagram-S5SC5T6Z-B2T9ECKd.js} +1 -1
- package/out/phone/desk.html +2 -2
- package/out/phone/index.html +3 -3
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-DhskujJf.js → abnfDiagram-VCTEODGH-gdhrQbX6.js} +1 -1
- package/out/renderer/assets/{arc-BcW67t47.js → arc-D6-Q4l2d.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-D-x057Ia.js → architectureDiagram-5GKGNRK7-C4y0SbLT.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-DR3sZkhW.js → blockDiagram-I7D4REHJ-DrsoSFRK.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-CQ4lScWs.js → c4Diagram-7LVT6UL2-1DD8BlM8.js} +1 -1
- package/out/renderer/assets/channel-Sck-tAAK.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-CtT0yqF3.js → chunk-2Q5K7J3B-DRyc0B7g.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-DlCfddrY.js → chunk-5VM5RSS4-BJe8SghE.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-BAJ5dGzo.js → chunk-F27PBJKO-BIipq4SK.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Dlah_YbP.js → chunk-IMKFNOWR-D5Ak3Xd9.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-BiXd3nUZ.js → chunk-JWPE2WC7-BcaWCpW-.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-Ch86i4EJ.js → chunk-POPQ4Y6H-C1TwLrrN.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-z3inDV-H.js → chunk-SVP7TREG-DDOXG_t3.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-B34A2AKD.js → chunk-TICWLB2K-BqT15hZi.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-Do_L0wRR.js → chunk-XXDRQBXY-D01ts6SC.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DnB4QNNe.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DnB4QNNe.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-BQraKmgl.js → cose-bilkent-JH36ORCC-C7NVrT2_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-BwixoR4r.js → cynefin-OW5HDTMX-2LxdFmSk.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-BLTBma3J.js → cynefinDiagram-5FMLGOSQ-_AN_Mulc.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-BRpJ5tyq.js → cytoscape-fcose-COZkZZmX.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-aWsjA_wn.js → dagre-GXQ25YYZ-BUTwlM6j.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-Cur2zK4q.js → diagram-S7CK7UJ4-CseZZ-y2.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-DlrY8YcD.js → diagram-UQ7AKVKN-Cb7llS-8.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-BBdjreqR.js → diagram-VSXAHHWV-CtuGqQvp.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-XiWMdc8S.js → diagram-VX7I27RA-BA8eov-1.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-CBB5leat.js → diagram-Z3DM3KII-VZOjj6Hg.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-nl8RPo8j.js → ebnfDiagram-PWID7BFC-YBIrle6d.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-C_oaG80x.js → erDiagram-RLTQ6QDP-BiKyPEqW.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-nDoVZFS7.js → flowDiagram-HODETNUW-7wmZyLHw.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DOrcuM3Q.js → ganttDiagram-EL5Y4UJY-D4j4GJaT.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-D_DB3jro.js → gitGraphDiagram-WWUBYQGX-BqveM1NI.js} +1 -1
- package/out/renderer/assets/globals-C9M_MZZV.js +2539 -0
- package/out/renderer/assets/globals-l3kDGoYH.css +1 -0
- package/out/renderer/assets/index-BzSTiwH2.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-BbBrANxo.js → infoDiagram-27XIBGKW-DLPLnIFP.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-7UlfWlWV.js → ishikawaDiagram-5VMMS53U-48drIAMR.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-CJP9bosH.js → journeyDiagram-3NMN7TZE-vjigqUq_.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-D772kW7T.js → kanban-definition-UXKFOSKX-CpsYVONZ.js} +1 -1
- package/out/renderer/assets/{layout-BzVfJEvx.js → layout-DqfoORoO.js} +1 -1
- package/out/renderer/assets/{linear-DBjhr05m.js → linear-CJzBBHcp.js} +1 -1
- package/out/renderer/assets/{mermaid.core-CJpNSowm.js → mermaid.core-DdrGP-Hn.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-C2oqlH5E.js → mindmap-definition-YA3MSWOX-D68tLNxp.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-CcZ8Hae-.js → pegDiagram-XKGWAZYB-DkgLTcrv.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-DTw-_k2D.js → pieDiagram-E7YTZNPT-bz5NuX1w.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-D5eX0DO7.js → quadrantDiagram-AXDQQJYC-o_VKLyJA.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DzpBB_Re.js → railroadDiagram-O6MQD6OU-Dkf03e07.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-UbOUXLgl.js → requirementDiagram-BXWQKSXE-CBUz_3YU.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-jRbXLLsa.js → sankeyDiagram-P5KCCOFB-B0pjUr9g.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-s0WBQQPf.js → sequenceDiagram-WJ2MYXX4-ClugIL0e.js} +1 -1
- package/out/renderer/assets/settings-DvhrDn2q.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-DvUs5rDx.js → sizeCapture-INFHLROL-D6y0rctc.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-C1_V497y.js → stateDiagram-D77RDMKH-DiftQepS.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DxB2-9tl.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-BulPeZ6y.js → swimlanes-42K2YHIH-DhuTjCNj.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CYDUqExO.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-gQ5OygZn.js → timeline-definition-24CTP7MA-CrXqgptd.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-A8QyA5Ix.js → vennDiagram-4TSXK5OY-CDm8SO8U.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-CfP6E41T.js → wardleyDiagram-VM6X3IG4-CxyunHwQ.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DTG5UHh7.js → xychartDiagram-S5SC5T6Z-CvC5YMSy.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/plugin-view.html +39 -0
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +2022 -860
- package/out/server/chunks/{agent-BhQn6jGA.js → agent-_G_O-Cpa.js} +359 -227
- package/out/server/chunks/{gpuBackendInstall-CdExgjGi.js → gpuBackendInstall-Cb6TFh_8.js} +11 -9
- package/out/server/chunks/{loadProvider-BnkyjMSW.js → loadProvider-Be9Lu1Oi.js} +7 -20
- package/out/server/chunks/{manifest-2odvnxjZ.js → manifest-CB63GQ-i.js} +129 -6
- package/out/server/chunks/{workflowPresets-DqSsjOj6.js → workflowPresets-Djlp5LPV.js} +4004 -2054
- package/out/server/index.js +8251 -6660
- package/out/server/plugin-host.js +36 -26
- package/package.json +10 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1234
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
- package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
- package/out/phone/assets/architecture-7GRP2DOG-CQOPTv6S.js +0 -1
- package/out/phone/assets/channel-DdXebl9x.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-BCctWEp1.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-BCctWEp1.js +0 -1
- package/out/phone/assets/desk-mfuEW2n4.js +0 -2
- package/out/phone/assets/eventmodeling-NTZA5JFV-BtfapP6M.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-BsyiyBtD.js +0 -1
- package/out/phone/assets/main-Dv9ve8mT.css +0 -1
- package/out/phone/assets/main-uMMbioCA.js +0 -1638
- package/out/phone/assets/railroad-abnf-HS5TGJTU-TmODpceI.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BTCjNR9u.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DjhKNo8j.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Cncmf_cL.js +0 -1
- package/out/phone/assets/storage-D9RW_4__.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-DAahG4fH.js +0 -8
- package/out/renderer/assets/channel-CudRig7z.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DL20WkD0.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DL20WkD0.js +0 -1
- package/out/renderer/assets/globals-Bkw7iiQG.css +0 -1
- package/out/renderer/assets/globals-D1ocHHQV.js +0 -2533
- package/out/renderer/assets/index-Cm5iq85v.js +0 -117
- package/out/renderer/assets/settings-DxYo7s4h.js +0 -34
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C9dfLXR8.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-LXwy6qGO.js +0 -8
|
@@ -84,22 +84,14 @@ const BUILTIN_AGENT_TYPES = [
|
|
|
84
84
|
modelMode: "agent_pick"
|
|
85
85
|
}
|
|
86
86
|
];
|
|
87
|
-
const
|
|
88
|
-
const ENSO_LOCKED_PROFILE_ID = "enso-locked-v1";
|
|
89
|
-
const ENSO_SYSTEM_PROMPT_ID = "enso-system-v1";
|
|
90
|
-
const ENSO_LOCKED_TOOL_IDS = ["enso_capabilities", "enso_app", "ask_user"];
|
|
91
|
-
const ENSO_LOCKED_PROFILE = {
|
|
92
|
-
profileId: ENSO_LOCKED_PROFILE_ID,
|
|
93
|
-
typeKey: ENSO_AGENT_TYPE_KEY,
|
|
94
|
-
toolIds: ENSO_LOCKED_TOOL_IDS
|
|
95
|
-
};
|
|
87
|
+
const LEGACY_ENSO_TYPE_KEY = "agent:enso";
|
|
96
88
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
97
89
|
const BUILTIN_NAME_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
98
90
|
const RESERVED_AGENT_NAMES = {
|
|
99
91
|
enso: true,
|
|
100
|
-
[
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
[LEGACY_ENSO_TYPE_KEY]: true,
|
|
93
|
+
"enso-locked-v1": true,
|
|
94
|
+
"enso-system-v1": true
|
|
103
95
|
};
|
|
104
96
|
const RESERVED_AGENT_PREFIXES = [
|
|
105
97
|
"agent:",
|
|
@@ -118,8 +110,11 @@ function isReservedAgentTypeName(value) {
|
|
|
118
110
|
const normalized = normalizeAgentTypeName(value);
|
|
119
111
|
return !normalized || Object.hasOwn(RESERVED_AGENT_NAMES, normalized) || RESERVED_AGENT_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
120
112
|
}
|
|
113
|
+
function isValidLegacyProfile(typeKey, profileId) {
|
|
114
|
+
return typeKey === LEGACY_ENSO_TYPE_KEY ? profileId === "enso-locked-v1" : profileId === void 0;
|
|
115
|
+
}
|
|
121
116
|
function parseAgentTypeKey(value) {
|
|
122
|
-
if (value ===
|
|
117
|
+
if (value === LEGACY_ENSO_TYPE_KEY) return LEGACY_ENSO_TYPE_KEY;
|
|
123
118
|
if (typeof value !== "string") return null;
|
|
124
119
|
if (value.startsWith("builtin:")) {
|
|
125
120
|
const name = value.slice("builtin:".length);
|
|
@@ -162,7 +157,7 @@ function parseChildSessionIdentity(value) {
|
|
|
162
157
|
});
|
|
163
158
|
const parent = parseSessionIdentity(identity.parent);
|
|
164
159
|
const typeKey = parseAgentTypeKey(identity.typeKey);
|
|
165
|
-
if (!own || !parent || !isUuid(identity.instanceId) || typeof identity.instanceName !== "string" || !identity.instanceName || !typeKey || own.sessionId === parent.sessionId || own.generation === parent.generation || typeKey
|
|
160
|
+
if (!own || !parent || !isUuid(identity.instanceId) || typeof identity.instanceName !== "string" || !identity.instanceName || !typeKey || own.sessionId === parent.sessionId || own.generation === parent.generation || !isValidLegacyProfile(typeKey, identity.profileId)) {
|
|
166
161
|
return null;
|
|
167
162
|
}
|
|
168
163
|
return identity;
|
|
@@ -187,17 +182,7 @@ function buildAgentTypeRegistrySnapshot(input) {
|
|
|
187
182
|
const overriddenNames = new Set(
|
|
188
183
|
input.customAgentTypes.filter((entry) => isUuid(entry.id) && !isReservedAgentTypeName(entry.name)).map((entry) => entry.name.trim().toLowerCase())
|
|
189
184
|
);
|
|
190
|
-
const candidates = [
|
|
191
|
-
{
|
|
192
|
-
typeKey: ENSO_AGENT_TYPE_KEY,
|
|
193
|
-
displayName: "Enso",
|
|
194
|
-
description: "EnsoCode system agent for product capabilities and team setup",
|
|
195
|
-
source: "system",
|
|
196
|
-
locked: true,
|
|
197
|
-
canDisable: false,
|
|
198
|
-
canEdit: false
|
|
199
|
-
}
|
|
200
|
-
];
|
|
185
|
+
const candidates = [];
|
|
201
186
|
for (const builtin of BUILTIN_AGENT_TYPES) {
|
|
202
187
|
if (builtin.name === "general" || builtin.name === "enso" || disabled.has(builtin.name) || overriddenNames.has(builtin.name)) {
|
|
203
188
|
continue;
|
|
@@ -732,13 +717,13 @@ const CAPABILITY_OUTCOMES = [
|
|
|
732
717
|
"unavailable",
|
|
733
718
|
"cancelled"
|
|
734
719
|
];
|
|
735
|
-
const isRecord$
|
|
720
|
+
const isRecord$7 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
736
721
|
const isNonEmptyString$2 = (value) => typeof value === "string" && value.length > 0;
|
|
737
722
|
const hasOnlyKeys$1 = (value, allowed) => Object.keys(value).every((key) => allowed.includes(key));
|
|
738
723
|
const hasExactKeys$3 = (value, keys) => Object.keys(value).length === keys.length && hasOnlyKeys$1(value, keys);
|
|
739
724
|
const isProductSurfaceId$1 = (value) => typeof value === "string" && Object.hasOwn(PRODUCT_SURFACE_INVENTORY, value);
|
|
740
725
|
function parseCapabilityResult(value) {
|
|
741
|
-
if (!isRecord$
|
|
726
|
+
if (!isRecord$7(value) || typeof value.ok !== "boolean") return null;
|
|
742
727
|
if (value.ok) {
|
|
743
728
|
return hasExactKeys$3(value, ["ok", "data"]) ? { ok: true, data: value.data } : null;
|
|
744
729
|
}
|
|
@@ -747,22 +732,16 @@ function parseCapabilityResult(value) {
|
|
|
747
732
|
}
|
|
748
733
|
return value;
|
|
749
734
|
}
|
|
750
|
-
function parseCapabilityAskResponse(value) {
|
|
751
|
-
if (!isRecord$6(value) || !hasExactKeys$3(value, ["child", "turnId", "requestId", "decision"]) || !parseChildSessionIdentity(value.child) || !isNonEmptyString$2(value.turnId) || !isNonEmptyString$2(value.requestId) || value.decision !== "allow" && value.decision !== "deny") {
|
|
752
|
-
return null;
|
|
753
|
-
}
|
|
754
|
-
return value;
|
|
755
|
-
}
|
|
756
735
|
function parseCapabilitySubject(value) {
|
|
757
|
-
if (!isRecord$
|
|
736
|
+
if (!isRecord$7(value) || !hasExactKeys$3(value, ["kind", "id", "label"])) return null;
|
|
758
737
|
return CAPABILITY_SUBJECT_KINDS.includes(value.kind) && isNonEmptyString$2(value.id) && isNonEmptyString$2(value.label) ? value : null;
|
|
759
738
|
}
|
|
760
739
|
function parseCapabilityChange(value) {
|
|
761
|
-
if (!isRecord$
|
|
740
|
+
if (!isRecord$7(value) || !hasExactKeys$3(value, ["field", "previous", "value"])) return null;
|
|
762
741
|
return isNonEmptyString$2(value.field) ? value : null;
|
|
763
742
|
}
|
|
764
743
|
function parseCapabilityReceipt(value) {
|
|
765
|
-
if (!isRecord$
|
|
744
|
+
if (!isRecord$7(value)) return null;
|
|
766
745
|
if (!hasOnlyKeys$1(value, [
|
|
767
746
|
"receiptId",
|
|
768
747
|
"operationId",
|
|
@@ -783,44 +762,6 @@ function parseCapabilityReceipt(value) {
|
|
|
783
762
|
}
|
|
784
763
|
return value;
|
|
785
764
|
}
|
|
786
|
-
function parseCapabilityExecutionEnvelope(value) {
|
|
787
|
-
if (!isRecord$6(value) || !hasExactKeys$3(value, ["modelResult", "receipt"])) return null;
|
|
788
|
-
const modelResult = parseCapabilityResult(value.modelResult);
|
|
789
|
-
const receipt = parseCapabilityReceipt(value.receipt);
|
|
790
|
-
return modelResult && receipt ? { modelResult, receipt } : null;
|
|
791
|
-
}
|
|
792
|
-
function parseOauthFlowLocator(value) {
|
|
793
|
-
if (!isRecord$6(value) || !isUuid(value.flowId)) return null;
|
|
794
|
-
if (!Number.isInteger(value.ownerWebContentsId) || value.ownerWebContentsId < 0) {
|
|
795
|
-
return null;
|
|
796
|
-
}
|
|
797
|
-
if (value.host === "provider-wizard") {
|
|
798
|
-
return hasExactKeys$3(value, ["flowId", "host", "ownerWebContentsId"]) ? value : null;
|
|
799
|
-
}
|
|
800
|
-
if (value.host !== "agent-child-tab") return null;
|
|
801
|
-
return hasExactKeys$3(value, [
|
|
802
|
-
"flowId",
|
|
803
|
-
"host",
|
|
804
|
-
"ownerWebContentsId",
|
|
805
|
-
"child",
|
|
806
|
-
"turnId",
|
|
807
|
-
"requestId"
|
|
808
|
-
]) && parseChildSessionIdentity(value.child) && isNonEmptyString$2(value.turnId) && isNonEmptyString$2(value.requestId) ? value : null;
|
|
809
|
-
}
|
|
810
|
-
function parseStartOauthWizardRequest(value) {
|
|
811
|
-
if (!isRecord$6(value) || !hasExactKeys$3(value, ["providerId"])) return null;
|
|
812
|
-
return isNonEmptyString$2(value.providerId) ? { providerId: value.providerId } : null;
|
|
813
|
-
}
|
|
814
|
-
function parseOauthFlowPromptResponse(value) {
|
|
815
|
-
if (!isRecord$6(value) || !hasExactKeys$3(value, ["locator", "requestId", "value"])) {
|
|
816
|
-
return null;
|
|
817
|
-
}
|
|
818
|
-
return parseOauthFlowLocator(value.locator) && isNonEmptyString$2(value.requestId) && isNonEmptyString$2(value.value) ? value : null;
|
|
819
|
-
}
|
|
820
|
-
function parseOauthFlowControlRequest(value) {
|
|
821
|
-
if (!isRecord$6(value) || !hasExactKeys$3(value, ["locator"])) return null;
|
|
822
|
-
return parseOauthFlowLocator(value.locator) ? value : null;
|
|
823
|
-
}
|
|
824
765
|
const COMPACT_STRATEGIES = [
|
|
825
766
|
"standard",
|
|
826
767
|
"smart",
|
|
@@ -878,7 +819,9 @@ const PLUGIN_EVENTS = [
|
|
|
878
819
|
"tool_result",
|
|
879
820
|
"input",
|
|
880
821
|
"context_usage",
|
|
881
|
-
"session_status"
|
|
822
|
+
"session_status",
|
|
823
|
+
"model_select",
|
|
824
|
+
"before_agent_start"
|
|
882
825
|
];
|
|
883
826
|
const HOST_PLUGIN_EVENTS = ["session_status"];
|
|
884
827
|
const isHostPluginEvent = (event) => HOST_PLUGIN_EVENTS.includes(event);
|
|
@@ -902,7 +845,15 @@ const CONTEXT_PART_KINDS = [
|
|
|
902
845
|
"chat"
|
|
903
846
|
];
|
|
904
847
|
const CONTEXT_PART_ITEMS = 24;
|
|
905
|
-
const PLUGIN_INTERCEPT_EVENTS = [
|
|
848
|
+
const PLUGIN_INTERCEPT_EVENTS = [
|
|
849
|
+
"tool_call",
|
|
850
|
+
"tool_result",
|
|
851
|
+
"input",
|
|
852
|
+
"before_agent_start"
|
|
853
|
+
];
|
|
854
|
+
const APPEND_ONLY_INTERCEPT_EVENTS = ["before_agent_start"];
|
|
855
|
+
const BEFORE_AGENT_START_APPEND_MAX = 16 * 1024;
|
|
856
|
+
const BEFORE_AGENT_START_PROMPT_MAX = 64 * 1024;
|
|
906
857
|
const BEFORE_COMPACT_TIMEOUT_MS = 1e4;
|
|
907
858
|
const INTERCEPT_TIMEOUT_MS = 5e3;
|
|
908
859
|
const INTERCEPT_TOTAL_TIMEOUT_MS = 25e3;
|
|
@@ -914,13 +865,13 @@ const CHILD_INTERCEPT_TOTAL_TIMEOUT_MS = 5e3;
|
|
|
914
865
|
const OBSERVE_TIMEOUT_MS = 3e4;
|
|
915
866
|
const isInterceptEvent = (event) => PLUGIN_INTERCEPT_EVENTS.includes(event);
|
|
916
867
|
const isChildInterceptEvent = (event) => CHILD_INTERCEPT_EVENTS.includes(event);
|
|
917
|
-
const isRecord$
|
|
868
|
+
const isRecord$6 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
918
869
|
function initialInterceptState(event, payload) {
|
|
919
870
|
const result = event === "input" ? { action: "continue" } : {};
|
|
920
871
|
return { event, payload, result, done: false };
|
|
921
872
|
}
|
|
922
873
|
function applyInterceptResult(state, raw) {
|
|
923
|
-
if (state.done || !isRecord$
|
|
874
|
+
if (state.done || !isRecord$6(raw)) return state;
|
|
924
875
|
if (state.event === "tool_call") {
|
|
925
876
|
const payload = state.payload;
|
|
926
877
|
const result = { ...state.result };
|
|
@@ -935,7 +886,7 @@ function applyInterceptResult(state, raw) {
|
|
|
935
886
|
}
|
|
936
887
|
};
|
|
937
888
|
}
|
|
938
|
-
if (!isRecord$
|
|
889
|
+
if (!isRecord$6(raw.input)) return state;
|
|
939
890
|
return {
|
|
940
891
|
...state,
|
|
941
892
|
payload: { ...payload, input: raw.input },
|
|
@@ -960,6 +911,17 @@ function applyInterceptResult(state, raw) {
|
|
|
960
911
|
result
|
|
961
912
|
};
|
|
962
913
|
}
|
|
914
|
+
if (state.event === "before_agent_start") {
|
|
915
|
+
if (typeof raw.append !== "string" || raw.append.length === 0) return state;
|
|
916
|
+
const previous = state.result.append;
|
|
917
|
+
const append = (previous ? `${previous}
|
|
918
|
+
|
|
919
|
+
${raw.append}` : raw.append).slice(
|
|
920
|
+
0,
|
|
921
|
+
BEFORE_AGENT_START_APPEND_MAX
|
|
922
|
+
);
|
|
923
|
+
return { ...state, result: { append } };
|
|
924
|
+
}
|
|
963
925
|
if (raw.action === "handled")
|
|
964
926
|
return { ...state, done: true, result: { action: "handled" } };
|
|
965
927
|
if (raw.action === "transform" && typeof raw.text === "string") {
|
|
@@ -975,6 +937,7 @@ function failClosedResult(event, pluginName) {
|
|
|
975
937
|
const reason = `插件 ${pluginName} 未能完成检查,已按其策略拒绝`;
|
|
976
938
|
if (event === "tool_call") return { block: true, reason };
|
|
977
939
|
if (event === "tool_result") return { content: reason, isError: true };
|
|
940
|
+
if (event === "before_agent_start") return {};
|
|
978
941
|
return { action: "handled" };
|
|
979
942
|
}
|
|
980
943
|
const PLUGIN_INJECT_MAX_CHARS = 32 * 1024;
|
|
@@ -1027,6 +990,10 @@ const PLUGIN_HOST_APIS = [
|
|
|
1027
990
|
"ui.notify",
|
|
1028
991
|
/** 推一条事件到本插件已打开的侧栏页面;args { name, data } */
|
|
1029
992
|
"ui.viewEvent",
|
|
993
|
+
/** 打开右侧栏并创建或定位到本插件的侧栏页面;args { viewId? } */
|
|
994
|
+
"ui.viewOpen",
|
|
995
|
+
/** 改清单声明过的输入框底栏状态项;args { id, text?, tooltip?, tone?, visible? } */
|
|
996
|
+
"ui.statusUpdate",
|
|
1030
997
|
"composer.readDraft",
|
|
1031
998
|
"composer.insertText",
|
|
1032
999
|
"composer.replaceDraft",
|
|
@@ -1306,19 +1273,19 @@ function planPhase(state) {
|
|
|
1306
1273
|
if (state.active) return "planning";
|
|
1307
1274
|
return state.executing ? "executing" : "off";
|
|
1308
1275
|
}
|
|
1309
|
-
const isRecord$
|
|
1276
|
+
const isRecord$5 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
1310
1277
|
const hasExactKeys$2 = (value, keys) => Object.keys(value).length === keys.length && keys.every((key) => key in value);
|
|
1311
1278
|
const nonEmpty = (value, max) => typeof value === "string" && value.trim().length > 0 && value.length <= max;
|
|
1312
1279
|
const isResolution = (value) => PLAN_RESOLUTIONS.includes(value);
|
|
1313
1280
|
function parsePlanDoc(value) {
|
|
1314
|
-
if (!isRecord$
|
|
1281
|
+
if (!isRecord$5(value) || !hasExactKeys$2(value, ["planId", "title", "text"])) return null;
|
|
1315
1282
|
const { planId, title, text } = value;
|
|
1316
1283
|
if (!nonEmpty(planId, 64) || !nonEmpty(title, PLAN_TITLE_MAX) || !nonEmpty(text, PLAN_TEXT_MAX))
|
|
1317
1284
|
return null;
|
|
1318
1285
|
return { planId, title, text };
|
|
1319
1286
|
}
|
|
1320
1287
|
function parsePlanEntry(value) {
|
|
1321
|
-
if (!isRecord$
|
|
1288
|
+
if (!isRecord$5(value) || value.v !== 1 || typeof value.at !== "number") return null;
|
|
1322
1289
|
const { at } = value;
|
|
1323
1290
|
switch (value.kind) {
|
|
1324
1291
|
case "mode":
|
|
@@ -1342,7 +1309,7 @@ function foldPlanState(entries) {
|
|
|
1342
1309
|
state.resolutions = { ...state.resolutions, [planId]: action2 };
|
|
1343
1310
|
};
|
|
1344
1311
|
for (const raw of entries) {
|
|
1345
|
-
if (!isRecord$
|
|
1312
|
+
if (!isRecord$5(raw) || raw.type !== "custom" || raw.customType !== PLAN_ENTRY_TYPE) continue;
|
|
1346
1313
|
const entry = parsePlanEntry(raw.data);
|
|
1347
1314
|
if (!entry) continue;
|
|
1348
1315
|
if (entry.kind === "mode") {
|
|
@@ -1368,7 +1335,7 @@ function foldPlanState(entries) {
|
|
|
1368
1335
|
return state;
|
|
1369
1336
|
}
|
|
1370
1337
|
function parsePlanState(value) {
|
|
1371
|
-
if (!isRecord$
|
|
1338
|
+
if (!isRecord$5(value) || typeof value.active !== "boolean" || !isRecord$5(value.resolutions))
|
|
1372
1339
|
return null;
|
|
1373
1340
|
const allowed = ["active", "resolutions", "pending", "executing"];
|
|
1374
1341
|
if (Object.keys(value).some((key) => !allowed.includes(key))) return null;
|
|
@@ -1556,8 +1523,37 @@ function parsePrivacyMaskSettings(value) {
|
|
|
1556
1523
|
allow: strings(v.allow)
|
|
1557
1524
|
};
|
|
1558
1525
|
}
|
|
1526
|
+
const HEADER_NAME_RE = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
1527
|
+
const INVALID_HEADER_VALUE_RE = /[^\t\x20-\x7e\x80-\xff]/;
|
|
1528
|
+
function isSendableHeaderValue(value) {
|
|
1529
|
+
return !INVALID_HEADER_VALUE_RE.test(value);
|
|
1530
|
+
}
|
|
1531
|
+
const droppedHeaderWarnings = /* @__PURE__ */ new Set();
|
|
1532
|
+
function warnDroppedHeader(name) {
|
|
1533
|
+
if (droppedHeaderWarnings.has(name)) return;
|
|
1534
|
+
droppedHeaderWarnings.add(name);
|
|
1535
|
+
console.warn(`[provider-headers] dropped ${name}: value cannot be sent as a header`);
|
|
1536
|
+
}
|
|
1537
|
+
function parseProviderHeaders(value) {
|
|
1538
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
|
|
1539
|
+
const headers = {};
|
|
1540
|
+
for (const [name, headerValue] of Object.entries(value)) {
|
|
1541
|
+
if (!HEADER_NAME_RE.test(name)) continue;
|
|
1542
|
+
if (typeof headerValue !== "string") continue;
|
|
1543
|
+
if (!isSendableHeaderValue(headerValue)) {
|
|
1544
|
+
warnDroppedHeader(name);
|
|
1545
|
+
continue;
|
|
1546
|
+
}
|
|
1547
|
+
headers[name] = headerValue;
|
|
1548
|
+
}
|
|
1549
|
+
return Object.keys(headers).length > 0 ? headers : void 0;
|
|
1550
|
+
}
|
|
1551
|
+
function escapePiConfigValue(value) {
|
|
1552
|
+
const doubled = value.replaceAll("$", () => "$$");
|
|
1553
|
+
return doubled.startsWith("!") ? `$${doubled}` : doubled;
|
|
1554
|
+
}
|
|
1559
1555
|
function parseRequestBodyUsage(value) {
|
|
1560
|
-
if (!isRecord$
|
|
1556
|
+
if (!isRecord$4(value)) return null;
|
|
1561
1557
|
const keys = ["bytes", "limitBytes", "stage", "blocked", "at"];
|
|
1562
1558
|
if (Object.keys(value).length !== keys.length || Object.keys(value).some((key) => !keys.includes(key)))
|
|
1563
1559
|
return null;
|
|
@@ -1571,7 +1567,7 @@ function parseRequestBodyUsage(value) {
|
|
|
1571
1567
|
at: value.at
|
|
1572
1568
|
};
|
|
1573
1569
|
}
|
|
1574
|
-
function isRecord$
|
|
1570
|
+
function isRecord$4(value) {
|
|
1575
1571
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
1576
1572
|
}
|
|
1577
1573
|
const cap = (text, limit) => text.length > limit ? `${text.slice(0, limit)}…` : text;
|
|
@@ -1643,6 +1639,98 @@ function parseSshTimeoutSeconds(value) {
|
|
|
1643
1639
|
if (value < MIN_SSH_TIMEOUT_SECONDS || value > MAX_SSH_TIMEOUT_SECONDS) return null;
|
|
1644
1640
|
return value;
|
|
1645
1641
|
}
|
|
1642
|
+
const TOOL_BATCH_LABEL_SYSTEM_PROMPT = `Write a short summary label describing what these tool calls accomplished. It appears as a single-line row in a mobile app and truncates around 30 characters, so think git-commit-subject, not sentence.
|
|
1643
|
+
|
|
1644
|
+
Keep the verb in past tense and the most distinctive noun. Drop articles, connectors, and long location context first. Reply in the same language as the intent text when there is one.
|
|
1645
|
+
|
|
1646
|
+
Examples:
|
|
1647
|
+
- Searched in auth/
|
|
1648
|
+
- Fixed NPE in UserService
|
|
1649
|
+
- Created signup endpoint
|
|
1650
|
+
- Read config.json
|
|
1651
|
+
- Ran failing tests`;
|
|
1652
|
+
const FIELD_CHARS = 300;
|
|
1653
|
+
const INTENT_CHARS = 200;
|
|
1654
|
+
const MAX_TOOLS = 8;
|
|
1655
|
+
const LABEL_CHARS = 60;
|
|
1656
|
+
const BOOKKEEPING_TOOLS = /* @__PURE__ */ new Set([
|
|
1657
|
+
"todo",
|
|
1658
|
+
"explore_mark",
|
|
1659
|
+
"explore_fold",
|
|
1660
|
+
"turn_discard",
|
|
1661
|
+
"ask_user"
|
|
1662
|
+
]);
|
|
1663
|
+
const clip = (text, max) => text.length > max ? `${text.slice(0, max - 1)}…` : text;
|
|
1664
|
+
const isRecord$3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1665
|
+
function contentText(content) {
|
|
1666
|
+
if (typeof content === "string") return content;
|
|
1667
|
+
if (!Array.isArray(content)) return "";
|
|
1668
|
+
return content.filter((part) => isRecord$3(part) && part.type === "text" && typeof part.text === "string").map((part) => part.text).join("\n");
|
|
1669
|
+
}
|
|
1670
|
+
function toolBatchDigest(message, toolResults) {
|
|
1671
|
+
if (!isRecord$3(message) || message.role !== "assistant" || !Array.isArray(message.content))
|
|
1672
|
+
return void 0;
|
|
1673
|
+
const calls = message.content.filter(
|
|
1674
|
+
(part) => isRecord$3(part) && part.type === "toolCall" && typeof part.id === "string" && part.id.length > 0 && typeof part.name === "string"
|
|
1675
|
+
);
|
|
1676
|
+
if (calls.length === 0 || calls.every((c) => BOOKKEEPING_TOOLS.has(c.name))) return void 0;
|
|
1677
|
+
const results = /* @__PURE__ */ new Map();
|
|
1678
|
+
for (const r of toolResults)
|
|
1679
|
+
if (isRecord$3(r) && typeof r.toolCallId === "string") results.set(r.toolCallId, r);
|
|
1680
|
+
const intent = contentText(message.content.filter((p) => isRecord$3(p) && p.type === "text")).trim().replace(/\s+/g, " ");
|
|
1681
|
+
return {
|
|
1682
|
+
callId: calls[0].id,
|
|
1683
|
+
...intent ? { intent: clip(intent, INTENT_CHARS) } : {},
|
|
1684
|
+
tools: calls.slice(0, MAX_TOOLS).map((c) => {
|
|
1685
|
+
const r = results.get(c.id);
|
|
1686
|
+
let input;
|
|
1687
|
+
try {
|
|
1688
|
+
input = JSON.stringify(c.arguments ?? {});
|
|
1689
|
+
} catch {
|
|
1690
|
+
input = "";
|
|
1691
|
+
}
|
|
1692
|
+
const output = contentText(r?.content).trim();
|
|
1693
|
+
return {
|
|
1694
|
+
name: c.name,
|
|
1695
|
+
input: clip(input, FIELD_CHARS),
|
|
1696
|
+
output: clip(r?.isError === true ? `error: ${output}` : output, FIELD_CHARS)
|
|
1697
|
+
};
|
|
1698
|
+
})
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
function toolBatchLabelPrompt(digest) {
|
|
1702
|
+
const tools = digest.tools.map((t) => `Tool: ${t.name}
|
|
1703
|
+
Input: ${t.input}
|
|
1704
|
+
Output: ${t.output}`).join("\n\n");
|
|
1705
|
+
const intent = digest.intent ? `User's intent (from assistant's last message): ${digest.intent}
|
|
1706
|
+
|
|
1707
|
+
` : "";
|
|
1708
|
+
return `${intent}Tools completed:
|
|
1709
|
+
|
|
1710
|
+
${tools}
|
|
1711
|
+
|
|
1712
|
+
Label:`;
|
|
1713
|
+
}
|
|
1714
|
+
function parseToolBatchDigest(value) {
|
|
1715
|
+
if (!isRecord$3(value) || typeof value.callId !== "string" || !value.callId) return null;
|
|
1716
|
+
if (value.intent !== void 0 && (typeof value.intent !== "string" || value.intent.length > INTENT_CHARS))
|
|
1717
|
+
return null;
|
|
1718
|
+
if (!Array.isArray(value.tools) || value.tools.length === 0 || value.tools.length > MAX_TOOLS)
|
|
1719
|
+
return null;
|
|
1720
|
+
const fieldOk = (v) => typeof v === "string" && v.length <= FIELD_CHARS;
|
|
1721
|
+
if (!value.tools.every(
|
|
1722
|
+
(t) => isRecord$3(t) && typeof t.name === "string" && t.name.length > 0 && t.name.length <= FIELD_CHARS && fieldOk(t.input) && fieldOk(t.output)
|
|
1723
|
+
))
|
|
1724
|
+
return null;
|
|
1725
|
+
return value;
|
|
1726
|
+
}
|
|
1727
|
+
function cleanToolBatchLabel(text) {
|
|
1728
|
+
const line = text.split("\n").map((l) => l.trim()).find(Boolean);
|
|
1729
|
+
if (!line) return void 0;
|
|
1730
|
+
const label = line.replace(/^label:\s*/i, "").replace(/^[-*•]\s+/, "").replace(/^["'`“”]+|["'`“”]+$/g, "").trim();
|
|
1731
|
+
if (!label || /^(error\b|i cannot\b|i can't\b|sorry\b)/i.test(label)) return void 0;
|
|
1732
|
+
return clip(label, LABEL_CHARS);
|
|
1733
|
+
}
|
|
1646
1734
|
const WEB_SEARCH_CHAIN_MAX = 8;
|
|
1647
1735
|
function isXaiResponsesHost(baseUrl) {
|
|
1648
1736
|
try {
|
|
@@ -2045,7 +2133,7 @@ const CONTEXT_OCCUPANCY_BUCKETS = [
|
|
|
2045
2133
|
"tools",
|
|
2046
2134
|
"conversation",
|
|
2047
2135
|
"compaction",
|
|
2048
|
-
//
|
|
2136
|
+
// 为已持久化的上下文占用快照保留;项目记忆功能已移除。
|
|
2049
2137
|
"projectMemory",
|
|
2050
2138
|
"reminders"
|
|
2051
2139
|
];
|
|
@@ -2074,7 +2162,14 @@ function isPluginToolList(value) {
|
|
|
2074
2162
|
if (!Array.isArray(value) || value.length > 200) return false;
|
|
2075
2163
|
const names = /* @__PURE__ */ new Set();
|
|
2076
2164
|
for (const tool of value) {
|
|
2077
|
-
if (!isRecord(tool) || !hasOnlyKeys(tool, [
|
|
2165
|
+
if (!isRecord(tool) || !hasOnlyKeys(tool, [
|
|
2166
|
+
"name",
|
|
2167
|
+
"description",
|
|
2168
|
+
"parameters",
|
|
2169
|
+
"pluginId",
|
|
2170
|
+
"timeoutMs",
|
|
2171
|
+
"readOnly"
|
|
2172
|
+
]) || tool.name === void 0 || tool.description === void 0 || tool.parameters === void 0 || tool.pluginId === void 0 || typeof tool.name !== "string" || typeof tool.description !== "string" || tool.description.length > 1024 || !isRecord(tool.parameters) || tool.timeoutMs !== void 0 && !isPluginToolTimeout(tool.timeoutMs) || tool.readOnly !== void 0 && typeof tool.readOnly !== "boolean" || parsePluginToolName(tool.name)?.pluginId !== tool.pluginId || names.has(tool.name))
|
|
2078
2173
|
return false;
|
|
2079
2174
|
names.add(tool.name);
|
|
2080
2175
|
}
|
|
@@ -2091,7 +2186,8 @@ function isPluginEventPlan(value) {
|
|
|
2091
2186
|
))
|
|
2092
2187
|
return false;
|
|
2093
2188
|
if (new Set(value.observe).size !== value.observe.length) return false;
|
|
2094
|
-
if (!Array.isArray(value.intercept) || value.intercept.length >
|
|
2189
|
+
if (!Array.isArray(value.intercept) || value.intercept.length > PLUGIN_INTERCEPT_EVENTS.length)
|
|
2190
|
+
return false;
|
|
2095
2191
|
const events = /* @__PURE__ */ new Set();
|
|
2096
2192
|
for (const item of value.intercept) {
|
|
2097
2193
|
if (!isRecord(item) || !hasOnlyKeys(item, ["event", "tools"]) || typeof item.event !== "string")
|
|
@@ -2118,9 +2214,18 @@ const isPluginObserveData = (event, data) => {
|
|
|
2118
2214
|
if (event === "agent_end")
|
|
2119
2215
|
return hasOnlyKeys(data, ["text"]) && (data.text === void 0 || typeof data.text === "string" && data.text.length <= AGENT_END_TEXT_MAX);
|
|
2120
2216
|
if (event === "context_usage") return isContextUsagePayload(data);
|
|
2217
|
+
if (event === "model_select") return isModelSelectPayload(data);
|
|
2121
2218
|
return (event === "session_start" || event === "session_end" || event === "after_compact") && hasExactKeys(data, ["reason"]) && isNonEmptyString(data.reason) && data.reason.length <= 64;
|
|
2122
2219
|
};
|
|
2123
2220
|
const isTokenCount = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
2221
|
+
const isModelRefPart = (value) => typeof value === "string" && value.length > 0 && value.length <= 256;
|
|
2222
|
+
const isModelSelectPayload = (data) => {
|
|
2223
|
+
if (!hasOnlyKeys(data, ["provider", "modelId", "previous", "source"])) return false;
|
|
2224
|
+
if (!isModelRefPart(data.provider) || !isModelRefPart(data.modelId)) return false;
|
|
2225
|
+
if (data.source !== "set" && data.source !== "cycle" && data.source !== "restore") return false;
|
|
2226
|
+
if (data.previous === void 0) return true;
|
|
2227
|
+
return isRecord(data.previous) && hasExactKeys(data.previous, ["provider", "modelId"]) && isModelRefPart(data.previous.provider) && isModelRefPart(data.previous.modelId);
|
|
2228
|
+
};
|
|
2124
2229
|
const isTokenRecord = (value, keys) => isRecord(value) && hasExactKeys(value, keys) && keys.every((key) => isTokenCount(value[key]));
|
|
2125
2230
|
const isContextUsagePayload = (data) => hasOnlyKeys(data, [
|
|
2126
2231
|
"used",
|
|
@@ -2136,6 +2241,9 @@ const isContextPartItem = (value) => isRecord(value) && hasOnlyKeys(value, ["nam
|
|
|
2136
2241
|
const isContextPart = (value) => isRecord(value) && hasExactKeys(value, ["kind", "tokens", "items"]) && CONTEXT_PART_KINDS.includes(value.kind) && isTokenCount(value.tokens) && Array.isArray(value.items) && value.items.length <= CONTEXT_PART_ITEMS && value.items.every(isContextPartItem);
|
|
2137
2242
|
const isPluginInterceptPayload = (event, payload) => {
|
|
2138
2243
|
if (!isRecord(payload)) return false;
|
|
2244
|
+
if (event === "before_agent_start") {
|
|
2245
|
+
return hasExactKeys(payload, ["prompt", "kind"]) && isBoundedText(payload.prompt, BEFORE_AGENT_START_PROMPT_MAX) && (payload.kind === "user" || payload.kind === "custom");
|
|
2246
|
+
}
|
|
2139
2247
|
if (event === "before_compact") {
|
|
2140
2248
|
return hasExactKeys(payload, ["reason"]) && isNonEmptyString(payload.reason) && payload.reason.length <= 64;
|
|
2141
2249
|
}
|
|
@@ -2256,9 +2364,27 @@ function parseContextOccupancy(value) {
|
|
|
2256
2364
|
const tokens = value.buckets[id];
|
|
2257
2365
|
if (!isSequence(tokens)) return null;
|
|
2258
2366
|
}
|
|
2259
|
-
|
|
2367
|
+
const parts = value.parts === void 0 ? void 0 : parseContextParts(value.parts);
|
|
2368
|
+
if (value.parts !== void 0 && !parts) return null;
|
|
2369
|
+
if (!isSequence(value.used) || !isSequence(value.compactedMessageCount) || typeof value.compactionModelMismatch !== "boolean" || value.contextWindow !== void 0 && !(typeof value.contextWindow === "number" && value.contextWindow > 0) || value.percent !== void 0 && !isSequence(value.percent) || value.compactionEntryId !== void 0 && !isNonEmptyString(value.compactionEntryId) || value.compactionTokensAfter !== void 0 && !isSequence(value.compactionTokensAfter)) {
|
|
2260
2370
|
return null;
|
|
2261
2371
|
}
|
|
2372
|
+
return { ...value, ...parts ? { parts } : {} };
|
|
2373
|
+
}
|
|
2374
|
+
function parseContextParts(value) {
|
|
2375
|
+
if (!Array.isArray(value) || value.length > CONTEXT_PART_KINDS.length) return null;
|
|
2376
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2377
|
+
for (const part of value) {
|
|
2378
|
+
if (!isRecord(part) || !CONTEXT_PART_KINDS.includes(part.kind) || seen.has(part.kind) || !isSequence(part.tokens) || !Array.isArray(part.items) || part.items.length > CONTEXT_PART_ITEMS) {
|
|
2379
|
+
return null;
|
|
2380
|
+
}
|
|
2381
|
+
seen.add(part.kind);
|
|
2382
|
+
for (const item of part.items) {
|
|
2383
|
+
if (!isRecord(item) || !isNonEmptyString(item.name) || typeof item.tag !== "string" || item.tag.length > 32 || !isSequence(item.tokens) || item.n !== void 0 && (!isSequence(item.n) || item.n < 1)) {
|
|
2384
|
+
return null;
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2262
2388
|
return value;
|
|
2263
2389
|
}
|
|
2264
2390
|
const isNonNegativeNumber = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
@@ -2328,14 +2454,20 @@ function parsePhysicalSpawnModelConfig(value) {
|
|
|
2328
2454
|
"reasoning",
|
|
2329
2455
|
"thinkingLevel",
|
|
2330
2456
|
"contextWindow",
|
|
2331
|
-
"maxTokens"
|
|
2457
|
+
"maxTokens",
|
|
2458
|
+
"headers"
|
|
2332
2459
|
]) || !MODEL_API_KINDS.includes(value.api) || typeof value.baseUrl !== "string" || typeof value.apiKey !== "string" || !isNonEmptyString(value.modelId) || !isNonEmptyString(value.settingsProviderId) || value.oauthAccountKey !== void 0 && !isNonEmptyString(value.oauthAccountKey) || value.oauthAccountPool !== void 0 && (!parseOauthAccountPool(value.oauthAccountPool) || !isCodexAccountKey(value.oauthAccountKey) || value.apiKey !== "")) {
|
|
2333
2460
|
return null;
|
|
2334
2461
|
}
|
|
2462
|
+
if (value.headers !== void 0) {
|
|
2463
|
+
const headers = parseProviderHeaders(value.headers);
|
|
2464
|
+
if (headers) value.headers = headers;
|
|
2465
|
+
else delete value.headers;
|
|
2466
|
+
}
|
|
2335
2467
|
return value;
|
|
2336
2468
|
}
|
|
2337
2469
|
function parseSubagentModelOption(value) {
|
|
2338
|
-
if (!isRecord(value) || !hasOnlyKeys(value, ["name", "config", "description"]) || !isNonEmptyString(value.name) || !
|
|
2470
|
+
if (!isRecord(value) || !hasOnlyKeys(value, ["name", "config", "description"]) || !isNonEmptyString(value.name) || !parseSessionModelConfig(value.config) || value.description !== void 0 && typeof value.description !== "string") {
|
|
2339
2471
|
return null;
|
|
2340
2472
|
}
|
|
2341
2473
|
return value;
|
|
@@ -2440,7 +2572,7 @@ function parseChildConversationMetadata(value) {
|
|
|
2440
2572
|
return null;
|
|
2441
2573
|
}
|
|
2442
2574
|
const typeKey = parseAgentTypeKey(value.agentTypeKey);
|
|
2443
|
-
if (!isNonEmptyString(value.parentId) || !isUuid(value.childGeneration) || !typeKey || !isUuid(value.agentInstanceId) || !isNonEmptyString(value.agentInstanceName) || value.dispatchOrigin !== "typed-mention" && value.dispatchOrigin !== "manual" && value.dispatchOrigin !== "agent-tool" || value.mode !== void 0 && value.mode !== "task" && value.mode !== "coworker" || typeKey
|
|
2575
|
+
if (!isNonEmptyString(value.parentId) || !isUuid(value.childGeneration) || !typeKey || !isUuid(value.agentInstanceId) || !isNonEmptyString(value.agentInstanceName) || value.dispatchOrigin !== "typed-mention" && value.dispatchOrigin !== "manual" && value.dispatchOrigin !== "agent-tool" || value.mode !== void 0 && value.mode !== "task" && value.mode !== "coworker" || !isValidLegacyProfile(typeKey, value.lockedProfileId)) {
|
|
2444
2576
|
return null;
|
|
2445
2577
|
}
|
|
2446
2578
|
return value;
|
|
@@ -2469,6 +2601,9 @@ function parseAgentSessionCustomEntry(value) {
|
|
|
2469
2601
|
const receipt = parseCapabilityReceipt(value.receipt);
|
|
2470
2602
|
return receipt ? { kind: "capability-receipt", receipt } : null;
|
|
2471
2603
|
}
|
|
2604
|
+
if (value.kind === "tool-batch-label") {
|
|
2605
|
+
return hasExactKeys(value, ["kind", "callId", "label", "at"]) && isNonEmptyString(value.callId) && isNonEmptyString(value.label) && value.label.length <= 200 && typeof value.at === "number" && Number.isFinite(value.at) ? value : null;
|
|
2606
|
+
}
|
|
2472
2607
|
const child = parseSafeChildRef(value.child);
|
|
2473
2608
|
if (!child || typeof value.at !== "number" || !Number.isFinite(value.at)) return null;
|
|
2474
2609
|
if (value.kind === "agent-dispatch" && hasExactKeys(value, ["kind", "child", "at"])) {
|
|
@@ -2494,9 +2629,6 @@ function parseResolvedChildProfileProof(value) {
|
|
|
2494
2629
|
]) || !isUuid(value.spawnSpecId) || !parseAgentTypeKey(value.typeKey) || !parseModelRef(value.model) || !Array.isArray(value.toolIds) || !value.toolIds.every(isNonEmptyString) || !Array.isArray(value.loadedSkillBindingIds) || !value.loadedSkillBindingIds.every(isNonEmptyString) || !Array.isArray(value.loadedMcpBindingIds) || !value.loadedMcpBindingIds.every(isNonEmptyString) || !isNonEmptyString(value.systemPromptHash)) {
|
|
2495
2630
|
return null;
|
|
2496
2631
|
}
|
|
2497
|
-
if (value.typeKey === "agent:enso" && (value.toolIds.length !== ENSO_LOCKED_TOOL_IDS.length || value.toolIds.some((toolId, index) => toolId !== ENSO_LOCKED_TOOL_IDS[index]) || value.loadedSkillBindingIds.length !== 0 || value.loadedMcpBindingIds.length !== 0)) {
|
|
2498
|
-
return null;
|
|
2499
|
-
}
|
|
2500
2632
|
return value;
|
|
2501
2633
|
}
|
|
2502
2634
|
function parseSafeJournalRecord(value) {
|
|
@@ -2540,8 +2672,7 @@ function parseResolvedAgentTypeSpawnConfig(value) {
|
|
|
2540
2672
|
"skillBindingIds",
|
|
2541
2673
|
"mcpServers",
|
|
2542
2674
|
"mcpBindingIds",
|
|
2543
|
-
"systemPromptHash"
|
|
2544
|
-
"lockedProfileId"
|
|
2675
|
+
"systemPromptHash"
|
|
2545
2676
|
]) || Object.keys(value).length < 12) {
|
|
2546
2677
|
return null;
|
|
2547
2678
|
}
|
|
@@ -2551,15 +2682,12 @@ function parseResolvedAgentTypeSpawnConfig(value) {
|
|
|
2551
2682
|
const mcpServers = Array.isArray(value.mcpServers) ? value.mcpServers : null;
|
|
2552
2683
|
const skillBindingIds = Array.isArray(value.skillBindingIds) ? value.skillBindingIds : null;
|
|
2553
2684
|
const mcpBindingIds = Array.isArray(value.mcpBindingIds) ? value.mcpBindingIds : null;
|
|
2554
|
-
if (!typeKey || !model || !isUuid(value.spawnSpecId) || !isNonEmptyString(value.displayName) || typeof value.description !== "string" || typeof value.systemPrompt !== "string" || value.tools !== "all" && value.tools !== "readonly"
|
|
2685
|
+
if (!typeKey || typeKey === LEGACY_ENSO_TYPE_KEY || !model || !isUuid(value.spawnSpecId) || !isNonEmptyString(value.displayName) || typeof value.description !== "string" || typeof value.systemPrompt !== "string" || value.tools !== "all" && value.tools !== "readonly" || value.allowedToolIds !== void 0 && (!Array.isArray(value.allowedToolIds) || !value.allowedToolIds.every(isNonEmptyString)) || !skillPaths || !skillPaths.every(isNonEmptyString) || !skillBindingIds || !skillBindingIds.every(isNonEmptyString) || !mcpServers || !mcpServers.every(isRecord) || !mcpBindingIds || !mcpBindingIds.every(isNonEmptyString) || skillBindingIds.length !== skillPaths.length || mcpBindingIds.length !== mcpServers.length || !isNonEmptyString(value.systemPromptHash)) {
|
|
2555
2686
|
return null;
|
|
2556
2687
|
}
|
|
2557
2688
|
if (value.reasoning !== void 0 && !MODEL_REASONING_OVERRIDES.includes(value.reasoning) || value.thinkingLevel !== void 0 && !MODEL_THINKING_LEVEL_OVERRIDES.includes(value.thinkingLevel)) {
|
|
2558
2689
|
return null;
|
|
2559
2690
|
}
|
|
2560
|
-
if (typeKey === "agent:enso" && (value.lockedProfileId !== ENSO_LOCKED_PROFILE_ID || value.tools !== "enso-locked" || value.reasoning !== void 0 || value.thinkingLevel !== void 0 || value.allowedToolIds !== void 0 || skillPaths.length !== 0 || skillBindingIds.length !== 0 || mcpServers.length !== 0 || mcpBindingIds.length !== 0) || typeKey !== "agent:enso" && (value.lockedProfileId !== void 0 || value.tools === "enso-locked")) {
|
|
2561
|
-
return null;
|
|
2562
|
-
}
|
|
2563
2691
|
return value;
|
|
2564
2692
|
}
|
|
2565
2693
|
function parseSessionSnapshot(value) {
|
|
@@ -2627,6 +2755,7 @@ function parseAgentCommand(value) {
|
|
|
2627
2755
|
"mcpServers",
|
|
2628
2756
|
"pluginCommands",
|
|
2629
2757
|
"pluginTools",
|
|
2758
|
+
"workflowPresetFiles",
|
|
2630
2759
|
"pluginEvents",
|
|
2631
2760
|
"pluginHooks",
|
|
2632
2761
|
"instruction",
|
|
@@ -2659,7 +2788,9 @@ function parseAgentCommand(value) {
|
|
|
2659
2788
|
"instanceId"
|
|
2660
2789
|
]) || !parseSessionIdentity(value.identity) || typeof value.cwd !== "string" || !parseSessionModelConfig(value.model) || value.resumeFile !== void 0 && !isNonEmptyString(value.resumeFile) || value.loadHarnessAssets !== void 0 && typeof value.loadHarnessAssets !== "boolean" || value.trustedProjectCode !== void 0 && !(Array.isArray(value.trustedProjectCode) && value.trustedProjectCode.length <= 500 && value.trustedProjectCode.every(
|
|
2661
2790
|
(entry) => typeof entry === "string" && entry.length > 0 && entry.length <= 1024
|
|
2662
|
-
)) || value.pluginCommands !== void 0 && parsePluginCommands(value.pluginCommands) === null || value.pluginTools !== void 0 && !isPluginToolList(value.pluginTools) || value.
|
|
2791
|
+
)) || value.pluginCommands !== void 0 && parsePluginCommands(value.pluginCommands) === null || value.pluginTools !== void 0 && !isPluginToolList(value.pluginTools) || value.workflowPresetFiles !== void 0 && !(Array.isArray(value.workflowPresetFiles) && value.workflowPresetFiles.length <= 500 && value.workflowPresetFiles.every(
|
|
2792
|
+
(entry) => typeof entry === "string" && entry.length > 0 && entry.length <= 1024
|
|
2793
|
+
)) || value.pluginEvents !== void 0 && !isPluginEventPlan(value.pluginEvents) || value.pluginHooks !== void 0 && parsePluginHooks(value.pluginHooks) === null || value.rtkEnabled !== void 0 && typeof value.rtkEnabled !== "boolean" || value.dcgPath !== void 0 && !isNonEmptyString(value.dcgPath) || value.planMode !== void 0 && typeof value.planMode !== "boolean" || value.windowsLocalShell !== void 0 && !WINDOWS_LOCAL_SHELLS.includes(
|
|
2663
2794
|
value.windowsLocalShell
|
|
2664
2795
|
) || value.exploreFoldEnabled !== void 0 && typeof value.exploreFoldEnabled !== "boolean" || value.editMode !== void 0 && !isEditMode(value.editMode) || value.hashlineEditEnabled !== void 0 && typeof value.hashlineEditEnabled !== "boolean" || value.compactStrategy !== void 0 && parseCompactStrategy(value.compactStrategy) === null || value.smartCompactEnabled !== void 0 && typeof value.smartCompactEnabled !== "boolean" || value.smartCompactSummaryModel !== void 0 && parseSpawnModelConfig(value.smartCompactSummaryModel) === null || value.smartCompactMode !== void 0 && parseSmartCompactMode(value.smartCompactMode) === null || value.memoryLanguage !== void 0 && typeof value.memoryLanguage !== "string" || value.remote !== void 0 && parseAgentRemoteConfig(value.remote) === null || value.subagentModels !== void 0 && (!Array.isArray(value.subagentModels) || value.subagentModels.some((entry) => parseSubagentModelOption(entry) === null)) || value.approvalReviewer !== void 0 && parseSpawnModelConfig(value.approvalReviewer) === null || value.approvalReviewerAllowThreshold !== void 0 && (!isApprovalAllowThreshold(value.approvalReviewerAllowThreshold) || value.approvalReviewerClassifier === void 0) || value.approvalReviewerManaged !== void 0 && (value.approvalReviewerManaged !== true || value.approvalReviewerClassifier === void 0) || value.approvalReviewerClassifier !== void 0 && (value.approvalReviewer !== void 0 || !parseClassifierCredentials(value.approvalReviewerClassifier)) || value.rolePrompt !== void 0 && !isNonEmptyString(value.rolePrompt) || value.systemPrompt !== void 0 && !isNonEmptyString(value.systemPrompt) || value.systemPromptAppend !== void 0 && !isNonEmptyString(value.systemPromptAppend) || value.systemPromptBoost !== void 0 && !isNonEmptyString(value.systemPromptBoost) || value.refusalRetryPrompt !== void 0 && !isNonEmptyString(value.refusalRetryPrompt) || value.botMode !== void 0 && typeof value.botMode !== "boolean" || value.botGroupTasks !== void 0 && typeof value.botGroupTasks !== "boolean" || value.botDiscussMode !== void 0 && typeof value.botDiscussMode !== "boolean" || value.botDiscussMode === true && (value.botMode !== true || value.botGroupTasks !== true) || value.botRoutines !== void 0 && typeof value.botRoutines !== "boolean" || value.botDelegationTask !== void 0 && typeof value.botDelegationTask !== "boolean" || value.botWriteLock !== void 0 && (!isRecord(value.botWriteLock) || !isNonEmptyString(value.botWriteLock.label) || !Array.isArray(value.botWriteLock.ancestors) || !value.botWriteLock.ancestors.every(isNonEmptyString)) || value.protectedActions !== void 0 && typeof value.protectedActions !== "boolean" || value.instanceId !== void 0 && !isUuid(value.instanceId)) {
|
|
2665
2796
|
return null;
|
|
@@ -2780,8 +2911,6 @@ function parseAgentCommand(value) {
|
|
|
2780
2911
|
return hasExactKeys(value, ["type", "snapshot", "customProviders"]) ? value : null;
|
|
2781
2912
|
case "ask-respond":
|
|
2782
2913
|
return hasExactKeys(value, ["type", "identity", "requestId", "answer"]) && parseAnySessionIdentity(value.identity) && isNonEmptyString(value.requestId) && isNonEmptyString(value.answer) ? value : null;
|
|
2783
|
-
case "capability-result":
|
|
2784
|
-
return hasExactKeys(value, ["type", "child", "turnId", "requestId", "envelope"]) && parseChildSessionIdentity(value.child) && isNonEmptyString(value.turnId) && isNonEmptyString(value.requestId) && parseCapabilityExecutionEnvelope(value.envelope) ? value : null;
|
|
2785
2914
|
case "browser-result":
|
|
2786
2915
|
case "memory-result":
|
|
2787
2916
|
case "delegation-result":
|
|
@@ -2837,6 +2966,8 @@ function parseAgentCommand(value) {
|
|
|
2837
2966
|
case "abort-retry":
|
|
2838
2967
|
case "release-parent":
|
|
2839
2968
|
return hasExactKeys(value, ["type", "identity"]) && parseAnySessionIdentity(value.identity) ? value : null;
|
|
2969
|
+
case "withdraw-steer":
|
|
2970
|
+
return hasExactKeys(value, ["type", "identity", "deliveryId"]) && parseAnySessionIdentity(value.identity) && isDeliveryId(value.deliveryId) ? value : null;
|
|
2840
2971
|
case "retry":
|
|
2841
2972
|
return hasOnlyKeys(value, ["type", "identity", "instanceId", "unfinishedOnly"]) && parseAnySessionIdentity(value.identity) && (value.unfinishedOnly === void 0 || value.unfinishedOnly === true) && (value.instanceId === void 0 || isUuid(value.instanceId) && parseSessionIdentity(value.identity) !== null) ? value : null;
|
|
2842
2973
|
case "append-session-custom-entry":
|
|
@@ -2933,9 +3064,6 @@ function parseAgentWorkerEvent(value) {
|
|
|
2933
3064
|
if (value.type === "snapshot") {
|
|
2934
3065
|
return Array.isArray(value.sessions) && value.sessions.every((session) => parseSessionSnapshot(session) !== null) ? value : null;
|
|
2935
3066
|
}
|
|
2936
|
-
if (value.type === "capability-invoke") {
|
|
2937
|
-
return parseChildSessionIdentity(value.child) && isSequence(value.seq) && isNonEmptyString(value.turnId) && isNonEmptyString(value.requestId) && isProductSurfaceId(value.capabilityId) && Object.hasOwn(value, "params") ? value : null;
|
|
2938
|
-
}
|
|
2939
3067
|
if (value.type === "mcp-status") {
|
|
2940
3068
|
return hasOnlyKeys(value, [
|
|
2941
3069
|
"type",
|
|
@@ -2956,6 +3084,9 @@ function parseAgentWorkerEvent(value) {
|
|
|
2956
3084
|
if (value.type === "title-failed") {
|
|
2957
3085
|
return hasExactKeys(value, ["type", "conversationId", "error"]) && isNonEmptyString(value.conversationId) && isNonEmptyString(value.error) ? value : null;
|
|
2958
3086
|
}
|
|
3087
|
+
if (value.type === "tool-batch-completed") {
|
|
3088
|
+
return hasExactKeys(value, ["type", "identity", "digest"]) && parseSessionIdentity(value.identity) && parseToolBatchDigest(value.digest) ? value : null;
|
|
3089
|
+
}
|
|
2959
3090
|
if (value.type === "text-delta") {
|
|
2960
3091
|
return hasOnlyKeys(value, ["type", "requestId", "text", "thinking"]) && isNonEmptyString(value.requestId) && typeof value.text === "string" && (value.thinking === void 0 || typeof value.thinking === "string") ? value : null;
|
|
2961
3092
|
}
|
|
@@ -3026,7 +3157,7 @@ function parseAgentWorkerEvent(value) {
|
|
|
3026
3157
|
case "message-upsert":
|
|
3027
3158
|
return isSequence(value.index) && isRecord(value.message) && hasValidProjectedMetadata(value.message) ? value : null;
|
|
3028
3159
|
case "turn-completed":
|
|
3029
|
-
return isNonEmptyString(value.turnId) && (value.digest === void 0 || parseTurnDigest(value.digest)) && (value.requestBudgetStop === void 0 || value.requestBudgetStop === true) && (value.requestBudgetError === void 0 || value.requestBudgetStop === true && isNonEmptyString(value.requestBudgetError)) ? value : null;
|
|
3160
|
+
return isNonEmptyString(value.turnId) && (value.digest === void 0 || parseTurnDigest(value.digest)) && (value.aborted === void 0 || value.aborted === true) && (value.requestBudgetStop === void 0 || value.requestBudgetStop === true) && (value.requestBudgetError === void 0 || value.requestBudgetStop === true && isNonEmptyString(value.requestBudgetError)) ? value : null;
|
|
3030
3161
|
case "turn-failed":
|
|
3031
3162
|
return isNonEmptyString(value.turnId) && isNonEmptyString(value.error) && (value.undelivered === void 0 || value.undelivered === true) && (value.retryExhausted === void 0 || value.retryExhausted === true) ? value : null;
|
|
3032
3163
|
case "turn-retry":
|
|
@@ -3062,7 +3193,7 @@ function parseAgentWorkerEvent(value) {
|
|
|
3062
3193
|
case "ask-resolved":
|
|
3063
3194
|
return isNonEmptyString(value.requestId) ? value : null;
|
|
3064
3195
|
case "ask-request":
|
|
3065
|
-
return isRecord(value.ask) && isNonEmptyString(value.ask.requestId) && isNonEmptyString(value.ask.question) && isOptionalTimestamp(value.ask.expiresAt) ? value : null;
|
|
3196
|
+
return isRecord(value.ask) && isNonEmptyString(value.ask.requestId) && isNonEmptyString(value.ask.question) && isOptionalTimestamp(value.ask.expiresAt) && (value.ask.recommended === void 0 || Array.isArray(value.ask.options) && value.ask.options.includes(value.ask.recommended)) ? value : null;
|
|
3066
3197
|
case "subagent-update":
|
|
3067
3198
|
return isRecord(value.agent) ? value : null;
|
|
3068
3199
|
case "coworker-update":
|
|
@@ -3093,107 +3224,107 @@ function parseAgentWorkerEvent(value) {
|
|
|
3093
3224
|
}
|
|
3094
3225
|
}
|
|
3095
3226
|
export {
|
|
3096
|
-
|
|
3227
|
+
isPluginEntry as $,
|
|
3097
3228
|
AGENT_END_TEXT_MAX as A,
|
|
3098
|
-
|
|
3229
|
+
BEFORE_AGENT_START_PROMPT_MAX as B,
|
|
3099
3230
|
CONTEXT_OCCUPANCY_BUCKETS as C,
|
|
3100
3231
|
DEFAULT_MAX_ACTIVE_COWORKERS as D,
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3232
|
+
toolBatchDigest as E,
|
|
3233
|
+
splitPlanPrefix as F,
|
|
3234
|
+
parsePlanMessage as G,
|
|
3235
|
+
isClassifierOnlyProvider as H,
|
|
3236
|
+
isOauthAccountPool as I,
|
|
3237
|
+
resolveEditMode as J,
|
|
3238
|
+
EMPTY_PLAN_STATE as K,
|
|
3239
|
+
mergeMaskReports as L,
|
|
3109
3240
|
MODEL_API_KINDS as M,
|
|
3110
|
-
|
|
3111
|
-
|
|
3241
|
+
PRIVACY_MASK_ENTRY as N,
|
|
3242
|
+
parseAgentCommand as O,
|
|
3112
3243
|
PLUGIN_MESSAGE_TYPE as P,
|
|
3113
|
-
|
|
3114
|
-
|
|
3244
|
+
pluginToolName as Q,
|
|
3245
|
+
parseWebSearchChain as R,
|
|
3115
3246
|
STALE_SESSION_ERROR as S,
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3247
|
+
APPROVAL_MODES as T,
|
|
3248
|
+
THINKING_LEVELS as U,
|
|
3249
|
+
parseChildConversationMetadata as V,
|
|
3250
|
+
eligibleOauthPoolAccountKeys as W,
|
|
3251
|
+
normalizeSshTimeoutSeconds as X,
|
|
3252
|
+
CLAUDE_HOOK_EVENTS as Y,
|
|
3253
|
+
isReservedAgentTypeName as Z,
|
|
3254
|
+
BUILTIN_AGENT_TYPES as _,
|
|
3255
|
+
parseSessionIdentity as a,
|
|
3256
|
+
parseGeneratedImagePaths as a$,
|
|
3257
|
+
PLUGIN_HOST_APIS as a0,
|
|
3258
|
+
PLUGIN_INJECT_MAX_CHARS as a1,
|
|
3259
|
+
parsePluginInjectImages as a2,
|
|
3260
|
+
isHostPluginEvent as a3,
|
|
3261
|
+
parsePluginToolName as a4,
|
|
3262
|
+
initialInterceptState as a5,
|
|
3263
|
+
CHILD_INTERCEPT_TOTAL_TIMEOUT_MS as a6,
|
|
3264
|
+
INTERCEPT_TOTAL_TIMEOUT_MS as a7,
|
|
3265
|
+
CHILD_INTERCEPT_TIMEOUT_MS as a8,
|
|
3266
|
+
INTERCEPT_TIMEOUT_MS as a9,
|
|
3267
|
+
BOT_AVATAR_HOST as aA,
|
|
3268
|
+
PLUGIN_ASSET_HOST as aB,
|
|
3269
|
+
mediaExtension as aC,
|
|
3270
|
+
localImageUrlToPath as aD,
|
|
3271
|
+
isMediaPath as aE,
|
|
3272
|
+
isVideoPath as aF,
|
|
3273
|
+
IMAGE_EXTENSIONS as aG,
|
|
3274
|
+
parseCreateConversationAuthorityRequest as aH,
|
|
3275
|
+
parseConversationAuthorityRequest as aI,
|
|
3276
|
+
parseUpdateConversationSelectionRequest as aJ,
|
|
3277
|
+
parseTitleSummaryInput as aK,
|
|
3278
|
+
parseParentSourceBindingRequest as aL,
|
|
3279
|
+
parseParentModelSelectionRequest as aM,
|
|
3280
|
+
parseAgentDispatchRequest as aN,
|
|
3281
|
+
isApprovalDecision as aO,
|
|
3282
|
+
cleanToolBatchLabel as aP,
|
|
3283
|
+
toolBatchLabelPrompt as aQ,
|
|
3284
|
+
TOOL_BATCH_LABEL_SYSTEM_PROMPT as aR,
|
|
3285
|
+
SHELL_LIMITS as aS,
|
|
3286
|
+
TITLE_SUMMARY_MAX_CANDIDATES as aT,
|
|
3287
|
+
parseCreateProjectAuthorityRequest as aU,
|
|
3288
|
+
parseSelectProjectAuthorityRequest as aV,
|
|
3289
|
+
parseRemoveProjectAuthorityRequest as aW,
|
|
3290
|
+
withVersionSegment as aX,
|
|
3291
|
+
DEFAULT_BASE_URLS as aY,
|
|
3292
|
+
PROJECTED_FILE_TEXT_LIMIT as aZ,
|
|
3293
|
+
imageGenerationPreviewPaths as a_,
|
|
3294
|
+
applyInterceptResult as aa,
|
|
3295
|
+
failClosedResult as ab,
|
|
3296
|
+
OBSERVE_TIMEOUT_MS as ac,
|
|
3297
|
+
BEFORE_COMPACT_TIMEOUT_MS as ad,
|
|
3298
|
+
PLUGIN_PROGRESS_MAX_CHARS as ae,
|
|
3299
|
+
MCP_TRANSPORTS as af,
|
|
3300
|
+
parsePrivacyMaskRecord as ag,
|
|
3301
|
+
hasProviderCredentials as ah,
|
|
3302
|
+
parseAgentWorkerEvent as ai,
|
|
3303
|
+
parseWindowsLocalShell as aj,
|
|
3304
|
+
parseSmartCompactMode as ak,
|
|
3305
|
+
resolveImageGenerationConfig as al,
|
|
3306
|
+
normalizeMaxActiveCoworkers as am,
|
|
3307
|
+
normalizeAutoRetryLimit as an,
|
|
3308
|
+
parsePrivacyMaskSettings as ao,
|
|
3309
|
+
parseDisabledWorkflowPresets as ap,
|
|
3310
|
+
DEFAULT_APPROVAL_ALLOW_THRESHOLD as aq,
|
|
3311
|
+
visibleMemberAgentTypes as ar,
|
|
3312
|
+
buildAgentTypeRegistrySnapshot as as,
|
|
3313
|
+
resolveShellLimits as at,
|
|
3314
|
+
DEFAULT_PRESET_ID as au,
|
|
3315
|
+
AGENT_WAIT_DEFAULT_MS as av,
|
|
3316
|
+
AGENT_WAIT_MAX_MS as aw,
|
|
3317
|
+
isDeliveryId as ax,
|
|
3318
|
+
LOCAL_IMAGE_SCHEME as ay,
|
|
3319
|
+
REMOTE_FETCH_HOST as az,
|
|
3320
|
+
parseApprovalAllowThreshold as b,
|
|
3321
|
+
parseMaskReport as b0,
|
|
3322
|
+
parsePluginMessageSource as b1,
|
|
3323
|
+
parseRtkToolStats as b2,
|
|
3324
|
+
isBackgroundTaskId as b3,
|
|
3325
|
+
parseShellFailure as b4,
|
|
3326
|
+
pluginArtifactsFromToolDetails as b5,
|
|
3327
|
+
parseApprovalReviewRecord as b6,
|
|
3197
3328
|
PROJECTED_FILE_CHANGE_LIMIT as b7,
|
|
3198
3329
|
PROJECTED_APPLY_PATCH_PATH_TEXT_LIMIT as b8,
|
|
3199
3330
|
PROJECTED_APPLY_PATCH_PATH_COUNT_LIMIT as b9,
|
|
@@ -3212,29 +3343,30 @@ export {
|
|
|
3212
3343
|
isWorkflowPresetId as bm,
|
|
3213
3344
|
PLUGIN_EVENTS as bn,
|
|
3214
3345
|
isInterceptEvent as bo,
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3346
|
+
APPEND_ONLY_INTERCEPT_EVENTS as bp,
|
|
3347
|
+
isProbability as c,
|
|
3348
|
+
CONTEXT_PART_ITEMS as d,
|
|
3349
|
+
parseProviderHeaders as e,
|
|
3350
|
+
escapePiConfigValue as f,
|
|
3351
|
+
MODEL_REASONING_OVERRIDES as g,
|
|
3352
|
+
MODEL_THINKING_LEVEL_OVERRIDES as h,
|
|
3221
3353
|
isApprovalReviewReason as i,
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3354
|
+
isCodexAccountKey as j,
|
|
3355
|
+
classifyCodexPoolFailure as k,
|
|
3356
|
+
isUuid as l,
|
|
3357
|
+
isChildInterceptEvent as m,
|
|
3358
|
+
CONTEXT_USAGE_BUCKETS as n,
|
|
3359
|
+
BEFORE_AGENT_START_APPEND_MAX as o,
|
|
3360
|
+
parseChildSessionIdentity as p,
|
|
3361
|
+
MaskReportBuilder as q,
|
|
3230
3362
|
resolvePiProviderBaseUrl as r,
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3363
|
+
DEFAULT_AUTO_RETRY_LIMIT as s,
|
|
3364
|
+
isSameChildSessionIdentity as t,
|
|
3365
|
+
resolveCompactStrategy as u,
|
|
3366
|
+
DEFAULT_SSH_TIMEOUT_SECONDS as v,
|
|
3235
3367
|
workspaceBranchChangedNote as w,
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3368
|
+
PLAN_ENTRY_TYPE as x,
|
|
3369
|
+
autoRetryOverrides as y,
|
|
3370
|
+
parseAgentSessionCustomEntry as z
|
|
3239
3371
|
};
|
|
3240
|
-
//# sourceMappingURL=agent-
|
|
3372
|
+
//# sourceMappingURL=agent-_G_O-Cpa.js.map
|