@opengamehq/cli 0.11.0 → 0.12.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 +3 -1
- package/CHANGELOG.md +28 -5
- package/dist/cli.mjs +223 -135
- package/dist/preflight-worker.mjs +13 -13
- package/dist/runtime-builder.mjs +1 -1
- package/dist/skills/manifest.json +13 -13
- package/dist/skills/opengame-all-in-one/SKILL.md +1 -1
- package/dist/skills/opengame-all-in-one/references/opengame-deploy/README.md +4 -2
- package/dist/skills/opengame-all-in-one/references/opengame-sdk/README.md +2 -2
- package/dist/skills/opengame-all-in-one/references/opengame-sdk/references/engines.md +8 -0
- package/dist/skills/opengame-deploy/SKILL.md +4 -2
- package/dist/skills/opengame-sdk/SKILL.md +2 -2
- package/dist/skills/opengame-sdk/references/engines.md +8 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -219,7 +219,9 @@ OpenGame runs no game server or rooms. A multiplayer game brings its own, throug
|
|
|
219
219
|
|
|
220
220
|
## Engines
|
|
221
221
|
|
|
222
|
-
OpenGame supports games built with Three.js, Unity, Godot, Kaigen and WebAssembly, and static web builds from any JavaScript engine. `opengame check` and the server detect the engine from the build. Any other static browser export uploads as a custom build, under the same file and runtime checks.
|
|
222
|
+
OpenGame supports games built with Three.js, Unity, Godot, Unreal Engine, Kaigen and WebAssembly, and static web builds from any JavaScript engine. `opengame check` and the server detect the engine from the build. Any other static browser export uploads as a custom build, under the same file and runtime checks.
|
|
223
|
+
|
|
224
|
+
Any web framework works once it builds static files: Vite, React, React Three Fiber, webpack, Parcel, Astro, SvelteKit with adapter-static, Nuxt with `nuxt generate`, and Next.js with `output: "export"` in `next.config`, which writes `out/`. `init` reads the framework's config and writes the folder the build fills. A project configured for a server fails with `static_build_required`, which names the setting to change; change that setting instead of passing `--output`. [Web frameworks](https://docs.opengame.io/guides/web-frameworks) has each one.
|
|
223
225
|
|
|
224
226
|
Run `opengame init . --engine <id>` to record an engine's export folder. `opengame help --json` lists the IDs, and `init` prints the export steps and the guide for the one you choose. The [engine overview](https://docs.opengame.io/engines/overview) links every engine page.
|
|
225
227
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
- Unreal Engine 5.9 Wasm packages. `opengame init` recognises a `.uproject`, sets the export
|
|
6
|
+
folder to `Build/Wasm` and adds `"requires": { "renderer": "webgpu" }`, and run inside a
|
|
7
|
+
package it names Unreal Engine from the package itself. `check` admits the Brotli copies
|
|
8
|
+
Unreal writes beside its `.pak`, `.utoc`, `.ushaderbytecode`, `.stinfo` and `.json` files, and
|
|
9
|
+
leaves out `index.html.br`, a compressed copy of the page that OpenGame never serves.
|
|
10
|
+
- `check` no longer runs out of memory on a large Brotli-compressed `.wasm`: a 140 MB module
|
|
11
|
+
stopped it with "invalid array length" before it printed anything.
|
|
12
|
+
- `opengame init` reads a site framework's own config for the output folder: `out/` for a
|
|
13
|
+
Next.js static export (or `distDir`), `dist/` for Astro, `build/` for SvelteKit's
|
|
14
|
+
adapter-static (or `pages`), `.output/public/` for `nuxt generate`, webpack's
|
|
15
|
+
`output.path`, and parcel's default `dist/`. Until now a Next.js game with three.js in it
|
|
16
|
+
got `dist/`, and a webpack or parcel project could get its source page.
|
|
17
|
+
- A project set to build a server stops with `static_build_required` and the setting to
|
|
18
|
+
change: a Next.js app without `output: "export"`, SvelteKit without adapter-static,
|
|
19
|
+
`nuxt build`, Astro's server output, or a base path such as Next.js `basePath: "/game"`.
|
|
20
|
+
- A multi-page build is one export: pages inside the build folder, and the copy SvelteKit
|
|
21
|
+
keeps under `.svelte-kit/`, are no longer offered as separate choices.
|
|
22
|
+
- `opengame dev` serves `/menu/` as `menu/index.html`, `/about` as `about.html`, and sends
|
|
23
|
+
`/menu` to `/menu/`, the way games are served on OpenGame.
|
|
24
|
+
- `~/.config/opengame/skills.json` records each agent's own CLI version and skills, so
|
|
25
|
+
`opengame setup --agent codex` after an update leaves Claude Code to be refreshed by the next
|
|
26
|
+
command rather than marking it current. A file from before is read as each agent's own.
|
|
27
|
+
- An `opengame setup --no-skills` saved while another command was installing skills stands:
|
|
28
|
+
every change to that file is read and written under a lock, from the file as it is then.
|
|
29
|
+
- Carries the skills from `@opengamehq/skills` 1.7.1.
|
|
30
|
+
|
|
3
31
|
## 0.11.0
|
|
4
32
|
|
|
5
33
|
- `opengame setup` gives your coding agents the OpenGame skills: every skill this CLI carries,
|
|
@@ -17,11 +45,6 @@
|
|
|
17
45
|
- The staging folder an install uses beside an agent's folder must be a real folder, never a
|
|
18
46
|
link, and is tidied only where an install writes.
|
|
19
47
|
- Carries the skills from `@opengamehq/skills` 1.7.0, which install the CLI with `opengame setup`.
|
|
20
|
-
- `~/.config/opengame/skills.json` records each agent's own CLI version and skills, so
|
|
21
|
-
`opengame setup --agent codex` after an update leaves Claude Code to be refreshed by the next
|
|
22
|
-
command rather than marking it current. A file from before is read as each agent's own.
|
|
23
|
-
- An `opengame setup --no-skills` saved while another command was installing skills stands:
|
|
24
|
-
every change to that file is read and written under a lock, from the file as it is then.
|
|
25
48
|
- `opengame` with no command lists `publish` among the first five, in place of `submit`, which
|
|
26
49
|
is now only for a release that was not sent to review by itself. `achievements` no longer
|
|
27
50
|
says the website has a retire control; `opengame achievements retire` is the way.
|