@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.
- package/README.md +88 -26
- package/bin/moku-game.mjs +4 -0
- package/dist/app/page.d.mts +41 -0
- package/dist/app/page.mjs +376 -0
- package/dist/app/system.d.mts +129 -0
- package/dist/app/system.mjs +307 -0
- package/dist/app.d.mts +37 -0
- package/dist/app.mjs +235 -0
- package/dist/assets-BHwTLVta.mjs +7391 -0
- package/dist/assets.d.mts +97 -33
- package/dist/assets.mjs +1 -7150
- package/dist/{capture-BX5Gfoty.mjs → capture-fpd83Mi5.mjs} +384 -1
- package/dist/cli.d.mts +70 -0
- package/dist/cli.mjs +1650 -0
- package/dist/{commands-C1kIfOG5.d.mts → commands-C4QlqijJ.d.mts} +5 -6
- package/dist/config-CdARrrhU.mjs +81 -0
- package/dist/control.d.mts +11 -10
- package/dist/control.mjs +3 -3
- package/dist/{define-BPpZcpxW.d.mts → define-CCc0ozKe.d.mts} +2 -2
- package/dist/{dev-wKLgOw7c.mjs → dev-Cc50Dk7H.mjs} +1 -1
- package/dist/{memory-CvgdnsQO.mjs → drafts-BawpSaVp.mjs} +1 -104
- package/dist/fake-MpzwZhIZ.mjs +87 -0
- package/dist/{headless-CvamCUcR.mjs → headless-BsNdJs9W.mjs} +1 -1
- package/dist/{headless-q98SwADR.d.mts → headless-G4nuZ-xz.d.mts} +1 -1
- package/dist/hot.d.mts +8 -8
- package/dist/hot.mjs +15 -14
- package/dist/index-xxSxKJJW.d.mts +1611 -0
- package/dist/index.d.mts +6 -1597
- package/dist/index.mjs +4 -34343
- package/dist/inspect-la_KkjCS.mjs +1 -0
- package/dist/inspect.d.mts +7 -8
- package/dist/inspect.mjs +3 -2
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/lint.d.mts +55 -4
- package/dist/lint.mjs +999 -42
- package/dist/memory-CWlqhS7l.mjs +136 -0
- package/dist/memory-DwDhfFWK.d.mts +50 -0
- package/dist/project.d.mts +29 -13
- package/dist/project.mjs +1120 -631
- package/dist/{run-CUPSFM85.mjs → run-wYty_Lwo.mjs} +4 -4
- package/dist/{runtime-CvDZZg1S.d.mts → runtime-DOBYM6g4.d.mts} +1 -1
- package/dist/{input-z_35Jwfn.mjs → session-DgukhR_7.mjs} +20 -20
- package/dist/{sources-BBUd15vQ.mjs → sources-Duzj6lhV.mjs} +3 -3
- package/dist/src-DSl1eNB1.mjs +34366 -0
- package/dist/testing.d.mts +115 -34
- package/dist/testing.mjs +175 -70
- package/dist/{types-DlgsfOmW.d.mts → types-BM4shh8K.d.mts} +300 -263
- package/dist/{types-DgdMLZnV.d.mts → types-BUwDHKXm.d.mts} +1372 -1373
- package/dist/{types-DF5kkW-C.d.mts → types-CefgYzFt.d.mts} +4 -5
- package/dist/{types-CDSKa0vl.d.mts → types-DAdwEJMp.d.mts} +2 -2
- package/dist/{types-BWzCSRM2.d.mts → types-ZQLYXo5X.d.mts} +2983 -20
- package/dist/types-hQgI_wrq.d.mts +544 -0
- package/dist/{visual-DUvvPPCt.mjs → visual-dMW8iqAE.mjs} +8 -4
- package/dist/visual.d.mts +10 -11
- package/dist/visual.mjs +5 -5
- package/llms.txt +170 -57
- package/package.json +30 -2
- package/dist/registry-DlpRCibU.mjs +0 -384
- package/dist/types-ERb2Y9U5.d.mts +0 -2967
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as sheetAlone } from "./capture-
|
|
2
|
-
import { n as isDev, r as notInstalled, t as controlRefused } from "./dev-
|
|
3
|
-
import { n as reproBookmark } from "./headless-
|
|
4
|
-
import { a as
|
|
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-
|
|
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
|
-
|
|
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-
|
|
2
|
-
import { r as notInstalled } from "./dev-
|
|
3
|
-
import {
|
|
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.
|