@sixb/core 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (691) hide show
  1. package/dist/actions/index.js +53 -50
  2. package/dist/actions/index.js.map +1 -1
  3. package/dist/actions/request.d.ts.map +1 -1
  4. package/dist/actions/run/context.d.ts.map +1 -1
  5. package/dist/actions/run/execute.d.ts +3 -0
  6. package/dist/actions/run/execute.d.ts.map +1 -1
  7. package/dist/actions/run/executor.d.ts +3 -0
  8. package/dist/actions/run/executor.d.ts.map +1 -1
  9. package/dist/actions/run/normalize.d.ts.map +1 -1
  10. package/dist/actions/run/types.d.ts +6 -0
  11. package/dist/actions/run/types.d.ts.map +1 -1
  12. package/dist/actions/types/context.d.ts +7 -0
  13. package/dist/actions/types/context.d.ts.map +1 -1
  14. package/dist/agents/context/entries.d.ts +17 -0
  15. package/dist/agents/context/entries.d.ts.map +1 -1
  16. package/dist/agents/context/index.js +3 -2
  17. package/dist/agents/context/index.js.map +1 -1
  18. package/dist/agents/context-model.d.ts.map +1 -1
  19. package/dist/agents/context-resolution.d.ts.map +1 -1
  20. package/dist/agents/execution.d.ts +7 -0
  21. package/dist/agents/execution.d.ts.map +1 -1
  22. package/dist/agents/index.d.ts +1 -1
  23. package/dist/agents/index.d.ts.map +1 -1
  24. package/dist/agents/index.js +62 -57
  25. package/dist/agents/index.js.map +1 -1
  26. package/dist/agents/model-call-retry.d.ts +28 -0
  27. package/dist/agents/model-call-retry.d.ts.map +1 -0
  28. package/dist/agents/model-loop.d.ts +4 -2
  29. package/dist/agents/model-loop.d.ts.map +1 -1
  30. package/dist/agents/model-routing.d.ts +15 -4
  31. package/dist/agents/model-routing.d.ts.map +1 -1
  32. package/dist/agents/request.d.ts.map +1 -1
  33. package/dist/agents/run-artifacts.d.ts +2 -0
  34. package/dist/agents/run-artifacts.d.ts.map +1 -1
  35. package/dist/agents/run-plan.d.ts +1 -1
  36. package/dist/agents/run-plan.d.ts.map +1 -1
  37. package/dist/agents/run-session-http.d.ts.map +1 -1
  38. package/dist/agents/run-session-serve.d.ts.map +1 -1
  39. package/dist/agents/run-session-wire.d.ts +6 -0
  40. package/dist/agents/run-session-wire.d.ts.map +1 -1
  41. package/dist/agents/run-token.d.ts +6 -0
  42. package/dist/agents/run-token.d.ts.map +1 -1
  43. package/dist/agents/streams/index.js +1 -1
  44. package/dist/agents/streams/internal.js +2 -2
  45. package/dist/agents/thread-access.d.ts +13 -0
  46. package/dist/agents/thread-access.d.ts.map +1 -1
  47. package/dist/agents/tool-files.d.ts.map +1 -1
  48. package/dist/artifacts/caller.d.ts +10 -0
  49. package/dist/artifacts/caller.d.ts.map +1 -0
  50. package/dist/artifacts/comment-place.d.ts +26 -0
  51. package/dist/artifacts/comment-place.d.ts.map +1 -0
  52. package/dist/artifacts/comment-text.d.ts +12 -4
  53. package/dist/artifacts/comment-text.d.ts.map +1 -1
  54. package/dist/artifacts/comments.d.ts +8 -2
  55. package/dist/artifacts/comments.d.ts.map +1 -1
  56. package/dist/artifacts/errors.d.ts +1 -1
  57. package/dist/artifacts/errors.d.ts.map +1 -1
  58. package/dist/artifacts/execution.d.ts +73 -5
  59. package/dist/artifacts/execution.d.ts.map +1 -1
  60. package/dist/artifacts/frames/assets.d.ts +27 -7
  61. package/dist/artifacts/frames/assets.d.ts.map +1 -1
  62. package/dist/artifacts/frames/entries.d.ts +5 -4
  63. package/dist/artifacts/frames/entries.d.ts.map +1 -1
  64. package/dist/artifacts/frames/hyperframes.d.ts +12 -0
  65. package/dist/artifacts/frames/hyperframes.d.ts.map +1 -0
  66. package/dist/artifacts/frames/index.d.ts +3 -1
  67. package/dist/artifacts/frames/index.d.ts.map +1 -1
  68. package/dist/artifacts/frames/index.js +20 -6
  69. package/dist/artifacts/frames/index.js.map +3 -3
  70. package/dist/artifacts/frames/kit.d.ts.map +1 -1
  71. package/dist/artifacts/frames/protocol.d.ts +33 -0
  72. package/dist/artifacts/frames/protocol.d.ts.map +1 -1
  73. package/dist/artifacts/frames/video-runtime.d.ts +21 -0
  74. package/dist/artifacts/frames/video-runtime.d.ts.map +1 -0
  75. package/dist/artifacts/html.d.ts +23 -0
  76. package/dist/artifacts/html.d.ts.map +1 -1
  77. package/dist/artifacts/index.d.ts +5 -3
  78. package/dist/artifacts/index.d.ts.map +1 -1
  79. package/dist/artifacts/index.js +71 -10
  80. package/dist/artifacts/index.js.map +4 -4
  81. package/dist/artifacts/kinds.d.ts +1 -1
  82. package/dist/artifacts/kinds.d.ts.map +1 -1
  83. package/dist/artifacts/limits.d.ts +37 -0
  84. package/dist/artifacts/limits.d.ts.map +1 -1
  85. package/dist/artifacts/live/document.d.ts.map +1 -1
  86. package/dist/artifacts/live/index.d.ts +6 -2
  87. package/dist/artifacts/live/index.d.ts.map +1 -1
  88. package/dist/artifacts/live/index.js +3432 -13
  89. package/dist/artifacts/live/index.js.map +6 -3
  90. package/dist/artifacts/live/presence.d.ts +7 -5
  91. package/dist/artifacts/live/presence.d.ts.map +1 -1
  92. package/dist/artifacts/live/protocol.d.ts +4 -2
  93. package/dist/artifacts/live/protocol.d.ts.map +1 -1
  94. package/dist/artifacts/live/server.d.ts +1 -1
  95. package/dist/artifacts/live/server.d.ts.map +1 -1
  96. package/dist/artifacts/live/server.js +36 -31
  97. package/dist/artifacts/live/server.js.map +1 -1
  98. package/dist/artifacts/live/state.d.ts +2 -2
  99. package/dist/artifacts/media/media.d.ts +96 -0
  100. package/dist/artifacts/media/media.d.ts.map +1 -0
  101. package/dist/artifacts/media/transcriber.d.ts +29 -0
  102. package/dist/artifacts/media/transcriber.d.ts.map +1 -0
  103. package/dist/artifacts/outline.d.ts +26 -1
  104. package/dist/artifacts/outline.d.ts.map +1 -1
  105. package/dist/artifacts/publish/files.d.ts +5 -2
  106. package/dist/artifacts/publish/files.d.ts.map +1 -1
  107. package/dist/artifacts/publish/index.d.ts +11 -2
  108. package/dist/artifacts/publish/index.d.ts.map +1 -1
  109. package/dist/artifacts/publish/index.js +110 -33
  110. package/dist/artifacts/publish/index.js.map +1 -1
  111. package/dist/artifacts/publish/pdf.d.ts.map +1 -1
  112. package/dist/artifacts/publish/previews.d.ts +7 -2
  113. package/dist/artifacts/publish/previews.d.ts.map +1 -1
  114. package/dist/artifacts/publish/publish.d.ts.map +1 -1
  115. package/dist/artifacts/publish/validate/html.d.ts +5 -4
  116. package/dist/artifacts/publish/validate/html.d.ts.map +1 -1
  117. package/dist/artifacts/publish/validate/video.d.ts +36 -0
  118. package/dist/artifacts/publish/validate/video.d.ts.map +1 -0
  119. package/dist/artifacts/publish/video.d.ts +79 -0
  120. package/dist/artifacts/publish/video.d.ts.map +1 -0
  121. package/dist/artifacts/resolve.d.ts +9 -0
  122. package/dist/artifacts/resolve.d.ts.map +1 -1
  123. package/dist/artifacts/video/composition.d.ts +183 -0
  124. package/dist/artifacts/video/composition.d.ts.map +1 -0
  125. package/dist/artifacts/video/edit.d.ts +298 -0
  126. package/dist/artifacts/video/edit.d.ts.map +1 -0
  127. package/dist/artifacts/video/export.d.ts +142 -0
  128. package/dist/artifacts/video/export.d.ts.map +1 -0
  129. package/dist/artifacts/video/looks.d.ts +133 -0
  130. package/dist/artifacts/video/looks.d.ts.map +1 -0
  131. package/dist/artifacts/video/project.d.ts +74 -0
  132. package/dist/artifacts/video/project.d.ts.map +1 -0
  133. package/dist/artifacts/video/stills.d.ts +65 -0
  134. package/dist/artifacts/video/stills.d.ts.map +1 -0
  135. package/dist/artifacts/video/timeline.d.ts +153 -0
  136. package/dist/artifacts/video/timeline.d.ts.map +1 -0
  137. package/dist/auth/index.js +9 -8
  138. package/dist/auth/index.js.map +1 -1
  139. package/dist/authorization/index.js +5 -4
  140. package/dist/authorization/index.js.map +1 -1
  141. package/dist/blob-storage/browser.d.ts +1 -1
  142. package/dist/blob-storage/browser.d.ts.map +1 -1
  143. package/dist/blob-storage/browser.js +8 -4
  144. package/dist/blob-storage/browser.js.map +1 -1
  145. package/dist/blob-storage/constants.d.ts +8 -3
  146. package/dist/blob-storage/constants.d.ts.map +1 -1
  147. package/dist/blob-storage/download-urls.d.ts +2 -2
  148. package/dist/blob-storage/download-urls.d.ts.map +1 -1
  149. package/dist/blob-storage/index.d.ts +1 -1
  150. package/dist/blob-storage/index.d.ts.map +1 -1
  151. package/dist/blob-storage/index.js +9 -5
  152. package/dist/blob-storage/index.js.map +1 -1
  153. package/dist/blob-storage/internal.d.ts +2 -2
  154. package/dist/blob-storage/internal.d.ts.map +1 -1
  155. package/dist/blob-storage/internal.js +10 -4
  156. package/dist/blob-storage/internal.js.map +1 -1
  157. package/dist/blob-storage/media-type.d.ts +12 -3
  158. package/dist/blob-storage/media-type.d.ts.map +1 -1
  159. package/dist/bootstrap/discovery.d.ts +6 -0
  160. package/dist/bootstrap/discovery.d.ts.map +1 -1
  161. package/dist/bootstrap/index.js +63 -60
  162. package/dist/bootstrap/index.js.map +2 -2
  163. package/dist/{chunk-az95tsh3.js → chunk-0fjryajn.js} +3 -2
  164. package/dist/chunk-0fjryajn.js.map +11 -0
  165. package/dist/{chunk-9tpmfh3n.js → chunk-0mk8qqp9.js} +3 -3
  166. package/dist/{chunk-9tpmfh3n.js.map → chunk-0mk8qqp9.js.map} +3 -3
  167. package/dist/{chunk-88xeh6zx.js → chunk-1g4me5f2.js} +182 -7
  168. package/dist/{chunk-88xeh6zx.js.map → chunk-1g4me5f2.js.map} +3 -3
  169. package/dist/{chunk-7mhbs9yy.js → chunk-1z8ccj53.js} +1 -1
  170. package/dist/{chunk-wkv3h3q7.js → chunk-2138b0ng.js} +115 -8
  171. package/dist/chunk-2138b0ng.js.map +12 -0
  172. package/dist/chunk-23eaayw4.js +3757 -0
  173. package/dist/chunk-23eaayw4.js.map +22 -0
  174. package/dist/{chunk-s8xxef60.js → chunk-2mxq1yd9.js} +48 -41
  175. package/dist/{chunk-s8xxef60.js.map → chunk-2mxq1yd9.js.map} +6 -6
  176. package/dist/{chunk-dmnd9ea6.js → chunk-30a0ftnm.js} +2 -2
  177. package/dist/{chunk-nxysqbt0.js → chunk-389ybvw9.js} +6 -2
  178. package/dist/chunk-389ybvw9.js.map +10 -0
  179. package/dist/{chunk-qbd282aa.js → chunk-39q9ybav.js} +2 -2
  180. package/dist/{chunk-9c9yknwt.js → chunk-3d9w8t4n.js} +111 -23
  181. package/dist/{chunk-9c9yknwt.js.map → chunk-3d9w8t4n.js.map} +5 -5
  182. package/dist/chunk-3dvcdn9w.js +8 -0
  183. package/dist/chunk-3dvcdn9w.js.map +10 -0
  184. package/dist/{chunk-bcz9dxtf.js → chunk-3x902cja.js} +3 -3
  185. package/dist/{chunk-c4nrycdy.js → chunk-4q4a5a96.js} +1 -1
  186. package/dist/{chunk-7r9mqpva.js → chunk-4tdm3fsj.js} +100 -36
  187. package/dist/{chunk-7r9mqpva.js.map → chunk-4tdm3fsj.js.map} +10 -10
  188. package/dist/{chunk-ykchk644.js → chunk-4w8qzy9w.js} +6 -6
  189. package/dist/{chunk-c29729me.js → chunk-4z9xtxke.js} +8 -7
  190. package/dist/chunk-4z9xtxke.js.map +12 -0
  191. package/dist/chunk-5278qwax.js +270 -0
  192. package/dist/chunk-5278qwax.js.map +11 -0
  193. package/dist/{chunk-kft7mp7z.js → chunk-5xkqasvn.js} +1 -1
  194. package/dist/{chunk-k1g14kk3.js → chunk-6a4hp405.js} +4 -5
  195. package/dist/{chunk-k1g14kk3.js.map → chunk-6a4hp405.js.map} +3 -3
  196. package/dist/{chunk-xavet0qs.js → chunk-6whr25gw.js} +2 -2
  197. package/dist/{chunk-mbwsgjn7.js → chunk-7zygtcqq.js} +14 -2
  198. package/dist/chunk-7zygtcqq.js.map +11 -0
  199. package/dist/chunk-88s9z5pf.js +3 -0
  200. package/dist/{chunk-de5sfbc3.js.map → chunk-88s9z5pf.js.map} +1 -1
  201. package/dist/{chunk-ygvay56w.js → chunk-896te58g.js} +2 -2
  202. package/dist/{chunk-pqj8vff9.js → chunk-8eqqqc1h.js} +3 -3
  203. package/dist/{chunk-425ydk65.js → chunk-8tefbhdx.js} +14 -14
  204. package/dist/{chunk-425ydk65.js.map → chunk-8tefbhdx.js.map} +1 -1
  205. package/dist/{chunk-jka26v8c.js → chunk-8x1bsp68.js} +1 -1
  206. package/dist/{chunk-wzcjhv54.js → chunk-93e4w7te.js} +113 -1
  207. package/dist/chunk-93e4w7te.js.map +11 -0
  208. package/dist/{chunk-ym1bqd98.js → chunk-990a5bkc.js} +424 -76
  209. package/dist/chunk-990a5bkc.js.map +21 -0
  210. package/dist/{chunk-fmgf9h5e.js → chunk-9az7kjv4.js} +6 -6
  211. package/dist/{chunk-eg6xqef7.js → chunk-9e5t53z0.js} +3 -3
  212. package/dist/{chunk-eg6xqef7.js.map → chunk-9e5t53z0.js.map} +3 -3
  213. package/dist/{chunk-bs1sd0e0.js → chunk-9p7kyeqz.js} +4 -4
  214. package/dist/chunk-a68zz4r0.js +537 -0
  215. package/dist/chunk-a68zz4r0.js.map +11 -0
  216. package/dist/{chunk-d7vyc7k6.js → chunk-a700gjc8.js} +10 -2
  217. package/dist/chunk-a700gjc8.js.map +10 -0
  218. package/dist/{chunk-gfdh9kqa.js → chunk-a9qzjaz2.js} +2 -5
  219. package/dist/chunk-a9qzjaz2.js.map +10 -0
  220. package/dist/{chunk-ats8y3d9.js → chunk-as94vcty.js} +688 -504
  221. package/dist/{chunk-ats8y3d9.js.map → chunk-as94vcty.js.map} +21 -21
  222. package/dist/{chunk-brybqw5k.js → chunk-bkxm2dzx.js} +1 -1
  223. package/dist/{chunk-ppxf7gw2.js → chunk-d7t9jnym.js} +3 -3
  224. package/dist/{chunk-tapdssb5.js → chunk-e3b1r4d2.js} +8 -7
  225. package/dist/{chunk-tapdssb5.js.map → chunk-e3b1r4d2.js.map} +4 -4
  226. package/dist/{chunk-cg7cygfj.js → chunk-fdmvaz7x.js} +1 -1
  227. package/dist/{chunk-191jz8a6.js → chunk-ff0qdk7z.js} +1 -1
  228. package/dist/{chunk-9vsc919v.js → chunk-fgxvrxx4.js} +22 -2
  229. package/dist/chunk-fgxvrxx4.js.map +10 -0
  230. package/dist/{chunk-wx7smkn2.js → chunk-fq8drkp0.js} +1 -1
  231. package/dist/{chunk-60662fyv.js → chunk-fqms1a8c.js} +132 -4
  232. package/dist/{chunk-60662fyv.js.map → chunk-fqms1a8c.js.map} +8 -6
  233. package/dist/{chunk-v8a1qjzp.js → chunk-hpswfrjj.js} +1 -1
  234. package/dist/{chunk-qttqe1ah.js → chunk-jbg905hn.js} +80 -13
  235. package/dist/chunk-jbg905hn.js.map +25 -0
  236. package/dist/{chunk-bz5bnjjt.js → chunk-jjte0h4p.js} +1 -1
  237. package/dist/{chunk-jt012fxq.js → chunk-jwjwvzj1.js} +797 -51
  238. package/dist/chunk-jwjwvzj1.js.map +38 -0
  239. package/dist/{chunk-f05994as.js → chunk-k3vd2vyz.js} +6 -2
  240. package/dist/chunk-k3vd2vyz.js.map +10 -0
  241. package/dist/chunk-kcqpk9w1.js.map +2 -2
  242. package/dist/chunk-mvz89age.js.map +2 -2
  243. package/dist/{chunk-xrmbhap8.js → chunk-mwg0nwkb.js} +1 -1
  244. package/dist/{chunk-a3faa34j.js → chunk-nfjt8k8j.js} +1 -1
  245. package/dist/{chunk-394zjzjs.js → chunk-nhgqz3g3.js} +3 -3
  246. package/dist/{chunk-bqr703h4.js → chunk-p0c5kkhn.js} +23 -6
  247. package/dist/{chunk-bqr703h4.js.map → chunk-p0c5kkhn.js.map} +3 -3
  248. package/dist/{chunk-92wrka15.js → chunk-q150fnj9.js} +1 -1
  249. package/dist/{chunk-w3t94hm6.js → chunk-qk3zq25v.js} +1 -1
  250. package/dist/{chunk-6hfbz4d0.js → chunk-r588h4ev.js} +1 -1
  251. package/dist/chunk-rtkqczbr.js.map +2 -2
  252. package/dist/{chunk-3qtk0070.js → chunk-ssqbrts1.js} +86 -9
  253. package/dist/chunk-ssqbrts1.js.map +14 -0
  254. package/dist/{chunk-5qqmndhm.js → chunk-szzhrn3e.js} +1 -1
  255. package/dist/{chunk-n1hbwc6y.js → chunk-t6pfch4e.js} +1 -1
  256. package/dist/{chunk-xtztwpkh.js → chunk-v6h4tc2v.js} +86 -5
  257. package/dist/chunk-v6h4tc2v.js.map +12 -0
  258. package/dist/{chunk-brhp9d97.js → chunk-vmqjndb3.js} +2 -2
  259. package/dist/chunk-vtjzwymr.js.map +2 -2
  260. package/dist/{chunk-t19wjmnc.js → chunk-wpba6hhd.js} +54 -20
  261. package/dist/{chunk-t19wjmnc.js.map → chunk-wpba6hhd.js.map} +3 -3
  262. package/dist/{chunk-htdzx40w.js → chunk-wrb1x1ss.js} +12 -4
  263. package/dist/{chunk-htdzx40w.js.map → chunk-wrb1x1ss.js.map} +3 -3
  264. package/dist/{chunk-5sswe5ej.js → chunk-wsv23wvr.js} +2 -2
  265. package/dist/{chunk-90nqenq8.js → chunk-x0hqc54n.js} +4 -4
  266. package/dist/{chunk-sgx82nnt.js → chunk-xg31er4p.js} +43 -4
  267. package/dist/chunk-xg31er4p.js.map +10 -0
  268. package/dist/{chunk-3neam1y5.js → chunk-y3qb965a.js} +2 -2
  269. package/dist/{chunk-gaj8djsw.js → chunk-y57eawng.js} +10 -5
  270. package/dist/{chunk-gaj8djsw.js.map → chunk-y57eawng.js.map} +3 -3
  271. package/dist/{chunk-8ncg20rd.js → chunk-yah25st6.js} +5 -5
  272. package/dist/chunk-yah25st6.js.map +10 -0
  273. package/dist/{chunk-grt2j5vp.js → chunk-ywvxcmqj.js} +106 -13
  274. package/dist/{chunk-grt2j5vp.js.map → chunk-ywvxcmqj.js.map} +8 -7
  275. package/dist/{chunk-xf76csps.js → chunk-zmq9xc9s.js} +70 -31
  276. package/dist/{chunk-xf76csps.js.map → chunk-zmq9xc9s.js.map} +4 -3
  277. package/dist/datasets/write.js +8 -7
  278. package/dist/datasets/write.js.map +1 -1
  279. package/dist/deploy/index.d.ts +1 -1
  280. package/dist/deploy/index.d.ts.map +1 -1
  281. package/dist/deploy/internal.js +2 -2
  282. package/dist/deploy/internal.js.map +2 -2
  283. package/dist/deploy/types.d.ts +8 -58
  284. package/dist/deploy/types.d.ts.map +1 -1
  285. package/dist/env/index.d.ts +10 -3
  286. package/dist/env/index.d.ts.map +1 -1
  287. package/dist/env/index.js.map +2 -2
  288. package/dist/errors/catalog.d.ts.map +1 -1
  289. package/dist/execution/agent.js +53 -50
  290. package/dist/execution/agent.js.map +1 -1
  291. package/dist/execution/kernel-operation.d.ts +1 -0
  292. package/dist/execution/kernel-operation.d.ts.map +1 -1
  293. package/dist/execution/primitive.js +53 -50
  294. package/dist/execution/primitive.js.map +1 -1
  295. package/dist/execution/request.js +54 -51
  296. package/dist/execution/request.js.map +2 -2
  297. package/dist/execution/types.d.ts +5 -0
  298. package/dist/execution/types.d.ts.map +1 -1
  299. package/dist/http/api-routes.d.ts.map +1 -1
  300. package/dist/http/index.js +1 -1
  301. package/dist/index.d.ts +7 -5
  302. package/dist/index.d.ts.map +1 -1
  303. package/dist/index.js +73 -67
  304. package/dist/index.js.map +1 -1
  305. package/dist/lake-storage/index.js +9 -8
  306. package/dist/lake-storage/index.js.map +1 -1
  307. package/dist/maintenance/index.js +9 -8
  308. package/dist/maintenance/index.js.map +2 -2
  309. package/dist/materializer/index.js +26 -24
  310. package/dist/materializer/index.js.map +1 -1
  311. package/dist/models/audio/runtime.d.ts +3 -1
  312. package/dist/models/audio/runtime.d.ts.map +1 -1
  313. package/dist/models/audio/speech.d.ts +2 -2
  314. package/dist/models/audio/speech.d.ts.map +1 -1
  315. package/dist/models/audio/types.d.ts +23 -3
  316. package/dist/models/audio/types.d.ts.map +1 -1
  317. package/dist/models/calls.d.ts +7 -0
  318. package/dist/models/calls.d.ts.map +1 -1
  319. package/dist/models/catalog.d.ts +5 -0
  320. package/dist/models/catalog.d.ts.map +1 -1
  321. package/dist/models/definitions.d.ts +3 -2
  322. package/dist/models/definitions.d.ts.map +1 -1
  323. package/dist/models/errors.d.ts +5 -3
  324. package/dist/models/errors.d.ts.map +1 -1
  325. package/dist/models/events.d.ts +2 -0
  326. package/dist/models/events.d.ts.map +1 -1
  327. package/dist/models/execution/index.d.ts +1 -0
  328. package/dist/models/execution/index.d.ts.map +1 -1
  329. package/dist/models/execution/index.js +33 -28
  330. package/dist/models/execution/index.js.map +1 -1
  331. package/dist/models/execution/model-call-limits.d.ts.map +1 -1
  332. package/dist/models/execution/model-call-recorder.d.ts +8 -0
  333. package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
  334. package/dist/models/execution/session.d.ts +12 -0
  335. package/dist/models/execution/session.d.ts.map +1 -1
  336. package/dist/models/execution/usage.d.ts.map +1 -1
  337. package/dist/models/execution.d.ts +1 -1
  338. package/dist/models/execution.d.ts.map +1 -1
  339. package/dist/models/generation-types.d.ts +2 -0
  340. package/dist/models/generation-types.d.ts.map +1 -1
  341. package/dist/models/index.d.ts +4 -2
  342. package/dist/models/index.d.ts.map +1 -1
  343. package/dist/models/index.js +2 -2
  344. package/dist/models/input-file.d.ts.map +1 -1
  345. package/dist/models/pricing.d.ts +2 -1
  346. package/dist/models/pricing.d.ts.map +1 -1
  347. package/dist/models/rate-card.d.ts +6 -0
  348. package/dist/models/rate-card.d.ts.map +1 -1
  349. package/dist/models/tools.d.ts +5 -0
  350. package/dist/models/tools.d.ts.map +1 -1
  351. package/dist/models/video/catalog.d.ts +13 -0
  352. package/dist/models/video/catalog.d.ts.map +1 -0
  353. package/dist/models/video/check.d.ts +76 -0
  354. package/dist/models/video/check.d.ts.map +1 -0
  355. package/dist/models/video/runtime.d.ts +21 -0
  356. package/dist/models/video/runtime.d.ts.map +1 -0
  357. package/dist/models/video/types.d.ts +188 -0
  358. package/dist/models/video/types.d.ts.map +1 -0
  359. package/dist/objects/execution.d.ts.map +1 -1
  360. package/dist/objects/index.js +53 -50
  361. package/dist/objects/index.js.map +1 -1
  362. package/dist/objects/query/index.js +25 -23
  363. package/dist/objects/query/index.js.map +1 -1
  364. package/dist/objects/sdk/object-set.d.ts.map +1 -1
  365. package/dist/ontology/index.js +4 -4
  366. package/dist/ontology/internal.js +4 -4
  367. package/dist/pipelines/index.js +28 -26
  368. package/dist/pipelines/index.js.map +1 -1
  369. package/dist/projections/internal.js +26 -24
  370. package/dist/projections/internal.js.map +1 -1
  371. package/dist/queues/index.d.ts +1 -1
  372. package/dist/queues/index.d.ts.map +1 -1
  373. package/dist/queues/types.d.ts +103 -6
  374. package/dist/queues/types.d.ts.map +1 -1
  375. package/dist/runtime/create.d.ts.map +1 -1
  376. package/dist/runtime/definitions.d.ts +14 -0
  377. package/dist/runtime/definitions.d.ts.map +1 -1
  378. package/dist/runtime/host.d.ts +3 -1
  379. package/dist/runtime/host.d.ts.map +1 -1
  380. package/dist/runtime/index.d.ts +1 -1
  381. package/dist/runtime/index.d.ts.map +1 -1
  382. package/dist/runtime/internal.d.ts +3 -1
  383. package/dist/runtime/internal.d.ts.map +1 -1
  384. package/dist/runtime/internal.js +49 -43
  385. package/dist/runtime/internal.js.map +2 -2
  386. package/dist/runtime/resolve-definitions.d.ts +2 -1
  387. package/dist/runtime/resolve-definitions.d.ts.map +1 -1
  388. package/dist/runtime/sixb.d.ts.map +1 -1
  389. package/dist/sandboxes/errors.d.ts +19 -0
  390. package/dist/sandboxes/errors.d.ts.map +1 -1
  391. package/dist/sandboxes/exec.d.ts +2 -0
  392. package/dist/sandboxes/exec.d.ts.map +1 -1
  393. package/dist/sandboxes/index.d.ts +1 -1
  394. package/dist/sandboxes/index.d.ts.map +1 -1
  395. package/dist/sandboxes/index.js +14 -8
  396. package/dist/sandboxes/index.js.map +1 -1
  397. package/dist/sandboxes/sandbox.d.ts +15 -1
  398. package/dist/sandboxes/sandbox.d.ts.map +1 -1
  399. package/dist/security/public.d.ts +6 -4
  400. package/dist/security/public.d.ts.map +1 -1
  401. package/dist/security/public.js +5 -3
  402. package/dist/security/public.js.map +1 -1
  403. package/dist/shares/internal.js +25 -23
  404. package/dist/shares/internal.js.map +2 -2
  405. package/dist/storage/agents/in-memory.d.ts +2 -1
  406. package/dist/storage/agents/in-memory.d.ts.map +1 -1
  407. package/dist/storage/agents/index.d.ts +1 -1
  408. package/dist/storage/agents/index.d.ts.map +1 -1
  409. package/dist/storage/agents/provider.d.ts.map +1 -1
  410. package/dist/storage/agents/provider.js +5 -5
  411. package/dist/storage/agents/types.d.ts +27 -1
  412. package/dist/storage/agents/types.d.ts.map +1 -1
  413. package/dist/storage/ai-cost/analytics.d.ts +1 -0
  414. package/dist/storage/ai-cost/analytics.d.ts.map +1 -1
  415. package/dist/storage/ai-cost/groups.d.ts +2 -0
  416. package/dist/storage/ai-cost/groups.d.ts.map +1 -1
  417. package/dist/storage/ai-cost/provider.js +5 -5
  418. package/dist/storage/ai-cost/types.d.ts +2 -1
  419. package/dist/storage/ai-cost/types.d.ts.map +1 -1
  420. package/dist/storage/ai-cost/validation.d.ts.map +1 -1
  421. package/dist/storage/ai-limits/enforcement.js +3 -3
  422. package/dist/storage/ai-limits/provider.js +2 -2
  423. package/dist/storage/ai-usage/in-memory.d.ts +8 -1
  424. package/dist/storage/ai-usage/in-memory.d.ts.map +1 -1
  425. package/dist/storage/ai-usage/index.d.ts +2 -2
  426. package/dist/storage/ai-usage/index.d.ts.map +1 -1
  427. package/dist/storage/ai-usage/record.d.ts +11 -1
  428. package/dist/storage/ai-usage/record.d.ts.map +1 -1
  429. package/dist/storage/ai-usage/types.d.ts +80 -1
  430. package/dist/storage/ai-usage/types.d.ts.map +1 -1
  431. package/dist/storage/ai-usage/usage.d.ts +1 -1
  432. package/dist/storage/ai-usage/usage.d.ts.map +1 -1
  433. package/dist/storage/artifacts/in-memory.d.ts +25 -2
  434. package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
  435. package/dist/storage/artifacts/index.d.ts +1 -1
  436. package/dist/storage/artifacts/index.d.ts.map +1 -1
  437. package/dist/storage/artifacts/record.d.ts +12 -1
  438. package/dist/storage/artifacts/record.d.ts.map +1 -1
  439. package/dist/storage/artifacts/types.d.ts +198 -6
  440. package/dist/storage/artifacts/types.d.ts.map +1 -1
  441. package/dist/storage/executions/provider.js +3 -2
  442. package/dist/storage/executions/provider.js.map +1 -1
  443. package/dist/storage/file-upload-sessions/provider.js +10 -9
  444. package/dist/storage/file-upload-sessions/provider.js.map +1 -1
  445. package/dist/storage/in-memory/index.d.ts.map +1 -1
  446. package/dist/storage/index.d.ts +4 -4
  447. package/dist/storage/index.d.ts.map +1 -1
  448. package/dist/storage/index.js +25 -23
  449. package/dist/storage/index.js.map +1 -1
  450. package/dist/storage/internal.d.ts +2 -2
  451. package/dist/storage/internal.d.ts.map +1 -1
  452. package/dist/storage/internal.js +34 -14
  453. package/dist/storage/internal.js.map +2 -2
  454. package/dist/storage/workflow-runs/provider.js +10 -9
  455. package/dist/storage/workflow-runs/provider.js.map +1 -1
  456. package/dist/syncs/index.js +29 -27
  457. package/dist/syncs/index.js.map +1 -1
  458. package/dist/testing/agent-storage-contract.d.ts.map +1 -1
  459. package/dist/testing/ai-cost-storage-contract.d.ts.map +1 -1
  460. package/dist/testing/ai-usage-storage-contract.d.ts.map +1 -1
  461. package/dist/testing/artifact-storage-contract.d.ts +3 -0
  462. package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
  463. package/dist/testing/execution-storage-contract.d.ts.map +1 -1
  464. package/dist/testing/index.js +686 -75
  465. package/dist/testing/index.js.map +10 -10
  466. package/dist/testing/lake-storage-contract.d.ts.map +1 -1
  467. package/dist/testing/queues-contract.d.ts.map +1 -1
  468. package/dist/testing/sandboxes-contract.d.ts.map +1 -1
  469. package/dist/webhooks/internal.js +26 -24
  470. package/dist/webhooks/internal.js.map +2 -2
  471. package/dist/workers/index.js +5 -5
  472. package/dist/workers/index.js.map +1 -1
  473. package/dist/workflows/index.js +60 -57
  474. package/dist/workflows/index.js.map +1 -1
  475. package/package.json +3 -1
  476. package/src/actions/request.ts +2 -0
  477. package/src/actions/run/context.ts +1 -0
  478. package/src/actions/run/execute.ts +5 -1
  479. package/src/actions/run/executor.ts +4 -0
  480. package/src/actions/run/normalize.ts +4 -0
  481. package/src/actions/run/types.ts +6 -0
  482. package/src/actions/types/context.ts +7 -0
  483. package/src/agents/README.md +3 -1
  484. package/src/agents/context/entries.ts +63 -9
  485. package/src/agents/context-model.ts +9 -0
  486. package/src/agents/context-resolution.ts +7 -0
  487. package/src/agents/execution.ts +39 -0
  488. package/src/agents/index.ts +1 -0
  489. package/src/agents/model-call-retry.ts +69 -0
  490. package/src/agents/model-loop.ts +86 -12
  491. package/src/agents/model-routing.ts +104 -38
  492. package/src/agents/request.ts +27 -1
  493. package/src/agents/run-artifacts.ts +10 -5
  494. package/src/agents/run-plan.ts +2 -1
  495. package/src/agents/run-session-http.ts +1 -0
  496. package/src/agents/run-session-serve.ts +23 -2
  497. package/src/agents/run-session-wire.ts +45 -0
  498. package/src/agents/run-token.ts +7 -0
  499. package/src/agents/thread-access.ts +34 -1
  500. package/src/agents/tool-files.ts +23 -7
  501. package/src/artifacts/caller.ts +42 -0
  502. package/src/artifacts/comment-place.ts +51 -0
  503. package/src/artifacts/comment-text.ts +50 -7
  504. package/src/artifacts/comments.ts +132 -34
  505. package/src/artifacts/errors.ts +1 -0
  506. package/src/artifacts/execution.ts +249 -5
  507. package/src/artifacts/frames/assets.ts +93 -15
  508. package/src/artifacts/frames/entries.ts +7 -4
  509. package/src/artifacts/frames/generated/hyperframes-notices.txt +290 -0
  510. package/src/artifacts/frames/generated/hyperframes.txt +1145 -0
  511. package/src/artifacts/frames/generated.d.ts +5 -0
  512. package/src/artifacts/frames/hyperframes.ts +14 -0
  513. package/src/artifacts/frames/index.ts +5 -0
  514. package/src/artifacts/frames/kit.ts +7 -3
  515. package/src/artifacts/frames/protocol.ts +56 -0
  516. package/src/artifacts/frames/video-runtime.ts +165 -0
  517. package/src/artifacts/html.ts +13 -0
  518. package/src/artifacts/index.ts +7 -0
  519. package/src/artifacts/kinds.ts +9 -1
  520. package/src/artifacts/limits.ts +43 -0
  521. package/src/artifacts/live/document.ts +27 -3
  522. package/src/artifacts/live/index.ts +58 -2
  523. package/src/artifacts/live/presence.ts +17 -5
  524. package/src/artifacts/live/protocol.ts +4 -2
  525. package/src/artifacts/live/server.ts +1 -1
  526. package/src/artifacts/live/state.ts +3 -3
  527. package/src/artifacts/media/README.md +75 -0
  528. package/src/artifacts/media/media.ts +316 -0
  529. package/src/artifacts/media/transcriber.ts +84 -0
  530. package/src/artifacts/outline.ts +28 -0
  531. package/src/artifacts/publish/files.ts +19 -6
  532. package/src/artifacts/publish/index.ts +49 -2
  533. package/src/artifacts/publish/pdf.ts +3 -1
  534. package/src/artifacts/publish/previews.ts +22 -8
  535. package/src/artifacts/publish/publish.ts +4 -1
  536. package/src/artifacts/publish/validate/html.ts +23 -18
  537. package/src/artifacts/publish/validate/video.ts +309 -0
  538. package/src/artifacts/publish/video.ts +235 -0
  539. package/src/artifacts/resolve.ts +45 -0
  540. package/src/artifacts/video/README.md +402 -0
  541. package/src/artifacts/video/composition.ts +898 -0
  542. package/src/artifacts/video/edit.ts +3967 -0
  543. package/src/artifacts/video/export.ts +352 -0
  544. package/src/artifacts/video/looks.ts +694 -0
  545. package/src/artifacts/video/project.ts +198 -0
  546. package/src/artifacts/video/stills.ts +168 -0
  547. package/src/artifacts/video/timeline.ts +658 -0
  548. package/src/blob-storage/browser.ts +1 -1
  549. package/src/blob-storage/constants.ts +9 -3
  550. package/src/blob-storage/download-urls.ts +5 -3
  551. package/src/blob-storage/index.ts +1 -0
  552. package/src/blob-storage/internal.ts +13 -2
  553. package/src/blob-storage/media-type.ts +149 -8
  554. package/src/bootstrap/discovery.ts +61 -11
  555. package/src/deploy/index.ts +0 -5
  556. package/src/deploy/types.ts +8 -63
  557. package/src/deploy/validation.ts +1 -1
  558. package/src/env/index.ts +10 -4
  559. package/src/errors/catalog.ts +2 -1
  560. package/src/execution/authorization.ts +2 -2
  561. package/src/execution/kernel-operation.ts +14 -0
  562. package/src/execution/types.ts +2 -0
  563. package/src/http/api-routes.ts +117 -0
  564. package/src/index.ts +21 -1
  565. package/src/lake-storage/definition-updates.ts +3 -9
  566. package/src/models/audio/runtime.ts +48 -3
  567. package/src/models/audio/speech.ts +2 -2
  568. package/src/models/audio/types.ts +24 -3
  569. package/src/models/calls.ts +35 -18
  570. package/src/models/catalog.ts +9 -2
  571. package/src/models/definitions.ts +4 -2
  572. package/src/models/errors.ts +5 -3
  573. package/src/models/events.ts +2 -0
  574. package/src/models/execution/README.md +68 -2
  575. package/src/models/execution/index.ts +1 -0
  576. package/src/models/execution/model-call-limits.ts +11 -5
  577. package/src/models/execution/model-call-recorder.ts +14 -0
  578. package/src/models/execution/session.ts +52 -23
  579. package/src/models/execution/usage.ts +1 -0
  580. package/src/models/execution.ts +13 -2
  581. package/src/models/generation-types.ts +2 -0
  582. package/src/models/index.ts +20 -1
  583. package/src/models/input-file.ts +7 -2
  584. package/src/models/pricing.ts +19 -1
  585. package/src/models/rate-card.ts +15 -3
  586. package/src/models/tools.ts +5 -0
  587. package/src/models/video/catalog.ts +101 -0
  588. package/src/models/video/check.ts +441 -0
  589. package/src/models/video/runtime.ts +550 -0
  590. package/src/models/video/types.ts +194 -0
  591. package/src/objects/execution.ts +2 -0
  592. package/src/objects/sdk/object-set.ts +2 -0
  593. package/src/queues/index.ts +5 -0
  594. package/src/queues/types.ts +126 -5
  595. package/src/runtime/create.ts +1 -0
  596. package/src/runtime/definitions.ts +25 -0
  597. package/src/runtime/host.ts +6 -1
  598. package/src/runtime/index.ts +6 -1
  599. package/src/runtime/internal.ts +3 -1
  600. package/src/runtime/resolve-definitions.ts +7 -1
  601. package/src/runtime/sixb.ts +12 -4
  602. package/src/sandboxes/README.md +12 -2
  603. package/src/sandboxes/errors.ts +27 -0
  604. package/src/sandboxes/exec.ts +3 -1
  605. package/src/sandboxes/index.ts +3 -0
  606. package/src/sandboxes/sandbox.ts +15 -1
  607. package/src/security/public.ts +6 -4
  608. package/src/storage/agents/in-memory.ts +39 -0
  609. package/src/storage/agents/index.ts +1 -0
  610. package/src/storage/agents/provider.ts +8 -0
  611. package/src/storage/agents/types.ts +32 -1
  612. package/src/storage/ai-cost/analytics.ts +2 -0
  613. package/src/storage/ai-cost/codec.ts +1 -0
  614. package/src/storage/ai-cost/groups.ts +7 -0
  615. package/src/storage/ai-cost/types.ts +2 -0
  616. package/src/storage/ai-cost/validation.ts +2 -0
  617. package/src/storage/ai-usage/in-memory.ts +93 -0
  618. package/src/storage/ai-usage/index.ts +10 -0
  619. package/src/storage/ai-usage/record.ts +106 -0
  620. package/src/storage/ai-usage/types.ts +102 -1
  621. package/src/storage/ai-usage/usage.ts +2 -0
  622. package/src/storage/artifacts/in-memory.ts +108 -11
  623. package/src/storage/artifacts/index.ts +14 -0
  624. package/src/storage/artifacts/record.ts +203 -1
  625. package/src/storage/artifacts/types.ts +199 -6
  626. package/src/storage/executions/validation.ts +2 -2
  627. package/src/storage/in-memory/index.ts +1 -1
  628. package/src/storage/index.ts +22 -1
  629. package/src/storage/internal.ts +9 -0
  630. package/src/testing/agent-storage-contract.ts +135 -0
  631. package/src/testing/ai-cost-storage-contract.ts +1 -0
  632. package/src/testing/ai-usage-storage-contract.ts +145 -1
  633. package/src/testing/artifact-storage-contract.ts +330 -0
  634. package/src/testing/execution-storage-contract.ts +10 -2
  635. package/src/testing/lake-storage-contract.ts +27 -0
  636. package/src/testing/queues-contract.ts +71 -0
  637. package/src/testing/sandboxes-contract.ts +50 -0
  638. package/dist/chunk-3723kgba.js +0 -29
  639. package/dist/chunk-3723kgba.js.map +0 -10
  640. package/dist/chunk-3qtk0070.js.map +0 -14
  641. package/dist/chunk-8ncg20rd.js.map +0 -10
  642. package/dist/chunk-9vsc919v.js.map +0 -10
  643. package/dist/chunk-az95tsh3.js.map +0 -11
  644. package/dist/chunk-c29729me.js.map +0 -12
  645. package/dist/chunk-d7vyc7k6.js.map +0 -10
  646. package/dist/chunk-de5sfbc3.js +0 -3
  647. package/dist/chunk-f05994as.js.map +0 -10
  648. package/dist/chunk-gfdh9kqa.js.map +0 -11
  649. package/dist/chunk-jt012fxq.js.map +0 -34
  650. package/dist/chunk-mbwsgjn7.js.map +0 -11
  651. package/dist/chunk-nxysqbt0.js.map +0 -10
  652. package/dist/chunk-qttqe1ah.js.map +0 -24
  653. package/dist/chunk-sgx82nnt.js.map +0 -10
  654. package/dist/chunk-vs2s3p8n.js +0 -2274
  655. package/dist/chunk-vs2s3p8n.js.map +0 -20
  656. package/dist/chunk-wkv3h3q7.js.map +0 -12
  657. package/dist/chunk-wzcjhv54.js.map +0 -11
  658. package/dist/chunk-xtztwpkh.js.map +0 -12
  659. package/dist/chunk-ym1bqd98.js.map +0 -19
  660. /package/dist/{chunk-7mhbs9yy.js.map → chunk-1z8ccj53.js.map} +0 -0
  661. /package/dist/{chunk-dmnd9ea6.js.map → chunk-30a0ftnm.js.map} +0 -0
  662. /package/dist/{chunk-qbd282aa.js.map → chunk-39q9ybav.js.map} +0 -0
  663. /package/dist/{chunk-bcz9dxtf.js.map → chunk-3x902cja.js.map} +0 -0
  664. /package/dist/{chunk-c4nrycdy.js.map → chunk-4q4a5a96.js.map} +0 -0
  665. /package/dist/{chunk-ykchk644.js.map → chunk-4w8qzy9w.js.map} +0 -0
  666. /package/dist/{chunk-kft7mp7z.js.map → chunk-5xkqasvn.js.map} +0 -0
  667. /package/dist/{chunk-xavet0qs.js.map → chunk-6whr25gw.js.map} +0 -0
  668. /package/dist/{chunk-ygvay56w.js.map → chunk-896te58g.js.map} +0 -0
  669. /package/dist/{chunk-pqj8vff9.js.map → chunk-8eqqqc1h.js.map} +0 -0
  670. /package/dist/{chunk-jka26v8c.js.map → chunk-8x1bsp68.js.map} +0 -0
  671. /package/dist/{chunk-fmgf9h5e.js.map → chunk-9az7kjv4.js.map} +0 -0
  672. /package/dist/{chunk-bs1sd0e0.js.map → chunk-9p7kyeqz.js.map} +0 -0
  673. /package/dist/{chunk-brybqw5k.js.map → chunk-bkxm2dzx.js.map} +0 -0
  674. /package/dist/{chunk-ppxf7gw2.js.map → chunk-d7t9jnym.js.map} +0 -0
  675. /package/dist/{chunk-cg7cygfj.js.map → chunk-fdmvaz7x.js.map} +0 -0
  676. /package/dist/{chunk-191jz8a6.js.map → chunk-ff0qdk7z.js.map} +0 -0
  677. /package/dist/{chunk-wx7smkn2.js.map → chunk-fq8drkp0.js.map} +0 -0
  678. /package/dist/{chunk-v8a1qjzp.js.map → chunk-hpswfrjj.js.map} +0 -0
  679. /package/dist/{chunk-bz5bnjjt.js.map → chunk-jjte0h4p.js.map} +0 -0
  680. /package/dist/{chunk-xrmbhap8.js.map → chunk-mwg0nwkb.js.map} +0 -0
  681. /package/dist/{chunk-a3faa34j.js.map → chunk-nfjt8k8j.js.map} +0 -0
  682. /package/dist/{chunk-394zjzjs.js.map → chunk-nhgqz3g3.js.map} +0 -0
  683. /package/dist/{chunk-92wrka15.js.map → chunk-q150fnj9.js.map} +0 -0
  684. /package/dist/{chunk-w3t94hm6.js.map → chunk-qk3zq25v.js.map} +0 -0
  685. /package/dist/{chunk-6hfbz4d0.js.map → chunk-r588h4ev.js.map} +0 -0
  686. /package/dist/{chunk-5qqmndhm.js.map → chunk-szzhrn3e.js.map} +0 -0
  687. /package/dist/{chunk-n1hbwc6y.js.map → chunk-t6pfch4e.js.map} +0 -0
  688. /package/dist/{chunk-brhp9d97.js.map → chunk-vmqjndb3.js.map} +0 -0
  689. /package/dist/{chunk-5sswe5ej.js.map → chunk-wsv23wvr.js.map} +0 -0
  690. /package/dist/{chunk-90nqenq8.js.map → chunk-x0hqc54n.js.map} +0 -0
  691. /package/dist/{chunk-3neam1y5.js.map → chunk-y3qb965a.js.map} +0 -0
@@ -0,0 +1,402 @@
1
+ # A video's composition
2
+
3
+ A `video` artifact's version is a [HyperFrames](https://hyperframes.heygen.com) project, unchanged:
4
+
5
+ ```text
6
+ index.html the root composition, and one host per scene
7
+ scenes/<id>.html a <template> holding the scene's composition
8
+ media/<name> what the scenes play
9
+ ```
10
+
11
+ `composition.ts` reads it the way HyperFrames resolves it. Publishing checks a version with it
12
+ (`publish/validate/video.ts`), and the app's player and editor will read it in the browser, so it
13
+ runs on parse5 alone: no `HTMLRewriter`, no Node or Bun API. `browser-entries.e2e.ts` holds it to
14
+ that.
15
+
16
+ ## Reading it
17
+
18
+ 1. `parseVideoRoot(index.html)` finds the root composition: the first element with
19
+ `data-composition-id`, or the one with `data-root="true"`. Its hosts are the elements with
20
+ `data-composition-src` whose nearest composition is the root. Each host writes its scene's start
21
+ and length, so the whole timeline resolves here, from `index.html` alone.
22
+ 2. `parseVideoScene(file)` reads one scene file: a `<template>` and the composition in it.
23
+ 3. `composeVideo` checks that each file holds its host's composition, and adds what each plays.
24
+
25
+ `readVideoComposition` runs the three over a reader of the version's files. Every refusal is a
26
+ sentence naming the file, the scene, and what to write instead.
27
+
28
+ ## Where it agrees with HyperFrames
29
+
30
+ Checked against `hyperframes timeline --json` (0.9.68, in the agent image):
31
+
32
+ ```bash
33
+ docker run --rm --network none -v "$PWD":/w sixb-agent:1.4.0 \
34
+ bash -lc 'cd /w && hyperframes timeline --json'
35
+ ```
36
+
37
+ - **Starts.** `data-start` is seconds when `Number()` reads it as finite; else a scene's name when
38
+ it matches `[A-Za-z0-9_.:-]+`; else `<name> + n` or `<name> - n`, the number trailing. So
39
+ `intro-2` names a scene, and `intro - 2` is two seconds before `intro` ends.
40
+ - **Names.** HyperFrames finds what `data-start` names by element `id` first, then by
41
+ `data-composition-id`, and so does `resolveStarts`. A host's own `id` may differ, as
42
+ HyperFrames' templates write `id="intro-layer" data-composition-id="intro"`, so a start may name
43
+ the scene either way. A name that could read two ways is refused: two hosts of one `id`, a
44
+ host's `id` that is another scene's id, or another element taking either name. Ids start with a
45
+ letter, so none reads as a number.
46
+ - **A scene's identity** is its `data-composition-id` alone, never its host's `id`: the outline,
47
+ `artifact:…#<scene>` addresses, and comments name it by that.
48
+ - **Lengths.** HyperFrames' timeline reads a scene's length from its host alone, and a host
49
+ without `data-duration` is 0 seconds long there, whatever its file says. Every host needs one.
50
+ - **Refused where HyperFrames would guess.** It clamps a negative start to 0 and plays a cycle of
51
+ starts somehow: both are refusals here.
52
+ - **Files a scene plays.** `videoFilePath` resolves as HyperFrames' compiler rebases a scene's
53
+ paths: `../` climbs from the scene's folder, a path beside the scene is used when the version
54
+ holds it, anything else is read from the project's root. `?query` and `#fragment` are dropped.
55
+ - **Template content** is not in the page until HyperFrames puts it there, so roots, hosts and ids
56
+ are looked for outside templates; the files a template plays still count.
57
+ - `data-label` is HyperFrames' own name for a scene (its runtime's scene list reads it).
58
+ - **Nested compositions.** A scene's composition may host others by `data-composition-src`,
59
+ loaded from the project's root as `index.html`'s scenes are (HyperFrames' lint reports one
60
+ missing there). Publishing reads each, all the way down: its file must exist and hold a
61
+ `<template>`, none may nest itself, and what it plays is the scene's.
62
+
63
+ ## Where it is stricter
64
+
65
+ - Frames are at most 3,840 pixels a side, in even numbers, as H.264 encodes them, at 24, 25, 30,
66
+ or 60 fps: the rates HyperFrames renders a range of a film at, as an export renders a scene that
67
+ overlaps another. Both are written in digits alone, which HyperFrames' `parseInt` reads as
68
+ `Number()` does.
69
+ - A root that plays something on its own timeline, a soundtrack or any element with `data-start`,
70
+ writes its own `data-duration`. Without one, HyperFrames plays until the last of them ends, and a
71
+ sound without `data-duration` lasts as long as its file: a length the HTML does not say.
72
+ - A scene ends by the root's `data-duration`, where HyperFrames would cut it, or less than a frame
73
+ after it: a rounded start or length, which cuts nothing a frame shows.
74
+ - A scene host sits in the root composition itself, never in another composition.
75
+ - The root's `data-poster`, which HyperFrames does not read (its lint passes it), is the instant
76
+ that shows the video before it plays, in seconds from 0 to before its end. The app's player
77
+ opens on it, and its card shows it; without one, both show the first scene's still, the middle
78
+ of its segment, where an opening has come in (`videoPosterMs`).
79
+ - A scene file is one `<template>`, nothing beside it.
80
+
81
+ ## Source positions
82
+
83
+ Each host, and the root, keeps the span of its whole element, of its start tag, and of every
84
+ attribute it writes, and each file reference the span of its attribute, as offsets into the text it
85
+ was read from. An editor patches a `data-start`, a `data-duration`, or a `src` in place with them,
86
+ so a change stays one small text edit, in the live document and in the Agent's diffs.
87
+
88
+ ## Render keys
89
+
90
+ `publish/video.ts` names each scene by `sceneRenderKeys`, a hash of what its frames are made of:
91
+
92
+ - the frame kit;
93
+ - `index.html` without its scene hosts, the root's `data-duration` and `data-poster`, and its
94
+ `<audio>` elements, which show nothing: the frame, the root's styles, and what it shows itself;
95
+ - the scene's host and those of the scenes on screen during its segment, from the frame it starts
96
+ on up to the one the next scene starts on, as one fades into it, with their times resolved and
97
+ their order in `index.html` and their `z-index`, which stack them. A scene that fades in after
98
+ the segment ends shows in none of its frames, and is not in its key;
99
+ - the scene's start in the video, only when the root shows something that moves of its own: a
100
+ timed element, a video, a script that may build a timeline, or CSS that moves;
101
+ - every other file, but four kinds: the other scenes' HTML, the videos neither the root nor a
102
+ scene on screen during the segment plays, the heavy files a version mostly changes, every
103
+ sound, and HyperFrames' own project state in `.hyperframes/`, its edit history, which no frame
104
+ loads. A version published from a folder HyperFrames worked in holds it, and the Agent's next
105
+ publish, which leaves out every dot folder, drops it: kept in the keys, that would render every
106
+ scene again.
107
+
108
+ A segment is pictures alone. The export mixes the whole video's sound once, apart, so a soundtrack
109
+ changed, trimmed or moved renders no scene again (see Export below).
110
+
111
+ `rootTimeline` reads `index.html` alone; publishing then reads what it links. An inline script
112
+ counts, as it may build the root's timeline, and so does a script of the version that registers
113
+ one (`__timelines`); a library, from a CDN or the version, only loads. A stylesheet of the version
114
+ counts when its CSS moves, Google Fonts never, and any other stylesheet from elsewhere always,
115
+ since it cannot be read.
116
+
117
+ A scene's own motion does not count. HyperFrames runs a scene's CSS animations and its registered
118
+ GSAP timeline from the scene's start, wherever it plays. Measured on 0.9.68: one scene, a box
119
+ moved by a 2 s CSS animation, then by a GSAP timeline, placed at 0 s and at 2 s, each range
120
+ rendered with `--crf 0 --workers 1 --start/--end`; the 60 frames' `framemd5` are identical, all 60
121
+ distinct. The control, the same box animated in the root, differs on all 60 frames.
122
+
123
+ So trimming a scene re-renders it and the scene it fades into, and those after it only when the
124
+ root moves on its own, or when the trim moves them by part of a frame, which the editor's cuts
125
+ never do (see Editing). An image, a stylesheet, a font, a script, or a nested composition
126
+ is in every key, whatever loads it: CSS `url()`, `srcset`, or a script. The one blind spot is a
127
+ video or a sound a scene loads by script alone, which no HTML attribute names: changing it keeps
128
+ the scene's segment. So a recording a script plays is named in HTML too, by a `<video>` or an
129
+ `<audio>` it drives, as the Agent's guide asks.
130
+
131
+ The key names no artifact: a segment is the scene's frames, rendered from these files alone, so a
132
+ copy shares it. An `artifact:` file a scene plays is in its HTML as an address, which follows its
133
+ target's latest version, so the key does not cover what it resolves to: the export adds that to
134
+ the key it keeps the segment under (see Export below).
135
+
136
+ ## Export
137
+
138
+ A version exports to one MP4 joined from segments kept apart from it under keys that hash what
139
+ each is made of (`export.ts`), in `ArtifactStorage`'s video renders, which no artifact owns:
140
+
141
+ | Segment | Its key holds |
142
+ | --- | --- |
143
+ | A scene's frames, from the frame it starts on up to the one the next scene starts on (the first from frame 0), silent | the scene's render key, where it starts from the scene's start and how many frames, the engine (`VIDEO_ENGINE`), the encoder settings, and what the `artifact:` addresses played by the root and the scenes on screen during it resolve to |
144
+ | The whole video's sound | every file, the frame rate and count, the engine, and what every address resolves to |
145
+ | The MP4 | its segments' keys, in order |
146
+
147
+ So a version that changes one scene renders that scene's segment again, and the segment of the
148
+ scene it fades into, and mixes the sound again, which takes seconds; a copy shares every segment.
149
+ Scenes that start on one frame render in the first one's segment, and its scene's key covers every
150
+ scene on screen during it (`scenesOnScreen`).
151
+
152
+ ```text
153
+ sixb.artifacts.video() keys from the outline alone: what is kept, or ask, keeping the ask
154
+ (`render: false` answers idle without one: segments may be another's)
155
+ → artifact.video.export.requested one job per export, carrying the version as it was asked for
156
+ asks for each missing segment, then for itself again, VIDEO_EXPORT_JOB.recheckMs later
157
+ → artifact.video.segment.requested one job per segment key, shared by exports
158
+ a scene: `index.html` keeping the scenes on screen during it (project.ts), in a sandbox
159
+ once kept, asks the export that asked for it to look again at once
160
+ the sound: HyperFrames' own mix, through its distributed plan, which captures no frame,
161
+ from the version less the footage no unmuted video plays (`videoSoundProject`)
162
+ → the export, once every segment is kept: joined without encoding again, the sound muxed
163
+ ```
164
+
165
+ - **A scene's project.** `videoSegmentRender` keeps the scenes on screen during the segment
166
+ and moves them earlier by as many whole frames as none of them starts before, up to the
167
+ segment's start, so each keeps its place between frames. When nothing starts before the segment
168
+ and the root does not move, the segment starts at frame 0 of its project, and HyperFrames renders
169
+ it whole, in parallel browsers. Otherwise, a crossfade from the scene before or a root that moves
170
+ on its own, it renders the range `--start`/`--end` of the project, which HyperFrames captures in
171
+ short chunks one after the other, about twice slower.
172
+ - **Joining.** Every segment is H.264 at one quality, `VIDEO_SEGMENT_SETTINGS`, and starts on a
173
+ keyframe, so the MP4 is the segments as they are, with the sound, index first. Its frame count is
174
+ checked against the plan's.
175
+ - **The sound** is one mix of the whole video, so music that crosses a cut never breaks: the
176
+ `audio.m4a` of HyperFrames' distributed plan (`planV2`), the very track its own render muxes,
177
+ bit for bit (measured on 0.9.68). A video with no sound gets silence, so every MP4 has a track.
178
+ No package export reaches the plan: `video.cjs` finds the module of the CLI's `dist` that
179
+ exports `planV2` and the request helpers beside it. That holds only because every key pins
180
+ `VIDEO_ENGINE`, which a sandbox must run: it names `HYPERFRAMES_VERSION`, which a unit test holds
181
+ to the agent image's release. When the module is gone, or its manifest moved, the sound fails at
182
+ once, kept with what changed, and `video-export.e2e.ts`, run against the agent image, fails by
183
+ name on an image that upgrades HyperFrames.
184
+ - **Waiting** is a job, not a worker: the export looks again a few seconds later in a job it asks
185
+ for in its own place, asking for nothing then. Each segment it asked for makes it look at once,
186
+ once kept or failed, carrying the export's payload; the later look is a backstop, for an export
187
+ whose segment another asked for first. A segment job always keeps its file or why not,
188
+ so asking again for a segment never strands an export; a retry forgets the failures and asks
189
+ anew with `replace`, in a job apart from the export's, since a segment that finishes takes the
190
+ export's place with the payload it was asked with, which asks for nothing. A segment found kept
191
+ still makes its export look, so the last look carries the latest ask's `askedAt`.
192
+ - **Failures.** A segment that fails after `VIDEO_SEGMENT_JOB.attempts` fails the export, naming
193
+ the scene by its label, else its id. An export asked for by a Sixb whose keys differ from the
194
+ worker's, as while a deploy rolls out, tries again until its attempts are spent, then keeps why.
195
+ A sandbox without HyperFrames, or with another version than `VIDEO_ENGINE`, keeps why at once,
196
+ with `lacks: "sandbox_tools"`, which the app reads as export not being available rather than
197
+ offering a retry: rendering there would keep frames under a key that does not name what made
198
+ them.
199
+ - **Stills** (`stills.ts`): the middle of each scene's segment, what its chapter plays until the
200
+ next scene starts, snapshotted with `hyperframes snapshot` when a version is published, once it
201
+ rests, and kept under the scene's key. The poster is the instant the root's `data-poster` names,
202
+ else the first scene's still.
203
+
204
+ ### What to ask HyperFrames for
205
+
206
+ The scan goes once HyperFrames exports a way to mix a project's sound alone, which its CLI has
207
+ internally (`processCompositionAudio`, run by `planV2` and by every render). Any of these would do:
208
+
209
+ - `hyperframes render --audio-only -o mix.m4a`, the render's own delivery mix, no frame captured;
210
+ - an `audio` mode on `hyperframes/api`: `mixAudio(projectDir, { fps, signal }) → { path, durationMs }`;
211
+ - `planV2` and its request helpers on `hyperframes/api`, with the manifest's layout documented.
212
+
213
+ The first is the one to ask for: a CLI flag keeps the render worker on the same contract as its
214
+ segments, and the sandbox needs nothing else.
215
+
216
+ ## Editing
217
+
218
+ The app's editor changes a video in its live document: `index.html` and each scene file are
219
+ `Y.Text`, each recording a reference. It never writes a file whole. `timeline.ts` reads what an
220
+ editor touches, and `edit.ts` turns each operation into changes to the text.
221
+
222
+ - **Clips** (`readSceneTimeline`, `readRootTimeline`): the timed elements of one composition,
223
+ anything with `data-start` and every `<video>` and `<audio>`, with their timing as written and the
224
+ span of each attribute. A clip is named by its `id`, else by its place among the file's clips
225
+ (`#2`). Its track follows from what it is: picture, text, or sound. Words styled inline, such as
226
+ a caption that colours one of them, are still text.
227
+ - **Targets** (`videoTarget`): how the editor names an element in an operation. One without an id
228
+ carries its tag, words and file with its place: someone else's edit in between may shift the
229
+ place, and the operation then takes the one element still alike, or refuses when none or several
230
+ are. It never edits another element than the one the reader chose.
231
+ - **Texts**: the elements holding words alone, timed or not, which an editor types over. A styled
232
+ caption is not one: typing over it would drop its styling.
233
+ - **Operations** take the files as they are and return an edit or a refusal: a scene's length,
234
+ label, place, copy and removal; a clip's timing, trim, move, split, removal, sound and words; an
235
+ import; a range cut from the video, each scene it spans losing its share; stretches of a
236
+ recording cut wherever it plays. Several clips, from any files, move, split or go in one edit
237
+ (`moveClips`, `splitClips`, `removeClips`): each is found before any changes, a move goes no
238
+ further than the first clip to reach the video's start, and a ripple closes a file's gaps as
239
+ one cut.
240
+ - **Sound and files.** A clip's `data-volume` goes up to 4 times as recorded, or stays as loud as
241
+ the Agent made it; footage is muted and heard again as HyperFrames mixes it, `muted` or a
242
+ `data-has-audio` other than "true" never heard, nor a muted sound. Footage imported where a
243
+ scene says something, or a line of the video's own voice-over that belongs to a chapter, B-roll
244
+ over a voice, comes in muted; the video's own music under it all is no reason.
245
+ `replaceClipMedia` plays another file of the same kind in a clip's place, every part of it from
246
+ the new file's start; it and `removeMediaRanges` know a file however a clip names it. An edit
247
+ that takes the last clip playing a recording or a picture takes the file too (`unplayed`), and an
248
+ undo brings both back: only a file an edited file played, and only once no text file of the
249
+ version names it, hosted or not, in a style, a script or a picture's `href`, under any spelling;
250
+ when unsure, it stays.
251
+ - **Chapters** (`videoChapters`): every scene but an overlay, one that holds two others whole, or
252
+ the span of all the others, two at least, as captions laid over the whole video; a short chapter
253
+ in another's crossfade is still one. Placement never puts a clip in an overlay nor goes on in one
254
+ past a chapter's end, and an overlay's own clips stay in it. A reorder chains the chapters alone,
255
+ an overlay keeping where it plays: one that starts after a chapter starts at its time from then.
256
+ - **Placing** (`placeFound`): every edit that puts a scene's clip at a time of the video, a move,
257
+ an end trim without ripple, an import, goes through it. The clip lives in the scene that plays
258
+ where it starts: its own while that holds it, else the one on top there (the later in play
259
+ order, as hosts stack in a crossfade); in a gap, the next scene, from its start. Past that
260
+ scene's end, it goes on in the next one as a copy starting where the first part ends, so a
261
+ crossfade shows nothing twice, its `data-media-start` advanced by what the parts before played;
262
+ the last scene grows, in frame steps, to hold the rest. No other scene changes length. A clip
263
+ without a written length moves but is never split. A move keeps the length its scene shows: an
264
+ overhang never seen stays behind. The video's own clips stay in `index.html`. A move that goes
265
+ nowhere, or a trim to the same length, is no edit.
266
+ - A clip that lands in a file, moved or imported, is a child of its composition itself, never of
267
+ a wrapper whose look would become its own. A picture goes under the words, before the first
268
+ element holding any when that one comes no later than the last holding a picture (a card holding
269
+ both), else after that one; words and sounds after the last element holding their track, else
270
+ over the pictures, else last before the closing `<style>` and `<script>`.
271
+ - **A clip that goes on** (`videoChains`, `timeline.ts`) is one clip: each copy past a scene's end
272
+ writes `data-continues="<the first part's id>"`, and every operation on any part acts on all of
273
+ them, as one span from the first part's start to the last's end: a move or a trim places it
274
+ again, writing each part again where one still lands in its file, a removal takes every part, a
275
+ split makes two clips that each go on, the sound is the same in each (a fade in on the first, out
276
+ on the last), typed words go to every part. A part counts only while it goes on from the one
277
+ before as a placement or a cut wrote it, whatever was done to their scenes since: for a
278
+ recording, a piece starting where the one before ends in the same scene, or a part in the scene
279
+ placement goes on in after the other's (`sceneAfter`), starting no later than its end, so a scene
280
+ made shorter under it, hiding its end, or longer, leaving a gap, keeps the clip whole; anything
281
+ else from where the part before reaches its scene's end. Of two that would go on, the one playing
282
+ the file on from where the last stops, else the piece beside it, so a stale part hides none. A
283
+ head is the one clip of the video with its id. A part edited apart, whose first part is gone, or
284
+ whose scene a copy now follows, is a clip of its own, and loses the attribute once it is placed
285
+ again.
286
+ - A recording that goes on plays its file on from part to part, unless its words were cut there:
287
+ it lasts as long as its parts show, and placed again (`logicalClip`), it plays on across a gap or
288
+ a hidden end, and skips where a part starts elsewhere in its file than the one before stops
289
+ (`MediaJump`), cut again at each skip (`atJumps`) into pieces back to back in a scene: what was
290
+ cut is never heard again. A piece shorter than a frame, a skip that close to a scene's edge, is
291
+ left out, less than a frame of what was kept, and the pieces either side, under a frame apart,
292
+ still go on one from the other. A cut by
293
+ words (`removeMediaRanges`, `keepClipRanges`) takes from every part what it plays of the words,
294
+ so words across a scene's edge go whole, from either file. Whatever an operation cuts, what is
295
+ left of each part goes on from the first piece left (`markCutChains`); a scene moved or removed
296
+ so that two parts play at once places the clip again (`settleChains`), each part where the one
297
+ before ends. Any edit to a file holding parts settles them too: a part two people's edits left
298
+ naming another head goes on from the clip it follows again (`joinStrays`).
299
+ - A part left out of its clip lets go of `data-continues`, so nothing links it again across what
300
+ came between: a copied scene coming between two parts, a removed one leaving a part that no
301
+ longer goes on, or a placement that wrote the clip without it. Past a gap, a recording goes on
302
+ only where it plays its file on; elsewhere in the file, only from a part that reaches its
303
+ scene's end.
304
+ - A clip that leaves its file keeps its id, unless another element of the video has it, and takes
305
+ one of its own when parts go on from it (copies always take new ones); its recording's path is
306
+ rebased for the new folder. What followed it there keeps its time. A clip that holds others, or a
307
+ file two scenes play, stays put: the edit is refused whole.
308
+ - **Its look** (`looks.ts`) goes with it, to reach it alone, as the page computes it: every rule
309
+ that styles the element itself (its tag, id, classes, attributes and states, `:is()`, `:where()`
310
+ and `:not()` read for it), from the linked sheets, then its scene's `<style>`, in that order, each
311
+ inside the `@media`, `@supports`, `@container` or `@layer` it was in. The look is written once
312
+ in the scene it lands in, in a `<style data-look="<key>" data-from="<scene it is from>">`, for
313
+ every clip that carries it by `data-look="<key>"`: the key hashes the look and its scene, so
314
+ clips that look alike, moved together or one after the other, share one style. Each rule reaches
315
+ them by their key as specific as one id more than it was,
316
+ `[data-composition-id="<scene>"] p:is([data-look="<key>"], #sixb-look).caption.big`, so the rules
317
+ keep their cascade among themselves and outrank that scene's own. Keyframes it animates by keep
318
+ their name when the new scene reads none other by it, and take `<name>-2` otherwise; the key
319
+ reads them by their place, so a renamed look keeps it. The scene's own rules never change, so its
320
+ clips keep their look. Moved again, a clip takes its look along by the same key, and drops it
321
+ when it goes home; a style goes once no element carries its key, whatever removed the last, and
322
+ a style written twice, as two people bringing clips at once may leave it, but once. An edit that
323
+ brings a clip whose look the scene writes already writes that look whole again
324
+ (`writeWhole`), so someone taking its last clip out at the same time leaves it. No clip is named
325
+ `sixb-look`. A
326
+ rule that styles what the clip holds through it, `.caption .hot` or `.caption > span`, goes with
327
+ it, its tail as written; escaped class names and attribute operators are read. A rule that may
328
+ style it through a wrapper, by its place among its siblings, or styles its siblings, is not
329
+ carried: `looksMayDiffer` names the clip only where such a rule styles it otherwise where it lands
330
+ (`lookDiffers`), read with what holds it in both places, the video's root, the scene's host and
331
+ composition, and its wrappers: a linked sheet's rule that holds it alike in both says nothing,
332
+ unless a rule it takes along now outranks it on a property; a scene's own, or one it cannot
333
+ read, does. A placement works
334
+ each look out once for the elements alike, and an edit that would grow an HTML file past what
335
+ publishing reads is refused.
336
+ - Its old scene's script cannot follow: `animationsLeft` names each clip that left a script naming
337
+ its `#id` or a class, and `animationsJoined` each that landed where a selector the script writes
338
+ matches it there, as a string or a template of the strings it declares (`${scene} video`); a
339
+ script building its selectors otherwise is read by the clip's classes and tag.
340
+
341
+ How an operation works:
342
+
343
+ 1. It changes a working copy step by step, reading the files again between steps, so each step
344
+ finds what the one before left.
345
+ 2. A step that moves a scene first gives the root room for any length (`openRoot`), so every
346
+ step in between reads as a video. The last step writes the root's real length, and moves a
347
+ soundtrack that ran to the end, what the root plays during a scene, and the poster, with it
348
+ (`fitRoot`).
349
+ 3. The result is read as publishing reads a video (`readVideoComposition`); anything else is
350
+ refused, with the reason.
351
+ 4. The edit is the difference from the files it started from: the live layer's line diff, each
352
+ line written again narrowed to the attributes and words that changed. Two people changing
353
+ different values change different text, which Yjs merges, and the Agent's next diff reads as an
354
+ edit. Two writing one attribute at once leave it twice; the first counts, as in a browser, and
355
+ the next write keeps it alone. Its changes are `BoardChange`s, applied to a `Y.Text` by
356
+ `applyBoardEditToText`.
357
+
358
+ What moves with what:
359
+
360
+ - Scenes chained by `data-start` follow as HyperFrames moves them. A scene at a number of seconds
361
+ after the change moves as much. A reorder or a removal chains the scenes whose predecessor
362
+ changed, each keeping its own overlap or gap.
363
+ - A reorder writes starts, never a host's line: Yjs cannot move text, so a line moved is deleted
364
+ and copied, and someone's concurrent edit of it would be left as stray text. HyperFrames paints
365
+ scenes on screen together in `index.html`'s order, unless a `z-index` says otherwise. After a
366
+ reorder, scenes on screen together stack in play order, the later on top, as a crossfade shows
367
+ it: a scene that must sit above one later in the file writes the least `z-index` that puts it
368
+ there, and drops it once the file's order does. What the root paints over the scenes, the
369
+ elements after its first host such as a captions bar, then writes one above the highest scene's,
370
+ and drops it with the last.
371
+ - A ripple trim moves what starts after the edge, the scene's end included. A cut (a ripple
372
+ delete, a marked range, words of a transcript) takes stretches out of a scene: a recording cut
373
+ through is split around them, each part playing on from where its file was cut; any other clip
374
+ is shortened; a clip with nothing left goes; the scene ends as much sooner. A marked range
375
+ across scenes cuts from each its share, from its start up to the next scene's, so a crossfade
376
+ is cut once, and removes a scene it covers whole.
377
+ - A cut and a scene's new length go by frame steps, the shortest stretch that is whole frames and
378
+ whole milliseconds: 100 ms at 30 fps, a frame at 25. Each stretch cut from a scene grows to the
379
+ whole steps that cover it, so nothing marked to go is heard again: into its `room` first, the
380
+ pauses up to the words kept either side of a transcript's cut, then as much on each side. A
381
+ scene's length is the nearest number of steps (`videoSceneLength`), which its field shows. The
382
+ scenes after then move by whole frames, show the same frames, and keep their segments: an
383
+ export renders only the edited scene again. Removing a whole scene moves them by its length,
384
+ whatever it is.
385
+ - A clip whose `data-start` names another clip follows it, and a ripple does not move it. Once
386
+ that clip is split, it follows the last part; once it is removed or cut, it starts at the time
387
+ it did, which the ripple then moves as any other's.
388
+ - A copied scene's elements take new ids, and what names them in the file follows, each by its
389
+ whole name: a chained start, `getElementById`, and `#id` or `[id=…]` where they are selectors (a
390
+ style's preludes, a script's selector strings), never a value such as a colour `#fade`. A part in
391
+ it goes on from nothing.
392
+ - What `index.html` plays during one scene, a line of voice-over at a number of seconds, belongs
393
+ to the scene it plays most during, when it lasts no longer than that scene: it keeps its time
394
+ into the scene as the scene moves, and goes with it. A soundtrack under every scene belongs to
395
+ none. The Agent's guide puts a voice-over in its scene's file, where it moves with no rule.
396
+ - The poster keeps its time into the scene on top at its instant, within that scene's length.
397
+ - A write merged into the live document keeps every recording the merged HTML still plays, even
398
+ one the writer's copy no longer did: someone else may have just added a clip of it.
399
+
400
+ Not covered: motion a scene's script writes (`gsap.timeline` positions) keeps its own times, and a
401
+ recording a script plays without an element is not seen. A clip that leaves its scene leaves its
402
+ wrappers too, and the rules that style it through them (`.frame video`), and `@media` rules.