Build a SCRIPT action def from spec and persist it onto doc, writing
the whole system.actionDefs array back (upsert by shortcode, never by
index). Idempotent: re-attaching the same name replaces the entry.
The caller must be an owner of doc, and — because SCRIPT entries are
GM-authored — a GM (enforced at the document boundary and pre-checked by
sohl.core.logic.SohlSystem.addScriptAction).
Build a SCRIPT action def from
specand persist it ontodoc, writing the wholesystem.actionDefsarray back (upsert byshortcode, never by index). Idempotent: re-attaching the samenamereplaces the entry.The caller must be an owner of
doc, and — because SCRIPT entries are GM-authored — a GM (enforced at the document boundary and pre-checked by sohl.core.logic.SohlSystem.addScriptAction).