Merge scripting follow-ups: one shared compile rule for editor + gate, CS0161/injection now flagged in the editor (#1063), worker applies the result materialisation cap (#1064), {{equip}} in Calculation scripts refused at gate + editor (#1065)

This commit is contained in:
Joseph Doherty
2026-12-03 16:49:40 -05:00
24 changed files with 729 additions and 191 deletions
+5
View File
@@ -31,6 +31,11 @@ They are close cousins and easy to confuse:
If the same script should apply to many machines, you want a virtual tag with `{{equip}}`. If a single
derived signal belongs next to the device tags it is derived from, you want a calc tag.
A Calculation script may **not** use `{{equip}}` (#1065): a Calculation tag has no equipment, so the
token has nothing to resolve to and the Calculation seam never substitutes it. The deploy gate refuses
it (`ScriptCompileFailed` … `equip token in a Calculation script`) and the Calculation tag editor flags
it as you type (`OTSCRIPT_EQUIPCALC`). Read sources by their literal RawPath.
## Authoring a calc tag
Calc tags are authored in `/raw` like any other tag: create a `Calculation` driver, add a device under