@holoscript/core 8.0.12 → 8.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/bin/holo-decision.mjs +133 -0
- package/dist/{GLTFPipeline-L76YTXKA.js → GLTFPipeline-6LS3UDYX.js} +6 -6
- package/dist/{GLTFPipeline-ZWJN7GI6.cjs → GLTFPipeline-VTI6PRRQ.cjs} +10 -10
- package/dist/{HoloCompositionParser-FLBZKFD3.js → HoloCompositionParser-GILABNN3.js} +5 -5
- package/dist/{HoloCompositionParser-3XEC7IJC.cjs → HoloCompositionParser-ZVRYVEA5.cjs} +12 -12
- package/dist/{HoloScriptPlusParser-RNUCHOAJ.cjs → HoloScriptPlusParser-WTPRPRPR.cjs} +8 -8
- package/dist/{HoloScriptPlusParser-55AY4MUF.js → HoloScriptPlusParser-ZP53ECSL.js} +5 -5
- package/dist/{SceneIRCompiler-KWUFHZ4O.cjs → SceneIRCompiler-7KQ5NKAU.cjs} +11 -11
- package/dist/{SceneIRCompiler-63KA3M2F.js → SceneIRCompiler-VX75RB6H.js} +6 -6
- package/dist/{chunk-EM2OGPYE.js → chunk-2GKF7JQ6.js} +3 -3
- package/dist/{chunk-HVX7QQYK.js → chunk-3KHRZTNW.js} +3 -3
- package/dist/{chunk-UTUD6GJI.js → chunk-42Z3SVHQ.js} +3 -3
- package/dist/{chunk-Z4IUBW46.js → chunk-47XZ62KM.js} +112 -55
- package/dist/{chunk-GGR7QUKK.cjs → chunk-4CRMVEON.cjs} +37 -37
- package/dist/{chunk-QBY7LRN2.js → chunk-4NEPHK2K.js} +3 -3
- package/dist/{chunk-65S62L4D.cjs → chunk-5B2AJKA5.cjs} +20 -20
- package/dist/{chunk-PJFTTSKE.js → chunk-5T6BWIB7.js} +4 -4
- package/dist/{chunk-KFVNCW4Q.js → chunk-62OYZT6Q.js} +3 -3
- package/dist/{chunk-3KMANSQJ.cjs → chunk-645EWDZW.cjs} +4 -4
- package/dist/{chunk-BP4KTMLY.js → chunk-6FCNMTL5.js} +4 -4
- package/dist/{chunk-77QI552M.js → chunk-73EDVY5D.js} +3 -3
- package/dist/{chunk-7IDJDMPU.cjs → chunk-7FYSSI3C.cjs} +27 -2
- package/dist/{chunk-WNYXT4TE.cjs → chunk-7ITJP33Q.cjs} +3 -3
- package/dist/chunk-7ZKQ32XK.js +1571 -0
- package/dist/{chunk-P7JEKJTZ.cjs → chunk-B6JHTTMR.cjs} +25 -14
- package/dist/{chunk-FG6PYGIZ.js → chunk-BLCWQ225.js} +4 -4
- package/dist/{chunk-7NPZZZD7.js → chunk-C73GVAYC.js} +16 -9
- package/dist/{chunk-RMOEL2GD.cjs → chunk-CESMPUEZ.cjs} +3794 -1137
- package/dist/{chunk-SQXAZHDG.js → chunk-CHIZSMWD.js} +3 -3
- package/dist/{chunk-G35CAQ7I.cjs → chunk-D44CEFY4.cjs} +5 -5
- package/dist/chunk-ERYKKPHW.cjs +1884 -0
- package/dist/{chunk-TYNRXRHF.js → chunk-EYHPTJ3F.js} +3695 -1045
- package/dist/{chunk-J3UHV5T4.cjs → chunk-FGXJPJ3W.cjs} +4 -4
- package/dist/{chunk-IJU6AS67.cjs → chunk-FHR2AVMA.cjs} +23 -23
- package/dist/{chunk-LMB555QB.cjs → chunk-FOM36K5I.cjs} +18 -18
- package/dist/{chunk-JBYBMBMW.js → chunk-FWKEY4LD.js} +3 -2
- package/dist/{chunk-ZRPALBQB.cjs → chunk-GGH3ZYDB.cjs} +5 -5
- package/dist/{chunk-2BYAUHBO.js → chunk-GI5YYZH6.js} +3 -3
- package/dist/{chunk-VTEXJOSD.cjs → chunk-GYJLP4BO.cjs} +30 -30
- package/dist/{chunk-OC6GV5QH.cjs → chunk-HCONR4J6.cjs} +38 -38
- package/dist/{chunk-B3CWTCK2.js → chunk-IA7FCSRY.js} +27 -2
- package/dist/{chunk-5FYMCVBY.js → chunk-IXFNA5TT.js} +4 -4
- package/dist/{chunk-G6KACNMO.js → chunk-JCVSCKUH.js} +4 -4
- package/dist/{chunk-FHVPN7BN.js → chunk-JQCXLKAU.js} +3 -3
- package/dist/{chunk-F3YT6GUF.cjs → chunk-KLM6QD6D.cjs} +14 -14
- package/dist/{chunk-UGQ3QNV6.js → chunk-KOGPVAP6.js} +24 -8
- package/dist/{chunk-CKV5NYAE.js → chunk-KYJD2UMV.js} +4 -4
- package/dist/{chunk-LB3ZZMKT.cjs → chunk-L4DBUX3N.cjs} +10 -10
- package/dist/{chunk-RXQNRZ5F.js → chunk-LGRKBTPM.js} +3 -3
- package/dist/{chunk-OMNHTCS4.cjs → chunk-LHUDAJQT.cjs} +3 -2
- package/dist/{chunk-PDXX5UI4.cjs → chunk-LQNL3IYV.cjs} +38 -38
- package/dist/{chunk-WWNCM473.js → chunk-M7XR3F53.js} +4 -4
- package/dist/{chunk-IFW5IW4L.cjs → chunk-ML4V5PVU.cjs} +670 -627
- package/dist/{chunk-656IAS7B.cjs → chunk-N7IYRAFG.cjs} +21 -14
- package/dist/chunk-N7MIIDLI.cjs +1605 -0
- package/dist/{chunk-USOUXQYD.js → chunk-NWKARJM2.js} +130 -22
- package/dist/{chunk-VVAAZITA.cjs → chunk-OOP4S3GU.cjs} +5 -5
- package/dist/{chunk-TX6ZBIF4.js → chunk-ORBVCOTC.js} +3 -3
- package/dist/{chunk-RRQIAJLQ.cjs → chunk-OSKGCXAQ.cjs} +5 -5
- package/dist/{chunk-QEDMOGF3.cjs → chunk-P65OIMJT.cjs} +7 -7
- package/dist/{chunk-QM7FJB5W.js → chunk-PSWCJQS4.js} +4 -4
- package/dist/{chunk-7N63JHUN.cjs → chunk-PZ46WRHX.cjs} +8 -8
- package/dist/{chunk-AATYYLYK.js → chunk-Q4J2K7FI.js} +16 -5
- package/dist/chunk-QLPRI3QW.js +1875 -0
- package/dist/{chunk-WTH23ISI.js → chunk-R5VKLUMR.js} +4 -4
- package/dist/{chunk-NQN5LFN4.cjs → chunk-REN3LHO6.cjs} +19 -19
- package/dist/{chunk-JEJ7TT54.js → chunk-RVN7OPCP.js} +4 -4
- package/dist/{chunk-ZK7KX5CD.cjs → chunk-SE2Y5BSL.cjs} +6 -6
- package/dist/{chunk-2X3IPCBK.cjs → chunk-SKVBUGMC.cjs} +7 -7
- package/dist/{chunk-GZPUA2TL.cjs → chunk-SNMQUWIO.cjs} +10 -10
- package/dist/{chunk-OIBRWLPY.cjs → chunk-TKDDIE3T.cjs} +54 -3
- package/dist/{chunk-5H5GFBMG.cjs → chunk-TMNAKNV2.cjs} +112 -55
- package/dist/{chunk-5LVFTGKH.js → chunk-TZQKJOPC.js} +3 -3
- package/dist/{chunk-TSTFYGGX.js → chunk-UKEK2NZJ.js} +3 -3
- package/dist/{chunk-3IUHTGDD.cjs → chunk-VA7THINF.cjs} +38 -38
- package/dist/{chunk-Z557DVYN.js → chunk-VMCR5QVI.js} +4 -4
- package/dist/{chunk-IS7NTKY5.cjs → chunk-VTFLKSJL.cjs} +14 -14
- package/dist/{chunk-VO52AJD5.js → chunk-VXHB6ZHY.js} +4 -4
- package/dist/{chunk-S4O7CFHQ.cjs → chunk-VZI7S7P6.cjs} +7 -7
- package/dist/{chunk-BQJ3YBF3.js → chunk-W4AJMMQR.js} +667 -628
- package/dist/{chunk-2KKOYZYI.cjs → chunk-XZC75AJ4.cjs} +5 -5
- package/dist/{chunk-FWCHPCD4.js → chunk-Y2OCKXVD.js} +4 -4
- package/dist/{chunk-EI5G5JLY.cjs → chunk-YBM34FUJ.cjs} +134 -22
- package/dist/{chunk-DUG3OQAS.js → chunk-YDSNDCV3.js} +3 -3
- package/dist/{chunk-566ZB4LZ.cjs → chunk-YM7UUYR5.cjs} +5 -5
- package/dist/{chunk-BCP4E7MD.cjs → chunk-YMI3ED3B.cjs} +26 -10
- package/dist/{chunk-CP7V3ATL.js → chunk-Z7NUL73U.js} +51 -4
- package/dist/cli/holoscript-runner.cjs +11 -11
- package/dist/cli/holoscript-runner.js +4 -4
- package/dist/compiler/agent-inference.cjs +8 -8
- package/dist/compiler/agent-inference.js +4 -4
- package/dist/compiler/android-xr.cjs +7 -7
- package/dist/compiler/android-xr.js +5 -5
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/daimon-seed.cjs +9 -9
- package/dist/compiler/daimon-seed.js +4 -4
- package/dist/compiler/domain-block-utils.cjs +165 -165
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +871 -207
- package/dist/compiler/index.d.ts +21 -1
- package/dist/compiler/index.js +696 -60
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/openxr.cjs +6 -6
- package/dist/compiler/openxr.js +5 -5
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +7 -7
- package/dist/compiler/trait-composition.js +3 -3
- package/dist/compiler/unity.cjs +6 -6
- package/dist/compiler/unity.js +5 -5
- package/dist/compiler/unreal.cjs +7 -7
- package/dist/compiler/unreal.js +5 -5
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +6 -6
- package/dist/compiler/visionos.js +5 -5
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/constants.cjs +3 -3
- package/dist/constants.js +1 -1
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/evolution/index.cjs +21 -17
- package/dist/evolution/index.d.ts +9 -0
- package/dist/evolution/index.js +6 -6
- package/dist/index.cjs +930 -703
- package/dist/index.d.ts +70 -5
- package/dist/index.js +192 -109
- package/dist/parser.cjs +19 -19
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +127 -38
- package/dist/reconstruction/index.d.ts +159 -0
- package/dist/reconstruction/index.js +11 -2
- package/dist/runtime.d.ts +1 -0
- package/dist/traitDocs/traitDocs.cjs +8 -8
- package/dist/traitDocs/traitDocs.js +2 -2
- package/dist/traits/index.cjs +566 -471
- package/dist/traits/index.js +93 -11
- package/package.json +25 -41
- package/dist/chunk-G3BM3CT4.cjs +0 -639
- package/dist/chunk-KEYG7HGY.js +0 -1062
- package/dist/chunk-QX34ELJ7.js +0 -625
- package/dist/chunk-W2GA3EQB.cjs +0 -1065
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-DJNH4HFW.js';
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePostProcessingBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-
|
|
3
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePostProcessingBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-TZQKJOPC.js';
|
|
3
|
+
import { init_CompilerBase, CompilerBase } from './chunk-YDSNDCV3.js';
|
|
4
4
|
import { __export, __esm } from './chunk-W4GABFCR.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
6
|
|
|
@@ -1042,5 +1042,5 @@ var init_OpenXRCompiler = __esm({
|
|
|
1042
1042
|
});
|
|
1043
1043
|
|
|
1044
1044
|
export { OpenXRCompiler, OpenXRCompiler_exports, init_OpenXRCompiler };
|
|
1045
|
-
//# sourceMappingURL=chunk-
|
|
1046
|
-
//# sourceMappingURL=chunk-
|
|
1045
|
+
//# sourceMappingURL=chunk-R5VKLUMR.js.map
|
|
1046
|
+
//# sourceMappingURL=chunk-R5VKLUMR.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkCFVK26P4_cjs = require('./chunk-CFVK26P4.cjs');
|
|
4
4
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkP65OIMJT_cjs = require('./chunk-P65OIMJT.cjs');
|
|
6
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
7
7
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
8
8
|
var ans = require('@holoscript/core-types/ans');
|
|
9
9
|
|
|
@@ -4908,36 +4908,36 @@ function compileAndroidXRDomainBlocks(compiler, composition) {
|
|
|
4908
4908
|
compiler.emit("");
|
|
4909
4909
|
compiler.emit("// === v4.2 Domain Blocks ===");
|
|
4910
4910
|
let blockIdx = 0;
|
|
4911
|
-
const compiled =
|
|
4911
|
+
const compiled = chunkP65OIMJT_cjs.compileDomainBlocks(
|
|
4912
4912
|
// @ts-expect-error During migration
|
|
4913
4913
|
domainBlocks,
|
|
4914
4914
|
{
|
|
4915
4915
|
material: (block) => {
|
|
4916
|
-
const mat =
|
|
4917
|
-
return
|
|
4916
|
+
const mat = chunkP65OIMJT_cjs.compileMaterialBlock(block);
|
|
4917
|
+
return chunkP65OIMJT_cjs.materialToAndroidXR(mat, `db${blockIdx++}`);
|
|
4918
4918
|
},
|
|
4919
4919
|
physics: (block) => {
|
|
4920
|
-
const phys =
|
|
4921
|
-
return
|
|
4920
|
+
const phys = chunkP65OIMJT_cjs.compilePhysicsBlock(block);
|
|
4921
|
+
return chunkP65OIMJT_cjs.physicsToAndroidXR(phys, `db${blockIdx++}`);
|
|
4922
4922
|
},
|
|
4923
4923
|
vfx: (block) => {
|
|
4924
|
-
const ps =
|
|
4925
|
-
return
|
|
4924
|
+
const ps = chunkP65OIMJT_cjs.compileParticleBlock(block);
|
|
4925
|
+
return chunkP65OIMJT_cjs.particlesToAndroidXR(ps, `db${blockIdx++}`);
|
|
4926
4926
|
},
|
|
4927
4927
|
postfx: (block) => {
|
|
4928
|
-
const pp =
|
|
4928
|
+
const pp = chunkP65OIMJT_cjs.compilePostProcessingBlock(block);
|
|
4929
4929
|
const postfx = pp;
|
|
4930
4930
|
const effects = postfx.effects.map((e) => `// Effect: ${e.type} \u2014 ${JSON.stringify(e.properties)}`).join("\n");
|
|
4931
4931
|
return `// Post-Processing: ${postfx.keyword} \u2014 configure via Filament Renderer post-processing
|
|
4932
4932
|
${effects}`;
|
|
4933
4933
|
},
|
|
4934
4934
|
audio: (block) => {
|
|
4935
|
-
const audio =
|
|
4936
|
-
return
|
|
4935
|
+
const audio = chunkP65OIMJT_cjs.compileAudioSourceBlock(block);
|
|
4936
|
+
return chunkP65OIMJT_cjs.audioSourceToAndroidXR(audio, `db${blockIdx++}`);
|
|
4937
4937
|
},
|
|
4938
4938
|
weather: (block) => {
|
|
4939
|
-
const weather =
|
|
4940
|
-
return
|
|
4939
|
+
const weather = chunkP65OIMJT_cjs.compileWeatherBlock(block);
|
|
4940
|
+
return chunkP65OIMJT_cjs.weatherToAndroidXR(weather);
|
|
4941
4941
|
}
|
|
4942
4942
|
},
|
|
4943
4943
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${compiler.escapeStringValue(block.name, "Kotlin")}"`
|
|
@@ -4964,7 +4964,7 @@ function emitTransition(compiler, tr) {
|
|
|
4964
4964
|
}
|
|
4965
4965
|
var init_AndroidXRGenerators = chunkZHPMP447_cjs.__esm({
|
|
4966
4966
|
"src/compiler/AndroidXRGenerators.ts"() {
|
|
4967
|
-
|
|
4967
|
+
chunkP65OIMJT_cjs.init_DomainBlockCompilerMixin();
|
|
4968
4968
|
init_AndroidXRTraitMap();
|
|
4969
4969
|
}
|
|
4970
4970
|
});
|
|
@@ -5566,12 +5566,12 @@ function compileToAndroidXR(composition, options) {
|
|
|
5566
5566
|
exports.AndroidXRCompiler = void 0;
|
|
5567
5567
|
var init_AndroidXRCompiler = chunkZHPMP447_cjs.__esm({
|
|
5568
5568
|
"src/compiler/AndroidXRCompiler.ts"() {
|
|
5569
|
-
|
|
5569
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
5570
5570
|
chunkTZCFKZ6Z_cjs.init_PlatformConditionalCompilerMixin();
|
|
5571
5571
|
chunkCFVK26P4_cjs.init_AndroidKotlinHelpers();
|
|
5572
5572
|
init_AndroidXRGenerators();
|
|
5573
5573
|
init_AndroidXRGlassesGenerators();
|
|
5574
|
-
exports.AndroidXRCompiler = class extends
|
|
5574
|
+
exports.AndroidXRCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
5575
5575
|
constructor(options = {}) {
|
|
5576
5576
|
super();
|
|
5577
5577
|
this.compilerName = "AndroidXRCompiler";
|
|
@@ -5693,5 +5693,5 @@ exports.compileToAndroidXR = compileToAndroidXR;
|
|
|
5693
5693
|
exports.getTraitMapping = getTraitMapping;
|
|
5694
5694
|
exports.init_AndroidXRCompiler = init_AndroidXRCompiler;
|
|
5695
5695
|
exports.init_AndroidXRTraitMap = init_AndroidXRTraitMap;
|
|
5696
|
-
//# sourceMappingURL=chunk-
|
|
5697
|
-
//# sourceMappingURL=chunk-
|
|
5696
|
+
//# sourceMappingURL=chunk-REN3LHO6.cjs.map
|
|
5697
|
+
//# sourceMappingURL=chunk-REN3LHO6.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToGodot, compileInputBlock, navigationToGodot, compileNavigationBlock, renderingToGodot, compileRenderingBlock, proceduralToGodot, compileProceduralBlock, web3ToGodot, compileWeb3Block, architectureToGodot, compileArchitectureBlock, musicToGodot, compileMusicBlock, educationToGodot, compileEducationBlock, datavizToGodot, compileDataVizBlock, iotToGodot, compileIoTBlock, compileRoboticsBlock, roboticsToGodot, compileHealthcareBlock, healthcareToGodot, compilePaymentBlock, paymentToGodot, compileNarrativeBlock, narrativeToGodot, compileWeatherBlock, weatherToGodot, compileAudioSourceBlock, audioSourceToGodot, compilePostProcessingBlock, postProcessingToGodot, compileParticleBlock, particlesToGodot, compilePhysicsBlock, physicsToGodot, compileMaterialBlock, materialToGodot } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToGodot, compileInputBlock, navigationToGodot, compileNavigationBlock, renderingToGodot, compileRenderingBlock, proceduralToGodot, compileProceduralBlock, web3ToGodot, compileWeb3Block, architectureToGodot, compileArchitectureBlock, musicToGodot, compileMusicBlock, educationToGodot, compileEducationBlock, datavizToGodot, compileDataVizBlock, iotToGodot, compileIoTBlock, compileRoboticsBlock, roboticsToGodot, compileHealthcareBlock, healthcareToGodot, compilePaymentBlock, paymentToGodot, compileNarrativeBlock, narrativeToGodot, compileWeatherBlock, weatherToGodot, compileAudioSourceBlock, audioSourceToGodot, compilePostProcessingBlock, postProcessingToGodot, compileParticleBlock, particlesToGodot, compilePhysicsBlock, physicsToGodot, compileMaterialBlock, materialToGodot } from './chunk-TZQKJOPC.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-YDSNDCV3.js';
|
|
3
3
|
import { __esm, __export } from './chunk-W4GABFCR.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -686,5 +686,5 @@ var init_GodotCompiler = __esm({
|
|
|
686
686
|
});
|
|
687
687
|
|
|
688
688
|
export { GodotCompiler, GodotCompiler_exports, init_GodotCompiler };
|
|
689
|
-
//# sourceMappingURL=chunk-
|
|
690
|
-
//# sourceMappingURL=chunk-
|
|
689
|
+
//# sourceMappingURL=chunk-RVN7OPCP.js.map
|
|
690
|
+
//# sourceMappingURL=chunk-RVN7OPCP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7FYSSI3C_cjs = require('./chunk-7FYSSI3C.cjs');
|
|
4
4
|
var chunkCI33NINL_cjs = require('./chunk-CI33NINL.cjs');
|
|
5
5
|
var chunkQ47JEE2C_cjs = require('./chunk-Q47JEE2C.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
@@ -4120,7 +4120,7 @@ var init_ANSNamespace = chunkZHPMP447_cjs.__esm({
|
|
|
4120
4120
|
exports.CompilerDocumentationGenerator = void 0;
|
|
4121
4121
|
var init_CompilerDocumentationGenerator = chunkZHPMP447_cjs.__esm({
|
|
4122
4122
|
"src/compiler/CompilerDocumentationGenerator.ts"() {
|
|
4123
|
-
|
|
4123
|
+
chunk7FYSSI3C_cjs.init_traitDocs();
|
|
4124
4124
|
exports.CompilerDocumentationGenerator = class {
|
|
4125
4125
|
constructor(options = {}) {
|
|
4126
4126
|
this.options = {
|
|
@@ -4733,9 +4733,9 @@ var init_CompilerDocumentationGenerator = chunkZHPMP447_cjs.__esm({
|
|
|
4733
4733
|
}
|
|
4734
4734
|
/** Resolve trait docs from the shared LSP trait database (now in @holoscript/core). */
|
|
4735
4735
|
getTraitDocumentation(trait) {
|
|
4736
|
-
const doc =
|
|
4736
|
+
const doc = chunk7FYSSI3C_cjs.getTraitDoc(trait);
|
|
4737
4737
|
if (!doc) return null;
|
|
4738
|
-
return
|
|
4738
|
+
return chunk7FYSSI3C_cjs.formatTraitDocCompact(doc);
|
|
4739
4739
|
}
|
|
4740
4740
|
/**
|
|
4741
4741
|
* Sanitize composition name for use as a service name
|
|
@@ -6067,5 +6067,5 @@ exports.isCapabilityTokenCredential = isCapabilityTokenCredential;
|
|
|
6067
6067
|
exports.normalizeNormProvenance = normalizeNormProvenance;
|
|
6068
6068
|
exports.normsByCategory = normsByCategory;
|
|
6069
6069
|
exports.serializeNormProvenance = serializeNormProvenance;
|
|
6070
|
-
//# sourceMappingURL=chunk-
|
|
6071
|
-
//# sourceMappingURL=chunk-
|
|
6070
|
+
//# sourceMappingURL=chunk-SE2Y5BSL.cjs.map
|
|
6071
|
+
//# sourceMappingURL=chunk-SE2Y5BSL.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
4
4
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
5
5
|
|
|
6
6
|
// src/compiler/StateCompiler.ts
|
|
@@ -12,8 +12,8 @@ chunkZHPMP447_cjs.__export(StateCompiler_exports, {
|
|
|
12
12
|
exports.StateCompiler = void 0; exports.UnauthorizedStateCompilerAccessError = void 0;
|
|
13
13
|
var init_StateCompiler = chunkZHPMP447_cjs.__esm({
|
|
14
14
|
"src/compiler/StateCompiler.ts"() {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
chunkSE2Y5BSL_cjs.init_AgentRBAC();
|
|
16
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
17
17
|
exports.StateCompiler = class {
|
|
18
18
|
constructor() {
|
|
19
19
|
this.anonCounter = 0;
|
|
@@ -41,7 +41,7 @@ var init_StateCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
41
41
|
*/
|
|
42
42
|
validateAccess(agentToken) {
|
|
43
43
|
if (!agentToken) return;
|
|
44
|
-
const rbac =
|
|
44
|
+
const rbac = chunkSE2Y5BSL_cjs.getRBAC();
|
|
45
45
|
const decision = rbac.checkAccess({
|
|
46
46
|
token: agentToken,
|
|
47
47
|
resourceType: "ast" /* AST */,
|
|
@@ -101,7 +101,7 @@ var init_StateCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
101
101
|
return `${node.type}_${this.anonCounter++}`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
exports.UnauthorizedStateCompilerAccessError = class extends
|
|
104
|
+
exports.UnauthorizedStateCompilerAccessError = class extends chunkSE2Y5BSL_cjs.UnauthorizedCompilerAccessError {
|
|
105
105
|
constructor(decision, compilerName) {
|
|
106
106
|
super(decision, "state compilation", compilerName);
|
|
107
107
|
this.name = "UnauthorizedStateCompilerAccessError";
|
|
@@ -112,5 +112,5 @@ var init_StateCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
112
112
|
|
|
113
113
|
exports.StateCompiler_exports = StateCompiler_exports;
|
|
114
114
|
exports.init_StateCompiler = init_StateCompiler;
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-SKVBUGMC.cjs.map
|
|
116
|
+
//# sourceMappingURL=chunk-SKVBUGMC.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkP65OIMJT_cjs = require('./chunk-P65OIMJT.cjs');
|
|
4
|
+
var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
|
|
5
5
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ function createWASMCompiler(options) {
|
|
|
19
19
|
}
|
|
20
20
|
function compileToWASM(composition, options) {
|
|
21
21
|
const compiler = new exports.WASMCompiler(options);
|
|
22
|
-
return compiler.compile(composition,
|
|
22
|
+
return compiler.compile(composition, chunkSE2Y5BSL_cjs.createTestCompilerToken());
|
|
23
23
|
}
|
|
24
24
|
function compileASTToWASM(ast, options) {
|
|
25
25
|
const compiler = new exports.WASMCompiler(options);
|
|
@@ -28,8 +28,8 @@ function compileASTToWASM(ast, options) {
|
|
|
28
28
|
var WASM_WAT_LIMITATIONS, WASM_BINARY_LIMITATIONS; exports.WASMCompiler = void 0; exports.WASMCompiler_default = void 0;
|
|
29
29
|
var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
30
30
|
"src/compiler/WASMCompiler.ts"() {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
chunkSE2Y5BSL_cjs.init_CompilerBase();
|
|
32
|
+
chunkP65OIMJT_cjs.init_DomainBlockCompilerMixin();
|
|
33
33
|
WASM_WAT_LIMITATIONS = [
|
|
34
34
|
"Emits WebAssembly Text Format scaffolding only.",
|
|
35
35
|
'Does not return instantiable bytes unless format is set to "wasm".',
|
|
@@ -40,7 +40,7 @@ var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
40
40
|
"Lowers trait/lifecycle/event hooks to deterministic host event calls, not arbitrary user code.",
|
|
41
41
|
"Does not run a general-purpose WAT parser for unsupported custom WAT extensions."
|
|
42
42
|
];
|
|
43
|
-
exports.WASMCompiler = class extends
|
|
43
|
+
exports.WASMCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
|
|
44
44
|
constructor(options = {}) {
|
|
45
45
|
super();
|
|
46
46
|
this.compilerName = "WASMCompiler";
|
|
@@ -100,11 +100,11 @@ var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
100
100
|
if (domainBlocks.length > 0) {
|
|
101
101
|
this.emit("");
|
|
102
102
|
this.emit(" ;; === v4.2 Domain Blocks ===");
|
|
103
|
-
|
|
103
|
+
chunkP65OIMJT_cjs.compileDomainBlocks(
|
|
104
104
|
domainBlocks,
|
|
105
105
|
{
|
|
106
106
|
material: (block) => {
|
|
107
|
-
const mat =
|
|
107
|
+
const mat = chunkP65OIMJT_cjs.compileMaterialBlock(block);
|
|
108
108
|
this.emit(
|
|
109
109
|
` ;; Material: "${this.escapeStringValue(mat.name, "TypeScript")}" type=${mat.type}`
|
|
110
110
|
);
|
|
@@ -1186,5 +1186,5 @@ exports.compileASTToWASM = compileASTToWASM;
|
|
|
1186
1186
|
exports.compileToWASM = compileToWASM;
|
|
1187
1187
|
exports.createWASMCompiler = createWASMCompiler;
|
|
1188
1188
|
exports.init_WASMCompiler = init_WASMCompiler;
|
|
1189
|
-
//# sourceMappingURL=chunk-
|
|
1190
|
-
//# sourceMappingURL=chunk-
|
|
1189
|
+
//# sourceMappingURL=chunk-SNMQUWIO.cjs.map
|
|
1190
|
+
//# sourceMappingURL=chunk-SNMQUWIO.cjs.map
|
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkEI3J6LTW_cjs = require('./chunk-EI3J6LTW.cjs');
|
|
4
4
|
|
|
5
|
+
// src/traits/knownTraitSet.ts
|
|
6
|
+
var NATIVE2D_TRAITS = [
|
|
7
|
+
"text",
|
|
8
|
+
"fetch",
|
|
9
|
+
"bind",
|
|
10
|
+
"hook",
|
|
11
|
+
"theme",
|
|
12
|
+
"panel",
|
|
13
|
+
"slot",
|
|
14
|
+
"link",
|
|
15
|
+
"button",
|
|
16
|
+
"image",
|
|
17
|
+
"input",
|
|
18
|
+
"icon",
|
|
19
|
+
"when",
|
|
20
|
+
"each",
|
|
21
|
+
"count_of",
|
|
22
|
+
"form",
|
|
23
|
+
"semantic_layout",
|
|
24
|
+
"semantic_entity",
|
|
25
|
+
"color",
|
|
26
|
+
"content",
|
|
27
|
+
"layout",
|
|
28
|
+
"native_panel",
|
|
29
|
+
"view",
|
|
30
|
+
"page",
|
|
31
|
+
"route",
|
|
32
|
+
"metadata"
|
|
33
|
+
];
|
|
34
|
+
var CODE_GRAPH_TRAITS = ["route", "file", "reused_in", "uses_stores", "calls_apis"];
|
|
35
|
+
var RUNTIME_DIRECTIVE_TRAITS = [
|
|
36
|
+
"llama_serve",
|
|
37
|
+
"model_fleet",
|
|
38
|
+
"provider_policy",
|
|
39
|
+
"freeze_when",
|
|
40
|
+
"evolve_program"
|
|
41
|
+
];
|
|
42
|
+
function buildKnownTraitSet(extras = []) {
|
|
43
|
+
return /* @__PURE__ */ new Set([
|
|
44
|
+
...chunkEI3J6LTW_cjs.VR_TRAITS,
|
|
45
|
+
...NATIVE2D_TRAITS,
|
|
46
|
+
...CODE_GRAPH_TRAITS,
|
|
47
|
+
...RUNTIME_DIRECTIVE_TRAITS,
|
|
48
|
+
...extras.flat()
|
|
49
|
+
]);
|
|
50
|
+
}
|
|
51
|
+
|
|
5
52
|
// src/parser/ErrorRecovery.ts
|
|
6
53
|
var VALID_KEYWORDS = [
|
|
7
54
|
"composition",
|
|
@@ -49,7 +96,7 @@ var VALID_GEOMETRIES = [
|
|
|
49
96
|
"particles"
|
|
50
97
|
];
|
|
51
98
|
function validTraits() {
|
|
52
|
-
return [...
|
|
99
|
+
return [...buildKnownTraitSet()];
|
|
53
100
|
}
|
|
54
101
|
var COMMON_PROPERTIES = [
|
|
55
102
|
"position",
|
|
@@ -525,11 +572,15 @@ var HOLOSCHEMA_KEYWORDS = VALID_KEYWORDS;
|
|
|
525
572
|
var HOLOSCHEMA_GEOMETRIES = VALID_GEOMETRIES;
|
|
526
573
|
var HOLOSCHEMA_PROPERTIES = COMMON_PROPERTIES;
|
|
527
574
|
|
|
575
|
+
exports.CODE_GRAPH_TRAITS = CODE_GRAPH_TRAITS;
|
|
528
576
|
exports.ErrorRecovery = ErrorRecovery;
|
|
529
577
|
exports.HOLOSCHEMA_GEOMETRIES = HOLOSCHEMA_GEOMETRIES;
|
|
530
578
|
exports.HOLOSCHEMA_KEYWORDS = HOLOSCHEMA_KEYWORDS;
|
|
531
579
|
exports.HOLOSCHEMA_PROPERTIES = HOLOSCHEMA_PROPERTIES;
|
|
580
|
+
exports.NATIVE2D_TRAITS = NATIVE2D_TRAITS;
|
|
581
|
+
exports.RUNTIME_DIRECTIVE_TRAITS = RUNTIME_DIRECTIVE_TRAITS;
|
|
582
|
+
exports.buildKnownTraitSet = buildKnownTraitSet;
|
|
532
583
|
exports.enrichErrorWithSuggestions = enrichErrorWithSuggestions;
|
|
533
584
|
exports.generateQuickFixes = generateQuickFixes;
|
|
534
|
-
//# sourceMappingURL=chunk-
|
|
535
|
-
//# sourceMappingURL=chunk-
|
|
585
|
+
//# sourceMappingURL=chunk-TKDDIE3T.cjs.map
|
|
586
|
+
//# sourceMappingURL=chunk-TKDDIE3T.cjs.map
|