@holoscript/core 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/chunk-2XXE34KS.js +344 -0
  2. package/dist/chunk-2XXE34KS.js.map +1 -0
  3. package/dist/chunk-3X2EGU7Z.cjs +52 -0
  4. package/dist/chunk-3X2EGU7Z.cjs.map +1 -0
  5. package/dist/chunk-AFFVFO4D.js +1689 -0
  6. package/dist/chunk-AFFVFO4D.js.map +1 -0
  7. package/dist/chunk-DGUM43GV.js +10 -0
  8. package/dist/chunk-DGUM43GV.js.map +1 -0
  9. package/{src/HoloScriptDebugger.ts → dist/chunk-DOY73HDH.js} +118 -257
  10. package/dist/chunk-DOY73HDH.js.map +1 -0
  11. package/dist/chunk-JEQ2X3Z6.cjs +12 -0
  12. package/dist/chunk-JEQ2X3Z6.cjs.map +1 -0
  13. package/dist/chunk-L6VLNVKP.cjs +1691 -0
  14. package/dist/chunk-L6VLNVKP.cjs.map +1 -0
  15. package/dist/chunk-MFNO57XL.cjs +347 -0
  16. package/dist/chunk-MFNO57XL.cjs.map +1 -0
  17. package/dist/chunk-R75MREOS.cjs +424 -0
  18. package/dist/chunk-R75MREOS.cjs.map +1 -0
  19. package/dist/chunk-SATNCODL.js +45 -0
  20. package/dist/chunk-SATNCODL.js.map +1 -0
  21. package/dist/chunk-T57ZL7KR.cjs +1281 -0
  22. package/dist/chunk-T57ZL7KR.cjs.map +1 -0
  23. package/dist/chunk-U72GEJZT.js +1279 -0
  24. package/dist/chunk-U72GEJZT.js.map +1 -0
  25. package/dist/debugger.cjs +20 -0
  26. package/dist/debugger.cjs.map +1 -0
  27. package/dist/debugger.d.cts +171 -0
  28. package/dist/debugger.d.ts +171 -0
  29. package/dist/debugger.js +7 -0
  30. package/dist/debugger.js.map +1 -0
  31. package/dist/index.cjs +6803 -0
  32. package/dist/index.cjs.map +1 -0
  33. package/dist/index.d.cts +4093 -0
  34. package/dist/index.d.ts +4093 -0
  35. package/dist/index.js +6715 -0
  36. package/dist/index.js.map +1 -0
  37. package/dist/parser.cjs +14 -0
  38. package/dist/parser.cjs.map +1 -0
  39. package/dist/parser.d.cts +172 -0
  40. package/dist/parser.d.ts +172 -0
  41. package/dist/parser.js +5 -0
  42. package/dist/parser.js.map +1 -0
  43. package/dist/runtime.cjs +14 -0
  44. package/dist/runtime.cjs.map +1 -0
  45. package/dist/runtime.d.cts +200 -0
  46. package/dist/runtime.d.ts +200 -0
  47. package/dist/runtime.js +5 -0
  48. package/dist/runtime.js.map +1 -0
  49. package/dist/type-checker.cjs +17 -0
  50. package/dist/type-checker.cjs.map +1 -0
  51. package/dist/type-checker.d.cts +105 -0
  52. package/dist/type-checker.d.ts +105 -0
  53. package/dist/type-checker.js +4 -0
  54. package/dist/type-checker.js.map +1 -0
  55. package/dist/types-4h8cbtF_.d.cts +329 -0
  56. package/dist/types-4h8cbtF_.d.ts +329 -0
  57. package/package.json +17 -13
  58. package/src/HoloScript2DParser.js +0 -227
  59. package/src/HoloScript2DParser.ts +0 -261
  60. package/src/HoloScriptCodeParser.js +0 -1102
  61. package/src/HoloScriptCodeParser.ts +0 -1188
  62. package/src/HoloScriptDebugger.js +0 -458
  63. package/src/HoloScriptParser.js +0 -338
  64. package/src/HoloScriptParser.ts +0 -397
  65. package/src/HoloScriptPlusParser.js +0 -371
  66. package/src/HoloScriptPlusParser.ts +0 -543
  67. package/src/HoloScriptRuntime.js +0 -1399
  68. package/src/HoloScriptRuntime.test.js +0 -351
  69. package/src/HoloScriptRuntime.test.ts +0 -436
  70. package/src/HoloScriptRuntime.ts +0 -1653
  71. package/src/HoloScriptTypeChecker.js +0 -356
  72. package/src/HoloScriptTypeChecker.ts +0 -475
  73. package/src/__tests__/GraphicsServices.test.js +0 -357
  74. package/src/__tests__/GraphicsServices.test.ts +0 -427
  75. package/src/__tests__/HoloScriptPlusParser.test.js +0 -317
  76. package/src/__tests__/HoloScriptPlusParser.test.ts +0 -392
  77. package/src/__tests__/integration.test.js +0 -336
  78. package/src/__tests__/integration.test.ts +0 -416
  79. package/src/__tests__/performance.bench.js +0 -218
  80. package/src/__tests__/performance.bench.ts +0 -262
  81. package/src/__tests__/type-checker.test.js +0 -60
  82. package/src/__tests__/type-checker.test.ts +0 -73
  83. package/src/index.js +0 -217
  84. package/src/index.ts +0 -426
  85. package/src/interop/Interoperability.js +0 -413
  86. package/src/interop/Interoperability.ts +0 -494
  87. package/src/logger.js +0 -42
  88. package/src/logger.ts +0 -57
  89. package/src/parser/EnhancedParser.js +0 -205
  90. package/src/parser/EnhancedParser.ts +0 -251
  91. package/src/parser/HoloScriptPlusParser.js +0 -928
  92. package/src/parser/HoloScriptPlusParser.ts +0 -1089
  93. package/src/runtime/HoloScriptPlusRuntime.js +0 -674
  94. package/src/runtime/HoloScriptPlusRuntime.ts +0 -861
  95. package/src/runtime/PerformanceTelemetry.js +0 -323
  96. package/src/runtime/PerformanceTelemetry.ts +0 -467
  97. package/src/runtime/RuntimeOptimization.js +0 -361
  98. package/src/runtime/RuntimeOptimization.ts +0 -416
  99. package/src/services/HololandGraphicsPipelineService.js +0 -506
  100. package/src/services/HololandGraphicsPipelineService.ts +0 -662
  101. package/src/services/PlatformPerformanceOptimizer.js +0 -356
  102. package/src/services/PlatformPerformanceOptimizer.ts +0 -503
  103. package/src/state/ReactiveState.js +0 -427
  104. package/src/state/ReactiveState.ts +0 -572
  105. package/src/tools/DeveloperExperience.js +0 -376
  106. package/src/tools/DeveloperExperience.ts +0 -438
  107. package/src/traits/AIDriverTrait.js +0 -322
  108. package/src/traits/AIDriverTrait.test.js +0 -329
  109. package/src/traits/AIDriverTrait.test.ts +0 -357
  110. package/src/traits/AIDriverTrait.ts +0 -474
  111. package/src/traits/LightingTrait.js +0 -313
  112. package/src/traits/LightingTrait.test.js +0 -410
  113. package/src/traits/LightingTrait.test.ts +0 -462
  114. package/src/traits/LightingTrait.ts +0 -505
  115. package/src/traits/MaterialTrait.js +0 -194
  116. package/src/traits/MaterialTrait.test.js +0 -286
  117. package/src/traits/MaterialTrait.test.ts +0 -329
  118. package/src/traits/MaterialTrait.ts +0 -324
  119. package/src/traits/RenderingTrait.js +0 -356
  120. package/src/traits/RenderingTrait.test.js +0 -363
  121. package/src/traits/RenderingTrait.test.ts +0 -427
  122. package/src/traits/RenderingTrait.ts +0 -555
  123. package/src/traits/VRTraitSystem.js +0 -740
  124. package/src/traits/VRTraitSystem.ts +0 -1040
  125. package/src/traits/VoiceInputTrait.js +0 -284
  126. package/src/traits/VoiceInputTrait.test.js +0 -226
  127. package/src/traits/VoiceInputTrait.test.ts +0 -252
  128. package/src/traits/VoiceInputTrait.ts +0 -401
  129. package/src/types/AdvancedTypeSystem.js +0 -226
  130. package/src/types/AdvancedTypeSystem.ts +0 -494
  131. package/src/types/HoloScriptPlus.d.ts +0 -853
  132. package/src/types.js +0 -6
  133. package/src/types.ts +0 -369
  134. package/tsconfig.json +0 -23
  135. package/tsup.config.d.ts +0 -2
  136. package/tsup.config.js +0 -18
  137. package/tsup.config.ts +0 -19
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkT57ZL7KR_cjs = require('./chunk-T57ZL7KR.cjs');
4
+ require('./chunk-3X2EGU7Z.cjs');
5
+ require('./chunk-JEQ2X3Z6.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "HoloScriptCodeParser", {
10
+ enumerable: true,
11
+ get: function () { return chunkT57ZL7KR_cjs.HoloScriptCodeParser; }
12
+ });
13
+ //# sourceMappingURL=parser.cjs.map
14
+ //# sourceMappingURL=parser.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"parser.cjs"}
@@ -0,0 +1,172 @@
1
+ import { A as ASTNode } from './types-4h8cbtF_.cjs';
2
+
3
+ /**
4
+ * HoloScript Code Parser
5
+ *
6
+ * Parses HoloScript code strings into AST nodes that can be executed
7
+ * by the HoloScriptRuntime.
8
+ *
9
+ * Syntax Reference:
10
+ * - orb <name> { properties }
11
+ * - function <name>(<params>): <return> { body }
12
+ * - connect <from> to <to> [as <type>]
13
+ * - gate <name> { condition, true_path, false_path }
14
+ * - stream <name> from <source> { transformations }
15
+ */
16
+
17
+ interface ParseResult {
18
+ success: boolean;
19
+ ast: ASTNode[];
20
+ errors: ParseError[];
21
+ warnings: string[];
22
+ }
23
+ interface ParseError {
24
+ line: number;
25
+ column: number;
26
+ message: string;
27
+ }
28
+ declare class HoloScriptCodeParser {
29
+ private errors;
30
+ private warnings;
31
+ private tokens;
32
+ private position;
33
+ private keywordSet;
34
+ constructor();
35
+ /**
36
+ * Parse HoloScript code string into AST
37
+ */
38
+ parse(code: string): ParseResult;
39
+ /**
40
+ * Tokenize code into tokens
41
+ */
42
+ private tokenize;
43
+ /**
44
+ * Parse program (list of declarations)
45
+ */
46
+ private parseProgram;
47
+ /**
48
+ * Parse a single declaration
49
+ */
50
+ private parseDeclaration;
51
+ /**
52
+ * Parse for loop: for (init; condition; update) { body }
53
+ */
54
+ private parseForLoop;
55
+ /**
56
+ * Parse while loop: while (condition) { body }
57
+ */
58
+ private parseWhileLoop;
59
+ /**
60
+ * Parse forEach loop: forEach item in collection { body }
61
+ */
62
+ private parseForEachLoop;
63
+ /**
64
+ * Parse import: import { x, y } from "module"
65
+ */
66
+ private parseImport;
67
+ /**
68
+ * Parse export: export { x, y } or export function/orb
69
+ */
70
+ private parseExport;
71
+ /**
72
+ * Parse variable declaration: const/let/var name = value
73
+ */
74
+ private parseVariableDeclaration;
75
+ /**
76
+ * Parse orb declaration
77
+ */
78
+ private parseOrb;
79
+ /**
80
+ * Parse HoloScript+ directive: @name(...) or @name { ... }
81
+ */
82
+ private parseDirective;
83
+ /**
84
+ * Parse function declaration
85
+ */
86
+ private parseFunction;
87
+ /**
88
+ * Parse connection
89
+ */
90
+ private parseConnection;
91
+ /**
92
+ * Parse scale block: scale <magnitude> { body }
93
+ */
94
+ private parseScale;
95
+ /**
96
+ * Parse focus block: focus <target> { body }
97
+ */
98
+ private parseFocus;
99
+ /**
100
+ * Parse environment declaration
101
+ */
102
+ private parseEnvironment;
103
+ /**
104
+ * Parse composition block
105
+ */
106
+ private parseComposition;
107
+ /**
108
+ * Parse template declaration
109
+ */
110
+ private parseTemplate;
111
+ /**
112
+ * Parse gate (conditional)
113
+ */
114
+ private parseGate;
115
+ /**
116
+ * Parse stream
117
+ */
118
+ private parseStream;
119
+ /**
120
+ * Parse nexus (multi-agent hub)
121
+ */
122
+ private parseNexus;
123
+ /**
124
+ * Parse building (class-like)
125
+ */
126
+ private parseBuilding;
127
+ /**
128
+ * Parse a literal value (string, number, boolean, array, or object)
129
+ */
130
+ private parseLiteral;
131
+ /**
132
+ * Parse a property (key: value)
133
+ */
134
+ private parseProperty;
135
+ /**
136
+ * Parse array [...]
137
+ */
138
+ private parseArray;
139
+ /**
140
+ * Parse object {...}
141
+ */
142
+ private parseObject;
143
+ /**
144
+ * Parse position from value
145
+ */
146
+ private parsePosition;
147
+ private currentToken;
148
+ private advance;
149
+ private check;
150
+ private expect;
151
+ private expectIdentifier;
152
+ /**
153
+ * Parse animate command: animate target property: "..." from: 0 to: 1 duration: 1000
154
+ */
155
+ private parseAnimate;
156
+ /**
157
+ * Parse modify command: modify target { prop: value }
158
+ */
159
+ private parseModify;
160
+ /**
161
+ * Parse UI Element: ui2d dashboard#id { ... }
162
+ */
163
+ private parseUIElement;
164
+ /**
165
+ * Parse settings command: settings
166
+ */
167
+ private parseSettings;
168
+ private parseChat;
169
+ private skipNewlines;
170
+ }
171
+
172
+ export { HoloScriptCodeParser, type ParseError, type ParseResult };
@@ -0,0 +1,172 @@
1
+ import { A as ASTNode } from './types-4h8cbtF_.js';
2
+
3
+ /**
4
+ * HoloScript Code Parser
5
+ *
6
+ * Parses HoloScript code strings into AST nodes that can be executed
7
+ * by the HoloScriptRuntime.
8
+ *
9
+ * Syntax Reference:
10
+ * - orb <name> { properties }
11
+ * - function <name>(<params>): <return> { body }
12
+ * - connect <from> to <to> [as <type>]
13
+ * - gate <name> { condition, true_path, false_path }
14
+ * - stream <name> from <source> { transformations }
15
+ */
16
+
17
+ interface ParseResult {
18
+ success: boolean;
19
+ ast: ASTNode[];
20
+ errors: ParseError[];
21
+ warnings: string[];
22
+ }
23
+ interface ParseError {
24
+ line: number;
25
+ column: number;
26
+ message: string;
27
+ }
28
+ declare class HoloScriptCodeParser {
29
+ private errors;
30
+ private warnings;
31
+ private tokens;
32
+ private position;
33
+ private keywordSet;
34
+ constructor();
35
+ /**
36
+ * Parse HoloScript code string into AST
37
+ */
38
+ parse(code: string): ParseResult;
39
+ /**
40
+ * Tokenize code into tokens
41
+ */
42
+ private tokenize;
43
+ /**
44
+ * Parse program (list of declarations)
45
+ */
46
+ private parseProgram;
47
+ /**
48
+ * Parse a single declaration
49
+ */
50
+ private parseDeclaration;
51
+ /**
52
+ * Parse for loop: for (init; condition; update) { body }
53
+ */
54
+ private parseForLoop;
55
+ /**
56
+ * Parse while loop: while (condition) { body }
57
+ */
58
+ private parseWhileLoop;
59
+ /**
60
+ * Parse forEach loop: forEach item in collection { body }
61
+ */
62
+ private parseForEachLoop;
63
+ /**
64
+ * Parse import: import { x, y } from "module"
65
+ */
66
+ private parseImport;
67
+ /**
68
+ * Parse export: export { x, y } or export function/orb
69
+ */
70
+ private parseExport;
71
+ /**
72
+ * Parse variable declaration: const/let/var name = value
73
+ */
74
+ private parseVariableDeclaration;
75
+ /**
76
+ * Parse orb declaration
77
+ */
78
+ private parseOrb;
79
+ /**
80
+ * Parse HoloScript+ directive: @name(...) or @name { ... }
81
+ */
82
+ private parseDirective;
83
+ /**
84
+ * Parse function declaration
85
+ */
86
+ private parseFunction;
87
+ /**
88
+ * Parse connection
89
+ */
90
+ private parseConnection;
91
+ /**
92
+ * Parse scale block: scale <magnitude> { body }
93
+ */
94
+ private parseScale;
95
+ /**
96
+ * Parse focus block: focus <target> { body }
97
+ */
98
+ private parseFocus;
99
+ /**
100
+ * Parse environment declaration
101
+ */
102
+ private parseEnvironment;
103
+ /**
104
+ * Parse composition block
105
+ */
106
+ private parseComposition;
107
+ /**
108
+ * Parse template declaration
109
+ */
110
+ private parseTemplate;
111
+ /**
112
+ * Parse gate (conditional)
113
+ */
114
+ private parseGate;
115
+ /**
116
+ * Parse stream
117
+ */
118
+ private parseStream;
119
+ /**
120
+ * Parse nexus (multi-agent hub)
121
+ */
122
+ private parseNexus;
123
+ /**
124
+ * Parse building (class-like)
125
+ */
126
+ private parseBuilding;
127
+ /**
128
+ * Parse a literal value (string, number, boolean, array, or object)
129
+ */
130
+ private parseLiteral;
131
+ /**
132
+ * Parse a property (key: value)
133
+ */
134
+ private parseProperty;
135
+ /**
136
+ * Parse array [...]
137
+ */
138
+ private parseArray;
139
+ /**
140
+ * Parse object {...}
141
+ */
142
+ private parseObject;
143
+ /**
144
+ * Parse position from value
145
+ */
146
+ private parsePosition;
147
+ private currentToken;
148
+ private advance;
149
+ private check;
150
+ private expect;
151
+ private expectIdentifier;
152
+ /**
153
+ * Parse animate command: animate target property: "..." from: 0 to: 1 duration: 1000
154
+ */
155
+ private parseAnimate;
156
+ /**
157
+ * Parse modify command: modify target { prop: value }
158
+ */
159
+ private parseModify;
160
+ /**
161
+ * Parse UI Element: ui2d dashboard#id { ... }
162
+ */
163
+ private parseUIElement;
164
+ /**
165
+ * Parse settings command: settings
166
+ */
167
+ private parseSettings;
168
+ private parseChat;
169
+ private skipNewlines;
170
+ }
171
+
172
+ export { HoloScriptCodeParser, type ParseError, type ParseResult };
package/dist/parser.js ADDED
@@ -0,0 +1,5 @@
1
+ export { HoloScriptCodeParser } from './chunk-U72GEJZT.js';
2
+ import './chunk-SATNCODL.js';
3
+ import './chunk-DGUM43GV.js';
4
+ //# sourceMappingURL=parser.js.map
5
+ //# sourceMappingURL=parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"parser.js"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkL6VLNVKP_cjs = require('./chunk-L6VLNVKP.cjs');
4
+ require('./chunk-3X2EGU7Z.cjs');
5
+ require('./chunk-JEQ2X3Z6.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "HoloScriptRuntime", {
10
+ enumerable: true,
11
+ get: function () { return chunkL6VLNVKP_cjs.HoloScriptRuntime; }
12
+ });
13
+ //# sourceMappingURL=runtime.cjs.map
14
+ //# sourceMappingURL=runtime.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"runtime.cjs"}
@@ -0,0 +1,200 @@
1
+ import { v as ImportLoader, J as HoloScriptValue, A as ASTNode, B as ExecutionResult, K as ParticleSystem, z as RuntimeContext, Q as Animation, b as HologramProperties } from './types-4h8cbtF_.cjs';
2
+
3
+ /**
4
+ * HoloScript Runtime Engine
5
+ *
6
+ * Executes HoloScript AST in VR environment with spatial computation.
7
+ * Supports:
8
+ * - Orb creation and manipulation
9
+ * - Function definition and invocation with arguments
10
+ * - Connections and reactive data flow
11
+ * - Gates (conditionals)
12
+ * - Streams (data pipelines)
13
+ * - 2D UI elements
14
+ * - Built-in commands (show, hide, animate, pulse)
15
+ * - Expression evaluation
16
+ * - Event system
17
+ */
18
+
19
+ /**
20
+ * Event handler type
21
+ */
22
+ type EventHandler = (data?: HoloScriptValue) => void | Promise<void>;
23
+ /**
24
+ * UI Element state
25
+ */
26
+ interface UIElementState {
27
+ type: string;
28
+ name: string;
29
+ properties: Record<string, HoloScriptValue>;
30
+ value?: HoloScriptValue;
31
+ visible: boolean;
32
+ enabled: boolean;
33
+ }
34
+ declare class HoloScriptRuntime {
35
+ private context;
36
+ private particleSystems;
37
+ private executionHistory;
38
+ private startTime;
39
+ private nodeCount;
40
+ private currentScope;
41
+ private callStack;
42
+ private eventHandlers;
43
+ private animations;
44
+ private uiElements;
45
+ private builtinFunctions;
46
+ constructor(_importLoader?: ImportLoader, customFunctions?: Record<string, (args: HoloScriptValue[]) => HoloScriptValue>);
47
+ /**
48
+ * Initialize built-in functions
49
+ */
50
+ private initBuiltins;
51
+ /**
52
+ * Execute a single AST node
53
+ */
54
+ executeNode(node: ASTNode): Promise<ExecutionResult>;
55
+ /**
56
+ * Execute multiple nodes or a single node (unified entry point)
57
+ */
58
+ execute(nodes: ASTNode | ASTNode[]): Promise<ExecutionResult>;
59
+ /**
60
+ * Execute multiple nodes in sequence
61
+ */
62
+ executeProgram(nodes: ASTNode[], depth?: number): Promise<ExecutionResult[]>;
63
+ /**
64
+ * Call a function with arguments
65
+ */
66
+ callFunction(name: string, args?: HoloScriptValue[]): Promise<ExecutionResult>;
67
+ /**
68
+ * Set a variable in current scope
69
+ */
70
+ setVariable(name: string, value: HoloScriptValue): void;
71
+ /**
72
+ * Get a variable from scope chain
73
+ */
74
+ getVariable(name: string): HoloScriptValue;
75
+ /**
76
+ * Evaluate an expression
77
+ */
78
+ evaluateExpression(expr: string): HoloScriptValue;
79
+ private executeOrb;
80
+ private executeFunction;
81
+ private executeConnection;
82
+ private executeGate;
83
+ private executeStream;
84
+ private executeCall;
85
+ private executeDebug;
86
+ private executeVisualize;
87
+ private executeUIElement;
88
+ /**
89
+ * Execute generic voice commands
90
+ * Handles commands like: show, hide, animate, pulse, create
91
+ */
92
+ private executeGeneric;
93
+ /**
94
+ * Execute 'show' command
95
+ */
96
+ private executeShowCommand;
97
+ /**
98
+ * Execute 'hide' command
99
+ */
100
+ private executeHideCommand;
101
+ /**
102
+ * Execute 'create' command
103
+ */
104
+ private executeCreateCommand;
105
+ /**
106
+ * Execute 'animate' command
107
+ */
108
+ private executeAnimateCommand;
109
+ /**
110
+ * Execute 'pulse' command
111
+ */
112
+ private executePulseCommand;
113
+ /**
114
+ * Execute 'move' command
115
+ */
116
+ private executeMoveCommand;
117
+ /**
118
+ * Execute 'delete' command
119
+ */
120
+ private executeDeleteCommand;
121
+ private executeStructure;
122
+ private executeAssignment;
123
+ private executeReturn;
124
+ private evaluateCondition;
125
+ private applyTransformation;
126
+ /**
127
+ * Register event handler
128
+ */
129
+ on(event: string, handler: EventHandler): void;
130
+ /**
131
+ * Register host function
132
+ */
133
+ registerFunction(name: string, handler: (args: HoloScriptValue[]) => HoloScriptValue): void;
134
+ /**
135
+ * Remove event handler
136
+ */
137
+ off(event: string, handler?: EventHandler): void;
138
+ /**
139
+ * Emit event
140
+ */
141
+ emit(event: string, data?: unknown): Promise<void>;
142
+ /**
143
+ * Trigger UI event
144
+ */
145
+ triggerUIEvent(elementName: string, eventType: string, data?: unknown): Promise<void>;
146
+ /**
147
+ * Update all animations
148
+ */
149
+ updateAnimations(): void;
150
+ /**
151
+ * Update real-life and system variables ($time, $user, etc.)
152
+ */
153
+ private updateSystemVariables;
154
+ private handleShop;
155
+ private handleInventory;
156
+ private handlePurchase;
157
+ private handlePresence;
158
+ private handleInvite;
159
+ private handleShare;
160
+ private handlePhysics;
161
+ private handleGravity;
162
+ private handleCollide;
163
+ /**
164
+ * Handle calculate_arc(start, end, speed)
165
+ */
166
+ private handleCalculateArc;
167
+ private handleAnimate;
168
+ private applyEasing;
169
+ private createParticleEffect;
170
+ private createConnectionStream;
171
+ private createFlowingStream;
172
+ private createExecutionEffect;
173
+ private createDataVisualization;
174
+ private getDataTypeColor;
175
+ getParticleSystems(): Map<string, ParticleSystem>;
176
+ updateParticles(deltaTime: number): void;
177
+ getContext(): RuntimeContext;
178
+ getUIElements(): Map<string, UIElementState>;
179
+ getUIElement(name: string): UIElementState | undefined;
180
+ getAnimations(): Map<string, Animation>;
181
+ reset(): void;
182
+ private createEmptyContext;
183
+ private executeScale;
184
+ private executeFocus;
185
+ private executeEnvironment;
186
+ private executeComposition;
187
+ private executeTemplate;
188
+ private executeServerNode;
189
+ private executeDatabaseNode;
190
+ private executeFetchNode;
191
+ private executeTarget;
192
+ private executeStateDeclaration;
193
+ private applyDirectives;
194
+ getExecutionHistory(): ExecutionResult[];
195
+ getHologramStates(): Map<string, HologramProperties>;
196
+ getCallStack(): string[];
197
+ getState(): Record<string, HoloScriptValue>;
198
+ }
199
+
200
+ export { HoloScriptRuntime };