@holoscript/core 2.0.2 → 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.
- package/dist/{chunk-KWYIVRIH.js → chunk-2XXE34KS.js} +2 -2
- package/dist/chunk-2XXE34KS.js.map +1 -0
- package/dist/{chunk-EU6CZMGJ.js → chunk-AFFVFO4D.js} +511 -118
- package/dist/chunk-AFFVFO4D.js.map +1 -0
- package/dist/chunk-DGUM43GV.js +10 -0
- package/dist/{chunk-4CV4JOE5.js.map → chunk-DGUM43GV.js.map} +1 -1
- package/dist/{chunk-VYIDLUCV.js → chunk-DOY73HDH.js} +4 -4
- package/dist/{chunk-VYIDLUCV.js.map → chunk-DOY73HDH.js.map} +1 -1
- package/dist/chunk-JEQ2X3Z6.cjs +12 -0
- package/dist/{chunk-CZLDE2OZ.cjs.map → chunk-JEQ2X3Z6.cjs.map} +1 -1
- package/dist/{chunk-3N67RLQP.cjs → chunk-L6VLNVKP.cjs} +511 -118
- package/dist/chunk-L6VLNVKP.cjs.map +1 -0
- package/dist/{chunk-VMZN4EVR.cjs → chunk-MFNO57XL.cjs} +2 -2
- package/dist/chunk-MFNO57XL.cjs.map +1 -0
- package/dist/{chunk-WFI4T3XB.cjs → chunk-R75MREOS.cjs} +6 -6
- package/dist/{chunk-WFI4T3XB.cjs.map → chunk-R75MREOS.cjs.map} +1 -1
- package/dist/{chunk-4OHVW4XR.cjs → chunk-T57ZL7KR.cjs} +299 -45
- package/dist/chunk-T57ZL7KR.cjs.map +1 -0
- package/dist/{chunk-MCP6D4LT.js → chunk-U72GEJZT.js} +299 -45
- package/dist/chunk-U72GEJZT.js.map +1 -0
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.d.cts +1 -1
- package/dist/debugger.d.ts +1 -1
- package/dist/debugger.js +4 -4
- package/dist/index.cjs +1896 -1099
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3145 -1534
- package/dist/index.d.ts +3145 -1534
- package/dist/index.js +1922 -1133
- package/dist/index.js.map +1 -1
- package/dist/parser.cjs +3 -3
- package/dist/parser.d.cts +34 -1
- package/dist/parser.d.ts +34 -1
- package/dist/parser.js +2 -2
- package/dist/runtime.cjs +3 -3
- package/dist/runtime.d.cts +47 -27
- package/dist/runtime.d.ts +47 -27
- package/dist/runtime.js +2 -2
- package/dist/type-checker.cjs +4 -4
- package/dist/type-checker.d.cts +3 -3
- package/dist/type-checker.d.ts +3 -3
- package/dist/type-checker.js +2 -2
- package/dist/{types-D6g4ACjP.d.cts → types-4h8cbtF_.d.cts} +80 -13
- package/dist/{types-D6g4ACjP.d.ts → types-4h8cbtF_.d.ts} +80 -13
- package/package.json +21 -20
- package/LICENSE +0 -21
- package/dist/chunk-3N67RLQP.cjs.map +0 -1
- package/dist/chunk-4CV4JOE5.js +0 -24
- package/dist/chunk-4OHVW4XR.cjs.map +0 -1
- package/dist/chunk-CZLDE2OZ.cjs +0 -28
- package/dist/chunk-EU6CZMGJ.js.map +0 -1
- package/dist/chunk-KWYIVRIH.js.map +0 -1
- package/dist/chunk-MCP6D4LT.js.map +0 -1
- package/dist/chunk-VMZN4EVR.cjs.map +0 -1
|
@@ -16,7 +16,7 @@ interface Size2D {
|
|
|
16
16
|
width: number;
|
|
17
17
|
height: number;
|
|
18
18
|
}
|
|
19
|
-
type HologramShape = 'orb' | 'cube' | 'cylinder' | 'pyramid' | 'sphere';
|
|
19
|
+
type HologramShape = 'orb' | 'cube' | 'cylinder' | 'pyramid' | 'sphere' | 'function' | 'gate' | 'stream' | 'server' | 'database' | 'fetch';
|
|
20
20
|
interface HologramProperties {
|
|
21
21
|
shape: HologramShape;
|
|
22
22
|
color: string;
|
|
@@ -39,6 +39,20 @@ interface GestureData {
|
|
|
39
39
|
magnitude: number;
|
|
40
40
|
hand: HandType;
|
|
41
41
|
}
|
|
42
|
+
interface Animation {
|
|
43
|
+
target: string;
|
|
44
|
+
property: string;
|
|
45
|
+
from: number;
|
|
46
|
+
to: number;
|
|
47
|
+
duration: number;
|
|
48
|
+
startTime: number;
|
|
49
|
+
easing: string;
|
|
50
|
+
loop?: boolean;
|
|
51
|
+
yoyo?: boolean;
|
|
52
|
+
}
|
|
53
|
+
type HoloScriptValue = string | number | boolean | null | undefined | HoloScriptValue[] | {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
} | ASTNode | Function | SpatialPosition | HologramProperties | Animation;
|
|
42
56
|
interface ASTNode {
|
|
43
57
|
type: string;
|
|
44
58
|
position?: SpatialPosition;
|
|
@@ -47,11 +61,44 @@ interface ASTNode {
|
|
|
47
61
|
line?: number;
|
|
48
62
|
/** Source column number (0-indexed) */
|
|
49
63
|
column?: number;
|
|
50
|
-
|
|
64
|
+
/** HS+ Directives */
|
|
65
|
+
directives?: HSPlusDirective[];
|
|
66
|
+
}
|
|
67
|
+
type VRTraitName = 'grabbable' | 'throwable' | 'pointable' | 'hoverable' | 'scalable' | 'rotatable' | 'stackable' | 'snappable' | 'breakable';
|
|
68
|
+
type LifecycleHook = 'on_mount' | 'on_unmount' | 'on_update' | 'on_data_update';
|
|
69
|
+
type VRLifecycleHook = 'on_grab' | 'on_release' | 'on_hover_enter' | 'on_hover_exit' | 'on_point_enter' | 'on_point_exit' | 'on_collision' | 'on_trigger_enter' | 'on_trigger_exit' | 'on_click' | 'on_double_click';
|
|
70
|
+
type ControllerHook = 'on_controller_button' | 'on_trigger_hold' | 'on_trigger_release' | 'on_grip_hold' | 'on_grip_release';
|
|
71
|
+
type HSPlusDirective = {
|
|
72
|
+
type: 'state';
|
|
73
|
+
body: Record<string, HoloScriptValue>;
|
|
74
|
+
} | {
|
|
75
|
+
type: 'for';
|
|
76
|
+
variable: string;
|
|
77
|
+
iterable: string;
|
|
78
|
+
body: ASTNode[];
|
|
79
|
+
} | {
|
|
80
|
+
type: 'if';
|
|
81
|
+
condition: string;
|
|
82
|
+
body: ASTNode[];
|
|
83
|
+
else?: ASTNode[];
|
|
84
|
+
} | {
|
|
85
|
+
type: 'import';
|
|
86
|
+
path: string;
|
|
87
|
+
alias: string;
|
|
88
|
+
} | {
|
|
89
|
+
type: 'lifecycle';
|
|
90
|
+
hook: LifecycleHook | VRLifecycleHook | ControllerHook;
|
|
91
|
+
params?: string[];
|
|
92
|
+
body: string;
|
|
93
|
+
} | {
|
|
94
|
+
type: 'trait';
|
|
95
|
+
name: VRTraitName;
|
|
96
|
+
config: Record<string, HoloScriptValue>;
|
|
97
|
+
};
|
|
51
98
|
interface OrbNode extends ASTNode {
|
|
52
99
|
type: 'orb';
|
|
53
100
|
name: string;
|
|
54
|
-
properties: Record<string,
|
|
101
|
+
properties: Record<string, HoloScriptValue>;
|
|
55
102
|
methods: MethodNode[];
|
|
56
103
|
}
|
|
57
104
|
interface MethodNode extends ASTNode {
|
|
@@ -65,7 +112,7 @@ interface ParameterNode extends ASTNode {
|
|
|
65
112
|
type: 'parameter';
|
|
66
113
|
name: string;
|
|
67
114
|
dataType: string;
|
|
68
|
-
defaultValue?:
|
|
115
|
+
defaultValue?: HoloScriptValue;
|
|
69
116
|
}
|
|
70
117
|
interface ConnectionNode extends ASTNode {
|
|
71
118
|
type: 'connection';
|
|
@@ -89,10 +136,10 @@ interface StreamNode extends ASTNode {
|
|
|
89
136
|
interface TransformationNode extends ASTNode {
|
|
90
137
|
type: 'transformation';
|
|
91
138
|
operation: string;
|
|
92
|
-
parameters: Record<string,
|
|
139
|
+
parameters: Record<string, HoloScriptValue>;
|
|
93
140
|
}
|
|
94
141
|
interface GenericASTNode extends ASTNode {
|
|
95
|
-
[key: string]: unknown;
|
|
142
|
+
[key: string]: HoloScriptValue | unknown;
|
|
96
143
|
}
|
|
97
144
|
interface ForLoopNode extends ASTNode {
|
|
98
145
|
type: 'for-loop';
|
|
@@ -112,6 +159,12 @@ interface ForEachLoopNode extends ASTNode {
|
|
|
112
159
|
collection: string;
|
|
113
160
|
body: ASTNode[];
|
|
114
161
|
}
|
|
162
|
+
interface TemplateNode extends ASTNode {
|
|
163
|
+
type: 'template';
|
|
164
|
+
name: string;
|
|
165
|
+
parameters: string[];
|
|
166
|
+
body: ASTNode[];
|
|
167
|
+
}
|
|
115
168
|
interface ImportNode extends ASTNode {
|
|
116
169
|
type: 'import';
|
|
117
170
|
imports: string[];
|
|
@@ -129,7 +182,7 @@ interface VariableDeclarationNode extends ASTNode {
|
|
|
129
182
|
kind: 'const' | 'let' | 'var';
|
|
130
183
|
name: string;
|
|
131
184
|
dataType?: string;
|
|
132
|
-
value?:
|
|
185
|
+
value?: HoloScriptValue;
|
|
133
186
|
isExpression?: boolean;
|
|
134
187
|
}
|
|
135
188
|
type UIElementType = 'canvas' | 'button' | 'textinput' | 'panel' | 'text' | 'image' | 'list' | 'modal' | 'slider' | 'toggle' | 'dropdown' | 'flex-container' | 'grid-container' | 'scroll-view' | 'tab-view' | 'dashboard' | 'card' | 'metric' | 'row' | 'col';
|
|
@@ -137,7 +190,7 @@ interface UI2DNode {
|
|
|
137
190
|
type: '2d-element';
|
|
138
191
|
elementType: UIElementType;
|
|
139
192
|
name: string;
|
|
140
|
-
properties: Record<string,
|
|
193
|
+
properties: Record<string, HoloScriptValue>;
|
|
141
194
|
children?: UI2DNode[];
|
|
142
195
|
events?: Record<string, string>;
|
|
143
196
|
}
|
|
@@ -153,22 +206,36 @@ interface UIStyle {
|
|
|
153
206
|
margin?: number;
|
|
154
207
|
}
|
|
155
208
|
interface RuntimeContext {
|
|
156
|
-
variables: Map<string,
|
|
209
|
+
variables: Map<string, HoloScriptValue>;
|
|
157
210
|
functions: Map<string, MethodNode>;
|
|
158
|
-
exports: Map<string,
|
|
211
|
+
exports: Map<string, HoloScriptValue>;
|
|
159
212
|
connections: ConnectionNode[];
|
|
160
213
|
spatialMemory: Map<string, SpatialPosition>;
|
|
161
214
|
hologramState: Map<string, HologramProperties>;
|
|
162
215
|
executionStack: ASTNode[];
|
|
216
|
+
mode?: 'public' | 'secure';
|
|
217
|
+
currentScale: number;
|
|
218
|
+
scaleMagnitude: string;
|
|
219
|
+
focusHistory: string[];
|
|
220
|
+
environment: Record<string, HoloScriptValue>;
|
|
221
|
+
templates: Map<string, TemplateNode>;
|
|
222
|
+
state: ReactiveState;
|
|
223
|
+
}
|
|
224
|
+
interface ReactiveState {
|
|
225
|
+
get(key: string): HoloScriptValue;
|
|
226
|
+
set(key: string, value: HoloScriptValue): void;
|
|
227
|
+
subscribe(callback: (state: Record<string, HoloScriptValue>) => void): () => void;
|
|
228
|
+
getSnapshot(): Record<string, HoloScriptValue>;
|
|
229
|
+
update(updates: Record<string, HoloScriptValue>): void;
|
|
163
230
|
}
|
|
164
231
|
interface ExecutionResult {
|
|
165
232
|
success: boolean;
|
|
166
|
-
output?:
|
|
233
|
+
output?: HoloScriptValue;
|
|
167
234
|
hologram?: HologramProperties;
|
|
168
235
|
spatialPosition?: SpatialPosition;
|
|
169
236
|
error?: string;
|
|
170
237
|
executionTime?: number;
|
|
171
|
-
learningSignals?:
|
|
238
|
+
learningSignals?: Record<string, HoloScriptValue>;
|
|
172
239
|
}
|
|
173
240
|
interface ParticleSystem {
|
|
174
241
|
particles: SpatialPosition[];
|
|
@@ -259,4 +326,4 @@ interface RotatableTrait {
|
|
|
259
326
|
snapAngles?: number[];
|
|
260
327
|
}
|
|
261
328
|
|
|
262
|
-
export type { ASTNode as A, ExecutionResult as B, ConnectionNode as C, Duration as D, ExportNode as E, ForLoopNode as F, GestureData as G, HologramShape as H, ImportNode as I,
|
|
329
|
+
export type { ASTNode as A, ExecutionResult as B, ConnectionNode as C, Duration as D, ExportNode as E, ForLoopNode as F, GestureData as G, HologramShape as H, ImportNode as I, HoloScriptValue as J, ParticleSystem as K, SecurityConfig as L, MethodNode as M, RuntimeSecurityLimits as N, OrbNode as O, Position2D as P, Animation as Q, RotatableTrait as R, SpatialPosition as S, TransformationNode as T, UI2DNode as U, VoiceCommand as V, WhileLoopNode as W, Size2D as a, HologramProperties as b, GestureType as c, HandType as d, ParameterNode as e, GateNode as f, StreamNode as g, GenericASTNode as h, Vector3 as i, Vector2 as j, Color as k, Transform as l, VRHand as m, ThrowVelocity as n, CollisionEvent as o, GrabbableTrait as p, ThrowableTrait as q, PointableTrait as r, HoverableTrait as s, ScalableTrait as t, ForEachLoopNode as u, ImportLoader as v, VariableDeclarationNode as w, UIElementType as x, UIStyle as y, RuntimeContext as z };
|
|
@@ -16,7 +16,7 @@ interface Size2D {
|
|
|
16
16
|
width: number;
|
|
17
17
|
height: number;
|
|
18
18
|
}
|
|
19
|
-
type HologramShape = 'orb' | 'cube' | 'cylinder' | 'pyramid' | 'sphere';
|
|
19
|
+
type HologramShape = 'orb' | 'cube' | 'cylinder' | 'pyramid' | 'sphere' | 'function' | 'gate' | 'stream' | 'server' | 'database' | 'fetch';
|
|
20
20
|
interface HologramProperties {
|
|
21
21
|
shape: HologramShape;
|
|
22
22
|
color: string;
|
|
@@ -39,6 +39,20 @@ interface GestureData {
|
|
|
39
39
|
magnitude: number;
|
|
40
40
|
hand: HandType;
|
|
41
41
|
}
|
|
42
|
+
interface Animation {
|
|
43
|
+
target: string;
|
|
44
|
+
property: string;
|
|
45
|
+
from: number;
|
|
46
|
+
to: number;
|
|
47
|
+
duration: number;
|
|
48
|
+
startTime: number;
|
|
49
|
+
easing: string;
|
|
50
|
+
loop?: boolean;
|
|
51
|
+
yoyo?: boolean;
|
|
52
|
+
}
|
|
53
|
+
type HoloScriptValue = string | number | boolean | null | undefined | HoloScriptValue[] | {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
} | ASTNode | Function | SpatialPosition | HologramProperties | Animation;
|
|
42
56
|
interface ASTNode {
|
|
43
57
|
type: string;
|
|
44
58
|
position?: SpatialPosition;
|
|
@@ -47,11 +61,44 @@ interface ASTNode {
|
|
|
47
61
|
line?: number;
|
|
48
62
|
/** Source column number (0-indexed) */
|
|
49
63
|
column?: number;
|
|
50
|
-
|
|
64
|
+
/** HS+ Directives */
|
|
65
|
+
directives?: HSPlusDirective[];
|
|
66
|
+
}
|
|
67
|
+
type VRTraitName = 'grabbable' | 'throwable' | 'pointable' | 'hoverable' | 'scalable' | 'rotatable' | 'stackable' | 'snappable' | 'breakable';
|
|
68
|
+
type LifecycleHook = 'on_mount' | 'on_unmount' | 'on_update' | 'on_data_update';
|
|
69
|
+
type VRLifecycleHook = 'on_grab' | 'on_release' | 'on_hover_enter' | 'on_hover_exit' | 'on_point_enter' | 'on_point_exit' | 'on_collision' | 'on_trigger_enter' | 'on_trigger_exit' | 'on_click' | 'on_double_click';
|
|
70
|
+
type ControllerHook = 'on_controller_button' | 'on_trigger_hold' | 'on_trigger_release' | 'on_grip_hold' | 'on_grip_release';
|
|
71
|
+
type HSPlusDirective = {
|
|
72
|
+
type: 'state';
|
|
73
|
+
body: Record<string, HoloScriptValue>;
|
|
74
|
+
} | {
|
|
75
|
+
type: 'for';
|
|
76
|
+
variable: string;
|
|
77
|
+
iterable: string;
|
|
78
|
+
body: ASTNode[];
|
|
79
|
+
} | {
|
|
80
|
+
type: 'if';
|
|
81
|
+
condition: string;
|
|
82
|
+
body: ASTNode[];
|
|
83
|
+
else?: ASTNode[];
|
|
84
|
+
} | {
|
|
85
|
+
type: 'import';
|
|
86
|
+
path: string;
|
|
87
|
+
alias: string;
|
|
88
|
+
} | {
|
|
89
|
+
type: 'lifecycle';
|
|
90
|
+
hook: LifecycleHook | VRLifecycleHook | ControllerHook;
|
|
91
|
+
params?: string[];
|
|
92
|
+
body: string;
|
|
93
|
+
} | {
|
|
94
|
+
type: 'trait';
|
|
95
|
+
name: VRTraitName;
|
|
96
|
+
config: Record<string, HoloScriptValue>;
|
|
97
|
+
};
|
|
51
98
|
interface OrbNode extends ASTNode {
|
|
52
99
|
type: 'orb';
|
|
53
100
|
name: string;
|
|
54
|
-
properties: Record<string,
|
|
101
|
+
properties: Record<string, HoloScriptValue>;
|
|
55
102
|
methods: MethodNode[];
|
|
56
103
|
}
|
|
57
104
|
interface MethodNode extends ASTNode {
|
|
@@ -65,7 +112,7 @@ interface ParameterNode extends ASTNode {
|
|
|
65
112
|
type: 'parameter';
|
|
66
113
|
name: string;
|
|
67
114
|
dataType: string;
|
|
68
|
-
defaultValue?:
|
|
115
|
+
defaultValue?: HoloScriptValue;
|
|
69
116
|
}
|
|
70
117
|
interface ConnectionNode extends ASTNode {
|
|
71
118
|
type: 'connection';
|
|
@@ -89,10 +136,10 @@ interface StreamNode extends ASTNode {
|
|
|
89
136
|
interface TransformationNode extends ASTNode {
|
|
90
137
|
type: 'transformation';
|
|
91
138
|
operation: string;
|
|
92
|
-
parameters: Record<string,
|
|
139
|
+
parameters: Record<string, HoloScriptValue>;
|
|
93
140
|
}
|
|
94
141
|
interface GenericASTNode extends ASTNode {
|
|
95
|
-
[key: string]: unknown;
|
|
142
|
+
[key: string]: HoloScriptValue | unknown;
|
|
96
143
|
}
|
|
97
144
|
interface ForLoopNode extends ASTNode {
|
|
98
145
|
type: 'for-loop';
|
|
@@ -112,6 +159,12 @@ interface ForEachLoopNode extends ASTNode {
|
|
|
112
159
|
collection: string;
|
|
113
160
|
body: ASTNode[];
|
|
114
161
|
}
|
|
162
|
+
interface TemplateNode extends ASTNode {
|
|
163
|
+
type: 'template';
|
|
164
|
+
name: string;
|
|
165
|
+
parameters: string[];
|
|
166
|
+
body: ASTNode[];
|
|
167
|
+
}
|
|
115
168
|
interface ImportNode extends ASTNode {
|
|
116
169
|
type: 'import';
|
|
117
170
|
imports: string[];
|
|
@@ -129,7 +182,7 @@ interface VariableDeclarationNode extends ASTNode {
|
|
|
129
182
|
kind: 'const' | 'let' | 'var';
|
|
130
183
|
name: string;
|
|
131
184
|
dataType?: string;
|
|
132
|
-
value?:
|
|
185
|
+
value?: HoloScriptValue;
|
|
133
186
|
isExpression?: boolean;
|
|
134
187
|
}
|
|
135
188
|
type UIElementType = 'canvas' | 'button' | 'textinput' | 'panel' | 'text' | 'image' | 'list' | 'modal' | 'slider' | 'toggle' | 'dropdown' | 'flex-container' | 'grid-container' | 'scroll-view' | 'tab-view' | 'dashboard' | 'card' | 'metric' | 'row' | 'col';
|
|
@@ -137,7 +190,7 @@ interface UI2DNode {
|
|
|
137
190
|
type: '2d-element';
|
|
138
191
|
elementType: UIElementType;
|
|
139
192
|
name: string;
|
|
140
|
-
properties: Record<string,
|
|
193
|
+
properties: Record<string, HoloScriptValue>;
|
|
141
194
|
children?: UI2DNode[];
|
|
142
195
|
events?: Record<string, string>;
|
|
143
196
|
}
|
|
@@ -153,22 +206,36 @@ interface UIStyle {
|
|
|
153
206
|
margin?: number;
|
|
154
207
|
}
|
|
155
208
|
interface RuntimeContext {
|
|
156
|
-
variables: Map<string,
|
|
209
|
+
variables: Map<string, HoloScriptValue>;
|
|
157
210
|
functions: Map<string, MethodNode>;
|
|
158
|
-
exports: Map<string,
|
|
211
|
+
exports: Map<string, HoloScriptValue>;
|
|
159
212
|
connections: ConnectionNode[];
|
|
160
213
|
spatialMemory: Map<string, SpatialPosition>;
|
|
161
214
|
hologramState: Map<string, HologramProperties>;
|
|
162
215
|
executionStack: ASTNode[];
|
|
216
|
+
mode?: 'public' | 'secure';
|
|
217
|
+
currentScale: number;
|
|
218
|
+
scaleMagnitude: string;
|
|
219
|
+
focusHistory: string[];
|
|
220
|
+
environment: Record<string, HoloScriptValue>;
|
|
221
|
+
templates: Map<string, TemplateNode>;
|
|
222
|
+
state: ReactiveState;
|
|
223
|
+
}
|
|
224
|
+
interface ReactiveState {
|
|
225
|
+
get(key: string): HoloScriptValue;
|
|
226
|
+
set(key: string, value: HoloScriptValue): void;
|
|
227
|
+
subscribe(callback: (state: Record<string, HoloScriptValue>) => void): () => void;
|
|
228
|
+
getSnapshot(): Record<string, HoloScriptValue>;
|
|
229
|
+
update(updates: Record<string, HoloScriptValue>): void;
|
|
163
230
|
}
|
|
164
231
|
interface ExecutionResult {
|
|
165
232
|
success: boolean;
|
|
166
|
-
output?:
|
|
233
|
+
output?: HoloScriptValue;
|
|
167
234
|
hologram?: HologramProperties;
|
|
168
235
|
spatialPosition?: SpatialPosition;
|
|
169
236
|
error?: string;
|
|
170
237
|
executionTime?: number;
|
|
171
|
-
learningSignals?:
|
|
238
|
+
learningSignals?: Record<string, HoloScriptValue>;
|
|
172
239
|
}
|
|
173
240
|
interface ParticleSystem {
|
|
174
241
|
particles: SpatialPosition[];
|
|
@@ -259,4 +326,4 @@ interface RotatableTrait {
|
|
|
259
326
|
snapAngles?: number[];
|
|
260
327
|
}
|
|
261
328
|
|
|
262
|
-
export type { ASTNode as A, ExecutionResult as B, ConnectionNode as C, Duration as D, ExportNode as E, ForLoopNode as F, GestureData as G, HologramShape as H, ImportNode as I,
|
|
329
|
+
export type { ASTNode as A, ExecutionResult as B, ConnectionNode as C, Duration as D, ExportNode as E, ForLoopNode as F, GestureData as G, HologramShape as H, ImportNode as I, HoloScriptValue as J, ParticleSystem as K, SecurityConfig as L, MethodNode as M, RuntimeSecurityLimits as N, OrbNode as O, Position2D as P, Animation as Q, RotatableTrait as R, SpatialPosition as S, TransformationNode as T, UI2DNode as U, VoiceCommand as V, WhileLoopNode as W, Size2D as a, HologramProperties as b, GestureType as c, HandType as d, ParameterNode as e, GateNode as f, StreamNode as g, GenericASTNode as h, Vector3 as i, Vector2 as j, Color as k, Transform as l, VRHand as m, ThrowVelocity as n, CollisionEvent as o, GrabbableTrait as p, ThrowableTrait as q, PointableTrait as r, HoverableTrait as s, ScalableTrait as t, ForEachLoopNode as u, ImportLoader as v, VariableDeclarationNode as w, UIElementType as x, UIStyle as y, RuntimeContext as z };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holoscript/core",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "HoloScript+: VR language with declarative syntax, state management, reactive traits, and VR interactions. Full backward compatible with original HoloScript.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/index.
|
|
7
|
-
"module": "./dist/index.
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"files": [
|
|
@@ -13,30 +13,36 @@
|
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.
|
|
17
|
-
"require": "./dist/index.
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
18
|
},
|
|
19
19
|
"./parser": {
|
|
20
20
|
"types": "./dist/parser.d.ts",
|
|
21
|
-
"import": "./dist/parser.
|
|
22
|
-
"require": "./dist/parser.
|
|
21
|
+
"import": "./dist/parser.js",
|
|
22
|
+
"require": "./dist/parser.cjs"
|
|
23
23
|
},
|
|
24
24
|
"./runtime": {
|
|
25
25
|
"types": "./dist/runtime.d.ts",
|
|
26
|
-
"import": "./dist/runtime.
|
|
27
|
-
"require": "./dist/runtime.
|
|
26
|
+
"import": "./dist/runtime.js",
|
|
27
|
+
"require": "./dist/runtime.cjs"
|
|
28
28
|
},
|
|
29
29
|
"./type-checker": {
|
|
30
30
|
"types": "./dist/type-checker.d.ts",
|
|
31
|
-
"import": "./dist/type-checker.
|
|
32
|
-
"require": "./dist/type-checker.
|
|
31
|
+
"import": "./dist/type-checker.js",
|
|
32
|
+
"require": "./dist/type-checker.cjs"
|
|
33
33
|
},
|
|
34
34
|
"./debugger": {
|
|
35
35
|
"types": "./dist/debugger.d.ts",
|
|
36
|
-
"import": "./dist/debugger.
|
|
37
|
-
"require": "./dist/debugger.
|
|
36
|
+
"import": "./dist/debugger.js",
|
|
37
|
+
"require": "./dist/debugger.cjs"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup",
|
|
42
|
+
"dev": "tsup --watch",
|
|
43
|
+
"test": "vitest run",
|
|
44
|
+
"test:watch": "vitest"
|
|
45
|
+
},
|
|
40
46
|
"keywords": [
|
|
41
47
|
"holoscript",
|
|
42
48
|
"vr",
|
|
@@ -56,15 +62,10 @@
|
|
|
56
62
|
"directory": "packages/core"
|
|
57
63
|
},
|
|
58
64
|
"devDependencies": {
|
|
65
|
+
"@hololand/network": "link:c:/Users/josep/Documents/GitHub/Hololand/packages/network",
|
|
59
66
|
"tsup": "^8.0.1",
|
|
60
67
|
"typedoc": "^0.28.16",
|
|
61
68
|
"typescript": "^5.3.3",
|
|
62
69
|
"vitest": "^1.0.0"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"build": "tsup",
|
|
66
|
-
"dev": "tsup --watch",
|
|
67
|
-
"test": "vitest run",
|
|
68
|
-
"test:watch": "vitest"
|
|
69
70
|
}
|
|
70
|
-
}
|
|
71
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025-2026 HoloScript Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|