@dreamboard-games/cli 0.1.30-alpha.19 → 0.1.30-alpha.20

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.
Files changed (97) hide show
  1. package/README.md +22 -102
  2. package/dist/agent-verifier/agent-workspace-verifier.mjs +1508 -55
  3. package/dist/agent-verifier/agent-workspace-verifier.mjs.map +1 -1
  4. package/dist/agent-verifier/{chunk-V7ABTZXW.mjs → chunk-4I2WWAPK.mjs} +26 -7
  5. package/dist/agent-verifier/chunk-4I2WWAPK.mjs.map +1 -0
  6. package/dist/agent-verifier/{chunk-7LFDFXLS.mjs → chunk-BWBN2TDJ.mjs} +338 -133
  7. package/dist/agent-verifier/chunk-BWBN2TDJ.mjs.map +1 -0
  8. package/dist/agent-verifier/{chunk-AWZ4M4NS.mjs → chunk-DQUYBIGQ.mjs} +5 -6
  9. package/dist/agent-verifier/chunk-DQUYBIGQ.mjs.map +1 -0
  10. package/dist/agent-verifier/{chunk-H5L4KK4Y.mjs → chunk-GCFGAFYC.mjs} +7 -7
  11. package/dist/agent-verifier/chunk-GCFGAFYC.mjs.map +1 -0
  12. package/dist/agent-verifier/{chunk-TAEQKBJB.mjs → chunk-GWRZRWCF.mjs} +1 -1
  13. package/dist/agent-verifier/chunk-GWRZRWCF.mjs.map +1 -0
  14. package/dist/agent-verifier/{chunk-6AKXIY37.mjs → chunk-IWB4L2HV.mjs} +3 -3
  15. package/dist/agent-verifier/chunk-IWB4L2HV.mjs.map +1 -0
  16. package/dist/agent-verifier/{chunk-334H4LE4.mjs → chunk-KDAQ4CZY.mjs} +3 -3
  17. package/dist/agent-verifier/{chunk-WSIYUUSD.mjs → chunk-TIDX3YLW.mjs} +2 -2
  18. package/dist/agent-verifier/{chunk-WSIYUUSD.mjs.map → chunk-TIDX3YLW.mjs.map} +1 -1
  19. package/dist/agent-verifier/{chunk-UMW24KZI.mjs → chunk-UXGTT25Q.mjs} +3 -3
  20. package/dist/agent-verifier/{global-config-SXR6X3OZ.mjs → global-config-IXZLY4BS.mjs} +4 -4
  21. package/dist/agent-verifier/{local-files-DAFIR7SN.mjs → local-files-OF4QFISU.mjs} +4 -4
  22. package/dist/agent-verifier/{chunk-POBFNXD4.mjs → local-typecheck-DHVLM37Z.mjs} +3 -3
  23. package/dist/agent-verifier/local-typecheck-DHVLM37Z.mjs.map +1 -0
  24. package/dist/agent-verifier/{materialize-workspace-PWNT6HQK.mjs → materialize-workspace-VS5RHSBO.mjs} +7 -7
  25. package/dist/agent-verifier/{chunk-HLHT57AW.mjs → reducer-bundle-preflight-GLUJKTWU.mjs} +13 -10
  26. package/dist/agent-verifier/reducer-bundle-preflight-GLUJKTWU.mjs.map +1 -0
  27. package/dist/agent-verifier/{chunk-INIK6LHK.mjs → reducer-contract-preflight-WVQQPW5F.mjs} +6 -5
  28. package/dist/agent-verifier/reducer-contract-preflight-WVQQPW5F.mjs.map +1 -0
  29. package/dist/agent-verifier/{chunk-3Y4FRMTK.mjs → reducer-native-test-harness-H6G6RBRY.mjs} +150 -34
  30. package/dist/agent-verifier/reducer-native-test-harness-H6G6RBRY.mjs.map +1 -0
  31. package/dist/agent-verifier/{static-scaffold-HXUQLJVN.mjs → static-scaffold-C36KROJA.mjs} +3 -3
  32. package/dist/agent-verifier/{workspace-dependencies-ZMHPHVQV.mjs → workspace-dependencies-5HEEKZFP.mjs} +4 -2
  33. package/dist/authoring-compatibility-internal.js +2 -2
  34. package/dist/{chunk-R6RB4EKH.js → chunk-5PJWUB6W.js} +179 -210
  35. package/dist/chunk-5PJWUB6W.js.map +1 -0
  36. package/dist/{chunk-YRSE5DLH.js → chunk-EJGB3IR7.js} +422 -264
  37. package/dist/chunk-EJGB3IR7.js.map +1 -0
  38. package/dist/{chunk-FFO2IJL3.js → chunk-EQNBQVIW.js} +1 -1
  39. package/dist/chunk-EQNBQVIW.js.map +1 -0
  40. package/dist/{chunk-VWMKJL4A.js → chunk-UI7NWSYA.js} +3 -3
  41. package/dist/chunk-UI7NWSYA.js.map +1 -0
  42. package/dist/{global-config-UHGWFJIK.js → global-config-GK2UC2X6.js} +3 -3
  43. package/dist/index.js +2691 -3953
  44. package/dist/index.js.map +1 -1
  45. package/dist/internal.js +4 -4
  46. package/package.json +1 -1
  47. package/release/authoring-release-set.json +2 -2
  48. package/skills/dreamboard/SKILL.md +30 -28
  49. package/skills/dreamboard/references/building-your-first-game.md +15 -15
  50. package/skills/dreamboard/references/cli.md +48 -47
  51. package/skills/dreamboard/references/quickstart.md +16 -13
  52. package/skills/dreamboard/references/testing.md +10 -10
  53. package/dist/agent-verifier/chunk-3Y4FRMTK.mjs.map +0 -1
  54. package/dist/agent-verifier/chunk-5D3OJBDT.mjs +0 -1547
  55. package/dist/agent-verifier/chunk-5D3OJBDT.mjs.map +0 -1
  56. package/dist/agent-verifier/chunk-6AKXIY37.mjs.map +0 -1
  57. package/dist/agent-verifier/chunk-7LFDFXLS.mjs.map +0 -1
  58. package/dist/agent-verifier/chunk-AWZ4M4NS.mjs.map +0 -1
  59. package/dist/agent-verifier/chunk-H5L4KK4Y.mjs.map +0 -1
  60. package/dist/agent-verifier/chunk-HLHT57AW.mjs.map +0 -1
  61. package/dist/agent-verifier/chunk-INIK6LHK.mjs.map +0 -1
  62. package/dist/agent-verifier/chunk-LEWM26XR.mjs +0 -618
  63. package/dist/agent-verifier/chunk-LEWM26XR.mjs.map +0 -1
  64. package/dist/agent-verifier/chunk-PLXXH5LY.mjs +0 -222
  65. package/dist/agent-verifier/chunk-PLXXH5LY.mjs.map +0 -1
  66. package/dist/agent-verifier/chunk-POBFNXD4.mjs.map +0 -1
  67. package/dist/agent-verifier/chunk-TAEQKBJB.mjs.map +0 -1
  68. package/dist/agent-verifier/chunk-V7ABTZXW.mjs.map +0 -1
  69. package/dist/agent-verifier/chunk-ZOR5FTIG.mjs +0 -39
  70. package/dist/agent-verifier/chunk-ZOR5FTIG.mjs.map +0 -1
  71. package/dist/agent-verifier/compile-MO2URO5Z.mjs +0 -317
  72. package/dist/agent-verifier/compile-MO2URO5Z.mjs.map +0 -1
  73. package/dist/agent-verifier/local-typecheck-3JXL2NMG.mjs +0 -10
  74. package/dist/agent-verifier/reducer-bundle-preflight-3DSXIELT.mjs +0 -20
  75. package/dist/agent-verifier/reducer-contract-preflight-FQB7M4PU.mjs +0 -11
  76. package/dist/agent-verifier/reducer-native-test-harness-X2KQYSCD.mjs +0 -53
  77. package/dist/agent-verifier/reducer-native-test-harness-X2KQYSCD.mjs.map +0 -1
  78. package/dist/agent-verifier/static-scaffold-HXUQLJVN.mjs.map +0 -1
  79. package/dist/agent-verifier/sync-5YM4CSXL.mjs +0 -598
  80. package/dist/agent-verifier/sync-5YM4CSXL.mjs.map +0 -1
  81. package/dist/agent-verifier/test-CNNVTFIG.mjs +0 -356
  82. package/dist/agent-verifier/test-CNNVTFIG.mjs.map +0 -1
  83. package/dist/agent-verifier/workspace-dependencies-ZMHPHVQV.mjs.map +0 -1
  84. package/dist/chunk-FFO2IJL3.js.map +0 -1
  85. package/dist/chunk-R6RB4EKH.js.map +0 -1
  86. package/dist/chunk-VWMKJL4A.js.map +0 -1
  87. package/dist/chunk-YRSE5DLH.js.map +0 -1
  88. package/dist/global-config-UHGWFJIK.js.map +0 -1
  89. package/skills/dreamboard/scripts/events-extract.mjs +0 -218
  90. /package/dist/agent-verifier/{chunk-334H4LE4.mjs.map → chunk-KDAQ4CZY.mjs.map} +0 -0
  91. /package/dist/agent-verifier/{chunk-UMW24KZI.mjs.map → chunk-UXGTT25Q.mjs.map} +0 -0
  92. /package/dist/agent-verifier/{global-config-SXR6X3OZ.mjs.map → global-config-IXZLY4BS.mjs.map} +0 -0
  93. /package/dist/agent-verifier/{local-files-DAFIR7SN.mjs.map → local-files-OF4QFISU.mjs.map} +0 -0
  94. /package/dist/agent-verifier/{materialize-workspace-PWNT6HQK.mjs.map → materialize-workspace-VS5RHSBO.mjs.map} +0 -0
  95. /package/dist/agent-verifier/{local-typecheck-3JXL2NMG.mjs.map → static-scaffold-C36KROJA.mjs.map} +0 -0
  96. /package/dist/agent-verifier/{reducer-bundle-preflight-3DSXIELT.mjs.map → workspace-dependencies-5HEEKZFP.mjs.map} +0 -0
  97. /package/dist/{agent-verifier/reducer-contract-preflight-FQB7M4PU.mjs.map → global-config-GK2UC2X6.js.map} +0 -0
package/dist/internal.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  resolveConfig,
11
11
  resolveProjectContext,
12
12
  shortHash
13
- } from "./chunk-R6RB4EKH.js";
13
+ } from "./chunk-5PJWUB6W.js";
14
14
  import {
15
15
  applyWorkspaceCodegen,
16
16
  loadManifest,
@@ -19,16 +19,16 @@ import {
19
19
  setLatestCompileAttempt,
20
20
  updateProjectState,
21
21
  writeSnapshot
22
- } from "./chunk-YRSE5DLH.js";
22
+ } from "./chunk-EJGB3IR7.js";
23
23
  import {
24
24
  getStoredSession,
25
25
  loadGlobalConfig
26
- } from "./chunk-VWMKJL4A.js";
26
+ } from "./chunk-UI7NWSYA.js";
27
27
  import {
28
28
  ENVIRONMENT_CONFIGS,
29
29
  readJsonFile,
30
30
  writeJsonFile
31
- } from "./chunk-FFO2IJL3.js";
31
+ } from "./chunk-EQNBQVIW.js";
32
32
  import "./chunk-2H7UOFLK.js";
33
33
  export {
34
34
  CONFIG_FLAG_ARGS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamboard-games/cli",
3
- "version": "0.1.30-alpha.19",
3
+ "version": "0.1.30-alpha.20",
4
4
  "description": "Design board games with AI and turn ideas into playable digital prototypes.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4,7 +4,7 @@
4
4
  "packages": {
5
5
  "cli": {
6
6
  "name": "@dreamboard-games/cli",
7
- "version": "0.1.30-alpha.19"
7
+ "version": "0.1.30-alpha.20"
8
8
  },
9
9
  "sdk": {
10
10
  "name": "@dreamboard-games/sdk",
@@ -34,5 +34,5 @@
34
34
  "portable": true
35
35
  },
36
36
  "packageManager": "pnpm@10.4.1",
37
- "releaseSetId": "sha256:94f9e944361da712ec7f0b420643d3690e73b93a2c23d3a893b0f4183a93a847"
37
+ "releaseSetId": "sha256:a587040081f3664b0c55128b9b52af76f53daaee441d69486a61540c7e107bc8"
38
38
  }
@@ -10,14 +10,14 @@ metadata:
10
10
 
11
11
  ## Goal
12
12
 
13
- Create and iterate on a Dreamboard game locally, then sync authored changes,
14
- compile, run, and test against the current reducer-native scaffold.
13
+ Create and iterate on a Dreamboard game locally with the Git-native Dreamboard
14
+ CLI, then verify exact commits, run tests, and use the local dev host.
15
15
 
16
16
  ## Prereqs
17
17
 
18
18
  - Dreamboard CLI installed and available as `dreamboard`
19
19
  Install with `npm install -g dreamboard`
20
- - Authenticated via `dreamboard login`
20
+ - Authenticated via `dreamboard auth login`
21
21
 
22
22
  ## Buliding Your First Game
23
23
  See [tutorials/building-your-first-game.md](references/building-your-first-game.md)
@@ -60,18 +60,25 @@ The current scaffold centers on these files:
60
60
 
61
61
  Use the commands for different kinds of state:
62
62
 
63
- - `dreamboard sync`
64
- Upload local authored changes and advance the remote authored head. Run this after editing `rule.md`, `manifest.json`, or authored source files that should be part of the next remote build.
65
- - `dreamboard compile`
66
- Compile the current remote authored head. Run this after `sync`, or re-run it after a failed compile when you have not made new authored edits.
67
- - `dreamboard pull`
68
- Reconcile remote authored changes into the current workspace. Run this when someone else advanced the remote authored head or `dreamboard status` shows authored state `behind` or `diverged`.
63
+ - `dreamboard project create <slug> --description <text>`
64
+ Create a project workspace and configure its Git remote.
65
+ - `dreamboard project clone <project>`
66
+ Clone an existing project repository.
67
+ - `dreamboard project status --commit <rev> [--wait]`
68
+ Read server state for one exact commit.
69
+ - `dreamboard verify --commit <rev>`
70
+ Verify one exact commit from a detached worktree.
71
+ - `dreamboard test`
72
+ Regenerate derived test artifacts as needed and run reducer, remote, or browser tests.
73
+ - `dreamboard dev [--from-scenario <id>]`
74
+ Start the local dev host for browser validation.
69
75
 
70
76
  Quick rule:
71
77
 
72
- - edited files locally: `dreamboard sync` then `dreamboard compile`
73
- - compile failed but you have not edited files since: `dreamboard compile` again
74
- - remote authored head moved: `dreamboard pull` first
78
+ - edited files locally: commit them with Git and push the branch
79
+ - need server readback: `dreamboard project status --commit <rev> --wait`
80
+ - need exact local proof: `dreamboard verify --commit <rev>`
81
+ - need scenario proof: `dreamboard test`
75
82
 
76
83
  ## Workflow
77
84
 
@@ -79,23 +86,22 @@ Use this order by default:
79
86
 
80
87
  1. Write or revise `rule.md`.
81
88
  2. Align `manifest.json` to the rules.
82
- 3. Run `dreamboard sync`.
83
- 4. Implement reducer state, phases, actions, and views in `app/`.
84
- 5. Implement the playable UI in `ui/App.tsx`.
85
- 6. Run `dreamboard compile`.
86
- 7. Generate test artifacts with `dreamboard test generate`.
87
- 8. Run scenarios with `dreamboard test run`.
88
- 9. Validate the local runtime with `dreamboard run`.
89
+ 3. Implement reducer state, phases, actions, and views in `app/`.
90
+ 4. Implement the playable UI in `ui/App.tsx`.
91
+ 5. Commit and push authored changes with Git.
92
+ 6. Run `dreamboard project status --commit HEAD --wait`.
93
+ 7. Run `dreamboard verify --commit HEAD`.
94
+ 8. Run scenarios with `dreamboard test`.
95
+ 9. Validate the local runtime with `dreamboard dev`.
89
96
  10. For agent-built games, run `dreamboard dev` and verify the browser UI before handoff. Use Playwright to open the dev host, check that the plugin iframe renders without console errors, and click a primary interaction such as selecting a playable hand card. Reducer scenarios alone are not enough when the game has an interactive UI.
90
97
 
91
98
  ## Guardrails
92
99
 
93
100
  - `manifest.json` and `rule.md` are the source of truth for scaffolding.
94
- - Run `dreamboard sync` after authored changes to keep generated files and the remote authored head in sync.
95
- - `dreamboard pull` reconciles authored divergence into the current workspace.
96
- - `dreamboard compile` is separate from authored sync; failed compiles do not mean the workspace needs a pull or another sync unless you changed authored files again.
97
- - Use `dreamboard status` to distinguish authored sync from compile health before deciding whether the next command should be `sync`, `compile`, or `pull`.
98
- - Re-run `dreamboard test generate` after runtime-shape changes in `manifest.json` or `app/`.
101
+ - Use Git for source-control state transitions; Dreamboard does not stage,
102
+ commit, pull, merge, branch, or push for you.
103
+ - Use `dreamboard project status --commit <rev>` for server state, not local Git status.
104
+ - Run `dreamboard test` after runtime-shape changes in `manifest.json` or `app/`; it regenerates derived test artifacts automatically.
99
105
  - Keep reducer-owned UI data in views; do not reintroduce the old `shared/ui-args.ts` pattern in new scaffolds.
100
106
  - When a game exposes clickable hands, markets, boards, or prompts, prove the same interaction works through `dreamboard dev` in a browser. A direct scenario submission can pass even when the rendered surface does not collect the input.
101
107
  - For interactive card hands, render generated surfaces such as `handSurface.Hand` and `handSurface.Card` consistently. Do not swap a surface card for a raw `Card` or custom tile based on `me.canAct`; the surface primitive is responsible for disabling unavailable interactions.
@@ -124,7 +130,3 @@ Do not edit generated or framework-owned files such as:
124
130
 
125
131
  ## Offical Documentation
126
132
  Visit https://dreamboard.games/docs
127
-
128
- ## Framework Feedback
129
-
130
- Use `feedback.md` in the game project root to record framework issues, missing features, or workflow friction. Include reproduction steps, expected behavior, and actual behavior when possible.
@@ -34,12 +34,12 @@ By the end of the tutorial you will have:
34
34
  ## Prerequisites
35
35
 
36
36
  - Dreamboard CLI installed: `npm install -g dreamboard`
37
- - authenticated with `dreamboard login`
37
+ - authenticated with `dreamboard auth login`
38
38
 
39
39
  ## 1. Create the workspace
40
40
 
41
41
  ```bash
42
- dreamboard new race-to-ten --description "A tiny scoring game with one shared die"
42
+ dreamboard project create race-to-ten --description "A tiny scoring game with one shared die"
43
43
  cd race-to-ten
44
44
  ```
45
45
 
@@ -138,16 +138,17 @@ This game needs player-count metadata and one shared die.
138
138
  }
139
139
  ```
140
140
 
141
- Run:
141
+ Commit and push the authored source with Git, then wait for the server to
142
+ observe and verify the exact commit:
142
143
 
143
144
  ```bash
144
- dreamboard sync
145
- dreamboard compile
145
+ git add .
146
+ git commit -m "Build Race to Ten"
147
+ git push -u origin main
148
+ dreamboard project status --commit HEAD --wait
149
+ dreamboard verify --commit HEAD
146
150
  ```
147
151
 
148
- `dreamboard sync` refreshes generated contracts from authored files.
149
- `dreamboard compile` builds the current authored head.
150
-
151
152
  ## 4. Define the reducer contract
152
153
 
153
154
  Open `app/game-contract.ts` and replace the empty schemas with the state the
@@ -471,23 +472,22 @@ export default defineScenario({
471
472
  });
472
473
  ```
473
474
 
474
- Generate artifacts and run the test suite:
475
+ Run the test suite:
475
476
 
476
477
  ```bash
477
- dreamboard test generate
478
- dreamboard test run
478
+ dreamboard test
479
479
  ```
480
480
 
481
481
  ## 10. Run the game locally
482
482
 
483
- Use the local runtime to verify the same flow manually:
483
+ Use the local dev host to verify the same flow manually:
484
484
 
485
485
  ```bash
486
- dreamboard run
486
+ dreamboard dev
487
487
  ```
488
488
 
489
- If you edit `rule.md` or `manifest.json`, run `dreamboard sync` again before
490
- continuing.
489
+ If you edit `rule.md` or `manifest.json`, commit and push the changes before
490
+ running commit-scoped build, preview, release, or remote test commands.
491
491
 
492
492
  ## Where to go next
493
493
 
@@ -5,21 +5,21 @@
5
5
 
6
6
  Reference for Dreamboard CLI workflows and commands.
7
7
 
8
- Dreamboard CLI manages the authored workspace loop: authenticate, create or
9
- clone a game, sync authored changes, compile, run, and test.
8
+ Dreamboard CLI manages the Git-native authored workspace loop: authenticate,
9
+ create or clone a project, verify exact commits, build or preview pushed
10
+ commits, run a local dev host, and test reducer scenarios.
10
11
 
11
12
  ## Responsibility
12
13
 
13
14
  Use the CLI for:
14
15
 
15
16
  - authenticating the current machine
16
- - creating or cloning game workspaces
17
- - syncing authored files to the remote authoring head
18
- - compiling the current authored head
19
- - inspecting local versus remote state
20
- - pulling remote authored changes into the workspace
21
- - starting or observing playable sessions
22
- - generating and running reducer-native tests
17
+ - creating or cloning project workspaces
18
+ - inspecting server state for an exact commit
19
+ - verifying an exact commit from a detached worktree
20
+ - building, previewing, and publishing pushed commits
21
+ - starting the local dev host
22
+ - running reducer, remote, or browser tests
23
23
 
24
24
  ## Install targets
25
25
 
@@ -27,73 +27,74 @@ Use the published package for normal game work:
27
27
 
28
28
  ```bash
29
29
  npm install -g dreamboard
30
- dreamboard login
30
+ dreamboard auth login
31
31
  ```
32
32
 
33
33
  ## Command flow
34
34
 
35
35
  Use this sequence for the normal authored loop:
36
36
 
37
- 1. `dreamboard login`
38
- 2. `dreamboard new ...` or `dreamboard clone ...`
37
+ 1. `dreamboard auth login`
38
+ 2. `dreamboard project create ...` or `dreamboard project clone ...`
39
39
  3. edit `rule.md`, `manifest.json`, and authored source files
40
- 4. `dreamboard sync`
41
- 5. `dreamboard compile`
42
- 6. `dreamboard run` or `dreamboard start`
43
- 7. `dreamboard test generate`
44
- 8. `dreamboard test run`
45
-
46
- When the remote authored head moves first, run `dreamboard pull` before the
47
- next sync or compile. Use `dreamboard status` to decide whether the workspace is
48
- ahead, behind, or diverged.
40
+ 4. commit with Git and push to the configured remote
41
+ 5. `dreamboard project status --commit <rev> --wait`
42
+ 6. `dreamboard verify --commit <rev>`
43
+ 7. `dreamboard test`
44
+ 8. `dreamboard build --commit <rev>`
45
+ 9. `dreamboard preview --commit <rev>`
49
46
 
50
47
  ## Workspace commands
51
48
 
52
49
  | Command | Use it for |
53
50
  | --- | --- |
54
- | `dreamboard login` | Open browser login and store a refreshable session |
55
- | `dreamboard new <slug> --description "..."` | Create a new game and scaffold a local workspace |
56
- | `dreamboard clone <slug>` | Clone an existing game into a new local workspace |
57
- | `dreamboard sync` | Upload authored changes and refresh scaffolded files |
58
- | `dreamboard compile` | Compile the current remote authored head |
59
- | `dreamboard status` | Compare local authored and compile state with remote |
60
- | `dreamboard pull` | Reconcile remote authored changes into the workspace |
51
+ | `dreamboard auth login` | Open browser login and store a refreshable session |
52
+ | `dreamboard auth status` | Show the current authenticated session |
53
+ | `dreamboard project create <slug> --description "..."` | Create a project, scaffold a local workspace, and configure Git |
54
+ | `dreamboard project clone <project>` | Clone an existing project repository |
55
+ | `dreamboard project status --commit <rev>` | Show server state for one exact commit |
56
+ | `dreamboard verify --commit <rev>` | Verify one exact commit in a detached worktree |
61
57
 
62
58
  ```bash
63
- dreamboard new race-to-ten --description "A tiny scoring game"
64
- dreamboard sync
65
- dreamboard compile
66
- dreamboard status --json
59
+ dreamboard auth login
60
+ dreamboard project create race-to-ten --description "A tiny scoring game"
61
+ git add .
62
+ git commit -m "Create Race to Ten"
63
+ git push -u origin main
64
+ dreamboard project status --commit HEAD --wait
65
+ dreamboard verify --commit HEAD
67
66
  ```
68
67
 
69
- ## Session commands
68
+ ## Commit commands
70
69
 
71
- Use session commands after you have a successful compile for the current
72
- authored head.
70
+ Use commit commands after the commit has been pushed to the configured Git
71
+ remote.
73
72
 
74
73
  | Command | Use it for |
75
74
  | --- | --- |
76
- | `dreamboard run` | Start or resume a playable session and observe it from the CLI |
77
- | `dreamboard start` | Start a fresh session and open it in the browser |
75
+ | `dreamboard test` | Run reducer, remote, or browser tests |
76
+ | `dreamboard dev [--from-scenario <id>]` | Start the local project dev host |
77
+ | `dreamboard build --commit <rev>` | Create a server build for a pushed commit |
78
+ | `dreamboard preview --commit <rev>` | Create a preview for a pushed commit |
79
+ | `dreamboard release publish --commit <rev> --yes` | Publish an explicit release |
80
+ | `dreamboard release current` | Show the current release pointer |
78
81
 
79
82
  ```bash
80
- dreamboard run
81
- dreamboard run --players 4 --seed 1337
82
- dreamboard run --scenario path/to/scenario.json
83
- dreamboard start --players 2
83
+ dreamboard test
84
+ dreamboard dev
85
+ dreamboard build --commit HEAD
86
+ dreamboard preview --commit HEAD
84
87
  ```
85
88
 
86
- `dreamboard run` reuses the previous active session by default. Use
87
- `--new-session` when you want a fresh session instead.
88
-
89
89
  ## Test commands
90
90
 
91
91
  Use the scaffolded reducer-native test workspace for repeatable game assertions.
92
92
 
93
93
  ```bash
94
- dreamboard test generate
95
- dreamboard test run
96
- dreamboard test run --scenario test/scenarios/player-two-wins.scenario.ts
94
+ dreamboard test
95
+ dreamboard test --scenario test/scenarios/player-two-wins.scenario.ts
96
+ dreamboard test --runner browser
97
+ dreamboard test --runner remote --commit HEAD
97
98
  ```
98
99
 
99
100
  ## Start local server
@@ -14,13 +14,13 @@ npm install -g dreamboard
14
14
  Log in:
15
15
 
16
16
  ```bash
17
- dreamboard login
17
+ dreamboard auth login
18
18
  ```
19
19
 
20
- Create a game:
20
+ Create a project:
21
21
 
22
22
  ```bash
23
- dreamboard new my-game --description "A trick-taking card game"
23
+ dreamboard project create my-game --description "A trick-taking card game"
24
24
  cd my-game
25
25
  ```
26
26
 
@@ -30,25 +30,27 @@ Edit `rule.md` and `manifest.json`. Use
30
30
  [Manifest authoring](./manifest-authoring.md) for the manifest
31
31
  schema.
32
32
 
33
- Regenerate scaffolded files from your authored source:
33
+ Commit and push your authored source with Git:
34
34
 
35
35
  ```bash
36
- dreamboard sync
36
+ git add .
37
+ git commit -m "Create my game"
38
+ git push -u origin main
37
39
  ```
38
40
 
39
- Compile the current authored head:
41
+ Check server state for the pushed commit:
40
42
 
41
43
  ```bash
42
- dreamboard compile
44
+ dreamboard project status --commit HEAD --wait
43
45
  ```
44
46
 
45
- Run the game locally:
47
+ Verify the exact commit:
46
48
 
47
49
  ```bash
48
- dreamboard run
50
+ dreamboard verify --commit HEAD
49
51
  ```
50
52
 
51
- Start a local server to play the compiled game
53
+ Start a local server to play the project:
52
54
 
53
55
  ```bash
54
56
  dreamboard dev
@@ -56,9 +58,10 @@ dreamboard dev
56
58
 
57
59
  Useful follow-up commands:
58
60
 
59
- - `dreamboard pull` reconciles authored changes when the remote has advanced.
60
- - `dreamboard status` compares local and remote state.
61
- - `dreamboard clone <game-slug>` pulls an existing game into a local workspace.
61
+ - `dreamboard project clone <project>` clones an existing project repository.
62
+ - `dreamboard test` runs reducer, remote, or browser tests.
63
+ - `dreamboard build --commit HEAD` creates a server build for a pushed commit.
64
+ - `dreamboard preview --commit HEAD` creates a preview for a pushed commit.
62
65
 
63
66
  For a concise command reference, see [CLI](./cli.md).
64
67
 
@@ -34,26 +34,26 @@ be edited manually.
34
34
 
35
35
  ## Command flow
36
36
 
37
- Generate reducer-native test artifacts:
37
+ Run all scenarios:
38
38
 
39
39
  ```bash
40
- dreamboard test generate
40
+ dreamboard test
41
41
  ```
42
42
 
43
- Run all scenarios:
43
+ Run one scenario:
44
44
 
45
45
  ```bash
46
- dreamboard test run
46
+ dreamboard test --scenario test/scenarios/win-the-game.scenario.ts
47
47
  ```
48
48
 
49
- Run one scenario:
49
+ Run browser-backed tests:
50
50
 
51
51
  ```bash
52
- dreamboard test run --scenario test/scenarios/win-the-game.scenario.ts
52
+ dreamboard test --runner browser
53
53
  ```
54
54
 
55
- Re-run `dreamboard test generate` after changes that affect the runtime shape of
56
- the game, including:
55
+ `dreamboard test` regenerates reducer-native artifacts automatically when
56
+ changes affect the runtime shape of the game, including:
57
57
 
58
58
  - `manifest.json`
59
59
  - reducer code under `app/`
@@ -232,7 +232,7 @@ then: ({ phase, history, expect, publicState }) => {
232
232
 
233
233
  If the generated test artifacts no longer match the compiled game, refresh them:
234
234
 
235
- - `dreamboard test generate`
235
+ - `dreamboard test`
236
236
 
237
237
  Common symptoms:
238
238
 
@@ -244,6 +244,6 @@ Common symptoms:
244
244
 
245
245
  This page documents the scaffolded reducer-native test workspace.
246
246
 
247
- If you also use `dreamboard run` for manual debugging or operational inspection,
247
+ If you also use `dreamboard dev` for manual debugging or operational inspection,
248
248
  treat that as a separate workflow. It is useful for ad hoc runtime exploration,
249
249
  but it is not the primary authored test surface for a new Dreamboard project.