@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,24 @@
|
|
|
1
|
+
/** Legacy facade over the activated runtime owner; no resources live here. */
|
|
2
|
+
import { CapabilityError, getVibesRuntime } from '@vibesdotdev/kernel';
|
|
3
|
+
import { tryGetVibesClient } from '@vibesdotdev/kernel/client';
|
|
4
|
+
function selectedHost() {
|
|
5
|
+
const client = tryGetVibesClient('bun-host', getVibesRuntime());
|
|
6
|
+
if (!client)
|
|
7
|
+
throw new CapabilityError('Bun operations require an activated host or explicit resources.', 'UNAVAILABLE', {
|
|
8
|
+
reason: 'bun-host-client-unavailable', retryable: false
|
|
9
|
+
});
|
|
10
|
+
return client.resources;
|
|
11
|
+
}
|
|
12
|
+
/** Before boot and after disposal callers must supply createBunHostResources(). */
|
|
13
|
+
export const compatibilityBunHost = Object.freeze({
|
|
14
|
+
get classifier() { return selectedHost().classifier; },
|
|
15
|
+
get executable() { return selectedHost().executable; },
|
|
16
|
+
get outputPlane() { return selectedHost().outputPlane; },
|
|
17
|
+
get fatal() { return selectedHost().fatal; },
|
|
18
|
+
writeOutput: (channel, text) => selectedHost().writeOutput(channel, text),
|
|
19
|
+
setFormatter: next => selectedHost().setFormatter(next),
|
|
20
|
+
retain: () => selectedHost().retain(),
|
|
21
|
+
streams: () => selectedHost().streams(),
|
|
22
|
+
dispose: () => selectedHost().dispose()
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=compatibility-host.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibility-host.impl.bun.js","sourceRoot":"","sources":["../../src/services/compatibility-host.impl.bun.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D,SAAS,YAAY;IACpB,MAAM,MAAM,GAAG,iBAAiB,CAAgB,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC;IAC/E,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,eAAe,CAAC,iEAAiE,EAAE,aAAa,EAAE;YACxH,MAAM,EAAE,6BAA6B,EAAE,SAAS,EAAE,KAAK;SACvD,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,SAAS,CAAC;AACzB,CAAC;AAED,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAA8C,MAAM,CAAC,MAAM,CAAC;IAC5F,IAAI,UAAU,KAAK,OAAO,YAAY,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IACtD,IAAI,UAAU,KAAK,OAAO,YAAY,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IACtD,IAAI,WAAW,KAAK,OAAO,YAAY,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IACxD,IAAI,KAAK,KAAK,OAAO,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,WAAW,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC;IACzE,YAAY,EAAE,IAAI,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;IACvD,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE;IACrC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE;IACvC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE;CACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's executable identity — the pain nerve for a REPLACED BINARY —
|
|
3
|
+
* is the kernel's base (`createExecutableFreshness`: inode/size/mtime identity
|
|
4
|
+
* and "written after this process started") over this process's own
|
|
5
|
+
* executable, its stat and its uptime, with this host's classifier.
|
|
6
|
+
*
|
|
7
|
+
* Two consumers: a process judging ITSELF (`captureExecutableIdentity` at
|
|
8
|
+
* bootstrap, `checkExecutableFreshness` whenever it reports on itself) and a
|
|
9
|
+
* supervisor judging ANOTHER process (`executableReplacedSince`,
|
|
10
|
+
* `readProcessStartMs`, `readProcessExecutablePath`: this host's own process
|
|
11
|
+
* views). Expected absent/unreadable evidence is unknown; other failures propagate.
|
|
12
|
+
*/
|
|
13
|
+
import { type ExecutableHostFacts, type HostIdentityRuntime } from '@vibesdotdev/execution-local';
|
|
14
|
+
export type { ExecutableFileStat, ExecutableFreshness, ExecutableHostFacts, ExecutableIdentity, ExecutableReplacedSince } from '@vibesdotdev/execution-local';
|
|
15
|
+
export { executableIdentity, executableIdentityFrom, hostEntryPath, hostModulesOnDisk, isBundledModuleUrl, isStandaloneExecutable, __resetExecutableIdentityCacheForTest, type ExecutableKind, type HostEnvSnapshot, type HostExecutableIdentity } from './host-identity.impl.bun.ts';
|
|
16
|
+
export { parseElapsed, readProcessExecutablePath, readProcessStartMs, type ProcessViewCommands, type ProcessViewOptions } from './process-view.impl.bun.ts';
|
|
17
|
+
/** This host's executable freshness: the physical file is pinned once per process, each host keeps its own kind and source ref. */
|
|
18
|
+
export declare function createBunExecutableFreshness(classifier?: {
|
|
19
|
+
classifyExecutable: (facts: import("@vibesdotdev/execution-local").ExecutableClassificationFacts) => import("@vibesdotdev/execution-local").HostExecutableIdentity;
|
|
20
|
+
executableIdentityFrom: (env: import("@vibesdotdev/execution-local").HostEnvSnapshot) => import("@vibesdotdev/execution-local").HostExecutableIdentity;
|
|
21
|
+
executableIdentity: (runtime: HostIdentityRuntime) => import("@vibesdotdev/execution-local").HostExecutableIdentity;
|
|
22
|
+
hostModulesOnDisk: (runtime: HostIdentityRuntime) => boolean;
|
|
23
|
+
isStandaloneExecutable: (runtime: HostIdentityRuntime) => boolean;
|
|
24
|
+
hostEntryPath: (runtime: HostIdentityRuntime) => string | null;
|
|
25
|
+
resetForTest: () => void;
|
|
26
|
+
}): {
|
|
27
|
+
isCompiledExecutable: (runtime: HostIdentityRuntime) => boolean;
|
|
28
|
+
processStartedAtMs: () => number;
|
|
29
|
+
statExecutable: (path: string) => import("@vibesdotdev/execution-local").ExecutableFileStat | null;
|
|
30
|
+
executableHostFactsOf: (runtime: HostIdentityRuntime) => ExecutableHostFacts;
|
|
31
|
+
describeExecutable: (path: string, host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
32
|
+
captureExecutableIdentity: (host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
33
|
+
getCapturedExecutableIdentity: () => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
34
|
+
judgeExecutableReplaced: (loaded: import("@vibesdotdev/execution-local").ExecutableFileStat, current: import("@vibesdotdev/execution-local").ExecutableFileStat, processStartMs: number) => boolean;
|
|
35
|
+
checkExecutableFreshness: (host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableFreshness;
|
|
36
|
+
executableReplacedSince: (path: string, processStartMs: number) => import("@vibesdotdev/execution-local").ExecutableReplacedSince;
|
|
37
|
+
resetForTest: () => void;
|
|
38
|
+
};
|
|
39
|
+
/** Compatibility facts keep their explicit owner, without a parallel lookup cache. */
|
|
40
|
+
export declare function executableHostFactsOf(runtime: HostIdentityRuntime, executable?: ReturnType<typeof createBunExecutableFreshness>): {
|
|
41
|
+
executable: {
|
|
42
|
+
isCompiledExecutable: (runtime: HostIdentityRuntime) => boolean;
|
|
43
|
+
processStartedAtMs: () => number;
|
|
44
|
+
statExecutable: (path: string) => import("@vibesdotdev/execution-local").ExecutableFileStat | null;
|
|
45
|
+
executableHostFactsOf: (runtime: HostIdentityRuntime) => ExecutableHostFacts;
|
|
46
|
+
describeExecutable: (path: string, host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
47
|
+
captureExecutableIdentity: (host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
48
|
+
getCapturedExecutableIdentity: () => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
49
|
+
judgeExecutableReplaced: (loaded: import("@vibesdotdev/execution-local").ExecutableFileStat, current: import("@vibesdotdev/execution-local").ExecutableFileStat, processStartMs: number) => boolean;
|
|
50
|
+
checkExecutableFreshness: (host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableFreshness;
|
|
51
|
+
executableReplacedSince: (path: string, processStartMs: number) => import("@vibesdotdev/execution-local").ExecutableReplacedSince;
|
|
52
|
+
resetForTest: () => void;
|
|
53
|
+
};
|
|
54
|
+
identity: {
|
|
55
|
+
kind: "source" | "thin-host" | "monolith";
|
|
56
|
+
execPath: string;
|
|
57
|
+
hostEntry: string | null;
|
|
58
|
+
hostRoot: string | null;
|
|
59
|
+
reason: string;
|
|
60
|
+
};
|
|
61
|
+
env: Readonly<Record<string, string | undefined>>;
|
|
62
|
+
};
|
|
63
|
+
type OwnedFacts = ExecutableHostFacts & {
|
|
64
|
+
executable?: ReturnType<typeof createBunExecutableFreshness>;
|
|
65
|
+
};
|
|
66
|
+
export declare const captureExecutableIdentity: (facts: OwnedFacts) => {
|
|
67
|
+
path: string;
|
|
68
|
+
ino: number;
|
|
69
|
+
size: number;
|
|
70
|
+
mtimeMs: number;
|
|
71
|
+
capturedAt: string;
|
|
72
|
+
compiled: boolean;
|
|
73
|
+
kind: "source" | "thin-host" | "monolith";
|
|
74
|
+
sourceSha: string | null;
|
|
75
|
+
} | null;
|
|
76
|
+
export declare const checkExecutableFreshness: (facts: OwnedFacts) => {
|
|
77
|
+
loaded: {
|
|
78
|
+
path: string;
|
|
79
|
+
ino: number;
|
|
80
|
+
size: number;
|
|
81
|
+
mtimeMs: number;
|
|
82
|
+
capturedAt: string;
|
|
83
|
+
compiled: boolean;
|
|
84
|
+
kind: "source" | "thin-host" | "monolith";
|
|
85
|
+
sourceSha: string | null;
|
|
86
|
+
} | null;
|
|
87
|
+
current: {
|
|
88
|
+
ino: number;
|
|
89
|
+
size: number;
|
|
90
|
+
mtimeMs: number;
|
|
91
|
+
} | null;
|
|
92
|
+
replaced: boolean | null;
|
|
93
|
+
processStartedAt: string;
|
|
94
|
+
reason: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const getCapturedExecutableIdentity: (runtime?: HostIdentityRuntime, executable?: ReturnType<typeof createBunExecutableFreshness>) => {
|
|
97
|
+
path: string;
|
|
98
|
+
ino: number;
|
|
99
|
+
size: number;
|
|
100
|
+
mtimeMs: number;
|
|
101
|
+
capturedAt: string;
|
|
102
|
+
compiled: boolean;
|
|
103
|
+
kind: "source" | "thin-host" | "monolith";
|
|
104
|
+
sourceSha: string | null;
|
|
105
|
+
} | null;
|
|
106
|
+
export declare const isCompiledExecutable: (runtime: HostIdentityRuntime) => boolean;
|
|
107
|
+
export declare const processStartedAtMs: () => number;
|
|
108
|
+
export declare const statExecutable: ReturnType<typeof createBunExecutableFreshness>['statExecutable'];
|
|
109
|
+
export declare const describeExecutable: ReturnType<typeof createBunExecutableFreshness>['describeExecutable'];
|
|
110
|
+
export declare const judgeExecutableReplaced: ReturnType<typeof createBunExecutableFreshness>['judgeExecutableReplaced'];
|
|
111
|
+
export declare const executableReplacedSince: ReturnType<typeof createBunExecutableFreshness>['executableReplacedSince'];
|
|
112
|
+
/** @deprecated Reset an explicitly owned fixture instead. */
|
|
113
|
+
export declare const __resetExecutableIdentityForTest: (runtime?: HostIdentityRuntime, executable?: ReturnType<typeof createBunExecutableFreshness>) => void;
|
|
114
|
+
export declare const bunExecutableFreshness: Readonly<{
|
|
115
|
+
isCompiledExecutable: (runtime: HostIdentityRuntime) => boolean;
|
|
116
|
+
processStartedAtMs: () => number;
|
|
117
|
+
statExecutable: (path: string) => import("@vibesdotdev/execution-local").ExecutableFileStat | null;
|
|
118
|
+
executableHostFactsOf: typeof executableHostFactsOf;
|
|
119
|
+
describeExecutable: (path: string, host: ExecutableHostFacts) => import("@vibesdotdev/execution-local").ExecutableIdentity | null;
|
|
120
|
+
captureExecutableIdentity: (facts: OwnedFacts) => {
|
|
121
|
+
path: string;
|
|
122
|
+
ino: number;
|
|
123
|
+
size: number;
|
|
124
|
+
mtimeMs: number;
|
|
125
|
+
capturedAt: string;
|
|
126
|
+
compiled: boolean;
|
|
127
|
+
kind: "source" | "thin-host" | "monolith";
|
|
128
|
+
sourceSha: string | null;
|
|
129
|
+
} | null;
|
|
130
|
+
getCapturedExecutableIdentity: (runtime?: HostIdentityRuntime, executable?: ReturnType<typeof createBunExecutableFreshness>) => {
|
|
131
|
+
path: string;
|
|
132
|
+
ino: number;
|
|
133
|
+
size: number;
|
|
134
|
+
mtimeMs: number;
|
|
135
|
+
capturedAt: string;
|
|
136
|
+
compiled: boolean;
|
|
137
|
+
kind: "source" | "thin-host" | "monolith";
|
|
138
|
+
sourceSha: string | null;
|
|
139
|
+
} | null;
|
|
140
|
+
judgeExecutableReplaced: (loaded: import("@vibesdotdev/execution-local").ExecutableFileStat, current: import("@vibesdotdev/execution-local").ExecutableFileStat, processStartMs: number) => boolean;
|
|
141
|
+
checkExecutableFreshness: (facts: OwnedFacts) => {
|
|
142
|
+
loaded: {
|
|
143
|
+
path: string;
|
|
144
|
+
ino: number;
|
|
145
|
+
size: number;
|
|
146
|
+
mtimeMs: number;
|
|
147
|
+
capturedAt: string;
|
|
148
|
+
compiled: boolean;
|
|
149
|
+
kind: "source" | "thin-host" | "monolith";
|
|
150
|
+
sourceSha: string | null;
|
|
151
|
+
} | null;
|
|
152
|
+
current: {
|
|
153
|
+
ino: number;
|
|
154
|
+
size: number;
|
|
155
|
+
mtimeMs: number;
|
|
156
|
+
} | null;
|
|
157
|
+
replaced: boolean | null;
|
|
158
|
+
processStartedAt: string;
|
|
159
|
+
reason: string;
|
|
160
|
+
};
|
|
161
|
+
executableReplacedSince: (path: string, processStartMs: number) => import("@vibesdotdev/execution-local").ExecutableReplacedSince;
|
|
162
|
+
resetForTest: (runtime?: HostIdentityRuntime, executable?: ReturnType<typeof createBunExecutableFreshness>) => void;
|
|
163
|
+
}>;
|
|
164
|
+
//# sourceMappingURL=executable-identity.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executable-identity.impl.bun.d.ts","sourceRoot":"","sources":["../../src/services/executable-identity.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,EAA6B,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAG7H,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE9J,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qCAAqC,EACrC,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACN,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,mIAAmI;AACnI,wBAAgB,4BAA4B,CAAC,UAAU;;;;;;;;CAAkC;;;;;;;;;;;;EASxF;AAGD,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,mBAAmB,EAAE,UAAU,CAAC,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;EAK/H;AAiBD,KAAK,UAAU,GAAG,mBAAmB,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAA;CAAE,CAAC;AACzG,eAAO,MAAM,yBAAyB,GAAI,OAAO,UAAU;;;;;;;;;QACW,CAAC;AACvE,eAAO,MAAM,wBAAwB,GAAI,OAAO,UAAU;;;;;;;;;;;;;;;;;;;CACW,CAAC;AACtE,eAAO,MAAM,6BAA6B,GAAI,UAAU,mBAAmB,EAAE,aAAa,UAAU,CAAC,OAAO,4BAA4B,CAAC;;;;;;;;;QACvE,CAAC;AACnE,eAAO,MAAM,oBAAoB,GAAI,SAAS,mBAAmB,YAA4D,CAAC;AAC9H,eAAO,MAAM,kBAAkB,cAA4D,CAAC;AAC5F,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,gBAAgB,CACjC,CAAC;AAC7D,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,oBAAoB,CACrB,CAAC;AACjF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,yBAAyB,CACJ,CAAC;AAC5G,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,yBAAyB,CAC1B,CAAC;AACtF,6DAA6D;AAC7D,eAAO,MAAM,gCAAgC,GAAI,UAAU,mBAAmB,EAAE,aAAa,UAAU,CAAC,OAAO,4BAA4B,CAAC,SAC3F,CAAC;AAClD,eAAO,MAAM,sBAAsB;oCAbW,mBAAmB;;;;;uCANhB,UAAU;;;;;;;;;;8CAIH,mBAAmB,eAAe,UAAU,CAAC,OAAO,4BAA4B,CAAC;;;;;;;;;;;sCAFzF,UAAU;;;;;;;;;;;;;;;;;;;;;6BAeC,mBAAmB,eAAe,UAAU,CAAC,OAAO,4BAA4B,CAAC;EAO1I,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's executable identity — the pain nerve for a REPLACED BINARY —
|
|
3
|
+
* is the kernel's base (`createExecutableFreshness`: inode/size/mtime identity
|
|
4
|
+
* and "written after this process started") over this process's own
|
|
5
|
+
* executable, its stat and its uptime, with this host's classifier.
|
|
6
|
+
*
|
|
7
|
+
* Two consumers: a process judging ITSELF (`captureExecutableIdentity` at
|
|
8
|
+
* bootstrap, `checkExecutableFreshness` whenever it reports on itself) and a
|
|
9
|
+
* supervisor judging ANOTHER process (`executableReplacedSince`,
|
|
10
|
+
* `readProcessStartMs`, `readProcessExecutablePath`: this host's own process
|
|
11
|
+
* views). Expected absent/unreadable evidence is unknown; other failures propagate.
|
|
12
|
+
*/
|
|
13
|
+
import { statSync } from 'node:fs';
|
|
14
|
+
import { CapabilityError, getVibesRuntime, VibesRuntime } from '@vibesdotdev/kernel';
|
|
15
|
+
import { environmentUnregistered } from '@vibesdotdev/execution-local/host-base';
|
|
16
|
+
import { tryGetVibesClient } from '@vibesdotdev/kernel/client';
|
|
17
|
+
import { createExecutableFreshness } from '@vibesdotdev/execution-local';
|
|
18
|
+
import { bunExecutableClassifier, createBunExecutableClassifier } from "./host-identity.impl.bun.js";
|
|
19
|
+
export { executableIdentity, executableIdentityFrom, hostEntryPath, hostModulesOnDisk, isBundledModuleUrl, isStandaloneExecutable, __resetExecutableIdentityCacheForTest } from "./host-identity.impl.bun.js";
|
|
20
|
+
// The process-table views, for the callers that read a process's start time or
|
|
21
|
+
// executable path before any runtime exists: this host's own probe over the kernel's views.
|
|
22
|
+
export { parseElapsed, readProcessExecutablePath, readProcessStartMs } from "./process-view.impl.bun.js";
|
|
23
|
+
/** This host's executable freshness: the physical file is pinned once per process, each host keeps its own kind and source ref. */
|
|
24
|
+
export function createBunExecutableFreshness(classifier = createBunExecutableClassifier()) {
|
|
25
|
+
return createExecutableFreshness({
|
|
26
|
+
execPath: () => process.execPath,
|
|
27
|
+
stat(path) {
|
|
28
|
+
const st = statSync(path);
|
|
29
|
+
return { ino: st.ino, size: st.size, mtimeMs: st.mtimeMs };
|
|
30
|
+
},
|
|
31
|
+
uptimeSeconds: () => process.uptime()
|
|
32
|
+
}, classifier);
|
|
33
|
+
}
|
|
34
|
+
/** Compatibility facts keep their explicit owner, without a parallel lookup cache. */
|
|
35
|
+
export function executableHostFactsOf(runtime, executable) {
|
|
36
|
+
if (!runtime.localEnvironment)
|
|
37
|
+
throw environmentUnregistered();
|
|
38
|
+
const owner = executableOf(runtime, executable);
|
|
39
|
+
return { ...owner.executableHostFactsOf(runtime), executable: owner };
|
|
40
|
+
}
|
|
41
|
+
function executableOf(runtime, executable) {
|
|
42
|
+
if (executable)
|
|
43
|
+
return executable;
|
|
44
|
+
const selected = runtime ?? getVibesRuntime();
|
|
45
|
+
if (!selected.localEnvironment)
|
|
46
|
+
throw environmentUnregistered();
|
|
47
|
+
const client = selected instanceof VibesRuntime
|
|
48
|
+
? tryGetVibesClient('bun-host', selected)
|
|
49
|
+
: undefined;
|
|
50
|
+
if (!client)
|
|
51
|
+
throw new CapabilityError('Bun identity requires an activated host or explicit resources.', 'UNAVAILABLE', {
|
|
52
|
+
reason: 'bun-host-client-unavailable', retryable: false
|
|
53
|
+
});
|
|
54
|
+
return client.resources.executable;
|
|
55
|
+
}
|
|
56
|
+
export const captureExecutableIdentity = (facts) => (facts.executable ?? executableOf()).captureExecutableIdentity(facts);
|
|
57
|
+
export const checkExecutableFreshness = (facts) => (facts.executable ?? executableOf()).checkExecutableFreshness(facts);
|
|
58
|
+
export const getCapturedExecutableIdentity = (runtime, executable) => executableOf(runtime, executable).getCapturedExecutableIdentity();
|
|
59
|
+
export const isCompiledExecutable = (runtime) => bunExecutableClassifier.isStandaloneExecutable(runtime);
|
|
60
|
+
export const processStartedAtMs = () => createBunExecutableFreshness().processStartedAtMs();
|
|
61
|
+
export const statExecutable = path => createBunExecutableFreshness().statExecutable(path);
|
|
62
|
+
export const describeExecutable = (path, facts) => createBunExecutableFreshness().describeExecutable(path, facts);
|
|
63
|
+
export const judgeExecutableReplaced = (loaded, current, start) => createBunExecutableFreshness().judgeExecutableReplaced(loaded, current, start);
|
|
64
|
+
export const executableReplacedSince = (path, start) => createBunExecutableFreshness().executableReplacedSince(path, start);
|
|
65
|
+
/** @deprecated Reset an explicitly owned fixture instead. */
|
|
66
|
+
export const __resetExecutableIdentityForTest = (runtime, executable) => executableOf(runtime, executable).resetForTest();
|
|
67
|
+
export const bunExecutableFreshness = Object.freeze({
|
|
68
|
+
isCompiledExecutable, processStartedAtMs, statExecutable, executableHostFactsOf,
|
|
69
|
+
describeExecutable, captureExecutableIdentity, getCapturedExecutableIdentity,
|
|
70
|
+
judgeExecutableReplaced, checkExecutableFreshness, executableReplacedSince,
|
|
71
|
+
resetForTest: __resetExecutableIdentityForTest
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=executable-identity.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executable-identity.impl.bun.js","sourceRoot":"","sources":["../../src/services/executable-identity.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,yBAAyB,EAAsD,MAAM,8BAA8B,CAAC;AAC7H,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAIrG,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qCAAqC,EAIrC,MAAM,6BAA6B,CAAC;AAErC,+EAA+E;AAC/E,4FAA4F;AAC5F,OAAO,EACN,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAGlB,MAAM,4BAA4B,CAAC;AAEpC,mIAAmI;AACnI,MAAM,UAAU,4BAA4B,CAAC,UAAU,GAAG,6BAA6B,EAAE;IACzF,OAAO,yBAAyB,CAAC;QAChC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ;QAChC,IAAI,CAAC,IAAI;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AAM,gCAAgC,GAAG,CAAC,OAA6B,EAAE,UAA4D,EAAE,EAAE,CAC/I,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,YAAY,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,qBAAqB;IAC/E,kBAAkB,EAAE,yBAAyB,EAAE,6BAA6B;IAC5E,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB;IAC1E,YAAY,EAAE,gCAAgC;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Bun's report-only native fatal source; each host composition owns its installation. */
|
|
2
|
+
import { type RuntimeFatalListener } from '@vibesdotdev/kernel';
|
|
3
|
+
import { type RuntimeFatalFanOut } from '@vibesdotdev/execution-local';
|
|
4
|
+
/** Reuses execution-local fan-out; native listeners and the re-raise marker have this owner's lifetime. */
|
|
5
|
+
export declare function createBunFatalSignals(): Readonly<{
|
|
6
|
+
fanOut: {
|
|
7
|
+
subscribe: (listener: RuntimeFatalListener) => () => void;
|
|
8
|
+
subscriberCount: () => number;
|
|
9
|
+
};
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const bunProcessFatal: RuntimeFatalFanOut;
|
|
13
|
+
export declare function subscribeBunProcessFatal(listener: RuntimeFatalListener): () => void;
|
|
14
|
+
export declare function bunProcessFatalSubscriberCount(): number;
|
|
15
|
+
//# sourceMappingURL=fatal-signals.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fatal-signals.impl.bun.d.ts","sourceRoot":"","sources":["../../src/services/fatal-signals.impl.bun.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAA4B,KAAK,kBAAkB,EAA2B,MAAM,8BAA8B,CAAC;AAM1H,2GAA2G;AAC3G,wBAAgB,qBAAqB;;;;;eAmCxB,IAAI;GAEhB;AAID,eAAO,MAAM,eAAe,EAAE,kBAG5B,CAAC;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,IAAI,CAEnF;AACD,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** Bun's report-only native fatal source; each host composition owns its installation. */
|
|
2
|
+
import { CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
3
|
+
import { createRuntimeFatalFanOut } from '@vibesdotdev/execution-local';
|
|
4
|
+
// Native listeners are the authority; this mark distinguishes our report-only
|
|
5
|
+
// observers from an executable's own rejection handler, without a resource registry.
|
|
6
|
+
const fatalRejectionObserver = Symbol('bun-fatal-rejection-observer');
|
|
7
|
+
/** Reuses execution-local fan-out; native listeners and the re-raise marker have this owner's lifetime. */
|
|
8
|
+
export function createBunFatalSignals() {
|
|
9
|
+
let reraising;
|
|
10
|
+
let detach;
|
|
11
|
+
const source = {
|
|
12
|
+
install(report) {
|
|
13
|
+
const monitor = (error, origin) => {
|
|
14
|
+
const marker = reraising;
|
|
15
|
+
reraising = undefined;
|
|
16
|
+
if (marker !== undefined && marker.reason === error)
|
|
17
|
+
return;
|
|
18
|
+
report(origin === 'unhandledRejection' ? 'unhandledRejection' : 'uncaughtException', CaughtFailureSchema.parse(error));
|
|
19
|
+
};
|
|
20
|
+
const observeRejection = reason => {
|
|
21
|
+
const failure = CaughtFailureSchema.parse(reason);
|
|
22
|
+
report('unhandledRejection', failure);
|
|
23
|
+
const listeners = process.listeners('unhandledRejection');
|
|
24
|
+
if (listeners.some(listener => !(fatalRejectionObserver in listener) || listener[fatalRejectionObserver] !== true))
|
|
25
|
+
return;
|
|
26
|
+
// Every independent observer reports before the final one re-raises.
|
|
27
|
+
// Each monitor suppresses that re-raise's duplicate notification.
|
|
28
|
+
reraising = { reason };
|
|
29
|
+
if (listeners.at(-1) === rejection)
|
|
30
|
+
throw reason;
|
|
31
|
+
};
|
|
32
|
+
const rejection = Object.assign(observeRejection, { [fatalRejectionObserver]: true });
|
|
33
|
+
process.on('uncaughtExceptionMonitor', monitor);
|
|
34
|
+
process.on('unhandledRejection', rejection);
|
|
35
|
+
detach = () => {
|
|
36
|
+
process.off('uncaughtExceptionMonitor', monitor);
|
|
37
|
+
process.off('unhandledRejection', rejection);
|
|
38
|
+
reraising = undefined;
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
writeDiagnostic: text => { process.stderr.write(text); }
|
|
42
|
+
};
|
|
43
|
+
const fanOut = createRuntimeFatalFanOut(source);
|
|
44
|
+
return Object.freeze({
|
|
45
|
+
fanOut,
|
|
46
|
+
dispose() { detach?.(); detach = undefined; }
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Compatibility entrypoints use the same composition owner as standard output. */
|
|
50
|
+
import { compatibilityBunHost } from "./compatibility-host.impl.bun.js";
|
|
51
|
+
export const bunProcessFatal = Object.freeze({
|
|
52
|
+
subscribe: listener => compatibilityBunHost.fatal.subscribe(listener),
|
|
53
|
+
subscriberCount: () => compatibilityBunHost.fatal.subscriberCount()
|
|
54
|
+
});
|
|
55
|
+
export function subscribeBunProcessFatal(listener) {
|
|
56
|
+
return compatibilityBunHost.fatal.subscribe(listener);
|
|
57
|
+
}
|
|
58
|
+
export function bunProcessFatalSubscriberCount() {
|
|
59
|
+
return compatibilityBunHost.fatal.subscriberCount();
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=fatal-signals.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fatal-signals.impl.bun.js","sourceRoot":"","sources":["../../src/services/fatal-signals.impl.bun.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,mBAAmB,EAA6B,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAo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AAM,UAAU,8BAA8B;IAC7C,OAAO,oBAAoB,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export type { GraphFreshness, GraphIdentity, GraphReplacedSince } from '@vibesdotdev/execution-local';
|
|
2
|
+
/** Each runtime client or explicit composition root owns its retained graph pins. */
|
|
3
|
+
export declare function createBunGraphFreshness(): {
|
|
4
|
+
describeGraph: (root: string) => import("@vibesdotdev/execution-local").GraphIdentity;
|
|
5
|
+
graphDigest: (root: string) => string | null;
|
|
6
|
+
currentHostRoot: (runtime: import("@vibesdotdev/execution-local").GraphFreshnessRuntime) => string | null;
|
|
7
|
+
captureGraphIdentity: (runtime: import("@vibesdotdev/execution-local").GraphFreshnessRuntime, root: string | null) => import("@vibesdotdev/execution-local").GraphIdentity | null;
|
|
8
|
+
getCapturedGraphIdentity: (runtime: import("@vibesdotdev/execution-local").GraphFreshnessRuntime) => import("@vibesdotdev/execution-local").GraphIdentity | null;
|
|
9
|
+
judgeGraphReplaced: (loaded: Pick<import("@vibesdotdev/execution-local").GraphIdentity, "digest" | "mtimeMs">, current: Pick<import("@vibesdotdev/execution-local").GraphIdentity, "digest" | "mtimeMs">, processStartMs: number) => boolean | null;
|
|
10
|
+
graphFreshness: (runtime: import("@vibesdotdev/execution-local").GraphFreshnessRuntime, root: string | null) => import("@vibesdotdev/execution-local").GraphFreshness;
|
|
11
|
+
judgeGraphFreshness: (root: string | null, loaded: import("@vibesdotdev/execution-local").GraphIdentity | null) => import("@vibesdotdev/execution-local").GraphFreshness;
|
|
12
|
+
environmentGraphFreshness: (root: string | null, loaded: import("@vibesdotdev/execution-local").GraphIdentity | null) => import("@vibesdotdev/kernel/schemas").RuntimeGraphFreshness;
|
|
13
|
+
graphReplacedSince: (root: string, processStartMs: number, expectedDigest?: string | null) => import("@vibesdotdev/execution-local").GraphReplacedSince;
|
|
14
|
+
};
|
|
15
|
+
type GraphOwner = ReturnType<typeof createBunGraphFreshness>;
|
|
16
|
+
type GraphRuntime = Parameters<GraphOwner['captureGraphIdentity']>[0];
|
|
17
|
+
export declare const captureGraphIdentity: (runtime: GraphRuntime, root: string | null, owner?: GraphOwner) => {
|
|
18
|
+
root: string;
|
|
19
|
+
lockPath: string | null;
|
|
20
|
+
digest: string | null;
|
|
21
|
+
mtimeMs: number | null;
|
|
22
|
+
size: number | null;
|
|
23
|
+
capturedAt: string;
|
|
24
|
+
} | null;
|
|
25
|
+
export declare const getCapturedGraphIdentity: (runtime: GraphRuntime, owner?: GraphOwner) => {
|
|
26
|
+
root: string;
|
|
27
|
+
lockPath: string | null;
|
|
28
|
+
digest: string | null;
|
|
29
|
+
mtimeMs: number | null;
|
|
30
|
+
size: number | null;
|
|
31
|
+
capturedAt: string;
|
|
32
|
+
} | null;
|
|
33
|
+
export declare const graphFreshness: (runtime: GraphRuntime, root: string | null, owner?: GraphOwner) => {
|
|
34
|
+
loaded: {
|
|
35
|
+
root: string;
|
|
36
|
+
lockPath: string | null;
|
|
37
|
+
digest: string | null;
|
|
38
|
+
mtimeMs: number | null;
|
|
39
|
+
size: number | null;
|
|
40
|
+
capturedAt: string;
|
|
41
|
+
} | null;
|
|
42
|
+
current: {
|
|
43
|
+
root: string;
|
|
44
|
+
lockPath: string | null;
|
|
45
|
+
digest: string | null;
|
|
46
|
+
mtimeMs: number | null;
|
|
47
|
+
size: number | null;
|
|
48
|
+
capturedAt: string;
|
|
49
|
+
} | null;
|
|
50
|
+
replaced: boolean | null;
|
|
51
|
+
processStartedAt: string;
|
|
52
|
+
reason: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const currentHostRoot: GraphOwner['currentHostRoot'];
|
|
55
|
+
export declare const describeGraph: GraphOwner['describeGraph'];
|
|
56
|
+
export declare const graphDigest: GraphOwner['graphDigest'];
|
|
57
|
+
export declare const graphReplacedSince: GraphOwner['graphReplacedSince'];
|
|
58
|
+
export declare const judgeGraphReplaced: GraphOwner['judgeGraphReplaced'];
|
|
59
|
+
export declare const judgeGraphFreshness: GraphOwner['judgeGraphFreshness'];
|
|
60
|
+
export declare const environmentGraphFreshness: GraphOwner['environmentGraphFreshness'];
|
|
61
|
+
/** Stateless compatibility facade; the selected runtime client retains pins. */
|
|
62
|
+
export declare const bunGraphFreshness: Readonly<{
|
|
63
|
+
captureGraphIdentity: (runtime: GraphRuntime, root: string | null, owner?: GraphOwner) => {
|
|
64
|
+
root: string;
|
|
65
|
+
lockPath: string | null;
|
|
66
|
+
digest: string | null;
|
|
67
|
+
mtimeMs: number | null;
|
|
68
|
+
size: number | null;
|
|
69
|
+
capturedAt: string;
|
|
70
|
+
} | null;
|
|
71
|
+
currentHostRoot: (runtime: import("@vibesdotdev/execution-local").GraphFreshnessRuntime) => string | null;
|
|
72
|
+
describeGraph: (root: string) => import("@vibesdotdev/execution-local").GraphIdentity;
|
|
73
|
+
environmentGraphFreshness: (root: string | null, loaded: import("@vibesdotdev/execution-local").GraphIdentity | null) => import("@vibesdotdev/kernel/schemas").RuntimeGraphFreshness;
|
|
74
|
+
getCapturedGraphIdentity: (runtime: GraphRuntime, owner?: GraphOwner) => {
|
|
75
|
+
root: string;
|
|
76
|
+
lockPath: string | null;
|
|
77
|
+
digest: string | null;
|
|
78
|
+
mtimeMs: number | null;
|
|
79
|
+
size: number | null;
|
|
80
|
+
capturedAt: string;
|
|
81
|
+
} | null;
|
|
82
|
+
graphDigest: (root: string) => string | null;
|
|
83
|
+
graphFreshness: (runtime: GraphRuntime, root: string | null, owner?: GraphOwner) => {
|
|
84
|
+
loaded: {
|
|
85
|
+
root: string;
|
|
86
|
+
lockPath: string | null;
|
|
87
|
+
digest: string | null;
|
|
88
|
+
mtimeMs: number | null;
|
|
89
|
+
size: number | null;
|
|
90
|
+
capturedAt: string;
|
|
91
|
+
} | null;
|
|
92
|
+
current: {
|
|
93
|
+
root: string;
|
|
94
|
+
lockPath: string | null;
|
|
95
|
+
digest: string | null;
|
|
96
|
+
mtimeMs: number | null;
|
|
97
|
+
size: number | null;
|
|
98
|
+
capturedAt: string;
|
|
99
|
+
} | null;
|
|
100
|
+
replaced: boolean | null;
|
|
101
|
+
processStartedAt: string;
|
|
102
|
+
reason: string;
|
|
103
|
+
};
|
|
104
|
+
graphReplacedSince: (root: string, processStartMs: number, expectedDigest?: string | null) => import("@vibesdotdev/execution-local").GraphReplacedSince;
|
|
105
|
+
judgeGraphFreshness: (root: string | null, loaded: import("@vibesdotdev/execution-local").GraphIdentity | null) => import("@vibesdotdev/execution-local").GraphFreshness;
|
|
106
|
+
judgeGraphReplaced: (loaded: Pick<import("@vibesdotdev/execution-local").GraphIdentity, "digest" | "mtimeMs">, current: Pick<import("@vibesdotdev/execution-local").GraphIdentity, "digest" | "mtimeMs">, processStartMs: number) => boolean | null;
|
|
107
|
+
}>;
|
|
108
|
+
//# sourceMappingURL=graph-freshness.impl.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-freshness.impl.bun.d.ts","sourceRoot":"","sources":["../../src/services/graph-freshness.impl.bun.ts"],"names":[],"mappings":"AAQA,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEtG,qFAAqF;AACrF,wBAAgB,uBAAuB;;;;;;;;;;;EAWtC;AAED,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7D,KAAK,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAatE,eAAO,MAAM,oBAAoB,GAAI,SAAS,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,EAAE,QAAQ,UAAU;;;;;;;QACvC,CAAC;AAC7D,eAAO,MAAM,wBAAwB,GAAI,SAAS,YAAY,EAAE,QAAQ,UAAU;;;;;;;QACxB,CAAC;AAC3D,eAAO,MAAM,cAAc,GAAI,SAAS,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,EAAE,QAAQ,UAAU;;;;;;;;;;;;;;;;;;;;CACvC,CAAC;AAGvD,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,iBAAiB,CAAiE,CAAC;AAC5H,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAAe,CAAyD,CAAC;AAChH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,aAAa,CAAuD,CAAC;AAC1G,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,oBAAoB,CAAsE,CAAC;AACvI,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,oBAAoB,CAAsE,CAAC;AACvI,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,qBAAqB,CAAuE,CAAC;AAC1I,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,2BAA2B,CAA6E,CAAC;AAE5J,gFAAgF;AAChF,eAAO,MAAM,iBAAiB;oCAjBgB,YAAY,QAAQ,MAAM,GAAG,IAAI,UAAU,UAAU;;;;;;;;;;;wCAEjD,YAAY,UAAU,UAAU;;;;;;;;;8BAE1C,YAAY,QAAQ,MAAM,GAAG,IAAI,UAAU,UAAU;;;;;;;;;;;;;;;;;;;;;;;;EAiB3F,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** Bun lockfile primitives over execution-local's graph freshness owner. */
|
|
2
|
+
import { readFileSync, statSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { createGraphFreshness } from '@vibesdotdev/execution-local';
|
|
5
|
+
import { CapabilityError, VibesRuntime } from '@vibesdotdev/kernel';
|
|
6
|
+
import { tryGetVibesClient } from '@vibesdotdev/kernel/client';
|
|
7
|
+
/** Each runtime client or explicit composition root owns its retained graph pins. */
|
|
8
|
+
export function createBunGraphFreshness() {
|
|
9
|
+
return createGraphFreshness({
|
|
10
|
+
stat(path) {
|
|
11
|
+
const st = statSync(path);
|
|
12
|
+
return { isFile: st.isFile(), mtimeMs: st.mtimeMs, size: st.size };
|
|
13
|
+
},
|
|
14
|
+
readBytes: path => readFileSync(path),
|
|
15
|
+
join: (root, name) => join(root, name),
|
|
16
|
+
sha256Hex: bytes => new Bun.CryptoHasher('sha256').update(bytes).digest('hex'),
|
|
17
|
+
uptimeSeconds: () => process.uptime()
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function graphOf(runtime, owner) {
|
|
21
|
+
if (owner)
|
|
22
|
+
return owner;
|
|
23
|
+
const client = runtime instanceof VibesRuntime
|
|
24
|
+
? tryGetVibesClient('bun-host', runtime)
|
|
25
|
+
: undefined;
|
|
26
|
+
if (client)
|
|
27
|
+
return client.graph;
|
|
28
|
+
throw new CapabilityError('Bun graph identity requires an activated host or explicit owner.', 'UNAVAILABLE', {
|
|
29
|
+
reason: 'bun-host-client-unavailable', retryable: false
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export const captureGraphIdentity = (runtime, root, owner) => graphOf(runtime, owner).captureGraphIdentity(runtime, root);
|
|
33
|
+
export const getCapturedGraphIdentity = (runtime, owner) => graphOf(runtime, owner).getCapturedGraphIdentity(runtime);
|
|
34
|
+
export const graphFreshness = (runtime, root, owner) => graphOf(runtime, owner).graphFreshness(runtime, root);
|
|
35
|
+
// These compatibility operations retain no pins and remain usable before boot.
|
|
36
|
+
export const currentHostRoot = runtime => createBunGraphFreshness().currentHostRoot(runtime);
|
|
37
|
+
export const describeGraph = root => createBunGraphFreshness().describeGraph(root);
|
|
38
|
+
export const graphDigest = root => createBunGraphFreshness().graphDigest(root);
|
|
39
|
+
export const graphReplacedSince = (...args) => createBunGraphFreshness().graphReplacedSince(...args);
|
|
40
|
+
export const judgeGraphReplaced = (...args) => createBunGraphFreshness().judgeGraphReplaced(...args);
|
|
41
|
+
export const judgeGraphFreshness = (...args) => createBunGraphFreshness().judgeGraphFreshness(...args);
|
|
42
|
+
export const environmentGraphFreshness = (...args) => createBunGraphFreshness().environmentGraphFreshness(...args);
|
|
43
|
+
/** Stateless compatibility facade; the selected runtime client retains pins. */
|
|
44
|
+
export const bunGraphFreshness = Object.freeze({
|
|
45
|
+
captureGraphIdentity, currentHostRoot, describeGraph, environmentGraphFreshness,
|
|
46
|
+
getCapturedGraphIdentity, graphDigest, graphFreshness, graphReplacedSince,
|
|
47
|
+
judgeGraphFreshness, judgeGraphReplaced
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=graph-freshness.impl.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-freshness.impl.bun.js","sourceRoot":"","sources":["../../src/services/graph-freshness.impl.bun.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D,qFAAqF;AACrF,MAAM,UAAU,uBAAuB;IACtC,OAAO,oBAAoB,CAAC;QAC3B,IAAI,CAAC,IAAI;YACR,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1B,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;QACpE,CAAC;QACD,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;QACrC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;QACtC,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,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AI,CAAC,EAAE,CAAC,uBAAuB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAChH,MAAM,CAAC,MAAM,WAAW,GAA8B,IAAI,CAAC,EAAE,CAAC,uBAAuB,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,kBAAkB,GAAqC,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC;AACvI,MAAM,CAAC,MAAM,kBAAkB,GAAqC,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC;AACvI,MAAM,CAAC,MAAM,mBAAmB,GAAsC,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,uBAAuB,EAAE,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC;AAC1I,MAAM,CAAC,MAAM,yBAAyB,GAA4C,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,uBAAuB,EAAE,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC,CAAC;AAE5J,gFAAgF;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,yBAAyB;IAC/E,wBAAwB,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB;IACzE,mBAAmB,EAAE,kBAAkB;CACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's `runtime/host-identity` capability: the kernel's base
|
|
3
|
+
* (`composeRuntimeHostIdentity`) over this host's own executable, graph,
|
|
4
|
+
* self-spawn and process-table services and its own process id, bound to the
|
|
5
|
+
* runtime this environment registered on.
|
|
6
|
+
*/
|
|
7
|
+
import { type RuntimeHostIdentity, type RuntimeRef } from '@vibesdotdev/kernel';
|
|
8
|
+
/** The host identity of `runtime`; each call reads through the runtime's own captured host facts. */
|
|
9
|
+
export declare function createBunRuntimeHostIdentity(runtime: RuntimeRef): RuntimeHostIdentity;
|
|
10
|
+
//# sourceMappingURL=host-identity.capability.bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-identity.capability.bun.d.ts","sourceRoot":"","sources":["../../src/services/host-identity.capability.bun.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQhF,qGAAqG;AACrG,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,UAAU,GAAG,mBAAmB,CAWrF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Bun host's `runtime/host-identity` capability: the kernel's base
|
|
3
|
+
* (`composeRuntimeHostIdentity`) over this host's own executable, graph,
|
|
4
|
+
* self-spawn and process-table services and its own process id, bound to the
|
|
5
|
+
* runtime this environment registered on.
|
|
6
|
+
*/
|
|
7
|
+
import {} from '@vibesdotdev/kernel';
|
|
8
|
+
import { composeRuntimeHostIdentity } from '@vibesdotdev/execution-local';
|
|
9
|
+
import { tryGetVibesClient } from '@vibesdotdev/kernel/client';
|
|
10
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
11
|
+
import { bunProcessViews } from "./process-view.impl.bun.js";
|
|
12
|
+
import { bunSelfSpawn } from "./self-spawn.impl.bun.js";
|
|
13
|
+
/** The host identity of `runtime`; each call reads through the runtime's own captured host facts. */
|
|
14
|
+
export function createBunRuntimeHostIdentity(runtime) {
|
|
15
|
+
const host = tryGetVibesClient('bun-host', runtime);
|
|
16
|
+
if (!host)
|
|
17
|
+
throw new CapabilityError('Bun identity requires its runtime client.', 'UNAVAILABLE', { reason: 'bun-host-client-unavailable' });
|
|
18
|
+
return composeRuntimeHostIdentity(runtime, {
|
|
19
|
+
classifier: host.resources.classifier,
|
|
20
|
+
executable: host.resources.executable,
|
|
21
|
+
graph: host.graph,
|
|
22
|
+
selfSpawn: bunSelfSpawn,
|
|
23
|
+
processViews: bunProcessViews,
|
|
24
|
+
currentPid: () => process.pid
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=host-identity.capability.bun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-identity.capability.bun.js","sourceRoot":"","sources":["../../src/services/host-identity.capability.bun.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA6C,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,qGAAqG;AACrG,MAAM,UAAU,4BAA4B,CAAC,OAAmB;IAC/D,MAAM,IAAI,GAAG,iBAAiB,CAAgB,UAAU,EAAE,OAAO,CAAC,CAAC;IACnE,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,eAAe,CAAC,2CAA2C,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,6BAA6B,EAAE,CAAC,CAAC;IAC5I,OAAO,0BAA0B,CAAC,OAAO,EAAE;QAC1C,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU;QACrC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU;QACrC,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,SAAS,EAAE,YAAY;QACvB,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;KAC7B,CAAC,CAAC;AACJ,CAAC"}
|