@mysten-incubation/devstack 0.0.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/LICENSE +189 -0
- package/README.md +94 -0
- package/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/api/define-capabilities.d.mts +25 -0
- package/dist/api/define-capabilities.mjs +19 -0
- package/dist/api/define-capabilities.mjs.map +1 -0
- package/dist/api/define-devstack-with.d.mts +41 -0
- package/dist/api/define-devstack-with.mjs +24 -0
- package/dist/api/define-devstack-with.mjs.map +1 -0
- package/dist/api/define-devstack.d.mts +62 -0
- package/dist/api/define-devstack.mjs +108 -0
- package/dist/api/define-devstack.mjs.map +1 -0
- package/dist/api/define-plugin.d.mts +1 -0
- package/dist/api/inference-network.mjs +122 -0
- package/dist/api/inference-network.mjs.map +1 -0
- package/dist/api/mode-narrowed-factory.d.mts +26 -0
- package/dist/api/mode-narrowed-factory.mjs +8 -0
- package/dist/api/mode-narrowed-factory.mjs.map +1 -0
- package/dist/api/plugin-errors.mjs +10 -0
- package/dist/api/plugin-errors.mjs.map +1 -0
- package/dist/api/run-stack.d.mts +82 -0
- package/dist/api/run-stack.mjs +127 -0
- package/dist/api/run-stack.mjs.map +1 -0
- package/dist/build-integrations/playwright/config.d.mts +92 -0
- package/dist/build-integrations/playwright/config.mjs +71 -0
- package/dist/build-integrations/playwright/config.mjs.map +1 -0
- package/dist/build-integrations/playwright/errors.d.mts +82 -0
- package/dist/build-integrations/playwright/errors.mjs +43 -0
- package/dist/build-integrations/playwright/errors.mjs.map +1 -0
- package/dist/build-integrations/playwright/global-setup.d.mts +64 -0
- package/dist/build-integrations/playwright/global-setup.mjs +44 -0
- package/dist/build-integrations/playwright/global-setup.mjs.map +1 -0
- package/dist/build-integrations/playwright/index.d.mts +6 -0
- package/dist/build-integrations/playwright/index.mjs +6 -0
- package/dist/build-integrations/playwright/stack-context.d.mts +95 -0
- package/dist/build-integrations/playwright/stack-context.mjs +277 -0
- package/dist/build-integrations/playwright/stack-context.mjs.map +1 -0
- package/dist/build-integrations/playwright/wallet-context.d.mts +87 -0
- package/dist/build-integrations/playwright/wallet-context.mjs +148 -0
- package/dist/build-integrations/playwright/wallet-context.mjs.map +1 -0
- package/dist/build-integrations/runtime/cold-start-url.d.mts +67 -0
- package/dist/build-integrations/runtime/cold-start-url.mjs +56 -0
- package/dist/build-integrations/runtime/cold-start-url.mjs.map +1 -0
- package/dist/build-integrations/runtime/dapp-kit-slot.mjs +10 -0
- package/dist/build-integrations/runtime/dapp-kit-slot.mjs.map +1 -0
- package/dist/build-integrations/runtime/discover.d.mts +78 -0
- package/dist/build-integrations/runtime/discover.mjs +124 -0
- package/dist/build-integrations/runtime/discover.mjs.map +1 -0
- package/dist/build-integrations/runtime/endpoint-registry.d.mts +26 -0
- package/dist/build-integrations/runtime/endpoint-registry.mjs +41 -0
- package/dist/build-integrations/runtime/endpoint-registry.mjs.map +1 -0
- package/dist/build-integrations/runtime/errors.d.mts +64 -0
- package/dist/build-integrations/runtime/errors.mjs +51 -0
- package/dist/build-integrations/runtime/errors.mjs.map +1 -0
- package/dist/build-integrations/runtime/index.d.mts +7 -0
- package/dist/build-integrations/runtime/index.mjs +6 -0
- package/dist/build-integrations/runtime/read-stack-context.d.mts +38 -0
- package/dist/build-integrations/runtime/read-stack-context.mjs +130 -0
- package/dist/build-integrations/runtime/read-stack-context.mjs.map +1 -0
- package/dist/build-integrations/runtime/stack-context.d.mts +53 -0
- package/dist/build-integrations/vitest/config.d.mts +62 -0
- package/dist/build-integrations/vitest/config.mjs +80 -0
- package/dist/build-integrations/vitest/config.mjs.map +1 -0
- package/dist/build-integrations/vitest/env.d.mts +48 -0
- package/dist/build-integrations/vitest/env.mjs +50 -0
- package/dist/build-integrations/vitest/env.mjs.map +1 -0
- package/dist/build-integrations/vitest/errors.d.mts +44 -0
- package/dist/build-integrations/vitest/errors.mjs +18 -0
- package/dist/build-integrations/vitest/errors.mjs.map +1 -0
- package/dist/build-integrations/vitest/index.d.mts +6 -0
- package/dist/build-integrations/vitest/index.mjs +6 -0
- package/dist/build-integrations/vitest/setup.d.mts +53 -0
- package/dist/build-integrations/vitest/setup.mjs +56 -0
- package/dist/build-integrations/vitest/setup.mjs.map +1 -0
- package/dist/build-integrations/vitest/stack-context.d.mts +58 -0
- package/dist/build-integrations/vitest/stack-context.mjs +67 -0
- package/dist/build-integrations/vitest/stack-context.mjs.map +1 -0
- package/dist/cli/main.d.mts +5 -0
- package/dist/cli/main.mjs +586 -0
- package/dist/cli/main.mjs.map +1 -0
- package/dist/cli/prune-direct.mjs +216 -0
- package/dist/cli/prune-direct.mjs.map +1 -0
- package/dist/cli/snapshot-reader.mjs +73 -0
- package/dist/cli/snapshot-reader.mjs.map +1 -0
- package/dist/cli/up-lifecycle.mjs +28 -0
- package/dist/cli/up-lifecycle.mjs.map +1 -0
- package/dist/contracts/capability-decl.d.mts +42 -0
- package/dist/contracts/chain-probe.d.mts +26 -0
- package/dist/contracts/chain-probe.mjs +8 -0
- package/dist/contracts/chain-probe.mjs.map +1 -0
- package/dist/contracts/codegenable.d.mts +43 -0
- package/dist/contracts/container-runtime.d.mts +245 -0
- package/dist/contracts/liveness-classifier.d.mts +19 -0
- package/dist/contracts/network-resolver.d.mts +15 -0
- package/dist/contracts/network-resolver.mjs +7 -0
- package/dist/contracts/network-resolver.mjs.map +1 -0
- package/dist/contracts/projection.d.mts +15 -0
- package/dist/contracts/routable.d.mts +53 -0
- package/dist/contracts/snapshotable.d.mts +39 -0
- package/dist/contracts/strategy-contributor.d.mts +26 -0
- package/dist/index.d.mts +89 -0
- package/dist/index.mjs +37 -0
- package/dist/orchestrators/codegen/bindings.d.mts +2 -0
- package/dist/orchestrators/codegen/bindings.mjs +340 -0
- package/dist/orchestrators/codegen/bindings.mjs.map +1 -0
- package/dist/orchestrators/codegen/emit.mjs +56 -0
- package/dist/orchestrators/codegen/emit.mjs.map +1 -0
- package/dist/orchestrators/codegen/errors.d.mts +1 -0
- package/dist/orchestrators/codegen/errors.mjs +66 -0
- package/dist/orchestrators/codegen/errors.mjs.map +1 -0
- package/dist/orchestrators/codegen/extras.mjs +16 -0
- package/dist/orchestrators/codegen/extras.mjs.map +1 -0
- package/dist/orchestrators/codegen/format.mjs +109 -0
- package/dist/orchestrators/codegen/format.mjs.map +1 -0
- package/dist/orchestrators/codegen/gitignore.mjs +67 -0
- package/dist/orchestrators/codegen/gitignore.mjs.map +1 -0
- package/dist/orchestrators/codegen/paths.d.mts +1 -0
- package/dist/orchestrators/codegen/paths.mjs +33 -0
- package/dist/orchestrators/codegen/paths.mjs.map +1 -0
- package/dist/orchestrators/codegen/permissions.mjs +6 -0
- package/dist/orchestrators/codegen/permissions.mjs.map +1 -0
- package/dist/orchestrators/codegen/service.d.mts +1 -0
- package/dist/orchestrators/codegen/service.mjs +276 -0
- package/dist/orchestrators/codegen/service.mjs.map +1 -0
- package/dist/orchestrators/router/cleanup.mjs +58 -0
- package/dist/orchestrators/router/cleanup.mjs.map +1 -0
- package/dist/orchestrators/router/cors.mjs +31 -0
- package/dist/orchestrators/router/cors.mjs.map +1 -0
- package/dist/orchestrators/router/entrypoints.d.mts +1 -0
- package/dist/orchestrators/router/entrypoints.mjs +80 -0
- package/dist/orchestrators/router/entrypoints.mjs.map +1 -0
- package/dist/orchestrators/router/errors.d.mts +1 -0
- package/dist/orchestrators/router/errors.mjs +103 -0
- package/dist/orchestrators/router/errors.mjs.map +1 -0
- package/dist/orchestrators/router/file-provider.d.mts +1 -0
- package/dist/orchestrators/router/file-provider.mjs +320 -0
- package/dist/orchestrators/router/file-provider.mjs.map +1 -0
- package/dist/orchestrators/router/hostname.d.mts +1 -0
- package/dist/orchestrators/router/hostname.mjs +107 -0
- package/dist/orchestrators/router/hostname.mjs.map +1 -0
- package/dist/orchestrators/router/index.d.mts +1 -0
- package/dist/orchestrators/router/profile.d.mts +1 -0
- package/dist/orchestrators/router/profile.mjs +109 -0
- package/dist/orchestrators/router/profile.mjs.map +1 -0
- package/dist/orchestrators/router/service.d.mts +3 -0
- package/dist/orchestrators/router/service.mjs +421 -0
- package/dist/orchestrators/router/service.mjs.map +1 -0
- package/dist/orchestrators/router/traefik-container.d.mts +1 -0
- package/dist/orchestrators/router/traefik-container.mjs +229 -0
- package/dist/orchestrators/router/traefik-container.mjs.map +1 -0
- package/dist/orchestrators/runtime-composition.d.mts +10 -0
- package/dist/orchestrators/runtime-composition.mjs +168 -0
- package/dist/orchestrators/runtime-composition.mjs.map +1 -0
- package/dist/orchestrators/snapshot/capture.d.mts +1 -0
- package/dist/orchestrators/snapshot/capture.mjs +350 -0
- package/dist/orchestrators/snapshot/capture.mjs.map +1 -0
- package/dist/orchestrators/snapshot/descriptor.d.mts +1 -0
- package/dist/orchestrators/snapshot/descriptor.mjs +109 -0
- package/dist/orchestrators/snapshot/descriptor.mjs.map +1 -0
- package/dist/orchestrators/snapshot/identity-guard.d.mts +1 -0
- package/dist/orchestrators/snapshot/identity-guard.mjs +132 -0
- package/dist/orchestrators/snapshot/identity-guard.mjs.map +1 -0
- package/dist/orchestrators/snapshot/image-bundle-tags.mjs +207 -0
- package/dist/orchestrators/snapshot/image-bundle-tags.mjs.map +1 -0
- package/dist/orchestrators/snapshot/index.d.mts +1 -0
- package/dist/orchestrators/snapshot/integrity.d.mts +1 -0
- package/dist/orchestrators/snapshot/integrity.mjs +74 -0
- package/dist/orchestrators/snapshot/integrity.mjs.map +1 -0
- package/dist/orchestrators/snapshot/prune.d.mts +1 -0
- package/dist/orchestrators/snapshot/prune.mjs +110 -0
- package/dist/orchestrators/snapshot/prune.mjs.map +1 -0
- package/dist/orchestrators/snapshot/restore.d.mts +1 -0
- package/dist/orchestrators/snapshot/restore.mjs +404 -0
- package/dist/orchestrators/snapshot/restore.mjs.map +1 -0
- package/dist/orchestrators/snapshot/service.d.mts +1 -0
- package/dist/orchestrators/snapshot/service.mjs +296 -0
- package/dist/orchestrators/snapshot/service.mjs.map +1 -0
- package/dist/orchestrators/snapshot/state-document.mjs +18 -0
- package/dist/orchestrators/snapshot/state-document.mjs.map +1 -0
- package/dist/orchestrators/snapshot/wipe.d.mts +1 -0
- package/dist/orchestrators/snapshot/wipe.mjs +59 -0
- package/dist/orchestrators/snapshot/wipe.mjs.map +1 -0
- package/dist/plugins/account/codegen.d.mts +12 -0
- package/dist/plugins/account/codegen.mjs +22 -0
- package/dist/plugins/account/codegen.mjs.map +1 -0
- package/dist/plugins/account/errors.d.mts +44 -0
- package/dist/plugins/account/errors.mjs +16 -0
- package/dist/plugins/account/errors.mjs.map +1 -0
- package/dist/plugins/account/funding.d.mts +94 -0
- package/dist/plugins/account/funding.mjs +199 -0
- package/dist/plugins/account/funding.mjs.map +1 -0
- package/dist/plugins/account/index.d.mts +54 -0
- package/dist/plugins/account/index.mjs +151 -0
- package/dist/plugins/account/index.mjs.map +1 -0
- package/dist/plugins/account/keypair.d.mts +32 -0
- package/dist/plugins/account/keypair.mjs +99 -0
- package/dist/plugins/account/keypair.mjs.map +1 -0
- package/dist/plugins/account/lease.mjs +21 -0
- package/dist/plugins/account/lease.mjs.map +1 -0
- package/dist/plugins/account/registry.d.mts +33 -0
- package/dist/plugins/account/registry.mjs +36 -0
- package/dist/plugins/account/registry.mjs.map +1 -0
- package/dist/plugins/account/service.d.mts +104 -0
- package/dist/plugins/account/service.mjs +405 -0
- package/dist/plugins/account/service.mjs.map +1 -0
- package/dist/plugins/account/snapshot.mjs +33 -0
- package/dist/plugins/account/snapshot.mjs.map +1 -0
- package/dist/plugins/account/variants/env.mjs +24 -0
- package/dist/plugins/account/variants/env.mjs.map +1 -0
- package/dist/plugins/account/variants/ephemeral.mjs +72 -0
- package/dist/plugins/account/variants/ephemeral.mjs.map +1 -0
- package/dist/plugins/account/variants/impersonate.d.mts +16 -0
- package/dist/plugins/account/variants/impersonate.mjs +48 -0
- package/dist/plugins/account/variants/impersonate.mjs.map +1 -0
- package/dist/plugins/account/variants/inline.mjs +13 -0
- package/dist/plugins/account/variants/inline.mjs.map +1 -0
- package/dist/plugins/account/variants/keystore.mjs +93 -0
- package/dist/plugins/account/variants/keystore.mjs.map +1 -0
- package/dist/plugins/account/variants/signer.mjs +31 -0
- package/dist/plugins/account/variants/signer.mjs.map +1 -0
- package/dist/plugins/action/build-context.d.mts +41 -0
- package/dist/plugins/action/discriminator.d.mts +20 -0
- package/dist/plugins/action/discriminator.mjs +13 -0
- package/dist/plugins/action/discriminator.mjs.map +1 -0
- package/dist/plugins/action/errors.d.mts +31 -0
- package/dist/plugins/action/errors.mjs +13 -0
- package/dist/plugins/action/errors.mjs.map +1 -0
- package/dist/plugins/action/execute.d.mts +2 -0
- package/dist/plugins/action/execute.mjs +145 -0
- package/dist/plugins/action/execute.mjs.map +1 -0
- package/dist/plugins/action/index.d.mts +56 -0
- package/dist/plugins/action/index.mjs +82 -0
- package/dist/plugins/action/index.mjs.map +1 -0
- package/dist/plugins/action/service.d.mts +26 -0
- package/dist/plugins/action/service.mjs +84 -0
- package/dist/plugins/action/service.mjs.map +1 -0
- package/dist/plugins/coin/address-resolution.d.mts +34 -0
- package/dist/plugins/coin/address-resolution.mjs +80 -0
- package/dist/plugins/coin/address-resolution.mjs.map +1 -0
- package/dist/plugins/coin/codegen.d.mts +16 -0
- package/dist/plugins/coin/codegen.mjs +21 -0
- package/dist/plugins/coin/codegen.mjs.map +1 -0
- package/dist/plugins/coin/discovery.d.mts +26 -0
- package/dist/plugins/coin/discovery.mjs +112 -0
- package/dist/plugins/coin/discovery.mjs.map +1 -0
- package/dist/plugins/coin/errors.d.mts +48 -0
- package/dist/plugins/coin/errors.mjs +13 -0
- package/dist/plugins/coin/errors.mjs.map +1 -0
- package/dist/plugins/coin/index.d.mts +95 -0
- package/dist/plugins/coin/index.mjs +172 -0
- package/dist/plugins/coin/index.mjs.map +1 -0
- package/dist/plugins/coin/metadata.d.mts +15 -0
- package/dist/plugins/coin/metadata.mjs +99 -0
- package/dist/plugins/coin/metadata.mjs.map +1 -0
- package/dist/plugins/coin/mint.d.mts +34 -0
- package/dist/plugins/coin/mint.mjs +164 -0
- package/dist/plugins/coin/mint.mjs.map +1 -0
- package/dist/plugins/coin/registry.d.mts +1 -0
- package/dist/plugins/coin/registry.mjs +37 -0
- package/dist/plugins/coin/registry.mjs.map +1 -0
- package/dist/plugins/coin/service.d.mts +47 -0
- package/dist/plugins/coin/service.mjs +51 -0
- package/dist/plugins/coin/service.mjs.map +1 -0
- package/dist/plugins/coin/snapshot.mjs +19 -0
- package/dist/plugins/coin/snapshot.mjs.map +1 -0
- package/dist/plugins/coin/type-strings.mjs +49 -0
- package/dist/plugins/coin/type-strings.mjs.map +1 -0
- package/dist/plugins/deepbook/codegen.d.mts +39 -0
- package/dist/plugins/deepbook/codegen.mjs +15 -0
- package/dist/plugins/deepbook/codegen.mjs.map +1 -0
- package/dist/plugins/deepbook/deploy.mjs +437 -0
- package/dist/plugins/deepbook/deploy.mjs.map +1 -0
- package/dist/plugins/deepbook/errors.d.mts +29 -0
- package/dist/plugins/deepbook/errors.mjs +26 -0
- package/dist/plugins/deepbook/errors.mjs.map +1 -0
- package/dist/plugins/deepbook/faucet-strategy.d.mts +8 -0
- package/dist/plugins/deepbook/faucet-strategy.mjs +81 -0
- package/dist/plugins/deepbook/faucet-strategy.mjs.map +1 -0
- package/dist/plugins/deepbook/index.d.mts +171 -0
- package/dist/plugins/deepbook/index.mjs +359 -0
- package/dist/plugins/deepbook/index.mjs.map +1 -0
- package/dist/plugins/deepbook/plugin-key.mjs +7 -0
- package/dist/plugins/deepbook/plugin-key.mjs.map +1 -0
- package/dist/plugins/deepbook/pyth/index.mjs +226 -0
- package/dist/plugins/deepbook/pyth/index.mjs.map +1 -0
- package/dist/plugins/deepbook/routable.mjs +21 -0
- package/dist/plugins/deepbook/routable.mjs.map +1 -0
- package/dist/plugins/deepbook/snapshot.mjs +49 -0
- package/dist/plugins/deepbook/snapshot.mjs.map +1 -0
- package/dist/plugins/deepbook/types.d.mts +125 -0
- package/dist/plugins/deepbook/types.mjs +12 -0
- package/dist/plugins/deepbook/types.mjs.map +1 -0
- package/dist/plugins/faucet/dispatcher.d.mts +9 -0
- package/dist/plugins/faucet/dispatcher.mjs +13 -0
- package/dist/plugins/faucet/dispatcher.mjs.map +1 -0
- package/dist/plugins/faucet/errors.d.mts +86 -0
- package/dist/plugins/faucet/errors.mjs +19 -0
- package/dist/plugins/faucet/errors.mjs.map +1 -0
- package/dist/plugins/faucet/http.mjs +127 -0
- package/dist/plugins/faucet/http.mjs.map +1 -0
- package/dist/plugins/faucet/index.d.mts +43 -0
- package/dist/plugins/faucet/index.mjs +42 -0
- package/dist/plugins/faucet/index.mjs.map +1 -0
- package/dist/plugins/faucet/service.d.mts +20 -0
- package/dist/plugins/faucet/strategies/sui-local.d.mts +23 -0
- package/dist/plugins/faucet/strategies/sui-local.mjs +29 -0
- package/dist/plugins/faucet/strategies/sui-local.mjs.map +1 -0
- package/dist/plugins/host-service/errors.d.mts +27 -0
- package/dist/plugins/host-service/errors.mjs +14 -0
- package/dist/plugins/host-service/errors.mjs.map +1 -0
- package/dist/plugins/host-service/index.d.mts +10 -0
- package/dist/plugins/host-service/index.mjs +48 -0
- package/dist/plugins/host-service/index.mjs.map +1 -0
- package/dist/plugins/host-service/routable.mjs +24 -0
- package/dist/plugins/host-service/routable.mjs.map +1 -0
- package/dist/plugins/host-service/service.d.mts +49 -0
- package/dist/plugins/host-service/service.mjs +375 -0
- package/dist/plugins/host-service/service.mjs.map +1 -0
- package/dist/plugins/package/build.d.mts +1 -0
- package/dist/plugins/package/build.mjs +24 -0
- package/dist/plugins/package/build.mjs.map +1 -0
- package/dist/plugins/package/codegen.d.mts +19 -0
- package/dist/plugins/package/codegen.mjs +41 -0
- package/dist/plugins/package/codegen.mjs.map +1 -0
- package/dist/plugins/package/dep-resolution.mjs +10 -0
- package/dist/plugins/package/dep-resolution.mjs.map +1 -0
- package/dist/plugins/package/errors.d.mts +34 -0
- package/dist/plugins/package/errors.mjs +13 -0
- package/dist/plugins/package/errors.mjs.map +1 -0
- package/dist/plugins/package/index.d.mts +109 -0
- package/dist/plugins/package/index.mjs +207 -0
- package/dist/plugins/package/index.mjs.map +1 -0
- package/dist/plugins/package/mode-known.mjs +41 -0
- package/dist/plugins/package/mode-known.mjs.map +1 -0
- package/dist/plugins/package/mode-local.d.mts +1 -0
- package/dist/plugins/package/mode-local.mjs +183 -0
- package/dist/plugins/package/mode-local.mjs.map +1 -0
- package/dist/plugins/package/publish-executor.mjs +202 -0
- package/dist/plugins/package/publish-executor.mjs.map +1 -0
- package/dist/plugins/package/publish-output.d.mts +28 -0
- package/dist/plugins/package/publish-output.mjs +45 -0
- package/dist/plugins/package/publish-output.mjs.map +1 -0
- package/dist/plugins/package/registry.d.mts +25 -0
- package/dist/plugins/package/registry.mjs +30 -0
- package/dist/plugins/package/registry.mjs.map +1 -0
- package/dist/plugins/package/service.mjs +20 -0
- package/dist/plugins/package/service.mjs.map +1 -0
- package/dist/plugins/package/snapshot.mjs +25 -0
- package/dist/plugins/package/snapshot.mjs.map +1 -0
- package/dist/plugins/postgres/codegen.mjs +42 -0
- package/dist/plugins/postgres/codegen.mjs.map +1 -0
- package/dist/plugins/postgres/connection.d.mts +33 -0
- package/dist/plugins/postgres/connection.mjs +19 -0
- package/dist/plugins/postgres/connection.mjs.map +1 -0
- package/dist/plugins/postgres/db-ensure.mjs +100 -0
- package/dist/plugins/postgres/db-ensure.mjs.map +1 -0
- package/dist/plugins/postgres/errors.d.mts +55 -0
- package/dist/plugins/postgres/errors.mjs +29 -0
- package/dist/plugins/postgres/errors.mjs.map +1 -0
- package/dist/plugins/postgres/index.d.mts +37 -0
- package/dist/plugins/postgres/index.mjs +75 -0
- package/dist/plugins/postgres/index.mjs.map +1 -0
- package/dist/plugins/postgres/routable.mjs +33 -0
- package/dist/plugins/postgres/routable.mjs.map +1 -0
- package/dist/plugins/postgres/service.d.mts +50 -0
- package/dist/plugins/postgres/service.mjs +145 -0
- package/dist/plugins/postgres/service.mjs.map +1 -0
- package/dist/plugins/postgres/snapshot.d.mts +1 -0
- package/dist/plugins/postgres/snapshot.mjs +32 -0
- package/dist/plugins/postgres/snapshot.mjs.map +1 -0
- package/dist/plugins/router-entrypoints.mjs +21 -0
- package/dist/plugins/router-entrypoints.mjs.map +1 -0
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs +59 -0
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs.map +1 -0
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs +132 -0
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs.map +1 -0
- package/dist/plugins/seal/codegen.d.mts +19 -0
- package/dist/plugins/seal/codegen.mjs +16 -0
- package/dist/plugins/seal/codegen.mjs.map +1 -0
- package/dist/plugins/seal/config-render.mjs +82 -0
- package/dist/plugins/seal/config-render.mjs.map +1 -0
- package/dist/plugins/seal/deploy.mjs +198 -0
- package/dist/plugins/seal/deploy.mjs.map +1 -0
- package/dist/plugins/seal/errors.d.mts +52 -0
- package/dist/plugins/seal/errors.mjs +19 -0
- package/dist/plugins/seal/errors.mjs.map +1 -0
- package/dist/plugins/seal/index.d.mts +161 -0
- package/dist/plugins/seal/index.mjs +235 -0
- package/dist/plugins/seal/index.mjs.map +1 -0
- package/dist/plugins/seal/key-manager.d.mts +22 -0
- package/dist/plugins/seal/key-manager.mjs +22 -0
- package/dist/plugins/seal/key-manager.mjs.map +1 -0
- package/dist/plugins/seal/key-server.mjs +175 -0
- package/dist/plugins/seal/key-server.mjs.map +1 -0
- package/dist/plugins/seal/keygen.mjs +96 -0
- package/dist/plugins/seal/keygen.mjs.map +1 -0
- package/dist/plugins/seal/mode/fork-known.d.mts +8 -0
- package/dist/plugins/seal/mode/fork-known.mjs +23 -0
- package/dist/plugins/seal/mode/fork-known.mjs.map +1 -0
- package/dist/plugins/seal/mode/live.d.mts +18 -0
- package/dist/plugins/seal/mode/live.mjs +64 -0
- package/dist/plugins/seal/mode/live.mjs.map +1 -0
- package/dist/plugins/seal/mode/local-keygen.mjs +180 -0
- package/dist/plugins/seal/mode/local-keygen.mjs.map +1 -0
- package/dist/plugins/seal/plugin-key.mjs +7 -0
- package/dist/plugins/seal/plugin-key.mjs.map +1 -0
- package/dist/plugins/seal/registry-publish.d.mts +43 -0
- package/dist/plugins/seal/registry-publish.mjs +9 -0
- package/dist/plugins/seal/registry-publish.mjs.map +1 -0
- package/dist/plugins/seal/routable.mjs +57 -0
- package/dist/plugins/seal/routable.mjs.map +1 -0
- package/dist/plugins/seal/service.mjs +17 -0
- package/dist/plugins/seal/service.mjs.map +1 -0
- package/dist/plugins/seal/snapshot.mjs +51 -0
- package/dist/plugins/seal/snapshot.mjs.map +1 -0
- package/dist/plugins/sui/auto-tick.mjs +45 -0
- package/dist/plugins/sui/auto-tick.mjs.map +1 -0
- package/dist/plugins/sui/chain-build-container.d.mts +1 -0
- package/dist/plugins/sui/chain-probe.d.mts +85 -0
- package/dist/plugins/sui/chain-probe.mjs +104 -0
- package/dist/plugins/sui/chain-probe.mjs.map +1 -0
- package/dist/plugins/sui/codegen.d.mts +14 -0
- package/dist/plugins/sui/codegen.mjs +26 -0
- package/dist/plugins/sui/codegen.mjs.map +1 -0
- package/dist/plugins/sui/errors.d.mts +74 -0
- package/dist/plugins/sui/errors.mjs +28 -0
- package/dist/plugins/sui/errors.mjs.map +1 -0
- package/dist/plugins/sui/fork-orchestration.mjs +24 -0
- package/dist/plugins/sui/fork-orchestration.mjs.map +1 -0
- package/dist/plugins/sui/fork-transaction.mjs +96 -0
- package/dist/plugins/sui/fork-transaction.mjs.map +1 -0
- package/dist/plugins/sui/index.d.mts +318 -0
- package/dist/plugins/sui/index.mjs +182 -0
- package/dist/plugins/sui/index.mjs.map +1 -0
- package/dist/plugins/sui/mode/external.mjs +60 -0
- package/dist/plugins/sui/mode/external.mjs.map +1 -0
- package/dist/plugins/sui/mode/fork.mjs +283 -0
- package/dist/plugins/sui/mode/fork.mjs.map +1 -0
- package/dist/plugins/sui/mode/live.mjs +103 -0
- package/dist/plugins/sui/mode/live.mjs.map +1 -0
- package/dist/plugins/sui/mode/local.mjs +293 -0
- package/dist/plugins/sui/mode/local.mjs.map +1 -0
- package/dist/plugins/sui/mode/shared-boot.mjs +254 -0
- package/dist/plugins/sui/mode/shared-boot.mjs.map +1 -0
- package/dist/plugins/sui/mode/shared.d.mts +103 -0
- package/dist/plugins/sui/mode/shared.mjs +12 -0
- package/dist/plugins/sui/mode/shared.mjs.map +1 -0
- package/dist/plugins/sui/mode/spec.d.mts +94 -0
- package/dist/plugins/sui/network-resolver.d.mts +23 -0
- package/dist/plugins/sui/routable.mjs +88 -0
- package/dist/plugins/sui/routable.mjs.map +1 -0
- package/dist/plugins/sui/seed-objects.d.mts +18 -0
- package/dist/plugins/sui/seed-objects.mjs +25 -0
- package/dist/plugins/sui/seed-objects.mjs.map +1 -0
- package/dist/plugins/sui/service.mjs +38 -0
- package/dist/plugins/sui/service.mjs.map +1 -0
- package/dist/plugins/sui/snapshot.mjs +53 -0
- package/dist/plugins/sui/snapshot.mjs.map +1 -0
- package/dist/plugins/wallet/codegen.d.mts +33 -0
- package/dist/plugins/wallet/codegen.mjs +34 -0
- package/dist/plugins/wallet/codegen.mjs.map +1 -0
- package/dist/plugins/wallet/errors.d.mts +66 -0
- package/dist/plugins/wallet/errors.mjs +16 -0
- package/dist/plugins/wallet/errors.mjs.map +1 -0
- package/dist/plugins/wallet/index.d.mts +63 -0
- package/dist/plugins/wallet/index.mjs +126 -0
- package/dist/plugins/wallet/index.mjs.map +1 -0
- package/dist/plugins/wallet/origin-policy.d.mts +1 -0
- package/dist/plugins/wallet/origin-policy.mjs +65 -0
- package/dist/plugins/wallet/origin-policy.mjs.map +1 -0
- package/dist/plugins/wallet/pairing.d.mts +11 -0
- package/dist/plugins/wallet/pairing.mjs +125 -0
- package/dist/plugins/wallet/pairing.mjs.map +1 -0
- package/dist/plugins/wallet/protocol.d.mts +1 -0
- package/dist/plugins/wallet/protocol.mjs +96 -0
- package/dist/plugins/wallet/protocol.mjs.map +1 -0
- package/dist/plugins/wallet/routable.mjs +32 -0
- package/dist/plugins/wallet/routable.mjs.map +1 -0
- package/dist/plugins/wallet/server.d.mts +12 -0
- package/dist/plugins/wallet/server.mjs +317 -0
- package/dist/plugins/wallet/server.mjs.map +1 -0
- package/dist/plugins/wallet/service.d.mts +68 -0
- package/dist/plugins/wallet/service.mjs +97 -0
- package/dist/plugins/wallet/service.mjs.map +1 -0
- package/dist/plugins/wallet/snapshot.d.mts +1 -0
- package/dist/plugins/wallet/snapshot.mjs +14 -0
- package/dist/plugins/wallet/snapshot.mjs.map +1 -0
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs +42 -0
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs.map +1 -0
- package/dist/plugins/walrus/codegen.d.mts +38 -0
- package/dist/plugins/walrus/codegen.mjs +34 -0
- package/dist/plugins/walrus/codegen.mjs.map +1 -0
- package/dist/plugins/walrus/deploy-paths.mjs +14 -0
- package/dist/plugins/walrus/deploy-paths.mjs.map +1 -0
- package/dist/plugins/walrus/deploy.d.mts +1 -0
- package/dist/plugins/walrus/deploy.mjs +224 -0
- package/dist/plugins/walrus/deploy.mjs.map +1 -0
- package/dist/plugins/walrus/errors.d.mts +38 -0
- package/dist/plugins/walrus/errors.mjs +26 -0
- package/dist/plugins/walrus/errors.mjs.map +1 -0
- package/dist/plugins/walrus/faucet-strategy.d.mts +12 -0
- package/dist/plugins/walrus/faucet-strategy.mjs +62 -0
- package/dist/plugins/walrus/faucet-strategy.mjs.map +1 -0
- package/dist/plugins/walrus/index.d.mts +177 -0
- package/dist/plugins/walrus/index.mjs +284 -0
- package/dist/plugins/walrus/index.mjs.map +1 -0
- package/dist/plugins/walrus/mode/known-deploy.d.mts +25 -0
- package/dist/plugins/walrus/mode/known-deploy.mjs +71 -0
- package/dist/plugins/walrus/mode/known-deploy.mjs.map +1 -0
- package/dist/plugins/walrus/mode/local-cluster.d.mts +34 -0
- package/dist/plugins/walrus/mode/local-cluster.mjs +153 -0
- package/dist/plugins/walrus/mode/local-cluster.mjs.map +1 -0
- package/dist/plugins/walrus/plugin-key.mjs +7 -0
- package/dist/plugins/walrus/plugin-key.mjs.map +1 -0
- package/dist/plugins/walrus/registry-publish.d.mts +24 -0
- package/dist/plugins/walrus/registry-publish.mjs +7 -0
- package/dist/plugins/walrus/registry-publish.mjs.map +1 -0
- package/dist/plugins/walrus/routable.mjs +99 -0
- package/dist/plugins/walrus/routable.mjs.map +1 -0
- package/dist/plugins/walrus/service.mjs +20 -0
- package/dist/plugins/walrus/service.mjs.map +1 -0
- package/dist/plugins/walrus/snapshot.mjs +53 -0
- package/dist/plugins/walrus/snapshot.mjs.map +1 -0
- package/dist/plugins/walrus/storage-nodes.d.mts +15 -0
- package/dist/plugins/walrus/storage-nodes.mjs +154 -0
- package/dist/plugins/walrus/storage-nodes.mjs.map +1 -0
- package/dist/plugins/walrus/wal-swap.d.mts +2 -0
- package/dist/plugins/walrus/wal-swap.mjs +58 -0
- package/dist/plugins/walrus/wal-swap.mjs.map +1 -0
- package/dist/primitives/artifact-publisher.d.mts +12 -0
- package/dist/primitives/cache.d.mts +1 -0
- package/dist/runtime/built-in-plugin-layers.mjs +49 -0
- package/dist/runtime/built-in-plugin-layers.mjs.map +1 -0
- package/dist/runtime/docker/client.d.mts +2 -0
- package/dist/runtime/docker/client.mjs +54 -0
- package/dist/runtime/docker/client.mjs.map +1 -0
- package/dist/runtime/docker/container.d.mts +1 -0
- package/dist/runtime/docker/container.mjs +562 -0
- package/dist/runtime/docker/container.mjs.map +1 -0
- package/dist/runtime/docker/errors.d.mts +1 -0
- package/dist/runtime/docker/errors.mjs +187 -0
- package/dist/runtime/docker/errors.mjs.map +1 -0
- package/dist/runtime/docker/exec.d.mts +1 -0
- package/dist/runtime/docker/exec.mjs +63 -0
- package/dist/runtime/docker/exec.mjs.map +1 -0
- package/dist/runtime/docker/image.d.mts +1 -0
- package/dist/runtime/docker/image.mjs +278 -0
- package/dist/runtime/docker/image.mjs.map +1 -0
- package/dist/runtime/docker/index.d.mts +1 -0
- package/dist/runtime/docker/inventory.d.mts +1 -0
- package/dist/runtime/docker/inventory.mjs +167 -0
- package/dist/runtime/docker/inventory.mjs.map +1 -0
- package/dist/runtime/docker/labels.d.mts +1 -0
- package/dist/runtime/docker/labels.mjs +97 -0
- package/dist/runtime/docker/labels.mjs.map +1 -0
- package/dist/runtime/docker/logs.d.mts +1 -0
- package/dist/runtime/docker/logs.mjs +34 -0
- package/dist/runtime/docker/logs.mjs.map +1 -0
- package/dist/runtime/docker/network.d.mts +1 -0
- package/dist/runtime/docker/network.mjs +168 -0
- package/dist/runtime/docker/network.mjs.map +1 -0
- package/dist/runtime/docker/service.d.mts +9 -0
- package/dist/runtime/docker/service.mjs +266 -0
- package/dist/runtime/docker/service.mjs.map +1 -0
- package/dist/runtime/docker/sweep.d.mts +1 -0
- package/dist/runtime/docker/sweep.mjs +220 -0
- package/dist/runtime/docker/sweep.mjs.map +1 -0
- package/dist/runtime/docker/volume.d.mts +1 -0
- package/dist/runtime/docker/volume.mjs +24 -0
- package/dist/runtime/docker/volume.mjs.map +1 -0
- package/dist/runtime/docker/wrap.d.mts +1 -0
- package/dist/runtime/docker/wrap.mjs +131 -0
- package/dist/runtime/docker/wrap.mjs.map +1 -0
- package/dist/substrate/brand.d.mts +24 -0
- package/dist/substrate/brand.mjs +14 -0
- package/dist/substrate/brand.mjs.map +1 -0
- package/dist/substrate/cross-process.d.mts +1 -0
- package/dist/substrate/cross-process.mjs +28 -0
- package/dist/substrate/cross-process.mjs.map +1 -0
- package/dist/substrate/events.d.mts +117 -0
- package/dist/substrate/identity.d.mts +13 -0
- package/dist/substrate/lifecycle.d.mts +12 -0
- package/dist/substrate/manifest.d.mts +39 -0
- package/dist/substrate/manifest.mjs +33 -0
- package/dist/substrate/manifest.mjs.map +1 -0
- package/dist/substrate/network.d.mts +34 -0
- package/dist/substrate/options.d.mts +23 -0
- package/dist/substrate/plugin.d.mts +101 -0
- package/dist/substrate/plugin.mjs +61 -0
- package/dist/substrate/plugin.mjs.map +1 -0
- package/dist/substrate/projection.d.mts +100 -0
- package/dist/substrate/runtime/artifact-publisher/index.mjs +76 -0
- package/dist/substrate/runtime/artifact-publisher/index.mjs.map +1 -0
- package/dist/substrate/runtime/atomic-write.mjs +106 -0
- package/dist/substrate/runtime/atomic-write.mjs.map +1 -0
- package/dist/substrate/runtime/cache/index.d.mts +1 -0
- package/dist/substrate/runtime/cache/schema.d.mts +1 -0
- package/dist/substrate/runtime/cache/schema.mjs +22 -0
- package/dist/substrate/runtime/cache/schema.mjs.map +1 -0
- package/dist/substrate/runtime/cache/service.d.mts +1 -0
- package/dist/substrate/runtime/cache/service.mjs +89 -0
- package/dist/substrate/runtime/cache/service.mjs.map +1 -0
- package/dist/substrate/runtime/capability-sinks/index.d.mts +1 -0
- package/dist/substrate/runtime/capability-sinks/layer.d.mts +1 -0
- package/dist/substrate/runtime/capability-sinks/layer.mjs +31 -0
- package/dist/substrate/runtime/capability-sinks/layer.mjs.map +1 -0
- package/dist/substrate/runtime/capability-sinks/service.d.mts +36 -0
- package/dist/substrate/runtime/capability-sinks/service.mjs +74 -0
- package/dist/substrate/runtime/capability-sinks/service.mjs.map +1 -0
- package/dist/substrate/runtime/config-validation.d.mts +38 -0
- package/dist/substrate/runtime/config-validation.mjs +137 -0
- package/dist/substrate/runtime/config-validation.mjs.map +1 -0
- package/dist/substrate/runtime/context-helpers.mjs +32 -0
- package/dist/substrate/runtime/context-helpers.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs +128 -0
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs +136 -0
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs +49 -0
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs +9 -0
- package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/liveness.mjs +119 -0
- package/dist/substrate/runtime/cross-process/liveness.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/roster.mjs +275 -0
- package/dist/substrate/runtime/cross-process/roster.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.d.mts +1 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs +117 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/stack-lock.d.mts +1 -0
- package/dist/substrate/runtime/cross-process/stack-lock.mjs +142 -0
- package/dist/substrate/runtime/cross-process/stack-lock.mjs.map +1 -0
- package/dist/substrate/runtime/current-plugin.mjs +15 -0
- package/dist/substrate/runtime/current-plugin.mjs.map +1 -0
- package/dist/substrate/runtime/errors.d.mts +1 -0
- package/dist/substrate/runtime/errors.mjs +76 -0
- package/dist/substrate/runtime/errors.mjs.map +1 -0
- package/dist/substrate/runtime/host-tree-tar/index.mjs +364 -0
- package/dist/substrate/runtime/host-tree-tar/index.mjs.map +1 -0
- package/dist/substrate/runtime/http-probe.d.mts +35 -0
- package/dist/substrate/runtime/http-probe.mjs +65 -0
- package/dist/substrate/runtime/http-probe.mjs.map +1 -0
- package/dist/substrate/runtime/lease-broker/index.d.mts +1 -0
- package/dist/substrate/runtime/lease-broker/service.d.mts +64 -0
- package/dist/substrate/runtime/lease-broker/service.mjs +155 -0
- package/dist/substrate/runtime/lease-broker/service.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/dep-graph.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs +138 -0
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/index.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs +31 -0
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/plugin-registry.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs +133 -0
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/ready-gate.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/ready-gate.mjs +34 -0
- package/dist/substrate/runtime/lifecycle/ready-gate.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/selective-restart.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs +43 -0
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/signals.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/signals.mjs +64 -0
- package/dist/substrate/runtime/lifecycle/signals.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/state-machine.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/state-machine.mjs +38 -0
- package/dist/substrate/runtime/lifecycle/state-machine.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/watch-attribution.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/watch-attribution.mjs +27 -0
- package/dist/substrate/runtime/lifecycle/watch-attribution.mjs.map +1 -0
- package/dist/substrate/runtime/managed-container.d.mts +30 -0
- package/dist/substrate/runtime/managed-container.mjs +32 -0
- package/dist/substrate/runtime/managed-container.mjs.map +1 -0
- package/dist/substrate/runtime/manifest/manifest.mjs +73 -0
- package/dist/substrate/runtime/manifest/manifest.mjs.map +1 -0
- package/dist/substrate/runtime/mode-errors.d.mts +36 -0
- package/dist/substrate/runtime/observability/cascade-formatter.d.mts +1 -0
- package/dist/substrate/runtime/observability/cascade-formatter.mjs +135 -0
- package/dist/substrate/runtime/observability/cascade-formatter.mjs.map +1 -0
- package/dist/substrate/runtime/observability/formatter-registry.d.mts +1 -0
- package/dist/substrate/runtime/observability/formatter-registry.mjs +65 -0
- package/dist/substrate/runtime/observability/formatter-registry.mjs.map +1 -0
- package/dist/substrate/runtime/observability/index.d.mts +3 -0
- package/dist/substrate/runtime/observability/logger.d.mts +58 -0
- package/dist/substrate/runtime/observability/logger.mjs +89 -0
- package/dist/substrate/runtime/observability/logger.mjs.map +1 -0
- package/dist/substrate/runtime/observability/pretty-error.d.mts +1 -0
- package/dist/substrate/runtime/observability/pretty-error.mjs +119 -0
- package/dist/substrate/runtime/observability/pretty-error.mjs.map +1 -0
- package/dist/substrate/runtime/observability/process-lines.d.mts +31 -0
- package/dist/substrate/runtime/observability/process-lines.mjs +40 -0
- package/dist/substrate/runtime/observability/process-lines.mjs.map +1 -0
- package/dist/substrate/runtime/observability/redaction.d.mts +28 -0
- package/dist/substrate/runtime/observability/redaction.mjs +45 -0
- package/dist/substrate/runtime/observability/redaction.mjs.map +1 -0
- package/dist/substrate/runtime/observability/spans.d.mts +1 -0
- package/dist/substrate/runtime/observability/spans.mjs +87 -0
- package/dist/substrate/runtime/observability/spans.mjs.map +1 -0
- package/dist/substrate/runtime/observability/subprocess-capture.d.mts +2 -0
- package/dist/substrate/runtime/observability/subprocess-capture.mjs +82 -0
- package/dist/substrate/runtime/observability/subprocess-capture.mjs.map +1 -0
- package/dist/substrate/runtime/paths.d.mts +17 -0
- package/dist/substrate/runtime/paths.mjs +61 -0
- package/dist/substrate/runtime/paths.mjs.map +1 -0
- package/dist/substrate/runtime/port-broker/index.d.mts +1 -0
- package/dist/substrate/runtime/port-broker/service.d.mts +1 -0
- package/dist/substrate/runtime/port-broker/service.mjs +319 -0
- package/dist/substrate/runtime/port-broker/service.mjs.map +1 -0
- package/dist/substrate/runtime/post-acquire-tasks.d.mts +1 -0
- package/dist/substrate/runtime/post-acquire-tasks.mjs +34 -0
- package/dist/substrate/runtime/post-acquire-tasks.mjs.map +1 -0
- package/dist/substrate/runtime/probes.d.mts +51 -0
- package/dist/substrate/runtime/probes.mjs +84 -0
- package/dist/substrate/runtime/probes.mjs.map +1 -0
- package/dist/substrate/runtime/process-supervisor.d.mts +57 -0
- package/dist/substrate/runtime/process-supervisor.mjs +73 -0
- package/dist/substrate/runtime/process-supervisor.mjs.map +1 -0
- package/dist/substrate/runtime/projection/operational-endpoints.mjs +44 -0
- package/dist/substrate/runtime/projection/operational-endpoints.mjs.map +1 -0
- package/dist/substrate/runtime/projection/persisted.mjs +195 -0
- package/dist/substrate/runtime/projection/persisted.mjs.map +1 -0
- package/dist/substrate/runtime/projection/state-ref.mjs +48 -0
- package/dist/substrate/runtime/projection/state-ref.mjs.map +1 -0
- package/dist/substrate/runtime/projection/update.mjs +200 -0
- package/dist/substrate/runtime/projection/update.mjs.map +1 -0
- package/dist/substrate/runtime/retry-policy.d.mts +18 -0
- package/dist/substrate/runtime/retry-policy.mjs +16 -0
- package/dist/substrate/runtime/retry-policy.mjs.map +1 -0
- package/dist/substrate/runtime/run.mjs +86 -0
- package/dist/substrate/runtime/run.mjs.map +1 -0
- package/dist/substrate/runtime/runtime-decode.d.mts +32 -0
- package/dist/substrate/runtime/runtime-decode.mjs +53 -0
- package/dist/substrate/runtime/runtime-decode.mjs.map +1 -0
- package/dist/substrate/runtime/scoped-http-server.mjs +36 -0
- package/dist/substrate/runtime/scoped-http-server.mjs.map +1 -0
- package/dist/substrate/runtime/scoped-ref-map/service.mjs +83 -0
- package/dist/substrate/runtime/scoped-ref-map/service.mjs.map +1 -0
- package/dist/substrate/runtime/stage-and-swap/index.d.mts +1 -0
- package/dist/substrate/runtime/stage-and-swap/index.mjs +131 -0
- package/dist/substrate/runtime/stage-and-swap/index.mjs.map +1 -0
- package/dist/substrate/runtime/state-store/schema.mjs +36 -0
- package/dist/substrate/runtime/state-store/schema.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs +22 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.mjs +30 -0
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/index.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/service.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/service.mjs +67 -0
- package/dist/substrate/runtime/strategy-registry/service.mjs.map +1 -0
- package/dist/substrate/runtime/sui-execute/index.d.mts +11 -0
- package/dist/substrate/runtime/sui-execute/index.mjs +144 -0
- package/dist/substrate/runtime/sui-execute/index.mjs.map +1 -0
- package/dist/substrate/runtime/sui-move-build/index.d.mts +1 -0
- package/dist/substrate/runtime/sui-move-build/index.mjs +283 -0
- package/dist/substrate/runtime/sui-move-build/index.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor.d.mts +1 -0
- package/dist/substrate/runtime/supervisor.mjs +831 -0
- package/dist/substrate/runtime/supervisor.mjs.map +1 -0
- package/dist/surfaces/cli/command-tree.mjs +276 -0
- package/dist/surfaces/cli/command-tree.mjs.map +1 -0
- package/dist/surfaces/cli/commands/config.mjs +31 -0
- package/dist/surfaces/cli/commands/config.mjs.map +1 -0
- package/dist/surfaces/cli/commands/confirm-node.mjs +26 -0
- package/dist/surfaces/cli/commands/confirm-node.mjs.map +1 -0
- package/dist/surfaces/cli/commands/confirm.mjs +26 -0
- package/dist/surfaces/cli/commands/confirm.mjs.map +1 -0
- package/dist/surfaces/cli/commands/doctor-probes.mjs +452 -0
- package/dist/surfaces/cli/commands/doctor-probes.mjs.map +1 -0
- package/dist/surfaces/cli/commands/doctor.mjs +38 -0
- package/dist/surfaces/cli/commands/doctor.mjs.map +1 -0
- package/dist/surfaces/cli/commands/prune-picker.mjs +347 -0
- package/dist/surfaces/cli/commands/prune-picker.mjs.map +1 -0
- package/dist/surfaces/cli/commands/prune.mjs +178 -0
- package/dist/surfaces/cli/commands/prune.mjs.map +1 -0
- package/dist/surfaces/cli/commands/snapshot.mjs +141 -0
- package/dist/surfaces/cli/commands/snapshot.mjs.map +1 -0
- package/dist/surfaces/cli/commands/status.mjs +95 -0
- package/dist/surfaces/cli/commands/status.mjs.map +1 -0
- package/dist/surfaces/cli/commands/supervisor-presence.mjs +33 -0
- package/dist/surfaces/cli/commands/supervisor-presence.mjs.map +1 -0
- package/dist/surfaces/cli/commands/wipe.mjs +28 -0
- package/dist/surfaces/cli/commands/wipe.mjs.map +1 -0
- package/dist/surfaces/cli/envelope.mjs +43 -0
- package/dist/surfaces/cli/envelope.mjs.map +1 -0
- package/dist/surfaces/cli/errors.mjs +110 -0
- package/dist/surfaces/cli/errors.mjs.map +1 -0
- package/dist/surfaces/cli/flags.mjs +56 -0
- package/dist/surfaces/cli/flags.mjs.map +1 -0
- package/dist/surfaces/cli/index.mjs +418 -0
- package/dist/surfaces/cli/index.mjs.map +1 -0
- package/dist/surfaces/cli/output.mjs +115 -0
- package/dist/surfaces/cli/output.mjs.map +1 -0
- package/dist/surfaces/cli/sysexits.mjs +139 -0
- package/dist/surfaces/cli/sysexits.mjs.map +1 -0
- package/dist/surfaces/tui/app.mjs +104 -0
- package/dist/surfaces/tui/app.mjs.map +1 -0
- package/dist/surfaces/tui/dashboard.mjs +261 -0
- package/dist/surfaces/tui/dashboard.mjs.map +1 -0
- package/dist/surfaces/tui/display-derivation.mjs +395 -0
- package/dist/surfaces/tui/display-derivation.mjs.map +1 -0
- package/dist/surfaces/tui/errors.mjs +11 -0
- package/dist/surfaces/tui/errors.mjs.map +1 -0
- package/dist/surfaces/tui/event-log.mjs +155 -0
- package/dist/surfaces/tui/event-log.mjs.map +1 -0
- package/dist/surfaces/tui/heartbeat.mjs +33 -0
- package/dist/surfaces/tui/heartbeat.mjs.map +1 -0
- package/dist/surfaces/tui/index.mjs +50 -0
- package/dist/surfaces/tui/index.mjs.map +1 -0
- package/dist/surfaces/tui/input.mjs +104 -0
- package/dist/surfaces/tui/input.mjs.map +1 -0
- package/dist/surfaces/tui/mode-detect.mjs +32 -0
- package/dist/surfaces/tui/mode-detect.mjs.map +1 -0
- package/dist/surfaces/tui/mount-ink.mjs +31 -0
- package/dist/surfaces/tui/mount-ink.mjs.map +1 -0
- package/dist/surfaces/tui/plain-renderer.mjs +170 -0
- package/dist/surfaces/tui/plain-renderer.mjs.map +1 -0
- package/dist/surfaces/tui/resource-table.mjs +507 -0
- package/dist/surfaces/tui/resource-table.mjs.map +1 -0
- package/images/_shared/signal-forward.sh +77 -0
- package/images/postgres/Dockerfile +32 -0
- package/images/seal/Dockerfile +68 -0
- package/images/seal/entrypoint.sh +65 -0
- package/images/sui/Dockerfile +73 -0
- package/images/sui/entrypoint.sh +244 -0
- package/images/sui-fork/Dockerfile +53 -0
- package/images/sui-fork/entrypoint.sh +51 -0
- package/images/walrus/Dockerfile +122 -0
- package/images/walrus/deploy-walrus.sh +305 -0
- package/images/walrus/run-walrus.sh +53 -0
- package/package.json +94 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for, or grant additional or different rights or obligations
|
|
168
|
+
consistent with this License. However, in accepting such obligations,
|
|
169
|
+
You may act only on Your own behalf and on Your sole responsibility,
|
|
170
|
+
not on behalf of any other Contributor, and only if You agree to
|
|
171
|
+
indemnify, defend, and hold each Contributor harmless for any
|
|
172
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
173
|
+
by reason of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2026 Mysten Labs, Inc.
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# @mysten-incubation/devstack
|
|
2
|
+
|
|
3
|
+
Devstack composes a local Sui development environment from one TypeScript config. It can boot Sui,
|
|
4
|
+
fund accounts, publish Move packages, run the dev wallet, start app servers, wire services such as
|
|
5
|
+
Walrus, Seal, and DeepBook, and generate typed files for app and test code.
|
|
6
|
+
|
|
7
|
+
This package is still prototype-stage inside the monorepo and is not published to npm yet. The
|
|
8
|
+
current docs live at <https://ts-sdks-incubation.vercel.app/devstack>.
|
|
9
|
+
|
|
10
|
+
## Quick Start
|
|
11
|
+
|
|
12
|
+
Create a `devstack.config.ts` in your app:
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { dirname, resolve } from 'node:path';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
17
|
+
|
|
18
|
+
import {
|
|
19
|
+
account,
|
|
20
|
+
defineDevstack,
|
|
21
|
+
HOST_SERVICE_PORT_TOKEN,
|
|
22
|
+
hostService,
|
|
23
|
+
localPackage,
|
|
24
|
+
sui,
|
|
25
|
+
wallet,
|
|
26
|
+
} from '@mysten-incubation/devstack';
|
|
27
|
+
|
|
28
|
+
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
29
|
+
const DEV_PORT = 5173;
|
|
30
|
+
|
|
31
|
+
const localnet = sui();
|
|
32
|
+
const publisher = account('publisher');
|
|
33
|
+
const alice = account('alice');
|
|
34
|
+
|
|
35
|
+
const hello = localPackage('hello', {
|
|
36
|
+
sourcePath: resolve(HERE, 'move/hello'),
|
|
37
|
+
publisher,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const devWallet = wallet({
|
|
41
|
+
accounts: [publisher, alice],
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const app = hostService({
|
|
45
|
+
name: 'app',
|
|
46
|
+
script: `pnpm exec vite --host 127.0.0.1 --strictPort --port ${HOST_SERVICE_PORT_TOKEN}`,
|
|
47
|
+
cwd: HERE,
|
|
48
|
+
port: DEV_PORT,
|
|
49
|
+
ready: { kind: 'http' },
|
|
50
|
+
after: [hello, devWallet] as const,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export default defineDevstack({
|
|
54
|
+
members: [localnet, app],
|
|
55
|
+
stackName: 'main',
|
|
56
|
+
codegen: { outputDir: 'src/generated' },
|
|
57
|
+
});
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Run the stack during development:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pnpm devstack up
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Reconcile from another shell, CI, or before typechecking, building, or tests:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm devstack apply
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
If `pnpm devstack up` is already live for this stack, `apply` asks that supervisor to reconcile and
|
|
73
|
+
waits for completion. Without a live supervisor, it runs one-shot setup and exits.
|
|
74
|
+
|
|
75
|
+
Generated files are written under `src/generated` by default. Runtime state, manifests, snapshots,
|
|
76
|
+
and logs stay under `.devstack/`.
|
|
77
|
+
|
|
78
|
+
## Package Surface
|
|
79
|
+
|
|
80
|
+
- Root API: stack composition, built-in factories, plugin-author helpers, and public types.
|
|
81
|
+
- CLI: `devstack up`, `apply`, `status`, `doctor`, `config`, `schema --json`, `snapshot`, `prune`,
|
|
82
|
+
and `wipe`.
|
|
83
|
+
- Build integrations: `@mysten-incubation/devstack/vitest`, `/playwright`, and `/runtime`.
|
|
84
|
+
|
|
85
|
+
App code should consume generated files and the runtime manifest. It should not import devstack
|
|
86
|
+
engine internals directly.
|
|
87
|
+
|
|
88
|
+
## Docs
|
|
89
|
+
|
|
90
|
+
- [Quickstart](https://ts-sdks-incubation.vercel.app/devstack/quickstart)
|
|
91
|
+
- [Local development](https://ts-sdks-incubation.vercel.app/devstack/features/local-dev)
|
|
92
|
+
- [Vitest integration](https://ts-sdks-incubation.vercel.app/devstack/features/testing-vitest)
|
|
93
|
+
- [Playwright integration](https://ts-sdks-incubation.vercel.app/devstack/features/testing-playwright)
|
|
94
|
+
- [Services](https://ts-sdks-incubation.vercel.app/devstack/features/services)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CodegenableDecl } from "../contracts/codegenable.mjs";
|
|
2
|
+
import { ProjectionDecl } from "../contracts/projection.mjs";
|
|
3
|
+
import { RoutableDecl } from "../contracts/routable.mjs";
|
|
4
|
+
import { SnapshotableDecl } from "../contracts/snapshotable.mjs";
|
|
5
|
+
import { StrategyContributorDecl } from "../contracts/strategy-contributor.mjs";
|
|
6
|
+
import { CapabilityDecl, CapabilityKind, CapabilityPayloadFor, ExactCapabilityPayload } from "../contracts/capability-decl.mjs";
|
|
7
|
+
import { CapabilitySink, ContributionKind, HarvestContext } from "../substrate/runtime/capability-sinks/service.mjs";
|
|
8
|
+
import { Effect, Scope } from "effect";
|
|
9
|
+
|
|
10
|
+
//#region src/api/define-capabilities.d.ts
|
|
11
|
+
declare const capability: <const Kind extends string, const Data extends CapabilityPayloadFor<Kind>>(kind: Kind, data: Data & ExactCapabilityPayload<Kind, Data>) => CapabilityDecl<Kind> & Readonly<Data>;
|
|
12
|
+
declare const defineCapability: <const Kind extends string>(kind: Kind) => <const Data extends CapabilityPayloadFor<Kind>>(data: Data & ExactCapabilityPayload<Kind, Data>) => CapabilityDecl<Kind> & Readonly<Data>;
|
|
13
|
+
declare const codegenable: <const Emitter extends string>(decl: Omit<CodegenableDecl<Emitter>, "kind">) => CodegenableDecl<Emitter>;
|
|
14
|
+
declare const snapshotable: (decl: Omit<SnapshotableDecl, "kind">) => SnapshotableDecl;
|
|
15
|
+
declare const routable: (decl: Omit<RoutableDecl, "kind">) => RoutableDecl;
|
|
16
|
+
declare const projection: (decl: Omit<ProjectionDecl, "kind">) => ProjectionDecl;
|
|
17
|
+
declare const strategyContributor: <const Key extends string, Strategy>(decl: Omit<StrategyContributorDecl<Key, Strategy>, "kind">) => StrategyContributorDecl<Key, Strategy>;
|
|
18
|
+
declare const capabilitySink: <const Kind extends ContributionKind, Decl extends (Kind extends CapabilityKind ? Extract<CapabilityDecl, {
|
|
19
|
+
readonly kind: Kind;
|
|
20
|
+
}> : Readonly<{
|
|
21
|
+
readonly kind: Kind;
|
|
22
|
+
} & object>)>(kind: Kind, accept: (decl: Decl, ctx: HarvestContext) => Effect.Effect<void, never, Scope.Scope>) => CapabilitySink<Kind, Decl>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor };
|
|
25
|
+
//# sourceMappingURL=define-capabilities.d.mts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/api/define-capabilities.ts
|
|
2
|
+
const capability = (kind, data) => ({
|
|
3
|
+
...data,
|
|
4
|
+
kind
|
|
5
|
+
});
|
|
6
|
+
const defineCapability = (kind) => (data) => capability(kind, data);
|
|
7
|
+
const codegenable = (decl) => capability("codegenable", decl);
|
|
8
|
+
const snapshotable = (decl) => capability("snapshotable", decl);
|
|
9
|
+
const routable = (decl) => capability("routable", decl);
|
|
10
|
+
const projection = (decl) => capability("projection", decl);
|
|
11
|
+
const strategyContributor = (decl) => capability("strategy-contributor", decl);
|
|
12
|
+
const capabilitySink = (kind, accept) => ({
|
|
13
|
+
kind,
|
|
14
|
+
accept
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=define-capabilities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-capabilities.mjs","names":[],"sources":["../../src/api/define-capabilities.ts"],"sourcesContent":["// Typed capability helpers. Plugin authors return plain capability\n// arrays from `definePlugin({ capabilities })`; these helpers add the\n// discriminant while preserving narrow payload types.\n\nimport type {\n\tCapabilityDecl,\n\tCapabilityKind,\n\tCapabilityPayloadFor,\n\tExactCapabilityPayload,\n} from '../contracts/capability-decl.ts';\nimport type { CodegenableDecl } from '../contracts/codegenable.ts';\nimport type { ProjectionDecl } from '../contracts/projection.ts';\nimport type { RoutableDecl } from '../contracts/routable.ts';\nimport type { SnapshotableDecl } from '../contracts/snapshotable.ts';\nimport type { StrategyContributorDecl } from '../contracts/strategy-contributor.ts';\nimport type {\n\tCapabilitySink,\n\tContributionKind,\n\tHarvestContext,\n} from '../substrate/runtime/capability-sinks/service.ts';\nimport type { Effect, Scope } from 'effect';\n\nexport const capability = <\n\tconst Kind extends string,\n\tconst Data extends CapabilityPayloadFor<Kind>,\n>(\n\tkind: Kind,\n\tdata: Data & ExactCapabilityPayload<Kind, Data>,\n): CapabilityDecl<Kind> & Readonly<Data> =>\n\t({\n\t\t...data,\n\t\tkind,\n\t}) as CapabilityDecl<Kind> & Readonly<Data>;\n\nexport const defineCapability =\n\t<const Kind extends string>(kind: Kind) =>\n\t<const Data extends CapabilityPayloadFor<Kind>>(\n\t\tdata: Data & ExactCapabilityPayload<Kind, Data>,\n\t) =>\n\t\tcapability<Kind, Data>(kind, data);\n\nexport const codegenable = <const Emitter extends string>(\n\tdecl: Omit<CodegenableDecl<Emitter>, 'kind'>,\n): CodegenableDecl<Emitter> => capability('codegenable', decl);\n\nexport const snapshotable = (decl: Omit<SnapshotableDecl, 'kind'>): SnapshotableDecl =>\n\tcapability('snapshotable', decl);\n\nexport const routable = (decl: Omit<RoutableDecl, 'kind'>): RoutableDecl =>\n\tcapability('routable', decl) as RoutableDecl;\n\nexport const projection = (decl: Omit<ProjectionDecl, 'kind'>): ProjectionDecl =>\n\tcapability('projection', decl);\n\nexport const strategyContributor = <const Key extends string, Strategy>(\n\tdecl: Omit<StrategyContributorDecl<Key, Strategy>, 'kind'>,\n): StrategyContributorDecl<Key, Strategy> => capability('strategy-contributor', decl);\n\nexport const capabilitySink = <\n\tconst Kind extends ContributionKind,\n\tDecl extends Kind extends CapabilityKind\n\t\t? Extract<CapabilityDecl, { readonly kind: Kind }>\n\t\t: Readonly<{ readonly kind: Kind } & object>,\n>(\n\tkind: Kind,\n\taccept: (decl: Decl, ctx: HarvestContext) => Effect.Effect<void, never, Scope.Scope>,\n): CapabilitySink<Kind, Decl> => ({ kind, accept });\n"],"mappings":";AAsBA,MAAa,cAIZ,MACA,UAEC;CACA,GAAG;CACH;CACA;AAEF,MAAa,oBACgB,UAE3B,SAEA,WAAuB,MAAM,KAAK;AAEpC,MAAa,eACZ,SAC8B,WAAW,eAAe,KAAK;AAE9D,MAAa,gBAAgB,SAC5B,WAAW,gBAAgB,KAAK;AAEjC,MAAa,YAAY,SACxB,WAAW,YAAY,KAAK;AAE7B,MAAa,cAAc,SAC1B,WAAW,cAAc,KAAK;AAE/B,MAAa,uBACZ,SAC4C,WAAW,wBAAwB,KAAK;AAErF,MAAa,kBAMZ,MACA,YACiC;CAAE;CAAM;CAAQ"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AnyPlugin, MissingProviders, __MissingProvidersError } from "../substrate/plugin.mjs";
|
|
2
|
+
import { NetworkConfig, NetworkMode } from "../substrate/network.mjs";
|
|
3
|
+
import { DevstackOptions } from "../substrate/options.mjs";
|
|
4
|
+
import { ComposedMembers, Stack } from "./define-devstack.mjs";
|
|
5
|
+
|
|
6
|
+
//#region src/api/define-devstack-with.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Build context handed to the callback. The `network` field carries
|
|
9
|
+
* the resolved-narrow `NetworkConfig`; mode-narrowed factories that
|
|
10
|
+
* take `(network)` recover the discriminator at the type level.
|
|
11
|
+
*/
|
|
12
|
+
interface BuildCtx<Mode extends NetworkMode> {
|
|
13
|
+
readonly network: NetworkConfig<Mode>;
|
|
14
|
+
}
|
|
15
|
+
/** Options bag for the callback form. `network` MUST be present so the
|
|
16
|
+
* callback's `BuildCtx` is typed. */
|
|
17
|
+
interface DevstackOptionsWith<Mode extends NetworkMode> extends DevstackOptions {
|
|
18
|
+
readonly network: NetworkConfig<Mode>;
|
|
19
|
+
}
|
|
20
|
+
/** Validation gate. Mirrors the flat-form rule: resolves to the
|
|
21
|
+
* caller's `Members` tuple on a clean check, branded error
|
|
22
|
+
* otherwise.
|
|
23
|
+
*
|
|
24
|
+
* Validation runs against the recursively expanded tuple
|
|
25
|
+
* (`ComposedMembers<Members>`) so plugin-valued dependencies are
|
|
26
|
+
* included before missing-provider checks. Bare resource dependencies
|
|
27
|
+
* still require an explicit provider in the returned member tuple. */
|
|
28
|
+
type ValidateBuild<Members> = Members extends ReadonlyArray<AnyPlugin> ? ComposedMembers<Members> extends infer M ? M extends ReadonlyArray<unknown> ? [MissingProviders<M>] extends [never] ? Members : __MissingProvidersError<MissingProviders<M>> : never : never : never;
|
|
29
|
+
/**
|
|
30
|
+
* Callback-form devstack composer. The first arg is the options bag
|
|
31
|
+
* (including the mode-narrow `network`); the second is a builder that
|
|
32
|
+
* receives a `BuildCtx<Mode>` and returns the member tuple.
|
|
33
|
+
*
|
|
34
|
+
* The `Mode` generic is inferred from `options.network.mode`; the
|
|
35
|
+
* callback's `BuildCtx` carries it, and plugin factories that accept
|
|
36
|
+
* the narrowed network see the matching branch only.
|
|
37
|
+
*/
|
|
38
|
+
declare function defineDevstackWith<Mode extends NetworkMode, Members extends ReadonlyArray<AnyPlugin>>(options: DevstackOptionsWith<Mode>, build: (ctx: BuildCtx<Mode>) => ValidateBuild<Members>): Stack<ComposedMembers<Members>>;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { BuildCtx, DevstackOptionsWith, defineDevstackWith };
|
|
41
|
+
//# sourceMappingURL=define-devstack-with.d.mts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isPlugin } from "../substrate/plugin.mjs";
|
|
2
|
+
import { defineDevstack } from "./define-devstack.mjs";
|
|
3
|
+
//#region src/api/define-devstack-with.ts
|
|
4
|
+
/**
|
|
5
|
+
* Callback-form devstack composer. The first arg is the options bag
|
|
6
|
+
* (including the mode-narrow `network`); the second is a builder that
|
|
7
|
+
* receives a `BuildCtx<Mode>` and returns the member tuple.
|
|
8
|
+
*
|
|
9
|
+
* The `Mode` generic is inferred from `options.network.mode`; the
|
|
10
|
+
* callback's `BuildCtx` carries it, and plugin factories that accept
|
|
11
|
+
* the narrowed network see the matching branch only.
|
|
12
|
+
*/
|
|
13
|
+
function defineDevstackWith(options, build) {
|
|
14
|
+
const rawMembers = build({ network: options.network });
|
|
15
|
+
for (const m of rawMembers) if (!isPlugin(m)) throw new Error("defineDevstackWith: builder returned a value that is not a plugin member (missing plugin brand). Did you forget to wrap it with definePlugin?");
|
|
16
|
+
return defineDevstack({
|
|
17
|
+
...options,
|
|
18
|
+
members: rawMembers
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { defineDevstackWith };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=define-devstack-with.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-devstack-with.mjs","names":[],"sources":["../../src/api/define-devstack-with.ts"],"sourcesContent":["// `defineDevstackWith` — callback form.\n//\n// Architecture § Programmable API: the canonical surface when one or\n// more plugin factories need mode-narrowing. The callback receives a\n// `BuildCtx` whose `network` is the resolved-narrow `NetworkConfig`;\n// plugin-author factories that take `(network)` recover the mode\n// discriminator structurally, and the compiler refuses illegal-mode\n// factory access at the call site.\n\nimport { isPlugin, type AnyPlugin } from '../substrate/plugin.ts';\nimport type { DevstackOptions } from '../substrate/options.ts';\nimport type { NetworkConfig, NetworkMode } from '../substrate/network.ts';\nimport type { __MissingProvidersError, MissingProviders } from '../substrate/plugin.ts';\nimport { defineDevstack, type ComposedMembers, type Stack } from './define-devstack.ts';\n\n// --- Callback context ---------------------------------------------------\n\n/**\n * Build context handed to the callback. The `network` field carries\n * the resolved-narrow `NetworkConfig`; mode-narrowed factories that\n * take `(network)` recover the discriminator at the type level.\n */\nexport interface BuildCtx<Mode extends NetworkMode> {\n\treadonly network: NetworkConfig<Mode>;\n}\n\n/** Options bag for the callback form. `network` MUST be present so the\n * callback's `BuildCtx` is typed. */\nexport interface DevstackOptionsWith<Mode extends NetworkMode> extends DevstackOptions {\n\treadonly network: NetworkConfig<Mode>;\n}\n\n/** Validation gate. Mirrors the flat-form rule: resolves to the\n * caller's `Members` tuple on a clean check, branded error\n * otherwise.\n *\n * Validation runs against the recursively expanded tuple\n * (`ComposedMembers<Members>`) so plugin-valued dependencies are\n * included before missing-provider checks. Bare resource dependencies\n * still require an explicit provider in the returned member tuple. */\ntype ValidateBuild<Members> =\n\tMembers extends ReadonlyArray<AnyPlugin>\n\t\t? ComposedMembers<Members> extends infer M\n\t\t\t? M extends ReadonlyArray<unknown>\n\t\t\t\t? [MissingProviders<M>] extends [never]\n\t\t\t\t\t? Members\n\t\t\t\t\t: __MissingProvidersError<MissingProviders<M>>\n\t\t\t\t: never\n\t\t\t: never\n\t\t: never;\n\n// --- Public surface -----------------------------------------------------\n\n/**\n * Callback-form devstack composer. The first arg is the options bag\n * (including the mode-narrow `network`); the second is a builder that\n * receives a `BuildCtx<Mode>` and returns the member tuple.\n *\n * The `Mode` generic is inferred from `options.network.mode`; the\n * callback's `BuildCtx` carries it, and plugin factories that accept\n * the narrowed network see the matching branch only.\n */\nexport function defineDevstackWith<\n\tMode extends NetworkMode,\n\tMembers extends ReadonlyArray<AnyPlugin>,\n>(\n\toptions: DevstackOptionsWith<Mode>,\n\tbuild: (ctx: BuildCtx<Mode>) => ValidateBuild<Members>,\n): Stack<ComposedMembers<Members>> {\n\tconst rawMembers = build({ network: options.network }) as ReadonlyArray<AnyPlugin>;\n\n\t// Defensive runtime check: every element returned by the builder\n\t// must be a plugin resource. Type system enforces this, but a\n\t// runtime check guards against `as unknown as AnyPlugin` casts.\n\tfor (const m of rawMembers) {\n\t\tif (!isPlugin(m)) {\n\t\t\tthrow new Error(\n\t\t\t\t'defineDevstackWith: builder returned a value that is not a plugin member ' +\n\t\t\t\t\t'(missing plugin brand). Did you forget to wrap it with definePlugin?',\n\t\t\t);\n\t\t}\n\t}\n\n\treturn defineDevstack({ ...options, members: rawMembers }) as unknown as Stack<\n\t\tComposedMembers<Members>\n\t>;\n}\n"],"mappings":";;;;;;;;;;;;AA8DA,SAAgB,mBAIf,SACA,OACkC;CAClC,MAAM,aAAa,MAAM,EAAE,SAAS,QAAQ,SAAS,CAAC;AAKtD,MAAK,MAAM,KAAK,WACf,KAAI,CAAC,SAAS,EAAE,CACf,OAAM,IAAI,MACT,gJAEA;AAIH,QAAO,eAAe;EAAE,GAAG;EAAS,SAAS;EAAY,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AnyPlugin, MissingProviders, __MissingProvidersError } from "../substrate/plugin.mjs";
|
|
2
|
+
import { DevstackOptions } from "../substrate/options.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/api/define-devstack.d.ts
|
|
5
|
+
type PluginDependencyMembers<Member> = Member extends {
|
|
6
|
+
readonly dependsOn: ReadonlyArray<infer Dependency>;
|
|
7
|
+
} ? Dependency extends AnyPlugin ? Dependency : never : never;
|
|
8
|
+
type ReachableMember<Member, Seen extends string = never> = Member extends {
|
|
9
|
+
readonly id: infer Id extends string;
|
|
10
|
+
} ? Id extends Seen ? never : Member | ReachableMember<PluginDependencyMembers<Member>, Seen | Id> : never;
|
|
11
|
+
type DependencyClosure<Members extends ReadonlyArray<AnyPlugin>> = ReadonlyArray<Members[number] extends infer Member ? ReachableMember<Member> : never>;
|
|
12
|
+
type ComposedMembers<Members extends ReadonlyArray<AnyPlugin>> = DependencyClosure<Members>;
|
|
13
|
+
interface DevstackConfig<Members extends ReadonlyArray<AnyPlugin>> extends DevstackOptions {
|
|
14
|
+
readonly members: Members;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The compile-time stack handle. Carries:
|
|
18
|
+
* - the plugin tuple (narrow),
|
|
19
|
+
* - the union of resource ids it provides,
|
|
20
|
+
* - an opaque marker the orchestrator boot path consumes.
|
|
21
|
+
*
|
|
22
|
+
* The runtime value is a struct; orchestrators consume it through
|
|
23
|
+
* the supervisor entry point.
|
|
24
|
+
*/
|
|
25
|
+
interface Stack<Members extends ReadonlyArray<AnyPlugin> = ReadonlyArray<AnyPlugin>> {
|
|
26
|
+
readonly _tag: 'Stack';
|
|
27
|
+
readonly options: DevstackOptions;
|
|
28
|
+
/** Phantom — preserves the union of provided ids for downstream
|
|
29
|
+
* introspection. Covariant per the phantom-variance rule. */
|
|
30
|
+
readonly _providedIds?: () => { [K in keyof Members]: Members[K]['id'] }[number];
|
|
31
|
+
}
|
|
32
|
+
/** Validation gate. Resolves to `unknown` when every check passes
|
|
33
|
+
* (assignable to any `Args`); to a branded structured error
|
|
34
|
+
* otherwise (not assignable, surfacing the field name in the IDE).
|
|
35
|
+
* UNCONSTRAINED Members — every helper sidesteps constraint widening
|
|
36
|
+
* via an internal `Members extends ReadonlyArray<unknown> ? ... : never`
|
|
37
|
+
* shape (Phase-3 finding).
|
|
38
|
+
*
|
|
39
|
+
* IMPORTANT: validation runs against the recursively expanded member
|
|
40
|
+
* tuple (`ComposedMembers<Members>`). Bare resource dependencies must
|
|
41
|
+
* have an explicit provider in the stack; plugin-valued dependencies
|
|
42
|
+
* are pulled in by the closure first. */
|
|
43
|
+
type ValidateArgs<Members> = Members extends ReadonlyArray<AnyPlugin> ? ComposedMembers<Members> extends infer M ? M extends ReadonlyArray<unknown> ? [MissingProviders<M>] extends [never] ? unknown : __MissingProvidersError<MissingProviders<M>> : never : never : never;
|
|
44
|
+
/**
|
|
45
|
+
* Object-form devstack composer.
|
|
46
|
+
*
|
|
47
|
+
* Compile-time checks performed:
|
|
48
|
+
* - missing-provider: every dependency id has a matching plugin id
|
|
49
|
+
* somewhere in the plugin set.
|
|
50
|
+
*
|
|
51
|
+
* Validation surfaces at the PARAMETER (not the return type) — the
|
|
52
|
+
* generic `Args` is constrained against a branded error type whose
|
|
53
|
+
* field name names the missing piece (type-prototype finding #6,
|
|
54
|
+
* architecture open question #11). Failed validation makes the
|
|
55
|
+
* config type un-assignable, surfacing as the standard
|
|
56
|
+
* "not assignable to parameter of type" diagnostic with the branded
|
|
57
|
+
* error field visible in the IDE.
|
|
58
|
+
*/
|
|
59
|
+
declare function defineDevstack<const Members extends ReadonlyArray<AnyPlugin>>(config: DevstackConfig<Members> & ValidateArgs<Members>): Stack<ComposedMembers<Members>>;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { ComposedMembers, Stack, defineDevstack };
|
|
62
|
+
//# sourceMappingURL=define-devstack.d.mts.map
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { isPlugin, pluginDependencyRefs } from "../substrate/plugin.mjs";
|
|
2
|
+
import { WALLET_EXPAND_ACCOUNTS_ALL } from "../plugins/wallet/index.mjs";
|
|
3
|
+
//#region src/api/define-devstack.ts
|
|
4
|
+
const STACK_ENGINE = Symbol.for("@mysten-incubation/devstack.stack.engine");
|
|
5
|
+
const ACCOUNT_RESOURCE_PREFIX = "account/";
|
|
6
|
+
const readStackEngine = (stack) => {
|
|
7
|
+
const engine = stack[STACK_ENGINE];
|
|
8
|
+
if (engine === void 0) throw new Error("Invalid devstack Stack handle: missing internal engine stack");
|
|
9
|
+
return engine;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Object-form devstack composer.
|
|
13
|
+
*
|
|
14
|
+
* Compile-time checks performed:
|
|
15
|
+
* - missing-provider: every dependency id has a matching plugin id
|
|
16
|
+
* somewhere in the plugin set.
|
|
17
|
+
*
|
|
18
|
+
* Validation surfaces at the PARAMETER (not the return type) — the
|
|
19
|
+
* generic `Args` is constrained against a branded error type whose
|
|
20
|
+
* field name names the missing piece (type-prototype finding #6,
|
|
21
|
+
* architecture open question #11). Failed validation makes the
|
|
22
|
+
* config type un-assignable, surfacing as the standard
|
|
23
|
+
* "not assignable to parameter of type" diagnostic with the branded
|
|
24
|
+
* error field visible in the IDE.
|
|
25
|
+
*/
|
|
26
|
+
function defineDevstack(config) {
|
|
27
|
+
const members = expandPluginDependencies(expandWalletAccountsAll(expandPluginDependencies(config.members)));
|
|
28
|
+
const { members: _members, ...options } = config;
|
|
29
|
+
const engine = {
|
|
30
|
+
_tag: "Stack",
|
|
31
|
+
members,
|
|
32
|
+
options
|
|
33
|
+
};
|
|
34
|
+
const stack = {
|
|
35
|
+
_tag: "Stack",
|
|
36
|
+
options
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(stack, STACK_ENGINE, {
|
|
39
|
+
value: engine,
|
|
40
|
+
enumerable: false,
|
|
41
|
+
configurable: false,
|
|
42
|
+
writable: false
|
|
43
|
+
});
|
|
44
|
+
return stack;
|
|
45
|
+
}
|
|
46
|
+
const expandPluginDependencies = (members) => {
|
|
47
|
+
const expanded = [];
|
|
48
|
+
const seen = /* @__PURE__ */ new Map();
|
|
49
|
+
const accountNameByCaseFold = /* @__PURE__ */ new Map();
|
|
50
|
+
const visiting = /* @__PURE__ */ new Set();
|
|
51
|
+
const visit = (member) => {
|
|
52
|
+
const id = member.id;
|
|
53
|
+
const previous = seen.get(id);
|
|
54
|
+
if (previous === member) return;
|
|
55
|
+
if (previous !== void 0) {
|
|
56
|
+
if (isExpandedWalletAlias(previous, member)) return;
|
|
57
|
+
throw new Error(`Duplicate devstack provider for ${id}`);
|
|
58
|
+
}
|
|
59
|
+
const accountName = accountNameFromResourceId(id);
|
|
60
|
+
if (accountName !== null) {
|
|
61
|
+
const caseFoldedName = accountName.toLowerCase();
|
|
62
|
+
const previousAccountName = accountNameByCaseFold.get(caseFoldedName);
|
|
63
|
+
if (previousAccountName !== void 0 && previousAccountName !== accountName) throw new Error(`Duplicate devstack account name '${accountName}' differs only by casing from '${previousAccountName}'`);
|
|
64
|
+
accountNameByCaseFold.set(caseFoldedName, accountName);
|
|
65
|
+
}
|
|
66
|
+
if (visiting.has(id)) throw new Error(`Circular devstack dependency through ${id}`);
|
|
67
|
+
visiting.add(id);
|
|
68
|
+
if (isPlugin(member)) {
|
|
69
|
+
for (const dependency of pluginDependencyRefs(member)) if (isPlugin(dependency)) visit(dependency);
|
|
70
|
+
}
|
|
71
|
+
visiting.delete(id);
|
|
72
|
+
seen.set(id, member);
|
|
73
|
+
expanded.push(member);
|
|
74
|
+
};
|
|
75
|
+
for (const member of members) visit(member);
|
|
76
|
+
return expanded;
|
|
77
|
+
};
|
|
78
|
+
const isExpandedWalletAlias = (a, b) => a.id === b.id && (readExpandHook(a) !== void 0 || readExpandHook(b) !== void 0);
|
|
79
|
+
const accountNameFromResourceId = (id) => {
|
|
80
|
+
if (!id.startsWith(ACCOUNT_RESOURCE_PREFIX)) return null;
|
|
81
|
+
return id.slice(8);
|
|
82
|
+
};
|
|
83
|
+
function readExpandHook(m) {
|
|
84
|
+
const slot = m[WALLET_EXPAND_ACCOUNTS_ALL];
|
|
85
|
+
return typeof slot === "function" ? slot : void 0;
|
|
86
|
+
}
|
|
87
|
+
/** Expand any `wallet({ accounts: 'all' })` placeholder plugin into a
|
|
88
|
+
* real wallet plugin whose dependencies include every account plugin.
|
|
89
|
+
* Returns the input array verbatim when no expansion is
|
|
90
|
+
* needed (zero allocation on the common explicit-tuple path). */
|
|
91
|
+
function expandWalletAccountsAll(members) {
|
|
92
|
+
let needsExpansion = false;
|
|
93
|
+
for (const m of members) if (readExpandHook(m) !== void 0) {
|
|
94
|
+
needsExpansion = true;
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
if (!needsExpansion) return members;
|
|
98
|
+
const accountMembers = [];
|
|
99
|
+
for (const m of members) if (m.id.startsWith(ACCOUNT_RESOURCE_PREFIX)) accountMembers.push(m);
|
|
100
|
+
return members.map((m) => {
|
|
101
|
+
const expand = readExpandHook(m);
|
|
102
|
+
return expand === void 0 ? m : expand(accountMembers);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
export { defineDevstack, readStackEngine };
|
|
107
|
+
|
|
108
|
+
//# sourceMappingURL=define-devstack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-devstack.mjs","names":[],"sources":["../../src/api/define-devstack.ts"],"sourcesContent":["// `defineDevstack` — object-form stack composer.\n//\n// Listed members are entrypoints. Plugin-valued dependencies are\n// expanded recursively before the engine sees the plugin list.\n\nimport {\n\ttype __MissingProvidersError,\n\ttype AnyPlugin,\n\ttype MissingProviders,\n\tpluginDependencyRefs,\n} from '../substrate/plugin.ts';\nimport type { DevstackOptions } from '../substrate/options.ts';\nimport {\n\tWALLET_EXPAND_ACCOUNTS_ALL,\n\ttype WalletExpandAccountsAllExpander,\n} from '../plugins/wallet/index.ts';\nimport type { WalletAccountMember } from '../plugins/wallet/index.ts';\nimport { isPlugin, type AnyResourceRef } from './define-plugin.ts';\n\n// --- Type-level helpers -------------------------------------------------\n\nconst STACK_ENGINE = Symbol.for('@mysten-incubation/devstack.stack.engine');\n\ntype PluginDependencyMembers<Member> = Member extends {\n\treadonly dependsOn: ReadonlyArray<infer Dependency>;\n}\n\t? Dependency extends AnyPlugin\n\t\t? Dependency\n\t\t: never\n\t: never;\n\ntype ReachableMember<Member, Seen extends string = never> = Member extends {\n\treadonly id: infer Id extends string;\n}\n\t? Id extends Seen\n\t\t? never\n\t\t: Member | ReachableMember<PluginDependencyMembers<Member>, Seen | Id>\n\t: never;\n\nexport type DependencyClosure<Members extends ReadonlyArray<AnyPlugin>> = ReadonlyArray<\n\tMembers[number] extends infer Member ? ReachableMember<Member> : never\n>;\n\nexport type ComposedMembers<Members extends ReadonlyArray<AnyPlugin>> = DependencyClosure<Members>;\n\nexport interface DevstackConfig<Members extends ReadonlyArray<AnyPlugin>> extends DevstackOptions {\n\treadonly members: Members;\n}\n\nconst ACCOUNT_RESOURCE_PREFIX = 'account/';\n\n// --- Stack handle -------------------------------------------------------\n\n/**\n * The compile-time stack handle. Carries:\n * - the plugin tuple (narrow),\n * - the union of resource ids it provides,\n * - an opaque marker the orchestrator boot path consumes.\n *\n * The runtime value is a struct; orchestrators consume it through\n * the supervisor entry point.\n */\nexport interface Stack<Members extends ReadonlyArray<AnyPlugin> = ReadonlyArray<AnyPlugin>> {\n\treadonly _tag: 'Stack';\n\treadonly options: DevstackOptions;\n\t/** Phantom — preserves the union of provided ids for downstream\n\t * introspection. Covariant per the phantom-variance rule. */\n\treadonly _providedIds?: () => {\n\t\t[K in keyof Members]: Members[K]['id'];\n\t}[number];\n}\n\nexport interface StackEngine<Members extends ReadonlyArray<AnyPlugin> = ReadonlyArray<AnyPlugin>> {\n\treadonly _tag: 'Stack';\n\treadonly members: Members;\n\treadonly options: DevstackOptions;\n}\n\nexport const readStackEngine = <Members extends ReadonlyArray<AnyPlugin>>(\n\tstack: Stack<Members>,\n): StackEngine<Members> => {\n\tconst engine = (stack as unknown as Readonly<Record<symbol, StackEngine<Members> | undefined>>)[\n\t\tSTACK_ENGINE\n\t];\n\tif (engine === undefined) {\n\t\tthrow new Error('Invalid devstack Stack handle: missing internal engine stack');\n\t}\n\treturn engine;\n};\n\n// --- Diagnostic gating --------------------------------------------------\n//\n// If `MissingProviders` is non-empty, the call signature surfaces a\n// branded structured error so the IDE diagnostic names the missing\n// piece.\n\n/** Validation gate. Resolves to `unknown` when every check passes\n * (assignable to any `Args`); to a branded structured error\n * otherwise (not assignable, surfacing the field name in the IDE).\n * UNCONSTRAINED Members — every helper sidesteps constraint widening\n * via an internal `Members extends ReadonlyArray<unknown> ? ... : never`\n * shape (Phase-3 finding).\n *\n * IMPORTANT: validation runs against the recursively expanded member\n * tuple (`ComposedMembers<Members>`). Bare resource dependencies must\n * have an explicit provider in the stack; plugin-valued dependencies\n * are pulled in by the closure first. */\nexport type ValidateArgs<Members> =\n\tMembers extends ReadonlyArray<AnyPlugin>\n\t\t? ComposedMembers<Members> extends infer M\n\t\t\t? M extends ReadonlyArray<unknown>\n\t\t\t\t? [MissingProviders<M>] extends [never]\n\t\t\t\t\t? unknown\n\t\t\t\t\t: __MissingProvidersError<MissingProviders<M>>\n\t\t\t\t: never\n\t\t\t: never\n\t\t: never;\n\n// --- Public surface -----------------------------------------------------\n\n/**\n * Object-form devstack composer.\n *\n * Compile-time checks performed:\n * - missing-provider: every dependency id has a matching plugin id\n * somewhere in the plugin set.\n *\n * Validation surfaces at the PARAMETER (not the return type) — the\n * generic `Args` is constrained against a branded error type whose\n * field name names the missing piece (type-prototype finding #6,\n * architecture open question #11). Failed validation makes the\n * config type un-assignable, surfacing as the standard\n * \"not assignable to parameter of type\" diagnostic with the branded\n * error field visible in the IDE.\n */\nexport function defineDevstack<const Members extends ReadonlyArray<AnyPlugin>>(\n\tconfig: DevstackConfig<Members> & ValidateArgs<Members>,\n): Stack<ComposedMembers<Members>> {\n\tconst roots = expandPluginDependencies(config.members);\n\tconst expandedWallet = expandWalletAccountsAll(roots);\n\tconst members = expandPluginDependencies(expandedWallet);\n\tconst { members: _members, ...options } = config;\n\tvoid _members;\n\n\tconst engine: StackEngine<ReadonlyArray<AnyPlugin>> = {\n\t\t_tag: 'Stack',\n\t\tmembers,\n\t\toptions,\n\t};\n\tconst stack: Stack<ReadonlyArray<AnyPlugin>> = {\n\t\t_tag: 'Stack',\n\t\toptions,\n\t};\n\tObject.defineProperty(stack, STACK_ENGINE, {\n\t\tvalue: engine,\n\t\tenumerable: false,\n\t\tconfigurable: false,\n\t\twritable: false,\n\t});\n\n\treturn stack as unknown as Stack<ComposedMembers<Members>>;\n}\n\nexport const expandPluginDependencies = (\n\tmembers: ReadonlyArray<AnyPlugin>,\n): ReadonlyArray<AnyPlugin> => {\n\tconst expanded: AnyPlugin[] = [];\n\tconst seen = new Map<string, AnyPlugin>();\n\tconst accountNameByCaseFold = new Map<string, string>();\n\tconst visiting = new Set<string>();\n\n\tconst visit = (member: AnyPlugin) => {\n\t\tconst id = member.id;\n\t\tconst previous = seen.get(id);\n\t\tif (previous === member) {\n\t\t\treturn;\n\t\t}\n\t\tif (previous !== undefined) {\n\t\t\tif (isExpandedWalletAlias(previous, member)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new Error(`Duplicate devstack provider for ${id}`);\n\t\t}\n\t\tconst accountName = accountNameFromResourceId(id);\n\t\tif (accountName !== null) {\n\t\t\tconst caseFoldedName = accountName.toLowerCase();\n\t\t\tconst previousAccountName = accountNameByCaseFold.get(caseFoldedName);\n\t\t\tif (previousAccountName !== undefined && previousAccountName !== accountName) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Duplicate devstack account name '${accountName}' differs only by casing from '${previousAccountName}'`,\n\t\t\t\t);\n\t\t\t}\n\t\t\taccountNameByCaseFold.set(caseFoldedName, accountName);\n\t\t}\n\t\tif (visiting.has(id)) {\n\t\t\tthrow new Error(`Circular devstack dependency through ${id}`);\n\t\t}\n\n\t\tvisiting.add(id);\n\t\tif (isPlugin(member)) {\n\t\t\tfor (const dependency of pluginDependencyRefs(member) as readonly AnyResourceRef[]) {\n\t\t\t\tif (isPlugin(dependency)) {\n\t\t\t\t\tvisit(dependency);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tvisiting.delete(id);\n\t\tseen.set(id, member);\n\t\texpanded.push(member);\n\t};\n\n\tfor (const member of members) {\n\t\tvisit(member);\n\t}\n\n\treturn expanded;\n};\n\nconst isExpandedWalletAlias = (a: AnyPlugin, b: AnyPlugin): boolean =>\n\ta.id === b.id && (readExpandHook(a) !== undefined || readExpandHook(b) !== undefined);\n\nconst accountNameFromResourceId = (id: string): string | null => {\n\tif (!id.startsWith(ACCOUNT_RESOURCE_PREFIX)) return null;\n\treturn id.slice(ACCOUNT_RESOURCE_PREFIX.length);\n};\n\n// --- wallet `accounts: 'all'` expansion (D6, api-surface-design.md §4) --\n//\n// The wallet factory returns a placeholder member with a symbol-keyed\n// expander hook when the user passes `accounts: 'all'`. The composer\n// is the only place that knows the FULL stack member tuple at compose\n// time, so the expansion runs here before the runtime member array is\n// handed to the supervisor.\n//\n// Without expansion, the wallet's dependencies would stay `[suiResource]` and\n// the supervisor's topological scheduler would race account funding\n// against `signTransaction`.\n\nfunction readExpandHook(m: AnyPlugin): WalletExpandAccountsAllExpander | undefined {\n\tconst slot = (m as unknown as Record<symbol, unknown>)[WALLET_EXPAND_ACCOUNTS_ALL];\n\treturn typeof slot === 'function' ? (slot as WalletExpandAccountsAllExpander) : undefined;\n}\n\n/** Expand any `wallet({ accounts: 'all' })` placeholder plugin into a\n * real wallet plugin whose dependencies include every account plugin.\n * Returns the input array verbatim when no expansion is\n * needed (zero allocation on the common explicit-tuple path). */\nexport function expandWalletAccountsAll(\n\tmembers: ReadonlyArray<AnyPlugin>,\n): ReadonlyArray<AnyPlugin> {\n\tlet needsExpansion = false;\n\tfor (const m of members) {\n\t\tif (readExpandHook(m) !== undefined) {\n\t\t\tneedsExpansion = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (!needsExpansion) return members;\n\n\tconst accountMembers: Array<WalletAccountMember> = [];\n\tfor (const m of members) {\n\t\tif (m.id.startsWith(ACCOUNT_RESOURCE_PREFIX)) {\n\t\t\taccountMembers.push(m as unknown as WalletAccountMember);\n\t\t}\n\t}\n\n\treturn members.map((m) => {\n\t\tconst expand = readExpandHook(m);\n\t\treturn expand === undefined ? m : expand(accountMembers);\n\t});\n}\n"],"mappings":";;;AAqBA,MAAM,eAAe,OAAO,IAAI,2CAA2C;AA4B3E,MAAM,0BAA0B;AA6BhC,MAAa,mBACZ,UAC0B;CAC1B,MAAM,SAAU,MACf;AAED,KAAI,WAAW,KAAA,EACd,OAAM,IAAI,MAAM,+DAA+D;AAEhF,QAAO;;;;;;;;;;;;;;;;;AAgDR,SAAgB,eACf,QACkC;CAGlC,MAAM,UAAU,yBADO,wBADT,yBAAyB,OAAO,QACM,CACG,CAAC;CACxD,MAAM,EAAE,SAAS,UAAU,GAAG,YAAY;CAG1C,MAAM,SAAgD;EACrD,MAAM;EACN;EACA;EACA;CACD,MAAM,QAAyC;EAC9C,MAAM;EACN;EACA;AACD,QAAO,eAAe,OAAO,cAAc;EAC1C,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACV,CAAC;AAEF,QAAO;;AAGR,MAAa,4BACZ,YAC8B;CAC9B,MAAM,WAAwB,EAAE;CAChC,MAAM,uBAAO,IAAI,KAAwB;CACzC,MAAM,wCAAwB,IAAI,KAAqB;CACvD,MAAM,2BAAW,IAAI,KAAa;CAElC,MAAM,SAAS,WAAsB;EACpC,MAAM,KAAK,OAAO;EAClB,MAAM,WAAW,KAAK,IAAI,GAAG;AAC7B,MAAI,aAAa,OAChB;AAED,MAAI,aAAa,KAAA,GAAW;AAC3B,OAAI,sBAAsB,UAAU,OAAO,CAC1C;AAED,SAAM,IAAI,MAAM,mCAAmC,KAAK;;EAEzD,MAAM,cAAc,0BAA0B,GAAG;AACjD,MAAI,gBAAgB,MAAM;GACzB,MAAM,iBAAiB,YAAY,aAAa;GAChD,MAAM,sBAAsB,sBAAsB,IAAI,eAAe;AACrE,OAAI,wBAAwB,KAAA,KAAa,wBAAwB,YAChE,OAAM,IAAI,MACT,oCAAoC,YAAY,iCAAiC,oBAAoB,GACrG;AAEF,yBAAsB,IAAI,gBAAgB,YAAY;;AAEvD,MAAI,SAAS,IAAI,GAAG,CACnB,OAAM,IAAI,MAAM,wCAAwC,KAAK;AAG9D,WAAS,IAAI,GAAG;AAChB,MAAI,SAAS,OAAO;QACd,MAAM,cAAc,qBAAqB,OAAO,CACpD,KAAI,SAAS,WAAW,CACvB,OAAM,WAAW;;AAIpB,WAAS,OAAO,GAAG;AACnB,OAAK,IAAI,IAAI,OAAO;AACpB,WAAS,KAAK,OAAO;;AAGtB,MAAK,MAAM,UAAU,QACpB,OAAM,OAAO;AAGd,QAAO;;AAGR,MAAM,yBAAyB,GAAc,MAC5C,EAAE,OAAO,EAAE,OAAO,eAAe,EAAE,KAAK,KAAA,KAAa,eAAe,EAAE,KAAK,KAAA;AAE5E,MAAM,6BAA6B,OAA8B;AAChE,KAAI,CAAC,GAAG,WAAW,wBAAwB,CAAE,QAAO;AACpD,QAAO,GAAG,MAAM,EAA+B;;AAehD,SAAS,eAAe,GAA2D;CAClF,MAAM,OAAQ,EAAyC;AACvD,QAAO,OAAO,SAAS,aAAc,OAA2C,KAAA;;;;;;AAOjF,SAAgB,wBACf,SAC2B;CAC3B,IAAI,iBAAiB;AACrB,MAAK,MAAM,KAAK,QACf,KAAI,eAAe,EAAE,KAAK,KAAA,GAAW;AACpC,mBAAiB;AACjB;;AAGF,KAAI,CAAC,eAAgB,QAAO;CAE5B,MAAM,iBAA6C,EAAE;AACrD,MAAK,MAAM,KAAK,QACf,KAAI,EAAE,GAAG,WAAW,wBAAwB,CAC3C,gBAAe,KAAK,EAAoC;AAI1D,QAAO,QAAQ,KAAK,MAAM;EACzB,MAAM,SAAS,eAAe,EAAE;AAChC,SAAO,WAAW,KAAA,IAAY,IAAI,OAAO,eAAe;GACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { AnyPlugin, AnyResourceRef, CapabilitiesFactory, CapabilitySource, DependencyInput, DependencyList, Plugin, PluginErrorContribution, PluginSpec, ResolvedDependencies, ResolvedDependencyList, ResolvedDependencyObject, ResourceIdOf, ResourceRef, ResourceValueOf, WatchDecl, defineId, definePlugin, resource } from "../substrate/plugin.mjs";
|