@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,17 @@
|
|
|
1
|
+
import { bundleIndexKey, createBundleReader, readBundleIndex } from './bundle.js';
|
|
2
|
+
export async function sourceReader(store, args) {
|
|
3
|
+
const index = await readBundleIndex(store, bundleIndexKey(args.sha, args.source));
|
|
4
|
+
if (Object.keys(index).length > 0)
|
|
5
|
+
return createBundleReader(store, index);
|
|
6
|
+
// Existing stored reports remain readable while writers use bundles.
|
|
7
|
+
return async (key) => {
|
|
8
|
+
const obj = await store.get(key);
|
|
9
|
+
return obj === null
|
|
10
|
+
? null
|
|
11
|
+
: {
|
|
12
|
+
key,
|
|
13
|
+
contentType: obj.contentType,
|
|
14
|
+
bytes: new Uint8Array(await new Response(obj.body).arrayBuffer()),
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HtmlReportTest } from './recording-bundle.js';
|
|
2
|
+
import type { SpecEntry } from './explorer-types.js';
|
|
3
|
+
/** Resolve original spec paths, including runner absolute paths, without matching another document. */
|
|
4
|
+
export declare function testsForSpec(entry: SpecEntry, tests: readonly HtmlReportTest[]): readonly HtmlReportTest[];
|
|
5
|
+
/** Build once for the inventory; large suites never scan all tests per row. */
|
|
6
|
+
export declare function specEvidenceCounts(tests: readonly HtmlReportTest[]): ReadonlyMap<string, number>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Resolve original spec paths, including runner absolute paths, without matching another document. */
|
|
2
|
+
export function testsForSpec(entry, tests) {
|
|
3
|
+
return tests.filter((test) => {
|
|
4
|
+
const path = test.report.meta.sourceFile?.replaceAll('\\', '/') ?? '';
|
|
5
|
+
return path === entry.path || path.endsWith(`/${entry.path}`);
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
/** Build once for the inventory; large suites never scan all tests per row. */
|
|
9
|
+
export function specEvidenceCounts(tests) {
|
|
10
|
+
const counts = new Map();
|
|
11
|
+
for (const test of tests) {
|
|
12
|
+
const source = test.report.meta.sourceFile?.replaceAll('\\', '/');
|
|
13
|
+
if (!source)
|
|
14
|
+
continue;
|
|
15
|
+
const at = source.indexOf('specs/');
|
|
16
|
+
const path = at < 0 ? source : source.slice(at);
|
|
17
|
+
counts.set(path, (counts.get(path) ?? 0) + 1);
|
|
18
|
+
}
|
|
19
|
+
return counts;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ObjectStore } from './object-store.js';
|
|
2
|
+
import type { SpecEntry, SpecInventory } from './explorer-types.js';
|
|
3
|
+
export declare function isSpecPath(path: string): boolean;
|
|
4
|
+
export declare function specEntry(path: string, content: string): SpecEntry;
|
|
5
|
+
/** Publish document bodies first; an inventory always names readable content. */
|
|
6
|
+
export declare function publishInventory(store: ObjectStore, args: {
|
|
7
|
+
readonly sha: string;
|
|
8
|
+
readonly documents: readonly {
|
|
9
|
+
readonly path: string;
|
|
10
|
+
readonly content: string;
|
|
11
|
+
}[];
|
|
12
|
+
}): Promise<SpecInventory>;
|
|
13
|
+
export declare function readInventory(store: ObjectStore, sha: string): Promise<SpecInventory | null>;
|
|
14
|
+
export declare function readSpecDocument(store: ObjectStore, sha: string, path: string): Promise<string | null>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { textFingerprint } from './layer-merge.js';
|
|
2
|
+
import { readUtf8, writeUtf8 } from './object-io.js';
|
|
3
|
+
import { eachLimited } from './completion-order.js';
|
|
4
|
+
import { recordExplorerVersion } from './explorer-versions.js';
|
|
5
|
+
import { isCommitSha } from './keys.js';
|
|
6
|
+
export function isSpecPath(path) {
|
|
7
|
+
return (path.startsWith('specs/') &&
|
|
8
|
+
path
|
|
9
|
+
.split('/')
|
|
10
|
+
.every((part) => part.length > 0 &&
|
|
11
|
+
part !== '.' &&
|
|
12
|
+
part !== '..' &&
|
|
13
|
+
!/[\\\u0000-\u001f]/.test(part)));
|
|
14
|
+
}
|
|
15
|
+
export function specEntry(path, content) {
|
|
16
|
+
if (!isSpecPath(path))
|
|
17
|
+
throw new Error('Invalid spec path');
|
|
18
|
+
const file = path.split('/').at(-1) ?? path;
|
|
19
|
+
const kind = file.endsWith('.openslo.yaml')
|
|
20
|
+
? 'openslo'
|
|
21
|
+
: (file.split('.').at(-1) ?? 'document');
|
|
22
|
+
const title = /^\s*Feature:\s*(.+)$/m.exec(content)?.[1] ??
|
|
23
|
+
/^#\s+(.+)$/m.exec(content)?.[1] ??
|
|
24
|
+
file;
|
|
25
|
+
return {
|
|
26
|
+
path,
|
|
27
|
+
fingerprint: textFingerprint(content),
|
|
28
|
+
domain: path.split('/').length > 2 ? path.split('/')[1] : 'Overview',
|
|
29
|
+
kind,
|
|
30
|
+
title,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function inventoryKey(sha) {
|
|
34
|
+
if (!isCommitSha(sha))
|
|
35
|
+
throw new Error('Invalid commit');
|
|
36
|
+
return `commits/${sha}/inventory.json`;
|
|
37
|
+
}
|
|
38
|
+
function documentKey(sha, path) {
|
|
39
|
+
if (!isSpecPath(path))
|
|
40
|
+
throw new Error('Invalid spec path');
|
|
41
|
+
inventoryKey(sha);
|
|
42
|
+
return `commits/${sha}/specs/${encodeURIComponent(path)}`;
|
|
43
|
+
}
|
|
44
|
+
/** Publish document bodies first; an inventory always names readable content. */
|
|
45
|
+
export async function publishInventory(store, args) {
|
|
46
|
+
const entries = args.documents
|
|
47
|
+
.map((doc) => specEntry(doc.path, doc.content))
|
|
48
|
+
.sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0));
|
|
49
|
+
if (new Set(entries.map((entry) => entry.path)).size !== entries.length)
|
|
50
|
+
throw new Error('Duplicate spec');
|
|
51
|
+
await eachLimited(args.documents, 16, async (doc) => {
|
|
52
|
+
await writeUtf8(store, documentKey(args.sha, doc.path), doc.content, 'text/plain; charset=utf-8');
|
|
53
|
+
});
|
|
54
|
+
const inventory = { sha: args.sha, entries };
|
|
55
|
+
await writeUtf8(store, inventoryKey(args.sha), JSON.stringify(inventory), 'application/json');
|
|
56
|
+
await recordExplorerVersion(store, args.sha);
|
|
57
|
+
return inventory;
|
|
58
|
+
}
|
|
59
|
+
export async function readInventory(store, sha) {
|
|
60
|
+
const raw = await readUtf8(store, inventoryKey(sha));
|
|
61
|
+
if (raw === null)
|
|
62
|
+
return null;
|
|
63
|
+
const inventory = JSON.parse(raw);
|
|
64
|
+
if (inventory.sha !== sha ||
|
|
65
|
+
!Array.isArray(inventory.entries) ||
|
|
66
|
+
inventory.entries.some((entry) => !isSpecPath(entry.path)))
|
|
67
|
+
throw new Error('Invalid spec inventory');
|
|
68
|
+
return inventory;
|
|
69
|
+
}
|
|
70
|
+
export async function readSpecDocument(store, sha, path) {
|
|
71
|
+
const inventory = await readInventory(store, sha);
|
|
72
|
+
if (!inventory?.entries.some((entry) => entry.path === path))
|
|
73
|
+
return null;
|
|
74
|
+
return readUtf8(store, documentKey(sha, path));
|
|
75
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ObjectStore, StoredObject } from './object-store.js';
|
|
2
|
+
export declare function normalizeObjectStorePrefix(prefix: string): string;
|
|
3
|
+
/**
|
|
4
|
+
* Decorator that scopes every {@link ObjectStore} operation to a fixed key
|
|
5
|
+
* prefix. Used at composition roots (e.g. API bindings) so feature code uses
|
|
6
|
+
* logical keys while a shared bucket stays partitioned by prefix.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ObjectStoreWithPrefix implements ObjectStore {
|
|
9
|
+
private readonly inner;
|
|
10
|
+
private readonly prefix;
|
|
11
|
+
constructor(inner: ObjectStore, prefix: string);
|
|
12
|
+
private scopedKey;
|
|
13
|
+
get(key: string): Promise<StoredObject | null>;
|
|
14
|
+
put(key: string, bytes: Uint8Array, contentType: string): Promise<void>;
|
|
15
|
+
head(key: string): Promise<boolean>;
|
|
16
|
+
delete(key: string): Promise<void>;
|
|
17
|
+
deleteMany(keys: readonly string[]): Promise<void>;
|
|
18
|
+
getUri(key: string): Promise<string | null>;
|
|
19
|
+
listKeys(prefix?: string): Promise<readonly string[]>;
|
|
20
|
+
withPrefix(subPrefix: string): ObjectStore;
|
|
21
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { assertLogicalObjectKey } from './namespace-guard.js';
|
|
2
|
+
export function normalizeObjectStorePrefix(prefix) {
|
|
3
|
+
if (prefix.length === 0) {
|
|
4
|
+
throw new Error('ObjectStoreWithPrefix: prefix must be non-empty');
|
|
5
|
+
}
|
|
6
|
+
return prefix.endsWith('/') ? prefix : `${prefix}/`;
|
|
7
|
+
}
|
|
8
|
+
function joinObjectStorePrefixes(left, right) {
|
|
9
|
+
return normalizeObjectStorePrefix(`${left}${normalizeObjectStorePrefix(right)}`);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Decorator that scopes every {@link ObjectStore} operation to a fixed key
|
|
13
|
+
* prefix. Used at composition roots (e.g. API bindings) so feature code uses
|
|
14
|
+
* logical keys while a shared bucket stays partitioned by prefix.
|
|
15
|
+
*/
|
|
16
|
+
export class ObjectStoreWithPrefix {
|
|
17
|
+
inner;
|
|
18
|
+
prefix;
|
|
19
|
+
constructor(inner, prefix) {
|
|
20
|
+
this.inner = inner;
|
|
21
|
+
this.prefix = normalizeObjectStorePrefix(prefix);
|
|
22
|
+
}
|
|
23
|
+
scopedKey(key) {
|
|
24
|
+
assertLogicalObjectKey(key);
|
|
25
|
+
return `${this.prefix}${key}`;
|
|
26
|
+
}
|
|
27
|
+
get(key) {
|
|
28
|
+
return this.inner.get(this.scopedKey(key));
|
|
29
|
+
}
|
|
30
|
+
put(key, bytes, contentType) {
|
|
31
|
+
return this.inner.put(this.scopedKey(key), bytes, contentType);
|
|
32
|
+
}
|
|
33
|
+
head(key) {
|
|
34
|
+
return this.inner.head(this.scopedKey(key));
|
|
35
|
+
}
|
|
36
|
+
delete(key) {
|
|
37
|
+
return this.inner.delete(this.scopedKey(key));
|
|
38
|
+
}
|
|
39
|
+
deleteMany(keys) {
|
|
40
|
+
return this.inner.deleteMany(keys.map((key) => this.scopedKey(key)));
|
|
41
|
+
}
|
|
42
|
+
getUri(key) {
|
|
43
|
+
return this.inner.getUri(this.scopedKey(key));
|
|
44
|
+
}
|
|
45
|
+
async listKeys(prefix = '') {
|
|
46
|
+
const scopedPrefix = `${this.prefix}${prefix}`;
|
|
47
|
+
const keys = await this.inner.listKeys(scopedPrefix);
|
|
48
|
+
return keys.map((k) => k.slice(this.prefix.length));
|
|
49
|
+
}
|
|
50
|
+
withPrefix(subPrefix) {
|
|
51
|
+
return new ObjectStoreWithPrefix(this.inner, joinObjectStorePrefixes(this.prefix, subPrefix));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { fileLabel } from './format.js';
|
|
2
|
+
function packageOf(testId) {
|
|
3
|
+
const source = testId.split('/')[0] ?? '';
|
|
4
|
+
const cut = source.indexOf('--');
|
|
5
|
+
const name = cut < 0 ? source : source.slice(0, cut);
|
|
6
|
+
return name.length > 0 ? name : 'report';
|
|
7
|
+
}
|
|
8
|
+
export function testCatalogEntity(test) {
|
|
9
|
+
const meta = test.report.meta;
|
|
10
|
+
const file = fileLabel(meta.sourceFile);
|
|
11
|
+
const packageName = packageOf(meta.testId);
|
|
12
|
+
const error = meta.error?.split('\n')[0] ?? '';
|
|
13
|
+
return {
|
|
14
|
+
id: meta.testId,
|
|
15
|
+
title: meta.title,
|
|
16
|
+
status: meta.status,
|
|
17
|
+
durationMs: meta.durationMs,
|
|
18
|
+
file,
|
|
19
|
+
packageName,
|
|
20
|
+
runtime: meta.runtime,
|
|
21
|
+
detail: error,
|
|
22
|
+
search: [
|
|
23
|
+
meta.title,
|
|
24
|
+
meta.testId,
|
|
25
|
+
meta.sourceFile ?? '',
|
|
26
|
+
file,
|
|
27
|
+
meta.system,
|
|
28
|
+
meta.runtime,
|
|
29
|
+
packageName,
|
|
30
|
+
error,
|
|
31
|
+
].join(' '),
|
|
32
|
+
href: null,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Timers } from './clock.js';
|
|
2
|
+
import type { FlatFrame } from './frames.js';
|
|
3
|
+
import type { Route } from './hash.js';
|
|
4
|
+
import type { ReportData } from './types.js';
|
|
5
|
+
import type { Accessor } from 'solid-js';
|
|
6
|
+
import type { ReportNavigation } from './navigation.js';
|
|
7
|
+
export type ReportNav = {
|
|
8
|
+
route: Accessor<Route>;
|
|
9
|
+
showHelp: Accessor<boolean>;
|
|
10
|
+
showPalette: Accessor<boolean>;
|
|
11
|
+
playing: Accessor<boolean>;
|
|
12
|
+
navigate: (route: Route, replace?: boolean) => void;
|
|
13
|
+
/** Write the in-memory route to the URL now (end of a scrub drag). */
|
|
14
|
+
commitHash: () => void;
|
|
15
|
+
setParam: (key: string, value: string) => void;
|
|
16
|
+
goFrame: (frame: FlatFrame | null, node?: string | undefined) => void;
|
|
17
|
+
stepFrame: (delta: number) => void;
|
|
18
|
+
toggleHelp: () => void;
|
|
19
|
+
closeHelp: () => void;
|
|
20
|
+
togglePalette: () => void;
|
|
21
|
+
closePalette: () => void;
|
|
22
|
+
togglePlay: () => void;
|
|
23
|
+
stopPlay: () => void;
|
|
24
|
+
};
|
|
25
|
+
export declare function useReportNav(data: ReportData, navigation: ReportNavigation, timers: Timers): ReportNav;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { selectedFrame, testFrames } from './frames.js';
|
|
2
|
+
import { buildHash, parseHash } from './hash.js';
|
|
3
|
+
import { onReportKeyDown } from './keyboard.js';
|
|
4
|
+
import { createEffect, createSignal, onCleanup } from 'solid-js';
|
|
5
|
+
function advancePlay(data, route, navigate, stopPlay) {
|
|
6
|
+
const r = route();
|
|
7
|
+
const test = r.view === 'test'
|
|
8
|
+
? (data.tests.find((t) => t.report.meta.testId === r.testId) ?? null)
|
|
9
|
+
: null;
|
|
10
|
+
if (r.view !== 'test' || !test) {
|
|
11
|
+
stopPlay();
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const frames = testFrames(test);
|
|
15
|
+
const cur = selectedFrame(frames, r);
|
|
16
|
+
const idx = cur ? cur.index : -1;
|
|
17
|
+
const frame = frames[idx + 1];
|
|
18
|
+
if (idx < 0 || !frame) {
|
|
19
|
+
stopPlay();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
navigate({
|
|
23
|
+
view: 'test',
|
|
24
|
+
testId: r.testId,
|
|
25
|
+
params: { ...r.params, frame: String(frame.index + 1) },
|
|
26
|
+
}, true);
|
|
27
|
+
}
|
|
28
|
+
function bindWindowListeners(opts) {
|
|
29
|
+
onCleanup(opts.navigation.subscribeHash(() => {
|
|
30
|
+
opts.cancelHashWrite();
|
|
31
|
+
opts.stopPlay();
|
|
32
|
+
opts.setRoute(parseHash(opts.navigation.readHash()));
|
|
33
|
+
}));
|
|
34
|
+
onCleanup(opts.navigation.subscribeKeys((e) => onReportKeyDown(e, opts.data, {
|
|
35
|
+
toggleHelp: () => opts.setShowHelp((p) => !p),
|
|
36
|
+
showHelp: opts.showHelp,
|
|
37
|
+
showPalette: opts.showPalette,
|
|
38
|
+
togglePalette: opts.togglePalette,
|
|
39
|
+
stopPlay: opts.stopPlay,
|
|
40
|
+
navigate: (next) => opts.navigate(next),
|
|
41
|
+
goFrame: opts.goFrame,
|
|
42
|
+
togglePlay: opts.togglePlay,
|
|
43
|
+
setParam: opts.setParam,
|
|
44
|
+
route: opts.route,
|
|
45
|
+
})));
|
|
46
|
+
createEffect(() => {
|
|
47
|
+
const r = opts.route();
|
|
48
|
+
const test = r.view === 'test'
|
|
49
|
+
? opts.data.tests.find((t) => t.report.meta.testId === r.testId)
|
|
50
|
+
: null;
|
|
51
|
+
opts.navigation.setTitle((test ? `${test.report.meta.title} · ` : '') + opts.data.title);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function makeReportNav(state) {
|
|
55
|
+
return state;
|
|
56
|
+
}
|
|
57
|
+
function navigateFrame(args) {
|
|
58
|
+
if (args.route.view !== 'test')
|
|
59
|
+
return;
|
|
60
|
+
const params = {
|
|
61
|
+
...args.route.params,
|
|
62
|
+
frame: args.frame ? String(args.frame.index + 1) : '',
|
|
63
|
+
};
|
|
64
|
+
if (args.node !== undefined)
|
|
65
|
+
params['node'] = args.node || '';
|
|
66
|
+
args.navigate({ view: 'test', testId: args.route.testId, params }, true);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Route signal backed by the URL hash. Replace-navigation (scrub, play,
|
|
70
|
+
* toggles) updates the in-memory route at once and writes the URL on a
|
|
71
|
+
* trailing debounce: rendering never waits on history, and rapid scrubbing
|
|
72
|
+
* cannot trip replaceState rate limits.
|
|
73
|
+
*/
|
|
74
|
+
function createHashRoute(navigation, timers) {
|
|
75
|
+
const [route, setRoute] = createSignal(parseHash(navigation.readHash()));
|
|
76
|
+
let hashTimer = null;
|
|
77
|
+
const cancelHashWrite = () => {
|
|
78
|
+
if (hashTimer !== null)
|
|
79
|
+
timers.clearTimeout(hashTimer);
|
|
80
|
+
hashTimer = null;
|
|
81
|
+
};
|
|
82
|
+
const commitHash = () => {
|
|
83
|
+
cancelHashWrite();
|
|
84
|
+
navigation.writeHash(buildHash(route()), true);
|
|
85
|
+
};
|
|
86
|
+
const navigate = (next, replace = false) => {
|
|
87
|
+
cancelHashWrite();
|
|
88
|
+
setRoute(next);
|
|
89
|
+
if (replace)
|
|
90
|
+
hashTimer = timers.setTimeout(commitHash, 200);
|
|
91
|
+
else
|
|
92
|
+
navigation.writeHash(buildHash(next), false);
|
|
93
|
+
};
|
|
94
|
+
onCleanup(cancelHashWrite);
|
|
95
|
+
return { route, setRoute, commitHash, navigate, cancelHashWrite };
|
|
96
|
+
}
|
|
97
|
+
export function useReportNav(data, navigation, timers) {
|
|
98
|
+
const { route, setRoute, commitHash, navigate, cancelHashWrite } = createHashRoute(navigation, timers);
|
|
99
|
+
const [showHelp, setShowHelp] = createSignal(false);
|
|
100
|
+
const [showPalette, setShowPalette] = createSignal(false);
|
|
101
|
+
const { playing, stopPlay, togglePlay } = createPlayback(data, route, navigate, timers);
|
|
102
|
+
const goFrame = (frame, node) => navigateFrame({
|
|
103
|
+
route: route(),
|
|
104
|
+
navigate,
|
|
105
|
+
frame,
|
|
106
|
+
...(node !== undefined ? { node } : {}),
|
|
107
|
+
});
|
|
108
|
+
const setParam = (key, value) => {
|
|
109
|
+
const r = route();
|
|
110
|
+
if (r.view !== 'test')
|
|
111
|
+
return;
|
|
112
|
+
navigate({ view: 'test', testId: r.testId, params: { ...r.params, [key]: value } }, true);
|
|
113
|
+
};
|
|
114
|
+
const stepFrame = (delta) => {
|
|
115
|
+
const r = route();
|
|
116
|
+
if (r.view !== 'test')
|
|
117
|
+
return;
|
|
118
|
+
const test = data.tests.find((t) => t.report.meta.testId === r.testId) ?? null;
|
|
119
|
+
if (!test)
|
|
120
|
+
return;
|
|
121
|
+
const frames = testFrames(test);
|
|
122
|
+
const sel = selectedFrame(frames, r);
|
|
123
|
+
const next = (sel ? sel.index : -1) + delta;
|
|
124
|
+
if (next < 0 || next >= frames.length)
|
|
125
|
+
return;
|
|
126
|
+
goFrame(frames[next] ?? null);
|
|
127
|
+
};
|
|
128
|
+
bindWindowListeners({
|
|
129
|
+
data,
|
|
130
|
+
navigation,
|
|
131
|
+
cancelHashWrite,
|
|
132
|
+
route,
|
|
133
|
+
setRoute,
|
|
134
|
+
showHelp,
|
|
135
|
+
setShowHelp,
|
|
136
|
+
showPalette,
|
|
137
|
+
togglePalette: () => setShowPalette((open) => !open),
|
|
138
|
+
stopPlay,
|
|
139
|
+
navigate,
|
|
140
|
+
goFrame,
|
|
141
|
+
togglePlay,
|
|
142
|
+
setParam,
|
|
143
|
+
});
|
|
144
|
+
return makeReportNav({
|
|
145
|
+
route,
|
|
146
|
+
showHelp,
|
|
147
|
+
showPalette,
|
|
148
|
+
playing,
|
|
149
|
+
navigate,
|
|
150
|
+
commitHash,
|
|
151
|
+
setParam,
|
|
152
|
+
goFrame,
|
|
153
|
+
stepFrame,
|
|
154
|
+
toggleHelp: () => setShowHelp(!showHelp()),
|
|
155
|
+
closeHelp: () => setShowHelp(false),
|
|
156
|
+
togglePalette: () => setShowPalette((open) => !open),
|
|
157
|
+
closePalette: () => setShowPalette(false),
|
|
158
|
+
togglePlay,
|
|
159
|
+
stopPlay,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function createPlayback(data, route, navigate, timers) {
|
|
163
|
+
let timer = null;
|
|
164
|
+
const [playing, setPlaying] = createSignal(false);
|
|
165
|
+
const stopPlay = () => {
|
|
166
|
+
if (timer !== null)
|
|
167
|
+
timers.clearInterval(timer);
|
|
168
|
+
timer = null;
|
|
169
|
+
setPlaying(false);
|
|
170
|
+
};
|
|
171
|
+
const togglePlay = () => {
|
|
172
|
+
if (playing()) {
|
|
173
|
+
stopPlay();
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
setPlaying(true);
|
|
177
|
+
timer = timers.setInterval(() => advancePlay(data, route, navigate, stopPlay), 700);
|
|
178
|
+
};
|
|
179
|
+
onCleanup(stopPlay);
|
|
180
|
+
return { playing, stopPlay, togglePlay };
|
|
181
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const RUN_STATUSES: readonly ["passed", "failed", "flaky", "not-reached"];
|
|
3
|
+
export declare const RunStatusSchema: z.ZodEnum<{
|
|
4
|
+
passed: "passed";
|
|
5
|
+
failed: "failed";
|
|
6
|
+
flaky: "flaky";
|
|
7
|
+
"not-reached": "not-reached";
|
|
8
|
+
}>;
|
|
9
|
+
export type RunStatus = z.infer<typeof RunStatusSchema>;
|
|
10
|
+
/**
|
|
11
|
+
* Who or what sends an event: a person using the product (`user`), another system (`system`), the
|
|
12
|
+
* passage of time (`time`), or a child chart handing control back to its parent (`hand-off`).
|
|
13
|
+
* `member` is read as `user`, for specs written before the kinds were renamed.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EVENT_KINDS: readonly ["user", "system", "time", "hand-off"];
|
|
16
|
+
export declare const EventKindSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
17
|
+
time: "time";
|
|
18
|
+
user: "user";
|
|
19
|
+
system: "system";
|
|
20
|
+
"hand-off": "hand-off";
|
|
21
|
+
}>>;
|
|
22
|
+
export type EventKind = z.infer<typeof EventKindSchema>;
|
|
23
|
+
export declare const CONFIDENCES: readonly ["confirmed", "assumed"];
|
|
24
|
+
export declare const ConfidenceSchema: z.ZodEnum<{
|
|
25
|
+
confirmed: "confirmed";
|
|
26
|
+
assumed: "assumed";
|
|
27
|
+
}>;
|
|
28
|
+
export type Confidence = z.infer<typeof ConfidenceSchema>;
|
|
29
|
+
export declare const ImageSchema: z.ZodObject<{
|
|
30
|
+
png: z.ZodString;
|
|
31
|
+
webp: z.ZodOptional<z.ZodString>;
|
|
32
|
+
client: z.ZodOptional<z.ZodString>;
|
|
33
|
+
also: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
png: z.ZodString;
|
|
35
|
+
webp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
client: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type Image = z.infer<typeof ImageSchema>;
|
|
40
|
+
export declare const CountSchema: z.ZodObject<{
|
|
41
|
+
total: z.ZodNumber;
|
|
42
|
+
passed: z.ZodNumber;
|
|
43
|
+
failed: z.ZodNumber;
|
|
44
|
+
flaky: z.ZodNumber;
|
|
45
|
+
notReached: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type Count = z.infer<typeof CountSchema>;
|
|
48
|
+
export declare const ISSUE_SEVERITIES: readonly ["error", "warning", "info"];
|
|
49
|
+
export type IssueSeverity = (typeof ISSUE_SEVERITIES)[number];
|
|
50
|
+
export type DataIssue = {
|
|
51
|
+
severity: IssueSeverity;
|
|
52
|
+
file: string;
|
|
53
|
+
path: string;
|
|
54
|
+
message: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const TRANSITION_ID_SEPARATOR = " :: ";
|
|
57
|
+
export declare function transitionId(source: string, event: string): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export const RUN_STATUSES = ['passed', 'failed', 'flaky', 'not-reached'];
|
|
3
|
+
export const RunStatusSchema = z.enum(RUN_STATUSES);
|
|
4
|
+
/**
|
|
5
|
+
* Who or what sends an event: a person using the product (`user`), another system (`system`), the
|
|
6
|
+
* passage of time (`time`), or a child chart handing control back to its parent (`hand-off`).
|
|
7
|
+
* `member` is read as `user`, for specs written before the kinds were renamed.
|
|
8
|
+
*/
|
|
9
|
+
export const EVENT_KINDS = ['user', 'system', 'time', 'hand-off'];
|
|
10
|
+
export const EventKindSchema = z.preprocess((value) => (value === 'member' ? 'user' : value), z.enum(EVENT_KINDS));
|
|
11
|
+
export const CONFIDENCES = ['confirmed', 'assumed'];
|
|
12
|
+
export const ConfidenceSchema = z.enum(CONFIDENCES);
|
|
13
|
+
const ScreenSchema = z.object({
|
|
14
|
+
png: z.string().min(1),
|
|
15
|
+
webp: z.string().min(1).optional().describe('About 400 px wide, for the map; the original image is used while a thumbnail is unavailable'),
|
|
16
|
+
client: z.string().optional().describe('Which client\'s screen it is, in a multi-client run')
|
|
17
|
+
});
|
|
18
|
+
export const ImageSchema = ScreenSchema.extend({
|
|
19
|
+
also: z.array(ScreenSchema.partial({ webp: true })).optional().describe("The other clients' screens at the same moment")
|
|
20
|
+
});
|
|
21
|
+
export const CountSchema = z.object({
|
|
22
|
+
total: z.number().int().nonnegative(),
|
|
23
|
+
passed: z.number().int().nonnegative(),
|
|
24
|
+
failed: z.number().int().nonnegative(),
|
|
25
|
+
flaky: z.number().int().nonnegative(),
|
|
26
|
+
notReached: z.number().int().nonnegative()
|
|
27
|
+
});
|
|
28
|
+
export const ISSUE_SEVERITIES = ['error', 'warning', 'info'];
|
|
29
|
+
export const TRANSITION_ID_SEPARATOR = ' :: ';
|
|
30
|
+
export function transitionId(source, event) {
|
|
31
|
+
return `${source}${TRANSITION_ID_SEPARATOR}${event}`;
|
|
32
|
+
}
|