personal-bot 0.3.1 → 0.3.3
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -1
- package/DISCLAIMER.md +17 -0
- package/LICENSE +21 -0
- package/README.md +15 -5
- package/README.zh-CN.md +15 -5
- package/bin/pbot-pi-acp.mjs +27 -11
- package/bin/pbot.mjs +22 -2
- package/docs/README.md +3 -1
- package/docs/architecture/design.md +37 -24
- package/docs/architecture/extensibility.md +27 -19
- package/docs/architecture/model-context.md +4 -3
- package/docs/architecture/principles.md +5 -4
- package/docs/guides/capabilities.md +4 -4
- package/docs/guides/cross-harness-workers.md +3 -1
- package/docs/guides/history.md +73 -16
- package/docs/guides/workspace-configuration.md +35 -6
- package/docs/hosts/antigravity.md +2 -0
- package/docs/hosts/claude-code.md +1 -1
- package/docs/hosts/codex-qoder.md +63 -0
- package/docs/hosts/dsh.md +1 -1
- package/docs/hosts/pi.md +1 -1
- package/docs/maintainers/architecture-governance.md +78 -0
- package/hooks/hooks.json +3 -0
- package/lib/antigravity-plugin/DISCLAIMER.md +17 -0
- package/lib/antigravity-plugin/LICENSE +21 -0
- package/lib/antigravity-plugin/bin/pbot-pi-acp.mjs +36 -0
- package/lib/antigravity-plugin/hooks.json +7 -0
- package/lib/antigravity-plugin/lib/claude.js +2 -2
- package/lib/antigravity-plugin/lib/common/files.d.ts +2 -0
- package/lib/antigravity-plugin/lib/common/files.js +44 -0
- package/lib/antigravity-plugin/lib/common/validation.d.ts +4 -0
- package/lib/antigravity-plugin/lib/common/validation.js +8 -0
- package/lib/{extension/acp-member.d.ts → antigravity-plugin/lib/extension/acp/member.d.ts} +5 -5
- package/lib/{extension/acp-member.js → antigravity-plugin/lib/extension/acp/member.js} +6 -6
- package/lib/antigravity-plugin/lib/extension/acp-worker.js +222 -51
- package/lib/antigravity-plugin/lib/extension/hosts/dsh/acp-entry.d.ts +1 -0
- package/lib/antigravity-plugin/lib/extension/hosts/dsh/acp-entry.js +22 -0
- package/lib/{extension → antigravity-plugin/lib/extension/hosts}/dsh/acp-member.js +11 -25
- package/lib/{extension → antigravity-plugin/lib/extension/hosts}/dsh/files.js +3 -3
- package/lib/antigravity-plugin/lib/extension/hosts/pi/acp-member.d.ts +3 -0
- package/lib/antigravity-plugin/lib/extension/hosts/pi/acp-member.js +100 -0
- package/lib/antigravity-plugin/lib/extension/hosts/plugin-runtime.d.ts +12 -0
- package/lib/antigravity-plugin/lib/extension/hosts/plugin-runtime.js +101 -0
- package/lib/antigravity-plugin/lib/extension/hosts/workspace-mcp.d.ts +6 -0
- package/lib/antigravity-plugin/lib/extension/hosts/workspace-mcp.js +21 -0
- package/lib/antigravity-plugin/lib/extension/mcp.js +2705 -1348
- package/lib/antigravity-plugin/lib/extension/workspace-cli.js +20127 -0
- package/lib/antigravity-plugin/lib/integrations/agent-resources.d.ts +1 -0
- package/lib/antigravity-plugin/lib/integrations/agent-resources.js +6 -2
- package/lib/antigravity-plugin/lib/integrations/hosts/antigravity/adapter.d.ts +6 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/antigravity/adapter.js +171 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/{claude.d.ts → claude/adapter.d.ts} +1 -1
- package/lib/antigravity-plugin/lib/integrations/hosts/claude/adapter.js +36 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/codex/adapter.d.ts +2 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/codex/adapter.js +14 -0
- package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/mcp.d.ts +1 -1
- package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/resources.d.ts +1 -1
- package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/resources.js +4 -4
- package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/skills.js +1 -1
- package/lib/antigravity-plugin/lib/integrations/hosts/pi/agent-tools.d.ts +3 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/pi/agent-tools.js +32 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/pi/mcp.d.ts +4 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/pi/mcp.js +23 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/{registry.d.ts → plugin-registry.d.ts} +1 -0
- package/lib/{integrations/hosts/registry.js → antigravity-plugin/lib/integrations/hosts/plugin-registry.js} +10 -3
- package/lib/antigravity-plugin/lib/integrations/hosts/prompt-hooks.d.ts +76 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/prompt-hooks.js +76 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/qoder/adapter.d.ts +2 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/qoder/adapter.js +16 -0
- package/lib/antigravity-plugin/lib/model/acp.d.ts +7 -3
- package/lib/antigravity-plugin/lib/model/acp.js +8 -0
- package/lib/antigravity-plugin/lib/model/agent.d.ts +121 -0
- package/lib/antigravity-plugin/lib/model/agent.js +4 -0
- package/lib/antigravity-plugin/lib/model/history.d.ts +179 -0
- package/lib/antigravity-plugin/lib/model/history.js +4 -0
- package/lib/antigravity-plugin/lib/model/plugin-host.d.ts +31 -0
- package/lib/antigravity-plugin/lib/model/workspace-config.d.ts +28 -7
- package/lib/antigravity-plugin/lib/model/workspace-config.js +2 -1
- package/lib/antigravity-plugin/lib/plugin.d.ts +2 -1
- package/lib/antigravity-plugin/lib/plugin.js +4 -4
- package/lib/antigravity-plugin/lib/services/history/history-capture.d.ts +4 -0
- package/lib/antigravity-plugin/lib/services/history/history-capture.js +98 -0
- package/lib/antigravity-plugin/lib/services/history/history-index.d.ts +17 -0
- package/lib/antigravity-plugin/lib/services/history/history-index.js +112 -0
- package/lib/antigravity-plugin/lib/services/history/summary-dimensions/monthly.d.ts +7 -0
- package/lib/antigravity-plugin/lib/services/history/summary-dimensions/monthly.js +121 -0
- package/lib/antigravity-plugin/lib/services/history/summary-dimensions/session.d.ts +7 -0
- package/lib/antigravity-plugin/lib/services/history/summary-dimensions/session.js +124 -0
- package/lib/antigravity-plugin/lib/services/history/summary-registry.d.ts +7 -0
- package/lib/antigravity-plugin/lib/services/history/summary-registry.js +35 -0
- package/lib/antigravity-plugin/lib/services/history/summary-runner.d.ts +34 -0
- package/lib/antigravity-plugin/lib/services/history/summary-runner.js +299 -0
- package/lib/antigravity-plugin/lib/services/history/workspace-history.d.ts +3 -0
- package/lib/antigravity-plugin/lib/services/history/workspace-history.js +6 -0
- package/lib/antigravity-plugin/lib/services/workspace/plugin-releases.d.ts +3 -0
- package/lib/antigravity-plugin/lib/services/workspace/plugin-releases.js +78 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-config.d.ts +5 -1
- package/lib/antigravity-plugin/lib/services/workspace/workspace-config.js +77 -7
- package/lib/antigravity-plugin/lib/services/workspace/workspace-files.d.ts +2 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-files.js +17 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-mcp.d.ts +14 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-mcp.js +193 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-skills.d.ts +1 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-skills.js +4 -2
- package/lib/antigravity-plugin/lib/storage/acp-files.d.ts +11 -0
- package/lib/antigravity-plugin/lib/storage/acp-files.js +75 -0
- package/lib/antigravity-plugin/lib/storage/agent-files.d.ts +31 -0
- package/lib/antigravity-plugin/lib/storage/agent-files.js +159 -0
- package/lib/antigravity-plugin/lib/storage/atomic-json.d.ts +3 -1
- package/lib/antigravity-plugin/lib/storage/atomic-json.js +43 -3
- package/lib/antigravity-plugin/lib/storage/file-access.d.ts +2 -0
- package/lib/antigravity-plugin/lib/storage/file-access.js +26 -0
- package/lib/antigravity-plugin/lib/storage/history-files.d.ts +55 -0
- package/lib/antigravity-plugin/lib/storage/history-files.js +473 -0
- package/lib/antigravity-plugin/lib/storage/history-format.d.ts +5 -0
- package/lib/antigravity-plugin/lib/storage/history-format.js +60 -0
- package/lib/antigravity-plugin/package.json +1 -1
- package/lib/antigravity-plugin/plugin.json +1 -1
- package/lib/antigravity-plugin/resources/prompts/history-monthly-summary.md +13 -0
- package/lib/antigravity-plugin/resources/prompts/history-summary.md +13 -0
- package/lib/antigravity-plugin/resources/prompts/plugin-coordinator.md +1 -0
- package/lib/antigravity-plugin/resources/skills/.claude-plugin/plugin.json +4 -0
- package/lib/antigravity-plugin/resources/skills/project-maintenance/SKILL.md +35 -0
- package/lib/antigravity-plugin/resources/skills/provider-connections/SKILL.md +52 -0
- package/lib/antigravity-plugin/skills/pbot/SKILL.md +11 -1
- package/lib/antigravity-plugin/skills/provider-connections/SKILL.md +22 -12
- package/lib/claude.js +2 -2
- package/lib/client.js +42 -60
- package/lib/codex-marketplace/.agents/plugins/marketplace.json +17 -0
- package/lib/codex-marketplace/plugins/personal-bot/.codex-plugin/plugin.json +7 -0
- package/lib/codex-marketplace/plugins/personal-bot/.mcp.json +17 -0
- package/lib/codex-marketplace/plugins/personal-bot/DISCLAIMER.md +17 -0
- package/lib/codex-marketplace/plugins/personal-bot/LICENSE +21 -0
- package/lib/codex-marketplace/plugins/personal-bot/hooks/hooks.json +37 -0
- package/lib/codex-marketplace/plugins/personal-bot/skills/pbot/SKILL.md +9 -0
- package/lib/codex-marketplace/plugins/personal-bot/skills/pbot/agents/openai.yaml +2 -0
- package/lib/common/validation.d.ts +4 -0
- package/lib/common/validation.js +8 -0
- package/lib/dsh.js +6 -6
- package/lib/extension/acp/member.d.ts +18 -0
- package/lib/extension/acp/member.js +44 -0
- package/lib/extension/acp/worker.js +384 -0
- package/lib/extension/acp-worker.js +222 -51
- package/lib/extension/history/command.d.ts +37 -0
- package/lib/extension/history/command.js +57 -0
- package/lib/extension/hosts/dsh/acp-entry.d.ts +1 -0
- package/lib/extension/hosts/dsh/acp-entry.js +22 -0
- package/lib/extension/hosts/dsh/acp-member.d.ts +4 -0
- package/lib/extension/hosts/dsh/acp-member.js +58 -0
- package/lib/extension/{dsh → hosts/dsh}/command.d.ts +1 -2
- package/lib/extension/{dsh → hosts/dsh}/command.js +9 -11
- package/lib/extension/hosts/dsh/files.d.ts +5 -0
- package/lib/extension/hosts/dsh/files.js +67 -0
- package/lib/extension/hosts/dsh/history.d.ts +4 -0
- package/lib/extension/hosts/dsh/history.js +62 -0
- package/lib/extension/{dsh → hosts/dsh}/management.d.ts +1 -1
- package/lib/extension/{dsh → hosts/dsh}/management.js +12 -10
- package/lib/extension/{dsh → hosts/dsh}/workspace.d.ts +3 -9
- package/lib/extension/{dsh → hosts/dsh}/workspace.js +30 -99
- package/lib/extension/hosts/pi/acp-member.d.ts +3 -0
- package/lib/extension/hosts/pi/acp-member.js +100 -0
- package/lib/extension/hosts/plugin-runtime.d.ts +12 -0
- package/lib/extension/hosts/plugin-runtime.js +101 -0
- package/lib/extension/hosts/workspace-mcp.d.ts +6 -0
- package/lib/extension/hosts/workspace-mcp.js +21 -0
- package/lib/extension/{mcp-bridge.d.ts → mcp/bridge.d.ts} +7 -9
- package/lib/extension/{mcp-bridge.js → mcp/bridge.js} +70 -88
- package/lib/extension/{mcp-workers.d.ts → mcp/tool-contract.d.ts} +129 -374
- package/lib/extension/mcp/tool-contract.js +441 -0
- package/lib/extension/mcp/workers.d.ts +487 -0
- package/lib/extension/mcp/workers.js +598 -0
- package/lib/extension/mcp.js +2705 -1348
- package/lib/extension/{setup-cli.js → setup/cli.js} +12 -9
- package/lib/extension/workspace-cli.js +20127 -0
- package/lib/integrations/acp/agents.d.ts +2 -3
- package/lib/integrations/acp/connection.d.ts +11 -10
- package/lib/integrations/acp/connection.js +6 -0
- package/lib/integrations/acp/harnesses/claude.js +1 -1
- package/lib/integrations/acp/harnesses/dsh.js +1 -1
- package/lib/integrations/acp/harnesses/presets.js +8 -0
- package/lib/integrations/acp/history-summary.d.ts +17 -0
- package/lib/integrations/acp/history-summary.js +101 -0
- package/lib/integrations/acp/launch.d.ts +2 -2
- package/lib/integrations/agent-resources.d.ts +1 -0
- package/lib/integrations/agent-resources.js +6 -2
- package/lib/integrations/hosts/antigravity/adapter.d.ts +6 -0
- package/lib/integrations/hosts/antigravity/adapter.js +171 -0
- package/lib/integrations/hosts/{claude.d.ts → claude/adapter.d.ts} +1 -1
- package/lib/integrations/hosts/claude/adapter.js +36 -0
- package/lib/integrations/hosts/codex/adapter.d.ts +2 -0
- package/lib/integrations/hosts/codex/adapter.js +14 -0
- package/lib/integrations/hosts/dsh/mcp.d.ts +4 -0
- package/lib/integrations/hosts/dsh/mcp.js +28 -0
- package/lib/integrations/hosts/dsh/messages.d.ts +36 -0
- package/lib/integrations/hosts/dsh/messages.js +11 -0
- package/lib/integrations/hosts/dsh/resources.d.ts +6 -0
- package/lib/integrations/hosts/dsh/resources.js +47 -0
- package/lib/integrations/hosts/dsh/root-agents.d.ts +4 -0
- package/lib/integrations/hosts/dsh/root-agents.js +3 -0
- package/lib/integrations/{dsh → hosts/dsh}/schema.js +1 -1
- package/lib/integrations/hosts/dsh/skills.d.ts +8 -0
- package/lib/integrations/hosts/dsh/skills.js +31 -0
- package/lib/integrations/hosts/pi/agent-tools.d.ts +3 -0
- package/lib/integrations/hosts/pi/agent-tools.js +32 -0
- package/lib/integrations/hosts/pi/mcp.d.ts +4 -0
- package/lib/integrations/hosts/pi/mcp.js +23 -0
- package/lib/integrations/hosts/{registry.d.ts → plugin-registry.d.ts} +1 -0
- package/lib/{antigravity-plugin/lib/integrations/hosts/registry.js → integrations/hosts/plugin-registry.js} +10 -3
- package/lib/integrations/hosts/prompt-hooks.d.ts +76 -0
- package/lib/integrations/hosts/prompt-hooks.js +76 -0
- package/lib/integrations/hosts/qoder/adapter.d.ts +2 -0
- package/lib/integrations/hosts/qoder/adapter.js +16 -0
- package/lib/integrations/installation/pi-setup.js +1 -1
- package/lib/model/acp.d.ts +7 -3
- package/lib/model/acp.js +8 -0
- package/lib/model/agent.d.ts +18 -4
- package/lib/model/agent.js +4 -1
- package/lib/model/history.d.ts +143 -34
- package/lib/model/history.js +4 -1
- package/lib/model/installation.js +1 -0
- package/lib/model/plugin-host.d.ts +31 -0
- package/lib/model/workspace-config.d.ts +28 -7
- package/lib/model/workspace-config.js +2 -1
- package/lib/plugin.d.ts +2 -1
- package/lib/plugin.js +4 -4
- package/lib/qoder-plugin/.mcp.json +17 -0
- package/lib/qoder-plugin/.qoder-plugin/plugin.json +7 -0
- package/lib/qoder-plugin/DISCLAIMER.md +17 -0
- package/lib/qoder-plugin/LICENSE +21 -0
- package/lib/qoder-plugin/hooks/hooks.json +37 -0
- package/lib/qoder-plugin/skills/pbot/SKILL.md +9 -0
- package/lib/services/agents/agent-run.d.ts +1 -1
- package/lib/services/agents/agent-service.d.ts +15 -45
- package/lib/services/agents/agent-service.js +22 -3
- package/lib/services/history/history-capture.d.ts +4 -0
- package/lib/services/history/history-capture.js +98 -0
- package/lib/services/history/history-index.d.ts +16 -7
- package/lib/services/history/history-index.js +48 -70
- package/lib/services/history/history-migrate.d.ts +12 -0
- package/lib/services/history/history-migrate.js +54 -0
- package/lib/services/history/history-query.d.ts +51 -0
- package/lib/services/history/history-query.js +352 -0
- package/lib/services/history/summary-command.d.ts +20 -0
- package/lib/services/history/summary-command.js +69 -0
- package/lib/services/history/summary-dimensions/monthly.d.ts +7 -0
- package/lib/services/history/summary-dimensions/monthly.js +121 -0
- package/lib/services/history/summary-dimensions/session.d.ts +7 -0
- package/lib/services/history/summary-dimensions/session.js +124 -0
- package/lib/services/history/summary-registry.d.ts +7 -0
- package/lib/services/history/summary-registry.js +35 -0
- package/lib/services/history/summary-runner.d.ts +34 -0
- package/lib/services/history/summary-runner.js +299 -0
- package/lib/services/history/workspace-history.d.ts +3 -0
- package/lib/services/history/workspace-history.js +6 -0
- package/lib/services/workspace/plugin-releases.d.ts +3 -0
- package/lib/services/workspace/plugin-releases.js +78 -0
- package/lib/services/workspace/workspace-config.d.ts +5 -1
- package/lib/services/workspace/workspace-config.js +77 -7
- package/lib/services/workspace/workspace-mcp.js +22 -29
- package/lib/services/workspace/workspace-skills.d.ts +1 -0
- package/lib/services/workspace/workspace-skills.js +4 -2
- package/lib/storage/acp-files.js +7 -12
- package/lib/storage/agent-files.js +6 -5
- package/lib/storage/atomic-json.d.ts +3 -1
- package/lib/storage/atomic-json.js +43 -3
- package/lib/storage/history-files.d.ts +46 -9
- package/lib/storage/history-files.js +382 -250
- package/lib/storage/history-format.d.ts +3 -13
- package/lib/storage/history-format.js +26 -52
- package/lib/tools/history/actions.d.ts +3 -68
- package/lib/tools/history/actions.js +7 -5
- package/lib/tools/history/contract.d.ts +16 -17
- package/lib/tools/history/contract.js +63 -22
- package/lib/tools/history/dsh-tool.d.ts +1 -2
- package/lib/tools/history/dsh-tool.js +11 -5
- package/lib/ui/dsh/elements.d.ts +2 -5
- package/lib/ui/dsh/elements.js +3 -16
- package/lib/ui/dsh/management.js +26 -13
- package/lib/ui/dsh/styles.d.ts +1 -1
- package/lib/ui/dsh/styles.js +5 -33
- package/package.json +4 -1
- package/resources/antigravity/skills/pbot/SKILL.md +11 -1
- package/resources/claude/skills/pbot/SKILL.md +11 -1
- package/resources/plugin/skills/pbot/SKILL.md +9 -0
- package/resources/prompts/history-coordinator.md +2 -1
- package/resources/prompts/history-monthly-summary.md +13 -0
- package/resources/prompts/history-summary.md +10 -4
- package/resources/prompts/plugin-coordinator.md +1 -0
- package/resources/skills/provider-connections/SKILL.md +22 -12
- package/scripts/README.md +3 -2
- package/src/claude.ts +2 -2
- package/src/common/validation.ts +10 -0
- package/src/dsh.ts +6 -6
- package/src/extension/{acp-member.ts → acp/member.ts} +7 -7
- package/src/extension/{acp-worker.ts → acp/worker.ts} +131 -17
- package/src/extension/history/command.ts +68 -0
- package/src/extension/hosts/dsh/acp-entry.ts +21 -0
- package/src/extension/{dsh → hosts/dsh}/acp-member.ts +12 -23
- package/src/extension/{dsh → hosts/dsh}/command.ts +10 -12
- package/src/extension/{dsh → hosts/dsh}/files.ts +3 -3
- package/src/extension/hosts/dsh/history.ts +67 -0
- package/src/extension/{dsh → hosts/dsh}/management.ts +11 -9
- package/src/extension/{dsh → hosts/dsh}/workspace.ts +31 -76
- package/src/extension/{pi-acp-member.ts → hosts/pi/acp-member.ts} +12 -18
- package/src/extension/{command.ts → hosts/pi/command.ts} +44 -11
- package/src/extension/{events.ts → hosts/pi/events.ts} +8 -4
- package/src/extension/hosts/pi/history.ts +45 -0
- package/src/extension/{lifecycle.ts → hosts/pi/lifecycle.ts} +9 -12
- package/src/extension/hosts/plugin-runtime.ts +96 -0
- package/src/extension/hosts/workspace-mcp.ts +25 -0
- package/src/extension/{mcp-bridge.ts → mcp/bridge.ts} +85 -85
- package/src/extension/mcp/tool-contract.ts +462 -0
- package/src/extension/{mcp-workers.ts → mcp/workers.ts} +151 -448
- package/src/extension/{setup-cli.ts → setup/cli.ts} +14 -11
- package/src/extension/setup/workspace-cli.ts +159 -0
- package/src/integrations/acp/agents.ts +2 -3
- package/src/integrations/acp/connection.ts +6 -0
- package/src/integrations/acp/harnesses/claude.ts +1 -1
- package/src/integrations/acp/harnesses/dsh.ts +1 -1
- package/src/integrations/acp/harnesses/presets.ts +8 -0
- package/src/integrations/acp/history-summary.ts +109 -0
- package/src/integrations/agent-resources.ts +7 -1
- package/src/integrations/hosts/antigravity/adapter.ts +161 -0
- package/src/integrations/hosts/claude/adapter.ts +39 -0
- package/src/integrations/hosts/codex/adapter.ts +16 -0
- package/src/integrations/{dsh → hosts/dsh}/mcp.ts +1 -1
- package/src/integrations/{dsh → hosts/dsh}/resources.ts +5 -5
- package/src/integrations/{dsh → hosts/dsh}/schema.ts +1 -1
- package/src/integrations/{dsh → hosts/dsh}/session.ts +2 -2
- package/src/integrations/{dsh → hosts/dsh}/skills.ts +1 -1
- package/src/integrations/{pi → hosts/pi}/mcp.ts +1 -1
- package/src/integrations/{pi → hosts/pi}/skills.ts +1 -1
- package/src/integrations/hosts/{registry.ts → plugin-registry.ts} +11 -3
- package/src/integrations/hosts/prompt-hooks.ts +72 -0
- package/src/integrations/hosts/qoder/adapter.ts +19 -0
- package/src/integrations/installation/cli-update.ts +116 -0
- package/src/integrations/installation/pi-bridge.ts +1 -1
- package/src/integrations/installation/pi-setup.ts +2 -2
- package/src/integrations/installation/processes.ts +1 -1
- package/src/mcp.ts +1 -1
- package/src/model/acp.ts +11 -3
- package/src/model/agent.ts +20 -4
- package/src/model/history.ts +156 -26
- package/src/model/installation.ts +41 -0
- package/src/model/plugin-host.ts +30 -2
- package/src/model/workspace-config.ts +31 -7
- package/src/pbot.ts +22 -50
- package/src/plugin.ts +4 -4
- package/src/services/agents/agent-service.ts +29 -17
- package/src/services/history/history-capture.ts +91 -0
- package/src/services/history/history-index.ts +48 -62
- package/src/services/history/history-migrate.ts +62 -0
- package/src/services/history/history-query.ts +401 -0
- package/src/services/history/summary-command.ts +70 -0
- package/src/services/history/summary-dimensions/monthly.ts +139 -0
- package/src/services/history/summary-dimensions/session.ts +149 -0
- package/src/services/history/summary-registry.ts +43 -0
- package/src/services/history/summary-runner.ts +343 -0
- package/src/services/history/workspace-history.ts +8 -0
- package/src/services/installation/setup-service.ts +2 -41
- package/src/services/workspace/plugin-releases.ts +68 -0
- package/src/services/workspace/workspace-config.ts +95 -8
- package/src/services/workspace/workspace-mcp.ts +23 -28
- package/src/services/workspace/workspace-skills.ts +5 -2
- package/src/storage/acp-files.ts +7 -12
- package/src/storage/agent-files.ts +6 -5
- package/src/storage/atomic-json.ts +31 -4
- package/src/storage/history-files.ts +416 -189
- package/src/storage/history-format.ts +45 -61
- package/src/tools/history/actions.ts +8 -6
- package/src/tools/history/contract.ts +70 -25
- package/src/tools/history/dsh-tool.ts +17 -8
- package/src/tools/history/pi-tool.ts +23 -0
- package/src/ui/dsh/elements.ts +5 -12
- package/src/ui/dsh/management.ts +36 -20
- package/src/ui/dsh/styles.ts +5 -33
- package/src/ui/{confirmation.ts → pi/confirmation.ts} +1 -1
- package/lib/antigravity-plugin/lib/extension/plugin-runtime.d.ts +0 -10
- package/lib/antigravity-plugin/lib/extension/plugin-runtime.js +0 -67
- package/lib/antigravity-plugin/lib/integrations/hosts/antigravity.d.ts +0 -4
- package/lib/antigravity-plugin/lib/integrations/hosts/antigravity.js +0 -79
- package/lib/antigravity-plugin/lib/integrations/hosts/claude.js +0 -60
- package/lib/extension/dsh/history.d.ts +0 -15
- package/lib/extension/dsh/history.js +0 -87
- package/lib/extension/mcp-workers.js +0 -882
- package/lib/extension/plugin-runtime.d.ts +0 -10
- package/lib/extension/plugin-runtime.js +0 -67
- package/lib/integrations/dsh/history-summary.d.ts +0 -11
- package/lib/integrations/dsh/history-summary.js +0 -36
- package/lib/integrations/dsh/history.d.ts +0 -16
- package/lib/integrations/dsh/history.js +0 -167
- package/lib/integrations/history-summary.d.ts +0 -4
- package/lib/integrations/history-summary.js +0 -32
- package/lib/integrations/hosts/antigravity.d.ts +0 -4
- package/lib/integrations/hosts/antigravity.js +0 -79
- package/lib/integrations/hosts/claude.js +0 -60
- package/lib/services/history/history-service.d.ts +0 -106
- package/lib/services/history/history-service.js +0 -242
- package/lib/storage/acp-history.d.ts +0 -10
- package/lib/storage/acp-history.js +0 -57
- package/lib/ui/presentation.d.ts +0 -3
- package/lib/ui/presentation.js +0 -12
- package/src/extension/dsh/history.ts +0 -74
- package/src/extension/history.ts +0 -26
- package/src/extension/plugin-runtime.ts +0 -63
- package/src/integrations/dsh/history-summary.ts +0 -39
- package/src/integrations/dsh/history.ts +0 -84
- package/src/integrations/history-summary.ts +0 -30
- package/src/integrations/hosts/antigravity.ts +0 -83
- package/src/integrations/hosts/claude.ts +0 -62
- package/src/integrations/pi/history.ts +0 -99
- package/src/services/history/history-service.ts +0 -195
- package/src/storage/acp-history.ts +0 -49
- package/src/tools/access.ts +0 -7
- package/src/tools/history/tool.ts +0 -19
- package/src/tools/register.ts +0 -22
- package/src/ui/presentation.ts +0 -12
- /package/lib/{extension → antigravity-plugin/lib/extension/hosts}/dsh/acp-member.d.ts +0 -0
- /package/lib/{extension → antigravity-plugin/lib/extension/hosts}/dsh/files.d.ts +0 -0
- /package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/mcp.js +0 -0
- /package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/messages.d.ts +0 -0
- /package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/messages.js +0 -0
- /package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/root-agents.d.ts +0 -0
- /package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/root-agents.js +0 -0
- /package/lib/{integrations → antigravity-plugin/lib/integrations/hosts}/dsh/skills.d.ts +0 -0
- /package/lib/extension/{acp-worker.d.ts → acp/worker.d.ts} +0 -0
- /package/lib/extension/{setup-guard.js → setup/guard.js} +0 -0
- /package/lib/integrations/acp/{claude.d.ts → claude-settings.d.ts} +0 -0
- /package/lib/integrations/acp/{claude.js → claude-settings.js} +0 -0
- /package/lib/integrations/{dsh → hosts/dsh}/schema.d.ts +0 -0
- /package/src/extension/{setup-guard.ts → setup/guard.ts} +0 -0
- /package/src/integrations/acp/{claude.ts → claude-settings.ts} +0 -0
- /package/src/integrations/{dsh → hosts/dsh}/messages.ts +0 -0
- /package/src/integrations/{dsh → hosts/dsh}/root-agents.ts +0 -0
- /package/src/integrations/{pi → hosts/pi}/agent-tools.ts +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type AcpCommands
|
|
2
|
-
export
|
|
3
|
-
export declare const
|
|
1
|
+
import { type AcpCommands } from "../../model/acp.js";
|
|
2
|
+
export declare const defaultWaitMs = 50000;
|
|
3
|
+
export declare const maxWaitMs = 600000;
|
|
4
|
+
export declare const discoverTargets: readonly ["overview", "workers", "backends", "models"];
|
|
4
5
|
export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBackend?: string, workspaceBound?: boolean): ({
|
|
5
|
-
name:
|
|
6
|
+
name: "worker_create";
|
|
6
7
|
description: string;
|
|
7
8
|
annotations: {
|
|
8
9
|
title: string;
|
|
@@ -48,7 +49,7 @@ export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBack
|
|
|
48
49
|
};
|
|
49
50
|
};
|
|
50
51
|
} | {
|
|
51
|
-
name:
|
|
52
|
+
name: "worker_close";
|
|
52
53
|
description: string;
|
|
53
54
|
annotations: {
|
|
54
55
|
title: string;
|
|
@@ -85,7 +86,7 @@ export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBack
|
|
|
85
86
|
};
|
|
86
87
|
};
|
|
87
88
|
} | {
|
|
88
|
-
name:
|
|
89
|
+
name: "worker_request";
|
|
89
90
|
description: string;
|
|
90
91
|
annotations: {
|
|
91
92
|
title: string;
|
|
@@ -130,7 +131,7 @@ export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBack
|
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
133
|
} | {
|
|
133
|
-
name:
|
|
134
|
+
name: "worker_response";
|
|
134
135
|
description: string;
|
|
135
136
|
annotations: {
|
|
136
137
|
title: string;
|
|
@@ -186,7 +187,7 @@ export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBack
|
|
|
186
187
|
};
|
|
187
188
|
};
|
|
188
189
|
} | {
|
|
189
|
-
name:
|
|
190
|
+
name: "worker_output";
|
|
190
191
|
description: string;
|
|
191
192
|
annotations: {
|
|
192
193
|
title: string;
|
|
@@ -232,7 +233,7 @@ export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBack
|
|
|
232
233
|
};
|
|
233
234
|
};
|
|
234
235
|
} | {
|
|
235
|
-
name:
|
|
236
|
+
name: "worker_discover";
|
|
236
237
|
description: string;
|
|
237
238
|
annotations: {
|
|
238
239
|
title: string;
|
|
@@ -280,7 +281,7 @@ export declare function buildPbotWorkerTools(commands?: AcpCommands, defaultBack
|
|
|
280
281
|
};
|
|
281
282
|
})[];
|
|
282
283
|
export declare function buildWorkspaceMcpTools(workspaceBound?: boolean): ({
|
|
283
|
-
name:
|
|
284
|
+
name: "workspace_mcp_discover";
|
|
284
285
|
description: string;
|
|
285
286
|
annotations: {
|
|
286
287
|
title: string;
|
|
@@ -307,7 +308,7 @@ export declare function buildWorkspaceMcpTools(workspaceBound?: boolean): ({
|
|
|
307
308
|
};
|
|
308
309
|
};
|
|
309
310
|
} | {
|
|
310
|
-
name:
|
|
311
|
+
name: "workspace_mcp_call";
|
|
311
312
|
description: string;
|
|
312
313
|
annotations: {
|
|
313
314
|
title: string;
|
|
@@ -341,8 +342,117 @@ export declare function buildWorkspaceMcpTools(workspaceBound?: boolean): ({
|
|
|
341
342
|
};
|
|
342
343
|
};
|
|
343
344
|
})[];
|
|
345
|
+
export declare function buildHistoryMcpTools(workspaceBound?: boolean): ({
|
|
346
|
+
name: "history_search";
|
|
347
|
+
description: string;
|
|
348
|
+
annotations: {
|
|
349
|
+
title: string;
|
|
350
|
+
readOnlyHint: boolean;
|
|
351
|
+
destructiveHint: boolean;
|
|
352
|
+
idempotentHint: boolean;
|
|
353
|
+
openWorldHint: boolean;
|
|
354
|
+
};
|
|
355
|
+
inputSchema: {
|
|
356
|
+
type: string;
|
|
357
|
+
additionalProperties: boolean;
|
|
358
|
+
required: never[];
|
|
359
|
+
properties: {
|
|
360
|
+
host: {
|
|
361
|
+
type: string;
|
|
362
|
+
description: string;
|
|
363
|
+
};
|
|
364
|
+
dimension: {
|
|
365
|
+
type: string;
|
|
366
|
+
description: string;
|
|
367
|
+
};
|
|
368
|
+
query: {
|
|
369
|
+
type: string;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
sessionId: {
|
|
373
|
+
type: string;
|
|
374
|
+
description: string;
|
|
375
|
+
};
|
|
376
|
+
from: {
|
|
377
|
+
type: string;
|
|
378
|
+
description: string;
|
|
379
|
+
};
|
|
380
|
+
to: {
|
|
381
|
+
type: string;
|
|
382
|
+
description: string;
|
|
383
|
+
};
|
|
384
|
+
offset: {
|
|
385
|
+
type: string;
|
|
386
|
+
minimum: number;
|
|
387
|
+
description: string;
|
|
388
|
+
};
|
|
389
|
+
limit: {
|
|
390
|
+
type: string;
|
|
391
|
+
minimum: number;
|
|
392
|
+
maximum: 50;
|
|
393
|
+
description: string;
|
|
394
|
+
};
|
|
395
|
+
workspace: {
|
|
396
|
+
type: string;
|
|
397
|
+
description: string;
|
|
398
|
+
};
|
|
399
|
+
id?: never;
|
|
400
|
+
childrenOffset?: never;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
} | {
|
|
404
|
+
name: "history_read";
|
|
405
|
+
description: string;
|
|
406
|
+
annotations: {
|
|
407
|
+
title: string;
|
|
408
|
+
readOnlyHint: boolean;
|
|
409
|
+
destructiveHint: boolean;
|
|
410
|
+
idempotentHint: boolean;
|
|
411
|
+
openWorldHint: boolean;
|
|
412
|
+
};
|
|
413
|
+
inputSchema: {
|
|
414
|
+
type: string;
|
|
415
|
+
additionalProperties: boolean;
|
|
416
|
+
required: string[];
|
|
417
|
+
properties: {
|
|
418
|
+
id: {
|
|
419
|
+
type: string;
|
|
420
|
+
description: string;
|
|
421
|
+
};
|
|
422
|
+
host: {
|
|
423
|
+
type: string;
|
|
424
|
+
description: string;
|
|
425
|
+
};
|
|
426
|
+
offset: {
|
|
427
|
+
type: string;
|
|
428
|
+
minimum: number;
|
|
429
|
+
description: string;
|
|
430
|
+
};
|
|
431
|
+
limit: {
|
|
432
|
+
type: string;
|
|
433
|
+
minimum: number;
|
|
434
|
+
maximum: 24000;
|
|
435
|
+
description: string;
|
|
436
|
+
};
|
|
437
|
+
childrenOffset: {
|
|
438
|
+
type: string;
|
|
439
|
+
minimum: number;
|
|
440
|
+
description: string;
|
|
441
|
+
};
|
|
442
|
+
workspace: {
|
|
443
|
+
type: string;
|
|
444
|
+
description: string;
|
|
445
|
+
};
|
|
446
|
+
dimension?: never;
|
|
447
|
+
query?: never;
|
|
448
|
+
sessionId?: never;
|
|
449
|
+
from?: never;
|
|
450
|
+
to?: never;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
})[];
|
|
344
454
|
export declare const pbotWorkerTools: ({
|
|
345
|
-
name:
|
|
455
|
+
name: "worker_create";
|
|
346
456
|
description: string;
|
|
347
457
|
annotations: {
|
|
348
458
|
title: string;
|
|
@@ -388,7 +498,7 @@ export declare const pbotWorkerTools: ({
|
|
|
388
498
|
};
|
|
389
499
|
};
|
|
390
500
|
} | {
|
|
391
|
-
name:
|
|
501
|
+
name: "worker_close";
|
|
392
502
|
description: string;
|
|
393
503
|
annotations: {
|
|
394
504
|
title: string;
|
|
@@ -425,7 +535,7 @@ export declare const pbotWorkerTools: ({
|
|
|
425
535
|
};
|
|
426
536
|
};
|
|
427
537
|
} | {
|
|
428
|
-
name:
|
|
538
|
+
name: "worker_request";
|
|
429
539
|
description: string;
|
|
430
540
|
annotations: {
|
|
431
541
|
title: string;
|
|
@@ -470,7 +580,7 @@ export declare const pbotWorkerTools: ({
|
|
|
470
580
|
};
|
|
471
581
|
};
|
|
472
582
|
} | {
|
|
473
|
-
name:
|
|
583
|
+
name: "worker_response";
|
|
474
584
|
description: string;
|
|
475
585
|
annotations: {
|
|
476
586
|
title: string;
|
|
@@ -526,7 +636,7 @@ export declare const pbotWorkerTools: ({
|
|
|
526
636
|
};
|
|
527
637
|
};
|
|
528
638
|
} | {
|
|
529
|
-
name:
|
|
639
|
+
name: "worker_output";
|
|
530
640
|
description: string;
|
|
531
641
|
annotations: {
|
|
532
642
|
title: string;
|
|
@@ -572,7 +682,7 @@ export declare const pbotWorkerTools: ({
|
|
|
572
682
|
};
|
|
573
683
|
};
|
|
574
684
|
} | {
|
|
575
|
-
name:
|
|
685
|
+
name: "worker_discover";
|
|
576
686
|
description: string;
|
|
577
687
|
annotations: {
|
|
578
688
|
title: string;
|
|
@@ -619,362 +729,7 @@ export declare const pbotWorkerTools: ({
|
|
|
619
729
|
};
|
|
620
730
|
};
|
|
621
731
|
})[];
|
|
622
|
-
export declare function
|
|
623
|
-
|
|
624
|
-
export declare function parseWorkerCommand(raw: string): {
|
|
625
|
-
tool: McpWorkerToolName;
|
|
732
|
+
export declare function parseMcpToolCall(name: string, args: unknown): {
|
|
733
|
+
name: "worker_create" | "worker_close" | "worker_request" | "worker_response" | "worker_output" | "worker_discover" | "workspace_mcp_discover" | "workspace_mcp_call" | "history_search" | "history_read";
|
|
626
734
|
args: Record<string, unknown>;
|
|
627
735
|
};
|
|
628
|
-
export declare class McpWorkerRuntime {
|
|
629
|
-
#private;
|
|
630
|
-
constructor(directory?: string, sessionId?: string, defaultBackend?: string | undefined);
|
|
631
|
-
private resolveBackend;
|
|
632
|
-
private resolveWorkspace;
|
|
633
|
-
private workspace;
|
|
634
|
-
toolDefinitions(): Promise<({
|
|
635
|
-
name: string;
|
|
636
|
-
description: string;
|
|
637
|
-
annotations: {
|
|
638
|
-
title: string;
|
|
639
|
-
readOnlyHint: boolean;
|
|
640
|
-
destructiveHint: boolean;
|
|
641
|
-
idempotentHint: boolean;
|
|
642
|
-
openWorldHint: boolean;
|
|
643
|
-
};
|
|
644
|
-
inputSchema: {
|
|
645
|
-
type: string;
|
|
646
|
-
additionalProperties: boolean;
|
|
647
|
-
required: string[];
|
|
648
|
-
properties: {
|
|
649
|
-
backend: {
|
|
650
|
-
type: string;
|
|
651
|
-
description: string;
|
|
652
|
-
};
|
|
653
|
-
model: {
|
|
654
|
-
type: string;
|
|
655
|
-
description: string;
|
|
656
|
-
};
|
|
657
|
-
thinking: {
|
|
658
|
-
type: string;
|
|
659
|
-
description: string;
|
|
660
|
-
};
|
|
661
|
-
cwd: {
|
|
662
|
-
type: string;
|
|
663
|
-
description: string;
|
|
664
|
-
};
|
|
665
|
-
workspace: {
|
|
666
|
-
type: string;
|
|
667
|
-
description: string;
|
|
668
|
-
};
|
|
669
|
-
workerId?: never;
|
|
670
|
-
message?: never;
|
|
671
|
-
waitMs?: never;
|
|
672
|
-
action?: never;
|
|
673
|
-
requestId?: never;
|
|
674
|
-
optionId?: never;
|
|
675
|
-
content?: never;
|
|
676
|
-
offset?: never;
|
|
677
|
-
target?: never;
|
|
678
|
-
};
|
|
679
|
-
};
|
|
680
|
-
} | {
|
|
681
|
-
name: string;
|
|
682
|
-
description: string;
|
|
683
|
-
annotations: {
|
|
684
|
-
title: string;
|
|
685
|
-
readOnlyHint: boolean;
|
|
686
|
-
destructiveHint: boolean;
|
|
687
|
-
idempotentHint: boolean;
|
|
688
|
-
openWorldHint: boolean;
|
|
689
|
-
};
|
|
690
|
-
inputSchema: {
|
|
691
|
-
type: string;
|
|
692
|
-
additionalProperties: boolean;
|
|
693
|
-
required: string[];
|
|
694
|
-
properties: {
|
|
695
|
-
workerId: {
|
|
696
|
-
type: string;
|
|
697
|
-
description: string;
|
|
698
|
-
};
|
|
699
|
-
workspace: {
|
|
700
|
-
type: string;
|
|
701
|
-
description: string;
|
|
702
|
-
};
|
|
703
|
-
backend?: never;
|
|
704
|
-
model?: never;
|
|
705
|
-
thinking?: never;
|
|
706
|
-
cwd?: never;
|
|
707
|
-
message?: never;
|
|
708
|
-
waitMs?: never;
|
|
709
|
-
action?: never;
|
|
710
|
-
requestId?: never;
|
|
711
|
-
optionId?: never;
|
|
712
|
-
content?: never;
|
|
713
|
-
offset?: never;
|
|
714
|
-
target?: never;
|
|
715
|
-
};
|
|
716
|
-
};
|
|
717
|
-
} | {
|
|
718
|
-
name: string;
|
|
719
|
-
description: string;
|
|
720
|
-
annotations: {
|
|
721
|
-
title: string;
|
|
722
|
-
readOnlyHint: boolean;
|
|
723
|
-
destructiveHint: boolean;
|
|
724
|
-
idempotentHint: boolean;
|
|
725
|
-
openWorldHint: boolean;
|
|
726
|
-
};
|
|
727
|
-
inputSchema: {
|
|
728
|
-
type: string;
|
|
729
|
-
additionalProperties: boolean;
|
|
730
|
-
required: string[];
|
|
731
|
-
properties: {
|
|
732
|
-
workerId: {
|
|
733
|
-
type: string;
|
|
734
|
-
description: string;
|
|
735
|
-
};
|
|
736
|
-
message: {
|
|
737
|
-
type: string;
|
|
738
|
-
description: string;
|
|
739
|
-
};
|
|
740
|
-
waitMs: {
|
|
741
|
-
type: string;
|
|
742
|
-
minimum: number;
|
|
743
|
-
maximum: number;
|
|
744
|
-
description: string;
|
|
745
|
-
};
|
|
746
|
-
workspace: {
|
|
747
|
-
type: string;
|
|
748
|
-
description: string;
|
|
749
|
-
};
|
|
750
|
-
backend?: never;
|
|
751
|
-
model?: never;
|
|
752
|
-
thinking?: never;
|
|
753
|
-
cwd?: never;
|
|
754
|
-
action?: never;
|
|
755
|
-
requestId?: never;
|
|
756
|
-
optionId?: never;
|
|
757
|
-
content?: never;
|
|
758
|
-
offset?: never;
|
|
759
|
-
target?: never;
|
|
760
|
-
};
|
|
761
|
-
};
|
|
762
|
-
} | {
|
|
763
|
-
name: string;
|
|
764
|
-
description: string;
|
|
765
|
-
annotations: {
|
|
766
|
-
title: string;
|
|
767
|
-
readOnlyHint: boolean;
|
|
768
|
-
destructiveHint: boolean;
|
|
769
|
-
idempotentHint: boolean;
|
|
770
|
-
openWorldHint: boolean;
|
|
771
|
-
};
|
|
772
|
-
inputSchema: {
|
|
773
|
-
type: string;
|
|
774
|
-
additionalProperties: boolean;
|
|
775
|
-
required: string[];
|
|
776
|
-
properties: {
|
|
777
|
-
workerId: {
|
|
778
|
-
type: string;
|
|
779
|
-
description: string;
|
|
780
|
-
};
|
|
781
|
-
action: {
|
|
782
|
-
type: string;
|
|
783
|
-
enum: ("accept" | "decline" | "cancel")[];
|
|
784
|
-
description: string;
|
|
785
|
-
};
|
|
786
|
-
requestId: {
|
|
787
|
-
type: string;
|
|
788
|
-
description: string;
|
|
789
|
-
};
|
|
790
|
-
optionId: {
|
|
791
|
-
type: string;
|
|
792
|
-
description: string;
|
|
793
|
-
};
|
|
794
|
-
content: {
|
|
795
|
-
type: string;
|
|
796
|
-
additionalProperties: boolean;
|
|
797
|
-
description: string;
|
|
798
|
-
};
|
|
799
|
-
waitMs: {
|
|
800
|
-
type: string;
|
|
801
|
-
minimum: number;
|
|
802
|
-
maximum: number;
|
|
803
|
-
description: string;
|
|
804
|
-
};
|
|
805
|
-
workspace: {
|
|
806
|
-
type: string;
|
|
807
|
-
description: string;
|
|
808
|
-
};
|
|
809
|
-
backend?: never;
|
|
810
|
-
model?: never;
|
|
811
|
-
thinking?: never;
|
|
812
|
-
cwd?: never;
|
|
813
|
-
message?: never;
|
|
814
|
-
offset?: never;
|
|
815
|
-
target?: never;
|
|
816
|
-
};
|
|
817
|
-
};
|
|
818
|
-
} | {
|
|
819
|
-
name: string;
|
|
820
|
-
description: string;
|
|
821
|
-
annotations: {
|
|
822
|
-
title: string;
|
|
823
|
-
readOnlyHint: boolean;
|
|
824
|
-
destructiveHint: boolean;
|
|
825
|
-
idempotentHint: boolean;
|
|
826
|
-
openWorldHint: boolean;
|
|
827
|
-
};
|
|
828
|
-
inputSchema: {
|
|
829
|
-
type: string;
|
|
830
|
-
additionalProperties: boolean;
|
|
831
|
-
required: string[];
|
|
832
|
-
properties: {
|
|
833
|
-
workerId: {
|
|
834
|
-
type: string;
|
|
835
|
-
description: string;
|
|
836
|
-
};
|
|
837
|
-
offset: {
|
|
838
|
-
type: string;
|
|
839
|
-
minimum: number;
|
|
840
|
-
description: string;
|
|
841
|
-
};
|
|
842
|
-
waitMs: {
|
|
843
|
-
type: string;
|
|
844
|
-
minimum: number;
|
|
845
|
-
maximum: number;
|
|
846
|
-
description: string;
|
|
847
|
-
};
|
|
848
|
-
workspace: {
|
|
849
|
-
type: string;
|
|
850
|
-
description: string;
|
|
851
|
-
};
|
|
852
|
-
backend?: never;
|
|
853
|
-
model?: never;
|
|
854
|
-
thinking?: never;
|
|
855
|
-
cwd?: never;
|
|
856
|
-
message?: never;
|
|
857
|
-
action?: never;
|
|
858
|
-
requestId?: never;
|
|
859
|
-
optionId?: never;
|
|
860
|
-
content?: never;
|
|
861
|
-
target?: never;
|
|
862
|
-
};
|
|
863
|
-
};
|
|
864
|
-
} | {
|
|
865
|
-
name: string;
|
|
866
|
-
description: string;
|
|
867
|
-
annotations: {
|
|
868
|
-
title: string;
|
|
869
|
-
readOnlyHint: boolean;
|
|
870
|
-
destructiveHint: boolean;
|
|
871
|
-
idempotentHint: boolean;
|
|
872
|
-
openWorldHint: boolean;
|
|
873
|
-
};
|
|
874
|
-
inputSchema: {
|
|
875
|
-
type: string;
|
|
876
|
-
additionalProperties: boolean;
|
|
877
|
-
required: never[];
|
|
878
|
-
properties: {
|
|
879
|
-
target: {
|
|
880
|
-
type: string;
|
|
881
|
-
enum: ("models" | "overview" | "workers" | "backends")[];
|
|
882
|
-
description: string;
|
|
883
|
-
};
|
|
884
|
-
workerId: {
|
|
885
|
-
type: string;
|
|
886
|
-
description: string;
|
|
887
|
-
};
|
|
888
|
-
backend: {
|
|
889
|
-
type: string;
|
|
890
|
-
description: string;
|
|
891
|
-
};
|
|
892
|
-
model: {
|
|
893
|
-
type: string;
|
|
894
|
-
description: string;
|
|
895
|
-
};
|
|
896
|
-
workspace: {
|
|
897
|
-
type: string;
|
|
898
|
-
description: string;
|
|
899
|
-
};
|
|
900
|
-
thinking?: never;
|
|
901
|
-
cwd?: never;
|
|
902
|
-
message?: never;
|
|
903
|
-
waitMs?: never;
|
|
904
|
-
action?: never;
|
|
905
|
-
requestId?: never;
|
|
906
|
-
optionId?: never;
|
|
907
|
-
content?: never;
|
|
908
|
-
offset?: never;
|
|
909
|
-
};
|
|
910
|
-
};
|
|
911
|
-
} | {
|
|
912
|
-
name: string;
|
|
913
|
-
description: string;
|
|
914
|
-
annotations: {
|
|
915
|
-
title: string;
|
|
916
|
-
readOnlyHint: boolean;
|
|
917
|
-
destructiveHint: boolean;
|
|
918
|
-
idempotentHint: boolean;
|
|
919
|
-
openWorldHint: boolean;
|
|
920
|
-
};
|
|
921
|
-
inputSchema: {
|
|
922
|
-
type: string;
|
|
923
|
-
additionalProperties: boolean;
|
|
924
|
-
required: never[];
|
|
925
|
-
properties: {
|
|
926
|
-
server: {
|
|
927
|
-
type: string;
|
|
928
|
-
description: string;
|
|
929
|
-
};
|
|
930
|
-
workspace: {
|
|
931
|
-
type: string;
|
|
932
|
-
description: string;
|
|
933
|
-
};
|
|
934
|
-
tool?: never;
|
|
935
|
-
arguments?: never;
|
|
936
|
-
};
|
|
937
|
-
};
|
|
938
|
-
} | {
|
|
939
|
-
name: string;
|
|
940
|
-
description: string;
|
|
941
|
-
annotations: {
|
|
942
|
-
title: string;
|
|
943
|
-
readOnlyHint: boolean;
|
|
944
|
-
destructiveHint: boolean;
|
|
945
|
-
idempotentHint: boolean;
|
|
946
|
-
openWorldHint: boolean;
|
|
947
|
-
};
|
|
948
|
-
inputSchema: {
|
|
949
|
-
type: string;
|
|
950
|
-
additionalProperties: boolean;
|
|
951
|
-
required: string[];
|
|
952
|
-
properties: {
|
|
953
|
-
server: {
|
|
954
|
-
type: string;
|
|
955
|
-
description: string;
|
|
956
|
-
};
|
|
957
|
-
tool: {
|
|
958
|
-
type: string;
|
|
959
|
-
description: string;
|
|
960
|
-
};
|
|
961
|
-
arguments: {
|
|
962
|
-
type: string;
|
|
963
|
-
additionalProperties: boolean;
|
|
964
|
-
description: string;
|
|
965
|
-
};
|
|
966
|
-
workspace: {
|
|
967
|
-
type: string;
|
|
968
|
-
description: string;
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
|
-
})[]>;
|
|
973
|
-
/** Wait until ACP handshake and model/thinking configuration finish so invalid options fail synchronously on create/resume. */
|
|
974
|
-
private waitReady;
|
|
975
|
-
private waitFor;
|
|
976
|
-
callTool(name: string, rawArgs: unknown, progress?: ProgressReporter): Promise<unknown>;
|
|
977
|
-
close(preserve?: boolean): Promise<void>;
|
|
978
|
-
}
|
|
979
|
-
export declare function handleMcpRequest(runtime: McpWorkerRuntime, message: unknown, notify?: (notification: Record<string, unknown>) => void): Promise<Record<string, unknown> | null>;
|
|
980
|
-
export declare function serveMcpStdio(runtime?: McpWorkerRuntime): Promise<void>;
|