@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.
- 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,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: CI summary writer
|
|
3
|
+
*
|
|
4
|
+
* Contract:
|
|
5
|
+
* - Always write `.runa/tmp/ci-summary.json`.
|
|
6
|
+
* - Keep the shape stable for AI + tooling.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
export declare const CiLayerStatusSchema: z.ZodEnum<{
|
|
10
|
+
timeout: "timeout";
|
|
11
|
+
passed: "passed";
|
|
12
|
+
failed: "failed";
|
|
13
|
+
skipped: "skipped";
|
|
14
|
+
killed: "killed";
|
|
15
|
+
}>;
|
|
16
|
+
export type CiLayerStatus = z.output<typeof CiLayerStatusSchema>;
|
|
17
|
+
export declare const LayerBlockingLevelSchema: z.ZodEnum<{
|
|
18
|
+
blocking: "blocking";
|
|
19
|
+
warning: "warning";
|
|
20
|
+
reportOnly: "reportOnly";
|
|
21
|
+
}>;
|
|
22
|
+
export type LayerBlockingLevel = z.output<typeof LayerBlockingLevelSchema>;
|
|
23
|
+
export declare const CiStepStatusSchema: z.ZodEnum<{
|
|
24
|
+
timeout: "timeout";
|
|
25
|
+
passed: "passed";
|
|
26
|
+
failed: "failed";
|
|
27
|
+
skipped: "skipped";
|
|
28
|
+
killed: "killed";
|
|
29
|
+
}>;
|
|
30
|
+
export type CiStepStatus = z.output<typeof CiStepStatusSchema>;
|
|
31
|
+
export declare const CiSummarySchema: z.ZodObject<{
|
|
32
|
+
version: z.ZodString;
|
|
33
|
+
mode: z.ZodEnum<{
|
|
34
|
+
local: "local";
|
|
35
|
+
"github-actions": "github-actions";
|
|
36
|
+
}>;
|
|
37
|
+
command: z.ZodEnum<{
|
|
38
|
+
"ci pr": "ci pr";
|
|
39
|
+
"ci prod-apply": "ci prod-apply";
|
|
40
|
+
}>;
|
|
41
|
+
status: z.ZodEnum<{
|
|
42
|
+
timeout: "timeout";
|
|
43
|
+
success: "success";
|
|
44
|
+
failure: "failure";
|
|
45
|
+
cancelled: "cancelled";
|
|
46
|
+
}>;
|
|
47
|
+
startedAt: z.ZodString;
|
|
48
|
+
endedAt: z.ZodString;
|
|
49
|
+
durationMs: z.ZodNumber;
|
|
50
|
+
repoKind: z.ZodEnum<{
|
|
51
|
+
unknown: "unknown";
|
|
52
|
+
monorepo: "monorepo";
|
|
53
|
+
"pj-repo": "pj-repo";
|
|
54
|
+
}>;
|
|
55
|
+
detected: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
56
|
+
steps: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
57
|
+
status: z.ZodEnum<{
|
|
58
|
+
timeout: "timeout";
|
|
59
|
+
passed: "passed";
|
|
60
|
+
failed: "failed";
|
|
61
|
+
skipped: "skipped";
|
|
62
|
+
killed: "killed";
|
|
63
|
+
}>;
|
|
64
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
logPath: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strict>>>;
|
|
67
|
+
layers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
68
|
+
status: z.ZodEnum<{
|
|
69
|
+
timeout: "timeout";
|
|
70
|
+
passed: "passed";
|
|
71
|
+
failed: "failed";
|
|
72
|
+
skipped: "skipped";
|
|
73
|
+
killed: "killed";
|
|
74
|
+
}>;
|
|
75
|
+
exitCode: z.ZodNumber;
|
|
76
|
+
logPath: z.ZodOptional<z.ZodString>;
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
passed: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
blocking: "blocking";
|
|
82
|
+
warning: "warning";
|
|
83
|
+
reportOnly: "reportOnly";
|
|
84
|
+
}>>;
|
|
85
|
+
}, z.core.$strict>>>;
|
|
86
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
87
|
+
code: z.ZodString;
|
|
88
|
+
message: z.ZodString;
|
|
89
|
+
step: z.ZodString;
|
|
90
|
+
details: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>>>;
|
|
92
|
+
blockingPolicy: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
profile: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
"runa-strict": "runa-strict";
|
|
95
|
+
"pj-stable": "pj-stable";
|
|
96
|
+
}>>;
|
|
97
|
+
blockingLayers: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
98
|
+
warningLayers: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
99
|
+
reportOnlyLayers: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
100
|
+
dbDeployAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
export type CiSummary = z.output<typeof CiSummarySchema>;
|
|
105
|
+
export declare function writeCiSummary(params: {
|
|
106
|
+
cwd?: string;
|
|
107
|
+
summary: CiSummary;
|
|
108
|
+
}): Promise<string>;
|
|
109
|
+
//# sourceMappingURL=ci-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-summary.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/ci-summary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;EAA+D,CAAC;AAChG,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,wBAAwB;;;;EAAgD,CAAC;AACtF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,kBAAkB;;;;;;EAA+D,CAAC;AAC/F,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0EjB,CAAC;AAEZ,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAEzD,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,SAAS,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAQlB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Config reader utility functions
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Type-safe nested config value readers
|
|
5
|
+
* Used by: ci-resolvers.ts and other config-dependent modules
|
|
6
|
+
*
|
|
7
|
+
* Functions:
|
|
8
|
+
* - readNestedBoolean: Read boolean at nested path
|
|
9
|
+
* - readNestedString: Read string at nested path
|
|
10
|
+
* - readNestedNumber: Read number at nested path
|
|
11
|
+
* - readNestedNumberArray: Read number[] at nested path
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Read a boolean value from a nested config path.
|
|
15
|
+
* Returns null if path doesn't exist or value is not a boolean.
|
|
16
|
+
*/
|
|
17
|
+
export declare function readNestedBoolean(params: {
|
|
18
|
+
value: unknown;
|
|
19
|
+
keyPath: string[];
|
|
20
|
+
}): boolean | null;
|
|
21
|
+
/**
|
|
22
|
+
* Read a string value from a nested config path.
|
|
23
|
+
* Returns null if path doesn't exist or value is not a string.
|
|
24
|
+
*/
|
|
25
|
+
export declare function readNestedString(params: {
|
|
26
|
+
value: unknown;
|
|
27
|
+
keyPath: string[];
|
|
28
|
+
}): string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Read a number value from a nested config path.
|
|
31
|
+
* Returns null if path doesn't exist or value is not a number.
|
|
32
|
+
*/
|
|
33
|
+
export declare function readNestedNumber(params: {
|
|
34
|
+
value: unknown;
|
|
35
|
+
keyPath: string[];
|
|
36
|
+
}): number | null;
|
|
37
|
+
/**
|
|
38
|
+
* Read a number array from a nested config path.
|
|
39
|
+
* Returns null if path doesn't exist, value is not an array,
|
|
40
|
+
* or any element is not a finite number.
|
|
41
|
+
*/
|
|
42
|
+
export declare function readNestedNumberArray(params: {
|
|
43
|
+
value: unknown;
|
|
44
|
+
keyPath: string[];
|
|
45
|
+
}): number[] | null;
|
|
46
|
+
//# sourceMappingURL=config-readers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-readers.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/config-readers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAyBH;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,OAAO,GAAG,IAAI,CAE/F;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,GAAG,IAAI,CAE7F;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,GAAG,IAAI,CAE7F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,GAAG,MAAM,EAAE,GAAG,IAAI,CAElB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Database URL normalization utilities for CI operations
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Normalize database URLs for DDL operations and catalog queries
|
|
5
|
+
* Shared: These utilities match SDK's behavior for consistent handling
|
|
6
|
+
*
|
|
7
|
+
* Key transformations:
|
|
8
|
+
* 1. Port conversion: Transaction Pooler (6543) → Session Pooler (5432)
|
|
9
|
+
* 2. pgbouncer cleanup: Remove pgbouncer parameter for Session Pooler
|
|
10
|
+
* 3. IPv4 resolution: GitHub Actions runners can't reach IPv6-only hosts
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Resolve hostname to IPv4 address using getent (Linux).
|
|
14
|
+
*
|
|
15
|
+
* This is critical for GitHub Actions where IPv6 may not be routable to Supabase.
|
|
16
|
+
* Matches SDK's resolveHostToIPv4 behavior.
|
|
17
|
+
*
|
|
18
|
+
* @param hostname - The hostname to resolve
|
|
19
|
+
* @returns IPv4 address if resolvable, null otherwise
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveHostToIPv4(hostname: string): string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Normalize database URL for DDL reads and psql operations.
|
|
24
|
+
*
|
|
25
|
+
* Handles three critical issues:
|
|
26
|
+
* 1. Port conversion: Transaction Pooler (6543) → Session Pooler (5432)
|
|
27
|
+
* - DDL and catalog reads are more reliable via Session Pooler
|
|
28
|
+
* 2. pgbouncer cleanup: Remove pgbouncer parameter for Session Pooler
|
|
29
|
+
* - Session Pooler (5432) does NOT accept pgbouncer parameter
|
|
30
|
+
* 3. IPv4 resolution: GitHub Actions runners can't reach IPv6-only hosts
|
|
31
|
+
* - This matches SDK's normalizeDatabaseUrlForDDL behavior
|
|
32
|
+
*
|
|
33
|
+
* @param databaseUrl - The database URL to normalize
|
|
34
|
+
* @returns Normalized database URL suitable for DDL operations
|
|
35
|
+
*/
|
|
36
|
+
export declare function normalizeDatabaseUrlForDdl(databaseUrl: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Get safe database target string for logging (without password).
|
|
39
|
+
*
|
|
40
|
+
* @param databaseUrl - The database URL
|
|
41
|
+
* @returns Safe string for logging
|
|
42
|
+
*/
|
|
43
|
+
export declare function getSafeDatabaseTarget(databaseUrl: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* Escape SQL literal value for safe inclusion in SQL strings.
|
|
46
|
+
*
|
|
47
|
+
* @param value - The string value to escape
|
|
48
|
+
* @returns Escaped string safe for SQL literals
|
|
49
|
+
*/
|
|
50
|
+
export declare function escapeSqlLiteral(value: string): string;
|
|
51
|
+
/**
|
|
52
|
+
* Parse PostgreSQL boolean result to JavaScript boolean.
|
|
53
|
+
*
|
|
54
|
+
* PostgreSQL returns 't', 'true', or '1' for true values.
|
|
55
|
+
* This utility normalizes these variants.
|
|
56
|
+
*
|
|
57
|
+
* @param value - The PostgreSQL boolean string
|
|
58
|
+
* @returns JavaScript boolean
|
|
59
|
+
*/
|
|
60
|
+
export declare function parseBoolish(value: string): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Check if a hostname resolves ONLY to IPv6 (no IPv4).
|
|
63
|
+
*
|
|
64
|
+
* This indicates that Supabase IPv4 Add-on is not enabled.
|
|
65
|
+
* GitHub Actions cannot reach IPv6-only hosts.
|
|
66
|
+
*
|
|
67
|
+
* @param hostname - The hostname to check
|
|
68
|
+
* @returns true if hostname resolves ONLY to IPv6, false otherwise
|
|
69
|
+
*/
|
|
70
|
+
export declare function isIPv6Only(hostname: string): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Enhance error message with actionable advice.
|
|
73
|
+
*
|
|
74
|
+
* Detects common error patterns and adds clear guidance for users.
|
|
75
|
+
*
|
|
76
|
+
* @param error - Original error message
|
|
77
|
+
* @param databaseUrl - The database URL that failed (optional)
|
|
78
|
+
* @returns Enhanced error message with guidance
|
|
79
|
+
*/
|
|
80
|
+
export declare function enhanceConnectionError(error: string, databaseUrl?: string): string;
|
|
81
|
+
//# sourceMappingURL=db-url-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db-url-utils.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/db-url-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmBjE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAwBtE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAWjE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAuBpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAgClF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: E2E test authentication setup utilities
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Create and configure test users for E2E tests in preview/branch databases
|
|
5
|
+
* Strategy: Inline SQL first, fallback to seed file if needed
|
|
6
|
+
*
|
|
7
|
+
* Design decisions:
|
|
8
|
+
* - Uses configurable test user (env vars → runa.config.ts → defaults)
|
|
9
|
+
* - Generates deterministic UUIDs from email for consistency
|
|
10
|
+
* - Uses inline SQL for better error handling and reliability
|
|
11
|
+
* - Falls back to file-based approach when inline SQL fails
|
|
12
|
+
*
|
|
13
|
+
* Zero Hardcode Principle:
|
|
14
|
+
* - Email/password: TEST_USER_EMAIL, TEST_USER_PASSWORD env vars
|
|
15
|
+
* - Or: runa.config.ts testing.e2e.auth.credentials section
|
|
16
|
+
* - UUIDs: Generated deterministically from email (no hardcoding needed)
|
|
17
|
+
*/
|
|
18
|
+
export interface E2ETestUser {
|
|
19
|
+
id: string;
|
|
20
|
+
email: string;
|
|
21
|
+
password: string;
|
|
22
|
+
passwordHash: string;
|
|
23
|
+
identityId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get E2E test user configuration.
|
|
27
|
+
*
|
|
28
|
+
* Priority chain (Zero Hardcode Principle):
|
|
29
|
+
* 1. Environment variables (TEST_USER_EMAIL, TEST_USER_PASSWORD)
|
|
30
|
+
* 2. runa.config.ts testing.e2e.auth.credentials section
|
|
31
|
+
* 3. Default values (test@example.com, password)
|
|
32
|
+
*
|
|
33
|
+
* UUIDs are generated deterministically from the email, so they don't
|
|
34
|
+
* need to be configured separately.
|
|
35
|
+
*
|
|
36
|
+
* @param repoRoot - Repository root directory
|
|
37
|
+
* @returns Fully resolved E2E test user
|
|
38
|
+
*/
|
|
39
|
+
export declare function getE2ETestUser(repoRoot: string): E2ETestUser;
|
|
40
|
+
export interface ApplyAuthUsersParams {
|
|
41
|
+
repoRoot: string;
|
|
42
|
+
tmpDir: string;
|
|
43
|
+
databaseUrlRaw: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Apply auth users seed for E2E tests.
|
|
47
|
+
*
|
|
48
|
+
* This function creates the E2E test user directly using inline SQL,
|
|
49
|
+
* avoiding dependencies on seed_uuid() or other helper functions.
|
|
50
|
+
*
|
|
51
|
+
* DESIGN DECISIONS:
|
|
52
|
+
* 1. Uses hardcoded UUIDs instead of seed_uuid() for reliability in Branch DB
|
|
53
|
+
* 2. Uses inline SQL instead of file-based approach for better error handling
|
|
54
|
+
* 3. Verifies user creation after insert
|
|
55
|
+
* 4. Handles both auth.users and auth.identities tables
|
|
56
|
+
*
|
|
57
|
+
* Why not use GoTrue Admin API?
|
|
58
|
+
* - Would require service_role_key which isn't exposed in Branch DB context
|
|
59
|
+
* - Direct SQL works with the database URL we already have
|
|
60
|
+
*
|
|
61
|
+
* @param params - Parameters including repo root, temp dir, and database URL
|
|
62
|
+
*/
|
|
63
|
+
export declare function applyAuthUsersForE2E(params: ApplyAuthUsersParams): Promise<void>;
|
|
64
|
+
export interface ExportMetadataParams {
|
|
65
|
+
repoRoot: string;
|
|
66
|
+
tmpDir: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ExportMetadataResult {
|
|
69
|
+
rootId: string | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Export primary root ID from seed metadata.
|
|
73
|
+
*
|
|
74
|
+
* @param params - Parameters including repo root and temp dir
|
|
75
|
+
* @returns Result containing root ID or null
|
|
76
|
+
*/
|
|
77
|
+
export declare function exportPrimaryRootIdFromMetadata(params: ExportMetadataParams): Promise<ExportMetadataResult>;
|
|
78
|
+
//# sourceMappingURL=e2e-auth-setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-auth-setup.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/e2e-auth-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA4DH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAgCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CA4B5D;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0HtF;AA4CD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAyC/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Execa helpers for CI orchestration
|
|
3
|
+
*/
|
|
4
|
+
import { type ResultPromise } from 'execa';
|
|
5
|
+
export declare function ensureRunaTmpDir(cwd?: string): Promise<string>;
|
|
6
|
+
export declare function runLogged(params: {
|
|
7
|
+
cwd?: string;
|
|
8
|
+
env?: NodeJS.ProcessEnv;
|
|
9
|
+
label: string;
|
|
10
|
+
command: string;
|
|
11
|
+
args: string[];
|
|
12
|
+
logFile: string;
|
|
13
|
+
}): ResultPromise;
|
|
14
|
+
//# sourceMappingURL=execa-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execa-helpers.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/execa-helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAS,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAyDlD,wBAAsB,gBAAgB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKpE;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,aAAa,CAsBhB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Exit Code Constants and Computation for Layer Blocking Policy
|
|
3
|
+
* Purpose: Graduated exit codes that distinguish blocking vs warning failures
|
|
4
|
+
* Semantics:
|
|
5
|
+
* 0 = All passed (DB deploy allowed)
|
|
6
|
+
* 1 = Blocking layer failed (DB deploy blocked)
|
|
7
|
+
* 2 = Warning/reportOnly layers failed only (DB deploy allowed)
|
|
8
|
+
* Used by: ci-pr.ts to determine final exit code
|
|
9
|
+
*/
|
|
10
|
+
import type { LayerClassification } from '@runa-ai/runa';
|
|
11
|
+
import type { CiSummary } from './ci-summary.js';
|
|
12
|
+
/**
|
|
13
|
+
* CI Exit Codes for layer blocking policy
|
|
14
|
+
*/
|
|
15
|
+
export declare const CI_EXIT_CODES: {
|
|
16
|
+
/** All layers passed */
|
|
17
|
+
readonly SUCCESS: 0;
|
|
18
|
+
/** At least one blocking layer failed - DB deploy blocked */
|
|
19
|
+
readonly BLOCKING_FAILED: 1;
|
|
20
|
+
/** Only warning/reportOnly layers failed - DB deploy allowed */
|
|
21
|
+
readonly WARNING_FAILED: 2;
|
|
22
|
+
/** Test execution timed out */
|
|
23
|
+
readonly TIMEOUT: 41;
|
|
24
|
+
/** User cancelled execution */
|
|
25
|
+
readonly CANCELLED: 42;
|
|
26
|
+
};
|
|
27
|
+
export type CiExitCode = (typeof CI_EXIT_CODES)[keyof typeof CI_EXIT_CODES];
|
|
28
|
+
/**
|
|
29
|
+
* Result of exit code computation with detailed breakdown
|
|
30
|
+
*/
|
|
31
|
+
export interface ComputeExitCodeResult {
|
|
32
|
+
/** Final exit code (0, 1, or 2) */
|
|
33
|
+
exitCode: CiExitCode;
|
|
34
|
+
/** Whether any blocking layer failed */
|
|
35
|
+
blockingFailed: boolean;
|
|
36
|
+
/** Whether any warning layer failed */
|
|
37
|
+
warningFailed: boolean;
|
|
38
|
+
/** Whether any reportOnly layer failed */
|
|
39
|
+
reportOnlyFailed: boolean;
|
|
40
|
+
/** List of failed blocking layer numbers */
|
|
41
|
+
failedBlockingLayers: number[];
|
|
42
|
+
/** List of failed warning layer numbers */
|
|
43
|
+
failedWarningLayers: number[];
|
|
44
|
+
/** List of failed reportOnly layer numbers */
|
|
45
|
+
failedReportOnlyLayers: number[];
|
|
46
|
+
/** Whether DB deploy is allowed based on blocking layer results */
|
|
47
|
+
dbDeployAllowed: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Compute exit code based on layer results and classification
|
|
51
|
+
*
|
|
52
|
+
* Exit code semantics:
|
|
53
|
+
* - 0: All layers passed (or skipped)
|
|
54
|
+
* - 1: At least one blocking layer failed
|
|
55
|
+
* - 2: Only warning/reportOnly layers failed (blocking layers passed)
|
|
56
|
+
*/
|
|
57
|
+
export declare function computeExitCode(summary: CiSummary, classification: LayerClassification[]): ComputeExitCodeResult;
|
|
58
|
+
/**
|
|
59
|
+
* Get summary message for exit code result
|
|
60
|
+
*/
|
|
61
|
+
export declare function getExitCodeSummaryMessage(result: ComputeExitCodeResult): string;
|
|
62
|
+
//# sourceMappingURL=exit-code-computation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit-code-computation.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/exit-code-computation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB,wBAAwB;;IAGxB,6DAA6D;;IAG7D,gEAAgE;;IAGhE,+BAA+B;;IAG/B,+BAA+B;;CAEvB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAM5E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,mCAAmC;IACnC,QAAQ,EAAE,UAAU,CAAC;IAErB,wCAAwC;IACxC,cAAc,EAAE,OAAO,CAAC;IAExB,uCAAuC;IACvC,aAAa,EAAE,OAAO,CAAC;IAEvB,0CAA0C;IAC1C,gBAAgB,EAAE,OAAO,CAAC;IAE1B,4CAA4C;IAC5C,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAE/B,2CAA2C;IAC3C,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B,8CAA8C;IAC9C,sBAAsB,EAAE,MAAM,EAAE,CAAC;IAEjC,mEAAmE;IACnE,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,SAAS,EAClB,cAAc,EAAE,mBAAmB,EAAE,GACpC,qBAAqB,CAyDvB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM,CA0B/E"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Minimal GitHub REST API client (no Octokit dependency)
|
|
3
|
+
*
|
|
4
|
+
* Used to move GitHub Script logic (comments/labels/PR files) from YAML to TS.
|
|
5
|
+
* Uses centralized GITHUB_API endpoints from @runa-ai/runa.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
declare const RepoContextSchema: z.ZodObject<{
|
|
9
|
+
owner: z.ZodString;
|
|
10
|
+
repo: z.ZodString;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export type RepoContext = z.output<typeof RepoContextSchema>;
|
|
13
|
+
export declare function resolveRepoContextFromEnv(): RepoContext;
|
|
14
|
+
export declare function listPullRequestFiles(params: {
|
|
15
|
+
repo: RepoContext;
|
|
16
|
+
pullNumber: number;
|
|
17
|
+
}): Promise<string[]>;
|
|
18
|
+
export declare function upsertIssueComment(params: {
|
|
19
|
+
repo: RepoContext;
|
|
20
|
+
issueNumber: number;
|
|
21
|
+
marker: string;
|
|
22
|
+
body: string;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
export declare function addIssueLabels(params: {
|
|
25
|
+
repo: RepoContext;
|
|
26
|
+
issueNumber: number;
|
|
27
|
+
labels: string[];
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
export declare function findPullRequestNumberForCommit(params: {
|
|
30
|
+
repo: RepoContext;
|
|
31
|
+
sha: string;
|
|
32
|
+
}): Promise<number | null>;
|
|
33
|
+
/**
|
|
34
|
+
* Post a new comment to an issue/PR (no upsert, always creates new).
|
|
35
|
+
*/
|
|
36
|
+
export declare function postIssueComment(params: {
|
|
37
|
+
repo: RepoContext;
|
|
38
|
+
issueNumber: number;
|
|
39
|
+
body: string;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Add a reaction to an issue comment.
|
|
43
|
+
*/
|
|
44
|
+
export declare function addCommentReaction(params: {
|
|
45
|
+
repo: RepoContext;
|
|
46
|
+
commentId: number;
|
|
47
|
+
reaction: 'rocket' | '+1' | '-1' | 'laugh' | 'confused' | 'heart' | 'hooray' | 'eyes';
|
|
48
|
+
}): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Build a workflow run URL.
|
|
51
|
+
*/
|
|
52
|
+
export declare function buildWorkflowRunUrl(): string;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=github-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-api.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/github-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,iBAAiB;;;kBAKZ,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAiB7D,wBAAgB,yBAAyB,IAAI,WAAW,CAIvD;AA8FD,wBAAsB,oBAAoB,CAAC,MAAM,EAAE;IACjD,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAgBpB;AASD,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,IAAI,CAAC,CAsChB;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAED,wBAAsB,8BAA8B,CAAC,MAAM,EAAE;IAC3D,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA0BzB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE;IAC7C,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CACvF,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAI5C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: GitHub Actions utilities (consolidated)
|
|
3
|
+
*
|
|
4
|
+
* This file consolidates GitHub Actions-related utilities:
|
|
5
|
+
* - Step summary writing
|
|
6
|
+
* - Output file writing
|
|
7
|
+
* - Environment file writing
|
|
8
|
+
* - PR context parsing
|
|
9
|
+
*
|
|
10
|
+
* All functions are no-op when not running in GitHub Actions.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Append markdown to GitHub Actions step summary.
|
|
14
|
+
* No-op when not running in GitHub Actions.
|
|
15
|
+
*/
|
|
16
|
+
export declare function appendGithubStepSummary(markdown: string): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Write key-value pairs to GitHub Actions output file.
|
|
19
|
+
* Do NOT write secrets into GITHUB_OUTPUT.
|
|
20
|
+
* No-op when not running in GitHub Actions.
|
|
21
|
+
*/
|
|
22
|
+
export declare function writeGithubOutput(values: Record<string, string>): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Write key-value pairs to GitHub Actions environment file.
|
|
25
|
+
* Use for propagating secret-like values within a job.
|
|
26
|
+
* No-op when not running in GitHub Actions.
|
|
27
|
+
*/
|
|
28
|
+
export declare function writeGithubEnv(values: Record<string, string>): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Add a value to the GitHub Actions mask list.
|
|
31
|
+
* Masked values are redacted from logs.
|
|
32
|
+
*/
|
|
33
|
+
export declare function addGithubMask(value: string | undefined): void;
|
|
34
|
+
export type GithubPrContext = {
|
|
35
|
+
prNumber: number;
|
|
36
|
+
action: string | null;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Read PR context from GitHub Actions event payload.
|
|
40
|
+
* Throws if GITHUB_EVENT_PATH is not set.
|
|
41
|
+
*/
|
|
42
|
+
export declare function readGithubPrContext(): Promise<GithubPrContext>;
|
|
43
|
+
//# sourceMappingURL=github.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/github.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAUH;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI7E;AAMD;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAOrF;AAMD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAOlF;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAI7D;AAeD,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,eAAe,CAAC,CAcpE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: CI utilities barrel export
|
|
3
|
+
*
|
|
4
|
+
* This module provides centralized exports for all CI-related utilities.
|
|
5
|
+
* Import from this index for cleaner imports in command files.
|
|
6
|
+
*/
|
|
7
|
+
export * from './ai-report.js';
|
|
8
|
+
export { type ProcessLogger, terminateAppProcessByPid, terminateAppProcessFromFile, } from './app-process.js';
|
|
9
|
+
export * from './app-runtime.js';
|
|
10
|
+
export * from './ci-config.js';
|
|
11
|
+
export * from './ci-logging.js';
|
|
12
|
+
export * from './ci-summary.js';
|
|
13
|
+
export { enhanceConnectionError, escapeSqlLiteral, getSafeDatabaseTarget, isIPv6Only, normalizeDatabaseUrlForDdl, resolveHostToIPv4, } from './db-url-utils.js';
|
|
14
|
+
export { type ApplyAuthUsersParams, applyAuthUsersForE2E, type ExportMetadataParams, type ExportMetadataResult, exportPrimaryRootIdFromMetadata, } from './e2e-auth-setup.js';
|
|
15
|
+
export * from './execa-helpers.js';
|
|
16
|
+
export * from './exit-code-computation.js';
|
|
17
|
+
export * from './github.js';
|
|
18
|
+
export * from './github-api.js';
|
|
19
|
+
export { type PgTapInstallParams, type PgTapInstallResult, tryEnsurePgTapInstalled, } from './pgtap-installer.js';
|
|
20
|
+
export { type QueryScalarParams, queryScalar, type VerifyPgTapAccessParams, type VerifyRlsAlignmentParams, type VerifyServiceTestParams, verifyDbRlsRoleAlignment, verifyPgTapAccess, verifyServiceTestPrerequisites, } from './rls-verification.js';
|
|
21
|
+
export { type ApplyLocalSchemaParams, type ApplySchemaParams, applyLocalSchemaAndSeeds, applyPreviewSchemaAndPgtap, } from './schema-operations.js';
|
|
22
|
+
export { type ApplySeedsParams, type ApplySeedsResult, applyPreviewSeeds, type FullSeedWorkflowParams, type FullSeedWorkflowResult, type GenerateSeedsParams, type GenerateSeedsResult, generatePreviewSeedsIfPossible, readSchemaSnapshot, runFullSeedWorkflow, type SchemaSnapshotParams, type SchemaSnapshotResult, type VerifySeedsParams, type VerifySeedsResult, verifySeedsNeeded, } from './seed-operations.js';
|
|
23
|
+
export * from './test-parallel.js';
|
|
24
|
+
export * from './timestamp-invariants.js';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EACL,KAAK,aAAa,EAClB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAE1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,KAAK,iBAAiB,EACtB,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,wBAAwB,EACxB,iBAAiB,EACjB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,8BAA8B,EAC9B,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: pgTAP installation utilities for CI operations
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Best-effort pgTAP installation for Layer 2 (pgtap) tests
|
|
5
|
+
* Strategy: If pgTAP is unavailable or not permitted, Layer 2 can be skipped
|
|
6
|
+
*
|
|
7
|
+
* Design decisions:
|
|
8
|
+
* - Avoid hardcoding repo-specific roles/tables
|
|
9
|
+
* - Only probe standard Supabase roles (authenticated, service_role)
|
|
10
|
+
* - Best-effort: never fail CI if pgTAP is unavailable
|
|
11
|
+
*/
|
|
12
|
+
export interface PgTapInstallResult {
|
|
13
|
+
available: boolean;
|
|
14
|
+
installed: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface PgTapInstallParams {
|
|
17
|
+
repoRoot: string;
|
|
18
|
+
tmpDir: string;
|
|
19
|
+
databaseUrlRaw: string;
|
|
20
|
+
label: 'preview' | 'local';
|
|
21
|
+
allowRemediation: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Try to ensure pgTAP is installed in the database.
|
|
25
|
+
*
|
|
26
|
+
* This is best-effort: pj-repos (or Supabase plans) may not ship pgTAP.
|
|
27
|
+
* - If pgTAP is available: install into dedicated schema `pgtap` and grant execute when roles exist.
|
|
28
|
+
* - If not available or not permitted: do NOT fail the whole CI (Layer2 can be skipped).
|
|
29
|
+
*
|
|
30
|
+
* @param params - Installation parameters
|
|
31
|
+
* @returns Result indicating availability and installation status
|
|
32
|
+
*/
|
|
33
|
+
export declare function tryEnsurePgTapInstalled(params: PgTapInstallParams): Promise<PgTapInstallResult>;
|
|
34
|
+
//# sourceMappingURL=pgtap-installer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pgtap-installer.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/pgtap-installer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CA6G7B"}
|