@holoscript/core 8.0.6 → 8.0.7
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 +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
- package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
- package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
- package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
- package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
- package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
- package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
- package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
- package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
- package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
- package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
- package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
- package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- 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 +347 -362
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +200 -215
- 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/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- 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 +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- 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 +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.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/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1056 -796
- package/dist/index.js +440 -180
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +274 -76
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +49 -49
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +881 -773
- package/dist/traits/index.js +366 -258
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +74 -68
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
- package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
- package/dist/HoloScriptRuntime-ALUASIL2.cjs +0 -19
|
@@ -1,18 +1,39 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
2
2
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
3
3
|
|
|
4
4
|
// src/compiler/ContextCompiler.ts
|
|
5
5
|
init_CompilerBase();
|
|
6
6
|
var BANNED_DEFAULT_PATTERNS = [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
{
|
|
8
|
+
pattern: /\bgit\s+add\s+(?:-A|--all|\.)(?=\s|$)/i,
|
|
9
|
+
rule: "F.001/F.011 - git add -A leaked .env twice"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
pattern: /:\s*any\b|\bas\s+any\b|<any>/i,
|
|
13
|
+
rule: "global CLAUDE.md - no `any` in TypeScript, use `unknown`"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
pattern: /\bregex\b.+\.(?:hs|hsplus|holo)\b/i,
|
|
17
|
+
rule: "F.014 - no regex on .hs/.hsplus/.holo, use @holoscript/core"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
pattern: /\bmock\s+(?:the\s+)?(?:db|database)\b/i,
|
|
21
|
+
rule: "founder-default - real DB in tests, mock-vs-prod divergence"
|
|
22
|
+
}
|
|
11
23
|
];
|
|
12
24
|
var VENDOR_AS_SUBSTRATE_PATTERNS = [
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
25
|
+
{
|
|
26
|
+
pattern: /managed_agents_replaces_holomesh/i,
|
|
27
|
+
rule: "W.GOLD.002 - vendor framework cannot replace HoloMesh"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
pattern: /vector_store_as_source_of_truth/i,
|
|
31
|
+
rule: "docs/LLM_CAPABILITIES.md hard-don'ts - vendor stores never source-of-truth"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
pattern: /api_keys_as_identity/i,
|
|
35
|
+
rule: "W.GOLD.004 - wallets are identity, API keys are sessions"
|
|
36
|
+
}
|
|
16
37
|
];
|
|
17
38
|
var KNOWN_DIAMOND_IDS = /* @__PURE__ */ new Set([
|
|
18
39
|
"W.GOLD.001",
|
|
@@ -314,11 +335,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
314
335
|
target: stringField(cfg, "target", ""),
|
|
315
336
|
actionType: stringField(cfg, "action_type", ""),
|
|
316
337
|
requires: stringListField(cfg, "requires"),
|
|
317
|
-
founderRatificationRequired: boolField(
|
|
318
|
-
cfg,
|
|
319
|
-
"founder_ratification_required",
|
|
320
|
-
false
|
|
321
|
-
),
|
|
338
|
+
founderRatificationRequired: boolField(cfg, "founder_ratification_required", false),
|
|
322
339
|
notes: stringFieldOrUndef(cfg, "notes")
|
|
323
340
|
});
|
|
324
341
|
break;
|
|
@@ -516,9 +533,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
516
533
|
lines.push(`| Name | Reason | Alternative |`);
|
|
517
534
|
lines.push(`|---|---|---|`);
|
|
518
535
|
for (const dont of ast.hardDonts) {
|
|
519
|
-
lines.push(
|
|
520
|
-
`| **${dont.name}** | ${dont.reason} | ${dont.alternative ?? "*(none)*"} |`
|
|
521
|
-
);
|
|
536
|
+
lines.push(`| **${dont.name}** | ${dont.reason} | ${dont.alternative ?? "*(none)*"} |`);
|
|
522
537
|
}
|
|
523
538
|
lines.push("");
|
|
524
539
|
this.appendProseAfter(lines, ast, "hard_dont");
|
|
@@ -529,9 +544,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
529
544
|
lines.push(`| When | Answer | Reason |`);
|
|
530
545
|
lines.push(`|---|---|---|`);
|
|
531
546
|
for (const def of ast.defaults) {
|
|
532
|
-
lines.push(
|
|
533
|
-
`| ${def.when} | **${def.do}** | ${def.reason ?? "*(no citation)*"} |`
|
|
534
|
-
);
|
|
547
|
+
lines.push(`| ${def.when} | **${def.do}** | ${def.reason ?? "*(no citation)*"} |`);
|
|
535
548
|
}
|
|
536
549
|
lines.push("");
|
|
537
550
|
this.appendProseAfter(lines, ast, "default");
|
|
@@ -653,9 +666,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
653
666
|
lines.push(` - **Action**: ${esc.doAction}`);
|
|
654
667
|
lines.push(` - **Recipient**: ${esc.recipient}`);
|
|
655
668
|
if (esc.refuseToEscalateWhen.length > 0) {
|
|
656
|
-
lines.push(
|
|
657
|
-
` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`
|
|
658
|
-
);
|
|
669
|
+
lines.push(` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`);
|
|
659
670
|
}
|
|
660
671
|
}
|
|
661
672
|
lines.push("");
|
|
@@ -818,9 +829,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
818
829
|
if (ast.refusals.length > 0 || ast.hardDonts.length > 0) {
|
|
819
830
|
lines.push("## Hard rules (The Four Refusals + cross-provider red lines)");
|
|
820
831
|
lines.push("");
|
|
821
|
-
lines.push(
|
|
822
|
-
"Rules below are non-negotiable. Each names what to do, what NOT to do, and why."
|
|
823
|
-
);
|
|
832
|
+
lines.push("Rules below are non-negotiable. Each names what to do, what NOT to do, and why.");
|
|
824
833
|
lines.push("");
|
|
825
834
|
for (const refusal of ast.refusals) {
|
|
826
835
|
lines.push(`### ${refusal.name}`);
|
|
@@ -856,9 +865,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
856
865
|
lines.push("| When | Do | Reason |");
|
|
857
866
|
lines.push("|---|---|---|");
|
|
858
867
|
for (const def of ast.defaults) {
|
|
859
|
-
lines.push(
|
|
860
|
-
`| ${def.when} | **${def.do}** | ${def.reason ?? "*(no citation)*"} |`
|
|
861
|
-
);
|
|
868
|
+
lines.push(`| ${def.when} | **${def.do}** | ${def.reason ?? "*(no citation)*"} |`);
|
|
862
869
|
}
|
|
863
870
|
lines.push("");
|
|
864
871
|
this.appendProseAfter(lines, ast, "default");
|
|
@@ -978,9 +985,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
978
985
|
lines.push(` - **Action**: ${esc.doAction}`);
|
|
979
986
|
lines.push(` - **Recipient**: ${esc.recipient}`);
|
|
980
987
|
if (esc.refuseToEscalateWhen.length > 0) {
|
|
981
|
-
lines.push(
|
|
982
|
-
` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`
|
|
983
|
-
);
|
|
988
|
+
lines.push(` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`);
|
|
984
989
|
}
|
|
985
990
|
}
|
|
986
991
|
lines.push("");
|
|
@@ -1101,9 +1106,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
1101
1106
|
for (const refusal of ast.refusals) {
|
|
1102
1107
|
const slug = toCursorSlug(refusal.name);
|
|
1103
1108
|
const filename = `.cursor/rules/refusal-${slug}.mdc`;
|
|
1104
|
-
const description = oneLine(
|
|
1105
|
-
`Refusal: ${refusal.name} - ${refusal.reason ?? refusal.when}`
|
|
1106
|
-
);
|
|
1109
|
+
const description = oneLine(`Refusal: ${refusal.name} - ${refusal.reason ?? refusal.when}`);
|
|
1107
1110
|
const body = [];
|
|
1108
1111
|
body.push(`# Refusal: ${refusal.name}`);
|
|
1109
1112
|
body.push("");
|
|
@@ -1316,9 +1319,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
1316
1319
|
idx.push(` - **Action**: ${esc.doAction}`);
|
|
1317
1320
|
idx.push(` - **Recipient**: ${esc.recipient}`);
|
|
1318
1321
|
if (esc.refuseToEscalateWhen.length > 0) {
|
|
1319
|
-
idx.push(
|
|
1320
|
-
` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`
|
|
1321
|
-
);
|
|
1322
|
+
idx.push(` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`);
|
|
1322
1323
|
}
|
|
1323
1324
|
}
|
|
1324
1325
|
idx.push("");
|
|
@@ -1545,9 +1546,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
1545
1546
|
lines.push(`| Name | Reason | Alternative |`);
|
|
1546
1547
|
lines.push(`|---|---|---|`);
|
|
1547
1548
|
for (const dont of ast.hardDonts) {
|
|
1548
|
-
lines.push(
|
|
1549
|
-
`| **${dont.name}** | ${dont.reason} | ${dont.alternative ?? "*(none)*"} |`
|
|
1550
|
-
);
|
|
1549
|
+
lines.push(`| **${dont.name}** | ${dont.reason} | ${dont.alternative ?? "*(none)*"} |`);
|
|
1551
1550
|
}
|
|
1552
1551
|
lines.push("");
|
|
1553
1552
|
this.appendProseAfter(lines, ast, "hard_dont");
|
|
@@ -1558,9 +1557,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
1558
1557
|
lines.push(`| When | Answer | Reason |`);
|
|
1559
1558
|
lines.push(`|---|---|---|`);
|
|
1560
1559
|
for (const def of ast.defaults) {
|
|
1561
|
-
lines.push(
|
|
1562
|
-
`| ${def.when} | **${def.do}** | ${def.reason ?? "*(no citation)*"} |`
|
|
1563
|
-
);
|
|
1560
|
+
lines.push(`| ${def.when} | **${def.do}** | ${def.reason ?? "*(no citation)*"} |`);
|
|
1564
1561
|
}
|
|
1565
1562
|
lines.push("");
|
|
1566
1563
|
this.appendProseAfter(lines, ast, "default");
|
|
@@ -1682,9 +1679,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
1682
1679
|
lines.push(` - **Action**: ${esc.doAction}`);
|
|
1683
1680
|
lines.push(` - **Recipient**: ${esc.recipient}`);
|
|
1684
1681
|
if (esc.refuseToEscalateWhen.length > 0) {
|
|
1685
|
-
lines.push(
|
|
1686
|
-
` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`
|
|
1687
|
-
);
|
|
1682
|
+
lines.push(` - **Refuse to escalate when**: ${esc.refuseToEscalateWhen.join(", ")}`);
|
|
1688
1683
|
}
|
|
1689
1684
|
}
|
|
1690
1685
|
lines.push("");
|
|
@@ -1820,9 +1815,7 @@ var ContextCompiler = class extends CompilerBase {
|
|
|
1820
1815
|
}
|
|
1821
1816
|
lines.push("");
|
|
1822
1817
|
};
|
|
1823
|
-
const mutableTargets = ast.trackBAuthorities.filter(
|
|
1824
|
-
(row) => !row.founderRatificationRequired
|
|
1825
|
-
);
|
|
1818
|
+
const mutableTargets = ast.trackBAuthorities.filter((row) => !row.founderRatificationRequired);
|
|
1826
1819
|
const founderRatifiedTargets = ast.trackBAuthorities.filter(
|
|
1827
1820
|
(row) => row.founderRatificationRequired
|
|
1828
1821
|
);
|
|
@@ -1985,5 +1978,5 @@ function toCursorSlug(name) {
|
|
|
1985
1978
|
}
|
|
1986
1979
|
|
|
1987
1980
|
export { ContextCompileError, ContextCompiler, createContextCompiler };
|
|
1988
|
-
//# sourceMappingURL=chunk-
|
|
1989
|
-
//# sourceMappingURL=chunk-
|
|
1981
|
+
//# sourceMappingURL=chunk-TEVX443G.js.map
|
|
1982
|
+
//# sourceMappingURL=chunk-TEVX443G.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
4
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.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
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
9
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
10
|
+
var USDPhysicsCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
11
11
|
constructor(options = {}) {
|
|
12
12
|
super();
|
|
13
13
|
this.compilerName = "USDPhysicsCompiler";
|
|
@@ -260,34 +260,34 @@ var USDPhysicsCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
|
260
260
|
if (domainBlocks.length > 0) {
|
|
261
261
|
this.emitBlank();
|
|
262
262
|
this.emit(`# === v4.2 Domain Blocks ===`);
|
|
263
|
-
const compiled =
|
|
263
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
264
264
|
domainBlocks,
|
|
265
265
|
{
|
|
266
266
|
material: (block) => {
|
|
267
|
-
const mat =
|
|
268
|
-
return
|
|
267
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
268
|
+
return chunkGH6C2QGW_cjs.materialToUSD(mat);
|
|
269
269
|
},
|
|
270
270
|
physics: (block) => {
|
|
271
|
-
const phys =
|
|
272
|
-
const urdf =
|
|
271
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
272
|
+
const urdf = chunkGH6C2QGW_cjs.physicsToURDF(phys);
|
|
273
273
|
return `# Physics: ${phys.keyword} "${phys.name || ""}"
|
|
274
274
|
` + urdf.split("\n").map((l) => `# URDF: ${l}`).join("\n");
|
|
275
275
|
},
|
|
276
276
|
vfx: (block) => {
|
|
277
|
-
const ps =
|
|
278
|
-
return
|
|
277
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
278
|
+
return chunkGH6C2QGW_cjs.particlesToUSD(ps);
|
|
279
279
|
},
|
|
280
280
|
postfx: (block) => {
|
|
281
|
-
const pp =
|
|
282
|
-
return
|
|
281
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
282
|
+
return chunkGH6C2QGW_cjs.postProcessingToUSD(pp);
|
|
283
283
|
},
|
|
284
284
|
audio: (block) => {
|
|
285
|
-
const audio =
|
|
286
|
-
return
|
|
285
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
286
|
+
return chunkGH6C2QGW_cjs.audioSourceToUSD(audio);
|
|
287
287
|
},
|
|
288
288
|
weather: (block) => {
|
|
289
|
-
const weather =
|
|
290
|
-
return
|
|
289
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
290
|
+
return chunkGH6C2QGW_cjs.weatherToUSD(weather);
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -818,7 +818,9 @@ var USDPhysicsCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
|
818
818
|
this.emit(`customData = {`);
|
|
819
819
|
this.indentLevel++;
|
|
820
820
|
this.emit(`string holoscript:version = "6.0"`);
|
|
821
|
-
this.emit(
|
|
821
|
+
this.emit(
|
|
822
|
+
`string holoscript:compositionName = "${this.escapeStringValue(composition.name, "USD")}"`
|
|
823
|
+
);
|
|
822
824
|
const objectNames = (composition.objects || []).map((o) => o.name);
|
|
823
825
|
if (objectNames.length > 0) {
|
|
824
826
|
const namesStr = objectNames.map((n) => `"${this.escapeStringValue(n, "USD")}"`).join(", ");
|
|
@@ -882,5 +884,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
882
884
|
exports.USDPhysicsCompiler = USDPhysicsCompiler;
|
|
883
885
|
exports.compileForIsaacSim = compileForIsaacSim;
|
|
884
886
|
exports.compileToUSDPhysics = compileToUSDPhysics;
|
|
885
|
-
//# sourceMappingURL=chunk-
|
|
886
|
-
//# sourceMappingURL=chunk-
|
|
887
|
+
//# sourceMappingURL=chunk-TQ377OLB.cjs.map
|
|
888
|
+
//# sourceMappingURL=chunk-TQ377OLB.cjs.map
|