@opengamehq/cli 0.9.5 → 0.9.7
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/AGENTS.md +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/dist/cli.mjs +140 -141
- package/dist/opengame-global.js +1 -1
- package/dist/preflight-worker.mjs +14 -14
- package/dist/runtime-builder.mjs +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -202,7 +202,7 @@ Play the private preview before you tell the creator the game works.
|
|
|
202
202
|
<!-- generated:commands -->
|
|
203
203
|
| Command | What it does |
|
|
204
204
|
| --- | --- |
|
|
205
|
-
| `opengame init [dir] [options]` | Create opengame.json for an existing game.
|
|
205
|
+
| `opengame init [dir] [options]` | Create opengame.json for an existing game. Every field defaults to Auto: Leave a field out, blank or "auto" and review writes it from your game; you accept or change it on the deploy's page. A person at a terminal is asked the game's name and nothing else, and Enter takes Auto. When opengame.json is already there, fill in the fields it leaves blank and keep the rest. |
|
|
206
206
|
| `opengame check [dir] [options]` | Find local build and asset problems before uploading. |
|
|
207
207
|
| `opengame dev [dir] [options]` | Serve a local export with game-runtime headers. Under a contract that adds the SDK, pages also get the host runtime and SDK, as they do when hosted. If the contract supports opting out, sdk.inject: false leaves out the SDK. |
|
|
208
208
|
| `opengame login [options]` | Sign in through your browser. |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.7
|
|
4
|
+
|
|
5
|
+
- `opengame --help` gives one line to each command and exit code, and names the environment
|
|
6
|
+
variables. Each command's own `--help` still has its details, and `--json` has every word.
|
|
7
|
+
- `opengame init` and `opengame check` wait at most two seconds for the launch notice. A server
|
|
8
|
+
that took the connection and never answered held them for 30 seconds.
|
|
9
|
+
- The editor schema for `opengame.json` accepts every spelling the CLI reads as Auto: `"auto"`
|
|
10
|
+
in any case, a blank value or `null`.
|
|
11
|
+
|
|
12
|
+
## 0.9.6
|
|
13
|
+
|
|
14
|
+
- Every field the CLI collects defaults to Auto. `opengame init` writes `"auto"` for the title,
|
|
15
|
+
tagline, description, genre and controls unless you pass a flag, and Enter at the name prompt
|
|
16
|
+
takes Auto. Review writes each Auto field from your game, picks the subgenre too, and the
|
|
17
|
+
deploy's page shows what it wrote for you to accept or change before anything publishes.
|
|
18
|
+
- In `opengame.json`, a field left out, blank or `"auto"` is Auto, so `check`, `dev` and
|
|
19
|
+
`deploy` read it. `--genre auto` works too, and a wrong genre lists `auto` first.
|
|
20
|
+
- Words you type are yours. `opengame deploy` prints how review will tidy their casing and
|
|
21
|
+
grammar, and on the deploy's page you pick the tidied copy or your own.
|
|
22
|
+
|
|
3
23
|
## 0.9.5
|
|
4
24
|
|
|
5
25
|
- `opengame init` and `opengame check` work before OpenGame opens to creators, signed in or not,
|
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ OpenCode, so a coding agent can do all of the above for you.
|
|
|
83
83
|
<!-- generated:commands -->
|
|
84
84
|
| Command | What it does |
|
|
85
85
|
| --- | --- |
|
|
86
|
-
| `opengame init [dir] [options]` | Create opengame.json for an existing game.
|
|
86
|
+
| `opengame init [dir] [options]` | Create opengame.json for an existing game. Every field defaults to Auto: Leave a field out, blank or "auto" and review writes it from your game; you accept or change it on the deploy's page. A person at a terminal is asked the game's name and nothing else, and Enter takes Auto. When opengame.json is already there, fill in the fields it leaves blank and keep the rest. |
|
|
87
87
|
| `opengame check [dir] [options]` | Find local build and asset problems before uploading. |
|
|
88
88
|
| `opengame dev [dir] [options]` | Serve a local export with game-runtime headers. Under a contract that adds the SDK, pages also get the host runtime and SDK, as they do when hosted. If the contract supports opting out, sdk.inject: false leaves out the SDK. |
|
|
89
89
|
| `opengame login [options]` | Sign in through your browser. |
|