@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,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Centralized Environment Configuration
|
|
3
|
+
* Purpose: Single source of truth for all environment variables with validation
|
|
4
|
+
* Design: Zod schema validation + type inference
|
|
5
|
+
*
|
|
6
|
+
* Benefits:
|
|
7
|
+
* - Type safety across entire CLI
|
|
8
|
+
* - Runtime validation at startup
|
|
9
|
+
* - Clear error messages for missing/invalid env vars
|
|
10
|
+
* - Easy to test (can override with test values)
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import { env } from './config/env';
|
|
15
|
+
*
|
|
16
|
+
* const dbUrl = env.DATABASE_URL; // Type-safe, validated
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import { z } from 'zod';
|
|
20
|
+
/**
|
|
21
|
+
* Environment variable schema
|
|
22
|
+
* Defines all environment variables used by the CLI
|
|
23
|
+
*/
|
|
24
|
+
declare const envSchema: z.ZodObject<{
|
|
25
|
+
NODE_ENV: z.ZodDefault<z.ZodEnum<{
|
|
26
|
+
production: "production";
|
|
27
|
+
test: "test";
|
|
28
|
+
development: "development";
|
|
29
|
+
}>>;
|
|
30
|
+
CI: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<boolean, string | undefined>>;
|
|
31
|
+
DEBUG: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<boolean, string | undefined>>;
|
|
32
|
+
DATABASE_URL: z.ZodType<string | undefined, unknown, z.core.$ZodTypeInternals<string | undefined, unknown>>;
|
|
33
|
+
POSTGRES_PASSWORD: z.ZodOptional<z.ZodString>;
|
|
34
|
+
POSTGRES_USER: z.ZodDefault<z.ZodString>;
|
|
35
|
+
POSTGRES_DB: z.ZodDefault<z.ZodString>;
|
|
36
|
+
POSTGRES_HOST: z.ZodDefault<z.ZodString>;
|
|
37
|
+
POSTGRES_PORT: z.ZodOptional<z.ZodString>;
|
|
38
|
+
SUPABASE_URL: z.ZodType<string | undefined, unknown, z.core.$ZodTypeInternals<string | undefined, unknown>>;
|
|
39
|
+
SUPABASE_ANON_KEY: z.ZodOptional<z.ZodString>;
|
|
40
|
+
SUPABASE_SERVICE_ROLE_KEY: z.ZodOptional<z.ZodString>;
|
|
41
|
+
SUPABASE_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
|
|
42
|
+
SUPABASE_PROJECT_REF: z.ZodOptional<z.ZodString>;
|
|
43
|
+
NEXT_PUBLIC_SUPABASE_URL: z.ZodType<string | undefined, unknown, z.core.$ZodTypeInternals<string | undefined, unknown>>;
|
|
44
|
+
GITHUB_TOKEN: z.ZodOptional<z.ZodString>;
|
|
45
|
+
GITHUB_APP_ID: z.ZodOptional<z.ZodString>;
|
|
46
|
+
GITHUB_APP_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
47
|
+
GITHUB_INSTALLATION_ID: z.ZodOptional<z.ZodString>;
|
|
48
|
+
VERCEL_TOKEN: z.ZodOptional<z.ZodString>;
|
|
49
|
+
VERCEL_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
50
|
+
VERCEL_ORG_ID: z.ZodOptional<z.ZodString>;
|
|
51
|
+
BASE_URL: z.ZodType<string | undefined, unknown, z.core.$ZodTypeInternals<string | undefined, unknown>>;
|
|
52
|
+
SKIP_SERVER: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<boolean, string | undefined>>;
|
|
53
|
+
LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
error: "error";
|
|
55
|
+
debug: "debug";
|
|
56
|
+
info: "info";
|
|
57
|
+
warn: "warn";
|
|
58
|
+
}>>;
|
|
59
|
+
RUNA_LOG_JSON: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<boolean, string | undefined>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
/**
|
|
62
|
+
* Parsed and validated environment variables
|
|
63
|
+
* Type is inferred from the schema
|
|
64
|
+
*/
|
|
65
|
+
export type Env = z.infer<typeof envSchema>;
|
|
66
|
+
/**
|
|
67
|
+
* Singleton instance of validated environment variables
|
|
68
|
+
*
|
|
69
|
+
* Loaded once at module initialization for performance
|
|
70
|
+
*/
|
|
71
|
+
export declare const env: {
|
|
72
|
+
NODE_ENV: "production" | "test" | "development";
|
|
73
|
+
CI: boolean;
|
|
74
|
+
DEBUG: boolean;
|
|
75
|
+
DATABASE_URL: string | undefined;
|
|
76
|
+
POSTGRES_USER: string;
|
|
77
|
+
POSTGRES_DB: string;
|
|
78
|
+
POSTGRES_HOST: string;
|
|
79
|
+
SUPABASE_URL: string | undefined;
|
|
80
|
+
NEXT_PUBLIC_SUPABASE_URL: string | undefined;
|
|
81
|
+
BASE_URL: string | undefined;
|
|
82
|
+
SKIP_SERVER: boolean;
|
|
83
|
+
LOG_LEVEL: "error" | "debug" | "info" | "warn";
|
|
84
|
+
RUNA_LOG_JSON: boolean;
|
|
85
|
+
POSTGRES_PASSWORD?: string | undefined;
|
|
86
|
+
POSTGRES_PORT?: string | undefined;
|
|
87
|
+
SUPABASE_ANON_KEY?: string | undefined;
|
|
88
|
+
SUPABASE_SERVICE_ROLE_KEY?: string | undefined;
|
|
89
|
+
SUPABASE_ACCESS_TOKEN?: string | undefined;
|
|
90
|
+
SUPABASE_PROJECT_REF?: string | undefined;
|
|
91
|
+
GITHUB_TOKEN?: string | undefined;
|
|
92
|
+
GITHUB_APP_ID?: string | undefined;
|
|
93
|
+
GITHUB_APP_PRIVATE_KEY?: string | undefined;
|
|
94
|
+
GITHUB_INSTALLATION_ID?: string | undefined;
|
|
95
|
+
VERCEL_TOKEN?: string | undefined;
|
|
96
|
+
VERCEL_PROJECT_ID?: string | undefined;
|
|
97
|
+
VERCEL_ORG_ID?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Check if specific environment variables are set
|
|
101
|
+
* Useful for optional feature detection
|
|
102
|
+
*/
|
|
103
|
+
export declare function hasEnv(...keys: (keyof Env)[]): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Get database URL with fallback construction
|
|
106
|
+
*
|
|
107
|
+
* Priority:
|
|
108
|
+
* 1. DATABASE_URL environment variable
|
|
109
|
+
* 2. Construct from POSTGRES_* variables (with dynamic port detection)
|
|
110
|
+
*
|
|
111
|
+
* Zero Hardcode: If POSTGRES_PORT is not set, dynamically detect from:
|
|
112
|
+
* - runa.config.ts portOffset setting
|
|
113
|
+
* - supabase/config.toml
|
|
114
|
+
* - Hash-based port allocation
|
|
115
|
+
*/
|
|
116
|
+
export declare function getDatabaseUrl(): string;
|
|
117
|
+
/**
|
|
118
|
+
* Check if running in CI environment
|
|
119
|
+
*/
|
|
120
|
+
export declare function isCI(): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Check if debug mode is enabled
|
|
123
|
+
*/
|
|
124
|
+
export declare function isDebug(): boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Sanitize sensitive data from environment variables
|
|
127
|
+
* Useful for logging
|
|
128
|
+
*/
|
|
129
|
+
export declare function sanitizeEnv(envVars: Partial<Env>): Record<string, string | boolean | undefined>;
|
|
130
|
+
export {};
|
|
131
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/config/env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB;;;GAGG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqDb,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAuB5C;;;;GAIG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAY,CAAC;AAE7B;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,OAAO,CAKtD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAwBvC;AAED;;GAEG;AACH,wBAAgB,IAAI,IAAI,OAAO,CAE9B;AAED;;GAEG;AACH,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAoB/F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Template Version Constants
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Define compatible templates version for CLI
|
|
5
|
+
* Used by: template-fetcher.ts, init.ts, upgrade.ts
|
|
6
|
+
*
|
|
7
|
+
* Version Strategy:
|
|
8
|
+
* - Templates are versioned independently from SDK
|
|
9
|
+
* - COMPATIBLE_TEMPLATES_VERSION is the minimum compatible version
|
|
10
|
+
* - CLI fetches templates from @r06-dev/runa-templates on GitHub Packages
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Compatible templates version.
|
|
14
|
+
* This should be updated when templates have breaking changes.
|
|
15
|
+
*/
|
|
16
|
+
export declare const COMPATIBLE_TEMPLATES_VERSION = "0.1.0";
|
|
17
|
+
/**
|
|
18
|
+
* Templates package name on GitHub Packages.
|
|
19
|
+
* Published to npm.pkg.github.com (requires NODE_AUTH_TOKEN).
|
|
20
|
+
*/
|
|
21
|
+
export declare const TEMPLATES_PACKAGE_NAME = "@r06-dev/runa-templates";
|
|
22
|
+
/**
|
|
23
|
+
* GitHub Packages registry URL.
|
|
24
|
+
*/
|
|
25
|
+
export declare const GITHUB_PACKAGES_REGISTRY = "https://npm.pkg.github.com";
|
|
26
|
+
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/constants/versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/contracts/envelope.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,GACpB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: CLI Error Catalog
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Central registry of all CLI error definitions
|
|
5
|
+
* Philosophy: Industry best practice error handling (pnpm, Vercel, GitHub CLI patterns)
|
|
6
|
+
*
|
|
7
|
+
* Benefits:
|
|
8
|
+
* - Type-safe error creation via createError()
|
|
9
|
+
* - Consistent error codes (ERR_RUNA_*)
|
|
10
|
+
* - Categorized exit codes (POSIX-aligned)
|
|
11
|
+
* - Documentation URLs for each error
|
|
12
|
+
* - Upgrade-resilient (error definitions separate from detection)
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* import { createError, ErrorCode } from '../errors/catalog.js';
|
|
16
|
+
* throw createError('CONFIG_NOT_FOUND', { path: 'runa.config.ts' });
|
|
17
|
+
*/
|
|
18
|
+
import { CLIError } from '@runa-ai/runa';
|
|
19
|
+
import { type ExitCode } from './exit-codes.js';
|
|
20
|
+
export interface ErrorDefinition<TParams extends Record<string, unknown> = Record<string, never>> {
|
|
21
|
+
/** Error code following ERR_RUNA_* pattern */
|
|
22
|
+
code: string;
|
|
23
|
+
/** POSIX-aligned exit code category */
|
|
24
|
+
exitCode: ExitCode;
|
|
25
|
+
/** Short human-readable title */
|
|
26
|
+
title: string;
|
|
27
|
+
/** Message template with {param} placeholders */
|
|
28
|
+
template: string;
|
|
29
|
+
/** Recovery suggestions (static or dynamic based on params) */
|
|
30
|
+
suggestions: string[] | ((params: TParams) => string[]);
|
|
31
|
+
/** Documentation URL */
|
|
32
|
+
docUrl?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Central error catalog with all error definitions.
|
|
36
|
+
* Grouped by exit code category for clarity.
|
|
37
|
+
*/
|
|
38
|
+
export declare const ERROR_CATALOG: {
|
|
39
|
+
readonly CONFIG_NOT_FOUND: {
|
|
40
|
+
code: string;
|
|
41
|
+
exitCode: 3;
|
|
42
|
+
title: string;
|
|
43
|
+
template: string;
|
|
44
|
+
suggestions: string[];
|
|
45
|
+
docUrl: string;
|
|
46
|
+
};
|
|
47
|
+
readonly CONFIG_INVALID: {
|
|
48
|
+
code: string;
|
|
49
|
+
exitCode: 3;
|
|
50
|
+
title: string;
|
|
51
|
+
template: string;
|
|
52
|
+
suggestions: string[];
|
|
53
|
+
docUrl: string;
|
|
54
|
+
};
|
|
55
|
+
readonly CONFIG_SCHEMA_MISMATCH: {
|
|
56
|
+
code: string;
|
|
57
|
+
exitCode: 3;
|
|
58
|
+
title: string;
|
|
59
|
+
template: string;
|
|
60
|
+
suggestions: string[];
|
|
61
|
+
docUrl: string;
|
|
62
|
+
};
|
|
63
|
+
readonly ENV_FILE_NOT_FOUND: {
|
|
64
|
+
code: string;
|
|
65
|
+
exitCode: 3;
|
|
66
|
+
title: string;
|
|
67
|
+
template: string;
|
|
68
|
+
suggestions: string[];
|
|
69
|
+
docUrl: string;
|
|
70
|
+
};
|
|
71
|
+
readonly ENV_KEY_MISSING: {
|
|
72
|
+
code: string;
|
|
73
|
+
exitCode: 3;
|
|
74
|
+
title: string;
|
|
75
|
+
template: string;
|
|
76
|
+
suggestions: string[];
|
|
77
|
+
docUrl: string;
|
|
78
|
+
};
|
|
79
|
+
readonly ENV_VAR_MISSING: {
|
|
80
|
+
code: string;
|
|
81
|
+
exitCode: 3;
|
|
82
|
+
title: string;
|
|
83
|
+
template: string;
|
|
84
|
+
suggestions: (params: {
|
|
85
|
+
varName: string;
|
|
86
|
+
}) => string[];
|
|
87
|
+
docUrl: string;
|
|
88
|
+
};
|
|
89
|
+
readonly GITHUB_AUTH_REQUIRED: {
|
|
90
|
+
code: string;
|
|
91
|
+
exitCode: 4;
|
|
92
|
+
title: string;
|
|
93
|
+
template: string;
|
|
94
|
+
suggestions: string[];
|
|
95
|
+
docUrl: string;
|
|
96
|
+
};
|
|
97
|
+
readonly GITHUB_AUTH_FAILED: {
|
|
98
|
+
code: string;
|
|
99
|
+
exitCode: 4;
|
|
100
|
+
title: string;
|
|
101
|
+
template: string;
|
|
102
|
+
suggestions: string[];
|
|
103
|
+
docUrl: string;
|
|
104
|
+
};
|
|
105
|
+
readonly VERCEL_AUTH_REQUIRED: {
|
|
106
|
+
code: string;
|
|
107
|
+
exitCode: 4;
|
|
108
|
+
title: string;
|
|
109
|
+
template: string;
|
|
110
|
+
suggestions: string[];
|
|
111
|
+
docUrl: string;
|
|
112
|
+
};
|
|
113
|
+
readonly SUPABASE_AUTH_REQUIRED: {
|
|
114
|
+
code: string;
|
|
115
|
+
exitCode: 4;
|
|
116
|
+
title: string;
|
|
117
|
+
template: string;
|
|
118
|
+
suggestions: string[];
|
|
119
|
+
docUrl: string;
|
|
120
|
+
};
|
|
121
|
+
readonly AUTH_TOKEN_MISSING: {
|
|
122
|
+
code: string;
|
|
123
|
+
exitCode: 4;
|
|
124
|
+
title: string;
|
|
125
|
+
template: string;
|
|
126
|
+
suggestions: (params: {
|
|
127
|
+
tokenName: string;
|
|
128
|
+
}) => string[];
|
|
129
|
+
docUrl: string;
|
|
130
|
+
};
|
|
131
|
+
readonly LICENSE_UNAUTHORIZED: {
|
|
132
|
+
code: string;
|
|
133
|
+
exitCode: 4;
|
|
134
|
+
title: string;
|
|
135
|
+
template: string;
|
|
136
|
+
suggestions: string[];
|
|
137
|
+
docUrl: string;
|
|
138
|
+
};
|
|
139
|
+
readonly NETWORK_TIMEOUT: {
|
|
140
|
+
code: string;
|
|
141
|
+
exitCode: 5;
|
|
142
|
+
title: string;
|
|
143
|
+
template: string;
|
|
144
|
+
suggestions: string[];
|
|
145
|
+
docUrl: string;
|
|
146
|
+
};
|
|
147
|
+
readonly NETWORK_CONNECTION_REFUSED: {
|
|
148
|
+
code: string;
|
|
149
|
+
exitCode: 5;
|
|
150
|
+
title: string;
|
|
151
|
+
template: string;
|
|
152
|
+
suggestions: (params: {
|
|
153
|
+
host: string;
|
|
154
|
+
port: number;
|
|
155
|
+
}) => string[];
|
|
156
|
+
docUrl: string;
|
|
157
|
+
};
|
|
158
|
+
readonly API_REQUEST_FAILED: {
|
|
159
|
+
code: string;
|
|
160
|
+
exitCode: 5;
|
|
161
|
+
title: string;
|
|
162
|
+
template: string;
|
|
163
|
+
suggestions: string[];
|
|
164
|
+
docUrl: string;
|
|
165
|
+
};
|
|
166
|
+
readonly DATABASE_CONNECTION_FAILED: {
|
|
167
|
+
code: string;
|
|
168
|
+
exitCode: 6;
|
|
169
|
+
title: string;
|
|
170
|
+
template: string;
|
|
171
|
+
suggestions: string[];
|
|
172
|
+
docUrl: string;
|
|
173
|
+
};
|
|
174
|
+
readonly DATABASE_URL_MISSING: {
|
|
175
|
+
code: string;
|
|
176
|
+
exitCode: 6;
|
|
177
|
+
title: string;
|
|
178
|
+
template: string;
|
|
179
|
+
suggestions: string[];
|
|
180
|
+
docUrl: string;
|
|
181
|
+
};
|
|
182
|
+
readonly DATABASE_SCHEMA_SYNC_FAILED: {
|
|
183
|
+
code: string;
|
|
184
|
+
exitCode: 6;
|
|
185
|
+
title: string;
|
|
186
|
+
template: string;
|
|
187
|
+
suggestions: string[];
|
|
188
|
+
docUrl: string;
|
|
189
|
+
};
|
|
190
|
+
readonly DATABASE_SEED_FAILED: {
|
|
191
|
+
code: string;
|
|
192
|
+
exitCode: 6;
|
|
193
|
+
title: string;
|
|
194
|
+
template: string;
|
|
195
|
+
suggestions: string[];
|
|
196
|
+
docUrl: string;
|
|
197
|
+
};
|
|
198
|
+
readonly DATABASE_MIGRATION_HAZARD: {
|
|
199
|
+
code: string;
|
|
200
|
+
exitCode: 6;
|
|
201
|
+
title: string;
|
|
202
|
+
template: string;
|
|
203
|
+
suggestions: string[];
|
|
204
|
+
docUrl: string;
|
|
205
|
+
};
|
|
206
|
+
readonly DATABASE_QUERY_FAILED: {
|
|
207
|
+
code: string;
|
|
208
|
+
exitCode: 6;
|
|
209
|
+
title: string;
|
|
210
|
+
template: string;
|
|
211
|
+
suggestions: string[];
|
|
212
|
+
docUrl: string;
|
|
213
|
+
};
|
|
214
|
+
readonly DOCKER_NOT_RUNNING: {
|
|
215
|
+
code: string;
|
|
216
|
+
exitCode: 7;
|
|
217
|
+
title: string;
|
|
218
|
+
template: string;
|
|
219
|
+
suggestions: string[];
|
|
220
|
+
docUrl: string;
|
|
221
|
+
};
|
|
222
|
+
readonly TOOL_NOT_FOUND: {
|
|
223
|
+
code: string;
|
|
224
|
+
exitCode: 7;
|
|
225
|
+
title: string;
|
|
226
|
+
template: string;
|
|
227
|
+
suggestions: (params: {
|
|
228
|
+
tool: string;
|
|
229
|
+
}) => string[];
|
|
230
|
+
docUrl: string;
|
|
231
|
+
};
|
|
232
|
+
readonly TOOL_EXECUTION_FAILED: {
|
|
233
|
+
code: string;
|
|
234
|
+
exitCode: 7;
|
|
235
|
+
title: string;
|
|
236
|
+
template: string;
|
|
237
|
+
suggestions: (params: {
|
|
238
|
+
tool: string;
|
|
239
|
+
reason: string;
|
|
240
|
+
}) => string[];
|
|
241
|
+
docUrl: string;
|
|
242
|
+
};
|
|
243
|
+
readonly PORT_IN_USE: {
|
|
244
|
+
code: string;
|
|
245
|
+
exitCode: 7;
|
|
246
|
+
title: string;
|
|
247
|
+
template: string;
|
|
248
|
+
suggestions: (params: {
|
|
249
|
+
port: number;
|
|
250
|
+
}) => string[];
|
|
251
|
+
docUrl: string;
|
|
252
|
+
};
|
|
253
|
+
readonly SUPABASE_CLI_ERROR: {
|
|
254
|
+
code: string;
|
|
255
|
+
exitCode: 7;
|
|
256
|
+
title: string;
|
|
257
|
+
template: string;
|
|
258
|
+
suggestions: string[];
|
|
259
|
+
docUrl: string;
|
|
260
|
+
};
|
|
261
|
+
readonly PG_SCHEMA_DIFF_ERROR: {
|
|
262
|
+
code: string;
|
|
263
|
+
exitCode: 7;
|
|
264
|
+
title: string;
|
|
265
|
+
template: string;
|
|
266
|
+
suggestions: string[];
|
|
267
|
+
docUrl: string;
|
|
268
|
+
};
|
|
269
|
+
readonly GIT_DIRTY_WORKING_TREE: {
|
|
270
|
+
code: string;
|
|
271
|
+
exitCode: 8;
|
|
272
|
+
title: string;
|
|
273
|
+
template: string;
|
|
274
|
+
suggestions: string[];
|
|
275
|
+
docUrl: string;
|
|
276
|
+
};
|
|
277
|
+
readonly GIT_NOT_ON_BRANCH: {
|
|
278
|
+
code: string;
|
|
279
|
+
exitCode: 8;
|
|
280
|
+
title: string;
|
|
281
|
+
template: string;
|
|
282
|
+
suggestions: string[];
|
|
283
|
+
docUrl: string;
|
|
284
|
+
};
|
|
285
|
+
readonly GIT_PUSH_FAILED: {
|
|
286
|
+
code: string;
|
|
287
|
+
exitCode: 8;
|
|
288
|
+
title: string;
|
|
289
|
+
template: string;
|
|
290
|
+
suggestions: string[];
|
|
291
|
+
docUrl: string;
|
|
292
|
+
};
|
|
293
|
+
readonly TYPE_CHECK_FAILED: {
|
|
294
|
+
code: string;
|
|
295
|
+
exitCode: 9;
|
|
296
|
+
title: string;
|
|
297
|
+
template: string;
|
|
298
|
+
suggestions: string[];
|
|
299
|
+
docUrl: string;
|
|
300
|
+
};
|
|
301
|
+
readonly LINT_FAILED: {
|
|
302
|
+
code: string;
|
|
303
|
+
exitCode: 9;
|
|
304
|
+
title: string;
|
|
305
|
+
template: string;
|
|
306
|
+
suggestions: string[];
|
|
307
|
+
docUrl: string;
|
|
308
|
+
};
|
|
309
|
+
readonly BUILD_FAILED: {
|
|
310
|
+
code: string;
|
|
311
|
+
exitCode: 9;
|
|
312
|
+
title: string;
|
|
313
|
+
template: string;
|
|
314
|
+
suggestions: string[];
|
|
315
|
+
docUrl: string;
|
|
316
|
+
};
|
|
317
|
+
readonly TURBO_CACHE_ERROR: {
|
|
318
|
+
code: string;
|
|
319
|
+
exitCode: 9;
|
|
320
|
+
title: string;
|
|
321
|
+
template: string;
|
|
322
|
+
suggestions: string[];
|
|
323
|
+
docUrl: string;
|
|
324
|
+
};
|
|
325
|
+
readonly TEST_FAILED: {
|
|
326
|
+
code: string;
|
|
327
|
+
exitCode: 10;
|
|
328
|
+
title: string;
|
|
329
|
+
template: string;
|
|
330
|
+
suggestions: string[];
|
|
331
|
+
docUrl: string;
|
|
332
|
+
};
|
|
333
|
+
readonly TEST_TIMEOUT: {
|
|
334
|
+
code: string;
|
|
335
|
+
exitCode: 10;
|
|
336
|
+
title: string;
|
|
337
|
+
template: string;
|
|
338
|
+
suggestions: string[];
|
|
339
|
+
docUrl: string;
|
|
340
|
+
};
|
|
341
|
+
readonly INVALID_ARGUMENT: {
|
|
342
|
+
code: string;
|
|
343
|
+
exitCode: 2;
|
|
344
|
+
title: string;
|
|
345
|
+
template: string;
|
|
346
|
+
suggestions: string[];
|
|
347
|
+
docUrl: string;
|
|
348
|
+
};
|
|
349
|
+
readonly MISSING_ARGUMENT: {
|
|
350
|
+
code: string;
|
|
351
|
+
exitCode: 2;
|
|
352
|
+
title: string;
|
|
353
|
+
template: string;
|
|
354
|
+
suggestions: (params: {
|
|
355
|
+
argument: string;
|
|
356
|
+
command: string;
|
|
357
|
+
}) => string[];
|
|
358
|
+
docUrl: string;
|
|
359
|
+
};
|
|
360
|
+
readonly INVALID_MODE: {
|
|
361
|
+
code: string;
|
|
362
|
+
exitCode: 2;
|
|
363
|
+
title: string;
|
|
364
|
+
template: string;
|
|
365
|
+
suggestions: (params: {
|
|
366
|
+
mode: string;
|
|
367
|
+
validModes: string;
|
|
368
|
+
}) => string[];
|
|
369
|
+
docUrl: string;
|
|
370
|
+
};
|
|
371
|
+
readonly INTERNAL_ERROR: {
|
|
372
|
+
code: string;
|
|
373
|
+
exitCode: 1;
|
|
374
|
+
title: string;
|
|
375
|
+
template: string;
|
|
376
|
+
suggestions: string[];
|
|
377
|
+
docUrl: string;
|
|
378
|
+
};
|
|
379
|
+
readonly OPERATION_CANCELLED: {
|
|
380
|
+
code: string;
|
|
381
|
+
exitCode: 1;
|
|
382
|
+
title: string;
|
|
383
|
+
template: string;
|
|
384
|
+
suggestions: string[];
|
|
385
|
+
};
|
|
386
|
+
readonly MACHINE_NO_OUTPUT: {
|
|
387
|
+
code: string;
|
|
388
|
+
exitCode: 1;
|
|
389
|
+
title: string;
|
|
390
|
+
template: string;
|
|
391
|
+
suggestions: string[];
|
|
392
|
+
docUrl: string;
|
|
393
|
+
};
|
|
394
|
+
readonly TEMPLATES_NOT_FOUND: {
|
|
395
|
+
code: string;
|
|
396
|
+
exitCode: 1;
|
|
397
|
+
title: string;
|
|
398
|
+
template: string;
|
|
399
|
+
suggestions: string[];
|
|
400
|
+
docUrl: string;
|
|
401
|
+
};
|
|
402
|
+
readonly FILE_NOT_FOUND: {
|
|
403
|
+
code: string;
|
|
404
|
+
exitCode: 1;
|
|
405
|
+
title: string;
|
|
406
|
+
template: string;
|
|
407
|
+
suggestions: string[];
|
|
408
|
+
};
|
|
409
|
+
readonly SCRIPT_NOT_FOUND: {
|
|
410
|
+
code: string;
|
|
411
|
+
exitCode: 1;
|
|
412
|
+
title: string;
|
|
413
|
+
template: string;
|
|
414
|
+
suggestions: string[];
|
|
415
|
+
docUrl: string;
|
|
416
|
+
};
|
|
417
|
+
readonly HOTFIX_NOT_FOUND: {
|
|
418
|
+
code: string;
|
|
419
|
+
exitCode: 1;
|
|
420
|
+
title: string;
|
|
421
|
+
template: string;
|
|
422
|
+
suggestions: string[];
|
|
423
|
+
docUrl: string;
|
|
424
|
+
};
|
|
425
|
+
readonly HOTFIX_INVALID_NAME: {
|
|
426
|
+
code: string;
|
|
427
|
+
exitCode: 2;
|
|
428
|
+
title: string;
|
|
429
|
+
template: string;
|
|
430
|
+
suggestions: string[];
|
|
431
|
+
docUrl: string;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
/** All available error codes */
|
|
435
|
+
export type ErrorCode = keyof typeof ERROR_CATALOG;
|
|
436
|
+
/**
|
|
437
|
+
* Create a CLIError from the error catalog.
|
|
438
|
+
*
|
|
439
|
+
* @example
|
|
440
|
+
* throw createError('CONFIG_NOT_FOUND', { path: 'runa.config.ts' });
|
|
441
|
+
* throw createError('DATABASE_CONNECTION_FAILED', { reason: 'Connection refused' });
|
|
442
|
+
* throw createError('DOCKER_NOT_RUNNING'); // No params needed
|
|
443
|
+
*
|
|
444
|
+
* Note: Params are typed as Record<string, unknown> for simplicity.
|
|
445
|
+
* The template placeholders {param} are replaced with provided values.
|
|
446
|
+
*/
|
|
447
|
+
export declare function createError(errorCode: ErrorCode, params?: Record<string, unknown>): CLIError;
|
|
448
|
+
/**
|
|
449
|
+
* Get error definition by code.
|
|
450
|
+
* Useful for documentation generation or error lookup.
|
|
451
|
+
*/
|
|
452
|
+
export declare function getErrorDefinition<K extends ErrorCode>(errorCode: K): (typeof ERROR_CATALOG)[K];
|
|
453
|
+
/**
|
|
454
|
+
* Get all error codes for a specific exit code category.
|
|
455
|
+
*/
|
|
456
|
+
export declare function getErrorCodesByExitCode(exitCode: ExitCode): ErrorCode[];
|
|
457
|
+
/**
|
|
458
|
+
* Check if a CLIError matches a specific catalog error code.
|
|
459
|
+
*/
|
|
460
|
+
export declare function isErrorCode(error: CLIError, errorCode: ErrorCode): boolean;
|
|
461
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/errors/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM5D,MAAM,WAAW,eAAe,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAC9F,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,EAAE,QAAQ,CAAC;IACnB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,EAAE,CAAC,CAAC;IACxD,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6De,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAuDJ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2CX,MAAM;kBAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8HpB,MAAM;;;;;;;;;;kBAaN,MAAM;oBAAU,MAAM;;;;;;;;;;kBAatB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA4KF,MAAM;qBAAW,MAAM;;;;;;;;;;kBAS3B,MAAM;wBAAc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFtD,CAAC;AAMX,gCAAgC;AAChC,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,aAAa,CAAC;AAMnD;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,QAAQ,CAiBhG;AAiBD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAE/F;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAAE,CAIvE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAE1E"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: CLI Exit Code Definitions
|
|
3
|
+
*
|
|
4
|
+
* Purpose: POSIX-aligned exit code categories for CLI
|
|
5
|
+
* Reference: https://www.ditig.com/linux-exit-status-codes
|
|
6
|
+
*
|
|
7
|
+
* Philosophy:
|
|
8
|
+
* - Exit codes enable programmatic error handling in scripts
|
|
9
|
+
* - Categories allow callers to handle errors by type
|
|
10
|
+
* - Compatible with CI systems (GitHub Actions, etc.)
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Exit code categories
|
|
14
|
+
*
|
|
15
|
+
* 0: Success
|
|
16
|
+
* 1: General error (unknown/uncategorized)
|
|
17
|
+
* 2: Usage error (invalid arguments, --help needed)
|
|
18
|
+
* 3: Configuration error (runa.config.ts, .env files)
|
|
19
|
+
* 4: Authentication error (tokens, credentials)
|
|
20
|
+
* 5: Network error (API timeout, connection refused)
|
|
21
|
+
* 6: Database error (connection, schema, seeds)
|
|
22
|
+
* 7: External tool error (Docker, pg-schema-diff, Supabase CLI)
|
|
23
|
+
* 8: Git error (uncommitted changes, merge conflict)
|
|
24
|
+
* 9: Build error (type-check, lint, compilation)
|
|
25
|
+
* 10: Test error (test failures)
|
|
26
|
+
* 11-20: Reserved for command-specific errors
|
|
27
|
+
*/
|
|
28
|
+
export declare const EXIT_CODES: {
|
|
29
|
+
readonly SUCCESS: 0;
|
|
30
|
+
readonly GENERAL_ERROR: 1;
|
|
31
|
+
readonly USAGE_ERROR: 2;
|
|
32
|
+
readonly CONFIG_ERROR: 3;
|
|
33
|
+
readonly AUTH_ERROR: 4;
|
|
34
|
+
readonly NETWORK_ERROR: 5;
|
|
35
|
+
readonly DATABASE_ERROR: 6;
|
|
36
|
+
readonly EXTERNAL_TOOL_ERROR: 7;
|
|
37
|
+
readonly GIT_ERROR: 8;
|
|
38
|
+
readonly BUILD_ERROR: 9;
|
|
39
|
+
readonly TEST_ERROR: 10;
|
|
40
|
+
};
|
|
41
|
+
export type ExitCode = (typeof EXIT_CODES)[keyof typeof EXIT_CODES];
|
|
42
|
+
/**
|
|
43
|
+
* Get human-readable description for exit code
|
|
44
|
+
*/
|
|
45
|
+
export declare function getExitCodeDescription(code: ExitCode): string;
|
|
46
|
+
//# sourceMappingURL=exit-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit-codes.d.ts","sourceRoot":"","sources":["../../src/errors/exit-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;CAYb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEpE;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CA2B7D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: CLI Error System
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Centralized error handling exports
|
|
5
|
+
* Pattern: Error Catalog + Exit Codes + Error Factory
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* import { createError, EXIT_CODES } from '../errors/index.js';
|
|
9
|
+
* throw createError('CONFIG_NOT_FOUND', { path: 'runa.config.ts' });
|
|
10
|
+
*/
|
|
11
|
+
export { EXIT_CODES, type ExitCode, getExitCodeDescription } from './exit-codes.js';
|
|
12
|
+
export { ERROR_CATALOG, type ErrorCode, type ErrorDefinition, createError, getErrorDefinition, getErrorCodesByExitCode, isErrorCode, } from './catalog.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|