@moku-labs/game 0.15.85 → 0.15.87

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 (38) hide show
  1. package/README.md +4 -3
  2. package/dist/app/page.d.mts +1 -1
  3. package/dist/app/page.mjs +2 -2
  4. package/dist/app/system.d.mts +3 -3
  5. package/dist/app.d.mts +3 -3
  6. package/dist/app.mjs +1 -1
  7. package/dist/assets.d.mts +1 -1
  8. package/dist/cli.mjs +351 -83
  9. package/dist/{commands-DKjkHK5b.d.mts → commands-DxUF13zr.d.mts} +5 -5
  10. package/dist/{config-Cn1VZ-tx.mjs → config-BYx_7HL1.mjs} +24 -5
  11. package/dist/control.d.mts +12 -8
  12. package/dist/control.mjs +2 -2
  13. package/dist/{define-DcB9KOfh.d.mts → define-CMl6NcM4.d.mts} +27 -5
  14. package/dist/{headless-B8JIqsZk.d.mts → headless-DtDdn5gg.d.mts} +1 -1
  15. package/dist/{index-DTHVVLFB.d.mts → index-Bn0pFiae.d.mts} +3 -3
  16. package/dist/index.d.mts +4 -4
  17. package/dist/index.mjs +1 -1
  18. package/dist/inspect.d.mts +6 -6
  19. package/dist/inspect.mjs +2 -2
  20. package/dist/jsx-dev-runtime.d.mts +1 -1
  21. package/dist/jsx-runtime.d.mts +1 -1
  22. package/dist/{run-3QhrffgM.mjs → run-B5if0jxE.mjs} +1 -1
  23. package/dist/{runtime-B3CsJr_p.d.mts → runtime-DOvgFNLH.d.mts} +1 -1
  24. package/dist/{session-DuZfGZWk.mjs → session-D0AYRm5T.mjs} +39 -3
  25. package/dist/{sources-Djd8MjP9.mjs → sources-CyltHb9o.mjs} +1 -1
  26. package/dist/{src-D1J2QlGK.mjs → src-BFa-zMmW.mjs} +1132 -89
  27. package/dist/testing.d.mts +4 -4
  28. package/dist/testing.mjs +1 -1
  29. package/dist/{types-DsRV-ph1.d.mts → types-BpipkaVe.d.mts} +41 -11
  30. package/dist/{types-DJCC9CAp.d.mts → types-C5gLBKbm.d.mts} +16 -6
  31. package/dist/{types-DfHytzox.d.mts → types-CbVXXqPs.d.mts} +130 -16
  32. package/dist/{types-CPWi_CLI.d.mts → types-OBpR0u05.d.mts} +1 -1
  33. package/dist/{types-DhECCgeT.d.mts → types-OKAnpylW.d.mts} +15 -5
  34. package/dist/{visual-B76IxxTL.d.mts → visual-CMnWgCkh.d.mts} +6 -6
  35. package/dist/visual.d.mts +1 -1
  36. package/dist/visual.mjs +2 -2
  37. package/llms.txt +6 -6
  38. package/package.json +3 -3
package/README.md CHANGED
@@ -164,17 +164,18 @@ The engine bin `moku-game` serves, builds and packs a game folder. A game writes
164
164
  |---|---|
165
165
  | `moku-game dev [--port 3000] [--packed]` | Serves the game with hot reload. Prints the bound URL, also for `--port 0`. On the raw files it runs the scan of `keys` at start and on a save of an asset or a strings file. Restarts its server when the installed engine changes |
166
166
  | `moku-game build [--out dist/web] [--debug[=full] [--editor host:port]]` | Packs the assets and builds the page; `--debug` adds the editor's page agent (read and cosmetic commands), `--debug=full` every command; `--editor` names where the agent finds the editor (default `127.0.0.1:47600`). A debug page is never shipped: a release page that carries the agent is refused |
167
- | `moku-game native build <target> [--simulator] [--debug[=full] [--editor host:port]]` | Builds the native app: `ios`, `macos`, `android`; `--debug` builds an Android debug app beside the store app |
167
+ | `moku-game native build <target> [--simulator] [--debug[=full] [--editor host:port]]` | Builds the native app: `ios`, `macos`, `android`; `--debug` builds an Android or iOS debug app beside the store app |
168
168
  | `moku-game native build <target> --store --build-number <n>` | A store build: an `.aab` on `android`, an `.ipa` for App Store Connect on `ios`. The version comes from `package.json`, the signing from `native.signing`. Everything wrong is refused at once, before anything compiles |
169
+ | `moku-game native build <target> --store --dev --build-number <n>` | The test app of `native.dev`: store-signed, under its own `.dev` id, with the overlay and no editor link, in `dist-native-dev` |
169
170
  | `moku-game native dev <target>` | Runs the native shell on the dev server |
170
- | `moku-game native doctor`, `native clean` | Checks or removes the native project |
171
+ | `moku-game native doctor`, `native clean` | Checks or removes the native project; `clean` also the test and iOS debug projects |
171
172
  | `moku-game keys [--check]` | Writes `generated/assets.ts`, the strings and `generated/manifest.json` |
172
173
  | `moku-game pack [--no-cache]` | Packs the assets into `dist/assets` |
173
174
  | `moku-game visual [--update] [--only <name>] [--no-pixels]` | Runs the visual tests of `tests/visual/index.ts` against `tests/visual/baselines/`. The pixel leg runs on a Mac, on a page served for the run. Exit 1 when a checkpoint differs |
174
175
 
175
176
  Every command takes `--root <dir>`, `--preload <path>` and `--serve-plugin <path>`.
176
177
 
177
- `config.ts` names the system plugins the page wires, `system: ["lifecycle", "back", "haptics", "keepAwake"]`, and the save, `save: "memory" | "local" | "store"`. A `system` list and the `"store"` save need the optional peer `@moku-labs/system`; `moku-game native` needs `@moku-labs/native`. The game imports neither. The `native` keys are `name`, `identifier`, `icon`, `targets`, `signing` (`android`, `apple`: env var names and identifiers, never a secret) and `ios` (`minimumVersion`, `"26.0"` by default, `infoPlist`, `privacyManifest`). The whole shell is in [docs/shell.md](./docs/shell.md).
178
+ `config.ts` names the system plugins the page wires, `system: ["lifecycle", "back", "haptics", "keepAwake"]`, and the save, `save: "memory" | "local" | "store"`. A `system` list and the `"store"` save need the optional peer `@moku-labs/system`; `moku-game native` needs `@moku-labs/native`. The game imports neither. The `native` keys are `name`, `identifier`, `icon`, `targets`, `signing` (`android`, `apple`: env var names and identifiers, never a secret), `ios` (`minimumVersion`, `"26.0"` by default, `infoPlist`, `privacyManifest`) and `dev` (`identifier`, ending in `.dev`, `name`, `icon`: the test app of `--store --dev`). The whole shell is in [docs/shell.md](./docs/shell.md).
178
179
 
179
180
  ## How it works
180
181
 
@@ -1,4 +1,4 @@
1
- import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-DhECCgeT.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-OKAnpylW.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
package/dist/app/page.mjs CHANGED
@@ -2,8 +2,8 @@ import { r as systemSource, t as memory } from "../memory-CWlqhS7l.mjs";
2
2
  import { t as applyTo } from "../drafts-BawpSaVp.mjs";
3
3
  import { i as isControl } from "../dev-BNndV-hU.mjs";
4
4
  import { n as fakeClock, t as VISUAL_CLOCK } from "../fake-hnJcJeYf.mjs";
5
- import { n as read, r as watch, t as sources } from "../sources-Djd8MjP9.mjs";
6
- import { t as resolveConfig } from "../config-Cn1VZ-tx.mjs";
5
+ import { n as read, r as watch, t as sources } from "../sources-CyltHb9o.mjs";
6
+ import { n as resolveConfig } from "../config-BYx_7HL1.mjs";
7
7
  //#region src/app/boot.ts
8
8
  /** How long after the fade the timer removes a picture whose transition never ended, ms. */
9
9
  const FALLBACK_MS = 100;
@@ -1,6 +1,6 @@
1
- import { Br as PlayerStateProvider } from "../types-DfHytzox.mjs";
2
- import { ht as PlatformProvider } from "../index-DTHVVLFB.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-DhECCgeT.mjs";
1
+ import { Ur as PlayerStateProvider } from "../types-CbVXXqPs.mjs";
2
+ import { ht as PlatformProvider } from "../index-Bn0pFiae.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-OKAnpylW.mjs";
4
4
  import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
5
5
 
6
6
  //#region src/app/system.d.ts
package/dist/app.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { Fr as Json } from "./types-DfHytzox.mjs";
2
- import { U as StringTable } from "./types-CPWi_CLI.mjs";
3
- import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-DhECCgeT.mjs";
1
+ import { Rr as Json } from "./types-CbVXXqPs.mjs";
2
+ import { U as StringTable } from "./types-OBpR0u05.mjs";
3
+ import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-OKAnpylW.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-D1J2QlGK.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-BFa-zMmW.mjs";
2
2
  import { t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
package/dist/assets.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-DfHytzox.mjs";
1
+ import { d as Manifest } from "./types-CbVXXqPs.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**