everything-dev 1.53.1 → 2.0.0-rc.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 +2 -11
- package/dist/_virtual/_rolldown/runtime.cjs +17 -2
- package/dist/_virtual/_rolldown/runtime.mjs +36 -0
- package/dist/api/auth-middleware.cjs +161 -0
- package/dist/api/auth-middleware.cjs.map +1 -0
- package/dist/api/auth-middleware.d.cts +69 -0
- package/dist/api/auth-middleware.d.mts +69 -0
- package/dist/api/auth-middleware.mjs +160 -0
- package/dist/api/auth-middleware.mjs.map +1 -0
- package/dist/api-contract.cjs +250 -62
- package/dist/api-contract.cjs.map +1 -1
- package/dist/api-contract.mjs +246 -65
- package/dist/api-contract.mjs.map +1 -1
- package/dist/app.cjs +99 -26
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +3 -0
- package/dist/app.d.mts +3 -0
- package/dist/app.mjs +100 -27
- package/dist/app.mjs.map +1 -1
- package/dist/auth-login.cjs +163 -0
- package/dist/auth-login.cjs.map +1 -0
- package/dist/auth-login.mjs +162 -0
- package/dist/auth-login.mjs.map +1 -0
- package/dist/auth-session.cjs +64 -0
- package/dist/auth-session.cjs.map +1 -0
- package/dist/auth-session.mjs +58 -0
- package/dist/auth-session.mjs.map +1 -0
- package/dist/auth-types-gen.cjs +0 -1
- package/dist/auth-types-gen.cjs.map +1 -1
- package/dist/build.cjs +37 -173
- package/dist/build.cjs.map +1 -1
- package/dist/build.mjs +37 -171
- package/dist/build.mjs.map +1 -1
- package/dist/bundle-cache.cjs +74 -0
- package/dist/bundle-cache.cjs.map +1 -0
- package/dist/bundle-cache.d.cts +27 -0
- package/dist/bundle-cache.d.mts +27 -0
- package/dist/bundle-cache.mjs +68 -0
- package/dist/bundle-cache.mjs.map +1 -0
- package/dist/bundle-fs-resolve.cjs +209 -0
- package/dist/bundle-fs-resolve.cjs.map +1 -0
- package/dist/bundle-fs-resolve.d.cts +76 -0
- package/dist/bundle-fs-resolve.d.mts +76 -0
- package/dist/bundle-fs-resolve.mjs +202 -0
- package/dist/bundle-fs-resolve.mjs.map +1 -0
- package/dist/cdn-deploy.cjs +126 -0
- package/dist/cdn-deploy.cjs.map +1 -0
- package/dist/cdn-deploy.mjs +124 -0
- package/dist/cdn-deploy.mjs.map +1 -0
- package/dist/cli/db-doctor.cjs +19 -19
- package/dist/cli/db-doctor.cjs.map +1 -1
- package/dist/cli/db-doctor.mjs +18 -18
- package/dist/cli/db-doctor.mjs.map +1 -1
- package/dist/cli/db-repair.cjs +9 -32
- package/dist/cli/db-repair.cjs.map +1 -1
- package/dist/cli/db-repair.mjs +9 -32
- package/dist/cli/db-repair.mjs.map +1 -1
- package/dist/cli/framework-version.cjs +7 -3
- package/dist/cli/framework-version.cjs.map +1 -1
- package/dist/cli/framework-version.mjs +7 -3
- package/dist/cli/framework-version.mjs.map +1 -1
- package/dist/cli/infra.cjs +159 -251
- package/dist/cli/infra.cjs.map +1 -1
- package/dist/cli/infra.mjs +154 -242
- package/dist/cli/infra.mjs.map +1 -1
- package/dist/cli/init.cjs +624 -196
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts +61 -8
- package/dist/cli/init.d.mts +61 -8
- package/dist/cli/init.mjs +613 -194
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/parse.cjs +8 -7
- package/dist/cli/parse.cjs.map +1 -1
- package/dist/cli/parse.mjs +9 -7
- package/dist/cli/parse.mjs.map +1 -1
- package/dist/cli/prompts.cjs +14 -1
- package/dist/cli/prompts.cjs.map +1 -1
- package/dist/cli/prompts.mjs +14 -1
- package/dist/cli/prompts.mjs.map +1 -1
- package/dist/cli/prune.cjs +220 -0
- package/dist/cli/prune.cjs.map +1 -0
- package/dist/cli/prune.mjs +220 -0
- package/dist/cli/prune.mjs.map +1 -0
- package/dist/cli/snapshot.cjs +2 -1
- package/dist/cli/snapshot.cjs.map +1 -1
- package/dist/cli/snapshot.mjs +2 -1
- package/dist/cli/snapshot.mjs.map +1 -1
- package/dist/cli/status.cjs +5 -4
- package/dist/cli/status.cjs.map +1 -1
- package/dist/cli/status.mjs +6 -5
- package/dist/cli/status.mjs.map +1 -1
- package/dist/cli/sync.cjs +156 -58
- package/dist/cli/sync.cjs.map +1 -1
- package/dist/cli/sync.mjs +158 -63
- package/dist/cli/sync.mjs.map +1 -1
- package/dist/cli/timing.cjs +0 -1
- package/dist/cli/timing.cjs.map +1 -1
- package/dist/cli/upgrade.cjs +95 -69
- package/dist/cli/upgrade.cjs.map +1 -1
- package/dist/cli/upgrade.mjs +97 -72
- package/dist/cli/upgrade.mjs.map +1 -1
- package/dist/cli/utils/helpers.cjs.map +1 -1
- package/dist/cli.cjs +320 -72
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +316 -68
- package/dist/cli.mjs.map +1 -1
- package/dist/code-artifacts.cjs +76 -8
- package/dist/code-artifacts.cjs.map +1 -1
- package/dist/code-artifacts.mjs +76 -10
- package/dist/code-artifacts.mjs.map +1 -1
- package/dist/commands/build.cjs +65 -0
- package/dist/commands/build.cjs.map +1 -0
- package/dist/commands/build.mjs +65 -0
- package/dist/commands/build.mjs.map +1 -0
- package/dist/commands/config.cjs +77 -0
- package/dist/commands/config.cjs.map +1 -0
- package/dist/commands/config.d.cts +8 -0
- package/dist/commands/config.d.mts +8 -0
- package/dist/commands/config.mjs +74 -0
- package/dist/commands/config.mjs.map +1 -0
- package/dist/commands/db.cjs +107 -0
- package/dist/commands/db.cjs.map +1 -0
- package/dist/commands/db.mjs +107 -0
- package/dist/commands/db.mjs.map +1 -0
- package/dist/commands/deploy.cjs +336 -0
- package/dist/commands/deploy.cjs.map +1 -0
- package/dist/commands/deploy.mjs +334 -0
- package/dist/commands/deploy.mjs.map +1 -0
- package/dist/commands/dev.cjs +75 -0
- package/dist/commands/dev.cjs.map +1 -0
- package/dist/commands/dev.mjs +73 -0
- package/dist/commands/dev.mjs.map +1 -0
- package/dist/commands/init.cjs +234 -0
- package/dist/commands/init.cjs.map +1 -0
- package/dist/commands/init.mjs +231 -0
- package/dist/commands/init.mjs.map +1 -0
- package/dist/commands/keys.cjs +255 -0
- package/dist/commands/keys.cjs.map +1 -0
- package/dist/commands/keys.mjs +253 -0
- package/dist/commands/keys.mjs.map +1 -0
- package/dist/commands/ops.cjs +199 -0
- package/dist/commands/ops.cjs.map +1 -0
- package/dist/commands/ops.mjs +197 -0
- package/dist/commands/ops.mjs.map +1 -0
- package/dist/commands/plugins.cjs +211 -0
- package/dist/commands/plugins.cjs.map +1 -0
- package/dist/commands/plugins.mjs +211 -0
- package/dist/commands/plugins.mjs.map +1 -0
- package/dist/commands/shared.cjs +8 -0
- package/dist/commands/shared.cjs.map +1 -0
- package/dist/commands/shared.d.cts +6 -0
- package/dist/commands/shared.d.mts +6 -0
- package/dist/commands/shared.mjs +8 -0
- package/dist/commands/shared.mjs.map +1 -0
- package/dist/commands/upgrade.cjs +325 -0
- package/dist/commands/upgrade.cjs.map +1 -0
- package/dist/commands/upgrade.mjs +323 -0
- package/dist/commands/upgrade.mjs.map +1 -0
- package/dist/components/dev-render.cjs +340 -0
- package/dist/components/dev-render.cjs.map +1 -0
- package/dist/components/dev-render.mjs +332 -0
- package/dist/components/dev-render.mjs.map +1 -0
- package/dist/config.cjs +460 -221
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +491 -48
- package/dist/config.d.mts +491 -48
- package/dist/config.mjs +439 -212
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +327 -50
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +1951 -1062
- package/dist/contract.d.mts +1951 -1062
- package/dist/contract.meta.cjs +107 -12
- package/dist/contract.meta.cjs.map +1 -1
- package/dist/contract.meta.d.cts +166 -8
- package/dist/contract.meta.d.mts +166 -8
- package/dist/contract.meta.mjs +107 -11
- package/dist/contract.meta.mjs.map +1 -1
- package/dist/contract.mjs +580 -327
- package/dist/contract.mjs.map +1 -1
- package/dist/dag.cjs +5 -3
- package/dist/dag.cjs.map +1 -1
- package/dist/dag.mjs +6 -3
- package/dist/dag.mjs.map +1 -1
- package/dist/db/binding.cjs +80 -0
- package/dist/db/binding.cjs.map +1 -0
- package/dist/db/binding.d.cts +39 -0
- package/dist/db/binding.d.mts +39 -0
- package/dist/db/binding.mjs +78 -0
- package/dist/db/binding.mjs.map +1 -0
- package/dist/db/bindings.cjs +78 -0
- package/dist/db/bindings.cjs.map +1 -0
- package/dist/db/bindings.d.cts +34 -0
- package/dist/db/bindings.d.mts +34 -0
- package/dist/db/bindings.mjs +76 -0
- package/dist/db/bindings.mjs.map +1 -0
- package/dist/db/core.cjs +204 -0
- package/dist/db/core.cjs.map +1 -0
- package/dist/db/core.d.cts +69 -0
- package/dist/db/core.d.mts +69 -0
- package/dist/db/core.mjs +192 -0
- package/dist/db/core.mjs.map +1 -0
- package/dist/db/driver.cjs +167 -0
- package/dist/db/driver.cjs.map +1 -0
- package/dist/db/driver.d.cts +50 -0
- package/dist/db/driver.d.mts +50 -0
- package/dist/db/driver.mjs +165 -0
- package/dist/db/driver.mjs.map +1 -0
- package/dist/db/drizzle-kit.cjs +177 -0
- package/dist/db/drizzle-kit.cjs.map +1 -0
- package/dist/db/drizzle-kit.d.cts +25 -0
- package/dist/db/drizzle-kit.d.mts +25 -0
- package/dist/db/drizzle-kit.mjs +175 -0
- package/dist/db/drizzle-kit.mjs.map +1 -0
- package/dist/db/errors.cjs +27 -0
- package/dist/db/errors.cjs.map +1 -0
- package/dist/db/errors.d.cts +16 -0
- package/dist/db/errors.d.mts +16 -0
- package/dist/db/errors.mjs +26 -0
- package/dist/db/errors.mjs.map +1 -0
- package/dist/db/identity.cjs +55 -0
- package/dist/db/identity.cjs.map +1 -0
- package/dist/db/identity.d.cts +40 -0
- package/dist/db/identity.d.mts +40 -0
- package/dist/db/identity.mjs +53 -0
- package/dist/db/identity.mjs.map +1 -0
- package/dist/db/index.cjs +43 -0
- package/dist/db/index.d.cts +9 -0
- package/dist/db/index.d.mts +9 -0
- package/dist/db/index.mjs +10 -0
- package/dist/db/run-migrations.cjs +343 -0
- package/dist/db/run-migrations.cjs.map +1 -0
- package/dist/db/run-migrations.d.cts +87 -0
- package/dist/db/run-migrations.d.mts +87 -0
- package/dist/db/run-migrations.mjs +341 -0
- package/dist/db/run-migrations.mjs.map +1 -0
- package/dist/delegate-signer.cjs +85 -0
- package/dist/delegate-signer.cjs.map +1 -0
- package/dist/delegate-signer.mjs +84 -0
- package/dist/delegate-signer.mjs.map +1 -0
- package/dist/deploy-diff.cjs +119 -0
- package/dist/deploy-diff.cjs.map +1 -0
- package/dist/deploy-diff.mjs +109 -0
- package/dist/deploy-diff.mjs.map +1 -0
- package/dist/descriptor/constructors.cjs +49 -0
- package/dist/descriptor/constructors.cjs.map +1 -0
- package/dist/descriptor/constructors.d.cts +27 -0
- package/dist/descriptor/constructors.d.mts +27 -0
- package/dist/descriptor/constructors.mjs +45 -0
- package/dist/descriptor/constructors.mjs.map +1 -0
- package/dist/descriptor/index.cjs +24 -0
- package/dist/descriptor/index.d.cts +5 -0
- package/dist/descriptor/index.d.mts +5 -0
- package/dist/descriptor/index.mjs +6 -0
- package/dist/descriptor/resolve.cjs +258 -0
- package/dist/descriptor/resolve.cjs.map +1 -0
- package/dist/descriptor/resolve.d.cts +50 -0
- package/dist/descriptor/resolve.d.mts +50 -0
- package/dist/descriptor/resolve.mjs +252 -0
- package/dist/descriptor/resolve.mjs.map +1 -0
- package/dist/descriptor/schema.cjs +109 -0
- package/dist/descriptor/schema.cjs.map +1 -0
- package/dist/descriptor/schema.d.cts +217 -0
- package/dist/descriptor/schema.d.mts +217 -0
- package/dist/descriptor/schema.mjs +102 -0
- package/dist/descriptor/schema.mjs.map +1 -0
- package/dist/descriptor/serialize.cjs +45 -0
- package/dist/descriptor/serialize.cjs.map +1 -0
- package/dist/descriptor/serialize.d.cts +7 -0
- package/dist/descriptor/serialize.d.mts +7 -0
- package/dist/descriptor/serialize.mjs +45 -0
- package/dist/descriptor/serialize.mjs.map +1 -0
- package/dist/dev-log-pipeline.cjs +273 -0
- package/dist/dev-log-pipeline.cjs.map +1 -0
- package/dist/dev-log-pipeline.mjs +267 -0
- package/dist/dev-log-pipeline.mjs.map +1 -0
- package/dist/dev-logs.cjs +39 -8
- package/dist/dev-logs.cjs.map +1 -1
- package/dist/dev-logs.mjs +37 -9
- package/dist/dev-logs.mjs.map +1 -1
- package/dist/dev-program.cjs +405 -0
- package/dist/dev-program.cjs.map +1 -0
- package/dist/dev-program.d.cts +10 -0
- package/dist/dev-program.d.mts +10 -0
- package/dist/dev-program.mjs +395 -0
- package/dist/dev-program.mjs.map +1 -0
- package/dist/dev-session-data.d.cts +27 -0
- package/dist/dev-session-data.d.mts +27 -0
- package/dist/dev-session.cjs +178 -105
- package/dist/dev-session.cjs.map +1 -1
- package/dist/dev-session.mjs +180 -105
- package/dist/dev-session.mjs.map +1 -1
- package/dist/env/process-env.cjs +16 -0
- package/dist/env/process-env.cjs.map +1 -0
- package/dist/env/process-env.mjs +13 -0
- package/dist/env/process-env.mjs.map +1 -0
- package/dist/env/project-env.cjs +144 -0
- package/dist/env/project-env.cjs.map +1 -0
- package/dist/env/project-env.d.cts +1 -0
- package/dist/env/project-env.d.mts +1 -0
- package/dist/env/project-env.mjs +132 -0
- package/dist/env/project-env.mjs.map +1 -0
- package/dist/fastkv.cjs +59 -12
- package/dist/fastkv.cjs.map +1 -1
- package/dist/fastkv.d.cts +42 -6
- package/dist/fastkv.d.mts +42 -6
- package/dist/fastkv.mjs +58 -13
- package/dist/fastkv.mjs.map +1 -1
- package/dist/fingerprint.cjs +57 -0
- package/dist/fingerprint.cjs.map +1 -0
- package/dist/fingerprint.d.cts +14 -0
- package/dist/fingerprint.d.mts +14 -0
- package/dist/fingerprint.mjs +55 -0
- package/dist/fingerprint.mjs.map +1 -0
- package/dist/http-client.cjs +17 -17
- package/dist/http-client.cjs.map +1 -1
- package/dist/http-client.mjs +17 -17
- package/dist/http-client.mjs.map +1 -1
- package/dist/image-deploy.cjs +186 -0
- package/dist/image-deploy.cjs.map +1 -0
- package/dist/image-deploy.mjs +182 -0
- package/dist/image-deploy.mjs.map +1 -0
- package/dist/index.cjs +66 -18
- package/dist/index.d.cts +8 -7
- package/dist/index.d.mts +8 -7
- package/dist/index.mjs +6 -5
- package/dist/infra/docker.cjs +77 -0
- package/dist/infra/docker.cjs.map +1 -0
- package/dist/infra/docker.d.cts +10 -0
- package/dist/infra/docker.d.mts +10 -0
- package/dist/infra/docker.mjs +69 -0
- package/dist/infra/docker.mjs.map +1 -0
- package/dist/infra/materializer.cjs +74 -0
- package/dist/infra/materializer.cjs.map +1 -0
- package/dist/infra/materializer.mjs +70 -0
- package/dist/infra/materializer.mjs.map +1 -0
- package/dist/infra/planner.cjs +135 -103
- package/dist/infra/planner.cjs.map +1 -1
- package/dist/infra/planner.mjs +137 -104
- package/dist/infra/planner.mjs.map +1 -1
- package/dist/infra/port-ownership.cjs +57 -0
- package/dist/infra/port-ownership.cjs.map +1 -0
- package/dist/infra/port-ownership.mjs +57 -0
- package/dist/infra/port-ownership.mjs.map +1 -0
- package/dist/infra/preflight.cjs +45 -33
- package/dist/infra/preflight.cjs.map +1 -1
- package/dist/infra/preflight.d.cts +1 -0
- package/dist/infra/preflight.d.mts +1 -0
- package/dist/infra/preflight.mjs +46 -34
- package/dist/infra/preflight.mjs.map +1 -1
- package/dist/infra/types.cjs.map +1 -1
- package/dist/infra/types.d.cts +2 -0
- package/dist/infra/types.d.mts +2 -0
- package/dist/infra/types.mjs.map +1 -1
- package/dist/integrity.cjs +50 -61
- package/dist/integrity.cjs.map +1 -1
- package/dist/integrity.d.cts +16 -10
- package/dist/integrity.d.mts +16 -10
- package/dist/integrity.mjs +50 -59
- package/dist/integrity.mjs.map +1 -1
- package/dist/internal/manifest-normalizer.cjs +8 -2
- package/dist/internal/manifest-normalizer.cjs.map +1 -1
- package/dist/internal/manifest-normalizer.mjs +9 -3
- package/dist/internal/manifest-normalizer.mjs.map +1 -1
- package/dist/merge.cjs +19 -1
- package/dist/merge.cjs.map +1 -1
- package/dist/merge.d.cts +1 -1
- package/dist/merge.d.mts +1 -1
- package/dist/merge.mjs +19 -2
- package/dist/merge.mjs.map +1 -1
- package/dist/mf.cjs +190 -3
- package/dist/mf.cjs.map +1 -1
- package/dist/mf.d.cts +24 -2
- package/dist/mf.d.mts +24 -2
- package/dist/mf.mjs +189 -4
- package/dist/mf.mjs.map +1 -1
- package/dist/near-cli.cjs +59 -91
- package/dist/near-cli.cjs.map +1 -1
- package/dist/near-cli.mjs +58 -90
- package/dist/near-cli.mjs.map +1 -1
- package/dist/near-signer.cjs +73 -0
- package/dist/near-signer.cjs.map +1 -0
- package/dist/near-signer.mjs +70 -0
- package/dist/near-signer.mjs.map +1 -0
- package/dist/network.cjs +0 -1
- package/dist/network.cjs.map +1 -1
- package/dist/orchestrator.cjs +256 -87
- package/dist/orchestrator.cjs.map +1 -1
- package/dist/orchestrator.mjs +248 -87
- package/dist/orchestrator.mjs.map +1 -1
- package/dist/platform-deploy.cjs +81 -0
- package/dist/platform-deploy.cjs.map +1 -0
- package/dist/platform-deploy.mjs +80 -0
- package/dist/platform-deploy.mjs.map +1 -0
- package/dist/plugin.cjs +54 -1389
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +6 -896
- package/dist/plugin.d.mts +6 -896
- package/dist/plugin.mjs +53 -1387
- package/dist/plugin.mjs.map +1 -1
- package/dist/process-kill.cjs +44 -0
- package/dist/process-kill.cjs.map +1 -0
- package/dist/process-kill.mjs +43 -0
- package/dist/process-kill.mjs.map +1 -0
- package/dist/process-registry.cjs +64 -9
- package/dist/process-registry.cjs.map +1 -1
- package/dist/process-registry.mjs +61 -10
- package/dist/process-registry.mjs.map +1 -1
- package/dist/progress.cjs +45 -0
- package/dist/progress.cjs.map +1 -0
- package/dist/progress.d.cts +13 -0
- package/dist/progress.d.mts +13 -0
- package/dist/progress.mjs +42 -0
- package/dist/progress.mjs.map +1 -0
- package/dist/publish.cjs +513 -79
- package/dist/publish.cjs.map +1 -1
- package/dist/publish.mjs +515 -82
- package/dist/publish.mjs.map +1 -1
- package/dist/registry-use.cjs +41 -0
- package/dist/registry-use.cjs.map +1 -0
- package/dist/registry-use.mjs +40 -0
- package/dist/registry-use.mjs.map +1 -0
- package/dist/resolution/session.cjs +335 -0
- package/dist/resolution/session.cjs.map +1 -0
- package/dist/resolution/session.d.cts +105 -0
- package/dist/resolution/session.d.mts +105 -0
- package/dist/resolution/session.mjs +331 -0
- package/dist/resolution/session.mjs.map +1 -0
- package/dist/rollback.cjs +131 -0
- package/dist/rollback.cjs.map +1 -0
- package/dist/rollback.mjs +128 -0
- package/dist/rollback.mjs.map +1 -0
- package/dist/sdk.cjs +7 -7
- package/dist/sdk.d.cts +3 -3
- package/dist/sdk.d.mts +3 -3
- package/dist/sdk.mjs +2 -2
- package/dist/service-descriptor.cjs +67 -34
- package/dist/service-descriptor.cjs.map +1 -1
- package/dist/service-descriptor.d.cts +4 -1
- package/dist/service-descriptor.d.mts +3 -0
- package/dist/service-descriptor.mjs +63 -35
- package/dist/service-descriptor.mjs.map +1 -1
- package/dist/shared-deps.cjs +17 -16
- package/dist/shared-deps.cjs.map +1 -1
- package/dist/shared-deps.mjs +17 -16
- package/dist/shared-deps.mjs.map +1 -1
- package/dist/start-config-source.cjs +24 -0
- package/dist/start-config-source.cjs.map +1 -0
- package/dist/start-config-source.d.cts +29 -0
- package/dist/start-config-source.d.mts +29 -0
- package/dist/start-config-source.mjs +22 -0
- package/dist/start-config-source.mjs.map +1 -0
- package/dist/storage-upload.cjs +145 -0
- package/dist/storage-upload.cjs.map +1 -0
- package/dist/storage-upload.mjs +143 -0
- package/dist/storage-upload.mjs.map +1 -0
- package/dist/types.cjs +126 -20
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +867 -585
- package/dist/types.d.mts +867 -585
- package/dist/types.mjs +307 -208
- package/dist/types.mjs.map +1 -1
- package/dist/ui/api.cjs +105 -0
- package/dist/ui/api.cjs.map +1 -0
- package/dist/ui/api.d.cts +31 -0
- package/dist/ui/api.d.mts +31 -0
- package/dist/ui/api.mjs +99 -0
- package/dist/ui/api.mjs.map +1 -0
- package/dist/ui/auth-guards.cjs +50 -0
- package/dist/ui/auth-guards.cjs.map +1 -0
- package/dist/ui/auth-guards.d.cts +39 -0
- package/dist/ui/auth-guards.d.mts +39 -0
- package/dist/ui/auth-guards.mjs +48 -0
- package/dist/ui/auth-guards.mjs.map +1 -0
- package/dist/ui/auth.cjs +197 -0
- package/dist/ui/auth.cjs.map +1 -0
- package/dist/ui/auth.d.cts +56 -0
- package/dist/ui/auth.d.mts +56 -0
- package/dist/ui/auth.mjs +179 -0
- package/dist/ui/auth.mjs.map +1 -0
- package/dist/ui/entry.cjs +16 -0
- package/dist/ui/entry.cjs.map +1 -0
- package/dist/ui/entry.d.cts +12 -0
- package/dist/ui/entry.d.mts +12 -0
- package/dist/ui/entry.mjs +15 -0
- package/dist/ui/entry.mjs.map +1 -0
- package/dist/ui/head.cjs +14 -7
- package/dist/ui/head.cjs.map +1 -1
- package/dist/ui/head.mjs +15 -7
- package/dist/ui/head.mjs.map +1 -1
- package/dist/ui/hydrate.cjs +265 -0
- package/dist/ui/hydrate.cjs.map +1 -0
- package/dist/ui/hydrate.d.cts +48 -0
- package/dist/ui/hydrate.d.mts +48 -0
- package/dist/ui/hydrate.mjs +263 -0
- package/dist/ui/hydrate.mjs.map +1 -0
- package/dist/ui/i18n.cjs +153 -0
- package/dist/ui/i18n.cjs.map +1 -0
- package/dist/ui/i18n.d.cts +29 -0
- package/dist/ui/i18n.d.mts +29 -0
- package/dist/ui/i18n.mjs +140 -0
- package/dist/ui/i18n.mjs.map +1 -0
- package/dist/ui/index.cjs +19 -1
- package/dist/ui/index.d.cts +6 -3
- package/dist/ui/index.d.mts +6 -3
- package/dist/ui/index.mjs +5 -2
- package/dist/ui/locale.cjs +53 -0
- package/dist/ui/locale.cjs.map +1 -0
- package/dist/ui/locale.d.cts +18 -0
- package/dist/ui/locale.d.mts +18 -0
- package/dist/ui/locale.mjs +49 -0
- package/dist/ui/locale.mjs.map +1 -0
- package/dist/ui/manifest/index.cjs +25 -0
- package/dist/ui/manifest/index.cjs.map +1 -0
- package/dist/ui/manifest/index.d.cts +9 -0
- package/dist/ui/manifest/index.d.mts +9 -0
- package/dist/ui/manifest/index.mjs +13 -0
- package/dist/ui/manifest/index.mjs.map +1 -0
- package/dist/ui/manifest-generator.cjs +8 -0
- package/dist/ui/manifest-generator.d.cts +1 -0
- package/dist/ui/manifest-generator.d.mts +1 -0
- package/dist/ui/manifest-generator.mjs +3 -0
- package/dist/ui/message-catalogs.cjs +8 -0
- package/dist/ui/message-catalogs.cjs.map +1 -0
- package/dist/ui/message-catalogs.d.cts +5 -0
- package/dist/ui/message-catalogs.d.mts +5 -0
- package/dist/ui/message-catalogs.mjs +8 -0
- package/dist/ui/message-catalogs.mjs.map +1 -0
- package/dist/ui/metadata.cjs +0 -1
- package/dist/ui/metadata.cjs.map +1 -1
- package/dist/ui/metadata.d.cts +1 -1
- package/dist/ui/metadata.d.mts +1 -1
- package/dist/ui/plugin-path.cjs +37 -0
- package/dist/ui/plugin-path.cjs.map +1 -0
- package/dist/ui/plugin-path.d.cts +25 -0
- package/dist/ui/plugin-path.d.mts +25 -0
- package/dist/ui/plugin-path.mjs +35 -0
- package/dist/ui/plugin-path.mjs.map +1 -0
- package/dist/ui/router-client.cjs +61 -0
- package/dist/ui/router-client.cjs.map +1 -0
- package/dist/ui/router-client.d.cts +20 -0
- package/dist/ui/router-client.d.mts +20 -0
- package/dist/ui/router-client.mjs +60 -0
- package/dist/ui/router-client.mjs.map +1 -0
- package/dist/ui/router-defaults.cjs +48 -0
- package/dist/ui/router-defaults.cjs.map +1 -0
- package/dist/ui/router-defaults.d.cts +8 -0
- package/dist/ui/router-defaults.d.mts +8 -0
- package/dist/ui/router-defaults.mjs +45 -0
- package/dist/ui/router-defaults.mjs.map +1 -0
- package/dist/ui/router-error.cjs +70 -0
- package/dist/ui/router-error.cjs.map +1 -0
- package/dist/ui/router-error.d.cts +19 -0
- package/dist/ui/router-error.d.mts +19 -0
- package/dist/ui/router-error.mjs +69 -0
- package/dist/ui/router-error.mjs.map +1 -0
- package/dist/ui/router-server.cjs +153 -0
- package/dist/ui/router-server.cjs.map +1 -0
- package/dist/ui/router-server.d.cts +38 -0
- package/dist/ui/router-server.d.mts +38 -0
- package/dist/ui/router-server.mjs +152 -0
- package/dist/ui/router-server.mjs.map +1 -0
- package/dist/ui/router.cjs +4 -16
- package/dist/ui/router.cjs.map +1 -1
- package/dist/ui/router.mjs +4 -15
- package/dist/ui/router.mjs.map +1 -1
- package/dist/ui/runtime.cjs +5 -1
- package/dist/ui/runtime.cjs.map +1 -1
- package/dist/ui/runtime.d.cts +2 -1
- package/dist/ui/runtime.d.mts +2 -1
- package/dist/ui/runtime.mjs +5 -1
- package/dist/ui/runtime.mjs.map +1 -1
- package/dist/ui/slot.cjs +34 -0
- package/dist/ui/slot.cjs.map +1 -0
- package/dist/ui/slot.d.cts +43 -0
- package/dist/ui/slot.d.mts +43 -0
- package/dist/ui/slot.mjs +34 -0
- package/dist/ui/slot.mjs.map +1 -0
- package/dist/ui/tenant.cjs +300 -0
- package/dist/ui/tenant.cjs.map +1 -0
- package/dist/ui/tenant.d.cts +122 -0
- package/dist/ui/tenant.d.mts +122 -0
- package/dist/ui/tenant.mjs +279 -0
- package/dist/ui/tenant.mjs.map +1 -0
- package/dist/ui/types.d.cts +32 -2
- package/dist/ui/types.d.mts +32 -2
- package/dist/ui/version-check.cjs +47 -0
- package/dist/ui/version-check.cjs.map +1 -0
- package/dist/ui/version-check.d.cts +23 -0
- package/dist/ui/version-check.d.mts +23 -0
- package/dist/ui/version-check.mjs +46 -0
- package/dist/ui/version-check.mjs.map +1 -0
- package/dist/utils/banner.cjs +2 -2
- package/dist/utils/banner.cjs.map +1 -1
- package/dist/utils/banner.mjs +2 -2
- package/dist/utils/banner.mjs.map +1 -1
- package/dist/utils/linkify.cjs +1 -1
- package/dist/utils/linkify.cjs.map +1 -1
- package/dist/utils/linkify.mjs +1 -0
- package/dist/utils/linkify.mjs.map +1 -1
- package/dist/utils/run.cjs +6 -6
- package/dist/utils/run.cjs.map +1 -1
- package/dist/utils/run.mjs +6 -6
- package/dist/utils/run.mjs.map +1 -1
- package/dist/utils/save-config.cjs +12 -0
- package/dist/utils/save-config.cjs.map +1 -1
- package/dist/utils/save-config.mjs +12 -0
- package/dist/utils/save-config.mjs.map +1 -1
- package/dist/utils/snapshot-hash.cjs +10 -0
- package/dist/utils/snapshot-hash.cjs.map +1 -0
- package/dist/utils/snapshot-hash.mjs +10 -0
- package/dist/utils/snapshot-hash.mjs.map +1 -0
- package/dist/utils/string.cjs +0 -1
- package/dist/utils/string.cjs.map +1 -1
- package/dist/utils/theme.cjs +30 -12
- package/dist/utils/theme.cjs.map +1 -1
- package/dist/utils/theme.mjs +30 -11
- package/dist/utils/theme.mjs.map +1 -1
- package/dist/version-manifest-deploy.cjs +50 -0
- package/dist/version-manifest-deploy.cjs.map +1 -0
- package/dist/version-manifest-deploy.mjs +49 -0
- package/dist/version-manifest-deploy.mjs.map +1 -0
- package/dist/version-manifest-resolve.cjs +42 -0
- package/dist/version-manifest-resolve.cjs.map +1 -0
- package/dist/version-manifest-resolve.d.cts +38 -0
- package/dist/version-manifest-resolve.d.mts +38 -0
- package/dist/version-manifest-resolve.mjs +40 -0
- package/dist/version-manifest-resolve.mjs.map +1 -0
- package/dist/version-status.cjs +18 -0
- package/dist/version-status.cjs.map +1 -0
- package/dist/version-status.d.cts +22 -0
- package/dist/version-status.d.mts +22 -0
- package/dist/version-status.mjs +17 -0
- package/dist/version-status.mjs.map +1 -0
- package/dist/workspace-catalog.cjs +53 -0
- package/dist/workspace-catalog.cjs.map +1 -0
- package/dist/workspace-catalog.mjs +51 -0
- package/dist/workspace-catalog.mjs.map +1 -0
- package/dist/workspace.cjs +237 -0
- package/dist/workspace.cjs.map +1 -0
- package/dist/workspace.mjs +233 -0
- package/dist/workspace.mjs.map +1 -0
- package/package.json +179 -27
- package/skills/add-a-route/SKILL.md +132 -0
- package/skills/api-and-auth/SKILL.md +87 -21
- package/skills/api-and-auth/references/middleware.md +1 -1
- package/skills/cli-reference/SKILL.md +48 -21
- package/skills/code-style/SKILL.md +8 -0
- package/skills/dev-workflow/SKILL.md +50 -26
- package/skills/extends-config/SKILL.md +31 -19
- package/skills/init-upgrade/SKILL.md +29 -16
- package/skills/plugin-development/SKILL.md +46 -112
- package/skills/plugin-development/references/database.md +82 -0
- package/skills/plugin-development/references/request-context.md +67 -0
- package/skills/publish-sync/SKILL.md +99 -22
- package/skills/registry/SKILL.md +82 -0
- package/skills/super-app/SKILL.md +25 -15
- package/skills/talk-to-the-app/SKILL.md +138 -0
- package/skills/ui-integration/SKILL.md +93 -11
- package/dist/cli/db-studio.cjs +0 -131
- package/dist/cli/db-studio.cjs.map +0 -1
- package/dist/cli/db-studio.mjs +0 -127
- package/dist/cli/db-studio.mjs.map +0 -1
- package/dist/cli/init.d.cts.map +0 -1
- package/dist/cli/init.d.mts.map +0 -1
- package/dist/components/dev-view.cjs +0 -309
- package/dist/components/dev-view.cjs.map +0 -1
- package/dist/components/dev-view.mjs +0 -309
- package/dist/components/dev-view.mjs.map +0 -1
- package/dist/components/streaming-view.cjs +0 -134
- package/dist/components/streaming-view.cjs.map +0 -1
- package/dist/components/streaming-view.mjs +0 -132
- package/dist/components/streaming-view.mjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/contract.d.cts.map +0 -1
- package/dist/contract.d.mts.map +0 -1
- package/dist/contract.meta.d.cts.map +0 -1
- package/dist/contract.meta.d.mts.map +0 -1
- package/dist/dag.d.cts.map +0 -1
- package/dist/dag.d.mts.map +0 -1
- package/dist/db.cjs +0 -81
- package/dist/db.cjs.map +0 -1
- package/dist/db.d.cts +0 -30
- package/dist/db.d.cts.map +0 -1
- package/dist/db.d.mts +0 -30
- package/dist/db.d.mts.map +0 -1
- package/dist/db.mjs +0 -75
- package/dist/db.mjs.map +0 -1
- package/dist/fastkv.d.cts.map +0 -1
- package/dist/fastkv.d.mts.map +0 -1
- package/dist/integrity.d.cts.map +0 -1
- package/dist/integrity.d.mts.map +0 -1
- package/dist/merge.d.cts.map +0 -1
- package/dist/merge.d.mts.map +0 -1
- package/dist/mf.d.cts.map +0 -1
- package/dist/mf.d.mts.map +0 -1
- package/dist/plugin.d.cts.map +0 -1
- package/dist/plugin.d.mts.map +0 -1
- package/dist/service-descriptor.d.cts.map +0 -1
- package/dist/service-descriptor.d.mts.map +0 -1
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/ui/head.d.cts.map +0 -1
- package/dist/ui/head.d.mts.map +0 -1
- package/dist/ui/metadata.d.cts.map +0 -1
- package/dist/ui/metadata.d.mts.map +0 -1
- package/dist/ui/router.d.cts.map +0 -1
- package/dist/ui/router.d.mts.map +0 -1
- package/dist/ui/runtime.d.cts.map +0 -1
- package/dist/ui/runtime.d.mts.map +0 -1
- package/dist/ui/types.d.cts.map +0 -1
- package/dist/ui/types.d.mts.map +0 -1
package/dist/contract.mjs
CHANGED
|
@@ -1,165 +1,242 @@
|
|
|
1
|
-
import { BosConfigInputSchema, BosConfigSchema, SourceModeSchema } from "./types.mjs";
|
|
1
|
+
import { BosConfigInputSchema, BosConfigSchema, SourceModeSchema, StarterLevelSchema } from "./types.mjs";
|
|
2
2
|
import { oc } from "./sdk.mjs";
|
|
3
|
-
import * as z from "zod";
|
|
3
|
+
import * as z$1 from "zod";
|
|
4
|
+
import "@orpc/openapi/extensions/route";
|
|
4
5
|
|
|
5
6
|
//#region src/contract.ts
|
|
6
|
-
const PhaseTimingSchema = z.object({
|
|
7
|
-
name: z.string(),
|
|
8
|
-
durationMs: z.number()
|
|
7
|
+
const PhaseTimingSchema = z$1.object({
|
|
8
|
+
name: z$1.string(),
|
|
9
|
+
durationMs: z$1.number()
|
|
9
10
|
});
|
|
10
|
-
const DevOptionsSchema = z.object({
|
|
11
|
+
const DevOptionsSchema = z$1.object({
|
|
11
12
|
host: SourceModeSchema.default("local"),
|
|
12
13
|
ui: SourceModeSchema.default("local"),
|
|
13
14
|
api: SourceModeSchema.default("local"),
|
|
14
15
|
auth: SourceModeSchema.default("local"),
|
|
15
|
-
remotePlugins: z.array(z.string()).optional(),
|
|
16
|
-
proxy: z.boolean().default(false),
|
|
17
|
-
ssr: z.boolean().default(false),
|
|
18
|
-
port: z.number().optional(),
|
|
19
|
-
apiPort: z.number().optional(),
|
|
20
|
-
uiPort: z.number().optional(),
|
|
21
|
-
authPort: z.number().optional(),
|
|
22
|
-
pluginPortStart: z.number().optional(),
|
|
23
|
-
interactive: z.boolean().optional()
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
status: z.enum([
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
16
|
+
remotePlugins: z$1.array(z$1.string()).optional(),
|
|
17
|
+
proxy: z$1.boolean().default(false),
|
|
18
|
+
ssr: z$1.boolean().default(false),
|
|
19
|
+
port: z$1.number().optional(),
|
|
20
|
+
apiPort: z$1.number().optional(),
|
|
21
|
+
uiPort: z$1.number().optional(),
|
|
22
|
+
authPort: z$1.number().optional(),
|
|
23
|
+
pluginPortStart: z$1.number().optional(),
|
|
24
|
+
interactive: z$1.boolean().optional(),
|
|
25
|
+
logLevel: z$1.enum([
|
|
26
|
+
"error",
|
|
27
|
+
"warn",
|
|
28
|
+
"info",
|
|
29
|
+
"debug"
|
|
30
|
+
]).optional()
|
|
31
|
+
});
|
|
32
|
+
const DevResultSchema = z$1.object({
|
|
33
|
+
status: z$1.enum(["started", "error"]),
|
|
34
|
+
description: z$1.string(),
|
|
35
|
+
processes: z$1.array(z$1.string()),
|
|
36
|
+
timings: z$1.array(PhaseTimingSchema).optional(),
|
|
37
|
+
session: z$1.custom().optional()
|
|
38
|
+
});
|
|
39
|
+
const StartOptionsSchema = z$1.object({
|
|
40
|
+
port: z$1.number().optional(),
|
|
41
|
+
interactive: z$1.boolean().optional(),
|
|
42
|
+
account: z$1.string().optional(),
|
|
43
|
+
domain: z$1.string().optional(),
|
|
44
|
+
env: z$1.enum(["production", "staging"]).default("production"),
|
|
45
|
+
registry: z$1.string().optional(),
|
|
46
|
+
configPath: z$1.string().optional()
|
|
47
|
+
});
|
|
48
|
+
const StartResultSchema = z$1.object({
|
|
49
|
+
status: z$1.enum(["running", "error"]),
|
|
50
|
+
url: z$1.string(),
|
|
51
|
+
error: z$1.string().optional(),
|
|
52
|
+
session: z$1.custom().optional(),
|
|
53
|
+
summary: z$1.custom().optional()
|
|
54
|
+
});
|
|
55
|
+
const BuildOptionsSchema = z$1.object({
|
|
56
|
+
packages: z$1.string().default("all").describe("Comma-separated keys, 'all' (default), or 'local' (only this repo's local plugins hosted via 'local:…')"),
|
|
57
|
+
force: z$1.boolean().default(false)
|
|
58
|
+
});
|
|
59
|
+
const BuildResultSchema = z$1.object({
|
|
60
|
+
status: z$1.enum(["success", "error"]),
|
|
61
|
+
error: z$1.string().optional(),
|
|
62
|
+
built: z$1.array(z$1.string()),
|
|
63
|
+
skipped: z$1.array(z$1.string()).optional()
|
|
64
|
+
});
|
|
65
|
+
const ConfigOptionsSchema = z$1.object({ full: z$1.boolean().default(false) });
|
|
66
|
+
const ConfigResultSchema = z$1.object({
|
|
67
|
+
config: z$1.union([BosConfigInputSchema, BosConfigSchema]).nullable(),
|
|
68
|
+
packages: z$1.array(z$1.string()),
|
|
69
|
+
remotes: z$1.array(z$1.string()),
|
|
70
|
+
full: z$1.boolean().default(false)
|
|
71
|
+
});
|
|
72
|
+
const RegistryUseOptionsSchema = z$1.object({
|
|
73
|
+
from: z$1.string().describe("Published runtime to compose from (account/gateway or bos:// URL)"),
|
|
74
|
+
sections: z$1.array(z$1.string()).min(1).describe("Sections to compose: app.ui, app.host, app.api, app.auth, plugins.<key>"),
|
|
75
|
+
dryRun: z$1.boolean().default(false)
|
|
76
|
+
});
|
|
77
|
+
const RegistryUseResultSchema = z$1.object({
|
|
78
|
+
status: z$1.enum([
|
|
79
|
+
"updated",
|
|
80
|
+
"dry-run",
|
|
81
|
+
"error"
|
|
82
|
+
]),
|
|
83
|
+
from: z$1.string(),
|
|
84
|
+
applied: z$1.array(z$1.string()),
|
|
85
|
+
configPath: z$1.string().optional(),
|
|
86
|
+
error: z$1.string().optional()
|
|
87
|
+
});
|
|
88
|
+
const PluginAddOptionsSchema = z$1.object({
|
|
89
|
+
source: z$1.string(),
|
|
90
|
+
as: z$1.string().optional(),
|
|
91
|
+
production: z$1.string().optional()
|
|
92
|
+
});
|
|
93
|
+
const PluginAddResultSchema = z$1.object({
|
|
94
|
+
status: z$1.enum(["added", "error"]),
|
|
95
|
+
key: z$1.string(),
|
|
96
|
+
development: z$1.string().optional(),
|
|
97
|
+
production: z$1.string().optional(),
|
|
98
|
+
integrity: z$1.string().optional(),
|
|
99
|
+
version: z$1.string().optional(),
|
|
100
|
+
error: z$1.string().optional()
|
|
101
|
+
});
|
|
102
|
+
const PluginRemoveOptionsSchema = z$1.object({ key: z$1.string() });
|
|
103
|
+
const PluginRemoveResultSchema = z$1.object({
|
|
104
|
+
status: z$1.enum(["removed", "error"]),
|
|
105
|
+
key: z$1.string(),
|
|
106
|
+
error: z$1.string().optional()
|
|
107
|
+
});
|
|
108
|
+
const PluginListResultSchema = z$1.object({
|
|
109
|
+
status: z$1.enum(["listed", "error"]),
|
|
110
|
+
plugins: z$1.array(z$1.object({
|
|
111
|
+
key: z$1.string(),
|
|
112
|
+
development: z$1.string().optional(),
|
|
113
|
+
production: z$1.string().optional(),
|
|
114
|
+
localPath: z$1.string().optional(),
|
|
115
|
+
source: z$1.enum(["local", "remote"]),
|
|
116
|
+
integrity: z$1.string().optional(),
|
|
117
|
+
version: z$1.string().optional(),
|
|
118
|
+
name: z$1.string().optional()
|
|
92
119
|
})),
|
|
93
|
-
error: z.string().optional()
|
|
94
|
-
});
|
|
95
|
-
const PluginPublishOptionsSchema = z.object({ key: z.string() });
|
|
96
|
-
const PluginPublishResultSchema = z.object({
|
|
97
|
-
status: z.enum(["published", "error"]),
|
|
98
|
-
key: z.string(),
|
|
99
|
-
path: z.string().optional(),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
error: z$1.string().optional()
|
|
121
|
+
});
|
|
122
|
+
const PluginPublishOptionsSchema = z$1.object({ key: z$1.string() });
|
|
123
|
+
const PluginPublishResultSchema = z$1.object({
|
|
124
|
+
status: z$1.enum(["published", "error"]),
|
|
125
|
+
key: z$1.string(),
|
|
126
|
+
path: z$1.string().optional(),
|
|
127
|
+
production: z$1.string().optional(),
|
|
128
|
+
version: z$1.string().optional(),
|
|
129
|
+
fingerprint: z$1.string().optional(),
|
|
130
|
+
error: z$1.string().optional()
|
|
131
|
+
});
|
|
132
|
+
const WorkspaceDeployResultSchema = z$1.object({
|
|
133
|
+
key: z$1.string(),
|
|
134
|
+
kind: z$1.enum(["app", "plugin"]),
|
|
135
|
+
success: z$1.boolean(),
|
|
136
|
+
error: z$1.string().optional(),
|
|
137
|
+
durationMs: z$1.number().optional()
|
|
138
|
+
});
|
|
139
|
+
const PublishOptionsSchema = z$1.object({
|
|
140
|
+
dryRun: z$1.boolean().default(false),
|
|
141
|
+
verbose: z$1.boolean().default(false),
|
|
142
|
+
network: z$1.enum(["mainnet", "testnet"]).optional(),
|
|
143
|
+
privateKey: z$1.string().optional(),
|
|
144
|
+
wallet: z$1.boolean().default(false),
|
|
145
|
+
env: z$1.enum(["production", "staging"]).default("production"),
|
|
146
|
+
registry: z$1.string().optional()
|
|
147
|
+
});
|
|
148
|
+
const RollbackOptionsSchema = z$1.object({
|
|
149
|
+
listOnly: z$1.boolean().default(false),
|
|
150
|
+
version: z$1.string().optional(),
|
|
151
|
+
previous: z$1.boolean().default(false),
|
|
152
|
+
force: z$1.boolean().default(false),
|
|
153
|
+
limit: z$1.number().int().min(1).max(200).default(20),
|
|
154
|
+
dryRun: z$1.boolean().default(false),
|
|
155
|
+
verbose: z$1.boolean().default(false),
|
|
156
|
+
network: z$1.enum(["mainnet", "testnet"]).optional(),
|
|
157
|
+
privateKey: z$1.string().optional(),
|
|
158
|
+
wallet: z$1.boolean().default(false),
|
|
159
|
+
env: z$1.enum(["production", "staging"]).default("production"),
|
|
160
|
+
registry: z$1.string().optional()
|
|
161
|
+
});
|
|
162
|
+
const RollbackHistoryEntrySchema = z$1.object({
|
|
163
|
+
blockHeight: z$1.number(),
|
|
164
|
+
blockTimestamp: z$1.string(),
|
|
165
|
+
txHash: z$1.string().optional(),
|
|
166
|
+
summary: z$1.string()
|
|
167
|
+
});
|
|
168
|
+
const RollbackSlotCheckSchema = z$1.object({
|
|
169
|
+
slot: z$1.string(),
|
|
170
|
+
ok: z$1.boolean(),
|
|
171
|
+
reason: z$1.string().optional()
|
|
172
|
+
});
|
|
173
|
+
const RollbackResultSchema = z$1.object({
|
|
174
|
+
status: z$1.enum([
|
|
175
|
+
"published",
|
|
176
|
+
"error",
|
|
177
|
+
"dry-run",
|
|
178
|
+
"list"
|
|
179
|
+
]),
|
|
180
|
+
registryUrl: z$1.string(),
|
|
181
|
+
txHash: z$1.string().optional(),
|
|
182
|
+
error: z$1.string().optional(),
|
|
183
|
+
history: z$1.array(RollbackHistoryEntrySchema).optional(),
|
|
184
|
+
verification: z$1.array(RollbackSlotCheckSchema).optional()
|
|
185
|
+
});
|
|
186
|
+
const PublishResultSchema = z$1.object({
|
|
187
|
+
status: z$1.enum([
|
|
127
188
|
"published",
|
|
128
189
|
"error",
|
|
129
190
|
"dry-run"
|
|
130
191
|
]),
|
|
131
|
-
registryUrl: z.string(),
|
|
132
|
-
txHash: z.string().optional(),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
192
|
+
registryUrl: z$1.string(),
|
|
193
|
+
txHash: z$1.string().optional(),
|
|
194
|
+
fingerprint: z$1.string().optional(),
|
|
195
|
+
slotPins: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
196
|
+
error: z$1.string().optional(),
|
|
197
|
+
built: z$1.array(z$1.string()).optional(),
|
|
198
|
+
skipped: z$1.array(z$1.string()).optional(),
|
|
199
|
+
deployResults: z$1.array(WorkspaceDeployResultSchema).optional()
|
|
200
|
+
});
|
|
201
|
+
const DeployOptionsSchema = z$1.object({
|
|
202
|
+
statusList: z$1.boolean().default(false),
|
|
203
|
+
env: z$1.enum(["production", "staging"]).default("production"),
|
|
204
|
+
build: z$1.boolean().default(true),
|
|
205
|
+
dryRun: z$1.boolean().default(false),
|
|
206
|
+
verbose: z$1.boolean().default(false),
|
|
207
|
+
packages: z$1.string().default("all").describe("Comma-separated keys, 'all' (default), or 'local' (only this repo's local plugins hosted via 'local:…')"),
|
|
208
|
+
network: z$1.enum(["mainnet", "testnet"]).optional(),
|
|
209
|
+
privateKey: z$1.string().optional(),
|
|
210
|
+
service: z$1.string().optional(),
|
|
211
|
+
registry: z$1.string().optional(),
|
|
212
|
+
fullUpload: z$1.boolean().default(false).describe("Re-upload every dist file instead of diffing unchanged files against the previous deploy")
|
|
213
|
+
});
|
|
214
|
+
const DeployManifestListEntrySchema = z$1.object({
|
|
215
|
+
key: z$1.string(),
|
|
216
|
+
blockHeight: z$1.number(),
|
|
217
|
+
blockTimestamp: z$1.string(),
|
|
218
|
+
txHash: z$1.string().optional(),
|
|
219
|
+
publishedAt: z$1.string().optional()
|
|
220
|
+
});
|
|
221
|
+
const DeployResultSchema = z$1.object({
|
|
222
|
+
status: z$1.enum([
|
|
150
223
|
"deployed",
|
|
151
224
|
"published",
|
|
152
225
|
"error",
|
|
153
|
-
"dry-run"
|
|
226
|
+
"dry-run",
|
|
227
|
+
"list"
|
|
154
228
|
]),
|
|
155
|
-
registryUrl: z.string(),
|
|
156
|
-
txHash: z.string().optional(),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
229
|
+
registryUrl: z$1.string(),
|
|
230
|
+
txHash: z$1.string().optional(),
|
|
231
|
+
fingerprint: z$1.string().optional(),
|
|
232
|
+
slotPins: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
233
|
+
history: z$1.array(DeployManifestListEntrySchema).optional(),
|
|
234
|
+
built: z$1.array(z$1.string()).optional(),
|
|
235
|
+
skipped: z$1.array(z$1.string()).optional(),
|
|
236
|
+
image: z$1.string().optional(),
|
|
237
|
+
service: z$1.string().optional(),
|
|
238
|
+
error: z$1.string().optional(),
|
|
239
|
+
deployResults: z$1.array(WorkspaceDeployResultSchema).optional()
|
|
163
240
|
});
|
|
164
241
|
function parseNearAmount(value) {
|
|
165
242
|
const match = value.replace(/[\s_,]/g, "").match(/^(\d+(?:\.\d+)?)near$/i);
|
|
@@ -167,224 +244,368 @@ function parseNearAmount(value) {
|
|
|
167
244
|
return Number.parseFloat(match[1]);
|
|
168
245
|
}
|
|
169
246
|
const MIN_PUBLISH_ALLOWANCE_NEAR = .3;
|
|
170
|
-
const KeyPublishOptionsSchema = z.object({
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
247
|
+
const KeyPublishOptionsSchema = z$1.object({
|
|
248
|
+
allowance: z$1.string().default("1NEAR").refine((val) => {
|
|
249
|
+
const amount = parseNearAmount(val);
|
|
250
|
+
return !Number.isNaN(amount) && amount >= MIN_PUBLISH_ALLOWANCE_NEAR;
|
|
251
|
+
}, { message: `Allowance must be at least ${MIN_PUBLISH_ALLOWANCE_NEAR} NEAR to cover the transaction cost` }),
|
|
252
|
+
env: z$1.enum(["production", "staging"]).default("production"),
|
|
253
|
+
registry: z$1.string().optional(),
|
|
254
|
+
removeOldKeys: z$1.boolean().optional()
|
|
255
|
+
});
|
|
256
|
+
const KeyPublishResultSchema = z$1.object({
|
|
257
|
+
status: z$1.enum(["published", "error"]),
|
|
258
|
+
account: z$1.string(),
|
|
259
|
+
network: z$1.enum(["mainnet", "testnet"]),
|
|
260
|
+
env: z$1.enum(["production", "staging"]),
|
|
261
|
+
contract: z$1.string(),
|
|
262
|
+
allowance: z$1.string(),
|
|
263
|
+
functionNames: z$1.array(z$1.string()),
|
|
264
|
+
publicKey: z$1.string().optional(),
|
|
265
|
+
privateKey: z$1.string().optional(),
|
|
266
|
+
error: z$1.string().optional()
|
|
267
|
+
});
|
|
268
|
+
const OverrideSectionSchema = z$1.enum([
|
|
186
269
|
"ui",
|
|
187
270
|
"api",
|
|
188
271
|
"host",
|
|
189
272
|
"plugins"
|
|
190
273
|
]);
|
|
191
|
-
const
|
|
274
|
+
const DEFAULT_LOGIN_EXPIRES_IN_SECONDS = 7776e3;
|
|
275
|
+
const LoginOptionsSchema = z$1.object({
|
|
276
|
+
key: z$1.boolean().default(false),
|
|
277
|
+
site: z$1.string().optional(),
|
|
278
|
+
expiresIn: z$1.number().int().positive().default(DEFAULT_LOGIN_EXPIRES_IN_SECONDS),
|
|
279
|
+
device: z$1.string().optional(),
|
|
280
|
+
env: z$1.enum(["production", "staging"]).default("production"),
|
|
281
|
+
registry: z$1.string().optional()
|
|
282
|
+
});
|
|
283
|
+
const LoginResultSchema = z$1.object({
|
|
284
|
+
status: z$1.enum(["logged-in", "error"]),
|
|
285
|
+
siteUrl: z$1.string(),
|
|
286
|
+
accountId: z$1.string().nullish(),
|
|
287
|
+
expiresAt: z$1.string().nullish(),
|
|
288
|
+
loginUrl: z$1.string().nullish(),
|
|
289
|
+
publishKey: z$1.object({
|
|
290
|
+
publicKey: z$1.string(),
|
|
291
|
+
network: z$1.enum(["mainnet", "testnet"]),
|
|
292
|
+
contract: z$1.string(),
|
|
293
|
+
exportedTo: z$1.string()
|
|
294
|
+
}).nullish(),
|
|
295
|
+
warning: z$1.string().nullish(),
|
|
296
|
+
error: z$1.string().optional()
|
|
297
|
+
});
|
|
298
|
+
const LogoutOptionsSchema = z$1.object({ configDir: z$1.string().optional() });
|
|
299
|
+
const LogoutResultSchema = z$1.object({
|
|
300
|
+
status: z$1.enum(["logged-out", "error"]),
|
|
301
|
+
revokedApiKey: z$1.boolean(),
|
|
302
|
+
removedPublishKey: z$1.boolean(),
|
|
303
|
+
warning: z$1.string().nullish(),
|
|
304
|
+
error: z$1.string().optional()
|
|
305
|
+
});
|
|
306
|
+
const RuntimeOverrideTargetBaseSchema = z$1.enum([
|
|
192
307
|
"ui",
|
|
193
308
|
"api",
|
|
194
309
|
"plugins"
|
|
195
310
|
]);
|
|
196
|
-
const RuntimeOverrideTargetSchema = z.union([RuntimeOverrideTargetBaseSchema, z.string().regex(/^plugins\.(\*|[a-z0-9_-]+)$/)]);
|
|
197
|
-
const InitOptionsSchema = z.object({
|
|
198
|
-
extends: z.string().optional(),
|
|
199
|
-
directory: z.string().optional(),
|
|
200
|
-
account: z.string().optional(),
|
|
201
|
-
domain: z.string().optional(),
|
|
202
|
-
source: z.string().optional(),
|
|
203
|
-
plugins: z.array(z.string()).optional(),
|
|
204
|
-
overrides: z.array(OverrideSectionSchema).optional(),
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
311
|
+
const RuntimeOverrideTargetSchema = z$1.union([RuntimeOverrideTargetBaseSchema, z$1.string().regex(/^plugins\.(\*|[a-z0-9_-]+)$/)]);
|
|
312
|
+
const InitOptionsSchema = z$1.object({
|
|
313
|
+
extends: z$1.string().optional(),
|
|
314
|
+
directory: z$1.string().optional(),
|
|
315
|
+
account: z$1.string().optional(),
|
|
316
|
+
domain: z$1.string().optional(),
|
|
317
|
+
source: z$1.string().optional(),
|
|
318
|
+
plugins: z$1.array(z$1.string()).optional(),
|
|
319
|
+
overrides: z$1.array(OverrideSectionSchema).optional(),
|
|
320
|
+
level: StarterLevelSchema.optional(),
|
|
321
|
+
noInteractive: z$1.boolean().default(false),
|
|
322
|
+
noInstall: z$1.boolean().default(false)
|
|
323
|
+
});
|
|
324
|
+
const InitResultSchema = z$1.object({
|
|
325
|
+
status: z$1.enum(["initialized", "error"]),
|
|
326
|
+
directory: z$1.string(),
|
|
327
|
+
extendsRef: z$1.string(),
|
|
328
|
+
account: z$1.string().optional(),
|
|
329
|
+
domain: z$1.string().optional(),
|
|
330
|
+
extends: z$1.string(),
|
|
331
|
+
plugins: z$1.array(z$1.string()).optional(),
|
|
332
|
+
overrides: z$1.array(OverrideSectionSchema).optional(),
|
|
333
|
+
filesCopied: z$1.number(),
|
|
334
|
+
timings: z$1.array(PhaseTimingSchema).optional(),
|
|
335
|
+
targetDir: z$1.string().optional(),
|
|
336
|
+
error: z$1.string().optional()
|
|
337
|
+
});
|
|
338
|
+
const SyncOptionsSchema = z$1.object({
|
|
339
|
+
dryRun: z$1.boolean().default(false),
|
|
340
|
+
noInstall: z$1.boolean().default(false),
|
|
341
|
+
json: z$1.boolean().default(false)
|
|
342
|
+
});
|
|
343
|
+
const SyncResultSchema = z$1.object({
|
|
344
|
+
status: z$1.enum([
|
|
229
345
|
"synced",
|
|
230
346
|
"dry-run",
|
|
231
347
|
"error"
|
|
232
348
|
]),
|
|
233
|
-
updated: z.array(z.string()),
|
|
234
|
-
skipped: z.array(z.string()),
|
|
235
|
-
added: z.array(z.string()),
|
|
236
|
-
conflicted: z.array(z.string()).default([]),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
349
|
+
updated: z$1.array(z$1.string()),
|
|
350
|
+
skipped: z$1.array(z$1.string()),
|
|
351
|
+
added: z$1.array(z$1.string()),
|
|
352
|
+
conflicted: z$1.array(z$1.string()).default([]),
|
|
353
|
+
/** retired stub files deleted silently (unmodified) — ADR 0023 migration */
|
|
354
|
+
retired: z$1.array(z$1.string()).optional(),
|
|
355
|
+
/** retired stub files that were hand-modified — backed up, then deleted */
|
|
356
|
+
retiredConflicted: z$1.array(z$1.string()).optional(),
|
|
357
|
+
/** where the retired hand-modified copies were backed up */
|
|
358
|
+
retiredBackupDir: z$1.string().optional(),
|
|
359
|
+
backupDir: z$1.string().optional(),
|
|
360
|
+
error: z$1.string().optional()
|
|
361
|
+
});
|
|
362
|
+
const UpgradeOptionsSchema = z$1.object({
|
|
363
|
+
dryRun: z$1.boolean().default(false),
|
|
364
|
+
noInstall: z$1.boolean().default(false),
|
|
365
|
+
noSync: z$1.boolean().default(false),
|
|
366
|
+
json: z$1.boolean().default(false),
|
|
367
|
+
migrationsOnly: z$1.boolean().default(false)
|
|
368
|
+
});
|
|
369
|
+
const UpgradeResultSchema = z$1.object({
|
|
370
|
+
status: z$1.enum([
|
|
249
371
|
"upgraded",
|
|
250
372
|
"dry-run",
|
|
251
373
|
"error"
|
|
252
374
|
]),
|
|
253
|
-
packages: z.array(z.object({
|
|
254
|
-
name: z.string(),
|
|
255
|
-
from: z.string().optional(),
|
|
256
|
-
to: z.string()
|
|
375
|
+
packages: z$1.array(z$1.object({
|
|
376
|
+
name: z$1.string(),
|
|
377
|
+
from: z$1.string().optional(),
|
|
378
|
+
to: z$1.string()
|
|
257
379
|
})),
|
|
258
380
|
sync: SyncResultSchema.optional(),
|
|
259
|
-
migrated: z.array(z.string()).optional(),
|
|
260
|
-
availablePlugins: z.array(z.string()).optional(),
|
|
261
|
-
selectedPlugins: z.array(z.string()).optional(),
|
|
262
|
-
timings: z.array(PhaseTimingSchema).optional(),
|
|
263
|
-
changelogUrl: z.string().optional(),
|
|
264
|
-
error: z.string().optional()
|
|
265
|
-
});
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
381
|
+
migrated: z$1.array(z$1.string()).optional(),
|
|
382
|
+
availablePlugins: z$1.array(z$1.string()).optional(),
|
|
383
|
+
selectedPlugins: z$1.array(z$1.string()).optional(),
|
|
384
|
+
timings: z$1.array(PhaseTimingSchema).optional(),
|
|
385
|
+
changelogUrl: z$1.string().optional(),
|
|
386
|
+
error: z$1.string().optional()
|
|
387
|
+
});
|
|
388
|
+
const DeployedVersionStatusSchema = z$1.object({
|
|
389
|
+
publishedFingerprint: z$1.string(),
|
|
390
|
+
servedFingerprint: z$1.string().optional(),
|
|
391
|
+
inSync: z$1.boolean(),
|
|
392
|
+
error: z$1.string().optional()
|
|
393
|
+
});
|
|
394
|
+
const StatusResultSchema = z$1.object({
|
|
395
|
+
status: z$1.enum(["ok", "error"]),
|
|
396
|
+
deployedVersion: DeployedVersionStatusSchema.optional(),
|
|
397
|
+
extends: z$1.string().optional(),
|
|
398
|
+
account: z$1.string().optional(),
|
|
399
|
+
domain: z$1.string().optional(),
|
|
400
|
+
packages: z$1.array(z$1.object({
|
|
401
|
+
name: z$1.string(),
|
|
402
|
+
installed: z$1.string().optional(),
|
|
403
|
+
latest: z$1.string().optional(),
|
|
404
|
+
isLinked: z$1.boolean().optional(),
|
|
405
|
+
specifier: z$1.string().optional()
|
|
277
406
|
})),
|
|
278
|
-
lastSync: z.string().optional(),
|
|
279
|
-
envFile: z.enum([
|
|
407
|
+
lastSync: z$1.string().optional(),
|
|
408
|
+
envFile: z$1.enum([
|
|
280
409
|
"found",
|
|
281
410
|
"missing",
|
|
282
411
|
"example-only"
|
|
283
412
|
]),
|
|
284
|
-
parentReachable: z.boolean().optional(),
|
|
285
|
-
error: z.string().optional()
|
|
286
|
-
});
|
|
287
|
-
const TypesGenOptionsSchema = z.object({
|
|
288
|
-
env: z.enum(["development", "production"]).optional(),
|
|
289
|
-
dryRun: z.boolean().default(false),
|
|
290
|
-
remotePlugins: z.array(z.string()).optional()
|
|
291
|
-
});
|
|
292
|
-
const TypesGenResultSchema = z.object({
|
|
293
|
-
status: z.enum(["success", "error"]),
|
|
294
|
-
generated: z.array(z.string()),
|
|
295
|
-
fetched: z.array(z.string()),
|
|
296
|
-
skipped: z.array(z.string()),
|
|
297
|
-
failed: z.array(z.string()),
|
|
298
|
-
error: z.string().optional()
|
|
299
|
-
});
|
|
300
|
-
const DbStudioOptionsSchema = z.object({ plugin: z.string().default("api") });
|
|
301
|
-
const DbStudioResultSchema = z.object({
|
|
302
|
-
status: z.enum(["success", "error"]),
|
|
303
|
-
plugin: z.string(),
|
|
304
|
-
source: z.enum(["local", "remote"]),
|
|
305
|
-
section: z.string(),
|
|
306
|
-
databaseSecret: z.string().optional(),
|
|
307
|
-
databaseUrl: z.string().optional(),
|
|
308
|
-
workspaceDir: z.string().optional(),
|
|
309
|
-
error: z.string().optional()
|
|
310
|
-
});
|
|
311
|
-
const DbDoctorOptionsSchema = z.object({ plugin: z.string() });
|
|
312
|
-
const DbDoctorResultSchema = z.object({
|
|
313
|
-
status: z.enum(["success", "error"]),
|
|
314
|
-
plugin: z.string(),
|
|
315
|
-
slug: z.string(),
|
|
316
|
-
journalTable: z.string(),
|
|
317
|
-
journalSchema: z.string(),
|
|
318
|
-
diagnosis: z.string(),
|
|
319
|
-
localMigrationCount: z.number(),
|
|
320
|
-
appliedHashCount: z.number(),
|
|
321
|
-
expectedTables: z.array(z.string()),
|
|
322
|
-
missingTables: z.array(z.string()),
|
|
323
|
-
workspaceDir: z.string().optional(),
|
|
324
|
-
dbSecret: z.string().optional(),
|
|
325
|
-
dbUrl: z.string().optional(),
|
|
326
|
-
error: z.string().optional()
|
|
327
|
-
});
|
|
328
|
-
const DbRepairOptionsSchema = z.object({
|
|
329
|
-
plugin: z.string(),
|
|
330
|
-
mode: z.enum(["history-reset", "recreate"]).default("history-reset"),
|
|
331
|
-
yes: z.boolean().optional()
|
|
332
|
-
});
|
|
333
|
-
const DbRepairResultSchema = z.object({
|
|
334
|
-
status: z.enum([
|
|
413
|
+
parentReachable: z$1.boolean().optional(),
|
|
414
|
+
error: z$1.string().optional()
|
|
415
|
+
});
|
|
416
|
+
const TypesGenOptionsSchema = z$1.object({
|
|
417
|
+
env: z$1.enum(["development", "production"]).optional(),
|
|
418
|
+
dryRun: z$1.boolean().default(false),
|
|
419
|
+
remotePlugins: z$1.array(z$1.string()).optional()
|
|
420
|
+
});
|
|
421
|
+
const TypesGenResultSchema = z$1.object({
|
|
422
|
+
status: z$1.enum(["success", "error"]),
|
|
423
|
+
generated: z$1.array(z$1.string()),
|
|
424
|
+
fetched: z$1.array(z$1.string()),
|
|
425
|
+
skipped: z$1.array(z$1.string()),
|
|
426
|
+
failed: z$1.array(z$1.string()),
|
|
427
|
+
error: z$1.string().optional()
|
|
428
|
+
});
|
|
429
|
+
const DbStudioOptionsSchema = z$1.object({ plugin: z$1.string().default("api") });
|
|
430
|
+
const DbStudioResultSchema = z$1.object({
|
|
431
|
+
status: z$1.enum(["success", "error"]),
|
|
432
|
+
plugin: z$1.string(),
|
|
433
|
+
source: z$1.enum(["local", "remote"]),
|
|
434
|
+
section: z$1.string(),
|
|
435
|
+
databaseSecret: z$1.string().optional(),
|
|
436
|
+
databaseUrl: z$1.string().optional(),
|
|
437
|
+
workspaceDir: z$1.string().optional(),
|
|
438
|
+
error: z$1.string().optional()
|
|
439
|
+
});
|
|
440
|
+
const DbDoctorOptionsSchema = z$1.object({ plugin: z$1.string() });
|
|
441
|
+
const DbDoctorResultSchema = z$1.object({
|
|
442
|
+
status: z$1.enum(["success", "error"]),
|
|
443
|
+
plugin: z$1.string(),
|
|
444
|
+
slug: z$1.string(),
|
|
445
|
+
journalTable: z$1.string(),
|
|
446
|
+
journalSchema: z$1.string(),
|
|
447
|
+
diagnosis: z$1.string(),
|
|
448
|
+
localMigrationCount: z$1.number(),
|
|
449
|
+
appliedHashCount: z$1.number(),
|
|
450
|
+
expectedTables: z$1.array(z$1.string()),
|
|
451
|
+
missingTables: z$1.array(z$1.string()),
|
|
452
|
+
workspaceDir: z$1.string().optional(),
|
|
453
|
+
dbSecret: z$1.string().optional(),
|
|
454
|
+
dbUrl: z$1.string().optional(),
|
|
455
|
+
error: z$1.string().optional()
|
|
456
|
+
});
|
|
457
|
+
const DbRepairOptionsSchema = z$1.object({
|
|
458
|
+
plugin: z$1.string(),
|
|
459
|
+
mode: z$1.enum(["history-reset", "recreate"]).default("history-reset"),
|
|
460
|
+
yes: z$1.boolean().optional()
|
|
461
|
+
});
|
|
462
|
+
const DbRepairResultSchema = z$1.object({
|
|
463
|
+
status: z$1.enum([
|
|
335
464
|
"repaired",
|
|
336
465
|
"refused",
|
|
337
466
|
"error"
|
|
338
467
|
]),
|
|
339
|
-
message: z.string(),
|
|
340
|
-
diagnosis: z.any(),
|
|
341
|
-
error: z.string().optional()
|
|
468
|
+
message: z$1.string(),
|
|
469
|
+
diagnosis: z$1.any(),
|
|
470
|
+
error: z$1.string().optional()
|
|
342
471
|
});
|
|
343
|
-
const ProcessRoleSchema = z.enum([
|
|
472
|
+
const ProcessRoleSchema = z$1.enum([
|
|
344
473
|
"standalone",
|
|
345
474
|
"workspace-parent",
|
|
346
475
|
"workspace-child"
|
|
347
476
|
]);
|
|
348
|
-
const PidEntrySchema = z.object({
|
|
349
|
-
pid: z.number(),
|
|
350
|
-
configDir: z.string(),
|
|
351
|
-
parentPid: z.number().optional(),
|
|
477
|
+
const PidEntrySchema = z$1.object({
|
|
478
|
+
pid: z$1.number(),
|
|
479
|
+
configDir: z$1.string(),
|
|
480
|
+
parentPid: z$1.number().optional(),
|
|
352
481
|
role: ProcessRoleSchema,
|
|
353
|
-
ports: z.object({
|
|
354
|
-
host: z.number().optional(),
|
|
355
|
-
api: z.number().optional(),
|
|
356
|
-
ui: z.number().optional(),
|
|
357
|
-
auth: z.number().optional()
|
|
482
|
+
ports: z$1.object({
|
|
483
|
+
host: z$1.number().optional(),
|
|
484
|
+
api: z$1.number().optional(),
|
|
485
|
+
ui: z$1.number().optional(),
|
|
486
|
+
auth: z$1.number().optional()
|
|
358
487
|
}).default({}),
|
|
359
|
-
budget: z.object({
|
|
360
|
-
min: z.number(),
|
|
361
|
-
max: z.number()
|
|
488
|
+
budget: z$1.object({
|
|
489
|
+
min: z$1.number(),
|
|
490
|
+
max: z$1.number()
|
|
362
491
|
}).optional(),
|
|
363
|
-
startedAt: z.number(),
|
|
364
|
-
description: z.string()
|
|
365
|
-
});
|
|
366
|
-
const PsResultSchema = z.object({
|
|
367
|
-
status: z.enum(["ok", "error"]),
|
|
368
|
-
entries: z.array(PidEntrySchema),
|
|
369
|
-
error: z.string().optional()
|
|
370
|
-
});
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
});
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
492
|
+
startedAt: z$1.number(),
|
|
493
|
+
description: z$1.string()
|
|
494
|
+
});
|
|
495
|
+
const PsResultSchema = z$1.object({
|
|
496
|
+
status: z$1.enum(["ok", "error"]),
|
|
497
|
+
entries: z$1.array(PidEntrySchema),
|
|
498
|
+
error: z$1.string().optional()
|
|
499
|
+
});
|
|
500
|
+
const LogsOptionsSchema = z$1.object({
|
|
501
|
+
service: z$1.string().optional(),
|
|
502
|
+
tail: z$1.number().int().positive().max(1e5).optional(),
|
|
503
|
+
follow: z$1.boolean().optional()
|
|
504
|
+
});
|
|
505
|
+
const LogsResultSchema = z$1.object({
|
|
506
|
+
logFile: z$1.string(),
|
|
507
|
+
lines: z$1.array(z$1.string())
|
|
508
|
+
});
|
|
509
|
+
const KillOptionsSchema = z$1.object({
|
|
510
|
+
configDir: z$1.string().optional(),
|
|
511
|
+
signal: z$1.enum(["SIGTERM", "SIGKILL"]).default("SIGTERM"),
|
|
512
|
+
all: z$1.boolean().default(false)
|
|
513
|
+
});
|
|
514
|
+
const KillResultSchema = z$1.object({
|
|
515
|
+
status: z$1.enum(["killed", "error"]),
|
|
516
|
+
killed: z$1.array(z$1.object({
|
|
517
|
+
pid: z$1.number(),
|
|
518
|
+
configDir: z$1.string()
|
|
381
519
|
})),
|
|
382
|
-
skipped: z.array(z.object({
|
|
383
|
-
pid: z.number(),
|
|
384
|
-
reason: z.string()
|
|
520
|
+
skipped: z$1.array(z$1.object({
|
|
521
|
+
pid: z$1.number(),
|
|
522
|
+
reason: z$1.string()
|
|
385
523
|
})),
|
|
386
|
-
error: z.string().optional()
|
|
387
|
-
});
|
|
524
|
+
error: z$1.string().optional()
|
|
525
|
+
});
|
|
526
|
+
const TypecheckOptionsSchema = z$1.object({ packages: z$1.string().default("all") });
|
|
527
|
+
const TypecheckWorkspaceResultSchema = z$1.object({
|
|
528
|
+
workspace: z$1.string(),
|
|
529
|
+
passed: z$1.boolean(),
|
|
530
|
+
output: z$1.string().optional(),
|
|
531
|
+
error: z$1.string().optional()
|
|
532
|
+
});
|
|
533
|
+
const TypecheckResultSchema = z$1.object({
|
|
534
|
+
status: z$1.enum(["success", "error"]),
|
|
535
|
+
checked: z$1.array(z$1.string()),
|
|
536
|
+
skipped: z$1.array(z$1.string()),
|
|
537
|
+
results: z$1.array(TypecheckWorkspaceResultSchema),
|
|
538
|
+
error: z$1.string().optional()
|
|
539
|
+
});
|
|
540
|
+
const InfraExportServiceSchema = z$1.object({
|
|
541
|
+
key: z$1.string(),
|
|
542
|
+
image: z$1.string(),
|
|
543
|
+
env: z$1.record(z$1.string(), z$1.string()).default({}),
|
|
544
|
+
ports: z$1.array(z$1.string()),
|
|
545
|
+
healthcheck: z$1.object({
|
|
546
|
+
test: z$1.array(z$1.string()),
|
|
547
|
+
interval: z$1.string(),
|
|
548
|
+
timeout: z$1.string(),
|
|
549
|
+
retries: z$1.number()
|
|
550
|
+
}).optional(),
|
|
551
|
+
volumes: z$1.array(z$1.string()).default([])
|
|
552
|
+
});
|
|
553
|
+
const InfraExportOptionsSchema = z$1.object({
|
|
554
|
+
target: z$1.enum(["ci", "local"]).default("ci"),
|
|
555
|
+
network: z$1.enum(["mainnet", "testnet"]).optional(),
|
|
556
|
+
configDir: z$1.string().optional()
|
|
557
|
+
});
|
|
558
|
+
const InfraExportResultSchema = z$1.object({
|
|
559
|
+
env: z$1.record(z$1.string(), z$1.string()),
|
|
560
|
+
services: z$1.array(InfraExportServiceSchema),
|
|
561
|
+
generatedAt: z$1.string(),
|
|
562
|
+
project: z$1.string(),
|
|
563
|
+
account: z$1.string(),
|
|
564
|
+
gateway: z$1.string()
|
|
565
|
+
});
|
|
566
|
+
const MfCheckOptionsSchema = z$1.object({ timeoutMs: z$1.number().default(15e3) });
|
|
567
|
+
const MfCheckRemoteResultSchema = z$1.object({
|
|
568
|
+
role: z$1.string(),
|
|
569
|
+
url: z$1.string(),
|
|
570
|
+
reachable: z$1.boolean(),
|
|
571
|
+
pluginVersion: z$1.string().nullable(),
|
|
572
|
+
ok: z$1.boolean(),
|
|
573
|
+
reason: z$1.string().optional()
|
|
574
|
+
});
|
|
575
|
+
const MfCheckResultSchema = z$1.object({
|
|
576
|
+
status: z$1.enum(["ok", "fail"]),
|
|
577
|
+
hostVersion: z$1.string().nullable(),
|
|
578
|
+
hostReachable: z$1.boolean(),
|
|
579
|
+
hostReason: z$1.string().optional(),
|
|
580
|
+
remotes: z$1.array(MfCheckRemoteResultSchema)
|
|
581
|
+
});
|
|
582
|
+
const commandOptionSchemas = {
|
|
583
|
+
dev: DevOptionsSchema,
|
|
584
|
+
start: StartOptionsSchema,
|
|
585
|
+
build: BuildOptionsSchema,
|
|
586
|
+
config: ConfigOptionsSchema,
|
|
587
|
+
registryUse: RegistryUseOptionsSchema,
|
|
588
|
+
pluginAdd: PluginAddOptionsSchema,
|
|
589
|
+
pluginRemove: PluginRemoveOptionsSchema,
|
|
590
|
+
pluginPublish: PluginPublishOptionsSchema,
|
|
591
|
+
publish: PublishOptionsSchema,
|
|
592
|
+
rollback: RollbackOptionsSchema,
|
|
593
|
+
deploy: DeployOptionsSchema,
|
|
594
|
+
keyPublish: KeyPublishOptionsSchema,
|
|
595
|
+
login: LoginOptionsSchema,
|
|
596
|
+
logout: LogoutOptionsSchema,
|
|
597
|
+
init: InitOptionsSchema,
|
|
598
|
+
sync: SyncOptionsSchema,
|
|
599
|
+
upgrade: UpgradeOptionsSchema,
|
|
600
|
+
typecheck: TypecheckOptionsSchema,
|
|
601
|
+
mfCheck: MfCheckOptionsSchema,
|
|
602
|
+
infraExport: InfraExportOptionsSchema,
|
|
603
|
+
dbStudio: DbStudioOptionsSchema,
|
|
604
|
+
dbDoctor: DbDoctorOptionsSchema,
|
|
605
|
+
dbRepair: DbRepairOptionsSchema,
|
|
606
|
+
logs: LogsOptionsSchema,
|
|
607
|
+
kill: KillOptionsSchema
|
|
608
|
+
};
|
|
388
609
|
const bosContract = oc.router({
|
|
389
610
|
dev: oc.route({
|
|
390
611
|
method: "POST",
|
|
@@ -402,6 +623,10 @@ const bosContract = oc.router({
|
|
|
402
623
|
method: "GET",
|
|
403
624
|
path: "/config"
|
|
404
625
|
}).input(ConfigOptionsSchema).output(ConfigResultSchema),
|
|
626
|
+
registryUse: oc.route({
|
|
627
|
+
method: "POST",
|
|
628
|
+
path: "/registry/use"
|
|
629
|
+
}).input(RegistryUseOptionsSchema).output(RegistryUseResultSchema),
|
|
405
630
|
pluginAdd: oc.route({
|
|
406
631
|
method: "POST",
|
|
407
632
|
path: "/plugin/add"
|
|
@@ -422,6 +647,10 @@ const bosContract = oc.router({
|
|
|
422
647
|
method: "POST",
|
|
423
648
|
path: "/publish"
|
|
424
649
|
}).input(PublishOptionsSchema).output(PublishResultSchema),
|
|
650
|
+
rollback: oc.route({
|
|
651
|
+
method: "POST",
|
|
652
|
+
path: "/rollback"
|
|
653
|
+
}).input(RollbackOptionsSchema).output(RollbackResultSchema),
|
|
425
654
|
deploy: oc.route({
|
|
426
655
|
method: "POST",
|
|
427
656
|
path: "/deploy"
|
|
@@ -430,6 +659,14 @@ const bosContract = oc.router({
|
|
|
430
659
|
method: "POST",
|
|
431
660
|
path: "/key/publish"
|
|
432
661
|
}).input(KeyPublishOptionsSchema).output(KeyPublishResultSchema),
|
|
662
|
+
login: oc.route({
|
|
663
|
+
method: "POST",
|
|
664
|
+
path: "/login"
|
|
665
|
+
}).input(LoginOptionsSchema).output(LoginResultSchema),
|
|
666
|
+
logout: oc.route({
|
|
667
|
+
method: "POST",
|
|
668
|
+
path: "/logout"
|
|
669
|
+
}).input(LogoutOptionsSchema).output(LogoutResultSchema),
|
|
433
670
|
init: oc.route({
|
|
434
671
|
method: "POST",
|
|
435
672
|
path: "/init"
|
|
@@ -466,12 +703,28 @@ const bosContract = oc.router({
|
|
|
466
703
|
method: "GET",
|
|
467
704
|
path: "/ps"
|
|
468
705
|
}).output(PsResultSchema),
|
|
706
|
+
logs: oc.route({
|
|
707
|
+
method: "GET",
|
|
708
|
+
path: "/logs"
|
|
709
|
+
}).input(LogsOptionsSchema).output(LogsResultSchema),
|
|
469
710
|
kill: oc.route({
|
|
470
711
|
method: "POST",
|
|
471
712
|
path: "/kill"
|
|
472
|
-
}).input(KillOptionsSchema).output(KillResultSchema)
|
|
713
|
+
}).input(KillOptionsSchema).output(KillResultSchema),
|
|
714
|
+
typecheck: oc.route({
|
|
715
|
+
method: "POST",
|
|
716
|
+
path: "/typecheck"
|
|
717
|
+
}).input(TypecheckOptionsSchema).output(TypecheckResultSchema),
|
|
718
|
+
mfCheck: oc.route({
|
|
719
|
+
method: "POST",
|
|
720
|
+
path: "/mf/check"
|
|
721
|
+
}).input(MfCheckOptionsSchema).output(MfCheckResultSchema),
|
|
722
|
+
infraExport: oc.route({
|
|
723
|
+
method: "POST",
|
|
724
|
+
path: "/infra/export"
|
|
725
|
+
}).input(InfraExportOptionsSchema).output(InfraExportResultSchema)
|
|
473
726
|
});
|
|
474
727
|
|
|
475
728
|
//#endregion
|
|
476
|
-
export { BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbDoctorOptionsSchema, DbDoctorResultSchema, DbRepairOptionsSchema, DbRepairResultSchema, DbStudioOptionsSchema, DbStudioResultSchema, DeployOptionsSchema, DeployResultSchema, DevOptionsSchema, DevResultSchema, InitOptionsSchema, InitResultSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, KillOptionsSchema, KillResultSchema, OverrideSectionSchema, PhaseTimingSchema, PidEntrySchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, ProcessRoleSchema, PsResultSchema, PublishOptionsSchema, PublishResultSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UpgradeOptionsSchema, UpgradeResultSchema, WorkspaceDeployResultSchema, bosContract };
|
|
729
|
+
export { BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbDoctorOptionsSchema, DbDoctorResultSchema, DbRepairOptionsSchema, DbRepairResultSchema, DbStudioOptionsSchema, DbStudioResultSchema, DeployManifestListEntrySchema, DeployOptionsSchema, DeployResultSchema, DeployedVersionStatusSchema, DevOptionsSchema, DevResultSchema, InfraExportOptionsSchema, InfraExportResultSchema, InfraExportServiceSchema, InitOptionsSchema, InitResultSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, KillOptionsSchema, KillResultSchema, LoginOptionsSchema, LoginResultSchema, LogoutOptionsSchema, LogoutResultSchema, LogsOptionsSchema, LogsResultSchema, MfCheckOptionsSchema, MfCheckRemoteResultSchema, MfCheckResultSchema, OverrideSectionSchema, PhaseTimingSchema, PidEntrySchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, ProcessRoleSchema, PsResultSchema, PublishOptionsSchema, PublishResultSchema, RegistryUseOptionsSchema, RegistryUseResultSchema, RollbackHistoryEntrySchema, RollbackOptionsSchema, RollbackResultSchema, RollbackSlotCheckSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypecheckOptionsSchema, TypecheckResultSchema, TypecheckWorkspaceResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UpgradeOptionsSchema, UpgradeResultSchema, WorkspaceDeployResultSchema, bosContract, commandOptionSchemas };
|
|
477
730
|
//# sourceMappingURL=contract.mjs.map
|