@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.
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,352 @@
1
+ /**
2
+ * Bun Runtime Environment Implementation
3
+ *
4
+ * Captures environment at construction and provides Bun-specific
5
+ * implementations for scope, env access, and module loading (credentials are the
6
+ * host's `secrets/store`, read through `runtime.resolveCredential`).
7
+ */
8
+ import { bunHttpFetch } from "./services/http-fetch.impl.bun.js";
9
+ import { describeGraph, environmentGraphFreshness } from "./services/graph-freshness.impl.bun.js";
10
+ import {} from "./services/executable-identity.impl.bun.js";
11
+ import { resolveBunArgvFor } from "./services/self-spawn.impl.bun.js";
12
+ import { createBunHostResources } from "./services/host-resources.impl.bun.js";
13
+ import { captureHostFacts, captureLaunchFacts, captureTempDir, captureUserHome, SHIM_HOST_PROTOCOL_ENV } from "./host-channel.impl.bun.js";
14
+ import { AsyncLocalStorage } from 'node:async_hooks';
15
+ import { accountHomeOf, captureAccountHome } from "./services/account-home.js";
16
+ import { bindWorkspace, CapabilityError, captureValue, createAsyncLocalInvocationStore, declareRuntimeScope, lanAddressesFrom, parseDeclaredRuntimeScope, SHIM_CHANNEL_KEYS } from '@vibesdotdev/kernel';
17
+ import { createBunWorkspaceRootProbe } from "./services/workspace-root-probe.impl.bun.js";
18
+ import { resolveUserEnvironmentHost } from "./services/user-environment.impl.bun.js";
19
+ import { createBunHostLoader } from "./host-loader.impl.bun.js";
20
+ import { bunRuntimePath, createBunRuntimePath } from "./services/runtime-path.impl.bun.js";
21
+ import * as z from 'zod/v4';
22
+ import { cpus, hostname, networkInterfaces, totalmem } from 'node:os';
23
+ import { performance } from 'node:perf_hooks';
24
+ import { BunScopeSchema } from "./schemas/environment.js";
25
+ const SHIM_CHANNEL_KEY_SET = new Set(Object.values(SHIM_CHANNEL_KEYS));
26
+ /** `env` without any shim channel key: what a host the shim did not launch may hold and hand its children. */
27
+ function withoutShimChannel(env) {
28
+ return Object.fromEntries(Object.entries(env).filter(([key]) => !SHIM_CHANNEL_KEY_SET.has(key)));
29
+ }
30
+ /** The host's native read: the same facts `os.cpus()` and `os.totalmem()` report. */
31
+ function readNativeSystemResources() {
32
+ return { cpus: cpus(), totalMemoryBytes: totalmem() };
33
+ }
34
+ // A reading is the only input; the published count and model derive from its CPU list.
35
+ const HostUidSchema = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional();
36
+ const SystemResourceReadingSchema = z.object({
37
+ totalMemoryBytes: z.number().positive(),
38
+ cpus: z.array(z.object({ model: z.string() }))
39
+ }).transform(reading => ({
40
+ totalMemoryBytes: reading.totalMemoryBytes,
41
+ cpuCount: reading.cpus.length,
42
+ cpuModel: reading.cpus[0]?.model ?? null
43
+ }));
44
+ // Admission retains the caller's function and hands it the actual immutable capture.
45
+ /** A native terminal dimension: a positive integer, read only from a terminal stdout. */
46
+ const TerminalDimensionSchema = z.number().int().positive();
47
+ const nativeDimension = (value) => process.stdout.isTTY === true ? (TerminalDimensionSchema.safeParse(value).data ?? null) : null;
48
+ const ScopeResolverSchema = z.custom(candidate => z.function().safeParse(candidate).success);
49
+ export class BunEnvironment {
50
+ resources;
51
+ httpFetch = bunHttpFetch;
52
+ createInvocationStore() {
53
+ return createAsyncLocalInvocationStore(new AsyncLocalStorage());
54
+ }
55
+ /** The declared resolution root R, or null when this host declared none. */
56
+ hostRoot;
57
+ /**
58
+ * The host protocol pass set (rc05 §2.4 M2): a shim-launched host passes
59
+ * the shim's custody keys to its children; any other Bun host publishes
60
+ * none. Declared here by the host owner; the runtime validates it at
61
+ * registration and callers never extend it.
62
+ */
63
+ hostProtocolEnv;
64
+ /** This host's executable identity, classified once from its own capture, with how it reached R. */
65
+ hostIdentity() {
66
+ return this._hostIdentity;
67
+ }
68
+ /**
69
+ * The host facts this environment captured once: R, the entry, self-spawn
70
+ * and the rest of the shim channel (null on a non-shim host), `user.home`
71
+ * and the bound workspace.
72
+ */
73
+ hostFacts() {
74
+ return this._hostFacts;
75
+ }
76
+ /**
77
+ * The OS account's home from the account database, captured at construction;
78
+ * throws `account-home-unavailable` when the host could not read it.
79
+ */
80
+ accountHome() {
81
+ return accountHomeOf(this._accountHome);
82
+ }
83
+ /** The argv this process was launched with, captured once. */
84
+ argv() {
85
+ return this._argv;
86
+ }
87
+ /** The terminal this host was launched on, as its launching shell published it (captured once). */
88
+ terminal() {
89
+ return this._hostFacts.launch.terminal;
90
+ }
91
+ /** The process manager's launch stamp this host captured, or null. */
92
+ managedProcessId() {
93
+ return this._hostFacts.launch.managedProcessId;
94
+ }
95
+ /** The identity the launching harness declared for this shell, captured once. */
96
+ launchIdentity() {
97
+ return this._hostFacts.launch.identity;
98
+ }
99
+ /** The shim's channel version, else the version this host declared, else null. */
100
+ hostVersion() {
101
+ return this._hostFacts.shim?.version ?? this._declaredVersion;
102
+ }
103
+ /** The workspace this host was bound to at construction, or null. `runtime/workspace-path` reads it. */
104
+ workspaceBinding() {
105
+ return this._hostFacts.workspace;
106
+ }
107
+ /** The CLI re-entry argv this host declared, or null. */
108
+ selfSpawnArgv() {
109
+ const selfSpawn = this._hostFacts.selfSpawn;
110
+ return selfSpawn ? [...selfSpawn.argv] : null;
111
+ }
112
+ /** The self-spawn source this host declared, or null. */
113
+ selfSpawnSource() {
114
+ return this._hostFacts.selfSpawn?.source ?? null;
115
+ }
116
+ /** The argv that runs Bun itself from this host. */
117
+ scriptRuntimeArgv() {
118
+ return resolveBunArgvFor(this.selfSpawnSource(), this._hostIdentity);
119
+ }
120
+ graphIdentity(root) {
121
+ const selectedRoot = root?.trim() || this.hostRoot;
122
+ return selectedRoot ? describeGraph(selectedRoot) : null;
123
+ }
124
+ /** This physical host's graph at construction; current disk probes never rewrite it. */
125
+ loadedGraphIdentity() {
126
+ return this._loadedGraph;
127
+ }
128
+ /**
129
+ * Whether the executable this process runs was replaced on disk after it
130
+ * started (executable-identity). Pinned at construction — the earliest
131
+ * point a Bun host has a runtime — so a late probe cannot mis-pin a
132
+ * replaced file; the start-time rule inside the nerve covers the rest.
133
+ */
134
+ executableFreshness() {
135
+ return this.resources.executable.checkExecutableFreshness({ identity: this._hostIdentity, env: this._envSnapshot });
136
+ }
137
+ /**
138
+ * Whether the module graph under this process's resolution root was replaced
139
+ * after it was imported (graph-freshness). The sibling nerve: under a thin
140
+ * host the executable is recompiled very rarely and `vibes update` moves the
141
+ * plugins instead, so a body judged by the executable alone reports green
142
+ * while serving code nobody has on disk.
143
+ */
144
+ graphFreshness() {
145
+ return environmentGraphFreshness(this.hostRoot, this._loadedGraph);
146
+ }
147
+ id;
148
+ description;
149
+ identity;
150
+ scope;
151
+ loader;
152
+ userEnvironment;
153
+ runtimePath;
154
+ /** Captured at construction; explicit workspace authority never mutates launch cwd. */
155
+ _cwd;
156
+ _argv;
157
+ _envSnapshot;
158
+ _hostFacts;
159
+ _platform;
160
+ _declaredVersion;
161
+ _arch;
162
+ _hostname;
163
+ _uid;
164
+ _hostIdentity;
165
+ _accountHome;
166
+ _loadedGraph;
167
+ _systemResources;
168
+ _monotonicNow;
169
+ monotonicNow() {
170
+ return this._monotonicNow();
171
+ }
172
+ getWallClockMs() {
173
+ return Date.now();
174
+ }
175
+ systemResources() {
176
+ return this._systemResources;
177
+ }
178
+ constructor(options, resources = createBunHostResources(), capture) {
179
+ this.resources = resources;
180
+ this.id = 'bun';
181
+ this.description = 'Bun runtime environment';
182
+ // Host facts are captured once, here. Nothing below reads process.env:
183
+ // identity, graph pin and self-spawn all derive from this snapshot and
184
+ // the declared host root, so two environments keep their own facts.
185
+ // The host facts are validated here, from the raw capture (a shim host)
186
+ // or the declaration (any other host); a non-shim host has no R unless it
187
+ // passed one. Values the host declares for its children layer over the
188
+ // capture afterwards, so they never stand in for a channel key.
189
+ const captured = capture?.env ?? this._captureEnv();
190
+ // The process's own platform, architecture, working directory and argv, read once.
191
+ this._platform = process.platform;
192
+ // The user home comes from that capture, not from the OS's own read of the live process.
193
+ const facts = captureHostFacts(captured, options.host, captureUserHome(captured, this._platform, bunRuntimePath.homedir));
194
+ this._declaredVersion = options.host?.version?.trim() || null;
195
+ this._arch = process.arch;
196
+ this._hostname = hostname();
197
+ this._uid = HostUidSchema.parse(process.getuid?.());
198
+ this._cwd = capture?.cwd ?? process.cwd();
199
+ this._argv = Object.freeze([...process.argv]);
200
+ this._monotonicNow = performance.now.bind(performance);
201
+ const systemReading = SystemResourceReadingSchema.safeParse((options.systemResources ?? readNativeSystemResources)());
202
+ if (!systemReading.success)
203
+ throw new CapabilityError('The Bun host supplied invalid system resources.', 'UNAVAILABLE', {
204
+ reason: 'host-system-resources-invalid', retryable: false
205
+ });
206
+ this._systemResources = Object.freeze(systemReading.data);
207
+ this.runtimePath = createBunRuntimePath({ cwd: this._cwd, home: facts.user.home, tempDir: captureTempDir(captured, this._platform, bunRuntimePath.tmpdir) });
208
+ // Only a host the shim launched owns its channel: any other Bun host (an embedding, a host run from a
209
+ // checkout) inherited a parent's keys, which name the parent's graph, so it neither reads nor forwards them.
210
+ const merged = { ...captured, ...options.host?.spawnEnv };
211
+ this._envSnapshot = Object.freeze(facts.shimChannel ? merged : withoutShimChannel(merged));
212
+ this.hostRoot = facts.root;
213
+ this.hostProtocolEnv = facts.shimChannel ? SHIM_HOST_PROTOCOL_ENV : [];
214
+ this._hostIdentity = Object.freeze({
215
+ ...this.resources.classifier.classifyExecutable({
216
+ hostEntry: facts.entry,
217
+ hostRoot: facts.root,
218
+ declaredSource: facts.selfSpawn?.source ?? null
219
+ }),
220
+ // How the shim reached R (`VIBES_HOST_SCOPE`); composition labels the planes by it.
221
+ hostScope: facts.scope,
222
+ // Whether R is execution custody (declared `host.rootCustody`); composition resolves the workspace plane at R then.
223
+ hostRootCustody: facts.rootCustody
224
+ });
225
+ this.resources.executable.captureExecutableIdentity({ identity: this._hostIdentity, env: this._envSnapshot });
226
+ // Pin the graph identity at the same moment, for the same reason: this is
227
+ // the earliest point a Bun host has a runtime, and a digest read later
228
+ // would already be the POST-update one — the body would then judge itself
229
+ // fresh forever.
230
+ this._loadedGraph = this.hostRoot ? Object.freeze(describeGraph(this.hostRoot)) : null;
231
+ this.identity = {
232
+ esm: true,
233
+ typescript: true,
234
+ nativeLoader: true,
235
+ substrate: 'local'
236
+ };
237
+ const resolver = ScopeResolverSchema.safeParse(options.scope);
238
+ const declaration = resolver.success ? resolver.data(this._envSnapshot, { platform: this._platform }) : options.scope;
239
+ const parsed = BunScopeSchema.safeParse(declaration);
240
+ // The kernel owns the refusal taxonomy for an invalid declaration.
241
+ if (!parsed.success)
242
+ parseDeclaredRuntimeScope(captureValue(declaration), 'runtime-environment-bun');
243
+ if (!parsed.success)
244
+ throw new CapabilityError('Invalid Bun host scope.', 'INVALID_INPUT', { reason: 'scope-invalid' });
245
+ const declared = parsed.data;
246
+ this.scope = declareRuntimeScope({
247
+ ...declared,
248
+ qualifiers: {
249
+ dev: this._hostIdentity.kind === 'source',
250
+ os: this._platform,
251
+ ...declared.qualifiers
252
+ }
253
+ }, 'runtime-environment-bun');
254
+ // The workspace binding, captured once with this host's own filesystem
255
+ // probe (rc02-rc03 §2.4): the declared root (`--workspace-root`, a host
256
+ // serving a fixed tree), else the nearest workspace above the cwd; an
257
+ // invalid declared root fails the host here, before anything reads it.
258
+ const launch = captureLaunchFacts(this._envSnapshot);
259
+ this._hostFacts = Object.freeze({
260
+ ...facts,
261
+ launch: Object.freeze({
262
+ ...launch,
263
+ terminal: Object.freeze({
264
+ ...launch.terminal,
265
+ // A published COLUMNS/LINES wins; else the terminal stdout's own size, which an interactive shell need not export.
266
+ columns: launch.terminal.columns ?? nativeDimension(process.stdout.columns),
267
+ lines: launch.terminal.lines ?? nativeDimension(process.stdout.rows),
268
+ stdoutIsTerminal: process.stdout.isTTY === true,
269
+ stdinIsTerminal: process.stdin.isTTY === true,
270
+ stderrIsTerminal: process.stderr.isTTY === true,
271
+ // A hidden prompt switches stdin to raw mode: only a terminal stream that offers it can.
272
+ stdinCanHideInput: process.stdin.isTTY === true && process.stdin.setRawMode !== undefined
273
+ })
274
+ }),
275
+ workspace: bindWorkspace({
276
+ explicit: this.scope.workspace?.root,
277
+ cwd: this._cwd,
278
+ home: facts.user.home,
279
+ access: this.scope.workspace?.access ?? null,
280
+ probe: createBunWorkspaceRootProbe()
281
+ })
282
+ });
283
+ // The OS account's home, read once from the account database (never HOME).
284
+ this._accountHome = captureAccountHome(this._platform, process.getuid?.(), this._arch);
285
+ // The host's one loader: module import and the single discovery pass.
286
+ this.loader = createBunHostLoader();
287
+ this.userEnvironment = resolveUserEnvironmentHost(this._platform, facts.user.home, () => this.childEnv());
288
+ }
289
+ childEnvComposer = null;
290
+ /**
291
+ * Bind the composer for this environment's own children (the Windows user
292
+ * environment's PowerShell): the kernel's host set of the runtime that
293
+ * registered it. `installBunEnvironment` binds it once the runtime exists.
294
+ */
295
+ bindChildEnv(compose) {
296
+ this.childEnvComposer = compose;
297
+ }
298
+ childEnv() {
299
+ if (!this.childEnvComposer) {
300
+ throw new CapabilityError('This Bun environment is not registered on a runtime, so it cannot compose a child environment.', 'INTERNAL', {
301
+ reason: 'environment-unregistered'
302
+ });
303
+ }
304
+ return this.childEnvComposer();
305
+ }
306
+ /** Bun owns cwd; universal Runtime consumers receive it through this contract. */
307
+ getCwd() {
308
+ return this._cwd;
309
+ }
310
+ /** Capture environment variables once, at construction. The only process.env read. */
311
+ _captureEnv() {
312
+ const captured = {};
313
+ for (const [key, value] of Object.entries(process.env)) {
314
+ if (value !== undefined)
315
+ captured[key] = value;
316
+ }
317
+ return captured;
318
+ }
319
+ /**
320
+ * Get environment variable from captured snapshot.
321
+ * No direct process.env access.
322
+ */
323
+ getEnv(key) {
324
+ return this._envSnapshot[key];
325
+ }
326
+ getPlatform() {
327
+ return this._platform;
328
+ }
329
+ /** The process's CPU architecture (`process.arch` spelling), captured once. */
330
+ getArch() {
331
+ return this._arch;
332
+ }
333
+ /** The host machine's hostname, captured once. */
334
+ getHostname() {
335
+ return this._hostname;
336
+ }
337
+ /** Non-internal IPv4 and IPv6 addresses of this host. */
338
+ getLanAddresses() {
339
+ return lanAddressesFrom(networkInterfaces());
340
+ }
341
+ /** The account identity captured at host construction, never the invocation actor. */
342
+ getUid() {
343
+ if (this._uid === undefined) {
344
+ throw new CapabilityError('This host does not expose an account UID.', 'UNAVAILABLE', { reason: 'host-uid-unavailable' });
345
+ }
346
+ return this._uid;
347
+ }
348
+ getEnvSnapshot() {
349
+ return { ...this._envSnapshot };
350
+ }
351
+ }
352
+ //# sourceMappingURL=bun-environment.impl.bun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bun-environment.impl.bun.js","sourceRoot":"","sources":["../src/bun-environment.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,OAAO,EACN,aAAa,EACb,yBAAyB,EAEzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEN,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,iBAAiB,EAGjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,sBAAsB,EAA8C,MAAM,4BAA4B,CAAC;AACvL,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAA2B,MAAM,4BAA4B,CAAC;AACxG,OAAO,EACN,aAAa,EACb,eAAe,EACf,YAAY,EACZ,+BAA+B,EAC/B,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EAYjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,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;IAED,WAAW;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,+EAA+E;IAC/E,OAAO;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAED,kDAAkD;IAClD,WAAW;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,yDAAyD;IACzD,eAAe;QACd,OAAO,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,sFAAsF;IACtF,MAAM;QACL,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,eAAe,CAAC,2CAA2C,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,CAAC;QAC3H,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,cAAc;QACb,OAAO,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;CACD"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The Bun host's Redis connector for cache's `cache/redis-connector` kind:
3
+ * opens and connects Bun's native `RedisClient`. Host API use stays in the
4
+ * host package; cache resolves this through the runtime.
5
+ *
6
+ * The first connect is bounded: with Bun's defaults (10 reconnect attempts with
7
+ * backoff) an unreachable server holds `connect()` for well over 30 seconds,
8
+ * and the cache adapter opens during plugin activation. Reconnects after a
9
+ * dropped connection keep the same bound.
10
+ */
11
+ import { RedisClient } from 'bun';
12
+ /** How long one connection attempt may take. */
13
+ export declare const REDIS_CONNECT_TIMEOUT_MS = 5000;
14
+ /** Reconnect attempts before a connect (or a dropped connection) fails. */
15
+ export declare const REDIS_MAX_RETRIES = 3;
16
+ export interface BunCacheRedisConnector {
17
+ open(url: string): Promise<RedisClient>;
18
+ }
19
+ export declare function createBunCacheRedisConnector(): BunCacheRedisConnector;
20
+ //# sourceMappingURL=cache-redis-connector.impl.bun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-redis-connector.impl.bun.d.ts","sourceRoot":"","sources":["../../src/cache-redis/cache-redis-connector.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAElC,gDAAgD;AAChD,eAAO,MAAM,wBAAwB,OAAQ,CAAC;AAC9C,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,MAAM,WAAW,sBAAsB;IACtC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,wBAAgB,4BAA4B,IAAI,sBAAsB,CAYrE"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The Bun host's Redis connector for cache's `cache/redis-connector` kind:
3
+ * opens and connects Bun's native `RedisClient`. Host API use stays in the
4
+ * host package; cache resolves this through the runtime.
5
+ *
6
+ * The first connect is bounded: with Bun's defaults (10 reconnect attempts with
7
+ * backoff) an unreachable server holds `connect()` for well over 30 seconds,
8
+ * and the cache adapter opens during plugin activation. Reconnects after a
9
+ * dropped connection keep the same bound.
10
+ */
11
+ import { RedisClient } from 'bun';
12
+ /** How long one connection attempt may take. */
13
+ export const REDIS_CONNECT_TIMEOUT_MS = 5_000;
14
+ /** Reconnect attempts before a connect (or a dropped connection) fails. */
15
+ export const REDIS_MAX_RETRIES = 3;
16
+ export function createBunCacheRedisConnector() {
17
+ return {
18
+ async open(url) {
19
+ const client = new RedisClient(url, {
20
+ connectionTimeout: REDIS_CONNECT_TIMEOUT_MS,
21
+ maxRetries: REDIS_MAX_RETRIES,
22
+ autoReconnect: true
23
+ });
24
+ if (!client.connected)
25
+ await client.connect();
26
+ return client;
27
+ }
28
+ };
29
+ }
30
+ //# sourceMappingURL=cache-redis-connector.impl.bun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-redis-connector.impl.bun.js","sourceRoot":"","sources":["../../src/cache-redis/cache-redis-connector.impl.bun.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAElC,gDAAgD;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAC9C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAMnC,MAAM,UAAU,4BAA4B;IAC3C,OAAO;QACN,KAAK,CAAC,IAAI,CAAC,GAAW;YACrB,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,GAAG,EAAE;gBACnC,iBAAiB,EAAE,wBAAwB;gBAC3C,UAAU,EAAE,iBAAiB;gBAC7B,aAAa,EAAE,IAAI;aACnB,CAAC,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,SAAS;gBAAE,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;YAC9C,OAAO,MAAM,CAAC;QACf,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Registers the Bun host's Redis connector under cache's
3
+ * `cache/redis-connector` kind. Registered by kind id: the cache plugin
4
+ * declares the kind, and the runtime installs this descriptor when it does,
5
+ * so the host takes no package edge on cache. The connector module loads only
6
+ * when the kind is first resolved.
7
+ */
8
+ import { type RuntimeRef } from '@vibesdotdev/kernel';
9
+ export declare const CACHE_REDIS_CONNECTOR_KIND = "cache/redis-connector";
10
+ /** The Bun connector's descriptor. */
11
+ export declare const bunCacheRedisConnectorDescriptor: {
12
+ id: string;
13
+ kind: string;
14
+ name: string;
15
+ description: string;
16
+ host: string;
17
+ hardware: string[];
18
+ };
19
+ /** Register the Bun connector's descriptor and its lazy loader on `runtime`. */
20
+ export declare function registerBunCacheRedisConnector(runtime: RuntimeRef): void;
21
+ //# sourceMappingURL=cache-redis-connector.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-redis-connector.plugin.d.ts","sourceRoot":"","sources":["../../src/cache-redis/cache-redis-connector.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAA+B,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEnF,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAElE,sCAAsC;AACtC,eAAO,MAAM,gCAAgC;;;;;;;CAO5C,CAAC;AAEF,gFAAgF;AAChF,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAWxE"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Registers the Bun host's Redis connector under cache's
3
+ * `cache/redis-connector` kind. Registered by kind id: the cache plugin
4
+ * declares the kind, and the runtime installs this descriptor when it does,
5
+ * so the host takes no package edge on cache. The connector module loads only
6
+ * when the kind is first resolved.
7
+ */
8
+ import { createRuntimeImplementation } from '@vibesdotdev/kernel';
9
+ export const CACHE_REDIS_CONNECTOR_KIND = 'cache/redis-connector';
10
+ /** The Bun connector's descriptor. */
11
+ export const bunCacheRedisConnectorDescriptor = {
12
+ id: 'cache-redis-connector-bun',
13
+ kind: CACHE_REDIS_CONNECTOR_KIND,
14
+ name: 'Bun Redis connector',
15
+ description: "Cache's Redis connector over Bun's native RedisClient",
16
+ host: 'bun',
17
+ hardware: ['consumer']
18
+ };
19
+ /** Register the Bun connector's descriptor and its lazy loader on `runtime`. */
20
+ export function registerBunCacheRedisConnector(runtime) {
21
+ runtime.registerDescriptor(CACHE_REDIS_CONNECTOR_KIND, bunCacheRedisConnectorDescriptor);
22
+ runtime.registerLoader(CACHE_REDIS_CONNECTOR_KIND, bunCacheRedisConnectorDescriptor.id, async () => {
23
+ const { createBunCacheRedisConnector } = await import("./cache-redis-connector.impl.bun.js");
24
+ return createRuntimeImplementation({
25
+ kind: CACHE_REDIS_CONNECTOR_KIND,
26
+ id: bunCacheRedisConnectorDescriptor.id,
27
+ constraint: { hardware: ['consumer'] },
28
+ implementation: createBunCacheRedisConnector()
29
+ });
30
+ });
31
+ }
32
+ //# sourceMappingURL=cache-redis-connector.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-redis-connector.plugin.js","sourceRoot":"","sources":["../../src/cache-redis/cache-redis-connector.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,2BAA2B,EAAmB,MAAM,qBAAqB,CAAC;AAEnF,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAElE,sCAAsC;AACtC,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC/C,EAAE,EAAE,2BAA2B;IAC/B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,KAAK;IACX,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEF,gFAAgF;AAChF,MAAM,UAAU,8BAA8B,CAAC,OAAmB;IACjE,OAAO,CAAC,kBAAkB,CAAC,0BAA0B,EAAE,gCAAgC,CAAC,CAAC;IACzF,OAAO,CAAC,cAAc,CAAC,0BAA0B,EAAE,gCAAgC,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;QAClG,MAAM,EAAE,4BAA4B,EAAE,GAAG,MAAM,MAAM,CAAC,qCAAqC,CAAC,CAAC;QAC7F,OAAO,2BAA2B,CAAC;YAClC,IAAI,EAAE,0BAA0B;YAChC,EAAE,EAAE,gCAAgC,CAAC,EAAE;YACvC,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE;YACtC,cAAc,EAAE,4BAA4B,EAAE;SAC9C,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** Capture the checkout root explicitly supplied by the build executor. */
2
+ export declare function captureCheckoutCliLaunch(scriptUrl: string): {
3
+ host: {
4
+ root: string;
5
+ rootCustody: boolean;
6
+ selfSpawn: {
7
+ argv: string[];
8
+ source: "bun-source";
9
+ };
10
+ };
11
+ argv: string[];
12
+ };
13
+ //# sourceMappingURL=cli-checkout.impl.bun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-checkout.impl.bun.d.ts","sourceRoot":"","sources":["../src/cli-checkout.impl.bun.ts"],"names":[],"mappings":"AAIA,2EAA2E;AAC3E,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;EAkBzD"}
@@ -0,0 +1,26 @@
1
+ import { realpathSync, statSync } from 'node:fs';
2
+ import { isAbsolute, relative, sep } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ /** Capture the checkout root explicitly supplied by the build executor. */
5
+ export function captureCheckoutCliLaunch(scriptUrl) {
6
+ const script = realpathSync(fileURLToPath(scriptUrl));
7
+ const declared = process.argv[2];
8
+ if (!declared || !isAbsolute(declared))
9
+ throw new Error('A checkout CLI requires an absolute declared root.');
10
+ const root = realpathSync(declared);
11
+ if (!statSync(root).isDirectory())
12
+ throw new Error('The declared checkout root is not a directory.');
13
+ const location = relative(root, script);
14
+ if (!location || location === '..' || location.startsWith(`..${sep}`) || isAbsolute(location)) {
15
+ throw new Error('The checkout CLI must belong to the declared root.');
16
+ }
17
+ return {
18
+ host: {
19
+ root,
20
+ rootCustody: true,
21
+ selfSpawn: { argv: [process.execPath, script, root], source: 'bun-source' }
22
+ },
23
+ argv: [process.argv[0], script, ...process.argv.slice(3)]
24
+ };
25
+ }
26
+ //# sourceMappingURL=cli-checkout.impl.bun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-checkout.impl.bun.js","sourceRoot":"","sources":["../src/cli-checkout.impl.bun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,2EAA2E;AAC3E,MAAM,UAAU,wBAAwB,CAAC,SAAiB;IACzD,MAAM,MAAM,GAAG,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IAC9G,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACrG,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/F,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACvE,CAAC;IACD,OAAO;QACN,IAAI,EAAE;YACL,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,YAAqB,EAAE;SACpF;QACD,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAE,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1D,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ declare const descriptor: {
2
+ kind: "docs/topic";
3
+ id: string;
4
+ title: string;
5
+ summary: string;
6
+ body: {
7
+ type: "markdown";
8
+ sourceType: "raw";
9
+ source: string;
10
+ };
11
+ parent: string;
12
+ order: number;
13
+ tags: string[];
14
+ surfaces: readonly ["cli", "web", "in-app"];
15
+ hardware: readonly ["consumer"];
16
+ enabled: boolean;
17
+ };
18
+ export default descriptor;
19
+ //# sourceMappingURL=runtime-environment-bun.docs.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-environment-bun.docs.descriptor.d.ts","sourceRoot":"","sources":["../../src/docs/runtime-environment-bun.docs.descriptor.ts"],"names":[],"mappings":"AAsGA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;CAYf,CAAC;AAEF,eAAe,UAAU,CAAC"}