@moku-labs/game 0.15.84 → 0.15.86

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 (32) hide show
  1. package/README.md +2 -1
  2. package/dist/app/page.d.mts +1 -1
  3. package/dist/app/page.mjs +1 -1
  4. package/dist/app/system.d.mts +3 -3
  5. package/dist/app.d.mts +4 -4
  6. package/dist/app.mjs +1 -1
  7. package/dist/assets.d.mts +1 -1
  8. package/dist/cli.mjs +519 -185
  9. package/dist/{commands-DKjkHK5b.d.mts → commands-CeBF2nRY.d.mts} +5 -5
  10. package/dist/{config-HpC-p8Ow.mjs → config-Cn1VZ-tx.mjs} +77 -4
  11. package/dist/control.d.mts +4 -4
  12. package/dist/{define-DcB9KOfh.d.mts → define-N-2nQNK_.d.mts} +2 -2
  13. package/dist/{headless-B8JIqsZk.d.mts → headless-DtDdn5gg.d.mts} +1 -1
  14. package/dist/{index-DTHVVLFB.d.mts → index-Bn0pFiae.d.mts} +3 -3
  15. package/dist/index.d.mts +4 -4
  16. package/dist/index.mjs +1 -1
  17. package/dist/inspect.d.mts +6 -6
  18. package/dist/jsx-dev-runtime.d.mts +1 -1
  19. package/dist/jsx-runtime.d.mts +1 -1
  20. package/dist/{runtime-B3CsJr_p.d.mts → runtime-DOvgFNLH.d.mts} +1 -1
  21. package/dist/{src-D1J2QlGK.mjs → src-BFa-zMmW.mjs} +1132 -89
  22. package/dist/testing.d.mts +4 -4
  23. package/dist/testing.mjs +1 -1
  24. package/dist/{types-DJCC9CAp.d.mts → types-C5gLBKbm.d.mts} +16 -6
  25. package/dist/{types-DfHytzox.d.mts → types-CbVXXqPs.d.mts} +130 -16
  26. package/dist/{types-D-5dwalj.d.mts → types-CyPbo757.d.mts} +45 -7
  27. package/dist/{types-DsRV-ph1.d.mts → types-DNWWlVky.d.mts} +2 -2
  28. package/dist/{types-CPWi_CLI.d.mts → types-OBpR0u05.d.mts} +1 -1
  29. package/dist/{visual-B76IxxTL.d.mts → visual-Di8ecxYD.d.mts} +6 -6
  30. package/dist/visual.d.mts +1 -1
  31. package/llms.txt +3 -2
  32. package/package.json +3 -3
package/README.md CHANGED
@@ -165,6 +165,7 @@ The engine bin `moku-game` serves, builds and packs a game folder. A game writes
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
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 |
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 |
168
169
  | `moku-game native dev <target>` | Runs the native shell on the dev server |
169
170
  | `moku-game native doctor`, `native clean` | Checks or removes the native project |
170
171
  | `moku-game keys [--check]` | Writes `generated/assets.ts`, the strings and `generated/manifest.json` |
@@ -173,7 +174,7 @@ The engine bin `moku-game` serves, builds and packs a game folder. A game writes
173
174
 
174
175
  Every command takes `--root <dir>`, `--preload <path>` and `--serve-plugin <path>`.
175
176
 
176
- `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 whole shell is in [docs/shell.md](./docs/shell.md).
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).
177
178
 
178
179
  ## How it works
179
180
 
@@ -1,4 +1,4 @@
1
- import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-D-5dwalj.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-CyPbo757.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
package/dist/app/page.mjs CHANGED
@@ -3,7 +3,7 @@ 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
5
  import { n as read, r as watch, t as sources } from "../sources-Djd8MjP9.mjs";
6
- import { t as resolveConfig } from "../config-HpC-p8Ow.mjs";
6
+ import { t as resolveConfig } from "../config-Cn1VZ-tx.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 SystemShellFactory, g as SystemName, h as SystemModules } from "../types-D-5dwalj.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-CyPbo757.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 { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-D-5dwalj.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-CyPbo757.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
@@ -42,4 +42,4 @@ declare const startMoment = 1000000;
42
42
  */
43
43
  declare function defineGameApp<const Plugins extends readonly AnyPluginInstance[] = readonly [], const HeadlessPlugins extends readonly AnyPluginInstance[] = readonly [], Player extends Json = Json, Session extends Json = Json, Strings extends StringTable = StringTable>(definition: GameDefinition<Plugins, HeadlessPlugins, Player, Session, Strings>): GameApp<Plugins, HeadlessPlugins, Player, Session, Strings>;
44
44
  //#endregion
45
- export { type GameApp, type GameConfig, type GameDefinition, type GameHandle, type GamePluginConfigs, type HeadlessSeams, type MemoryProvider, type PageAgent, type SaveKind, type Scenario, type ScreenSeams, type SystemName, type WithGameState, defineGameApp, startMoment };
45
+ export { type GameApp, type GameConfig, type GameDefinition, type GameHandle, type GamePluginConfigs, type HeadlessSeams, type MemoryProvider, type PageAgent, type PlistValue, type SaveKind, type Scenario, type ScreenSeams, type SystemName, type WithGameState, defineGameApp, startMoment };
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
  /**