@moku-labs/game 0.15.162 → 0.15.164

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.
@@ -1,9 +1,8 @@
1
- import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-DTkhpupa.mjs";
2
- import { Y as AnimApi, r as UiApi } from "./types-D8D2ZtEi.mjs";
3
- import { R as InputApi } from "./types-CPiWOiSc.mjs";
4
- import { r as Repro } from "./headless-PANjNy6-.mjs";
5
- import { i as ControlApp, o as InputOf } from "./types-BuN6rLDs.mjs";
6
- import { t as commands } from "./commands-Gi8RMNnU.mjs";
1
+ import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-B93wB7Sh.mjs";
2
+ import { L as InputApi, nt as AnimApi, s as UiApi } from "./types-Cs3a-2Km.mjs";
3
+ import { r as Repro } from "./headless-8XrFW9w1.mjs";
4
+ import { i as ControlApp, o as InputOf } from "./types-BEEPI3F3.mjs";
5
+ import { t as commands } from "./commands-D5MG6t52.mjs";
7
6
 
8
7
  //#region src/visual/types.d.ts
9
8
  /** The base commands of the `/control` door, keyed by their short names. */
package/dist/visual.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-nAxiy1aK.mjs";
1
+ import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-BrvFv5pU.mjs";
2
2
  export { type CheckpointResult, type VisualApp, type VisualOptions, type VisualPage, type VisualRenderer, type VisualReport, type VisualSetup, type VisualStart, type VisualStep, type VisualTest, type VisualTestResult, type VisualTolerance, defineVisualTest, parseVisualArgv, runVisualTests };
package/llms.txt CHANGED
@@ -539,7 +539,7 @@ The editor's overlay from the game, in every app. The plugin name `debug` is res
539
539
  ### flow (Very Complex, depends on time, lifecycle, model, clock)
540
540
 
541
541
  The graph. Modules `runner`, `gate`, `inbox`, `fx`, `features`. Runner methods sit on the plugin root.
542
- - Runner: `run(): Promise<void>`, `onEnter(stage: "begin" | "load" | "scene", callback): () => void` (stages run in that order, each awaited; a `"begin"` callback must not wait: `scenes` shows the veil there before `assets` downloads at `"load"`), `walk(route, options?: { from?: Bookmark }): Promise<FlowState>`, `bookmark(): Bookmark`, `restore(bookmark): Promise<void>`, `describe(): FlowGraph`, `state(): FlowState`, `history(): readonly JournalEntry[]`, `setMode("live" | "fast")`.
542
+ - Runner: `run(): Promise<void>`, `onEnter(stage: "begin" | "load" | "scene", callback): () => void` (stages run in that order, each awaited; a `"begin"` callback must not wait: `scenes` shows the veil there before `assets` downloads at `"load"`), `walk(route, options?: { from?: Bookmark }): Promise<FlowState>` (on a live app the popup whose gate the walk rests at is shown once live mode is back; popups the route answered stay unshown), `bookmark(): Bookmark`, `restore(bookmark): Promise<void>`, `describe(): FlowGraph`, `state(): FlowState`, `history(): readonly JournalEntry[]`, `setMode("live" | "fast")`.
543
543
  - `gate.answer({ intent, payload? }): boolean` is the one entry of player answers. `gate.pointer(active)`. `gate.state(): { open, allowed, narrowed, blocked? }` (`blocked` while a guide names the answer of a press outside its window).
544
544
  - `inbox.post({ type, payload? })` queues a world event. One entry per type. It is delivered only to a rest node whose `inbox` lists the type.
545
545
  - `fx.handle(kind, handler, options?: { runInFast?: boolean }): () => void` registers the single handler of one effect kind. `fx.dispatch(descriptor)` is fire-and-forget. An awaited effect without a handler resolves `undefined` at once.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.162",
3
+ "version": "0.15.164",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -106,7 +106,7 @@
106
106
  "test:unit": "bun --bun vitest run --project unit",
107
107
  "test:integration": "bun --bun vitest run --project integration",
108
108
  "test:coverage": "bun --bun vitest run --project unit --project integration --coverage",
109
- "test:perf": "node ./node_modules/vitest/vitest.mjs run --project perf",
109
+ "test:perf": "node ./node_modules/vitest/vitest.mjs run --project perf --project perf-cold",
110
110
  "bench:perf": "node ./node_modules/vitest/vitest.mjs bench --run --project perf",
111
111
  "build": "tsdown",
112
112
  "mini:pack": "bun tests/fixtures/moku-game.ts pack --root tests/fixtures/mini-game",
@@ -162,7 +162,7 @@
162
162
  "@moku-labs/ci": "1.5.8",
163
163
  "@moku-labs/common": "0.3.12",
164
164
  "@moku-labs/core": "1.7.6",
165
- "@moku-labs/native": "0.3.15",
165
+ "@moku-labs/native": "0.3.16",
166
166
  "@moku-labs/system": "0.3.8",
167
167
  "@types/bun": "1.4.2",
168
168
  "@vitest/coverage-istanbul": "4.0.18",