@vibesdotdev/host-bun 0.0.0-stage → 1.0.0-rc.2
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,86 @@
|
|
|
1
|
+
import { CapabilityError, settle, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
2
|
+
import { NativeImageSourceSchema, NativeImageEncodeSchema, NativeImageMetadataSchema, NativeImageResultSchema } from "./schemas/native-image.js";
|
|
3
|
+
function refusal(reason, message, cause, code = 'INVALID_INPUT') {
|
|
4
|
+
const facts = valueFreeFailure(cause);
|
|
5
|
+
const details = facts.code && /^ERR_IMAGE_[A-Z_]+$/.test(facts.code) ? { bunCode: facts.code } : undefined;
|
|
6
|
+
const options = { reason, retryable: false };
|
|
7
|
+
if (details !== undefined)
|
|
8
|
+
options.details = details;
|
|
9
|
+
if (cause instanceof Error)
|
|
10
|
+
options.cause = cause;
|
|
11
|
+
return new CapabilityError(message, code, options);
|
|
12
|
+
}
|
|
13
|
+
function configure(image, output) {
|
|
14
|
+
switch (output.format) {
|
|
15
|
+
case 'jpeg':
|
|
16
|
+
image.jpeg({ quality: output.quality, progressive: output.progressive });
|
|
17
|
+
return;
|
|
18
|
+
case 'png':
|
|
19
|
+
image.png({
|
|
20
|
+
compressionLevel: output.compressionLevel, palette: output.palette,
|
|
21
|
+
colors: output.colors, dither: output.dither
|
|
22
|
+
});
|
|
23
|
+
return;
|
|
24
|
+
case 'webp':
|
|
25
|
+
image.webp({ quality: output.quality, lossless: output.lossless });
|
|
26
|
+
return;
|
|
27
|
+
case 'heic':
|
|
28
|
+
image.heic({ quality: output.quality });
|
|
29
|
+
return;
|
|
30
|
+
case 'avif':
|
|
31
|
+
image.avif({ quality: output.quality });
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** Each call owns its native pipeline; only bytes and schema-validated facts leave. */
|
|
36
|
+
export default class BunNativeImage {
|
|
37
|
+
async metadata(request) {
|
|
38
|
+
const parsed = NativeImageSourceSchema.safeParse(request);
|
|
39
|
+
if (!parsed.success)
|
|
40
|
+
throw refusal('native-image-request-invalid', 'The native image request is not valid.', parsed.error);
|
|
41
|
+
const input = parsed.data;
|
|
42
|
+
const data = Uint8Array.from(input.data);
|
|
43
|
+
const outcome = await settle(() => new Bun.Image(data, { maxPixels: input.maxPixels, autoOrient: input.autoOrient }).metadata());
|
|
44
|
+
if (!outcome.ok)
|
|
45
|
+
throw refusal('native-image-failed', 'The native image operation failed.', outcome.cause);
|
|
46
|
+
const result = NativeImageMetadataSchema.safeParse(outcome.value);
|
|
47
|
+
if (!result.success) {
|
|
48
|
+
throw refusal('native-image-metadata-invalid', 'The native image has no usable size.', result.error, 'INTERNAL');
|
|
49
|
+
}
|
|
50
|
+
return result.data;
|
|
51
|
+
}
|
|
52
|
+
async encode(request) {
|
|
53
|
+
const parsed = NativeImageEncodeSchema.safeParse(request);
|
|
54
|
+
if (!parsed.success)
|
|
55
|
+
throw refusal('native-image-request-invalid', 'The native image request is not valid.', parsed.error);
|
|
56
|
+
const input = parsed.data;
|
|
57
|
+
const source = Uint8Array.from(input.data);
|
|
58
|
+
const outcome = await settle(async () => {
|
|
59
|
+
const image = new Bun.Image(source, { maxPixels: input.maxPixels, autoOrient: input.autoOrient });
|
|
60
|
+
if (input.rotate !== undefined)
|
|
61
|
+
image.rotate(input.rotate);
|
|
62
|
+
if (input.flip)
|
|
63
|
+
image.flip();
|
|
64
|
+
if (input.flop)
|
|
65
|
+
image.flop();
|
|
66
|
+
if (input.resize) {
|
|
67
|
+
const { width, height, ...options } = input.resize;
|
|
68
|
+
image.resize(width, height, options);
|
|
69
|
+
}
|
|
70
|
+
if (input.modulate)
|
|
71
|
+
image.modulate(input.modulate);
|
|
72
|
+
configure(image, input.output);
|
|
73
|
+
const data = Uint8Array.from(await image.bytes());
|
|
74
|
+
const metadata = await new Bun.Image(data, { maxPixels: input.maxPixels }).metadata();
|
|
75
|
+
return { data, width: metadata.width, height: metadata.height };
|
|
76
|
+
});
|
|
77
|
+
if (!outcome.ok)
|
|
78
|
+
throw refusal('native-image-failed', 'The native image operation failed.', outcome.cause);
|
|
79
|
+
const result = NativeImageResultSchema.safeParse(outcome.value);
|
|
80
|
+
if (!result.success) {
|
|
81
|
+
throw refusal('native-image-result-invalid', 'The native encoded image could not be read back.', result.error, 'INTERNAL');
|
|
82
|
+
}
|
|
83
|
+
return result.data;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=native-image.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-image.impl.consumer.js","sourceRoot":"","sources":["../src/native-image.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AAEpG,OAAO,EACN,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAC3E,uBAAuB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,SAAS,OAAO,CAAC,MAAc,EAAE,OAAe,EAAE,KAAoB,EAAE,OAAqC,eAAe;IAC3H,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,IAAI,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3G,MAAM,OAAO,GAAqD,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IACrD,IAAI,KAAK,YAAY,KAAK;QAAE,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IAClD,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,SAAS,CAAC,KAAgB,EAAE,MAAyB;IAC7D,QAAQ,M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,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAC5H,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC;IACpB,CAAC;CACD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NativeImageDescriptorSchema } from "./schemas/native-image.js";
|
|
2
|
+
export * from "./schemas/native-image.js";
|
|
3
|
+
export const NATIVE_IMAGE_KIND = 'host/native-image';
|
|
4
|
+
export const NATIVE_IMAGE_ID = 'host.native-image.bun';
|
|
5
|
+
export const nativeImageKind = {
|
|
6
|
+
id: NATIVE_IMAGE_KIND,
|
|
7
|
+
descriptorSchema: NativeImageDescriptorSchema,
|
|
8
|
+
resolve(candidates, scope) {
|
|
9
|
+
return candidates.find(candidate => candidate.hardware.some(hardware => hardware === scope.hardware));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export const nativeImageDescriptor = NativeImageDescriptorSchema.parse({
|
|
13
|
+
id: NATIVE_IMAGE_ID,
|
|
14
|
+
kind: NATIVE_IMAGE_KIND,
|
|
15
|
+
name: 'Bun native image codec',
|
|
16
|
+
description: 'Native image metadata, transforms, encoding and readback',
|
|
17
|
+
hardware: ['consumer']
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=native-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-image.js","sourceRoot":"","sources":["../src/native-image.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,2BAA2B,EAE3B,MAAM,2BAA2B,CAAC;AAEnC,cAAc,2BAA2B,CAAC;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AACrD,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AACvD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,EAAE,EAAE,iBAAiB;IACrB,gBAAgB,EAAE,2BAA2B;IAC7C,OAAO,CAAC,UAAmC,EAAE,KAA2B;QACvE,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvG,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC,KAAK,CAAC;IACtE,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,0DAA0D;IACvE,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NativeLibraryBoundary } from '@vibesdotdev/execution-local/native-library';
|
|
2
|
+
/** Narrow consumer composition; the optional boundary substitutes native FFI only. */
|
|
3
|
+
export declare function createBunNativeLibraryPlugin(boundary?: NativeLibraryBoundary): import("@vibesdotdev/kernel").RuntimePlugin;
|
|
4
|
+
declare const _default: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=native-library.consumer.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-library.consumer.plugin.d.ts","sourceRoot":"","sources":["../src/native-library.consumer.plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEzF,sFAAsF;AACtF,wBAAgB,4BAA4B,CAAC,QAAQ,CAAC,EAAE,qBAAqB,+CAuB5E;;AACD,wBAA8C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CapabilityError, createRuntimePlugin, loader, matchesScope, settle } from '@vibesdotdev/kernel';
|
|
2
|
+
import { getVibesClient } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import runtimeClientPlugin from '@vibesdotdev/kernel/client/plugin';
|
|
4
|
+
import { nativeLibraryClientDescriptor, NATIVE_LIBRARY_CLIENT_ID } from '@vibesdotdev/execution-local/native-library';
|
|
5
|
+
/** Narrow consumer composition; the optional boundary substitutes native FFI only. */
|
|
6
|
+
export function createBunNativeLibraryPlugin(boundary) {
|
|
7
|
+
return createRuntimePlugin({
|
|
8
|
+
id: 'host-bun-native-library',
|
|
9
|
+
name: 'Bun native library host',
|
|
10
|
+
async onRegister(runtime) { await runtime.registerPlugin(runtimeClientPlugin); },
|
|
11
|
+
descriptors: [nativeLibraryClientDescriptor],
|
|
12
|
+
loaders: [loader(NATIVE_LIBRARY_CLIENT_ID, { kind: 'runtime/client', scope: 'consumer' }, async () => {
|
|
13
|
+
const { BunNativeLibraryClient } = await import("./native-library.impl.consumer.js");
|
|
14
|
+
return { impl: class extends BunNativeLibraryClient {
|
|
15
|
+
constructor(...args) {
|
|
16
|
+
super(args[0], args[1], boundary);
|
|
17
|
+
}
|
|
18
|
+
} };
|
|
19
|
+
})],
|
|
20
|
+
async onActivate(runtime) {
|
|
21
|
+
// Only warm the client where its descriptor is admitted by the kernel.
|
|
22
|
+
if (!matchesScope(runtime.scope, { hardware: ['consumer'] }))
|
|
23
|
+
return;
|
|
24
|
+
const selected = await settle(() => getVibesClient(NATIVE_LIBRARY_CLIENT_ID, runtime));
|
|
25
|
+
if (!selected.ok)
|
|
26
|
+
throw new CapabilityError('Native library host resolution failed.', 'UNAVAILABLE', {
|
|
27
|
+
reason: 'native-library-resolution-failed', cause: selected.cause
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export default createBunNativeLibraryPlugin();
|
|
33
|
+
//# sourceMappingURL=native-library.consumer.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-library.consumer.plugin.js","sourceRoot":"","sources":["../src/native-library.consumer.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,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M,IAAI,eAAe,CAAC,wCAAwC,EAAE,aAAa,EAAE;oBACpG,MAAM,EAAE,kCAAkC,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK;iBACjE,CAAC,CAAC;QACJ,CAAC;KACD,CAAC,CAAC;AACJ,CAAC;AACD,eAAe,4BAA4B,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type KindContext } from '@vibesdotdev/kernel';
|
|
2
|
+
import { BaseRuntimeClient, type RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import { type FFIFunction, type Library, type NativeFfi, type NativeLibraryBoundary } from '@vibesdotdev/execution-local/native-library';
|
|
4
|
+
import type { NativeLibraryClient } from '@vibesdotdev/execution-local/native-library';
|
|
5
|
+
/** Runtime lifetime owns every opened handle, including callers that forget close(). */
|
|
6
|
+
export declare class BunNativeLibraryClient extends BaseRuntimeClient implements NativeLibraryClient {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(descriptor: RuntimeClientDescriptor, context?: KindContext, boundary?: NativeLibraryBoundary);
|
|
9
|
+
get suffix(): string;
|
|
10
|
+
get ffi(): NativeFfi;
|
|
11
|
+
dlopen<Fns extends Record<string, FFIFunction>>(path: string, symbols: Fns): Library<Fns>;
|
|
12
|
+
protected onDispose(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=native-library.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-library.impl.consumer.d.ts","sourceRoot":"","sources":["../src/native-library.impl.consumer.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,EAEN,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAC1E,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,wFAAwF;AACxF,qBAAa,sBAAuB,SAAQ,iBAAkB,YAAW,mBAAmB;;gBAI/E,UAAU,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,QAAQ,GAAE,qBAAgF;IAKlK,IAAI,MAAM,IAAI,MAAM,CAAkC;IAEtD,IAAI,GAAG,IAAI,SAAS,CAA+B;IAEnD,MAAM,CAAC,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;cAuBhE,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CAKnD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { dlopen, FFIType, ptr, suffix, toArrayBuffer } from 'bun:ffi';
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { CapabilityError, settleNow } from '@vibesdotdev/kernel';
|
|
4
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
5
|
+
import { NativeLibraryBoundarySchema, NativeLibraryPathSchema } from '@vibesdotdev/execution-local/native-library';
|
|
6
|
+
/** Runtime lifetime owns every opened handle, including callers that forget close(). */
|
|
7
|
+
export class BunNativeLibraryClient extends BaseRuntimeClient {
|
|
8
|
+
#boundary;
|
|
9
|
+
#handles = new Set();
|
|
10
|
+
constructor(descriptor, context, boundary = { dlopen, suffix, ffi: { FFIType, ptr, toArrayBuffer } }) {
|
|
11
|
+
super(descriptor, context);
|
|
12
|
+
this.#boundary = NativeLibraryBoundarySchema.parse(boundary);
|
|
13
|
+
}
|
|
14
|
+
get suffix() { return this.#boundary.suffix; }
|
|
15
|
+
get ffi() { return this.#boundary.ffi; }
|
|
16
|
+
dlopen(path, symbols) {
|
|
17
|
+
const library = this.#boundary.dlopen(NativeLibraryPathSchema.parse(path), symbols);
|
|
18
|
+
const missing = Object.keys(symbols).filter(name => !z.function().safeParse(library.symbols[name]).success);
|
|
19
|
+
if (missing.length) {
|
|
20
|
+
const refusal = new CapabilityError('Native library is missing required symbols.', 'UNAVAILABLE', {
|
|
21
|
+
reason: 'native-library-symbols-missing', details: { symbols: missing }
|
|
22
|
+
});
|
|
23
|
+
const cleanup = settleNow(() => library.close());
|
|
24
|
+
if (!cleanup.ok)
|
|
25
|
+
throw new AggregateError([refusal, cleanup.cause], 'Native symbol validation and cleanup failed.', { cause: refusal });
|
|
26
|
+
throw refusal;
|
|
27
|
+
}
|
|
28
|
+
let closed = false;
|
|
29
|
+
const close = () => {
|
|
30
|
+
if (closed)
|
|
31
|
+
return;
|
|
32
|
+
library.close();
|
|
33
|
+
closed = true;
|
|
34
|
+
this.#handles.delete(close);
|
|
35
|
+
};
|
|
36
|
+
this.#handles.add(close);
|
|
37
|
+
return { symbols: library.symbols, close };
|
|
38
|
+
}
|
|
39
|
+
async onDispose() {
|
|
40
|
+
const results = [...this.#handles].map(close => settleNow(close));
|
|
41
|
+
const failures = results.flatMap(result => result.ok ? [] : [result.cause]);
|
|
42
|
+
if (failures.length)
|
|
43
|
+
throw new AggregateError(failures, 'Native libraries could not all close.');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=native-library.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-library.impl.consumer.js","sourceRoot":"","sources":["../src/native-library.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,SAAS,EAAoB,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAgC,MAAM,4BAA4B,CAAC;AAC7F,OAAO,EAC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;AAC7C,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/native-network/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-host.d.ts","sourceRoot":"","sources":["../../src/native-network/native-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEpG,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAU7D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CapabilityError, EnvironmentDescriptorSchema } from '@vibesdotdev/kernel';
|
|
2
|
+
/** Hardware describes ownership; the native ABI is declared by the environment. */
|
|
3
|
+
export function assertNativeBunHost(runtime) {
|
|
4
|
+
const native = runtime.query('runtime/environment').descriptors().some(descriptor => {
|
|
5
|
+
const admitted = EnvironmentDescriptorSchema.safeParse(descriptor);
|
|
6
|
+
return admitted.success && admitted.data.identity.nativeLoader && admitted.data.substrate === 'local';
|
|
7
|
+
});
|
|
8
|
+
if (!native || runtime.scope.surface === 'browser') {
|
|
9
|
+
throw new CapabilityError('Native Bun capabilities require a native Bun host.', 'UNAVAILABLE', {
|
|
10
|
+
reason: 'native-bun-host-required', retryable: false
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=native-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-host.js","sourceRoot":"","sources":["../../src/native-network/native-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAmB,MAAM,qBAAqB,CAAC;AAEpG,mFAAmF;AACnF,MAAM,UAAU,mBAAmB,CAAC,OAAmB;IACtD,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;QACnF,MAAM,QAAQ,GAAG,2BAA2B,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACnE,OAAO,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC;IACvG,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACpD,MAAM,IAAI,eAAe,CAAC,oDAAoD,EAAE,aAAa,EAAE;YAC9F,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,KAAK;SACpD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
|
|
2
|
+
export declare const NATIVE_NETWORK_CLIENT_ID = "host.native-network";
|
|
3
|
+
export declare const nativeNetworkClientDescriptor: RuntimeClientDescriptor;
|
|
4
|
+
//# sourceMappingURL=native-network.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-network.descriptor.d.ts","sourceRoot":"","sources":["../../src/native-network/native-network.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG1E,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAC9D,eAAO,MAAM,6BAA6B,EAAE,uBAO3C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NativeNetworkSettingsSchema } from "../schemas/native-network.js";
|
|
2
|
+
export const NATIVE_NETWORK_CLIENT_ID = 'host.native-network';
|
|
3
|
+
export const nativeNetworkClientDescriptor = {
|
|
4
|
+
id: NATIVE_NETWORK_CLIENT_ID,
|
|
5
|
+
kind: 'runtime/client',
|
|
6
|
+
name: 'Native Bun networking',
|
|
7
|
+
description: 'Lifecycle-owned SSH, raw HTTP and WebSocket networking on native Bun hosts.',
|
|
8
|
+
hardware: ['consumer', 'cloud'],
|
|
9
|
+
config: NativeNetworkSettingsSchema.parse({})
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=native-network.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-network.descriptor.js","sourceRoot":"","sources":["../../src/native-network/native-network.descriptor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAC9D,MAAM,CAAC,MAAM,6BAA6B,GAA4B;IACrE,EAAE,EAAE,wBAAwB;IAC5B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,6EAA6E;IAC1F,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,MAAM,EAAE,2BAA2B,CAAC,KAAK,CAAC,EAAE,CAAC;CAC7C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import 'bun';
|
|
2
|
+
import { type Server as TcpServer } from 'node:net';
|
|
3
|
+
import { WebSocket } from 'ws-real';
|
|
4
|
+
import { BaseRuntimeClient, type RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
|
|
5
|
+
import type { KindContext } from '@vibesdotdev/kernel';
|
|
6
|
+
import type { NativeNetworkClient } from './index.ts';
|
|
7
|
+
import { type NativeHttpOptions, type NativeHttpListener, type NativeSshOptions, type NativeSshListener, type NativeWebSocketServerOptions, type NativeWebSocketOptions, type NativeSshSignature } from '../schemas/native-network.ts';
|
|
8
|
+
/** Only the runtime owns this client; callers receive native compatibility handles. */
|
|
9
|
+
export declare class BunNativeNetworkClient extends BaseRuntimeClient implements NativeNetworkClient {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(descriptor: RuntimeClientDescriptor, context?: KindContext);
|
|
12
|
+
createHttpServer(options: NativeHttpOptions, listener: NativeHttpListener): import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
|
|
13
|
+
createSshServer(options: NativeSshOptions, listener: NativeSshListener): TcpServer;
|
|
14
|
+
createWebSocketServer(options: NativeWebSocketServerOptions): import("ws").Server<typeof WebSocket, typeof import("node:http").IncomingMessage>;
|
|
15
|
+
connectWebSocket(url: string, options?: NativeWebSocketOptions): WebSocket;
|
|
16
|
+
verifySshSignature(input: NativeSshSignature): boolean;
|
|
17
|
+
protected onDispose(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=native-network.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-network.impl.bun.d.ts","sourceRoot":"","sources":["../../src/native-network/native-network.impl.bun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC;AAEb,OAAO,EAAgD,KAAK,MAAM,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAElG,OAAO,EAAE,SAAS,EAAmB,MAAM,SAAS,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,qBAAqB,CAAC;AAE1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAIN,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAC9F,KAAK,4BAA4B,EAAE,KAAK,sBAAsB,EAAE,KAAK,kBAAkB,EACvF,MAAM,8BAA8B,CAAC;AAItC,uFAAuF;AACvF,qBAAa,sBAAuB,SAAQ,iBAAkB,YAAW,mBAAmB;;gBAI/E,UAAU,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,WAAW;IAiBtE,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,kBAAkB;IAQzE,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,iBAAiB;IAiBtE,qBAAqB,CAAC,OAAO,EAAE,4BAA4B;IAqC3D,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IAqBlE,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO;cA6D7B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CAOnD"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// This native provider requires Bun's module ABI even though protocol handles
|
|
2
|
+
// deliberately retain Node-compatible HTTP, stream and SDK semantics.
|
|
3
|
+
import 'bun';
|
|
4
|
+
import { createServer as createHttpServer } from 'node:http';
|
|
5
|
+
import { createServer as createTcpServer } from 'node:net';
|
|
6
|
+
import { Server as SshServer, utils } from 'ssh2';
|
|
7
|
+
import { WebSocket, WebSocketServer } from 'ws-real';
|
|
8
|
+
import { CapabilityError, settle, settleNow } from '@vibesdotdev/kernel';
|
|
9
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
10
|
+
import { NativeCloseErrorSchema } from "../schemas/native-network.js";
|
|
11
|
+
import { NativeHttpOptionsSchema, NativeHttpListenerSchema, NativeSshOptionsSchema, NativeSshListenerSchema, NativeWebSocketServerOptionsSchema, NativeWebSocketOptionsSchema, NativeWebSocketUrlSchema, NativeSshSignatureSchema, NativeNetworkSettingsSchema } from "../schemas/native-network.js";
|
|
12
|
+
import { assertNativeBunHost } from "./native-host.js";
|
|
13
|
+
/** Only the runtime owns this client; callers receive native compatibility handles. */
|
|
14
|
+
export class BunNativeNetworkClient extends BaseRuntimeClient {
|
|
15
|
+
#resources = new Set();
|
|
16
|
+
#closed = false;
|
|
17
|
+
constructor(descriptor, context) {
|
|
18
|
+
super(descriptor, context);
|
|
19
|
+
assertNativeBunHost(this.runtime);
|
|
20
|
+
}
|
|
21
|
+
#admit(schema, input) {
|
|
22
|
+
if (this.#closed)
|
|
23
|
+
throw new CapabilityError('Native networking has been disposed.', 'UNAVAILABLE', {
|
|
24
|
+
reason: 'native-network-disposed', retryable: false
|
|
25
|
+
});
|
|
26
|
+
assertNativeBunHost(this.runtime);
|
|
27
|
+
const result = settleNow(() => schema.safeParse(input));
|
|
28
|
+
if (!result.ok || !result.value.success)
|
|
29
|
+
throw new CapabilityError('Native networking input is invalid.', 'INVALID_INPUT', {
|
|
30
|
+
reason: 'native-network-input-invalid', retryable: false
|
|
31
|
+
});
|
|
32
|
+
return result.value.data;
|
|
33
|
+
}
|
|
34
|
+
createHttpServer(options, listener) {
|
|
35
|
+
const admitted = this.#admit(NativeHttpOptionsSchema, options);
|
|
36
|
+
const handler = this.#admit(NativeHttpListenerSchema, listener);
|
|
37
|
+
const server = createHttpServer(admitted, handler);
|
|
38
|
+
this.#ownTcp(server);
|
|
39
|
+
return server;
|
|
40
|
+
}
|
|
41
|
+
createSshServer(options, listener) {
|
|
42
|
+
const admitted = this.#admit(NativeSshOptionsSchema, options);
|
|
43
|
+
const handler = this.#admit(NativeSshListenerSchema, listener);
|
|
44
|
+
const connections = new Set();
|
|
45
|
+
const ssh = new SshServer(admitted, (connection, info) => {
|
|
46
|
+
connections.add(connection);
|
|
47
|
+
connection.once('close', () => connections.delete(connection));
|
|
48
|
+
handler(connection, info);
|
|
49
|
+
});
|
|
50
|
+
// Own TCP before SSH handshaking: slow or silent peers never escape disposal.
|
|
51
|
+
const server = createTcpServer(socket => ssh.injectSocket(socket));
|
|
52
|
+
this.#ownTcp(server, () => {
|
|
53
|
+
for (const connection of connections)
|
|
54
|
+
connection.end();
|
|
55
|
+
});
|
|
56
|
+
return server;
|
|
57
|
+
}
|
|
58
|
+
createWebSocketServer(options) {
|
|
59
|
+
const admitted = this.#admit(NativeWebSocketServerOptionsSchema, options);
|
|
60
|
+
// ws's implicit listener does not own pre-upgrade sockets. Use our HTTP
|
|
61
|
+
// lifetime for port mode as well, including asynchronous verifyClient.
|
|
62
|
+
const { port, host, backlog, ...settings } = admitted;
|
|
63
|
+
const http = port === undefined ? undefined : this.createHttpServer({}, (_req, res) => {
|
|
64
|
+
res.writeHead(426);
|
|
65
|
+
res.end();
|
|
66
|
+
});
|
|
67
|
+
const server = new WebSocketServer(http ? { ...settings, server: http } : admitted);
|
|
68
|
+
if (http) {
|
|
69
|
+
server.once('close', () => { http.close(); });
|
|
70
|
+
http.listen(port, host, backlog);
|
|
71
|
+
}
|
|
72
|
+
const sockets = new Set();
|
|
73
|
+
server.on('connection', socket => {
|
|
74
|
+
sockets.add(socket);
|
|
75
|
+
socket.once('close', () => sockets.delete(socket));
|
|
76
|
+
});
|
|
77
|
+
let closed = false;
|
|
78
|
+
let joined = () => { };
|
|
79
|
+
const finish = () => { if (closed && sockets.size === 0)
|
|
80
|
+
joined(); };
|
|
81
|
+
server.on('connection', socket => socket.once('close', finish));
|
|
82
|
+
this.#own(server, () => new Promise((resolve, reject) => {
|
|
83
|
+
joined = resolve;
|
|
84
|
+
server.close(error => {
|
|
85
|
+
if (error && error.message !== 'The server is not running')
|
|
86
|
+
return reject(error);
|
|
87
|
+
closed = true;
|
|
88
|
+
finish();
|
|
89
|
+
});
|
|
90
|
+
for (const socket of sockets)
|
|
91
|
+
socket.close(1001, 'Runtime shutting down');
|
|
92
|
+
}), () => {
|
|
93
|
+
for (const socket of sockets)
|
|
94
|
+
socket.terminate();
|
|
95
|
+
}, () => sockets.size === 0);
|
|
96
|
+
return server;
|
|
97
|
+
}
|
|
98
|
+
connectWebSocket(url, options = {}) {
|
|
99
|
+
const address = this.#admit(NativeWebSocketUrlSchema, url);
|
|
100
|
+
const admitted = this.#admit(NativeWebSocketOptionsSchema, options);
|
|
101
|
+
const socket = new WebSocket(address, admitted);
|
|
102
|
+
this.#own(socket, () => new Promise(resolve => {
|
|
103
|
+
if (socket.readyState === WebSocket.CLOSED)
|
|
104
|
+
return resolve();
|
|
105
|
+
socket.once('close', () => resolve());
|
|
106
|
+
// A handshake has no close frame yet; terminate its request and socket.
|
|
107
|
+
if (socket.readyState === WebSocket.CONNECTING) {
|
|
108
|
+
const diagnostics = this.runtime.diagnostics;
|
|
109
|
+
socket.once('error', error => {
|
|
110
|
+
diagnostics.error('Native WebSocket handshake cancelled during shutdown.', {
|
|
111
|
+
scope: 'host.native-network', plugin: this.id, error
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
socket.terminate();
|
|
115
|
+
}
|
|
116
|
+
else
|
|
117
|
+
socket.close(1001, 'Runtime shutting down');
|
|
118
|
+
}), () => socket.terminate());
|
|
119
|
+
return socket;
|
|
120
|
+
}
|
|
121
|
+
verifySshSignature(input) {
|
|
122
|
+
const value = this.#admit(NativeSshSignatureSchema, input);
|
|
123
|
+
const verified = settleNow(() => {
|
|
124
|
+
const key = utils.parseKey(Buffer.from(value.key));
|
|
125
|
+
if (key instanceof Error || Array.isArray(key))
|
|
126
|
+
return false;
|
|
127
|
+
return key.verify(Buffer.from(value.data), Buffer.from(value.signature), value.hashAlgorithm) === true;
|
|
128
|
+
});
|
|
129
|
+
return verified.ok && verified.value;
|
|
130
|
+
}
|
|
131
|
+
#ownTcp(server, endConnections) {
|
|
132
|
+
const sockets = new Set();
|
|
133
|
+
let closed = false;
|
|
134
|
+
let joined = () => { };
|
|
135
|
+
const finish = () => { if (closed && sockets.size === 0)
|
|
136
|
+
joined(); };
|
|
137
|
+
server.on('connection', socket => {
|
|
138
|
+
sockets.add(socket);
|
|
139
|
+
socket.once('close', () => {
|
|
140
|
+
sockets.delete(socket);
|
|
141
|
+
finish();
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
this.#own(server, () => new Promise((resolve, reject) => {
|
|
145
|
+
joined = resolve;
|
|
146
|
+
server.close(error => {
|
|
147
|
+
if (error && !NativeCloseErrorSchema.safeParse(error).success)
|
|
148
|
+
return reject(error);
|
|
149
|
+
closed = true;
|
|
150
|
+
finish();
|
|
151
|
+
});
|
|
152
|
+
endConnections?.();
|
|
153
|
+
}), () => {
|
|
154
|
+
for (const socket of sockets)
|
|
155
|
+
socket.destroy();
|
|
156
|
+
}, () => sockets.size === 0);
|
|
157
|
+
}
|
|
158
|
+
#own(resource, close, force, released = () => true) {
|
|
159
|
+
const { shutdownTimeoutMs } = NativeNetworkSettingsSchema.parse(this.descriptor.config);
|
|
160
|
+
const dispose = async () => {
|
|
161
|
+
const closing = close();
|
|
162
|
+
const graceful = await settle(() => this.runtime.lifecycle.wait(() => closing, {
|
|
163
|
+
timeoutMs: shutdownTimeoutMs, reason: 'native-network-drain'
|
|
164
|
+
}));
|
|
165
|
+
if (graceful.ok)
|
|
166
|
+
return;
|
|
167
|
+
force();
|
|
168
|
+
// A forced native close still has to join before runtime disposal completes.
|
|
169
|
+
await this.runtime.lifecycle.wait(() => closing, {
|
|
170
|
+
timeoutMs: shutdownTimeoutMs, reason: 'native-network-close'
|
|
171
|
+
});
|
|
172
|
+
if (!(graceful.cause instanceof CapabilityError) || graceful.cause.code !== 'TIMEOUT')
|
|
173
|
+
throw graceful.cause;
|
|
174
|
+
};
|
|
175
|
+
this.#resources.add(dispose);
|
|
176
|
+
resource.once('close', () => {
|
|
177
|
+
if (released())
|
|
178
|
+
this.#resources.delete(dispose);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
async onDispose() {
|
|
182
|
+
this.#closed = true;
|
|
183
|
+
const outcomes = await Promise.allSettled([...this.#resources].map(dispose => dispose()));
|
|
184
|
+
this.#resources.clear();
|
|
185
|
+
const failures = outcomes.flatMap(result => result.status === 'rejected' ? [result.reason] : []);
|
|
186
|
+
if (failures.length)
|
|
187
|
+
throw new AggregateError(failures, 'Native networking resources could not all close.');
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=native-network.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-network.impl.bun.js","sourceRoot":"","sources":["../../src/native-network/native-network.impl.bun.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,sEAAsE;AACtE,OAAO,KAAK,CAAC;AACb,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,YAAY,IAAI,eAAe,EAAyC,MAAM,UAAU,CAAC;AAClG,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,KAAK,EAAmB,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAgC,MAAM,4BAA4B,CAAC;AAE7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EACN,uBAAuB,EAAE,wBAAwB,EAAE,sBAAsB,EACzE,uBAAuB,EAAE,kCAAkC,EAAE,4BAA4B,EACzF,wBAAwB,EAAE,wBAAwB,EAAE,2BAA2B,EAG/E,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,uFAAuF;AACvF,MAAM,OAAO,sBAAuB,SAAQ,iBAAiB;IACnD,UAAU,GAAG,IAAI,GAAG,EAAuB,CAAC;IACrD,OAAO,GAAG,KAAK,CAAC;IAEhB,YAAY,UAAmC,EAAE,OAAqB;QACrE,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC3B,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,CAAI,MAAoB,EAAE,KAAQ;QACvC,IAAI,IAAI,CAAC,OAAO;YAA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AC,CAAC;QACjG,IAAI,QAAQ,CAAC,MAAM;YAAE,MAAM,IAAI,cAAc,CAAC,QAAQ,EAAE,kDAAkD,CAAC,CAAC;IAC7G,CAAC;CACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type NativeNetworkSettings } from '../schemas/native-network.ts';
|
|
2
|
+
/** Native-only composition. No SDK constructors are exported by this plugin. */
|
|
3
|
+
export declare function createBunNativeNetworkPlugin(settings?: Partial<NativeNetworkSettings>): import("@vibesdotdev/kernel").RuntimePlugin;
|
|
4
|
+
export declare const bunNativeNetworkPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
5
|
+
export default bunNativeNetworkPlugin;
|
|
6
|
+
//# sourceMappingURL=native-network.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-network.plugin.d.ts","sourceRoot":"","sources":["../../src/native-network/native-network.plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGvG,gFAAgF;AAChF,wBAAgB,4BAA4B,CAAC,QAAQ,GAAE,OAAO,CAAC,qBAAqB,CAAM,+CAiBzF;AACD,eAAO,MAAM,sBAAsB,6CAAiC,CAAC;AACrE,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
2
|
+
import { getVibesClient } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import runtimeClientPlugin from '@vibesdotdev/kernel/client/plugin';
|
|
4
|
+
import { NativeNetworkSettingsSchema } from "../schemas/native-network.js";
|
|
5
|
+
import { NATIVE_NETWORK_CLIENT_ID, nativeNetworkClientDescriptor } from "./native-network.descriptor.js";
|
|
6
|
+
/** Native-only composition. No SDK constructors are exported by this plugin. */
|
|
7
|
+
export function createBunNativeNetworkPlugin(settings = {}) {
|
|
8
|
+
const config = NativeNetworkSettingsSchema.parse(settings);
|
|
9
|
+
return createRuntimePlugin({
|
|
10
|
+
id: 'host-bun-native-network',
|
|
11
|
+
name: 'Native Bun networking',
|
|
12
|
+
async onRegister(runtime) { await runtime.registerPlugin(runtimeClientPlugin); },
|
|
13
|
+
descriptors: [{ ...nativeNetworkClientDescriptor, config }],
|
|
14
|
+
loaders: [
|
|
15
|
+
loader(NATIVE_NETWORK_CLIENT_ID, { kind: 'runtime/client' }, async () => {
|
|
16
|
+
const { BunNativeNetworkClient } = await import("./native-network.impl.bun.js");
|
|
17
|
+
return { impl: BunNativeNetworkClient };
|
|
18
|
+
})
|
|
19
|
+
],
|
|
20
|
+
async onActivate(runtime) {
|
|
21
|
+
await getVibesClient(NATIVE_NETWORK_CLIENT_ID, runtime);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export const bunNativeNetworkPlugin = createBunNativeNetworkPlugin();
|
|
26
|
+
export default bunNativeNetworkPlugin;
|
|
27
|
+
//# sourceMappingURL=native-network.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-network.plugin.js","sourceRoot":"","sources":["../../src/native-network/native-network.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAA8B,MAAM,8BAA8B,CAAC;AACvG,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAEzG,gFAAgF;AAChF,MAAM,UAAU,4BAA4B,CAAC,WAA2C,EAAE;IACzF,MAAM,MAAM,GAAG,2BAA2B,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,OAAO,mBAAmB,CAAC;QAC1B,EAAE,EAAE,yBAAyB;QAC7B,IAAI,EAAE,uBAAuB;QAC7B,KAAK,CAAC,UAAU,CAAC,OAAO,IAAI,MAAM,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;QAChF,WAAW,EAAE,CAAC,EAAE,GAAG,6BAA6B,EAAE,MAAM,EAAE,CAAC;QAC3D,OAAO,EAAE;YACR,MAAM,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,KAAK,IAAI,EAAE;gBACvE,MAAM,EAAE,sBAAsB,EAAE,GAAG,MAAM,MAAM,CAAC,8BAA8B,CAAC,CAAC;gBAChF,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;YACzC,CAAC,CAAC;SACF;QACD,KAAK,CAAC,UAAU,CAAC,OAAO;YACvB,MAAM,cAAc,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;KACD,CAAC,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,sBAAsB,GAAG,4BAA4B,EAAE,CAAC;AACrE,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's package plugins: its `runtime/package-plugins` (the kernel's
|
|
3
|
+
* scope base, `@vibesdotdev/kernel/bootstrap`, over this host's own
|
|
4
|
+
* primitives) and package-graph read admission, the exact files a restricted
|
|
5
|
+
* execution may read from the declared native graph without importing it.
|
|
6
|
+
* Plugin composition is the kernel's.
|
|
7
|
+
*/
|
|
8
|
+
export { createBunRuntimePackagePlugins } from './package-plugins.capability.bun.ts';
|
|
9
|
+
export { bunPackagePluginWrites, createBunPackagePluginsHost } from './primitives.impl.bun.ts';
|
|
10
|
+
export { planPackageReadAdmission, verifyPackageReadAdmission, type PackageReadAdmission, type PackageReadAdmissionOptions } from './read-admission.impl.bun.ts';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/package-plugins/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,KAAK,oBAAoB,EAAE,KAAK,2BAA2B,EAAE,MAAM,8BAA8B,CAAC"}
|