mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 02:49:43 +08:00
* Prepare versioned project edits locally and skip recursive preview mounts * Preserve validation details on locally prepared composition drops * Prepare Studio edits from one ordered local working copy * Chain editable media references to their preceding Studio writes --------- Co-authored-by: lefarcen <935902669@qq.com>
7 lines
1.6 KiB
TypeScript
7 lines
1.6 KiB
TypeScript
export const clipMoveLimits = "Move one unlocked, unlinked clip with numeric timing. Its end must fit inside its own composition.";
|
|
export const clipMoveInstruction = "Read the composition with openmotion_get_project. Use its data-hf-id and current versions in the example below. Move to absolute second 5. Send edit alone. Retry the same request after a timeout. After a version conflict, reread and use a new request ID.";
|
|
export const clipMoveExample = 'openmotion_edit_project({"projectId":"<projectId>","expectedRevision":"<revision>","expectedVersionId":"<currentVersionId>","requestId":"<unique-request-id>","edit":{"kind":"moveClip","compositionPath":"index.html","hfId":"<data-hf-id>","start":5}})';
|
|
|
|
export const projectEditInstruction = 'Read the current composition and its stable element IDs. Apply all changes belonging to one edit together. Use a batch when one gesture changes several compositions. A host with Node can use localEditCli from openmotion_get_project. Read the listed inputs at the observed project snapshot, prepare textEdits locally, and submit them alone with the same guards and request ID.';
|
|
export const projectEditExample = 'openmotion_edit_project({"projectId":"<projectId>","expectedRevision":"<revision>","expectedVersionId":"<currentVersionId>","requestId":"<unique-request-id>","edit":{"kind":"editElements","compositionPath":"index.html","patches":[{"target":{"hfId":"<data-hf-id>"},"operations":[{"type":"text-content","property":"textContent","value":"Hello"},{"type":"inline-style","property":"font-size","value":"32px"},{"type":"inline-style","property":"color","value":"red"}]}]}})';
|