@holoscript/core 8.0.13 → 8.0.15
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 +20 -13
- package/bin/holo-decision.mjs +133 -0
- package/bin/holoscript.cjs +0 -0
- package/dist/{GLTFPipeline-L76YTXKA.js → GLTFPipeline-FRBZIATS.js} +7 -7
- package/dist/{GLTFPipeline-ZWJN7GI6.cjs → GLTFPipeline-MTPP444P.cjs} +11 -11
- package/dist/{HoloCompositionParser-P4Y3CXKQ.js → HoloCompositionParser-2GVQAZ2X.js} +7 -7
- package/dist/HoloCompositionParser-3NDF6BMX.cjs +45 -0
- package/dist/HoloScriptPlusParser-URSIBEAW.cjs +30 -0
- package/dist/HoloScriptPlusParser-YCV6L7GI.js +13 -0
- package/dist/{HoloScriptRuntime-YBYXJHJN.cjs → HoloScriptRuntime-CRWI6C3P.cjs} +5 -5
- package/dist/{HoloScriptRuntime-UTRLJI5L.js → HoloScriptRuntime-IAZGHPFP.js} +4 -4
- package/dist/{SceneIRCompiler-63KA3M2F.js → SceneIRCompiler-BJQMKLWL.js} +7 -7
- package/dist/{SceneIRCompiler-KWUFHZ4O.cjs → SceneIRCompiler-RTPPDQAV.cjs} +12 -12
- package/dist/{chunk-FWCHPCD4.js → chunk-22AULOAL.js} +5 -5
- package/dist/{chunk-G35CAQ7I.cjs → chunk-2DJIS7TH.cjs} +5 -5
- package/dist/{chunk-LHUDAJQT.cjs → chunk-2PVEXEOL.cjs} +5 -5
- package/dist/{chunk-WWNCM473.js → chunk-2UP2J3OK.js} +4 -4
- package/dist/{chunk-HVX7QQYK.js → chunk-3AUYBQ5I.js} +3 -3
- package/dist/{chunk-TSTFYGGX.js → chunk-3MQAOMKD.js} +3 -3
- package/dist/{chunk-FWKEY4LD.js → chunk-4AGNARX6.js} +3 -3
- package/dist/{chunk-WNYXT4TE.cjs → chunk-4CQ7ULXZ.cjs} +3 -3
- package/dist/{chunk-U3D4SYQ5.js → chunk-5LCJDX5A.js} +3 -3
- package/dist/{chunk-IK6Z2HNC.js → chunk-6OQHLNTT.js} +2 -2
- package/dist/{chunk-EI3J6LTW.cjs → chunk-6RDHWSZM.cjs} +217 -217
- package/dist/{chunk-77QI552M.js → chunk-7AY66PZP.js} +3 -3
- package/dist/{chunk-7IDJDMPU.cjs → chunk-7FYSSI3C.cjs} +27 -2
- package/dist/{chunk-BP4KTMLY.js → chunk-7HDRN5BW.js} +4 -4
- package/dist/{chunk-SQAAWO4V.cjs → chunk-7YKNV2BE.cjs} +5 -5
- package/dist/{chunk-WTH23ISI.js → chunk-AAUQTR7I.js} +4 -4
- package/dist/{chunk-OC6GV5QH.cjs → chunk-AN3ZH7M7.cjs} +38 -38
- package/dist/{chunk-YW3I2FQL.js → chunk-ANMME7XT.js} +4 -2
- package/dist/{chunk-A4OOLBZD.js → chunk-ATRAK4RC.js} +5 -5
- package/dist/{chunk-BQJ3YBF3.js → chunk-AUF7HFOO.js} +724 -647
- package/dist/{chunk-2X3IPCBK.cjs → chunk-AUMTQV64.cjs} +7 -7
- package/dist/chunk-AUU4ACJP.cjs +1605 -0
- package/dist/{chunk-QQFB4RT2.cjs → chunk-BTVHY3UB.cjs} +2 -2
- package/dist/{chunk-ZK7KX5CD.cjs → chunk-CMEINO5I.cjs} +190 -74
- package/dist/{chunk-BCP4E7MD.cjs → chunk-CRUIGXF7.cjs} +26 -10
- package/dist/{chunk-2E6PP5UE.cjs → chunk-E2SNPMBO.cjs} +11 -11
- package/dist/{chunk-2BYAUHBO.js → chunk-E4YS5SIZ.js} +90 -25
- package/dist/{chunk-KFVNCW4Q.js → chunk-EKNWUSGW.js} +3 -3
- package/dist/{chunk-JEJ7TT54.js → chunk-ETIJOUIO.js} +4 -4
- package/dist/{chunk-FRSKLX6I.js → chunk-F33KLYOS.js} +12 -9
- package/dist/{chunk-GGR7QUKK.cjs → chunk-F47FEV4X.cjs} +40 -40
- package/dist/{chunk-J3UHV5T4.cjs → chunk-FCGTI7FO.cjs} +4 -4
- package/dist/{chunk-RRQIAJLQ.cjs → chunk-FGTXAVKG.cjs} +5 -5
- package/dist/{chunk-2KKOYZYI.cjs → chunk-FPGYWNNA.cjs} +5 -5
- package/dist/{chunk-65S62L4D.cjs → chunk-FQ4MYZYU.cjs} +20 -20
- package/dist/{chunk-UGQ3QNV6.js → chunk-FT4FGTR6.js} +24 -8
- package/dist/{chunk-Q4K2GEMW.cjs → chunk-FVNV4WHQ.cjs} +20 -17
- package/dist/{chunk-SJIRCTIS.cjs → chunk-HSGJFCVJ.cjs} +2 -2
- package/dist/{chunk-B3CWTCK2.js → chunk-IA7FCSRY.js} +27 -2
- package/dist/{chunk-OIBRWLPY.cjs → chunk-ILO2KMER.cjs} +55 -4
- package/dist/{chunk-ZRPALBQB.cjs → chunk-IPBSNGAN.cjs} +92 -27
- package/dist/{chunk-FHVPN7BN.js → chunk-IX2U3RQT.js} +3 -3
- package/dist/{chunk-QEDMOGF3.cjs → chunk-IYK6LMQ7.cjs} +7 -7
- package/dist/{chunk-G6EKZHXY.js → chunk-J3VVM6GV.js} +4 -4
- package/dist/{chunk-LMB555QB.cjs → chunk-J74S4ZMF.cjs} +18 -18
- package/dist/{chunk-36NPLOI4.cjs → chunk-JERWCCEJ.cjs} +4 -2
- package/dist/{chunk-RVNXBF2M.js → chunk-JTDDLCSP.js} +4 -4
- package/dist/{chunk-VTEXJOSD.cjs → chunk-K53L47NH.cjs} +30 -30
- package/dist/{chunk-IJU6AS67.cjs → chunk-LJTM5ONX.cjs} +23 -23
- package/dist/{chunk-G6KACNMO.js → chunk-LJVVOVA6.js} +4 -4
- package/dist/{chunk-PDXX5UI4.cjs → chunk-LNJKBQ2B.cjs} +38 -38
- package/dist/{chunk-EM2OGPYE.js → chunk-M2GDE3NV.js} +3 -3
- package/dist/{chunk-CP7V3ATL.js → chunk-MSZNGI5P.js} +52 -5
- package/dist/{chunk-P7JEKJTZ.cjs → chunk-N2BOTBPG.cjs} +27 -16
- package/dist/{chunk-LB3ZZMKT.cjs → chunk-NFALJJCH.cjs} +12 -12
- package/dist/{chunk-XF63CZ7E.cjs → chunk-NRZRBK25.cjs} +6 -6
- package/dist/{chunk-GZPUA2TL.cjs → chunk-NTSLNIY7.cjs} +10 -10
- package/dist/{chunk-Y57AVOM2.cjs → chunk-NZJOAWJM.cjs} +4 -4
- package/dist/{chunk-RXQNRZ5F.js → chunk-OG7RKWWX.js} +3 -3
- package/dist/{chunk-VVAAZITA.cjs → chunk-OQVHCYY4.cjs} +5 -5
- package/dist/{chunk-PJFTTSKE.js → chunk-PFZ5WLIP.js} +4 -4
- package/dist/{chunk-PXVAPGTR.cjs → chunk-PHLNABJD.cjs} +3788 -1138
- package/dist/{chunk-SQXAZHDG.js → chunk-PLK3DLTF.js} +3 -3
- package/dist/{chunk-QBY7LRN2.js → chunk-PMACVMHL.js} +3 -3
- package/dist/{chunk-DJ5BNRIS.js → chunk-PV2OXNP5.js} +3684 -1041
- package/dist/{chunk-F3YT6GUF.cjs → chunk-Q6VW7MGX.cjs} +14 -14
- package/dist/{chunk-DUG3OQAS.js → chunk-QC3CAVFN.js} +187 -70
- package/dist/{chunk-NQN5LFN4.cjs → chunk-QKLEDRHN.cjs} +19 -19
- package/dist/{chunk-2EGGAZT3.js → chunk-QS27OYBU.js} +3 -3
- package/dist/{chunk-4376VHNJ.js → chunk-RUB7WL6C.js} +3 -3
- package/dist/{chunk-5LVFTGKH.js → chunk-TW2AH2ZS.js} +3 -3
- package/dist/{chunk-AATYYLYK.js → chunk-TZM6DKSJ.js} +18 -7
- package/dist/{chunk-ESSEF6U2.js → chunk-U227RWXB.js} +3 -3
- package/dist/{chunk-TC7JEO6R.cjs → chunk-U6CQOM5Q.cjs} +711 -52
- package/dist/{chunk-Z557DVYN.js → chunk-ULT2QAV5.js} +4 -4
- package/dist/{chunk-S4O7CFHQ.cjs → chunk-VSO6HPDZ.cjs} +7 -7
- package/dist/{chunk-ONPVM4IV.js → chunk-WQJMSSJT.js} +698 -45
- package/dist/{chunk-GILYQ5VH.cjs → chunk-WXSDBWGM.cjs} +4 -4
- package/dist/{chunk-UTUD6GJI.js → chunk-X5PMMK7H.js} +3 -3
- package/dist/{chunk-IFW5IW4L.cjs → chunk-X5ZLSPU2.cjs} +742 -657
- package/dist/{chunk-QM7FJB5W.js → chunk-X727CQ7X.js} +5 -5
- package/dist/{chunk-566ZB4LZ.cjs → chunk-XHZYS4QO.cjs} +5 -5
- package/dist/{chunk-RZ2EPXO3.cjs → chunk-XRQCTTDC.cjs} +8 -8
- package/dist/{chunk-5FYMCVBY.js → chunk-YBIHSN55.js} +4 -4
- package/dist/{chunk-FG6PYGIZ.js → chunk-Z574GVI3.js} +4 -4
- package/dist/{chunk-ZVQMKUGJ.js → chunk-Z5V3KA7L.js} +2 -2
- package/dist/chunk-ZGDEOXGU.js +1571 -0
- package/dist/{chunk-IS7NTKY5.cjs → chunk-ZHW6TDZ6.cjs} +14 -14
- package/dist/{chunk-CKV5NYAE.js → chunk-ZPHCTPR6.js} +4 -4
- package/dist/{chunk-3IUHTGDD.cjs → chunk-ZXXC2GXB.cjs} +38 -38
- package/dist/cli/holoscript-runner.cjs +169 -20
- package/dist/cli/holoscript-runner.js +163 -14
- 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 +2275 -212
- package/dist/compiler/index.d.ts +29 -1
- package/dist/compiler/index.js +2078 -66
- 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/constants.cjs +99 -99
- package/dist/constants.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/{dist-GRMOP2UL.cjs → dist-YGATNURH.cjs} +705 -9
- package/dist/{dist-ZBUKU2JG.js → dist-ZEZXRCBG.js} +701 -10
- package/dist/entries/scripting.cjs +8 -8
- package/dist/entries/scripting.js +4 -4
- package/dist/evolution/index.cjs +20 -20
- package/dist/evolution/index.js +8 -8
- package/dist/index.cjs +1099 -826
- package/dist/index.d.ts +78 -5
- package/dist/index.js +265 -120
- package/dist/parser/HoloCompositionTypes.d.ts +1 -1
- package/dist/parser.cjs +21 -21
- package/dist/parser.js +7 -7
- 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.cjs +9 -9
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +3 -3
- package/dist/traitDocs/traitDocs.cjs +8 -8
- package/dist/traitDocs/traitDocs.js +2 -2
- package/dist/traits/botanical-lotus.d.ts +61 -0
- package/dist/traits/index.cjs +761 -673
- package/dist/traits/index.d.ts +65 -0
- package/dist/traits/index.js +102 -27
- package/dist/types/HoloScriptPlus.d.ts +1 -1
- package/package.json +71 -65
- package/dist/HoloCompositionParser-6GW2BZID.cjs +0 -45
- package/dist/HoloScriptPlusParser-HQV6IJAH.js +0 -13
- package/dist/HoloScriptPlusParser-RFNHRMPE.cjs +0 -30
- 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
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
4
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
5
5
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -205,9 +205,9 @@ function generateControllersYaml(robotName, jointNames, options) {
|
|
|
205
205
|
exports.URDFCompiler = void 0; exports.URDFCompiler_default = void 0;
|
|
206
206
|
var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
207
207
|
"src/compiler/URDFCompiler.ts"() {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
exports.URDFCompiler = class extends
|
|
208
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
209
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
210
|
+
exports.URDFCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
211
211
|
constructor(options = {}) {
|
|
212
212
|
super();
|
|
213
213
|
this.compilerName = "URDFCompiler";
|
|
@@ -572,11 +572,11 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
572
572
|
if (domainBlocks.length === 0) return;
|
|
573
573
|
this.emitBlank();
|
|
574
574
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
575
|
-
const compiled =
|
|
575
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
576
576
|
domainBlocks,
|
|
577
577
|
{
|
|
578
578
|
material: (block) => {
|
|
579
|
-
const mat =
|
|
579
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
580
580
|
const lines = [];
|
|
581
581
|
lines.push(
|
|
582
582
|
`<material name="${this.escapeStringValue(mat.name, "TypeScript")}">`
|
|
@@ -597,15 +597,15 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
597
597
|
return lines.join("\n");
|
|
598
598
|
},
|
|
599
599
|
physics: (block) => {
|
|
600
|
-
const phys =
|
|
601
|
-
return
|
|
600
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
601
|
+
return chunkIYK6LMQ7_cjs.physicsToURDF(phys);
|
|
602
602
|
},
|
|
603
603
|
audio: (block) => {
|
|
604
|
-
const audio =
|
|
604
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
605
605
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" volume="${audio.properties.volume ?? 1}" -->`;
|
|
606
606
|
},
|
|
607
607
|
weather: (block) => {
|
|
608
|
-
const weather =
|
|
608
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
609
609
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" layers: ${weather.layers.map((l) => l.type).join(", ")} -->`;
|
|
610
610
|
}
|
|
611
611
|
},
|
|
@@ -677,8 +677,8 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
677
677
|
const link = {
|
|
678
678
|
name: linkName,
|
|
679
679
|
origin: {
|
|
680
|
-
xyz:
|
|
681
|
-
rpy:
|
|
680
|
+
xyz: [0, 0, 0],
|
|
681
|
+
rpy: [0, 0, 0]
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
if (this.options.includeVisual && geometry) {
|
|
@@ -777,17 +777,28 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
777
777
|
inertia: { ixx: 1e-3, ixy: 0, ixz: 0, iyy: 1e-3, iyz: 0, izz: 1e-3 }
|
|
778
778
|
}
|
|
779
779
|
});
|
|
780
|
+
const groupPos = group.properties?.find((p) => p.key === "position")?.value;
|
|
781
|
+
const [gx, gy, gz] = Array.isArray(groupPos) ? groupPos : [0, 0, 0];
|
|
780
782
|
this.joints.push({
|
|
781
783
|
name: `${parentLink}_to_${groupLinkName}_joint`,
|
|
782
784
|
type: "fixed",
|
|
783
785
|
parent: parentLink,
|
|
784
|
-
child: groupLinkName
|
|
786
|
+
child: groupLinkName,
|
|
787
|
+
origin: {
|
|
788
|
+
xyz: [gx, gy, gz],
|
|
789
|
+
rpy: [0, 0, 0]
|
|
790
|
+
}
|
|
785
791
|
});
|
|
786
792
|
if (group.objects) {
|
|
787
793
|
for (const obj of group.objects) {
|
|
788
794
|
this.processObject(obj, groupLinkName, actuatedJoints);
|
|
789
795
|
}
|
|
790
796
|
}
|
|
797
|
+
if (group.groups) {
|
|
798
|
+
for (const sub of group.groups) {
|
|
799
|
+
this.processSpatialGroup(sub, groupLinkName, actuatedJoints);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
791
802
|
}
|
|
792
803
|
/** Process @sensor trait into sensor definition */
|
|
793
804
|
processSensorTrait(config, parentLink) {
|
|
@@ -1417,5 +1428,5 @@ exports.createURDFCompiler = createURDFCompiler;
|
|
|
1417
1428
|
exports.generateControllersYaml = generateControllersYaml;
|
|
1418
1429
|
exports.generateROS2LaunchFile = generateROS2LaunchFile;
|
|
1419
1430
|
exports.init_URDFCompiler = init_URDFCompiler;
|
|
1420
|
-
//# sourceMappingURL=chunk-
|
|
1421
|
-
//# sourceMappingURL=chunk-
|
|
1431
|
+
//# sourceMappingURL=chunk-N2BOTBPG.cjs.map
|
|
1432
|
+
//# sourceMappingURL=chunk-N2BOTBPG.cjs.map
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var chunkFT6TDR2O_cjs = require('./chunk-FT6TDR2O.cjs');
|
|
4
4
|
var chunkLDYZWNJW_cjs = require('./chunk-LDYZWNJW.cjs');
|
|
5
5
|
var chunkKROXXBK5_cjs = require('./chunk-KROXXBK5.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
6
|
+
var chunkBTVHY3UB_cjs = require('./chunk-BTVHY3UB.cjs');
|
|
7
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
8
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
9
9
|
var ans = require('@holoscript/core-types/ans');
|
|
10
10
|
|
|
11
11
|
// src/compiler/GLTFPipeline.ts
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
13
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
14
14
|
|
|
15
15
|
// src/compiler/gltf/extensions.ts
|
|
16
16
|
function createEmissiveStrengthExtension(strength) {
|
|
@@ -838,7 +838,7 @@ function generatePlaneGeometry(scale) {
|
|
|
838
838
|
var INITIAL_COMPILE_BUFFER_SIZE = 1024 * 1024;
|
|
839
839
|
var MAX_RETAINED_BUFFER_SIZE = 1024 * 1024 * 20;
|
|
840
840
|
var SHARED_COMPILE_BUFFER = new Uint8Array(INITIAL_COMPILE_BUFFER_SIZE);
|
|
841
|
-
var GLTFPipeline = class _GLTFPipeline extends
|
|
841
|
+
var GLTFPipeline = class _GLTFPipeline extends chunkCMEINO5I_cjs.CompilerBase {
|
|
842
842
|
constructor(options = {}) {
|
|
843
843
|
super();
|
|
844
844
|
this.compilerName = "GLTFPipeline";
|
|
@@ -882,7 +882,7 @@ var GLTFPipeline = class _GLTFPipeline extends chunkZK7KX5CD_cjs.CompilerBase {
|
|
|
882
882
|
generator: options.generator ?? "HoloScript GLTFPipeline v1.0.0",
|
|
883
883
|
copyright: options.copyright ?? ""
|
|
884
884
|
};
|
|
885
|
-
this.compositor = new
|
|
885
|
+
this.compositor = new chunkBTVHY3UB_cjs.TraitCompositor();
|
|
886
886
|
}
|
|
887
887
|
getRequiredCapability() {
|
|
888
888
|
return ans.ANSCapabilityPath.GLTF;
|
|
@@ -1280,12 +1280,12 @@ var GLTFPipeline = class _GLTFPipeline extends chunkZK7KX5CD_cjs.CompilerBase {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
const domainBlocks = composition.domainBlocks ?? [];
|
|
1282
1282
|
if (domainBlocks.length > 0) {
|
|
1283
|
-
|
|
1283
|
+
chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
1284
1284
|
domainBlocks,
|
|
1285
1285
|
{
|
|
1286
1286
|
material: (block) => {
|
|
1287
|
-
const mat =
|
|
1288
|
-
const gltfMat =
|
|
1287
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
1288
|
+
const gltfMat = chunkIYK6LMQ7_cjs.materialToGLTF(mat);
|
|
1289
1289
|
this.materials.push(gltfMat);
|
|
1290
1290
|
this.stats.materialCount++;
|
|
1291
1291
|
return "";
|
|
@@ -2371,5 +2371,5 @@ exports.GLTFPipeline = GLTFPipeline;
|
|
|
2371
2371
|
exports.createGLTFPipeline = createGLTFPipeline;
|
|
2372
2372
|
exports.generateScaleNormalMap = generateScaleNormalMap;
|
|
2373
2373
|
exports.generateScaleTexture = generateScaleTexture;
|
|
2374
|
-
//# sourceMappingURL=chunk-
|
|
2375
|
-
//# sourceMappingURL=chunk-
|
|
2374
|
+
//# sourceMappingURL=chunk-NFALJJCH.cjs.map
|
|
2375
|
+
//# sourceMappingURL=chunk-NFALJJCH.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkFCGTI7FO_cjs = require('./chunk-FCGTI7FO.cjs');
|
|
4
|
+
var chunkFVNV4WHQ_cjs = require('./chunk-FVNV4WHQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/evolution/EvolveProgramBackend.ts
|
|
7
7
|
async function sha256Hex(s) {
|
|
@@ -397,7 +397,7 @@ var CORPUS_PORTFOLIO = [
|
|
|
397
397
|
];
|
|
398
398
|
function parsesClean(src, format) {
|
|
399
399
|
try {
|
|
400
|
-
const r = format === "holo" ?
|
|
400
|
+
const r = format === "holo" ? chunkFCGTI7FO_cjs.parseHolo(src) : chunkFVNV4WHQ_cjs.parse(src);
|
|
401
401
|
return Boolean(r.success && r.ast) && (r.errors?.length ?? 0) === 0;
|
|
402
402
|
} catch {
|
|
403
403
|
return false;
|
|
@@ -458,7 +458,7 @@ function stateMachineSemanticCheck(_candidate, ast) {
|
|
|
458
458
|
}
|
|
459
459
|
function makeSeedGate(seed) {
|
|
460
460
|
return async (candidate) => {
|
|
461
|
-
const r = seed.format === "holo" ?
|
|
461
|
+
const r = seed.format === "holo" ? chunkFCGTI7FO_cjs.parseHolo(candidate) : chunkFVNV4WHQ_cjs.parse(candidate);
|
|
462
462
|
const clean = Boolean(r.success && r.ast) && (r.errors?.length ?? 0) === 0;
|
|
463
463
|
const preservedOk = clean && seed.preserved.every((re) => re.test(candidate));
|
|
464
464
|
const passed = preservedOk && (!seed.semanticCheck || seed.semanticCheck(candidate, r.ast).ok);
|
|
@@ -610,5 +610,5 @@ exports.stateMachineSemanticCheck = stateMachineSemanticCheck;
|
|
|
610
610
|
exports.stateMachineWellFormed = stateMachineWellFormed;
|
|
611
611
|
exports.toGradedTraceRow = toGradedTraceRow;
|
|
612
612
|
exports.wasmFitnessBaselineFromScenario = wasmFitnessBaselineFromScenario;
|
|
613
|
-
//# sourceMappingURL=chunk-
|
|
614
|
-
//# sourceMappingURL=chunk-
|
|
613
|
+
//# sourceMappingURL=chunk-NRZRBK25.cjs.map
|
|
614
|
+
//# sourceMappingURL=chunk-NRZRBK25.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
4
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
5
5
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ function createWASMCompiler(options) {
|
|
|
19
19
|
}
|
|
20
20
|
function compileToWASM(composition, options) {
|
|
21
21
|
const compiler = new exports.WASMCompiler(options);
|
|
22
|
-
return compiler.compile(composition,
|
|
22
|
+
return compiler.compile(composition, chunkCMEINO5I_cjs.createTestCompilerToken());
|
|
23
23
|
}
|
|
24
24
|
function compileASTToWASM(ast, options) {
|
|
25
25
|
const compiler = new exports.WASMCompiler(options);
|
|
@@ -28,8 +28,8 @@ function compileASTToWASM(ast, options) {
|
|
|
28
28
|
var WASM_WAT_LIMITATIONS, WASM_BINARY_LIMITATIONS; exports.WASMCompiler = void 0; exports.WASMCompiler_default = void 0;
|
|
29
29
|
var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
30
30
|
"src/compiler/WASMCompiler.ts"() {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
32
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
33
33
|
WASM_WAT_LIMITATIONS = [
|
|
34
34
|
"Emits WebAssembly Text Format scaffolding only.",
|
|
35
35
|
'Does not return instantiable bytes unless format is set to "wasm".',
|
|
@@ -40,7 +40,7 @@ var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
40
40
|
"Lowers trait/lifecycle/event hooks to deterministic host event calls, not arbitrary user code.",
|
|
41
41
|
"Does not run a general-purpose WAT parser for unsupported custom WAT extensions."
|
|
42
42
|
];
|
|
43
|
-
exports.WASMCompiler = class extends
|
|
43
|
+
exports.WASMCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
44
44
|
constructor(options = {}) {
|
|
45
45
|
super();
|
|
46
46
|
this.compilerName = "WASMCompiler";
|
|
@@ -100,11 +100,11 @@ var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
100
100
|
if (domainBlocks.length > 0) {
|
|
101
101
|
this.emit("");
|
|
102
102
|
this.emit(" ;; === v4.2 Domain Blocks ===");
|
|
103
|
-
|
|
103
|
+
chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
104
104
|
domainBlocks,
|
|
105
105
|
{
|
|
106
106
|
material: (block) => {
|
|
107
|
-
const mat =
|
|
107
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
108
108
|
this.emit(
|
|
109
109
|
` ;; Material: "${this.escapeStringValue(mat.name, "TypeScript")}" type=${mat.type}`
|
|
110
110
|
);
|
|
@@ -1186,5 +1186,5 @@ exports.compileASTToWASM = compileASTToWASM;
|
|
|
1186
1186
|
exports.compileToWASM = compileToWASM;
|
|
1187
1187
|
exports.createWASMCompiler = createWASMCompiler;
|
|
1188
1188
|
exports.init_WASMCompiler = init_WASMCompiler;
|
|
1189
|
-
//# sourceMappingURL=chunk-
|
|
1190
|
-
//# sourceMappingURL=chunk-
|
|
1189
|
+
//# sourceMappingURL=chunk-NTSLNIY7.cjs.map
|
|
1190
|
+
//# sourceMappingURL=chunk-NTSLNIY7.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFVNV4WHQ_cjs = require('./chunk-FVNV4WHQ.cjs');
|
|
4
4
|
|
|
5
5
|
// src/parser/HsplusGrammar.ts
|
|
6
6
|
function normalizeHsplusGrammarErrors(errors) {
|
|
@@ -43,7 +43,7 @@ var TypeScriptHsplusGrammar = class {
|
|
|
43
43
|
return "typescript-hsplus";
|
|
44
44
|
}
|
|
45
45
|
parseWithTypeScript(source) {
|
|
46
|
-
const parser = new
|
|
46
|
+
const parser = new chunkFVNV4WHQ_cjs.HoloScriptPlusParser(this.options);
|
|
47
47
|
return parser.parse(source);
|
|
48
48
|
}
|
|
49
49
|
};
|
|
@@ -128,5 +128,5 @@ var GrammarModuleRegistry = new GrammarModuleRegistryImpl();
|
|
|
128
128
|
exports.GrammarModuleRegistry = GrammarModuleRegistry;
|
|
129
129
|
exports.TypeScriptHsplusGrammar = TypeScriptHsplusGrammar;
|
|
130
130
|
exports.normalizeHsplusGrammarErrors = normalizeHsplusGrammarErrors;
|
|
131
|
-
//# sourceMappingURL=chunk-
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-NZJOAWJM.cjs.map
|
|
132
|
+
//# sourceMappingURL=chunk-NZJOAWJM.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QC3CAVFN.js';
|
|
2
2
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
3
3
|
|
|
4
4
|
// src/compiler/LLMProviderCapabilitiesCompiler.ts
|
|
@@ -734,5 +734,5 @@ function daysBetween(earlier, later) {
|
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
export { LLMCapabilityCompileError, LLMProviderCapabilitiesCompiler, createLLMProviderCapabilitiesCompiler };
|
|
737
|
-
//# sourceMappingURL=chunk-
|
|
738
|
-
//# sourceMappingURL=chunk-
|
|
737
|
+
//# sourceMappingURL=chunk-OG7RKWWX.js.map
|
|
738
|
+
//# sourceMappingURL=chunk-OG7RKWWX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk356N4NPM_cjs = require('./chunk-356N4NPM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
5
5
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var crypto = require('crypto');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -149,7 +149,7 @@ function createDaimonSeedCompiler(options) {
|
|
|
149
149
|
var SCHEMA_VERSION, DEFAULT_THRESHOLD_FACTS, DEFAULT_THRESHOLD_FN; exports.DaimonSeedCompiler = void 0; exports.DaimonSeedCompiler_default = void 0;
|
|
150
150
|
var init_DaimonSeedCompiler = chunkZHPMP447_cjs.__esm({
|
|
151
151
|
"src/compiler/DaimonSeedCompiler.ts"() {
|
|
152
|
-
|
|
152
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
153
153
|
chunk356N4NPM_cjs.init_jsonLogic();
|
|
154
154
|
SCHEMA_VERSION = "holoscript.daimon-seed.v0.1.0";
|
|
155
155
|
DEFAULT_THRESHOLD_FACTS = {
|
|
@@ -164,7 +164,7 @@ var init_DaimonSeedCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
164
164
|
{ ">=": [{ var: "measuredValueIndependence" }, 0.5] }
|
|
165
165
|
]
|
|
166
166
|
};
|
|
167
|
-
exports.DaimonSeedCompiler = class extends
|
|
167
|
+
exports.DaimonSeedCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
168
168
|
constructor(options = {}) {
|
|
169
169
|
super();
|
|
170
170
|
this.compilerName = "DaimonSeedCompiler";
|
|
@@ -283,5 +283,5 @@ exports.computeExportFidelity = computeExportFidelity;
|
|
|
283
283
|
exports.createDaimonSeedCompiler = createDaimonSeedCompiler;
|
|
284
284
|
exports.init_DaimonSeedCompiler = init_DaimonSeedCompiler;
|
|
285
285
|
exports.runHysteresisExp2 = runHysteresisExp2;
|
|
286
|
-
//# sourceMappingURL=chunk-
|
|
287
|
-
//# sourceMappingURL=chunk-
|
|
286
|
+
//# sourceMappingURL=chunk-OQVHCYY4.cjs.map
|
|
287
|
+
//# sourceMappingURL=chunk-OQVHCYY4.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-
|
|
2
|
-
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-TW2AH2ZS.js';
|
|
2
|
+
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-QC3CAVFN.js';
|
|
3
3
|
import { __export, __esm } from './chunk-W4GABFCR.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -1180,5 +1180,5 @@ var init_WASMCompiler = __esm({
|
|
|
1180
1180
|
});
|
|
1181
1181
|
|
|
1182
1182
|
export { WASMCompiler, WASMCompiler_default, WASMCompiler_exports, compileASTToWASM, compileToWASM, createWASMCompiler, init_WASMCompiler };
|
|
1183
|
-
//# sourceMappingURL=chunk-
|
|
1184
|
-
//# sourceMappingURL=chunk-
|
|
1183
|
+
//# sourceMappingURL=chunk-PFZ5WLIP.js.map
|
|
1184
|
+
//# sourceMappingURL=chunk-PFZ5WLIP.js.map
|