@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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Machine Utilities
|
|
3
|
+
*
|
|
4
|
+
* Purpose:
|
|
5
|
+
* - Provide a single, shared runner for CLI XState machines.
|
|
6
|
+
* - Keep command handlers thin and consistent.
|
|
7
|
+
*/
|
|
8
|
+
export { runMachine } from './machine-runner.js';
|
|
9
|
+
export type { StateE2EMeta } from './types.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/machines/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared CLI Machine Runner
|
|
3
|
+
*
|
|
4
|
+
* Purpose:
|
|
5
|
+
* - Standardize XState machine execution for CLI commands.
|
|
6
|
+
* - Provide consistent logging hooks and timeouts.
|
|
7
|
+
*
|
|
8
|
+
* Design:
|
|
9
|
+
* - Machines should expose:
|
|
10
|
+
* - getStateName(snapshot)
|
|
11
|
+
* - isComplete(snapshot)
|
|
12
|
+
* - getError(snapshot)
|
|
13
|
+
* - Machines should define `output:` so this runner can return a typed output.
|
|
14
|
+
*/
|
|
15
|
+
import { type AnyStateMachine, type OutputFrom } from 'xstate';
|
|
16
|
+
import type { RunMachineParams } from './types.js';
|
|
17
|
+
export declare function runMachine<TMachine extends AnyStateMachine>(params: RunMachineParams<TMachine>): Promise<OutputFrom<TMachine>>;
|
|
18
|
+
//# sourceMappingURL=machine-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-runner.d.ts","sourceRoot":"","sources":["../../../src/internal/machines/machine-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,KAAK,eAAe,EAAe,KAAK,UAAU,EAAqB,MAAM,QAAQ,CAAC;AAC/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAcnD,wBAAsB,UAAU,CAAC,QAAQ,SAAS,eAAe,EAC/D,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GACjC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAsD/B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Types for CLI XState Machines
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* - These types are used in machine `meta.e2e` blocks to keep E2E mapping explicit.
|
|
6
|
+
* - Keep this file minimal and stable (consumed by many machines).
|
|
7
|
+
*/
|
|
8
|
+
import type { AnyStateMachine, InputFrom, SnapshotFrom } from 'xstate';
|
|
9
|
+
type StateSeverity = 'blocking' | 'non-critical' | 'final';
|
|
10
|
+
type StateObservables = Record<string, string | number | boolean | null>;
|
|
11
|
+
/**
|
|
12
|
+
* E2E meta attached to states via `meta: { e2e: ... }`.
|
|
13
|
+
*
|
|
14
|
+
* Rule of thumb:
|
|
15
|
+
* - Only describe observables that can be asserted (E2E Rule).
|
|
16
|
+
*/
|
|
17
|
+
export interface StateE2EMeta {
|
|
18
|
+
description: string;
|
|
19
|
+
severity: StateSeverity;
|
|
20
|
+
observables: StateObservables;
|
|
21
|
+
assertions: string[];
|
|
22
|
+
nextStates: string[];
|
|
23
|
+
}
|
|
24
|
+
/** @internal - Used by machine-runner.ts */
|
|
25
|
+
interface MachineRunnerHelpers<TSnapshot> {
|
|
26
|
+
getStateName: (snapshot: TSnapshot) => string;
|
|
27
|
+
isComplete: (snapshot: TSnapshot) => boolean;
|
|
28
|
+
getError: (snapshot: TSnapshot) => unknown;
|
|
29
|
+
}
|
|
30
|
+
/** @internal - Used by machine-runner.ts */
|
|
31
|
+
export interface RunMachineParams<TMachine extends AnyStateMachine> {
|
|
32
|
+
machine: TMachine;
|
|
33
|
+
input: InputFrom<TMachine>;
|
|
34
|
+
helpers: MachineRunnerHelpers<SnapshotFrom<TMachine>>;
|
|
35
|
+
/**
|
|
36
|
+
* Snapshot callback (called on every transition).
|
|
37
|
+
* Use this when you need full context for logging.
|
|
38
|
+
*/
|
|
39
|
+
onSnapshot?: (snapshot: SnapshotFrom<TMachine>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* State-name callback (called on every transition).
|
|
42
|
+
* Use this when you only need state string for mapping to steps/sections.
|
|
43
|
+
*/
|
|
44
|
+
onTransition?: (stateName: string) => void;
|
|
45
|
+
timeoutMs?: number;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/internal/machines/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEvE,KAAK,aAAa,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC;AAE3D,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,4CAA4C;AAC5C,UAAU,oBAAoB,CAAC,SAAS;IACtC,YAAY,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,OAAO,CAAC;IAC7C,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,OAAO,CAAC;CAC5C;AAED,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB,CAAC,QAAQ,SAAS,eAAe;IAChE,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B,OAAO,EAAE,oBAAoB,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Dependency vulnerability analyzer
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Check npm dependencies for known vulnerabilities
|
|
5
|
+
* Philosophy: Leverage npm audit for CVE detection
|
|
6
|
+
*
|
|
7
|
+
* Checks:
|
|
8
|
+
* - Known CVEs via npm audit
|
|
9
|
+
* - Outdated packages (major versions behind)
|
|
10
|
+
* - Potentially malicious packages (typosquatting)
|
|
11
|
+
*/
|
|
12
|
+
import type { Analyzer, AnalyzerOptions, Category, Finding } from '../types.js';
|
|
13
|
+
/**
|
|
14
|
+
* Dependency vulnerability analyzer
|
|
15
|
+
*/
|
|
16
|
+
export declare class DependencyAnalyzer implements Analyzer {
|
|
17
|
+
name: string;
|
|
18
|
+
categories: Category[];
|
|
19
|
+
analyze(options: AnalyzerOptions): Promise<Finding[]>;
|
|
20
|
+
private runNpmAudit;
|
|
21
|
+
private executeNpmAudit;
|
|
22
|
+
private checkTyposquatting;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=dependency-analyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-analyzer.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/analyzers/dependency-analyzer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAoB,MAAM,aAAa,CAAC;AAyclG;;GAEG;AACH,qBAAa,kBAAmB,YAAW,QAAQ;IACjD,IAAI,SAAwB;IAC5B,UAAU,EAAE,QAAQ,EAAE,CAAkB;IAElC,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAe7C,WAAW;YAcX,eAAe;YAcf,kBAAkB;CA0BjC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: RLS (Row Level Security) policy analyzer
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Detect missing or weak RLS policies in PostgreSQL schemas
|
|
5
|
+
* Philosophy: AST-driven analysis of Drizzle schema files (ts-morph)
|
|
6
|
+
*
|
|
7
|
+
* Detects:
|
|
8
|
+
* - Tables without RLS enabled
|
|
9
|
+
* - Missing tenant isolation in policies
|
|
10
|
+
* - Overly permissive policies
|
|
11
|
+
* - Missing policies for CRUD operations
|
|
12
|
+
*
|
|
13
|
+
* Implementation:
|
|
14
|
+
* - TypeScript schema parsing: ts-morph (AST) - eliminates regex false positives
|
|
15
|
+
* - SQL policy parsing: regex (acceptable for SQL files)
|
|
16
|
+
*
|
|
17
|
+
* @module rls-analyzer
|
|
18
|
+
*/
|
|
19
|
+
import type { Analyzer, AnalyzerOptions, Category, Finding } from '../types.js';
|
|
20
|
+
/**
|
|
21
|
+
* RLS analyzer using AST-based TypeScript parsing
|
|
22
|
+
*/
|
|
23
|
+
export declare class RLSAnalyzer implements Analyzer {
|
|
24
|
+
name: string;
|
|
25
|
+
categories: Category[];
|
|
26
|
+
analyze(options: AnalyzerOptions): Promise<Finding[]>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=rls-analyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rls-analyzer.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/analyzers/rls-analyzer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAU,MAAM,aAAa,CAAC;AAwiBxF;;GAEG;AACH,qBAAa,WAAY,YAAW,QAAQ;IAC1C,IAAI,SAAiB;IACrB,UAAU,EAAE,QAAQ,EAAE,CAAW;IAE3B,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAgB5D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Secret detection analyzer
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Detect hardcoded secrets, API keys, tokens, and credentials
|
|
5
|
+
* Philosophy: Pattern-based detection with entropy analysis
|
|
6
|
+
*
|
|
7
|
+
* Detects:
|
|
8
|
+
* - API keys (AWS, Google, Stripe, GitHub, etc.)
|
|
9
|
+
* - Private keys (RSA, SSH)
|
|
10
|
+
* - Passwords and credentials
|
|
11
|
+
* - Connection strings
|
|
12
|
+
* - JWT tokens
|
|
13
|
+
* - OAuth tokens
|
|
14
|
+
*/
|
|
15
|
+
import type { Analyzer, AnalyzerOptions, Category, Finding } from '../types.js';
|
|
16
|
+
/**
|
|
17
|
+
* Secret detection analyzer
|
|
18
|
+
*/
|
|
19
|
+
export declare class SecretAnalyzer implements Analyzer {
|
|
20
|
+
name: string;
|
|
21
|
+
categories: Category[];
|
|
22
|
+
analyze(options: AnalyzerOptions): Promise<Finding[]>;
|
|
23
|
+
private getFilesToScan;
|
|
24
|
+
private isExcluded;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=secret-analyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-analyzer.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/analyzers/secret-analyzer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAoB,MAAM,aAAa,CAAC;AAu9BlG;;GAEG;AACH,qBAAa,cAAe,YAAW,QAAQ;IAC7C,IAAI,SAAoB;IACxB,UAAU,EAAE,QAAQ,EAAE,CAAc;IAE9B,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAkB7C,cAAc;IAY5B,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: TypeScript AST-based vulnerability analyzer
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Detect security vulnerabilities using AST analysis
|
|
5
|
+
* Philosophy: Structure-driven detection, not regex pattern matching
|
|
6
|
+
*
|
|
7
|
+
* Detects:
|
|
8
|
+
* - SQL injection (raw SQL strings)
|
|
9
|
+
* - XSS vulnerabilities (dangerouslySetInnerHTML)
|
|
10
|
+
* - Command injection (child_process.exec)
|
|
11
|
+
* - Path traversal (user input in file paths)
|
|
12
|
+
* - Insecure eval usage
|
|
13
|
+
* - Missing authentication checks
|
|
14
|
+
* - Hardcoded credentials
|
|
15
|
+
*/
|
|
16
|
+
import type { Analyzer, AnalyzerOptions, Category, Finding } from '../types.js';
|
|
17
|
+
/**
|
|
18
|
+
* TypeScript AST-based vulnerability analyzer
|
|
19
|
+
*/
|
|
20
|
+
export declare class TypeScriptAnalyzer implements Analyzer {
|
|
21
|
+
name: string;
|
|
22
|
+
categories: Category[];
|
|
23
|
+
analyze(options: AnalyzerOptions): Promise<Finding[]>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=typescript-analyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-analyzer.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/analyzers/typescript-analyzer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAU,MAAM,aAAa,CAAC;AAunBxF;;GAEG;AACH,qBAAa,kBAAmB,YAAW,QAAQ;IACjD,IAAI,SAAwB;IAC5B,UAAU,EAAE,QAAQ,EAAE,CAA6C;IAE7D,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CA8C5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Configuration loader for vulnerability checker
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Load and parse configuration files
|
|
5
|
+
* Supports: YAML and JSON formats
|
|
6
|
+
*/
|
|
7
|
+
import type { IgnoreRule, VulnCheckerConfig } from '../types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Load configuration file
|
|
10
|
+
*/
|
|
11
|
+
export declare function loadConfig(configPath: string, rootDir: string): Promise<VulnCheckerConfig>;
|
|
12
|
+
/**
|
|
13
|
+
* Load ignore file
|
|
14
|
+
*/
|
|
15
|
+
export declare function loadIgnores(ignorePath: string, rootDir: string): Promise<IgnoreRule[]>;
|
|
16
|
+
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/config/loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEjE;;GAEG;AACH,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAkBhG;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CA6B5F"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Security standards constants
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Centralized definitions for OWASP Top 10 and CWE identifiers
|
|
5
|
+
* Philosophy: Single source of truth for security categorization
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* OWASP Top 10 2021 Categories
|
|
9
|
+
* @see https://owasp.org/Top10/
|
|
10
|
+
*/
|
|
11
|
+
export declare const OWASP_2021: {
|
|
12
|
+
/** A01:2021 - Broken Access Control */
|
|
13
|
+
readonly BROKEN_ACCESS_CONTROL: "A01:2021";
|
|
14
|
+
/** A02:2021 - Cryptographic Failures */
|
|
15
|
+
readonly CRYPTO_FAILURES: "A02:2021";
|
|
16
|
+
/** A03:2021 - Injection */
|
|
17
|
+
readonly INJECTION: "A03:2021";
|
|
18
|
+
/** A04:2021 - Insecure Design */
|
|
19
|
+
readonly INSECURE_DESIGN: "A04:2021";
|
|
20
|
+
/** A05:2021 - Security Misconfiguration */
|
|
21
|
+
readonly SECURITY_MISCONFIG: "A05:2021";
|
|
22
|
+
/** A06:2021 - Vulnerable and Outdated Components */
|
|
23
|
+
readonly VULNERABLE_COMPONENTS: "A06:2021";
|
|
24
|
+
/** A07:2021 - Identification and Authentication Failures */
|
|
25
|
+
readonly AUTH_FAILURES: "A07:2021";
|
|
26
|
+
/** A08:2021 - Software and Data Integrity Failures */
|
|
27
|
+
readonly INTEGRITY_FAILURES: "A08:2021";
|
|
28
|
+
/** A09:2021 - Security Logging and Monitoring Failures */
|
|
29
|
+
readonly LOGGING_FAILURES: "A09:2021";
|
|
30
|
+
/** A10:2021 - Server-Side Request Forgery */
|
|
31
|
+
readonly SSRF: "A10:2021";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Common Weakness Enumeration (CWE) identifiers
|
|
35
|
+
* @see https://cwe.mitre.org/
|
|
36
|
+
*/
|
|
37
|
+
export declare const CWE: {
|
|
38
|
+
/** CWE-78: OS Command Injection */
|
|
39
|
+
readonly COMMAND_INJECTION: "CWE-78";
|
|
40
|
+
/** CWE-79: Cross-site Scripting (XSS) */
|
|
41
|
+
readonly XSS: "CWE-79";
|
|
42
|
+
/** CWE-89: SQL Injection */
|
|
43
|
+
readonly SQL_INJECTION: "CWE-89";
|
|
44
|
+
/** CWE-95: Eval Injection */
|
|
45
|
+
readonly EVAL_INJECTION: "CWE-95";
|
|
46
|
+
/** CWE-284: Improper Access Control */
|
|
47
|
+
readonly IMPROPER_ACCESS_CONTROL: "CWE-284";
|
|
48
|
+
/** CWE-306: Missing Authentication */
|
|
49
|
+
readonly MISSING_AUTH: "CWE-306";
|
|
50
|
+
/** CWE-321: Use of Hard-coded Cryptographic Key */
|
|
51
|
+
readonly HARDCODED_CRYPTO_KEY: "CWE-321";
|
|
52
|
+
/** CWE-330: Use of Insufficiently Random Values */
|
|
53
|
+
readonly WEAK_RANDOM: "CWE-330";
|
|
54
|
+
/** CWE-532: Insertion of Sensitive Information into Log File */
|
|
55
|
+
readonly SENSITIVE_LOG: "CWE-532";
|
|
56
|
+
/** CWE-798: Use of Hard-coded Credentials */
|
|
57
|
+
readonly HARDCODED_CREDENTIALS: "CWE-798";
|
|
58
|
+
/** CWE-1104: Use of Unmaintained Third Party Components */
|
|
59
|
+
readonly UNMAINTAINED_COMPONENTS: "CWE-1104";
|
|
60
|
+
/** CWE-494: Download of Code Without Integrity Check */
|
|
61
|
+
readonly UNTRUSTED_DOWNLOAD: "CWE-494";
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Severity numeric scores (for SARIF and sorting)
|
|
65
|
+
*/
|
|
66
|
+
export declare const SEVERITY_SCORE: Record<string, number>;
|
|
67
|
+
/**
|
|
68
|
+
* Tool metadata
|
|
69
|
+
*/
|
|
70
|
+
export declare const TOOL: {
|
|
71
|
+
readonly NAME: "runa-vuln-checker";
|
|
72
|
+
readonly VERSION: string;
|
|
73
|
+
readonly REPO_URL: "https://github.com/r06-dev/runa";
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/internal/vuln-checker/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,uCAAuC;;IAEvC,wCAAwC;;IAExC,2BAA2B;;IAE3B,iCAAiC;;IAEjC,2CAA2C;;IAE3C,oDAAoD;;IAEpD,4DAA4D;;IAE5D,sDAAsD;;IAEtD,0DAA0D;;IAE1D,6CAA6C;;CAErC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,GAAG;IACd,mCAAmC;;IAEnC,yCAAyC;;IAEzC,4BAA4B;;IAE5B,6BAA6B;;IAE7B,uCAAuC;;IAEvC,sCAAsC;;IAEtC,mDAAmD;;IAEnD,mDAAmD;;IAEnD,gEAAgE;;IAEhE,6CAA6C;;IAE7C,2DAA2D;;IAE3D,wDAAwD;;CAEhD,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;;;;CAIP,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Ignore rule matching and inline annotation parsing
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Determine if a finding should be ignored based on:
|
|
5
|
+
* - Global ignore rules (.vuln-ignore.yml)
|
|
6
|
+
* - Inline annotations (@vuln-ignore)
|
|
7
|
+
*
|
|
8
|
+
* Cross-platform: Paths are normalized to forward slashes for consistent matching
|
|
9
|
+
*/
|
|
10
|
+
import type { Finding, IgnoreRule, InlineAnnotation } from '../types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a finding matches an ignore rule
|
|
13
|
+
*/
|
|
14
|
+
export declare function matchIgnoreRule(rule: IgnoreRule, finding: Finding): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Parse inline annotations from a file
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseInlineAnnotations(filePath: string): Promise<InlineAnnotation[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Check if a finding should be ignored based on inline annotation
|
|
21
|
+
*/
|
|
22
|
+
export declare function shouldIgnoreByAnnotation(finding: Finding, annotations: InlineAnnotation[]): boolean;
|
|
23
|
+
//# sourceMappingURL=matcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matcher.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/ignore/matcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAU,MAAM,aAAa,CAAC;AAwBjF;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAoB3E;AAoDD;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAoD1F;AA6BD;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,gBAAgB,EAAE,GAC9B,OAAO,CAKT"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: runa Vulnerability Checker
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Comprehensive security scanning for TypeScript/PostgreSQL projects
|
|
5
|
+
* Philosophy: AST-based analysis + pattern matching + false positive management
|
|
6
|
+
*/
|
|
7
|
+
import type { Category, ScanResult, Severity } from './types.js';
|
|
8
|
+
export * from './types.js';
|
|
9
|
+
export interface VulnCheckerOptions {
|
|
10
|
+
rootDir: string;
|
|
11
|
+
configFile?: string;
|
|
12
|
+
ignoreFile?: string;
|
|
13
|
+
categories?: Category[];
|
|
14
|
+
minSeverity?: Severity;
|
|
15
|
+
format?: 'json' | 'sarif' | 'markdown' | 'console';
|
|
16
|
+
showIgnored?: boolean;
|
|
17
|
+
include?: string[];
|
|
18
|
+
exclude?: string[];
|
|
19
|
+
}
|
|
20
|
+
export declare class VulnChecker {
|
|
21
|
+
private options;
|
|
22
|
+
private config;
|
|
23
|
+
private ignores;
|
|
24
|
+
private analyzers;
|
|
25
|
+
private reporters;
|
|
26
|
+
private errors;
|
|
27
|
+
constructor(options: VulnCheckerOptions);
|
|
28
|
+
init(): Promise<void>;
|
|
29
|
+
scan(): Promise<ScanResult>;
|
|
30
|
+
private getFiles;
|
|
31
|
+
private runAnalyzers;
|
|
32
|
+
private shouldRunAnalyzer;
|
|
33
|
+
private classifyFindings;
|
|
34
|
+
private meetsMinSeverity;
|
|
35
|
+
private isFindingIgnored;
|
|
36
|
+
format(result: ScanResult): string;
|
|
37
|
+
run(): Promise<string>;
|
|
38
|
+
getExitCode(result: ScanResult, failOn?: Severity): number;
|
|
39
|
+
/** Get errors that occurred during scanning */
|
|
40
|
+
getErrors(): Array<{
|
|
41
|
+
analyzer: string;
|
|
42
|
+
error: unknown;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/vuln-checker/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,KAAK,EAGV,QAAQ,EAKR,UAAU,EACV,QAAQ,EAET,MAAM,YAAY,CAAC;AAEpB,cAAc,YAAY,CAAC;AAE3B,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AA6ED,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,SAAS,CAAwB;IACzC,OAAO,CAAC,MAAM,CAAmD;gBAErD,OAAO,EAAE,kBAAkB;IA6CjC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IASrB,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC;YA6BnB,QAAQ;YAQR,YAAY;IA2B1B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,gBAAgB;IAQxB,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAQ5B,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;IAK5B,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,GAAE,QAAiB,GAAG,MAAM;IAWlE,+CAA+C;IAC/C,SAAS,IAAI,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CAGzD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Console reporter for terminal output
|
|
3
|
+
*/
|
|
4
|
+
import type { Reporter, ScanResult } from '../types.js';
|
|
5
|
+
export declare class ConsoleReporter implements Reporter {
|
|
6
|
+
name: string;
|
|
7
|
+
format(result: ScanResult): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=console-reporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console-reporter.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/reporters/console-reporter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAW,QAAQ,EAAE,UAAU,EAAY,MAAM,aAAa,CAAC;AA0F3E,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,IAAI,SAAa;IAEjB,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;CAuEnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON reporter for vulnerability scan results
|
|
3
|
+
*/
|
|
4
|
+
import type { Reporter, ScanResult } from '../types.js';
|
|
5
|
+
export declare class JsonReporter implements Reporter {
|
|
6
|
+
name: string;
|
|
7
|
+
format(result: ScanResult): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=json-reporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-reporter.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/reporters/json-reporter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExD,qBAAa,YAAa,YAAW,QAAQ;IAC3C,IAAI,SAAU;IAEd,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;CAGnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Markdown reporter for human-readable vulnerability reports
|
|
3
|
+
*/
|
|
4
|
+
import type { Reporter, ScanResult } from '../types.js';
|
|
5
|
+
export declare class MarkdownReporter implements Reporter {
|
|
6
|
+
name: string;
|
|
7
|
+
format(result: ScanResult): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=markdown-reporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-reporter.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/reporters/markdown-reporter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAW,QAAQ,EAAE,UAAU,EAAY,MAAM,aAAa,CAAC;AAgH3E,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,IAAI,SAAc;IAElB,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;CAqDnC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SARIF reporter for GitHub Code Scanning integration
|
|
3
|
+
*
|
|
4
|
+
* SARIF = Static Analysis Results Interchange Format
|
|
5
|
+
* https://sarifweb.azurewebsites.net/
|
|
6
|
+
*/
|
|
7
|
+
import type { Reporter, ScanResult } from '../types.js';
|
|
8
|
+
export declare class SarifReporter implements Reporter {
|
|
9
|
+
name: string;
|
|
10
|
+
format(result: ScanResult): string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=sarif-reporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sarif-reporter.d.ts","sourceRoot":"","sources":["../../../../src/internal/vuln-checker/reporters/sarif-reporter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAW,QAAQ,EAAE,UAAU,EAAY,MAAM,aAAa,CAAC;AA2H3E,qBAAa,aAAc,YAAW,QAAQ;IAC5C,IAAI,SAAW;IAEf,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;CAoCnC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Core types for vulnerability checker
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Define shared types for analyzers, rules, and reporters
|
|
5
|
+
* Design: Minimal, extensible, SARIF-compatible
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Severity levels (SARIF-compatible)
|
|
9
|
+
*/
|
|
10
|
+
export type Severity = 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
11
|
+
/**
|
|
12
|
+
* Finding categories
|
|
13
|
+
*/
|
|
14
|
+
export type Category = 'injection' | 'auth' | 'crypto' | 'secret' | 'config' | 'rls' | 'dependency' | 'design';
|
|
15
|
+
/**
|
|
16
|
+
* Rule ID format: <category>/<subcategory>[-<variant>]
|
|
17
|
+
*/
|
|
18
|
+
export type RuleId = `${Category}/${string}`;
|
|
19
|
+
/**
|
|
20
|
+
* Location in source code
|
|
21
|
+
*/
|
|
22
|
+
export interface Location {
|
|
23
|
+
file: string;
|
|
24
|
+
line: number;
|
|
25
|
+
column: number;
|
|
26
|
+
endLine?: number;
|
|
27
|
+
endColumn?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Code snippet for context
|
|
31
|
+
*/
|
|
32
|
+
export interface CodeSnippet {
|
|
33
|
+
text: string;
|
|
34
|
+
highlightStart?: number;
|
|
35
|
+
highlightEnd?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A single vulnerability finding
|
|
39
|
+
*/
|
|
40
|
+
export interface Finding {
|
|
41
|
+
ruleId: RuleId;
|
|
42
|
+
severity: Severity;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
location: Location;
|
|
46
|
+
snippet?: CodeSnippet;
|
|
47
|
+
fix?: {
|
|
48
|
+
description: string;
|
|
49
|
+
replacement?: string;
|
|
50
|
+
};
|
|
51
|
+
metadata?: Record<string, unknown>;
|
|
52
|
+
cweId?: string;
|
|
53
|
+
owaspCategory?: string;
|
|
54
|
+
confidence?: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Rule definition
|
|
58
|
+
*/
|
|
59
|
+
export interface Rule {
|
|
60
|
+
id: RuleId;
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
severity: Severity;
|
|
64
|
+
category: Category;
|
|
65
|
+
cweId?: string;
|
|
66
|
+
owaspCategory?: string;
|
|
67
|
+
include?: string[];
|
|
68
|
+
exclude?: string[];
|
|
69
|
+
enabled?: boolean;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Ignore configuration
|
|
73
|
+
*/
|
|
74
|
+
export interface IgnoreRule {
|
|
75
|
+
rule: RuleId | '*';
|
|
76
|
+
path?: string;
|
|
77
|
+
reason: string;
|
|
78
|
+
expires?: string;
|
|
79
|
+
issue?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Configuration file format
|
|
83
|
+
*/
|
|
84
|
+
export interface VulnCheckerConfig {
|
|
85
|
+
version: number;
|
|
86
|
+
categories?: Category[];
|
|
87
|
+
minSeverity?: Severity;
|
|
88
|
+
ignores?: IgnoreRule[];
|
|
89
|
+
patternsFile?: string;
|
|
90
|
+
format?: 'json' | 'sarif' | 'markdown' | 'console';
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Scan result
|
|
94
|
+
*/
|
|
95
|
+
export interface ScanResult {
|
|
96
|
+
timestamp: string;
|
|
97
|
+
summary: {
|
|
98
|
+
total: number;
|
|
99
|
+
critical: number;
|
|
100
|
+
high: number;
|
|
101
|
+
medium: number;
|
|
102
|
+
low: number;
|
|
103
|
+
info: number;
|
|
104
|
+
ignored: number;
|
|
105
|
+
};
|
|
106
|
+
findings: Finding[];
|
|
107
|
+
ignoredFindings?: Finding[];
|
|
108
|
+
metadata: {
|
|
109
|
+
duration: number;
|
|
110
|
+
filesScanned: number;
|
|
111
|
+
rulesEvaluated: number;
|
|
112
|
+
rootDir: string;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Analyzer interface
|
|
117
|
+
*/
|
|
118
|
+
export interface Analyzer {
|
|
119
|
+
name: string;
|
|
120
|
+
categories: Category[];
|
|
121
|
+
analyze(options: AnalyzerOptions): Promise<Finding[]>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Analyzer options
|
|
125
|
+
*/
|
|
126
|
+
export interface AnalyzerOptions {
|
|
127
|
+
rootDir: string;
|
|
128
|
+
include?: string[];
|
|
129
|
+
exclude?: string[];
|
|
130
|
+
rules?: Rule[];
|
|
131
|
+
ignores?: IgnoreRule[];
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Reporter interface
|
|
135
|
+
*/
|
|
136
|
+
export interface Reporter {
|
|
137
|
+
name: string;
|
|
138
|
+
format(result: ScanResult): string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Inline annotation format
|
|
142
|
+
*/
|
|
143
|
+
export interface InlineAnnotation {
|
|
144
|
+
ruleId: RuleId | '*';
|
|
145
|
+
reason?: string;
|
|
146
|
+
scope: 'line' | 'next-line' | 'file';
|
|
147
|
+
line: number;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/internal/vuln-checker/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Desktop notification system
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Send desktop notifications for important events
|
|
5
|
+
* Features: Cross-platform support, notification types, non-blocking
|
|
6
|
+
*/
|
|
7
|
+
export interface NotificationOptions {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
11
|
+
sound?: boolean;
|
|
12
|
+
timeout?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Send desktop notification
|
|
16
|
+
*/
|
|
17
|
+
export declare function notifyDesktop(options: NotificationOptions): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Send success notification
|
|
20
|
+
*/
|
|
21
|
+
export declare function notifySuccess(title: string, message: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Send error notification
|
|
24
|
+
*/
|
|
25
|
+
export declare function notifyError(title: string, message: string): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Send warning notification
|
|
28
|
+
*/
|
|
29
|
+
export declare function notifyWarning(title: string, message: string): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if notifications are supported
|
|
32
|
+
*/
|
|
33
|
+
export declare function isNotificationSupported(): boolean;
|
|
34
|
+
//# sourceMappingURL=desktop-notifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-notifier.d.ts","sourceRoot":"","sources":["../../src/notifiers/desktop-notifier.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8B/E;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjF;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/E;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD"}
|