@mysten-incubation/devstack 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dashboard-ui/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dashboard-ui/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dashboard-ui/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dashboard-ui/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dashboard-ui/assets/geist-mono-cyrillic-ext-wght-normal-I4S5GZfc.woff2 +0 -0
- package/dashboard-ui/assets/geist-mono-cyrillic-wght-normal-BmXc_FBt.woff2 +0 -0
- package/dashboard-ui/assets/geist-mono-latin-ext-wght-normal-DrnZ1wKl.woff2 +0 -0
- package/dashboard-ui/assets/geist-mono-latin-wght-normal-B_7UjwxQ.woff2 +0 -0
- package/dashboard-ui/assets/geist-mono-symbols2-wght-normal-GZpp1pK2.woff2 +0 -0
- package/dashboard-ui/assets/geist-mono-vietnamese-wght-normal-D8KDMBhC.woff2 +0 -0
- package/dashboard-ui/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dashboard-ui/assets/index-Bmi1UtAg.js +1356 -0
- package/dashboard-ui/assets/index-D5EShVt4.js +3 -0
- package/dashboard-ui/assets/index-Deml9drg.css +1 -0
- package/dashboard-ui/index.html +13 -0
- package/dist/api/define-capabilities.d.mts +14 -3
- package/dist/api/define-capabilities.mjs +18 -1
- package/dist/api/define-capabilities.mjs.map +1 -1
- package/dist/api/define-devstack.d.mts +1 -1
- package/dist/api/define-devstack.mjs +6 -26
- package/dist/api/define-devstack.mjs.map +1 -1
- package/dist/api/define-plugin.d.mts +1 -0
- package/dist/api/define-plugin.mjs +2 -0
- package/dist/api/inference-network.d.mts +132 -0
- package/dist/api/inference-network.mjs +105 -16
- package/dist/api/inference-network.mjs.map +1 -1
- package/dist/api/plugin-errors.d.mts +7 -0
- package/dist/api/run-stack.d.mts +20 -9
- package/dist/api/run-stack.mjs +56 -29
- package/dist/api/run-stack.mjs.map +1 -1
- package/dist/build-integrations/playwright/config.d.mts +6 -4
- package/dist/build-integrations/playwright/config.mjs +5 -3
- package/dist/build-integrations/playwright/config.mjs.map +1 -1
- package/dist/build-integrations/playwright/errors.d.mts +1 -1
- package/dist/build-integrations/playwright/global-setup.d.mts +43 -17
- package/dist/build-integrations/playwright/global-setup.mjs +250 -13
- package/dist/build-integrations/playwright/global-setup.mjs.map +1 -1
- package/dist/build-integrations/playwright/index.d.mts +5 -3
- package/dist/build-integrations/playwright/index.mjs +4 -2
- package/dist/build-integrations/playwright/stack-context.d.mts +0 -1
- package/dist/build-integrations/playwright/stack-context.mjs +24 -63
- package/dist/build-integrations/playwright/stack-context.mjs.map +1 -1
- package/dist/build-integrations/playwright/wallet-context.d.mts +7 -10
- package/dist/build-integrations/playwright/wallet-context.mjs +8 -13
- package/dist/build-integrations/playwright/wallet-context.mjs.map +1 -1
- package/dist/build-integrations/runtime/cold-start-url.d.mts +5 -0
- package/dist/build-integrations/runtime/cold-start-url.mjs +4 -3
- package/dist/build-integrations/runtime/cold-start-url.mjs.map +1 -1
- package/dist/build-integrations/runtime/conventional-routes.d.mts +51 -0
- package/dist/build-integrations/runtime/conventional-routes.mjs +92 -0
- package/dist/build-integrations/runtime/conventional-routes.mjs.map +1 -0
- package/dist/build-integrations/runtime/discover.d.mts +38 -30
- package/dist/build-integrations/runtime/discover.mjs +73 -70
- package/dist/build-integrations/runtime/discover.mjs.map +1 -1
- package/dist/build-integrations/runtime/endpoint-registry.d.mts +3 -1
- package/dist/build-integrations/runtime/endpoint-registry.mjs +3 -1
- package/dist/build-integrations/runtime/endpoint-registry.mjs.map +1 -1
- package/dist/build-integrations/runtime/index.d.mts +7 -2
- package/dist/build-integrations/runtime/index.mjs +9 -2
- package/dist/build-integrations/runtime/manifest-types.d.mts +2 -0
- package/dist/build-integrations/runtime/manifest-types.mjs +3 -0
- package/dist/build-integrations/runtime/playwright-stack-context-slot.d.mts +29 -0
- package/dist/build-integrations/runtime/playwright-stack-context-slot.mjs +10 -0
- package/dist/build-integrations/runtime/playwright-stack-context-slot.mjs.map +1 -0
- package/dist/build-integrations/runtime/read-stack-context.d.mts +1 -1
- package/dist/build-integrations/runtime/read-stack-context.mjs +10 -4
- package/dist/build-integrations/runtime/read-stack-context.mjs.map +1 -1
- package/dist/build-integrations/runtime/resolve-discovery-env.d.mts +48 -0
- package/dist/build-integrations/runtime/resolve-discovery-env.mjs +42 -0
- package/dist/build-integrations/runtime/resolve-discovery-env.mjs.map +1 -0
- package/dist/build-integrations/runtime/stack-context.d.mts +1 -1
- package/dist/build-integrations/runtime/wallet-paths.mjs +2 -0
- package/dist/build-integrations/vite/index.d.mts +51 -0
- package/dist/build-integrations/vite/index.mjs +73 -0
- package/dist/build-integrations/vite/index.mjs.map +1 -0
- package/dist/build-integrations/vitest/env.d.mts +4 -3
- package/dist/build-integrations/vitest/env.mjs +6 -4
- package/dist/build-integrations/vitest/env.mjs.map +1 -1
- package/dist/build-integrations/vitest/errors.d.mts +25 -4
- package/dist/build-integrations/vitest/errors.mjs +15 -2
- package/dist/build-integrations/vitest/errors.mjs.map +1 -1
- package/dist/build-integrations/vitest/index.d.mts +2 -2
- package/dist/build-integrations/vitest/index.mjs +3 -3
- package/dist/build-integrations/vitest/setup.d.mts +4 -2
- package/dist/build-integrations/vitest/setup.mjs +2 -2
- package/dist/build-integrations/vitest/setup.mjs.map +1 -1
- package/dist/build-integrations/vitest/stack-context.d.mts +0 -1
- package/dist/build-integrations/vitest/stack-context.mjs +33 -13
- package/dist/build-integrations/vitest/stack-context.mjs.map +1 -1
- package/dist/cli/bail.mjs +23 -0
- package/dist/cli/bail.mjs.map +1 -0
- package/dist/{surfaces/cli/commands → cli}/doctor-probes.mjs +26 -16
- package/dist/cli/doctor-probes.mjs.map +1 -0
- package/dist/cli/main.d.mts +15 -1
- package/dist/cli/main.mjs +166 -482
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/prune-direct.mjs +31 -201
- package/dist/cli/prune-direct.mjs.map +1 -1
- package/dist/cli/snapshot-reader.mjs +14 -11
- package/dist/cli/snapshot-reader.mjs.map +1 -1
- package/dist/cli/up-lifecycle.mjs +4 -1
- package/dist/cli/up-lifecycle.mjs.map +1 -1
- package/dist/cli/wirings/apply.mjs +95 -0
- package/dist/cli/wirings/apply.mjs.map +1 -0
- package/dist/cli/wirings/build-verb-layers.mjs +42 -0
- package/dist/cli/wirings/build-verb-layers.mjs.map +1 -0
- package/dist/cli/wirings/config-loader.mjs +69 -0
- package/dist/cli/wirings/config-loader.mjs.map +1 -0
- package/dist/cli/wirings/engine-command.mjs +30 -0
- package/dist/cli/wirings/engine-command.mjs.map +1 -0
- package/dist/cli/wirings/identity.mjs +72 -0
- package/dist/cli/wirings/identity.mjs.map +1 -0
- package/dist/cli/wirings/provide-file-system.mjs +7 -0
- package/dist/cli/wirings/provide-file-system.mjs.map +1 -0
- package/dist/cli/wirings/snapshot.mjs +177 -0
- package/dist/cli/wirings/snapshot.mjs.map +1 -0
- package/dist/cli/wirings/up.mjs +287 -0
- package/dist/cli/wirings/up.mjs.map +1 -0
- package/dist/cli/wirings/wipe.mjs +40 -0
- package/dist/cli/wirings/wipe.mjs.map +1 -0
- package/dist/contracts/capability-decl.d.mts +0 -2
- package/dist/contracts/codegenable.d.mts +43 -0
- package/dist/contracts/container-runtime.d.mts +26 -1
- package/dist/contracts/faucet-strategy.d.mts +25 -0
- package/dist/contracts/funding-strategy.d.mts +42 -0
- package/dist/contracts/plugin-expander.mjs +60 -0
- package/dist/contracts/plugin-expander.mjs.map +1 -0
- package/dist/contracts/projection.d.mts +5 -3
- package/dist/contracts/renderer.d.mts +23 -0
- package/dist/contracts/routable.d.mts +14 -1
- package/dist/contracts/snapshotable.d.mts +25 -3
- package/dist/contracts/wallet-protocol.d.mts +52 -0
- package/dist/contracts/wallet-protocol.mjs +52 -0
- package/dist/contracts/wallet-protocol.mjs.map +1 -0
- package/dist/index.d.mts +26 -25
- package/dist/index.mjs +20 -13
- package/dist/{runtime → orchestrators}/built-in-plugin-layers.mjs +10 -5
- package/dist/orchestrators/built-in-plugin-layers.mjs.map +1 -0
- package/dist/orchestrators/codegen/bindings.d.mts +1 -2
- package/dist/orchestrators/codegen/bindings.mjs +52 -186
- package/dist/orchestrators/codegen/bindings.mjs.map +1 -1
- package/dist/orchestrators/codegen/emit.mjs +19 -1
- package/dist/orchestrators/codegen/emit.mjs.map +1 -1
- package/dist/orchestrators/codegen/errors.mjs +8 -3
- package/dist/orchestrators/codegen/errors.mjs.map +1 -1
- package/dist/orchestrators/codegen/format.mjs +47 -39
- package/dist/orchestrators/codegen/format.mjs.map +1 -1
- package/dist/orchestrators/codegen/gitignore.mjs +3 -1
- package/dist/orchestrators/codegen/gitignore.mjs.map +1 -1
- package/dist/orchestrators/codegen/output-location.mjs +40 -0
- package/dist/orchestrators/codegen/output-location.mjs.map +1 -0
- package/dist/orchestrators/codegen/paths.d.mts +1 -1
- package/dist/orchestrators/codegen/paths.mjs +40 -14
- package/dist/orchestrators/codegen/paths.mjs.map +1 -1
- package/dist/orchestrators/codegen/permissions.mjs +3 -1
- package/dist/orchestrators/codegen/permissions.mjs.map +1 -1
- package/dist/orchestrators/codegen/service.mjs +157 -105
- package/dist/orchestrators/codegen/service.mjs.map +1 -1
- package/dist/orchestrators/lifecycle-prune/errors.mjs +31 -0
- package/dist/orchestrators/lifecycle-prune/errors.mjs.map +1 -0
- package/dist/orchestrators/lifecycle-prune/index.mjs +350 -0
- package/dist/orchestrators/lifecycle-prune/index.mjs.map +1 -0
- package/dist/orchestrators/router/cleanup.mjs +26 -27
- package/dist/orchestrators/router/cleanup.mjs.map +1 -1
- package/dist/orchestrators/router/entrypoints.mjs +2 -2
- package/dist/orchestrators/router/entrypoints.mjs.map +1 -1
- package/dist/orchestrators/router/file-provider.mjs +14 -5
- package/dist/orchestrators/router/file-provider.mjs.map +1 -1
- package/dist/orchestrators/router/hostname.mjs +19 -55
- package/dist/orchestrators/router/hostname.mjs.map +1 -1
- package/dist/orchestrators/router/index.mjs +11 -0
- package/dist/orchestrators/router/profile.mjs +2 -2
- package/dist/orchestrators/router/sentinels.mjs +26 -0
- package/dist/orchestrators/router/sentinels.mjs.map +1 -0
- package/dist/orchestrators/router/service.mjs +40 -37
- package/dist/orchestrators/router/service.mjs.map +1 -1
- package/dist/orchestrators/router/traefik-container.mjs +27 -16
- package/dist/orchestrators/router/traefik-container.mjs.map +1 -1
- package/dist/{substrate/runtime → orchestrators}/run.mjs +26 -21
- package/dist/orchestrators/run.mjs.map +1 -0
- package/dist/orchestrators/runtime-composition.d.mts +1 -1
- package/dist/orchestrators/runtime-composition.mjs +123 -39
- package/dist/orchestrators/runtime-composition.mjs.map +1 -1
- package/dist/orchestrators/snapshot/capture-command.d.mts +1 -0
- package/dist/orchestrators/snapshot/capture-command.mjs +25 -0
- package/dist/orchestrators/snapshot/capture-command.mjs.map +1 -0
- package/dist/orchestrators/snapshot/capture.mjs +42 -28
- package/dist/orchestrators/snapshot/capture.mjs.map +1 -1
- package/dist/orchestrators/snapshot/descriptor.mjs +35 -10
- package/dist/orchestrators/snapshot/descriptor.mjs.map +1 -1
- package/dist/orchestrators/snapshot/identity-guard.mjs +1 -1
- package/dist/orchestrators/snapshot/index.mjs +13 -0
- package/dist/orchestrators/snapshot/integrity.d.mts +1 -1
- package/dist/orchestrators/snapshot/integrity.mjs +73 -17
- package/dist/orchestrators/snapshot/integrity.mjs.map +1 -1
- package/dist/orchestrators/snapshot/pending-marker.d.mts +1 -0
- package/dist/orchestrators/snapshot/pending-marker.mjs +99 -0
- package/dist/orchestrators/snapshot/pending-marker.mjs.map +1 -0
- package/dist/orchestrators/snapshot/phase-error.mjs +23 -0
- package/dist/orchestrators/snapshot/phase-error.mjs.map +1 -0
- package/dist/orchestrators/snapshot/prune.mjs +20 -55
- package/dist/orchestrators/snapshot/prune.mjs.map +1 -1
- package/dist/orchestrators/snapshot/recover-pending.d.mts +1 -0
- package/dist/orchestrators/snapshot/recover-pending.mjs +223 -0
- package/dist/orchestrators/snapshot/recover-pending.mjs.map +1 -0
- package/dist/orchestrators/snapshot/restore.mjs +118 -84
- package/dist/orchestrators/snapshot/restore.mjs.map +1 -1
- package/dist/orchestrators/snapshot/service.mjs +53 -56
- package/dist/orchestrators/snapshot/service.mjs.map +1 -1
- package/dist/orchestrators/snapshot/state-document.d.mts +1 -0
- package/dist/orchestrators/snapshot/state-document.mjs +47 -7
- package/dist/orchestrators/snapshot/state-document.mjs.map +1 -1
- package/dist/orchestrators/snapshot/wipe.mjs +67 -10
- package/dist/orchestrators/snapshot/wipe.mjs.map +1 -1
- package/dist/plugins/account/codegen.mjs +9 -8
- package/dist/plugins/account/codegen.mjs.map +1 -1
- package/dist/plugins/account/errors.d.mts +33 -6
- package/dist/plugins/account/errors.mjs.map +1 -1
- package/dist/plugins/account/funding.d.mts +29 -19
- package/dist/plugins/account/funding.mjs +84 -66
- package/dist/plugins/account/funding.mjs.map +1 -1
- package/dist/plugins/account/index.d.mts +2 -4
- package/dist/plugins/account/index.mjs +64 -31
- package/dist/plugins/account/index.mjs.map +1 -1
- package/dist/plugins/account/keypair.mjs +6 -9
- package/dist/plugins/account/keypair.mjs.map +1 -1
- package/dist/plugins/account/lease.mjs +1 -0
- package/dist/plugins/account/lease.mjs.map +1 -1
- package/dist/plugins/account/registry.d.mts +14 -1
- package/dist/plugins/account/registry.mjs +18 -18
- package/dist/plugins/account/registry.mjs.map +1 -1
- package/dist/plugins/account/service.d.mts +23 -4
- package/dist/plugins/account/service.mjs +83 -45
- package/dist/plugins/account/service.mjs.map +1 -1
- package/dist/plugins/account/snapshot.mjs +2 -5
- package/dist/plugins/account/snapshot.mjs.map +1 -1
- package/dist/plugins/account/spans.mjs +16 -0
- package/dist/plugins/account/spans.mjs.map +1 -0
- package/dist/plugins/account/variants/keystore.mjs +6 -8
- package/dist/plugins/account/variants/keystore.mjs.map +1 -1
- package/dist/plugins/action/build-context.d.mts +3 -2
- package/dist/plugins/action/errors.d.mts +16 -12
- package/dist/plugins/action/errors.mjs.map +1 -1
- package/dist/plugins/action/execute.mjs +65 -103
- package/dist/plugins/action/execute.mjs.map +1 -1
- package/dist/plugins/action/index.d.mts +0 -2
- package/dist/plugins/action/index.mjs +17 -13
- package/dist/plugins/action/index.mjs.map +1 -1
- package/dist/plugins/action/service.mjs +38 -35
- package/dist/plugins/action/service.mjs.map +1 -1
- package/dist/plugins/action/spans.mjs +11 -0
- package/dist/plugins/action/spans.mjs.map +1 -0
- package/dist/plugins/coin/codegen.mjs +9 -8
- package/dist/plugins/coin/codegen.mjs.map +1 -1
- package/dist/plugins/coin/discovery.mjs +8 -4
- package/dist/plugins/coin/discovery.mjs.map +1 -1
- package/dist/plugins/coin/index.d.mts +11 -29
- package/dist/plugins/coin/index.mjs +56 -27
- package/dist/plugins/coin/index.mjs.map +1 -1
- package/dist/plugins/coin/metadata.mjs +8 -15
- package/dist/plugins/coin/metadata.mjs.map +1 -1
- package/dist/plugins/coin/mint.d.mts +30 -11
- package/dist/plugins/coin/mint.mjs +78 -74
- package/dist/plugins/coin/mint.mjs.map +1 -1
- package/dist/plugins/coin/registry.mjs +4 -7
- package/dist/plugins/coin/registry.mjs.map +1 -1
- package/dist/plugins/coin/service.d.mts +39 -1
- package/dist/plugins/coin/service.mjs +11 -4
- package/dist/plugins/coin/service.mjs.map +1 -1
- package/dist/plugins/coin/spans.mjs +20 -0
- package/dist/plugins/coin/spans.mjs.map +1 -0
- package/dist/plugins/dashboard/domain.mjs +402 -0
- package/dist/plugins/dashboard/domain.mjs.map +1 -0
- package/dist/plugins/dashboard/index.d.mts +29 -0
- package/dist/plugins/dashboard/index.mjs +91 -0
- package/dist/plugins/dashboard/index.mjs.map +1 -0
- package/dist/plugins/dashboard/origin-policy.mjs +36 -0
- package/dist/plugins/dashboard/origin-policy.mjs.map +1 -0
- package/dist/plugins/dashboard/routable.mjs +27 -0
- package/dist/plugins/dashboard/routable.mjs.map +1 -0
- package/dist/plugins/dashboard/schema/builder.mjs +21 -0
- package/dist/plugins/dashboard/schema/builder.mjs.map +1 -0
- package/dist/plugins/dashboard/schema/enums.mjs +72 -0
- package/dist/plugins/dashboard/schema/enums.mjs.map +1 -0
- package/dist/plugins/dashboard/schema/root.mjs +351 -0
- package/dist/plugins/dashboard/schema/root.mjs.map +1 -0
- package/dist/plugins/dashboard/schema/types.mjs +508 -0
- package/dist/plugins/dashboard/schema/types.mjs.map +1 -0
- package/dist/plugins/dashboard/schema.mjs +11 -0
- package/dist/plugins/dashboard/schema.mjs.map +1 -0
- package/dist/plugins/dashboard/server.mjs +166 -0
- package/dist/plugins/dashboard/server.mjs.map +1 -0
- package/dist/plugins/deepbook/deploy.mjs +53 -115
- package/dist/plugins/deepbook/deploy.mjs.map +1 -1
- package/dist/plugins/deepbook/errors.mjs +1 -0
- package/dist/plugins/deepbook/errors.mjs.map +1 -1
- package/dist/plugins/deepbook/faucet-strategy.mjs +47 -34
- package/dist/plugins/deepbook/faucet-strategy.mjs.map +1 -1
- package/dist/plugins/deepbook/hash.mjs +9 -0
- package/dist/plugins/deepbook/hash.mjs.map +1 -0
- package/dist/plugins/deepbook/index.d.mts +1 -10
- package/dist/plugins/deepbook/index.mjs +25 -22
- package/dist/plugins/deepbook/index.mjs.map +1 -1
- package/dist/plugins/deepbook/pyth/index.mjs +26 -55
- package/dist/plugins/deepbook/pyth/index.mjs.map +1 -1
- package/dist/plugins/deepbook/snapshot.mjs +17 -29
- package/dist/plugins/deepbook/snapshot.mjs.map +1 -1
- package/dist/plugins/deepbook/spans.mjs +18 -0
- package/dist/plugins/deepbook/spans.mjs.map +1 -0
- package/dist/plugins/deepbook/type-strings.mjs +65 -0
- package/dist/plugins/deepbook/type-strings.mjs.map +1 -0
- package/dist/plugins/deepbook/types.d.mts +2 -3
- package/dist/plugins/deepbook/types.mjs.map +1 -1
- package/dist/plugins/faucet/dispatcher.d.mts +21 -2
- package/dist/plugins/faucet/dispatcher.mjs +1 -2
- package/dist/plugins/faucet/dispatcher.mjs.map +1 -1
- package/dist/plugins/faucet/errors.d.mts +11 -24
- package/dist/plugins/faucet/errors.mjs.map +1 -1
- package/dist/plugins/faucet/http.mjs +33 -14
- package/dist/plugins/faucet/http.mjs.map +1 -1
- package/dist/plugins/faucet/index.d.mts +15 -5
- package/dist/plugins/faucet/index.mjs +3 -0
- package/dist/plugins/faucet/index.mjs.map +1 -1
- package/dist/plugins/faucet/spans.mjs +12 -0
- package/dist/plugins/faucet/spans.mjs.map +1 -0
- package/dist/plugins/host-service/errors.d.mts +1 -1
- package/dist/plugins/host-service/index.mjs +34 -8
- package/dist/plugins/host-service/index.mjs.map +1 -1
- package/dist/plugins/host-service/routable.mjs +2 -1
- package/dist/plugins/host-service/routable.mjs.map +1 -1
- package/dist/plugins/host-service/service.d.mts +21 -0
- package/dist/plugins/host-service/service.mjs +136 -81
- package/dist/plugins/host-service/service.mjs.map +1 -1
- package/dist/plugins/internal/acquire-on-chain-artifact.mjs +23 -0
- package/dist/plugins/internal/acquire-on-chain-artifact.mjs.map +1 -0
- package/dist/plugins/internal/codegen-helpers.mjs +18 -0
- package/dist/plugins/internal/codegen-helpers.mjs.map +1 -0
- package/dist/plugins/internal/funding-failure-error.mjs +32 -0
- package/dist/plugins/internal/funding-failure-error.mjs.map +1 -0
- package/dist/plugins/package/build.mjs +1 -1
- package/dist/plugins/package/build.mjs.map +1 -1
- package/dist/plugins/package/codegen.mjs +26 -0
- package/dist/plugins/package/codegen.mjs.map +1 -1
- package/dist/plugins/package/errors.d.mts +16 -6
- package/dist/plugins/package/errors.mjs.map +1 -1
- package/dist/plugins/package/index.d.mts +0 -4
- package/dist/plugins/package/index.mjs +27 -21
- package/dist/plugins/package/index.mjs.map +1 -1
- package/dist/plugins/package/mode-known.mjs +26 -12
- package/dist/plugins/package/mode-known.mjs.map +1 -1
- package/dist/plugins/package/mode-local.mjs +47 -41
- package/dist/plugins/package/mode-local.mjs.map +1 -1
- package/dist/plugins/package/publish-executor.mjs +55 -114
- package/dist/plugins/package/publish-executor.mjs.map +1 -1
- package/dist/plugins/package/registry.mjs +2 -1
- package/dist/plugins/package/registry.mjs.map +1 -1
- package/dist/plugins/package/service.mjs.map +1 -1
- package/dist/plugins/package/spans.mjs +14 -0
- package/dist/plugins/package/spans.mjs.map +1 -0
- package/dist/plugins/postgres/db-ensure.mjs +19 -12
- package/dist/plugins/postgres/db-ensure.mjs.map +1 -1
- package/dist/plugins/postgres/errors.d.mts +5 -0
- package/dist/plugins/postgres/errors.mjs.map +1 -1
- package/dist/plugins/postgres/index.mjs +10 -17
- package/dist/plugins/postgres/index.mjs.map +1 -1
- package/dist/plugins/postgres/service.mjs +58 -24
- package/dist/plugins/postgres/service.mjs.map +1 -1
- package/dist/plugins/postgres/snapshot.mjs.map +1 -1
- package/dist/plugins/postgres/spans.mjs +11 -0
- package/dist/plugins/postgres/spans.mjs.map +1 -0
- package/dist/plugins/router-entrypoints.mjs +4 -4
- package/dist/plugins/router-entrypoints.mjs.map +1 -1
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs +15 -13
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs.map +1 -1
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs +15 -19
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs.map +1 -1
- package/dist/plugins/seal/codegen.d.mts +2 -3
- package/dist/plugins/seal/codegen.mjs.map +1 -1
- package/dist/plugins/seal/config-render.mjs +35 -8
- package/dist/plugins/seal/config-render.mjs.map +1 -1
- package/dist/plugins/seal/deploy.mjs +31 -39
- package/dist/plugins/seal/deploy.mjs.map +1 -1
- package/dist/plugins/seal/errors.d.mts +1 -3
- package/dist/plugins/seal/errors.mjs +7 -1
- package/dist/plugins/seal/errors.mjs.map +1 -1
- package/dist/plugins/seal/index.d.mts +1 -6
- package/dist/plugins/seal/index.mjs +40 -14
- package/dist/plugins/seal/index.mjs.map +1 -1
- package/dist/plugins/seal/key-manager.d.mts +1 -9
- package/dist/plugins/seal/key-manager.mjs +2 -18
- package/dist/plugins/seal/key-manager.mjs.map +1 -1
- package/dist/plugins/seal/key-server.mjs +37 -36
- package/dist/plugins/seal/key-server.mjs.map +1 -1
- package/dist/plugins/seal/keygen.mjs +16 -17
- package/dist/plugins/seal/keygen.mjs.map +1 -1
- package/dist/plugins/seal/mode/fork-known.mjs +36 -14
- package/dist/plugins/seal/mode/fork-known.mjs.map +1 -1
- package/dist/plugins/seal/mode/live.d.mts +6 -4
- package/dist/plugins/seal/mode/live.mjs +14 -21
- package/dist/plugins/seal/mode/live.mjs.map +1 -1
- package/dist/plugins/seal/mode/local-keygen.mjs +57 -21
- package/dist/plugins/seal/mode/local-keygen.mjs.map +1 -1
- package/dist/plugins/seal/registry-publish.mjs +1 -0
- package/dist/plugins/seal/registry-publish.mjs.map +1 -1
- package/dist/plugins/seal/routable.mjs.map +1 -1
- package/dist/plugins/seal/service.mjs.map +1 -1
- package/dist/plugins/seal/spans.mjs +18 -0
- package/dist/plugins/seal/spans.mjs.map +1 -0
- package/dist/plugins/sui/auto-tick.mjs +17 -23
- package/dist/plugins/sui/auto-tick.mjs.map +1 -1
- package/dist/plugins/sui/chain-build-container.mjs +18 -0
- package/dist/plugins/sui/chain-build-container.mjs.map +1 -0
- package/dist/plugins/sui/chain-probe.d.mts +5 -5
- package/dist/plugins/sui/chain-probe.mjs +28 -58
- package/dist/plugins/sui/chain-probe.mjs.map +1 -1
- package/dist/plugins/sui/codegen.mjs +26 -0
- package/dist/plugins/sui/codegen.mjs.map +1 -1
- package/dist/plugins/sui/errors.d.mts +2 -29
- package/dist/plugins/sui/errors.mjs +1 -3
- package/dist/plugins/sui/errors.mjs.map +1 -1
- package/dist/plugins/sui/fork-faucet-strategy.d.mts +1 -0
- package/dist/plugins/sui/fork-faucet-strategy.mjs +55 -0
- package/dist/plugins/sui/fork-faucet-strategy.mjs.map +1 -0
- package/dist/plugins/sui/fork-orchestration.d.mts +1 -0
- package/dist/plugins/sui/fork-orchestration.mjs +170 -2
- package/dist/plugins/sui/fork-orchestration.mjs.map +1 -1
- package/dist/plugins/sui/fork-transaction.d.mts +2 -0
- package/dist/plugins/sui/fork-transaction.mjs +92 -28
- package/dist/plugins/sui/fork-transaction.mjs.map +1 -1
- package/dist/plugins/sui/index.d.mts +33 -70
- package/dist/plugins/sui/index.mjs +58 -35
- package/dist/plugins/sui/index.mjs.map +1 -1
- package/dist/plugins/{faucet/strategies/sui-local.mjs → sui/local-faucet-strategy.mjs} +10 -7
- package/dist/plugins/sui/local-faucet-strategy.mjs.map +1 -0
- package/dist/plugins/sui/mode/external.mjs +7 -13
- package/dist/plugins/sui/mode/external.mjs.map +1 -1
- package/dist/plugins/sui/mode/fork.mjs +136 -59
- package/dist/plugins/sui/mode/fork.mjs.map +1 -1
- package/dist/plugins/sui/mode/live.mjs +10 -16
- package/dist/plugins/sui/mode/live.mjs.map +1 -1
- package/dist/plugins/sui/mode/local.mjs +37 -36
- package/dist/plugins/sui/mode/local.mjs.map +1 -1
- package/dist/plugins/sui/mode/shared-boot.mjs +38 -115
- package/dist/plugins/sui/mode/shared-boot.mjs.map +1 -1
- package/dist/plugins/sui/mode/shared.d.mts +1 -5
- package/dist/plugins/sui/mode/shared.mjs.map +1 -1
- package/dist/plugins/sui/mode/spec.d.mts +18 -0
- package/dist/plugins/sui/move-summary-runner.mjs +207 -0
- package/dist/plugins/sui/move-summary-runner.mjs.map +1 -0
- package/dist/plugins/sui/network-resolver.d.mts +4 -3
- package/dist/plugins/sui/service.mjs.map +1 -1
- package/dist/plugins/sui/snapshot.mjs +3 -0
- package/dist/plugins/sui/snapshot.mjs.map +1 -1
- package/dist/plugins/sui/spans.mjs +17 -0
- package/dist/plugins/sui/spans.mjs.map +1 -0
- package/dist/plugins/wallet/codegen.d.mts +0 -1
- package/dist/plugins/wallet/codegen.mjs +8 -9
- package/dist/plugins/wallet/codegen.mjs.map +1 -1
- package/dist/plugins/wallet/index.d.mts +6 -8
- package/dist/plugins/wallet/index.mjs +46 -35
- package/dist/plugins/wallet/index.mjs.map +1 -1
- package/dist/plugins/wallet/origin-policy.mjs +12 -28
- package/dist/plugins/wallet/origin-policy.mjs.map +1 -1
- package/dist/plugins/wallet/pairing.mjs +6 -4
- package/dist/plugins/wallet/pairing.mjs.map +1 -1
- package/dist/plugins/wallet/protocol.d.mts +1 -0
- package/dist/plugins/wallet/protocol.mjs +5 -44
- package/dist/plugins/wallet/protocol.mjs.map +1 -1
- package/dist/plugins/wallet/routable.mjs +2 -8
- package/dist/plugins/wallet/routable.mjs.map +1 -1
- package/dist/plugins/wallet/server.mjs +36 -44
- package/dist/plugins/wallet/server.mjs.map +1 -1
- package/dist/plugins/wallet/service.d.mts +1 -5
- package/dist/plugins/wallet/service.mjs +22 -18
- package/dist/plugins/wallet/service.mjs.map +1 -1
- package/dist/plugins/wallet/spans.mjs +22 -0
- package/dist/plugins/wallet/spans.mjs.map +1 -0
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs +33 -8
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs.map +1 -1
- package/dist/plugins/walrus/codegen.d.mts +3 -3
- package/dist/plugins/walrus/codegen.mjs.map +1 -1
- package/dist/plugins/walrus/deploy-paths.mjs +21 -5
- package/dist/plugins/walrus/deploy-paths.mjs.map +1 -1
- package/dist/plugins/walrus/deploy.mjs +67 -69
- package/dist/plugins/walrus/deploy.mjs.map +1 -1
- package/dist/plugins/walrus/errors.mjs +1 -0
- package/dist/plugins/walrus/errors.mjs.map +1 -1
- package/dist/plugins/walrus/faucet-strategy.mjs +12 -7
- package/dist/plugins/walrus/faucet-strategy.mjs.map +1 -1
- package/dist/plugins/walrus/index.d.mts +2 -13
- package/dist/plugins/walrus/index.mjs +18 -23
- package/dist/plugins/walrus/index.mjs.map +1 -1
- package/dist/plugins/walrus/mode/known-deploy.mjs +7 -5
- package/dist/plugins/walrus/mode/known-deploy.mjs.map +1 -1
- package/dist/plugins/walrus/mode/local-cluster.mjs +26 -7
- package/dist/plugins/walrus/mode/local-cluster.mjs.map +1 -1
- package/dist/plugins/walrus/registry-publish.mjs.map +1 -1
- package/dist/plugins/walrus/routable.mjs +7 -23
- package/dist/plugins/walrus/routable.mjs.map +1 -1
- package/dist/plugins/walrus/service.mjs.map +1 -1
- package/dist/plugins/walrus/spans.mjs +18 -0
- package/dist/plugins/walrus/spans.mjs.map +1 -0
- package/dist/plugins/walrus/storage-nodes.d.mts +6 -2
- package/dist/plugins/walrus/storage-nodes.mjs +15 -8
- package/dist/plugins/walrus/storage-nodes.mjs.map +1 -1
- package/dist/plugins/walrus/wal-swap.mjs +58 -15
- package/dist/plugins/walrus/wal-swap.mjs.map +1 -1
- package/dist/primitives/artifact-publisher.d.mts +1 -1
- package/dist/primitives/artifact-publisher.mjs +15 -0
- package/dist/primitives/artifact-publisher.mjs.map +1 -0
- package/dist/runtime/docker/client.mjs +17 -4
- package/dist/runtime/docker/client.mjs.map +1 -1
- package/dist/runtime/docker/container.mjs +219 -132
- package/dist/runtime/docker/container.mjs.map +1 -1
- package/dist/runtime/docker/errors.mjs +0 -6
- package/dist/runtime/docker/errors.mjs.map +1 -1
- package/dist/runtime/docker/exec.mjs +21 -18
- package/dist/runtime/docker/exec.mjs.map +1 -1
- package/dist/runtime/docker/image.mjs +36 -13
- package/dist/runtime/docker/image.mjs.map +1 -1
- package/dist/runtime/docker/index.mjs +14 -0
- package/dist/runtime/docker/inspect-and-decode.mjs +51 -0
- package/dist/runtime/docker/inspect-and-decode.mjs.map +1 -0
- package/dist/runtime/docker/inventory.mjs +14 -11
- package/dist/runtime/docker/inventory.mjs.map +1 -1
- package/dist/runtime/docker/labels.mjs +38 -5
- package/dist/runtime/docker/labels.mjs.map +1 -1
- package/dist/runtime/docker/logs.d.mts +1 -1
- package/dist/runtime/docker/logs.mjs.map +1 -1
- package/dist/runtime/docker/network.mjs +83 -47
- package/dist/runtime/docker/network.mjs.map +1 -1
- package/dist/runtime/docker/render-run-args.mjs +82 -0
- package/dist/runtime/docker/render-run-args.mjs.map +1 -0
- package/dist/runtime/docker/service.d.mts +1 -1
- package/dist/runtime/docker/service.mjs +12 -7
- package/dist/runtime/docker/service.mjs.map +1 -1
- package/dist/runtime/docker/sweep.mjs +118 -43
- package/dist/runtime/docker/sweep.mjs.map +1 -1
- package/dist/runtime/docker/volume.mjs +2 -0
- package/dist/runtime/docker/volume.mjs.map +1 -1
- package/dist/runtime/docker/wrap.mjs +30 -1
- package/dist/runtime/docker/wrap.mjs.map +1 -1
- package/dist/substrate/cross-process.mjs +14 -8
- package/dist/substrate/cross-process.mjs.map +1 -1
- package/dist/substrate/event-time.mjs +33 -0
- package/dist/substrate/event-time.mjs.map +1 -0
- package/dist/substrate/events.d.mts +28 -8
- package/dist/substrate/identity.d.mts +2 -1
- package/dist/substrate/manifest.d.mts +68 -5
- package/dist/substrate/manifest.mjs +34 -5
- package/dist/substrate/manifest.mjs.map +1 -1
- package/dist/substrate/network.d.mts +3 -5
- package/dist/substrate/options.d.mts +0 -2
- package/dist/substrate/plugin.d.mts +13 -0
- package/dist/substrate/plugin.mjs +4 -2
- package/dist/substrate/plugin.mjs.map +1 -1
- package/dist/substrate/projection.d.mts +35 -3
- package/dist/substrate/runtime/artifact-publisher/index.mjs +19 -9
- package/dist/substrate/runtime/artifact-publisher/index.mjs.map +1 -1
- package/dist/substrate/runtime/atomic-write.mjs +97 -32
- package/dist/substrate/runtime/atomic-write.mjs.map +1 -1
- package/dist/substrate/runtime/cache/index.mjs +3 -0
- package/dist/substrate/runtime/cache/schema.mjs +2 -2
- package/dist/substrate/runtime/cache/schema.mjs.map +1 -1
- package/dist/substrate/runtime/cache/service.mjs +9 -7
- package/dist/substrate/runtime/cache/service.mjs.map +1 -1
- package/dist/substrate/runtime/capability-sinks/index.d.mts +1 -1
- package/dist/substrate/runtime/capability-sinks/index.mjs +3 -0
- package/dist/substrate/runtime/capability-sinks/layer.mjs +1 -1
- package/dist/substrate/runtime/capability-sinks/service.d.mts +61 -2
- package/dist/substrate/runtime/capability-sinks/service.mjs +21 -26
- package/dist/substrate/runtime/capability-sinks/service.mjs.map +1 -1
- package/dist/substrate/runtime/config-validation.d.mts +1 -13
- package/dist/substrate/runtime/config-validation.mjs +2 -91
- package/dist/substrate/runtime/config-validation.mjs.map +1 -1
- package/dist/substrate/runtime/container-runtime.d.mts +1 -0
- package/dist/substrate/runtime/container-runtime.mjs +2 -0
- package/dist/substrate/runtime/control-plane/domain.mjs +101 -0
- package/dist/substrate/runtime/control-plane/domain.mjs.map +1 -0
- package/dist/substrate/runtime/control-plane/service.mjs +7 -0
- package/dist/substrate/runtime/control-plane/service.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs +46 -19
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs +30 -12
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/index.mjs +5 -0
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs +11 -2
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs +1 -1
- package/dist/substrate/runtime/cross-process/index.mjs +11 -0
- package/dist/substrate/runtime/cross-process/live-clock.mjs +34 -0
- package/dist/substrate/runtime/cross-process/live-clock.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/liveness.mjs +52 -10
- package/dist/substrate/runtime/cross-process/liveness.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/lock.d.mts +1 -0
- package/dist/substrate/runtime/cross-process/lock.mjs +23 -0
- package/dist/substrate/runtime/cross-process/lock.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/reclaim-stale-file.mjs +64 -0
- package/dist/substrate/runtime/cross-process/reclaim-stale-file.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/roster.mjs +97 -83
- package/dist/substrate/runtime/cross-process/roster.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/self-pid.mjs +8 -0
- package/dist/substrate/runtime/cross-process/self-pid.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs +24 -28
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs.map +1 -1
- package/dist/substrate/runtime/cross-process/stack-lock.mjs +41 -20
- package/dist/substrate/runtime/cross-process/stack-lock.mjs.map +1 -1
- package/dist/substrate/runtime/current-plugin.mjs +2 -2
- package/dist/substrate/runtime/current-plugin.mjs.map +1 -1
- package/dist/substrate/runtime/errors.mjs +12 -6
- package/dist/substrate/runtime/errors.mjs.map +1 -1
- package/dist/substrate/runtime/format-unknown-error.mjs +30 -0
- package/dist/substrate/runtime/format-unknown-error.mjs.map +1 -0
- package/dist/substrate/runtime/host-bind-mount-owner.mjs +10 -0
- package/dist/substrate/runtime/host-bind-mount-owner.mjs.map +1 -0
- package/dist/substrate/runtime/host-gateway.mjs +20 -0
- package/dist/substrate/runtime/host-gateway.mjs.map +1 -0
- package/dist/substrate/runtime/host-tree-tar/index.mjs +61 -50
- package/dist/substrate/runtime/host-tree-tar/index.mjs.map +1 -1
- package/dist/substrate/runtime/http-probe.d.mts +1 -1
- package/dist/substrate/runtime/index.mjs +14 -0
- package/dist/substrate/runtime/lease-broker/index.d.mts +1 -1
- package/dist/substrate/runtime/lease-broker/index.mjs +2 -0
- package/dist/substrate/runtime/lease-broker/service.d.mts +1 -64
- package/dist/substrate/runtime/lease-broker/service.mjs +1 -1
- package/dist/substrate/runtime/lease-broker/service.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs +22 -3
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/index.mjs +9 -0
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs +20 -3
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs +1 -1
- package/dist/substrate/runtime/lifecycle/signals.mjs +5 -5
- package/dist/substrate/runtime/lifecycle/signals.mjs.map +1 -1
- package/dist/substrate/runtime/lifecycle/state-machine.mjs +1 -1
- package/dist/substrate/runtime/managed-container.d.mts +19 -1
- package/dist/substrate/runtime/managed-container.mjs +20 -1
- package/dist/substrate/runtime/managed-container.mjs.map +1 -1
- package/dist/substrate/runtime/manifest/index.mjs +3 -0
- package/dist/substrate/runtime/manifest/manifest.mjs +15 -11
- package/dist/substrate/runtime/manifest/manifest.mjs.map +1 -1
- package/dist/substrate/runtime/mode-errors.mjs +20 -0
- package/dist/substrate/runtime/mode-errors.mjs.map +1 -0
- package/dist/substrate/runtime/observability/cascade-formatter.mjs +9 -13
- package/dist/substrate/runtime/observability/cascade-formatter.mjs.map +1 -1
- package/dist/substrate/runtime/observability/formatter-registry.mjs +19 -36
- package/dist/substrate/runtime/observability/formatter-registry.mjs.map +1 -1
- package/dist/substrate/runtime/observability/ignore-with-log.d.mts +1 -0
- package/dist/substrate/runtime/observability/ignore-with-log.mjs +17 -0
- package/dist/substrate/runtime/observability/ignore-with-log.mjs.map +1 -0
- package/dist/substrate/runtime/observability/index.d.mts +1 -1
- package/dist/substrate/runtime/observability/index.mjs +13 -0
- package/dist/substrate/runtime/observability/log-store.d.mts +1 -0
- package/dist/substrate/runtime/observability/log-store.mjs +175 -0
- package/dist/substrate/runtime/observability/log-store.mjs.map +1 -0
- package/dist/substrate/runtime/observability/logger.d.mts +2 -1
- package/dist/substrate/runtime/observability/logger.mjs +5 -9
- package/dist/substrate/runtime/observability/logger.mjs.map +1 -1
- package/dist/substrate/runtime/observability/output-truncate.mjs +35 -0
- package/dist/substrate/runtime/observability/output-truncate.mjs.map +1 -0
- package/dist/substrate/runtime/observability/pretty-error.mjs +9 -12
- package/dist/substrate/runtime/observability/pretty-error.mjs.map +1 -1
- package/dist/substrate/runtime/observability/redaction.d.mts +2 -13
- package/dist/substrate/runtime/observability/redaction.mjs +8 -14
- package/dist/substrate/runtime/observability/redaction.mjs.map +1 -1
- package/dist/substrate/runtime/observability/span-store.d.mts +1 -0
- package/dist/substrate/runtime/observability/span-store.mjs +110 -0
- package/dist/substrate/runtime/observability/span-store.mjs.map +1 -0
- package/dist/substrate/runtime/observability/spans.mjs +14 -14
- package/dist/substrate/runtime/observability/spans.mjs.map +1 -1
- package/dist/substrate/runtime/observability/subprocess-capture.mjs +1 -1
- package/dist/substrate/runtime/passthrough-or-wrap.mjs +33 -0
- package/dist/substrate/runtime/passthrough-or-wrap.mjs.map +1 -0
- package/dist/substrate/runtime/paths.d.mts +1 -1
- package/dist/substrate/runtime/paths.mjs +4 -3
- package/dist/substrate/runtime/paths.mjs.map +1 -1
- package/dist/substrate/runtime/phase-preserving-produce.mjs +40 -0
- package/dist/substrate/runtime/phase-preserving-produce.mjs.map +1 -0
- package/dist/substrate/runtime/port-broker/index.mjs +3 -0
- package/dist/substrate/runtime/port-broker/service.mjs +170 -126
- package/dist/substrate/runtime/port-broker/service.mjs.map +1 -1
- package/dist/substrate/runtime/post-acquire-tasks.mjs +1 -1
- package/dist/substrate/runtime/post-acquire-tasks.mjs.map +1 -1
- package/dist/substrate/runtime/probes.d.mts +7 -5
- package/dist/substrate/runtime/probes.mjs +3 -1
- package/dist/substrate/runtime/probes.mjs.map +1 -1
- package/dist/substrate/runtime/projection/index.mjs +4 -0
- package/dist/substrate/runtime/projection/operational-endpoints.mjs +1 -2
- package/dist/substrate/runtime/projection/operational-endpoints.mjs.map +1 -1
- package/dist/substrate/runtime/projection/persisted.mjs +33 -15
- package/dist/substrate/runtime/projection/persisted.mjs.map +1 -1
- package/dist/substrate/runtime/projection/state-ref.mjs +26 -2
- package/dist/substrate/runtime/projection/state-ref.mjs.map +1 -1
- package/dist/substrate/runtime/projection/update.mjs +88 -24
- package/dist/substrate/runtime/projection/update.mjs.map +1 -1
- package/dist/substrate/runtime/random-suffix.mjs +11 -0
- package/dist/substrate/runtime/random-suffix.mjs.map +1 -0
- package/dist/substrate/runtime/retry-policy.d.mts +59 -1
- package/dist/substrate/runtime/retry-policy.mjs +66 -1
- package/dist/substrate/runtime/retry-policy.mjs.map +1 -1
- package/dist/substrate/runtime/routed-url.d.mts +1 -0
- package/dist/substrate/runtime/routed-url.mjs +79 -0
- package/dist/substrate/runtime/routed-url.mjs.map +1 -0
- package/dist/substrate/runtime/runtime-decode.d.mts +1 -1
- package/dist/substrate/runtime/runtime-decode.mjs.map +1 -1
- package/dist/substrate/runtime/scoped-http-server.mjs +2 -3
- package/dist/substrate/runtime/scoped-http-server.mjs.map +1 -1
- package/dist/substrate/runtime/scoped-multimap/index.mjs +2 -0
- package/dist/substrate/runtime/scoped-multimap/service.mjs +52 -0
- package/dist/substrate/runtime/scoped-multimap/service.mjs.map +1 -0
- package/dist/substrate/runtime/scoped-ref-map/index.mjs +2 -0
- package/dist/substrate/runtime/scoped-ref-map/service.mjs +2 -2
- package/dist/substrate/runtime/scoped-ref-map/service.mjs.map +1 -1
- package/dist/substrate/runtime/stage-and-swap/index.mjs +72 -4
- package/dist/substrate/runtime/stage-and-swap/index.mjs.map +1 -1
- package/dist/substrate/runtime/state-store/index.d.mts +1 -0
- package/dist/substrate/runtime/state-store/index.mjs +3 -0
- package/dist/substrate/runtime/state-store/schema.d.mts +1 -0
- package/dist/substrate/runtime/state-store/schema.mjs +19 -14
- package/dist/substrate/runtime/state-store/schema.mjs.map +1 -1
- package/dist/substrate/runtime/state-store/service.d.mts +1 -0
- package/dist/substrate/runtime/state-store/service.mjs +145 -0
- package/dist/substrate/runtime/state-store/service.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-keyed-strategy-for.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-keyed-strategy-for.mjs +33 -0
- package/dist/substrate/runtime/strategy-registry/chain-keyed-strategy-for.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs +1 -1
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs.map +1 -1
- package/dist/substrate/runtime/strategy-registry/index.mjs +4 -0
- package/dist/substrate/runtime/strategy-registry/service.mjs +19 -33
- package/dist/substrate/runtime/strategy-registry/service.mjs.map +1 -1
- package/dist/substrate/runtime/subnet-broker.mjs +60 -0
- package/dist/substrate/runtime/subnet-broker.mjs.map +1 -0
- package/dist/substrate/runtime/sui-execute/index.d.mts +21 -1
- package/dist/substrate/runtime/sui-execute/index.mjs +84 -20
- package/dist/substrate/runtime/sui-execute/index.mjs.map +1 -1
- package/dist/substrate/runtime/sui-execute/sign-and-dispatch.d.mts +1 -0
- package/dist/substrate/runtime/sui-execute/sign-and-dispatch.mjs +32 -0
- package/dist/substrate/runtime/sui-execute/sign-and-dispatch.mjs.map +1 -0
- package/dist/substrate/runtime/sui-ledger/object-ref.mjs +32 -0
- package/dist/substrate/runtime/sui-ledger/object-ref.mjs.map +1 -0
- package/dist/substrate/runtime/sui-move-build/index.mjs +93 -19
- package/dist/substrate/runtime/sui-move-build/index.mjs.map +1 -1
- package/dist/substrate/runtime/supervisor/acquire-node.mjs +181 -0
- package/dist/substrate/runtime/supervisor/acquire-node.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/background-tasks.mjs +144 -0
- package/dist/substrate/runtime/supervisor/background-tasks.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/command-loop.mjs +68 -0
- package/dist/substrate/runtime/supervisor/command-loop.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/dispatch-contributions.mjs +151 -0
- package/dist/substrate/runtime/supervisor/dispatch-contributions.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/errors.d.mts +1 -0
- package/dist/substrate/runtime/supervisor/errors.mjs +9 -0
- package/dist/substrate/runtime/supervisor/errors.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/index.d.mts +1 -0
- package/dist/substrate/runtime/supervisor/index.mjs +3 -0
- package/dist/substrate/runtime/supervisor/shutdown.mjs +51 -0
- package/dist/substrate/runtime/supervisor/shutdown.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/start-supervisor.d.mts +1 -0
- package/dist/substrate/runtime/supervisor/start-supervisor.mjs +250 -0
- package/dist/substrate/runtime/supervisor/start-supervisor.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/state.d.mts +1 -0
- package/dist/substrate/runtime/supervisor/state.mjs +22 -0
- package/dist/substrate/runtime/supervisor/state.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/teardown.mjs +57 -0
- package/dist/substrate/runtime/supervisor/teardown.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor/types.d.mts +1 -0
- package/dist/substrate/runtime/supervisor/wiring.mjs +133 -0
- package/dist/substrate/runtime/supervisor/wiring.mjs.map +1 -0
- package/dist/substrate/runtime/typed-env.mjs +8 -0
- package/dist/substrate/runtime/typed-env.mjs.map +1 -0
- package/dist/substrate/state-store.d.mts +1 -0
- package/dist/substrate/versioned-doc-schema.mjs +17 -0
- package/dist/substrate/versioned-doc-schema.mjs.map +1 -0
- package/dist/substrate/versioned-doc-sync.mjs +94 -0
- package/dist/substrate/versioned-doc-sync.mjs.map +1 -0
- package/dist/surfaces/cli/command-tree.mjs.map +1 -1
- package/dist/surfaces/cli/commands/index.mjs +9 -0
- package/dist/surfaces/cli/commands/prune-picker-entry.mjs +13 -0
- package/dist/surfaces/cli/commands/prune-picker-entry.mjs.map +1 -0
- package/dist/surfaces/cli/commands/prune-picker.mjs +3 -2
- package/dist/surfaces/cli/commands/prune-picker.mjs.map +1 -1
- package/dist/surfaces/cli/commands/prune.mjs +34 -17
- package/dist/surfaces/cli/commands/prune.mjs.map +1 -1
- package/dist/surfaces/cli/commands/status.mjs +2 -2
- package/dist/surfaces/cli/commands/status.mjs.map +1 -1
- package/dist/surfaces/cli/commands/supervisor-presence.mjs +5 -3
- package/dist/surfaces/cli/commands/supervisor-presence.mjs.map +1 -1
- package/dist/surfaces/cli/commands/wipe.mjs +38 -4
- package/dist/surfaces/cli/commands/wipe.mjs.map +1 -1
- package/dist/surfaces/cli/errors.mjs +1 -1
- package/dist/surfaces/cli/errors.mjs.map +1 -1
- package/dist/surfaces/cli/flags.mjs +0 -1
- package/dist/surfaces/cli/flags.mjs.map +1 -1
- package/dist/surfaces/cli/index.mjs +98 -18
- package/dist/surfaces/cli/index.mjs.map +1 -1
- package/dist/surfaces/cli/output.mjs +1 -0
- package/dist/surfaces/cli/output.mjs.map +1 -1
- package/dist/surfaces/cli/sysexits.mjs +2 -1
- package/dist/surfaces/cli/sysexits.mjs.map +1 -1
- package/dist/surfaces/tui/app.mjs +25 -3
- package/dist/surfaces/tui/app.mjs.map +1 -1
- package/dist/surfaces/tui/display-derivation.mjs +23 -74
- package/dist/surfaces/tui/display-derivation.mjs.map +1 -1
- package/dist/surfaces/tui/event-log.mjs +35 -23
- package/dist/surfaces/tui/event-log.mjs.map +1 -1
- package/dist/surfaces/tui/input.mjs +5 -1
- package/dist/surfaces/tui/input.mjs.map +1 -1
- package/dist/surfaces/tui/plain-renderer.mjs +70 -34
- package/dist/surfaces/tui/plain-renderer.mjs.map +1 -1
- package/package.json +24 -4
- package/dist/contracts/liveness-classifier.d.mts +0 -19
- package/dist/contracts/network-resolver.d.mts +0 -15
- package/dist/contracts/network-resolver.mjs +0 -7
- package/dist/contracts/network-resolver.mjs.map +0 -1
- package/dist/orchestrators/codegen/extras.mjs +0 -16
- package/dist/orchestrators/codegen/extras.mjs.map +0 -1
- package/dist/plugins/deepbook/routable.mjs +0 -21
- package/dist/plugins/deepbook/routable.mjs.map +0 -1
- package/dist/plugins/faucet/service.d.mts +0 -20
- package/dist/plugins/faucet/strategies/sui-local.d.mts +0 -23
- package/dist/plugins/faucet/strategies/sui-local.mjs.map +0 -1
- package/dist/plugins/sui/seed-objects.d.mts +0 -18
- package/dist/plugins/sui/seed-objects.mjs +0 -25
- package/dist/plugins/sui/seed-objects.mjs.map +0 -1
- package/dist/runtime/built-in-plugin-layers.mjs.map +0 -1
- package/dist/substrate/runtime/context-helpers.mjs +0 -32
- package/dist/substrate/runtime/context-helpers.mjs.map +0 -1
- package/dist/substrate/runtime/run.mjs.map +0 -1
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.mjs +0 -30
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.mjs.map +0 -1
- package/dist/substrate/runtime/supervisor.d.mts +0 -1
- package/dist/substrate/runtime/supervisor.mjs +0 -831
- package/dist/substrate/runtime/supervisor.mjs.map +0 -1
- package/dist/surfaces/cli/commands/doctor-probes.mjs.map +0 -1
- /package/dist/{substrate/runtime/strategy-registry/faucet-capability-for.d.mts → plugins/faucet/http.d.mts} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region src/contracts/plugin-expander.ts
|
|
2
|
+
/** Globally registered symbol the composer probes for on every
|
|
3
|
+
* member. `Symbol.for(...)` avoids leaking a `unique symbol` identity
|
|
4
|
+
* into inferred Stack types (TS2742). */
|
|
5
|
+
const PLUGIN_EXPANDER = Symbol.for("@devstack/contracts/plugin-expander");
|
|
6
|
+
/** Read the expander hook from a member. Returns `undefined` when no
|
|
7
|
+
* hook is attached — the composer leaves the member alone in that
|
|
8
|
+
* case. */
|
|
9
|
+
const readPluginExpander = (member) => {
|
|
10
|
+
const slot = member[PLUGIN_EXPANDER];
|
|
11
|
+
return typeof slot === "function" ? slot : void 0;
|
|
12
|
+
};
|
|
13
|
+
/** Attach an expander hook to a placeholder member. The symbol is
|
|
14
|
+
* written as a value-level property only — plugin factories MUST NOT
|
|
15
|
+
* surface the hook on the member's TS return type or the symbol
|
|
16
|
+
* identity leaks into inferred Stack types. */
|
|
17
|
+
const attachPluginExpander = (placeholder, expander) => {
|
|
18
|
+
placeholder[PLUGIN_EXPANDER] = expander;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Run every registered expander once. Iterates the member tuple, finds
|
|
22
|
+
* placeholders carrying a `PluginExpander`, and substitutes each with
|
|
23
|
+
* the expander's resolved member. Members without a hook pass through
|
|
24
|
+
* unchanged.
|
|
25
|
+
*
|
|
26
|
+
* Returns the input array verbatim (zero allocation) when no member
|
|
27
|
+
* carries an expander — the explicit-tuple path remains the common case.
|
|
28
|
+
*
|
|
29
|
+
* **Single-pass contract.** This pass is single-shot: it scans the input
|
|
30
|
+
* tuple once and substitutes in place. If an expander returns a member
|
|
31
|
+
* that ITSELF carries `PLUGIN_EXPANDER`, that nested expander does NOT
|
|
32
|
+
* fire — `runPluginExpanders` does not recurse. The composer is
|
|
33
|
+
* responsible for re-invoking both `runPluginExpanders` and
|
|
34
|
+
* `expandPluginDependencies` until fixed-point (typically: run expanders,
|
|
35
|
+
* then re-run dependency closure so the now-resolved edges fold into the
|
|
36
|
+
* member tuple; loop until neither pass produces a change). Keeping this
|
|
37
|
+
* module ignorant of fixpoint policy means the substrate decides how
|
|
38
|
+
* many iterations are allowed and what counts as convergence.
|
|
39
|
+
*/
|
|
40
|
+
const runPluginExpanders = (members) => {
|
|
41
|
+
let hasAny = false;
|
|
42
|
+
for (const m of members) if (readPluginExpander(m) !== void 0) {
|
|
43
|
+
hasAny = true;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
if (!hasAny) return members;
|
|
47
|
+
return members.map((m) => {
|
|
48
|
+
const expand = readPluginExpander(m);
|
|
49
|
+
return expand === void 0 ? m : expand(members);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
/** True when the placeholder + replacement form an expansion pair —
|
|
53
|
+
* same id, at least one side carries the expander hook. Used by the
|
|
54
|
+
* composer's duplicate-provider check to allow the "placeholder + its
|
|
55
|
+
* expanded form" pair (both share an id by construction). */
|
|
56
|
+
const isPluginExpanderPair = (a, b) => a.id === b.id && (readPluginExpander(a) !== void 0 || readPluginExpander(b) !== void 0);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { attachPluginExpander, isPluginExpanderPair, runPluginExpanders };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=plugin-expander.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-expander.mjs","names":[],"sources":["../../src/contracts/plugin-expander.ts"],"sourcesContent":["// PluginExpander — compose-time plugin-rewrite contract.\n//\n// Some plugins cannot know their final `dependsOn` tuple at their\n// factory's call site because the relevant members are introduced\n// LATER (positionally, to `defineDevstack(...)`). The wallet's\n// `accounts: 'all'` mode is the canonical case: the wallet's hard\n// ordering edge against every account member is required, but the\n// wallet factory has no view of which accounts the user passes in.\n//\n// The fix is a compose-time rewrite: the plugin returns a PLACEHOLDER\n// member carrying an expander hook at a substrate-owned well-known\n// symbol; the composer detects the symbol, calls the expander with the\n// full member tuple, and substitutes the result. This module owns\n// that symbol + expander shape so the composer does not import any\n// plugin module to perform the rewrite.\n//\n// Architecture (Plugin-author surface = user-surface): any plugin\n// — built-in or custom — that needs this rewrite attaches the same\n// substrate-owned symbol with the same expander shape. The composer\n// dispatches uniformly; no per-plugin special-case lives in\n// `api/define-devstack.ts`.\n//\n// Note: this is a COMPOSE-TIME hook, distinct from the runtime\n// `CapabilitySinks` harvest path. Capability sinks dispatch\n// contributions AFTER plugin acquire; expanders run BEFORE the\n// supervisor sees the member list at all. Both surfaces are\n// substrate-owned but they fire at different times.\n\nimport type { AnyPlugin } from '../substrate/plugin.ts';\n\n/** Globally registered symbol the composer probes for on every\n * member. `Symbol.for(...)` avoids leaking a `unique symbol` identity\n * into inferred Stack types (TS2742). */\nexport const PLUGIN_EXPANDER: symbol = Symbol.for('@devstack/contracts/plugin-expander');\n\n/** Compose-time expander closure. Receives the FULL composed-member\n * tuple (post-dependency-closure expansion) and returns the member\n * the composer should substitute for the placeholder. The substrate\n * treats the closure opaquely — plugin authors interpret `members`\n * through whatever filter matches their domain (the wallet picks\n * members whose id starts with `account/`; a hypothetical role-based\n * expander would pick members by `role` or by capability). */\nexport type PluginExpander = (members: ReadonlyArray<AnyPlugin>) => AnyPlugin;\n\n/** Read the expander hook from a member. Returns `undefined` when no\n * hook is attached — the composer leaves the member alone in that\n * case. */\nexport const readPluginExpander = (member: AnyPlugin): PluginExpander | undefined => {\n\tconst slot = (member as unknown as Record<symbol, unknown>)[PLUGIN_EXPANDER];\n\treturn typeof slot === 'function' ? (slot as PluginExpander) : undefined;\n};\n\n/** Attach an expander hook to a placeholder member. The symbol is\n * written as a value-level property only — plugin factories MUST NOT\n * surface the hook on the member's TS return type or the symbol\n * identity leaks into inferred Stack types. */\nexport const attachPluginExpander = (placeholder: AnyPlugin, expander: PluginExpander): void => {\n\t(placeholder as unknown as Record<symbol, unknown>)[PLUGIN_EXPANDER] = expander;\n};\n\n/**\n * Run every registered expander once. Iterates the member tuple, finds\n * placeholders carrying a `PluginExpander`, and substitutes each with\n * the expander's resolved member. Members without a hook pass through\n * unchanged.\n *\n * Returns the input array verbatim (zero allocation) when no member\n * carries an expander — the explicit-tuple path remains the common case.\n *\n * **Single-pass contract.** This pass is single-shot: it scans the input\n * tuple once and substitutes in place. If an expander returns a member\n * that ITSELF carries `PLUGIN_EXPANDER`, that nested expander does NOT\n * fire — `runPluginExpanders` does not recurse. The composer is\n * responsible for re-invoking both `runPluginExpanders` and\n * `expandPluginDependencies` until fixed-point (typically: run expanders,\n * then re-run dependency closure so the now-resolved edges fold into the\n * member tuple; loop until neither pass produces a change). Keeping this\n * module ignorant of fixpoint policy means the substrate decides how\n * many iterations are allowed and what counts as convergence.\n */\nexport const runPluginExpanders = (members: ReadonlyArray<AnyPlugin>): ReadonlyArray<AnyPlugin> => {\n\tlet hasAny = false;\n\tfor (const m of members) {\n\t\tif (readPluginExpander(m) !== undefined) {\n\t\t\thasAny = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (!hasAny) return members;\n\n\treturn members.map((m) => {\n\t\tconst expand = readPluginExpander(m);\n\t\treturn expand === undefined ? m : expand(members);\n\t});\n};\n\n/** True when the placeholder + replacement form an expansion pair —\n * same id, at least one side carries the expander hook. Used by the\n * composer's duplicate-provider check to allow the \"placeholder + its\n * expanded form\" pair (both share an id by construction). */\nexport const isPluginExpanderPair = (a: AnyPlugin, b: AnyPlugin): boolean =>\n\ta.id === b.id && (readPluginExpander(a) !== undefined || readPluginExpander(b) !== undefined);\n"],"mappings":";;;;AAiCA,MAAa,kBAA0B,OAAO,IAAI,sCAAsC;;;;AAcxF,MAAa,sBAAsB,WAAkD;CACpF,MAAM,OAAQ,OAA8C;AAC5D,QAAO,OAAO,SAAS,aAAc,OAA0B,KAAA;;;;;;AAOhE,MAAa,wBAAwB,aAAwB,aAAmC;AAC9F,aAAmD,mBAAmB;;;;;;;;;;;;;;;;;;;;;;AAuBxE,MAAa,sBAAsB,YAAgE;CAClG,IAAI,SAAS;AACb,MAAK,MAAM,KAAK,QACf,KAAI,mBAAmB,EAAE,KAAK,KAAA,GAAW;AACxC,WAAS;AACT;;AAGF,KAAI,CAAC,OAAQ,QAAO;AAEpB,QAAO,QAAQ,KAAK,MAAM;EACzB,MAAM,SAAS,mBAAmB,EAAE;AACpC,SAAO,WAAW,KAAA,IAAY,IAAI,OAAO,QAAQ;GAChD;;;;;;AAOH,MAAa,wBAAwB,GAAc,MAClD,EAAE,OAAO,EAAE,OAAO,mBAAmB,EAAE,KAAK,KAAA,KAAa,mBAAmB,EAAE,KAAK,KAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { EngineEvent } from "../substrate/events.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/contracts/projection.d.ts
|
|
4
|
+
/** The single name-blind projection event variant. Plugin authors
|
|
5
|
+
* build a `ProjectionDecl` carrying one of these; the substrate
|
|
6
|
+
* routes it to the projection orchestrator, which decodes the
|
|
7
|
+
* opaque `payload` per `kind`. */
|
|
4
8
|
type ProjectionEvent = Extract<EngineEvent, {
|
|
5
|
-
readonly tag: '
|
|
6
|
-
}> | Extract<EngineEvent, {
|
|
7
|
-
readonly tag: 'package.updated';
|
|
9
|
+
readonly tag: 'projection.updated';
|
|
8
10
|
}>;
|
|
9
11
|
interface ProjectionDecl {
|
|
10
12
|
readonly kind: 'projection';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SubscribableState } from "../substrate/projection.mjs";
|
|
2
|
+
import { EngineEvent } from "../substrate/events.mjs";
|
|
3
|
+
import { Effect, Scope, Stream, SubscriptionRef } from "effect";
|
|
4
|
+
|
|
5
|
+
//#region src/contracts/renderer.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Renderer contract — TUI, plain, silent all satisfy this. The
|
|
8
|
+
* renderer subscribes to the live event stream OR samples the
|
|
9
|
+
* subscribable state-ref; the engine never sees the renderer's
|
|
10
|
+
* choice.
|
|
11
|
+
*/
|
|
12
|
+
interface Renderer {
|
|
13
|
+
readonly mount: (stateRef: SubscriptionRef.SubscriptionRef<SubscribableState>, events: Stream.Stream<EngineEvent, never>) => Effect.Effect<void, RendererError, Scope.Scope>;
|
|
14
|
+
readonly flush: Effect.Effect<void, RendererError>;
|
|
15
|
+
}
|
|
16
|
+
interface RendererError {
|
|
17
|
+
readonly _tag: 'RendererError';
|
|
18
|
+
readonly reason: 'mount-failed' | 'subscription-lost';
|
|
19
|
+
readonly detail: string;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Renderer, RendererError };
|
|
23
|
+
//# sourceMappingURL=renderer.d.mts.map
|
|
@@ -33,6 +33,10 @@ interface RoutableBase {
|
|
|
33
33
|
readonly endpointName: string;
|
|
34
34
|
readonly dispatchId: DispatchId;
|
|
35
35
|
readonly upstream: RoutableUpstream;
|
|
36
|
+
/** Routes whose upstream starts after capability harvest can publish
|
|
37
|
+
* their dispatch file without waiting for the public proxy to serve
|
|
38
|
+
* the backend during route contribution. */
|
|
39
|
+
readonly readiness?: 'deferred';
|
|
36
40
|
}
|
|
37
41
|
/** HTTP variant — Host-header dispatched, CORS-aware. */
|
|
38
42
|
interface RoutableHttpDecl extends RoutableBase {
|
|
@@ -48,6 +52,15 @@ interface RoutableTcpDecl extends RoutableBase {
|
|
|
48
52
|
}
|
|
49
53
|
/** Routable declaration. Plugin emits one per endpoint it serves. */
|
|
50
54
|
type RoutableDecl = RoutableHttpDecl | RoutableTcpDecl;
|
|
55
|
+
/** A plugin-owned router entrypoint declaration: the public listener
|
|
56
|
+
* name, host port, and wire family that a Routable endpoint may
|
|
57
|
+
* reference by `endpointName`. The router orchestrator owns registry
|
|
58
|
+
* validation and collision checks; plugins own these names. */
|
|
59
|
+
interface EntrypointDecl {
|
|
60
|
+
readonly name: string;
|
|
61
|
+
readonly port: number;
|
|
62
|
+
readonly protocol: 'http' | 'h2c' | 'tcp';
|
|
63
|
+
}
|
|
51
64
|
//#endregion
|
|
52
|
-
export { DevstackRoutableUpstreamRegistry, DispatchId, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind };
|
|
65
|
+
export { DevstackRoutableUpstreamRegistry, DispatchId, EntrypointDecl, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind };
|
|
53
66
|
//# sourceMappingURL=routable.d.mts.map
|
|
@@ -9,13 +9,32 @@ interface ContainerLabelTuple {
|
|
|
9
9
|
readonly plugin: string;
|
|
10
10
|
readonly role: string;
|
|
11
11
|
}
|
|
12
|
+
/** A JSON-serializable value allowed inside an identity contribution.
|
|
13
|
+
* Excludes functions, symbols, undefined-valued slots inside objects,
|
|
14
|
+
* and class instances (anything `JSON.stringify` would drop or
|
|
15
|
+
* stringify lossy). */
|
|
16
|
+
type IdentityContributionValue = string | number | boolean | null | ReadonlyArray<IdentityContributionValue> | {
|
|
17
|
+
readonly [field: string]: IdentityContributionValue | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** Identity contribution shape returned by `preRestore`. Plugins MUST
|
|
20
|
+
* use a string-literal `kind` and JSON-serializable values; see the
|
|
21
|
+
* top-of-file convention section. The `[field]` index signature is
|
|
22
|
+
* permissive so existing payloads with `ReadonlyArray<string>` or
|
|
23
|
+
* nested object fields (e.g. postgres's `databases`) typecheck without
|
|
24
|
+
* per-plugin schema duplication. */
|
|
25
|
+
interface IdentityContributionShape {
|
|
26
|
+
readonly kind: string;
|
|
27
|
+
readonly [field: string]: IdentityContributionValue | undefined;
|
|
28
|
+
}
|
|
12
29
|
/** Capture descriptor: zero or more subtrees + managed containers +
|
|
13
30
|
* optional typed metadata slice. */
|
|
14
31
|
interface SnapshotableDecl {
|
|
15
32
|
readonly kind: 'snapshotable';
|
|
16
33
|
/** Host-tree subtrees, relative to the substrate's runtime-dir
|
|
17
34
|
* root. Auto-included subtrees under `runtime/<plugin-key>/`
|
|
18
|
-
* are added by the substrate; this list is opt-in extras.
|
|
35
|
+
* are added by the substrate; this list is opt-in extras. See
|
|
36
|
+
* the top-of-file "Subtree convention" section for trailing-slash
|
|
37
|
+
* + file-path rules. */
|
|
19
38
|
readonly subtrees: ReadonlyArray<string>;
|
|
20
39
|
/** Managed containers identified by label tuples — orchestrator
|
|
21
40
|
* is name-blind. */
|
|
@@ -24,8 +43,11 @@ interface SnapshotableDecl {
|
|
|
24
43
|
* Default is "pause container"; postgres / RocksDB declare
|
|
25
44
|
* longer grace. */
|
|
26
45
|
readonly quiesce?: Effect.Effect<void, never, Scope.Scope>;
|
|
27
|
-
/** Pre-restore hook: contribute to the identity guard.
|
|
28
|
-
|
|
46
|
+
/** Pre-restore hook: contribute to the identity guard. The returned
|
|
47
|
+
* object is JSON-stringified to derive a stable comparison string.
|
|
48
|
+
* See `IdentityContributionShape` + the top-of-file convention
|
|
49
|
+
* section for the required shape. */
|
|
50
|
+
readonly preRestore?: Effect.Effect<IdentityContributionShape, never>;
|
|
29
51
|
/** Post-restore hook. */
|
|
30
52
|
readonly postRestore?: Effect.Effect<void, never>;
|
|
31
53
|
/** Missing-tolerance flag: is absence on restore fatal or fine? */
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/contracts/wallet-protocol.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Canonical path constants under the `/api/v1/devstack/*` prefix.
|
|
4
|
+
*
|
|
5
|
+
* Distilled-doc note (15-wallet.md "Fork-control routes declared but
|
|
6
|
+
* unimplemented"): the legacy server declared four `FORK_*` path
|
|
7
|
+
* constants whose handlers never landed. Per "no compat for never-
|
|
8
|
+
* cases", we drop them from the wire protocol entirely — when the
|
|
9
|
+
* fork-control surface is wired, those routes will be added (and the
|
|
10
|
+
* dev-wallet adapter shipped together). No half-done stubs.
|
|
11
|
+
*/
|
|
12
|
+
declare const WalletHttpPath: {
|
|
13
|
+
readonly HEALTH: "/api/v1/devstack/health";
|
|
14
|
+
readonly ACCOUNTS: "/api/v1/devstack/accounts";
|
|
15
|
+
readonly SIGN_TRANSACTION: "/api/v1/devstack/sign-transaction";
|
|
16
|
+
readonly SIGN_PERSONAL_MESSAGE: "/api/v1/devstack/sign-personal-message";
|
|
17
|
+
};
|
|
18
|
+
type WalletHttpPathValue = (typeof WalletHttpPath)[keyof typeof WalletHttpPath];
|
|
19
|
+
/** Prefix gate: ANY path under this prefix is treated as protocol traffic
|
|
20
|
+
* (and subject to mandatory Origin + bearer); anything else is a flat
|
|
21
|
+
* 404. */
|
|
22
|
+
declare const WALLET_PROTOCOL_PREFIX: "/api/v1/devstack/";
|
|
23
|
+
declare const WALLET_AUTH_HEADER: "authorization";
|
|
24
|
+
declare const WALLET_BEARER_PREFIX: "Bearer ";
|
|
25
|
+
/** URL-fragment key the pair-URL carries the token under
|
|
26
|
+
* (`<wallet-url>/#token=<32-hex>`). Fragments are not sent to the
|
|
27
|
+
* server, so the token never appears in access logs / referrers. */
|
|
28
|
+
declare const WALLET_TOKEN_FRAGMENT_KEY: "token";
|
|
29
|
+
/** Constant carried token byte length (16 random bytes → 32 hex chars).
|
|
30
|
+
* The on-disk token file is rejected + re-minted if it doesn't match. */
|
|
31
|
+
declare const WALLET_TOKEN_HEX_LENGTH: 32;
|
|
32
|
+
/** Canonical endpoint name. The router orchestrator surfaces this in
|
|
33
|
+
* the manifest under `endpoints['wallet-app']`; downstream consumers
|
|
34
|
+
* (codegen, TUI, doctor) read it by this key.
|
|
35
|
+
*
|
|
36
|
+
* Stable across rewrite + legacy so existing consumers don't break. */
|
|
37
|
+
declare const WALLET_ENDPOINT_NAME: "wallet-app";
|
|
38
|
+
/** Conventional short endpoint key for the wallet plugin. Matches the
|
|
39
|
+
* substrate's `EndpointKey` brand. Build integrations (Playwright,
|
|
40
|
+
* vitest helpers) and the conventional-routes alias table look the
|
|
41
|
+
* endpoint up under this key; the substrate's alias resolver folds
|
|
42
|
+
* `'wallet'` → `WALLET_ENDPOINT_NAME` (`'wallet-app'`) before
|
|
43
|
+
* consulting the manifest.
|
|
44
|
+
*
|
|
45
|
+
* Paired with the canonical name so both stay in lockstep when the
|
|
46
|
+
* plugin's HTTP server is renamed; the L5 conventional-routes table
|
|
47
|
+
* consumes the same constant so there is exactly one source of
|
|
48
|
+
* truth. */
|
|
49
|
+
declare const WALLET_ENDPOINT_KEY: "wallet";
|
|
50
|
+
//#endregion
|
|
51
|
+
export { WALLET_AUTH_HEADER, WALLET_BEARER_PREFIX, WALLET_ENDPOINT_KEY, WALLET_ENDPOINT_NAME, WALLET_PROTOCOL_PREFIX, WALLET_TOKEN_FRAGMENT_KEY, WALLET_TOKEN_HEX_LENGTH, WalletHttpPath, WalletHttpPathValue };
|
|
52
|
+
//# sourceMappingURL=wallet-protocol.d.mts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/contracts/wallet-protocol.ts
|
|
2
|
+
/**
|
|
3
|
+
* Canonical path constants under the `/api/v1/devstack/*` prefix.
|
|
4
|
+
*
|
|
5
|
+
* Distilled-doc note (15-wallet.md "Fork-control routes declared but
|
|
6
|
+
* unimplemented"): the legacy server declared four `FORK_*` path
|
|
7
|
+
* constants whose handlers never landed. Per "no compat for never-
|
|
8
|
+
* cases", we drop them from the wire protocol entirely — when the
|
|
9
|
+
* fork-control surface is wired, those routes will be added (and the
|
|
10
|
+
* dev-wallet adapter shipped together). No half-done stubs.
|
|
11
|
+
*/
|
|
12
|
+
const WalletHttpPath = {
|
|
13
|
+
HEALTH: "/api/v1/devstack/health",
|
|
14
|
+
ACCOUNTS: "/api/v1/devstack/accounts",
|
|
15
|
+
SIGN_TRANSACTION: "/api/v1/devstack/sign-transaction",
|
|
16
|
+
SIGN_PERSONAL_MESSAGE: "/api/v1/devstack/sign-personal-message"
|
|
17
|
+
};
|
|
18
|
+
/** Prefix gate: ANY path under this prefix is treated as protocol traffic
|
|
19
|
+
* (and subject to mandatory Origin + bearer); anything else is a flat
|
|
20
|
+
* 404. */
|
|
21
|
+
const WALLET_PROTOCOL_PREFIX = "/api/v1/devstack/";
|
|
22
|
+
const WALLET_AUTH_HEADER = "authorization";
|
|
23
|
+
const WALLET_BEARER_PREFIX = "Bearer ";
|
|
24
|
+
/** URL-fragment key the pair-URL carries the token under
|
|
25
|
+
* (`<wallet-url>/#token=<32-hex>`). Fragments are not sent to the
|
|
26
|
+
* server, so the token never appears in access logs / referrers. */
|
|
27
|
+
const WALLET_TOKEN_FRAGMENT_KEY = "token";
|
|
28
|
+
/** Constant carried token byte length (16 random bytes → 32 hex chars).
|
|
29
|
+
* The on-disk token file is rejected + re-minted if it doesn't match. */
|
|
30
|
+
const WALLET_TOKEN_HEX_LENGTH = 32;
|
|
31
|
+
/** Canonical endpoint name. The router orchestrator surfaces this in
|
|
32
|
+
* the manifest under `endpoints['wallet-app']`; downstream consumers
|
|
33
|
+
* (codegen, TUI, doctor) read it by this key.
|
|
34
|
+
*
|
|
35
|
+
* Stable across rewrite + legacy so existing consumers don't break. */
|
|
36
|
+
const WALLET_ENDPOINT_NAME = "wallet-app";
|
|
37
|
+
/** Conventional short endpoint key for the wallet plugin. Matches the
|
|
38
|
+
* substrate's `EndpointKey` brand. Build integrations (Playwright,
|
|
39
|
+
* vitest helpers) and the conventional-routes alias table look the
|
|
40
|
+
* endpoint up under this key; the substrate's alias resolver folds
|
|
41
|
+
* `'wallet'` → `WALLET_ENDPOINT_NAME` (`'wallet-app'`) before
|
|
42
|
+
* consulting the manifest.
|
|
43
|
+
*
|
|
44
|
+
* Paired with the canonical name so both stay in lockstep when the
|
|
45
|
+
* plugin's HTTP server is renamed; the L5 conventional-routes table
|
|
46
|
+
* consumes the same constant so there is exactly one source of
|
|
47
|
+
* truth. */
|
|
48
|
+
const WALLET_ENDPOINT_KEY = "wallet";
|
|
49
|
+
//#endregion
|
|
50
|
+
export { WALLET_AUTH_HEADER, WALLET_BEARER_PREFIX, WALLET_ENDPOINT_KEY, WALLET_ENDPOINT_NAME, WALLET_PROTOCOL_PREFIX, WALLET_TOKEN_FRAGMENT_KEY, WALLET_TOKEN_HEX_LENGTH, WalletHttpPath };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=wallet-protocol.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-protocol.mjs","names":[],"sources":["../../src/contracts/wallet-protocol.ts"],"sourcesContent":["// Wallet wire-protocol constants — name-blind substrate contract.\n//\n// These are the PURE wire-protocol invariants shared across layers:\n// HTTP path strings, the protocol prefix gate, header/token constants,\n// and the canonical routed-endpoint name/key. They carry no runtime,\n// Effect, or service dependencies — only string/number literals.\n//\n// Lifted here (ARCHITECTURE.md § Layer table) because L5 build\n// integrations (`build-integrations/runtime/wallet-paths.ts` and the\n// Playwright/vitest helpers) need them but MUST NOT import L2 plugin\n// modules — there is no L5→L0–L3 carve-out. STYLE_GUIDE §7: shared\n// cross-layer shapes that no single layer should own live in\n// `src/contracts/`; plugin barrels re-export for ergonomics.\n//\n// One decl per file, no `contracts/index.ts` barrel (STYLE_GUIDE §8 /\n// §199): package-internal callers import this module directly; the\n// public root barrel re-exports the wallet-plugin barrel, which in\n// turn re-exports from here, so the public value/type identity is\n// unchanged.\n//\n// The wallet plugin's `protocol.ts` / `routable.ts` re-export these so\n// plugin-internal callers keep their current import sites. The Schema-\n// based request/response envelopes stay in `protocol.ts` (they drag in\n// `effect`'s Schema runtime and are not needed by the L5 surfaces).\n\n// ----------------------------------------------------------------------\n// Path constants\n// ----------------------------------------------------------------------\n\n/**\n * Canonical path constants under the `/api/v1/devstack/*` prefix.\n *\n * Distilled-doc note (15-wallet.md \"Fork-control routes declared but\n * unimplemented\"): the legacy server declared four `FORK_*` path\n * constants whose handlers never landed. Per \"no compat for never-\n * cases\", we drop them from the wire protocol entirely — when the\n * fork-control surface is wired, those routes will be added (and the\n * dev-wallet adapter shipped together). No half-done stubs.\n */\nexport const WalletHttpPath = {\n\tHEALTH: '/api/v1/devstack/health',\n\tACCOUNTS: '/api/v1/devstack/accounts',\n\tSIGN_TRANSACTION: '/api/v1/devstack/sign-transaction',\n\tSIGN_PERSONAL_MESSAGE: '/api/v1/devstack/sign-personal-message',\n} as const;\n\nexport type WalletHttpPathValue = (typeof WalletHttpPath)[keyof typeof WalletHttpPath];\n\n/** Prefix gate: ANY path under this prefix is treated as protocol traffic\n * (and subject to mandatory Origin + bearer); anything else is a flat\n * 404. */\nexport const WALLET_PROTOCOL_PREFIX = '/api/v1/devstack/' as const;\n\n// ----------------------------------------------------------------------\n// Header / token constants (shared so the dev-wallet adapter doesn't\n// open-code the same strings).\n// ----------------------------------------------------------------------\n\nexport const WALLET_AUTH_HEADER = 'authorization' as const;\nexport const WALLET_BEARER_PREFIX = 'Bearer ' as const;\n\n/** URL-fragment key the pair-URL carries the token under\n * (`<wallet-url>/#token=<32-hex>`). Fragments are not sent to the\n * server, so the token never appears in access logs / referrers. */\nexport const WALLET_TOKEN_FRAGMENT_KEY = 'token' as const;\n\n/** Constant carried token byte length (16 random bytes → 32 hex chars).\n * The on-disk token file is rejected + re-minted if it doesn't match. */\nexport const WALLET_TOKEN_HEX_LENGTH = 32 as const;\n\n// ----------------------------------------------------------------------\n// Routed-endpoint identity\n// ----------------------------------------------------------------------\n\n/** Canonical endpoint name. The router orchestrator surfaces this in\n * the manifest under `endpoints['wallet-app']`; downstream consumers\n * (codegen, TUI, doctor) read it by this key.\n *\n * Stable across rewrite + legacy so existing consumers don't break. */\nexport const WALLET_ENDPOINT_NAME = 'wallet-app' as const;\n\n/** Conventional short endpoint key for the wallet plugin. Matches the\n * substrate's `EndpointKey` brand. Build integrations (Playwright,\n * vitest helpers) and the conventional-routes alias table look the\n * endpoint up under this key; the substrate's alias resolver folds\n * `'wallet'` → `WALLET_ENDPOINT_NAME` (`'wallet-app'`) before\n * consulting the manifest.\n *\n * Paired with the canonical name so both stay in lockstep when the\n * plugin's HTTP server is renamed; the L5 conventional-routes table\n * consumes the same constant so there is exactly one source of\n * truth. */\nexport const WALLET_ENDPOINT_KEY = 'wallet' as const;\n"],"mappings":";;;;;;;;;;;AAuCA,MAAa,iBAAiB;CAC7B,QAAQ;CACR,UAAU;CACV,kBAAkB;CAClB,uBAAuB;CACvB;;;;AAOD,MAAa,yBAAyB;AAOtC,MAAa,qBAAqB;AAClC,MAAa,uBAAuB;;;;AAKpC,MAAa,4BAA4B;;;AAIzC,MAAa,0BAA0B;;;;;;AAWvC,MAAa,uBAAuB;;;;;;;;;;;;AAapC,MAAa,sBAAsB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,52 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ManifestExtras, ManifestExtrasContext, ManifestExtrasInput, ManifestExtrasInvalid, ManifestExtrasLookupError } from "./substrate/manifest.mjs";
|
|
2
|
+
import { runtime_decode_d_exports } from "./substrate/runtime/runtime-decode.mjs";
|
|
3
3
|
import { CodegenEmitContext, CodegenEmitDone, CodegenableDecl } from "./contracts/codegenable.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { AppName, Brand, ChainId, ContentHash, EndpointKey, StackName, appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
|
|
5
5
|
import { LifecycleStatus, PhaseNarration, PluginRole } from "./substrate/lifecycle.mjs";
|
|
6
6
|
import { ProjectionDecl, ProjectionEvent } from "./contracts/projection.mjs";
|
|
7
|
-
import { DevstackRoutableUpstreamRegistry, DispatchId, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind } from "./contracts/routable.mjs";
|
|
7
|
+
import { DevstackRoutableUpstreamRegistry, DispatchId, EntrypointDecl, RoutableDecl, RoutableHttpDecl, RoutableTcpDecl, RoutableUpstream, RoutableUpstreamKind } from "./contracts/routable.mjs";
|
|
8
8
|
import { ContainerLabelTuple, SnapshotableDecl } from "./contracts/snapshotable.mjs";
|
|
9
9
|
import { StrategyContributorDecl, StrategyFor } from "./contracts/strategy-contributor.mjs";
|
|
10
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 {
|
|
11
|
+
import { AnyPlugin, AnyResourceRef, DependencyInput, DependencyList, Plugin, PluginErrorContribution, PluginSpec, ResolvedDependencies, ResourceIdOf, ResourceRef, ResourceValueOf, defineId, definePlugin, resource } from "./substrate/plugin.mjs";
|
|
12
|
+
import { DevstackNetworkModeRegistry, NetworkConfig, NetworkMode } from "./substrate/network.mjs";
|
|
13
13
|
import { DevstackOptions } from "./substrate/options.mjs";
|
|
14
14
|
import { Stack, defineDevstack } from "./api/define-devstack.mjs";
|
|
15
15
|
import { BuildCtx, DevstackOptionsWith, defineDevstackWith } from "./api/define-devstack-with.mjs";
|
|
16
|
+
import { RedactionRule, redaction_d_exports } from "./substrate/runtime/observability/redaction.mjs";
|
|
16
17
|
import { ContainerHandle, ContainerRuntime, ContainerRuntimeError, ImageRef, LoadedImageBundle, TaggedImageRef } from "./contracts/container-runtime.mjs";
|
|
17
18
|
import { IdentityContext } from "./substrate/runtime/paths.mjs";
|
|
18
19
|
import { ContainerRuntimeService } from "./runtime/docker/service.mjs";
|
|
19
20
|
import { http_probe_d_exports } from "./substrate/runtime/http-probe.mjs";
|
|
20
|
-
import {
|
|
21
|
+
import { LogLevel, LogLine, LogPayload, Logger, LoggerShape, TagBuffer } from "./substrate/runtime/observability/logger.mjs";
|
|
22
|
+
import { process_lines_d_exports } from "./substrate/runtime/observability/process-lines.mjs";
|
|
21
23
|
import { BootError, RunHandle, RunStackIdentityOptions, RunStackOptions, runStack } from "./api/run-stack.mjs";
|
|
22
24
|
import { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor } from "./api/define-capabilities.mjs";
|
|
25
|
+
import { pluginErrorContributions } from "./api/plugin-errors.mjs";
|
|
26
|
+
import { DEFAULT_DEVSTACK_NETWORK, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkName, DevstackNetworkParseError, ParsedDevstackNetwork, ResolveNetworkOptions, ResolveStateDirOptions, ResolvedDevstackNetwork, parseDevstackNetwork, parseDevstackNetworkName, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir } from "./api/inference-network.mjs";
|
|
23
27
|
import { FactoriesByMode, FactoriesFor, ModeNamespace, defineModeNamespace } from "./api/mode-narrowed-factory.mjs";
|
|
24
28
|
import { config_validation_d_exports } from "./substrate/runtime/config-validation.mjs";
|
|
25
29
|
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
30
|
import { process_supervisor_d_exports } from "./substrate/runtime/process-supervisor.mjs";
|
|
29
31
|
import { probes_d_exports } from "./substrate/runtime/probes.mjs";
|
|
30
32
|
import { retry_policy_d_exports } from "./substrate/runtime/retry-policy.mjs";
|
|
31
|
-
import {
|
|
33
|
+
import { Renderer, RendererError } from "./contracts/renderer.mjs";
|
|
32
34
|
import { ChainProbe, ChainProbeError, ChainProbeMode } from "./contracts/chain-probe.mjs";
|
|
33
35
|
import { FaucetBodyError, FaucetConfigError, FaucetError, FaucetExhausted, FaucetUnreachable } from "./plugins/faucet/errors.mjs";
|
|
34
|
-
import { FaucetStrategy } from "./plugins/faucet/
|
|
35
|
-
import { FaucetStrategyContribution } from "./plugins/faucet/
|
|
36
|
-
import {
|
|
37
|
-
import { ForkUnsupportedError, SeedManifestMismatchError, SuiCliError, SuiConfigError, SuiError, SuiFundsReadyError, SuiPluginError } from "./plugins/sui/errors.mjs";
|
|
36
|
+
import { FaucetStrategy } from "./plugins/faucet/dispatcher.mjs";
|
|
37
|
+
import { FaucetStrategyContribution, defineFaucetStrategy } from "./plugins/faucet/index.mjs";
|
|
38
|
+
import { ForkUnsupportedError, SuiCliError, SuiConfigError, SuiError, SuiPluginError } from "./plugins/sui/errors.mjs";
|
|
38
39
|
import { SuiForkOptions, SuiLiveOptions, SuiLocalOptions, SuiLocalRpcOptions, SuiOptions } from "./plugins/sui/mode/spec.mjs";
|
|
39
|
-
import { FundsReadyError, FundsReadyStrategy } from "./contracts/network-resolver.mjs";
|
|
40
40
|
import { ResolvedSuiNetwork } from "./plugins/sui/network-resolver.mjs";
|
|
41
41
|
import { SuiNetworkBindings } from "./plugins/sui/codegen.mjs";
|
|
42
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
43
|
import { AccountAcquireError, AccountAcquirePhase, AccountError, AccountSignError, AccountSignPhase, AccountVariantKind } from "./plugins/account/errors.mjs";
|
|
51
44
|
import { AccountOptions, AccountValue, TxResult } from "./plugins/account/service.mjs";
|
|
52
45
|
import { AccountFunding, AccountFundingCoinValue, AccountFundingEntry, AccountFundingRequest, AccountFundingResult, AccountFundingStrategy, CoinMember, CrossCuttingFundingEntry, CrossCuttingFundingProvider, DEFAULT_EPHEMERAL_FUND_MIST, SUI_FULL_COIN_TYPE, SuiFundingEntry } from "./plugins/account/funding.mjs";
|
|
@@ -58,9 +51,17 @@ import { ResolvedKnownPackage, ResolvedLocalPackage } from "./plugins/package/re
|
|
|
58
51
|
import { PublishError } from "./plugins/package/errors.mjs";
|
|
59
52
|
import { PackageBindings } from "./plugins/package/codegen.mjs";
|
|
60
53
|
import { KnownPackageOptions, KnownPackageResolved, LocalPackageOptions, LocalPackageResolved, PackageCapture, PackageResolved, PublisherAccountMember, knownPackage, localPackage } from "./plugins/package/index.mjs";
|
|
54
|
+
import { CoinError, CoinPhase } from "./plugins/coin/errors.mjs";
|
|
55
|
+
import { isBareCoinType, validateBareCoinType } from "./plugins/coin/metadata.mjs";
|
|
56
|
+
import { BUILTIN_COINS, BuiltinCoinName, ResolvedCoin } from "./plugins/coin/address-resolution.mjs";
|
|
57
|
+
import { CoinAddressForm, CoinValue } from "./plugins/coin/service.mjs";
|
|
58
|
+
import { CoinBindings } from "./plugins/coin/codegen.mjs";
|
|
59
|
+
import { DiscoveredCoin } from "./plugins/coin/discovery.mjs";
|
|
60
|
+
import { PackageMember, coin } from "./plugins/coin/index.mjs";
|
|
61
61
|
import { WalletBootError, WalletBootPhase, WalletError, WalletRequestError, WalletRequestPhase } from "./plugins/wallet/errors.mjs";
|
|
62
62
|
import { WalletAccountMember, WalletOptions, WalletValue } from "./plugins/wallet/service.mjs";
|
|
63
63
|
import { wallet } from "./plugins/wallet/index.mjs";
|
|
64
|
+
import { DashboardOptions, DashboardValue, dashboard } from "./plugins/dashboard/index.mjs";
|
|
64
65
|
import { HostServiceError } from "./plugins/host-service/errors.mjs";
|
|
65
66
|
import { HOST_SERVICE_PORT_TOKEN, HostServiceOptions, HostServiceReadyProbe, HostServiceValue } from "./plugins/host-service/service.mjs";
|
|
66
67
|
import { hostService } from "./plugins/host-service/index.mjs";
|
|
@@ -78,12 +79,12 @@ import { WalrusLocalClusterOptions } from "./plugins/walrus/mode/local-cluster.m
|
|
|
78
79
|
import { WalrusKnownDeploymentOptions, WalrusKnownNetwork } from "./plugins/walrus/mode/known-deploy.mjs";
|
|
79
80
|
import { WalrusBindings, WalrusNodeBinding } from "./plugins/walrus/codegen.mjs";
|
|
80
81
|
import { WalCoinValue, WalrusResolved, walCoin, walrus, walrusFor } from "./plugins/walrus/index.mjs";
|
|
81
|
-
import { SealAnyError, SealConfigError, SealError } from "./plugins/seal/errors.mjs";
|
|
82
82
|
import { SealKeyServer, SealKeyServerEntry, SealKnownResolved, SealLocalKeygenResolved, SealResolved } from "./plugins/seal/registry-publish.mjs";
|
|
83
|
+
import { SealAnyError, SealConfigError, SealError } from "./plugins/seal/errors.mjs";
|
|
83
84
|
import { SealBindings } from "./plugins/seal/codegen.mjs";
|
|
84
85
|
import { SealCommonOptions, SealForkKnownOptions, SealLiveOptions, SealLocalKeygenOptions, SealOptions, seal, sealFor } from "./plugins/seal/index.mjs";
|
|
85
86
|
import { DeepbookConfigError, DeepbookError, DeepbookPhase, DeepbookPluginError } from "./plugins/deepbook/errors.mjs";
|
|
86
|
-
import { AccountMemberAlias, CoinMemberAlias, DEEP_PRICE_FEED_ID, DeepbookPackageMember, DeepbookPool, DeepbookPoolCoin, DeepbookPoolSeedLiquidity, DeepbookPoolSeedOrder, DeepbookPoolSpec,
|
|
87
|
+
import { AccountMemberAlias, CoinMemberAlias, DEEP_PRICE_FEED_ID, DeepbookPackageMember, DeepbookPool, DeepbookPoolCoin, DeepbookPoolSeedLiquidity, DeepbookPoolSeedOrder, DeepbookPoolSpec, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./plugins/deepbook/types.mjs";
|
|
87
88
|
import { DeepbookBindings, DeepbookPoolBinding } from "./plugins/deepbook/codegen.mjs";
|
|
88
89
|
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
|
|
90
|
+
export { type AccountAcquireError, type AccountAcquirePhase, type AccountBindings, type AccountError, type AccountFunding, type AccountFundingCoinValue, type AccountFundingEntry, type AccountFundingRequest, type AccountFundingResult, type AccountFundingStrategy, type AccountMemberAlias, type AccountOptions, type AccountSignError, type AccountSignPhase, type AccountValue, type AccountVariantKind, type ActionBuildContext, type ActionError, type ActionOptions, type ActionPhase, type ActionReceipt, type ActionUpstreamRef, type AnyPlugin, type AnyResourceRef, type AppName, BUILTIN_COINS, type BootError, type Brand, type BuildCtx, type BuiltinCoinName, type CapabilityDecl, type CapabilityKind, type CapabilityPayloadFor, type ChainId, type ChainProbe, type ChainProbeError, type ChainProbeMode, type CodegenEmitContext, type CodegenEmitDone, type CodegenableDecl, type CoinAddressForm, type CoinBindings, type CoinError, type CoinMember, type CoinMemberAlias, type CoinPhase, type CoinValue, config_validation_d_exports as ConfigValidation, type ContainerHandle, type ContainerLabelTuple, type ContainerRuntime, type ContainerRuntimeError, ContainerRuntimeService, type ContentHash, type CrossCuttingFundingEntry, type CrossCuttingFundingProvider, DEEP_PRICE_FEED_ID, DEFAULT_DEVSTACK_NETWORK, DEFAULT_EPHEMERAL_FUND_MIST, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, type DashboardOptions, type DashboardValue, type DatabaseCreateFailed, type DeepbookBindings, type DeepbookCommonOptions, type DeepbookConfigError, type DeepbookError, type DeepbookKnownNetwork, type DeepbookKnownOptions, type DeepbookOptions, type DeepbookOverrideOptions, type DeepbookPackageMember, type DeepbookPhase, type DeepbookPluginError, type DeepbookPool, type DeepbookPoolBinding, type DeepbookPoolCoin, type DeepbookPoolSeedLiquidity, type DeepbookPoolSeedOrder, type DeepbookPoolSpec, type DeepbookResolved, type DependencyInput, type DependencyList, type DevstackCapabilityRegistry, type DevstackNetworkModeRegistry, type DevstackNetworkName, DevstackNetworkParseError, type DevstackOptions, type DevstackOptionsWith, type DevstackRoutableUpstreamRegistry, type DiscoveredCoin, type DispatchId, type EndpointKey, type EntrypointDecl, type ExactCapabilityPayload, type FactoriesByMode, type FactoriesFor, type FaucetBodyError, type FaucetConfigError, type FaucetError, type FaucetExhausted, type FaucetStrategy, type FaucetStrategyContribution, type FaucetUnreachable, type ForkUnsupportedError, HOST_SERVICE_PORT_TOKEN, type HostServiceError, type HostServiceOptions, type HostServiceReadyProbe, type HostServiceValue, http_probe_d_exports as HttpProbes, IdentityContext, type ImageRef, type KnownPackageOptions, type KnownPackageResolved, type LifecycleStatus, type LoadedImageBundle, type LocalPackageOptions, type LocalPackageResolved, type LogLevel, type LogLine, type LogPayload, Logger, type LoggerShape, managed_container_d_exports as ManagedContainers, type ManifestExtras, type ManifestExtrasContext, type ManifestExtrasInput, ManifestExtrasInvalid, ManifestExtrasLookupError, type ModeNamespace, type NetworkConfig, type NetworkMode, type PackageBindings, type PackageCapture, type PackageMember, type PackageResolved, type ParsedDevstackNetwork, type PhaseNarration, type Plugin, type PluginErrorContribution, type PluginRole, type PluginSpec, type Postgres, type PostgresConfigError, type PostgresConnectionBindings, type PostgresConnectionParts, type PostgresConnectionTimeout, type PostgresError, type PostgresPhase, type PostgresPluginError, type PostgresPluginOptions, type PostgresServiceOptions, probes_d_exports as Probes, process_lines_d_exports as ProcessLines, process_supervisor_d_exports as ProcessSupervisor, type ProjectionDecl, type ProjectionEvent, type PublishError, type PublisherAccountMember, redaction_d_exports as Redaction, type RedactionRule, type Renderer, type RendererError, type ResolveNetworkOptions, type ResolveStateDirOptions, type ResolvedCoin, type ResolvedDependencies, type ResolvedDevstackNetwork, type ResolvedKeypair, type ResolvedKnownPackage, type ResolvedLocalPackage, type ResolvedSuiNetwork, type ResourceIdOf, type ResourceRef, type ResourceValueOf, retry_policy_d_exports as RetryPolicy, type RoutableDecl, type RoutableHttpDecl, type RoutableTcpDecl, type RoutableUpstream, type RoutableUpstreamKind, type RunHandle, type RunStackIdentityOptions, type RunStackOptions, runtime_decode_d_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, type SealError as SealAcquireError, type SealAnyError, type SealBindings, type SealCommonOptions, type SealConfigError, type SealError, type SealForkKnownOptions, type SealKeyServer, type SealKeyServerEntry, type SealKnownResolved, type SealLiveOptions, type SealLocalKeygenOptions, type SealLocalKeygenResolved, type SealOptions, type SealResolved, type SignatureScheme, type SnapshotableDecl, type Stack, type StackName, type StrategyContributorDecl, type StrategyFor, type SuiCliError, type SuiConfigError, type SuiError, type SuiForkOptions, type SuiFundingEntry, type SuiLiveOptions, type SuiLocalOptions, type SuiLocalRpcOptions, type SuiNetworkBindings, type SuiOptions, type SuiPluginError, type SyntheticImpersonationSigner, type TagBuffer, type TaggedImageRef, type TxResult, USDC_PRICE_FEED_ID, type WalCoinValue, type WalletAccountMember, type WalletBootError, type WalletBootPhase, type WalletError, type WalletOptions, type WalletRequestError, type WalletRequestPhase, type WalletValue, type WalrusBindings, type WalrusConfigError, type WalrusError, type WalrusKnownDeploymentOptions, type WalrusKnownNetwork, type WalrusLocalClusterOptions, type WalrusNodeBinding, type WalrusPhase, type WalrusPluginError, type WalrusResolved, type WalrusStorageNode, account, action, appName, capability, capabilitySink, chainId, codegenable, coin, contentHash, dashboard, deepbookCore as deepbook, deepbookFor, defineCapability, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, parseDevstackNetwork, parseDevstackNetworkName, pluginErrorContributions, postgres, projection, pythPriceFeedId, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir, resource, routable, runStack, seal, sealFor, snapshotable, stackName, strategyContributor, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
|
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import { defineId, definePlugin, resource } from "./substrate/plugin.mjs";
|
|
2
|
+
import "./api/define-plugin.mjs";
|
|
3
|
+
import { defineDevstack } from "./api/define-devstack.mjs";
|
|
4
|
+
import { defineDevstackWith } from "./api/define-devstack-with.mjs";
|
|
5
|
+
import { appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
|
|
2
6
|
import { IdentityContext } from "./substrate/runtime/paths.mjs";
|
|
7
|
+
import { redaction_exports } from "./substrate/runtime/observability/redaction.mjs";
|
|
3
8
|
import { runtime_decode_exports } from "./substrate/runtime/runtime-decode.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { appName, chainId, contentHash, endpointKey, stackName } from "./substrate/brand.mjs";
|
|
9
|
+
import { Logger } from "./substrate/runtime/observability/logger.mjs";
|
|
6
10
|
import { process_lines_exports } from "./substrate/runtime/observability/process-lines.mjs";
|
|
11
|
+
import "./substrate/runtime/observability/index.mjs";
|
|
7
12
|
import { probes_exports } from "./substrate/runtime/probes.mjs";
|
|
13
|
+
import { retry_policy_exports } from "./substrate/runtime/retry-policy.mjs";
|
|
8
14
|
import { ContainerRuntimeService } from "./runtime/docker/service.mjs";
|
|
9
|
-
import {
|
|
15
|
+
import { process_supervisor_exports } from "./substrate/runtime/process-supervisor.mjs";
|
|
10
16
|
import { http_probe_exports } from "./substrate/runtime/http-probe.mjs";
|
|
11
17
|
import { managed_container_exports } from "./substrate/runtime/managed-container.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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";
|
|
18
|
+
import { config_validation_exports } from "./substrate/runtime/config-validation.mjs";
|
|
19
|
+
import { ManifestExtrasInvalid, ManifestExtrasLookupError } from "./substrate/manifest.mjs";
|
|
20
|
+
import { DEFAULT_DEVSTACK_NETWORK, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkParseError, parseDevstackNetwork, parseDevstackNetworkName, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir } from "./api/inference-network.mjs";
|
|
20
21
|
import { runStack } from "./api/run-stack.mjs";
|
|
21
22
|
import { capability, capabilitySink, codegenable, defineCapability, projection, routable, snapshotable, strategyContributor } from "./api/define-capabilities.mjs";
|
|
23
|
+
import { pluginErrorContributions } from "./api/plugin-errors.mjs";
|
|
24
|
+
import { defineModeNamespace } from "./api/mode-narrowed-factory.mjs";
|
|
25
|
+
import "./substrate/runtime/container-runtime.mjs";
|
|
26
|
+
import { defineFaucetStrategy } from "./plugins/faucet/index.mjs";
|
|
27
|
+
import { sui, suiFor } from "./plugins/sui/index.mjs";
|
|
22
28
|
import { DEFAULT_EPHEMERAL_FUND_MIST, SUI_FULL_COIN_TYPE } from "./plugins/account/funding.mjs";
|
|
23
29
|
import { account } from "./plugins/account/index.mjs";
|
|
24
30
|
import { knownPackage, localPackage } from "./plugins/package/index.mjs";
|
|
@@ -27,11 +33,12 @@ import { BUILTIN_COINS } from "./plugins/coin/address-resolution.mjs";
|
|
|
27
33
|
import { coin } from "./plugins/coin/index.mjs";
|
|
28
34
|
import { HOST_SERVICE_PORT_TOKEN } from "./plugins/host-service/service.mjs";
|
|
29
35
|
import { hostService } from "./plugins/host-service/index.mjs";
|
|
36
|
+
import { wallet } from "./plugins/wallet/index.mjs";
|
|
37
|
+
import { dashboard } from "./plugins/dashboard/index.mjs";
|
|
30
38
|
import { postgres } from "./plugins/postgres/index.mjs";
|
|
31
|
-
import { defineFaucetStrategy } from "./plugins/faucet/index.mjs";
|
|
32
39
|
import { action } from "./plugins/action/index.mjs";
|
|
33
40
|
import { walCoin, walrus, walrusFor } from "./plugins/walrus/index.mjs";
|
|
34
41
|
import { seal, sealFor } from "./plugins/seal/index.mjs";
|
|
35
42
|
import { DEEP_PRICE_FEED_ID, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./plugins/deepbook/types.mjs";
|
|
36
43
|
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,
|
|
44
|
+
export { BUILTIN_COINS, config_validation_exports as ConfigValidation, ContainerRuntimeService, DEEP_PRICE_FEED_ID, DEFAULT_DEVSTACK_NETWORK, DEFAULT_EPHEMERAL_FUND_MIST, DEFAULT_STACK_NAME, DEVSTACK_NETWORK_NAMES, DevstackNetworkParseError, HOST_SERVICE_PORT_TOKEN, http_probe_exports as HttpProbes, IdentityContext, Logger, managed_container_exports as ManagedContainers, ManifestExtrasInvalid, ManifestExtrasLookupError, probes_exports as Probes, process_lines_exports as ProcessLines, process_supervisor_exports as ProcessSupervisor, redaction_exports as Redaction, retry_policy_exports as RetryPolicy, runtime_decode_exports as RuntimeDecode, SUI_FULL_COIN_TYPE, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, account, action, appName, capability, capabilitySink, chainId, codegenable, coin, contentHash, dashboard, deepbookCore as deepbook, deepbookFor, defineCapability, defineDevstack, defineDevstackWith, defineFaucetStrategy, defineId, defineModeNamespace, definePlugin, endpointKey, hostService, isBareCoinType, knownPackage, localPackage, parseDevstackNetwork, parseDevstackNetworkName, pluginErrorContributions, postgres, projection, pythPriceFeedId, resolveAppName, resolveNetwork, resolveNetworkSync, resolveStackName, resolveStateDir, resource, routable, runStack, seal, sealFor, snapshotable, stackName, strategyContributor, sui, suiFor, validateBareCoinType, walCoin, wallet, walrus, walrusFor };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { CapabilitySinksService } from "../substrate/runtime/capability-sinks/service.mjs";
|
|
2
2
|
import { layerCapabilitySinksDefault } from "../substrate/runtime/capability-sinks/layer.mjs";
|
|
3
|
+
import "../substrate/runtime/capability-sinks/index.mjs";
|
|
4
|
+
import { SnapshotOrchestratorService } from "./snapshot/service.mjs";
|
|
5
|
+
import "./snapshot/index.mjs";
|
|
3
6
|
import { discoverCoinsFromPublish } from "../plugins/coin/discovery.mjs";
|
|
4
|
-
import { CoinRegistryService,
|
|
7
|
+
import { CoinRegistryService, layerCoinRegistry } from "../plugins/coin/registry.mjs";
|
|
5
8
|
import { LOCAL_PACKAGE_PUBLISHED_KIND } from "../plugins/package/publish-output.mjs";
|
|
6
9
|
import { PackageRegistryService, layerPackageRegistry } from "../plugins/package/registry.mjs";
|
|
7
|
-
import { Context, Effect, Layer } from "effect";
|
|
8
|
-
//#region src/
|
|
9
|
-
const layerBuiltInPluginServices = Layer.mergeAll(
|
|
10
|
+
import { Context, Effect, FileSystem, Layer } from "effect";
|
|
11
|
+
//#region src/orchestrators/built-in-plugin-layers.ts
|
|
12
|
+
const layerBuiltInPluginServices = Layer.mergeAll(layerCoinRegistry, layerPackageRegistry);
|
|
10
13
|
const publishResultSink = (coinRegistry) => ({
|
|
11
14
|
kind: LOCAL_PACKAGE_PUBLISHED_KIND,
|
|
12
15
|
accept: (decl) => Effect.gen(function* () {
|
|
@@ -41,7 +44,9 @@ const extendBuiltInPluginContext = (ctx) => Effect.gen(function* () {
|
|
|
41
44
|
const coinRegistry = yield* CoinRegistryService;
|
|
42
45
|
const packageRegistry = yield* PackageRegistryService;
|
|
43
46
|
const capabilitySinks = yield* CapabilitySinksService;
|
|
44
|
-
|
|
47
|
+
const snapshotOrchestrator = yield* SnapshotOrchestratorService;
|
|
48
|
+
const fileSystem = yield* FileSystem.FileSystem;
|
|
49
|
+
return ctx.pipe(Context.add(CoinRegistryService, coinRegistry), Context.add(PackageRegistryService, packageRegistry), Context.add(CapabilitySinksService, capabilitySinks), Context.add(SnapshotOrchestratorService, snapshotOrchestrator), Context.add(FileSystem.FileSystem, fileSystem));
|
|
45
50
|
});
|
|
46
51
|
//#endregion
|
|
47
52
|
export { extendBuiltInPluginContext, layerBuiltInPluginRuntime };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-plugin-layers.mjs","names":[],"sources":["../../src/orchestrators/built-in-plugin-layers.ts"],"sourcesContent":["// Built-in plugin runtime composition.\n//\n// Orchestrator-layer composition (L3): depends on L2 plugin internals\n// (coin/package registries, publish discovery), so it cannot live at L1 runtime.\n// Moved from src/runtime/ to src/orchestrators/ to honor the ARCHITECTURE.md\n// L1-never-imports-from-L2 boundary.\n\nimport { Context, Effect, FileSystem, Layer } from 'effect';\n\nimport { SnapshotOrchestratorService } from './snapshot/index.ts';\nimport { discoverCoinsFromPublish } from '../plugins/coin/discovery.ts';\nimport {\n\tCoinRegistryService,\n\tlayerCoinRegistry,\n\ttype CoinRecord,\n} from '../plugins/coin/registry.ts';\nimport {\n\tLOCAL_PACKAGE_PUBLISHED_KIND,\n\ttype LocalPackagePublishedDecl,\n} from '../plugins/package/publish-output.ts';\nimport { PackageRegistryService, layerPackageRegistry } from '../plugins/package/registry.ts';\nimport {\n\tCapabilitySinksService,\n\tlayerCapabilitySinksDefault,\n\ttype CapabilitySink,\n\ttype OrchestratorSinks,\n} from '../substrate/runtime/capability-sinks/index.ts';\n\nexport const layerBuiltInPluginServices: Layer.Layer<CoinRegistryService | PackageRegistryService> =\n\tLayer.mergeAll(layerCoinRegistry, layerPackageRegistry);\n\nconst publishResultSink = (\n\tcoinRegistry: typeof CoinRegistryService.Service,\n): CapabilitySink<typeof LOCAL_PACKAGE_PUBLISHED_KIND, LocalPackagePublishedDecl> => ({\n\tkind: LOCAL_PACKAGE_PUBLISHED_KIND,\n\taccept: (decl) =>\n\t\tEffect.gen(function* () {\n\t\t\tfor (const discovered of discoverCoinsFromPublish(decl.output)) {\n\t\t\t\tconst record: CoinRecord = {\n\t\t\t\t\tkey: (discovered.symbol ?? discovered.witness).toLowerCase(),\n\t\t\t\t\ttype: discovered.fullCoinType,\n\t\t\t\t\twitness: discovered.witness,\n\t\t\t\t\tmoduleName: discovered.moduleName,\n\t\t\t\t\tdecimals: discovered.decimals ?? 0,\n\t\t\t\t\t...(discovered.symbol === undefined ? {} : { symbol: discovered.symbol }),\n\t\t\t\t\t...(discovered.displayName === undefined ? {} : { displayName: discovered.displayName }),\n\t\t\t\t\t...(discovered.iconUrl === undefined ? {} : { iconUrl: discovered.iconUrl }),\n\t\t\t\t\t...(!discovered.publisherOwnsCap || discovered.treasuryCapId === undefined\n\t\t\t\t\t\t? {}\n\t\t\t\t\t\t: { treasuryCapId: discovered.treasuryCapId }),\n\t\t\t\t\t...(discovered.metadataId === undefined ? {} : { metadataId: discovered.metadataId }),\n\t\t\t\t\tpackageId: decl.packageId,\n\t\t\t\t\tpublishingPackageName: decl.packageName,\n\t\t\t\t};\n\t\t\t\tyield* coinRegistry.register(record);\n\t\t\t}\n\t\t}),\n});\n\nexport const layerBuiltInCapabilitySinks = (\n\torchestrator: OrchestratorSinks,\n): Layer.Layer<CapabilitySinksService, never, CoinRegistryService | PackageRegistryService> => {\n\tconst registerBuiltInPluginSinks = Layer.effectDiscard(\n\t\tEffect.gen(function* () {\n\t\t\tconst sinks = yield* CapabilitySinksService;\n\t\t\tconst coinRegistry = yield* CoinRegistryService;\n\t\t\tyield* sinks.registerSink(publishResultSink(coinRegistry));\n\t\t}),\n\t);\n\treturn registerBuiltInPluginSinks.pipe(\n\t\tLayer.provideMerge(layerCapabilitySinksDefault(orchestrator)),\n\t);\n};\n\nexport const layerBuiltInPluginRuntime = (\n\torchestrator: OrchestratorSinks,\n): Layer.Layer<CoinRegistryService | PackageRegistryService | CapabilitySinksService> =>\n\tlayerBuiltInCapabilitySinks(orchestrator).pipe(Layer.provideMerge(layerBuiltInPluginServices));\n\nexport const extendBuiltInPluginContext = (\n\tctx: Context.Context<never>,\n): Effect.Effect<\n\tContext.Context<never>,\n\tnever,\n\t| CoinRegistryService\n\t| PackageRegistryService\n\t| CapabilitySinksService\n\t| SnapshotOrchestratorService\n\t| FileSystem.FileSystem\n> =>\n\tEffect.gen(function* () {\n\t\tconst coinRegistry = yield* CoinRegistryService;\n\t\tconst packageRegistry = yield* PackageRegistryService;\n\t\tconst capabilitySinks = yield* CapabilitySinksService;\n\t\t// Thread the snapshot orchestrator + filesystem into the plugin\n\t\t// runtime context so the supervisor can populate the control-plane\n\t\t// `domain` surface (snapshot list/restore/delete, which never\n\t\t// round-trip through the void `publishCommand`). The\n\t\t// `ContainerRuntimeService` the domain also needs is already in the\n\t\t// base substrate plugin context.\n\t\tconst snapshotOrchestrator = yield* SnapshotOrchestratorService;\n\t\tconst fileSystem = yield* FileSystem.FileSystem;\n\t\treturn ctx.pipe(\n\t\t\tContext.add(CoinRegistryService, coinRegistry),\n\t\t\tContext.add(PackageRegistryService, packageRegistry),\n\t\t\tContext.add(CapabilitySinksService, capabilitySinks),\n\t\t\tContext.add(SnapshotOrchestratorService, snapshotOrchestrator),\n\t\t\tContext.add(FileSystem.FileSystem, fileSystem),\n\t\t) as Context.Context<never>;\n\t});\n"],"mappings":";;;;;;;;;;;AA4BA,MAAa,6BACZ,MAAM,SAAS,mBAAmB,qBAAqB;AAExD,MAAM,qBACL,kBACqF;CACrF,MAAM;CACN,SAAS,SACR,OAAO,IAAI,aAAa;AACvB,OAAK,MAAM,cAAc,yBAAyB,KAAK,OAAO,EAAE;GAC/D,MAAM,SAAqB;IAC1B,MAAM,WAAW,UAAU,WAAW,SAAS,aAAa;IAC5D,MAAM,WAAW;IACjB,SAAS,WAAW;IACpB,YAAY,WAAW;IACvB,UAAU,WAAW,YAAY;IACjC,GAAI,WAAW,WAAW,KAAA,IAAY,EAAE,GAAG,EAAE,QAAQ,WAAW,QAAQ;IACxE,GAAI,WAAW,gBAAgB,KAAA,IAAY,EAAE,GAAG,EAAE,aAAa,WAAW,aAAa;IACvF,GAAI,WAAW,YAAY,KAAA,IAAY,EAAE,GAAG,EAAE,SAAS,WAAW,SAAS;IAC3E,GAAI,CAAC,WAAW,oBAAoB,WAAW,kBAAkB,KAAA,IAC9D,EAAE,GACF,EAAE,eAAe,WAAW,eAAe;IAC9C,GAAI,WAAW,eAAe,KAAA,IAAY,EAAE,GAAG,EAAE,YAAY,WAAW,YAAY;IACpF,WAAW,KAAK;IAChB,uBAAuB,KAAK;IAC5B;AACD,UAAO,aAAa,SAAS,OAAO;;GAEpC;CACH;AAED,MAAa,+BACZ,iBAC8F;AAQ9F,QAPmC,MAAM,cACxC,OAAO,IAAI,aAAa;EACvB,MAAM,QAAQ,OAAO;EACrB,MAAM,eAAe,OAAO;AAC5B,SAAO,MAAM,aAAa,kBAAkB,aAAa,CAAC;GACzD,CAE8B,CAAC,KACjC,MAAM,aAAa,4BAA4B,aAAa,CAAC,CAC7D;;AAGF,MAAa,6BACZ,iBAEA,4BAA4B,aAAa,CAAC,KAAK,MAAM,aAAa,2BAA2B,CAAC;AAE/F,MAAa,8BACZ,QAUA,OAAO,IAAI,aAAa;CACvB,MAAM,eAAe,OAAO;CAC5B,MAAM,kBAAkB,OAAO;CAC/B,MAAM,kBAAkB,OAAO;CAO/B,MAAM,uBAAuB,OAAO;CACpC,MAAM,aAAa,OAAO,WAAW;AACrC,QAAO,IAAI,KACV,QAAQ,IAAI,qBAAqB,aAAa,EAC9C,QAAQ,IAAI,wBAAwB,gBAAgB,EACpD,QAAQ,IAAI,wBAAwB,gBAAgB,EACpD,QAAQ,IAAI,6BAA6B,qBAAqB,EAC9D,QAAQ,IAAI,WAAW,YAAY,WAAW,CAC9C;EACA"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { Context, Effect, FileSystem, Layer } from "effect";
|
|
2
|
-
import { ChildProcessSpawner } from "effect/unstable/process";
|
|
1
|
+
import { Context, Effect, FileSystem, Layer } from "effect";
|