@runa-ai/runa-cli 0.5.26
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.
Potentially problematic release.
This version of @runa-ai/runa-cli might be problematic. Click here for more details.
- package/dist/cli/contract-mode.d.ts +2 -0
- package/dist/cli/contract-mode.d.ts.map +1 -0
- package/dist/cli/contract-output.d.ts +4 -0
- package/dist/cli/contract-output.d.ts.map +1 -0
- package/dist/cli/early-flags.d.ts +10 -0
- package/dist/cli/early-flags.d.ts.map +1 -0
- package/dist/cli/error-handler.d.ts +28 -0
- package/dist/cli/error-handler.d.ts.map +1 -0
- package/dist/cli/exec.d.ts +15 -0
- package/dist/cli/exec.d.ts.map +1 -0
- package/dist/cli/index.d.ts +16 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/json-output.d.ts +4 -0
- package/dist/cli/json-output.d.ts.map +1 -0
- package/dist/cli/non-interactive.d.ts +4 -0
- package/dist/cli/non-interactive.d.ts.map +1 -0
- package/dist/cli/output-format.d.ts +5 -0
- package/dist/cli/output-format.d.ts.map +1 -0
- package/dist/cli/signal-handler.d.ts +32 -0
- package/dist/cli/signal-handler.d.ts.map +1 -0
- package/dist/commands/build/actors/build.d.ts +32 -0
- package/dist/commands/build/actors/build.d.ts.map +1 -0
- package/dist/commands/build/actors/clean.d.ts +36 -0
- package/dist/commands/build/actors/clean.d.ts.map +1 -0
- package/dist/commands/build/actors/db-sync.d.ts +30 -0
- package/dist/commands/build/actors/db-sync.d.ts.map +1 -0
- package/dist/commands/build/actors/index.d.ts +20 -0
- package/dist/commands/build/actors/index.d.ts.map +1 -0
- package/dist/commands/build/actors/manifest.d.ts +34 -0
- package/dist/commands/build/actors/manifest.d.ts.map +1 -0
- package/dist/commands/build/actors/setup.d.ts +74 -0
- package/dist/commands/build/actors/setup.d.ts.map +1 -0
- package/dist/commands/build/actors/static-checks.d.ts +36 -0
- package/dist/commands/build/actors/static-checks.d.ts.map +1 -0
- package/dist/commands/build/actors/validate.d.ts +28 -0
- package/dist/commands/build/actors/validate.d.ts.map +1 -0
- package/dist/commands/build/commands/build.d.ts +25 -0
- package/dist/commands/build/commands/build.d.ts.map +1 -0
- package/dist/commands/build/contract.d.ts +213 -0
- package/dist/commands/build/contract.d.ts.map +1 -0
- package/dist/commands/build/guards.d.ts +106 -0
- package/dist/commands/build/guards.d.ts.map +1 -0
- package/dist/commands/build/index.d.ts +9 -0
- package/dist/commands/build/index.d.ts.map +1 -0
- package/dist/commands/build/machine.d.ts +212 -0
- package/dist/commands/build/machine.d.ts.map +1 -0
- package/dist/commands/build/types.d.ts +75 -0
- package/dist/commands/build/types.d.ts.map +1 -0
- package/dist/commands/cache.d.ts +32 -0
- package/dist/commands/cache.d.ts.map +1 -0
- package/dist/commands/check/commands/check.d.ts +26 -0
- package/dist/commands/check/commands/check.d.ts.map +1 -0
- package/dist/commands/check/index.d.ts +24 -0
- package/dist/commands/check/index.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-checks.d.ts +14 -0
- package/dist/commands/ci/commands/ci-checks.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-layer-content.d.ts +40 -0
- package/dist/commands/ci/commands/ci-layer-content.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-pr-capabilities.d.ts +30 -0
- package/dist/commands/ci/commands/ci-pr-capabilities.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-prod-apply.d.ts +10 -0
- package/dist/commands/ci/commands/ci-prod-apply.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-prod-db-operations.d.ts +98 -0
- package/dist/commands/ci/commands/ci-prod-db-operations.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-prod-github.d.ts +28 -0
- package/dist/commands/ci/commands/ci-prod-github.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-prod-utils.d.ts +33 -0
- package/dist/commands/ci/commands/ci-prod-utils.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-resolvers.d.ts +71 -0
- package/dist/commands/ci/commands/ci-resolvers.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-static.d.ts +18 -0
- package/dist/commands/ci/commands/ci-static.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-supabase-local.d.ts +51 -0
- package/dist/commands/ci/commands/ci-supabase-local.d.ts.map +1 -0
- package/dist/commands/ci/index.d.ts +23 -0
- package/dist/commands/ci/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/build/app-build.d.ts +31 -0
- package/dist/commands/ci/machine/actors/build/app-build.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/build/app-start.d.ts +47 -0
- package/dist/commands/ci/machine/actors/build/app-start.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/build/build-and-playwright.d.ts +41 -0
- package/dist/commands/ci/machine/actors/build/build-and-playwright.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/build/index.d.ts +12 -0
- package/dist/commands/ci/machine/actors/build/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/build/playwright-install.d.ts +30 -0
- package/dist/commands/ci/machine/actors/build/playwright-install.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/build/static-checks.d.ts +35 -0
- package/dist/commands/ci/machine/actors/build/static-checks.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/apply-seeds.d.ts +32 -0
- package/dist/commands/ci/machine/actors/db/apply-seeds.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts +38 -0
- package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/index.d.ts +16 -0
- package/dist/commands/ci/machine/actors/db/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/pgtap-install.d.ts +33 -0
- package/dist/commands/ci/machine/actors/db/pgtap-install.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/production-preview.d.ts +34 -0
- package/dist/commands/ci/machine/actors/db/production-preview.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/pull-production.d.ts +35 -0
- package/dist/commands/ci/machine/actors/db/pull-production.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/reset.d.ts +31 -0
- package/dist/commands/ci/machine/actors/db/reset.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/schema-stats.d.ts +141 -0
- package/dist/commands/ci/machine/actors/db/schema-stats.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/setup-roles.d.ts +37 -0
- package/dist/commands/ci/machine/actors/db/setup-roles.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/db/sync-schema.d.ts +48 -0
- package/dist/commands/ci/machine/actors/db/sync-schema.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/finalize/github.d.ts +66 -0
- package/dist/commands/ci/machine/actors/finalize/github.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/finalize/index.d.ts +9 -0
- package/dist/commands/ci/machine/actors/finalize/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/finalize/summary.d.ts +32 -0
- package/dist/commands/ci/machine/actors/finalize/summary.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/index.d.ts +17 -0
- package/dist/commands/ci/machine/actors/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/setup/index.d.ts +10 -0
- package/dist/commands/ci/machine/actors/setup/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/setup/local.d.ts +41 -0
- package/dist/commands/ci/machine/actors/setup/local.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/setup/pr-common.d.ts +145 -0
- package/dist/commands/ci/machine/actors/setup/pr-common.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/setup/pr-local.d.ts +17 -0
- package/dist/commands/ci/machine/actors/setup/pr-local.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/test/capabilities.d.ts +66 -0
- package/dist/commands/ci/machine/actors/test/capabilities.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/test/index.d.ts +9 -0
- package/dist/commands/ci/machine/actors/test/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/actors/test/run-layers.d.ts +43 -0
- package/dist/commands/ci/machine/actors/test/run-layers.d.ts.map +1 -0
- package/dist/commands/ci/machine/commands/ci-local.d.ts +18 -0
- package/dist/commands/ci/machine/commands/ci-local.d.ts.map +1 -0
- package/dist/commands/ci/machine/commands/ci-pr.d.ts +14 -0
- package/dist/commands/ci/machine/commands/ci-pr.d.ts.map +1 -0
- package/dist/commands/ci/machine/commands/index.d.ts +13 -0
- package/dist/commands/ci/machine/commands/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/commands/machine-runner.d.ts +36 -0
- package/dist/commands/ci/machine/commands/machine-runner.d.ts.map +1 -0
- package/dist/commands/ci/machine/contract.d.ts +393 -0
- package/dist/commands/ci/machine/contract.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/github-comment-types.d.ts +87 -0
- package/dist/commands/ci/machine/formatters/github-comment-types.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/github-comment.d.ts +44 -0
- package/dist/commands/ci/machine/formatters/github-comment.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/index.d.ts +13 -0
- package/dist/commands/ci/machine/formatters/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/sections/final-comment.d.ts +18 -0
- package/dist/commands/ci/machine/formatters/sections/final-comment.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/sections/format-helpers.d.ts +63 -0
- package/dist/commands/ci/machine/formatters/sections/format-helpers.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/sections/index.d.ts +10 -0
- package/dist/commands/ci/machine/formatters/sections/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/sections/progress-comment.d.ts +14 -0
- package/dist/commands/ci/machine/formatters/sections/progress-comment.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/sections/schema-matrix.d.ts +25 -0
- package/dist/commands/ci/machine/formatters/sections/schema-matrix.d.ts.map +1 -0
- package/dist/commands/ci/machine/formatters/summary.d.ts +27 -0
- package/dist/commands/ci/machine/formatters/summary.d.ts.map +1 -0
- package/dist/commands/ci/machine/guards.d.ts +136 -0
- package/dist/commands/ci/machine/guards.d.ts.map +1 -0
- package/dist/commands/ci/machine/helpers.d.ts +88 -0
- package/dist/commands/ci/machine/helpers.d.ts.map +1 -0
- package/dist/commands/ci/machine/index.d.ts +21 -0
- package/dist/commands/ci/machine/index.d.ts.map +1 -0
- package/dist/commands/ci/machine/machine.d.ts +315 -0
- package/dist/commands/ci/machine/machine.d.ts.map +1 -0
- package/dist/commands/ci/machine/types.d.ts +264 -0
- package/dist/commands/ci/machine/types.d.ts.map +1 -0
- package/dist/commands/ci/utils/ai-report.d.ts +70 -0
- package/dist/commands/ci/utils/ai-report.d.ts.map +1 -0
- package/dist/commands/ci/utils/app-process.d.ts +29 -0
- package/dist/commands/ci/utils/app-process.d.ts.map +1 -0
- package/dist/commands/ci/utils/app-runtime.d.ts +27 -0
- package/dist/commands/ci/utils/app-runtime.d.ts.map +1 -0
- package/dist/commands/ci/utils/ci-config.d.ts +22 -0
- package/dist/commands/ci/utils/ci-config.d.ts.map +1 -0
- package/dist/commands/ci/utils/ci-env-schema.d.ts +128 -0
- package/dist/commands/ci/utils/ci-env-schema.d.ts.map +1 -0
- package/dist/commands/ci/utils/ci-logging.d.ts +16 -0
- package/dist/commands/ci/utils/ci-logging.d.ts.map +1 -0
- package/dist/commands/ci/utils/ci-summary.d.ts +109 -0
- package/dist/commands/ci/utils/ci-summary.d.ts.map +1 -0
- package/dist/commands/ci/utils/config-readers.d.ts +46 -0
- package/dist/commands/ci/utils/config-readers.d.ts.map +1 -0
- package/dist/commands/ci/utils/db-url-utils.d.ts +81 -0
- package/dist/commands/ci/utils/db-url-utils.d.ts.map +1 -0
- package/dist/commands/ci/utils/e2e-auth-setup.d.ts +78 -0
- package/dist/commands/ci/utils/e2e-auth-setup.d.ts.map +1 -0
- package/dist/commands/ci/utils/execa-helpers.d.ts +14 -0
- package/dist/commands/ci/utils/execa-helpers.d.ts.map +1 -0
- package/dist/commands/ci/utils/exit-code-computation.d.ts +62 -0
- package/dist/commands/ci/utils/exit-code-computation.d.ts.map +1 -0
- package/dist/commands/ci/utils/github-api.d.ts +54 -0
- package/dist/commands/ci/utils/github-api.d.ts.map +1 -0
- package/dist/commands/ci/utils/github.d.ts +43 -0
- package/dist/commands/ci/utils/github.d.ts.map +1 -0
- package/dist/commands/ci/utils/index.d.ts +25 -0
- package/dist/commands/ci/utils/index.d.ts.map +1 -0
- package/dist/commands/ci/utils/pgtap-installer.d.ts +34 -0
- package/dist/commands/ci/utils/pgtap-installer.d.ts.map +1 -0
- package/dist/commands/ci/utils/rls-verification.d.ts +72 -0
- package/dist/commands/ci/utils/rls-verification.d.ts.map +1 -0
- package/dist/commands/ci/utils/schema-operations.d.ts +42 -0
- package/dist/commands/ci/utils/schema-operations.d.ts.map +1 -0
- package/dist/commands/ci/utils/seed-operations.d.ts +101 -0
- package/dist/commands/ci/utils/seed-operations.d.ts.map +1 -0
- package/dist/commands/ci/utils/test-parallel.d.ts +45 -0
- package/dist/commands/ci/utils/test-parallel.d.ts.map +1 -0
- package/dist/commands/ci/utils/timestamp-invariants.d.ts +13 -0
- package/dist/commands/ci/utils/timestamp-invariants.d.ts.map +1 -0
- package/dist/commands/db/apply/actors.d.ts +42 -0
- package/dist/commands/db/apply/actors.d.ts.map +1 -0
- package/dist/commands/db/apply/contract.d.ts +64 -0
- package/dist/commands/db/apply/contract.d.ts.map +1 -0
- package/dist/commands/db/apply/helpers/advisory-lock.d.ts +18 -0
- package/dist/commands/db/apply/helpers/advisory-lock.d.ts.map +1 -0
- package/dist/commands/db/apply/helpers/index.d.ts +11 -0
- package/dist/commands/db/apply/helpers/index.d.ts.map +1 -0
- package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts +122 -0
- package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts.map +1 -0
- package/dist/commands/db/apply/helpers/retry-logic.d.ts +51 -0
- package/dist/commands/db/apply/helpers/retry-logic.d.ts.map +1 -0
- package/dist/commands/db/apply/index.d.ts +9 -0
- package/dist/commands/db/apply/index.d.ts.map +1 -0
- package/dist/commands/db/apply/machine.d.ts +126 -0
- package/dist/commands/db/apply/machine.d.ts.map +1 -0
- package/dist/commands/db/commands/db-apply.d.ts +6 -0
- package/dist/commands/db/commands/db-apply.d.ts.map +1 -0
- package/dist/commands/db/commands/db-audit.d.ts +13 -0
- package/dist/commands/db/commands/db-audit.d.ts.map +1 -0
- package/dist/commands/db/commands/db-backup.d.ts +18 -0
- package/dist/commands/db/commands/db-backup.d.ts.map +1 -0
- package/dist/commands/db/commands/db-cleanup.d.ts +3 -0
- package/dist/commands/db/commands/db-cleanup.d.ts.map +1 -0
- package/dist/commands/db/commands/db-derive-role-passwords.d.ts +18 -0
- package/dist/commands/db/commands/db-derive-role-passwords.d.ts.map +1 -0
- package/dist/commands/db/commands/db-derive-urls.d.ts +14 -0
- package/dist/commands/db/commands/db-derive-urls.d.ts.map +1 -0
- package/dist/commands/db/commands/db-diagram.d.ts +21 -0
- package/dist/commands/db/commands/db-diagram.d.ts.map +1 -0
- package/dist/commands/db/commands/db-drizzle.d.ts +17 -0
- package/dist/commands/db/commands/db-drizzle.d.ts.map +1 -0
- package/dist/commands/db/commands/db-extension.d.ts +16 -0
- package/dist/commands/db/commands/db-extension.d.ts.map +1 -0
- package/dist/commands/db/commands/db-generate-password.d.ts +19 -0
- package/dist/commands/db/commands/db-generate-password.d.ts.map +1 -0
- package/dist/commands/db/commands/db-lifecycle.d.ts +43 -0
- package/dist/commands/db/commands/db-lifecycle.d.ts.map +1 -0
- package/dist/commands/db/commands/db-rollback.d.ts +17 -0
- package/dist/commands/db/commands/db-rollback.d.ts.map +1 -0
- package/dist/commands/db/commands/db-schema.d.ts +51 -0
- package/dist/commands/db/commands/db-schema.d.ts.map +1 -0
- package/dist/commands/db/commands/db-seed-metadata.d.ts +20 -0
- package/dist/commands/db/commands/db-seed-metadata.d.ts.map +1 -0
- package/dist/commands/db/commands/db-seed-verify.d.ts +13 -0
- package/dist/commands/db/commands/db-seed-verify.d.ts.map +1 -0
- package/dist/commands/db/commands/db-seed.d.ts +32 -0
- package/dist/commands/db/commands/db-seed.d.ts.map +1 -0
- package/dist/commands/db/commands/db-snapshot.d.ts +12 -0
- package/dist/commands/db/commands/db-snapshot.d.ts.map +1 -0
- package/dist/commands/db/commands/db-stack.d.ts +17 -0
- package/dist/commands/db/commands/db-stack.d.ts.map +1 -0
- package/dist/commands/db/commands/db-stats.d.ts +15 -0
- package/dist/commands/db/commands/db-stats.d.ts.map +1 -0
- package/dist/commands/db/commands/db-sync.d.ts +3 -0
- package/dist/commands/db/commands/db-sync.d.ts.map +1 -0
- package/dist/commands/db/commands/db-test.d.ts +27 -0
- package/dist/commands/db/commands/db-test.d.ts.map +1 -0
- package/dist/commands/db/constants.d.ts +97 -0
- package/dist/commands/db/constants.d.ts.map +1 -0
- package/dist/commands/db/extension-registry.d.ts +81 -0
- package/dist/commands/db/extension-registry.d.ts.map +1 -0
- package/dist/commands/db/index.d.ts +17 -0
- package/dist/commands/db/index.d.ts.map +1 -0
- package/dist/commands/db/preflight/actors.d.ts +6 -0
- package/dist/commands/db/preflight/actors.d.ts.map +1 -0
- package/dist/commands/db/preflight/contract.d.ts +53 -0
- package/dist/commands/db/preflight/contract.d.ts.map +1 -0
- package/dist/commands/db/preflight/index.d.ts +3 -0
- package/dist/commands/db/preflight/index.d.ts.map +1 -0
- package/dist/commands/db/sync/actors.d.ts +93 -0
- package/dist/commands/db/sync/actors.d.ts.map +1 -0
- package/dist/commands/db/sync/contract.d.ts +155 -0
- package/dist/commands/db/sync/contract.d.ts.map +1 -0
- package/dist/commands/db/sync/index.d.ts +10 -0
- package/dist/commands/db/sync/index.d.ts.map +1 -0
- package/dist/commands/db/sync/machine.d.ts +159 -0
- package/dist/commands/db/sync/machine.d.ts.map +1 -0
- package/dist/commands/db/types.d.ts +107 -0
- package/dist/commands/db/types.d.ts.map +1 -0
- package/dist/commands/db/utils/db-target.d.ts +53 -0
- package/dist/commands/db/utils/db-target.d.ts.map +1 -0
- package/dist/commands/db/utils/db-url-builder.d.ts +34 -0
- package/dist/commands/db/utils/db-url-builder.d.ts.map +1 -0
- package/dist/commands/db/utils/error-handlers.d.ts +17 -0
- package/dist/commands/db/utils/error-handlers.d.ts.map +1 -0
- package/dist/commands/db/utils/preflight-check.d.ts +20 -0
- package/dist/commands/db/utils/preflight-check.d.ts.map +1 -0
- package/dist/commands/db/utils/psql.d.ts +17 -0
- package/dist/commands/db/utils/psql.d.ts.map +1 -0
- package/dist/commands/db/utils/schema-detector.d.ts +32 -0
- package/dist/commands/db/utils/schema-detector.d.ts.map +1 -0
- package/dist/commands/db/utils/schema-sync.d.ts +59 -0
- package/dist/commands/db/utils/schema-sync.d.ts.map +1 -0
- package/dist/commands/db/utils/script-runner.d.ts +34 -0
- package/dist/commands/db/utils/script-runner.d.ts.map +1 -0
- package/dist/commands/db/utils/seed-manager.d.ts +23 -0
- package/dist/commands/db/utils/seed-manager.d.ts.map +1 -0
- package/dist/commands/db/utils/semantic-mapper.d.ts +119 -0
- package/dist/commands/db/utils/semantic-mapper.d.ts.map +1 -0
- package/dist/commands/db/utils/sql-table-extractor.d.ts +56 -0
- package/dist/commands/db/utils/sql-table-extractor.d.ts.map +1 -0
- package/dist/commands/db/utils/stack-detector.d.ts +34 -0
- package/dist/commands/db/utils/stack-detector.d.ts.map +1 -0
- package/dist/commands/db/utils/table-registry.d.ts +112 -0
- package/dist/commands/db/utils/table-registry.d.ts.map +1 -0
- package/dist/commands/dev/actors/index.d.ts +14 -0
- package/dist/commands/dev/actors/index.d.ts.map +1 -0
- package/dist/commands/dev/commands/dev.d.ts +15 -0
- package/dist/commands/dev/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev/contract.d.ts +46 -0
- package/dist/commands/dev/contract.d.ts.map +1 -0
- package/dist/commands/dev/guards.d.ts +26 -0
- package/dist/commands/dev/guards.d.ts.map +1 -0
- package/dist/commands/dev/machine.d.ts +121 -0
- package/dist/commands/dev/machine.d.ts.map +1 -0
- package/dist/commands/dev/types.d.ts +44 -0
- package/dist/commands/dev/types.d.ts.map +1 -0
- package/dist/commands/env/commands/env-check.d.ts +24 -0
- package/dist/commands/env/commands/env-check.d.ts.map +1 -0
- package/dist/commands/env/commands/env-encrypt.d.ts +19 -0
- package/dist/commands/env/commands/env-encrypt.d.ts.map +1 -0
- package/dist/commands/env/commands/env-pull.d.ts +49 -0
- package/dist/commands/env/commands/env-pull.d.ts.map +1 -0
- package/dist/commands/env/commands/env-setup.d.ts +51 -0
- package/dist/commands/env/commands/env-setup.d.ts.map +1 -0
- package/dist/commands/env/commands/env-sync.d.ts +18 -0
- package/dist/commands/env/commands/env-sync.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/action.d.ts +18 -0
- package/dist/commands/env/commands/setup/action.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/auth.d.ts +25 -0
- package/dist/commands/env/commands/setup/auth.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/file-export.d.ts +20 -0
- package/dist/commands/env/commands/setup/file-export.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/github-api.d.ts +17 -0
- package/dist/commands/env/commands/setup/github-api.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/helpers.d.ts +117 -0
- package/dist/commands/env/commands/setup/helpers.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/index.d.ts +16 -0
- package/dist/commands/env/commands/setup/index.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/parsers.d.ts +66 -0
- package/dist/commands/env/commands/setup/parsers.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/prompts.d.ts +41 -0
- package/dist/commands/env/commands/setup/prompts.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/supabase-api.d.ts +30 -0
- package/dist/commands/env/commands/setup/supabase-api.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/types.d.ts +105 -0
- package/dist/commands/env/commands/setup/types.d.ts.map +1 -0
- package/dist/commands/env/commands/setup/vercel-api.d.ts +34 -0
- package/dist/commands/env/commands/setup/vercel-api.d.ts.map +1 -0
- package/dist/commands/env/constants/local-supabase.d.ts +43 -0
- package/dist/commands/env/constants/local-supabase.d.ts.map +1 -0
- package/dist/commands/env/index.d.ts +14 -0
- package/dist/commands/env/index.d.ts.map +1 -0
- package/dist/commands/hotfix/actors.d.ts +88 -0
- package/dist/commands/hotfix/actors.d.ts.map +1 -0
- package/dist/commands/hotfix/commands/hotfix-complete.d.ts +23 -0
- package/dist/commands/hotfix/commands/hotfix-complete.d.ts.map +1 -0
- package/dist/commands/hotfix/commands/hotfix-create.d.ts +23 -0
- package/dist/commands/hotfix/commands/hotfix-create.d.ts.map +1 -0
- package/dist/commands/hotfix/commands/hotfix-deploy.d.ts +23 -0
- package/dist/commands/hotfix/commands/hotfix-deploy.d.ts.map +1 -0
- package/dist/commands/hotfix/commands/hotfix-status.d.ts +20 -0
- package/dist/commands/hotfix/commands/hotfix-status.d.ts.map +1 -0
- package/dist/commands/hotfix/contract.d.ts +219 -0
- package/dist/commands/hotfix/contract.d.ts.map +1 -0
- package/dist/commands/hotfix/index.d.ts +15 -0
- package/dist/commands/hotfix/index.d.ts.map +1 -0
- package/dist/commands/hotfix/machine.d.ts +242 -0
- package/dist/commands/hotfix/machine.d.ts.map +1 -0
- package/dist/commands/hotfix/metadata.d.ts +37 -0
- package/dist/commands/hotfix/metadata.d.ts.map +1 -0
- package/dist/commands/hotfix/utils/hotfix-machine-helper.d.ts +58 -0
- package/dist/commands/hotfix/utils/hotfix-machine-helper.d.ts.map +1 -0
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/action.d.ts +14 -0
- package/dist/commands/inject-test-attrs/action.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/commands/inject-test-attrs.d.ts +16 -0
- package/dist/commands/inject-test-attrs/commands/inject-test-attrs.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/contract.d.ts +52 -0
- package/dist/commands/inject-test-attrs/contract.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/formatter.d.ts +13 -0
- package/dist/commands/inject-test-attrs/formatter.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/index.d.ts +9 -0
- package/dist/commands/inject-test-attrs/index.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/manifest-generator.d.ts +21 -0
- package/dist/commands/inject-test-attrs/manifest-generator.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/processor-utils.d.ts +76 -0
- package/dist/commands/inject-test-attrs/processor-utils.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/processor.d.ts +35 -0
- package/dist/commands/inject-test-attrs/processor.d.ts.map +1 -0
- package/dist/commands/inject-test-attrs/types.d.ts +48 -0
- package/dist/commands/inject-test-attrs/types.d.ts.map +1 -0
- package/dist/commands/link.d.ts +16 -0
- package/dist/commands/link.d.ts.map +1 -0
- package/dist/commands/manifest/index.d.ts +27 -0
- package/dist/commands/manifest/index.d.ts.map +1 -0
- package/dist/commands/prepare/commands/prepare.d.ts +32 -0
- package/dist/commands/prepare/commands/prepare.d.ts.map +1 -0
- package/dist/commands/prepare/index.d.ts +10 -0
- package/dist/commands/prepare/index.d.ts.map +1 -0
- package/dist/commands/sdk/commands/publish.d.ts +33 -0
- package/dist/commands/sdk/commands/publish.d.ts.map +1 -0
- package/dist/commands/sdk/index.d.ts +14 -0
- package/dist/commands/sdk/index.d.ts.map +1 -0
- package/dist/commands/services/index.d.ts +3 -0
- package/dist/commands/services/index.d.ts.map +1 -0
- package/dist/commands/session/index.d.ts +19 -0
- package/dist/commands/session/index.d.ts.map +1 -0
- package/dist/commands/status.d.ts +13 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/telemetry.d.ts +3 -0
- package/dist/commands/telemetry.d.ts.map +1 -0
- package/dist/commands/template-check/actors/compare.d.ts +18 -0
- package/dist/commands/template-check/actors/compare.d.ts.map +1 -0
- package/dist/commands/template-check/actors/discover.d.ts +18 -0
- package/dist/commands/template-check/actors/discover.d.ts.map +1 -0
- package/dist/commands/template-check/actors/index.d.ts +9 -0
- package/dist/commands/template-check/actors/index.d.ts.map +1 -0
- package/dist/commands/template-check/actors/report.d.ts +44 -0
- package/dist/commands/template-check/actors/report.d.ts.map +1 -0
- package/dist/commands/template-check/commands/template-check.d.ts +17 -0
- package/dist/commands/template-check/commands/template-check.d.ts.map +1 -0
- package/dist/commands/template-check/config.d.ts +100 -0
- package/dist/commands/template-check/config.d.ts.map +1 -0
- package/dist/commands/template-check/contract.d.ts +169 -0
- package/dist/commands/template-check/contract.d.ts.map +1 -0
- package/dist/commands/template-check/index.d.ts +8 -0
- package/dist/commands/template-check/index.d.ts.map +1 -0
- package/dist/commands/template-check/machine.d.ts +91 -0
- package/dist/commands/template-check/machine.d.ts.map +1 -0
- package/dist/commands/template-check/types.d.ts +87 -0
- package/dist/commands/template-check/types.d.ts.map +1 -0
- package/dist/commands/template-check/utils/diff-analyzer.d.ts +40 -0
- package/dist/commands/template-check/utils/diff-analyzer.d.ts.map +1 -0
- package/dist/commands/template-check/utils/normalizer.d.ts +55 -0
- package/dist/commands/template-check/utils/normalizer.d.ts.map +1 -0
- package/dist/commands/template-check/utils/path-mapping.d.ts +43 -0
- package/dist/commands/template-check/utils/path-mapping.d.ts.map +1 -0
- package/dist/commands/test/commands/test-db.d.ts +25 -0
- package/dist/commands/test/commands/test-db.d.ts.map +1 -0
- package/dist/commands/test/commands/test-e2e.d.ts +20 -0
- package/dist/commands/test/commands/test-e2e.d.ts.map +1 -0
- package/dist/commands/test/commands/test-fast.d.ts +21 -0
- package/dist/commands/test/commands/test-fast.d.ts.map +1 -0
- package/dist/commands/test/commands/test-integration.d.ts +3 -0
- package/dist/commands/test/commands/test-integration.d.ts.map +1 -0
- package/dist/commands/test/commands/test-layer.d.ts +8 -0
- package/dist/commands/test/commands/test-layer.d.ts.map +1 -0
- package/dist/commands/test/commands/test-owasp-generate.d.ts +11 -0
- package/dist/commands/test/commands/test-owasp-generate.d.ts.map +1 -0
- package/dist/commands/test/commands/test-service.d.ts +3 -0
- package/dist/commands/test/commands/test-service.d.ts.map +1 -0
- package/dist/commands/test/commands/test-static.d.ts +3 -0
- package/dist/commands/test/commands/test-static.d.ts.map +1 -0
- package/dist/commands/test/commands/test.d.ts +3 -0
- package/dist/commands/test/commands/test.d.ts.map +1 -0
- package/dist/commands/test/index.d.ts +39 -0
- package/dist/commands/test/index.d.ts.map +1 -0
- package/dist/commands/test-gen.d.ts +39 -0
- package/dist/commands/test-gen.d.ts.map +1 -0
- package/dist/commands/ui.d.ts +12 -0
- package/dist/commands/ui.d.ts.map +1 -0
- package/dist/commands/upgrade.d.ts +38 -0
- package/dist/commands/upgrade.d.ts.map +1 -0
- package/dist/commands/validate.d.ts +9 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/vuln-check.d.ts +18 -0
- package/dist/commands/vuln-check.d.ts.map +1 -0
- package/dist/commands/watch.d.ts +21 -0
- package/dist/commands/watch.d.ts.map +1 -0
- package/dist/commands/workflow/commands/deploy-production.d.ts +10 -0
- package/dist/commands/workflow/commands/deploy-production.d.ts.map +1 -0
- package/dist/commands/workflow/commands/final-status.d.ts +19 -0
- package/dist/commands/workflow/commands/final-status.d.ts.map +1 -0
- package/dist/commands/workflow/commands/log.d.ts +14 -0
- package/dist/commands/workflow/commands/log.d.ts.map +1 -0
- package/dist/commands/workflow/commands/notify.d.ts +18 -0
- package/dist/commands/workflow/commands/notify.d.ts.map +1 -0
- package/dist/commands/workflow/commands/paths.d.ts +15 -0
- package/dist/commands/workflow/commands/paths.d.ts.map +1 -0
- package/dist/commands/workflow/commands/sync.d.ts +21 -0
- package/dist/commands/workflow/commands/sync.d.ts.map +1 -0
- package/dist/commands/workflow/commands/validate.d.ts +9 -0
- package/dist/commands/workflow/commands/validate.d.ts.map +1 -0
- package/dist/commands/workflow/commands/verify-credentials.d.ts +15 -0
- package/dist/commands/workflow/commands/verify-credentials.d.ts.map +1 -0
- package/dist/commands/workflow/index.d.ts +15 -0
- package/dist/commands/workflow/index.d.ts.map +1 -0
- package/dist/commands/workflow/types.d.ts +87 -0
- package/dist/commands/workflow/types.d.ts.map +1 -0
- package/dist/config/env-files.d.ts +65 -0
- package/dist/config/env-files.d.ts.map +1 -0
- package/dist/config/env.d.ts +131 -0
- package/dist/config/env.d.ts.map +1 -0
- package/dist/constants/versions.d.ts +26 -0
- package/dist/constants/versions.d.ts.map +1 -0
- package/dist/contracts/envelope.d.ts +2 -0
- package/dist/contracts/envelope.d.ts.map +1 -0
- package/dist/errors/catalog.d.ts +461 -0
- package/dist/errors/catalog.d.ts.map +1 -0
- package/dist/errors/exit-codes.d.ts +46 -0
- package/dist/errors/exit-codes.d.ts.map +1 -0
- package/dist/errors/index.d.ts +13 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/incremental/affected-tests.d.ts +29 -0
- package/dist/incremental/affected-tests.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36594 -0
- package/dist/internal/machines/index.d.ts +10 -0
- package/dist/internal/machines/index.d.ts.map +1 -0
- package/dist/internal/machines/machine-runner.d.ts +18 -0
- package/dist/internal/machines/machine-runner.d.ts.map +1 -0
- package/dist/internal/machines/types.d.ts +48 -0
- package/dist/internal/machines/types.d.ts.map +1 -0
- package/dist/internal/vuln-checker/analyzers/dependency-analyzer.d.ts +24 -0
- package/dist/internal/vuln-checker/analyzers/dependency-analyzer.d.ts.map +1 -0
- package/dist/internal/vuln-checker/analyzers/rls-analyzer.d.ts +28 -0
- package/dist/internal/vuln-checker/analyzers/rls-analyzer.d.ts.map +1 -0
- package/dist/internal/vuln-checker/analyzers/secret-analyzer.d.ts +26 -0
- package/dist/internal/vuln-checker/analyzers/secret-analyzer.d.ts.map +1 -0
- package/dist/internal/vuln-checker/analyzers/typescript-analyzer.d.ts +25 -0
- package/dist/internal/vuln-checker/analyzers/typescript-analyzer.d.ts.map +1 -0
- package/dist/internal/vuln-checker/config/loader.d.ts +16 -0
- package/dist/internal/vuln-checker/config/loader.d.ts.map +1 -0
- package/dist/internal/vuln-checker/constants.d.ts +75 -0
- package/dist/internal/vuln-checker/constants.d.ts.map +1 -0
- package/dist/internal/vuln-checker/ignore/matcher.d.ts +23 -0
- package/dist/internal/vuln-checker/ignore/matcher.d.ts.map +1 -0
- package/dist/internal/vuln-checker/index.d.ts +45 -0
- package/dist/internal/vuln-checker/index.d.ts.map +1 -0
- package/dist/internal/vuln-checker/reporters/console-reporter.d.ts +9 -0
- package/dist/internal/vuln-checker/reporters/console-reporter.d.ts.map +1 -0
- package/dist/internal/vuln-checker/reporters/json-reporter.d.ts +9 -0
- package/dist/internal/vuln-checker/reporters/json-reporter.d.ts.map +1 -0
- package/dist/internal/vuln-checker/reporters/markdown-reporter.d.ts +9 -0
- package/dist/internal/vuln-checker/reporters/markdown-reporter.d.ts.map +1 -0
- package/dist/internal/vuln-checker/reporters/sarif-reporter.d.ts +12 -0
- package/dist/internal/vuln-checker/reporters/sarif-reporter.d.ts.map +1 -0
- package/dist/internal/vuln-checker/types.d.ts +149 -0
- package/dist/internal/vuln-checker/types.d.ts.map +1 -0
- package/dist/notifiers/desktop-notifier.d.ts +34 -0
- package/dist/notifiers/desktop-notifier.d.ts.map +1 -0
- package/dist/schemas/ci.config.schema.json +206 -0
- package/dist/ui/components/db-panel.d.ts +12 -0
- package/dist/ui/components/db-panel.d.ts.map +1 -0
- package/dist/ui/components/status-bar.d.ts +6 -0
- package/dist/ui/components/status-bar.d.ts.map +1 -0
- package/dist/ui/components/test-panel.d.ts +12 -0
- package/dist/ui/components/test-panel.d.ts.map +1 -0
- package/dist/ui/dashboard.d.ts +20 -0
- package/dist/ui/dashboard.d.ts.map +1 -0
- package/dist/ui/index.d.ts +16 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/utils/config-loader.d.ts +92 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-updater.d.ts +44 -0
- package/dist/utils/config-updater.d.ts.map +1 -0
- package/dist/utils/diagnostics.d.ts +44 -0
- package/dist/utils/diagnostics.d.ts.map +1 -0
- package/dist/utils/dotenvx.d.ts +33 -0
- package/dist/utils/dotenvx.d.ts.map +1 -0
- package/dist/utils/execution-plan.d.ts +43 -0
- package/dist/utils/execution-plan.d.ts.map +1 -0
- package/dist/utils/help-system.d.ts +34 -0
- package/dist/utils/help-system.d.ts.map +1 -0
- package/dist/utils/license/admin-auth.d.ts +39 -0
- package/dist/utils/license/admin-auth.d.ts.map +1 -0
- package/dist/utils/license/allowlist-checker.d.ts +56 -0
- package/dist/utils/license/allowlist-checker.d.ts.map +1 -0
- package/dist/utils/license/ci-detector.d.ts +43 -0
- package/dist/utils/license/ci-detector.d.ts.map +1 -0
- package/dist/utils/license/index.d.ts +49 -0
- package/dist/utils/license/index.d.ts.map +1 -0
- package/dist/utils/license/owner-resolver.d.ts +35 -0
- package/dist/utils/license/owner-resolver.d.ts.map +1 -0
- package/dist/utils/license/types.d.ts +42 -0
- package/dist/utils/license/types.d.ts.map +1 -0
- package/dist/utils/license/validate-owner.d.ts +33 -0
- package/dist/utils/license/validate-owner.d.ts.map +1 -0
- package/dist/utils/port-allocator.d.ts +59 -0
- package/dist/utils/port-allocator.d.ts.map +1 -0
- package/dist/utils/secure-exec.d.ts +95 -0
- package/dist/utils/secure-exec.d.ts.map +1 -0
- package/dist/utils/template-fetcher.d.ts +63 -0
- package/dist/utils/template-fetcher.d.ts.map +1 -0
- package/dist/utils/type-guards.d.ts +25 -0
- package/dist/utils/type-guards.d.ts.map +1 -0
- package/dist/utils/vercel-project.d.ts +38 -0
- package/dist/utils/vercel-project.d.ts.map +1 -0
- package/dist/utils/workspace-detector.d.ts +71 -0
- package/dist/utils/workspace-detector.d.ts.map +1 -0
- package/dist/validators/risk-detector.d.ts +38 -0
- package/dist/validators/risk-detector.d.ts.map +1 -0
- package/dist/validators/schema-validator.d.ts +20 -0
- package/dist/validators/schema-validator.d.ts.map +1 -0
- package/dist/version.d.ts +13 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/watchers/schema-watcher.d.ts +61 -0
- package/dist/watchers/schema-watcher.d.ts.map +1 -0
- package/dist/watchers/test-watcher.d.ts +57 -0
- package/dist/watchers/test-watcher.d.ts.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Build Command Contract
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Zod schemas for build command I/O validation
|
|
5
|
+
* Pattern: Contract-first design - all inputs/outputs strictly typed
|
|
6
|
+
*
|
|
7
|
+
* Workflow (like vercel build / next build):
|
|
8
|
+
* 0. Auto-Setup: Install deps, check env, start Supabase (smart detection)
|
|
9
|
+
* 1. Pre-clean (optional): Clean .next, .turbo, .runa/manifests
|
|
10
|
+
* 2. Fresh (optional): Delete node_modules + reinstall
|
|
11
|
+
* 3. Static Analysis: type-check + lint (parallel)
|
|
12
|
+
* 4. Build: turbo build
|
|
13
|
+
* 5. DB Sync: runa db sync (if database configured)
|
|
14
|
+
* 6. Manifest: turbo manifest:generate
|
|
15
|
+
* 7. Validate: Verify outputs exist
|
|
16
|
+
*/
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
/**
|
|
19
|
+
* Available build phases for partial build (--only option).
|
|
20
|
+
*/
|
|
21
|
+
export declare const BuildPhaseSchema: z.ZodEnum<{
|
|
22
|
+
lint: "lint";
|
|
23
|
+
types: "types";
|
|
24
|
+
build: "build";
|
|
25
|
+
db: "db";
|
|
26
|
+
manifest: "manifest";
|
|
27
|
+
}>;
|
|
28
|
+
export type BuildPhase = z.infer<typeof BuildPhaseSchema>;
|
|
29
|
+
/** Valid build phases for --only option */
|
|
30
|
+
export declare const VALID_BUILD_PHASES: BuildPhase[];
|
|
31
|
+
/**
|
|
32
|
+
* CLI input for build command.
|
|
33
|
+
*/
|
|
34
|
+
export declare const BuildInputSchema: z.ZodObject<{
|
|
35
|
+
e2e: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
clean: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
fresh: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
skipDb: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
skipManifest: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
+
check: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
noSetup: z.ZodDefault<z.ZodBoolean>;
|
|
43
|
+
targetDir: z.ZodOptional<z.ZodString>;
|
|
44
|
+
only: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
45
|
+
lint: "lint";
|
|
46
|
+
types: "types";
|
|
47
|
+
build: "build";
|
|
48
|
+
db: "db";
|
|
49
|
+
manifest: "manifest";
|
|
50
|
+
}>>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type BuildInput = z.infer<typeof BuildInputSchema>;
|
|
53
|
+
/**
|
|
54
|
+
* Status of a build phase.
|
|
55
|
+
*/
|
|
56
|
+
export declare const BuildPhaseStatusSchema: z.ZodEnum<{
|
|
57
|
+
passed: "passed";
|
|
58
|
+
failed: "failed";
|
|
59
|
+
pending: "pending";
|
|
60
|
+
running: "running";
|
|
61
|
+
skipped: "skipped";
|
|
62
|
+
}>;
|
|
63
|
+
export type BuildPhaseStatus = z.infer<typeof BuildPhaseStatusSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* Result of a build phase.
|
|
66
|
+
*/
|
|
67
|
+
export declare const BuildPhaseResultSchema: z.ZodObject<{
|
|
68
|
+
status: z.ZodEnum<{
|
|
69
|
+
passed: "passed";
|
|
70
|
+
failed: "failed";
|
|
71
|
+
pending: "pending";
|
|
72
|
+
running: "running";
|
|
73
|
+
skipped: "skipped";
|
|
74
|
+
}>;
|
|
75
|
+
durationMs: z.ZodNumber;
|
|
76
|
+
error: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export type BuildPhaseResult = z.infer<typeof BuildPhaseResultSchema>;
|
|
79
|
+
/**
|
|
80
|
+
* Build command output.
|
|
81
|
+
*/
|
|
82
|
+
export declare const BuildOutputSchema: z.ZodObject<{
|
|
83
|
+
success: z.ZodBoolean;
|
|
84
|
+
exitCode: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
85
|
+
phases: z.ZodObject<{
|
|
86
|
+
depsInstall: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
status: z.ZodEnum<{
|
|
88
|
+
passed: "passed";
|
|
89
|
+
failed: "failed";
|
|
90
|
+
pending: "pending";
|
|
91
|
+
running: "running";
|
|
92
|
+
skipped: "skipped";
|
|
93
|
+
}>;
|
|
94
|
+
durationMs: z.ZodNumber;
|
|
95
|
+
error: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
envCheck: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
status: z.ZodEnum<{
|
|
99
|
+
passed: "passed";
|
|
100
|
+
failed: "failed";
|
|
101
|
+
pending: "pending";
|
|
102
|
+
running: "running";
|
|
103
|
+
skipped: "skipped";
|
|
104
|
+
}>;
|
|
105
|
+
durationMs: z.ZodNumber;
|
|
106
|
+
error: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
supabaseStart: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
status: z.ZodEnum<{
|
|
110
|
+
passed: "passed";
|
|
111
|
+
failed: "failed";
|
|
112
|
+
pending: "pending";
|
|
113
|
+
running: "running";
|
|
114
|
+
skipped: "skipped";
|
|
115
|
+
}>;
|
|
116
|
+
durationMs: z.ZodNumber;
|
|
117
|
+
error: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
clean: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
status: z.ZodEnum<{
|
|
121
|
+
passed: "passed";
|
|
122
|
+
failed: "failed";
|
|
123
|
+
pending: "pending";
|
|
124
|
+
running: "running";
|
|
125
|
+
skipped: "skipped";
|
|
126
|
+
}>;
|
|
127
|
+
durationMs: z.ZodNumber;
|
|
128
|
+
error: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
fresh: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
status: z.ZodEnum<{
|
|
132
|
+
passed: "passed";
|
|
133
|
+
failed: "failed";
|
|
134
|
+
pending: "pending";
|
|
135
|
+
running: "running";
|
|
136
|
+
skipped: "skipped";
|
|
137
|
+
}>;
|
|
138
|
+
durationMs: z.ZodNumber;
|
|
139
|
+
error: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
typeCheck: z.ZodObject<{
|
|
142
|
+
status: z.ZodEnum<{
|
|
143
|
+
passed: "passed";
|
|
144
|
+
failed: "failed";
|
|
145
|
+
pending: "pending";
|
|
146
|
+
running: "running";
|
|
147
|
+
skipped: "skipped";
|
|
148
|
+
}>;
|
|
149
|
+
durationMs: z.ZodNumber;
|
|
150
|
+
error: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
lint: z.ZodObject<{
|
|
153
|
+
status: z.ZodEnum<{
|
|
154
|
+
passed: "passed";
|
|
155
|
+
failed: "failed";
|
|
156
|
+
pending: "pending";
|
|
157
|
+
running: "running";
|
|
158
|
+
skipped: "skipped";
|
|
159
|
+
}>;
|
|
160
|
+
durationMs: z.ZodNumber;
|
|
161
|
+
error: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
build: z.ZodObject<{
|
|
164
|
+
status: z.ZodEnum<{
|
|
165
|
+
passed: "passed";
|
|
166
|
+
failed: "failed";
|
|
167
|
+
pending: "pending";
|
|
168
|
+
running: "running";
|
|
169
|
+
skipped: "skipped";
|
|
170
|
+
}>;
|
|
171
|
+
durationMs: z.ZodNumber;
|
|
172
|
+
error: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
dbSync: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
status: z.ZodEnum<{
|
|
176
|
+
passed: "passed";
|
|
177
|
+
failed: "failed";
|
|
178
|
+
pending: "pending";
|
|
179
|
+
running: "running";
|
|
180
|
+
skipped: "skipped";
|
|
181
|
+
}>;
|
|
182
|
+
durationMs: z.ZodNumber;
|
|
183
|
+
error: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
status: z.ZodEnum<{
|
|
187
|
+
passed: "passed";
|
|
188
|
+
failed: "failed";
|
|
189
|
+
pending: "pending";
|
|
190
|
+
running: "running";
|
|
191
|
+
skipped: "skipped";
|
|
192
|
+
}>;
|
|
193
|
+
durationMs: z.ZodNumber;
|
|
194
|
+
error: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
validate: z.ZodObject<{
|
|
197
|
+
status: z.ZodEnum<{
|
|
198
|
+
passed: "passed";
|
|
199
|
+
failed: "failed";
|
|
200
|
+
pending: "pending";
|
|
201
|
+
running: "running";
|
|
202
|
+
skipped: "skipped";
|
|
203
|
+
}>;
|
|
204
|
+
durationMs: z.ZodNumber;
|
|
205
|
+
error: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
durationMs: z.ZodNumber;
|
|
209
|
+
error: z.ZodOptional<z.ZodString>;
|
|
210
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
export type BuildOutput = z.infer<typeof BuildOutputSchema>;
|
|
213
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/commands/build/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;EAAuD,CAAC;AACrF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,2CAA2C;AAC3C,eAAO,MAAM,kBAAkB,EAAE,UAAU,EAAiD,CAAC;AAM7F;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;kBAuBlB,CAAC;AAEZ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;EAAgE,CAAC;AAEpG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMtE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMtE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8BnB,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Build Command Guards
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Guard functions for conditional state transitions
|
|
5
|
+
* Pattern: Centralized guard logic for XState machine
|
|
6
|
+
*
|
|
7
|
+
* Guards determine:
|
|
8
|
+
* - Whether to run setup phase (deps install, env check, supabase start)
|
|
9
|
+
* - Whether to run clean/fresh phases
|
|
10
|
+
* - Whether to skip db sync (no database configured or --skip-db)
|
|
11
|
+
* - Whether to skip manifest (no task or --skip-manifest)
|
|
12
|
+
* - Whether in E2E mode
|
|
13
|
+
*/
|
|
14
|
+
import type { BuildContext } from './types.js';
|
|
15
|
+
interface GuardParams {
|
|
16
|
+
context: BuildContext;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Check if clean phase should run.
|
|
20
|
+
* Runs when --clean or --fresh is specified.
|
|
21
|
+
*/
|
|
22
|
+
export declare function shouldClean({ context }: GuardParams): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Check if fresh phase should run.
|
|
25
|
+
* Runs when --fresh is specified.
|
|
26
|
+
*/
|
|
27
|
+
export declare function shouldFresh({ context }: GuardParams): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Check if type-check should be skipped.
|
|
30
|
+
* Skipped when --only is specified and doesn't include 'types'.
|
|
31
|
+
*/
|
|
32
|
+
export declare function shouldSkipTypes({ context }: GuardParams): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Check if lint should be skipped.
|
|
35
|
+
* Skipped when --only is specified and doesn't include 'lint'.
|
|
36
|
+
*/
|
|
37
|
+
export declare function shouldSkipLint({ context }: GuardParams): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Check if turbo build should be skipped.
|
|
40
|
+
* Skipped when --only is specified and doesn't include 'build'.
|
|
41
|
+
*/
|
|
42
|
+
export declare function shouldSkipBuild({ context }: GuardParams): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Check if static analysis (type-check + lint) should be skipped entirely.
|
|
45
|
+
* Skipped when --only is specified and doesn't include 'types' or 'lint'.
|
|
46
|
+
*/
|
|
47
|
+
export declare function shouldSkipStaticAnalysis({ context }: GuardParams): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Check if db sync should be skipped.
|
|
50
|
+
* Skipped when --skip-db, no database configured, or --only doesn't include 'db'.
|
|
51
|
+
*/
|
|
52
|
+
export declare function shouldSkipDb({ context }: GuardParams): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Check if manifest generation should be skipped.
|
|
55
|
+
* Skipped when --skip-manifest, no manifest task, or --only doesn't include 'manifest'.
|
|
56
|
+
*/
|
|
57
|
+
export declare function shouldSkipManifest({ context }: GuardParams): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Check if in dry-run mode.
|
|
60
|
+
*/
|
|
61
|
+
export declare function isDryRun({ context }: GuardParams): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Check if setup phase should be skipped.
|
|
64
|
+
* Skipped when --no-setup is specified.
|
|
65
|
+
*/
|
|
66
|
+
export declare function shouldSkipSetup({ context }: GuardParams): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Check if in E2E mode.
|
|
69
|
+
*/
|
|
70
|
+
export declare function isE2EMode({ context }: GuardParams): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Detect if database is configured.
|
|
73
|
+
* Checks runa.config.ts for database configuration.
|
|
74
|
+
*/
|
|
75
|
+
export declare function detectDatabase(repoRoot: string): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Detect if manifest generation should be enabled.
|
|
78
|
+
*
|
|
79
|
+
* Bundler-independent approach (CLI-based, works with Turbopack + Webpack):
|
|
80
|
+
* - Checks for XState dependencies in package.json
|
|
81
|
+
* - Checks for runa-xstate-test-plugin dependency
|
|
82
|
+
* - Checks for runa.config.ts (indicates runa project)
|
|
83
|
+
*
|
|
84
|
+
* Note: Uses `runa manifest` CLI command, which is always available
|
|
85
|
+
* and doesn't depend on webpack plugins or turbo tasks.
|
|
86
|
+
*/
|
|
87
|
+
export declare function detectManifestTask(repoRoot: string): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Detect if turbo.json exists.
|
|
90
|
+
*/
|
|
91
|
+
export declare function detectTurbo(repoRoot: string): boolean;
|
|
92
|
+
export declare const guards: {
|
|
93
|
+
shouldClean: typeof shouldClean;
|
|
94
|
+
shouldFresh: typeof shouldFresh;
|
|
95
|
+
shouldSkipTypes: typeof shouldSkipTypes;
|
|
96
|
+
shouldSkipLint: typeof shouldSkipLint;
|
|
97
|
+
shouldSkipBuild: typeof shouldSkipBuild;
|
|
98
|
+
shouldSkipStaticAnalysis: typeof shouldSkipStaticAnalysis;
|
|
99
|
+
shouldSkipDb: typeof shouldSkipDb;
|
|
100
|
+
shouldSkipManifest: typeof shouldSkipManifest;
|
|
101
|
+
shouldSkipSetup: typeof shouldSkipSetup;
|
|
102
|
+
isDryRun: typeof isDryRun;
|
|
103
|
+
isE2EMode: typeof isE2EMode;
|
|
104
|
+
};
|
|
105
|
+
export {};
|
|
106
|
+
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/commands/build/guards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,UAAU,WAAW;IACnB,OAAO,EAAE,YAAY,CAAC;CACvB;AAMD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAE7D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAE7D;AAqBD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAEjE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAEhE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAEjE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAE1E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAE9D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAMpE;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAE1D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAEjE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,OAAO,CAE3D;AAMD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAwBxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAuB5D;AA4BD;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGrD;AAMD,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Build Command Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Export build command for CLI registration
|
|
5
|
+
*/
|
|
6
|
+
export { buildCommand } from './commands/build.js';
|
|
7
|
+
export { BuildInputSchema, BuildOutputSchema } from './contract.js';
|
|
8
|
+
export type { BuildContext, BuildInput, BuildOutput } from './types.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/build/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEpE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Build State Machine (like vercel build / next build)
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Orchestrate build workflow with XState v5
|
|
5
|
+
* Pattern: Smart self-healing build with auto-detection
|
|
6
|
+
*
|
|
7
|
+
* User Journey:
|
|
8
|
+
* 0. Auto-Setup: Install deps, check env, start Supabase (smart detection)
|
|
9
|
+
* 1. (Optional) Clean build caches (--clean)
|
|
10
|
+
* 2. (Optional) Fresh install (--fresh)
|
|
11
|
+
* 3. Static analysis: type-check + lint (parallel)
|
|
12
|
+
* 4. Build: turbo build
|
|
13
|
+
* 5. (Conditional) DB sync: runa db sync
|
|
14
|
+
* 6. (Conditional) Manifest generation
|
|
15
|
+
* 7. Validate outputs
|
|
16
|
+
*
|
|
17
|
+
* State Flow:
|
|
18
|
+
* idle → START → [setup] → [clean?] → [fresh?] → staticAnalysis
|
|
19
|
+
* → build → [hasDatabase?] → dbSync → [hasManifest?] → manifest
|
|
20
|
+
* → validate → done
|
|
21
|
+
* Any error in blocking phase → failed
|
|
22
|
+
*
|
|
23
|
+
* E2E Test Mapping (CLI observable behavior):
|
|
24
|
+
* - idle → expect(state).toBe('idle')
|
|
25
|
+
* - setup → expect(log).toContain('Auto-Setup')
|
|
26
|
+
* - staticAnalysis → expect(log).toContain('type-check')
|
|
27
|
+
* - build → expect(log).toContain('build')
|
|
28
|
+
* - done → expect(exitCode).toBe(0)
|
|
29
|
+
* - failed → expect(exitCode).toBe(1)
|
|
30
|
+
*/
|
|
31
|
+
import { type SnapshotFrom } from 'xstate';
|
|
32
|
+
import type { BuildContext, BuildEvent, BuildInput } from './types.js';
|
|
33
|
+
export declare const buildMachine: import("xstate").StateMachine<BuildContext, BuildEvent, {
|
|
34
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/build.js").BuildOutput, import("./actors/build.js").BuildInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/manifest.js").ManifestOutput, import("./actors/manifest.js").ManifestInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/clean.js").CleanOutput, import("./actors/clean.js").CleanInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/validate.js").ValidateOutput, import("./actors/validate.js").ValidateInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/setup.js").DepsInstallOutput, import("./actors/setup.js").SetupInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/setup.js").EnvCheckOutput, import("./actors/setup.js").SetupInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/setup.js").SupabaseStartOutput, import("./actors/setup.js").SetupInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/db-sync.js").DbSyncOutput, import("./actors/db-sync.js").DbSyncInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/static-checks.js").StaticChecksOutput, import("./actors/static-checks.js").StaticChecksInput, import("xstate").EventObject>> | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
src: "build";
|
|
37
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/build.js").BuildOutput, import("./actors/build.js").BuildInput, import("xstate").EventObject>;
|
|
38
|
+
id: string | undefined;
|
|
39
|
+
} | {
|
|
40
|
+
src: "manifest";
|
|
41
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/manifest.js").ManifestOutput, import("./actors/manifest.js").ManifestInput, import("xstate").EventObject>;
|
|
42
|
+
id: string | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
src: "clean";
|
|
45
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/clean.js").CleanOutput, import("./actors/clean.js").CleanInput, import("xstate").EventObject>;
|
|
46
|
+
id: string | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
src: "fresh";
|
|
49
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/clean.js").CleanOutput, import("./actors/clean.js").CleanInput, import("xstate").EventObject>;
|
|
50
|
+
id: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
src: "validate";
|
|
53
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/validate.js").ValidateOutput, import("./actors/validate.js").ValidateInput, import("xstate").EventObject>;
|
|
54
|
+
id: string | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
src: "depsInstall";
|
|
57
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/setup.js").DepsInstallOutput, import("./actors/setup.js").SetupInput, import("xstate").EventObject>;
|
|
58
|
+
id: string | undefined;
|
|
59
|
+
} | {
|
|
60
|
+
src: "envCheck";
|
|
61
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/setup.js").EnvCheckOutput, import("./actors/setup.js").SetupInput, import("xstate").EventObject>;
|
|
62
|
+
id: string | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
src: "supabaseStart";
|
|
65
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/setup.js").SupabaseStartOutput, import("./actors/setup.js").SetupInput, import("xstate").EventObject>;
|
|
66
|
+
id: string | undefined;
|
|
67
|
+
} | {
|
|
68
|
+
src: "dbSync";
|
|
69
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/db-sync.js").DbSyncOutput, import("./actors/db-sync.js").DbSyncInput, import("xstate").EventObject>;
|
|
70
|
+
id: string | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
src: "staticChecks";
|
|
73
|
+
logic: import("xstate").PromiseActorLogic<import("./actors/static-checks.js").StaticChecksOutput, import("./actors/static-checks.js").StaticChecksInput, import("xstate").EventObject>;
|
|
74
|
+
id: string | undefined;
|
|
75
|
+
}, never, {
|
|
76
|
+
type: "shouldClean";
|
|
77
|
+
params: unknown;
|
|
78
|
+
} | {
|
|
79
|
+
type: "shouldFresh";
|
|
80
|
+
params: unknown;
|
|
81
|
+
} | {
|
|
82
|
+
type: "shouldSkipTypes";
|
|
83
|
+
params: unknown;
|
|
84
|
+
} | {
|
|
85
|
+
type: "shouldSkipLint";
|
|
86
|
+
params: unknown;
|
|
87
|
+
} | {
|
|
88
|
+
type: "shouldSkipBuild";
|
|
89
|
+
params: unknown;
|
|
90
|
+
} | {
|
|
91
|
+
type: "shouldSkipStaticAnalysis";
|
|
92
|
+
params: unknown;
|
|
93
|
+
} | {
|
|
94
|
+
type: "shouldSkipDb";
|
|
95
|
+
params: unknown;
|
|
96
|
+
} | {
|
|
97
|
+
type: "shouldSkipManifest";
|
|
98
|
+
params: unknown;
|
|
99
|
+
} | {
|
|
100
|
+
type: "shouldSkipSetup";
|
|
101
|
+
params: unknown;
|
|
102
|
+
} | {
|
|
103
|
+
type: "isDryRun";
|
|
104
|
+
params: unknown;
|
|
105
|
+
}, never, "failed" | "build" | "manifest" | "clean" | "fresh" | "validate" | "dbSync" | "done" | "preClean" | "dryRun" | "staticAnalysis" | "idle" | {
|
|
106
|
+
setup: "depsInstall" | "envCheck" | "supabaseStart" | "done";
|
|
107
|
+
}, string, {
|
|
108
|
+
input: BuildInput;
|
|
109
|
+
repoRoot: string;
|
|
110
|
+
}, {
|
|
111
|
+
success: boolean;
|
|
112
|
+
exitCode: 0 | 1;
|
|
113
|
+
phases: {
|
|
114
|
+
typeCheck: {
|
|
115
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
116
|
+
durationMs: number;
|
|
117
|
+
error?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
lint: {
|
|
120
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
121
|
+
durationMs: number;
|
|
122
|
+
error?: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
build: {
|
|
125
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
126
|
+
durationMs: number;
|
|
127
|
+
error?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
validate: {
|
|
130
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
131
|
+
durationMs: number;
|
|
132
|
+
error?: string | undefined;
|
|
133
|
+
};
|
|
134
|
+
depsInstall?: {
|
|
135
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
136
|
+
durationMs: number;
|
|
137
|
+
error?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
envCheck?: {
|
|
140
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
141
|
+
durationMs: number;
|
|
142
|
+
error?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
supabaseStart?: {
|
|
145
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
146
|
+
durationMs: number;
|
|
147
|
+
error?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
clean?: {
|
|
150
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
151
|
+
durationMs: number;
|
|
152
|
+
error?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
fresh?: {
|
|
155
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
156
|
+
durationMs: number;
|
|
157
|
+
error?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
dbSync?: {
|
|
160
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
161
|
+
durationMs: number;
|
|
162
|
+
error?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
manifest?: {
|
|
165
|
+
status: "passed" | "failed" | "pending" | "running" | "skipped";
|
|
166
|
+
durationMs: number;
|
|
167
|
+
error?: string | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
};
|
|
170
|
+
durationMs: number;
|
|
171
|
+
error?: string | undefined;
|
|
172
|
+
warnings?: string[] | undefined;
|
|
173
|
+
}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
174
|
+
id: "build";
|
|
175
|
+
states: {
|
|
176
|
+
readonly idle: {};
|
|
177
|
+
readonly dryRun: {};
|
|
178
|
+
readonly setup: {
|
|
179
|
+
states: {
|
|
180
|
+
readonly depsInstall: {};
|
|
181
|
+
readonly envCheck: {};
|
|
182
|
+
readonly supabaseStart: {};
|
|
183
|
+
readonly done: {};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly preClean: {};
|
|
187
|
+
readonly clean: {};
|
|
188
|
+
readonly fresh: {};
|
|
189
|
+
readonly staticAnalysis: {};
|
|
190
|
+
readonly build: {};
|
|
191
|
+
readonly dbSync: {};
|
|
192
|
+
readonly manifest: {};
|
|
193
|
+
readonly validate: {};
|
|
194
|
+
readonly done: {};
|
|
195
|
+
readonly failed: {};
|
|
196
|
+
};
|
|
197
|
+
}>;
|
|
198
|
+
export type BuildMachine = typeof buildMachine;
|
|
199
|
+
export type BuildSnapshot = SnapshotFrom<typeof buildMachine>;
|
|
200
|
+
/**
|
|
201
|
+
* Get current state name from snapshot.
|
|
202
|
+
*/
|
|
203
|
+
export declare function getStateName(snapshot: BuildSnapshot): string;
|
|
204
|
+
/**
|
|
205
|
+
* Check if machine has completed.
|
|
206
|
+
*/
|
|
207
|
+
export declare function isComplete(snapshot: BuildSnapshot): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Get error from snapshot context.
|
|
210
|
+
*/
|
|
211
|
+
export declare function getError(snapshot: BuildSnapshot): string | null;
|
|
212
|
+
//# sourceMappingURL=machine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/build/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AAe1D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAe,MAAM,YAAY,CAAC;AAmPpF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIL,UAAU;cAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6nB9C,CAAC;AAMH,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAM9D;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAa5D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAE3D;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAE/D"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Build Command Types
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Type definitions for build state machine
|
|
5
|
+
* Pattern: Re-export from contract.ts (Zod SSOT) + machine-specific types
|
|
6
|
+
*
|
|
7
|
+
* Architecture:
|
|
8
|
+
* - contract.ts: Zod schemas (SSOT) + inferred types
|
|
9
|
+
* - types.ts: Re-exports + machine-specific types (BuildContext, BuildEvent)
|
|
10
|
+
*/
|
|
11
|
+
import type { BuildInput as _BuildInput, BuildOutput as _BuildOutput, BuildPhaseResult as _BuildPhaseResult, BuildPhaseStatus as _BuildPhaseStatus } from './contract.js';
|
|
12
|
+
export type BuildInput = _BuildInput;
|
|
13
|
+
export type BuildOutput = _BuildOutput;
|
|
14
|
+
export type BuildPhaseResult = _BuildPhaseResult;
|
|
15
|
+
export type BuildPhaseStatus = _BuildPhaseStatus;
|
|
16
|
+
/**
|
|
17
|
+
* Build machine context.
|
|
18
|
+
* Contains all state needed across build phases.
|
|
19
|
+
*/
|
|
20
|
+
export interface BuildContext {
|
|
21
|
+
/** CLI input parameters */
|
|
22
|
+
input: BuildInput;
|
|
23
|
+
/** Repository root directory */
|
|
24
|
+
repoRoot: string;
|
|
25
|
+
/** Temporary directory for logs */
|
|
26
|
+
tmpDir: string;
|
|
27
|
+
/** Whether database is configured (runa.config.ts has database) */
|
|
28
|
+
hasDatabase: boolean;
|
|
29
|
+
/** Whether manifest task exists (turbo.json has manifest:generate) */
|
|
30
|
+
hasManifestTask: boolean;
|
|
31
|
+
/** Whether turbo.json exists */
|
|
32
|
+
hasTurbo: boolean;
|
|
33
|
+
phases: {
|
|
34
|
+
depsInstall: BuildPhaseResult | null;
|
|
35
|
+
envCheck: BuildPhaseResult | null;
|
|
36
|
+
supabaseStart: BuildPhaseResult | null;
|
|
37
|
+
clean: BuildPhaseResult | null;
|
|
38
|
+
fresh: BuildPhaseResult | null;
|
|
39
|
+
typeCheck: BuildPhaseResult | null;
|
|
40
|
+
lint: BuildPhaseResult | null;
|
|
41
|
+
build: BuildPhaseResult | null;
|
|
42
|
+
dbSync: BuildPhaseResult | null;
|
|
43
|
+
manifest: BuildPhaseResult | null;
|
|
44
|
+
validate: BuildPhaseResult | null;
|
|
45
|
+
};
|
|
46
|
+
/** Start time */
|
|
47
|
+
startTime: number;
|
|
48
|
+
/** Fatal error (blocks further execution) */
|
|
49
|
+
error: string | null;
|
|
50
|
+
/** Non-fatal warnings */
|
|
51
|
+
warnings: string[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Build machine events.
|
|
55
|
+
*/
|
|
56
|
+
export type BuildEvent = {
|
|
57
|
+
type: 'START';
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Create initial context from input.
|
|
61
|
+
*/
|
|
62
|
+
export declare function createInitialContext(input: BuildInput, repoRoot: string): BuildContext;
|
|
63
|
+
/**
|
|
64
|
+
* Create output from context.
|
|
65
|
+
*/
|
|
66
|
+
export declare function createOutput(context: BuildContext): BuildOutput;
|
|
67
|
+
/**
|
|
68
|
+
* Extract error message from unknown error value.
|
|
69
|
+
*/
|
|
70
|
+
export declare function getErrorMessage(error: unknown): string;
|
|
71
|
+
/**
|
|
72
|
+
* Create a phase result.
|
|
73
|
+
*/
|
|
74
|
+
export declare function createPhaseResult(status: BuildPhaseStatus, durationMs: number, error?: string): BuildPhaseResult;
|
|
75
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/build/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,UAAU,IAAI,WAAW,EACzB,WAAW,IAAI,YAAY,EAC3B,gBAAgB,IAAI,iBAAiB,EACrC,gBAAgB,IAAI,iBAAiB,EACtC,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AACrC,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AACvC,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AACjD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAMjD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAE3B,2BAA2B;IAC3B,KAAK,EAAE,UAAU,CAAC;IAGlB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IAGf,mEAAmE;IACnE,WAAW,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,eAAe,EAAE,OAAO,CAAC;IACzB,gCAAgC;IAChC,QAAQ,EAAE,OAAO,CAAC;IAGlB,MAAM,EAAE;QAEN,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;QACrC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAClC,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAEvC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAC/B,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAE/B,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;QACnC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAC9B,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAC/B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAChC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAClC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;KACnC,CAAC;IAGF,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAGlB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAMD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAM3C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,YAAY,CA4BtF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAiC/D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,GACb,gBAAgB,CAElB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Cache management commands
|
|
3
|
+
*
|
|
4
|
+
* Purpose: CLI commands for cache operations
|
|
5
|
+
* Features: Clear, prune, stats, inspect
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from 'commander';
|
|
8
|
+
/**
|
|
9
|
+
* Clear cache command
|
|
10
|
+
*/
|
|
11
|
+
export declare const cacheClearCommand: Command;
|
|
12
|
+
/**
|
|
13
|
+
* Prune cache command
|
|
14
|
+
*/
|
|
15
|
+
export declare const cachePruneCommand: Command;
|
|
16
|
+
/**
|
|
17
|
+
* Cache stats command
|
|
18
|
+
*/
|
|
19
|
+
export declare const cacheStatsCommand: Command;
|
|
20
|
+
/**
|
|
21
|
+
* Cache list command
|
|
22
|
+
*/
|
|
23
|
+
export declare const cacheListCommand: Command;
|
|
24
|
+
/**
|
|
25
|
+
* Cache invalidate command
|
|
26
|
+
*/
|
|
27
|
+
export declare const cacheInvalidateCommand: Command;
|
|
28
|
+
/**
|
|
29
|
+
* Main cache command
|
|
30
|
+
*/
|
|
31
|
+
export declare const cacheCommand: Command;
|
|
32
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/commands/cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,eAAO,MAAM,iBAAiB,SAsB1B,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,iBAAiB,SAsB1B,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,iBAAiB,SAqB1B,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAkBzB,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,sBAAsB,SAqB/B,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,YAAY,SAMY,CAAC"}
|