@holoscript/core 8.0.0 → 8.0.2
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 +2 -2
- package/dist/{GLTFPipeline-M7WSSJED.cjs → GLTFPipeline-76QTLF4Z.cjs} +10 -9
- package/dist/{GLTFPipeline-276GE64O.js → GLTFPipeline-ES5YMBGT.js} +6 -5
- package/dist/HoloScriptRuntime-2DDYOPOR.js +10 -0
- package/dist/{HoloScriptRuntime-SXEAEU2N.cjs → HoloScriptRuntime-ZGRR5EB3.cjs} +5 -5
- package/dist/{chunk-JJBE3TIH.cjs → chunk-2IWC4FP7.cjs} +6 -6
- package/dist/{chunk-S4W6Z2MN.js → chunk-2X7NGX3M.js} +3 -3
- package/dist/{chunk-NGKREZ36.js → chunk-3OYVN53V.js} +505 -5
- package/dist/{chunk-GQT4TYKY.cjs → chunk-3OZACAFQ.cjs} +44 -19
- package/dist/{chunk-T2QCTZMO.js → chunk-4SDKXQ4C.js} +3 -3
- package/dist/{chunk-253GBQZY.cjs → chunk-5H2G27PK.cjs} +35 -35
- package/dist/{chunk-C2A5DUMF.cjs → chunk-5NWINHR5.cjs} +35 -35
- package/dist/{chunk-D54CNIAJ.cjs → chunk-7H33U5SM.cjs} +2 -2
- package/dist/{chunk-CXFDRBQU.cjs → chunk-7M3PNU2M.cjs} +7 -7
- package/dist/{chunk-WJIHFLMJ.js → chunk-ADADVMXY.js} +2 -2
- package/dist/{chunk-NHWSN2SD.cjs → chunk-AVJHHUC5.cjs} +17 -17
- package/dist/{chunk-JCLBKPMX.js → chunk-BOVPWH4H.js} +48 -4
- package/dist/{chunk-ZZEI7MV4.js → chunk-CCATWPXM.js} +3 -3
- package/dist/{chunk-NBMHU6SW.js → chunk-CMT5NMMS.js} +3 -3
- package/dist/{chunk-HINXWAOD.cjs → chunk-CR4FMIWL.cjs} +11 -11
- package/dist/{chunk-IZM5VQZD.js → chunk-D3STJ56J.js} +3 -3
- package/dist/{chunk-EUDQTK7N.cjs → chunk-DAKRKDZV.cjs} +27 -38
- package/dist/{chunk-ZBQXLH2L.js → chunk-DHO2YRIM.js} +3 -3
- package/dist/{chunk-RVBHAXFG.js → chunk-DXWOTOUK.js} +16 -11
- package/dist/{chunk-F43YAA34.js → chunk-E47Z63DF.js} +3 -3
- package/dist/{chunk-62FBK3B7.js → chunk-FFAOS5HQ.js} +4 -4
- package/dist/{chunk-UM6C3CGK.js → chunk-FS7BFHFN.js} +28 -3
- package/dist/{chunk-SJBGLS25.cjs → chunk-FXIO6GHT.cjs} +5 -5
- package/dist/{chunk-XUUVDHIF.cjs → chunk-HKEXJUWS.cjs} +48 -3
- package/dist/{chunk-NXZFOPVD.cjs → chunk-HNDK4IQU.cjs} +16 -16
- package/dist/{chunk-SMIWS6DE.cjs → chunk-IELX2OKI.js} +118 -7
- package/dist/{chunk-KH4CNH66.cjs → chunk-IMGDUSTT.cjs} +4 -4
- package/dist/{chunk-LICPB5HZ.cjs → chunk-IUDGEUDO.cjs} +10 -10
- package/dist/{chunk-73FELZVJ.cjs → chunk-IWC5DM2M.cjs} +11 -11
- package/dist/{chunk-PHVRG4I2.js → chunk-J7XZV333.js} +3 -3
- package/dist/{chunk-K4VVR7CN.cjs → chunk-JBNDTXXV.cjs} +15 -15
- package/dist/{chunk-3NFFOWGG.js → chunk-KFIXE2MB.js} +14 -5
- package/dist/{chunk-B4TFTDG4.js → chunk-LCEXRE5Z.js} +3 -3
- package/dist/{chunk-IVSZDECV.js → chunk-LHAXPADA.js} +3 -3
- package/dist/{chunk-7CUEMLDZ.cjs → chunk-LKBTCABN.cjs} +540 -38
- package/dist/{chunk-AYBXB26F.js → chunk-LOGP3JWH.js} +5 -5
- package/dist/{chunk-KVRSTFNH.cjs → chunk-NCWCUZNS.cjs} +8 -8
- package/dist/{chunk-NV4VMVXU.js → chunk-NNFA2C3Y.js} +3 -3
- package/dist/{chunk-HZSPDCXV.cjs → chunk-O7WLJ53D.cjs} +3 -3
- package/dist/{chunk-MGE5Z4GS.js → chunk-OH2FAIVU.js} +3 -3
- package/dist/{chunk-UMABK6SI.js → chunk-PY37LNDP.js} +3 -3
- package/dist/{chunk-23J755AR.js → chunk-QD32ADK6.js} +3 -3
- package/dist/chunk-QRPRIJ2W.js +1525 -0
- package/dist/{chunk-HZTDET3N.js → chunk-R24NNAEG.js} +3 -3
- package/dist/{chunk-W7VDOASB.cjs → chunk-RMTPN3G4.cjs} +5 -5
- package/dist/{chunk-6DPSFNJB.cjs → chunk-ROHLEP2W.cjs} +16 -16
- package/dist/{chunk-3HYYMEXI.cjs → chunk-SMRVK6BI.cjs} +17 -12
- package/dist/{chunk-25IQCHTO.cjs → chunk-TWUXUCEW.cjs} +35 -35
- package/dist/{chunk-KEFNV2WM.cjs → chunk-U7IUS5HJ.cjs} +13 -13
- package/dist/{chunk-3AO425MZ.cjs → chunk-UFZZ7TSN.cjs} +17 -17
- package/dist/chunk-UPXIY52O.cjs +1562 -0
- package/dist/{chunk-BE4UJCQT.js → chunk-UWJHCOH2.js} +3 -3
- package/dist/{chunk-7HIASF7S.cjs → chunk-XB274MW5.cjs} +10 -10
- package/dist/{chunk-RARB3MBR.js → chunk-YDPEHCCI.cjs} +127 -3
- package/dist/{chunk-KJLB4OPV.js → chunk-YN2YWTXW.js} +3 -3
- package/dist/{chunk-IPWSXCCN.js → chunk-YVD3CSO3.js} +3 -3
- package/dist/{chunk-OR4Q2BGL.cjs → chunk-YWOBW2PV.cjs} +15 -15
- package/dist/{chunk-JX7YL6ZE.js → chunk-ZPYP4RBA.js} +4 -4
- package/dist/compiler/android-xr.cjs +5 -5
- package/dist/compiler/android-xr.js +3 -3
- package/dist/compiler/babylon.cjs +4 -4
- package/dist/compiler/babylon.js +3 -3
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +154 -150
- package/dist/compiler/domain-block-utils.js +2 -2
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +4 -4
- package/dist/compiler/godot.js +3 -3
- package/dist/compiler/index.cjs +129 -581
- package/dist/compiler/index.d.ts +12 -0
- package/dist/compiler/index.js +42 -498
- package/dist/compiler/multi-layer.cjs +5 -5
- package/dist/compiler/multi-layer.js +4 -4
- package/dist/compiler/nodetoy.d.ts +69 -0
- package/dist/compiler/openxr.cjs +4 -4
- package/dist/compiler/openxr.js +3 -3
- package/dist/compiler/playcanvas.cjs +4 -4
- package/dist/compiler/playcanvas.js +3 -3
- package/dist/compiler/r3f.cjs +9 -8
- package/dist/compiler/r3f.js +4 -3
- package/dist/compiler/sdf.cjs +5 -5
- package/dist/compiler/sdf.js +3 -3
- package/dist/compiler/unity.cjs +4 -4
- package/dist/compiler/unity.js +3 -3
- package/dist/compiler/unreal.cjs +5 -5
- package/dist/compiler/unreal.js +3 -3
- package/dist/compiler/urdf.cjs +12 -12
- package/dist/compiler/urdf.js +3 -3
- package/dist/compiler/usd-physics.cjs +5 -5
- package/dist/compiler/usd-physics.js +2 -2
- package/dist/compiler/visionos.cjs +4 -4
- package/dist/compiler/visionos.js +3 -3
- package/dist/compiler/vrchat.cjs +5 -5
- package/dist/compiler/vrchat.js +3 -3
- package/dist/compiler/vrr.cjs +5 -5
- package/dist/compiler/vrr.js +3 -3
- package/dist/compiler/wasm.cjs +8 -8
- package/dist/compiler/wasm.js +3 -3
- package/dist/compiler/webgpu.cjs +4 -4
- package/dist/compiler/webgpu.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/dist-ACXG6IH5.cjs +3113 -0
- package/dist/dist-VD4L6V7Q.js +3076 -0
- package/dist/index.cjs +1894 -559
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1448 -113
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +150 -293
- package/dist/runtime.js +82 -23
- package/dist/src-4ROC227P.cjs +2094 -0
- package/dist/src-HCCCSYP7.js +2073 -0
- package/dist/traits/botanical-lotus.cjs +162 -10
- package/dist/traits/botanical-lotus.d.ts +330 -0
- package/dist/traits/botanical-lotus.js +4 -1
- package/dist/traits/index.cjs +610 -455
- package/dist/traits/index.js +9 -5
- package/package.json +23 -23
- package/dist/HoloScriptRuntime-3URVTKPJ.js +0 -10
- package/dist/chunk-VECQYRXL.js +0 -474
- package/dist/chunk-WDT3JTGM.cjs +0 -483
package/dist/compiler/index.cjs
CHANGED
|
@@ -3,56 +3,56 @@
|
|
|
3
3
|
var chunkVJ3L7CHT_cjs = require('../chunk-VJ3L7CHT.cjs');
|
|
4
4
|
var chunkOBIYPYYS_cjs = require('../chunk-OBIYPYYS.cjs');
|
|
5
5
|
var chunkXIVIE43A_cjs = require('../chunk-XIVIE43A.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkO7WLJ53D_cjs = require('../chunk-O7WLJ53D.cjs');
|
|
7
|
+
var chunk7H33U5SM_cjs = require('../chunk-7H33U5SM.cjs');
|
|
8
8
|
var chunkS6YWHCKV_cjs = require('../chunk-S6YWHCKV.cjs');
|
|
9
9
|
var chunkYN6V7R3L_cjs = require('../chunk-YN6V7R3L.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkLKBTCABN_cjs = require('../chunk-LKBTCABN.cjs');
|
|
11
11
|
var chunkEXUP2BUM_cjs = require('../chunk-EXUP2BUM.cjs');
|
|
12
12
|
var chunk5WUNN6ZN_cjs = require('../chunk-5WUNN6ZN.cjs');
|
|
13
13
|
require('../chunk-JC5YBPSF.cjs');
|
|
14
14
|
var chunkBRQJKJGT_cjs = require('../chunk-BRQJKJGT.cjs');
|
|
15
15
|
var chunkI6XZ5DZF_cjs = require('../chunk-I6XZ5DZF.cjs');
|
|
16
16
|
var chunkXUILI4KB_cjs = require('../chunk-XUILI4KB.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkSMRVK6BI_cjs = require('../chunk-SMRVK6BI.cjs');
|
|
18
18
|
require('../chunk-GMP623FG.cjs');
|
|
19
19
|
var chunkCIWWXYHZ_cjs = require('../chunk-CIWWXYHZ.cjs');
|
|
20
20
|
require('../chunk-3FOKASKO.cjs');
|
|
21
|
-
require('../chunk-WDT3JTGM.cjs');
|
|
22
21
|
require('../chunk-4PDEPEQW.cjs');
|
|
23
22
|
require('../chunk-XJAN7CZG.cjs');
|
|
24
23
|
var chunk4V2E7U7Q_cjs = require('../chunk-4V2E7U7Q.cjs');
|
|
25
24
|
require('../chunk-XHIV6326.cjs');
|
|
26
25
|
require('../chunk-R75BSDH7.cjs');
|
|
27
|
-
var
|
|
28
|
-
var
|
|
26
|
+
var chunk2IWC4FP7_cjs = require('../chunk-2IWC4FP7.cjs');
|
|
27
|
+
var chunk7M3PNU2M_cjs = require('../chunk-7M3PNU2M.cjs');
|
|
29
28
|
var chunkIUTY5WQ2_cjs = require('../chunk-IUTY5WQ2.cjs');
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
29
|
+
var chunkIUDGEUDO_cjs = require('../chunk-IUDGEUDO.cjs');
|
|
30
|
+
var chunkUFZZ7TSN_cjs = require('../chunk-UFZZ7TSN.cjs');
|
|
31
|
+
var chunkIWC5DM2M_cjs = require('../chunk-IWC5DM2M.cjs');
|
|
33
32
|
var chunk3WZEJHUQ_cjs = require('../chunk-3WZEJHUQ.cjs');
|
|
34
33
|
var chunkFYSPZT4V_cjs = require('../chunk-FYSPZT4V.cjs');
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
34
|
+
var chunkAVJHHUC5_cjs = require('../chunk-AVJHHUC5.cjs');
|
|
35
|
+
var chunk5NWINHR5_cjs = require('../chunk-5NWINHR5.cjs');
|
|
36
|
+
var chunk3OZACAFQ_cjs = require('../chunk-3OZACAFQ.cjs');
|
|
38
37
|
require('../chunk-UOIGFQXC.cjs');
|
|
39
|
-
|
|
38
|
+
require('../chunk-UPXIY52O.cjs');
|
|
39
|
+
var chunkYWOBW2PV_cjs = require('../chunk-YWOBW2PV.cjs');
|
|
40
40
|
var chunkKQCN6AKJ_cjs = require('../chunk-KQCN6AKJ.cjs');
|
|
41
|
-
var
|
|
41
|
+
var chunkHNDK4IQU_cjs = require('../chunk-HNDK4IQU.cjs');
|
|
42
42
|
require('../chunk-FEWUHQNM.cjs');
|
|
43
43
|
var chunkU44IKGG7_cjs = require('../chunk-U44IKGG7.cjs');
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
44
|
+
var chunkJBNDTXXV_cjs = require('../chunk-JBNDTXXV.cjs');
|
|
45
|
+
var chunkNCWCUZNS_cjs = require('../chunk-NCWCUZNS.cjs');
|
|
46
|
+
var chunkXB274MW5_cjs = require('../chunk-XB274MW5.cjs');
|
|
47
47
|
var chunkS3MDHNKB_cjs = require('../chunk-S3MDHNKB.cjs');
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
48
|
+
var chunkCR4FMIWL_cjs = require('../chunk-CR4FMIWL.cjs');
|
|
49
|
+
var chunk5H2G27PK_cjs = require('../chunk-5H2G27PK.cjs');
|
|
50
|
+
var chunkROHLEP2W_cjs = require('../chunk-ROHLEP2W.cjs');
|
|
51
51
|
require('../chunk-5S7RKFGR.cjs');
|
|
52
52
|
require('../chunk-OIQYIIO3.cjs');
|
|
53
|
-
var
|
|
53
|
+
var chunkTWUXUCEW_cjs = require('../chunk-TWUXUCEW.cjs');
|
|
54
54
|
var chunkAIA52I7T_cjs = require('../chunk-AIA52I7T.cjs');
|
|
55
|
-
require('../chunk-
|
|
55
|
+
require('../chunk-HKEXJUWS.cjs');
|
|
56
56
|
var chunkKKP7JKN4_cjs = require('../chunk-KKP7JKN4.cjs');
|
|
57
57
|
var chunk5FSKKMR7_cjs = require('../chunk-5FSKKMR7.cjs');
|
|
58
58
|
require('../chunk-GTU2Z2WW.cjs');
|
|
@@ -66,466 +66,10 @@ require('../chunk-6EX3I5P4.cjs');
|
|
|
66
66
|
var chunkGJNCFRJU_cjs = require('../chunk-GJNCFRJU.cjs');
|
|
67
67
|
require('../chunk-TVHSPJ4N.cjs');
|
|
68
68
|
require('../chunk-ILRBGFVD.cjs');
|
|
69
|
-
|
|
69
|
+
require('../chunk-E7JP3BS3.cjs');
|
|
70
70
|
var chunkHCCQLAA4_cjs = require('../chunk-HCCQLAA4.cjs');
|
|
71
71
|
var ans = require('@holoscript/core-types/ans');
|
|
72
72
|
|
|
73
|
-
// src/compiler/Native2DCompiler.ts
|
|
74
|
-
var Native2DCompiler_exports = {};
|
|
75
|
-
chunkHCCQLAA4_cjs.__export(Native2DCompiler_exports, {
|
|
76
|
-
Native2DCompiler: () => exports.Native2DCompiler
|
|
77
|
-
});
|
|
78
|
-
exports.Native2DCompiler = void 0;
|
|
79
|
-
var init_Native2DCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
80
|
-
"src/compiler/Native2DCompiler.ts"() {
|
|
81
|
-
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
82
|
-
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
83
|
-
exports.Native2DCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
84
|
-
constructor() {
|
|
85
|
-
super(...arguments);
|
|
86
|
-
this.compilerName = "Native2DCompiler";
|
|
87
|
-
// ============================================================================
|
|
88
|
-
// REACT GENERATION
|
|
89
|
-
// ============================================================================
|
|
90
|
-
/** Collected during node traversal — used to generate imports and hooks */
|
|
91
|
-
this._slotImports = /* @__PURE__ */ new Map();
|
|
92
|
-
this._uiImports = /* @__PURE__ */ new Set();
|
|
93
|
-
this._stateFields = /* @__PURE__ */ new Map();
|
|
94
|
-
this._fetchCalls = [];
|
|
95
|
-
this._options = {};
|
|
96
|
-
}
|
|
97
|
-
// @ts-expect-error During migration
|
|
98
|
-
compile(composition, agentToken, outputPath, options) {
|
|
99
|
-
this.validateCompilerAccess(agentToken, outputPath);
|
|
100
|
-
const isReact = options?.format === "react";
|
|
101
|
-
const elements = composition.ui?.elements || composition.objects || [];
|
|
102
|
-
if (isReact) {
|
|
103
|
-
const code2 = this.generateReactComponent(composition.name, elements, composition, options);
|
|
104
|
-
return this.withTripleOutputIfRequested(composition, code2, options);
|
|
105
|
-
}
|
|
106
|
-
const code = this.generateHTMLPage(composition.name, elements, composition);
|
|
107
|
-
return this.withTripleOutputIfRequested(composition, code, options);
|
|
108
|
-
}
|
|
109
|
-
generateReactComponent(name, objects, composition, options) {
|
|
110
|
-
this._slotImports.clear();
|
|
111
|
-
this._uiImports.clear();
|
|
112
|
-
this._stateFields.clear();
|
|
113
|
-
this._fetchCalls = [];
|
|
114
|
-
this._options = options || {};
|
|
115
|
-
const safeName = name.replace(/[^a-zA-Z0-9]/g, "");
|
|
116
|
-
if (composition?.state?.properties) {
|
|
117
|
-
for (const prop of composition.state.properties) {
|
|
118
|
-
this._stateFields.set(prop.key, prop.value ?? null);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
const jsx = objects.map((obj) => this.generateReactNode(obj)).join("\n ");
|
|
122
|
-
const imports = [];
|
|
123
|
-
const reactImports = /* @__PURE__ */ new Set();
|
|
124
|
-
if (this._stateFields.size > 0) reactImports.add("useState");
|
|
125
|
-
if (this._fetchCalls.length > 0) reactImports.add("useEffect");
|
|
126
|
-
imports.push(
|
|
127
|
-
reactImports.size > 0 ? `import React, { ${[...reactImports].join(", ")} } from 'react';` : `import React from 'react';`
|
|
128
|
-
);
|
|
129
|
-
if (this._uiImports.size > 0) {
|
|
130
|
-
imports.push(`import { ${[...this._uiImports].join(", ")} } from '@holoscript/ui';`);
|
|
131
|
-
}
|
|
132
|
-
for (const [, slot] of this._slotImports) {
|
|
133
|
-
imports.push(`import { ${slot.component} } from '${slot.importPath}';`);
|
|
134
|
-
}
|
|
135
|
-
const stateHooks = [];
|
|
136
|
-
for (const [key, value] of this._stateFields) {
|
|
137
|
-
const capitalKey = key.charAt(0).toUpperCase() + key.slice(1);
|
|
138
|
-
const initValue = JSON.stringify(value);
|
|
139
|
-
stateHooks.push(
|
|
140
|
-
` const [${key}, set${capitalKey}] = useState(${initValue === void 0 ? "null" : initValue});`
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
const fetchEffects = [];
|
|
144
|
-
for (const f of this._fetchCalls) {
|
|
145
|
-
fetchEffects.push(` useEffect(() => {
|
|
146
|
-
fetch(\`${f.endpoint}\`${f.method !== "GET" ? `, { method: '${f.method}' }` : ""})
|
|
147
|
-
.then(r => r.json())
|
|
148
|
-
.then(set${f.name.charAt(0).toUpperCase() + f.name.slice(1)})
|
|
149
|
-
.catch(console.error);
|
|
150
|
-
}, []);`);
|
|
151
|
-
}
|
|
152
|
-
return `${imports.join("\n")}
|
|
153
|
-
|
|
154
|
-
// @generated by HoloScript Native2DCompiler \u2014 DO NOT EDIT
|
|
155
|
-
export function ${safeName}Component() {
|
|
156
|
-
${stateHooks.join("\n")}
|
|
157
|
-
${fetchEffects.join("\n")}
|
|
158
|
-
|
|
159
|
-
return (
|
|
160
|
-
<div className="holoscript-2d-root w-full h-full">
|
|
161
|
-
${jsx}
|
|
162
|
-
</div>
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export default ${safeName}Component;
|
|
167
|
-
`;
|
|
168
|
-
}
|
|
169
|
-
generateReactNode(obj) {
|
|
170
|
-
const traits = this.extractTraits(obj);
|
|
171
|
-
if (traits.slot) {
|
|
172
|
-
const slotName = traits.slot.name || obj.name || "Slot";
|
|
173
|
-
const configuredSlot = this._options.slots?.[String(slotName)];
|
|
174
|
-
const component = traits.slot.component || configuredSlot?.component || slotName;
|
|
175
|
-
const importPath = traits.slot.import || configuredSlot?.importPath || `@/components/${component}`;
|
|
176
|
-
this._slotImports.set(slotName, { component, importPath });
|
|
177
|
-
const propsStr = traits.slot.props ? ` {...${JSON.stringify(traits.slot.props)}}` : "";
|
|
178
|
-
return `<div data-holo-slot="${slotName}">
|
|
179
|
-
<${component}${propsStr} />
|
|
180
|
-
</div>`;
|
|
181
|
-
}
|
|
182
|
-
if (traits.fetch) {
|
|
183
|
-
const name = traits.fetch.into || "data";
|
|
184
|
-
const endpoint = traits.fetch.endpoint || "/api/data";
|
|
185
|
-
const method = traits.fetch.method || "GET";
|
|
186
|
-
this._fetchCalls.push({ name, endpoint, method });
|
|
187
|
-
if (!this._stateFields.has(name)) {
|
|
188
|
-
this._stateFields.set(name, null);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
let tag = traits.theme?.tag || traits.panel?.tag || (typeof obj.type === "string" ? obj.type.toLowerCase() : void 0) || "div";
|
|
192
|
-
if ([
|
|
193
|
-
"nav",
|
|
194
|
-
"section",
|
|
195
|
-
"main",
|
|
196
|
-
"footer",
|
|
197
|
-
"form",
|
|
198
|
-
"style",
|
|
199
|
-
"a",
|
|
200
|
-
"header",
|
|
201
|
-
"h1",
|
|
202
|
-
"h2",
|
|
203
|
-
"h3"
|
|
204
|
-
].includes(tag)) ; else if (tag === "container") {
|
|
205
|
-
tag = "div";
|
|
206
|
-
} else if (traits.link || tag === "link") {
|
|
207
|
-
tag = "a";
|
|
208
|
-
} else if (traits.button || tag === "button") {
|
|
209
|
-
tag = "button";
|
|
210
|
-
} else if (traits.image || tag === "image") {
|
|
211
|
-
tag = "img";
|
|
212
|
-
} else if (traits.input || tag === "input") {
|
|
213
|
-
tag = "input";
|
|
214
|
-
} else if (traits.text || tag === "text") {
|
|
215
|
-
tag = this.mapTextVariantToTag(traits.text?.variant || "body");
|
|
216
|
-
} else {
|
|
217
|
-
tag = "div";
|
|
218
|
-
}
|
|
219
|
-
const styles = this.buildStyles(traits);
|
|
220
|
-
const classes = this.buildClasses(traits);
|
|
221
|
-
let props = ``;
|
|
222
|
-
if (traits.theme?.className) {
|
|
223
|
-
classes.push(traits.theme.className);
|
|
224
|
-
}
|
|
225
|
-
if (traits.theme?.id) {
|
|
226
|
-
props += ` id="${traits.theme.id}"`;
|
|
227
|
-
}
|
|
228
|
-
const combinedStyles = { ...styles };
|
|
229
|
-
if (traits.theme?.style) {
|
|
230
|
-
traits.theme.style.split(";").forEach((rule) => {
|
|
231
|
-
const [key, ...valueParts] = rule.split(":");
|
|
232
|
-
const value = valueParts.join(":");
|
|
233
|
-
if (key && value) {
|
|
234
|
-
const camelKey = key.trim().replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
235
|
-
combinedStyles[camelKey] = value.trim();
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
if (Object.keys(combinedStyles).length > 0) {
|
|
240
|
-
props += ` style={${JSON.stringify(combinedStyles)}}`;
|
|
241
|
-
}
|
|
242
|
-
if (classes.length > 0) {
|
|
243
|
-
props += ` className="${classes.join(" ")}"`;
|
|
244
|
-
}
|
|
245
|
-
if (traits.theme?.attributes) {
|
|
246
|
-
try {
|
|
247
|
-
const parsedAttrs = chunkE7JP3BS3_cjs.readJson(traits.theme.attributes);
|
|
248
|
-
for (const [key, value] of Object.entries(parsedAttrs)) {
|
|
249
|
-
props += ` ${key}="${value}"`;
|
|
250
|
-
}
|
|
251
|
-
} catch (e) {
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
if (traits.button?.onClick || traits.form?.onSubmit) {
|
|
255
|
-
const action = traits.button?.onClick || traits.form?.onSubmit;
|
|
256
|
-
if (action) {
|
|
257
|
-
const cleanAction = action.replace(/["']/g, "'");
|
|
258
|
-
if (cleanAction.includes("navigate")) {
|
|
259
|
-
props += ` onClick={() => ${cleanAction}}`;
|
|
260
|
-
} else if (cleanAction.includes("submit")) {
|
|
261
|
-
props += ` onSubmit={${cleanAction}}`;
|
|
262
|
-
} else if (cleanAction.includes("window.open")) {
|
|
263
|
-
props += ` onClick={() => ${cleanAction}}`;
|
|
264
|
-
} else {
|
|
265
|
-
props += ` onClick={() => console.log('${cleanAction}')}`;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
if (traits.image?.src) props += ` src="${traits.image.src}"`;
|
|
270
|
-
if (traits.image?.alt) props += ` alt="${traits.image.alt}"`;
|
|
271
|
-
if (traits.link?.href) props += ` href="${traits.link.href}"`;
|
|
272
|
-
if (traits.input?.placeholder) props += ` placeholder="${traits.input.placeholder}"`;
|
|
273
|
-
if (traits.input?.type) props += ` type="${traits.input.type}"`;
|
|
274
|
-
if (traits.input?.required) props += ` required`;
|
|
275
|
-
if (traits.button?.type) props += ` type="${traits.button.type}"`;
|
|
276
|
-
const childrenMarkup = (obj.children || obj.objects || []).map((child) => this.generateReactNode(child)).join("\n");
|
|
277
|
-
const content = traits.text?.content || traits.button?.content || traits.link?.content || traits.icon?.name;
|
|
278
|
-
let safeContent = "";
|
|
279
|
-
if (content) {
|
|
280
|
-
safeContent = `{\`${content.replace(/`/g, "\\`").replace(/\$/g, "\\$")}\`}`;
|
|
281
|
-
}
|
|
282
|
-
if (tag === "style") {
|
|
283
|
-
const escapedStyle = (content || "").replace(/`/g, "\\`").replace(/\$/g, "\\$");
|
|
284
|
-
return `<style dangerouslySetInnerHTML={{ __html: \`${escapedStyle}\` }} />`;
|
|
285
|
-
}
|
|
286
|
-
if (tag === "img" || tag === "input") {
|
|
287
|
-
return `<${tag}${props} />`;
|
|
288
|
-
}
|
|
289
|
-
return `<${tag}${props}>
|
|
290
|
-
${safeContent}
|
|
291
|
-
${childrenMarkup}
|
|
292
|
-
</${tag}>`;
|
|
293
|
-
}
|
|
294
|
-
// ============================================================================
|
|
295
|
-
// HTML GENERATION
|
|
296
|
-
// ============================================================================
|
|
297
|
-
generateHTMLPage(name, objects, composition) {
|
|
298
|
-
const content = objects.map((obj) => this.generateHTMLNode(obj)).join("\n ");
|
|
299
|
-
let bgColor = "#ffffff";
|
|
300
|
-
let color = "#000000";
|
|
301
|
-
if (composition.environment?.properties) {
|
|
302
|
-
const themeProp = composition.environment.properties.find((p) => p.key === "theme");
|
|
303
|
-
const bgProp = composition.environment.properties.find((p) => p.key === "backgroundColor");
|
|
304
|
-
if (themeProp?.value === "dark" || composition.traits?.some((t) => t.name === "theme" && t.config?.dark)) {
|
|
305
|
-
bgColor = bgProp?.value || "#050510";
|
|
306
|
-
color = "#ffffff";
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
return `<!DOCTYPE html>
|
|
310
|
-
<html lang="en">
|
|
311
|
-
<head>
|
|
312
|
-
<meta charset="UTF-8">
|
|
313
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
314
|
-
<title>${name}</title>
|
|
315
|
-
<script src="https://cdn.tailwindcss.com"></script>
|
|
316
|
-
<style>
|
|
317
|
-
body { margin: 0; padding: 0; background-color: ${bgColor}; color: ${color}; font-family: system-ui, -apple-system, sans-serif; }
|
|
318
|
-
/* Basic resets and custom trait animations to mirror React Framer variants */
|
|
319
|
-
.glow-btn:hover { box-shadow: 0 0 15px rgba(255,255,255,0.5); }
|
|
320
|
-
.lift-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
|
|
321
|
-
.lift-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
|
|
322
|
-
</style>
|
|
323
|
-
</head>
|
|
324
|
-
<body>
|
|
325
|
-
<div id="holoscript-native-root">
|
|
326
|
-
${content}
|
|
327
|
-
</div>
|
|
328
|
-
<script>
|
|
329
|
-
function navigate(path) { window.location.href = path; }
|
|
330
|
-
function submitNewsletter(e) { e.preventDefault(); alert('Subscribed!'); }
|
|
331
|
-
</script>
|
|
332
|
-
</body>
|
|
333
|
-
</html>`;
|
|
334
|
-
}
|
|
335
|
-
generateHTMLNode(obj) {
|
|
336
|
-
const node = obj;
|
|
337
|
-
const traits = this.extractTraits(obj);
|
|
338
|
-
const nodeType = typeof node.type === "string" ? node.type.toLowerCase() : void 0;
|
|
339
|
-
let tag = traits.theme?.tag || traits.panel?.tag || nodeType || "div";
|
|
340
|
-
if ([
|
|
341
|
-
"nav",
|
|
342
|
-
"section",
|
|
343
|
-
"main",
|
|
344
|
-
"footer",
|
|
345
|
-
"form",
|
|
346
|
-
"style",
|
|
347
|
-
"a",
|
|
348
|
-
"header",
|
|
349
|
-
"h1",
|
|
350
|
-
"h2",
|
|
351
|
-
"h3"
|
|
352
|
-
].includes(tag)) ; else if (tag === "container") {
|
|
353
|
-
tag = "div";
|
|
354
|
-
} else if (traits.link || tag === "link") {
|
|
355
|
-
tag = "a";
|
|
356
|
-
} else if (traits.button || tag === "button") {
|
|
357
|
-
tag = "button";
|
|
358
|
-
} else if (traits.image || tag === "image") {
|
|
359
|
-
tag = "img";
|
|
360
|
-
} else if (traits.input || tag === "input") {
|
|
361
|
-
tag = "input";
|
|
362
|
-
} else if (traits.text || tag === "text") {
|
|
363
|
-
tag = this.mapTextVariantToTag(traits.text?.variant || "body");
|
|
364
|
-
} else {
|
|
365
|
-
tag = "div";
|
|
366
|
-
}
|
|
367
|
-
const styles = this.buildStyles(traits);
|
|
368
|
-
const classes = this.buildClasses(traits);
|
|
369
|
-
let props = ``;
|
|
370
|
-
if (traits.theme?.className) {
|
|
371
|
-
classes.push(traits.theme.className);
|
|
372
|
-
}
|
|
373
|
-
if (traits.theme?.id) {
|
|
374
|
-
props += ` id="${traits.theme.id}"`;
|
|
375
|
-
}
|
|
376
|
-
if (Object.keys(styles).length > 0 || traits.theme?.style) {
|
|
377
|
-
let styleStr = Object.entries(styles).map(([k, v]) => `${this.camelToKebab(k)}: ${v}`).join("; ");
|
|
378
|
-
if (traits.theme?.style) {
|
|
379
|
-
styleStr += (styleStr ? "; " : "") + traits.theme.style;
|
|
380
|
-
}
|
|
381
|
-
props += ` style="${styleStr}"`;
|
|
382
|
-
}
|
|
383
|
-
if (classes.length > 0) {
|
|
384
|
-
props += ` class="${classes.join(" ")}"`;
|
|
385
|
-
}
|
|
386
|
-
if (traits.theme?.attributes) {
|
|
387
|
-
try {
|
|
388
|
-
const parsedAttrs = chunkE7JP3BS3_cjs.readJson(traits.theme.attributes);
|
|
389
|
-
for (const [key, value] of Object.entries(parsedAttrs)) {
|
|
390
|
-
props += ` ${key}="${value}"`;
|
|
391
|
-
}
|
|
392
|
-
} catch (e) {
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
if (traits.button?.onClick) props += ` onclick="${traits.button.onClick}"`;
|
|
396
|
-
if (traits.form?.onSubmit) props += ` onsubmit="${traits.form.onSubmit}"`;
|
|
397
|
-
if (traits.image?.src) props += ` src="${traits.image.src}"`;
|
|
398
|
-
if (traits.image?.alt) props += ` alt="${traits.image.alt}"`;
|
|
399
|
-
if (traits.link?.href) props += ` href="${traits.link.href}"`;
|
|
400
|
-
if (traits.input?.placeholder) props += ` placeholder="${traits.input.placeholder}"`;
|
|
401
|
-
if (traits.input?.type) props += ` type="${traits.input.type}"`;
|
|
402
|
-
if (traits.input?.required) props += ` required`;
|
|
403
|
-
const children = node.children || node.objects || [];
|
|
404
|
-
const childrenMarkup = children.map((child) => this.generateHTMLNode(child)).join("\n");
|
|
405
|
-
const content = traits.text?.content || traits.button?.content || traits.link?.content || traits.icon?.name;
|
|
406
|
-
if (tag === "img" || tag === "input") {
|
|
407
|
-
return `<${tag}${props}>`;
|
|
408
|
-
}
|
|
409
|
-
return `<${tag}${props}>
|
|
410
|
-
${content ? content : ""}
|
|
411
|
-
${childrenMarkup}
|
|
412
|
-
</${tag}>`;
|
|
413
|
-
}
|
|
414
|
-
// ============================================================================
|
|
415
|
-
// UTILITIES
|
|
416
|
-
// ============================================================================
|
|
417
|
-
extractTraits(obj) {
|
|
418
|
-
const map = {};
|
|
419
|
-
const node = obj;
|
|
420
|
-
if (!node.traits) return map;
|
|
421
|
-
for (const t of node.traits) {
|
|
422
|
-
map[t.name] = t.config || {};
|
|
423
|
-
if (t.name === "tailwind" && typeof t.config === "string") {
|
|
424
|
-
map[t.name] = { classes: t.config };
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
return map;
|
|
428
|
-
}
|
|
429
|
-
mapTextVariantToTag(variant) {
|
|
430
|
-
switch (variant) {
|
|
431
|
-
case "h1":
|
|
432
|
-
return "h1";
|
|
433
|
-
case "h2":
|
|
434
|
-
return "h2";
|
|
435
|
-
case "h3":
|
|
436
|
-
return "h3";
|
|
437
|
-
case "subtitle":
|
|
438
|
-
return "h4";
|
|
439
|
-
case "caption":
|
|
440
|
-
return "span";
|
|
441
|
-
case "emoji":
|
|
442
|
-
return "span";
|
|
443
|
-
default:
|
|
444
|
-
return "p";
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
buildStyles(traits) {
|
|
448
|
-
const styles = {};
|
|
449
|
-
const layout = traits.layout;
|
|
450
|
-
const theme = traits.theme;
|
|
451
|
-
if (layout) {
|
|
452
|
-
if (layout.flex) {
|
|
453
|
-
styles.display = "flex";
|
|
454
|
-
styles.flexDirection = layout.flex === "row" ? "row" : "column";
|
|
455
|
-
}
|
|
456
|
-
if (layout.grid) {
|
|
457
|
-
styles.display = "grid";
|
|
458
|
-
styles.gridTemplateColumns = `repeat(${layout.columns || 1}, minmax(0, 1fr))`;
|
|
459
|
-
}
|
|
460
|
-
if (layout.justify) styles.justifyContent = layout.justify;
|
|
461
|
-
if (layout.align) styles.alignItems = layout.align;
|
|
462
|
-
if (layout.gap) styles.gap = typeof layout.gap === "number" ? `${layout.gap}px` : layout.gap;
|
|
463
|
-
if (layout.padding)
|
|
464
|
-
styles.padding = typeof layout.padding === "number" ? `${layout.padding}px` : layout.padding;
|
|
465
|
-
}
|
|
466
|
-
if (theme) {
|
|
467
|
-
if (theme.backgroundColor) styles.backgroundColor = theme.backgroundColor;
|
|
468
|
-
if (theme.color) styles.color = theme.color;
|
|
469
|
-
if (theme.padding)
|
|
470
|
-
styles.padding = typeof theme.padding === "number" ? `${theme.padding}px` : theme.padding;
|
|
471
|
-
if (theme.borderRadius)
|
|
472
|
-
styles.borderRadius = typeof theme.borderRadius === "number" ? `${theme.borderRadius}px` : theme.borderRadius;
|
|
473
|
-
if (theme.border) styles.border = theme.border;
|
|
474
|
-
if (theme.borderTop) styles.borderTop = theme.borderTop;
|
|
475
|
-
}
|
|
476
|
-
if (traits.text) {
|
|
477
|
-
if (traits.text.align) styles.textAlign = traits.text.align;
|
|
478
|
-
if (traits.text.maxWidth)
|
|
479
|
-
styles.maxWidth = typeof traits.text.maxWidth === "number" ? `${traits.text.maxWidth}px` : traits.text.maxWidth;
|
|
480
|
-
if (traits.text.weight) styles.fontWeight = traits.text.weight;
|
|
481
|
-
}
|
|
482
|
-
return styles;
|
|
483
|
-
}
|
|
484
|
-
buildClasses(traits) {
|
|
485
|
-
const classes = [];
|
|
486
|
-
if (traits.text) {
|
|
487
|
-
if (traits.text.variant === "h1") classes.push("text-5xl font-bold tracking-tight");
|
|
488
|
-
if (traits.text.variant === "h2") classes.push("text-3xl font-bold");
|
|
489
|
-
if (traits.text.variant === "h3") classes.push("text-xl font-semibold");
|
|
490
|
-
if (traits.text.variant === "subtitle") classes.push("text-xl text-gray-400");
|
|
491
|
-
if (traits.text.variant === "caption") classes.push("text-sm text-gray-500");
|
|
492
|
-
if (traits.text.variant === "emoji") classes.push("text-2xl");
|
|
493
|
-
}
|
|
494
|
-
if (traits.button) {
|
|
495
|
-
classes.push("px-4 py-2 rounded-lg font-medium transition-all");
|
|
496
|
-
if (traits.button.variant === "primary")
|
|
497
|
-
classes.push("bg-blue-600 hover:bg-blue-700 text-white");
|
|
498
|
-
if (traits.button.variant === "outline")
|
|
499
|
-
classes.push("border border-gray-600 hover:bg-gray-800 text-white");
|
|
500
|
-
if (traits.button.variant === "ghost")
|
|
501
|
-
classes.push("hover:bg-gray-800 text-gray-300 hover:text-white");
|
|
502
|
-
if (traits.button.variant === "glow")
|
|
503
|
-
classes.push("bg-indigo-600 text-white glow-btn hover:bg-indigo-500");
|
|
504
|
-
if (traits.button.size === "lg") classes.push("px-6 py-3 text-lg");
|
|
505
|
-
if (traits.button.size === "sm") classes.push("px-3 py-1 text-sm");
|
|
506
|
-
}
|
|
507
|
-
if (traits.card) {
|
|
508
|
-
if (traits.card.shadow === "md") classes.push("shadow-md");
|
|
509
|
-
if (traits.card.shadow === "lg") classes.push("shadow-lg");
|
|
510
|
-
if (traits.card.hover === "glow") classes.push("lift-card");
|
|
511
|
-
}
|
|
512
|
-
if (traits.input) {
|
|
513
|
-
classes.push(
|
|
514
|
-
"px-4 py-2 rounded-lg border border-gray-700 bg-gray-900 text-white focus:ring-2 focus:ring-indigo-500 outline-none"
|
|
515
|
-
);
|
|
516
|
-
}
|
|
517
|
-
if (traits.tailwind?.classes) {
|
|
518
|
-
classes.push(traits.tailwind.classes);
|
|
519
|
-
}
|
|
520
|
-
return classes;
|
|
521
|
-
}
|
|
522
|
-
camelToKebab(str) {
|
|
523
|
-
return str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
|
|
529
73
|
// src/compiler/NextJSAPICompiler.ts
|
|
530
74
|
var NextJSAPICompiler_exports = {};
|
|
531
75
|
chunkHCCQLAA4_cjs.__export(NextJSAPICompiler_exports, {
|
|
@@ -1755,7 +1299,7 @@ function registerBuiltinDialects() {
|
|
|
1755
1299
|
],
|
|
1756
1300
|
riskTier: "standard",
|
|
1757
1301
|
factory: (opts) => {
|
|
1758
|
-
const { UnityCompiler: UnityCompiler2 } = (
|
|
1302
|
+
const { UnityCompiler: UnityCompiler2 } = (chunkTWUXUCEW_cjs.init_UnityCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkTWUXUCEW_cjs.UnityCompiler_exports));
|
|
1759
1303
|
return new UnityCompiler2(opts);
|
|
1760
1304
|
},
|
|
1761
1305
|
outputExtensions: [".cs"]
|
|
@@ -1780,7 +1324,7 @@ function registerBuiltinDialects() {
|
|
|
1780
1324
|
],
|
|
1781
1325
|
riskTier: "standard",
|
|
1782
1326
|
factory: (opts) => {
|
|
1783
|
-
const { UnrealCompiler } = (
|
|
1327
|
+
const { UnrealCompiler } = (chunkAVJHHUC5_cjs.init_UnrealCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkAVJHHUC5_cjs.UnrealCompiler_exports));
|
|
1784
1328
|
return new UnrealCompiler(opts);
|
|
1785
1329
|
},
|
|
1786
1330
|
outputExtensions: [".cpp", ".h"]
|
|
@@ -1802,7 +1346,7 @@ function registerBuiltinDialects() {
|
|
|
1802
1346
|
],
|
|
1803
1347
|
riskTier: "standard",
|
|
1804
1348
|
factory: (opts) => {
|
|
1805
|
-
const { GodotCompiler: GodotCompiler2 } = (
|
|
1349
|
+
const { GodotCompiler: GodotCompiler2 } = (chunk5NWINHR5_cjs.init_GodotCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunk5NWINHR5_cjs.GodotCompiler_exports));
|
|
1806
1350
|
return new GodotCompiler2(opts);
|
|
1807
1351
|
},
|
|
1808
1352
|
outputExtensions: [".gd", ".tscn"]
|
|
@@ -1829,7 +1373,7 @@ function registerBuiltinDialects() {
|
|
|
1829
1373
|
],
|
|
1830
1374
|
riskTier: "standard",
|
|
1831
1375
|
factory: (opts) => {
|
|
1832
|
-
const { R3FCompiler: R3FCompiler2 } = (
|
|
1376
|
+
const { R3FCompiler: R3FCompiler2 } = (chunk3OZACAFQ_cjs.init_R3FCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunk3OZACAFQ_cjs.R3FCompiler_exports));
|
|
1833
1377
|
return new R3FCompiler2(opts);
|
|
1834
1378
|
},
|
|
1835
1379
|
outputExtensions: [".tsx", ".jsx"]
|
|
@@ -1849,7 +1393,7 @@ function registerBuiltinDialects() {
|
|
|
1849
1393
|
],
|
|
1850
1394
|
riskTier: "standard",
|
|
1851
1395
|
factory: (opts) => {
|
|
1852
|
-
const { BabylonCompiler: BabylonCompiler2 } = (
|
|
1396
|
+
const { BabylonCompiler: BabylonCompiler2 } = (chunkROHLEP2W_cjs.init_BabylonCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkROHLEP2W_cjs.BabylonCompiler_exports));
|
|
1853
1397
|
return new BabylonCompiler2(opts);
|
|
1854
1398
|
},
|
|
1855
1399
|
outputExtensions: [".ts", ".js"]
|
|
@@ -1861,7 +1405,7 @@ function registerBuiltinDialects() {
|
|
|
1861
1405
|
supportedTraits: ["physics", "collidable", "audio", "animation", "material"],
|
|
1862
1406
|
riskTier: "standard",
|
|
1863
1407
|
factory: (opts) => {
|
|
1864
|
-
const { PlayCanvasCompiler: PlayCanvasCompiler2 } = (
|
|
1408
|
+
const { PlayCanvasCompiler: PlayCanvasCompiler2 } = (chunkYWOBW2PV_cjs.init_PlayCanvasCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkYWOBW2PV_cjs.PlayCanvasCompiler_exports));
|
|
1865
1409
|
return new PlayCanvasCompiler2(opts);
|
|
1866
1410
|
},
|
|
1867
1411
|
outputExtensions: [".js"]
|
|
@@ -1883,7 +1427,7 @@ function registerBuiltinDialects() {
|
|
|
1883
1427
|
],
|
|
1884
1428
|
riskTier: "standard",
|
|
1885
1429
|
factory: (opts) => {
|
|
1886
|
-
const { ThreeJSCompiler } = (
|
|
1430
|
+
const { ThreeJSCompiler } = (chunkLKBTCABN_cjs.init_ThreeJSCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkLKBTCABN_cjs.ThreeJSCompiler_exports));
|
|
1887
1431
|
return new ThreeJSCompiler(opts);
|
|
1888
1432
|
},
|
|
1889
1433
|
outputExtensions: [".ts"]
|
|
@@ -1903,7 +1447,7 @@ function registerBuiltinDialects() {
|
|
|
1903
1447
|
],
|
|
1904
1448
|
riskTier: "standard",
|
|
1905
1449
|
factory: (opts) => {
|
|
1906
|
-
const { OpenXRCompiler: OpenXRCompiler2 } = (
|
|
1450
|
+
const { OpenXRCompiler: OpenXRCompiler2 } = (chunkCR4FMIWL_cjs.init_OpenXRCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkCR4FMIWL_cjs.OpenXRCompiler_exports));
|
|
1907
1451
|
return new OpenXRCompiler2(opts);
|
|
1908
1452
|
},
|
|
1909
1453
|
outputExtensions: [".cpp", ".h"]
|
|
@@ -1924,7 +1468,7 @@ function registerBuiltinDialects() {
|
|
|
1924
1468
|
],
|
|
1925
1469
|
riskTier: "standard",
|
|
1926
1470
|
factory: (opts) => {
|
|
1927
|
-
const { VRChatCompiler: VRChatCompiler2 } = (
|
|
1471
|
+
const { VRChatCompiler: VRChatCompiler2 } = (chunk5H2G27PK_cjs.init_VRChatCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunk5H2G27PK_cjs.VRChatCompiler_exports));
|
|
1928
1472
|
return new VRChatCompiler2(opts);
|
|
1929
1473
|
},
|
|
1930
1474
|
outputExtensions: [".cs"]
|
|
@@ -1943,7 +1487,7 @@ function registerBuiltinDialects() {
|
|
|
1943
1487
|
],
|
|
1944
1488
|
riskTier: "standard",
|
|
1945
1489
|
factory: (opts) => {
|
|
1946
|
-
const { VisionOSCompiler: VisionOSCompiler2 } = (
|
|
1490
|
+
const { VisionOSCompiler: VisionOSCompiler2 } = (chunkJBNDTXXV_cjs.init_VisionOSCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkJBNDTXXV_cjs.VisionOSCompiler_exports));
|
|
1947
1491
|
return new VisionOSCompiler2(opts);
|
|
1948
1492
|
},
|
|
1949
1493
|
outputExtensions: [".swift"]
|
|
@@ -1955,7 +1499,7 @@ function registerBuiltinDialects() {
|
|
|
1955
1499
|
supportedTraits: ["physics", "hand_tracking", "spatial_anchor", "input", "collidable"],
|
|
1956
1500
|
riskTier: "standard",
|
|
1957
1501
|
factory: (opts) => {
|
|
1958
|
-
const { AndroidXRCompiler: AndroidXRCompiler2 } = (
|
|
1502
|
+
const { AndroidXRCompiler: AndroidXRCompiler2 } = (chunkHNDK4IQU_cjs.init_AndroidXRCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkHNDK4IQU_cjs.AndroidXRCompiler_exports));
|
|
1959
1503
|
return new AndroidXRCompiler2(opts);
|
|
1960
1504
|
},
|
|
1961
1505
|
outputExtensions: [".kt"]
|
|
@@ -2005,7 +1549,7 @@ function registerBuiltinDialects() {
|
|
|
2005
1549
|
supportedTraits: ["physics", "animation", "audio"],
|
|
2006
1550
|
riskTier: "high",
|
|
2007
1551
|
factory: (opts) => {
|
|
2008
|
-
const { WASMCompiler: WASMCompiler2 } = (
|
|
1552
|
+
const { WASMCompiler: WASMCompiler2 } = (chunk2IWC4FP7_cjs.init_WASMCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunk2IWC4FP7_cjs.WASMCompiler_exports));
|
|
2009
1553
|
return new WASMCompiler2(opts);
|
|
2010
1554
|
},
|
|
2011
1555
|
outputExtensions: [".wasm", ".js"]
|
|
@@ -2017,7 +1561,7 @@ function registerBuiltinDialects() {
|
|
|
2017
1561
|
supportedTraits: ["physics", "particles", "fluid", "material", "compute"],
|
|
2018
1562
|
riskTier: "standard",
|
|
2019
1563
|
factory: (opts) => {
|
|
2020
|
-
const { WebGPUCompiler: WebGPUCompiler2 } = (
|
|
1564
|
+
const { WebGPUCompiler: WebGPUCompiler2 } = (chunk7M3PNU2M_cjs.init_WebGPUCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunk7M3PNU2M_cjs.WebGPUCompiler_exports));
|
|
2021
1565
|
return new WebGPUCompiler2(opts);
|
|
2022
1566
|
},
|
|
2023
1567
|
outputExtensions: [".wgsl", ".ts"]
|
|
@@ -2030,7 +1574,7 @@ function registerBuiltinDialects() {
|
|
|
2030
1574
|
supportedTraits: ["joint", "actuator", "sensor", "collider", "end_effector"],
|
|
2031
1575
|
riskTier: "standard",
|
|
2032
1576
|
factory: (opts) => {
|
|
2033
|
-
const { URDFCompiler: URDFCompiler2 } = (
|
|
1577
|
+
const { URDFCompiler: URDFCompiler2 } = (chunkIUDGEUDO_cjs.init_URDFCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkIUDGEUDO_cjs.URDFCompiler_exports));
|
|
2034
1578
|
return new URDFCompiler2(opts);
|
|
2035
1579
|
},
|
|
2036
1580
|
outputExtensions: [".urdf"]
|
|
@@ -2042,7 +1586,7 @@ function registerBuiltinDialects() {
|
|
|
2042
1586
|
supportedTraits: ["joint", "actuator", "sensor", "collider", "physics", "environment"],
|
|
2043
1587
|
riskTier: "standard",
|
|
2044
1588
|
factory: (opts) => {
|
|
2045
|
-
const { SDFCompiler: SDFCompiler2 } = (
|
|
1589
|
+
const { SDFCompiler: SDFCompiler2 } = (chunkIWC5DM2M_cjs.init_SDFCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkIWC5DM2M_cjs.SDFCompiler_exports));
|
|
2046
1590
|
return new SDFCompiler2(opts);
|
|
2047
1591
|
},
|
|
2048
1592
|
outputExtensions: [".sdf"]
|
|
@@ -2079,7 +1623,7 @@ function registerBuiltinDialects() {
|
|
|
2079
1623
|
supportedTraits: ["agent", "skill", "capability"],
|
|
2080
1624
|
riskTier: "standard",
|
|
2081
1625
|
factory: (opts) => {
|
|
2082
|
-
const { A2AAgentCardCompiler } = (
|
|
1626
|
+
const { A2AAgentCardCompiler } = (chunkLKBTCABN_cjs.init_A2AAgentCardCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkLKBTCABN_cjs.A2AAgentCardCompiler_exports));
|
|
2083
1627
|
return new A2AAgentCardCompiler(opts);
|
|
2084
1628
|
},
|
|
2085
1629
|
outputExtensions: [".json"]
|
|
@@ -2091,7 +1635,7 @@ function registerBuiltinDialects() {
|
|
|
2091
1635
|
supportedTraits: ["snn", "neuron", "synapse", "spike_train"],
|
|
2092
1636
|
riskTier: "high",
|
|
2093
1637
|
factory: (opts) => {
|
|
2094
|
-
const { NIRCompiler } = (
|
|
1638
|
+
const { NIRCompiler } = (chunkLKBTCABN_cjs.init_NIRCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkLKBTCABN_cjs.NIRCompiler_exports));
|
|
2095
1639
|
return new NIRCompiler(opts);
|
|
2096
1640
|
},
|
|
2097
1641
|
outputExtensions: [".json"]
|
|
@@ -2103,7 +1647,7 @@ function registerBuiltinDialects() {
|
|
|
2103
1647
|
supportedTraits: ["physics", "material", "lod", "rendering"],
|
|
2104
1648
|
riskTier: "standard",
|
|
2105
1649
|
factory: (opts) => {
|
|
2106
|
-
const { VRRCompiler: VRRCompiler2 } = (
|
|
1650
|
+
const { VRRCompiler: VRRCompiler2 } = (chunkXB274MW5_cjs.init_VRRCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkXB274MW5_cjs.VRRCompiler_exports));
|
|
2107
1651
|
return new VRRCompiler2(opts);
|
|
2108
1652
|
},
|
|
2109
1653
|
outputExtensions: [".ts"]
|
|
@@ -2115,7 +1659,7 @@ function registerBuiltinDialects() {
|
|
|
2115
1659
|
supportedTraits: ["layout", "style", "animation", "interaction"],
|
|
2116
1660
|
riskTier: "standard",
|
|
2117
1661
|
factory: (opts) => {
|
|
2118
|
-
const { Native2DCompiler: Native2DCompiler2 } = (init_Native2DCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(Native2DCompiler_exports));
|
|
1662
|
+
const { Native2DCompiler: Native2DCompiler2 } = (chunkLKBTCABN_cjs.init_Native2DCompiler(), chunkHCCQLAA4_cjs.__toCommonJS(chunkLKBTCABN_cjs.Native2DCompiler_exports));
|
|
2119
1663
|
return new Native2DCompiler2(opts);
|
|
2120
1664
|
},
|
|
2121
1665
|
outputExtensions: [".tsx", ".html"]
|
|
@@ -2336,30 +1880,30 @@ var init_DialectRegistry = chunkHCCQLAA4_cjs.__esm({
|
|
|
2336
1880
|
// src/compiler/index.ts
|
|
2337
1881
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
2338
1882
|
chunkKKP7JKN4_cjs.init_CompilerDocumentationGenerator();
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
1883
|
+
chunk3OZACAFQ_cjs.init_R3FCompiler();
|
|
1884
|
+
chunkTWUXUCEW_cjs.init_UnityCompiler();
|
|
1885
|
+
chunk5NWINHR5_cjs.init_GodotCompiler();
|
|
1886
|
+
chunkROHLEP2W_cjs.init_BabylonCompiler();
|
|
1887
|
+
chunkYWOBW2PV_cjs.init_PlayCanvasCompiler();
|
|
2344
1888
|
chunkS3MDHNKB_cjs.init_ARCompiler();
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
1889
|
+
chunkCR4FMIWL_cjs.init_OpenXRCompiler();
|
|
1890
|
+
chunk5H2G27PK_cjs.init_VRChatCompiler();
|
|
1891
|
+
chunkXB274MW5_cjs.init_VRRCompiler();
|
|
1892
|
+
chunkJBNDTXXV_cjs.init_VisionOSCompiler();
|
|
2349
1893
|
chunkKQCN6AKJ_cjs.init_AndroidCompiler();
|
|
2350
|
-
|
|
1894
|
+
chunkHNDK4IQU_cjs.init_AndroidXRCompiler();
|
|
2351
1895
|
chunkU44IKGG7_cjs.init_IOSCompiler();
|
|
2352
|
-
|
|
2353
|
-
|
|
1896
|
+
chunk2IWC4FP7_cjs.init_WASMCompiler();
|
|
1897
|
+
chunk7M3PNU2M_cjs.init_WebGPUCompiler();
|
|
2354
1898
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
2355
|
-
|
|
1899
|
+
chunkIWC5DM2M_cjs.init_SDFCompiler();
|
|
2356
1900
|
chunkIUTY5WQ2_cjs.init_DTDLCompiler();
|
|
2357
|
-
|
|
1901
|
+
chunkIUDGEUDO_cjs.init_URDFCompiler();
|
|
2358
1902
|
chunk3WZEJHUQ_cjs.init_StateCompiler();
|
|
2359
1903
|
|
|
2360
1904
|
// src/compiler/NextJSCompiler.ts
|
|
2361
1905
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
2362
|
-
init_Native2DCompiler();
|
|
1906
|
+
chunkLKBTCABN_cjs.init_Native2DCompiler();
|
|
2363
1907
|
function findTrait(composition, traitName) {
|
|
2364
1908
|
const traits = composition.traits;
|
|
2365
1909
|
if (!traits) return null;
|
|
@@ -2397,7 +1941,7 @@ var NextJSCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
2397
1941
|
}
|
|
2398
1942
|
}
|
|
2399
1943
|
buildNextRoute(composition) {
|
|
2400
|
-
const compiler = new
|
|
1944
|
+
const compiler = new chunkLKBTCABN_cjs.Native2DCompiler();
|
|
2401
1945
|
const pageTrait = findTrait(composition, "page");
|
|
2402
1946
|
const metaTrait = findTrait(composition, "metadata");
|
|
2403
1947
|
const route = pageTrait?.route || `/${composition.name.toLowerCase().replace(/\s+/g, "-")}`;
|
|
@@ -2681,7 +2225,7 @@ exports.DialectRegistry.register({
|
|
|
2681
2225
|
|
|
2682
2226
|
// src/compiler/index.ts
|
|
2683
2227
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
2684
|
-
init_Native2DCompiler();
|
|
2228
|
+
chunkLKBTCABN_cjs.init_Native2DCompiler();
|
|
2685
2229
|
|
|
2686
2230
|
// src/compiler/SCMCompiler.ts
|
|
2687
2231
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
@@ -3379,7 +2923,7 @@ var DispatchPolicy = class {
|
|
|
3379
2923
|
});
|
|
3380
2924
|
}
|
|
3381
2925
|
async tryTier1Browser(op) {
|
|
3382
|
-
const available = chunkCIWWXYHZ_cjs.isWebGpuEnvironmentPresent();
|
|
2926
|
+
const available = (this.config.webGpuProbe ?? chunkCIWWXYHZ_cjs.isWebGpuEnvironmentPresent)();
|
|
3383
2927
|
const traitCompatible = this.isTraitSnnCompatible(op.trait);
|
|
3384
2928
|
if (!available || !traitCompatible) {
|
|
3385
2929
|
const reason = !available ? "WebGPU not available" : "Trait is not mapped to the SNN/WebGPU hot path";
|
|
@@ -3632,7 +3176,7 @@ async function runTier3CpuDirectExecutor(op) {
|
|
|
3632
3176
|
}
|
|
3633
3177
|
async function runTier1BrowserSnn(op) {
|
|
3634
3178
|
try {
|
|
3635
|
-
const snnWebgpu = await import('
|
|
3179
|
+
const snnWebgpu = await import('../dist-ACXG6IH5.cjs');
|
|
3636
3180
|
const { GPUContext, LIFSimulator, DEFAULT_LIF_PARAMS } = snnWebgpu;
|
|
3637
3181
|
const ctx = new GPUContext();
|
|
3638
3182
|
await ctx.initialize();
|
|
@@ -5038,8 +4582,8 @@ function createHoloGramMLSCompiler(options) {
|
|
|
5038
4582
|
}
|
|
5039
4583
|
|
|
5040
4584
|
// src/compiler/TraitRegistryBridge.ts
|
|
5041
|
-
|
|
5042
|
-
|
|
4585
|
+
chunkHNDK4IQU_cjs.init_AndroidXRTraitMap();
|
|
4586
|
+
chunkJBNDTXXV_cjs.init_VisionOSTraitMap();
|
|
5043
4587
|
chunk5FSKKMR7_cjs.init_traitDocs();
|
|
5044
4588
|
function normaliseTraitName(name) {
|
|
5045
4589
|
return name.toLowerCase().replace(/^@/, "").replace(/trait$/i, "").replace(/_/g, "-").trim();
|
|
@@ -5047,7 +4591,7 @@ function normaliseTraitName(name) {
|
|
|
5047
4591
|
function queryTrait(name, opts = {}) {
|
|
5048
4592
|
const target = opts.target || "core";
|
|
5049
4593
|
if (target === "android-xr") {
|
|
5050
|
-
const map =
|
|
4594
|
+
const map = chunkHNDK4IQU_cjs.getTraitMapping(name);
|
|
5051
4595
|
if (map) {
|
|
5052
4596
|
return {
|
|
5053
4597
|
name,
|
|
@@ -5059,7 +4603,7 @@ function queryTrait(name, opts = {}) {
|
|
|
5059
4603
|
}
|
|
5060
4604
|
}
|
|
5061
4605
|
if (target === "visionos") {
|
|
5062
|
-
const map =
|
|
4606
|
+
const map = chunkJBNDTXXV_cjs.getTraitMapping(name);
|
|
5063
4607
|
if (map) {
|
|
5064
4608
|
return {
|
|
5065
4609
|
name,
|
|
@@ -5072,8 +4616,8 @@ function queryTrait(name, opts = {}) {
|
|
|
5072
4616
|
return { name, exists: false, sourceMap: "VisionOSTraitMap" };
|
|
5073
4617
|
}
|
|
5074
4618
|
const normalised = normaliseTraitName(name);
|
|
5075
|
-
if (
|
|
5076
|
-
const handler =
|
|
4619
|
+
if (chunkSMRVK6BI_cjs.vrTraitRegistry.has(normalised)) {
|
|
4620
|
+
const handler = chunkSMRVK6BI_cjs.vrTraitRegistry.getHandler(normalised);
|
|
5077
4621
|
const doc2 = chunk5FSKKMR7_cjs.getTraitDoc(name);
|
|
5078
4622
|
return {
|
|
5079
4623
|
name,
|
|
@@ -5104,12 +4648,12 @@ function queryTrait(name, opts = {}) {
|
|
|
5104
4648
|
}
|
|
5105
4649
|
function generateTraitForTarget(name, target, config = {}) {
|
|
5106
4650
|
if (target === "android-xr" || target === "android") {
|
|
5107
|
-
return
|
|
4651
|
+
return chunkHNDK4IQU_cjs.getTraitMapping(name)?.generate?.(name, config) ?? [
|
|
5108
4652
|
`// @${name} not yet mapped for android-xr (see AndroidXRTraitMap)`
|
|
5109
4653
|
];
|
|
5110
4654
|
}
|
|
5111
4655
|
if (target === "visionos") {
|
|
5112
|
-
return
|
|
4656
|
+
return chunkJBNDTXXV_cjs.generateTraitCode(name, name, config) ?? [
|
|
5113
4657
|
`// @${name} not yet mapped for visionos (see VisionOSTraitMap)`
|
|
5114
4658
|
];
|
|
5115
4659
|
}
|
|
@@ -5124,15 +4668,15 @@ function generateTraitForTarget(name, target, config = {}) {
|
|
|
5124
4668
|
}
|
|
5125
4669
|
function listTraitsForTarget(target) {
|
|
5126
4670
|
if (target === "android-xr") {
|
|
5127
|
-
return Object.keys(
|
|
4671
|
+
return Object.keys(chunkHNDK4IQU_cjs.ANDROIDXR_TRAIT_MAP);
|
|
5128
4672
|
}
|
|
5129
4673
|
if (target === "visionos") {
|
|
5130
|
-
return
|
|
4674
|
+
return chunkJBNDTXXV_cjs.listAllTraits ? chunkJBNDTXXV_cjs.listAllTraits() : [];
|
|
5131
4675
|
}
|
|
5132
4676
|
if (target === "core") {
|
|
5133
4677
|
const seen = /* @__PURE__ */ new Set();
|
|
5134
4678
|
const result = [];
|
|
5135
|
-
for (const name of
|
|
4679
|
+
for (const name of chunkSMRVK6BI_cjs.vrTraitRegistry.getRegisteredTraits()) {
|
|
5136
4680
|
const norm = normaliseTraitName(name);
|
|
5137
4681
|
if (!seen.has(norm)) {
|
|
5138
4682
|
seen.add(norm);
|
|
@@ -5152,17 +4696,17 @@ function listTraitsForTarget(target) {
|
|
|
5152
4696
|
}
|
|
5153
4697
|
function traitExists(name) {
|
|
5154
4698
|
const normalised = normaliseTraitName(name);
|
|
5155
|
-
if (
|
|
4699
|
+
if (chunkSMRVK6BI_cjs.vrTraitRegistry.has(normalised)) {
|
|
5156
4700
|
return true;
|
|
5157
4701
|
}
|
|
5158
4702
|
const doc = chunk5FSKKMR7_cjs.getTraitDoc(name);
|
|
5159
4703
|
if (doc) {
|
|
5160
4704
|
return true;
|
|
5161
4705
|
}
|
|
5162
|
-
if (
|
|
4706
|
+
if (chunkHNDK4IQU_cjs.getTraitMapping(name)) {
|
|
5163
4707
|
return true;
|
|
5164
4708
|
}
|
|
5165
|
-
if (
|
|
4709
|
+
if (chunkJBNDTXXV_cjs.getTraitMapping(name)) {
|
|
5166
4710
|
return true;
|
|
5167
4711
|
}
|
|
5168
4712
|
return false;
|
|
@@ -5250,7 +4794,7 @@ function getAllManifests() {
|
|
|
5250
4794
|
}
|
|
5251
4795
|
|
|
5252
4796
|
// src/compiler/platform/plugins/WebGPUWGSLPlugin.ts
|
|
5253
|
-
|
|
4797
|
+
chunk7M3PNU2M_cjs.init_WebGPUCompiler();
|
|
5254
4798
|
var WEBGPU_WGSL_METADATA = {
|
|
5255
4799
|
name: "holoscript-plugin-webgpu-wgsl",
|
|
5256
4800
|
version: "1.0.0",
|
|
@@ -5279,7 +4823,7 @@ var WebGPUWGSLPlugin = class {
|
|
|
5279
4823
|
switch (target) {
|
|
5280
4824
|
case "web": {
|
|
5281
4825
|
try {
|
|
5282
|
-
const compiler = new
|
|
4826
|
+
const compiler = new chunk7M3PNU2M_cjs.WebGPUCompiler({ enableCompute: true });
|
|
5283
4827
|
const result = compiler.compile(ast, "");
|
|
5284
4828
|
return { type: "text", data: result };
|
|
5285
4829
|
} catch (err) {
|
|
@@ -5373,7 +4917,7 @@ var WebGPUWGSLPlugin = class {
|
|
|
5373
4917
|
platformPluginRegistry.register(new WebGPUWGSLPlugin());
|
|
5374
4918
|
|
|
5375
4919
|
// src/compiler/platform/plugins/AndroidARCorePlugin.ts
|
|
5376
|
-
|
|
4920
|
+
chunkHNDK4IQU_cjs.init_AndroidXRCompiler();
|
|
5377
4921
|
var ANDROID_ARCORE_METADATA = {
|
|
5378
4922
|
name: "holoscript-plugin-android-arcore",
|
|
5379
4923
|
version: "1.0.0",
|
|
@@ -5404,7 +4948,7 @@ var AndroidARCorePlugin = class {
|
|
|
5404
4948
|
case "android-xr":
|
|
5405
4949
|
case "android-xr-ar": {
|
|
5406
4950
|
try {
|
|
5407
|
-
const compiler = new
|
|
4951
|
+
const compiler = new chunkHNDK4IQU_cjs.AndroidXRCompiler({
|
|
5408
4952
|
formFactor: target === "android-xr-ar" ? "glasses" : "headset"
|
|
5409
4953
|
});
|
|
5410
4954
|
const result = compiler.compile(ast, "apl-plugin-token");
|
|
@@ -5534,39 +5078,39 @@ Object.defineProperty(exports, "createLLMProviderCapabilitiesCompiler", {
|
|
|
5534
5078
|
});
|
|
5535
5079
|
Object.defineProperty(exports, "GLTF_PIPELINE_TOOLS", {
|
|
5536
5080
|
enumerable: true,
|
|
5537
|
-
get: function () { return
|
|
5081
|
+
get: function () { return chunkO7WLJ53D_cjs.GLTF_PIPELINE_TOOLS; }
|
|
5538
5082
|
});
|
|
5539
5083
|
Object.defineProperty(exports, "registerGLTFTools", {
|
|
5540
5084
|
enumerable: true,
|
|
5541
|
-
get: function () { return
|
|
5085
|
+
get: function () { return chunkO7WLJ53D_cjs.registerGLTFTools; }
|
|
5542
5086
|
});
|
|
5543
5087
|
Object.defineProperty(exports, "BUSINESS_QUEST_TOOLS", {
|
|
5544
5088
|
enumerable: true,
|
|
5545
|
-
get: function () { return
|
|
5089
|
+
get: function () { return chunk7H33U5SM_cjs.BUSINESS_QUEST_TOOLS; }
|
|
5546
5090
|
});
|
|
5547
5091
|
Object.defineProperty(exports, "buildVRRCompositionFromDraft", {
|
|
5548
5092
|
enumerable: true,
|
|
5549
|
-
get: function () { return
|
|
5093
|
+
get: function () { return chunk7H33U5SM_cjs.buildVRRCompositionFromDraft; }
|
|
5550
5094
|
});
|
|
5551
5095
|
Object.defineProperty(exports, "businessVRRDraftSchema", {
|
|
5552
5096
|
enumerable: true,
|
|
5553
|
-
get: function () { return
|
|
5097
|
+
get: function () { return chunk7H33U5SM_cjs.businessVRRDraftSchema; }
|
|
5554
5098
|
});
|
|
5555
5099
|
Object.defineProperty(exports, "draftToHoloPreview", {
|
|
5556
5100
|
enumerable: true,
|
|
5557
|
-
get: function () { return
|
|
5101
|
+
get: function () { return chunk7H33U5SM_cjs.draftToHoloPreview; }
|
|
5558
5102
|
});
|
|
5559
5103
|
Object.defineProperty(exports, "handleBusinessQuestToolCall", {
|
|
5560
5104
|
enumerable: true,
|
|
5561
|
-
get: function () { return
|
|
5105
|
+
get: function () { return chunk7H33U5SM_cjs.handleBusinessQuestToolCall; }
|
|
5562
5106
|
});
|
|
5563
5107
|
Object.defineProperty(exports, "registerBusinessQuestTools", {
|
|
5564
5108
|
enumerable: true,
|
|
5565
|
-
get: function () { return
|
|
5109
|
+
get: function () { return chunk7H33U5SM_cjs.registerBusinessQuestTools; }
|
|
5566
5110
|
});
|
|
5567
5111
|
Object.defineProperty(exports, "validateBusinessVRRDraft", {
|
|
5568
5112
|
enumerable: true,
|
|
5569
|
-
get: function () { return
|
|
5113
|
+
get: function () { return chunk7H33U5SM_cjs.validateBusinessVRRDraft; }
|
|
5570
5114
|
});
|
|
5571
5115
|
Object.defineProperty(exports, "NodeToyMapper", {
|
|
5572
5116
|
enumerable: true,
|
|
@@ -5582,75 +5126,79 @@ Object.defineProperty(exports, "QuantumCircuitCompiler", {
|
|
|
5582
5126
|
});
|
|
5583
5127
|
Object.defineProperty(exports, "CompilerBridge", {
|
|
5584
5128
|
enumerable: true,
|
|
5585
|
-
get: function () { return
|
|
5129
|
+
get: function () { return chunkLKBTCABN_cjs.CompilerBridge; }
|
|
5586
5130
|
});
|
|
5587
5131
|
Object.defineProperty(exports, "GaussianSplattingCompiler", {
|
|
5588
5132
|
enumerable: true,
|
|
5589
|
-
get: function () { return
|
|
5133
|
+
get: function () { return chunkLKBTCABN_cjs.GaussianSplattingCompiler; }
|
|
5134
|
+
});
|
|
5135
|
+
Object.defineProperty(exports, "Native2DCompiler", {
|
|
5136
|
+
enumerable: true,
|
|
5137
|
+
get: function () { return chunkLKBTCABN_cjs.Native2DCompiler; }
|
|
5590
5138
|
});
|
|
5591
5139
|
Object.defineProperty(exports, "SHARED_SORT_SHADER_PATH", {
|
|
5592
5140
|
enumerable: true,
|
|
5593
|
-
get: function () { return
|
|
5141
|
+
get: function () { return chunkLKBTCABN_cjs.SHARED_SORT_SHADER_PATH; }
|
|
5594
5142
|
});
|
|
5595
5143
|
Object.defineProperty(exports, "SpatialPartitionPass", {
|
|
5596
5144
|
enumerable: true,
|
|
5597
|
-
get: function () { return
|
|
5145
|
+
get: function () { return chunkLKBTCABN_cjs.SpatialPartitionPass; }
|
|
5598
5146
|
});
|
|
5599
5147
|
Object.defineProperty(exports, "USDZPipeline", {
|
|
5600
5148
|
enumerable: true,
|
|
5601
|
-
get: function () { return
|
|
5149
|
+
get: function () { return chunkLKBTCABN_cjs.USDZPipeline; }
|
|
5602
5150
|
});
|
|
5603
5151
|
Object.defineProperty(exports, "bestCategoryForTraits", {
|
|
5604
5152
|
enumerable: true,
|
|
5605
|
-
get: function () { return
|
|
5153
|
+
get: function () { return chunkLKBTCABN_cjs.bestCategoryForTraits; }
|
|
5606
5154
|
});
|
|
5607
5155
|
Object.defineProperty(exports, "compilePipelineSource", {
|
|
5608
5156
|
enumerable: true,
|
|
5609
|
-
get: function () { return
|
|
5157
|
+
get: function () { return chunkLKBTCABN_cjs.compilePipelineSource; }
|
|
5610
5158
|
});
|
|
5611
5159
|
Object.defineProperty(exports, "compilePipelineSourceToNode", {
|
|
5612
5160
|
enumerable: true,
|
|
5613
|
-
get: function () { return
|
|
5161
|
+
get: function () { return chunkLKBTCABN_cjs.compilePipelineSourceToNode; }
|
|
5614
5162
|
});
|
|
5615
5163
|
Object.defineProperty(exports, "compilePipelineSourceToPython", {
|
|
5616
5164
|
enumerable: true,
|
|
5617
|
-
get: function () { return
|
|
5165
|
+
get: function () { return chunkLKBTCABN_cjs.compilePipelineSourceToPython; }
|
|
5618
5166
|
});
|
|
5619
5167
|
Object.defineProperty(exports, "compilePipelineToNode", {
|
|
5620
5168
|
enumerable: true,
|
|
5621
|
-
get: function () { return
|
|
5169
|
+
get: function () { return chunkLKBTCABN_cjs.compilePipelineToNode; }
|
|
5622
5170
|
});
|
|
5623
5171
|
Object.defineProperty(exports, "compilePipelineToPython", {
|
|
5624
5172
|
enumerable: true,
|
|
5625
|
-
get: function () { return
|
|
5173
|
+
get: function () { return chunkLKBTCABN_cjs.compilePipelineToPython; }
|
|
5626
5174
|
});
|
|
5627
5175
|
Object.defineProperty(exports, "createGaussianSplattingCompiler", {
|
|
5628
5176
|
enumerable: true,
|
|
5629
|
-
get: function () { return
|
|
5177
|
+
get: function () { return chunkLKBTCABN_cjs.createGaussianSplattingCompiler; }
|
|
5630
5178
|
});
|
|
5631
5179
|
Object.defineProperty(exports, "detectMultiUserSharedSort", {
|
|
5632
5180
|
enumerable: true,
|
|
5633
|
-
get: function () { return
|
|
5181
|
+
get: function () { return chunkLKBTCABN_cjs.detectMultiUserSharedSort; }
|
|
5634
5182
|
});
|
|
5635
5183
|
Object.defineProperty(exports, "quickSafetyCheck", {
|
|
5636
5184
|
enumerable: true,
|
|
5637
|
-
get: function () { return
|
|
5185
|
+
get: function () { return chunkLKBTCABN_cjs.quickSafetyCheck; }
|
|
5638
5186
|
});
|
|
5639
5187
|
Object.defineProperty(exports, "runSafetyPass", {
|
|
5640
5188
|
enumerable: true,
|
|
5641
|
-
get: function () { return
|
|
5189
|
+
get: function () { return chunkLKBTCABN_cjs.runSafetyPass; }
|
|
5642
5190
|
});
|
|
5643
5191
|
Object.defineProperty(exports, "selectModality", {
|
|
5644
5192
|
enumerable: true,
|
|
5645
|
-
get: function () { return
|
|
5193
|
+
get: function () { return chunkLKBTCABN_cjs.selectModality; }
|
|
5646
5194
|
});
|
|
5647
5195
|
Object.defineProperty(exports, "selectModalityForAll", {
|
|
5648
5196
|
enumerable: true,
|
|
5649
|
-
get: function () { return
|
|
5197
|
+
get: function () { return chunkLKBTCABN_cjs.selectModalityForAll; }
|
|
5650
5198
|
});
|
|
5651
5199
|
Object.defineProperty(exports, "spatialPartition", {
|
|
5652
5200
|
enumerable: true,
|
|
5653
|
-
get: function () { return
|
|
5201
|
+
get: function () { return chunkLKBTCABN_cjs.spatialPartition; }
|
|
5654
5202
|
});
|
|
5655
5203
|
Object.defineProperty(exports, "generateHullGeometry", {
|
|
5656
5204
|
enumerable: true,
|
|
@@ -5686,11 +5234,11 @@ Object.defineProperty(exports, "createIncrementalCompiler", {
|
|
|
5686
5234
|
});
|
|
5687
5235
|
Object.defineProperty(exports, "WASMCompiler", {
|
|
5688
5236
|
enumerable: true,
|
|
5689
|
-
get: function () { return
|
|
5237
|
+
get: function () { return chunk2IWC4FP7_cjs.WASMCompiler; }
|
|
5690
5238
|
});
|
|
5691
5239
|
Object.defineProperty(exports, "WebGPUCompiler", {
|
|
5692
5240
|
enumerable: true,
|
|
5693
|
-
get: function () { return
|
|
5241
|
+
get: function () { return chunk7M3PNU2M_cjs.WebGPUCompiler; }
|
|
5694
5242
|
});
|
|
5695
5243
|
Object.defineProperty(exports, "DTDLCompiler", {
|
|
5696
5244
|
enumerable: true,
|
|
@@ -5698,19 +5246,19 @@ Object.defineProperty(exports, "DTDLCompiler", {
|
|
|
5698
5246
|
});
|
|
5699
5247
|
Object.defineProperty(exports, "URDFCompiler", {
|
|
5700
5248
|
enumerable: true,
|
|
5701
|
-
get: function () { return
|
|
5249
|
+
get: function () { return chunkIUDGEUDO_cjs.URDFCompiler; }
|
|
5702
5250
|
});
|
|
5703
5251
|
Object.defineProperty(exports, "createURDFCompiler", {
|
|
5704
5252
|
enumerable: true,
|
|
5705
|
-
get: function () { return
|
|
5253
|
+
get: function () { return chunkIUDGEUDO_cjs.createURDFCompiler; }
|
|
5706
5254
|
});
|
|
5707
5255
|
Object.defineProperty(exports, "USDPhysicsCompiler", {
|
|
5708
5256
|
enumerable: true,
|
|
5709
|
-
get: function () { return
|
|
5257
|
+
get: function () { return chunkUFZZ7TSN_cjs.USDPhysicsCompiler; }
|
|
5710
5258
|
});
|
|
5711
5259
|
Object.defineProperty(exports, "SDFCompiler", {
|
|
5712
5260
|
enumerable: true,
|
|
5713
|
-
get: function () { return
|
|
5261
|
+
get: function () { return chunkIWC5DM2M_cjs.SDFCompiler; }
|
|
5714
5262
|
});
|
|
5715
5263
|
Object.defineProperty(exports, "StateCompiler", {
|
|
5716
5264
|
enumerable: true,
|
|
@@ -5722,19 +5270,19 @@ Object.defineProperty(exports, "TraitCompositionCompiler", {
|
|
|
5722
5270
|
});
|
|
5723
5271
|
Object.defineProperty(exports, "GodotCompiler", {
|
|
5724
5272
|
enumerable: true,
|
|
5725
|
-
get: function () { return
|
|
5273
|
+
get: function () { return chunk5NWINHR5_cjs.GodotCompiler; }
|
|
5726
5274
|
});
|
|
5727
5275
|
Object.defineProperty(exports, "ENVIRONMENT_PRESETS", {
|
|
5728
5276
|
enumerable: true,
|
|
5729
|
-
get: function () { return
|
|
5277
|
+
get: function () { return chunk3OZACAFQ_cjs.ENVIRONMENT_PRESETS; }
|
|
5730
5278
|
});
|
|
5731
5279
|
Object.defineProperty(exports, "R3FCompiler", {
|
|
5732
5280
|
enumerable: true,
|
|
5733
|
-
get: function () { return
|
|
5281
|
+
get: function () { return chunk3OZACAFQ_cjs.R3FCompiler; }
|
|
5734
5282
|
});
|
|
5735
5283
|
Object.defineProperty(exports, "PlayCanvasCompiler", {
|
|
5736
5284
|
enumerable: true,
|
|
5737
|
-
get: function () { return
|
|
5285
|
+
get: function () { return chunkYWOBW2PV_cjs.PlayCanvasCompiler; }
|
|
5738
5286
|
});
|
|
5739
5287
|
Object.defineProperty(exports, "AndroidCompiler", {
|
|
5740
5288
|
enumerable: true,
|
|
@@ -5742,7 +5290,7 @@ Object.defineProperty(exports, "AndroidCompiler", {
|
|
|
5742
5290
|
});
|
|
5743
5291
|
Object.defineProperty(exports, "AndroidXRCompiler", {
|
|
5744
5292
|
enumerable: true,
|
|
5745
|
-
get: function () { return
|
|
5293
|
+
get: function () { return chunkHNDK4IQU_cjs.AndroidXRCompiler; }
|
|
5746
5294
|
});
|
|
5747
5295
|
Object.defineProperty(exports, "IOSCompiler", {
|
|
5748
5296
|
enumerable: true,
|
|
@@ -5750,15 +5298,15 @@ Object.defineProperty(exports, "IOSCompiler", {
|
|
|
5750
5298
|
});
|
|
5751
5299
|
Object.defineProperty(exports, "VisionOSCompiler", {
|
|
5752
5300
|
enumerable: true,
|
|
5753
|
-
get: function () { return
|
|
5301
|
+
get: function () { return chunkJBNDTXXV_cjs.VisionOSCompiler; }
|
|
5754
5302
|
});
|
|
5755
5303
|
Object.defineProperty(exports, "MultiLayerCompiler", {
|
|
5756
5304
|
enumerable: true,
|
|
5757
|
-
get: function () { return
|
|
5305
|
+
get: function () { return chunkNCWCUZNS_cjs.MultiLayerCompiler; }
|
|
5758
5306
|
});
|
|
5759
5307
|
Object.defineProperty(exports, "VRRCompiler", {
|
|
5760
5308
|
enumerable: true,
|
|
5761
|
-
get: function () { return
|
|
5309
|
+
get: function () { return chunkXB274MW5_cjs.VRRCompiler; }
|
|
5762
5310
|
});
|
|
5763
5311
|
Object.defineProperty(exports, "ARCompiler", {
|
|
5764
5312
|
enumerable: true,
|
|
@@ -5766,19 +5314,19 @@ Object.defineProperty(exports, "ARCompiler", {
|
|
|
5766
5314
|
});
|
|
5767
5315
|
Object.defineProperty(exports, "OpenXRCompiler", {
|
|
5768
5316
|
enumerable: true,
|
|
5769
|
-
get: function () { return
|
|
5317
|
+
get: function () { return chunkCR4FMIWL_cjs.OpenXRCompiler; }
|
|
5770
5318
|
});
|
|
5771
5319
|
Object.defineProperty(exports, "VRChatCompiler", {
|
|
5772
5320
|
enumerable: true,
|
|
5773
|
-
get: function () { return
|
|
5321
|
+
get: function () { return chunk5H2G27PK_cjs.VRChatCompiler; }
|
|
5774
5322
|
});
|
|
5775
5323
|
Object.defineProperty(exports, "BabylonCompiler", {
|
|
5776
5324
|
enumerable: true,
|
|
5777
|
-
get: function () { return
|
|
5325
|
+
get: function () { return chunkROHLEP2W_cjs.BabylonCompiler; }
|
|
5778
5326
|
});
|
|
5779
5327
|
Object.defineProperty(exports, "UnityCompiler", {
|
|
5780
5328
|
enumerable: true,
|
|
5781
|
-
get: function () { return
|
|
5329
|
+
get: function () { return chunkTWUXUCEW_cjs.UnityCompiler; }
|
|
5782
5330
|
});
|
|
5783
5331
|
Object.defineProperty(exports, "PlatformConditionalCompilerMixin", {
|
|
5784
5332
|
enumerable: true,
|