@vibesdotdev/external 0.0.0-stage → 1.0.0-rc.0
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/LICENSE +18 -0
- package/README.md +68 -2
- package/REFERENCE.md +217 -0
- package/dist/acp/index.d.ts +28 -0
- package/dist/acp/index.d.ts.map +1 -0
- package/dist/acp/index.js +31 -0
- package/dist/acp/index.js.map +1 -0
- package/dist/ambient/agent-roster-heartbeat.d.ts +67 -0
- package/dist/ambient/agent-roster-heartbeat.d.ts.map +1 -0
- package/dist/ambient/agent-roster-heartbeat.js +257 -0
- package/dist/ambient/agent-roster-heartbeat.js.map +1 -0
- package/dist/ambient/attempt.d.ts +19 -0
- package/dist/ambient/attempt.d.ts.map +1 -0
- package/dist/ambient/attempt.js +39 -0
- package/dist/ambient/attempt.js.map +1 -0
- package/dist/ambient/cloud-agent-roster-provider.impl.d.ts +13 -0
- package/dist/ambient/cloud-agent-roster-provider.impl.d.ts.map +1 -0
- package/dist/ambient/cloud-agent-roster-provider.impl.js +71 -0
- package/dist/ambient/cloud-agent-roster-provider.impl.js.map +1 -0
- package/dist/ambient/cloud-authenticated-json.d.ts +69 -0
- package/dist/ambient/cloud-authenticated-json.d.ts.map +1 -0
- package/dist/ambient/cloud-authenticated-json.js +108 -0
- package/dist/ambient/cloud-authenticated-json.js.map +1 -0
- package/dist/ambient/cloud-touch-projection.impl.d.ts +74 -0
- package/dist/ambient/cloud-touch-projection.impl.d.ts.map +1 -0
- package/dist/ambient/cloud-touch-projection.impl.js +225 -0
- package/dist/ambient/cloud-touch-projection.impl.js.map +1 -0
- package/dist/ambient/collaboration-settings.d.ts +50 -0
- package/dist/ambient/collaboration-settings.d.ts.map +1 -0
- package/dist/ambient/collaboration-settings.js +57 -0
- package/dist/ambient/collaboration-settings.js.map +1 -0
- package/dist/ambient/collision-notice.d.ts +41 -0
- package/dist/ambient/collision-notice.d.ts.map +1 -0
- package/dist/ambient/collision-notice.js +104 -0
- package/dist/ambient/collision-notice.js.map +1 -0
- package/dist/ambient/default-collision-filter.impl.d.ts +19 -0
- package/dist/ambient/default-collision-filter.impl.d.ts.map +1 -0
- package/dist/ambient/default-collision-filter.impl.js +53 -0
- package/dist/ambient/default-collision-filter.impl.js.map +1 -0
- package/dist/ambient/default-notice-formatter.impl.d.ts +4 -0
- package/dist/ambient/default-notice-formatter.impl.d.ts.map +1 -0
- package/dist/ambient/default-notice-formatter.impl.js +38 -0
- package/dist/ambient/default-notice-formatter.impl.js.map +1 -0
- package/dist/ambient/file-access-ambient-drain.impl.d.ts +21 -0
- package/dist/ambient/file-access-ambient-drain.impl.d.ts.map +1 -0
- package/dist/ambient/file-access-ambient-drain.impl.js +53 -0
- package/dist/ambient/file-access-ambient-drain.impl.js.map +1 -0
- package/dist/ambient/file-access-ambient-drain.subscription.descriptor.d.ts +27 -0
- package/dist/ambient/file-access-ambient-drain.subscription.descriptor.d.ts.map +1 -0
- package/dist/ambient/file-access-ambient-drain.subscription.descriptor.js +27 -0
- package/dist/ambient/file-access-ambient-drain.subscription.descriptor.js.map +1 -0
- package/dist/ambient/file-access-ambient-fs.impl.d.ts +45 -0
- package/dist/ambient/file-access-ambient-fs.impl.d.ts.map +1 -0
- package/dist/ambient/file-access-ambient-fs.impl.js +243 -0
- package/dist/ambient/file-access-ambient-fs.impl.js.map +1 -0
- package/dist/ambient/file-access-ambient-fs.subscription.descriptor.d.ts +32 -0
- package/dist/ambient/file-access-ambient-fs.subscription.descriptor.d.ts.map +1 -0
- package/dist/ambient/file-access-ambient-fs.subscription.descriptor.js +39 -0
- package/dist/ambient/file-access-ambient-fs.subscription.descriptor.js.map +1 -0
- package/dist/ambient/file-access-ambient.impl.d.ts +32 -0
- package/dist/ambient/file-access-ambient.impl.d.ts.map +1 -0
- package/dist/ambient/file-access-ambient.impl.js +231 -0
- package/dist/ambient/file-access-ambient.impl.js.map +1 -0
- package/dist/ambient/file-access-ambient.subscription.descriptor.d.ts +31 -0
- package/dist/ambient/file-access-ambient.subscription.descriptor.d.ts.map +1 -0
- package/dist/ambient/file-access-ambient.subscription.descriptor.js +31 -0
- package/dist/ambient/file-access-ambient.subscription.descriptor.js.map +1 -0
- package/dist/ambient/file-access-shared.d.ts +48 -0
- package/dist/ambient/file-access-shared.d.ts.map +1 -0
- package/dist/ambient/file-access-shared.js +59 -0
- package/dist/ambient/file-access-shared.js.map +1 -0
- package/dist/ambient/message-transport.impl.d.ts +47 -0
- package/dist/ambient/message-transport.impl.d.ts.map +1 -0
- package/dist/ambient/message-transport.impl.js +300 -0
- package/dist/ambient/message-transport.impl.js.map +1 -0
- package/dist/ambient/pending-notices.d.ts +11 -0
- package/dist/ambient/pending-notices.d.ts.map +1 -0
- package/dist/ambient/pending-notices.js +24 -0
- package/dist/ambient/pending-notices.js.map +1 -0
- package/dist/ambient/subsystem-overlap.impl.d.ts +60 -0
- package/dist/ambient/subsystem-overlap.impl.d.ts.map +1 -0
- package/dist/ambient/subsystem-overlap.impl.js +127 -0
- package/dist/ambient/subsystem-overlap.impl.js.map +1 -0
- package/dist/cli/dev.external.hooks-install.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.hooks-install.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks-install.descriptor.js +27 -0
- package/dist/cli/dev.external.hooks-install.descriptor.js.map +1 -0
- package/dist/cli/dev.external.hooks-install.impl.d.ts +9 -0
- package/dist/cli/dev.external.hooks-install.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks-install.impl.js +57 -0
- package/dist/cli/dev.external.hooks-install.impl.js.map +1 -0
- package/dist/cli/dev.external.hooks-list.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.hooks-list.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks-list.descriptor.js +16 -0
- package/dist/cli/dev.external.hooks-list.descriptor.js.map +1 -0
- package/dist/cli/dev.external.hooks-list.impl.d.ts +3 -0
- package/dist/cli/dev.external.hooks-list.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks-list.impl.js +68 -0
- package/dist/cli/dev.external.hooks-list.impl.js.map +1 -0
- package/dist/cli/dev.external.hooks-uninstall.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.hooks-uninstall.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks-uninstall.descriptor.js +30 -0
- package/dist/cli/dev.external.hooks-uninstall.descriptor.js.map +1 -0
- package/dist/cli/dev.external.hooks-uninstall.impl.d.ts +9 -0
- package/dist/cli/dev.external.hooks-uninstall.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks-uninstall.impl.js +59 -0
- package/dist/cli/dev.external.hooks-uninstall.impl.js.map +1 -0
- package/dist/cli/dev.external.hooks.call.descriptor.d.ts +12 -0
- package/dist/cli/dev.external.hooks.call.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks.call.descriptor.js +51 -0
- package/dist/cli/dev.external.hooks.call.descriptor.js.map +1 -0
- package/dist/cli/dev.external.hooks.call.impl.d.ts +6 -0
- package/dist/cli/dev.external.hooks.call.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks.call.impl.js +162 -0
- package/dist/cli/dev.external.hooks.call.impl.js.map +1 -0
- package/dist/cli/dev.external.hooks.descriptor.d.ts +9 -0
- package/dist/cli/dev.external.hooks.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.hooks.descriptor.js +17 -0
- package/dist/cli/dev.external.hooks.descriptor.js.map +1 -0
- package/dist/cli/dev.external.launch.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.launch.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.launch.descriptor.js +31 -0
- package/dist/cli/dev.external.launch.descriptor.js.map +1 -0
- package/dist/cli/dev.external.launch.impl.d.ts +17 -0
- package/dist/cli/dev.external.launch.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.launch.impl.js +137 -0
- package/dist/cli/dev.external.launch.impl.js.map +1 -0
- package/dist/cli/dev.external.presets-apply.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.presets-apply.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.presets-apply.descriptor.js +36 -0
- package/dist/cli/dev.external.presets-apply.descriptor.js.map +1 -0
- package/dist/cli/dev.external.presets-apply.impl.d.ts +3 -0
- package/dist/cli/dev.external.presets-apply.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.presets-apply.impl.js +119 -0
- package/dist/cli/dev.external.presets-apply.impl.js.map +1 -0
- package/dist/cli/dev.external.presets-list.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.presets-list.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.presets-list.descriptor.js +21 -0
- package/dist/cli/dev.external.presets-list.descriptor.js.map +1 -0
- package/dist/cli/dev.external.presets-list.impl.d.ts +3 -0
- package/dist/cli/dev.external.presets-list.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.presets-list.impl.js +33 -0
- package/dist/cli/dev.external.presets-list.impl.js.map +1 -0
- package/dist/cli/dev.external.presets-show.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.presets-show.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.presets-show.descriptor.js +29 -0
- package/dist/cli/dev.external.presets-show.descriptor.js.map +1 -0
- package/dist/cli/dev.external.presets-show.impl.d.ts +7 -0
- package/dist/cli/dev.external.presets-show.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.presets-show.impl.js +39 -0
- package/dist/cli/dev.external.presets-show.impl.js.map +1 -0
- package/dist/cli/dev.external.presets.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.presets.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.presets.descriptor.js +15 -0
- package/dist/cli/dev.external.presets.descriptor.js.map +1 -0
- package/dist/cli/dev.external.setup.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.setup.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.setup.descriptor.js +29 -0
- package/dist/cli/dev.external.setup.descriptor.js.map +1 -0
- package/dist/cli/dev.external.setup.impl.d.ts +3 -0
- package/dist/cli/dev.external.setup.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.setup.impl.js +129 -0
- package/dist/cli/dev.external.setup.impl.js.map +1 -0
- package/dist/cli/dev.external.skills-generate.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.skills-generate.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.skills-generate.descriptor.js +43 -0
- package/dist/cli/dev.external.skills-generate.descriptor.js.map +1 -0
- package/dist/cli/dev.external.skills-generate.impl.consumer.d.ts +3 -0
- package/dist/cli/dev.external.skills-generate.impl.consumer.d.ts.map +1 -0
- package/dist/cli/dev.external.skills-generate.impl.consumer.js +140 -0
- package/dist/cli/dev.external.skills-generate.impl.consumer.js.map +1 -0
- package/dist/cli/dev.external.skills.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.skills.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.skills.descriptor.js +15 -0
- package/dist/cli/dev.external.skills.descriptor.js.map +1 -0
- package/dist/cli/dev.external.status.descriptor.d.ts +7 -0
- package/dist/cli/dev.external.status.descriptor.d.ts.map +1 -0
- package/dist/cli/dev.external.status.descriptor.js +16 -0
- package/dist/cli/dev.external.status.descriptor.js.map +1 -0
- package/dist/cli/dev.external.status.impl.d.ts +24 -0
- package/dist/cli/dev.external.status.impl.d.ts.map +1 -0
- package/dist/cli/dev.external.status.impl.js +165 -0
- package/dist/cli/dev.external.status.impl.js.map +1 -0
- package/dist/cli/launch/launch.cli-group.descriptor.d.ts +4 -0
- package/dist/cli/launch/launch.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/launch/launch.cli-group.descriptor.js +12 -0
- package/dist/cli/launch/launch.cli-group.descriptor.js.map +1 -0
- package/dist/cli/launch/launch.harness.impl.consumer.d.ts +6 -0
- package/dist/cli/launch/launch.harness.impl.consumer.d.ts.map +1 -0
- package/dist/cli/launch/launch.harness.impl.consumer.js +55 -0
- package/dist/cli/launch/launch.harness.impl.consumer.js.map +1 -0
- package/dist/cli/launch/launch.list.descriptor.d.ts +4 -0
- package/dist/cli/launch/launch.list.descriptor.d.ts.map +1 -0
- package/dist/cli/launch/launch.list.descriptor.js +13 -0
- package/dist/cli/launch/launch.list.descriptor.js.map +1 -0
- package/dist/cli/launch/launch.list.impl.consumer.d.ts +7 -0
- package/dist/cli/launch/launch.list.impl.consumer.d.ts.map +1 -0
- package/dist/cli/launch/launch.list.impl.consumer.js +26 -0
- package/dist/cli/launch/launch.list.impl.consumer.js.map +1 -0
- package/dist/cli/launch/launch.logs.descriptor.d.ts +4 -0
- package/dist/cli/launch/launch.logs.descriptor.d.ts.map +1 -0
- package/dist/cli/launch/launch.logs.descriptor.js +30 -0
- package/dist/cli/launch/launch.logs.descriptor.js.map +1 -0
- package/dist/cli/launch/launch.logs.impl.consumer.d.ts +7 -0
- package/dist/cli/launch/launch.logs.impl.consumer.d.ts.map +1 -0
- package/dist/cli/launch/launch.logs.impl.consumer.js +78 -0
- package/dist/cli/launch/launch.logs.impl.consumer.js.map +1 -0
- package/dist/cli/launch/launch.status.descriptor.d.ts +4 -0
- package/dist/cli/launch/launch.status.descriptor.d.ts.map +1 -0
- package/dist/cli/launch/launch.status.descriptor.js +21 -0
- package/dist/cli/launch/launch.status.descriptor.js.map +1 -0
- package/dist/cli/launch/launch.status.impl.consumer.d.ts +7 -0
- package/dist/cli/launch/launch.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/launch/launch.status.impl.consumer.js +69 -0
- package/dist/cli/launch/launch.status.impl.consumer.js.map +1 -0
- package/dist/cli/plugin.d.ts +4 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +76 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/runtime-projection.d.ts +34 -0
- package/dist/cli/runtime-projection.d.ts.map +1 -0
- package/dist/cli/runtime-projection.js +272 -0
- package/dist/cli/runtime-projection.js.map +1 -0
- package/dist/cli/stdio.d.ts +15 -0
- package/dist/cli/stdio.d.ts.map +1 -0
- package/dist/cli/stdio.js +15 -0
- package/dist/cli/stdio.js.map +1 -0
- package/dist/cli/who.descriptor.d.ts +16 -0
- package/dist/cli/who.descriptor.d.ts.map +1 -0
- package/dist/cli/who.descriptor.js +38 -0
- package/dist/cli/who.descriptor.js.map +1 -0
- package/dist/cli/who.impl.d.ts +16 -0
- package/dist/cli/who.impl.d.ts.map +1 -0
- package/dist/cli/who.impl.js +127 -0
- package/dist/cli/who.impl.js.map +1 -0
- package/dist/client/external-client.d.ts +423 -0
- package/dist/client/external-client.d.ts.map +1 -0
- package/dist/client/external-client.js +979 -0
- package/dist/client/external-client.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/lifecycle.d.ts +25 -0
- package/dist/client/lifecycle.d.ts.map +1 -0
- package/dist/client/lifecycle.js +134 -0
- package/dist/client/lifecycle.js.map +1 -0
- package/dist/config/binary-detection.d.ts +26 -0
- package/dist/config/binary-detection.d.ts.map +1 -0
- package/dist/config/binary-detection.js +105 -0
- package/dist/config/binary-detection.js.map +1 -0
- package/dist/config/external.config.descriptor.d.ts +11 -0
- package/dist/config/external.config.descriptor.d.ts.map +1 -0
- package/dist/config/external.config.descriptor.js +41 -0
- package/dist/config/external.config.descriptor.js.map +1 -0
- package/dist/config/index.d.ts +10 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +10 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/manifest.d.ts +4696 -0
- package/dist/config/manifest.d.ts.map +1 -0
- package/dist/config/manifest.js +210 -0
- package/dist/config/manifest.js.map +1 -0
- package/dist/config/read.d.ts +13 -0
- package/dist/config/read.d.ts.map +1 -0
- package/dist/config/read.js +20 -0
- package/dist/config/read.js.map +1 -0
- package/dist/consumer.d.ts +15 -0
- package/dist/consumer.d.ts.map +1 -0
- package/dist/consumer.js +15 -0
- package/dist/consumer.js.map +1 -0
- package/dist/detection/base.d.ts +71 -0
- package/dist/detection/base.d.ts.map +1 -0
- package/dist/detection/base.js +115 -0
- package/dist/detection/base.js.map +1 -0
- package/dist/detection/command-probe.d.ts +43 -0
- package/dist/detection/command-probe.d.ts.map +1 -0
- package/dist/detection/command-probe.js +75 -0
- package/dist/detection/command-probe.js.map +1 -0
- package/dist/detection/config-document.d.ts +31 -0
- package/dist/detection/config-document.d.ts.map +1 -0
- package/dist/detection/config-document.js +138 -0
- package/dist/detection/config-document.js.map +1 -0
- package/dist/detection/index.d.ts +11 -0
- package/dist/detection/index.d.ts.map +1 -0
- package/dist/detection/index.js +13 -0
- package/dist/detection/index.js.map +1 -0
- package/dist/detection/manifest-detector-helpers.d.ts +45 -0
- package/dist/detection/manifest-detector-helpers.d.ts.map +1 -0
- package/dist/detection/manifest-detector-helpers.js +198 -0
- package/dist/detection/manifest-detector-helpers.js.map +1 -0
- package/dist/detection/manifest-detector.d.ts +34 -0
- package/dist/detection/manifest-detector.d.ts.map +1 -0
- package/dist/detection/manifest-detector.js +123 -0
- package/dist/detection/manifest-detector.js.map +1 -0
- package/dist/detection/service.d.ts +99 -0
- package/dist/detection/service.d.ts.map +1 -0
- package/dist/detection/service.js +124 -0
- package/dist/detection/service.js.map +1 -0
- package/dist/detection/types.d.ts +113 -0
- package/dist/detection/types.d.ts.map +1 -0
- package/dist/detection/types.js +30 -0
- package/dist/detection/types.js.map +1 -0
- package/dist/dev.external.descriptor.d.ts +9 -0
- package/dist/dev.external.descriptor.d.ts.map +1 -0
- package/dist/dev.external.descriptor.js +17 -0
- package/dist/dev.external.descriptor.js.map +1 -0
- package/dist/docs/external.ambient.docs.descriptor.d.ts +4 -0
- package/dist/docs/external.ambient.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/external.ambient.docs.descriptor.js +109 -0
- package/dist/docs/external.ambient.docs.descriptor.js.map +1 -0
- package/dist/external-adapter/descriptors.d.ts +133 -0
- package/dist/external-adapter/descriptors.d.ts.map +1 -0
- package/dist/external-adapter/descriptors.js +70 -0
- package/dist/external-adapter/descriptors.js.map +1 -0
- package/dist/external-adapter/implementations.d.ts +13 -0
- package/dist/external-adapter/implementations.d.ts.map +1 -0
- package/dist/external-adapter/implementations.js +97 -0
- package/dist/external-adapter/implementations.js.map +1 -0
- package/dist/external-adapter/schemas/adapter.d.ts +66 -0
- package/dist/external-adapter/schemas/adapter.d.ts.map +1 -0
- package/dist/external-adapter/schemas/adapter.js +55 -0
- package/dist/external-adapter/schemas/adapter.js.map +1 -0
- package/dist/external-tool/impl/default-tool.d.ts +201 -0
- package/dist/external-tool/impl/default-tool.d.ts.map +1 -0
- package/dist/external-tool/impl/default-tool.js +243 -0
- package/dist/external-tool/impl/default-tool.js.map +1 -0
- package/dist/external-tool/interfaces/tool.d.ts +102 -0
- package/dist/external-tool/interfaces/tool.d.ts.map +1 -0
- package/dist/external-tool/interfaces/tool.js +2 -0
- package/dist/external-tool/interfaces/tool.js.map +1 -0
- package/dist/external-tool/loader.d.ts +5 -0
- package/dist/external-tool/loader.d.ts.map +1 -0
- package/dist/external-tool/loader.js +8 -0
- package/dist/external-tool/loader.js.map +1 -0
- package/dist/external-tool/path-template.d.ts +54 -0
- package/dist/external-tool/path-template.d.ts.map +1 -0
- package/dist/external-tool/path-template.js +65 -0
- package/dist/external-tool/path-template.js.map +1 -0
- package/dist/external-tool/runtime.d.ts +38 -0
- package/dist/external-tool/runtime.d.ts.map +1 -0
- package/dist/external-tool/runtime.js +89 -0
- package/dist/external-tool/runtime.js.map +1 -0
- package/dist/external-tool/schemas/tool.d.ts +269 -0
- package/dist/external-tool/schemas/tool.d.ts.map +1 -0
- package/dist/external-tool/schemas/tool.js +77 -0
- package/dist/external-tool/schemas/tool.js.map +1 -0
- package/dist/external.plugin.d.ts +4 -0
- package/dist/external.plugin.d.ts.map +1 -0
- package/dist/external.plugin.js +184 -0
- package/dist/external.plugin.js.map +1 -0
- package/dist/harness/agent-host-scope.d.ts +18 -0
- package/dist/harness/agent-host-scope.d.ts.map +1 -0
- package/dist/harness/agent-host-scope.js +30 -0
- package/dist/harness/agent-host-scope.js.map +1 -0
- package/dist/harness/agent-host-settings.d.ts +6 -0
- package/dist/harness/agent-host-settings.d.ts.map +1 -0
- package/dist/harness/agent-host-settings.js +18 -0
- package/dist/harness/agent-host-settings.js.map +1 -0
- package/dist/harness/agent-host.config.descriptor.d.ts +6 -0
- package/dist/harness/agent-host.config.descriptor.d.ts.map +1 -0
- package/dist/harness/agent-host.config.descriptor.js +22 -0
- package/dist/harness/agent-host.config.descriptor.js.map +1 -0
- package/dist/harness/agent-host.d.ts +98 -0
- package/dist/harness/agent-host.d.ts.map +1 -0
- package/dist/harness/agent-host.js +201 -0
- package/dist/harness/agent-host.js.map +1 -0
- package/dist/harness/command-arguments.d.ts +54 -0
- package/dist/harness/command-arguments.d.ts.map +1 -0
- package/dist/harness/command-arguments.js +113 -0
- package/dist/harness/command-arguments.js.map +1 -0
- package/dist/harness/command-execution.d.ts +20 -0
- package/dist/harness/command-execution.d.ts.map +1 -0
- package/dist/harness/command-execution.js +78 -0
- package/dist/harness/command-execution.js.map +1 -0
- package/dist/harness/command-output.d.ts +59 -0
- package/dist/harness/command-output.d.ts.map +1 -0
- package/dist/harness/command-output.js +173 -0
- package/dist/harness/command-output.js.map +1 -0
- package/dist/harness/execution-queue.d.ts +14 -0
- package/dist/harness/execution-queue.d.ts.map +1 -0
- package/dist/harness/execution-queue.js +23 -0
- package/dist/harness/execution-queue.js.map +1 -0
- package/dist/harness/index.d.ts +15 -0
- package/dist/harness/index.d.ts.map +1 -0
- package/dist/harness/index.js +12 -0
- package/dist/harness/index.js.map +1 -0
- package/dist/harness/live-tools.d.ts +130 -0
- package/dist/harness/live-tools.d.ts.map +1 -0
- package/dist/harness/live-tools.js +257 -0
- package/dist/harness/live-tools.js.map +1 -0
- package/dist/harness/managed-block.d.ts +34 -0
- package/dist/harness/managed-block.d.ts.map +1 -0
- package/dist/harness/managed-block.js +66 -0
- package/dist/harness/managed-block.js.map +1 -0
- package/dist/harness/markers.d.ts +22 -0
- package/dist/harness/markers.d.ts.map +1 -0
- package/dist/harness/markers.js +28 -0
- package/dist/harness/markers.js.map +1 -0
- package/dist/harness/node.d.ts +6 -0
- package/dist/harness/node.d.ts.map +1 -0
- package/dist/harness/node.js +6 -0
- package/dist/harness/node.js.map +1 -0
- package/dist/harness/prompt.d.ts +54 -0
- package/dist/harness/prompt.d.ts.map +1 -0
- package/dist/harness/prompt.js +78 -0
- package/dist/harness/prompt.js.map +1 -0
- package/dist/harness/prompts/index.d.ts +113 -0
- package/dist/harness/prompts/index.d.ts.map +1 -0
- package/dist/harness/prompts/index.js +5 -0
- package/dist/harness/prompts/index.js.map +1 -0
- package/dist/harness/prompts/static-briefing-note.prompt.descriptor.d.ts +114 -0
- package/dist/harness/prompts/static-briefing-note.prompt.descriptor.d.ts.map +1 -0
- package/dist/harness/prompts/static-briefing-note.prompt.descriptor.js +17 -0
- package/dist/harness/prompts/static-briefing-note.prompt.descriptor.js.map +1 -0
- package/dist/harness/prompts/system-prompt.prompt.descriptor.d.ts +114 -0
- package/dist/harness/prompts/system-prompt.prompt.descriptor.d.ts.map +1 -0
- package/dist/harness/prompts/system-prompt.prompt.descriptor.js +35 -0
- package/dist/harness/prompts/system-prompt.prompt.descriptor.js.map +1 -0
- package/dist/harness/role-prompt.d.ts +12 -0
- package/dist/harness/role-prompt.d.ts.map +1 -0
- package/dist/harness/role-prompt.js +24 -0
- package/dist/harness/role-prompt.js.map +1 -0
- package/dist/harness/runtime-transport.d.ts +89 -0
- package/dist/harness/runtime-transport.d.ts.map +1 -0
- package/dist/harness/runtime-transport.js +356 -0
- package/dist/harness/runtime-transport.js.map +1 -0
- package/dist/harness/schemas/agent-host.d.ts +142 -0
- package/dist/harness/schemas/agent-host.d.ts.map +1 -0
- package/dist/harness/schemas/agent-host.js +26 -0
- package/dist/harness/schemas/agent-host.js.map +1 -0
- package/dist/harness/stdio-sink.d.ts +35 -0
- package/dist/harness/stdio-sink.d.ts.map +1 -0
- package/dist/harness/stdio-sink.js +34 -0
- package/dist/harness/stdio-sink.js.map +1 -0
- package/dist/harness/strip-undefined.d.ts +9 -0
- package/dist/harness/strip-undefined.d.ts.map +1 -0
- package/dist/harness/strip-undefined.js +11 -0
- package/dist/harness/strip-undefined.js.map +1 -0
- package/dist/harness/tool-projection.d.ts +130 -0
- package/dist/harness/tool-projection.d.ts.map +1 -0
- package/dist/harness/tool-projection.js +195 -0
- package/dist/harness/tool-projection.js.map +1 -0
- package/dist/harness/validation-errors.d.ts +11 -0
- package/dist/harness/validation-errors.d.ts.map +1 -0
- package/dist/harness/validation-errors.js +32 -0
- package/dist/harness/validation-errors.js.map +1 -0
- package/dist/hooks/bounded-payload.d.ts +39 -0
- package/dist/hooks/bounded-payload.d.ts.map +1 -0
- package/dist/hooks/bounded-payload.js +70 -0
- package/dist/hooks/bounded-payload.js.map +1 -0
- package/dist/hooks/bridge.d.ts +34 -0
- package/dist/hooks/bridge.d.ts.map +1 -0
- package/dist/hooks/bridge.js +86 -0
- package/dist/hooks/bridge.js.map +1 -0
- package/dist/hooks/call.d.ts +298 -0
- package/dist/hooks/call.d.ts.map +1 -0
- package/dist/hooks/call.js +1550 -0
- package/dist/hooks/call.js.map +1 -0
- package/dist/hooks/consumer.d.ts +7 -0
- package/dist/hooks/consumer.d.ts.map +1 -0
- package/dist/hooks/consumer.js +5 -0
- package/dist/hooks/consumer.js.map +1 -0
- package/dist/hooks/continuity.d.ts +155 -0
- package/dist/hooks/continuity.d.ts.map +1 -0
- package/dist/hooks/continuity.js +187 -0
- package/dist/hooks/continuity.js.map +1 -0
- package/dist/hooks/dispatch-script.d.ts +27 -0
- package/dist/hooks/dispatch-script.d.ts.map +1 -0
- package/dist/hooks/dispatch-script.js +77 -0
- package/dist/hooks/dispatch-script.js.map +1 -0
- package/dist/hooks/edit-targets.d.ts +23 -0
- package/dist/hooks/edit-targets.d.ts.map +1 -0
- package/dist/hooks/edit-targets.js +74 -0
- package/dist/hooks/edit-targets.js.map +1 -0
- package/dist/hooks/hook-delivery.d.ts +21 -0
- package/dist/hooks/hook-delivery.d.ts.map +1 -0
- package/dist/hooks/hook-delivery.js +87 -0
- package/dist/hooks/hook-delivery.js.map +1 -0
- package/dist/hooks/hook-seat.d.ts +37 -0
- package/dist/hooks/hook-seat.d.ts.map +1 -0
- package/dist/hooks/hook-seat.js +59 -0
- package/dist/hooks/hook-seat.js.map +1 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/native-edit-guard.d.ts +25 -0
- package/dist/hooks/native-edit-guard.d.ts.map +1 -0
- package/dist/hooks/native-edit-guard.js +33 -0
- package/dist/hooks/native-edit-guard.js.map +1 -0
- package/dist/hooks/native-edit-locks.d.ts +54 -0
- package/dist/hooks/native-edit-locks.d.ts.map +1 -0
- package/dist/hooks/native-edit-locks.js +98 -0
- package/dist/hooks/native-edit-locks.js.map +1 -0
- package/dist/hooks/resolve-event.d.ts +13 -0
- package/dist/hooks/resolve-event.d.ts.map +1 -0
- package/dist/hooks/resolve-event.js +32 -0
- package/dist/hooks/resolve-event.js.map +1 -0
- package/dist/hooks/review-state.d.ts +22 -0
- package/dist/hooks/review-state.d.ts.map +1 -0
- package/dist/hooks/review-state.js +57 -0
- package/dist/hooks/review-state.js.map +1 -0
- package/dist/hooks/runtime.d.ts +146 -0
- package/dist/hooks/runtime.d.ts.map +1 -0
- package/dist/hooks/runtime.js +83 -0
- package/dist/hooks/runtime.js.map +1 -0
- package/dist/hooks/self-review.d.ts +14 -0
- package/dist/hooks/self-review.d.ts.map +1 -0
- package/dist/hooks/self-review.js +28 -0
- package/dist/hooks/self-review.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/ingest/logging/subagent-completions.output.descriptor.d.ts +4 -0
- package/dist/ingest/logging/subagent-completions.output.descriptor.d.ts.map +1 -0
- package/dist/ingest/logging/subagent-completions.output.descriptor.js +22 -0
- package/dist/ingest/logging/subagent-completions.output.descriptor.js.map +1 -0
- package/dist/ingest/logging/success-patterns.output.descriptor.d.ts +4 -0
- package/dist/ingest/logging/success-patterns.output.descriptor.d.ts.map +1 -0
- package/dist/ingest/logging/success-patterns.output.descriptor.js +22 -0
- package/dist/ingest/logging/success-patterns.output.descriptor.js.map +1 -0
- package/dist/ingest/logging/tool-use.output.descriptor.d.ts +4 -0
- package/dist/ingest/logging/tool-use.output.descriptor.d.ts.map +1 -0
- package/dist/ingest/logging/tool-use.output.descriptor.js +22 -0
- package/dist/ingest/logging/tool-use.output.descriptor.js.map +1 -0
- package/dist/ingest/resolve-log-paths.d.ts +16 -0
- package/dist/ingest/resolve-log-paths.d.ts.map +1 -0
- package/dist/ingest/resolve-log-paths.js +43 -0
- package/dist/ingest/resolve-log-paths.js.map +1 -0
- package/dist/ingest/schemas.d.ts +43 -0
- package/dist/ingest/schemas.d.ts.map +1 -0
- package/dist/ingest/schemas.js +46 -0
- package/dist/ingest/schemas.js.map +1 -0
- package/dist/jsonrpc/client.d.ts +129 -0
- package/dist/jsonrpc/client.d.ts.map +1 -0
- package/dist/jsonrpc/client.js +553 -0
- package/dist/jsonrpc/client.js.map +1 -0
- package/dist/jsonrpc/envelope.d.ts +37 -0
- package/dist/jsonrpc/envelope.d.ts.map +1 -0
- package/dist/jsonrpc/envelope.js +46 -0
- package/dist/jsonrpc/envelope.js.map +1 -0
- package/dist/jsonrpc/errors.d.ts +28 -0
- package/dist/jsonrpc/errors.d.ts.map +1 -0
- package/dist/jsonrpc/errors.js +110 -0
- package/dist/jsonrpc/errors.js.map +1 -0
- package/dist/jsonrpc/framing.d.ts +35 -0
- package/dist/jsonrpc/framing.d.ts.map +1 -0
- package/dist/jsonrpc/framing.js +134 -0
- package/dist/jsonrpc/framing.js.map +1 -0
- package/dist/jsonrpc/index.d.ts +11 -0
- package/dist/jsonrpc/index.d.ts.map +1 -0
- package/dist/jsonrpc/index.js +11 -0
- package/dist/jsonrpc/index.js.map +1 -0
- package/dist/jsonrpc/outcome.d.ts +25 -0
- package/dist/jsonrpc/outcome.d.ts.map +1 -0
- package/dist/jsonrpc/outcome.js +32 -0
- package/dist/jsonrpc/outcome.js.map +1 -0
- package/dist/jsonrpc/queue.d.ts +30 -0
- package/dist/jsonrpc/queue.d.ts.map +1 -0
- package/dist/jsonrpc/queue.js +113 -0
- package/dist/jsonrpc/queue.js.map +1 -0
- package/dist/jsonrpc/schemas.d.ts +74 -0
- package/dist/jsonrpc/schemas.d.ts.map +1 -0
- package/dist/jsonrpc/schemas.js +65 -0
- package/dist/jsonrpc/schemas.js.map +1 -0
- package/dist/launch/consumer/execute.d.ts +5 -0
- package/dist/launch/consumer/execute.d.ts.map +1 -0
- package/dist/launch/consumer/execute.js +358 -0
- package/dist/launch/consumer/execute.js.map +1 -0
- package/dist/launch/consumer/paths.d.ts +15 -0
- package/dist/launch/consumer/paths.d.ts.map +1 -0
- package/dist/launch/consumer/paths.js +18 -0
- package/dist/launch/consumer/paths.js.map +1 -0
- package/dist/launch/consumer/prepare.d.ts +25 -0
- package/dist/launch/consumer/prepare.d.ts.map +1 -0
- package/dist/launch/consumer/prepare.js +158 -0
- package/dist/launch/consumer/prepare.js.map +1 -0
- package/dist/launch/consumer/prompt.d.ts +18 -0
- package/dist/launch/consumer/prompt.d.ts.map +1 -0
- package/dist/launch/consumer/prompt.js +45 -0
- package/dist/launch/consumer/prompt.js.map +1 -0
- package/dist/launch/consumer/rotate-logs.d.ts +23 -0
- package/dist/launch/consumer/rotate-logs.d.ts.map +1 -0
- package/dist/launch/consumer/rotate-logs.js +43 -0
- package/dist/launch/consumer/rotate-logs.js.map +1 -0
- package/dist/launch/consumer/spawn.d.ts +38 -0
- package/dist/launch/consumer/spawn.d.ts.map +1 -0
- package/dist/launch/consumer/spawn.js +82 -0
- package/dist/launch/consumer/spawn.js.map +1 -0
- package/dist/launch/consumer/state-rows.d.ts +41 -0
- package/dist/launch/consumer/state-rows.d.ts.map +1 -0
- package/dist/launch/consumer/state-rows.js +78 -0
- package/dist/launch/consumer/state-rows.js.map +1 -0
- package/dist/launch/consumer/store.d.ts +139 -0
- package/dist/launch/consumer/store.d.ts.map +1 -0
- package/dist/launch/consumer/store.js +495 -0
- package/dist/launch/consumer/store.js.map +1 -0
- package/dist/launch/index.d.ts +5 -0
- package/dist/launch/index.d.ts.map +1 -0
- package/dist/launch/index.js +3 -0
- package/dist/launch/index.js.map +1 -0
- package/dist/launch/resolve.d.ts +9 -0
- package/dist/launch/resolve.d.ts.map +1 -0
- package/dist/launch/resolve.js +139 -0
- package/dist/launch/resolve.js.map +1 -0
- package/dist/launch/schemas.d.ts +289 -0
- package/dist/launch/schemas.d.ts.map +1 -0
- package/dist/launch/schemas.js +154 -0
- package/dist/launch/schemas.js.map +1 -0
- package/dist/launch/task-executor/external-harness.descriptor.d.ts +6 -0
- package/dist/launch/task-executor/external-harness.descriptor.d.ts.map +1 -0
- package/dist/launch/task-executor/external-harness.descriptor.js +13 -0
- package/dist/launch/task-executor/external-harness.descriptor.js.map +1 -0
- package/dist/launch/task-executor/external-harness.impl.consumer.d.ts +17 -0
- package/dist/launch/task-executor/external-harness.impl.consumer.d.ts.map +1 -0
- package/dist/launch/task-executor/external-harness.impl.consumer.js +151 -0
- package/dist/launch/task-executor/external-harness.impl.consumer.js.map +1 -0
- package/dist/launch/task-executor/isolated-workspace.d.ts +3 -0
- package/dist/launch/task-executor/isolated-workspace.d.ts.map +1 -0
- package/dist/launch/task-executor/isolated-workspace.js +3 -0
- package/dist/launch/task-executor/isolated-workspace.js.map +1 -0
- package/dist/launch/task-executor/session-locks.d.ts +28 -0
- package/dist/launch/task-executor/session-locks.d.ts.map +1 -0
- package/dist/launch/task-executor/session-locks.js +50 -0
- package/dist/launch/task-executor/session-locks.js.map +1 -0
- package/dist/pack/adapter-codegen.d.ts +38 -0
- package/dist/pack/adapter-codegen.d.ts.map +1 -0
- package/dist/pack/adapter-codegen.js +70 -0
- package/dist/pack/adapter-codegen.js.map +1 -0
- package/dist/pack/build.d.ts +48 -0
- package/dist/pack/build.d.ts.map +1 -0
- package/dist/pack/build.js +171 -0
- package/dist/pack/build.js.map +1 -0
- package/dist/pack/emitters/hooks.d.ts +14 -0
- package/dist/pack/emitters/hooks.d.ts.map +1 -0
- package/dist/pack/emitters/hooks.js +15 -0
- package/dist/pack/emitters/hooks.js.map +1 -0
- package/dist/pack/emitters/json.d.ts +10 -0
- package/dist/pack/emitters/json.d.ts.map +1 -0
- package/dist/pack/emitters/json.js +17 -0
- package/dist/pack/emitters/json.js.map +1 -0
- package/dist/pack/emitters/registry.d.ts +22 -0
- package/dist/pack/emitters/registry.d.ts.map +1 -0
- package/dist/pack/emitters/registry.js +38 -0
- package/dist/pack/emitters/registry.js.map +1 -0
- package/dist/pack/emitters/toml.d.ts +8 -0
- package/dist/pack/emitters/toml.d.ts.map +1 -0
- package/dist/pack/emitters/toml.js +28 -0
- package/dist/pack/emitters/toml.js.map +1 -0
- package/dist/pack/emitters/yaml.d.ts +8 -0
- package/dist/pack/emitters/yaml.d.ts.map +1 -0
- package/dist/pack/emitters/yaml.js +27 -0
- package/dist/pack/emitters/yaml.js.map +1 -0
- package/dist/pack/index.d.ts +11 -0
- package/dist/pack/index.d.ts.map +1 -0
- package/dist/pack/index.js +11 -0
- package/dist/pack/index.js.map +1 -0
- package/dist/pack/mcp.d.ts +28 -0
- package/dist/pack/mcp.d.ts.map +1 -0
- package/dist/pack/mcp.js +70 -0
- package/dist/pack/mcp.js.map +1 -0
- package/dist/pack/persist.d.ts +28 -0
- package/dist/pack/persist.d.ts.map +1 -0
- package/dist/pack/persist.js +35 -0
- package/dist/pack/persist.js.map +1 -0
- package/dist/pack/schema.d.ts +126 -0
- package/dist/pack/schema.d.ts.map +1 -0
- package/dist/pack/schema.js +56 -0
- package/dist/pack/schema.js.map +1 -0
- package/dist/plugins/index.d.ts +512 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +25 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/installers/config-file.d.ts +21 -0
- package/dist/plugins/installers/config-file.d.ts.map +1 -0
- package/dist/plugins/installers/config-file.js +48 -0
- package/dist/plugins/installers/config-file.js.map +1 -0
- package/dist/plugins/installers/config-value.d.ts +35 -0
- package/dist/plugins/installers/config-value.d.ts.map +1 -0
- package/dist/plugins/installers/config-value.js +52 -0
- package/dist/plugins/installers/config-value.js.map +1 -0
- package/dist/plugins/installers/hooks/index.d.ts +9 -0
- package/dist/plugins/installers/hooks/index.d.ts.map +1 -0
- package/dist/plugins/installers/hooks/index.js +12 -0
- package/dist/plugins/installers/hooks/index.js.map +1 -0
- package/dist/plugins/installers/hooks/scoped-paths.d.ts +24 -0
- package/dist/plugins/installers/hooks/scoped-paths.d.ts.map +1 -0
- package/dist/plugins/installers/hooks/scoped-paths.js +80 -0
- package/dist/plugins/installers/hooks/scoped-paths.js.map +1 -0
- package/dist/plugins/installers/hooks/settings-registration.d.ts +79 -0
- package/dist/plugins/installers/hooks/settings-registration.d.ts.map +1 -0
- package/dist/plugins/installers/hooks/settings-registration.js +125 -0
- package/dist/plugins/installers/hooks/settings-registration.js.map +1 -0
- package/dist/plugins/installers/hooks/shell-installer.d.ts +21 -0
- package/dist/plugins/installers/hooks/shell-installer.d.ts.map +1 -0
- package/dist/plugins/installers/hooks/shell-installer.js +298 -0
- package/dist/plugins/installers/hooks/shell-installer.js.map +1 -0
- package/dist/plugins/installers/hooks/uninstall-backup.d.ts +19 -0
- package/dist/plugins/installers/hooks/uninstall-backup.d.ts.map +1 -0
- package/dist/plugins/installers/hooks/uninstall-backup.js +20 -0
- package/dist/plugins/installers/hooks/uninstall-backup.js.map +1 -0
- package/dist/plugins/installers/index.d.ts +58 -0
- package/dist/plugins/installers/index.d.ts.map +1 -0
- package/dist/plugins/installers/index.js +303 -0
- package/dist/plugins/installers/index.js.map +1 -0
- package/dist/plugins/installers/mcp/environment.d.ts +180 -0
- package/dist/plugins/installers/mcp/environment.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/environment.js +314 -0
- package/dist/plugins/installers/mcp/environment.js.map +1 -0
- package/dist/plugins/installers/mcp/index.d.ts +9 -0
- package/dist/plugins/installers/mcp/index.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/index.js +11 -0
- package/dist/plugins/installers/mcp/index.js.map +1 -0
- package/dist/plugins/installers/mcp/json-installer.d.ts +18 -0
- package/dist/plugins/installers/mcp/json-installer.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/json-installer.js +155 -0
- package/dist/plugins/installers/mcp/json-installer.js.map +1 -0
- package/dist/plugins/installers/mcp/json-paths.d.ts +13 -0
- package/dist/plugins/installers/mcp/json-paths.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/json-paths.js +130 -0
- package/dist/plugins/installers/mcp/json-paths.js.map +1 -0
- package/dist/plugins/installers/mcp/serve-identity.d.ts +19 -0
- package/dist/plugins/installers/mcp/serve-identity.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/serve-identity.js +31 -0
- package/dist/plugins/installers/mcp/serve-identity.js.map +1 -0
- package/dist/plugins/installers/mcp/server-config.d.ts +20 -0
- package/dist/plugins/installers/mcp/server-config.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/server-config.js +64 -0
- package/dist/plugins/installers/mcp/server-config.js.map +1 -0
- package/dist/plugins/installers/mcp/toml-installer.d.ts +41 -0
- package/dist/plugins/installers/mcp/toml-installer.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/toml-installer.js +407 -0
- package/dist/plugins/installers/mcp/toml-installer.js.map +1 -0
- package/dist/plugins/installers/mcp/yaml-installer.d.ts +22 -0
- package/dist/plugins/installers/mcp/yaml-installer.d.ts.map +1 -0
- package/dist/plugins/installers/mcp/yaml-installer.js +156 -0
- package/dist/plugins/installers/mcp/yaml-installer.js.map +1 -0
- package/dist/plugins/installers/runtime.d.ts +42 -0
- package/dist/plugins/installers/runtime.d.ts.map +1 -0
- package/dist/plugins/installers/runtime.js +56 -0
- package/dist/plugins/installers/runtime.js.map +1 -0
- package/dist/plugins/installers/types.d.ts +306 -0
- package/dist/plugins/installers/types.d.ts.map +1 -0
- package/dist/plugins/installers/types.js +40 -0
- package/dist/plugins/installers/types.js.map +1 -0
- package/dist/plugins/schemas/index.d.ts +6 -0
- package/dist/plugins/schemas/index.d.ts.map +1 -0
- package/dist/plugins/schemas/index.js +5 -0
- package/dist/plugins/schemas/index.js.map +1 -0
- package/dist/plugins/schemas/manifest.d.ts +527 -0
- package/dist/plugins/schemas/manifest.d.ts.map +1 -0
- package/dist/plugins/schemas/manifest.js +355 -0
- package/dist/plugins/schemas/manifest.js.map +1 -0
- package/dist/plugins/tools/index.d.ts +12 -0
- package/dist/plugins/tools/index.d.ts.map +1 -0
- package/dist/plugins/tools/index.js +19 -0
- package/dist/plugins/tools/index.js.map +1 -0
- package/dist/presets/executor.d.ts +20 -0
- package/dist/presets/executor.d.ts.map +1 -0
- package/dist/presets/executor.js +629 -0
- package/dist/presets/executor.js.map +1 -0
- package/dist/presets/file-backup.d.ts +66 -0
- package/dist/presets/file-backup.d.ts.map +1 -0
- package/dist/presets/file-backup.js +108 -0
- package/dist/presets/file-backup.js.map +1 -0
- package/dist/presets/index.d.ts +11 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/index.js +10 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/resolve.d.ts +32 -0
- package/dist/presets/resolve.d.ts.map +1 -0
- package/dist/presets/resolve.js +49 -0
- package/dist/presets/resolve.js.map +1 -0
- package/dist/presets/runtime.d.ts +21 -0
- package/dist/presets/runtime.d.ts.map +1 -0
- package/dist/presets/runtime.js +115 -0
- package/dist/presets/runtime.js.map +1 -0
- package/dist/projection/attestation.d.ts +43 -0
- package/dist/projection/attestation.d.ts.map +1 -0
- package/dist/projection/attestation.js +59 -0
- package/dist/projection/attestation.js.map +1 -0
- package/dist/runtime/agent-roster-provider.d.ts +75 -0
- package/dist/runtime/agent-roster-provider.d.ts.map +1 -0
- package/dist/runtime/agent-roster-provider.js +30 -0
- package/dist/runtime/agent-roster-provider.js.map +1 -0
- package/dist/runtime/external-surface-projector.d.ts +37 -0
- package/dist/runtime/external-surface-projector.d.ts.map +1 -0
- package/dist/runtime/external-surface-projector.js +21 -0
- package/dist/runtime/external-surface-projector.js.map +1 -0
- package/dist/runtime/lifecycle-task.d.ts +54 -0
- package/dist/runtime/lifecycle-task.d.ts.map +1 -0
- package/dist/runtime/lifecycle-task.js +106 -0
- package/dist/runtime/lifecycle-task.js.map +1 -0
- package/dist/runtime.d.ts +496 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +168 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schemas/agent-message.d.ts +136 -0
- package/dist/schemas/agent-message.d.ts.map +1 -0
- package/dist/schemas/agent-message.js +131 -0
- package/dist/schemas/agent-message.js.map +1 -0
- package/dist/schemas/agent-roster.d.ts +50 -0
- package/dist/schemas/agent-roster.d.ts.map +1 -0
- package/dist/schemas/agent-roster.js +52 -0
- package/dist/schemas/agent-roster.js.map +1 -0
- package/dist/schemas/collision.d.ts +109 -0
- package/dist/schemas/collision.d.ts.map +1 -0
- package/dist/schemas/collision.js +71 -0
- package/dist/schemas/collision.js.map +1 -0
- package/dist/schemas/context-summary.d.ts +225 -0
- package/dist/schemas/context-summary.d.ts.map +1 -0
- package/dist/schemas/context-summary.js +117 -0
- package/dist/schemas/context-summary.js.map +1 -0
- package/dist/schemas/file-access.d.ts +176 -0
- package/dist/schemas/file-access.d.ts.map +1 -0
- package/dist/schemas/file-access.js +139 -0
- package/dist/schemas/file-access.js.map +1 -0
- package/dist/schemas/hooks.d.ts +170 -0
- package/dist/schemas/hooks.d.ts.map +1 -0
- package/dist/schemas/hooks.js +171 -0
- package/dist/schemas/hooks.js.map +1 -0
- package/dist/schemas/index.d.ts +19 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +17 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/path-identity.d.ts +44 -0
- package/dist/schemas/path-identity.d.ts.map +1 -0
- package/dist/schemas/path-identity.js +93 -0
- package/dist/schemas/path-identity.js.map +1 -0
- package/dist/schemas/pending-notice.d.ts +13 -0
- package/dist/schemas/pending-notice.d.ts.map +1 -0
- package/dist/schemas/pending-notice.js +5 -0
- package/dist/schemas/pending-notice.js.map +1 -0
- package/dist/schemas/presets.d.ts +1239 -0
- package/dist/schemas/presets.d.ts.map +1 -0
- package/dist/schemas/presets.js +270 -0
- package/dist/schemas/presets.js.map +1 -0
- package/dist/schemas/roster.d.ts +96 -0
- package/dist/schemas/roster.d.ts.map +1 -0
- package/dist/schemas/roster.js +310 -0
- package/dist/schemas/roster.js.map +1 -0
- package/dist/schemas/tiers.d.ts +95 -0
- package/dist/schemas/tiers.d.ts.map +1 -0
- package/dist/schemas/tiers.js +143 -0
- package/dist/schemas/tiers.js.map +1 -0
- package/dist/schemas/touch-identity.d.ts +25 -0
- package/dist/schemas/touch-identity.d.ts.map +1 -0
- package/dist/schemas/touch-identity.js +16 -0
- package/dist/schemas/touch-identity.js.map +1 -0
- package/dist/schemas/touch-projection.d.ts +157 -0
- package/dist/schemas/touch-projection.d.ts.map +1 -0
- package/dist/schemas/touch-projection.js +100 -0
- package/dist/schemas/touch-projection.js.map +1 -0
- package/dist/session-capability.d.ts +88 -0
- package/dist/session-capability.d.ts.map +1 -0
- package/dist/session-capability.js +28 -0
- package/dist/session-capability.js.map +1 -0
- package/dist/setup/index.d.ts +9 -0
- package/dist/setup/index.d.ts.map +1 -0
- package/dist/setup/index.js +8 -0
- package/dist/setup/index.js.map +1 -0
- package/dist/setup/steps/detect-tools.d.ts +9 -0
- package/dist/setup/steps/detect-tools.d.ts.map +1 -0
- package/dist/setup/steps/detect-tools.js +120 -0
- package/dist/setup/steps/detect-tools.js.map +1 -0
- package/dist/setup/steps/index.d.ts +11 -0
- package/dist/setup/steps/index.d.ts.map +1 -0
- package/dist/setup/steps/index.js +11 -0
- package/dist/setup/steps/index.js.map +1 -0
- package/dist/setup/steps/install-helpers.d.ts +9 -0
- package/dist/setup/steps/install-helpers.d.ts.map +1 -0
- package/dist/setup/steps/install-helpers.js +29 -0
- package/dist/setup/steps/install-helpers.js.map +1 -0
- package/dist/setup/steps/install.d.ts +11 -0
- package/dist/setup/steps/install.d.ts.map +1 -0
- package/dist/setup/steps/install.js +143 -0
- package/dist/setup/steps/install.js.map +1 -0
- package/dist/setup/steps/select-location.d.ts +8 -0
- package/dist/setup/steps/select-location.d.ts.map +1 -0
- package/dist/setup/steps/select-location.js +55 -0
- package/dist/setup/steps/select-location.js.map +1 -0
- package/dist/setup/steps/select-targets.d.ts +8 -0
- package/dist/setup/steps/select-targets.d.ts.map +1 -0
- package/dist/setup/steps/select-targets.js +53 -0
- package/dist/setup/steps/select-targets.js.map +1 -0
- package/dist/setup/steps/select-tiers.d.ts +8 -0
- package/dist/setup/steps/select-tiers.d.ts.map +1 -0
- package/dist/setup/steps/select-tiers.js +124 -0
- package/dist/setup/steps/select-tiers.js.map +1 -0
- package/dist/setup/types.d.ts +128 -0
- package/dist/setup/types.d.ts.map +1 -0
- package/dist/setup/types.js +28 -0
- package/dist/setup/types.js.map +1 -0
- package/dist/setup/wizard.d.ts +25 -0
- package/dist/setup/wizard.d.ts.map +1 -0
- package/dist/setup/wizard.js +182 -0
- package/dist/setup/wizard.js.map +1 -0
- package/dist/storage/agent-message.record.descriptor.d.ts +43 -0
- package/dist/storage/agent-message.record.descriptor.d.ts.map +1 -0
- package/dist/storage/agent-message.record.descriptor.js +72 -0
- package/dist/storage/agent-message.record.descriptor.js.map +1 -0
- package/dist/storage/file-access.record.descriptor.d.ts +104 -0
- package/dist/storage/file-access.record.descriptor.d.ts.map +1 -0
- package/dist/storage/file-access.record.descriptor.js +370 -0
- package/dist/storage/file-access.record.descriptor.js.map +1 -0
- package/dist/storage/touch-identity.d.ts +43 -0
- package/dist/storage/touch-identity.d.ts.map +1 -0
- package/dist/storage/touch-identity.js +155 -0
- package/dist/storage/touch-identity.js.map +1 -0
- package/dist/svelte/external-svelte.plugin.d.ts +39 -0
- package/dist/svelte/external-svelte.plugin.d.ts.map +1 -0
- package/dist/svelte/external-svelte.plugin.js +25 -0
- package/dist/svelte/index.d.ts +11 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +10 -0
- package/dist/svelte/styles.css +8 -0
- package/dist/svelte/tool-widgets/ExternalToolCard.svelte +71 -0
- package/dist/svelte/tool-widgets/ExternalToolCard.svelte.d.ts +5 -0
- package/dist/svelte/tool-widgets/ExternalToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.d.ts +3 -0
- package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.js +2 -0
- package/dist/svelte/tool-widgets/summary.d.ts +27 -0
- package/dist/svelte/tool-widgets/summary.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/summary.js +198 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/unified/action-descriptors.d.ts +185 -0
- package/dist/tools/unified/action-descriptors.d.ts.map +1 -0
- package/dist/tools/unified/action-descriptors.js +10 -0
- package/dist/tools/unified/action-descriptors.js.map +1 -0
- package/dist/tools/unified/action-input.d.ts +7 -0
- package/dist/tools/unified/action-input.d.ts.map +1 -0
- package/dist/tools/unified/action-input.js +13 -0
- package/dist/tools/unified/action-input.js.map +1 -0
- package/dist/tools/unified/actions.d.ts +10 -0
- package/dist/tools/unified/actions.d.ts.map +1 -0
- package/dist/tools/unified/actions.js +26 -0
- package/dist/tools/unified/actions.js.map +1 -0
- package/dist/tools/unified/external.descriptor.d.ts +30 -0
- package/dist/tools/unified/external.descriptor.d.ts.map +1 -0
- package/dist/tools/unified/external.descriptor.js +27 -0
- package/dist/tools/unified/external.descriptor.js.map +1 -0
- package/dist/tools/unified/external.impl.consumer.d.ts +8 -0
- package/dist/tools/unified/external.impl.consumer.d.ts.map +1 -0
- package/dist/tools/unified/external.impl.consumer.js +38 -0
- package/dist/tools/unified/external.impl.consumer.js.map +1 -0
- package/dist/tools/unified/handlers/context-summary.d.ts +4 -0
- package/dist/tools/unified/handlers/context-summary.d.ts.map +1 -0
- package/dist/tools/unified/handlers/context-summary.js +271 -0
- package/dist/tools/unified/handlers/context-summary.js.map +1 -0
- package/dist/tools/unified/handlers/file-access-list.d.ts +4 -0
- package/dist/tools/unified/handlers/file-access-list.d.ts.map +1 -0
- package/dist/tools/unified/handlers/file-access-list.js +39 -0
- package/dist/tools/unified/handlers/file-access-list.js.map +1 -0
- package/dist/tools/unified/handlers/file-access-track.d.ts +4 -0
- package/dist/tools/unified/handlers/file-access-track.d.ts.map +1 -0
- package/dist/tools/unified/handlers/file-access-track.js +34 -0
- package/dist/tools/unified/handlers/file-access-track.js.map +1 -0
- package/dist/tools/unified/handlers/hook-call.d.ts +23 -0
- package/dist/tools/unified/handlers/hook-call.d.ts.map +1 -0
- package/dist/tools/unified/handlers/hook-call.js +86 -0
- package/dist/tools/unified/handlers/hook-call.js.map +1 -0
- package/dist/tools/unified/handlers/hook-generator.d.ts +4 -0
- package/dist/tools/unified/handlers/hook-generator.d.ts.map +1 -0
- package/dist/tools/unified/handlers/hook-generator.js +37 -0
- package/dist/tools/unified/handlers/hook-generator.js.map +1 -0
- package/dist/tools/unified/handlers/signal.d.ts +22 -0
- package/dist/tools/unified/handlers/signal.d.ts.map +1 -0
- package/dist/tools/unified/handlers/signal.js +114 -0
- package/dist/tools/unified/handlers/signal.js.map +1 -0
- package/dist/tools/unified/index.d.ts +6 -0
- package/dist/tools/unified/index.d.ts.map +1 -0
- package/dist/tools/unified/index.js +6 -0
- package/dist/tools/unified/index.js.map +1 -0
- package/dist/tools/unified/install/handler.d.ts +4 -0
- package/dist/tools/unified/install/handler.d.ts.map +1 -0
- package/dist/tools/unified/install/handler.js +17 -0
- package/dist/tools/unified/install/handler.js.map +1 -0
- package/dist/tools/unified/runtime.d.ts +35 -0
- package/dist/tools/unified/runtime.d.ts.map +1 -0
- package/dist/tools/unified/runtime.js +23 -0
- package/dist/tools/unified/runtime.js.map +1 -0
- package/dist/tools/unified/schemas.d.ts +160 -0
- package/dist/tools/unified/schemas.d.ts.map +1 -0
- package/dist/tools/unified/schemas.js +139 -0
- package/dist/tools/unified/schemas.js.map +1 -0
- package/dist/utils/fs-absence.d.ts +22 -0
- package/dist/utils/fs-absence.d.ts.map +1 -0
- package/dist/utils/fs-absence.js +37 -0
- package/dist/utils/fs-absence.js.map +1 -0
- package/dist/utils/runtime-fs.d.ts +37 -0
- package/dist/utils/runtime-fs.d.ts.map +1 -0
- package/dist/utils/runtime-fs.js +100 -0
- package/dist/utils/runtime-fs.js.map +1 -0
- package/dist/utils/toml.d.ts +26 -0
- package/dist/utils/toml.d.ts.map +1 -0
- package/dist/utils/toml.js +415 -0
- package/dist/utils/toml.js.map +1 -0
- package/package.json +263 -4
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { createRuntimePlugin, createRuntimeKind, loader, } from '@vibesdotdev/kernel';
|
|
2
|
+
import { ExternalHostDescriptorSchema } from "./external-tool/schemas/tool.js";
|
|
3
|
+
import { ExternalAdapterDescriptorSchema } from "./external-adapter/schemas/adapter.js";
|
|
4
|
+
import { mcpExternalAdapterDescriptor, skillsExternalAdapterDescriptor, hooksExternalAdapterDescriptor, pluginsExternalAdapterDescriptor } from "./external-adapter/descriptors.js";
|
|
5
|
+
import { ExternalClient, getVibesExternalClient } from "./client/external-client.js";
|
|
6
|
+
import { EXTERNAL_HOOK_ADAPTER_KIND, ExternalHookAdapterDescriptorSchema } from "./hooks/runtime.js";
|
|
7
|
+
import { externalPresetKind, externalProfileKind, externalOperationKind } from "./runtime.js";
|
|
8
|
+
import { externalCliProjectorKind } from "./runtime/external-surface-projector.js";
|
|
9
|
+
import { externalConfigInstallerKind, jsonMcpInstallerDescriptor, shellHooksInstallerDescriptor, tomlMcpInstallerDescriptor, yamlMcpInstallerDescriptor } from "./plugins/installers/runtime.js";
|
|
10
|
+
import { ACCOUNT_AGENT_ROSTER_PROVIDER_ID, EXTERNAL_AGENT_ROSTER_PROVIDER_KIND, accountAgentRosterProviderDescriptor, externalAgentRosterProviderKind } from "./runtime/agent-roster-provider.js";
|
|
11
|
+
export { enforceFileAccessRetention, FILE_ACCESS_RETENTION_INTERVAL_MS, AGENT_ROSTER_HEARTBEAT_INTERVAL_MS, FILE_ACCESS_RETENTION_TIMEOUT_MS, AGENT_ROSTER_HEARTBEAT_TIMEOUT_MS } from "./client/lifecycle.js";
|
|
12
|
+
import ambientDocsTopic from "./docs/external.ambient.docs.descriptor.js";
|
|
13
|
+
import { externalHarnessPromptDescriptors } from "./harness/prompts/index.js";
|
|
14
|
+
import externalConfigDescriptor from "./config/external.config.descriptor.js";
|
|
15
|
+
// Unified tool
|
|
16
|
+
import externalToolDescriptor from "./tools/unified/external.descriptor.js";
|
|
17
|
+
import { externalActionKind } from "./tools/unified/runtime.js";
|
|
18
|
+
import { contextSummaryActionDescriptor, fileAccessListActionDescriptor, fileAccessTrackActionDescriptor, hookCallActionDescriptor, hookGeneratorActionDescriptor, installActionDescriptor, signalInboxActionDescriptor, signalSendActionDescriptor } from "./tools/unified/action-descriptors.js";
|
|
19
|
+
// Storage + logging
|
|
20
|
+
import fileAccessDescriptor from "./storage/file-access.record.descriptor.js";
|
|
21
|
+
import fileAccessAmbientSubscription from "./ambient/file-access-ambient.subscription.descriptor.js";
|
|
22
|
+
import fileAccessAmbientFsSubscription from "./ambient/file-access-ambient-fs.subscription.descriptor.js";
|
|
23
|
+
import fileAccessAmbientDrainSubscription from "./ambient/file-access-ambient-drain.subscription.descriptor.js";
|
|
24
|
+
import agentMessageDescriptor from "./storage/agent-message.record.descriptor.js";
|
|
25
|
+
import { launchStateRecordDescriptor } from "./launch/consumer/state-rows.js";
|
|
26
|
+
import { reviewStateRecordDescriptor } from "./hooks/review-state.js";
|
|
27
|
+
import subagentOutput from "./ingest/logging/subagent-completions.output.descriptor.js";
|
|
28
|
+
import successOutput from "./ingest/logging/success-patterns.output.descriptor.js";
|
|
29
|
+
import toolUseOutput from "./ingest/logging/tool-use.output.descriptor.js";
|
|
30
|
+
import externalHarnessExecutorDescriptor from "./launch/task-executor/external-harness.descriptor.js";
|
|
31
|
+
const externalHostKind = createRuntimeKind({
|
|
32
|
+
id: 'external/host',
|
|
33
|
+
descriptorSchema: ExternalHostDescriptorSchema,
|
|
34
|
+
contexts: ['runtime/workspace-path']
|
|
35
|
+
});
|
|
36
|
+
const externalAdapterKind = createRuntimeKind({
|
|
37
|
+
id: 'external/adapter',
|
|
38
|
+
descriptorSchema: ExternalAdapterDescriptorSchema
|
|
39
|
+
});
|
|
40
|
+
const externalHookAdapterKind = createRuntimeKind({
|
|
41
|
+
id: EXTERNAL_HOOK_ADAPTER_KIND,
|
|
42
|
+
descriptorSchema: ExternalHookAdapterDescriptorSchema
|
|
43
|
+
});
|
|
44
|
+
const externalClientDescriptor = {
|
|
45
|
+
id: 'external',
|
|
46
|
+
kind: 'runtime/client',
|
|
47
|
+
name: 'External Client',
|
|
48
|
+
description: 'Canonical client for external tool projection',
|
|
49
|
+
configManifestId: 'external'
|
|
50
|
+
};
|
|
51
|
+
export const externalPlugin = createRuntimePlugin({
|
|
52
|
+
id: 'external',
|
|
53
|
+
name: 'External',
|
|
54
|
+
description: 'Projects Vibes capabilities into external tools through runtime adapters',
|
|
55
|
+
kinds: [
|
|
56
|
+
externalHostKind,
|
|
57
|
+
externalAdapterKind,
|
|
58
|
+
externalHookAdapterKind,
|
|
59
|
+
externalPresetKind,
|
|
60
|
+
externalProfileKind,
|
|
61
|
+
externalOperationKind,
|
|
62
|
+
externalCliProjectorKind,
|
|
63
|
+
externalActionKind,
|
|
64
|
+
externalConfigInstallerKind,
|
|
65
|
+
externalAgentRosterProviderKind
|
|
66
|
+
],
|
|
67
|
+
onRegister: async (runtime) => {
|
|
68
|
+
runtime.registerLoader('external/adapter', mcpExternalAdapterDescriptor.id, async () => ({
|
|
69
|
+
impl: (await import("./external-adapter/implementations.js")).mcpExternalAdapter(runtime)
|
|
70
|
+
}), { constraint: { hardware: ['consumer'] } });
|
|
71
|
+
runtime.registerLoader('external/adapter', skillsExternalAdapterDescriptor.id, async () => ({
|
|
72
|
+
impl: (await import("./external-adapter/implementations.js")).skillsExternalAdapter(runtime)
|
|
73
|
+
}), { constraint: { hardware: ['consumer'] } });
|
|
74
|
+
runtime.registerLoader('external/adapter', hooksExternalAdapterDescriptor.id, async () => ({
|
|
75
|
+
impl: (await import("./external-adapter/implementations.js")).hooksExternalAdapter(runtime)
|
|
76
|
+
}), { constraint: { hardware: ['consumer'] } });
|
|
77
|
+
runtime.registerLoader('external/adapter', pluginsExternalAdapterDescriptor.id, async () => ({
|
|
78
|
+
impl: (await import("./external-adapter/implementations.js")).pluginsExternalAdapter(runtime)
|
|
79
|
+
}), { constraint: { hardware: ['consumer'] } });
|
|
80
|
+
// Register the external client descriptor with runtime-client
|
|
81
|
+
runtime.registerDescriptor('runtime/client', externalClientDescriptor);
|
|
82
|
+
runtime.registerLoader('runtime/client', 'external', async () => ({
|
|
83
|
+
impl: ExternalClient
|
|
84
|
+
}));
|
|
85
|
+
runtime.registerLoader(EXTERNAL_AGENT_ROSTER_PROVIDER_KIND, ACCOUNT_AGENT_ROSTER_PROVIDER_ID, async () => {
|
|
86
|
+
const { CloudAgentRosterProvider } = await import("./ambient/cloud-agent-roster-provider.impl.js");
|
|
87
|
+
const { asCallerBearerRuntime } = await import("./ambient/cloud-authenticated-json.js");
|
|
88
|
+
return { impl: new CloudAgentRosterProvider(asCallerBearerRuntime(runtime)) };
|
|
89
|
+
}, { constraint: { hardware: ['consumer'] } });
|
|
90
|
+
},
|
|
91
|
+
onActivate: async (runtime) => {
|
|
92
|
+
const client = await getVibesExternalClient(runtime);
|
|
93
|
+
await client.activateBackgroundWork();
|
|
94
|
+
},
|
|
95
|
+
onDispose: async (runtime) => {
|
|
96
|
+
// Finalization has aborted the lifecycle signal, so use the kernel's
|
|
97
|
+
// existing asset directly; never initialize a client during cleanup.
|
|
98
|
+
if (!runtime.hasKind('runtime/client'))
|
|
99
|
+
return;
|
|
100
|
+
await runtime.query('runtime/client').withId('external').peek?.()?.dispose();
|
|
101
|
+
},
|
|
102
|
+
descriptors: [
|
|
103
|
+
externalConfigDescriptor,
|
|
104
|
+
externalHarnessExecutorDescriptor,
|
|
105
|
+
ambientDocsTopic,
|
|
106
|
+
...externalHarnessPromptDescriptors,
|
|
107
|
+
// Canonical external projection kinds
|
|
108
|
+
accountAgentRosterProviderDescriptor,
|
|
109
|
+
mcpExternalAdapterDescriptor,
|
|
110
|
+
skillsExternalAdapterDescriptor,
|
|
111
|
+
hooksExternalAdapterDescriptor,
|
|
112
|
+
pluginsExternalAdapterDescriptor,
|
|
113
|
+
jsonMcpInstallerDescriptor,
|
|
114
|
+
tomlMcpInstallerDescriptor,
|
|
115
|
+
yamlMcpInstallerDescriptor,
|
|
116
|
+
shellHooksInstallerDescriptor,
|
|
117
|
+
// Unified tool
|
|
118
|
+
externalToolDescriptor,
|
|
119
|
+
fileAccessTrackActionDescriptor,
|
|
120
|
+
fileAccessListActionDescriptor,
|
|
121
|
+
contextSummaryActionDescriptor,
|
|
122
|
+
hookGeneratorActionDescriptor,
|
|
123
|
+
installActionDescriptor,
|
|
124
|
+
hookCallActionDescriptor,
|
|
125
|
+
signalSendActionDescriptor,
|
|
126
|
+
signalInboxActionDescriptor,
|
|
127
|
+
// Storage + logging
|
|
128
|
+
fileAccessDescriptor,
|
|
129
|
+
// Ambient file-touch: records every workspace-fs touch and appends the
|
|
130
|
+
// collision notice. Re-homes the write path orphaned by the
|
|
131
|
+
// workspace -> workspace-fs split.
|
|
132
|
+
fileAccessAmbientSubscription,
|
|
133
|
+
fileAccessAmbientFsSubscription,
|
|
134
|
+
fileAccessAmbientDrainSubscription,
|
|
135
|
+
// Ephemeral agent-to-agent messages (same-machine leg; cross-machine
|
|
136
|
+
// rides the ambient projection endpoint).
|
|
137
|
+
agentMessageDescriptor,
|
|
138
|
+
launchStateRecordDescriptor,
|
|
139
|
+
reviewStateRecordDescriptor,
|
|
140
|
+
subagentOutput,
|
|
141
|
+
successOutput,
|
|
142
|
+
toolUseOutput
|
|
143
|
+
],
|
|
144
|
+
loaders: [
|
|
145
|
+
loader(externalHarnessExecutorDescriptor.id, { kind: externalHarnessExecutorDescriptor.kind, scope: 'consumer' }, () => import("./launch/task-executor/external-harness.impl.consumer.js")),
|
|
146
|
+
loader(jsonMcpInstallerDescriptor.id, { kind: 'external/config-installer', scope: 'consumer' }, async () => {
|
|
147
|
+
const { JsonMcpInstaller } = await import("./plugins/installers/mcp/json-installer.js");
|
|
148
|
+
return { impl: new JsonMcpInstaller() };
|
|
149
|
+
}),
|
|
150
|
+
loader(tomlMcpInstallerDescriptor.id, { kind: 'external/config-installer', scope: 'consumer' }, async () => {
|
|
151
|
+
const { TomlMcpInstaller } = await import("./plugins/installers/mcp/toml-installer.js");
|
|
152
|
+
return { impl: new TomlMcpInstaller() };
|
|
153
|
+
}),
|
|
154
|
+
loader(yamlMcpInstallerDescriptor.id, { kind: 'external/config-installer', scope: 'consumer' }, async () => {
|
|
155
|
+
const { YamlMcpInstaller } = await import("./plugins/installers/mcp/yaml-installer.js");
|
|
156
|
+
return { impl: new YamlMcpInstaller() };
|
|
157
|
+
}),
|
|
158
|
+
loader(shellHooksInstallerDescriptor.id, { kind: 'external/config-installer', scope: 'consumer' }, async () => {
|
|
159
|
+
const { ShellHooksInstaller } = await import("./plugins/installers/hooks/shell-installer.js");
|
|
160
|
+
return { impl: new ShellHooksInstaller() };
|
|
161
|
+
}),
|
|
162
|
+
// Ambient file-touch subscription handler (workspace-fs tool calls).
|
|
163
|
+
loader('external.file-access.ambient', () => import("./ambient/file-access-ambient.impl.js")),
|
|
164
|
+
// Ambient file-touch subscription handler (OS-level filesystem watcher).
|
|
165
|
+
loader('external.file-access.ambient-fs', () => import("./ambient/file-access-ambient-fs.impl.js")),
|
|
166
|
+
// Ambient notice drain — delivers pending notices on any tool call.
|
|
167
|
+
loader('external.file-access.ambient-drain', () => import("./ambient/file-access-ambient-drain.impl.js")),
|
|
168
|
+
// windsurf + cline now detect + configure through the manifest-driven
|
|
169
|
+
// DefaultExternalHost (platformPaths / extensionMatch) — no bespoke
|
|
170
|
+
// tool implementations (#816).
|
|
171
|
+
// Unified tool
|
|
172
|
+
loader('external', { kind: 'tools/tool', scope: 'consumer' }, () => import("./tools/unified/external.impl.consumer.js")),
|
|
173
|
+
loader(fileAccessTrackActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).fileAccessTrackAction })),
|
|
174
|
+
loader(fileAccessListActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).fileAccessListAction })),
|
|
175
|
+
loader(contextSummaryActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).contextSummaryAction })),
|
|
176
|
+
loader(hookGeneratorActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).hookGeneratorAction })),
|
|
177
|
+
loader(installActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).installAction })),
|
|
178
|
+
loader(hookCallActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).hookCallAction })),
|
|
179
|
+
loader(signalSendActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).signalSendAction })),
|
|
180
|
+
loader(signalInboxActionDescriptor.id, { kind: 'external/action', scope: 'consumer' }, async () => ({ impl: (await import("./tools/unified/actions.js")).signalInboxAction }))
|
|
181
|
+
]
|
|
182
|
+
});
|
|
183
|
+
export default externalPlugin;
|
|
184
|
+
//# sourceMappingURL=external.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.plugin.js","sourceRoot":"","sources":["../src/external.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,GACN,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EACN,4BAA4B,EAC5B,+BAA+B,EAC/B,8BAA8B,EAC9B,gCAAgC,EAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EACN,0BAA0B,EAC1B,mCAAmC,EACnC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EACN,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,+BAA+B,EAC/B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAE/M,OAAO,gBAAgB,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,wBAAwB,MAAM,wCAAwC,CAAC;AAE9E,eAAe;AACf,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EAAE,CAAC,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAClF;QACD,MAAM,CACL,wBAAwB,CAAC,EAAE,EAC3B,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE,EAC9C,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CACnF;QACD,MAAM,CACL,0BAA0B,CAAC,EAAE,EAC7B,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE,EAC9C,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CACrF;QACD,MAAM,CACL,2BAA2B,CAAC,EAAE,EAC9B,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE,EAC9C,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC,CACtF;KACD;CACD,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scope an agent host declares when it boots a runtime.
|
|
3
|
+
*
|
|
4
|
+
* An agent host is not a new surface the runtime has to be taught: it is the CLI
|
|
5
|
+
* host's own declaration for a persistent, interactive, local session — same host
|
|
6
|
+
* identity, same workspace access — so a command or a tool resolves under an
|
|
7
|
+
* agent host exactly as it would under `vibes`. That sameness is the point. A
|
|
8
|
+
* scope that claimed something extra would make the agent host's answers differ
|
|
9
|
+
* from the ones the same workspace gives the terminal, and there would be two
|
|
10
|
+
* truths about what a plugin provides.
|
|
11
|
+
*
|
|
12
|
+
* It is its own module because declaring a scope is not booting a runtime: a host
|
|
13
|
+
* declares one, the kernel resolves it, and neither step needs the other's code.
|
|
14
|
+
*/
|
|
15
|
+
import type { AgentHostScope, AgentHostScopeInput } from './schemas/agent-host.ts';
|
|
16
|
+
/** The CLI host's own declaration for a persistent, interactive, local session. */
|
|
17
|
+
export declare function agentHostScope(input: AgentHostScopeInput): AgentHostScope;
|
|
18
|
+
//# sourceMappingURL=agent-host-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host-scope.d.ts","sourceRoot":"","sources":["../../src/harness/agent-host-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnF,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,cAAc,CAazE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scope an agent host declares when it boots a runtime.
|
|
3
|
+
*
|
|
4
|
+
* An agent host is not a new surface the runtime has to be taught: it is the CLI
|
|
5
|
+
* host's own declaration for a persistent, interactive, local session — same host
|
|
6
|
+
* identity, same workspace access — so a command or a tool resolves under an
|
|
7
|
+
* agent host exactly as it would under `vibes`. That sameness is the point. A
|
|
8
|
+
* scope that claimed something extra would make the agent host's answers differ
|
|
9
|
+
* from the ones the same workspace gives the terminal, and there would be two
|
|
10
|
+
* truths about what a plugin provides.
|
|
11
|
+
*
|
|
12
|
+
* It is its own module because declaring a scope is not booting a runtime: a host
|
|
13
|
+
* declares one, the kernel resolves it, and neither step needs the other's code.
|
|
14
|
+
*/
|
|
15
|
+
/** The CLI host's own declaration for a persistent, interactive, local session. */
|
|
16
|
+
export function agentHostScope(input) {
|
|
17
|
+
const scope = {
|
|
18
|
+
surface: 'agent',
|
|
19
|
+
hardware: 'consumer',
|
|
20
|
+
purpose: 'projection',
|
|
21
|
+
lifecycle: 'persistent',
|
|
22
|
+
hosting: { mode: 'local', owner: 'consumer', venue: 'user-device' },
|
|
23
|
+
capabilities: { interactiveSession: true },
|
|
24
|
+
workspace: { root: input.workspaceRoot, access: 'write' }
|
|
25
|
+
};
|
|
26
|
+
// The qualifier is added only when the host declares one, so a scope with no
|
|
27
|
+
// `dev` fact carries no `dev` key rather than an empty one.
|
|
28
|
+
return input.dev === undefined ? scope : { ...scope, qualifiers: { dev: input.dev } };
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=agent-host-scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host-scope.js","sourceRoot":"","sources":["../../src/harness/agent-host-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,mFAAmF;AACnF,MAAM,UAAU,cAAc,CAAC,KAA0B;IACxD,MAAM,KAAK,GAAmB;QAC7B,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE;QACnE,YAAY,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;QAC1C,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE;KACzD,CAAC;IACF,6EAA6E;IAC7E,4DAA4D;IAC5D,OAAO,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
import { type AgentHostSettings } from './schemas/agent-host.ts';
|
|
3
|
+
export declare const agentHostSettingsPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
4
|
+
/** Unconfigured hosts keep forwarding; an admitted manifest's failures propagate. */
|
|
5
|
+
export declare function readAgentHostSettings(runtime: RuntimeRef): Promise<AgentHostSettings>;
|
|
6
|
+
//# sourceMappingURL=agent-host-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host-settings.d.ts","sourceRoot":"","sources":["../../src/harness/agent-host-settings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,eAAO,MAAM,uBAAuB,6CAKlC,CAAC;AAEH,qFAAqF;AACrF,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAI3F"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** The agent host's command policy, resolved through Config's existing kind. */
|
|
2
|
+
import { ConfigManifest } from '@vibesdotdev/config/manifest/config-manifest';
|
|
3
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
4
|
+
import descriptor, { AGENT_HOST_CONFIG_MANIFEST_ID } from "./agent-host.config.descriptor.js";
|
|
5
|
+
import { AgentHostSettingsSchema } from "./schemas/agent-host.js";
|
|
6
|
+
export const agentHostSettingsPlugin = createRuntimePlugin({
|
|
7
|
+
id: 'external.agent-host',
|
|
8
|
+
name: 'Agent host settings',
|
|
9
|
+
optionalDependencies: ['config'],
|
|
10
|
+
descriptors: [descriptor]
|
|
11
|
+
});
|
|
12
|
+
/** Unconfigured hosts keep forwarding; an admitted manifest's failures propagate. */
|
|
13
|
+
export async function readAgentHostSettings(runtime) {
|
|
14
|
+
return ConfigManifest.isRegistered(runtime, AGENT_HOST_CONFIG_MANIFEST_ID)
|
|
15
|
+
? ConfigManifest.forRuntime(runtime, AGENT_HOST_CONFIG_MANIFEST_ID).load()
|
|
16
|
+
: AgentHostSettingsSchema.parse({});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=agent-host-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host-settings.js","sourceRoot":"","sources":["../../src/harness/agent-host-settings.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAmB,MAAM,qBAAqB,CAAC;AAC3E,OAAO,UAAU,EAAE,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAA0B,MAAM,yBAAyB,CAAC;AAE1F,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;IAC1D,EAAE,EAAE,qBAAqB;IACzB,IAAI,EAAE,qBAAqB;IAC3B,oBAAoB,EAAE,CAAC,QAAQ,CAAC;IAChC,WAAW,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC,CAAC;AAEH,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAAmB;IAC9D,OAAO,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,6BAA6B,CAAC;QACzE,CAAC,CAAC,cAAc,CAAC,UAAU,CAAoB,OAAO,EAAE,6BAA6B,CAAC,CAAC,IAAI,EAAE;QAC7F,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Command delivery is a host composition policy, with no stored edit layer. */
|
|
2
|
+
import type { ConfigManifestDescriptor } from '@vibesdotdev/config/schemas/config-manifest-descriptor';
|
|
3
|
+
export declare const AGENT_HOST_CONFIG_MANIFEST_ID = "external.agent-host";
|
|
4
|
+
declare const descriptor: ConfigManifestDescriptor;
|
|
5
|
+
export default descriptor;
|
|
6
|
+
//# sourceMappingURL=agent-host.config.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host.config.descriptor.d.ts","sourceRoot":"","sources":["../../src/harness/agent-host.config.descriptor.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAGvG,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE,QAAA,MAAM,UAAU,EAAE,wBAiBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AgentHostSettingsSchema } from "./schemas/agent-host.js";
|
|
2
|
+
export const AGENT_HOST_CONFIG_MANIFEST_ID = 'external.agent-host';
|
|
3
|
+
const descriptor = {
|
|
4
|
+
kind: 'config/manifest',
|
|
5
|
+
id: AGENT_HOST_CONFIG_MANIFEST_ID,
|
|
6
|
+
name: 'Agent host commands',
|
|
7
|
+
description: 'Delivery policy for commands projected into an agent host',
|
|
8
|
+
namespace: AGENT_HOST_CONFIG_MANIFEST_ID,
|
|
9
|
+
schema: AgentHostSettingsSchema,
|
|
10
|
+
allowedAdapters: ['storage.memory'],
|
|
11
|
+
storedLayer: 'none',
|
|
12
|
+
scope: 'global',
|
|
13
|
+
customTables: false,
|
|
14
|
+
version: 1,
|
|
15
|
+
internal: true,
|
|
16
|
+
tier: 'internal',
|
|
17
|
+
category: 'integration',
|
|
18
|
+
fields: { commandCaptureDelivery: { ui: { label: 'Command output delivery' } } },
|
|
19
|
+
enabled: true
|
|
20
|
+
};
|
|
21
|
+
export default descriptor;
|
|
22
|
+
//# sourceMappingURL=agent-host.config.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host.config.descriptor.js","sourceRoot":"","sources":["../../src/harness/agent-host.config.descriptor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,UAAU,GAA6B;IAC5C,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAE,6BAA6B;IACjC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,2DAA2D;IACxE,SAAS,EAAE,6BAA6B;IACxC,MAAM,EAAE,uBAAuB;IAC/B,eAAe,EAAE,CAAC,gBAAgB,CAAC;IACnC,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,QAAQ;IACf,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAE,EAAE;IAChF,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent-host runtime: one booted Vibes runtime, queried for whatever the
|
|
3
|
+
* host can present.
|
|
4
|
+
*
|
|
5
|
+
* A coding-agent host (Pi, OpenCode, ACP, any future one) is not a second package
|
|
6
|
+
* manager and not a second catalog. It boots ONE real runtime through the
|
|
7
|
+
* kernel's own entry — the same composition the `vibes` binary uses: the CLI
|
|
8
|
+
* host's plugin floor, then the global scope, then the workspace the host runs
|
|
9
|
+
* in — and then *queries* it. Every tool, command, prompt, model and provider a
|
|
10
|
+
* host shows the model is a view over a kind that runtime already holds, and a
|
|
11
|
+
* host that cannot ask a kind has no equivalent for it, so it maps nothing.
|
|
12
|
+
*
|
|
13
|
+
* Why the mapping lives in Framework rather than in a host package is that every
|
|
14
|
+
* one of these mappings is the SAME mapping: Pi and OpenCode differ in how they
|
|
15
|
+
* render a tool row and how they name a command, never in where the descriptor
|
|
16
|
+
* comes from. The environment is injected, never imported — a host runs on Node
|
|
17
|
+
* or Bun and declares its own, so Framework holds the portable policy and the
|
|
18
|
+
* host holds the composition root.
|
|
19
|
+
*
|
|
20
|
+
* The scope it boots under is `agent-host-scope.ts`; the contracts are in
|
|
21
|
+
* `schemas/agent-host.ts`; running, capturing and parsing a command are
|
|
22
|
+
* `command-execution.ts`, `command-output.ts` and `command-arguments.ts`.
|
|
23
|
+
*/
|
|
24
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
25
|
+
import type { CLICommandAssetDescriptor, CLIGroupAssetDescriptor, CommandOptions } from '@vibesdotdev/cli-contracts';
|
|
26
|
+
import type { PromptsManifestDescriptor } from '@vibesdotdev/ai-schemas';
|
|
27
|
+
import { type HostToolInput, type LiveToolDescriptor } from './live-tools.ts';
|
|
28
|
+
import { type AgentHostCatalog, type AgentHostCommandResult, type AgentHostDescriptor, type AgentHostInvokeOptions, type CommandInvocation, type BootAgentHostOptions, type HostJson } from './schemas/agent-host.ts';
|
|
29
|
+
export type * from './schemas/agent-host.ts';
|
|
30
|
+
export { agentHostSettingsPlugin } from './agent-host-settings.ts';
|
|
31
|
+
/** The kinds this host projection knows how to ask. A kind it cannot map is simply not queried. */
|
|
32
|
+
export declare const AGENT_HOST_KINDS: {
|
|
33
|
+
readonly tools: "tools/tool";
|
|
34
|
+
readonly groups: "cli/group";
|
|
35
|
+
readonly commands: "cli/command";
|
|
36
|
+
readonly prompts: "prompts/manifest";
|
|
37
|
+
readonly models: "ai/model";
|
|
38
|
+
readonly providers: "ai/provider";
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* One booted runtime, queried.
|
|
42
|
+
*
|
|
43
|
+
* The class owns the runtime's whole life: it boots it, and `dispose` releases
|
|
44
|
+
* it exactly once however many times a host calls it. A host that switches
|
|
45
|
+
* workspaces disposes the previous host before booting the next, so two runtimes
|
|
46
|
+
* never own the same workspace.
|
|
47
|
+
*/
|
|
48
|
+
export declare class VibesAgentHost {
|
|
49
|
+
readonly runtime: VibesRuntime;
|
|
50
|
+
readonly root: string;
|
|
51
|
+
readonly workspaceRoot: string;
|
|
52
|
+
private calls;
|
|
53
|
+
/** One execution at a time: the CLI's own invariant, kept for the same exclusive stdio lease. */
|
|
54
|
+
private readonly executions;
|
|
55
|
+
private constructor();
|
|
56
|
+
/**
|
|
57
|
+
* Boot one runtime for an agent host session.
|
|
58
|
+
*
|
|
59
|
+
* The composition is a workspace composition, so the kernel finds the
|
|
60
|
+
* workspace's own `vibes.config` and composes its plugins on top of the host's
|
|
61
|
+
* floor. This headless harness omits package exports that declare the TUI
|
|
62
|
+
* surface while keeping the rest of the selected workspace graph.
|
|
63
|
+
*/
|
|
64
|
+
static boot(options: BootAgentHostOptions): Promise<VibesAgentHost>;
|
|
65
|
+
/** Every registry this host can answer, read in one pass over the kernel's own kind list. */
|
|
66
|
+
catalogs(): AgentHostCatalog;
|
|
67
|
+
/**
|
|
68
|
+
* The live `tools/tool` registry in its wire form, through the daemon socket's
|
|
69
|
+
* own serializer — so a host receives JSON Schema exactly as the socket served
|
|
70
|
+
* it, one schema path for every transport rather than one per host.
|
|
71
|
+
*/
|
|
72
|
+
catalog(): LiveToolDescriptor[];
|
|
73
|
+
/** The live `cli/group` registry: how the host nests commands under a prefix. */
|
|
74
|
+
groups(): readonly CLIGroupAssetDescriptor[];
|
|
75
|
+
/** The live `cli/command` registry: the commands this host can offer. */
|
|
76
|
+
commands(): readonly CLICommandAssetDescriptor[];
|
|
77
|
+
/** The live `prompts/manifest` registry: the prompts this host can render. */
|
|
78
|
+
prompts(): readonly PromptsManifestDescriptor[];
|
|
79
|
+
/** The live `ai/model` and `ai/provider` registries, when the workspace composed the AI plugin. */
|
|
80
|
+
models(): readonly AgentHostDescriptor[];
|
|
81
|
+
providers(): readonly AgentHostDescriptor[];
|
|
82
|
+
/**
|
|
83
|
+
* Run `toolId` as the caller this host session names, through the same path
|
|
84
|
+
* `vibes tools run` uses; the host's abort signal reaches the tool. Both
|
|
85
|
+
* ends are JSON because a host bridge carries JSON; a tool whose output is
|
|
86
|
+
* not JSON fails at this boundary rather than handing a host a value it
|
|
87
|
+
* cannot render or forward.
|
|
88
|
+
*/
|
|
89
|
+
invokeTool(toolId: string, input: HostToolInput, options?: AgentHostInvokeOptions): Promise<HostJson>;
|
|
90
|
+
/**
|
|
91
|
+
* Run one `cli/command` in this runtime and return what it wrote. The host's
|
|
92
|
+
* process exit code is untouched; this never calls `process.exit`.
|
|
93
|
+
*/
|
|
94
|
+
runCommand(command: CLICommandAssetDescriptor, args?: CommandOptions, options?: CommandOptions, invocation?: CommandInvocation): Promise<AgentHostCommandResult>;
|
|
95
|
+
/** Release the runtime. Idempotent: several callers may race a disposal. */
|
|
96
|
+
dispose(): Promise<void>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=agent-host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-host.d.ts","sourceRoot":"","sources":["../../src/harness/agent-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAuF,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC7I,OAAO,KAAK,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACrH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EAAiD,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK7H,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,MAAM,yBAAyB,CAAC;AAEjC,mBAAmB,yBAAyB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,mGAAmG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
|
|
5
|
+
* A coding-agent host (Pi, OpenCode, ACP, any future one) is not a second package
|
|
6
|
+
* manager and not a second catalog. It boots ONE real runtime through the
|
|
7
|
+
* kernel's own entry — the same composition the `vibes` binary uses: the CLI
|
|
8
|
+
* host's plugin floor, then the global scope, then the workspace the host runs
|
|
9
|
+
* in — and then *queries* it. Every tool, command, prompt, model and provider a
|
|
10
|
+
* host shows the model is a view over a kind that runtime already holds, and a
|
|
11
|
+
* host that cannot ask a kind has no equivalent for it, so it maps nothing.
|
|
12
|
+
*
|
|
13
|
+
* Why the mapping lives in Framework rather than in a host package is that every
|
|
14
|
+
* one of these mappings is the SAME mapping: Pi and OpenCode differ in how they
|
|
15
|
+
* render a tool row and how they name a command, never in where the descriptor
|
|
16
|
+
* comes from. The environment is injected, never imported — a host runs on Node
|
|
17
|
+
* or Bun and declares its own, so Framework holds the portable policy and the
|
|
18
|
+
* host holds the composition root.
|
|
19
|
+
*
|
|
20
|
+
* The scope it boots under is `agent-host-scope.ts`; the contracts are in
|
|
21
|
+
* `schemas/agent-host.ts`; running, capturing and parsing a command are
|
|
22
|
+
* `command-execution.ts`, `command-output.ts` and `command-arguments.ts`.
|
|
23
|
+
*/
|
|
24
|
+
import { bootstrapVibesRuntime, CapabilityError, CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
25
|
+
import { invokeToolAsCaller } from '@vibesdotdev/tools/execution';
|
|
26
|
+
import { serializeDescriptor } from '@vibesdotdev/kernel-rpc/descriptor-wire';
|
|
27
|
+
import { HostToolInputSchema, LiveToolDescriptorSchema } from "./live-tools.js";
|
|
28
|
+
import { executeHostCommand } from "./command-execution.js";
|
|
29
|
+
import { ExecutionQueue } from "./execution-queue.js";
|
|
30
|
+
import { conciseValidationFailure } from "./validation-errors.js";
|
|
31
|
+
import { JsonValueFromReaderSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
32
|
+
import {} from "./schemas/agent-host.js";
|
|
33
|
+
export { agentHostSettingsPlugin } from "./agent-host-settings.js";
|
|
34
|
+
/** The kinds this host projection knows how to ask. A kind it cannot map is simply not queried. */
|
|
35
|
+
export const AGENT_HOST_KINDS = {
|
|
36
|
+
tools: 'tools/tool',
|
|
37
|
+
groups: 'cli/group',
|
|
38
|
+
commands: 'cli/command',
|
|
39
|
+
prompts: 'prompts/manifest',
|
|
40
|
+
models: 'ai/model',
|
|
41
|
+
providers: 'ai/provider'
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* One kind's enabled descriptors, or an empty list when a plugin did not register
|
|
45
|
+
* the kind. `T` is the descriptor the kind declares: the kernel already parsed
|
|
46
|
+
* each one against that schema at registration, so a second parse here would
|
|
47
|
+
* assert a fact the registry has already established.
|
|
48
|
+
*/
|
|
49
|
+
function descriptorsOf(runtime, kind) {
|
|
50
|
+
if (!runtime.hasKind(kind))
|
|
51
|
+
return [];
|
|
52
|
+
// SAFETY: the runtime registered these descriptors under `kind`, whose
|
|
53
|
+
// descriptorSchema validated each one at registration; `T` names that shape.
|
|
54
|
+
return runtime.query(kind).enabled().descriptors();
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* One booted runtime, queried.
|
|
58
|
+
*
|
|
59
|
+
* The class owns the runtime's whole life: it boots it, and `dispose` releases
|
|
60
|
+
* it exactly once however many times a host calls it. A host that switches
|
|
61
|
+
* workspaces disposes the previous host before booting the next, so two runtimes
|
|
62
|
+
* never own the same workspace.
|
|
63
|
+
*/
|
|
64
|
+
export class VibesAgentHost {
|
|
65
|
+
runtime;
|
|
66
|
+
root;
|
|
67
|
+
workspaceRoot;
|
|
68
|
+
calls = 0;
|
|
69
|
+
/** One execution at a time: the CLI's own invariant, kept for the same exclusive stdio lease. */
|
|
70
|
+
executions = new ExecutionQueue();
|
|
71
|
+
constructor(runtime, root, workspaceRoot) {
|
|
72
|
+
this.runtime = runtime;
|
|
73
|
+
this.root = root;
|
|
74
|
+
this.workspaceRoot = workspaceRoot;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Boot one runtime for an agent host session.
|
|
78
|
+
*
|
|
79
|
+
* The composition is a workspace composition, so the kernel finds the
|
|
80
|
+
* workspace's own `vibes.config` and composes its plugins on top of the host's
|
|
81
|
+
* floor. This headless harness omits package exports that declare the TUI
|
|
82
|
+
* surface while keeping the rest of the selected workspace graph.
|
|
83
|
+
*/
|
|
84
|
+
static async boot(options) {
|
|
85
|
+
const runtime = await bootstrapVibesRuntime({
|
|
86
|
+
environment: options.environment,
|
|
87
|
+
composition: {
|
|
88
|
+
kind: 'workspace',
|
|
89
|
+
floor: { plugins: [...options.composition.floor], config: options.composition.config },
|
|
90
|
+
global: true,
|
|
91
|
+
failurePolicy: 'abort',
|
|
92
|
+
omitSurfaces: ['tui']
|
|
93
|
+
},
|
|
94
|
+
binding: options.binding ?? 'default',
|
|
95
|
+
activation: 'boot'
|
|
96
|
+
});
|
|
97
|
+
return new VibesAgentHost(runtime, options.root, options.workspaceRoot);
|
|
98
|
+
}
|
|
99
|
+
/** Every registry this host can answer, read in one pass over the kernel's own kind list. */
|
|
100
|
+
catalogs() {
|
|
101
|
+
return {
|
|
102
|
+
tools: this.catalog(),
|
|
103
|
+
groups: this.groups(),
|
|
104
|
+
commands: this.commands(),
|
|
105
|
+
prompts: this.prompts(),
|
|
106
|
+
models: this.models(),
|
|
107
|
+
providers: this.providers()
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The live `tools/tool` registry in its wire form, through the daemon socket's
|
|
112
|
+
* own serializer — so a host receives JSON Schema exactly as the socket served
|
|
113
|
+
* it, one schema path for every transport rather than one per host.
|
|
114
|
+
*/
|
|
115
|
+
catalog() {
|
|
116
|
+
return descriptorsOf(this.runtime, AGENT_HOST_KINDS.tools).map((descriptor) => LiveToolDescriptorSchema.parse(serializeDescriptor(descriptor)));
|
|
117
|
+
}
|
|
118
|
+
/** The live `cli/group` registry: how the host nests commands under a prefix. */
|
|
119
|
+
groups() {
|
|
120
|
+
return descriptorsOf(this.runtime, AGENT_HOST_KINDS.groups);
|
|
121
|
+
}
|
|
122
|
+
/** The live `cli/command` registry: the commands this host can offer. */
|
|
123
|
+
commands() {
|
|
124
|
+
return descriptorsOf(this.runtime, AGENT_HOST_KINDS.commands).filter((descriptor) => descriptor.internal !== true);
|
|
125
|
+
}
|
|
126
|
+
/** The live `prompts/manifest` registry: the prompts this host can render. */
|
|
127
|
+
prompts() {
|
|
128
|
+
return descriptorsOf(this.runtime, AGENT_HOST_KINDS.prompts);
|
|
129
|
+
}
|
|
130
|
+
/** The live `ai/model` and `ai/provider` registries, when the workspace composed the AI plugin. */
|
|
131
|
+
models() {
|
|
132
|
+
return descriptorsOf(this.runtime, AGENT_HOST_KINDS.models);
|
|
133
|
+
}
|
|
134
|
+
providers() {
|
|
135
|
+
return descriptorsOf(this.runtime, AGENT_HOST_KINDS.providers);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Run `toolId` as the caller this host session names, through the same path
|
|
139
|
+
* `vibes tools run` uses; the host's abort signal reaches the tool. Both
|
|
140
|
+
* ends are JSON because a host bridge carries JSON; a tool whose output is
|
|
141
|
+
* not JSON fails at this boundary rather than handing a host a value it
|
|
142
|
+
* cannot render or forward.
|
|
143
|
+
*/
|
|
144
|
+
async invokeTool(toolId, input, options = {}) {
|
|
145
|
+
return this.executions.run(async () => {
|
|
146
|
+
let parsedInput;
|
|
147
|
+
try {
|
|
148
|
+
parsedInput = HostToolInputSchema.safeParse(input);
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
throw new CapabilityError('Tool input could not be validated.', 'INVALID_INPUT', {
|
|
152
|
+
reason: 'agent-host-input-invalid',
|
|
153
|
+
cause: CaughtFailureSchema.parse(error)
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
if (!parsedInput.success) {
|
|
157
|
+
throw new CapabilityError(conciseValidationFailure(parsedInput.error), 'INVALID_INPUT', {
|
|
158
|
+
reason: 'agent-host-input-invalid',
|
|
159
|
+
cause: parsedInput.error
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
const output = await invokeToolAsCaller(this.runtime, {
|
|
163
|
+
toolId,
|
|
164
|
+
input: parsedInput.data,
|
|
165
|
+
callId: `agent_${Date.now()}_${++this.calls}`,
|
|
166
|
+
loggerId: 'external:agent-host',
|
|
167
|
+
session: options.session,
|
|
168
|
+
signal: options.signal
|
|
169
|
+
});
|
|
170
|
+
let parsedOutput;
|
|
171
|
+
try {
|
|
172
|
+
parsedOutput = JsonValueFromReaderSchema.safeParse(output);
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
throw new CapabilityError('Tool output could not be validated.', 'INTERNAL', {
|
|
176
|
+
reason: 'agent-host-output-invalid',
|
|
177
|
+
cause: CaughtFailureSchema.parse(error)
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
if (!parsedOutput.success) {
|
|
181
|
+
throw new CapabilityError(conciseValidationFailure(parsedOutput.error), 'INTERNAL', {
|
|
182
|
+
reason: 'agent-host-output-invalid',
|
|
183
|
+
cause: parsedOutput.error
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
return parsedOutput.data;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Run one `cli/command` in this runtime and return what it wrote. The host's
|
|
191
|
+
* process exit code is untouched; this never calls `process.exit`.
|
|
192
|
+
*/
|
|
193
|
+
runCommand(command, args = {}, options = {}, invocation = {}) {
|
|
194
|
+
return this.executions.run(() => executeHostCommand(this.runtime, command, args, options, invocation));
|
|
195
|
+
}
|
|
196
|
+
/** Release the runtime. Idempotent: several callers may race a disposal. */
|
|
197
|
+
dispose() {
|
|
198
|
+
return this.runtime.dispose();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=agent-host.js.map
|