@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.
- package/README.md +40 -40
- package/dist/codebase/index.d.ts +25 -0
- package/dist/compiler/index.d.ts +82 -0
- package/dist/constants.d.ts +4 -0
- package/dist/coordinators/index.d.ts +189 -0
- package/dist/entries/interop.d.ts +9 -0
- package/dist/entries/scripting.d.ts +7 -0
- package/dist/index.d.ts +520 -19
- package/dist/paper-0c-spike/index.d.ts +29 -0
- package/dist/reconstruction/index.d.ts +78 -0
- package/dist/self-improvement/index.d.ts +0 -48
- package/dist/storage/index.d.ts +24 -0
- package/dist/tools/index.d.ts +33 -0
- package/dist/traitDocs/traitDocs.d.ts +69 -0
- package/dist/traits/index.d.ts +61 -0
- package/package.json +102 -19
- package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
- package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
- package/dist/HoloScriptPlusParser-BZR5DELQ.js +0 -692
- package/dist/HoloScriptPlusParser-SBMYDNXO.cjs +0 -697
- package/dist/USDZExporter-MHEHXZB4.cjs +0 -709
- package/dist/USDZExporter-YA55ZS35.js +0 -707
- package/dist/chunk-26TLYBFD.js +0 -309
- package/dist/chunk-27LWW5FU.cjs +0 -410
- package/dist/chunk-2UX5LRAP.cjs +0 -833
- package/dist/chunk-32TWR3HE.js +0 -70
- package/dist/chunk-3FXV5S25.cjs +0 -633
- package/dist/chunk-3FYZOR7S.cjs +0 -69
- package/dist/chunk-3KEU5QYY.cjs +0 -175
- package/dist/chunk-4FCZDTD5.js +0 -610
- package/dist/chunk-4KJ2R7VP.cjs +0 -507
- package/dist/chunk-4SMUJFHL.js +0 -1213
- package/dist/chunk-54FHG2MX.js +0 -655
- package/dist/chunk-56IF4NTA.js +0 -56
- package/dist/chunk-5GLCTO44.js +0 -161
- package/dist/chunk-5TOFIR6L.js +0 -407
- package/dist/chunk-65RFOWZI.js +0 -765
- package/dist/chunk-6OQBLABR.js +0 -5240
- package/dist/chunk-6WNCRE6F.js +0 -126
- package/dist/chunk-74YCHHTE.js +0 -1872
- package/dist/chunk-7H5UNJZD.cjs +0 -1973
- package/dist/chunk-7KPI4EKH.cjs +0 -701
- package/dist/chunk-7LCYLPW2.cjs +0 -663
- package/dist/chunk-7N3JIJMT.js +0 -1395
- package/dist/chunk-7X2IEJIE.cjs +0 -2526
- package/dist/chunk-A6GO3DPZ.cjs +0 -1002
- package/dist/chunk-AC4BSHFV.js +0 -765
- package/dist/chunk-AIUXRS74.cjs +0 -3681
- package/dist/chunk-ARNKA274.cjs +0 -130
- package/dist/chunk-AW7WAELW.js +0 -975
- package/dist/chunk-BKIGPPVM.js +0 -629
- package/dist/chunk-BO2OKHIY.js +0 -6055
- package/dist/chunk-BU5ZAFMC.js +0 -115
- package/dist/chunk-BY3B7ZYV.cjs +0 -457
- package/dist/chunk-C2QHVHZF.js +0 -4066
- package/dist/chunk-C7BNX4XJ.js +0 -1043
- package/dist/chunk-CLYEIWA5.cjs +0 -408
- package/dist/chunk-CMYAWUX3.js +0 -4455
- package/dist/chunk-CN4NOESF.cjs +0 -416
- package/dist/chunk-CNVM7J3M.js +0 -883
- package/dist/chunk-CO2VM2DK.js +0 -1965
- package/dist/chunk-CQDOF3G7.cjs +0 -1404
- package/dist/chunk-DH5G2JUA.cjs +0 -614
- package/dist/chunk-DIEDKX5B.cjs +0 -660
- package/dist/chunk-DN7UFU63.cjs +0 -172
- package/dist/chunk-DXVCEFZB.js +0 -2027
- package/dist/chunk-EGIZHYJP.cjs +0 -85
- package/dist/chunk-EJA7G2C4.cjs +0 -428
- package/dist/chunk-ELLQPFAF.js +0 -830
- package/dist/chunk-EMO7HAKJ.cjs +0 -1875
- package/dist/chunk-ENV7K6XA.js +0 -282
- package/dist/chunk-EPWRXL6S.js +0 -2522
- package/dist/chunk-EUFLX2PI.js +0 -56956
- package/dist/chunk-F5LVGHNT.js +0 -449
- package/dist/chunk-FEFHPUEM.cjs +0 -6122
- package/dist/chunk-FF3Q7ADR.js +0 -380
- package/dist/chunk-GC3YU46J.js +0 -762
- package/dist/chunk-H6WMMLQK.cjs +0 -4492
- package/dist/chunk-H7XMORZI.js +0 -2731
- package/dist/chunk-HAN4V3PF.cjs +0 -2037
- package/dist/chunk-HBZYCASG.js +0 -4208
- package/dist/chunk-HF4OFY25.cjs +0 -4097
- package/dist/chunk-HHS6FMOU.cjs +0 -3813
- package/dist/chunk-HJJLD366.js +0 -1169
- package/dist/chunk-HKCVM6OK.cjs +0 -2237
- package/dist/chunk-HUFNKFA6.js +0 -698
- package/dist/chunk-I3XGTIHM.cjs +0 -1505
- package/dist/chunk-I6XZ5DZF.cjs +0 -488
- package/dist/chunk-IHOUYQIA.js +0 -406
- package/dist/chunk-ILRBGFVD.cjs +0 -72
- package/dist/chunk-KDB6BUMB.js +0 -3666
- package/dist/chunk-KUJRR4FJ.js +0 -657
- package/dist/chunk-KYM4XRFG.js +0 -421
- package/dist/chunk-L3Z2HIWJ.cjs +0 -793
- package/dist/chunk-LBPEZQAF.js +0 -2232
- package/dist/chunk-LER4WXW5.cjs +0 -286
- package/dist/chunk-LK5IAVH6.cjs +0 -1173
- package/dist/chunk-M6FU6S22.js +0 -2911
- package/dist/chunk-MWEFR6YQ.js +0 -1857
- package/dist/chunk-N5FTS757.cjs +0 -415
- package/dist/chunk-NCUHGRTZ.js +0 -752
- package/dist/chunk-NKRKT6V2.js +0 -69
- package/dist/chunk-NLPSZT4C.js +0 -630
- package/dist/chunk-NRUB55IT.cjs +0 -771
- package/dist/chunk-NTMZSDXM.cjs +0 -633
- package/dist/chunk-ODGMVILH.js +0 -9662
- package/dist/chunk-PBA6NXCT.cjs +0 -1216
- package/dist/chunk-PHENW4MQ.js +0 -65
- package/dist/chunk-PJMOXFPR.cjs +0 -1861
- package/dist/chunk-PLMYCCA4.js +0 -504
- package/dist/chunk-PPULB4GG.cjs +0 -9728
- package/dist/chunk-PQLGZKMC.cjs +0 -755
- package/dist/chunk-Q56TT7IL.js +0 -483
- package/dist/chunk-QHVVVN47.cjs +0 -2033
- package/dist/chunk-QWKUKVRE.js +0 -2026
- package/dist/chunk-RE3OKSYF.cjs +0 -424
- package/dist/chunk-RT7LJRSF.cjs +0 -57378
- package/dist/chunk-SPDELRRV.cjs +0 -319
- package/dist/chunk-SUCBB66F.js +0 -229
- package/dist/chunk-TSWTWZ42.cjs +0 -4214
- package/dist/chunk-UITWA6DV.cjs +0 -2829
- package/dist/chunk-UQW6SLM5.js +0 -172
- package/dist/chunk-V2ILLPHK.cjs +0 -237
- package/dist/chunk-V42NTCFH.js +0 -3645
- package/dist/chunk-VJ3L7CHT.cjs +0 -169
- package/dist/chunk-VJVCD5T5.cjs +0 -769
- package/dist/chunk-VK5AXKO3.js +0 -746
- package/dist/chunk-VSXOIUCF.cjs +0 -473
- package/dist/chunk-VZNKJZTT.cjs +0 -749
- package/dist/chunk-W76ETJTI.js +0 -678
- package/dist/chunk-WFJIDI2N.cjs +0 -424
- package/dist/chunk-WN3YF33G.cjs +0 -118
- package/dist/chunk-WUXIRGZP.cjs +0 -2915
- package/dist/chunk-WYH4GVZ5.js +0 -1488
- package/dist/chunk-X4YVN7H3.cjs +0 -888
- package/dist/chunk-X67XRI2T.js +0 -410
- package/dist/chunk-XDXZM3ZP.cjs +0 -1046
- package/dist/chunk-XH7SE4HH.cjs +0 -72
- package/dist/chunk-XNMEH2BI.js +0 -126
- package/dist/chunk-XSF76QRU.js +0 -468
- package/dist/chunk-XSUZMPVQ.cjs +0 -682
- package/dist/chunk-XUILI4KB.cjs +0 -430
- package/dist/chunk-Y5MUAYTO.js +0 -167
- package/dist/chunk-Y7VK5TH3.cjs +0 -129
- package/dist/chunk-YCMQQQ5U.cjs +0 -5244
- package/dist/chunk-YYXH45E2.js +0 -426
- package/dist/chunk-ZGTGVSTZ.js +0 -422
- package/dist/chunk-ZL6VJ6SN.js +0 -421
- package/dist/cli/holoscript-runner.cjs +0 -2258
- package/dist/cli/holoscript-runner.js +0 -2233
- package/dist/codebase/index.cjs +0 -336
- package/dist/codebase/index.js +0 -331
- package/dist/compiler/agent-inference.cjs +0 -29
- package/dist/compiler/agent-inference.js +0 -6
- package/dist/compiler/android-xr.cjs +0 -20
- package/dist/compiler/android-xr.js +0 -10
- package/dist/compiler/android.cjs +0 -21
- package/dist/compiler/android.js +0 -11
- package/dist/compiler/ar.cjs +0 -21
- package/dist/compiler/ar.js +0 -9
- package/dist/compiler/babylon.cjs +0 -18
- package/dist/compiler/babylon.js +0 -12
- package/dist/compiler/coco.cjs +0 -27
- package/dist/compiler/coco.js +0 -4
- package/dist/compiler/domain-block-utils.cjs +0 -595
- package/dist/compiler/domain-block-utils.js +0 -9
- package/dist/compiler/dtdl.cjs +0 -25
- package/dist/compiler/dtdl.js +0 -9
- package/dist/compiler/gltf-pipeline.cjs +0 -39
- package/dist/compiler/gltf-pipeline.js +0 -4
- package/dist/compiler/godot.cjs +0 -16
- package/dist/compiler/godot.js +0 -10
- package/dist/compiler/incremental.cjs +0 -30
- package/dist/compiler/incremental.js +0 -5
- package/dist/compiler/index.cjs +0 -1522
- package/dist/compiler/index.js +0 -1321
- package/dist/compiler/ios.cjs +0 -21
- package/dist/compiler/ios.js +0 -11
- package/dist/compiler/multi-layer.cjs +0 -27
- package/dist/compiler/multi-layer.js +0 -12
- package/dist/compiler/nodetoy.cjs +0 -23
- package/dist/compiler/nodetoy.js +0 -4
- package/dist/compiler/openxr.cjs +0 -16
- package/dist/compiler/openxr.js +0 -10
- package/dist/compiler/playcanvas.cjs +0 -17
- package/dist/compiler/playcanvas.js +0 -11
- package/dist/compiler/r3f.cjs +0 -35
- package/dist/compiler/r3f.js +0 -13
- package/dist/compiler/remotion.cjs +0 -23
- package/dist/compiler/remotion.js +0 -4
- package/dist/compiler/reproducibility.cjs +0 -39
- package/dist/compiler/reproducibility.js +0 -4
- package/dist/compiler/sdf.cjs +0 -22
- package/dist/compiler/sdf.js +0 -10
- package/dist/compiler/semantic-scene.cjs +0 -31
- package/dist/compiler/semantic-scene.js +0 -4
- package/dist/compiler/state.cjs +0 -18
- package/dist/compiler/state.js +0 -8
- package/dist/compiler/trait-composition.cjs +0 -27
- package/dist/compiler/trait-composition.js +0 -6
- package/dist/compiler/unity.cjs +0 -16
- package/dist/compiler/unity.js +0 -10
- package/dist/compiler/unreal.cjs +0 -20
- package/dist/compiler/unreal.js +0 -10
- package/dist/compiler/urdf.cjs +0 -46
- package/dist/compiler/urdf.js +0 -10
- package/dist/compiler/usd-physics.cjs +0 -24
- package/dist/compiler/usd-physics.js +0 -7
- package/dist/compiler/visionos.cjs +0 -16
- package/dist/compiler/visionos.js +0 -10
- package/dist/compiler/vrchat.cjs +0 -20
- package/dist/compiler/vrchat.js +0 -10
- package/dist/compiler/vrr.cjs +0 -22
- package/dist/compiler/vrr.js +0 -10
- package/dist/compiler/wasm.cjs +0 -34
- package/dist/compiler/wasm.js +0 -10
- package/dist/compiler/webgpu.cjs +0 -16
- package/dist/compiler/webgpu.js +0 -10
- package/dist/debugger.cjs +0 -21
- package/dist/debugger.js +0 -8
- package/dist/entries/interop.cjs +0 -62
- package/dist/entries/interop.js +0 -5
- package/dist/entries/scripting.cjs +0 -67
- package/dist/entries/scripting.js +0 -10
- package/dist/index.cjs +0 -61703
- package/dist/index.js +0 -58652
- package/dist/math/vec3.cjs +0 -57
- package/dist/math/vec3.js +0 -4
- package/dist/parser.cjs +0 -26
- package/dist/parser.js +0 -9
- package/dist/playwright-7DTEQCBD.cjs +0 -98673
- package/dist/playwright-BIZXMLD2.js +0 -98660
- package/dist/post-quantum-JTTAAGO3.cjs +0 -6
- package/dist/post-quantum-RVPVDEPI.js +0 -4
- package/dist/runtime.cjs +0 -16
- package/dist/runtime.js +0 -7
- package/dist/storage/index.cjs +0 -37
- package/dist/storage/index.js +0 -4
- package/dist/traits/index.cjs +0 -14331
- package/dist/traits/index.js +0 -12126
- package/dist/type-checker.cjs +0 -18
- package/dist/type-checker.js +0 -5
- package/dist/wot/index.cjs +0 -29
- 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
|
-
- **
|
|
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` |
|
|
53
|
-
|
|
54
|
-
## Compilers (
|
|
55
|
-
|
|
56
|
-
| Compiler
|
|
57
|
-
|
|
|
58
|
-
| `UnityCompiler`
|
|
59
|
-
| `UnrealCompiler`
|
|
60
|
-
| `GodotCompiler`
|
|
61
|
-
| `R3FCompiler`
|
|
62
|
-
| `BabylonCompiler`
|
|
63
|
-
| `PlayCanvasCompiler`
|
|
64
|
-
| `OpenXRCompiler`
|
|
65
|
-
| `VRChatCompiler`
|
|
66
|
-
| `VisionOSCompiler`
|
|
67
|
-
| `AndroidXRCompiler`
|
|
68
|
-
| `IOSCompiler`
|
|
69
|
-
| `AndroidCompiler`
|
|
70
|
-
| `ARCompiler`
|
|
71
|
-
| `WASMCompiler`
|
|
72
|
-
| `WebGPUCompiler`
|
|
73
|
-
| `URDFCompiler`
|
|
74
|
-
| `SDFCompiler`
|
|
75
|
-
| `DTDLCompiler`
|
|
76
|
-
| `StateCompiler`
|
|
77
|
-
| `A2AAgentCardCompiler`
|
|
78
|
-
| `NIRCompiler`
|
|
79
|
-
| `VRRCompiler`
|
|
80
|
-
| `Native2DCompiler`
|
|
81
|
-
| `NodeServiceCompiler`
|
|
82
|
-
| `AIGlassesCompiler`
|
|
83
|
-
| `GLTFPipeline`
|
|
84
|
-
| `NFTMarketplaceCompiler`
|
|
85
|
-
| `USDPhysicsCompiler`
|
|
86
|
-
| `TSLCompiler`
|
|
87
|
-
| `SCMCompiler`
|
|
88
|
-
| `QuiltCompiler`
|
|
89
|
-
| `MVHEVCCompiler`
|
|
90
|
-
| `FlatSemanticCompiler`
|
|
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;
|
package/dist/compiler/index.d.ts
CHANGED
|
@@ -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,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;
|