@allyhub/sdk 0.8.0 → 0.10.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 (497) hide show
  1. package/CHANGELOG.md +19 -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 +4 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  33. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  34. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  36. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  38. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  42. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  48. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  50. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  52. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  58. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  95. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  96. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  100. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  101. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  102. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  104. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  105. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  106. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  117. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  120. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  127. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  128. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  129. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  131. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  133. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  135. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  137. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  142. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  143. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  144. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  146. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  147. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  148. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  150. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  151. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  152. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  153. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  154. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  156. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  166. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  168. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  176. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  178. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  179. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  180. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  183. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  185. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  186. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  187. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  189. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  190. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  191. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  194. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  198. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  200. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  202. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  204. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  206. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  210. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  211. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  216. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  217. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  225. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  228. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  229. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  230. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  232. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  234. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  235. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  236. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  237. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  239. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  240. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  243. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  244. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  245. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  247. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  248. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  249. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  250. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  251. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  252. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  253. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  254. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  257. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  259. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
  262. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
  284. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  287. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  288. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  289. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  291. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
  293. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  294. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
  295. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  297. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  304. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
  305. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  306. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  307. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
  308. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  309. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  310. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
  311. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  312. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  322. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  323. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  325. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  327. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  330. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  331. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  350. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  353. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  354. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  356. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  357. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  358. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  359. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  360. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  361. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  362. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  363. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  364. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  365. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  366. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  367. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  368. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  369. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  370. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  371. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  372. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  373. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  376. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
  377. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  378. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  379. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
  380. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  381. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  382. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  383. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  384. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  385. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  386. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  387. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  388. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  391. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  392. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  393. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  394. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  396. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  397. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  398. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  399. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  400. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  401. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  402. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  403. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  404. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  405. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  406. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  407. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  408. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  409. package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
  410. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  411. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  412. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  417. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  418. package/dist/scenery.d.ts +1 -1
  419. package/dist/scenery.js +1 -1
  420. package/dist/sheets.d.ts +1 -1
  421. package/dist/sheets.js +1 -1
  422. package/dist/slides.d.ts +1 -9
  423. package/dist/slides.js +1 -1
  424. package/docs/README.md +10 -6
  425. package/docs/batches.md +5 -5
  426. package/docs/canvas.md +28 -0
  427. package/docs/contract.md +2 -2
  428. package/docs/defaults.md +298 -22
  429. package/docs/docs.md +80 -66
  430. package/docs/footage.md +7 -7
  431. package/docs/image.md +165 -0
  432. package/docs/layers.md +22 -13
  433. package/docs/modeling.md +4 -4
  434. package/docs/pictures.md +65 -0
  435. package/docs/project.md +51 -31
  436. package/docs/scenery.md +14 -15
  437. package/docs/sheets.md +46 -28
  438. package/docs/slides.md +121 -67
  439. package/docs/sound.md +3 -3
  440. package/docs/speech.md +8 -8
  441. package/docs/video.md +16 -13
  442. package/docs/websites.md +4 -4
  443. package/docs/x.md +73 -0
  444. package/package.json +7 -2
  445. package/dist/define.js +0 -2
  446. package/dist/free.js +0 -2
  447. package/dist/input.js +0 -2
  448. package/dist/module.js +0 -2
  449. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  450. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  451. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  452. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  453. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  454. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  455. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  456. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  457. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  458. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  459. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  460. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  461. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  462. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  463. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  464. package/dist/parts.js +0 -2
  465. package/dist/phone.js +0 -2
  466. package/dist/piece.js +0 -2
  467. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  468. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  469. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  470. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  471. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  472. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  473. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  474. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  475. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  476. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  477. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  478. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  479. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  480. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  481. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  482. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  483. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  484. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  485. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  486. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  487. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  488. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  489. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  490. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  491. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  492. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  493. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  494. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  495. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  496. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  497. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -1,30 +1,11 @@
1
1
  import { z } from "zod";
2
2
  import { type ClientOf } from "./jsonrpc.js";
3
- import { type NoteSurface } from "./notes.js";
3
+ import { type NoteInset, 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<{
238
+ off: "off";
229
239
  failed: "failed";
230
240
  running: "running";
231
- off: "off";
232
- waiting: "waiting";
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,9 +643,11 @@ 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;
650
+ /** Gives the host a box of the page that draws itself and answers for its marks; answers how to stop. Absent where nobody takes notes. */
651
+ noteInset?(inset: NoteInset): () => void;
550
652
  };
551
653
  //# sourceMappingURL=editor.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 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 Mark up 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.")};