@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,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live tool catalog for foreign hosts.
|
|
3
|
+
*
|
|
4
|
+
* The runtime's `tools/tool` registry is the only catalog. This module is the
|
|
5
|
+
* single shared projection hosts use to enumerate it: normalize one registry
|
|
6
|
+
* descriptor (warm-socket query or `vibes tools list --format json` row) into
|
|
7
|
+
* host-neutral tool data, and fetch that data over the CLI transport. Host
|
|
8
|
+
* adapters (Pi, OpenCode) add only their own registration mechanics on top;
|
|
9
|
+
* they never keep a tool list of their own.
|
|
10
|
+
*/
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import type { RunVibesFn, RunVibesSyncFn, RunVibesOptions } from '@vibesdotdev/cli-contracts';
|
|
13
|
+
import type { RuntimeHardware, RuntimePurpose, RuntimeScope } from '@vibesdotdev/kernel/schemas/scope';
|
|
14
|
+
import type { RuntimeInvokeCaller } from '@vibesdotdev/kernel/schemas/invoke-caller';
|
|
15
|
+
/** A JSON value as a registry descriptor carries it. */
|
|
16
|
+
declare const LiveJsonSchema: z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>;
|
|
17
|
+
export type LiveJson = z.output<typeof LiveJsonSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* Structural descriptor subset a host projection consumes. Satisfied by
|
|
20
|
+
* warm-socket `tools/tool` descriptors and by CLI `tools list` JSON rows;
|
|
21
|
+
* both are just views over the same registry.
|
|
22
|
+
*/
|
|
23
|
+
export declare const LiveToolDescriptorSchema: z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
|
+
description: z.ZodOptional<z.ZodString>;
|
|
27
|
+
mcpDescription: z.ZodOptional<z.ZodString>;
|
|
28
|
+
inputSchema: z.ZodOptional<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
|
|
29
|
+
schemas: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
input: z.ZodOptional<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
|
|
31
|
+
output: z.ZodOptional<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
|
|
32
|
+
actionSafety: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
safety: z.ZodOptional<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
|
|
35
|
+
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
purpose: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
hardware: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
source: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
|
+
export type LiveToolDescriptor = z.output<typeof LiveToolDescriptorSchema>;
|
|
42
|
+
export type LiveToolSchemaSource = 'runtime-schema' | 'open-object';
|
|
43
|
+
/** A published object JSON Schema: `type: "object"` and whatever else it declares. */
|
|
44
|
+
declare const ObjectJsonSchemaSchema: z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"object">;
|
|
46
|
+
}, z.core.$catchall<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
|
|
47
|
+
export type LiveToolInputSchema = z.output<typeof ObjectJsonSchemaSchema>;
|
|
48
|
+
export type NormalizedLiveTool = {
|
|
49
|
+
id: string;
|
|
50
|
+
label: string;
|
|
51
|
+
description: string;
|
|
52
|
+
inputSchema: LiveToolInputSchema;
|
|
53
|
+
/** The runtime's published output schema, when the tool has one; a host that supports structured output projects it. */
|
|
54
|
+
outputSchema?: LiveJson;
|
|
55
|
+
schemaSource: LiveToolSchemaSource;
|
|
56
|
+
safety?: LiveJson;
|
|
57
|
+
requiresApproval?: boolean;
|
|
58
|
+
schemas?: {
|
|
59
|
+
actionSafety?: Record<string, string>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* One registry descriptor becomes one host-neutral tool. Prefers the
|
|
64
|
+
* registry-published input schema (the same projection the native agent loop
|
|
65
|
+
* uses); degrades to an open object and says so in the description rather
|
|
66
|
+
* than silently accepting anything.
|
|
67
|
+
*/
|
|
68
|
+
export declare function normalizeLiveTool(descriptor: LiveToolDescriptor): NormalizedLiveTool;
|
|
69
|
+
export type LiveToolCatalogOptions = Pick<RunVibesOptions, 'cwd' | 'signal' | 'env' | 'hostEnv'> & {
|
|
70
|
+
purpose?: RuntimePurpose;
|
|
71
|
+
hardware?: RuntimeHardware;
|
|
72
|
+
caller?: RuntimeInvokeCaller;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The hardware a runtime's host declared. Hardware is read from the declared
|
|
76
|
+
* scope, never guessed from the environment; a host with no runtime passes no
|
|
77
|
+
* hardware and the child CLI answers from its own declaration.
|
|
78
|
+
*/
|
|
79
|
+
export declare function resolveExternalRuntimeHardware(runtime: {
|
|
80
|
+
readonly declaredScope: Pick<RuntimeScope, 'hardware'>;
|
|
81
|
+
}): RuntimeHardware;
|
|
82
|
+
/** Project caller and hardware identity into child CLI processes. */
|
|
83
|
+
export declare function withExternalHostEnvironment(environment?: Readonly<Record<string, string | undefined>>, context?: {
|
|
84
|
+
hardware?: RuntimeHardware;
|
|
85
|
+
caller?: RuntimeInvokeCaller;
|
|
86
|
+
env?: Record<string, string | undefined>;
|
|
87
|
+
}): {
|
|
88
|
+
[x: string]: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
/** A host tool call's input as the projection reads it: a JSON object. */
|
|
91
|
+
export declare const HostToolInputSchema: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>>;
|
|
92
|
+
export type HostToolInput = z.infer<typeof HostToolInputSchema>;
|
|
93
|
+
/**
|
|
94
|
+
* One approval decision for every native host projection. Only a declared
|
|
95
|
+
* `read` safety (the selected action's, else the tool's) runs unapproved; a
|
|
96
|
+
* missing or unrecognised declaration requires approval.
|
|
97
|
+
*/
|
|
98
|
+
export declare function requiresExternalHostApproval(descriptor: Pick<LiveToolDescriptor, 'id' | 'safety' | 'requiresApproval' | 'schemas'>, input?: HostToolInput): boolean;
|
|
99
|
+
/** Apply the host's scope and identity to the canonical CLI fallback path. */
|
|
100
|
+
export declare function withExternalHostToolContext(argv: string[], context: {
|
|
101
|
+
purpose?: RuntimePurpose;
|
|
102
|
+
hardware?: RuntimeHardware;
|
|
103
|
+
caller?: RuntimeInvokeCaller;
|
|
104
|
+
env?: Record<string, string | undefined>;
|
|
105
|
+
}): string[];
|
|
106
|
+
export type LiveCatalogSkipped = {
|
|
107
|
+
id: string;
|
|
108
|
+
reason: string;
|
|
109
|
+
};
|
|
110
|
+
export type LiveCatalogResult = {
|
|
111
|
+
tools: LiveToolDescriptor[];
|
|
112
|
+
skipped: LiveCatalogSkipped[];
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Parse `vibes tools list --format json` stdout. `--format json` promises one
|
|
116
|
+
* parseable document: a row array on success. Anything else is a loud, typed
|
|
117
|
+
* failure, never an empty catalog masquerading as truth.
|
|
118
|
+
*/
|
|
119
|
+
export declare function parseLiveToolsOutput(stdout: string): LiveCatalogResult;
|
|
120
|
+
/** Synchronous variant for hosts that register before they can await. */
|
|
121
|
+
export declare function fetchLiveToolsViaCliSync(run: RunVibesSyncFn, options: LiveToolCatalogOptions): LiveCatalogResult;
|
|
122
|
+
/**
|
|
123
|
+
* Ask the local CLI for the live registry. Fails closed with an actionable
|
|
124
|
+
* typed error; hosts register nothing on failure rather than a stale subset.
|
|
125
|
+
*/
|
|
126
|
+
export declare function fetchLiveToolsViaCli(run: RunVibesFn, options: LiveToolCatalogOptions): Promise<LiveCatalogResult>;
|
|
127
|
+
/** Read a catalog row through the descriptor schema; `undefined` when it is not one. */
|
|
128
|
+
export declare function parseLiveToolDescriptor(row: LiveJson): LiveToolDescriptor | undefined;
|
|
129
|
+
export {};
|
|
130
|
+
//# sourceMappingURL=live-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-tools.d.ts","sourceRoot":"","sources":["../../src/harness/live-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAkB,MAAM,4BAA4B,CAAC;AAC9G,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACvG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAErF,wDAAwD;AACxD,QAAA,MAAM,cAAc,iPAAkB,CAAC;AACvC,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAKvD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;iBAsB5B,CAAC;AACV,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAEpE,sFAAsF;AACtF,QAAA,MAAM,sBAAsB;;qQAAmE,CAAC;AAChG,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,C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AG,kBAAkB,GAAG,SAAS,CAErF"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live tool catalog for foreign hosts.
|
|
3
|
+
*
|
|
4
|
+
* The runtime's `tools/tool` registry is the only catalog. This module is the
|
|
5
|
+
* single shared projection hosts use to enumerate it: normalize one registry
|
|
6
|
+
* descriptor (warm-socket query or `vibes tools list --format json` row) into
|
|
7
|
+
* host-neutral tool data, and fetch that data over the CLI transport. Host
|
|
8
|
+
* adapters (Pi, OpenCode) add only their own registration mechanics on top;
|
|
9
|
+
* they never keep a tool list of their own.
|
|
10
|
+
*/
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
13
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
14
|
+
/** A JSON value as a registry descriptor carries it. */
|
|
15
|
+
const LiveJsonSchema = JsonValueSchema;
|
|
16
|
+
/** Per-action safety classes a descriptor publishes. */
|
|
17
|
+
const ActionSafetySchema = z.record(z.string(), z.string());
|
|
18
|
+
/**
|
|
19
|
+
* Structural descriptor subset a host projection consumes. Satisfied by
|
|
20
|
+
* warm-socket `tools/tool` descriptors and by CLI `tools list` JSON rows;
|
|
21
|
+
* both are just views over the same registry.
|
|
22
|
+
*/
|
|
23
|
+
export const LiveToolDescriptorSchema = z
|
|
24
|
+
.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
name: z.string().optional(),
|
|
27
|
+
description: z.string().optional(),
|
|
28
|
+
/** MCP-specific one-liner; external native hosts use the canonical description. */
|
|
29
|
+
mcpDescription: z.string().optional(),
|
|
30
|
+
/** Published input JSON Schema (CLI rows project it via `tools list`). */
|
|
31
|
+
inputSchema: LiveJsonSchema.optional(),
|
|
32
|
+
/** Registry-published schemas (socket descriptors). */
|
|
33
|
+
schemas: z
|
|
34
|
+
.object({ input: LiveJsonSchema.optional(), output: LiveJsonSchema.optional(), actionSafety: ActionSafetySchema.optional() })
|
|
35
|
+
.loose()
|
|
36
|
+
.optional(),
|
|
37
|
+
safety: LiveJsonSchema.optional(),
|
|
38
|
+
requiresApproval: z.boolean().optional(),
|
|
39
|
+
purpose: z.array(z.string()).optional(),
|
|
40
|
+
hardware: z.array(z.string()).optional(),
|
|
41
|
+
enabled: z.boolean().optional(),
|
|
42
|
+
/** CLI list rows tag their origin; `ai/tool` rows are not invokable. */
|
|
43
|
+
source: z.string().optional()
|
|
44
|
+
})
|
|
45
|
+
.loose();
|
|
46
|
+
/** A published object JSON Schema: `type: "object"` and whatever else it declares. */
|
|
47
|
+
const ObjectJsonSchemaSchema = z.object({ type: z.literal('object') }).catchall(LiveJsonSchema);
|
|
48
|
+
/** A string with something other than whitespace, trimmed. */
|
|
49
|
+
const NonBlankSchema = z.string().trim().min(1);
|
|
50
|
+
function nonBlank(value) {
|
|
51
|
+
return NonBlankSchema.safeParse(value).data;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* One registry descriptor becomes one host-neutral tool. Prefers the
|
|
55
|
+
* registry-published input schema (the same projection the native agent loop
|
|
56
|
+
* uses); degrades to an open object and says so in the description rather
|
|
57
|
+
* than silently accepting anything.
|
|
58
|
+
*/
|
|
59
|
+
export function normalizeLiveTool(descriptor) {
|
|
60
|
+
const id = descriptor.id.trim();
|
|
61
|
+
const label = nonBlank(descriptor.name) ?? id;
|
|
62
|
+
const published = [descriptor.inputSchema, descriptor.schemas?.input]
|
|
63
|
+
.map((candidate) => ObjectJsonSchemaSchema.safeParse(candidate).data)
|
|
64
|
+
.find((schema) => schema !== undefined);
|
|
65
|
+
const description = nonBlank(descriptor.mcpDescription) ?? nonBlank(descriptor.description) ?? id;
|
|
66
|
+
const tool = published
|
|
67
|
+
? { id, label, description, inputSchema: published, schemaSource: 'runtime-schema' }
|
|
68
|
+
: {
|
|
69
|
+
id,
|
|
70
|
+
label,
|
|
71
|
+
description: description + ' (untyped input: pass a JSON object)',
|
|
72
|
+
inputSchema: { type: 'object' },
|
|
73
|
+
schemaSource: 'open-object'
|
|
74
|
+
};
|
|
75
|
+
if (descriptor.schemas?.output !== undefined)
|
|
76
|
+
tool.outputSchema = descriptor.schemas.output;
|
|
77
|
+
if (descriptor.safety !== undefined)
|
|
78
|
+
tool.safety = descriptor.safety;
|
|
79
|
+
if (descriptor.requiresApproval !== undefined)
|
|
80
|
+
tool.requiresApproval = descriptor.requiresApproval;
|
|
81
|
+
const actionSafety = descriptor.schemas?.actionSafety;
|
|
82
|
+
if (actionSafety)
|
|
83
|
+
tool.schemas = { actionSafety };
|
|
84
|
+
return tool;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The hardware a runtime's host declared. Hardware is read from the declared
|
|
88
|
+
* scope, never guessed from the environment; a host with no runtime passes no
|
|
89
|
+
* hardware and the child CLI answers from its own declaration.
|
|
90
|
+
*/
|
|
91
|
+
export function resolveExternalRuntimeHardware(runtime) {
|
|
92
|
+
return runtime.declaredScope.hardware;
|
|
93
|
+
}
|
|
94
|
+
/** Project caller and hardware identity into child CLI processes. */
|
|
95
|
+
export function withExternalHostEnvironment(environment = {}, context = {}) {
|
|
96
|
+
const result = { ...environment };
|
|
97
|
+
// Only an explicit hardware is projected; otherwise the child CLI's own
|
|
98
|
+
// declaration answers.
|
|
99
|
+
if (context.hardware)
|
|
100
|
+
result.VIBES_RUNTIME_HARDWARE = context.hardware;
|
|
101
|
+
const variables = {
|
|
102
|
+
VIBES_AGENT_ID: context.caller?.agentId,
|
|
103
|
+
VIBES_HARNESS: context.caller?.harness,
|
|
104
|
+
VIBES_SESSION_ID: context.caller?.sessionId,
|
|
105
|
+
VIBES_PARTICIPANT_ID: context.caller?.participantId
|
|
106
|
+
};
|
|
107
|
+
for (const [key, value] of Object.entries(variables)) {
|
|
108
|
+
if (value)
|
|
109
|
+
result[key] = value;
|
|
110
|
+
}
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
/** A host tool call's input as the projection reads it: a JSON object. */
|
|
114
|
+
export const HostToolInputSchema = z.record(z.string(), LiveJsonSchema.optional()).readonly();
|
|
115
|
+
/** A safety declaration: a bare category, or an object naming one. */
|
|
116
|
+
const SafetyCategorySchema = z.union([
|
|
117
|
+
z.string(),
|
|
118
|
+
z.object({ category: z.string() }).loose().transform((safety) => safety.category)
|
|
119
|
+
]);
|
|
120
|
+
/** The first non-blank action name the input carries (`action`, `operation`, `op`), lowercased. */
|
|
121
|
+
function inputAction(input) {
|
|
122
|
+
return [input.action, input.operation, input.op]
|
|
123
|
+
.map((value) => NonBlankSchema.safeParse(value).data)
|
|
124
|
+
.find((value) => value !== undefined)
|
|
125
|
+
?.toLowerCase();
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* One approval decision for every native host projection. Only a declared
|
|
129
|
+
* `read` safety (the selected action's, else the tool's) runs unapproved; a
|
|
130
|
+
* missing or unrecognised declaration requires approval.
|
|
131
|
+
*/
|
|
132
|
+
export function requiresExternalHostApproval(descriptor, input = {}) {
|
|
133
|
+
if (descriptor.requiresApproval === true)
|
|
134
|
+
return true;
|
|
135
|
+
const action = inputAction(input);
|
|
136
|
+
const actionSafety = descriptor.schemas?.actionSafety;
|
|
137
|
+
const selectedSafety = action ? actionSafety?.[action] : undefined;
|
|
138
|
+
if (selectedSafety !== undefined)
|
|
139
|
+
return selectedSafety !== 'read';
|
|
140
|
+
if (!action && actionSafety && Object.values(actionSafety).some((safety) => safety !== 'read'))
|
|
141
|
+
return true;
|
|
142
|
+
return SafetyCategorySchema.safeParse(descriptor.safety).data !== 'read';
|
|
143
|
+
}
|
|
144
|
+
/** Apply the host's scope and identity to the canonical CLI fallback path. */
|
|
145
|
+
export function withExternalHostToolContext(argv, context) {
|
|
146
|
+
if (argv[0] !== 'tools' || (argv[1] !== 'list' && argv[1] !== 'run'))
|
|
147
|
+
return argv;
|
|
148
|
+
const result = [...argv];
|
|
149
|
+
const has = (...flags) => flags.some((flag) => result.some((arg) => arg === flag || arg.startsWith(flag + '=')));
|
|
150
|
+
const add = (flag, value, aliases = []) => {
|
|
151
|
+
if (value && !has(flag, ...aliases))
|
|
152
|
+
result.push(flag, value);
|
|
153
|
+
};
|
|
154
|
+
add('--purpose', context.purpose ?? 'agent');
|
|
155
|
+
if (argv[1] === 'list') {
|
|
156
|
+
add('--scope', context.hardware);
|
|
157
|
+
}
|
|
158
|
+
if (argv[1] === 'run') {
|
|
159
|
+
add('--session', context.caller?.sessionId, ['-s']);
|
|
160
|
+
add('--participant', context.caller?.participantId, ['-p']);
|
|
161
|
+
add('--agent', context.caller?.agentId, ['-a']);
|
|
162
|
+
add('--harness', context.caller?.harness);
|
|
163
|
+
}
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
166
|
+
/** A catalog that could not be read: `INVALID_INPUT` / `UNAVAILABLE` with `live-catalog-*` reasons. */
|
|
167
|
+
function catalogRefusal(reason, message, details) {
|
|
168
|
+
const options = { reason, retryable: reason !== 'live-catalog-not-json' };
|
|
169
|
+
if (details)
|
|
170
|
+
options.details = details;
|
|
171
|
+
return new CapabilityError(message, reason.endsWith('json') || reason.endsWith('array') ? 'INVALID_INPUT' : 'UNAVAILABLE', options);
|
|
172
|
+
}
|
|
173
|
+
/** One catalog row's id, whether or not the row is otherwise readable. */
|
|
174
|
+
const RowIdSchema = z.object({ id: z.union([z.string(), z.number()]) }).loose();
|
|
175
|
+
/**
|
|
176
|
+
* Parse `vibes tools list --format json` stdout. `--format json` promises one
|
|
177
|
+
* parseable document: a row array on success. Anything else is a loud, typed
|
|
178
|
+
* failure, never an empty catalog masquerading as truth.
|
|
179
|
+
*/
|
|
180
|
+
export function parseLiveToolsOutput(stdout) {
|
|
181
|
+
let decoded;
|
|
182
|
+
try {
|
|
183
|
+
decoded = LiveJsonSchema.parse(JSON.parse(stdout));
|
|
184
|
+
}
|
|
185
|
+
catch (error) {
|
|
186
|
+
throw new CapabilityError('Could not parse the live tool catalog: CLI output was not JSON.', 'INVALID_INPUT', {
|
|
187
|
+
reason: 'live-catalog-not-json',
|
|
188
|
+
retryable: false,
|
|
189
|
+
cause: error
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
const rows = z.array(LiveJsonSchema).safeParse(decoded);
|
|
193
|
+
if (!rows.success) {
|
|
194
|
+
throw catalogRefusal('live-catalog-not-array', 'Could not read the live tool catalog: expected a JSON array of tool rows.');
|
|
195
|
+
}
|
|
196
|
+
const tools = [];
|
|
197
|
+
const skipped = [];
|
|
198
|
+
for (const row of rows.data) {
|
|
199
|
+
const id = String(RowIdSchema.safeParse(row).data?.id ?? '').trim();
|
|
200
|
+
const descriptor = LiveToolDescriptorSchema.safeParse(row);
|
|
201
|
+
if (id.length === 0 || !descriptor.success) {
|
|
202
|
+
skipped.push({ id: id || '<missing>', reason: 'missing-id' });
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
// `vibes tools run` only invokes `tools/tool` rows; `ai/tool` rows are
|
|
206
|
+
// inspect-visible but would fail on every call, so they are not projected.
|
|
207
|
+
if (descriptor.data.source === 'ai/tool') {
|
|
208
|
+
skipped.push({ id, reason: 'not-invokable-source' });
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
tools.push(descriptor.data);
|
|
212
|
+
}
|
|
213
|
+
return { tools, skipped };
|
|
214
|
+
}
|
|
215
|
+
function throwUnlessOk(result, argv) {
|
|
216
|
+
if (result.cancelled) {
|
|
217
|
+
throw catalogRefusal('live-catalog-cancelled', 'Could not read the live tool catalog: the CLI call was cancelled.');
|
|
218
|
+
}
|
|
219
|
+
if (result.exitCode !== 0) {
|
|
220
|
+
const detail = [result.stdout, result.stderr].filter(Boolean).join('\n');
|
|
221
|
+
throw catalogRefusal('live-catalog-cli-failed', 'Could not read the live tool catalog (`' + argv.join(' ') + '` exited ' + result.exitCode + ')' + (detail ? ': ' + detail : '.'), { exitCode: result.exitCode });
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/** The CLI run options a catalog fetch hands on: only what the caller set. */
|
|
225
|
+
function catalogRunOptions(options) {
|
|
226
|
+
const run = { hostEnv: options.hostEnv };
|
|
227
|
+
if (options.cwd !== undefined)
|
|
228
|
+
run.cwd = options.cwd;
|
|
229
|
+
if (options.signal !== undefined)
|
|
230
|
+
run.signal = options.signal;
|
|
231
|
+
if (options.env !== undefined)
|
|
232
|
+
run.env = options.env;
|
|
233
|
+
return run;
|
|
234
|
+
}
|
|
235
|
+
/** Synchronous variant for hosts that register before they can await. */
|
|
236
|
+
export function fetchLiveToolsViaCliSync(run, options) {
|
|
237
|
+
const argv = withExternalHostToolContext(['tools', 'list', '--format', 'json'], options);
|
|
238
|
+
const { signal: _signal, ...syncOptions } = catalogRunOptions(options);
|
|
239
|
+
const result = run(argv, syncOptions);
|
|
240
|
+
throwUnlessOk(result, argv);
|
|
241
|
+
return parseLiveToolsOutput(result.stdout);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Ask the local CLI for the live registry. Fails closed with an actionable
|
|
245
|
+
* typed error; hosts register nothing on failure rather than a stale subset.
|
|
246
|
+
*/
|
|
247
|
+
export async function fetchLiveToolsViaCli(run, options) {
|
|
248
|
+
const argv = withExternalHostToolContext(['tools', 'list', '--format', 'json'], options);
|
|
249
|
+
const result = await run(argv, catalogRunOptions(options));
|
|
250
|
+
throwUnlessOk(result, argv);
|
|
251
|
+
return parseLiveToolsOutput(result.stdout);
|
|
252
|
+
}
|
|
253
|
+
/** Read a catalog row through the descriptor schema; `undefined` when it is not one. */
|
|
254
|
+
export function parseLiveToolDescriptor(row) {
|
|
255
|
+
return LiveToolDescriptorSchema.safeParse(row).data;
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=live-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-tools.js","sourceRoot":"","sources":["../../src/harness/live-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MA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B,CAAC,GAAa;IACpD,OAAO,wBAAwB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Managed-block ownership primitives.
|
|
3
|
+
*
|
|
4
|
+
* A managed block is a delimited region we wrote inside a file we do not own.
|
|
5
|
+
* The version marker makes an existing install recognizable, so install can
|
|
6
|
+
* migrate it, status can age it, and uninstall can remove exactly our bytes
|
|
7
|
+
* without touching the owner's content.
|
|
8
|
+
*/
|
|
9
|
+
export type ManagedBlock = {
|
|
10
|
+
present: false;
|
|
11
|
+
version: null;
|
|
12
|
+
body: null;
|
|
13
|
+
} | {
|
|
14
|
+
present: true;
|
|
15
|
+
version: number;
|
|
16
|
+
body: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function wrapManagedBlock(kind: string, body: string, version?: number): string;
|
|
19
|
+
export declare function readManagedBlock(text: string, kind: string): ManagedBlock;
|
|
20
|
+
export declare function hasManagedBlock(text: string, kind: string): boolean;
|
|
21
|
+
export declare function managedBlockVersion(text: string, kind: string): number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Put the block in the text. An existing block keeps its position so a file
|
|
24
|
+
* with several managed regions is not shuffled; a new block goes first,
|
|
25
|
+
* because hosts read the harness briefing before the project notes.
|
|
26
|
+
*/
|
|
27
|
+
export declare function replaceManagedBlock(text: string, kind: string, body: string, version?: number): string;
|
|
28
|
+
/** Remove only our block, preserving the owner's surrounding content. */
|
|
29
|
+
export declare function removeManagedBlock(text: string, kind: string): string;
|
|
30
|
+
/** Ownership marker for files we generate outright (the extension module). */
|
|
31
|
+
export declare function managedFileVersion(text: string, kind: string): number | null;
|
|
32
|
+
export declare function isManagedFile(text: string, kind: string): boolean;
|
|
33
|
+
export declare function withManagedFileHeader(kind: string, body: string, version?: number): string;
|
|
34
|
+
//# sourceMappingURL=managed-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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AI,EAAE,MAAM,EACZ,OAAO,GAAE,MAAqC,GAC5C,MAAM,CAER"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Managed-block ownership primitives.
|
|
3
|
+
*
|
|
4
|
+
* A managed block is a delimited region we wrote inside a file we do not own.
|
|
5
|
+
* The version marker makes an existing install recognizable, so install can
|
|
6
|
+
* migrate it, status can age it, and uninstall can remove exactly our bytes
|
|
7
|
+
* without touching the owner's content.
|
|
8
|
+
*/
|
|
9
|
+
import { VIBES_HARNESS_MARKER_VERSION, managedBlockBegin, managedBlockEnd, managedLineMarker } from "./markers.js";
|
|
10
|
+
function escapeRegExp(value) {
|
|
11
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
12
|
+
}
|
|
13
|
+
const ABSENT = { present: false, version: null, body: null };
|
|
14
|
+
function blockRegExp(kind) {
|
|
15
|
+
return new RegExp(`<!-- vibes:managed:${escapeRegExp(kind)} v=(\\d+) -->\\n([\\s\\S]*?)\\n<!-- /vibes:managed:${escapeRegExp(kind)} -->`, 'g');
|
|
16
|
+
}
|
|
17
|
+
export function wrapManagedBlock(kind, body, version = VIBES_HARNESS_MARKER_VERSION) {
|
|
18
|
+
return `${managedBlockBegin(kind, version)}\n${body.replace(/\n+$/, '')}\n${managedBlockEnd(kind)}`;
|
|
19
|
+
}
|
|
20
|
+
export function readManagedBlock(text, kind) {
|
|
21
|
+
const match = blockRegExp(kind).exec(text);
|
|
22
|
+
if (!match)
|
|
23
|
+
return ABSENT;
|
|
24
|
+
return { present: true, version: Number(match[1]), body: match[2] };
|
|
25
|
+
}
|
|
26
|
+
export function hasManagedBlock(text, kind) {
|
|
27
|
+
return readManagedBlock(text, kind).present;
|
|
28
|
+
}
|
|
29
|
+
export function managedBlockVersion(text, kind) {
|
|
30
|
+
return readManagedBlock(text, kind).version;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Put the block in the text. An existing block keeps its position so a file
|
|
34
|
+
* with several managed regions is not shuffled; a new block goes first,
|
|
35
|
+
* because hosts read the harness briefing before the project notes.
|
|
36
|
+
*/
|
|
37
|
+
export function replaceManagedBlock(text, kind, body, version = VIBES_HARNESS_MARKER_VERSION) {
|
|
38
|
+
const block = wrapManagedBlock(kind, body, version);
|
|
39
|
+
const pattern = blockRegExp(kind);
|
|
40
|
+
if (pattern.test(text))
|
|
41
|
+
return text.replace(pattern, () => block);
|
|
42
|
+
const base = text.replace(/\n+$/, '');
|
|
43
|
+
if (base.length === 0)
|
|
44
|
+
return block + '\n';
|
|
45
|
+
return block + '\n\n' + base + '\n';
|
|
46
|
+
}
|
|
47
|
+
/** Remove only our block, preserving the owner's surrounding content. */
|
|
48
|
+
export function removeManagedBlock(text, kind) {
|
|
49
|
+
const removed = text
|
|
50
|
+
.replace(blockRegExp(kind), '')
|
|
51
|
+
.replace(/\n{3,}/g, '\n\n')
|
|
52
|
+
.replace(/^\n+/, '');
|
|
53
|
+
return removed.length === 0 ? '' : `${removed.replace(/\n+$/, '')}\n`;
|
|
54
|
+
}
|
|
55
|
+
/** Ownership marker for files we generate outright (the extension module). */
|
|
56
|
+
export function managedFileVersion(text, kind) {
|
|
57
|
+
const match = new RegExp(`^// vibes:managed:${escapeRegExp(kind)} v=(\\d+)$`, 'm').exec(text);
|
|
58
|
+
return match ? Number(match[1]) : null;
|
|
59
|
+
}
|
|
60
|
+
export function isManagedFile(text, kind) {
|
|
61
|
+
return managedFileVersion(text, kind) !== null;
|
|
62
|
+
}
|
|
63
|
+
export function withManagedFileHeader(kind, body, version = VIBES_HARNESS_MARKER_VERSION) {
|
|
64
|
+
return `${managedLineMarker(kind, version)}\n${body}`;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=managed-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-block.js","sourceRoot":"","sources":["../../src/harness/managed-block.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACN,4B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GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9F,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,IAAY;IACvD,OAAO,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,qBAAqB,CACpC,IAAY,EACZ,IAAY,EACZ,UAAkB,4BAA4B;IAE9C,OAAO,GAAG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-neutral ownership markers.
|
|
3
|
+
*
|
|
4
|
+
* Every host projection (Pi, OpenCode, and any later one) writes the same
|
|
5
|
+
* managed-block markers and settings key, so an install is recognizable,
|
|
6
|
+
* migratable, and removable byte-for-byte regardless of which host wrote it.
|
|
7
|
+
* Host file layouts, package specifiers, and tool-policy profiles are
|
|
8
|
+
* provider-native and live in the matching `@vibesdotdev/integrations-*` owner.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Bump when a managed file's shape changes. Written into every managed block so
|
|
12
|
+
* an existing install can be recognized, migrated, and removed exactly.
|
|
13
|
+
*/
|
|
14
|
+
export declare const VIBES_HARNESS_MARKER_VERSION = 1;
|
|
15
|
+
/** settings.json key holding vibes ownership state for that host. */
|
|
16
|
+
export declare const VIBES_MANAGED_SETTINGS_KEY = "vibesManaged";
|
|
17
|
+
/** HTML comment marker pair for managed blocks in Markdown. */
|
|
18
|
+
export declare function managedBlockBegin(kind: string, version?: number): string;
|
|
19
|
+
export declare function managedBlockEnd(kind: string): string;
|
|
20
|
+
/** Line-comment marker for managed TypeScript modules. */
|
|
21
|
+
export declare function managedLineMarker(kind: string, version?: number): string;
|
|
22
|
+
//# sourceMappingURL=markers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../src/harness/markers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AAEzD,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,SAA+B,GAAG,MAAM,CAE9F;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,0DAA0D;AAC1D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,SAA+B,GAAG,MAAM,CAE9F"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-neutral ownership markers.
|
|
3
|
+
*
|
|
4
|
+
* Every host projection (Pi, OpenCode, and any later one) writes the same
|
|
5
|
+
* managed-block markers and settings key, so an install is recognizable,
|
|
6
|
+
* migratable, and removable byte-for-byte regardless of which host wrote it.
|
|
7
|
+
* Host file layouts, package specifiers, and tool-policy profiles are
|
|
8
|
+
* provider-native and live in the matching `@vibesdotdev/integrations-*` owner.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Bump when a managed file's shape changes. Written into every managed block so
|
|
12
|
+
* an existing install can be recognized, migrated, and removed exactly.
|
|
13
|
+
*/
|
|
14
|
+
export const VIBES_HARNESS_MARKER_VERSION = 1;
|
|
15
|
+
/** settings.json key holding vibes ownership state for that host. */
|
|
16
|
+
export const VIBES_MANAGED_SETTINGS_KEY = 'vibesManaged';
|
|
17
|
+
/** HTML comment marker pair for managed blocks in Markdown. */
|
|
18
|
+
export function managedBlockBegin(kind, version = VIBES_HARNESS_MARKER_VERSION) {
|
|
19
|
+
return `<!-- vibes:managed:${kind} v=${version} -->`;
|
|
20
|
+
}
|
|
21
|
+
export function managedBlockEnd(kind) {
|
|
22
|
+
return `<!-- /vibes:managed:${kind} -->`;
|
|
23
|
+
}
|
|
24
|
+
/** Line-comment marker for managed TypeScript modules. */
|
|
25
|
+
export function managedLineMarker(kind, version = VIBES_HARNESS_MARKER_VERSION) {
|
|
26
|
+
return `// vibes:managed:${kind} v=${version}`;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=markers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markers.js","sourceRoot":"","sources":["../../src/harness/markers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAE9C,qEAAqE;AACrE,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC;AAEzD,+DAA+D;AAC/D,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,OAAO,GAAG,4BAA4B;IACrF,OAAO,sBAAsB,IAAI,MAAM,OAAO,MAAM,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC3C,OAAO,uBAAuB,IAAI,MAAM,CAAC;AAC1C,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,OAAO,GAAG,4BAA4B;IACrF,OAAO,oBAAoB,IAAI,MAAM,OAAO,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './index.ts';
|
|
2
|
+
export { AGENT_HOST_KINDS, VibesAgentHost, agentHostSettingsPlugin } from './agent-host.ts';
|
|
3
|
+
export * from './live-tools.ts';
|
|
4
|
+
export * from './runtime-transport.ts';
|
|
5
|
+
export * from './tool-projection.ts';
|
|
6
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/harness/node.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC5F,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./index.js";
|
|
2
|
+
export { AGENT_HOST_KINDS, VibesAgentHost, agentHostSettingsPlugin } from "./agent-host.js";
|
|
3
|
+
export * from "./live-tools.js";
|
|
4
|
+
export * from "./runtime-transport.js";
|
|
5
|
+
export * from "./tool-projection.js";
|
|
6
|
+
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/harness/node.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC5F,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|