@holoscript/core 6.0.3 → 7.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 (244) hide show
  1. package/README.md +40 -40
  2. package/dist/codebase/index.d.ts +25 -0
  3. package/dist/compiler/index.d.ts +82 -0
  4. package/dist/constants.d.ts +4 -0
  5. package/dist/coordinators/index.d.ts +189 -0
  6. package/dist/entries/interop.d.ts +9 -0
  7. package/dist/entries/scripting.d.ts +7 -0
  8. package/dist/index.d.ts +520 -19
  9. package/dist/paper-0c-spike/index.d.ts +29 -0
  10. package/dist/reconstruction/index.d.ts +78 -0
  11. package/dist/self-improvement/index.d.ts +0 -48
  12. package/dist/storage/index.d.ts +24 -0
  13. package/dist/tools/index.d.ts +33 -0
  14. package/dist/traitDocs/traitDocs.d.ts +69 -0
  15. package/dist/traits/index.d.ts +61 -0
  16. package/package.json +102 -19
  17. package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
  18. package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
  19. package/dist/HoloScriptPlusParser-BZR5DELQ.js +0 -692
  20. package/dist/HoloScriptPlusParser-SBMYDNXO.cjs +0 -697
  21. package/dist/USDZExporter-MHEHXZB4.cjs +0 -709
  22. package/dist/USDZExporter-YA55ZS35.js +0 -707
  23. package/dist/chunk-26TLYBFD.js +0 -309
  24. package/dist/chunk-27LWW5FU.cjs +0 -410
  25. package/dist/chunk-2UX5LRAP.cjs +0 -833
  26. package/dist/chunk-32TWR3HE.js +0 -70
  27. package/dist/chunk-3FXV5S25.cjs +0 -633
  28. package/dist/chunk-3FYZOR7S.cjs +0 -69
  29. package/dist/chunk-3KEU5QYY.cjs +0 -175
  30. package/dist/chunk-4FCZDTD5.js +0 -610
  31. package/dist/chunk-4KJ2R7VP.cjs +0 -507
  32. package/dist/chunk-4SMUJFHL.js +0 -1213
  33. package/dist/chunk-54FHG2MX.js +0 -655
  34. package/dist/chunk-56IF4NTA.js +0 -56
  35. package/dist/chunk-5GLCTO44.js +0 -161
  36. package/dist/chunk-5TOFIR6L.js +0 -407
  37. package/dist/chunk-65RFOWZI.js +0 -765
  38. package/dist/chunk-6OQBLABR.js +0 -5240
  39. package/dist/chunk-6WNCRE6F.js +0 -126
  40. package/dist/chunk-74YCHHTE.js +0 -1872
  41. package/dist/chunk-7H5UNJZD.cjs +0 -1973
  42. package/dist/chunk-7KPI4EKH.cjs +0 -701
  43. package/dist/chunk-7LCYLPW2.cjs +0 -663
  44. package/dist/chunk-7N3JIJMT.js +0 -1395
  45. package/dist/chunk-7X2IEJIE.cjs +0 -2526
  46. package/dist/chunk-A6GO3DPZ.cjs +0 -1002
  47. package/dist/chunk-AC4BSHFV.js +0 -765
  48. package/dist/chunk-AIUXRS74.cjs +0 -3681
  49. package/dist/chunk-ARNKA274.cjs +0 -130
  50. package/dist/chunk-AW7WAELW.js +0 -975
  51. package/dist/chunk-BKIGPPVM.js +0 -629
  52. package/dist/chunk-BO2OKHIY.js +0 -6055
  53. package/dist/chunk-BU5ZAFMC.js +0 -115
  54. package/dist/chunk-BY3B7ZYV.cjs +0 -457
  55. package/dist/chunk-C2QHVHZF.js +0 -4066
  56. package/dist/chunk-C7BNX4XJ.js +0 -1043
  57. package/dist/chunk-CLYEIWA5.cjs +0 -408
  58. package/dist/chunk-CMYAWUX3.js +0 -4455
  59. package/dist/chunk-CN4NOESF.cjs +0 -416
  60. package/dist/chunk-CNVM7J3M.js +0 -883
  61. package/dist/chunk-CO2VM2DK.js +0 -1965
  62. package/dist/chunk-CQDOF3G7.cjs +0 -1404
  63. package/dist/chunk-DH5G2JUA.cjs +0 -614
  64. package/dist/chunk-DIEDKX5B.cjs +0 -660
  65. package/dist/chunk-DN7UFU63.cjs +0 -172
  66. package/dist/chunk-DXVCEFZB.js +0 -2027
  67. package/dist/chunk-EGIZHYJP.cjs +0 -85
  68. package/dist/chunk-EJA7G2C4.cjs +0 -428
  69. package/dist/chunk-ELLQPFAF.js +0 -830
  70. package/dist/chunk-EMO7HAKJ.cjs +0 -1875
  71. package/dist/chunk-ENV7K6XA.js +0 -282
  72. package/dist/chunk-EPWRXL6S.js +0 -2522
  73. package/dist/chunk-EUFLX2PI.js +0 -56956
  74. package/dist/chunk-F5LVGHNT.js +0 -449
  75. package/dist/chunk-FEFHPUEM.cjs +0 -6122
  76. package/dist/chunk-FF3Q7ADR.js +0 -380
  77. package/dist/chunk-GC3YU46J.js +0 -762
  78. package/dist/chunk-H6WMMLQK.cjs +0 -4492
  79. package/dist/chunk-H7XMORZI.js +0 -2731
  80. package/dist/chunk-HAN4V3PF.cjs +0 -2037
  81. package/dist/chunk-HBZYCASG.js +0 -4208
  82. package/dist/chunk-HF4OFY25.cjs +0 -4097
  83. package/dist/chunk-HHS6FMOU.cjs +0 -3813
  84. package/dist/chunk-HJJLD366.js +0 -1169
  85. package/dist/chunk-HKCVM6OK.cjs +0 -2237
  86. package/dist/chunk-HUFNKFA6.js +0 -698
  87. package/dist/chunk-I3XGTIHM.cjs +0 -1505
  88. package/dist/chunk-I6XZ5DZF.cjs +0 -488
  89. package/dist/chunk-IHOUYQIA.js +0 -406
  90. package/dist/chunk-ILRBGFVD.cjs +0 -72
  91. package/dist/chunk-KDB6BUMB.js +0 -3666
  92. package/dist/chunk-KUJRR4FJ.js +0 -657
  93. package/dist/chunk-KYM4XRFG.js +0 -421
  94. package/dist/chunk-L3Z2HIWJ.cjs +0 -793
  95. package/dist/chunk-LBPEZQAF.js +0 -2232
  96. package/dist/chunk-LER4WXW5.cjs +0 -286
  97. package/dist/chunk-LK5IAVH6.cjs +0 -1173
  98. package/dist/chunk-M6FU6S22.js +0 -2911
  99. package/dist/chunk-MWEFR6YQ.js +0 -1857
  100. package/dist/chunk-N5FTS757.cjs +0 -415
  101. package/dist/chunk-NCUHGRTZ.js +0 -752
  102. package/dist/chunk-NKRKT6V2.js +0 -69
  103. package/dist/chunk-NLPSZT4C.js +0 -630
  104. package/dist/chunk-NRUB55IT.cjs +0 -771
  105. package/dist/chunk-NTMZSDXM.cjs +0 -633
  106. package/dist/chunk-ODGMVILH.js +0 -9662
  107. package/dist/chunk-PBA6NXCT.cjs +0 -1216
  108. package/dist/chunk-PHENW4MQ.js +0 -65
  109. package/dist/chunk-PJMOXFPR.cjs +0 -1861
  110. package/dist/chunk-PLMYCCA4.js +0 -504
  111. package/dist/chunk-PPULB4GG.cjs +0 -9728
  112. package/dist/chunk-PQLGZKMC.cjs +0 -755
  113. package/dist/chunk-Q56TT7IL.js +0 -483
  114. package/dist/chunk-QHVVVN47.cjs +0 -2033
  115. package/dist/chunk-QWKUKVRE.js +0 -2026
  116. package/dist/chunk-RE3OKSYF.cjs +0 -424
  117. package/dist/chunk-RT7LJRSF.cjs +0 -57378
  118. package/dist/chunk-SPDELRRV.cjs +0 -319
  119. package/dist/chunk-SUCBB66F.js +0 -229
  120. package/dist/chunk-TSWTWZ42.cjs +0 -4214
  121. package/dist/chunk-UITWA6DV.cjs +0 -2829
  122. package/dist/chunk-UQW6SLM5.js +0 -172
  123. package/dist/chunk-V2ILLPHK.cjs +0 -237
  124. package/dist/chunk-V42NTCFH.js +0 -3645
  125. package/dist/chunk-VJ3L7CHT.cjs +0 -169
  126. package/dist/chunk-VJVCD5T5.cjs +0 -769
  127. package/dist/chunk-VK5AXKO3.js +0 -746
  128. package/dist/chunk-VSXOIUCF.cjs +0 -473
  129. package/dist/chunk-VZNKJZTT.cjs +0 -749
  130. package/dist/chunk-W76ETJTI.js +0 -678
  131. package/dist/chunk-WFJIDI2N.cjs +0 -424
  132. package/dist/chunk-WN3YF33G.cjs +0 -118
  133. package/dist/chunk-WUXIRGZP.cjs +0 -2915
  134. package/dist/chunk-WYH4GVZ5.js +0 -1488
  135. package/dist/chunk-X4YVN7H3.cjs +0 -888
  136. package/dist/chunk-X67XRI2T.js +0 -410
  137. package/dist/chunk-XDXZM3ZP.cjs +0 -1046
  138. package/dist/chunk-XH7SE4HH.cjs +0 -72
  139. package/dist/chunk-XNMEH2BI.js +0 -126
  140. package/dist/chunk-XSF76QRU.js +0 -468
  141. package/dist/chunk-XSUZMPVQ.cjs +0 -682
  142. package/dist/chunk-XUILI4KB.cjs +0 -430
  143. package/dist/chunk-Y5MUAYTO.js +0 -167
  144. package/dist/chunk-Y7VK5TH3.cjs +0 -129
  145. package/dist/chunk-YCMQQQ5U.cjs +0 -5244
  146. package/dist/chunk-YYXH45E2.js +0 -426
  147. package/dist/chunk-ZGTGVSTZ.js +0 -422
  148. package/dist/chunk-ZL6VJ6SN.js +0 -421
  149. package/dist/cli/holoscript-runner.cjs +0 -2258
  150. package/dist/cli/holoscript-runner.js +0 -2233
  151. package/dist/codebase/index.cjs +0 -336
  152. package/dist/codebase/index.js +0 -331
  153. package/dist/compiler/agent-inference.cjs +0 -29
  154. package/dist/compiler/agent-inference.js +0 -6
  155. package/dist/compiler/android-xr.cjs +0 -20
  156. package/dist/compiler/android-xr.js +0 -10
  157. package/dist/compiler/android.cjs +0 -21
  158. package/dist/compiler/android.js +0 -11
  159. package/dist/compiler/ar.cjs +0 -21
  160. package/dist/compiler/ar.js +0 -9
  161. package/dist/compiler/babylon.cjs +0 -18
  162. package/dist/compiler/babylon.js +0 -12
  163. package/dist/compiler/coco.cjs +0 -27
  164. package/dist/compiler/coco.js +0 -4
  165. package/dist/compiler/domain-block-utils.cjs +0 -595
  166. package/dist/compiler/domain-block-utils.js +0 -9
  167. package/dist/compiler/dtdl.cjs +0 -25
  168. package/dist/compiler/dtdl.js +0 -9
  169. package/dist/compiler/gltf-pipeline.cjs +0 -39
  170. package/dist/compiler/gltf-pipeline.js +0 -4
  171. package/dist/compiler/godot.cjs +0 -16
  172. package/dist/compiler/godot.js +0 -10
  173. package/dist/compiler/incremental.cjs +0 -30
  174. package/dist/compiler/incremental.js +0 -5
  175. package/dist/compiler/index.cjs +0 -1522
  176. package/dist/compiler/index.js +0 -1321
  177. package/dist/compiler/ios.cjs +0 -21
  178. package/dist/compiler/ios.js +0 -11
  179. package/dist/compiler/multi-layer.cjs +0 -27
  180. package/dist/compiler/multi-layer.js +0 -12
  181. package/dist/compiler/nodetoy.cjs +0 -23
  182. package/dist/compiler/nodetoy.js +0 -4
  183. package/dist/compiler/openxr.cjs +0 -16
  184. package/dist/compiler/openxr.js +0 -10
  185. package/dist/compiler/playcanvas.cjs +0 -17
  186. package/dist/compiler/playcanvas.js +0 -11
  187. package/dist/compiler/r3f.cjs +0 -35
  188. package/dist/compiler/r3f.js +0 -13
  189. package/dist/compiler/remotion.cjs +0 -23
  190. package/dist/compiler/remotion.js +0 -4
  191. package/dist/compiler/reproducibility.cjs +0 -39
  192. package/dist/compiler/reproducibility.js +0 -4
  193. package/dist/compiler/sdf.cjs +0 -22
  194. package/dist/compiler/sdf.js +0 -10
  195. package/dist/compiler/semantic-scene.cjs +0 -31
  196. package/dist/compiler/semantic-scene.js +0 -4
  197. package/dist/compiler/state.cjs +0 -18
  198. package/dist/compiler/state.js +0 -8
  199. package/dist/compiler/trait-composition.cjs +0 -27
  200. package/dist/compiler/trait-composition.js +0 -6
  201. package/dist/compiler/unity.cjs +0 -16
  202. package/dist/compiler/unity.js +0 -10
  203. package/dist/compiler/unreal.cjs +0 -20
  204. package/dist/compiler/unreal.js +0 -10
  205. package/dist/compiler/urdf.cjs +0 -46
  206. package/dist/compiler/urdf.js +0 -10
  207. package/dist/compiler/usd-physics.cjs +0 -24
  208. package/dist/compiler/usd-physics.js +0 -7
  209. package/dist/compiler/visionos.cjs +0 -16
  210. package/dist/compiler/visionos.js +0 -10
  211. package/dist/compiler/vrchat.cjs +0 -20
  212. package/dist/compiler/vrchat.js +0 -10
  213. package/dist/compiler/vrr.cjs +0 -22
  214. package/dist/compiler/vrr.js +0 -10
  215. package/dist/compiler/wasm.cjs +0 -34
  216. package/dist/compiler/wasm.js +0 -10
  217. package/dist/compiler/webgpu.cjs +0 -16
  218. package/dist/compiler/webgpu.js +0 -10
  219. package/dist/debugger.cjs +0 -21
  220. package/dist/debugger.js +0 -8
  221. package/dist/entries/interop.cjs +0 -62
  222. package/dist/entries/interop.js +0 -5
  223. package/dist/entries/scripting.cjs +0 -67
  224. package/dist/entries/scripting.js +0 -10
  225. package/dist/index.cjs +0 -61703
  226. package/dist/index.js +0 -58652
  227. package/dist/math/vec3.cjs +0 -57
  228. package/dist/math/vec3.js +0 -4
  229. package/dist/parser.cjs +0 -26
  230. package/dist/parser.js +0 -9
  231. package/dist/playwright-7DTEQCBD.cjs +0 -98673
  232. package/dist/playwright-BIZXMLD2.js +0 -98660
  233. package/dist/post-quantum-JTTAAGO3.cjs +0 -6
  234. package/dist/post-quantum-RVPVDEPI.js +0 -4
  235. package/dist/runtime.cjs +0 -16
  236. package/dist/runtime.js +0 -7
  237. package/dist/storage/index.cjs +0 -37
  238. package/dist/storage/index.js +0 -4
  239. package/dist/traits/index.cjs +0 -14331
  240. package/dist/traits/index.js +0 -12126
  241. package/dist/type-checker.cjs +0 -18
  242. package/dist/type-checker.js +0 -5
  243. package/dist/wot/index.cjs +0 -29
  244. package/dist/wot/index.js +0 -4
package/README.md CHANGED
@@ -37,7 +37,7 @@ const output = compiler.compile(ast);
37
37
  - **Multi-format Parser** - Supports `.hs`, `.hsplus`, and `.holo` files
38
38
  - **Complete AST** - Full abstract syntax tree representation
39
39
  - **Validation** - Comprehensive error checking with recovery
40
- - **33 Compile Targets** - Web (R3F, Babylon), Unity, Unreal, Godot, iOS, Android, Vision Pro, WebGPU, WASM, VRChat, OpenXR, URDF, DTDL, SDF
40
+ - **30+ Compile Targets** - Web (R3F, Babylon), Unity, Unreal, Godot, iOS, Android, Vision Pro, WebGPU, WASM, VRChat, OpenXR, URDF, DTDL, SDF
41
41
  - **3,300+ Traits** - Modularized across 114 category files covering VR interactions, physics, networking, AI, scripting, automation, animation, nature, magic, sci-fi, emotions, and more
42
42
  - **AI Integration** - Adapters for OpenAI, Anthropic, Gemini, Ollama, and more
43
43
  - **Reactive State** - `reactive()`, `computed()`, `effect()`, `bind()`
@@ -49,45 +49,45 @@ const output = compiler.compile(ast);
49
49
  | `HoloScriptPlusParser` | `.hsplus` | Extended syntax with TypeScript modules |
50
50
  | `HoloCompositionParser` | `.holo` | Scene-centric composition files |
51
51
  | `HoloScript2DParser` | `.hs` | Basic logic and protocols |
52
- | `HoloScriptParser` | `.hs` | Legacy parser |
53
-
54
- ## Compilers (33 implementations, 24 registered dialects, 29 ExportTargets)
55
-
56
- | Compiler | Target | Output |
57
- | ------------------------------- | -------------------------- | ------------------ |
58
- | `UnityCompiler` | Unity Engine | C# + Prefab |
59
- | `UnrealCompiler` | Unreal Engine 5 | C++ + Blueprint |
60
- | `GodotCompiler` | Godot 4 | GDScript + .tscn |
61
- | `R3FCompiler` | React Three Fiber | TSX + hooks |
62
- | `BabylonCompiler` | Babylon.js | TypeScript |
63
- | `PlayCanvasCompiler` | PlayCanvas | JavaScript |
64
- | `OpenXRCompiler` | OpenXR Standard | C++ |
65
- | `VRChatCompiler` | VRChat | UdonSharp C# |
66
- | `VisionOSCompiler` | Apple Vision Pro | Swift |
67
- | `AndroidXRCompiler` | Android XR | Kotlin |
68
- | `IOSCompiler` | iOS / ARKit | Swift |
69
- | `AndroidCompiler` | Android / ARCore | Kotlin |
70
- | `ARCompiler` | Generic AR | TypeScript |
71
- | `WASMCompiler` | WebAssembly | .wasm + .js |
72
- | `WebGPUCompiler` | WebGPU Compute | WGSL + TypeScript |
73
- | `URDFCompiler` | Robotics (URDF) | .urdf XML |
74
- | `SDFCompiler` | SDF / Gazebo | .sdf XML |
75
- | `DTDLCompiler` | Digital Twins | JSON-LD |
76
- | `StateCompiler` | Reactive State | JSON |
77
- | `A2AAgentCardCompiler` | A2A Agent Cards | JSON |
78
- | `NIRCompiler` | Neuromorphic IR | JSON |
79
- | `VRRCompiler` | Variable Rate Rendering | TypeScript |
80
- | `Native2DCompiler` | 2D HTML/CSS | TSX + HTML |
81
- | `NodeServiceCompiler` | Node.js Services | TypeScript |
82
- | `AIGlassesCompiler` | AI Glasses | Kotlin Compose |
83
- | `GLTFPipeline` | glTF | .glb / .gltf |
84
- | `NFTMarketplaceCompiler` | NFT Marketplace | Solidity |
85
- | `USDPhysicsCompiler` | USD Physics | .usda |
86
- | `TSLCompiler` | Three.js Shading Language | GLSL / WGSL |
87
- | `SCMCompiler` | Structural Causal Model | JSON DAG |
88
- | `QuiltCompiler` | Looking Glass Hologram | Multi-view PNG |
89
- | `MVHEVCCompiler` | MV-HEVC Hologram | Swift + .mov |
90
- | `FlatSemanticCompiler` | Semantic 2D Layout | TSX |
52
+ | `HoloScriptParser` | `.hs` | Standard semantic parser |
53
+
54
+ ## Compilers (30+ implementations; verify live targets via health + ExportTarget enum)
55
+
56
+ | Compiler | Target | Output |
57
+ | ------------------------ | ------------------------- | ----------------- |
58
+ | `UnityCompiler` | Unity Engine | C# + Prefab |
59
+ | `UnrealCompiler` | Unreal Engine 5 | C++ + Blueprint |
60
+ | `GodotCompiler` | Godot 4 | GDScript + .tscn |
61
+ | `R3FCompiler` | React Three Fiber | TSX + hooks |
62
+ | `BabylonCompiler` | Babylon.js | TypeScript |
63
+ | `PlayCanvasCompiler` | PlayCanvas | JavaScript |
64
+ | `OpenXRCompiler` | OpenXR Standard | C++ |
65
+ | `VRChatCompiler` | VRChat | UdonSharp C# |
66
+ | `VisionOSCompiler` | Apple Vision Pro | Swift |
67
+ | `AndroidXRCompiler` | Android XR | Kotlin |
68
+ | `IOSCompiler` | iOS / ARKit | Swift |
69
+ | `AndroidCompiler` | Android / ARCore | Kotlin |
70
+ | `ARCompiler` | Generic AR | TypeScript |
71
+ | `WASMCompiler` | WebAssembly | .wasm + .js |
72
+ | `WebGPUCompiler` | WebGPU Compute | WGSL + TypeScript |
73
+ | `URDFCompiler` | Robotics (URDF) | .urdf XML |
74
+ | `SDFCompiler` | SDF / Gazebo | .sdf XML |
75
+ | `DTDLCompiler` | Digital Twins | JSON-LD |
76
+ | `StateCompiler` | Reactive State | JSON |
77
+ | `A2AAgentCardCompiler` | A2A Agent Cards | JSON |
78
+ | `NIRCompiler` | Neuromorphic IR | JSON |
79
+ | `VRRCompiler` | Variable Rate Rendering | TypeScript |
80
+ | `Native2DCompiler` | 2D HTML/CSS | TSX + HTML |
81
+ | `NodeServiceCompiler` | Node.js Services | TypeScript |
82
+ | `AIGlassesCompiler` | AI Glasses | Kotlin Compose |
83
+ | `GLTFPipeline` | glTF | .glb / .gltf |
84
+ | `NFTMarketplaceCompiler` | NFT Marketplace | Solidity |
85
+ | `USDPhysicsCompiler` | USD Physics | .usda |
86
+ | `TSLCompiler` | Three.js Shading Language | GLSL / WGSL |
87
+ | `SCMCompiler` | Structural Causal Model | JSON DAG |
88
+ | `QuiltCompiler` | Looking Glass Hologram | Multi-view PNG |
89
+ | `MVHEVCCompiler` | MV-HEVC Hologram | Swift + .mov |
90
+ | `FlatSemanticCompiler` | Semantic 2D Layout | TSX |
91
91
 
92
92
  ## Trait System
93
93
 
@@ -0,0 +1,25 @@
1
+ // @holoscript/core/codebase — local dedup + god-file detection utilities
2
+ export declare class DedupFilter {
3
+ constructor(config?: { hashFn?: (item: unknown) => string; [key: string]: unknown });
4
+ add(item: unknown): boolean;
5
+ has(item: unknown): boolean;
6
+ report(): { duplicates: unknown[]; removals: unknown[] };
7
+ [key: string]: unknown;
8
+ }
9
+ export declare function createDedupFilter(config?: unknown): DedupFilter;
10
+ export declare class GodFileDetector {
11
+ constructor(thresholds?: unknown);
12
+ analyze(path: string, content: string): unknown;
13
+ [key: string]: unknown;
14
+ }
15
+ export declare function createGodFileDetector(thresholds?: unknown): GodFileDetector;
16
+ export type Dedupable = unknown;
17
+ export type DedupReport = { duplicates: unknown[]; removals: unknown[] };
18
+ export type DedupRemoval = unknown;
19
+ export type DedupConfig = unknown;
20
+ export type FileMetrics = unknown;
21
+ export type GodFileClassification = unknown;
22
+ export type GodFileReport = unknown;
23
+ export type VirtualSplitPlan = unknown;
24
+ export type SplitSegment = unknown;
25
+ export type GodFileThresholds = unknown;
@@ -63,6 +63,19 @@ export class IncrementalCompiler extends CompilerBase { compile(ast: any, token:
63
63
  export class MultiLayerCompiler extends CompilerBase { compile(ast: any, token: CompilerToken): any; }
64
64
  export class COCOExporter { [key: string]: any; }
65
65
  export class GLTFPipelineMCPTool { [key: string]: any; }
66
+ export const BUSINESS_QUEST_TOOLS: any[];
67
+ export function registerBusinessQuestTools(server: any): void;
68
+ export function handleBusinessQuestToolCall(request: any): Promise<any>;
69
+ export function buildVRRCompositionFromDraft(draft: any): any;
70
+ export function validateBusinessVRRDraft(
71
+ draft: unknown,
72
+ options?: { parseWithVrrCompiler?: boolean }
73
+ ): Promise<any>;
74
+ export function draftToHoloPreview(draft: any): string;
75
+ export const businessVRRDraftSchema: any;
76
+ export type BusinessVRRDraft = any;
77
+ export type BusinessQuestValidationIssue = any;
78
+ export type BusinessQuestValidationResult = any;
66
79
  export class NodeToyMapping { [key: string]: any; }
67
80
  export class RemotionBridge { [key: string]: any; }
68
81
  export class ReproducibilityMode { [key: string]: any; }
@@ -83,9 +96,78 @@ export interface SafetyReport { [key: string]: any; }
83
96
  export type SafetyVerdict = 'safe' | 'warnings' | 'unsafe' | 'unchecked';
84
97
  export interface LinearCheckerConfig { [key: string]: any; }
85
98
  export interface InferredEffects { [key: string]: any; }
99
+ export type VREffect = string;
100
+ export type EffectCategory = string;
101
+ export type EffectViolationSeverity = 'error' | 'warning' | 'info';
102
+ export interface EffectViolation { effect: VREffect; severity: EffectViolationSeverity; [key: string]: any; }
103
+ export interface EffectDeclaration { effects: VREffect[]; [key: string]: any; }
86
104
  export type CompilePlatformTarget = string;
87
105
 
88
106
  export class USDZPipeline { [key: string]: any; }
89
107
  export interface USDZPipelineOptions { [key: string]: any; }
90
108
 
91
109
  export class CompilerBridge { [key: string]: any; }
110
+
111
+ // Social Causal Model (SCM) — Cycle 9/10/12
112
+ export interface AffectiveState {
113
+ valence: number;
114
+ arousal: number;
115
+ dominantEmotion: 'calm' | 'excited' | 'frustrated' | 'engaged' | 'bored' | 'anxious';
116
+ }
117
+
118
+ export interface SCMCompilerOptions {
119
+ modelName?: string;
120
+ affectiveContext?: AffectiveState;
121
+ privacyMask?: boolean;
122
+ }
123
+
124
+ export interface SCMNode {
125
+ id: string;
126
+ type: string;
127
+ properties: Record<string, any>;
128
+ do_capable: boolean;
129
+ }
130
+
131
+ export interface SCMEdge {
132
+ source: string;
133
+ target: string;
134
+ relation: string;
135
+ weight: number;
136
+ }
137
+
138
+ export interface SCMDAG {
139
+ metadata: {
140
+ model_name: string;
141
+ generated_at: string;
142
+ affective_context?: AffectiveState;
143
+ };
144
+ nodes: SCMNode[];
145
+ edges: SCMEdge[];
146
+ }
147
+
148
+ export class SCMCompiler extends CompilerBase {
149
+ constructor(options?: SCMCompilerOptions);
150
+ compile(composition: any, agentToken: string, outputPath?: string): string;
151
+ }
152
+
153
+ export interface SocialMergeOptions {
154
+ consensusThreshold?: number;
155
+ modelName?: string;
156
+ }
157
+
158
+ export interface SocialMergeReport {
159
+ agents: number;
160
+ threshold: number;
161
+ nodes: { kept: number; dropped: number };
162
+ edges: { kept: number; dropped: number; smoothed: number };
163
+ }
164
+
165
+ export interface SocialMergeResult {
166
+ dag: SCMDAG;
167
+ report: SocialMergeReport;
168
+ }
169
+
170
+ export function mergeSocialCausalModels(
171
+ agentDags: SCMDAG[],
172
+ options?: SocialMergeOptions,
173
+ ): SocialMergeResult;
@@ -0,0 +1,4 @@
1
+ // @holoscript/core/constants — trait name constants
2
+ // VR_TRAITS lives in the main bundle (chunk), not in dist/traits/index.js
3
+ export { VR_TRAITS } from './index.js';
4
+ export type { VRTraitName } from './index.js';
@@ -0,0 +1,189 @@
1
+ /** @holoscript/core/coordinators — Pattern E consumer-bus infrastructure (4 buses) */
2
+
3
+ // --- Shared duck-typed event source ---
4
+ export interface CoordinatorEventSource {
5
+ on(event: string, handler: (payload: unknown) => void): void;
6
+ }
7
+
8
+ // --- AssetLoadCoordinator ---
9
+ export type AssetLoadStatus = 'idle' | 'loading' | 'loaded' | 'error';
10
+ export interface AssetLoadState {
11
+ url: string;
12
+ format: 'gltf' | 'usd' | 'fbx' | 'unknown';
13
+ status: AssetLoadStatus;
14
+ progress: number;
15
+ error?: string;
16
+ updatedAt: number;
17
+ }
18
+ export interface AssetLoadStats {
19
+ total: number;
20
+ loading: number;
21
+ loaded: number;
22
+ failed: number;
23
+ averageProgress: number;
24
+ }
25
+ export type AssetLoadListener = (state: AssetLoadState) => void;
26
+ export declare class AssetLoadCoordinator {
27
+ constructor(source: CoordinatorEventSource);
28
+ subscribe(listener: AssetLoadListener): () => void;
29
+ getAllStates(): AssetLoadState[];
30
+ getStats(): AssetLoadStats;
31
+ reset(): void;
32
+ }
33
+
34
+ // --- SecurityEventBus ---
35
+ export interface SessionState {
36
+ sessionId: string;
37
+ status: 'authenticated' | 'expired' | 'revoked';
38
+ idp?: string;
39
+ userId?: string;
40
+ updatedAt: number;
41
+ }
42
+ export interface AuthorizationState {
43
+ agentId: string;
44
+ tenantId?: string;
45
+ roles: Set<string>;
46
+ capabilities: Set<string>;
47
+ updatedAt: number;
48
+ }
49
+ export interface QuotaState {
50
+ resource: string;
51
+ subject: string;
52
+ consumed: number;
53
+ limit: number;
54
+ status: 'ok' | 'threshold_reached' | 'grace' | 'exceeded';
55
+ updatedAt: number;
56
+ }
57
+ export interface TenantState {
58
+ tenantId: string;
59
+ status: 'provisioned' | 'active' | 'suspended' | 'decommissioned';
60
+ tier?: string;
61
+ updatedAt: number;
62
+ }
63
+ export interface AuditLogEntry {
64
+ event: string;
65
+ action?: string;
66
+ actor?: string;
67
+ tenantId?: string;
68
+ outcome?: 'success' | 'denied' | 'error';
69
+ observedAt: number;
70
+ }
71
+ export interface SecurityStats {
72
+ sessions: { authenticated: number; expired: number; revoked: number };
73
+ agents: { tracked: number };
74
+ tenants: { active: number; suspended: number; decommissioned: number };
75
+ quotas: { tracked: number; exceeded: number; grace: number };
76
+ auditLog: { entries: number; capacity: number };
77
+ }
78
+ export interface SecurityEventEnvelope {
79
+ domain: 'auth' | 'authz' | 'quota' | 'tenant' | 'audit' | 'forget' | 'unknown';
80
+ event: string;
81
+ payload: unknown;
82
+ observedAt: number;
83
+ }
84
+ export type SecurityEventListener = (envelope: SecurityEventEnvelope) => void;
85
+ export declare class SecurityEventBus {
86
+ constructor(source: CoordinatorEventSource);
87
+ subscribe(listener: SecurityEventListener): () => void;
88
+ getAllSessions(): SessionState[];
89
+ getAuditLog(): AuditLogEntry[];
90
+ getStats(): SecurityStats;
91
+ reset(): void;
92
+ }
93
+
94
+ // --- GenerativeJobMonitor ---
95
+ export type GenerativeJobKind = 'inpainting' | 'texture_gen' | 'controlnet' | 'diffusion_rt';
96
+ export type GenerativeJobStatus =
97
+ | 'queued'
98
+ | 'running'
99
+ | 'completed'
100
+ | 'cancelled'
101
+ | 'errored';
102
+ export interface GenerativeJobState {
103
+ jobId: string;
104
+ kind: GenerativeJobKind;
105
+ status: GenerativeJobStatus;
106
+ startedAt: number;
107
+ updatedAt: number;
108
+ durationMs?: number;
109
+ error?: string;
110
+ }
111
+ export interface GenerativeJobKindStats {
112
+ queued: number;
113
+ running: number;
114
+ completed: number;
115
+ cancelled: number;
116
+ errored: number;
117
+ meanLatencyMs: number;
118
+ }
119
+ export interface GenerativeJobStats {
120
+ total: number;
121
+ byKind: Record<GenerativeJobKind, GenerativeJobKindStats>;
122
+ anyReady: boolean;
123
+ }
124
+ export type GenerativeJobListener = (state: GenerativeJobState) => void;
125
+ export declare class GenerativeJobMonitor {
126
+ constructor(source: CoordinatorEventSource);
127
+ subscribe(listener: GenerativeJobListener): () => void;
128
+ getAllJobs(): GenerativeJobState[];
129
+ getStats(): GenerativeJobStats;
130
+ reset(): void;
131
+ }
132
+
133
+ // --- SessionPresenceCoordinator ---
134
+ export type PresenceDomain = 'shareplay' | 'voice' | 'messaging' | 'heartbeat' | 'unknown';
135
+ export type SessionStatus = 'idle' | 'started' | 'joined' | 'ended';
136
+ export interface SharePlaySessionState {
137
+ sessionId: string;
138
+ status: SessionStatus;
139
+ participants: Set<string>;
140
+ activityTitle?: string;
141
+ updatedAt: number;
142
+ }
143
+ export interface SpatialVoiceState {
144
+ nodeId: string;
145
+ peers: Set<string>;
146
+ muted: boolean;
147
+ lastVoiceActivityAt: number;
148
+ updatedAt: number;
149
+ }
150
+ export type MessagingConnectionStatus = 'disconnected' | 'connected' | 'errored';
151
+ export interface MessagingConnectionState {
152
+ platform: string;
153
+ status: MessagingConnectionStatus;
154
+ messagesReceived: number;
155
+ messagesSent: number;
156
+ error?: string;
157
+ updatedAt: number;
158
+ }
159
+ export interface HeartbeatState {
160
+ nodeId: string;
161
+ status: 'initialized' | 'alive' | 'failover' | 'errored';
162
+ ticks: number;
163
+ lastTickAt: number;
164
+ error?: string;
165
+ updatedAt: number;
166
+ }
167
+ export interface SessionPresenceStats {
168
+ sessions: { active: number; ended: number; participants: number };
169
+ voice: { nodes: number; peers: number; muted: number };
170
+ messaging: { connections: number; connected: number; errored: number };
171
+ heartbeat: { tracked: number; alive: number; failover: number; errored: number };
172
+ }
173
+ export interface SessionPresenceEnvelope {
174
+ domain: PresenceDomain;
175
+ event: string;
176
+ payload: unknown;
177
+ observedAt: number;
178
+ }
179
+ export type SessionPresenceListener = (envelope: SessionPresenceEnvelope) => void;
180
+ export declare class SessionPresenceCoordinator {
181
+ constructor(source: CoordinatorEventSource);
182
+ subscribe(listener: SessionPresenceListener): () => void;
183
+ getAllSessions(): SharePlaySessionState[];
184
+ getAllVoiceNodes(): SpatialVoiceState[];
185
+ getAllMessagingConnections(): MessagingConnectionState[];
186
+ getAllHeartbeats(): HeartbeatState[];
187
+ getStats(): SessionPresenceStats;
188
+ reset(): void;
189
+ }
@@ -0,0 +1,9 @@
1
+ // @holoscript/core/interop — interop bindings and resilience patterns
2
+ export declare class InteropBindingGenerator {
3
+ generate(exports: unknown[]): string;
4
+ [key: string]: unknown;
5
+ }
6
+ export declare class ModuleResolver { resolve(id: string): unknown; [key: string]: unknown; }
7
+ export type BindingExport = unknown;
8
+ export type BindingParameter = unknown;
9
+ export type GeneratedBinding = unknown;
@@ -0,0 +1,7 @@
1
+ // @holoscript/core/scripting — headless runtime and scripting traits
2
+ export declare function createHeadlessRuntime(options?: unknown): unknown;
3
+ export declare function getProfile(name: string): unknown;
4
+ export declare const HEADLESS_PROFILE: unknown;
5
+ export type HeadlessRuntime = unknown;
6
+ export type HeadlessRuntimeOptions = unknown;
7
+ export type RuntimeProfile = unknown;