@mysten-incubation/devstack 0.1.1 → 0.2.0

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 (858) hide show
  1. package/README.md +6 -3
  2. package/dashboard-ui/assets/grpc-a4usE3Nk.js +3 -0
  3. package/dashboard-ui/assets/index-B82Bh84P.css +1 -0
  4. package/dashboard-ui/assets/index-CRYJ4pru.js +1277 -0
  5. package/dashboard-ui/index.html +2 -2
  6. package/dist/api/define-capabilities.d.mts +1 -20
  7. package/dist/api/define-capabilities.mjs +15 -22
  8. package/dist/api/define-capabilities.mjs.map +1 -1
  9. package/dist/api/define-devstack-with.d.mts +7 -1
  10. package/dist/api/define-devstack-with.mjs.map +1 -1
  11. package/dist/api/define-devstack.mjs.map +1 -1
  12. package/dist/api/define-plugin.d.mts +2 -1
  13. package/dist/api/inference-network.d.mts +31 -17
  14. package/dist/api/inference-network.mjs +40 -43
  15. package/dist/api/inference-network.mjs.map +1 -1
  16. package/dist/api/load-config.mjs +88 -0
  17. package/dist/api/load-config.mjs.map +1 -0
  18. package/dist/api/mode-narrowed-factory.d.mts +1 -1
  19. package/dist/api/mode-narrowed-factory.mjs.map +1 -1
  20. package/dist/api/run-stack-internal.mjs +202 -0
  21. package/dist/api/run-stack-internal.mjs.map +1 -0
  22. package/dist/api/run-stack.d.mts +82 -31
  23. package/dist/api/run-stack.mjs +22 -141
  24. package/dist/api/run-stack.mjs.map +1 -1
  25. package/dist/build-integrations/dapp-kit/index.d.mts +61 -0
  26. package/dist/build-integrations/dapp-kit/index.mjs +58 -0
  27. package/dist/build-integrations/dapp-kit/index.mjs.map +1 -0
  28. package/dist/build-integrations/playwright/config.d.mts +1 -30
  29. package/dist/build-integrations/playwright/config.mjs +1 -27
  30. package/dist/build-integrations/playwright/config.mjs.map +1 -1
  31. package/dist/build-integrations/playwright/errors.d.mts +4 -7
  32. package/dist/build-integrations/playwright/errors.mjs.map +1 -1
  33. package/dist/build-integrations/playwright/global-setup.d.mts +42 -71
  34. package/dist/build-integrations/playwright/global-setup.mjs +142 -218
  35. package/dist/build-integrations/playwright/global-setup.mjs.map +1 -1
  36. package/dist/build-integrations/playwright/index.d.mts +2 -2
  37. package/dist/build-integrations/playwright/index.mjs +2 -2
  38. package/dist/build-integrations/playwright/stack-context.d.mts +3 -1
  39. package/dist/build-integrations/playwright/stack-context.mjs +4 -2
  40. package/dist/build-integrations/playwright/stack-context.mjs.map +1 -1
  41. package/dist/build-integrations/playwright/wallet-context.mjs +44 -19
  42. package/dist/build-integrations/playwright/wallet-context.mjs.map +1 -1
  43. package/dist/build-integrations/runtime/cold-start-url.mjs.map +1 -1
  44. package/dist/build-integrations/runtime/conventional-routes.mjs.map +1 -1
  45. package/dist/build-integrations/runtime/dapp-kit-slot.mjs.map +1 -1
  46. package/dist/build-integrations/runtime/discover.d.mts +6 -4
  47. package/dist/build-integrations/runtime/discover.mjs +15 -4
  48. package/dist/build-integrations/runtime/discover.mjs.map +1 -1
  49. package/dist/build-integrations/runtime/endpoint-registry.mjs.map +1 -1
  50. package/dist/build-integrations/runtime/errors.mjs.map +1 -1
  51. package/dist/build-integrations/runtime/read-stack-context.mjs +3 -3
  52. package/dist/build-integrations/runtime/read-stack-context.mjs.map +1 -1
  53. package/dist/build-integrations/runtime/resolve-discovery-env.d.mts +23 -7
  54. package/dist/build-integrations/runtime/resolve-discovery-env.mjs +25 -12
  55. package/dist/build-integrations/runtime/resolve-discovery-env.mjs.map +1 -1
  56. package/dist/build-integrations/runtime/stack-context.d.mts +2 -2
  57. package/dist/build-integrations/vite/index.d.mts +84 -19
  58. package/dist/build-integrations/vite/index.mjs +203 -28
  59. package/dist/build-integrations/vite/index.mjs.map +1 -1
  60. package/dist/build-integrations/vitest/config.d.mts +20 -2
  61. package/dist/build-integrations/vitest/config.mjs +16 -4
  62. package/dist/build-integrations/vitest/config.mjs.map +1 -1
  63. package/dist/build-integrations/vitest/env.d.mts +18 -10
  64. package/dist/build-integrations/vitest/env.mjs +11 -10
  65. package/dist/build-integrations/vitest/env.mjs.map +1 -1
  66. package/dist/build-integrations/vitest/errors.d.mts +7 -11
  67. package/dist/build-integrations/vitest/errors.mjs +3 -4
  68. package/dist/build-integrations/vitest/errors.mjs.map +1 -1
  69. package/dist/build-integrations/vitest/global-setup.d.mts +35 -0
  70. package/dist/build-integrations/vitest/global-setup.mjs +156 -0
  71. package/dist/build-integrations/vitest/global-setup.mjs.map +1 -0
  72. package/dist/build-integrations/vitest/index.d.mts +3 -2
  73. package/dist/build-integrations/vitest/index.mjs +3 -2
  74. package/dist/build-integrations/vitest/setup.mjs +2 -2
  75. package/dist/build-integrations/vitest/setup.mjs.map +1 -1
  76. package/dist/build-integrations/vitest/stack-context.d.mts +5 -3
  77. package/dist/build-integrations/vitest/stack-context.mjs +3 -2
  78. package/dist/build-integrations/vitest/stack-context.mjs.map +1 -1
  79. package/dist/cli/bail.mjs.map +1 -1
  80. package/dist/cli/doctor-probes.mjs +1 -3
  81. package/dist/cli/doctor-probes.mjs.map +1 -1
  82. package/dist/cli/main.d.mts +23 -1
  83. package/dist/cli/main.mjs +63 -8
  84. package/dist/cli/main.mjs.map +1 -1
  85. package/dist/cli/prune-direct.mjs.map +1 -1
  86. package/dist/cli/snapshot-reader.mjs.map +1 -1
  87. package/dist/cli/up-lifecycle.mjs.map +1 -1
  88. package/dist/cli/wirings/apply.mjs +28 -21
  89. package/dist/cli/wirings/apply.mjs.map +1 -1
  90. package/dist/cli/wirings/codegen.mjs +108 -0
  91. package/dist/cli/wirings/codegen.mjs.map +1 -0
  92. package/dist/cli/wirings/config-loader.mjs +12 -62
  93. package/dist/cli/wirings/config-loader.mjs.map +1 -1
  94. package/dist/cli/wirings/dump-ids.mjs +86 -0
  95. package/dist/cli/wirings/dump-ids.mjs.map +1 -0
  96. package/dist/cli/wirings/engine-command.mjs +1 -1
  97. package/dist/cli/wirings/engine-command.mjs.map +1 -1
  98. package/dist/cli/wirings/identity.mjs +2 -2
  99. package/dist/cli/wirings/identity.mjs.map +1 -1
  100. package/dist/cli/wirings/provide-file-system.mjs.map +1 -1
  101. package/dist/cli/wirings/read-devstack-version.mjs +17 -0
  102. package/dist/cli/wirings/read-devstack-version.mjs.map +1 -0
  103. package/dist/cli/wirings/snapshot.mjs +27 -34
  104. package/dist/cli/wirings/snapshot.mjs.map +1 -1
  105. package/dist/cli/wirings/up-ipc.mjs +147 -0
  106. package/dist/cli/wirings/up-ipc.mjs.map +1 -0
  107. package/dist/cli/wirings/up.mjs +218 -198
  108. package/dist/cli/wirings/up.mjs.map +1 -1
  109. package/dist/cli/wirings/wipe.mjs +1 -1
  110. package/dist/cli/wirings/wipe.mjs.map +1 -1
  111. package/dist/contracts/chain-probe.d.mts +1 -1
  112. package/dist/contracts/chain-probe.mjs +1 -1
  113. package/dist/contracts/chain-probe.mjs.map +1 -1
  114. package/dist/contracts/codegenable.d.mts +60 -6
  115. package/dist/contracts/codegenable.mjs +28 -0
  116. package/dist/contracts/codegenable.mjs.map +1 -0
  117. package/dist/contracts/config-bindings.mjs +162 -0
  118. package/dist/contracts/config-bindings.mjs.map +1 -0
  119. package/dist/contracts/container-runtime.d.mts +23 -17
  120. package/dist/contracts/plugin-expander.mjs.map +1 -1
  121. package/dist/contracts/snapshotable.d.mts +5 -7
  122. package/dist/contracts/wallet-protocol.d.mts +2 -5
  123. package/dist/contracts/wallet-protocol.mjs +2 -5
  124. package/dist/contracts/wallet-protocol.mjs.map +1 -1
  125. package/dist/index.d.mts +21 -26
  126. package/dist/index.mjs +8 -9
  127. package/dist/orchestrators/boot.d.mts +28 -0
  128. package/dist/orchestrators/boot.mjs +440 -0
  129. package/dist/orchestrators/boot.mjs.map +1 -0
  130. package/dist/orchestrators/codegen/bindings.d.mts +13 -1
  131. package/dist/orchestrators/codegen/bindings.mjs +23 -9
  132. package/dist/orchestrators/codegen/bindings.mjs.map +1 -1
  133. package/dist/orchestrators/codegen/config-runtime.mjs +208 -0
  134. package/dist/orchestrators/codegen/config-runtime.mjs.map +1 -0
  135. package/dist/orchestrators/codegen/emit.mjs +1 -1
  136. package/dist/orchestrators/codegen/emit.mjs.map +1 -1
  137. package/dist/orchestrators/codegen/errors.mjs +21 -1
  138. package/dist/orchestrators/codegen/errors.mjs.map +1 -1
  139. package/dist/orchestrators/codegen/format.mjs +2 -0
  140. package/dist/orchestrators/codegen/format.mjs.map +1 -1
  141. package/dist/orchestrators/codegen/gitignore.mjs +30 -11
  142. package/dist/orchestrators/codegen/gitignore.mjs.map +1 -1
  143. package/dist/orchestrators/codegen/id-config.mjs +107 -0
  144. package/dist/orchestrators/codegen/id-config.mjs.map +1 -0
  145. package/dist/orchestrators/codegen/output-location.mjs +23 -32
  146. package/dist/orchestrators/codegen/output-location.mjs.map +1 -1
  147. package/dist/orchestrators/codegen/paths.mjs +8 -1
  148. package/dist/orchestrators/codegen/paths.mjs.map +1 -1
  149. package/dist/orchestrators/codegen/permissions.mjs.map +1 -1
  150. package/dist/orchestrators/codegen/service.mjs +286 -58
  151. package/dist/orchestrators/codegen/service.mjs.map +1 -1
  152. package/dist/orchestrators/layers.mjs +31 -0
  153. package/dist/orchestrators/layers.mjs.map +1 -0
  154. package/dist/orchestrators/lifecycle-prune/errors.mjs.map +1 -1
  155. package/dist/orchestrators/lifecycle-prune/index.mjs +8 -10
  156. package/dist/orchestrators/lifecycle-prune/index.mjs.map +1 -1
  157. package/dist/orchestrators/network-options.d.mts +52 -0
  158. package/dist/orchestrators/network-options.mjs +43 -0
  159. package/dist/orchestrators/network-options.mjs.map +1 -0
  160. package/dist/orchestrators/router/cleanup.mjs.map +1 -1
  161. package/dist/orchestrators/router/cors.mjs.map +1 -1
  162. package/dist/orchestrators/router/entrypoints.mjs.map +1 -1
  163. package/dist/orchestrators/router/errors.mjs.map +1 -1
  164. package/dist/orchestrators/router/file-provider.mjs.map +1 -1
  165. package/dist/orchestrators/router/hostname.mjs.map +1 -1
  166. package/dist/orchestrators/router/profile.mjs +1 -1
  167. package/dist/orchestrators/router/profile.mjs.map +1 -1
  168. package/dist/orchestrators/router/service.d.mts +2 -2
  169. package/dist/orchestrators/router/service.mjs +12 -27
  170. package/dist/orchestrators/router/service.mjs.map +1 -1
  171. package/dist/orchestrators/router/traefik-container.mjs +1 -1
  172. package/dist/orchestrators/router/traefik-container.mjs.map +1 -1
  173. package/dist/orchestrators/snapshot/capture.mjs +171 -195
  174. package/dist/orchestrators/snapshot/capture.mjs.map +1 -1
  175. package/dist/orchestrators/snapshot/descriptor.d.mts +1 -1
  176. package/dist/orchestrators/snapshot/descriptor.mjs +53 -11
  177. package/dist/orchestrators/snapshot/descriptor.mjs.map +1 -1
  178. package/dist/orchestrators/snapshot/identity-guard.mjs +3 -5
  179. package/dist/orchestrators/snapshot/identity-guard.mjs.map +1 -1
  180. package/dist/orchestrators/snapshot/image-bundle-tags.mjs +32 -101
  181. package/dist/orchestrators/snapshot/image-bundle-tags.mjs.map +1 -1
  182. package/dist/orchestrators/snapshot/index.mjs +1 -4
  183. package/dist/orchestrators/snapshot/integrity.mjs.map +1 -1
  184. package/dist/orchestrators/snapshot/interrupted-restore.mjs +116 -0
  185. package/dist/orchestrators/snapshot/interrupted-restore.mjs.map +1 -0
  186. package/dist/orchestrators/snapshot/phase-error.mjs.map +1 -1
  187. package/dist/orchestrators/snapshot/prune.mjs +40 -31
  188. package/dist/orchestrators/snapshot/prune.mjs.map +1 -1
  189. package/dist/orchestrators/snapshot/restore.mjs +221 -196
  190. package/dist/orchestrators/snapshot/restore.mjs.map +1 -1
  191. package/dist/orchestrators/snapshot/service.mjs +72 -62
  192. package/dist/orchestrators/snapshot/service.mjs.map +1 -1
  193. package/dist/orchestrators/snapshot/wipe.mjs +67 -56
  194. package/dist/orchestrators/snapshot/wipe.mjs.map +1 -1
  195. package/dist/plugins/account/codegen.mjs +3 -0
  196. package/dist/plugins/account/codegen.mjs.map +1 -1
  197. package/dist/plugins/account/errors.d.mts +2 -2
  198. package/dist/plugins/account/errors.mjs +1 -4
  199. package/dist/plugins/account/errors.mjs.map +1 -1
  200. package/dist/plugins/account/funding.mjs +3 -27
  201. package/dist/plugins/account/funding.mjs.map +1 -1
  202. package/dist/plugins/account/index.d.mts +3 -8
  203. package/dist/plugins/account/index.mjs +71 -35
  204. package/dist/plugins/account/index.mjs.map +1 -1
  205. package/dist/plugins/account/keypair.d.mts +8 -7
  206. package/dist/plugins/account/keypair.mjs +5 -18
  207. package/dist/plugins/account/keypair.mjs.map +1 -1
  208. package/dist/plugins/account/lease.mjs.map +1 -1
  209. package/dist/plugins/account/registry.d.mts +1 -46
  210. package/dist/plugins/account/registry.mjs.map +1 -1
  211. package/dist/plugins/account/service.d.mts +43 -34
  212. package/dist/plugins/account/service.mjs +9 -54
  213. package/dist/plugins/account/service.mjs.map +1 -1
  214. package/dist/plugins/account/snapshot.mjs.map +1 -1
  215. package/dist/plugins/account/variants/ephemeral.mjs.map +1 -1
  216. package/dist/plugins/account/variants/impersonate.mjs.map +1 -1
  217. package/dist/plugins/account/variants/signer.mjs.map +1 -1
  218. package/dist/plugins/action/discriminator.mjs.map +1 -1
  219. package/dist/plugins/action/errors.mjs +1 -4
  220. package/dist/plugins/action/errors.mjs.map +1 -1
  221. package/dist/plugins/action/execute.mjs +3 -4
  222. package/dist/plugins/action/execute.mjs.map +1 -1
  223. package/dist/plugins/action/index.d.mts +2 -2
  224. package/dist/plugins/action/index.mjs +7 -11
  225. package/dist/plugins/action/index.mjs.map +1 -1
  226. package/dist/plugins/action/service.d.mts +5 -7
  227. package/dist/plugins/action/service.mjs +2 -16
  228. package/dist/plugins/action/service.mjs.map +1 -1
  229. package/dist/plugins/coin/address-resolution.mjs.map +1 -1
  230. package/dist/plugins/coin/codegen.mjs +97 -16
  231. package/dist/plugins/coin/codegen.mjs.map +1 -1
  232. package/dist/plugins/coin/discovery.mjs.map +1 -1
  233. package/dist/plugins/coin/errors.mjs +1 -4
  234. package/dist/plugins/coin/errors.mjs.map +1 -1
  235. package/dist/plugins/coin/index.d.mts +4 -34
  236. package/dist/plugins/coin/index.mjs +47 -28
  237. package/dist/plugins/coin/index.mjs.map +1 -1
  238. package/dist/plugins/coin/metadata.d.mts +1 -0
  239. package/dist/plugins/coin/metadata.mjs +8 -9
  240. package/dist/plugins/coin/metadata.mjs.map +1 -1
  241. package/dist/plugins/coin/mint.mjs +7 -21
  242. package/dist/plugins/coin/mint.mjs.map +1 -1
  243. package/dist/plugins/coin/registry.mjs +33 -20
  244. package/dist/plugins/coin/registry.mjs.map +1 -1
  245. package/dist/plugins/coin/service.d.mts +1 -1
  246. package/dist/plugins/coin/service.mjs +1 -8
  247. package/dist/plugins/coin/service.mjs.map +1 -1
  248. package/dist/plugins/coin/snapshot.mjs.map +1 -1
  249. package/dist/plugins/coin/type-strings.mjs.map +1 -1
  250. package/dist/plugins/dashboard/domain.mjs +106 -167
  251. package/dist/plugins/dashboard/domain.mjs.map +1 -1
  252. package/dist/plugins/dashboard/index.mjs +13 -13
  253. package/dist/plugins/dashboard/index.mjs.map +1 -1
  254. package/dist/plugins/dashboard/origin-policy.mjs +3 -3
  255. package/dist/plugins/dashboard/origin-policy.mjs.map +1 -1
  256. package/dist/plugins/dashboard/routable.mjs.map +1 -1
  257. package/dist/plugins/dashboard/schema/builder.mjs.map +1 -1
  258. package/dist/plugins/dashboard/schema/enums.mjs.map +1 -1
  259. package/dist/plugins/dashboard/schema/root.mjs +23 -44
  260. package/dist/plugins/dashboard/schema/root.mjs.map +1 -1
  261. package/dist/plugins/dashboard/schema/types.mjs +37 -91
  262. package/dist/plugins/dashboard/schema/types.mjs.map +1 -1
  263. package/dist/plugins/dashboard/schema.mjs.map +1 -1
  264. package/dist/plugins/dashboard/server.mjs.map +1 -1
  265. package/dist/plugins/deepbook/codegen.d.mts +12 -11
  266. package/dist/plugins/deepbook/codegen.mjs +108 -11
  267. package/dist/plugins/deepbook/codegen.mjs.map +1 -1
  268. package/dist/plugins/deepbook/deploy.mjs +7 -14
  269. package/dist/plugins/deepbook/deploy.mjs.map +1 -1
  270. package/dist/plugins/deepbook/errors.mjs +4 -2
  271. package/dist/plugins/deepbook/errors.mjs.map +1 -1
  272. package/dist/plugins/deepbook/faucet-strategy.mjs +4 -10
  273. package/dist/plugins/deepbook/faucet-strategy.mjs.map +1 -1
  274. package/dist/plugins/deepbook/hash.mjs.map +1 -1
  275. package/dist/plugins/deepbook/index.d.mts +38 -34
  276. package/dist/plugins/deepbook/index.mjs +133 -64
  277. package/dist/plugins/deepbook/index.mjs.map +1 -1
  278. package/dist/plugins/deepbook/plugin-key.mjs.map +1 -1
  279. package/dist/plugins/deepbook/pyth/index.mjs +4 -8
  280. package/dist/plugins/deepbook/pyth/index.mjs.map +1 -1
  281. package/dist/plugins/deepbook/snapshot.mjs +0 -1
  282. package/dist/plugins/deepbook/snapshot.mjs.map +1 -1
  283. package/dist/plugins/deepbook/type-strings.mjs.map +1 -1
  284. package/dist/plugins/deepbook/types.d.mts +2 -1
  285. package/dist/plugins/deepbook/types.mjs.map +1 -1
  286. package/dist/plugins/faucet/dispatcher.d.mts +3 -3
  287. package/dist/plugins/faucet/dispatcher.mjs.map +1 -1
  288. package/dist/plugins/faucet/errors.mjs.map +1 -1
  289. package/dist/plugins/faucet/http.mjs +2 -10
  290. package/dist/plugins/faucet/http.mjs.map +1 -1
  291. package/dist/plugins/faucet/index.mjs +0 -1
  292. package/dist/plugins/faucet/index.mjs.map +1 -1
  293. package/dist/plugins/host-service/errors.d.mts +1 -3
  294. package/dist/plugins/host-service/errors.mjs +1 -2
  295. package/dist/plugins/host-service/errors.mjs.map +1 -1
  296. package/dist/plugins/host-service/index.d.mts +1 -2
  297. package/dist/plugins/host-service/index.mjs +11 -11
  298. package/dist/plugins/host-service/index.mjs.map +1 -1
  299. package/dist/plugins/host-service/routable.mjs.map +1 -1
  300. package/dist/plugins/host-service/service.mjs +13 -13
  301. package/dist/plugins/host-service/service.mjs.map +1 -1
  302. package/dist/plugins/internal/acquire-on-chain-artifact.mjs.map +1 -1
  303. package/dist/plugins/internal/codegen-helpers.mjs +2 -0
  304. package/dist/plugins/internal/codegen-helpers.mjs.map +1 -1
  305. package/dist/plugins/internal/funding-failure-error.mjs.map +1 -1
  306. package/dist/plugins/{postgres → internal/postgres-sidecar}/connection.mjs +1 -1
  307. package/dist/plugins/internal/postgres-sidecar/connection.mjs.map +1 -0
  308. package/dist/plugins/{postgres → internal/postgres-sidecar}/db-ensure.mjs +30 -16
  309. package/dist/plugins/internal/postgres-sidecar/db-ensure.mjs.map +1 -0
  310. package/dist/plugins/internal/postgres-sidecar/errors.mjs +21 -0
  311. package/dist/plugins/internal/postgres-sidecar/errors.mjs.map +1 -0
  312. package/dist/{substrate/runtime/scoped-multimap → plugins/internal/postgres-sidecar}/index.mjs +1 -0
  313. package/dist/plugins/internal/postgres-sidecar/service.mjs +121 -0
  314. package/dist/plugins/internal/postgres-sidecar/service.mjs.map +1 -0
  315. package/dist/plugins/package/build.mjs +2 -2
  316. package/dist/plugins/package/build.mjs.map +1 -1
  317. package/dist/plugins/package/codegen.d.mts +7 -14
  318. package/dist/plugins/package/codegen.mjs +187 -59
  319. package/dist/plugins/package/codegen.mjs.map +1 -1
  320. package/dist/plugins/package/dep-resolution.mjs +51 -3
  321. package/dist/plugins/package/dep-resolution.mjs.map +1 -1
  322. package/dist/plugins/package/errors.mjs +1 -4
  323. package/dist/plugins/package/errors.mjs.map +1 -1
  324. package/dist/plugins/package/git-source.d.mts +18 -0
  325. package/dist/plugins/package/git-source.mjs +119 -0
  326. package/dist/plugins/package/git-source.mjs.map +1 -0
  327. package/dist/plugins/package/index.d.mts +28 -19
  328. package/dist/plugins/package/index.mjs +107 -32
  329. package/dist/plugins/package/index.mjs.map +1 -1
  330. package/dist/plugins/package/mode-known.mjs +2 -2
  331. package/dist/plugins/package/mode-known.mjs.map +1 -1
  332. package/dist/plugins/package/mode-local.mjs +18 -35
  333. package/dist/plugins/package/mode-local.mjs.map +1 -1
  334. package/dist/plugins/package/publish-executor.mjs +13 -8
  335. package/dist/plugins/package/publish-executor.mjs.map +1 -1
  336. package/dist/plugins/package/publish-output.d.mts +1 -11
  337. package/dist/plugins/package/publish-output.mjs +1 -9
  338. package/dist/plugins/package/publish-output.mjs.map +1 -1
  339. package/dist/plugins/package/registry.d.mts +1 -1
  340. package/dist/plugins/package/registry.mjs +26 -14
  341. package/dist/plugins/package/registry.mjs.map +1 -1
  342. package/dist/plugins/package/service.mjs.map +1 -1
  343. package/dist/plugins/package/snapshot.mjs.map +1 -1
  344. package/dist/plugins/router-entrypoints.mjs +1 -3
  345. package/dist/plugins/router-entrypoints.mjs.map +1 -1
  346. package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs +1 -2
  347. package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs.map +1 -1
  348. package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs +1 -6
  349. package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs.map +1 -1
  350. package/dist/plugins/seal/codegen.d.mts +1 -5
  351. package/dist/plugins/seal/codegen.mjs +83 -12
  352. package/dist/plugins/seal/codegen.mjs.map +1 -1
  353. package/dist/plugins/seal/config-render.mjs +2 -6
  354. package/dist/plugins/seal/config-render.mjs.map +1 -1
  355. package/dist/plugins/seal/deploy.mjs +18 -29
  356. package/dist/plugins/seal/deploy.mjs.map +1 -1
  357. package/dist/plugins/seal/errors.d.mts +4 -5
  358. package/dist/plugins/seal/errors.mjs +1 -8
  359. package/dist/plugins/seal/errors.mjs.map +1 -1
  360. package/dist/plugins/seal/index.d.mts +7 -28
  361. package/dist/plugins/seal/index.mjs +69 -47
  362. package/dist/plugins/seal/index.mjs.map +1 -1
  363. package/dist/plugins/seal/key-manager.mjs.map +1 -1
  364. package/dist/plugins/seal/key-server.mjs +1 -6
  365. package/dist/plugins/seal/key-server.mjs.map +1 -1
  366. package/dist/plugins/seal/keygen.mjs +2 -3
  367. package/dist/plugins/seal/keygen.mjs.map +1 -1
  368. package/dist/plugins/seal/mode/fork-known.mjs.map +1 -1
  369. package/dist/plugins/seal/mode/live.mjs +1 -1
  370. package/dist/plugins/seal/mode/live.mjs.map +1 -1
  371. package/dist/plugins/seal/mode/local-keygen.mjs +4 -10
  372. package/dist/plugins/seal/mode/local-keygen.mjs.map +1 -1
  373. package/dist/plugins/seal/plugin-key.mjs.map +1 -1
  374. package/dist/plugins/seal/registry-publish.mjs.map +1 -1
  375. package/dist/plugins/seal/routable.mjs.map +1 -1
  376. package/dist/plugins/seal/service.mjs.map +1 -1
  377. package/dist/plugins/seal/snapshot.mjs +1 -2
  378. package/dist/plugins/seal/snapshot.mjs.map +1 -1
  379. package/dist/plugins/sui/auto-tick.mjs +5 -5
  380. package/dist/plugins/sui/auto-tick.mjs.map +1 -1
  381. package/dist/plugins/sui/chain-build-container.mjs +2 -2
  382. package/dist/plugins/sui/chain-build-container.mjs.map +1 -1
  383. package/dist/plugins/sui/chain-probe.mjs +4 -4
  384. package/dist/plugins/sui/chain-probe.mjs.map +1 -1
  385. package/dist/plugins/sui/codegen.d.mts +9 -7
  386. package/dist/plugins/sui/codegen.mjs +49 -46
  387. package/dist/plugins/sui/codegen.mjs.map +1 -1
  388. package/dist/plugins/sui/errors.d.mts +1 -1
  389. package/dist/plugins/sui/errors.mjs +1 -9
  390. package/dist/plugins/sui/errors.mjs.map +1 -1
  391. package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/index.d.mts +1 -1
  392. package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/index.mjs +3 -7
  393. package/dist/plugins/sui/exec/index.mjs.map +1 -0
  394. package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/sign-and-dispatch.mjs +1 -1
  395. package/dist/plugins/sui/exec/sign-and-dispatch.mjs.map +1 -0
  396. package/dist/plugins/sui/fork-faucet-strategy.mjs +2 -6
  397. package/dist/plugins/sui/fork-faucet-strategy.mjs.map +1 -1
  398. package/dist/plugins/sui/fork-orchestration.mjs +13 -23
  399. package/dist/plugins/sui/fork-orchestration.mjs.map +1 -1
  400. package/dist/plugins/sui/fork-transaction.mjs.map +1 -1
  401. package/dist/plugins/sui/index.d.mts +34 -83
  402. package/dist/plugins/sui/index.mjs +200 -68
  403. package/dist/plugins/sui/index.mjs.map +1 -1
  404. package/dist/{substrate/runtime/sui-ledger → plugins/sui/ledger}/object-ref.mjs +1 -1
  405. package/dist/plugins/sui/ledger/object-ref.mjs.map +1 -0
  406. package/dist/plugins/sui/local-faucet-strategy.mjs +1 -5
  407. package/dist/plugins/sui/local-faucet-strategy.mjs.map +1 -1
  408. package/dist/plugins/sui/log-attrs.mjs +11 -0
  409. package/dist/plugins/sui/log-attrs.mjs.map +1 -0
  410. package/dist/plugins/sui/mode/external.mjs +4 -12
  411. package/dist/plugins/sui/mode/external.mjs.map +1 -1
  412. package/dist/plugins/sui/mode/fork.mjs +19 -16
  413. package/dist/plugins/sui/mode/fork.mjs.map +1 -1
  414. package/dist/plugins/sui/mode/live.mjs +4 -17
  415. package/dist/plugins/sui/mode/live.mjs.map +1 -1
  416. package/dist/plugins/sui/mode/local.d.mts +1 -0
  417. package/dist/plugins/sui/mode/local.mjs +203 -61
  418. package/dist/plugins/sui/mode/local.mjs.map +1 -1
  419. package/dist/plugins/sui/mode/shared-boot.mjs +18 -23
  420. package/dist/plugins/sui/mode/shared-boot.mjs.map +1 -1
  421. package/dist/plugins/sui/mode/shared.d.mts +6 -7
  422. package/dist/plugins/sui/mode/shared.mjs.map +1 -1
  423. package/dist/plugins/sui/mode/spec.d.mts +23 -6
  424. package/dist/{substrate/runtime/sui-move-build → plugins/sui/move}/index.mjs +28 -30
  425. package/dist/plugins/sui/move/index.mjs.map +1 -0
  426. package/dist/plugins/sui/move-summary-runner.mjs +8 -4
  427. package/dist/plugins/sui/move-summary-runner.mjs.map +1 -1
  428. package/dist/{substrate/network.d.mts → plugins/sui/network-config.d.mts} +11 -10
  429. package/dist/plugins/sui/network-resolver.d.mts +6 -6
  430. package/dist/plugins/sui/routable.mjs.map +1 -1
  431. package/dist/plugins/sui/service.mjs +10 -6
  432. package/dist/plugins/sui/service.mjs.map +1 -1
  433. package/dist/plugins/sui/snapshot.mjs +10 -5
  434. package/dist/plugins/sui/snapshot.mjs.map +1 -1
  435. package/dist/plugins/wallet/codegen.d.mts +8 -6
  436. package/dist/plugins/wallet/codegen.mjs +4 -10
  437. package/dist/plugins/wallet/codegen.mjs.map +1 -1
  438. package/dist/plugins/wallet/errors.mjs +1 -4
  439. package/dist/plugins/wallet/errors.mjs.map +1 -1
  440. package/dist/plugins/wallet/index.d.mts +3 -6
  441. package/dist/plugins/wallet/index.mjs +16 -21
  442. package/dist/plugins/wallet/index.mjs.map +1 -1
  443. package/dist/plugins/wallet/origin-policy.mjs +3 -3
  444. package/dist/plugins/wallet/origin-policy.mjs.map +1 -1
  445. package/dist/plugins/wallet/pairing.mjs +6 -24
  446. package/dist/plugins/wallet/pairing.mjs.map +1 -1
  447. package/dist/plugins/wallet/protocol.mjs.map +1 -1
  448. package/dist/plugins/wallet/routable.mjs.map +1 -1
  449. package/dist/plugins/wallet/server.mjs +17 -24
  450. package/dist/plugins/wallet/server.mjs.map +1 -1
  451. package/dist/plugins/wallet/service.d.mts +2 -2
  452. package/dist/plugins/wallet/service.mjs +4 -15
  453. package/dist/plugins/wallet/service.mjs.map +1 -1
  454. package/dist/plugins/wallet/snapshot.mjs.map +1 -1
  455. package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs +1 -5
  456. package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs.map +1 -1
  457. package/dist/plugins/walrus/codegen.d.mts +2 -13
  458. package/dist/plugins/walrus/codegen.mjs +93 -28
  459. package/dist/plugins/walrus/codegen.mjs.map +1 -1
  460. package/dist/plugins/walrus/deploy-paths.mjs +2 -3
  461. package/dist/plugins/walrus/deploy-paths.mjs.map +1 -1
  462. package/dist/plugins/walrus/deploy.mjs +26 -19
  463. package/dist/plugins/walrus/deploy.mjs.map +1 -1
  464. package/dist/plugins/walrus/errors.mjs +1 -8
  465. package/dist/plugins/walrus/errors.mjs.map +1 -1
  466. package/dist/plugins/walrus/faucet-strategy.mjs +15 -1
  467. package/dist/plugins/walrus/faucet-strategy.mjs.map +1 -1
  468. package/dist/plugins/walrus/index.d.mts +13 -44
  469. package/dist/plugins/walrus/index.mjs +119 -122
  470. package/dist/plugins/walrus/index.mjs.map +1 -1
  471. package/dist/plugins/walrus/mode/known-deploy.mjs +6 -6
  472. package/dist/plugins/walrus/mode/known-deploy.mjs.map +1 -1
  473. package/dist/plugins/walrus/mode/local-cluster.d.mts +2 -2
  474. package/dist/plugins/walrus/mode/local-cluster.mjs +2 -10
  475. package/dist/plugins/walrus/mode/local-cluster.mjs.map +1 -1
  476. package/dist/plugins/walrus/plugin-key.mjs.map +1 -1
  477. package/dist/plugins/walrus/registry-publish.mjs.map +1 -1
  478. package/dist/plugins/walrus/routable.mjs.map +1 -1
  479. package/dist/plugins/walrus/service.mjs.map +1 -1
  480. package/dist/plugins/walrus/snapshot.mjs +3 -3
  481. package/dist/plugins/walrus/snapshot.mjs.map +1 -1
  482. package/dist/plugins/walrus/storage-nodes.mjs +53 -14
  483. package/dist/plugins/walrus/storage-nodes.mjs.map +1 -1
  484. package/dist/plugins/walrus/wal-swap.mjs +4 -8
  485. package/dist/plugins/walrus/wal-swap.mjs.map +1 -1
  486. package/dist/primitives/artifact-publisher.mjs.map +1 -1
  487. package/dist/primitives/cache.d.mts +1 -1
  488. package/dist/runtime/docker/client.mjs +47 -3
  489. package/dist/runtime/docker/client.mjs.map +1 -1
  490. package/dist/runtime/docker/container.mjs +37 -57
  491. package/dist/runtime/docker/container.mjs.map +1 -1
  492. package/dist/runtime/docker/errors.mjs.map +1 -1
  493. package/dist/runtime/docker/exec.mjs +2 -2
  494. package/dist/runtime/docker/exec.mjs.map +1 -1
  495. package/dist/runtime/docker/image.mjs +10 -11
  496. package/dist/runtime/docker/image.mjs.map +1 -1
  497. package/dist/runtime/docker/index.mjs +0 -1
  498. package/dist/runtime/docker/inspect-and-decode.mjs.map +1 -1
  499. package/dist/runtime/docker/inventory.mjs +9 -9
  500. package/dist/runtime/docker/inventory.mjs.map +1 -1
  501. package/dist/runtime/docker/labels.mjs +12 -1
  502. package/dist/runtime/docker/labels.mjs.map +1 -1
  503. package/dist/runtime/docker/network.mjs +6 -6
  504. package/dist/runtime/docker/network.mjs.map +1 -1
  505. package/dist/runtime/docker/render-run-args.mjs.map +1 -1
  506. package/dist/runtime/docker/service.mjs +31 -45
  507. package/dist/runtime/docker/service.mjs.map +1 -1
  508. package/dist/runtime/docker/sweep.mjs +14 -64
  509. package/dist/runtime/docker/sweep.mjs.map +1 -1
  510. package/dist/runtime/docker/volume.mjs +1 -1
  511. package/dist/runtime/docker/volume.mjs.map +1 -1
  512. package/dist/runtime/docker/wrap.mjs +14 -2
  513. package/dist/runtime/docker/wrap.mjs.map +1 -1
  514. package/dist/substrate/brand.d.mts +2 -5
  515. package/dist/substrate/brand.mjs +3 -2
  516. package/dist/substrate/brand.mjs.map +1 -1
  517. package/dist/substrate/cross-process.mjs +2 -16
  518. package/dist/substrate/cross-process.mjs.map +1 -1
  519. package/dist/substrate/event-time.mjs +0 -2
  520. package/dist/substrate/event-time.mjs.map +1 -1
  521. package/dist/substrate/events.d.mts +46 -16
  522. package/dist/substrate/identity.d.mts +11 -5
  523. package/dist/substrate/manifest.d.mts +33 -26
  524. package/dist/substrate/manifest.mjs +8 -3
  525. package/dist/substrate/manifest.mjs.map +1 -1
  526. package/dist/substrate/options.d.mts +33 -4
  527. package/dist/substrate/plugin-ctx.d.mts +70 -0
  528. package/dist/substrate/plugin-ctx.mjs +66 -0
  529. package/dist/substrate/plugin-ctx.mjs.map +1 -0
  530. package/dist/substrate/plugin.d.mts +46 -38
  531. package/dist/substrate/plugin.mjs +13 -9
  532. package/dist/substrate/plugin.mjs.map +1 -1
  533. package/dist/substrate/projection.d.mts +1 -1
  534. package/dist/substrate/runtime/atomic-write.mjs +3 -4
  535. package/dist/substrate/runtime/atomic-write.mjs.map +1 -1
  536. package/dist/substrate/runtime/cache/schema.mjs.map +1 -1
  537. package/dist/substrate/runtime/cache/service.mjs +50 -20
  538. package/dist/substrate/runtime/cache/service.mjs.map +1 -1
  539. package/dist/substrate/runtime/config-validation.mjs.map +1 -1
  540. package/dist/substrate/runtime/control-plane/domain.mjs +34 -12
  541. package/dist/substrate/runtime/control-plane/domain.mjs.map +1 -1
  542. package/dist/substrate/runtime/control-plane/service.mjs.map +1 -1
  543. package/dist/substrate/runtime/cross-process/command-channel/channel.mjs +14 -17
  544. package/dist/substrate/runtime/cross-process/command-channel/channel.mjs.map +1 -1
  545. package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs.map +1 -1
  546. package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs.map +1 -1
  547. package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs.map +1 -1
  548. package/dist/substrate/runtime/cross-process/index.mjs +0 -2
  549. package/dist/substrate/runtime/cross-process/live-clock.mjs +1 -1
  550. package/dist/substrate/runtime/cross-process/live-clock.mjs.map +1 -1
  551. package/dist/substrate/runtime/cross-process/liveness.mjs +11 -18
  552. package/dist/substrate/runtime/cross-process/liveness.mjs.map +1 -1
  553. package/dist/substrate/runtime/cross-process/reclaim-stale-file.mjs +2 -2
  554. package/dist/substrate/runtime/cross-process/reclaim-stale-file.mjs.map +1 -1
  555. package/dist/substrate/runtime/cross-process/roster.mjs +17 -127
  556. package/dist/substrate/runtime/cross-process/roster.mjs.map +1 -1
  557. package/dist/substrate/runtime/cross-process/self-pid.mjs.map +1 -1
  558. package/dist/substrate/runtime/cross-process/stack-lock.mjs +29 -28
  559. package/dist/substrate/runtime/cross-process/stack-lock.mjs.map +1 -1
  560. package/dist/substrate/runtime/current-plugin.mjs.map +1 -1
  561. package/dist/substrate/runtime/errors.mjs +1 -13
  562. package/dist/substrate/runtime/errors.mjs.map +1 -1
  563. package/dist/substrate/runtime/format-unknown-error.mjs.map +1 -1
  564. package/dist/substrate/runtime/host-bind-mount-owner.mjs.map +1 -1
  565. package/dist/substrate/runtime/host-gateway.mjs.map +1 -1
  566. package/dist/substrate/runtime/host-tree-tar/index.mjs +15 -163
  567. package/dist/substrate/runtime/host-tree-tar/index.mjs.map +1 -1
  568. package/dist/substrate/runtime/http-probe.d.mts +1 -3
  569. package/dist/substrate/runtime/http-probe.mjs.map +1 -1
  570. package/dist/substrate/runtime/index.mjs +1 -6
  571. package/dist/substrate/runtime/lease-broker/service.mjs +5 -23
  572. package/dist/substrate/runtime/lease-broker/service.mjs.map +1 -1
  573. package/dist/substrate/runtime/lifecycle/dep-graph.mjs +3 -3
  574. package/dist/substrate/runtime/lifecycle/dep-graph.mjs.map +1 -1
  575. package/dist/substrate/runtime/lifecycle/graph-input-id.d.mts +1 -0
  576. package/dist/substrate/runtime/lifecycle/graph-input-id.mjs +133 -0
  577. package/dist/substrate/runtime/lifecycle/graph-input-id.mjs.map +1 -0
  578. package/dist/substrate/runtime/lifecycle/index.mjs +2 -2
  579. package/dist/substrate/runtime/lifecycle/plugin-registry.d.mts +1 -1
  580. package/dist/substrate/runtime/lifecycle/plugin-registry.mjs +22 -1
  581. package/dist/substrate/runtime/lifecycle/plugin-registry.mjs.map +1 -1
  582. package/dist/substrate/runtime/lifecycle/ready-gate.mjs +2 -15
  583. package/dist/substrate/runtime/lifecycle/ready-gate.mjs.map +1 -1
  584. package/dist/substrate/runtime/lifecycle/selective-restart.mjs +29 -25
  585. package/dist/substrate/runtime/lifecycle/selective-restart.mjs.map +1 -1
  586. package/dist/substrate/runtime/lifecycle/signals.mjs +1 -1
  587. package/dist/substrate/runtime/lifecycle/signals.mjs.map +1 -1
  588. package/dist/substrate/runtime/lifecycle/state-machine.mjs.map +1 -1
  589. package/dist/substrate/runtime/lifecycle/watch-attribution.d.mts +1 -1
  590. package/dist/substrate/runtime/lifecycle/watch-attribution.mjs +0 -1
  591. package/dist/substrate/runtime/lifecycle/watch-attribution.mjs.map +1 -1
  592. package/dist/substrate/runtime/managed-container.d.mts +5 -1
  593. package/dist/substrate/runtime/managed-container.mjs +8 -10
  594. package/dist/substrate/runtime/managed-container.mjs.map +1 -1
  595. package/dist/substrate/runtime/manifest/manifest.mjs +8 -30
  596. package/dist/substrate/runtime/manifest/manifest.mjs.map +1 -1
  597. package/dist/substrate/runtime/mode-errors.d.mts +1 -2
  598. package/dist/substrate/runtime/mode-errors.mjs.map +1 -1
  599. package/dist/substrate/runtime/observability/cascade-formatter.mjs +1 -11
  600. package/dist/substrate/runtime/observability/cascade-formatter.mjs.map +1 -1
  601. package/dist/substrate/runtime/observability/ignore-with-log.mjs.map +1 -1
  602. package/dist/substrate/runtime/observability/index.d.mts +1 -1
  603. package/dist/substrate/runtime/observability/index.mjs +4 -6
  604. package/dist/substrate/runtime/observability/log-attrs.mjs +46 -0
  605. package/dist/substrate/runtime/observability/log-attrs.mjs.map +1 -0
  606. package/dist/substrate/runtime/observability/log-store.mjs.map +1 -1
  607. package/dist/substrate/runtime/observability/logger.mjs +3 -3
  608. package/dist/substrate/runtime/observability/logger.mjs.map +1 -1
  609. package/dist/substrate/runtime/observability/output-truncate.mjs.map +1 -1
  610. package/dist/substrate/runtime/observability/pretty-error.mjs.map +1 -1
  611. package/dist/substrate/runtime/observability/process-lines.mjs.map +1 -1
  612. package/dist/substrate/runtime/observability/redaction.mjs.map +1 -1
  613. package/dist/substrate/runtime/observability/subprocess-capture.mjs +2 -2
  614. package/dist/substrate/runtime/observability/subprocess-capture.mjs.map +1 -1
  615. package/dist/substrate/runtime/passthrough-or-wrap.mjs.map +1 -1
  616. package/dist/substrate/runtime/paths.mjs +27 -9
  617. package/dist/substrate/runtime/paths.mjs.map +1 -1
  618. package/dist/substrate/runtime/phase-preserving-produce.mjs.map +1 -1
  619. package/dist/substrate/runtime/port-broker/service.mjs +10 -27
  620. package/dist/substrate/runtime/port-broker/service.mjs.map +1 -1
  621. package/dist/substrate/runtime/post-acquire-tasks.mjs.map +1 -1
  622. package/dist/substrate/runtime/probes.d.mts +2 -3
  623. package/dist/substrate/runtime/probes.mjs.map +1 -1
  624. package/dist/substrate/runtime/process-supervisor.mjs.map +1 -1
  625. package/dist/substrate/runtime/projection/operational-endpoints.mjs.map +1 -1
  626. package/dist/substrate/runtime/projection/state-ref.mjs.map +1 -1
  627. package/dist/substrate/runtime/projection/update.mjs +87 -11
  628. package/dist/substrate/runtime/projection/update.mjs.map +1 -1
  629. package/dist/substrate/runtime/random-suffix.mjs.map +1 -1
  630. package/dist/substrate/runtime/reconcile/fs-plan.mjs +146 -0
  631. package/dist/substrate/runtime/reconcile/fs-plan.mjs.map +1 -0
  632. package/dist/substrate/runtime/reconcile/graph.mjs +19 -0
  633. package/dist/substrate/runtime/reconcile/graph.mjs.map +1 -0
  634. package/dist/substrate/runtime/reconcile/index.mjs +5 -0
  635. package/dist/substrate/runtime/reconcile/label.mjs +41 -0
  636. package/dist/substrate/runtime/reconcile/label.mjs.map +1 -0
  637. package/dist/substrate/runtime/reconcile/spec.mjs +15 -0
  638. package/dist/substrate/runtime/reconcile/spec.mjs.map +1 -0
  639. package/dist/substrate/runtime/retry-policy.d.mts +2 -3
  640. package/dist/substrate/runtime/retry-policy.mjs.map +1 -1
  641. package/dist/substrate/runtime/routed-url.mjs.map +1 -1
  642. package/dist/substrate/runtime/runtime-decode.mjs.map +1 -1
  643. package/dist/substrate/runtime/scoped-http-server.mjs.map +1 -1
  644. package/dist/substrate/runtime/stage-and-swap/index.mjs +49 -12
  645. package/dist/substrate/runtime/stage-and-swap/index.mjs.map +1 -1
  646. package/dist/substrate/runtime/strategy-registry/chain-keyed-strategy-for.mjs.map +1 -1
  647. package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs.map +1 -1
  648. package/dist/substrate/runtime/strategy-registry/service.mjs +29 -17
  649. package/dist/substrate/runtime/strategy-registry/service.mjs.map +1 -1
  650. package/dist/substrate/runtime/subnet-broker.mjs.map +1 -1
  651. package/dist/substrate/runtime/supervisor/acquire-node.mjs +188 -56
  652. package/dist/substrate/runtime/supervisor/acquire-node.mjs.map +1 -1
  653. package/dist/substrate/runtime/supervisor/background-tasks.mjs +79 -65
  654. package/dist/substrate/runtime/supervisor/background-tasks.mjs.map +1 -1
  655. package/dist/substrate/runtime/supervisor/command-loop.mjs +82 -23
  656. package/dist/substrate/runtime/supervisor/command-loop.mjs.map +1 -1
  657. package/dist/substrate/runtime/supervisor/contribution-dispatcher.mjs +16 -0
  658. package/dist/substrate/runtime/supervisor/contribution-dispatcher.mjs.map +1 -0
  659. package/dist/substrate/runtime/supervisor/errors.mjs +11 -2
  660. package/dist/substrate/runtime/supervisor/errors.mjs.map +1 -1
  661. package/dist/substrate/runtime/supervisor/index.mjs +2 -0
  662. package/dist/substrate/runtime/supervisor/shutdown.mjs +6 -6
  663. package/dist/substrate/runtime/supervisor/shutdown.mjs.map +1 -1
  664. package/dist/substrate/runtime/supervisor/start-supervisor.mjs +60 -70
  665. package/dist/substrate/runtime/supervisor/start-supervisor.mjs.map +1 -1
  666. package/dist/substrate/runtime/supervisor/state.d.mts +1 -1
  667. package/dist/substrate/runtime/supervisor/state.mjs +1 -1
  668. package/dist/substrate/runtime/supervisor/state.mjs.map +1 -1
  669. package/dist/substrate/runtime/supervisor/teardown.mjs +10 -9
  670. package/dist/substrate/runtime/supervisor/teardown.mjs.map +1 -1
  671. package/dist/substrate/runtime/supervisor/wiring.mjs +6 -20
  672. package/dist/substrate/runtime/supervisor/wiring.mjs.map +1 -1
  673. package/dist/substrate/runtime/tar/reader.mjs +216 -0
  674. package/dist/substrate/runtime/tar/reader.mjs.map +1 -0
  675. package/dist/substrate/runtime/typed-env.mjs.map +1 -1
  676. package/dist/substrate/versioned-doc-schema.mjs.map +1 -1
  677. package/dist/substrate/versioned-doc-sync.mjs +5 -5
  678. package/dist/substrate/versioned-doc-sync.mjs.map +1 -1
  679. package/dist/surfaces/cli/command-tree.mjs +49 -7
  680. package/dist/surfaces/cli/command-tree.mjs.map +1 -1
  681. package/dist/surfaces/cli/commands/config.mjs +1 -1
  682. package/dist/surfaces/cli/commands/config.mjs.map +1 -1
  683. package/dist/surfaces/cli/commands/confirm-node.mjs.map +1 -1
  684. package/dist/surfaces/cli/commands/confirm.mjs.map +1 -1
  685. package/dist/surfaces/cli/commands/doctor.mjs +1 -1
  686. package/dist/surfaces/cli/commands/doctor.mjs.map +1 -1
  687. package/dist/surfaces/cli/commands/prune-picker-entry.mjs.map +1 -1
  688. package/dist/surfaces/cli/commands/prune-picker.mjs.map +1 -1
  689. package/dist/surfaces/cli/commands/prune.mjs +1 -1
  690. package/dist/surfaces/cli/commands/prune.mjs.map +1 -1
  691. package/dist/surfaces/cli/commands/snapshot.mjs +1 -1
  692. package/dist/surfaces/cli/commands/snapshot.mjs.map +1 -1
  693. package/dist/surfaces/cli/commands/status.mjs +1 -1
  694. package/dist/surfaces/cli/commands/status.mjs.map +1 -1
  695. package/dist/surfaces/cli/commands/supervisor-presence.mjs.map +1 -1
  696. package/dist/surfaces/cli/commands/wipe.mjs +3 -4
  697. package/dist/surfaces/cli/commands/wipe.mjs.map +1 -1
  698. package/dist/surfaces/cli/envelope.mjs.map +1 -1
  699. package/dist/surfaces/cli/errors.mjs.map +1 -1
  700. package/dist/surfaces/cli/flags.mjs.map +1 -1
  701. package/dist/surfaces/cli/index.mjs +45 -14
  702. package/dist/surfaces/cli/index.mjs.map +1 -1
  703. package/dist/surfaces/cli/output.mjs.map +1 -1
  704. package/dist/surfaces/cli/sysexits.mjs.map +1 -1
  705. package/dist/surfaces/tui/app.mjs +0 -21
  706. package/dist/surfaces/tui/app.mjs.map +1 -1
  707. package/dist/surfaces/tui/dashboard.mjs +0 -48
  708. package/dist/surfaces/tui/dashboard.mjs.map +1 -1
  709. package/dist/surfaces/tui/display-derivation.mjs +80 -16
  710. package/dist/surfaces/tui/display-derivation.mjs.map +1 -1
  711. package/dist/surfaces/tui/errors.mjs.map +1 -1
  712. package/dist/surfaces/tui/event-log.mjs +0 -9
  713. package/dist/surfaces/tui/event-log.mjs.map +1 -1
  714. package/dist/surfaces/tui/heartbeat.mjs.map +1 -1
  715. package/dist/surfaces/tui/index.mjs +2 -2
  716. package/dist/surfaces/tui/index.mjs.map +1 -1
  717. package/dist/surfaces/tui/input.mjs.map +1 -1
  718. package/dist/surfaces/tui/mode-detect.mjs.map +1 -1
  719. package/dist/surfaces/tui/mount-ink.mjs.map +1 -1
  720. package/dist/surfaces/tui/plain-renderer.mjs +26 -19
  721. package/dist/surfaces/tui/plain-renderer.mjs.map +1 -1
  722. package/dist/surfaces/tui/resource-table.mjs +8 -10
  723. package/dist/surfaces/tui/resource-table.mjs.map +1 -1
  724. package/images/postgres/Dockerfile +0 -1
  725. package/images/sui/Dockerfile +27 -54
  726. package/images/sui/entrypoint.sh +17 -179
  727. package/package.json +23 -15
  728. package/dashboard-ui/assets/index-Bmi1UtAg.js +0 -1356
  729. package/dashboard-ui/assets/index-D5EShVt4.js +0 -3
  730. package/dashboard-ui/assets/index-Deml9drg.css +0 -1
  731. package/dist/api/plugin-errors.d.mts +0 -7
  732. package/dist/api/plugin-errors.mjs +0 -10
  733. package/dist/api/plugin-errors.mjs.map +0 -1
  734. package/dist/cli/wirings/build-verb-layers.mjs +0 -42
  735. package/dist/cli/wirings/build-verb-layers.mjs.map +0 -1
  736. package/dist/contracts/capability-decl.d.mts +0 -40
  737. package/dist/orchestrators/built-in-plugin-layers.mjs +0 -54
  738. package/dist/orchestrators/built-in-plugin-layers.mjs.map +0 -1
  739. package/dist/orchestrators/run.mjs +0 -91
  740. package/dist/orchestrators/run.mjs.map +0 -1
  741. package/dist/orchestrators/runtime-composition.d.mts +0 -10
  742. package/dist/orchestrators/runtime-composition.mjs +0 -252
  743. package/dist/orchestrators/runtime-composition.mjs.map +0 -1
  744. package/dist/orchestrators/snapshot/capture-command.d.mts +0 -1
  745. package/dist/orchestrators/snapshot/capture-command.mjs +0 -25
  746. package/dist/orchestrators/snapshot/capture-command.mjs.map +0 -1
  747. package/dist/orchestrators/snapshot/pending-marker.mjs +0 -99
  748. package/dist/orchestrators/snapshot/pending-marker.mjs.map +0 -1
  749. package/dist/orchestrators/snapshot/recover-pending.mjs +0 -223
  750. package/dist/orchestrators/snapshot/recover-pending.mjs.map +0 -1
  751. package/dist/orchestrators/snapshot/state-document.d.mts +0 -1
  752. package/dist/orchestrators/snapshot/state-document.mjs +0 -58
  753. package/dist/orchestrators/snapshot/state-document.mjs.map +0 -1
  754. package/dist/plugins/account/spans.mjs +0 -16
  755. package/dist/plugins/account/spans.mjs.map +0 -1
  756. package/dist/plugins/account/variants/env.mjs +0 -24
  757. package/dist/plugins/account/variants/env.mjs.map +0 -1
  758. package/dist/plugins/account/variants/inline.mjs +0 -13
  759. package/dist/plugins/account/variants/inline.mjs.map +0 -1
  760. package/dist/plugins/account/variants/keystore.mjs +0 -91
  761. package/dist/plugins/account/variants/keystore.mjs.map +0 -1
  762. package/dist/plugins/action/spans.mjs +0 -11
  763. package/dist/plugins/action/spans.mjs.map +0 -1
  764. package/dist/plugins/coin/spans.mjs +0 -20
  765. package/dist/plugins/coin/spans.mjs.map +0 -1
  766. package/dist/plugins/deepbook/spans.mjs +0 -18
  767. package/dist/plugins/deepbook/spans.mjs.map +0 -1
  768. package/dist/plugins/faucet/spans.mjs +0 -12
  769. package/dist/plugins/faucet/spans.mjs.map +0 -1
  770. package/dist/plugins/package/spans.mjs +0 -14
  771. package/dist/plugins/package/spans.mjs.map +0 -1
  772. package/dist/plugins/postgres/codegen.mjs +0 -42
  773. package/dist/plugins/postgres/codegen.mjs.map +0 -1
  774. package/dist/plugins/postgres/connection.d.mts +0 -33
  775. package/dist/plugins/postgres/connection.mjs.map +0 -1
  776. package/dist/plugins/postgres/db-ensure.mjs.map +0 -1
  777. package/dist/plugins/postgres/errors.d.mts +0 -60
  778. package/dist/plugins/postgres/errors.mjs +0 -29
  779. package/dist/plugins/postgres/errors.mjs.map +0 -1
  780. package/dist/plugins/postgres/index.d.mts +0 -37
  781. package/dist/plugins/postgres/index.mjs +0 -68
  782. package/dist/plugins/postgres/index.mjs.map +0 -1
  783. package/dist/plugins/postgres/routable.mjs +0 -33
  784. package/dist/plugins/postgres/routable.mjs.map +0 -1
  785. package/dist/plugins/postgres/service.d.mts +0 -50
  786. package/dist/plugins/postgres/service.mjs +0 -179
  787. package/dist/plugins/postgres/service.mjs.map +0 -1
  788. package/dist/plugins/postgres/snapshot.mjs +0 -32
  789. package/dist/plugins/postgres/snapshot.mjs.map +0 -1
  790. package/dist/plugins/postgres/spans.mjs +0 -11
  791. package/dist/plugins/postgres/spans.mjs.map +0 -1
  792. package/dist/plugins/seal/spans.mjs +0 -18
  793. package/dist/plugins/seal/spans.mjs.map +0 -1
  794. package/dist/plugins/sui/spans.mjs +0 -17
  795. package/dist/plugins/sui/spans.mjs.map +0 -1
  796. package/dist/plugins/wallet/spans.mjs +0 -22
  797. package/dist/plugins/wallet/spans.mjs.map +0 -1
  798. package/dist/plugins/walrus/registry-publish.d.mts +0 -24
  799. package/dist/plugins/walrus/spans.mjs +0 -18
  800. package/dist/plugins/walrus/spans.mjs.map +0 -1
  801. package/dist/runtime/docker/logs.d.mts +0 -1
  802. package/dist/runtime/docker/logs.mjs +0 -34
  803. package/dist/runtime/docker/logs.mjs.map +0 -1
  804. package/dist/substrate/runtime/artifact-publisher/index.mjs +0 -86
  805. package/dist/substrate/runtime/artifact-publisher/index.mjs.map +0 -1
  806. package/dist/substrate/runtime/capability-sinks/index.d.mts +0 -1
  807. package/dist/substrate/runtime/capability-sinks/index.mjs +0 -3
  808. package/dist/substrate/runtime/capability-sinks/layer.d.mts +0 -1
  809. package/dist/substrate/runtime/capability-sinks/layer.mjs +0 -31
  810. package/dist/substrate/runtime/capability-sinks/layer.mjs.map +0 -1
  811. package/dist/substrate/runtime/capability-sinks/service.d.mts +0 -95
  812. package/dist/substrate/runtime/capability-sinks/service.mjs +0 -69
  813. package/dist/substrate/runtime/capability-sinks/service.mjs.map +0 -1
  814. package/dist/substrate/runtime/cross-process/lock.d.mts +0 -1
  815. package/dist/substrate/runtime/cross-process/lock.mjs +0 -23
  816. package/dist/substrate/runtime/cross-process/lock.mjs.map +0 -1
  817. package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs +0 -113
  818. package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs.map +0 -1
  819. package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs +0 -31
  820. package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs.map +0 -1
  821. package/dist/substrate/runtime/observability/formatter-registry.d.mts +0 -1
  822. package/dist/substrate/runtime/observability/formatter-registry.mjs +0 -48
  823. package/dist/substrate/runtime/observability/formatter-registry.mjs.map +0 -1
  824. package/dist/substrate/runtime/observability/span-store.d.mts +0 -1
  825. package/dist/substrate/runtime/observability/span-store.mjs +0 -110
  826. package/dist/substrate/runtime/observability/span-store.mjs.map +0 -1
  827. package/dist/substrate/runtime/observability/spans.d.mts +0 -1
  828. package/dist/substrate/runtime/observability/spans.mjs +0 -87
  829. package/dist/substrate/runtime/observability/spans.mjs.map +0 -1
  830. package/dist/substrate/runtime/projection/index.mjs +0 -4
  831. package/dist/substrate/runtime/projection/persisted.mjs +0 -213
  832. package/dist/substrate/runtime/projection/persisted.mjs.map +0 -1
  833. package/dist/substrate/runtime/scoped-multimap/service.mjs +0 -52
  834. package/dist/substrate/runtime/scoped-multimap/service.mjs.map +0 -1
  835. package/dist/substrate/runtime/scoped-ref-map/index.mjs +0 -2
  836. package/dist/substrate/runtime/scoped-ref-map/service.mjs +0 -83
  837. package/dist/substrate/runtime/scoped-ref-map/service.mjs.map +0 -1
  838. package/dist/substrate/runtime/state-store/index.mjs +0 -3
  839. package/dist/substrate/runtime/state-store/schema.d.mts +0 -1
  840. package/dist/substrate/runtime/state-store/schema.mjs +0 -41
  841. package/dist/substrate/runtime/state-store/schema.mjs.map +0 -1
  842. package/dist/substrate/runtime/state-store/service.d.mts +0 -1
  843. package/dist/substrate/runtime/state-store/service.mjs +0 -145
  844. package/dist/substrate/runtime/state-store/service.mjs.map +0 -1
  845. package/dist/substrate/runtime/sui-execute/index.mjs.map +0 -1
  846. package/dist/substrate/runtime/sui-execute/sign-and-dispatch.mjs.map +0 -1
  847. package/dist/substrate/runtime/sui-ledger/object-ref.mjs.map +0 -1
  848. package/dist/substrate/runtime/sui-move-build/index.mjs.map +0 -1
  849. package/dist/substrate/runtime/supervisor/dispatch-contributions.mjs +0 -151
  850. package/dist/substrate/runtime/supervisor/dispatch-contributions.mjs.map +0 -1
  851. package/dist/substrate/state-store.d.mts +0 -1
  852. /package/dist/orchestrators/{snapshot/pending-marker.d.mts → codegen/id-config.d.mts} +0 -0
  853. /package/dist/orchestrators/snapshot/{recover-pending.d.mts → interrupted-restore.d.mts} +0 -0
  854. /package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/sign-and-dispatch.d.mts +0 -0
  855. /package/dist/plugins/{postgres/snapshot.d.mts → sui/ledger/object-ref.d.mts} +0 -0
  856. /package/dist/{substrate/runtime/sui-move-build → plugins/sui/move}/index.d.mts +0 -0
  857. /package/dist/substrate/runtime/{state-store/index.d.mts → reconcile/graph.d.mts} +0 -0
  858. /package/dist/substrate/runtime/{cross-process/snapshot-reservation.d.mts → supervisor/contribution-dispatcher.d.mts} +0 -0
@@ -76,6 +76,9 @@ interface EnsureContainerSpec {
76
76
  * with RocksDB/WAL-backed data should request enough time to flush
77
77
  * cleanly; the runtime default is 10 seconds. */
78
78
  readonly stopGraceSeconds?: number;
79
+ /** Optional signal for the scope finalizer's `docker stop` call.
80
+ * Omit to use Docker's image/default stop signal. */
81
+ readonly stopSignal?: string;
79
82
  /** How published host ports participate in existing-container
80
83
  * reconciliation. Default `exact` treats a binding mismatch as
81
84
  * config drift. `adopt-existing` lets a same-name, image-matching
@@ -154,6 +157,17 @@ interface ContainerHandle {
154
157
  readonly status: 'running' | 'exited' | 'paused' | 'created';
155
158
  readonly ips: ReadonlyArray<string>;
156
159
  readonly ports?: ReadonlyArray<ContainerPortPublish>;
160
+ /** The container's last recorded exit code, surfaced from
161
+ * `InspectFacts.exitCode` whenever Docker supplied a `State` (so a
162
+ * running container or one that exited cleanly reports `0`; only a
163
+ * container whose inspect omitted `State` entirely — an indeterminate
164
+ * lifecycle — leaves this absent). Lets callers distinguish a clean exit
165
+ * from a SIGKILL/OOM `137` — the only code the runtime's `decideRunAction`
166
+ * recreates an `on-failure` container on. Sui's indexer-db sidecar keys
167
+ * its `configHash` on `present + 137` (a validator crash-recreate ⇒
168
+ * re-genesis incoming) so it resets rather than resuming stale rows
169
+ * against a brand-new chain. */
170
+ readonly lastExitCode?: number;
157
171
  }
158
172
  /** Captured stdout/stderr/exit code from a one-shot `exec` invocation
159
173
  * inside a running container. */
@@ -193,10 +207,8 @@ interface ContainerRuntime {
193
207
  readonly ensureContainer: (spec: EnsureContainerSpec) => Effect.Effect<ContainerHandle, ContainerRuntimeError, Scope.Scope>;
194
208
  /** Run a one-shot command inside a running container and capture
195
209
  * its output. The runtime does NOT promote a non-zero exit to
196
- * failure — the caller is the policy holder (the postgres plugin
197
- * treats non-zero from `pg_isready` as "retry", but non-zero from
198
- * `createdb` as a typed plugin error). Only daemon-level failures
199
- * (no such container, daemon unreachable) surface as
210
+ * failure — the caller is the policy holder. Only daemon-level
211
+ * failures (no such container, daemon unreachable) surface as
200
212
  * `ContainerRuntimeError`. */
201
213
  readonly exec: (handle: ContainerHandle, argv: ReadonlyArray<string>, opts?: ExecOptions) => Effect.Effect<ExecResult, ContainerRuntimeError>;
202
214
  /** Run a one-shot `docker run --rm` container and capture stdout +
@@ -206,19 +218,10 @@ interface ContainerRuntime {
206
218
  * scope close to catch containers that survived a foreground kill. */
207
219
  readonly runOneShot: (spec: OneShotSpec) => Effect.Effect<ExecResult, ContainerRuntimeError, Scope.Scope>;
208
220
  readonly inspectByLabels: (labels: ContainerLabelTuple) => Effect.Effect<ReadonlyArray<ContainerHandle>, ContainerRuntimeError>;
209
- readonly followLogs: (handle: ContainerHandle) => Stream.Stream<string, ContainerRuntimeError>;
210
- /** Pause a running container. Snapshot capture uses this to establish
211
- * one stack-wide quiescence window before any artifact is written. */
212
- readonly pause: (handle: ContainerHandle) => Effect.Effect<void, ContainerRuntimeError>;
213
221
  /** Commit a container's writable layer to a snapshot image. Running
214
222
  * containers are paused first; paused, exited, and created
215
223
  * containers are already quiescent and are committed as-is. */
216
224
  readonly pauseAndCommit: (handle: ContainerHandle) => Effect.Effect<TaggedImageRef, ContainerRuntimeError>;
217
- /** Stream an image's bytes as if produced by `docker save <ref>`.
218
- * Used by the snapshot orchestrator to persist committed images to
219
- * tar files; consumers compose with a file-write sink so large
220
- * images don't materialise in memory. */
221
- readonly saveImage: (ref: ImageRef, opts?: SaveImageOptions) => Stream.Stream<Uint8Array, ContainerRuntimeError>;
222
225
  /** Stream a deduplicated `docker save <ref...>` bundle. Snapshot
223
226
  * capture uses this for multi-container stacks so shared base layers
224
227
  * are written once per snapshot instead of once per container. */
@@ -237,11 +240,14 @@ interface ContainerRuntime {
237
240
  * ownership of cleanup via `removeAfterSave`. Missing refs are
238
241
  * treated as already-cleaned. */
239
242
  readonly removeImage: (ref: ImageRef) => Effect.Effect<void, ContainerRuntimeError>;
240
- readonly unpause: (handle: ContainerHandle) => Effect.Effect<void, ContainerRuntimeError>;
243
+ /** Resolve a ref (tag or digest) to the image id/digest it currently
244
+ * points at, or `null` when the ref does not exist on-host. Snapshot
245
+ * capture-resume uses this to identify the layer a name resolved to
246
+ * BEFORE a retag (the soon-to-be-superseded layer) and the layer it
247
+ * resolves to AFTER (the freshly-committed one), so the orphaned
248
+ * previous layer can be GC'd without touching the live tag. */
249
+ readonly inspectImageDigest: (ref: string) => Effect.Effect<string | null, ContainerRuntimeError>;
241
250
  readonly stop: (handle: ContainerHandle, grace: Duration.Duration) => Effect.Effect<void, ContainerRuntimeError>;
242
- /** Boot-time orphan cleanup. This is container-only and skips names
243
- * still present in the cross-process claim ledger. */
244
- readonly sweepOrphans: (labelMatch: Partial<ContainerLabelTuple>) => Effect.Effect<number, ContainerRuntimeError>;
245
251
  /** Force-remove managed containers matching the partial label tuple,
246
252
  * regardless of claim-ledger entries. Wipe uses this for explicit
247
253
  * teardown; restore uses it before the next `ensureContainer`
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-expander.mjs","names":[],"sources":["../../src/contracts/plugin-expander.ts"],"sourcesContent":["// PluginExpander — compose-time plugin-rewrite contract.\n//\n// Some plugins cannot know their final `dependsOn` tuple at their\n// factory's call site because the relevant members are introduced\n// LATER (positionally, to `defineDevstack(...)`). The wallet's\n// `accounts: 'all'` mode is the canonical case: the wallet's hard\n// ordering edge against every account member is required, but the\n// wallet factory has no view of which accounts the user passes in.\n//\n// The fix is a compose-time rewrite: the plugin returns a PLACEHOLDER\n// member carrying an expander hook at a substrate-owned well-known\n// symbol; the composer detects the symbol, calls the expander with the\n// full member tuple, and substitutes the result. This module owns\n// that symbol + expander shape so the composer does not import any\n// plugin module to perform the rewrite.\n//\n// Architecture (Plugin-author surface = user-surface): any plugin\n// — built-in or custom — that needs this rewrite attaches the same\n// substrate-owned symbol with the same expander shape. The composer\n// dispatches uniformly; no per-plugin special-case lives in\n// `api/define-devstack.ts`.\n//\n// Note: this is a COMPOSE-TIME hook, distinct from the runtime\n// `CapabilitySinks` harvest path. Capability sinks dispatch\n// contributions AFTER plugin acquire; expanders run BEFORE the\n// supervisor sees the member list at all. Both surfaces are\n// substrate-owned but they fire at different times.\n\nimport type { AnyPlugin } from '../substrate/plugin.ts';\n\n/** Globally registered symbol the composer probes for on every\n * member. `Symbol.for(...)` avoids leaking a `unique symbol` identity\n * into inferred Stack types (TS2742). */\nexport const PLUGIN_EXPANDER: symbol = Symbol.for('@devstack/contracts/plugin-expander');\n\n/** Compose-time expander closure. Receives the FULL composed-member\n * tuple (post-dependency-closure expansion) and returns the member\n * the composer should substitute for the placeholder. The substrate\n * treats the closure opaquely — plugin authors interpret `members`\n * through whatever filter matches their domain (the wallet picks\n * members whose id starts with `account/`; a hypothetical role-based\n * expander would pick members by `role` or by capability). */\nexport type PluginExpander = (members: ReadonlyArray<AnyPlugin>) => AnyPlugin;\n\n/** Read the expander hook from a member. Returns `undefined` when no\n * hook is attached — the composer leaves the member alone in that\n * case. */\nexport const readPluginExpander = (member: AnyPlugin): PluginExpander | undefined => {\n\tconst slot = (member as unknown as Record<symbol, unknown>)[PLUGIN_EXPANDER];\n\treturn typeof slot === 'function' ? (slot as PluginExpander) : undefined;\n};\n\n/** Attach an expander hook to a placeholder member. The symbol is\n * written as a value-level property only — plugin factories MUST NOT\n * surface the hook on the member's TS return type or the symbol\n * identity leaks into inferred Stack types. */\nexport const attachPluginExpander = (placeholder: AnyPlugin, expander: PluginExpander): void => {\n\t(placeholder as unknown as Record<symbol, unknown>)[PLUGIN_EXPANDER] = expander;\n};\n\n/**\n * Run every registered expander once. Iterates the member tuple, finds\n * placeholders carrying a `PluginExpander`, and substitutes each with\n * the expander's resolved member. Members without a hook pass through\n * unchanged.\n *\n * Returns the input array verbatim (zero allocation) when no member\n * carries an expander — the explicit-tuple path remains the common case.\n *\n * **Single-pass contract.** This pass is single-shot: it scans the input\n * tuple once and substitutes in place. If an expander returns a member\n * that ITSELF carries `PLUGIN_EXPANDER`, that nested expander does NOT\n * fire — `runPluginExpanders` does not recurse. The composer is\n * responsible for re-invoking both `runPluginExpanders` and\n * `expandPluginDependencies` until fixed-point (typically: run expanders,\n * then re-run dependency closure so the now-resolved edges fold into the\n * member tuple; loop until neither pass produces a change). Keeping this\n * module ignorant of fixpoint policy means the substrate decides how\n * many iterations are allowed and what counts as convergence.\n */\nexport const runPluginExpanders = (members: ReadonlyArray<AnyPlugin>): ReadonlyArray<AnyPlugin> => {\n\tlet hasAny = false;\n\tfor (const m of members) {\n\t\tif (readPluginExpander(m) !== undefined) {\n\t\t\thasAny = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (!hasAny) return members;\n\n\treturn members.map((m) => {\n\t\tconst expand = readPluginExpander(m);\n\t\treturn expand === undefined ? m : expand(members);\n\t});\n};\n\n/** True when the placeholder + replacement form an expansion pair —\n * same id, at least one side carries the expander hook. Used by the\n * composer's duplicate-provider check to allow the \"placeholder + its\n * expanded form\" pair (both share an id by construction). */\nexport const isPluginExpanderPair = (a: AnyPlugin, b: AnyPlugin): boolean =>\n\ta.id === b.id && (readPluginExpander(a) !== undefined || readPluginExpander(b) !== undefined);\n"],"mappings":";;;;AAiCA,MAAa,kBAA0B,OAAO,IAAI,sCAAsC;;;;AAcxF,MAAa,sBAAsB,WAAkD;CACpF,MAAM,OAAQ,OAA8C;AAC5D,QAAO,OAAO,SAAS,aAAc,OAA0B,KAAA;;;;;;AAOhE,MAAa,wBAAwB,aAAwB,aAAmC;AAC9F,aAAmD,mBAAmB;;;;;;;;;;;;;;;;;;;;;;AAuBxE,MAAa,sBAAsB,YAAgE;CAClG,IAAI,SAAS;AACb,MAAK,MAAM,KAAK,QACf,KAAI,mBAAmB,EAAE,KAAK,KAAA,GAAW;AACxC,WAAS;AACT;;AAGF,KAAI,CAAC,OAAQ,QAAO;AAEpB,QAAO,QAAQ,KAAK,MAAM;EACzB,MAAM,SAAS,mBAAmB,EAAE;AACpC,SAAO,WAAW,KAAA,IAAY,IAAI,OAAO,QAAQ;GAChD;;;;;;AAOH,MAAa,wBAAwB,GAAc,MAClD,EAAE,OAAO,EAAE,OAAO,mBAAmB,EAAE,KAAK,KAAA,KAAa,mBAAmB,EAAE,KAAK,KAAA"}
1
+ {"version":3,"file":"plugin-expander.mjs","names":[],"sources":["../../src/contracts/plugin-expander.ts"],"sourcesContent":["// PluginExpander — compose-time plugin-rewrite contract.\n//\n// Some plugins cannot know their final `dependsOn` tuple at their\n// factory's call site because the relevant members are introduced\n// LATER (positionally, to `defineDevstack(...)`). The wallet's\n// `accounts: 'all'` mode is the canonical case: the wallet's hard\n// ordering edge against every account member is required, but the\n// wallet factory has no view of which accounts the user passes in.\n//\n// The fix is a compose-time rewrite: the plugin returns a PLACEHOLDER\n// member carrying an expander hook at a substrate-owned well-known\n// symbol; the composer detects the symbol, calls the expander with the\n// full member tuple, and substitutes the result. This module owns\n// that symbol + expander shape so the composer does not import any\n// plugin module to perform the rewrite.\n//\n// Architecture (Plugin-author surface = user-surface): any plugin\n// — built-in or custom — that needs this rewrite attaches the same\n// substrate-owned symbol with the same expander shape. The composer\n// dispatches uniformly; no per-plugin special-case lives in\n// `api/define-devstack.ts`.\n//\n// Note: this is a COMPOSE-TIME hook, distinct from the runtime\n// contribution-dispatch path (the ContributionDispatcher). Contribution\n// dispatch fires AFTER plugin acquire; expanders run BEFORE the\n// supervisor sees the member list at all. Both surfaces are\n// substrate-owned but they fire at different times.\n\nimport type { AnyPlugin } from '../substrate/plugin.ts';\n\n/** Globally registered symbol the composer probes for on every\n * member. `Symbol.for(...)` avoids leaking a `unique symbol` identity\n * into inferred Stack types (TS2742). */\nexport const PLUGIN_EXPANDER: symbol = Symbol.for('@devstack/contracts/plugin-expander');\n\n/** Compose-time expander closure. Receives the FULL composed-member\n * tuple (post-dependency-closure expansion) and returns the member\n * the composer should substitute for the placeholder. The substrate\n * treats the closure opaquely — plugin authors interpret `members`\n * through whatever filter matches their domain (the wallet picks\n * members whose id starts with `account/`; a hypothetical role-based\n * expander would pick members by `role` or by capability). */\nexport type PluginExpander = (members: ReadonlyArray<AnyPlugin>) => AnyPlugin;\n\n/** Read the expander hook from a member. Returns `undefined` when no\n * hook is attached — the composer leaves the member alone in that\n * case. */\nexport const readPluginExpander = (member: AnyPlugin): PluginExpander | undefined => {\n\tconst slot = (member as unknown as Record<symbol, unknown>)[PLUGIN_EXPANDER];\n\treturn typeof slot === 'function' ? (slot as PluginExpander) : undefined;\n};\n\n/** Attach an expander hook to a placeholder member. The symbol is\n * written as a value-level property only — plugin factories MUST NOT\n * surface the hook on the member's TS return type or the symbol\n * identity leaks into inferred Stack types. */\nexport const attachPluginExpander = (placeholder: AnyPlugin, expander: PluginExpander): void => {\n\t(placeholder as unknown as Record<symbol, unknown>)[PLUGIN_EXPANDER] = expander;\n};\n\n/**\n * Run every registered expander once. Iterates the member tuple, finds\n * placeholders carrying a `PluginExpander`, and substitutes each with\n * the expander's resolved member. Members without a hook pass through\n * unchanged.\n *\n * Returns the input array verbatim (zero allocation) when no member\n * carries an expander — the explicit-tuple path remains the common case.\n *\n * **Single-pass contract.** This pass is single-shot: it scans the input\n * tuple once and substitutes in place. If an expander returns a member\n * that ITSELF carries `PLUGIN_EXPANDER`, that nested expander does NOT\n * fire — `runPluginExpanders` does not recurse. The composer is\n * responsible for re-invoking both `runPluginExpanders` and\n * `expandPluginDependencies` until fixed-point (typically: run expanders,\n * then re-run dependency closure so the now-resolved edges fold into the\n * member tuple; loop until neither pass produces a change). Keeping this\n * module ignorant of fixpoint policy means the substrate decides how\n * many iterations are allowed and what counts as convergence.\n */\nexport const runPluginExpanders = (members: ReadonlyArray<AnyPlugin>): ReadonlyArray<AnyPlugin> => {\n\tlet hasAny = false;\n\tfor (const m of members) {\n\t\tif (readPluginExpander(m) !== undefined) {\n\t\t\thasAny = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (!hasAny) return members;\n\n\treturn members.map((m) => {\n\t\tconst expand = readPluginExpander(m);\n\t\treturn expand === undefined ? m : expand(members);\n\t});\n};\n\n/** True when the placeholder + replacement form an expansion pair —\n * same id, at least one side carries the expander hook. Used by the\n * composer's duplicate-provider check to allow the \"placeholder + its\n * expanded form\" pair (both share an id by construction). */\nexport const isPluginExpanderPair = (a: AnyPlugin, b: AnyPlugin): boolean =>\n\ta.id === b.id && (readPluginExpander(a) !== undefined || readPluginExpander(b) !== undefined);\n"],"mappings":";;;;AAiCA,MAAa,kBAA0B,OAAO,IAAI,qCAAqC;;;;AAcvF,MAAa,sBAAsB,WAAkD;CACpF,MAAM,OAAQ,OAA8C;CAC5D,OAAO,OAAO,SAAS,aAAc,OAA0B,KAAA;AAChE;;;;;AAMA,MAAa,wBAAwB,aAAwB,aAAmC;CAC/F,YAAoD,mBAAmB;AACxE;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,sBAAsB,YAAgE;CAClG,IAAI,SAAS;CACb,KAAK,MAAM,KAAK,SACf,IAAI,mBAAmB,CAAC,MAAM,KAAA,GAAW;EACxC,SAAS;EACT;CACD;CAED,IAAI,CAAC,QAAQ,OAAO;CAEpB,OAAO,QAAQ,KAAK,MAAM;EACzB,MAAM,SAAS,mBAAmB,CAAC;EACnC,OAAO,WAAW,KAAA,IAAY,IAAI,OAAO,OAAO;CACjD,CAAC;AACF;;;;;AAMA,MAAa,wBAAwB,GAAc,MAClD,EAAE,OAAO,EAAE,OAAO,mBAAmB,CAAC,MAAM,KAAA,KAAa,mBAAmB,CAAC,MAAM,KAAA"}
@@ -1,4 +1,4 @@
1
- import { Effect, Scope } from "effect";
1
+ import { Effect } from "effect";
2
2
 
3
3
  //#region src/contracts/snapshotable.d.ts
4
4
  /** Label tuple identifying managed containers. The orchestrator
@@ -20,7 +20,7 @@ type IdentityContributionValue = string | number | boolean | null | ReadonlyArra
20
20
  * use a string-literal `kind` and JSON-serializable values; see the
21
21
  * top-of-file convention section. The `[field]` index signature is
22
22
  * permissive so existing payloads with `ReadonlyArray<string>` or
23
- * nested object fields (e.g. postgres's `databases`) typecheck without
23
+ * nested object fields typecheck without
24
24
  * per-plugin schema duplication. */
25
25
  interface IdentityContributionShape {
26
26
  readonly kind: string;
@@ -37,12 +37,10 @@ interface SnapshotableDecl {
37
37
  * + file-path rules. */
38
38
  readonly subtrees: ReadonlyArray<string>;
39
39
  /** Managed containers identified by label tuples — orchestrator
40
- * is name-blind. */
40
+ * is name-blind. The capture bounce gracefully `docker stop`s each
41
+ * (RocksDB/WAL flush) before commit, so no separate quiescence hook
42
+ * is needed — the graceful stop IS the flush. */
41
43
  readonly managedContainers?: ReadonlyArray<ContainerLabelTuple>;
42
- /** Quiescence hook: how to make state consistent before commit.
43
- * Default is "pause container"; postgres / RocksDB declare
44
- * longer grace. */
45
- readonly quiesce?: Effect.Effect<void, never, Scope.Scope>;
46
44
  /** Pre-restore hook: contribute to the identity guard. The returned
47
45
  * object is JSON-stringified to derive a stable comparison string.
48
46
  * See `IdentityContributionShape` + the top-of-file convention
@@ -2,10 +2,7 @@
2
2
  /**
3
3
  * Canonical path constants under the `/api/v1/devstack/*` prefix.
4
4
  *
5
- * Distilled-doc note (15-wallet.md "Fork-control routes declared but
6
- * unimplemented"): the legacy server declared four `FORK_*` path
7
- * constants whose handlers never landed. Per "no compat for never-
8
- * cases", we drop them from the wire protocol entirely — when the
5
+ * The wire protocol carries no fork-control (`FORK_*`) routes. When the
9
6
  * fork-control surface is wired, those routes will be added (and the
10
7
  * dev-wallet adapter shipped together). No half-done stubs.
11
8
  */
@@ -33,7 +30,7 @@ declare const WALLET_TOKEN_HEX_LENGTH: 32;
33
30
  * the manifest under `endpoints['wallet-app']`; downstream consumers
34
31
  * (codegen, TUI, doctor) read it by this key.
35
32
  *
36
- * Stable across rewrite + legacy so existing consumers don't break. */
33
+ * A stable key so downstream consumers don't break. */
37
34
  declare const WALLET_ENDPOINT_NAME: "wallet-app";
38
35
  /** Conventional short endpoint key for the wallet plugin. Matches the
39
36
  * substrate's `EndpointKey` brand. Build integrations (Playwright,
@@ -2,10 +2,7 @@
2
2
  /**
3
3
  * Canonical path constants under the `/api/v1/devstack/*` prefix.
4
4
  *
5
- * Distilled-doc note (15-wallet.md "Fork-control routes declared but
6
- * unimplemented"): the legacy server declared four `FORK_*` path
7
- * constants whose handlers never landed. Per "no compat for never-
8
- * cases", we drop them from the wire protocol entirely — when the
5
+ * The wire protocol carries no fork-control (`FORK_*`) routes. When the
9
6
  * fork-control surface is wired, those routes will be added (and the
10
7
  * dev-wallet adapter shipped together). No half-done stubs.
11
8
  */
@@ -32,7 +29,7 @@ const WALLET_TOKEN_HEX_LENGTH = 32;
32
29
  * the manifest under `endpoints['wallet-app']`; downstream consumers
33
30
  * (codegen, TUI, doctor) read it by this key.
34
31
  *
35
- * Stable across rewrite + legacy so existing consumers don't break. */
32
+ * A stable key so downstream consumers don't break. */
36
33
  const WALLET_ENDPOINT_NAME = "wallet-app";
37
34
  /** Conventional short endpoint key for the wallet plugin. Matches the
38
35
  * substrate's `EndpointKey` brand. Build integrations (Playwright,
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-protocol.mjs","names":[],"sources":["../../src/contracts/wallet-protocol.ts"],"sourcesContent":["// Wallet wire-protocol constants — name-blind substrate contract.\n//\n// These are the PURE wire-protocol invariants shared across layers:\n// HTTP path strings, the protocol prefix gate, header/token constants,\n// and the canonical routed-endpoint name/key. They carry no runtime,\n// Effect, or service dependencies — only string/number literals.\n//\n// Lifted here (ARCHITECTURE.md § Layer table) because L5 build\n// integrations (`build-integrations/runtime/wallet-paths.ts` and the\n// Playwright/vitest helpers) need them but MUST NOT import L2 plugin\n// modules — there is no L5→L0–L3 carve-out. STYLE_GUIDE §7: shared\n// cross-layer shapes that no single layer should own live in\n// `src/contracts/`; plugin barrels re-export for ergonomics.\n//\n// One decl per file, no `contracts/index.ts` barrel (STYLE_GUIDE §8 /\n// §199): package-internal callers import this module directly; the\n// public root barrel re-exports the wallet-plugin barrel, which in\n// turn re-exports from here, so the public value/type identity is\n// unchanged.\n//\n// The wallet plugin's `protocol.ts` / `routable.ts` re-export these so\n// plugin-internal callers keep their current import sites. The Schema-\n// based request/response envelopes stay in `protocol.ts` (they drag in\n// `effect`'s Schema runtime and are not needed by the L5 surfaces).\n\n// ----------------------------------------------------------------------\n// Path constants\n// ----------------------------------------------------------------------\n\n/**\n * Canonical path constants under the `/api/v1/devstack/*` prefix.\n *\n * Distilled-doc note (15-wallet.md \"Fork-control routes declared but\n * unimplemented\"): the legacy server declared four `FORK_*` path\n * constants whose handlers never landed. Per \"no compat for never-\n * cases\", we drop them from the wire protocol entirely — when the\n * fork-control surface is wired, those routes will be added (and the\n * dev-wallet adapter shipped together). No half-done stubs.\n */\nexport const WalletHttpPath = {\n\tHEALTH: '/api/v1/devstack/health',\n\tACCOUNTS: '/api/v1/devstack/accounts',\n\tSIGN_TRANSACTION: '/api/v1/devstack/sign-transaction',\n\tSIGN_PERSONAL_MESSAGE: '/api/v1/devstack/sign-personal-message',\n} as const;\n\nexport type WalletHttpPathValue = (typeof WalletHttpPath)[keyof typeof WalletHttpPath];\n\n/** Prefix gate: ANY path under this prefix is treated as protocol traffic\n * (and subject to mandatory Origin + bearer); anything else is a flat\n * 404. */\nexport const WALLET_PROTOCOL_PREFIX = '/api/v1/devstack/' as const;\n\n// ----------------------------------------------------------------------\n// Header / token constants (shared so the dev-wallet adapter doesn't\n// open-code the same strings).\n// ----------------------------------------------------------------------\n\nexport const WALLET_AUTH_HEADER = 'authorization' as const;\nexport const WALLET_BEARER_PREFIX = 'Bearer ' as const;\n\n/** URL-fragment key the pair-URL carries the token under\n * (`<wallet-url>/#token=<32-hex>`). Fragments are not sent to the\n * server, so the token never appears in access logs / referrers. */\nexport const WALLET_TOKEN_FRAGMENT_KEY = 'token' as const;\n\n/** Constant carried token byte length (16 random bytes → 32 hex chars).\n * The on-disk token file is rejected + re-minted if it doesn't match. */\nexport const WALLET_TOKEN_HEX_LENGTH = 32 as const;\n\n// ----------------------------------------------------------------------\n// Routed-endpoint identity\n// ----------------------------------------------------------------------\n\n/** Canonical endpoint name. The router orchestrator surfaces this in\n * the manifest under `endpoints['wallet-app']`; downstream consumers\n * (codegen, TUI, doctor) read it by this key.\n *\n * Stable across rewrite + legacy so existing consumers don't break. */\nexport const WALLET_ENDPOINT_NAME = 'wallet-app' as const;\n\n/** Conventional short endpoint key for the wallet plugin. Matches the\n * substrate's `EndpointKey` brand. Build integrations (Playwright,\n * vitest helpers) and the conventional-routes alias table look the\n * endpoint up under this key; the substrate's alias resolver folds\n * `'wallet'` → `WALLET_ENDPOINT_NAME` (`'wallet-app'`) before\n * consulting the manifest.\n *\n * Paired with the canonical name so both stay in lockstep when the\n * plugin's HTTP server is renamed; the L5 conventional-routes table\n * consumes the same constant so there is exactly one source of\n * truth. */\nexport const WALLET_ENDPOINT_KEY = 'wallet' as const;\n"],"mappings":";;;;;;;;;;;AAuCA,MAAa,iBAAiB;CAC7B,QAAQ;CACR,UAAU;CACV,kBAAkB;CAClB,uBAAuB;CACvB;;;;AAOD,MAAa,yBAAyB;AAOtC,MAAa,qBAAqB;AAClC,MAAa,uBAAuB;;;;AAKpC,MAAa,4BAA4B;;;AAIzC,MAAa,0BAA0B;;;;;;AAWvC,MAAa,uBAAuB;;;;;;;;;;;;AAapC,MAAa,sBAAsB"}
1
+ {"version":3,"file":"wallet-protocol.mjs","names":[],"sources":["../../src/contracts/wallet-protocol.ts"],"sourcesContent":["// Wallet wire-protocol constants — name-blind substrate contract.\n//\n// These are the PURE wire-protocol invariants shared across layers:\n// HTTP path strings, the protocol prefix gate, header/token constants,\n// and the canonical routed-endpoint name/key. They carry no runtime,\n// Effect, or service dependencies — only string/number literals.\n//\n// Lifted here (ARCHITECTURE.md § Layer table) because L5 build\n// integrations (`build-integrations/runtime/wallet-paths.ts` and the\n// Playwright/vitest helpers) need them but MUST NOT import L2 plugin\n// modules — there is no L5→L0–L3 carve-out. STYLE_GUIDE §7: shared\n// cross-layer shapes that no single layer should own live in\n// `src/contracts/`; plugin barrels re-export for ergonomics.\n//\n// One decl per file, no `contracts/index.ts` barrel (STYLE_GUIDE §8 /\n// §199): package-internal callers import this module directly; the\n// public root barrel re-exports the wallet-plugin barrel, which in\n// turn re-exports from here, so the public value/type identity is\n// unchanged.\n//\n// The wallet plugin's `protocol.ts` / `routable.ts` re-export these so\n// plugin-internal callers keep their current import sites. The Schema-\n// based request/response envelopes stay in `protocol.ts` (they drag in\n// `effect`'s Schema runtime and are not needed by the L5 surfaces).\n\n// ----------------------------------------------------------------------\n// Path constants\n// ----------------------------------------------------------------------\n\n/**\n * Canonical path constants under the `/api/v1/devstack/*` prefix.\n *\n * The wire protocol carries no fork-control (`FORK_*`) routes. When the\n * fork-control surface is wired, those routes will be added (and the\n * dev-wallet adapter shipped together). No half-done stubs.\n */\nexport const WalletHttpPath = {\n\tHEALTH: '/api/v1/devstack/health',\n\tACCOUNTS: '/api/v1/devstack/accounts',\n\tSIGN_TRANSACTION: '/api/v1/devstack/sign-transaction',\n\tSIGN_PERSONAL_MESSAGE: '/api/v1/devstack/sign-personal-message',\n} as const;\n\nexport type WalletHttpPathValue = (typeof WalletHttpPath)[keyof typeof WalletHttpPath];\n\n/** Prefix gate: ANY path under this prefix is treated as protocol traffic\n * (and subject to mandatory Origin + bearer); anything else is a flat\n * 404. */\nexport const WALLET_PROTOCOL_PREFIX = '/api/v1/devstack/' as const;\n\n// ----------------------------------------------------------------------\n// Header / token constants (shared so the dev-wallet adapter doesn't\n// open-code the same strings).\n// ----------------------------------------------------------------------\n\nexport const WALLET_AUTH_HEADER = 'authorization' as const;\nexport const WALLET_BEARER_PREFIX = 'Bearer ' as const;\n\n/** URL-fragment key the pair-URL carries the token under\n * (`<wallet-url>/#token=<32-hex>`). Fragments are not sent to the\n * server, so the token never appears in access logs / referrers. */\nexport const WALLET_TOKEN_FRAGMENT_KEY = 'token' as const;\n\n/** Constant carried token byte length (16 random bytes → 32 hex chars).\n * The on-disk token file is rejected + re-minted if it doesn't match. */\nexport const WALLET_TOKEN_HEX_LENGTH = 32 as const;\n\n// ----------------------------------------------------------------------\n// Routed-endpoint identity\n// ----------------------------------------------------------------------\n\n/** Canonical endpoint name. The router orchestrator surfaces this in\n * the manifest under `endpoints['wallet-app']`; downstream consumers\n * (codegen, TUI, doctor) read it by this key.\n *\n * A stable key so downstream consumers don't break. */\nexport const WALLET_ENDPOINT_NAME = 'wallet-app' as const;\n\n/** Conventional short endpoint key for the wallet plugin. Matches the\n * substrate's `EndpointKey` brand. Build integrations (Playwright,\n * vitest helpers) and the conventional-routes alias table look the\n * endpoint up under this key; the substrate's alias resolver folds\n * `'wallet'` → `WALLET_ENDPOINT_NAME` (`'wallet-app'`) before\n * consulting the manifest.\n *\n * Paired with the canonical name so both stay in lockstep when the\n * plugin's HTTP server is renamed; the L5 conventional-routes table\n * consumes the same constant so there is exactly one source of\n * truth. */\nexport const WALLET_ENDPOINT_KEY = 'wallet' as const;\n"],"mappings":";;;;;;;;AAoCA,MAAa,iBAAiB;CAC7B,QAAQ;CACR,UAAU;CACV,kBAAkB;CAClB,uBAAuB;AACxB;;;;AAOA,MAAa,yBAAyB;AAOtC,MAAa,qBAAqB;AAClC,MAAa,uBAAuB;;;;AAKpC,MAAa,4BAA4B;;;AAIzC,MAAa,0BAA0B;;;;;;AAWvC,MAAa,uBAAuB;;;;;;;;;;;;AAapC,MAAa,sBAAsB"}
package/dist/index.d.mts CHANGED
@@ -1,29 +1,31 @@
1
1
  import { ManifestExtras, ManifestExtrasContext, ManifestExtrasInput, ManifestExtrasInvalid, ManifestExtrasLookupError } from "./substrate/manifest.mjs";
2
2
  import { runtime_decode_d_exports } from "./substrate/runtime/runtime-decode.mjs";
3
- import { CodegenEmitContext, CodegenEmitDone, CodegenableDecl } from "./contracts/codegenable.mjs";
4
- import { AppName, Brand, ChainId, ContentHash, EndpointKey, StackName, appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
3
+ import { AppName, Brand, ContentHash, EndpointKey, StackName, appName, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
5
4
  import { LifecycleStatus, PhaseNarration, PluginRole } from "./substrate/lifecycle.mjs";
6
- import { ProjectionDecl, ProjectionEvent } from "./contracts/projection.mjs";
7
- import { DevstackRoutableUpstreamRegistry, DispatchId, EntrypointDecl, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind } from "./contracts/routable.mjs";
8
- import { ContainerLabelTuple, SnapshotableDecl } from "./contracts/snapshotable.mjs";
9
- import { StrategyContributorDecl, StrategyFor } from "./contracts/strategy-contributor.mjs";
10
- import { CapabilityDecl, CapabilityKind, CapabilityPayloadFor, DevstackCapabilityRegistry, ExactCapabilityPayload } from "./contracts/capability-decl.mjs";
11
- import { AnyPlugin, AnyResourceRef, DependencyInput, DependencyList, Plugin, PluginErrorContribution, PluginSpec, ResolvedDependencies, ResourceIdOf, ResourceRef, ResourceValueOf, defineId, definePlugin, resource } from "./substrate/plugin.mjs";
12
- import { DevstackNetworkModeRegistry, NetworkConfig, NetworkMode } from "./substrate/network.mjs";
5
+ import { CodegenEmitContext, CodegenEmitDone, CodegenableDecl } from "./contracts/codegenable.mjs";
6
+ import { AnyPlugin, AnyResourceRef, DependencyInput, DependencyList, Plugin, PluginSpec, ResolvedDependencies, ResourceIdOf, ResourceRef, ResourceValueOf, defineId, definePlugin, resource } from "./substrate/plugin.mjs";
13
7
  import { DevstackOptions } from "./substrate/options.mjs";
14
8
  import { Stack, defineDevstack } from "./api/define-devstack.mjs";
9
+ import { DEFAULT_DEVSTACK_NETWORK, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkName, DevstackNetworkParseError, LOCAL_NETWORK_NAME, ParsedDevstackNetwork, ResolveNetworkOptions, ResolveStateDirOptions, ResolvedDevstackNetwork, chainIdForNetwork, networkNameFromChain, parseDevstackNetwork, parseDevstackNetworkName, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir } from "./api/inference-network.mjs";
10
+ import { DevstackNetworkModeRegistry, NetworkConfig, NetworkMode } from "./plugins/sui/network-config.mjs";
15
11
  import { BuildCtx, DevstackOptionsWith, defineDevstackWith } from "./api/define-devstack-with.mjs";
16
- import { RedactionRule, redaction_d_exports } from "./substrate/runtime/observability/redaction.mjs";
12
+ import { ContainerLabelTuple, SnapshotableDecl } from "./contracts/snapshotable.mjs";
17
13
  import { ContainerHandle, ContainerRuntime, ContainerRuntimeError, ImageRef, LoadedImageBundle, TaggedImageRef } from "./contracts/container-runtime.mjs";
18
14
  import { IdentityContext } from "./substrate/runtime/paths.mjs";
19
15
  import { ContainerRuntimeService } from "./runtime/docker/service.mjs";
16
+ import { DevstackRoutableUpstreamRegistry, DispatchId, EntrypointDecl, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind } from "./contracts/routable.mjs";
20
17
  import { http_probe_d_exports } from "./substrate/runtime/http-probe.mjs";
18
+ import { StrategyContributorDecl, StrategyFor } from "./contracts/strategy-contributor.mjs";
19
+ import { ChainProbe, ChainProbeError, ChainProbeMode } from "./contracts/chain-probe.mjs";
21
20
  import { LogLevel, LogLine, LogPayload, Logger, LoggerShape, TagBuffer } from "./substrate/runtime/observability/logger.mjs";
21
+ import { RedactionRule, redaction_d_exports } from "./substrate/runtime/observability/redaction.mjs";
22
22
  import { process_lines_d_exports } from "./substrate/runtime/observability/process-lines.mjs";
23
+ import { ProjectionDecl, ProjectionEvent } from "./contracts/projection.mjs";
24
+ import { PackageBindings } from "./orchestrators/codegen/bindings.mjs";
25
+ import { ResolvedKnownPackage, ResolvedLocalPackage } from "./plugins/package/registry.mjs";
23
26
  import { BootError, RunHandle, RunStackIdentityOptions, RunStackOptions, runStack } from "./api/run-stack.mjs";
24
- import { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor } from "./api/define-capabilities.mjs";
25
- import { pluginErrorContributions } from "./api/plugin-errors.mjs";
26
- import { DEFAULT_DEVSTACK_NETWORK, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkName, DevstackNetworkParseError, ParsedDevstackNetwork, ResolveNetworkOptions, ResolveStateDirOptions, ResolvedDevstackNetwork, parseDevstackNetwork, parseDevstackNetworkName, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir } from "./api/inference-network.mjs";
27
+ import { projection } from "./api/define-capabilities.mjs";
28
+ import { PluginContext, PluginCtx } from "./substrate/plugin-ctx.mjs";
27
29
  import { FactoriesByMode, FactoriesFor, ModeNamespace, defineModeNamespace } from "./api/mode-narrowed-factory.mjs";
28
30
  import { config_validation_d_exports } from "./substrate/runtime/config-validation.mjs";
29
31
  import { managed_container_d_exports } from "./substrate/runtime/managed-container.mjs";
@@ -31,14 +33,13 @@ import { process_supervisor_d_exports } from "./substrate/runtime/process-superv
31
33
  import { probes_d_exports } from "./substrate/runtime/probes.mjs";
32
34
  import { retry_policy_d_exports } from "./substrate/runtime/retry-policy.mjs";
33
35
  import { Renderer, RendererError } from "./contracts/renderer.mjs";
34
- import { ChainProbe, ChainProbeError, ChainProbeMode } from "./contracts/chain-probe.mjs";
36
+ import { ForkUnsupportedError, SuiCliError, SuiConfigError, SuiError, SuiPluginError } from "./plugins/sui/errors.mjs";
35
37
  import { FaucetBodyError, FaucetConfigError, FaucetError, FaucetExhausted, FaucetUnreachable } from "./plugins/faucet/errors.mjs";
36
38
  import { FaucetStrategy } from "./plugins/faucet/dispatcher.mjs";
37
39
  import { FaucetStrategyContribution, defineFaucetStrategy } from "./plugins/faucet/index.mjs";
38
- import { ForkUnsupportedError, SuiCliError, SuiConfigError, SuiError, SuiPluginError } from "./plugins/sui/errors.mjs";
39
40
  import { SuiForkOptions, SuiLiveOptions, SuiLocalOptions, SuiLocalRpcOptions, SuiOptions } from "./plugins/sui/mode/spec.mjs";
40
41
  import { ResolvedSuiNetwork } from "./plugins/sui/network-resolver.mjs";
41
- import { SuiNetworkBindings } from "./plugins/sui/codegen.mjs";
42
+ import { SuiNetworkConfigEntry } from "./plugins/sui/codegen.mjs";
42
43
  import { sui, suiFor } from "./plugins/sui/index.mjs";
43
44
  import { AccountAcquireError, AccountAcquirePhase, AccountError, AccountSignError, AccountSignPhase, AccountVariantKind } from "./plugins/account/errors.mjs";
44
45
  import { AccountOptions, AccountValue, TxResult } from "./plugins/account/service.mjs";
@@ -47,10 +48,6 @@ import { AccountBindings } from "./plugins/account/codegen.mjs";
47
48
  import { ResolvedKeypair, SignatureScheme } from "./plugins/account/keypair.mjs";
48
49
  import { SyntheticImpersonationSigner } from "./plugins/account/variants/impersonate.mjs";
49
50
  import { account } from "./plugins/account/index.mjs";
50
- import { ResolvedKnownPackage, ResolvedLocalPackage } from "./plugins/package/registry.mjs";
51
- import { PublishError } from "./plugins/package/errors.mjs";
52
- import { PackageBindings } from "./plugins/package/codegen.mjs";
53
- import { KnownPackageOptions, KnownPackageResolved, LocalPackageOptions, LocalPackageResolved, PackageCapture, PackageResolved, PublisherAccountMember, knownPackage, localPackage } from "./plugins/package/index.mjs";
54
51
  import { CoinError, CoinPhase } from "./plugins/coin/errors.mjs";
55
52
  import { isBareCoinType, validateBareCoinType } from "./plugins/coin/metadata.mjs";
56
53
  import { BUILTIN_COINS, BuiltinCoinName, ResolvedCoin } from "./plugins/coin/address-resolution.mjs";
@@ -58,6 +55,8 @@ import { CoinAddressForm, CoinValue } from "./plugins/coin/service.mjs";
58
55
  import { CoinBindings } from "./plugins/coin/codegen.mjs";
59
56
  import { DiscoveredCoin } from "./plugins/coin/discovery.mjs";
60
57
  import { PackageMember, coin } from "./plugins/coin/index.mjs";
58
+ import { PublishError } from "./plugins/package/errors.mjs";
59
+ import { KnownPackageOptions, KnownPackageResolved, LocalPackageOptions, LocalPackageResolved, PackageCapture, PackageResolved, PublisherAccountMember, knownPackage, localPackage } from "./plugins/package/index.mjs";
61
60
  import { WalletBootError, WalletBootPhase, WalletError, WalletRequestError, WalletRequestPhase } from "./plugins/wallet/errors.mjs";
62
61
  import { WalletAccountMember, WalletOptions, WalletValue } from "./plugins/wallet/service.mjs";
63
62
  import { wallet } from "./plugins/wallet/index.mjs";
@@ -65,10 +64,6 @@ import { DashboardOptions, DashboardValue, dashboard } from "./plugins/dashboard
65
64
  import { HostServiceError } from "./plugins/host-service/errors.mjs";
66
65
  import { HOST_SERVICE_PORT_TOKEN, HostServiceOptions, HostServiceReadyProbe, HostServiceValue } from "./plugins/host-service/service.mjs";
67
66
  import { hostService } from "./plugins/host-service/index.mjs";
68
- import { DatabaseCreateFailed, PostgresConfigError, PostgresConnectionTimeout, PostgresError, PostgresPhase, PostgresPluginError } from "./plugins/postgres/errors.mjs";
69
- import { Postgres, PostgresServiceOptions } from "./plugins/postgres/service.mjs";
70
- import { PostgresConnectionBindings, PostgresConnectionParts } from "./plugins/postgres/connection.mjs";
71
- import { PostgresPluginOptions, postgres } from "./plugins/postgres/index.mjs";
72
67
  import { ActionError, ActionPhase } from "./plugins/action/errors.mjs";
73
68
  import { ActionReceipt } from "./plugins/action/service.mjs";
74
69
  import { ActionBuildContext } from "./plugins/action/build-context.mjs";
@@ -85,6 +80,6 @@ import { SealBindings } from "./plugins/seal/codegen.mjs";
85
80
  import { SealCommonOptions, SealForkKnownOptions, SealLiveOptions, SealLocalKeygenOptions, SealOptions, seal, sealFor } from "./plugins/seal/index.mjs";
86
81
  import { DeepbookConfigError, DeepbookError, DeepbookPhase, DeepbookPluginError } from "./plugins/deepbook/errors.mjs";
87
82
  import { AccountMemberAlias, CoinMemberAlias, DEEP_PRICE_FEED_ID, DeepbookPackageMember, DeepbookPool, DeepbookPoolCoin, DeepbookPoolSeedLiquidity, DeepbookPoolSeedOrder, DeepbookPoolSpec, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./plugins/deepbook/types.mjs";
88
- import { DeepbookBindings, DeepbookPoolBinding } from "./plugins/deepbook/codegen.mjs";
83
+ import { DeepbookBindings } from "./plugins/deepbook/codegen.mjs";
89
84
  import { DeepbookCommonOptions, DeepbookKnownNetwork, DeepbookKnownOptions, DeepbookOptions, DeepbookOverrideOptions, DeepbookResolved, deepbookCore, deepbookFor } from "./plugins/deepbook/index.mjs";
90
- export { type AccountAcquireError, type AccountAcquirePhase, type AccountBindings, type AccountError, type AccountFunding, type AccountFundingCoinValue, type AccountFundingEntry, type AccountFundingRequest, type AccountFundingResult, type AccountFundingStrategy, type AccountMemberAlias, type AccountOptions, type AccountSignError, type AccountSignPhase, type AccountValue, type AccountVariantKind, type ActionBuildContext, type ActionError, type ActionOptions, type ActionPhase, type ActionReceipt, type ActionUpstreamRef, type AnyPlugin, type AnyResourceRef, type AppName, BUILTIN_COINS, type BootError, type Brand, type BuildCtx, type BuiltinCoinName, type CapabilityDecl, type CapabilityKind, type CapabilityPayloadFor, type ChainId, type ChainProbe, type ChainProbeError, type ChainProbeMode, type CodegenEmitContext, type CodegenEmitDone, type CodegenableDecl, type CoinAddressForm, type CoinBindings, type CoinError, type CoinMember, type CoinMemberAlias, type CoinPhase, type CoinValue, config_validation_d_exports as ConfigValidation, type ContainerHandle, type ContainerLabelTuple, type ContainerRuntime, type ContainerRuntimeError, ContainerRuntimeService, type ContentHash, type CrossCuttingFundingEntry, type CrossCuttingFundingProvider, DEEP_PRICE_FEED_ID, DEFAULT_DEVSTACK_NETWORK, DEFAULT_EPHEMERAL_FUND_MIST, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, type DashboardOptions, type DashboardValue, type DatabaseCreateFailed, type DeepbookBindings, type DeepbookCommonOptions, type DeepbookConfigError, type DeepbookError, type DeepbookKnownNetwork, type DeepbookKnownOptions, type DeepbookOptions, type DeepbookOverrideOptions, type DeepbookPackageMember, type DeepbookPhase, type DeepbookPluginError, type DeepbookPool, type DeepbookPoolBinding, type DeepbookPoolCoin, type DeepbookPoolSeedLiquidity, type DeepbookPoolSeedOrder, type DeepbookPoolSpec, type DeepbookResolved, type DependencyInput, type DependencyList, type DevstackCapabilityRegistry, type DevstackNetworkModeRegistry, type DevstackNetworkName, DevstackNetworkParseError, type DevstackOptions, type DevstackOptionsWith, type DevstackRoutableUpstreamRegistry, type DiscoveredCoin, type DispatchId, type EndpointKey, type EntrypointDecl, type ExactCapabilityPayload, type FactoriesByMode, type FactoriesFor, type FaucetBodyError, type FaucetConfigError, type FaucetError, type FaucetExhausted, type FaucetStrategy, type FaucetStrategyContribution, type FaucetUnreachable, type ForkUnsupportedError, HOST_SERVICE_PORT_TOKEN, type HostServiceError, type HostServiceOptions, type HostServiceReadyProbe, type HostServiceValue, http_probe_d_exports as HttpProbes, IdentityContext, type ImageRef, type KnownPackageOptions, type KnownPackageResolved, type LifecycleStatus, type LoadedImageBundle, type LocalPackageOptions, type LocalPackageResolved, type LogLevel, type LogLine, type LogPayload, Logger, type LoggerShape, managed_container_d_exports as ManagedContainers, type ManifestExtras, type ManifestExtrasContext, type ManifestExtrasInput, ManifestExtrasInvalid, ManifestExtrasLookupError, type ModeNamespace, type NetworkConfig, type NetworkMode, type PackageBindings, type PackageCapture, type PackageMember, type PackageResolved, type ParsedDevstackNetwork, type PhaseNarration, type Plugin, type PluginErrorContribution, type PluginRole, type PluginSpec, type Postgres, type PostgresConfigError, type PostgresConnectionBindings, type PostgresConnectionParts, type PostgresConnectionTimeout, type PostgresError, type PostgresPhase, type PostgresPluginError, type PostgresPluginOptions, type PostgresServiceOptions, probes_d_exports as Probes, process_lines_d_exports as ProcessLines, process_supervisor_d_exports as ProcessSupervisor, type ProjectionDecl, type ProjectionEvent, type PublishError, type PublisherAccountMember, redaction_d_exports as Redaction, type RedactionRule, type Renderer, type RendererError, type ResolveNetworkOptions, type ResolveStateDirOptions, type ResolvedCoin, type ResolvedDependencies, type ResolvedDevstackNetwork, type ResolvedKeypair, type ResolvedKnownPackage, type ResolvedLocalPackage, type ResolvedSuiNetwork, type ResourceIdOf, type ResourceRef, type ResourceValueOf, retry_policy_d_exports as RetryPolicy, type RoutableDecl, type RoutableHttpDecl, type RoutableTcpDecl, type RoutableUpstream, type RoutableUpstreamKind, type RunHandle, type RunStackIdentityOptions, type RunStackOptions, runtime_decode_d_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, type SealError as SealAcquireError, type SealAnyError, type SealBindings, type SealCommonOptions, type SealConfigError, type SealError, type SealForkKnownOptions, type SealKeyServer, type SealKeyServerEntry, type SealKnownResolved, type SealLiveOptions, type SealLocalKeygenOptions, type SealLocalKeygenResolved, type SealOptions, type SealResolved, type SignatureScheme, type SnapshotableDecl, type Stack, type StackName, type StrategyContributorDecl, type StrategyFor, type SuiCliError, type SuiConfigError, type SuiError, type SuiForkOptions, type SuiFundingEntry, type SuiLiveOptions, type SuiLocalOptions, type SuiLocalRpcOptions, type SuiNetworkBindings, type SuiOptions, type SuiPluginError, type SyntheticImpersonationSigner, type TagBuffer, type TaggedImageRef, type TxResult, USDC_PRICE_FEED_ID, type WalCoinValue, type WalletAccountMember, type WalletBootError, type WalletBootPhase, type WalletError, type WalletOptions, type WalletRequestError, type WalletRequestPhase, type WalletValue, type WalrusBindings, type WalrusConfigError, type WalrusError, type WalrusKnownDeploymentOptions, type WalrusKnownNetwork, type WalrusLocalClusterOptions, type WalrusNodeBinding, type WalrusPhase, type WalrusPluginError, type WalrusResolved, type WalrusStorageNode, account, action, appName, capability, capabilitySink, chainId, codegenable, coin, contentHash, dashboard, deepbookCore as deepbook, deepbookFor, defineCapability, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, parseDevstackNetwork, parseDevstackNetworkName, pluginErrorContributions, postgres, projection, pythPriceFeedId, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir, resource, routable, runStack, seal, sealFor, snapshotable, stackName, strategyContributor, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
85
+ export { type AccountAcquireError, type AccountAcquirePhase, type AccountBindings, type AccountError, type AccountFunding, type AccountFundingCoinValue, type AccountFundingEntry, type AccountFundingRequest, type AccountFundingResult, type AccountFundingStrategy, type AccountMemberAlias, type AccountOptions, type AccountSignError, type AccountSignPhase, type AccountValue, type AccountVariantKind, type ActionBuildContext, type ActionError, type ActionOptions, type ActionPhase, type ActionReceipt, type ActionUpstreamRef, type AnyPlugin, type AnyResourceRef, type AppName, BUILTIN_COINS, type BootError, type Brand, type BuildCtx, type BuiltinCoinName, type ChainProbe, type ChainProbeError, type ChainProbeMode, type CodegenEmitContext, type CodegenEmitDone, type CodegenableDecl, type CoinAddressForm, type CoinBindings, type CoinError, type CoinMember, type CoinMemberAlias, type CoinPhase, type CoinValue, config_validation_d_exports as ConfigValidation, type ContainerHandle, type ContainerLabelTuple, type ContainerRuntime, type ContainerRuntimeError, ContainerRuntimeService, type ContentHash, type CrossCuttingFundingEntry, type CrossCuttingFundingProvider, DEEP_PRICE_FEED_ID, DEFAULT_DEVSTACK_NETWORK, DEFAULT_EPHEMERAL_FUND_MIST, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, type DashboardOptions, type DashboardValue, type DeepbookBindings, type DeepbookCommonOptions, type DeepbookConfigError, type DeepbookError, type DeepbookKnownNetwork, type DeepbookKnownOptions, type DeepbookOptions, type DeepbookOverrideOptions, type DeepbookPackageMember, type DeepbookPhase, type DeepbookPluginError, type DeepbookPool, type DeepbookPoolCoin, type DeepbookPoolSeedLiquidity, type DeepbookPoolSeedOrder, type DeepbookPoolSpec, type DeepbookResolved, type DependencyInput, type DependencyList, type DevstackNetworkModeRegistry, type DevstackNetworkName, DevstackNetworkParseError, type DevstackOptions, type DevstackOptionsWith, type DevstackRoutableUpstreamRegistry, type DiscoveredCoin, type DispatchId, type EndpointKey, type EntrypointDecl, type FactoriesByMode, type FactoriesFor, type FaucetBodyError, type FaucetConfigError, type FaucetError, type FaucetExhausted, type FaucetStrategy, type FaucetStrategyContribution, type FaucetUnreachable, type ForkUnsupportedError, HOST_SERVICE_PORT_TOKEN, type HostServiceError, type HostServiceOptions, type HostServiceReadyProbe, type HostServiceValue, http_probe_d_exports as HttpProbes, IdentityContext, type ImageRef, type KnownPackageOptions, type KnownPackageResolved, LOCAL_NETWORK_NAME, type LifecycleStatus, type LoadedImageBundle, type LocalPackageOptions, type LocalPackageResolved, type LogLevel, type LogLine, type LogPayload, Logger, type LoggerShape, managed_container_d_exports as ManagedContainers, type ManifestExtras, type ManifestExtrasContext, type ManifestExtrasInput, ManifestExtrasInvalid, ManifestExtrasLookupError, type ModeNamespace, type NetworkConfig, type NetworkMode, type PackageBindings, type PackageCapture, type PackageMember, type PackageResolved, type ParsedDevstackNetwork, type PhaseNarration, type Plugin, PluginContext, type PluginCtx, type PluginRole, type PluginSpec, probes_d_exports as Probes, process_lines_d_exports as ProcessLines, process_supervisor_d_exports as ProcessSupervisor, type ProjectionDecl, type ProjectionEvent, type PublishError, type PublisherAccountMember, redaction_d_exports as Redaction, type RedactionRule, type Renderer, type RendererError, type ResolveNetworkOptions, type ResolveStateDirOptions, type ResolvedCoin, type ResolvedDependencies, type ResolvedDevstackNetwork, type ResolvedKeypair, type ResolvedKnownPackage, type ResolvedLocalPackage, type ResolvedSuiNetwork, type ResourceIdOf, type ResourceRef, type ResourceValueOf, retry_policy_d_exports as RetryPolicy, type RoutableDecl, type RoutableHttpDecl, type RoutableTcpDecl, type RoutableUpstream, type RoutableUpstreamKind, type RunHandle, type RunStackIdentityOptions, type RunStackOptions, runtime_decode_d_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, type SealError as SealAcquireError, type SealAnyError, type SealBindings, type SealCommonOptions, type SealConfigError, type SealError, type SealForkKnownOptions, type SealKeyServer, type SealKeyServerEntry, type SealKnownResolved, type SealLiveOptions, type SealLocalKeygenOptions, type SealLocalKeygenResolved, type SealOptions, type SealResolved, type SignatureScheme, type SnapshotableDecl, type Stack, type StackName, type StrategyContributorDecl, type StrategyFor, type SuiCliError, type SuiConfigError, type SuiError, type SuiForkOptions, type SuiFundingEntry, type SuiLiveOptions, type SuiLocalOptions, type SuiLocalRpcOptions, type SuiNetworkConfigEntry, type SuiOptions, type SuiPluginError, type SyntheticImpersonationSigner, type TagBuffer, type TaggedImageRef, type TxResult, USDC_PRICE_FEED_ID, type WalCoinValue, type WalletAccountMember, type WalletBootError, type WalletBootPhase, type WalletError, type WalletOptions, type WalletRequestError, type WalletRequestPhase, type WalletValue, type WalrusBindings, type WalrusConfigError, type WalrusError, type WalrusKnownDeploymentOptions, type WalrusKnownNetwork, type WalrusLocalClusterOptions, type WalrusNodeBinding, type WalrusPhase, type WalrusPluginError, type WalrusResolved, type WalrusStorageNode, account, action, appName, chainIdForNetwork, coin, contentHash, dashboard, deepbookCore as deepbook, deepbookFor, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, networkNameFromChain, parseDevstackNetwork, parseDevstackNetworkName, projection, pythPriceFeedId, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir, resource, runStack, seal, sealFor, stackName, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
package/dist/index.mjs CHANGED
@@ -2,43 +2,42 @@ import { defineId, definePlugin, resource } from "./substrate/plugin.mjs";
2
2
  import "./api/define-plugin.mjs";
3
3
  import { defineDevstack } from "./api/define-devstack.mjs";
4
4
  import { defineDevstackWith } from "./api/define-devstack-with.mjs";
5
- import { appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
6
- import { IdentityContext } from "./substrate/runtime/paths.mjs";
7
- import { redaction_exports } from "./substrate/runtime/observability/redaction.mjs";
5
+ import { appName, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
8
6
  import { runtime_decode_exports } from "./substrate/runtime/runtime-decode.mjs";
9
7
  import { Logger } from "./substrate/runtime/observability/logger.mjs";
8
+ import { redaction_exports } from "./substrate/runtime/observability/redaction.mjs";
10
9
  import { process_lines_exports } from "./substrate/runtime/observability/process-lines.mjs";
11
10
  import "./substrate/runtime/observability/index.mjs";
11
+ import { IdentityContext } from "./substrate/runtime/paths.mjs";
12
12
  import { probes_exports } from "./substrate/runtime/probes.mjs";
13
13
  import { retry_policy_exports } from "./substrate/runtime/retry-policy.mjs";
14
14
  import { ContainerRuntimeService } from "./runtime/docker/service.mjs";
15
15
  import { process_supervisor_exports } from "./substrate/runtime/process-supervisor.mjs";
16
+ import { PluginContext } from "./substrate/plugin-ctx.mjs";
16
17
  import { http_probe_exports } from "./substrate/runtime/http-probe.mjs";
17
18
  import { managed_container_exports } from "./substrate/runtime/managed-container.mjs";
18
19
  import { config_validation_exports } from "./substrate/runtime/config-validation.mjs";
19
20
  import { ManifestExtrasInvalid, ManifestExtrasLookupError } from "./substrate/manifest.mjs";
20
- import { DEFAULT_DEVSTACK_NETWORK, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkParseError, parseDevstackNetwork, parseDevstackNetworkName, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir } from "./api/inference-network.mjs";
21
+ import { DEFAULT_DEVSTACK_NETWORK, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkParseError, LOCAL_NETWORK_NAME, chainIdForNetwork, networkNameFromChain, parseDevstackNetwork, parseDevstackNetworkName, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir } from "./api/inference-network.mjs";
21
22
  import { runStack } from "./api/run-stack.mjs";
22
- import { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor } from "./api/define-capabilities.mjs";
23
- import { pluginErrorContributions } from "./api/plugin-errors.mjs";
23
+ import { projection } from "./api/define-capabilities.mjs";
24
24
  import { defineModeNamespace } from "./api/mode-narrowed-factory.mjs";
25
25
  import "./substrate/runtime/container-runtime.mjs";
26
26
  import { defineFaucetStrategy } from "./plugins/faucet/index.mjs";
27
27
  import { sui, suiFor } from "./plugins/sui/index.mjs";
28
28
  import { DEFAULT_EPHEMERAL_FUND_MIST, SUI_FULL_COIN_TYPE } from "./plugins/account/funding.mjs";
29
29
  import { account } from "./plugins/account/index.mjs";
30
- import { knownPackage, localPackage } from "./plugins/package/index.mjs";
31
30
  import { isBareCoinType, validateBareCoinType } from "./plugins/coin/metadata.mjs";
32
31
  import { BUILTIN_COINS } from "./plugins/coin/address-resolution.mjs";
33
32
  import { coin } from "./plugins/coin/index.mjs";
33
+ import { knownPackage, localPackage } from "./plugins/package/index.mjs";
34
34
  import { HOST_SERVICE_PORT_TOKEN } from "./plugins/host-service/service.mjs";
35
35
  import { hostService } from "./plugins/host-service/index.mjs";
36
36
  import { wallet } from "./plugins/wallet/index.mjs";
37
37
  import { dashboard } from "./plugins/dashboard/index.mjs";
38
- import { postgres } from "./plugins/postgres/index.mjs";
39
38
  import { action } from "./plugins/action/index.mjs";
40
39
  import { walCoin, walrus, walrusFor } from "./plugins/walrus/index.mjs";
41
40
  import { seal, sealFor } from "./plugins/seal/index.mjs";
42
41
  import { DEEP_PRICE_FEED_ID, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./plugins/deepbook/types.mjs";
43
42
  import { deepbookCore, deepbookFor } from "./plugins/deepbook/index.mjs";
44
- export { BUILTIN_COINS, config_validation_exports as ConfigValidation, ContainerRuntimeService, DEEP_PRICE_FEED_ID, DEFAULT_DEVSTACK_NETWORK, DEFAULT_EPHEMERAL_FUND_MIST, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkParseError, HOST_SERVICE_PORT_TOKEN, http_probe_exports as HttpProbes, IdentityContext, Logger, managed_container_exports as ManagedContainers, ManifestExtrasInvalid, ManifestExtrasLookupError, probes_exports as Probes, process_lines_exports as ProcessLines, process_supervisor_exports as ProcessSupervisor, redaction_exports as Redaction, retry_policy_exports as RetryPolicy, runtime_decode_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, account, action, appName, capability, capabilitySink, chainId, codegenable, coin, contentHash, dashboard, deepbookCore as deepbook, deepbookFor, defineCapability, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, parseDevstackNetwork, parseDevstackNetworkName, pluginErrorContributions, postgres, projection, pythPriceFeedId, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir, resource, routable, runStack, seal, sealFor, snapshotable, stackName, strategyContributor, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
43
+ export { BUILTIN_COINS, config_validation_exports as ConfigValidation, ContainerRuntimeService, DEEP_PRICE_FEED_ID, DEFAULT_DEVSTACK_NETWORK, DEFAULT_EPHEMERAL_FUND_MIST, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkParseError, HOST_SERVICE_PORT_TOKEN, http_probe_exports as HttpProbes, IdentityContext, LOCAL_NETWORK_NAME, Logger, managed_container_exports as ManagedContainers, ManifestExtrasInvalid, ManifestExtrasLookupError, PluginContext, probes_exports as Probes, process_lines_exports as ProcessLines, process_supervisor_exports as ProcessSupervisor, redaction_exports as Redaction, retry_policy_exports as RetryPolicy, runtime_decode_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, account, action, appName, chainIdForNetwork, coin, contentHash, dashboard, deepbookCore as deepbook, deepbookFor, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, networkNameFromChain, parseDevstackNetwork, parseDevstackNetworkName, projection, pythPriceFeedId, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir, resource, runStack, seal, sealFor, stackName, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
@@ -0,0 +1,28 @@
1
+ import { Context, Effect, FileSystem, Layer, Scope, SubscriptionRef } from "effect";
2
+ import { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner";
3
+
4
+ //#region src/orchestrators/boot.d.ts
5
+ interface ProductionCodegenOptions {
6
+ readonly appRoot?: string;
7
+ /** Resolved absolute path to the dev-only + secret `generated-extras`
8
+ * tree for this stack, threaded into `CodegenRoot.extrasDir` and
9
+ * recorded in the manifest as `codegen.extrasDir` for the
10
+ * `@devstack-dev` Vite alias. This is the ONLY tree boot's codegen
11
+ * writes (`emitExtras`); boot never emits the committed `src/generated`
12
+ * tree, so it pins no live `outputDir` — the `CodegenRoot.outputDir`
13
+ * the production path carries is an unwritten default. The committed
14
+ * tree is owned solely by the stack-free `codegen` verb (wired
15
+ * separately, where it resolves its own output path). */
16
+ readonly extrasDir?: string;
17
+ /** Forwarded verbatim to `@mysten/codegen`'s
18
+ * `generateFromPackageSummary` via `layerMystenMoveCodegen` — see
19
+ * `DevstackOptions['codegen']` for the full contract. Default `false`
20
+ * (`@mysten/codegen`'s own default): phantom-only structs render as
21
+ * consts with the phantom placeholder baked into `.name`; `true`
22
+ * renders them as factories whose required type arguments compose a
23
+ * fully-qualified type tag. */
24
+ readonly includePhantomTypeParameters?: boolean;
25
+ }
26
+ //#endregion
27
+ export { ProductionCodegenOptions };
28
+ //# sourceMappingURL=boot.d.mts.map