@holoscript/core 6.1.3 → 8.0.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 (166) hide show
  1. package/dist/{GLTFPipeline-SFIORFJU.js → GLTFPipeline-276GE64O.js} +6 -6
  2. package/dist/{GLTFPipeline-VNNDPONV.cjs → GLTFPipeline-M7WSSJED.cjs} +10 -10
  3. package/dist/HoloScriptRuntime-3URVTKPJ.js +10 -0
  4. package/dist/HoloScriptRuntime-SXEAEU2N.cjs +19 -0
  5. package/dist/{chunk-2B7WVIDZ.js → chunk-23J755AR.js} +4 -4
  6. package/dist/{chunk-HANL7K2Q.cjs → chunk-253GBQZY.cjs} +38 -38
  7. package/dist/{chunk-KQTPCYTG.cjs → chunk-25IQCHTO.cjs} +38 -38
  8. package/dist/{chunk-V73NPPTM.cjs → chunk-3AO425MZ.cjs} +20 -20
  9. package/dist/{chunk-6S6TKNEA.cjs → chunk-3HYYMEXI.cjs} +279 -124
  10. package/dist/{chunk-IHESJZSW.js → chunk-3NFFOWGG.js} +6 -209
  11. package/dist/{chunk-AO4I2Z7M.cjs → chunk-3WZEJHUQ.cjs} +7 -7
  12. package/dist/{chunk-IRWWS72C.cjs → chunk-4V2E7U7Q.cjs} +7 -7
  13. package/dist/{chunk-ER4GATIU.js → chunk-62FBK3B7.js} +6 -6
  14. package/dist/{chunk-L63H3SQ4.cjs → chunk-6DPSFNJB.cjs} +19 -19
  15. package/dist/{chunk-XFXGA5IW.cjs → chunk-73FELZVJ.cjs} +14 -14
  16. package/dist/{chunk-QWNQ523V.cjs → chunk-7CUEMLDZ.cjs} +47 -47
  17. package/dist/{chunk-52ULD552.cjs → chunk-7HIASF7S.cjs} +13 -13
  18. package/dist/{chunk-U4NBQJBY.js → chunk-ANXZFVY2.js} +3 -3
  19. package/dist/{chunk-NHHVLKV3.js → chunk-AYBXB26F.js} +5 -5
  20. package/dist/{chunk-KX76JUQY.js → chunk-B4TFTDG4.js} +3 -3
  21. package/dist/{chunk-OEFY723R.js → chunk-BE4UJCQT.js} +4 -4
  22. package/dist/{chunk-DIL6DDDN.cjs → chunk-C2A5DUMF.cjs} +38 -38
  23. package/dist/{chunk-H3MGK7TX.cjs → chunk-CXFDRBQU.cjs} +10 -10
  24. package/dist/{chunk-4SY77NA4.cjs → chunk-D54CNIAJ.cjs} +2 -2
  25. package/dist/{chunk-22W6NGYN.js → chunk-DAJXW4KX.js} +3 -3
  26. package/dist/{chunk-RUXGBKPS.cjs → chunk-EUDQTK7N.cjs} +15 -222
  27. package/dist/{chunk-SXYLMIGP.js → chunk-F43YAA34.js} +3 -3
  28. package/dist/{chunk-H5DZIHJP.cjs → chunk-FYSPZT4V.cjs} +7 -7
  29. package/dist/{chunk-TK74TR4H.js → chunk-GIOYPNTH.js} +36 -2
  30. package/dist/{chunk-2HLIGOKU.cjs → chunk-GQHQOPXZ.cjs} +36 -2
  31. package/dist/{chunk-BPICAGBV.cjs → chunk-GQT4TYKY.cjs} +35 -35
  32. package/dist/{chunk-QAVXL2IH.js → chunk-GYZE55MO.js} +3 -3
  33. package/dist/{chunk-77V4GTCA.js → chunk-H652NHX5.js} +78 -74
  34. package/dist/{chunk-KHPCJRI3.cjs → chunk-HINXWAOD.cjs} +14 -14
  35. package/dist/{chunk-W6P2GBHH.cjs → chunk-HZSPDCXV.cjs} +3 -3
  36. package/dist/{chunk-EMMC5CSQ.js → chunk-HZTDET3N.js} +4 -4
  37. package/dist/{chunk-5CKA5SXU.js → chunk-IPWSXCCN.js} +4 -4
  38. package/dist/{chunk-GQYKQSTC.cjs → chunk-IUTY5WQ2.cjs} +5 -5
  39. package/dist/{chunk-MSMIFMBL.js → chunk-IVSZDECV.js} +4 -4
  40. package/dist/{chunk-2A7FURVO.js → chunk-IZM5VQZD.js} +4 -4
  41. package/dist/{chunk-33XCOVE3.js → chunk-J6M4FPK5.js} +3 -3
  42. package/dist/{chunk-6KMK2UXT.cjs → chunk-JC5YBPSF.cjs} +5 -5
  43. package/dist/{chunk-W55Z7QIX.js → chunk-JCLBKPMX.js} +3 -3
  44. package/dist/{chunk-MXJ5SS53.cjs → chunk-JJBE3TIH.cjs} +10 -10
  45. package/dist/{chunk-HRODTEEO.js → chunk-JX7YL6ZE.js} +5 -5
  46. package/dist/{chunk-IVIA7K75.cjs → chunk-K4VVR7CN.cjs} +18 -18
  47. package/dist/{chunk-VSK7W3O5.cjs → chunk-KEFNV2WM.cjs} +16 -16
  48. package/dist/{chunk-HZCQO4JM.cjs → chunk-KH4CNH66.cjs} +4 -4
  49. package/dist/{chunk-6FGQNDR4.js → chunk-KJLB4OPV.js} +4 -4
  50. package/dist/{chunk-RMHC2VG7.cjs → chunk-KKP7JKN4.cjs} +6 -2
  51. package/dist/{chunk-OEV5RMZO.cjs → chunk-KQCN6AKJ.cjs} +5 -5
  52. package/dist/{chunk-7AD52FRS.cjs → chunk-KVRSTFNH.cjs} +14 -14
  53. package/dist/{chunk-ZKSS47EV.cjs → chunk-LICPB5HZ.cjs} +13 -13
  54. package/dist/{chunk-S5IFXW6E.js → chunk-MGE5Z4GS.js} +4 -4
  55. package/dist/{chunk-6L4VE27M.js → chunk-NBMHU6SW.js} +4 -4
  56. package/dist/{chunk-QCCBXSCE.js → chunk-NGKREZ36.js} +5 -5
  57. package/dist/{chunk-27MPVJVZ.cjs → chunk-NHWSN2SD.cjs} +21 -21
  58. package/dist/{chunk-XMWZG36H.js → chunk-NV4VMVXU.js} +3 -3
  59. package/dist/{chunk-Y3MWXQSB.cjs → chunk-NXZFOPVD.cjs} +19 -19
  60. package/dist/{chunk-ZUL5AVTX.cjs → chunk-OBIYPYYS.cjs} +5 -5
  61. package/dist/{chunk-ZXBZVXDW.js → chunk-OMXII44L.js} +3 -3
  62. package/dist/{chunk-MJVIRCUV.cjs → chunk-OR4Q2BGL.cjs} +18 -18
  63. package/dist/{chunk-6ASWLXXN.js → chunk-PHVRG4I2.js} +4 -4
  64. package/dist/{chunk-QTPMJRGS.js → chunk-QPSKHBJP.js} +6 -2
  65. package/dist/{chunk-VEXPG4WN.js → chunk-QXH7QDSZ.js} +3 -3
  66. package/dist/chunk-RARB3MBR.js +207 -0
  67. package/dist/{chunk-EOBB6A4B.js → chunk-RVBHAXFG.js} +231 -76
  68. package/dist/{chunk-XXZJEFKW.cjs → chunk-S3MDHNKB.cjs} +5 -5
  69. package/dist/{chunk-4UUKPCY4.js → chunk-S4W6Z2MN.js} +4 -4
  70. package/dist/{chunk-BVLP6D3Q.cjs → chunk-SJBGLS25.cjs} +5 -5
  71. package/dist/chunk-SMIWS6DE.cjs +212 -0
  72. package/dist/{chunk-R3IVNY6P.js → chunk-T2QCTZMO.js} +4 -4
  73. package/dist/{chunk-AIX25INK.cjs → chunk-TVHSPJ4N.cjs} +79 -75
  74. package/dist/{chunk-Z5XMPRNC.cjs → chunk-U44IKGG7.cjs} +30 -30
  75. package/dist/{chunk-OPZ7XDDI.js → chunk-UJXISJBN.js} +3 -3
  76. package/dist/{chunk-FXKTYFYA.js → chunk-UM6C3CGK.js} +4 -4
  77. package/dist/{chunk-LAOCQJ2M.js → chunk-UMABK6SI.js} +4 -4
  78. package/dist/{chunk-GN3KDX4W.js → chunk-V6MKC2FZ.js} +3 -3
  79. package/dist/{chunk-EDPQSGB3.cjs → chunk-W7VDOASB.cjs} +5 -5
  80. package/dist/{chunk-DMXC24WV.js → chunk-WJIHFLMJ.js} +2 -2
  81. package/dist/{chunk-UDMYRFDZ.js → chunk-WRKUDAZJ.js} +3 -3
  82. package/dist/{chunk-GCMWDSBZ.cjs → chunk-XIVIE43A.cjs} +5 -5
  83. package/dist/{chunk-UD3DSHZM.js → chunk-XKTPFXGA.js} +3 -3
  84. package/dist/{chunk-HGVXZDSK.cjs → chunk-XUUVDHIF.cjs} +7 -7
  85. package/dist/{chunk-5N54COB6.cjs → chunk-YN6V7R3L.cjs} +13 -13
  86. package/dist/{chunk-I2O7TW6B.js → chunk-ZBQXLH2L.js} +4 -4
  87. package/dist/{chunk-EOFNVCM6.js → chunk-ZU7NIRT6.js} +11 -11
  88. package/dist/{chunk-P7YIA5LN.js → chunk-ZZEI7MV4.js} +4 -4
  89. package/dist/compiler/agent-inference.cjs +6 -6
  90. package/dist/compiler/agent-inference.js +2 -2
  91. package/dist/compiler/android-xr.cjs +6 -6
  92. package/dist/compiler/android-xr.js +4 -4
  93. package/dist/compiler/android.cjs +5 -5
  94. package/dist/compiler/android.js +3 -3
  95. package/dist/compiler/ar.cjs +5 -5
  96. package/dist/compiler/ar.js +3 -3
  97. package/dist/compiler/babylon.cjs +5 -5
  98. package/dist/compiler/babylon.js +4 -4
  99. package/dist/compiler/business-quest.cjs +9 -9
  100. package/dist/compiler/business-quest.js +1 -1
  101. package/dist/compiler/context.cjs +5 -5
  102. package/dist/compiler/context.js +2 -2
  103. package/dist/compiler/domain-block-utils.cjs +151 -151
  104. package/dist/compiler/domain-block-utils.js +3 -3
  105. package/dist/compiler/dtdl.cjs +6 -6
  106. package/dist/compiler/dtdl.js +3 -3
  107. package/dist/compiler/gltf-pipeline.cjs +8 -8
  108. package/dist/compiler/gltf-pipeline.js +1 -1
  109. package/dist/compiler/godot.cjs +5 -5
  110. package/dist/compiler/godot.js +4 -4
  111. package/dist/compiler/incremental.cjs +7 -7
  112. package/dist/compiler/incremental.js +2 -2
  113. package/dist/compiler/index.cjs +182 -182
  114. package/dist/compiler/index.js +56 -56
  115. package/dist/compiler/ios.cjs +5 -5
  116. package/dist/compiler/ios.js +3 -3
  117. package/dist/compiler/llm-provider-capabilities.cjs +5 -5
  118. package/dist/compiler/llm-provider-capabilities.js +2 -2
  119. package/dist/compiler/multi-layer.cjs +7 -7
  120. package/dist/compiler/multi-layer.js +6 -6
  121. package/dist/compiler/openxr.cjs +5 -5
  122. package/dist/compiler/openxr.js +4 -4
  123. package/dist/compiler/playcanvas.cjs +5 -5
  124. package/dist/compiler/playcanvas.js +4 -4
  125. package/dist/compiler/r3f.cjs +9 -9
  126. package/dist/compiler/r3f.js +4 -4
  127. package/dist/compiler/sdf.cjs +6 -6
  128. package/dist/compiler/sdf.js +4 -4
  129. package/dist/compiler/state.cjs +5 -5
  130. package/dist/compiler/state.js +3 -3
  131. package/dist/compiler/trait-composition.cjs +6 -6
  132. package/dist/compiler/trait-composition.js +2 -2
  133. package/dist/compiler/unity.cjs +5 -5
  134. package/dist/compiler/unity.js +4 -4
  135. package/dist/compiler/unreal.cjs +6 -6
  136. package/dist/compiler/unreal.js +4 -4
  137. package/dist/compiler/urdf.cjs +13 -13
  138. package/dist/compiler/urdf.js +4 -4
  139. package/dist/compiler/usd-physics.cjs +6 -6
  140. package/dist/compiler/usd-physics.js +3 -3
  141. package/dist/compiler/visionos.cjs +5 -5
  142. package/dist/compiler/visionos.js +4 -4
  143. package/dist/compiler/vrchat.cjs +6 -6
  144. package/dist/compiler/vrchat.js +4 -4
  145. package/dist/compiler/vrr.cjs +6 -6
  146. package/dist/compiler/vrr.js +4 -4
  147. package/dist/compiler/wasm.cjs +9 -9
  148. package/dist/compiler/wasm.js +4 -4
  149. package/dist/compiler/webgpu.cjs +5 -5
  150. package/dist/compiler/webgpu.js +4 -4
  151. package/dist/debugger.cjs +7 -6
  152. package/dist/debugger.js +5 -4
  153. package/dist/entries/scripting.cjs +0 -13
  154. package/dist/entries/scripting.js +0 -1
  155. package/dist/index.cjs +1002 -881
  156. package/dist/index.js +506 -87
  157. package/dist/parser.cjs +5 -5
  158. package/dist/parser.js +1 -1
  159. package/dist/reconstruction/index.cjs +31 -31
  160. package/dist/reconstruction/index.js +2 -2
  161. package/dist/runtime.cjs +302 -4
  162. package/dist/runtime.d.ts +61 -0
  163. package/dist/runtime.js +25 -3
  164. package/dist/traits/index.cjs +450 -439
  165. package/dist/traits/index.js +24 -13
  166. package/package.json +20 -20
@@ -1,6 +1,7 @@
1
- import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
2
1
  import { ReactiveState, ExpressionEvaluator, createState } from './chunk-XL6INWKT.js';
3
- import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-77V4GTCA.js';
2
+ import { getSharedEventBus, telemetry } from './chunk-RARB3MBR.js';
3
+ import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
4
+ import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-H652NHX5.js';
4
5
  import { logger } from './chunk-PHENW4MQ.js';
5
6
  import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
6
7
  import { WebSocketServer, WebSocket } from 'ws';
@@ -2390,210 +2391,6 @@ async function evaluateHoloExpression(expr, scopeOverride, ctx) {
2390
2391
  return void 0;
2391
2392
  }
2392
2393
  }
2393
-
2394
- // src/events/EventBus.ts
2395
- var EventBus = class {
2396
- constructor() {
2397
- this.listeners = /* @__PURE__ */ new Map();
2398
- this.history = [];
2399
- this.maxHistory = 100;
2400
- this.nextId = 0;
2401
- this.paused = false;
2402
- }
2403
- /**
2404
- * Subscribe to an event.
2405
- */
2406
- on(event, callback, priority = 0) {
2407
- const id = this.nextId++;
2408
- const list = this.listeners.get(event) || [];
2409
- list.push({ callback, priority, once: false, id });
2410
- list.sort((a, b) => b.priority - a.priority);
2411
- this.listeners.set(event, list);
2412
- return id;
2413
- }
2414
- /**
2415
- * Subscribe to an event once (auto-removes after first fire).
2416
- */
2417
- once(event, callback, priority = 0) {
2418
- const id = this.nextId++;
2419
- const list = this.listeners.get(event) || [];
2420
- list.push({ callback, priority, once: true, id });
2421
- list.sort((a, b) => b.priority - a.priority);
2422
- this.listeners.set(event, list);
2423
- return id;
2424
- }
2425
- /**
2426
- * Unsubscribe by listener ID.
2427
- */
2428
- off(listenerId) {
2429
- for (const [event, list] of this.listeners) {
2430
- const idx = list.findIndex((l) => l.id === listenerId);
2431
- if (idx !== -1) {
2432
- list.splice(idx, 1);
2433
- return;
2434
- }
2435
- }
2436
- }
2437
- /**
2438
- * Unsubscribe all listeners for an event.
2439
- */
2440
- offAll(event) {
2441
- this.listeners.delete(event);
2442
- }
2443
- /**
2444
- * Emit an event to all subscribers.
2445
- */
2446
- emit(event, data) {
2447
- if (this.paused) return;
2448
- this.history.push({ event, data, timestamp: Date.now() });
2449
- if (this.history.length > this.maxHistory) this.history.shift();
2450
- const list = this.listeners.get(event);
2451
- if (list) {
2452
- const toRemove = [];
2453
- for (const listener of list) {
2454
- listener.callback(data);
2455
- if (listener.once) toRemove.push(listener.id);
2456
- }
2457
- for (const id of toRemove) {
2458
- const idx = list.findIndex((l) => l.id === id);
2459
- if (idx !== -1) list.splice(idx, 1);
2460
- }
2461
- }
2462
- if (event !== "*") {
2463
- const wildcardList = this.listeners.get("*");
2464
- if (wildcardList) {
2465
- for (const listener of wildcardList) {
2466
- listener.callback({ event, data });
2467
- }
2468
- }
2469
- }
2470
- }
2471
- /**
2472
- * Get event history.
2473
- */
2474
- getHistory() {
2475
- return [...this.history];
2476
- }
2477
- /**
2478
- * Get listener count for an event.
2479
- */
2480
- listenerCount(event) {
2481
- return this.listeners.get(event)?.length || 0;
2482
- }
2483
- /**
2484
- * Pause/resume event emission.
2485
- */
2486
- setPaused(paused) {
2487
- this.paused = paused;
2488
- }
2489
- /**
2490
- * Clear all listeners and history.
2491
- */
2492
- clear() {
2493
- this.listeners.clear();
2494
- this.history = [];
2495
- }
2496
- };
2497
- var sharedBus = null;
2498
- function getSharedEventBus() {
2499
- if (!sharedBus) sharedBus = new EventBus();
2500
- return sharedBus;
2501
- }
2502
- function setSharedEventBus(bus) {
2503
- sharedBus = bus;
2504
- }
2505
-
2506
- // src/monitoring/telemetry.ts
2507
- var TelemetryRegistry = class {
2508
- constructor() {
2509
- this.measurements = [];
2510
- this.maxHistory = 1e4;
2511
- }
2512
- /**
2513
- * Increments a monotonic counter (e.g., total_nodes_executed)
2514
- */
2515
- incrementCounter(name, value = 1, labels) {
2516
- this.measurements.push({
2517
- name,
2518
- type: "counter",
2519
- value,
2520
- labels,
2521
- timestamp: Date.now()
2522
- });
2523
- if (this.measurements.length > this.maxHistory) this.measurements.shift();
2524
- }
2525
- /**
2526
- * Records an instantaneous value (e.g., active_agents)
2527
- */
2528
- setGauge(name, value, labels) {
2529
- this.measurements.push({
2530
- name,
2531
- type: "gauge",
2532
- value,
2533
- labels,
2534
- timestamp: Date.now()
2535
- });
2536
- if (this.measurements.length > this.maxHistory) this.measurements.shift();
2537
- }
2538
- /**
2539
- * Wraps an async function and records its execution latency into a histogram.
2540
- */
2541
- async measureLatency(name, fn, labels) {
2542
- const start = performance.now();
2543
- try {
2544
- return await fn();
2545
- } finally {
2546
- const duration = performance.now() - start;
2547
- this.measurements.push({
2548
- name,
2549
- type: "histogram",
2550
- value: duration,
2551
- labels,
2552
- timestamp: Date.now()
2553
- });
2554
- if (this.measurements.length > this.maxHistory) this.measurements.shift();
2555
- if (duration > 500) {
2556
- this.measurements.push({
2557
- name: "slo_violation_count",
2558
- type: "counter",
2559
- value: 1,
2560
- labels: { ...labels, metric_name: name, threshold: "500ms" },
2561
- timestamp: Date.now()
2562
- });
2563
- }
2564
- }
2565
- }
2566
- /**
2567
- * Snapshots current aggregations for dashboard export.
2568
- */
2569
- getSnapshot() {
2570
- const snapshot = { counters: {}, histograms: {}, gauges: {} };
2571
- const histAggregations = {};
2572
- for (const m of this.measurements) {
2573
- const key = m.labels ? `${m.name}{${JSON.stringify(m.labels)}}` : m.name;
2574
- if (m.type === "counter") {
2575
- snapshot.counters[key] = (snapshot.counters[key] || 0) + m.value;
2576
- } else if (m.type === "gauge") {
2577
- snapshot.gauges[key] = m.value;
2578
- } else if (m.type === "histogram") {
2579
- if (!histAggregations[key]) histAggregations[key] = { count: 0, sum: 0, max: 0 };
2580
- histAggregations[key].count++;
2581
- histAggregations[key].sum += m.value;
2582
- if (m.value > histAggregations[key].max) histAggregations[key].max = m.value;
2583
- }
2584
- }
2585
- for (const [key, agg] of Object.entries(histAggregations)) {
2586
- snapshot.histograms[key] = {
2587
- count: agg.count,
2588
- sum: agg.sum,
2589
- avg: agg.count > 0 ? agg.sum / agg.count : 0,
2590
- max: agg.max
2591
- };
2592
- }
2593
- return snapshot;
2594
- }
2595
- };
2596
- var telemetry = new TelemetryRegistry();
2597
2394
  function stringProperty(value) {
2598
2395
  return typeof value === "string" ? value : void 0;
2599
2396
  }
@@ -4485,6 +4282,6 @@ var HoloScriptRuntime = class {
4485
4282
  }
4486
4283
  };
4487
4284
 
4488
- export { EventBus, HoloScriptAgentRuntime, HoloScriptRuntime, getSharedEventBus, setSharedEventBus, telemetry };
4489
- //# sourceMappingURL=chunk-IHESJZSW.js.map
4490
- //# sourceMappingURL=chunk-IHESJZSW.js.map
4285
+ export { HoloScriptAgentRuntime, HoloScriptRuntime };
4286
+ //# sourceMappingURL=chunk-3NFFOWGG.js.map
4287
+ //# sourceMappingURL=chunk-3NFFOWGG.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
3
+ var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
4
4
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
5
5
 
6
6
  // src/compiler/StateCompiler.ts
@@ -12,8 +12,8 @@ chunkHCCQLAA4_cjs.__export(StateCompiler_exports, {
12
12
  exports.StateCompiler = void 0; exports.UnauthorizedStateCompilerAccessError = void 0;
13
13
  var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
14
14
  "src/compiler/StateCompiler.ts"() {
15
- chunkRMHC2VG7_cjs.init_AgentRBAC();
16
- chunkRMHC2VG7_cjs.init_CompilerBase();
15
+ chunkKKP7JKN4_cjs.init_AgentRBAC();
16
+ chunkKKP7JKN4_cjs.init_CompilerBase();
17
17
  exports.StateCompiler = class {
18
18
  constructor() {
19
19
  this.anonCounter = 0;
@@ -41,7 +41,7 @@ var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
41
41
  */
42
42
  validateAccess(agentToken) {
43
43
  if (!agentToken) return;
44
- const rbac = chunkRMHC2VG7_cjs.getRBAC();
44
+ const rbac = chunkKKP7JKN4_cjs.getRBAC();
45
45
  const decision = rbac.checkAccess({
46
46
  token: agentToken,
47
47
  resourceType: "ast" /* AST */,
@@ -101,7 +101,7 @@ var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
101
101
  return `${node.type}_${this.anonCounter++}`;
102
102
  }
103
103
  };
104
- exports.UnauthorizedStateCompilerAccessError = class extends chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError {
104
+ exports.UnauthorizedStateCompilerAccessError = class extends chunkKKP7JKN4_cjs.UnauthorizedCompilerAccessError {
105
105
  constructor(decision, compilerName) {
106
106
  super(decision, "state compilation", compilerName);
107
107
  this.name = "UnauthorizedStateCompilerAccessError";
@@ -112,5 +112,5 @@ var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
112
112
 
113
113
  exports.StateCompiler_exports = StateCompiler_exports;
114
114
  exports.init_StateCompiler = init_StateCompiler;
115
- //# sourceMappingURL=chunk-AO4I2Z7M.cjs.map
116
- //# sourceMappingURL=chunk-AO4I2Z7M.cjs.map
115
+ //# sourceMappingURL=chunk-3WZEJHUQ.cjs.map
116
+ //# sourceMappingURL=chunk-3WZEJHUQ.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkR75BSDH7_cjs = require('./chunk-R75BSDH7.cjs');
4
- var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
4
+ var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
5
5
  var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
6
6
  var crypto = require('crypto');
7
7
 
@@ -1268,8 +1268,8 @@ function createSemanticCache(options) {
1268
1268
  }
1269
1269
 
1270
1270
  // src/compiler/IncrementalCompiler.ts
1271
- chunkRMHC2VG7_cjs.init_AgentRBAC();
1272
- chunkRMHC2VG7_cjs.init_CompilerBase();
1271
+ chunkKKP7JKN4_cjs.init_AgentRBAC();
1272
+ chunkKKP7JKN4_cjs.init_CompilerBase();
1273
1273
  chunkE7JP3BS3_cjs.init_safeJsonParse();
1274
1274
  function hashContent(content) {
1275
1275
  let hash = 0;
@@ -1772,7 +1772,7 @@ var IncrementalCompiler = class _IncrementalCompiler {
1772
1772
  */
1773
1773
  validateAccess(agentToken) {
1774
1774
  if (!agentToken) return;
1775
- const rbac = chunkRMHC2VG7_cjs.getRBAC();
1775
+ const rbac = chunkKKP7JKN4_cjs.getRBAC();
1776
1776
  const decision = rbac.checkAccess({
1777
1777
  token: agentToken,
1778
1778
  resourceType: "ast" /* AST */,
@@ -1997,7 +1997,7 @@ function deserializeCache(json) {
1997
1997
  }
1998
1998
  return compiler;
1999
1999
  }
2000
- var UnauthorizedIncrementalCompilerAccessError = class extends chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError {
2000
+ var UnauthorizedIncrementalCompilerAccessError = class extends chunkKKP7JKN4_cjs.UnauthorizedCompilerAccessError {
2001
2001
  constructor(decision, compilerName) {
2002
2002
  super(decision, "incremental compilation", compilerName);
2003
2003
  this.name = "UnauthorizedIncrementalCompilerAccessError";
@@ -2011,5 +2011,5 @@ exports.createIncrementalCompiler = createIncrementalCompiler;
2011
2011
  exports.deserializeCache = deserializeCache;
2012
2012
  exports.globalTraitGraph = globalTraitGraph;
2013
2013
  exports.serializeCache = serializeCache;
2014
- //# sourceMappingURL=chunk-IRWWS72C.cjs.map
2015
- //# sourceMappingURL=chunk-IRWWS72C.cjs.map
2014
+ //# sourceMappingURL=chunk-4V2E7U7Q.cjs.map
2015
+ //# sourceMappingURL=chunk-4V2E7U7Q.cjs.map
@@ -1,7 +1,7 @@
1
- import { init_VRRCompiler, VRRCompiler } from './chunk-R3IVNY6P.js';
2
- import { init_ARCompiler, ARCompiler } from './chunk-OPZ7XDDI.js';
3
- import { init_BabylonCompiler, BabylonCompiler } from './chunk-6ASWLXXN.js';
4
- import { init_CompilerBase, CompilerBase } from './chunk-QTPMJRGS.js';
1
+ import { init_VRRCompiler, VRRCompiler } from './chunk-T2QCTZMO.js';
2
+ import { init_ARCompiler, ARCompiler } from './chunk-UJXISJBN.js';
3
+ import { init_BabylonCompiler, BabylonCompiler } from './chunk-PHVRG4I2.js';
4
+ import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
5
5
  import { ANSCapabilityPath } from '@holoscript/core-types/ans';
6
6
 
7
7
  // src/compiler/MultiLayerCompiler.ts
@@ -66,5 +66,5 @@ var MultiLayerCompiler = class extends CompilerBase {
66
66
  };
67
67
 
68
68
  export { MultiLayerCompiler };
69
- //# sourceMappingURL=chunk-ER4GATIU.js.map
70
- //# sourceMappingURL=chunk-ER4GATIU.js.map
69
+ //# sourceMappingURL=chunk-62FBK3B7.js.map
70
+ //# sourceMappingURL=chunk-62FBK3B7.js.map
@@ -3,8 +3,8 @@
3
3
  var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
4
4
  var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
5
5
  var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
6
- var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
7
- var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
6
+ var chunkXUUVDHIF_cjs = require('./chunk-XUUVDHIF.cjs');
7
+ var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
8
8
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
9
9
  var ans = require('@holoscript/core-types/ans');
10
10
 
@@ -18,8 +18,8 @@ var init_BabylonCompiler = chunkHCCQLAA4_cjs.__esm({
18
18
  "src/compiler/BabylonCompiler.ts"() {
19
19
  chunkOIQYIIO3_cjs.init_TraitCompositor();
20
20
  chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
21
- chunkRMHC2VG7_cjs.init_CompilerBase();
22
- chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
21
+ chunkKKP7JKN4_cjs.init_CompilerBase();
22
+ chunkXUUVDHIF_cjs.init_DomainBlockCompilerMixin();
23
23
  chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
24
24
  SHAPE_TO_MESH = {
25
25
  sphere: "CreateSphere",
@@ -36,7 +36,7 @@ var init_BabylonCompiler = chunkHCCQLAA4_cjs.__esm({
36
36
  capsule: "CreateCapsule",
37
37
  disc: "CreateDisc"
38
38
  };
39
- exports.BabylonCompiler = class extends chunkRMHC2VG7_cjs.CompilerBase {
39
+ exports.BabylonCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
40
40
  constructor(options = {}) {
41
41
  super();
42
42
  this.compilerName = "BabylonCompiler";
@@ -138,31 +138,31 @@ var init_BabylonCompiler = chunkHCCQLAA4_cjs.__esm({
138
138
  this.emit("");
139
139
  this.emit("// === v4.2 Domain Blocks ===");
140
140
  let blockIdx = 0;
141
- const compiled = chunkHGVXZDSK_cjs.compileDomainBlocks(
141
+ const compiled = chunkXUUVDHIF_cjs.compileDomainBlocks(
142
142
  domainBlocks,
143
143
  {
144
144
  material: (block) => {
145
- const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
146
- return chunkHGVXZDSK_cjs.materialToBabylon(mat, `db${blockIdx++}`);
145
+ const mat = chunkXUUVDHIF_cjs.compileMaterialBlock(block);
146
+ return chunkXUUVDHIF_cjs.materialToBabylon(mat, `db${blockIdx++}`);
147
147
  },
148
148
  physics: (block) => {
149
- const phys = chunkHGVXZDSK_cjs.compilePhysicsBlock(block);
150
- return chunkHGVXZDSK_cjs.physicsToBabylon(phys, `db${blockIdx++}`);
149
+ const phys = chunkXUUVDHIF_cjs.compilePhysicsBlock(block);
150
+ return chunkXUUVDHIF_cjs.physicsToBabylon(phys, `db${blockIdx++}`);
151
151
  },
152
152
  vfx: (block) => {
153
- const ps = chunkHGVXZDSK_cjs.compileParticleBlock(block);
154
- return chunkHGVXZDSK_cjs.particlesToBabylon(ps, `db${blockIdx++}`);
153
+ const ps = chunkXUUVDHIF_cjs.compileParticleBlock(block);
154
+ return chunkXUUVDHIF_cjs.particlesToBabylon(ps, `db${blockIdx++}`);
155
155
  },
156
156
  postfx: (block) => {
157
- const pp = chunkHGVXZDSK_cjs.compilePostProcessingBlock(block);
158
- return chunkHGVXZDSK_cjs.postProcessingToBabylon(pp);
157
+ const pp = chunkXUUVDHIF_cjs.compilePostProcessingBlock(block);
158
+ return chunkXUUVDHIF_cjs.postProcessingToBabylon(pp);
159
159
  },
160
160
  audio: (block) => {
161
- const audio = chunkHGVXZDSK_cjs.compileAudioSourceBlock(block);
162
- return chunkHGVXZDSK_cjs.audioSourceToBabylon(audio, `db${blockIdx++}`);
161
+ const audio = chunkXUUVDHIF_cjs.compileAudioSourceBlock(block);
162
+ return chunkXUUVDHIF_cjs.audioSourceToBabylon(audio, `db${blockIdx++}`);
163
163
  },
164
164
  weather: (block) => {
165
- const weather = chunkHGVXZDSK_cjs.compileWeatherBlock(block);
165
+ const weather = chunkXUUVDHIF_cjs.compileWeatherBlock(block);
166
166
  const layers = weather.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
167
167
  return `// Weather: ${weather.keyword} "${weather.name || ""}" \u2014 implement via Babylon.js particle systems
168
168
  ${layers}`;
@@ -843,5 +843,5 @@ ${layers}`;
843
843
 
844
844
  exports.BabylonCompiler_exports = BabylonCompiler_exports;
845
845
  exports.init_BabylonCompiler = init_BabylonCompiler;
846
- //# sourceMappingURL=chunk-L63H3SQ4.cjs.map
847
- //# sourceMappingURL=chunk-L63H3SQ4.cjs.map
846
+ //# sourceMappingURL=chunk-6DPSFNJB.cjs.map
847
+ //# sourceMappingURL=chunk-6DPSFNJB.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
4
- var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
3
+ var chunkXUUVDHIF_cjs = require('./chunk-XUUVDHIF.cjs');
4
+ var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
5
5
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
6
6
  var ans = require('@holoscript/core-types/ans');
7
7
 
@@ -14,9 +14,9 @@ chunkHCCQLAA4_cjs.__export(SDFCompiler_exports, {
14
14
  exports.SDFCompiler = void 0; exports.SDFCompiler_default = void 0;
15
15
  var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
16
16
  "src/compiler/SDFCompiler.ts"() {
17
- chunkRMHC2VG7_cjs.init_CompilerBase();
18
- chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
19
- exports.SDFCompiler = class extends chunkRMHC2VG7_cjs.CompilerBase {
17
+ chunkKKP7JKN4_cjs.init_CompilerBase();
18
+ chunkXUUVDHIF_cjs.init_DomainBlockCompilerMixin();
19
+ exports.SDFCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
20
20
  constructor(options = {}) {
21
21
  super();
22
22
  this.compilerName = "SDFCompiler";
@@ -96,23 +96,23 @@ var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
96
96
  if (domainBlocks.length === 0) return;
97
97
  this.emit("");
98
98
  this.emit("<!-- v4.2 Domain Blocks -->");
99
- const compiled = chunkHGVXZDSK_cjs.compileDomainBlocks(
99
+ const compiled = chunkXUUVDHIF_cjs.compileDomainBlocks(
100
100
  domainBlocks,
101
101
  {
102
102
  material: (block) => {
103
- const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
104
- return chunkHGVXZDSK_cjs.materialToSDF(mat);
103
+ const mat = chunkXUUVDHIF_cjs.compileMaterialBlock(block);
104
+ return chunkXUUVDHIF_cjs.materialToSDF(mat);
105
105
  },
106
106
  physics: (block) => {
107
- const phys = chunkHGVXZDSK_cjs.compilePhysicsBlock(block);
108
- return chunkHGVXZDSK_cjs.physicsToSDF(phys);
107
+ const phys = chunkXUUVDHIF_cjs.compilePhysicsBlock(block);
108
+ return chunkXUUVDHIF_cjs.physicsToSDF(phys);
109
109
  },
110
110
  audio: (block) => {
111
- const audio = chunkHGVXZDSK_cjs.compileAudioSourceBlock(block);
111
+ const audio = chunkXUUVDHIF_cjs.compileAudioSourceBlock(block);
112
112
  return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" -->`;
113
113
  },
114
114
  weather: (block) => {
115
- const weather = chunkHGVXZDSK_cjs.compileWeatherBlock(block);
115
+ const weather = chunkXUUVDHIF_cjs.compileWeatherBlock(block);
116
116
  const layers = weather.layers.map((l) => `<!-- ${l.type}: ${JSON.stringify(l.properties)} -->`).join("\n");
117
117
  return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" -->
118
118
  ${layers}`;
@@ -607,5 +607,5 @@ ${layers}`;
607
607
 
608
608
  exports.SDFCompiler_exports = SDFCompiler_exports;
609
609
  exports.init_SDFCompiler = init_SDFCompiler;
610
- //# sourceMappingURL=chunk-XFXGA5IW.cjs.map
611
- //# sourceMappingURL=chunk-XFXGA5IW.cjs.map
610
+ //# sourceMappingURL=chunk-73FELZVJ.cjs.map
611
+ //# sourceMappingURL=chunk-73FELZVJ.cjs.map