@opengamehq/cli 0.7.0 → 0.8.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/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. When one 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,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ - `opengame init` guesses a genre from the title, the description, the page's meta
6
+ description and package.json's keywords, as its help says. When none of those names a
7
+ genre, it asks a person, and an agent or a script gets `puzzle-casual`, with the line to
8
+ change it. It used to leave genre blank, and `opengame check` then refused the file.
9
+ - `opengame init` in a folder whose opengame.json leaves title, description, genre or
10
+ controls blank fills those in and keeps everything the file sets. It used to stop because
11
+ the file existed. A file with nothing blank is still refused, and a flag for a field the
12
+ file already sets is named as unused. If the file is saved while init is asking a
13
+ question, init keeps that edit and writes nothing.
14
+ - `opengame init` sets controls from the keyboard, mouse, touch and gamepad listeners in
15
+ your game's own source. Touch counts as mouse, so a game that only listens for taps or
16
+ clicks gets `mouse`. It used to write keyboard and mouse whatever the game used, and
17
+ still does when it finds no input at all.
18
+ - A genre or controls that init chose without being told are marked provisional when you
19
+ deploy, as Drop and the GitHub tab already do, so the details form after review offers
20
+ what review detected rather than treating the guess as your choice. Change either in
21
+ opengame.json and it is yours.
22
+ - `opengame check` says how to set a blank or unknown genre, naming the genres and the
23
+ init line that fills it, rather than "Correct genre in opengame.json".
24
+ - Ships the skills from `@opengamehq/skills` 1.3.0, as 0.7.0 did.
25
+
3
26
  ## 0.7.0
4
27
 
5
28
  - `opengame unpublish` takes a game off the gallery and stops serving it, and `opengame
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. When one 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. |