@moku-labs/game 0.8.0 → 0.10.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.
Files changed (60) hide show
  1. package/README.md +88 -26
  2. package/bin/moku-game.mjs +4 -0
  3. package/dist/app/page.d.mts +41 -0
  4. package/dist/app/page.mjs +376 -0
  5. package/dist/app/system.d.mts +129 -0
  6. package/dist/app/system.mjs +307 -0
  7. package/dist/app.d.mts +37 -0
  8. package/dist/app.mjs +235 -0
  9. package/dist/assets-BHwTLVta.mjs +7391 -0
  10. package/dist/assets.d.mts +97 -33
  11. package/dist/assets.mjs +1 -7150
  12. package/dist/{capture-BX5Gfoty.mjs → capture-fpd83Mi5.mjs} +384 -1
  13. package/dist/cli.d.mts +70 -0
  14. package/dist/cli.mjs +1650 -0
  15. package/dist/{commands-C1kIfOG5.d.mts → commands-C4QlqijJ.d.mts} +5 -6
  16. package/dist/config-CdARrrhU.mjs +81 -0
  17. package/dist/control.d.mts +11 -10
  18. package/dist/control.mjs +3 -3
  19. package/dist/{define-BPpZcpxW.d.mts → define-CCc0ozKe.d.mts} +2 -2
  20. package/dist/{dev-wKLgOw7c.mjs → dev-Cc50Dk7H.mjs} +1 -1
  21. package/dist/{memory-CvgdnsQO.mjs → drafts-BawpSaVp.mjs} +1 -104
  22. package/dist/fake-MpzwZhIZ.mjs +87 -0
  23. package/dist/{headless-CvamCUcR.mjs → headless-BsNdJs9W.mjs} +1 -1
  24. package/dist/{headless-q98SwADR.d.mts → headless-G4nuZ-xz.d.mts} +1 -1
  25. package/dist/hot.d.mts +8 -8
  26. package/dist/hot.mjs +15 -14
  27. package/dist/index-xxSxKJJW.d.mts +1611 -0
  28. package/dist/index.d.mts +6 -1597
  29. package/dist/index.mjs +4 -34343
  30. package/dist/inspect-la_KkjCS.mjs +1 -0
  31. package/dist/inspect.d.mts +7 -8
  32. package/dist/inspect.mjs +3 -2
  33. package/dist/jsx-dev-runtime.d.mts +1 -1
  34. package/dist/jsx-runtime.d.mts +1 -1
  35. package/dist/lint.d.mts +55 -4
  36. package/dist/lint.mjs +999 -42
  37. package/dist/memory-CWlqhS7l.mjs +136 -0
  38. package/dist/memory-DwDhfFWK.d.mts +50 -0
  39. package/dist/project.d.mts +29 -13
  40. package/dist/project.mjs +1120 -631
  41. package/dist/{run-CUPSFM85.mjs → run-wYty_Lwo.mjs} +4 -4
  42. package/dist/{runtime-CvDZZg1S.d.mts → runtime-DOBYM6g4.d.mts} +1 -1
  43. package/dist/{input-z_35Jwfn.mjs → session-DgukhR_7.mjs} +20 -20
  44. package/dist/{sources-BBUd15vQ.mjs → sources-Duzj6lhV.mjs} +3 -3
  45. package/dist/src-DSl1eNB1.mjs +34366 -0
  46. package/dist/testing.d.mts +115 -34
  47. package/dist/testing.mjs +175 -70
  48. package/dist/{types-DlgsfOmW.d.mts → types-BM4shh8K.d.mts} +300 -263
  49. package/dist/{types-DgdMLZnV.d.mts → types-BUwDHKXm.d.mts} +1372 -1373
  50. package/dist/{types-DF5kkW-C.d.mts → types-CefgYzFt.d.mts} +4 -5
  51. package/dist/{types-CDSKa0vl.d.mts → types-DAdwEJMp.d.mts} +2 -2
  52. package/dist/{types-BWzCSRM2.d.mts → types-ZQLYXo5X.d.mts} +2983 -20
  53. package/dist/types-hQgI_wrq.d.mts +544 -0
  54. package/dist/{visual-DUvvPPCt.mjs → visual-dMW8iqAE.mjs} +8 -4
  55. package/dist/visual.d.mts +10 -11
  56. package/dist/visual.mjs +5 -5
  57. package/llms.txt +170 -57
  58. package/package.json +30 -2
  59. package/dist/registry-DlpRCibU.mjs +0 -384
  60. package/dist/types-ERb2Y9U5.d.mts +0 -2967
@@ -1,7 +1,7 @@
1
- import { a as sheetAlone } from "./capture-BX5Gfoty.mjs";
2
- import { n as isDev, r as notInstalled, t as controlRefused } from "./dev-wKLgOw7c.mjs";
3
- import { n as reproBookmark } from "./headless-CvamCUcR.mjs";
4
- import { a as isProjectionTarget, i as recordCheat, o as readTarget, r as isTainted, s as defineCommand, t as inputOrEmpty } from "./input-z_35Jwfn.mjs";
1
+ import { a as sheetAlone } from "./capture-fpd83Mi5.mjs";
2
+ import { n as isDev, r as notInstalled, t as controlRefused } from "./dev-Cc50Dk7H.mjs";
3
+ import { n as reproBookmark } from "./headless-BsNdJs9W.mjs";
4
+ import { a as readTarget, i as isProjectionTarget, n as isTainted, o as inputOrEmpty, r as recordCheat, s as defineCommand } from "./session-DgukhR_7.mjs";
5
5
  //#region src/plugins/anim/control.ts
6
6
  /**
7
7
  * @file anim plugin — the anim command of the `/control` door: switch reduced motion. Dev builds
@@ -1,4 +1,4 @@
1
- import { a as JsxChild, m as UiIntrinsicElements, t as DescriptionNode } from "./types-DgdMLZnV.mjs";
1
+ import { a as JsxChild, m as UiIntrinsicElements, t as DescriptionNode } from "./types-BUwDHKXm.mjs";
2
2
 
3
3
  //#region src/plugins/ui/jsx/runtime.d.ts
4
4
  /** What the compiler passes as props: the children plus whatever the tag declared. */
@@ -67,6 +67,25 @@ function defineCommand(command) {
67
67
  return Object.freeze(command);
68
68
  }
69
69
  //#endregion
70
+ //#region src/plugins/flow/doors/input.ts
71
+ /** The input of a call that passed none. */
72
+ const noInput = Object.freeze({});
73
+ /**
74
+ * Hands the given input on, or an empty one. `InputArguments` and `WatchInput` let a call leave
75
+ * the input out only when every field of the schema is optional, so `{}` is an input of that
76
+ * schema.
77
+ *
78
+ * @param input - The input of the call, if any.
79
+ * @returns The input to pass to the descriptor.
80
+ * @example
81
+ * ```ts
82
+ * inputOrEmpty<{ last: "number?" }>(undefined); // {}
83
+ * ```
84
+ */
85
+ function inputOrEmpty(input) {
86
+ return input ?? noInput;
87
+ }
88
+ //#endregion
70
89
  //#region src/plugins/input/target.ts
71
90
  /**
72
91
  * Tells whether the JSON a command got names a view by its projection key.
@@ -152,23 +171,4 @@ function recordCheat(app, id, input, frame) {
152
171
  sessions.set(app, session);
153
172
  }
154
173
  //#endregion
155
- //#region src/plugins/flow/doors/input.ts
156
- /** The input of a call that passed none. */
157
- const noInput = Object.freeze({});
158
- /**
159
- * Hands the given input on, or an empty one. `InputArguments` and `WatchInput` let a call leave
160
- * the input out only when every field of the schema is optional, so `{}` is an input of that
161
- * schema.
162
- *
163
- * @param input - The input of the call, if any.
164
- * @returns The input to pass to the descriptor.
165
- * @example
166
- * ```ts
167
- * inputOrEmpty<{ last: "number?" }>(undefined); // {}
168
- * ```
169
- */
170
- function inputOrEmpty(input) {
171
- return input ?? noInput;
172
- }
173
- //#endregion
174
- export { isProjectionTarget as a, defineSource as c, recordCheat as i, cheatsOf as n, readTarget as o, isTainted as r, defineCommand as s, inputOrEmpty as t };
174
+ export { readTarget as a, defineSource as c, isProjectionTarget as i, isTainted as n, inputOrEmpty as o, recordCheat as r, defineCommand as s, cheatsOf as t };
@@ -1,6 +1,6 @@
1
- import { i as scaleByFits, w as Layer } from "./visual-DUvvPPCt.mjs";
2
- import { r as notInstalled } from "./dev-wKLgOw7c.mjs";
3
- import { c as defineSource, n as cheatsOf, o as readTarget, r as isTainted, t as inputOrEmpty } from "./input-z_35Jwfn.mjs";
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";
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.