Files and changes

[[:put "pages/p21.clj" "(ns pages.p21 ...)"]
 [:edit "tokens.edn" ":margin 72" ":margin 20"]
 [:set "doc.edn" [:page] {:w 210 :h 297 :unit :mm}]     ; set a key path in an EDN file (keeps comments)
 [:unset "tokens.edn" [:styles :old]]
 [:move "pages/a.clj" "pages/b.clj"]
 [:copy :en :p21/title "Hello"] [:copy-unset :it :p21/title]
 [:link :p21/title :it] [:unlink :p21/title :it]       ; follow the shared value, or keep it as its own
 [:flag-clear :p21/title :it]                           ; "mine stays": clear its stale flag
 [:asset :img/x {:blob "<sha256>" :file "x.jpg"}] [:asset :img/x {...} :it] [:asset-unset :img/x]
 [:frame :img/x {:scale 1.2 :center [0.5 0.4]}]
 [:page-add :p21 "(ns pages.p21 ...)" 3] [:page-move :p21 0] [:page-delete :p21]
 [:settings :title "New title"]]

EDN and Clojure files must parse, or the change is refused with the line and column. Pass base (the version you read) to refuse the change if someone changed the branch meanwhile, or at (the version you are changing) to make a branch from it when it is not the latest.

add_page, move_page, delete_page keep doc.edn :pages and pages/ in step.