@holoscript/core 8.0.14 → 8.0.16
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-47XZ62KM.js → chunk-4UA5OBWR.js} +5 -5
- 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-N7MIIDLI.cjs → chunk-7IBXTJP7.cjs} +8 -8
- 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-W4AJMMQR.js → chunk-AUF7HFOO.js} +60 -22
- package/dist/{chunk-SKVBUGMC.cjs → chunk-AUMTQV64.cjs} +7 -7
- package/dist/{chunk-7ZKQ32XK.js → chunk-B5K3WHJ4.js} +4 -4
- 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-DDBYJJZK.js +1571 -0
- 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-EUNELE7Y.cjs +1605 -0
- 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-TMNAKNV2.cjs → chunk-PEBNX3VM.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-S2BSXG3B.js +3308 -0
- 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-VQOTDNFL.cjs +3337 -0
- 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-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 +65 -63
- package/dist/HoloCompositionParser-ZVRYVEA5.cjs +0 -45
- package/dist/HoloScriptPlusParser-WTPRPRPR.cjs +0 -30
- package/dist/HoloScriptPlusParser-ZP53ECSL.js +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ErrorRecovery, generateQuickFixes, enrichErrorWithSuggestions, RUNTIME_DIRECTIVE_TRAITS } from './chunk-
|
|
1
|
+
import { ErrorRecovery, generateQuickFixes, enrichErrorWithSuggestions, RUNTIME_DIRECTIVE_TRAITS } from './chunk-MSZNGI5P.js';
|
|
2
2
|
import { isBrainKeyword, isCognitiveVerb, nearestCognitiveVerb } from './chunk-UNMVGZVW.js';
|
|
3
|
-
import { LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES } from './chunk-
|
|
4
|
-
import { VR_TRAITS } from './chunk-
|
|
3
|
+
import { LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES } from './chunk-4AGNARX6.js';
|
|
4
|
+
import { VR_TRAITS } from './chunk-QS27OYBU.js';
|
|
5
5
|
import { isLocomotionReactionTrigger } from './chunk-63AUAIL6.js';
|
|
6
6
|
import * as crypto from 'crypto';
|
|
7
7
|
|
|
@@ -6254,5 +6254,5 @@ function parse(source, options) {
|
|
|
6254
6254
|
}
|
|
6255
6255
|
|
|
6256
6256
|
export { ChunkBasedIncrementalParser, HSPLUS_ERROR_CODES, HoloScriptPlusParser, ParseCache, createKeywordError, createParser, createRichError, createTraitError, findSimilarKeyword, findSimilarTrait, formatRichError, formatRichErrors, getErrorCodeDocumentation, getSourceContext, globalParseCache, parse, parseIncrementalChunks };
|
|
6257
|
-
//# sourceMappingURL=chunk-
|
|
6258
|
-
//# sourceMappingURL=chunk-
|
|
6257
|
+
//# sourceMappingURL=chunk-F33KLYOS.js.map
|
|
6258
|
+
//# sourceMappingURL=chunk-F33KLYOS.js.map
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkKROXXBK5_cjs = require('./chunk-KROXXBK5.cjs');
|
|
4
4
|
var chunkYKY2JBER_cjs = require('./chunk-YKY2JBER.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkBTVHY3UB_cjs = require('./chunk-BTVHY3UB.cjs');
|
|
6
6
|
var chunkENZCIQZC_cjs = require('./chunk-ENZCIQZC.cjs');
|
|
7
7
|
var chunkV6GXFSK7_cjs = require('./chunk-V6GXFSK7.cjs');
|
|
8
8
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
10
10
|
var chunkVHORVGCG_cjs = require('./chunk-VHORVGCG.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
12
12
|
var chunkHCX4SMFK_cjs = require('./chunk-HCX4SMFK.cjs');
|
|
13
13
|
|
|
14
14
|
// src/compiler/SceneIRCompiler.ts
|
|
@@ -581,7 +581,7 @@ var ALL_PRESETS = [
|
|
|
581
581
|
PHONE_SLEEVE_VR_VISUALS
|
|
582
582
|
];
|
|
583
583
|
function registerAllPresets() {
|
|
584
|
-
const registry =
|
|
584
|
+
const registry = chunkBTVHY3UB_cjs.TraitVisualRegistry.getInstance();
|
|
585
585
|
for (const presetMap of ALL_PRESETS) {
|
|
586
586
|
registry.registerBatch(presetMap);
|
|
587
587
|
}
|
|
@@ -589,10 +589,10 @@ function registerAllPresets() {
|
|
|
589
589
|
registerAllPresets();
|
|
590
590
|
|
|
591
591
|
// src/compiler/SceneIRCompiler.ts
|
|
592
|
-
|
|
592
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
593
593
|
chunkTZCFKZ6Z_cjs.init_PlatformConditionalCompilerMixin();
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
chunkCMEINO5I_cjs.init_AgentRBAC();
|
|
595
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
596
596
|
|
|
597
597
|
// src/animation/stagger.ts
|
|
598
598
|
function staggerOffsets(count, step, from = 0) {
|
|
@@ -2442,7 +2442,7 @@ var QUALITY_TIER_SCALES = {
|
|
|
2442
2442
|
var SceneIRCompiler = class {
|
|
2443
2443
|
constructor(options = {}) {
|
|
2444
2444
|
// ─── RBAC Enforcement ─────────────────────────────────────────────────
|
|
2445
|
-
this.rbac =
|
|
2445
|
+
this.rbac = chunkCMEINO5I_cjs.getRBAC();
|
|
2446
2446
|
this.compilerName = options.compilerName ?? "SceneIRCompiler";
|
|
2447
2447
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2448
2448
|
this.tierScales = QUALITY_TIER_SCALES[this.qualityTier];
|
|
@@ -2474,7 +2474,7 @@ var SceneIRCompiler = class {
|
|
|
2474
2474
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2475
2475
|
});
|
|
2476
2476
|
if (!astDecision.allowed) {
|
|
2477
|
-
throw new
|
|
2477
|
+
throw new chunkCMEINO5I_cjs.UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2478
2478
|
}
|
|
2479
2479
|
const codeDecision = this.rbac.checkAccess({
|
|
2480
2480
|
token: agentToken,
|
|
@@ -2483,7 +2483,7 @@ var SceneIRCompiler = class {
|
|
|
2483
2483
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2484
2484
|
});
|
|
2485
2485
|
if (!codeDecision.allowed) {
|
|
2486
|
-
throw new
|
|
2486
|
+
throw new chunkCMEINO5I_cjs.UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
2487
2487
|
}
|
|
2488
2488
|
if (outputPath) {
|
|
2489
2489
|
const outputDecision = this.rbac.checkAccess({
|
|
@@ -2494,7 +2494,7 @@ var SceneIRCompiler = class {
|
|
|
2494
2494
|
expectedWorkflowStep: "serialize" /* SERIALIZE */
|
|
2495
2495
|
});
|
|
2496
2496
|
if (!outputDecision.allowed) {
|
|
2497
|
-
throw new
|
|
2497
|
+
throw new chunkCMEINO5I_cjs.UnauthorizedCompilerAccessError(
|
|
2498
2498
|
outputDecision,
|
|
2499
2499
|
`output write to '${outputPath}'`,
|
|
2500
2500
|
this.compilerName
|
|
@@ -2644,15 +2644,15 @@ var SceneIRCompiler = class {
|
|
|
2644
2644
|
this.injectDefaultLighting(root);
|
|
2645
2645
|
const domainBlocks = ast.domainBlocks ?? [];
|
|
2646
2646
|
if (domainBlocks.length > 0) {
|
|
2647
|
-
const compiled =
|
|
2647
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
2648
2648
|
domainBlocks,
|
|
2649
2649
|
{
|
|
2650
2650
|
material: (block) => {
|
|
2651
|
-
const mat =
|
|
2651
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
2652
2652
|
return {
|
|
2653
2653
|
type: "DomainBlockOutput",
|
|
2654
2654
|
props: {
|
|
2655
|
-
__raw:
|
|
2655
|
+
__raw: chunkIYK6LMQ7_cjs.materialToR3F(mat, this.tierScales),
|
|
2656
2656
|
__domain: "material",
|
|
2657
2657
|
__name: mat.name
|
|
2658
2658
|
},
|
|
@@ -2660,11 +2660,11 @@ var SceneIRCompiler = class {
|
|
|
2660
2660
|
};
|
|
2661
2661
|
},
|
|
2662
2662
|
physics: (block) => {
|
|
2663
|
-
const phys =
|
|
2663
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
2664
2664
|
return {
|
|
2665
2665
|
type: "DomainBlockOutput",
|
|
2666
2666
|
props: {
|
|
2667
|
-
__raw:
|
|
2667
|
+
__raw: chunkIYK6LMQ7_cjs.physicsToR3F(phys),
|
|
2668
2668
|
__domain: "physics",
|
|
2669
2669
|
__name: phys.name || phys.keyword
|
|
2670
2670
|
},
|
|
@@ -2672,11 +2672,11 @@ var SceneIRCompiler = class {
|
|
|
2672
2672
|
};
|
|
2673
2673
|
},
|
|
2674
2674
|
vfx: (block) => {
|
|
2675
|
-
const ps =
|
|
2675
|
+
const ps = chunkIYK6LMQ7_cjs.compileParticleBlock(block);
|
|
2676
2676
|
return {
|
|
2677
2677
|
type: "DomainBlockOutput",
|
|
2678
2678
|
props: {
|
|
2679
|
-
__raw:
|
|
2679
|
+
__raw: chunkIYK6LMQ7_cjs.particlesToR3F(ps, this.tierScales),
|
|
2680
2680
|
__domain: "vfx",
|
|
2681
2681
|
__name: ps.name
|
|
2682
2682
|
},
|
|
@@ -2684,11 +2684,11 @@ var SceneIRCompiler = class {
|
|
|
2684
2684
|
};
|
|
2685
2685
|
},
|
|
2686
2686
|
postfx: (block) => {
|
|
2687
|
-
const pp =
|
|
2687
|
+
const pp = chunkIYK6LMQ7_cjs.compilePostProcessingBlock(block);
|
|
2688
2688
|
return {
|
|
2689
2689
|
type: "DomainBlockOutput",
|
|
2690
2690
|
props: {
|
|
2691
|
-
__raw:
|
|
2691
|
+
__raw: chunkIYK6LMQ7_cjs.postProcessingToR3F(pp),
|
|
2692
2692
|
__domain: "postfx",
|
|
2693
2693
|
__name: pp.name || "PostProcessing"
|
|
2694
2694
|
},
|
|
@@ -2696,19 +2696,19 @@ var SceneIRCompiler = class {
|
|
|
2696
2696
|
};
|
|
2697
2697
|
},
|
|
2698
2698
|
audio: (block) => {
|
|
2699
|
-
const audio =
|
|
2699
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
2700
2700
|
return {
|
|
2701
2701
|
type: "DomainBlockOutput",
|
|
2702
|
-
props: { __raw:
|
|
2702
|
+
props: { __raw: chunkIYK6LMQ7_cjs.audioSourceToR3F(audio), __domain: "audio", __name: audio.name },
|
|
2703
2703
|
children: []
|
|
2704
2704
|
};
|
|
2705
2705
|
},
|
|
2706
2706
|
weather: (block) => {
|
|
2707
|
-
const weather =
|
|
2707
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
2708
2708
|
return {
|
|
2709
2709
|
type: "DomainBlockOutput",
|
|
2710
2710
|
props: {
|
|
2711
|
-
__raw:
|
|
2711
|
+
__raw: chunkIYK6LMQ7_cjs.weatherToR3F(weather),
|
|
2712
2712
|
__domain: "weather",
|
|
2713
2713
|
__name: weather.name || "Weather"
|
|
2714
2714
|
},
|
|
@@ -2716,11 +2716,11 @@ var SceneIRCompiler = class {
|
|
|
2716
2716
|
};
|
|
2717
2717
|
},
|
|
2718
2718
|
simulation: (block) => {
|
|
2719
|
-
const sim =
|
|
2719
|
+
const sim = chunkIYK6LMQ7_cjs.compileSimulationBlock(block);
|
|
2720
2720
|
return {
|
|
2721
2721
|
type: "DomainBlockOutput",
|
|
2722
2722
|
props: {
|
|
2723
|
-
__raw:
|
|
2723
|
+
__raw: chunkIYK6LMQ7_cjs.simulationToR3F(sim),
|
|
2724
2724
|
__domain: "simulation",
|
|
2725
2725
|
__name: sim.name || "Simulation"
|
|
2726
2726
|
},
|
|
@@ -2792,7 +2792,7 @@ var SceneIRCompiler = class {
|
|
|
2792
2792
|
const group = this.createNode(
|
|
2793
2793
|
"group",
|
|
2794
2794
|
{},
|
|
2795
|
-
world.name ?
|
|
2795
|
+
world.name ? chunkCMEINO5I_cjs.escapeStringValue(world.name, "JSX") : void 0
|
|
2796
2796
|
);
|
|
2797
2797
|
group.children = [...nodes, ...childNodes];
|
|
2798
2798
|
return [group];
|
|
@@ -2831,7 +2831,7 @@ var SceneIRCompiler = class {
|
|
|
2831
2831
|
* - Placement is flat (y=0); slope/terrain-conforming placement is out of scope.
|
|
2832
2832
|
*/
|
|
2833
2833
|
compileProceduralScatterNode(block) {
|
|
2834
|
-
const proc =
|
|
2834
|
+
const proc = chunkIYK6LMQ7_cjs.compileProceduralBlock(block);
|
|
2835
2835
|
const props = block.properties ?? {};
|
|
2836
2836
|
let scatterNode;
|
|
2837
2837
|
if (Array.isArray(props.nodes)) {
|
|
@@ -3061,7 +3061,7 @@ var SceneIRCompiler = class {
|
|
|
3061
3061
|
const r3fNode = sceneIRNodePool.acquire();
|
|
3062
3062
|
r3fNode.type = type;
|
|
3063
3063
|
const rawId = node.id || node.name;
|
|
3064
|
-
r3fNode.id = rawId ?
|
|
3064
|
+
r3fNode.id = rawId ? chunkCMEINO5I_cjs.escapeStringValue(rawId, "JSX") : void 0;
|
|
3065
3065
|
r3fNode.props = this.compileProperties(node, rawProps);
|
|
3066
3066
|
r3fNode.children = [];
|
|
3067
3067
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3100,7 +3100,7 @@ var SceneIRCompiler = class {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
const root = sceneIRNodePool.acquire();
|
|
3102
3102
|
root.type = "group";
|
|
3103
|
-
root.id = composition.name ?
|
|
3103
|
+
root.id = composition.name ? chunkCMEINO5I_cjs.escapeStringValue(composition.name, "JSX") : void 0;
|
|
3104
3104
|
root.props = {};
|
|
3105
3105
|
root.children = [];
|
|
3106
3106
|
root.traits = /* @__PURE__ */ new Map();
|
|
@@ -3265,7 +3265,7 @@ var SceneIRCompiler = class {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
const r3fNode = sceneIRNodePool.acquire();
|
|
3267
3267
|
r3fNode.type = type;
|
|
3268
|
-
r3fNode.id = light.name ?
|
|
3268
|
+
r3fNode.id = light.name ? chunkCMEINO5I_cjs.escapeStringValue(light.name, "JSX") : void 0;
|
|
3269
3269
|
r3fNode.props = props;
|
|
3270
3270
|
r3fNode.children = [];
|
|
3271
3271
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3856,7 +3856,7 @@ var SceneIRCompiler = class {
|
|
|
3856
3856
|
const traitNames = obj.traits.map(
|
|
3857
3857
|
(t) => t.name
|
|
3858
3858
|
);
|
|
3859
|
-
const compositor = new
|
|
3859
|
+
const compositor = new chunkBTVHY3UB_cjs.TraitCompositor();
|
|
3860
3860
|
const composedMaterial = compositor.compose(traitNames);
|
|
3861
3861
|
if (Object.keys(composedMaterial).length > 0) {
|
|
3862
3862
|
props.materialProps = {
|
|
@@ -4174,7 +4174,7 @@ var SceneIRCompiler = class {
|
|
|
4174
4174
|
entries.push(this.createNode("TimelineEntry", entryProps));
|
|
4175
4175
|
}
|
|
4176
4176
|
}
|
|
4177
|
-
const safeName = timeline.name ?
|
|
4177
|
+
const safeName = timeline.name ? chunkCMEINO5I_cjs.escapeStringValue(timeline.name, "JSX") : void 0;
|
|
4178
4178
|
const timelineNode = this.createNode(
|
|
4179
4179
|
"Timeline",
|
|
4180
4180
|
{ autoplay: timeline.autoplay, loop: timeline.loop },
|
|
@@ -4212,7 +4212,7 @@ var SceneIRCompiler = class {
|
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
4214
|
const props = node.properties || {};
|
|
4215
|
-
const safeName = node.name ?
|
|
4215
|
+
const safeName = node.name ? chunkCMEINO5I_cjs.escapeStringValue(node.name, "JSX") : void 0;
|
|
4216
4216
|
const timelineNode = this.createNode(
|
|
4217
4217
|
"Timeline",
|
|
4218
4218
|
{ autoplay: props.autoplay, loop: props.loop },
|
|
@@ -4245,7 +4245,7 @@ var SceneIRCompiler = class {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
}
|
|
4247
4247
|
}
|
|
4248
|
-
const safeName = audio.name ?
|
|
4248
|
+
const safeName = audio.name ? chunkCMEINO5I_cjs.escapeStringValue(audio.name, "JSX") : void 0;
|
|
4249
4249
|
return this.createNode("Audio", props, safeName);
|
|
4250
4250
|
}
|
|
4251
4251
|
compileZoneBlock(zone) {
|
|
@@ -4264,7 +4264,7 @@ var SceneIRCompiler = class {
|
|
|
4264
4264
|
})
|
|
4265
4265
|
);
|
|
4266
4266
|
}
|
|
4267
|
-
const safeName = zone.name ?
|
|
4267
|
+
const safeName = zone.name ? chunkCMEINO5I_cjs.escapeStringValue(zone.name, "JSX") : void 0;
|
|
4268
4268
|
return this.createNode("Zone", props, safeName);
|
|
4269
4269
|
}
|
|
4270
4270
|
compileUIBlock(ui) {
|
|
@@ -4281,7 +4281,7 @@ var SceneIRCompiler = class {
|
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
4283
|
}
|
|
4284
|
-
const safeElName = el.name ?
|
|
4284
|
+
const safeElName = el.name ? chunkCMEINO5I_cjs.escapeStringValue(el.name, "JSX") : void 0;
|
|
4285
4285
|
children.push(this.createNode("UIElement", elProps, safeElName));
|
|
4286
4286
|
}
|
|
4287
4287
|
}
|
|
@@ -4296,7 +4296,7 @@ var SceneIRCompiler = class {
|
|
|
4296
4296
|
props[prop.key] = prop.value;
|
|
4297
4297
|
}
|
|
4298
4298
|
}
|
|
4299
|
-
const safeName = transition.name ?
|
|
4299
|
+
const safeName = transition.name ? chunkCMEINO5I_cjs.escapeStringValue(transition.name, "JSX") : void 0;
|
|
4300
4300
|
return this.createNode("Transition", props, safeName);
|
|
4301
4301
|
}
|
|
4302
4302
|
compileConditionalBlock(cond, templateMap) {
|
|
@@ -4720,5 +4720,5 @@ exports.QUALITY_TIER_SCALES = QUALITY_TIER_SCALES;
|
|
|
4720
4720
|
exports.SceneIRCompiler = SceneIRCompiler;
|
|
4721
4721
|
exports.UI_COMPONENT_PRESETS = UI_COMPONENT_PRESETS;
|
|
4722
4722
|
exports.registerAllPresets = registerAllPresets;
|
|
4723
|
-
//# sourceMappingURL=chunk-
|
|
4724
|
-
//# sourceMappingURL=chunk-
|
|
4723
|
+
//# sourceMappingURL=chunk-F47FEV4X.cjs.map
|
|
4724
|
+
//# sourceMappingURL=chunk-F47FEV4X.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk3VBO3IYQ_cjs = require('./chunk-3VBO3IYQ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkILO2KMER_cjs = require('./chunk-ILO2KMER.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 chunkILO2KMER_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-FCGTI7FO.cjs.map
|
|
7887
|
+
//# sourceMappingURL=chunk-FCGTI7FO.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
4
4
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
5
5
|
var ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
@@ -14,8 +14,8 @@ chunkZHPMP447_cjs.__export(DTDLCompiler_exports, {
|
|
|
14
14
|
exports.DTDLCompiler = void 0; exports.DTDL_TRAIT_COMPONENTS = void 0; exports.DTDLCompiler_default = void 0;
|
|
15
15
|
var init_DTDLCompiler = chunkZHPMP447_cjs.__esm({
|
|
16
16
|
"src/compiler/DTDLCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
exports.DTDLCompiler = class extends
|
|
17
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
18
|
+
exports.DTDLCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
super();
|
|
21
21
|
this.compilerName = "DTDLCompiler";
|
|
@@ -420,5 +420,5 @@ var init_DTDLCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
420
420
|
|
|
421
421
|
exports.DTDLCompiler_exports = DTDLCompiler_exports;
|
|
422
422
|
exports.init_DTDLCompiler = init_DTDLCompiler;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-FGTXAVKG.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-FGTXAVKG.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkCFVK26P4_cjs = require('./chunk-CFVK26P4.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
5
5
|
var chunkAWXFEAQL_cjs = require('./chunk-AWXFEAQL.cjs');
|
|
6
6
|
var chunkN74QRJGP_cjs = require('./chunk-N74QRJGP.cjs');
|
|
7
7
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
@@ -2305,13 +2305,13 @@ function compileToAndroid(composition, options) {
|
|
|
2305
2305
|
exports.AndroidCompiler = void 0;
|
|
2306
2306
|
var init_AndroidCompiler = chunkZHPMP447_cjs.__esm({
|
|
2307
2307
|
"src/compiler/AndroidCompiler.ts"() {
|
|
2308
|
-
|
|
2308
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
2309
2309
|
init_AndroidARGenerators();
|
|
2310
2310
|
init_AndroidFeatureGenerators();
|
|
2311
2311
|
init_AndroidSceneViewFeatureGenerators();
|
|
2312
2312
|
init_AndroidPeripheralGenerators();
|
|
2313
2313
|
chunkCFVK26P4_cjs.init_AndroidKotlinHelpers();
|
|
2314
|
-
exports.AndroidCompiler = class extends
|
|
2314
|
+
exports.AndroidCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
2315
2315
|
constructor(options = {}) {
|
|
2316
2316
|
super();
|
|
2317
2317
|
this.compilerName = "AndroidCompiler";
|
|
@@ -2465,5 +2465,5 @@ var init_AndroidCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
2465
2465
|
exports.AndroidCompiler_exports = AndroidCompiler_exports;
|
|
2466
2466
|
exports.compileToAndroid = compileToAndroid;
|
|
2467
2467
|
exports.init_AndroidCompiler = init_AndroidCompiler;
|
|
2468
|
-
//# sourceMappingURL=chunk-
|
|
2469
|
-
//# sourceMappingURL=chunk-
|
|
2468
|
+
//# sourceMappingURL=chunk-FPGYWNNA.cjs.map
|
|
2469
|
+
//# sourceMappingURL=chunk-FPGYWNNA.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
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 ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
7
7
|
// src/compiler/USDPhysicsCompiler.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var USDPhysicsCompiler = class extends
|
|
8
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
9
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
10
|
+
var USDPhysicsCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
11
11
|
constructor(options = {}) {
|
|
12
12
|
super();
|
|
13
13
|
this.compilerName = "USDPhysicsCompiler";
|
|
@@ -264,34 +264,34 @@ var USDPhysicsCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
|
264
264
|
if (domainBlocks.length > 0) {
|
|
265
265
|
this.emitBlank();
|
|
266
266
|
this.emit(`# === v4.2 Domain Blocks ===`);
|
|
267
|
-
const compiled =
|
|
267
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
268
268
|
domainBlocks,
|
|
269
269
|
{
|
|
270
270
|
material: (block) => {
|
|
271
|
-
const mat =
|
|
272
|
-
return
|
|
271
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
272
|
+
return chunkIYK6LMQ7_cjs.materialToUSD(mat);
|
|
273
273
|
},
|
|
274
274
|
physics: (block) => {
|
|
275
|
-
const phys =
|
|
276
|
-
const urdf =
|
|
275
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
276
|
+
const urdf = chunkIYK6LMQ7_cjs.physicsToURDF(phys);
|
|
277
277
|
return `# Physics: ${phys.keyword} "${phys.name || ""}"
|
|
278
278
|
` + urdf.split("\n").map((l) => `# URDF: ${l}`).join("\n");
|
|
279
279
|
},
|
|
280
280
|
vfx: (block) => {
|
|
281
|
-
const ps =
|
|
282
|
-
return
|
|
281
|
+
const ps = chunkIYK6LMQ7_cjs.compileParticleBlock(block);
|
|
282
|
+
return chunkIYK6LMQ7_cjs.particlesToUSD(ps);
|
|
283
283
|
},
|
|
284
284
|
postfx: (block) => {
|
|
285
|
-
const pp =
|
|
286
|
-
return
|
|
285
|
+
const pp = chunkIYK6LMQ7_cjs.compilePostProcessingBlock(block);
|
|
286
|
+
return chunkIYK6LMQ7_cjs.postProcessingToUSD(pp);
|
|
287
287
|
},
|
|
288
288
|
audio: (block) => {
|
|
289
|
-
const audio =
|
|
290
|
-
return
|
|
289
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
290
|
+
return chunkIYK6LMQ7_cjs.audioSourceToUSD(audio);
|
|
291
291
|
},
|
|
292
292
|
weather: (block) => {
|
|
293
|
-
const weather =
|
|
294
|
-
return
|
|
293
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
294
|
+
return chunkIYK6LMQ7_cjs.weatherToUSD(weather);
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
297
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -890,5 +890,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
890
890
|
exports.USDPhysicsCompiler = USDPhysicsCompiler;
|
|
891
891
|
exports.compileForIsaacSim = compileForIsaacSim;
|
|
892
892
|
exports.compileToUSDPhysics = compileToUSDPhysics;
|
|
893
|
-
//# sourceMappingURL=chunk-
|
|
894
|
-
//# sourceMappingURL=chunk-
|
|
893
|
+
//# sourceMappingURL=chunk-FQ4MYZYU.cjs.map
|
|
894
|
+
//# sourceMappingURL=chunk-FQ4MYZYU.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 { __export, __esm } from './chunk-W4GABFCR.js';
|
|
3
3
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
4
4
|
|
|
@@ -1004,5 +1004,5 @@ export interface ToolResult {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
|
|
1006
1006
|
export { AgentInferenceCompiler, AgentInferenceExportTarget_default, AgentInferenceExportTarget_exports, createAgentInferenceCompiler, createPythonAgentInferenceCompiler, init_AgentInferenceExportTarget };
|
|
1007
|
-
//# sourceMappingURL=chunk-
|
|
1008
|
-
//# sourceMappingURL=chunk-
|
|
1007
|
+
//# sourceMappingURL=chunk-FT4FGTR6.js.map
|
|
1008
|
+
//# sourceMappingURL=chunk-FT4FGTR6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkILO2KMER_cjs = require('./chunk-ILO2KMER.cjs');
|
|
4
4
|
var chunkYP5CHEYU_cjs = require('./chunk-YP5CHEYU.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunk2PVEXEOL_cjs = require('./chunk-2PVEXEOL.cjs');
|
|
6
|
+
var chunk6RDHWSZM_cjs = require('./chunk-6RDHWSZM.cjs');
|
|
7
7
|
var chunkNTQRFOPP_cjs = require('./chunk-NTQRFOPP.cjs');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
|
|
@@ -1010,7 +1010,7 @@ function similarity(a, b) {
|
|
|
1010
1010
|
function findSimilarTrait(input, threshold = 0.5) {
|
|
1011
1011
|
let bestMatch;
|
|
1012
1012
|
let bestScore = threshold;
|
|
1013
|
-
for (const trait of
|
|
1013
|
+
for (const trait of chunk6RDHWSZM_cjs.VR_TRAITS) {
|
|
1014
1014
|
const score = similarity(input, trait);
|
|
1015
1015
|
if (score > bestScore) {
|
|
1016
1016
|
bestScore = score;
|
|
@@ -1822,7 +1822,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
1822
1822
|
this.hasVRTraits = false;
|
|
1823
1823
|
this.hasControlFlow = false;
|
|
1824
1824
|
this.compiledExpressions = /* @__PURE__ */ new Map();
|
|
1825
|
-
this.errorRecovery = new
|
|
1825
|
+
this.errorRecovery = new chunkILO2KMER_cjs.ErrorRecovery();
|
|
1826
1826
|
/**
|
|
1827
1827
|
* Internal incremental parser for parseIncremental.
|
|
1828
1828
|
* Uses ChunkBasedIncrementalParser with AST-aware chunking and
|
|
@@ -1848,7 +1848,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
1848
1848
|
getQuickFixes() {
|
|
1849
1849
|
const fixes = /* @__PURE__ */ new Map();
|
|
1850
1850
|
for (const error of this.errors) {
|
|
1851
|
-
const errorFixes =
|
|
1851
|
+
const errorFixes = chunkILO2KMER_cjs.generateQuickFixes(
|
|
1852
1852
|
{
|
|
1853
1853
|
code: error.code,
|
|
1854
1854
|
message: error.message,
|
|
@@ -1869,7 +1869,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
getEnrichedErrors() {
|
|
1871
1871
|
return this.errors.map(
|
|
1872
|
-
(error) =>
|
|
1872
|
+
(error) => chunkILO2KMER_cjs.enrichErrorWithSuggestions(
|
|
1873
1873
|
{
|
|
1874
1874
|
code: error.code,
|
|
1875
1875
|
message: error.message,
|
|
@@ -2939,7 +2939,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
return { type: "waypoints", points };
|
|
2941
2941
|
}
|
|
2942
|
-
if (
|
|
2942
|
+
if (chunk6RDHWSZM_cjs.VR_TRAITS.includes(name)) {
|
|
2943
2943
|
if (!this.options.enableVRTraits) {
|
|
2944
2944
|
this.warn(`VR trait @${name} is disabled`);
|
|
2945
2945
|
return null;
|
|
@@ -2969,7 +2969,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
return this.parseTraitSumTail(directive2);
|
|
2971
2971
|
}
|
|
2972
|
-
if (
|
|
2972
|
+
if (chunk2PVEXEOL_cjs.LIFECYCLE_HOOKS.includes(name)) {
|
|
2973
2973
|
const params = [];
|
|
2974
2974
|
if (this.check("LPAREN")) {
|
|
2975
2975
|
this.advance();
|
|
@@ -3285,7 +3285,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
3285
3285
|
return { type: "hololand_event", event: eventName, params };
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
if (
|
|
3288
|
+
if (chunk2PVEXEOL_cjs.STRUCTURAL_DIRECTIVES.includes(name)) {
|
|
3289
3289
|
let nodeName;
|
|
3290
3290
|
if (this.check("STRING")) {
|
|
3291
3291
|
nodeName = this.advance().value;
|
|
@@ -3293,7 +3293,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
3293
3293
|
const config2 = this.check("LBRACE") ? this.parseBlockContent() : this.parseTraitConfig();
|
|
3294
3294
|
return { ...config2, type: name, name: nodeName };
|
|
3295
3295
|
}
|
|
3296
|
-
const isKnownRuntimeDirective =
|
|
3296
|
+
const isKnownRuntimeDirective = chunkILO2KMER_cjs.RUNTIME_DIRECTIVE_TRAITS.includes(name);
|
|
3297
3297
|
if (!isKnownRuntimeDirective) {
|
|
3298
3298
|
if (this.options.strict) {
|
|
3299
3299
|
this.traitError(name);
|
|
@@ -6066,7 +6066,7 @@ var HoloScriptPlusParser = class _HoloScriptPlusParser {
|
|
|
6066
6066
|
code: "HSP001"
|
|
6067
6067
|
};
|
|
6068
6068
|
}
|
|
6069
|
-
if (current.type === "IDENTIFIER" &&
|
|
6069
|
+
if (current.type === "IDENTIFIER" && chunk6RDHWSZM_cjs.VR_TRAITS.includes(current.value)) {
|
|
6070
6070
|
if (prev?.type !== "AT") {
|
|
6071
6071
|
return {
|
|
6072
6072
|
message: `'${current.value}' is a trait and requires '@' prefix`,
|
|
@@ -6292,5 +6292,5 @@ exports.getSourceContext = getSourceContext;
|
|
|
6292
6292
|
exports.globalParseCache = globalParseCache;
|
|
6293
6293
|
exports.parse = parse;
|
|
6294
6294
|
exports.parseIncrementalChunks = parseIncrementalChunks;
|
|
6295
|
-
//# sourceMappingURL=chunk-
|
|
6296
|
-
//# sourceMappingURL=chunk-
|
|
6295
|
+
//# sourceMappingURL=chunk-FVNV4WHQ.cjs.map
|
|
6296
|
+
//# sourceMappingURL=chunk-FVNV4WHQ.cjs.map
|
|
@@ -783,5 +783,5 @@ exports.jepObjectiveHandler = jepObjectiveHandler;
|
|
|
783
783
|
exports.mitosisHandler = mitosisHandler;
|
|
784
784
|
exports.orbitalHandler = orbitalHandler;
|
|
785
785
|
exports.setSharedEventBus = setSharedEventBus;
|
|
786
|
-
//# sourceMappingURL=chunk-
|
|
787
|
-
//# sourceMappingURL=chunk-
|
|
786
|
+
//# sourceMappingURL=chunk-HSGJFCVJ.cjs.map
|
|
787
|
+
//# sourceMappingURL=chunk-HSGJFCVJ.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6RDHWSZM_cjs = require('./chunk-6RDHWSZM.cjs');
|
|
4
4
|
|
|
5
5
|
// src/traits/knownTraitSet.ts
|
|
6
6
|
var NATIVE2D_TRAITS = [
|
|
@@ -41,7 +41,7 @@ var RUNTIME_DIRECTIVE_TRAITS = [
|
|
|
41
41
|
];
|
|
42
42
|
function buildKnownTraitSet(extras = []) {
|
|
43
43
|
return /* @__PURE__ */ new Set([
|
|
44
|
-
...
|
|
44
|
+
...chunk6RDHWSZM_cjs.VR_TRAITS,
|
|
45
45
|
...NATIVE2D_TRAITS,
|
|
46
46
|
...CODE_GRAPH_TRAITS,
|
|
47
47
|
...RUNTIME_DIRECTIVE_TRAITS,
|
|
@@ -582,5 +582,5 @@ exports.RUNTIME_DIRECTIVE_TRAITS = RUNTIME_DIRECTIVE_TRAITS;
|
|
|
582
582
|
exports.buildKnownTraitSet = buildKnownTraitSet;
|
|
583
583
|
exports.enrichErrorWithSuggestions = enrichErrorWithSuggestions;
|
|
584
584
|
exports.generateQuickFixes = generateQuickFixes;
|
|
585
|
-
//# sourceMappingURL=chunk-
|
|
586
|
-
//# sourceMappingURL=chunk-
|
|
585
|
+
//# sourceMappingURL=chunk-ILO2KMER.cjs.map
|
|
586
|
+
//# sourceMappingURL=chunk-ILO2KMER.cjs.map
|