@moku-labs/game 0.14.13 → 0.15.1
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/dist/app/page.d.mts +1 -1
- package/dist/app/page.mjs +2 -2
- package/dist/app/system.d.mts +3 -3
- package/dist/app.d.mts +3 -3
- package/dist/app.mjs +1 -1
- package/dist/assets.d.mts +1 -1
- package/dist/cli.mjs +75 -36
- package/dist/{commands-DAETmK86.d.mts → commands-BynjWVVy.d.mts} +7 -6
- package/dist/control.d.mts +30 -18
- package/dist/control.mjs +2 -2
- package/dist/{define-BASd9ZUh.d.mts → define-Ckj_TMWu.d.mts} +2 -2
- package/dist/{dev-DbHgx-R-.mjs → dev-BNndV-hU.mjs} +4 -4
- package/dist/{headless-cFveciuY.d.mts → headless-B0mH9qYg.d.mts} +1 -1
- package/dist/{index-DedbED3T.d.mts → index-CCiTo1_3.d.mts} +16 -4
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +2 -2
- package/dist/inspect.d.mts +6 -6
- package/dist/inspect.mjs +1 -1
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/project.d.mts +4 -4
- package/dist/project.mjs +1 -1
- package/dist/{run-BbipFRc6.mjs → run-C07NXds7.mjs} +35 -25
- package/dist/{runtime-DoSlRx8X.d.mts → runtime-BV3xv6gx.d.mts} +1 -1
- package/dist/{sources-Cdvb0rOS.mjs → sources-OvHvyeJS.mjs} +1 -1
- package/dist/{src-BEbJ_sSx.mjs → src-CwVzErzN.mjs} +1921 -652
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-GHE4J5Uf.d.mts → types-Bw-qLjFZ.d.mts} +2 -2
- package/dist/{types-C73hbmxi.d.mts → types-CpdkyhaC.d.mts} +4 -4
- package/dist/{types-DngFQJro.d.mts → types-D44EL4gT.d.mts} +2 -2
- package/dist/{types-BGcda5Le.d.mts → types-E2ykwIUO.d.mts} +556 -42
- package/dist/{types-7GXcXxxv.d.mts → types-G3ZAAsbd.d.mts} +20 -1
- package/dist/{visual-_XhoGeIC.d.mts → visual-DoHwXeQi.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/dist/visual.mjs +2 -2
- package/dist/{watch-BEdrp80i.mjs → watch-BSgptowj.mjs} +16 -6
- package/llms.txt +6 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as tween, et as set, i as types_d_exports$16, it as stagger, lt as types_d_exports$4, nt as spawn, ot as use, p as types_d_exports$2, q as external, rt as spawned, st as wait, tt as sfx, v as types_d_exports$5 } from "./types-
|
|
3
|
-
import { N as types_d_exports$8, O as types_d_exports$14, W as types_d_exports$7, _ as BindOptions, d as LocalWrite, f as popup, k as defineComponent, l as Box, p as defineTokens, u as DebugTrigger, w as TextFormat, y as CountdownValue } from "./types-
|
|
4
|
-
import { $ as
|
|
5
|
-
export { Alpha, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, types_d_exports$10 as Model, type MonitorConfig, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, types_d_exports$12 as Renderer, SaveUnreadableError, types_d_exports$13 as Scenes, Shape, Sprite, Swipeable, Tappable, Text, type TextFormat, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
|
1
|
+
import { $ as PerfCause, $t as types_d_exports$17, B as FrameReadResult, Bt as Shape, Cr as types_d_exports$10, Ct as ShaderWhat, D as MonitorConfig, F as types_d_exports$12, Ft as NineSlice, G as OverlayEventDetail, Gt as Transform, H as FrameRecord, Hn as slot, Ht as Sprite, J as PERF_GAP_BUCKETS, Jt as DEMAND_REASONS, K as OverlayWhat, L as MonitorCounts, Lt as Overlay, M as PoolTrim, Mt as Display, Nt as HudPart, Or as SaveUnreadableError, Pt as HudPartValue, Q as PassRecord, Rt as OverlayValue, St as ShaderEventDetail, U as FrameRing, Un as to, V as FrameReadout, Vn as exit, W as LongFrameEntry, Wn as type, X as PROBLEM_RULES, Y as PERF_LOG_VERSION, Z as PassKind, _t as PerfThermalLine, at as PerfEventLine, bt as ProblemRule, ct as PerfHeaderLine, dt as PerfMarkLine, et as PerfChange, ft as PerfMeasured, gr as types_d_exports$3, gt as PerfTelemetryLine, h as types_d_exports$1, ht as PerfStartupLine, it as PerfDisplay, lt as PerfLogLine, mt as PerfSpikeLine, nt as PerfCollectorLine, ot as PerfEventName, pt as PerfSampleLine, q as PERF_CAUSES, qr as types_d_exports$15, qt as sprite, rt as PerfCounts, st as PerfGapLine, tt as PerfChangeEntry, ut as PerfLongFrameLine, vn as DescriptionNode, vt as PoolTrimDetail, w as types_d_exports$13, wt as WarmDetail, xt as SHADER_WHATS, yt as ProblemEventDetail, z as FrameColumns, zn as types_d_exports$6, zr as types_d_exports$9, zt as Parent } from "./types-E2ykwIUO.mjs";
|
|
2
|
+
import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as tween, et as set, i as types_d_exports$16, it as stagger, lt as types_d_exports$4, nt as spawn, ot as use, p as types_d_exports$2, q as external, rt as spawned, st as wait, tt as sfx, v as types_d_exports$5 } from "./types-Bw-qLjFZ.mjs";
|
|
3
|
+
import { N as types_d_exports$8, O as types_d_exports$14, W as types_d_exports$7, _ as BindOptions, d as LocalWrite, f as popup, k as defineComponent, l as Box, p as defineTokens, u as DebugTrigger, w as TextFormat, y as CountdownValue } from "./types-G3ZAAsbd.mjs";
|
|
4
|
+
import { $ as defineEffect, A as Held, At as defineTextStyles, B as Traced, C as Animation, Ct as audioPlugin, D as load, Dt as Countdown, E as defineBundles, Et as projection, F as Pressed, G as Now, H as frameAt, I as Swipeable, J as component, K as Order, L as Tappable, M as Pointer, N as PointerOver, O as Draggable, Ot as Text, P as Pressable, Q as tag, R as Touchable, S as AnimPlayer, St as clockPlugin, T as defineScene, Tt as animPlugin, U as Exiting, V as PASS_KINDS, W as Layer, X as resource, Y as mut, Z as system, _ as defineStyle, _t as inputPlugin, a as defineEmitter, at as worldPlugin, b as messageDuration, bt as effectsPlugin, c as Alpha, ct as textPlugin, d as Displacement, dt as platformPlugin, et as guide, f as Glow, ft as BackResult, g as resolve, gt as lifecyclePlugin, h as music, ht as modelPlugin, i as screen, it as flattenFeatures, j as Hovered, jt as label, k as DropTarget, kt as bind, l as Blur, lt as scenesPlugin, m as Outline, mt as types_d_exports$11, n as createPlugin, nt as schedule, o as Emitter, ot as uiPlugin, p as Noise, pt as PlatformProvider, q as Tree, r as defineGame, rt as defineFeature, s as defineFilter, st as timePlugin, t as createApp, tt as hint, u as ColorMatrix, ut as rendererPlugin, v as tr, vt as i18nPlugin, w as Frames, wt as assetsPlugin, x as defineMotion, xt as debugPlugin, y as messageArgument, yt as flowPlugin, z as Traceable } from "./index-CCiTo1_3.mjs";
|
|
5
|
+
export { Alpha, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_d_exports$13 as Scenes, type ShaderEventDetail, type ShaderWhat, Shape, Sprite, Swipeable, Tappable, Text, type TextFormat, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as parallel, A as types_exports$5, At as Blur, B as DebugTrigger, Bt as assetsPlugin, C as types_exports$12, Ct as Traced, D as types_exports$8, Dt as effectsPlugin, E as types_exports$9, Et as messageDuration, F as types_exports, Ft as Outline, G as textPlugin, Gt as rendererPlugin, H as popup, Ht as AnimPlayer, I as uiPlugin, It as defineFilter, J as defineAnimation, Jt as
|
|
1
|
+
import { $ as parallel, $t as DEMAND_REASONS, A as types_exports$5, At as Blur, B as DebugTrigger, Bt as assetsPlugin, C as types_exports$12, Ct as Traced, D as types_exports$8, Dt as effectsPlugin, E as types_exports$9, Et as messageDuration, F as types_exports, Ft as Outline, G as textPlugin, Gt as rendererPlugin, H as popup, Ht as AnimPlayer, I as uiPlugin, It as defineFilter, J as defineAnimation, Jt as PERF_CAUSES, K as platformPlugin, Kt as PASS_KINDS, L as resolve, Lt as debugPlugin, M as types_exports$3, Mt as Displacement, N as types_exports$2, Nt as Glow, O as types_exports$7, Ot as Emitter, P as types_exports$1, Pt as Noise, Q as mark, Qt as SHADER_WHATS, R as defineMotion, Rt as audioPlugin, S as types_exports$13, St as Traceable, T as types_exports$10, Tt as messageArgument, U as defineTokens, Ut as Animation, V as LocalWrite, Vt as animPlugin, W as defineStyle, Wt as Frames, X as frames, Xt as PERF_LOG_VERSION, Y as external, Yt as PERF_GAP_BUCKETS, Z as haptic, Zt as PROBLEM_RULES, _ as load, _t as Pressable, a as defineEffect, an as to, at as spawned, b as types_exports$15, bt as Tappable, c as schedule, cn as SaveUnreadableError, ct as use, d as tr, dn as clockPlugin, dt as Draggable, en as worldPlugin, et as play, f as defineFeature, ft as DropTarget, g as defineBundles, gt as PointerOver, h as music, ht as Pointer, i as screen, in as slot, it as spawn, j as types_exports$4, jt as ColorMatrix, k as types_exports$6, kt as Alpha, l as projection, ln as lifecyclePlugin, lt as wait, m as defineEmitter, mt as Hovered, n as createPlugin, nt as set, o as guide, on as type, ot as stagger, p as flattenFeatures, pt as Held, q as HAPTIC_KINDS, qt as frameAt, r as defineGame, rn as exit, rt as sfx, s as hint, sn as modelPlugin, st as tween, t as createApp, tn as flowPlugin, tt as sequence, u as defineScene, un as timePlugin, ut as inputPlugin, v as types_exports$17, vt as Pressed, w as types_exports$11, wt as i18nPlugin, x as types_exports$14, xt as Touchable, y as types_exports$16, yt as Swipeable, z as Box, zt as scenesPlugin } from "./src-CwVzErzN.mjs";
|
|
2
2
|
import { A as Order, C as Sprite, D as Exiting, E as sprite, F as system, L as tag, M as component, N as mut, O as Layer, P as resource, S as Shape, _ as HudPart, c as Countdown, f as defineTextStyles, g as Display, j as Tree, k as Now, l as Text, p as label, u as bind, v as NineSlice, w as Transform, x as Parent, y as Overlay } from "./visual-2m4wJL_z.mjs";
|
|
3
3
|
import { r as defineComponent } from "./flatten-BkXuscAV.mjs";
|
|
4
|
-
export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SaveUnreadableError, types_exports$13 as Scenes, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
|
4
|
+
export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-
|
|
3
|
-
import { c as UiNode } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-
|
|
5
|
-
import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-
|
|
6
|
-
import { n as defineSource } from "./define-
|
|
1
|
+
import { $n as JournalEntry, In as Position, P as Under, R as RenderStats, T as Api$2, Yt as Api$1, Zn as FlowGraph, Zt as Explained, _r as Api, cn as EntitySnapshot, in as ComponentSchema, kr as Snapshot, ln as FrameDiff, m as Usage, t as Api$3 } from "./types-E2ykwIUO.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-Bw-qLjFZ.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-G3ZAAsbd.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-B0mH9qYg.mjs";
|
|
5
|
+
import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-D44EL4gT.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-Ckj_TMWu.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/flow/doors/read.d.ts
|
|
9
9
|
/**
|
package/dist/inspect.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as defineSource } from "./session-CeKgO2hy.mjs";
|
|
2
|
-
import { n as read, r as watch, t as sources } from "./sources-
|
|
2
|
+
import { n as read, r as watch, t as sources } from "./sources-OvHvyeJS.mjs";
|
|
3
3
|
import "./inspect-la_KkjCS.mjs";
|
|
4
4
|
export { defineSource, read, sources, watch };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-
|
|
1
|
+
import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-BV3xv6gx.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxDEV, jsxs };
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-
|
|
1
|
+
import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-BV3xv6gx.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxs };
|
package/dist/project.d.mts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @file project — the public types of the project index: the options of `openProject`, the index
|
|
4
4
|
* it holds, the anchors of a key, the fresh lines `find` answers and the handle itself. The index
|
|
5
|
-
* maps every engine id of a game (flows, nodes, features, scenes, projections, emitters,
|
|
6
|
-
* styles, styles, components and JSX keys) to anchors: a path plus a binding, a key or a component. It never
|
|
5
|
+
* maps every engine id of a game (flows, nodes, features, scenes, projections, systems, emitters,
|
|
6
|
+
* text styles, styles, components and JSX keys) to anchors: a path plus a binding, a key or a component. It never
|
|
7
7
|
* holds a line number; `find` reads the line from the file as it is on disk at the call. Names are
|
|
8
8
|
* followed through relative imports and the tsconfig `paths` of the game. No type here names a
|
|
9
9
|
* `typescript` type, so the shipped declarations need no TypeScript.
|
|
@@ -55,8 +55,8 @@ type Anchor = {
|
|
|
55
55
|
/** The file, root-relative POSIX. */path: string; /** The const, function or export the definition is bound to. */
|
|
56
56
|
binding?: string;
|
|
57
57
|
/**
|
|
58
|
-
* The property or attribute key: a text style key, the `name` of a projection
|
|
59
|
-
* the property a style function builds a style under (`icon` of `roundStylesOf`).
|
|
58
|
+
* The property or attribute key: a text style key, the `name` of a projection or a system, a
|
|
59
|
+
* JSX key, or the property a style function builds a style under (`icon` of `roundStylesOf`).
|
|
60
60
|
*/
|
|
61
61
|
key?: string;
|
|
62
62
|
/**
|
package/dist/project.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as readInside, _ as declaredFunctions, a as reindexPath, b as unwrap, c as definerOfCall, d as sha1, f as definersOf, g as holeOf, h as hasHole, i as openSession, l as JSX, m as HOLE, n as createHub, o as serialize, p as collectJsx, s as parseCached, u as jsxShapes, v as propertyNameOf, y as propertyOfValue } from "./watch-
|
|
1
|
+
import { S as readInside, _ as declaredFunctions, a as reindexPath, b as unwrap, c as definerOfCall, d as sha1, f as definersOf, g as holeOf, h as hasHole, i as openSession, l as JSX, m as HOLE, n as createHub, o as serialize, p as collectJsx, s as parseCached, u as jsxShapes, v as propertyNameOf, y as propertyOfValue } from "./watch-BSgptowj.mjs";
|
|
2
2
|
import { createBrandConsole } from "@moku-labs/common/cli";
|
|
3
3
|
//#region src/project/locate.ts
|
|
4
4
|
/** The kind of a style key. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as sheetAlone, d as graphHash } from "./capture-D7XvoHdH.mjs";
|
|
2
|
-
import { a as isDev, i as isControl, n as controlRefused, o as notInstalled, r as isAgent, t as controlReadOnly } from "./dev-
|
|
2
|
+
import { a as isDev, i as isControl, n as controlRefused, o as notInstalled, r as isAgent, t as controlReadOnly } from "./dev-BNndV-hU.mjs";
|
|
3
3
|
import { n as reproBookmark } from "./headless-BA6ffzqD.mjs";
|
|
4
4
|
import { a as readTarget, i as isProjectionTarget, n as isTainted, o as inputOrEmpty, r as recordCheat, s as defineCommand } from "./session-CeKgO2hy.mjs";
|
|
5
5
|
//#region src/plugins/anim/control.ts
|
|
@@ -76,7 +76,8 @@ const muteCommand = defineCommand({
|
|
|
76
76
|
*/
|
|
77
77
|
/**
|
|
78
78
|
* Turns one filter kind off or on, through `effects.diagnostics`. Answers the kinds that are off afterwards.
|
|
79
|
-
* Cosmetic: it runs on
|
|
79
|
+
* Cosmetic: it runs on every debug page, `--debug=read` too. A door for the MCP and the tools page; it carries no
|
|
80
|
+
* `overlay` marker.
|
|
80
81
|
*
|
|
81
82
|
* @throws {Error} `[game] No filter kind "fx.nope".` naming every known kind, and `notInstalled` without
|
|
82
83
|
* `effectsPlugin`.
|
|
@@ -113,7 +114,7 @@ const filterCommand = defineCommand({
|
|
|
113
114
|
/**
|
|
114
115
|
* @file input plugin — the input commands of the `/control` door: a drag from one view onto
|
|
115
116
|
* another, a trace through many views and a key press. Each goes through `app.input`, so the gate
|
|
116
|
-
* decides and the session stays clean. Dev builds and `--debug
|
|
117
|
+
* decides and the session stays clean. Dev builds and `--debug` builds (not `--debug=read`): every body starts
|
|
117
118
|
* with the inline control guard of a route command, so a bundler `define` of `false` drops it,
|
|
118
119
|
* and logs the `moku:dev` marker. The targets
|
|
119
120
|
* are read with `target.ts`; `readTarget` is re-exported here for the `game.tap` command of ui,
|
|
@@ -521,7 +522,7 @@ function readRepro(value) {
|
|
|
521
522
|
* canvas, with its options, and switch the debug drawing. Dev and debug builds: every body starts with
|
|
522
523
|
* the inline agent guard of a read or cosmetic command, so a bundler `define` of `false` drops it,
|
|
523
524
|
* and logs the `moku:dev` marker. A capture with `diff` writes the state, so it also takes the
|
|
524
|
-
* control guard: a `--debug` page refuses it.
|
|
525
|
+
* control guard: a `--debug=read` page refuses it.
|
|
525
526
|
*/
|
|
526
527
|
/** The input fields of `game.capture`, in the order its `moku:dev` entry lists them. */
|
|
527
528
|
const CAPTURE_FIELDS = [
|
|
@@ -773,7 +774,7 @@ async function captureDiff(app, options, diff, raw) {
|
|
|
773
774
|
* itself as a raw write (`tainted` turns true), restores the bookmark and waits for its gate, takes
|
|
774
775
|
* that picture, restores where the game stood and waits again, and answers the pixel diff of now
|
|
775
776
|
* against then. While the game is paused it steps each frame it waits on, 1000/60 ms of game time.
|
|
776
|
-
* `undefined` while the renderer is inert, as in a headless test. A `--debug` page takes the
|
|
777
|
+
* `undefined` while the renderer is inert, as in a headless test. A `--debug=read` page takes the
|
|
777
778
|
* picture and refuses `diff` with the read-only error of `controlReadOnly`.
|
|
778
779
|
*
|
|
779
780
|
* @example
|
|
@@ -814,17 +815,20 @@ const captureCommand = defineCommand({
|
|
|
814
815
|
* Switches the debug drawing and checks: `nineSlice` outlines every nine-slice and the lines Pixi
|
|
815
816
|
* cuts its texture at, `verifyFrames` compares every frame the renderer skips (and every kept
|
|
816
817
|
* picture) with the same frame drawn live, `kept` draws every filtered view live (false) or lets
|
|
817
|
-
* the renderer keep pictures (true)
|
|
818
|
-
*
|
|
818
|
+
* the renderer keep pictures (true), `overdraw` draws every frame as the overdraw heat map. Each
|
|
819
|
+
* field given is applied, one left out keeps its switch; a call with none answers the switches
|
|
820
|
+
* unchanged. Answers the switches as they are afterwards.
|
|
819
821
|
*
|
|
820
822
|
* @example
|
|
821
823
|
* ```ts
|
|
822
824
|
* // Check where the settings popup cuts its parchment.
|
|
823
|
-
* (await run(app, commands.debug, { nineSlice: true })).value; // { nineSlice: true, verifyFrames: false, kept: true }
|
|
825
|
+
* (await run(app, commands.debug, { nineSlice: true })).value; // { nineSlice: true, verifyFrames: false, kept: true, overdraw: false }
|
|
824
826
|
* // The visual runner checks the skipped frames of a test in the browser.
|
|
825
|
-
* (await run(app, commands.debug, { verifyFrames: true })).value; // { nineSlice: true, verifyFrames: true, kept: true }
|
|
827
|
+
* (await run(app, commands.debug, { verifyFrames: true })).value; // { nineSlice: true, verifyFrames: true, kept: true, overdraw: false }
|
|
826
828
|
* // The editor measures the memory screen without kept pictures.
|
|
827
|
-
* (await run(app, commands.debug, { kept: false })).value; // { nineSlice: true, verifyFrames: true, kept: false }
|
|
829
|
+
* (await run(app, commands.debug, { kept: false })).value; // { nineSlice: true, verifyFrames: true, kept: false, overdraw: false }
|
|
830
|
+
* // Mission control shows where the board stacks its layers.
|
|
831
|
+
* (await run(app, commands.debug, { overdraw: true })).value; // { nineSlice: true, verifyFrames: true, kept: false, overdraw: true }
|
|
828
832
|
* ```
|
|
829
833
|
*/
|
|
830
834
|
const debugCommand = defineCommand({
|
|
@@ -833,20 +837,23 @@ const debugCommand = defineCommand({
|
|
|
833
837
|
input: {
|
|
834
838
|
nineSlice: "boolean?",
|
|
835
839
|
verifyFrames: "boolean?",
|
|
836
|
-
kept: "boolean?"
|
|
840
|
+
kept: "boolean?",
|
|
841
|
+
overdraw: "boolean?"
|
|
837
842
|
},
|
|
838
843
|
effect: "cosmetic",
|
|
839
|
-
run: (app, { nineSlice, verifyFrames, kept }) => {
|
|
844
|
+
run: (app, { nineSlice, verifyFrames, kept, overdraw }) => {
|
|
840
845
|
if ((typeof __MOKU_GAME_DEV__ === "undefined" || !__MOKU_GAME_DEV__) && (typeof __MOKU_GAME_AGENT__ === "undefined" || !__MOKU_GAME_AGENT__)) throw controlRefused();
|
|
841
846
|
app.log.debug("moku:dev", {
|
|
842
847
|
command: "game.debug",
|
|
843
848
|
...nineSlice === void 0 ? {} : { nineSlice },
|
|
844
849
|
...verifyFrames === void 0 ? {} : { verifyFrames },
|
|
845
|
-
...kept === void 0 ? {} : { kept }
|
|
850
|
+
...kept === void 0 ? {} : { kept },
|
|
851
|
+
...overdraw === void 0 ? {} : { overdraw }
|
|
846
852
|
});
|
|
847
853
|
if (nineSlice !== void 0) app.renderer.sync.debug.nineSlice(nineSlice);
|
|
848
854
|
if (verifyFrames !== void 0) app.renderer.sync.debug.verifyFrames(verifyFrames);
|
|
849
855
|
if (kept !== void 0) app.renderer.sync.debug.kept(kept);
|
|
856
|
+
if (overdraw !== void 0) app.renderer.sync.debug.overdraw(overdraw);
|
|
850
857
|
return app.renderer.sync.debug.state();
|
|
851
858
|
}
|
|
852
859
|
});
|
|
@@ -938,12 +945,15 @@ const timeScaleCommand = defineCommand({
|
|
|
938
945
|
});
|
|
939
946
|
/**
|
|
940
947
|
* Forces the frame rate, or gives it back to the config without `fps`, and answers the rate after
|
|
941
|
-
* the call
|
|
942
|
-
*
|
|
948
|
+
* the call: the rate the loop really runs at, the rate asked and whether the panel holds it lower.
|
|
949
|
+
* For an A/B run on the phone: the same screen at 120 and at 60. A wrong `fps` is refused by
|
|
950
|
+
* `setRate` with its own message.
|
|
943
951
|
*
|
|
944
952
|
* @example
|
|
945
953
|
* ```ts
|
|
946
954
|
* (await run(app, commands.frameRate, { fps: 60 })).value.fps; // 60
|
|
955
|
+
* // a pin of 120 on a 60 Hz phone runs at the panel's rate:
|
|
956
|
+
* (await run(app, commands.frameRate, { fps: 120 })).value; // { fps: 60, mode: "forced", …, asked: 120, heldBy: "panel" }
|
|
947
957
|
* (await run(app, commands.frameRate, {})).value.mode; // "auto" with adaptive, "fixed" without
|
|
948
958
|
* ```
|
|
949
959
|
*/
|
|
@@ -967,7 +977,7 @@ const frameRateCommand = defineCommand({
|
|
|
967
977
|
* @file ui plugin — the two ui commands of the `/control` door: a tap on a keyed element or on a
|
|
968
978
|
* view, and the text typed into a field. The tap goes through `app.input`, so the gate decides;
|
|
969
979
|
* the text goes through `app.ui.fill`, which writes a component's local and answers nothing. The
|
|
970
|
-
* session stays clean. Dev builds and `--debug
|
|
980
|
+
* session stays clean. Dev builds and `--debug` builds (not `--debug=read`): each body starts with the inline
|
|
971
981
|
* control guard of a route command, so a bundler `define` of `false` drops it, and logs the
|
|
972
982
|
* `moku:dev` marker.
|
|
973
983
|
*/
|
|
@@ -1257,7 +1267,7 @@ const restoreCommand = defineCommand({
|
|
|
1257
1267
|
});
|
|
1258
1268
|
/**
|
|
1259
1269
|
* Answers the committed state as the save holds it: the player, the session and the rng, plain
|
|
1260
|
-
* JSON. A read: it runs on a `--debug` page too, so a tester's progress can leave the store app.
|
|
1270
|
+
* JSON. A read: it runs on a `--debug=read` page too, so a tester's progress can leave the store app.
|
|
1261
1271
|
*
|
|
1262
1272
|
* @example
|
|
1263
1273
|
* ```ts
|
|
@@ -1287,7 +1297,7 @@ const saveExportCommand = defineCommand({
|
|
|
1287
1297
|
* them lands. A start that is a rest node is entered; a transit node runs again on the imported
|
|
1288
1298
|
* trees, rng included, up to the first gate it opens, at a rest node or a popup. Then the store
|
|
1289
1299
|
* flushes. Replaces the state outside the graph, so the session is tainted and the
|
|
1290
|
-
* command journaled. A `--debug` page refuses it; `--debug
|
|
1300
|
+
* command journaled. A `--debug=read` page refuses it; a `--debug` page and the dev page run it.
|
|
1291
1301
|
*
|
|
1292
1302
|
* @throws {Error} `[game] game.saveImport needs { player, session, rng } of game.saveExport.` for
|
|
1293
1303
|
* a value without the three trees.
|
|
@@ -1324,7 +1334,7 @@ const saveImportCommand = defineCommand({
|
|
|
1324
1334
|
/**
|
|
1325
1335
|
* Every command of the engine, keyed by its short name: what an editor lists as buttons and MCP
|
|
1326
1336
|
* tools. Frozen. Each runs on the dev page and on a debug page, by the profile `run` checks: a
|
|
1327
|
-
* `--debug` page runs the read and cosmetic ones.
|
|
1337
|
+
* `--debug` page runs every one, a `--debug=read` page the read and cosmetic ones.
|
|
1328
1338
|
*
|
|
1329
1339
|
* @example
|
|
1330
1340
|
* ```ts
|
|
@@ -1372,17 +1382,17 @@ function envelopeOf(app) {
|
|
|
1372
1382
|
};
|
|
1373
1383
|
}
|
|
1374
1384
|
/**
|
|
1375
|
-
* Runs a command in a dev build or a debug build. A debug build
|
|
1376
|
-
*
|
|
1385
|
+
* Runs a command in a dev build or a debug build. A `--debug` build and the dev page run every
|
|
1386
|
+
* command; a `--debug=read` build runs the read and cosmetic ones only. A `cheat` or `raw`
|
|
1377
1387
|
* command taints the session and is journaled before it runs, so a failing one still counts.
|
|
1378
1388
|
*
|
|
1379
1389
|
* @param app - The app the command acts on.
|
|
1380
1390
|
* @param command - The command.
|
|
1381
1391
|
* @param input - Its input; left out when every field of its schema is optional.
|
|
1382
1392
|
* @returns The command's value and the envelope read after it.
|
|
1383
|
-
* @throws {Error} Outside dev builds and debug builds (
|
|
1384
|
-
* with `--debug=
|
|
1385
|
-
* `raw` command on a `--debug` page, and whatever the command throws.
|
|
1393
|
+
* @throws {Error} Outside dev builds and debug builds (every command with `--debug`; the read and
|
|
1394
|
+
* cosmetic ones alone with `--debug=read`), the read-only refusal of `controlReadOnly` for a
|
|
1395
|
+
* `route`, `cheat` or `raw` command on a `--debug=read` page, and whatever the command throws.
|
|
1386
1396
|
* @example
|
|
1387
1397
|
* ```ts
|
|
1388
1398
|
* // An e2e script: load the bug report, then tap Play.
|
|
@@ -1390,7 +1400,7 @@ function envelopeOf(app) {
|
|
|
1390
1400
|
* const ran = await run(app, commands.answer, { intent: "play" });
|
|
1391
1401
|
* ran.value; // true
|
|
1392
1402
|
* ran.state; // { path: "board/awaitIntent", frame: 14, tainted: true }
|
|
1393
|
-
* // On a --debug page: await run(app, commands.tap, { key: "play" }); // throws "[game] The command game.tap changes the game: …"
|
|
1403
|
+
* // On a --debug=read page: await run(app, commands.tap, { key: "play" }); // throws "[game] The command game.tap changes the game: …"
|
|
1394
1404
|
* ```
|
|
1395
1405
|
*/
|
|
1396
1406
|
async function run(app, command, ...input) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as JsxChild, h as UiIntrinsicElements, t as DescriptionNode } from "./types-
|
|
1
|
+
import { a as JsxChild, h as UiIntrinsicElements, t as DescriptionNode } from "./types-G3ZAAsbd.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. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as Layer, a as scaleByFits } from "./visual-2m4wJL_z.mjs";
|
|
2
|
-
import { o as notInstalled } from "./dev-
|
|
2
|
+
import { o as notInstalled } from "./dev-BNndV-hU.mjs";
|
|
3
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
|
/**
|