@holoscript/core 8.0.14 → 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 +6 -13
- package/bin/holo-decision.mjs +0 -0
- package/bin/holoscript.cjs +0 -0
- package/dist/{GLTFPipeline-6LS3UDYX.js → GLTFPipeline-FRBZIATS.js} +6 -6
- package/dist/{GLTFPipeline-VTI6PRRQ.cjs → GLTFPipeline-MTPP444P.cjs} +10 -10
- package/dist/{HoloCompositionParser-GILABNN3.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-VX75RB6H.js → SceneIRCompiler-BJQMKLWL.js} +6 -6
- package/dist/{SceneIRCompiler-7KQ5NKAU.cjs → SceneIRCompiler-RTPPDQAV.cjs} +11 -11
- package/dist/{chunk-Y2OCKXVD.js → chunk-22AULOAL.js} +5 -5
- package/dist/{chunk-D44CEFY4.cjs → chunk-2DJIS7TH.cjs} +5 -5
- package/dist/{chunk-LHUDAJQT.cjs → chunk-2PVEXEOL.cjs} +5 -5
- package/dist/{chunk-M7XR3F53.js → chunk-2UP2J3OK.js} +4 -4
- package/dist/{chunk-3KHRZTNW.js → chunk-3AUYBQ5I.js} +3 -3
- package/dist/{chunk-UKEK2NZJ.js → chunk-3MQAOMKD.js} +3 -3
- package/dist/{chunk-FWKEY4LD.js → chunk-4AGNARX6.js} +3 -3
- package/dist/{chunk-7ITJP33Q.cjs → chunk-4CQ7ULXZ.cjs} +3 -3
- package/dist/{chunk-ORBVCOTC.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-73EDVY5D.js → chunk-7AY66PZP.js} +3 -3
- package/dist/{chunk-6FCNMTL5.js → chunk-7HDRN5BW.js} +4 -4
- package/dist/{chunk-TMNAKNV2.cjs → chunk-7YKNV2BE.cjs} +5 -5
- package/dist/{chunk-R5VKLUMR.js → chunk-AAUQTR7I.js} +4 -4
- package/dist/{chunk-HCONR4J6.cjs → chunk-AN3ZH7M7.cjs} +38 -38
- package/dist/{chunk-YW3I2FQL.js → chunk-ANMME7XT.js} +4 -2
- package/dist/{chunk-47XZ62KM.js → chunk-ATRAK4RC.js} +5 -5
- package/dist/{chunk-W4AJMMQR.js → chunk-AUF7HFOO.js} +60 -22
- package/dist/{chunk-SKVBUGMC.cjs → chunk-AUMTQV64.cjs} +7 -7
- package/dist/{chunk-N7MIIDLI.cjs → chunk-AUU4ACJP.cjs} +8 -8
- package/dist/{chunk-QQFB4RT2.cjs → chunk-BTVHY3UB.cjs} +2 -2
- package/dist/{chunk-SE2Y5BSL.cjs → chunk-CMEINO5I.cjs} +186 -70
- package/dist/{chunk-YMI3ED3B.cjs → chunk-CRUIGXF7.cjs} +5 -5
- package/dist/{chunk-2E6PP5UE.cjs → chunk-E2SNPMBO.cjs} +11 -11
- package/dist/{chunk-GI5YYZH6.js → chunk-E4YS5SIZ.js} +90 -25
- package/dist/{chunk-62OYZT6Q.js → chunk-EKNWUSGW.js} +3 -3
- package/dist/{chunk-RVN7OPCP.js → chunk-ETIJOUIO.js} +4 -4
- package/dist/{chunk-C73GVAYC.js → chunk-F33KLYOS.js} +5 -5
- package/dist/{chunk-4CRMVEON.cjs → chunk-F47FEV4X.cjs} +40 -40
- package/dist/{chunk-FGXJPJ3W.cjs → chunk-FCGTI7FO.cjs} +4 -4
- package/dist/{chunk-OSKGCXAQ.cjs → chunk-FGTXAVKG.cjs} +5 -5
- package/dist/{chunk-XZC75AJ4.cjs → chunk-FPGYWNNA.cjs} +5 -5
- package/dist/{chunk-5B2AJKA5.cjs → chunk-FQ4MYZYU.cjs} +20 -20
- package/dist/{chunk-KOGPVAP6.js → chunk-FT4FGTR6.js} +3 -3
- package/dist/{chunk-N7IYRAFG.cjs → chunk-FVNV4WHQ.cjs} +14 -14
- package/dist/{chunk-SJIRCTIS.cjs → chunk-HSGJFCVJ.cjs} +2 -2
- package/dist/{chunk-TKDDIE3T.cjs → chunk-ILO2KMER.cjs} +4 -4
- package/dist/{chunk-GGH3ZYDB.cjs → chunk-IPBSNGAN.cjs} +92 -27
- package/dist/{chunk-JQCXLKAU.js → chunk-IX2U3RQT.js} +3 -3
- package/dist/{chunk-P65OIMJT.cjs → chunk-IYK6LMQ7.cjs} +7 -7
- package/dist/{chunk-NWKARJM2.js → chunk-J3VVM6GV.js} +4 -4
- package/dist/{chunk-FOM36K5I.cjs → chunk-J74S4ZMF.cjs} +18 -18
- package/dist/{chunk-36NPLOI4.cjs → chunk-JERWCCEJ.cjs} +4 -2
- package/dist/{chunk-VXHB6ZHY.js → chunk-JTDDLCSP.js} +4 -4
- package/dist/{chunk-GYJLP4BO.cjs → chunk-K53L47NH.cjs} +30 -30
- package/dist/{chunk-FHR2AVMA.cjs → chunk-LJTM5ONX.cjs} +23 -23
- package/dist/{chunk-JCVSCKUH.js → chunk-LJVVOVA6.js} +4 -4
- package/dist/{chunk-LQNL3IYV.cjs → chunk-LNJKBQ2B.cjs} +38 -38
- package/dist/{chunk-2GKF7JQ6.js → chunk-M2GDE3NV.js} +3 -3
- package/dist/{chunk-Z7NUL73U.js → chunk-MSZNGI5P.js} +3 -3
- package/dist/{chunk-B6JHTTMR.cjs → chunk-N2BOTBPG.cjs} +15 -15
- package/dist/{chunk-L4DBUX3N.cjs → chunk-NFALJJCH.cjs} +12 -12
- package/dist/{chunk-YBM34FUJ.cjs → chunk-NRZRBK25.cjs} +6 -6
- package/dist/{chunk-SNMQUWIO.cjs → chunk-NTSLNIY7.cjs} +10 -10
- package/dist/{chunk-645EWDZW.cjs → chunk-NZJOAWJM.cjs} +4 -4
- package/dist/{chunk-LGRKBTPM.js → chunk-OG7RKWWX.js} +3 -3
- package/dist/{chunk-OOP4S3GU.cjs → chunk-OQVHCYY4.cjs} +5 -5
- package/dist/{chunk-5T6BWIB7.js → chunk-PFZ5WLIP.js} +4 -4
- package/dist/{chunk-CESMPUEZ.cjs → chunk-PHLNABJD.cjs} +159 -145
- package/dist/{chunk-CHIZSMWD.js → chunk-PLK3DLTF.js} +3 -3
- package/dist/{chunk-4NEPHK2K.js → chunk-PMACVMHL.js} +3 -3
- package/dist/{chunk-EYHPTJ3F.js → chunk-PV2OXNP5.js} +40 -26
- package/dist/{chunk-KLM6QD6D.cjs → chunk-Q6VW7MGX.cjs} +14 -14
- package/dist/{chunk-YDSNDCV3.js → chunk-QC3CAVFN.js} +186 -69
- package/dist/{chunk-REN3LHO6.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-TZQKJOPC.js → chunk-TW2AH2ZS.js} +3 -3
- package/dist/{chunk-Q4J2K7FI.js → chunk-TZM6DKSJ.js} +6 -6
- package/dist/{chunk-ESSEF6U2.js → chunk-U227RWXB.js} +3 -3
- package/dist/{chunk-ERYKKPHW.cjs → chunk-U6CQOM5Q.cjs} +13 -13
- package/dist/{chunk-VMCR5QVI.js → chunk-ULT2QAV5.js} +4 -4
- package/dist/{chunk-VZI7S7P6.cjs → chunk-VSO6HPDZ.cjs} +7 -7
- package/dist/{chunk-QLPRI3QW.js → chunk-WQJMSSJT.js} +4 -4
- package/dist/{chunk-GILYQ5VH.cjs → chunk-WXSDBWGM.cjs} +4 -4
- package/dist/{chunk-42Z3SVHQ.js → chunk-X5PMMK7H.js} +3 -3
- package/dist/{chunk-ML4V5PVU.cjs → chunk-X5ZLSPU2.cjs} +74 -32
- package/dist/{chunk-PSWCJQS4.js → chunk-X727CQ7X.js} +5 -5
- package/dist/{chunk-YM7UUYR5.cjs → chunk-XHZYS4QO.cjs} +5 -5
- package/dist/{chunk-PZ46WRHX.cjs → chunk-XRQCTTDC.cjs} +8 -8
- package/dist/{chunk-IXFNA5TT.js → chunk-YBIHSN55.js} +4 -4
- package/dist/{chunk-BLCWQ225.js → chunk-Z574GVI3.js} +4 -4
- package/dist/{chunk-ZVQMKUGJ.js → chunk-Z5V3KA7L.js} +2 -2
- package/dist/{chunk-7ZKQ32XK.js → chunk-ZGDEOXGU.js} +4 -4
- package/dist/{chunk-VTFLKSJL.cjs → chunk-ZHW6TDZ6.cjs} +14 -14
- package/dist/{chunk-KYJD2UMV.js → chunk-ZPHCTPR6.js} +4 -4
- package/dist/{chunk-VA7THINF.cjs → chunk-ZXXC2GXB.cjs} +38 -38
- package/dist/cli/holoscript-runner.cjs +168 -19
- package/dist/cli/holoscript-runner.js +162 -13
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +6 -6
- package/dist/compiler/android-xr.js +4 -4
- package/dist/compiler/android.cjs +5 -5
- package/dist/compiler/android.js +3 -3
- package/dist/compiler/context.cjs +5 -5
- package/dist/compiler/context.js +2 -2
- package/dist/compiler/daimon-seed.cjs +8 -8
- package/dist/compiler/daimon-seed.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +164 -164
- package/dist/compiler/domain-block-utils.js +3 -3
- package/dist/compiler/dtdl.cjs +6 -6
- package/dist/compiler/dtdl.js +3 -3
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +5 -5
- package/dist/compiler/godot.js +4 -4
- package/dist/compiler/incremental.cjs +7 -7
- package/dist/compiler/incremental.js +2 -2
- package/dist/compiler/index.cjs +1603 -204
- package/dist/compiler/index.d.ts +8 -0
- package/dist/compiler/index.js +1431 -55
- package/dist/compiler/ios.cjs +5 -5
- package/dist/compiler/ios.js +3 -3
- package/dist/compiler/llm-provider-capabilities.cjs +5 -5
- package/dist/compiler/llm-provider-capabilities.js +2 -2
- package/dist/compiler/openxr.cjs +5 -5
- package/dist/compiler/openxr.js +4 -4
- package/dist/compiler/sdf.cjs +6 -6
- package/dist/compiler/sdf.js +4 -4
- package/dist/compiler/state.cjs +5 -5
- package/dist/compiler/state.js +3 -3
- package/dist/compiler/trait-composition.cjs +6 -6
- package/dist/compiler/trait-composition.js +2 -2
- package/dist/compiler/unity.cjs +5 -5
- package/dist/compiler/unity.js +4 -4
- package/dist/compiler/unreal.cjs +6 -6
- package/dist/compiler/unreal.js +4 -4
- package/dist/compiler/urdf.cjs +13 -13
- package/dist/compiler/urdf.js +4 -4
- package/dist/compiler/usd-physics.cjs +6 -6
- package/dist/compiler/usd-physics.js +3 -3
- package/dist/compiler/visionos.cjs +5 -5
- package/dist/compiler/visionos.js +4 -4
- package/dist/compiler/vrchat.cjs +6 -6
- package/dist/compiler/vrchat.js +4 -4
- package/dist/compiler/wasm.cjs +9 -9
- package/dist/compiler/wasm.js +4 -4
- package/dist/compiler/webgpu.cjs +5 -5
- package/dist/compiler/webgpu.js +4 -4
- 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 +871 -809
- package/dist/index.d.ts +8 -0
- package/dist/index.js +132 -70
- 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 +63 -63
- package/dist/reconstruction/index.js +7 -7
- package/dist/runtime.cjs +9 -9
- package/dist/runtime.js +3 -3
- package/dist/traits/botanical-lotus.d.ts +61 -0
- package/dist/traits/index.cjs +664 -671
- package/dist/traits/index.d.ts +65 -0
- package/dist/traits/index.js +14 -21
- package/dist/types/HoloScriptPlus.d.ts +1 -1
- package/package.json +66 -64
- package/dist/HoloCompositionParser-ZVRYVEA5.cjs +0 -45
- package/dist/HoloScriptPlusParser-WTPRPRPR.cjs +0 -30
- package/dist/HoloScriptPlusParser-ZP53ECSL.js +0 -13
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLDYZWNJW_cjs = require('./chunk-LDYZWNJW.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
4
|
+
var chunkOQVHCYY4_cjs = require('./chunk-OQVHCYY4.cjs');
|
|
5
|
+
var chunkCRUIGXF7_cjs = require('./chunk-CRUIGXF7.cjs');
|
|
6
|
+
var chunkQ6VW7MGX_cjs = require('./chunk-Q6VW7MGX.cjs');
|
|
7
|
+
var chunkAUMTQV64_cjs = require('./chunk-AUMTQV64.cjs');
|
|
8
|
+
var chunkFPGYWNNA_cjs = require('./chunk-FPGYWNNA.cjs');
|
|
9
|
+
var chunkQKLEDRHN_cjs = require('./chunk-QKLEDRHN.cjs');
|
|
10
|
+
var chunkK53L47NH_cjs = require('./chunk-K53L47NH.cjs');
|
|
11
|
+
var chunkJ74S4ZMF_cjs = require('./chunk-J74S4ZMF.cjs');
|
|
12
|
+
var chunkNTSLNIY7_cjs = require('./chunk-NTSLNIY7.cjs');
|
|
13
|
+
var chunkU6CQOM5Q_cjs = require('./chunk-U6CQOM5Q.cjs');
|
|
14
|
+
var chunkFGTXAVKG_cjs = require('./chunk-FGTXAVKG.cjs');
|
|
15
|
+
var chunkN2BOTBPG_cjs = require('./chunk-N2BOTBPG.cjs');
|
|
16
|
+
var chunkZHW6TDZ6_cjs = require('./chunk-ZHW6TDZ6.cjs');
|
|
17
|
+
var chunkZXXC2GXB_cjs = require('./chunk-ZXXC2GXB.cjs');
|
|
18
|
+
var chunkLNJKBQ2B_cjs = require('./chunk-LNJKBQ2B.cjs');
|
|
19
|
+
var chunkLJTM5ONX_cjs = require('./chunk-LJTM5ONX.cjs');
|
|
20
20
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
21
|
+
var chunkAN3ZH7M7_cjs = require('./chunk-AN3ZH7M7.cjs');
|
|
22
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
23
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
24
24
|
var chunk3VBO3IYQ_cjs = require('./chunk-3VBO3IYQ.cjs');
|
|
25
|
-
var
|
|
25
|
+
var chunk6RDHWSZM_cjs = require('./chunk-6RDHWSZM.cjs');
|
|
26
26
|
var chunkESBXUYOC_cjs = require('./chunk-ESBXUYOC.cjs');
|
|
27
27
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
28
28
|
var crypto = require('crypto');
|
|
@@ -374,7 +374,7 @@ function compileToPCGGraph(composition, options = {}) {
|
|
|
374
374
|
exports.PCG_GRAPH_SCHEMA = void 0; var NODE_PORTS, UNREAL_NODE_CLASSES; exports.PCGGraphCompiler = void 0;
|
|
375
375
|
var init_PCGGraphCompiler = chunkZHPMP447_cjs.__esm({
|
|
376
376
|
"src/compiler/PCGGraphCompiler.ts"() {
|
|
377
|
-
|
|
377
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
378
378
|
exports.PCG_GRAPH_SCHEMA = "holoscript-pcg-graph-v1";
|
|
379
379
|
NODE_PORTS = {
|
|
380
380
|
surface: {
|
|
@@ -424,7 +424,7 @@ var init_PCGGraphCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
424
424
|
output: "/Script/PCG.PCGOutput",
|
|
425
425
|
custom: "/Script/PCG.PCGBlueprintElement"
|
|
426
426
|
};
|
|
427
|
-
exports.PCGGraphCompiler = class extends
|
|
427
|
+
exports.PCGGraphCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
428
428
|
constructor(options = {}) {
|
|
429
429
|
super();
|
|
430
430
|
this.compilerName = "PCGGraphCompiler";
|
|
@@ -456,7 +456,7 @@ var init_PCGGraphCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
456
456
|
result.unrealXml
|
|
457
457
|
].join("\n");
|
|
458
458
|
}
|
|
459
|
-
compileToFiles(composition, agentToken =
|
|
459
|
+
compileToFiles(composition, agentToken = chunkCMEINO5I_cjs.createTestCompilerToken()) {
|
|
460
460
|
this.validateCompilerAccess(agentToken);
|
|
461
461
|
const result = this.compileDetailed(composition);
|
|
462
462
|
const base = safeId(result.graph.name, "holoscript_pcg_graph");
|
|
@@ -683,7 +683,7 @@ ${lines.join("\n")}`;
|
|
|
683
683
|
var TARGET, AGENT_TRAITS, MODEL_TRAITS, SYSTEM_PROMPT_TRAITS, FUNCTION_TOOL_TRAITS, MCP_TOOL_TRAITS, CHILD_AGENT_TRAITS, POLICY_TRAITS, RUNTIME_TRAITS, SECRET_KEY_RE, INLINE_SECRET_VALUE_RE; exports.OmnigentAgentYamlCompiler = void 0;
|
|
684
684
|
var init_OmnigentAgentYamlCompiler = chunkZHPMP447_cjs.__esm({
|
|
685
685
|
"src/compiler/OmnigentAgentYamlCompiler.ts"() {
|
|
686
|
-
|
|
686
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
687
687
|
TARGET = "omnigent-agent-yaml";
|
|
688
688
|
AGENT_TRAITS = /* @__PURE__ */ new Set(["agent", "llm_agent"]);
|
|
689
689
|
MODEL_TRAITS = /* @__PURE__ */ new Set(["model", "inference"]);
|
|
@@ -695,7 +695,7 @@ var init_OmnigentAgentYamlCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
695
695
|
RUNTIME_TRAITS = /* @__PURE__ */ new Set(["runtime", "local_execution", "sandbox", "terminal"]);
|
|
696
696
|
SECRET_KEY_RE = /(^|[_-])(api[_-]?key|token|secret|password|credential|bearer|auth)([_-]|$)/i;
|
|
697
697
|
INLINE_SECRET_VALUE_RE = /(sk-[A-Za-z0-9_-]{8,}|Bearer\s+[A-Za-z0-9._-]{8,}|ghp_[A-Za-z0-9_]{8,}|xox[baprs]-[A-Za-z0-9-]{8,}|AIza[0-9A-Za-z_-]{8,}|-----BEGIN\s+(?:RSA\s+)?PRIVATE KEY-----)/;
|
|
698
|
-
exports.OmnigentAgentYamlCompiler = class extends
|
|
698
|
+
exports.OmnigentAgentYamlCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
699
699
|
constructor(options = {}) {
|
|
700
700
|
super();
|
|
701
701
|
this.compilerName = "OmnigentAgentYamlCompiler";
|
|
@@ -1106,8 +1106,8 @@ ${toolLiterals.join(",\n")}
|
|
|
1106
1106
|
exports.HoloMCPCompiler = void 0;
|
|
1107
1107
|
var init_HoloMCPCompiler = chunkZHPMP447_cjs.__esm({
|
|
1108
1108
|
"src/compiler/HoloMCPCompiler.ts"() {
|
|
1109
|
-
|
|
1110
|
-
exports.HoloMCPCompiler = class extends
|
|
1109
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
1110
|
+
exports.HoloMCPCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
1111
1111
|
constructor(options = {}) {
|
|
1112
1112
|
super();
|
|
1113
1113
|
this.compilerName = "HoloMCPCompiler";
|
|
@@ -1433,7 +1433,7 @@ chunkZHPMP447_cjs.__export(LlamaServerCompiler_exports, {
|
|
|
1433
1433
|
var DEFAULTS, DEFAULT_HOLO_PATCHED_EXECUTABLES; exports.LlamaServerCompiler = void 0;
|
|
1434
1434
|
var init_LlamaServerCompiler = chunkZHPMP447_cjs.__esm({
|
|
1435
1435
|
"src/compiler/LlamaServerCompiler.ts"() {
|
|
1436
|
-
|
|
1436
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
1437
1437
|
init_holoscript_gbnf();
|
|
1438
1438
|
DEFAULTS = {
|
|
1439
1439
|
model: "fara-7b",
|
|
@@ -1456,7 +1456,7 @@ var init_LlamaServerCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
1456
1456
|
windows: "C:\\holoscript\\llama.cpp\\build-holo\\bin\\Release\\llama-server.exe",
|
|
1457
1457
|
linux: "/opt/holoscript/llama.cpp/build-holo/bin/llama-server"
|
|
1458
1458
|
};
|
|
1459
|
-
exports.LlamaServerCompiler = class extends
|
|
1459
|
+
exports.LlamaServerCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
1460
1460
|
constructor(opts = {}) {
|
|
1461
1461
|
super();
|
|
1462
1462
|
this.opts = opts;
|
|
@@ -1489,8 +1489,15 @@ var init_LlamaServerCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
1489
1489
|
if (grammarFile) files.unshift(grammarFile);
|
|
1490
1490
|
if (cfg.traceCapture) {
|
|
1491
1491
|
files.push(
|
|
1492
|
-
{
|
|
1493
|
-
|
|
1492
|
+
{
|
|
1493
|
+
path: "holo-inference-proxy.mjs",
|
|
1494
|
+
content: this.genInferenceProxyScript(cfg),
|
|
1495
|
+
executable: true
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
path: `holo-inference-proxy-${this.slug(cfg.registerAs)}.service`,
|
|
1499
|
+
content: this.genInferenceProxyUnit(cfg)
|
|
1500
|
+
}
|
|
1494
1501
|
);
|
|
1495
1502
|
}
|
|
1496
1503
|
const warnings = foundTrait ? [] : ["No @llama_serve trait found; used compiler options/defaults."];
|
|
@@ -1504,6 +1511,11 @@ var init_LlamaServerCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
1504
1511
|
`trace_capture requires trace_upstream_port (${cfg.traceUpstreamPort}) to differ from the public port (${cfg.port}).`
|
|
1505
1512
|
);
|
|
1506
1513
|
}
|
|
1514
|
+
if (cfg.cacheRamMiB !== void 0 && (!Number.isFinite(cfg.cacheRamMiB) || !Number.isInteger(cfg.cacheRamMiB) || cfg.cacheRamMiB < 0)) {
|
|
1515
|
+
throw new Error(
|
|
1516
|
+
`cache_ram must be a non-negative integer MiB value; received ${cfg.cacheRamMiB}.`
|
|
1517
|
+
);
|
|
1518
|
+
}
|
|
1507
1519
|
if (cfg.grammarPath && cfg.grammar) {
|
|
1508
1520
|
warnings.push(
|
|
1509
1521
|
"Both a grammar file and an inline grammar were supplied; using --grammar-file and ignoring the inline grammar."
|
|
@@ -1594,6 +1606,7 @@ var init_LlamaServerCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
1594
1606
|
imageMinTokens: this.opts.imageMinTokens ?? this.numberValue(raw, DEFAULTS.imageMinTokens, "imageMinTokens", "image_min_tokens"),
|
|
1595
1607
|
imageMaxTokens: this.opts.imageMaxTokens ?? this.numberValue(raw, DEFAULTS.imageMaxTokens, "imageMaxTokens", "image_max_tokens"),
|
|
1596
1608
|
parallel: this.opts.parallel ?? this.numberValue(raw, DEFAULTS.parallel, "parallel"),
|
|
1609
|
+
cacheRamMiB: this.opts.cacheRamMiB ?? this.optionalNumberValue(raw, "cacheRamMiB", "cache_ram", "cache-ram"),
|
|
1597
1610
|
metrics: this.opts.metrics ?? this.booleanValue(raw, DEFAULTS.metrics, "metrics"),
|
|
1598
1611
|
traceCapture: this.booleanValue(raw, false, "traceCapture", "trace_capture"),
|
|
1599
1612
|
traceUpstreamPort: this.numberValue(
|
|
@@ -1685,6 +1698,7 @@ var init_LlamaServerCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
1685
1698
|
);
|
|
1686
1699
|
}
|
|
1687
1700
|
argv.push("--parallel", String(cfg.parallel));
|
|
1701
|
+
if (cfg.cacheRamMiB !== void 0) argv.push("--cache-ram", String(cfg.cacheRamMiB));
|
|
1688
1702
|
if (cfg.metrics) argv.push("--metrics");
|
|
1689
1703
|
if (cfg.grammarPath) argv.push("--grammar-file", cfg.grammarPath);
|
|
1690
1704
|
else if (cfg.grammar) argv.push("--grammar", cfg.grammar);
|
|
@@ -2444,7 +2458,7 @@ function compileAllToNextJSAPI(compositions, options = {}) {
|
|
|
2444
2458
|
var VALID_METHODS, BODY_METHODS, PASSTHROUGH_METHODS; exports.NextJSAPICompiler = void 0;
|
|
2445
2459
|
var init_NextJSAPICompiler = chunkZHPMP447_cjs.__esm({
|
|
2446
2460
|
"src/compiler/NextJSAPICompiler.ts"() {
|
|
2447
|
-
|
|
2461
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
2448
2462
|
VALID_METHODS = /* @__PURE__ */ new Set([
|
|
2449
2463
|
"GET",
|
|
2450
2464
|
"POST",
|
|
@@ -2456,7 +2470,7 @@ var init_NextJSAPICompiler = chunkZHPMP447_cjs.__esm({
|
|
|
2456
2470
|
]);
|
|
2457
2471
|
BODY_METHODS = /* @__PURE__ */ new Set(["POST", "PUT", "PATCH"]);
|
|
2458
2472
|
PASSTHROUGH_METHODS = /* @__PURE__ */ new Set(["HEAD", "DELETE"]);
|
|
2459
|
-
exports.NextJSAPICompiler = class extends
|
|
2473
|
+
exports.NextJSAPICompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
2460
2474
|
constructor(options = {}) {
|
|
2461
2475
|
super();
|
|
2462
2476
|
this.options = options;
|
|
@@ -2650,7 +2664,7 @@ var init_AuthorityEffectEnforcer = chunkZHPMP447_cjs.__esm({
|
|
|
2650
2664
|
// src/compiler/identity/index.ts
|
|
2651
2665
|
var init_identity = chunkZHPMP447_cjs.__esm({
|
|
2652
2666
|
"src/compiler/identity/index.ts"() {
|
|
2653
|
-
|
|
2667
|
+
chunkCMEINO5I_cjs.init_ANSNamespace();
|
|
2654
2668
|
}
|
|
2655
2669
|
});
|
|
2656
2670
|
|
|
@@ -2663,8 +2677,8 @@ chunkZHPMP447_cjs.__export(MJCFCompiler_exports, {
|
|
|
2663
2677
|
exports.MJCFCompiler = void 0; var MJCFCompiler_default;
|
|
2664
2678
|
var init_MJCFCompiler = chunkZHPMP447_cjs.__esm({
|
|
2665
2679
|
"src/compiler/MJCFCompiler.ts"() {
|
|
2666
|
-
|
|
2667
|
-
exports.MJCFCompiler = class extends
|
|
2680
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
2681
|
+
exports.MJCFCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
2668
2682
|
constructor(options = {}) {
|
|
2669
2683
|
super();
|
|
2670
2684
|
this.compilerName = "MJCFCompiler";
|
|
@@ -3029,9 +3043,9 @@ chunkZHPMP447_cjs.__export(MJXCompiler_exports, {
|
|
|
3029
3043
|
exports.MJXCompiler = void 0; var MJXCompiler_default;
|
|
3030
3044
|
var init_MJXCompiler = chunkZHPMP447_cjs.__esm({
|
|
3031
3045
|
"src/compiler/MJXCompiler.ts"() {
|
|
3032
|
-
|
|
3046
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
3033
3047
|
init_MJCFCompiler();
|
|
3034
|
-
exports.MJXCompiler = class extends
|
|
3048
|
+
exports.MJXCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
3035
3049
|
constructor(options = {}) {
|
|
3036
3050
|
super();
|
|
3037
3051
|
this.compilerName = "MJXCompiler";
|
|
@@ -3173,9 +3187,9 @@ chunkZHPMP447_cjs.__export(EmbodiedDatasetCompiler_exports, {
|
|
|
3173
3187
|
exports.EmbodiedDatasetCompiler = void 0; var EmbodiedDatasetCompiler_default;
|
|
3174
3188
|
var init_EmbodiedDatasetCompiler = chunkZHPMP447_cjs.__esm({
|
|
3175
3189
|
"src/compiler/EmbodiedDatasetCompiler.ts"() {
|
|
3176
|
-
|
|
3190
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
3177
3191
|
init_MJCFCompiler();
|
|
3178
|
-
exports.EmbodiedDatasetCompiler = class extends
|
|
3192
|
+
exports.EmbodiedDatasetCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
3179
3193
|
constructor(options = {}) {
|
|
3180
3194
|
super();
|
|
3181
3195
|
this.compilerName = "EmbodiedDatasetCompiler";
|
|
@@ -3382,8 +3396,8 @@ chunkZHPMP447_cjs.__export(A2AAgentCardCompiler_exports, {
|
|
|
3382
3396
|
exports.A2AAgentCardCompiler = void 0; var A2AAgentCardCompiler_default;
|
|
3383
3397
|
var init_A2AAgentCardCompiler = chunkZHPMP447_cjs.__esm({
|
|
3384
3398
|
"src/compiler/A2AAgentCardCompiler.ts"() {
|
|
3385
|
-
|
|
3386
|
-
exports.A2AAgentCardCompiler = class extends
|
|
3399
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
3400
|
+
exports.A2AAgentCardCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
3387
3401
|
constructor(options = {}) {
|
|
3388
3402
|
super();
|
|
3389
3403
|
this.compilerName = "A2AAgentCardCompiler";
|
|
@@ -4444,9 +4458,9 @@ chunkZHPMP447_cjs.__export(NIRCompiler_exports, {
|
|
|
4444
4458
|
exports.NIRCompiler = void 0; var NIRCompiler_default;
|
|
4445
4459
|
var init_NIRCompiler = chunkZHPMP447_cjs.__esm({
|
|
4446
4460
|
"src/compiler/NIRCompiler.ts"() {
|
|
4447
|
-
|
|
4461
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
4448
4462
|
init_NIRTraitMap();
|
|
4449
|
-
exports.NIRCompiler = class extends
|
|
4463
|
+
exports.NIRCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
4450
4464
|
constructor(options = {}) {
|
|
4451
4465
|
super();
|
|
4452
4466
|
this.compilerName = "NIRCompiler";
|
|
@@ -4800,10 +4814,10 @@ chunkZHPMP447_cjs.__export(SDKCompiler_exports, {
|
|
|
4800
4814
|
exports.SDKCompiler = void 0; var SDKCompiler_default;
|
|
4801
4815
|
var init_SDKCompiler = chunkZHPMP447_cjs.__esm({
|
|
4802
4816
|
"src/compiler/SDKCompiler.ts"() {
|
|
4803
|
-
|
|
4817
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
4804
4818
|
init_identity();
|
|
4805
4819
|
init_DialectRegistry();
|
|
4806
|
-
exports.SDKCompiler = class extends
|
|
4820
|
+
exports.SDKCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
4807
4821
|
constructor(options = {}) {
|
|
4808
4822
|
super();
|
|
4809
4823
|
this.compilerName = "SDKCompiler";
|
|
@@ -4824,7 +4838,7 @@ var init_SDKCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
4824
4838
|
};
|
|
4825
4839
|
}
|
|
4826
4840
|
getRequiredCapability() {
|
|
4827
|
-
return
|
|
4841
|
+
return chunkCMEINO5I_cjs.ANSCapabilityPath.SDK;
|
|
4828
4842
|
}
|
|
4829
4843
|
compile(composition, agentToken, outputPath) {
|
|
4830
4844
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -6083,7 +6097,7 @@ var init_SDKCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
6083
6097
|
description: "Compiles .holo service contracts to typed TypeScript SDK clients",
|
|
6084
6098
|
supportedTraits: ["service", "endpoint", "schema", "contract", "auth", "rest_resource"],
|
|
6085
6099
|
riskTier: "standard",
|
|
6086
|
-
ansPath:
|
|
6100
|
+
ansPath: chunkCMEINO5I_cjs.ANSCapabilityPath.SDK,
|
|
6087
6101
|
factory: (options) => new exports.SDKCompiler(options),
|
|
6088
6102
|
outputExtensions: [".ts", ".json", ".md"],
|
|
6089
6103
|
experimental: true
|
|
@@ -6125,7 +6139,7 @@ function registerBuiltinDialects() {
|
|
|
6125
6139
|
],
|
|
6126
6140
|
riskTier: "standard",
|
|
6127
6141
|
factory: (opts) => {
|
|
6128
|
-
const { UnityCompiler } = (
|
|
6142
|
+
const { UnityCompiler } = (chunkLNJKBQ2B_cjs.init_UnityCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkLNJKBQ2B_cjs.UnityCompiler_exports));
|
|
6129
6143
|
return new UnityCompiler(opts);
|
|
6130
6144
|
},
|
|
6131
6145
|
outputExtensions: [".cs"]
|
|
@@ -6150,7 +6164,7 @@ function registerBuiltinDialects() {
|
|
|
6150
6164
|
],
|
|
6151
6165
|
riskTier: "standard",
|
|
6152
6166
|
factory: (opts) => {
|
|
6153
|
-
const { UnrealCompiler } = (
|
|
6167
|
+
const { UnrealCompiler } = (chunkLJTM5ONX_cjs.init_UnrealCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkLJTM5ONX_cjs.UnrealCompiler_exports));
|
|
6154
6168
|
return new UnrealCompiler(opts);
|
|
6155
6169
|
},
|
|
6156
6170
|
outputExtensions: [".cpp", ".h"]
|
|
@@ -6192,7 +6206,7 @@ function registerBuiltinDialects() {
|
|
|
6192
6206
|
],
|
|
6193
6207
|
riskTier: "standard",
|
|
6194
6208
|
factory: (opts) => {
|
|
6195
|
-
const { GodotCompiler } = (
|
|
6209
|
+
const { GodotCompiler } = (chunkAN3ZH7M7_cjs.init_GodotCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkAN3ZH7M7_cjs.GodotCompiler_exports));
|
|
6196
6210
|
return new GodotCompiler(opts);
|
|
6197
6211
|
},
|
|
6198
6212
|
outputExtensions: [".gd", ".tscn"]
|
|
@@ -6212,7 +6226,7 @@ function registerBuiltinDialects() {
|
|
|
6212
6226
|
],
|
|
6213
6227
|
riskTier: "standard",
|
|
6214
6228
|
factory: (opts) => {
|
|
6215
|
-
const { OpenXRCompiler } = (
|
|
6229
|
+
const { OpenXRCompiler } = (chunkZHW6TDZ6_cjs.init_OpenXRCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkZHW6TDZ6_cjs.OpenXRCompiler_exports));
|
|
6216
6230
|
return new OpenXRCompiler(opts);
|
|
6217
6231
|
},
|
|
6218
6232
|
outputExtensions: [".cpp", ".h"]
|
|
@@ -6233,7 +6247,7 @@ function registerBuiltinDialects() {
|
|
|
6233
6247
|
],
|
|
6234
6248
|
riskTier: "standard",
|
|
6235
6249
|
factory: (opts) => {
|
|
6236
|
-
const { VRChatCompiler } = (
|
|
6250
|
+
const { VRChatCompiler } = (chunkZXXC2GXB_cjs.init_VRChatCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkZXXC2GXB_cjs.VRChatCompiler_exports));
|
|
6237
6251
|
return new VRChatCompiler(opts);
|
|
6238
6252
|
},
|
|
6239
6253
|
outputExtensions: [".cs"]
|
|
@@ -6252,7 +6266,7 @@ function registerBuiltinDialects() {
|
|
|
6252
6266
|
],
|
|
6253
6267
|
riskTier: "standard",
|
|
6254
6268
|
factory: (opts) => {
|
|
6255
|
-
const { VisionOSCompiler } = (
|
|
6269
|
+
const { VisionOSCompiler } = (chunkJ74S4ZMF_cjs.init_VisionOSCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkJ74S4ZMF_cjs.VisionOSCompiler_exports));
|
|
6256
6270
|
return new VisionOSCompiler(opts);
|
|
6257
6271
|
},
|
|
6258
6272
|
outputExtensions: [".swift"]
|
|
@@ -6264,7 +6278,7 @@ function registerBuiltinDialects() {
|
|
|
6264
6278
|
supportedTraits: ["physics", "hand_tracking", "spatial_anchor", "input", "collidable"],
|
|
6265
6279
|
riskTier: "standard",
|
|
6266
6280
|
factory: (opts) => {
|
|
6267
|
-
const { AndroidXRCompiler } = (
|
|
6281
|
+
const { AndroidXRCompiler } = (chunkQKLEDRHN_cjs.init_AndroidXRCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkQKLEDRHN_cjs.AndroidXRCompiler_exports));
|
|
6268
6282
|
return new AndroidXRCompiler(opts);
|
|
6269
6283
|
},
|
|
6270
6284
|
outputExtensions: [".kt"]
|
|
@@ -6277,7 +6291,7 @@ function registerBuiltinDialects() {
|
|
|
6277
6291
|
supportedTraits: ["physics", "ar_anchor", "animation", "material", "collidable"],
|
|
6278
6292
|
riskTier: "standard",
|
|
6279
6293
|
factory: (opts) => {
|
|
6280
|
-
const { IOSCompiler } = (
|
|
6294
|
+
const { IOSCompiler } = (chunkK53L47NH_cjs.init_IOSCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkK53L47NH_cjs.IOSCompiler_exports));
|
|
6281
6295
|
return new IOSCompiler(opts);
|
|
6282
6296
|
},
|
|
6283
6297
|
outputExtensions: [".swift"]
|
|
@@ -6289,7 +6303,7 @@ function registerBuiltinDialects() {
|
|
|
6289
6303
|
supportedTraits: ["physics", "ar_anchor", "animation", "material", "collidable"],
|
|
6290
6304
|
riskTier: "standard",
|
|
6291
6305
|
factory: (opts) => {
|
|
6292
|
-
const { AndroidCompiler } = (
|
|
6306
|
+
const { AndroidCompiler } = (chunkFPGYWNNA_cjs.init_AndroidCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkFPGYWNNA_cjs.AndroidCompiler_exports));
|
|
6293
6307
|
return new AndroidCompiler(opts);
|
|
6294
6308
|
},
|
|
6295
6309
|
outputExtensions: [".kt"]
|
|
@@ -6302,7 +6316,7 @@ function registerBuiltinDialects() {
|
|
|
6302
6316
|
supportedTraits: ["physics", "animation", "audio"],
|
|
6303
6317
|
riskTier: "high",
|
|
6304
6318
|
factory: (opts) => {
|
|
6305
|
-
const { WASMCompiler } = (
|
|
6319
|
+
const { WASMCompiler } = (chunkNTSLNIY7_cjs.init_WASMCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkNTSLNIY7_cjs.WASMCompiler_exports));
|
|
6306
6320
|
return new WASMCompiler(opts);
|
|
6307
6321
|
},
|
|
6308
6322
|
outputExtensions: [".wasm", ".js"]
|
|
@@ -6314,7 +6328,7 @@ function registerBuiltinDialects() {
|
|
|
6314
6328
|
supportedTraits: ["physics", "particles", "fluid", "material", "compute"],
|
|
6315
6329
|
riskTier: "standard",
|
|
6316
6330
|
factory: (opts) => {
|
|
6317
|
-
const { WebGPUCompiler } = (
|
|
6331
|
+
const { WebGPUCompiler } = (chunkU6CQOM5Q_cjs.init_WebGPUCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkU6CQOM5Q_cjs.WebGPUCompiler_exports));
|
|
6318
6332
|
return new WebGPUCompiler(opts);
|
|
6319
6333
|
},
|
|
6320
6334
|
outputExtensions: [".wgsl", ".ts"]
|
|
@@ -6327,7 +6341,7 @@ function registerBuiltinDialects() {
|
|
|
6327
6341
|
supportedTraits: ["joint", "actuator", "sensor", "collider", "end_effector"],
|
|
6328
6342
|
riskTier: "standard",
|
|
6329
6343
|
factory: (opts) => {
|
|
6330
|
-
const { URDFCompiler } = (
|
|
6344
|
+
const { URDFCompiler } = (chunkN2BOTBPG_cjs.init_URDFCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkN2BOTBPG_cjs.URDFCompiler_exports));
|
|
6331
6345
|
return new URDFCompiler(opts);
|
|
6332
6346
|
},
|
|
6333
6347
|
outputExtensions: [".urdf"]
|
|
@@ -6339,7 +6353,7 @@ function registerBuiltinDialects() {
|
|
|
6339
6353
|
supportedTraits: ["joint", "actuator", "sensor", "collider", "physics", "environment"],
|
|
6340
6354
|
riskTier: "standard",
|
|
6341
6355
|
factory: (opts) => {
|
|
6342
|
-
const { SDFCompiler } = (
|
|
6356
|
+
const { SDFCompiler } = (chunkQ6VW7MGX_cjs.init_SDFCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkQ6VW7MGX_cjs.SDFCompiler_exports));
|
|
6343
6357
|
return new SDFCompiler(opts);
|
|
6344
6358
|
},
|
|
6345
6359
|
outputExtensions: [".sdf"]
|
|
@@ -6387,7 +6401,7 @@ function registerBuiltinDialects() {
|
|
|
6387
6401
|
supportedTraits: ["sensor", "telemetry", "property", "command", "relationship"],
|
|
6388
6402
|
riskTier: "standard",
|
|
6389
6403
|
factory: (opts) => {
|
|
6390
|
-
const { DTDLCompiler } = (
|
|
6404
|
+
const { DTDLCompiler } = (chunkFGTXAVKG_cjs.init_DTDLCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkFGTXAVKG_cjs.DTDLCompiler_exports));
|
|
6391
6405
|
return new DTDLCompiler(opts);
|
|
6392
6406
|
},
|
|
6393
6407
|
outputExtensions: [".json"]
|
|
@@ -6400,7 +6414,7 @@ function registerBuiltinDialects() {
|
|
|
6400
6414
|
supportedTraits: ["state", "bind", "reactive"],
|
|
6401
6415
|
riskTier: "standard",
|
|
6402
6416
|
factory: (opts) => {
|
|
6403
|
-
const { StateCompiler } = (
|
|
6417
|
+
const { StateCompiler } = (chunkAUMTQV64_cjs.init_StateCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkAUMTQV64_cjs.StateCompiler_exports));
|
|
6404
6418
|
return new StateCompiler(opts);
|
|
6405
6419
|
},
|
|
6406
6420
|
outputExtensions: [".json"]
|
|
@@ -6424,7 +6438,7 @@ function registerBuiltinDialects() {
|
|
|
6424
6438
|
supportedTraits: ["agent", "model", "inference", "system_prompt", "tool", "persona"],
|
|
6425
6439
|
riskTier: "high",
|
|
6426
6440
|
factory: (opts) => {
|
|
6427
|
-
const { AgentInferenceCompiler } = (
|
|
6441
|
+
const { AgentInferenceCompiler } = (chunkCRUIGXF7_cjs.init_AgentInferenceExportTarget(), chunkZHPMP447_cjs.__toCommonJS(chunkCRUIGXF7_cjs.AgentInferenceExportTarget_exports));
|
|
6428
6442
|
return new AgentInferenceCompiler(opts);
|
|
6429
6443
|
},
|
|
6430
6444
|
outputExtensions: [".ts", ".py", ".json", ".md"]
|
|
@@ -6448,7 +6462,7 @@ function registerBuiltinDialects() {
|
|
|
6448
6462
|
supportedTraits: ["daimon", "agent", "emergence", "identity", "content_policy"],
|
|
6449
6463
|
riskTier: "high",
|
|
6450
6464
|
factory: (opts) => {
|
|
6451
|
-
const { DaimonSeedCompiler } = (
|
|
6465
|
+
const { DaimonSeedCompiler } = (chunkOQVHCYY4_cjs.init_DaimonSeedCompiler(), chunkZHPMP447_cjs.__toCommonJS(chunkOQVHCYY4_cjs.DaimonSeedCompiler_exports));
|
|
6452
6466
|
return new DaimonSeedCompiler(opts);
|
|
6453
6467
|
},
|
|
6454
6468
|
outputExtensions: [".json"]
|
|
@@ -6738,12 +6752,12 @@ chunkZHPMP447_cjs.__export(NodeServiceCompiler_exports, {
|
|
|
6738
6752
|
exports.NodeServiceCompiler = void 0;
|
|
6739
6753
|
var init_NodeServiceCompiler = chunkZHPMP447_cjs.__esm({
|
|
6740
6754
|
"src/compiler/NodeServiceCompiler.ts"() {
|
|
6741
|
-
|
|
6755
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
6742
6756
|
init_identity();
|
|
6743
6757
|
init_AuthorityEffectEnforcer();
|
|
6744
6758
|
init_DialectRegistry();
|
|
6745
|
-
|
|
6746
|
-
exports.NodeServiceCompiler = class extends
|
|
6759
|
+
chunk6RDHWSZM_cjs.init_constants();
|
|
6760
|
+
exports.NodeServiceCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
6747
6761
|
constructor(options = {}) {
|
|
6748
6762
|
super();
|
|
6749
6763
|
this.compilerName = "NodeServiceCompiler";
|
|
@@ -6758,7 +6772,7 @@ var init_NodeServiceCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
6758
6772
|
};
|
|
6759
6773
|
}
|
|
6760
6774
|
getRequiredCapability() {
|
|
6761
|
-
return
|
|
6775
|
+
return chunkCMEINO5I_cjs.ANSCapabilityPath.NODE_SERVICE;
|
|
6762
6776
|
}
|
|
6763
6777
|
compile(composition, agentToken, outputPath) {
|
|
6764
6778
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -7359,7 +7373,7 @@ ${indent}`)};`
|
|
|
7359
7373
|
const dependencies = isExpress ? { express: "^4.21.0", dotenv: "^16.4.0" } : { fastify: "^5.0.0", dotenv: "^16.4.0" };
|
|
7360
7374
|
const connectors = this.collectConnectors();
|
|
7361
7375
|
for (const conn of connectors) {
|
|
7362
|
-
const pkg2 =
|
|
7376
|
+
const pkg2 = chunk6RDHWSZM_cjs.CONNECTOR_PACKAGES[conn.name];
|
|
7363
7377
|
if (pkg2) {
|
|
7364
7378
|
dependencies[pkg2] = "latest";
|
|
7365
7379
|
}
|
|
@@ -7436,7 +7450,7 @@ ${indent}`)};`
|
|
|
7436
7450
|
map.set(env.name, env);
|
|
7437
7451
|
}
|
|
7438
7452
|
for (const conn of service.connectors) {
|
|
7439
|
-
const requirements =
|
|
7453
|
+
const requirements = chunk6RDHWSZM_cjs.CONNECTOR_ENV_REQUIREMENTS[conn.name] || [];
|
|
7440
7454
|
for (const req of requirements) {
|
|
7441
7455
|
if (!map.has(req)) {
|
|
7442
7456
|
map.set(req, { name: req, required: true });
|
|
@@ -7495,7 +7509,7 @@ ${indent}`)};`
|
|
|
7495
7509
|
lines.push(` */`);
|
|
7496
7510
|
lines.push(``);
|
|
7497
7511
|
for (const conn of connectors) {
|
|
7498
|
-
const pkg =
|
|
7512
|
+
const pkg = chunk6RDHWSZM_cjs.CONNECTOR_PACKAGES[conn.name];
|
|
7499
7513
|
if (pkg) {
|
|
7500
7514
|
lines.push(`import { ${this.toClassName(conn.name)}Connector } from '${pkg}';`);
|
|
7501
7515
|
}
|
|
@@ -7592,12 +7606,12 @@ ${indent}`)};`
|
|
|
7592
7606
|
const envVars = this.collectEnvVars();
|
|
7593
7607
|
const envMap = new Map(envVars.map((ev) => [ev.name, ev]));
|
|
7594
7608
|
for (const conn of connectors) {
|
|
7595
|
-
if (!
|
|
7609
|
+
if (!chunk6RDHWSZM_cjs.KNOWN_CONNECTORS.includes(conn.name)) {
|
|
7596
7610
|
console.warn(
|
|
7597
7611
|
`[NodeServiceCompiler] Warning: Unknown connector '${conn.name}'. Package dependency will not be added.`
|
|
7598
7612
|
);
|
|
7599
7613
|
} else {
|
|
7600
|
-
const requirements =
|
|
7614
|
+
const requirements = chunk6RDHWSZM_cjs.CONNECTOR_ENV_REQUIREMENTS[conn.name] || [];
|
|
7601
7615
|
for (const req of requirements) {
|
|
7602
7616
|
if (!envMap.has(req)) {
|
|
7603
7617
|
throw new Error(`Connector '${conn.name}' requires environment variable '${req}'`);
|
|
@@ -7647,8 +7661,8 @@ ${indent}`)};`
|
|
|
7647
7661
|
});
|
|
7648
7662
|
|
|
7649
7663
|
// src/compiler/PhysicsColliderCompiler.ts
|
|
7650
|
-
|
|
7651
|
-
|
|
7664
|
+
chunkU6CQOM5Q_cjs.init_geometry_registry();
|
|
7665
|
+
chunkU6CQOM5Q_cjs.init_geometry_purpose();
|
|
7652
7666
|
|
|
7653
7667
|
// src/compiler/render-modules/collider-extraction.ts
|
|
7654
7668
|
var PLANE_THICKNESS = 0.02;
|
|
@@ -7738,7 +7752,7 @@ var PhysicsColliderCompiler = class {
|
|
|
7738
7752
|
}
|
|
7739
7753
|
colliderFor(obj, offset) {
|
|
7740
7754
|
const traitNames = (obj.traits ?? []).map((t) => String(t.name).toLowerCase());
|
|
7741
|
-
const role =
|
|
7755
|
+
const role = chunkU6CQOM5Q_cjs.resolveGeometryRole({
|
|
7742
7756
|
purpose: this.findProp(obj, "purpose"),
|
|
7743
7757
|
visible: this.findProp(obj, "visible"),
|
|
7744
7758
|
traitNames
|
|
@@ -7749,7 +7763,7 @@ var PhysicsColliderCompiler = class {
|
|
|
7749
7763
|
const mesh = String(
|
|
7750
7764
|
this.findProp(obj, "geometry") ?? this.findProp(obj, "mesh") ?? this.findProp(obj, "type") ?? "cube"
|
|
7751
7765
|
);
|
|
7752
|
-
const primitive =
|
|
7766
|
+
const primitive = chunkU6CQOM5Q_cjs.resolveGeometry(mesh).kind;
|
|
7753
7767
|
const pos = this.findProp(obj, "position");
|
|
7754
7768
|
const [px, py, pz] = Array.isArray(pos) ? pos : [0, 0, 0];
|
|
7755
7769
|
const scale = this.findProp(obj, "scale") ?? this.findProp(obj, "size");
|
|
@@ -8016,9 +8030,9 @@ var SpatialAudioCompiler = class {
|
|
|
8016
8030
|
};
|
|
8017
8031
|
|
|
8018
8032
|
// src/compiler/DesktopGPUCompiler.ts
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8033
|
+
chunkU6CQOM5Q_cjs.init_geometry_registry();
|
|
8034
|
+
chunkU6CQOM5Q_cjs.init_geometry_purpose();
|
|
8035
|
+
chunkU6CQOM5Q_cjs.init_skybox_registry();
|
|
8022
8036
|
var RENDER_W = 900;
|
|
8023
8037
|
var RENDER_H = 600;
|
|
8024
8038
|
var DesktopGPUCompiler = class {
|
|
@@ -8243,14 +8257,14 @@ fn mat(m: &[f32; 16]) -> [[f32; 4]; 4] {
|
|
|
8243
8257
|
collectDrawItems(composition) {
|
|
8244
8258
|
const items = [];
|
|
8245
8259
|
const add = (obj, off) => {
|
|
8246
|
-
const role =
|
|
8260
|
+
const role = chunkU6CQOM5Q_cjs.resolveGeometryRole({
|
|
8247
8261
|
purpose: this.findProp(obj, "purpose"),
|
|
8248
8262
|
visible: this.findProp(obj, "visible"),
|
|
8249
8263
|
traitNames: (obj.traits ?? []).map((t) => t.name)
|
|
8250
8264
|
});
|
|
8251
8265
|
if (role.visible) {
|
|
8252
8266
|
const mesh = String(this.findProp(obj, "geometry") ?? this.findProp(obj, "mesh") ?? this.findProp(obj, "type") ?? "cube");
|
|
8253
|
-
const geo =
|
|
8267
|
+
const geo = chunkU6CQOM5Q_cjs.resolveGeometry(mesh).kind;
|
|
8254
8268
|
const pos = this.vec3(this.findProp(obj, "position"), [0, 0, 0]);
|
|
8255
8269
|
const scale = this.scaleOf(obj);
|
|
8256
8270
|
const model = [scale[0], 0, 0, 0, 0, scale[1], 0, 0, 0, 0, scale[2], 0, pos[0] + off[0], pos[1] + off[1], pos[2] + off[2], 1];
|
|
@@ -8276,7 +8290,7 @@ fn mat(m: &[f32; 16]) -> [[f32; 4]; 4] {
|
|
|
8276
8290
|
const props = {};
|
|
8277
8291
|
for (const p of env?.properties ?? []) props[p.key] = p.value;
|
|
8278
8292
|
const bg = props.background || props.skybox || "#05070d";
|
|
8279
|
-
const c = typeof bg === "string" && bg.startsWith("#") ? this.hexColor(bg) :
|
|
8293
|
+
const c = typeof bg === "string" && bg.startsWith("#") ? this.hexColor(bg) : chunkU6CQOM5Q_cjs.resolveSkyboxColor(String(bg));
|
|
8280
8294
|
return [c[0], c[1], c[2], 1];
|
|
8281
8295
|
}
|
|
8282
8296
|
// Auto-fit view-projection (mirrors the WebGPU auto-fit): honor a declared camera,
|
|
@@ -8463,9 +8477,9 @@ fn gen_torus(radius: f32, tube: f32, rad_seg: u32, tub_seg: u32) -> Vec<f32> {
|
|
|
8463
8477
|
};
|
|
8464
8478
|
|
|
8465
8479
|
// src/compiler/render-modules/raytrace-scene.ts
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8480
|
+
chunkU6CQOM5Q_cjs.init_geometry_registry();
|
|
8481
|
+
chunkU6CQOM5Q_cjs.init_geometry_purpose();
|
|
8482
|
+
chunkU6CQOM5Q_cjs.init_skybox_registry();
|
|
8469
8483
|
function extractRaytraceScene(composition, opts) {
|
|
8470
8484
|
const templates = new Map(
|
|
8471
8485
|
(composition.templates ?? []).map((t) => [t.name, t])
|
|
@@ -8510,14 +8524,14 @@ function extractRaytraceScene(composition, opts) {
|
|
|
8510
8524
|
};
|
|
8511
8525
|
const prims = [];
|
|
8512
8526
|
const add = (obj, off) => {
|
|
8513
|
-
const role =
|
|
8527
|
+
const role = chunkU6CQOM5Q_cjs.resolveGeometryRole({
|
|
8514
8528
|
purpose: findProp(obj, "purpose"),
|
|
8515
8529
|
visible: findProp(obj, "visible"),
|
|
8516
8530
|
traitNames: (obj.traits ?? []).map((t) => t.name)
|
|
8517
8531
|
});
|
|
8518
8532
|
if (role.visible) {
|
|
8519
8533
|
const mesh = String(findProp(obj, "geometry") ?? findProp(obj, "mesh") ?? findProp(obj, "type") ?? "cube");
|
|
8520
|
-
const kind =
|
|
8534
|
+
const kind = chunkU6CQOM5Q_cjs.resolveGeometry(mesh).kind;
|
|
8521
8535
|
const pos = vec3(findProp(obj, "position"), [0, 0, 0]);
|
|
8522
8536
|
const p = [pos[0] + off[0], pos[1] + off[1], pos[2] + off[2]];
|
|
8523
8537
|
const s = scaleOf(obj);
|
|
@@ -8607,7 +8621,7 @@ function skyColor(composition, hex) {
|
|
|
8607
8621
|
const props = {};
|
|
8608
8622
|
for (const p of env?.properties ?? []) props[p.key] = p.value;
|
|
8609
8623
|
const bg = props.background || props.skybox || "#0a0e14";
|
|
8610
|
-
const c = typeof bg === "string" && bg.startsWith("#") ? hex(bg) :
|
|
8624
|
+
const c = typeof bg === "string" && bg.startsWith("#") ? hex(bg) : chunkU6CQOM5Q_cjs.resolveSkyboxColor(String(bg));
|
|
8611
8625
|
return [c[0] * 0.6 + 0.02, c[1] * 0.6 + 0.03, c[2] * 0.6 + 0.05];
|
|
8612
8626
|
}
|
|
8613
8627
|
|
|
@@ -9291,9 +9305,9 @@ function to8(v) {
|
|
|
9291
9305
|
}
|
|
9292
9306
|
|
|
9293
9307
|
// src/compiler/ComputePhysicsCompiler.ts
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9308
|
+
chunkU6CQOM5Q_cjs.init_geometry_registry();
|
|
9309
|
+
chunkU6CQOM5Q_cjs.init_geometry_purpose();
|
|
9310
|
+
chunkU6CQOM5Q_cjs.init_skybox_registry();
|
|
9297
9311
|
|
|
9298
9312
|
// src/compiler/render-modules/material-registry.ts
|
|
9299
9313
|
var MATERIALS = {
|
|
@@ -9793,10 +9807,10 @@ async fn run() {
|
|
|
9793
9807
|
const bodies = [];
|
|
9794
9808
|
const statics = [];
|
|
9795
9809
|
const add = (obj, off) => {
|
|
9796
|
-
const role =
|
|
9810
|
+
const role = chunkU6CQOM5Q_cjs.resolveGeometryRole({ purpose: this.findProp(obj, "purpose"), visible: this.findProp(obj, "visible"), traitNames: (obj.traits ?? []).map((t) => t.name) });
|
|
9797
9811
|
if (role.visible) {
|
|
9798
9812
|
const mesh = String(this.findProp(obj, "geometry") ?? this.findProp(obj, "mesh") ?? this.findProp(obj, "type") ?? "cube");
|
|
9799
|
-
const kind =
|
|
9813
|
+
const kind = chunkU6CQOM5Q_cjs.resolveGeometry(mesh).kind;
|
|
9800
9814
|
const pos = this.vec3(this.findProp(obj, "position"), [0, 0, 0]);
|
|
9801
9815
|
const p = [pos[0] + off[0], pos[1] + off[1], pos[2] + off[2]];
|
|
9802
9816
|
const s = this.scaleOf(obj);
|
|
@@ -9910,7 +9924,7 @@ async fn run() {
|
|
|
9910
9924
|
const props = {};
|
|
9911
9925
|
for (const p of env?.properties ?? []) props[p.key] = p.value;
|
|
9912
9926
|
const bg = props.background || props.skybox || "#0a0e14";
|
|
9913
|
-
const c = typeof bg === "string" && bg.startsWith("#") ? this.hexColor(bg) :
|
|
9927
|
+
const c = typeof bg === "string" && bg.startsWith("#") ? this.hexColor(bg) : chunkU6CQOM5Q_cjs.resolveSkyboxColor(String(bg));
|
|
9914
9928
|
return [c[0], c[1], c[2], 1];
|
|
9915
9929
|
}
|
|
9916
9930
|
// ── helpers ─────────────────────────────────────────────────────────────────
|
|
@@ -9991,7 +10005,7 @@ fn gen_sphere(radius: f32, lat: u32, lon: u32) -> Vec<f32> {
|
|
|
9991
10005
|
};
|
|
9992
10006
|
|
|
9993
10007
|
// src/compiler/SVGCompiler.ts
|
|
9994
|
-
|
|
10008
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
9995
10009
|
var SCALE = 40;
|
|
9996
10010
|
function escapeAttr(value) {
|
|
9997
10011
|
return value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">").replace(/'/g, "'");
|
|
@@ -10103,7 +10117,7 @@ function resolveWidthHeight(node, scale) {
|
|
|
10103
10117
|
const baseD = toNumber(objProp(node, "depth"), toNumber(objProp(node, "height"), 1));
|
|
10104
10118
|
return { w: Math.abs(baseW * s.x) * scale, h: Math.abs(baseD * s.z) * scale };
|
|
10105
10119
|
}
|
|
10106
|
-
var SVGCompiler = class extends
|
|
10120
|
+
var SVGCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
10107
10121
|
constructor(options = {}) {
|
|
10108
10122
|
super();
|
|
10109
10123
|
this.compilerName = "SVGCompiler";
|
|
@@ -10403,7 +10417,7 @@ var CodeEditorCompiler = class {
|
|
|
10403
10417
|
};
|
|
10404
10418
|
|
|
10405
10419
|
// src/compiler/USDZPipeline.ts
|
|
10406
|
-
|
|
10420
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
10407
10421
|
function presetString(p, k) {
|
|
10408
10422
|
const v = p[k];
|
|
10409
10423
|
return typeof v === "string" ? v : void 0;
|
|
@@ -11136,59 +11150,59 @@ ${domainBlocksOutput}` : materials,
|
|
|
11136
11150
|
generateDomainBlocks(composition) {
|
|
11137
11151
|
const domainBlocks = composition.domainBlocks ?? [];
|
|
11138
11152
|
if (domainBlocks.length === 0) return "";
|
|
11139
|
-
const compiled =
|
|
11153
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
11140
11154
|
domainBlocks,
|
|
11141
11155
|
{
|
|
11142
11156
|
material: (block) => {
|
|
11143
|
-
const mat =
|
|
11144
|
-
return
|
|
11157
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
11158
|
+
return chunkIYK6LMQ7_cjs.materialToUSD(mat);
|
|
11145
11159
|
},
|
|
11146
11160
|
physics: (block) => {
|
|
11147
|
-
const phys =
|
|
11161
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
11148
11162
|
return `# Physics: ${phys.keyword} "${phys.name || ""}" \u2014 ${JSON.stringify(phys.properties)}`;
|
|
11149
11163
|
},
|
|
11150
11164
|
vfx: (block) => {
|
|
11151
|
-
const ps =
|
|
11152
|
-
return
|
|
11165
|
+
const ps = chunkIYK6LMQ7_cjs.compileParticleBlock(block);
|
|
11166
|
+
return chunkIYK6LMQ7_cjs.particlesToUSD(ps);
|
|
11153
11167
|
},
|
|
11154
11168
|
postfx: (block) => {
|
|
11155
|
-
const pp =
|
|
11156
|
-
return
|
|
11169
|
+
const pp = chunkIYK6LMQ7_cjs.compilePostProcessingBlock(block);
|
|
11170
|
+
return chunkIYK6LMQ7_cjs.postProcessingToUSD(pp);
|
|
11157
11171
|
},
|
|
11158
11172
|
audio: (block) => {
|
|
11159
|
-
const audio =
|
|
11160
|
-
return
|
|
11173
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
11174
|
+
return chunkIYK6LMQ7_cjs.audioSourceToUSD(audio);
|
|
11161
11175
|
},
|
|
11162
11176
|
weather: (block) => {
|
|
11163
|
-
const weather =
|
|
11164
|
-
return
|
|
11177
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
11178
|
+
return chunkIYK6LMQ7_cjs.weatherToUSD(weather);
|
|
11165
11179
|
},
|
|
11166
11180
|
narrative: (block) => {
|
|
11167
|
-
const narr =
|
|
11168
|
-
return
|
|
11181
|
+
const narr = chunkIYK6LMQ7_cjs.compileNarrativeBlock(block);
|
|
11182
|
+
return chunkIYK6LMQ7_cjs.narrativeToUSDA(narr);
|
|
11169
11183
|
},
|
|
11170
11184
|
payment: (block) => {
|
|
11171
|
-
const pay =
|
|
11172
|
-
return
|
|
11185
|
+
const pay = chunkIYK6LMQ7_cjs.compilePaymentBlock(block);
|
|
11186
|
+
return chunkIYK6LMQ7_cjs.paymentToUSDA(pay);
|
|
11173
11187
|
},
|
|
11174
11188
|
healthcare: (block) => {
|
|
11175
|
-
const h =
|
|
11176
|
-
return
|
|
11189
|
+
const h = chunkIYK6LMQ7_cjs.compileHealthcareBlock(block);
|
|
11190
|
+
return chunkIYK6LMQ7_cjs.healthcareToUSDA(h);
|
|
11177
11191
|
},
|
|
11178
11192
|
robotics: (block) => {
|
|
11179
|
-
const r =
|
|
11180
|
-
return
|
|
11193
|
+
const r = chunkIYK6LMQ7_cjs.compileRoboticsBlock(block);
|
|
11194
|
+
return chunkIYK6LMQ7_cjs.roboticsToUSDA(r);
|
|
11181
11195
|
},
|
|
11182
|
-
iot: (block) =>
|
|
11183
|
-
dataviz: (block) =>
|
|
11184
|
-
education: (block) =>
|
|
11185
|
-
music: (block) =>
|
|
11186
|
-
architecture: (block) =>
|
|
11187
|
-
web3: (block) =>
|
|
11188
|
-
procedural: (block) =>
|
|
11189
|
-
rendering: (block) =>
|
|
11190
|
-
navigation: (block) =>
|
|
11191
|
-
input: (block) =>
|
|
11196
|
+
iot: (block) => chunkIYK6LMQ7_cjs.iotToUSDA(chunkIYK6LMQ7_cjs.compileIoTBlock(block)),
|
|
11197
|
+
dataviz: (block) => chunkIYK6LMQ7_cjs.datavizToUSDA(chunkIYK6LMQ7_cjs.compileDataVizBlock(block)),
|
|
11198
|
+
education: (block) => chunkIYK6LMQ7_cjs.educationToUSDA(chunkIYK6LMQ7_cjs.compileEducationBlock(block)),
|
|
11199
|
+
music: (block) => chunkIYK6LMQ7_cjs.musicToUSDA(chunkIYK6LMQ7_cjs.compileMusicBlock(block)),
|
|
11200
|
+
architecture: (block) => chunkIYK6LMQ7_cjs.architectureToUSDA(chunkIYK6LMQ7_cjs.compileArchitectureBlock(block)),
|
|
11201
|
+
web3: (block) => chunkIYK6LMQ7_cjs.web3ToUSDA(chunkIYK6LMQ7_cjs.compileWeb3Block(block)),
|
|
11202
|
+
procedural: (block) => chunkIYK6LMQ7_cjs.proceduralToUSDA(chunkIYK6LMQ7_cjs.compileProceduralBlock(block)),
|
|
11203
|
+
rendering: (block) => chunkIYK6LMQ7_cjs.renderingToUSDA(chunkIYK6LMQ7_cjs.compileRenderingBlock(block)),
|
|
11204
|
+
navigation: (block) => chunkIYK6LMQ7_cjs.navigationToUSDA(chunkIYK6LMQ7_cjs.compileNavigationBlock(block)),
|
|
11205
|
+
input: (block) => chunkIYK6LMQ7_cjs.inputToUSDA(chunkIYK6LMQ7_cjs.compileInputBlock(block))
|
|
11192
11206
|
},
|
|
11193
11207
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${block.name}"`
|
|
11194
11208
|
);
|
|
@@ -11219,7 +11233,7 @@ _USDZPipeline.TEXTURE_CHANNEL_MAP = {
|
|
|
11219
11233
|
var USDZPipeline = _USDZPipeline;
|
|
11220
11234
|
|
|
11221
11235
|
// src/compiler/FMUCompiler.ts
|
|
11222
|
-
|
|
11236
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
11223
11237
|
var DEFAULT_OPTIONS = {
|
|
11224
11238
|
mode: "both",
|
|
11225
11239
|
modelIdentifier: "",
|
|
@@ -11228,7 +11242,7 @@ var DEFAULT_OPTIONS = {
|
|
|
11228
11242
|
includeCompositionJson: true,
|
|
11229
11243
|
generateDocs: false
|
|
11230
11244
|
};
|
|
11231
|
-
var FMUCompiler = class extends
|
|
11245
|
+
var FMUCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
11232
11246
|
constructor(options = {}) {
|
|
11233
11247
|
super();
|
|
11234
11248
|
this.compilerName = "FMUCompiler";
|
|
@@ -11740,7 +11754,7 @@ function densifyByInterpolation(positions, colors, opts) {
|
|
|
11740
11754
|
}
|
|
11741
11755
|
|
|
11742
11756
|
// src/compiler/GaussianSplattingCompiler.ts
|
|
11743
|
-
|
|
11757
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
11744
11758
|
var GAUSSIAN_SPLAT_TRAIT_NAME = "gaussian_splat";
|
|
11745
11759
|
var MULTIPLAYER_TRAIT_NAME = "multiplayer";
|
|
11746
11760
|
function detectMultiUserSharedSort(composition) {
|
|
@@ -11766,7 +11780,7 @@ function objectHasBothTraits(obj) {
|
|
|
11766
11780
|
return false;
|
|
11767
11781
|
}
|
|
11768
11782
|
var SHARED_SORT_SHADER_PATH = "packages/engine/src/gpu/shaders/splat-shared-sort.wgsl";
|
|
11769
|
-
var GaussianSplattingCompiler = class extends
|
|
11783
|
+
var GaussianSplattingCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
11770
11784
|
constructor(options = {}) {
|
|
11771
11785
|
super();
|
|
11772
11786
|
this.compilerName = "GaussianSplattingCompiler";
|
|
@@ -12512,14 +12526,14 @@ function createGaussianSplattingCompiler(options) {
|
|
|
12512
12526
|
}
|
|
12513
12527
|
|
|
12514
12528
|
// src/compiler/ThreeDTilesCompiler.ts
|
|
12515
|
-
|
|
12529
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
12516
12530
|
var DEFAULT_LODS = ["coarse", "medium", "fine"];
|
|
12517
12531
|
var LOD_STRIDES = {
|
|
12518
12532
|
coarse: 8,
|
|
12519
12533
|
medium: 3,
|
|
12520
12534
|
fine: 1
|
|
12521
12535
|
};
|
|
12522
|
-
var ThreeDTilesCompiler = class extends
|
|
12536
|
+
var ThreeDTilesCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
12523
12537
|
constructor(options = {}) {
|
|
12524
12538
|
super();
|
|
12525
12539
|
this.compilerName = "ThreeDTilesCompiler";
|
|
@@ -13004,7 +13018,7 @@ function digestBytes(value) {
|
|
|
13004
13018
|
}
|
|
13005
13019
|
|
|
13006
13020
|
// src/compiler/GaussianTrainCompiler.ts
|
|
13007
|
-
|
|
13021
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
13008
13022
|
|
|
13009
13023
|
// src/traits/GaussianTrainTrait.ts
|
|
13010
13024
|
var DEFAULT_GAUSSIAN_TRAIN_CONFIG = {
|
|
@@ -13040,7 +13054,7 @@ var GaussianTrainConfigError = class extends Error {
|
|
|
13040
13054
|
this.name = "GaussianTrainConfigError";
|
|
13041
13055
|
}
|
|
13042
13056
|
};
|
|
13043
|
-
var GaussianTrainCompiler = class extends
|
|
13057
|
+
var GaussianTrainCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
13044
13058
|
constructor(options = {}) {
|
|
13045
13059
|
super();
|
|
13046
13060
|
this.compilerName = "GaussianTrainCompiler";
|
|
@@ -13145,8 +13159,8 @@ function createGaussianTrainCompiler(options) {
|
|
|
13145
13159
|
}
|
|
13146
13160
|
|
|
13147
13161
|
// src/compiler/SCMCompiler.ts
|
|
13148
|
-
|
|
13149
|
-
var SCMCompiler = class extends
|
|
13162
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
13163
|
+
var SCMCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
13150
13164
|
constructor(options = {}) {
|
|
13151
13165
|
super();
|
|
13152
13166
|
this.compilerName = "SCMCompiler";
|
|
@@ -13278,8 +13292,8 @@ var SCMCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
|
13278
13292
|
};
|
|
13279
13293
|
|
|
13280
13294
|
// src/compiler/EdgeCompiler.ts
|
|
13281
|
-
|
|
13282
|
-
var EdgeCompiler = class extends
|
|
13295
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
13296
|
+
var EdgeCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
13283
13297
|
constructor(options = {}) {
|
|
13284
13298
|
super();
|
|
13285
13299
|
this.compilerName = "EdgeCompiler";
|
|
@@ -16122,8 +16136,8 @@ var CompilerBridge = class {
|
|
|
16122
16136
|
if (this.initialized) return;
|
|
16123
16137
|
try {
|
|
16124
16138
|
const [parserModule, compilerModule] = await Promise.all([
|
|
16125
|
-
import('./HoloScriptPlusParser-
|
|
16126
|
-
import('./SceneIRCompiler-
|
|
16139
|
+
import('./HoloScriptPlusParser-URSIBEAW.cjs'),
|
|
16140
|
+
import('./SceneIRCompiler-RTPPDQAV.cjs')
|
|
16127
16141
|
]);
|
|
16128
16142
|
this.modules = {
|
|
16129
16143
|
Parser: parserModule.HoloScriptPlusParser,
|
|
@@ -16848,5 +16862,5 @@ exports.selectModalityForAll = selectModalityForAll;
|
|
|
16848
16862
|
exports.spatialPartition = spatialPartition;
|
|
16849
16863
|
exports.streamWorldTiles = streamWorldTiles;
|
|
16850
16864
|
exports.uniformProvenance = uniformProvenance;
|
|
16851
|
-
//# sourceMappingURL=chunk-
|
|
16852
|
-
//# sourceMappingURL=chunk-
|
|
16865
|
+
//# sourceMappingURL=chunk-PHLNABJD.cjs.map
|
|
16866
|
+
//# sourceMappingURL=chunk-PHLNABJD.cjs.map
|