@runa-ai/runa-cli 0.5.72 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-V66FAQXB.js +1719 -0
- package/dist/cache-N7WNPEYF.js +111 -0
- package/dist/check-LOMVIRHX.js +12 -0
- package/dist/chunk-2APB25TT.js +442 -0
- package/dist/chunk-3FDQW524.js +544 -0
- package/dist/chunk-3WDV32GA.js +33 -0
- package/dist/chunk-5FT3F36G.js +59 -0
- package/dist/chunk-5NKWR4FF.js +254 -0
- package/dist/chunk-644FVGIQ.js +194 -0
- package/dist/chunk-6AALH2ED.js +121 -0
- package/dist/chunk-6FAU4IGR.js +63 -0
- package/dist/chunk-6Y3LAUGL.js +35 -0
- package/dist/chunk-7B5C6U2K.js +274 -0
- package/dist/chunk-AAIE4F2U.js +140 -0
- package/dist/chunk-AIP6MR42.js +12 -0
- package/dist/chunk-CCKG5R4Y.js +59 -0
- package/dist/chunk-DRSUEMAK.js +123 -0
- package/dist/chunk-FHG3ILE4.js +2011 -0
- package/dist/chunk-H2AHNI75.js +31 -0
- package/dist/chunk-HD74F6W2.js +460 -0
- package/dist/chunk-HKUWEGUX.js +36 -0
- package/dist/chunk-IBVVGH6X.js +33 -0
- package/dist/chunk-II7VYQEM.js +179 -0
- package/dist/chunk-JMJP4A47.js +204 -0
- package/dist/chunk-JQXOVCOP.js +574 -0
- package/dist/chunk-KE6QJBZG.js +41 -0
- package/dist/chunk-KWX3JHCY.js +85 -0
- package/dist/chunk-MXRWBNIY.js +74 -0
- package/dist/chunk-NPSRD26F.js +149 -0
- package/dist/chunk-QDF7QXBL.js +67 -0
- package/dist/chunk-QM53IQHM.js +209 -0
- package/dist/chunk-RZLYEO4U.js +219 -0
- package/dist/chunk-SGJG3BKD.js +351 -0
- package/dist/chunk-TYIAD6SB.js +74 -0
- package/dist/chunk-UWWSAPDR.js +31 -0
- package/dist/chunk-VM3IWOT5.js +458 -0
- package/dist/chunk-VRXHCR5K.js +42 -0
- package/dist/chunk-WJXC4MVY.js +75 -0
- package/dist/chunk-XDCHRVE3.js +215 -0
- package/dist/chunk-Z4Z5DNW4.js +1196 -0
- package/dist/chunk-ZZOXM6Q4.js +8 -0
- package/dist/ci-ZWRVWNFX.js +9298 -0
- package/dist/cli/contract-output.d.ts +1 -0
- package/dist/cli/index.d.ts +7 -1
- package/dist/cli/requested-command.d.ts +8 -0
- package/dist/cli-2JNBJUBB.js +704 -0
- package/dist/commands/build/actors/db-sync.d.ts +2 -0
- package/dist/commands/build/actors/static-checks.d.ts +7 -6
- package/dist/commands/build/actors/validate.d.ts +2 -0
- package/dist/commands/build/contract.d.ts +30 -30
- package/dist/commands/build/machine-dry-run.d.ts +3 -0
- package/dist/commands/build/machine-e2e-meta.d.ts +120 -0
- package/dist/commands/build/machine.d.ts +22 -22
- package/dist/commands/build/types.d.ts +2 -4
- package/dist/commands/check/commands/check.d.ts +8 -3
- package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts +9 -6
- package/dist/commands/ci/machine/actors/db/schema-canonical-diff.d.ts +55 -0
- package/dist/commands/ci/machine/actors/db/schema-stats.d.ts +11 -0
- package/dist/commands/ci/machine/actors/db/sync-schema.d.ts +9 -1
- package/dist/commands/ci/machine/contract.d.ts +26 -26
- package/dist/commands/ci/machine/formatters/sections/final-comment.d.ts +1 -5
- package/dist/commands/ci/machine/formatters/sections/format-helpers.d.ts +5 -0
- package/dist/commands/ci/machine/formatters/sections/index.d.ts +2 -2
- package/dist/commands/ci/machine/formatters/sections/schema-matrix.d.ts +3 -3
- package/dist/commands/ci/machine/machine-execution-helpers.d.ts +40 -0
- package/dist/commands/ci/machine/machine-state-helpers.d.ts +14 -0
- package/dist/commands/ci/machine/machine.d.ts +12 -12
- package/dist/commands/ci/machine/types.d.ts +2 -5
- package/dist/commands/ci/utils/ci-summary.d.ts +15 -15
- package/dist/commands/ci/utils/execa-helpers.d.ts +2 -0
- package/dist/commands/db/apply/actors/idempotent-actors.d.ts +34 -0
- package/dist/commands/db/apply/actors/lock-actors.d.ts +16 -0
- package/dist/commands/db/apply/actors/pg-schema-diff-actors.d.ts +31 -0
- package/dist/commands/db/apply/actors/seed-actors.d.ts +11 -0
- package/dist/commands/db/apply/actors/shared.d.ts +9 -0
- package/dist/commands/db/apply/actors.d.ts +16 -65
- package/dist/commands/db/apply/contract.d.ts +8 -1
- package/dist/commands/db/apply/helpers/data-compatibility-checker.d.ts +3 -4
- package/dist/commands/db/apply/helpers/data-integrity-verifier.d.ts +37 -0
- package/dist/commands/db/apply/helpers/fresh-db-handler.d.ts +34 -0
- package/dist/commands/db/apply/helpers/hazard-handler.d.ts +60 -0
- package/dist/commands/db/apply/helpers/idempotent-object-registry.d.ts +96 -0
- package/dist/commands/db/apply/helpers/idempotent-transaction.d.ts +20 -0
- package/dist/commands/db/apply/helpers/index.d.ts +6 -0
- package/dist/commands/db/apply/helpers/partition-validator.d.ts +2 -15
- package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts +18 -162
- package/dist/commands/db/apply/helpers/pg-schema-diff-patterns.d.ts +55 -0
- package/dist/commands/db/apply/helpers/pg-schema-diff-version.d.ts +50 -0
- package/dist/commands/db/apply/helpers/plan-validator.d.ts +4 -10
- package/dist/commands/db/apply/helpers/rbac-password-manager.d.ts +34 -0
- package/dist/commands/db/apply/helpers/retry-logic.d.ts +16 -2
- package/dist/commands/db/apply/helpers/shadow-db-manager.d.ts +1 -1
- package/dist/commands/db/apply/helpers/sql-utils.d.ts +26 -0
- package/dist/commands/db/apply/machine.d.ts +52 -1
- package/dist/commands/db/commands/db-apply.d.ts +18 -0
- package/dist/commands/db/commands/db-sync/boundary-classifier.d.ts +21 -0
- package/dist/commands/db/commands/db-sync/error-classifier.d.ts +9 -0
- package/dist/commands/db/commands/db-sync/plan-hazard-analyzer.d.ts +13 -0
- package/dist/commands/db/commands/db-sync/risk-reporter.d.ts +19 -0
- package/dist/commands/db/commands/db-sync/sql-parser.d.ts +25 -0
- package/dist/commands/db/commands/db-sync/types.d.ts +47 -0
- package/dist/commands/db/commands/db-sync.d.ts +14 -0
- package/dist/commands/db/sync/contract.d.ts +6 -2
- package/dist/commands/db/sync/machine.d.ts +2 -1
- package/dist/commands/db/types.d.ts +2 -0
- package/dist/commands/db/utils/boundary-policy/rule-compiler.d.ts +11 -0
- package/dist/commands/db/utils/boundary-policy/types.d.ts +105 -0
- package/dist/commands/db/utils/boundary-policy/validation.d.ts +20 -0
- package/dist/commands/db/utils/boundary-policy-runtime.d.ts +28 -0
- package/dist/commands/db/utils/boundary-policy.d.ts +5 -0
- package/dist/commands/db/utils/idempotent-risk-context.d.ts +29 -0
- package/dist/commands/db/utils/preflight-check.d.ts +14 -0
- package/dist/commands/db/utils/preflight-checks/domain-naming-checks.d.ts +106 -0
- package/dist/commands/db/utils/preflight-checks/orphan-checks.d.ts +36 -0
- package/dist/commands/db/utils/preflight-checks/schema-risk-checks.d.ts +22 -0
- package/dist/commands/db/utils/preflight-checks/supabase-checks.d.ts +55 -0
- package/dist/commands/db/utils/risk-detector-loader.d.ts +8 -0
- package/dist/commands/db/utils/schema-precheck-budget.d.ts +17 -0
- package/dist/commands/db/utils/sql-boundary-parser.d.ts +12 -0
- package/dist/commands/db/utils/sql-file-collector.d.ts +8 -0
- package/dist/commands/db/utils/sql-filename-parser.d.ts +20 -0
- package/dist/commands/db/utils/sql-table-extractor-ast.d.ts +19 -0
- package/dist/commands/db/utils/sql-table-extractor-regex.d.ts +50 -0
- package/dist/commands/db/utils/sql-table-extractor-rls.d.ts +13 -0
- package/dist/commands/db/utils/sql-table-extractor.d.ts +79 -1
- package/dist/commands/db/utils/table-registry-introspection.d.ts +68 -0
- package/dist/commands/db/utils/table-registry.d.ts +3 -38
- package/dist/commands/dev/actors/app-lifecycle.d.ts +18 -0
- package/dist/commands/dev/actors/index.d.ts +12 -2
- package/dist/commands/dev/actors/process-check.d.ts +12 -0
- package/dist/commands/dev/actors/shared.d.ts +15 -0
- package/dist/commands/dev/actors/tables-manifest.d.ts +16 -0
- package/dist/commands/dev/contract.d.ts +3 -3
- package/dist/commands/dev/guards.d.ts +24 -0
- package/dist/commands/dev/machine.d.ts +27 -32
- package/dist/commands/dev/types.d.ts +2 -0
- package/dist/commands/doctor.d.ts +9 -0
- package/dist/commands/env/commands/env-pull/auth.d.ts +13 -0
- package/dist/commands/env/commands/env-pull/dotenv-files.d.ts +14 -0
- package/dist/commands/env/commands/env-pull/security.d.ts +12 -0
- package/dist/commands/env/commands/env-pull/service.d.ts +8 -0
- package/dist/commands/env/commands/env-pull/shared.d.ts +79 -0
- package/dist/commands/env/commands/setup/types.d.ts +1 -1
- package/dist/commands/env/constants/local-supabase.d.ts +2 -0
- package/dist/commands/inject-test-attrs/defaults.d.ts +9 -0
- package/dist/commands/template-check/contract.d.ts +6 -6
- package/dist/commands/template-check/machine.d.ts +2 -2
- package/dist/commands/template-check/types.d.ts +0 -4
- package/dist/commands/template-check/utils/diff-analyzer.d.ts +0 -4
- package/dist/commands/utils/machine-state-logging.d.ts +20 -0
- package/dist/commands/utils/repo-root.d.ts +2 -0
- package/dist/config/env.d.ts +4 -4
- package/dist/config-loader-GT3HAQ7U.js +7 -0
- package/dist/db-XULCILOU.js +14137 -0
- package/dist/dev-5YXNPTCJ.js +992 -0
- package/dist/doctor-MZLOA53G.js +44 -0
- package/dist/env-HMMRSYCI.js +7 -0
- package/dist/env-SS66PZ4B.js +2623 -0
- package/dist/env-files-2UIUYLLR.js +8 -0
- package/dist/error-handler-HEXBRNVV.js +460 -0
- package/dist/hotfix-YA3DGLOM.js +1477 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +48 -42995
- package/dist/init-ZIL6LRFO.js +631 -0
- package/dist/inject-test-attrs-P44BVTQS.js +23 -0
- package/dist/internal/machines/snapshot-helpers.d.ts +6 -0
- package/dist/lib/sql-comment-utils.d.ts +25 -0
- package/dist/license-OB7GVJQ2.js +468 -0
- package/dist/link-VSNDVZZD.js +59 -0
- package/dist/manifest-TMFLESHW.js +19 -0
- package/dist/prepare-32DOVHTE.js +250 -0
- package/dist/risk-detector-4U6ZJ2G5.js +6 -0
- package/dist/risk-detector-core-TK4OAI3N.js +166 -0
- package/dist/risk-detector-plpgsql-HWKS4OLR.js +1886 -0
- package/dist/sdk-XK6HQU7S.js +348 -0
- package/dist/services-7VK5KZTO.js +177 -0
- package/dist/session-SFW5QSXZ.js +142 -0
- package/dist/signal-handler-DO3OANW5.js +6 -0
- package/dist/status-UTKS63AB.js +94 -0
- package/dist/telemetry-P56UBLZ2.js +93 -0
- package/dist/template-check-3P4HZXVY.js +1944 -0
- package/dist/test-V4KQL574.js +650 -0
- package/dist/test-gen-FS4CEY3P.js +88 -0
- package/dist/ui-RJAMCWUI.js +331 -0
- package/dist/upgrade-NUK3ZBCL.js +637 -0
- package/dist/utils/config-loader.d.ts +0 -3
- package/dist/validate-CAAW4Y44.js +54 -0
- package/dist/validators/risk-detector-content-risks.d.ts +13 -0
- package/dist/validators/risk-detector-core.d.ts +25 -0
- package/dist/validators/risk-detector-patterns.d.ts +15 -0
- package/dist/validators/risk-detector-plpgsql-expression-resolver.d.ts +22 -0
- package/dist/validators/risk-detector-plpgsql-parser.d.ts +5 -0
- package/dist/validators/risk-detector-plpgsql-tokenizer.d.ts +18 -0
- package/dist/validators/risk-detector-plpgsql.d.ts +9 -0
- package/dist/validators/risk-detector-text-utils.d.ts +6 -0
- package/dist/validators/risk-detector-types.d.ts +16 -0
- package/dist/validators/risk-detector.d.ts +7 -26
- package/dist/vuln-check-2W7N5TA2.js +121 -0
- package/dist/vuln-checker-IQJ56RUV.js +3223 -0
- package/dist/watch-PNTKZYFB.js +911 -0
- package/dist/workflow-H75N4BXX.js +897 -0
- package/package.json +5 -2
- package/dist/cli/contract-mode.d.ts.map +0 -1
- package/dist/cli/contract-output.d.ts.map +0 -1
- package/dist/cli/early-flags.d.ts.map +0 -1
- package/dist/cli/error-handler.d.ts.map +0 -1
- package/dist/cli/exec.d.ts.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/json-output.d.ts.map +0 -1
- package/dist/cli/non-interactive.d.ts.map +0 -1
- package/dist/cli/output-format.d.ts.map +0 -1
- package/dist/cli/signal-handler.d.ts.map +0 -1
- package/dist/commands/build/actors/build.d.ts.map +0 -1
- package/dist/commands/build/actors/clean.d.ts.map +0 -1
- package/dist/commands/build/actors/db-sync.d.ts.map +0 -1
- package/dist/commands/build/actors/index.d.ts.map +0 -1
- package/dist/commands/build/actors/manifest.d.ts.map +0 -1
- package/dist/commands/build/actors/setup.d.ts.map +0 -1
- package/dist/commands/build/actors/static-checks.d.ts.map +0 -1
- package/dist/commands/build/actors/validate.d.ts.map +0 -1
- package/dist/commands/build/commands/build.d.ts.map +0 -1
- package/dist/commands/build/contract.d.ts.map +0 -1
- package/dist/commands/build/guards.d.ts.map +0 -1
- package/dist/commands/build/index.d.ts.map +0 -1
- package/dist/commands/build/machine.d.ts.map +0 -1
- package/dist/commands/build/types.d.ts.map +0 -1
- package/dist/commands/cache.d.ts.map +0 -1
- package/dist/commands/check/commands/check.d.ts.map +0 -1
- package/dist/commands/check/index.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-checks.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-layer-content.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-pr-capabilities.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-prod-apply.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-prod-db-operations.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-prod-github.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-prod-types.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-prod-utils.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-prod-workflow.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-resolvers.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-static.d.ts.map +0 -1
- package/dist/commands/ci/commands/ci-supabase-local.d.ts.map +0 -1
- package/dist/commands/ci/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/build/app-build.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/build/app-start.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/build/build-and-playwright.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/build/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/build/playwright-install.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/build/static-checks.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/apply-seeds.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/pgtap-install.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/production-preview.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/pull-production.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/reset.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/schema-stats.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/setup-roles.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/db/sync-schema.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/finalize/github.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/finalize/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/finalize/summary.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/setup/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/setup/local.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/setup/pr-common.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/setup/pr-local.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/test/capabilities.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/test/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/actors/test/run-layers.d.ts.map +0 -1
- package/dist/commands/ci/machine/commands/ci-local.d.ts.map +0 -1
- package/dist/commands/ci/machine/commands/ci-pr.d.ts.map +0 -1
- package/dist/commands/ci/machine/commands/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/commands/machine-runner.d.ts.map +0 -1
- package/dist/commands/ci/machine/commands/runtime-env.d.ts.map +0 -1
- package/dist/commands/ci/machine/contract.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/github-comment-types.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/github-comment.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/sections/final-comment.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/sections/format-helpers.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/sections/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/sections/progress-comment.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/sections/schema-matrix.d.ts.map +0 -1
- package/dist/commands/ci/machine/formatters/summary.d.ts.map +0 -1
- package/dist/commands/ci/machine/guards.d.ts.map +0 -1
- package/dist/commands/ci/machine/helpers.d.ts.map +0 -1
- package/dist/commands/ci/machine/index.d.ts.map +0 -1
- package/dist/commands/ci/machine/machine.d.ts.map +0 -1
- package/dist/commands/ci/machine/types.d.ts.map +0 -1
- package/dist/commands/ci/utils/ai-report.d.ts.map +0 -1
- package/dist/commands/ci/utils/app-process.d.ts.map +0 -1
- package/dist/commands/ci/utils/app-runtime.d.ts.map +0 -1
- package/dist/commands/ci/utils/ci-config.d.ts.map +0 -1
- package/dist/commands/ci/utils/ci-env-schema.d.ts.map +0 -1
- package/dist/commands/ci/utils/ci-logging.d.ts.map +0 -1
- package/dist/commands/ci/utils/ci-summary.d.ts.map +0 -1
- package/dist/commands/ci/utils/config-readers.d.ts.map +0 -1
- package/dist/commands/ci/utils/db-url-utils.d.ts.map +0 -1
- package/dist/commands/ci/utils/e2e-auth-setup.d.ts.map +0 -1
- package/dist/commands/ci/utils/env-security.d.ts.map +0 -1
- package/dist/commands/ci/utils/execa-helpers.d.ts.map +0 -1
- package/dist/commands/ci/utils/exit-code-computation.d.ts.map +0 -1
- package/dist/commands/ci/utils/github-api.d.ts.map +0 -1
- package/dist/commands/ci/utils/github.d.ts.map +0 -1
- package/dist/commands/ci/utils/index.d.ts.map +0 -1
- package/dist/commands/ci/utils/pgtap-installer.d.ts.map +0 -1
- package/dist/commands/ci/utils/rls-verification.d.ts.map +0 -1
- package/dist/commands/ci/utils/schema-operations.d.ts.map +0 -1
- package/dist/commands/ci/utils/seed-operations.d.ts.map +0 -1
- package/dist/commands/ci/utils/test-parallel.d.ts.map +0 -1
- package/dist/commands/ci/utils/timestamp-invariants.d.ts.map +0 -1
- package/dist/commands/ci/utils/workflow-idempotency.d.ts.map +0 -1
- package/dist/commands/db/apply/actors.d.ts.map +0 -1
- package/dist/commands/db/apply/contract.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/advisory-lock.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/data-compatibility-checker.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/index.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/partition-acl-cleaner.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/partition-prefilter.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/partition-validator.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/plan-validator.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/retry-logic.d.ts.map +0 -1
- package/dist/commands/db/apply/helpers/shadow-db-manager.d.ts.map +0 -1
- package/dist/commands/db/apply/index.d.ts.map +0 -1
- package/dist/commands/db/apply/machine.d.ts.map +0 -1
- package/dist/commands/db/commands/db-apply.d.ts.map +0 -1
- package/dist/commands/db/commands/db-audit.d.ts.map +0 -1
- package/dist/commands/db/commands/db-backup.d.ts.map +0 -1
- package/dist/commands/db/commands/db-cleanup.d.ts.map +0 -1
- package/dist/commands/db/commands/db-derive-role-passwords.d.ts.map +0 -1
- package/dist/commands/db/commands/db-derive-urls.d.ts.map +0 -1
- package/dist/commands/db/commands/db-diagram.d.ts.map +0 -1
- package/dist/commands/db/commands/db-drizzle.d.ts.map +0 -1
- package/dist/commands/db/commands/db-extension.d.ts.map +0 -1
- package/dist/commands/db/commands/db-generate-password.d.ts.map +0 -1
- package/dist/commands/db/commands/db-lifecycle.d.ts.map +0 -1
- package/dist/commands/db/commands/db-rollback.d.ts.map +0 -1
- package/dist/commands/db/commands/db-schema.d.ts.map +0 -1
- package/dist/commands/db/commands/db-seed-metadata.d.ts.map +0 -1
- package/dist/commands/db/commands/db-seed-verify.d.ts.map +0 -1
- package/dist/commands/db/commands/db-seed.d.ts.map +0 -1
- package/dist/commands/db/commands/db-snapshot.d.ts.map +0 -1
- package/dist/commands/db/commands/db-stack.d.ts.map +0 -1
- package/dist/commands/db/commands/db-stats.d.ts.map +0 -1
- package/dist/commands/db/commands/db-sync.d.ts.map +0 -1
- package/dist/commands/db/commands/db-test.d.ts.map +0 -1
- package/dist/commands/db/constants.d.ts.map +0 -1
- package/dist/commands/db/extension-registry.d.ts.map +0 -1
- package/dist/commands/db/index.d.ts.map +0 -1
- package/dist/commands/db/preflight/actors.d.ts.map +0 -1
- package/dist/commands/db/preflight/contract.d.ts.map +0 -1
- package/dist/commands/db/preflight/index.d.ts.map +0 -1
- package/dist/commands/db/sync/actors.d.ts.map +0 -1
- package/dist/commands/db/sync/contract.d.ts.map +0 -1
- package/dist/commands/db/sync/index.d.ts.map +0 -1
- package/dist/commands/db/sync/machine.d.ts.map +0 -1
- package/dist/commands/db/types.d.ts.map +0 -1
- package/dist/commands/db/utils/db-target.d.ts.map +0 -1
- package/dist/commands/db/utils/db-url-builder.d.ts.map +0 -1
- package/dist/commands/db/utils/error-handlers.d.ts.map +0 -1
- package/dist/commands/db/utils/import-impact-analyzer.d.ts.map +0 -1
- package/dist/commands/db/utils/preflight-check.d.ts.map +0 -1
- package/dist/commands/db/utils/psql.d.ts.map +0 -1
- package/dist/commands/db/utils/schema-detector.d.ts.map +0 -1
- package/dist/commands/db/utils/schema-sync.d.ts.map +0 -1
- package/dist/commands/db/utils/script-runner.d.ts.map +0 -1
- package/dist/commands/db/utils/seed-manager.d.ts.map +0 -1
- package/dist/commands/db/utils/semantic-mapper.d.ts.map +0 -1
- package/dist/commands/db/utils/sql-table-extractor.d.ts.map +0 -1
- package/dist/commands/db/utils/stack-detector.d.ts.map +0 -1
- package/dist/commands/db/utils/table-registry.d.ts.map +0 -1
- package/dist/commands/db/utils/table-source-classifier.d.ts.map +0 -1
- package/dist/commands/dev/actors/index.d.ts.map +0 -1
- package/dist/commands/dev/commands/dev.d.ts.map +0 -1
- package/dist/commands/dev/contract.d.ts.map +0 -1
- package/dist/commands/dev/guards.d.ts.map +0 -1
- package/dist/commands/dev/helpers/stale-process-detector.d.ts.map +0 -1
- package/dist/commands/dev/machine.d.ts.map +0 -1
- package/dist/commands/dev/types.d.ts.map +0 -1
- package/dist/commands/env/commands/env-check.d.ts.map +0 -1
- package/dist/commands/env/commands/env-encrypt.d.ts.map +0 -1
- package/dist/commands/env/commands/env-pull.d.ts.map +0 -1
- package/dist/commands/env/commands/env-setup.d.ts.map +0 -1
- package/dist/commands/env/commands/env-sync.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/action.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/auth.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/file-export.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/github-api.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/helpers.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/index.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/parsers.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/prompts.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/supabase-api.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/types.d.ts.map +0 -1
- package/dist/commands/env/commands/setup/vercel-api.d.ts.map +0 -1
- package/dist/commands/env/constants/local-supabase.d.ts.map +0 -1
- package/dist/commands/env/index.d.ts.map +0 -1
- package/dist/commands/hotfix/actors.d.ts.map +0 -1
- package/dist/commands/hotfix/commands/hotfix-complete.d.ts.map +0 -1
- package/dist/commands/hotfix/commands/hotfix-create.d.ts.map +0 -1
- package/dist/commands/hotfix/commands/hotfix-deploy.d.ts.map +0 -1
- package/dist/commands/hotfix/commands/hotfix-status.d.ts.map +0 -1
- package/dist/commands/hotfix/contract.d.ts.map +0 -1
- package/dist/commands/hotfix/index.d.ts.map +0 -1
- package/dist/commands/hotfix/machine.d.ts.map +0 -1
- package/dist/commands/hotfix/metadata.d.ts.map +0 -1
- package/dist/commands/hotfix/utils/hotfix-machine-helper.d.ts.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/action.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/commands/inject-test-attrs.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/contract.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/detection-diagnostics.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/formatter.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/index.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/manifest-generator.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/processor-utils.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/processor.d.ts.map +0 -1
- package/dist/commands/inject-test-attrs/types.d.ts.map +0 -1
- package/dist/commands/link.d.ts.map +0 -1
- package/dist/commands/manifest/index.d.ts.map +0 -1
- package/dist/commands/prepare/commands/prepare.d.ts.map +0 -1
- package/dist/commands/prepare/index.d.ts.map +0 -1
- package/dist/commands/sdk/commands/publish.d.ts.map +0 -1
- package/dist/commands/sdk/index.d.ts.map +0 -1
- package/dist/commands/services/index.d.ts.map +0 -1
- package/dist/commands/session/index.d.ts.map +0 -1
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/telemetry.d.ts.map +0 -1
- package/dist/commands/template-check/actors/compare.d.ts.map +0 -1
- package/dist/commands/template-check/actors/discover.d.ts.map +0 -1
- package/dist/commands/template-check/actors/index.d.ts.map +0 -1
- package/dist/commands/template-check/actors/report.d.ts.map +0 -1
- package/dist/commands/template-check/commands/template-check.d.ts.map +0 -1
- package/dist/commands/template-check/config.d.ts.map +0 -1
- package/dist/commands/template-check/contract.d.ts.map +0 -1
- package/dist/commands/template-check/index.d.ts.map +0 -1
- package/dist/commands/template-check/machine.d.ts.map +0 -1
- package/dist/commands/template-check/types.d.ts.map +0 -1
- package/dist/commands/template-check/utils/diff-analyzer.d.ts.map +0 -1
- package/dist/commands/template-check/utils/normalizer.d.ts.map +0 -1
- package/dist/commands/template-check/utils/path-mapping.d.ts.map +0 -1
- package/dist/commands/test/commands/test-db.d.ts.map +0 -1
- package/dist/commands/test/commands/test-e2e.d.ts.map +0 -1
- package/dist/commands/test/commands/test-fast.d.ts.map +0 -1
- package/dist/commands/test/commands/test-integration.d.ts.map +0 -1
- package/dist/commands/test/commands/test-layer.d.ts.map +0 -1
- package/dist/commands/test/commands/test-owasp-generate.d.ts.map +0 -1
- package/dist/commands/test/commands/test-service.d.ts.map +0 -1
- package/dist/commands/test/commands/test-static.d.ts.map +0 -1
- package/dist/commands/test/commands/test.d.ts.map +0 -1
- package/dist/commands/test/index.d.ts.map +0 -1
- package/dist/commands/test-gen.d.ts.map +0 -1
- package/dist/commands/ui.d.ts.map +0 -1
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/vuln-check.d.ts.map +0 -1
- package/dist/commands/watch.d.ts.map +0 -1
- package/dist/commands/workflow/commands/deploy-production.d.ts.map +0 -1
- package/dist/commands/workflow/commands/final-status.d.ts.map +0 -1
- package/dist/commands/workflow/commands/log.d.ts.map +0 -1
- package/dist/commands/workflow/commands/notify.d.ts.map +0 -1
- package/dist/commands/workflow/commands/paths.d.ts.map +0 -1
- package/dist/commands/workflow/commands/sync.d.ts.map +0 -1
- package/dist/commands/workflow/commands/validate.d.ts.map +0 -1
- package/dist/commands/workflow/commands/verify-credentials.d.ts.map +0 -1
- package/dist/commands/workflow/index.d.ts.map +0 -1
- package/dist/commands/workflow/types.d.ts.map +0 -1
- package/dist/config/env-files.d.ts.map +0 -1
- package/dist/config/env.d.ts.map +0 -1
- package/dist/constants/versions.d.ts.map +0 -1
- package/dist/contracts/envelope.d.ts.map +0 -1
- package/dist/errors/catalog.d.ts.map +0 -1
- package/dist/errors/exit-codes.d.ts.map +0 -1
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/incremental/affected-tests.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/machines/index.d.ts.map +0 -1
- package/dist/internal/machines/machine-runner.d.ts.map +0 -1
- package/dist/internal/machines/snapshot-helpers.d.ts.map +0 -1
- package/dist/internal/machines/types.d.ts.map +0 -1
- package/dist/internal/vuln-checker/analyzers/dependency-analyzer.d.ts.map +0 -1
- package/dist/internal/vuln-checker/analyzers/rls-analyzer.d.ts.map +0 -1
- package/dist/internal/vuln-checker/analyzers/secret-analyzer.d.ts.map +0 -1
- package/dist/internal/vuln-checker/analyzers/typescript-analyzer.d.ts.map +0 -1
- package/dist/internal/vuln-checker/config/loader.d.ts.map +0 -1
- package/dist/internal/vuln-checker/constants.d.ts.map +0 -1
- package/dist/internal/vuln-checker/ignore/matcher.d.ts.map +0 -1
- package/dist/internal/vuln-checker/index.d.ts.map +0 -1
- package/dist/internal/vuln-checker/reporters/console-reporter.d.ts.map +0 -1
- package/dist/internal/vuln-checker/reporters/json-reporter.d.ts.map +0 -1
- package/dist/internal/vuln-checker/reporters/markdown-reporter.d.ts.map +0 -1
- package/dist/internal/vuln-checker/reporters/sarif-reporter.d.ts.map +0 -1
- package/dist/internal/vuln-checker/security/path-validation.d.ts.map +0 -1
- package/dist/internal/vuln-checker/types.d.ts.map +0 -1
- package/dist/notifiers/desktop-notifier.d.ts.map +0 -1
- package/dist/ui/components/db-panel.d.ts.map +0 -1
- package/dist/ui/components/status-bar.d.ts.map +0 -1
- package/dist/ui/components/test-panel.d.ts.map +0 -1
- package/dist/ui/dashboard.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/utils/config-loader.d.ts.map +0 -1
- package/dist/utils/config-updater.d.ts.map +0 -1
- package/dist/utils/diagnostics.d.ts.map +0 -1
- package/dist/utils/dotenvx.d.ts.map +0 -1
- package/dist/utils/env-local-bridge.d.ts.map +0 -1
- package/dist/utils/execution-plan.d.ts.map +0 -1
- package/dist/utils/github-output-security.d.ts.map +0 -1
- package/dist/utils/help-system.d.ts.map +0 -1
- package/dist/utils/license/admin-auth.d.ts.map +0 -1
- package/dist/utils/license/allowlist-checker.d.ts.map +0 -1
- package/dist/utils/license/ci-detector.d.ts.map +0 -1
- package/dist/utils/license/index.d.ts.map +0 -1
- package/dist/utils/license/owner-resolver.d.ts.map +0 -1
- package/dist/utils/license/types.d.ts.map +0 -1
- package/dist/utils/license/validate-owner.d.ts.map +0 -1
- package/dist/utils/path-security.d.ts.map +0 -1
- package/dist/utils/port-allocator.d.ts.map +0 -1
- package/dist/utils/secure-exec.d.ts.map +0 -1
- package/dist/utils/template-fetcher.d.ts.map +0 -1
- package/dist/utils/type-guards.d.ts.map +0 -1
- package/dist/utils/vercel-project.d.ts.map +0 -1
- package/dist/utils/workspace-detector.d.ts.map +0 -1
- package/dist/validators/risk-detector.d.ts.map +0 -1
- package/dist/validators/schema-validator.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/watchers/schema-watcher.d.ts.map +0 -1
- package/dist/watchers/test-watcher.d.ts.map +0 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'module';
|
|
3
|
+
import { emitJsonSuccess } from './chunk-KE6QJBZG.js';
|
|
4
|
+
import './chunk-WJXC4MVY.js';
|
|
5
|
+
import './chunk-HKUWEGUX.js';
|
|
6
|
+
import { init_esm_shims } from './chunk-VRXHCR5K.js';
|
|
7
|
+
import { cacheClear, CacheClearOutputSchema, cachePrune, CachePruneOutputSchema, cacheStats, CacheStatsOutputSchema, cacheList, CacheListOutputSchema, cacheInvalidate, CacheInvalidateOutputSchema } from '@runa-ai/runa/cache';
|
|
8
|
+
import { createCLILogger, CLIError } from '@runa-ai/runa/cli-runtime';
|
|
9
|
+
import { Command } from 'commander';
|
|
10
|
+
|
|
11
|
+
createRequire(import.meta.url);
|
|
12
|
+
|
|
13
|
+
// src/commands/cache.ts
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
var logger = createCLILogger("cache");
|
|
16
|
+
var cacheClearCommand = new Command("clear").description("Clear all caches").option("--namespace <name>", "Clear specific cache namespace").action(async (options) => {
|
|
17
|
+
try {
|
|
18
|
+
logger.section("Cache Clearing");
|
|
19
|
+
const output = await cacheClear({
|
|
20
|
+
namespace: options.namespace ? String(options.namespace) : void 0
|
|
21
|
+
});
|
|
22
|
+
emitJsonSuccess(cacheClearCommand, CacheClearOutputSchema, output);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
if (error instanceof CLIError) {
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
throw new CLIError(
|
|
28
|
+
"Failed to clear cache",
|
|
29
|
+
"CACHE_CLEAR_ERROR",
|
|
30
|
+
["Check cache directory permissions"],
|
|
31
|
+
error instanceof Error ? error : void 0
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var cachePruneCommand = new Command("prune").description("Remove expired cache entries").option("--namespace <name>", "Prune specific cache namespace").action(async (options) => {
|
|
36
|
+
try {
|
|
37
|
+
logger.section("Cache Pruning");
|
|
38
|
+
const output = await cachePrune({
|
|
39
|
+
namespace: options.namespace ? String(options.namespace) : void 0
|
|
40
|
+
});
|
|
41
|
+
emitJsonSuccess(cachePruneCommand, CachePruneOutputSchema, output);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
if (error instanceof CLIError) {
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
throw new CLIError(
|
|
47
|
+
"Failed to prune cache",
|
|
48
|
+
"CACHE_PRUNE_ERROR",
|
|
49
|
+
["Check cache directory exists"],
|
|
50
|
+
error instanceof Error ? error : void 0
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var cacheStatsCommand = new Command("stats").description("Show cache statistics").option("--namespace <name>", "Show stats for specific namespace").action(async (options) => {
|
|
55
|
+
try {
|
|
56
|
+
logger.section("Cache Statistics");
|
|
57
|
+
const output = await cacheStats({
|
|
58
|
+
namespace: options.namespace ? String(options.namespace) : void 0
|
|
59
|
+
});
|
|
60
|
+
emitJsonSuccess(cacheStatsCommand, CacheStatsOutputSchema, output);
|
|
61
|
+
} catch (error) {
|
|
62
|
+
if (error instanceof CLIError) {
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
throw new CLIError(
|
|
66
|
+
"Failed to get cache stats",
|
|
67
|
+
"CACHE_STATS_ERROR",
|
|
68
|
+
["Check cache directory exists"],
|
|
69
|
+
error instanceof Error ? error : void 0
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
var cacheListCommand = new Command("list").description("List cache namespaces").action(async () => {
|
|
74
|
+
try {
|
|
75
|
+
logger.section("Cache Namespaces");
|
|
76
|
+
const output = await cacheList({});
|
|
77
|
+
emitJsonSuccess(cacheListCommand, CacheListOutputSchema, output);
|
|
78
|
+
} catch (error) {
|
|
79
|
+
if (error instanceof CLIError) {
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
82
|
+
throw new CLIError(
|
|
83
|
+
"Failed to list caches",
|
|
84
|
+
"CACHE_LIST_ERROR",
|
|
85
|
+
["Check cache directory exists"],
|
|
86
|
+
error instanceof Error ? error : void 0
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var cacheInvalidateCommand = new Command("invalidate").description("Invalidate caches based on file changes").option("--pattern <glob>", "File pattern to watch for changes").action(async (options) => {
|
|
91
|
+
try {
|
|
92
|
+
logger.section("Cache Invalidation");
|
|
93
|
+
const output = await cacheInvalidate({
|
|
94
|
+
pattern: options.pattern ? String(options.pattern) : void 0
|
|
95
|
+
});
|
|
96
|
+
emitJsonSuccess(cacheInvalidateCommand, CacheInvalidateOutputSchema, output);
|
|
97
|
+
} catch (error) {
|
|
98
|
+
if (error instanceof CLIError) {
|
|
99
|
+
throw error;
|
|
100
|
+
}
|
|
101
|
+
throw new CLIError(
|
|
102
|
+
"Failed to invalidate cache",
|
|
103
|
+
"CACHE_INVALIDATE_ERROR",
|
|
104
|
+
["Check file patterns", "Verify cache exists"],
|
|
105
|
+
error instanceof Error ? error : void 0
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
var cacheCommand = new Command("cache").description("Manage CLI cache").addCommand(cacheClearCommand).addCommand(cachePruneCommand).addCommand(cacheStatsCommand).addCommand(cacheListCommand).addCommand(cacheInvalidateCommand);
|
|
110
|
+
|
|
111
|
+
export { cacheClearCommand, cacheCommand, cacheInvalidateCommand, cacheListCommand, cachePruneCommand, cacheStatsCommand };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'module';
|
|
3
|
+
export { checkCommand, runCheckCommand } from './chunk-QM53IQHM.js';
|
|
4
|
+
import './chunk-644FVGIQ.js';
|
|
5
|
+
import './chunk-DRSUEMAK.js';
|
|
6
|
+
import './chunk-KE6QJBZG.js';
|
|
7
|
+
import './chunk-WJXC4MVY.js';
|
|
8
|
+
import './chunk-HKUWEGUX.js';
|
|
9
|
+
import './chunk-JMJP4A47.js';
|
|
10
|
+
import './chunk-VRXHCR5K.js';
|
|
11
|
+
|
|
12
|
+
createRequire(import.meta.url);
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'module';
|
|
3
|
+
import { runLogged } from './chunk-6FAU4IGR.js';
|
|
4
|
+
import { init_constants, detectSupabasePorts } from './chunk-VM3IWOT5.js';
|
|
5
|
+
import { init_esm_shims } from './chunk-VRXHCR5K.js';
|
|
6
|
+
import { execSync, spawnSync } from 'child_process';
|
|
7
|
+
import { existsSync, statSync, readFileSync } from 'fs';
|
|
8
|
+
import path2, { join } from 'path';
|
|
9
|
+
import { fromPromise } from 'xstate';
|
|
10
|
+
import { mkdir } from 'fs/promises';
|
|
11
|
+
|
|
12
|
+
createRequire(import.meta.url);
|
|
13
|
+
|
|
14
|
+
// src/commands/build/actors/setup.ts
|
|
15
|
+
init_esm_shims();
|
|
16
|
+
init_constants();
|
|
17
|
+
function needsDepsInstall(repoRoot) {
|
|
18
|
+
const nodeModulesPath = join(repoRoot, "node_modules");
|
|
19
|
+
join(repoRoot, "package.json");
|
|
20
|
+
const lockfilePath = join(repoRoot, "pnpm-lock.yaml");
|
|
21
|
+
if (!existsSync(nodeModulesPath)) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (existsSync(lockfilePath)) {
|
|
25
|
+
try {
|
|
26
|
+
const nodeModulesStat = statSync(nodeModulesPath);
|
|
27
|
+
const lockfileStat = statSync(lockfilePath);
|
|
28
|
+
if (lockfileStat.mtimeMs > nodeModulesStat.mtimeMs) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
} catch {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
function extractPortFromDbUrl(dbUrl) {
|
|
38
|
+
const match = dbUrl.match(/:(\d+)\//);
|
|
39
|
+
if (!match?.[1]) return void 0;
|
|
40
|
+
const port = Number.parseInt(match[1], 10);
|
|
41
|
+
return Number.isFinite(port) && port > 0 ? port : void 0;
|
|
42
|
+
}
|
|
43
|
+
function parseSupabaseStatusDbPort(rawStatus) {
|
|
44
|
+
try {
|
|
45
|
+
const parsed = JSON.parse(rawStatus);
|
|
46
|
+
const dbUrl = (typeof parsed["DB URL"] === "string" ? parsed["DB URL"] : void 0) ?? (typeof parsed.db_url === "string" ? parsed.db_url : void 0);
|
|
47
|
+
if (dbUrl) {
|
|
48
|
+
const port = extractPortFromDbUrl(dbUrl);
|
|
49
|
+
if (port !== void 0) return port;
|
|
50
|
+
}
|
|
51
|
+
} catch {
|
|
52
|
+
}
|
|
53
|
+
const dbUrlLine = rawStatus.match(/DB URL:\s*([^\s]+)/i);
|
|
54
|
+
if (dbUrlLine?.[1]) {
|
|
55
|
+
const port = extractPortFromDbUrl(dbUrlLine[1]);
|
|
56
|
+
if (port !== void 0) return port;
|
|
57
|
+
}
|
|
58
|
+
const genericDbUrl = rawStatus.match(/postgres(?:ql)?:\/\/[^\s]+/i);
|
|
59
|
+
if (genericDbUrl?.[0]) {
|
|
60
|
+
return extractPortFromDbUrl(genericDbUrl[0]);
|
|
61
|
+
}
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
function detectRunningSupabaseDbPort(repoRoot) {
|
|
65
|
+
const statusCommands = [["status", "--output", "json"], ["status"]];
|
|
66
|
+
for (const args of statusCommands) {
|
|
67
|
+
try {
|
|
68
|
+
const result = spawnSync("supabase", args, {
|
|
69
|
+
cwd: repoRoot,
|
|
70
|
+
encoding: "utf-8",
|
|
71
|
+
timeout: 1e4
|
|
72
|
+
});
|
|
73
|
+
if (result.status !== 0 || !result.stdout) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
const port = parseSupabaseStatusDbPort(result.stdout);
|
|
77
|
+
if (port !== void 0) {
|
|
78
|
+
return port;
|
|
79
|
+
}
|
|
80
|
+
} catch {
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return void 0;
|
|
84
|
+
}
|
|
85
|
+
function extractSupabaseProjectFromContainerName(containerName) {
|
|
86
|
+
const match = containerName.match(/^supabase_db_(.+)$/);
|
|
87
|
+
return match?.[1];
|
|
88
|
+
}
|
|
89
|
+
function findSupabaseProjectUsingPort(actualDbPort) {
|
|
90
|
+
try {
|
|
91
|
+
const dockerResult = spawnSync(
|
|
92
|
+
"docker",
|
|
93
|
+
["ps", "--filter", "name=supabase_db", "--format", "{{.Names}} {{.Ports}}"],
|
|
94
|
+
{ encoding: "utf-8", timeout: 5e3 }
|
|
95
|
+
);
|
|
96
|
+
if (dockerResult.status !== 0 || !dockerResult.stdout?.trim()) {
|
|
97
|
+
return void 0;
|
|
98
|
+
}
|
|
99
|
+
const lines = dockerResult.stdout.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0);
|
|
100
|
+
for (const line of lines) {
|
|
101
|
+
const [name, ports = ""] = line.split(" ");
|
|
102
|
+
if (!name || !ports.includes(`:${actualDbPort}->`)) continue;
|
|
103
|
+
return extractSupabaseProjectFromContainerName(name);
|
|
104
|
+
}
|
|
105
|
+
for (const line of lines) {
|
|
106
|
+
const [name] = line.split(" ");
|
|
107
|
+
if (!name) continue;
|
|
108
|
+
const project = extractSupabaseProjectFromContainerName(name);
|
|
109
|
+
if (project) return project;
|
|
110
|
+
}
|
|
111
|
+
} catch {
|
|
112
|
+
}
|
|
113
|
+
return void 0;
|
|
114
|
+
}
|
|
115
|
+
function checkSupabaseStatus(repoRoot) {
|
|
116
|
+
const supabaseConfigPath = join(repoRoot, "supabase", "config.toml");
|
|
117
|
+
const configured = existsSync(supabaseConfigPath);
|
|
118
|
+
if (!configured) {
|
|
119
|
+
return { configured: false, running: false, portInUse: false };
|
|
120
|
+
}
|
|
121
|
+
const ports = detectSupabasePorts(repoRoot);
|
|
122
|
+
const actualDbPort = ports.db;
|
|
123
|
+
const reportedPort = detectRunningSupabaseDbPort(repoRoot);
|
|
124
|
+
if (reportedPort === actualDbPort) {
|
|
125
|
+
return { configured, running: true, portInUse: false, actualPort: actualDbPort };
|
|
126
|
+
}
|
|
127
|
+
try {
|
|
128
|
+
const result = spawnSync("lsof", ["-i", `:${actualDbPort}`, "-t"], {
|
|
129
|
+
encoding: "utf-8",
|
|
130
|
+
timeout: 5e3
|
|
131
|
+
});
|
|
132
|
+
if (result.status === 0 && result.stdout?.trim()) {
|
|
133
|
+
const conflictingProject = findSupabaseProjectUsingPort(actualDbPort);
|
|
134
|
+
return {
|
|
135
|
+
configured,
|
|
136
|
+
running: false,
|
|
137
|
+
portInUse: true,
|
|
138
|
+
conflictingProject,
|
|
139
|
+
actualPort: actualDbPort
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
} catch {
|
|
143
|
+
}
|
|
144
|
+
return { configured, running: false, portInUse: false, actualPort: actualDbPort };
|
|
145
|
+
}
|
|
146
|
+
function checkEnvFiles(repoRoot) {
|
|
147
|
+
const envFiles = [".env.development", ".env.preview", ".env.production"];
|
|
148
|
+
const missing = [];
|
|
149
|
+
for (const file of envFiles) {
|
|
150
|
+
if (!existsSync(join(repoRoot, file))) {
|
|
151
|
+
missing.push(file);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return missing;
|
|
155
|
+
}
|
|
156
|
+
var depsInstallActor = fromPromise(
|
|
157
|
+
async ({ input }) => {
|
|
158
|
+
const startTime = Date.now();
|
|
159
|
+
const needed = needsDepsInstall(input.repoRoot);
|
|
160
|
+
if (!needed) {
|
|
161
|
+
return {
|
|
162
|
+
needed: false,
|
|
163
|
+
installed: false,
|
|
164
|
+
durationMs: Date.now() - startTime
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
console.log(" \u26A0\uFE0F Dependencies outdated, running pnpm install...");
|
|
168
|
+
try {
|
|
169
|
+
execSync("pnpm install --frozen-lockfile", {
|
|
170
|
+
cwd: input.repoRoot,
|
|
171
|
+
stdio: input.verbose ? "inherit" : "pipe",
|
|
172
|
+
timeout: 3e5
|
|
173
|
+
// 5 minutes
|
|
174
|
+
});
|
|
175
|
+
return {
|
|
176
|
+
needed: true,
|
|
177
|
+
installed: true,
|
|
178
|
+
durationMs: Date.now() - startTime
|
|
179
|
+
};
|
|
180
|
+
} catch (_error) {
|
|
181
|
+
try {
|
|
182
|
+
execSync("pnpm install", {
|
|
183
|
+
cwd: input.repoRoot,
|
|
184
|
+
stdio: input.verbose ? "inherit" : "pipe",
|
|
185
|
+
timeout: 3e5
|
|
186
|
+
});
|
|
187
|
+
return {
|
|
188
|
+
needed: true,
|
|
189
|
+
installed: true,
|
|
190
|
+
durationMs: Date.now() - startTime
|
|
191
|
+
};
|
|
192
|
+
} catch (installError) {
|
|
193
|
+
return {
|
|
194
|
+
needed: true,
|
|
195
|
+
installed: false,
|
|
196
|
+
durationMs: Date.now() - startTime,
|
|
197
|
+
error: installError instanceof Error ? installError.message : "pnpm install failed"
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
var envCheckActor = fromPromise(
|
|
204
|
+
async ({ input }) => {
|
|
205
|
+
const missingFiles = checkEnvFiles(input.repoRoot);
|
|
206
|
+
if (missingFiles.length === 0) {
|
|
207
|
+
return {
|
|
208
|
+
configured: true,
|
|
209
|
+
missingFiles: []
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
const hasKeys = existsSync(join(input.repoRoot, ".env.keys"));
|
|
213
|
+
if (missingFiles.length > 0) {
|
|
214
|
+
const warning = hasKeys ? `Missing ${missingFiles.join(", ")}. Run 'runa env encrypt' to regenerate.` : `Missing ${missingFiles.join(", ")}. Run 'runa env pull' to configure.`;
|
|
215
|
+
console.log(` \u26A0\uFE0F ${warning}`);
|
|
216
|
+
return {
|
|
217
|
+
configured: false,
|
|
218
|
+
missingFiles,
|
|
219
|
+
warning
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
configured: true,
|
|
224
|
+
missingFiles: []
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
var supabaseStartActor = fromPromise(
|
|
229
|
+
async ({ input }) => {
|
|
230
|
+
const { configured, running, portInUse, conflictingProject, actualPort } = checkSupabaseStatus(
|
|
231
|
+
input.repoRoot
|
|
232
|
+
);
|
|
233
|
+
if (!configured) {
|
|
234
|
+
return {
|
|
235
|
+
needed: false,
|
|
236
|
+
started: false,
|
|
237
|
+
alreadyRunning: false
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
if (running) {
|
|
241
|
+
return {
|
|
242
|
+
needed: true,
|
|
243
|
+
started: false,
|
|
244
|
+
alreadyRunning: true
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
if (portInUse) {
|
|
248
|
+
const portInfo = actualPort ? ` (port ${actualPort})` : "";
|
|
249
|
+
const warning = conflictingProject ? `Port${portInfo} in use by project '${conflictingProject}'. Run 'supabase stop --project-id ${conflictingProject}' first, or use --skip-db.` : `Port${portInfo} is already in use by another process. Stop the process or use --skip-db.`;
|
|
250
|
+
console.log(` \u26A0\uFE0F ${warning}`);
|
|
251
|
+
return {
|
|
252
|
+
needed: true,
|
|
253
|
+
started: false,
|
|
254
|
+
alreadyRunning: false,
|
|
255
|
+
warning
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
console.log(" \u26A0\uFE0F Supabase not running, starting...");
|
|
259
|
+
try {
|
|
260
|
+
execSync("supabase start", {
|
|
261
|
+
cwd: input.repoRoot,
|
|
262
|
+
stdio: input.verbose ? "inherit" : "pipe",
|
|
263
|
+
timeout: 12e4
|
|
264
|
+
// 2 minutes
|
|
265
|
+
});
|
|
266
|
+
return {
|
|
267
|
+
needed: true,
|
|
268
|
+
started: true,
|
|
269
|
+
alreadyRunning: false
|
|
270
|
+
};
|
|
271
|
+
} catch (error) {
|
|
272
|
+
const errorMsg = error instanceof Error ? error.message : "unknown error";
|
|
273
|
+
const portMatch = errorMsg.match(/supabase stop --project-id ([^\s]+)/);
|
|
274
|
+
if (portMatch) {
|
|
275
|
+
const project = portMatch[1];
|
|
276
|
+
const warning2 = `Port conflict with project '${project}'. Run 'supabase stop --project-id ${project}' first, or use --skip-db.`;
|
|
277
|
+
console.log(` \u26A0\uFE0F ${warning2}`);
|
|
278
|
+
return {
|
|
279
|
+
needed: true,
|
|
280
|
+
started: false,
|
|
281
|
+
alreadyRunning: false,
|
|
282
|
+
warning: warning2
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
const warning = `Supabase start failed. Run 'supabase start' manually.`;
|
|
286
|
+
console.log(` \u26A0\uFE0F ${warning}`);
|
|
287
|
+
return {
|
|
288
|
+
needed: true,
|
|
289
|
+
started: false,
|
|
290
|
+
alreadyRunning: false,
|
|
291
|
+
warning
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
);
|
|
296
|
+
|
|
297
|
+
// src/commands/build/actors/manifest.ts
|
|
298
|
+
init_esm_shims();
|
|
299
|
+
var manifestActor = fromPromise(
|
|
300
|
+
async ({ input }) => {
|
|
301
|
+
const { repoRoot, tmpDir, env = process.env } = input;
|
|
302
|
+
const startTime = Date.now();
|
|
303
|
+
try {
|
|
304
|
+
const fullTmpDir = path2.join(repoRoot, tmpDir);
|
|
305
|
+
await mkdir(fullTmpDir, { recursive: true });
|
|
306
|
+
await runLogged({
|
|
307
|
+
cwd: repoRoot,
|
|
308
|
+
env,
|
|
309
|
+
label: "manifest",
|
|
310
|
+
command: "pnpm",
|
|
311
|
+
args: ["exec", "runa", "manifest"],
|
|
312
|
+
logFile: path2.join(fullTmpDir, "manifest.log")
|
|
313
|
+
});
|
|
314
|
+
return {
|
|
315
|
+
passed: true,
|
|
316
|
+
durationMs: Date.now() - startTime
|
|
317
|
+
};
|
|
318
|
+
} catch (error) {
|
|
319
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
320
|
+
return {
|
|
321
|
+
passed: false,
|
|
322
|
+
durationMs: Date.now() - startTime,
|
|
323
|
+
error: `Manifest generation failed: ${errorMessage}. Run 'runa manifest --verbose' for details.`
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
// src/commands/build/guards.ts
|
|
330
|
+
init_esm_shims();
|
|
331
|
+
function shouldClean({ context }) {
|
|
332
|
+
return context.input.clean || context.input.fresh;
|
|
333
|
+
}
|
|
334
|
+
function shouldFresh({ context }) {
|
|
335
|
+
return context.input.fresh;
|
|
336
|
+
}
|
|
337
|
+
function shouldSkipForOnly({ context }, phase) {
|
|
338
|
+
const { only } = context.input;
|
|
339
|
+
if (!only || only.length === 0) return false;
|
|
340
|
+
return !only.includes(phase);
|
|
341
|
+
}
|
|
342
|
+
function shouldSkipTypes({ context }) {
|
|
343
|
+
return shouldSkipForOnly({ context }, "types");
|
|
344
|
+
}
|
|
345
|
+
function shouldSkipLint({ context }) {
|
|
346
|
+
return shouldSkipForOnly({ context }, "lint");
|
|
347
|
+
}
|
|
348
|
+
function shouldSkipBuild({ context }) {
|
|
349
|
+
return shouldSkipForOnly({ context }, "build");
|
|
350
|
+
}
|
|
351
|
+
function shouldSkipStaticAnalysis({ context }) {
|
|
352
|
+
return shouldSkipTypes({ context }) && shouldSkipLint({ context });
|
|
353
|
+
}
|
|
354
|
+
function shouldSkipDb({ context }) {
|
|
355
|
+
return context.input.skipDb || !context.hasDatabase || shouldSkipForOnly({ context }, "db");
|
|
356
|
+
}
|
|
357
|
+
function shouldSkipManifest({ context }) {
|
|
358
|
+
return context.input.skipManifest || !context.hasManifestTask || shouldSkipForOnly({ context }, "manifest");
|
|
359
|
+
}
|
|
360
|
+
function isDryRun({ context }) {
|
|
361
|
+
return context.input.check;
|
|
362
|
+
}
|
|
363
|
+
function shouldSkipSetup({ context }) {
|
|
364
|
+
return context.input.noSetup;
|
|
365
|
+
}
|
|
366
|
+
function isE2EMode({ context }) {
|
|
367
|
+
return context.input.e2e;
|
|
368
|
+
}
|
|
369
|
+
function detectDatabase(repoRoot) {
|
|
370
|
+
const configPath = path2.join(repoRoot, "runa.config.ts");
|
|
371
|
+
if (!existsSync(configPath)) {
|
|
372
|
+
const jsConfigPath = path2.join(repoRoot, "runa.config.js");
|
|
373
|
+
if (!existsSync(jsConfigPath)) {
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const supabaseDir = path2.join(repoRoot, "supabase");
|
|
378
|
+
if (existsSync(supabaseDir)) {
|
|
379
|
+
return true;
|
|
380
|
+
}
|
|
381
|
+
const databasePkg = path2.join(repoRoot, "packages", "database");
|
|
382
|
+
if (existsSync(databasePkg)) {
|
|
383
|
+
return true;
|
|
384
|
+
}
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
function detectManifestTask(repoRoot) {
|
|
388
|
+
const runaConfigPath = path2.join(repoRoot, "runa.config.ts");
|
|
389
|
+
if (existsSync(runaConfigPath)) {
|
|
390
|
+
return true;
|
|
391
|
+
}
|
|
392
|
+
const rootPkgPath = path2.join(repoRoot, "package.json");
|
|
393
|
+
if (hasXStateDependency(rootPkgPath)) {
|
|
394
|
+
return true;
|
|
395
|
+
}
|
|
396
|
+
const appDirs = ["apps/web", "apps/app", "apps/dashboard", "app"];
|
|
397
|
+
for (const appDir of appDirs) {
|
|
398
|
+
const appPkgPath = path2.join(repoRoot, appDir, "package.json");
|
|
399
|
+
if (hasXStateDependency(appPkgPath)) {
|
|
400
|
+
return true;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return false;
|
|
404
|
+
}
|
|
405
|
+
function hasXStateDependency(pkgPath) {
|
|
406
|
+
if (!existsSync(pkgPath)) {
|
|
407
|
+
return false;
|
|
408
|
+
}
|
|
409
|
+
try {
|
|
410
|
+
const content = readFileSync(pkgPath, "utf-8");
|
|
411
|
+
const pkg = JSON.parse(content);
|
|
412
|
+
const allDeps = {
|
|
413
|
+
...pkg.dependencies ?? {},
|
|
414
|
+
...pkg.devDependencies ?? {}
|
|
415
|
+
};
|
|
416
|
+
return Boolean(
|
|
417
|
+
allDeps.xstate || allDeps["@xstate/react"] || allDeps["@runa-ai/runa-xstate-test-plugin"] || allDeps["@runa-ai/runa"]
|
|
418
|
+
// SDK includes XState support
|
|
419
|
+
);
|
|
420
|
+
} catch {
|
|
421
|
+
return false;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function detectTurbo(repoRoot) {
|
|
425
|
+
const turboJsonPath = path2.join(repoRoot, "turbo.json");
|
|
426
|
+
return existsSync(turboJsonPath);
|
|
427
|
+
}
|
|
428
|
+
var guards = {
|
|
429
|
+
shouldClean,
|
|
430
|
+
shouldFresh,
|
|
431
|
+
shouldSkipTypes,
|
|
432
|
+
shouldSkipLint,
|
|
433
|
+
shouldSkipBuild,
|
|
434
|
+
shouldSkipStaticAnalysis,
|
|
435
|
+
shouldSkipDb,
|
|
436
|
+
shouldSkipManifest,
|
|
437
|
+
shouldSkipSetup,
|
|
438
|
+
isDryRun,
|
|
439
|
+
isE2EMode
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
export { checkSupabaseStatus, depsInstallActor, detectDatabase, detectManifestTask, detectTurbo, envCheckActor, guards, manifestActor, supabaseStartActor };
|