mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 07:39:20 +00:00
variable.import and the variables parameter of file.open and file.import read an explicit path with the uncapped reader, while the sibling variables.json next to a REST file already went through read_capped with MAX_VARIABLES_FILE. variables_param now uses that capped read for paths on native builds; the browser keeps its no-file-system error. Inline objects and JSON text, and access roots, are unchanged. The check reads the size before the file, so it does not bound a file that grows or is replaced in between. Primary file reads and image.place stay uncapped. variable.import's help and docs/mcp.md name the limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: GPT-6.1 Sol <noreply@openai.com> Co-Authored-By: GPT-6 Astra <noreply@openai.com>