@crvouga/atlas 0.1.0 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog: @crvouga/atlas
2
2
 
3
+ ## 0.2.0 (2026-10-13)
4
+
5
+ ### Features
6
+
7
+ - browse every chart in the viz ([2f4f97e](https://github.com/crvouga/atlas/commit/2f4f97e132690e5bd489da8cb875fc576b10a500))
8
+
3
9
  ## 0.1.0 (2026-10-12)
4
10
 
5
11
  Initial release.
package/README.md CHANGED
@@ -105,14 +105,17 @@ bun run example:clients # clients/: one chart across a phone, a desktop and
105
105
  bun run example:clients:bun # the same, with the desktop in Bun's WebKit and the phone in Playwright's Chromium
106
106
  ```
107
107
 
108
- To keep the example's specs and latest results open in the visualizer, run these in separate
109
- terminals; the visualizer updates when a run finishes.
108
+ To run every chart of the example and browse the results, run these in separate terminals; the
109
+ visualizer updates when a run finishes.
110
110
 
111
111
  ```sh
112
- bun run example:run
113
- bun run example:viz
112
+ bun run atlas:run # example:clients, then example:run: every chart of the example, in showcase mode
113
+ bun run atlas:viz # the example's specs and those runs, in the visualizer
114
114
  ```
115
115
 
116
+ Each config writes its own run and the visualizer shows one run at a time: the latest is the
117
+ single-browser run, and the run across clients is the one before it in the run picker.
118
+
116
119
  A showcase run ends with:
117
120
 
118
121
  ```
@@ -448,9 +451,9 @@ export default defineConfig<Clients>({
448
451
  - If one client cannot open (no simulator booted), the others are closed and the attempt fails
449
452
  naming that client.
450
453
 
451
- [`examples/todo/clients`](examples/todo/clients) runs a chart across a phone, a desktop and the
452
- sync server; pick each device's driver with `ATLAS_PHONE` and `ATLAS_DESKTOP`
453
- (`playwright`, `bun` or `webdriver`).
454
+ [`examples/todo/clients`](examples/todo/clients) runs a chart (`specs/clients/shared-list.scxml`)
455
+ across a phone, a desktop and the sync server; pick each device's driver with `ATLAS_PHONE` and
456
+ `ATLAS_DESKTOP` (`playwright`, `bun` or `webdriver`).
454
457
 
455
458
  ## Writing a driver
456
459
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/atlas",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Atlas: executable statecharts. Spec a product's flows as statecharts, run them against the real app with any driver, and browse what happened.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -118,7 +118,8 @@
118
118
  "example:run": "bun --cwd examples/todo ../../packages/core/bin/atlas.mjs run --mode showcase",
119
119
  "example:clients": "bun --cwd examples/todo ../../packages/core/bin/atlas.mjs run --config clients/atlas.config.ts --mode showcase",
120
120
  "example:clients:bun": "ATLAS_DESKTOP=bun bun --cwd examples/todo ../../packages/core/bin/atlas.mjs run --config clients/atlas.config.ts --mode showcase",
121
- "example:viz": "bun packages/visualizer/bin/atlas-visualizer.mjs dev --specs examples/todo/specs --runs examples/todo/atlas-runs",
121
+ "atlas:run": "status=0; bun run example:clients || status=$?; bun run example:run || status=$?; exit $status",
122
+ "atlas:viz": "bun packages/visualizer/bin/atlas-visualizer.mjs dev --specs examples/todo/specs --runs examples/todo/atlas-runs",
122
123
  "release:plan": "bun scripts/release/plan.ts",
123
124
  "release:publish": "bun scripts/release/publish.ts",
124
125
  "release:smoke": "bun scripts/release/consumer-smoke.ts",