@holoscript/core 8.0.13 → 8.0.14
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 +14 -0
- package/bin/holo-decision.mjs +133 -0
- package/dist/{GLTFPipeline-L76YTXKA.js → GLTFPipeline-6LS3UDYX.js} +6 -6
- package/dist/{GLTFPipeline-ZWJN7GI6.cjs → GLTFPipeline-VTI6PRRQ.cjs} +10 -10
- package/dist/{HoloCompositionParser-P4Y3CXKQ.js → HoloCompositionParser-GILABNN3.js} +4 -4
- package/dist/{HoloCompositionParser-6GW2BZID.cjs → HoloCompositionParser-ZVRYVEA5.cjs} +11 -11
- package/dist/{HoloScriptPlusParser-RFNHRMPE.cjs → HoloScriptPlusParser-WTPRPRPR.cjs} +7 -7
- package/dist/{HoloScriptPlusParser-HQV6IJAH.js → HoloScriptPlusParser-ZP53ECSL.js} +4 -4
- package/dist/{SceneIRCompiler-KWUFHZ4O.cjs → SceneIRCompiler-7KQ5NKAU.cjs} +11 -11
- package/dist/{SceneIRCompiler-63KA3M2F.js → SceneIRCompiler-VX75RB6H.js} +6 -6
- package/dist/{chunk-EM2OGPYE.js → chunk-2GKF7JQ6.js} +3 -3
- package/dist/{chunk-HVX7QQYK.js → chunk-3KHRZTNW.js} +3 -3
- package/dist/{chunk-UTUD6GJI.js → chunk-42Z3SVHQ.js} +3 -3
- package/dist/{chunk-A4OOLBZD.js → chunk-47XZ62KM.js} +5 -5
- package/dist/{chunk-GGR7QUKK.cjs → chunk-4CRMVEON.cjs} +37 -37
- package/dist/{chunk-QBY7LRN2.js → chunk-4NEPHK2K.js} +3 -3
- package/dist/{chunk-65S62L4D.cjs → chunk-5B2AJKA5.cjs} +20 -20
- package/dist/{chunk-PJFTTSKE.js → chunk-5T6BWIB7.js} +4 -4
- package/dist/{chunk-KFVNCW4Q.js → chunk-62OYZT6Q.js} +3 -3
- package/dist/{chunk-Y57AVOM2.cjs → chunk-645EWDZW.cjs} +4 -4
- package/dist/{chunk-BP4KTMLY.js → chunk-6FCNMTL5.js} +4 -4
- package/dist/{chunk-77QI552M.js → chunk-73EDVY5D.js} +3 -3
- package/dist/{chunk-7IDJDMPU.cjs → chunk-7FYSSI3C.cjs} +27 -2
- package/dist/{chunk-WNYXT4TE.cjs → chunk-7ITJP33Q.cjs} +3 -3
- package/dist/chunk-7ZKQ32XK.js +1571 -0
- package/dist/{chunk-P7JEKJTZ.cjs → chunk-B6JHTTMR.cjs} +25 -14
- package/dist/{chunk-FG6PYGIZ.js → chunk-BLCWQ225.js} +4 -4
- package/dist/{chunk-FRSKLX6I.js → chunk-C73GVAYC.js} +10 -7
- package/dist/{chunk-PXVAPGTR.cjs → chunk-CESMPUEZ.cjs} +3774 -1138
- package/dist/{chunk-SQXAZHDG.js → chunk-CHIZSMWD.js} +3 -3
- package/dist/{chunk-G35CAQ7I.cjs → chunk-D44CEFY4.cjs} +5 -5
- package/dist/{chunk-TC7JEO6R.cjs → chunk-ERYKKPHW.cjs} +711 -52
- package/dist/{chunk-DJ5BNRIS.js → chunk-EYHPTJ3F.js} +3675 -1046
- package/dist/{chunk-J3UHV5T4.cjs → chunk-FGXJPJ3W.cjs} +4 -4
- package/dist/{chunk-IJU6AS67.cjs → chunk-FHR2AVMA.cjs} +23 -23
- package/dist/{chunk-LMB555QB.cjs → chunk-FOM36K5I.cjs} +18 -18
- package/dist/{chunk-ZRPALBQB.cjs → chunk-GGH3ZYDB.cjs} +5 -5
- package/dist/{chunk-2BYAUHBO.js → chunk-GI5YYZH6.js} +3 -3
- package/dist/{chunk-VTEXJOSD.cjs → chunk-GYJLP4BO.cjs} +30 -30
- package/dist/{chunk-OC6GV5QH.cjs → chunk-HCONR4J6.cjs} +38 -38
- package/dist/{chunk-B3CWTCK2.js → chunk-IA7FCSRY.js} +27 -2
- package/dist/{chunk-5FYMCVBY.js → chunk-IXFNA5TT.js} +4 -4
- package/dist/{chunk-G6KACNMO.js → chunk-JCVSCKUH.js} +4 -4
- package/dist/{chunk-FHVPN7BN.js → chunk-JQCXLKAU.js} +3 -3
- package/dist/{chunk-F3YT6GUF.cjs → chunk-KLM6QD6D.cjs} +14 -14
- package/dist/{chunk-UGQ3QNV6.js → chunk-KOGPVAP6.js} +24 -8
- package/dist/{chunk-CKV5NYAE.js → chunk-KYJD2UMV.js} +4 -4
- package/dist/{chunk-LB3ZZMKT.cjs → chunk-L4DBUX3N.cjs} +10 -10
- package/dist/{chunk-RXQNRZ5F.js → chunk-LGRKBTPM.js} +3 -3
- package/dist/{chunk-PDXX5UI4.cjs → chunk-LQNL3IYV.cjs} +38 -38
- package/dist/{chunk-WWNCM473.js → chunk-M7XR3F53.js} +4 -4
- package/dist/{chunk-IFW5IW4L.cjs → chunk-ML4V5PVU.cjs} +670 -627
- package/dist/{chunk-Q4K2GEMW.cjs → chunk-N7IYRAFG.cjs} +13 -10
- package/dist/chunk-N7MIIDLI.cjs +1605 -0
- package/dist/{chunk-G6EKZHXY.js → chunk-NWKARJM2.js} +4 -4
- package/dist/{chunk-VVAAZITA.cjs → chunk-OOP4S3GU.cjs} +5 -5
- package/dist/{chunk-U3D4SYQ5.js → chunk-ORBVCOTC.js} +3 -3
- package/dist/{chunk-RRQIAJLQ.cjs → chunk-OSKGCXAQ.cjs} +5 -5
- package/dist/{chunk-QEDMOGF3.cjs → chunk-P65OIMJT.cjs} +7 -7
- package/dist/{chunk-QM7FJB5W.js → chunk-PSWCJQS4.js} +4 -4
- package/dist/{chunk-RZ2EPXO3.cjs → chunk-PZ46WRHX.cjs} +8 -8
- package/dist/{chunk-AATYYLYK.js → chunk-Q4J2K7FI.js} +16 -5
- package/dist/{chunk-ONPVM4IV.js → chunk-QLPRI3QW.js} +698 -45
- package/dist/{chunk-WTH23ISI.js → chunk-R5VKLUMR.js} +4 -4
- package/dist/{chunk-NQN5LFN4.cjs → chunk-REN3LHO6.cjs} +19 -19
- package/dist/{chunk-JEJ7TT54.js → chunk-RVN7OPCP.js} +4 -4
- package/dist/{chunk-ZK7KX5CD.cjs → chunk-SE2Y5BSL.cjs} +6 -6
- package/dist/{chunk-2X3IPCBK.cjs → chunk-SKVBUGMC.cjs} +7 -7
- package/dist/{chunk-GZPUA2TL.cjs → chunk-SNMQUWIO.cjs} +10 -10
- package/dist/{chunk-OIBRWLPY.cjs → chunk-TKDDIE3T.cjs} +54 -3
- package/dist/{chunk-SQAAWO4V.cjs → chunk-TMNAKNV2.cjs} +5 -5
- package/dist/{chunk-5LVFTGKH.js → chunk-TZQKJOPC.js} +3 -3
- package/dist/{chunk-TSTFYGGX.js → chunk-UKEK2NZJ.js} +3 -3
- package/dist/{chunk-3IUHTGDD.cjs → chunk-VA7THINF.cjs} +38 -38
- package/dist/{chunk-Z557DVYN.js → chunk-VMCR5QVI.js} +4 -4
- package/dist/{chunk-IS7NTKY5.cjs → chunk-VTFLKSJL.cjs} +14 -14
- package/dist/{chunk-RVNXBF2M.js → chunk-VXHB6ZHY.js} +4 -4
- package/dist/{chunk-S4O7CFHQ.cjs → chunk-VZI7S7P6.cjs} +7 -7
- package/dist/{chunk-BQJ3YBF3.js → chunk-W4AJMMQR.js} +667 -628
- package/dist/{chunk-2KKOYZYI.cjs → chunk-XZC75AJ4.cjs} +5 -5
- package/dist/{chunk-FWCHPCD4.js → chunk-Y2OCKXVD.js} +4 -4
- package/dist/{chunk-XF63CZ7E.cjs → chunk-YBM34FUJ.cjs} +6 -6
- package/dist/{chunk-DUG3OQAS.js → chunk-YDSNDCV3.js} +3 -3
- package/dist/{chunk-566ZB4LZ.cjs → chunk-YM7UUYR5.cjs} +5 -5
- package/dist/{chunk-BCP4E7MD.cjs → chunk-YMI3ED3B.cjs} +26 -10
- package/dist/{chunk-CP7V3ATL.js → chunk-Z7NUL73U.js} +51 -4
- package/dist/cli/holoscript-runner.cjs +10 -10
- package/dist/cli/holoscript-runner.js +3 -3
- package/dist/compiler/agent-inference.cjs +8 -8
- package/dist/compiler/agent-inference.js +4 -4
- package/dist/compiler/android-xr.cjs +7 -7
- package/dist/compiler/android-xr.js +5 -5
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/daimon-seed.cjs +9 -9
- package/dist/compiler/daimon-seed.js +4 -4
- package/dist/compiler/domain-block-utils.cjs +165 -165
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +871 -207
- package/dist/compiler/index.d.ts +21 -1
- package/dist/compiler/index.js +696 -60
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/openxr.cjs +6 -6
- package/dist/compiler/openxr.js +5 -5
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +7 -7
- package/dist/compiler/trait-composition.js +3 -3
- package/dist/compiler/unity.cjs +6 -6
- package/dist/compiler/unity.js +5 -5
- package/dist/compiler/unreal.cjs +7 -7
- package/dist/compiler/unreal.js +5 -5
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +6 -6
- package/dist/compiler/visionos.js +5 -5
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/entries/scripting.cjs +5 -5
- package/dist/entries/scripting.js +1 -1
- package/dist/evolution/index.cjs +17 -17
- package/dist/evolution/index.js +5 -5
- package/dist/index.cjs +915 -704
- package/dist/index.d.ts +70 -5
- package/dist/index.js +191 -108
- package/dist/parser.cjs +18 -18
- package/dist/parser.js +4 -4
- package/dist/reconstruction/index.cjs +127 -38
- package/dist/reconstruction/index.d.ts +159 -0
- package/dist/reconstruction/index.js +11 -2
- package/dist/runtime.d.ts +1 -0
- package/dist/traitDocs/traitDocs.cjs +8 -8
- package/dist/traitDocs/traitDocs.js +2 -2
- package/dist/traits/index.cjs +566 -471
- package/dist/traits/index.js +93 -11
- package/package.json +20 -16
- package/dist/chunk-DVHZD5HV.cjs +0 -639
- package/dist/chunk-G72754QB.js +0 -625
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk3VBO3IYQ_cjs = require('./chunk-3VBO3IYQ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkTKDDIE3T_cjs = require('./chunk-TKDDIE3T.cjs');
|
|
5
5
|
|
|
6
6
|
// src/parser/TypoDetector.ts
|
|
7
7
|
var TypoDetector = class {
|
|
@@ -1088,7 +1088,7 @@ var _HoloCompositionParser = class _HoloCompositionParser {
|
|
|
1088
1088
|
strict: false,
|
|
1089
1089
|
...options
|
|
1090
1090
|
};
|
|
1091
|
-
this.errorRecovery = new
|
|
1091
|
+
this.errorRecovery = new chunkTKDDIE3T_cjs.ErrorRecovery(this.options.knownTraits);
|
|
1092
1092
|
}
|
|
1093
1093
|
/**
|
|
1094
1094
|
* The error-recovery engine for this parser, seeded with the injected
|
|
@@ -7883,5 +7883,5 @@ exports.PRIMITIVE_SHAPES = PRIMITIVE_SHAPES;
|
|
|
7883
7883
|
exports.parseHolo = parseHolo;
|
|
7884
7884
|
exports.parseHoloPartial = parseHoloPartial;
|
|
7885
7885
|
exports.parseHoloStrict = parseHoloStrict;
|
|
7886
|
-
//# sourceMappingURL=chunk-
|
|
7887
|
-
//# sourceMappingURL=chunk-
|
|
7886
|
+
//# sourceMappingURL=chunk-FGXJPJ3W.cjs.map
|
|
7887
|
+
//# sourceMappingURL=chunk-FGXJPJ3W.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkP65OIMJT_cjs = require('./chunk-P65OIMJT.cjs');
|
|
5
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -14,15 +14,15 @@ chunkZHPMP447_cjs.__export(UnrealCompiler_exports, {
|
|
|
14
14
|
});
|
|
15
15
|
function compileToUnreal(composition, options) {
|
|
16
16
|
const compiler = new exports.UnrealCompiler(options);
|
|
17
|
-
return compiler.compile(composition,
|
|
17
|
+
return compiler.compile(composition, chunkSE2Y5BSL_cjs.createTestCompilerToken());
|
|
18
18
|
}
|
|
19
19
|
exports.UnrealCompiler = void 0;
|
|
20
20
|
var init_UnrealCompiler = chunkZHPMP447_cjs.__esm({
|
|
21
21
|
"src/compiler/UnrealCompiler.ts"() {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
23
|
+
chunkP65OIMJT_cjs.init_DomainBlockCompilerMixin();
|
|
24
24
|
chunkTZCFKZ6Z_cjs.init_PlatformConditionalCompilerMixin();
|
|
25
|
-
exports.UnrealCompiler = class extends
|
|
25
|
+
exports.UnrealCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
26
26
|
constructor(options = {}) {
|
|
27
27
|
super();
|
|
28
28
|
this.compilerName = "UnrealCompiler";
|
|
@@ -656,36 +656,36 @@ var init_UnrealCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
656
656
|
this.emitS("");
|
|
657
657
|
this.emitS("// === v4.2 Domain Blocks ===");
|
|
658
658
|
let blockIdx = 0;
|
|
659
|
-
const compiled =
|
|
659
|
+
const compiled = chunkP65OIMJT_cjs.compileDomainBlocks(
|
|
660
660
|
domainBlocks,
|
|
661
661
|
{
|
|
662
662
|
material: (block) => {
|
|
663
|
-
const mat =
|
|
664
|
-
return
|
|
663
|
+
const mat = chunkP65OIMJT_cjs.compileMaterialBlock(block);
|
|
664
|
+
return chunkP65OIMJT_cjs.materialToUnreal(mat, `DB${blockIdx++}`);
|
|
665
665
|
},
|
|
666
666
|
physics: (block) => {
|
|
667
|
-
const phys =
|
|
668
|
-
return
|
|
667
|
+
const phys = chunkP65OIMJT_cjs.compilePhysicsBlock(block);
|
|
668
|
+
return chunkP65OIMJT_cjs.physicsToUnreal(phys, `DB${blockIdx++}`);
|
|
669
669
|
},
|
|
670
670
|
vfx: (block) => {
|
|
671
|
-
const ps =
|
|
672
|
-
return
|
|
671
|
+
const ps = chunkP65OIMJT_cjs.compileParticleBlock(block);
|
|
672
|
+
return chunkP65OIMJT_cjs.particlesToUnreal(ps, `DB${blockIdx++}`);
|
|
673
673
|
},
|
|
674
674
|
postfx: (block) => {
|
|
675
|
-
const pp =
|
|
676
|
-
return
|
|
675
|
+
const pp = chunkP65OIMJT_cjs.compilePostProcessingBlock(block);
|
|
676
|
+
return chunkP65OIMJT_cjs.postProcessingToUnreal(pp, `DB${blockIdx++}`);
|
|
677
677
|
},
|
|
678
678
|
audio: (block) => {
|
|
679
|
-
const audio =
|
|
680
|
-
return
|
|
679
|
+
const audio = chunkP65OIMJT_cjs.compileAudioSourceBlock(block);
|
|
680
|
+
return chunkP65OIMJT_cjs.audioSourceToUnreal(audio, `DB${blockIdx++}`);
|
|
681
681
|
},
|
|
682
682
|
weather: (block) => {
|
|
683
|
-
const weather =
|
|
684
|
-
return
|
|
683
|
+
const weather = chunkP65OIMJT_cjs.compileWeatherBlock(block);
|
|
684
|
+
return chunkP65OIMJT_cjs.weatherToUnreal(weather);
|
|
685
685
|
},
|
|
686
686
|
dataviz: (block) => {
|
|
687
|
-
const dv =
|
|
688
|
-
return
|
|
687
|
+
const dv = chunkP65OIMJT_cjs.compileDataVizBlock(block);
|
|
688
|
+
return chunkP65OIMJT_cjs.datavizToUnreal(dv, `DB${blockIdx++}`);
|
|
689
689
|
}
|
|
690
690
|
},
|
|
691
691
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -730,5 +730,5 @@ var init_UnrealCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
730
730
|
exports.UnrealCompiler_exports = UnrealCompiler_exports;
|
|
731
731
|
exports.compileToUnreal = compileToUnreal;
|
|
732
732
|
exports.init_UnrealCompiler = init_UnrealCompiler;
|
|
733
|
-
//# sourceMappingURL=chunk-
|
|
734
|
-
//# sourceMappingURL=chunk-
|
|
733
|
+
//# sourceMappingURL=chunk-FHR2AVMA.cjs.map
|
|
734
|
+
//# sourceMappingURL=chunk-FHR2AVMA.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkP65OIMJT_cjs = require('./chunk-P65OIMJT.cjs');
|
|
5
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -1699,10 +1699,10 @@ exports.VisionOSCompiler = void 0;
|
|
|
1699
1699
|
var init_VisionOSCompiler = chunkZHPMP447_cjs.__esm({
|
|
1700
1700
|
"src/compiler/VisionOSCompiler.ts"() {
|
|
1701
1701
|
init_VisionOSTraitMap();
|
|
1702
|
-
|
|
1702
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
1703
1703
|
chunkTZCFKZ6Z_cjs.init_PlatformConditionalCompilerMixin();
|
|
1704
|
-
|
|
1705
|
-
exports.VisionOSCompiler = class extends
|
|
1704
|
+
chunkP65OIMJT_cjs.init_DomainBlockCompilerMixin();
|
|
1705
|
+
exports.VisionOSCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
1706
1706
|
constructor(options = {}) {
|
|
1707
1707
|
super();
|
|
1708
1708
|
this.compilerName = "VisionOSCompiler";
|
|
@@ -1856,31 +1856,31 @@ var init_VisionOSCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
1856
1856
|
this.emit("");
|
|
1857
1857
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
1858
1858
|
let blockIdx = 0;
|
|
1859
|
-
const compiled =
|
|
1859
|
+
const compiled = chunkP65OIMJT_cjs.compileDomainBlocks(
|
|
1860
1860
|
domainBlocks,
|
|
1861
1861
|
{
|
|
1862
1862
|
material: (block) => {
|
|
1863
|
-
const mat =
|
|
1864
|
-
return
|
|
1863
|
+
const mat = chunkP65OIMJT_cjs.compileMaterialBlock(block);
|
|
1864
|
+
return chunkP65OIMJT_cjs.materialToVisionOS(mat, `db${blockIdx++}`);
|
|
1865
1865
|
},
|
|
1866
1866
|
physics: (block) => {
|
|
1867
|
-
const phys =
|
|
1868
|
-
return
|
|
1867
|
+
const phys = chunkP65OIMJT_cjs.compilePhysicsBlock(block);
|
|
1868
|
+
return chunkP65OIMJT_cjs.physicsToVisionOS(phys, `db${blockIdx++}`);
|
|
1869
1869
|
},
|
|
1870
1870
|
vfx: (block) => {
|
|
1871
|
-
const ps =
|
|
1872
|
-
return
|
|
1871
|
+
const ps = chunkP65OIMJT_cjs.compileParticleBlock(block);
|
|
1872
|
+
return chunkP65OIMJT_cjs.particlesToVisionOS(ps, `db${blockIdx++}`);
|
|
1873
1873
|
},
|
|
1874
1874
|
postfx: (block) => {
|
|
1875
|
-
const pp =
|
|
1875
|
+
const pp = chunkP65OIMJT_cjs.compilePostProcessingBlock(block);
|
|
1876
1876
|
return `// Post-Processing: ${pp.keyword} \u2014 configure via RealityKit RenderCallbacks`;
|
|
1877
1877
|
},
|
|
1878
1878
|
audio: (block) => {
|
|
1879
|
-
const audio =
|
|
1880
|
-
return
|
|
1879
|
+
const audio = chunkP65OIMJT_cjs.compileAudioSourceBlock(block);
|
|
1880
|
+
return chunkP65OIMJT_cjs.audioSourceToVisionOS(audio, `db${blockIdx++}`);
|
|
1881
1881
|
},
|
|
1882
1882
|
weather: (block) => {
|
|
1883
|
-
const weather =
|
|
1883
|
+
const weather = chunkP65OIMJT_cjs.compileWeatherBlock(block);
|
|
1884
1884
|
const w = weather;
|
|
1885
1885
|
const layers = w.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
1886
1886
|
return `// Weather: ${w.keyword} "${w.name || ""}" \u2014 implement via custom RealityKit particles
|
|
@@ -2796,5 +2796,5 @@ exports.getTraitMapping = getTraitMapping;
|
|
|
2796
2796
|
exports.init_VisionOSCompiler = init_VisionOSCompiler;
|
|
2797
2797
|
exports.init_VisionOSTraitMap = init_VisionOSTraitMap;
|
|
2798
2798
|
exports.listAllTraits = listAllTraits;
|
|
2799
|
-
//# sourceMappingURL=chunk-
|
|
2800
|
-
//# sourceMappingURL=chunk-
|
|
2799
|
+
//# sourceMappingURL=chunk-FOM36K5I.cjs.map
|
|
2800
|
+
//# sourceMappingURL=chunk-FOM36K5I.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
4
4
|
|
|
5
5
|
// src/compiler/QuantumCircuitCompiler.ts
|
|
6
|
-
|
|
6
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
7
7
|
function qubitsForMolecule(atoms) {
|
|
8
8
|
const orbitalCount = atoms.reduce((sum, a) => {
|
|
9
9
|
if (a.symbol === "H") return sum + 1;
|
|
@@ -187,7 +187,7 @@ function generateStubCircuit() {
|
|
|
187
187
|
]
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
var QuantumCircuitCompiler = class extends
|
|
190
|
+
var QuantumCircuitCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
191
191
|
constructor() {
|
|
192
192
|
super(...arguments);
|
|
193
193
|
this.compilerName = "QuantumCircuitCompiler";
|
|
@@ -328,5 +328,5 @@ var QuantumCircuitCompiler = class extends chunkZK7KX5CD_cjs.CompilerBase {
|
|
|
328
328
|
};
|
|
329
329
|
|
|
330
330
|
exports.QuantumCircuitCompiler = QuantumCircuitCompiler;
|
|
331
|
-
//# sourceMappingURL=chunk-
|
|
332
|
-
//# sourceMappingURL=chunk-
|
|
331
|
+
//# sourceMappingURL=chunk-GGH3ZYDB.cjs.map
|
|
332
|
+
//# sourceMappingURL=chunk-GGH3ZYDB.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-YDSNDCV3.js';
|
|
2
2
|
|
|
3
3
|
// src/compiler/QuantumCircuitCompiler.ts
|
|
4
4
|
init_CompilerBase();
|
|
@@ -326,5 +326,5 @@ var QuantumCircuitCompiler = class extends CompilerBase {
|
|
|
326
326
|
};
|
|
327
327
|
|
|
328
328
|
export { QuantumCircuitCompiler };
|
|
329
|
-
//# sourceMappingURL=chunk-
|
|
330
|
-
//# sourceMappingURL=chunk-
|
|
329
|
+
//# sourceMappingURL=chunk-GI5YYZH6.js.map
|
|
330
|
+
//# sourceMappingURL=chunk-GI5YYZH6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
4
4
|
var chunk4FIBOJW6_cjs = require('./chunk-4FIBOJW6.cjs');
|
|
5
5
|
var chunkN74QRJGP_cjs = require('./chunk-N74QRJGP.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
@@ -12,7 +12,7 @@ function generateViewFile(compiler, composition) {
|
|
|
12
12
|
compiler.indentLevel = 0;
|
|
13
13
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
14
14
|
compiler.emit(
|
|
15
|
-
`// Source: composition "${
|
|
15
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
16
16
|
);
|
|
17
17
|
compiler.emit(`// iOS: ${compiler.options.iosVersion}`);
|
|
18
18
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -232,7 +232,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
232
232
|
compiler.lines = [];
|
|
233
233
|
compiler.indentLevel = 0;
|
|
234
234
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
235
|
-
compiler.emit(`// Scene: ${
|
|
235
|
+
compiler.emit(`// Scene: ${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
236
236
|
compiler.emit("");
|
|
237
237
|
compiler.emit("import Foundation");
|
|
238
238
|
compiler.emit("import SceneKit");
|
|
@@ -250,7 +250,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
250
250
|
compiler.emit("var nodes: [String: SCNNode] = [:]");
|
|
251
251
|
for (const obj of composition.objects || []) {
|
|
252
252
|
const varName = compiler.sanitizeName(obj.name);
|
|
253
|
-
compiler.emit(`nodes["${
|
|
253
|
+
compiler.emit(`nodes["${chunkSE2Y5BSL_cjs.escapeStringValue(obj.name, "Swift")}"] = make${varName}()`);
|
|
254
254
|
}
|
|
255
255
|
compiler.emit("return nodes");
|
|
256
256
|
compiler.indentLevel--;
|
|
@@ -283,7 +283,7 @@ function generateStateFile(compiler, composition) {
|
|
|
283
283
|
compiler.lines = [];
|
|
284
284
|
compiler.indentLevel = 0;
|
|
285
285
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
286
|
-
compiler.emit(`// State: ${
|
|
286
|
+
compiler.emit(`// State: ${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
287
287
|
compiler.emit("");
|
|
288
288
|
compiler.emit("import Foundation");
|
|
289
289
|
compiler.emit("import SceneKit");
|
|
@@ -300,7 +300,7 @@ function generateStateFile(compiler, composition) {
|
|
|
300
300
|
const swiftType = compiler.toSwiftType(prop.value);
|
|
301
301
|
const swiftValue = compiler.toSwiftValue(prop.value);
|
|
302
302
|
compiler.emit(
|
|
303
|
-
`@Published var ${
|
|
303
|
+
`@Published var ${chunkSE2Y5BSL_cjs.escapeStringValue(prop.key, "Swift")}: ${swiftType} = ${swiftValue}`
|
|
304
304
|
);
|
|
305
305
|
}
|
|
306
306
|
compiler.emit("");
|
|
@@ -454,7 +454,7 @@ function generateInfoPlist(compiler, composition) {
|
|
|
454
454
|
<true/>
|
|
455
455
|
</dict>
|
|
456
456
|
<key>CFBundleDisplayName</key>
|
|
457
|
-
<string>${
|
|
457
|
+
<string>${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "XML")}</string>
|
|
458
458
|
<key>MinimumOSVersion</key>
|
|
459
459
|
<string>${compiler.options.iosVersion}</string>
|
|
460
460
|
</dict>
|
|
@@ -488,7 +488,7 @@ function compileObjectFactory(compiler, obj) {
|
|
|
488
488
|
compiler.emit("geometry.materials = [material]");
|
|
489
489
|
compiler.emit("");
|
|
490
490
|
compiler.emit("let node = SCNNode(geometry: geometry)");
|
|
491
|
-
compiler.emit(`node.name = "${
|
|
491
|
+
compiler.emit(`node.name = "${chunkSE2Y5BSL_cjs.escapeStringValue(obj.name, "Swift")}"`);
|
|
492
492
|
const pos = compiler.findObjProp(obj, "position");
|
|
493
493
|
if (pos && Array.isArray(pos)) {
|
|
494
494
|
compiler.emit(`node.position = SCNVector3(${pos[0]}, ${pos[1]}, ${pos[2]})`);
|
|
@@ -547,7 +547,7 @@ function compileLightFactory(compiler, light) {
|
|
|
547
547
|
}
|
|
548
548
|
compiler.emit("");
|
|
549
549
|
compiler.emit("let node = SCNNode()");
|
|
550
|
-
compiler.emit(`node.name = "${
|
|
550
|
+
compiler.emit(`node.name = "${chunkSE2Y5BSL_cjs.escapeStringValue(light.name, "Swift")}"`);
|
|
551
551
|
compiler.emit("node.light = light");
|
|
552
552
|
const posProp = light.properties.find((p) => p.key === "position");
|
|
553
553
|
if (posProp && Array.isArray(posProp.value)) {
|
|
@@ -594,7 +594,7 @@ function compileAction(compiler, action) {
|
|
|
594
594
|
const name = compiler.sanitizeName(action.name);
|
|
595
595
|
compiler.emit(`func ${name}() {`);
|
|
596
596
|
compiler.indentLevel++;
|
|
597
|
-
compiler.emit(`print("[HoloScript] Action: ${
|
|
597
|
+
compiler.emit(`print("[HoloScript] Action: ${chunkSE2Y5BSL_cjs.escapeStringValue(action.name, "Swift")}")`);
|
|
598
598
|
compiler.emit("// Action implementation");
|
|
599
599
|
compiler.indentLevel--;
|
|
600
600
|
compiler.emit("}");
|
|
@@ -680,14 +680,14 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
680
680
|
});
|
|
681
681
|
const headingConfig = typeof headingTrait === "string" ? {} : headingTrait?.config || {};
|
|
682
682
|
const heading = headingConfig.degrees ?? 0;
|
|
683
|
-
compiler.emit(`// Geo-anchor: ${
|
|
683
|
+
compiler.emit(`// Geo-anchor: ${chunkSE2Y5BSL_cjs.escapeStringValue(obj.name, "Swift")}`);
|
|
684
684
|
if (usesARGeoAnchor) {
|
|
685
685
|
compiler.emit(
|
|
686
|
-
`createGeoAnchor(name: "${
|
|
686
|
+
`createGeoAnchor(name: "${chunkSE2Y5BSL_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt}, heading: ${heading})`
|
|
687
687
|
);
|
|
688
688
|
} else {
|
|
689
689
|
compiler.emit(
|
|
690
|
-
`createLocationAnchor(name: "${
|
|
690
|
+
`createLocationAnchor(name: "${chunkSE2Y5BSL_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt})`
|
|
691
691
|
);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -814,7 +814,7 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
814
814
|
}
|
|
815
815
|
var init_IOSARGenerators = chunkZHPMP447_cjs.__esm({
|
|
816
816
|
"src/compiler/IOSARGenerators.ts"() {
|
|
817
|
-
|
|
817
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
818
818
|
}
|
|
819
819
|
});
|
|
820
820
|
|
|
@@ -834,7 +834,7 @@ function generateRoomPlanFile(compiler, composition) {
|
|
|
834
834
|
const cls = compiler.options.className;
|
|
835
835
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 RoomPlan integration");
|
|
836
836
|
compiler.emit(
|
|
837
|
-
`// Source: composition "${
|
|
837
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
838
838
|
);
|
|
839
839
|
compiler.emit("// Requires iOS 16.0+, RoomPlan framework");
|
|
840
840
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1192,7 +1192,7 @@ function generateLiDARScannerFile(compiler, composition) {
|
|
|
1192
1192
|
const traits = collectLiDARTraits(composition);
|
|
1193
1193
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 LiDAR Scanner integration");
|
|
1194
1194
|
compiler.emit(
|
|
1195
|
-
`// Source: composition "${
|
|
1195
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1196
1196
|
);
|
|
1197
1197
|
compiler.emit("// Requires iOS 15.0+, device with LiDAR sensor");
|
|
1198
1198
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1674,7 +1674,7 @@ function generateNPUSceneFile(compiler, composition) {
|
|
|
1674
1674
|
const defaults = chunkN74QRJGP_cjs.NPU_SCENE_DEFAULTS;
|
|
1675
1675
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 NPU Scene Understanding");
|
|
1676
1676
|
compiler.emit(
|
|
1677
|
-
`// Source: composition "${
|
|
1677
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1678
1678
|
);
|
|
1679
1679
|
compiler.emit("// Requires iOS 15.0+, Vision + CoreML frameworks");
|
|
1680
1680
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2080,7 +2080,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2080
2080
|
const cls = compiler.options.className;
|
|
2081
2081
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Portal AR integration");
|
|
2082
2082
|
compiler.emit(
|
|
2083
|
-
`// Source: composition "${
|
|
2083
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2084
2084
|
);
|
|
2085
2085
|
compiler.emit("// Requires iOS 15.0+, ARKit with scene reconstruction");
|
|
2086
2086
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2414,7 +2414,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2414
2414
|
}
|
|
2415
2415
|
var init_IOSSpatialGenerators = chunkZHPMP447_cjs.__esm({
|
|
2416
2416
|
"src/compiler/IOSSpatialGenerators.ts"() {
|
|
2417
|
-
|
|
2417
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
2418
2418
|
chunk4FIBOJW6_cjs.init_roomplan();
|
|
2419
2419
|
chunk4FIBOJW6_cjs.init_lidar_scanner();
|
|
2420
2420
|
chunkN74QRJGP_cjs.init_npu_scene();
|
|
@@ -2448,7 +2448,7 @@ function generateHandTrackingFile(compiler, composition) {
|
|
|
2448
2448
|
const hasToSpatial = compiler.compositionHasTrait(composition, "camera_hand_to_spatial");
|
|
2449
2449
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Hand Tracking integration");
|
|
2450
2450
|
compiler.emit(
|
|
2451
|
-
`// Source: composition "${
|
|
2451
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2452
2452
|
);
|
|
2453
2453
|
compiler.emit("// Requires iOS 14.0+, Vision framework");
|
|
2454
2454
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2748,7 +2748,7 @@ function generateObjectCaptureFile(compiler, composition) {
|
|
|
2748
2748
|
const traits = collectObjectCaptureTraits(composition);
|
|
2749
2749
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Object Capture integration");
|
|
2750
2750
|
compiler.emit(
|
|
2751
|
-
`// Source: composition "${
|
|
2751
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2752
2752
|
);
|
|
2753
2753
|
compiler.emit("// Requires iOS 17.0+, RealityKit Object Capture API");
|
|
2754
2754
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3279,7 +3279,7 @@ function generateSharePlayFile(compiler, composition) {
|
|
|
3279
3279
|
const cls = compiler.options.className;
|
|
3280
3280
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 SharePlay Multi-User AR");
|
|
3281
3281
|
compiler.emit(
|
|
3282
|
-
`// Source: composition "${
|
|
3282
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3283
3283
|
);
|
|
3284
3284
|
compiler.emit("// Requires iOS 15.4+, GroupActivities framework");
|
|
3285
3285
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3885,7 +3885,7 @@ function generateFaceTrackingFile(compiler, composition) {
|
|
|
3885
3885
|
const hasTongue = compiler.compositionHasTrait(composition, "face_tongue_detect");
|
|
3886
3886
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 TrueDepth Face Tracking");
|
|
3887
3887
|
compiler.emit(
|
|
3888
|
-
`// Source: composition "${
|
|
3888
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3889
3889
|
);
|
|
3890
3890
|
compiler.emit("// Requires iOS 11.0+, ARKit, TrueDepth camera");
|
|
3891
3891
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4279,7 +4279,7 @@ function generateUWBPositioningFile(compiler, composition) {
|
|
|
4279
4279
|
const cls = compiler.options.className;
|
|
4280
4280
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 UWB Positioning");
|
|
4281
4281
|
compiler.emit(
|
|
4282
|
-
`// Source: composition "${
|
|
4282
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4283
4283
|
);
|
|
4284
4284
|
compiler.emit("// Requires iOS 16+, U1/U2 chip (iPhone 11+), Nearby Interaction framework");
|
|
4285
4285
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4809,7 +4809,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
4809
4809
|
const traits = collectSpatialAudioTraits(composition);
|
|
4810
4810
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 AirPods Spatial Audio");
|
|
4811
4811
|
compiler.emit(
|
|
4812
|
-
`// Source: composition "${
|
|
4812
|
+
`// Source: composition "${chunkSE2Y5BSL_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4813
4813
|
);
|
|
4814
4814
|
compiler.emit("// Requires iOS 15+, AirPods Pro/Max with head tracking");
|
|
4815
4815
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -5245,7 +5245,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
5245
5245
|
}
|
|
5246
5246
|
var init_IOSPeripheralGenerators = chunkZHPMP447_cjs.__esm({
|
|
5247
5247
|
"src/compiler/IOSPeripheralGenerators.ts"() {
|
|
5248
|
-
|
|
5248
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
5249
5249
|
chunkN74QRJGP_cjs.init_camera_hand_tracking();
|
|
5250
5250
|
chunk4FIBOJW6_cjs.init_face_tracking();
|
|
5251
5251
|
chunk4FIBOJW6_cjs.init_ios_object_capture();
|
|
@@ -5268,11 +5268,11 @@ function compileToIOS(composition, options) {
|
|
|
5268
5268
|
exports.IOSCompiler = void 0;
|
|
5269
5269
|
var init_IOSCompiler = chunkZHPMP447_cjs.__esm({
|
|
5270
5270
|
"src/compiler/IOSCompiler.ts"() {
|
|
5271
|
-
|
|
5271
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
5272
5272
|
init_IOSARGenerators();
|
|
5273
5273
|
init_IOSSpatialGenerators();
|
|
5274
5274
|
init_IOSPeripheralGenerators();
|
|
5275
|
-
exports.IOSCompiler = class extends
|
|
5275
|
+
exports.IOSCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
5276
5276
|
constructor(options = {}) {
|
|
5277
5277
|
super();
|
|
5278
5278
|
this.compilerName = "IOSCompiler";
|
|
@@ -5423,5 +5423,5 @@ var init_IOSCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
5423
5423
|
exports.IOSCompiler_exports = IOSCompiler_exports;
|
|
5424
5424
|
exports.compileToIOS = compileToIOS;
|
|
5425
5425
|
exports.init_IOSCompiler = init_IOSCompiler;
|
|
5426
|
-
//# sourceMappingURL=chunk-
|
|
5427
|
-
//# sourceMappingURL=chunk-
|
|
5426
|
+
//# sourceMappingURL=chunk-GYJLP4BO.cjs.map
|
|
5427
|
+
//# sourceMappingURL=chunk-GYJLP4BO.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkP65OIMJT_cjs = require('./chunk-P65OIMJT.cjs');
|
|
4
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
5
5
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -59,10 +59,10 @@ chunkZHPMP447_cjs.__export(GodotCompiler_exports, {
|
|
|
59
59
|
exports.GodotCompiler = void 0;
|
|
60
60
|
var init_GodotCompiler = chunkZHPMP447_cjs.__esm({
|
|
61
61
|
"src/compiler/GodotCompiler.ts"() {
|
|
62
|
-
|
|
62
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
63
63
|
init_godot_acoustic_bus();
|
|
64
|
-
|
|
65
|
-
exports.GodotCompiler = class extends
|
|
64
|
+
chunkP65OIMJT_cjs.init_DomainBlockCompilerMixin();
|
|
65
|
+
exports.GodotCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
66
66
|
constructor(options = {}) {
|
|
67
67
|
super();
|
|
68
68
|
this.compilerName = "GodotCompiler";
|
|
@@ -170,59 +170,59 @@ var init_GodotCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
170
170
|
this.emit("");
|
|
171
171
|
this.emit("# === v4.2 Domain Blocks ===");
|
|
172
172
|
let blockIdx = 0;
|
|
173
|
-
const compiled =
|
|
173
|
+
const compiled = chunkP65OIMJT_cjs.compileDomainBlocks(
|
|
174
174
|
domainBlocks,
|
|
175
175
|
{
|
|
176
176
|
material: (block) => {
|
|
177
|
-
const mat =
|
|
178
|
-
return
|
|
177
|
+
const mat = chunkP65OIMJT_cjs.compileMaterialBlock(block);
|
|
178
|
+
return chunkP65OIMJT_cjs.materialToGodot(mat, `db${blockIdx++}`);
|
|
179
179
|
},
|
|
180
180
|
physics: (block) => {
|
|
181
|
-
const phys =
|
|
182
|
-
return
|
|
181
|
+
const phys = chunkP65OIMJT_cjs.compilePhysicsBlock(block);
|
|
182
|
+
return chunkP65OIMJT_cjs.physicsToGodot(phys, `db${blockIdx++}`);
|
|
183
183
|
},
|
|
184
184
|
vfx: (block) => {
|
|
185
|
-
const ps =
|
|
186
|
-
return
|
|
185
|
+
const ps = chunkP65OIMJT_cjs.compileParticleBlock(block);
|
|
186
|
+
return chunkP65OIMJT_cjs.particlesToGodot(ps, `db${blockIdx++}`);
|
|
187
187
|
},
|
|
188
188
|
postfx: (block) => {
|
|
189
|
-
const pp =
|
|
190
|
-
return
|
|
189
|
+
const pp = chunkP65OIMJT_cjs.compilePostProcessingBlock(block);
|
|
190
|
+
return chunkP65OIMJT_cjs.postProcessingToGodot(pp);
|
|
191
191
|
},
|
|
192
192
|
audio: (block) => {
|
|
193
|
-
const audio =
|
|
194
|
-
return
|
|
193
|
+
const audio = chunkP65OIMJT_cjs.compileAudioSourceBlock(block);
|
|
194
|
+
return chunkP65OIMJT_cjs.audioSourceToGodot(audio, `db${blockIdx++}`);
|
|
195
195
|
},
|
|
196
196
|
weather: (block) => {
|
|
197
|
-
const weather =
|
|
198
|
-
return
|
|
197
|
+
const weather = chunkP65OIMJT_cjs.compileWeatherBlock(block);
|
|
198
|
+
return chunkP65OIMJT_cjs.weatherToGodot(weather);
|
|
199
199
|
},
|
|
200
200
|
narrative: (block) => {
|
|
201
|
-
const narr =
|
|
202
|
-
return
|
|
201
|
+
const narr = chunkP65OIMJT_cjs.compileNarrativeBlock(block);
|
|
202
|
+
return chunkP65OIMJT_cjs.narrativeToGodot(narr);
|
|
203
203
|
},
|
|
204
204
|
payment: (block) => {
|
|
205
|
-
const pay =
|
|
206
|
-
return
|
|
205
|
+
const pay = chunkP65OIMJT_cjs.compilePaymentBlock(block);
|
|
206
|
+
return chunkP65OIMJT_cjs.paymentToGodot(pay);
|
|
207
207
|
},
|
|
208
208
|
healthcare: (block) => {
|
|
209
|
-
const h =
|
|
210
|
-
return
|
|
209
|
+
const h = chunkP65OIMJT_cjs.compileHealthcareBlock(block);
|
|
210
|
+
return chunkP65OIMJT_cjs.healthcareToGodot(h);
|
|
211
211
|
},
|
|
212
212
|
robotics: (block) => {
|
|
213
|
-
const r =
|
|
214
|
-
return
|
|
213
|
+
const r = chunkP65OIMJT_cjs.compileRoboticsBlock(block);
|
|
214
|
+
return chunkP65OIMJT_cjs.roboticsToGodot(r);
|
|
215
215
|
},
|
|
216
|
-
iot: (block) =>
|
|
217
|
-
dataviz: (block) =>
|
|
218
|
-
education: (block) =>
|
|
219
|
-
music: (block) =>
|
|
220
|
-
architecture: (block) =>
|
|
221
|
-
web3: (block) =>
|
|
222
|
-
procedural: (block) =>
|
|
223
|
-
rendering: (block) =>
|
|
224
|
-
navigation: (block) =>
|
|
225
|
-
input: (block) =>
|
|
216
|
+
iot: (block) => chunkP65OIMJT_cjs.iotToGodot(chunkP65OIMJT_cjs.compileIoTBlock(block)),
|
|
217
|
+
dataviz: (block) => chunkP65OIMJT_cjs.datavizToGodot(chunkP65OIMJT_cjs.compileDataVizBlock(block)),
|
|
218
|
+
education: (block) => chunkP65OIMJT_cjs.educationToGodot(chunkP65OIMJT_cjs.compileEducationBlock(block)),
|
|
219
|
+
music: (block) => chunkP65OIMJT_cjs.musicToGodot(chunkP65OIMJT_cjs.compileMusicBlock(block)),
|
|
220
|
+
architecture: (block) => chunkP65OIMJT_cjs.architectureToGodot(chunkP65OIMJT_cjs.compileArchitectureBlock(block)),
|
|
221
|
+
web3: (block) => chunkP65OIMJT_cjs.web3ToGodot(chunkP65OIMJT_cjs.compileWeb3Block(block)),
|
|
222
|
+
procedural: (block) => chunkP65OIMJT_cjs.proceduralToGodot(chunkP65OIMJT_cjs.compileProceduralBlock(block)),
|
|
223
|
+
rendering: (block) => chunkP65OIMJT_cjs.renderingToGodot(chunkP65OIMJT_cjs.compileRenderingBlock(block)),
|
|
224
|
+
navigation: (block) => chunkP65OIMJT_cjs.navigationToGodot(chunkP65OIMJT_cjs.compileNavigationBlock(block)),
|
|
225
|
+
input: (block) => chunkP65OIMJT_cjs.inputToGodot(chunkP65OIMJT_cjs.compileInputBlock(block))
|
|
226
226
|
},
|
|
227
227
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "GDScript")}"`
|
|
228
228
|
);
|
|
@@ -689,5 +689,5 @@ var init_GodotCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
689
689
|
|
|
690
690
|
exports.GodotCompiler_exports = GodotCompiler_exports;
|
|
691
691
|
exports.init_GodotCompiler = init_GodotCompiler;
|
|
692
|
-
//# sourceMappingURL=chunk-
|
|
693
|
-
//# sourceMappingURL=chunk-
|
|
692
|
+
//# sourceMappingURL=chunk-HCONR4J6.cjs.map
|
|
693
|
+
//# sourceMappingURL=chunk-HCONR4J6.cjs.map
|
|
@@ -118,6 +118,31 @@ var TRAIT_DOCS;
|
|
|
118
118
|
var init_traitDocs = __esm({
|
|
119
119
|
"src/traitDocs/traitDocs.ts"() {
|
|
120
120
|
TRAIT_DOCS = {
|
|
121
|
+
// ============================================================================
|
|
122
|
+
// Governance Traits
|
|
123
|
+
// ============================================================================
|
|
124
|
+
freeze_when: {
|
|
125
|
+
name: "FreezeWhenTrait",
|
|
126
|
+
annotation: "@freeze_when",
|
|
127
|
+
description: 'Declares a self-controlling Freeze RULE: gate `scope` WHEN `signal` trips, and auto-lift the moment it clears. The freeze is DERIVED from a live signal, never a stored "FROZEN" flag, so it cannot go stale. Native/fix/infra work is always exempt. Projected to a freeze-registry.json rule that a controller evaluates on a cadence.',
|
|
128
|
+
category: "utility",
|
|
129
|
+
properties: [
|
|
130
|
+
{ name: "id", type: "string", description: "Stable rule id \u2014 the registry key.", required: true },
|
|
131
|
+
{ name: "scope", type: "string", description: 'The change-class this freeze gates (e.g. "new-feature-work").', required: true },
|
|
132
|
+
{ name: "signal", type: "string", description: 'Live trigger: "required-gate:red" (a gate command fails) or "surface-absent:<path>" (a consume surface is missing).', required: true },
|
|
133
|
+
{ name: "unfreeze", type: "string", description: "Human-readable lift condition; the derived state auto-lifts when the signal clears.", required: true },
|
|
134
|
+
{ name: "exempt", type: "string[]", description: "Labels always allowed even under this freeze \u2014 the native-first guarantee.", default: '["fix", "native-format", "infra-repair"]' },
|
|
135
|
+
{ name: "severity", type: '"advisory" | "blocking"', description: "advisory surfaces the freeze; blocking gates the scope.", default: '"advisory"' },
|
|
136
|
+
{ name: "reason", type: "string", description: "Why the freeze exists (shown only while active).", default: '""' },
|
|
137
|
+
{ name: "repair", type: "string", description: "Optional self-heal repair routed while the freeze is active.", default: '""' }
|
|
138
|
+
],
|
|
139
|
+
methods: [],
|
|
140
|
+
events: [
|
|
141
|
+
{ name: "freeze_declared", description: "Emitted onAttach with the derived rule.", payload: "{ rule, derived: true, nativeExempt: true }" }
|
|
142
|
+
],
|
|
143
|
+
example: '@freeze_when(id: "features-on-red-gate", scope: "new-feature-work", signal: "required-gate:red", unfreeze: "gate passes")',
|
|
144
|
+
since: "6.0"
|
|
145
|
+
},
|
|
121
146
|
// ============================================================================
|
|
122
147
|
// Physics Traits
|
|
123
148
|
// ============================================================================
|
|
@@ -2309,5 +2334,5 @@ orb rune_loom_tapestry {
|
|
|
2309
2334
|
});
|
|
2310
2335
|
|
|
2311
2336
|
export { TRAIT_DOCS, formatTraitDocAsMarkdown, formatTraitDocCompact, getAllTraitNames, getTraitDoc, getTraitsByCategory, init_traitDocs };
|
|
2312
|
-
//# sourceMappingURL=chunk-
|
|
2313
|
-
//# sourceMappingURL=chunk-
|
|
2337
|
+
//# sourceMappingURL=chunk-IA7FCSRY.js.map
|
|
2338
|
+
//# sourceMappingURL=chunk-IA7FCSRY.js.map
|