@holoscript/engine 6.0.3 → 6.0.4
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/AutoMesher-CK47F6AV.js +17 -0
- package/dist/GPUBuffers-2LHBCD7X.js +9 -0
- package/dist/WebGPUContext-TNEUYU2Y.js +11 -0
- package/dist/animation/index.cjs +38 -38
- package/dist/animation/index.d.cts +1 -1
- package/dist/animation/index.d.ts +1 -1
- package/dist/animation/index.js +1 -1
- package/dist/audio/index.cjs +16 -6
- package/dist/audio/index.d.cts +1 -1
- package/dist/audio/index.d.ts +1 -1
- package/dist/audio/index.js +1 -1
- package/dist/camera/index.cjs +23 -23
- package/dist/camera/index.d.cts +1 -1
- package/dist/camera/index.d.ts +1 -1
- package/dist/camera/index.js +1 -1
- package/dist/character/index.cjs +6 -4
- package/dist/character/index.js +1 -1
- package/dist/choreography/index.cjs +1194 -0
- package/dist/choreography/index.d.cts +687 -0
- package/dist/choreography/index.d.ts +687 -0
- package/dist/choreography/index.js +1156 -0
- package/dist/chunk-2CSNRI2N.js +217 -0
- package/dist/chunk-33T2WINR.js +266 -0
- package/dist/chunk-35R73OFM.js +1257 -0
- package/dist/chunk-4MMDSUNP.js +1256 -0
- package/dist/chunk-5V6HOU72.js +319 -0
- package/dist/chunk-6QOP6PYF.js +1038 -0
- package/dist/chunk-7KMJVHIL.js +8944 -0
- package/dist/chunk-7VPUC62U.js +1106 -0
- package/dist/chunk-A2Y6RCAT.js +1878 -0
- package/dist/chunk-AHM42MK6.js +8944 -0
- package/dist/chunk-BL7IDTHE.js +218 -0
- package/dist/chunk-CITOMSWL.js +10462 -0
- package/dist/chunk-CXDPKW2K.js +8944 -0
- package/dist/chunk-CXZPLD4S.js +223 -0
- package/dist/chunk-CZYJE7IH.js +5169 -0
- package/dist/chunk-D2OP7YC7.js +6325 -0
- package/dist/chunk-EDRVQHUU.js +1544 -0
- package/dist/chunk-EJSLOOW2.js +3589 -0
- package/dist/chunk-F53SFGW5.js +1878 -0
- package/dist/chunk-HCFPELPY.js +919 -0
- package/dist/chunk-HNEE36PY.js +93 -0
- package/dist/chunk-HYXNV36F.js +1256 -0
- package/dist/chunk-IB7KHVFY.js +821 -0
- package/dist/chunk-IBBO7YYG.js +690 -0
- package/dist/chunk-ILIBGINU.js +5470 -0
- package/dist/chunk-IS4MHLKN.js +5479 -0
- package/dist/chunk-JT2PFKWD.js +5479 -0
- package/dist/chunk-K4CUB4NY.js +1038 -0
- package/dist/chunk-KATDQXRJ.js +10462 -0
- package/dist/chunk-KBQE6ZFJ.js +8944 -0
- package/dist/chunk-KBVD5K7E.js +560 -0
- package/dist/chunk-KCDPVQRY.js +4088 -0
- package/dist/chunk-KN4QJPKN.js +8944 -0
- package/dist/chunk-KWJ3ROSI.js +8944 -0
- package/dist/chunk-L45VF6DD.js +919 -0
- package/dist/chunk-LY4T37YK.js +307 -0
- package/dist/chunk-MDN5WZXA.js +1544 -0
- package/dist/chunk-MGCDP6VU.js +928 -0
- package/dist/chunk-NCX7X6G2.js +8681 -0
- package/dist/chunk-OF54BPVD.js +913 -0
- package/dist/chunk-OWSN2Q3Q.js +690 -0
- package/dist/chunk-PRRB5TTA.js +406 -0
- package/dist/chunk-PXWVQF76.js +4086 -0
- package/dist/chunk-PYCOIDT2.js +812 -0
- package/dist/chunk-PZCSADOV.js +928 -0
- package/dist/chunk-Q2XBVS2K.js +1038 -0
- package/dist/chunk-QDZRXWN5.js +1776 -0
- package/dist/chunk-RNWOZ6WQ.js +913 -0
- package/dist/chunk-ROLFT4CJ.js +1693 -0
- package/dist/chunk-SLTJRZ2N.js +266 -0
- package/dist/chunk-SRUS5XSU.js +4088 -0
- package/dist/chunk-TKCA3WZ5.js +5409 -0
- package/dist/chunk-TNRMXYI2.js +1650 -0
- package/dist/chunk-TQB3GJGM.js +9763 -0
- package/dist/chunk-TUFGXG6K.js +510 -0
- package/dist/chunk-U6KMTGQJ.js +632 -0
- package/dist/chunk-VMGJQST6.js +8681 -0
- package/dist/chunk-X4F4TCG4.js +5470 -0
- package/dist/chunk-ZIFROE75.js +1544 -0
- package/dist/chunk-ZIJQYHSQ.js +1204 -0
- package/dist/combat/index.cjs +4 -4
- package/dist/combat/index.d.cts +1 -1
- package/dist/combat/index.d.ts +1 -1
- package/dist/combat/index.js +1 -1
- package/dist/ecs/index.cjs +1 -1
- package/dist/ecs/index.js +1 -1
- package/dist/environment/index.cjs +14 -14
- package/dist/environment/index.d.cts +1 -1
- package/dist/environment/index.d.ts +1 -1
- package/dist/environment/index.js +1 -1
- package/dist/gpu/index.cjs +4810 -0
- package/dist/gpu/index.js +3714 -0
- package/dist/hologram/index.cjs +27 -1
- package/dist/hologram/index.js +1 -1
- package/dist/index-B2PIsAmR.d.cts +2180 -0
- package/dist/index-B2PIsAmR.d.ts +2180 -0
- package/dist/index-BHySEPX7.d.cts +2921 -0
- package/dist/index-BJV21zuy.d.cts +341 -0
- package/dist/index-BJV21zuy.d.ts +341 -0
- package/dist/index-BQutTphC.d.cts +790 -0
- package/dist/index-ByIq2XrS.d.cts +3910 -0
- package/dist/index-BysHjDSO.d.cts +224 -0
- package/dist/index-BysHjDSO.d.ts +224 -0
- package/dist/index-CKwAJGck.d.ts +455 -0
- package/dist/index-CUl3QstQ.d.cts +3006 -0
- package/dist/index-CUl3QstQ.d.ts +3006 -0
- package/dist/index-CmYtNiI-.d.cts +953 -0
- package/dist/index-CmYtNiI-.d.ts +953 -0
- package/dist/index-CnRzWxi_.d.cts +522 -0
- package/dist/index-CnRzWxi_.d.ts +522 -0
- package/dist/index-CwRWbSC7.d.ts +2921 -0
- package/dist/index-CxKIBstO.d.ts +790 -0
- package/dist/index-DJ6-R8vh.d.cts +455 -0
- package/dist/index-DQKisbcI.d.cts +4968 -0
- package/dist/index-DQKisbcI.d.ts +4968 -0
- package/dist/index-DRT2zJez.d.ts +3910 -0
- package/dist/index-DfNLiAka.d.cts +192 -0
- package/dist/index-DfNLiAka.d.ts +192 -0
- package/dist/index-nMvkoRm8.d.cts +405 -0
- package/dist/index-nMvkoRm8.d.ts +405 -0
- package/dist/index-s9yOFU37.d.cts +604 -0
- package/dist/index-s9yOFU37.d.ts +604 -0
- package/dist/index.cjs +22966 -6960
- package/dist/index.d.cts +864 -20
- package/dist/index.d.ts +864 -20
- package/dist/index.js +3062 -48
- package/dist/input/index.cjs +1 -1
- package/dist/input/index.js +1 -1
- package/dist/orbital/index.cjs +3 -3
- package/dist/orbital/index.d.cts +1 -1
- package/dist/orbital/index.d.ts +1 -1
- package/dist/orbital/index.js +1 -1
- package/dist/particles/index.cjs +16 -16
- package/dist/particles/index.d.cts +1 -1
- package/dist/particles/index.d.ts +1 -1
- package/dist/particles/index.js +1 -1
- package/dist/physics/index.cjs +2377 -21
- package/dist/physics/index.d.cts +1 -1
- package/dist/physics/index.d.ts +1 -1
- package/dist/physics/index.js +35 -1
- package/dist/postfx/index.cjs +3491 -0
- package/dist/postfx/index.js +93 -0
- package/dist/procedural/index.cjs +1 -1
- package/dist/procedural/index.js +1 -1
- package/dist/puppeteer-5VF6KDVO.js +52197 -0
- package/dist/puppeteer-IZVZ3SG4.js +52197 -0
- package/dist/rendering/index.cjs +33 -32
- package/dist/rendering/index.d.cts +1 -1
- package/dist/rendering/index.d.ts +1 -1
- package/dist/rendering/index.js +8 -6
- package/dist/runtime/index.cjs +23 -13
- package/dist/runtime/index.d.cts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +8 -6
- package/dist/runtime/protocols/index.cjs +349 -0
- package/dist/runtime/protocols/index.js +15 -0
- package/dist/scene/index.cjs +8 -8
- package/dist/scene/index.d.cts +1 -1
- package/dist/scene/index.d.ts +1 -1
- package/dist/scene/index.js +1 -1
- package/dist/shader/index.cjs +3087 -0
- package/dist/shader/index.js +3044 -0
- package/dist/simulation/index.cjs +10680 -0
- package/dist/simulation/index.d.cts +3 -0
- package/dist/simulation/index.d.ts +3 -0
- package/dist/simulation/index.js +307 -0
- package/dist/spatial/index.cjs +2443 -0
- package/dist/spatial/index.d.cts +1545 -0
- package/dist/spatial/index.d.ts +1545 -0
- package/dist/spatial/index.js +2400 -0
- package/dist/terrain/index.cjs +1 -1
- package/dist/terrain/index.d.cts +1 -1
- package/dist/terrain/index.d.ts +1 -1
- package/dist/terrain/index.js +1 -1
- package/dist/transformers.node-4NKAPD5U.js +45620 -0
- package/dist/vm/index.cjs +7 -8
- package/dist/vm/index.d.cts +1 -1
- package/dist/vm/index.d.ts +1 -1
- package/dist/vm/index.js +1 -1
- package/dist/vm-bridge/index.cjs +2 -2
- package/dist/vm-bridge/index.d.cts +2 -2
- package/dist/vm-bridge/index.d.ts +2 -2
- package/dist/vm-bridge/index.js +1 -1
- package/dist/vr/index.cjs +6 -6
- package/dist/vr/index.js +1 -1
- package/dist/world/index.cjs +3 -3
- package/dist/world/index.d.cts +1 -1
- package/dist/world/index.d.ts +1 -1
- package/dist/world/index.js +1 -1
- package/package.json +53 -21
- package/LICENSE +0 -21
package/dist/vm/index.cjs
CHANGED
|
@@ -351,6 +351,9 @@ var HoloFunctionBuilder = class {
|
|
|
351
351
|
this.parent = parent;
|
|
352
352
|
this.index = index;
|
|
353
353
|
}
|
|
354
|
+
func;
|
|
355
|
+
parent;
|
|
356
|
+
index;
|
|
354
357
|
emit(opcode, ...operands) {
|
|
355
358
|
this.func.instructions.push({ opcode, operands });
|
|
356
359
|
return this;
|
|
@@ -782,7 +785,7 @@ var HoloVM = class {
|
|
|
782
785
|
instructionsExecuted++;
|
|
783
786
|
try {
|
|
784
787
|
this.executeInstruction(instr, frame);
|
|
785
|
-
} catch (
|
|
788
|
+
} catch (_err) {
|
|
786
789
|
this.status = "ERROR" /* Error */;
|
|
787
790
|
break;
|
|
788
791
|
}
|
|
@@ -846,11 +849,7 @@ var HoloVM = class {
|
|
|
846
849
|
case 16 /* TRANSFORM */: {
|
|
847
850
|
const entityId = operands[0];
|
|
848
851
|
const transform = {
|
|
849
|
-
position: {
|
|
850
|
-
x: operands[1],
|
|
851
|
-
y: operands[2],
|
|
852
|
-
z: operands[3]
|
|
853
|
-
},
|
|
852
|
+
position: { x: operands[1], y: operands[2], z: operands[3] },
|
|
854
853
|
rotation: {
|
|
855
854
|
x: operands[4],
|
|
856
855
|
y: operands[5],
|
|
@@ -879,7 +878,7 @@ var HoloVM = class {
|
|
|
879
878
|
case 18 /* ROTATE */: {
|
|
880
879
|
const entityId = operands[0];
|
|
881
880
|
this.world.setComponent(entityId, 1 /* Transform */, {
|
|
882
|
-
position:
|
|
881
|
+
position: [0, 0, 0],
|
|
883
882
|
rotation: {
|
|
884
883
|
x: operands[1],
|
|
885
884
|
y: operands[2],
|
|
@@ -910,7 +909,7 @@ var HoloVM = class {
|
|
|
910
909
|
}
|
|
911
910
|
case 50 /* SET_VISIBLE */: {
|
|
912
911
|
const entityId = operands[0];
|
|
913
|
-
const
|
|
912
|
+
const _visible = operands[1] !== 0;
|
|
914
913
|
const entity = this.world.getEntity(entityId);
|
|
915
914
|
if (entity) entity.dirty = true;
|
|
916
915
|
break;
|
package/dist/vm/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AssetType, B as BodyType, C as ColliderShape, a as ComponentType, E as ECSWorld, b as Entity, G as GeometryComponent, c as GeometryType, H as HOLOB_MAGIC, d as HOLOB_VERSION, e as HoloAssetRef, f as HoloBytecode, g as HoloBytecodeBuilder, h as HoloComponentData, i as HoloEntityDef, j as HoloEventBinding, k as HoloFunction, l as HoloFunctionBuilder, m as HoloInstruction, n as HoloOpCode, o as HoloOperand, p as HoloSourceMap, q as HoloSourceMapping, r as HoloTraitDef, s as HoloVM, t as HolobFlags, L as LightType, M as MaterialComponent, O as OpCodeMeta, Q as Quat, R as RigidBodyComponent, S as SyncTier, T as TransformComponent,
|
|
1
|
+
export { A as AssetType, B as BodyType, C as ColliderShape, a as ComponentType, E as ECSWorld, b as Entity, G as GeometryComponent, c as GeometryType, H as HOLOB_MAGIC, d as HOLOB_VERSION, e as HoloAssetRef, f as HoloBytecode, g as HoloBytecodeBuilder, h as HoloComponentData, i as HoloEntityDef, j as HoloEventBinding, k as HoloFunction, l as HoloFunctionBuilder, m as HoloInstruction, n as HoloOpCode, o as HoloOperand, p as HoloSourceMap, q as HoloSourceMapping, r as HoloTraitDef, s as HoloVM, t as HolobFlags, L as LightType, M as MaterialComponent, O as OpCodeMeta, Q as Quat, R as RigidBodyComponent, S as SyncTier, T as TransformComponent, V as VMResult, u as VMStatus, v as ValueType, w as Vec3, x as getOpcodeFamily, y as getOpcodeName, z as isControlFlow } from '../executor-C6ay5Awb.cjs';
|
package/dist/vm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AssetType, B as BodyType, C as ColliderShape, a as ComponentType, E as ECSWorld, b as Entity, G as GeometryComponent, c as GeometryType, H as HOLOB_MAGIC, d as HOLOB_VERSION, e as HoloAssetRef, f as HoloBytecode, g as HoloBytecodeBuilder, h as HoloComponentData, i as HoloEntityDef, j as HoloEventBinding, k as HoloFunction, l as HoloFunctionBuilder, m as HoloInstruction, n as HoloOpCode, o as HoloOperand, p as HoloSourceMap, q as HoloSourceMapping, r as HoloTraitDef, s as HoloVM, t as HolobFlags, L as LightType, M as MaterialComponent, O as OpCodeMeta, Q as Quat, R as RigidBodyComponent, S as SyncTier, T as TransformComponent,
|
|
1
|
+
export { A as AssetType, B as BodyType, C as ColliderShape, a as ComponentType, E as ECSWorld, b as Entity, G as GeometryComponent, c as GeometryType, H as HOLOB_MAGIC, d as HOLOB_VERSION, e as HoloAssetRef, f as HoloBytecode, g as HoloBytecodeBuilder, h as HoloComponentData, i as HoloEntityDef, j as HoloEventBinding, k as HoloFunction, l as HoloFunctionBuilder, m as HoloInstruction, n as HoloOpCode, o as HoloOperand, p as HoloSourceMap, q as HoloSourceMapping, r as HoloTraitDef, s as HoloVM, t as HolobFlags, L as LightType, M as MaterialComponent, O as OpCodeMeta, Q as Quat, R as RigidBodyComponent, S as SyncTier, T as TransformComponent, V as VMResult, u as VMStatus, v as ValueType, w as Vec3, x as getOpcodeFamily, y as getOpcodeName, z as isControlFlow } from '../executor-C6ay5Awb.js';
|
package/dist/vm/index.js
CHANGED
package/dist/vm-bridge/index.cjs
CHANGED
|
@@ -80,7 +80,7 @@ function applyActions(world, actions) {
|
|
|
80
80
|
case "move": {
|
|
81
81
|
const existing = world.getComponent(action.entityId, 1);
|
|
82
82
|
const transform = existing ?? {
|
|
83
|
-
position:
|
|
83
|
+
position: [0, 0, 0],
|
|
84
84
|
rotation: { x: 0, y: 0, z: 0, w: 1 },
|
|
85
85
|
scale: { x: 1, y: 1, z: 1 }
|
|
86
86
|
};
|
|
@@ -253,7 +253,7 @@ var SpatialCognitiveAgent = class {
|
|
|
253
253
|
const snapshot = this.perceive();
|
|
254
254
|
const cycleResult = await this.decide(`Tick ${this.tickCount}: observe and act`);
|
|
255
255
|
const actions = this.pendingActions.splice(0, this.config.maxActionsPerTick);
|
|
256
|
-
const
|
|
256
|
+
const _spawned = this.mutate(actions);
|
|
257
257
|
return {
|
|
258
258
|
perceived: true,
|
|
259
259
|
decided: true,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AgentAction, B as BridgeConfig, C as CognitiveTickResult, E as EntitySnapshot, S as SceneSnapshot, a as SpatialCognitiveAgent, b as applyActions, c as captureSceneSnapshot } from '../index-
|
|
2
|
-
import '../executor-
|
|
1
|
+
export { A as AgentAction, B as BridgeConfig, C as CognitiveTickResult, E as EntitySnapshot, S as SceneSnapshot, a as SpatialCognitiveAgent, b as applyActions, c as captureSceneSnapshot } from '../index-BrCqHAgp.cjs';
|
|
2
|
+
import '../executor-C6ay5Awb.cjs';
|
|
3
3
|
import '@holoscript/uaal';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AgentAction, B as BridgeConfig, C as CognitiveTickResult, E as EntitySnapshot, S as SceneSnapshot, a as SpatialCognitiveAgent, b as applyActions, c as captureSceneSnapshot } from '../index-
|
|
2
|
-
import '../executor-
|
|
1
|
+
export { A as AgentAction, B as BridgeConfig, C as CognitiveTickResult, E as EntitySnapshot, S as SceneSnapshot, a as SpatialCognitiveAgent, b as applyActions, c as captureSceneSnapshot } from '../index-D987eWyT.js';
|
|
2
|
+
import '../executor-C6ay5Awb.js';
|
|
3
3
|
import '@holoscript/uaal';
|
package/dist/vm-bridge/index.js
CHANGED
package/dist/vr/index.cjs
CHANGED
|
@@ -215,7 +215,7 @@ var HapticFeedback = class {
|
|
|
215
215
|
// src/vr/VRLocomotion.ts
|
|
216
216
|
var VRLocomotion = class {
|
|
217
217
|
config;
|
|
218
|
-
position =
|
|
218
|
+
position = [0, 0, 0];
|
|
219
219
|
rotation = 0;
|
|
220
220
|
// yaw in degrees
|
|
221
221
|
teleportHistory = [];
|
|
@@ -235,9 +235,9 @@ var VRLocomotion = class {
|
|
|
235
235
|
*/
|
|
236
236
|
teleport(target) {
|
|
237
237
|
if (!target.valid) return false;
|
|
238
|
-
const dist = Math.sqrt((target.x - this.position
|
|
238
|
+
const dist = Math.sqrt((target.x - this.position[0]) ** 2 + (target.z - this.position[2]) ** 2);
|
|
239
239
|
if (dist > this.config.teleportRange) return false;
|
|
240
|
-
this.position =
|
|
240
|
+
this.position = [target.x, target.y, target.z];
|
|
241
241
|
this.teleportHistory.push(target);
|
|
242
242
|
return true;
|
|
243
243
|
}
|
|
@@ -247,8 +247,8 @@ var VRLocomotion = class {
|
|
|
247
247
|
move(dx, dz, deltaTime) {
|
|
248
248
|
const speed = this.config.moveSpeed * deltaTime;
|
|
249
249
|
const rad = this.rotation * Math.PI / 180;
|
|
250
|
-
this.position
|
|
251
|
-
this.position
|
|
250
|
+
this.position[0] += (dx * Math.cos(rad) - dz * Math.sin(rad)) * speed;
|
|
251
|
+
this.position[2] += (dx * Math.sin(rad) + dz * Math.cos(rad)) * speed;
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
254
|
* Snap turn
|
|
@@ -277,7 +277,7 @@ var VRLocomotion = class {
|
|
|
277
277
|
return this.config.comfortVignette && this.config.mode === "smooth";
|
|
278
278
|
}
|
|
279
279
|
getPosition() {
|
|
280
|
-
return {
|
|
280
|
+
return { x: this.position[0], y: this.position[1], z: this.position[2] };
|
|
281
281
|
}
|
|
282
282
|
getRotation() {
|
|
283
283
|
return this.rotation;
|
package/dist/vr/index.js
CHANGED
package/dist/world/index.cjs
CHANGED
|
@@ -73,9 +73,9 @@ var LODManager = class {
|
|
|
73
73
|
}
|
|
74
74
|
update(dt) {
|
|
75
75
|
for (const obj of this.objects.values()) {
|
|
76
|
-
const dx = obj.position
|
|
77
|
-
const dy = obj.position
|
|
78
|
-
const dz = obj.position
|
|
76
|
+
const dx = obj.position[0] - this.viewerPosition[0];
|
|
77
|
+
const dy = obj.position[1] - this.viewerPosition[1];
|
|
78
|
+
const dz = obj.position[2] - this.viewerPosition[2];
|
|
79
79
|
const dist = Math.sqrt(dx * dx + dy * dy + dz * dz) * obj.bias;
|
|
80
80
|
let targetLevel = obj.levels.length - 1;
|
|
81
81
|
for (let i = 0; i < obj.levels.length; i++) {
|
package/dist/world/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AABB, C as ChunkState, a as CullableObject, F as FrustumPlane, L as LODConfig, b as LODLevel, c as LODManager, d as LODObject, O as OcclusionCulling, e as OcclusionPortal, f as OcclusionZone, S as StreamingConfig, W as WorldChunk, g as WorldStreamer } from '../index-
|
|
1
|
+
export { A as AABB, C as ChunkState, a as CullableObject, F as FrustumPlane, L as LODConfig, b as LODLevel, c as LODManager, d as LODObject, O as OcclusionCulling, e as OcclusionPortal, f as OcclusionZone, S as StreamingConfig, W as WorldChunk, g as WorldStreamer } from '../index-DfNLiAka.cjs';
|
package/dist/world/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AABB, C as ChunkState, a as CullableObject, F as FrustumPlane, L as LODConfig, b as LODLevel, c as LODManager, d as LODObject, O as OcclusionCulling, e as OcclusionPortal, f as OcclusionZone, S as StreamingConfig, W as WorldChunk, g as WorldStreamer } from '../index-
|
|
1
|
+
export { A as AABB, C as ChunkState, a as CullableObject, F as FrustumPlane, L as LODConfig, b as LODLevel, c as LODManager, d as LODObject, O as OcclusionCulling, e as OcclusionPortal, f as OcclusionZone, S as StreamingConfig, W as WorldChunk, g as WorldStreamer } from '../index-DfNLiAka.js';
|
package/dist/world/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holoscript/engine",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Engine runtime extracted from @holoscript/core — rendering, physics, animation, ECS, and 20+ subsystems for spatial computing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -157,14 +157,14 @@
|
|
|
157
157
|
"require": "./dist/runtime/index.cjs"
|
|
158
158
|
},
|
|
159
159
|
"./runtime/protocols/MQTTClient": {
|
|
160
|
-
"types": "./dist/runtime/index.d.ts",
|
|
161
|
-
"import": "./dist/runtime/index.js",
|
|
162
|
-
"require": "./dist/runtime/index.cjs"
|
|
160
|
+
"types": "./dist/runtime/protocols/index.d.ts",
|
|
161
|
+
"import": "./dist/runtime/protocols/index.js",
|
|
162
|
+
"require": "./dist/runtime/protocols/index.cjs"
|
|
163
163
|
},
|
|
164
164
|
"./runtime/protocols": {
|
|
165
|
-
"types": "./dist/runtime/index.d.ts",
|
|
166
|
-
"import": "./dist/runtime/index.js",
|
|
167
|
-
"require": "./dist/runtime/index.cjs"
|
|
165
|
+
"types": "./dist/runtime/protocols/index.d.ts",
|
|
166
|
+
"import": "./dist/runtime/protocols/index.js",
|
|
167
|
+
"require": "./dist/runtime/protocols/index.cjs"
|
|
168
168
|
},
|
|
169
169
|
"./runtime/BaseVoiceSynthesizer": {
|
|
170
170
|
"types": "./dist/runtime/index.d.ts",
|
|
@@ -736,12 +736,49 @@
|
|
|
736
736
|
"import": "./dist/vm-bridge/index.js",
|
|
737
737
|
"require": "./dist/vm-bridge/index.cjs"
|
|
738
738
|
},
|
|
739
|
+
"./simulation": {
|
|
740
|
+
"types": "./dist/simulation/index.d.ts",
|
|
741
|
+
"import": "./dist/simulation/index.js",
|
|
742
|
+
"require": "./dist/simulation/index.cjs"
|
|
743
|
+
},
|
|
744
|
+
"./spatial": {
|
|
745
|
+
"types": "./dist/spatial/index.d.ts",
|
|
746
|
+
"import": "./dist/spatial/index.js",
|
|
747
|
+
"require": "./dist/spatial/index.cjs"
|
|
748
|
+
},
|
|
749
|
+
"./choreography": {
|
|
750
|
+
"types": "./dist/choreography/index.d.ts",
|
|
751
|
+
"import": "./dist/choreography/index.js",
|
|
752
|
+
"require": "./dist/choreography/index.cjs"
|
|
753
|
+
},
|
|
754
|
+
"./gpu": {
|
|
755
|
+
"types": "./dist/gpu/index.d.ts",
|
|
756
|
+
"import": "./dist/gpu/index.js",
|
|
757
|
+
"require": "./dist/gpu/index.cjs"
|
|
758
|
+
},
|
|
759
|
+
"./postfx": {
|
|
760
|
+
"types": "./dist/postfx/index.d.ts",
|
|
761
|
+
"import": "./dist/postfx/index.js",
|
|
762
|
+
"require": "./dist/postfx/index.cjs"
|
|
763
|
+
},
|
|
764
|
+
"./shader": {
|
|
765
|
+
"types": "./dist/shader/index.d.ts",
|
|
766
|
+
"import": "./dist/shader/index.js",
|
|
767
|
+
"require": "./dist/shader/index.cjs"
|
|
768
|
+
},
|
|
739
769
|
"./*": {
|
|
740
770
|
"types": "./dist/*.d.ts",
|
|
741
771
|
"import": "./dist/*.js",
|
|
742
772
|
"require": "./dist/*.cjs"
|
|
743
773
|
}
|
|
744
774
|
},
|
|
775
|
+
"scripts": {
|
|
776
|
+
"build": "tsup",
|
|
777
|
+
"dev": "tsup --watch",
|
|
778
|
+
"test": "vitest run --passWithNoTests",
|
|
779
|
+
"test:coverage": "vitest run --coverage",
|
|
780
|
+
"test:watch": "vitest"
|
|
781
|
+
},
|
|
745
782
|
"keywords": [
|
|
746
783
|
"holoscript",
|
|
747
784
|
"engine",
|
|
@@ -766,12 +803,14 @@
|
|
|
766
803
|
"directory": "packages/engine"
|
|
767
804
|
},
|
|
768
805
|
"dependencies": {
|
|
769
|
-
"
|
|
770
|
-
"@holoscript/
|
|
771
|
-
"@holoscript/
|
|
806
|
+
"@holoscript/core": "workspace:*",
|
|
807
|
+
"@holoscript/framework": "workspace:*",
|
|
808
|
+
"@holoscript/crdt-spatial": "workspace:*",
|
|
809
|
+
"@holoscript/snn-webgpu": "workspace:*",
|
|
810
|
+
"three": ">=0.160.0"
|
|
772
811
|
},
|
|
773
812
|
"peerDependencies": {
|
|
774
|
-
"@holoscript/uaal": "
|
|
813
|
+
"@holoscript/uaal": "workspace:*"
|
|
775
814
|
},
|
|
776
815
|
"peerDependenciesMeta": {
|
|
777
816
|
"@holoscript/uaal": {
|
|
@@ -780,17 +819,10 @@
|
|
|
780
819
|
},
|
|
781
820
|
"devDependencies": {
|
|
782
821
|
"@types/node": "^22.18.3",
|
|
783
|
-
"@vitest/coverage-v8": "^4.1.4",
|
|
784
822
|
"@webgpu/types": "^0.1.40",
|
|
823
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
785
824
|
"tsup": "^8.0.1",
|
|
786
825
|
"typescript": "~5.9.3",
|
|
787
|
-
"vitest": "^4.1.
|
|
788
|
-
},
|
|
789
|
-
"scripts": {
|
|
790
|
-
"build": "tsup src/index.ts src/rendering/index.ts src/physics/index.ts src/runtime/index.ts src/audio/index.ts src/animation/index.ts src/navigation/index.ts src/camera/index.ts src/input/index.ts src/vr/index.ts src/procedural/index.ts src/tilemap/index.ts src/terrain/index.ts src/particles/index.ts src/character/index.ts src/gameplay/index.ts src/dialogue/index.ts src/combat/index.ts src/orbital/index.ts src/world/index.ts src/environment/index.ts src/scene/index.ts src/ecs/index.ts src/hologram/index.ts src/vm/index.ts src/vm-bridge/index.ts --format esm,cjs --dts",
|
|
791
|
-
"dev": "tsup src/index.ts src/rendering/index.ts src/physics/index.ts src/runtime/index.ts src/audio/index.ts src/animation/index.ts src/navigation/index.ts src/camera/index.ts src/input/index.ts src/vr/index.ts src/procedural/index.ts src/tilemap/index.ts src/terrain/index.ts src/particles/index.ts src/character/index.ts src/gameplay/index.ts src/dialogue/index.ts src/combat/index.ts src/orbital/index.ts src/world/index.ts src/environment/index.ts src/scene/index.ts src/ecs/index.ts src/hologram/index.ts src/vm/index.ts src/vm-bridge/index.ts --format esm,cjs --dts --watch",
|
|
792
|
-
"test": "vitest run --passWithNoTests",
|
|
793
|
-
"test:coverage": "vitest run --coverage",
|
|
794
|
-
"test:watch": "vitest"
|
|
826
|
+
"vitest": "^4.1.0"
|
|
795
827
|
}
|
|
796
|
-
}
|
|
828
|
+
}
|
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.
|