@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.
- package/README.md +6 -3
- package/dashboard-ui/assets/grpc-a4usE3Nk.js +3 -0
- package/dashboard-ui/assets/index-B82Bh84P.css +1 -0
- package/dashboard-ui/assets/index-CRYJ4pru.js +1277 -0
- package/dashboard-ui/index.html +2 -2
- package/dist/api/define-capabilities.d.mts +1 -20
- package/dist/api/define-capabilities.mjs +15 -22
- package/dist/api/define-capabilities.mjs.map +1 -1
- package/dist/api/define-devstack-with.d.mts +7 -1
- package/dist/api/define-devstack-with.mjs.map +1 -1
- package/dist/api/define-devstack.mjs.map +1 -1
- package/dist/api/define-plugin.d.mts +2 -1
- package/dist/api/inference-network.d.mts +31 -17
- package/dist/api/inference-network.mjs +40 -43
- package/dist/api/inference-network.mjs.map +1 -1
- package/dist/api/load-config.mjs +88 -0
- package/dist/api/load-config.mjs.map +1 -0
- package/dist/api/mode-narrowed-factory.d.mts +1 -1
- package/dist/api/mode-narrowed-factory.mjs.map +1 -1
- package/dist/api/run-stack-internal.mjs +202 -0
- package/dist/api/run-stack-internal.mjs.map +1 -0
- package/dist/api/run-stack.d.mts +82 -31
- package/dist/api/run-stack.mjs +22 -141
- package/dist/api/run-stack.mjs.map +1 -1
- package/dist/build-integrations/dapp-kit/index.d.mts +61 -0
- package/dist/build-integrations/dapp-kit/index.mjs +58 -0
- package/dist/build-integrations/dapp-kit/index.mjs.map +1 -0
- package/dist/build-integrations/playwright/config.d.mts +1 -30
- package/dist/build-integrations/playwright/config.mjs +1 -27
- package/dist/build-integrations/playwright/config.mjs.map +1 -1
- package/dist/build-integrations/playwright/errors.d.mts +4 -7
- package/dist/build-integrations/playwright/errors.mjs.map +1 -1
- package/dist/build-integrations/playwright/global-setup.d.mts +42 -71
- package/dist/build-integrations/playwright/global-setup.mjs +142 -218
- package/dist/build-integrations/playwright/global-setup.mjs.map +1 -1
- package/dist/build-integrations/playwright/index.d.mts +2 -2
- package/dist/build-integrations/playwright/index.mjs +2 -2
- package/dist/build-integrations/playwright/stack-context.d.mts +3 -1
- package/dist/build-integrations/playwright/stack-context.mjs +4 -2
- package/dist/build-integrations/playwright/stack-context.mjs.map +1 -1
- package/dist/build-integrations/playwright/wallet-context.mjs +44 -19
- package/dist/build-integrations/playwright/wallet-context.mjs.map +1 -1
- package/dist/build-integrations/runtime/cold-start-url.mjs.map +1 -1
- package/dist/build-integrations/runtime/conventional-routes.mjs.map +1 -1
- package/dist/build-integrations/runtime/dapp-kit-slot.mjs.map +1 -1
- package/dist/build-integrations/runtime/discover.d.mts +6 -4
- package/dist/build-integrations/runtime/discover.mjs +15 -4
- package/dist/build-integrations/runtime/discover.mjs.map +1 -1
- package/dist/build-integrations/runtime/endpoint-registry.mjs.map +1 -1
- package/dist/build-integrations/runtime/errors.mjs.map +1 -1
- package/dist/build-integrations/runtime/read-stack-context.mjs +3 -3
- package/dist/build-integrations/runtime/read-stack-context.mjs.map +1 -1
- package/dist/build-integrations/runtime/resolve-discovery-env.d.mts +23 -7
- package/dist/build-integrations/runtime/resolve-discovery-env.mjs +25 -12
- package/dist/build-integrations/runtime/resolve-discovery-env.mjs.map +1 -1
- package/dist/build-integrations/runtime/stack-context.d.mts +2 -2
- package/dist/build-integrations/vite/index.d.mts +84 -19
- package/dist/build-integrations/vite/index.mjs +203 -28
- package/dist/build-integrations/vite/index.mjs.map +1 -1
- package/dist/build-integrations/vitest/config.d.mts +20 -2
- package/dist/build-integrations/vitest/config.mjs +16 -4
- package/dist/build-integrations/vitest/config.mjs.map +1 -1
- package/dist/build-integrations/vitest/env.d.mts +18 -10
- package/dist/build-integrations/vitest/env.mjs +11 -10
- package/dist/build-integrations/vitest/env.mjs.map +1 -1
- package/dist/build-integrations/vitest/errors.d.mts +7 -11
- package/dist/build-integrations/vitest/errors.mjs +3 -4
- package/dist/build-integrations/vitest/errors.mjs.map +1 -1
- package/dist/build-integrations/vitest/global-setup.d.mts +35 -0
- package/dist/build-integrations/vitest/global-setup.mjs +156 -0
- package/dist/build-integrations/vitest/global-setup.mjs.map +1 -0
- package/dist/build-integrations/vitest/index.d.mts +3 -2
- package/dist/build-integrations/vitest/index.mjs +3 -2
- package/dist/build-integrations/vitest/setup.mjs +2 -2
- package/dist/build-integrations/vitest/setup.mjs.map +1 -1
- package/dist/build-integrations/vitest/stack-context.d.mts +5 -3
- package/dist/build-integrations/vitest/stack-context.mjs +3 -2
- package/dist/build-integrations/vitest/stack-context.mjs.map +1 -1
- package/dist/cli/bail.mjs.map +1 -1
- package/dist/cli/doctor-probes.mjs +1 -3
- package/dist/cli/doctor-probes.mjs.map +1 -1
- package/dist/cli/main.d.mts +23 -1
- package/dist/cli/main.mjs +63 -8
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/prune-direct.mjs.map +1 -1
- package/dist/cli/snapshot-reader.mjs.map +1 -1
- package/dist/cli/up-lifecycle.mjs.map +1 -1
- package/dist/cli/wirings/apply.mjs +28 -21
- package/dist/cli/wirings/apply.mjs.map +1 -1
- package/dist/cli/wirings/codegen.mjs +108 -0
- package/dist/cli/wirings/codegen.mjs.map +1 -0
- package/dist/cli/wirings/config-loader.mjs +12 -62
- package/dist/cli/wirings/config-loader.mjs.map +1 -1
- package/dist/cli/wirings/dump-ids.mjs +86 -0
- package/dist/cli/wirings/dump-ids.mjs.map +1 -0
- package/dist/cli/wirings/engine-command.mjs +1 -1
- package/dist/cli/wirings/engine-command.mjs.map +1 -1
- package/dist/cli/wirings/identity.mjs +2 -2
- package/dist/cli/wirings/identity.mjs.map +1 -1
- package/dist/cli/wirings/provide-file-system.mjs.map +1 -1
- package/dist/cli/wirings/read-devstack-version.mjs +17 -0
- package/dist/cli/wirings/read-devstack-version.mjs.map +1 -0
- package/dist/cli/wirings/snapshot.mjs +27 -34
- package/dist/cli/wirings/snapshot.mjs.map +1 -1
- package/dist/cli/wirings/up-ipc.mjs +147 -0
- package/dist/cli/wirings/up-ipc.mjs.map +1 -0
- package/dist/cli/wirings/up.mjs +218 -198
- package/dist/cli/wirings/up.mjs.map +1 -1
- package/dist/cli/wirings/wipe.mjs +1 -1
- package/dist/cli/wirings/wipe.mjs.map +1 -1
- package/dist/contracts/chain-probe.d.mts +1 -1
- package/dist/contracts/chain-probe.mjs +1 -1
- package/dist/contracts/chain-probe.mjs.map +1 -1
- package/dist/contracts/codegenable.d.mts +60 -6
- package/dist/contracts/codegenable.mjs +28 -0
- package/dist/contracts/codegenable.mjs.map +1 -0
- package/dist/contracts/config-bindings.mjs +162 -0
- package/dist/contracts/config-bindings.mjs.map +1 -0
- package/dist/contracts/container-runtime.d.mts +23 -17
- package/dist/contracts/plugin-expander.mjs.map +1 -1
- package/dist/contracts/snapshotable.d.mts +5 -7
- package/dist/contracts/wallet-protocol.d.mts +2 -5
- package/dist/contracts/wallet-protocol.mjs +2 -5
- package/dist/contracts/wallet-protocol.mjs.map +1 -1
- package/dist/index.d.mts +21 -26
- package/dist/index.mjs +8 -9
- package/dist/orchestrators/boot.d.mts +28 -0
- package/dist/orchestrators/boot.mjs +440 -0
- package/dist/orchestrators/boot.mjs.map +1 -0
- package/dist/orchestrators/codegen/bindings.d.mts +13 -1
- package/dist/orchestrators/codegen/bindings.mjs +23 -9
- package/dist/orchestrators/codegen/bindings.mjs.map +1 -1
- package/dist/orchestrators/codegen/config-runtime.mjs +208 -0
- package/dist/orchestrators/codegen/config-runtime.mjs.map +1 -0
- package/dist/orchestrators/codegen/emit.mjs +1 -1
- package/dist/orchestrators/codegen/emit.mjs.map +1 -1
- package/dist/orchestrators/codegen/errors.mjs +21 -1
- package/dist/orchestrators/codegen/errors.mjs.map +1 -1
- package/dist/orchestrators/codegen/format.mjs +2 -0
- package/dist/orchestrators/codegen/format.mjs.map +1 -1
- package/dist/orchestrators/codegen/gitignore.mjs +30 -11
- package/dist/orchestrators/codegen/gitignore.mjs.map +1 -1
- package/dist/orchestrators/codegen/id-config.mjs +107 -0
- package/dist/orchestrators/codegen/id-config.mjs.map +1 -0
- package/dist/orchestrators/codegen/output-location.mjs +23 -32
- package/dist/orchestrators/codegen/output-location.mjs.map +1 -1
- package/dist/orchestrators/codegen/paths.mjs +8 -1
- package/dist/orchestrators/codegen/paths.mjs.map +1 -1
- package/dist/orchestrators/codegen/permissions.mjs.map +1 -1
- package/dist/orchestrators/codegen/service.mjs +286 -58
- package/dist/orchestrators/codegen/service.mjs.map +1 -1
- package/dist/orchestrators/layers.mjs +31 -0
- package/dist/orchestrators/layers.mjs.map +1 -0
- package/dist/orchestrators/lifecycle-prune/errors.mjs.map +1 -1
- package/dist/orchestrators/lifecycle-prune/index.mjs +8 -10
- package/dist/orchestrators/lifecycle-prune/index.mjs.map +1 -1
- package/dist/orchestrators/network-options.d.mts +52 -0
- package/dist/orchestrators/network-options.mjs +43 -0
- package/dist/orchestrators/network-options.mjs.map +1 -0
- package/dist/orchestrators/router/cleanup.mjs.map +1 -1
- package/dist/orchestrators/router/cors.mjs.map +1 -1
- package/dist/orchestrators/router/entrypoints.mjs.map +1 -1
- package/dist/orchestrators/router/errors.mjs.map +1 -1
- package/dist/orchestrators/router/file-provider.mjs.map +1 -1
- package/dist/orchestrators/router/hostname.mjs.map +1 -1
- package/dist/orchestrators/router/profile.mjs +1 -1
- package/dist/orchestrators/router/profile.mjs.map +1 -1
- package/dist/orchestrators/router/service.d.mts +2 -2
- package/dist/orchestrators/router/service.mjs +12 -27
- package/dist/orchestrators/router/service.mjs.map +1 -1
- package/dist/orchestrators/router/traefik-container.mjs +1 -1
- package/dist/orchestrators/router/traefik-container.mjs.map +1 -1
- package/dist/orchestrators/snapshot/capture.mjs +171 -195
- package/dist/orchestrators/snapshot/capture.mjs.map +1 -1
- package/dist/orchestrators/snapshot/descriptor.d.mts +1 -1
- package/dist/orchestrators/snapshot/descriptor.mjs +53 -11
- package/dist/orchestrators/snapshot/descriptor.mjs.map +1 -1
- package/dist/orchestrators/snapshot/identity-guard.mjs +3 -5
- package/dist/orchestrators/snapshot/identity-guard.mjs.map +1 -1
- package/dist/orchestrators/snapshot/image-bundle-tags.mjs +32 -101
- package/dist/orchestrators/snapshot/image-bundle-tags.mjs.map +1 -1
- package/dist/orchestrators/snapshot/index.mjs +1 -4
- package/dist/orchestrators/snapshot/integrity.mjs.map +1 -1
- package/dist/orchestrators/snapshot/interrupted-restore.mjs +116 -0
- package/dist/orchestrators/snapshot/interrupted-restore.mjs.map +1 -0
- package/dist/orchestrators/snapshot/phase-error.mjs.map +1 -1
- package/dist/orchestrators/snapshot/prune.mjs +40 -31
- package/dist/orchestrators/snapshot/prune.mjs.map +1 -1
- package/dist/orchestrators/snapshot/restore.mjs +221 -196
- package/dist/orchestrators/snapshot/restore.mjs.map +1 -1
- package/dist/orchestrators/snapshot/service.mjs +72 -62
- package/dist/orchestrators/snapshot/service.mjs.map +1 -1
- package/dist/orchestrators/snapshot/wipe.mjs +67 -56
- package/dist/orchestrators/snapshot/wipe.mjs.map +1 -1
- package/dist/plugins/account/codegen.mjs +3 -0
- package/dist/plugins/account/codegen.mjs.map +1 -1
- package/dist/plugins/account/errors.d.mts +2 -2
- package/dist/plugins/account/errors.mjs +1 -4
- package/dist/plugins/account/errors.mjs.map +1 -1
- package/dist/plugins/account/funding.mjs +3 -27
- package/dist/plugins/account/funding.mjs.map +1 -1
- package/dist/plugins/account/index.d.mts +3 -8
- package/dist/plugins/account/index.mjs +71 -35
- package/dist/plugins/account/index.mjs.map +1 -1
- package/dist/plugins/account/keypair.d.mts +8 -7
- package/dist/plugins/account/keypair.mjs +5 -18
- package/dist/plugins/account/keypair.mjs.map +1 -1
- package/dist/plugins/account/lease.mjs.map +1 -1
- package/dist/plugins/account/registry.d.mts +1 -46
- package/dist/plugins/account/registry.mjs.map +1 -1
- package/dist/plugins/account/service.d.mts +43 -34
- package/dist/plugins/account/service.mjs +9 -54
- package/dist/plugins/account/service.mjs.map +1 -1
- package/dist/plugins/account/snapshot.mjs.map +1 -1
- package/dist/plugins/account/variants/ephemeral.mjs.map +1 -1
- package/dist/plugins/account/variants/impersonate.mjs.map +1 -1
- package/dist/plugins/account/variants/signer.mjs.map +1 -1
- package/dist/plugins/action/discriminator.mjs.map +1 -1
- package/dist/plugins/action/errors.mjs +1 -4
- package/dist/plugins/action/errors.mjs.map +1 -1
- package/dist/plugins/action/execute.mjs +3 -4
- package/dist/plugins/action/execute.mjs.map +1 -1
- package/dist/plugins/action/index.d.mts +2 -2
- package/dist/plugins/action/index.mjs +7 -11
- package/dist/plugins/action/index.mjs.map +1 -1
- package/dist/plugins/action/service.d.mts +5 -7
- package/dist/plugins/action/service.mjs +2 -16
- package/dist/plugins/action/service.mjs.map +1 -1
- package/dist/plugins/coin/address-resolution.mjs.map +1 -1
- package/dist/plugins/coin/codegen.mjs +97 -16
- package/dist/plugins/coin/codegen.mjs.map +1 -1
- package/dist/plugins/coin/discovery.mjs.map +1 -1
- package/dist/plugins/coin/errors.mjs +1 -4
- package/dist/plugins/coin/errors.mjs.map +1 -1
- package/dist/plugins/coin/index.d.mts +4 -34
- package/dist/plugins/coin/index.mjs +47 -28
- package/dist/plugins/coin/index.mjs.map +1 -1
- package/dist/plugins/coin/metadata.d.mts +1 -0
- package/dist/plugins/coin/metadata.mjs +8 -9
- package/dist/plugins/coin/metadata.mjs.map +1 -1
- package/dist/plugins/coin/mint.mjs +7 -21
- package/dist/plugins/coin/mint.mjs.map +1 -1
- package/dist/plugins/coin/registry.mjs +33 -20
- package/dist/plugins/coin/registry.mjs.map +1 -1
- package/dist/plugins/coin/service.d.mts +1 -1
- package/dist/plugins/coin/service.mjs +1 -8
- package/dist/plugins/coin/service.mjs.map +1 -1
- package/dist/plugins/coin/snapshot.mjs.map +1 -1
- package/dist/plugins/coin/type-strings.mjs.map +1 -1
- package/dist/plugins/dashboard/domain.mjs +106 -167
- package/dist/plugins/dashboard/domain.mjs.map +1 -1
- package/dist/plugins/dashboard/index.mjs +13 -13
- package/dist/plugins/dashboard/index.mjs.map +1 -1
- package/dist/plugins/dashboard/origin-policy.mjs +3 -3
- package/dist/plugins/dashboard/origin-policy.mjs.map +1 -1
- package/dist/plugins/dashboard/routable.mjs.map +1 -1
- package/dist/plugins/dashboard/schema/builder.mjs.map +1 -1
- package/dist/plugins/dashboard/schema/enums.mjs.map +1 -1
- package/dist/plugins/dashboard/schema/root.mjs +23 -44
- package/dist/plugins/dashboard/schema/root.mjs.map +1 -1
- package/dist/plugins/dashboard/schema/types.mjs +37 -91
- package/dist/plugins/dashboard/schema/types.mjs.map +1 -1
- package/dist/plugins/dashboard/schema.mjs.map +1 -1
- package/dist/plugins/dashboard/server.mjs.map +1 -1
- package/dist/plugins/deepbook/codegen.d.mts +12 -11
- package/dist/plugins/deepbook/codegen.mjs +108 -11
- package/dist/plugins/deepbook/codegen.mjs.map +1 -1
- package/dist/plugins/deepbook/deploy.mjs +7 -14
- package/dist/plugins/deepbook/deploy.mjs.map +1 -1
- package/dist/plugins/deepbook/errors.mjs +4 -2
- package/dist/plugins/deepbook/errors.mjs.map +1 -1
- package/dist/plugins/deepbook/faucet-strategy.mjs +4 -10
- package/dist/plugins/deepbook/faucet-strategy.mjs.map +1 -1
- package/dist/plugins/deepbook/hash.mjs.map +1 -1
- package/dist/plugins/deepbook/index.d.mts +38 -34
- package/dist/plugins/deepbook/index.mjs +133 -64
- package/dist/plugins/deepbook/index.mjs.map +1 -1
- package/dist/plugins/deepbook/plugin-key.mjs.map +1 -1
- package/dist/plugins/deepbook/pyth/index.mjs +4 -8
- package/dist/plugins/deepbook/pyth/index.mjs.map +1 -1
- package/dist/plugins/deepbook/snapshot.mjs +0 -1
- package/dist/plugins/deepbook/snapshot.mjs.map +1 -1
- package/dist/plugins/deepbook/type-strings.mjs.map +1 -1
- package/dist/plugins/deepbook/types.d.mts +2 -1
- package/dist/plugins/deepbook/types.mjs.map +1 -1
- package/dist/plugins/faucet/dispatcher.d.mts +3 -3
- package/dist/plugins/faucet/dispatcher.mjs.map +1 -1
- package/dist/plugins/faucet/errors.mjs.map +1 -1
- package/dist/plugins/faucet/http.mjs +2 -10
- package/dist/plugins/faucet/http.mjs.map +1 -1
- package/dist/plugins/faucet/index.mjs +0 -1
- package/dist/plugins/faucet/index.mjs.map +1 -1
- package/dist/plugins/host-service/errors.d.mts +1 -3
- package/dist/plugins/host-service/errors.mjs +1 -2
- package/dist/plugins/host-service/errors.mjs.map +1 -1
- package/dist/plugins/host-service/index.d.mts +1 -2
- package/dist/plugins/host-service/index.mjs +11 -11
- package/dist/plugins/host-service/index.mjs.map +1 -1
- package/dist/plugins/host-service/routable.mjs.map +1 -1
- package/dist/plugins/host-service/service.mjs +13 -13
- package/dist/plugins/host-service/service.mjs.map +1 -1
- package/dist/plugins/internal/acquire-on-chain-artifact.mjs.map +1 -1
- package/dist/plugins/internal/codegen-helpers.mjs +2 -0
- package/dist/plugins/internal/codegen-helpers.mjs.map +1 -1
- package/dist/plugins/internal/funding-failure-error.mjs.map +1 -1
- package/dist/plugins/{postgres → internal/postgres-sidecar}/connection.mjs +1 -1
- package/dist/plugins/internal/postgres-sidecar/connection.mjs.map +1 -0
- package/dist/plugins/{postgres → internal/postgres-sidecar}/db-ensure.mjs +30 -16
- package/dist/plugins/internal/postgres-sidecar/db-ensure.mjs.map +1 -0
- package/dist/plugins/internal/postgres-sidecar/errors.mjs +21 -0
- package/dist/plugins/internal/postgres-sidecar/errors.mjs.map +1 -0
- package/dist/{substrate/runtime/scoped-multimap → plugins/internal/postgres-sidecar}/index.mjs +1 -0
- package/dist/plugins/internal/postgres-sidecar/service.mjs +121 -0
- package/dist/plugins/internal/postgres-sidecar/service.mjs.map +1 -0
- package/dist/plugins/package/build.mjs +2 -2
- package/dist/plugins/package/build.mjs.map +1 -1
- package/dist/plugins/package/codegen.d.mts +7 -14
- package/dist/plugins/package/codegen.mjs +187 -59
- package/dist/plugins/package/codegen.mjs.map +1 -1
- package/dist/plugins/package/dep-resolution.mjs +51 -3
- package/dist/plugins/package/dep-resolution.mjs.map +1 -1
- package/dist/plugins/package/errors.mjs +1 -4
- package/dist/plugins/package/errors.mjs.map +1 -1
- package/dist/plugins/package/git-source.d.mts +18 -0
- package/dist/plugins/package/git-source.mjs +119 -0
- package/dist/plugins/package/git-source.mjs.map +1 -0
- package/dist/plugins/package/index.d.mts +28 -19
- package/dist/plugins/package/index.mjs +107 -32
- package/dist/plugins/package/index.mjs.map +1 -1
- package/dist/plugins/package/mode-known.mjs +2 -2
- package/dist/plugins/package/mode-known.mjs.map +1 -1
- package/dist/plugins/package/mode-local.mjs +18 -35
- package/dist/plugins/package/mode-local.mjs.map +1 -1
- package/dist/plugins/package/publish-executor.mjs +13 -8
- package/dist/plugins/package/publish-executor.mjs.map +1 -1
- package/dist/plugins/package/publish-output.d.mts +1 -11
- package/dist/plugins/package/publish-output.mjs +1 -9
- package/dist/plugins/package/publish-output.mjs.map +1 -1
- package/dist/plugins/package/registry.d.mts +1 -1
- package/dist/plugins/package/registry.mjs +26 -14
- package/dist/plugins/package/registry.mjs.map +1 -1
- package/dist/plugins/package/service.mjs.map +1 -1
- package/dist/plugins/package/snapshot.mjs.map +1 -1
- package/dist/plugins/router-entrypoints.mjs +1 -3
- package/dist/plugins/router-entrypoints.mjs.map +1 -1
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs +1 -2
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs.map +1 -1
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs +1 -6
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs.map +1 -1
- package/dist/plugins/seal/codegen.d.mts +1 -5
- package/dist/plugins/seal/codegen.mjs +83 -12
- package/dist/plugins/seal/codegen.mjs.map +1 -1
- package/dist/plugins/seal/config-render.mjs +2 -6
- package/dist/plugins/seal/config-render.mjs.map +1 -1
- package/dist/plugins/seal/deploy.mjs +18 -29
- package/dist/plugins/seal/deploy.mjs.map +1 -1
- package/dist/plugins/seal/errors.d.mts +4 -5
- package/dist/plugins/seal/errors.mjs +1 -8
- package/dist/plugins/seal/errors.mjs.map +1 -1
- package/dist/plugins/seal/index.d.mts +7 -28
- package/dist/plugins/seal/index.mjs +69 -47
- package/dist/plugins/seal/index.mjs.map +1 -1
- package/dist/plugins/seal/key-manager.mjs.map +1 -1
- package/dist/plugins/seal/key-server.mjs +1 -6
- package/dist/plugins/seal/key-server.mjs.map +1 -1
- package/dist/plugins/seal/keygen.mjs +2 -3
- package/dist/plugins/seal/keygen.mjs.map +1 -1
- package/dist/plugins/seal/mode/fork-known.mjs.map +1 -1
- package/dist/plugins/seal/mode/live.mjs +1 -1
- package/dist/plugins/seal/mode/live.mjs.map +1 -1
- package/dist/plugins/seal/mode/local-keygen.mjs +4 -10
- package/dist/plugins/seal/mode/local-keygen.mjs.map +1 -1
- package/dist/plugins/seal/plugin-key.mjs.map +1 -1
- package/dist/plugins/seal/registry-publish.mjs.map +1 -1
- package/dist/plugins/seal/routable.mjs.map +1 -1
- package/dist/plugins/seal/service.mjs.map +1 -1
- package/dist/plugins/seal/snapshot.mjs +1 -2
- package/dist/plugins/seal/snapshot.mjs.map +1 -1
- package/dist/plugins/sui/auto-tick.mjs +5 -5
- package/dist/plugins/sui/auto-tick.mjs.map +1 -1
- package/dist/plugins/sui/chain-build-container.mjs +2 -2
- package/dist/plugins/sui/chain-build-container.mjs.map +1 -1
- package/dist/plugins/sui/chain-probe.mjs +4 -4
- package/dist/plugins/sui/chain-probe.mjs.map +1 -1
- package/dist/plugins/sui/codegen.d.mts +9 -7
- package/dist/plugins/sui/codegen.mjs +49 -46
- package/dist/plugins/sui/codegen.mjs.map +1 -1
- package/dist/plugins/sui/errors.d.mts +1 -1
- package/dist/plugins/sui/errors.mjs +1 -9
- package/dist/plugins/sui/errors.mjs.map +1 -1
- package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/index.d.mts +1 -1
- package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/index.mjs +3 -7
- package/dist/plugins/sui/exec/index.mjs.map +1 -0
- package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/sign-and-dispatch.mjs +1 -1
- package/dist/plugins/sui/exec/sign-and-dispatch.mjs.map +1 -0
- package/dist/plugins/sui/fork-faucet-strategy.mjs +2 -6
- package/dist/plugins/sui/fork-faucet-strategy.mjs.map +1 -1
- package/dist/plugins/sui/fork-orchestration.mjs +13 -23
- package/dist/plugins/sui/fork-orchestration.mjs.map +1 -1
- package/dist/plugins/sui/fork-transaction.mjs.map +1 -1
- package/dist/plugins/sui/index.d.mts +34 -83
- package/dist/plugins/sui/index.mjs +200 -68
- package/dist/plugins/sui/index.mjs.map +1 -1
- package/dist/{substrate/runtime/sui-ledger → plugins/sui/ledger}/object-ref.mjs +1 -1
- package/dist/plugins/sui/ledger/object-ref.mjs.map +1 -0
- package/dist/plugins/sui/local-faucet-strategy.mjs +1 -5
- package/dist/plugins/sui/local-faucet-strategy.mjs.map +1 -1
- package/dist/plugins/sui/log-attrs.mjs +11 -0
- package/dist/plugins/sui/log-attrs.mjs.map +1 -0
- package/dist/plugins/sui/mode/external.mjs +4 -12
- package/dist/plugins/sui/mode/external.mjs.map +1 -1
- package/dist/plugins/sui/mode/fork.mjs +19 -16
- package/dist/plugins/sui/mode/fork.mjs.map +1 -1
- package/dist/plugins/sui/mode/live.mjs +4 -17
- package/dist/plugins/sui/mode/live.mjs.map +1 -1
- package/dist/plugins/sui/mode/local.d.mts +1 -0
- package/dist/plugins/sui/mode/local.mjs +203 -61
- package/dist/plugins/sui/mode/local.mjs.map +1 -1
- package/dist/plugins/sui/mode/shared-boot.mjs +18 -23
- package/dist/plugins/sui/mode/shared-boot.mjs.map +1 -1
- package/dist/plugins/sui/mode/shared.d.mts +6 -7
- package/dist/plugins/sui/mode/shared.mjs.map +1 -1
- package/dist/plugins/sui/mode/spec.d.mts +23 -6
- package/dist/{substrate/runtime/sui-move-build → plugins/sui/move}/index.mjs +28 -30
- package/dist/plugins/sui/move/index.mjs.map +1 -0
- package/dist/plugins/sui/move-summary-runner.mjs +8 -4
- package/dist/plugins/sui/move-summary-runner.mjs.map +1 -1
- package/dist/{substrate/network.d.mts → plugins/sui/network-config.d.mts} +11 -10
- package/dist/plugins/sui/network-resolver.d.mts +6 -6
- package/dist/plugins/sui/routable.mjs.map +1 -1
- package/dist/plugins/sui/service.mjs +10 -6
- package/dist/plugins/sui/service.mjs.map +1 -1
- package/dist/plugins/sui/snapshot.mjs +10 -5
- package/dist/plugins/sui/snapshot.mjs.map +1 -1
- package/dist/plugins/wallet/codegen.d.mts +8 -6
- package/dist/plugins/wallet/codegen.mjs +4 -10
- package/dist/plugins/wallet/codegen.mjs.map +1 -1
- package/dist/plugins/wallet/errors.mjs +1 -4
- package/dist/plugins/wallet/errors.mjs.map +1 -1
- package/dist/plugins/wallet/index.d.mts +3 -6
- package/dist/plugins/wallet/index.mjs +16 -21
- package/dist/plugins/wallet/index.mjs.map +1 -1
- package/dist/plugins/wallet/origin-policy.mjs +3 -3
- package/dist/plugins/wallet/origin-policy.mjs.map +1 -1
- package/dist/plugins/wallet/pairing.mjs +6 -24
- package/dist/plugins/wallet/pairing.mjs.map +1 -1
- package/dist/plugins/wallet/protocol.mjs.map +1 -1
- package/dist/plugins/wallet/routable.mjs.map +1 -1
- package/dist/plugins/wallet/server.mjs +17 -24
- package/dist/plugins/wallet/server.mjs.map +1 -1
- package/dist/plugins/wallet/service.d.mts +2 -2
- package/dist/plugins/wallet/service.mjs +4 -15
- package/dist/plugins/wallet/service.mjs.map +1 -1
- package/dist/plugins/wallet/snapshot.mjs.map +1 -1
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs +1 -5
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs.map +1 -1
- package/dist/plugins/walrus/codegen.d.mts +2 -13
- package/dist/plugins/walrus/codegen.mjs +93 -28
- package/dist/plugins/walrus/codegen.mjs.map +1 -1
- package/dist/plugins/walrus/deploy-paths.mjs +2 -3
- package/dist/plugins/walrus/deploy-paths.mjs.map +1 -1
- package/dist/plugins/walrus/deploy.mjs +26 -19
- package/dist/plugins/walrus/deploy.mjs.map +1 -1
- package/dist/plugins/walrus/errors.mjs +1 -8
- package/dist/plugins/walrus/errors.mjs.map +1 -1
- package/dist/plugins/walrus/faucet-strategy.mjs +15 -1
- package/dist/plugins/walrus/faucet-strategy.mjs.map +1 -1
- package/dist/plugins/walrus/index.d.mts +13 -44
- package/dist/plugins/walrus/index.mjs +119 -122
- package/dist/plugins/walrus/index.mjs.map +1 -1
- package/dist/plugins/walrus/mode/known-deploy.mjs +6 -6
- package/dist/plugins/walrus/mode/known-deploy.mjs.map +1 -1
- package/dist/plugins/walrus/mode/local-cluster.d.mts +2 -2
- package/dist/plugins/walrus/mode/local-cluster.mjs +2 -10
- package/dist/plugins/walrus/mode/local-cluster.mjs.map +1 -1
- package/dist/plugins/walrus/plugin-key.mjs.map +1 -1
- package/dist/plugins/walrus/registry-publish.mjs.map +1 -1
- package/dist/plugins/walrus/routable.mjs.map +1 -1
- package/dist/plugins/walrus/service.mjs.map +1 -1
- package/dist/plugins/walrus/snapshot.mjs +3 -3
- package/dist/plugins/walrus/snapshot.mjs.map +1 -1
- package/dist/plugins/walrus/storage-nodes.mjs +53 -14
- package/dist/plugins/walrus/storage-nodes.mjs.map +1 -1
- package/dist/plugins/walrus/wal-swap.mjs +4 -8
- package/dist/plugins/walrus/wal-swap.mjs.map +1 -1
- package/dist/primitives/artifact-publisher.mjs.map +1 -1
- package/dist/primitives/cache.d.mts +1 -1
- package/dist/runtime/docker/client.mjs +47 -3
- package/dist/runtime/docker/client.mjs.map +1 -1
- package/dist/runtime/docker/container.mjs +37 -57
- package/dist/runtime/docker/container.mjs.map +1 -1
- package/dist/runtime/docker/errors.mjs.map +1 -1
- package/dist/runtime/docker/exec.mjs +2 -2
- package/dist/runtime/docker/exec.mjs.map +1 -1
- package/dist/runtime/docker/image.mjs +10 -11
- package/dist/runtime/docker/image.mjs.map +1 -1
- package/dist/runtime/docker/index.mjs +0 -1
- package/dist/runtime/docker/inspect-and-decode.mjs.map +1 -1
- package/dist/runtime/docker/inventory.mjs +9 -9
- package/dist/runtime/docker/inventory.mjs.map +1 -1
- package/dist/runtime/docker/labels.mjs +12 -1
- package/dist/runtime/docker/labels.mjs.map +1 -1
- package/dist/runtime/docker/network.mjs +6 -6
- package/dist/runtime/docker/network.mjs.map +1 -1
- package/dist/runtime/docker/render-run-args.mjs.map +1 -1
- package/dist/runtime/docker/service.mjs +31 -45
- package/dist/runtime/docker/service.mjs.map +1 -1
- package/dist/runtime/docker/sweep.mjs +14 -64
- package/dist/runtime/docker/sweep.mjs.map +1 -1
- package/dist/runtime/docker/volume.mjs +1 -1
- package/dist/runtime/docker/volume.mjs.map +1 -1
- package/dist/runtime/docker/wrap.mjs +14 -2
- package/dist/runtime/docker/wrap.mjs.map +1 -1
- package/dist/substrate/brand.d.mts +2 -5
- package/dist/substrate/brand.mjs +3 -2
- package/dist/substrate/brand.mjs.map +1 -1
- package/dist/substrate/cross-process.mjs +2 -16
- package/dist/substrate/cross-process.mjs.map +1 -1
- package/dist/substrate/event-time.mjs +0 -2
- package/dist/substrate/event-time.mjs.map +1 -1
- package/dist/substrate/events.d.mts +46 -16
- package/dist/substrate/identity.d.mts +11 -5
- package/dist/substrate/manifest.d.mts +33 -26
- package/dist/substrate/manifest.mjs +8 -3
- package/dist/substrate/manifest.mjs.map +1 -1
- package/dist/substrate/options.d.mts +33 -4
- package/dist/substrate/plugin-ctx.d.mts +70 -0
- package/dist/substrate/plugin-ctx.mjs +66 -0
- package/dist/substrate/plugin-ctx.mjs.map +1 -0
- package/dist/substrate/plugin.d.mts +46 -38
- package/dist/substrate/plugin.mjs +13 -9
- package/dist/substrate/plugin.mjs.map +1 -1
- package/dist/substrate/projection.d.mts +1 -1
- package/dist/substrate/runtime/atomic-write.mjs +3 -4
- package/dist/substrate/runtime/atomic-write.mjs.map +1 -1
- package/dist/substrate/runtime/cache/schema.mjs.map +1 -1
- package/dist/substrate/runtime/cache/service.mjs +50 -20
- package/dist/substrate/runtime/cache/service.mjs.map +1 -1
- package/dist/substrate/runtime/config-validation.mjs.map +1 -1
- package/dist/substrate/runtime/control-plane/domain.mjs +34 -12
- package/dist/substrate/runtime/control-plane/domain.mjs.map +1 -1
- package/dist/substrate/runtime/control-plane/service.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs +14 -17
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/index.mjs +0 -2
- package/dist/substrate/runtime/cross-process/live-clock.mjs +1 -1
- package/dist/substrate/runtime/cross-process/live-clock.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/liveness.mjs +11 -18
- package/dist/substrate/runtime/cross-process/liveness.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/reclaim-stale-file.mjs +2 -2
- package/dist/substrate/runtime/cross-process/reclaim-stale-file.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/roster.mjs +17 -127
- package/dist/substrate/runtime/cross-process/roster.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/self-pid.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/stack-lock.mjs +29 -28
- package/dist/substrate/runtime/cross-process/stack-lock.mjs.map +1 -1
- package/dist/substrate/runtime/current-plugin.mjs.map +1 -1
- package/dist/substrate/runtime/errors.mjs +1 -13
- package/dist/substrate/runtime/errors.mjs.map +1 -1
- package/dist/substrate/runtime/format-unknown-error.mjs.map +1 -1
- package/dist/substrate/runtime/host-bind-mount-owner.mjs.map +1 -1
- package/dist/substrate/runtime/host-gateway.mjs.map +1 -1
- package/dist/substrate/runtime/host-tree-tar/index.mjs +15 -163
- package/dist/substrate/runtime/host-tree-tar/index.mjs.map +1 -1
- package/dist/substrate/runtime/http-probe.d.mts +1 -3
- package/dist/substrate/runtime/http-probe.mjs.map +1 -1
- package/dist/substrate/runtime/index.mjs +1 -6
- package/dist/substrate/runtime/lease-broker/service.mjs +5 -23
- package/dist/substrate/runtime/lease-broker/service.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs +3 -3
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/graph-input-id.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/graph-input-id.mjs +133 -0
- package/dist/substrate/runtime/lifecycle/graph-input-id.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/index.mjs +2 -2
- package/dist/substrate/runtime/lifecycle/plugin-registry.d.mts +1 -1
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs +22 -1
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/ready-gate.mjs +2 -15
- package/dist/substrate/runtime/lifecycle/ready-gate.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs +29 -25
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/signals.mjs +1 -1
- package/dist/substrate/runtime/lifecycle/signals.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/state-machine.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/watch-attribution.d.mts +1 -1
- package/dist/substrate/runtime/lifecycle/watch-attribution.mjs +0 -1
- package/dist/substrate/runtime/lifecycle/watch-attribution.mjs.map +1 -1
- package/dist/substrate/runtime/managed-container.d.mts +5 -1
- package/dist/substrate/runtime/managed-container.mjs +8 -10
- package/dist/substrate/runtime/managed-container.mjs.map +1 -1
- package/dist/substrate/runtime/manifest/manifest.mjs +8 -30
- package/dist/substrate/runtime/manifest/manifest.mjs.map +1 -1
- package/dist/substrate/runtime/mode-errors.d.mts +1 -2
- package/dist/substrate/runtime/mode-errors.mjs.map +1 -1
- package/dist/substrate/runtime/observability/cascade-formatter.mjs +1 -11
- package/dist/substrate/runtime/observability/cascade-formatter.mjs.map +1 -1
- package/dist/substrate/runtime/observability/ignore-with-log.mjs.map +1 -1
- package/dist/substrate/runtime/observability/index.d.mts +1 -1
- package/dist/substrate/runtime/observability/index.mjs +4 -6
- package/dist/substrate/runtime/observability/log-attrs.mjs +46 -0
- package/dist/substrate/runtime/observability/log-attrs.mjs.map +1 -0
- package/dist/substrate/runtime/observability/log-store.mjs.map +1 -1
- package/dist/substrate/runtime/observability/logger.mjs +3 -3
- package/dist/substrate/runtime/observability/logger.mjs.map +1 -1
- package/dist/substrate/runtime/observability/output-truncate.mjs.map +1 -1
- package/dist/substrate/runtime/observability/pretty-error.mjs.map +1 -1
- package/dist/substrate/runtime/observability/process-lines.mjs.map +1 -1
- package/dist/substrate/runtime/observability/redaction.mjs.map +1 -1
- package/dist/substrate/runtime/observability/subprocess-capture.mjs +2 -2
- package/dist/substrate/runtime/observability/subprocess-capture.mjs.map +1 -1
- package/dist/substrate/runtime/passthrough-or-wrap.mjs.map +1 -1
- package/dist/substrate/runtime/paths.mjs +27 -9
- package/dist/substrate/runtime/paths.mjs.map +1 -1
- package/dist/substrate/runtime/phase-preserving-produce.mjs.map +1 -1
- package/dist/substrate/runtime/port-broker/service.mjs +10 -27
- package/dist/substrate/runtime/port-broker/service.mjs.map +1 -1
- package/dist/substrate/runtime/post-acquire-tasks.mjs.map +1 -1
- package/dist/substrate/runtime/probes.d.mts +2 -3
- package/dist/substrate/runtime/probes.mjs.map +1 -1
- package/dist/substrate/runtime/process-supervisor.mjs.map +1 -1
- package/dist/substrate/runtime/projection/operational-endpoints.mjs.map +1 -1
- package/dist/substrate/runtime/projection/state-ref.mjs.map +1 -1
- package/dist/substrate/runtime/projection/update.mjs +87 -11
- package/dist/substrate/runtime/projection/update.mjs.map +1 -1
- package/dist/substrate/runtime/random-suffix.mjs.map +1 -1
- package/dist/substrate/runtime/reconcile/fs-plan.mjs +146 -0
- package/dist/substrate/runtime/reconcile/fs-plan.mjs.map +1 -0
- package/dist/substrate/runtime/reconcile/graph.mjs +19 -0
- package/dist/substrate/runtime/reconcile/graph.mjs.map +1 -0
- package/dist/substrate/runtime/reconcile/index.mjs +5 -0
- package/dist/substrate/runtime/reconcile/label.mjs +41 -0
- package/dist/substrate/runtime/reconcile/label.mjs.map +1 -0
- package/dist/substrate/runtime/reconcile/spec.mjs +15 -0
- package/dist/substrate/runtime/reconcile/spec.mjs.map +1 -0
- package/dist/substrate/runtime/retry-policy.d.mts +2 -3
- package/dist/substrate/runtime/retry-policy.mjs.map +1 -1
- package/dist/substrate/runtime/routed-url.mjs.map +1 -1
- package/dist/substrate/runtime/runtime-decode.mjs.map +1 -1
- package/dist/substrate/runtime/scoped-http-server.mjs.map +1 -1
- package/dist/substrate/runtime/stage-and-swap/index.mjs +49 -12
- package/dist/substrate/runtime/stage-and-swap/index.mjs.map +1 -1
- package/dist/substrate/runtime/strategy-registry/chain-keyed-strategy-for.mjs.map +1 -1
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs.map +1 -1
- package/dist/substrate/runtime/strategy-registry/service.mjs +29 -17
- package/dist/substrate/runtime/strategy-registry/service.mjs.map +1 -1
- package/dist/substrate/runtime/subnet-broker.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/acquire-node.mjs +188 -56
- package/dist/substrate/runtime/supervisor/acquire-node.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/background-tasks.mjs +79 -65
- package/dist/substrate/runtime/supervisor/background-tasks.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/command-loop.mjs +82 -23
- package/dist/substrate/runtime/supervisor/command-loop.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/contribution-dispatcher.mjs +16 -0
- package/dist/substrate/runtime/supervisor/contribution-dispatcher.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/errors.mjs +11 -2
- package/dist/substrate/runtime/supervisor/errors.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/index.mjs +2 -0
- package/dist/substrate/runtime/supervisor/shutdown.mjs +6 -6
- package/dist/substrate/runtime/supervisor/shutdown.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/start-supervisor.mjs +60 -70
- package/dist/substrate/runtime/supervisor/start-supervisor.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/state.d.mts +1 -1
- package/dist/substrate/runtime/supervisor/state.mjs +1 -1
- package/dist/substrate/runtime/supervisor/state.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/teardown.mjs +10 -9
- package/dist/substrate/runtime/supervisor/teardown.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/wiring.mjs +6 -20
- package/dist/substrate/runtime/supervisor/wiring.mjs.map +1 -1
- package/dist/substrate/runtime/tar/reader.mjs +216 -0
- package/dist/substrate/runtime/tar/reader.mjs.map +1 -0
- package/dist/substrate/runtime/typed-env.mjs.map +1 -1
- package/dist/substrate/versioned-doc-schema.mjs.map +1 -1
- package/dist/substrate/versioned-doc-sync.mjs +5 -5
- package/dist/substrate/versioned-doc-sync.mjs.map +1 -1
- package/dist/surfaces/cli/command-tree.mjs +49 -7
- package/dist/surfaces/cli/command-tree.mjs.map +1 -1
- package/dist/surfaces/cli/commands/config.mjs +1 -1
- package/dist/surfaces/cli/commands/config.mjs.map +1 -1
- package/dist/surfaces/cli/commands/confirm-node.mjs.map +1 -1
- package/dist/surfaces/cli/commands/confirm.mjs.map +1 -1
- package/dist/surfaces/cli/commands/doctor.mjs +1 -1
- package/dist/surfaces/cli/commands/doctor.mjs.map +1 -1
- package/dist/surfaces/cli/commands/prune-picker-entry.mjs.map +1 -1
- package/dist/surfaces/cli/commands/prune-picker.mjs.map +1 -1
- package/dist/surfaces/cli/commands/prune.mjs +1 -1
- package/dist/surfaces/cli/commands/prune.mjs.map +1 -1
- package/dist/surfaces/cli/commands/snapshot.mjs +1 -1
- package/dist/surfaces/cli/commands/snapshot.mjs.map +1 -1
- package/dist/surfaces/cli/commands/status.mjs +1 -1
- package/dist/surfaces/cli/commands/status.mjs.map +1 -1
- package/dist/surfaces/cli/commands/supervisor-presence.mjs.map +1 -1
- package/dist/surfaces/cli/commands/wipe.mjs +3 -4
- package/dist/surfaces/cli/commands/wipe.mjs.map +1 -1
- package/dist/surfaces/cli/envelope.mjs.map +1 -1
- package/dist/surfaces/cli/errors.mjs.map +1 -1
- package/dist/surfaces/cli/flags.mjs.map +1 -1
- package/dist/surfaces/cli/index.mjs +45 -14
- package/dist/surfaces/cli/index.mjs.map +1 -1
- package/dist/surfaces/cli/output.mjs.map +1 -1
- package/dist/surfaces/cli/sysexits.mjs.map +1 -1
- package/dist/surfaces/tui/app.mjs +0 -21
- package/dist/surfaces/tui/app.mjs.map +1 -1
- package/dist/surfaces/tui/dashboard.mjs +0 -48
- package/dist/surfaces/tui/dashboard.mjs.map +1 -1
- package/dist/surfaces/tui/display-derivation.mjs +80 -16
- package/dist/surfaces/tui/display-derivation.mjs.map +1 -1
- package/dist/surfaces/tui/errors.mjs.map +1 -1
- package/dist/surfaces/tui/event-log.mjs +0 -9
- package/dist/surfaces/tui/event-log.mjs.map +1 -1
- package/dist/surfaces/tui/heartbeat.mjs.map +1 -1
- package/dist/surfaces/tui/index.mjs +2 -2
- package/dist/surfaces/tui/index.mjs.map +1 -1
- package/dist/surfaces/tui/input.mjs.map +1 -1
- package/dist/surfaces/tui/mode-detect.mjs.map +1 -1
- package/dist/surfaces/tui/mount-ink.mjs.map +1 -1
- package/dist/surfaces/tui/plain-renderer.mjs +26 -19
- package/dist/surfaces/tui/plain-renderer.mjs.map +1 -1
- package/dist/surfaces/tui/resource-table.mjs +8 -10
- package/dist/surfaces/tui/resource-table.mjs.map +1 -1
- package/images/postgres/Dockerfile +0 -1
- package/images/sui/Dockerfile +27 -54
- package/images/sui/entrypoint.sh +17 -179
- package/package.json +23 -15
- package/dashboard-ui/assets/index-Bmi1UtAg.js +0 -1356
- package/dashboard-ui/assets/index-D5EShVt4.js +0 -3
- package/dashboard-ui/assets/index-Deml9drg.css +0 -1
- package/dist/api/plugin-errors.d.mts +0 -7
- package/dist/api/plugin-errors.mjs +0 -10
- package/dist/api/plugin-errors.mjs.map +0 -1
- package/dist/cli/wirings/build-verb-layers.mjs +0 -42
- package/dist/cli/wirings/build-verb-layers.mjs.map +0 -1
- package/dist/contracts/capability-decl.d.mts +0 -40
- package/dist/orchestrators/built-in-plugin-layers.mjs +0 -54
- package/dist/orchestrators/built-in-plugin-layers.mjs.map +0 -1
- package/dist/orchestrators/run.mjs +0 -91
- package/dist/orchestrators/run.mjs.map +0 -1
- package/dist/orchestrators/runtime-composition.d.mts +0 -10
- package/dist/orchestrators/runtime-composition.mjs +0 -252
- package/dist/orchestrators/runtime-composition.mjs.map +0 -1
- package/dist/orchestrators/snapshot/capture-command.d.mts +0 -1
- package/dist/orchestrators/snapshot/capture-command.mjs +0 -25
- package/dist/orchestrators/snapshot/capture-command.mjs.map +0 -1
- package/dist/orchestrators/snapshot/pending-marker.mjs +0 -99
- package/dist/orchestrators/snapshot/pending-marker.mjs.map +0 -1
- package/dist/orchestrators/snapshot/recover-pending.mjs +0 -223
- package/dist/orchestrators/snapshot/recover-pending.mjs.map +0 -1
- package/dist/orchestrators/snapshot/state-document.d.mts +0 -1
- package/dist/orchestrators/snapshot/state-document.mjs +0 -58
- package/dist/orchestrators/snapshot/state-document.mjs.map +0 -1
- package/dist/plugins/account/spans.mjs +0 -16
- package/dist/plugins/account/spans.mjs.map +0 -1
- package/dist/plugins/account/variants/env.mjs +0 -24
- package/dist/plugins/account/variants/env.mjs.map +0 -1
- package/dist/plugins/account/variants/inline.mjs +0 -13
- package/dist/plugins/account/variants/inline.mjs.map +0 -1
- package/dist/plugins/account/variants/keystore.mjs +0 -91
- package/dist/plugins/account/variants/keystore.mjs.map +0 -1
- package/dist/plugins/action/spans.mjs +0 -11
- package/dist/plugins/action/spans.mjs.map +0 -1
- package/dist/plugins/coin/spans.mjs +0 -20
- package/dist/plugins/coin/spans.mjs.map +0 -1
- package/dist/plugins/deepbook/spans.mjs +0 -18
- package/dist/plugins/deepbook/spans.mjs.map +0 -1
- package/dist/plugins/faucet/spans.mjs +0 -12
- package/dist/plugins/faucet/spans.mjs.map +0 -1
- package/dist/plugins/package/spans.mjs +0 -14
- package/dist/plugins/package/spans.mjs.map +0 -1
- package/dist/plugins/postgres/codegen.mjs +0 -42
- package/dist/plugins/postgres/codegen.mjs.map +0 -1
- package/dist/plugins/postgres/connection.d.mts +0 -33
- package/dist/plugins/postgres/connection.mjs.map +0 -1
- package/dist/plugins/postgres/db-ensure.mjs.map +0 -1
- package/dist/plugins/postgres/errors.d.mts +0 -60
- package/dist/plugins/postgres/errors.mjs +0 -29
- package/dist/plugins/postgres/errors.mjs.map +0 -1
- package/dist/plugins/postgres/index.d.mts +0 -37
- package/dist/plugins/postgres/index.mjs +0 -68
- package/dist/plugins/postgres/index.mjs.map +0 -1
- package/dist/plugins/postgres/routable.mjs +0 -33
- package/dist/plugins/postgres/routable.mjs.map +0 -1
- package/dist/plugins/postgres/service.d.mts +0 -50
- package/dist/plugins/postgres/service.mjs +0 -179
- package/dist/plugins/postgres/service.mjs.map +0 -1
- package/dist/plugins/postgres/snapshot.mjs +0 -32
- package/dist/plugins/postgres/snapshot.mjs.map +0 -1
- package/dist/plugins/postgres/spans.mjs +0 -11
- package/dist/plugins/postgres/spans.mjs.map +0 -1
- package/dist/plugins/seal/spans.mjs +0 -18
- package/dist/plugins/seal/spans.mjs.map +0 -1
- package/dist/plugins/sui/spans.mjs +0 -17
- package/dist/plugins/sui/spans.mjs.map +0 -1
- package/dist/plugins/wallet/spans.mjs +0 -22
- package/dist/plugins/wallet/spans.mjs.map +0 -1
- package/dist/plugins/walrus/registry-publish.d.mts +0 -24
- package/dist/plugins/walrus/spans.mjs +0 -18
- package/dist/plugins/walrus/spans.mjs.map +0 -1
- package/dist/runtime/docker/logs.d.mts +0 -1
- package/dist/runtime/docker/logs.mjs +0 -34
- package/dist/runtime/docker/logs.mjs.map +0 -1
- package/dist/substrate/runtime/artifact-publisher/index.mjs +0 -86
- package/dist/substrate/runtime/artifact-publisher/index.mjs.map +0 -1
- package/dist/substrate/runtime/capability-sinks/index.d.mts +0 -1
- package/dist/substrate/runtime/capability-sinks/index.mjs +0 -3
- package/dist/substrate/runtime/capability-sinks/layer.d.mts +0 -1
- package/dist/substrate/runtime/capability-sinks/layer.mjs +0 -31
- package/dist/substrate/runtime/capability-sinks/layer.mjs.map +0 -1
- package/dist/substrate/runtime/capability-sinks/service.d.mts +0 -95
- package/dist/substrate/runtime/capability-sinks/service.mjs +0 -69
- package/dist/substrate/runtime/capability-sinks/service.mjs.map +0 -1
- package/dist/substrate/runtime/cross-process/lock.d.mts +0 -1
- package/dist/substrate/runtime/cross-process/lock.mjs +0 -23
- package/dist/substrate/runtime/cross-process/lock.mjs.map +0 -1
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs +0 -113
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs.map +0 -1
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs +0 -31
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs.map +0 -1
- package/dist/substrate/runtime/observability/formatter-registry.d.mts +0 -1
- package/dist/substrate/runtime/observability/formatter-registry.mjs +0 -48
- package/dist/substrate/runtime/observability/formatter-registry.mjs.map +0 -1
- package/dist/substrate/runtime/observability/span-store.d.mts +0 -1
- package/dist/substrate/runtime/observability/span-store.mjs +0 -110
- package/dist/substrate/runtime/observability/span-store.mjs.map +0 -1
- package/dist/substrate/runtime/observability/spans.d.mts +0 -1
- package/dist/substrate/runtime/observability/spans.mjs +0 -87
- package/dist/substrate/runtime/observability/spans.mjs.map +0 -1
- package/dist/substrate/runtime/projection/index.mjs +0 -4
- package/dist/substrate/runtime/projection/persisted.mjs +0 -213
- package/dist/substrate/runtime/projection/persisted.mjs.map +0 -1
- package/dist/substrate/runtime/scoped-multimap/service.mjs +0 -52
- package/dist/substrate/runtime/scoped-multimap/service.mjs.map +0 -1
- package/dist/substrate/runtime/scoped-ref-map/index.mjs +0 -2
- package/dist/substrate/runtime/scoped-ref-map/service.mjs +0 -83
- package/dist/substrate/runtime/scoped-ref-map/service.mjs.map +0 -1
- package/dist/substrate/runtime/state-store/index.mjs +0 -3
- package/dist/substrate/runtime/state-store/schema.d.mts +0 -1
- package/dist/substrate/runtime/state-store/schema.mjs +0 -41
- package/dist/substrate/runtime/state-store/schema.mjs.map +0 -1
- package/dist/substrate/runtime/state-store/service.d.mts +0 -1
- package/dist/substrate/runtime/state-store/service.mjs +0 -145
- package/dist/substrate/runtime/state-store/service.mjs.map +0 -1
- package/dist/substrate/runtime/sui-execute/index.mjs.map +0 -1
- package/dist/substrate/runtime/sui-execute/sign-and-dispatch.mjs.map +0 -1
- package/dist/substrate/runtime/sui-ledger/object-ref.mjs.map +0 -1
- package/dist/substrate/runtime/sui-move-build/index.mjs.map +0 -1
- package/dist/substrate/runtime/supervisor/dispatch-contributions.mjs +0 -151
- package/dist/substrate/runtime/supervisor/dispatch-contributions.mjs.map +0 -1
- package/dist/substrate/state-store.d.mts +0 -1
- /package/dist/orchestrators/{snapshot/pending-marker.d.mts → codegen/id-config.d.mts} +0 -0
- /package/dist/orchestrators/snapshot/{recover-pending.d.mts → interrupted-restore.d.mts} +0 -0
- /package/dist/{substrate/runtime/sui-execute → plugins/sui/exec}/sign-and-dispatch.d.mts +0 -0
- /package/dist/plugins/{postgres/snapshot.d.mts → sui/ledger/object-ref.d.mts} +0 -0
- /package/dist/{substrate/runtime/sui-move-build → plugins/sui/move}/index.d.mts +0 -0
- /package/dist/substrate/runtime/{state-store/index.d.mts → reconcile/graph.d.mts} +0 -0
- /package/dist/substrate/runtime/{cross-process/snapshot-reservation.d.mts → supervisor/contribution-dispatcher.d.mts} +0 -0
|
@@ -1,23 +1,45 @@
|
|
|
1
1
|
import { acquireStackLock } from "../../substrate/runtime/cross-process/stack-lock.mjs";
|
|
2
2
|
import { mintRandomSuffix } from "../../substrate/runtime/random-suffix.mjs";
|
|
3
3
|
import { StageAndSwapError, stageAndSwap } from "../../substrate/runtime/stage-and-swap/index.mjs";
|
|
4
|
-
import { CodegenEmitFailed, CodegenEmitterCollision, CodegenPathConflict, CodegenWriteFailed } from "./errors.mjs";
|
|
4
|
+
import { CodegenAggregateConflict, CodegenEmitFailed, CodegenEmitterCollision, CodegenPathConflict, CodegenWriteFailed } from "./errors.mjs";
|
|
5
5
|
import { emitOne } from "./emit.mjs";
|
|
6
6
|
import { dirModeFor, modeFor } from "./permissions.mjs";
|
|
7
|
-
import { MoveCodegenService, MoveSummaryRunnerService, emitBindings } from "./bindings.mjs";
|
|
7
|
+
import { MoveCodegenService, MoveSummaryRunnerService, emitBindings, isPackageBindings } from "./bindings.mjs";
|
|
8
8
|
import { CodegenPathsService } from "./paths.mjs";
|
|
9
|
+
import { isRawExpr } from "../../contracts/codegenable.mjs";
|
|
10
|
+
import { CONFIG_RUNTIME_OUTPUT_PATH, CONFIG_RUNTIME_SOURCE } from "./config-runtime.mjs";
|
|
9
11
|
import { renderFile } from "./format.mjs";
|
|
10
12
|
import { writeGitignore } from "./gitignore.mjs";
|
|
13
|
+
import { UNRESOLVED_ID } from "./id-config.mjs";
|
|
11
14
|
import { Context, Effect, Layer, Order, Ref } from "effect";
|
|
12
15
|
import { dirname } from "node:path";
|
|
13
16
|
//#region src/orchestrators/codegen/service.ts
|
|
14
|
-
|
|
17
|
+
/** Resolve a decl/aggregate's absolute output path against the tree
|
|
18
|
+
* selected by its `outputLocation`. `'generated-extras'` routes
|
|
19
|
+
* through `paths.resolveExtras` (the gitignored dev tree); everything
|
|
20
|
+
* else through `paths.resolve` (the staging-and-swapped runtime tree). */
|
|
21
|
+
const resolveAt = (paths, location, outputPath) => location === "generated-extras" ? paths.resolveExtras(outputPath) : paths.resolve(outputPath);
|
|
22
|
+
const declLocation = (decl) => decl.outputLocation ?? "generated";
|
|
23
|
+
/** A decl belongs to the `emitExtras` flush IFF it writes ONLY into the
|
|
24
|
+
* dev-only `generated-extras` tree. INVARIANT: `emitExtras` must NEVER
|
|
25
|
+
* touch the committed `src/generated` tree (it runs without stage-and-swap),
|
|
26
|
+
* so a decl that would emit any file into `generated` is excluded.
|
|
27
|
+
*
|
|
28
|
+
* - `aggregateOnly` decls write only their aggregate file: include iff the
|
|
29
|
+
* aggregate's location is `generated-extras` (e.g. each account folding
|
|
30
|
+
* into the gitignored `accounts.ts`).
|
|
31
|
+
* - standalone decls write a per-decl file (and possibly an aggregate):
|
|
32
|
+
* include iff that standalone file lands in `generated-extras` (e.g. the
|
|
33
|
+
* wallet's `dev-wallet.ts`). A standalone-in-`generated` decl is excluded
|
|
34
|
+
* even if its aggregate targets `generated-extras`. */
|
|
35
|
+
const isExtrasDecl = (decl) => decl.aggregateOnly === true ? (decl.aggregate?.outputLocation ?? "generated") === "generated-extras" : declLocation(decl) === "generated-extras";
|
|
36
|
+
const buildParentModeResolver = (paths, entries) => Effect.gen(function* () {
|
|
15
37
|
const byParent = /* @__PURE__ */ new Map();
|
|
16
|
-
for (const
|
|
17
|
-
const parent = dirname(yield* paths.
|
|
38
|
+
for (const entry of entries) {
|
|
39
|
+
const parent = dirname(yield* resolveAt(paths, entry.location, entry.outputPath));
|
|
18
40
|
const current = byParent.get(parent);
|
|
19
|
-
if (current === void 0) byParent.set(parent, [
|
|
20
|
-
else current.push(
|
|
41
|
+
if (current === void 0) byParent.set(parent, [{ sensitive: entry.sensitive }]);
|
|
42
|
+
else current.push({ sensitive: entry.sensitive });
|
|
21
43
|
}
|
|
22
44
|
const modes = /* @__PURE__ */ new Map();
|
|
23
45
|
for (const [parent, parentDecls] of byParent) modes.set(parent, dirModeFor(parentDecls));
|
|
@@ -62,11 +84,7 @@ const runEmitCycleLocked = (input) => Effect.gen(function* () {
|
|
|
62
84
|
cause: e
|
|
63
85
|
});
|
|
64
86
|
return e;
|
|
65
|
-
})
|
|
66
|
-
"codegen.contributions": input.contributions.length,
|
|
67
|
-
"codegen.cycleId": cycleId,
|
|
68
|
-
"codegen.stagingDir": stagingPaths.outputDir
|
|
69
|
-
} }));
|
|
87
|
+
}));
|
|
70
88
|
});
|
|
71
89
|
/**
|
|
72
90
|
* Project a staging-rooted `RunEmitCycleResult` back into the user-
|
|
@@ -95,14 +113,20 @@ const rewriteResultPaths = (result, stagingDir, outputDir) => {
|
|
|
95
113
|
* this function so callers know the contribution set is well-formed.
|
|
96
114
|
*/
|
|
97
115
|
const runEmitCycleInner = (input, paths) => Effect.gen(function* () {
|
|
116
|
+
yield* Effect.logInfo(`codegen: emitting projection (trackTree=${input.trackTree === true}).`);
|
|
98
117
|
const fileEmitters = [...input.contributions];
|
|
99
118
|
const filesWritten = [];
|
|
100
119
|
const filesUnchanged = [];
|
|
101
120
|
const filesChmod = [];
|
|
102
121
|
const aggregates = /* @__PURE__ */ new Map();
|
|
122
|
+
const aggregateMeta = /* @__PURE__ */ new Map();
|
|
103
123
|
const packageContribs = [];
|
|
104
124
|
const sortedDecls = [...fileEmitters].sort(Order.mapInput(Order.String, (d) => d.outputPath));
|
|
105
|
-
const parentModeFor = yield* buildParentModeResolver(paths, fileEmitters)
|
|
125
|
+
const parentModeFor = yield* buildParentModeResolver(paths, fileEmitters.filter((d) => d.aggregateOnly !== true).map((d) => ({
|
|
126
|
+
outputPath: d.outputPath,
|
|
127
|
+
location: declLocation(d),
|
|
128
|
+
sensitive: d.sensitive === true
|
|
129
|
+
})));
|
|
106
130
|
for (const decl of sortedDecls) {
|
|
107
131
|
const emission = yield* runEmitter(decl);
|
|
108
132
|
const exported = emission.exports;
|
|
@@ -110,11 +134,36 @@ const runEmitCycleInner = (input, paths) => Effect.gen(function* () {
|
|
|
110
134
|
const projected = decl.aggregate.project(exported);
|
|
111
135
|
if (projected !== null) {
|
|
112
136
|
const bucket = aggregates.get(decl.aggregate.bucket) ?? {};
|
|
113
|
-
|
|
137
|
+
deepMerge(bucket, projected);
|
|
114
138
|
aggregates.set(decl.aggregate.bucket, bucket);
|
|
139
|
+
const declLoc = decl.aggregate.outputLocation ?? "generated";
|
|
140
|
+
const declSensitive = decl.aggregate.sensitive === true;
|
|
141
|
+
const established = aggregateMeta.get(decl.aggregate.bucket);
|
|
142
|
+
if (established === void 0) aggregateMeta.set(decl.aggregate.bucket, {
|
|
143
|
+
location: declLoc,
|
|
144
|
+
sensitive: declSensitive,
|
|
145
|
+
establishedBy: decl.emitterName
|
|
146
|
+
});
|
|
147
|
+
else {
|
|
148
|
+
if (established.location !== declLoc) return yield* Effect.fail(new CodegenAggregateConflict({
|
|
149
|
+
bucket: decl.aggregate.bucket,
|
|
150
|
+
field: "outputLocation",
|
|
151
|
+
established: established.location,
|
|
152
|
+
conflicting: declLoc,
|
|
153
|
+
emitters: [established.establishedBy, decl.emitterName]
|
|
154
|
+
}));
|
|
155
|
+
if (established.sensitive !== declSensitive) return yield* Effect.fail(new CodegenAggregateConflict({
|
|
156
|
+
bucket: decl.aggregate.bucket,
|
|
157
|
+
field: "sensitive",
|
|
158
|
+
established: String(established.sensitive),
|
|
159
|
+
conflicting: String(declSensitive),
|
|
160
|
+
emitters: [established.establishedBy, decl.emitterName]
|
|
161
|
+
}));
|
|
162
|
+
}
|
|
115
163
|
}
|
|
116
164
|
}
|
|
117
165
|
for (const value of Object.values(exported)) if (isPackageBindings(value)) packageContribs.push(value);
|
|
166
|
+
if (decl.aggregateOnly === true) continue;
|
|
118
167
|
const rendered = renderFile({
|
|
119
168
|
emitterName: decl.emitterName,
|
|
120
169
|
outputPath: decl.outputPath,
|
|
@@ -123,7 +172,7 @@ const runEmitCycleInner = (input, paths) => Effect.gen(function* () {
|
|
|
123
172
|
imports: emission.imports
|
|
124
173
|
});
|
|
125
174
|
if (!rendered.ok) return yield* Effect.fail(rendered.error);
|
|
126
|
-
const abs = yield* paths
|
|
175
|
+
const abs = yield* resolveAt(paths, declLocation(decl), decl.outputPath);
|
|
127
176
|
switch ((yield* emitOne({
|
|
128
177
|
path: abs,
|
|
129
178
|
content: rendered.text,
|
|
@@ -141,18 +190,42 @@ const runEmitCycleInner = (input, paths) => Effect.gen(function* () {
|
|
|
141
190
|
break;
|
|
142
191
|
}
|
|
143
192
|
}
|
|
144
|
-
|
|
193
|
+
const aggregateFiles = buildAggregateFiles(aggregates, aggregateMeta);
|
|
194
|
+
let needsConfigRuntime = false;
|
|
195
|
+
for (const aggregate of aggregateFiles) {
|
|
196
|
+
const resolvers = resolversUsedBy(aggregate.exports);
|
|
197
|
+
if (resolvers.length > 0) needsConfigRuntime = true;
|
|
145
198
|
const rendered = renderFile({
|
|
146
199
|
emitterName: aggregate.emitterName,
|
|
147
200
|
outputPath: aggregate.outputPath,
|
|
148
|
-
sensitive:
|
|
149
|
-
exports: aggregate.exports
|
|
201
|
+
sensitive: aggregate.sensitive,
|
|
202
|
+
exports: aggregate.exports,
|
|
203
|
+
...resolvers.length > 0 ? { imports: [`import { ${resolvers.join(", ")} } from './config-runtime.js';`] } : {}
|
|
150
204
|
});
|
|
151
205
|
if (!rendered.ok) return yield* Effect.fail(rendered.error);
|
|
152
|
-
const abs = yield* paths.
|
|
206
|
+
const abs = yield* resolveAt(paths, aggregate.location, aggregate.outputPath);
|
|
153
207
|
switch ((yield* emitOne({
|
|
154
208
|
path: abs,
|
|
155
209
|
content: rendered.text,
|
|
210
|
+
mode: aggregate.sensitive ? 384 : 420,
|
|
211
|
+
parentMode: parentModeFor(abs)
|
|
212
|
+
})).outcome) {
|
|
213
|
+
case "wrote":
|
|
214
|
+
filesWritten.push(abs);
|
|
215
|
+
break;
|
|
216
|
+
case "unchanged":
|
|
217
|
+
filesUnchanged.push(abs);
|
|
218
|
+
break;
|
|
219
|
+
case "chmod-only":
|
|
220
|
+
filesChmod.push(abs);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
if (needsConfigRuntime) {
|
|
225
|
+
const abs = yield* paths.resolve(CONFIG_RUNTIME_OUTPUT_PATH);
|
|
226
|
+
switch ((yield* emitOne({
|
|
227
|
+
path: abs,
|
|
228
|
+
content: CONFIG_RUNTIME_SOURCE,
|
|
156
229
|
mode: 420,
|
|
157
230
|
parentMode: parentModeFor(abs)
|
|
158
231
|
})).outcome) {
|
|
@@ -174,11 +247,12 @@ const runEmitCycleInner = (input, paths) => Effect.gen(function* () {
|
|
|
174
247
|
importExtension: input.bindingsImportExtension
|
|
175
248
|
});
|
|
176
249
|
else yield* Effect.logInfo("codegen: no package contributions; skipping Move-to-TS bindings step.");
|
|
177
|
-
const sensitivePaths = fileEmitters.filter((d) => d.sensitive === true).map((d) => d.outputPath);
|
|
250
|
+
const sensitivePaths = [...fileEmitters.filter((d) => d.sensitive === true && d.aggregateOnly !== true && declLocation(d) === "generated").map((d) => d.outputPath), ...aggregateFiles.filter((a) => a.sensitive && a.location === "generated").map((a) => a.outputPath)];
|
|
178
251
|
yield* writeGitignore({
|
|
179
252
|
path: paths.gitignoreFile,
|
|
180
253
|
sensitivePaths,
|
|
181
|
-
parentMode: parentModeFor(paths.gitignoreFile)
|
|
254
|
+
parentMode: parentModeFor(paths.gitignoreFile),
|
|
255
|
+
trackTree: input.trackTree === true
|
|
182
256
|
});
|
|
183
257
|
return {
|
|
184
258
|
filesWritten,
|
|
@@ -188,6 +262,8 @@ const runEmitCycleInner = (input, paths) => Effect.gen(function* () {
|
|
|
188
262
|
};
|
|
189
263
|
});
|
|
190
264
|
const runEmitter = (decl) => Effect.gen(function* () {
|
|
265
|
+
const kind = decl.aggregate?.kind;
|
|
266
|
+
if (kind !== void 0) yield* Effect.annotateCurrentSpan("codegen.kind", kind);
|
|
191
267
|
const exports = {};
|
|
192
268
|
const imports = [];
|
|
193
269
|
const done = { _tag: "CodegenEmitDone" };
|
|
@@ -208,7 +284,7 @@ const runEmitter = (decl) => Effect.gen(function* () {
|
|
|
208
284
|
exports,
|
|
209
285
|
imports
|
|
210
286
|
};
|
|
211
|
-
});
|
|
287
|
+
}).pipe(Effect.withSpan("codegen.emit", { attributes: { "codegen.emitter": decl.emitterName } }));
|
|
212
288
|
/**
|
|
213
289
|
* Uniqueness check: emitter name (literal) must be unique unless
|
|
214
290
|
* the decl opts into repetition via `allowEmitterNameRepetition`
|
|
@@ -220,17 +296,20 @@ const validateUniqueness = (decls) => Effect.gen(function* () {
|
|
|
220
296
|
const byPath = /* @__PURE__ */ new Map();
|
|
221
297
|
const byName = /* @__PURE__ */ new Map();
|
|
222
298
|
for (const d of decls) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
299
|
+
if (d.aggregateOnly !== true) {
|
|
300
|
+
const pathKey = `${declLocation(d)} ${d.outputPath}`;
|
|
301
|
+
const ps = byPath.get(pathKey) ?? [];
|
|
302
|
+
ps.push(d.emitterName);
|
|
303
|
+
byPath.set(pathKey, ps);
|
|
304
|
+
}
|
|
226
305
|
if (d.allowEmitterNameRepetition === true) continue;
|
|
227
306
|
const ns = byName.get(d.emitterName) ?? [];
|
|
228
307
|
ns.push(d.outputPath);
|
|
229
308
|
byName.set(d.emitterName, ns);
|
|
230
309
|
}
|
|
231
|
-
for (const [
|
|
310
|
+
for (const [pathKey, emitters] of byPath) if (emitters.length > 1) return yield* Effect.fail(new CodegenPathConflict({
|
|
232
311
|
kind: "duplicate",
|
|
233
|
-
outputPath:
|
|
312
|
+
outputPath: pathKey.slice(pathKey.indexOf(" ") + 1),
|
|
234
313
|
emitters
|
|
235
314
|
}));
|
|
236
315
|
for (const [name, outputPaths] of byName) if (outputPaths.length > 1) return yield* Effect.fail(new CodegenEmitterCollision({
|
|
@@ -245,50 +324,166 @@ const validateUniqueness = (decls) => Effect.gen(function* () {
|
|
|
245
324
|
* it does not enumerate or recognize plugin identities here.
|
|
246
325
|
*/
|
|
247
326
|
const validateAggregatePathAvailability = (decls) => Effect.gen(function* () {
|
|
248
|
-
const aggregatePaths = /* @__PURE__ */ new
|
|
249
|
-
for (const decl of decls) if (decl.aggregate !== void 0)
|
|
250
|
-
|
|
251
|
-
|
|
327
|
+
const aggregatePaths = /* @__PURE__ */ new Map();
|
|
328
|
+
for (const decl of decls) if (decl.aggregate !== void 0) {
|
|
329
|
+
const location = decl.aggregate.outputLocation ?? "generated";
|
|
330
|
+
aggregatePaths.set(`${location} ${decl.aggregate.bucket}`, decl.aggregate.bucket);
|
|
331
|
+
}
|
|
332
|
+
for (const [key, bucket] of aggregatePaths) {
|
|
333
|
+
const location = key.slice(0, key.indexOf(" "));
|
|
334
|
+
const colliding = decls.filter((decl) => decl.aggregateOnly !== true && declLocation(decl) === location && decl.outputPath === bucket);
|
|
252
335
|
if (colliding.length > 0) return yield* Effect.fail(new CodegenPathConflict({
|
|
253
336
|
kind: "duplicate",
|
|
254
|
-
outputPath:
|
|
255
|
-
emitters: [...colliding.map((decl) => decl.emitterName), `aggregate/${
|
|
337
|
+
outputPath: bucket,
|
|
338
|
+
emitters: [...colliding.map((decl) => decl.emitterName), `aggregate/${bucket}`]
|
|
256
339
|
}));
|
|
257
340
|
}
|
|
258
341
|
});
|
|
259
342
|
/**
|
|
343
|
+
* Recursively merge `source` into `target`. Distinct buckets are
|
|
344
|
+
* shallow records keyed by name, but a single bucket (e.g. `config.ts`)
|
|
345
|
+
* accumulates contributions from MANY plugins into nested sub-records
|
|
346
|
+
* (`networks.localnet` from sui, `packages.<name>` / `objects.<name>`
|
|
347
|
+
* from each package). A shallow `Object.assign` would have the last
|
|
348
|
+
* package's `{packages:{...}}` clobber the prior ones. Deep-merge so
|
|
349
|
+
* sibling keys at every level coexist.
|
|
350
|
+
*
|
|
351
|
+
* Arrays and non-plain values overwrite (no element-wise merge — a
|
|
352
|
+
* plugin that re-emits a bucket key owns its full value). Only plain
|
|
353
|
+
* objects recurse.
|
|
354
|
+
*/
|
|
355
|
+
const isPlainObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
356
|
+
const deepMerge = (target, source) => {
|
|
357
|
+
for (const [key, value] of Object.entries(source)) {
|
|
358
|
+
const existing = target[key];
|
|
359
|
+
if (isPlainObject(existing) && isPlainObject(value)) deepMerge(existing, value);
|
|
360
|
+
else target[key] = isPlainObject(value) || Array.isArray(value) ? structuredClone(value) : value;
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
260
364
|
* Synthesize one `AggregateFile` per non-empty bucket. The exports
|
|
261
365
|
* map is keyed by the bucket's stem (e.g. `accounts.ts` → `accounts`)
|
|
262
366
|
* so the rendered file exports `export const <stem> = { ... }`. The
|
|
263
367
|
* orchestrator picks the export key from the bucket filename; the
|
|
264
368
|
* stem itself is not a plugin identifier — it is the filename
|
|
265
|
-
* without the `.ts` extension, derived mechanically.
|
|
369
|
+
* without the `.ts` extension, derived mechanically. The bucket's
|
|
370
|
+
* `location`/`sensitive` (from the first contributing decl) drive
|
|
371
|
+
* which tree the file lands in and its mode.
|
|
266
372
|
*/
|
|
267
|
-
const buildAggregateFiles = (buckets) => {
|
|
373
|
+
const buildAggregateFiles = (buckets, meta) => {
|
|
268
374
|
const files = [];
|
|
269
375
|
const sortedEntries = [...buckets.entries()].sort(([a], [b]) => a.localeCompare(b));
|
|
270
376
|
for (const [bucket, contents] of sortedEntries) {
|
|
271
377
|
if (Object.keys(contents).length === 0) continue;
|
|
272
378
|
const stem = bucketStem(bucket);
|
|
379
|
+
const bucketMeta = meta.get(bucket) ?? {
|
|
380
|
+
location: "generated",
|
|
381
|
+
sensitive: false,
|
|
382
|
+
establishedBy: `aggregate/${stem}`
|
|
383
|
+
};
|
|
273
384
|
files.push({
|
|
274
385
|
emitterName: `aggregate/${stem}`,
|
|
275
386
|
outputPath: bucket,
|
|
276
|
-
exports: { [stem]: contents }
|
|
387
|
+
exports: { [stem]: contents },
|
|
388
|
+
location: bucketMeta.location,
|
|
389
|
+
sensitive: bucketMeta.sensitive
|
|
277
390
|
});
|
|
278
391
|
}
|
|
279
392
|
return files;
|
|
280
393
|
};
|
|
281
394
|
const bucketStem = (bucket) => bucket.replace(/\.ts$/, "").replace(/^.*\//, "");
|
|
395
|
+
/** The config-runtime resolver names a committed `config.ts` aggregate may
|
|
396
|
+
* reference as raw expressions. Each is imported from `./config-runtime.js`
|
|
397
|
+
* only when the aggregate actually calls it (oxlint flags unused imports). */
|
|
398
|
+
const CONFIG_RUNTIME_RESOLVERS = [
|
|
399
|
+
"resolveId",
|
|
400
|
+
"resolveNetwork",
|
|
401
|
+
"resolveNetworks",
|
|
402
|
+
"resolveValue"
|
|
403
|
+
];
|
|
404
|
+
/** Recursively collect which `config-runtime.ts` resolvers an exports map
|
|
405
|
+
* references via raw expressions — i.e. the committed `config.ts` needs each
|
|
406
|
+
* imported + the fixed `config-runtime.ts` emitted alongside it. */
|
|
407
|
+
const collectResolversInValue = (value, found) => {
|
|
408
|
+
if (isRawExpr(value)) {
|
|
409
|
+
for (const name of CONFIG_RUNTIME_RESOLVERS) if (value.expr.includes(`${name}(`)) found.add(name);
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
if (Array.isArray(value)) {
|
|
413
|
+
for (const v of value) collectResolversInValue(v, found);
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
if (isPlainObject(value)) for (const v of Object.values(value)) collectResolversInValue(v, found);
|
|
417
|
+
};
|
|
418
|
+
/** The ordered set of config-runtime resolvers an aggregate's exports use
|
|
419
|
+
* (empty when none — the aggregate needs no resolver import). */
|
|
420
|
+
const resolversUsedBy = (exports) => {
|
|
421
|
+
const found = /* @__PURE__ */ new Set();
|
|
422
|
+
for (const v of Object.values(exports)) collectResolversInValue(v, found);
|
|
423
|
+
return CONFIG_RUNTIME_RESOLVERS.filter((name) => found.has(name));
|
|
424
|
+
};
|
|
425
|
+
var CodegenOrchestratorService = class extends Context.Service()("@devstack/orchestrators/Codegen") {};
|
|
282
426
|
/**
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
427
|
+
* Slice the deep-merged `config.ts` aggregate bucket into the loadable
|
|
428
|
+
* `IdConfig` interchange shape. The bucket is the live codegen
|
|
429
|
+
* accumulation (sui `networks`, per-package `packages`/`objects`/
|
|
430
|
+
* `mvrOverrides`, account `accounts`); this picks the id-bearing fields
|
|
431
|
+
* the Vite plugin injects. Reads are defensive — any missing slice
|
|
432
|
+
* collapses to an empty record so a partial stack still writes a valid
|
|
433
|
+
* (if sparse) id-config.
|
|
289
434
|
*/
|
|
290
|
-
const
|
|
291
|
-
|
|
435
|
+
const idConfigFromBucket = (bucket, network, values) => {
|
|
436
|
+
const asRecord = (v) => isPlainObject(v) ? v : {};
|
|
437
|
+
const asString = (v) => typeof v === "string" ? v : void 0;
|
|
438
|
+
const networks = {};
|
|
439
|
+
for (const [name, raw] of Object.entries(asRecord(bucket["networks"]))) {
|
|
440
|
+
const entry = asRecord(raw);
|
|
441
|
+
const rpc = asString(entry["rpc"]);
|
|
442
|
+
if (rpc === void 0) continue;
|
|
443
|
+
networks[name] = {
|
|
444
|
+
rpc,
|
|
445
|
+
...asString(entry["chainId"]) !== void 0 ? { chainId: asString(entry["chainId"]) } : {},
|
|
446
|
+
...entry["faucet"] !== void 0 ? { faucet: asString(entry["faucet"]) ?? null } : {},
|
|
447
|
+
...entry["graphql"] !== void 0 ? { graphql: asString(entry["graphql"]) ?? null } : {}
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
const packages = {};
|
|
451
|
+
for (const [name, raw] of Object.entries(asRecord(bucket["packages"]))) {
|
|
452
|
+
const entry = asRecord(raw);
|
|
453
|
+
const rawId = asString(entry["packageId"]);
|
|
454
|
+
const id = rawId === void 0 || rawId === "" ? UNRESOLVED_ID : rawId;
|
|
455
|
+
const objectsRaw = asRecord(entry["objects"]);
|
|
456
|
+
const objects = {};
|
|
457
|
+
for (const [k, v] of Object.entries(objectsRaw)) {
|
|
458
|
+
const s = asString(v);
|
|
459
|
+
if (s !== void 0) objects[k] = s;
|
|
460
|
+
}
|
|
461
|
+
packages[name] = {
|
|
462
|
+
id,
|
|
463
|
+
...Object.keys(objects).length > 0 ? { objects } : {}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
const accounts = {};
|
|
467
|
+
for (const [name, v] of Object.entries(asRecord(bucket["accounts"]))) {
|
|
468
|
+
const address = asString(v) ?? asString(asRecord(v)["address"]);
|
|
469
|
+
if (address !== void 0) accounts[name] = address;
|
|
470
|
+
}
|
|
471
|
+
const mvrOverrides = {};
|
|
472
|
+
for (const [mvr, v] of Object.entries(asRecord(bucket["mvrOverrides"]))) {
|
|
473
|
+
const s = asString(v);
|
|
474
|
+
if (s !== void 0) mvrOverrides[mvr] = s;
|
|
475
|
+
}
|
|
476
|
+
const networkKeys = Object.keys(networks);
|
|
477
|
+
const bucketNetwork = asString(bucket["network"]);
|
|
478
|
+
return {
|
|
479
|
+
network: bucketNetwork !== void 0 && networkKeys.includes(bucketNetwork) ? bucketNetwork : networkKeys.includes(network) ? network : networkKeys.length === 1 ? networkKeys[0] : bucketNetwork ?? network,
|
|
480
|
+
networks,
|
|
481
|
+
packages,
|
|
482
|
+
accounts,
|
|
483
|
+
mvrOverrides,
|
|
484
|
+
...Object.keys(values).length > 0 ? { values } : {}
|
|
485
|
+
};
|
|
486
|
+
};
|
|
292
487
|
/** Layer-wired codegen orchestrator. No upstream requirements at boot
|
|
293
488
|
* time — the per-cycle effect carries the `FileSystem` + Move-codegen
|
|
294
489
|
* service requirements through to the caller. */
|
|
@@ -304,25 +499,58 @@ const layerCodegenOrchestrator = Layer.effect(CodegenOrchestratorService, Effect
|
|
|
304
499
|
};
|
|
305
500
|
yield* Ref.update(contributionsRef, (xs) => [...xs, entry]);
|
|
306
501
|
yield* Effect.addFinalizer(() => Ref.update(contributionsRef, (xs) => xs.filter((e) => e.seq !== seq)));
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"codegen.contribution.emitter": decl.emitterName,
|
|
310
|
-
"codegen.contribution.outputPath": decl.outputPath
|
|
311
|
-
});
|
|
312
|
-
}).pipe(Effect.withSpan("orchestrator.codegen.registerContribution"));
|
|
313
|
-
const runCycle = (args) => Effect.gen(function* () {
|
|
502
|
+
});
|
|
503
|
+
const assembleIdConfig = (network) => Effect.gen(function* () {
|
|
314
504
|
const registered = (yield* Ref.get(contributionsRef)).map((e) => e.decl);
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
505
|
+
const bucket = {};
|
|
506
|
+
const accounts = {};
|
|
507
|
+
const values = {};
|
|
508
|
+
for (const decl of registered) {
|
|
509
|
+
if (decl.aggregate === void 0) continue;
|
|
510
|
+
if (decl.aggregate.idConfigValues !== void 0) deepMerge(values, decl.aggregate.idConfigValues);
|
|
511
|
+
if (decl.aggregate.bucket === "config.ts") {
|
|
512
|
+
const emission = yield* runEmitter(decl);
|
|
513
|
+
const projected = decl.aggregate.project(emission.exports);
|
|
514
|
+
if (projected !== null) deepMerge(bucket, projected);
|
|
515
|
+
} else if (decl.aggregate.bucket === "accounts.ts") {
|
|
516
|
+
const emission = yield* runEmitter(decl);
|
|
517
|
+
const projected = decl.aggregate.project(emission.exports);
|
|
518
|
+
if (projected !== null) deepMerge(accounts, projected);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
bucket["accounts"] = accounts;
|
|
522
|
+
return idConfigFromBucket(bucket, network, values);
|
|
523
|
+
});
|
|
524
|
+
const emitExtras = () => Effect.gen(function* () {
|
|
525
|
+
const extras = (yield* Ref.get(contributionsRef)).map((e) => e.decl).filter(isExtrasDecl);
|
|
526
|
+
if (extras.length === 0) return {
|
|
527
|
+
filesWritten: [],
|
|
528
|
+
filesUnchanged: [],
|
|
529
|
+
filesChmod: [],
|
|
530
|
+
bindings: null
|
|
531
|
+
};
|
|
532
|
+
yield* validateUniqueness(extras);
|
|
533
|
+
yield* validateAggregatePathAvailability(extras);
|
|
534
|
+
const paths = yield* CodegenPathsService;
|
|
535
|
+
return yield* Effect.scoped(Effect.gen(function* () {
|
|
536
|
+
yield* acquireStackLock(paths.codegenLockFile, CODEGEN_CYCLE_LOCK_TIMEOUT_MS).pipe(Effect.mapError((cause) => new CodegenWriteFailed({
|
|
537
|
+
outputPath: paths.codegenLockFile,
|
|
538
|
+
stage: "write",
|
|
539
|
+
cause
|
|
540
|
+
})));
|
|
541
|
+
return yield* runEmitCycleInner({
|
|
542
|
+
contributions: extras,
|
|
543
|
+
trackTree: false
|
|
544
|
+
}, paths);
|
|
545
|
+
}));
|
|
546
|
+
});
|
|
320
547
|
return CodegenOrchestratorService.of({
|
|
321
548
|
registerContribution,
|
|
322
|
-
|
|
549
|
+
assembleIdConfig,
|
|
550
|
+
emitExtras
|
|
323
551
|
});
|
|
324
552
|
}));
|
|
325
553
|
//#endregion
|
|
326
|
-
export { CodegenOrchestratorService, layerCodegenOrchestrator };
|
|
554
|
+
export { CodegenOrchestratorService, layerCodegenOrchestrator, runEmitCycle };
|
|
327
555
|
|
|
328
556
|
//# sourceMappingURL=service.mjs.map
|