@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,30 +1,11 @@
1
1
  import { z } from "zod";
2
2
  import { type ClientOf } from "./jsonrpc.js";
3
3
  import { type NoteSurface } from "./notes.js";
4
+ export { PLACE_PARAM, PlaceSchema, placeIn, placeParams, type Place, } from "./place.js";
4
5
  export declare const ThemeSchema: z.ZodEnum<{
5
6
  light: "light";
6
7
  dark: "dark";
7
8
  }>;
8
- /**
9
- * Where the person is in an item, as its editor knows it: a video's moment
10
- * (seconds) or a deck's slide (its id). The editor says it as it changes
11
- * (`editor/place`), and a host that opens the item again, live or read
12
- * only, opens it there (HostContext's `place`).
13
- */
14
- export declare const PlaceSchema: z.ZodUnion<readonly [z.ZodObject<{
15
- t: z.ZodNumber;
16
- }, z.core.$strict>, z.ZodObject<{
17
- slide: z.ZodString;
18
- }, z.core.$strict>]>;
19
- export type Place = z.infer<typeof PlaceSchema>;
20
- /** The parameters an editors' page's address says a place by: `t=` a video's seconds, `slide=` a deck's slide. */
21
- export declare const PLACE_PARAMS: readonly ["t", "slide"];
22
- /** A place as an editors' page's address says it; none, nothing. */
23
- export declare function placeParams(place: Place | undefined): Partial<Record<(typeof PLACE_PARAMS)[number], string>>;
24
- /** The place an editors' page's address says (its query, as URLSearchParams reads it), if it says a valid one. */
25
- export declare function placeIn(q: {
26
- get(name: string): string | null;
27
- }): Place | undefined;
28
9
  export declare const HostContextSchema: z.ZodObject<{
29
10
  locale: z.ZodString;
30
11
  theme: z.ZodEnum<{
@@ -43,32 +24,32 @@ export declare const HostContextSchema: z.ZodObject<{
43
24
  audienceWindow: z.ZodOptional<z.ZodBoolean>;
44
25
  readOnly: z.ZodOptional<z.ZodBoolean>;
45
26
  viewer: z.ZodOptional<z.ZodBoolean>;
46
- place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
47
- t: z.ZodNumber;
48
- }, z.core.$strict>, z.ZodObject<{
49
- slide: z.ZodString;
50
- }, z.core.$strict>]>>;
27
+ place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
51
28
  item: z.ZodObject<{
52
- kind: z.ZodEnum<{
53
- video: "video";
54
- slides: "slides";
55
- doc: "doc";
56
- sheet: "sheet";
57
- scenery: "scenery";
58
- model: "model";
59
- website: "website";
60
- }>;
61
- dir: z.ZodString;
29
+ id: z.ZodString;
30
+ kind: z.ZodOptional<z.ZodString>;
31
+ dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
62
32
  entry: z.ZodString;
33
+ kindInfo: z.ZodObject<{
34
+ noun: z.ZodString;
35
+ icon: z.ZodOptional<z.ZodString>;
36
+ color: z.ZodOptional<z.ZodString>;
37
+ editor: z.ZodOptional<z.ZodString>;
38
+ exports: z.ZodOptional<z.ZodObject<{
39
+ types: z.ZodArray<z.ZodString>;
40
+ extras: z.ZodArray<z.ZodString>;
41
+ options: z.ZodArray<z.ZodObject<{
42
+ name: z.ZodString;
43
+ only: z.ZodArray<z.ZodString>;
44
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strip>>;
46
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
47
+ }, z.core.$strip>>;
48
+ share: z.ZodOptional<z.ZodBoolean>;
49
+ name: z.ZodString;
50
+ }, z.core.$strip>;
63
51
  }, z.core.$strict>;
64
- editor: z.ZodEnum<{
65
- video: "video";
66
- slides: "slides";
67
- doc: "doc";
68
- sheet: "sheet";
69
- scenery: "scenery";
70
- website: "website";
71
- }>;
52
+ editor: z.ZodString;
72
53
  }, z.core.$strict>;
73
54
  export type HostContext = z.infer<typeof HostContextSchema>;
74
55
  /** What `items/open` shows: a file of the project, or a browser page (as Codex's `open_in_codex` names it). */
@@ -92,8 +73,8 @@ export declare const ExportStateSchema: z.ZodObject<{
92
73
  failed: "failed";
93
74
  running: "running";
94
75
  idle: "idle";
95
- done: "done";
96
76
  queued: "queued";
77
+ done: "done";
97
78
  }>;
98
79
  percent: z.ZodOptional<z.ZodNumber>;
99
80
  open: z.ZodOptional<z.ZodBoolean>;
@@ -118,32 +99,32 @@ export declare const HOST_METHODS: {
118
99
  audienceWindow: z.ZodOptional<z.ZodBoolean>;
119
100
  readOnly: z.ZodOptional<z.ZodBoolean>;
120
101
  viewer: z.ZodOptional<z.ZodBoolean>;
121
- place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
122
- t: z.ZodNumber;
123
- }, z.core.$strict>, z.ZodObject<{
124
- slide: z.ZodString;
125
- }, z.core.$strict>]>>;
102
+ place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
126
103
  item: z.ZodObject<{
127
- kind: z.ZodEnum<{
128
- video: "video";
129
- slides: "slides";
130
- doc: "doc";
131
- sheet: "sheet";
132
- scenery: "scenery";
133
- model: "model";
134
- website: "website";
135
- }>;
136
- dir: z.ZodString;
104
+ id: z.ZodString;
105
+ kind: z.ZodOptional<z.ZodString>;
106
+ dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
137
107
  entry: z.ZodString;
108
+ kindInfo: z.ZodObject<{
109
+ noun: z.ZodString;
110
+ icon: z.ZodOptional<z.ZodString>;
111
+ color: z.ZodOptional<z.ZodString>;
112
+ editor: z.ZodOptional<z.ZodString>;
113
+ exports: z.ZodOptional<z.ZodObject<{
114
+ types: z.ZodArray<z.ZodString>;
115
+ extras: z.ZodArray<z.ZodString>;
116
+ options: z.ZodArray<z.ZodObject<{
117
+ name: z.ZodString;
118
+ only: z.ZodArray<z.ZodString>;
119
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ }, z.core.$strip>>;
121
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
122
+ }, z.core.$strip>>;
123
+ share: z.ZodOptional<z.ZodBoolean>;
124
+ name: z.ZodString;
125
+ }, z.core.$strip>;
138
126
  }, z.core.$strict>;
139
- editor: z.ZodEnum<{
140
- video: "video";
141
- slides: "slides";
142
- doc: "doc";
143
- sheet: "sheet";
144
- scenery: "scenery";
145
- website: "website";
146
- }>;
127
+ editor: z.ZodString;
147
128
  }, z.core.$strict>>;
148
129
  readonly "items/open": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
149
130
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -179,18 +160,24 @@ export declare const HOST_METHODS: {
179
160
  failed: "failed";
180
161
  running: "running";
181
162
  idle: "idle";
182
- done: "done";
183
163
  queued: "queued";
164
+ done: "done";
184
165
  }>;
185
166
  percent: z.ZodOptional<z.ZodNumber>;
186
167
  open: z.ZodOptional<z.ZodBoolean>;
187
168
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
169
+ readonly "agent/here": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
170
+ agent: z.ZodOptional<z.ZodObject<{
171
+ name: z.ZodString;
172
+ doing: z.ZodEnum<{
173
+ looking: "looking";
174
+ editing: "editing";
175
+ }>;
176
+ }, z.core.$strict>>;
177
+ following: z.ZodBoolean;
178
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
188
179
  readonly "editor/place": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
189
- place: z.ZodUnion<readonly [z.ZodObject<{
190
- t: z.ZodNumber;
191
- }, z.core.$strict>, z.ZodObject<{
192
- slide: z.ZodString;
193
- }, z.core.$strict>]>;
180
+ place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
194
181
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
195
182
  readonly "agent/ask": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
196
183
  text: z.ZodString;
@@ -221,16 +208,38 @@ export declare const HOST_METHODS: {
221
208
  }, z.core.$strict>>;
222
209
  };
223
210
  export declare const HOST_NOTIFICATIONS: {
211
+ readonly "presence/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
212
+ collaborators: z.ZodArray<z.ZodObject<{
213
+ doing: z.ZodOptional<z.ZodEnum<{
214
+ looking: "looking";
215
+ editing: "editing";
216
+ }>>;
217
+ item: z.ZodOptional<z.ZodString>;
218
+ place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
219
+ source: z.ZodOptional<z.ZodObject<{
220
+ path: z.ZodString;
221
+ from: z.ZodOptional<z.ZodInt>;
222
+ to: z.ZodOptional<z.ZodInt>;
223
+ }, z.core.$strict>>;
224
+ id: z.ZodString;
225
+ kind: z.ZodEnum<{
226
+ person: "person";
227
+ agent: "agent";
228
+ }>;
229
+ name: z.ZodString;
230
+ at: z.ZodNumber;
231
+ }, z.core.$strict>>;
232
+ }, z.core.$strict>>;
224
233
  readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
225
234
  revision: z.ZodInt;
226
235
  }, z.core.$strict>>;
227
236
  readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
228
237
  status: z.ZodEnum<{
229
238
  failed: "failed";
230
- running: "running";
231
239
  off: "off";
232
- waiting: "waiting";
240
+ running: "running";
233
241
  done: "done";
242
+ waiting: "waiting";
234
243
  }>;
235
244
  revision: z.ZodInt;
236
245
  problems: z.ZodArray<z.ZodObject<{
@@ -265,8 +274,8 @@ export declare const HOST_NOTIFICATIONS: {
265
274
  state: z.ZodEnum<{
266
275
  failed: "failed";
267
276
  running: "running";
268
- done: "done";
269
277
  queued: "queued";
278
+ done: "done";
270
279
  cancelled: "cancelled";
271
280
  }>;
272
281
  progress: z.ZodNumber;
@@ -286,6 +295,71 @@ export declare const HOST_NOTIFICATIONS: {
286
295
  share: z.ZodOptional<z.ZodNumber>;
287
296
  }, z.core.$strict>>;
288
297
  }, z.core.$strict>>;
298
+ readonly "jobs/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
299
+ job: z.ZodObject<{
300
+ id: z.ZodString;
301
+ about: z.ZodObject<{
302
+ kind: z.ZodEnum<{
303
+ studio: "studio";
304
+ project: "project";
305
+ agent: "agent";
306
+ piece: "piece";
307
+ plugin: "plugin";
308
+ skill: "skill";
309
+ website: "website";
310
+ }>;
311
+ id: z.ZodString;
312
+ }, z.core.$strict>;
313
+ what: z.ZodEnum<{
314
+ update: "update";
315
+ install: "install";
316
+ start: "start";
317
+ download: "download";
318
+ wake: "wake";
319
+ export: "export";
320
+ publish: "publish";
321
+ }>;
322
+ name: z.ZodOptional<z.ZodString>;
323
+ state: z.ZodEnum<{
324
+ failed: "failed";
325
+ running: "running";
326
+ paused: "paused";
327
+ queued: "queued";
328
+ done: "done";
329
+ cancelled: "cancelled";
330
+ }>;
331
+ completed: z.ZodNumber;
332
+ total: z.ZodOptional<z.ZodNumber>;
333
+ unit: z.ZodEnum<{
334
+ files: "files";
335
+ share: "share";
336
+ bytes: "bytes";
337
+ }>;
338
+ left: z.ZodOptional<z.ZodNumber>;
339
+ stalled: z.ZodOptional<z.ZodBoolean>;
340
+ step: z.ZodOptional<z.ZodEnum<{
341
+ "first-setup": "first-setup";
342
+ }>>;
343
+ cancellable: z.ZodBoolean;
344
+ pausable: z.ZodOptional<z.ZodBoolean>;
345
+ quiet: z.ZodOptional<z.ZodBoolean>;
346
+ retryable: z.ZodBoolean;
347
+ failure: z.ZodOptional<z.ZodObject<{
348
+ reason: z.ZodEnum<{
349
+ other: "other";
350
+ offline: "offline";
351
+ "no-space": "no-space";
352
+ "no-credits": "no-credits";
353
+ unavailable: "unavailable";
354
+ }>;
355
+ details: z.ZodString;
356
+ }, z.core.$strict>>;
357
+ made: z.ZodOptional<z.ZodString>;
358
+ started: z.ZodNumber;
359
+ ended: z.ZodOptional<z.ZodNumber>;
360
+ }, z.core.$strict>;
361
+ item: z.ZodString;
362
+ }, z.core.$strict>>;
289
363
  readonly "files/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
290
364
  watch: z.ZodString;
291
365
  changes: z.ZodArray<z.ZodObject<{
@@ -319,42 +393,62 @@ export declare const HOST_NOTIFICATIONS: {
319
393
  audienceWindow: z.ZodOptional<z.ZodBoolean>;
320
394
  readOnly: z.ZodOptional<z.ZodBoolean>;
321
395
  viewer: z.ZodOptional<z.ZodBoolean>;
322
- place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
323
- t: z.ZodNumber;
324
- }, z.core.$strict>, z.ZodObject<{
325
- slide: z.ZodString;
326
- }, z.core.$strict>]>>;
396
+ place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
327
397
  item: z.ZodObject<{
328
- kind: z.ZodEnum<{
329
- video: "video";
330
- slides: "slides";
331
- doc: "doc";
332
- sheet: "sheet";
333
- scenery: "scenery";
334
- model: "model";
335
- website: "website";
336
- }>;
337
- dir: z.ZodString;
398
+ id: z.ZodString;
399
+ kind: z.ZodOptional<z.ZodString>;
400
+ dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
338
401
  entry: z.ZodString;
402
+ kindInfo: z.ZodObject<{
403
+ noun: z.ZodString;
404
+ icon: z.ZodOptional<z.ZodString>;
405
+ color: z.ZodOptional<z.ZodString>;
406
+ editor: z.ZodOptional<z.ZodString>;
407
+ exports: z.ZodOptional<z.ZodObject<{
408
+ types: z.ZodArray<z.ZodString>;
409
+ extras: z.ZodArray<z.ZodString>;
410
+ options: z.ZodArray<z.ZodObject<{
411
+ name: z.ZodString;
412
+ only: z.ZodArray<z.ZodString>;
413
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
414
+ }, z.core.$strip>>;
415
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
416
+ }, z.core.$strip>>;
417
+ share: z.ZodOptional<z.ZodBoolean>;
418
+ name: z.ZodString;
419
+ }, z.core.$strip>;
339
420
  }, z.core.$strict>;
340
- editor: z.ZodEnum<{
341
- video: "video";
342
- slides: "slides";
343
- doc: "doc";
344
- sheet: "sheet";
345
- scenery: "scenery";
346
- website: "website";
347
- }>;
421
+ editor: z.ZodString;
348
422
  }, z.core.$strict>>;
349
423
  readonly "editor/command": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
350
- command: z.ZodEnum<{
351
- export: "export";
352
- }>;
424
+ command: z.ZodString;
353
425
  open: z.ZodOptional<z.ZodBoolean>;
354
426
  }, z.core.$strict>>;
355
427
  };
356
428
  /** Every method an editor may call on its host. */
357
429
  export declare const EDITOR_HOST_METHODS: {
430
+ readonly "presence/get": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
431
+ collaborators: z.ZodArray<z.ZodObject<{
432
+ doing: z.ZodOptional<z.ZodEnum<{
433
+ looking: "looking";
434
+ editing: "editing";
435
+ }>>;
436
+ item: z.ZodOptional<z.ZodString>;
437
+ place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
438
+ source: z.ZodOptional<z.ZodObject<{
439
+ path: z.ZodString;
440
+ from: z.ZodOptional<z.ZodInt>;
441
+ to: z.ZodOptional<z.ZodInt>;
442
+ }, z.core.$strict>>;
443
+ id: z.ZodString;
444
+ kind: z.ZodEnum<{
445
+ person: "person";
446
+ agent: "agent";
447
+ }>;
448
+ name: z.ZodString;
449
+ at: z.ZodNumber;
450
+ }, z.core.$strict>>;
451
+ }, z.core.$strict>>;
358
452
  readonly "host/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
359
453
  locale: z.ZodString;
360
454
  theme: z.ZodEnum<{
@@ -373,32 +467,32 @@ export declare const EDITOR_HOST_METHODS: {
373
467
  audienceWindow: z.ZodOptional<z.ZodBoolean>;
374
468
  readOnly: z.ZodOptional<z.ZodBoolean>;
375
469
  viewer: z.ZodOptional<z.ZodBoolean>;
376
- place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
377
- t: z.ZodNumber;
378
- }, z.core.$strict>, z.ZodObject<{
379
- slide: z.ZodString;
380
- }, z.core.$strict>]>>;
470
+ place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
381
471
  item: z.ZodObject<{
382
- kind: z.ZodEnum<{
383
- video: "video";
384
- slides: "slides";
385
- doc: "doc";
386
- sheet: "sheet";
387
- scenery: "scenery";
388
- model: "model";
389
- website: "website";
390
- }>;
391
- dir: z.ZodString;
472
+ id: z.ZodString;
473
+ kind: z.ZodOptional<z.ZodString>;
474
+ dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
392
475
  entry: z.ZodString;
476
+ kindInfo: z.ZodObject<{
477
+ noun: z.ZodString;
478
+ icon: z.ZodOptional<z.ZodString>;
479
+ color: z.ZodOptional<z.ZodString>;
480
+ editor: z.ZodOptional<z.ZodString>;
481
+ exports: z.ZodOptional<z.ZodObject<{
482
+ types: z.ZodArray<z.ZodString>;
483
+ extras: z.ZodArray<z.ZodString>;
484
+ options: z.ZodArray<z.ZodObject<{
485
+ name: z.ZodString;
486
+ only: z.ZodArray<z.ZodString>;
487
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
488
+ }, z.core.$strip>>;
489
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
490
+ }, z.core.$strip>>;
491
+ share: z.ZodOptional<z.ZodBoolean>;
492
+ name: z.ZodString;
493
+ }, z.core.$strip>;
393
494
  }, z.core.$strict>;
394
- editor: z.ZodEnum<{
395
- video: "video";
396
- slides: "slides";
397
- doc: "doc";
398
- sheet: "sheet";
399
- scenery: "scenery";
400
- website: "website";
401
- }>;
495
+ editor: z.ZodString;
402
496
  }, z.core.$strict>>;
403
497
  readonly "items/open": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
404
498
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -434,18 +528,24 @@ export declare const EDITOR_HOST_METHODS: {
434
528
  failed: "failed";
435
529
  running: "running";
436
530
  idle: "idle";
437
- done: "done";
438
531
  queued: "queued";
532
+ done: "done";
439
533
  }>;
440
534
  percent: z.ZodOptional<z.ZodNumber>;
441
535
  open: z.ZodOptional<z.ZodBoolean>;
442
536
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
537
+ readonly "agent/here": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
538
+ agent: z.ZodOptional<z.ZodObject<{
539
+ name: z.ZodString;
540
+ doing: z.ZodEnum<{
541
+ looking: "looking";
542
+ editing: "editing";
543
+ }>;
544
+ }, z.core.$strict>>;
545
+ following: z.ZodBoolean;
546
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
443
547
  readonly "editor/place": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
444
- place: z.ZodUnion<readonly [z.ZodObject<{
445
- t: z.ZodNumber;
446
- }, z.core.$strict>, z.ZodObject<{
447
- slide: z.ZodString;
448
- }, z.core.$strict>]>;
548
+ place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
449
549
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
450
550
  readonly "agent/ask": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
451
551
  text: z.ZodString;
@@ -543,7 +643,7 @@ export declare const EDITOR_HOST_METHODS: {
543
643
  };
544
644
  /** What an editor holds: its host, as typed calls. */
545
645
  export type EditorHost = ClientOf<typeof EDITOR_HOST_METHODS> & {
546
- /** Tells `files/changed`, `host/context-changed` and the tools' notifications; answers how to stop. */
646
+ /** Tells `files/changed`, `host/context-changed`, `presence/changed` and the tools' notifications; answers how to stop. */
547
647
  on<N extends keyof typeof HOST_NOTIFICATIONS>(name: N, listener: (params: z.output<(typeof HOST_NOTIFICATIONS)[N]["params"]>) => void): () => void;
548
648
  /** Gives the host what it asks of the editor for a person's notes; answers how to stop. Absent where nobody takes notes. */
549
649
  notes?(surface: NoteSurface): () => void;
@@ -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 t}from"zod";import{EDITORS as i,KINDS as c}from"@allyhub/formats";import{FILE_METHODS as h,FILE_NOTIFICATIONS as l,PathSchema as n}from"./files.js";import{method as e,notification as a}from"./jsonrpc.js";import{NoteRectSchema as m}from"./notes.js";import{TOOL_NOTIFICATIONS as p}from"./tools.js";export const ThemeSchema=t.enum(["light","dark"]),PlaceSchema=t.union([t.strictObject({t:t.number().nonnegative()}),t.strictObject({slide:t.string().min(1)})]),PLACE_PARAMS=["t","slide"];export function placeParams(o){return o===void 0?{}:"t"in o?{t:String(Math.round(o.t*1e3)/1e3)}:{slide:o.slide}}export function placeIn(o){const s=o.get("t"),r=PlaceSchema.safeParse(s!==null?{t:Number(s)}:{slide:o.get("slide")});return r.success?r.data:void 0}export const HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),readOnly:t.boolean().optional(),viewer:t.boolean().optional(),place:PlaceSchema.optional(),item:t.strictObject({kind:t.enum(c),dir:n,entry:n}),editor:t.enum(i)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:n,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"editor/place":e(t.strictObject({place:PlaceSchema}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`)."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:m.optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Note mode on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person tried to change what a read-only host shows (`readOnly`): the host offers to wake the machine that changes it; false where nothing does."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":a(HostContextSchema,"The language, theme or agent changed."),"editor/command":a(t.strictObject({command:t.enum(["export"]),open:t.boolean().optional()}),"The host around the editor asked it to do what its own shortcut does."),...l,...p},EDITOR_HOST_METHODS={...h,...HOST_METHODS};
2
+ import{z as t}from"zod";import{FILE_METHODS as r,FILE_NOTIFICATIONS as a,FolderSchema as i,PathSchema as o}from"./files.js";import{method as e,notification as n}from"./jsonrpc.js";import{KindInfoSchema as h}from"./kinds.js";import{NoteRectSchema as c}from"./notes.js";import{PlaceSchema as s}from"./place.js";import{AgentHereSchema as l,PRESENCE_METHODS as m,PRESENCE_NOTIFICATIONS as p}from"./presence.js";import{TOOL_NOTIFICATIONS as d}from"./tools.js";export{PLACE_PARAM,PlaceSchema,placeIn,placeParams}from"./place.js";export const ThemeSchema=t.enum(["light","dark"]),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),readOnly:t.boolean().optional(),viewer:t.boolean().optional(),place:s.optional(),item:t.strictObject({id:o,kind:t.string().min(1).optional(),dir:i,entry:o,kindInfo:h}),editor:t.string().min(1)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"agent/here":e(l,t.strictObject({}),"Says whether the project's agent is in the item and what it does there, and whether the editor follows it, for a host that draws the agent's name itself (HostContext's `commands`); the host's button asks back with `editor/command`'s `follow` or `unfollow`."),"editor/place":e(t.strictObject({place:s}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`). The place is the editor's, in the shape its `editors` contribution's schema says; the host keeps it unread."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:c.optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Note mode on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person tried to change what a read-only host shows (`readOnly`): the host offers to wake the machine that changes it; false where nothing does."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":n(HostContextSchema,"The language, theme or agent changed."),"editor/command":n(t.strictObject({command:t.string().min(1),open:t.boolean().optional()}),"The host around the editor asked it to run a command: what its own shortcut does (Export, ⌘E), or a command its extension contributes."),...a,...d,...p},EDITOR_HOST_METHODS={...r,...HOST_METHODS,...m};
@@ -1,6 +1,8 @@
1
1
  import { z } from "zod";
2
2
  /** A project path: forward slashes, inside the project, no `..`. */
3
3
  export declare const PathSchema: z.ZodString;
4
+ /** A folder of the project: a path, or "" for its root. */
5
+ export declare const FolderSchema: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
4
6
  /** The sha256 of a file's bytes, or null for a file that is not there. */
5
7
  export declare const VersionSchema: z.ZodNullable<z.ZodString>;
6
8
  /** Who changed a file, when the host knows. */
@@ -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 t}from"zod";import{method as e,notification as r}from"./jsonrpc.js";export const PathSchema=t.string().min(1).refine(i=>!i.startsWith("/")&&!i.split("/").includes(".."),{message:"A path is inside the project."}),VersionSchema=t.string().regex(/^[0-9a-f]{64}$/u).nullable(),WriterSchema=t.strictObject({kind:t.enum(["person","agent","tool"]),name:t.string().min(1)});const s=t.strictObject({path:PathSchema,size:t.int().nonnegative(),modified:t.number()});export const FILE_METHODS={"files/read":e(t.strictObject({path:PathSchema}),t.strictObject({text:t.string(),version:VersionSchema}),"A text file, with its version; a file that is not there reads as empty with version null."),"files/write":e(t.strictObject({path:PathSchema,text:t.string(),over:VersionSchema}),t.strictObject({version:VersionSchema}),"Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it."),"files/upload":e(t.strictObject({dir:PathSchema,name:t.string().min(1),data:t.base64()}),t.strictObject({path:PathSchema}),"Keeps a file the person added, under a free name in the folder."),"files/url":e(t.strictObject({path:PathSchema}),t.strictObject({url:t.string()}),"An address a page can load the file from (a picture, a video)."),"files/list":e(t.strictObject({dir:t.string()}),t.strictObject({files:t.array(s),dirs:t.array(PathSchema)}),"A folder's files and folders, as on disk."),"files/move":e(t.strictObject({from:PathSchema,to:PathSchema}),t.strictObject({rewritten:t.array(PathSchema)}),"Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does."),"files/remove":e(t.strictObject({path:PathSchema}),t.strictObject({trash:t.string()}),"Moves a file or folder to the recycle bin (nothing is deleted)."),"files/trash":e(t.strictObject({}),t.strictObject({entries:t.array(t.strictObject({id:t.string(),path:PathSchema,removed:t.number()}))}),"What the recycle bin holds."),"files/restore":e(t.strictObject({id:t.string()}),t.strictObject({path:PathSchema}),"Puts a removed thing back where it was; refused while something is there."),"files/watch":e(t.strictObject({paths:t.array(PathSchema).min(1)}),t.strictObject({watch:t.string()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":e(t.strictObject({watch:t.string()}),t.strictObject({}),"Stops a watch.")},FILE_NOTIFICATIONS={"files/changed":r(t.strictObject({watch:t.string(),changes:t.array(t.strictObject({path:PathSchema,version:VersionSchema,by:WriterSchema.optional()}))}),"Files under a watch changed, other than by this client's own writes.")};
2
+ import{z as t}from"zod";import{method as e,notification as r}from"./jsonrpc.js";export const PathSchema=t.string().min(1).refine(i=>!i.startsWith("/")&&!i.split("/").includes(".."),{message:"A path is inside the project."}),FolderSchema=t.union([t.literal(""),PathSchema]),VersionSchema=t.string().regex(/^[0-9a-f]{64}$/u).nullable(),WriterSchema=t.strictObject({kind:t.enum(["person","agent","tool"]),name:t.string().min(1)});const s=t.strictObject({path:PathSchema,size:t.int().nonnegative(),modified:t.number()});export const FILE_METHODS={"files/read":e(t.strictObject({path:PathSchema}),t.strictObject({text:t.string(),version:VersionSchema}),"A text file, with its version; a file that is not there reads as empty with version null."),"files/write":e(t.strictObject({path:PathSchema,text:t.string(),over:VersionSchema}),t.strictObject({version:VersionSchema}),"Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it."),"files/upload":e(t.strictObject({dir:PathSchema,name:t.string().min(1),data:t.base64()}),t.strictObject({path:PathSchema}),"Keeps a file the person added, under a free name in the folder."),"files/url":e(t.strictObject({path:PathSchema}),t.strictObject({url:t.string()}),"An address a page can load the file from (a picture, a video)."),"files/list":e(t.strictObject({dir:t.string()}),t.strictObject({files:t.array(s),dirs:t.array(PathSchema)}),"A folder's files and folders, as on disk."),"files/move":e(t.strictObject({from:PathSchema,to:PathSchema}),t.strictObject({rewritten:t.array(PathSchema)}),"Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does."),"files/remove":e(t.strictObject({path:PathSchema}),t.strictObject({trash:t.string()}),"Moves a file or folder to the recycle bin (nothing is deleted)."),"files/trash":e(t.strictObject({}),t.strictObject({entries:t.array(t.strictObject({id:t.string(),path:PathSchema,removed:t.number()}))}),"What the recycle bin holds."),"files/restore":e(t.strictObject({id:t.string()}),t.strictObject({path:PathSchema}),"Puts a removed thing back where it was; refused while something is there."),"files/watch":e(t.strictObject({paths:t.array(PathSchema).min(1)}),t.strictObject({watch:t.string()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":e(t.strictObject({watch:t.string()}),t.strictObject({}),"Stops a watch.")},FILE_NOTIFICATIONS={"files/changed":r(t.strictObject({watch:t.string(),changes:t.array(t.strictObject({path:PathSchema,version:VersionSchema,by:WriterSchema.optional()}))}),"Files under a watch changed, other than by this client's own writes.")};
@@ -56,6 +56,15 @@ export declare const FRAME_METHODS: {
56
56
  endLine: z.ZodOptional<z.ZodInt>;
57
57
  }, z.core.$strict>>;
58
58
  text: z.ZodOptional<z.ZodString>;
59
+ regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ in: z.ZodString;
61
+ file: z.ZodOptional<z.ZodString>;
62
+ width: z.ZodNumber;
63
+ height: z.ZodNumber;
64
+ path: z.ZodString;
65
+ area: z.ZodBoolean;
66
+ scale: z.ZodNumber;
67
+ }, z.core.$strict>>>;
59
68
  }, z.core.$strict>>;
60
69
  where: z.ZodOptional<z.ZodString>;
61
70
  }, z.core.$strict>>;
@@ -129,9 +138,7 @@ export declare const WINDOW_NOTIFICATIONS: {
129
138
  nudge: z.ZodBoolean;
130
139
  }, z.core.$strict>>;
131
140
  readonly "editor/command": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
132
- command: z.ZodEnum<{
133
- export: "export";
134
- }>;
141
+ command: z.ZodString;
135
142
  open: z.ZodOptional<z.ZodBoolean>;
136
143
  }, z.core.$strict>>;
137
144
  };
@@ -260,19 +267,15 @@ export declare const FRAME_NOTIFICATIONS: {
260
267
  readonly "edit/request": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
261
268
  readonly "editor/place": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
262
269
  item: z.ZodString;
263
- place: z.ZodUnion<readonly [z.ZodObject<{
264
- t: z.ZodNumber;
265
- }, z.core.$strict>, z.ZodObject<{
266
- slide: z.ZodString;
267
- }, z.core.$strict>]>;
270
+ place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
268
271
  }, z.core.$strict>>;
269
272
  readonly "export/state": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
270
273
  at: z.ZodEnum<{
271
274
  failed: "failed";
272
275
  running: "running";
273
276
  idle: "idle";
274
- done: "done";
275
277
  queued: "queued";
278
+ done: "done";
276
279
  }>;
277
280
  percent: z.ZodOptional<z.ZodNumber>;
278
281
  open: z.ZodOptional<z.ZodBoolean>;
@@ -286,5 +289,15 @@ export declare const FRAME_NOTIFICATIONS: {
286
289
  }>;
287
290
  message: z.ZodOptional<z.ZodString>;
288
291
  }, z.core.$strict>>;
292
+ readonly "agent/here": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
293
+ agent: z.ZodOptional<z.ZodObject<{
294
+ name: z.ZodString;
295
+ doing: z.ZodEnum<{
296
+ looking: "looking";
297
+ editing: "editing";
298
+ }>;
299
+ }, z.core.$strict>>;
300
+ following: z.ZodBoolean;
301
+ }, z.core.$strict>>;
289
302
  };
290
303
  //# sourceMappingURL=frame.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{EDITOR_STATES as a,ExportStateSchema as i,PlaceSchema as c}from"./editor.js";import{PathSchema as h}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{AnchoredShapeSchema as m,HeldSchema as p,NoteElementSchema as d,NotePictureSchema as l,NoteRectSchema as r,NotePlacementSchema as g,NotePlacementsSchema as s,NotePointSchema as w}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({}),p,"Holds what moves by itself and starts catching presses for Note mode; says what is on show."),"note/locate":o(e.strictObject({mark:m}),e.strictObject({elements:e.array(d),where:e.string().optional()}),"What a mark is on, while it is on show. Empty is an answer: the mark's place still goes."),"note/pictures":o(e.strictObject({anchors:e.array(e.string().min(1)),region:e.strictObject({anchor:e.string().min(1),rect:r}).optional()}),e.strictObject({pictures:e.array(l),placements:s}),"The page as it shows now, drawn without the window's marks, and what its editor draws better, each at its rect."),"note/where":o(e.strictObject({anchors:e.array(e.string().min(1))}),e.strictObject({placements:s}),"Where anchors are now, which the page goes on telling as they move."),"note/show":o(e.strictObject({anchor:e.string().min(1),at:w}),e.strictObject({shown:e.boolean()}),"Brings a point of an anchor back on show: scrolls to it, turns to its slide, goes to its moment."),"note/release":o(e.strictObject({}),e.strictObject({}),"Note mode is over: presses go to the editor again. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"note/mode":t(e.strictObject({catch:e.boolean(),cursor:e.string().min(1),nudge:e.boolean()}),"How the page treats input while Note mode holds it."),"editor/command":t(e.strictObject({command:e.enum(["export"]),open:e.boolean().optional()}),"A shortcut the window took, or its header's Export, for the editor to do as its own.")};const n={shift:e.boolean(),alt:e.boolean(),meta:e.boolean(),ctrl:e.boolean()};export const NoteInputSchema=e.strictObject({type:e.enum(["down","move","up","cancel","double"]),x:e.number(),y:e.number(),buttons:e.int().nonnegative(),...n,anchor:e.strictObject({id:e.string().min(1),placement:g}).optional()}),NoteKeySchema=e.strictObject({type:e.enum(["down","up"]),key:e.string(),code:e.string(),repeat:e.boolean(),...n}),FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"note/input":t(e.strictObject({events:e.array(NoteInputSchema).min(1)}),"Presses the page caught while Note mode holds it, in order; a pen's moves come together."),"note/key":t(NoteKeySchema,"A key the page caught while held."),"note/moved":t(e.strictObject({placements:s}),"Anchors that moved, and where they are now: once a frame at most, only those the page has named."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:r.optional()}),"The person asked for Note mode from the editor (Mark up); `from` is what they pressed, in the page's viewport, for the bar to come out of."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person tried to change what a read-only page shows, or the page needs the machine: the window offers to wake it."),"editor/place":t(e.strictObject({item:h,place:c}),"Where the person is in an item, so the window opens it there again."),"export/state":t(i,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(a),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header.")};
2
+ import{z as e}from"zod";import{EDITOR_STATES as a,ExportStateSchema as i,PlaceSchema as c}from"./editor.js";import{AgentHereSchema as h}from"./presence.js";import{PathSchema as m}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{AnchoredShapeSchema as d,HeldSchema as p,NoteElementSchema as l,NotePictureSchema as w,NoteRectSchema as r,NotePlacementSchema as g,NotePlacementsSchema as s,NotePointSchema as b}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({}),p,"Holds what moves by itself and starts catching presses for Note mode; says what is on show."),"note/locate":o(e.strictObject({mark:d}),e.strictObject({elements:e.array(l),where:e.string().optional()}),"What a mark is on, while it is on show. Empty is an answer: the mark's place still goes."),"note/pictures":o(e.strictObject({anchors:e.array(e.string().min(1)),region:e.strictObject({anchor:e.string().min(1),rect:r}).optional()}),e.strictObject({pictures:e.array(w),placements:s}),"The page as it shows now, drawn without the window's marks, and what its editor draws better, each at its rect."),"note/where":o(e.strictObject({anchors:e.array(e.string().min(1))}),e.strictObject({placements:s}),"Where anchors are now, which the page goes on telling as they move."),"note/show":o(e.strictObject({anchor:e.string().min(1),at:b}),e.strictObject({shown:e.boolean()}),"Brings a point of an anchor back on show: scrolls to it, turns to its slide, goes to its moment."),"note/release":o(e.strictObject({}),e.strictObject({}),"Note mode is over: presses go to the editor again. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"note/mode":t(e.strictObject({catch:e.boolean(),cursor:e.string().min(1),nudge:e.boolean()}),"How the page treats input while Note mode holds it."),"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own.")};const n={shift:e.boolean(),alt:e.boolean(),meta:e.boolean(),ctrl:e.boolean()};export const NoteInputSchema=e.strictObject({type:e.enum(["down","move","up","cancel","double"]),x:e.number(),y:e.number(),buttons:e.int().nonnegative(),...n,anchor:e.strictObject({id:e.string().min(1),placement:g}).optional()}),NoteKeySchema=e.strictObject({type:e.enum(["down","up"]),key:e.string(),code:e.string(),repeat:e.boolean(),...n}),FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"note/input":t(e.strictObject({events:e.array(NoteInputSchema).min(1)}),"Presses the page caught while Note mode holds it, in order; a pen's moves come together."),"note/key":t(NoteKeySchema,"A key the page caught while held."),"note/moved":t(e.strictObject({placements:s}),"Anchors that moved, and where they are now: once a frame at most, only those the page has named."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:r.optional()}),"The person asked for Note mode from the editor (Mark up); `from` is what they pressed, in the page's viewport, for the bar to come out of."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person tried to change what a read-only page shows, or the page needs the machine: the window offers to wake it."),"editor/place":t(e.strictObject({item:m,place:c}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"export/state":t(i,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(a),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(h,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ /** A picture: WebP unless said. */
3
+ export declare const ImageSchema: z.ZodObject<{
4
+ mime: z.ZodString;
5
+ data: z.ZodBase64;
6
+ }, z.core.$strict>;
7
+ export type Image = z.infer<typeof ImageSchema>;
8
+ //# sourceMappingURL=image.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{z as e}from"zod";export const ImageSchema=e.strictObject({mime:e.string().regex(/^image\//u),data:e.base64()});