@vibesdotdev/host-bun 0.0.0-stage → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +222 -2
- package/dist/applet-serve-host/applet-serve-host.impl.bun.d.ts +6 -0
- package/dist/applet-serve-host/applet-serve-host.impl.bun.d.ts.map +1 -0
- package/dist/applet-serve-host/applet-serve-host.impl.bun.js +80 -0
- package/dist/applet-serve-host/applet-serve-host.impl.bun.js.map +1 -0
- package/dist/applet-serve-host/applet-serve-host.plugin.d.ts +22 -0
- package/dist/applet-serve-host/applet-serve-host.plugin.d.ts.map +1 -0
- package/dist/applet-serve-host/applet-serve-host.plugin.js +42 -0
- package/dist/applet-serve-host/applet-serve-host.plugin.js.map +1 -0
- package/dist/applet-serve-host/index.d.ts +7 -0
- package/dist/applet-serve-host/index.d.ts.map +1 -0
- package/dist/applet-serve-host/index.js +7 -0
- package/dist/applet-serve-host/index.js.map +1 -0
- package/dist/applet-serve-host/stylesheet.compiler.d.ts +7 -0
- package/dist/applet-serve-host/stylesheet.compiler.d.ts.map +1 -0
- package/dist/applet-serve-host/stylesheet.compiler.js +63 -0
- package/dist/applet-serve-host/stylesheet.compiler.js.map +1 -0
- package/dist/atlas-migrations/register-atlas-host-migrations.d.ts +21 -0
- package/dist/atlas-migrations/register-atlas-host-migrations.d.ts.map +1 -0
- package/dist/atlas-migrations/register-atlas-host-migrations.js +148 -0
- package/dist/atlas-migrations/register-atlas-host-migrations.js.map +1 -0
- package/dist/buffered-capture.d.ts +4 -0
- package/dist/buffered-capture.d.ts.map +1 -0
- package/dist/buffered-capture.impl.bun.d.ts +18 -0
- package/dist/buffered-capture.impl.bun.d.ts.map +1 -0
- package/dist/buffered-capture.impl.bun.js +148 -0
- package/dist/buffered-capture.impl.bun.js.map +1 -0
- package/dist/buffered-capture.js +5 -0
- package/dist/buffered-capture.js.map +1 -0
- package/dist/bun-environment.impl.bun.d.ts +231 -0
- package/dist/bun-environment.impl.bun.d.ts.map +1 -0
- package/dist/bun-environment.impl.bun.js +352 -0
- package/dist/bun-environment.impl.bun.js.map +1 -0
- package/dist/cache-redis/cache-redis-connector.impl.bun.d.ts +20 -0
- package/dist/cache-redis/cache-redis-connector.impl.bun.d.ts.map +1 -0
- package/dist/cache-redis/cache-redis-connector.impl.bun.js +30 -0
- package/dist/cache-redis/cache-redis-connector.impl.bun.js.map +1 -0
- package/dist/cache-redis/cache-redis-connector.plugin.d.ts +21 -0
- package/dist/cache-redis/cache-redis-connector.plugin.d.ts.map +1 -0
- package/dist/cache-redis/cache-redis-connector.plugin.js +32 -0
- package/dist/cache-redis/cache-redis-connector.plugin.js.map +1 -0
- package/dist/cli-checkout.impl.bun.d.ts +13 -0
- package/dist/cli-checkout.impl.bun.d.ts.map +1 -0
- package/dist/cli-checkout.impl.bun.js +26 -0
- package/dist/cli-checkout.impl.bun.js.map +1 -0
- package/dist/docs/runtime-environment-bun.docs.descriptor.d.ts +19 -0
- package/dist/docs/runtime-environment-bun.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runtime-environment-bun.docs.descriptor.js +116 -0
- package/dist/docs/runtime-environment-bun.docs.descriptor.js.map +1 -0
- package/dist/filesystem/adapter.impl.bun.d.ts +15 -0
- package/dist/filesystem/adapter.impl.bun.d.ts.map +1 -0
- package/dist/filesystem/adapter.impl.bun.js +11 -0
- package/dist/filesystem/adapter.impl.bun.js.map +1 -0
- package/dist/filesystem/host-primitives.impl.bun.d.ts +12 -0
- package/dist/filesystem/host-primitives.impl.bun.d.ts.map +1 -0
- package/dist/filesystem/host-primitives.impl.bun.js +96 -0
- package/dist/filesystem/host-primitives.impl.bun.js.map +1 -0
- package/dist/filesystem/register.d.ts +12 -0
- package/dist/filesystem/register.d.ts.map +1 -0
- package/dist/filesystem/register.js +6 -0
- package/dist/filesystem/register.js.map +1 -0
- package/dist/filesystem/rooted-exclusive.impl.bun.d.ts +4 -0
- package/dist/filesystem/rooted-exclusive.impl.bun.d.ts.map +1 -0
- package/dist/filesystem/rooted-exclusive.impl.bun.js +135 -0
- package/dist/filesystem/rooted-exclusive.impl.bun.js.map +1 -0
- package/dist/held-launch/abi.impl.bun.d.ts +175 -0
- package/dist/held-launch/abi.impl.bun.d.ts.map +1 -0
- package/dist/held-launch/abi.impl.bun.js +476 -0
- package/dist/held-launch/abi.impl.bun.js.map +1 -0
- package/dist/held-launch/execution.impl.bun.d.ts +48 -0
- package/dist/held-launch/execution.impl.bun.d.ts.map +1 -0
- package/dist/held-launch/execution.impl.bun.js +375 -0
- package/dist/held-launch/execution.impl.bun.js.map +1 -0
- package/dist/held-launch/library.impl.bun.d.ts +23 -0
- package/dist/held-launch/library.impl.bun.d.ts.map +1 -0
- package/dist/held-launch/library.impl.bun.js +178 -0
- package/dist/held-launch/library.impl.bun.js.map +1 -0
- package/dist/held-launch/schemas.d.ts +10 -0
- package/dist/held-launch/schemas.d.ts.map +1 -0
- package/dist/held-launch/schemas.js +3 -0
- package/dist/held-launch/schemas.js.map +1 -0
- package/dist/held-launch/streams.impl.bun.d.ts +38 -0
- package/dist/held-launch/streams.impl.bun.d.ts.map +1 -0
- package/dist/held-launch/streams.impl.bun.js +183 -0
- package/dist/held-launch/streams.impl.bun.js.map +1 -0
- package/dist/host-channel.impl.bun.d.ts +25 -0
- package/dist/host-channel.impl.bun.d.ts.map +1 -0
- package/dist/host-channel.impl.bun.js +40 -0
- package/dist/host-channel.impl.bun.js.map +1 -0
- package/dist/host-client.impl.bun.d.ts +31 -0
- package/dist/host-client.impl.bun.d.ts.map +1 -0
- package/dist/host-client.impl.bun.js +39 -0
- package/dist/host-client.impl.bun.js.map +1 -0
- package/dist/host-credentials.d.ts +38 -0
- package/dist/host-credentials.d.ts.map +1 -0
- package/dist/host-credentials.js +44 -0
- package/dist/host-credentials.js.map +1 -0
- package/dist/host-loader.impl.bun.d.ts +12 -0
- package/dist/host-loader.impl.bun.d.ts.map +1 -0
- package/dist/host-loader.impl.bun.js +83 -0
- package/dist/host-loader.impl.bun.js.map +1 -0
- package/dist/host-signal.impl.bun.d.ts +11 -0
- package/dist/host-signal.impl.bun.d.ts.map +1 -0
- package/dist/host-signal.impl.bun.js +28 -0
- package/dist/host-signal.impl.bun.js.map +1 -0
- package/dist/http-listener.impl.bun.d.ts +8 -0
- package/dist/http-listener.impl.bun.d.ts.map +1 -0
- package/dist/http-listener.impl.bun.js +44 -0
- package/dist/http-listener.impl.bun.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +314 -0
- package/dist/index.js.map +1 -0
- package/dist/local-execution.impl.bun.d.ts +47 -0
- package/dist/local-execution.impl.bun.d.ts.map +1 -0
- package/dist/local-execution.impl.bun.js +150 -0
- package/dist/local-execution.impl.bun.js.map +1 -0
- package/dist/logging/file-host.impl.bun.d.ts +4 -0
- package/dist/logging/file-host.impl.bun.d.ts.map +1 -0
- package/dist/logging/file-host.impl.bun.js +36 -0
- package/dist/logging/file-host.impl.bun.js.map +1 -0
- package/dist/logging/logging.plugin.d.ts +12 -0
- package/dist/logging/logging.plugin.d.ts.map +1 -0
- package/dist/logging/logging.plugin.js +20 -0
- package/dist/logging/logging.plugin.js.map +1 -0
- package/dist/native/held-launch/aarch64-apple-darwin/libvibes_held_launch.dylib +0 -0
- package/dist/native/held-launch/aarch64-apple-darwin/manifest.json +237 -0
- package/dist/native/held-launch/aarch64-apple-darwin/vibes-held-launch +0 -0
- package/dist/native/held-launch/aarch64-unknown-linux-gnu/libvibes_held_launch.so +0 -0
- package/dist/native/held-launch/aarch64-unknown-linux-gnu/manifest.json +237 -0
- package/dist/native/held-launch/aarch64-unknown-linux-gnu/vibes-held-launch +0 -0
- package/dist/native/held-launch/x86_64-apple-darwin/libvibes_held_launch.dylib +0 -0
- package/dist/native/held-launch/x86_64-apple-darwin/manifest.json +237 -0
- package/dist/native/held-launch/x86_64-apple-darwin/vibes-held-launch +0 -0
- package/dist/native/held-launch/x86_64-unknown-linux-gnu/libvibes_held_launch.so +0 -0
- package/dist/native/held-launch/x86_64-unknown-linux-gnu/manifest.json +237 -0
- package/dist/native/held-launch/x86_64-unknown-linux-gnu/vibes-held-launch +0 -0
- package/dist/native-image.consumer.plugin.d.ts +4 -0
- package/dist/native-image.consumer.plugin.d.ts.map +1 -0
- package/dist/native-image.consumer.plugin.js +14 -0
- package/dist/native-image.consumer.plugin.js.map +1 -0
- package/dist/native-image.d.ts +79 -0
- package/dist/native-image.d.ts.map +1 -0
- package/dist/native-image.impl.consumer.d.ts +15 -0
- package/dist/native-image.impl.consumer.d.ts.map +1 -0
- package/dist/native-image.impl.consumer.js +86 -0
- package/dist/native-image.impl.consumer.js.map +1 -0
- package/dist/native-image.js +19 -0
- package/dist/native-image.js.map +1 -0
- package/dist/native-library.consumer.plugin.d.ts +6 -0
- package/dist/native-library.consumer.plugin.d.ts.map +1 -0
- package/dist/native-library.consumer.plugin.js +33 -0
- package/dist/native-library.consumer.plugin.js.map +1 -0
- package/dist/native-library.impl.consumer.d.ts +14 -0
- package/dist/native-library.impl.consumer.d.ts.map +1 -0
- package/dist/native-library.impl.consumer.js +46 -0
- package/dist/native-library.impl.consumer.js.map +1 -0
- package/dist/native-network/index.d.ts +3 -0
- package/dist/native-network/index.d.ts.map +1 -0
- package/dist/native-network/index.js +3 -0
- package/dist/native-network/index.js.map +1 -0
- package/dist/native-network/native-host.d.ts +4 -0
- package/dist/native-network/native-host.d.ts.map +1 -0
- package/dist/native-network/native-host.js +14 -0
- package/dist/native-network/native-host.js.map +1 -0
- package/dist/native-network/native-network.descriptor.d.ts +4 -0
- package/dist/native-network/native-network.descriptor.d.ts.map +1 -0
- package/dist/native-network/native-network.descriptor.js +11 -0
- package/dist/native-network/native-network.descriptor.js.map +1 -0
- package/dist/native-network/native-network.impl.bun.d.ts +19 -0
- package/dist/native-network/native-network.impl.bun.d.ts.map +1 -0
- package/dist/native-network/native-network.impl.bun.js +190 -0
- package/dist/native-network/native-network.impl.bun.js.map +1 -0
- package/dist/native-network/native-network.plugin.d.ts +6 -0
- package/dist/native-network/native-network.plugin.d.ts.map +1 -0
- package/dist/native-network/native-network.plugin.js +27 -0
- package/dist/native-network/native-network.plugin.js.map +1 -0
- package/dist/package-plugins/index.d.ts +11 -0
- package/dist/package-plugins/index.d.ts.map +1 -0
- package/dist/package-plugins/index.js +11 -0
- package/dist/package-plugins/index.js.map +1 -0
- package/dist/package-plugins/package-plugins.capability.bun.d.ts +11 -0
- package/dist/package-plugins/package-plugins.capability.bun.d.ts.map +1 -0
- package/dist/package-plugins/package-plugins.capability.bun.js +14 -0
- package/dist/package-plugins/package-plugins.capability.bun.js.map +1 -0
- package/dist/package-plugins/primitives.impl.bun.d.ts +11 -0
- package/dist/package-plugins/primitives.impl.bun.d.ts.map +1 -0
- package/dist/package-plugins/primitives.impl.bun.js +32 -0
- package/dist/package-plugins/primitives.impl.bun.js.map +1 -0
- package/dist/package-plugins/read-admission.impl.bun.d.ts +11 -0
- package/dist/package-plugins/read-admission.impl.bun.d.ts.map +1 -0
- package/dist/package-plugins/read-admission.impl.bun.js +224 -0
- package/dist/package-plugins/read-admission.impl.bun.js.map +1 -0
- package/dist/package-plugins/schemas.d.ts +28 -0
- package/dist/package-plugins/schemas.d.ts.map +1 -0
- package/dist/package-plugins/schemas.js +3 -0
- package/dist/package-plugins/schemas.js.map +1 -0
- package/dist/process/launch-artifacts.impl.bun.d.ts +11 -0
- package/dist/process/launch-artifacts.impl.bun.d.ts.map +1 -0
- package/dist/process/launch-artifacts.impl.bun.js +25 -0
- package/dist/process/launch-artifacts.impl.bun.js.map +1 -0
- package/dist/process/process-probe.impl.bun.d.ts +15 -0
- package/dist/process/process-probe.impl.bun.d.ts.map +1 -0
- package/dist/process/process-probe.impl.bun.js +35 -0
- package/dist/process/process-probe.impl.bun.js.map +1 -0
- package/dist/process/runtime-process.impl.bun.d.ts +20 -0
- package/dist/process/runtime-process.impl.bun.d.ts.map +1 -0
- package/dist/process/runtime-process.impl.bun.js +42 -0
- package/dist/process/runtime-process.impl.bun.js.map +1 -0
- package/dist/process/schemas.d.ts +9 -0
- package/dist/process/schemas.d.ts.map +1 -0
- package/dist/process/schemas.js +3 -0
- package/dist/process/schemas.js.map +1 -0
- package/dist/process/spawn.impl.bun.d.ts +31 -0
- package/dist/process/spawn.impl.bun.d.ts.map +1 -0
- package/dist/process/spawn.impl.bun.js +66 -0
- package/dist/process/spawn.impl.bun.js.map +1 -0
- package/dist/process/which.impl.bun.d.ts +16 -0
- package/dist/process/which.impl.bun.d.ts.map +1 -0
- package/dist/process/which.impl.bun.js +25 -0
- package/dist/process/which.impl.bun.js.map +1 -0
- package/dist/pty.adapter.impl.bun.d.ts +17 -0
- package/dist/pty.adapter.impl.bun.d.ts.map +1 -0
- package/dist/pty.adapter.impl.bun.js +102 -0
- package/dist/pty.adapter.impl.bun.js.map +1 -0
- package/dist/pty.darwin.impl.bun.d.ts +11 -0
- package/dist/pty.darwin.impl.bun.d.ts.map +1 -0
- package/dist/pty.darwin.impl.bun.js +200 -0
- package/dist/pty.darwin.impl.bun.js.map +1 -0
- package/dist/pty.node-host.impl.bun.d.ts +10 -0
- package/dist/pty.node-host.impl.bun.d.ts.map +1 -0
- package/dist/pty.node-host.impl.bun.js +42 -0
- package/dist/pty.node-host.impl.bun.js.map +1 -0
- package/dist/resolution-root.impl.bun.d.ts +170 -0
- package/dist/resolution-root.impl.bun.d.ts.map +1 -0
- package/dist/resolution-root.impl.bun.js +373 -0
- package/dist/resolution-root.impl.bun.js.map +1 -0
- package/dist/restricted-execute.darwin.impl.bun.d.ts +19 -0
- package/dist/restricted-execute.darwin.impl.bun.d.ts.map +1 -0
- package/dist/restricted-execute.darwin.impl.bun.js +459 -0
- package/dist/restricted-execute.darwin.impl.bun.js.map +1 -0
- package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.d.ts +2 -0
- package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.d.ts.map +1 -0
- package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.js +31 -0
- package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.js.map +1 -0
- package/dist/runtime-plugin-host/host-hot-reload.consumer.d.ts +20 -0
- package/dist/runtime-plugin-host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/runtime-plugin-host/host-hot-reload.consumer.js +236 -0
- package/dist/runtime-plugin-host/host-hot-reload.consumer.js.map +1 -0
- package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.d.ts +2 -0
- package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.d.ts.map +1 -0
- package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.js +66 -0
- package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.js.map +1 -0
- package/dist/runtime-plugin-host/hot-plugin-module.consumer.d.ts +45 -0
- package/dist/runtime-plugin-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/runtime-plugin-host/hot-plugin-module.consumer.js +490 -0
- package/dist/runtime-plugin-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/runtime-plugin-host/hot-reload.consumer.d.ts +83 -0
- package/dist/runtime-plugin-host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/runtime-plugin-host/hot-reload.consumer.js +168 -0
- package/dist/runtime-plugin-host/hot-reload.consumer.js.map +1 -0
- package/dist/runtime-plugin-host/reclaim.impl.bun.d.ts +37 -0
- package/dist/runtime-plugin-host/reclaim.impl.bun.d.ts.map +1 -0
- package/dist/runtime-plugin-host/reclaim.impl.bun.js +159 -0
- package/dist/runtime-plugin-host/reclaim.impl.bun.js.map +1 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.d.ts +4 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.d.ts.map +1 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.js +181 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.js.map +1 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.plugin.d.ts +17 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.plugin.d.ts.map +1 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.plugin.js +36 -0
- package/dist/runtime-plugin-host/runtime-plugin-host.plugin.js.map +1 -0
- package/dist/runtime-plugin-host/runtime-thread.impl.bun.d.ts +53 -0
- package/dist/runtime-plugin-host/runtime-thread.impl.bun.d.ts.map +1 -0
- package/dist/runtime-plugin-host/runtime-thread.impl.bun.js +249 -0
- package/dist/runtime-plugin-host/runtime-thread.impl.bun.js.map +1 -0
- package/dist/runtime-plugin-host/runtime-thread.shim.bun.d.ts +2 -0
- package/dist/runtime-plugin-host/runtime-thread.shim.bun.d.ts.map +1 -0
- package/dist/runtime-plugin-host/runtime-thread.shim.bun.js +56 -0
- package/dist/runtime-plugin-host/runtime-thread.shim.bun.js.map +1 -0
- package/dist/runtime-plugin-host/schemas.d.ts +437 -0
- package/dist/runtime-plugin-host/schemas.d.ts.map +1 -0
- package/dist/runtime-plugin-host/schemas.js +54 -0
- package/dist/runtime-plugin-host/schemas.js.map +1 -0
- package/dist/runtime-plugin-host/source-watcher.consumer.d.ts +109 -0
- package/dist/runtime-plugin-host/source-watcher.consumer.d.ts.map +1 -0
- package/dist/runtime-plugin-host/source-watcher.consumer.js +383 -0
- package/dist/runtime-plugin-host/source-watcher.consumer.js.map +1 -0
- package/dist/schemas/environment.d.ts +197 -0
- package/dist/schemas/environment.d.ts.map +1 -0
- package/dist/schemas/environment.js +7 -0
- package/dist/schemas/environment.js.map +1 -0
- package/dist/schemas/host-resources.d.ts +85 -0
- package/dist/schemas/host-resources.d.ts.map +1 -0
- package/dist/schemas/host-resources.js +22 -0
- package/dist/schemas/host-resources.js.map +1 -0
- package/dist/schemas/native-image.d.ts +128 -0
- package/dist/schemas/native-image.d.ts.map +1 -0
- package/dist/schemas/native-image.js +45 -0
- package/dist/schemas/native-image.js.map +1 -0
- package/dist/schemas/native-network.d.ts +56 -0
- package/dist/schemas/native-network.d.ts.map +1 -0
- package/dist/schemas/native-network.js +55 -0
- package/dist/schemas/native-network.js.map +1 -0
- package/dist/schemas/restricted-execute.d.ts +40 -0
- package/dist/schemas/restricted-execute.d.ts.map +1 -0
- package/dist/schemas/restricted-execute.js +14 -0
- package/dist/schemas/restricted-execute.js.map +1 -0
- package/dist/schemas/runtime-socket.d.ts +8 -0
- package/dist/schemas/runtime-socket.d.ts.map +1 -0
- package/dist/schemas/runtime-socket.js +7 -0
- package/dist/schemas/runtime-socket.js.map +1 -0
- package/dist/schemas/self-spawn.d.ts +11 -0
- package/dist/schemas/self-spawn.d.ts.map +1 -0
- package/dist/schemas/self-spawn.js +3 -0
- package/dist/schemas/self-spawn.js.map +1 -0
- package/dist/schemas/standard-output.d.ts +6 -0
- package/dist/schemas/standard-output.d.ts.map +1 -0
- package/dist/schemas/standard-output.js +2 -0
- package/dist/schemas/standard-output.js.map +1 -0
- package/dist/schemas/telemetry.d.ts +25 -0
- package/dist/schemas/telemetry.d.ts.map +1 -0
- package/dist/schemas/telemetry.js +10 -0
- package/dist/schemas/telemetry.js.map +1 -0
- package/dist/schemas/test-environment.d.ts +27 -0
- package/dist/schemas/test-environment.d.ts.map +1 -0
- package/dist/schemas/test-environment.js +2 -0
- package/dist/schemas/test-environment.js.map +1 -0
- package/dist/serve-stall-start.d.ts +8 -0
- package/dist/serve-stall-start.d.ts.map +1 -0
- package/dist/serve-stall-start.js +88 -0
- package/dist/serve-stall-start.js.map +1 -0
- package/dist/serve-stall.d.ts +11 -0
- package/dist/serve-stall.d.ts.map +1 -0
- package/dist/serve-stall.js +19 -0
- package/dist/serve-stall.js.map +1 -0
- package/dist/serve-stall.plugin.d.ts +10 -0
- package/dist/serve-stall.plugin.d.ts.map +1 -0
- package/dist/serve-stall.plugin.js +34 -0
- package/dist/serve-stall.plugin.js.map +1 -0
- package/dist/services/account-home.d.ts +39 -0
- package/dist/services/account-home.d.ts.map +1 -0
- package/dist/services/account-home.js +152 -0
- package/dist/services/account-home.js.map +1 -0
- package/dist/services/cli-process-host.d.ts +50 -0
- package/dist/services/cli-process-host.d.ts.map +1 -0
- package/dist/services/cli-process-host.js +88 -0
- package/dist/services/cli-process-host.js.map +1 -0
- package/dist/services/compatibility-host.impl.bun.d.ts +4 -0
- package/dist/services/compatibility-host.impl.bun.d.ts.map +1 -0
- package/dist/services/compatibility-host.impl.bun.js +24 -0
- package/dist/services/compatibility-host.impl.bun.js.map +1 -0
- package/dist/services/executable-identity.impl.bun.d.ts +164 -0
- package/dist/services/executable-identity.impl.bun.d.ts.map +1 -0
- package/dist/services/executable-identity.impl.bun.js +73 -0
- package/dist/services/executable-identity.impl.bun.js.map +1 -0
- package/dist/services/fatal-signals.impl.bun.d.ts +15 -0
- package/dist/services/fatal-signals.impl.bun.d.ts.map +1 -0
- package/dist/services/fatal-signals.impl.bun.js +61 -0
- package/dist/services/fatal-signals.impl.bun.js.map +1 -0
- package/dist/services/graph-freshness.impl.bun.d.ts +108 -0
- package/dist/services/graph-freshness.impl.bun.d.ts.map +1 -0
- package/dist/services/graph-freshness.impl.bun.js +49 -0
- package/dist/services/graph-freshness.impl.bun.js.map +1 -0
- package/dist/services/host-identity.capability.bun.d.ts +10 -0
- package/dist/services/host-identity.capability.bun.d.ts.map +1 -0
- package/dist/services/host-identity.capability.bun.js +27 -0
- package/dist/services/host-identity.capability.bun.js.map +1 -0
- package/dist/services/host-identity.impl.bun.d.ts +53 -0
- package/dist/services/host-identity.impl.bun.d.ts.map +1 -0
- package/dist/services/host-identity.impl.bun.js +76 -0
- package/dist/services/host-identity.impl.bun.js.map +1 -0
- package/dist/services/host-resources.impl.bun.d.ts +49 -0
- package/dist/services/host-resources.impl.bun.d.ts.map +1 -0
- package/dist/services/host-resources.impl.bun.js +144 -0
- package/dist/services/host-resources.impl.bun.js.map +1 -0
- package/dist/services/http-fetch.impl.bun.d.ts +10 -0
- package/dist/services/http-fetch.impl.bun.d.ts.map +1 -0
- package/dist/services/http-fetch.impl.bun.js +38 -0
- package/dist/services/http-fetch.impl.bun.js.map +1 -0
- package/dist/services/output-plane.impl.bun.d.ts +6 -0
- package/dist/services/output-plane.impl.bun.d.ts.map +1 -0
- package/dist/services/output-plane.impl.bun.js +26 -0
- package/dist/services/output-plane.impl.bun.js.map +1 -0
- package/dist/services/process-action-lifetime.consumer.d.ts +47 -0
- package/dist/services/process-action-lifetime.consumer.d.ts.map +1 -0
- package/dist/services/process-action-lifetime.consumer.js +68 -0
- package/dist/services/process-action-lifetime.consumer.js.map +1 -0
- package/dist/services/process-view.impl.bun.d.ts +18 -0
- package/dist/services/process-view.impl.bun.d.ts.map +1 -0
- package/dist/services/process-view.impl.bun.js +17 -0
- package/dist/services/process-view.impl.bun.js.map +1 -0
- package/dist/services/runtime-host-signals.impl.bun.d.ts +8 -0
- package/dist/services/runtime-host-signals.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-host-signals.impl.bun.js +29 -0
- package/dist/services/runtime-host-signals.impl.bun.js.map +1 -0
- package/dist/services/runtime-http-listener.impl.bun.d.ts +14 -0
- package/dist/services/runtime-http-listener.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-http-listener.impl.bun.js +463 -0
- package/dist/services/runtime-http-listener.impl.bun.js.map +1 -0
- package/dist/services/runtime-path.impl.bun.d.ts +16 -0
- package/dist/services/runtime-path.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-path.impl.bun.js +34 -0
- package/dist/services/runtime-path.impl.bun.js.map +1 -0
- package/dist/services/runtime-scoped-values.impl.bun.d.ts +4 -0
- package/dist/services/runtime-scoped-values.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-scoped-values.impl.bun.js +7 -0
- package/dist/services/runtime-scoped-values.impl.bun.js.map +1 -0
- package/dist/services/runtime-socket-datagram.impl.bun.d.ts +15 -0
- package/dist/services/runtime-socket-datagram.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-socket-datagram.impl.bun.js +19 -0
- package/dist/services/runtime-socket-datagram.impl.bun.js.map +1 -0
- package/dist/services/runtime-socket.impl.bun.d.ts +20 -0
- package/dist/services/runtime-socket.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-socket.impl.bun.js +47 -0
- package/dist/services/runtime-socket.impl.bun.js.map +1 -0
- package/dist/services/runtime-stdio.impl.bun.d.ts +11 -0
- package/dist/services/runtime-stdio.impl.bun.d.ts.map +1 -0
- package/dist/services/runtime-stdio.impl.bun.js +37 -0
- package/dist/services/runtime-stdio.impl.bun.js.map +1 -0
- package/dist/services/self-spawn.impl.bun.d.ts +39 -0
- package/dist/services/self-spawn.impl.bun.d.ts.map +1 -0
- package/dist/services/self-spawn.impl.bun.js +58 -0
- package/dist/services/self-spawn.impl.bun.js.map +1 -0
- package/dist/services/standard-output.d.ts +100 -0
- package/dist/services/standard-output.d.ts.map +1 -0
- package/dist/services/standard-output.js +35 -0
- package/dist/services/standard-output.js.map +1 -0
- package/dist/services/user-environment.impl.bun.d.ts +19 -0
- package/dist/services/user-environment.impl.bun.d.ts.map +1 -0
- package/dist/services/user-environment.impl.bun.js +117 -0
- package/dist/services/user-environment.impl.bun.js.map +1 -0
- package/dist/services/workspace-env.d.ts +30 -0
- package/dist/services/workspace-env.d.ts.map +1 -0
- package/dist/services/workspace-env.js +45 -0
- package/dist/services/workspace-env.js.map +1 -0
- package/dist/services/workspace-root-probe.impl.bun.d.ts +14 -0
- package/dist/services/workspace-root-probe.impl.bun.d.ts.map +1 -0
- package/dist/services/workspace-root-probe.impl.bun.js +27 -0
- package/dist/services/workspace-root-probe.impl.bun.js.map +1 -0
- package/dist/session-members.impl.bun.d.ts +22 -0
- package/dist/session-members.impl.bun.d.ts.map +1 -0
- package/dist/session-members.impl.bun.js +74 -0
- package/dist/session-members.impl.bun.js.map +1 -0
- package/dist/sqlite-driver/index.d.ts +7 -0
- package/dist/sqlite-driver/index.d.ts.map +1 -0
- package/dist/sqlite-driver/index.js +7 -0
- package/dist/sqlite-driver/index.js.map +1 -0
- package/dist/sqlite-driver/sqlite-driver.impl.bun.d.ts +6 -0
- package/dist/sqlite-driver/sqlite-driver.impl.bun.d.ts.map +1 -0
- package/dist/sqlite-driver/sqlite-driver.impl.bun.js +269 -0
- package/dist/sqlite-driver/sqlite-driver.impl.bun.js.map +1 -0
- package/dist/sqlite-driver/sqlite-driver.plugin.d.ts +22 -0
- package/dist/sqlite-driver/sqlite-driver.plugin.d.ts.map +1 -0
- package/dist/sqlite-driver/sqlite-driver.plugin.js +44 -0
- package/dist/sqlite-driver/sqlite-driver.plugin.js.map +1 -0
- package/dist/telemetry/telemetry.d.ts +34 -0
- package/dist/telemetry/telemetry.d.ts.map +1 -0
- package/dist/telemetry/telemetry.js +2 -0
- package/dist/telemetry/telemetry.js.map +1 -0
- package/dist/telemetry/telemetry.plugin.d.ts +4 -0
- package/dist/telemetry/telemetry.plugin.d.ts.map +1 -0
- package/dist/telemetry/telemetry.plugin.js +78 -0
- package/dist/telemetry/telemetry.plugin.js.map +1 -0
- package/dist/terminal-pty-bridge.impl.bun.d.ts +31 -0
- package/dist/terminal-pty-bridge.impl.bun.d.ts.map +1 -0
- package/dist/terminal-pty-bridge.impl.bun.js +333 -0
- package/dist/terminal-pty-bridge.impl.bun.js.map +1 -0
- package/dist/test-tooling/lazy-environment.impl.bun.d.ts +16 -0
- package/dist/test-tooling/lazy-environment.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/lazy-environment.impl.bun.js +36 -0
- package/dist/test-tooling/lazy-environment.impl.bun.js.map +1 -0
- package/dist/test-tooling/starttls-refusal.d.ts +7 -0
- package/dist/test-tooling/starttls-refusal.d.ts.map +1 -0
- package/dist/test-tooling/starttls-refusal.js +50 -0
- package/dist/test-tooling/starttls-refusal.js.map +1 -0
- package/dist/test-tooling/svelte-client-preload.impl.bun.d.ts +2 -0
- package/dist/test-tooling/svelte-client-preload.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/svelte-client-preload.impl.bun.js +4 -0
- package/dist/test-tooling/svelte-client-preload.impl.bun.js.map +1 -0
- package/dist/test-tooling/svelte-compiler.impl.bun.d.ts +10 -0
- package/dist/test-tooling/svelte-compiler.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/svelte-compiler.impl.bun.js +33 -0
- package/dist/test-tooling/svelte-compiler.impl.bun.js.map +1 -0
- package/dist/test-tooling/svelte-server-preload.impl.bun.d.ts +2 -0
- package/dist/test-tooling/svelte-server-preload.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/svelte-server-preload.impl.bun.js +4 -0
- package/dist/test-tooling/svelte-server-preload.impl.bun.js.map +1 -0
- package/dist/test-tooling/test-environment.impl.bun.d.ts +45 -0
- package/dist/test-tooling/test-environment.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/test-environment.impl.bun.js +163 -0
- package/dist/test-tooling/test-environment.impl.bun.js.map +1 -0
- package/dist/test-tooling/test-process-root.impl.bun.d.ts +4 -0
- package/dist/test-tooling/test-process-root.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/test-process-root.impl.bun.js +65 -0
- package/dist/test-tooling/test-process-root.impl.bun.js.map +1 -0
- package/dist/test-tooling/unix-http.impl.bun.d.ts +28 -0
- package/dist/test-tooling/unix-http.impl.bun.d.ts.map +1 -0
- package/dist/test-tooling/unix-http.impl.bun.js +181 -0
- package/dist/test-tooling/unix-http.impl.bun.js.map +1 -0
- package/dist/transpiler/transpiler.plugin.d.ts +10 -0
- package/dist/transpiler/transpiler.plugin.d.ts.map +1 -0
- package/dist/transpiler/transpiler.plugin.js +18 -0
- package/dist/transpiler/transpiler.plugin.js.map +1 -0
- package/native/held-launch/Cargo.toml +23 -0
- package/native/held-launch/abi-manifest.json +234 -0
- package/native/held-launch/src/bin/vibes-held-launch.rs +35 -0
- package/native/held-launch/src/events.rs +99 -0
- package/native/held-launch/src/lib.rs +528 -0
- package/native/held-launch/symbols.golden +21 -0
- package/package.json +313 -4
- package/resources/restricted-supervisor.impl.bun.d.mts +3 -0
- package/resources/restricted-supervisor.impl.bun.mjs +49 -0
- package/resources/serve-stall-watch.impl.bun.d.mts +3 -0
- package/resources/serve-stall-watch.impl.bun.mjs +51 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Does this capture hold a live `VIBES_HOST_CREDENTIALS` manifest? (rc05 §2.2, rc01 §2.1)
|
|
3
|
+
*
|
|
4
|
+
* The manifest grammar, the publisher liveness verdict and the typed refusals
|
|
5
|
+
* are the kernel's (`@vibesdotdev/kernel`, beside the manifest key). What stays
|
|
6
|
+
* with the host is the one question that runs before any runtime exists: the
|
|
7
|
+
* CLI host declares its `hostCredentials` capability from its own capture, so
|
|
8
|
+
* it reads the publisher's start time synchronously, with the Node-API process
|
|
9
|
+
* view this host shares (`readProcessStartMs`), and applies the kernel's verdict.
|
|
10
|
+
* Liveness is never memoized.
|
|
11
|
+
*/
|
|
12
|
+
/** How liveness is probed before any runtime exists: this host's process table and its clock (default `Date.now`). */
|
|
13
|
+
export interface HostCredentialsSyncProbe {
|
|
14
|
+
nowMs?: () => number;
|
|
15
|
+
processStartMs: (pid: number) => number | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The process-table probe that runs with `env`: `composeBaseEnv(capture, platform)`
|
|
19
|
+
* before any runtime exists. Never the live process environment. `platform` is
|
|
20
|
+
* the host platform the caller declared (see `ProcessViewOptions.platform`).
|
|
21
|
+
*/
|
|
22
|
+
export declare function processStartProbe(env: Record<string, string>, platform?: string): Pick<HostCredentialsSyncProbe, 'processStartMs'>;
|
|
23
|
+
/** The host facts a liveness check needs from the host declaring its scope: its captured platform and, for tests, a probe. */
|
|
24
|
+
export interface HostCredentialsHost {
|
|
25
|
+
readonly platform: string;
|
|
26
|
+
/** Defaults to the process-start probe over the capture's base allowlist for `platform`. */
|
|
27
|
+
readonly probe?: HostCredentialsSyncProbe;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Does this capture hold a live manifest? The CLI's capability declaration
|
|
31
|
+
* (R3). An absent, unparseable or stale manifest is `false`; the store still
|
|
32
|
+
* refuses reads from it with the typed failure. `host` is the facts the scope
|
|
33
|
+
* resolver is handed (`scope: (captured, host) => ...`): a host declaring its
|
|
34
|
+
* scope has no runtime yet, so its probe runs with the base allowlist of the
|
|
35
|
+
* capture it is declaring from, for the platform the environment captured.
|
|
36
|
+
*/
|
|
37
|
+
export declare function hasLiveHostCredentials(captured: Readonly<Record<string, string | undefined>>, hostingVenue: string | undefined, host: HostCredentialsHost): boolean;
|
|
38
|
+
//# sourceMappingURL=host-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.d.ts","sourceRoot":"","sources":["../src/host-credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAUH,sHAAsH;AACtH,MAAM,WAAW,wBAAwB;IACxC,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAElI;AAED,8HAA8H;AAC9H,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC;CAC1C;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EACtD,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,IAAI,EAAE,mBAAmB,GACvB,OAAO,CAWT"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Does this capture hold a live `VIBES_HOST_CREDENTIALS` manifest? (rc05 §2.2, rc01 §2.1)
|
|
3
|
+
*
|
|
4
|
+
* The manifest grammar, the publisher liveness verdict and the typed refusals
|
|
5
|
+
* are the kernel's (`@vibesdotdev/kernel`, beside the manifest key). What stays
|
|
6
|
+
* with the host is the one question that runs before any runtime exists: the
|
|
7
|
+
* CLI host declares its `hostCredentials` capability from its own capture, so
|
|
8
|
+
* it reads the publisher's start time synchronously, with the Node-API process
|
|
9
|
+
* view this host shares (`readProcessStartMs`), and applies the kernel's verdict.
|
|
10
|
+
* Liveness is never memoized.
|
|
11
|
+
*/
|
|
12
|
+
import { composeBaseEnv, HOST_CREDENTIAL_MANIFEST_KEY, judgeHostCredentialsPublisher, readHostCredentialsManifest } from '@vibesdotdev/kernel';
|
|
13
|
+
import { readProcessStartMs } from "./services/executable-identity.impl.bun.js";
|
|
14
|
+
/**
|
|
15
|
+
* The process-table probe that runs with `env`: `composeBaseEnv(capture, platform)`
|
|
16
|
+
* before any runtime exists. Never the live process environment. `platform` is
|
|
17
|
+
* the host platform the caller declared (see `ProcessViewOptions.platform`).
|
|
18
|
+
*/
|
|
19
|
+
export function processStartProbe(env, platform) {
|
|
20
|
+
return { processStartMs: (pid) => readProcessStartMs(pid, { env, platform }) };
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Does this capture hold a live manifest? The CLI's capability declaration
|
|
24
|
+
* (R3). An absent, unparseable or stale manifest is `false`; the store still
|
|
25
|
+
* refuses reads from it with the typed failure. `host` is the facts the scope
|
|
26
|
+
* resolver is handed (`scope: (captured, host) => ...`): a host declaring its
|
|
27
|
+
* scope has no runtime yet, so its probe runs with the base allowlist of the
|
|
28
|
+
* capture it is declaring from, for the platform the environment captured.
|
|
29
|
+
*/
|
|
30
|
+
export function hasLiveHostCredentials(captured, hostingVenue, host) {
|
|
31
|
+
const raw = captured[HOST_CREDENTIAL_MANIFEST_KEY];
|
|
32
|
+
if (raw === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
const read = readHostCredentialsManifest(raw, hostingVenue);
|
|
35
|
+
if ('refusal' in read)
|
|
36
|
+
return false;
|
|
37
|
+
const { publisher } = read.manifest;
|
|
38
|
+
const probe = host.probe ?? processStartProbe(composeBaseEnv(captured, host.platform), host.platform);
|
|
39
|
+
return judgeHostCredentialsPublisher(publisher, {
|
|
40
|
+
startMs: 'pid' in publisher ? probe.processStartMs(publisher.pid) : null,
|
|
41
|
+
nowMs: host.probe?.nowMs ?? Date.now
|
|
42
|
+
}).live;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=host-credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.js","sourceRoot":"","sources":["../src/host-credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACN,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAQhF;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAA2B,EAAE,QAAiB;IAC/E,OAAO,EAAE,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;AAChF,CAAC;AASD;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CACrC,QAAsD,EACtD,YAAgC,EAChC,IAAyB;IAEzB,MAAM,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CAAC,CAAC;IACnD,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpC,MAAM,IAAI,GAAG,2BAA2B,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC5D,IAAI,SAAS,IAAI,IAAI;QAAE,OAAO,KAAK,CAAC;IACpC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;IACpC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,iBAAiB,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtG,OAAO,6BAA6B,CAAC,SAAS,EAAE;QAC/C,OAAO,EAAE,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI;QACxE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,IAAI,CAAC,GAAG;KACpC,CAAC,CAAC,IAAI,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's one loader: mechanism only (rc02-rc03 §2.5; C6).
|
|
3
|
+
*
|
|
4
|
+
* It imports modules and resolves specifiers, and lends the kernel's one
|
|
5
|
+
* discovery pass (`@vibesdotdev/kernel` `bootstrap/discovery.ts`) its
|
|
6
|
+
* filesystem: list a directory, read a file, stat, canonicalize a path and
|
|
7
|
+
* match a file name against a glob. Every rule (declared packages, patterns,
|
|
8
|
+
* import-once, the kind check and the failures) is the kernel's.
|
|
9
|
+
*/
|
|
10
|
+
import type { RuntimeLoaderImplementation } from '@vibesdotdev/kernel';
|
|
11
|
+
export declare function createBunHostLoader(): RuntimeLoaderImplementation;
|
|
12
|
+
//# sourceMappingURL=host-loader.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-loader.impl.bun.d.ts","sourceRoot":"","sources":["../src/host-loader.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAA0B,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AA+B/F,wBAAgB,mBAAmB,IAAI,2BAA2B,CAiCjE"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's one loader: mechanism only (rc02-rc03 §2.5; C6).
|
|
3
|
+
*
|
|
4
|
+
* It imports modules and resolves specifiers, and lends the kernel's one
|
|
5
|
+
* discovery pass (`@vibesdotdev/kernel` `bootstrap/discovery.ts`) its
|
|
6
|
+
* filesystem: list a directory, read a file, stat, canonicalize a path and
|
|
7
|
+
* match a file name against a glob. Every rule (declared packages, patterns,
|
|
8
|
+
* import-once, the kind check and the failures) is the kernel's.
|
|
9
|
+
*/
|
|
10
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
11
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
12
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
13
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return path;
|
|
17
|
+
};
|
|
18
|
+
import { readdirSync, readFileSync, realpathSync, statSync } from 'node:fs';
|
|
19
|
+
import { isBuiltin } from 'node:module';
|
|
20
|
+
import { dirname, isAbsolute, join, relative, resolve } from 'node:path';
|
|
21
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
22
|
+
import { ABSENT_PATH_CODES, readOrAbsent } from "./services/workspace-root-probe.impl.bun.js";
|
|
23
|
+
/** A path that is not there reads as `missing`; any other failure propagates. */
|
|
24
|
+
function stat(path) {
|
|
25
|
+
return readOrAbsent(() => {
|
|
26
|
+
const entry = statSync(path);
|
|
27
|
+
return entry.isDirectory() ? 'directory' : entry.isFile() ? 'file' : 'missing';
|
|
28
|
+
}, ABSENT_PATH_CODES, 'missing');
|
|
29
|
+
}
|
|
30
|
+
/** An absolute or relative path imports as a file URL; a bare specifier resolves from `from`. */
|
|
31
|
+
function resolveSpecifier(specifier, from) {
|
|
32
|
+
if (specifier.startsWith('file://'))
|
|
33
|
+
return specifier;
|
|
34
|
+
if (isAbsolute(specifier))
|
|
35
|
+
return pathToFileURL(specifier).href;
|
|
36
|
+
const base = from ? (stat(from) === 'directory' ? from : dirname(from)) : undefined;
|
|
37
|
+
if (!base)
|
|
38
|
+
return specifier;
|
|
39
|
+
if (specifier.startsWith('./') || specifier.startsWith('../')) {
|
|
40
|
+
return pathToFileURL(resolve(base, specifier)).href;
|
|
41
|
+
}
|
|
42
|
+
const resolved = Bun.resolveSync(specifier, base);
|
|
43
|
+
return isBuiltin(resolved) ? resolved : pathToFileURL(resolved).href;
|
|
44
|
+
}
|
|
45
|
+
/** A glob per file-name pattern, compiled once. */
|
|
46
|
+
const globs = new Map();
|
|
47
|
+
export function createBunHostLoader() {
|
|
48
|
+
return {
|
|
49
|
+
importModule: (specifier, from) => import(__rewriteRelativeImportExtension(/* @vite-ignore */ resolveSpecifier(specifier, from))),
|
|
50
|
+
importModuleVersion(specifier, version, from) {
|
|
51
|
+
const resolved = resolveSpecifier(specifier, from);
|
|
52
|
+
if (isBuiltin(resolved))
|
|
53
|
+
return import(__rewriteRelativeImportExtension(/* @vite-ignore */ resolved));
|
|
54
|
+
// Bun caches a file URL's query under the original module. A versioned
|
|
55
|
+
// filesystem specifier gives each observed revision its own module.
|
|
56
|
+
const source = resolved.startsWith('file:') ? fileURLToPath(resolved) : resolved;
|
|
57
|
+
if (source.endsWith('.json'))
|
|
58
|
+
return Promise.resolve({ default: JSON.parse(readFileSync(source, 'utf8')) });
|
|
59
|
+
return import(__rewriteRelativeImportExtension(/* @vite-ignore */ resolveSpecifier(`${source}?v=${encodeURIComponent(version)}`)));
|
|
60
|
+
},
|
|
61
|
+
resolveSpecifier,
|
|
62
|
+
listDirectory: (path) => readOrAbsent(() => readdirSync(path), ABSENT_PATH_CODES, null),
|
|
63
|
+
readFile: (path) => readFileSync(path, 'utf8'),
|
|
64
|
+
isAbsolutePath: (path) => isAbsolute(path),
|
|
65
|
+
stat,
|
|
66
|
+
fileVersion: (path) => readOrAbsent(() => {
|
|
67
|
+
const entry = statSync(path);
|
|
68
|
+
return entry.isFile() ? `${entry.mtime.toISOString()}:${entry.size}` : null;
|
|
69
|
+
}, ABSENT_PATH_CODES, null),
|
|
70
|
+
realPath: (path) => realpathSync(path),
|
|
71
|
+
matchName(pattern, name) {
|
|
72
|
+
let glob = globs.get(pattern);
|
|
73
|
+
if (!glob) {
|
|
74
|
+
glob = new Bun.Glob(pattern);
|
|
75
|
+
globs.set(pattern, glob);
|
|
76
|
+
}
|
|
77
|
+
return glob.match(name);
|
|
78
|
+
},
|
|
79
|
+
joinPath: (...segments) => join(...segments),
|
|
80
|
+
relativePath: relative
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=host-loader.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-loader.impl.bun.js","sourceRoot":"","sources":["../src/host-loader.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;;;;;;;;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE9F,iFAAiF;AACjF,SAAS,IAAI,CAAC,IAAY;IACzB,OAAO,YAAY,CAClB,GAAG,EAAE;QACJ,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC7B,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAA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AAC,WAAW,EAAE,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7E,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC;QAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;QACtC,SAAS,CAAC,OAAO,EAAE,IAAI;YACtB,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;gBACX,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC7B,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC1B,CAAC;YACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;QACD,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;QAC5C,YAAY,EAAE,QAAQ;KACtB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** This host's signal number for `name`; `undefined` when its table lacks it. */
|
|
2
|
+
export declare function signalNumber(name: string): number | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* The host's number for a signal name, or the kernel's typed refusal for a name its table lacks
|
|
5
|
+
* (`INVALID_INPUT` / `execution-signal-invalid`). Every signalling path checks first, so an unknown name
|
|
6
|
+
* is refused on every path, before any signal is sent.
|
|
7
|
+
*/
|
|
8
|
+
export declare function requireSignalNumber(signal: string): number;
|
|
9
|
+
/** The same check for a path that sends the name itself: the name, once the host's table has it. */
|
|
10
|
+
export declare function requireSignalName(signal: string): string;
|
|
11
|
+
//# sourceMappingURL=host-signal.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-signal.impl.bun.d.ts","sourceRoot":"","sources":["../src/host-signal.impl.bun.ts"],"names":[],"mappings":"AAYA,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { constants } from 'node:os';
|
|
2
|
+
import { requireKnownSignal } from '@vibesdotdev/execution-local';
|
|
3
|
+
/**
|
|
4
|
+
* The signals this host can deliver: its own `os.constants.signals` table, the one source every signalling
|
|
5
|
+
* path here (the spawn base's `handle.kill`, the process service's `signal`, PTY and held-launch sessions)
|
|
6
|
+
* names signals by. No hand list: a name another platform has (SIGPWR on Darwin, SIGBREAK anywhere but
|
|
7
|
+
* Windows) is not a signal here, and sending it would vanish (node-pty swallows a `kill` it cannot deliver)
|
|
8
|
+
* or fail late, so it is refused before anything is sent.
|
|
9
|
+
*/
|
|
10
|
+
const HOST_SIGNALS = new Map(Object.entries(constants.signals));
|
|
11
|
+
/** This host's signal number for `name`; `undefined` when its table lacks it. */
|
|
12
|
+
export function signalNumber(name) {
|
|
13
|
+
return HOST_SIGNALS.get(name);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The host's number for a signal name, or the kernel's typed refusal for a name its table lacks
|
|
17
|
+
* (`INVALID_INPUT` / `execution-signal-invalid`). Every signalling path checks first, so an unknown name
|
|
18
|
+
* is refused on every path, before any signal is sent.
|
|
19
|
+
*/
|
|
20
|
+
export function requireSignalNumber(signal) {
|
|
21
|
+
return requireKnownSignal(signalNumber, signal);
|
|
22
|
+
}
|
|
23
|
+
/** The same check for a path that sends the name itself: the name, once the host's table has it. */
|
|
24
|
+
export function requireSignalName(signal) {
|
|
25
|
+
requireSignalNumber(signal);
|
|
26
|
+
return signal;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=host-signal.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-signal.impl.bun.js","sourceRoot":"","sources":["../src/host-signal.impl.bun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,YAAY,GAAgC,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;AAE7F,iFAAiF;AACjF,MAAM,UAAU,YAAY,CAAC,IAAY;IACxC,OAAO,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAc;IACjD,OAAO,kBAAkB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC/C,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Standalone HTTP composition uses semantic runtime clients for ownership. */
|
|
2
|
+
import { type RuntimePlugin, type RuntimeRef } from '@vibesdotdev/kernel';
|
|
3
|
+
import { BunRuntimeHttpListener } from './services/runtime-http-listener.impl.bun.ts';
|
|
4
|
+
/** Register an explicitly owned listener as the runtime's HTTP context. */
|
|
5
|
+
export declare function registerBunHttpListener(runtime: RuntimeRef, listener: BunRuntimeHttpListener): void;
|
|
6
|
+
/** Reuse the selected Bun host; otherwise resolve the standalone semantic owner. */
|
|
7
|
+
export declare function bunHttpListenerPlugin(): RuntimePlugin;
|
|
8
|
+
//# sourceMappingURL=http-listener.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-listener.impl.bun.d.ts","sourceRoot":"","sources":["../src/http-listener.impl.bun.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,EAA6D,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIrI,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AAEtF,2EAA2E;AAC3E,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAGnG;AAeD,oFAAoF;AACpF,wBAAgB,qBAAqB,IAAI,aAAa,CAmBrD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** Standalone HTTP composition uses semantic runtime clients for ownership. */
|
|
2
|
+
import { createRuntimePlugin, runtimeHttpListenerContextDescriptor } from '@vibesdotdev/kernel';
|
|
3
|
+
import { BaseRuntimeClient, getVibesClient, tryGetVibesClient, runtimeClientKind } from '@vibesdotdev/kernel/client';
|
|
4
|
+
import contextPlugin from '@vibesdotdev/kernel/context/context.plugin';
|
|
5
|
+
import { BunRuntimeHttpListener } from "./services/runtime-http-listener.impl.bun.js";
|
|
6
|
+
/** Register an explicitly owned listener as the runtime's HTTP context. */
|
|
7
|
+
export function registerBunHttpListener(runtime, listener) {
|
|
8
|
+
runtime.registerDescriptor('context', runtimeHttpListenerContextDescriptor);
|
|
9
|
+
runtime.registerLoader('context', runtimeHttpListenerContextDescriptor.id, () => Promise.resolve({ impl: listener }));
|
|
10
|
+
}
|
|
11
|
+
const listenerClientDescriptor = {
|
|
12
|
+
id: 'bun-http-listener', kind: 'runtime/client', name: 'Bun standalone HTTP listener'
|
|
13
|
+
};
|
|
14
|
+
/** The kernel owns standalone listeners, including failed activation cleanup. */
|
|
15
|
+
class BunHttpListenerClient extends BaseRuntimeClient {
|
|
16
|
+
listener = new BunRuntimeHttpListener(this.runtime);
|
|
17
|
+
async onDispose() {
|
|
18
|
+
await this.listener.dispose();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/** Reuse the selected Bun host; otherwise resolve the standalone semantic owner. */
|
|
22
|
+
export function bunHttpListenerPlugin() {
|
|
23
|
+
return createRuntimePlugin({
|
|
24
|
+
id: 'runtime-environment-bun-http-listener',
|
|
25
|
+
name: 'Runtime Environment — Bun HTTP listener',
|
|
26
|
+
description: 'The Bun HTTP listener a runtime hands to listenHttp.',
|
|
27
|
+
async onRegister(runtime) {
|
|
28
|
+
if (!runtime.hasKind('context'))
|
|
29
|
+
await runtime.registerPlugin(contextPlugin);
|
|
30
|
+
if (!runtime.hasKind(runtimeClientKind.id))
|
|
31
|
+
runtime.registerKind(runtimeClientKind);
|
|
32
|
+
runtime.registerDescriptor(runtimeClientKind.id, listenerClientDescriptor);
|
|
33
|
+
runtime.registerLoader(runtimeClientKind.id, listenerClientDescriptor.id, async () => ({ impl: BunHttpListenerClient }));
|
|
34
|
+
runtime.registerDescriptor('context', runtimeHttpListenerContextDescriptor);
|
|
35
|
+
runtime.registerLoader('context', runtimeHttpListenerContextDescriptor.id, async () => {
|
|
36
|
+
const host = tryGetVibesClient('bun-host', runtime);
|
|
37
|
+
const listener = host?.httpListener ??
|
|
38
|
+
(await getVibesClient(listenerClientDescriptor.id, runtime)).listener;
|
|
39
|
+
return { impl: listener };
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=http-listener.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-listener.impl.bun.js","sourceRoot":"","sources":["../src/http-listener.impl.bun.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,EAAE,mBAAmB,EAAE,oCAAoC,EAAuC,MAAM,qBAAqB,CAAC;AACrI,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAgC,MAAM,4BAA4B,CAAC;AACnJ,OAAO,aAAa,MAAM,4CA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,CAAC,iBAAiB,CAAC,EAAE,EAAE,wBAAwB,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;YACzH,OAAO,CAAC,kBAAkB,CAAC,SAAS,EAAE,oCAAoC,CAAC,CAAC;YAC5E,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,oCAAoC,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;gBACrF,MAAM,IAAI,GAAG,iBAAiB,CAAgB,UAAU,EAAE,OAAO,CAAC,CAAC;gBACnE,MAAM,QAAQ,GAAG,IAAI,EAAE,YAAY;oBAClC,CAAC,MAAM,cAAc,CAAwB,wBAAwB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;gBAC9F,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;YAC3B,CAAC,CAAC,CAAC;QACJ,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bun Runtime Environment Package
|
|
3
|
+
*
|
|
4
|
+
* Provides Bun-specific implementations for:
|
|
5
|
+
* - runtime/environment: BunEnvironment
|
|
6
|
+
* - runtime/loader: the host loader port (module import + filesystem mechanism)
|
|
7
|
+
* - runtime/scope: Built from captured env
|
|
8
|
+
* - runtime/env: Env access (credentials resolve through runtime.resolveCredential)
|
|
9
|
+
*/
|
|
10
|
+
import type { RuntimePlugin, VibesRuntime } from '@vibesdotdev/kernel';
|
|
11
|
+
export { BunHostClient, bunHostClientDescriptor } from './host-client.impl.bun.ts';
|
|
12
|
+
import { BunEnvironment, type BunEnvironmentOptions, type BunHostDeclaration, type BunHostFacts, type BunPathSelection, type BunScopeHostFacts } from './bun-environment.impl.bun.ts';
|
|
13
|
+
import type { RuntimeEnvironmentBunPluginOptions } from './schemas/environment.ts';
|
|
14
|
+
export { BunHostResourcesSchema, type BunHostResources } from './schemas/host-resources.ts';
|
|
15
|
+
export { bunNativeLaunchManifestPath } from './local-execution.impl.bun.ts';
|
|
16
|
+
export { bootRuntimeThread, type RuntimeThreadBootFacts } from './runtime-plugin-host/runtime-thread.impl.bun.ts';
|
|
17
|
+
/** Configured Bun environment plugin selected by consumer runtime hosts. */
|
|
18
|
+
export declare function createRuntimeEnvironmentBunPlugin(options: RuntimeEnvironmentBunPluginOptions, capture?: {
|
|
19
|
+
readonly env: Readonly<Record<string, string>>;
|
|
20
|
+
readonly cwd: string;
|
|
21
|
+
}): RuntimePlugin;
|
|
22
|
+
/**
|
|
23
|
+
* Get the Bun environment implementation.
|
|
24
|
+
* Throws if Bun environment wasn't registered.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getBunEnvironment(runtime: VibesRuntime): BunEnvironment;
|
|
27
|
+
export { BunEnvironment };
|
|
28
|
+
export { createBunHostLoader } from './host-loader.impl.bun.ts';
|
|
29
|
+
export { buildWorkspaceEnv } from './services/workspace-env.ts';
|
|
30
|
+
export { hasLiveHostCredentials, processStartProbe, type HostCredentialsHost, type HostCredentialsSyncProbe } from './host-credentials.ts';
|
|
31
|
+
export { bunRuntimePath } from './services/runtime-path.impl.bun.ts';
|
|
32
|
+
export type { BunEnvironmentOptions, BunHostDeclaration, BunHostFacts, BunPathSelection, BunScopeHostFacts };
|
|
33
|
+
export type { RuntimeEnvironmentBunPluginOptions } from './schemas/environment.ts';
|
|
34
|
+
export { SHIM_CHANNEL_KEYS } from './host-channel.impl.bun.ts';
|
|
35
|
+
export { computeSelfSpawnArgv, readSelfSpawnArgv, readSelfSpawnSource, requireSelfSpawnArgv, resolveBunArgv } from './services/self-spawn.impl.bun.ts';
|
|
36
|
+
export type { BunArgv, SelfSpawnArgv, SelfSpawnSource } from './services/self-spawn.impl.bun.ts';
|
|
37
|
+
export { BunRuntimeSocketService, normalizeLocalSocketPath } from './services/runtime-socket.impl.bun.ts';
|
|
38
|
+
//# sourceMapping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