dreamboard 0.1.7 → 0.1.9
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/LICENSE +89 -0
- package/NOTICE +1 -0
- package/README.md +22 -178
- package/dist/{chunk-MP7IBNWW.js → chunk-BMYC6772.js} +577 -38
- package/dist/chunk-BMYC6772.js.map +1 -0
- package/dist/chunk-D4HDZEJT.js +37 -0
- package/dist/chunk-EM7NOFFC.js +19072 -0
- package/dist/chunk-EM7NOFFC.js.map +1 -0
- package/dist/chunk-SET56RVA.js +435 -0
- package/dist/chunk-SET56RVA.js.map +1 -0
- package/dist/{dist-B3R64F6G.js → dist-WJRJNFLI.js} +3 -3
- package/dist/global-config-VQJZ3JOA.js +15 -0
- package/dist/global-config-VQJZ3JOA.js.map +1 -0
- package/dist/index.js +23993 -24387
- package/dist/index.js.map +1 -1
- package/dist/keychain-backend-2DL3C6BS.js +125 -0
- package/dist/keychain-backend-2DL3C6BS.js.map +1 -0
- package/dist/{prompt-GMZABCJC.js → prompt-IV67HSPU.js} +2 -2
- package/dist/scaffold/assets/static/app/tsconfig.framework.json +24 -0
- package/dist/scaffold/assets/static/app/tsconfig.json +3 -0
- package/dist/scaffold/assets/static/ui/App.tsx +22 -0
- package/dist/scaffold/assets/static/ui/index.tsx +12 -0
- package/dist/scaffold/assets/static/ui/style.css +4 -0
- package/dist/scaffold/assets/static/ui/tsconfig.framework.json +31 -0
- package/dist/scaffold/assets/static/ui/tsconfig.json +5 -0
- package/dist/src-K2NK3A4P.js +626 -0
- package/dist/src-K2NK3A4P.js.map +1 -0
- package/package.json +41 -4
- package/skills/dreamboard/SKILL.md +126 -59
- package/skills/dreamboard/references/authoring-lifecycle.md +102 -0
- package/skills/dreamboard/references/board-surfaces.md +36 -0
- package/skills/dreamboard/references/board-topology.md +443 -0
- package/skills/dreamboard/references/boards-and-topology.md +100 -0
- package/skills/dreamboard/references/card-actions.md +107 -0
- package/skills/dreamboard/references/cli.md +120 -0
- package/skills/dreamboard/references/core-concepts.md +514 -0
- package/skills/dreamboard/references/custom-renderers.md +26 -0
- package/skills/dreamboard/references/derived-values.md +55 -0
- package/skills/dreamboard/references/effects.md +111 -0
- package/skills/dreamboard/references/game-contract.md +89 -0
- package/skills/dreamboard/references/game-definition.md +89 -0
- package/skills/dreamboard/references/game-shell.md +80 -0
- package/skills/dreamboard/references/hand-surfaces.md +33 -0
- package/skills/dreamboard/references/index.md +112 -0
- package/skills/dreamboard/references/inputs-and-targets.md +160 -0
- package/skills/dreamboard/references/interactions.md +158 -0
- package/skills/dreamboard/references/manifest-fields.md +137 -0
- package/skills/dreamboard/references/manifest.md +81 -0
- package/skills/dreamboard/references/package-surfaces.md +69 -0
- package/skills/dreamboard/references/phases.md +145 -0
- package/skills/dreamboard/references/prompts-and-choices.md +55 -0
- package/skills/dreamboard/references/quickstart.md +71 -0
- package/skills/dreamboard/references/rule-authoring.md +81 -77
- package/skills/dreamboard/references/setup-bootstrap.md +78 -0
- package/skills/dreamboard/references/stages-and-zones.md +59 -0
- package/skills/dreamboard/references/static-views.md +67 -0
- package/skills/dreamboard/references/table-queries-and-ops.md +103 -0
- package/skills/dreamboard/references/testing-bases.md +147 -0
- package/skills/dreamboard/references/testing-generated-contracts.md +142 -0
- package/skills/dreamboard/references/testing-runtime-assertions.md +124 -0
- package/skills/dreamboard/references/testing-scenarios.md +148 -0
- package/skills/dreamboard/references/testing-ui-tests.md +174 -0
- package/skills/dreamboard/references/testing.md +161 -0
- package/skills/dreamboard/references/ui-architecture.md +137 -0
- package/skills/dreamboard/references/ui-components.md +34 -0
- package/skills/dreamboard/references/views.md +72 -0
- package/skills/dreamboard/references/workspace-layout.md +136 -0
- package/dist/chunk-2H7UOFLK.js +0 -11
- package/dist/chunk-MP7IBNWW.js.map +0 -1
- package/dist/chunk-WM7TY7DV.js +0 -2328
- package/dist/chunk-WM7TY7DV.js.map +0 -1
- package/dist/embedded-harness-IHP7A2ZX.js +0 -344
- package/dist/embedded-harness-IHP7A2ZX.js.map +0 -1
- package/skills/dreamboard/references/adversarial-testing.md +0 -113
- package/skills/dreamboard/references/all-players-tracking.md +0 -75
- package/skills/dreamboard/references/api-reference.md +0 -197
- package/skills/dreamboard/references/app-best-practices.md +0 -98
- package/skills/dreamboard/references/building-your-first-game.md +0 -49
- package/skills/dreamboard/references/hands-vs-decks.md +0 -124
- package/skills/dreamboard/references/manifest-authoring.md +0 -328
- package/skills/dreamboard/references/phase-handlers.md +0 -134
- package/skills/dreamboard/references/scenario-format.md +0 -99
- package/skills/dreamboard/references/test-harness.md +0 -225
- package/skills/dreamboard/references/ui-best-practices.md +0 -156
- package/skills/dreamboard/references/ui-genre-resource-management.md +0 -187
- package/skills/dreamboard/references/ui-genre-trick-taking.md +0 -110
- package/skills/dreamboard/references/ui-genre-worker-placement.md +0 -143
- package/skills/dreamboard/references/ui-style-guide.md +0 -54
- package/skills/dreamboard/scripts/events-extract.mjs +0 -218
- /package/dist/{chunk-2H7UOFLK.js.map → chunk-D4HDZEJT.js.map} +0 -0
- /package/dist/{dist-B3R64F6G.js.map → dist-WJRJNFLI.js.map} +0 -0
- /package/dist/{prompt-GMZABCJC.js.map → prompt-IV67HSPU.js.map} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# PolyForm Shield License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/shield/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
8
|
+
|
|
9
|
+
## Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
12
|
+
|
|
13
|
+
## Distribution License
|
|
14
|
+
|
|
15
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
16
|
+
|
|
17
|
+
## Notices
|
|
18
|
+
|
|
19
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
20
|
+
|
|
21
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
22
|
+
|
|
23
|
+
## Changes and New Works License
|
|
24
|
+
|
|
25
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
26
|
+
|
|
27
|
+
## Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
30
|
+
|
|
31
|
+
## Noncompete
|
|
32
|
+
|
|
33
|
+
Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
|
|
34
|
+
|
|
35
|
+
## Competition
|
|
36
|
+
|
|
37
|
+
Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
|
|
38
|
+
|
|
39
|
+
## New Products
|
|
40
|
+
|
|
41
|
+
If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
|
|
42
|
+
|
|
43
|
+
## Discontinued Products
|
|
44
|
+
|
|
45
|
+
You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
|
|
46
|
+
|
|
47
|
+
> Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
|
|
48
|
+
|
|
49
|
+
## Sales of Business
|
|
50
|
+
|
|
51
|
+
If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
|
|
52
|
+
|
|
53
|
+
## Fair Use
|
|
54
|
+
|
|
55
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
56
|
+
|
|
57
|
+
## No Other Rights
|
|
58
|
+
|
|
59
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
60
|
+
|
|
61
|
+
## Patent Defense
|
|
62
|
+
|
|
63
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
64
|
+
|
|
65
|
+
## Violations
|
|
66
|
+
|
|
67
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
68
|
+
|
|
69
|
+
## No Liability
|
|
70
|
+
|
|
71
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
72
|
+
|
|
73
|
+
## Definitions
|
|
74
|
+
|
|
75
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
76
|
+
|
|
77
|
+
A **product** can be a good or service, or a combination of them.
|
|
78
|
+
|
|
79
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
80
|
+
|
|
81
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
|
|
82
|
+
|
|
83
|
+
**Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
|
|
84
|
+
|
|
85
|
+
**Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
86
|
+
|
|
87
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
88
|
+
|
|
89
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/NOTICE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Required Notice: Copyright Dreamboard Games.
|
package/README.md
CHANGED
|
@@ -1,206 +1,50 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Dreamboard CLI
|
|
2
2
|
|
|
3
|
-
Dreamboard CLI
|
|
3
|
+
Dreamboard CLI supports three main workflows:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
- Generate the rules, components, and scaffolding.
|
|
9
|
-
- Playtest instantly with a frictionless lobby and live iteration loops.
|
|
10
|
-
|
|
11
|
-
The platform’s core promise is the same one described on the landing page: digital prototyping for everyone, with AI helping you move from idea to playable faster.
|
|
5
|
+
- Authoring: `dreamboard sync`, `dreamboard compile`, `dreamboard pull`
|
|
6
|
+
- Interactive verification: `dreamboard dev`
|
|
7
|
+
- Scripted verification: `dreamboard test generate`, `dreamboard test run`
|
|
12
8
|
|
|
13
9
|
## Install
|
|
14
10
|
|
|
15
|
-
Published npm package:
|
|
16
|
-
|
|
17
11
|
```bash
|
|
18
12
|
npm install -g dreamboard
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
The published CLI targets Node 20+.
|
|
22
|
-
|
|
23
|
-
## Why Dreamboard
|
|
24
|
-
|
|
25
|
-
- `Describe`: start from theme, mechanics, and player experience instead of boilerplate setup.
|
|
26
|
-
- `Generate`: Dreamboard handles the sandbox primitives like turns, hands, and structured scaffolding.
|
|
27
|
-
- `Playtest`: share a live prototype instead of printing fresh paper every time a rule changes.
|
|
28
|
-
- `Iterate live`: keep testing momentum by changing values and flows without resetting the whole process.
|
|
29
|
-
|
|
30
|
-
## Authentication
|
|
31
|
-
|
|
32
|
-
Use browser login:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
13
|
dreamboard login
|
|
36
14
|
```
|
|
37
15
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
~/.dreamboard/config.json
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
That stored session includes the refresh token the CLI needs to renew access automatically. Direct JWT injection is intentionally not part of the published CLI flow.
|
|
45
|
-
|
|
46
|
-
## Source Checkout Setup
|
|
47
|
-
|
|
48
|
-
For local source-checkout development, install workspace dependencies with pnpm and keep Bun available for local embedded-harness workflows:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
pnpm install
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Playwright (for `dreamboard run`):
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npx playwright install
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Commands
|
|
61
|
-
|
|
62
|
-
Create a new game:
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
dreamboard new my-game --description "A trick-taking card game"
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Clone an existing game:
|
|
16
|
+
## Create a game
|
|
69
17
|
|
|
70
18
|
```bash
|
|
71
|
-
dreamboard
|
|
19
|
+
dreamboard new my-game --description "A short game description"
|
|
20
|
+
cd my-game
|
|
72
21
|
```
|
|
73
22
|
|
|
74
|
-
|
|
23
|
+
## Iterate
|
|
75
24
|
|
|
76
25
|
```bash
|
|
77
26
|
dreamboard sync
|
|
78
|
-
dreamboard sync --update-sdk
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
If the remote has advanced unexpectedly, reconcile authored changes explicitly with:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
dreamboard pull
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Compile the current authored head:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
27
|
dreamboard compile
|
|
91
|
-
dreamboard
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Inspect local vs remote state:
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
dreamboard status
|
|
98
|
-
dreamboard status --json
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Run the game locally (server-compiled UI):
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
dreamboard run
|
|
105
|
-
dreamboard run --players 4
|
|
106
|
-
dreamboard run --seed 1337
|
|
107
|
-
dreamboard run --new-session
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
If no successful compile exists for the current authored state yet, `dreamboard run` will ask you to run `dreamboard compile` first.
|
|
111
|
-
By default, the CLI uses `manifest.json`'s `playerConfig.minPlayers` to decide how many seats to create.
|
|
112
|
-
|
|
113
|
-
`dreamboard run` now defaults to a wait-and-observe loop when no scenario is provided:
|
|
114
|
-
|
|
115
|
-
1. Reuse the previous active session (`--resume` defaults to true) unless `--new-session` is set.
|
|
116
|
-
2. Subscribe to session SSE events.
|
|
117
|
-
3. Exit when `YOUR_TURN` (default `--until`) or `GAME_ENDED` is received.
|
|
118
|
-
4. Persist artifacts in `.dreamboard/run/`:
|
|
119
|
-
- `session.json`
|
|
120
|
-
- `events.ndjson`
|
|
121
|
-
- `latest-your-turn.json`
|
|
122
|
-
- `last-run-summary.json`
|
|
123
|
-
|
|
124
|
-
`dreamboard run` is deterministic-by-default for new sessions: if `--seed` is not provided, it uses `1337`.
|
|
125
|
-
|
|
126
|
-
Useful flags:
|
|
127
|
-
|
|
128
|
-
- `--until YOUR_TURN|GAME_ENDED|ANY`
|
|
129
|
-
- `--observe-events turns|all` (default `turns`; persist `YOUR_TURN` and `ACTION_REJECTED` messages)
|
|
130
|
-
- `--seed <int>` (deterministic RNG seed for new sessions, default `1337`)
|
|
131
|
-
- `--timeout-ms <ms>`
|
|
132
|
-
- `--max-events <count>`
|
|
133
|
-
- `--screenshot` (capture one Playwright screenshot for the selected run session)
|
|
134
|
-
- `--output <path>`
|
|
135
|
-
- `--delay <ms>`
|
|
136
|
-
- `--width <px>`
|
|
137
|
-
- `--height <px>`
|
|
138
|
-
- `--scenario-driver api|ui` (default `api`)
|
|
139
|
-
|
|
140
|
-
Playwright launch is now optional:
|
|
141
|
-
|
|
142
|
-
1. It is launched when `--scenario-driver ui` is used.
|
|
143
|
-
2. It is launched when `--screenshot` is used.
|
|
144
|
-
3. Default API scenarios (`--scenario` with `--scenario-driver api`) do not require Playwright.
|
|
145
|
-
4. Pure observe runs (`dreamboard run` without scenario/screenshot) do not require a browser session.
|
|
146
|
-
|
|
147
|
-
## Scenario Files
|
|
148
|
-
|
|
149
|
-
`dreamboard run --scenario <file>` supports scenario JSON (API driver by default):
|
|
150
|
-
|
|
151
|
-
```json
|
|
152
|
-
{
|
|
153
|
-
"steps": [
|
|
154
|
-
{
|
|
155
|
-
"playerId": "player-1",
|
|
156
|
-
"actionType": "playCard",
|
|
157
|
-
"parameters": { "cardId": "hearts-7" },
|
|
158
|
-
"turns": 1
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"playerId": "player-1",
|
|
162
|
-
"actionType": "endTurn",
|
|
163
|
-
"parameters": {},
|
|
164
|
-
"turns": 1
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
`playerId` is required on every scenario step. The CLI executes all steps in order per invocation:
|
|
171
|
-
|
|
172
|
-
```bash
|
|
173
|
-
dreamboard run
|
|
174
|
-
dreamboard run --scenario path/to/scenario.json
|
|
175
|
-
dreamboard run --scenario path/to/scenario.json --scenario-driver ui
|
|
28
|
+
dreamboard dev
|
|
176
29
|
```
|
|
177
30
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
API-driven scenarios are strict per step: after each `submitAction`, the CLI waits for either `ACTION_EXECUTED` or `ACTION_REJECTED`. On rejection, it stops immediately with `stopReason=scenario_rejected`.
|
|
181
|
-
|
|
182
|
-
Screenshots are saved to `.dreamboard/screenshots/` by default. The CLI captures the same session selected by `--resume` / `--new-session`.
|
|
31
|
+
`dreamboard dev` starts the local iframe host for the current project while gameplay continues on the backend.
|
|
183
32
|
|
|
184
|
-
|
|
33
|
+
## Test
|
|
185
34
|
|
|
186
35
|
```bash
|
|
187
|
-
dreamboard
|
|
188
|
-
dreamboard run
|
|
189
|
-
dreamboard run --
|
|
36
|
+
dreamboard test generate
|
|
37
|
+
dreamboard test run
|
|
38
|
+
dreamboard test run --scenario test/scenarios/example.scenario.ts
|
|
190
39
|
```
|
|
191
40
|
|
|
192
|
-
|
|
41
|
+
Scenario assertions must use the projection-only API from `test/testing-types.ts`:
|
|
193
42
|
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
- Local embedded-harness testing remains Bun-only and requires a source checkout with local backend support.
|
|
199
|
-
- Internal source-checkout builds may expose extra auth and environment helpers, but those are not part of the published CLI contract.
|
|
43
|
+
- `players()`
|
|
44
|
+
- `state()`
|
|
45
|
+
- `view(playerId)`
|
|
46
|
+
- `expect`
|
|
200
47
|
|
|
201
|
-
##
|
|
48
|
+
## Scaffold ownership
|
|
202
49
|
|
|
203
|
-
-
|
|
204
|
-
- `dreamboard new` installs the bundled skill into `.agents/skills/dreamboard/` in the generated game project.
|
|
205
|
-
- The Node helper script for run-artifact inspection is `.agents/skills/dreamboard/scripts/events-extract.mjs`.
|
|
206
|
-
- Public GitHub repo for the CLI is [dreamboard-games/dreamboard-cli](https://github.com/dreamboard-games/dreamboard-cli).
|
|
50
|
+
Framework-owned static scaffold files are restored by `dreamboard sync`. Generated projects no longer expose wire-format message typings.
|