@moku-labs/game 0.14.12 → 0.14.13

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 (56) hide show
  1. package/README.md +13 -12
  2. package/dist/app/page.d.mts +8 -3
  3. package/dist/app/page.mjs +57 -12
  4. package/dist/app/system.d.mts +5 -3
  5. package/dist/app/system.mjs +2 -0
  6. package/dist/app.d.mts +15 -7
  7. package/dist/app.mjs +131 -27
  8. package/dist/{assets-BrKSg1O6.mjs → assets-CEMfBogh.mjs} +471 -120
  9. package/dist/assets.d.mts +30 -13
  10. package/dist/assets.mjs +1 -1
  11. package/dist/cli.d.mts +105 -8
  12. package/dist/cli.mjs +1036 -128
  13. package/dist/{commands-BaCx2B9j.d.mts → commands-DAETmK86.d.mts} +43 -7
  14. package/dist/{config-CdARrrhU.mjs → config-B87aFTW-.mjs} +25 -4
  15. package/dist/control.d.mts +130 -17
  16. package/dist/control.mjs +4 -4
  17. package/dist/{define-Ce8SVEN-.d.mts → define-BASd9ZUh.d.mts} +32 -4
  18. package/dist/dev-DbHgx-R-.mjs +89 -0
  19. package/dist/{fake-MpzwZhIZ.mjs → fake-6mazmHK3.mjs} +20 -2
  20. package/dist/features-DowEilZm.mjs +266 -0
  21. package/dist/{headless-CMHNsKjW.d.mts → headless-cFveciuY.d.mts} +1 -1
  22. package/dist/hot.d.mts +4 -2
  23. package/dist/hot.mjs +7 -4
  24. package/dist/{index-CLQ8NOTw.d.mts → index-DedbED3T.d.mts} +317 -69
  25. package/dist/index.d.mts +5 -6
  26. package/dist/index.mjs +3 -3
  27. package/dist/inspect.d.mts +12 -7
  28. package/dist/inspect.mjs +2 -2
  29. package/dist/jsx-dev-runtime.d.mts +1 -1
  30. package/dist/jsx-runtime.d.mts +1 -1
  31. package/dist/lint.d.mts +8 -3
  32. package/dist/lint.mjs +432 -20
  33. package/dist/project.d.mts +15 -1
  34. package/dist/project.mjs +1 -1
  35. package/dist/{run-Bf2hKyjZ.mjs → run-BbipFRc6.mjs} +250 -51
  36. package/dist/{runtime-BCnKn0xf.d.mts → runtime-DoSlRx8X.d.mts} +1 -1
  37. package/dist/{session-DgukhR_7.mjs → session-CeKgO2hy.mjs} +30 -2
  38. package/dist/{sources-Duzj6lhV.mjs → sources-Cdvb0rOS.mjs} +33 -6
  39. package/dist/{src-CtC8w3_z.mjs → src-BEbJ_sSx.mjs} +35536 -17789
  40. package/dist/testing.d.mts +23 -13
  41. package/dist/testing.mjs +10 -6
  42. package/dist/{types-DOlpeuGx.d.mts → types-7GXcXxxv.d.mts} +174 -242
  43. package/dist/{types-BjTtGSFb.d.mts → types-BGcda5Le.d.mts} +4459 -732
  44. package/dist/{types-gisvSHoC.d.mts → types-C73hbmxi.d.mts} +129 -17
  45. package/dist/{types-CAPv9l29.d.mts → types-DngFQJro.d.mts} +43 -5
  46. package/dist/{types-Y_rCuXtj.d.mts → types-GHE4J5Uf.d.mts} +1025 -191
  47. package/dist/{visual-dMW8iqAE.mjs → visual-2m4wJL_z.mjs} +111 -7
  48. package/dist/visual-_XhoGeIC.d.mts +345 -0
  49. package/dist/visual.d.mts +1 -332
  50. package/dist/visual.mjs +130 -20
  51. package/dist/{watch-CWI_on4T.mjs → watch-BEdrp80i.mjs} +149 -30
  52. package/llms.txt +99 -48
  53. package/package.json +8 -6
  54. package/dist/dev-Cc50Dk7H.mjs +0 -47
  55. package/dist/memory-pUQ7YZWC.d.mts +0 -50
  56. package/dist/types-BX4Ge_j5.d.mts +0 -656
@@ -1,6 +1,6 @@
1
- import { i as scaleByFits, w as Layer } from "./visual-dMW8iqAE.mjs";
2
- import { r as notInstalled } from "./dev-Cc50Dk7H.mjs";
3
- import { a as readTarget, c as defineSource, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-DgukhR_7.mjs";
1
+ import { O as Layer, a as scaleByFits } from "./visual-2m4wJL_z.mjs";
2
+ import { o as notInstalled } from "./dev-DbHgx-R-.mjs";
3
+ import { a as readTarget, c as defineSource, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-CeKgO2hy.mjs";
4
4
  //#region src/plugins/flow/doors/read.ts
5
5
  /**
6
6
  * @file flow/doors — `read` and `watch`, the `/inspect` side. Neither changes the game.
@@ -150,8 +150,8 @@ const audioMutedSource = defineSource({
150
150
  //#endregion
151
151
  //#region src/plugins/effects/inspect.ts
152
152
  /**
153
- * @file effects plugin — the effects source of the `/inspect` door: the counts of `stats()`.
154
- * Production-safe: it only reads.
153
+ * @file effects plugin — the sources of the `/inspect` door: the counts of `stats()` and the
154
+ * filter kinds with the ones a debug switch turned off. Production-safe: they only read.
155
155
  */
156
156
  /**
157
157
  * What the effects draw now: live particles, emitter instances with orphans, filter instances
@@ -175,6 +175,31 @@ const effectsSource = defineSource({
175
175
  return app.effects.stats();
176
176
  }
177
177
  });
178
+ /**
179
+ * The filter kinds of the app, in registration order, and the ones a debug switch turned off.
180
+ * Production-safe: it only reads, and `off` is always `[]` there.
181
+ *
182
+ * @throws {Error} `[game] The source game.filters needs effectsPlugin.` when the app has no `effectsPlugin`.
183
+ * @example
184
+ * ```ts
185
+ * // The editor's tools page after the glow was switched off on the phone.
186
+ * read(app, sources.filters); // { kinds: ["effects.glow", …, "casefile.frost"], off: ["effects.glow"] }
187
+ * ```
188
+ */
189
+ const filtersSource = defineSource({
190
+ id: "game.filters",
191
+ title: "Filter kinds",
192
+ input: {},
193
+ changes: "frame",
194
+ read: (app) => {
195
+ if (app.effects === void 0) throw notInstalled("game.filters", "effectsPlugin");
196
+ const { diagnostics } = app.effects;
197
+ return {
198
+ kinds: diagnostics.kinds(),
199
+ off: diagnostics.disabled()
200
+ };
201
+ }
202
+ });
178
203
  //#endregion
179
204
  //#region src/plugins/model/inspect.ts
180
205
  /**
@@ -229,7 +254,8 @@ function underOf(world, entity) {
229
254
  * ```ts
230
255
  * // The editor's stats panel on the board of Timber Town, in a dev build.
231
256
  * read(app, sources.render);
232
- * // { fps: 60, frameMs: 3.4, textures: 12, textureMb: 41.25, views: 180, pooled: 24, renderPasses: 1, drawCalls: 14 }
257
+ * // { fps: 60, drawn: 60, frameMs: 3.4, textures: 12, textureMb: 41.25,
258
+ * // textureMbSplit: { art: 30.1, targets: 9.75, kept: 1.4 }, views: 180, pooled: 24, renderPasses: 1, …, drawCalls: 14 }
233
259
  * ```
234
260
  */
235
261
  const renderSource = defineSource({
@@ -741,6 +767,7 @@ const sources = Object.freeze({
741
767
  sounds: soundsSource,
742
768
  audioMuted: audioMutedSource,
743
769
  effects: effectsSource,
770
+ filters: filtersSource,
744
771
  assets: assetsSource,
745
772
  log: logSource,
746
773
  explain: explainSource,