@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
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { ContainerLabelTuple } from "./snapshotable.mjs";
|
|
2
|
+
import { Duration, Effect, Scope, Stream } from "effect";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/container-runtime.d.ts
|
|
5
|
+
type RecreatePolicy = 'on-failure' | 'never' | 'on-config-change';
|
|
6
|
+
/** Content-addressed image reference. Substrate folds builds into
|
|
7
|
+
* the cache via this. */
|
|
8
|
+
interface ImageRef {
|
|
9
|
+
readonly digest: string;
|
|
10
|
+
readonly tag?: string;
|
|
11
|
+
}
|
|
12
|
+
interface TaggedImageRef extends ImageRef {
|
|
13
|
+
readonly tag: string;
|
|
14
|
+
}
|
|
15
|
+
interface LoadedImageBundle {
|
|
16
|
+
readonly refs: ReadonlyArray<ImageRef>;
|
|
17
|
+
}
|
|
18
|
+
interface SaveImageOptions {
|
|
19
|
+
readonly removeAfterSave?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface TagImageOptions {
|
|
22
|
+
readonly removeSourceAfterTag?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface ContainerBuildContext {
|
|
25
|
+
readonly contextPath: string;
|
|
26
|
+
readonly dockerfile?: string;
|
|
27
|
+
/** Optional context-relative paths that define this image's cache
|
|
28
|
+
* identity. Omitted or empty means fingerprint the whole Docker build
|
|
29
|
+
* context. Use this when Docker needs a shared parent context only to
|
|
30
|
+
* copy a small set of files; unrelated sibling image edits must not
|
|
31
|
+
* retag stateful containers. */
|
|
32
|
+
readonly fingerprintPaths?: ReadonlyArray<string>;
|
|
33
|
+
/** Optional Docker build platform, for example `linux/amd64`.
|
|
34
|
+
* Omitted means Docker uses the host/default platform. */
|
|
35
|
+
readonly platform?: string;
|
|
36
|
+
readonly buildArgs?: Readonly<Record<string, string>>;
|
|
37
|
+
}
|
|
38
|
+
interface ContainerPortPublish {
|
|
39
|
+
readonly containerPort: number;
|
|
40
|
+
readonly hostPort: number;
|
|
41
|
+
readonly hostIp?: string;
|
|
42
|
+
}
|
|
43
|
+
type PortBindingReconciliation = 'exact' | 'adopt-existing';
|
|
44
|
+
interface EnsureContainerSpec {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly image: ImageRef;
|
|
47
|
+
readonly labels: ContainerLabelTuple;
|
|
48
|
+
readonly recreate: RecreatePolicy;
|
|
49
|
+
/** Optional caller-owned fingerprint for config that Docker cannot
|
|
50
|
+
* infer from image or port bindings (for example files behind a
|
|
51
|
+
* bind mount). When set, `on-config-change` recreates an existing
|
|
52
|
+
* container whose recorded fingerprint differs. */
|
|
53
|
+
readonly configHash?: string;
|
|
54
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
55
|
+
readonly ports?: ReadonlyArray<ContainerPortPublish>;
|
|
56
|
+
/** Grace window, in seconds, used by the scope finalizer before
|
|
57
|
+
* Docker escalates container stop to SIGKILL. Stateful containers
|
|
58
|
+
* with RocksDB/WAL-backed data should request enough time to flush
|
|
59
|
+
* cleanly; the runtime default is 10 seconds. */
|
|
60
|
+
readonly stopGraceSeconds?: number;
|
|
61
|
+
/** How published host ports participate in existing-container
|
|
62
|
+
* reconciliation. Default `exact` treats a binding mismatch as
|
|
63
|
+
* config drift. `adopt-existing` lets a same-name, image-matching
|
|
64
|
+
* container keep its current published ports; callers must read
|
|
65
|
+
* the returned `ContainerHandle.ports` before constructing URLs. */
|
|
66
|
+
readonly portBindingReconciliation?: PortBindingReconciliation;
|
|
67
|
+
readonly networkAttach?: ReadonlyArray<string>;
|
|
68
|
+
/** Bind mounts. The build-container path lives here: source dir →
|
|
69
|
+
* container path. `readonly: true` flips on the docker mount
|
|
70
|
+
* read-only flag. */
|
|
71
|
+
readonly mounts?: ReadonlyArray<{
|
|
72
|
+
readonly source: string;
|
|
73
|
+
readonly target: string;
|
|
74
|
+
readonly readonly?: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
/** Optional `--entrypoint <bin>` override. The Move build container
|
|
77
|
+
* uses `sh` so its long-lived sleeper can trap Docker stop signals. */
|
|
78
|
+
readonly entrypoint?: string;
|
|
79
|
+
/** Optional positional argv appended after the image. Used to set the
|
|
80
|
+
* sleeper command without changing the image. */
|
|
81
|
+
readonly command?: ReadonlyArray<string>;
|
|
82
|
+
/** Extra `<host>:<ip>` entries to inject into /etc/hosts via
|
|
83
|
+
* `docker run --add-host`. The literal `host-gateway` is supported
|
|
84
|
+
* on every modern Docker daemon (DfM/DfW + Docker Engine since
|
|
85
|
+
* 20.10) and resolves to the container's view of the host
|
|
86
|
+
* loopback — necessary for in-container processes to reach
|
|
87
|
+
* host-published ports on native Linux where `host.docker.internal`
|
|
88
|
+
* isn't auto-installed. Walrus uses this to reach sui's host-bound
|
|
89
|
+
* RPC + faucet from inside its own per-stack network. */
|
|
90
|
+
readonly extraHosts?: Readonly<Record<string, string>>;
|
|
91
|
+
}
|
|
92
|
+
/** Spec for `ContainerRuntime.runOneShot` — a transient
|
|
93
|
+
* `docker run --rm` container. Path (b) in `runMoveBuild`'s
|
|
94
|
+
* three-way dispatch. */
|
|
95
|
+
interface OneShotSpec {
|
|
96
|
+
readonly image: ImageRef;
|
|
97
|
+
readonly argv?: ReadonlyArray<string>;
|
|
98
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
99
|
+
readonly mounts?: ReadonlyArray<{
|
|
100
|
+
readonly source: string;
|
|
101
|
+
readonly target: string;
|
|
102
|
+
readonly readonly?: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
readonly network?: string;
|
|
105
|
+
readonly entrypoint?: string;
|
|
106
|
+
/** Optional numeric or named user for `docker run --user`.
|
|
107
|
+
* Use for one-shots that write into host bind mounts so Linux
|
|
108
|
+
* Docker does not leave root-owned files behind. */
|
|
109
|
+
readonly user?: string;
|
|
110
|
+
/** Wall-clock timeout. After this the subprocess is killed; a
|
|
111
|
+
* belt-and-suspenders `rm -f` finalizer catches containers that
|
|
112
|
+
* outlived the foreground subprocess. */
|
|
113
|
+
readonly timeoutMillis?: number;
|
|
114
|
+
/** Extra `<host>:<ip>` entries injected via `docker run --add-host`.
|
|
115
|
+
* See `EnsureContainerSpec.extraHosts`. */
|
|
116
|
+
readonly extraHosts?: Readonly<Record<string, string>>;
|
|
117
|
+
}
|
|
118
|
+
interface ContainerHandle {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly name: string;
|
|
121
|
+
/** Exact ownership tuple stamped on the current Docker resource.
|
|
122
|
+
* Runtime operations that mutate by stable name use this to
|
|
123
|
+
* re-check the live labels before exec/pause/commit/unpause/stop. */
|
|
124
|
+
readonly labels?: ContainerLabelTuple;
|
|
125
|
+
/** Image ref Docker recorded at container creation time. This is
|
|
126
|
+
* the same string `ensureContainer` compares against on adoption,
|
|
127
|
+
* so snapshot restore must re-tag loaded images to this ref. */
|
|
128
|
+
readonly imageName: string;
|
|
129
|
+
readonly status: 'running' | 'exited' | 'paused' | 'created';
|
|
130
|
+
readonly ips: ReadonlyArray<string>;
|
|
131
|
+
readonly ports?: ReadonlyArray<ContainerPortPublish>;
|
|
132
|
+
}
|
|
133
|
+
/** Captured stdout/stderr/exit code from a one-shot `exec` invocation
|
|
134
|
+
* inside a running container. */
|
|
135
|
+
interface ExecResult {
|
|
136
|
+
readonly exitCode: number;
|
|
137
|
+
readonly stdout: string;
|
|
138
|
+
readonly stderr: string;
|
|
139
|
+
}
|
|
140
|
+
/** Optional knobs for `ContainerRuntime.exec`. */
|
|
141
|
+
interface ExecOptions {
|
|
142
|
+
readonly user?: string;
|
|
143
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
144
|
+
readonly workdir?: string;
|
|
145
|
+
}
|
|
146
|
+
/** Spec for the idempotent per-stack network create. */
|
|
147
|
+
interface EnsureNetworkSpec {
|
|
148
|
+
readonly name: string;
|
|
149
|
+
readonly app: string;
|
|
150
|
+
readonly stack: string;
|
|
151
|
+
/** Optional IPAM subnet (`10.42.7.0/24`) for callers that own
|
|
152
|
+
* deterministic in-network addresses and must not consume Docker's
|
|
153
|
+
* default bridge address pools. */
|
|
154
|
+
readonly subnet?: string;
|
|
155
|
+
/** Optional gateway inside `subnet` (`10.42.7.1`). */
|
|
156
|
+
readonly gateway?: string;
|
|
157
|
+
}
|
|
158
|
+
/** The substrate-facing runtime adapter. Implementation lives in
|
|
159
|
+
* `runtime/docker/`. */
|
|
160
|
+
interface ContainerRuntime {
|
|
161
|
+
readonly ensureImage: (build: ContainerBuildContext, expected?: ImageRef) => Effect.Effect<ImageRef, ContainerRuntimeError>;
|
|
162
|
+
readonly pullImage?: (ref: string) => Effect.Effect<ImageRef, ContainerRuntimeError>;
|
|
163
|
+
/** Idempotently create a docker network. Returns the network's id.
|
|
164
|
+
* No-op (returns existing id) if the network already exists.
|
|
165
|
+
* Networks outlive container scopes — there is NO finalizer; the
|
|
166
|
+
* network is reaped by `wipe` / `prune`, not by the supervisor. */
|
|
167
|
+
readonly ensureNetwork: (spec: EnsureNetworkSpec) => Effect.Effect<string, ContainerRuntimeError>;
|
|
168
|
+
readonly ensureContainer: (spec: EnsureContainerSpec) => Effect.Effect<ContainerHandle, ContainerRuntimeError, Scope.Scope>;
|
|
169
|
+
/** Run a one-shot command inside a running container and capture
|
|
170
|
+
* its output. The runtime does NOT promote a non-zero exit to
|
|
171
|
+
* failure — the caller is the policy holder (the postgres plugin
|
|
172
|
+
* treats non-zero from `pg_isready` as "retry", but non-zero from
|
|
173
|
+
* `createdb` as a typed plugin error). Only daemon-level failures
|
|
174
|
+
* (no such container, daemon unreachable) surface as
|
|
175
|
+
* `ContainerRuntimeError`. */
|
|
176
|
+
readonly exec: (handle: ContainerHandle, argv: ReadonlyArray<string>, opts?: ExecOptions) => Effect.Effect<ExecResult, ContainerRuntimeError>;
|
|
177
|
+
/** Run a one-shot `docker run --rm` container and capture stdout +
|
|
178
|
+
* stderr + exit code. Used by `runMoveBuild`'s path (b) — fresh
|
|
179
|
+
* ephemeral container per build when no long-lived build container
|
|
180
|
+
* is available. Belt-and-suspenders `rm -f` finalizer fires on
|
|
181
|
+
* scope close to catch containers that survived a foreground kill. */
|
|
182
|
+
readonly runOneShot: (spec: OneShotSpec) => Effect.Effect<ExecResult, ContainerRuntimeError, Scope.Scope>;
|
|
183
|
+
readonly inspectByLabels: (labels: ContainerLabelTuple) => Effect.Effect<ReadonlyArray<ContainerHandle>, ContainerRuntimeError>;
|
|
184
|
+
readonly followLogs: (handle: ContainerHandle) => Stream.Stream<string, ContainerRuntimeError>;
|
|
185
|
+
/** Pause a running container. Snapshot capture uses this to establish
|
|
186
|
+
* one stack-wide quiescence window before any artifact is written. */
|
|
187
|
+
readonly pause: (handle: ContainerHandle) => Effect.Effect<void, ContainerRuntimeError>;
|
|
188
|
+
/** Commit a container's writable layer to a snapshot image. Running
|
|
189
|
+
* containers are paused first; paused, exited, and created
|
|
190
|
+
* containers are already quiescent and are committed as-is. */
|
|
191
|
+
readonly pauseAndCommit: (handle: ContainerHandle) => Effect.Effect<TaggedImageRef, ContainerRuntimeError>;
|
|
192
|
+
/** Stream an image's bytes as if produced by `docker save <ref>`.
|
|
193
|
+
* Used by the snapshot orchestrator to persist committed images to
|
|
194
|
+
* tar files; consumers compose with a file-write sink so large
|
|
195
|
+
* images don't materialise in memory. */
|
|
196
|
+
readonly saveImage: (ref: ImageRef, opts?: SaveImageOptions) => Stream.Stream<Uint8Array, ContainerRuntimeError>;
|
|
197
|
+
/** Stream a deduplicated `docker save <ref...>` bundle. Snapshot
|
|
198
|
+
* capture uses this for multi-container stacks so shared base layers
|
|
199
|
+
* are written once per snapshot instead of once per container. */
|
|
200
|
+
readonly saveImages: (refs: ReadonlyArray<ImageRef>, opts?: SaveImageOptions) => Stream.Stream<Uint8Array, ContainerRuntimeError>;
|
|
201
|
+
/** Load one `docker save`-shaped tar stream. Returns the refs Docker
|
|
202
|
+
* reported loading from that stream so restore can prove expected
|
|
203
|
+
* snapshot tags came from the artifact before it retags them. */
|
|
204
|
+
readonly loadImage: (tar: Stream.Stream<Uint8Array, unknown>) => Effect.Effect<LoadedImageBundle, ContainerRuntimeError>;
|
|
205
|
+
/** Move/copy a tag onto a source image. After this returns,
|
|
206
|
+
* `<newTag>` resolves to the same image as `src`. Used by snapshot
|
|
207
|
+
* restore to alias a freshly-loaded image back to the originally-
|
|
208
|
+
* recorded name. */
|
|
209
|
+
readonly tagImage: (src: ImageRef, newTag: string, opts?: TagImageOptions) => Effect.Effect<void, ContainerRuntimeError>;
|
|
210
|
+
/** Remove one image ref/tag. Snapshot capture uses this only for
|
|
211
|
+
* committed temp tags when capture fails before `saveImages` takes
|
|
212
|
+
* ownership of cleanup via `removeAfterSave`. Missing refs are
|
|
213
|
+
* treated as already-cleaned. */
|
|
214
|
+
readonly removeImage: (ref: ImageRef) => Effect.Effect<void, ContainerRuntimeError>;
|
|
215
|
+
readonly unpause: (handle: ContainerHandle) => Effect.Effect<void, ContainerRuntimeError>;
|
|
216
|
+
readonly stop: (handle: ContainerHandle, grace: Duration.Duration) => Effect.Effect<void, ContainerRuntimeError>;
|
|
217
|
+
/** Boot-time orphan cleanup. This is container-only and skips names
|
|
218
|
+
* still present in the cross-process claim ledger. */
|
|
219
|
+
readonly sweepOrphans: (labelMatch: Partial<ContainerLabelTuple>) => Effect.Effect<number, ContainerRuntimeError>;
|
|
220
|
+
/** Force-remove managed containers matching the partial label tuple,
|
|
221
|
+
* regardless of claim-ledger entries. Wipe uses this for explicit
|
|
222
|
+
* teardown; restore uses it before the next `ensureContainer`
|
|
223
|
+
* recreates names from restored image tags. */
|
|
224
|
+
readonly removeManagedContainers: (labelMatch: Partial<ContainerLabelTuple>) => Effect.Effect<number, ContainerRuntimeError>;
|
|
225
|
+
/** Remove managed Docker images matching the partial label tuple.
|
|
226
|
+
* Implementations must enumerate by ownership labels, never by tag
|
|
227
|
+
* prefix alone. */
|
|
228
|
+
readonly removeManagedImages: (labelMatch: Partial<ContainerLabelTuple>) => Effect.Effect<number, ContainerRuntimeError>;
|
|
229
|
+
/** Remove managed Docker networks matching the partial label tuple.
|
|
230
|
+
* Implementations must enumerate by ownership labels and must not
|
|
231
|
+
* remove unlabelled or foreign resources. */
|
|
232
|
+
readonly removeManagedNetworks: (labelMatch: Partial<ContainerLabelTuple>) => Effect.Effect<number, ContainerRuntimeError>;
|
|
233
|
+
/** Remove managed Docker volumes matching the partial label tuple.
|
|
234
|
+
* Implementations must enumerate by ownership labels and must not
|
|
235
|
+
* remove unlabelled or foreign resources. */
|
|
236
|
+
readonly removeManagedVolumes: (labelMatch: Partial<ContainerLabelTuple>) => Effect.Effect<number, ContainerRuntimeError>;
|
|
237
|
+
}
|
|
238
|
+
interface ContainerRuntimeError {
|
|
239
|
+
readonly _tag: 'ContainerRuntimeError';
|
|
240
|
+
readonly reason: 'daemon-unreachable' | 'image-build-failed' | 'image-save-failed' | 'image-load-failed' | 'image-tag-failed' | 'docker-inspect-failed' | 'foreign-resource' | 'container-replace-failed' | 'name-collision' | 'publish-port-conflict' | 'network-address-pool-exhausted' | 'ip-readback-timeout' | 'ready-probe-failed' | 'recreate-refused' | 'image-remove-failed';
|
|
241
|
+
readonly detail: string;
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
export { ContainerHandle, ContainerRuntime, ContainerRuntimeError, EnsureContainerSpec, ImageRef, LoadedImageBundle, TaggedImageRef };
|
|
245
|
+
//# sourceMappingURL=container-runtime.d.mts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/contracts/liveness-classifier.d.ts
|
|
4
|
+
type LivenessClassification = 'alive' | 'dormant' | 'stale' | 'abandoned';
|
|
5
|
+
/** Per-entry hints persisted in `~/.devstack/registry.json`. The L3
|
|
6
|
+
* orchestrator passes them to the plugin's classifier. */
|
|
7
|
+
interface LivenessHints {
|
|
8
|
+
readonly heartbeatAt: number | null;
|
|
9
|
+
readonly claimPid: number | null;
|
|
10
|
+
readonly claimStartTime: number | null;
|
|
11
|
+
readonly pluginHints: Readonly<Record<string, unknown>>;
|
|
12
|
+
}
|
|
13
|
+
interface LivenessClassifierDecl {
|
|
14
|
+
readonly kind: 'liveness-classifier';
|
|
15
|
+
readonly classify: (hints: LivenessHints) => Effect.Effect<LivenessClassification>;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { LivenessClassification, LivenessClassifierDecl, LivenessHints };
|
|
19
|
+
//# sourceMappingURL=liveness-classifier.d.mts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/contracts/network-resolver.d.ts
|
|
4
|
+
/** The funds-ready strategy shape. A trivially-succeeding default
|
|
5
|
+
* is registered when no contributor is present (e.g. live mode). */
|
|
6
|
+
interface FundsReadyStrategy {
|
|
7
|
+
readonly waitFundsReady: Effect.Effect<void, FundsReadyError>;
|
|
8
|
+
}
|
|
9
|
+
interface FundsReadyError {
|
|
10
|
+
readonly _tag: 'FundsReadyError';
|
|
11
|
+
readonly reason: string;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { FundsReadyError, FundsReadyStrategy };
|
|
15
|
+
//# sourceMappingURL=network-resolver.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-resolver.mjs","names":[],"sources":["../../src/contracts/network-resolver.ts"],"sourcesContent":["// NetworkResolver capability contract (architecture §5).\n//\n// Provides one consistent answer to \"what network am I on?\" for\n// every plugin. The resolver is consulted once per acquire; the\n// answer is threaded as Context.\n//\n// Funds-ready is NOT engine-generic. It's a typed StrategyContributor\n// capability key (`gate:funds-ready`); plugins that need to wait on\n// funds read from the strategy registry. Architecture explicitly\n// removed the previous \"L0 exposes awaitFunds\" wording.\n\nimport type { Effect } from 'effect';\n\nimport type { NetworkConfig } from '../substrate/network.ts';\n\n/** Capability-key constant for the funds-ready gate strategy. */\nexport const FUNDS_READY_GATE_KEY = 'gate:funds-ready' as const;\n\n/** The funds-ready strategy shape. A trivially-succeeding default\n * is registered when no contributor is present (e.g. live mode). */\nexport interface FundsReadyStrategy {\n\treadonly waitFundsReady: Effect.Effect<void, FundsReadyError>;\n}\n\nexport interface FundsReadyError {\n\treadonly _tag: 'FundsReadyError';\n\treadonly reason: string;\n}\n\n/**\n * The substrate-facing resolver service. One resolution per\n * acquire; CLI > env > config > default precedence.\n */\nexport interface NetworkResolver {\n\treadonly resolve: Effect.Effect<NetworkConfig, NetworkResolutionError>;\n}\n\nexport interface NetworkResolutionError {\n\treadonly _tag: 'NetworkResolutionError';\n\treadonly reason: 'invalid-mode' | 'unknown-chain' | 'rpc-unreachable';\n\treadonly detail: string;\n}\n"],"mappings":";;AAgBA,MAAa,uBAAuB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EngineEvent } from "../substrate/events.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/contracts/projection.d.ts
|
|
4
|
+
type ProjectionEvent = Extract<EngineEvent, {
|
|
5
|
+
readonly tag: 'account.updated';
|
|
6
|
+
}> | Extract<EngineEvent, {
|
|
7
|
+
readonly tag: 'package.updated';
|
|
8
|
+
}>;
|
|
9
|
+
interface ProjectionDecl {
|
|
10
|
+
readonly kind: 'projection';
|
|
11
|
+
readonly event: ProjectionEvent;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ProjectionDecl, ProjectionEvent };
|
|
15
|
+
//# sourceMappingURL=projection.d.mts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/contracts/routable.d.ts
|
|
2
|
+
/** A plugin-provided dispatch identity. The router combines this with
|
|
3
|
+
* the runtime identity `(app, stack)` before minting the file-provider
|
|
4
|
+
* id, so the dispatch id itself does not need to encode app/stack. */
|
|
5
|
+
interface DispatchId {
|
|
6
|
+
readonly serviceKey: string;
|
|
7
|
+
readonly role: string;
|
|
8
|
+
}
|
|
9
|
+
/** Upstream target registry. Module augmentation can add router-owned
|
|
10
|
+
* target types without widening the built-in payloads. */
|
|
11
|
+
interface DevstackRoutableUpstreamRegistry {
|
|
12
|
+
readonly container: {
|
|
13
|
+
readonly containerName: string;
|
|
14
|
+
readonly containerPort: number;
|
|
15
|
+
};
|
|
16
|
+
readonly 'host-loopback': {
|
|
17
|
+
readonly port: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
type RoutableUpstreamKind = keyof DevstackRoutableUpstreamRegistry & string;
|
|
21
|
+
/** Upstream target type. Built-ins are container-on-router-network and
|
|
22
|
+
* host-process-on-loopback. The router resolves URL. */
|
|
23
|
+
type RoutableUpstream<Kind extends string = RoutableUpstreamKind> = string extends Kind ? { readonly [K in RoutableUpstreamKind]: Readonly<{
|
|
24
|
+
readonly type: K;
|
|
25
|
+
} & DevstackRoutableUpstreamRegistry[K]> }[RoutableUpstreamKind] : Kind extends RoutableUpstreamKind ? Readonly<{
|
|
26
|
+
readonly type: Kind;
|
|
27
|
+
} & DevstackRoutableUpstreamRegistry[Kind]> : Readonly<{
|
|
28
|
+
readonly type: Kind;
|
|
29
|
+
} & object>;
|
|
30
|
+
/** Shared fields across both wire-protocol variants. */
|
|
31
|
+
interface RoutableBase {
|
|
32
|
+
readonly kind: 'routable';
|
|
33
|
+
readonly endpointName: string;
|
|
34
|
+
readonly dispatchId: DispatchId;
|
|
35
|
+
readonly upstream: RoutableUpstream;
|
|
36
|
+
}
|
|
37
|
+
/** HTTP variant — Host-header dispatched, CORS-aware. */
|
|
38
|
+
interface RoutableHttpDecl extends RoutableBase {
|
|
39
|
+
readonly wireProtocol: 'http' | 'h2c';
|
|
40
|
+
readonly cors: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** TCP variant — entrypoint-port dispatched, no Host header, no CORS.
|
|
43
|
+
* Each TCP backend MUST reference an entrypoint whose protocol is
|
|
44
|
+
* `'tcp'` in the registry; parallel stacks of TCP backends cannot
|
|
45
|
+
* share one entrypoint port (TCP has no virtual-host fan-out). */
|
|
46
|
+
interface RoutableTcpDecl extends RoutableBase {
|
|
47
|
+
readonly wireProtocol: 'tcp';
|
|
48
|
+
}
|
|
49
|
+
/** Routable declaration. Plugin emits one per endpoint it serves. */
|
|
50
|
+
type RoutableDecl = RoutableHttpDecl | RoutableTcpDecl;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { DevstackRoutableUpstreamRegistry, DispatchId, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind };
|
|
53
|
+
//# sourceMappingURL=routable.d.mts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Effect, Scope } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/contracts/snapshotable.d.ts
|
|
4
|
+
/** Label tuple identifying managed containers. The orchestrator
|
|
5
|
+
* filters the runtime adapter by this tuple. */
|
|
6
|
+
interface ContainerLabelTuple {
|
|
7
|
+
readonly app: string;
|
|
8
|
+
readonly stack: string;
|
|
9
|
+
readonly plugin: string;
|
|
10
|
+
readonly role: string;
|
|
11
|
+
}
|
|
12
|
+
/** Capture descriptor: zero or more subtrees + managed containers +
|
|
13
|
+
* optional typed metadata slice. */
|
|
14
|
+
interface SnapshotableDecl {
|
|
15
|
+
readonly kind: 'snapshotable';
|
|
16
|
+
/** Host-tree subtrees, relative to the substrate's runtime-dir
|
|
17
|
+
* root. Auto-included subtrees under `runtime/<plugin-key>/`
|
|
18
|
+
* are added by the substrate; this list is opt-in extras. */
|
|
19
|
+
readonly subtrees: ReadonlyArray<string>;
|
|
20
|
+
/** Managed containers identified by label tuples — orchestrator
|
|
21
|
+
* is name-blind. */
|
|
22
|
+
readonly managedContainers?: ReadonlyArray<ContainerLabelTuple>;
|
|
23
|
+
/** Quiescence hook: how to make state consistent before commit.
|
|
24
|
+
* Default is "pause container"; postgres / RocksDB declare
|
|
25
|
+
* longer grace. */
|
|
26
|
+
readonly quiesce?: Effect.Effect<void, never, Scope.Scope>;
|
|
27
|
+
/** Pre-restore hook: contribute to the identity guard. */
|
|
28
|
+
readonly preRestore?: Effect.Effect<unknown, never>;
|
|
29
|
+
/** Post-restore hook. */
|
|
30
|
+
readonly postRestore?: Effect.Effect<void, never>;
|
|
31
|
+
/** Missing-tolerance flag: is absence on restore fatal or fine? */
|
|
32
|
+
readonly missingTolerance: 'fatal' | 'fine';
|
|
33
|
+
/** Secret-material declaration drives mode bits (0o600 inside
|
|
34
|
+
* 0o700 parent). Substrate preserves on round-trip. */
|
|
35
|
+
readonly secretMaterial?: boolean;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ContainerLabelTuple, SnapshotableDecl };
|
|
39
|
+
//# sourceMappingURL=snapshotable.d.mts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Effect, Scope } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/contracts/strategy-contributor.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Contribution declaration. `Key` is the literal capability key
|
|
6
|
+
* (preserved as a string-literal type so consumers picking by key
|
|
7
|
+
* recover the strategy's value shape). `Strategy` is the closed-over
|
|
8
|
+
* value (already-bound dependencies; dispatch site is
|
|
9
|
+
* context-free).
|
|
10
|
+
*/
|
|
11
|
+
interface StrategyContributorDecl<Key extends string = string, Strategy = unknown> {
|
|
12
|
+
readonly kind: 'strategy-contributor';
|
|
13
|
+
readonly capabilityKey: Key;
|
|
14
|
+
readonly strategy: Strategy;
|
|
15
|
+
/** Auto-mounted contributors are hidden from renderer rows by
|
|
16
|
+
* default. User-supplied contributors are visible. */
|
|
17
|
+
readonly autoMounted: boolean;
|
|
18
|
+
/** Optional priority — last-write-wins on tie. */
|
|
19
|
+
readonly priority?: number;
|
|
20
|
+
}
|
|
21
|
+
/** Type-level extraction of strategy by capability key from a
|
|
22
|
+
* member's caps tuple. */
|
|
23
|
+
type StrategyFor<Caps extends ReadonlyArray<unknown>, Key extends string> = Extract<Caps[number], StrategyContributorDecl<Key, unknown>> extends StrategyContributorDecl<Key, infer S> ? S : never;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { StrategyContributorDecl, StrategyFor };
|
|
26
|
+
//# sourceMappingURL=strategy-contributor.d.mts.map
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { AppName, Brand, ChainId, ContentHash, EndpointKey, StackName, appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
|
|
2
|
+
import { ManifestExtras, ManifestExtrasContext, ManifestExtrasInput } from "./substrate/manifest.mjs";
|
|
3
|
+
import { CodegenEmitContext, CodegenEmitDone, CodegenableDecl } from "./contracts/codegenable.mjs";
|
|
4
|
+
import { LivenessClassification, LivenessClassifierDecl, LivenessHints } from "./contracts/liveness-classifier.mjs";
|
|
5
|
+
import { LifecycleStatus, PhaseNarration, PluginRole } from "./substrate/lifecycle.mjs";
|
|
6
|
+
import { ProjectionDecl, ProjectionEvent } from "./contracts/projection.mjs";
|
|
7
|
+
import { DevstackRoutableUpstreamRegistry, DispatchId, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind } from "./contracts/routable.mjs";
|
|
8
|
+
import { ContainerLabelTuple, SnapshotableDecl } from "./contracts/snapshotable.mjs";
|
|
9
|
+
import { StrategyContributorDecl, StrategyFor } from "./contracts/strategy-contributor.mjs";
|
|
10
|
+
import { CapabilityDecl, CapabilityKind, CapabilityPayloadFor, DevstackCapabilityRegistry, ExactCapabilityPayload } from "./contracts/capability-decl.mjs";
|
|
11
|
+
import { AnyPlugin, AnyResourceRef, DependencyInput, DependencyList, Plugin, PluginSpec, ResolvedDependencies, ResourceIdOf, ResourceRef, ResourceValueOf, defineId, definePlugin, resource } from "./substrate/plugin.mjs";
|
|
12
|
+
import { DefaultNetwork, DevstackNetworkModeRegistry, NetworkConfig, NetworkMode } from "./substrate/network.mjs";
|
|
13
|
+
import { DevstackOptions } from "./substrate/options.mjs";
|
|
14
|
+
import { Stack, defineDevstack } from "./api/define-devstack.mjs";
|
|
15
|
+
import { BuildCtx, DevstackOptionsWith, defineDevstackWith } from "./api/define-devstack-with.mjs";
|
|
16
|
+
import { ContainerHandle, ContainerRuntime, ContainerRuntimeError, ImageRef, LoadedImageBundle, TaggedImageRef } from "./contracts/container-runtime.mjs";
|
|
17
|
+
import { IdentityContext } from "./substrate/runtime/paths.mjs";
|
|
18
|
+
import { ContainerRuntimeService } from "./runtime/docker/service.mjs";
|
|
19
|
+
import { http_probe_d_exports } from "./substrate/runtime/http-probe.mjs";
|
|
20
|
+
import { RedactionRule, Redactor, redaction_d_exports } from "./substrate/runtime/observability/redaction.mjs";
|
|
21
|
+
import { BootError, RunHandle, RunStackIdentityOptions, RunStackOptions, runStack } from "./api/run-stack.mjs";
|
|
22
|
+
import { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor } from "./api/define-capabilities.mjs";
|
|
23
|
+
import { FactoriesByMode, FactoriesFor, ModeNamespace, defineModeNamespace } from "./api/mode-narrowed-factory.mjs";
|
|
24
|
+
import { config_validation_d_exports } from "./substrate/runtime/config-validation.mjs";
|
|
25
|
+
import { managed_container_d_exports } from "./substrate/runtime/managed-container.mjs";
|
|
26
|
+
import { LogLevel, LogLine, LogPayload, Logger, LoggerShape, TagBuffer } from "./substrate/runtime/observability/logger.mjs";
|
|
27
|
+
import { process_lines_d_exports } from "./substrate/runtime/observability/process-lines.mjs";
|
|
28
|
+
import { process_supervisor_d_exports } from "./substrate/runtime/process-supervisor.mjs";
|
|
29
|
+
import { probes_d_exports } from "./substrate/runtime/probes.mjs";
|
|
30
|
+
import { retry_policy_d_exports } from "./substrate/runtime/retry-policy.mjs";
|
|
31
|
+
import { runtime_decode_d_exports } from "./substrate/runtime/runtime-decode.mjs";
|
|
32
|
+
import { ChainProbe, ChainProbeError, ChainProbeMode } from "./contracts/chain-probe.mjs";
|
|
33
|
+
import { FaucetBodyError, FaucetConfigError, FaucetError, FaucetExhausted, FaucetUnreachable } from "./plugins/faucet/errors.mjs";
|
|
34
|
+
import { FaucetStrategy } from "./plugins/faucet/strategies/sui-local.mjs";
|
|
35
|
+
import { FaucetStrategyContribution } from "./plugins/faucet/service.mjs";
|
|
36
|
+
import { defineFaucetStrategy } from "./plugins/faucet/index.mjs";
|
|
37
|
+
import { ForkUnsupportedError, SeedManifestMismatchError, SuiCliError, SuiConfigError, SuiError, SuiFundsReadyError, SuiPluginError } from "./plugins/sui/errors.mjs";
|
|
38
|
+
import { SuiForkOptions, SuiLiveOptions, SuiLocalOptions, SuiLocalRpcOptions, SuiOptions } from "./plugins/sui/mode/spec.mjs";
|
|
39
|
+
import { FundsReadyError, FundsReadyStrategy } from "./contracts/network-resolver.mjs";
|
|
40
|
+
import { ResolvedSuiNetwork } from "./plugins/sui/network-resolver.mjs";
|
|
41
|
+
import { SuiNetworkBindings } from "./plugins/sui/codegen.mjs";
|
|
42
|
+
import { sui, suiFor } from "./plugins/sui/index.mjs";
|
|
43
|
+
import { CoinError, CoinPhase } from "./plugins/coin/errors.mjs";
|
|
44
|
+
import { isBareCoinType, validateBareCoinType } from "./plugins/coin/metadata.mjs";
|
|
45
|
+
import { BUILTIN_COINS, BuiltinCoinName, ResolvedCoin } from "./plugins/coin/address-resolution.mjs";
|
|
46
|
+
import { CoinAddressForm, CoinValue } from "./plugins/coin/service.mjs";
|
|
47
|
+
import { CoinBindings } from "./plugins/coin/codegen.mjs";
|
|
48
|
+
import { DiscoveredCoin } from "./plugins/coin/discovery.mjs";
|
|
49
|
+
import { PackageMember, coin } from "./plugins/coin/index.mjs";
|
|
50
|
+
import { AccountAcquireError, AccountAcquirePhase, AccountError, AccountSignError, AccountSignPhase, AccountVariantKind } from "./plugins/account/errors.mjs";
|
|
51
|
+
import { AccountOptions, AccountValue, TxResult } from "./plugins/account/service.mjs";
|
|
52
|
+
import { AccountFunding, AccountFundingCoinValue, AccountFundingEntry, AccountFundingRequest, AccountFundingResult, AccountFundingStrategy, CoinMember, CrossCuttingFundingEntry, CrossCuttingFundingProvider, DEFAULT_EPHEMERAL_FUND_MIST, SUI_FULL_COIN_TYPE, SuiFundingEntry } from "./plugins/account/funding.mjs";
|
|
53
|
+
import { AccountBindings } from "./plugins/account/codegen.mjs";
|
|
54
|
+
import { ResolvedKeypair, SignatureScheme } from "./plugins/account/keypair.mjs";
|
|
55
|
+
import { SyntheticImpersonationSigner } from "./plugins/account/variants/impersonate.mjs";
|
|
56
|
+
import { account } from "./plugins/account/index.mjs";
|
|
57
|
+
import { ResolvedKnownPackage, ResolvedLocalPackage } from "./plugins/package/registry.mjs";
|
|
58
|
+
import { PublishError } from "./plugins/package/errors.mjs";
|
|
59
|
+
import { PackageBindings } from "./plugins/package/codegen.mjs";
|
|
60
|
+
import { KnownPackageOptions, KnownPackageResolved, LocalPackageOptions, LocalPackageResolved, PackageCapture, PackageResolved, PublisherAccountMember, knownPackage, localPackage } from "./plugins/package/index.mjs";
|
|
61
|
+
import { WalletBootError, WalletBootPhase, WalletError, WalletRequestError, WalletRequestPhase } from "./plugins/wallet/errors.mjs";
|
|
62
|
+
import { WalletAccountMember, WalletOptions, WalletValue } from "./plugins/wallet/service.mjs";
|
|
63
|
+
import { wallet } from "./plugins/wallet/index.mjs";
|
|
64
|
+
import { HostServiceError } from "./plugins/host-service/errors.mjs";
|
|
65
|
+
import { HOST_SERVICE_PORT_TOKEN, HostServiceOptions, HostServiceReadyProbe, HostServiceValue } from "./plugins/host-service/service.mjs";
|
|
66
|
+
import { hostService } from "./plugins/host-service/index.mjs";
|
|
67
|
+
import { DatabaseCreateFailed, PostgresConfigError, PostgresConnectionTimeout, PostgresError, PostgresPhase, PostgresPluginError } from "./plugins/postgres/errors.mjs";
|
|
68
|
+
import { Postgres, PostgresServiceOptions } from "./plugins/postgres/service.mjs";
|
|
69
|
+
import { PostgresConnectionBindings, PostgresConnectionParts } from "./plugins/postgres/connection.mjs";
|
|
70
|
+
import { PostgresPluginOptions, postgres } from "./plugins/postgres/index.mjs";
|
|
71
|
+
import { ActionError, ActionPhase } from "./plugins/action/errors.mjs";
|
|
72
|
+
import { ActionReceipt } from "./plugins/action/service.mjs";
|
|
73
|
+
import { ActionBuildContext } from "./plugins/action/build-context.mjs";
|
|
74
|
+
import { ActionOptions, ActionUpstreamRef, action } from "./plugins/action/index.mjs";
|
|
75
|
+
import { WalrusConfigError, WalrusError, WalrusPhase, WalrusPluginError } from "./plugins/walrus/errors.mjs";
|
|
76
|
+
import { WalrusStorageNode } from "./plugins/walrus/storage-nodes.mjs";
|
|
77
|
+
import { WalrusLocalClusterOptions } from "./plugins/walrus/mode/local-cluster.mjs";
|
|
78
|
+
import { WalrusKnownDeploymentOptions, WalrusKnownNetwork } from "./plugins/walrus/mode/known-deploy.mjs";
|
|
79
|
+
import { WalrusBindings, WalrusNodeBinding } from "./plugins/walrus/codegen.mjs";
|
|
80
|
+
import { WalCoinValue, WalrusResolved, walCoin, walrus, walrusFor } from "./plugins/walrus/index.mjs";
|
|
81
|
+
import { SealAnyError, SealConfigError, SealError } from "./plugins/seal/errors.mjs";
|
|
82
|
+
import { SealKeyServer, SealKeyServerEntry, SealKnownResolved, SealLocalKeygenResolved, SealResolved } from "./plugins/seal/registry-publish.mjs";
|
|
83
|
+
import { SealBindings } from "./plugins/seal/codegen.mjs";
|
|
84
|
+
import { SealCommonOptions, SealForkKnownOptions, SealLiveOptions, SealLocalKeygenOptions, SealOptions, seal, sealFor } from "./plugins/seal/index.mjs";
|
|
85
|
+
import { DeepbookConfigError, DeepbookError, DeepbookPhase, DeepbookPluginError } from "./plugins/deepbook/errors.mjs";
|
|
86
|
+
import { AccountMemberAlias, CoinMemberAlias, DEEP_PRICE_FEED_ID, DeepbookPackageMember, DeepbookPool, DeepbookPoolCoin, DeepbookPoolSeedLiquidity, DeepbookPoolSeedOrder, DeepbookPoolSpec, PythFeed, PythHandle, PythOptions, PythPackageMember, PythPriceFeedId, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./plugins/deepbook/types.mjs";
|
|
87
|
+
import { DeepbookBindings, DeepbookPoolBinding } from "./plugins/deepbook/codegen.mjs";
|
|
88
|
+
import { DeepbookCommonOptions, DeepbookKnownNetwork, DeepbookKnownOptions, DeepbookOptions, DeepbookOverrideOptions, DeepbookResolved, deepbookCore, deepbookFor } from "./plugins/deepbook/index.mjs";
|
|
89
|
+
export { type AccountAcquireError, type AccountAcquirePhase, type AccountBindings, type AccountError, type AccountFunding, type AccountFundingCoinValue, type AccountFundingEntry, type AccountFundingRequest, type AccountFundingResult, type AccountFundingStrategy, type AccountMemberAlias, type AccountOptions, type AccountSignError, type AccountSignPhase, type AccountValue, type AccountVariantKind, type ActionBuildContext, type ActionError, type ActionOptions, type ActionPhase, type ActionReceipt, type ActionUpstreamRef, type AnyPlugin, type AnyResourceRef, type AppName, BUILTIN_COINS, type BootError, type Brand, type BuildCtx, type BuiltinCoinName, type CapabilityDecl, type CapabilityKind, type CapabilityPayloadFor, type ChainId, type ChainProbe, type ChainProbeError, type ChainProbeMode, type CodegenEmitContext, type CodegenEmitDone, type CodegenableDecl, type CoinAddressForm, type CoinBindings, type CoinError, type CoinMember, type CoinMemberAlias, type CoinPhase, type CoinValue, config_validation_d_exports as ConfigValidation, type ContainerHandle, type ContainerLabelTuple, type ContainerRuntime, type ContainerRuntimeError, ContainerRuntimeService, type ContentHash, type CrossCuttingFundingEntry, type CrossCuttingFundingProvider, DEEP_PRICE_FEED_ID, DEFAULT_EPHEMERAL_FUND_MIST, type DatabaseCreateFailed, type DeepbookBindings, type DeepbookCommonOptions, type DeepbookConfigError, type DeepbookError, type DeepbookKnownNetwork, type DeepbookKnownOptions, type DeepbookOptions, type DeepbookOverrideOptions, type DeepbookPackageMember, type DeepbookPhase, type DeepbookPluginError, type DeepbookPool, type DeepbookPoolBinding, type DeepbookPoolCoin, type DeepbookPoolSeedLiquidity, type DeepbookPoolSeedOrder, type DeepbookPoolSpec, type DeepbookResolved, type DefaultNetwork, type DependencyInput, type DependencyList, type DevstackCapabilityRegistry, type DevstackNetworkModeRegistry, type DevstackOptions, type DevstackOptionsWith, type DevstackRoutableUpstreamRegistry, type DiscoveredCoin, type DispatchId, type EndpointKey, type ExactCapabilityPayload, type FactoriesByMode, type FactoriesFor, type FaucetBodyError, type FaucetConfigError, type FaucetError, type FaucetExhausted, type FaucetStrategy, type FaucetStrategyContribution, type FaucetUnreachable, type ForkUnsupportedError, type FundsReadyError, type FundsReadyStrategy, HOST_SERVICE_PORT_TOKEN, type HostServiceError, type HostServiceOptions, type HostServiceReadyProbe, type HostServiceValue, http_probe_d_exports as HttpProbes, IdentityContext, type ImageRef, type KnownPackageOptions, type KnownPackageResolved, type LifecycleStatus, type LivenessClassification, type LivenessClassifierDecl, type LivenessHints, type LoadedImageBundle, type LocalPackageOptions, type LocalPackageResolved, type LogLevel, type LogLine, type LogPayload, Logger, type LoggerShape, managed_container_d_exports as ManagedContainers, type ManifestExtras, type ManifestExtrasContext, type ManifestExtrasInput, type ModeNamespace, type NetworkConfig, type NetworkMode, type PackageBindings, type PackageCapture, type PackageMember, type PackageResolved, type PhaseNarration, type Plugin, type PluginRole, type PluginSpec, type Postgres, type PostgresConfigError, type PostgresConnectionBindings, type PostgresConnectionParts, type PostgresConnectionTimeout, type PostgresError, type PostgresPhase, type PostgresPluginError, type PostgresPluginOptions, type PostgresServiceOptions, probes_d_exports as Probes, process_lines_d_exports as ProcessLines, process_supervisor_d_exports as ProcessSupervisor, type ProjectionDecl, type ProjectionEvent, type PublishError, type PublisherAccountMember, type PythFeed, type PythHandle, type PythOptions, type PythPackageMember, type PythPriceFeedId, redaction_d_exports as Redaction, type RedactionRule, Redactor, type ResolvedCoin, type ResolvedDependencies, type ResolvedKeypair, type ResolvedKnownPackage, type ResolvedLocalPackage, type ResolvedSuiNetwork, type ResourceIdOf, type ResourceRef, type ResourceValueOf, retry_policy_d_exports as RetryPolicy, type RoutableDecl, type RoutableHttpDecl, type RoutableTcpDecl, type RoutableUpstream, type RoutableUpstreamKind, type RunHandle, type RunStackIdentityOptions, type RunStackOptions, runtime_decode_d_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, type SealError as SealAcquireError, type SealAnyError, type SealBindings, type SealCommonOptions, type SealConfigError, type SealError, type SealForkKnownOptions, type SealKeyServer, type SealKeyServerEntry, type SealKnownResolved, type SealLiveOptions, type SealLocalKeygenOptions, type SealLocalKeygenResolved, type SealOptions, type SealResolved, type SeedManifestMismatchError, type SignatureScheme, type SnapshotableDecl, type Stack, type StackName, type StrategyContributorDecl, type StrategyFor, type SuiCliError, type SuiConfigError, type SuiError, type SuiForkOptions, type SuiFundingEntry, type SuiFundsReadyError, type SuiLiveOptions, type SuiLocalOptions, type SuiLocalRpcOptions, type SuiNetworkBindings, type SuiOptions, type SuiPluginError, type SyntheticImpersonationSigner, type TagBuffer, type TaggedImageRef, type TxResult, USDC_PRICE_FEED_ID, type WalCoinValue, type WalletAccountMember, type WalletBootError, type WalletBootPhase, type WalletError, type WalletOptions, type WalletRequestError, type WalletRequestPhase, type WalletValue, type WalrusBindings, type WalrusConfigError, type WalrusError, type WalrusKnownDeploymentOptions, type WalrusKnownNetwork, type WalrusLocalClusterOptions, type WalrusNodeBinding, type WalrusPhase, type WalrusPluginError, type WalrusResolved, type WalrusStorageNode, account, action, appName, capability, capabilitySink, chainId, codegenable, coin, contentHash, deepbookCore as deepbook, deepbookFor, defineCapability, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, postgres, projection, pythPriceFeedId, resource, routable, runStack, seal, sealFor, snapshotable, stackName, strategyContributor, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineId, definePlugin, resource } from "./substrate/plugin.mjs";
|
|
2
|
+
import { IdentityContext } from "./substrate/runtime/paths.mjs";
|
|
3
|
+
import { runtime_decode_exports } from "./substrate/runtime/runtime-decode.mjs";
|
|
4
|
+
import { defineModeNamespace } from "./api/mode-narrowed-factory.mjs";
|
|
5
|
+
import { appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
|
|
6
|
+
import { process_lines_exports } from "./substrate/runtime/observability/process-lines.mjs";
|
|
7
|
+
import { probes_exports } from "./substrate/runtime/probes.mjs";
|
|
8
|
+
import { ContainerRuntimeService } from "./runtime/docker/service.mjs";
|
|
9
|
+
import { config_validation_exports } from "./substrate/runtime/config-validation.mjs";
|
|
10
|
+
import { http_probe_exports } from "./substrate/runtime/http-probe.mjs";
|
|
11
|
+
import { managed_container_exports } from "./substrate/runtime/managed-container.mjs";
|
|
12
|
+
import { retry_policy_exports } from "./substrate/runtime/retry-policy.mjs";
|
|
13
|
+
import { sui, suiFor } from "./plugins/sui/index.mjs";
|
|
14
|
+
import { Redactor, redaction_exports } from "./substrate/runtime/observability/redaction.mjs";
|
|
15
|
+
import { Logger } from "./substrate/runtime/observability/logger.mjs";
|
|
16
|
+
import { wallet } from "./plugins/wallet/index.mjs";
|
|
17
|
+
import { defineDevstack } from "./api/define-devstack.mjs";
|
|
18
|
+
import { defineDevstackWith } from "./api/define-devstack-with.mjs";
|
|
19
|
+
import { process_supervisor_exports } from "./substrate/runtime/process-supervisor.mjs";
|
|
20
|
+
import { runStack } from "./api/run-stack.mjs";
|
|
21
|
+
import { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor } from "./api/define-capabilities.mjs";
|
|
22
|
+
import { DEFAULT_EPHEMERAL_FUND_MIST, SUI_FULL_COIN_TYPE } from "./plugins/account/funding.mjs";
|
|
23
|
+
import { account } from "./plugins/account/index.mjs";
|
|
24
|
+
import { knownPackage, localPackage } from "./plugins/package/index.mjs";
|
|
25
|
+
import { isBareCoinType, validateBareCoinType } from "./plugins/coin/metadata.mjs";
|
|
26
|
+
import { BUILTIN_COINS } from "./plugins/coin/address-resolution.mjs";
|
|
27
|
+
import { coin } from "./plugins/coin/index.mjs";
|
|
28
|
+
import { HOST_SERVICE_PORT_TOKEN } from "./plugins/host-service/service.mjs";
|
|
29
|
+
import { hostService } from "./plugins/host-service/index.mjs";
|
|
30
|
+
import { postgres } from "./plugins/postgres/index.mjs";
|
|
31
|
+
import { defineFaucetStrategy } from "./plugins/faucet/index.mjs";
|
|
32
|
+
import { action } from "./plugins/action/index.mjs";
|
|
33
|
+
import { walCoin, walrus, walrusFor } from "./plugins/walrus/index.mjs";
|
|
34
|
+
import { seal, sealFor } from "./plugins/seal/index.mjs";
|
|
35
|
+
import { DEEP_PRICE_FEED_ID, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./plugins/deepbook/types.mjs";
|
|
36
|
+
import { deepbookCore, deepbookFor } from "./plugins/deepbook/index.mjs";
|
|
37
|
+
export { BUILTIN_COINS, config_validation_exports as ConfigValidation, ContainerRuntimeService, DEEP_PRICE_FEED_ID, DEFAULT_EPHEMERAL_FUND_MIST, HOST_SERVICE_PORT_TOKEN, http_probe_exports as HttpProbes, IdentityContext, Logger, managed_container_exports as ManagedContainers, probes_exports as Probes, process_lines_exports as ProcessLines, process_supervisor_exports as ProcessSupervisor, redaction_exports as Redaction, Redactor, retry_policy_exports as RetryPolicy, runtime_decode_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, account, action, appName, capability, capabilitySink, chainId, codegenable, coin, contentHash, deepbookCore as deepbook, deepbookFor, defineCapability, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, postgres, projection, pythPriceFeedId, resource, routable, runStack, seal, sealFor, snapshotable, stackName, strategyContributor, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
|