@vibesdotdev/host-bun 0.0.0-stage → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (517) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +222 -2
  3. package/dist/applet-serve-host/applet-serve-host.impl.bun.d.ts +6 -0
  4. package/dist/applet-serve-host/applet-serve-host.impl.bun.d.ts.map +1 -0
  5. package/dist/applet-serve-host/applet-serve-host.impl.bun.js +80 -0
  6. package/dist/applet-serve-host/applet-serve-host.impl.bun.js.map +1 -0
  7. package/dist/applet-serve-host/applet-serve-host.plugin.d.ts +22 -0
  8. package/dist/applet-serve-host/applet-serve-host.plugin.d.ts.map +1 -0
  9. package/dist/applet-serve-host/applet-serve-host.plugin.js +42 -0
  10. package/dist/applet-serve-host/applet-serve-host.plugin.js.map +1 -0
  11. package/dist/applet-serve-host/index.d.ts +7 -0
  12. package/dist/applet-serve-host/index.d.ts.map +1 -0
  13. package/dist/applet-serve-host/index.js +7 -0
  14. package/dist/applet-serve-host/index.js.map +1 -0
  15. package/dist/applet-serve-host/stylesheet.compiler.d.ts +7 -0
  16. package/dist/applet-serve-host/stylesheet.compiler.d.ts.map +1 -0
  17. package/dist/applet-serve-host/stylesheet.compiler.js +63 -0
  18. package/dist/applet-serve-host/stylesheet.compiler.js.map +1 -0
  19. package/dist/atlas-migrations/register-atlas-host-migrations.d.ts +21 -0
  20. package/dist/atlas-migrations/register-atlas-host-migrations.d.ts.map +1 -0
  21. package/dist/atlas-migrations/register-atlas-host-migrations.js +148 -0
  22. package/dist/atlas-migrations/register-atlas-host-migrations.js.map +1 -0
  23. package/dist/buffered-capture.d.ts +4 -0
  24. package/dist/buffered-capture.d.ts.map +1 -0
  25. package/dist/buffered-capture.impl.bun.d.ts +18 -0
  26. package/dist/buffered-capture.impl.bun.d.ts.map +1 -0
  27. package/dist/buffered-capture.impl.bun.js +148 -0
  28. package/dist/buffered-capture.impl.bun.js.map +1 -0
  29. package/dist/buffered-capture.js +5 -0
  30. package/dist/buffered-capture.js.map +1 -0
  31. package/dist/bun-environment.impl.bun.d.ts +231 -0
  32. package/dist/bun-environment.impl.bun.d.ts.map +1 -0
  33. package/dist/bun-environment.impl.bun.js +352 -0
  34. package/dist/bun-environment.impl.bun.js.map +1 -0
  35. package/dist/cache-redis/cache-redis-connector.impl.bun.d.ts +20 -0
  36. package/dist/cache-redis/cache-redis-connector.impl.bun.d.ts.map +1 -0
  37. package/dist/cache-redis/cache-redis-connector.impl.bun.js +30 -0
  38. package/dist/cache-redis/cache-redis-connector.impl.bun.js.map +1 -0
  39. package/dist/cache-redis/cache-redis-connector.plugin.d.ts +21 -0
  40. package/dist/cache-redis/cache-redis-connector.plugin.d.ts.map +1 -0
  41. package/dist/cache-redis/cache-redis-connector.plugin.js +32 -0
  42. package/dist/cache-redis/cache-redis-connector.plugin.js.map +1 -0
  43. package/dist/cli-checkout.impl.bun.d.ts +13 -0
  44. package/dist/cli-checkout.impl.bun.d.ts.map +1 -0
  45. package/dist/cli-checkout.impl.bun.js +26 -0
  46. package/dist/cli-checkout.impl.bun.js.map +1 -0
  47. package/dist/docs/runtime-environment-bun.docs.descriptor.d.ts +19 -0
  48. package/dist/docs/runtime-environment-bun.docs.descriptor.d.ts.map +1 -0
  49. package/dist/docs/runtime-environment-bun.docs.descriptor.js +116 -0
  50. package/dist/docs/runtime-environment-bun.docs.descriptor.js.map +1 -0
  51. package/dist/filesystem/adapter.impl.bun.d.ts +15 -0
  52. package/dist/filesystem/adapter.impl.bun.d.ts.map +1 -0
  53. package/dist/filesystem/adapter.impl.bun.js +11 -0
  54. package/dist/filesystem/adapter.impl.bun.js.map +1 -0
  55. package/dist/filesystem/host-primitives.impl.bun.d.ts +12 -0
  56. package/dist/filesystem/host-primitives.impl.bun.d.ts.map +1 -0
  57. package/dist/filesystem/host-primitives.impl.bun.js +96 -0
  58. package/dist/filesystem/host-primitives.impl.bun.js.map +1 -0
  59. package/dist/filesystem/register.d.ts +12 -0
  60. package/dist/filesystem/register.d.ts.map +1 -0
  61. package/dist/filesystem/register.js +6 -0
  62. package/dist/filesystem/register.js.map +1 -0
  63. package/dist/filesystem/rooted-exclusive.impl.bun.d.ts +4 -0
  64. package/dist/filesystem/rooted-exclusive.impl.bun.d.ts.map +1 -0
  65. package/dist/filesystem/rooted-exclusive.impl.bun.js +135 -0
  66. package/dist/filesystem/rooted-exclusive.impl.bun.js.map +1 -0
  67. package/dist/held-launch/abi.impl.bun.d.ts +175 -0
  68. package/dist/held-launch/abi.impl.bun.d.ts.map +1 -0
  69. package/dist/held-launch/abi.impl.bun.js +476 -0
  70. package/dist/held-launch/abi.impl.bun.js.map +1 -0
  71. package/dist/held-launch/execution.impl.bun.d.ts +48 -0
  72. package/dist/held-launch/execution.impl.bun.d.ts.map +1 -0
  73. package/dist/held-launch/execution.impl.bun.js +375 -0
  74. package/dist/held-launch/execution.impl.bun.js.map +1 -0
  75. package/dist/held-launch/library.impl.bun.d.ts +23 -0
  76. package/dist/held-launch/library.impl.bun.d.ts.map +1 -0
  77. package/dist/held-launch/library.impl.bun.js +178 -0
  78. package/dist/held-launch/library.impl.bun.js.map +1 -0
  79. package/dist/held-launch/schemas.d.ts +10 -0
  80. package/dist/held-launch/schemas.d.ts.map +1 -0
  81. package/dist/held-launch/schemas.js +3 -0
  82. package/dist/held-launch/schemas.js.map +1 -0
  83. package/dist/held-launch/streams.impl.bun.d.ts +38 -0
  84. package/dist/held-launch/streams.impl.bun.d.ts.map +1 -0
  85. package/dist/held-launch/streams.impl.bun.js +183 -0
  86. package/dist/held-launch/streams.impl.bun.js.map +1 -0
  87. package/dist/host-channel.impl.bun.d.ts +25 -0
  88. package/dist/host-channel.impl.bun.d.ts.map +1 -0
  89. package/dist/host-channel.impl.bun.js +40 -0
  90. package/dist/host-channel.impl.bun.js.map +1 -0
  91. package/dist/host-client.impl.bun.d.ts +31 -0
  92. package/dist/host-client.impl.bun.d.ts.map +1 -0
  93. package/dist/host-client.impl.bun.js +39 -0
  94. package/dist/host-client.impl.bun.js.map +1 -0
  95. package/dist/host-credentials.d.ts +38 -0
  96. package/dist/host-credentials.d.ts.map +1 -0
  97. package/dist/host-credentials.js +44 -0
  98. package/dist/host-credentials.js.map +1 -0
  99. package/dist/host-loader.impl.bun.d.ts +12 -0
  100. package/dist/host-loader.impl.bun.d.ts.map +1 -0
  101. package/dist/host-loader.impl.bun.js +83 -0
  102. package/dist/host-loader.impl.bun.js.map +1 -0
  103. package/dist/host-signal.impl.bun.d.ts +11 -0
  104. package/dist/host-signal.impl.bun.d.ts.map +1 -0
  105. package/dist/host-signal.impl.bun.js +28 -0
  106. package/dist/host-signal.impl.bun.js.map +1 -0
  107. package/dist/http-listener.impl.bun.d.ts +8 -0
  108. package/dist/http-listener.impl.bun.d.ts.map +1 -0
  109. package/dist/http-listener.impl.bun.js +44 -0
  110. package/dist/http-listener.impl.bun.js.map +1 -0
  111. package/dist/index.d.ts +38 -0
  112. package/dist/index.d.ts.map +1 -0
  113. package/dist/index.js +314 -0
  114. package/dist/index.js.map +1 -0
  115. package/dist/local-execution.impl.bun.d.ts +47 -0
  116. package/dist/local-execution.impl.bun.d.ts.map +1 -0
  117. package/dist/local-execution.impl.bun.js +150 -0
  118. package/dist/local-execution.impl.bun.js.map +1 -0
  119. package/dist/logging/file-host.impl.bun.d.ts +4 -0
  120. package/dist/logging/file-host.impl.bun.d.ts.map +1 -0
  121. package/dist/logging/file-host.impl.bun.js +36 -0
  122. package/dist/logging/file-host.impl.bun.js.map +1 -0
  123. package/dist/logging/logging.plugin.d.ts +12 -0
  124. package/dist/logging/logging.plugin.d.ts.map +1 -0
  125. package/dist/logging/logging.plugin.js +20 -0
  126. package/dist/logging/logging.plugin.js.map +1 -0
  127. package/dist/native/held-launch/aarch64-apple-darwin/libvibes_held_launch.dylib +0 -0
  128. package/dist/native/held-launch/aarch64-apple-darwin/manifest.json +237 -0
  129. package/dist/native/held-launch/aarch64-apple-darwin/vibes-held-launch +0 -0
  130. package/dist/native/held-launch/aarch64-unknown-linux-gnu/libvibes_held_launch.so +0 -0
  131. package/dist/native/held-launch/aarch64-unknown-linux-gnu/manifest.json +237 -0
  132. package/dist/native/held-launch/aarch64-unknown-linux-gnu/vibes-held-launch +0 -0
  133. package/dist/native/held-launch/x86_64-apple-darwin/libvibes_held_launch.dylib +0 -0
  134. package/dist/native/held-launch/x86_64-apple-darwin/manifest.json +237 -0
  135. package/dist/native/held-launch/x86_64-apple-darwin/vibes-held-launch +0 -0
  136. package/dist/native/held-launch/x86_64-unknown-linux-gnu/libvibes_held_launch.so +0 -0
  137. package/dist/native/held-launch/x86_64-unknown-linux-gnu/manifest.json +237 -0
  138. package/dist/native/held-launch/x86_64-unknown-linux-gnu/vibes-held-launch +0 -0
  139. package/dist/native-image.consumer.plugin.d.ts +4 -0
  140. package/dist/native-image.consumer.plugin.d.ts.map +1 -0
  141. package/dist/native-image.consumer.plugin.js +14 -0
  142. package/dist/native-image.consumer.plugin.js.map +1 -0
  143. package/dist/native-image.d.ts +79 -0
  144. package/dist/native-image.d.ts.map +1 -0
  145. package/dist/native-image.impl.consumer.d.ts +15 -0
  146. package/dist/native-image.impl.consumer.d.ts.map +1 -0
  147. package/dist/native-image.impl.consumer.js +86 -0
  148. package/dist/native-image.impl.consumer.js.map +1 -0
  149. package/dist/native-image.js +19 -0
  150. package/dist/native-image.js.map +1 -0
  151. package/dist/native-library.consumer.plugin.d.ts +6 -0
  152. package/dist/native-library.consumer.plugin.d.ts.map +1 -0
  153. package/dist/native-library.consumer.plugin.js +33 -0
  154. package/dist/native-library.consumer.plugin.js.map +1 -0
  155. package/dist/native-library.impl.consumer.d.ts +14 -0
  156. package/dist/native-library.impl.consumer.d.ts.map +1 -0
  157. package/dist/native-library.impl.consumer.js +46 -0
  158. package/dist/native-library.impl.consumer.js.map +1 -0
  159. package/dist/native-network/index.d.ts +3 -0
  160. package/dist/native-network/index.d.ts.map +1 -0
  161. package/dist/native-network/index.js +3 -0
  162. package/dist/native-network/index.js.map +1 -0
  163. package/dist/native-network/native-host.d.ts +4 -0
  164. package/dist/native-network/native-host.d.ts.map +1 -0
  165. package/dist/native-network/native-host.js +14 -0
  166. package/dist/native-network/native-host.js.map +1 -0
  167. package/dist/native-network/native-network.descriptor.d.ts +4 -0
  168. package/dist/native-network/native-network.descriptor.d.ts.map +1 -0
  169. package/dist/native-network/native-network.descriptor.js +11 -0
  170. package/dist/native-network/native-network.descriptor.js.map +1 -0
  171. package/dist/native-network/native-network.impl.bun.d.ts +19 -0
  172. package/dist/native-network/native-network.impl.bun.d.ts.map +1 -0
  173. package/dist/native-network/native-network.impl.bun.js +190 -0
  174. package/dist/native-network/native-network.impl.bun.js.map +1 -0
  175. package/dist/native-network/native-network.plugin.d.ts +6 -0
  176. package/dist/native-network/native-network.plugin.d.ts.map +1 -0
  177. package/dist/native-network/native-network.plugin.js +27 -0
  178. package/dist/native-network/native-network.plugin.js.map +1 -0
  179. package/dist/package-plugins/index.d.ts +11 -0
  180. package/dist/package-plugins/index.d.ts.map +1 -0
  181. package/dist/package-plugins/index.js +11 -0
  182. package/dist/package-plugins/index.js.map +1 -0
  183. package/dist/package-plugins/package-plugins.capability.bun.d.ts +11 -0
  184. package/dist/package-plugins/package-plugins.capability.bun.d.ts.map +1 -0
  185. package/dist/package-plugins/package-plugins.capability.bun.js +14 -0
  186. package/dist/package-plugins/package-plugins.capability.bun.js.map +1 -0
  187. package/dist/package-plugins/primitives.impl.bun.d.ts +11 -0
  188. package/dist/package-plugins/primitives.impl.bun.d.ts.map +1 -0
  189. package/dist/package-plugins/primitives.impl.bun.js +32 -0
  190. package/dist/package-plugins/primitives.impl.bun.js.map +1 -0
  191. package/dist/package-plugins/read-admission.impl.bun.d.ts +11 -0
  192. package/dist/package-plugins/read-admission.impl.bun.d.ts.map +1 -0
  193. package/dist/package-plugins/read-admission.impl.bun.js +224 -0
  194. package/dist/package-plugins/read-admission.impl.bun.js.map +1 -0
  195. package/dist/package-plugins/schemas.d.ts +28 -0
  196. package/dist/package-plugins/schemas.d.ts.map +1 -0
  197. package/dist/package-plugins/schemas.js +3 -0
  198. package/dist/package-plugins/schemas.js.map +1 -0
  199. package/dist/process/launch-artifacts.impl.bun.d.ts +11 -0
  200. package/dist/process/launch-artifacts.impl.bun.d.ts.map +1 -0
  201. package/dist/process/launch-artifacts.impl.bun.js +25 -0
  202. package/dist/process/launch-artifacts.impl.bun.js.map +1 -0
  203. package/dist/process/process-probe.impl.bun.d.ts +15 -0
  204. package/dist/process/process-probe.impl.bun.d.ts.map +1 -0
  205. package/dist/process/process-probe.impl.bun.js +35 -0
  206. package/dist/process/process-probe.impl.bun.js.map +1 -0
  207. package/dist/process/runtime-process.impl.bun.d.ts +20 -0
  208. package/dist/process/runtime-process.impl.bun.d.ts.map +1 -0
  209. package/dist/process/runtime-process.impl.bun.js +42 -0
  210. package/dist/process/runtime-process.impl.bun.js.map +1 -0
  211. package/dist/process/schemas.d.ts +9 -0
  212. package/dist/process/schemas.d.ts.map +1 -0
  213. package/dist/process/schemas.js +3 -0
  214. package/dist/process/schemas.js.map +1 -0
  215. package/dist/process/spawn.impl.bun.d.ts +31 -0
  216. package/dist/process/spawn.impl.bun.d.ts.map +1 -0
  217. package/dist/process/spawn.impl.bun.js +66 -0
  218. package/dist/process/spawn.impl.bun.js.map +1 -0
  219. package/dist/process/which.impl.bun.d.ts +16 -0
  220. package/dist/process/which.impl.bun.d.ts.map +1 -0
  221. package/dist/process/which.impl.bun.js +25 -0
  222. package/dist/process/which.impl.bun.js.map +1 -0
  223. package/dist/pty.adapter.impl.bun.d.ts +17 -0
  224. package/dist/pty.adapter.impl.bun.d.ts.map +1 -0
  225. package/dist/pty.adapter.impl.bun.js +102 -0
  226. package/dist/pty.adapter.impl.bun.js.map +1 -0
  227. package/dist/pty.darwin.impl.bun.d.ts +11 -0
  228. package/dist/pty.darwin.impl.bun.d.ts.map +1 -0
  229. package/dist/pty.darwin.impl.bun.js +200 -0
  230. package/dist/pty.darwin.impl.bun.js.map +1 -0
  231. package/dist/pty.node-host.impl.bun.d.ts +10 -0
  232. package/dist/pty.node-host.impl.bun.d.ts.map +1 -0
  233. package/dist/pty.node-host.impl.bun.js +42 -0
  234. package/dist/pty.node-host.impl.bun.js.map +1 -0
  235. package/dist/resolution-root.impl.bun.d.ts +170 -0
  236. package/dist/resolution-root.impl.bun.d.ts.map +1 -0
  237. package/dist/resolution-root.impl.bun.js +373 -0
  238. package/dist/resolution-root.impl.bun.js.map +1 -0
  239. package/dist/restricted-execute.darwin.impl.bun.d.ts +19 -0
  240. package/dist/restricted-execute.darwin.impl.bun.d.ts.map +1 -0
  241. package/dist/restricted-execute.darwin.impl.bun.js +459 -0
  242. package/dist/restricted-execute.darwin.impl.bun.js.map +1 -0
  243. package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.d.ts +2 -0
  244. package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.d.ts.map +1 -0
  245. package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.js +31 -0
  246. package/dist/runtime-plugin-host/daemon-execution.worker-shim.bun.js.map +1 -0
  247. package/dist/runtime-plugin-host/host-hot-reload.consumer.d.ts +20 -0
  248. package/dist/runtime-plugin-host/host-hot-reload.consumer.d.ts.map +1 -0
  249. package/dist/runtime-plugin-host/host-hot-reload.consumer.js +236 -0
  250. package/dist/runtime-plugin-host/host-hot-reload.consumer.js.map +1 -0
  251. package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.d.ts +2 -0
  252. package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.d.ts.map +1 -0
  253. package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.js +66 -0
  254. package/dist/runtime-plugin-host/hot-plugin-build.worker.consumer.js.map +1 -0
  255. package/dist/runtime-plugin-host/hot-plugin-module.consumer.d.ts +45 -0
  256. package/dist/runtime-plugin-host/hot-plugin-module.consumer.d.ts.map +1 -0
  257. package/dist/runtime-plugin-host/hot-plugin-module.consumer.js +490 -0
  258. package/dist/runtime-plugin-host/hot-plugin-module.consumer.js.map +1 -0
  259. package/dist/runtime-plugin-host/hot-reload.consumer.d.ts +83 -0
  260. package/dist/runtime-plugin-host/hot-reload.consumer.d.ts.map +1 -0
  261. package/dist/runtime-plugin-host/hot-reload.consumer.js +168 -0
  262. package/dist/runtime-plugin-host/hot-reload.consumer.js.map +1 -0
  263. package/dist/runtime-plugin-host/reclaim.impl.bun.d.ts +37 -0
  264. package/dist/runtime-plugin-host/reclaim.impl.bun.d.ts.map +1 -0
  265. package/dist/runtime-plugin-host/reclaim.impl.bun.js +159 -0
  266. package/dist/runtime-plugin-host/reclaim.impl.bun.js.map +1 -0
  267. package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.d.ts +4 -0
  268. package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.d.ts.map +1 -0
  269. package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.js +181 -0
  270. package/dist/runtime-plugin-host/runtime-plugin-host.impl.bun.js.map +1 -0
  271. package/dist/runtime-plugin-host/runtime-plugin-host.plugin.d.ts +17 -0
  272. package/dist/runtime-plugin-host/runtime-plugin-host.plugin.d.ts.map +1 -0
  273. package/dist/runtime-plugin-host/runtime-plugin-host.plugin.js +36 -0
  274. package/dist/runtime-plugin-host/runtime-plugin-host.plugin.js.map +1 -0
  275. package/dist/runtime-plugin-host/runtime-thread.impl.bun.d.ts +53 -0
  276. package/dist/runtime-plugin-host/runtime-thread.impl.bun.d.ts.map +1 -0
  277. package/dist/runtime-plugin-host/runtime-thread.impl.bun.js +249 -0
  278. package/dist/runtime-plugin-host/runtime-thread.impl.bun.js.map +1 -0
  279. package/dist/runtime-plugin-host/runtime-thread.shim.bun.d.ts +2 -0
  280. package/dist/runtime-plugin-host/runtime-thread.shim.bun.d.ts.map +1 -0
  281. package/dist/runtime-plugin-host/runtime-thread.shim.bun.js +56 -0
  282. package/dist/runtime-plugin-host/runtime-thread.shim.bun.js.map +1 -0
  283. package/dist/runtime-plugin-host/schemas.d.ts +437 -0
  284. package/dist/runtime-plugin-host/schemas.d.ts.map +1 -0
  285. package/dist/runtime-plugin-host/schemas.js +54 -0
  286. package/dist/runtime-plugin-host/schemas.js.map +1 -0
  287. package/dist/runtime-plugin-host/source-watcher.consumer.d.ts +109 -0
  288. package/dist/runtime-plugin-host/source-watcher.consumer.d.ts.map +1 -0
  289. package/dist/runtime-plugin-host/source-watcher.consumer.js +383 -0
  290. package/dist/runtime-plugin-host/source-watcher.consumer.js.map +1 -0
  291. package/dist/schemas/environment.d.ts +197 -0
  292. package/dist/schemas/environment.d.ts.map +1 -0
  293. package/dist/schemas/environment.js +7 -0
  294. package/dist/schemas/environment.js.map +1 -0
  295. package/dist/schemas/host-resources.d.ts +85 -0
  296. package/dist/schemas/host-resources.d.ts.map +1 -0
  297. package/dist/schemas/host-resources.js +22 -0
  298. package/dist/schemas/host-resources.js.map +1 -0
  299. package/dist/schemas/native-image.d.ts +128 -0
  300. package/dist/schemas/native-image.d.ts.map +1 -0
  301. package/dist/schemas/native-image.js +45 -0
  302. package/dist/schemas/native-image.js.map +1 -0
  303. package/dist/schemas/native-network.d.ts +56 -0
  304. package/dist/schemas/native-network.d.ts.map +1 -0
  305. package/dist/schemas/native-network.js +55 -0
  306. package/dist/schemas/native-network.js.map +1 -0
  307. package/dist/schemas/restricted-execute.d.ts +40 -0
  308. package/dist/schemas/restricted-execute.d.ts.map +1 -0
  309. package/dist/schemas/restricted-execute.js +14 -0
  310. package/dist/schemas/restricted-execute.js.map +1 -0
  311. package/dist/schemas/runtime-socket.d.ts +8 -0
  312. package/dist/schemas/runtime-socket.d.ts.map +1 -0
  313. package/dist/schemas/runtime-socket.js +7 -0
  314. package/dist/schemas/runtime-socket.js.map +1 -0
  315. package/dist/schemas/self-spawn.d.ts +11 -0
  316. package/dist/schemas/self-spawn.d.ts.map +1 -0
  317. package/dist/schemas/self-spawn.js +3 -0
  318. package/dist/schemas/self-spawn.js.map +1 -0
  319. package/dist/schemas/standard-output.d.ts +6 -0
  320. package/dist/schemas/standard-output.d.ts.map +1 -0
  321. package/dist/schemas/standard-output.js +2 -0
  322. package/dist/schemas/standard-output.js.map +1 -0
  323. package/dist/schemas/telemetry.d.ts +25 -0
  324. package/dist/schemas/telemetry.d.ts.map +1 -0
  325. package/dist/schemas/telemetry.js +10 -0
  326. package/dist/schemas/telemetry.js.map +1 -0
  327. package/dist/schemas/test-environment.d.ts +27 -0
  328. package/dist/schemas/test-environment.d.ts.map +1 -0
  329. package/dist/schemas/test-environment.js +2 -0
  330. package/dist/schemas/test-environment.js.map +1 -0
  331. package/dist/serve-stall-start.d.ts +8 -0
  332. package/dist/serve-stall-start.d.ts.map +1 -0
  333. package/dist/serve-stall-start.js +88 -0
  334. package/dist/serve-stall-start.js.map +1 -0
  335. package/dist/serve-stall.d.ts +11 -0
  336. package/dist/serve-stall.d.ts.map +1 -0
  337. package/dist/serve-stall.js +19 -0
  338. package/dist/serve-stall.js.map +1 -0
  339. package/dist/serve-stall.plugin.d.ts +10 -0
  340. package/dist/serve-stall.plugin.d.ts.map +1 -0
  341. package/dist/serve-stall.plugin.js +34 -0
  342. package/dist/serve-stall.plugin.js.map +1 -0
  343. package/dist/services/account-home.d.ts +39 -0
  344. package/dist/services/account-home.d.ts.map +1 -0
  345. package/dist/services/account-home.js +152 -0
  346. package/dist/services/account-home.js.map +1 -0
  347. package/dist/services/cli-process-host.d.ts +50 -0
  348. package/dist/services/cli-process-host.d.ts.map +1 -0
  349. package/dist/services/cli-process-host.js +88 -0
  350. package/dist/services/cli-process-host.js.map +1 -0
  351. package/dist/services/compatibility-host.impl.bun.d.ts +4 -0
  352. package/dist/services/compatibility-host.impl.bun.d.ts.map +1 -0
  353. package/dist/services/compatibility-host.impl.bun.js +24 -0
  354. package/dist/services/compatibility-host.impl.bun.js.map +1 -0
  355. package/dist/services/executable-identity.impl.bun.d.ts +164 -0
  356. package/dist/services/executable-identity.impl.bun.d.ts.map +1 -0
  357. package/dist/services/executable-identity.impl.bun.js +73 -0
  358. package/dist/services/executable-identity.impl.bun.js.map +1 -0
  359. package/dist/services/fatal-signals.impl.bun.d.ts +15 -0
  360. package/dist/services/fatal-signals.impl.bun.d.ts.map +1 -0
  361. package/dist/services/fatal-signals.impl.bun.js +61 -0
  362. package/dist/services/fatal-signals.impl.bun.js.map +1 -0
  363. package/dist/services/graph-freshness.impl.bun.d.ts +108 -0
  364. package/dist/services/graph-freshness.impl.bun.d.ts.map +1 -0
  365. package/dist/services/graph-freshness.impl.bun.js +49 -0
  366. package/dist/services/graph-freshness.impl.bun.js.map +1 -0
  367. package/dist/services/host-identity.capability.bun.d.ts +10 -0
  368. package/dist/services/host-identity.capability.bun.d.ts.map +1 -0
  369. package/dist/services/host-identity.capability.bun.js +27 -0
  370. package/dist/services/host-identity.capability.bun.js.map +1 -0
  371. package/dist/services/host-identity.impl.bun.d.ts +53 -0
  372. package/dist/services/host-identity.impl.bun.d.ts.map +1 -0
  373. package/dist/services/host-identity.impl.bun.js +76 -0
  374. package/dist/services/host-identity.impl.bun.js.map +1 -0
  375. package/dist/services/host-resources.impl.bun.d.ts +49 -0
  376. package/dist/services/host-resources.impl.bun.d.ts.map +1 -0
  377. package/dist/services/host-resources.impl.bun.js +144 -0
  378. package/dist/services/host-resources.impl.bun.js.map +1 -0
  379. package/dist/services/http-fetch.impl.bun.d.ts +10 -0
  380. package/dist/services/http-fetch.impl.bun.d.ts.map +1 -0
  381. package/dist/services/http-fetch.impl.bun.js +38 -0
  382. package/dist/services/http-fetch.impl.bun.js.map +1 -0
  383. package/dist/services/output-plane.impl.bun.d.ts +6 -0
  384. package/dist/services/output-plane.impl.bun.d.ts.map +1 -0
  385. package/dist/services/output-plane.impl.bun.js +26 -0
  386. package/dist/services/output-plane.impl.bun.js.map +1 -0
  387. package/dist/services/process-action-lifetime.consumer.d.ts +47 -0
  388. package/dist/services/process-action-lifetime.consumer.d.ts.map +1 -0
  389. package/dist/services/process-action-lifetime.consumer.js +68 -0
  390. package/dist/services/process-action-lifetime.consumer.js.map +1 -0
  391. package/dist/services/process-view.impl.bun.d.ts +18 -0
  392. package/dist/services/process-view.impl.bun.d.ts.map +1 -0
  393. package/dist/services/process-view.impl.bun.js +17 -0
  394. package/dist/services/process-view.impl.bun.js.map +1 -0
  395. package/dist/services/runtime-host-signals.impl.bun.d.ts +8 -0
  396. package/dist/services/runtime-host-signals.impl.bun.d.ts.map +1 -0
  397. package/dist/services/runtime-host-signals.impl.bun.js +29 -0
  398. package/dist/services/runtime-host-signals.impl.bun.js.map +1 -0
  399. package/dist/services/runtime-http-listener.impl.bun.d.ts +14 -0
  400. package/dist/services/runtime-http-listener.impl.bun.d.ts.map +1 -0
  401. package/dist/services/runtime-http-listener.impl.bun.js +463 -0
  402. package/dist/services/runtime-http-listener.impl.bun.js.map +1 -0
  403. package/dist/services/runtime-path.impl.bun.d.ts +16 -0
  404. package/dist/services/runtime-path.impl.bun.d.ts.map +1 -0
  405. package/dist/services/runtime-path.impl.bun.js +34 -0
  406. package/dist/services/runtime-path.impl.bun.js.map +1 -0
  407. package/dist/services/runtime-scoped-values.impl.bun.d.ts +4 -0
  408. package/dist/services/runtime-scoped-values.impl.bun.d.ts.map +1 -0
  409. package/dist/services/runtime-scoped-values.impl.bun.js +7 -0
  410. package/dist/services/runtime-scoped-values.impl.bun.js.map +1 -0
  411. package/dist/services/runtime-socket-datagram.impl.bun.d.ts +15 -0
  412. package/dist/services/runtime-socket-datagram.impl.bun.d.ts.map +1 -0
  413. package/dist/services/runtime-socket-datagram.impl.bun.js +19 -0
  414. package/dist/services/runtime-socket-datagram.impl.bun.js.map +1 -0
  415. package/dist/services/runtime-socket.impl.bun.d.ts +20 -0
  416. package/dist/services/runtime-socket.impl.bun.d.ts.map +1 -0
  417. package/dist/services/runtime-socket.impl.bun.js +47 -0
  418. package/dist/services/runtime-socket.impl.bun.js.map +1 -0
  419. package/dist/services/runtime-stdio.impl.bun.d.ts +11 -0
  420. package/dist/services/runtime-stdio.impl.bun.d.ts.map +1 -0
  421. package/dist/services/runtime-stdio.impl.bun.js +37 -0
  422. package/dist/services/runtime-stdio.impl.bun.js.map +1 -0
  423. package/dist/services/self-spawn.impl.bun.d.ts +39 -0
  424. package/dist/services/self-spawn.impl.bun.d.ts.map +1 -0
  425. package/dist/services/self-spawn.impl.bun.js +58 -0
  426. package/dist/services/self-spawn.impl.bun.js.map +1 -0
  427. package/dist/services/standard-output.d.ts +100 -0
  428. package/dist/services/standard-output.d.ts.map +1 -0
  429. package/dist/services/standard-output.js +35 -0
  430. package/dist/services/standard-output.js.map +1 -0
  431. package/dist/services/user-environment.impl.bun.d.ts +19 -0
  432. package/dist/services/user-environment.impl.bun.d.ts.map +1 -0
  433. package/dist/services/user-environment.impl.bun.js +117 -0
  434. package/dist/services/user-environment.impl.bun.js.map +1 -0
  435. package/dist/services/workspace-env.d.ts +30 -0
  436. package/dist/services/workspace-env.d.ts.map +1 -0
  437. package/dist/services/workspace-env.js +45 -0
  438. package/dist/services/workspace-env.js.map +1 -0
  439. package/dist/services/workspace-root-probe.impl.bun.d.ts +14 -0
  440. package/dist/services/workspace-root-probe.impl.bun.d.ts.map +1 -0
  441. package/dist/services/workspace-root-probe.impl.bun.js +27 -0
  442. package/dist/services/workspace-root-probe.impl.bun.js.map +1 -0
  443. package/dist/session-members.impl.bun.d.ts +22 -0
  444. package/dist/session-members.impl.bun.d.ts.map +1 -0
  445. package/dist/session-members.impl.bun.js +74 -0
  446. package/dist/session-members.impl.bun.js.map +1 -0
  447. package/dist/sqlite-driver/index.d.ts +7 -0
  448. package/dist/sqlite-driver/index.d.ts.map +1 -0
  449. package/dist/sqlite-driver/index.js +7 -0
  450. package/dist/sqlite-driver/index.js.map +1 -0
  451. package/dist/sqlite-driver/sqlite-driver.impl.bun.d.ts +6 -0
  452. package/dist/sqlite-driver/sqlite-driver.impl.bun.d.ts.map +1 -0
  453. package/dist/sqlite-driver/sqlite-driver.impl.bun.js +269 -0
  454. package/dist/sqlite-driver/sqlite-driver.impl.bun.js.map +1 -0
  455. package/dist/sqlite-driver/sqlite-driver.plugin.d.ts +22 -0
  456. package/dist/sqlite-driver/sqlite-driver.plugin.d.ts.map +1 -0
  457. package/dist/sqlite-driver/sqlite-driver.plugin.js +44 -0
  458. package/dist/sqlite-driver/sqlite-driver.plugin.js.map +1 -0
  459. package/dist/telemetry/telemetry.d.ts +34 -0
  460. package/dist/telemetry/telemetry.d.ts.map +1 -0
  461. package/dist/telemetry/telemetry.js +2 -0
  462. package/dist/telemetry/telemetry.js.map +1 -0
  463. package/dist/telemetry/telemetry.plugin.d.ts +4 -0
  464. package/dist/telemetry/telemetry.plugin.d.ts.map +1 -0
  465. package/dist/telemetry/telemetry.plugin.js +78 -0
  466. package/dist/telemetry/telemetry.plugin.js.map +1 -0
  467. package/dist/terminal-pty-bridge.impl.bun.d.ts +31 -0
  468. package/dist/terminal-pty-bridge.impl.bun.d.ts.map +1 -0
  469. package/dist/terminal-pty-bridge.impl.bun.js +333 -0
  470. package/dist/terminal-pty-bridge.impl.bun.js.map +1 -0
  471. package/dist/test-tooling/lazy-environment.impl.bun.d.ts +16 -0
  472. package/dist/test-tooling/lazy-environment.impl.bun.d.ts.map +1 -0
  473. package/dist/test-tooling/lazy-environment.impl.bun.js +36 -0
  474. package/dist/test-tooling/lazy-environment.impl.bun.js.map +1 -0
  475. package/dist/test-tooling/starttls-refusal.d.ts +7 -0
  476. package/dist/test-tooling/starttls-refusal.d.ts.map +1 -0
  477. package/dist/test-tooling/starttls-refusal.js +50 -0
  478. package/dist/test-tooling/starttls-refusal.js.map +1 -0
  479. package/dist/test-tooling/svelte-client-preload.impl.bun.d.ts +2 -0
  480. package/dist/test-tooling/svelte-client-preload.impl.bun.d.ts.map +1 -0
  481. package/dist/test-tooling/svelte-client-preload.impl.bun.js +4 -0
  482. package/dist/test-tooling/svelte-client-preload.impl.bun.js.map +1 -0
  483. package/dist/test-tooling/svelte-compiler.impl.bun.d.ts +10 -0
  484. package/dist/test-tooling/svelte-compiler.impl.bun.d.ts.map +1 -0
  485. package/dist/test-tooling/svelte-compiler.impl.bun.js +33 -0
  486. package/dist/test-tooling/svelte-compiler.impl.bun.js.map +1 -0
  487. package/dist/test-tooling/svelte-server-preload.impl.bun.d.ts +2 -0
  488. package/dist/test-tooling/svelte-server-preload.impl.bun.d.ts.map +1 -0
  489. package/dist/test-tooling/svelte-server-preload.impl.bun.js +4 -0
  490. package/dist/test-tooling/svelte-server-preload.impl.bun.js.map +1 -0
  491. package/dist/test-tooling/test-environment.impl.bun.d.ts +45 -0
  492. package/dist/test-tooling/test-environment.impl.bun.d.ts.map +1 -0
  493. package/dist/test-tooling/test-environment.impl.bun.js +163 -0
  494. package/dist/test-tooling/test-environment.impl.bun.js.map +1 -0
  495. package/dist/test-tooling/test-process-root.impl.bun.d.ts +4 -0
  496. package/dist/test-tooling/test-process-root.impl.bun.d.ts.map +1 -0
  497. package/dist/test-tooling/test-process-root.impl.bun.js +65 -0
  498. package/dist/test-tooling/test-process-root.impl.bun.js.map +1 -0
  499. package/dist/test-tooling/unix-http.impl.bun.d.ts +28 -0
  500. package/dist/test-tooling/unix-http.impl.bun.d.ts.map +1 -0
  501. package/dist/test-tooling/unix-http.impl.bun.js +181 -0
  502. package/dist/test-tooling/unix-http.impl.bun.js.map +1 -0
  503. package/dist/transpiler/transpiler.plugin.d.ts +10 -0
  504. package/dist/transpiler/transpiler.plugin.d.ts.map +1 -0
  505. package/dist/transpiler/transpiler.plugin.js +18 -0
  506. package/dist/transpiler/transpiler.plugin.js.map +1 -0
  507. package/native/held-launch/Cargo.toml +23 -0
  508. package/native/held-launch/abi-manifest.json +234 -0
  509. package/native/held-launch/src/bin/vibes-held-launch.rs +35 -0
  510. package/native/held-launch/src/events.rs +99 -0
  511. package/native/held-launch/src/lib.rs +528 -0
  512. package/native/held-launch/symbols.golden +21 -0
  513. package/package.json +313 -4
  514. package/resources/restricted-supervisor.impl.bun.d.mts +3 -0
  515. package/resources/restricted-supervisor.impl.bun.mjs +49 -0
  516. package/resources/serve-stall-watch.impl.bun.d.mts +3 -0
  517. 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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B,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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EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,kBAAkB,GAC9B,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,EAAE,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjF,MAAM,CAAC,MAAM,uBAAuB,GACnC,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,EAAE,CAAC,uBAAuB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAC5G,MAAM,CAAC,MAAM,uBAAuB,GACnC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,EAAE,CAAC,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtF,6DAA6D;AAC7D,MAAM,CAAC,MAAM,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,EAAoD,MAAM,8BAA8B,CAAC;AAE1H,8EAA8E;AAC9E,qFAA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K,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,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gC,IAAI,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"}