A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
refactor(logic): the script-graph API moves to its own subpath
esengine9f8a324bc58d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ab0e678e0..6a9b7eb56 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,11 @@ published separately; it ships inside the editor.### Changed+- **Script graphs are a subpath: `import { … } from 'esengine/logic'`.** Same reason as+ tilemaps below: 65 names re-exported as values put the graph compiler and its node+ library in every package, 23KB in a game with no graph, plus the asset loader the+ registry constructed whether or not a project had an `.esgraph`.+- **Tilemaps are a subpath: `import { Tilemap } from 'esengine/tilemap'`.** `esengine`re-exported 105 tilemap names as values, so every package carried the subsystem behindthem — 44KB of parser and plugin in a game with no tilemap, plus the two asset loadersdiff --git a/desktop b/desktopindex 0d79a110b..3c4a0b283 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 0d79a110bb9e218cc8c378e1f36b3dca0ea495d8+Subproject commit 3c4a0b2837b023f26d03c65bf3cbd395b86c59f1diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.jsonindex e82491618..31b1493b8 100644--- a/docs/astro/src/data/apiStability.generated.json+++ b/docs/astro/src/data/apiStability.generated.json@@ -3,10 +3,10 @@"counts": {"public": 115,"beta": 98,- "experimental": 1899,+ "experimental": 1835,"deprecated": 3},- "total": 2112,+ "total": 2048,"subsystems": [{"id": "ecs",diff --git a/pipeline/src/bundle/esengineResolve.ts b/pipeline/src/bundle/esengineResolve.tsindex 8ba29667a..da4090d01 100644--- a/pipeline/src/bundle/esengineResolve.ts+++ b/pipeline/src/bundle/esengineResolve.ts@@ -25,6 +25,7 @@ export const ESENGINE_EXTERNAL = ['esengine', 'esengine/*'];export const ESENGINE_SUBPATHS: Readonly<Record<string, string>> = {'esengine/spine': 'spine/index.js','esengine/tilemap': 'tilemap/index.js',+ 'esengine/logic': 'logic/index.js','esengine/dragonbones': 'dragonbones/index.js','esengine/physics': 'physics/index.js','esengine/physics3d': 'physics3d/index.js',diff --git a/pipeline/src/export/exportMiniGame.ts b/pipeline/src/export/exportMiniGame.tsindex 42b6b3a77..cb04adbcb 100644--- a/pipeline/src/export/exportMiniGame.ts+++ b/pipeline/src/export/exportMiniGame.ts@@ -468,6 +468,10 @@ export async function exportMiniGame(profile: MiniGameExportProfile, opts: {const CONTENT_SUBPATH: Partial<Record<Subsystem, string>> = {tilemap: 'esengine/tilemap',};+ /** …and the ones a document names by asset rather than by component. */+ const ASSET_SUBPATH: Readonly<Record<string, string>> = {+ '.esgraph': 'esengine/logic',+ };const usedSubsystems = await contentSubsystems(opts.root, cook.includedPaths);const needed = new Set(sideModules.map((m) => m.id));const wantsVideo = needed.has('videodec');@@ -482,6 +486,7 @@ export async function exportMiniGame(profile: MiniGameExportProfile, opts: {? [...new Set([...[...needed].map((id) => (id.startsWith('spine:') ? 'esengine/spine' : OPTIONAL_SUBPATH[id] ?? '')),...[...usedSubsystems.keys()].map((s) => CONTENT_SUBPATH[s] ?? ''),+ ...cook.includedPaths.map((p) => ASSET_SUBPATH[path.extname(p).toLowerCase()] ?? ''),].filter(Boolean))].sort(): [];diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.mdindex 01fb1503a..bb6cda85f 100644--- a/sdk/etc/index.api.md+++ b/sdk/etc/index.api.md@@ -1,7 +1,7 @@# API surface — esengine/index<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 91 beta · 1735 experimental · 3 deprecated+Symbols: 115 public · 91 beta · 1671 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -278,11 +278,6 @@ static new <Ctx = unknown>(): AiRegistry<Ctx>static prototype: AiRegistry<any>```-## AiScriptGraphs — const @experimental-```-ResourceDef<ScriptGraphs>-```-## AiValueSpec — interface @experimental```evaluate: (ctx: Ctx, bb: Blackboard, params: AiParams, out: AiOutputs) => void@@ -1355,11 +1350,6 @@ readonly [{ readonly name: "master"; readonly parent: null; readonly volume: 1;readonly BuiltinMeshTemplate[]```-## BUILTIN_NODE_KINDS — const @experimental-```-readonly string[]-```-## BUILTIN_SHADER_TEMPLATES — const @experimental```readonly BuiltinShaderTemplate[]@@ -2501,24 +2491,6 @@ initial: stringstates: Map<string, FsmState>```-## CompiledScriptGraph — interface @experimental-```-dataSources: Map<string, { node: string; port: string; }>-destroys: string[]-events: Map<string, string[]>-execTargets: Map<string, string>-graph: ScriptGraph-inputNode: string | undefined-nodes: Map<string, ScriptGraphNode>-outputNode: string | undefined-prefabs: Map<string, PreparedPrefab>-problems: string[]-shapes: Map<string, ScriptNodeShape>-starts: string[]-starvedInputs: Map<string, string[]>-updates: string[]-```-## Completable — interface @experimental```cancel: () => void@@ -2782,11 +2754,6 @@ ScreenScalingData{ x: number; y: number; }```-## DEFAULT_STEP_BUDGET — const @experimental-```-4096-```-## DEFAULT_TEXT_CANVAS_SIZE — const @experimental```512@@ -4998,11 +4965,6 @@ Restart = 1"1.0"```-## MAX_CALL_DEPTH — const @experimental-```-16-```-## MAX_POLYGON_VERTICES — const @experimental```8@@ -7612,11 +7574,6 @@ ComponentDef<{}>-1```-## SCRIPT_GRAPH_VERSION — const @experimental-```-"1.0"-```-## SH_BASIS_SCALE — const @experimental```readonly [0.282095, 0.488603, 0.488603, 0.488603, 1.092548, 1.092548, 0.315392, 1.092548, 0.546274]@@ -8027,152 +7984,6 @@ renderPolicy: RenderResolution | undefinedscaleMode: number```-## ScriptFrame — interface @experimental-```-calls: Map<string, ScriptFrame>-produced: Map<string, Record<string, ScriptValue>>-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptGraph — interface @experimental-```-edges: ScriptGraphEdge[]-inputs: ScriptGraphPort[] | undefined-name: string | undefined-nodes: ScriptGraphNode[]-outputs: ScriptGraphPort[] | undefined-variables: ScriptGraphVariable[] | undefined-version: string-```--## ScriptGraphAgent — const @experimental-```-ComponentDef<ScriptGraphAgentData>-```--## ScriptGraphAgentData — interface @experimental-```-graph: string-```--## ScriptGraphEdge — interface @experimental-```-from: string-fromPort: string-id: string-to: string-toPort: string-```--## ScriptGraphNode — interface @experimental-```-id: string-kind: string-literals: Record<string, ScriptValue> | undefined-ref: string | undefined-x: number | undefined-y: number | undefined-```--## ScriptGraphPlugin — class @experimental-```-build: (app: App) => void-name: string-static new (): ScriptGraphPlugin-static prototype: ScriptGraphPlugin-```--## ScriptGraphPort — interface @experimental-```-default: ScriptValue | undefined-label: string | undefined-name: string-type: "string" | "number" | "bool" | "entity" | "any"-```--## ScriptGraphSignature — interface @experimental-```-inputs: readonly ScriptGraphPort[]-outputs: readonly ScriptGraphPort[]-```--## ScriptGraphVariable — interface @experimental-```-default: ScriptValue | undefined-name: string-type: "string" | "number" | "bool" | "entity"-```--## ScriptGraphs — class @experimental-```-blackboard: (entity: Entity) => Blackboard-halted: (entity: Entity) => boolean-setVariable: (entity: Entity, name: string, value: ScriptValue) => void-variable: (entity: Entity, name: string) => ScriptValue-static new (states: Map<Entity, AgentState>): ScriptGraphs-static prototype: ScriptGraphs-```--## ScriptNodeShape — interface @experimental-```-entry: "start" | "update" | "destroy" | "event" | undefined-execIn: boolean-execOut: readonly string[]-inputs: readonly ScriptPort[]-outputs: readonly ScriptPort[]-pure: boolean-```--## ScriptPort — interface @experimental-```-label: string | undefined-name: string-type: ScriptValueType-```--## ScriptRunState — interface @experimental-```-calls: Map<string, ScriptFrame>-halted: boolean-produced: Map<string, Record<string, ScriptValue>>-reported: Set<string>-started: boolean-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptTickContext — interface @experimental-```-bb: Blackboard-budget: number | undefined-ctx: Ctx-dt: number-onProblem: ((message: string) => void) | undefined-registry: AiRegistry<Ctx>-resolveGraph: ((ref: string) => CompiledScriptGraph | undefined) | undefined-world: World | undefined-```--## ScriptValue — type @experimental-```-boolean | number | string | null-```--## ScriptValueType — type @experimental-```-'exec' | 'bool' | 'number' | 'string' | 'entity' | 'any'-```--## ScriptVerbCatalog — interface @experimental-```-getActionOutputs: (name: string) => readonly AiOutputDef[]-getActionParams: (name: string) => readonly AiParamDef[]-graphSignature: (ref: string) => ScriptGraphSignature | null-hasAction: (name: string) => boolean-isActionPure: (name: string) => boolean-```-## ScrollContainer — class @experimental```dispose: () => void@@ -10746,21 +10557,6 @@ TransformData(acc: Pose, layer: Pose, reference: Pose, weight: number, world: PoseWorld, reach: LayerReach | null): void```-## addScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", port: ScriptGraphPort): ScriptGraph-```--## addScriptNode — function @experimental-```-(graph: ScriptGraph, kind: string, x: number, y: number, ref?: string): { graph: ScriptGraph; id: string; }-```--## addScriptVariable — function @experimental-```-(graph: ScriptGraph, variable: ScriptGraphVariable): ScriptGraph-```-## addStartupSystem — function @public```(system: SystemDef): void@@ -11131,16 +10927,6 @@ BtPlugin(module: ESEngineModule): boolean```-## canConnect — function @experimental-```-(from: ScriptValueType, to: ScriptValueType): boolean-```--## canConnectPorts — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): boolean-```-## canHaveChildren — function @experimental```(type: BtNodeType): boolean@@ -11211,11 +10997,6 @@ BtPlugin(): void```-## clearScriptGraphStore — function @experimental-```-(): void-```-## clearUserComponents — function @experimental```(): void@@ -11251,11 +11032,6 @@ BtPlugin(world: World, e: Entity): void```-## coerceValue — function @experimental-```-(value: ScriptValue, type: ScriptValueType): ScriptValue-```-## col — const @experimental```{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }@@ -11341,11 +11117,6 @@ BtPlugin(graph: MaterialGraph): string```-## compileScriptGraph — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog): CompiledScriptGraph-```-## composeTRS — function @experimental```(p: { x: number; y: number; z: number; }, q: { x: number; y: number; z: number; w: number; }, s: { x: number; y: number; z: number; }): number[]@@ -11376,11 +11147,6 @@ BtPlugin(g: MaterialGraph, fromId: string, toId: string, toSlot: string): MaterialGraph```-## connectScriptNodes — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): ScriptGraph-```-## contentHashHex — function @experimental```(data: Uint8Array): string@@ -11501,11 +11267,6 @@ Plugin(name: string, sceneData: SceneData | undefined, options: Omit<LoadRuntimeSceneOptions, "sceneData" | "sceneName">, scenePath?: string): SceneConfig```-## createScriptRunState — function @experimental-```-(compiled: CompiledScriptGraph): ScriptRunState-```-## createScrollView — function @experimental```(opts: ScrollViewOptions): ScrollViewHandle@@ -11591,11 +11352,6 @@ Plugin(vertices: readonly Vec2[]): PolygonDecomposition```-## defaultForType — function @experimental-```-(type: ScriptValueType): ScriptValue-```-## defaultFrameStats — function @experimental```(): FrameStats@@ -11651,11 +11407,6 @@ PluralSelector<T>(sources: ReadonlySignal<unknown>[], compute: () => T): ReadonlySignal<T>```-## describeNode — function @experimental-```-(node: ScriptGraphNode, graph: ScriptGraph, catalog: ScriptVerbCatalog): ScriptNodeShape | null-```-## desiredDirection — function @experimental```(input: { x: number; y: number; }, basis: MoveBasis): Vec3@@ -11666,11 +11417,6 @@ PluralSelector(cells: readonly WorldCell[], sources: readonly ResidencySource[], resident: ReadonlySet<string>): ResidencyDecision```-## destroyScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```-## detectAnchor — function @experimental```(node: UINodeData): AnchorPreset | null@@ -11706,16 +11452,6 @@ DiagnosticsPlugin(g: MaterialGraph, toId: string, toSlot: string): MaterialGraph```-## disconnectScriptExec — function @experimental-```-(graph: ScriptGraph, from: string, fromPort: string): ScriptGraph-```--## disconnectScriptInput — function @experimental-```-(graph: ScriptGraph, to: string, toPort: string): ScriptGraph-```-## discoverSceneAssets — function @experimental```(sceneData: SceneData, refResolver?: RefResolver): SceneAssetRefs@@ -11836,11 +11572,6 @@ DragPlugin(): FsmDefinition```-## emptyScriptGraph — function @experimental-```-(name?: string): ScriptGraph-```-## enableSceneOrigins — function @experimental```(app: App): void@@ -11866,11 +11597,6 @@ DragPlugin(def: BtDefinition): BtDefinition```-## ensureBuiltinScriptNodes — function @experimental-```-(): void-```-## enterStatePath — function @experimental```(scope: AnimatorScope, name: string): string[]@@ -12006,11 +11732,6 @@ EventBindingPlugin(report: DiagnosticReport): string```-## fireScriptGraphEvent — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>, type: string, target: number, other?: number): void-```-## flatSky — function @experimental```(colour: readonly [number, number, number]): SkyRadiance@@ -12246,11 +11967,6 @@ GameplayPlugin(): ResourceStats | null```-## getScriptGraph — function @experimental-```-(key: string): CompiledScriptGraph | undefined-```-## getTheme — function @experimental```(): ThemeTokens@@ -12276,11 +11992,6 @@ GameplayPlugin(): Array<{ type: string; value: string; }>```-## graphCallRef — function @experimental-```-(node: ScriptGraphNode): string-```-## hasPlayableCta — function @experimental```(): boolean@@ -12406,11 +12117,6 @@ InputRouter(ref: string): boolean```-## isCallableGraph — function @experimental-```-(graph: ScriptGraph): boolean-```-## isCustomExtension — function @experimental```(path: string): boolean@@ -12691,11 +12397,6 @@ MeshRendererPlugin(g: MaterialGraph, id: string, x: number, y: number): MaterialGraph```-## moveScriptNode — function @experimental-```-(graph: ScriptGraph, id: string, x: number, y: number): ScriptGraph-```-## moveState — function @experimental```(def: FsmDefinition, name: string, x: number, y: number): FsmDefinition@@ -13196,11 +12897,6 @@ PrefabsPlugin(type: string, codec: SceneComponentCodec): void```-## registerScriptGraph — function @experimental-```-(key: string, graph: ScriptGraph): CompiledScriptGraph-```-## registerSideModule — function @experimental```(id: string, descriptor: SideModuleDescriptor): void@@ -13261,26 +12957,6 @@ PrefabsPlugin(g: MaterialGraph, id: string): MaterialGraph```-## removeScriptEdge — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string): ScriptGraph-```--## removeScriptNode — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptVariable — function @experimental-```-(graph: ScriptGraph, name: string): ScriptGraph-```-## removeState — function @experimental```(def: FsmDefinition, name: string): FsmDefinition@@ -13296,16 +12972,6 @@ PrefabsPlugin(def: AnimatorControllerDef, oldName: string, newName: string, layer?: number): AnimatorControllerDef```-## renameScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", from: string, to: string): ScriptGraph-```--## renameScriptVariable — function @experimental-```-(graph: ScriptGraph, from: string, to: string): ScriptGraph-```-## renameState — function @experimental```(def: FsmDefinition, oldName: string, newName: string): FsmDefinition@@ -13391,11 +13057,6 @@ ReplicationPlugin(world: World, entity: Entity): void```-## retypeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string, type: ScriptGraphPort["type"]): ScriptGraph-```-## rootMotionVelocity — function @experimental```(delta: { x: number; z: number; }, seconds: number): { x: number; z: number; }@@ -13501,31 +13162,6 @@ Plugin(view: EditorViewData): { right: { axis: WorldAxis; sign: number; }; up: { axis: WorldAxis; sign: number; }; }```-## scriptCatalog — function @experimental-```-(verbs: Omit<ScriptVerbCatalog, "graphSignature">, signatures?: ReadonlyMap<string, ScriptGraphSignature>): ScriptVerbCatalog-```--## scriptGraphCallRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphPlugin — const @experimental-```-ScriptGraphPlugin-```--## scriptGraphPrefabRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphTouches — function @experimental-```-(app: App): SystemTouches-```-## selectBlendClip — function @experimental```(blend: AnimatorBlend1D, value: number): AnimatorBlendThreshold@@ -13546,11 +13182,6 @@ ScriptGraphPlugin(observer: Vec3, facing: Vec3, target: Vec3, range: number, halfFov: number, isBlocked?: (from: Vec3, to: Vec3) => boolean): SenseResult```-## sequenceCount — function @experimental-```-(node: ScriptGraphNode): number-```-## serializeAnimClip — function @experimental```(asset: AnimClipAssetData): Record<string, unknown>@@ -13676,11 +13307,6 @@ ServicesPlugin(bytes: number): void```-## setScriptNodeLiteral — function @experimental-```-(graph: ScriptGraph, id: string, port: string, value: ScriptValue): ScriptGraph-```-## setStateHook — function @experimental```(def: FsmDefinition, name: string, hook: "onEnter" | "onUpdate" | "onExit", action: string, arg?: string, params?: Record<string, AiParamValue>): FsmDefinition@@ -13826,11 +13452,6 @@ ServicesPlugin<T>(initial: T): Signal<T>```-## signatureOf — function @experimental-```-(graph: ScriptGraph): ScriptGraphSignature-```-## solveAnimatorIK — function @experimental```(world: World, rigRoot: Entity, pose: Pose, constraints: readonly AnimatorIK[], params: MotionParams, resolveJoint?: JointResolver): void@@ -13891,16 +13512,6 @@ StatsPlugin(world: PerceptionWorldView, isBlocked?: LosCheck): void```-## stepScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```--## stepScriptGraphs — function @experimental-```-(world: ScriptGraphWorldView, commands: CommandsInstance, dt: number, states: Map<Entity, AgentState>, resolveGraph?: (ref: string) => CompiledScriptGraph | undefined, onProblem?: (entity: Entity, message: string) => void, input?: InputState): void-```-## stopNavAgent — function @experimental```(world: World, entity: Entity): voiddiff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.mdindex b39192679..8beccf9dd 100644--- a/sdk/etc/index.native.api.md+++ b/sdk/etc/index.native.api.md@@ -1,7 +1,7 @@# API surface — esengine/index.native<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 96 beta · 1754 experimental · 3 deprecated+Symbols: 115 public · 96 beta · 1690 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -278,11 +278,6 @@ static new <Ctx = unknown>(): AiRegistry<Ctx>static prototype: AiRegistry<any>```-## AiScriptGraphs — const @experimental-```-ResourceDef<ScriptGraphs>-```-## AiValueSpec — interface @experimental```evaluate: (ctx: Ctx, bb: Blackboard, params: AiParams, out: AiOutputs) => void@@ -1355,11 +1350,6 @@ readonly [{ readonly name: "master"; readonly parent: null; readonly volume: 1;readonly BuiltinMeshTemplate[]```-## BUILTIN_NODE_KINDS — const @experimental-```-readonly string[]-```-## BUILTIN_SHADER_TEMPLATES — const @experimental```readonly BuiltinShaderTemplate[]@@ -2501,24 +2491,6 @@ initial: stringstates: Map<string, FsmState>```-## CompiledScriptGraph — interface @experimental-```-dataSources: Map<string, { node: string; port: string; }>-destroys: string[]-events: Map<string, string[]>-execTargets: Map<string, string>-graph: ScriptGraph-inputNode: string | undefined-nodes: Map<string, ScriptGraphNode>-outputNode: string | undefined-prefabs: Map<string, PreparedPrefab>-problems: string[]-shapes: Map<string, ScriptNodeShape>-starts: string[]-starvedInputs: Map<string, string[]>-updates: string[]-```-## Completable — interface @experimental```cancel: () => void@@ -2790,11 +2762,6 @@ ScreenScalingData{ x: number; y: number; }```-## DEFAULT_STEP_BUDGET — const @experimental-```-4096-```-## DEFAULT_TEXT_CANVAS_SIZE — const @experimental```512@@ -5006,11 +4973,6 @@ Restart = 1"1.0"```-## MAX_CALL_DEPTH — const @experimental-```-16-```-## MAX_POLYGON_VERTICES — const @experimental```8@@ -7805,11 +7767,6 @@ ComponentDef<{}>-1```-## SCRIPT_GRAPH_VERSION — const @experimental-```-"1.0"-```-## SH_BASIS_SCALE — const @experimental```readonly [0.282095, 0.488603, 0.488603, 0.488603, 1.092548, 1.092548, 0.315392, 1.092548, 0.546274]@@ -8220,152 +8177,6 @@ renderPolicy: RenderResolution | undefinedscaleMode: number```-## ScriptFrame — interface @experimental-```-calls: Map<string, ScriptFrame>-produced: Map<string, Record<string, ScriptValue>>-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptGraph — interface @experimental-```-edges: ScriptGraphEdge[]-inputs: ScriptGraphPort[] | undefined-name: string | undefined-nodes: ScriptGraphNode[]-outputs: ScriptGraphPort[] | undefined-variables: ScriptGraphVariable[] | undefined-version: string-```--## ScriptGraphAgent — const @experimental-```-ComponentDef<ScriptGraphAgentData>-```--## ScriptGraphAgentData — interface @experimental-```-graph: string-```--## ScriptGraphEdge — interface @experimental-```-from: string-fromPort: string-id: string-to: string-toPort: string-```--## ScriptGraphNode — interface @experimental-```-id: string-kind: string-literals: Record<string, ScriptValue> | undefined-ref: string | undefined-x: number | undefined-y: number | undefined-```--## ScriptGraphPlugin — class @experimental-```-build: (app: App) => void-name: string-static new (): ScriptGraphPlugin-static prototype: ScriptGraphPlugin-```--## ScriptGraphPort — interface @experimental-```-default: ScriptValue | undefined-label: string | undefined-name: string-type: "string" | "number" | "bool" | "entity" | "any"-```--## ScriptGraphSignature — interface @experimental-```-inputs: readonly ScriptGraphPort[]-outputs: readonly ScriptGraphPort[]-```--## ScriptGraphVariable — interface @experimental-```-default: ScriptValue | undefined-name: string-type: "string" | "number" | "bool" | "entity"-```--## ScriptGraphs — class @experimental-```-blackboard: (entity: Entity) => Blackboard-halted: (entity: Entity) => boolean-setVariable: (entity: Entity, name: string, value: ScriptValue) => void-variable: (entity: Entity, name: string) => ScriptValue-static new (states: Map<Entity, AgentState>): ScriptGraphs-static prototype: ScriptGraphs-```--## ScriptNodeShape — interface @experimental-```-entry: "start" | "update" | "destroy" | "event" | undefined-execIn: boolean-execOut: readonly string[]-inputs: readonly ScriptPort[]-outputs: readonly ScriptPort[]-pure: boolean-```--## ScriptPort — interface @experimental-```-label: string | undefined-name: string-type: ScriptValueType-```--## ScriptRunState — interface @experimental-```-calls: Map<string, ScriptFrame>-halted: boolean-produced: Map<string, Record<string, ScriptValue>>-reported: Set<string>-started: boolean-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptTickContext — interface @experimental-```-bb: Blackboard-budget: number | undefined-ctx: Ctx-dt: number-onProblem: ((message: string) => void) | undefined-registry: AiRegistry<Ctx>-resolveGraph: ((ref: string) => CompiledScriptGraph | undefined) | undefined-world: World | undefined-```--## ScriptValue — type @experimental-```-boolean | number | string | null-```--## ScriptValueType — type @experimental-```-'exec' | 'bool' | 'number' | 'string' | 'entity' | 'any'-```--## ScriptVerbCatalog — interface @experimental-```-getActionOutputs: (name: string) => readonly AiOutputDef[]-getActionParams: (name: string) => readonly AiParamDef[]-graphSignature: (ref: string) => ScriptGraphSignature | null-hasAction: (name: string) => boolean-isActionPure: (name: string) => boolean-```-## ScrollContainer — class @experimental```dispose: () => void@@ -10939,21 +10750,6 @@ TransformData(acc: Pose, layer: Pose, reference: Pose, weight: number, world: PoseWorld, reach: LayerReach | null): void```-## addScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", port: ScriptGraphPort): ScriptGraph-```--## addScriptNode — function @experimental-```-(graph: ScriptGraph, kind: string, x: number, y: number, ref?: string): { graph: ScriptGraph; id: string; }-```--## addScriptVariable — function @experimental-```-(graph: ScriptGraph, variable: ScriptGraphVariable): ScriptGraph-```-## addStartupSystem — function @public```(system: SystemDef): void@@ -11339,16 +11135,6 @@ BtPlugin(module: ESEngineModule): boolean```-## canConnect — function @experimental-```-(from: ScriptValueType, to: ScriptValueType): boolean-```--## canConnectPorts — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): boolean-```-## canHaveChildren — function @experimental```(type: BtNodeType): boolean@@ -11419,11 +11205,6 @@ BtPlugin(): void```-## clearScriptGraphStore — function @experimental-```-(): void-```-## clearUserComponents — function @experimental```(): void@@ -11459,11 +11240,6 @@ BtPlugin(world: World, e: Entity): void```-## coerceValue — function @experimental-```-(value: ScriptValue, type: ScriptValueType): ScriptValue-```-## col — const @experimental```{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }@@ -11549,11 +11325,6 @@ BtPlugin(graph: MaterialGraph): string```-## compileScriptGraph — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog): CompiledScriptGraph-```-## composeTRS — function @experimental```(p: { x: number; y: number; z: number; }, q: { x: number; y: number; z: number; w: number; }, s: { x: number; y: number; z: number; }): number[]@@ -11584,11 +11355,6 @@ BtPlugin(g: MaterialGraph, fromId: string, toId: string, toSlot: string): MaterialGraph```-## connectScriptNodes — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): ScriptGraph-```-## contentHashHex — function @experimental```(data: Uint8Array): string@@ -11734,11 +11500,6 @@ Plugin(name: string, sceneData: SceneData | undefined, options: Omit<LoadRuntimeSceneOptions, "sceneData" | "sceneName">, scenePath?: string): SceneConfig```-## createScriptRunState — function @experimental-```-(compiled: CompiledScriptGraph): ScriptRunState-```-## createScrollView — function @experimental```(opts: ScrollViewOptions): ScrollViewHandle@@ -11824,11 +11585,6 @@ Plugin(vertices: readonly Vec2[]): PolygonDecomposition```-## defaultForType — function @experimental-```-(type: ScriptValueType): ScriptValue-```-## defaultFrameStats — function @experimental```(): FrameStats@@ -11884,11 +11640,6 @@ PluralSelector<T>(sources: ReadonlySignal<unknown>[], compute: () => T): ReadonlySignal<T>```-## describeNode — function @experimental-```-(node: ScriptGraphNode, graph: ScriptGraph, catalog: ScriptVerbCatalog): ScriptNodeShape | null-```-## desiredDirection — function @experimental```(input: { x: number; y: number; }, basis: MoveBasis): Vec3@@ -11899,11 +11650,6 @@ PluralSelector(cells: readonly WorldCell[], sources: readonly ResidencySource[], resident: ReadonlySet<string>): ResidencyDecision```-## destroyScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```-## detectAnchor — function @experimental```(node: UINodeData): AnchorPreset | null@@ -11939,16 +11685,6 @@ DiagnosticsPlugin(g: MaterialGraph, toId: string, toSlot: string): MaterialGraph```-## disconnectScriptExec — function @experimental-```-(graph: ScriptGraph, from: string, fromPort: string): ScriptGraph-```--## disconnectScriptInput — function @experimental-```-(graph: ScriptGraph, to: string, toPort: string): ScriptGraph-```-## discoverSceneAssets — function @experimental```(sceneData: SceneData, refResolver?: RefResolver): SceneAssetRefs@@ -12069,11 +11805,6 @@ DragPlugin(): FsmDefinition```-## emptyScriptGraph — function @experimental-```-(name?: string): ScriptGraph-```-## enableSceneOrigins — function @experimental```(app: App): void@@ -12099,11 +11830,6 @@ DragPlugin(def: BtDefinition): BtDefinition```-## ensureBuiltinScriptNodes — function @experimental-```-(): void-```-## enterStatePath — function @experimental```(scope: AnimatorScope, name: string): string[]@@ -12239,11 +11965,6 @@ EventBindingPlugin(report: DiagnosticReport): string```-## fireScriptGraphEvent — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>, type: string, target: number, other?: number): void-```-## flatSky — function @experimental```(colour: readonly [number, number, number]): SkyRadiance@@ -12479,11 +12200,6 @@ GameplayPlugin(): ResourceStats | null```-## getScriptGraph — function @experimental-```-(key: string): CompiledScriptGraph | undefined-```-## getTheme — function @experimental```(): ThemeTokens@@ -12509,11 +12225,6 @@ GameplayPlugin(): Array<{ type: string; value: string; }>```-## graphCallRef — function @experimental-```-(node: ScriptGraphNode): string-```-## hasPlayableCta — function @experimental```(): boolean@@ -12649,11 +12360,6 @@ InputRouter(ref: string): boolean```-## isCallableGraph — function @experimental-```-(graph: ScriptGraph): boolean-```-## isCustomExtension — function @experimental```(path: string): boolean@@ -12934,11 +12640,6 @@ MeshRendererPlugin(g: MaterialGraph, id: string, x: number, y: number): MaterialGraph```-## moveScriptNode — function @experimental-```-(graph: ScriptGraph, id: string, x: number, y: number): ScriptGraph-```-## moveState — function @experimental```(def: FsmDefinition, name: string, x: number, y: number): FsmDefinition@@ -13439,11 +13140,6 @@ PrefabsPlugin(type: string, codec: SceneComponentCodec): void```-## registerScriptGraph — function @experimental-```-(key: string, graph: ScriptGraph): CompiledScriptGraph-```-## registerSideModule — function @experimental```(id: string, descriptor: SideModuleDescriptor): void@@ -13504,26 +13200,6 @@ PrefabsPlugin(g: MaterialGraph, id: string): MaterialGraph```-## removeScriptEdge — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string): ScriptGraph-```--## removeScriptNode — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptVariable — function @experimental-```-(graph: ScriptGraph, name: string): ScriptGraph-```-## removeState — function @experimental```(def: FsmDefinition, name: string): FsmDefinition@@ -13539,16 +13215,6 @@ PrefabsPlugin(def: AnimatorControllerDef, oldName: string, newName: string, layer?: number): AnimatorControllerDef```-## renameScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", from: string, to: string): ScriptGraph-```--## renameScriptVariable — function @experimental-```-(graph: ScriptGraph, from: string, to: string): ScriptGraph-```-## renameState — function @experimental```(def: FsmDefinition, oldName: string, newName: string): FsmDefinition@@ -13634,11 +13300,6 @@ ReplicationPlugin(world: World, entity: Entity): void```-## retypeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string, type: ScriptGraphPort["type"]): ScriptGraph-```-## rootMotionVelocity — function @experimental```(delta: { x: number; z: number; }, seconds: number): { x: number; z: number; }@@ -13744,31 +13405,6 @@ Plugin(view: EditorViewData): { right: { axis: WorldAxis; sign: number; }; up: { axis: WorldAxis; sign: number; }; }```-## scriptCatalog — function @experimental-```-(verbs: Omit<ScriptVerbCatalog, "graphSignature">, signatures?: ReadonlyMap<string, ScriptGraphSignature>): ScriptVerbCatalog-```--## scriptGraphCallRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphPlugin — const @experimental-```-ScriptGraphPlugin-```--## scriptGraphPrefabRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphTouches — function @experimental-```-(app: App): SystemTouches-```-## selectBlendClip — function @experimental```(blend: AnimatorBlend1D, value: number): AnimatorBlendThreshold@@ -13789,11 +13425,6 @@ ScriptGraphPlugin(observer: Vec3, facing: Vec3, target: Vec3, range: number, halfFov: number, isBlocked?: (from: Vec3, to: Vec3) => boolean): SenseResult```-## sequenceCount — function @experimental-```-(node: ScriptGraphNode): number-```-## serializeAnimClip — function @experimental```(asset: AnimClipAssetData): Record<string, unknown>@@ -13919,11 +13550,6 @@ ServicesPlugin(bytes: number): void```-## setScriptNodeLiteral — function @experimental-```-(graph: ScriptGraph, id: string, port: string, value: ScriptValue): ScriptGraph-```-## setStateHook — function @experimental```(def: FsmDefinition, name: string, hook: "onEnter" | "onUpdate" | "onExit", action: string, arg?: string, params?: Record<string, AiParamValue>): FsmDefinition@@ -14069,11 +13695,6 @@ ServicesPlugin<T>(initial: T): Signal<T>```-## signatureOf — function @experimental-```-(graph: ScriptGraph): ScriptGraphSignature-```-## solveAnimatorIK — function @experimental```(world: World, rigRoot: Entity, pose: Pose, constraints: readonly AnimatorIK[], params: MotionParams, resolveJoint?: JointResolver): void@@ -14134,16 +13755,6 @@ StatsPlugin(world: PerceptionWorldView, isBlocked?: LosCheck): void```-## stepScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```--## stepScriptGraphs — function @experimental-```-(world: ScriptGraphWorldView, commands: CommandsInstance, dt: number, states: Map<Entity, AgentState>, resolveGraph?: (ref: string) => CompiledScriptGraph | undefined, onProblem?: (entity: Entity, message: string) => void, input?: InputState): void-```-## stopNavAgent — function @experimental```(world: World, entity: Entity): voiddiff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.mdindex 25e9411f6..361516cc5 100644--- a/sdk/etc/index.node.api.md+++ b/sdk/etc/index.node.api.md@@ -1,7 +1,7 @@# API surface — esengine/index.node<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 93 beta · 1734 experimental · 3 deprecated+Symbols: 115 public · 93 beta · 1670 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -273,11 +273,6 @@ static new <Ctx = unknown>(): AiRegistry<Ctx>static prototype: AiRegistry<any>```-## AiScriptGraphs — const @experimental-```-ResourceDef<ScriptGraphs>-```-## AiValueSpec — interface @experimental```evaluate: (ctx: Ctx, bb: Blackboard, params: AiParams, out: AiOutputs) => void@@ -1350,11 +1345,6 @@ readonly [{ readonly name: "master"; readonly parent: null; readonly volume: 1;readonly BuiltinMeshTemplate[]```-## BUILTIN_NODE_KINDS — const @experimental-```-readonly string[]-```-## BUILTIN_SHADER_TEMPLATES — const @experimental```readonly BuiltinShaderTemplate[]@@ -2496,24 +2486,6 @@ initial: stringstates: Map<string, FsmState>```-## CompiledScriptGraph — interface @experimental-```-dataSources: Map<string, { node: string; port: string; }>-destroys: string[]-events: Map<string, string[]>-execTargets: Map<string, string>-graph: ScriptGraph-inputNode: string | undefined-nodes: Map<string, ScriptGraphNode>-outputNode: string | undefined-prefabs: Map<string, PreparedPrefab>-problems: string[]-shapes: Map<string, ScriptNodeShape>-starts: string[]-starvedInputs: Map<string, string[]>-updates: string[]-```-## Completable — interface @experimental```cancel: () => void@@ -2777,11 +2749,6 @@ ScreenScalingData{ x: number; y: number; }```-## DEFAULT_STEP_BUDGET — const @experimental-```-4096-```-## DEFAULT_TEXT_CANVAS_SIZE — const @experimental```512@@ -4993,11 +4960,6 @@ Restart = 1"1.0"```-## MAX_CALL_DEPTH — const @experimental-```-16-```-## MAX_POLYGON_VERTICES — const @experimental```8@@ -7607,11 +7569,6 @@ ComponentDef<{}>-1```-## SCRIPT_GRAPH_VERSION — const @experimental-```-"1.0"-```-## SH_BASIS_SCALE — const @experimental```readonly [0.282095, 0.488603, 0.488603, 0.488603, 1.092548, 1.092548, 0.315392, 1.092548, 0.546274]@@ -8022,152 +7979,6 @@ renderPolicy: RenderResolution | undefinedscaleMode: number```-## ScriptFrame — interface @experimental-```-calls: Map<string, ScriptFrame>-produced: Map<string, Record<string, ScriptValue>>-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptGraph — interface @experimental-```-edges: ScriptGraphEdge[]-inputs: ScriptGraphPort[] | undefined-name: string | undefined-nodes: ScriptGraphNode[]-outputs: ScriptGraphPort[] | undefined-variables: ScriptGraphVariable[] | undefined-version: string-```--## ScriptGraphAgent — const @experimental-```-ComponentDef<ScriptGraphAgentData>-```--## ScriptGraphAgentData — interface @experimental-```-graph: string-```--## ScriptGraphEdge — interface @experimental-```-from: string-fromPort: string-id: string-to: string-toPort: string-```--## ScriptGraphNode — interface @experimental-```-id: string-kind: string-literals: Record<string, ScriptValue> | undefined-ref: string | undefined-x: number | undefined-y: number | undefined-```--## ScriptGraphPlugin — class @experimental-```-build: (app: App) => void-name: string-static new (): ScriptGraphPlugin-static prototype: ScriptGraphPlugin-```--## ScriptGraphPort — interface @experimental-```-default: ScriptValue | undefined-label: string | undefined-name: string-type: "string" | "number" | "bool" | "entity" | "any"-```--## ScriptGraphSignature — interface @experimental-```-inputs: readonly ScriptGraphPort[]-outputs: readonly ScriptGraphPort[]-```--## ScriptGraphVariable — interface @experimental-```-default: ScriptValue | undefined-name: string-type: "string" | "number" | "bool" | "entity"-```--## ScriptGraphs — class @experimental-```-blackboard: (entity: Entity) => Blackboard-halted: (entity: Entity) => boolean-setVariable: (entity: Entity, name: string, value: ScriptValue) => void-variable: (entity: Entity, name: string) => ScriptValue-static new (states: Map<Entity, AgentState>): ScriptGraphs-static prototype: ScriptGraphs-```--## ScriptNodeShape — interface @experimental-```-entry: "start" | "update" | "destroy" | "event" | undefined-execIn: boolean-execOut: readonly string[]-inputs: readonly ScriptPort[]-outputs: readonly ScriptPort[]-pure: boolean-```--## ScriptPort — interface @experimental-```-label: string | undefined-name: string-type: ScriptValueType-```--## ScriptRunState — interface @experimental-```-calls: Map<string, ScriptFrame>-halted: boolean-produced: Map<string, Record<string, ScriptValue>>-reported: Set<string>-started: boolean-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptTickContext — interface @experimental-```-bb: Blackboard-budget: number | undefined-ctx: Ctx-dt: number-onProblem: ((message: string) => void) | undefined-registry: AiRegistry<Ctx>-resolveGraph: ((ref: string) => CompiledScriptGraph | undefined) | undefined-world: World | undefined-```--## ScriptValue — type @experimental-```-boolean | number | string | null-```--## ScriptValueType — type @experimental-```-'exec' | 'bool' | 'number' | 'string' | 'entity' | 'any'-```--## ScriptVerbCatalog — interface @experimental-```-getActionOutputs: (name: string) => readonly AiOutputDef[]-getActionParams: (name: string) => readonly AiParamDef[]-graphSignature: (ref: string) => ScriptGraphSignature | null-hasAction: (name: string) => boolean-isActionPure: (name: string) => boolean-```-## ScrollContainer — class @experimental```dispose: () => void@@ -10741,21 +10552,6 @@ TransformData(acc: Pose, layer: Pose, reference: Pose, weight: number, world: PoseWorld, reach: LayerReach | null): void```-## addScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", port: ScriptGraphPort): ScriptGraph-```--## addScriptNode — function @experimental-```-(graph: ScriptGraph, kind: string, x: number, y: number, ref?: string): { graph: ScriptGraph; id: string; }-```--## addScriptVariable — function @experimental-```-(graph: ScriptGraph, variable: ScriptGraphVariable): ScriptGraph-```-## addStartupSystem — function @public```(system: SystemDef): void@@ -11126,16 +10922,6 @@ BtPlugin(module: ESEngineModule): boolean```-## canConnect — function @experimental-```-(from: ScriptValueType, to: ScriptValueType): boolean-```--## canConnectPorts — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): boolean-```-## canHaveChildren — function @experimental```(type: BtNodeType): boolean@@ -11206,11 +10992,6 @@ BtPlugin(): void```-## clearScriptGraphStore — function @experimental-```-(): void-```-## clearUserComponents — function @experimental```(): void@@ -11246,11 +11027,6 @@ BtPlugin(world: World, e: Entity): void```-## coerceValue — function @experimental-```-(value: ScriptValue, type: ScriptValueType): ScriptValue-```-## col — const @experimental```{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }@@ -11336,11 +11112,6 @@ BtPlugin(graph: MaterialGraph): string```-## compileScriptGraph — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog): CompiledScriptGraph-```-## composeTRS — function @experimental```(p: { x: number; y: number; z: number; }, q: { x: number; y: number; z: number; w: number; }, s: { x: number; y: number; z: number; }): number[]@@ -11371,11 +11142,6 @@ BtPlugin(g: MaterialGraph, fromId: string, toId: string, toSlot: string): MaterialGraph```-## connectScriptNodes — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): ScriptGraph-```-## contentHashHex — function @experimental```(data: Uint8Array): string@@ -11496,11 +11262,6 @@ Plugin(name: string, sceneData: SceneData | undefined, options: Omit<LoadRuntimeSceneOptions, "sceneData" | "sceneName">, scenePath?: string): SceneConfig```-## createScriptRunState — function @experimental-```-(compiled: CompiledScriptGraph): ScriptRunState-```-## createScrollView — function @experimental```(opts: ScrollViewOptions): ScrollViewHandle@@ -11586,11 +11347,6 @@ Plugin(vertices: readonly Vec2[]): PolygonDecomposition```-## defaultForType — function @experimental-```-(type: ScriptValueType): ScriptValue-```-## defaultFrameStats — function @experimental```(): FrameStats@@ -11646,11 +11402,6 @@ PluralSelector<T>(sources: ReadonlySignal<unknown>[], compute: () => T): ReadonlySignal<T>```-## describeNode — function @experimental-```-(node: ScriptGraphNode, graph: ScriptGraph, catalog: ScriptVerbCatalog): ScriptNodeShape | null-```-## desiredDirection — function @experimental```(input: { x: number; y: number; }, basis: MoveBasis): Vec3@@ -11661,11 +11412,6 @@ PluralSelector(cells: readonly WorldCell[], sources: readonly ResidencySource[], resident: ReadonlySet<string>): ResidencyDecision```-## destroyScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```-## detectAnchor — function @experimental```(node: UINodeData): AnchorPreset | null@@ -11701,16 +11447,6 @@ DiagnosticsPlugin(g: MaterialGraph, toId: string, toSlot: string): MaterialGraph```-## disconnectScriptExec — function @experimental-```-(graph: ScriptGraph, from: string, fromPort: string): ScriptGraph-```--## disconnectScriptInput — function @experimental-```-(graph: ScriptGraph, to: string, toPort: string): ScriptGraph-```-## discoverSceneAssets — function @experimental```(sceneData: SceneData, refResolver?: RefResolver): SceneAssetRefs@@ -11831,11 +11567,6 @@ DragPlugin(): FsmDefinition```-## emptyScriptGraph — function @experimental-```-(name?: string): ScriptGraph-```-## enableSceneOrigins — function @experimental```(app: App): void@@ -11861,11 +11592,6 @@ DragPlugin(def: BtDefinition): BtDefinition```-## ensureBuiltinScriptNodes — function @experimental-```-(): void-```-## enterStatePath — function @experimental```(scope: AnimatorScope, name: string): string[]@@ -12001,11 +11727,6 @@ EventBindingPlugin(report: DiagnosticReport): string```-## fireScriptGraphEvent — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>, type: string, target: number, other?: number): void-```-## flatSky — function @experimental```(colour: readonly [number, number, number]): SkyRadiance@@ -12241,11 +11962,6 @@ GameplayPlugin(): ResourceStats | null```-## getScriptGraph — function @experimental-```-(key: string): CompiledScriptGraph | undefined-```-## getTheme — function @experimental```(): ThemeTokens@@ -12271,11 +11987,6 @@ GameplayPlugin(): Array<{ type: string; value: string; }>```-## graphCallRef — function @experimental-```-(node: ScriptGraphNode): string-```-## hasPlayableCta — function @experimental```(): boolean@@ -12401,11 +12112,6 @@ InputRouter(ref: string): boolean```-## isCallableGraph — function @experimental-```-(graph: ScriptGraph): boolean-```-## isCustomExtension — function @experimental```(path: string): boolean@@ -12691,11 +12397,6 @@ MeshRendererPlugin(g: MaterialGraph, id: string, x: number, y: number): MaterialGraph```-## moveScriptNode — function @experimental-```-(graph: ScriptGraph, id: string, x: number, y: number): ScriptGraph-```-## moveState — function @experimental```(def: FsmDefinition, name: string, x: number, y: number): FsmDefinition@@ -13201,11 +12902,6 @@ PrefabsPlugin(type: string, codec: SceneComponentCodec): void```-## registerScriptGraph — function @experimental-```-(key: string, graph: ScriptGraph): CompiledScriptGraph-```-## registerSideModule — function @experimental```(id: string, descriptor: SideModuleDescriptor): void@@ -13266,26 +12962,6 @@ PrefabsPlugin(g: MaterialGraph, id: string): MaterialGraph```-## removeScriptEdge — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string): ScriptGraph-```--## removeScriptNode — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptVariable — function @experimental-```-(graph: ScriptGraph, name: string): ScriptGraph-```-## removeState — function @experimental```(def: FsmDefinition, name: string): FsmDefinition@@ -13301,16 +12977,6 @@ PrefabsPlugin(def: AnimatorControllerDef, oldName: string, newName: string, layer?: number): AnimatorControllerDef```-## renameScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", from: string, to: string): ScriptGraph-```--## renameScriptVariable — function @experimental-```-(graph: ScriptGraph, from: string, to: string): ScriptGraph-```-## renameState — function @experimental```(def: FsmDefinition, oldName: string, newName: string): FsmDefinition@@ -13396,11 +13062,6 @@ ReplicationPlugin(world: World, entity: Entity): void```-## retypeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string, type: ScriptGraphPort["type"]): ScriptGraph-```-## rootMotionVelocity — function @experimental```(delta: { x: number; z: number; }, seconds: number): { x: number; z: number; }@@ -13506,31 +13167,6 @@ Plugin(view: EditorViewData): { right: { axis: WorldAxis; sign: number; }; up: { axis: WorldAxis; sign: number; }; }```-## scriptCatalog — function @experimental-```-(verbs: Omit<ScriptVerbCatalog, "graphSignature">, signatures?: ReadonlyMap<string, ScriptGraphSignature>): ScriptVerbCatalog-```--## scriptGraphCallRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphPlugin — const @experimental-```-ScriptGraphPlugin-```--## scriptGraphPrefabRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphTouches — function @experimental-```-(app: App): SystemTouches-```-## selectBlendClip — function @experimental```(blend: AnimatorBlend1D, value: number): AnimatorBlendThreshold@@ -13551,11 +13187,6 @@ ScriptGraphPlugin(observer: Vec3, facing: Vec3, target: Vec3, range: number, halfFov: number, isBlocked?: (from: Vec3, to: Vec3) => boolean): SenseResult```-## sequenceCount — function @experimental-```-(node: ScriptGraphNode): number-```-## serializeAnimClip — function @experimental```(asset: AnimClipAssetData): Record<string, unknown>@@ -13681,11 +13312,6 @@ ServicesPlugin(bytes: number): void```-## setScriptNodeLiteral — function @experimental-```-(graph: ScriptGraph, id: string, port: string, value: ScriptValue): ScriptGraph-```-## setStateHook — function @experimental```(def: FsmDefinition, name: string, hook: "onEnter" | "onUpdate" | "onExit", action: string, arg?: string, params?: Record<string, AiParamValue>): FsmDefinition@@ -13831,11 +13457,6 @@ ServicesPlugin<T>(initial: T): Signal<T>```-## signatureOf — function @experimental-```-(graph: ScriptGraph): ScriptGraphSignature-```-## solveAnimatorIK — function @experimental```(world: World, rigRoot: Entity, pose: Pose, constraints: readonly AnimatorIK[], params: MotionParams, resolveJoint?: JointResolver): void@@ -13896,16 +13517,6 @@ StatsPlugin(world: PerceptionWorldView, isBlocked?: LosCheck): void```-## stepScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```--## stepScriptGraphs — function @experimental-```-(world: ScriptGraphWorldView, commands: CommandsInstance, dt: number, states: Map<Entity, AgentState>, resolveGraph?: (ref: string) => CompiledScriptGraph | undefined, onProblem?: (entity: Entity, message: string) => void, input?: InputState): void-```-## stopNavAgent — function @experimental```(world: World, entity: Entity): voiddiff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.mdindex dbd20be05..857a6a254 100644--- a/sdk/etc/minigame.api.md+++ b/sdk/etc/minigame.api.md@@ -1,7 +1,7 @@# API surface — esengine/minigame<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 91 beta · 1756 experimental · 3 deprecated+Symbols: 115 public · 91 beta · 1692 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -273,11 +273,6 @@ static new <Ctx = unknown>(): AiRegistry<Ctx>static prototype: AiRegistry<any>```-## AiScriptGraphs — const @experimental-```-ResourceDef<ScriptGraphs>-```-## AiValueSpec — interface @experimental```evaluate: (ctx: Ctx, bb: Blackboard, params: AiParams, out: AiOutputs) => void@@ -1350,11 +1345,6 @@ readonly [{ readonly name: "master"; readonly parent: null; readonly volume: 1;readonly BuiltinMeshTemplate[]```-## BUILTIN_NODE_KINDS — const @experimental-```-readonly string[]-```-## BUILTIN_SHADER_TEMPLATES — const @experimental```readonly BuiltinShaderTemplate[]@@ -2496,24 +2486,6 @@ initial: stringstates: Map<string, FsmState>```-## CompiledScriptGraph — interface @experimental-```-dataSources: Map<string, { node: string; port: string; }>-destroys: string[]-events: Map<string, string[]>-execTargets: Map<string, string>-graph: ScriptGraph-inputNode: string | undefined-nodes: Map<string, ScriptGraphNode>-outputNode: string | undefined-prefabs: Map<string, PreparedPrefab>-problems: string[]-shapes: Map<string, ScriptNodeShape>-starts: string[]-starvedInputs: Map<string, string[]>-updates: string[]-```-## Completable — interface @experimental```cancel: () => void@@ -2777,11 +2749,6 @@ ScreenScalingData{ x: number; y: number; }```-## DEFAULT_STEP_BUDGET — const @experimental-```-4096-```-## DEFAULT_TEXT_CANVAS_SIZE — const @experimental```512@@ -4993,11 +4960,6 @@ Restart = 1"1.0"```-## MAX_CALL_DEPTH — const @experimental-```-16-```-## MAX_POLYGON_VERTICES — const @experimental```8@@ -7858,11 +7820,6 @@ ComponentDef<{}>-1```-## SCRIPT_GRAPH_VERSION — const @experimental-```-"1.0"-```-## SH_BASIS_SCALE — const @experimental```readonly [0.282095, 0.488603, 0.488603, 0.488603, 1.092548, 1.092548, 0.315392, 1.092548, 0.546274]@@ -8273,152 +8230,6 @@ renderPolicy: RenderResolution | undefinedscaleMode: number```-## ScriptFrame — interface @experimental-```-calls: Map<string, ScriptFrame>-produced: Map<string, Record<string, ScriptValue>>-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptGraph — interface @experimental-```-edges: ScriptGraphEdge[]-inputs: ScriptGraphPort[] | undefined-name: string | undefined-nodes: ScriptGraphNode[]-outputs: ScriptGraphPort[] | undefined-variables: ScriptGraphVariable[] | undefined-version: string-```--## ScriptGraphAgent — const @experimental-```-ComponentDef<ScriptGraphAgentData>-```--## ScriptGraphAgentData — interface @experimental-```-graph: string-```--## ScriptGraphEdge — interface @experimental-```-from: string-fromPort: string-id: string-to: string-toPort: string-```--## ScriptGraphNode — interface @experimental-```-id: string-kind: string-literals: Record<string, ScriptValue> | undefined-ref: string | undefined-x: number | undefined-y: number | undefined-```--## ScriptGraphPlugin — class @experimental-```-build: (app: App) => void-name: string-static new (): ScriptGraphPlugin-static prototype: ScriptGraphPlugin-```--## ScriptGraphPort — interface @experimental-```-default: ScriptValue | undefined-label: string | undefined-name: string-type: "string" | "number" | "bool" | "entity" | "any"-```--## ScriptGraphSignature — interface @experimental-```-inputs: readonly ScriptGraphPort[]-outputs: readonly ScriptGraphPort[]-```--## ScriptGraphVariable — interface @experimental-```-default: ScriptValue | undefined-name: string-type: "string" | "number" | "bool" | "entity"-```--## ScriptGraphs — class @experimental-```-blackboard: (entity: Entity) => Blackboard-halted: (entity: Entity) => boolean-setVariable: (entity: Entity, name: string, value: ScriptValue) => void-variable: (entity: Entity, name: string) => ScriptValue-static new (states: Map<Entity, AgentState>): ScriptGraphs-static prototype: ScriptGraphs-```--## ScriptNodeShape — interface @experimental-```-entry: "start" | "update" | "destroy" | "event" | undefined-execIn: boolean-execOut: readonly string[]-inputs: readonly ScriptPort[]-outputs: readonly ScriptPort[]-pure: boolean-```--## ScriptPort — interface @experimental-```-label: string | undefined-name: string-type: ScriptValueType-```--## ScriptRunState — interface @experimental-```-calls: Map<string, ScriptFrame>-halted: boolean-produced: Map<string, Record<string, ScriptValue>>-reported: Set<string>-started: boolean-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptTickContext — interface @experimental-```-bb: Blackboard-budget: number | undefined-ctx: Ctx-dt: number-onProblem: ((message: string) => void) | undefined-registry: AiRegistry<Ctx>-resolveGraph: ((ref: string) => CompiledScriptGraph | undefined) | undefined-world: World | undefined-```--## ScriptValue — type @experimental-```-boolean | number | string | null-```--## ScriptValueType — type @experimental-```-'exec' | 'bool' | 'number' | 'string' | 'entity' | 'any'-```--## ScriptVerbCatalog — interface @experimental-```-getActionOutputs: (name: string) => readonly AiOutputDef[]-getActionParams: (name: string) => readonly AiParamDef[]-graphSignature: (ref: string) => ScriptGraphSignature | null-hasAction: (name: string) => boolean-isActionPure: (name: string) => boolean-```-## ScrollContainer — class @experimental```dispose: () => void@@ -10998,21 +10809,6 @@ TransformData(acc: Pose, layer: Pose, reference: Pose, weight: number, world: PoseWorld, reach: LayerReach | null): void```-## addScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", port: ScriptGraphPort): ScriptGraph-```--## addScriptNode — function @experimental-```-(graph: ScriptGraph, kind: string, x: number, y: number, ref?: string): { graph: ScriptGraph; id: string; }-```--## addScriptVariable — function @experimental-```-(graph: ScriptGraph, variable: ScriptGraphVariable): ScriptGraph-```-## addStartupSystem — function @public```(system: SystemDef): void@@ -11383,16 +11179,6 @@ BtPlugin(module: ESEngineModule): boolean```-## canConnect — function @experimental-```-(from: ScriptValueType, to: ScriptValueType): boolean-```--## canConnectPorts — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): boolean-```-## canHaveChildren — function @experimental```(type: BtNodeType): boolean@@ -11463,11 +11249,6 @@ BtPlugin(): void```-## clearScriptGraphStore — function @experimental-```-(): void-```-## clearUserComponents — function @experimental```(): void@@ -11503,11 +11284,6 @@ BtPlugin(world: World, e: Entity): void```-## coerceValue — function @experimental-```-(value: ScriptValue, type: ScriptValueType): ScriptValue-```-## col — const @experimental```{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }@@ -11593,11 +11369,6 @@ BtPlugin(graph: MaterialGraph): string```-## compileScriptGraph — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog): CompiledScriptGraph-```-## composeTRS — function @experimental```(p: { x: number; y: number; z: number; }, q: { x: number; y: number; z: number; w: number; }, s: { x: number; y: number; z: number; }): number[]@@ -11628,11 +11399,6 @@ BtPlugin(g: MaterialGraph, fromId: string, toId: string, toSlot: string): MaterialGraph```-## connectScriptNodes — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): ScriptGraph-```-## contentHashHex — function @experimental```(data: Uint8Array): string@@ -11758,11 +11524,6 @@ Plugin(name: string, sceneData: SceneData | undefined, options: Omit<LoadRuntimeSceneOptions, "sceneData" | "sceneName">, scenePath?: string): SceneConfig```-## createScriptRunState — function @experimental-```-(compiled: CompiledScriptGraph): ScriptRunState-```-## createScrollView — function @experimental```(opts: ScrollViewOptions): ScrollViewHandle@@ -11848,11 +11609,6 @@ Plugin(vertices: readonly Vec2[]): PolygonDecomposition```-## defaultForType — function @experimental-```-(type: ScriptValueType): ScriptValue-```-## defaultFrameStats — function @experimental```(): FrameStats@@ -11908,11 +11664,6 @@ PluralSelector<T>(sources: ReadonlySignal<unknown>[], compute: () => T): ReadonlySignal<T>```-## describeNode — function @experimental-```-(node: ScriptGraphNode, graph: ScriptGraph, catalog: ScriptVerbCatalog): ScriptNodeShape | null-```-## desiredDirection — function @experimental```(input: { x: number; y: number; }, basis: MoveBasis): Vec3@@ -11923,11 +11674,6 @@ PluralSelector(cells: readonly WorldCell[], sources: readonly ResidencySource[], resident: ReadonlySet<string>): ResidencyDecision```-## destroyScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```-## detectAnchor — function @experimental```(node: UINodeData): AnchorPreset | null@@ -11963,16 +11709,6 @@ DiagnosticsPlugin(g: MaterialGraph, toId: string, toSlot: string): MaterialGraph```-## disconnectScriptExec — function @experimental-```-(graph: ScriptGraph, from: string, fromPort: string): ScriptGraph-```--## disconnectScriptInput — function @experimental-```-(graph: ScriptGraph, to: string, toPort: string): ScriptGraph-```-## discoverSceneAssets — function @experimental```(sceneData: SceneData, refResolver?: RefResolver): SceneAssetRefs@@ -12093,11 +11829,6 @@ DragPlugin(): FsmDefinition```-## emptyScriptGraph — function @experimental-```-(name?: string): ScriptGraph-```-## enableSceneOrigins — function @experimental```(app: App): void@@ -12123,11 +11854,6 @@ DragPlugin(def: BtDefinition): BtDefinition```-## ensureBuiltinScriptNodes — function @experimental-```-(): void-```-## enterStatePath — function @experimental```(scope: AnimatorScope, name: string): string[]@@ -12263,11 +11989,6 @@ EventBindingPlugin(report: DiagnosticReport): string```-## fireScriptGraphEvent — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>, type: string, target: number, other?: number): void-```-## flatSky — function @experimental```(colour: readonly [number, number, number]): SkyRadiance@@ -12503,11 +12224,6 @@ GameplayPlugin(): ResourceStats | null```-## getScriptGraph — function @experimental-```-(key: string): CompiledScriptGraph | undefined-```-## getTheme — function @experimental```(): ThemeTokens@@ -12533,11 +12249,6 @@ GameplayPlugin(): Array<{ type: string; value: string; }>```-## graphCallRef — function @experimental-```-(node: ScriptGraphNode): string-```-## hasPlayableCta — function @experimental```(): boolean@@ -12673,11 +12384,6 @@ InputRouter(ref: string): boolean```-## isCallableGraph — function @experimental-```-(graph: ScriptGraph): boolean-```-## isCustomExtension — function @experimental```(path: string): boolean@@ -12958,11 +12664,6 @@ MeshRendererPlugin(g: MaterialGraph, id: string, x: number, y: number): MaterialGraph```-## moveScriptNode — function @experimental-```-(graph: ScriptGraph, id: string, x: number, y: number): ScriptGraph-```-## moveState — function @experimental```(def: FsmDefinition, name: string, x: number, y: number): FsmDefinition@@ -13463,11 +13164,6 @@ PrefabsPlugin(type: string, codec: SceneComponentCodec): void```-## registerScriptGraph — function @experimental-```-(key: string, graph: ScriptGraph): CompiledScriptGraph-```-## registerSideModule — function @experimental```(id: string, descriptor: SideModuleDescriptor): void@@ -13528,26 +13224,6 @@ PrefabsPlugin(g: MaterialGraph, id: string): MaterialGraph```-## removeScriptEdge — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string): ScriptGraph-```--## removeScriptNode — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptVariable — function @experimental-```-(graph: ScriptGraph, name: string): ScriptGraph-```-## removeState — function @experimental```(def: FsmDefinition, name: string): FsmDefinition@@ -13563,16 +13239,6 @@ PrefabsPlugin(def: AnimatorControllerDef, oldName: string, newName: string, layer?: number): AnimatorControllerDef```-## renameScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", from: string, to: string): ScriptGraph-```--## renameScriptVariable — function @experimental-```-(graph: ScriptGraph, from: string, to: string): ScriptGraph-```-## renameState — function @experimental```(def: FsmDefinition, oldName: string, newName: string): FsmDefinition@@ -13658,11 +13324,6 @@ ReplicationPlugin(world: World, entity: Entity): void```-## retypeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string, type: ScriptGraphPort["type"]): ScriptGraph-```-## rootMotionVelocity — function @experimental```(delta: { x: number; z: number; }, seconds: number): { x: number; z: number; }@@ -13768,31 +13429,6 @@ Plugin(view: EditorViewData): { right: { axis: WorldAxis; sign: number; }; up: { axis: WorldAxis; sign: number; }; }```-## scriptCatalog — function @experimental-```-(verbs: Omit<ScriptVerbCatalog, "graphSignature">, signatures?: ReadonlyMap<string, ScriptGraphSignature>): ScriptVerbCatalog-```--## scriptGraphCallRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphPlugin — const @experimental-```-ScriptGraphPlugin-```--## scriptGraphPrefabRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphTouches — function @experimental-```-(app: App): SystemTouches-```-## selectBlendClip — function @experimental```(blend: AnimatorBlend1D, value: number): AnimatorBlendThreshold@@ -13813,11 +13449,6 @@ ScriptGraphPlugin(observer: Vec3, facing: Vec3, target: Vec3, range: number, halfFov: number, isBlocked?: (from: Vec3, to: Vec3) => boolean): SenseResult```-## sequenceCount — function @experimental-```-(node: ScriptGraphNode): number-```-## serializeAnimClip — function @experimental```(asset: AnimClipAssetData): Record<string, unknown>@@ -13943,11 +13574,6 @@ ServicesPlugin(bytes: number): void```-## setScriptNodeLiteral — function @experimental-```-(graph: ScriptGraph, id: string, port: string, value: ScriptValue): ScriptGraph-```-## setStateHook — function @experimental```(def: FsmDefinition, name: string, hook: "onEnter" | "onUpdate" | "onExit", action: string, arg?: string, params?: Record<string, AiParamValue>): FsmDefinition@@ -14093,11 +13719,6 @@ ServicesPlugin<T>(initial: T): Signal<T>```-## signatureOf — function @experimental-```-(graph: ScriptGraph): ScriptGraphSignature-```-## solveAnimatorIK — function @experimental```(world: World, rigRoot: Entity, pose: Pose, constraints: readonly AnimatorIK[], params: MotionParams, resolveJoint?: JointResolver): void@@ -14158,16 +13779,6 @@ StatsPlugin(world: PerceptionWorldView, isBlocked?: LosCheck): void```-## stepScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```--## stepScriptGraphs — function @experimental-```-(world: ScriptGraphWorldView, commands: CommandsInstance, dt: number, states: Map<Entity, AgentState>, resolveGraph?: (ref: string) => CompiledScriptGraph | undefined, onProblem?: (entity: Entity, message: string) => void, input?: InputState): void-```-## stopNavAgent — function @experimental```(world: World, entity: Entity): voiddiff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.mdindex 36b7f8bf8..9fd06c857 100644--- a/sdk/etc/wechat.api.md+++ b/sdk/etc/wechat.api.md@@ -1,7 +1,7 @@# API surface — esengine/wechat<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 91 beta · 1747 experimental · 3 deprecated+Symbols: 115 public · 91 beta · 1683 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -273,11 +273,6 @@ static new <Ctx = unknown>(): AiRegistry<Ctx>static prototype: AiRegistry<any>```-## AiScriptGraphs — const @experimental-```-ResourceDef<ScriptGraphs>-```-## AiValueSpec — interface @experimental```evaluate: (ctx: Ctx, bb: Blackboard, params: AiParams, out: AiOutputs) => void@@ -1350,11 +1345,6 @@ readonly [{ readonly name: "master"; readonly parent: null; readonly volume: 1;readonly BuiltinMeshTemplate[]```-## BUILTIN_NODE_KINDS — const @experimental-```-readonly string[]-```-## BUILTIN_SHADER_TEMPLATES — const @experimental```readonly BuiltinShaderTemplate[]@@ -2496,24 +2486,6 @@ initial: stringstates: Map<string, FsmState>```-## CompiledScriptGraph — interface @experimental-```-dataSources: Map<string, { node: string; port: string; }>-destroys: string[]-events: Map<string, string[]>-execTargets: Map<string, string>-graph: ScriptGraph-inputNode: string | undefined-nodes: Map<string, ScriptGraphNode>-outputNode: string | undefined-prefabs: Map<string, PreparedPrefab>-problems: string[]-shapes: Map<string, ScriptNodeShape>-starts: string[]-starvedInputs: Map<string, string[]>-updates: string[]-```-## Completable — interface @experimental```cancel: () => void@@ -2777,11 +2749,6 @@ ScreenScalingData{ x: number; y: number; }```-## DEFAULT_STEP_BUDGET — const @experimental-```-4096-```-## DEFAULT_TEXT_CANVAS_SIZE — const @experimental```512@@ -5000,11 +4967,6 @@ Restart = 1"1.0"```-## MAX_CALL_DEPTH — const @experimental-```-16-```-## MAX_POLYGON_VERTICES — const @experimental```8@@ -7614,11 +7576,6 @@ ComponentDef<{}>-1```-## SCRIPT_GRAPH_VERSION — const @experimental-```-"1.0"-```-## SH_BASIS_SCALE — const @experimental```readonly [0.282095, 0.488603, 0.488603, 0.488603, 1.092548, 1.092548, 0.315392, 1.092548, 0.546274]@@ -8029,152 +7986,6 @@ renderPolicy: RenderResolution | undefinedscaleMode: number```-## ScriptFrame — interface @experimental-```-calls: Map<string, ScriptFrame>-produced: Map<string, Record<string, ScriptValue>>-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptGraph — interface @experimental-```-edges: ScriptGraphEdge[]-inputs: ScriptGraphPort[] | undefined-name: string | undefined-nodes: ScriptGraphNode[]-outputs: ScriptGraphPort[] | undefined-variables: ScriptGraphVariable[] | undefined-version: string-```--## ScriptGraphAgent — const @experimental-```-ComponentDef<ScriptGraphAgentData>-```--## ScriptGraphAgentData — interface @experimental-```-graph: string-```--## ScriptGraphEdge — interface @experimental-```-from: string-fromPort: string-id: string-to: string-toPort: string-```--## ScriptGraphNode — interface @experimental-```-id: string-kind: string-literals: Record<string, ScriptValue> | undefined-ref: string | undefined-x: number | undefined-y: number | undefined-```--## ScriptGraphPlugin — class @experimental-```-build: (app: App) => void-name: string-static new (): ScriptGraphPlugin-static prototype: ScriptGraphPlugin-```--## ScriptGraphPort — interface @experimental-```-default: ScriptValue | undefined-label: string | undefined-name: string-type: "string" | "number" | "bool" | "entity" | "any"-```--## ScriptGraphSignature — interface @experimental-```-inputs: readonly ScriptGraphPort[]-outputs: readonly ScriptGraphPort[]-```--## ScriptGraphVariable — interface @experimental-```-default: ScriptValue | undefined-name: string-type: "string" | "number" | "bool" | "entity"-```--## ScriptGraphs — class @experimental-```-blackboard: (entity: Entity) => Blackboard-halted: (entity: Entity) => boolean-setVariable: (entity: Entity, name: string, value: ScriptValue) => void-variable: (entity: Entity, name: string) => ScriptValue-static new (states: Map<Entity, AgentState>): ScriptGraphs-static prototype: ScriptGraphs-```--## ScriptNodeShape — interface @experimental-```-entry: "start" | "update" | "destroy" | "event" | undefined-execIn: boolean-execOut: readonly string[]-inputs: readonly ScriptPort[]-outputs: readonly ScriptPort[]-pure: boolean-```--## ScriptPort — interface @experimental-```-label: string | undefined-name: string-type: ScriptValueType-```--## ScriptRunState — interface @experimental-```-calls: Map<string, ScriptFrame>-halted: boolean-produced: Map<string, Record<string, ScriptValue>>-reported: Set<string>-started: boolean-timers: Map<string, number>-vars: Map<string, ScriptValue>-```--## ScriptTickContext — interface @experimental-```-bb: Blackboard-budget: number | undefined-ctx: Ctx-dt: number-onProblem: ((message: string) => void) | undefined-registry: AiRegistry<Ctx>-resolveGraph: ((ref: string) => CompiledScriptGraph | undefined) | undefined-world: World | undefined-```--## ScriptValue — type @experimental-```-boolean | number | string | null-```--## ScriptValueType — type @experimental-```-'exec' | 'bool' | 'number' | 'string' | 'entity' | 'any'-```--## ScriptVerbCatalog — interface @experimental-```-getActionOutputs: (name: string) => readonly AiOutputDef[]-getActionParams: (name: string) => readonly AiParamDef[]-graphSignature: (ref: string) => ScriptGraphSignature | null-hasAction: (name: string) => boolean-isActionPure: (name: string) => boolean-```-## ScrollContainer — class @experimental```dispose: () => void@@ -10769,21 +10580,6 @@ TransformData(acc: Pose, layer: Pose, reference: Pose, weight: number, world: PoseWorld, reach: LayerReach | null): void```-## addScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", port: ScriptGraphPort): ScriptGraph-```--## addScriptNode — function @experimental-```-(graph: ScriptGraph, kind: string, x: number, y: number, ref?: string): { graph: ScriptGraph; id: string; }-```--## addScriptVariable — function @experimental-```-(graph: ScriptGraph, variable: ScriptGraphVariable): ScriptGraph-```-## addStartupSystem — function @public```(system: SystemDef): void@@ -11154,16 +10950,6 @@ BtPlugin(module: ESEngineModule): boolean```-## canConnect — function @experimental-```-(from: ScriptValueType, to: ScriptValueType): boolean-```--## canConnectPorts — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): boolean-```-## canHaveChildren — function @experimental```(type: BtNodeType): boolean@@ -11234,11 +11020,6 @@ BtPlugin(): void```-## clearScriptGraphStore — function @experimental-```-(): void-```-## clearUserComponents — function @experimental```(): void@@ -11274,11 +11055,6 @@ BtPlugin(world: World, e: Entity): void```-## coerceValue — function @experimental-```-(value: ScriptValue, type: ScriptValueType): ScriptValue-```-## col — const @experimental```{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }@@ -11364,11 +11140,6 @@ BtPlugin(graph: MaterialGraph): string```-## compileScriptGraph — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog): CompiledScriptGraph-```-## composeTRS — function @experimental```(p: { x: number; y: number; z: number; }, q: { x: number; y: number; z: number; w: number; }, s: { x: number; y: number; z: number; }): number[]@@ -11399,11 +11170,6 @@ BtPlugin(g: MaterialGraph, fromId: string, toId: string, toSlot: string): MaterialGraph```-## connectScriptNodes — function @experimental-```-(graph: ScriptGraph, catalog: ScriptVerbCatalog, from: string, fromPort: string, to: string, toPort: string): ScriptGraph-```-## contentHashHex — function @experimental```(data: Uint8Array): string@@ -11524,11 +11290,6 @@ Plugin(name: string, sceneData: SceneData | undefined, options: Omit<LoadRuntimeSceneOptions, "sceneData" | "sceneName">, scenePath?: string): SceneConfig```-## createScriptRunState — function @experimental-```-(compiled: CompiledScriptGraph): ScriptRunState-```-## createScrollView — function @experimental```(opts: ScrollViewOptions): ScrollViewHandle@@ -11614,11 +11375,6 @@ Plugin(vertices: readonly Vec2[]): PolygonDecomposition```-## defaultForType — function @experimental-```-(type: ScriptValueType): ScriptValue-```-## defaultFrameStats — function @experimental```(): FrameStats@@ -11674,11 +11430,6 @@ PluralSelector<T>(sources: ReadonlySignal<unknown>[], compute: () => T): ReadonlySignal<T>```-## describeNode — function @experimental-```-(node: ScriptGraphNode, graph: ScriptGraph, catalog: ScriptVerbCatalog): ScriptNodeShape | null-```-## desiredDirection — function @experimental```(input: { x: number; y: number; }, basis: MoveBasis): Vec3@@ -11689,11 +11440,6 @@ PluralSelector(cells: readonly WorldCell[], sources: readonly ResidencySource[], resident: ReadonlySet<string>): ResidencyDecision```-## destroyScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```-## detectAnchor — function @experimental```(node: UINodeData): AnchorPreset | null@@ -11729,16 +11475,6 @@ DiagnosticsPlugin(g: MaterialGraph, toId: string, toSlot: string): MaterialGraph```-## disconnectScriptExec — function @experimental-```-(graph: ScriptGraph, from: string, fromPort: string): ScriptGraph-```--## disconnectScriptInput — function @experimental-```-(graph: ScriptGraph, to: string, toPort: string): ScriptGraph-```-## discoverSceneAssets — function @experimental```(sceneData: SceneData, refResolver?: RefResolver): SceneAssetRefs@@ -11859,11 +11595,6 @@ DragPlugin(): FsmDefinition```-## emptyScriptGraph — function @experimental-```-(name?: string): ScriptGraph-```-## enableSceneOrigins — function @experimental```(app: App): void@@ -11889,11 +11620,6 @@ DragPlugin(def: BtDefinition): BtDefinition```-## ensureBuiltinScriptNodes — function @experimental-```-(): void-```-## enterStatePath — function @experimental```(scope: AnimatorScope, name: string): string[]@@ -12029,11 +11755,6 @@ EventBindingPlugin(report: DiagnosticReport): string```-## fireScriptGraphEvent — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>, type: string, target: number, other?: number): void-```-## flatSky — function @experimental```(colour: readonly [number, number, number]): SkyRadiance@@ -12269,11 +11990,6 @@ GameplayPlugin(): ResourceStats | null```-## getScriptGraph — function @experimental-```-(key: string): CompiledScriptGraph | undefined-```-## getTheme — function @experimental```(): ThemeTokens@@ -12299,11 +12015,6 @@ GameplayPlugin(): Array<{ type: string; value: string; }>```-## graphCallRef — function @experimental-```-(node: ScriptGraphNode): string-```-## hasPlayableCta — function @experimental```(): boolean@@ -12439,11 +12150,6 @@ InputRouter(ref: string): boolean```-## isCallableGraph — function @experimental-```-(graph: ScriptGraph): boolean-```-## isCustomExtension — function @experimental```(path: string): boolean@@ -12724,11 +12430,6 @@ MeshRendererPlugin(g: MaterialGraph, id: string, x: number, y: number): MaterialGraph```-## moveScriptNode — function @experimental-```-(graph: ScriptGraph, id: string, x: number, y: number): ScriptGraph-```-## moveState — function @experimental```(def: FsmDefinition, name: string, x: number, y: number): FsmDefinition@@ -13229,11 +12930,6 @@ PrefabsPlugin(type: string, codec: SceneComponentCodec): void```-## registerScriptGraph — function @experimental-```-(key: string, graph: ScriptGraph): CompiledScriptGraph-```-## registerSideModule — function @experimental```(id: string, descriptor: SideModuleDescriptor): void@@ -13294,26 +12990,6 @@ PrefabsPlugin(g: MaterialGraph, id: string): MaterialGraph```-## removeScriptEdge — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string): ScriptGraph-```--## removeScriptNode — function @experimental-```-(graph: ScriptGraph, id: string): ScriptGraph-```--## removeScriptVariable — function @experimental-```-(graph: ScriptGraph, name: string): ScriptGraph-```-## removeState — function @experimental```(def: FsmDefinition, name: string): FsmDefinition@@ -13329,16 +13005,6 @@ PrefabsPlugin(def: AnimatorControllerDef, oldName: string, newName: string, layer?: number): AnimatorControllerDef```-## renameScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", from: string, to: string): ScriptGraph-```--## renameScriptVariable — function @experimental-```-(graph: ScriptGraph, from: string, to: string): ScriptGraph-```-## renameState — function @experimental```(def: FsmDefinition, oldName: string, newName: string): FsmDefinition@@ -13424,11 +13090,6 @@ ReplicationPlugin(world: World, entity: Entity): void```-## retypeScriptGraphPort — function @experimental-```-(graph: ScriptGraph, side: "inputs" | "outputs", name: string, type: ScriptGraphPort["type"]): ScriptGraph-```-## rootMotionVelocity — function @experimental```(delta: { x: number; z: number; }, seconds: number): { x: number; z: number; }@@ -13534,31 +13195,6 @@ Plugin(view: EditorViewData): { right: { axis: WorldAxis; sign: number; }; up: { axis: WorldAxis; sign: number; }; }```-## scriptCatalog — function @experimental-```-(verbs: Omit<ScriptVerbCatalog, "graphSignature">, signatures?: ReadonlyMap<string, ScriptGraphSignature>): ScriptVerbCatalog-```--## scriptGraphCallRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphPlugin — const @experimental-```-ScriptGraphPlugin-```--## scriptGraphPrefabRefs — function @experimental-```-(graph: ScriptGraph): string[]-```--## scriptGraphTouches — function @experimental-```-(app: App): SystemTouches-```-## selectBlendClip — function @experimental```(blend: AnimatorBlend1D, value: number): AnimatorBlendThreshold@@ -13579,11 +13215,6 @@ ScriptGraphPlugin(observer: Vec3, facing: Vec3, target: Vec3, range: number, halfFov: number, isBlocked?: (from: Vec3, to: Vec3) => boolean): SenseResult```-## sequenceCount — function @experimental-```-(node: ScriptGraphNode): number-```-## serializeAnimClip — function @experimental```(asset: AnimClipAssetData): Record<string, unknown>@@ -13709,11 +13340,6 @@ ServicesPlugin(bytes: number): void```-## setScriptNodeLiteral — function @experimental-```-(graph: ScriptGraph, id: string, port: string, value: ScriptValue): ScriptGraph-```-## setStateHook — function @experimental```(def: FsmDefinition, name: string, hook: "onEnter" | "onUpdate" | "onExit", action: string, arg?: string, params?: Record<string, AiParamValue>): FsmDefinition@@ -13859,11 +13485,6 @@ ServicesPlugin<T>(initial: T): Signal<T>```-## signatureOf — function @experimental-```-(graph: ScriptGraph): ScriptGraphSignature-```-## solveAnimatorIK — function @experimental```(world: World, rigRoot: Entity, pose: Pose, constraints: readonly AnimatorIK[], params: MotionParams, resolveJoint?: JointResolver): void@@ -13924,16 +13545,6 @@ StatsPlugin(world: PerceptionWorldView, isBlocked?: LosCheck): void```-## stepScriptGraph — function @experimental-```-<Ctx>(compiled: CompiledScriptGraph, run: ScriptRunState, tick: ScriptTickContext<Ctx>): void-```--## stepScriptGraphs — function @experimental-```-(world: ScriptGraphWorldView, commands: CommandsInstance, dt: number, states: Map<Entity, AgentState>, resolveGraph?: (ref: string) => CompiledScriptGraph | undefined, onProblem?: (entity: Entity, message: string) => void, input?: InputState): void-```-## stopNavAgent — function @experimental```(world: World, entity: Entity): voiddiff --git a/sdk/package.json b/sdk/package.jsonindex be9f7165e..29a4d072f 100644--- a/sdk/package.json+++ b/sdk/package.json@@ -15,6 +15,7 @@"./dist/dragonbones/index.js","./dist/spine/index.js","./dist/tilemap/index.js",+ "./dist/logic/index.js","./dist/physics/index.js","./dist/physics3d/index.js","./dist/douyin/index.js",@@ -58,6 +59,10 @@"import": "./dist/tilemap/index.js","types": "./dist/tilemap/index.d.ts"},+ "./logic": {+ "import": "./dist/logic/index.js",+ "types": "./dist/logic/index.d.ts"+ },"./physics": {"import": "./dist/physics/index.js","types": "./dist/physics/index.d.ts"diff --git a/sdk/rolldown.config.js b/sdk/rolldown.config.jsindex d02e3c2b6..350d494d0 100644--- a/sdk/rolldown.config.js+++ b/sdk/rolldown.config.js@@ -88,6 +88,7 @@ export default defineConfig(['physics3d/index': 'src/physics3d/index.ts','spine/index': 'src/spine/index.ts','tilemap/index': 'src/tilemap/index.ts',+ 'logic/index': 'src/logic/index.ts','dragonbones/index': 'src/dragonbones/index.ts','douyin/index': 'src/platform/douyin/index.ts','wasm': 'src/wasm.ts',diff --git a/sdk/rollup.config.js b/sdk/rollup.config.jsindex e6eea5a91..506556c5e 100644--- a/sdk/rollup.config.js+++ b/sdk/rollup.config.js@@ -19,6 +19,7 @@ export default ['douyin/index': 'src/platform/douyin/index.ts','spine/index': 'src/spine/index.ts','tilemap/index': 'src/tilemap/index.ts',+ 'logic/index': 'src/logic/index.ts','dragonbones/index': 'src/dragonbones/index.ts','wasm': 'src/wasm.ts',},diff --git a/sdk/src/app/pluginSets.ts b/sdk/src/app/pluginSets.tsindex cc9426bb2..464845d73 100644--- a/sdk/src/app/pluginSets.ts+++ b/sdk/src/app/pluginSets.ts@@ -34,7 +34,6 @@ import { timerPlugin } from '../ecs/timer';import { velocityPlugin } from '../velocity';import { lifecyclePlugin } from '../ecs/lifecycle';import { navPlugin, fsmPlugin, btPlugin, perceptionPlugin } from '../ai';-import { scriptGraphPlugin } from '../logic';import { eventBindingPlugin } from '../eventBinding';import { replicationPlugin } from '../net/replication';import { servicesPlugin } from '../services';@@ -54,7 +53,7 @@ import { diagnosticsPlugin } from '../diagnostics';export const simulationBasePlugins = (): Plugin[] => [diagnosticsPlugin,timerPlugin, velocityPlugin, lifecyclePlugin, audioPlugin,- perceptionPlugin, fsmPlugin, btPlugin, scriptGraphPlugin, navPlugin, eventBindingPlugin, replicationPlugin,+ perceptionPlugin, fsmPlugin, btPlugin, navPlugin, eventBindingPlugin, replicationPlugin,servicesPlugin,];@@ -74,6 +73,6 @@ export const webBasePlugins = (): Plugin[] => [timerPlugin, velocityPlugin, lifecyclePlugin, animationPlugin, audioPlugin, videoPlugin,particlePlugin, trailPlugin, meshRendererPlugin, postProcessPlugin, timelinePlugin,gameplayPlugin,- perceptionPlugin, fsmPlugin, btPlugin, scriptGraphPlugin, navPlugin, eventBindingPlugin, replicationPlugin,+ perceptionPlugin, fsmPlugin, btPlugin, navPlugin, eventBindingPlugin, replicationPlugin,servicesPlugin,];diff --git a/sdk/src/asset/Assets.ts b/sdk/src/asset/Assets.tsindex 6dad5fd46..5800ee929 100644--- a/sdk/src/asset/Assets.ts+++ b/sdk/src/asset/Assets.ts@@ -43,7 +43,6 @@ import { FsmAssetLoader } from './loaders/FsmAssetLoader';import { AnimatorControllerAssetLoader } from './loaders/AnimatorControllerAssetLoader';import { AvatarAssetLoader } from './loaders/AvatarAssetLoader';import { BtAssetLoader } from './loaders/BtAssetLoader';-import { ScriptGraphAssetLoader } from './loaders/ScriptGraphAssetLoader';import { preparePrefab, type PreparedPrefab } from '../prefab/preparedPrefab';import { LocaleAssetLoader } from './loaders/LocaleAssetLoader';import { JsonAssetLoader } from './loaders/JsonAssetLoader';@@ -2248,7 +2247,6 @@ export class Assets {this.register(new AnimatorControllerAssetLoader());this.register(new AvatarAssetLoader());this.register(new BtAssetLoader());- this.register(new ScriptGraphAssetLoader());this.register(new LocaleAssetLoader());this.register(new JsonAssetLoader());// …and whatever an optional subsystem brought with it. A loader namesdiff --git a/sdk/src/core-content.ts b/sdk/src/core-content.tsindex f73733ce1..1d6305216 100644--- a/sdk/src/core-content.ts+++ b/sdk/src/core-content.ts@@ -903,72 +903,6 @@ export {// Script graph — the `.esgraph` authoring form: events, an exec wire, data wires// =============================================================================-export {- SCRIPT_GRAPH_VERSION,- emptyScriptGraph,- canConnect,- coerceValue,- defaultForType,- describeNode,- sequenceCount,- BUILTIN_NODE_KINDS,- scriptGraphPrefabRefs,- graphCallRef,- scriptGraphCallRefs,- isCallableGraph,- signatureOf,- scriptCatalog,- MAX_CALL_DEPTH,- compileScriptGraph,- createScriptRunState,- stepScriptGraph,- destroyScriptGraph,- fireScriptGraphEvent,- DEFAULT_STEP_BUDGET,- type ScriptGraph,- type ScriptGraphNode,- type ScriptGraphEdge,- type ScriptGraphVariable,- type ScriptGraphPort,- type ScriptPort,- type ScriptValue,- type ScriptValueType,- type ScriptNodeShape,- type ScriptVerbCatalog,- type ScriptGraphSignature,- type ScriptFrame,- type CompiledScriptGraph,- type ScriptRunState,- type ScriptTickContext,- ScriptGraphAgent,- registerScriptGraph,- getScriptGraph,- clearScriptGraphStore,- ScriptGraphPlugin,- scriptGraphPlugin,- ScriptGraphs,- AiScriptGraphs,- stepScriptGraphs,- scriptGraphTouches,- ensureBuiltinScriptNodes,- addScriptNode,- moveScriptNode,- removeScriptNode,- setScriptNodeLiteral,- canConnectPorts,- connectScriptNodes,- disconnectScriptInput,- disconnectScriptExec,- removeScriptEdge,- addScriptVariable,- removeScriptVariable,- renameScriptVariable,- addScriptGraphPort,- removeScriptGraphPort,- renameScriptGraphPort,- retypeScriptGraphPort,- type ScriptGraphAgentData,-} from './logic';// =============================================================================// AI — Perception (sight/FOV sensing into a Perception component)diff --git a/sdk/src/logic/index.ts b/sdk/src/logic/index.tsindex 242848447..dc197794b 100644--- a/sdk/src/logic/index.ts+++ b/sdk/src/logic/index.ts@@ -100,3 +100,8 @@ export {renameScriptGraphPort,retypeScriptGraphPort,} from './graphOps';++// Importing this subpath INSTALLS script graphs — see spine/index.ts.+import { registerScriptGraphSupport } from './logicSupport';++registerScriptGraphSupport();diff --git a/sdk/src/logic/logicSupport.ts b/sdk/src/logic/logicSupport.tsnew file mode 100644index 000000000..0bd5adac7--- /dev/null+++ b/sdk/src/logic/logicSupport.ts@@ -0,0 +1,18 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+/**+ * @file logicSupport.ts — what a build that ships script graphs tells the core.+ *+ * A call, not a file's side effect — see spine/spineSupport.ts. The loader+ * names this subsystem's compiler, so one the asset registry constructs is one+ * every package carries.+ */+import { addEntryPlugin } from '../runtime/entryPlugins';+import { addAssetLoader } from '../asset/optionalLoaders';+import { scriptGraphPlugin } from './ScriptGraphPlugin';+import { ScriptGraphAssetLoader } from '../asset/loaders/ScriptGraphAssetLoader';++export function registerScriptGraphSupport(): void {+ addEntryPlugin('logic', () => scriptGraphPlugin);+ addAssetLoader('scriptGraph', () => new ScriptGraphAssetLoader() as never);+}diff --git a/sdk/src/runtime/optionalPlugins.ts b/sdk/src/runtime/optionalPlugins.tsindex 6b9ee96c3..1acd72fef 100644--- a/sdk/src/runtime/optionalPlugins.ts+++ b/sdk/src/runtime/optionalPlugins.ts@@ -20,6 +20,7 @@ import { registerDragonBonesSupport } from '../dragonbones/dragonBonesSupport';import { registerPhysics2DSupport } from '../physics/physicsSupport';import { registerPhysics3DSupport } from '../physics3d/physics3dSupport';import { registerTilemapSupport } from '../tilemap/tilemapSupport';+import { registerScriptGraphSupport } from '../logic/logicSupport';export function installOptionalPlugins(): void {registerSpineSupport();@@ -27,6 +28,7 @@ export function installOptionalPlugins(): void {registerPhysics2DSupport();registerPhysics3DSupport();registerTilemapSupport();+ registerScriptGraphSupport();// Video has no subpath of its own to be installed from, so it registers here.setSceneOptionals({video: {diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 4124a780a..db955214b 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -690,6 +690,10 @@ export const NOTED = {{ internal: 'the wording of a message the export already printed' },'fix(details): the Inspector names the new reason a texture ships raw':{ note: 'A texture that encodes larger than its source now ships as the source.' },+ 'refactor(logic): the script-graph API moves to its own subpath':+ { note: "Script graphs are a subpath: `import { … } from 'esengine/logic'`." },+ 'refactor(logic): the editor imports script graphs from their subpath':+ { note: "Script graphs are a subpath: `import { … } from 'esengine/logic'`." },'refactor(tilemap): the editor imports tilemaps from the subpath that owns them':{ note: "Tilemaps are a subpath: `import { Tilemap } from 'esengine/tilemap'`." },'refactor(tilemap): the tilemap API moves to its own subpath':