@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,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.js";
|
|
9
|
+
export { bunPackagePluginWrites, createBunPackagePluginsHost } from "./primitives.impl.bun.js";
|
|
10
|
+
export { planPackageReadAdmission, verifyPackageReadAdmission } from "./read-admission.impl.bun.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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,EAA+D,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's `runtime/package-plugins`: the kernel's base
|
|
3
|
+
* (`createRuntimePackagePlugins` in `@vibesdotdev/kernel/bootstrap`) over
|
|
4
|
+
* this host's own primitives, bound to the runtime the environment registers
|
|
5
|
+
* it on. Plugin resolution is the kernel composer's, through that runtime's
|
|
6
|
+
* loader.
|
|
7
|
+
*/
|
|
8
|
+
import type { RuntimePackagePlugins, RuntimeRef } from '@vibesdotdev/kernel';
|
|
9
|
+
/** The package-plugin scopes of `runtime`, read and written through the Bun host. */
|
|
10
|
+
export declare function createBunRuntimePackagePlugins(runtime: RuntimeRef): RuntimePackagePlugins;
|
|
11
|
+
//# sourceMappingURL=package-plugins.capability.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-plugins.capability.bun.d.ts","sourceRoot":"","sources":["../../src/package-plugins/package-plugins.capability.bun.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI7E,qFAAqF;AACrF,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,UAAU,GAAG,qBAAqB,CAEzF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's `runtime/package-plugins`: the kernel's base
|
|
3
|
+
* (`createRuntimePackagePlugins` in `@vibesdotdev/kernel/bootstrap`) over
|
|
4
|
+
* this host's own primitives, bound to the runtime the environment registers
|
|
5
|
+
* it on. Plugin resolution is the kernel composer's, through that runtime's
|
|
6
|
+
* loader.
|
|
7
|
+
*/
|
|
8
|
+
import { createRuntimePackagePlugins } from '@vibesdotdev/kernel/bootstrap';
|
|
9
|
+
import { createBunPackagePluginsHost } from "./primitives.impl.bun.js";
|
|
10
|
+
/** The package-plugin scopes of `runtime`, read and written through the Bun host. */
|
|
11
|
+
export function createBunRuntimePackagePlugins(runtime) {
|
|
12
|
+
return createRuntimePackagePlugins(runtime, createBunPackagePluginsHost());
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=package-plugins.capability.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-plugins.capability.bun.js","sourceRoot":"","sources":["../../src/package-plugins/package-plugins.capability.bun.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,qFAAqF;AACrF,MAAM,UAAU,8BAA8B,CAAC,OAAmB;IACjE,OAAO,2BAA2B,CAAC,OAAO,EAAE,2BAA2B,EAAE,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's primitives for the kernel's package-plugin scope base
|
|
3
|
+
* (`@vibesdotdev/kernel/bootstrap`): its own loader and path mechanics for
|
|
4
|
+
* reads and its native writes named by this process's id. Every scope rule is the base's; this is mechanism only.
|
|
5
|
+
*/
|
|
6
|
+
import type { PackagePluginsHost, PackagePluginWritePrimitives } from '@vibesdotdev/kernel/bootstrap';
|
|
7
|
+
/** Bun's native writes; the owner id is this process's id. */
|
|
8
|
+
export declare const bunPackagePluginWrites: PackagePluginWritePrimitives;
|
|
9
|
+
/** The host the base reads and writes through: this host's own loader, path mechanics and writes. */
|
|
10
|
+
export declare function createBunPackagePluginsHost(): PackagePluginsHost;
|
|
11
|
+
//# sourceMappingURL=primitives.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.impl.bun.d.ts","sourceRoot":"","sources":["../../src/package-plugins/primitives.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAItG,8DAA8D;AAC9D,eAAO,MAAM,sBAAsB,EAAE,4BAWnC,CAAC;AAEH,qGAAqG;AACrG,wBAAgB,2BAA2B,IAAI,kBAAkB,CAOhE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's primitives for the kernel's package-plugin scope base
|
|
3
|
+
* (`@vibesdotdev/kernel/bootstrap`): its own loader and path mechanics for
|
|
4
|
+
* reads and its native writes named by this process's id. Every scope rule is the base's; this is mechanism only.
|
|
5
|
+
*/
|
|
6
|
+
import { mkdir, rename, rm } from 'node:fs/promises';
|
|
7
|
+
import { jsoncCodec } from '@vibesdotdev/shared/jsonc';
|
|
8
|
+
import { createBunHostLoader } from "../host-loader.impl.bun.js";
|
|
9
|
+
import { bunRuntimePath } from "../services/runtime-path.impl.bun.js";
|
|
10
|
+
/** Bun's native writes; the owner id is this process's id. */
|
|
11
|
+
export const bunPackagePluginWrites = Object.freeze({
|
|
12
|
+
ownerId: String(process.pid),
|
|
13
|
+
async makeDirectory(directory) {
|
|
14
|
+
await mkdir(directory, { recursive: true });
|
|
15
|
+
},
|
|
16
|
+
async writeTextFile(path, contents) {
|
|
17
|
+
await Bun.write(path, contents);
|
|
18
|
+
},
|
|
19
|
+
rename: (from, to) => rename(from, to),
|
|
20
|
+
// `force` makes an already-absent file a success; a directory still refuses.
|
|
21
|
+
removeFile: (path) => rm(path, { force: true })
|
|
22
|
+
});
|
|
23
|
+
/** The host the base reads and writes through: this host's own loader, path mechanics and writes. */
|
|
24
|
+
export function createBunPackagePluginsHost() {
|
|
25
|
+
return Object.freeze({
|
|
26
|
+
loader: createBunHostLoader(),
|
|
27
|
+
paths: bunRuntimePath,
|
|
28
|
+
jsonc: jsoncCodec,
|
|
29
|
+
writes: bunPackagePluginWrites
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=primitives.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.impl.bun.js","sourceRoot":"","sources":["../../src/package-plugins/primitives.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE,8DAA8D;AAC9D,MAAM,CAAC,MAAM,sBAAsB,GAAiC,MAAM,CAAC,MAAM,CAAC;IACjF,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;IAC5B,KAAK,CAAC,aAAa,CAAC,SAAiB;QACpC,MAAM,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,IAAY,EAAE,QAAgB;QACjD,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,EAAE,CAAC,IAAY,EAAE,EAAU,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;IACtD,6EAA6E;IAC7E,UAAU,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,qGAAqG;AACrG,MAAM,UAAU,2BAA2B;IAC1C,OAAO,MAAM,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,mBAAmB,EAAE;QAC7B,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,sBAAsB;KAC9B,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PackageReadAdmission, PackageReadAdmissionOptions } from './schemas.ts';
|
|
2
|
+
export type { PackageReadAdmission, PackageReadAdmissionOptions } from './schemas.ts';
|
|
3
|
+
/** Promote the existing workspace and installed-package identity mechanisms.
|
|
4
|
+
* Workspace content is declared by files/exports or explicit app source paths;
|
|
5
|
+
* registry content is the exact required native installed package, not its store.
|
|
6
|
+
* Missing declared assets, identity mismatches and graph drift are failures.
|
|
7
|
+
*/
|
|
8
|
+
export declare function planPackageReadAdmission(options: PackageReadAdmissionOptions): PackageReadAdmission;
|
|
9
|
+
/** Recheck the exact issued identity before composing an execution request. */
|
|
10
|
+
export declare function verifyPackageReadAdmission(admission: PackageReadAdmission): void;
|
|
11
|
+
//# sourceMappingURL=read-admission.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-admission.impl.bun.d.ts","sourceRoot":"","sources":["../../src/package-plugins/read-admission.impl.bun.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEtF,YAAY,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAkDtF;;;;EAIE;AACF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,2BAA2B,GAAG,oBAAoB,CA8GnG;AAED,+EAA+E;AAC/E,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAkBhF"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/** Read capabilities for the declared native Bun graph, without importing it. */
|
|
2
|
+
import { attemptNative } from "../services/workspace-root-probe.impl.bun.js";
|
|
3
|
+
import { existsSync, readFileSync, realpathSync, statSync } from 'node:fs';
|
|
4
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
5
|
+
import * as z from 'zod/v4';
|
|
6
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
7
|
+
import { describeGraph } from "../services/graph-freshness.impl.bun.js";
|
|
8
|
+
import { expandWorkspaceMembers, getPackageName, packageRootFor, readWorkspaceGlobs } from '@vibesdotdev/kernel/bootstrap';
|
|
9
|
+
import { createBunPackagePluginsHost } from "./primitives.impl.bun.js";
|
|
10
|
+
// Parse export declarations; Bun itself selects runtime conditions.
|
|
11
|
+
const exportDeclarations = z.union([
|
|
12
|
+
z.string().transform(() => ['.']),
|
|
13
|
+
z.null().transform(() => []),
|
|
14
|
+
z.array(z.unknown()).transform(() => ['.']),
|
|
15
|
+
z.record(z.string(), z.unknown()).transform((value) => {
|
|
16
|
+
const subpaths = Object.keys(value).filter((key) => key.startsWith('.') && value[key] !== null);
|
|
17
|
+
return subpaths.length ? subpaths : ['.'];
|
|
18
|
+
})
|
|
19
|
+
]);
|
|
20
|
+
const manifestSchema = z.object({
|
|
21
|
+
name: z.string().min(1), version: z.string().optional(), private: z.boolean().optional(),
|
|
22
|
+
files: z.array(z.string()).optional(), exports: exportDeclarations.optional(),
|
|
23
|
+
main: z.string().optional(), module: z.string().optional(),
|
|
24
|
+
dependencies: z.record(z.string(), z.string()).optional(),
|
|
25
|
+
peerDependencies: z.record(z.string(), z.string()).optional(),
|
|
26
|
+
optionalDependencies: z.record(z.string(), z.string()).optional(),
|
|
27
|
+
peerDependenciesMeta: z.record(z.string(), z.object({ optional: z.boolean().optional() })).optional()
|
|
28
|
+
}).passthrough();
|
|
29
|
+
/** The Bun host's scope readers: member expansion and installed-package lookups read through it. */
|
|
30
|
+
const scopes = createBunPackagePluginsHost();
|
|
31
|
+
const issued = new WeakMap();
|
|
32
|
+
function invalid(details) {
|
|
33
|
+
return new CapabilityError('The declared native package graph cannot supply exact read admission.', 'INVALID_INPUT', {
|
|
34
|
+
reason: 'package-read-admission-invalid', retryable: false, details
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function inside(root, path) {
|
|
38
|
+
const part = relative(root, path);
|
|
39
|
+
return part === '' || (!isAbsolute(part) && part !== '..' && !part.startsWith(`..${sep}`));
|
|
40
|
+
}
|
|
41
|
+
function digest(text) { return new Bun.CryptoHasher('sha256').update(text).digest('hex'); }
|
|
42
|
+
function readManifest(root) {
|
|
43
|
+
const text = readFileSync(join(root, 'package.json'), 'utf8');
|
|
44
|
+
const parsed = manifestSchema.safeParse(JSON.parse(text));
|
|
45
|
+
if (!parsed.success)
|
|
46
|
+
throw invalid();
|
|
47
|
+
return { value: parsed.data, digest: digest(text) };
|
|
48
|
+
}
|
|
49
|
+
function asset(root, path) {
|
|
50
|
+
if (isAbsolute(path) || path.includes('\0'))
|
|
51
|
+
throw invalid();
|
|
52
|
+
const candidate = realpathSync(resolve(root, path));
|
|
53
|
+
if (!inside(root, candidate) || candidate === root)
|
|
54
|
+
throw invalid();
|
|
55
|
+
return candidate;
|
|
56
|
+
}
|
|
57
|
+
/** Promote the existing workspace and installed-package identity mechanisms.
|
|
58
|
+
* Workspace content is declared by files/exports or explicit app source paths;
|
|
59
|
+
* registry content is the exact required native installed package, not its store.
|
|
60
|
+
* Missing declared assets, identity mismatches and graph drift are failures.
|
|
61
|
+
*/
|
|
62
|
+
export function planPackageReadAdmission(options) {
|
|
63
|
+
const hostRoot = realpathSync(options.hostRoot);
|
|
64
|
+
const graphIdentity = Object.freeze(describeGraph(hostRoot));
|
|
65
|
+
if (!graphIdentity.digest)
|
|
66
|
+
throw invalid();
|
|
67
|
+
const members = expandWorkspaceMembers(scopes, hostRoot, readWorkspaceGlobs(scopes, hostRoot));
|
|
68
|
+
const reads = new Set([join(hostRoot, 'package.json')]);
|
|
69
|
+
if (graphIdentity.lockPath)
|
|
70
|
+
reads.add(graphIdentity.lockPath);
|
|
71
|
+
const directories = new Set();
|
|
72
|
+
const packages = new Map();
|
|
73
|
+
const nativeBindings = [];
|
|
74
|
+
const workspaceManifests = [Object.freeze({ path: join(hostRoot, 'package.json'), digest: digest(readFileSync(join(hostRoot, 'package.json'), 'utf8')) })];
|
|
75
|
+
// Composition's existing workspace expansion reads manifests and lists
|
|
76
|
+
// parent directories, even when a member is not selected for import.
|
|
77
|
+
for (const member of members.values()) {
|
|
78
|
+
if (!inside(hostRoot, realpathSync(member)))
|
|
79
|
+
throw invalid();
|
|
80
|
+
reads.add(join(member, 'package.json'));
|
|
81
|
+
workspaceManifests.push(Object.freeze({ path: join(member, 'package.json'), digest: digest(readFileSync(join(member, 'package.json'), 'utf8')) }));
|
|
82
|
+
for (let current = member; inside(hostRoot, current); current = dirname(current)) {
|
|
83
|
+
directories.add(current);
|
|
84
|
+
if (current === hostRoot)
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const visit = (name, from, optional, ownAppSource = false) => {
|
|
89
|
+
const member = members.get(name);
|
|
90
|
+
const installed = packageRootFor(scopes, from, name);
|
|
91
|
+
if (!member && !installed) {
|
|
92
|
+
if (optional)
|
|
93
|
+
return;
|
|
94
|
+
throw invalid();
|
|
95
|
+
}
|
|
96
|
+
const selected = member ?? installed;
|
|
97
|
+
if (!selected)
|
|
98
|
+
throw invalid();
|
|
99
|
+
const root = realpathSync(selected);
|
|
100
|
+
if (member && installed && realpathSync(installed) !== root)
|
|
101
|
+
throw invalid({ packageName: name, root, failure: 'workspace-identity-conflict' });
|
|
102
|
+
// Bun may install multiple registry versions for distinct dependency
|
|
103
|
+
// contexts. Workspace identity remains singular through the guard above.
|
|
104
|
+
const identity = `${name}\0${root}`;
|
|
105
|
+
const manifest = readManifest(root);
|
|
106
|
+
if (manifest.value.name !== name)
|
|
107
|
+
throw invalid({ packageName: name, root, failure: 'manifest-name-mismatch' });
|
|
108
|
+
// A private app is entered by its explicitly declared source URL, not
|
|
109
|
+
// imported as a dependency. Every dependency still needs its native link.
|
|
110
|
+
const sourceApp = ownAppSource && manifest.value.private === true && Boolean(options.sourcePaths?.[name]?.length);
|
|
111
|
+
if (member && !installed && !sourceApp) {
|
|
112
|
+
if (optional)
|
|
113
|
+
return;
|
|
114
|
+
throw invalid({ packageName: name, root, failure: 'native-workspace-link-missing' });
|
|
115
|
+
}
|
|
116
|
+
if (installed)
|
|
117
|
+
nativeBindings.push({ name, from, root });
|
|
118
|
+
if (packages.has(identity))
|
|
119
|
+
return;
|
|
120
|
+
packages.set(identity, Object.freeze({ name, root, manifest: join(root, 'package.json'), digest: manifest.digest }));
|
|
121
|
+
reads.add(join(root, 'package.json'));
|
|
122
|
+
if (!member) {
|
|
123
|
+
// A Bun-produced immutable registry package identity supplies these
|
|
124
|
+
// bytes. A different installation mechanism needs its own admission.
|
|
125
|
+
if (!inside(join(hostRoot, 'node_modules', '.bun'), root))
|
|
126
|
+
throw invalid({ packageName: manifest.value.name, root, failure: 'non-native-registry-root' });
|
|
127
|
+
reads.add(root);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const patterns = manifest.value.files ?? [];
|
|
131
|
+
const excludes = patterns.filter((pattern) => pattern.startsWith('!')).map((pattern) => new Bun.Glob(pattern.slice(1)));
|
|
132
|
+
// npm files is an inclusion list for packaging, not a promise that
|
|
133
|
+
// every published build output exists in a source workspace. Runtime
|
|
134
|
+
// exports use Bun's condition and remain required, as do app paths.
|
|
135
|
+
const packaging = patterns.filter((pattern) => !pattern.startsWith('!') &&
|
|
136
|
+
(/[?*{[]/.test(pattern) || existsSync(resolve(root, pattern))));
|
|
137
|
+
const publicEntries = manifest.value.exports ?? ((manifest.value.main || manifest.value.module) ? ['.'] : []);
|
|
138
|
+
for (const entry of publicEntries) {
|
|
139
|
+
if (entry.includes('*')) {
|
|
140
|
+
if (!packaging.length && !options.sourcePaths?.[name]?.length)
|
|
141
|
+
throw invalid();
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
const specifier = entry === '.' ? name : `${name}${entry.slice(1)}`;
|
|
145
|
+
// A public entry the selected graph cannot resolve is the declared refusal, not the resolver's own error (which names host paths).
|
|
146
|
+
const resolved = attemptNative(() => realpathSync(Bun.resolveSync(specifier, sourceApp ? root : from)));
|
|
147
|
+
if ('failure' in resolved)
|
|
148
|
+
throw invalid({ packageName: name, root, failure: 'public-entry-unresolved' });
|
|
149
|
+
const selectedAsset = resolved.value;
|
|
150
|
+
if (!inside(root, selectedAsset) || selectedAsset === root)
|
|
151
|
+
throw invalid();
|
|
152
|
+
reads.add(selectedAsset);
|
|
153
|
+
}
|
|
154
|
+
const declarations = [
|
|
155
|
+
...packaging.map((path) => ({ path, required: false })),
|
|
156
|
+
...(options.sourcePaths?.[name] ?? []).map((path) => ({ path, required: true }))
|
|
157
|
+
];
|
|
158
|
+
if (!declarations.length && !publicEntries.length)
|
|
159
|
+
throw invalid();
|
|
160
|
+
for (const { path: declared, required } of declarations) {
|
|
161
|
+
if (isAbsolute(declared) || declared.split('/').includes('..'))
|
|
162
|
+
throw invalid();
|
|
163
|
+
const path = declared.replace(/^\.\//, '');
|
|
164
|
+
let matches;
|
|
165
|
+
if (/[?*{[]/.test(path))
|
|
166
|
+
matches = [...new Bun.Glob(path).scanSync({ cwd: root, onlyFiles: true, dot: true })];
|
|
167
|
+
else {
|
|
168
|
+
const exact = asset(root, path);
|
|
169
|
+
matches = statSync(exact).isDirectory()
|
|
170
|
+
? [...new Bun.Glob(`${path}/**/*`).scanSync({ cwd: root, onlyFiles: true, dot: true })] : [path];
|
|
171
|
+
}
|
|
172
|
+
if (!matches.length && required)
|
|
173
|
+
throw invalid();
|
|
174
|
+
for (const match of matches) {
|
|
175
|
+
if (required || !excludes.some((exclude) => exclude.match(match)))
|
|
176
|
+
reads.add(asset(root, match));
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
for (const dependency of Object.keys(manifest.value.dependencies ?? {}).sort()) {
|
|
181
|
+
visit(dependency, root, dependency in (manifest.value.optionalDependencies ?? {}));
|
|
182
|
+
}
|
|
183
|
+
for (const dependency of Object.keys(manifest.value.optionalDependencies ?? {}).sort())
|
|
184
|
+
visit(dependency, root, true);
|
|
185
|
+
for (const dependency of Object.keys(manifest.value.peerDependencies ?? {}).sort()) {
|
|
186
|
+
visit(dependency, root, manifest.value.peerDependenciesMeta?.[dependency]?.optional === true);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
for (const name of [...new Set(options.seedPackageNames.map(getPackageName))].sort())
|
|
190
|
+
visit(name, hostRoot, false, true);
|
|
191
|
+
const result = Object.freeze({ hostRoot, graphIdentity,
|
|
192
|
+
packages: Object.freeze([...packages.values()].sort((a, b) => a.name.localeCompare(b.name))),
|
|
193
|
+
readOnlyRoots: Object.freeze([...reads].sort()), enumerationDirectories: Object.freeze([...directories].sort()),
|
|
194
|
+
workspaceManifests: Object.freeze(workspaceManifests), verify: () => verifyPackageReadAdmission(result) });
|
|
195
|
+
issued.set(result, nativeBindings.map((binding) => Object.freeze(binding)));
|
|
196
|
+
verifyPackageReadAdmission(result);
|
|
197
|
+
return result;
|
|
198
|
+
}
|
|
199
|
+
/** Recheck the exact issued identity before composing an execution request. */
|
|
200
|
+
export function verifyPackageReadAdmission(admission) {
|
|
201
|
+
const bindings = issued.get(admission);
|
|
202
|
+
if (!bindings || realpathSync(admission.hostRoot) !== admission.hostRoot ||
|
|
203
|
+
describeGraph(admission.hostRoot).digest !== admission.graphIdentity.digest)
|
|
204
|
+
throw invalid();
|
|
205
|
+
for (const binding of bindings) {
|
|
206
|
+
const current = packageRootFor(scopes, binding.from, binding.name);
|
|
207
|
+
if (!current || realpathSync(current) !== binding.root)
|
|
208
|
+
throw invalid();
|
|
209
|
+
}
|
|
210
|
+
for (const entry of admission.packages) {
|
|
211
|
+
if (realpathSync(entry.root) !== entry.root || readManifest(entry.root).digest !== entry.digest)
|
|
212
|
+
throw invalid();
|
|
213
|
+
}
|
|
214
|
+
for (const entry of admission.workspaceManifests) {
|
|
215
|
+
if (digest(readFileSync(entry.path, 'utf8')) !== entry.digest)
|
|
216
|
+
throw invalid();
|
|
217
|
+
}
|
|
218
|
+
const current = new Set([join(admission.hostRoot, 'package.json'),
|
|
219
|
+
...[...expandWorkspaceMembers(scopes, admission.hostRoot, readWorkspaceGlobs(scopes, admission.hostRoot)).values()].map((root) => join(root, 'package.json'))]);
|
|
220
|
+
if (current.size !== admission.workspaceManifests.length ||
|
|
221
|
+
admission.workspaceManifests.some((entry) => !current.has(entry.path)))
|
|
222
|
+
throw invalid();
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=read-admission.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-admission.impl.bun.js","sourceRoot":"","sources":["../../src/package-plugins/read-admission.impl.bun.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAA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AI,KAAK,SAAS,CAAC,kBAAkB,CAAC,MAAM;QACvD,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAAE,MAAM,OAAO,EAAE,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Read admission declarations for the declared native package graph. */
|
|
2
|
+
import type { describeGraph } from '../services/graph-freshness.impl.bun.ts';
|
|
3
|
+
export interface PackageReadAdmissionOptions {
|
|
4
|
+
/** The already declared resolution root, never inferred from cwd. */
|
|
5
|
+
hostRoot: string;
|
|
6
|
+
seedPackageNames: readonly string[];
|
|
7
|
+
/** Explicit app-owned code paths for private packages without published files. */
|
|
8
|
+
sourcePaths?: Readonly<Record<string, readonly string[]>>;
|
|
9
|
+
}
|
|
10
|
+
export interface PackageReadAdmission {
|
|
11
|
+
readonly hostRoot: string;
|
|
12
|
+
readonly graphIdentity: ReturnType<typeof describeGraph>;
|
|
13
|
+
readonly packages: readonly Readonly<{
|
|
14
|
+
name: string;
|
|
15
|
+
root: string;
|
|
16
|
+
manifest: string;
|
|
17
|
+
digest: string;
|
|
18
|
+
}>[];
|
|
19
|
+
readonly readOnlyRoots: readonly string[];
|
|
20
|
+
readonly enumerationDirectories: readonly string[];
|
|
21
|
+
readonly workspaceManifests: readonly Readonly<{
|
|
22
|
+
path: string;
|
|
23
|
+
digest: string;
|
|
24
|
+
}>[];
|
|
25
|
+
/** Revalidate the issued native identity immediately before execution. */
|
|
26
|
+
verify(): void;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/package-plugins/schemas.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,WAAW,2BAA2B;IAC3C,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,kFAAkF;IAClF,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CAC1D;AACD,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IACzD,QAAQ,CAAC,QAAQ,EAAE,SAAS,QAAQ,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACzG,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,sBAAsB,EAAE,SAAS,MAAM,EAAE,CAAC;IACnD,QAAQ,CAAC,kBAAkB,EAAE,SAAS,QAAQ,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACnF,0EAA0E;IAC1E,MAAM,IAAI,IAAI,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/package-plugins/schemas.ts"],"names":[],"mappings":"AAAA,yEAAyE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's held-launch artifact reader: `runtime-execution-local`'s
|
|
3
|
+
* cohort reader (`readLaunchArtifactsWith`, beside the ABI it verifies) over
|
|
4
|
+
* this host's own synchronous file reads (`node:fs`, which Bun implements),
|
|
5
|
+
* its own hash (`Bun.CryptoHasher`) and path mechanics. No discovery or FFI
|
|
6
|
+
* loading: it validates exactly the cohort the host declared.
|
|
7
|
+
*/
|
|
8
|
+
import { type HeldLaunchArtifactPaths, type HeldLaunchHostFacts } from '@vibesdotdev/execution-local';
|
|
9
|
+
/** Read, validate and hash the exact native launch cohort named by one manifest. */
|
|
10
|
+
export declare function readLaunchArtifacts(manifestPath: string, host?: HeldLaunchHostFacts): HeldLaunchArtifactPaths;
|
|
11
|
+
//# sourceMappingURL=launch-artifacts.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-artifacts.impl.bun.d.ts","sourceRoot":"","sources":["../../src/process/launch-artifacts.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAEN,KAAK,uBAAuB,EAE5B,KAAK,mBAAmB,EACxB,MAAM,8BAA8B,CAAC;AAatC,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,mBAAmB,GAAG,uBAAuB,CAE7G"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's held-launch artifact reader: `runtime-execution-local`'s
|
|
3
|
+
* cohort reader (`readLaunchArtifactsWith`, beside the ABI it verifies) over
|
|
4
|
+
* this host's own synchronous file reads (`node:fs`, which Bun implements),
|
|
5
|
+
* its own hash (`Bun.CryptoHasher`) and path mechanics. No discovery or FFI
|
|
6
|
+
* loading: it validates exactly the cohort the host declared.
|
|
7
|
+
*/
|
|
8
|
+
import { readFileSync, statSync } from 'node:fs';
|
|
9
|
+
import { dirname, isAbsolute, join } from 'node:path';
|
|
10
|
+
import { readLaunchArtifactsWith } from '@vibesdotdev/execution-local';
|
|
11
|
+
/** This host's file, hash and path primitives. */
|
|
12
|
+
const bunArtifactFiles = Object.freeze({
|
|
13
|
+
fileSize: (path) => statSync(path).size,
|
|
14
|
+
readText: (path) => readFileSync(path, 'utf8'),
|
|
15
|
+
readBytes: (path) => readFileSync(path),
|
|
16
|
+
sha256Hex: (bytes) => new Bun.CryptoHasher('sha256').update(bytes).digest('hex'),
|
|
17
|
+
isAbsolute,
|
|
18
|
+
join,
|
|
19
|
+
dirname
|
|
20
|
+
});
|
|
21
|
+
/** Read, validate and hash the exact native launch cohort named by one manifest. */
|
|
22
|
+
export function readLaunchArtifacts(manifestPath, host) {
|
|
23
|
+
return readLaunchArtifactsWith(bunArtifactFiles, manifestPath, host);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=launch-artifacts.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-artifacts.impl.bun.js","sourceRoot":"","sources":["../../src/process/launch-artifacts.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EACN,uBAAuB,EAIvB,MAAM,8BAA8B,CAAC;AAEtC,kDAAkD;AAClD,MAAM,gBAAgB,GAA4B,MAAM,CAAC,MAAM,CAAC;IAC/D,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI;IAC/C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC;IACtD,SAAS,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;IAC/C,SAAS,EAAE,CAAC,KAAiB,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IAC5F,UAAU;IACV,IAAI;IACJ,OAAO;CACP,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,UAAU,mBAAmB,CAAC,YAAoB,EAAE,IAA0B;IACnF,OAAO,uBAAuB,CAAC,gBAAgB,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's native process probes: this host's own spawn of `ps`, `lsof`
|
|
3
|
+
* and their Windows equivalents to read the process table, bounded and without
|
|
4
|
+
* a console window. How a spawn's result becomes an answer is the kernel's
|
|
5
|
+
* process-view base (`answerProbeSync`, `probeFailureOf`,
|
|
6
|
+
* `probeExitedFindingNothing`): what the tool printed, `null` when it ran and
|
|
7
|
+
* found nothing, or `UNAVAILABLE` `process-table-unavailable` when it could not
|
|
8
|
+
* run. A probe's environment is always the caller's composition, `env`, never
|
|
9
|
+
* the live process environment.
|
|
10
|
+
*/
|
|
11
|
+
/** Run one probe asynchronously (the process service's probe). */
|
|
12
|
+
export declare function probe(command: string, args: string[], env: Record<string, string>, timeoutMs?: number): Promise<string | null>;
|
|
13
|
+
/** Run one probe synchronously (the process views' probe, for a reader that answers inline). */
|
|
14
|
+
export declare function probeSync(command: string, args: string[], env: Record<string, string>, timeoutMs?: number): string | null;
|
|
15
|
+
//# sourceMappingURL=process-probe.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-probe.impl.bun.d.ts","sourceRoot":"","sources":["../../src/process/process-probe.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,kEAAkE;AAClE,wBAAgB,KAAK,CACpB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,SAAS,SAAQ,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAexB;AAED,gGAAgG;AAChG,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,SAAQ,GAAG,MAAM,GAAG,IAAI,CAIxH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's native process probes: this host's own spawn of `ps`, `lsof`
|
|
3
|
+
* and their Windows equivalents to read the process table, bounded and without
|
|
4
|
+
* a console window. How a spawn's result becomes an answer is the kernel's
|
|
5
|
+
* process-view base (`answerProbeSync`, `probeFailureOf`,
|
|
6
|
+
* `probeExitedFindingNothing`): what the tool printed, `null` when it ran and
|
|
7
|
+
* found nothing, or `UNAVAILABLE` `process-table-unavailable` when it could not
|
|
8
|
+
* run. A probe's environment is always the caller's composition, `env`, never
|
|
9
|
+
* the live process environment.
|
|
10
|
+
*/
|
|
11
|
+
import { execFile, spawnSync } from 'node:child_process';
|
|
12
|
+
import { answerProbeSync, attemptNative, probeExitedFindingNothing, probeFailureOf, processTableUnavailable } from '@vibesdotdev/execution-local';
|
|
13
|
+
/** Run one probe asynchronously (the process service's probe). */
|
|
14
|
+
export function probe(command, args, env, timeoutMs = 5_000) {
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
const launched = attemptNative(() => execFile(command, args, { windowsHide: true, timeout: timeoutMs, maxBuffer: 8 * 1024 * 1024, encoding: 'utf8', env }, (error, stdout, stderr) => {
|
|
17
|
+
if (!error)
|
|
18
|
+
return resolve(stdout.trim());
|
|
19
|
+
if (probeExitedFindingNothing(error, stdout, stderr))
|
|
20
|
+
return resolve(null);
|
|
21
|
+
reject(processTableUnavailable(command, probeFailureOf(error)));
|
|
22
|
+
}));
|
|
23
|
+
// This host raises a spawn it denies (EPERM) synchronously: the same refusal.
|
|
24
|
+
if ('failure' in launched)
|
|
25
|
+
reject(processTableUnavailable(command, probeFailureOf(launched.failure.cause)));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/** Run one probe synchronously (the process views' probe, for a reader that answers inline). */
|
|
29
|
+
export function probeSync(command, args, env, timeoutMs = 3_000) {
|
|
30
|
+
const answer = answerProbeSync(spawnSync(command, args, { encoding: 'utf8', timeout: timeoutMs, windowsHide: true, env }));
|
|
31
|
+
if ('failure' in answer)
|
|
32
|
+
throw processTableUnavailable(command, answer.failure);
|
|
33
|
+
return answer.text;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=process-probe.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-probe.impl.bun.js","sourceRoot":"","sources":["../../src/process/process-probe.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,yBAAyB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAElJ,kEAAkE;AAClE,MAAM,UAAU,KAAK,CACpB,OAAe,EACf,IAAc,EACd,GAA2B,EAC3B,SAAS,GAAG,KAAK;IAEjB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,EAAE,CAAC,QAAQ,CAC5C,OAAO,EACP,IAAI,EACJ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,EAC5F,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;YACzB,IAAI,CAAC,KAAK;gBAAE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YAC1C,IAAI,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;gBAAE,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;YAC3E,MAAM,CAAC,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC,CACD,CAAC,CAAC;QACH,8EAA8E;QAC9E,IAAI,SAAS,IAAI,QAAQ;YAAE,MAAM,CAAC,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7G,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,gGAAgG;AAChG,MAAM,UAAU,SAAS,CAAC,OAAe,EAAE,IAAc,EAAE,GAA2B,EAAE,SAAS,GAAG,KAAK;IACxG,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAC3H,IAAI,SAAS,IAAI,MAAM;QAAE,MAAM,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAChF,OAAO,MAAM,CAAC,IAAI,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's `runtime/process` service: the kernel's process service base
|
|
3
|
+
* (`createRuntimeProcessService`, C089) over this host's own primitives: its
|
|
4
|
+
* asynchronous probe, `process.pid`, `process.kill`, `process.memoryUsage()`,
|
|
5
|
+
* its signal table, its `/proc` access and its collector (`Bun.gc`).
|
|
6
|
+
*/
|
|
7
|
+
import { type ProcFiles, type RuntimeProcessServiceOptions } from '@vibesdotdev/execution-local';
|
|
8
|
+
import type { RuntimeProcessService } from '@vibesdotdev/kernel/process';
|
|
9
|
+
/** Linux native session observation over this host's `/proc` (or `files`); null is reserved for a vanished process. */
|
|
10
|
+
export declare function bunLinuxSessionId(pid: number, files?: ProcFiles): Promise<number | null>;
|
|
11
|
+
/**
|
|
12
|
+
* The native process service of one Bun host. This process's own environment
|
|
13
|
+
* is the host's captured snapshot (`hostEnv`), never the live process
|
|
14
|
+
* environment; `options.childEnv` composes each probe's environment from the
|
|
15
|
+
* owning runtime. A read answers `null`/`false` only when its probe ran and
|
|
16
|
+
* found nothing; a probe that could not run throws `UNAVAILABLE`
|
|
17
|
+
* `process-table-unavailable`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createBunRuntimeProcess(hostEnv: () => Readonly<Record<string, string | undefined>>, options: RuntimeProcessServiceOptions): RuntimeProcessService;
|
|
20
|
+
//# sourceMappingURL=runtime-process.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-process.impl.bun.d.ts","sourceRoot":"","sources":["../../src/process/runtime-process.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAmD,KAAK,SAAS,EAA2B,KAAK,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC3K,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAsBzE,uHAAuH;AACvH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,SAAwB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAEtG;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EAC3D,OAAO,EAAE,4BAA4B,GACnC,qBAAqB,CAEvB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's `runtime/process` service: the kernel's process service base
|
|
3
|
+
* (`createRuntimeProcessService`, C089) over this host's own primitives: its
|
|
4
|
+
* asynchronous probe, `process.pid`, `process.kill`, `process.memoryUsage()`,
|
|
5
|
+
* its signal table, its `/proc` access and its collector (`Bun.gc`).
|
|
6
|
+
*/
|
|
7
|
+
import { readFile, readlink } from 'node:fs/promises';
|
|
8
|
+
import { createRuntimeProcessService, readLinuxSessionId } from '@vibesdotdev/execution-local';
|
|
9
|
+
import { probe } from "./process-probe.impl.bun.js";
|
|
10
|
+
import { signalNumber } from "../host-signal.impl.bun.js";
|
|
11
|
+
/** This host's own `/proc` access. */
|
|
12
|
+
const bunProcFiles = {
|
|
13
|
+
readText: path => readFile(path, 'utf8'),
|
|
14
|
+
readLink: path => readlink(path)
|
|
15
|
+
};
|
|
16
|
+
/** This host's process primitives. */
|
|
17
|
+
const bunProcessPrimitives = Object.freeze({
|
|
18
|
+
probe,
|
|
19
|
+
currentPid: () => process.pid,
|
|
20
|
+
kill: (pid, signal) => { process.kill(pid, signal); },
|
|
21
|
+
memoryUsage: () => process.memoryUsage(),
|
|
22
|
+
signalNumber,
|
|
23
|
+
procFiles: bunProcFiles,
|
|
24
|
+
// Bun's synchronous full collection.
|
|
25
|
+
nativeCollector: () => () => { Bun.gc(true); }
|
|
26
|
+
});
|
|
27
|
+
/** Linux native session observation over this host's `/proc` (or `files`); null is reserved for a vanished process. */
|
|
28
|
+
export function bunLinuxSessionId(pid, files = bunProcFiles) {
|
|
29
|
+
return readLinuxSessionId(pid, files);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The native process service of one Bun host. This process's own environment
|
|
33
|
+
* is the host's captured snapshot (`hostEnv`), never the live process
|
|
34
|
+
* environment; `options.childEnv` composes each probe's environment from the
|
|
35
|
+
* owning runtime. A read answers `null`/`false` only when its probe ran and
|
|
36
|
+
* found nothing; a probe that could not run throws `UNAVAILABLE`
|
|
37
|
+
* `process-table-unavailable`.
|
|
38
|
+
*/
|
|
39
|
+
export function createBunRuntimeProcess(hostEnv, options) {
|
|
40
|
+
return createRuntimeProcessService(bunProcessPrimitives, hostEnv, options);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=runtime-process.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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AA2D,EAC3D,OAAqC;IAErC,OAAO,2BAA2B,CAAC,oBAAoB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The contracts of the Bun host's process primitives (`spawn.impl.bun.ts`). */
|
|
2
|
+
import type { ChildProcess } from 'node:child_process';
|
|
3
|
+
import type { EventEmitter } from 'node:events';
|
|
4
|
+
import type { NativeChildLaunch } from '@vibesdotdev/execution-local';
|
|
5
|
+
/** The native child this host's launch returns: its events and the members the spawn base and the control descriptor read. */
|
|
6
|
+
export type BunNativeChild = EventEmitter & Pick<ChildProcess, 'stdin' | 'stdout' | 'stderr' | 'stdio' | 'pid' | 'exitCode' | 'signalCode' | 'kill' | 'unref'>;
|
|
7
|
+
/** This host's native launch function: the spawn seam a test replaces. */
|
|
8
|
+
export type BunNativeSpawn = NativeChildLaunch<BunNativeChild>;
|
|
9
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/process/schemas.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,8HAA8H;AAC9H,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,IAAI,CAAC,YAAY,EAC5D,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEjG,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAC"}
|