@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
@@ -0,0 +1,78 @@
1
+ /** @holoscript/core/reconstruction — HoloMap + SimulationContract binding */
2
+ export declare const HOLOMAP_SIMULATION_CONTRACT_KIND: 'holomap.reconstruction.v1';
3
+ export interface ReconstructionFrame {
4
+ index: number;
5
+ timestampMs: number;
6
+ rgb: Uint8Array;
7
+ width: number;
8
+ height: number;
9
+ stride: 3 | 4;
10
+ }
11
+ export interface CameraPose {
12
+ position: [number, number, number];
13
+ rotation: [number, number, number, number];
14
+ confidence: number;
15
+ }
16
+ export interface PointCloudChunk {
17
+ positions: Float32Array;
18
+ colors: Uint8Array;
19
+ normals?: Float32Array;
20
+ confidence: Float32Array;
21
+ }
22
+ export interface ReconstructionStep {
23
+ frame: ReconstructionFrame;
24
+ pose: CameraPose;
25
+ points: PointCloudChunk;
26
+ trajectory: Record<string, unknown>;
27
+ anchor: Record<string, unknown>;
28
+ }
29
+ export interface HoloMapConfig {
30
+ inputResolution: { width: number; height: number };
31
+ targetFPS: number;
32
+ maxSequenceLength: number;
33
+ seed: number;
34
+ modelHash: string;
35
+ videoHash?: string;
36
+ cpuOffload: boolean;
37
+ weightStrategy?: 'distill' | 'fine-tune' | 'from-scratch';
38
+ allowCpuFallback?: boolean;
39
+ }
40
+ export declare const HOLOMAP_DEFAULTS: HoloMapConfig;
41
+ export interface ReconstructionManifest {
42
+ version: '1.0.0';
43
+ worldId: string;
44
+ displayName: string;
45
+ pointCount: number;
46
+ frameCount: number;
47
+ bounds: { min: [number, number, number]; max: [number, number, number] };
48
+ replayHash: string;
49
+ simulationContract: {
50
+ kind: 'holomap.reconstruction.v1';
51
+ replayFingerprint: string;
52
+ holoScriptBuild: string;
53
+ };
54
+ provenance: {
55
+ anchorHash?: string;
56
+ opentimestampsProof?: string;
57
+ baseCalldataTx?: string;
58
+ capturedAtIso: string;
59
+ };
60
+ assets: { points: string; trajectory: string; anchors: string; splats?: string };
61
+ weightStrategy: 'distill' | 'fine-tune' | 'from-scratch';
62
+ }
63
+ export interface HoloMapRuntime {
64
+ init(config: HoloMapConfig): Promise<void>;
65
+ step(frame: ReconstructionFrame): Promise<ReconstructionStep>;
66
+ finalize(): Promise<ReconstructionManifest>;
67
+ replayHash(): string;
68
+ dispose(): Promise<void>;
69
+ }
70
+ export declare function createHoloMapRuntime(config?: Partial<HoloMapConfig>): HoloMapRuntime;
71
+ export declare function computeHoloMapReplayFingerprint(parts: {
72
+ modelHash: string;
73
+ seed: number;
74
+ weightStrategy: string;
75
+ videoHash?: string;
76
+ }): string;
77
+ export declare function fnv1a32Hex(input: string): string;
78
+ export declare function assertHoloMapManifestContract(m: ReconstructionManifest): void;
@@ -292,51 +292,3 @@ export class SparsityMonitor {
292
292
  [key: string]: any;
293
293
  }
294
294
  export function createSparsityMonitor(config?: any): SparsityMonitor;
295
-
296
- // ── Swarm types ────────────────────────────────────────────────────────────
297
- export interface ISwarmConfig {
298
- algorithm: 'pso' | 'aco' | 'bees' | 'hybrid';
299
- populationSize: number;
300
- maxIterations: number;
301
- convergenceThreshold: number;
302
- adaptiveSizing?: boolean;
303
- }
304
- export interface ISwarmResult {
305
- bestSolution: number[];
306
- bestFitness: number;
307
- converged: boolean;
308
- iterations: number;
309
- improvementPercent: number;
310
- }
311
- export interface ISwarmCoordinator {
312
- optimize(
313
- agents: { id: string; capacity: number; load: number }[],
314
- tasks: { id: string; complexity: number; priority: number }[],
315
- config?: Partial<ISwarmConfig>
316
- ): Promise<ISwarmResult>;
317
- getRecommendedPopulation(problemSize: number): number;
318
- }
319
-
320
- // ── Swarm types ────────────────────────────────────────────────────────────
321
- export interface ISwarmConfig {
322
- algorithm: 'pso' | 'aco' | 'bees' | 'hybrid';
323
- populationSize: number;
324
- maxIterations: number;
325
- convergenceThreshold: number;
326
- adaptiveSizing?: boolean;
327
- }
328
- export interface ISwarmResult {
329
- bestSolution: number[];
330
- bestFitness: number;
331
- converged: boolean;
332
- iterations: number;
333
- improvementPercent: number;
334
- }
335
- export interface ISwarmCoordinator {
336
- optimize(
337
- agents: { id: string; capacity: number; load: number }[],
338
- tasks: { id: string; complexity: number; priority: number }[],
339
- config?: Partial<ISwarmConfig>
340
- ): Promise<ISwarmResult>;
341
- getRecommendedPopulation(problemSize: number): number;
342
- }
@@ -0,0 +1,24 @@
1
+ // @holoscript/core/storage — IPFS storage utilities
2
+ export declare class IPFSService {
3
+ constructor(options?: unknown);
4
+ upload(file: Uint8Array | string, options?: unknown): Promise<unknown>;
5
+ pin(cid: string): Promise<unknown>;
6
+ unpin(cid: string): Promise<unknown>;
7
+ [key: string]: unknown;
8
+ }
9
+ export declare class PinataProvider { constructor(options?: unknown); [key: string]: unknown; }
10
+ export declare class NFTStorageProvider { constructor(options?: unknown); [key: string]: unknown; }
11
+ export declare class InfuraProvider { constructor(options?: unknown); [key: string]: unknown; }
12
+ export declare class IPFSUploadError extends Error {}
13
+ export declare class IPFSPinError extends Error {}
14
+ export declare class FileSizeExceededError extends Error {}
15
+ export type IPFSProvider = unknown;
16
+ export type IPFSServiceOptions = unknown;
17
+ export type FallbackProvider = unknown;
18
+ export type IPFSFile = unknown;
19
+ export type UploadProgress = unknown;
20
+ export type UploadOptions = unknown;
21
+ export type UploadResult = unknown;
22
+ export type PinStatus = unknown;
23
+ export type PinInfo = unknown;
24
+ export type IIPFSProvider = unknown;
@@ -0,0 +1,33 @@
1
+ // @holoscript/core/tools — developer tools and integrations
2
+ export declare class ErrorFormatter { format(error: unknown): string; [key: string]: unknown; }
3
+ export declare class HoloScriptREPL { start(): void; [key: string]: unknown; }
4
+ export declare function startREPL(): HoloScriptREPL;
5
+ export declare class HotReloadWatcher { watch(path: string): void; [key: string]: unknown; }
6
+ export declare class SourceMapGenerator { generate(source: string): string; [key: string]: unknown; }
7
+ export declare class MaterialEditor { constructor(config?: unknown); [key: string]: unknown; }
8
+ export declare class SceneInspector { constructor(config?: unknown); [key: string]: unknown; }
9
+ export declare class VisualEditor { constructor(config?: unknown); [key: string]: unknown; }
10
+ export interface MaterialEditorPreset {
11
+ name: string;
12
+ category: string;
13
+ /** Partial PBR material override. Studio adapter consumes a known
14
+ * subset (albedo / emission / blend / roughness / metallic / etc.); the
15
+ * full MaterialDef surface lives in core's runtime. */
16
+ material: {
17
+ albedo?: { r: number; g: number; b: number; a?: number };
18
+ emission?: { r: number; g: number; b: number };
19
+ emissionStrength?: number;
20
+ blendMode?: string;
21
+ roughness?: number;
22
+ metallic?: number;
23
+ doubleSided?: boolean;
24
+ [key: string]: unknown;
25
+ };
26
+ previewColor: string;
27
+ }
28
+ export type MaterialEditorConfig = unknown;
29
+ export type MaterialPreset = unknown;
30
+ export declare function getMaterialEditorBuiltinPresets(): MaterialEditorPreset[];
31
+ export declare function listMaterialEditorQuickPickPresetNames(): readonly string[];
32
+ export declare function listMaterialEditorQuickPickPresetsByCategory(): Map<string, string[]>;
33
+ export declare function rgbaToHex(color: { r: number; g: number; b: number; a?: number }): string;
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Trait Documentation for HoloScript LSP
3
+ *
4
+ * Provides detailed documentation for all HoloScript traits
5
+ * to display in hover/completion/signature help.
6
+ */
7
+ export interface TraitDoc {
8
+ name: string;
9
+ annotation: string;
10
+ description: string;
11
+ category: 'physics' | 'animation' | 'rendering' | 'networking' | 'input' | 'ai' | 'utility' | 'hololand';
12
+ properties: PropertyDoc[];
13
+ methods: MethodDoc[];
14
+ events: EventDoc[];
15
+ example: string;
16
+ since?: string;
17
+ deprecated?: boolean;
18
+ deprecationMessage?: string;
19
+ }
20
+ export interface PropertyDoc {
21
+ name: string;
22
+ type: string;
23
+ description: string;
24
+ default?: string;
25
+ required?: boolean;
26
+ }
27
+ export interface MethodDoc {
28
+ name: string;
29
+ signature: string;
30
+ description: string;
31
+ parameters: ParameterDoc[];
32
+ returns?: string;
33
+ }
34
+ export interface ParameterDoc {
35
+ name: string;
36
+ type: string;
37
+ description: string;
38
+ optional?: boolean;
39
+ }
40
+ export interface EventDoc {
41
+ name: string;
42
+ description: string;
43
+ payload?: string;
44
+ }
45
+ /**
46
+ * Complete trait documentation database
47
+ */
48
+ export declare const TRAIT_DOCS: Record<string, TraitDoc>;
49
+ /**
50
+ * Get documentation for a trait by name or annotation
51
+ */
52
+ export declare function getTraitDoc(name: string): TraitDoc | undefined;
53
+ /**
54
+ * Get all trait names for completion
55
+ */
56
+ export declare function getAllTraitNames(): string[];
57
+ /**
58
+ * Get traits by category
59
+ */
60
+ export declare function getTraitsByCategory(category: TraitDoc['category']): TraitDoc[];
61
+ /**
62
+ * Format trait documentation as Markdown for hover
63
+ */
64
+ export declare function formatTraitDocAsMarkdown(doc: TraitDoc): string;
65
+ /**
66
+ * Format trait documentation as compact Markdown for hover
67
+ */
68
+ export declare function formatTraitDocCompact(doc: TraitDoc): string;
69
+ //# sourceMappingURL=traitDocs.d.ts.map
@@ -124,3 +124,64 @@ export declare const ComponentType: any;
124
124
  export class MoMETraitDatabase {
125
125
  [key: string]: any;
126
126
  }
127
+
128
+ export interface EmergentSpacetimeConfig {
129
+ initial_voxels?: number;
130
+ max_voxels?: number;
131
+ seed?: number;
132
+ force_layout_guard?: boolean;
133
+ ricci_error_bound?: number;
134
+ ricci_heatmap?: boolean;
135
+ loop_threshold?: number;
136
+ real_time_budget_ms?: number;
137
+ }
138
+
139
+ export interface EmergentSpacetimeState {
140
+ network: {
141
+ voxels: Map<string, any>;
142
+ edges: any[];
143
+ loopCount: number;
144
+ };
145
+ hubbleCorrection: number;
146
+ violationCount: number;
147
+ lastRicciError: number;
148
+ isSimulating: boolean;
149
+ }
150
+
151
+ export const emergentSpacetimeHandler: TraitHandler<EmergentSpacetimeConfig>;
152
+
153
+ // ── Namespaced domain plugins (mirrors packages/core/src/traits/index.ts) ──
154
+ // Keeps `import { FilmVFXPlugin } from '@holoscript/core/traits'` resolving after barrel namespacing.
155
+ export * as FilmVFXPlugin from '@holoscript/plugin-film-vfx';
156
+ export * as AlphaFoldPlugin from '@holoscript/alphafold-plugin';
157
+ export * as BankingFinancePlugin from '@holoscript/plugin-banking-finance';
158
+ export * as CivilEngineeringPlugin from '@holoscript/plugin-civil-engineering';
159
+ export * as CultureKeywordPlugin from '@holoscript/plugin-culture-keyword';
160
+ export * as DomainPluginTemplate from '@holoscript/domain-plugin-template';
161
+ export * as EconomicPrimitivesPlugin from '@holoscript/plugin-economic-primitives';
162
+ export * as EducationLmsPlugin from '@holoscript/plugin-education-lms';
163
+ export * as EmergencyResponsePlugin from '@holoscript/plugin-emergency-response';
164
+ export * as FashionPlugin from '@holoscript/plugin-fashion';
165
+ export * as Film3dVolumetricsPlugin from '@holoscript/plugin-film3d-volumetrics';
166
+ export * as FitnessWellnessPlugin from '@holoscript/plugin-fitness-wellness';
167
+ export * as ForensicsPlugin from '@holoscript/plugin-forensics';
168
+ export * as GeolocationGisPlugin from '@holoscript/plugin-geolocation-gis';
169
+ export * as HardwareInventionPlugin from '@holoscript/plugin-hardware-invention';
170
+ export * as HrWorkforcePlugin from '@holoscript/plugin-hr-workforce';
171
+ export * as InsurancePlugin from '@holoscript/plugin-insurance';
172
+ export * as LegalDocumentPlugin from '@holoscript/plugin-legal-document';
173
+ export * as ManufacturingQcPlugin from '@holoscript/plugin-manufacturing-qc';
174
+ export * as MedicalPlugin from '@holoscript/medical-plugin';
175
+ export * as NeurosciencePlugin from '@holoscript/plugin-neuroscience';
176
+ export * as RadioAstronomyPlugin from '@holoscript/radio-astronomy-plugin';
177
+ export * as RestaurantPlugin from '@holoscript/plugin-restaurant';
178
+ export * as RetailEcommercePlugin from '@holoscript/plugin-retail-ecommerce';
179
+ export * as RoboticsPlugin from '@holoscript/robotics-plugin';
180
+ export * as NarupaPlugin from '@holoscript/narupa-plugin';
181
+ export * as TherapyPlugin from '@holoscript/plugin-therapy';
182
+ export * as ThreatIntelligencePlugin from '@holoscript/plugin-threat-intelligence';
183
+ export * as TraitAuditPlugin from '@holoscript/plugin-trait-audit';
184
+ export * as TravelHospitalityPlugin from '@holoscript/plugin-travel-hospitality';
185
+ export * as UrbanPlanningPlugin from '@holoscript/plugin-urban-planning';
186
+ export * as WineFoodBeveragePlugin from '@holoscript/plugin-wine-food-beverage';
187
+ export * as WisdomGotchaPlugin from '@holoscript/plugin-wisdom-gotcha';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holoscript/core",
3
- "version": "6.0.3",
3
+ "version": "7.0.0",
4
4
  "description": "Core parser, AST, compiler infrastructure, trait system, and runtime for HoloScript — the open AI-spatial reality protocol for 3D/XR/IoT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,6 +28,11 @@
28
28
  "import": "./dist/math/vec3.js",
29
29
  "require": "./dist/math/vec3.cjs"
30
30
  },
31
+ "./math/tropical-spmv": {
32
+ "types": "./dist/math/tropical-spmv.d.ts",
33
+ "import": "./dist/math/tropical-spmv.js",
34
+ "require": "./dist/math/tropical-spmv.cjs"
35
+ },
31
36
  "./parser": {
32
37
  "types": "./dist/parser.d.ts",
33
38
  "import": "./dist/parser.js",
@@ -53,21 +58,26 @@
53
58
  "import": "./dist/storage/index.js",
54
59
  "require": "./dist/storage/index.cjs"
55
60
  },
56
- "./wot": {
57
- "types": "./dist/wot/index.d.ts",
58
- "import": "./dist/wot/index.js",
59
- "require": "./dist/wot/index.cjs"
60
- },
61
61
  "./codebase": {
62
62
  "types": "./dist/codebase/index.d.ts",
63
63
  "import": "./dist/codebase/index.js",
64
64
  "require": "./dist/codebase/index.cjs"
65
65
  },
66
+ "./world": {
67
+ "types": "./dist/world/index.d.ts",
68
+ "import": "./dist/world/index.js",
69
+ "require": "./dist/world/index.cjs"
70
+ },
66
71
  "./self-improvement": {
67
72
  "types": "./dist/self-improvement/index.d.ts",
68
73
  "import": "./dist/self-improvement/index.js",
69
74
  "require": "./dist/self-improvement/index.cjs"
70
75
  },
76
+ "./compiler": {
77
+ "types": "./dist/compiler/index.d.ts",
78
+ "import": "./dist/compiler/index.js",
79
+ "require": "./dist/compiler/index.cjs"
80
+ },
71
81
  "./compiler/index": {
72
82
  "types": "./dist/compiler/index.d.ts",
73
83
  "import": "./dist/compiler/index.js",
@@ -78,10 +88,24 @@
78
88
  "import": "./dist/compiler/*.js",
79
89
  "require": "./dist/compiler/*.cjs"
80
90
  },
91
+ "./trait-docs": {
92
+ "types": "./dist/traitDocs/traitDocs.d.ts",
93
+ "import": "./dist/traitDocs/traitDocs.js",
94
+ "require": "./dist/traitDocs/traitDocs.cjs"
95
+ },
81
96
  "./traits": {
82
97
  "types": "./dist/traits/index.d.ts",
83
98
  "import": "./dist/traits/index.js"
84
99
  },
100
+ "./traits/engines": {
101
+ "types": "./dist/traits/engines/index.d.ts",
102
+ "import": "./dist/traits/engines/index.js"
103
+ },
104
+ "./coordinators": {
105
+ "types": "./dist/coordinators/index.d.ts",
106
+ "import": "./dist/coordinators/index.js"
107
+ },
108
+ "./traits/trait-registry.json": "./src/traits/trait-registry.json",
85
109
  "./tools": {
86
110
  "types": "./dist/tools/index.d.ts",
87
111
  "import": "./dist/tools/index.js"
@@ -103,6 +127,16 @@
103
127
  "./cli/holoscript-runner": {
104
128
  "import": "./dist/cli/holoscript-runner.js",
105
129
  "require": "./dist/cli/holoscript-runner.cjs"
130
+ },
131
+ "./reconstruction": {
132
+ "types": "./dist/reconstruction/index.d.ts",
133
+ "import": "./dist/reconstruction/index.js",
134
+ "require": "./dist/reconstruction/index.cjs"
135
+ },
136
+ "./paper-0c-spike": {
137
+ "types": "./dist/paper-0c-spike/index.d.ts",
138
+ "import": "./dist/paper-0c-spike/index.js",
139
+ "require": "./dist/paper-0c-spike/index.cjs"
106
140
  }
107
141
  },
108
142
  "bin": {
@@ -139,10 +173,46 @@
139
173
  },
140
174
  "dependencies": {
141
175
  "jose": "^6.2.2",
142
- "jsonwebtoken": "^9.0.0",
143
- "zod": "^3.24.0",
144
- "@holoscript/agent-protocol": "6.0.3",
145
- "@holoscript/core-types": "6.0.2"
176
+ "jsonwebtoken": "^9.0.2",
177
+ "zod": "^4.3.6",
178
+ "@holoscript/agent-protocol": "7.0.0",
179
+ "@holoscript/alphafold-plugin": "1.1.0",
180
+ "@holoscript/domain-plugin-template": "0.1.0",
181
+ "@holoscript/core-types": "7.0.0",
182
+ "@holoscript/llm-provider": "1.2.0",
183
+ "@holoscript/mesh": "7.0.0",
184
+ "@holoscript/medical-plugin": "1.0.0",
185
+ "@holoscript/platform": "7.0.0",
186
+ "@holoscript/narupa-plugin": "1.2.0",
187
+ "@holoscript/plugin-banking-finance": "1.0.0",
188
+ "@holoscript/plugin-civil-engineering": "1.0.0",
189
+ "@holoscript/plugin-culture-keyword": "1.0.0",
190
+ "@holoscript/plugin-economic-primitives": "1.0.0",
191
+ "@holoscript/plugin-education-lms": "1.0.0",
192
+ "@holoscript/plugin-fashion": "1.0.0",
193
+ "@holoscript/plugin-emergency-response": "1.0.0",
194
+ "@holoscript/plugin-film3d-volumetrics": "1.0.0",
195
+ "@holoscript/plugin-film-vfx": "1.0.0",
196
+ "@holoscript/plugin-fitness-wellness": "1.0.0",
197
+ "@holoscript/plugin-geolocation-gis": "1.0.0",
198
+ "@holoscript/plugin-hardware-invention": "1.0.0",
199
+ "@holoscript/plugin-forensics": "1.0.0",
200
+ "@holoscript/plugin-hr-workforce": "1.0.0",
201
+ "@holoscript/plugin-insurance": "1.0.0",
202
+ "@holoscript/plugin-legal-document": "1.0.0",
203
+ "@holoscript/plugin-manufacturing-qc": "1.0.0",
204
+ "@holoscript/plugin-neuroscience": "1.0.0",
205
+ "@holoscript/plugin-retail-ecommerce": "1.0.0",
206
+ "@holoscript/plugin-restaurant": "1.0.0",
207
+ "@holoscript/plugin-therapy": "1.0.0",
208
+ "@holoscript/plugin-threat-intelligence": "1.0.0",
209
+ "@holoscript/plugin-trait-audit": "1.0.0",
210
+ "@holoscript/plugin-travel-hospitality": "1.0.0",
211
+ "@holoscript/plugin-urban-planning": "1.0.0",
212
+ "@holoscript/plugin-wine-food-beverage": "1.0.0",
213
+ "@holoscript/plugin-wisdom-gotcha": "1.0.0",
214
+ "@holoscript/radio-astronomy-plugin": "1.0.0",
215
+ "@holoscript/robotics-plugin": "1.0.0"
146
216
  },
147
217
  "optionalDependencies": {
148
218
  "@gltf-transform/core": "^3.7.0",
@@ -172,9 +242,8 @@
172
242
  "@pixiv/three-vrm": "^2.0.0",
173
243
  "ioredis": "^5.3.0",
174
244
  "puppeteer": "^23.0.0",
175
- "react": "^18.0.0 || ^19.0.0",
176
- "@holoscript/engine": "6.0.3",
177
- "@holoscript/framework": "6.0.3"
245
+ "react": "^19.2.0",
246
+ "@holoscript/engine": "7.0.0"
178
247
  },
179
248
  "peerDependenciesMeta": {
180
249
  "@holoscript/engine": {
@@ -191,25 +260,39 @@
191
260
  },
192
261
  "react": {
193
262
  "optional": true
263
+ },
264
+ "@holoscript/mesh": {
265
+ "optional": true
194
266
  }
195
267
  },
196
268
  "devDependencies": {
269
+ "@types/jsonwebtoken": "^9.0.7",
197
270
  "@types/pixelmatch": "^5.2.6",
198
271
  "@types/pngjs": "^6.0.5",
199
272
  "@types/three": "^0.170.0",
200
- "@types/ws": "^8.5.10",
201
- "@vitest/coverage-v8": "^4.1.4",
202
- "@webgpu/types": "^0.1.40",
273
+ "@types/ws": "^8.18.1",
274
+ "@vitest/coverage-v8": "^4.1.0",
275
+ "@webgpu/types": ">=0.1.40",
203
276
  "tsup": "^8.0.1",
204
277
  "typedoc": "^0.28.17",
205
278
  "typescript": "~5.9.3",
206
- "vitest": "^4.1.4"
279
+ "vitest": "^4.1.0",
280
+ "@holoscript/engine": "7.0.0",
281
+ "@holoscript/framework": "7.0.0"
207
282
  },
208
283
  "scripts": {
209
- "build": "tsup && node scripts/generate-types.mjs",
284
+ "verify:workspace": "node scripts/verify-internal-workspace-protocol.mjs",
285
+ "build": "node scripts/verify-internal-workspace-protocol.mjs && tsup && node scripts/generate-types.mjs",
210
286
  "dev": "tsup --watch",
211
287
  "test": "node --max-old-space-size=16384 run-vitest.mjs",
212
288
  "test:coverage": "node --max-old-space-size=16384 run-vitest.mjs --coverage",
213
- "test:watch": "vitest"
289
+ "test:watch": "vitest",
290
+ "typecheck": "tsc --noEmit -p tsconfig.json",
291
+ "typecheck:narrow": "tsc --noEmit -p tsconfig.narrow.json",
292
+ "benchmark:export-targets": "node run-vitest.mjs src/compiler/__tests__/export-manager-all-targets-bench.test.ts",
293
+ "benchmark:paper10:compile-matrix": "node scripts/run-paper10-compile-matrix.mjs",
294
+ "benchmark:paper10:compile-matrix:full": "node scripts/run-paper10-compile-matrix.mjs --full",
295
+ "benchmark:paper10:depth-distribution": "node scripts/run-paper10-depth-distribution.mjs",
296
+ "benchmark:paper6:mecanim-matrix": "node scripts/run-paper6-mecanim-matrix.mjs"
214
297
  }
215
298
  }
@@ -1,34 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkHKCVM6OK_cjs = require('./chunk-HKCVM6OK.cjs');
4
- require('./chunk-LK5IAVH6.cjs');
5
- require('./chunk-TSWTWZ42.cjs');
6
- require('./chunk-PPULB4GG.cjs');
7
- require('./chunk-3KEU5QYY.cjs');
8
- require('./chunk-VSXOIUCF.cjs');
9
- require('./chunk-HHS6FMOU.cjs');
10
- require('./chunk-QHVVVN47.cjs');
11
- require('./chunk-AIUXRS74.cjs');
12
- require('./chunk-3FYZOR7S.cjs');
13
- require('./chunk-EGIZHYJP.cjs');
14
-
15
-
16
-
17
- Object.defineProperty(exports, "GLTFPipeline", {
18
- enumerable: true,
19
- get: function () { return chunkHKCVM6OK_cjs.GLTFPipeline; }
20
- });
21
- Object.defineProperty(exports, "createGLTFPipeline", {
22
- enumerable: true,
23
- get: function () { return chunkHKCVM6OK_cjs.createGLTFPipeline; }
24
- });
25
- Object.defineProperty(exports, "generateScaleNormalMap", {
26
- enumerable: true,
27
- get: function () { return chunkHKCVM6OK_cjs.generateScaleNormalMap; }
28
- });
29
- Object.defineProperty(exports, "generateScaleTexture", {
30
- enumerable: true,
31
- get: function () { return chunkHKCVM6OK_cjs.generateScaleTexture; }
32
- });
33
- //# sourceMappingURL=GLTFPipeline-3KLWWUQO.cjs.map
34
- //# sourceMappingURL=GLTFPipeline-3KLWWUQO.cjs.map
@@ -1,13 +0,0 @@
1
- export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture } from './chunk-LBPEZQAF.js';
2
- import './chunk-HJJLD366.js';
3
- import './chunk-HBZYCASG.js';
4
- import './chunk-ODGMVILH.js';
5
- import './chunk-UQW6SLM5.js';
6
- import './chunk-XSF76QRU.js';
7
- import './chunk-KDB6BUMB.js';
8
- import './chunk-QWKUKVRE.js';
9
- import './chunk-V42NTCFH.js';
10
- import './chunk-56IF4NTA.js';
11
- import './chunk-32TWR3HE.js';
12
- //# sourceMappingURL=GLTFPipeline-LYII2ZVQ.js.map
13
- //# sourceMappingURL=GLTFPipeline-LYII2ZVQ.js.map