@crvouga/atlas 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +649 -2
- package/dist/bun/src/driver.d.ts +67 -0
- package/dist/bun/src/driver.js +90 -0
- package/dist/bun/src/index.d.ts +2 -0
- package/dist/bun/src/index.js +2 -0
- package/dist/core/src/cli.d.ts +1 -0
- package/dist/core/src/cli.js +177 -0
- package/dist/core/src/config.d.ts +477 -0
- package/dist/core/src/config.js +100 -0
- package/dist/core/src/events/cloudevents.d.ts +56 -0
- package/dist/core/src/events/cloudevents.js +152 -0
- package/dist/core/src/graph.d.ts +113 -0
- package/dist/core/src/graph.js +221 -0
- package/dist/core/src/index.d.ts +17 -0
- package/dist/core/src/index.js +17 -0
- package/dist/core/src/lint.d.ts +53 -0
- package/dist/core/src/lint.js +138 -0
- package/dist/core/src/plan.d.ts +109 -0
- package/dist/core/src/plan.js +324 -0
- package/dist/core/src/privacy.d.ts +8 -0
- package/dist/core/src/privacy.js +42 -0
- package/dist/core/src/report/formats.d.ts +69 -0
- package/dist/core/src/report/formats.js +109 -0
- package/dist/core/src/report/markdown.d.ts +8 -0
- package/dist/core/src/report/markdown.js +140 -0
- package/dist/core/src/run/clients.d.ts +42 -0
- package/dist/core/src/run/clients.js +250 -0
- package/dist/core/src/run/execute.d.ts +854 -0
- package/dist/core/src/run/execute.js +877 -0
- package/dist/core/src/run/frames.d.ts +16 -0
- package/dist/core/src/run/frames.js +52 -0
- package/dist/core/src/run/http.d.ts +41 -0
- package/dist/core/src/run/http.js +71 -0
- package/dist/core/src/run/types.d.ts +248 -0
- package/dist/core/src/run/types.js +39 -0
- package/dist/core/src/signals.d.ts +110 -0
- package/dist/core/src/signals.js +121 -0
- package/dist/core/src/spec/compose.d.ts +28 -0
- package/dist/core/src/spec/compose.js +71 -0
- package/dist/core/src/spec/index.d.ts +5 -0
- package/dist/core/src/spec/index.js +5 -0
- package/dist/core/src/spec/load.d.ts +8 -0
- package/dist/core/src/spec/load.js +46 -0
- package/dist/core/src/spec/parse.d.ts +5 -0
- package/dist/core/src/spec/parse.js +32 -0
- package/dist/core/src/spec/scxml.d.ts +19 -0
- package/dist/core/src/spec/scxml.js +239 -0
- package/dist/core/src/spec/types.d.ts +96 -0
- package/dist/core/src/spec/types.js +25 -0
- package/dist/detox/src/index.d.ts +75 -0
- package/dist/detox/src/index.js +110 -0
- package/dist/playwright/src/driver.d.ts +44 -0
- package/dist/playwright/src/driver.js +82 -0
- package/dist/playwright/src/index.d.ts +3 -0
- package/dist/playwright/src/index.js +3 -0
- package/dist/playwright/src/media.d.ts +68 -0
- package/dist/playwright/src/media.js +283 -0
- package/dist/playwright/src/signals.d.ts +34 -0
- package/dist/playwright/src/signals.js +56 -0
- package/dist/reports/src/browser-navigation.d.ts +2 -0
- package/dist/reports/src/browser-navigation.js +28 -0
- package/dist/reports/src/bundle.d.ts +24 -0
- package/dist/reports/src/bundle.js +114 -0
- package/dist/reports/src/catalog.d.ts +37 -0
- package/dist/reports/src/catalog.js +127 -0
- package/dist/reports/src/clock.d.ts +14 -0
- package/dist/reports/src/clock.js +4 -0
- package/dist/reports/src/completion-order.d.ts +10 -0
- package/dist/reports/src/completion-order.js +76 -0
- package/dist/reports/src/evidence-live.d.ts +40 -0
- package/dist/reports/src/evidence-live.js +118 -0
- package/dist/reports/src/evidence-types.d.ts +90 -0
- package/dist/reports/src/evidence-types.js +15 -0
- package/dist/reports/src/evidence-view.d.ts +68 -0
- package/dist/reports/src/evidence-view.js +113 -0
- package/dist/reports/src/explorer-types.d.ts +56 -0
- package/dist/reports/src/explorer-types.js +0 -0
- package/dist/reports/src/explorer-versions.d.ts +4 -0
- package/dist/reports/src/explorer-versions.js +21 -0
- package/dist/reports/src/export-evidence.d.ts +11 -0
- package/dist/reports/src/export-evidence.js +94 -0
- package/dist/reports/src/fetcher.d.ts +50 -0
- package/dist/reports/src/fetcher.js +205 -0
- package/dist/reports/src/format-date.d.ts +1 -0
- package/dist/reports/src/format-date.js +10 -0
- package/dist/reports/src/format.d.ts +16 -0
- package/dist/reports/src/format.js +71 -0
- package/dist/reports/src/frames.d.ts +46 -0
- package/dist/reports/src/frames.js +245 -0
- package/dist/reports/src/hash.d.ts +17 -0
- package/dist/reports/src/hash.js +43 -0
- package/dist/reports/src/html-frame.d.ts +13 -0
- package/dist/reports/src/html-frame.js +63 -0
- package/dist/reports/src/http.d.ts +3 -0
- package/dist/reports/src/http.js +0 -0
- package/dist/reports/src/junit.d.ts +23 -0
- package/dist/reports/src/junit.js +119 -0
- package/dist/reports/src/keyboard.d.ts +16 -0
- package/dist/reports/src/keyboard.js +135 -0
- package/dist/reports/src/keys.d.ts +53 -0
- package/dist/reports/src/keys.js +122 -0
- package/dist/reports/src/layer-catalog.d.ts +5 -0
- package/dist/reports/src/layer-catalog.js +39 -0
- package/dist/reports/src/layer-merge.d.ts +43 -0
- package/dist/reports/src/layer-merge.js +154 -0
- package/dist/reports/src/layer-source.d.ts +6 -0
- package/dist/reports/src/layer-source.js +32 -0
- package/dist/reports/src/layer-store.d.ts +10 -0
- package/dist/reports/src/layer-store.js +36 -0
- package/dist/reports/src/layer-types.d.ts +32 -0
- package/dist/reports/src/layer-types.js +0 -0
- package/dist/reports/src/layers-route.d.ts +20 -0
- package/dist/reports/src/layers-route.js +259 -0
- package/dist/reports/src/namespace-guard.d.ts +11 -0
- package/dist/reports/src/namespace-guard.js +40 -0
- package/dist/reports/src/navigation.d.ts +8 -0
- package/dist/reports/src/navigation.js +0 -0
- package/dist/reports/src/object-io.d.ts +9 -0
- package/dist/reports/src/object-io.js +41 -0
- package/dist/reports/src/object-store.d.ts +67 -0
- package/dist/reports/src/object-store.js +32 -0
- package/dist/reports/src/performance-part.d.ts +9 -0
- package/dist/reports/src/performance-part.js +42 -0
- package/dist/reports/src/performance.d.ts +13 -0
- package/dist/reports/src/performance.js +45 -0
- package/dist/reports/src/persist.d.ts +10 -0
- package/dist/reports/src/persist.js +38 -0
- package/dist/reports/src/phone.d.ts +5 -0
- package/dist/reports/src/phone.js +18 -0
- package/dist/reports/src/protocol.d.ts +78 -0
- package/dist/reports/src/protocol.js +36 -0
- package/dist/reports/src/publication.d.ts +4 -0
- package/dist/reports/src/publication.js +35 -0
- package/dist/reports/src/publish.d.ts +52 -0
- package/dist/reports/src/publish.js +189 -0
- package/dist/reports/src/read.d.ts +62 -0
- package/dist/reports/src/read.js +214 -0
- package/dist/reports/src/recording-bundle.d.ts +22 -0
- package/dist/reports/src/recording-bundle.js +4 -0
- package/dist/reports/src/recording-keys.d.ts +9 -0
- package/dist/reports/src/recording-keys.js +50 -0
- package/dist/reports/src/remote-report.d.ts +39 -0
- package/dist/reports/src/remote-report.js +304 -0
- package/dist/reports/src/report-loader.d.ts +22 -0
- package/dist/reports/src/report-loader.js +0 -0
- package/dist/reports/src/report-parts.d.ts +10 -0
- package/dist/reports/src/report-parts.js +112 -0
- package/dist/reports/src/report-types.d.ts +194 -0
- package/dist/reports/src/report-types.js +29 -0
- package/dist/reports/src/reports-explorer-route.d.ts +90 -0
- package/dist/reports/src/reports-explorer-route.js +65 -0
- package/dist/reports/src/reports-list-route.d.ts +23 -0
- package/dist/reports/src/reports-list-route.js +55 -0
- package/dist/reports/src/reports-route.d.ts +267 -0
- package/dist/reports/src/reports-route.js +204 -0
- package/dist/reports/src/reports-store.d.ts +11 -0
- package/dist/reports/src/reports-store.js +28 -0
- package/dist/reports/src/resilient-cache.d.ts +3 -0
- package/dist/reports/src/resilient-cache.js +33 -0
- package/dist/reports/src/retention.d.ts +9 -0
- package/dist/reports/src/retention.js +16 -0
- package/dist/reports/src/scenario.d.ts +15 -0
- package/dist/reports/src/scenario.js +35 -0
- package/dist/reports/src/snapshot-bundle.d.ts +18 -0
- package/dist/reports/src/snapshot-bundle.js +94 -0
- package/dist/reports/src/snapshot-surface.d.ts +29 -0
- package/dist/reports/src/snapshot-surface.js +339 -0
- package/dist/reports/src/source-content.d.ts +30 -0
- package/dist/reports/src/source-content.js +63 -0
- package/dist/reports/src/source-entries.d.ts +4 -0
- package/dist/reports/src/source-entries.js +34 -0
- package/dist/reports/src/source-part.d.ts +4 -0
- package/dist/reports/src/source-part.js +66 -0
- package/dist/reports/src/source-reader.d.ts +6 -0
- package/dist/reports/src/source-reader.js +17 -0
- package/dist/reports/src/spec-evidence.d.ts +6 -0
- package/dist/reports/src/spec-evidence.js +20 -0
- package/dist/reports/src/spec-inventory.d.ts +14 -0
- package/dist/reports/src/spec-inventory.js +75 -0
- package/dist/reports/src/status.d.ts +4 -0
- package/dist/reports/src/status.js +8 -0
- package/dist/reports/src/store-prefix.d.ts +21 -0
- package/dist/reports/src/store-prefix.js +53 -0
- package/dist/reports/src/test-catalog-entity.d.ts +3 -0
- package/dist/reports/src/test-catalog-entity.js +34 -0
- package/dist/reports/src/types.d.ts +5 -0
- package/dist/reports/src/types.js +0 -0
- package/dist/reports/src/use-report-nav.d.ts +25 -0
- package/dist/reports/src/use-report-nav.js +181 -0
- package/dist/schema/src/common.d.ts +57 -0
- package/dist/schema/src/common.js +32 -0
- package/dist/schema/src/index.d.ts +5 -0
- package/dist/schema/src/index.js +5 -0
- package/dist/schema/src/manifest.d.ts +457 -0
- package/dist/schema/src/manifest.js +247 -0
- package/dist/schema/src/report-sources.d.ts +68 -0
- package/dist/schema/src/report-sources.js +53 -0
- package/dist/schema/src/runs-index.d.ts +52 -0
- package/dist/schema/src/runs-index.js +24 -0
- package/dist/schema/src/spec.d.ts +245 -0
- package/dist/schema/src/spec.js +133 -0
- package/dist/vitest/src/index.d.ts +22 -0
- package/dist/vitest/src/index.js +33 -0
- package/dist/webdriver/src/driver.d.ts +69 -0
- package/dist/webdriver/src/driver.js +230 -0
- package/dist/webdriver/src/index.d.ts +11 -0
- package/dist/webdriver/src/index.js +10 -0
- package/dist/webdriver/src/protocol.d.ts +60 -0
- package/dist/webdriver/src/protocol.js +146 -0
- package/package.json +181 -4
- package/packages/bun/README.md +69 -0
- package/packages/core/README.md +78 -0
- package/packages/core/bin/atlas.mjs +8 -0
- package/packages/detox/README.md +73 -0
- package/packages/playwright/README.md +77 -0
- package/packages/reports/README.md +47 -0
- package/packages/reports/STORAGE.md +73 -0
- package/packages/schema/README.md +23 -0
- package/packages/schema/schemas/atlas-change.schema.json +34 -0
- package/packages/schema/schemas/atlas.schema.json +32 -0
- package/packages/schema/schemas/cloud-event.schema.json +40 -0
- package/packages/schema/schemas/journeys.schema.json +17 -0
- package/packages/schema/schemas/manifest.schema.json +160 -0
- package/packages/schema/schemas/path-record.schema.json +151 -0
- package/packages/schema/schemas/report-sources.schema.json +95 -0
- package/packages/schema/schemas/run-info.schema.json +176 -0
- package/packages/schema/schemas/run-summary.schema.json +206 -0
- package/packages/schema/schemas/runs-index.schema.json +23 -0
- package/packages/schema/schemas/state-node.schema.json +238 -0
- package/packages/schema/schemas/state-record.schema.json +354 -0
- package/packages/schema/schemas/timeline-entry.schema.json +124 -0
- package/packages/schema/schemas/transition-record.schema.json +125 -0
- package/packages/visualizer/README.md +154 -0
- package/packages/visualizer/bin/atlas-visualizer.mjs +176 -0
- package/packages/visualizer/example/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/example/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/example/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/example/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/example/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +245 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +12 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +2003 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/006.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/007.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/008.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/009.vtt +13 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/010.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/011.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/012.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/013.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/failed-01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/failed-01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/ctrf.json +247 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/junit.xml +12 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/manifest.json +1875 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/ctrf.json +244 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/junit.xml +12 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/manifest.json +1977 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/005.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/006.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +472 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +16 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +3701 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/006.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/007.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/008.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/009.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/010.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/011.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/012.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/013.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/014.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/015.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/016.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/017.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/018.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/019.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/020.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/021.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/022.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/023.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/024.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/025.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/026.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/027.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/028.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/06.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/06.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/07.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/07.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/08.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/08.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/09.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/09.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/10.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/10.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/11.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/11.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/12.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/12.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/13.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/13.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/14.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/14.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-6/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-6/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-7/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-7/01.webp +0 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/ctrf.json +1280 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/junit.xml +26 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/manifest.json +28393 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/identity-check.machine.yaml +397 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/atlas.yaml +65 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/journeys.yaml +132 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/refund-handling.scxml +288 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/journeys.yaml +126 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/machine.yaml +831 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/product-comparison.machine.yaml +395 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/journeys.yaml +120 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/machine.yaml +724 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/open-questions.md +16 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/payment.scxml +288 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/delivery-scheduling.machine.yaml +397 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/journeys.yaml +132 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/known-issues.md +13 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/escalation.machine.yaml +395 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/journeys.yaml +123 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/machine.yaml +720 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T10-00-00-000Z-showcase/manifest.json +68 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/ctrf.json +50 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/junit.xml +6 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/manifest.json +1281 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/ctrf.json +50 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/junit.xml +6 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/manifest.json +1232 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T13-00-00-000Z-showcase/manifest.json +1244 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/journeys.yaml +134 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/loyalty.scxml +4 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/machine.yaml +156 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +149 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +1718 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +17 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +17 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/00-start-01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/00-start-01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +79 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +7 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +1504 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +17 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/spec-only/runs/.gitkeep +0 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/index.html +13 -0
- package/packages/visualizer/scripts/make-fixtures.ts +1490 -0
- package/packages/visualizer/scripts/publish-data.ts +22 -0
- package/packages/visualizer/src/app/AppShell.tsx +56 -0
- package/packages/visualizer/src/app/atlas-context.tsx +23 -0
- package/packages/visualizer/src/app/gazetteer.module.css +97 -0
- package/packages/visualizer/src/app/gazetteer.tsx +105 -0
- package/packages/visualizer/src/app/report-sources.tsx +122 -0
- package/packages/visualizer/src/app/router.tsx +69 -0
- package/packages/visualizer/src/app/search-query.tsx +14 -0
- package/packages/visualizer/src/components/DataIssues.module.css +136 -0
- package/packages/visualizer/src/components/DataIssues.tsx +70 -0
- package/packages/visualizer/src/components/Header.module.css +189 -0
- package/packages/visualizer/src/components/Header.tsx +127 -0
- package/packages/visualizer/src/components/Legend.module.css +84 -0
- package/packages/visualizer/src/components/Legend.tsx +50 -0
- package/packages/visualizer/src/components/Screen.module.css +312 -0
- package/packages/visualizer/src/components/Screen.tsx +141 -0
- package/packages/visualizer/src/components/Status.module.css +116 -0
- package/packages/visualizer/src/components/Status.tsx +60 -0
- package/packages/visualizer/src/components/icons.tsx +156 -0
- package/packages/visualizer/src/components/labels.tsx +22 -0
- package/packages/visualizer/src/data/adapters/adapter.ts +112 -0
- package/packages/visualizer/src/data/adapters/context.tsx +11 -0
- package/packages/visualizer/src/data/adapters/index.ts +29 -0
- package/packages/visualizer/src/data/adapters/report-backend.test.ts +96 -0
- package/packages/visualizer/src/data/adapters/report-backend.ts +42 -0
- package/packages/visualizer/src/data/fixtures.test.ts +407 -0
- package/packages/visualizer/src/data/model/build.ts +418 -0
- package/packages/visualizer/src/data/model/event-kind.test.ts +59 -0
- package/packages/visualizer/src/data/model/event-kind.ts +54 -0
- package/packages/visualizer/src/data/model/index.ts +3 -0
- package/packages/visualizer/src/data/model/journeys.test.ts +159 -0
- package/packages/visualizer/src/data/model/journeys.ts +29 -0
- package/packages/visualizer/src/data/model/simulation.test.ts +115 -0
- package/packages/visualizer/src/data/model/simulation.ts +187 -0
- package/packages/visualizer/src/data/model/status.test.ts +34 -0
- package/packages/visualizer/src/data/model/status.ts +43 -0
- package/packages/visualizer/src/data/model/types.ts +280 -0
- package/packages/visualizer/src/data/parse/issues.test.ts +82 -0
- package/packages/visualizer/src/data/parse/issues.ts +114 -0
- package/packages/visualizer/src/data/parse/manifest.ts +173 -0
- package/packages/visualizer/src/data/parse/markdown.test.ts +119 -0
- package/packages/visualizer/src/data/parse/markdown.ts +133 -0
- package/packages/visualizer/src/data/parse/spec.test.ts +106 -0
- package/packages/visualizer/src/data/parse/spec.ts +557 -0
- package/packages/visualizer/src/data/parse/structured.ts +44 -0
- package/packages/visualizer/src/data/queries.ts +369 -0
- package/packages/visualizer/src/data/testing/load-fixture.ts +63 -0
- package/packages/visualizer/src/evidence/api.ts +41 -0
- package/packages/visualizer/src/evidence/check-detail.tsx +257 -0
- package/packages/visualizer/src/evidence/decision-table.tsx +68 -0
- package/packages/visualizer/src/evidence/document-page.tsx +40 -0
- package/packages/visualizer/src/evidence/evidence-context.tsx +159 -0
- package/packages/visualizer/src/evidence/evidence.module.css +877 -0
- package/packages/visualizer/src/evidence/feature-page.tsx +88 -0
- package/packages/visualizer/src/evidence/format.ts +56 -0
- package/packages/visualizer/src/evidence/gherkin.ts +98 -0
- package/packages/visualizer/src/evidence/marks.tsx +118 -0
- package/packages/visualizer/src/evidence/model-page.tsx +60 -0
- package/packages/visualizer/src/evidence/model-trace.tsx +57 -0
- package/packages/visualizer/src/evidence/overview.tsx +134 -0
- package/packages/visualizer/src/evidence/quint.ts +45 -0
- package/packages/visualizer/src/evidence/recording-page.tsx +69 -0
- package/packages/visualizer/src/evidence/recording.module.css +464 -0
- package/packages/visualizer/src/evidence/recording.tsx +197 -0
- package/packages/visualizer/src/evidence/snapshot.tsx +108 -0
- package/packages/visualizer/src/evidence/sources-panel.tsx +134 -0
- package/packages/visualizer/src/evidence/sources.module.css +168 -0
- package/packages/visualizer/src/evidence/spec-header.tsx +64 -0
- package/packages/visualizer/src/evidence/spec-index.tsx +82 -0
- package/packages/visualizer/src/evidence/spec-page.tsx +92 -0
- package/packages/visualizer/src/evidence/spec-snapshot.tsx +26 -0
- package/packages/visualizer/src/layout/graph.test.ts +113 -0
- package/packages/visualizer/src/layout/graph.ts +324 -0
- package/packages/visualizer/src/layout/layout.ts +237 -0
- package/packages/visualizer/src/layout/use-chart-layout.ts +18 -0
- package/packages/visualizer/src/main.tsx +31 -0
- package/packages/visualizer/src/map/ChartMap.tsx +252 -0
- package/packages/visualizer/src/map/EventEdge.tsx +138 -0
- package/packages/visualizer/src/map/map.module.css +546 -0
- package/packages/visualizer/src/map/nodes.tsx +145 -0
- package/packages/visualizer/src/map/path.ts +24 -0
- package/packages/visualizer/src/reachable.test.ts +54 -0
- package/packages/visualizer/src/spec-kind.test.ts +27 -0
- package/packages/visualizer/src/spec-kind.ts +56 -0
- package/packages/visualizer/src/state/ui-store.ts +44 -0
- package/packages/visualizer/src/styles/global.css +105 -0
- package/packages/visualizer/src/styles/tokens.css +80 -0
- package/packages/visualizer/src/views/ChartPage.tsx +52 -0
- package/packages/visualizer/src/views/ProductPage.tsx +35 -0
- package/packages/visualizer/src/views/SidePanel.tsx +339 -0
- package/packages/visualizer/src/views/views.module.css +546 -0
- package/packages/visualizer/vite/atlas-dev-plugin.ts +169 -0
- package/packages/visualizer/vite/atlas-files.test.ts +119 -0
- package/packages/visualizer/vite/atlas-files.ts +199 -0
- package/packages/visualizer/vite/publish.test.ts +52 -0
- package/packages/visualizer/vite/publish.ts +99 -0
- package/packages/visualizer/vite/reports-dev-plugin.ts +82 -0
- package/packages/visualizer/vite.config.ts +13 -0
- package/packages/vitest/README.md +58 -0
- package/packages/webdriver/README.md +77 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import type { StateValue } from './graph.js';
|
|
2
|
+
import type { Shard } from './run/execute.js';
|
|
3
|
+
import type { Driver, EventMatcher, EventSource, Implementation, PrivacyRules, RunMode } from './run/types.js';
|
|
4
|
+
export type AtlasConfig<C = unknown> = {
|
|
5
|
+
/** The directory holding the charts (`*.scxml`, `*.machine.{json,yaml}`) and `journeys.yaml`. */
|
|
6
|
+
specs: string;
|
|
7
|
+
/** The chart to run; the root chart when omitted. */
|
|
8
|
+
chart?: string;
|
|
9
|
+
/** Where generated paths start (an XState state value); the initial state when omitted. */
|
|
10
|
+
start?: StateValue;
|
|
11
|
+
startLabel?: string;
|
|
12
|
+
/** Only these events enter the chart from outside it. */
|
|
13
|
+
entryEvents?: string[];
|
|
14
|
+
/** Run only this state and what is inside it, with the transitions into and out of it. */
|
|
15
|
+
state?: string;
|
|
16
|
+
/** Path attempts that run at once (capped by the driver's `concurrency`); one per CPU when omitted. */
|
|
17
|
+
workers?: number;
|
|
18
|
+
/** Runs once before any path: prepare what every seed relies on (reference data, config). */
|
|
19
|
+
beforeRun?: () => Promise<void> | void;
|
|
20
|
+
driver: Driver<C> | (() => Driver<C> | Promise<Driver<C>>);
|
|
21
|
+
implementation: Implementation<C>;
|
|
22
|
+
/** Where runs are written; `atlas-runs` beside the config when omitted. */
|
|
23
|
+
output?: string;
|
|
24
|
+
eventSources?: () => EventSource[] | Promise<EventSource[]>;
|
|
25
|
+
eventMatchers?: Record<string, EventMatcher>;
|
|
26
|
+
privacy?: PrivacyRules;
|
|
27
|
+
/** URLs the run will reach; checked against `privacy.allowHosts` (loopback by default). */
|
|
28
|
+
targets?: string[];
|
|
29
|
+
environment?: Record<string, unknown>;
|
|
30
|
+
stepTimeoutMs?: number;
|
|
31
|
+
/** Meta fields every state must carry (default: description). */
|
|
32
|
+
requiredMeta?: string[];
|
|
33
|
+
};
|
|
34
|
+
export declare function defineConfig<C>(config: AtlasConfig<C>): AtlasConfig<C>;
|
|
35
|
+
/** Narrow what a config runs from the command line. */
|
|
36
|
+
export type PrepareOptions = {
|
|
37
|
+
/** Scope the run to this state instead of the config's. */
|
|
38
|
+
state?: string;
|
|
39
|
+
};
|
|
40
|
+
/** Load, lint and plan a config without running anything. */
|
|
41
|
+
export declare function prepare<C>(config: AtlasConfig<C>, baseDirectory?: string, options?: PrepareOptions): {
|
|
42
|
+
bundle: import('./index.js').SpecBundle;
|
|
43
|
+
lint: {
|
|
44
|
+
findings: import('./lint.js').LintFinding[];
|
|
45
|
+
composition: import('./index.js').Composition;
|
|
46
|
+
graph: import('./graph.js').ChartGraph;
|
|
47
|
+
journeys: {
|
|
48
|
+
journey: import('./index.js').Journey;
|
|
49
|
+
replay: {
|
|
50
|
+
ok: false;
|
|
51
|
+
steps: (import('./graph.js').Step & {
|
|
52
|
+
from: import('./graph.js').Config;
|
|
53
|
+
to: import('./graph.js').Config;
|
|
54
|
+
})[];
|
|
55
|
+
config: import('./graph.js').Config;
|
|
56
|
+
failedAt: string;
|
|
57
|
+
} | {
|
|
58
|
+
ok: true;
|
|
59
|
+
steps: (import('./graph.js').Step & {
|
|
60
|
+
from: import('./graph.js').Config;
|
|
61
|
+
to: import('./graph.js').Config;
|
|
62
|
+
})[];
|
|
63
|
+
config: import('./graph.js').Config;
|
|
64
|
+
failedAt?: undefined;
|
|
65
|
+
};
|
|
66
|
+
}[];
|
|
67
|
+
unimplemented: {
|
|
68
|
+
events: string[];
|
|
69
|
+
states: string[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
scope: import('./plan.js').ChartScope;
|
|
73
|
+
plan: {
|
|
74
|
+
paths: import('./plan.js').PlannedPath[];
|
|
75
|
+
unreachable: string[];
|
|
76
|
+
journeys: import('./plan.js').PlannedJourney[];
|
|
77
|
+
seeds: {
|
|
78
|
+
blocked?: string | undefined;
|
|
79
|
+
name: string;
|
|
80
|
+
active: string[];
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
specs: string;
|
|
84
|
+
};
|
|
85
|
+
export type RunCommandOptions = PrepareOptions & {
|
|
86
|
+
mode?: RunMode;
|
|
87
|
+
/** Only these paths, by id. */
|
|
88
|
+
paths?: string[];
|
|
89
|
+
/** Only paths that start from these seeds ("start" for paths that `setup` starts). */
|
|
90
|
+
seeds?: string[];
|
|
91
|
+
retry?: boolean;
|
|
92
|
+
output?: string;
|
|
93
|
+
workers?: number;
|
|
94
|
+
/** Run one shard of the plan; `atlas merge` composes the shards. */
|
|
95
|
+
shard?: Shard;
|
|
96
|
+
/** Keep the passed paths of this run (or the newest run, with "latest") and run the rest. */
|
|
97
|
+
reuse?: string;
|
|
98
|
+
log?: (line: string) => void;
|
|
99
|
+
};
|
|
100
|
+
/** Run a config end to end and write its manifest and reports. */
|
|
101
|
+
export declare function runConfig<C>(config: AtlasConfig<C>, options?: RunCommandOptions, baseDirectory?: string): Promise<{
|
|
102
|
+
runDir: string;
|
|
103
|
+
manifest: {
|
|
104
|
+
$schema: string;
|
|
105
|
+
schemaVersion: number;
|
|
106
|
+
run: {
|
|
107
|
+
id: string;
|
|
108
|
+
startedAt: string;
|
|
109
|
+
finishedAt: string | null;
|
|
110
|
+
progress: {
|
|
111
|
+
totalPaths: number;
|
|
112
|
+
completedPaths: number;
|
|
113
|
+
activePaths: string[];
|
|
114
|
+
updatedAt: string;
|
|
115
|
+
};
|
|
116
|
+
durationMs: number;
|
|
117
|
+
commit: string | null;
|
|
118
|
+
branch: string | null;
|
|
119
|
+
environment: {
|
|
120
|
+
clients?: Record<string, string> | undefined;
|
|
121
|
+
driver: string;
|
|
122
|
+
};
|
|
123
|
+
mode: RunMode;
|
|
124
|
+
specVersion: string;
|
|
125
|
+
specDirectory: string;
|
|
126
|
+
approvals: unknown[];
|
|
127
|
+
scope: {
|
|
128
|
+
state?: string | undefined;
|
|
129
|
+
chart: string;
|
|
130
|
+
start: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
charts: {
|
|
134
|
+
id: string;
|
|
135
|
+
file: string;
|
|
136
|
+
description: string;
|
|
137
|
+
parentState: string | null;
|
|
138
|
+
handOffs: {
|
|
139
|
+
[k: string]: string;
|
|
140
|
+
};
|
|
141
|
+
}[];
|
|
142
|
+
map: {
|
|
143
|
+
nodes: {
|
|
144
|
+
id: string;
|
|
145
|
+
parent: string | null;
|
|
146
|
+
chart: string;
|
|
147
|
+
type: string;
|
|
148
|
+
initial: string | null;
|
|
149
|
+
inScope: boolean;
|
|
150
|
+
}[];
|
|
151
|
+
edges: {
|
|
152
|
+
id: string;
|
|
153
|
+
source: string;
|
|
154
|
+
target: string;
|
|
155
|
+
event: string;
|
|
156
|
+
kind: import('./index.js').EventKind;
|
|
157
|
+
inScope: boolean;
|
|
158
|
+
}[];
|
|
159
|
+
};
|
|
160
|
+
states: {
|
|
161
|
+
[k: string]: {
|
|
162
|
+
status: import('./index.js').Status;
|
|
163
|
+
screenshot: import('./index.js').Image | null;
|
|
164
|
+
screenshotsByPath: Record<string, import('./index.js').Image>;
|
|
165
|
+
recognizer: import('./index.js').RecognizerResult | null;
|
|
166
|
+
looksLike: string[];
|
|
167
|
+
businessEvents: import('./index.js').BusinessEventResult | null;
|
|
168
|
+
checks: import('./index.js').CheckResult[];
|
|
169
|
+
reachedBy: string[];
|
|
170
|
+
notes: string[];
|
|
171
|
+
confidence: "confirmed" | "assumed";
|
|
172
|
+
source: string[];
|
|
173
|
+
expectedEvents: string[];
|
|
174
|
+
seeds?: string[] | undefined;
|
|
175
|
+
client?: string | undefined;
|
|
176
|
+
name: string;
|
|
177
|
+
chart: string | null;
|
|
178
|
+
description: string;
|
|
179
|
+
snapshot: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
transitions: {
|
|
183
|
+
[k: string]: {
|
|
184
|
+
status: import('./index.js').Status;
|
|
185
|
+
clip: (import('./index.js').Clip & {
|
|
186
|
+
captions?: string;
|
|
187
|
+
}) | null;
|
|
188
|
+
timeline: import('./index.js').TimelineEntry[];
|
|
189
|
+
reason: string | null;
|
|
190
|
+
reachedBy: string[];
|
|
191
|
+
client?: string | undefined;
|
|
192
|
+
id: string;
|
|
193
|
+
source: string;
|
|
194
|
+
target: string | null;
|
|
195
|
+
event: string;
|
|
196
|
+
kind: import('./index.js').EventKind;
|
|
197
|
+
how: string | null;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
paths: {
|
|
201
|
+
id: string;
|
|
202
|
+
key: string;
|
|
203
|
+
name: string;
|
|
204
|
+
kind: import('./plan.js').PlannedPath["kind"];
|
|
205
|
+
status: import('./index.js').Status;
|
|
206
|
+
attempts: {
|
|
207
|
+
status: "passed" | "failed";
|
|
208
|
+
error: string | null;
|
|
209
|
+
stoppedAt: string | null;
|
|
210
|
+
trace: string | null;
|
|
211
|
+
traces?: Record<string, string>;
|
|
212
|
+
}[];
|
|
213
|
+
steps: {
|
|
214
|
+
transition: string;
|
|
215
|
+
event: string;
|
|
216
|
+
status: import('./index.js').Status;
|
|
217
|
+
reason: string | null;
|
|
218
|
+
}[];
|
|
219
|
+
stoppedAt: string | null;
|
|
220
|
+
seed?: string;
|
|
221
|
+
durationMs?: number;
|
|
222
|
+
setupMs?: number;
|
|
223
|
+
reusedFrom?: string;
|
|
224
|
+
}[];
|
|
225
|
+
journeys: {
|
|
226
|
+
name: string;
|
|
227
|
+
description: string;
|
|
228
|
+
status: import('./index.js').Status | "not-run";
|
|
229
|
+
paths: string[];
|
|
230
|
+
stoppedAt: string | null;
|
|
231
|
+
}[];
|
|
232
|
+
seeds: {
|
|
233
|
+
paths: string[];
|
|
234
|
+
verifiedBy: string[];
|
|
235
|
+
blocked?: string | undefined;
|
|
236
|
+
for?: string[] | undefined;
|
|
237
|
+
shows?: string | undefined;
|
|
238
|
+
name: string;
|
|
239
|
+
at: string[];
|
|
240
|
+
how: string | null;
|
|
241
|
+
}[];
|
|
242
|
+
coverage: {
|
|
243
|
+
[x: string]: {
|
|
244
|
+
states: {
|
|
245
|
+
total: number;
|
|
246
|
+
passed: number;
|
|
247
|
+
failed: number;
|
|
248
|
+
flaky: number;
|
|
249
|
+
notReached: number;
|
|
250
|
+
};
|
|
251
|
+
transitions: {
|
|
252
|
+
total: number;
|
|
253
|
+
passed: number;
|
|
254
|
+
failed: number;
|
|
255
|
+
flaky: number;
|
|
256
|
+
notReached: number;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
overall: {
|
|
260
|
+
states: {
|
|
261
|
+
total: number;
|
|
262
|
+
passed: number;
|
|
263
|
+
failed: number;
|
|
264
|
+
flaky: number;
|
|
265
|
+
notReached: number;
|
|
266
|
+
};
|
|
267
|
+
transitions: {
|
|
268
|
+
total: number;
|
|
269
|
+
passed: number;
|
|
270
|
+
failed: number;
|
|
271
|
+
flaky: number;
|
|
272
|
+
notReached: number;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
privacy: {
|
|
277
|
+
findings: string[];
|
|
278
|
+
passed: boolean;
|
|
279
|
+
};
|
|
280
|
+
reports: {
|
|
281
|
+
junit: string;
|
|
282
|
+
ctrf: string;
|
|
283
|
+
mermaid: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
ok: boolean;
|
|
287
|
+
}>;
|
|
288
|
+
/** Compose runs of a config (its shards, or a rerun and the run before it) into one run. */
|
|
289
|
+
export declare function mergeConfigRuns<C>(config: AtlasConfig<C>, runDirs: string[], options?: PrepareOptions & {
|
|
290
|
+
output?: string;
|
|
291
|
+
}, baseDirectory?: string): {
|
|
292
|
+
runDir: string;
|
|
293
|
+
manifest: {
|
|
294
|
+
$schema: string;
|
|
295
|
+
schemaVersion: number;
|
|
296
|
+
run: {
|
|
297
|
+
id: string;
|
|
298
|
+
startedAt: string;
|
|
299
|
+
finishedAt: string | null;
|
|
300
|
+
progress: {
|
|
301
|
+
totalPaths: number;
|
|
302
|
+
completedPaths: number;
|
|
303
|
+
activePaths: string[];
|
|
304
|
+
updatedAt: string;
|
|
305
|
+
};
|
|
306
|
+
durationMs: number;
|
|
307
|
+
commit: string | null;
|
|
308
|
+
branch: string | null;
|
|
309
|
+
environment: {
|
|
310
|
+
clients?: Record<string, string> | undefined;
|
|
311
|
+
driver: string;
|
|
312
|
+
};
|
|
313
|
+
mode: RunMode;
|
|
314
|
+
specVersion: string;
|
|
315
|
+
specDirectory: string;
|
|
316
|
+
approvals: unknown[];
|
|
317
|
+
scope: {
|
|
318
|
+
state?: string | undefined;
|
|
319
|
+
chart: string;
|
|
320
|
+
start: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
charts: {
|
|
324
|
+
id: string;
|
|
325
|
+
file: string;
|
|
326
|
+
description: string;
|
|
327
|
+
parentState: string | null;
|
|
328
|
+
handOffs: {
|
|
329
|
+
[k: string]: string;
|
|
330
|
+
};
|
|
331
|
+
}[];
|
|
332
|
+
map: {
|
|
333
|
+
nodes: {
|
|
334
|
+
id: string;
|
|
335
|
+
parent: string | null;
|
|
336
|
+
chart: string;
|
|
337
|
+
type: string;
|
|
338
|
+
initial: string | null;
|
|
339
|
+
inScope: boolean;
|
|
340
|
+
}[];
|
|
341
|
+
edges: {
|
|
342
|
+
id: string;
|
|
343
|
+
source: string;
|
|
344
|
+
target: string;
|
|
345
|
+
event: string;
|
|
346
|
+
kind: import('./index.js').EventKind;
|
|
347
|
+
inScope: boolean;
|
|
348
|
+
}[];
|
|
349
|
+
};
|
|
350
|
+
states: {
|
|
351
|
+
[k: string]: {
|
|
352
|
+
status: import('./index.js').Status;
|
|
353
|
+
screenshot: import('./index.js').Image | null;
|
|
354
|
+
screenshotsByPath: Record<string, import('./index.js').Image>;
|
|
355
|
+
recognizer: import('./index.js').RecognizerResult | null;
|
|
356
|
+
looksLike: string[];
|
|
357
|
+
businessEvents: import('./index.js').BusinessEventResult | null;
|
|
358
|
+
checks: import('./index.js').CheckResult[];
|
|
359
|
+
reachedBy: string[];
|
|
360
|
+
notes: string[];
|
|
361
|
+
confidence: "confirmed" | "assumed";
|
|
362
|
+
source: string[];
|
|
363
|
+
expectedEvents: string[];
|
|
364
|
+
seeds?: string[] | undefined;
|
|
365
|
+
client?: string | undefined;
|
|
366
|
+
name: string;
|
|
367
|
+
chart: string | null;
|
|
368
|
+
description: string;
|
|
369
|
+
snapshot: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
transitions: {
|
|
373
|
+
[k: string]: {
|
|
374
|
+
status: import('./index.js').Status;
|
|
375
|
+
clip: (import('./index.js').Clip & {
|
|
376
|
+
captions?: string;
|
|
377
|
+
}) | null;
|
|
378
|
+
timeline: import('./index.js').TimelineEntry[];
|
|
379
|
+
reason: string | null;
|
|
380
|
+
reachedBy: string[];
|
|
381
|
+
client?: string | undefined;
|
|
382
|
+
id: string;
|
|
383
|
+
source: string;
|
|
384
|
+
target: string | null;
|
|
385
|
+
event: string;
|
|
386
|
+
kind: import('./index.js').EventKind;
|
|
387
|
+
how: string | null;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
paths: {
|
|
391
|
+
id: string;
|
|
392
|
+
key: string;
|
|
393
|
+
name: string;
|
|
394
|
+
kind: import('./plan.js').PlannedPath["kind"];
|
|
395
|
+
status: import('./index.js').Status;
|
|
396
|
+
attempts: {
|
|
397
|
+
status: "passed" | "failed";
|
|
398
|
+
error: string | null;
|
|
399
|
+
stoppedAt: string | null;
|
|
400
|
+
trace: string | null;
|
|
401
|
+
traces?: Record<string, string>;
|
|
402
|
+
}[];
|
|
403
|
+
steps: {
|
|
404
|
+
transition: string;
|
|
405
|
+
event: string;
|
|
406
|
+
status: import('./index.js').Status;
|
|
407
|
+
reason: string | null;
|
|
408
|
+
}[];
|
|
409
|
+
stoppedAt: string | null;
|
|
410
|
+
seed?: string;
|
|
411
|
+
durationMs?: number;
|
|
412
|
+
setupMs?: number;
|
|
413
|
+
reusedFrom?: string;
|
|
414
|
+
}[];
|
|
415
|
+
journeys: {
|
|
416
|
+
name: string;
|
|
417
|
+
description: string;
|
|
418
|
+
status: import('./index.js').Status | "not-run";
|
|
419
|
+
paths: string[];
|
|
420
|
+
stoppedAt: string | null;
|
|
421
|
+
}[];
|
|
422
|
+
seeds: {
|
|
423
|
+
paths: string[];
|
|
424
|
+
verifiedBy: string[];
|
|
425
|
+
blocked?: string | undefined;
|
|
426
|
+
for?: string[] | undefined;
|
|
427
|
+
shows?: string | undefined;
|
|
428
|
+
name: string;
|
|
429
|
+
at: string[];
|
|
430
|
+
how: string | null;
|
|
431
|
+
}[];
|
|
432
|
+
coverage: {
|
|
433
|
+
[x: string]: {
|
|
434
|
+
states: {
|
|
435
|
+
total: number;
|
|
436
|
+
passed: number;
|
|
437
|
+
failed: number;
|
|
438
|
+
flaky: number;
|
|
439
|
+
notReached: number;
|
|
440
|
+
};
|
|
441
|
+
transitions: {
|
|
442
|
+
total: number;
|
|
443
|
+
passed: number;
|
|
444
|
+
failed: number;
|
|
445
|
+
flaky: number;
|
|
446
|
+
notReached: number;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
overall: {
|
|
450
|
+
states: {
|
|
451
|
+
total: number;
|
|
452
|
+
passed: number;
|
|
453
|
+
failed: number;
|
|
454
|
+
flaky: number;
|
|
455
|
+
notReached: number;
|
|
456
|
+
};
|
|
457
|
+
transitions: {
|
|
458
|
+
total: number;
|
|
459
|
+
passed: number;
|
|
460
|
+
failed: number;
|
|
461
|
+
flaky: number;
|
|
462
|
+
notReached: number;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
privacy: {
|
|
467
|
+
findings: string[];
|
|
468
|
+
passed: boolean;
|
|
469
|
+
};
|
|
470
|
+
reports: {
|
|
471
|
+
junit: string;
|
|
472
|
+
ctrf: string;
|
|
473
|
+
mermaid: string;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
ok: boolean;
|
|
477
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { availableParallelism } from 'node:os';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { lintBundle } from './lint.js';
|
|
4
|
+
import { chartScope, planChart } from './plan.js';
|
|
5
|
+
import { assertAllowedTarget, mergePrivacy } from './privacy.js';
|
|
6
|
+
import { latestRun, mergeRuns, readOutcomes, runPaths, shardPaths } from './run/execute.js';
|
|
7
|
+
import { loadSpecDirectory } from './spec/load.js';
|
|
8
|
+
export function defineConfig(config) {
|
|
9
|
+
return config;
|
|
10
|
+
}
|
|
11
|
+
/** Load, lint and plan a config without running anything. */
|
|
12
|
+
export function prepare(config, baseDirectory = process.cwd(), options = {}) {
|
|
13
|
+
const specs = path.resolve(baseDirectory, config.specs);
|
|
14
|
+
const bundle = loadSpecDirectory(specs);
|
|
15
|
+
const metadata = config.requiredMeta ? { requiredMeta: config.requiredMeta } : {};
|
|
16
|
+
const structure = lintBundle(bundle, metadata);
|
|
17
|
+
const state = options.state ?? config.state;
|
|
18
|
+
const scope = chartScope(bundle, structure.composition, structure.graph, {
|
|
19
|
+
...(config.chart === undefined ? {} : { chart: config.chart }),
|
|
20
|
+
...(config.start === undefined ? {} : { start: config.start }),
|
|
21
|
+
...(config.startLabel === undefined ? {} : { startLabel: config.startLabel }),
|
|
22
|
+
...(config.entryEvents === undefined ? {} : { entryEvents: config.entryEvents }),
|
|
23
|
+
...(state === undefined ? {} : { state })
|
|
24
|
+
});
|
|
25
|
+
const impl = config.implementation;
|
|
26
|
+
const implemented = new Set(Object.entries(impl.events).filter(([, e]) => !e.blocked).map(([k]) => k));
|
|
27
|
+
const full = lintBundle(bundle, {
|
|
28
|
+
...metadata,
|
|
29
|
+
scope: { states: scope.states, events: scope.events },
|
|
30
|
+
implementations: { events: implemented, states: new Set(Object.keys(impl.states)) }
|
|
31
|
+
});
|
|
32
|
+
const isBlocked = (event) => !impl.events[event] || Boolean(impl.events[event].blocked);
|
|
33
|
+
const seeds = Object.entries(impl.seeds ?? {}).map(([name, seed]) => ({
|
|
34
|
+
name,
|
|
35
|
+
at: typeof seed.at === 'string' ? full.graph.valueOf(seed.at) : seed.at,
|
|
36
|
+
...(seed.blocked ? { blocked: seed.blocked } : {}),
|
|
37
|
+
...(seed.for ? { for: seed.for } : {}),
|
|
38
|
+
...(seed.shows ? { shows: seed.shows } : {})
|
|
39
|
+
}));
|
|
40
|
+
for (const seed of seeds) {
|
|
41
|
+
const shows = impl.seeds[seed.name].shows;
|
|
42
|
+
if (shows && !full.graph.resolve(seed.at).active.includes(shows))
|
|
43
|
+
throw new Error(`The seed "${seed.name}" shows "${shows}", which is not active where it starts`);
|
|
44
|
+
for (const event of seed.for ?? [])
|
|
45
|
+
if (!full.graph.stateNames().some((n) => full.graph.node(n)?.on?.[event]))
|
|
46
|
+
throw new Error(`The seed "${seed.name}" is for "${event}", which no state handles`);
|
|
47
|
+
}
|
|
48
|
+
const plan = planChart(bundle, full.graph, scope, { isBlocked, ...(impl.canStart ? { canStart: impl.canStart } : {}), seeds, hasSetup: Boolean(impl.setup) });
|
|
49
|
+
return { bundle, lint: full, scope, plan, specs };
|
|
50
|
+
}
|
|
51
|
+
const contextOf = (config, prepared) => ({
|
|
52
|
+
bundle: prepared.bundle,
|
|
53
|
+
composition: prepared.lint.composition,
|
|
54
|
+
graph: prepared.lint.graph,
|
|
55
|
+
scope: prepared.scope,
|
|
56
|
+
implementation: config.implementation,
|
|
57
|
+
journeys: prepared.plan.journeys,
|
|
58
|
+
seeds: prepared.plan.seeds,
|
|
59
|
+
...(config.eventMatchers ? { eventMatchers: config.eventMatchers } : {}),
|
|
60
|
+
...(config.privacy ? { privacy: config.privacy } : {}),
|
|
61
|
+
...(config.environment ? { environment: config.environment } : {})
|
|
62
|
+
});
|
|
63
|
+
/** Run a config end to end and write its manifest and reports. */
|
|
64
|
+
export async function runConfig(config, options = {}, baseDirectory = process.cwd()) {
|
|
65
|
+
const prepared = prepare(config, baseDirectory, options);
|
|
66
|
+
const structural = prepared.lint.findings.filter((f) => f.rule !== 'implemented');
|
|
67
|
+
if (structural.length) {
|
|
68
|
+
throw new Error(`The spec is not executable:\n${structural.map((f) => ` [${f.rule}] ${f.message}`).join('\n')}`);
|
|
69
|
+
}
|
|
70
|
+
assertAllowedTarget(config.targets ?? [], mergePrivacy(config.privacy));
|
|
71
|
+
await config.beforeRun?.();
|
|
72
|
+
const driver = typeof config.driver === 'function' ? await config.driver() : config.driver;
|
|
73
|
+
const outputRoot = path.resolve(baseDirectory, options.output ?? config.output ?? 'atlas-runs');
|
|
74
|
+
let paths = prepared.plan.paths.filter((p) => (!options.paths || options.paths.includes(p.id)) && (!options.seeds || options.seeds.includes(p.seed ?? 'start')));
|
|
75
|
+
if (options.shard)
|
|
76
|
+
paths = shardPaths(paths, options.shard);
|
|
77
|
+
const reuseDir = options.reuse === 'latest' ? latestRun(outputRoot) : options.reuse ? path.resolve(options.reuse) : null;
|
|
78
|
+
const reused = reuseDir ? readOutcomes(reuseDir) : null;
|
|
79
|
+
if (options.reuse && !reused)
|
|
80
|
+
throw new Error(`There is no earlier run to reuse${reuseDir ? ` at ${reuseDir}` : ''}`);
|
|
81
|
+
return runPaths({
|
|
82
|
+
...contextOf(config, prepared),
|
|
83
|
+
paths,
|
|
84
|
+
driver,
|
|
85
|
+
mode: options.mode ?? 'fast',
|
|
86
|
+
outputRoot,
|
|
87
|
+
...(options.retry === undefined ? {} : { retry: options.retry }),
|
|
88
|
+
...(config.stepTimeoutMs === undefined ? {} : { stepTimeoutMs: config.stepTimeoutMs }),
|
|
89
|
+
eventSources: config.eventSources ? await config.eventSources() : [],
|
|
90
|
+
workers: options.workers ?? config.workers ?? availableParallelism(),
|
|
91
|
+
...(options.shard ? { shard: options.shard } : {}),
|
|
92
|
+
...(reused && reuseDir ? { reuse: { runDir: reuseDir, outcomes: reused.outcomes } } : {}),
|
|
93
|
+
...(options.log ? { log: options.log } : {})
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/** Compose runs of a config (its shards, or a rerun and the run before it) into one run. */
|
|
97
|
+
export function mergeConfigRuns(config, runDirs, options = {}, baseDirectory = process.cwd()) {
|
|
98
|
+
const prepared = prepare(config, baseDirectory, options);
|
|
99
|
+
return mergeRuns(contextOf(config, prepared), prepared.plan.paths, runDirs.map((d) => path.resolve(d)), { outputRoot: path.resolve(baseDirectory, options.output ?? config.output ?? 'atlas-runs') });
|
|
100
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { EventMatcher, EventSource } from '../run/types.js';
|
|
2
|
+
/** A CloudEvents 1.0 event in the JSON format (https://cloudevents.io). */
|
|
3
|
+
export type CloudEvent = {
|
|
4
|
+
specversion: '1.0';
|
|
5
|
+
id: string;
|
|
6
|
+
source: string;
|
|
7
|
+
type: string;
|
|
8
|
+
time?: string;
|
|
9
|
+
subject?: string;
|
|
10
|
+
datacontenttype?: string;
|
|
11
|
+
data?: unknown;
|
|
12
|
+
[extension: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
/** Parse an HTTP delivery in either CloudEvents content mode (structured, binary or batch). */
|
|
15
|
+
export declare function cloudEventsFromHttp(headers: Record<string, string | string[] | undefined>, body: string): CloudEvent[];
|
|
16
|
+
/**
|
|
17
|
+
* An HTTP endpoint the system under test sends CloudEvents to (any content mode). Point the
|
|
18
|
+
* product's event bus, webhook relay or OpenTelemetry collector's CloudEvents exporter at it.
|
|
19
|
+
*/
|
|
20
|
+
export declare function cloudEventsHttpSource(options?: {
|
|
21
|
+
port?: number;
|
|
22
|
+
host?: string;
|
|
23
|
+
}): Promise<EventSource & {
|
|
24
|
+
url: string;
|
|
25
|
+
}>;
|
|
26
|
+
/** Lines appended to a log file during a step, for products whose only event stream is a log. */
|
|
27
|
+
export declare function logFileSource(file: string, options?: {
|
|
28
|
+
settleMs?: number;
|
|
29
|
+
}): EventSource;
|
|
30
|
+
export type BusinessEventResult = {
|
|
31
|
+
expected: string[];
|
|
32
|
+
observed: string[];
|
|
33
|
+
missing: string[];
|
|
34
|
+
noSignal: string[];
|
|
35
|
+
events: CloudEvent[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Keep what belongs to one attempt when attempts run side by side: events and log lines that
|
|
39
|
+
* mention one of its correlation ids. With no ids, everything is kept.
|
|
40
|
+
*/
|
|
41
|
+
export declare function correlated(collected: {
|
|
42
|
+
events: CloudEvent[];
|
|
43
|
+
text: string;
|
|
44
|
+
}, ids: string[]): {
|
|
45
|
+
events: CloudEvent[];
|
|
46
|
+
text: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Compare the business events a state expects with what the sources saw. A business event is
|
|
50
|
+
* observed when its matcher matches; with no matcher, a CloudEvent whose `type` equals the name.
|
|
51
|
+
* Events with neither a matcher nor any CloudEvents source are "no signal", never "missing".
|
|
52
|
+
*/
|
|
53
|
+
export declare function compareBusinessEvents(expected: string[], collected: {
|
|
54
|
+
events: CloudEvent[];
|
|
55
|
+
text: string;
|
|
56
|
+
}, matchers: Record<string, EventMatcher>, hasCloudEvents: boolean): BusinessEventResult;
|