@moku-labs/game 0.15.146 → 0.15.148
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/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/{commands-DjcKboFw.d.mts → commands-DCBhp5aM.d.mts} +10 -8
- package/dist/control.d.mts +4 -4
- package/dist/control.mjs +1 -1
- package/dist/{define-DK_J6R4D.d.mts → define-BUk0oFzZ.d.mts} +2 -2
- package/dist/{headless-BcgzSec_.d.mts → headless-ABpROLSJ.d.mts} +1 -1
- package/dist/{index-BFbScS-y.d.mts → index-sltlACR5.d.mts} +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/inspect.d.mts +6 -6
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/{run-BVW1feQ2.mjs → run-B4imG5Lu.mjs} +33 -14
- package/dist/{runtime-RVZfCuNw.d.mts → runtime-D97-7253.d.mts} +1 -1
- package/dist/{src-DRt212D0.mjs → src-BcZrBZKH.mjs} +132 -24
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-BDCkyWXq.d.mts → types-BZuWxDNn.d.mts} +2 -2
- package/dist/{types-DVNJ6JUa.d.mts → types-Bxecqli6.d.mts} +4 -4
- package/dist/{types-NOciAl87.d.mts → types-C9L-dSRf.d.mts} +6 -0
- package/dist/{types-rsz4pIqe.d.mts → types-CbbpjAo1.d.mts} +1 -1
- package/dist/{types-C2hkiREP.d.mts → types-D9J6jJ6g.d.mts} +2 -2
- package/dist/{visual-BotWUgoW.d.mts → visual-BmR3GBMY.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/dist/visual.mjs +1 -1
- package/package.json +1 -1
package/dist/app/page.d.mts
CHANGED
package/dist/app/system.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Yr as PlayerStateProvider } from "../types-
|
|
2
|
-
import { Et as PlatformProvider } from "../index-
|
|
3
|
-
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-
|
|
1
|
+
import { Yr as PlayerStateProvider } from "../types-C9L-dSRf.mjs";
|
|
2
|
+
import { Et as PlatformProvider } from "../index-sltlACR5.mjs";
|
|
3
|
+
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-Bxecqli6.mjs";
|
|
4
4
|
import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
|
|
5
5
|
|
|
6
6
|
//#region src/app/system.d.ts
|
package/dist/app.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Wr as Json } from "./types-
|
|
2
|
-
import { J as StringTable } from "./types-
|
|
3
|
-
import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-
|
|
1
|
+
import { Wr as Json } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { J as StringTable } from "./types-CbbpjAo1.mjs";
|
|
3
|
+
import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-Bxecqli6.mjs";
|
|
4
4
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
5
5
|
|
|
6
6
|
//#region src/app/define.d.ts
|
package/dist/app.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-
|
|
1
|
+
import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-BcZrBZKH.mjs";
|
|
2
2
|
import { t as memory } from "./memory-DeD9wis6.mjs";
|
|
3
3
|
import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
//#region src/app/define.ts
|
package/dist/assets.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-
|
|
2
|
-
import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-
|
|
3
|
-
import { R as InputApi } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-
|
|
5
|
-
import { i as ControlApp, r as Command } from "./types-
|
|
1
|
+
import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-BZuWxDNn.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-CbbpjAo1.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-ABpROLSJ.mjs";
|
|
5
|
+
import { i as ControlApp, r as Command } from "./types-D9J6jJ6g.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/flow/doors/commands.d.ts
|
|
8
8
|
/**
|
|
@@ -65,14 +65,16 @@ declare const commands: Readonly<{
|
|
|
65
65
|
readonly scenes?: ScenesApi;
|
|
66
66
|
readonly assets?: Pick<Api, "load" | "sceneComing">;
|
|
67
67
|
}>;
|
|
68
|
-
saveExport: Command<{}, Snapshot
|
|
68
|
+
saveExport: Command<{}, Snapshot & {
|
|
69
|
+
version: number;
|
|
70
|
+
}, HeadlessApp & {
|
|
69
71
|
readonly log: import("@moku-labs/common/browser").LogApi;
|
|
70
72
|
} & {
|
|
71
73
|
readonly scenes?: ScenesApi;
|
|
72
74
|
readonly assets?: Pick<Api, "load" | "sceneComing">;
|
|
73
75
|
} & {
|
|
74
76
|
readonly model: {
|
|
75
|
-
readonly store: Pick<StoreApi, "snapshot" | "flush">;
|
|
77
|
+
readonly store: Pick<StoreApi, "snapshot" | "flush" | "schemaVersion">;
|
|
76
78
|
};
|
|
77
79
|
}>;
|
|
78
80
|
saveImport: Command<{
|
|
@@ -86,7 +88,7 @@ declare const commands: Readonly<{
|
|
|
86
88
|
readonly assets?: Pick<Api, "load" | "sceneComing">;
|
|
87
89
|
} & {
|
|
88
90
|
readonly model: {
|
|
89
|
-
readonly store: Pick<StoreApi, "snapshot" | "flush">;
|
|
91
|
+
readonly store: Pick<StoreApi, "snapshot" | "flush" | "schemaVersion">;
|
|
90
92
|
};
|
|
91
93
|
}>;
|
|
92
94
|
step: Command<{
|
package/dist/control.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as HeadlessApp } from "./headless-
|
|
2
|
-
import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-
|
|
3
|
-
import { t as commands } from "./commands-
|
|
4
|
-
import { t as defineCommand } from "./define-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-ABpROLSJ.mjs";
|
|
2
|
+
import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-D9J6jJ6g.mjs";
|
|
3
|
+
import { t as commands } from "./commands-DCBhp5aM.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-BUk0oFzZ.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/flow/doors/dev.d.ts
|
|
7
7
|
/**
|
package/dist/control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as controlRefused, t as controlReadOnly } from "./dev-BNndV-hU.mjs";
|
|
2
2
|
import { c as defineCommand } from "./session-ClUqpGId.mjs";
|
|
3
|
-
import { n as commands, t as run } from "./run-
|
|
3
|
+
import { n as commands, t as run } from "./run-B4imG5Lu.mjs";
|
|
4
4
|
export { commands, controlReadOnly, controlRefused, defineCommand, run };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as HeadlessApp } from "./headless-
|
|
2
|
-
import { l as Source, r as Command, s as InputSchema } from "./types-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-ABpROLSJ.mjs";
|
|
2
|
+
import { l as Source, r as Command, s as InputSchema } from "./types-D9J6jJ6g.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-
|
|
1
|
+
import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-C9L-dSRf.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/flow/headless.d.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-
|
|
2
|
-
import { $ as HapticKind, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, bt as OverlayApi, c as MusicDescriptor, d as State$11, et as SfxDescriptor, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, lt as play, m as Config$13, n as State$13, q as FramesValue, r as UiApi, rt as defineAnimation, s as Config$12, t as Config$14, tt as Step, w as GradeValue, x as DissolveValue, y as AuraValue, z as FilterValueOf } from "./types-
|
|
3
|
-
import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-
|
|
1
|
+
import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { $ as HapticKind, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, bt as OverlayApi, c as MusicDescriptor, d as State$11, et as SfxDescriptor, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, lt as play, m as Config$13, n as State$13, q as FramesValue, r as UiApi, rt as defineAnimation, s as Config$12, t as Config$14, tt as Step, w as GradeValue, x as DissolveValue, y as AuraValue, z as FilterValueOf } from "./types-BZuWxDNn.mjs";
|
|
3
|
+
import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-CbbpjAo1.mjs";
|
|
4
4
|
import { Log } from "@moku-labs/common/browser";
|
|
5
5
|
import { PluginCtx } from "@moku-labs/core";
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-
|
|
2
|
-
import { $ as HapticKind, C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as types_d_exports, S as FlashValue, T as RevealLineValue, _t as tween, at as frames, b as BloomValue, ct as parallel, dt as set, ft as sfx, gt as stopSfx, ht as stagger, i as types_d_exports$16, it as external, lt as play, mt as spawned, nt as HAPTIC_KINDS, ot as haptic, p as types_d_exports$2, pt as spawn, rt as defineAnimation, st as mark, ut as sequence, v as types_d_exports$5, vt as use, w as GradeValue, x as DissolveValue, xt as types_d_exports$4, y as AuraValue, yt as wait } from "./types-
|
|
3
|
-
import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-
|
|
4
|
-
import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-
|
|
1
|
+
import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { $ as HapticKind, C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as types_d_exports, S as FlashValue, T as RevealLineValue, _t as tween, at as frames, b as BloomValue, ct as parallel, dt as set, ft as sfx, gt as stopSfx, ht as stagger, i as types_d_exports$16, it as external, lt as play, mt as spawned, nt as HAPTIC_KINDS, ot as haptic, p as types_d_exports$2, pt as spawn, rt as defineAnimation, st as mark, ut as sequence, v as types_d_exports$5, vt as use, w as GradeValue, x as DissolveValue, xt as types_d_exports$4, y as AuraValue, yt as wait } from "./types-BZuWxDNn.mjs";
|
|
3
|
+
import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-CbbpjAo1.mjs";
|
|
4
|
+
import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-sltlACR5.mjs";
|
|
5
5
|
export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, 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, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, 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, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, 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, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-
|
|
1
|
+
import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-BcZrBZKH.mjs";
|
|
2
2
|
import { $ as Overlay, D as defineStyle, E as defineTokens, L as defineTextFormats, M as Countdown, N as Text, P as bind, Q as NineSlice, R as defineTextStyles, X as Display, Z as HudPart, _ as DebugTrigger, ct as Exiting, dt as Order, ft as Tree, gt as system, h as Box, ht as resource, it as Transform, lt as Layer, mt as mut, nt as Shape, pt as component, rt as Sprite, st as sprite, tt as Parent, ut as Now, vt as tag, w as popup, x as ScrollState, y as LocalWrite, z as label } from "./visual-x0TPowBE.mjs";
|
|
3
3
|
import { t as defineComponent } from "./component-DGg5DqKK.mjs";
|
|
4
4
|
export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, 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, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, 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, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-
|
|
2
|
-
import { W as AnimApi, Z as TimelinesSnapshot, 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 InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-
|
|
6
|
-
import { n as defineSource } from "./define-
|
|
1
|
+
import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { W as AnimApi, Z as TimelinesSnapshot, a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-BZuWxDNn.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-CbbpjAo1.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-ABpROLSJ.mjs";
|
|
5
|
+
import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-D9J6jJ6g.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-BUk0oFzZ.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/flow/doors/read.d.ts
|
|
9
9
|
/**
|
|
@@ -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-D97-7253.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-D97-7253.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxs };
|
|
@@ -1230,24 +1230,34 @@ async function restoreFrom(app, input) {
|
|
|
1230
1230
|
throw new Error("[game] game.restore takes a bookmark or a repro.\n Pass exactly one of { bookmark } and { repro }.");
|
|
1231
1231
|
}
|
|
1232
1232
|
/**
|
|
1233
|
-
* Reads the save `game.saveImport` got: an object with the three trees of `game.saveExport
|
|
1233
|
+
* Reads the save `game.saveImport` got: an object with the three trees of `game.saveExport`, and
|
|
1234
|
+
* its schema version when it has one.
|
|
1234
1235
|
*
|
|
1235
1236
|
* @param save - The JSON the editor sent.
|
|
1236
|
-
* @returns The player, the session and the
|
|
1237
|
-
* @throws {Error} When it is not an object with `player`, `session` and `rng
|
|
1237
|
+
* @returns The player, the session, the rng and the version.
|
|
1238
|
+
* @throws {Error} When it is not an object with `player`, `session` and `rng`, or when its
|
|
1239
|
+
* `version` is not a whole number.
|
|
1238
1240
|
* @example
|
|
1239
1241
|
* ```ts
|
|
1240
|
-
* readSave({ player: { coins: 40 }, session: {}, rng: { seed: 42, streams: {} } }).
|
|
1242
|
+
* readSave({ player: { coins: 40 }, session: {}, rng: { seed: 42, streams: {} }, version: 2 }).version; // 2
|
|
1241
1243
|
* ```
|
|
1242
1244
|
*/
|
|
1243
1245
|
function readSave(save) {
|
|
1244
1246
|
if (typeof save === "object" && save !== null && !Array.isArray(save)) {
|
|
1245
|
-
const { player, session, rng } = save;
|
|
1246
|
-
|
|
1247
|
+
const { player, session, rng, version } = save;
|
|
1248
|
+
const hasTrees = player !== void 0 && session !== void 0 && rng !== void 0;
|
|
1249
|
+
if (hasTrees && version === void 0) return {
|
|
1247
1250
|
player,
|
|
1248
1251
|
session,
|
|
1249
1252
|
rng
|
|
1250
1253
|
};
|
|
1254
|
+
if (hasTrees && Number.isInteger(version)) return {
|
|
1255
|
+
player,
|
|
1256
|
+
session,
|
|
1257
|
+
rng,
|
|
1258
|
+
version
|
|
1259
|
+
};
|
|
1260
|
+
if (hasTrees) throw new Error("[game] game.saveImport takes a whole-number version of game.saveExport.\n Export the save again, or leave version out.");
|
|
1251
1261
|
}
|
|
1252
1262
|
throw new Error("[game] game.saveImport needs { player, session, rng } of game.saveExport.");
|
|
1253
1263
|
}
|
|
@@ -1387,12 +1397,13 @@ const restoreCommand = defineCommand({
|
|
|
1387
1397
|
});
|
|
1388
1398
|
/**
|
|
1389
1399
|
* Answers the committed state as the save holds it: the player, the session and the rng, plain
|
|
1390
|
-
* JSON
|
|
1400
|
+
* JSON, and the schema `version` this build writes, so an import into a later build migrates it.
|
|
1401
|
+
* A read: it runs on a `--debug=read` page too, so a tester's progress can leave the store app.
|
|
1391
1402
|
*
|
|
1392
1403
|
* @example
|
|
1393
1404
|
* ```ts
|
|
1394
|
-
* // The editor takes the tester's progress from the store app on the phone.
|
|
1395
|
-
* (await run(app, commands.saveExport, {})).value; // { player: { coins: 40, … }, session: { … }, rng: { seed: 42, streams: {} } }
|
|
1405
|
+
* // The editor takes the tester's progress from the store app on the phone, a build on schema 37.
|
|
1406
|
+
* (await run(app, commands.saveExport, {})).value; // { player: { coins: 40, … }, session: { … }, rng: { seed: 42, streams: {} }, version: 37 }
|
|
1396
1407
|
* ```
|
|
1397
1408
|
*/
|
|
1398
1409
|
const saveExportCommand = defineCommand({
|
|
@@ -1407,20 +1418,25 @@ const saveExportCommand = defineCommand({
|
|
|
1407
1418
|
return {
|
|
1408
1419
|
player,
|
|
1409
1420
|
session,
|
|
1410
|
-
rng
|
|
1421
|
+
rng,
|
|
1422
|
+
version: app.model.store.schemaVersion()
|
|
1411
1423
|
};
|
|
1412
1424
|
}
|
|
1413
1425
|
});
|
|
1414
1426
|
/**
|
|
1415
1427
|
* Puts a save of `game.saveExport` in place and writes it, so the next start of the app reads it:
|
|
1416
1428
|
* the trees are restored at the main flow's start, and the game lands where a fresh start with
|
|
1417
|
-
* them lands. A
|
|
1418
|
-
*
|
|
1419
|
-
*
|
|
1429
|
+
* them lands. A save of an older schema `version` runs through the game's migrations first; one
|
|
1430
|
+
* without a version is taken as this build's. A start that is a rest node is entered; a transit
|
|
1431
|
+
* node runs again on the imported trees, rng included, up to the first gate it opens, at a rest
|
|
1432
|
+
* node or a popup. Then the store flushes. Replaces the state outside the graph, so the session is tainted and the
|
|
1420
1433
|
* command journaled. A `--debug=read` page refuses it; a `--debug` page and the dev page run it.
|
|
1421
1434
|
*
|
|
1422
1435
|
* @throws {Error} `[game] game.saveImport needs { player, session, rng } of game.saveExport.` for
|
|
1423
|
-
* a value without the three trees.
|
|
1436
|
+
* a value without the three trees, and `[game] game.saveImport takes a whole-number version …`
|
|
1437
|
+
* for a version that is not one.
|
|
1438
|
+
* @throws {SaveUnreadableError} For a save of a newer schema, or one no migration step leads away
|
|
1439
|
+
* from: nothing is restored, and the game stays where it stood.
|
|
1424
1440
|
* @example
|
|
1425
1441
|
* ```ts
|
|
1426
1442
|
* // The debug app beside the store app gets the save exported from the store app. Its main
|
|
@@ -1428,6 +1444,9 @@ const saveExportCommand = defineCommand({
|
|
|
1428
1444
|
* const ran = await run(app, commands.saveImport, { save: exported });
|
|
1429
1445
|
* ran.value; // { restored: true }
|
|
1430
1446
|
* ran.state.path; // "home"
|
|
1447
|
+
*
|
|
1448
|
+
* // The export came from a build on schema 39, this one writes 38: refused, nothing moves.
|
|
1449
|
+
* await run(app, commands.saveImport, { save: { ...exported, version: 39 } }); // throws SaveUnreadableError
|
|
1431
1450
|
* ```
|
|
1432
1451
|
*/
|
|
1433
1452
|
const saveImportCommand = defineCommand({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-
|
|
1
|
+
import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-CbbpjAo1.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. */
|
|
@@ -3166,13 +3166,71 @@ async function effectValue(state, log, descriptor, signal) {
|
|
|
3166
3166
|
mode: state.mode
|
|
3167
3167
|
});
|
|
3168
3168
|
} catch (error) {
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3169
|
+
return failedValue(log, descriptor, signal, error);
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
/**
|
|
3173
|
+
* What an awaited effect whose handler failed resolves with: a `cosmetic` descriptor swallows the failure after one
|
|
3174
|
+
* warn entry `flow:fx-cosmetic-failed`, or silently after the abort of its signal; any other failure is thrown on.
|
|
3175
|
+
*
|
|
3176
|
+
* @param log - The engine log.
|
|
3177
|
+
* @param descriptor - The awaited descriptor.
|
|
3178
|
+
* @param signal - The signal the handler was called with.
|
|
3179
|
+
* @param error - What the handler threw or rejected with.
|
|
3180
|
+
* @returns `undefined` for a cosmetic descriptor.
|
|
3181
|
+
* @throws {unknown} The failure itself, for a descriptor that is not cosmetic.
|
|
3182
|
+
*/
|
|
3183
|
+
function failedValue(log, descriptor, signal, error) {
|
|
3184
|
+
if (descriptor.cosmetic !== true) throw error;
|
|
3185
|
+
if (!signal.aborted) log.warn("flow:fx-cosmetic-failed", {
|
|
3186
|
+
kind: descriptor.kind,
|
|
3187
|
+
message: asError$5(error).message
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3190
|
+
/**
|
|
3191
|
+
* Tells whether a handler answered with a promise or another thenable, that is, not synchronously.
|
|
3192
|
+
*
|
|
3193
|
+
* @param result - What the handler returned.
|
|
3194
|
+
* @returns True for a thenable.
|
|
3195
|
+
* @example
|
|
3196
|
+
* ```ts
|
|
3197
|
+
* isThenable(Promise.resolve(1)); // true
|
|
3198
|
+
* isThenable(true); // false
|
|
3199
|
+
* ```
|
|
3200
|
+
*/
|
|
3201
|
+
function isThenable(result) {
|
|
3202
|
+
if (typeof result !== "object" && typeof result !== "function") return false;
|
|
3203
|
+
if (result === null) return false;
|
|
3204
|
+
return typeof result.then === "function";
|
|
3205
|
+
}
|
|
3206
|
+
/**
|
|
3207
|
+
* Runs the handler of an awaited effect while the frame loop runs. A handler that answers synchronously (a value, a
|
|
3208
|
+
* throw, or no handler at all) goes on at once, in the frame it was asked in, so "ask `ready`, then commit" is drawn
|
|
3209
|
+
* in the next frame (F203). A promise goes on in the `signals` phase after it settled. So does a synchronous answer
|
|
3210
|
+
* while an effect started earlier is still queued: effects that end in one frame always resume in start order.
|
|
3211
|
+
*
|
|
3212
|
+
* @param state - fx module state.
|
|
3213
|
+
* @param log - The engine log.
|
|
3214
|
+
* @param descriptor - The awaited descriptor.
|
|
3215
|
+
* @param signal - The signal the handler is called with.
|
|
3216
|
+
* @returns What the handler answered, at once or in the `signals` phase.
|
|
3217
|
+
*/
|
|
3218
|
+
function runLive(state, log, descriptor, signal) {
|
|
3219
|
+
const entry = handlerFor(state, descriptor.kind);
|
|
3220
|
+
let result;
|
|
3221
|
+
let sync = true;
|
|
3222
|
+
if (entry !== void 0) try {
|
|
3223
|
+
result = entry.run(descriptor, {
|
|
3224
|
+
signal,
|
|
3225
|
+
mode: state.mode
|
|
3174
3226
|
});
|
|
3227
|
+
sync = !isThenable(result);
|
|
3228
|
+
} catch (error) {
|
|
3229
|
+
result = Promise.reject(error);
|
|
3175
3230
|
}
|
|
3231
|
+
const work = Promise.resolve(result).catch((error) => failedValue(log, descriptor, signal, error));
|
|
3232
|
+
if (sync && state.settled.length === 0) return work;
|
|
3233
|
+
return enqueue$2(state, work);
|
|
3176
3234
|
}
|
|
3177
3235
|
/**
|
|
3178
3236
|
* Tells whether an awaited effect resolves at once, without the wait for the next `signals` phase: the `schedule` of
|
|
@@ -3338,9 +3396,8 @@ function createFxApi(ctx, deps) {
|
|
|
3338
3396
|
const answers = descriptor.answers;
|
|
3339
3397
|
if (answers !== void 0) return openForAnswers(ctx, deps.gate, descriptor, answers, signal);
|
|
3340
3398
|
const shown = descriptor.kind === "guide" ? beginGuide(state, signal) : signal;
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
return enqueue$2(state, work);
|
|
3399
|
+
if (state.mode === "fast" || !ctx.deps.time.isRunning() || resolvesAtOnce(descriptor)) return effectValue(state, ctx.log, descriptor, shown);
|
|
3400
|
+
return runLive(state, ctx.log, descriptor, shown);
|
|
3344
3401
|
},
|
|
3345
3402
|
buffer: (item) => {
|
|
3346
3403
|
if (state.mode === "fast") return;
|
|
@@ -6484,12 +6541,20 @@ function enterBookmark(ctx, modules, bookmark, safe) {
|
|
|
6484
6541
|
safe.recover = false;
|
|
6485
6542
|
modules.gate.dropHeld();
|
|
6486
6543
|
state.guide = void 0;
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6544
|
+
try {
|
|
6545
|
+
ctx.deps.model.store.restore({
|
|
6546
|
+
player: bookmark.player,
|
|
6547
|
+
session: bookmark.session,
|
|
6548
|
+
rng: bookmark.rng,
|
|
6549
|
+
...bookmark.version === void 0 ? {} : { version: bookmark.version }
|
|
6550
|
+
});
|
|
6551
|
+
} catch (error) {
|
|
6552
|
+
const refuse = loopSeam(state).refuse;
|
|
6553
|
+
if (refuse === void 0) throw error;
|
|
6554
|
+
refuse(error);
|
|
6555
|
+
return;
|
|
6556
|
+
}
|
|
6557
|
+
loopSeam(state).refuse = void 0;
|
|
6493
6558
|
ctx.deps.model.store.markRest();
|
|
6494
6559
|
state.stack = framesOf(location.trail, bookmark.input);
|
|
6495
6560
|
state.slotAfter = void 0;
|
|
@@ -6587,7 +6652,7 @@ function restorePosition(ctx, _modules, bookmark) {
|
|
|
6587
6652
|
const running = state.running;
|
|
6588
6653
|
if (running === void 0) throw new Error("[game] flow.restore() needs a running graph.\n Call flow.run() from the createApp onStart callback first.");
|
|
6589
6654
|
const seam = loopSeam(state);
|
|
6590
|
-
const entered = new Promise((resolve) => {
|
|
6655
|
+
const entered = new Promise((resolve, reject) => {
|
|
6591
6656
|
/**
|
|
6592
6657
|
* Takes the listener off the rest seam.
|
|
6593
6658
|
*
|
|
@@ -6612,10 +6677,18 @@ function restorePosition(ctx, _modules, bookmark) {
|
|
|
6612
6677
|
*/
|
|
6613
6678
|
const finish = () => {
|
|
6614
6679
|
if (!dropListener()) return;
|
|
6615
|
-
if (seam.restoring === bookmark)
|
|
6680
|
+
if (seam.restoring === bookmark) {
|
|
6681
|
+
seam.restoring = void 0;
|
|
6682
|
+
seam.refuse = void 0;
|
|
6683
|
+
}
|
|
6616
6684
|
resolve();
|
|
6617
6685
|
};
|
|
6618
6686
|
seam.rest.push(listener);
|
|
6687
|
+
seam.refuse = (error) => {
|
|
6688
|
+
dropListener();
|
|
6689
|
+
seam.refuse = void 0;
|
|
6690
|
+
reject(error);
|
|
6691
|
+
};
|
|
6619
6692
|
running.then(finish, finish);
|
|
6620
6693
|
});
|
|
6621
6694
|
seam.restoring = bookmark;
|
|
@@ -44643,6 +44716,17 @@ async function warmBundle(ctx, bundle) {
|
|
|
44643
44716
|
*/
|
|
44644
44717
|
function isThere(state, bundle) {
|
|
44645
44718
|
if (state.readyFailed.has(bundle)) return true;
|
|
44719
|
+
return isWarm(state, bundle);
|
|
44720
|
+
}
|
|
44721
|
+
/**
|
|
44722
|
+
* Tells whether a bundle is loaded and its textures went to the GPU: the `ready` answer `true` without a failed load.
|
|
44723
|
+
* The `load` effect answers at once for such bundles (F203).
|
|
44724
|
+
*
|
|
44725
|
+
* @param state - State of the assets plugin.
|
|
44726
|
+
* @param bundle - Name of a bundle of the manifest.
|
|
44727
|
+
* @returns True when the bundle is loaded and warmed.
|
|
44728
|
+
*/
|
|
44729
|
+
function isWarm(state, bundle) {
|
|
44646
44730
|
return state.records.get(bundle)?.status === "loaded" && state.warmed.get(bundle)?.done === true;
|
|
44647
44731
|
}
|
|
44648
44732
|
/**
|
|
@@ -44834,22 +44918,46 @@ function bundlesOfDescriptor(descriptor) {
|
|
|
44834
44918
|
/**
|
|
44835
44919
|
* The handler of the `load` effect. It loads the bundles of the payload one after another with
|
|
44836
44920
|
* the node's signal and reports what arrived, so a loading node can write its own progress.
|
|
44837
|
-
* It writes no game state.
|
|
44921
|
+
* It writes no game state. When every bundle is loaded and on the GPU, as `ready` decides, it answers synchronously, so
|
|
44922
|
+
* the node goes on in the frame it asked in (F203); otherwise it answers with a promise.
|
|
44838
44923
|
*
|
|
44839
44924
|
* @param ctx - Domain context of the plugin.
|
|
44840
44925
|
* @param descriptor - The descriptor the node awaited.
|
|
44841
44926
|
* @param run - The node's mode and signal.
|
|
44927
|
+
* @returns What was loaded and what it cost, at once or as a promise.
|
|
44928
|
+
*/
|
|
44929
|
+
function runLoadEffect(ctx, descriptor, run) {
|
|
44930
|
+
const state = ctx.state;
|
|
44931
|
+
const names = bundlesOfDescriptor(descriptor);
|
|
44932
|
+
if (state.io === void 0) return {
|
|
44933
|
+
loaded: [],
|
|
44934
|
+
mb: 0
|
|
44935
|
+
};
|
|
44936
|
+
if (!names.every((name) => isWarm(state, name))) return loadInOrder(ctx, names, run.signal);
|
|
44937
|
+
let mb = 0;
|
|
44938
|
+
for (const name of names) {
|
|
44939
|
+
const record = state.records.get(name);
|
|
44940
|
+
if (record !== void 0) touch(state, record);
|
|
44941
|
+
mb += state.manifest.bundles[name]?.mb ?? 0;
|
|
44942
|
+
}
|
|
44943
|
+
return {
|
|
44944
|
+
loaded: names,
|
|
44945
|
+
mb: Number(mb.toFixed(3))
|
|
44946
|
+
};
|
|
44947
|
+
}
|
|
44948
|
+
/**
|
|
44949
|
+
* Loads the bundles of a `load` effect one after another with the node's signal.
|
|
44950
|
+
*
|
|
44951
|
+
* @param ctx - Domain context of the plugin.
|
|
44952
|
+
* @param names - The bundle names of the descriptor.
|
|
44953
|
+
* @param signal - The node's signal.
|
|
44842
44954
|
* @returns What was loaded and what it cost.
|
|
44843
44955
|
*/
|
|
44844
|
-
async function
|
|
44956
|
+
async function loadInOrder(ctx, names, signal) {
|
|
44845
44957
|
const loaded = [];
|
|
44846
44958
|
let mb = 0;
|
|
44847
|
-
|
|
44848
|
-
|
|
44849
|
-
mb
|
|
44850
|
-
};
|
|
44851
|
-
for (const name of bundlesOfDescriptor(descriptor)) {
|
|
44852
|
-
await loadBundle(ctx, name, run.signal, "request");
|
|
44959
|
+
for (const name of names) {
|
|
44960
|
+
await loadBundle(ctx, name, signal, "request");
|
|
44853
44961
|
loaded.push(name);
|
|
44854
44962
|
mb += ctx.state.manifest.bundles[name]?.mb ?? 0;
|
|
44855
44963
|
}
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as memory, x as saveOf, y as WithGameState } from "./types-
|
|
4
|
-
import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { t as createApp } from "./index-sltlACR5.mjs";
|
|
3
|
+
import { b as memory, x as saveOf, y as WithGameState } from "./types-Bxecqli6.mjs";
|
|
4
|
+
import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-ABpROLSJ.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/clock/fake.d.ts
|
package/dist/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-
|
|
1
|
+
import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-BcZrBZKH.mjs";
|
|
2
2
|
import { n as saveOf, t as memory } from "./memory-DeD9wis6.mjs";
|
|
3
3
|
import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-yi2XmYWC.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-
|
|
2
|
-
import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-
|
|
1
|
+
import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-CbbpjAo1.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
3
|
-
import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-
|
|
4
|
-
import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-
|
|
1
|
+
import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-BZuWxDNn.mjs";
|
|
3
|
+
import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-CbbpjAo1.mjs";
|
|
4
|
+
import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-sltlACR5.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -6479,6 +6479,12 @@ type LoopSeam = {
|
|
|
6479
6479
|
* that ends first never takes it, so the restore that waits drops its own.
|
|
6480
6480
|
*/
|
|
6481
6481
|
restoring: Bookmark | undefined;
|
|
6482
|
+
/**
|
|
6483
|
+
* Rejects the restore that waits for `restoring`, when the loop cannot take it: the store
|
|
6484
|
+
* refused its trees (a save of a newer schema, or a missing migration step). The loop stays at
|
|
6485
|
+
* the node it stood on, with the state it had.
|
|
6486
|
+
*/
|
|
6487
|
+
refuse?: ((error: unknown) => void) | undefined;
|
|
6482
6488
|
};
|
|
6483
6489
|
/**
|
|
6484
6490
|
* runner module state.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-
|
|
1
|
+
import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-C9L-dSRf.mjs";
|
|
2
2
|
import { Log } from "@moku-labs/common/browser";
|
|
3
3
|
import { PluginCtx } from "@moku-labs/core";
|
|
4
4
|
import { Node, Yoga } from "yoga-layout/load";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $r as Snapshot, Wr as Json } from "./types-
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { $r as Snapshot, Wr as Json } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-ABpROLSJ.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-
|
|
2
|
-
import { W as AnimApi, r as UiApi } from "./types-
|
|
3
|
-
import { R as InputApi } from "./types-
|
|
4
|
-
import { r as Repro } from "./headless-
|
|
5
|
-
import { i as ControlApp, o as InputOf } from "./types-
|
|
6
|
-
import { t as commands } from "./commands-
|
|
1
|
+
import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-C9L-dSRf.mjs";
|
|
2
|
+
import { W as AnimApi, r as UiApi } from "./types-BZuWxDNn.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-CbbpjAo1.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-ABpROLSJ.mjs";
|
|
5
|
+
import { i as ControlApp, o as InputOf } from "./types-D9J6jJ6g.mjs";
|
|
6
|
+
import { t as commands } from "./commands-DCBhp5aM.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/visual/types.d.ts
|
|
9
9
|
/** 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-
|
|
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-BmR3GBMY.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/dist/visual.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as VISUAL_CLOCK } from "./fake-hnJcJeYf.mjs";
|
|
2
2
|
import { n as read, t as sources } from "./sources-D9Fk3Z4d.mjs";
|
|
3
|
-
import { n as commands, t as run } from "./run-
|
|
3
|
+
import { n as commands, t as run } from "./run-B4imG5Lu.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { createBrandConsole } from "@moku-labs/common/cli";
|
|
6
6
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|