mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(cli,studio-server): limit registry installs and Studio file writes to project content folders Registry blocks and components now install only into the project's compositions, components and assets folders (plus models/ and lib/, which the catalog uses, and notes at the root). node_modules, agent instruction files and programs or scripts are refused at any depth, matched case-insensitively with either separator, and checked again on the path the project's own links lead to. Studio's file routes never read or write git metadata or env files, and every route that writes, renames, deletes, copies or uploads a request-named path refuses the project folder itself, node_modules and hidden files or folders other than .hyperframes/ and .media/, on both the spelled and the link-resolved path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(cli,studio-server): trim comments added by the write allowlist Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli,studio-server): trim path segments in linear time The trailing dot/space and :stream trims used anchored regexes that backtrack quadratically on long runs of spaces, dots or colons in a request path. Trim with a plain scan instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): refuse example dependencies in add and allow only TEMPLATE.md at the root - addToProject now refuses a block or component that depends on an example, not only an example asked for by name. The installer lets an example write at the project root, so a dependency must not carry that through. - The only file a block may write at the project root is TEMPLATE.md, the catalog's usage note. Any other .md or .txt name could be one a tool loads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>