@moku-labs/game 0.15.124 → 0.15.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/app/page.d.mts +1 -1
  2. package/dist/app/system.d.mts +3 -3
  3. package/dist/app.d.mts +3 -3
  4. package/dist/app.mjs +1 -1
  5. package/dist/assets.d.mts +1 -1
  6. package/dist/{capture-BtS6_oWr.mjs → capture-BuVczpxc.mjs} +5 -3
  7. package/dist/{commands-CslgzXLW.d.mts → commands-Dj-Y2q98.d.mts} +5 -5
  8. package/dist/control.d.mts +4 -4
  9. package/dist/control.mjs +1 -1
  10. package/dist/{define-DAFwIXpT.d.mts → define-CZ20Hsdi.d.mts} +2 -2
  11. package/dist/{headless-CCiUwvlp.mjs → headless-BuXptVI_.mjs} +1 -1
  12. package/dist/{headless-w-BqXOjQ.d.mts → headless-C0pK21sO.d.mts} +1 -1
  13. package/dist/{index-DY9NpxeK.d.mts → index-DmqMa5dU.d.mts} +3 -3
  14. package/dist/index.d.mts +4 -4
  15. package/dist/index.mjs +1 -1
  16. package/dist/inspect.d.mts +6 -6
  17. package/dist/jsx-dev-runtime.d.mts +1 -1
  18. package/dist/jsx-runtime.d.mts +1 -1
  19. package/dist/{run-CeZj5UAg.mjs → run-1i_SfbM4.mjs} +2 -2
  20. package/dist/{runtime-DbfmnXM8.d.mts → runtime-CcNv443E.d.mts} +1 -1
  21. package/dist/{src-DAwGHTaM.mjs → src-CHcvpppx.mjs} +328 -28
  22. package/dist/testing.d.mts +4 -4
  23. package/dist/testing.mjs +2 -2
  24. package/dist/{types-eIlzV3Jf.d.mts → types-BTxejSGs.d.mts} +4 -4
  25. package/dist/{types-B2oay3bJ.d.mts → types-DIBuAEi0.d.mts} +2 -2
  26. package/dist/{types-Cbtr2GAO.d.mts → types-D_OXtHWf.d.mts} +1 -1
  27. package/dist/{types-BelqIB0P.d.mts → types-DvKiF3cX.d.mts} +2 -2
  28. package/dist/{types-CUQ-ig2E.d.mts → types-lV0kgldJ.d.mts} +44 -3
  29. package/dist/{visual-VvIFdrWq.d.mts → visual-Be1BzbKi.d.mts} +6 -6
  30. package/dist/visual.d.mts +1 -1
  31. package/dist/visual.mjs +1 -1
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-eIlzV3Jf.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-BTxejSGs.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Yr as PlayerStateProvider } from "../types-CUQ-ig2E.mjs";
2
- import { Et as PlatformProvider } from "../index-DY9NpxeK.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-eIlzV3Jf.mjs";
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-CUQ-ig2E.mjs";
2
- import { J as StringTable } from "./types-Cbtr2GAO.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-eIlzV3Jf.mjs";
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-DAwGHTaM.mjs";
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
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-CUQ-ig2E.mjs";
1
+ import { d as Manifest } from "./types-lV0kgldJ.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -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. Never a game's state, whose time is `clock`.
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 dev tools' own work (a capture's picture), never a game's state.
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 { compact as _, sheetAlone as a, collectFlows as c, findNode as d, framePath as f, slotNames as g, restlessCapOf as h, servePaused as i, describeGraph as l, isRestCheckpoint as m, captureFrame as n, epochOf as o, graphHash as p, serveCaptures as r, pageNow as s, cancelCaptures as t, describedNode as u, pushEntry as v };
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-CUQ-ig2E.mjs";
2
- import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-B2oay3bJ.mjs";
3
- import { R as InputApi } from "./types-Cbtr2GAO.mjs";
4
- import { t as HeadlessApp } from "./headless-w-BqXOjQ.mjs";
5
- import { i as ControlApp, r as Command } from "./types-BelqIB0P.mjs";
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
  /**
@@ -1,7 +1,7 @@
1
- import { t as HeadlessApp } from "./headless-w-BqXOjQ.mjs";
2
- import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-BelqIB0P.mjs";
3
- import { t as commands } from "./commands-CslgzXLW.mjs";
4
- import { t as defineCommand } from "./define-DAFwIXpT.mjs";
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-CeZj5UAg.mjs";
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-w-BqXOjQ.mjs";
2
- import { l as Source, r as Command, s as InputSchema } from "./types-BelqIB0P.mjs";
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 { p as graphHash, u as describedNode } from "./capture-BtS6_oWr.mjs";
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-CUQ-ig2E.mjs";
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-CUQ-ig2E.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-B2oay3bJ.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-Cbtr2GAO.mjs";
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-CUQ-ig2E.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-B2oay3bJ.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-Cbtr2GAO.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-DY9NpxeK.mjs";
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-DAwGHTaM.mjs";
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 };
@@ -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-CUQ-ig2E.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-B2oay3bJ.mjs";
3
- import { c as UiNode } from "./types-Cbtr2GAO.mjs";
4
- import { t as HeadlessApp } from "./headless-w-BqXOjQ.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-BelqIB0P.mjs";
6
- import { n as defineSource } from "./define-DAFwIXpT.mjs";
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-DbfmnXM8.mjs";
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 };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-DbfmnXM8.mjs";
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, p as graphHash } from "./capture-BtS6_oWr.mjs";
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-CCiUwvlp.mjs";
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-Cbtr2GAO.mjs";
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 compact, c as collectFlows, d as findNode, f as framePath, g as slotNames, h as restlessCapOf, i as servePaused, l as describeGraph, m as isRestCheckpoint, n as captureFrame, o as epochOf, p as graphHash, r as serveCaptures, s as pageNow$1, t as cancelCaptures, v as pushEntry } from "./capture-BtS6_oWr.mjs";
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";
@@ -15384,11 +15384,10 @@ function beginLoss(ctx, kind, reason) {
15384
15384
  return true;
15385
15385
  }
15386
15386
  /**
15387
- * Ends a restore: the renderer draws again and the pause reason goes. A page that leaves after the loss (F189)
15388
- * restores nothing. The `onRestore` callbacks
15389
- * run first: after a WebGPU restore the whole display tree is new and they rebuild it; after a
15390
- * WebGL restore the tree stands, but the canvas and every render texture came back empty, so they
15391
- * ask for a whole frame and the pictures again.
15387
+ * Ends a restore: the renderer draws again and the pause reason goes. The `onRestore` callbacks run first: after a
15388
+ * WebGPU restore the whole display tree is new and they rebuild it; after a WebGL restore the tree stands, but the
15389
+ * canvas and every render texture came back empty, so they ask for a whole frame and the pictures again. A page that
15390
+ * leaves after the loss (F189) restores nothing: the call returns at once and the pause reason stays.
15392
15391
  *
15393
15392
  * @param ctx - Domain context of the renderer plugin.
15394
15393
  * @param rebuild - True when a new application replaced the old one.
@@ -20078,7 +20077,7 @@ function holdsDisplay(kctx, top) {
20078
20077
  * @param category - The worst category of the slots.
20079
20078
  * @returns The record, in the maps and the list.
20080
20079
  */
20081
- function createRecord$1(kctx, pixi, entity, view, slots, category) {
20080
+ function createRecord$2(kctx, pixi, entity, view, slots, category) {
20082
20081
  const top = view.wrapper ?? view.object;
20083
20082
  const key = (/* @__PURE__ */ new Float64Array(31)).fill(NaN);
20084
20083
  const record = {
@@ -21988,7 +21987,7 @@ function renew(kctx, pixi, record) {
21988
21987
  const view = kctx.ctx.state.sync.views.get(record.entity);
21989
21988
  if (view !== void 0 && (view.wrapper ?? view.object) === record.top) return false;
21990
21989
  dropRecord$1(kctx, record, view, true);
21991
- if (view !== void 0) createRecord$1(kctx, pixi, record.entity, view, record.slots, record.category);
21990
+ if (view !== void 0) createRecord$2(kctx, pixi, record.entity, view, record.slots, record.category);
21992
21991
  return true;
21993
21992
  }
21994
21993
  /**
@@ -22131,7 +22130,7 @@ function createKeptApi(ctx, deps) {
22131
22130
  return;
22132
22131
  }
22133
22132
  if (record === void 0) {
22134
- createRecord$1(kctx, pixi, entity, view, slots, category);
22133
+ createRecord$2(kctx, pixi, entity, view, slots, category);
22135
22134
  return;
22136
22135
  }
22137
22136
  if (slotsPadding(slots) !== slotsPadding(record.slots)) record.dirtyS1 = true;
@@ -22417,16 +22416,6 @@ const BYTES_PER_MB$1 = 1048576;
22417
22416
  /** Milliseconds in a second. */
22418
22417
  const MS_PER_S = 1e3;
22419
22418
  /**
22420
- * Seconds since the page started: the wall clock against the page's time origin.
22421
- *
22422
- * @param now - The wall clock in milliseconds.
22423
- * @returns The seconds, to one decimal; 0 where the page has no time origin.
22424
- */
22425
- function uptimeOf(now) {
22426
- const origin = globalThis.performance?.timeOrigin;
22427
- return origin === void 0 ? 0 : tenth((now - origin) / MS_PER_S);
22428
- }
22429
- /**
22430
22419
  * Rounds to one decimal.
22431
22420
  *
22432
22421
  * @param value - A number.
@@ -22440,6 +22429,16 @@ function tenth(value) {
22440
22429
  return Math.round(value * 10) / 10;
22441
22430
  }
22442
22431
  /**
22432
+ * Seconds since the page started: the wall clock against the page's time origin.
22433
+ *
22434
+ * @param now - The wall clock in milliseconds.
22435
+ * @returns The seconds, to one decimal; 0 where the page has no time origin.
22436
+ */
22437
+ function uptimeOf(now) {
22438
+ const origin = globalThis.performance?.timeOrigin;
22439
+ return origin === void 0 ? 0 : tenth((now - origin) / MS_PER_S);
22440
+ }
22441
+ /**
22443
22442
  * The JS heap in use, in megabytes, where the browser tells it: `performance.memory` of Chromium. WebKit has none.
22444
22443
  *
22445
22444
  * @returns The megabytes, or `undefined`: the record is kept without it.
@@ -22462,6 +22461,17 @@ function pathOf$1(ctx) {
22462
22461
  }
22463
22462
  }
22464
22463
  /**
22464
+ * Tells whether a parsed value has the fields of a kept record.
22465
+ *
22466
+ * @param value - A parsed element.
22467
+ * @returns True for an object with the fields the log reads.
22468
+ */
22469
+ function isLossRecord(value) {
22470
+ if (typeof value !== "object" || value === null) return false;
22471
+ const record = value;
22472
+ return typeof record.at === "number" && typeof record.kind === "string" && typeof record.reason === "string" && typeof record.path === "string" && typeof record.freed === "number" && typeof record.reloaded === "boolean";
22473
+ }
22474
+ /**
22465
22475
  * Reads the kept records. Anything that is not a list, and a storage that throws, reads as none.
22466
22476
  *
22467
22477
  * @returns The records, oldest first.
@@ -22470,7 +22480,7 @@ function readLosses() {
22470
22480
  try {
22471
22481
  const text = globalThis.localStorage?.getItem(LOSS_KEY);
22472
22482
  const parsed = text === null || text === void 0 ? [] : JSON.parse(text);
22473
- return Array.isArray(parsed) ? parsed : [];
22483
+ return Array.isArray(parsed) ? parsed.filter((value) => isLossRecord(value)) : [];
22474
22484
  } catch {
22475
22485
  return [];
22476
22486
  }
@@ -26994,7 +27004,7 @@ const PATH_SLOTS = 1024;
26994
27004
  * @param path - The flow path.
26995
27005
  * @param rest - True when the flow came to rest there.
26996
27006
  */
26997
- function notePath(pc, path, rest) {
27007
+ function notePath$1(pc, path, rest) {
26998
27008
  const { perf } = pc;
26999
27009
  const { paths } = perf.ring;
27000
27010
  let id = perf.pathIds.get(path);
@@ -27124,7 +27134,7 @@ function attachFirst(pc) {
27124
27134
  });
27125
27135
  deps.sync.onWarm((draws) => writeEvent(pc, "warm", { draws }));
27126
27136
  deps.sync.onOverdraw((on) => writeEvent(pc, "debug", { overdraw: on }));
27127
- notePath(pc, ctx.deps.flow.state().path, false);
27137
+ notePath$1(pc, ctx.deps.flow.state().path, false);
27128
27138
  perf.display = displayOf(pc);
27129
27139
  }
27130
27140
  /**
@@ -27622,7 +27632,7 @@ function createMonitorApi(ctx, deps) {
27622
27632
  }
27623
27633
  },
27624
27634
  path: (path, rest) => {
27625
- 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);
27626
27636
  },
27627
27637
  thermal: (reading) => {
27628
27638
  if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__ && pc !== void 0) writeThermal(pc, reading);
@@ -31193,6 +31203,7 @@ function defaultBordersOf(nine) {
31193
31203
  }
31194
31204
  /**
31195
31205
  * Makes a Pixi texture out of a decoded image, on behalf of `assets`, which decides when it leaves the GPU.
31206
+ * An ImageBitmap is held until its source is on the GPU, then closed and replaced by a 1x1 stand-in (sync/release.ts).
31196
31207
  *
31197
31208
  * @param sctx - Domain context of the sync module.
31198
31209
  * @param image - The decoded image.
@@ -31364,7 +31375,7 @@ function clearFrames(state) {
31364
31375
  * Frees a texture, its source and the crops cut from it. A slice keeps the source: it belongs to
31365
31376
  * the page, which frees it. A source that goes lets go of its `change` listeners first, the ones
31366
31377
  * of its style too, so no bind group Pixi still keeps is told. A texture destroyed twice is a
31367
- * no-op.
31378
+ * no-op. A bitmap not yet uploaded is closed at once, and a freed source leaves the freed list.
31368
31379
  *
31369
31380
  * @param state - The sync branch of the plugin state.
31370
31381
  * @param texture - The texture to free.
@@ -34162,6 +34173,291 @@ function stopSync(state) {
34162
34173
  state.root = void 0;
34163
34174
  }
34164
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
34165
34461
  //#region src/plugins/renderer/viewport/resize.ts
34166
34462
  /**
34167
34463
  * Measures the mount in CSS pixels, fractions kept: at a fractional `devicePixelRatio` the window is 844.8 CSS px
@@ -34302,8 +34598,7 @@ function withDeps$8(ctx) {
34302
34598
  * the kept pictures (`kept.flush`, so the canvas stays one pass, E7), then the stage, then a shot of the frame just drawn
34303
34599
  * while the canvas texture holds it (`shots.after`, never of the heat map), then, when Pixi drew it, the decoded images
34304
34600
  * now on the GPU are freed (`sync.releaseStep`, F189), then the pixel leg of the kept oracle;
34305
- * `demand` settles the
34306
- * frame (the dev check, the pixel oracle), and `monitor` closes it and hands a drawn one to a
34601
+ * `demand` settles the frame (the dev check, the pixel oracle), and `monitor` closes it and hands a drawn one to a
34307
34602
  * waiting capture; last, `host` trims Pixi's texture pool when a rest or a scene change is due. The display objects
34308
34603
  * are written by the `sync` system. While the overdraw heat map of a dev or debug build is on, every frame asks to be
34309
34604
  * drawn and its stage pass is drawn as the map (`sync.drawOverdraw`).
@@ -34344,6 +34639,7 @@ function renderFrame(ctx, modules) {
34344
34639
  modules.shots.after(rendered && !overdraw);
34345
34640
  if (rendered) {
34346
34641
  ctx.deps.time.frameDrawn();
34642
+ trailFrame(ctx.state.trail, uploaded);
34347
34643
  if (probed || uploaded || built) ctx.deps.time.frameProbed();
34348
34644
  modules.sync.releaseStep();
34349
34645
  }
@@ -34369,6 +34665,7 @@ async function startRenderer(ctx) {
34369
34665
  const rendererCtx = withDeps$8(ctx);
34370
34666
  const modules = createModules$1(rendererCtx);
34371
34667
  reportLosses(rendererCtx);
34668
+ startTrail(rendererCtx);
34372
34669
  modules.host.onResolution(() => modules.demand.whole("resize"));
34373
34670
  modules.host.onReady(() => {
34374
34671
  modules.viewport.start();
@@ -34404,6 +34701,7 @@ async function startRenderer(ctx) {
34404
34701
  * @param scope - What `onStop` receives: the frozen config and the plugin state.
34405
34702
  */
34406
34703
  function stopRenderer(scope) {
34704
+ stopTrail(scope.state.trail);
34407
34705
  stopMonitor(scope.state.monitor);
34408
34706
  stopDemand(scope.state.demand);
34409
34707
  stopKept(scope.state.kept);
@@ -38319,11 +38617,12 @@ function createHandlers$6(ctx) {
38319
38617
  if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__) monitorOf().path(ctx.require(flowPlugin).state().path, false);
38320
38618
  },
38321
38619
  /**
38322
- * Notes the rest path; a new one writes an auto mark. Agent builds only.
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.
38323
38621
  *
38324
38622
  * @param payload - Where the flow came to rest.
38325
38623
  */
38326
38624
  "flow:rest": (payload) => {
38625
+ trailRest(ctx.state.trail, payload.path);
38327
38626
  if (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__) monitorOf().path(payload.path, true);
38328
38627
  },
38329
38628
  /**
@@ -38743,7 +39042,8 @@ function createRendererState(ctx) {
38743
39042
  monitor: createMonitorState(ctx.config.monitor),
38744
39043
  demand: createDemandState(ctx.config.debug.verifyFrames === true),
38745
39044
  kept: createKeptState(ctx.config),
38746
- shots: createShotsState()
39045
+ shots: createShotsState(),
39046
+ trail: createTrailState()
38747
39047
  };
38748
39048
  }
38749
39049
  /**
@@ -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-CUQ-ig2E.mjs";
2
- import { t as createApp } from "./index-DY9NpxeK.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-eIlzV3Jf.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-w-BqXOjQ.mjs";
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-DAwGHTaM.mjs";
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-CCiUwvlp.mjs";
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-CUQ-ig2E.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-B2oay3bJ.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-Cbtr2GAO.mjs";
4
- import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-DY9NpxeK.mjs";
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-CUQ-ig2E.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-Cbtr2GAO.mjs";
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-CUQ-ig2E.mjs";
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-CUQ-ig2E.mjs";
2
- import { t as HeadlessApp } from "./headless-w-BqXOjQ.mjs";
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`,
@@ -11672,7 +11713,7 @@ type SliceFrame = {
11672
11713
  * // `assets` decoded a file of a bundle: it uploads it, then the views of the key draw it.
11673
11714
  * const renderer = ctx.require(rendererPlugin);
11674
11715
  * const bitmap = await createImageBitmap(await (await fetch("/assets/board/cell.png")).blob());
11675
- * const texture = renderer.sync.textures.create(bitmap); // texture.width === bitmap.width
11716
+ * const texture = renderer.sync.textures.create(bitmap); // the renderer owns the bitmap now: never read it again
11676
11717
  * renderer.sync.textures.invalidate(["board.cell"]); // the next pass resolves "board.cell" again
11677
11718
  * ```
11678
11719
  */
@@ -13207,7 +13248,7 @@ type SyncState = {
13207
13248
  */
13208
13249
  viewlessEntries: boolean; /** The pipeline warm-up (F4). */
13209
13250
  warm: WarmState; /** The texture upload queue (F60). */
13210
- upload: UploadState; /** The decoded images waiting to be freed, and how each freed texture is filled again (F189). */
13251
+ upload: UploadState; /** The decoded images waiting to be freed, and the stand-in the freed ones hold (F189). */
13211
13252
  release: ReleaseState; /** The class of the rim-only nine-slice (F59), made at the first hollow view over the loaded Pixi module. */
13212
13253
  hollowClass: HollowClass | undefined;
13213
13254
  /**
@@ -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-CUQ-ig2E.mjs";
2
- import { W as AnimApi, r as UiApi } from "./types-B2oay3bJ.mjs";
3
- import { R as InputApi } from "./types-Cbtr2GAO.mjs";
4
- import { r as Repro } from "./headless-w-BqXOjQ.mjs";
5
- import { i as ControlApp, o as InputOf } from "./types-BelqIB0P.mjs";
6
- import { t as commands } from "./commands-CslgzXLW.mjs";
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-VvIFdrWq.mjs";
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-CeZj5UAg.mjs";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.124",
3
+ "version": "0.15.126",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [