mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 08:32:45 +00:00
* fix(cli): publish updates a committed project only when this machine linked the folder (SECOPS-2048) .hyperframes/project.json travels with every copy of a project (a clone, a zip, a download), yet publish took its project id and space id as the update target, and with --yes overwrote any project the recipient could write without asking. Publish now updates the descriptor's project, and uses its space, only when this machine's own link record (outside the folder, keyed by its path) names the same project and space. The link record now keeps the space it published into; records from before keep linking their own project. Otherwise: - interactively, publish asks "Update project <id> in place? No publishes this folder as its own project." with No as the default; No publishes a new project and rewrites the descriptor to it - with --yes, publish refuses (publish_target_unconfirmed) and points to --update <id> [--space <space>] - --update <id> still names the project explicitly, but the descriptor's space is not used unless --space names it checkPublishTransition counts the descriptor as a legacy update under the same rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(cli): carry the publish link rules in names, not comments (SECOPS-2048) The comment ratchet allows a file's comment share only to go down. Drop the comments the fix added and name the meaning instead: PERSONAL_SPACE for the "" space id, recordPredatesSpaces for a link record written before the space was kept, teamLinkedHere in the publish transition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(cli): keep projectLink's real exports in the publishProject mock (SECOPS-2048) publishProject now imports PERSONAL_SPACE from projectLink; the mock replaced the whole module, so the constant was missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>