@allyhub/sdk 0.1.0-alpha.8 → 0.2.0-next.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 (370) hide show
  1. package/NOTICE +85 -0
  2. package/client.d.ts +45 -1
  3. package/dist/anim.js +2 -75
  4. package/dist/define.d.ts +10 -4
  5. package/dist/define.js +2 -95
  6. package/dist/dom.d.ts +1 -1
  7. package/dist/dom.js +2 -457
  8. package/dist/fit.js +2 -60
  9. package/dist/free.d.ts +18 -0
  10. package/dist/free.js +2 -0
  11. package/dist/index.d.ts +28 -13
  12. package/dist/index.js +2 -11
  13. package/dist/input.d.ts +306 -0
  14. package/dist/input.js +2 -0
  15. package/dist/media.d.ts +3 -6
  16. package/dist/media.js +2 -27
  17. package/dist/messages.d.ts +3 -2
  18. package/dist/messages.js +2 -2
  19. package/dist/module.d.ts +24 -0
  20. package/dist/module.js +2 -0
  21. package/dist/noise.js +2 -233
  22. package/dist/parts.d.ts +97 -21
  23. package/dist/parts.js +2 -414
  24. package/dist/paths.d.ts +1 -1
  25. package/dist/paths.js +2 -720
  26. package/dist/phone.d.ts +26 -0
  27. package/dist/phone.js +2 -0
  28. package/dist/piece.d.ts +106 -35
  29. package/dist/piece.js +2 -38
  30. package/dist/props.d.ts +1 -1
  31. package/dist/props.js +2 -35
  32. package/dist/scenery.d.ts +2 -0
  33. package/dist/scenery.js +2 -0
  34. package/dist/text.js +2 -38
  35. package/dist/written.d.ts +12 -0
  36. package/dist/written.js +2 -0
  37. package/docs/README.md +18 -0
  38. package/docs/batches.md +148 -0
  39. package/docs/contract.md +51 -0
  40. package/docs/defaults.md +703 -0
  41. package/docs/docs.md +148 -0
  42. package/docs/footage.md +249 -0
  43. package/docs/layers.md +317 -0
  44. package/docs/modeling.md +143 -0
  45. package/docs/project.md +265 -0
  46. package/docs/scenery.md +308 -0
  47. package/docs/sheets.md +119 -0
  48. package/docs/slides.md +111 -0
  49. package/docs/sound.md +170 -0
  50. package/docs/speech.md +289 -0
  51. package/docs/video.md +265 -0
  52. package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
  53. package/node_modules/@allyhub-next/audio/dist/at-cut.js +2 -0
  54. package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
  55. package/node_modules/@allyhub-next/audio/dist/decode.js +2 -0
  56. package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
  57. package/node_modules/@allyhub-next/audio/dist/envelope.js +2 -0
  58. package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
  59. package/node_modules/@allyhub-next/audio/dist/index.js +2 -0
  60. package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
  61. package/node_modules/@allyhub-next/audio/dist/levels.js +2 -0
  62. package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
  63. package/node_modules/@allyhub-next/audio/dist/master.js +2 -0
  64. package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
  65. package/node_modules/@allyhub-next/audio/dist/music.js +2 -0
  66. package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
  67. package/node_modules/@allyhub-next/audio/dist/node/decode.js +2 -0
  68. package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
  69. package/node_modules/@allyhub-next/audio/dist/node/ebur128.js +2 -0
  70. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
  71. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +2 -0
  72. package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
  73. package/node_modules/@allyhub-next/audio/dist/node/index.js +2 -0
  74. package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
  75. package/node_modules/@allyhub-next/audio/dist/node/loudness.js +2 -0
  76. package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
  77. package/node_modules/@allyhub-next/audio/dist/node/master.js +2 -0
  78. package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
  79. package/node_modules/@allyhub-next/audio/dist/node/measure.js +2 -0
  80. package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
  81. package/node_modules/@allyhub-next/audio/dist/node/mix.js +2 -0
  82. package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
  83. package/node_modules/@allyhub-next/audio/dist/plan.js +2 -0
  84. package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
  85. package/node_modules/@allyhub-next/audio/dist/recorded.js +2 -0
  86. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
  87. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.js +2 -0
  88. package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
  89. package/node_modules/@allyhub-next/audio/dist/recording/chain.js +2 -0
  90. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
  91. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.js +2 -0
  92. package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
  93. package/node_modules/@allyhub-next/audio/dist/recording/fft.js +2 -0
  94. package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
  95. package/node_modules/@allyhub-next/audio/dist/recording/filters.js +2 -0
  96. package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
  97. package/node_modules/@allyhub-next/audio/dist/recording/fit.js +2 -0
  98. package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
  99. package/node_modules/@allyhub-next/audio/dist/recording/index.js +2 -0
  100. package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
  101. package/node_modules/@allyhub-next/audio/dist/recording/loudness.js +2 -0
  102. package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
  103. package/node_modules/@allyhub-next/audio/dist/recording/measure.js +2 -0
  104. package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
  105. package/node_modules/@allyhub-next/audio/dist/recording/mic.js +2 -0
  106. package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
  107. package/node_modules/@allyhub-next/audio/dist/recording/noise.js +2 -0
  108. package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
  109. package/node_modules/@allyhub-next/audio/dist/recording/presets.js +2 -0
  110. package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
  111. package/node_modules/@allyhub-next/audio/dist/recording/room.js +2 -0
  112. package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
  113. package/node_modules/@allyhub-next/audio/dist/recording/setup.js +2 -0
  114. package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
  115. package/node_modules/@allyhub-next/audio/dist/recording/vec.js +2 -0
  116. package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
  117. package/node_modules/@allyhub-next/audio/dist/render.js +2 -0
  118. package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
  119. package/node_modules/@allyhub-next/audio/dist/sfx.js +2 -0
  120. package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
  121. package/node_modules/@allyhub-next/audio/dist/shape.js +2 -0
  122. package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
  123. package/node_modules/@allyhub-next/audio/dist/voice.js +2 -0
  124. package/node_modules/@allyhub-next/audio/package.json +17 -0
  125. package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
  126. package/node_modules/@allyhub-next/formats/dist/data/comments.js +2 -0
  127. package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
  128. package/node_modules/@allyhub-next/formats/dist/data/config.js +2 -0
  129. package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
  130. package/node_modules/@allyhub-next/formats/dist/data/edits.js +2 -0
  131. package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
  132. package/node_modules/@allyhub-next/formats/dist/data/elements.js +2 -0
  133. package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
  134. package/node_modules/@allyhub-next/formats/dist/data/faces.js +2 -0
  135. package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
  136. package/node_modules/@allyhub-next/formats/dist/data/file.js +2 -0
  137. package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
  138. package/node_modules/@allyhub-next/formats/dist/data/gen.js +2 -0
  139. package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
  140. package/node_modules/@allyhub-next/formats/dist/data/messages.js +2 -0
  141. package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
  142. package/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
  143. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
  144. package/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
  145. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
  146. package/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
  147. package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
  148. package/node_modules/@allyhub-next/formats/dist/data/words.js +2 -0
  149. package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
  150. package/node_modules/@allyhub-next/formats/dist/index.js +2 -0
  151. package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
  152. package/node_modules/@allyhub-next/formats/dist/items.js +2 -0
  153. package/node_modules/@allyhub-next/formats/dist/layout.d.ts +50 -0
  154. package/node_modules/@allyhub-next/formats/dist/layout.js +5 -0
  155. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
  156. package/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
  157. package/node_modules/@allyhub-next/formats/package.json +14 -0
  158. package/node_modules/@allyhub-next/formats/schemas/comments.schema.json +152 -0
  159. package/node_modules/@allyhub-next/formats/schemas/config.schema.json +43 -0
  160. package/node_modules/@allyhub-next/formats/schemas/edits.schema.json +112 -0
  161. package/node_modules/@allyhub-next/formats/schemas/elements.schema.json +33 -0
  162. package/node_modules/@allyhub-next/formats/schemas/gen.schema.json +97 -0
  163. package/node_modules/@allyhub-next/formats/schemas/interpretation.schema.json +125 -0
  164. package/node_modules/@allyhub-next/formats/schemas/items.json +75 -0
  165. package/node_modules/@allyhub-next/formats/schemas/messages.schema.json +11 -0
  166. package/node_modules/@allyhub-next/formats/schemas/script.schema.json +162 -0
  167. package/node_modules/@allyhub-next/formats/schemas/sheet.schema.json +395 -0
  168. package/node_modules/@allyhub-next/formats/schemas/words.schema.json +63 -0
  169. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
  170. package/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
  171. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
  172. package/node_modules/@allyhub-next/protocol/dist/auth.js +2 -0
  173. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
  174. package/node_modules/@allyhub-next/protocol/dist/cli.js +2 -0
  175. package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +272 -0
  176. package/node_modules/@allyhub-next/protocol/dist/cloud.js +2 -0
  177. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
  178. package/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
  179. package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
  180. package/node_modules/@allyhub-next/protocol/dist/files.js +2 -0
  181. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
  182. package/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
  183. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
  184. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.js +2 -0
  185. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +53 -0
  186. package/node_modules/@allyhub-next/protocol/dist/registry.js +2 -0
  187. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
  188. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
  189. package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
  190. package/node_modules/@allyhub-next/protocol/dist/teams.js +2 -0
  191. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
  192. package/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
  193. package/node_modules/@allyhub-next/protocol/package.json +13 -0
  194. package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
  195. package/node_modules/@allyhub-next/runtimes/dist/bundled.js +2 -0
  196. package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
  197. package/node_modules/@allyhub-next/runtimes/dist/download.js +2 -0
  198. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
  199. package/node_modules/@allyhub-next/runtimes/dist/errors.js +2 -0
  200. package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
  201. package/node_modules/@allyhub-next/runtimes/dist/home.js +2 -0
  202. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
  203. package/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
  204. package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
  205. package/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
  206. package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
  207. package/node_modules/@allyhub-next/runtimes/dist/manifest.js +2 -0
  208. package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
  209. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -0
  210. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  211. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
  212. package/node_modules/@allyhub-next/runtimes/manifest.json +395 -0
  213. package/node_modules/@allyhub-next/runtimes/package.json +14 -0
  214. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +153 -0
  215. package/node_modules/@allyhub-next/scenery/NOTICE +42 -0
  216. package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
  217. package/node_modules/@allyhub-next/scenery/dist/aim.js +2 -0
  218. package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
  219. package/node_modules/@allyhub-next/scenery/dist/bake.js +2 -0
  220. package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
  221. package/node_modules/@allyhub-next/scenery/dist/camera.js +2 -0
  222. package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
  223. package/node_modules/@allyhub-next/scenery/dist/curve.js +2 -0
  224. package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
  225. package/node_modules/@allyhub-next/scenery/dist/define.js +2 -0
  226. package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
  227. package/node_modules/@allyhub-next/scenery/dist/fit.js +2 -0
  228. package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
  229. package/node_modules/@allyhub-next/scenery/dist/glass.js +2 -0
  230. package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
  231. package/node_modules/@allyhub-next/scenery/dist/handheld.js +2 -0
  232. package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
  233. package/node_modules/@allyhub-next/scenery/dist/hull.js +2 -0
  234. package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
  235. package/node_modules/@allyhub-next/scenery/dist/index.js +2 -0
  236. package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
  237. package/node_modules/@allyhub-next/scenery/dist/lens.js +2 -0
  238. package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
  239. package/node_modules/@allyhub-next/scenery/dist/moire.js +93 -0
  240. package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
  241. package/node_modules/@allyhub-next/scenery/dist/motion.js +2 -0
  242. package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
  243. package/node_modules/@allyhub-next/scenery/dist/move.js +2 -0
  244. package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
  245. package/node_modules/@allyhub-next/scenery/dist/noise.js +2 -0
  246. package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
  247. package/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
  248. package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
  249. package/node_modules/@allyhub-next/scenery/dist/report.js +2 -0
  250. package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
  251. package/node_modules/@allyhub-next/scenery/dist/screen-focus.js +2 -0
  252. package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
  253. package/node_modules/@allyhub-next/scenery/dist/screen.js +2 -0
  254. package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
  255. package/node_modules/@allyhub-next/scenery/dist/solve.js +2 -0
  256. package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
  257. package/node_modules/@allyhub-next/scenery/dist/timing.js +2 -0
  258. package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
  259. package/node_modules/@allyhub-next/scenery/dist/vec.js +2 -0
  260. package/node_modules/@allyhub-next/scenery/package.json +13 -0
  261. package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
  262. package/node_modules/@allyhub-next/video-core/dist/anchors.js +2 -0
  263. package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
  264. package/node_modules/@allyhub-next/video-core/dist/audio-types.js +2 -0
  265. package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
  266. package/node_modules/@allyhub-next/video-core/dist/backdrop.js +2 -0
  267. package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
  268. package/node_modules/@allyhub-next/video-core/dist/captions.js +11 -0
  269. package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
  270. package/node_modules/@allyhub-next/video-core/dist/console.js +2 -0
  271. package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
  272. package/node_modules/@allyhub-next/video-core/dist/contrast.js +2 -0
  273. package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
  274. package/node_modules/@allyhub-next/video-core/dist/cut-report.js +2 -0
  275. package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
  276. package/node_modules/@allyhub-next/video-core/dist/edit.js +13 -0
  277. package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
  278. package/node_modules/@allyhub-next/video-core/dist/edits.js +2 -0
  279. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
  280. package/node_modules/@allyhub-next/video-core/dist/export.js +2 -0
  281. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
  282. package/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
  283. package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
  284. package/node_modules/@allyhub-next/video-core/dist/footage-motion.js +2 -0
  285. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
  286. package/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
  287. package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
  288. package/node_modules/@allyhub-next/video-core/dist/gen.js +2 -0
  289. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
  290. package/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
  291. package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
  292. package/node_modules/@allyhub-next/video-core/dist/look.js +2 -0
  293. package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
  294. package/node_modules/@allyhub-next/video-core/dist/marks.js +2 -0
  295. package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
  296. package/node_modules/@allyhub-next/video-core/dist/matrix.js +2 -0
  297. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
  298. package/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
  299. package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
  300. package/node_modules/@allyhub-next/video-core/dist/media.js +2 -0
  301. package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
  302. package/node_modules/@allyhub-next/video-core/dist/messages.js +2 -0
  303. package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
  304. package/node_modules/@allyhub-next/video-core/dist/motion.js +2 -0
  305. package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
  306. package/node_modules/@allyhub-next/video-core/dist/music.js +2 -0
  307. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
  308. package/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
  309. package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
  310. package/node_modules/@allyhub-next/video-core/dist/placement.js +2 -0
  311. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
  312. package/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
  313. package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
  314. package/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
  315. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
  316. package/node_modules/@allyhub-next/video-core/dist/schema.js +2 -0
  317. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
  318. package/node_modules/@allyhub-next/video-core/dist/script-edit.js +2 -0
  319. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
  320. package/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
  321. package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
  322. package/node_modules/@allyhub-next/video-core/dist/seams.js +2 -0
  323. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
  324. package/node_modules/@allyhub-next/video-core/dist/slides.js +2 -0
  325. package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
  326. package/node_modules/@allyhub-next/video-core/dist/sound-under.js +2 -0
  327. package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
  328. package/node_modules/@allyhub-next/video-core/dist/speech.js +5 -0
  329. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
  330. package/node_modules/@allyhub-next/video-core/dist/timeline.js +2 -0
  331. package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
  332. package/node_modules/@allyhub-next/video-core/dist/timing.js +2 -0
  333. package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
  334. package/node_modules/@allyhub-next/video-core/dist/transcript.js +2 -0
  335. package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
  336. package/node_modules/@allyhub-next/video-core/dist/transition.js +2 -0
  337. package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
  338. package/node_modules/@allyhub-next/video-core/dist/voice.js +2 -0
  339. package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
  340. package/node_modules/@allyhub-next/video-core/dist/words.js +2 -0
  341. package/node_modules/@allyhub-next/video-core/package.json +14 -0
  342. package/package.json +52 -41
  343. package/README.md +0 -17
  344. package/dist/anim.d.ts.map +0 -1
  345. package/dist/anim.js.map +0 -1
  346. package/dist/define.d.ts.map +0 -1
  347. package/dist/define.js.map +0 -1
  348. package/dist/dom.d.ts.map +0 -1
  349. package/dist/dom.js.map +0 -1
  350. package/dist/fit.d.ts.map +0 -1
  351. package/dist/fit.js.map +0 -1
  352. package/dist/index.d.ts.map +0 -1
  353. package/dist/index.js.map +0 -1
  354. package/dist/media.d.ts.map +0 -1
  355. package/dist/media.js.map +0 -1
  356. package/dist/messages.d.ts.map +0 -1
  357. package/dist/messages.js.map +0 -1
  358. package/dist/noise.d.ts.map +0 -1
  359. package/dist/noise.js.map +0 -1
  360. package/dist/parts.d.ts.map +0 -1
  361. package/dist/parts.js.map +0 -1
  362. package/dist/paths.d.ts.map +0 -1
  363. package/dist/paths.js.map +0 -1
  364. package/dist/piece.d.ts.map +0 -1
  365. package/dist/piece.js.map +0 -1
  366. package/dist/props.d.ts.map +0 -1
  367. package/dist/props.js.map +0 -1
  368. package/dist/text.d.ts.map +0 -1
  369. package/dist/text.js.map +0 -1
  370. /package/{LICENSE → LICENSE.md} +0 -0
@@ -0,0 +1,405 @@
1
+ import { z } from "zod";
2
+ import { type ClientOf } from "./jsonrpc.js";
3
+ export declare const ThemeSchema: z.ZodEnum<{
4
+ light: "light";
5
+ dark: "dark";
6
+ }>;
7
+ export declare const HostContextSchema: z.ZodObject<{
8
+ locale: z.ZodString;
9
+ theme: z.ZodEnum<{
10
+ light: "light";
11
+ dark: "dark";
12
+ }>;
13
+ agent: z.ZodOptional<z.ZodObject<{
14
+ name: z.ZodString;
15
+ }, z.core.$strict>>;
16
+ project: z.ZodObject<{
17
+ name: z.ZodString;
18
+ }, z.core.$strict>;
19
+ item: z.ZodObject<{
20
+ kind: z.ZodEnum<{
21
+ video: "video";
22
+ slides: "slides";
23
+ doc: "doc";
24
+ sheet: "sheet";
25
+ scenery: "scenery";
26
+ website: "website";
27
+ }>;
28
+ dir: z.ZodString;
29
+ entry: z.ZodString;
30
+ }, z.core.$strict>;
31
+ editor: z.ZodEnum<{
32
+ video: "video";
33
+ slides: "slides";
34
+ doc: "doc";
35
+ sheet: "sheet";
36
+ scenery: "scenery";
37
+ website: "website";
38
+ }>;
39
+ }, z.core.$strict>;
40
+ export type HostContext = z.infer<typeof HostContextSchema>;
41
+ /** What `items/open` shows: a file of the project, or a browser page (as Codex's `open_in_codex` names it). */
42
+ export declare const OpenTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
43
+ type: z.ZodLiteral<"file">;
44
+ path: z.ZodString;
45
+ line: z.ZodOptional<z.ZodInt>;
46
+ }, z.core.$strict>, z.ZodObject<{
47
+ type: z.ZodLiteral<"browser">;
48
+ url: z.ZodOptional<z.ZodURL>;
49
+ tabId: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strict>], "type">;
51
+ export type OpenTarget = z.infer<typeof OpenTargetSchema>;
52
+ export declare const EDITOR_STATES: readonly ["saved", "saving", "unsaved", "error"];
53
+ export declare const HOST_METHODS: {
54
+ readonly "host/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
55
+ locale: z.ZodString;
56
+ theme: z.ZodEnum<{
57
+ light: "light";
58
+ dark: "dark";
59
+ }>;
60
+ agent: z.ZodOptional<z.ZodObject<{
61
+ name: z.ZodString;
62
+ }, z.core.$strict>>;
63
+ project: z.ZodObject<{
64
+ name: z.ZodString;
65
+ }, z.core.$strict>;
66
+ item: z.ZodObject<{
67
+ kind: z.ZodEnum<{
68
+ video: "video";
69
+ slides: "slides";
70
+ doc: "doc";
71
+ sheet: "sheet";
72
+ scenery: "scenery";
73
+ website: "website";
74
+ }>;
75
+ dir: z.ZodString;
76
+ entry: z.ZodString;
77
+ }, z.core.$strict>;
78
+ editor: z.ZodEnum<{
79
+ video: "video";
80
+ slides: "slides";
81
+ doc: "doc";
82
+ sheet: "sheet";
83
+ scenery: "scenery";
84
+ website: "website";
85
+ }>;
86
+ }, z.core.$strict>>;
87
+ readonly "items/open": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
88
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
+ type: z.ZodLiteral<"file">;
90
+ path: z.ZodString;
91
+ line: z.ZodOptional<z.ZodInt>;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ type: z.ZodLiteral<"browser">;
94
+ url: z.ZodOptional<z.ZodURL>;
95
+ tabId: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>], "type">;
97
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
98
+ readonly "storage/get": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
99
+ key: z.ZodString;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ value: z.ZodUnknown;
102
+ }, z.core.$strict>>;
103
+ readonly "storage/set": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
104
+ key: z.ZodString;
105
+ value: z.ZodUnknown;
106
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
107
+ readonly "editor/state": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
108
+ state: z.ZodEnum<{
109
+ error: "error";
110
+ saved: "saved";
111
+ saving: "saving";
112
+ unsaved: "unsaved";
113
+ }>;
114
+ message: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
116
+ readonly "editor/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
117
+ text: z.ZodString;
118
+ at: z.ZodOptional<z.ZodObject<{
119
+ t: z.ZodNumber;
120
+ version: z.ZodString;
121
+ }, z.core.$strict>>;
122
+ picture: z.ZodOptional<z.ZodObject<{
123
+ x: z.ZodNumber;
124
+ y: z.ZodNumber;
125
+ width: z.ZodNumber;
126
+ height: z.ZodNumber;
127
+ }, z.core.$strict>>;
128
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
129
+ readonly "tools/call": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
130
+ name: z.ZodString;
131
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
+ }, z.core.$strict>, z.ZodObject<{
133
+ result: z.ZodUnknown;
134
+ }, z.core.$strict>>;
135
+ };
136
+ export declare const HOST_NOTIFICATIONS: {
137
+ readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
138
+ revision: z.ZodInt;
139
+ }, z.core.$strict>>;
140
+ readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
141
+ status: z.ZodEnum<{
142
+ off: "off";
143
+ waiting: "waiting";
144
+ running: "running";
145
+ done: "done";
146
+ failed: "failed";
147
+ }>;
148
+ revision: z.ZodInt;
149
+ problems: z.ZodArray<z.ZodObject<{
150
+ code: z.ZodString;
151
+ level: z.ZodEnum<{
152
+ error: "error";
153
+ warn: "warn";
154
+ }>;
155
+ message: z.ZodString;
156
+ piece: z.ZodOptional<z.ZodString>;
157
+ part: z.ZodOptional<z.ZodString>;
158
+ t: z.ZodOptional<z.ZodNumber>;
159
+ }, z.core.$loose>>;
160
+ facts: z.ZodArray<z.ZodObject<{
161
+ kind: z.ZodString;
162
+ data: z.ZodUnknown;
163
+ }, z.core.$loose>>;
164
+ versions: z.ZodOptional<z.ZodObject<{
165
+ total: z.ZodInt;
166
+ loaded: z.ZodInt;
167
+ reused: z.ZodInt;
168
+ }, z.core.$strict>>;
169
+ error: z.ZodOptional<z.ZodString>;
170
+ }, z.core.$strict>>;
171
+ readonly "export/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
172
+ job: z.ZodObject<{
173
+ id: z.ZodString;
174
+ item: z.ZodString;
175
+ versions: z.ZodArray<z.ZodString>;
176
+ types: z.ZodArray<z.ZodString>;
177
+ state: z.ZodEnum<{
178
+ running: "running";
179
+ done: "done";
180
+ failed: "failed";
181
+ queued: "queued";
182
+ cancelled: "cancelled";
183
+ }>;
184
+ progress: z.ZodNumber;
185
+ files: z.ZodArray<z.ZodString>;
186
+ error: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strict>;
188
+ }, z.core.$strict>>;
189
+ readonly "index/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
190
+ jobs: z.ZodArray<z.ZodObject<{
191
+ file: z.ZodString;
192
+ status: z.ZodEnum<{
193
+ running: "running";
194
+ done: "done";
195
+ failed: "failed";
196
+ }>;
197
+ message: z.ZodString;
198
+ share: z.ZodOptional<z.ZodNumber>;
199
+ }, z.core.$strict>>;
200
+ }, z.core.$strict>>;
201
+ readonly "files/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
202
+ watch: z.ZodString;
203
+ changes: z.ZodArray<z.ZodObject<{
204
+ path: z.ZodString;
205
+ version: z.ZodNullable<z.ZodString>;
206
+ by: z.ZodOptional<z.ZodObject<{
207
+ kind: z.ZodEnum<{
208
+ person: "person";
209
+ agent: "agent";
210
+ tool: "tool";
211
+ }>;
212
+ name: z.ZodString;
213
+ }, z.core.$strict>>;
214
+ }, z.core.$strict>>;
215
+ }, z.core.$strict>>;
216
+ readonly "host/context-changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
217
+ locale: z.ZodString;
218
+ theme: z.ZodEnum<{
219
+ light: "light";
220
+ dark: "dark";
221
+ }>;
222
+ agent: z.ZodOptional<z.ZodObject<{
223
+ name: z.ZodString;
224
+ }, z.core.$strict>>;
225
+ project: z.ZodObject<{
226
+ name: z.ZodString;
227
+ }, z.core.$strict>;
228
+ item: z.ZodObject<{
229
+ kind: z.ZodEnum<{
230
+ video: "video";
231
+ slides: "slides";
232
+ doc: "doc";
233
+ sheet: "sheet";
234
+ scenery: "scenery";
235
+ website: "website";
236
+ }>;
237
+ dir: z.ZodString;
238
+ entry: z.ZodString;
239
+ }, z.core.$strict>;
240
+ editor: z.ZodEnum<{
241
+ video: "video";
242
+ slides: "slides";
243
+ doc: "doc";
244
+ sheet: "sheet";
245
+ scenery: "scenery";
246
+ website: "website";
247
+ }>;
248
+ }, z.core.$strict>>;
249
+ };
250
+ /** Every method an editor may call on its host. */
251
+ export declare const EDITOR_HOST_METHODS: {
252
+ readonly "host/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
253
+ locale: z.ZodString;
254
+ theme: z.ZodEnum<{
255
+ light: "light";
256
+ dark: "dark";
257
+ }>;
258
+ agent: z.ZodOptional<z.ZodObject<{
259
+ name: z.ZodString;
260
+ }, z.core.$strict>>;
261
+ project: z.ZodObject<{
262
+ name: z.ZodString;
263
+ }, z.core.$strict>;
264
+ item: z.ZodObject<{
265
+ kind: z.ZodEnum<{
266
+ video: "video";
267
+ slides: "slides";
268
+ doc: "doc";
269
+ sheet: "sheet";
270
+ scenery: "scenery";
271
+ website: "website";
272
+ }>;
273
+ dir: z.ZodString;
274
+ entry: z.ZodString;
275
+ }, z.core.$strict>;
276
+ editor: z.ZodEnum<{
277
+ video: "video";
278
+ slides: "slides";
279
+ doc: "doc";
280
+ sheet: "sheet";
281
+ scenery: "scenery";
282
+ website: "website";
283
+ }>;
284
+ }, z.core.$strict>>;
285
+ readonly "items/open": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
286
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
287
+ type: z.ZodLiteral<"file">;
288
+ path: z.ZodString;
289
+ line: z.ZodOptional<z.ZodInt>;
290
+ }, z.core.$strict>, z.ZodObject<{
291
+ type: z.ZodLiteral<"browser">;
292
+ url: z.ZodOptional<z.ZodURL>;
293
+ tabId: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strict>], "type">;
295
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
296
+ readonly "storage/get": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
297
+ key: z.ZodString;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ value: z.ZodUnknown;
300
+ }, z.core.$strict>>;
301
+ readonly "storage/set": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
302
+ key: z.ZodString;
303
+ value: z.ZodUnknown;
304
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
305
+ readonly "editor/state": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
306
+ state: z.ZodEnum<{
307
+ error: "error";
308
+ saved: "saved";
309
+ saving: "saving";
310
+ unsaved: "unsaved";
311
+ }>;
312
+ message: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
314
+ readonly "editor/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
315
+ text: z.ZodString;
316
+ at: z.ZodOptional<z.ZodObject<{
317
+ t: z.ZodNumber;
318
+ version: z.ZodString;
319
+ }, z.core.$strict>>;
320
+ picture: z.ZodOptional<z.ZodObject<{
321
+ x: z.ZodNumber;
322
+ y: z.ZodNumber;
323
+ width: z.ZodNumber;
324
+ height: z.ZodNumber;
325
+ }, z.core.$strict>>;
326
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
327
+ readonly "tools/call": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
328
+ name: z.ZodString;
329
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ result: z.ZodUnknown;
332
+ }, z.core.$strict>>;
333
+ readonly "files/read": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
334
+ path: z.ZodString;
335
+ }, z.core.$strict>, z.ZodObject<{
336
+ text: z.ZodString;
337
+ version: z.ZodNullable<z.ZodString>;
338
+ }, z.core.$strict>>;
339
+ readonly "files/write": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
340
+ path: z.ZodString;
341
+ text: z.ZodString;
342
+ over: z.ZodNullable<z.ZodString>;
343
+ }, z.core.$strict>, z.ZodObject<{
344
+ version: z.ZodNullable<z.ZodString>;
345
+ }, z.core.$strict>>;
346
+ readonly "files/upload": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
347
+ dir: z.ZodString;
348
+ name: z.ZodString;
349
+ data: z.ZodBase64;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ path: z.ZodString;
352
+ }, z.core.$strict>>;
353
+ readonly "files/url": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
354
+ path: z.ZodString;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ url: z.ZodString;
357
+ }, z.core.$strict>>;
358
+ readonly "files/list": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
359
+ dir: z.ZodString;
360
+ }, z.core.$strict>, z.ZodObject<{
361
+ files: z.ZodArray<z.ZodObject<{
362
+ path: z.ZodString;
363
+ size: z.ZodInt;
364
+ modified: z.ZodNumber;
365
+ }, z.core.$strict>>;
366
+ dirs: z.ZodArray<z.ZodString>;
367
+ }, z.core.$strict>>;
368
+ readonly "files/move": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
369
+ from: z.ZodString;
370
+ to: z.ZodString;
371
+ }, z.core.$strict>, z.ZodObject<{
372
+ rewritten: z.ZodArray<z.ZodString>;
373
+ }, z.core.$strict>>;
374
+ readonly "files/remove": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
375
+ path: z.ZodString;
376
+ }, z.core.$strict>, z.ZodObject<{
377
+ trash: z.ZodString;
378
+ }, z.core.$strict>>;
379
+ readonly "files/trash": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
380
+ entries: z.ZodArray<z.ZodObject<{
381
+ id: z.ZodString;
382
+ path: z.ZodString;
383
+ removed: z.ZodNumber;
384
+ }, z.core.$strict>>;
385
+ }, z.core.$strict>>;
386
+ readonly "files/restore": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
387
+ id: z.ZodString;
388
+ }, z.core.$strict>, z.ZodObject<{
389
+ path: z.ZodString;
390
+ }, z.core.$strict>>;
391
+ readonly "files/watch": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
392
+ paths: z.ZodArray<z.ZodString>;
393
+ }, z.core.$strict>, z.ZodObject<{
394
+ watch: z.ZodString;
395
+ }, z.core.$strict>>;
396
+ readonly "files/unwatch": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
397
+ watch: z.ZodString;
398
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
399
+ };
400
+ /** What an editor holds: its host, as typed calls. */
401
+ export type EditorHost = ClientOf<typeof EDITOR_HOST_METHODS> & {
402
+ /** Tells `files/changed`, `host/context-changed` and the tools' notifications; answers how to stop. */
403
+ on<N extends keyof typeof HOST_NOTIFICATIONS>(name: N, listener: (params: z.output<(typeof HOST_NOTIFICATIONS)[N]["params"]>) => void): () => void;
404
+ };
405
+ //# sourceMappingURL=editor.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 t}from"zod";import{EDITORS as r,KINDS as s}from"@allyhub-next/formats";import{FILE_METHODS as n,FILE_NOTIFICATIONS as i,PathSchema as o}from"./files.js";import{method as e,notification as a}from"./jsonrpc.js";import{TOOL_NOTIFICATIONS as c}from"./tools.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)}),item:t.strictObject({kind:t.enum(s),dir:o,entry:o}),editor:t.enum(r)}),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()})]),EDITOR_STATES=["saved","saving","unsaved","error"],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."),"editor/context":e(t.strictObject({text:t.string(),at:t.strictObject({t:t.number().nonnegative(),version:t.string()}).optional(),picture:t.strictObject({x:t.number(),y:t.number(),width:t.number().positive(),height:t.number().positive()}).optional()}),t.strictObject({}),"Tells the host what the editor shows, as MCP Apps' ui/update-model-context does: what a note the person makes on it is about."),"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."),...i,...c},EDITOR_HOST_METHODS={...n,...HOST_METHODS};
@@ -0,0 +1,101 @@
1
+ import { z } from "zod";
2
+ /** A project path: forward slashes, inside the project, no `..`. */
3
+ export declare const PathSchema: z.ZodString;
4
+ /** The sha256 of a file's bytes, or null for a file that is not there. */
5
+ export declare const VersionSchema: z.ZodNullable<z.ZodString>;
6
+ /** Who changed a file, when the host knows. */
7
+ export declare const WriterSchema: z.ZodObject<{
8
+ kind: z.ZodEnum<{
9
+ person: "person";
10
+ agent: "agent";
11
+ tool: "tool";
12
+ }>;
13
+ name: z.ZodString;
14
+ }, z.core.$strict>;
15
+ export type Writer = z.infer<typeof WriterSchema>;
16
+ export declare const FILE_METHODS: {
17
+ readonly "files/read": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
18
+ path: z.ZodString;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ text: z.ZodString;
21
+ version: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strict>>;
23
+ readonly "files/write": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
24
+ path: z.ZodString;
25
+ text: z.ZodString;
26
+ over: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ version: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strict>>;
30
+ readonly "files/upload": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
31
+ dir: z.ZodString;
32
+ name: z.ZodString;
33
+ data: z.ZodBase64;
34
+ }, z.core.$strict>, z.ZodObject<{
35
+ path: z.ZodString;
36
+ }, z.core.$strict>>;
37
+ readonly "files/url": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
38
+ path: z.ZodString;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ url: z.ZodString;
41
+ }, z.core.$strict>>;
42
+ readonly "files/list": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
43
+ dir: z.ZodString;
44
+ }, z.core.$strict>, z.ZodObject<{
45
+ files: z.ZodArray<z.ZodObject<{
46
+ path: z.ZodString;
47
+ size: z.ZodInt;
48
+ modified: z.ZodNumber;
49
+ }, z.core.$strict>>;
50
+ dirs: z.ZodArray<z.ZodString>;
51
+ }, z.core.$strict>>;
52
+ readonly "files/move": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
53
+ from: z.ZodString;
54
+ to: z.ZodString;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ rewritten: z.ZodArray<z.ZodString>;
57
+ }, z.core.$strict>>;
58
+ readonly "files/remove": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
59
+ path: z.ZodString;
60
+ }, z.core.$strict>, z.ZodObject<{
61
+ trash: z.ZodString;
62
+ }, z.core.$strict>>;
63
+ readonly "files/trash": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
64
+ entries: z.ZodArray<z.ZodObject<{
65
+ id: z.ZodString;
66
+ path: z.ZodString;
67
+ removed: z.ZodNumber;
68
+ }, z.core.$strict>>;
69
+ }, z.core.$strict>>;
70
+ readonly "files/restore": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
71
+ id: z.ZodString;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ path: z.ZodString;
74
+ }, z.core.$strict>>;
75
+ readonly "files/watch": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
76
+ paths: z.ZodArray<z.ZodString>;
77
+ }, z.core.$strict>, z.ZodObject<{
78
+ watch: z.ZodString;
79
+ }, z.core.$strict>>;
80
+ readonly "files/unwatch": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
81
+ watch: z.ZodString;
82
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
83
+ };
84
+ export declare const FILE_NOTIFICATIONS: {
85
+ readonly "files/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
86
+ watch: z.ZodString;
87
+ changes: z.ZodArray<z.ZodObject<{
88
+ path: z.ZodString;
89
+ version: z.ZodNullable<z.ZodString>;
90
+ by: z.ZodOptional<z.ZodObject<{
91
+ kind: z.ZodEnum<{
92
+ person: "person";
93
+ agent: "agent";
94
+ tool: "tool";
95
+ }>;
96
+ name: z.ZodString;
97
+ }, z.core.$strict>>;
98
+ }, z.core.$strict>>;
99
+ }, z.core.$strict>>;
100
+ };
101
+ //# sourceMappingURL=files.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 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.")};
@@ -0,0 +1,12 @@
1
+ export * from "./jsonrpc.js";
2
+ export * from "./files.js";
3
+ export * from "./editor.js";
4
+ export * from "./tools.js";
5
+ export * from "./cli.js";
6
+ export * from "./auth.js";
7
+ export * from "./registry.js";
8
+ export * from "./runtimes.js";
9
+ export * from "./cloud.js";
10
+ export * from "./teams.js";
11
+ export * from "./app.js";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";
@@ -0,0 +1,83 @@
1
+ import { z } from "zod";
2
+ export declare const JSONRPC: "2.0";
3
+ export declare const RequestSchema: z.ZodObject<{
4
+ jsonrpc: z.ZodLiteral<"2.0">;
5
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodInt]>;
6
+ method: z.ZodString;
7
+ params: z.ZodOptional<z.ZodUnknown>;
8
+ }, z.core.$strict>;
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+ export declare const NotificationSchema: z.ZodObject<{
11
+ jsonrpc: z.ZodLiteral<"2.0">;
12
+ method: z.ZodString;
13
+ params: z.ZodOptional<z.ZodUnknown>;
14
+ }, z.core.$strict>;
15
+ export type Notification = z.infer<typeof NotificationSchema>;
16
+ export declare const ErrorObjectSchema: z.ZodObject<{
17
+ code: z.ZodInt;
18
+ message: z.ZodString;
19
+ data: z.ZodOptional<z.ZodUnknown>;
20
+ }, z.core.$strict>;
21
+ export type ErrorObject = z.infer<typeof ErrorObjectSchema>;
22
+ export declare const ResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
23
+ jsonrpc: z.ZodLiteral<"2.0">;
24
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodInt]>;
25
+ result: z.ZodUnknown;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ jsonrpc: z.ZodLiteral<"2.0">;
28
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodInt, z.ZodNull]>;
29
+ error: z.ZodObject<{
30
+ code: z.ZodInt;
31
+ message: z.ZodString;
32
+ data: z.ZodOptional<z.ZodUnknown>;
33
+ }, z.core.$strict>;
34
+ }, z.core.$strict>]>;
35
+ export type Response = z.infer<typeof ResponseSchema>;
36
+ /** JSON-RPC's own codes, and AllyHub's in the range it leaves for servers. */
37
+ export declare const RPC_ERROR: {
38
+ readonly parse: -32700;
39
+ readonly invalidRequest: -32600;
40
+ readonly methodNotFound: -32601;
41
+ readonly invalidParams: -32602;
42
+ readonly internal: -32603;
43
+ /** The file changed since the version it was written over: `data` says what it is now. */
44
+ readonly conflict: -32001;
45
+ readonly notFound: -32002;
46
+ /** The content is not what its format allows: `data.problems` says where. */
47
+ readonly invalid: -32003;
48
+ readonly forbidden: -32004;
49
+ /** It cannot run here or now; `message` says why. */
50
+ readonly unavailable: -32005;
51
+ };
52
+ export interface MethodSpec<P extends z.ZodType = z.ZodType, R extends z.ZodType = z.ZodType> {
53
+ params: P;
54
+ result: R;
55
+ /** What it does, for a reader of the protocol. */
56
+ about: string;
57
+ }
58
+ export interface NotificationSpec<P extends z.ZodType = z.ZodType> {
59
+ params: P;
60
+ about: string;
61
+ }
62
+ export declare const method: <P extends z.ZodType, R extends z.ZodType>(params: P, result: R, about: string) => MethodSpec<P, R>;
63
+ export declare const notification: <P extends z.ZodType>(params: P, about: string) => NotificationSpec<P>;
64
+ /** A typed client of a table of methods: what a caller holds. */
65
+ export type ClientOf<M extends Record<string, MethodSpec>> = {
66
+ [K in keyof M]: (params: z.input<M[K]["params"]>) => Promise<z.output<M[K]["result"]>>;
67
+ };
68
+ /** A typed server of a table of methods: what an implementer writes. */
69
+ export type HandlersOf<M extends Record<string, MethodSpec>> = {
70
+ [K in keyof M]: (params: z.output<M[K]["params"]>) => Promise<z.input<M[K]["result"]>>;
71
+ };
72
+ /** An error a handler throws to answer with a JSON-RPC error. */
73
+ export declare class RpcError extends Error {
74
+ readonly code: number;
75
+ readonly data: unknown;
76
+ constructor(code: number, message: string, data?: unknown);
77
+ }
78
+ /**
79
+ * Answers one request from a table of handlers: params checked, result
80
+ * checked, errors as JSON-RPC errors. Transports wrap this.
81
+ */
82
+ export declare function answer<M extends Record<string, MethodSpec>>(methods: M, handlers: HandlersOf<M>, request: Request): Promise<Response>;
83
+ //# sourceMappingURL=jsonrpc.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 r}from"zod";export const JSONRPC="2.0",RequestSchema=r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int()]),method:r.string().min(1),params:r.unknown().optional()}),NotificationSchema=r.strictObject({jsonrpc:r.literal(JSONRPC),method:r.string().min(1),params:r.unknown().optional()}),ErrorObjectSchema=r.strictObject({code:r.int(),message:r.string(),data:r.unknown().optional()}),ResponseSchema=r.union([r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int()]),result:r.unknown()}),r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int(),r.null()]),error:ErrorObjectSchema})]),RPC_ERROR={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},method=(o,e,t)=>({params:o,result:e,about:t}),notification=(o,e)=>({params:o,about:e});export class RpcError extends Error{code;data;constructor(e,t,s){super(t),this.name="RpcError",this.code=e,this.data=s}}export async function answer(o,e,t){const{id:s}=t,a=Object.hasOwn(o,t.method)?o[t.method]:void 0;if(!a)return{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.methodNotFound,message:`There is no method "${t.method}".`}};const i=a.params.safeParse(t.params??{});if(!i.success)return{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.invalidParams,message:r.prettifyError(i.error)}};try{const n=e[t.method],c=await n(i.data);return{jsonrpc:JSONRPC,id:s,result:a.result.parse(c)}}catch(n){return n instanceof RpcError?{jsonrpc:JSONRPC,id:s,error:{code:n.code,message:n.message,...n.data===void 0?{}:{data:n.data}}}:{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.internal,message:n instanceof Error?n.message:String(n)}}}}