@cyberart-io/engine 0.0.6 → 0.0.7

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/index.d.ts CHANGED
@@ -329,11 +329,16 @@ type AnimationTiming = {
329
329
  deltaSinceLastUpdate: number;
330
330
  deltaSinceLastRender: number;
331
331
  };
332
+ type CartKind = 'render' | 'calculation';
332
333
  type AnimationCart<T = unknown, TFeatureState = undefined> = {
333
334
  getDefaultFeatureState?: (R: Random, dimensionContext: DimensionContext, rawParams: number[], keyboardManager: KeyboardManager, customState?: Partial<T>, pointerManager?: PointerManager, gameManager?: unknown, hostChannel?: HostChannel) => TFeatureState;
334
335
  getDefaultState: (R: Random, dimensionContext: DimensionContext, rawParams: number[], keyboardManager: KeyboardManager, customState?: Partial<T>, pointerManager?: PointerManager, gameManager?: unknown, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => T;
335
336
  update: (R: Random, framesElapsed: number, rawParams: number[], dimensionContext: DimensionContext, state: T, keyboardManager: KeyboardManager, pointerManager?: PointerManager, gameManager?: unknown, timing?: AnimationTiming, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => T;
336
- render: (R: Random, framesElapsed: number, rawParams: number[], dimensionContext: DimensionContext, state: T, drawingContext: CanvasRenderingContext2D, imageData: ImageData, pointerManager?: PointerManager, gameManager?: unknown, timing?: AnimationTiming, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => void;
337
+ /**
338
+ * Draw into the 2D context. Optional on calculation carts (`kind:
339
+ * 'calculation'`); the runtime does not call it and does not create a canvas.
340
+ */
341
+ render?: (R: Random, framesElapsed: number, rawParams: number[], dimensionContext: DimensionContext, state: T, drawingContext: CanvasRenderingContext2D, imageData: ImageData, pointerManager?: PointerManager, gameManager?: unknown, timing?: AnimationTiming, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => void;
337
342
  adjust?: Record<string, {
338
343
  type: 'switch';
339
344
  immediate?: boolean;
@@ -899,6 +904,11 @@ type CreateRuntimeOptions = {
899
904
  * this id does not close Tone for remaining carts.
900
905
  */
901
906
  audioParticipantId?: string;
907
+ /**
908
+ * `'calculation'` skips canvas construction and paint. `getDefaultState`,
909
+ * `update`, and host-channel events still run. Default `'render'`.
910
+ */
911
+ kind?: CartKind;
902
912
  };
903
913
  type MountOptions<T = unknown> = {
904
914
  /** Boot overrides passed as `customState` into `getDefaultState`. Not a live-state replay. */
@@ -977,6 +987,8 @@ type CyberArtRuntime = {
977
987
  readonly assets: AssetPreloader | undefined;
978
988
  /** Shared broker when `createRuntime({ audioBroker })` was set. */
979
989
  readonly audioBroker: AudioBroker | undefined;
990
+ /** `'render'` (default) or `'calculation'` (no canvas / paint). */
991
+ readonly kind: CartKind;
980
992
  onError?: (error: unknown, info: FrameErrorInfo) => void;
981
993
  };
982
994
  declare function createRuntime(options: CreateRuntimeOptions): CyberArtRuntime;
@@ -1561,6 +1573,8 @@ declare const CAPABILITY_BLEND_MODES: readonly ["source-over", "screen"];
1561
1573
  type CapabilityBlendMode = (typeof CAPABILITY_BLEND_MODES)[number];
1562
1574
  declare const CAPABILITY_CLEAR_POLICIES: readonly ["transparent", "opaque"];
1563
1575
  type CapabilityClearPolicy = (typeof CAPABILITY_CLEAR_POLICIES)[number];
1576
+ declare const CAPABILITY_CART_KINDS: readonly ["render", "calculation"];
1577
+ type CapabilityCartKind = (typeof CAPABILITY_CART_KINDS)[number];
1564
1578
  type CapabilityDiagnostic = {
1565
1579
  code: string;
1566
1580
  detail: string;
@@ -1615,6 +1629,8 @@ type CapabilityManifest = {
1615
1629
  surface?: CapabilitySurfaceRequirements;
1616
1630
  layers?: CapabilityLayerRequirements;
1617
1631
  modules?: CapabilityModuleRequirements;
1632
+ /** Omitted means `'render'`. `'calculation'` carts have no surface. */
1633
+ kind?: CapabilityCartKind;
1618
1634
  };
1619
1635
  type CapabilityManifestInput = {
1620
1636
  version?: number;
@@ -1630,6 +1646,7 @@ type CapabilityManifestInput = {
1630
1646
  surface?: CapabilitySurfaceRequirements;
1631
1647
  layers?: CapabilityLayerRequirements;
1632
1648
  modules?: CapabilityModuleRequirements;
1649
+ kind?: CapabilityCartKind;
1633
1650
  };
1634
1651
  type HostCapabilities = {
1635
1652
  contractVersion: number;
@@ -1643,6 +1660,8 @@ type HostCapabilities = {
1643
1660
  };
1644
1661
  layers?: CapabilityLayerRequirements;
1645
1662
  modules?: CapabilityModuleRequirements;
1663
+ /** Cart kinds this host can run. Omitted: kind is not checked. */
1664
+ kinds?: CapabilityCartKind[];
1646
1665
  };
1647
1666
  type DefineCapabilityManifestResult = {
1648
1667
  ok: true;
@@ -1850,7 +1869,7 @@ declare function parseGeometry(json: string): GeometryDocument;
1850
1869
 
1851
1870
  declare const DEFAULT_GROUP_WIDTH = 320;
1852
1871
  declare const DEFAULT_GROUP_HEIGHT = 180;
1853
- type RuntimeGroupKind = 'render' | 'calculation';
1872
+ type RuntimeGroupKind = CartKind;
1854
1873
  /**
1855
1874
  * Optional capability-shaped attach hints. Explicit participant `emit` /
1856
1875
  * `subscribe` / `authoritative` win. Do not import the capability manifest
@@ -1868,7 +1887,7 @@ type RuntimeGroupFrameError = {
1868
1887
  type RuntimeGroupParticipantConfig<T = unknown> = {
1869
1888
  id: string;
1870
1889
  cart: AnimationCart<T>;
1871
- /** Rendered surface vs calculation cart (still a real `AnimationCart`). */
1890
+ /** Rendered surface vs calculation cart (update + events, no canvas / paint). */
1872
1891
  kind?: RuntimeGroupKind;
1873
1892
  seed?: CreateRuntimeOptions['seed'];
1874
1893
  container?: HTMLElement;
@@ -2079,6 +2098,20 @@ type CompositorBlendMode = (typeof COMPOSITOR_BLEND_MODES)[number];
2079
2098
  declare const COMPOSITOR_CLEAR_POLICIES: readonly ["transparent", "opaque"];
2080
2099
  type CompositorClearPolicy = (typeof COMPOSITOR_CLEAR_POLICIES)[number];
2081
2100
  type CompositorPointerEvents = 'auto' | 'none';
2101
+ declare const COMPOSITOR_SOURCE_KINDS: readonly ["participant", "image", "canvas"];
2102
+ type CompositorSourceKind = (typeof COMPOSITOR_SOURCE_KINDS)[number];
2103
+ type CompositorParticipantSource = {
2104
+ kind: 'participant';
2105
+ };
2106
+ type CompositorImageSource = {
2107
+ kind: 'image';
2108
+ image: ImageData;
2109
+ };
2110
+ type CompositorCanvasSource = {
2111
+ kind: 'canvas';
2112
+ canvas: HTMLCanvasElement;
2113
+ };
2114
+ type CompositorLayerSource = CompositorParticipantSource | CompositorImageSource | CompositorCanvasSource;
2082
2115
  type CompositorClip = {
2083
2116
  x: number;
2084
2117
  y: number;
@@ -2094,6 +2127,11 @@ type CompositorLayerConfig = {
2094
2127
  clip?: CompositorClip;
2095
2128
  pointerEvents?: CompositorPointerEvents;
2096
2129
  clearPolicy?: CompositorClearPolicy;
2130
+ /**
2131
+ * Pixel source. Default `participant` reads the runtime-group canvas.
2132
+ * `image` / `canvas` swap atomically via `setLayer` / `addLayer`.
2133
+ */
2134
+ source?: CompositorLayerSource;
2097
2135
  };
2098
2136
  type CompositorLayerInspect = {
2099
2137
  id: string;
@@ -2104,6 +2142,7 @@ type CompositorLayerInspect = {
2104
2142
  clip: CompositorClip | null;
2105
2143
  pointerEvents: CompositorPointerEvents;
2106
2144
  clearPolicy: CompositorClearPolicy;
2145
+ sourceKind: CompositorSourceKind;
2107
2146
  };
2108
2147
  type CompositorHostOptions = {
2109
2148
  /** Back-layer pixels. Scaled nearest-neighbor to the compositor viewport. */
@@ -2162,6 +2201,7 @@ type Compositor = {
2162
2201
  */
2163
2202
  resize(width: number, height: number, dpr?: number): void;
2164
2203
  setLayer(id: string, patch: Partial<Omit<CompositorLayerConfig, 'id'>>): void;
2204
+ addLayer(config: CompositorLayerConfig): void;
2165
2205
  layer(id: string): CompositorLayerInspect;
2166
2206
  layers(): CompositorLayerInspect[];
2167
2207
  pointerTarget(x: number, y: number): string | undefined;
@@ -2171,6 +2211,171 @@ type Compositor = {
2171
2211
  };
2172
2212
  declare function createCompositor(options: CreateCompositorOptions): Compositor;
2173
2213
 
2214
+ declare const VISUAL_LAYER_SNAPSHOT_SCHEMA_VERSION: 1;
2215
+ declare const VISUAL_LAYER_KINDS: readonly ["layer", "mask", "sprite"];
2216
+ type VisualLayerKind = (typeof VISUAL_LAYER_KINDS)[number];
2217
+ declare const VISUAL_LAYER_TRANSITIONS: readonly ["show", "hide", "replace", "crossfade"];
2218
+ type VisualLayerTransitionKind = (typeof VISUAL_LAYER_TRANSITIONS)[number];
2219
+ declare const VISUAL_LAYER_INCOMING_SUFFIX: ":incoming";
2220
+ declare const VISUAL_LAYER_REVEALED_EVENT: "visual.layer.revealed";
2221
+ declare const VISUAL_LAYER_HIDDEN_EVENT: "visual.layer.hidden";
2222
+ declare const VISUAL_LAYER_TRANSITION_STARTED_EVENT: "visual.layer.transition-started";
2223
+ declare const VISUAL_LAYER_TRANSITION_COMPLETED_EVENT: "visual.layer.transition-completed";
2224
+ declare const VISUAL_LAYER_FAILED_EVENT: "visual.layer.failed";
2225
+ declare const VISUAL_LAYER_EVENTS: readonly ["visual.layer.revealed", "visual.layer.hidden", "visual.layer.transition-started", "visual.layer.transition-completed", "visual.layer.failed"];
2226
+ type VisualLayerEventType = (typeof VISUAL_LAYER_EVENTS)[number];
2227
+ declare const HOST_STATE_ACCEPTED_EVENT: "host.state.accepted";
2228
+ declare const VISUAL_LAYER_FAILURE_CODES: readonly ["asset-failed", "missing-source", "unknown-layer", "unknown-version", "invalid-snapshot"];
2229
+ type VisualLayerFailureCode = (typeof VISUAL_LAYER_FAILURE_CODES)[number];
2230
+ type VisualLayerAssetStatus = 'pending' | 'ready' | 'failed';
2231
+ type VisualLayerFallbackPolicy = 'keep-prior' | 'hide' | {
2232
+ version: string;
2233
+ };
2234
+ type VisualLayerVersionDeclaration = {
2235
+ id: string;
2236
+ assetId: string;
2237
+ provenance?: AssetProvenance;
2238
+ };
2239
+ type VisualLayerDeclaration = {
2240
+ id: string;
2241
+ kind: VisualLayerKind;
2242
+ versions: readonly VisualLayerVersionDeclaration[];
2243
+ initialVersion?: string;
2244
+ compositorLayerId?: string;
2245
+ incomingLayerId?: string;
2246
+ order?: number;
2247
+ blend?: CompositorBlendMode;
2248
+ clip?: CompositorClip;
2249
+ pointerEvents?: CompositorPointerEvents;
2250
+ clearPolicy?: CompositorClearPolicy;
2251
+ fallback?: VisualLayerFallbackPolicy;
2252
+ };
2253
+ type VisualLayerAcceptedBinding = {
2254
+ layerId: string;
2255
+ toVersion: string;
2256
+ kind?: VisualLayerTransitionKind;
2257
+ durationFrames?: number;
2258
+ delayFrames?: number;
2259
+ easing?: CueEasing;
2260
+ idempotencyKey?: string;
2261
+ };
2262
+ type VisualLayerCueSpec = CueSpec & {
2263
+ layerId: string;
2264
+ kind: VisualLayerTransitionKind;
2265
+ toVersion?: string;
2266
+ fromVersion?: string;
2267
+ };
2268
+ type VisualLayerTransitionInspect = {
2269
+ kind: VisualLayerTransitionKind;
2270
+ progress: number;
2271
+ fromVersion: string | null;
2272
+ toVersion: string | null;
2273
+ cueKey: string;
2274
+ startFrame: number;
2275
+ durationFrames: number;
2276
+ delayFrames: number;
2277
+ easing: CueEasing;
2278
+ };
2279
+ type VisualLayerInspect = {
2280
+ id: string;
2281
+ kind: VisualLayerKind;
2282
+ visible: boolean;
2283
+ activeVersion: string | null;
2284
+ pendingVersion: string | null;
2285
+ committedVersion: string | null;
2286
+ opacity: number;
2287
+ order: number;
2288
+ provenance: AssetProvenance | null;
2289
+ overrideVersion: string | null;
2290
+ transition: VisualLayerTransitionInspect | null;
2291
+ };
2292
+ type VisualLayerEvent = {
2293
+ type: VisualLayerEventType;
2294
+ atFrame: number;
2295
+ layerId: string;
2296
+ version?: string;
2297
+ kind?: VisualLayerTransitionKind;
2298
+ progress: number;
2299
+ code?: VisualLayerFailureCode;
2300
+ };
2301
+ type VisualLayerDiagnostic = {
2302
+ code: VisualLayerFailureCode;
2303
+ layerId: string;
2304
+ version?: string;
2305
+ assetId?: string;
2306
+ message: string;
2307
+ atFrame: number;
2308
+ failure?: AssetFailure;
2309
+ };
2310
+ type VisualLayerSnapshotRow = {
2311
+ id: string;
2312
+ kind: VisualLayerKind;
2313
+ visible: boolean;
2314
+ committedVersion: string | null;
2315
+ pendingVersion: string | null;
2316
+ activeVersion: string | null;
2317
+ opacity: number;
2318
+ order: number;
2319
+ overrideVersion: string | null;
2320
+ provenance: AssetProvenance | null;
2321
+ fallback: VisualLayerFallbackPolicy;
2322
+ transition: VisualLayerTransitionInspect | null;
2323
+ };
2324
+ type VisualLayerControllerSnapshot = {
2325
+ schemaVersion: typeof VISUAL_LAYER_SNAPSHOT_SCHEMA_VERSION;
2326
+ frame: number;
2327
+ sceneId: string | null;
2328
+ reducedMotion: boolean;
2329
+ layers: VisualLayerSnapshotRow[];
2330
+ assets: Record<string, VisualLayerAssetStatus>;
2331
+ events: VisualLayerEvent[];
2332
+ diagnostics: VisualLayerDiagnostic[];
2333
+ };
2334
+ type PlayVisualLayerResult = PlayCueResult;
2335
+ type RestoreVisualLayerResult = {
2336
+ ok: true;
2337
+ snapshot: VisualLayerControllerSnapshot;
2338
+ } | {
2339
+ ok: false;
2340
+ errors: VisualLayerDiagnostic[];
2341
+ };
2342
+ type CreateVisualLayerControllerOptions = {
2343
+ compositor: Compositor;
2344
+ layers: readonly VisualLayerDeclaration[];
2345
+ preloader?: AssetPreloader;
2346
+ originFrame?: number;
2347
+ reducedMotion?: boolean;
2348
+ sceneId?: string;
2349
+ fallback?: VisualLayerFallbackPolicy;
2350
+ onAccepted?: readonly VisualLayerAcceptedBinding[];
2351
+ dispatch?: (event: HostEvent) => void;
2352
+ };
2353
+ type VisualLayerController = {
2354
+ registerSource(assetId: string, source: ImageData | HTMLCanvasElement): void;
2355
+ handleHostEvent(event: HostEvent): void;
2356
+ override(layerId: string, version: string | null): void;
2357
+ play(spec: VisualLayerCueSpec): PlayVisualLayerResult;
2358
+ step(frames?: number): VisualLayerEvent[];
2359
+ snapshot(): VisualLayerControllerSnapshot;
2360
+ restore(input: unknown): RestoreVisualLayerResult;
2361
+ inspect(): VisualLayerInspect[];
2362
+ captureComposedFrame(): ComposedFrame;
2363
+ destroy(): void;
2364
+ readonly frame: number;
2365
+ readonly sceneId: string | null;
2366
+ readonly compositor: Compositor;
2367
+ };
2368
+ type VisualLayerCapture = {
2369
+ frame: ComposedFrame;
2370
+ layers: VisualLayerInspect[];
2371
+ };
2372
+ declare function isVisualLayerKind(value: unknown): value is VisualLayerKind;
2373
+ declare function isVisualLayerTransitionKind(value: unknown): value is VisualLayerTransitionKind;
2374
+ declare function isVisualLayerEventType(value: unknown): value is VisualLayerEventType;
2375
+ declare function visualIncomingLayerId(layerId: string): string;
2376
+ declare function captureVisualLayers(controller: VisualLayerController): VisualLayerCapture;
2377
+ declare function createVisualLayerController(options: CreateVisualLayerControllerOptions): VisualLayerController;
2378
+
2174
2379
  /**
2175
2380
  * Copyright (c) 2026 Aaron Boyarsky
2176
2381
  * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
@@ -2619,4 +2824,4 @@ declare class MidiManager {
2619
2824
  private detachHardware;
2620
2825
  }
2621
2826
 
2622
- export { ANCHOR_ORIGINS, ASSET_FAILED_EVENT, ASSET_FAILURE_CODES, ASSET_KINDS, ASSET_READY_EVENT, AUDIO_CUE_EVENTS, AUDIO_CUE_FAILED_EVENT, AUDIO_CUE_SCHEDULED_EVENT, AUDIO_CUE_SKIPPED_EVENT, AUDIO_CUE_STARTED_EVENT, type ActiveAudioCue, type AnchorOrigin, type AnimationCart, type AnimationTiming, type AppliedAction, type ApplySnapshotMigrationsResult, type AssetCorsMode, type AssetDeclaration, type AssetFailure, type AssetFailureCode, type AssetItemStatus, type AssetKind, type AssetPreloadSnapshot, type AssetPreloader, type AssetProvenance, type AssetResolveRequest, type AssetResolver, type AssetRuntimeOptions, type AttachOptions, type AttachPresentationAdapterOptions, type AudioAssetStatus, type AudioBroker, type AudioBrokerInspect, type AudioBrokerListener, type AudioBrokerNotice, type AudioChannelInspect, type AudioCueEvent, type AudioCueEventType, type AudioCueFailReason, type AudioCueReason, type AudioCueSkipReason, type AudioCueSpec, type AudioCueTimeline, type AudioCueTimelineSnapshot, type AudioCueView, type AudioLibraryId, type AudioLibrarySpec, type AudioUnlockState, type AudioUnlockStatus, type BoundReplaySession, type BrowserA11ySnapshot, type BrowserCompositorConfig, type BrowserHarness, type BrowserHarnessAction, type BrowserHarnessInspect, type BrowserHarnessMountContext, type BrowserHarnessRuntimeContext, type BrowserHarnessScreenshot, type BrowserHostSession, type BrowserInputModality, type BrowserReproductionMetadata, type BrowserViewport, CAPABILITY_ASSET_KINDS, CAPABILITY_BLEND_MODES, CAPABILITY_CLEAR_POLICIES, CAPABILITY_INTEGRATIONS, CAPABILITY_MANAGERS, CAPABILITY_MANIFEST_VERSION, CAPABILITY_PHASES, COMPOSITOR_BLEND_MODES, COMPOSITOR_CLEAR_POLICIES, COORDINATE_SPACES, CUE_CANCELLED_EVENT, CUE_COMPLETED_EVENT, CUE_LIFECYCLE_EVENTS, CUE_REPLACED_EVENT, CUE_STARTED_EVENT, CYBERART_CANVAS_ATTR, type CapabilityAssetDeclarationSummary, type CapabilityAssetKind, type CapabilityAssetSummary, type CapabilityBlendMode, type CapabilityClearPolicy, type CapabilityDiagnostic, type CapabilityIntegration, type CapabilityLayerRequirements, type CapabilityManager, type CapabilityManifest, type CapabilityManifestInput, type CapabilityModuleRef, type CapabilityModuleRequirements, type CapabilityPermissions, type CapabilityPhase, type CapabilityRuntime, type CapabilitySurfaceRequirements, type CartHandle, type CartSnapshot, type CartStateBundle, type CartStateHotkeyOptions, type CartStateMessageHandler, type CartStatePersister, type CausationTreeNode, type Clock, type ClockSnapshot, type ComposedFrame, type Compositor, type CompositorBlendMode, type CompositorClearPolicy, type CompositorClip, type CompositorHostOptions, type CompositorInspect, type CompositorLayerConfig, type CompositorLayerInspect, type CompositorPointerEvents, type ContractDiagnostic, type ContractFieldType, type ContractRegistry, type CoordinateSpace, type CreateAssetPreloaderOptions, type CreateAudioBrokerOptions, type CreateAudioCueTimelineOptions, type CreateBrowserHarnessOptions, type CreateCompositorOptions, type CreateExecutableModuleHostOptions, type CreatePresentationLayoutInput, type CreatePresentationTimelineOptions, type CreateReplayInspectorOptions, type CreateRuntimeGroupOptions, type CreateRuntimeOptions, type CueDuplicatePolicy, type CueEasing, type CueLifecycleEvent, type CueLifecycleType, type CuePhase, type CueReducedMotionPolicy, type CueRepeatPolicy, type CueSpec, type CueTimelineSnapshot, type CueView, type CyberArtRuntime, DEFAULT_BROWSER_VIEWPORT, DEFAULT_DUCK_GAIN, DEFAULT_GROUP_HEIGHT, DEFAULT_GROUP_WIDTH, DEFAULT_MAX_HOPS, DEFAULT_MAX_INSPECTOR_RECORDS, type DebugDrawCall, type DefineCapabilityManifestResult, type DefineContractResult, type DefineSnapshotResult, type DeterministicRuntimeOptions, type DimensionContext, ENGINE_SNAPSHOT_RUNTIME, EVENT_ENVELOPE_VERSION, EXECUTABLE_MODULE_ERROR_CODES, type EventContract, type EventContractManifest, type EventEnvelope, type EventInput, type EventKind, type EventRouter, type EventRouterOptions, type ExecutableModuleCapabilities, type ExecutableModuleDiagnostic, type ExecutableModuleError, type ExecutableModuleErrorCode, type ExecutableModuleFactory, type ExecutableModuleHost, type ExecutableModuleHostInspect, type ExecutableModuleInstance, type ExecutableModuleInvokeContext, type ExecutableModuleInvokeResult, type ExecutableModuleLimits, type ExecutableModuleLoadResult, type ExecutableModuleRef, type ExecutableModuleRegistration, type ExportSnapshotOptions, type FixtureAssetCatalog, type FixtureAssetRecord, type FrameErrorInfo, GEOMETRY_CONTRACT_VERSION, type GeometryAnchor, type GeometryDebugContext, type GeometryDiagnostic, type GeometryDocument, type GeometryHitbox, type GeometryPadding, type GeometrySafeArea, type GeometryValidation, type HeadlessAudioAdapter, type HostCapabilities, HostChannel, type HostEvent, type HostEventListener, type HostedAssetResolverOptions, INVALID_PRESENTATION_MODEL_MESSAGE, type ImportCartStateExtras, IncompatibleCartStateError, type InferredPayload, type InspectorRecord, KeyboardManager, LEGACY_SNAPSHOT_SCHEMA_VERSION, type LandmarkRegisterResult, type LandmarkRegistry, type LegacySnapshot, MIDI_CHANNEL_MAX, MIDI_CHANNEL_MIN, MIDI_CONTROL_CHANGE, MIDI_DATA_MAX, MIDI_NOTE_OFF, MIDI_NOTE_ON, MIDI_PITCH_BEND, MIDI_PITCH_CENTER, MIDI_PITCH_MAX, type MidiAccessFailureReason, type MidiAccessLike, type MidiAccessResult, type MidiCcMessage, type MidiChannel, type MidiInjectInput, type MidiInputLike, MidiManager, type MidiManagerOptions, type MidiMessage, type MidiNoteMessage, type MidiOutputPort, type MidiPitchMessage, type MidiRawMessage, type MidiRequestAccess, type MidiSendFailureReason, type MidiSendResult, type MidiStatusByte, type MidiSubscribeKind, type MidiSubscribeListener, type MidiVoiceInput, type MountOptions, type MountPresentationAdapterOptions, type NormalizeContext, type NormalizeResult, type NormalizedPoint, type NormalizedPolygon, type NormalizedRect, PRESENTATION_ADAPTER_VERSION, PRESENTATION_MODEL_EVENT, PRESENTATION_PHASES, PRESENTATION_SUBSCRIBE_PATTERNS, PRESENTATION_UNSUPPORTED_EVENT, type ParseSnapshotResult, type PayloadFieldSpec, type PayloadSchema, type PayloadValidation, type PixelPoint, type PixelRect, type PlayAudioCueResult, type PlayCueResult, type PlaywrightCompatibleAdapter, type PlaywrightCompatibleViewport, type PointerClick, PointerManager, type PointerSpace, type PresentationAdapter, type PresentationAdapterTarget, type PresentationCartState, type PresentationFitMode, type PresentationLayout, type PresentationModel, type PresentationPhase, type PresentationRegion, type PresentationTimeline, type PresentationView, type PublishExtras, REDACTED_VALUE, REJECTED_EVENT_TYPE, REPLAY_INSPECTOR_SCHEMA_VERSION, ROUND_TRIP_TOLERANCE, ROUND_TRIP_TOLERANCE_CANVAS_PX, Random, type RandomState, type RejectionPayload, type RejectionReason, type ReplayCompareResult, type ReplayInspector, type ReplayInspectorExport, type ReplayInspectorReport, type ReplayMetadata, type ReplayParticipantSummary, type ReplayTapeAction, type ReplayTraceFilter, type ResolveImportableCartStateResult, type ResolvedAsset, type RouterDecision, type RouterDecisionOutcome, type RouterDecisionReason, type RouterParticipantInspect, type RuntimeGroup, type RuntimeGroupCapability, type RuntimeGroupDiagnostics, type RuntimeGroupFrameError, type RuntimeGroupInspect, type RuntimeGroupKind, type RuntimeGroupParticipantConfig, type RuntimeGroupParticipantHandle, type RuntimeGroupParticipantInspect, SILENT_ASSET_FALLBACK_REF, SNAPSHOT_SCHEMA_VERSION, type SchemaCompatibility, type ScriptedAction, type SnapshotAssetRef, type SnapshotCartRef, type SnapshotClock, type SnapshotDiagnostic, type SnapshotEnvelope, type SnapshotEnvelopeInput, type SnapshotIntegrity, type SnapshotMigration, type SnapshotMigrationRegistry, type SnapshotModuleRef, type SnapshotProvenance, type TokenData, UNVERSIONED_CART_VERSION, type ValidateCapabilityManifestResult, type ValidateResult, type ValidateSnapshotResult, type VersionedSnapshot, type VirtualClock, applyCueEasing, applySnapshotMigrations, assetStatusEvent, assetToNormalized, attachCartStatePersistence, attachPresentationAdapter, canonicalizeSeed, canvasToCss, canvasToNormalized, toJSON as capabilityManifestToJSON, cloneSnapshotJson, comparePayloadSchemas, compareReplayTraces, createAssetFailure, createAssetPreloader, createAudioBroker, createAudioCueTimeline, createBrowserHarness, createCompositor, createContractRegistry, createEngineSnapshotMigrations, createEventRouter, createExecutableModuleHost, createFixtureAssetResolver, createHeadlessAudioAdapter, createHostedAssetResolver, createLandmarkRegistry, createPlaywrightCompatibleAdapter, createPresentationLayout, createPresentationModelEvent, createPresentationTimeline, createReferencePresentationCart, createReplayInspector, createRuntime, createRuntimeGroup, createSnapshotMigrationRegistry, createVirtualClock, createWallClock, cssToCanvas, cssToNormalized, defaultSnapshotMigrationRegistry, defineCapabilityManifest, defineDiagnostic, defineIntent, defineSnapshot, defineStateEvent, deriveAttachOptions, describeReplayMismatch, detectSnapshotSchemaVersion, drawGeometryDebug, encodeMidiMessage, engineStateFromEnvelope, familyPatternForType, inferEventKind, isAssetFailure, isAssetFailureCode, isAssetKind, isAudioCueEventType, isCueLifecycleType, isLegacyCartStateBundle, isMidiChannel, isMidiData, isPresentationModel, isPresentationPhase, isSnapshotEnvelope, isVersionedSnapshot, kindSegmentInType, matchEventPattern, midiChannelFromStatus, midiStatus, mountPresentationAdapter, normalizeEvent, normalizedToAsset, normalizedToCanvas, normalizedToCss, parseCapabilityManifest, parseGeometry, parseMidiBytes, parseSnapshot, pointFromOrigin, pointerToRegion, rectToCanvas, rectToCss, regionToViewport, registerCartStateHotkeys, replayExportedTrace, resolveImportableCartState, resolveRuntimeSeed, restoreSnapshotFromUnknown, rewriteHostedAssetRef, scheduleAudioCue, serializeGeometry, snapshotErrorsToMessage, snapshotFromCartBundle, validateCapabilityManifest, validateGeometry, validateSnapshot, verifyAttachOptions };
2827
+ export { ANCHOR_ORIGINS, ASSET_FAILED_EVENT, ASSET_FAILURE_CODES, ASSET_KINDS, ASSET_READY_EVENT, AUDIO_CUE_EVENTS, AUDIO_CUE_FAILED_EVENT, AUDIO_CUE_SCHEDULED_EVENT, AUDIO_CUE_SKIPPED_EVENT, AUDIO_CUE_STARTED_EVENT, type ActiveAudioCue, type AnchorOrigin, type AnimationCart, type AnimationTiming, type AppliedAction, type ApplySnapshotMigrationsResult, type AssetCorsMode, type AssetDeclaration, type AssetFailure, type AssetFailureCode, type AssetItemStatus, type AssetKind, type AssetPreloadSnapshot, type AssetPreloader, type AssetProvenance, type AssetResolveRequest, type AssetResolver, type AssetRuntimeOptions, type AttachOptions, type AttachPresentationAdapterOptions, type AudioAssetStatus, type AudioBroker, type AudioBrokerInspect, type AudioBrokerListener, type AudioBrokerNotice, type AudioChannelInspect, type AudioCueEvent, type AudioCueEventType, type AudioCueFailReason, type AudioCueReason, type AudioCueSkipReason, type AudioCueSpec, type AudioCueTimeline, type AudioCueTimelineSnapshot, type AudioCueView, type AudioLibraryId, type AudioLibrarySpec, type AudioUnlockState, type AudioUnlockStatus, type BoundReplaySession, type BrowserA11ySnapshot, type BrowserCompositorConfig, type BrowserHarness, type BrowserHarnessAction, type BrowserHarnessInspect, type BrowserHarnessMountContext, type BrowserHarnessRuntimeContext, type BrowserHarnessScreenshot, type BrowserHostSession, type BrowserInputModality, type BrowserReproductionMetadata, type BrowserViewport, CAPABILITY_ASSET_KINDS, CAPABILITY_BLEND_MODES, CAPABILITY_CART_KINDS, CAPABILITY_CLEAR_POLICIES, CAPABILITY_INTEGRATIONS, CAPABILITY_MANAGERS, CAPABILITY_MANIFEST_VERSION, CAPABILITY_PHASES, COMPOSITOR_BLEND_MODES, COMPOSITOR_CLEAR_POLICIES, COMPOSITOR_SOURCE_KINDS, COORDINATE_SPACES, CUE_CANCELLED_EVENT, CUE_COMPLETED_EVENT, CUE_LIFECYCLE_EVENTS, CUE_REPLACED_EVENT, CUE_STARTED_EVENT, CYBERART_CANVAS_ATTR, type CapabilityAssetDeclarationSummary, type CapabilityAssetKind, type CapabilityAssetSummary, type CapabilityBlendMode, type CapabilityCartKind, type CapabilityClearPolicy, type CapabilityDiagnostic, type CapabilityIntegration, type CapabilityLayerRequirements, type CapabilityManager, type CapabilityManifest, type CapabilityManifestInput, type CapabilityModuleRef, type CapabilityModuleRequirements, type CapabilityPermissions, type CapabilityPhase, type CapabilityRuntime, type CapabilitySurfaceRequirements, type CartHandle, type CartKind, type CartSnapshot, type CartStateBundle, type CartStateHotkeyOptions, type CartStateMessageHandler, type CartStatePersister, type CausationTreeNode, type Clock, type ClockSnapshot, type ComposedFrame, type Compositor, type CompositorBlendMode, type CompositorCanvasSource, type CompositorClearPolicy, type CompositorClip, type CompositorHostOptions, type CompositorImageSource, type CompositorInspect, type CompositorLayerConfig, type CompositorLayerInspect, type CompositorLayerSource, type CompositorParticipantSource, type CompositorPointerEvents, type CompositorSourceKind, type ContractDiagnostic, type ContractFieldType, type ContractRegistry, type CoordinateSpace, type CreateAssetPreloaderOptions, type CreateAudioBrokerOptions, type CreateAudioCueTimelineOptions, type CreateBrowserHarnessOptions, type CreateCompositorOptions, type CreateExecutableModuleHostOptions, type CreatePresentationLayoutInput, type CreatePresentationTimelineOptions, type CreateReplayInspectorOptions, type CreateRuntimeGroupOptions, type CreateRuntimeOptions, type CreateVisualLayerControllerOptions, type CueDuplicatePolicy, type CueEasing, type CueLifecycleEvent, type CueLifecycleType, type CuePhase, type CueReducedMotionPolicy, type CueRepeatPolicy, type CueSpec, type CueTimelineSnapshot, type CueView, type CyberArtRuntime, DEFAULT_BROWSER_VIEWPORT, DEFAULT_DUCK_GAIN, DEFAULT_GROUP_HEIGHT, DEFAULT_GROUP_WIDTH, DEFAULT_MAX_HOPS, DEFAULT_MAX_INSPECTOR_RECORDS, type DebugDrawCall, type DefineCapabilityManifestResult, type DefineContractResult, type DefineSnapshotResult, type DeterministicRuntimeOptions, type DimensionContext, ENGINE_SNAPSHOT_RUNTIME, EVENT_ENVELOPE_VERSION, EXECUTABLE_MODULE_ERROR_CODES, type EventContract, type EventContractManifest, type EventEnvelope, type EventInput, type EventKind, type EventRouter, type EventRouterOptions, type ExecutableModuleCapabilities, type ExecutableModuleDiagnostic, type ExecutableModuleError, type ExecutableModuleErrorCode, type ExecutableModuleFactory, type ExecutableModuleHost, type ExecutableModuleHostInspect, type ExecutableModuleInstance, type ExecutableModuleInvokeContext, type ExecutableModuleInvokeResult, type ExecutableModuleLimits, type ExecutableModuleLoadResult, type ExecutableModuleRef, type ExecutableModuleRegistration, type ExportSnapshotOptions, type FixtureAssetCatalog, type FixtureAssetRecord, type FrameErrorInfo, GEOMETRY_CONTRACT_VERSION, type GeometryAnchor, type GeometryDebugContext, type GeometryDiagnostic, type GeometryDocument, type GeometryHitbox, type GeometryPadding, type GeometrySafeArea, type GeometryValidation, HOST_STATE_ACCEPTED_EVENT, type HeadlessAudioAdapter, type HostCapabilities, HostChannel, type HostEvent, type HostEventListener, type HostedAssetResolverOptions, INVALID_PRESENTATION_MODEL_MESSAGE, type ImportCartStateExtras, IncompatibleCartStateError, type InferredPayload, type InspectorRecord, KeyboardManager, LEGACY_SNAPSHOT_SCHEMA_VERSION, type LandmarkRegisterResult, type LandmarkRegistry, type LegacySnapshot, MIDI_CHANNEL_MAX, MIDI_CHANNEL_MIN, MIDI_CONTROL_CHANGE, MIDI_DATA_MAX, MIDI_NOTE_OFF, MIDI_NOTE_ON, MIDI_PITCH_BEND, MIDI_PITCH_CENTER, MIDI_PITCH_MAX, type MidiAccessFailureReason, type MidiAccessLike, type MidiAccessResult, type MidiCcMessage, type MidiChannel, type MidiInjectInput, type MidiInputLike, MidiManager, type MidiManagerOptions, type MidiMessage, type MidiNoteMessage, type MidiOutputPort, type MidiPitchMessage, type MidiRawMessage, type MidiRequestAccess, type MidiSendFailureReason, type MidiSendResult, type MidiStatusByte, type MidiSubscribeKind, type MidiSubscribeListener, type MidiVoiceInput, type MountOptions, type MountPresentationAdapterOptions, type NormalizeContext, type NormalizeResult, type NormalizedPoint, type NormalizedPolygon, type NormalizedRect, PRESENTATION_ADAPTER_VERSION, PRESENTATION_MODEL_EVENT, PRESENTATION_PHASES, PRESENTATION_SUBSCRIBE_PATTERNS, PRESENTATION_UNSUPPORTED_EVENT, type ParseSnapshotResult, type PayloadFieldSpec, type PayloadSchema, type PayloadValidation, type PixelPoint, type PixelRect, type PlayAudioCueResult, type PlayCueResult, type PlayVisualLayerResult, type PlaywrightCompatibleAdapter, type PlaywrightCompatibleViewport, type PointerClick, PointerManager, type PointerSpace, type PresentationAdapter, type PresentationAdapterTarget, type PresentationCartState, type PresentationFitMode, type PresentationLayout, type PresentationModel, type PresentationPhase, type PresentationRegion, type PresentationTimeline, type PresentationView, type PublishExtras, REDACTED_VALUE, REJECTED_EVENT_TYPE, REPLAY_INSPECTOR_SCHEMA_VERSION, ROUND_TRIP_TOLERANCE, ROUND_TRIP_TOLERANCE_CANVAS_PX, Random, type RandomState, type RejectionPayload, type RejectionReason, type ReplayCompareResult, type ReplayInspector, type ReplayInspectorExport, type ReplayInspectorReport, type ReplayMetadata, type ReplayParticipantSummary, type ReplayTapeAction, type ReplayTraceFilter, type ResolveImportableCartStateResult, type ResolvedAsset, type RestoreVisualLayerResult, type RouterDecision, type RouterDecisionOutcome, type RouterDecisionReason, type RouterParticipantInspect, type RuntimeGroup, type RuntimeGroupCapability, type RuntimeGroupDiagnostics, type RuntimeGroupFrameError, type RuntimeGroupInspect, type RuntimeGroupKind, type RuntimeGroupParticipantConfig, type RuntimeGroupParticipantHandle, type RuntimeGroupParticipantInspect, SILENT_ASSET_FALLBACK_REF, SNAPSHOT_SCHEMA_VERSION, type SchemaCompatibility, type ScriptedAction, type SnapshotAssetRef, type SnapshotCartRef, type SnapshotClock, type SnapshotDiagnostic, type SnapshotEnvelope, type SnapshotEnvelopeInput, type SnapshotIntegrity, type SnapshotMigration, type SnapshotMigrationRegistry, type SnapshotModuleRef, type SnapshotProvenance, type TokenData, UNVERSIONED_CART_VERSION, VISUAL_LAYER_EVENTS, VISUAL_LAYER_FAILED_EVENT, VISUAL_LAYER_FAILURE_CODES, VISUAL_LAYER_HIDDEN_EVENT, VISUAL_LAYER_INCOMING_SUFFIX, VISUAL_LAYER_KINDS, VISUAL_LAYER_REVEALED_EVENT, VISUAL_LAYER_SNAPSHOT_SCHEMA_VERSION, VISUAL_LAYER_TRANSITIONS, VISUAL_LAYER_TRANSITION_COMPLETED_EVENT, VISUAL_LAYER_TRANSITION_STARTED_EVENT, type ValidateCapabilityManifestResult, type ValidateResult, type ValidateSnapshotResult, type VersionedSnapshot, type VirtualClock, type VisualLayerAcceptedBinding, type VisualLayerAssetStatus, type VisualLayerCapture, type VisualLayerController, type VisualLayerControllerSnapshot, type VisualLayerCueSpec, type VisualLayerDeclaration, type VisualLayerDiagnostic, type VisualLayerEvent, type VisualLayerEventType, type VisualLayerFailureCode, type VisualLayerFallbackPolicy, type VisualLayerInspect, type VisualLayerKind, type VisualLayerSnapshotRow, type VisualLayerTransitionInspect, type VisualLayerTransitionKind, type VisualLayerVersionDeclaration, applyCueEasing, applySnapshotMigrations, assetStatusEvent, assetToNormalized, attachCartStatePersistence, attachPresentationAdapter, canonicalizeSeed, canvasToCss, canvasToNormalized, toJSON as capabilityManifestToJSON, captureVisualLayers, cloneSnapshotJson, comparePayloadSchemas, compareReplayTraces, createAssetFailure, createAssetPreloader, createAudioBroker, createAudioCueTimeline, createBrowserHarness, createCompositor, createContractRegistry, createEngineSnapshotMigrations, createEventRouter, createExecutableModuleHost, createFixtureAssetResolver, createHeadlessAudioAdapter, createHostedAssetResolver, createLandmarkRegistry, createPlaywrightCompatibleAdapter, createPresentationLayout, createPresentationModelEvent, createPresentationTimeline, createReferencePresentationCart, createReplayInspector, createRuntime, createRuntimeGroup, createSnapshotMigrationRegistry, createVirtualClock, createVisualLayerController, createWallClock, cssToCanvas, cssToNormalized, defaultSnapshotMigrationRegistry, defineCapabilityManifest, defineDiagnostic, defineIntent, defineSnapshot, defineStateEvent, deriveAttachOptions, describeReplayMismatch, detectSnapshotSchemaVersion, drawGeometryDebug, encodeMidiMessage, engineStateFromEnvelope, familyPatternForType, inferEventKind, isAssetFailure, isAssetFailureCode, isAssetKind, isAudioCueEventType, isCueLifecycleType, isLegacyCartStateBundle, isMidiChannel, isMidiData, isPresentationModel, isPresentationPhase, isSnapshotEnvelope, isVersionedSnapshot, isVisualLayerEventType, isVisualLayerKind, isVisualLayerTransitionKind, kindSegmentInType, matchEventPattern, midiChannelFromStatus, midiStatus, mountPresentationAdapter, normalizeEvent, normalizedToAsset, normalizedToCanvas, normalizedToCss, parseCapabilityManifest, parseGeometry, parseMidiBytes, parseSnapshot, pointFromOrigin, pointerToRegion, rectToCanvas, rectToCss, regionToViewport, registerCartStateHotkeys, replayExportedTrace, resolveImportableCartState, resolveRuntimeSeed, restoreSnapshotFromUnknown, rewriteHostedAssetRef, scheduleAudioCue, serializeGeometry, snapshotErrorsToMessage, snapshotFromCartBundle, validateCapabilityManifest, validateGeometry, validateSnapshot, verifyAttachOptions, visualIncomingLayerId };