docs: allow Affinity Scripting Studio JS as a scoped exception #190

Merged
peterswimm merged 1 commit from docs/allow-affinity-scripts into main 2026-10-07 22:08:30 +00:00
Member

Opens a second, scoped exception to the no-JavaScript rule so keff (ville) can contribute pipeline-ready art from Affinity 3.3's Scripting Studio.

  • CLAUDE.md Submodule Rules + Where things live: scripts live under Brand/source/_editor/affinity-scripts/*.js. They run inside Affinity only (no package.json, npm or CI) and may read dist/<product>/tokens.dtcg.json. They never write dist/, author tokens, or hard-code brand hex beyond the assets.yml color_map hexes they lint against. Their output is ordinary source art, delivered by PR.
  • README.md: the scope line now names both tooling exceptions.
  • New folder README covering install (Scripting panel, or Claude Desktop via the Affinity MCP save_script_to_library), the rules, and the planned scripts: export-plate, lint-icon-colors, export-icon.

No scripts are included. They should be written against the live SDK docs.

Verified: extract.py check --all ok, forgeblock_validate ok, pytest generator/tests 280 passed.

Opens a second, scoped exception to the no-JavaScript rule so keff (ville) can contribute pipeline-ready art from Affinity 3.3's Scripting Studio. - **CLAUDE.md** Submodule Rules + Where things live: scripts live under `Brand/source/_editor/affinity-scripts/*.js`. They run inside Affinity only (no package.json, npm or CI) and may read `dist/<product>/tokens.dtcg.json`. They never write `dist/`, author tokens, or hard-code brand hex beyond the assets.yml color_map hexes they lint against. Their output is ordinary source art, delivered by PR. - **README.md**: the scope line now names both tooling exceptions. - **New folder README** covering install (Scripting panel, or Claude Desktop via the Affinity MCP `save_script_to_library`), the rules, and the planned scripts: export-plate, lint-icon-colors, export-icon. No scripts are included. They should be written against the live SDK docs. Verified: extract.py check --all ok, forgeblock_validate ok, pytest generator/tests 280 passed.
docs: allow Affinity Scripting Studio JS as a scoped exception
Some checks failed
PR policy check / policy-gate (pull_request) Failing after 1s
Security Scans / Gitleaks secret scan (pull_request) Successful in 30s
Security Scans / Trivy filesystem scan (pull_request) Failing after 33s
Test Generator / lint-workflows (pull_request) Successful in 15s
Test Generator / lint-prose (pull_request) Successful in 19s
Copy coverage / Design copy reaching rendered HTML (pull_request) Successful in 27s
Block Validation / validate (pull_request) Successful in 1m3s
UDG dist drift gate / dist/ matches dtcg + udg sources (pull_request) Failing after 17s
Test Generator / test (pull_request) Successful in 3m50s
77a7281d94
Designer-side scripts under Brand/source/_editor/affinity-scripts/ run inside
Affinity only (no npm, no CI), read but never write the token layer, and
produce ordinary source art delivered by PR. README documents install,
rules, and the planned export-plate / lint-icon-colors / export-icon scripts.
peterswimm deleted branch docs/allow-affinity-scripts 2026-10-07 22:08:30 +00:00
Sign in to join this conversation.
No description provided.