Match bDS2 canonical file serialization

This commit is contained in:
2026-07-22 20:19:21 +02:00
parent fdf47da40a
commit 7b8e539340
17 changed files with 706 additions and 338 deletions

View File

@@ -199,7 +199,10 @@ invariant ScriptFileLayout {
for s in Scripts where file_path != "":
s.file_path = format("scripts/{slug}.lua", slug: s.slug)
}
-- Script files use standard --- YAML frontmatter
-- Script files use standard --- YAML frontmatter in field order id, projectId,
-- slug, title, kind, entrypoint, enabled, version, createdAt, updatedAt. Scalars
-- use the canonical post quoting rules, timestamps are single-quoted ISO values,
-- and the complete file ends in one newline.
rule CreateScript {
when: CreateScriptRequested(project, title, kind, content, entrypoint)