@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,245 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const SPEC_SCHEMA_VERSION = 1;
|
|
3
|
+
export declare const DesignLinkSchema: z.ZodObject<{
|
|
4
|
+
image: z.ZodString;
|
|
5
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type DesignLink = z.infer<typeof DesignLinkSchema>;
|
|
9
|
+
export declare const ContractStepSchema: z.ZodObject<{
|
|
10
|
+
keyword: z.ZodString;
|
|
11
|
+
text: z.ZodString;
|
|
12
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
13
|
+
docString: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const BusinessContractSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
source: z.ZodString;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
21
|
+
keyword: z.ZodString;
|
|
22
|
+
text: z.ZodString;
|
|
23
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
docString: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type BusinessContract = z.infer<typeof BusinessContractSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* Every field a state's `meta` may carry. Each one is optional on its own: the visualizer keeps
|
|
30
|
+
* the fields that parse and reports the ones that don't.
|
|
31
|
+
*/
|
|
32
|
+
export declare const StateMetaShape: {
|
|
33
|
+
readonly description: z.ZodString;
|
|
34
|
+
readonly snapshot: z.ZodString;
|
|
35
|
+
readonly events: z.ZodArray<z.ZodString>;
|
|
36
|
+
readonly confidence: z.ZodEnum<{
|
|
37
|
+
confirmed: "confirmed";
|
|
38
|
+
assumed: "assumed";
|
|
39
|
+
}>;
|
|
40
|
+
readonly source: z.ZodArray<z.ZodString>;
|
|
41
|
+
readonly checks: z.ZodArray<z.ZodString>;
|
|
42
|
+
readonly childMachine: z.ZodString;
|
|
43
|
+
readonly childFinalEvents: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
44
|
+
readonly deadEnd: z.ZodString;
|
|
45
|
+
readonly owner: z.ZodString;
|
|
46
|
+
readonly tier: z.ZodString;
|
|
47
|
+
readonly quint: z.ZodString;
|
|
48
|
+
readonly gherkin: z.ZodArray<z.ZodString>;
|
|
49
|
+
readonly contracts: z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
source: z.ZodString;
|
|
53
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
55
|
+
keyword: z.ZodString;
|
|
56
|
+
text: z.ZodString;
|
|
57
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
58
|
+
docString: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
readonly design: z.ZodObject<{
|
|
62
|
+
image: z.ZodString;
|
|
63
|
+
url: z.ZodOptional<z.ZodString>;
|
|
64
|
+
label: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
readonly hints: z.ZodArray<z.ZodString>;
|
|
67
|
+
readonly eventKinds: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
68
|
+
time: "time";
|
|
69
|
+
user: "user";
|
|
70
|
+
system: "system";
|
|
71
|
+
"hand-off": "hand-off";
|
|
72
|
+
}>>>;
|
|
73
|
+
readonly timeEvents: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
74
|
+
};
|
|
75
|
+
export declare const StateMetaSchema: z.ZodObject<{
|
|
76
|
+
description: z.ZodOptional<z.ZodString>;
|
|
77
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
78
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
confirmed: "confirmed";
|
|
81
|
+
assumed: "assumed";
|
|
82
|
+
}>>;
|
|
83
|
+
source: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
|
+
checks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
childMachine: z.ZodOptional<z.ZodString>;
|
|
86
|
+
childFinalEvents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
87
|
+
deadEnd: z.ZodOptional<z.ZodString>;
|
|
88
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
89
|
+
tier: z.ZodOptional<z.ZodString>;
|
|
90
|
+
quint: z.ZodOptional<z.ZodString>;
|
|
91
|
+
gherkin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
+
contracts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
source: z.ZodString;
|
|
96
|
+
description: z.ZodOptional<z.ZodString>;
|
|
97
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
98
|
+
keyword: z.ZodString;
|
|
99
|
+
text: z.ZodString;
|
|
100
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
101
|
+
docString: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
design: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
image: z.ZodString;
|
|
106
|
+
url: z.ZodOptional<z.ZodString>;
|
|
107
|
+
label: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
|
+
eventKinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
111
|
+
time: "time";
|
|
112
|
+
user: "user";
|
|
113
|
+
system: "system";
|
|
114
|
+
"hand-off": "hand-off";
|
|
115
|
+
}>>>>;
|
|
116
|
+
timeEvents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type StateMeta = z.infer<typeof StateMetaSchema>;
|
|
119
|
+
export declare const TransitionTargetSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
120
|
+
target: z.ZodString;
|
|
121
|
+
}, z.core.$strip>]>;
|
|
122
|
+
export declare const STATE_TYPES: readonly ["atomic", "compound", "parallel", "final"];
|
|
123
|
+
export type StateType = (typeof STATE_TYPES)[number];
|
|
124
|
+
export type StateNodeConfig = {
|
|
125
|
+
id?: string | undefined;
|
|
126
|
+
initial?: string | undefined;
|
|
127
|
+
type?: 'parallel' | 'final' | undefined;
|
|
128
|
+
meta?: StateMeta | undefined;
|
|
129
|
+
states?: Record<string, StateNodeConfig> | undefined;
|
|
130
|
+
on?: Record<string, z.infer<typeof TransitionTargetSchema>> | undefined;
|
|
131
|
+
};
|
|
132
|
+
export declare const StateNodeSchema: z.ZodType<StateNodeConfig>;
|
|
133
|
+
export declare const MachineSchema: z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
initial: z.ZodOptional<z.ZodString>;
|
|
136
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
parallel: "parallel";
|
|
138
|
+
}>>;
|
|
139
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
description: z.ZodOptional<z.ZodString>;
|
|
141
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
142
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
143
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
confirmed: "confirmed";
|
|
145
|
+
assumed: "assumed";
|
|
146
|
+
}>>;
|
|
147
|
+
source: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
|
+
checks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
|
+
childMachine: z.ZodOptional<z.ZodString>;
|
|
150
|
+
childFinalEvents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
|
+
deadEnd: z.ZodOptional<z.ZodString>;
|
|
152
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
153
|
+
tier: z.ZodOptional<z.ZodString>;
|
|
154
|
+
quint: z.ZodOptional<z.ZodString>;
|
|
155
|
+
gherkin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
contracts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
source: z.ZodString;
|
|
160
|
+
description: z.ZodOptional<z.ZodString>;
|
|
161
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
162
|
+
keyword: z.ZodString;
|
|
163
|
+
text: z.ZodString;
|
|
164
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
165
|
+
docString: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$strip>>>;
|
|
168
|
+
design: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
image: z.ZodString;
|
|
170
|
+
url: z.ZodOptional<z.ZodString>;
|
|
171
|
+
label: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
eventKinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
175
|
+
time: "time";
|
|
176
|
+
user: "user";
|
|
177
|
+
system: "system";
|
|
178
|
+
"hand-off": "hand-off";
|
|
179
|
+
}>>>>;
|
|
180
|
+
timeEvents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
states: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
export declare const JourneySchema: z.ZodObject<{
|
|
185
|
+
description: z.ZodOptional<z.ZodString>;
|
|
186
|
+
events: z.ZodArray<z.ZodString>;
|
|
187
|
+
endsIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
189
|
+
tour: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type JourneyConfig = z.infer<typeof JourneySchema>;
|
|
192
|
+
export declare const JourneysFileSchema: z.ZodObject<{
|
|
193
|
+
journeys: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export declare const AtlasContextSchema: z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
name: z.ZodOptional<z.ZodString>;
|
|
198
|
+
description: z.ZodOptional<z.ZodString>;
|
|
199
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
200
|
+
directories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
export declare const AtlasHandOffSchema: z.ZodObject<{
|
|
203
|
+
from: z.ZodString;
|
|
204
|
+
to: z.ZodString;
|
|
205
|
+
event: z.ZodString;
|
|
206
|
+
description: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
/**
|
|
209
|
+
* `atlas.yaml` at the specs root: the product map. Optional; without it every directory holding a
|
|
210
|
+
* chart becomes a context named after its first path segment.
|
|
211
|
+
*/
|
|
212
|
+
export declare const AtlasFileSchema: z.ZodObject<{
|
|
213
|
+
schemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
title: z.ZodOptional<z.ZodString>;
|
|
215
|
+
description: z.ZodOptional<z.ZodString>;
|
|
216
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
217
|
+
handOffs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
218
|
+
excluded: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
/** `<chart>.layout.json` beside a chart: a hand-tuned layout the visualizer respects. */
|
|
221
|
+
export declare const LayoutFileSchema: z.ZodObject<{
|
|
222
|
+
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
223
|
+
positions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
224
|
+
x: z.ZodNumber;
|
|
225
|
+
y: z.ZodNumber;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
sizes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
228
|
+
width: z.ZodNumber;
|
|
229
|
+
height: z.ZodNumber;
|
|
230
|
+
}, z.core.$strip>>>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
export type LayoutFile = z.infer<typeof LayoutFileSchema>;
|
|
233
|
+
/**
|
|
234
|
+
* `specs/index.json`: the statechart files under the specs root, so a static host can serve the
|
|
235
|
+
* spec without directory listings. `ref` names the branch or commit the files came from.
|
|
236
|
+
*/
|
|
237
|
+
export declare const SpecIndexSchema: z.ZodObject<{
|
|
238
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
239
|
+
generatedAt: z.ZodString;
|
|
240
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
files: z.ZodArray<z.ZodString>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
export type SpecIndex = z.infer<typeof SpecIndexSchema>;
|
|
244
|
+
export declare const STATECHART_FILE_PATTERNS: RegExp[];
|
|
245
|
+
export declare function isStatechartFile(path: string): boolean;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { ConfidenceSchema, EventKindSchema } from './common.js';
|
|
3
|
+
export const SPEC_SCHEMA_VERSION = 1;
|
|
4
|
+
export const DesignLinkSchema = z.object({
|
|
5
|
+
image: z.string().min(1).describe('URL or spec-relative path of a design frame'),
|
|
6
|
+
url: z.string().optional().describe('Where the design lives, for example a Figma frame link'),
|
|
7
|
+
label: z.string().optional()
|
|
8
|
+
});
|
|
9
|
+
export const ContractStepSchema = z.object({
|
|
10
|
+
keyword: z.string().min(1),
|
|
11
|
+
text: z.string(),
|
|
12
|
+
table: z.array(z.array(z.string())).optional(),
|
|
13
|
+
docString: z.string().optional()
|
|
14
|
+
});
|
|
15
|
+
export const BusinessContractSchema = z.object({
|
|
16
|
+
id: z.string().min(1),
|
|
17
|
+
name: z.string().min(1),
|
|
18
|
+
source: z.string().min(1),
|
|
19
|
+
description: z.string().optional(),
|
|
20
|
+
steps: z.array(ContractStepSchema)
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Every field a state's `meta` may carry. Each one is optional on its own: the visualizer keeps
|
|
24
|
+
* the fields that parse and reports the ones that don't.
|
|
25
|
+
*/
|
|
26
|
+
export const StateMetaShape = {
|
|
27
|
+
description: z.string(),
|
|
28
|
+
snapshot: z.string(),
|
|
29
|
+
events: z.array(z.string()).describe('Business events that happen on entering the state'),
|
|
30
|
+
confidence: ConfidenceSchema,
|
|
31
|
+
source: z.array(z.string()),
|
|
32
|
+
checks: z.array(z.string()),
|
|
33
|
+
childMachine: z.string(),
|
|
34
|
+
childFinalEvents: z.record(z.string(), z.string()),
|
|
35
|
+
deadEnd: z.string(),
|
|
36
|
+
owner: z.string(),
|
|
37
|
+
tier: z.string(),
|
|
38
|
+
quint: z.string().describe('Quint model reference'),
|
|
39
|
+
gherkin: z.array(z.string()).describe('Feature files or scenarios that cover the state'),
|
|
40
|
+
contracts: z.array(BusinessContractSchema).describe('Business rules and their exact Given/When/Then examples, copied from the authoritative source'),
|
|
41
|
+
design: DesignLinkSchema,
|
|
42
|
+
hints: z.array(z.string()).describe('What the screen shows, for the placeholder sketch'),
|
|
43
|
+
eventKinds: z
|
|
44
|
+
.record(z.string(), EventKindSchema)
|
|
45
|
+
.describe('Chart-level: who or what sends each event; overrides the runner and the guess'),
|
|
46
|
+
timeEvents: z
|
|
47
|
+
.record(z.string(), z.string())
|
|
48
|
+
.describe('Chart-level: time events and the span each one jumps, for example "5 minutes"')
|
|
49
|
+
};
|
|
50
|
+
export const StateMetaSchema = z.object(StateMetaShape).partial();
|
|
51
|
+
export const TransitionTargetSchema = z.union([
|
|
52
|
+
z.string().min(1),
|
|
53
|
+
z.object({ target: z.string().min(1) })
|
|
54
|
+
]);
|
|
55
|
+
export const STATE_TYPES = ['atomic', 'compound', 'parallel', 'final'];
|
|
56
|
+
export const StateNodeSchema = z.lazy(() => z.object({
|
|
57
|
+
id: z.string().optional(),
|
|
58
|
+
initial: z.string().optional(),
|
|
59
|
+
type: z.enum(['parallel', 'final']).optional(),
|
|
60
|
+
meta: StateMetaSchema.optional(),
|
|
61
|
+
states: z.record(z.string(), StateNodeSchema).optional(),
|
|
62
|
+
on: z.record(z.string(), TransitionTargetSchema).optional()
|
|
63
|
+
}));
|
|
64
|
+
export const MachineSchema = z.object({
|
|
65
|
+
id: z.string().min(1),
|
|
66
|
+
initial: z.string().optional(),
|
|
67
|
+
type: z.enum(['parallel']).optional(),
|
|
68
|
+
meta: StateMetaSchema.optional(),
|
|
69
|
+
states: z.record(z.string(), z.unknown())
|
|
70
|
+
});
|
|
71
|
+
export const JourneySchema = z.object({
|
|
72
|
+
description: z.string().optional(),
|
|
73
|
+
events: z.array(z.string()),
|
|
74
|
+
endsIn: z.array(z.string()).optional(),
|
|
75
|
+
owner: z.string().optional(),
|
|
76
|
+
tour: z.boolean().optional().describe('Include in the guided tour')
|
|
77
|
+
});
|
|
78
|
+
export const JourneysFileSchema = z.object({
|
|
79
|
+
journeys: z.record(z.string(), z.unknown())
|
|
80
|
+
});
|
|
81
|
+
export const AtlasContextSchema = z.object({
|
|
82
|
+
id: z.string().min(1),
|
|
83
|
+
name: z.string().optional(),
|
|
84
|
+
description: z.string().optional(),
|
|
85
|
+
owner: z.string().optional(),
|
|
86
|
+
directories: z.array(z.string()).optional().describe('Spec-relative directories holding its charts')
|
|
87
|
+
});
|
|
88
|
+
export const AtlasHandOffSchema = z.object({
|
|
89
|
+
from: z.string().min(1),
|
|
90
|
+
to: z.string().min(1),
|
|
91
|
+
event: z.string().min(1),
|
|
92
|
+
description: z.string().optional()
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* `atlas.yaml` at the specs root: the product map. Optional; without it every directory holding a
|
|
96
|
+
* chart becomes a context named after its first path segment.
|
|
97
|
+
*/
|
|
98
|
+
export const AtlasFileSchema = z.object({
|
|
99
|
+
schemaVersion: z.number().int().optional(),
|
|
100
|
+
title: z.string().optional(),
|
|
101
|
+
description: z.string().optional(),
|
|
102
|
+
contexts: z.array(z.unknown()).optional(),
|
|
103
|
+
handOffs: z.array(z.unknown()).optional(),
|
|
104
|
+
excluded: z.array(z.string()).optional()
|
|
105
|
+
});
|
|
106
|
+
/** `<chart>.layout.json` beside a chart: a hand-tuned layout the visualizer respects. */
|
|
107
|
+
export const LayoutFileSchema = z.object({
|
|
108
|
+
schemaVersion: z.literal(1).optional(),
|
|
109
|
+
positions: z.record(z.string(), z.object({ x: z.number(), y: z.number() })),
|
|
110
|
+
sizes: z.record(z.string(), z.object({ width: z.number(), height: z.number() })).optional()
|
|
111
|
+
});
|
|
112
|
+
/**
|
|
113
|
+
* `specs/index.json`: the statechart files under the specs root, so a static host can serve the
|
|
114
|
+
* spec without directory listings. `ref` names the branch or commit the files came from.
|
|
115
|
+
*/
|
|
116
|
+
export const SpecIndexSchema = z.object({
|
|
117
|
+
schemaVersion: z.literal(1),
|
|
118
|
+
generatedAt: z.string(),
|
|
119
|
+
ref: z.string().nullable().optional(),
|
|
120
|
+
files: z.array(z.string())
|
|
121
|
+
});
|
|
122
|
+
export const STATECHART_FILE_PATTERNS = [
|
|
123
|
+
/(^|\/)atlas\.ya?ml$/,
|
|
124
|
+
/(^|\/)([\w.-]+\.)?machine\.(ya?ml|json)$/,
|
|
125
|
+
/(^|\/)[\w.-]+\.scxml$/,
|
|
126
|
+
/(^|\/)journeys\.ya?ml$/,
|
|
127
|
+
/(^|\/)known-issues\.md$/,
|
|
128
|
+
/(^|\/)open-questions\.md$/,
|
|
129
|
+
/(^|\/)[\w.-]+\.layout\.json$/
|
|
130
|
+
];
|
|
131
|
+
export function isStatechartFile(path) {
|
|
132
|
+
return STATECHART_FILE_PATTERNS.some((pattern) => pattern.test(path));
|
|
133
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AtlasConfig, RunCommandOptions } from '../../core/src/index.js';
|
|
2
|
+
type Suite = {
|
|
3
|
+
describe: (name: string, fn: () => void) => void;
|
|
4
|
+
it: (name: string, fn: () => void | Promise<void>, timeout?: number) => void;
|
|
5
|
+
beforeAll: (fn: () => Promise<void>, timeout?: number) => void;
|
|
6
|
+
expect: (value: unknown) => {
|
|
7
|
+
toBe(expected: unknown): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Turn an Atlas config into a test suite: one test per planned path, so any Vitest/Jest-style
|
|
12
|
+
* runner reports each journey and generated path on its own. The whole plan runs once in
|
|
13
|
+
* `beforeAll` (paths share one manifest); each test then reads its path's outcome.
|
|
14
|
+
*
|
|
15
|
+
* import { describe, it, beforeAll, expect } from 'bun:test';
|
|
16
|
+
* describeAtlas(config, { describe, it, beforeAll, expect });
|
|
17
|
+
*/
|
|
18
|
+
export declare function describeAtlas<C>(config: AtlasConfig<C>, suite: Suite, options?: RunCommandOptions & {
|
|
19
|
+
baseDirectory?: string;
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
}): void;
|
|
22
|
+
export { functionDriver } from '../../core/src/index.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { prepare, runConfig } from '../../core/src/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Turn an Atlas config into a test suite: one test per planned path, so any Vitest/Jest-style
|
|
4
|
+
* runner reports each journey and generated path on its own. The whole plan runs once in
|
|
5
|
+
* `beforeAll` (paths share one manifest); each test then reads its path's outcome.
|
|
6
|
+
*
|
|
7
|
+
* import { describe, it, beforeAll, expect } from 'bun:test';
|
|
8
|
+
* describeAtlas(config, { describe, it, beforeAll, expect });
|
|
9
|
+
*/
|
|
10
|
+
export function describeAtlas(config, suite, options = {}) {
|
|
11
|
+
const prepared = prepare(config, options.baseDirectory);
|
|
12
|
+
const timeout = options.timeoutMs ?? 30 * 60_000;
|
|
13
|
+
suite.describe(`atlas: ${prepared.scope.chart}`, () => {
|
|
14
|
+
let outcome = null;
|
|
15
|
+
suite.beforeAll(async () => {
|
|
16
|
+
outcome = await runConfig(config, { ...options, log: options.log ?? (() => undefined) }, options.baseDirectory);
|
|
17
|
+
}, timeout);
|
|
18
|
+
suite.it('is a pure, reachable statechart whose journeys replay', () => {
|
|
19
|
+
const structural = prepared.lint.findings.filter((f) => f.rule !== 'implemented').map((f) => f.message);
|
|
20
|
+
suite.expect(structural.join('\n')).toBe('');
|
|
21
|
+
});
|
|
22
|
+
for (const planned of prepared.plan.paths) {
|
|
23
|
+
suite.it(`${planned.kind}: ${planned.name}`, () => {
|
|
24
|
+
const result = outcome?.manifest.paths.find((p) => p.id === planned.id);
|
|
25
|
+
if (!result || result.status === 'not-reached')
|
|
26
|
+
return;
|
|
27
|
+
const error = result.attempts.at(-1)?.error ?? '';
|
|
28
|
+
suite.expect(result.status === 'failed' ? error : 'ok').toBe('ok');
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export { functionDriver } from '../../core/src/index.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Driver } from '../../core/src/index.js';
|
|
2
|
+
import type { Signal, SignalContext } from '../../core/src/signals.js';
|
|
3
|
+
import type { Locator } from './protocol.js';
|
|
4
|
+
import { WebDriverSession } from './protocol.js';
|
|
5
|
+
/** What a step points at: a signal (resolved per platform) or a raw WebDriver locator. */
|
|
6
|
+
export type Target = Signal | Locator;
|
|
7
|
+
export type Mode = 'web' | 'native';
|
|
8
|
+
/** What every event and recogniser receives: the session and user actions logged to the timeline. */
|
|
9
|
+
export type WebDriverContext = SignalContext & {
|
|
10
|
+
session: WebDriverSession;
|
|
11
|
+
mode: Mode;
|
|
12
|
+
baseUrl: string | undefined;
|
|
13
|
+
/** Navigate, relative to `baseUrl` (a deep link in a native session). */
|
|
14
|
+
goto(url: string): Promise<void>;
|
|
15
|
+
/** The first visible element a target resolves to, or null. */
|
|
16
|
+
find(target: Target): Promise<string | null>;
|
|
17
|
+
isVisible(target: Target): Promise<boolean>;
|
|
18
|
+
user: {
|
|
19
|
+
tap(target: Target, label: string): Promise<void>;
|
|
20
|
+
type(target: Target, text: string, label: string): Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type WebDriverServer = {
|
|
24
|
+
/** The server binary: `safaridriver`, `chromedriver`, `geckodriver`, `appium`. */
|
|
25
|
+
command: string;
|
|
26
|
+
/** `{port}` is replaced with the port. Defaults: `--port {port}` (`--port={port}` for chromedriver). */
|
|
27
|
+
args?: string[];
|
|
28
|
+
port?: number;
|
|
29
|
+
readyTimeoutMs?: number;
|
|
30
|
+
};
|
|
31
|
+
export type WebDriverDriverOptions = {
|
|
32
|
+
/** A running WebDriver server; or set `server` to start one for the run. */
|
|
33
|
+
url?: string;
|
|
34
|
+
server?: WebDriverServer;
|
|
35
|
+
/** W3C capabilities (`alwaysMatch`), e.g. `{ browserName: 'safari' }` or Appium's `platformName`, `appium:app`. */
|
|
36
|
+
capabilities: Record<string, unknown>;
|
|
37
|
+
/** `web` resolves signals in the DOM; `native` resolves them in the accessibility tree. Inferred from the capabilities. */
|
|
38
|
+
mode?: Mode;
|
|
39
|
+
/** Where `goto` paths resolve; the implementation's setup decides where to open. */
|
|
40
|
+
baseUrl?: string | (() => string | Promise<string>);
|
|
41
|
+
/** `per-attempt` (default) starts a fresh session (browser or app) for every path attempt; `per-run` reuses one. */
|
|
42
|
+
session?: 'per-attempt' | 'per-run';
|
|
43
|
+
/** Clips: `frames` (default) encodes screenshots with FFmpeg; `appium` uses Appium's screen recorder; `none`. */
|
|
44
|
+
recording?: 'frames' | 'appium' | 'none';
|
|
45
|
+
/** How long a tap waits for its target, in milliseconds (default 15 000). */
|
|
46
|
+
actionTimeoutMs?: number;
|
|
47
|
+
name?: string;
|
|
48
|
+
pacing?: {
|
|
49
|
+
before: number;
|
|
50
|
+
after: number;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Sessions open at once (one per worker): raise it for a grid or several devices. 1 when
|
|
54
|
+
* omitted, and always 1 with a per-run session.
|
|
55
|
+
*/
|
|
56
|
+
concurrency?: number;
|
|
57
|
+
};
|
|
58
|
+
/** A signal as a native locator: test IDs are accessibility identifiers, text is any label, value or text. */
|
|
59
|
+
export declare function nativeLocator(signal: Signal): Locator | null;
|
|
60
|
+
/**
|
|
61
|
+
* Drive anything that speaks W3C WebDriver: Safari (safaridriver ships with macOS), Chrome,
|
|
62
|
+
* Firefox and Edge, or a native iOS or Android app through Appium. Signals resolve in the DOM
|
|
63
|
+
* for web sessions and in the accessibility tree for native ones (test IDs are accessibility
|
|
64
|
+
* identifiers), so one implementation style covers both. Screenshots and the page source are
|
|
65
|
+
* standard; clips are encoded from screenshots, or come from Appium's screen recorder.
|
|
66
|
+
*/
|
|
67
|
+
export declare function webdriverDriver(options: WebDriverDriverOptions): Driver<WebDriverContext>;
|
|
68
|
+
/** A state recognised from signals or locators: every `all` visible and no `none` visible. */
|
|
69
|
+
export declare const screen: (spec: import('../../core/src/signals.js').ScreenSpec<WebDriverContext, Target>) => import('../../core/src/index.js').StateImplementation<WebDriverContext>;
|