@inluxc/propmaster 0.0.0-stage → 1.0.1
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/LICENSE +21 -0
- package/README.md +696 -2
- package/dist/src/annotations/index.d.ts +11 -0
- package/dist/src/annotations/index.d.ts.map +1 -0
- package/dist/src/annotations/index.js +11 -0
- package/dist/src/annotations/index.js.map +1 -0
- package/dist/src/annotations/recorder.d.ts +57 -0
- package/dist/src/annotations/recorder.d.ts.map +1 -0
- package/dist/src/annotations/recorder.js +100 -0
- package/dist/src/annotations/recorder.js.map +1 -0
- package/dist/src/annotations/truncation.d.ts +34 -0
- package/dist/src/annotations/truncation.d.ts.map +1 -0
- package/dist/src/annotations/truncation.js +54 -0
- package/dist/src/annotations/truncation.js.map +1 -0
- package/dist/src/auth/apply.d.ts +15 -0
- package/dist/src/auth/apply.d.ts.map +1 -0
- package/dist/src/auth/apply.js +21 -0
- package/dist/src/auth/apply.js.map +1 -0
- package/dist/src/auth/setup.d.ts +56 -0
- package/dist/src/auth/setup.d.ts.map +1 -0
- package/dist/src/auth/setup.js +79 -0
- package/dist/src/auth/setup.js.map +1 -0
- package/dist/src/auth/state-file.d.ts +8 -0
- package/dist/src/auth/state-file.d.ts.map +1 -0
- package/dist/src/auth/state-file.js +13 -0
- package/dist/src/auth/state-file.js.map +1 -0
- package/dist/src/auth/token-manager.d.ts +61 -0
- package/dist/src/auth/token-manager.d.ts.map +1 -0
- package/dist/src/auth/token-manager.js +200 -0
- package/dist/src/auth/token-manager.js.map +1 -0
- package/dist/src/cli/banner.d.ts +23 -0
- package/dist/src/cli/banner.d.ts.map +1 -0
- package/dist/src/cli/banner.js +67 -0
- package/dist/src/cli/banner.js.map +1 -0
- package/dist/src/cli/check-tests.d.ts +143 -0
- package/dist/src/cli/check-tests.d.ts.map +1 -0
- package/dist/src/cli/check-tests.js +541 -0
- package/dist/src/cli/check-tests.js.map +1 -0
- package/dist/src/cli/coverage.d.ts +14 -0
- package/dist/src/cli/coverage.d.ts.map +1 -0
- package/dist/src/cli/coverage.js +97 -0
- package/dist/src/cli/coverage.js.map +1 -0
- package/dist/src/cli/doctor.d.ts +82 -0
- package/dist/src/cli/doctor.d.ts.map +1 -0
- package/dist/src/cli/doctor.js +656 -0
- package/dist/src/cli/doctor.js.map +1 -0
- package/dist/src/cli/env.d.ts +76 -0
- package/dist/src/cli/env.d.ts.map +1 -0
- package/dist/src/cli/env.js +344 -0
- package/dist/src/cli/env.js.map +1 -0
- package/dist/src/cli/failures.d.ts +29 -0
- package/dist/src/cli/failures.d.ts.map +1 -0
- package/dist/src/cli/failures.js +114 -0
- package/dist/src/cli/failures.js.map +1 -0
- package/dist/src/cli/fixture-catalog.d.ts +83 -0
- package/dist/src/cli/fixture-catalog.d.ts.map +1 -0
- package/dist/src/cli/fixture-catalog.js +773 -0
- package/dist/src/cli/fixture-catalog.js.map +1 -0
- package/dist/src/cli/fixture.d.ts +149 -0
- package/dist/src/cli/fixture.d.ts.map +1 -0
- package/dist/src/cli/fixture.js +742 -0
- package/dist/src/cli/fixture.js.map +1 -0
- package/dist/src/cli/flaky.d.ts +25 -0
- package/dist/src/cli/flaky.d.ts.map +1 -0
- package/dist/src/cli/flaky.js +96 -0
- package/dist/src/cli/flaky.js.map +1 -0
- package/dist/src/cli/generate.d.ts +37 -0
- package/dist/src/cli/generate.d.ts.map +1 -0
- package/dist/src/cli/generate.js +230 -0
- package/dist/src/cli/generate.js.map +1 -0
- package/dist/src/cli/init.d.ts +36 -0
- package/dist/src/cli/init.d.ts.map +1 -0
- package/dist/src/cli/init.js +1039 -0
- package/dist/src/cli/init.js.map +1 -0
- package/dist/src/cli/json-edit.d.ts +58 -0
- package/dist/src/cli/json-edit.d.ts.map +1 -0
- package/dist/src/cli/json-edit.js +250 -0
- package/dist/src/cli/json-edit.js.map +1 -0
- package/dist/src/cli/layout.d.ts +31 -0
- package/dist/src/cli/layout.d.ts.map +1 -0
- package/dist/src/cli/layout.js +175 -0
- package/dist/src/cli/layout.js.map +1 -0
- package/dist/src/cli/mcp-setup.d.ts +141 -0
- package/dist/src/cli/mcp-setup.d.ts.map +1 -0
- package/dist/src/cli/mcp-setup.js +548 -0
- package/dist/src/cli/mcp-setup.js.map +1 -0
- package/dist/src/cli/organize.d.ts +136 -0
- package/dist/src/cli/organize.d.ts.map +1 -0
- package/dist/src/cli/organize.js +467 -0
- package/dist/src/cli/organize.js.map +1 -0
- package/dist/src/cli/prompts.d.ts +102 -0
- package/dist/src/cli/prompts.d.ts.map +1 -0
- package/dist/src/cli/prompts.js +346 -0
- package/dist/src/cli/prompts.js.map +1 -0
- package/dist/src/cli/standards.d.ts +160 -0
- package/dist/src/cli/standards.d.ts.map +1 -0
- package/dist/src/cli/standards.js +389 -0
- package/dist/src/cli/standards.js.map +1 -0
- package/dist/src/cli/style.d.ts +28 -0
- package/dist/src/cli/style.d.ts.map +1 -0
- package/dist/src/cli/style.js +57 -0
- package/dist/src/cli/style.js.map +1 -0
- package/dist/src/config/env-loader.d.ts +33 -0
- package/dist/src/config/env-loader.d.ts.map +1 -0
- package/dist/src/config/env-loader.js +72 -0
- package/dist/src/config/env-loader.js.map +1 -0
- package/dist/src/config/index.d.ts +10 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +10 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/loader.d.ts +66 -0
- package/dist/src/config/loader.d.ts.map +1 -0
- package/dist/src/config/loader.js +810 -0
- package/dist/src/config/loader.js.map +1 -0
- package/dist/src/config/schema.d.ts +596 -0
- package/dist/src/config/schema.d.ts.map +1 -0
- package/dist/src/config/schema.js +9 -0
- package/dist/src/config/schema.js.map +1 -0
- package/dist/src/containers/container-manager.d.ts +157 -0
- package/dist/src/containers/container-manager.d.ts.map +1 -0
- package/dist/src/containers/container-manager.js +627 -0
- package/dist/src/containers/container-manager.js.map +1 -0
- package/dist/src/coverage/code-coverage.d.ts +89 -0
- package/dist/src/coverage/code-coverage.d.ts.map +1 -0
- package/dist/src/coverage/code-coverage.js +395 -0
- package/dist/src/coverage/code-coverage.js.map +1 -0
- package/dist/src/coverage/inventory.d.ts +80 -0
- package/dist/src/coverage/inventory.d.ts.map +1 -0
- package/dist/src/coverage/inventory.js +417 -0
- package/dist/src/coverage/inventory.js.map +1 -0
- package/dist/src/coverage/languages.d.ts +34 -0
- package/dist/src/coverage/languages.d.ts.map +1 -0
- package/dist/src/coverage/languages.js +156 -0
- package/dist/src/coverage/languages.js.map +1 -0
- package/dist/src/coverage/report.d.ts +128 -0
- package/dist/src/coverage/report.d.ts.map +1 -0
- package/dist/src/coverage/report.js +472 -0
- package/dist/src/coverage/report.js.map +1 -0
- package/dist/src/errors.d.ts +164 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +267 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/fixtures/amqp.fixture.d.ts +163 -0
- package/dist/src/fixtures/amqp.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/amqp.fixture.js +494 -0
- package/dist/src/fixtures/amqp.fixture.js.map +1 -0
- package/dist/src/fixtures/appium.fixture.d.ts +112 -0
- package/dist/src/fixtures/appium.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/appium.fixture.js +309 -0
- package/dist/src/fixtures/appium.fixture.js.map +1 -0
- package/dist/src/fixtures/aws.d.ts +44 -0
- package/dist/src/fixtures/aws.d.ts.map +1 -0
- package/dist/src/fixtures/aws.js +93 -0
- package/dist/src/fixtures/aws.js.map +1 -0
- package/dist/src/fixtures/cassandra.fixture.d.ts +179 -0
- package/dist/src/fixtures/cassandra.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/cassandra.fixture.js +489 -0
- package/dist/src/fixtures/cassandra.fixture.js.map +1 -0
- package/dist/src/fixtures/clickhouse.fixture.d.ts +171 -0
- package/dist/src/fixtures/clickhouse.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/clickhouse.fixture.js +514 -0
- package/dist/src/fixtures/clickhouse.fixture.js.map +1 -0
- package/dist/src/fixtures/database.fixture.d.ts +63 -0
- package/dist/src/fixtures/database.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/database.fixture.js +407 -0
- package/dist/src/fixtures/database.fixture.js.map +1 -0
- package/dist/src/fixtures/dynamodb.fixture.d.ts +243 -0
- package/dist/src/fixtures/dynamodb.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/dynamodb.fixture.js +580 -0
- package/dist/src/fixtures/dynamodb.fixture.js.map +1 -0
- package/dist/src/fixtures/graphql.fixture.d.ts +107 -0
- package/dist/src/fixtures/graphql.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/graphql.fixture.js +158 -0
- package/dist/src/fixtures/graphql.fixture.js.map +1 -0
- package/dist/src/fixtures/grpc.fixture.d.ts +167 -0
- package/dist/src/fixtures/grpc.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/grpc.fixture.js +635 -0
- package/dist/src/fixtures/grpc.fixture.js.map +1 -0
- package/dist/src/fixtures/inbox.fixture.d.ts +136 -0
- package/dist/src/fixtures/inbox.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/inbox.fixture.js +239 -0
- package/dist/src/fixtures/inbox.fixture.js.map +1 -0
- package/dist/src/fixtures/index.d.ts +174 -0
- package/dist/src/fixtures/index.d.ts.map +1 -0
- package/dist/src/fixtures/index.js +379 -0
- package/dist/src/fixtures/index.js.map +1 -0
- package/dist/src/fixtures/kafka-driver.d.ts +108 -0
- package/dist/src/fixtures/kafka-driver.d.ts.map +1 -0
- package/dist/src/fixtures/kafka-driver.js +113 -0
- package/dist/src/fixtures/kafka-driver.js.map +1 -0
- package/dist/src/fixtures/kafka.fixture.d.ts +75 -0
- package/dist/src/fixtures/kafka.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/kafka.fixture.js +188 -0
- package/dist/src/fixtures/kafka.fixture.js.map +1 -0
- package/dist/src/fixtures/mock-server.fixture.d.ts +142 -0
- package/dist/src/fixtures/mock-server.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/mock-server.fixture.js +271 -0
- package/dist/src/fixtures/mock-server.fixture.js.map +1 -0
- package/dist/src/fixtures/mongodb.fixture.d.ts +121 -0
- package/dist/src/fixtures/mongodb.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/mongodb.fixture.js +258 -0
- package/dist/src/fixtures/mongodb.fixture.js.map +1 -0
- package/dist/src/fixtures/neo4j.fixture.d.ts +72 -0
- package/dist/src/fixtures/neo4j.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/neo4j.fixture.js +202 -0
- package/dist/src/fixtures/neo4j.fixture.js.map +1 -0
- package/dist/src/fixtures/openapi.fixture.d.ts +101 -0
- package/dist/src/fixtures/openapi.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/openapi.fixture.js +266 -0
- package/dist/src/fixtures/openapi.fixture.js.map +1 -0
- package/dist/src/fixtures/optional-package.d.ts +54 -0
- package/dist/src/fixtures/optional-package.d.ts.map +1 -0
- package/dist/src/fixtures/optional-package.js +79 -0
- package/dist/src/fixtures/optional-package.js.map +1 -0
- package/dist/src/fixtures/otp.fixture.d.ts +60 -0
- package/dist/src/fixtures/otp.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/otp.fixture.js +101 -0
- package/dist/src/fixtures/otp.fixture.js.map +1 -0
- package/dist/src/fixtures/realtime.fixture.d.ts +205 -0
- package/dist/src/fixtures/realtime.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/realtime.fixture.js +606 -0
- package/dist/src/fixtures/realtime.fixture.js.map +1 -0
- package/dist/src/fixtures/redis.fixture.d.ts +55 -0
- package/dist/src/fixtures/redis.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/redis.fixture.js +209 -0
- package/dist/src/fixtures/redis.fixture.js.map +1 -0
- package/dist/src/fixtures/s3.fixture.d.ts +126 -0
- package/dist/src/fixtures/s3.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/s3.fixture.js +296 -0
- package/dist/src/fixtures/s3.fixture.js.map +1 -0
- package/dist/src/fixtures/search.fixture.d.ts +178 -0
- package/dist/src/fixtures/search.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/search.fixture.js +472 -0
- package/dist/src/fixtures/search.fixture.js.map +1 -0
- package/dist/src/fixtures/sqs.fixture.d.ts +172 -0
- package/dist/src/fixtures/sqs.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/sqs.fixture.js +428 -0
- package/dist/src/fixtures/sqs.fixture.js.map +1 -0
- package/dist/src/index.d.ts +43 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +48 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/guards.d.ts +21 -0
- package/dist/src/mcp/guards.d.ts.map +1 -0
- package/dist/src/mcp/guards.js +118 -0
- package/dist/src/mcp/guards.js.map +1 -0
- package/dist/src/mcp/project-tools.d.ts +14 -0
- package/dist/src/mcp/project-tools.d.ts.map +1 -0
- package/dist/src/mcp/project-tools.js +252 -0
- package/dist/src/mcp/project-tools.js.map +1 -0
- package/dist/src/mcp/protocol.d.ts +116 -0
- package/dist/src/mcp/protocol.d.ts.map +1 -0
- package/dist/src/mcp/protocol.js +199 -0
- package/dist/src/mcp/protocol.js.map +1 -0
- package/dist/src/mcp/server.d.ts +43 -0
- package/dist/src/mcp/server.d.ts.map +1 -0
- package/dist/src/mcp/server.js +244 -0
- package/dist/src/mcp/server.js.map +1 -0
- package/dist/src/mcp/test-tools.d.ts +65 -0
- package/dist/src/mcp/test-tools.d.ts.map +1 -0
- package/dist/src/mcp/test-tools.js +380 -0
- package/dist/src/mcp/test-tools.js.map +1 -0
- package/dist/src/mcp/tools.d.ts +49 -0
- package/dist/src/mcp/tools.d.ts.map +1 -0
- package/dist/src/mcp/tools.js +726 -0
- package/dist/src/mcp/tools.js.map +1 -0
- package/dist/src/network-error.d.ts +11 -0
- package/dist/src/network-error.d.ts.map +1 -0
- package/dist/src/network-error.js +34 -0
- package/dist/src/network-error.js.map +1 -0
- package/dist/src/openapi/contract.d.ts +98 -0
- package/dist/src/openapi/contract.d.ts.map +1 -0
- package/dist/src/openapi/contract.js +407 -0
- package/dist/src/openapi/contract.js.map +1 -0
- package/dist/src/openapi/generate.d.ts +89 -0
- package/dist/src/openapi/generate.d.ts.map +1 -0
- package/dist/src/openapi/generate.js +607 -0
- package/dist/src/openapi/generate.js.map +1 -0
- package/dist/src/openapi/load.d.ts +8 -0
- package/dist/src/openapi/load.d.ts.map +1 -0
- package/dist/src/openapi/load.js +26 -0
- package/dist/src/openapi/load.js.map +1 -0
- package/dist/src/package-manager.d.ts +58 -0
- package/dist/src/package-manager.d.ts.map +1 -0
- package/dist/src/package-manager.js +137 -0
- package/dist/src/package-manager.js.map +1 -0
- package/dist/src/reporter/history.d.ts +85 -0
- package/dist/src/reporter/history.d.ts.map +1 -0
- package/dist/src/reporter/history.js +147 -0
- package/dist/src/reporter/history.js.map +1 -0
- package/dist/src/reporter/index.d.ts +59 -0
- package/dist/src/reporter/index.d.ts.map +1 -0
- package/dist/src/reporter/index.js +201 -0
- package/dist/src/reporter/index.js.map +1 -0
- package/dist/src/reporter/last-run.d.ts +88 -0
- package/dist/src/reporter/last-run.d.ts.map +1 -0
- package/dist/src/reporter/last-run.js +133 -0
- package/dist/src/reporter/last-run.js.map +1 -0
- package/dist/src/reporter/quarantine.d.ts +62 -0
- package/dist/src/reporter/quarantine.d.ts.map +1 -0
- package/dist/src/reporter/quarantine.js +148 -0
- package/dist/src/reporter/quarantine.js.map +1 -0
- package/dist/src/secrets/index.d.ts +4 -0
- package/dist/src/secrets/index.d.ts.map +1 -0
- package/dist/src/secrets/index.js +3 -0
- package/dist/src/secrets/index.js.map +1 -0
- package/dist/src/secrets/provider.interface.d.ts +30 -0
- package/dist/src/secrets/provider.interface.d.ts.map +1 -0
- package/dist/src/secrets/provider.interface.js +2 -0
- package/dist/src/secrets/provider.interface.js.map +1 -0
- package/dist/src/secrets/providers/aws.provider.d.ts +33 -0
- package/dist/src/secrets/providers/aws.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/aws.provider.js +88 -0
- package/dist/src/secrets/providers/aws.provider.js.map +1 -0
- package/dist/src/secrets/providers/azure.provider.d.ts +26 -0
- package/dist/src/secrets/providers/azure.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/azure.provider.js +71 -0
- package/dist/src/secrets/providers/azure.provider.js.map +1 -0
- package/dist/src/secrets/providers/env-file.provider.d.ts +29 -0
- package/dist/src/secrets/providers/env-file.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/env-file.provider.js +56 -0
- package/dist/src/secrets/providers/env-file.provider.js.map +1 -0
- package/dist/src/secrets/providers/gitlab.provider.d.ts +26 -0
- package/dist/src/secrets/providers/gitlab.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/gitlab.provider.js +67 -0
- package/dist/src/secrets/providers/gitlab.provider.js.map +1 -0
- package/dist/src/secrets/providers/index.d.ts +52 -0
- package/dist/src/secrets/providers/index.d.ts.map +1 -0
- package/dist/src/secrets/providers/index.js +81 -0
- package/dist/src/secrets/providers/index.js.map +1 -0
- package/dist/src/secrets/providers/openbao.provider.d.ts +28 -0
- package/dist/src/secrets/providers/openbao.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/openbao.provider.js +29 -0
- package/dist/src/secrets/providers/openbao.provider.js.map +1 -0
- package/dist/src/secrets/providers/vault-compatible.d.ts +140 -0
- package/dist/src/secrets/providers/vault-compatible.d.ts.map +1 -0
- package/dist/src/secrets/providers/vault-compatible.js +405 -0
- package/dist/src/secrets/providers/vault-compatible.js.map +1 -0
- package/dist/src/secrets/providers/vault.provider.d.ts +27 -0
- package/dist/src/secrets/providers/vault.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/vault.provider.js +23 -0
- package/dist/src/secrets/providers/vault.provider.js.map +1 -0
- package/dist/src/secrets/secrets-manager.d.ts +67 -0
- package/dist/src/secrets/secrets-manager.d.ts.map +1 -0
- package/dist/src/secrets/secrets-manager.js +255 -0
- package/dist/src/secrets/secrets-manager.js.map +1 -0
- package/dist/src/steps/amqp.steps.d.ts +37 -0
- package/dist/src/steps/amqp.steps.d.ts.map +1 -0
- package/dist/src/steps/amqp.steps.js +86 -0
- package/dist/src/steps/amqp.steps.js.map +1 -0
- package/dist/src/steps/appium.steps.d.ts +53 -0
- package/dist/src/steps/appium.steps.d.ts.map +1 -0
- package/dist/src/steps/appium.steps.js +109 -0
- package/dist/src/steps/appium.steps.js.map +1 -0
- package/dist/src/steps/aws.steps.d.ts +47 -0
- package/dist/src/steps/aws.steps.d.ts.map +1 -0
- package/dist/src/steps/aws.steps.js +116 -0
- package/dist/src/steps/aws.steps.js.map +1 -0
- package/dist/src/steps/browser.steps.d.ts +54 -0
- package/dist/src/steps/browser.steps.d.ts.map +1 -0
- package/dist/src/steps/browser.steps.js +102 -0
- package/dist/src/steps/browser.steps.js.map +1 -0
- package/dist/src/steps/cassandra.steps.d.ts +32 -0
- package/dist/src/steps/cassandra.steps.d.ts.map +1 -0
- package/dist/src/steps/cassandra.steps.js +81 -0
- package/dist/src/steps/cassandra.steps.js.map +1 -0
- package/dist/src/steps/clickhouse.steps.d.ts +30 -0
- package/dist/src/steps/clickhouse.steps.d.ts.map +1 -0
- package/dist/src/steps/clickhouse.steps.js +73 -0
- package/dist/src/steps/clickhouse.steps.js.map +1 -0
- package/dist/src/steps/database.steps.d.ts +43 -0
- package/dist/src/steps/database.steps.d.ts.map +1 -0
- package/dist/src/steps/database.steps.js +79 -0
- package/dist/src/steps/database.steps.js.map +1 -0
- package/dist/src/steps/dynamodb.steps.d.ts +32 -0
- package/dist/src/steps/dynamodb.steps.d.ts.map +1 -0
- package/dist/src/steps/dynamodb.steps.js +89 -0
- package/dist/src/steps/dynamodb.steps.js.map +1 -0
- package/dist/src/steps/graphql.steps.d.ts +60 -0
- package/dist/src/steps/graphql.steps.d.ts.map +1 -0
- package/dist/src/steps/graphql.steps.js +76 -0
- package/dist/src/steps/graphql.steps.js.map +1 -0
- package/dist/src/steps/grpc.steps.d.ts +29 -0
- package/dist/src/steps/grpc.steps.d.ts.map +1 -0
- package/dist/src/steps/grpc.steps.js +68 -0
- package/dist/src/steps/grpc.steps.js.map +1 -0
- package/dist/src/steps/inbox.steps.d.ts +30 -0
- package/dist/src/steps/inbox.steps.d.ts.map +1 -0
- package/dist/src/steps/inbox.steps.js +72 -0
- package/dist/src/steps/inbox.steps.js.map +1 -0
- package/dist/src/steps/index.d.ts +43 -0
- package/dist/src/steps/index.d.ts.map +1 -0
- package/dist/src/steps/index.js +26 -0
- package/dist/src/steps/index.js.map +1 -0
- package/dist/src/steps/kafka.steps.d.ts +56 -0
- package/dist/src/steps/kafka.steps.d.ts.map +1 -0
- package/dist/src/steps/kafka.steps.js +61 -0
- package/dist/src/steps/kafka.steps.js.map +1 -0
- package/dist/src/steps/mock-server.steps.d.ts +21 -0
- package/dist/src/steps/mock-server.steps.d.ts.map +1 -0
- package/dist/src/steps/mock-server.steps.js +45 -0
- package/dist/src/steps/mock-server.steps.js.map +1 -0
- package/dist/src/steps/mongodb.steps.d.ts +107 -0
- package/dist/src/steps/mongodb.steps.d.ts.map +1 -0
- package/dist/src/steps/mongodb.steps.js +117 -0
- package/dist/src/steps/mongodb.steps.js.map +1 -0
- package/dist/src/steps/openapi.steps.d.ts +49 -0
- package/dist/src/steps/openapi.steps.d.ts.map +1 -0
- package/dist/src/steps/openapi.steps.js +113 -0
- package/dist/src/steps/openapi.steps.js.map +1 -0
- package/dist/src/steps/otp.steps.d.ts +43 -0
- package/dist/src/steps/otp.steps.d.ts.map +1 -0
- package/dist/src/steps/otp.steps.js +83 -0
- package/dist/src/steps/otp.steps.js.map +1 -0
- package/dist/src/steps/realtime.steps.d.ts +40 -0
- package/dist/src/steps/realtime.steps.d.ts.map +1 -0
- package/dist/src/steps/realtime.steps.js +116 -0
- package/dist/src/steps/realtime.steps.js.map +1 -0
- package/dist/src/steps/redis.steps.d.ts +54 -0
- package/dist/src/steps/redis.steps.d.ts.map +1 -0
- package/dist/src/steps/redis.steps.js +89 -0
- package/dist/src/steps/redis.steps.js.map +1 -0
- package/dist/src/steps/search.steps.d.ts +23 -0
- package/dist/src/steps/search.steps.d.ts.map +1 -0
- package/dist/src/steps/search.steps.js +54 -0
- package/dist/src/steps/search.steps.js.map +1 -0
- package/dist/src/test-data/factory.d.ts +82 -0
- package/dist/src/test-data/factory.d.ts.map +1 -0
- package/dist/src/test-data/factory.js +116 -0
- package/dist/src/test-data/factory.js.map +1 -0
- package/dist/src/test-data/index.d.ts +4 -0
- package/dist/src/test-data/index.d.ts.map +1 -0
- package/dist/src/test-data/index.js +4 -0
- package/dist/src/test-data/index.js.map +1 -0
- package/dist/src/test-data/registry.d.ts +37 -0
- package/dist/src/test-data/registry.d.ts.map +1 -0
- package/dist/src/test-data/registry.js +51 -0
- package/dist/src/test-data/registry.js.map +1 -0
- package/dist/src/test-data/tracking.d.ts +47 -0
- package/dist/src/test-data/tracking.d.ts.map +1 -0
- package/dist/src/test-data/tracking.js +166 -0
- package/dist/src/test-data/tracking.js.map +1 -0
- package/environments.json +263 -0
- package/package.json +299 -5
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `propmaster organize` — sorts existing Playwright tests into the
|
|
3
|
+
* per-type layout (tests/api, tests/integration, tests/e2e, tests/mobile).
|
|
4
|
+
*
|
|
5
|
+
* Deterministic on purpose: a test's fixtures say what kind of test it is,
|
|
6
|
+
* so the same project always gets the same plan, with no network access and
|
|
7
|
+
* no source code leaving the machine. Files the rules can't place are left
|
|
8
|
+
* where they are and listed with the reason, for a person (or their coding
|
|
9
|
+
* agent) to decide.
|
|
10
|
+
*
|
|
11
|
+
* Dry run by default. `--apply` moves files (`git mv` when tracked, so history
|
|
12
|
+
* follows) and rewrites relative imports in moved files and in files that
|
|
13
|
+
* import them.
|
|
14
|
+
*/
|
|
15
|
+
import { type TestType } from './layout.js';
|
|
16
|
+
export type Classification = {
|
|
17
|
+
type: TestType;
|
|
18
|
+
reason?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
type: null;
|
|
21
|
+
reason: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Decides a test's type from the fixtures it requests (its own plus its hooks'):
|
|
25
|
+
* appium → mobile; page/context/browser → e2e (even with API fixtures, which
|
|
26
|
+
* set up data); a database/broker/cache client → integration; HTTP clients
|
|
27
|
+
* only → api. Unknown custom fixtures make it ambiguous unless a browser or
|
|
28
|
+
* device already decides it (custom fixtures there are usually page objects).
|
|
29
|
+
*/
|
|
30
|
+
export declare function classifyFixtures(fixtures: Iterable<string>): Classification;
|
|
31
|
+
/**
|
|
32
|
+
* Names destructured from a test or hook callback's first parameter:
|
|
33
|
+
* `async ({ page, openApiClient: api }) => ...` → ['page', 'openApiClient'].
|
|
34
|
+
* Returns [] for a callback with no parameters and null when the parameter
|
|
35
|
+
* isn't destructured (`async (fixtures) => ...`), which can't be read statically.
|
|
36
|
+
*/
|
|
37
|
+
export declare function fixturesOf(callback: string): string[] | null;
|
|
38
|
+
export interface TestSummary {
|
|
39
|
+
title: string;
|
|
40
|
+
line: number;
|
|
41
|
+
fixtures: string[];
|
|
42
|
+
type: TestType | null;
|
|
43
|
+
}
|
|
44
|
+
export interface FileAnalysis {
|
|
45
|
+
/** False for files that aren't Playwright tests (Vitest, Jest, node:test, ...). */
|
|
46
|
+
playwright: boolean;
|
|
47
|
+
type: TestType | null;
|
|
48
|
+
reason?: string;
|
|
49
|
+
tests: TestSummary[];
|
|
50
|
+
}
|
|
51
|
+
/** Classifies one test file from its source. Pure, so it is easy to unit test. */
|
|
52
|
+
export declare function analyzeSource(src: string): FileAnalysis;
|
|
53
|
+
/**
|
|
54
|
+
* `tests/specs/users/create.spec.ts` + api → `tests/api/users/create.spec.ts`.
|
|
55
|
+
* Drops one root folder (tests, test, __tests__, playwright) and then one
|
|
56
|
+
* type-like folder (specs, e2e, api, ...), keeping the rest of the path, and
|
|
57
|
+
* turns the old `.browser.ts` / `.mobile.ts` / `.e2e.ts` suffixes into `.spec.ts`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function destinationFor(file: string, type: TestType): string;
|
|
60
|
+
type Form = {
|
|
61
|
+
kind: 'exact';
|
|
62
|
+
} | {
|
|
63
|
+
kind: 'addExt';
|
|
64
|
+
ext: string;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'swapExt';
|
|
67
|
+
written: string;
|
|
68
|
+
actual: string;
|
|
69
|
+
} | {
|
|
70
|
+
kind: 'index';
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
/** Resolves a relative specifier the way TypeScript/bundlers do, against a set of project files. */
|
|
74
|
+
export declare function resolveSpecifier(importer: string, spec: string, files: ReadonlySet<string>): {
|
|
75
|
+
file: string;
|
|
76
|
+
form: Form;
|
|
77
|
+
} | null;
|
|
78
|
+
/**
|
|
79
|
+
* Rewrites the relative imports of `src` (a file moving from `oldPath` to
|
|
80
|
+
* `newPath`, or staying put when they're equal) so they still point at the
|
|
81
|
+
* same files after `moves` (old → new). Returns the new source and how many
|
|
82
|
+
* specifiers changed.
|
|
83
|
+
*/
|
|
84
|
+
export declare function rewriteImports(src: string, oldPath: string, newPath: string, moves: ReadonlyMap<string, string>, files: ReadonlySet<string>): {
|
|
85
|
+
content: string;
|
|
86
|
+
changed: number;
|
|
87
|
+
};
|
|
88
|
+
export interface Move {
|
|
89
|
+
from: string;
|
|
90
|
+
to: string;
|
|
91
|
+
type: TestType;
|
|
92
|
+
tests: number;
|
|
93
|
+
}
|
|
94
|
+
export interface OrganizePlan {
|
|
95
|
+
root: string;
|
|
96
|
+
moves: Move[];
|
|
97
|
+
/** Files already in the right folder. */
|
|
98
|
+
inPlace: {
|
|
99
|
+
file: string;
|
|
100
|
+
type: TestType;
|
|
101
|
+
tests: number;
|
|
102
|
+
}[];
|
|
103
|
+
/** Playwright test files the rules couldn't place; left where they are. */
|
|
104
|
+
ambiguous: {
|
|
105
|
+
file: string;
|
|
106
|
+
reason: string;
|
|
107
|
+
}[];
|
|
108
|
+
/** Files whose destination is taken. */
|
|
109
|
+
conflicts: {
|
|
110
|
+
file: string;
|
|
111
|
+
to: string;
|
|
112
|
+
reason: string;
|
|
113
|
+
}[];
|
|
114
|
+
/** Moved files to check by hand afterwards. */
|
|
115
|
+
warnings: {
|
|
116
|
+
file: string;
|
|
117
|
+
message: string;
|
|
118
|
+
}[];
|
|
119
|
+
/** Every file whose content changes (moved files at their new path, importers in place). */
|
|
120
|
+
edits: {
|
|
121
|
+
file: string;
|
|
122
|
+
imports: number;
|
|
123
|
+
}[];
|
|
124
|
+
}
|
|
125
|
+
/** Builds the plan for `root`. Reads files; changes nothing. */
|
|
126
|
+
export declare function planOrganize(root: string): OrganizePlan;
|
|
127
|
+
/** True when `root` is in a git work tree with uncommitted changes. */
|
|
128
|
+
export declare function hasUncommittedChanges(root: string): boolean;
|
|
129
|
+
/** Moves the files and rewrites imports. Uses `git mv` for tracked files. */
|
|
130
|
+
export declare function applyOrganize(plan: OrganizePlan): void;
|
|
131
|
+
/** Human-readable plan. `applied` switches the wording from "would" to "did". */
|
|
132
|
+
export declare function formatPlan(plan: OrganizePlan, applied?: boolean): string;
|
|
133
|
+
/** `propmaster organize [--apply] [--force] [--json] [--root <dir>]`. Returns the exit code. */
|
|
134
|
+
export declare function runOrganize(argv: string[]): number;
|
|
135
|
+
export {};
|
|
136
|
+
//# sourceMappingURL=organize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organize.d.ts","sourceRoot":"","sources":["../../../src/cli/organize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,EAAuC,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAiCjF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAErG;;;;;;GA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E,MAAM,GAAG,YAAY,CAiDvD;AAYD,uEAAuE;AACvE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG3D;AAED,6EAA6E;AAC7E,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CA+BtD;AAQD,iFAAiF;AACjF,wBAAgB,UAAU,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,UAAQ,GAAG,MAAM,CAmCtE;AAYD,gGAAgG;AAChG,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAmDlD"}
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `propmaster organize` — sorts existing Playwright tests into the
|
|
3
|
+
* per-type layout (tests/api, tests/integration, tests/e2e, tests/mobile).
|
|
4
|
+
*
|
|
5
|
+
* Deterministic on purpose: a test's fixtures say what kind of test it is,
|
|
6
|
+
* so the same project always gets the same plan, with no network access and
|
|
7
|
+
* no source code leaving the machine. Files the rules can't place are left
|
|
8
|
+
* where they are and listed with the reason, for a person (or their coding
|
|
9
|
+
* agent) to decide.
|
|
10
|
+
*
|
|
11
|
+
* Dry run by default. `--apply` moves files (`git mv` when tracked, so history
|
|
12
|
+
* follows) and rewrites relative imports in moved files and in files that
|
|
13
|
+
* import them.
|
|
14
|
+
*/
|
|
15
|
+
import { execFileSync } from 'node:child_process';
|
|
16
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmdirSync, statSync, writeFileSync } from 'node:fs';
|
|
17
|
+
import { dirname, join, posix, relative, resolve, sep } from 'node:path';
|
|
18
|
+
import { findProjectRoot, findTests, lineOf, loadConfig, matchClose, skipNonCode, splitArgs } from './check-tests.js';
|
|
19
|
+
import { TEST_TYPES, configSnippet, typeInfo } from './layout.js';
|
|
20
|
+
// ─── Classification ─────────────────────────────────────────────────────────
|
|
21
|
+
const MOBILE = new Set(['appiumDriver', 'gadsHub']);
|
|
22
|
+
const E2E = new Set(['page', 'context', 'browser', 'browserName']);
|
|
23
|
+
const INTEGRATION = new Set(['databaseClient', 'kafkaClient', 'amqpClient', 's3Client', 'sqsClient', 'dynamoDbClient', 'searchClient', 'redisClient', 'mongoDbClient', 'neo4jClient', 'cassandraClient', 'clickHouseClient']);
|
|
24
|
+
const API = new Set(['openApiClient', 'graphqlClient', 'grpcClient', 'realtimeClient', 'request']);
|
|
25
|
+
/** Fixtures that say nothing about the test type: options, configs, OTP. */
|
|
26
|
+
const NEUTRAL = new Set([
|
|
27
|
+
'otpClient',
|
|
28
|
+
'baseURL',
|
|
29
|
+
'openapi',
|
|
30
|
+
'database',
|
|
31
|
+
'kafka',
|
|
32
|
+
'amqp',
|
|
33
|
+
'aws',
|
|
34
|
+
'search',
|
|
35
|
+
'redis',
|
|
36
|
+
'mongodb',
|
|
37
|
+
'neo4j',
|
|
38
|
+
'cassandra',
|
|
39
|
+
'clickhouse',
|
|
40
|
+
'graphql',
|
|
41
|
+
'grpc',
|
|
42
|
+
'realtime',
|
|
43
|
+
'otp',
|
|
44
|
+
'appium',
|
|
45
|
+
]);
|
|
46
|
+
const isKnown = (f) => MOBILE.has(f) || E2E.has(f) || INTEGRATION.has(f) || API.has(f);
|
|
47
|
+
const isNeutral = (f) => NEUTRAL.has(f) || f.endsWith('Config');
|
|
48
|
+
/**
|
|
49
|
+
* Decides a test's type from the fixtures it requests (its own plus its hooks'):
|
|
50
|
+
* appium → mobile; page/context/browser → e2e (even with API fixtures, which
|
|
51
|
+
* set up data); a database/broker/cache client → integration; HTTP clients
|
|
52
|
+
* only → api. Unknown custom fixtures make it ambiguous unless a browser or
|
|
53
|
+
* device already decides it (custom fixtures there are usually page objects).
|
|
54
|
+
*/
|
|
55
|
+
export function classifyFixtures(fixtures) {
|
|
56
|
+
const set = new Set(fixtures);
|
|
57
|
+
const has = (group) => [...set].some((f) => group.has(f));
|
|
58
|
+
if (has(MOBILE))
|
|
59
|
+
return { type: 'mobile' };
|
|
60
|
+
if (has(E2E))
|
|
61
|
+
return { type: 'e2e' };
|
|
62
|
+
const custom = [...set].filter((f) => !isKnown(f) && !isNeutral(f));
|
|
63
|
+
if (custom.length)
|
|
64
|
+
return { type: null, reason: `uses custom fixtures (${custom.join(', ')}); can't tell which type they need` };
|
|
65
|
+
if (has(INTEGRATION))
|
|
66
|
+
return { type: 'integration' };
|
|
67
|
+
if (has(API))
|
|
68
|
+
return { type: 'api' };
|
|
69
|
+
return { type: null, reason: 'needs no browser, device or service fixture (a unit-style test); place it yourself' };
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Names destructured from a test or hook callback's first parameter:
|
|
73
|
+
* `async ({ page, openApiClient: api }) => ...` → ['page', 'openApiClient'].
|
|
74
|
+
* Returns [] for a callback with no parameters and null when the parameter
|
|
75
|
+
* isn't destructured (`async (fixtures) => ...`), which can't be read statically.
|
|
76
|
+
*/
|
|
77
|
+
export function fixturesOf(callback) {
|
|
78
|
+
const src = callback.trim();
|
|
79
|
+
const head = /^(?:async\s+)?(?:function\s*[\w$]*\s*)?\(\s*/.exec(src);
|
|
80
|
+
if (!head)
|
|
81
|
+
return null;
|
|
82
|
+
const i = head[0].length;
|
|
83
|
+
if (src[i] === ')')
|
|
84
|
+
return [];
|
|
85
|
+
if (src[i] !== '{')
|
|
86
|
+
return null;
|
|
87
|
+
const close = matchClose(src, i);
|
|
88
|
+
const names = [];
|
|
89
|
+
for (const entry of splitArgs(src, i, close)) {
|
|
90
|
+
const e = entry.trim();
|
|
91
|
+
if (!e || e.startsWith('...'))
|
|
92
|
+
continue;
|
|
93
|
+
const m = /^([\w$]+)/.exec(e);
|
|
94
|
+
if (m)
|
|
95
|
+
names.push(m[1]);
|
|
96
|
+
}
|
|
97
|
+
return names;
|
|
98
|
+
}
|
|
99
|
+
const HOOK_RE = /^test\.(beforeEach|afterEach|beforeAll|afterAll)\s*\(/;
|
|
100
|
+
/** Fixtures requested by `test.beforeEach/afterEach/beforeAll/afterAll` hooks in a file. */
|
|
101
|
+
function hookFixtures(src) {
|
|
102
|
+
const all = [];
|
|
103
|
+
for (let i = 0; i < src.length;) {
|
|
104
|
+
const skipped = skipNonCode(src, i);
|
|
105
|
+
if (skipped !== -1) {
|
|
106
|
+
i = skipped;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (src.startsWith('test.', i) && !/[\w$.]/.test(src[i - 1] ?? '')) {
|
|
110
|
+
const m = HOOK_RE.exec(src.slice(i, i + 40));
|
|
111
|
+
if (m) {
|
|
112
|
+
const open = i + m[0].length - 1;
|
|
113
|
+
const args = splitArgs(src, open, matchClose(src, open));
|
|
114
|
+
const fixtures = args.length ? fixturesOf(args[args.length - 1]) : [];
|
|
115
|
+
if (fixtures === null)
|
|
116
|
+
return null;
|
|
117
|
+
all.push(...fixtures);
|
|
118
|
+
i = open + 1;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
i++;
|
|
123
|
+
}
|
|
124
|
+
return all;
|
|
125
|
+
}
|
|
126
|
+
/** Where a Playwright test file gets `test` from. Other runners' files are ignored. */
|
|
127
|
+
// `(?:(?!\bfrom\b)[^;])*?` keeps a match inside one import statement even in files without semicolons.
|
|
128
|
+
const PLAYWRIGHT_IMPORT = /^\s*import\s+(?!type\b)(?:(?!\bfrom\b)[^;])*?\btest\b(?:(?!\bfrom\b)[^;])*?\bfrom\s+['"](@playwright\/test|@inluxc\/propmaster|\.{1,2}\/[^'"]+)['"]/m;
|
|
129
|
+
/** Classifies one test file from its source. Pure, so it is easy to unit test. */
|
|
130
|
+
export function analyzeSource(src) {
|
|
131
|
+
if (!PLAYWRIGHT_IMPORT.test(src))
|
|
132
|
+
return { playwright: false, type: null, reason: 'not a Playwright test file', tests: [] };
|
|
133
|
+
const hooks = hookFixtures(src);
|
|
134
|
+
const found = findTests(src);
|
|
135
|
+
if (found.length === 0)
|
|
136
|
+
return { playwright: true, type: null, reason: 'no test() calls found', tests: [] };
|
|
137
|
+
if (hooks === null) {
|
|
138
|
+
return { playwright: true, type: null, reason: "a hook's fixtures aren't destructured, so they can't be read", tests: [] };
|
|
139
|
+
}
|
|
140
|
+
const tests = [];
|
|
141
|
+
let firstReason;
|
|
142
|
+
for (const t of found) {
|
|
143
|
+
const own = fixturesOf(t.body);
|
|
144
|
+
const line = lineOf(src, t.index);
|
|
145
|
+
if (own === null) {
|
|
146
|
+
firstReason ??= `"${t.title}" (line ${line}) doesn't destructure its fixtures, so they can't be read`;
|
|
147
|
+
tests.push({ title: t.title, line, fixtures: [], type: null });
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
const fixtures = [...new Set([...own, ...hooks])];
|
|
151
|
+
const c = classifyFixtures(fixtures);
|
|
152
|
+
if (c.type === null)
|
|
153
|
+
firstReason ??= `"${t.title}" (line ${line}) ${c.reason}`;
|
|
154
|
+
tests.push({ title: t.title, line, fixtures, type: c.type });
|
|
155
|
+
}
|
|
156
|
+
if (firstReason)
|
|
157
|
+
return { playwright: true, type: null, reason: firstReason, tests };
|
|
158
|
+
const types = [...new Set(tests.map((t) => t.type))];
|
|
159
|
+
if (types.length > 1) {
|
|
160
|
+
const counts = types.map((ty) => `${ty} (${tests.filter((t) => t.type === ty).length})`).join(', ');
|
|
161
|
+
return { playwright: true, type: null, reason: `mixes test types: ${counts}; split the file by type`, tests };
|
|
162
|
+
}
|
|
163
|
+
return { playwright: true, type: types[0], tests };
|
|
164
|
+
}
|
|
165
|
+
// ─── Destinations ───────────────────────────────────────────────────────────
|
|
166
|
+
const ROOT_SEGMENTS = new Set(['tests', 'test', '__tests__', 'playwright']);
|
|
167
|
+
const TYPE_SEGMENTS = new Set(['specs', 'spec', 'e2e', 'ui', 'browser', 'web', 'api', 'integration', 'mobile', 'functional', 'acceptance']);
|
|
168
|
+
/** Suffixes the old layout used to pick a project; in the new layout the folder does that. */
|
|
169
|
+
const RENAMED_SUFFIX = /\.(browser|mobile|e2e)\.((?:c|m)?[jt]sx?)$/;
|
|
170
|
+
/**
|
|
171
|
+
* `tests/specs/users/create.spec.ts` + api → `tests/api/users/create.spec.ts`.
|
|
172
|
+
* Drops one root folder (tests, test, __tests__, playwright) and then one
|
|
173
|
+
* type-like folder (specs, e2e, api, ...), keeping the rest of the path, and
|
|
174
|
+
* turns the old `.browser.ts` / `.mobile.ts` / `.e2e.ts` suffixes into `.spec.ts`.
|
|
175
|
+
*/
|
|
176
|
+
export function destinationFor(file, type) {
|
|
177
|
+
const parts = file.split('/');
|
|
178
|
+
if (parts.length > 1 && ROOT_SEGMENTS.has(parts[0].toLowerCase()))
|
|
179
|
+
parts.shift();
|
|
180
|
+
if (parts.length > 1 && TYPE_SEGMENTS.has(parts[0].toLowerCase()))
|
|
181
|
+
parts.shift();
|
|
182
|
+
const name = parts.pop().replace(RENAMED_SUFFIX, '.spec.$2');
|
|
183
|
+
return [typeInfo(type).dir, ...parts, name].join('/');
|
|
184
|
+
}
|
|
185
|
+
// ─── Import rewriting ───────────────────────────────────────────────────────
|
|
186
|
+
/** Relative specifiers in import/export-from, side-effect imports, import() and require(). */
|
|
187
|
+
const SPECIFIER_RE = /(\bfrom\s*|\bimport\s*\(\s*|\bimport\s+|\brequire\s*\(\s*)(['"])(\.{1,2}\/[^'"\n]*)\2/g;
|
|
188
|
+
const CODE_FILE = /\.(?:c|m)?[jt]sx?$/;
|
|
189
|
+
const RESOLVE_EXTS = ['.ts', '.tsx', '.mts', '.cts', '.js', '.jsx', '.mjs', '.cjs', '.json'];
|
|
190
|
+
const SWAP_EXTS = { '.js': ['.ts', '.tsx'], '.jsx': ['.tsx'], '.mjs': ['.mts'], '.cjs': ['.cts'] };
|
|
191
|
+
/** Resolves a relative specifier the way TypeScript/bundlers do, against a set of project files. */
|
|
192
|
+
export function resolveSpecifier(importer, spec, files) {
|
|
193
|
+
const base = posix.normalize(posix.join(posix.dirname(importer), spec));
|
|
194
|
+
if (files.has(base))
|
|
195
|
+
return { file: base, form: { kind: 'exact' } };
|
|
196
|
+
const written = posix.extname(base);
|
|
197
|
+
for (const actual of SWAP_EXTS[written] ?? []) {
|
|
198
|
+
const f = base.slice(0, -written.length) + actual;
|
|
199
|
+
if (files.has(f))
|
|
200
|
+
return { file: f, form: { kind: 'swapExt', written, actual } };
|
|
201
|
+
}
|
|
202
|
+
for (const ext of RESOLVE_EXTS) {
|
|
203
|
+
if (files.has(base + ext))
|
|
204
|
+
return { file: base + ext, form: { kind: 'addExt', ext } };
|
|
205
|
+
}
|
|
206
|
+
for (const ext of RESOLVE_EXTS) {
|
|
207
|
+
const f = `${base}/index${ext}`;
|
|
208
|
+
if (files.has(f))
|
|
209
|
+
return { file: f, form: { kind: 'index', name: `index${ext}` } };
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
function specifierFor(fromFile, target, form) {
|
|
214
|
+
let path = target;
|
|
215
|
+
if (form.kind === 'addExt')
|
|
216
|
+
path = target.slice(0, -form.ext.length);
|
|
217
|
+
else if (form.kind === 'swapExt')
|
|
218
|
+
path = target.slice(0, -form.actual.length) + form.written;
|
|
219
|
+
else if (form.kind === 'index')
|
|
220
|
+
path = posix.dirname(target);
|
|
221
|
+
const rel = posix.relative(posix.dirname(fromFile), path) || '.';
|
|
222
|
+
return rel.startsWith('.') ? rel : `./${rel}`;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Rewrites the relative imports of `src` (a file moving from `oldPath` to
|
|
226
|
+
* `newPath`, or staying put when they're equal) so they still point at the
|
|
227
|
+
* same files after `moves` (old → new). Returns the new source and how many
|
|
228
|
+
* specifiers changed.
|
|
229
|
+
*/
|
|
230
|
+
export function rewriteImports(src, oldPath, newPath, moves, files) {
|
|
231
|
+
let changed = 0;
|
|
232
|
+
const content = src.replace(SPECIFIER_RE, (whole, lead, quote, spec) => {
|
|
233
|
+
const resolved = resolveSpecifier(oldPath, spec, files);
|
|
234
|
+
if (!resolved)
|
|
235
|
+
return whole;
|
|
236
|
+
const target = moves.get(resolved.file) ?? resolved.file;
|
|
237
|
+
if (target === resolved.file && newPath === oldPath)
|
|
238
|
+
return whole;
|
|
239
|
+
const next = specifierFor(newPath, target, resolved.form);
|
|
240
|
+
if (next === spec)
|
|
241
|
+
return whole;
|
|
242
|
+
changed++;
|
|
243
|
+
return `${lead}${quote}${next}${quote}`;
|
|
244
|
+
});
|
|
245
|
+
return { content, changed };
|
|
246
|
+
}
|
|
247
|
+
/** Code in a moved file that reads paths relative to the test file, which no rewrite can fix safely. */
|
|
248
|
+
const PATH_HINT = /__dirname|__filename|import\.meta\.(?:dirname|filename|url)|readFileSync\s*\(|setInputFiles\s*\(|storageState\s*:/;
|
|
249
|
+
// ─── Planning ───────────────────────────────────────────────────────────────
|
|
250
|
+
const SKIP_DIRS = new Set(['node_modules', 'dist', 'build', 'coverage', 'playwright-report', 'test-results', 'blob-report']);
|
|
251
|
+
const TEST_FILE = /\.(?:spec|test|e2e|browser|mobile)\.(?:c|m)?[jt]sx?$/;
|
|
252
|
+
function walk(root, dir = root, out = []) {
|
|
253
|
+
for (const name of readdirSync(dir)) {
|
|
254
|
+
if (name.startsWith('.') || SKIP_DIRS.has(name))
|
|
255
|
+
continue;
|
|
256
|
+
const full = join(dir, name);
|
|
257
|
+
if (statSync(full).isDirectory())
|
|
258
|
+
walk(root, full, out);
|
|
259
|
+
else
|
|
260
|
+
out.push(relative(root, full).split(sep).join('/'));
|
|
261
|
+
}
|
|
262
|
+
return out;
|
|
263
|
+
}
|
|
264
|
+
/** Builds the plan for `root`. Reads files; changes nothing. */
|
|
265
|
+
export function planOrganize(root) {
|
|
266
|
+
const exempt = loadConfig(root).exemptDirs;
|
|
267
|
+
const all = walk(root);
|
|
268
|
+
const files = new Set(all);
|
|
269
|
+
const plan = { root, moves: [], inPlace: [], ambiguous: [], conflicts: [], warnings: [], edits: [] };
|
|
270
|
+
const claimed = new Map();
|
|
271
|
+
for (const file of all) {
|
|
272
|
+
if (!TEST_FILE.test(file) || file.endsWith('.d.ts') || /\.prop\.(?:c|m)?[jt]s$/.test(file))
|
|
273
|
+
continue;
|
|
274
|
+
if (exempt.some((d) => file.startsWith(d)))
|
|
275
|
+
continue;
|
|
276
|
+
const analysis = analyzeSource(readFileSync(join(root, file), 'utf8'));
|
|
277
|
+
if (!analysis.playwright)
|
|
278
|
+
continue;
|
|
279
|
+
if (analysis.type === null) {
|
|
280
|
+
plan.ambiguous.push({ file, reason: analysis.reason ?? 'unknown' });
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
const to = destinationFor(file, analysis.type);
|
|
284
|
+
const tests = analysis.tests.length;
|
|
285
|
+
if (to === file) {
|
|
286
|
+
plan.inPlace.push({ file, type: analysis.type, tests });
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
const taken = (files.has(to) ? to : undefined) ?? claimed.get(to);
|
|
290
|
+
if (taken) {
|
|
291
|
+
plan.conflicts.push({ file, to, reason: taken === to ? `${to} already exists` : `${taken} also moves there` });
|
|
292
|
+
continue;
|
|
293
|
+
}
|
|
294
|
+
claimed.set(to, file);
|
|
295
|
+
plan.moves.push({ from: file, to, type: analysis.type, tests });
|
|
296
|
+
}
|
|
297
|
+
// Note: a destination whose current file also moves away is still reported
|
|
298
|
+
// as a conflict. That over-reports a rare swap, which is the safe side.
|
|
299
|
+
const moves = new Map(plan.moves.map((m) => [m.from, m.to]));
|
|
300
|
+
for (const file of all) {
|
|
301
|
+
if (!CODE_FILE.test(file))
|
|
302
|
+
continue;
|
|
303
|
+
const src = readFileSync(join(root, file), 'utf8');
|
|
304
|
+
const newPath = moves.get(file) ?? file;
|
|
305
|
+
const { changed } = rewriteImports(src, file, newPath, moves, files);
|
|
306
|
+
if (changed > 0)
|
|
307
|
+
plan.edits.push({ file: newPath, imports: changed });
|
|
308
|
+
if (newPath !== file && PATH_HINT.test(src)) {
|
|
309
|
+
plan.warnings.push({
|
|
310
|
+
file: newPath,
|
|
311
|
+
message: 'reads files by a path relative to the test (__dirname, import.meta, readFileSync, storageState or setInputFiles); check those paths',
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return plan;
|
|
316
|
+
}
|
|
317
|
+
// ─── Applying ───────────────────────────────────────────────────────────────
|
|
318
|
+
function git(root, args) {
|
|
319
|
+
try {
|
|
320
|
+
return execFileSync('git', args, { cwd: root, stdio: ['ignore', 'pipe', 'ignore'] }).toString();
|
|
321
|
+
}
|
|
322
|
+
catch {
|
|
323
|
+
return null;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/** True when `root` is in a git work tree with uncommitted changes. */
|
|
327
|
+
export function hasUncommittedChanges(root) {
|
|
328
|
+
const status = git(root, ['status', '--porcelain']);
|
|
329
|
+
return status !== null && status.trim() !== '';
|
|
330
|
+
}
|
|
331
|
+
/** Moves the files and rewrites imports. Uses `git mv` for tracked files. */
|
|
332
|
+
export function applyOrganize(plan) {
|
|
333
|
+
const { root } = plan;
|
|
334
|
+
const all = new Set(walk(root));
|
|
335
|
+
const moves = new Map(plan.moves.map((m) => [m.from, m.to]));
|
|
336
|
+
const inGit = git(root, ['rev-parse', '--is-inside-work-tree'])?.trim() === 'true';
|
|
337
|
+
// Compute every new file content from the original tree before touching it.
|
|
338
|
+
const writes = new Map();
|
|
339
|
+
for (const file of all) {
|
|
340
|
+
if (!CODE_FILE.test(file))
|
|
341
|
+
continue;
|
|
342
|
+
const newPath = moves.get(file) ?? file;
|
|
343
|
+
const { content, changed } = rewriteImports(readFileSync(join(root, file), 'utf8'), file, newPath, moves, all);
|
|
344
|
+
if (changed > 0)
|
|
345
|
+
writes.set(newPath, content);
|
|
346
|
+
}
|
|
347
|
+
for (const { from, to } of plan.moves) {
|
|
348
|
+
mkdirSync(dirname(join(root, to)), { recursive: true });
|
|
349
|
+
const tracked = inGit && git(root, ['ls-files', '--error-unmatch', '--', from]) !== null;
|
|
350
|
+
if (tracked)
|
|
351
|
+
execFileSync('git', ['mv', '--', from, to], { cwd: root, stdio: 'ignore' });
|
|
352
|
+
else
|
|
353
|
+
renameSync(join(root, from), join(root, to));
|
|
354
|
+
}
|
|
355
|
+
for (const [file, content] of writes)
|
|
356
|
+
writeFileSync(join(root, file), content, 'utf8');
|
|
357
|
+
// Remove folders the moves left empty, walking up but never past the root.
|
|
358
|
+
for (const { from } of plan.moves) {
|
|
359
|
+
let dir = dirname(join(root, from));
|
|
360
|
+
while (dir.startsWith(root + sep) && existsSync(dir) && readdirSync(dir).length === 0) {
|
|
361
|
+
rmdirSync(dir);
|
|
362
|
+
dir = dirname(dir);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
// ─── CLI ────────────────────────────────────────────────────────────────────
|
|
367
|
+
function pad(s, n) {
|
|
368
|
+
return s.length >= n ? s : s + ' '.repeat(n - s.length);
|
|
369
|
+
}
|
|
370
|
+
/** Human-readable plan. `applied` switches the wording from "would" to "did". */
|
|
371
|
+
export function formatPlan(plan, applied = false) {
|
|
372
|
+
const out = [];
|
|
373
|
+
const width = Math.min(60, Math.max(0, ...plan.moves.map((m) => m.from.length)));
|
|
374
|
+
const importsFor = new Map(plan.edits.map((e) => [e.file, e.imports]));
|
|
375
|
+
if (plan.moves.length) {
|
|
376
|
+
out.push(`${applied ? 'Moved' : 'Will move'} ${plan.moves.length} file(s):`);
|
|
377
|
+
for (const m of plan.moves) {
|
|
378
|
+
const n = importsFor.get(m.to);
|
|
379
|
+
out.push(` ${pad(m.from, width)} → ${m.to}${n ? ` (${n} import${n > 1 ? 's' : ''} updated)` : ''}`);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
out.push('Nothing to move.');
|
|
384
|
+
}
|
|
385
|
+
const moved = new Set(plan.moves.map((m) => m.to));
|
|
386
|
+
const importers = plan.edits.filter((e) => !moved.has(e.file));
|
|
387
|
+
if (importers.length) {
|
|
388
|
+
out.push('', `Imports ${applied ? 'updated' : 'to update'} in files that stay:`);
|
|
389
|
+
for (const e of importers)
|
|
390
|
+
out.push(` ${e.file} (${e.imports})`);
|
|
391
|
+
}
|
|
392
|
+
if (plan.inPlace.length)
|
|
393
|
+
out.push('', `Already in the right folder: ${plan.inPlace.length} file(s).`);
|
|
394
|
+
if (plan.ambiguous.length || plan.conflicts.length) {
|
|
395
|
+
out.push('', 'Left where they are — decide these yourself:');
|
|
396
|
+
for (const a of plan.ambiguous)
|
|
397
|
+
out.push(` ${a.file}\n ${a.reason}`);
|
|
398
|
+
for (const c of plan.conflicts)
|
|
399
|
+
out.push(` ${c.file}\n would move to ${c.to}, but ${c.reason}`);
|
|
400
|
+
}
|
|
401
|
+
if (plan.warnings.length) {
|
|
402
|
+
out.push('', `Check after ${applied ? 'the move' : 'moving'}:`);
|
|
403
|
+
for (const w of plan.warnings)
|
|
404
|
+
out.push(` ${w.file}\n ${w.message}`);
|
|
405
|
+
}
|
|
406
|
+
return out.join('\n');
|
|
407
|
+
}
|
|
408
|
+
const USAGE = `Usage: propmaster organize [--apply] [--force] [--json] [--root <dir>]
|
|
409
|
+
|
|
410
|
+
Sorts Playwright tests into tests/api, tests/integration, tests/e2e and
|
|
411
|
+
tests/mobile by the fixtures they use. Dry run unless --apply is given.
|
|
412
|
+
|
|
413
|
+
--apply Move the files (git mv when tracked) and update relative imports
|
|
414
|
+
--force Allow --apply with uncommitted git changes
|
|
415
|
+
--json Print the plan as JSON
|
|
416
|
+
--root Project root (default: nearest folder with a package.json)`;
|
|
417
|
+
/** `propmaster organize [--apply] [--force] [--json] [--root <dir>]`. Returns the exit code. */
|
|
418
|
+
export function runOrganize(argv) {
|
|
419
|
+
if (argv.includes('--help') || argv.includes('-h')) {
|
|
420
|
+
console.log(USAGE);
|
|
421
|
+
return 0;
|
|
422
|
+
}
|
|
423
|
+
const i = argv.indexOf('--root');
|
|
424
|
+
const root = i !== -1 && argv[i + 1] ? resolve(argv[i + 1]) : findProjectRoot();
|
|
425
|
+
const plan = planOrganize(root);
|
|
426
|
+
if (argv.includes('--json')) {
|
|
427
|
+
const { root: _root, ...rest } = plan;
|
|
428
|
+
console.log(JSON.stringify(rest, null, 2));
|
|
429
|
+
if (!argv.includes('--apply'))
|
|
430
|
+
return 0;
|
|
431
|
+
}
|
|
432
|
+
const apply = argv.includes('--apply');
|
|
433
|
+
if (apply && plan.moves.length && hasUncommittedChanges(root) && !argv.includes('--force')) {
|
|
434
|
+
console.error('✗ There are uncommitted changes. Commit or stash them first so the move is easy to review and undo, or pass --force.');
|
|
435
|
+
return 1;
|
|
436
|
+
}
|
|
437
|
+
if (apply && plan.moves.length)
|
|
438
|
+
applyOrganize(plan);
|
|
439
|
+
if (!argv.includes('--json')) {
|
|
440
|
+
console.log('');
|
|
441
|
+
console.log(` Propmaster — organize${apply ? '' : ' (dry run)'}`);
|
|
442
|
+
console.log('');
|
|
443
|
+
console.log(formatPlan(plan, apply)
|
|
444
|
+
.split('\n')
|
|
445
|
+
.map((l) => ` ${l}`)
|
|
446
|
+
.join('\n'));
|
|
447
|
+
console.log('');
|
|
448
|
+
const types = [...new Set([...plan.moves, ...plan.inPlace].map((m) => m.type))];
|
|
449
|
+
if (types.length) {
|
|
450
|
+
console.log(' Make sure playwright.config has a project for each folder. If it was not');
|
|
451
|
+
console.log(' generated by `propmaster init`, add:');
|
|
452
|
+
console.log('');
|
|
453
|
+
console.log(configSnippet(TEST_TYPES.map((t) => t.type).filter((t) => types.includes(t)))
|
|
454
|
+
.split('\n')
|
|
455
|
+
.map((l) => ` ${l}`)
|
|
456
|
+
.join('\n'));
|
|
457
|
+
console.log('');
|
|
458
|
+
const missing = types.filter((t) => !existsSync(join(root, typeInfo(t).dir, 'projects.ts')));
|
|
459
|
+
if (missing.length)
|
|
460
|
+
console.log(` Missing projects.ts in: ${missing.map((t) => typeInfo(t).dir).join(', ')}. Run \`npx propmaster init\` to add them.\n`);
|
|
461
|
+
}
|
|
462
|
+
if (!apply && plan.moves.length)
|
|
463
|
+
console.log(' Run `npx propmaster organize --apply` to make these changes.\n');
|
|
464
|
+
}
|
|
465
|
+
return 0;
|
|
466
|
+
}
|
|
467
|
+
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