@allyhub/sdk 0.8.0 → 0.9.0

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 (438) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +1 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  20. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  21. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  22. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  30. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  31. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  33. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  34. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  36. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  38. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  40. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  42. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  46. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  48. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  50. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  51. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  52. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  53. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  54. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  56. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  58. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  60. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  94. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  95. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  96. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  100. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  101. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  102. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  104. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  105. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  106. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  116. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  117. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  119. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  120. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  126. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  127. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  128. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  129. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  131. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  133. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  135. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  137. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  138. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  142. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  143. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  144. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  146. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  147. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  148. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  150. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  151. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  152. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  153. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  154. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  156. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  162. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  166. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  168. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  174. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  176. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  178. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  179. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  180. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  181. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  183. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  185. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  186. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  187. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  189. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  190. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  191. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
  194. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  195. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
  196. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  198. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  199. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
  200. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  201. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  202. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
  204. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  205. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  206. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  210. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
  211. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  212. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  216. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  217. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  219. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  220. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  223. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  225. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  226. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  227. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  228. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  229. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  230. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  231. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  232. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  233. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  234. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  235. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  236. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  237. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  239. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  240. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  241. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  242. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  243. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  244. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  245. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  246. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  247. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  248. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  250. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  252. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  253. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  254. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  257. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
  258. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  259. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  262. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  263. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
  265. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  269. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  270. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  271. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
  272. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  273. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  274. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  275. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  276. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  277. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  278. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  279. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
  280. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  281. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  282. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  283. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  284. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  285. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  286. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  287. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  288. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  289. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
  290. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  291. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  292. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
  293. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  294. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  295. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  296. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  297. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  298. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  299. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  300. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  301. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  302. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  303. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  304. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  305. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  306. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  307. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  308. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  309. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  310. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  311. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  312. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  313. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  314. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  315. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  316. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  317. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  318. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  319. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  320. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
  321. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  322. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  323. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
  324. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  325. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  326. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  327. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  328. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  329. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  330. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  331. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  332. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  333. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  334. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  335. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  336. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  337. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  338. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  339. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  340. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  341. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  342. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  343. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  344. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  345. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  346. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  347. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  348. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  349. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  350. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  351. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  352. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  353. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  354. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  355. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  356. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  357. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  358. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  359. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  360. package/dist/scenery.d.ts +1 -1
  361. package/dist/scenery.js +1 -1
  362. package/dist/sheets.d.ts +1 -1
  363. package/dist/sheets.js +1 -1
  364. package/dist/slides.d.ts +1 -9
  365. package/dist/slides.js +1 -1
  366. package/docs/README.md +8 -6
  367. package/docs/batches.md +5 -5
  368. package/docs/contract.md +2 -2
  369. package/docs/defaults.md +278 -20
  370. package/docs/docs.md +77 -63
  371. package/docs/footage.md +7 -7
  372. package/docs/image.md +165 -0
  373. package/docs/layers.md +22 -13
  374. package/docs/modeling.md +4 -4
  375. package/docs/pictures.md +65 -0
  376. package/docs/project.md +51 -31
  377. package/docs/scenery.md +11 -11
  378. package/docs/sheets.md +26 -25
  379. package/docs/slides.md +73 -65
  380. package/docs/sound.md +3 -3
  381. package/docs/speech.md +8 -8
  382. package/docs/video.md +16 -13
  383. package/docs/websites.md +4 -4
  384. package/package.json +7 -2
  385. package/dist/define.js +0 -2
  386. package/dist/free.js +0 -2
  387. package/dist/input.js +0 -2
  388. package/dist/module.js +0 -2
  389. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  390. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  391. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  392. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  393. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  394. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  395. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  396. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  397. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  398. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  399. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  400. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  401. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  402. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  403. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  404. package/dist/parts.js +0 -2
  405. package/dist/piece.js +0 -2
  406. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  407. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  408. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  409. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  410. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  411. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  412. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  413. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  414. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  415. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  416. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  417. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  418. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  419. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  420. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  421. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  422. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  423. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  424. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  425. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  426. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  427. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  428. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  429. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  430. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  431. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  432. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  433. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  434. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  435. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  436. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
  437. /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
  438. /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
@@ -1,11 +1,13 @@
1
1
  import { z } from "zod";
2
+ import type { EditorHost } from "./editor.js";
2
3
  import { type ClientOf, type MethodSpec } from "./jsonrpc.js";
3
- /** A picture: WebP unless said. */
4
- export declare const ImageSchema: z.ZodObject<{
5
- mime: z.ZodString;
6
- data: z.ZodBase64;
7
- }, z.core.$strict>;
8
- export type Image = z.infer<typeof ImageSchema>;
4
+ /** A version of a piece: its key as its kind's versions list it (`lang=en`); none: its first. */
5
+ export declare const VersionRef: {
6
+ /** The item's id, as `project/items` names it. */
7
+ item: z.ZodString;
8
+ version: z.ZodOptional<z.ZodString>;
9
+ };
10
+ export { ImageSchema, type Image } from "./image.js";
9
11
  /** A problem of the check (video-core's `Problem`): an objective error, by rule. */
10
12
  export declare const ProblemSchema: z.ZodObject<{
11
13
  code: z.ZodString;
@@ -23,23 +25,15 @@ export declare const FactSchema: z.ZodObject<{
23
25
  kind: z.ZodString;
24
26
  data: z.ZodUnknown;
25
27
  }, z.core.$loose>;
26
- /** A version's film plan (video-core's `Timeline`). */
27
- export declare const TimelineSchema: z.ZodObject<{
28
- fps: z.ZodNumber;
29
- width: z.ZodNumber;
30
- height: z.ZodNumber;
31
- duration: z.ZodNumber;
32
- parts: z.ZodArray<z.ZodUnknown>;
33
- }, z.core.$loose>;
34
28
  export declare const CHECK_STATES: readonly ["off", "waiting", "running", "done", "failed"];
35
29
  /** The check the server runs after edits, as it stands. */
36
30
  export declare const CheckStateSchema: z.ZodObject<{
37
31
  status: z.ZodEnum<{
38
32
  failed: "failed";
39
- running: "running";
40
33
  off: "off";
41
- waiting: "waiting";
34
+ running: "running";
42
35
  done: "done";
36
+ waiting: "waiting";
43
37
  }>;
44
38
  revision: z.ZodInt;
45
39
  problems: z.ZodArray<z.ZodObject<{
@@ -67,7 +61,7 @@ export declare const CheckStateSchema: z.ZodObject<{
67
61
  export type CheckState = z.infer<typeof CheckStateSchema>;
68
62
  export declare const EXPORT_STATES: readonly ["queued", "running", "done", "failed", "cancelled"];
69
63
  /** An export the person asked for, one at a time. */
70
- /** The choices an export is made with (`EXPORT_OFFER`). */
64
+ /** The choices an export is made with (its kind's `exports.options`). */
71
65
  export declare const ExportOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
72
66
  export type ExportOptions = z.infer<typeof ExportOptionsSchema>;
73
67
  export declare const ExportJobSchema: z.ZodObject<{
@@ -79,8 +73,8 @@ export declare const ExportJobSchema: z.ZodObject<{
79
73
  state: z.ZodEnum<{
80
74
  failed: "failed";
81
75
  running: "running";
82
- done: "done";
83
76
  queued: "queued";
77
+ done: "done";
84
78
  cancelled: "cancelled";
85
79
  }>;
86
80
  progress: z.ZodNumber;
@@ -100,143 +94,110 @@ export declare const IndexJobSchema: z.ZodObject<{
100
94
  share: z.ZodOptional<z.ZodNumber>;
101
95
  }, z.core.$strict>;
102
96
  export type IndexJob = z.infer<typeof IndexJobSchema>;
97
+ /**
98
+ * A page to frame, sandboxed: its address, and a probe's. The probe posts
99
+ * `{ allyhub: true, type: "probe" }` to its parent as it loads; a browser
100
+ * that blocks every request from an opaque origin (an agent's preview
101
+ * pane) never hears it, and the page is framed without the sandbox there.
102
+ */
103
+ export declare const FramedPageSchema: z.ZodObject<{
104
+ url: z.ZodString;
105
+ probe: z.ZodString;
106
+ }, z.core.$strict>;
103
107
  /** Most components `components/stills` draws in one call. */
104
108
  export declare const COMPONENT_STILLS_MAX = 64;
105
109
  export declare const PROJECT_TOOLS: {
106
110
  readonly "project/items": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
107
111
  items: z.ZodArray<z.ZodObject<{
108
- kind: z.ZodEnum<{
109
- video: "video";
110
- slides: "slides";
111
- doc: "doc";
112
- sheet: "sheet";
113
- scenery: "scenery";
114
- model: "model";
115
- website: "website";
116
- }>;
117
- dir: z.ZodString;
112
+ id: z.ZodString;
113
+ kind: z.ZodOptional<z.ZodString>;
114
+ dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
118
115
  entry: z.ZodString;
119
116
  title: z.ZodOptional<z.ZodString>;
117
+ groups: z.ZodArray<z.ZodString>;
118
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ path: z.ZodString;
120
+ role: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strip>>>;
122
+ kindInfo: z.ZodOptional<z.ZodObject<{
123
+ noun: z.ZodString;
124
+ icon: z.ZodOptional<z.ZodString>;
125
+ color: z.ZodOptional<z.ZodString>;
126
+ editor: z.ZodOptional<z.ZodString>;
127
+ exports: z.ZodOptional<z.ZodObject<{
128
+ types: z.ZodArray<z.ZodString>;
129
+ extras: z.ZodArray<z.ZodString>;
130
+ options: z.ZodArray<z.ZodObject<{
131
+ name: z.ZodString;
132
+ only: z.ZodArray<z.ZodString>;
133
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
134
+ }, z.core.$strip>>;
135
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
136
+ }, z.core.$strip>>;
137
+ share: z.ZodOptional<z.ZodBoolean>;
138
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
139
+ plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
140
+ starter: z.ZodOptional<z.ZodObject<{
141
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
142
+ entry: z.ZodString;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>>;
120
145
  }, z.core.$strict>>;
146
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
+ noun: z.ZodString;
148
+ icon: z.ZodOptional<z.ZodString>;
149
+ color: z.ZodOptional<z.ZodString>;
150
+ editor: z.ZodOptional<z.ZodString>;
151
+ exports: z.ZodOptional<z.ZodObject<{
152
+ types: z.ZodArray<z.ZodString>;
153
+ extras: z.ZodArray<z.ZodString>;
154
+ options: z.ZodArray<z.ZodObject<{
155
+ name: z.ZodString;
156
+ only: z.ZodArray<z.ZodString>;
157
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
+ }, z.core.$strip>>;
159
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
160
+ }, z.core.$strip>>;
161
+ share: z.ZodOptional<z.ZodBoolean>;
162
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
163
+ plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
164
+ starter: z.ZodOptional<z.ZodObject<{
165
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
166
+ entry: z.ZodString;
167
+ }, z.core.$strip>>;
168
+ id: z.ZodString;
169
+ }, z.core.$strip>>>;
121
170
  name: z.ZodString;
122
171
  scope: z.ZodString;
123
172
  revision: z.ZodInt;
124
173
  }, z.core.$strict>>;
125
- readonly "sheet/generated": MethodSpec<z.ZodObject<{
126
- item: z.ZodString;
127
- }, z.core.$strict>, z.ZodObject<{
128
- generated: z.ZodOptional<z.ZodUnknown>;
129
- failed: z.ZodBoolean;
130
- }, z.core.$strict>>;
131
- readonly "video/versions": MethodSpec<z.ZodObject<{
132
- item: z.ZodString;
133
- }, z.core.$strict>, z.ZodObject<{
134
- piece: z.ZodString;
135
- kind: z.ZodEnum<{
136
- video: "video";
137
- slides: "slides";
138
- }>;
139
- title: z.ZodOptional<z.ZodString>;
140
- width: z.ZodNumber;
141
- height: z.ZodNumber;
142
- versions: z.ZodArray<z.ZodObject<{
143
- key: z.ZodString;
144
- lang: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strict>>;
146
- }, z.core.$strict>>;
147
- readonly "slides/deck": MethodSpec<z.ZodObject<{
148
- item: z.ZodString;
149
- }, z.core.$strict>, z.ZodObject<{
150
- piece: z.ZodString;
151
- file: z.ZodString;
152
- prefix: z.ZodString;
153
- layouts: z.ZodArray<z.ZodString>;
154
- components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
155
- generators: z.ZodArray<z.ZodString>;
156
- scripts: z.ZodRecord<z.ZodString, z.ZodString>;
157
- code: z.ZodUnknown;
158
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
159
- theme: z.ZodObject<{
160
- name: z.ZodString;
161
- colors: z.ZodRecord<z.ZodString, z.ZodString>;
162
- fonts: z.ZodRecord<z.ZodString, z.ZodString>;
163
- }, z.core.$strict>;
164
- }, z.core.$strict>>;
165
- readonly "doc/data": MethodSpec<z.ZodObject<{
174
+ readonly "items/preview": MethodSpec<z.ZodObject<{
166
175
  item: z.ZodString;
167
176
  }, z.core.$strict>, z.ZodObject<{
168
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
169
- }, z.core.$strict>>;
170
- readonly "video/stage": MethodSpec<z.ZodObject<{
171
- start: z.ZodOptional<z.ZodObject<{
172
- t: z.ZodOptional<z.ZodNumber>;
173
- part: z.ZodOptional<z.ZodString>;
174
- offset: z.ZodOptional<z.ZodNumber>;
175
- dur: z.ZodOptional<z.ZodNumber>;
176
- }, z.core.$strict>>;
177
- play: z.ZodOptional<z.ZodBoolean>;
178
- chrome: z.ZodOptional<z.ZodBoolean>;
179
- mode: z.ZodOptional<z.ZodEnum<{
180
- code: "code";
181
- }>>;
182
- item: z.ZodString;
183
- version: z.ZodOptional<z.ZodString>;
184
- }, z.core.$strict>, z.ZodObject<{
185
- url: z.ZodString;
186
- probe: z.ZodString;
187
- }, z.core.$strict>>;
188
- readonly "video/timeline": MethodSpec<z.ZodObject<{
189
- item: z.ZodString;
190
- version: z.ZodOptional<z.ZodString>;
191
- }, z.core.$strict>, z.ZodObject<{
192
- timeline: z.ZodObject<{
193
- fps: z.ZodNumber;
194
- width: z.ZodNumber;
195
- height: z.ZodNumber;
196
- duration: z.ZodNumber;
197
- parts: z.ZodArray<z.ZodUnknown>;
198
- }, z.core.$loose>;
199
- text: z.ZodArray<z.ZodUnknown>;
200
- }, z.core.$strict>>;
201
- readonly "video/still": MethodSpec<z.ZodObject<{
202
- t: z.ZodOptional<z.ZodNumber>;
203
- item: z.ZodString;
204
- version: z.ZodOptional<z.ZodString>;
205
- }, z.core.$strict>, z.ZodObject<{
206
- t: z.ZodNumber;
207
- image: z.ZodObject<{
208
- mime: z.ZodString;
209
- data: z.ZodBase64;
210
- }, z.core.$strict>;
211
- width: z.ZodInt;
212
- height: z.ZodInt;
213
- duration: z.ZodNumber;
214
- }, z.core.$strict>>;
215
- readonly "video/stills": MethodSpec<z.ZodObject<{
216
- moments: z.ZodArray<z.ZodNumber>;
217
- item: z.ZodString;
218
- version: z.ZodOptional<z.ZodString>;
219
- }, z.core.$strict>, z.ZodObject<{
220
- stills: z.ZodArray<z.ZodObject<{
221
- t: z.ZodNumber;
177
+ preview: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
178
+ type: z.ZodLiteral<"picture">;
222
179
  image: z.ZodObject<{
223
180
  mime: z.ZodString;
224
181
  data: z.ZodBase64;
225
182
  }, z.core.$strict>;
226
- }, z.core.$strict>>;
227
- }, z.core.$strict>>;
228
- readonly "slides/fonts": MethodSpec<z.ZodObject<{
229
- item: z.ZodString;
230
- }, z.core.$strict>, z.ZodObject<{
231
- faces: z.ZodArray<z.ZodObject<{
232
- family: z.ZodString;
233
- url: z.ZodURL;
234
- weight: z.ZodOptional<z.ZodString>;
235
- style: z.ZodOptional<z.ZodString>;
236
- stretch: z.ZodOptional<z.ZodString>;
237
- unicodeRange: z.ZodOptional<z.ZodString>;
238
- }, z.core.$strict>>;
183
+ width: z.ZodInt;
184
+ height: z.ZodInt;
185
+ duration: z.ZodOptional<z.ZodNumber>;
186
+ }, z.core.$strict>, z.ZodObject<{
187
+ type: z.ZodLiteral<"text">;
188
+ lines: z.ZodArray<z.ZodString>;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ type: z.ZodLiteral<"table">;
191
+ columns: z.ZodArray<z.ZodString>;
192
+ rows: z.ZodArray<z.ZodArray<z.ZodString>>;
193
+ count: z.ZodInt;
194
+ }, z.core.$strict>], "type">>;
239
195
  }, z.core.$strict>>;
196
+ readonly "work/add": MethodSpec<z.ZodObject<{
197
+ kind: z.ZodString;
198
+ file: z.ZodString;
199
+ title: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
240
201
  readonly "components/list": MethodSpec<z.ZodObject<{
241
202
  item: z.ZodString;
242
203
  }, z.core.$strict>, z.ZodObject<{
@@ -272,10 +233,10 @@ export declare const PROJECT_TOOLS: {
272
233
  readonly "check/results": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
273
234
  status: z.ZodEnum<{
274
235
  failed: "failed";
275
- running: "running";
276
236
  off: "off";
277
- waiting: "waiting";
237
+ running: "running";
278
238
  done: "done";
239
+ waiting: "waiting";
279
240
  }>;
280
241
  revision: z.ZodInt;
281
242
  problems: z.ZodArray<z.ZodObject<{
@@ -316,8 +277,8 @@ export declare const PROJECT_TOOLS: {
316
277
  state: z.ZodEnum<{
317
278
  failed: "failed";
318
279
  running: "running";
319
- done: "done";
320
280
  queued: "queued";
281
+ done: "done";
321
282
  cancelled: "cancelled";
322
283
  }>;
323
284
  progress: z.ZodNumber;
@@ -338,8 +299,8 @@ export declare const PROJECT_TOOLS: {
338
299
  state: z.ZodEnum<{
339
300
  failed: "failed";
340
301
  running: "running";
341
- done: "done";
342
302
  queued: "queued";
303
+ done: "done";
343
304
  cancelled: "cancelled";
344
305
  }>;
345
306
  progress: z.ZodNumber;
@@ -351,35 +312,19 @@ export declare const PROJECT_TOOLS: {
351
312
  readonly "export/reveal": MethodSpec<z.ZodObject<{
352
313
  path: z.ZodString;
353
314
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
354
- readonly "scenery/viewer": MethodSpec<z.ZodObject<{
355
- item: z.ZodString;
356
- camera: z.ZodOptional<z.ZodObject<{
357
- position: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
358
- target: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
359
- }, z.core.$strict>>;
360
- }, z.core.$strict>, z.ZodObject<{
361
- url: z.ZodString;
362
- probe: z.ZodString;
363
- }, z.core.$strict>>;
364
315
  };
365
316
  export type ProjectToolName = keyof typeof PROJECT_TOOLS;
366
317
  /**
367
- * Where each project tool is answered when no machine runs (sources.ts):
368
- * from the project's snapshot, as nothing (what a render draws each time,
369
- * never recorded), or by the machine, which a host reading a snapshot asks
370
- * the window to wake.
318
+ * Where each of the core's tools is answered when no machine runs
319
+ * (sources.ts): from the project's snapshot, as nothing (what a render
320
+ * draws each time, never recorded), or by the machine, which a host
321
+ * reading a snapshot asks the window to wake. A contributed tool's
322
+ * manifest says its own.
371
323
  */
372
324
  export declare const PROJECT_TOOL_SOURCES: {
373
325
  readonly "project/items": "project";
374
- readonly "sheet/generated": "project";
375
- readonly "video/versions": "project";
376
- readonly "slides/deck": "project";
377
- readonly "doc/data": "project";
378
- readonly "video/stage": "project";
379
- readonly "video/timeline": "asleep";
380
- readonly "video/still": "asleep";
381
- readonly "video/stills": "asleep";
382
- readonly "slides/fonts": "project";
326
+ readonly "items/preview": "asleep";
327
+ readonly "work/add": "machine";
383
328
  readonly "components/list": "asleep";
384
329
  readonly "components/stage": "asleep";
385
330
  readonly "components/stills": "project";
@@ -389,24 +334,36 @@ export declare const PROJECT_TOOL_SOURCES: {
389
334
  readonly "export/cancel": "machine";
390
335
  readonly "export/list": "asleep";
391
336
  readonly "export/reveal": "machine";
392
- readonly "scenery/viewer": "project";
393
337
  };
394
- /**
395
- * What a person can do in an editor, an agent can do too
396
- * (docs/editors.md): for each tool, the CLI command that does the same
397
- * through the same package function, or the files an agent reads or
398
- * writes instead. Every tool has its line; the CLI's tests check that
399
- * each command named is one.
400
- */
401
- export declare const AGENT_DOES: Record<ProjectToolName, {
338
+ /** What does for the agent what a tool does for an editor: the CLI command that does the same, or the files the agent reads or writes instead. */
339
+ export type AgentDoes = {
402
340
  command: string;
403
341
  } | {
404
342
  files: string;
405
- }>;
343
+ };
344
+ /**
345
+ * What a person can do in an editor, an agent can do too
346
+ * (docs/editors.md): for each of the core's tools, the CLI command that
347
+ * does the same through the same package function, or the files an agent
348
+ * reads or writes instead. Every tool has its line (a contributed tool's
349
+ * manifest says its own, `does`); the CLI's tests check that each command
350
+ * named is one.
351
+ */
352
+ export declare const AGENT_DOES: Record<ProjectToolName, AgentDoes>;
406
353
  /** The project's tools, as typed calls. */
407
354
  export type ToolsClient = ClientOf<typeof PROJECT_TOOLS>;
408
- /** A tool's spec, by name. */
355
+ /** One of the core's tools' specs, by name. */
409
356
  export declare function toolSpec(name: string): MethodSpec | undefined;
357
+ /** A table of tools' specs by name: the core's, or an extension's own. */
358
+ export type ToolSpecs = Readonly<Record<string, MethodSpec>>;
359
+ /** What a tool of a table takes, and what it answers. */
360
+ export type ToolArgsOf<T extends ToolSpecs, N extends keyof T> = z.input<T[N]["params"]>;
361
+ export type ToolResultOf<T extends ToolSpecs, N extends keyof T> = z.output<T[N]["result"]>;
362
+ /**
363
+ * A table's tools as typed calls through `tools/call` (an editor's host):
364
+ * a tool's name and arguments, its answer checked against its result.
365
+ */
366
+ export declare function toolCaller<T extends ToolSpecs>(tools: T): <N extends keyof T & string>(host: Pick<EditorHost, "tools/call">, name: N, args: ToolArgsOf<T, N>) => Promise<ToolResultOf<T, N>>;
410
367
  export declare const TOOL_NOTIFICATIONS: {
411
368
  readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
412
369
  revision: z.ZodInt;
@@ -414,10 +371,10 @@ export declare const TOOL_NOTIFICATIONS: {
414
371
  readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
415
372
  status: z.ZodEnum<{
416
373
  failed: "failed";
417
- running: "running";
418
374
  off: "off";
419
- waiting: "waiting";
375
+ running: "running";
420
376
  done: "done";
377
+ waiting: "waiting";
421
378
  }>;
422
379
  revision: z.ZodInt;
423
380
  problems: z.ZodArray<z.ZodObject<{
@@ -452,8 +409,8 @@ export declare const TOOL_NOTIFICATIONS: {
452
409
  state: z.ZodEnum<{
453
410
  failed: "failed";
454
411
  running: "running";
455
- done: "done";
456
412
  queued: "queued";
413
+ done: "done";
457
414
  cancelled: "cancelled";
458
415
  }>;
459
416
  progress: z.ZodNumber;
@@ -473,5 +430,95 @@ export declare const TOOL_NOTIFICATIONS: {
473
430
  share: z.ZodOptional<z.ZodNumber>;
474
431
  }, z.core.$strict>>;
475
432
  }, z.core.$strict>>;
433
+ readonly "jobs/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
434
+ job: z.ZodObject<{
435
+ id: z.ZodString;
436
+ about: z.ZodObject<{
437
+ kind: z.ZodEnum<{
438
+ studio: "studio";
439
+ project: "project";
440
+ agent: "agent";
441
+ piece: "piece";
442
+ plugin: "plugin";
443
+ skill: "skill";
444
+ website: "website";
445
+ }>;
446
+ id: z.ZodString;
447
+ }, z.core.$strict>;
448
+ what: z.ZodEnum<{
449
+ update: "update";
450
+ install: "install";
451
+ start: "start";
452
+ download: "download";
453
+ wake: "wake";
454
+ export: "export";
455
+ publish: "publish";
456
+ }>;
457
+ name: z.ZodOptional<z.ZodString>;
458
+ state: z.ZodEnum<{
459
+ failed: "failed";
460
+ running: "running";
461
+ paused: "paused";
462
+ queued: "queued";
463
+ done: "done";
464
+ cancelled: "cancelled";
465
+ }>;
466
+ completed: z.ZodNumber;
467
+ total: z.ZodOptional<z.ZodNumber>;
468
+ unit: z.ZodEnum<{
469
+ files: "files";
470
+ share: "share";
471
+ bytes: "bytes";
472
+ }>;
473
+ left: z.ZodOptional<z.ZodNumber>;
474
+ stalled: z.ZodOptional<z.ZodBoolean>;
475
+ step: z.ZodOptional<z.ZodEnum<{
476
+ "first-setup": "first-setup";
477
+ }>>;
478
+ cancellable: z.ZodBoolean;
479
+ pausable: z.ZodOptional<z.ZodBoolean>;
480
+ quiet: z.ZodOptional<z.ZodBoolean>;
481
+ retryable: z.ZodBoolean;
482
+ failure: z.ZodOptional<z.ZodObject<{
483
+ reason: z.ZodEnum<{
484
+ other: "other";
485
+ offline: "offline";
486
+ "no-space": "no-space";
487
+ "no-credits": "no-credits";
488
+ unavailable: "unavailable";
489
+ }>;
490
+ details: z.ZodString;
491
+ }, z.core.$strict>>;
492
+ made: z.ZodOptional<z.ZodString>;
493
+ started: z.ZodNumber;
494
+ ended: z.ZodOptional<z.ZodNumber>;
495
+ }, z.core.$strict>;
496
+ item: z.ZodString;
497
+ }, z.core.$strict>>;
476
498
  };
499
+ /**
500
+ * What a read view gives a contributed tool's `readView` (its manifest's,
501
+ * a module of the editors' page): the tool's answers as its snapshot
502
+ * recorded them, and where the read view serves the tree.
503
+ */
504
+ export interface ReadViewContext {
505
+ /**
506
+ * The tool's answer recorded at these params, as the tool gave it (its
507
+ * error thrown as the tool's); refused as needing the machine where none
508
+ * was recorded.
509
+ */
510
+ recorded(params: Readonly<Record<string, unknown>>): Promise<unknown>;
511
+ /** An address of the tree as the read view serves it: a recorded answer's addresses are relative to the tree's root. */
512
+ inTree(address: string): string;
513
+ }
514
+ /**
515
+ * How a read view answers a contributed tool from what its snapshot
516
+ * recorded, where that is more than the answer recorded at the params
517
+ * asked: a page's address made with what the recording left out (where a
518
+ * video starts, where a camera is), or an answer's addresses in the view.
519
+ * Its params as the editor called it.
520
+ */
521
+ export type ReadViewTool = (params: Readonly<Record<string, unknown>>, view: ReadViewContext) => Promise<unknown>;
522
+ /** A `readView` module's default export: its tools' read views, by name. */
523
+ export type ReadViewTools = Readonly<Record<string, ReadViewTool>>;
477
524
  //# sourceMappingURL=tools.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{KINDS as c}from"@allyhub/formats";import{PathSchema as s}from"./files.js";import{method as t,notification as r}from"./jsonrpc.js";const n={item:s,version:e.string().optional()};export const ImageSchema=e.strictObject({mime:e.string().regex(/^image\//u),data:e.base64()}),ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),TimelineSchema=e.looseObject({fps:e.number(),width:e.number(),height:e.number(),duration:e.number(),parts:e.array(e.unknown())}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:s,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(s),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:s,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()});const a=e.tuple([e.number(),e.number(),e.number()]),o=e.strictObject({url:e.string(),probe:e.string()});export const COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":t(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({kind:e.enum(c),dir:s,entry:s,title:e.string().optional()})),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as the build finds them."),"sheet/generated":t(e.strictObject({item:s}),e.strictObject({generated:e.unknown().optional(),failed:e.boolean()}),"What a sheet's sheet.ts makes now: sheets as sheet.yaml would hold them. Never written to a file."),"video/versions":t(e.strictObject({item:s}),e.strictObject({piece:e.string(),kind:e.enum(["video","slides"]),title:e.string().optional(),width:e.number(),height:e.number(),versions:e.array(e.strictObject({key:e.string(),lang:e.string().optional()}))}),"A video's or a deck's versions, one per language: what its stage, its timeline and its exports are asked for."),"slides/deck":t(e.strictObject({item:s}),e.strictObject({piece:e.string(),file:s,prefix:e.string(),layouts:e.array(e.string()),components:e.record(e.string(),e.unknown()),generators:e.array(e.string()),scripts:e.record(e.string(),s),code:e.unknown(),data:e.record(e.string(),e.unknown()).optional(),theme:e.strictObject({name:e.string(),colors:e.record(e.string(),e.string()),fonts:e.record(e.string(),e.string())})}),"A deck's layouts, components and generators, and its files: slides.yaml (its slides) and its script in each language (their words and notes), which the deck's editor edits."),"doc/data":t(e.strictObject({item:s}),e.strictObject({data:e.record(e.string(),e.unknown())}),"The numbers a doc's charts read from the project's files (a sheet's table, a CSV, a data file of rows): what its editor draws them with."),"video/stage":t(e.strictObject({...n,start:e.strictObject({t:e.number().nonnegative().optional(),part:e.string().optional(),offset:e.number().nonnegative().optional(),dur:e.number().positive().optional()}).optional(),play:e.boolean().optional(),chrome:e.boolean().optional(),mode:e.enum(["code"]).optional()}),o,"The address of a version's stage page, for a sandboxed frame: it plays the piece and talks to its parent by postMessage."),"video/timeline":t(e.strictObject(n),e.strictObject({timeline:TimelineSchema,text:e.array(e.unknown())}),"A version's timeline, drawn nowhere."),"video/still":t(e.strictObject({...n,t:e.number().nonnegative().optional()}),e.strictObject({t:e.number(),image:ImageSchema,width:e.int().positive(),height:e.int().positive(),duration:e.number().nonnegative()}),"A moment of a version as the render draws it, as a picture."),"video/stills":t(e.strictObject({...n,moments:e.array(e.number().nonnegative()).min(1).max(32)}),e.strictObject({stills:e.array(e.strictObject({t:e.number(),image:ImageSchema}))}),"Several moments of a version as the render draws them: what `video/still` gives, on one page."),"slides/fonts":t(e.strictObject({item:s}),e.strictObject({faces:e.array(e.strictObject({family:e.string(),url:e.url(),weight:e.string().optional(),style:e.string().optional(),stretch:e.string().optional(),unicodeRange:e.string().optional()}))}),"The font faces a deck's slides draw with: the stage's own (the theme's standard fonts), allyhub.config.ts's fonts and what the deck's code imports, for a document that draws its slides without the project's stylesheets."),"components/list":t(e.strictObject({item:s}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":t(e.strictObject(n),o,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name slides.ts gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":t(e.strictObject({...n,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":t(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":t(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":t(e.strictObject({item:s,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":t(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":t(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":t(e.strictObject({path:s}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`)."),"scenery/viewer":t(e.strictObject({item:s,camera:e.strictObject({position:a,target:a}).optional()}),o,"The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.")},PROJECT_TOOL_SOURCES={"project/items":"project","sheet/generated":"project","video/versions":"project","slides/deck":"project","doc/data":"project","video/stage":"project","video/timeline":"asleep","video/still":"asleep","video/stills":"asleep","slides/fonts":"project","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine","scenery/viewer":"project"},AGENT_DOES={"project/items":{files:"the project's folder"},"sheet/generated":{files:"the item's sheet.ts and sheet.yaml"},"video/versions":{command:"inspect combos"},"slides/deck":{files:"slides.ts, slides.yaml and the item's script.<locale>.yaml"},"doc/data":{files:"the files the doc's charts name in data"},"video/stage":{command:"frames"},"video/timeline":{command:"inspect timeline"},"video/still":{command:"frames"},"video/stills":{command:"frames"},"slides/fonts":{files:"allyhub.config.ts's fonts and the stylesheets slides.ts imports"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"},"scenery/viewer":{command:"scenery view"}};export function toolSpec(i){return Object.hasOwn(PROJECT_TOOLS,i)?PROJECT_TOOLS[i]:void 0}export const TOOL_NOTIFICATIONS={"project/changed":r(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":r(CheckStateSchema,"The check started, ended or failed."),"export/changed":r(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":r(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on.")};
2
+ import{z as e}from"zod";import{FolderSchema as m,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as a}from"./kinds.js";import{RPC_ERROR as b,RpcError as g,method as r,notification as o}from"./jsonrpc.js";export const VersionRef={item:t,version:e.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:t,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(t),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:t,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()}),FramedPageSchema=e.strictObject({url:e.string(),probe:e.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":r(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:m,entry:t,title:e.string().optional(),groups:e.array(e.string()),files:e.array(e.object({path:e.string().min(1),role:e.string().min(1).optional()})).optional(),kindInfo:a.optional()})),kinds:e.array(a.extend({id:e.string().min(1)})).optional(),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"items/preview":r(e.strictObject({item:t}),e.strictObject({preview:h.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"work/add":r(e.strictObject({kind:e.string().min(1),file:t,title:e.string().min(1).optional()}),e.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":r(e.strictObject({item:t}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":r(e.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":r(e.strictObject({...VersionRef,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":r(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":r(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":r(e.strictObject({item:t,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":r(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":r(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":r(e.strictObject({path:t}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","items/preview":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"},AGENT_DOES={"project/items":{files:"allyhub.yaml"},"items/preview":{command:"frames"},"work/add":{files:"allyhub.yaml"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"}};export function toolSpec(s){return Object.hasOwn(PROJECT_TOOLS,s)?PROJECT_TOOLS[s]:void 0}export function toolCaller(s){return async(c,n,p)=>{const{result:l}=await c["tools/call"]({name:n,arguments:p}),i=s[n]?.result.safeParse(l);if(!i?.success)throw new g(b.internal,`The answer to the tool ${n} is not what the protocol says.`);return i.data}}export const TOOL_NOTIFICATIONS={"project/changed":o(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":o(CheckStateSchema,"The check started, ended or failed."),"export/changed":o(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":o(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":o(e.strictObject({job:d,item:t}),"A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/protocol",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{existsSync as u}from"node:fs";import{join as v}from"node:path";import{binsOf as x,filesFor as O,platformOf as d}from"@allyhub/protocol";import{binVariable as h}from"./runtimes.js";import{shippedManifest as j}from"./manifest.js";import{native as y}from"./unpack.js";export function bundledEnv(s,t={}){const f=t.env??process.env,e="platform"in t?t.platform:d(process.platform,process.arch),m=t.manifest??j(),c=t.exists??u,r={};if(!e)return r;for(const[a,p]of Object.entries(m.runtimes)){const n=O(p,e);if(n)for(const[l,b]of Object.entries(x(n))){const o=h(l),i=v(s,a,y(b));!f[o]&&c(i)&&(r[o]=i)}}return r}
2
+ import{existsSync as u}from"node:fs";import{join as v}from"node:path";import{binsOf as x,filesFor as O,platformOf as j}from"@allyhub/protocol";import{binVariable as d}from"./runtimes.js";import{knownManifest as h}from"./declared.js";import{native as k}from"./unpack.js";export function bundledEnv(s,t={}){const f=t.env??process.env,n="platform"in t?t.platform:j(process.platform,process.arch),m=t.manifest??h(),c=t.exists??u,r={};if(!n)return r;for(const[a,p]of Object.entries(m.runtimes)){const o=O(p,n);if(o)for(const[l,b]of Object.entries(x(o))){const e=d(l),i=v(s,a,k(b));!f[e]&&c(i)&&(r[e]=i)}}return r}
@@ -0,0 +1,14 @@
1
+ import { type Runtime, type RuntimeManifest } from "@allyhub/protocol";
2
+ /**
3
+ * Declares an extension's runtimes in this process, by name; what is
4
+ * wrong with any is said, and it is left out. Declaring the same pin
5
+ * again is nothing.
6
+ */
7
+ export declare function declareRuntimes(extension: string, runtimes: Readonly<Record<string, unknown>>): string[];
8
+ /** The runtimes the extensions in this process declared, by name, in the order declared. */
9
+ export declare function declaredRuntimes(): Readonly<Record<string, Runtime>>;
10
+ /** The extension that declared a runtime; none for the core's own, or one not declared. */
11
+ export declare const runtimeExtension: (name: string) => string | undefined;
12
+ /** The core's pins, then those the extensions in this process declared. */
13
+ export declare function knownManifest(): RuntimeManifest;
14
+ //# sourceMappingURL=declared.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{RuntimeSchema as m}from"@allyhub/protocol";import{shippedManifest as a}from"./manifest.js";const s=new Map;export function declareRuntimes(e,r){const t=[];for(const[n,c]of Object.entries(r)){const i=m.safeParse(c);if(!i.success){t.push(`The runtime ${n} is not a pin: ${i.error.issues.map(u=>`${u.path.join(".")||"entry"}: ${u.message}`).join("; ")}.`);continue}if(Object.hasOwn(a().runtimes,n)){t.push(`The runtime ${n} is the core's already.`);continue}const o=s.get(n);if(o&&o.extension!==e){t.push(`The runtime ${n} is ${o.extension}'s already.`);continue}s.set(n,{extension:e,runtime:i.data})}return t}export function declaredRuntimes(){return Object.fromEntries([...s].map(([e,r])=>[e,r.runtime]))}export const runtimeExtension=e=>s.get(e)?.extension;export function knownManifest(){const e=a();return{...e,runtimes:{...e.runtimes,...declaredRuntimes()}}}
@@ -0,0 +1,15 @@
1
+ /** Which ffmpeg to run; default the runtime manager's pinned build, fetched when first needed. */
2
+ export interface FfmpegOptions {
3
+ ffmpeg?: string | undefined;
4
+ }
5
+ /** The ffmpeg to run: the one named, else the pinned one. */
6
+ export declare function ffmpegOf(o?: FfmpegOptions): Promise<string>;
7
+ /**
8
+ * Runs ffmpeg, feeding stdin when asked; resolves with stdout (when kept)
9
+ * and stderr. Aborting the signal stops it outright.
10
+ */
11
+ export declare function runFfmpegWith(ffmpeg: string, args: string[], input?: (stdin: NodeJS.WritableStream) => Promise<void>, keepOut?: boolean, signal?: AbortSignal): Promise<{
12
+ out: Buffer;
13
+ err: string;
14
+ }>;
15
+ //# sourceMappingURL=ffmpeg.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{spawn as l}from"node:child_process";import{createRuntimes as h}from"./runtimes.js";const u=2e5;let d;export function ffmpegOf(o={}){if(o.ffmpeg!==void 0)return Promise.resolve(o.ffmpeg);const i=d??h().bin("ffmpeg","ffmpeg").catch(f=>{throw d=void 0,f});return d=i,i}export function runFfmpegWith(o,i,f,a=!1,t){return new Promise((m,s)=>{if(t?.aborted){s(t.reason instanceof Error?t.reason:new Error("aborted"));return}const e=l(o,i,{stdio:["pipe","pipe","pipe"]}),p=()=>{e.stdin.destroy(),e.kill("SIGKILL")};t?.addEventListener("abort",p,{once:!0}),e.on("close",()=>{t?.removeEventListener("abort",p)});const c=[];let n="";e.stdout.on("data",r=>{a&&c.push(r)}),e.stderr.on("data",r=>{n+=r.toString(),n.length>u&&(n=n.slice(-u/2))}),e.stdin.on("error",()=>{}),e.on("error",s),e.on("close",r=>{r===0?m({out:Buffer.concat(c),err:n}):s(new Error(`ffmpeg failed (${String(r)}): ${n.slice(-2e3)}`))}),f?f(e.stdin).then(()=>e.stdin.end()).catch(r=>{e.stdin.destroy(),e.kill("SIGKILL"),s(r instanceof Error?r:new Error(String(r)))}):e.stdin.end()})}