@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,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Hotfix XState Machine - Emergency Fix Workflow
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Orchestrate hotfix workflow from creation to completion
|
|
5
|
+
* Pattern: CLI-centric state machine with observable behavior
|
|
6
|
+
* Location: CLI owns workflow orchestration
|
|
7
|
+
*
|
|
8
|
+
* State Flow:
|
|
9
|
+
* loading → idle → creating → inProgress → deploying → deployed → completing → completed
|
|
10
|
+
* ↘ cancelling → cancelled
|
|
11
|
+
*
|
|
12
|
+
* The E2E Rule:
|
|
13
|
+
* - Each state produces observable behavior (log output, file changes)
|
|
14
|
+
* - Exit codes: 0=success, 1=failure, 2=cancelled
|
|
15
|
+
* - All transitions are testable via snapshot assertions
|
|
16
|
+
*
|
|
17
|
+
* E2E Test Mapping (CLI observable behavior):
|
|
18
|
+
* - loading → expect(log).toContain('Loading hotfix metadata')
|
|
19
|
+
* - idle → expect(log).toContain('No active hotfix')
|
|
20
|
+
* - creating → expect(file('.hotfix/metadata.json')).toExist()
|
|
21
|
+
* - inProgress → expect(log).toContain('Hotfix in progress')
|
|
22
|
+
* - deploying → expect(log).toContain('Deploying hotfix')
|
|
23
|
+
* - deployed → expect(log).toContain('Hotfix deployed')
|
|
24
|
+
* - completing → expect(log).toContain('Completing hotfix')
|
|
25
|
+
* - completed → expect(exitCode).toBe(0)
|
|
26
|
+
* - cancelled → expect(exitCode).toBe(2)
|
|
27
|
+
*
|
|
28
|
+
* Usage:
|
|
29
|
+
* ```ts
|
|
30
|
+
* import { runMachine } from '../../internal/machines/index.js';
|
|
31
|
+
* import { hotfixMachine } from './machine.js';
|
|
32
|
+
*
|
|
33
|
+
* const result = await runMachine({
|
|
34
|
+
* machine: hotfixMachine,
|
|
35
|
+
* input: { targetDir: process.cwd() },
|
|
36
|
+
* logger,
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
import { type SnapshotFrom } from 'xstate';
|
|
41
|
+
import * as actors from './actors.js';
|
|
42
|
+
import type { HotfixMetadata } from './contract.js';
|
|
43
|
+
export interface HotfixContext {
|
|
44
|
+
targetDir: string;
|
|
45
|
+
metadata: HotfixMetadata | null;
|
|
46
|
+
prUrl?: string;
|
|
47
|
+
error?: string;
|
|
48
|
+
}
|
|
49
|
+
export type HotfixEvent = {
|
|
50
|
+
type: 'CREATE';
|
|
51
|
+
name: string;
|
|
52
|
+
base?: string;
|
|
53
|
+
skipSnapshot?: boolean;
|
|
54
|
+
} | {
|
|
55
|
+
type: 'DEPLOY';
|
|
56
|
+
autoApprove?: boolean;
|
|
57
|
+
skipChecks?: boolean;
|
|
58
|
+
} | {
|
|
59
|
+
type: 'COMPLETE';
|
|
60
|
+
noPr?: boolean;
|
|
61
|
+
autoApprove?: boolean;
|
|
62
|
+
} | {
|
|
63
|
+
type: 'CANCEL';
|
|
64
|
+
} | {
|
|
65
|
+
type: 'RESTORE';
|
|
66
|
+
};
|
|
67
|
+
export declare const hotfixMachine: import("xstate").StateMachine<HotfixContext, {
|
|
68
|
+
type: "CREATE";
|
|
69
|
+
name: string;
|
|
70
|
+
base?: string;
|
|
71
|
+
skipSnapshot?: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
type: "DEPLOY";
|
|
74
|
+
autoApprove?: boolean;
|
|
75
|
+
skipChecks?: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
type: "COMPLETE";
|
|
78
|
+
noPr?: boolean;
|
|
79
|
+
autoApprove?: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
type: "CANCEL";
|
|
82
|
+
} | {
|
|
83
|
+
type: "RESTORE";
|
|
84
|
+
}, {
|
|
85
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
|
|
86
|
+
metadata: {
|
|
87
|
+
branch: string;
|
|
88
|
+
base: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
createdBy: string;
|
|
91
|
+
status: "cancelled" | "deployed" | "in_progress" | "completed";
|
|
92
|
+
snapshot?: string | undefined;
|
|
93
|
+
deployedAt?: string | undefined;
|
|
94
|
+
completedAt?: string | undefined;
|
|
95
|
+
};
|
|
96
|
+
snapshotFile?: string | undefined;
|
|
97
|
+
}, actors.CreateHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
|
|
98
|
+
deployedAt: string;
|
|
99
|
+
}, actors.DeployHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
|
|
100
|
+
prUrl: string;
|
|
101
|
+
completedAt: string;
|
|
102
|
+
}, actors.CompleteHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, actors.CancelHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
|
|
103
|
+
branch: string;
|
|
104
|
+
base: string;
|
|
105
|
+
createdAt: string;
|
|
106
|
+
createdBy: string;
|
|
107
|
+
status: "cancelled" | "deployed" | "in_progress" | "completed";
|
|
108
|
+
snapshot?: string | undefined;
|
|
109
|
+
deployedAt?: string | undefined;
|
|
110
|
+
completedAt?: string | undefined;
|
|
111
|
+
} | null, actors.LoadMetadataInput, import("xstate").EventObject>> | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
src: "createHotfix";
|
|
114
|
+
logic: import("xstate").PromiseActorLogic<{
|
|
115
|
+
metadata: {
|
|
116
|
+
branch: string;
|
|
117
|
+
base: string;
|
|
118
|
+
createdAt: string;
|
|
119
|
+
createdBy: string;
|
|
120
|
+
status: "cancelled" | "deployed" | "in_progress" | "completed";
|
|
121
|
+
snapshot?: string | undefined;
|
|
122
|
+
deployedAt?: string | undefined;
|
|
123
|
+
completedAt?: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
snapshotFile?: string | undefined;
|
|
126
|
+
}, actors.CreateHotfixInput, import("xstate").EventObject>;
|
|
127
|
+
id: string | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
src: "deployHotfix";
|
|
130
|
+
logic: import("xstate").PromiseActorLogic<{
|
|
131
|
+
deployedAt: string;
|
|
132
|
+
}, actors.DeployHotfixInput, import("xstate").EventObject>;
|
|
133
|
+
id: string | undefined;
|
|
134
|
+
} | {
|
|
135
|
+
src: "completeHotfix";
|
|
136
|
+
logic: import("xstate").PromiseActorLogic<{
|
|
137
|
+
prUrl: string;
|
|
138
|
+
completedAt: string;
|
|
139
|
+
}, actors.CompleteHotfixInput, import("xstate").EventObject>;
|
|
140
|
+
id: string | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
src: "cancelHotfix";
|
|
143
|
+
logic: import("xstate").PromiseActorLogic<void, actors.CancelHotfixInput, import("xstate").EventObject>;
|
|
144
|
+
id: string | undefined;
|
|
145
|
+
} | {
|
|
146
|
+
src: "loadMetadata";
|
|
147
|
+
logic: import("xstate").PromiseActorLogic<{
|
|
148
|
+
branch: string;
|
|
149
|
+
base: string;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
createdBy: string;
|
|
152
|
+
status: "cancelled" | "deployed" | "in_progress" | "completed";
|
|
153
|
+
snapshot?: string | undefined;
|
|
154
|
+
deployedAt?: string | undefined;
|
|
155
|
+
completedAt?: string | undefined;
|
|
156
|
+
} | null, actors.LoadMetadataInput, import("xstate").EventObject>;
|
|
157
|
+
id: string | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
type: "setMetadata";
|
|
160
|
+
params: {
|
|
161
|
+
metadata: HotfixMetadata;
|
|
162
|
+
};
|
|
163
|
+
} | {
|
|
164
|
+
type: "setError";
|
|
165
|
+
params: {
|
|
166
|
+
error: string;
|
|
167
|
+
};
|
|
168
|
+
} | {
|
|
169
|
+
type: "setPrUrl";
|
|
170
|
+
params: {
|
|
171
|
+
prUrl: string;
|
|
172
|
+
};
|
|
173
|
+
} | {
|
|
174
|
+
type: "clearError";
|
|
175
|
+
params: import("xstate").NonReducibleUnknown;
|
|
176
|
+
}, {
|
|
177
|
+
type: "hasActiveHotfix";
|
|
178
|
+
params: unknown;
|
|
179
|
+
} | {
|
|
180
|
+
type: "isInProgress";
|
|
181
|
+
params: unknown;
|
|
182
|
+
} | {
|
|
183
|
+
type: "isDeployed";
|
|
184
|
+
params: unknown;
|
|
185
|
+
}, never, "idle" | "cancelled" | "deployed" | "completed" | "inProgress" | "creating" | "deploying" | "cancelling" | "completing" | "loading", string, {
|
|
186
|
+
targetDir?: string | undefined;
|
|
187
|
+
existingMetadata?: {
|
|
188
|
+
branch: string;
|
|
189
|
+
base: string;
|
|
190
|
+
createdAt: string;
|
|
191
|
+
createdBy: string;
|
|
192
|
+
status: "cancelled" | "deployed" | "in_progress" | "completed";
|
|
193
|
+
snapshot?: string | undefined;
|
|
194
|
+
deployedAt?: string | undefined;
|
|
195
|
+
completedAt?: string | undefined;
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
success: boolean;
|
|
199
|
+
exitCode: 0 | 1 | 2;
|
|
200
|
+
finalState: string;
|
|
201
|
+
metadata: {
|
|
202
|
+
branch: string;
|
|
203
|
+
base: string;
|
|
204
|
+
createdAt: string;
|
|
205
|
+
createdBy: string;
|
|
206
|
+
status: "cancelled" | "deployed" | "in_progress" | "completed";
|
|
207
|
+
snapshot?: string | undefined;
|
|
208
|
+
deployedAt?: string | undefined;
|
|
209
|
+
completedAt?: string | undefined;
|
|
210
|
+
} | null;
|
|
211
|
+
prUrl?: string | undefined;
|
|
212
|
+
error?: string | undefined;
|
|
213
|
+
}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
214
|
+
id: "hotfix";
|
|
215
|
+
states: {
|
|
216
|
+
readonly loading: {};
|
|
217
|
+
readonly idle: {};
|
|
218
|
+
readonly creating: {};
|
|
219
|
+
readonly inProgress: {};
|
|
220
|
+
readonly deploying: {};
|
|
221
|
+
readonly deployed: {};
|
|
222
|
+
readonly completing: {};
|
|
223
|
+
readonly cancelling: {};
|
|
224
|
+
readonly completed: {};
|
|
225
|
+
readonly cancelled: {};
|
|
226
|
+
};
|
|
227
|
+
}>;
|
|
228
|
+
export type HotfixMachine = typeof hotfixMachine;
|
|
229
|
+
export type HotfixSnapshot = SnapshotFrom<typeof hotfixMachine>;
|
|
230
|
+
/**
|
|
231
|
+
* Get current state name from snapshot
|
|
232
|
+
*/
|
|
233
|
+
export declare function getHotfixStateName(snapshot: HotfixSnapshot): string;
|
|
234
|
+
/**
|
|
235
|
+
* Check if machine is in a final state
|
|
236
|
+
*/
|
|
237
|
+
export declare function isHotfixComplete(snapshot: HotfixSnapshot): boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Get available events for current state
|
|
240
|
+
*/
|
|
241
|
+
export declare function getAvailableHotfixEvents(snapshot: HotfixSnapshot): string[];
|
|
242
|
+
//# sourceMappingURL=machine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/hotfix/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AAE1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,eAAe,CAAC;AAuIvB,MAAM,WAAW,aAAa;IAE5B,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAEhC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAMxB,eAAO,MAAM,aAAa;UAVd,QAAQ;UAAQ,MAAM;WAAS,MAAM;mBAAiB,OAAO;;UAC7D,QAAQ;kBAAgB,OAAO;iBAAe,OAAO;;UACrD,UAAU;WAAS,OAAO;kBAAgB,OAAO;;UACjD,QAAQ;;UACR,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BmB,cAAc;;;;;eAGpB,MAAM;;;;;eAGN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4OtC,CAAC;AAMH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAEnE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAElE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,EAAE,CAY3E"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type CreateHotfixMetadataInput, type GetHotfixInput, type HotfixMetadata, type ListArchivedHotfixesInput, type ListArchivedHotfixesOutput, type UpdateHotfixInput } from './contract.js';
|
|
2
|
+
export type { HotfixMetadata, HotfixStatus } from './contract.js';
|
|
3
|
+
/**
|
|
4
|
+
* Get current hotfix metadata
|
|
5
|
+
*/
|
|
6
|
+
export declare function getHotfixMetadata(input?: GetHotfixInput): Promise<HotfixMetadata | null>;
|
|
7
|
+
/**
|
|
8
|
+
* Check if there's an active hotfix
|
|
9
|
+
*/
|
|
10
|
+
export declare function hasActiveHotfix(targetDir?: string): Promise<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* Create hotfix metadata
|
|
13
|
+
*
|
|
14
|
+
* @param input - Validated input with branch name (use validateHotfixName first)
|
|
15
|
+
*/
|
|
16
|
+
export declare function createHotfixMetadata(input: CreateHotfixMetadataInput): Promise<HotfixMetadata>;
|
|
17
|
+
/**
|
|
18
|
+
* Update hotfix status
|
|
19
|
+
*/
|
|
20
|
+
export declare function updateHotfixStatus(input: UpdateHotfixInput): Promise<HotfixMetadata>;
|
|
21
|
+
/**
|
|
22
|
+
* Archive current hotfix and clear active state
|
|
23
|
+
*/
|
|
24
|
+
export declare function archiveHotfix(targetDir?: string): Promise<HotfixMetadata>;
|
|
25
|
+
/**
|
|
26
|
+
* Cancel current hotfix
|
|
27
|
+
*/
|
|
28
|
+
export declare function cancelHotfix(targetDir?: string): Promise<HotfixMetadata>;
|
|
29
|
+
/**
|
|
30
|
+
* List archived hotfixes
|
|
31
|
+
*/
|
|
32
|
+
export declare function listArchivedHotfixes(input?: ListArchivedHotfixesInput): Promise<ListArchivedHotfixesOutput>;
|
|
33
|
+
/**
|
|
34
|
+
* Validate hotfix branch name
|
|
35
|
+
*/
|
|
36
|
+
export declare function validateHotfixName(name: string): string;
|
|
37
|
+
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/commands/hotfix/metadata.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EAEnB,KAAK,cAAc,EAEnB,KAAK,yBAAyB,EAE9B,KAAK,0BAA0B,EAE/B,KAAK,iBAAiB,EAEvB,MAAM,eAAe,CAAC;AAMvB,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA8BlE;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,GAAE,cAAmB,GACzB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAWhC;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG1E;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,cAAc,CAAC,CAmBzB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAoB1F;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CA6B/E;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAU9E;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,GAAE,yBAA8B,GACpC,OAAO,CAAC,0BAA0B,CAAC,CA+BrC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYvD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Hotfix Machine CLI Integration Helper
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Shared utilities for CLI commands to interact with hotfixMachine
|
|
5
|
+
* Pattern: Create actor → Wait for loading → Send events → Wait for transitions
|
|
6
|
+
*
|
|
7
|
+
* Key Functions:
|
|
8
|
+
* - createHotfixActor: Create and start machine, wait for initial state
|
|
9
|
+
* - waitForStateTransition: Wait for machine to reach target state(s)
|
|
10
|
+
* - getHotfixState: Get current machine state info
|
|
11
|
+
*/
|
|
12
|
+
import { type ActorRefFrom } from 'xstate';
|
|
13
|
+
import { type HotfixEvent, type HotfixSnapshot, hotfixMachine } from '../machine.js';
|
|
14
|
+
export type HotfixActor = ActorRefFrom<typeof hotfixMachine>;
|
|
15
|
+
/**
|
|
16
|
+
* Create and start a hotfix actor, waiting for initial state loading to complete
|
|
17
|
+
*/
|
|
18
|
+
export declare function createHotfixActor(targetDir?: string, options?: {
|
|
19
|
+
timeout?: number;
|
|
20
|
+
}): Promise<HotfixActor>;
|
|
21
|
+
/**
|
|
22
|
+
* Wait for the machine to reach one of the target states
|
|
23
|
+
* Returns the snapshot when target state is reached, or throws on error/timeout
|
|
24
|
+
*/
|
|
25
|
+
export declare function waitForStateTransition(actor: HotfixActor, targetStates: string[], options?: {
|
|
26
|
+
timeout?: number;
|
|
27
|
+
errorStates?: string[];
|
|
28
|
+
}): Promise<HotfixSnapshot>;
|
|
29
|
+
/**
|
|
30
|
+
* Send an event to the actor and wait for a target state
|
|
31
|
+
*/
|
|
32
|
+
export declare function sendAndWait(actor: HotfixActor, event: HotfixEvent, targetStates: string[], options?: {
|
|
33
|
+
timeout?: number;
|
|
34
|
+
transitionStates?: string[];
|
|
35
|
+
}): Promise<HotfixSnapshot>;
|
|
36
|
+
/**
|
|
37
|
+
* Get current state information from snapshot
|
|
38
|
+
*/
|
|
39
|
+
export interface HotfixStateInfo {
|
|
40
|
+
state: string;
|
|
41
|
+
isComplete: boolean;
|
|
42
|
+
availableEvents: string[];
|
|
43
|
+
metadata: {
|
|
44
|
+
branch?: string;
|
|
45
|
+
base?: string;
|
|
46
|
+
status?: string;
|
|
47
|
+
createdAt?: string;
|
|
48
|
+
deployedAt?: string;
|
|
49
|
+
} | null;
|
|
50
|
+
error?: string;
|
|
51
|
+
prUrl?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare function getHotfixState(snapshot: HotfixSnapshot): HotfixStateInfo;
|
|
54
|
+
/**
|
|
55
|
+
* Check if a specific event is available in current state
|
|
56
|
+
*/
|
|
57
|
+
export declare function canSendEvent(snapshot: HotfixSnapshot, eventType: string): boolean;
|
|
58
|
+
//# sourceMappingURL=hotfix-machine-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hotfix-machine-helper.d.ts","sourceRoot":"","sources":["../../../../src/commands/hotfix/utils/hotfix-machine-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,QAAQ,CAAC;AACxD,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,aAAa,EAEd,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,GAAE,MAAsB,EACjC,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GACjC,OAAO,CAAC,WAAW,CAAC,CA0BtB;AAuCD;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,WAAW,EAClB,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GACzD,OAAO,CAAC,cAAc,CAAC,CA2CzB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAClB,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GAC9D,OAAO,CAAC,cAAc,CAAC,CA4CzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,GAAG,IAAI,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,cAAc,GAAG,eAAe,CAiBxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAEjF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: runa init command
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Initialize pj-repo with runa configuration
|
|
5
|
+
* Design: Uses CLIError for error handling (no process.exit)
|
|
6
|
+
*
|
|
7
|
+
* Generates:
|
|
8
|
+
* - .github/workflows/runa.yml (CI/CD workflow)
|
|
9
|
+
* - runa.config.ts (project configuration)
|
|
10
|
+
* - AGENTS.md (AI development guidelines)
|
|
11
|
+
* - CLAUDE.md (Claude Code guide)
|
|
12
|
+
* - .claude/ (Claude Code configuration - rules, skills, commands)
|
|
13
|
+
* - .husky/_common.sh (shared shell functions)
|
|
14
|
+
* - .husky/pre-commit (typecheck, lint)
|
|
15
|
+
* - .husky/pre-push (Layer 0 tests)
|
|
16
|
+
* - biome.json (formatter)
|
|
17
|
+
* - .npmrc (GitHub Packages registry)
|
|
18
|
+
*/
|
|
19
|
+
import { Command } from 'commander';
|
|
20
|
+
export declare const initCommand: Command;
|
|
21
|
+
//# sourceMappingURL=init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAcH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqYpC,eAAO,MAAM,WAAW,SAgKpB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Shared Action
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Shared action logic for the inject-test-attrs command
|
|
5
|
+
* Pattern: Extract action logic from CLI entry point for testability
|
|
6
|
+
*
|
|
7
|
+
* Commands: runa inject-test-attrs (or via runa build which calls this internally)
|
|
8
|
+
*/
|
|
9
|
+
import type { Command } from 'commander';
|
|
10
|
+
/**
|
|
11
|
+
* Shared action handler for inject-test-attrs and manifest commands
|
|
12
|
+
*/
|
|
13
|
+
export declare function injectTestAttrsAction(rawOptions: Record<string, unknown>, command: Command): Promise<void>;
|
|
14
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/action.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuFzC;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAgDf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs CLI Entry Point
|
|
3
|
+
*
|
|
4
|
+
* Purpose: CLI interface for XState test attribute injection
|
|
5
|
+
* Pattern: Source-injection (git-managed output, like drizzle-kit)
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* runa inject-test-attrs # Inject attributes to source files
|
|
9
|
+
* runa inject-test-attrs --check # Check if files need injection (CI)
|
|
10
|
+
* runa inject-test-attrs --verbose # Show detailed output
|
|
11
|
+
*
|
|
12
|
+
* Note: Consider using `runa manifest` for cleaner build integration.
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from 'commander';
|
|
15
|
+
export declare const injectTestAttrsCommand: Command;
|
|
16
|
+
//# sourceMappingURL=inject-test-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject-test-attrs.d.ts","sourceRoot":"","sources":["../../../../src/commands/inject-test-attrs/commands/inject-test-attrs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,sBAAsB,SAuB/B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Contract
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Zod schemas for inject-test-attrs I/O validation
|
|
5
|
+
* Pattern: Contract-first design - all inputs/outputs strictly typed
|
|
6
|
+
*
|
|
7
|
+
* Flow: discover → filter → transform → write → format
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
export declare const InjectTestAttrsInputSchema: z.ZodObject<{
|
|
11
|
+
check: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
include: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
16
|
+
manifest: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
manifestDir: z.ZodDefault<z.ZodString>;
|
|
18
|
+
resolveSchemas: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export declare const FileChangeSchema: z.ZodObject<{
|
|
21
|
+
filePath: z.ZodString;
|
|
22
|
+
injectedCount: z.ZodNumber;
|
|
23
|
+
machineIds: z.ZodArray<z.ZodString>;
|
|
24
|
+
changed: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const MachineWithoutE2EMetaSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
sourceFile: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const InjectTestAttrsOutputSchema: z.ZodObject<{
|
|
31
|
+
totalFiles: z.ZodNumber;
|
|
32
|
+
changedFiles: z.ZodNumber;
|
|
33
|
+
totalInjections: z.ZodNumber;
|
|
34
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
35
|
+
filePath: z.ZodString;
|
|
36
|
+
injectedCount: z.ZodNumber;
|
|
37
|
+
machineIds: z.ZodArray<z.ZodString>;
|
|
38
|
+
changed: z.ZodBoolean;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
exitCode: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
41
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
42
|
+
manifestMachineCount: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
machinesWithoutE2EMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
sourceFile: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export type InjectTestAttrsInput = z.infer<typeof InjectTestAttrsInputSchema>;
|
|
49
|
+
export type InjectTestAttrsOutput = z.infer<typeof InjectTestAttrsOutputSchema>;
|
|
50
|
+
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
51
|
+
export type MachineWithoutE2EMeta = z.infer<typeof MachineWithoutE2EMetaSchema>;
|
|
52
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;kBA8B5B,CAAC;AAGZ,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;kBAc7B,CAAC;AAGZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Formatter
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Format transformed files with Biome
|
|
5
|
+
* Pattern: Run biome format on batch of files
|
|
6
|
+
*
|
|
7
|
+
* Security: Uses execa with array arguments to prevent command injection
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Format files with Biome
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatFilesWithBiome(files: string[], cwd: string): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/formatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBtF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Export CLI command and processor for external use
|
|
5
|
+
*/
|
|
6
|
+
export { injectTestAttrsCommand } from './commands/inject-test-attrs.js';
|
|
7
|
+
export type { FileChange, InjectTestAttrsInput, InjectTestAttrsOutput } from './contract.js';
|
|
8
|
+
export { type ProcessorOptions, processFiles } from './processor.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,KAAK,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Manifest Generator
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Generate E2E selector manifest and API contracts
|
|
5
|
+
* Pattern: Build unified manifest from XState machines and Hono routes
|
|
6
|
+
*/
|
|
7
|
+
import type { MachineWithoutE2EMeta } from './contract.js';
|
|
8
|
+
/**
|
|
9
|
+
* Generate and write manifest files with enhanced metadata
|
|
10
|
+
*
|
|
11
|
+
* @param manifestDir - Directory for manifest output
|
|
12
|
+
* @param repoRoot - Repository root directory
|
|
13
|
+
* @param verbose - Enable verbose logging
|
|
14
|
+
* @param resolveSchemas - Whether to resolve Zod schemas to JSON Schema (v7+)
|
|
15
|
+
*/
|
|
16
|
+
export declare function generateManifestFiles(manifestDir: string, repoRoot: string, verbose: boolean, resolveSchemas?: boolean): Promise<{
|
|
17
|
+
manifestPath: string;
|
|
18
|
+
machineCount: number;
|
|
19
|
+
machinesWithoutE2EMeta: MachineWithoutE2EMeta[];
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=manifest-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-generator.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/manifest-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAkY3D;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,GAAE,OAAe,GAC9B,OAAO,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;CACjD,CAAC,CAyHD"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Processor Utilities
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Utility functions for test attribute injection
|
|
5
|
+
* Pattern: Pure functions for code analysis and attribute extraction
|
|
6
|
+
*/
|
|
7
|
+
import type { ProcessFileResult } from './types.js';
|
|
8
|
+
/** Marker comment to detect CLI-injected files */
|
|
9
|
+
export declare const CLI_INJECTION_MARKER = "@xstate-test-attrs-injected";
|
|
10
|
+
/**
|
|
11
|
+
* Check if a file path should be excluded from manifest collection
|
|
12
|
+
* Prevents template/internal files from mixing with actual app code
|
|
13
|
+
*
|
|
14
|
+
* Used for:
|
|
15
|
+
* - Routes (pages, layouts, API routes)
|
|
16
|
+
* - Machine definitions
|
|
17
|
+
* - Any file that shouldn't appear in the manifest
|
|
18
|
+
*/
|
|
19
|
+
export declare function isExcludedScope(filePath: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Attribute patterns for test attribute extraction/stripping
|
|
22
|
+
* Centralized to ensure consistency between extraction and stripping operations
|
|
23
|
+
*/
|
|
24
|
+
export declare const ATTRIBUTE_PATTERNS: {
|
|
25
|
+
/** Pattern to match data-action attribute */
|
|
26
|
+
readonly action: RegExp;
|
|
27
|
+
/** Pattern to match data-field attribute */
|
|
28
|
+
readonly field: RegExp;
|
|
29
|
+
/** Pattern to match data-testid attribute */
|
|
30
|
+
readonly testId: RegExp;
|
|
31
|
+
/** Pattern to match data-machine-id attribute */
|
|
32
|
+
readonly machineId: RegExp;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Quick check if code might contain machine hooks
|
|
36
|
+
* Used as pre-filter before expensive AST parsing
|
|
37
|
+
*/
|
|
38
|
+
export declare function mightContainMachineHooks(code: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Quick check if code might contain JSX
|
|
41
|
+
*/
|
|
42
|
+
export declare function mightContainJsx(code: string): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Strip existing test attributes from code.
|
|
45
|
+
*/
|
|
46
|
+
export declare function stripInjectedAttributes(code: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* Extract attribute values from code using a pattern
|
|
49
|
+
* Helper function to reduce duplication in extractInjectedAttributes
|
|
50
|
+
*/
|
|
51
|
+
export declare function extractAttributeValues(code: string, pattern: RegExp): string[];
|
|
52
|
+
/**
|
|
53
|
+
* Extract actions, fields, and testIds from transformed code
|
|
54
|
+
* Uses centralized ATTRIBUTE_PATTERNS for consistency
|
|
55
|
+
*/
|
|
56
|
+
export declare function extractInjectedAttributes(code: string): {
|
|
57
|
+
actions: string[];
|
|
58
|
+
fields: string[];
|
|
59
|
+
testIds: string[];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Collect route info for unified manifest
|
|
63
|
+
* This is called for ALL files, not just those with machine hooks
|
|
64
|
+
*/
|
|
65
|
+
export declare function collectRouteInfo(relativePath: string, code: string, _verbose: boolean): void;
|
|
66
|
+
/** Empty result for skipped files */
|
|
67
|
+
export declare function emptyResult(filePath: string): ProcessFileResult;
|
|
68
|
+
/**
|
|
69
|
+
* Ensure a directory exists, creating it if necessary.
|
|
70
|
+
*/
|
|
71
|
+
export declare function ensureDirectoryExists(dirPath: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Get SDK version for manifest
|
|
74
|
+
*/
|
|
75
|
+
export declare function getGeneratorVersion(): string;
|
|
76
|
+
//# sourceMappingURL=processor-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processor-utils.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAkBlE;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B,6CAA6C;;IAE7C,4CAA4C;;IAE5C,6CAA6C;;IAE7C,iDAAiD;;CAEzC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ9E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG;IACvD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAMA;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CA+B5F;AAED,qCAAqC;AACrC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAU/D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI3D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAY5C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: inject-test-attrs Processor
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Core processing logic for XState test attribute injection
|
|
5
|
+
* Pattern: Reuses transformer from xstate-test-plugin, writes to source files
|
|
6
|
+
*
|
|
7
|
+
* Flow:
|
|
8
|
+
* 1. Discover files via glob
|
|
9
|
+
* 2. Pre-filter (quick check for useMachine/useActor)
|
|
10
|
+
* 3. Transform using xstate-test-plugin core
|
|
11
|
+
* 4. Write transformed code back to source
|
|
12
|
+
* 5. Format with biome
|
|
13
|
+
* 6. Generate E2E selector manifest (optional)
|
|
14
|
+
*
|
|
15
|
+
* Module Structure:
|
|
16
|
+
* - processor.ts (this file): Core processing orchestration
|
|
17
|
+
* - processor-utils.ts: Utility functions (extraction, filtering)
|
|
18
|
+
* - manifest-generator.ts: Manifest generation logic
|
|
19
|
+
* - types.ts: Shared type definitions
|
|
20
|
+
*/
|
|
21
|
+
import type { InjectTestAttrsInput, InjectTestAttrsOutput } from './contract.js';
|
|
22
|
+
export interface ProcessorOptions extends InjectTestAttrsInput {
|
|
23
|
+
/** Repository root directory */
|
|
24
|
+
repoRoot: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Process all files and inject test attributes
|
|
28
|
+
*
|
|
29
|
+
* Three-pass approach for complete manifest + cross-component detection:
|
|
30
|
+
* 1. Pre-pass: Collect machine definitions (for manifest without hooks/JSX)
|
|
31
|
+
* 2. First pass: Process files with machine hooks (to populate prop-event registry)
|
|
32
|
+
* 3. Second pass: Process files with JSX but no machine hooks (to inject from registry)
|
|
33
|
+
*/
|
|
34
|
+
export declare function processFiles(options: ProcessorOptions): Promise<InjectTestAttrsOutput>;
|
|
35
|
+
//# sourceMappingURL=processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAcH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AAmBvB,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AA+RD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAiF5F"}
|