@holoscript/core 6.0.4 → 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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/compiler/index.d.ts +82 -0
- package/dist/constants.d.ts +3 -2
- package/dist/coordinators/index.d.ts +189 -0
- package/dist/index.d.ts +501 -19
- package/dist/paper-0c-spike/index.d.ts +29 -0
- package/dist/reconstruction/index.d.ts +78 -0
- package/dist/tools/index.d.ts +22 -1
- package/dist/traitDocs/traitDocs.d.ts +69 -0
- package/dist/traits/index.d.ts +61 -0
- package/package.json +105 -57
- package/dist/GLTFPipeline-DEN36VNK.js +0 -12
- package/dist/GLTFPipeline-YPCAK236.cjs +0 -33
- package/dist/HoloScriptPlusParser-BN6KVRCM.js +0 -692
- package/dist/HoloScriptPlusParser-NC5FE6AL.cjs +0 -697
- package/dist/USDZExporter-NTMBNTDB.js +0 -707
- package/dist/USDZExporter-UWGWNMMD.cjs +0 -709
- package/dist/chunk-27LWW5FU.cjs +0 -410
- package/dist/chunk-2CWOLHTE.js +0 -69
- package/dist/chunk-33LSUQDD.cjs +0 -835
- package/dist/chunk-3FJCK5XA.js +0 -2232
- package/dist/chunk-3FXV5S25.cjs +0 -633
- package/dist/chunk-3FYZOR7S.cjs +0 -69
- package/dist/chunk-3SAK5KFL.cjs +0 -83
- package/dist/chunk-4XSNJCLC.cjs +0 -1859
- package/dist/chunk-54FHG2MX.js +0 -655
- package/dist/chunk-56IF4NTA.js +0 -56
- package/dist/chunk-5BGSECRJ.cjs +0 -2237
- package/dist/chunk-5GLCTO44.js +0 -161
- package/dist/chunk-5O6TQC6M.cjs +0 -1871
- package/dist/chunk-5OEOHAAW.cjs +0 -682
- package/dist/chunk-5TOFIR6L.js +0 -407
- package/dist/chunk-5WUNN6ZN.cjs +0 -428
- package/dist/chunk-6TZPZCOJ.cjs +0 -1404
- package/dist/chunk-6UEHYZ7V.cjs +0 -773
- package/dist/chunk-6XSERL6L.js +0 -5678
- package/dist/chunk-72EQECGT.cjs +0 -908
- package/dist/chunk-7AGYRWKW.cjs +0 -507
- package/dist/chunk-7LCYLPW2.cjs +0 -663
- package/dist/chunk-A7PIMZGU.js +0 -263
- package/dist/chunk-ATSKSYVE.cjs +0 -51683
- package/dist/chunk-B5TCIAPQ.cjs +0 -117
- package/dist/chunk-BF2235SI.cjs +0 -5714
- package/dist/chunk-BKIGPPVM.js +0 -629
- package/dist/chunk-BND3ST2K.cjs +0 -662
- package/dist/chunk-BU7VWW2K.js +0 -2522
- package/dist/chunk-BWFJEM5A.js +0 -5419
- package/dist/chunk-CAUCGUEA.cjs +0 -130
- package/dist/chunk-CBJSLA2E.cjs +0 -5423
- package/dist/chunk-CDPGV4DN.js +0 -114
- package/dist/chunk-CLYEIWA5.cjs +0 -408
- package/dist/chunk-CS2EMTGF.js +0 -1966
- package/dist/chunk-DMG7C4H2.js +0 -975
- package/dist/chunk-DXJQDCFL.js +0 -468
- package/dist/chunk-E3FWRT3Z.js +0 -608
- package/dist/chunk-E3UALNFA.js +0 -421
- package/dist/chunk-EONILVMF.js +0 -762
- package/dist/chunk-EQV4R3EV.cjs +0 -769
- package/dist/chunk-F3HH56EB.cjs +0 -5538
- package/dist/chunk-F4IULT7N.js +0 -1488
- package/dist/chunk-FF3Q7ADR.js +0 -380
- package/dist/chunk-FFKU7BTK.cjs +0 -1046
- package/dist/chunk-FHQVYCH2.js +0 -70
- package/dist/chunk-FSF7EQVA.cjs +0 -1974
- package/dist/chunk-G4VZTCIB.js +0 -659
- package/dist/chunk-G7CT3EMP.cjs +0 -1002
- package/dist/chunk-GGHSW2NN.js +0 -51334
- package/dist/chunk-GVUR45UF.cjs +0 -777
- package/dist/chunk-H5Z7NASB.js +0 -9662
- package/dist/chunk-HE7ULERA.cjs +0 -697
- package/dist/chunk-HJJLD366.js +0 -1169
- package/dist/chunk-HPS76H7Q.js +0 -309
- package/dist/chunk-HQUEA5R6.cjs +0 -424
- package/dist/chunk-HYNTS5CP.js +0 -422
- package/dist/chunk-I6XZ5DZF.cjs +0 -488
- package/dist/chunk-IBDG74G2.cjs +0 -1219
- package/dist/chunk-IFNQFCTM.js +0 -3098
- package/dist/chunk-IHOUYQIA.js +0 -406
- package/dist/chunk-ILRBGFVD.cjs +0 -72
- package/dist/chunk-IWI6J7FX.js +0 -421
- package/dist/chunk-K3JDKWGI.cjs +0 -270
- package/dist/chunk-K6EKD26I.js +0 -630
- package/dist/chunk-KCQ5NDYC.cjs +0 -3172
- package/dist/chunk-KED34ILP.js +0 -832
- package/dist/chunk-KSGXLT74.cjs +0 -457
- package/dist/chunk-L4G4RLXX.js +0 -767
- package/dist/chunk-LDP5OK6G.js +0 -1216
- package/dist/chunk-LGGRPKTV.cjs +0 -735
- package/dist/chunk-LK5IAVH6.cjs +0 -1173
- package/dist/chunk-LSW7P7ML.js +0 -3675
- package/dist/chunk-LXJ4667L.cjs +0 -3874
- package/dist/chunk-LZ266PCM.cjs +0 -4499
- package/dist/chunk-MD6KDHVE.cjs +0 -237
- package/dist/chunk-MEASWI2Y.js +0 -126
- package/dist/chunk-MPXBVFHQ.js +0 -768
- package/dist/chunk-N5FTS757.cjs +0 -415
- package/dist/chunk-NCUKG4SK.cjs +0 -3075
- package/dist/chunk-NDQNIJEH.js +0 -1715
- package/dist/chunk-NOZZ46QU.js +0 -168
- package/dist/chunk-OFKWH2IP.js +0 -449
- package/dist/chunk-PHENW4MQ.js +0 -65
- package/dist/chunk-PMGODDJA.cjs +0 -319
- package/dist/chunk-Q4QX3AET.cjs +0 -1505
- package/dist/chunk-Q56TT7IL.js +0 -483
- package/dist/chunk-Q5JT3YML.cjs +0 -129
- package/dist/chunk-Q5SJOGHQ.cjs +0 -4256
- package/dist/chunk-QGKNANZ3.js +0 -3071
- package/dist/chunk-QLEAOI3Q.cjs +0 -424
- package/dist/chunk-R7MA7QWV.js +0 -732
- package/dist/chunk-RVYPEYPX.js +0 -678
- package/dist/chunk-S2N5TNMA.js +0 -1855
- package/dist/chunk-S565K7NK.js +0 -752
- package/dist/chunk-SDAMZIRE.js +0 -765
- package/dist/chunk-T36DDXSF.js +0 -4250
- package/dist/chunk-T4NKMBDL.js +0 -5474
- package/dist/chunk-T7LEXZUZ.cjs +0 -2526
- package/dist/chunk-TEWCN33Y.js +0 -694
- package/dist/chunk-TQSZUOW5.cjs +0 -793
- package/dist/chunk-TSH3MSQU.cjs +0 -129
- package/dist/chunk-UERJ3YJV.js +0 -504
- package/dist/chunk-UPJBDCVF.js +0 -1395
- package/dist/chunk-V3NN3HPP.js +0 -4462
- package/dist/chunk-VJ3L7CHT.cjs +0 -169
- package/dist/chunk-WB4Z63GG.js +0 -229
- package/dist/chunk-WDW67DZB.cjs +0 -9728
- package/dist/chunk-WGMEAYBG.js +0 -126
- package/dist/chunk-X4ZF6CNE.cjs +0 -473
- package/dist/chunk-X6SEAXAX.cjs +0 -3681
- package/dist/chunk-XCWFGZAA.js +0 -1043
- package/dist/chunk-XD6IYDUX.js +0 -903
- package/dist/chunk-XG23EUQX.cjs +0 -1717
- package/dist/chunk-XRKWN5PL.cjs +0 -173
- package/dist/chunk-XUILI4KB.cjs +0 -430
- package/dist/chunk-XUTX5CBW.js +0 -126
- package/dist/chunk-XWPNTWDN.cjs +0 -755
- package/dist/chunk-XXINBTZK.cjs +0 -633
- package/dist/chunk-YCXFCXDS.js +0 -1868
- package/dist/chunk-YQK5JNFK.js +0 -3725
- package/dist/chunk-YYXH45E2.js +0 -426
- package/dist/chunk-Z34RLXRA.cjs +0 -612
- package/dist/chunk-ZP4D3CSX.cjs +0 -72
- package/dist/cli/holoscript-runner.cjs +0 -2259
- package/dist/cli/holoscript-runner.js +0 -2234
- package/dist/codebase/index.cjs +0 -336
- package/dist/codebase/index.js +0 -331
- package/dist/compiler/agent-inference.cjs +0 -28
- package/dist/compiler/agent-inference.js +0 -5
- package/dist/compiler/android-xr.cjs +0 -19
- package/dist/compiler/android-xr.js +0 -9
- package/dist/compiler/android.cjs +0 -20
- package/dist/compiler/android.js +0 -10
- package/dist/compiler/ar.cjs +0 -20
- package/dist/compiler/ar.js +0 -8
- package/dist/compiler/babylon.cjs +0 -17
- package/dist/compiler/babylon.js +0 -11
- package/dist/compiler/coco.cjs +0 -27
- package/dist/compiler/coco.js +0 -4
- package/dist/compiler/domain-block-utils.cjs +0 -602
- package/dist/compiler/domain-block-utils.js +0 -8
- package/dist/compiler/dtdl.cjs +0 -24
- package/dist/compiler/dtdl.js +0 -8
- package/dist/compiler/gltf-pipeline.cjs +0 -39
- package/dist/compiler/gltf-pipeline.js +0 -4
- package/dist/compiler/godot.cjs +0 -15
- package/dist/compiler/godot.js +0 -9
- package/dist/compiler/incremental.cjs +0 -29
- package/dist/compiler/incremental.js +0 -4
- package/dist/compiler/index.cjs +0 -2578
- package/dist/compiler/index.js +0 -2383
- package/dist/compiler/ios.cjs +0 -20
- package/dist/compiler/ios.js +0 -10
- package/dist/compiler/multi-layer.cjs +0 -20
- package/dist/compiler/multi-layer.js +0 -11
- package/dist/compiler/nodetoy.cjs +0 -23
- package/dist/compiler/nodetoy.js +0 -4
- package/dist/compiler/openxr.cjs +0 -15
- package/dist/compiler/openxr.js +0 -9
- package/dist/compiler/playcanvas.cjs +0 -16
- package/dist/compiler/playcanvas.js +0 -10
- package/dist/compiler/r3f.cjs +0 -34
- package/dist/compiler/r3f.js +0 -12
- 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 -21
- package/dist/compiler/sdf.js +0 -9
- package/dist/compiler/semantic-scene.cjs +0 -31
- package/dist/compiler/semantic-scene.js +0 -4
- package/dist/compiler/state.cjs +0 -17
- package/dist/compiler/state.js +0 -7
- package/dist/compiler/trait-composition.cjs +0 -26
- package/dist/compiler/trait-composition.js +0 -5
- package/dist/compiler/unity.cjs +0 -15
- package/dist/compiler/unity.js +0 -9
- package/dist/compiler/unreal.cjs +0 -19
- package/dist/compiler/unreal.js +0 -9
- package/dist/compiler/urdf.cjs +0 -45
- package/dist/compiler/urdf.js +0 -9
- package/dist/compiler/usd-physics.cjs +0 -23
- package/dist/compiler/usd-physics.js +0 -6
- package/dist/compiler/visionos.cjs +0 -15
- package/dist/compiler/visionos.js +0 -9
- package/dist/compiler/vrchat.cjs +0 -19
- package/dist/compiler/vrchat.js +0 -9
- package/dist/compiler/vrr.cjs +0 -21
- package/dist/compiler/vrr.js +0 -9
- package/dist/compiler/wasm.cjs +0 -33
- package/dist/compiler/wasm.js +0 -9
- package/dist/compiler/webgpu.cjs +0 -15
- package/dist/compiler/webgpu.js +0 -9
- 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 -68
- package/dist/entries/scripting.js +0 -11
- package/dist/index.cjs +0 -40921
- package/dist/index.js +0 -37763
- package/dist/math/vec3.cjs +0 -57
- package/dist/math/vec3.js +0 -4
- package/dist/ml-dsa-PHCWUBPX.cjs +0 -1178
- package/dist/ml-dsa-WYLJHJO6.js +0 -1178
- package/dist/parser.cjs +0 -27
- package/dist/parser.js +0 -10
- package/dist/playwright-5OSAPTNH.js +0 -98660
- package/dist/playwright-RL6GY4F7.cjs +0 -98673
- 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 -14649
- package/dist/traits/index.js +0 -12243
- package/dist/type-checker.cjs +0 -18
- package/dist/type-checker.js +0 -5
package/dist/chunk-VJ3L7CHT.cjs
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// src/compiler/ReproducibilityMode.ts
|
|
4
|
-
var DEFAULT_FIXED_TIMESTAMP = "2026-01-01T00:00:00.000Z";
|
|
5
|
-
var DEFAULT_SEED = 42;
|
|
6
|
-
var DEFAULT_GENERATOR = "holoscript-compiler";
|
|
7
|
-
var COMPILER_VERSION = "6.0.0";
|
|
8
|
-
function createSeededRNG(seed = DEFAULT_SEED) {
|
|
9
|
-
let state = seed | 0;
|
|
10
|
-
const initialSeed = state;
|
|
11
|
-
function next() {
|
|
12
|
-
state = state + 1831565813 | 0;
|
|
13
|
-
let t = Math.imul(state ^ state >>> 15, 1 | state);
|
|
14
|
-
t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
|
|
15
|
-
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
16
|
-
}
|
|
17
|
-
function nextInt(min, max) {
|
|
18
|
-
return Math.floor(next() * (max - min + 1)) + min;
|
|
19
|
-
}
|
|
20
|
-
function nextUUID() {
|
|
21
|
-
const hex = (n, len) => Array.from({ length: len }, () => nextInt(0, 15).toString(16)).join("");
|
|
22
|
-
return `${hex(0, 8)}-${hex(0, 4)}-4${hex(0, 3)}-${(8 + nextInt(0, 3)).toString(16)}${hex(0, 3)}-${hex(0, 12)}`;
|
|
23
|
-
}
|
|
24
|
-
function reset() {
|
|
25
|
-
state = initialSeed;
|
|
26
|
-
}
|
|
27
|
-
function getState() {
|
|
28
|
-
return state;
|
|
29
|
-
}
|
|
30
|
-
return { next, nextInt, nextUUID, reset, getState };
|
|
31
|
-
}
|
|
32
|
-
function sortKeysDeep(value) {
|
|
33
|
-
if (value === null || value === void 0) return value;
|
|
34
|
-
if (Array.isArray(value)) {
|
|
35
|
-
return value.map((item) => sortKeysDeep(item));
|
|
36
|
-
}
|
|
37
|
-
if (typeof value === "object") {
|
|
38
|
-
const sorted = {};
|
|
39
|
-
const keys = Object.keys(value).sort();
|
|
40
|
-
for (const key of keys) {
|
|
41
|
-
sorted[key] = sortKeysDeep(value[key]);
|
|
42
|
-
}
|
|
43
|
-
return sorted;
|
|
44
|
-
}
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
function fnv1a32(input) {
|
|
48
|
-
let hash = 2166136261;
|
|
49
|
-
for (let i = 0; i < input.length; i++) {
|
|
50
|
-
hash ^= input.charCodeAt(i);
|
|
51
|
-
hash = Math.imul(hash, 16777619);
|
|
52
|
-
}
|
|
53
|
-
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
54
|
-
}
|
|
55
|
-
function hashComposition(composition) {
|
|
56
|
-
const sorted = sortKeysDeep(composition);
|
|
57
|
-
const serialized = JSON.stringify(sorted);
|
|
58
|
-
const h1 = fnv1a32(serialized);
|
|
59
|
-
const h2 = fnv1a32(serialized + h1);
|
|
60
|
-
const h3 = fnv1a32(serialized + h2);
|
|
61
|
-
const h4 = fnv1a32(serialized + h3);
|
|
62
|
-
const h5 = fnv1a32(serialized + h4);
|
|
63
|
-
const h6 = fnv1a32(serialized + h5);
|
|
64
|
-
const h7 = fnv1a32(serialized + h6);
|
|
65
|
-
const h8 = fnv1a32(serialized + h7);
|
|
66
|
-
return `${h1}${h2}${h3}${h4}${h5}${h6}${h7}${h8}`;
|
|
67
|
-
}
|
|
68
|
-
function createReproducibilityContext(config) {
|
|
69
|
-
const fullConfig = {
|
|
70
|
-
enabled: config.enabled,
|
|
71
|
-
fixedTimestamp: config.fixedTimestamp ?? DEFAULT_FIXED_TIMESTAMP,
|
|
72
|
-
randomSeed: config.randomSeed ?? DEFAULT_SEED,
|
|
73
|
-
sortKeys: config.sortKeys ?? config.enabled,
|
|
74
|
-
deterministicIds: config.deterministicIds ?? config.enabled,
|
|
75
|
-
generatorString: config.generatorString ?? DEFAULT_GENERATOR,
|
|
76
|
-
includeManifest: config.includeManifest ?? false
|
|
77
|
-
};
|
|
78
|
-
const rng = createSeededRNG(fullConfig.randomSeed);
|
|
79
|
-
function random() {
|
|
80
|
-
return fullConfig.enabled ? rng.next() : Math.random();
|
|
81
|
-
}
|
|
82
|
-
function randomInt(min, max) {
|
|
83
|
-
return fullConfig.enabled ? rng.nextInt(min, max) : Math.floor(Math.random() * (max - min + 1)) + min;
|
|
84
|
-
}
|
|
85
|
-
function timestamp() {
|
|
86
|
-
return fullConfig.enabled ? fullConfig.fixedTimestamp : (/* @__PURE__ */ new Date()).toISOString();
|
|
87
|
-
}
|
|
88
|
-
function timestampDate() {
|
|
89
|
-
return fullConfig.enabled ? new Date(fullConfig.fixedTimestamp) : /* @__PURE__ */ new Date();
|
|
90
|
-
}
|
|
91
|
-
function uuid() {
|
|
92
|
-
if (!fullConfig.enabled || !fullConfig.deterministicIds) {
|
|
93
|
-
return crypto?.randomUUID?.() ?? rng.nextUUID();
|
|
94
|
-
}
|
|
95
|
-
return rng.nextUUID();
|
|
96
|
-
}
|
|
97
|
-
function generator() {
|
|
98
|
-
return fullConfig.generatorString;
|
|
99
|
-
}
|
|
100
|
-
function stabilize(value) {
|
|
101
|
-
if (!fullConfig.enabled || !fullConfig.sortKeys) return value;
|
|
102
|
-
return sortKeysDeep(value);
|
|
103
|
-
}
|
|
104
|
-
function manifest(composition) {
|
|
105
|
-
return {
|
|
106
|
-
reproducible: true,
|
|
107
|
-
seed: fullConfig.randomSeed,
|
|
108
|
-
timestamp: fullConfig.fixedTimestamp,
|
|
109
|
-
inputHash: hashComposition(composition),
|
|
110
|
-
compilerVersion: COMPILER_VERSION
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function reset() {
|
|
114
|
-
rng.reset();
|
|
115
|
-
}
|
|
116
|
-
function stringify(value, indent = 2) {
|
|
117
|
-
const processed = fullConfig.enabled && fullConfig.sortKeys ? sortKeysDeep(value) : value;
|
|
118
|
-
return JSON.stringify(processed, null, indent);
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
enabled: fullConfig.enabled,
|
|
122
|
-
config: fullConfig,
|
|
123
|
-
random,
|
|
124
|
-
randomInt,
|
|
125
|
-
timestamp,
|
|
126
|
-
timestampDate,
|
|
127
|
-
uuid,
|
|
128
|
-
generator,
|
|
129
|
-
stabilize,
|
|
130
|
-
manifest,
|
|
131
|
-
reset,
|
|
132
|
-
stringify
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function parseReproducibilityFlags(args) {
|
|
136
|
-
const config = { enabled: false };
|
|
137
|
-
for (const arg of args) {
|
|
138
|
-
if (arg === "--reproducible") {
|
|
139
|
-
config.enabled = true;
|
|
140
|
-
}
|
|
141
|
-
if (arg === "--no-reproducible") {
|
|
142
|
-
config.enabled = false;
|
|
143
|
-
}
|
|
144
|
-
if (arg.startsWith("--reproducible-seed=")) {
|
|
145
|
-
config.enabled = true;
|
|
146
|
-
config.randomSeed = parseInt(arg.split("=")[1], 10);
|
|
147
|
-
if (isNaN(config.randomSeed)) config.randomSeed = DEFAULT_SEED;
|
|
148
|
-
}
|
|
149
|
-
if (arg.startsWith("--reproducible-timestamp=")) {
|
|
150
|
-
config.enabled = true;
|
|
151
|
-
config.fixedTimestamp = arg.split("=")[1].replace(/"/g, "");
|
|
152
|
-
}
|
|
153
|
-
if (arg === "--reproducible-manifest") {
|
|
154
|
-
config.includeManifest = true;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return config;
|
|
158
|
-
}
|
|
159
|
-
var ReproducibilityMode_default = createReproducibilityContext;
|
|
160
|
-
|
|
161
|
-
exports.ReproducibilityMode_default = ReproducibilityMode_default;
|
|
162
|
-
exports.createReproducibilityContext = createReproducibilityContext;
|
|
163
|
-
exports.createSeededRNG = createSeededRNG;
|
|
164
|
-
exports.fnv1a32 = fnv1a32;
|
|
165
|
-
exports.hashComposition = hashComposition;
|
|
166
|
-
exports.parseReproducibilityFlags = parseReproducibilityFlags;
|
|
167
|
-
exports.sortKeysDeep = sortKeysDeep;
|
|
168
|
-
//# sourceMappingURL=chunk-VJ3L7CHT.cjs.map
|
|
169
|
-
//# sourceMappingURL=chunk-VJ3L7CHT.cjs.map
|
package/dist/chunk-WB4Z63GG.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { __esm } from './chunk-2CWOLHTE.js';
|
|
2
|
-
|
|
3
|
-
// src/traits/constants/mobile/ios-object-capture.ts
|
|
4
|
-
var IOS_OBJECT_CAPTURE_TRAITS;
|
|
5
|
-
var init_ios_object_capture = __esm({
|
|
6
|
-
"src/traits/constants/mobile/ios-object-capture.ts"() {
|
|
7
|
-
IOS_OBJECT_CAPTURE_TRAITS = [
|
|
8
|
-
"object_capture",
|
|
9
|
-
// enable Object Capture session
|
|
10
|
-
"object_capture_guide",
|
|
11
|
-
// guided capture overlay (orbit path, coverage indicator)
|
|
12
|
-
"object_capture_feedback",
|
|
13
|
-
// real-time quality feedback during scan
|
|
14
|
-
"photogrammetry_scan",
|
|
15
|
-
// photogrammetry reconstruction pipeline
|
|
16
|
-
"pbr_texture_extract",
|
|
17
|
-
// extract PBR materials (diffuse, normal, roughness, metallic)
|
|
18
|
-
"object_capture_lod",
|
|
19
|
-
// generate LOD levels (preview, reduced, medium, full, raw)
|
|
20
|
-
"object_capture_to_holo",
|
|
21
|
-
// convert captured object to .holo asset
|
|
22
|
-
"object_capture_export_usdz"
|
|
23
|
-
// export as USDZ for Quick Look
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// src/traits/constants/mobile/airpods-spatial-audio.ts
|
|
29
|
-
var AIRPODS_SPATIAL_AUDIO_TRAITS;
|
|
30
|
-
var init_airpods_spatial_audio = __esm({
|
|
31
|
-
"src/traits/constants/mobile/airpods-spatial-audio.ts"() {
|
|
32
|
-
AIRPODS_SPATIAL_AUDIO_TRAITS = [
|
|
33
|
-
"spatial_audio_airpods",
|
|
34
|
-
// enable AirPods spatial audio
|
|
35
|
-
"audio_head_track",
|
|
36
|
-
// head-tracked audio stays pinned in space
|
|
37
|
-
"audio_source_3d",
|
|
38
|
-
// define 3D audio source position on .holo entity
|
|
39
|
-
"audio_falloff",
|
|
40
|
-
// distance-based volume falloff model
|
|
41
|
-
"audio_directivity",
|
|
42
|
-
// directional audio cone (inner/outer angle)
|
|
43
|
-
"audio_reverb_match",
|
|
44
|
-
// match reverb to physical room acoustics
|
|
45
|
-
"audio_occlusion"
|
|
46
|
-
// audio occluded by physical/holographic objects
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// src/traits/constants/mobile/shareplay.ts
|
|
52
|
-
var SHAREPLAY_TRAITS;
|
|
53
|
-
var init_shareplay = __esm({
|
|
54
|
-
"src/traits/constants/mobile/shareplay.ts"() {
|
|
55
|
-
SHAREPLAY_TRAITS = [
|
|
56
|
-
// --- Session ---
|
|
57
|
-
"shareplay_session",
|
|
58
|
-
// enable SharePlay session for .holo scene
|
|
59
|
-
"shareplay_host",
|
|
60
|
-
// designate host who controls scene state
|
|
61
|
-
"shareplay_join",
|
|
62
|
-
// join existing SharePlay session
|
|
63
|
-
// --- Sync ---
|
|
64
|
-
"shareplay_sync",
|
|
65
|
-
// sync scene state across participants (Loro CRDT)
|
|
66
|
-
"shareplay_anchor_local",
|
|
67
|
-
// each participant anchors scene to their own space
|
|
68
|
-
"shareplay_entity_ownership",
|
|
69
|
-
// per-entity ownership for conflict resolution
|
|
70
|
-
"shareplay_late_join",
|
|
71
|
-
// full state sync for late-joining participants
|
|
72
|
-
// --- Audio ---
|
|
73
|
-
"shareplay_voice_spatial",
|
|
74
|
-
// spatial audio for participant voices in shared scene
|
|
75
|
-
"shareplay_mute_zone"
|
|
76
|
-
// define zones where spatial audio is attenuated
|
|
77
|
-
];
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
// src/traits/constants/mobile/uwb-positioning.ts
|
|
82
|
-
var UWB_POSITIONING_TRAITS;
|
|
83
|
-
var init_uwb_positioning = __esm({
|
|
84
|
-
"src/traits/constants/mobile/uwb-positioning.ts"() {
|
|
85
|
-
UWB_POSITIONING_TRAITS = [
|
|
86
|
-
"uwb_discover",
|
|
87
|
-
// discover nearby UWB-capable devices
|
|
88
|
-
"uwb_range",
|
|
89
|
-
// measure distance to peer device (cm precision)
|
|
90
|
-
"uwb_direction",
|
|
91
|
-
// determine direction to peer device (azimuth + elevation)
|
|
92
|
-
"uwb_handoff",
|
|
93
|
-
// hand off .holo entity to nearby device by pointing
|
|
94
|
-
"uwb_anchor_peer",
|
|
95
|
-
// use peer device position as spatial anchor
|
|
96
|
-
"uwb_controller"
|
|
97
|
-
// use second device as spatial controller/wand
|
|
98
|
-
];
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
// src/traits/constants/mobile/face-tracking.ts
|
|
103
|
-
var FACE_TRACKING_TRAITS;
|
|
104
|
-
var init_face_tracking = __esm({
|
|
105
|
-
"src/traits/constants/mobile/face-tracking.ts"() {
|
|
106
|
-
FACE_TRACKING_TRAITS = [
|
|
107
|
-
// --- Tracking ---
|
|
108
|
-
"face_track_truedepth",
|
|
109
|
-
// enable TrueDepth face tracking (ARFaceAnchor)
|
|
110
|
-
"face_blendshapes",
|
|
111
|
-
// 52 ARKit blendshape coefficients
|
|
112
|
-
"face_mesh",
|
|
113
|
-
// face topology mesh (1220 vertices)
|
|
114
|
-
"face_transform",
|
|
115
|
-
// head position and orientation in world space
|
|
116
|
-
// --- Avatar ---
|
|
117
|
-
"face_avatar_drive",
|
|
118
|
-
// drive .holo avatar with face blendshapes
|
|
119
|
-
"face_blendshape_mirror",
|
|
120
|
-
// mirror blendshapes to avatar (1:1 mapping)
|
|
121
|
-
"face_puppet",
|
|
122
|
-
// face-driven holographic puppet mode
|
|
123
|
-
"face_retarget",
|
|
124
|
-
// retarget blendshapes to non-human avatar topology
|
|
125
|
-
// --- Analysis ---
|
|
126
|
-
"face_emotion_detect",
|
|
127
|
-
// derive emotion from blendshape combinations
|
|
128
|
-
"face_gaze_direction",
|
|
129
|
-
// eye gaze vector from lookAtPoint
|
|
130
|
-
"face_tongue_detect"
|
|
131
|
-
// tongue out detection (blendshape tongueOut)
|
|
132
|
-
];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
// src/traits/constants/mobile/lidar-scanner.ts
|
|
137
|
-
var LIDAR_SCANNER_TRAITS;
|
|
138
|
-
var init_lidar_scanner = __esm({
|
|
139
|
-
"src/traits/constants/mobile/lidar-scanner.ts"() {
|
|
140
|
-
LIDAR_SCANNER_TRAITS = [
|
|
141
|
-
// --- Scanning ---
|
|
142
|
-
"lidar_scan",
|
|
143
|
-
// enable LiDAR scanning session
|
|
144
|
-
"lidar_mesh_capture",
|
|
145
|
-
// capture raw triangle mesh from LiDAR
|
|
146
|
-
"lidar_realtime_mesh",
|
|
147
|
-
// live-updating mesh during scan (ARMeshAnchor stream)
|
|
148
|
-
// --- Mesh Processing ---
|
|
149
|
-
"lidar_mesh_classification",
|
|
150
|
-
// ARKit mesh classification (floor, wall, ceiling, table, seat, window, door)
|
|
151
|
-
"lidar_point_cloud",
|
|
152
|
-
// raw point cloud access (ARPointCloud)
|
|
153
|
-
"lidar_mesh_simplify",
|
|
154
|
-
// reduce mesh complexity for performance
|
|
155
|
-
"lidar_mesh_smooth",
|
|
156
|
-
// smooth captured mesh normals
|
|
157
|
-
// --- Output ---
|
|
158
|
-
"lidar_mesh_to_holo",
|
|
159
|
-
// convert mesh to .holo scene graph with semantic labels
|
|
160
|
-
"lidar_mesh_export",
|
|
161
|
-
// export mesh as USDZ/OBJ/GLB
|
|
162
|
-
// --- Depth ---
|
|
163
|
-
"lidar_depth_map",
|
|
164
|
-
// per-frame depth buffer (ARFrame.sceneDepth)
|
|
165
|
-
"lidar_depth_confidence"
|
|
166
|
-
// per-pixel confidence map for depth data
|
|
167
|
-
];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
// src/traits/constants/mobile/roomplan.ts
|
|
172
|
-
var ROOMPLAN_TRAITS;
|
|
173
|
-
var init_roomplan = __esm({
|
|
174
|
-
"src/traits/constants/mobile/roomplan.ts"() {
|
|
175
|
-
ROOMPLAN_TRAITS = [
|
|
176
|
-
// --- Scanning ---
|
|
177
|
-
"roomplan_scan",
|
|
178
|
-
// marks scene as a RoomPlan capture target (iOS 16+)
|
|
179
|
-
"roomplan_realtime_preview",
|
|
180
|
-
// show live mesh preview during scan
|
|
181
|
-
"roomplan_scan_quality",
|
|
182
|
-
// scan quality level: quick | standard | detailed
|
|
183
|
-
// --- Structural Surfaces ---
|
|
184
|
-
"roomplan_wall",
|
|
185
|
-
// detected wall surface
|
|
186
|
-
"roomplan_floor",
|
|
187
|
-
// detected floor surface
|
|
188
|
-
"roomplan_ceiling",
|
|
189
|
-
// detected ceiling surface
|
|
190
|
-
// --- Openings ---
|
|
191
|
-
"roomplan_door",
|
|
192
|
-
// detected door opening
|
|
193
|
-
"roomplan_window",
|
|
194
|
-
// detected window opening
|
|
195
|
-
"roomplan_opening",
|
|
196
|
-
// generic opening (archway, pass-through)
|
|
197
|
-
// --- Furniture & Fixtures ---
|
|
198
|
-
"roomplan_furniture",
|
|
199
|
-
// generic detected furniture item
|
|
200
|
-
"roomplan_table",
|
|
201
|
-
// classified table
|
|
202
|
-
"roomplan_chair",
|
|
203
|
-
// classified chair / seating
|
|
204
|
-
"roomplan_sofa",
|
|
205
|
-
// classified sofa / couch
|
|
206
|
-
"roomplan_bed",
|
|
207
|
-
// classified bed
|
|
208
|
-
"roomplan_storage",
|
|
209
|
-
// classified storage (cabinet, shelf, dresser)
|
|
210
|
-
"roomplan_appliance",
|
|
211
|
-
// classified appliance (oven, fridge, washer)
|
|
212
|
-
"roomplan_fixture",
|
|
213
|
-
// classified fixture (sink, toilet, bathtub)
|
|
214
|
-
"roomplan_screen",
|
|
215
|
-
// classified screen (TV, monitor)
|
|
216
|
-
"roomplan_fireplace",
|
|
217
|
-
// classified fireplace
|
|
218
|
-
// --- Output ---
|
|
219
|
-
"roomplan_scene_export",
|
|
220
|
-
// export captured room as .holo scene graph
|
|
221
|
-
"roomplan_coordinate_map"
|
|
222
|
-
// map RoomPlan world coordinates to HoloScript space
|
|
223
|
-
];
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
export { AIRPODS_SPATIAL_AUDIO_TRAITS, FACE_TRACKING_TRAITS, IOS_OBJECT_CAPTURE_TRAITS, LIDAR_SCANNER_TRAITS, ROOMPLAN_TRAITS, SHAREPLAY_TRAITS, UWB_POSITIONING_TRAITS, init_airpods_spatial_audio, init_face_tracking, init_ios_object_capture, init_lidar_scanner, init_roomplan, init_shareplay, init_uwb_positioning };
|
|
228
|
-
//# sourceMappingURL=chunk-WB4Z63GG.js.map
|
|
229
|
-
//# sourceMappingURL=chunk-WB4Z63GG.js.map
|