@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,844 @@
|
|
|
1
|
+
import { mkdtemp, rm } from "node:fs/promises";
|
|
2
|
+
import { createServer, type ServerResponse } from "node:http";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
6
|
+
import { describe, expect, test } from "vitest";
|
|
7
|
+
import browserFetchPlugin from "../src/plugins/browser-fetch.js";
|
|
8
|
+
import { PiPluginUiRegistry, PiToolRegistry, provideLaunchContext } from "../src/services.js";
|
|
9
|
+
|
|
10
|
+
describe("browser-fetch", () => {
|
|
11
|
+
test("declares the URL length bounds in the tool schema", async () => {
|
|
12
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
13
|
+
const context = new Context();
|
|
14
|
+
const tools = new PiToolRegistry();
|
|
15
|
+
try {
|
|
16
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
17
|
+
context.provide("piTools", tools);
|
|
18
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
19
|
+
await context.plugin(browserFetchPlugin);
|
|
20
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
21
|
+
|
|
22
|
+
expect(tool?.executionMode).toBe("sequential");
|
|
23
|
+
expect(tool?.parameters).toMatchObject({
|
|
24
|
+
type: "object",
|
|
25
|
+
additionalProperties: false,
|
|
26
|
+
properties: { url: { type: "string", minLength: 1, maxLength: 4096 } },
|
|
27
|
+
});
|
|
28
|
+
} finally {
|
|
29
|
+
await context.fiber.dispose();
|
|
30
|
+
await rm(root, { recursive: true, force: true });
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test("rolls back the tool when panel registration fails", async () => {
|
|
35
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
36
|
+
const context = new Context();
|
|
37
|
+
const tools = new PiToolRegistry();
|
|
38
|
+
const panels = new PiPluginUiRegistry();
|
|
39
|
+
try {
|
|
40
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
41
|
+
context.provide("piTools", tools);
|
|
42
|
+
context.provide("piPluginUi", panels);
|
|
43
|
+
panels.register({ id: "browser-fetch-panel", pluginId: "fixture", title: "Fixture", read: () => ({}) });
|
|
44
|
+
await expect(context.plugin(browserFetchPlugin)).rejects.toThrow(/already registered.*browser-fetch-panel/iu);
|
|
45
|
+
expect(tools.snapshot().customTools).toEqual([]);
|
|
46
|
+
} finally {
|
|
47
|
+
await context.fiber.dispose();
|
|
48
|
+
await rm(root, { recursive: true, force: true });
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test("declares bounded integer request timeouts in the plugin config schema", () => {
|
|
53
|
+
expect(browserFetchPlugin.Config.dict?.timeoutMs?.meta).toMatchObject({ default: 20_000, min: 100, max: 60_000, step: 1 });
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test("rejects a non-finite request timeout during config validation", async () => {
|
|
57
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
58
|
+
const context = new Context();
|
|
59
|
+
try {
|
|
60
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
61
|
+
context.provide("piTools", new PiToolRegistry());
|
|
62
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
63
|
+
|
|
64
|
+
await expect(context.plugin(browserFetchPlugin, { timeoutMs: Number.NaN })).rejects.toThrow(/invalid config/iu);
|
|
65
|
+
} finally {
|
|
66
|
+
await context.fiber.dispose();
|
|
67
|
+
await rm(root, { recursive: true, force: true });
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test("rejects a non-string URL with a stable validation error", async () => {
|
|
72
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
73
|
+
const context = new Context();
|
|
74
|
+
const tools = new PiToolRegistry();
|
|
75
|
+
try {
|
|
76
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
77
|
+
context.provide("piTools", tools);
|
|
78
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
79
|
+
await context.plugin(browserFetchPlugin);
|
|
80
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
81
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
82
|
+
|
|
83
|
+
await expect(tool.execute("fetch", { url: null }, undefined, undefined, {} as never)).rejects.toThrow(/URL must be a string/iu);
|
|
84
|
+
await expect(tool.execute("fetch", null, undefined, undefined, {} as never)).rejects.toThrow(/URL must be a string/iu);
|
|
85
|
+
} finally {
|
|
86
|
+
await context.fiber.dispose();
|
|
87
|
+
await rm(root, { recursive: true, force: true });
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
test("validates raw tool parameters without invoking accessors", async () => {
|
|
92
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
93
|
+
const context = new Context();
|
|
94
|
+
const tools = new PiToolRegistry();
|
|
95
|
+
let accessed = false;
|
|
96
|
+
const params = {} as { url?: string };
|
|
97
|
+
Object.defineProperty(params, "url", {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get() {
|
|
100
|
+
accessed = true;
|
|
101
|
+
throw new Error("browser URL accessor executed");
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
try {
|
|
105
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
106
|
+
context.provide("piTools", tools);
|
|
107
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
108
|
+
await context.plugin(browserFetchPlugin);
|
|
109
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
110
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
111
|
+
|
|
112
|
+
await expect(tool.execute("accessor", params, undefined, undefined, {} as never)).rejects.toThrow(/parameters.*data properties/iu);
|
|
113
|
+
expect(accessed).toBe(false);
|
|
114
|
+
} finally {
|
|
115
|
+
await context.fiber.dispose();
|
|
116
|
+
await rm(root, { recursive: true, force: true });
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
test("rejects unknown raw tool parameters", async () => {
|
|
121
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
122
|
+
const context = new Context();
|
|
123
|
+
const tools = new PiToolRegistry();
|
|
124
|
+
try {
|
|
125
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
126
|
+
context.provide("piTools", tools);
|
|
127
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
128
|
+
await context.plugin(browserFetchPlugin);
|
|
129
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
130
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
131
|
+
|
|
132
|
+
await expect(tool.execute("unknown", { url: "file:///etc/passwd", unexpected: true }, undefined, undefined, {} as never)).rejects.toThrow(
|
|
133
|
+
/parameters.*unknown property/iu,
|
|
134
|
+
);
|
|
135
|
+
} finally {
|
|
136
|
+
await context.fiber.dispose();
|
|
137
|
+
await rm(root, { recursive: true, force: true });
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
test("does not expose mutable fetch state through tool results", async () => {
|
|
142
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
143
|
+
const context = new Context();
|
|
144
|
+
const tools = new PiToolRegistry();
|
|
145
|
+
const panels = new PiPluginUiRegistry();
|
|
146
|
+
const server = createServer((_request, response) => {
|
|
147
|
+
response.writeHead(200, { "content-type": "text/plain" });
|
|
148
|
+
response.end("original");
|
|
149
|
+
});
|
|
150
|
+
await new Promise<void>((resolve, reject) => {
|
|
151
|
+
server.once("error", reject);
|
|
152
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
153
|
+
});
|
|
154
|
+
try {
|
|
155
|
+
const address = server.address();
|
|
156
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
157
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
158
|
+
context.provide("piTools", tools);
|
|
159
|
+
context.provide("piPluginUi", panels);
|
|
160
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
161
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
162
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
163
|
+
const result = await tool.execute("fetch", { url: `http://127.0.0.1:${address.port}/` }, undefined, undefined, {} as never);
|
|
164
|
+
|
|
165
|
+
(result.details as { text: string }).text = "mutated";
|
|
166
|
+
|
|
167
|
+
await expect(panels.snapshot()).resolves.toMatchObject([{ id: "browser-fetch-panel", data: { latest: { text: "original" } } }]);
|
|
168
|
+
} finally {
|
|
169
|
+
await context.fiber.dispose();
|
|
170
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
171
|
+
await rm(root, { recursive: true, force: true });
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
test("does not expose mutable fetch state through panel snapshots", async () => {
|
|
176
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
177
|
+
const context = new Context();
|
|
178
|
+
const tools = new PiToolRegistry();
|
|
179
|
+
const panels = new PiPluginUiRegistry();
|
|
180
|
+
const server = createServer((_request, response) => {
|
|
181
|
+
response.writeHead(200, { "content-type": "text/plain" });
|
|
182
|
+
response.end("original");
|
|
183
|
+
});
|
|
184
|
+
await new Promise<void>((resolve, reject) => {
|
|
185
|
+
server.once("error", reject);
|
|
186
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
187
|
+
});
|
|
188
|
+
try {
|
|
189
|
+
const address = server.address();
|
|
190
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
191
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
192
|
+
context.provide("piTools", tools);
|
|
193
|
+
context.provide("piPluginUi", panels);
|
|
194
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
195
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
196
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
197
|
+
await tool.execute("fetch", { url: `http://127.0.0.1:${address.port}/` }, undefined, undefined, {} as never);
|
|
198
|
+
const firstPanel = (await panels.snapshot())[0];
|
|
199
|
+
if (firstPanel === undefined) throw new Error("browser-fetch-panel was not registered");
|
|
200
|
+
|
|
201
|
+
(firstPanel.data as { latest: { text: string } }).latest.text = "mutated";
|
|
202
|
+
|
|
203
|
+
await expect(panels.snapshot()).resolves.toMatchObject([{ id: "browser-fetch-panel", data: { latest: { text: "original" } } }]);
|
|
204
|
+
} finally {
|
|
205
|
+
await context.fiber.dispose();
|
|
206
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
207
|
+
await rm(root, { recursive: true, force: true });
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
test("aborts a response body when the tool call is cancelled", async () => {
|
|
212
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
213
|
+
const context = new Context();
|
|
214
|
+
const tools = new PiToolRegistry();
|
|
215
|
+
let activeResponse: ServerResponse | undefined;
|
|
216
|
+
let markHeadersSent!: () => void;
|
|
217
|
+
const headersSent = new Promise<void>((resolve) => {
|
|
218
|
+
markHeadersSent = resolve;
|
|
219
|
+
});
|
|
220
|
+
const server = createServer((_request, response) => {
|
|
221
|
+
activeResponse = response;
|
|
222
|
+
response.writeHead(200, { "content-type": "text/plain" });
|
|
223
|
+
response.write("partial");
|
|
224
|
+
markHeadersSent();
|
|
225
|
+
});
|
|
226
|
+
await new Promise<void>((resolve, reject) => {
|
|
227
|
+
server.once("error", reject);
|
|
228
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
229
|
+
});
|
|
230
|
+
try {
|
|
231
|
+
const address = server.address();
|
|
232
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
233
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
234
|
+
context.provide("piTools", tools);
|
|
235
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
236
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
237
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
238
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
239
|
+
const caller = new AbortController();
|
|
240
|
+
const execution = tool.execute("fetch", { url: `http://127.0.0.1:${address.port}/` }, caller.signal, undefined, {} as never);
|
|
241
|
+
await headersSent;
|
|
242
|
+
|
|
243
|
+
caller.abort(new Error("cancelled by test"));
|
|
244
|
+
activeResponse?.end("done");
|
|
245
|
+
|
|
246
|
+
await expect(execution).rejects.toThrow(/cancelled by test/iu);
|
|
247
|
+
} finally {
|
|
248
|
+
activeResponse?.end();
|
|
249
|
+
await context.fiber.dispose();
|
|
250
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
251
|
+
await rm(root, { recursive: true, force: true });
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
test("does not start a fetch when the tool call is already cancelled", async () => {
|
|
256
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
257
|
+
const context = new Context();
|
|
258
|
+
const tools = new PiToolRegistry();
|
|
259
|
+
const originalFetch = globalThis.fetch;
|
|
260
|
+
let requests = 0;
|
|
261
|
+
globalThis.fetch = () => {
|
|
262
|
+
requests += 1;
|
|
263
|
+
return Promise.resolve(new Response("unexpected"));
|
|
264
|
+
};
|
|
265
|
+
try {
|
|
266
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
267
|
+
context.provide("piTools", tools);
|
|
268
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
269
|
+
await context.plugin(browserFetchPlugin);
|
|
270
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
271
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
272
|
+
const caller = new AbortController();
|
|
273
|
+
caller.abort(new Error("cancelled before fetch"));
|
|
274
|
+
|
|
275
|
+
await expect(tool.execute("fetch", { url: "https://1.1.1.1/" }, caller.signal, undefined, {} as never)).rejects.toThrow(/cancelled before fetch/iu);
|
|
276
|
+
expect(requests).toBe(0);
|
|
277
|
+
} finally {
|
|
278
|
+
globalThis.fetch = originalFetch;
|
|
279
|
+
await context.fiber.dispose();
|
|
280
|
+
await rm(root, { recursive: true, force: true });
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
test("times out a stalled response body", async () => {
|
|
285
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
286
|
+
const context = new Context();
|
|
287
|
+
const tools = new PiToolRegistry();
|
|
288
|
+
let activeResponse: ServerResponse | undefined;
|
|
289
|
+
let fallback: ReturnType<typeof setTimeout> | undefined;
|
|
290
|
+
const server = createServer((_request, response) => {
|
|
291
|
+
activeResponse = response;
|
|
292
|
+
response.writeHead(200, { "content-type": "text/plain" });
|
|
293
|
+
response.write("partial");
|
|
294
|
+
fallback = setTimeout(() => response.end("fallback"), 500);
|
|
295
|
+
});
|
|
296
|
+
await new Promise<void>((resolve, reject) => {
|
|
297
|
+
server.once("error", reject);
|
|
298
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
299
|
+
});
|
|
300
|
+
try {
|
|
301
|
+
const address = server.address();
|
|
302
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
303
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
304
|
+
context.provide("piTools", tools);
|
|
305
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
306
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true, timeoutMs: 100 });
|
|
307
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
308
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
309
|
+
|
|
310
|
+
await expect(tool.execute("fetch", { url: `http://127.0.0.1:${address.port}/` }, undefined, undefined, {} as never)).rejects.toThrow(
|
|
311
|
+
/timed out after 100 ms/iu,
|
|
312
|
+
);
|
|
313
|
+
} finally {
|
|
314
|
+
if (fallback !== undefined) clearTimeout(fallback);
|
|
315
|
+
activeResponse?.end();
|
|
316
|
+
await context.fiber.dispose();
|
|
317
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
318
|
+
await rm(root, { recursive: true, force: true });
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
test("aborts an in-flight fetch when the plugin is disposed", async () => {
|
|
323
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
324
|
+
const context = new Context();
|
|
325
|
+
const tools = new PiToolRegistry();
|
|
326
|
+
let activeResponse: ServerResponse | undefined;
|
|
327
|
+
let markHeadersSent!: () => void;
|
|
328
|
+
const headersSent = new Promise<void>((resolve) => {
|
|
329
|
+
markHeadersSent = resolve;
|
|
330
|
+
});
|
|
331
|
+
const server = createServer((_request, response) => {
|
|
332
|
+
activeResponse = response;
|
|
333
|
+
response.writeHead(200, { "content-type": "text/plain" });
|
|
334
|
+
response.write("partial");
|
|
335
|
+
markHeadersSent();
|
|
336
|
+
});
|
|
337
|
+
await new Promise<void>((resolve, reject) => {
|
|
338
|
+
server.once("error", reject);
|
|
339
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
340
|
+
});
|
|
341
|
+
try {
|
|
342
|
+
const address = server.address();
|
|
343
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
344
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
345
|
+
context.provide("piTools", tools);
|
|
346
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
347
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
348
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
349
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
350
|
+
const execution = tool.execute("fetch", { url: `http://127.0.0.1:${address.port}/` }, undefined, undefined, {} as never);
|
|
351
|
+
await headersSent;
|
|
352
|
+
|
|
353
|
+
await context.fiber.dispose();
|
|
354
|
+
activeResponse?.end("done");
|
|
355
|
+
|
|
356
|
+
await expect(execution).rejects.toThrow(/disposed/iu);
|
|
357
|
+
} finally {
|
|
358
|
+
activeResponse?.end();
|
|
359
|
+
await context.fiber.dispose();
|
|
360
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
361
|
+
await rm(root, { recursive: true, force: true });
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
test("rejects non-public IPv6 literal ranges before fetching", async () => {
|
|
366
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
367
|
+
const context = new Context();
|
|
368
|
+
const tools = new PiToolRegistry();
|
|
369
|
+
try {
|
|
370
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
371
|
+
context.provide("piTools", tools);
|
|
372
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
373
|
+
await context.plugin(browserFetchPlugin, { timeoutMs: 100 });
|
|
374
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
375
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
376
|
+
|
|
377
|
+
for (const url of [
|
|
378
|
+
"http://[::]/",
|
|
379
|
+
"http://[ff02::1]/",
|
|
380
|
+
"http://[::ffff:7f00:1]/",
|
|
381
|
+
"http://[100:0:0:1::1]/",
|
|
382
|
+
"http://[2001:100::1]/",
|
|
383
|
+
"http://[2001:db8::1]/",
|
|
384
|
+
"http://[2002:7f00:1::]/",
|
|
385
|
+
"http://[3fff::1]/",
|
|
386
|
+
"http://[4000::1]/",
|
|
387
|
+
"http://[5f00::1]/",
|
|
388
|
+
]) {
|
|
389
|
+
await expect(tool.execute("fetch", { url }, undefined, undefined, {} as never)).rejects.toThrow(/private or local network/iu);
|
|
390
|
+
}
|
|
391
|
+
} finally {
|
|
392
|
+
await context.fiber.dispose();
|
|
393
|
+
await rm(root, { recursive: true, force: true });
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
test("allows globally reachable IPv6 special-purpose ranges", async () => {
|
|
398
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
399
|
+
const context = new Context();
|
|
400
|
+
const tools = new PiToolRegistry();
|
|
401
|
+
const originalFetch = globalThis.fetch;
|
|
402
|
+
globalThis.fetch = () => Promise.resolve(new Response("public"));
|
|
403
|
+
try {
|
|
404
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
405
|
+
context.provide("piTools", tools);
|
|
406
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
407
|
+
await context.plugin(browserFetchPlugin);
|
|
408
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
409
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
410
|
+
|
|
411
|
+
for (const url of ["http://[2001:1::1]/", "http://[2001:3::1]/", "http://[2001:4:112::1]/", "http://[2001:20::1]/", "http://[2001:30::1]/"]) {
|
|
412
|
+
await expect(tool.execute("fetch", { url }, undefined, undefined, {} as never)).resolves.toMatchObject({ details: { text: "public" } });
|
|
413
|
+
}
|
|
414
|
+
} finally {
|
|
415
|
+
globalThis.fetch = originalFetch;
|
|
416
|
+
await context.fiber.dispose();
|
|
417
|
+
await rm(root, { recursive: true, force: true });
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
test("rejects non-public IPv4 literal ranges before fetching", async () => {
|
|
422
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
423
|
+
const context = new Context();
|
|
424
|
+
const tools = new PiToolRegistry();
|
|
425
|
+
try {
|
|
426
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
427
|
+
context.provide("piTools", tools);
|
|
428
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
429
|
+
await context.plugin(browserFetchPlugin);
|
|
430
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
431
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
432
|
+
|
|
433
|
+
for (const address of ["0.0.0.0", "100.64.0.1", "192.0.2.1", "198.51.100.1", "203.0.113.1", "224.0.0.1"]) {
|
|
434
|
+
await expect(tool.execute("fetch", { url: `http://${address}/` }, undefined, undefined, {} as never)).rejects.toThrow(/private or local network/iu);
|
|
435
|
+
}
|
|
436
|
+
} finally {
|
|
437
|
+
await context.fiber.dispose();
|
|
438
|
+
await rm(root, { recursive: true, force: true });
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
test("allows globally reachable IPv4 special-purpose ranges", async () => {
|
|
443
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
444
|
+
const context = new Context();
|
|
445
|
+
const tools = new PiToolRegistry();
|
|
446
|
+
const originalFetch = globalThis.fetch;
|
|
447
|
+
globalThis.fetch = () => Promise.resolve(new Response("public"));
|
|
448
|
+
try {
|
|
449
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
450
|
+
context.provide("piTools", tools);
|
|
451
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
452
|
+
await context.plugin(browserFetchPlugin);
|
|
453
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
454
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
455
|
+
|
|
456
|
+
for (const url of ["http://192.0.0.9/", "http://192.0.0.10/"]) {
|
|
457
|
+
await expect(tool.execute("fetch", { url }, undefined, undefined, {} as never)).resolves.toMatchObject({ details: { text: "public" } });
|
|
458
|
+
}
|
|
459
|
+
} finally {
|
|
460
|
+
globalThis.fetch = originalFetch;
|
|
461
|
+
await context.fiber.dispose();
|
|
462
|
+
await rm(root, { recursive: true, force: true });
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
test("rejects invalid URL protocols, credentials, and lengths", async () => {
|
|
467
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
468
|
+
const context = new Context();
|
|
469
|
+
const tools = new PiToolRegistry();
|
|
470
|
+
try {
|
|
471
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
472
|
+
context.provide("piTools", tools);
|
|
473
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
474
|
+
await context.plugin(browserFetchPlugin);
|
|
475
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
476
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
477
|
+
|
|
478
|
+
await expect(tool.execute("empty", { url: "" }, undefined, undefined, {} as never)).rejects.toThrow(/between 1 and 4096/iu);
|
|
479
|
+
await expect(tool.execute("long", { url: "x".repeat(4_097) }, undefined, undefined, {} as never)).rejects.toThrow(/between 1 and 4096/iu);
|
|
480
|
+
await expect(tool.execute("protocol", { url: "file:///etc/passwd" }, undefined, undefined, {} as never)).rejects.toThrow(/http and https/iu);
|
|
481
|
+
await expect(tool.execute("credentials", { url: "https://user:secret@example.com/" }, undefined, undefined, {} as never)).rejects.toThrow(
|
|
482
|
+
/must not contain credentials/iu,
|
|
483
|
+
);
|
|
484
|
+
} finally {
|
|
485
|
+
await context.fiber.dispose();
|
|
486
|
+
await rm(root, { recursive: true, force: true });
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
test("blocks a redirect to a private target before making the next request", async () => {
|
|
491
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
492
|
+
const context = new Context();
|
|
493
|
+
const tools = new PiToolRegistry();
|
|
494
|
+
const originalFetch = globalThis.fetch;
|
|
495
|
+
let requests = 0;
|
|
496
|
+
let cancelled = false;
|
|
497
|
+
globalThis.fetch = () => {
|
|
498
|
+
requests += 1;
|
|
499
|
+
return Promise.resolve(
|
|
500
|
+
new Response(
|
|
501
|
+
new ReadableStream({
|
|
502
|
+
cancel() {
|
|
503
|
+
cancelled = true;
|
|
504
|
+
},
|
|
505
|
+
}),
|
|
506
|
+
{ status: 302, headers: { location: "http://127.0.0.1/private" } },
|
|
507
|
+
),
|
|
508
|
+
);
|
|
509
|
+
};
|
|
510
|
+
try {
|
|
511
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
512
|
+
context.provide("piTools", tools);
|
|
513
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
514
|
+
await context.plugin(browserFetchPlugin);
|
|
515
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
516
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
517
|
+
|
|
518
|
+
await expect(tool.execute("fetch", { url: "https://1.1.1.1/start" }, undefined, undefined, {} as never)).rejects.toThrow(/private or local network/iu);
|
|
519
|
+
expect(requests).toBe(1);
|
|
520
|
+
expect(cancelled).toBe(true);
|
|
521
|
+
} finally {
|
|
522
|
+
globalThis.fetch = originalFetch;
|
|
523
|
+
await context.fiber.dispose();
|
|
524
|
+
await rm(root, { recursive: true, force: true });
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
test("returns non-redirect 3xx responses without requiring a Location header", async () => {
|
|
529
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
530
|
+
const context = new Context();
|
|
531
|
+
const tools = new PiToolRegistry();
|
|
532
|
+
const originalFetch = globalThis.fetch;
|
|
533
|
+
globalThis.fetch = () => Promise.resolve(new Response(null, { status: 304 }));
|
|
534
|
+
try {
|
|
535
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
536
|
+
context.provide("piTools", tools);
|
|
537
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
538
|
+
await context.plugin(browserFetchPlugin);
|
|
539
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
540
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
541
|
+
|
|
542
|
+
await expect(tool.execute("not-modified", { url: "https://1.1.1.1/page" }, undefined, undefined, {} as never)).resolves.toMatchObject({
|
|
543
|
+
details: { status: 304, text: "", truncated: false },
|
|
544
|
+
});
|
|
545
|
+
} finally {
|
|
546
|
+
globalThis.fetch = originalFetch;
|
|
547
|
+
await context.fiber.dispose();
|
|
548
|
+
await rm(root, { recursive: true, force: true });
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
test("rejects and cancels non-text response bodies", async () => {
|
|
553
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
554
|
+
const context = new Context();
|
|
555
|
+
const tools = new PiToolRegistry();
|
|
556
|
+
const originalFetch = globalThis.fetch;
|
|
557
|
+
let cancelled = false;
|
|
558
|
+
let sent = false;
|
|
559
|
+
globalThis.fetch = () =>
|
|
560
|
+
Promise.resolve(
|
|
561
|
+
new Response(
|
|
562
|
+
new ReadableStream({
|
|
563
|
+
pull(controller) {
|
|
564
|
+
if (sent) return;
|
|
565
|
+
sent = true;
|
|
566
|
+
controller.enqueue(new Uint8Array([0, 1, 2, 3]));
|
|
567
|
+
controller.close();
|
|
568
|
+
},
|
|
569
|
+
cancel() {
|
|
570
|
+
cancelled = true;
|
|
571
|
+
},
|
|
572
|
+
}),
|
|
573
|
+
{ headers: { "content-type": "application/octet-stream" } },
|
|
574
|
+
),
|
|
575
|
+
);
|
|
576
|
+
try {
|
|
577
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
578
|
+
context.provide("piTools", tools);
|
|
579
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
580
|
+
await context.plugin(browserFetchPlugin);
|
|
581
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
582
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
583
|
+
|
|
584
|
+
await expect(tool.execute("binary", { url: "https://1.1.1.1/archive" }, undefined, undefined, {} as never)).rejects.toThrow(
|
|
585
|
+
/unsupported content type.*application\/octet-stream/iu,
|
|
586
|
+
);
|
|
587
|
+
expect(cancelled).toBe(true);
|
|
588
|
+
} finally {
|
|
589
|
+
globalThis.fetch = originalFetch;
|
|
590
|
+
await context.fiber.dispose();
|
|
591
|
+
await rm(root, { recursive: true, force: true });
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
|
|
595
|
+
test("rejects text responses with invalid UTF-8 instead of replacing bytes", async () => {
|
|
596
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
597
|
+
const context = new Context();
|
|
598
|
+
const tools = new PiToolRegistry();
|
|
599
|
+
const originalFetch = globalThis.fetch;
|
|
600
|
+
globalThis.fetch = () =>
|
|
601
|
+
Promise.resolve(
|
|
602
|
+
new Response(new Uint8Array([0xc3, 0x28]), {
|
|
603
|
+
headers: { "content-type": "text/plain; charset=utf-8" },
|
|
604
|
+
}),
|
|
605
|
+
);
|
|
606
|
+
try {
|
|
607
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
608
|
+
context.provide("piTools", tools);
|
|
609
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
610
|
+
await context.plugin(browserFetchPlugin);
|
|
611
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
612
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
613
|
+
|
|
614
|
+
await expect(tool.execute("invalid-utf8", { url: "https://1.1.1.1/page" }, undefined, undefined, {} as never)).rejects.toThrow(/not valid utf-8/iu);
|
|
615
|
+
} finally {
|
|
616
|
+
globalThis.fetch = originalFetch;
|
|
617
|
+
await context.fiber.dispose();
|
|
618
|
+
await rm(root, { recursive: true, force: true });
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
test("cancels a redirect response body when the Location header is missing", async () => {
|
|
623
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
624
|
+
const context = new Context();
|
|
625
|
+
const tools = new PiToolRegistry();
|
|
626
|
+
const originalFetch = globalThis.fetch;
|
|
627
|
+
let cancelled = false;
|
|
628
|
+
globalThis.fetch = () =>
|
|
629
|
+
Promise.resolve(
|
|
630
|
+
new Response(
|
|
631
|
+
new ReadableStream({
|
|
632
|
+
cancel() {
|
|
633
|
+
cancelled = true;
|
|
634
|
+
},
|
|
635
|
+
}),
|
|
636
|
+
{ status: 302 },
|
|
637
|
+
),
|
|
638
|
+
);
|
|
639
|
+
try {
|
|
640
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
641
|
+
context.provide("piTools", tools);
|
|
642
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
643
|
+
await context.plugin(browserFetchPlugin);
|
|
644
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
645
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
646
|
+
|
|
647
|
+
await expect(tool.execute("fetch", { url: "https://1.1.1.1/start" }, undefined, undefined, {} as never)).rejects.toThrow(/no Location header/iu);
|
|
648
|
+
expect(cancelled).toBe(true);
|
|
649
|
+
} finally {
|
|
650
|
+
globalThis.fetch = originalFetch;
|
|
651
|
+
await context.fiber.dispose();
|
|
652
|
+
await rm(root, { recursive: true, force: true });
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
test("follows relative redirects and enforces the redirect limit", async () => {
|
|
657
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
658
|
+
const context = new Context();
|
|
659
|
+
const tools = new PiToolRegistry();
|
|
660
|
+
const originalFetch = globalThis.fetch;
|
|
661
|
+
const requestedUrls: string[] = [];
|
|
662
|
+
let redirectBodiesCancelled = 0;
|
|
663
|
+
globalThis.fetch = (input) => {
|
|
664
|
+
const url = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
|
|
665
|
+
requestedUrls.push(url);
|
|
666
|
+
if (url.endsWith("/start")) {
|
|
667
|
+
return Promise.resolve(
|
|
668
|
+
new Response(
|
|
669
|
+
new ReadableStream({
|
|
670
|
+
cancel() {
|
|
671
|
+
redirectBodiesCancelled += 1;
|
|
672
|
+
},
|
|
673
|
+
}),
|
|
674
|
+
{ status: 302, headers: { location: "/next" } },
|
|
675
|
+
),
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
if (url.endsWith("/next")) return Promise.resolve(new Response("done", { status: 200, headers: { "content-type": "text/plain" } }));
|
|
679
|
+
return Promise.resolve(
|
|
680
|
+
new Response(
|
|
681
|
+
new ReadableStream({
|
|
682
|
+
cancel() {
|
|
683
|
+
redirectBodiesCancelled += 1;
|
|
684
|
+
},
|
|
685
|
+
}),
|
|
686
|
+
{ status: 302, headers: { location: "/loop" } },
|
|
687
|
+
),
|
|
688
|
+
);
|
|
689
|
+
};
|
|
690
|
+
try {
|
|
691
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
692
|
+
context.provide("piTools", tools);
|
|
693
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
694
|
+
await context.plugin(browserFetchPlugin);
|
|
695
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
696
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
697
|
+
|
|
698
|
+
await expect(tool.execute("relative", { url: "https://1.1.1.1/start" }, undefined, undefined, {} as never)).resolves.toMatchObject({
|
|
699
|
+
details: { finalUrl: "https://1.1.1.1/next", text: "done" },
|
|
700
|
+
});
|
|
701
|
+
await expect(tool.execute("limit", { url: "https://1.1.1.1/loop" }, undefined, undefined, {} as never)).rejects.toThrow(
|
|
702
|
+
/exceeded the 3-redirect limit/iu,
|
|
703
|
+
);
|
|
704
|
+
expect(requestedUrls).toEqual([
|
|
705
|
+
"https://1.1.1.1/start",
|
|
706
|
+
"https://1.1.1.1/next",
|
|
707
|
+
"https://1.1.1.1/loop",
|
|
708
|
+
"https://1.1.1.1/loop",
|
|
709
|
+
"https://1.1.1.1/loop",
|
|
710
|
+
"https://1.1.1.1/loop",
|
|
711
|
+
]);
|
|
712
|
+
expect(redirectBodiesCancelled).toBe(5);
|
|
713
|
+
} finally {
|
|
714
|
+
globalThis.fetch = originalFetch;
|
|
715
|
+
await context.fiber.dispose();
|
|
716
|
+
await rm(root, { recursive: true, force: true });
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
test("enforces the response byte limit at its exact boundary", async () => {
|
|
721
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
722
|
+
const context = new Context();
|
|
723
|
+
const tools = new PiToolRegistry();
|
|
724
|
+
const server = createServer((request, response) => {
|
|
725
|
+
response.writeHead(200, { "content-type": "text/plain; charset=utf-8" });
|
|
726
|
+
response.end(Buffer.alloc(request.url === "/exact" ? 512 * 1024 : 512 * 1024 + 1, 0x61));
|
|
727
|
+
});
|
|
728
|
+
await new Promise<void>((resolve, reject) => {
|
|
729
|
+
server.once("error", reject);
|
|
730
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
731
|
+
});
|
|
732
|
+
try {
|
|
733
|
+
const address = server.address();
|
|
734
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
735
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
736
|
+
context.provide("piTools", tools);
|
|
737
|
+
context.provide("piPluginUi", new PiPluginUiRegistry());
|
|
738
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
739
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
740
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
741
|
+
|
|
742
|
+
await expect(tool.execute("exact", { url: `http://127.0.0.1:${address.port}/exact` }, undefined, undefined, {} as never)).resolves.toMatchObject({
|
|
743
|
+
details: { bytes: 512 * 1024, contentType: "text/plain", truncated: false },
|
|
744
|
+
});
|
|
745
|
+
const oversized = await tool.execute("oversized", { url: `http://127.0.0.1:${address.port}/oversized` }, undefined, undefined, {} as never);
|
|
746
|
+
expect(oversized.details).toMatchObject({ bytes: 512 * 1024, contentType: "text/plain", truncated: true });
|
|
747
|
+
expect((oversized.details as { text: string }).text).toHaveLength(512 * 1024);
|
|
748
|
+
} finally {
|
|
749
|
+
await context.fiber.dispose();
|
|
750
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
751
|
+
await rm(root, { recursive: true, force: true });
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
test("publishes a bounded text preview to the plugin panel", async () => {
|
|
756
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
757
|
+
const context = new Context();
|
|
758
|
+
const tools = new PiToolRegistry();
|
|
759
|
+
const panels = new PiPluginUiRegistry();
|
|
760
|
+
const server = createServer((_request, response) => {
|
|
761
|
+
response.writeHead(200, { "content-type": "text/plain" });
|
|
762
|
+
response.end("x".repeat(12_001));
|
|
763
|
+
});
|
|
764
|
+
await new Promise<void>((resolve, reject) => {
|
|
765
|
+
server.once("error", reject);
|
|
766
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
767
|
+
});
|
|
768
|
+
try {
|
|
769
|
+
const address = server.address();
|
|
770
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
771
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
772
|
+
context.provide("piTools", tools);
|
|
773
|
+
context.provide("piPluginUi", panels);
|
|
774
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
775
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
776
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
777
|
+
|
|
778
|
+
const result = await tool.execute("panel-preview", { url: `http://127.0.0.1:${address.port}/` }, undefined, undefined, {} as never);
|
|
779
|
+
expect((result.details as { text: string }).text).toHaveLength(12_001);
|
|
780
|
+
const snapshot = await panels.snapshot();
|
|
781
|
+
expect((snapshot[0]?.data as { latest: { text: string } }).latest.text).toHaveLength(12_000);
|
|
782
|
+
expect(snapshot).toMatchObject([{ data: { latest: { previewTruncated: true }, maxPanelTextChars: 12_000 } }]);
|
|
783
|
+
} finally {
|
|
784
|
+
await context.fiber.dispose();
|
|
785
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
786
|
+
await rm(root, { recursive: true, force: true });
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
test("preserves the last successful result when a later fetch fails", async () => {
|
|
791
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
792
|
+
const context = new Context();
|
|
793
|
+
const tools = new PiToolRegistry();
|
|
794
|
+
const panels = new PiPluginUiRegistry();
|
|
795
|
+
const server = createServer((_request, response) => response.end("original"));
|
|
796
|
+
await new Promise<void>((resolve, reject) => {
|
|
797
|
+
server.once("error", reject);
|
|
798
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
799
|
+
});
|
|
800
|
+
try {
|
|
801
|
+
const address = server.address();
|
|
802
|
+
if (address === null || typeof address === "string") throw new Error("Browser fetch test server did not bind to a port");
|
|
803
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
804
|
+
context.provide("piTools", tools);
|
|
805
|
+
context.provide("piPluginUi", panels);
|
|
806
|
+
await context.plugin(browserFetchPlugin, { allowPrivate: true });
|
|
807
|
+
const tool = tools.snapshot().customTools.find((candidate) => candidate.name === "browser_fetch");
|
|
808
|
+
if (tool === undefined) throw new Error("browser_fetch was not registered");
|
|
809
|
+
await tool.execute("success", { url: `http://127.0.0.1:${address.port}/` }, undefined, undefined, {} as never);
|
|
810
|
+
|
|
811
|
+
await expect(tool.execute("failure", { url: "file:///etc/passwd" }, undefined, undefined, {} as never)).rejects.toThrow(/http and https/iu);
|
|
812
|
+
await expect(panels.snapshot()).resolves.toMatchObject([{ id: "browser-fetch-panel", data: { latest: { text: "original" } } }]);
|
|
813
|
+
} finally {
|
|
814
|
+
await context.fiber.dispose();
|
|
815
|
+
await new Promise<void>((resolve, reject) => server.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
816
|
+
await rm(root, { recursive: true, force: true });
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
|
|
820
|
+
test("unregisters its tool and panel on disposal", async () => {
|
|
821
|
+
const root = await mkdtemp(join(tmpdir(), "pi-harness-browser-fetch-"));
|
|
822
|
+
const context = new Context();
|
|
823
|
+
const tools = new PiToolRegistry();
|
|
824
|
+
const panels = new PiPluginUiRegistry();
|
|
825
|
+
try {
|
|
826
|
+
provideLaunchContext(context, { cwd: root, agentDir: root, args: [], requestExit() {} });
|
|
827
|
+
context.provide("piTools", tools);
|
|
828
|
+
context.provide("piPluginUi", panels);
|
|
829
|
+
await context.plugin(browserFetchPlugin);
|
|
830
|
+
expect(tools.snapshot().customTools.map((tool) => tool.name)).toEqual(["browser_fetch"]);
|
|
831
|
+
await expect(panels.snapshot()).resolves.toMatchObject([
|
|
832
|
+
{ id: "browser-fetch-panel", data: { latest: null, allowPrivate: false, maxResponseBytes: 512 * 1024, timeoutMs: 20_000 } },
|
|
833
|
+
]);
|
|
834
|
+
|
|
835
|
+
await context.fiber.dispose();
|
|
836
|
+
|
|
837
|
+
expect(tools.snapshot().customTools).toEqual([]);
|
|
838
|
+
await expect(panels.snapshot()).resolves.toEqual([]);
|
|
839
|
+
} finally {
|
|
840
|
+
await context.fiber.dispose();
|
|
841
|
+
await rm(root, { recursive: true, force: true });
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
});
|