@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
@@ -1,172 +0,0 @@
1
- import { __esm } from './chunk-32TWR3HE.js';
2
-
3
- // src/compiler/traits/ProvenanceSemiring.ts
4
- function createDeadElement(subsystem, elementId, reason, originalValue) {
5
- return {
6
- subsystem,
7
- reason,
8
- determinedAt: Date.now(),
9
- elementId,
10
- originalValue
11
- };
12
- }
13
- function authorityWeight(level, reputationScore) {
14
- const clamped = Math.max(0, Math.min(100, level));
15
- let baseWeight = 0.5 + clamped / 100 * 1.5;
16
- if (reputationScore !== void 0 && reputationScore > 0) {
17
- if (reputationScore >= 100) baseWeight *= 3;
18
- else if (reputationScore >= 30) baseWeight *= 2;
19
- else if (reputationScore >= 5) baseWeight *= 1.5;
20
- }
21
- return baseWeight;
22
- }
23
- var TRAIT_ZERO, ProvenanceSemiring;
24
- var init_ProvenanceSemiring = __esm({
25
- "src/compiler/traits/ProvenanceSemiring.ts"() {
26
- TRAIT_ZERO = /* @__PURE__ */ Symbol.for("HoloScript::TraitZero");
27
- ProvenanceSemiring = class {
28
- constructor(rules) {
29
- this.rules = /* @__PURE__ */ new Map();
30
- if (rules) {
31
- for (const rule of rules) {
32
- this.rules.set(rule.property, rule);
33
- }
34
- } else {
35
- this.loadDefaultRules();
36
- }
37
- }
38
- loadDefaultRules() {
39
- this.rules.set("type", { property: "type", strategy: "domain-override", precedence: ["kinematic", "physics", "collidable", "static"] });
40
- this.rules.set("mass", { property: "mass", strategy: "authority-weighted" });
41
- this.rules.set("friction", { property: "friction", strategy: "max" });
42
- this.rules.set("restitution", { property: "restitution", strategy: "min" });
43
- this.rules.set("color", { property: "color", strategy: "domain-override", precedence: ["material", "color", "hoverable", "glowing"] });
44
- this.rules.set("opacity", { property: "opacity", strategy: "min" });
45
- }
46
- /**
47
- * Commutative addition (⊕)
48
- * Merges multiple traits into a unified provenanced configuration map.
49
- */
50
- add(traits) {
51
- const acc = {};
52
- const conflicts = [];
53
- const errors = [];
54
- const deadElements = [];
55
- for (const trait of traits) {
56
- for (const [key, value] of Object.entries(trait.config)) {
57
- if (value === TRAIT_ZERO) {
58
- deadElements.push(createDeadElement(
59
- "semiring",
60
- `${trait.name}.${key}`,
61
- `TRAIT_ZERO encountered during addition: property '${key}' from @${trait.name}`
62
- ));
63
- continue;
64
- }
65
- if (!(key in acc)) {
66
- acc[key] = { value, source: trait.name, context: trait.context };
67
- } else {
68
- const existing = acc[key];
69
- try {
70
- acc[key] = this.multiply(existing, { value, source: trait.name, context: trait.context }, key);
71
- conflicts.push(`Resolved conflict on property '${key}' between @${existing.source} and @${trait.name}`);
72
- } catch (err) {
73
- errors.push(err instanceof Error ? err.message : String(err));
74
- }
75
- }
76
- }
77
- }
78
- const finalConfig = {};
79
- for (const [k, v] of Object.entries(acc)) {
80
- finalConfig[k] = v.value;
81
- }
82
- return {
83
- config: finalConfig,
84
- provenance: acc,
85
- conflicts,
86
- errors,
87
- deadElements
88
- };
89
- }
90
- /**
91
- * Semiring multiplication (⊗)
92
- * Resolves conflicts based on loaded domain rules, enforcing commutativity.
93
- *
94
- * C1 FIX: Authority no longer bypasses rules. Instead, authority modulates
95
- * the weight within rule resolution. Higher authority = higher weight in
96
- * numeric strategies, tiebreaker in domain-override. This ensures the
97
- * algebraic structure is preserved — crossing an authority threshold
98
- * changes the WEIGHT of a resolution, not the MECHANISM.
99
- */
100
- multiply(a, b, property) {
101
- if (a.value === TRAIT_ZERO) return a;
102
- if (b.value === TRAIT_ZERO) return b;
103
- if (a.value === b.value) return a;
104
- const rule = this.rules.get(property);
105
- if (!rule) {
106
- const authA = a.context?.authorityLevel ?? 0;
107
- const authB = b.context?.authorityLevel ?? 0;
108
- if (authA !== authB) {
109
- return authA > authB ? a : b;
110
- }
111
- throw new Error(`Unresolved conflict on '${property}': @${a.source} (${a.value}) vs @${b.source} (${b.value})`);
112
- }
113
- const weightA = authorityWeight(a.context?.authorityLevel ?? 0, a.context?.reputationScore);
114
- const weightB = authorityWeight(b.context?.authorityLevel ?? 0, b.context?.reputationScore);
115
- switch (rule.strategy) {
116
- case "max":
117
- return {
118
- value: Math.max(a.value, b.value),
119
- source: a.value > b.value ? a.source : b.source
120
- };
121
- case "min":
122
- return {
123
- value: Math.min(a.value, b.value),
124
- source: a.value < b.value ? a.source : b.source
125
- };
126
- case "sum":
127
- return {
128
- value: a.value + b.value,
129
- source: `${a.source}+${b.source}`
130
- };
131
- case "multiply":
132
- return {
133
- value: a.value * b.value,
134
- source: `${a.source}*${b.source}`
135
- };
136
- case "authority-weighted": {
137
- const scaledA = a.value * weightA;
138
- const scaledB = b.value * weightB;
139
- return scaledA >= scaledB ? { value: a.value, source: a.source, context: a.context } : { value: b.value, source: b.source, context: b.context };
140
- }
141
- case "domain-override": {
142
- const precedence = rule.precedence || [];
143
- const aIndex = precedence.indexOf(a.source);
144
- const bIndex = precedence.indexOf(b.source);
145
- if (aIndex !== -1 && bIndex !== -1) {
146
- if (aIndex === bIndex) {
147
- return weightA >= weightB ? a : b;
148
- }
149
- return aIndex < bIndex ? a : b;
150
- } else if (aIndex !== -1) {
151
- return a;
152
- } else if (bIndex !== -1) {
153
- return b;
154
- } else {
155
- if (weightA !== weightB) {
156
- return weightA > weightB ? a : b;
157
- }
158
- throw new Error(`Unresolved domain override on '${property}': @${a.source} vs @${b.source}`);
159
- }
160
- }
161
- case "strict-error":
162
- default:
163
- throw new Error(`Composition conflict: @${a.source} and @${b.source} both supply '${property}' = ${a.value} vs ${b.value}`);
164
- }
165
- }
166
- };
167
- }
168
- });
169
-
170
- export { ProvenanceSemiring, authorityWeight, init_ProvenanceSemiring };
171
- //# sourceMappingURL=chunk-UQW6SLM5.js.map
172
- //# sourceMappingURL=chunk-UQW6SLM5.js.map
@@ -1,237 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkEGIZHYJP_cjs = require('./chunk-EGIZHYJP.cjs');
4
-
5
- // src/traits/constants/mobile/ios-object-capture.ts
6
- exports.IOS_OBJECT_CAPTURE_TRAITS = void 0;
7
- var init_ios_object_capture = chunkEGIZHYJP_cjs.__esm({
8
- "src/traits/constants/mobile/ios-object-capture.ts"() {
9
- exports.IOS_OBJECT_CAPTURE_TRAITS = [
10
- "object_capture",
11
- // enable Object Capture session
12
- "object_capture_guide",
13
- // guided capture overlay (orbit path, coverage indicator)
14
- "object_capture_feedback",
15
- // real-time quality feedback during scan
16
- "photogrammetry_scan",
17
- // photogrammetry reconstruction pipeline
18
- "pbr_texture_extract",
19
- // extract PBR materials (diffuse, normal, roughness, metallic)
20
- "object_capture_lod",
21
- // generate LOD levels (preview, reduced, medium, full, raw)
22
- "object_capture_to_holo",
23
- // convert captured object to .holo asset
24
- "object_capture_export_usdz"
25
- // export as USDZ for Quick Look
26
- ];
27
- }
28
- });
29
-
30
- // src/traits/constants/mobile/airpods-spatial-audio.ts
31
- exports.AIRPODS_SPATIAL_AUDIO_TRAITS = void 0;
32
- var init_airpods_spatial_audio = chunkEGIZHYJP_cjs.__esm({
33
- "src/traits/constants/mobile/airpods-spatial-audio.ts"() {
34
- exports.AIRPODS_SPATIAL_AUDIO_TRAITS = [
35
- "spatial_audio_airpods",
36
- // enable AirPods spatial audio
37
- "audio_head_track",
38
- // head-tracked audio stays pinned in space
39
- "audio_source_3d",
40
- // define 3D audio source position on .holo entity
41
- "audio_falloff",
42
- // distance-based volume falloff model
43
- "audio_directivity",
44
- // directional audio cone (inner/outer angle)
45
- "audio_reverb_match",
46
- // match reverb to physical room acoustics
47
- "audio_occlusion"
48
- // audio occluded by physical/holographic objects
49
- ];
50
- }
51
- });
52
-
53
- // src/traits/constants/mobile/shareplay.ts
54
- exports.SHAREPLAY_TRAITS = void 0;
55
- var init_shareplay = chunkEGIZHYJP_cjs.__esm({
56
- "src/traits/constants/mobile/shareplay.ts"() {
57
- exports.SHAREPLAY_TRAITS = [
58
- // --- Session ---
59
- "shareplay_session",
60
- // enable SharePlay session for .holo scene
61
- "shareplay_host",
62
- // designate host who controls scene state
63
- "shareplay_join",
64
- // join existing SharePlay session
65
- // --- Sync ---
66
- "shareplay_sync",
67
- // sync scene state across participants (Loro CRDT)
68
- "shareplay_anchor_local",
69
- // each participant anchors scene to their own space
70
- "shareplay_entity_ownership",
71
- // per-entity ownership for conflict resolution
72
- "shareplay_late_join",
73
- // full state sync for late-joining participants
74
- // --- Audio ---
75
- "shareplay_voice_spatial",
76
- // spatial audio for participant voices in shared scene
77
- "shareplay_mute_zone"
78
- // define zones where spatial audio is attenuated
79
- ];
80
- }
81
- });
82
-
83
- // src/traits/constants/mobile/uwb-positioning.ts
84
- exports.UWB_POSITIONING_TRAITS = void 0;
85
- var init_uwb_positioning = chunkEGIZHYJP_cjs.__esm({
86
- "src/traits/constants/mobile/uwb-positioning.ts"() {
87
- exports.UWB_POSITIONING_TRAITS = [
88
- "uwb_discover",
89
- // discover nearby UWB-capable devices
90
- "uwb_range",
91
- // measure distance to peer device (cm precision)
92
- "uwb_direction",
93
- // determine direction to peer device (azimuth + elevation)
94
- "uwb_handoff",
95
- // hand off .holo entity to nearby device by pointing
96
- "uwb_anchor_peer",
97
- // use peer device position as spatial anchor
98
- "uwb_controller"
99
- // use second device as spatial controller/wand
100
- ];
101
- }
102
- });
103
-
104
- // src/traits/constants/mobile/face-tracking.ts
105
- exports.FACE_TRACKING_TRAITS = void 0;
106
- var init_face_tracking = chunkEGIZHYJP_cjs.__esm({
107
- "src/traits/constants/mobile/face-tracking.ts"() {
108
- exports.FACE_TRACKING_TRAITS = [
109
- // --- Tracking ---
110
- "face_track_truedepth",
111
- // enable TrueDepth face tracking (ARFaceAnchor)
112
- "face_blendshapes",
113
- // 52 ARKit blendshape coefficients
114
- "face_mesh",
115
- // face topology mesh (1220 vertices)
116
- "face_transform",
117
- // head position and orientation in world space
118
- // --- Avatar ---
119
- "face_avatar_drive",
120
- // drive .holo avatar with face blendshapes
121
- "face_blendshape_mirror",
122
- // mirror blendshapes to avatar (1:1 mapping)
123
- "face_puppet",
124
- // face-driven holographic puppet mode
125
- "face_retarget",
126
- // retarget blendshapes to non-human avatar topology
127
- // --- Analysis ---
128
- "face_emotion_detect",
129
- // derive emotion from blendshape combinations
130
- "face_gaze_direction",
131
- // eye gaze vector from lookAtPoint
132
- "face_tongue_detect"
133
- // tongue out detection (blendshape tongueOut)
134
- ];
135
- }
136
- });
137
-
138
- // src/traits/constants/mobile/lidar-scanner.ts
139
- exports.LIDAR_SCANNER_TRAITS = void 0;
140
- var init_lidar_scanner = chunkEGIZHYJP_cjs.__esm({
141
- "src/traits/constants/mobile/lidar-scanner.ts"() {
142
- exports.LIDAR_SCANNER_TRAITS = [
143
- // --- Scanning ---
144
- "lidar_scan",
145
- // enable LiDAR scanning session
146
- "lidar_mesh_capture",
147
- // capture raw triangle mesh from LiDAR
148
- "lidar_realtime_mesh",
149
- // live-updating mesh during scan (ARMeshAnchor stream)
150
- // --- Mesh Processing ---
151
- "lidar_mesh_classification",
152
- // ARKit mesh classification (floor, wall, ceiling, table, seat, window, door)
153
- "lidar_point_cloud",
154
- // raw point cloud access (ARPointCloud)
155
- "lidar_mesh_simplify",
156
- // reduce mesh complexity for performance
157
- "lidar_mesh_smooth",
158
- // smooth captured mesh normals
159
- // --- Output ---
160
- "lidar_mesh_to_holo",
161
- // convert mesh to .holo scene graph with semantic labels
162
- "lidar_mesh_export",
163
- // export mesh as USDZ/OBJ/GLB
164
- // --- Depth ---
165
- "lidar_depth_map",
166
- // per-frame depth buffer (ARFrame.sceneDepth)
167
- "lidar_depth_confidence"
168
- // per-pixel confidence map for depth data
169
- ];
170
- }
171
- });
172
-
173
- // src/traits/constants/mobile/roomplan.ts
174
- exports.ROOMPLAN_TRAITS = void 0;
175
- var init_roomplan = chunkEGIZHYJP_cjs.__esm({
176
- "src/traits/constants/mobile/roomplan.ts"() {
177
- exports.ROOMPLAN_TRAITS = [
178
- // --- Scanning ---
179
- "roomplan_scan",
180
- // marks scene as a RoomPlan capture target (iOS 16+)
181
- "roomplan_realtime_preview",
182
- // show live mesh preview during scan
183
- "roomplan_scan_quality",
184
- // scan quality level: quick | standard | detailed
185
- // --- Structural Surfaces ---
186
- "roomplan_wall",
187
- // detected wall surface
188
- "roomplan_floor",
189
- // detected floor surface
190
- "roomplan_ceiling",
191
- // detected ceiling surface
192
- // --- Openings ---
193
- "roomplan_door",
194
- // detected door opening
195
- "roomplan_window",
196
- // detected window opening
197
- "roomplan_opening",
198
- // generic opening (archway, pass-through)
199
- // --- Furniture & Fixtures ---
200
- "roomplan_furniture",
201
- // generic detected furniture item
202
- "roomplan_table",
203
- // classified table
204
- "roomplan_chair",
205
- // classified chair / seating
206
- "roomplan_sofa",
207
- // classified sofa / couch
208
- "roomplan_bed",
209
- // classified bed
210
- "roomplan_storage",
211
- // classified storage (cabinet, shelf, dresser)
212
- "roomplan_appliance",
213
- // classified appliance (oven, fridge, washer)
214
- "roomplan_fixture",
215
- // classified fixture (sink, toilet, bathtub)
216
- "roomplan_screen",
217
- // classified screen (TV, monitor)
218
- "roomplan_fireplace",
219
- // classified fireplace
220
- // --- Output ---
221
- "roomplan_scene_export",
222
- // export captured room as .holo scene graph
223
- "roomplan_coordinate_map"
224
- // map RoomPlan world coordinates to HoloScript space
225
- ];
226
- }
227
- });
228
-
229
- exports.init_airpods_spatial_audio = init_airpods_spatial_audio;
230
- exports.init_face_tracking = init_face_tracking;
231
- exports.init_ios_object_capture = init_ios_object_capture;
232
- exports.init_lidar_scanner = init_lidar_scanner;
233
- exports.init_roomplan = init_roomplan;
234
- exports.init_shareplay = init_shareplay;
235
- exports.init_uwb_positioning = init_uwb_positioning;
236
- //# sourceMappingURL=chunk-V2ILLPHK.cjs.map
237
- //# sourceMappingURL=chunk-V2ILLPHK.cjs.map