@pi-harness/pi-harness 0.1.13 → 0.1.14
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 +678 -2
- package/apps/web/dist/assets/index-BVI_IS-R.css +2 -0
- package/apps/web/dist/assets/index-C98SJjJd.js +22 -0
- package/apps/web/dist/index.html +2 -2
- package/apps/web/package.json +6 -6
- package/node_modules/@pi-harness/api-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/index.js +97 -9
- package/node_modules/@pi-harness/api-gateway/dist/index.js.map +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/agent-teams.json +6 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/anchored-standard.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/annotation.json +1 -2
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/archify.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/at-file.json +11 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/auto-mode.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/better-sidebar.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/browser-fetch.json +12 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/browser-session.json +14 -8
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/canvas-draw.json +3 -4
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/change-verifier.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/cleaner.json +11 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/cli-notifier.json +5 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/code2skill.json +5 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/colleague-skill.json +1 -2
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/context-doctor.json +12 -7
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/context.json +10 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/cordis-group.json +2 -2
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/cordis-logger-console.json +4 -4
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/cordis-timer.json +3 -3
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/cost-meter.json +9 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/dependency-checker.json +13 -10
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/docker-sandbox.json +10 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/fail-logger.json +11 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/genui.json +7 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/git-time-capsule.json +13 -8
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/graph-memory.json +13 -7
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/history-compressor.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/hol-guard.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/i18n-pair.json +9 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/image-compressor.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/llm-verifier.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/mcp-client.json +12 -7
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/mcp-panel.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/memory.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/mirage-bridge.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/mock-server.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/modlens.json +4 -4
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/module-search.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/obsidian-sync.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/openpets.json +9 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/plan-execute.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/plugin-check.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/plugin-dev.json +8 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/plugin-finder.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/plugin-radar.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/plugin-stars.json +15 -7
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/prompt-guard.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/prompt-library.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/readme-gen.json +12 -8
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/recall-unread.json +11 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/reverse-skill.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/reviewer-bot.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/runtime-doctor.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/secure-audit.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-bookmarks.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-bridge.json +13 -8
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-compare.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-export.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-insights.json +12 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-search.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/skill-catalog.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/skill-guard.json +9 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/sql-lens.json +13 -7
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/synapse.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/tab-manager.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/taskboard.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/telemetry-blocker.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/test-harness.json +14 -7
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/theme-studio.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/token-guard.json +12 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/turn-rewind.json +11 -6
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/undo-savepoint.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/vision-toolkit.json +8 -5
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/web-research.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/workspace-navigator.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/workspace-search.json +1 -1
- package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/yaml-validator.json +8 -5
- package/node_modules/@pi-harness/api-gateway/package.json +1 -1
- package/node_modules/@pi-harness/cli/dist/node-stdio.d.ts.map +1 -1
- package/node_modules/@pi-harness/cli/dist/node-stdio.js +83 -20
- package/node_modules/@pi-harness/cli/dist/node-stdio.js.map +1 -1
- package/node_modules/@pi-harness/cli/package.json +1 -1
- package/node_modules/@pi-harness/core/dist/atomic-write.d.ts +8 -0
- package/node_modules/@pi-harness/core/dist/atomic-write.d.ts.map +1 -0
- package/node_modules/@pi-harness/core/dist/atomic-write.js +40 -0
- package/node_modules/@pi-harness/core/dist/atomic-write.js.map +1 -0
- package/node_modules/@pi-harness/core/dist/boot.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/boot.js +132 -10
- package/node_modules/@pi-harness/core/dist/boot.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/bounded-file.d.ts +7 -0
- package/node_modules/@pi-harness/core/dist/bounded-file.d.ts.map +1 -0
- package/node_modules/@pi-harness/core/dist/bounded-file.js +50 -0
- package/node_modules/@pi-harness/core/dist/bounded-file.js.map +1 -0
- package/node_modules/@pi-harness/core/dist/config.d.ts +2 -0
- package/node_modules/@pi-harness/core/dist/config.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/config.js +21 -0
- package/node_modules/@pi-harness/core/dist/config.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/cordis-timer.d.ts +15 -0
- package/node_modules/@pi-harness/core/dist/cordis-timer.d.ts.map +1 -0
- package/node_modules/@pi-harness/core/dist/cordis-timer.js +99 -0
- package/node_modules/@pi-harness/core/dist/cordis-timer.js.map +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/agent-teams.d.ts +5 -1
- package/node_modules/@pi-harness/core/dist/plugins/agent-teams.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/agent-teams.js +986 -105
- package/node_modules/@pi-harness/core/dist/plugins/agent-teams.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/anchored-standard.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/anchored-standard.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/anchored-standard.js +39 -11
- package/node_modules/@pi-harness/core/dist/plugins/anchored-standard.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/annotation.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/annotation.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/annotation.js +35 -17
- package/node_modules/@pi-harness/core/dist/plugins/annotation.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/archify.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/archify.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/archify.js +69 -22
- package/node_modules/@pi-harness/core/dist/plugins/archify.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/at-file.d.ts +5 -1
- package/node_modules/@pi-harness/core/dist/plugins/at-file.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/at-file.js +120 -29
- package/node_modules/@pi-harness/core/dist/plugins/at-file.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/auto-mode.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/auto-mode.js +89 -20
- package/node_modules/@pi-harness/core/dist/plugins/auto-mode.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/better-sidebar.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/better-sidebar.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/better-sidebar.js +14 -4
- package/node_modules/@pi-harness/core/dist/plugins/better-sidebar.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/browser-fetch.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/browser-fetch.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/browser-fetch.js +288 -96
- package/node_modules/@pi-harness/core/dist/plugins/browser-fetch.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/browser-session.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/browser-session.js +445 -106
- package/node_modules/@pi-harness/core/dist/plugins/browser-session.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/canvas-draw.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/canvas-draw.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/canvas-draw.js +71 -19
- package/node_modules/@pi-harness/core/dist/plugins/canvas-draw.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/change-verifier.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/change-verifier.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/change-verifier.js +30 -9
- package/node_modules/@pi-harness/core/dist/plugins/change-verifier.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/cleaner.d.ts +5 -1
- package/node_modules/@pi-harness/core/dist/plugins/cleaner.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/cleaner.js +337 -40
- package/node_modules/@pi-harness/core/dist/plugins/cleaner.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/cli-notifier.d.ts +2 -1
- package/node_modules/@pi-harness/core/dist/plugins/cli-notifier.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/cli-notifier.js +99 -42
- package/node_modules/@pi-harness/core/dist/plugins/cli-notifier.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/code2skill.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/code2skill.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/code2skill.js +178 -38
- package/node_modules/@pi-harness/core/dist/plugins/code2skill.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/colleague-skill.d.ts +2 -1
- package/node_modules/@pi-harness/core/dist/plugins/colleague-skill.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/colleague-skill.js +79 -49
- package/node_modules/@pi-harness/core/dist/plugins/colleague-skill.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/context-doctor.d.ts +6 -1
- package/node_modules/@pi-harness/core/dist/plugins/context-doctor.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/context-doctor.js +403 -39
- package/node_modules/@pi-harness/core/dist/plugins/context-doctor.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/context.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/context.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/context.js +169 -42
- package/node_modules/@pi-harness/core/dist/plugins/context.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/cost-meter.d.ts +4 -0
- package/node_modules/@pi-harness/core/dist/plugins/cost-meter.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/cost-meter.js +319 -93
- package/node_modules/@pi-harness/core/dist/plugins/cost-meter.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/dependency-checker.d.ts +11 -2
- package/node_modules/@pi-harness/core/dist/plugins/dependency-checker.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/dependency-checker.js +463 -114
- package/node_modules/@pi-harness/core/dist/plugins/dependency-checker.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/docker-sandbox.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/docker-sandbox.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/docker-sandbox.js +322 -80
- package/node_modules/@pi-harness/core/dist/plugins/docker-sandbox.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/fail-logger.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/fail-logger.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/fail-logger.js +187 -20
- package/node_modules/@pi-harness/core/dist/plugins/fail-logger.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/genui.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/genui.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/genui.js +103 -38
- package/node_modules/@pi-harness/core/dist/plugins/genui.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/git-time-capsule.d.ts +8 -2
- package/node_modules/@pi-harness/core/dist/plugins/git-time-capsule.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/git-time-capsule.js +400 -54
- package/node_modules/@pi-harness/core/dist/plugins/git-time-capsule.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/graph-memory.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/graph-memory.js +329 -42
- package/node_modules/@pi-harness/core/dist/plugins/graph-memory.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/history-compressor.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/history-compressor.js +31 -12
- package/node_modules/@pi-harness/core/dist/plugins/history-compressor.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/hol-guard.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/hol-guard.js +33 -13
- package/node_modules/@pi-harness/core/dist/plugins/hol-guard.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/i18n-pair.d.ts +5 -1
- package/node_modules/@pi-harness/core/dist/plugins/i18n-pair.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/i18n-pair.js +308 -52
- package/node_modules/@pi-harness/core/dist/plugins/i18n-pair.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/image-compressor.d.ts +7 -0
- package/node_modules/@pi-harness/core/dist/plugins/image-compressor.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/image-compressor.js +98 -25
- package/node_modules/@pi-harness/core/dist/plugins/image-compressor.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/llm-verifier.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/llm-verifier.js +21 -11
- package/node_modules/@pi-harness/core/dist/plugins/llm-verifier.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mcp-client.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mcp-client.js +986 -232
- package/node_modules/@pi-harness/core/dist/plugins/mcp-client.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mcp-panel.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mcp-panel.js +30 -16
- package/node_modules/@pi-harness/core/dist/plugins/mcp-panel.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/memory.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/memory.js +292 -59
- package/node_modules/@pi-harness/core/dist/plugins/memory.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mirage-bridge.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mirage-bridge.js +20 -10
- package/node_modules/@pi-harness/core/dist/plugins/mirage-bridge.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mock-server.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/mock-server.js +85 -54
- package/node_modules/@pi-harness/core/dist/plugins/mock-server.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/model.d.ts +3 -0
- package/node_modules/@pi-harness/core/dist/plugins/model.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/model.js +3 -0
- package/node_modules/@pi-harness/core/dist/plugins/model.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/models.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/models.js +10 -2
- package/node_modules/@pi-harness/core/dist/plugins/models.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/modlens.d.ts +8 -1
- package/node_modules/@pi-harness/core/dist/plugins/modlens.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/modlens.js +438 -31
- package/node_modules/@pi-harness/core/dist/plugins/modlens.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/module-search.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/module-search.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/module-search.js +35 -16
- package/node_modules/@pi-harness/core/dist/plugins/module-search.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/obsidian-sync.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/obsidian-sync.js +20 -11
- package/node_modules/@pi-harness/core/dist/plugins/obsidian-sync.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/openpets.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/openpets.js +203 -44
- package/node_modules/@pi-harness/core/dist/plugins/openpets.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plan-execute.d.ts +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/plan-execute.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plan-execute.js +42 -21
- package/node_modules/@pi-harness/core/dist/plugins/plan-execute.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-check.d.ts +12 -3
- package/node_modules/@pi-harness/core/dist/plugins/plugin-check.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-check.js +83 -12
- package/node_modules/@pi-harness/core/dist/plugins/plugin-check.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-dev.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/plugin-dev.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-dev.js +156 -23
- package/node_modules/@pi-harness/core/dist/plugins/plugin-dev.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-finder.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/plugin-finder.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-finder.js +131 -13
- package/node_modules/@pi-harness/core/dist/plugins/plugin-finder.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-radar.d.ts +4 -0
- package/node_modules/@pi-harness/core/dist/plugins/plugin-radar.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-radar.js +137 -36
- package/node_modules/@pi-harness/core/dist/plugins/plugin-radar.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-stars.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/plugin-stars.js +282 -81
- package/node_modules/@pi-harness/core/dist/plugins/plugin-stars.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/prompt-guard.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/prompt-guard.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/prompt-guard.js +60 -9
- package/node_modules/@pi-harness/core/dist/plugins/prompt-guard.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/prompt-library.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/prompt-library.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/prompt-library.js +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/prompt-library.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/readme-gen.d.ts +6 -2
- package/node_modules/@pi-harness/core/dist/plugins/readme-gen.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/readme-gen.js +514 -73
- package/node_modules/@pi-harness/core/dist/plugins/readme-gen.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/recall-unread.d.ts +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/recall-unread.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/recall-unread.js +411 -68
- package/node_modules/@pi-harness/core/dist/plugins/recall-unread.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/resources.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/resources.js +66 -3
- package/node_modules/@pi-harness/core/dist/plugins/resources.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/reverse-skill.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/reverse-skill.js +2 -1
- package/node_modules/@pi-harness/core/dist/plugins/reverse-skill.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/reviewer-bot.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/reviewer-bot.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/reviewer-bot.js +35 -16
- package/node_modules/@pi-harness/core/dist/plugins/reviewer-bot.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/runtime-doctor.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/runtime-doctor.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/runtime-doctor.js +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/runtime-doctor.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/runtime.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/runtime.js +104 -70
- package/node_modules/@pi-harness/core/dist/plugins/runtime.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/secure-audit.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/secure-audit.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/secure-audit.js +30 -12
- package/node_modules/@pi-harness/core/dist/plugins/secure-audit.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-bookmarks.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/session-bookmarks.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-bookmarks.js +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-bookmarks.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-bridge.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/session-bridge.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-bridge.js +401 -88
- package/node_modules/@pi-harness/core/dist/plugins/session-bridge.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-compare.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/session-compare.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-compare.js +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-compare.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-export.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/session-export.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-export.js +6 -6
- package/node_modules/@pi-harness/core/dist/plugins/session-export.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-insights.d.ts +37 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-insights.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-insights.js +406 -21
- package/node_modules/@pi-harness/core/dist/plugins/session-insights.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-search.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/session-search.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-search.js +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/session-search.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/session.js +8 -1
- package/node_modules/@pi-harness/core/dist/plugins/session.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/skill-catalog.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/skill-catalog.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/skill-catalog.js +6 -5
- package/node_modules/@pi-harness/core/dist/plugins/skill-catalog.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/skill-guard.d.ts +2 -1
- package/node_modules/@pi-harness/core/dist/plugins/skill-guard.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/skill-guard.js +241 -61
- package/node_modules/@pi-harness/core/dist/plugins/skill-guard.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens-worker.d.ts +2 -0
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens-worker.d.ts.map +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens-worker.js +206 -0
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens-worker.js.map +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens.d.ts +7 -1
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens.js +301 -68
- package/node_modules/@pi-harness/core/dist/plugins/sql-lens.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/stdio.d.ts +3 -0
- package/node_modules/@pi-harness/core/dist/plugins/stdio.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/stdio.js +62 -4
- package/node_modules/@pi-harness/core/dist/plugins/stdio.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/synapse.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/synapse.js +17 -9
- package/node_modules/@pi-harness/core/dist/plugins/synapse.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/tab-manager.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/tab-manager.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/tab-manager.js +167 -62
- package/node_modules/@pi-harness/core/dist/plugins/tab-manager.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/taskboard.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/taskboard.js +50 -22
- package/node_modules/@pi-harness/core/dist/plugins/taskboard.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/telemetry-blocker.d.ts +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/telemetry-blocker.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/telemetry-blocker.js +30 -11
- package/node_modules/@pi-harness/core/dist/plugins/telemetry-blocker.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/test-harness.d.ts +7 -1
- package/node_modules/@pi-harness/core/dist/plugins/test-harness.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/test-harness.js +255 -43
- package/node_modules/@pi-harness/core/dist/plugins/test-harness.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/theme-studio.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/theme-studio.js +4 -2
- package/node_modules/@pi-harness/core/dist/plugins/theme-studio.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/token-guard.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/token-guard.js +164 -32
- package/node_modules/@pi-harness/core/dist/plugins/token-guard.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/tools.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/tools.js +4 -1
- package/node_modules/@pi-harness/core/dist/plugins/tools.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/turn-rewind.d.ts +17 -0
- package/node_modules/@pi-harness/core/dist/plugins/turn-rewind.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/turn-rewind.js +340 -36
- package/node_modules/@pi-harness/core/dist/plugins/turn-rewind.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/undo-savepoint.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/undo-savepoint.js +157 -51
- package/node_modules/@pi-harness/core/dist/plugins/undo-savepoint.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/vision-toolkit.d.ts +22 -3
- package/node_modules/@pi-harness/core/dist/plugins/vision-toolkit.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/vision-toolkit.js +389 -66
- package/node_modules/@pi-harness/core/dist/plugins/vision-toolkit.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/web-research.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/web-research.js +13 -4
- package/node_modules/@pi-harness/core/dist/plugins/web-research.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/workspace-navigator.d.ts +8 -2
- package/node_modules/@pi-harness/core/dist/plugins/workspace-navigator.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/workspace-navigator.js +28 -10
- package/node_modules/@pi-harness/core/dist/plugins/workspace-navigator.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/workspace-search.d.ts +7 -0
- package/node_modules/@pi-harness/core/dist/plugins/workspace-search.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/workspace-search.js +67 -34
- package/node_modules/@pi-harness/core/dist/plugins/workspace-search.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/yaml-validator.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/plugins/yaml-validator.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/plugins/yaml-validator.js +156 -47
- package/node_modules/@pi-harness/core/dist/plugins/yaml-validator.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/runtime.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/runtime.js +8 -3
- package/node_modules/@pi-harness/core/dist/runtime.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/services.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/services.js +22 -2
- package/node_modules/@pi-harness/core/dist/services.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/stdio.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/stdio.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/stdio.js +241 -25
- package/node_modules/@pi-harness/core/dist/stdio.js.map +1 -1
- package/node_modules/@pi-harness/core/dist/workspace-path.d.ts +1 -0
- package/node_modules/@pi-harness/core/dist/workspace-path.d.ts.map +1 -1
- package/node_modules/@pi-harness/core/dist/workspace-path.js +9 -0
- package/node_modules/@pi-harness/core/dist/workspace-path.js.map +1 -1
- package/node_modules/@pi-harness/core/package.json +1 -1
- package/node_modules/@pi-harness/core/profiles/default/cordis.yml +4 -2
- package/node_modules/@pi-harness/host-webserver/package.json +1 -1
- package/node_modules/@pi-harness/web-app/package.json +1 -1
- package/package.json +12 -7
- package/packages/api-gateway/dist/index.d.ts.map +1 -1
- package/packages/api-gateway/dist/index.js +97 -9
- package/packages/api-gateway/dist/index.js.map +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/agent-teams.json +6 -6
- package/packages/api-gateway/dist/marketplace-entries/official/anchored-standard.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/annotation.json +1 -2
- package/packages/api-gateway/dist/marketplace-entries/official/archify.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/at-file.json +11 -5
- package/packages/api-gateway/dist/marketplace-entries/official/auto-mode.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/better-sidebar.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/browser-fetch.json +12 -5
- package/packages/api-gateway/dist/marketplace-entries/official/browser-session.json +14 -8
- package/packages/api-gateway/dist/marketplace-entries/official/canvas-draw.json +3 -4
- package/packages/api-gateway/dist/marketplace-entries/official/change-verifier.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/cleaner.json +11 -6
- package/packages/api-gateway/dist/marketplace-entries/official/cli-notifier.json +5 -5
- package/packages/api-gateway/dist/marketplace-entries/official/code2skill.json +5 -5
- package/packages/api-gateway/dist/marketplace-entries/official/colleague-skill.json +1 -2
- package/packages/api-gateway/dist/marketplace-entries/official/context-doctor.json +12 -7
- package/packages/api-gateway/dist/marketplace-entries/official/context.json +10 -5
- package/packages/api-gateway/dist/marketplace-entries/official/cordis-group.json +2 -2
- package/packages/api-gateway/dist/marketplace-entries/official/cordis-logger-console.json +4 -4
- package/packages/api-gateway/dist/marketplace-entries/official/cordis-timer.json +3 -3
- package/packages/api-gateway/dist/marketplace-entries/official/cost-meter.json +9 -6
- package/packages/api-gateway/dist/marketplace-entries/official/dependency-checker.json +13 -10
- package/packages/api-gateway/dist/marketplace-entries/official/docker-sandbox.json +10 -5
- package/packages/api-gateway/dist/marketplace-entries/official/fail-logger.json +11 -6
- package/packages/api-gateway/dist/marketplace-entries/official/genui.json +7 -5
- package/packages/api-gateway/dist/marketplace-entries/official/git-time-capsule.json +13 -8
- package/packages/api-gateway/dist/marketplace-entries/official/graph-memory.json +13 -7
- package/packages/api-gateway/dist/marketplace-entries/official/history-compressor.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/hol-guard.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/i18n-pair.json +9 -6
- package/packages/api-gateway/dist/marketplace-entries/official/image-compressor.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/llm-verifier.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/mcp-client.json +12 -7
- package/packages/api-gateway/dist/marketplace-entries/official/mcp-panel.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/memory.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/mirage-bridge.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/mock-server.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/modlens.json +4 -4
- package/packages/api-gateway/dist/marketplace-entries/official/module-search.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/obsidian-sync.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/openpets.json +9 -5
- package/packages/api-gateway/dist/marketplace-entries/official/plan-execute.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/plugin-check.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/plugin-dev.json +8 -6
- package/packages/api-gateway/dist/marketplace-entries/official/plugin-finder.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/plugin-radar.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/plugin-stars.json +15 -7
- package/packages/api-gateway/dist/marketplace-entries/official/prompt-guard.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/prompt-library.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/readme-gen.json +12 -8
- package/packages/api-gateway/dist/marketplace-entries/official/recall-unread.json +11 -6
- package/packages/api-gateway/dist/marketplace-entries/official/reverse-skill.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/reviewer-bot.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/runtime-doctor.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/secure-audit.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/session-bookmarks.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/session-bridge.json +13 -8
- package/packages/api-gateway/dist/marketplace-entries/official/session-compare.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/session-export.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/session-insights.json +12 -6
- package/packages/api-gateway/dist/marketplace-entries/official/session-search.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/skill-catalog.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/skill-guard.json +9 -5
- package/packages/api-gateway/dist/marketplace-entries/official/sql-lens.json +13 -7
- package/packages/api-gateway/dist/marketplace-entries/official/synapse.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/tab-manager.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/taskboard.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/telemetry-blocker.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/test-harness.json +14 -7
- package/packages/api-gateway/dist/marketplace-entries/official/theme-studio.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/token-guard.json +12 -6
- package/packages/api-gateway/dist/marketplace-entries/official/turn-rewind.json +11 -6
- package/packages/api-gateway/dist/marketplace-entries/official/undo-savepoint.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/vision-toolkit.json +8 -5
- package/packages/api-gateway/dist/marketplace-entries/official/web-research.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/workspace-navigator.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/workspace-search.json +1 -1
- package/packages/api-gateway/dist/marketplace-entries/official/yaml-validator.json +8 -5
- package/packages/api-gateway/package.json +1 -1
- package/packages/api-gateway/src/index.ts +90 -9
- package/packages/api-gateway/src/marketplace-entries/official/agent-teams.json +6 -6
- package/packages/api-gateway/src/marketplace-entries/official/anchored-standard.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/annotation.json +1 -2
- package/packages/api-gateway/src/marketplace-entries/official/archify.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/at-file.json +11 -5
- package/packages/api-gateway/src/marketplace-entries/official/auto-mode.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/better-sidebar.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/browser-fetch.json +12 -5
- package/packages/api-gateway/src/marketplace-entries/official/browser-session.json +14 -8
- package/packages/api-gateway/src/marketplace-entries/official/canvas-draw.json +3 -4
- package/packages/api-gateway/src/marketplace-entries/official/change-verifier.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/cleaner.json +11 -6
- package/packages/api-gateway/src/marketplace-entries/official/cli-notifier.json +5 -5
- package/packages/api-gateway/src/marketplace-entries/official/code2skill.json +5 -5
- package/packages/api-gateway/src/marketplace-entries/official/colleague-skill.json +1 -2
- package/packages/api-gateway/src/marketplace-entries/official/context-doctor.json +12 -7
- package/packages/api-gateway/src/marketplace-entries/official/context.json +10 -5
- package/packages/api-gateway/src/marketplace-entries/official/cordis-group.json +2 -2
- package/packages/api-gateway/src/marketplace-entries/official/cordis-logger-console.json +4 -4
- package/packages/api-gateway/src/marketplace-entries/official/cordis-timer.json +3 -3
- package/packages/api-gateway/src/marketplace-entries/official/cost-meter.json +9 -6
- package/packages/api-gateway/src/marketplace-entries/official/dependency-checker.json +13 -10
- package/packages/api-gateway/src/marketplace-entries/official/docker-sandbox.json +10 -5
- package/packages/api-gateway/src/marketplace-entries/official/fail-logger.json +11 -6
- package/packages/api-gateway/src/marketplace-entries/official/genui.json +7 -5
- package/packages/api-gateway/src/marketplace-entries/official/git-time-capsule.json +13 -8
- package/packages/api-gateway/src/marketplace-entries/official/graph-memory.json +13 -7
- package/packages/api-gateway/src/marketplace-entries/official/history-compressor.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/hol-guard.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/i18n-pair.json +9 -6
- package/packages/api-gateway/src/marketplace-entries/official/image-compressor.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/llm-verifier.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/mcp-client.json +12 -7
- package/packages/api-gateway/src/marketplace-entries/official/mcp-panel.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/memory.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/mirage-bridge.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/mock-server.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/modlens.json +4 -4
- package/packages/api-gateway/src/marketplace-entries/official/module-search.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/obsidian-sync.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/openpets.json +9 -5
- package/packages/api-gateway/src/marketplace-entries/official/plan-execute.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/plugin-check.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/plugin-dev.json +8 -6
- package/packages/api-gateway/src/marketplace-entries/official/plugin-finder.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/plugin-radar.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/plugin-stars.json +15 -7
- package/packages/api-gateway/src/marketplace-entries/official/prompt-guard.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/prompt-library.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/readme-gen.json +12 -8
- package/packages/api-gateway/src/marketplace-entries/official/recall-unread.json +11 -6
- package/packages/api-gateway/src/marketplace-entries/official/reverse-skill.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/reviewer-bot.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/runtime-doctor.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/secure-audit.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/session-bookmarks.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/session-bridge.json +13 -8
- package/packages/api-gateway/src/marketplace-entries/official/session-compare.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/session-export.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/session-insights.json +12 -6
- package/packages/api-gateway/src/marketplace-entries/official/session-search.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/skill-catalog.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/skill-guard.json +9 -5
- package/packages/api-gateway/src/marketplace-entries/official/sql-lens.json +13 -7
- package/packages/api-gateway/src/marketplace-entries/official/synapse.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/tab-manager.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/taskboard.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/telemetry-blocker.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/test-harness.json +14 -7
- package/packages/api-gateway/src/marketplace-entries/official/theme-studio.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/token-guard.json +12 -6
- package/packages/api-gateway/src/marketplace-entries/official/turn-rewind.json +11 -6
- package/packages/api-gateway/src/marketplace-entries/official/undo-savepoint.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/vision-toolkit.json +8 -5
- package/packages/api-gateway/src/marketplace-entries/official/web-research.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/workspace-navigator.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/workspace-search.json +1 -1
- package/packages/api-gateway/src/marketplace-entries/official/yaml-validator.json +8 -5
- package/packages/api-gateway/test/index.test.ts +1594 -2
- package/packages/api-gateway/test/marketplace.test.ts +389 -2
- package/packages/api-gateway/test/release-package.test.ts +1 -0
- package/packages/bundle-web-app/package.json +1 -1
- package/packages/cli/dist/node-stdio.d.ts.map +1 -1
- package/packages/cli/dist/node-stdio.js +83 -20
- package/packages/cli/dist/node-stdio.js.map +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/node-stdio.ts +77 -20
- package/packages/cli/test/node-stdio.test.ts +118 -2
- package/packages/client-web/dist/agent-teams-view.d.ts +70 -0
- package/packages/client-web/dist/agent-teams-view.d.ts.map +1 -0
- package/packages/client-web/dist/agent-teams-view.js +159 -0
- package/packages/client-web/dist/agent-teams-view.js.map +1 -0
- package/packages/client-web/dist/at-file-view.d.ts +10 -0
- package/packages/client-web/dist/at-file-view.d.ts.map +1 -0
- package/packages/client-web/dist/at-file-view.js +65 -0
- package/packages/client-web/dist/at-file-view.js.map +1 -0
- package/packages/client-web/dist/browser-fetch-view.d.ts +22 -0
- package/packages/client-web/dist/browser-fetch-view.d.ts.map +1 -0
- package/packages/client-web/dist/browser-fetch-view.js +101 -0
- package/packages/client-web/dist/browser-fetch-view.js.map +1 -0
- package/packages/client-web/dist/browser-session-view.d.ts +32 -0
- package/packages/client-web/dist/browser-session-view.d.ts.map +1 -1
- package/packages/client-web/dist/browser-session-view.js +206 -3
- package/packages/client-web/dist/browser-session-view.js.map +1 -1
- package/packages/client-web/dist/cleaner-view.d.ts +29 -0
- package/packages/client-web/dist/cleaner-view.d.ts.map +1 -0
- package/packages/client-web/dist/cleaner-view.js +191 -0
- package/packages/client-web/dist/cleaner-view.js.map +1 -0
- package/packages/client-web/dist/context-doctor-view.d.ts +35 -0
- package/packages/client-web/dist/context-doctor-view.d.ts.map +1 -0
- package/packages/client-web/dist/context-doctor-view.js +129 -0
- package/packages/client-web/dist/context-doctor-view.js.map +1 -0
- package/packages/client-web/dist/context-insights-view.d.ts +31 -0
- package/packages/client-web/dist/context-insights-view.d.ts.map +1 -0
- package/packages/client-web/dist/context-insights-view.js +90 -0
- package/packages/client-web/dist/context-insights-view.js.map +1 -0
- package/packages/client-web/dist/cost-meter-view.d.ts +16 -0
- package/packages/client-web/dist/cost-meter-view.d.ts.map +1 -0
- package/packages/client-web/dist/cost-meter-view.js +43 -0
- package/packages/client-web/dist/cost-meter-view.js.map +1 -0
- package/packages/client-web/dist/dependency-checker-view.d.ts +24 -0
- package/packages/client-web/dist/dependency-checker-view.d.ts.map +1 -0
- package/packages/client-web/dist/dependency-checker-view.js +195 -0
- package/packages/client-web/dist/dependency-checker-view.js.map +1 -0
- package/packages/client-web/dist/docker-sandbox-view.d.ts +28 -0
- package/packages/client-web/dist/docker-sandbox-view.d.ts.map +1 -0
- package/packages/client-web/dist/docker-sandbox-view.js +152 -0
- package/packages/client-web/dist/docker-sandbox-view.js.map +1 -0
- package/packages/client-web/dist/fail-logger-view.d.ts +16 -0
- package/packages/client-web/dist/fail-logger-view.d.ts.map +1 -0
- package/packages/client-web/dist/fail-logger-view.js +97 -0
- package/packages/client-web/dist/fail-logger-view.js.map +1 -0
- package/packages/client-web/dist/genui-view.d.ts +28 -0
- package/packages/client-web/dist/genui-view.d.ts.map +1 -0
- package/packages/client-web/dist/genui-view.js +62 -0
- package/packages/client-web/dist/genui-view.js.map +1 -0
- package/packages/client-web/dist/git-time-capsule-view.d.ts +31 -0
- package/packages/client-web/dist/git-time-capsule-view.d.ts.map +1 -0
- package/packages/client-web/dist/git-time-capsule-view.js +203 -0
- package/packages/client-web/dist/git-time-capsule-view.js.map +1 -0
- package/packages/client-web/dist/graph-memory-view.d.ts +39 -0
- package/packages/client-web/dist/graph-memory-view.d.ts.map +1 -0
- package/packages/client-web/dist/graph-memory-view.js +82 -0
- package/packages/client-web/dist/graph-memory-view.js.map +1 -0
- package/packages/client-web/dist/i18n-pair-view.d.ts +32 -0
- package/packages/client-web/dist/i18n-pair-view.d.ts.map +1 -0
- package/packages/client-web/dist/i18n-pair-view.js +182 -0
- package/packages/client-web/dist/i18n-pair-view.js.map +1 -0
- package/packages/client-web/dist/mcp-client-view.d.ts +58 -0
- package/packages/client-web/dist/mcp-client-view.d.ts.map +1 -0
- package/packages/client-web/dist/mcp-client-view.js +121 -0
- package/packages/client-web/dist/mcp-client-view.js.map +1 -0
- package/packages/client-web/dist/modlens-view.d.ts +43 -0
- package/packages/client-web/dist/modlens-view.d.ts.map +1 -0
- package/packages/client-web/dist/modlens-view.js +176 -0
- package/packages/client-web/dist/modlens-view.js.map +1 -0
- package/packages/client-web/dist/openpets-view.d.ts +26 -0
- package/packages/client-web/dist/openpets-view.d.ts.map +1 -0
- package/packages/client-web/dist/openpets-view.js +62 -0
- package/packages/client-web/dist/openpets-view.js.map +1 -0
- package/packages/client-web/dist/panel-safe.d.ts +5 -0
- package/packages/client-web/dist/panel-safe.d.ts.map +1 -0
- package/packages/client-web/dist/panel-safe.js +58 -0
- package/packages/client-web/dist/panel-safe.js.map +1 -0
- package/packages/client-web/dist/plugin-dev-view.d.ts +15 -0
- package/packages/client-web/dist/plugin-dev-view.d.ts.map +1 -0
- package/packages/client-web/dist/plugin-dev-view.js +33 -0
- package/packages/client-web/dist/plugin-dev-view.js.map +1 -0
- package/packages/client-web/dist/plugin-stars-view.d.ts +28 -0
- package/packages/client-web/dist/plugin-stars-view.d.ts.map +1 -1
- package/packages/client-web/dist/plugin-stars-view.js +209 -1
- package/packages/client-web/dist/plugin-stars-view.js.map +1 -1
- package/packages/client-web/dist/react-room.d.ts +5 -1
- package/packages/client-web/dist/react-room.d.ts.map +1 -1
- package/packages/client-web/dist/react-room.js +463 -219
- package/packages/client-web/dist/react-room.js.map +1 -1
- package/packages/client-web/dist/readme-gen-view.d.ts +30 -0
- package/packages/client-web/dist/readme-gen-view.d.ts.map +1 -0
- package/packages/client-web/dist/readme-gen-view.js +134 -0
- package/packages/client-web/dist/readme-gen-view.js.map +1 -0
- package/packages/client-web/dist/recall-unread-view.d.ts +46 -0
- package/packages/client-web/dist/recall-unread-view.d.ts.map +1 -0
- package/packages/client-web/dist/recall-unread-view.js +104 -0
- package/packages/client-web/dist/recall-unread-view.js.map +1 -0
- package/packages/client-web/dist/session-bridge-view.d.ts +50 -0
- package/packages/client-web/dist/session-bridge-view.d.ts.map +1 -0
- package/packages/client-web/dist/session-bridge-view.js +113 -0
- package/packages/client-web/dist/session-bridge-view.js.map +1 -0
- package/packages/client-web/dist/session-insights-view.d.ts +40 -0
- package/packages/client-web/dist/session-insights-view.d.ts.map +1 -0
- package/packages/client-web/dist/session-insights-view.js +157 -0
- package/packages/client-web/dist/session-insights-view.js.map +1 -0
- package/packages/client-web/dist/skill-guard-view.d.ts +47 -0
- package/packages/client-web/dist/skill-guard-view.d.ts.map +1 -0
- package/packages/client-web/dist/skill-guard-view.js +93 -0
- package/packages/client-web/dist/skill-guard-view.js.map +1 -0
- package/packages/client-web/dist/sql-lens-view.d.ts +37 -0
- package/packages/client-web/dist/sql-lens-view.d.ts.map +1 -0
- package/packages/client-web/dist/sql-lens-view.js +235 -0
- package/packages/client-web/dist/sql-lens-view.js.map +1 -0
- package/packages/client-web/dist/test-harness-view.d.ts +24 -0
- package/packages/client-web/dist/test-harness-view.d.ts.map +1 -0
- package/packages/client-web/dist/test-harness-view.js +149 -0
- package/packages/client-web/dist/test-harness-view.js.map +1 -0
- package/packages/client-web/dist/token-guard-view.d.ts +19 -0
- package/packages/client-web/dist/token-guard-view.d.ts.map +1 -0
- package/packages/client-web/dist/token-guard-view.js +56 -0
- package/packages/client-web/dist/token-guard-view.js.map +1 -0
- package/packages/client-web/dist/turn-rewind-view.d.ts +41 -0
- package/packages/client-web/dist/turn-rewind-view.d.ts.map +1 -0
- package/packages/client-web/dist/turn-rewind-view.js +117 -0
- package/packages/client-web/dist/turn-rewind-view.js.map +1 -0
- package/packages/client-web/dist/vision-toolkit-view.d.ts +66 -0
- package/packages/client-web/dist/vision-toolkit-view.d.ts.map +1 -0
- package/packages/client-web/dist/vision-toolkit-view.js +238 -0
- package/packages/client-web/dist/vision-toolkit-view.js.map +1 -0
- package/packages/client-web/dist/yaml-validator-view.d.ts +52 -0
- package/packages/client-web/dist/yaml-validator-view.d.ts.map +1 -0
- package/packages/client-web/dist/yaml-validator-view.js +96 -0
- package/packages/client-web/dist/yaml-validator-view.js.map +1 -0
- package/packages/client-web/package.json +1 -1
- package/packages/client-web/src/agent-teams-view.ts +189 -0
- package/packages/client-web/src/at-file-view.ts +69 -0
- package/packages/client-web/src/browser-fetch-view.ts +114 -0
- package/packages/client-web/src/browser-session-view.ts +222 -3
- package/packages/client-web/src/cleaner-view.ts +207 -0
- package/packages/client-web/src/context-doctor-view.ts +140 -0
- package/packages/client-web/src/context-insights-view.ts +125 -0
- package/packages/client-web/src/cost-meter-view.ts +63 -0
- package/packages/client-web/src/dependency-checker-view.ts +215 -0
- package/packages/client-web/src/docker-sandbox-view.ts +177 -0
- package/packages/client-web/src/fail-logger-view.ts +112 -0
- package/packages/client-web/src/genui-view.ts +88 -0
- package/packages/client-web/src/git-time-capsule-view.ts +215 -0
- package/packages/client-web/src/graph-memory-view.ts +91 -0
- package/packages/client-web/src/i18n-pair-view.ts +194 -0
- package/packages/client-web/src/mcp-client-view.ts +122 -0
- package/packages/client-web/src/modlens-view.ts +210 -0
- package/packages/client-web/src/openpets-view.ts +67 -0
- package/packages/client-web/src/panel-safe.ts +47 -0
- package/packages/client-web/src/plugin-dev-view.ts +39 -0
- package/packages/client-web/src/plugin-stars-view.ts +239 -1
- package/packages/client-web/src/react-room.tsx +1770 -900
- package/packages/client-web/src/readme-gen-view.ts +145 -0
- package/packages/client-web/src/recall-unread-view.ts +105 -0
- package/packages/client-web/src/session-bridge-view.ts +118 -0
- package/packages/client-web/src/session-insights-view.ts +205 -0
- package/packages/client-web/src/skill-guard-view.ts +94 -0
- package/packages/client-web/src/sql-lens-view.ts +247 -0
- package/packages/client-web/src/test-harness-view.ts +170 -0
- package/packages/client-web/src/token-guard-view.ts +75 -0
- package/packages/client-web/src/turn-rewind-view.ts +120 -0
- package/packages/client-web/src/vision-toolkit-view.ts +280 -0
- package/packages/client-web/src/yaml-validator-view.ts +102 -0
- package/packages/client-web/test/agent-teams-view.test.ts +198 -0
- package/packages/client-web/test/at-file-panel.test.ts +76 -0
- package/packages/client-web/test/browser-fetch-panel.test.ts +44 -0
- package/packages/client-web/test/browser-fetch-view.test.ts +89 -0
- package/packages/client-web/test/browser-session-panel.test.ts +55 -0
- package/packages/client-web/test/browser-session-view.test.ts +99 -1
- package/packages/client-web/test/cleaner-panel.test.ts +66 -0
- package/packages/client-web/test/cleaner-view.test.ts +143 -0
- package/packages/client-web/test/context-doctor-view.test.ts +169 -0
- package/packages/client-web/test/context-insights-view.test.ts +120 -0
- package/packages/client-web/test/cost-meter-view.test.ts +53 -0
- package/packages/client-web/test/dependency-checker-panel.test.ts +51 -0
- package/packages/client-web/test/dependency-checker-view.test.ts +266 -0
- package/packages/client-web/test/docker-sandbox-panel.test.ts +44 -0
- package/packages/client-web/test/docker-sandbox-view.test.ts +127 -0
- package/packages/client-web/test/fail-logger-view.test.ts +155 -0
- package/packages/client-web/test/genui-view.test.ts +55 -0
- package/packages/client-web/test/git-time-capsule-view.test.ts +252 -0
- package/packages/client-web/test/graph-memory-view.test.ts +67 -0
- package/packages/client-web/test/i18n-pair-panel.test.ts +72 -0
- package/packages/client-web/test/i18n-pair-view.test.ts +164 -0
- package/packages/client-web/test/mcp-client-view.test.ts +106 -0
- package/packages/client-web/test/modlens-view.test.ts +198 -0
- package/packages/client-web/test/openpets-view.test.ts +57 -0
- package/packages/client-web/test/plugin-dev-view.test.ts +63 -0
- package/packages/client-web/test/plugin-stars-panel.test.ts +44 -0
- package/packages/client-web/test/plugin-stars-view.test.ts +88 -1
- package/packages/client-web/test/readme-gen-panel.test.ts +81 -0
- package/packages/client-web/test/readme-gen-view.test.ts +91 -0
- package/packages/client-web/test/recall-unread-view.test.ts +153 -0
- package/packages/client-web/test/session-bridge-view.test.ts +102 -0
- package/packages/client-web/test/session-insights-panel.test.ts +85 -0
- package/packages/client-web/test/session-insights-view.test.ts +152 -0
- package/packages/client-web/test/skill-guard-view.test.ts +138 -0
- package/packages/client-web/test/sql-lens-panel.test.ts +52 -0
- package/packages/client-web/test/sql-lens-view.test.ts +134 -0
- package/packages/client-web/test/test-harness-panel.test.ts +228 -0
- package/packages/client-web/test/token-guard-view.test.ts +93 -0
- package/packages/client-web/test/turn-rewind-view.test.ts +159 -0
- package/packages/client-web/test/vision-toolkit-view.test.ts +152 -0
- package/packages/client-web/test/yaml-validator-view.test.ts +100 -0
- package/packages/core/dist/atomic-write.d.ts +8 -0
- package/packages/core/dist/atomic-write.d.ts.map +1 -0
- package/packages/core/dist/atomic-write.js +40 -0
- package/packages/core/dist/atomic-write.js.map +1 -0
- package/packages/core/dist/boot.d.ts.map +1 -1
- package/packages/core/dist/boot.js +132 -10
- package/packages/core/dist/boot.js.map +1 -1
- package/packages/core/dist/bounded-file.d.ts +7 -0
- package/packages/core/dist/bounded-file.d.ts.map +1 -0
- package/packages/core/dist/bounded-file.js +50 -0
- package/packages/core/dist/bounded-file.js.map +1 -0
- package/packages/core/dist/config.d.ts +2 -0
- package/packages/core/dist/config.d.ts.map +1 -1
- package/packages/core/dist/config.js +21 -0
- package/packages/core/dist/config.js.map +1 -1
- package/packages/core/dist/cordis-timer.d.ts +15 -0
- package/packages/core/dist/cordis-timer.d.ts.map +1 -0
- package/packages/core/dist/cordis-timer.js +99 -0
- package/packages/core/dist/cordis-timer.js.map +1 -0
- package/packages/core/dist/plugins/agent-teams.d.ts +5 -1
- package/packages/core/dist/plugins/agent-teams.d.ts.map +1 -1
- package/packages/core/dist/plugins/agent-teams.js +986 -105
- package/packages/core/dist/plugins/agent-teams.js.map +1 -1
- package/packages/core/dist/plugins/anchored-standard.d.ts +1 -0
- package/packages/core/dist/plugins/anchored-standard.d.ts.map +1 -1
- package/packages/core/dist/plugins/anchored-standard.js +39 -11
- package/packages/core/dist/plugins/anchored-standard.js.map +1 -1
- package/packages/core/dist/plugins/annotation.d.ts +1 -0
- package/packages/core/dist/plugins/annotation.d.ts.map +1 -1
- package/packages/core/dist/plugins/annotation.js +35 -17
- package/packages/core/dist/plugins/annotation.js.map +1 -1
- package/packages/core/dist/plugins/archify.d.ts +1 -0
- package/packages/core/dist/plugins/archify.d.ts.map +1 -1
- package/packages/core/dist/plugins/archify.js +69 -22
- package/packages/core/dist/plugins/archify.js.map +1 -1
- package/packages/core/dist/plugins/at-file.d.ts +5 -1
- package/packages/core/dist/plugins/at-file.d.ts.map +1 -1
- package/packages/core/dist/plugins/at-file.js +120 -29
- package/packages/core/dist/plugins/at-file.js.map +1 -1
- package/packages/core/dist/plugins/auto-mode.d.ts.map +1 -1
- package/packages/core/dist/plugins/auto-mode.js +89 -20
- package/packages/core/dist/plugins/auto-mode.js.map +1 -1
- package/packages/core/dist/plugins/better-sidebar.d.ts +1 -0
- package/packages/core/dist/plugins/better-sidebar.d.ts.map +1 -1
- package/packages/core/dist/plugins/better-sidebar.js +14 -4
- package/packages/core/dist/plugins/better-sidebar.js.map +1 -1
- package/packages/core/dist/plugins/browser-fetch.d.ts +1 -0
- package/packages/core/dist/plugins/browser-fetch.d.ts.map +1 -1
- package/packages/core/dist/plugins/browser-fetch.js +288 -96
- package/packages/core/dist/plugins/browser-fetch.js.map +1 -1
- package/packages/core/dist/plugins/browser-session.d.ts.map +1 -1
- package/packages/core/dist/plugins/browser-session.js +445 -106
- package/packages/core/dist/plugins/browser-session.js.map +1 -1
- package/packages/core/dist/plugins/canvas-draw.d.ts +1 -0
- package/packages/core/dist/plugins/canvas-draw.d.ts.map +1 -1
- package/packages/core/dist/plugins/canvas-draw.js +71 -19
- package/packages/core/dist/plugins/canvas-draw.js.map +1 -1
- package/packages/core/dist/plugins/change-verifier.d.ts +1 -0
- package/packages/core/dist/plugins/change-verifier.d.ts.map +1 -1
- package/packages/core/dist/plugins/change-verifier.js +30 -9
- package/packages/core/dist/plugins/change-verifier.js.map +1 -1
- package/packages/core/dist/plugins/cleaner.d.ts +5 -1
- package/packages/core/dist/plugins/cleaner.d.ts.map +1 -1
- package/packages/core/dist/plugins/cleaner.js +337 -40
- package/packages/core/dist/plugins/cleaner.js.map +1 -1
- package/packages/core/dist/plugins/cli-notifier.d.ts +2 -1
- package/packages/core/dist/plugins/cli-notifier.d.ts.map +1 -1
- package/packages/core/dist/plugins/cli-notifier.js +99 -42
- package/packages/core/dist/plugins/cli-notifier.js.map +1 -1
- package/packages/core/dist/plugins/code2skill.d.ts +1 -0
- package/packages/core/dist/plugins/code2skill.d.ts.map +1 -1
- package/packages/core/dist/plugins/code2skill.js +178 -38
- package/packages/core/dist/plugins/code2skill.js.map +1 -1
- package/packages/core/dist/plugins/colleague-skill.d.ts +2 -1
- package/packages/core/dist/plugins/colleague-skill.d.ts.map +1 -1
- package/packages/core/dist/plugins/colleague-skill.js +79 -49
- package/packages/core/dist/plugins/colleague-skill.js.map +1 -1
- package/packages/core/dist/plugins/context-doctor.d.ts +6 -1
- package/packages/core/dist/plugins/context-doctor.d.ts.map +1 -1
- package/packages/core/dist/plugins/context-doctor.js +403 -39
- package/packages/core/dist/plugins/context-doctor.js.map +1 -1
- package/packages/core/dist/plugins/context.d.ts +1 -0
- package/packages/core/dist/plugins/context.d.ts.map +1 -1
- package/packages/core/dist/plugins/context.js +169 -42
- package/packages/core/dist/plugins/context.js.map +1 -1
- package/packages/core/dist/plugins/cost-meter.d.ts +4 -0
- package/packages/core/dist/plugins/cost-meter.d.ts.map +1 -1
- package/packages/core/dist/plugins/cost-meter.js +319 -93
- package/packages/core/dist/plugins/cost-meter.js.map +1 -1
- package/packages/core/dist/plugins/dependency-checker.d.ts +11 -2
- package/packages/core/dist/plugins/dependency-checker.d.ts.map +1 -1
- package/packages/core/dist/plugins/dependency-checker.js +463 -114
- package/packages/core/dist/plugins/dependency-checker.js.map +1 -1
- package/packages/core/dist/plugins/docker-sandbox.d.ts +1 -0
- package/packages/core/dist/plugins/docker-sandbox.d.ts.map +1 -1
- package/packages/core/dist/plugins/docker-sandbox.js +322 -80
- package/packages/core/dist/plugins/docker-sandbox.js.map +1 -1
- package/packages/core/dist/plugins/fail-logger.d.ts +1 -0
- package/packages/core/dist/plugins/fail-logger.d.ts.map +1 -1
- package/packages/core/dist/plugins/fail-logger.js +187 -20
- package/packages/core/dist/plugins/fail-logger.js.map +1 -1
- package/packages/core/dist/plugins/genui.d.ts +1 -0
- package/packages/core/dist/plugins/genui.d.ts.map +1 -1
- package/packages/core/dist/plugins/genui.js +103 -38
- package/packages/core/dist/plugins/genui.js.map +1 -1
- package/packages/core/dist/plugins/git-time-capsule.d.ts +8 -2
- package/packages/core/dist/plugins/git-time-capsule.d.ts.map +1 -1
- package/packages/core/dist/plugins/git-time-capsule.js +400 -54
- package/packages/core/dist/plugins/git-time-capsule.js.map +1 -1
- package/packages/core/dist/plugins/graph-memory.d.ts.map +1 -1
- package/packages/core/dist/plugins/graph-memory.js +329 -42
- package/packages/core/dist/plugins/graph-memory.js.map +1 -1
- package/packages/core/dist/plugins/history-compressor.d.ts.map +1 -1
- package/packages/core/dist/plugins/history-compressor.js +31 -12
- package/packages/core/dist/plugins/history-compressor.js.map +1 -1
- package/packages/core/dist/plugins/hol-guard.d.ts.map +1 -1
- package/packages/core/dist/plugins/hol-guard.js +33 -13
- package/packages/core/dist/plugins/hol-guard.js.map +1 -1
- package/packages/core/dist/plugins/i18n-pair.d.ts +5 -1
- package/packages/core/dist/plugins/i18n-pair.d.ts.map +1 -1
- package/packages/core/dist/plugins/i18n-pair.js +308 -52
- package/packages/core/dist/plugins/i18n-pair.js.map +1 -1
- package/packages/core/dist/plugins/image-compressor.d.ts +7 -0
- package/packages/core/dist/plugins/image-compressor.d.ts.map +1 -1
- package/packages/core/dist/plugins/image-compressor.js +98 -25
- package/packages/core/dist/plugins/image-compressor.js.map +1 -1
- package/packages/core/dist/plugins/llm-verifier.d.ts.map +1 -1
- package/packages/core/dist/plugins/llm-verifier.js +21 -11
- package/packages/core/dist/plugins/llm-verifier.js.map +1 -1
- package/packages/core/dist/plugins/mcp-client.d.ts.map +1 -1
- package/packages/core/dist/plugins/mcp-client.js +986 -232
- package/packages/core/dist/plugins/mcp-client.js.map +1 -1
- package/packages/core/dist/plugins/mcp-panel.d.ts.map +1 -1
- package/packages/core/dist/plugins/mcp-panel.js +30 -16
- package/packages/core/dist/plugins/mcp-panel.js.map +1 -1
- package/packages/core/dist/plugins/memory.d.ts.map +1 -1
- package/packages/core/dist/plugins/memory.js +292 -59
- package/packages/core/dist/plugins/memory.js.map +1 -1
- package/packages/core/dist/plugins/mirage-bridge.d.ts.map +1 -1
- package/packages/core/dist/plugins/mirage-bridge.js +20 -10
- package/packages/core/dist/plugins/mirage-bridge.js.map +1 -1
- package/packages/core/dist/plugins/mock-server.d.ts.map +1 -1
- package/packages/core/dist/plugins/mock-server.js +85 -54
- package/packages/core/dist/plugins/mock-server.js.map +1 -1
- package/packages/core/dist/plugins/model.d.ts +3 -0
- package/packages/core/dist/plugins/model.d.ts.map +1 -1
- package/packages/core/dist/plugins/model.js +3 -0
- package/packages/core/dist/plugins/model.js.map +1 -1
- package/packages/core/dist/plugins/models.d.ts.map +1 -1
- package/packages/core/dist/plugins/models.js +10 -2
- package/packages/core/dist/plugins/models.js.map +1 -1
- package/packages/core/dist/plugins/modlens.d.ts +8 -1
- package/packages/core/dist/plugins/modlens.d.ts.map +1 -1
- package/packages/core/dist/plugins/modlens.js +438 -31
- package/packages/core/dist/plugins/modlens.js.map +1 -1
- package/packages/core/dist/plugins/module-search.d.ts +1 -0
- package/packages/core/dist/plugins/module-search.d.ts.map +1 -1
- package/packages/core/dist/plugins/module-search.js +35 -16
- package/packages/core/dist/plugins/module-search.js.map +1 -1
- package/packages/core/dist/plugins/obsidian-sync.d.ts.map +1 -1
- package/packages/core/dist/plugins/obsidian-sync.js +20 -11
- package/packages/core/dist/plugins/obsidian-sync.js.map +1 -1
- package/packages/core/dist/plugins/openpets.d.ts.map +1 -1
- package/packages/core/dist/plugins/openpets.js +203 -44
- package/packages/core/dist/plugins/openpets.js.map +1 -1
- package/packages/core/dist/plugins/plan-execute.d.ts +4 -1
- package/packages/core/dist/plugins/plan-execute.d.ts.map +1 -1
- package/packages/core/dist/plugins/plan-execute.js +42 -21
- package/packages/core/dist/plugins/plan-execute.js.map +1 -1
- package/packages/core/dist/plugins/plugin-check.d.ts +12 -3
- package/packages/core/dist/plugins/plugin-check.d.ts.map +1 -1
- package/packages/core/dist/plugins/plugin-check.js +83 -12
- package/packages/core/dist/plugins/plugin-check.js.map +1 -1
- package/packages/core/dist/plugins/plugin-dev.d.ts +1 -0
- package/packages/core/dist/plugins/plugin-dev.d.ts.map +1 -1
- package/packages/core/dist/plugins/plugin-dev.js +156 -23
- package/packages/core/dist/plugins/plugin-dev.js.map +1 -1
- package/packages/core/dist/plugins/plugin-finder.d.ts +1 -0
- package/packages/core/dist/plugins/plugin-finder.d.ts.map +1 -1
- package/packages/core/dist/plugins/plugin-finder.js +131 -13
- package/packages/core/dist/plugins/plugin-finder.js.map +1 -1
- package/packages/core/dist/plugins/plugin-radar.d.ts +4 -0
- package/packages/core/dist/plugins/plugin-radar.d.ts.map +1 -1
- package/packages/core/dist/plugins/plugin-radar.js +137 -36
- package/packages/core/dist/plugins/plugin-radar.js.map +1 -1
- package/packages/core/dist/plugins/plugin-stars.d.ts.map +1 -1
- package/packages/core/dist/plugins/plugin-stars.js +282 -81
- package/packages/core/dist/plugins/plugin-stars.js.map +1 -1
- package/packages/core/dist/plugins/prompt-guard.d.ts +1 -0
- package/packages/core/dist/plugins/prompt-guard.d.ts.map +1 -1
- package/packages/core/dist/plugins/prompt-guard.js +60 -9
- package/packages/core/dist/plugins/prompt-guard.js.map +1 -1
- package/packages/core/dist/plugins/prompt-library.d.ts +1 -0
- package/packages/core/dist/plugins/prompt-library.d.ts.map +1 -1
- package/packages/core/dist/plugins/prompt-library.js +4 -1
- package/packages/core/dist/plugins/prompt-library.js.map +1 -1
- package/packages/core/dist/plugins/readme-gen.d.ts +6 -2
- package/packages/core/dist/plugins/readme-gen.d.ts.map +1 -1
- package/packages/core/dist/plugins/readme-gen.js +514 -73
- package/packages/core/dist/plugins/readme-gen.js.map +1 -1
- package/packages/core/dist/plugins/recall-unread.d.ts +1 -1
- package/packages/core/dist/plugins/recall-unread.d.ts.map +1 -1
- package/packages/core/dist/plugins/recall-unread.js +411 -68
- package/packages/core/dist/plugins/recall-unread.js.map +1 -1
- package/packages/core/dist/plugins/resources.d.ts.map +1 -1
- package/packages/core/dist/plugins/resources.js +66 -3
- package/packages/core/dist/plugins/resources.js.map +1 -1
- package/packages/core/dist/plugins/reverse-skill.d.ts.map +1 -1
- package/packages/core/dist/plugins/reverse-skill.js +2 -1
- package/packages/core/dist/plugins/reverse-skill.js.map +1 -1
- package/packages/core/dist/plugins/reviewer-bot.d.ts +1 -0
- package/packages/core/dist/plugins/reviewer-bot.d.ts.map +1 -1
- package/packages/core/dist/plugins/reviewer-bot.js +35 -16
- package/packages/core/dist/plugins/reviewer-bot.js.map +1 -1
- package/packages/core/dist/plugins/runtime-doctor.d.ts +1 -0
- package/packages/core/dist/plugins/runtime-doctor.d.ts.map +1 -1
- package/packages/core/dist/plugins/runtime-doctor.js +4 -1
- package/packages/core/dist/plugins/runtime-doctor.js.map +1 -1
- package/packages/core/dist/plugins/runtime.d.ts.map +1 -1
- package/packages/core/dist/plugins/runtime.js +104 -70
- package/packages/core/dist/plugins/runtime.js.map +1 -1
- package/packages/core/dist/plugins/secure-audit.d.ts +1 -0
- package/packages/core/dist/plugins/secure-audit.d.ts.map +1 -1
- package/packages/core/dist/plugins/secure-audit.js +30 -12
- package/packages/core/dist/plugins/secure-audit.js.map +1 -1
- package/packages/core/dist/plugins/session-bookmarks.d.ts +1 -0
- package/packages/core/dist/plugins/session-bookmarks.d.ts.map +1 -1
- package/packages/core/dist/plugins/session-bookmarks.js +4 -1
- package/packages/core/dist/plugins/session-bookmarks.js.map +1 -1
- package/packages/core/dist/plugins/session-bridge.d.ts +1 -0
- package/packages/core/dist/plugins/session-bridge.d.ts.map +1 -1
- package/packages/core/dist/plugins/session-bridge.js +401 -88
- package/packages/core/dist/plugins/session-bridge.js.map +1 -1
- package/packages/core/dist/plugins/session-compare.d.ts +1 -0
- package/packages/core/dist/plugins/session-compare.d.ts.map +1 -1
- package/packages/core/dist/plugins/session-compare.js +4 -1
- package/packages/core/dist/plugins/session-compare.js.map +1 -1
- package/packages/core/dist/plugins/session-export.d.ts +1 -0
- package/packages/core/dist/plugins/session-export.d.ts.map +1 -1
- package/packages/core/dist/plugins/session-export.js +6 -6
- package/packages/core/dist/plugins/session-export.js.map +1 -1
- package/packages/core/dist/plugins/session-insights.d.ts +37 -1
- package/packages/core/dist/plugins/session-insights.d.ts.map +1 -1
- package/packages/core/dist/plugins/session-insights.js +406 -21
- package/packages/core/dist/plugins/session-insights.js.map +1 -1
- package/packages/core/dist/plugins/session-search.d.ts +1 -0
- package/packages/core/dist/plugins/session-search.d.ts.map +1 -1
- package/packages/core/dist/plugins/session-search.js +4 -1
- package/packages/core/dist/plugins/session-search.js.map +1 -1
- package/packages/core/dist/plugins/session.d.ts.map +1 -1
- package/packages/core/dist/plugins/session.js +8 -1
- package/packages/core/dist/plugins/session.js.map +1 -1
- package/packages/core/dist/plugins/skill-catalog.d.ts +1 -0
- package/packages/core/dist/plugins/skill-catalog.d.ts.map +1 -1
- package/packages/core/dist/plugins/skill-catalog.js +6 -5
- package/packages/core/dist/plugins/skill-catalog.js.map +1 -1
- package/packages/core/dist/plugins/skill-guard.d.ts +2 -1
- package/packages/core/dist/plugins/skill-guard.d.ts.map +1 -1
- package/packages/core/dist/plugins/skill-guard.js +241 -61
- package/packages/core/dist/plugins/skill-guard.js.map +1 -1
- package/packages/core/dist/plugins/sql-lens-worker.d.ts +2 -0
- package/packages/core/dist/plugins/sql-lens-worker.d.ts.map +1 -0
- package/packages/core/dist/plugins/sql-lens-worker.js +206 -0
- package/packages/core/dist/plugins/sql-lens-worker.js.map +1 -0
- package/packages/core/dist/plugins/sql-lens.d.ts +7 -1
- package/packages/core/dist/plugins/sql-lens.d.ts.map +1 -1
- package/packages/core/dist/plugins/sql-lens.js +301 -68
- package/packages/core/dist/plugins/sql-lens.js.map +1 -1
- package/packages/core/dist/plugins/stdio.d.ts +3 -0
- package/packages/core/dist/plugins/stdio.d.ts.map +1 -1
- package/packages/core/dist/plugins/stdio.js +62 -4
- package/packages/core/dist/plugins/stdio.js.map +1 -1
- package/packages/core/dist/plugins/synapse.d.ts.map +1 -1
- package/packages/core/dist/plugins/synapse.js +17 -9
- package/packages/core/dist/plugins/synapse.js.map +1 -1
- package/packages/core/dist/plugins/tab-manager.d.ts +1 -0
- package/packages/core/dist/plugins/tab-manager.d.ts.map +1 -1
- package/packages/core/dist/plugins/tab-manager.js +167 -62
- package/packages/core/dist/plugins/tab-manager.js.map +1 -1
- package/packages/core/dist/plugins/taskboard.d.ts.map +1 -1
- package/packages/core/dist/plugins/taskboard.js +50 -22
- package/packages/core/dist/plugins/taskboard.js.map +1 -1
- package/packages/core/dist/plugins/telemetry-blocker.d.ts +4 -1
- package/packages/core/dist/plugins/telemetry-blocker.d.ts.map +1 -1
- package/packages/core/dist/plugins/telemetry-blocker.js +30 -11
- package/packages/core/dist/plugins/telemetry-blocker.js.map +1 -1
- package/packages/core/dist/plugins/test-harness.d.ts +7 -1
- package/packages/core/dist/plugins/test-harness.d.ts.map +1 -1
- package/packages/core/dist/plugins/test-harness.js +255 -43
- package/packages/core/dist/plugins/test-harness.js.map +1 -1
- package/packages/core/dist/plugins/theme-studio.d.ts.map +1 -1
- package/packages/core/dist/plugins/theme-studio.js +4 -2
- package/packages/core/dist/plugins/theme-studio.js.map +1 -1
- package/packages/core/dist/plugins/token-guard.d.ts.map +1 -1
- package/packages/core/dist/plugins/token-guard.js +164 -32
- package/packages/core/dist/plugins/token-guard.js.map +1 -1
- package/packages/core/dist/plugins/tools.d.ts.map +1 -1
- package/packages/core/dist/plugins/tools.js +4 -1
- package/packages/core/dist/plugins/tools.js.map +1 -1
- package/packages/core/dist/plugins/turn-rewind.d.ts +17 -0
- package/packages/core/dist/plugins/turn-rewind.d.ts.map +1 -1
- package/packages/core/dist/plugins/turn-rewind.js +340 -36
- package/packages/core/dist/plugins/turn-rewind.js.map +1 -1
- package/packages/core/dist/plugins/undo-savepoint.d.ts.map +1 -1
- package/packages/core/dist/plugins/undo-savepoint.js +157 -51
- package/packages/core/dist/plugins/undo-savepoint.js.map +1 -1
- package/packages/core/dist/plugins/vision-toolkit.d.ts +22 -3
- package/packages/core/dist/plugins/vision-toolkit.d.ts.map +1 -1
- package/packages/core/dist/plugins/vision-toolkit.js +389 -66
- package/packages/core/dist/plugins/vision-toolkit.js.map +1 -1
- package/packages/core/dist/plugins/web-research.d.ts.map +1 -1
- package/packages/core/dist/plugins/web-research.js +13 -4
- package/packages/core/dist/plugins/web-research.js.map +1 -1
- package/packages/core/dist/plugins/workspace-navigator.d.ts +8 -2
- package/packages/core/dist/plugins/workspace-navigator.d.ts.map +1 -1
- package/packages/core/dist/plugins/workspace-navigator.js +28 -10
- package/packages/core/dist/plugins/workspace-navigator.js.map +1 -1
- package/packages/core/dist/plugins/workspace-search.d.ts +7 -0
- package/packages/core/dist/plugins/workspace-search.d.ts.map +1 -1
- package/packages/core/dist/plugins/workspace-search.js +67 -34
- package/packages/core/dist/plugins/workspace-search.js.map +1 -1
- package/packages/core/dist/plugins/yaml-validator.d.ts +1 -0
- package/packages/core/dist/plugins/yaml-validator.d.ts.map +1 -1
- package/packages/core/dist/plugins/yaml-validator.js +156 -47
- package/packages/core/dist/plugins/yaml-validator.js.map +1 -1
- package/packages/core/dist/runtime.d.ts.map +1 -1
- package/packages/core/dist/runtime.js +8 -3
- package/packages/core/dist/runtime.js.map +1 -1
- package/packages/core/dist/services.d.ts.map +1 -1
- package/packages/core/dist/services.js +22 -2
- package/packages/core/dist/services.js.map +1 -1
- package/packages/core/dist/stdio.d.ts +1 -0
- package/packages/core/dist/stdio.d.ts.map +1 -1
- package/packages/core/dist/stdio.js +241 -25
- package/packages/core/dist/stdio.js.map +1 -1
- package/packages/core/dist/workspace-path.d.ts +1 -0
- package/packages/core/dist/workspace-path.d.ts.map +1 -1
- package/packages/core/dist/workspace-path.js +9 -0
- package/packages/core/dist/workspace-path.js.map +1 -1
- package/packages/core/package.json +1 -1
- package/packages/core/profiles/default/cordis.yml +4 -2
- package/packages/core/src/atomic-write.ts +45 -0
- package/packages/core/src/boot.ts +123 -11
- package/packages/core/src/bounded-file.ts +41 -0
- package/packages/core/src/config.ts +18 -0
- package/packages/core/src/cordis-timer.ts +107 -0
- package/packages/core/src/plugins/agent-teams.ts +1003 -103
- package/packages/core/src/plugins/anchored-standard.ts +41 -14
- package/packages/core/src/plugins/annotation.ts +36 -19
- package/packages/core/src/plugins/archify.ts +80 -33
- package/packages/core/src/plugins/at-file.ts +110 -26
- package/packages/core/src/plugins/auto-mode.ts +91 -24
- package/packages/core/src/plugins/better-sidebar.ts +15 -4
- package/packages/core/src/plugins/browser-fetch.ts +286 -95
- package/packages/core/src/plugins/browser-session.ts +421 -102
- package/packages/core/src/plugins/canvas-draw.ts +74 -21
- package/packages/core/src/plugins/change-verifier.ts +33 -9
- package/packages/core/src/plugins/cleaner.ts +339 -37
- package/packages/core/src/plugins/cli-notifier.ts +110 -41
- package/packages/core/src/plugins/code2skill.ts +175 -34
- package/packages/core/src/plugins/colleague-skill.ts +72 -47
- package/packages/core/src/plugins/context-doctor.ts +410 -40
- package/packages/core/src/plugins/context.ts +164 -39
- package/packages/core/src/plugins/cost-meter.ts +360 -113
- package/packages/core/src/plugins/dependency-checker.ts +456 -119
- package/packages/core/src/plugins/docker-sandbox.ts +312 -76
- package/packages/core/src/plugins/fail-logger.ts +169 -18
- package/packages/core/src/plugins/genui.ts +104 -42
- package/packages/core/src/plugins/git-time-capsule.ts +424 -55
- package/packages/core/src/plugins/graph-memory.ts +333 -60
- package/packages/core/src/plugins/history-compressor.ts +29 -12
- package/packages/core/src/plugins/hol-guard.ts +31 -13
- package/packages/core/src/plugins/i18n-pair.ts +296 -52
- package/packages/core/src/plugins/image-compressor.ts +98 -25
- package/packages/core/src/plugins/llm-verifier.ts +39 -21
- package/packages/core/src/plugins/mcp-client.ts +1069 -249
- package/packages/core/src/plugins/mcp-panel.ts +37 -21
- package/packages/core/src/plugins/memory.ts +262 -57
- package/packages/core/src/plugins/mirage-bridge.ts +22 -10
- package/packages/core/src/plugins/mock-server.ts +91 -60
- package/packages/core/src/plugins/model.ts +4 -0
- package/packages/core/src/plugins/models.ts +10 -2
- package/packages/core/src/plugins/modlens.ts +463 -29
- package/packages/core/src/plugins/module-search.ts +40 -19
- package/packages/core/src/plugins/obsidian-sync.ts +26 -15
- package/packages/core/src/plugins/openpets.ts +193 -42
- package/packages/core/src/plugins/plan-execute.ts +49 -21
- package/packages/core/src/plugins/plugin-check.ts +100 -16
- package/packages/core/src/plugins/plugin-dev.ts +167 -23
- package/packages/core/src/plugins/plugin-finder.ts +119 -12
- package/packages/core/src/plugins/plugin-radar.ts +130 -39
- package/packages/core/src/plugins/plugin-stars.ts +252 -80
- package/packages/core/src/plugins/prompt-guard.ts +51 -12
- package/packages/core/src/plugins/prompt-library.ts +14 -8
- package/packages/core/src/plugins/readme-gen.ts +476 -79
- package/packages/core/src/plugins/recall-unread.ts +412 -68
- package/packages/core/src/plugins/resources.ts +70 -2
- package/packages/core/src/plugins/reverse-skill.ts +9 -5
- package/packages/core/src/plugins/reviewer-bot.ts +34 -16
- package/packages/core/src/plugins/runtime-doctor.ts +4 -1
- package/packages/core/src/plugins/runtime.ts +98 -68
- package/packages/core/src/plugins/secure-audit.ts +33 -12
- package/packages/core/src/plugins/session-bookmarks.ts +12 -6
- package/packages/core/src/plugins/session-bridge.ts +404 -89
- package/packages/core/src/plugins/session-compare.ts +10 -4
- package/packages/core/src/plugins/session-export.ts +12 -9
- package/packages/core/src/plugins/session-insights.ts +454 -31
- package/packages/core/src/plugins/session-search.ts +4 -1
- package/packages/core/src/plugins/session.ts +8 -1
- package/packages/core/src/plugins/skill-catalog.ts +13 -8
- package/packages/core/src/plugins/skill-guard.ts +254 -61
- package/packages/core/src/plugins/sql-lens-worker.ts +202 -0
- package/packages/core/src/plugins/sql-lens.ts +323 -71
- package/packages/core/src/plugins/stdio.ts +58 -3
- package/packages/core/src/plugins/synapse.ts +16 -9
- package/packages/core/src/plugins/tab-manager.ts +163 -65
- package/packages/core/src/plugins/taskboard.ts +81 -47
- package/packages/core/src/plugins/telemetry-blocker.ts +27 -11
- package/packages/core/src/plugins/test-harness.ts +275 -42
- package/packages/core/src/plugins/theme-studio.ts +7 -2
- package/packages/core/src/plugins/token-guard.ts +171 -31
- package/packages/core/src/plugins/tools.ts +4 -1
- package/packages/core/src/plugins/turn-rewind.ts +351 -37
- package/packages/core/src/plugins/undo-savepoint.ts +160 -59
- package/packages/core/src/plugins/vision-toolkit.ts +420 -63
- package/packages/core/src/plugins/web-research.ts +19 -7
- package/packages/core/src/plugins/workspace-navigator.ts +39 -14
- package/packages/core/src/plugins/workspace-search.ts +75 -37
- package/packages/core/src/plugins/yaml-validator.ts +165 -46
- package/packages/core/src/runtime.ts +8 -2
- package/packages/core/src/services.ts +22 -2
- package/packages/core/src/stdio.ts +220 -25
- package/packages/core/src/workspace-path.ts +10 -0
- package/packages/core/test/agent-teams.test.ts +495 -2
- package/packages/core/test/anchored-standard.test.ts +60 -0
- package/packages/core/test/annotation.test.ts +69 -0
- package/packages/core/test/archify.test.ts +212 -1
- package/packages/core/test/at-file.test.ts +666 -0
- package/packages/core/test/atomic-write.test.ts +52 -0
- package/packages/core/test/auto-mode.test.ts +629 -0
- package/packages/core/test/better-sidebar.test.ts +108 -1
- package/packages/core/test/boot.test.ts +129 -1
- package/packages/core/test/bounded-file.test.ts +55 -0
- package/packages/core/test/browser-fetch-rebinding.test.ts +93 -0
- package/packages/core/test/browser-fetch.test.ts +844 -0
- package/packages/core/test/browser-session.test.ts +1236 -0
- package/packages/core/test/canvas-draw.test.ts +164 -0
- package/packages/core/test/change-verifier.test.ts +200 -0
- package/packages/core/test/cleaner.test.ts +316 -0
- package/packages/core/test/cli-notifier.test.ts +235 -0
- package/packages/core/test/code2skill.test.ts +264 -0
- package/packages/core/test/colleague-skill.test.ts +167 -0
- package/packages/core/test/config.test.ts +8 -0
- package/packages/core/test/context-doctor.test.ts +597 -2
- package/packages/core/test/context-insights.test.ts +396 -0
- package/packages/core/test/cordis-timer.test.ts +147 -0
- package/packages/core/test/cost-meter.test.ts +362 -0
- package/packages/core/test/dependency-checker.test.ts +576 -3
- package/packages/core/test/docker-sandbox.test.ts +170 -0
- package/packages/core/test/fail-logger.test.ts +363 -0
- package/packages/core/test/genui.test.ts +162 -0
- package/packages/core/test/git-time-capsule.test.ts +1364 -3
- package/packages/core/test/graph-memory.test.ts +508 -0
- package/packages/core/test/history-compressor.test.ts +47 -0
- package/packages/core/test/hol-guard.test.ts +61 -0
- package/packages/core/test/i18n-pair.test.ts +367 -0
- package/packages/core/test/image-compressor.test.ts +59 -0
- package/packages/core/test/llm-verifier.test.ts +4 -0
- package/packages/core/test/mcp-client.test.ts +1037 -0
- package/packages/core/test/mcp-panel.test.ts +91 -0
- package/packages/core/test/memory.test.ts +125 -0
- package/packages/core/test/mirage-bridge.test.ts +4 -0
- package/packages/core/test/mock-server.test.ts +63 -0
- package/packages/core/test/model.test.ts +62 -0
- package/packages/core/test/models.test.ts +85 -0
- package/packages/core/test/modlens.test.ts +615 -0
- package/packages/core/test/module-search.test.ts +20 -0
- package/packages/core/test/obsidian-sync.test.ts +57 -0
- package/packages/core/test/openpets.test.ts +273 -0
- package/packages/core/test/plan-execute.test.ts +86 -0
- package/packages/core/test/plugin-dev.test.ts +246 -0
- package/packages/core/test/plugin-finder.test.ts +105 -0
- package/packages/core/test/plugin-radar.test.ts +87 -0
- package/packages/core/test/plugin-stars.test.ts +429 -4
- package/packages/core/test/profiles.integration.test.ts +451 -2
- package/packages/core/test/prompt-guard.test.ts +78 -0
- package/packages/core/test/readme-gen.test.ts +403 -3
- package/packages/core/test/recall-unread.test.ts +559 -2
- package/packages/core/test/registry.test.ts +16 -0
- package/packages/core/test/resources.test.ts +310 -0
- package/packages/core/test/reviewer-bot.test.ts +55 -0
- package/packages/core/test/runtime-fixture.ts +10 -1
- package/packages/core/test/runtime.test.ts +155 -2
- package/packages/core/test/secure-audit.test.ts +14 -1
- package/packages/core/test/services.test.ts +2772 -117
- package/packages/core/test/session-bridge.test.ts +309 -1
- package/packages/core/test/session-insights.test.ts +486 -0
- package/packages/core/test/session.test.ts +153 -0
- package/packages/core/test/skill-guard.test.ts +261 -2
- package/packages/core/test/sql-lens.test.ts +244 -0
- package/packages/core/test/stdio-args.test.ts +484 -1
- package/packages/core/test/stdio.test.ts +159 -0
- package/packages/core/test/synapse.test.ts +67 -0
- package/packages/core/test/tab-manager.test.ts +58 -0
- package/packages/core/test/taskboard.test.ts +73 -0
- package/packages/core/test/telemetry-blocker.test.ts +61 -0
- package/packages/core/test/test-harness.test.ts +297 -0
- package/packages/core/test/token-guard.test.ts +362 -1
- package/packages/core/test/tools.test.ts +118 -0
- package/packages/core/test/turn-rewind.test.ts +532 -2
- package/packages/core/test/undo-savepoint.test.ts +222 -0
- package/packages/core/test/vision-toolkit.test.ts +480 -7
- package/packages/core/test/web-research.test.ts +63 -0
- package/packages/core/test/workspace-git-status.test.ts +19 -2
- package/packages/core/test/workspace-navigator.test.ts +11 -1
- package/packages/core/test/workspace-search.test.ts +88 -0
- package/packages/core/test/yaml-validator.test.ts +195 -0
- package/packages/host-webserver/package.json +1 -1
- package/apps/web/dist/assets/index-C_AdODuM.js +0 -20
- package/apps/web/dist/assets/index-De8Rm01Z.css +0 -2
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
6
|
+
import { afterEach, describe, expect, test, vi } from "vitest";
|
|
7
|
+
import mcpClientPlugin from "../src/plugins/mcp-client.js";
|
|
8
|
+
import { PiPluginUiRegistry, PiToolRegistry } from "../src/services.js";
|
|
9
|
+
|
|
10
|
+
const temporaryDirectories: string[] = [];
|
|
11
|
+
|
|
12
|
+
afterEach(async () => {
|
|
13
|
+
await Promise.all(temporaryDirectories.splice(0).map((directory) => rm(directory, { recursive: true, force: true })));
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
async function createFixture(options?: { servers?: Array<{ id: string; command: string[]; autoStart?: boolean }>; launchCwd?: string; loadPlugin?: boolean }) {
|
|
17
|
+
const cwd = await mkdtemp(join(tmpdir(), "pi-harness-mcp-client-workspace-"));
|
|
18
|
+
const agentDir = await mkdtemp(join(tmpdir(), "pi-harness-mcp-client-agent-"));
|
|
19
|
+
temporaryDirectories.push(cwd, agentDir);
|
|
20
|
+
const context = new Context();
|
|
21
|
+
const tools = new PiToolRegistry();
|
|
22
|
+
const panels = new PiPluginUiRegistry();
|
|
23
|
+
context.provide("piHarnessLaunch", { cwd: options?.launchCwd ?? cwd, agentDir, args: [], requestExit() {} });
|
|
24
|
+
context.provide("piTools", tools);
|
|
25
|
+
context.provide("piPluginUi", panels);
|
|
26
|
+
if (options?.loadPlugin !== false) await context.plugin(mcpClientPlugin, options?.servers === undefined ? {} : { servers: options.servers });
|
|
27
|
+
return { context, cwd, tools, panels };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function tool(tools: PiToolRegistry, name: string) {
|
|
31
|
+
const result = tools.snapshot().customTools.find((candidate) => candidate.name === name);
|
|
32
|
+
if (result === undefined) throw new Error(`${name} was not registered`);
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async function writeServer(cwd: string, body: string): Promise<string> {
|
|
37
|
+
const path = join(cwd, `server-${Math.random().toString(16).slice(2)}.mjs`);
|
|
38
|
+
await writeFile(path, body, "utf8");
|
|
39
|
+
return path;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
describe("MCP client production boundaries", () => {
|
|
43
|
+
test("rejects unknown configuration before registering any surface", async () => {
|
|
44
|
+
const fixture = await createFixture({ loadPlugin: false });
|
|
45
|
+
try {
|
|
46
|
+
await expect(fixture.context.plugin(mcpClientPlugin, { unexpected: true } as never)).rejects.toThrow(/unknown.*unexpected/iu);
|
|
47
|
+
expect(fixture.tools.snapshot().customTools).toEqual([]);
|
|
48
|
+
await expect(fixture.panels.snapshot()).resolves.toEqual([]);
|
|
49
|
+
} finally {
|
|
50
|
+
await fixture.context.fiber.dispose();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test("declares strict sequential schemas for every stateful tool", async () => {
|
|
55
|
+
const fixture = await createFixture();
|
|
56
|
+
try {
|
|
57
|
+
for (const name of [
|
|
58
|
+
"mcp_list_tools",
|
|
59
|
+
"mcp_call",
|
|
60
|
+
"mcp_server_start",
|
|
61
|
+
"mcp_server_status",
|
|
62
|
+
"mcp_server_stop",
|
|
63
|
+
"mcp_list_resources",
|
|
64
|
+
"mcp_read_resource",
|
|
65
|
+
"mcp_list_prompts",
|
|
66
|
+
"mcp_get_prompt",
|
|
67
|
+
]) {
|
|
68
|
+
const candidate = tool(fixture.tools, name);
|
|
69
|
+
expect(candidate.executionMode, name).toBe("sequential");
|
|
70
|
+
expect(candidate.parameters, name).toMatchObject({ additionalProperties: false });
|
|
71
|
+
}
|
|
72
|
+
} finally {
|
|
73
|
+
await fixture.context.fiber.dispose();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
test("rejects class instances as raw MCP parameter objects", async () => {
|
|
78
|
+
const fixture = await createFixture();
|
|
79
|
+
class Parameters {
|
|
80
|
+
readonly command = [process.execPath, "server.mjs"];
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
await expect(tool(fixture.tools, "mcp_list_tools").execute("instance", new Parameters(), undefined, undefined, {} as never)).rejects.toThrow(
|
|
84
|
+
/parameters.*plain object/iu,
|
|
85
|
+
);
|
|
86
|
+
} finally {
|
|
87
|
+
await fixture.context.fiber.dispose();
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
test("rolls back every registered tool when panel registration fails", async () => {
|
|
92
|
+
const fixture = await createFixture({ loadPlugin: false });
|
|
93
|
+
fixture.panels.register({ id: "mcp-client-panel", pluginId: "fixture", title: "Fixture", read: () => ({}) });
|
|
94
|
+
try {
|
|
95
|
+
await expect(fixture.context.plugin(mcpClientPlugin, {})).rejects.toThrow(/panel is already registered: mcp-client-panel/iu);
|
|
96
|
+
expect(fixture.tools.snapshot().customTools).toEqual([]);
|
|
97
|
+
} finally {
|
|
98
|
+
await fixture.context.fiber.dispose();
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test("rolls back registered surfaces when an auto-start server fails", async () => {
|
|
103
|
+
const fixture = await createFixture({ loadPlugin: false, servers: [{ id: "broken", command: ["/definitely/missing-mcp-server"], autoStart: true }] });
|
|
104
|
+
try {
|
|
105
|
+
await expect(
|
|
106
|
+
fixture.context.plugin(mcpClientPlugin, { servers: [{ id: "broken", command: ["/definitely/missing-mcp-server"], autoStart: true }] }),
|
|
107
|
+
).rejects.toThrow();
|
|
108
|
+
expect(fixture.tools.snapshot().customTools).toEqual([]);
|
|
109
|
+
await expect(fixture.panels.snapshot()).resolves.toEqual([]);
|
|
110
|
+
} finally {
|
|
111
|
+
await fixture.context.fiber.dispose();
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
test("strictly validates raw parameters without invoking accessors", async () => {
|
|
116
|
+
const fixture = await createFixture();
|
|
117
|
+
let accessed = false;
|
|
118
|
+
const params = {} as { command?: string[] };
|
|
119
|
+
Object.defineProperty(params, "command", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get() {
|
|
122
|
+
accessed = true;
|
|
123
|
+
throw new Error("MCP accessor executed");
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
try {
|
|
127
|
+
await expect(tool(fixture.tools, "mcp_list_tools").execute("accessor", params, undefined, undefined, {} as never)).rejects.toThrow(
|
|
128
|
+
/parameters.*data properties/iu,
|
|
129
|
+
);
|
|
130
|
+
expect(accessed).toBe(false);
|
|
131
|
+
await expect(tool(fixture.tools, "mcp_server_status").execute("unknown", { unexpected: true }, undefined, undefined, {} as never)).rejects.toThrow(
|
|
132
|
+
/unknown property/iu,
|
|
133
|
+
);
|
|
134
|
+
} finally {
|
|
135
|
+
await fixture.context.fiber.dispose();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
test("rejects portable shell wrapper names", async () => {
|
|
140
|
+
const fixture = await createFixture();
|
|
141
|
+
try {
|
|
142
|
+
for (const command of ["C:\\tools\\sh.exe", "C:\\tools\\bash.cmd", "C:\\tools\\powershell.bat", "C:\\tools\\cmd.com"]) {
|
|
143
|
+
await expect(
|
|
144
|
+
tool(fixture.tools, "mcp_list_tools").execute("shell", { command: [command, "server.js"] }, undefined, undefined, {} as never),
|
|
145
|
+
).rejects.toThrow(/shell wrapper/iu);
|
|
146
|
+
}
|
|
147
|
+
} finally {
|
|
148
|
+
await fixture.context.fiber.dispose();
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
test("cancels and reaps a one-shot server when the plugin is disposed", async () => {
|
|
153
|
+
const fixture = await createFixture();
|
|
154
|
+
const requested = join(fixture.cwd, "requested");
|
|
155
|
+
const server = await writeServer(
|
|
156
|
+
fixture.cwd,
|
|
157
|
+
`import { writeFileSync } from "node:fs";
|
|
158
|
+
console.error("server diagnostic");
|
|
159
|
+
let buffer = "";
|
|
160
|
+
const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n");
|
|
161
|
+
process.stdin.setEncoding("utf8");
|
|
162
|
+
process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "hang", version: "1" } } }); else if (message.method === "tools/list") writeFileSync(${JSON.stringify(requested)}, "yes"); } });`,
|
|
163
|
+
);
|
|
164
|
+
const controller = new AbortController();
|
|
165
|
+
const rejected = join(fixture.cwd, "rejected");
|
|
166
|
+
const pending = tool(fixture.tools, "mcp_list_tools").execute(
|
|
167
|
+
"dispose",
|
|
168
|
+
{ command: [process.execPath, server] },
|
|
169
|
+
controller.signal,
|
|
170
|
+
undefined,
|
|
171
|
+
{} as never,
|
|
172
|
+
);
|
|
173
|
+
let rejection: unknown;
|
|
174
|
+
void pending.catch(async (error: unknown) => {
|
|
175
|
+
rejection = error;
|
|
176
|
+
await writeFile(rejected, "yes", "utf8");
|
|
177
|
+
});
|
|
178
|
+
try {
|
|
179
|
+
await vi.waitFor(() => expect(existsSync(requested)).toBe(true));
|
|
180
|
+
await fixture.context.fiber.dispose();
|
|
181
|
+
await vi.waitFor(() => expect(existsSync(rejected)).toBe(true), { timeout: 500 });
|
|
182
|
+
expect(rejection).toMatchObject({ message: "MCP client plugin disposed" });
|
|
183
|
+
} finally {
|
|
184
|
+
controller.abort(new Error("test cleanup"));
|
|
185
|
+
await pending.catch(() => undefined);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
test("detaches and bounds remote inventories before publishing the panel", async () => {
|
|
190
|
+
const fixture = await createFixture();
|
|
191
|
+
const server = await writeServer(
|
|
192
|
+
fixture.cwd,
|
|
193
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "inventory", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: Array.from({ length: 40 }, (_, index) => ({ name: "tool-" + index, description: "d".repeat(1000), inputSchema: { type: "object" } })) } }); } });`,
|
|
194
|
+
);
|
|
195
|
+
try {
|
|
196
|
+
const result = await tool(fixture.tools, "mcp_list_tools").execute("list", { command: [process.execPath, server] }, undefined, undefined, {} as never);
|
|
197
|
+
(result.details as { tools: Array<{ name: string }> }).tools[0]!.name = "mutated-through-tool";
|
|
198
|
+
const first = await fixture.panels.snapshot();
|
|
199
|
+
expect(first).toMatchObject([
|
|
200
|
+
{
|
|
201
|
+
id: "mcp-client-panel",
|
|
202
|
+
data: {
|
|
203
|
+
inventory: { tools: { total: 40, shown: 20, truncated: true }, resources: { total: 0 }, prompts: { total: 0 } },
|
|
204
|
+
limits: { responseBytes: 1_048_576, commandArgs: 32, argumentBytes: 4_096, requestTimeoutMs: 30_000, panelItems: 20 },
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
]);
|
|
208
|
+
const data = first[0]?.data as { tools: Array<{ name: string }> };
|
|
209
|
+
expect(data.tools).toHaveLength(20);
|
|
210
|
+
expect(data.tools[0]?.name).toBe("tool-0");
|
|
211
|
+
data.tools[0]!.name = "mutated-through-panel";
|
|
212
|
+
const second = await fixture.panels.snapshot();
|
|
213
|
+
expect((second[0]?.data as { tools: Array<{ name: string }> }).tools[0]?.name).toBe("tool-0");
|
|
214
|
+
} finally {
|
|
215
|
+
await fixture.context.fiber.dispose();
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
test("follows bounded pagination for one-shot and managed MCP inventories", async () => {
|
|
220
|
+
const fixture = await createFixture();
|
|
221
|
+
const server = await writeServer(
|
|
222
|
+
fixture.cwd,
|
|
223
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); const cursor = message.params?.cursor; if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "pagination", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: cursor === "tools-next" ? { tools: [{ name: "tool-2", inputSchema: { type: "object" } }] } : { tools: [{ name: "tool-1", inputSchema: { type: "object" } }], nextCursor: "tools-next" } }); else if (message.method === "resources/list") send({ jsonrpc: "2.0", id: message.id, result: cursor === "resources-next" ? { resources: [{ uri: "fixture://resource-2", name: "Resource 2" }] } : { resources: [{ uri: "fixture://resource-1", name: "Resource 1" }], nextCursor: "resources-next" } }); else if (message.method === "prompts/list") send({ jsonrpc: "2.0", id: message.id, result: cursor === "prompts-next" ? { prompts: [{ name: "prompt-2" }] } : { prompts: [{ name: "prompt-1" }], nextCursor: "prompts-next" } }); } });`,
|
|
224
|
+
);
|
|
225
|
+
try {
|
|
226
|
+
await expect(
|
|
227
|
+
tool(fixture.tools, "mcp_list_tools").execute("one-shot-pages", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
228
|
+
).resolves.toMatchObject({ details: { tools: [{ name: "tool-1" }, { name: "tool-2" }] } });
|
|
229
|
+
await tool(fixture.tools, "mcp_server_start").execute(
|
|
230
|
+
"managed-pages-start",
|
|
231
|
+
{ command: [process.execPath, server], serverId: "pages" },
|
|
232
|
+
undefined,
|
|
233
|
+
undefined,
|
|
234
|
+
{} as never,
|
|
235
|
+
);
|
|
236
|
+
await expect(
|
|
237
|
+
tool(fixture.tools, "mcp_list_resources").execute("resource-pages", { serverId: "pages" }, undefined, undefined, {} as never),
|
|
238
|
+
).resolves.toMatchObject({ details: { resources: [{ uri: "fixture://resource-1" }, { uri: "fixture://resource-2" }] } });
|
|
239
|
+
await expect(
|
|
240
|
+
tool(fixture.tools, "mcp_list_prompts").execute("prompt-pages", { serverId: "pages" }, undefined, undefined, {} as never),
|
|
241
|
+
).resolves.toMatchObject({ details: { prompts: [{ name: "prompt-1" }, { name: "prompt-2" }] } });
|
|
242
|
+
} finally {
|
|
243
|
+
await fixture.context.fiber.dispose();
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
test("rejects repeated MCP pagination cursors", async () => {
|
|
248
|
+
const fixture = await createFixture();
|
|
249
|
+
const server = await writeServer(
|
|
250
|
+
fixture.cwd,
|
|
251
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "cursor-loop", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: [], nextCursor: "same" } }); } });`,
|
|
252
|
+
);
|
|
253
|
+
try {
|
|
254
|
+
await expect(
|
|
255
|
+
tool(fixture.tools, "mcp_list_tools").execute("cursor-loop", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
256
|
+
).rejects.toThrow(/repeated.*pagination cursor/iu);
|
|
257
|
+
} finally {
|
|
258
|
+
await fixture.context.fiber.dispose();
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
test("copies nested tool arguments without invoking accessors", async () => {
|
|
263
|
+
const fixture = await createFixture();
|
|
264
|
+
const server = await writeServer(
|
|
265
|
+
fixture.cwd,
|
|
266
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "arguments", version: "1" } } }); else if (message.method === "tools/call") send({ jsonrpc: "2.0", id: message.id, result: { content: [{ type: "text", text: "called" }] } }); } });`,
|
|
267
|
+
);
|
|
268
|
+
let accessed = false;
|
|
269
|
+
const argumentsValue = {} as Record<string, unknown>;
|
|
270
|
+
Object.defineProperty(argumentsValue, "secret", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get() {
|
|
273
|
+
accessed = true;
|
|
274
|
+
throw new Error("nested MCP accessor executed");
|
|
275
|
+
},
|
|
276
|
+
});
|
|
277
|
+
try {
|
|
278
|
+
await expect(
|
|
279
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
280
|
+
"arguments-accessor",
|
|
281
|
+
{ command: [process.execPath, server], name: "echo", arguments: argumentsValue },
|
|
282
|
+
undefined,
|
|
283
|
+
undefined,
|
|
284
|
+
{} as never,
|
|
285
|
+
),
|
|
286
|
+
).rejects.toThrow(/arguments.*data properties/iu);
|
|
287
|
+
expect(accessed).toBe(false);
|
|
288
|
+
} finally {
|
|
289
|
+
await fixture.context.fiber.dispose();
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
test("rejects oversized tool arguments before starting a server", async () => {
|
|
294
|
+
const fixture = await createFixture();
|
|
295
|
+
try {
|
|
296
|
+
await expect(
|
|
297
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
298
|
+
"oversized-arguments",
|
|
299
|
+
{ command: ["/definitely/missing-mcp-server"], name: "echo", arguments: { payload: "x".repeat(70 * 1024) } },
|
|
300
|
+
undefined,
|
|
301
|
+
undefined,
|
|
302
|
+
{} as never,
|
|
303
|
+
),
|
|
304
|
+
).rejects.toThrow(/arguments.*64 KiB/iu);
|
|
305
|
+
} finally {
|
|
306
|
+
await fixture.context.fiber.dispose();
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
test("rejects excessively deep tool arguments", async () => {
|
|
311
|
+
const fixture = await createFixture();
|
|
312
|
+
let argumentsValue: Record<string, unknown> = {};
|
|
313
|
+
for (let depth = 0; depth < 40; depth += 1) argumentsValue = { nested: argumentsValue };
|
|
314
|
+
try {
|
|
315
|
+
await expect(
|
|
316
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
317
|
+
"deep-arguments",
|
|
318
|
+
{ command: ["/definitely/missing-mcp-server"], name: "echo", arguments: argumentsValue },
|
|
319
|
+
undefined,
|
|
320
|
+
undefined,
|
|
321
|
+
{} as never,
|
|
322
|
+
),
|
|
323
|
+
).rejects.toThrow(/arguments.*32 levels/iu);
|
|
324
|
+
} finally {
|
|
325
|
+
await fixture.context.fiber.dispose();
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
test("cancels a managed request while it is waiting in the server queue", async () => {
|
|
330
|
+
const cwd = await mkdtemp(join(tmpdir(), "pi-harness-mcp-client-queue-"));
|
|
331
|
+
temporaryDirectories.push(cwd);
|
|
332
|
+
const firstRequested = join(cwd, "first-requested");
|
|
333
|
+
const server = await writeServer(
|
|
334
|
+
cwd,
|
|
335
|
+
`import { writeFileSync } from "node:fs"; let buffer = ""; let lists = 0; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "queue", version: "1" } } }); else if (message.method === "tools/list" && ++lists === 1) writeFileSync(${JSON.stringify(firstRequested)}, "yes"); } });`,
|
|
336
|
+
);
|
|
337
|
+
const fixture = await createFixture({ servers: [{ id: "queue", command: [process.execPath, server] }] });
|
|
338
|
+
await tool(fixture.tools, "mcp_server_start").execute("start", { serverId: "queue" }, undefined, undefined, {} as never);
|
|
339
|
+
const first = tool(fixture.tools, "mcp_list_tools").execute("first", { serverId: "queue" }, undefined, undefined, {} as never);
|
|
340
|
+
void first.catch(() => undefined);
|
|
341
|
+
const controller = new AbortController();
|
|
342
|
+
let secondOutcome: unknown;
|
|
343
|
+
let second: Promise<unknown> | undefined;
|
|
344
|
+
try {
|
|
345
|
+
await vi.waitFor(() => expect(existsSync(firstRequested)).toBe(true));
|
|
346
|
+
second = tool(fixture.tools, "mcp_list_tools").execute("second", { serverId: "queue" }, controller.signal, undefined, {} as never);
|
|
347
|
+
void second.catch((error: unknown) => {
|
|
348
|
+
secondOutcome = error;
|
|
349
|
+
});
|
|
350
|
+
controller.abort(new Error("queued request cancelled"));
|
|
351
|
+
await vi.waitFor(() => expect(secondOutcome).toBeInstanceOf(Error), { timeout: 500 });
|
|
352
|
+
expect((secondOutcome as Error).message).toMatch(/cancelled/iu);
|
|
353
|
+
} finally {
|
|
354
|
+
await fixture.context.fiber.dispose();
|
|
355
|
+
await first.catch(() => undefined);
|
|
356
|
+
await second?.catch(() => undefined);
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
test("retains stdout framing bytes between managed requests", async () => {
|
|
361
|
+
const fixture = await createFixture();
|
|
362
|
+
const server = await writeServer(
|
|
363
|
+
fixture.cwd,
|
|
364
|
+
`let buffer = "";
|
|
365
|
+
const notification = JSON.stringify({ jsonrpc: "2.0", method: "notifications/message", params: { data: "between requests" } });
|
|
366
|
+
const split = Math.floor(notification.length / 2);
|
|
367
|
+
const header = "Content-Length: " + Buffer.byteLength(notification) + "\\r\\n\\r\\n";
|
|
368
|
+
process.stdin.setEncoding("utf8");
|
|
369
|
+
process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") process.stdout.write(JSON.stringify({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "framing", version: "1" } } }) + "\\n" + header + notification.slice(0, split)); else if (message.method === "tools/list") process.stdout.write(notification.slice(split) + JSON.stringify({ jsonrpc: "2.0", id: message.id, result: { tools: [{ name: "retained", inputSchema: { type: "object" } }] } }) + "\\n"); } });`,
|
|
370
|
+
);
|
|
371
|
+
try {
|
|
372
|
+
await tool(fixture.tools, "mcp_server_start").execute(
|
|
373
|
+
"start-framing",
|
|
374
|
+
{ command: [process.execPath, server], serverId: "framing" },
|
|
375
|
+
undefined,
|
|
376
|
+
undefined,
|
|
377
|
+
{} as never,
|
|
378
|
+
);
|
|
379
|
+
await expect(
|
|
380
|
+
tool(fixture.tools, "mcp_list_tools").execute("list-framing", { serverId: "framing" }, AbortSignal.timeout(500), undefined, {} as never),
|
|
381
|
+
).resolves.toMatchObject({ details: { tools: [{ name: "retained" }] } });
|
|
382
|
+
} finally {
|
|
383
|
+
await fixture.context.fiber.dispose();
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
|
|
387
|
+
test("bounds total bytes received before the matching response", async () => {
|
|
388
|
+
const fixture = await createFixture();
|
|
389
|
+
const server = await writeServer(
|
|
390
|
+
fixture.cwd,
|
|
391
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "bytes", version: "1" } } }); else if (message.method === "tools/list") { for (let index = 0; index < 1400; index += 1) send({ jsonrpc: "2.0", method: "notifications/message", params: { data: "x".repeat(900) } }); send({ jsonrpc: "2.0", id: message.id, result: { tools: [] } }); } } });`,
|
|
392
|
+
);
|
|
393
|
+
try {
|
|
394
|
+
await expect(
|
|
395
|
+
tool(fixture.tools, "mcp_list_tools").execute("total-bytes", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
396
|
+
).rejects.toThrow(/response exceeded the 1 MiB limit/iu);
|
|
397
|
+
} finally {
|
|
398
|
+
await fixture.context.fiber.dispose();
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
test("rejects remote inventories above the item limit", async () => {
|
|
403
|
+
const fixture = await createFixture();
|
|
404
|
+
const server = await writeServer(
|
|
405
|
+
fixture.cwd,
|
|
406
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "inventory-limit", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: Array.from({ length: 1001 }, (_, index) => ({ name: "tool-" + index, inputSchema: { type: "object" } })) } }); } });`,
|
|
407
|
+
);
|
|
408
|
+
try {
|
|
409
|
+
await expect(
|
|
410
|
+
tool(fixture.tools, "mcp_list_tools").execute("inventory-limit", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
411
|
+
).rejects.toThrow(/inventory.*1000 items/iu);
|
|
412
|
+
} finally {
|
|
413
|
+
await fixture.context.fiber.dispose();
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
test("rejects malformed remote tool descriptors", async () => {
|
|
418
|
+
const fixture = await createFixture();
|
|
419
|
+
const server = await writeServer(
|
|
420
|
+
fixture.cwd,
|
|
421
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "malformed-tool", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: [{ name: "", description: 42, inputSchema: [] }] } }); } });`,
|
|
422
|
+
);
|
|
423
|
+
try {
|
|
424
|
+
await expect(
|
|
425
|
+
tool(fixture.tools, "mcp_list_tools").execute("malformed-tool", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
426
|
+
).rejects.toThrow(/invalid MCP tool descriptor/iu);
|
|
427
|
+
} finally {
|
|
428
|
+
await fixture.context.fiber.dispose();
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
test("rejects malformed remote resource and prompt descriptors", async () => {
|
|
433
|
+
const fixture = await createFixture();
|
|
434
|
+
const server = await writeServer(
|
|
435
|
+
fixture.cwd,
|
|
436
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "malformed-inventory", version: "1" } } }); else if (message.method === "resources/list") send({ jsonrpc: "2.0", id: message.id, result: { resources: [{ uri: "fixture://missing-name" }] } }); else if (message.method === "prompts/list") send({ jsonrpc: "2.0", id: message.id, result: { prompts: [{ name: "", arguments: {} }] } }); } });`,
|
|
437
|
+
);
|
|
438
|
+
try {
|
|
439
|
+
await expect(
|
|
440
|
+
tool(fixture.tools, "mcp_list_resources").execute("malformed-resource", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
441
|
+
).rejects.toThrow(/invalid MCP resource descriptor/iu);
|
|
442
|
+
await expect(
|
|
443
|
+
tool(fixture.tools, "mcp_list_prompts").execute("malformed-prompt", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
444
|
+
).rejects.toThrow(/invalid MCP prompt descriptor/iu);
|
|
445
|
+
} finally {
|
|
446
|
+
await fixture.context.fiber.dispose();
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
test("rejects malformed MCP tool result content before returning it to the agent", async () => {
|
|
451
|
+
const fixture = await createFixture();
|
|
452
|
+
const server = await writeServer(
|
|
453
|
+
fixture.cwd,
|
|
454
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "malformed-result", version: "1" } } }); else if (message.method === "tools/call") send({ jsonrpc: "2.0", id: message.id, result: { content: [{ type: "text", text: 42 }] } }); } });`,
|
|
455
|
+
);
|
|
456
|
+
try {
|
|
457
|
+
await expect(
|
|
458
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
459
|
+
"malformed-result",
|
|
460
|
+
{ command: [process.execPath, server], name: "echo", arguments: {} },
|
|
461
|
+
undefined,
|
|
462
|
+
undefined,
|
|
463
|
+
{} as never,
|
|
464
|
+
),
|
|
465
|
+
).rejects.toThrow(/invalid MCP tool result content/iu);
|
|
466
|
+
} finally {
|
|
467
|
+
await fixture.context.fiber.dispose();
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
test("rejects malformed base64 content before returning it to the agent", async () => {
|
|
472
|
+
const fixture = await createFixture();
|
|
473
|
+
const server = await writeServer(
|
|
474
|
+
fixture.cwd,
|
|
475
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "malformed-base64", version: "1" } } }); else if (message.method === "tools/call") send({ jsonrpc: "2.0", id: message.id, result: { content: [{ type: "image", data: "not-base64!", mimeType: "image/png" }] } }); } });`,
|
|
476
|
+
);
|
|
477
|
+
try {
|
|
478
|
+
await expect(
|
|
479
|
+
tool(fixture.tools, "mcp_call").execute("malformed-base64", { command: [process.execPath, server], name: "image" }, undefined, undefined, {} as never),
|
|
480
|
+
).rejects.toThrow(/invalid MCP tool result content/iu);
|
|
481
|
+
} finally {
|
|
482
|
+
await fixture.context.fiber.dispose();
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
|
|
486
|
+
test("does not publish an invalid MCP tool call as the latest successful call", async () => {
|
|
487
|
+
const fixture = await createFixture();
|
|
488
|
+
const server = await writeServer(
|
|
489
|
+
fixture.cwd,
|
|
490
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "invalid-call-state", version: "1" } } }); else if (message.method === "tools/call") send({ jsonrpc: "2.0", id: message.id, result: { content: [{ type: "text", text: 42 }] } }); } });`,
|
|
491
|
+
);
|
|
492
|
+
try {
|
|
493
|
+
await expect(
|
|
494
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
495
|
+
"invalid-call-state",
|
|
496
|
+
{ command: [process.execPath, server], name: "broken" },
|
|
497
|
+
undefined,
|
|
498
|
+
undefined,
|
|
499
|
+
{} as never,
|
|
500
|
+
),
|
|
501
|
+
).rejects.toThrow(/invalid MCP tool result content/iu);
|
|
502
|
+
await expect(fixture.panels.snapshot()).resolves.toMatchObject([{ data: { lastCall: null } }]);
|
|
503
|
+
} finally {
|
|
504
|
+
await fixture.context.fiber.dispose();
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
|
|
508
|
+
test("normalizes resource and prompt payloads into agent text and image content", async () => {
|
|
509
|
+
const fixture = await createFixture();
|
|
510
|
+
const server = await writeServer(
|
|
511
|
+
fixture.cwd,
|
|
512
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "content", version: "1" } } }); else if (message.method === "resources/read") send({ jsonrpc: "2.0", id: message.id, result: { contents: [{ uri: message.params.uri, mimeType: "text/plain", text: "resource body" }, { uri: "fixture://image", mimeType: "image/png", blob: "aGVsbG8=" }] } }); else if (message.method === "prompts/get") send({ jsonrpc: "2.0", id: message.id, result: { description: "Review", messages: [{ role: "user", content: { type: "text", text: "Review this" } }] } }); } });`,
|
|
513
|
+
);
|
|
514
|
+
try {
|
|
515
|
+
await expect(
|
|
516
|
+
tool(fixture.tools, "mcp_read_resource").execute(
|
|
517
|
+
"read-resource",
|
|
518
|
+
{ command: [process.execPath, server], uri: "fixture://readme" },
|
|
519
|
+
undefined,
|
|
520
|
+
undefined,
|
|
521
|
+
{} as never,
|
|
522
|
+
),
|
|
523
|
+
).resolves.toMatchObject({
|
|
524
|
+
content: [
|
|
525
|
+
{ type: "text", text: "resource body" },
|
|
526
|
+
{ type: "image", data: "aGVsbG8=", mimeType: "image/png" },
|
|
527
|
+
],
|
|
528
|
+
});
|
|
529
|
+
await expect(
|
|
530
|
+
tool(fixture.tools, "mcp_get_prompt").execute("get-prompt", { command: [process.execPath, server], name: "review" }, undefined, undefined, {} as never),
|
|
531
|
+
).resolves.toMatchObject({ content: [{ type: "text", text: "[user]\nReview this" }] });
|
|
532
|
+
} finally {
|
|
533
|
+
await fixture.context.fiber.dispose();
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
test("accepts spec-valid binary resources without an optional MIME type", async () => {
|
|
538
|
+
const fixture = await createFixture();
|
|
539
|
+
const server = await writeServer(
|
|
540
|
+
fixture.cwd,
|
|
541
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "optional-mime", version: "1" } } }); else if (message.method === "resources/read") send({ jsonrpc: "2.0", id: message.id, result: { contents: [{ uri: "fixture://binary", blob: "aGVsbG8=" }] } }); else if (message.method === "tools/call") send({ jsonrpc: "2.0", id: message.id, result: { content: [{ type: "resource", resource: { uri: "fixture://embedded", blob: "aGVsbG8=" } }] } }); } });`,
|
|
542
|
+
);
|
|
543
|
+
try {
|
|
544
|
+
await expect(
|
|
545
|
+
tool(fixture.tools, "mcp_read_resource").execute(
|
|
546
|
+
"optional-mime-read",
|
|
547
|
+
{ command: [process.execPath, server], uri: "fixture://binary" },
|
|
548
|
+
undefined,
|
|
549
|
+
undefined,
|
|
550
|
+
{} as never,
|
|
551
|
+
),
|
|
552
|
+
).resolves.toMatchObject({ content: [{ type: "text", text: "[MCP binary resource omitted: fixture://binary (unknown MIME type)]" }] });
|
|
553
|
+
await expect(
|
|
554
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
555
|
+
"optional-mime-call",
|
|
556
|
+
{ command: [process.execPath, server], name: "binary" },
|
|
557
|
+
undefined,
|
|
558
|
+
undefined,
|
|
559
|
+
{} as never,
|
|
560
|
+
),
|
|
561
|
+
).resolves.toMatchObject({ content: [{ type: "text", text: "[MCP binary resource omitted: fixture://embedded (unknown MIME type)]" }] });
|
|
562
|
+
} finally {
|
|
563
|
+
await fixture.context.fiber.dispose();
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
test("does not mix inventories from different MCP servers", async () => {
|
|
568
|
+
const fixture = await createFixture();
|
|
569
|
+
const resourceServer = await writeServer(
|
|
570
|
+
fixture.cwd,
|
|
571
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "resources", version: "1" } } }); else if (message.method === "resources/list") send({ jsonrpc: "2.0", id: message.id, result: { resources: [{ uri: "fixture://one", name: "One" }] } }); } });`,
|
|
572
|
+
);
|
|
573
|
+
const toolServer = await writeServer(
|
|
574
|
+
fixture.cwd,
|
|
575
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "tools", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: [{ name: "echo", inputSchema: { type: "object" } }] } }); } });`,
|
|
576
|
+
);
|
|
577
|
+
try {
|
|
578
|
+
await tool(fixture.tools, "mcp_list_resources").execute("resources", { command: [process.execPath, resourceServer] }, undefined, undefined, {} as never);
|
|
579
|
+
await tool(fixture.tools, "mcp_list_tools").execute("tools", { command: [process.execPath, toolServer] }, undefined, undefined, {} as never);
|
|
580
|
+
await expect(fixture.panels.snapshot()).resolves.toMatchObject([{ data: { resources: [], tools: [{ name: "echo" }] } }]);
|
|
581
|
+
} finally {
|
|
582
|
+
await fixture.context.fiber.dispose();
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
test("rejects NUL command arguments and invalid server ids before spawning", async () => {
|
|
587
|
+
const fixture = await createFixture();
|
|
588
|
+
const server = await writeServer(
|
|
589
|
+
fixture.cwd,
|
|
590
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "validation", version: "1" } } }); } });`,
|
|
591
|
+
);
|
|
592
|
+
try {
|
|
593
|
+
await expect(
|
|
594
|
+
tool(fixture.tools, "mcp_list_tools").execute("nul-command", { command: [process.execPath, `bad\0argument`] }, undefined, undefined, {} as never),
|
|
595
|
+
).rejects.toThrow(/command.*NUL/iu);
|
|
596
|
+
await expect(
|
|
597
|
+
tool(fixture.tools, "mcp_server_start").execute(
|
|
598
|
+
"invalid-id",
|
|
599
|
+
{ command: [process.execPath, server], serverId: "bad id" },
|
|
600
|
+
undefined,
|
|
601
|
+
undefined,
|
|
602
|
+
{} as never,
|
|
603
|
+
),
|
|
604
|
+
).rejects.toThrow(/serverId.*letters.*numbers/iu);
|
|
605
|
+
} finally {
|
|
606
|
+
await fixture.context.fiber.dispose();
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
|
|
610
|
+
test("validates tool names, prompt names, and resource URIs before spawning", async () => {
|
|
611
|
+
const fixture = await createFixture();
|
|
612
|
+
try {
|
|
613
|
+
await expect(
|
|
614
|
+
tool(fixture.tools, "mcp_call").execute(
|
|
615
|
+
"invalid-tool-name",
|
|
616
|
+
{ command: ["/definitely/missing-mcp-server"], name: "" },
|
|
617
|
+
undefined,
|
|
618
|
+
undefined,
|
|
619
|
+
{} as never,
|
|
620
|
+
),
|
|
621
|
+
).rejects.toThrow(/tool name.*1.*512/iu);
|
|
622
|
+
await expect(
|
|
623
|
+
tool(fixture.tools, "mcp_get_prompt").execute(
|
|
624
|
+
"invalid-prompt-name",
|
|
625
|
+
{ command: ["/definitely/missing-mcp-server"], name: "bad\0name" },
|
|
626
|
+
undefined,
|
|
627
|
+
undefined,
|
|
628
|
+
{} as never,
|
|
629
|
+
),
|
|
630
|
+
).rejects.toThrow(/prompt name.*NUL/iu);
|
|
631
|
+
await expect(
|
|
632
|
+
tool(fixture.tools, "mcp_read_resource").execute(
|
|
633
|
+
"invalid-uri",
|
|
634
|
+
{ command: ["/definitely/missing-mcp-server"], uri: "bad\0uri" },
|
|
635
|
+
undefined,
|
|
636
|
+
undefined,
|
|
637
|
+
{} as never,
|
|
638
|
+
),
|
|
639
|
+
).rejects.toThrow(/resource URI.*NUL/iu);
|
|
640
|
+
} finally {
|
|
641
|
+
await fixture.context.fiber.dispose();
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
test("escalates to SIGKILL when a one-shot server ignores graceful shutdown", async () => {
|
|
646
|
+
if (process.platform === "win32") return;
|
|
647
|
+
const fixture = await createFixture();
|
|
648
|
+
const pidPath = join(fixture.cwd, "server.pid");
|
|
649
|
+
const requested = join(fixture.cwd, "kill-requested");
|
|
650
|
+
const server = await writeServer(
|
|
651
|
+
fixture.cwd,
|
|
652
|
+
`import { writeFileSync } from "node:fs"; writeFileSync(${JSON.stringify(pidPath)}, String(process.pid)); process.on("SIGTERM", () => {}); setInterval(() => {}, 1000); let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "ignore-term", version: "1" } } }); else if (message.method === "tools/list") writeFileSync(${JSON.stringify(requested)}, "yes"); } });`,
|
|
653
|
+
);
|
|
654
|
+
const pending = tool(fixture.tools, "mcp_list_tools").execute("kill-fallback", { command: [process.execPath, server] }, undefined, undefined, {} as never);
|
|
655
|
+
void pending.catch(() => undefined);
|
|
656
|
+
let pid: number | undefined;
|
|
657
|
+
try {
|
|
658
|
+
await vi.waitFor(() => expect(existsSync(requested)).toBe(true));
|
|
659
|
+
pid = Number(await readFile(pidPath, "utf8"));
|
|
660
|
+
await fixture.context.fiber.dispose();
|
|
661
|
+
await pending.catch(() => undefined);
|
|
662
|
+
await vi.waitFor(
|
|
663
|
+
() => {
|
|
664
|
+
expect(() => process.kill(pid!, 0)).toThrow();
|
|
665
|
+
},
|
|
666
|
+
{ timeout: 1500 },
|
|
667
|
+
);
|
|
668
|
+
} finally {
|
|
669
|
+
if (pid !== undefined) {
|
|
670
|
+
try {
|
|
671
|
+
process.kill(pid, "SIGKILL");
|
|
672
|
+
} catch {
|
|
673
|
+
// The plugin already reaped the process.
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
await fixture.context.fiber.dispose();
|
|
677
|
+
await pending.catch(() => undefined);
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
test("cancels a stop request while an earlier managed request is still running", async () => {
|
|
682
|
+
const cwd = await mkdtemp(join(tmpdir(), "pi-harness-mcp-client-stop-"));
|
|
683
|
+
temporaryDirectories.push(cwd);
|
|
684
|
+
const requested = join(cwd, "stop-wait-requested");
|
|
685
|
+
const server = await writeServer(
|
|
686
|
+
cwd,
|
|
687
|
+
`import { writeFileSync } from "node:fs"; let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "stop-wait", version: "1" } } }); else if (message.method === "tools/list") writeFileSync(${JSON.stringify(requested)}, "yes"); } });`,
|
|
688
|
+
);
|
|
689
|
+
const fixture = await createFixture({ servers: [{ id: "stop-wait", command: [process.execPath, server] }] });
|
|
690
|
+
await tool(fixture.tools, "mcp_server_start").execute("start", { serverId: "stop-wait" }, undefined, undefined, {} as never);
|
|
691
|
+
const first = tool(fixture.tools, "mcp_list_tools").execute("list", { serverId: "stop-wait" }, undefined, undefined, {} as never);
|
|
692
|
+
void first.catch(() => undefined);
|
|
693
|
+
const controller = new AbortController();
|
|
694
|
+
let stopOutcome: unknown;
|
|
695
|
+
let stopping: Promise<unknown> | undefined;
|
|
696
|
+
try {
|
|
697
|
+
await vi.waitFor(() => expect(existsSync(requested)).toBe(true));
|
|
698
|
+
stopping = tool(fixture.tools, "mcp_server_stop").execute("stop", { serverId: "stop-wait" }, controller.signal, undefined, {} as never);
|
|
699
|
+
void stopping.catch((error: unknown) => {
|
|
700
|
+
stopOutcome = error;
|
|
701
|
+
});
|
|
702
|
+
controller.abort(new Error("stop cancelled"));
|
|
703
|
+
await vi.waitFor(() => expect(stopOutcome).toBeInstanceOf(Error), { timeout: 500 });
|
|
704
|
+
expect((stopOutcome as Error).message).toMatch(/cancelled/iu);
|
|
705
|
+
} finally {
|
|
706
|
+
await fixture.context.fiber.dispose();
|
|
707
|
+
await first.catch(() => undefined);
|
|
708
|
+
await stopping?.catch(() => undefined);
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
|
|
712
|
+
test("bounds captured server stderr by UTF-8 bytes", async () => {
|
|
713
|
+
const fixture = await createFixture();
|
|
714
|
+
const server = await writeServer(
|
|
715
|
+
fixture.cwd,
|
|
716
|
+
`process.stderr.write("🙂".repeat(5000)); let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; const newline = buffer.indexOf("\\n"); if (newline < 0) return; const message = JSON.parse(buffer.slice(0, newline)); send({ jsonrpc: "2.0", id: message.id, error: { code: -32000, message: "boom" } }); });`,
|
|
717
|
+
);
|
|
718
|
+
let failure: unknown;
|
|
719
|
+
try {
|
|
720
|
+
await tool(fixture.tools, "mcp_list_tools")
|
|
721
|
+
.execute("stderr", { command: [process.execPath, server] }, undefined, undefined, {} as never)
|
|
722
|
+
.catch((error: unknown) => {
|
|
723
|
+
failure = error;
|
|
724
|
+
});
|
|
725
|
+
expect(failure).toBeInstanceOf(Error);
|
|
726
|
+
expect(Buffer.byteLength((failure as Error).message, "utf8")).toBeLessThanOrEqual(8300);
|
|
727
|
+
} finally {
|
|
728
|
+
await fixture.context.fiber.dispose();
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
|
|
732
|
+
test("rejects invalid UTF-8 in MCP JSON frames", async () => {
|
|
733
|
+
const fixture = await createFixture();
|
|
734
|
+
const server = await writeServer(
|
|
735
|
+
fixture.cwd,
|
|
736
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "utf8", version: "1" } } }); else if (message.method === "tools/list") process.stdout.write(Buffer.concat([Buffer.from('{"jsonrpc":"2.0","id":' + message.id + ',"result":{"tools":[{"name":"'), Buffer.from([0xc3, 0x28]), Buffer.from('","inputSchema":{"type":"object"}}]}}\\n')])); } });`,
|
|
737
|
+
);
|
|
738
|
+
try {
|
|
739
|
+
await expect(
|
|
740
|
+
tool(fixture.tools, "mcp_list_tools").execute("invalid-utf8", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
741
|
+
).rejects.toThrow(/valid UTF-8/iu);
|
|
742
|
+
} finally {
|
|
743
|
+
await fixture.context.fiber.dispose();
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
test("rejects malformed JSON-RPC response envelopes", async () => {
|
|
748
|
+
const fixture = await createFixture();
|
|
749
|
+
const server = await writeServer(
|
|
750
|
+
fixture.cwd,
|
|
751
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "rpc", version: "1" } } }); else if (message.method === "tools/list") send({ id: message.id, result: { tools: [] } }); } });`,
|
|
752
|
+
);
|
|
753
|
+
try {
|
|
754
|
+
await expect(
|
|
755
|
+
tool(fixture.tools, "mcp_list_tools").execute("invalid-rpc", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
756
|
+
).rejects.toThrow(/invalid JSON-RPC response/iu);
|
|
757
|
+
} finally {
|
|
758
|
+
await fixture.context.fiber.dispose();
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
|
|
762
|
+
test("rejects an invalid initialize result before sending initialized", async () => {
|
|
763
|
+
const fixture = await createFixture();
|
|
764
|
+
const server = await writeServer(
|
|
765
|
+
fixture.cwd,
|
|
766
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "unsupported", capabilities: [], serverInfo: { name: "", version: 1 } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: [] } }); } });`,
|
|
767
|
+
);
|
|
768
|
+
try {
|
|
769
|
+
await expect(
|
|
770
|
+
tool(fixture.tools, "mcp_list_tools").execute("invalid-initialize", { command: [process.execPath, server] }, undefined, undefined, {} as never),
|
|
771
|
+
).rejects.toThrow(/invalid MCP initialize result/iu);
|
|
772
|
+
} finally {
|
|
773
|
+
await fixture.context.fiber.dispose();
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
test("detaches resource and prompt details from panel state", async () => {
|
|
778
|
+
const fixture = await createFixture();
|
|
779
|
+
const server = await writeServer(
|
|
780
|
+
fixture.cwd,
|
|
781
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "detach", version: "1" } } }); else if (message.method === "resources/list") send({ jsonrpc: "2.0", id: message.id, result: { resources: [{ uri: "fixture://original", name: "Original" }] } }); else if (message.method === "prompts/list") send({ jsonrpc: "2.0", id: message.id, result: { prompts: [{ name: "original", arguments: [] }] } }); } });`,
|
|
782
|
+
);
|
|
783
|
+
try {
|
|
784
|
+
const resourcesResult = await tool(fixture.tools, "mcp_list_resources").execute(
|
|
785
|
+
"resources",
|
|
786
|
+
{ command: [process.execPath, server] },
|
|
787
|
+
undefined,
|
|
788
|
+
undefined,
|
|
789
|
+
{} as never,
|
|
790
|
+
);
|
|
791
|
+
(resourcesResult.details as { resources: Array<{ uri: string }> }).resources[0]!.uri = "fixture://mutated";
|
|
792
|
+
await expect(fixture.panels.snapshot()).resolves.toMatchObject([{ data: { resources: [{ uri: "fixture://original" }] } }]);
|
|
793
|
+
const promptsResult = await tool(fixture.tools, "mcp_list_prompts").execute(
|
|
794
|
+
"prompts",
|
|
795
|
+
{ command: [process.execPath, server] },
|
|
796
|
+
undefined,
|
|
797
|
+
undefined,
|
|
798
|
+
{} as never,
|
|
799
|
+
);
|
|
800
|
+
(promptsResult.details as { prompts: Array<{ name: string }> }).prompts[0]!.name = "mutated";
|
|
801
|
+
await expect(fixture.panels.snapshot()).resolves.toMatchObject([{ data: { prompts: [{ name: "original" }] } }]);
|
|
802
|
+
} finally {
|
|
803
|
+
await fixture.context.fiber.dispose();
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
|
|
807
|
+
test("detaches managed server command snapshots from tool results", async () => {
|
|
808
|
+
const fixture = await createFixture();
|
|
809
|
+
const server = await writeServer(
|
|
810
|
+
fixture.cwd,
|
|
811
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "snapshot", version: "1" } } }); } });`,
|
|
812
|
+
);
|
|
813
|
+
try {
|
|
814
|
+
const started = await tool(fixture.tools, "mcp_server_start").execute(
|
|
815
|
+
"start",
|
|
816
|
+
{ command: [process.execPath, server], serverId: "snapshot" },
|
|
817
|
+
undefined,
|
|
818
|
+
undefined,
|
|
819
|
+
{} as never,
|
|
820
|
+
);
|
|
821
|
+
(started.details as { command: string[] }).command[0] = "mutated";
|
|
822
|
+
const status = await tool(fixture.tools, "mcp_server_status").execute("status", {}, undefined, undefined, {} as never);
|
|
823
|
+
expect((status.details as { servers: Array<{ executable: string }> }).servers[0]?.executable).toBe(process.execPath.split("/").pop());
|
|
824
|
+
(status.details as { servers: Array<{ executable: string }> }).servers[0]!.executable = "mutated-again";
|
|
825
|
+
const secondStatus = await tool(fixture.tools, "mcp_server_status").execute("status-again", {}, undefined, undefined, {} as never);
|
|
826
|
+
expect((secondStatus.details as { servers: Array<{ executable: string }> }).servers[0]?.executable).toBe(process.execPath.split("/").pop());
|
|
827
|
+
await expect(fixture.panels.snapshot()).resolves.toMatchObject([
|
|
828
|
+
{ data: { servers: [{ id: "snapshot", executable: process.execPath.split("/").pop(), argumentCount: 1, status: "running" }] } },
|
|
829
|
+
]);
|
|
830
|
+
} finally {
|
|
831
|
+
await fixture.context.fiber.dispose();
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
|
|
835
|
+
test("reserves managed server ids while concurrent starts initialize", async () => {
|
|
836
|
+
const fixture = await createFixture();
|
|
837
|
+
const server = await writeServer(
|
|
838
|
+
fixture.cwd,
|
|
839
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") setTimeout(() => send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "concurrent", version: "1" } } }), 100); } });`,
|
|
840
|
+
);
|
|
841
|
+
try {
|
|
842
|
+
const starts = await Promise.allSettled([
|
|
843
|
+
tool(fixture.tools, "mcp_server_start").execute(
|
|
844
|
+
"start-1",
|
|
845
|
+
{ command: [process.execPath, server], serverId: "same" },
|
|
846
|
+
undefined,
|
|
847
|
+
undefined,
|
|
848
|
+
{} as never,
|
|
849
|
+
),
|
|
850
|
+
tool(fixture.tools, "mcp_server_start").execute(
|
|
851
|
+
"start-2",
|
|
852
|
+
{ command: [process.execPath, server], serverId: "same" },
|
|
853
|
+
undefined,
|
|
854
|
+
undefined,
|
|
855
|
+
{} as never,
|
|
856
|
+
),
|
|
857
|
+
]);
|
|
858
|
+
expect(starts.filter((result) => result.status === "fulfilled")).toHaveLength(1);
|
|
859
|
+
expect(starts.filter((result) => result.status === "rejected")).toHaveLength(1);
|
|
860
|
+
const rejection = starts.find((result) => result.status === "rejected");
|
|
861
|
+
expect(rejection?.status).toBe("rejected");
|
|
862
|
+
const reason: unknown = rejection?.status === "rejected" ? (rejection.reason as unknown) : undefined;
|
|
863
|
+
expect(reason).toBeInstanceOf(Error);
|
|
864
|
+
expect((reason as Error).message).toMatch(/already.*starting|already running/iu);
|
|
865
|
+
} finally {
|
|
866
|
+
await fixture.context.fiber.dispose();
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
test("releases a managed server id when process spawning throws synchronously", async () => {
|
|
871
|
+
const fixture = await createFixture({ launchCwd: "invalid\0cwd" });
|
|
872
|
+
try {
|
|
873
|
+
const start = () =>
|
|
874
|
+
tool(fixture.tools, "mcp_server_start").execute(
|
|
875
|
+
"sync-spawn-failure",
|
|
876
|
+
{ command: [process.execPath, "server.mjs"], serverId: "retryable" },
|
|
877
|
+
undefined,
|
|
878
|
+
undefined,
|
|
879
|
+
{} as never,
|
|
880
|
+
);
|
|
881
|
+
await expect(start()).rejects.toThrow(/null bytes|must be a string without null bytes|invalid.*cwd/iu);
|
|
882
|
+
await expect(start()).rejects.toThrow(/null bytes|must be a string without null bytes|invalid.*cwd/iu);
|
|
883
|
+
} finally {
|
|
884
|
+
await fixture.context.fiber.dispose();
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
|
|
888
|
+
test("does not expose command arguments in the plugin panel", async () => {
|
|
889
|
+
const secret = "secret-command-argument";
|
|
890
|
+
const fixture = await createFixture({ servers: [{ id: "private", command: [process.execPath, secret] }] });
|
|
891
|
+
try {
|
|
892
|
+
const panels = await fixture.panels.snapshot();
|
|
893
|
+
expect(JSON.stringify(panels)).not.toContain(secret);
|
|
894
|
+
expect(panels).toMatchObject([
|
|
895
|
+
{
|
|
896
|
+
data: {
|
|
897
|
+
servers: [{ id: "private", executable: process.execPath.split("/").pop(), argumentCount: 1, status: "stopped" }],
|
|
898
|
+
},
|
|
899
|
+
},
|
|
900
|
+
]);
|
|
901
|
+
const status = await tool(fixture.tools, "mcp_server_status").execute("status", {}, undefined, undefined, {} as never);
|
|
902
|
+
expect(JSON.stringify(status)).not.toContain(secret);
|
|
903
|
+
expect(status).toMatchObject({ details: { servers: [{ id: "private", executable: process.execPath.split("/").pop(), argumentCount: 1 }] } });
|
|
904
|
+
} finally {
|
|
905
|
+
await fixture.context.fiber.dispose();
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
|
|
909
|
+
test("does not expose one-shot command arguments as the latest server label", async () => {
|
|
910
|
+
const fixture = await createFixture();
|
|
911
|
+
const secret = "secret-one-shot-argument";
|
|
912
|
+
const server = await writeServer(
|
|
913
|
+
fixture.cwd,
|
|
914
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "private", version: "1" } } }); else if (message.method === "tools/list") send({ jsonrpc: "2.0", id: message.id, result: { tools: [] } }); } });`,
|
|
915
|
+
);
|
|
916
|
+
try {
|
|
917
|
+
await tool(fixture.tools, "mcp_list_tools").execute("private", { command: [process.execPath, server, secret] }, undefined, undefined, {} as never);
|
|
918
|
+
const panels = await fixture.panels.snapshot();
|
|
919
|
+
expect(JSON.stringify(panels)).not.toContain(secret);
|
|
920
|
+
expect(panels).toMatchObject([{ data: { server: `${process.execPath.split("/").pop()} (+2 args)` } }]);
|
|
921
|
+
} finally {
|
|
922
|
+
await fixture.context.fiber.dispose();
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
|
|
926
|
+
test("accepts only string values for MCP prompt arguments", async () => {
|
|
927
|
+
const fixture = await createFixture();
|
|
928
|
+
try {
|
|
929
|
+
await expect(
|
|
930
|
+
tool(fixture.tools, "mcp_get_prompt").execute(
|
|
931
|
+
"prompt-arguments",
|
|
932
|
+
{ command: ["/definitely/missing-mcp-server"], name: "review", arguments: { count: 2 } },
|
|
933
|
+
undefined,
|
|
934
|
+
undefined,
|
|
935
|
+
{} as never,
|
|
936
|
+
),
|
|
937
|
+
).rejects.toThrow(/prompt arguments.*string values/iu);
|
|
938
|
+
} finally {
|
|
939
|
+
await fixture.context.fiber.dispose();
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
|
|
943
|
+
test("rejects oversized configured server inventories", async () => {
|
|
944
|
+
let fixture: Awaited<ReturnType<typeof createFixture>> | undefined;
|
|
945
|
+
let failure: unknown;
|
|
946
|
+
try {
|
|
947
|
+
fixture = await createFixture({
|
|
948
|
+
servers: Array.from({ length: 129 }, (_, index) => ({ id: `server-${index}`, command: [process.execPath, "server.mjs"] })),
|
|
949
|
+
});
|
|
950
|
+
} catch (error) {
|
|
951
|
+
failure = error;
|
|
952
|
+
} finally {
|
|
953
|
+
await fixture?.context.fiber.dispose();
|
|
954
|
+
}
|
|
955
|
+
expect(failure).toBeInstanceOf(Error);
|
|
956
|
+
expect((failure as Error).message).toMatch(/configured.*128 servers/iu);
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
test("does not allocate an automatic id reserved by configuration", async () => {
|
|
960
|
+
const cwd = await mkdtemp(join(tmpdir(), "pi-harness-mcp-client-id-"));
|
|
961
|
+
temporaryDirectories.push(cwd);
|
|
962
|
+
const configuredServer = await writeServer(cwd, `process.stdin.resume();`);
|
|
963
|
+
const directServer = await writeServer(
|
|
964
|
+
cwd,
|
|
965
|
+
`let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "direct", version: "1" } } }); } });`,
|
|
966
|
+
);
|
|
967
|
+
const fixture = await createFixture({ servers: [{ id: "mcp-1", command: [process.execPath, configuredServer] }] });
|
|
968
|
+
try {
|
|
969
|
+
await expect(
|
|
970
|
+
tool(fixture.tools, "mcp_server_start").execute("automatic-id", { command: [process.execPath, directServer] }, undefined, undefined, {} as never),
|
|
971
|
+
).resolves.toMatchObject({ details: { serverId: "mcp-2" } });
|
|
972
|
+
} finally {
|
|
973
|
+
await fixture.context.fiber.dispose();
|
|
974
|
+
}
|
|
975
|
+
});
|
|
976
|
+
|
|
977
|
+
test("rejects ambiguous one-shot and managed server targets", async () => {
|
|
978
|
+
const fixture = await createFixture();
|
|
979
|
+
try {
|
|
980
|
+
await expect(
|
|
981
|
+
tool(fixture.tools, "mcp_list_tools").execute(
|
|
982
|
+
"ambiguous-target",
|
|
983
|
+
{ command: [process.execPath, "server.mjs"], serverId: "configured" },
|
|
984
|
+
undefined,
|
|
985
|
+
undefined,
|
|
986
|
+
{} as never,
|
|
987
|
+
),
|
|
988
|
+
).rejects.toThrow(/either command or serverId, not both/iu);
|
|
989
|
+
} finally {
|
|
990
|
+
await fixture.context.fiber.dispose();
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
test("reports truncated managed server inventory in the panel", async () => {
|
|
995
|
+
const fixture = await createFixture({
|
|
996
|
+
servers: Array.from({ length: 25 }, (_, index) => ({ id: `server-${index}`, command: [process.execPath, "server.mjs"] })),
|
|
997
|
+
});
|
|
998
|
+
try {
|
|
999
|
+
const panels = await fixture.panels.snapshot();
|
|
1000
|
+
expect((panels[0]?.data as { servers: unknown[] }).servers).toHaveLength(20);
|
|
1001
|
+
expect(panels).toMatchObject([{ data: { inventory: { servers: { total: 25, shown: 20, truncated: true } } } }]);
|
|
1002
|
+
} finally {
|
|
1003
|
+
await fixture.context.fiber.dispose();
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
|
|
1007
|
+
test("stops a managed server without waiting for an in-flight request timeout", async () => {
|
|
1008
|
+
const cwd = await mkdtemp(join(tmpdir(), "pi-harness-mcp-client-fast-stop-"));
|
|
1009
|
+
temporaryDirectories.push(cwd);
|
|
1010
|
+
const requested = join(cwd, "fast-stop-requested");
|
|
1011
|
+
const server = await writeServer(
|
|
1012
|
+
cwd,
|
|
1013
|
+
`import { writeFileSync } from "node:fs"; let buffer = ""; const send = (value) => process.stdout.write(JSON.stringify(value) + "\\n"); process.stdin.setEncoding("utf8"); process.stdin.on("data", (chunk) => { buffer += chunk; for (;;) { const newline = buffer.indexOf("\\n"); if (newline < 0) break; const line = buffer.slice(0, newline); buffer = buffer.slice(newline + 1); if (!line.trim()) continue; const message = JSON.parse(line); if (message.method === "initialize") send({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: "2025-06-18", capabilities: {}, serverInfo: { name: "fast-stop", version: "1" } } }); else if (message.method === "tools/list") writeFileSync(${JSON.stringify(requested)}, "yes"); } });`,
|
|
1014
|
+
);
|
|
1015
|
+
const fixture = await createFixture({ servers: [{ id: "fast-stop", command: [process.execPath, server] }] });
|
|
1016
|
+
await tool(fixture.tools, "mcp_server_start").execute("start", { serverId: "fast-stop" }, undefined, undefined, {} as never);
|
|
1017
|
+
const pending = tool(fixture.tools, "mcp_list_tools").execute("list", { serverId: "fast-stop" }, undefined, undefined, {} as never);
|
|
1018
|
+
void pending.catch(() => undefined);
|
|
1019
|
+
let stopped: unknown;
|
|
1020
|
+
let stopping: Promise<unknown> | undefined;
|
|
1021
|
+
try {
|
|
1022
|
+
await vi.waitFor(() => expect(existsSync(requested)).toBe(true));
|
|
1023
|
+
stopping = tool(fixture.tools, "mcp_server_stop")
|
|
1024
|
+
.execute("stop", { serverId: "fast-stop" }, undefined, undefined, {} as never)
|
|
1025
|
+
.then((result) => {
|
|
1026
|
+
stopped = result;
|
|
1027
|
+
});
|
|
1028
|
+
void stopping.catch(() => undefined);
|
|
1029
|
+
await vi.waitFor(() => expect(stopped).toMatchObject({ details: { stopped: true } }), { timeout: 500 });
|
|
1030
|
+
await expect(pending).rejects.toThrow(/stopped/iu);
|
|
1031
|
+
} finally {
|
|
1032
|
+
await fixture.context.fiber.dispose();
|
|
1033
|
+
await pending.catch(() => undefined);
|
|
1034
|
+
await stopping?.catch(() => undefined);
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
});
|