@moku-labs/game 0.15.125 → 0.15.127
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/{capture-BtS6_oWr.mjs → capture-BuVczpxc.mjs} +5 -3
- package/dist/{commands-Dl7YWA7h.d.mts → commands-Dj-Y2q98.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/control.mjs +1 -1
- package/dist/{define-gwcCZb7a.d.mts → define-CZ20Hsdi.d.mts} +2 -2
- package/dist/{headless-CCiUwvlp.mjs → headless-BuXptVI_.mjs} +1 -1
- package/dist/{headless-T-UG6gZ4.d.mts → headless-C0pK21sO.d.mts} +1 -1
- package/dist/{index-DmOlNphG.d.mts → index-DmqMa5dU.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-CeZj5UAg.mjs → run-1i_SfbM4.mjs} +2 -2
- package/dist/{runtime-CYo4jZKX.d.mts → runtime-CcNv443E.d.mts} +1 -1
- package/dist/{src-Bfie_HWL.mjs → src-CHcvpppx.mjs} +299 -9
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +2 -2
- package/dist/{types-BZsooAhi.d.mts → types-BTxejSGs.d.mts} +4 -4
- package/dist/{types-CJu46Hbe.d.mts → types-DIBuAEi0.d.mts} +2 -2
- package/dist/{types-Dd2UJzHY.d.mts → types-D_OXtHWf.d.mts} +1 -1
- package/dist/{types-D8dMREkO.d.mts → types-DvKiF3cX.d.mts} +2 -2
- package/dist/{types-sfPTACpA.d.mts → types-lV0kgldJ.d.mts} +42 -1
- package/dist/{visual-Bk1ph3gC.d.mts → visual-Be1BzbKi.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/dist/visual.mjs +3 -21
- 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-lV0kgldJ.mjs";
|
|
2
|
+
import { Et as PlatformProvider } from "../index-DmqMa5dU.mjs";
|
|
3
|
+
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-BTxejSGs.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-lV0kgldJ.mjs";
|
|
2
|
+
import { J as StringTable } from "./types-D_OXtHWf.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-BTxejSGs.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-CHcvpppx.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
|
@@ -522,7 +522,8 @@ function graphHash(graph) {
|
|
|
522
522
|
/**
|
|
523
523
|
* @file renderer/monitor — the one renderer file that reads the page clock; lint L3 ignores it (eslint `ignores`). It
|
|
524
524
|
* measures the page in agent builds: the agent phase, a line's `t`, an event's time between frames, and puts a
|
|
525
|
-
* capture's picture in a page task after its frame.
|
|
525
|
+
* capture's picture in a page task after its frame. The run's trail (`trail.ts`, F175) also uses both, in every build:
|
|
526
|
+
* the span of its frame counts and its write after a new rest path. Never a game's state, whose time is `clock`.
|
|
526
527
|
*/
|
|
527
528
|
/**
|
|
528
529
|
* Reads `globalThis.performance.now()` at call time, so a test stubs it.
|
|
@@ -544,7 +545,8 @@ function epochOf(pageMs) {
|
|
|
544
545
|
}
|
|
545
546
|
/**
|
|
546
547
|
* Runs work in a page task of its own, after the task running now (a frame) ends: `setTimeout` 0, which comes
|
|
547
|
-
* before the next animation frame. For the
|
|
548
|
+
* before the next animation frame. For the page's own work (a capture's picture, the trail's write), never a game's
|
|
549
|
+
* state.
|
|
548
550
|
*
|
|
549
551
|
* @param work - The work.
|
|
550
552
|
* @example
|
|
@@ -1389,4 +1391,4 @@ async function captureFrame(mctx, options) {
|
|
|
1389
1391
|
return shot === void 0 ? void 0 : answerOf(mctx, shot, options.against);
|
|
1390
1392
|
}
|
|
1391
1393
|
//#endregion
|
|
1392
|
-
export {
|
|
1394
|
+
export { slotNames as _, sheetAlone as a, pageNow as c, describedNode as d, findNode as f, restlessCapOf as g, isRestCheckpoint as h, servePaused as i, collectFlows as l, graphHash as m, captureFrame as n, afterTask as o, framePath as p, serveCaptures as r, epochOf as s, cancelCaptures as t, describeGraph as u, compact as v, pushEntry as y };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $r as Snapshot, Ar as Api$3, Fn as Bookmark, Fr as Api, O as DebugSwitches, Q as Api$2, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$1, mt as Captured, 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$3, Fn as Bookmark, Fr as Api, O as DebugSwitches, Q as Api$2, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$1, mt as Captured, ti as StoreApi, w as ScenesApi } from "./types-lV0kgldJ.mjs";
|
|
2
|
+
import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-DIBuAEi0.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-D_OXtHWf.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-C0pK21sO.mjs";
|
|
5
|
+
import { i as ControlApp, r as Command } from "./types-DvKiF3cX.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/flow/doors/commands.d.ts
|
|
8
8
|
/**
|
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-C0pK21sO.mjs";
|
|
2
|
+
import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-DvKiF3cX.mjs";
|
|
3
|
+
import { t as commands } from "./commands-Dj-Y2q98.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-CZ20Hsdi.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-1i_SfbM4.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-C0pK21sO.mjs";
|
|
2
|
+
import { l as Source, r as Command, s as InputSchema } from "./types-DvKiF3cX.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as describedNode, m as graphHash } from "./capture-BuVczpxc.mjs";
|
|
2
2
|
//#region src/plugins/flow/headless.ts
|
|
3
3
|
const noPayload = null;
|
|
4
4
|
/** Seed of a repro that pins no rng state, the seed `saveOf` writes. */
|
|
@@ -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-lV0kgldJ.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 SfxDescriptor, 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, Q as HapticKind, 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, c as MusicDescriptor, ct as play, d as State$11, et as Step, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, m as Config$13, n as State$13, nt as defineAnimation, q as FramesValue, r as UiApi, s as Config$12, t as Config$14, w as GradeValue, x as DissolveValue, y as AuraValue, yt as OverlayApi, 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-lV0kgldJ.mjs";
|
|
2
|
+
import { $ as SfxDescriptor, 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, Q as HapticKind, 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, c as MusicDescriptor, ct as play, d as State$11, et as Step, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, m as Config$13, n as State$13, nt as defineAnimation, q as FramesValue, r as UiApi, s as Config$12, t as Config$14, w as GradeValue, x as DissolveValue, y as AuraValue, yt as OverlayApi, z as FilterValueOf } from "./types-DIBuAEi0.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-D_OXtHWf.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 { C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as HapticKind, S as FlashValue, T as RevealLineValue, Z as types_d_exports, _t as use, at as haptic, b as BloomValue, bt as types_d_exports$4, ct as play, dt as sfx, ft as spawn, gt as tween, ht as stopSfx, i as types_d_exports$16, it as frames, lt as sequence, mt as stagger, nt as defineAnimation, ot as mark, p as types_d_exports$2, pt as spawned, rt as external, st as parallel, tt as HAPTIC_KINDS, ut as set, v as types_d_exports$5, vt as wait, w as GradeValue, x as DissolveValue, y as AuraValue } 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-lV0kgldJ.mjs";
|
|
2
|
+
import { C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as HapticKind, S as FlashValue, T as RevealLineValue, Z as types_d_exports, _t as use, at as haptic, b as BloomValue, bt as types_d_exports$4, ct as play, dt as sfx, ft as spawn, gt as tween, ht as stopSfx, i as types_d_exports$16, it as frames, lt as sequence, mt as stagger, nt as defineAnimation, ot as mark, p as types_d_exports$2, pt as spawned, rt as external, st as parallel, tt as HAPTIC_KINDS, ut as set, v as types_d_exports$5, vt as wait, w as GradeValue, x as DissolveValue, y as AuraValue } from "./types-DIBuAEi0.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-D_OXtHWf.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-DmqMa5dU.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-CHcvpppx.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 { 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-lV0kgldJ.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-DIBuAEi0.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-D_OXtHWf.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-C0pK21sO.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-DvKiF3cX.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-CZ20Hsdi.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-CcNv443E.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-CcNv443E.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as sheetAlone,
|
|
1
|
+
import { a as sheetAlone, m as graphHash } from "./capture-BuVczpxc.mjs";
|
|
2
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
|
-
import { n as reproBookmark } from "./headless-
|
|
3
|
+
import { n as reproBookmark } from "./headless-BuXptVI_.mjs";
|
|
4
4
|
import { a as readTarget, c as defineCommand, i as isProjectionTarget, n as isTainted, o as checkInput, r as recordCheat, s as inputOrEmpty, u as inputSchema } from "./session-ClUqpGId.mjs";
|
|
5
5
|
//#region src/plugins/anim/control.ts
|
|
6
6
|
/**
|
|
@@ -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-D_OXtHWf.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,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { i as systemSource, r as MAX_TIMER_MS, t as memory } from "./memory-DeD9wis6.mjs";
|
|
3
3
|
import { a as finishDrafts, i as enableDraftPatches, n as deepFreeze$1, o as openDrafts, r as dropDrafts } from "./drafts-BawpSaVp.mjs";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as slotNames, c as pageNow$1, f as findNode, g as restlessCapOf, h as isRestCheckpoint, i as servePaused, l as collectFlows, m as graphHash, n as captureFrame, o as afterTask, p as framePath, r as serveCaptures, s as epochOf, t as cancelCaptures, u as describeGraph, v as compact, y as pushEntry } from "./capture-BuVczpxc.mjs";
|
|
5
5
|
import { $ as Overlay, A as unitOf, B as readStyle, C as UiCounters, F as boldLookOf, G as parentOf$1, H as applyPose, I as builtInStyles, J as rootPoseInto, K as poseUnder, M as Countdown, N as Text, O as formatBound, Q as NineSlice, S as UI_OWNER, T as uiFor, U as isLeaving, V as textFor, W as localPoseOf, X as Display, Y as rootPoseOf, Z as HudPart, _ as DebugTrigger, _t as systemsFor, a as fieldsLeftAlone, at as arcDefaults, b as Scroll, c as namedKeyOf, ct as Exiting, d as samePose, dt as Order, et as OverlayLevel, f as visualOf$1, ft as Tree, g as Covered, gt as system, h as Box, ht as resource, i as drawnRect, it as Transform, j as wholeValue, k as isTextFormat, l as namesFormat, lt as Layer, m as writtenKeyOf, n as CONTENT$1, nt as Shape, o as fitScaleOf, ot as componentsFor, p as visualRectOf, pt as component, q as rootPointOf, r as bindOf, rt as Sprite, s as livePatch, tt as Parent, u as restValueOf, ut as Now, v as Escapable, vt as tag, x as ScrollState, y as LocalWrite, yt as neutralOf } from "./visual-x0TPowBE.mjs";
|
|
6
6
|
import { a as isDev$1 } from "./dev-BNndV-hU.mjs";
|
|
7
7
|
import { n as isComponentDefinition } from "./component-DGg5DqKK.mjs";
|
|
@@ -20077,7 +20077,7 @@ function holdsDisplay(kctx, top) {
|
|
|
20077
20077
|
* @param category - The worst category of the slots.
|
|
20078
20078
|
* @returns The record, in the maps and the list.
|
|
20079
20079
|
*/
|
|
20080
|
-
function createRecord$
|
|
20080
|
+
function createRecord$2(kctx, pixi, entity, view, slots, category) {
|
|
20081
20081
|
const top = view.wrapper ?? view.object;
|
|
20082
20082
|
const key = (/* @__PURE__ */ new Float64Array(31)).fill(NaN);
|
|
20083
20083
|
const record = {
|
|
@@ -21987,7 +21987,7 @@ function renew(kctx, pixi, record) {
|
|
|
21987
21987
|
const view = kctx.ctx.state.sync.views.get(record.entity);
|
|
21988
21988
|
if (view !== void 0 && (view.wrapper ?? view.object) === record.top) return false;
|
|
21989
21989
|
dropRecord$1(kctx, record, view, true);
|
|
21990
|
-
if (view !== void 0) createRecord$
|
|
21990
|
+
if (view !== void 0) createRecord$2(kctx, pixi, record.entity, view, record.slots, record.category);
|
|
21991
21991
|
return true;
|
|
21992
21992
|
}
|
|
21993
21993
|
/**
|
|
@@ -22130,7 +22130,7 @@ function createKeptApi(ctx, deps) {
|
|
|
22130
22130
|
return;
|
|
22131
22131
|
}
|
|
22132
22132
|
if (record === void 0) {
|
|
22133
|
-
createRecord$
|
|
22133
|
+
createRecord$2(kctx, pixi, entity, view, slots, category);
|
|
22134
22134
|
return;
|
|
22135
22135
|
}
|
|
22136
22136
|
if (slotsPadding(slots) !== slotsPadding(record.slots)) record.dirtyS1 = true;
|
|
@@ -27004,7 +27004,7 @@ const PATH_SLOTS = 1024;
|
|
|
27004
27004
|
* @param path - The flow path.
|
|
27005
27005
|
* @param rest - True when the flow came to rest there.
|
|
27006
27006
|
*/
|
|
27007
|
-
function notePath(pc, path, rest) {
|
|
27007
|
+
function notePath$1(pc, path, rest) {
|
|
27008
27008
|
const { perf } = pc;
|
|
27009
27009
|
const { paths } = perf.ring;
|
|
27010
27010
|
let id = perf.pathIds.get(path);
|
|
@@ -27134,7 +27134,7 @@ function attachFirst(pc) {
|
|
|
27134
27134
|
});
|
|
27135
27135
|
deps.sync.onWarm((draws) => writeEvent(pc, "warm", { draws }));
|
|
27136
27136
|
deps.sync.onOverdraw((on) => writeEvent(pc, "debug", { overdraw: on }));
|
|
27137
|
-
notePath(pc, ctx.deps.flow.state().path, false);
|
|
27137
|
+
notePath$1(pc, ctx.deps.flow.state().path, false);
|
|
27138
27138
|
perf.display = displayOf(pc);
|
|
27139
27139
|
}
|
|
27140
27140
|
/**
|
|
@@ -27632,7 +27632,7 @@ function createMonitorApi(ctx, deps) {
|
|
|
27632
27632
|
}
|
|
27633
27633
|
},
|
|
27634
27634
|
path: (path, rest) => {
|
|
27635
|
-
if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__ && pc !== void 0) notePath(pc, path, rest);
|
|
27635
|
+
if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__ && pc !== void 0) notePath$1(pc, path, rest);
|
|
27636
27636
|
},
|
|
27637
27637
|
thermal: (reading) => {
|
|
27638
27638
|
if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__ && pc !== void 0) writeThermal(pc, reading);
|
|
@@ -34173,6 +34173,291 @@ function stopSync(state) {
|
|
|
34173
34173
|
state.root = void 0;
|
|
34174
34174
|
}
|
|
34175
34175
|
//#endregion
|
|
34176
|
+
//#region src/plugins/renderer/trail.ts
|
|
34177
|
+
/**
|
|
34178
|
+
* @file renderer plugin — the trail of the run (F175). iOS may end the page's WebContent process in the middle of play
|
|
34179
|
+
* (its memory limit) and the game starts again at the splash with nothing that says why. The renderer keeps one small
|
|
34180
|
+
* record of the run in `localStorage` under `moku-game:last-run`: where the game stood, the last flow paths, the
|
|
34181
|
+
* texture megabytes Pixi holds, the JS heap where the browser tells it, the drawn frames per second and the frames
|
|
34182
|
+
* that uploaded textures. It is written every 2 s by a timer, never by a frame, in a page task of its own after a new
|
|
34183
|
+
* rest path, at once when the page is hidden or shown and on `pagehide`, and when the renderer stops. A run that ends
|
|
34184
|
+
* cleanly leaves the state `"closed"`. The next start reads the record: a run that ended `"visible"` (killed in play)
|
|
34185
|
+
* is logged as a warning, one that ended `"hidden"` (reclaimed in the background) as an info line, and each is kept in
|
|
34186
|
+
* `moku-game:cut-runs` (the last ten). A plain module of the plugin root, as `loss.ts`.
|
|
34187
|
+
*/
|
|
34188
|
+
/** The `localStorage` key of the trail of the run. */
|
|
34189
|
+
const TRAIL_KEY = "moku-game:last-run";
|
|
34190
|
+
/** The `localStorage` key of the runs that ended without `pagehide`. */
|
|
34191
|
+
const CUT_KEY = "moku-game:cut-runs";
|
|
34192
|
+
/** How often the timer writes the trail, ms. */
|
|
34193
|
+
const TRAIL_EVERY_MS = 2e3;
|
|
34194
|
+
/** How many flow paths the trail keeps: the newest ones. */
|
|
34195
|
+
const PATHS = 8;
|
|
34196
|
+
/**
|
|
34197
|
+
* Makes the trail state of a renderer that has not started.
|
|
34198
|
+
*
|
|
34199
|
+
* @returns The state, with no record.
|
|
34200
|
+
*/
|
|
34201
|
+
function createTrailState() {
|
|
34202
|
+
return {
|
|
34203
|
+
frames: 0,
|
|
34204
|
+
uploadFrames: 0,
|
|
34205
|
+
lastPageMs: 0,
|
|
34206
|
+
pending: false,
|
|
34207
|
+
record: void 0,
|
|
34208
|
+
rest: void 0,
|
|
34209
|
+
stop: void 0
|
|
34210
|
+
};
|
|
34211
|
+
}
|
|
34212
|
+
/**
|
|
34213
|
+
* Tells whether the page has a `localStorage` to keep the trail in. Reading it may throw (site data off).
|
|
34214
|
+
*
|
|
34215
|
+
* @returns True when `localStorage.setItem` is there.
|
|
34216
|
+
*/
|
|
34217
|
+
function hasStorage() {
|
|
34218
|
+
try {
|
|
34219
|
+
return typeof globalThis.localStorage?.setItem === "function";
|
|
34220
|
+
} catch {
|
|
34221
|
+
return false;
|
|
34222
|
+
}
|
|
34223
|
+
}
|
|
34224
|
+
/**
|
|
34225
|
+
* Reads a `localStorage` key as JSON. A storage that throws, and text that does not parse, read as `undefined`.
|
|
34226
|
+
*
|
|
34227
|
+
* @param key - The key.
|
|
34228
|
+
* @returns The parsed value, or `undefined`.
|
|
34229
|
+
*/
|
|
34230
|
+
function readJson$1(key) {
|
|
34231
|
+
try {
|
|
34232
|
+
const text = globalThis.localStorage?.getItem(key);
|
|
34233
|
+
return text === null || text === void 0 ? void 0 : JSON.parse(text);
|
|
34234
|
+
} catch {
|
|
34235
|
+
return;
|
|
34236
|
+
}
|
|
34237
|
+
}
|
|
34238
|
+
/**
|
|
34239
|
+
* Writes a value as JSON. A storage that refuses the write (private mode, full) keeps nothing.
|
|
34240
|
+
*
|
|
34241
|
+
* @param key - The key.
|
|
34242
|
+
* @param value - The value.
|
|
34243
|
+
*/
|
|
34244
|
+
function writeJson(key, value) {
|
|
34245
|
+
try {
|
|
34246
|
+
globalThis.localStorage?.setItem(key, JSON.stringify(value));
|
|
34247
|
+
} catch {}
|
|
34248
|
+
}
|
|
34249
|
+
/**
|
|
34250
|
+
* Tells whether a value is one of the three page states.
|
|
34251
|
+
*
|
|
34252
|
+
* @param value - A parsed field.
|
|
34253
|
+
* @returns True for `"visible"`, `"hidden"` or `"closed"`.
|
|
34254
|
+
* @example
|
|
34255
|
+
* ```ts
|
|
34256
|
+
* isPageState("hidden"); // true
|
|
34257
|
+
* ```
|
|
34258
|
+
*/
|
|
34259
|
+
function isPageState(value) {
|
|
34260
|
+
return value === "visible" || value === "hidden" || value === "closed";
|
|
34261
|
+
}
|
|
34262
|
+
/**
|
|
34263
|
+
* Tells whether a parsed value has the fields of a kept trail the report reads.
|
|
34264
|
+
*
|
|
34265
|
+
* @param value - A parsed value.
|
|
34266
|
+
* @returns True for an object with a start, a last write, a path and a page state.
|
|
34267
|
+
*/
|
|
34268
|
+
function isTrailRecord(value) {
|
|
34269
|
+
if (typeof value !== "object" || value === null) return false;
|
|
34270
|
+
const record = value;
|
|
34271
|
+
return typeof record.at === "number" && typeof record.startedAt === "number" && typeof record.path === "string" && isPageState(record.state);
|
|
34272
|
+
}
|
|
34273
|
+
/**
|
|
34274
|
+
* The state of a page that is not left: hidden or shown.
|
|
34275
|
+
*
|
|
34276
|
+
* @param document - The page's document.
|
|
34277
|
+
* @returns `"hidden"` or `"visible"`.
|
|
34278
|
+
*/
|
|
34279
|
+
function pageStateOf(document) {
|
|
34280
|
+
return document.hidden ? "hidden" : "visible";
|
|
34281
|
+
}
|
|
34282
|
+
/**
|
|
34283
|
+
* Reads the kept cut runs. Anything that is not a list reads as none.
|
|
34284
|
+
*
|
|
34285
|
+
* @returns The records, oldest first.
|
|
34286
|
+
*/
|
|
34287
|
+
function readCutRuns() {
|
|
34288
|
+
const parsed = readJson$1(CUT_KEY);
|
|
34289
|
+
return Array.isArray(parsed) ? parsed.filter((value) => isTrailRecord(value)) : [];
|
|
34290
|
+
}
|
|
34291
|
+
/**
|
|
34292
|
+
* Reports the run before this one when it ended without `pagehide`: killed in play (`"visible"`) is a warning, ended
|
|
34293
|
+
* in the background (`"hidden"`) an info line, both `renderer:run-cut-short` with the record, and the record is kept
|
|
34294
|
+
* among the cut runs. A run that closed cleanly, and no record, report nothing.
|
|
34295
|
+
*
|
|
34296
|
+
* @param ctx - Domain context of the renderer plugin.
|
|
34297
|
+
*/
|
|
34298
|
+
function reportLastRun(ctx) {
|
|
34299
|
+
const last = readJson$1(TRAIL_KEY);
|
|
34300
|
+
if (!isTrailRecord(last) || last.state === "closed") return;
|
|
34301
|
+
if (last.state === "visible") ctx.log.warn("renderer:run-cut-short", last);
|
|
34302
|
+
else ctx.log.info("renderer:run-cut-short", last);
|
|
34303
|
+
writeJson(CUT_KEY, [...readCutRuns(), last].slice(-10));
|
|
34304
|
+
}
|
|
34305
|
+
/**
|
|
34306
|
+
* Fills the record from the renderer and the counters, resets the counters and keeps the record. The frames per second
|
|
34307
|
+
* are the drawn frames over the page-clock time since the write before; `at` is the wall clock.
|
|
34308
|
+
*
|
|
34309
|
+
* @param ctx - Domain context of the renderer plugin.
|
|
34310
|
+
* @param trail - The trail state, with its record.
|
|
34311
|
+
* @param record - The record of the run.
|
|
34312
|
+
*/
|
|
34313
|
+
function writeTrail(ctx, trail, record) {
|
|
34314
|
+
const now = ctx.deps.clock.now();
|
|
34315
|
+
const pageMs = pageNow$1();
|
|
34316
|
+
const spanMs = pageMs - trail.lastPageMs;
|
|
34317
|
+
const host = ctx.state.host;
|
|
34318
|
+
record.at = now;
|
|
34319
|
+
record.uptimeS = uptimeOf(now);
|
|
34320
|
+
record.path = pathOf$1(ctx);
|
|
34321
|
+
record.kind = host.kind;
|
|
34322
|
+
record.textureMb = host.app === void 0 ? 0 : tenth(textureUsage(host.app, host.kept).bytes / BYTES_PER_MB$1);
|
|
34323
|
+
record.heapMb = heapMb$1();
|
|
34324
|
+
record.fps = spanMs > 0 ? tenth(trail.frames * MS_PER_S / spanMs) : 0;
|
|
34325
|
+
record.uploadFrames = trail.uploadFrames;
|
|
34326
|
+
record.writes += 1;
|
|
34327
|
+
trail.frames = 0;
|
|
34328
|
+
trail.uploadFrames = 0;
|
|
34329
|
+
trail.lastPageMs = pageMs;
|
|
34330
|
+
writeJson(TRAIL_KEY, record);
|
|
34331
|
+
}
|
|
34332
|
+
/**
|
|
34333
|
+
* Counts one drawn frame, and one that uploaded textures, for the next write. Called by the render callback of every
|
|
34334
|
+
* drawn frame: two small-integer adds, nothing allocated.
|
|
34335
|
+
*
|
|
34336
|
+
* @param trail - The trail state.
|
|
34337
|
+
* @param uploaded - True when the frame uploaded textures.
|
|
34338
|
+
*/
|
|
34339
|
+
function trailFrame(trail, uploaded) {
|
|
34340
|
+
trail.frames += 1;
|
|
34341
|
+
trail.uploadFrames += uploaded ? 1 : 0;
|
|
34342
|
+
}
|
|
34343
|
+
/**
|
|
34344
|
+
* Notes a flow path the game came to rest on; a new one is written in a page task of its own, right after the emit:
|
|
34345
|
+
* the moment of a scene change is when memory climbs. A trail that has not started notes nothing.
|
|
34346
|
+
*
|
|
34347
|
+
* @param trail - The trail state.
|
|
34348
|
+
* @param path - Where the flow came to rest.
|
|
34349
|
+
*/
|
|
34350
|
+
function trailRest(trail, path) {
|
|
34351
|
+
trail.rest?.(path);
|
|
34352
|
+
}
|
|
34353
|
+
/**
|
|
34354
|
+
* Keeps a new flow path among the last ones, with the seconds since the page started; the same path again is skipped.
|
|
34355
|
+
*
|
|
34356
|
+
* @param record - The record of the run.
|
|
34357
|
+
* @param path - Where the flow came to rest.
|
|
34358
|
+
* @param now - The wall clock, ms.
|
|
34359
|
+
* @returns True when the path was new.
|
|
34360
|
+
*/
|
|
34361
|
+
function notePath(record, path, now) {
|
|
34362
|
+
if (record.paths.at(-1)?.path === path) return false;
|
|
34363
|
+
record.paths.push({
|
|
34364
|
+
path,
|
|
34365
|
+
atS: uptimeOf(now)
|
|
34366
|
+
});
|
|
34367
|
+
if (record.paths.length > PATHS) record.paths.shift();
|
|
34368
|
+
return true;
|
|
34369
|
+
}
|
|
34370
|
+
/**
|
|
34371
|
+
* The record of a run that starts now, over the one just reported.
|
|
34372
|
+
*
|
|
34373
|
+
* @param ctx - Domain context of the renderer plugin.
|
|
34374
|
+
* @param document - The page's document.
|
|
34375
|
+
* @returns The record, not written yet.
|
|
34376
|
+
*/
|
|
34377
|
+
function createRecord$1(ctx, document) {
|
|
34378
|
+
const now = ctx.deps.clock.now();
|
|
34379
|
+
return {
|
|
34380
|
+
startedAt: now,
|
|
34381
|
+
at: now,
|
|
34382
|
+
uptimeS: uptimeOf(now),
|
|
34383
|
+
state: pageStateOf(document),
|
|
34384
|
+
path: pathOf$1(ctx),
|
|
34385
|
+
paths: [],
|
|
34386
|
+
kind: ctx.state.host.kind,
|
|
34387
|
+
textureMb: 0,
|
|
34388
|
+
heapMb: void 0,
|
|
34389
|
+
fps: 0,
|
|
34390
|
+
uploadFrames: 0,
|
|
34391
|
+
writes: 0
|
|
34392
|
+
};
|
|
34393
|
+
}
|
|
34394
|
+
/**
|
|
34395
|
+
* Starts the trail of a page: reports the run before when it was cut short, starts a new record, writes it, writes it
|
|
34396
|
+
* again once the application is up, then every 2 s and at each change of the page (`visibilitychange`, `pagehide`,
|
|
34397
|
+
* a `pageshow` from the back/forward cache). Without a document or a mount (an inert renderer) or a `localStorage` to
|
|
34398
|
+
* keep it in, nothing starts.
|
|
34399
|
+
*
|
|
34400
|
+
* @param ctx - Domain context of the renderer plugin.
|
|
34401
|
+
*/
|
|
34402
|
+
function startTrail(ctx) {
|
|
34403
|
+
const document = globalThis.document;
|
|
34404
|
+
const trail = ctx.state.trail;
|
|
34405
|
+
if (document === void 0 || ctx.config.mount === void 0 || !hasStorage()) return;
|
|
34406
|
+
if (trail.stop !== void 0) return;
|
|
34407
|
+
reportLastRun(ctx);
|
|
34408
|
+
const record = createRecord$1(ctx, document);
|
|
34409
|
+
const write = () => writeTrail(ctx, trail, record);
|
|
34410
|
+
const onVisibility = () => {
|
|
34411
|
+
record.state = pageStateOf(document);
|
|
34412
|
+
write();
|
|
34413
|
+
};
|
|
34414
|
+
const onPageHide = () => {
|
|
34415
|
+
record.state = "closed";
|
|
34416
|
+
write();
|
|
34417
|
+
};
|
|
34418
|
+
const onPageShow = (event) => {
|
|
34419
|
+
if (!event.persisted) return;
|
|
34420
|
+
record.state = pageStateOf(document);
|
|
34421
|
+
write();
|
|
34422
|
+
};
|
|
34423
|
+
const timer = globalThis.setInterval(write, TRAIL_EVERY_MS);
|
|
34424
|
+
ctx.state.host.onReady.push(write);
|
|
34425
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
34426
|
+
globalThis.addEventListener("pagehide", onPageHide);
|
|
34427
|
+
globalThis.addEventListener("pageshow", onPageShow);
|
|
34428
|
+
trail.lastPageMs = pageNow$1();
|
|
34429
|
+
trail.record = record;
|
|
34430
|
+
trail.rest = (path) => {
|
|
34431
|
+
if (!notePath(record, path, ctx.deps.clock.now()) || trail.pending) return;
|
|
34432
|
+
trail.pending = true;
|
|
34433
|
+
afterTask(() => {
|
|
34434
|
+
trail.pending = false;
|
|
34435
|
+
if (trail.stop !== void 0) write();
|
|
34436
|
+
});
|
|
34437
|
+
};
|
|
34438
|
+
trail.stop = () => {
|
|
34439
|
+
globalThis.clearInterval(timer);
|
|
34440
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
34441
|
+
globalThis.removeEventListener("pagehide", onPageHide);
|
|
34442
|
+
globalThis.removeEventListener("pageshow", onPageShow);
|
|
34443
|
+
record.state = "closed";
|
|
34444
|
+
record.writes += 1;
|
|
34445
|
+
writeJson(TRAIL_KEY, record);
|
|
34446
|
+
trail.rest = void 0;
|
|
34447
|
+
trail.stop = void 0;
|
|
34448
|
+
};
|
|
34449
|
+
write();
|
|
34450
|
+
}
|
|
34451
|
+
/**
|
|
34452
|
+
* Stops a started trail: the timer and the listeners go, and the record is written `"closed"`. A trail that never
|
|
34453
|
+
* started is left as it is.
|
|
34454
|
+
*
|
|
34455
|
+
* @param trail - The trail state.
|
|
34456
|
+
*/
|
|
34457
|
+
function stopTrail(trail) {
|
|
34458
|
+
trail.stop?.();
|
|
34459
|
+
}
|
|
34460
|
+
//#endregion
|
|
34176
34461
|
//#region src/plugins/renderer/viewport/resize.ts
|
|
34177
34462
|
/**
|
|
34178
34463
|
* Measures the mount in CSS pixels, fractions kept: at a fractional `devicePixelRatio` the window is 844.8 CSS px
|
|
@@ -34354,6 +34639,7 @@ function renderFrame(ctx, modules) {
|
|
|
34354
34639
|
modules.shots.after(rendered && !overdraw);
|
|
34355
34640
|
if (rendered) {
|
|
34356
34641
|
ctx.deps.time.frameDrawn();
|
|
34642
|
+
trailFrame(ctx.state.trail, uploaded);
|
|
34357
34643
|
if (probed || uploaded || built) ctx.deps.time.frameProbed();
|
|
34358
34644
|
modules.sync.releaseStep();
|
|
34359
34645
|
}
|
|
@@ -34379,6 +34665,7 @@ async function startRenderer(ctx) {
|
|
|
34379
34665
|
const rendererCtx = withDeps$8(ctx);
|
|
34380
34666
|
const modules = createModules$1(rendererCtx);
|
|
34381
34667
|
reportLosses(rendererCtx);
|
|
34668
|
+
startTrail(rendererCtx);
|
|
34382
34669
|
modules.host.onResolution(() => modules.demand.whole("resize"));
|
|
34383
34670
|
modules.host.onReady(() => {
|
|
34384
34671
|
modules.viewport.start();
|
|
@@ -34414,6 +34701,7 @@ async function startRenderer(ctx) {
|
|
|
34414
34701
|
* @param scope - What `onStop` receives: the frozen config and the plugin state.
|
|
34415
34702
|
*/
|
|
34416
34703
|
function stopRenderer(scope) {
|
|
34704
|
+
stopTrail(scope.state.trail);
|
|
34417
34705
|
stopMonitor(scope.state.monitor);
|
|
34418
34706
|
stopDemand(scope.state.demand);
|
|
34419
34707
|
stopKept(scope.state.kept);
|
|
@@ -38329,11 +38617,12 @@ function createHandlers$6(ctx) {
|
|
|
38329
38617
|
if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__) monitorOf().path(ctx.require(flowPlugin).state().path, false);
|
|
38330
38618
|
},
|
|
38331
38619
|
/**
|
|
38332
|
-
* Notes the rest path; a new one writes an auto mark.
|
|
38620
|
+
* Notes the rest path in the run's trail, every build (F175); in an agent build a new one also writes an auto mark.
|
|
38333
38621
|
*
|
|
38334
38622
|
* @param payload - Where the flow came to rest.
|
|
38335
38623
|
*/
|
|
38336
38624
|
"flow:rest": (payload) => {
|
|
38625
|
+
trailRest(ctx.state.trail, payload.path);
|
|
38337
38626
|
if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__) monitorOf().path(payload.path, true);
|
|
38338
38627
|
},
|
|
38339
38628
|
/**
|
|
@@ -38753,7 +39042,8 @@ function createRendererState(ctx) {
|
|
|
38753
39042
|
monitor: createMonitorState(ctx.config.monitor),
|
|
38754
39043
|
demand: createDemandState(ctx.config.debug.verifyFrames === true),
|
|
38755
39044
|
kept: createKeptState(ctx.config),
|
|
38756
|
-
shots: createShotsState()
|
|
39045
|
+
shots: createShotsState(),
|
|
39046
|
+
trail: createTrailState()
|
|
38757
39047
|
};
|
|
38758
39048
|
}
|
|
38759
39049
|
/**
|
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-lV0kgldJ.mjs";
|
|
2
|
+
import { t as createApp } from "./index-DmqMa5dU.mjs";
|
|
3
|
+
import { b as memory, x as saveOf, y as WithGameState } from "./types-BTxejSGs.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-C0pK21sO.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,7 +1,7 @@
|
|
|
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-CHcvpppx.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
|
-
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-
|
|
4
|
+
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-BuXptVI_.mjs";
|
|
5
5
|
//#region src/testing/fake-fx.ts
|
|
6
6
|
/** The node path a refused `fx.start` names when the test gives none. */
|
|
7
7
|
const defaultPath = "test";
|
|
@@ -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-lV0kgldJ.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-DIBuAEi0.mjs";
|
|
3
|
+
import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-D_OXtHWf.mjs";
|
|
4
|
+
import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-DmqMa5dU.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -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-lV0kgldJ.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-D_OXtHWf.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -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-lV0kgldJ.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-lV0kgldJ.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-C0pK21sO.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -10483,6 +10483,46 @@ type ShotsInternal = {
|
|
|
10483
10483
|
after(drawn: boolean): void; /** From `host.onLoss`: the takes, the shots and the pipelines go with the device, silently. */
|
|
10484
10484
|
forget(): void;
|
|
10485
10485
|
};
|
|
10486
|
+
//#endregion
|
|
10487
|
+
//#region src/plugins/renderer/trail.d.ts
|
|
10488
|
+
/** Where the page stood at the last write: shown, in the background, or left cleanly. */
|
|
10489
|
+
type TrailPageState = "visible" | "hidden" | "closed";
|
|
10490
|
+
/** One change of the flow path, with the seconds since the page started. */
|
|
10491
|
+
type TrailPath = {
|
|
10492
|
+
path: string;
|
|
10493
|
+
atS: number;
|
|
10494
|
+
};
|
|
10495
|
+
/**
|
|
10496
|
+
* The trail of one run as it is kept. A record written by an older build may lack a field: the report logs what it
|
|
10497
|
+
* finds.
|
|
10498
|
+
*/
|
|
10499
|
+
type TrailRecord = {
|
|
10500
|
+
/** The wall clock of the start, ms since the epoch. */startedAt: number; /** The wall clock of the last write, ms since the epoch. */
|
|
10501
|
+
at: number; /** Seconds since the page started, at the last write. */
|
|
10502
|
+
uptimeS: number; /** Where the page stood at the last write. */
|
|
10503
|
+
state: TrailPageState; /** The flow path at the last write. */
|
|
10504
|
+
path: string; /** The last rest paths, oldest first. */
|
|
10505
|
+
paths: TrailPath[]; /** The backend that draws, `"none"` before the application is up. */
|
|
10506
|
+
kind: RendererKind; /** Megabytes of the textures Pixi manages. */
|
|
10507
|
+
textureMb: number; /** Megabytes of JS heap in use (Chromium); `undefined` on WebKit. */
|
|
10508
|
+
heapMb: number | undefined; /** Drawn frames per second since the write before, on the page clock. */
|
|
10509
|
+
fps: number; /** Drawn frames that uploaded textures since the write before. */
|
|
10510
|
+
uploadFrames: number; /** How many writes the run made. */
|
|
10511
|
+
writes: number;
|
|
10512
|
+
};
|
|
10513
|
+
/**
|
|
10514
|
+
* The trail's state on the renderer: the two counters the frame adds to, the page clock of the last write, the record
|
|
10515
|
+
* and the closures of a started trail.
|
|
10516
|
+
*/
|
|
10517
|
+
type TrailState = {
|
|
10518
|
+
/** Drawn frames since the last write; the render callback adds one. */frames: number; /** Drawn frames that uploaded textures since the last write. */
|
|
10519
|
+
uploadFrames: number; /** The page clock of the last write, ms. */
|
|
10520
|
+
lastPageMs: number; /** True while a write waits for its page task. */
|
|
10521
|
+
pending: boolean; /** The record of the started trail; `undefined` before `startTrail`. */
|
|
10522
|
+
record: TrailRecord | undefined; /** Notes a rest path and writes the record when it is new; `undefined` while the trail is not started. */
|
|
10523
|
+
rest: ((path: string) => void) | undefined; /** Stops the trail: the record is written `"closed"`. */
|
|
10524
|
+
stop: (() => void) | undefined;
|
|
10525
|
+
};
|
|
10486
10526
|
declare namespace types_d_exports$2 {
|
|
10487
10527
|
export { AdaptiveScale, Api$1 as Api, AspectRange, BitmapFontData, CanvasRestart, CaptureOptions, Captured, Config$2 as Config, CountingClasses, CoverFrame, CreateTextureOptions$1 as CreateTextureOptions, DebugApi, DebugSwitches, DemandFrame, DemandModule, DemandReason, DemandState, Deps$2 as Deps, DisplayAdapter, DisplayEntry, DisplaysApi, DrawCounter, Events$2 as Events, FilterCache, FilterSlot, FilterSlotInputs, FilterSlotQuad, FiltersApi, FontsApi, FrameColumns, FrameReadResult, FrameReadout, FrameRecord, FrameRing, HitBox, HostApi, HostInternal, HostModule, HostState, HudPartValue, KeptInternal, KeptModule, KeptRange, KeptState, KeptStats, KernelSlice$2 as KernelSlice, LayerEntry, LeaveApi, LeaveCover, LeaveLoader, LeaveLook, LegendEntry, LongFrameEntry, Modules, MonitorApi, MonitorConfig, MonitorCounts, MonitorDeps, MonitorInternal, MonitorModule, MonitorSections, MonitorState, NineBorders$1 as NineBorders, Orientation, OverlayEventDetail, OverlayLevelValue, OverlayMode, OverlayPhase, OverlayReport, OverlayValue, OverlayWhat, PassKind, PassRecord, PerfCause, PerfChange, PerfChangeEntry, PerfCollectorLine, PerfCounts, PerfDisplay, PerfEventLine, PerfEventName, PerfGapLine, PerfHeaderLine, PerfLogLine, PerfLongFrameLine, PerfMarkLine, PerfMeasured, PerfMonitorApi, PerfSampleLine, PerfSpikeLine, PerfStartupLine, PerfTelemetryLine, PerfThermalLine, PictureRect, PixiApplication, PixiBitmapFont, PixiBounds, PixiContainer, PixiFilter, PixiFilterManager, PixiGpuProgram, PixiGraphics, PixiMatrix, PixiMesh, PixiMeshGeometry, PixiModule, PixiNineSliceSprite, PixiRectangle, PixiRenderLayer, PixiRenderTexture, PixiShader, PixiSprite, PixiTexture, PixiTextureSource, PixiUniformGroup, Point, PoolTrim, PoolTrimDetail, ProblemEventDetail, ProblemRule, Rect, RenderStats, RendererCtx, RendererKind, RetakeWhy, SafeArea, ShaderEventDetail, ShaderWhat, ShotPipes, ShotsApi, ShotsConfig, ShotsInternal, ShotsModule, ShotsState, SliceFrame, State$2 as State, SyncApi, SyncCounts, SyncInternal, SyncModule, SyncState, TeardownScope, TextureProvider, TextureUsage, TexturesApi, Under, View, ViewKind, ViewportApi, ViewportInternal, ViewportModule, ViewportSize, ViewportState, WarmDetail, WhyEntry, WhyLive };
|
|
10488
10528
|
}
|
|
@@ -10832,7 +10872,8 @@ type State$2 = {
|
|
|
10832
10872
|
monitor: MonitorState;
|
|
10833
10873
|
demand: DemandState;
|
|
10834
10874
|
kept: KeptState;
|
|
10835
|
-
shots: ShotsState;
|
|
10875
|
+
shots: ShotsState; /** The trail of the run in `localStorage` (F175). */
|
|
10876
|
+
trail: TrailState;
|
|
10836
10877
|
};
|
|
10837
10878
|
/**
|
|
10838
10879
|
* renderer plugin API, `app.renderer`: grouped by module, and the two members of `monitor`,
|
|
@@ -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-lV0kgldJ.mjs";
|
|
2
|
+
import { W as AnimApi, r as UiApi } from "./types-DIBuAEi0.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-D_OXtHWf.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-C0pK21sO.mjs";
|
|
5
|
+
import { i as ControlApp, o as InputOf } from "./types-DvKiF3cX.mjs";
|
|
6
|
+
import { t as commands } from "./commands-Dj-Y2q98.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-Be1BzbKi.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-CuG-Vma9.mjs";
|
|
3
|
-
import { n as commands, t as run } from "./run-
|
|
3
|
+
import { n as commands, t as run } from "./run-1i_SfbM4.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";
|
|
@@ -1522,31 +1522,13 @@ const pageFunctions = [
|
|
|
1522
1522
|
function pageScript() {
|
|
1523
1523
|
return `(() => {\n${pageFunctions.flatMap((fn) => [String(fn), `globalThis[${JSON.stringify(fn.name)}] = ${fn.name};`]).join("\n")}\n})();\n`;
|
|
1524
1524
|
}
|
|
1525
|
-
|
|
1526
|
-
//#region src/visual/leg-browser.ts
|
|
1527
|
-
/**
|
|
1528
|
-
* @file visual — the browser leg: Chrome with WebGPU on a Mac, driven by Playwright. It loads
|
|
1529
|
-
* `playwright-core` with a dynamic import only here, opens the dev page once per test, waits until
|
|
1530
|
-
* the page has loaded what it asked for, turns on the renderer's check of skipped frames
|
|
1531
|
-
* (`debug.verifyFrames`), pauses the game and steps it to the start time, plays the
|
|
1532
|
-
* test inside the page through `globalThis.game` and `globalThis.doors` on stepped frames, and at
|
|
1533
|
-
* each checkpoint checks the page's state against `state.json` and its picture against
|
|
1534
|
-
* `screen.webp`. The WebGL leg opens the page with `?renderer=webgl` and keeps its pictures in
|
|
1535
|
-
* `screen.webgl.webp`. The pixels are compared in the page (`page-script.ts`); the files are written by
|
|
1536
|
-
* `files.ts`. A failure of the page itself fails the leg; a failure of a step ends its test only.
|
|
1537
|
-
*/
|
|
1538
|
-
/**
|
|
1539
|
-
* The Chrome flags of every launch: WebGPU on Metal, on any GPU, and no macOS keychain (F186): a
|
|
1540
|
-
* Chrome without the two last flags asks the keychain for "Chrome Safe Storage" and opens a
|
|
1541
|
-
* dialog over the screen on every pixel run.
|
|
1542
|
-
*/
|
|
1525
|
+
/** The Chrome flags of every launch of the leg: WebGPU on Metal, on any GPU, and no macOS keychain. */
|
|
1543
1526
|
const CHROME_FLAGS = [
|
|
1544
1527
|
"--enable-unsafe-webgpu",
|
|
1545
1528
|
"--use-angle=metal",
|
|
1546
1529
|
"--enable-gpu",
|
|
1547
1530
|
"--ignore-gpu-blocklist",
|
|
1548
|
-
"--use-mock-keychain",
|
|
1549
|
-
"--password-store=basic"
|
|
1531
|
+
...["--use-mock-keychain", "--password-store=basic"]
|
|
1550
1532
|
];
|
|
1551
1533
|
/** The page width in CSS px when the setup names none: a phone. */
|
|
1552
1534
|
const DEFAULT_WIDTH = 390;
|