@allyhub/sdk 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +1 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  20. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  21. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  22. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  30. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  31. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  33. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  34. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  36. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  38. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  40. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  42. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  46. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  48. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  50. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  51. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  52. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  53. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  54. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  56. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  58. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  60. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  94. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  95. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  96. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  100. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  101. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  102. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  104. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  105. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  106. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  116. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  117. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  119. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  120. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  126. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  127. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  128. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  129. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  131. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  133. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  135. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  137. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  138. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  142. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  143. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  144. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  146. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  147. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  148. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  150. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  151. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  152. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  153. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  154. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  156. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  162. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  166. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  168. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  174. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  176. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  178. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  179. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  180. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  181. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  183. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  185. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  186. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  187. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  189. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  190. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  191. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
  194. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  195. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
  196. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  198. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  199. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
  200. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  201. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  202. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
  204. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  205. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  206. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  210. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
  211. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  212. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  216. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  217. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  219. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  220. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  223. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  225. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  226. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  227. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  228. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  229. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  230. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  231. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  232. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  233. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  234. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  235. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  236. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  237. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  239. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  240. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  241. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  242. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  243. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  244. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  245. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  246. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  247. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  248. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  250. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  252. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  253. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  254. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  257. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
  258. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  259. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  262. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  263. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
  265. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  269. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  270. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  271. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
  272. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  273. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  274. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  275. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  276. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  277. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  278. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  279. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
  280. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  281. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  282. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  283. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  284. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  285. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  286. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  287. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  288. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  289. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
  290. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  291. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  292. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
  293. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  294. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  295. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  296. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  297. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  298. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  299. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  300. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  301. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  302. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  303. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  304. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  305. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  306. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  307. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  308. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  309. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  310. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  311. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  312. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  313. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  314. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  315. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  316. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  317. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  318. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  319. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  320. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
  321. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  322. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  323. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
  324. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  325. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  326. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  327. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  328. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  329. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  330. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  331. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  332. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  333. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  334. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  335. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  336. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  337. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  338. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  339. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  340. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  341. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  342. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  343. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  344. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  345. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  346. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  347. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  348. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  349. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  350. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  351. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  352. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  353. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  354. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  355. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  356. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  357. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  358. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  359. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  360. package/dist/scenery.d.ts +1 -1
  361. package/dist/scenery.js +1 -1
  362. package/dist/sheets.d.ts +1 -1
  363. package/dist/sheets.js +1 -1
  364. package/dist/slides.d.ts +1 -9
  365. package/dist/slides.js +1 -1
  366. package/docs/README.md +8 -6
  367. package/docs/batches.md +5 -5
  368. package/docs/contract.md +2 -2
  369. package/docs/defaults.md +278 -20
  370. package/docs/docs.md +77 -63
  371. package/docs/footage.md +7 -7
  372. package/docs/image.md +165 -0
  373. package/docs/layers.md +22 -13
  374. package/docs/modeling.md +4 -4
  375. package/docs/pictures.md +65 -0
  376. package/docs/project.md +51 -31
  377. package/docs/scenery.md +11 -11
  378. package/docs/sheets.md +26 -25
  379. package/docs/slides.md +73 -65
  380. package/docs/sound.md +3 -3
  381. package/docs/speech.md +8 -8
  382. package/docs/video.md +16 -13
  383. package/docs/websites.md +4 -4
  384. package/package.json +7 -2
  385. package/dist/define.js +0 -2
  386. package/dist/free.js +0 -2
  387. package/dist/input.js +0 -2
  388. package/dist/module.js +0 -2
  389. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  390. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  391. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  392. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  393. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  394. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  395. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  396. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  397. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  398. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  399. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  400. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  401. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  402. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  403. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  404. package/dist/parts.js +0 -2
  405. package/dist/piece.js +0 -2
  406. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  407. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  408. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  409. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  410. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  411. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  412. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  413. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  414. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  415. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  416. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  417. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  418. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  419. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  420. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  421. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  422. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  423. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  424. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  425. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  426. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  427. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  428. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  429. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  430. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  431. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  432. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  433. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  434. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  435. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  436. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
  437. /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
  438. /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
@@ -0,0 +1,118 @@
1
+ AllyHub
2
+ Copyright (c) 2026 AllyHub, Inc. All rights reserved.
3
+
4
+ This product is proprietary; see LICENSE.
5
+
6
+ Parts of the rendering code (frame capture with BeginFrame, worker sizing,
7
+ frame extraction and the ffmpeg arguments) are adapted from HyperFrames (https://github.com/heygen-com/hyperframes),
8
+ Copyright 2026 HeyGen, Inc., licensed under the Apache License, Version 2.0.
9
+ Each adapted file says so in its header.
10
+
11
+ The talking-head tools adapt logic from FilmCraft
12
+ (https://github.com/storytold/filmcraft), dual-licensed under the MIT
13
+ License or the Apache License, Version 2.0, and used here under the MIT
14
+ License: reading a take by word index and tightening word bounds to the
15
+ sound's level (crates/engine/src/transcript.rs, crates/speech/src/vad.rs),
16
+ placing cuts in the silence beside the words, and measuring the offset
17
+ between two recordings from their sound by generalised cross-correlation
18
+ (GCC-PHAT, coarse then refined; crates/audio-dsp/src/sync.rs). Each adapted
19
+ file says so in its header.
20
+
21
+ Copyright (c) 2026 ArtCraft Team and the FilmCraft contributors
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a
24
+ copy of this software and associated documentation files (the
25
+ "Software"), to deal in the Software without restriction, including
26
+ without limitation the rights to use, copy, modify, merge, publish,
27
+ distribute, sublicense, and/or sell copies of the Software, and to permit
28
+ persons to whom the Software is furnished to do so, subject to the
29
+ following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included
32
+ in all copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
35
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
37
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
38
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
39
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
40
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
41
+
42
+ The SDK's motion and layout helpers are after three of Remotion's packages
43
+ (https://github.com/remotion-dev/remotion), each published under the MIT
44
+ License, written again in AllyHub's own code: fitting a text to n lines by
45
+ a binary search on its font size (@remotion/layout-utils,
46
+ fit-text-on-n-lines.ts and fill-text-box.ts; packages/sdk/src/fit.ts and
47
+ fitLines in dom.ts), seeded simplex noise with a seed and coordinates
48
+ (@remotion/noise; packages/sdk/src/noise.ts) and measuring, drawing on and
49
+ interpolating SVG paths (@remotion/paths: getLength, getPointAtLength,
50
+ getTangentAtLength, evolvePath, interpolatePath; packages/sdk/src/paths.ts).
51
+ Each file says so in its header. @remotion/noise wraps simplex-noise
52
+ (https://github.com/jwagner/simplex-noise.js, Copyright (c) 2022 Jonas
53
+ Wagner, MIT License); the noise here, like it, follows Stefan Gustavson's
54
+ public-domain simplex noise reference ("Simplex noise demystified", 2005).
55
+
56
+ Copyright (c) 2023 JonnyBurger
57
+
58
+ Permission is hereby granted, free of charge, to any person obtaining a
59
+ copy of this software and associated documentation files (the
60
+ "Software"), to deal in the Software without restriction, including
61
+ without limitation the rights to use, copy, modify, merge, publish,
62
+ distribute, sublicense, and/or sell copies of the Software, and to permit
63
+ persons to whom the Software is furnished to do so, subject to the
64
+ following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be included
67
+ in all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
70
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
71
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
72
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
73
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
74
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
75
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
76
+
77
+ The Apache License, Version 2.0 is reproduced at the end of LICENSE; those
78
+ parts remain under it.
79
+
80
+ How a voice was recorded (packages/engine/src/recording/) builds a room's
81
+ impulse response after pyroomacoustics
82
+ (https://github.com/LCAV/pyroomacoustics), under the MIT License: the image
83
+ source method in a box with each reflection's amplitude per octave band,
84
+ fractional delays written with a Hann-windowed sinc, the octave bands joined
85
+ by Antoni's power-complementary crossovers, the late tail as random impulses
86
+ of growing density decaying by each band's reverberation time, Eyring's
87
+ reverberation time with the air's absorption, and the materials' absorption
88
+ coefficients and the air's absorption table (pyroomacoustics/data/
89
+ materials.json, acoustics.py, simulation/ism.py and rt.py, libroom_src/
90
+ room.cpp). room.ts says so in its header.
91
+
92
+ Copyright (c) 2014-2017 EPFL-LCAV
93
+
94
+ Permission is hereby granted, free of charge, to any person obtaining a
95
+ copy of this software and associated documentation files (the
96
+ "Software"), to deal in the Software without restriction, including
97
+ without limitation the rights to use, copy, modify, merge, publish,
98
+ distribute, sublicense, and/or sell copies of the Software, and to permit
99
+ persons to whom the Software is furnished to do so, subject to the
100
+ following conditions:
101
+
102
+ The above copyright notice and this permission notice shall be included
103
+ in all copies or substantial portions of the Software.
104
+
105
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
106
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
107
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
108
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
109
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
110
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
111
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
112
+
113
+ Its loudness (loudness.ts) puts BS.1770's K-weighting filters at any sample
114
+ rate from their analogue prototypes, as pyloudnorm
115
+ (https://github.com/csteinmetz1/pyloudnorm) does, Copyright (c) 2021
116
+ Christian Steinmetz, under the MIT License; its filters follow Robert
117
+ Bristow-Johnson's Audio EQ Cookbook, and its compressor Giannoulis, Massberg
118
+ and Reiss, "Digital Dynamic Range Compressor Design" (JAES, 2012).
@@ -1,18 +1,22 @@
1
1
  export { clamp, ease, fitText, lerp, progress, rand, stagger, tween, type Ease, type FitTextOptions, type TweenOptions, } from "./anim.js";
2
2
  export { noise2D, noise3D, noise4D } from "./noise.js";
3
- export { drag, fittsTime, INPUT_DEFAULTS, pointer, reach, scroll, tap, typing, type Drag, type DragOptions, type Movement, type Point, type Pointer, type PointerOptions, type PointerState, type PointerStep, type ReachOptions, type Scroll, type ScrollOptions, type Tap, type TapOptions, type Typed, type TypingOptions, } from "./input.js";
3
+ export { drag, fittsTime, INPUT_DEFAULTS, cursor, handPath, reach, scroll, tap, typing, type Drag, type DragOptions, type Movement, type Point, type CursorOptions, type CursorStep, type HandPathOptions, type InputPath, type InputState, type PathStep, type ReachOptions, type Scroll, type ScrollOptions, type Tap, type TapOptions, type Typed, type TypingOptions, } from "./input.js";
4
4
  export { aimed, type AimOptions } from "@allyhub/scenery";
5
5
  export { drawOn, interpolatePath, normalizePath, pathLength, pointAtLength, tangentAtLength, trimPath, type DrawOn, type PathCommand, type PathPoint, } from "./paths.js";
6
- export { FIT_LINES_PRECISION, fitLines, textLines, type FitLines, type FitLinesOptions, } from "./dom.js";
7
- export { custom, defineComponent, LAYER_OPTIONS, type Component, type ComponentDefinition, type ComponentInfo, type CustomOptions, type FrameDefinition, type LayerDefinition, type ComponentFrame, type Label, type LayerOptions, type StageContext, } from "./define.js";
6
+ export { ROUTE_DEFAULTS, routeConnections, routeCrossings, type Route, type RouteBox, type RouteConnection, type RouteOptions, type RouteSide, } from "./route.js";
7
+ export { FIT_LINES_PRECISION, fitLines, textLines, type FitLines, type FitLinesOptions, } from "@allyhub/image-sdk/dom";
8
+ export { custom, defineComponent, LAYER_OPTIONS, type Component, type ComponentDefinition, type ComponentInfo, type CustomOptions, type FrameDefinition, type LayerDefinition, type ComponentFrame, type Label, type LayerOptions, type StageContext, } from "@allyhub/image-sdk/define";
9
+ export { adjustment, fill, group, shape, textLayer, type AdjustmentOptions, type FillOptions, type GroupOptions, type ShapeOptions, type TextLayerOptions, } from "@allyhub/image-sdk";
8
10
  export { say, type BoxKey, type FootageBackground, type FootageBox, type PerOrient, type PunchIn, type Pullback, type Reframe, type FootageLayer, type FootageOptions, type GraphicLayer, type Layer, type LayerSpec, type LayerTiming, type PartAnchors, type PartOptions, type PartSpec, type Rect, type RoomTone, type SayOptions, type SaySpeech, type SoundSpec, type SpeechSpec, type Take, type TakeSpeech, type VideoSpeech, type VideoTake, type Direction, type TransitionChannel, type TransitionInput, type TransitionPicture, type TransitionSpec, type TransitionType, type WordRef, } from "./parts.js";
9
- export type { InlineMark, MarkedText } from "@allyhub/video-core";
11
+ export type { InlineMark, MarkedText, EmbeddedVideo, CaptionOptions, CaptionTrackCue, CaptionWord, FaceOnFrame, FaceTrack, MediaInfo, MediaKind, PixelRect, TrackedFace, Word, } from "@allyhub/piece";
10
12
  /** What ctx.video(piece, el) gives: another video item, drawn inside an element. */
11
- export type { EmbeddedVideo } from "@allyhub/video-core";
12
13
  export { defineConfig, definePiece, paged, type Combo, type Dims, type Format, type FormatEntry, type FormatSpec, type ItemPiece, type Matrix, type MediaRef, type MessageHint, type MotionBlur, type MusicOptions, type PieceContext, type PieceDefinition, type PieceOptions, type PieceWritten, type PostProcess, type CaptureOptions, type ProjectConfig, type Video, type VideoBuild, type VideoItem, type VideoOptions, type VideoPiece, type VideoPieceOptions, } from "./piece.js";
13
- export type { ListItem, ListPrefix, MessageInputs, MessageKey, MessageLists, MessageReader, Messages, } from "./messages.js";
14
- export { asset, boolean, color, list, number, object, text, time, type PropSchema, type PropsOf, type PropValue, type Time, type Timed, type VideoValue, } from "./props.js";
15
- export { countText, splitText } from "./text.js";
16
- export { markRuns, readMarks, withoutMarks, type MarkRun, } from "@allyhub/video-core";
17
- export type { Box, CaptionOptions, CaptionTrackCue, CaptionWord, EditList, EditRange, FaceOnFrame, FaceTrack, MediaInfo, MediaKind, PixelRect, TrackedFace, Word, } from "@allyhub/video-core";
14
+ export type { ListItem, ListPrefix, MessageInputs, MessageKey, MessageLists, MessageReader, Messages, } from "@allyhub/image-sdk/messages";
15
+ export { asset, boolean, color, list, number, object, text, time, type PropSchema, type PropsOf, type PropValue, type Time, type Timed, type VideoValue, } from "@allyhub/image-sdk/props";
16
+ export { countText, splitText } from "@allyhub/image-sdk/text";
17
+ export { pictureProblem, type PictureMask, type PictureOptions, type PictureProps, } from "@allyhub/image-sdk/picture";
18
+ export { PICTURE_DEFAULTS, type PictureFit, type PicturePoint, } from "@allyhub/piece";
19
+ export { markRuns, readMarks, withoutMarks, type MarkRun, } from "@allyhub/piece";
20
+ export type { Box } from "@allyhub/diagnostics";
21
+ export type { EditList, EditRange } from "@allyhub/video-core";
18
22
  //# sourceMappingURL=free.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{clamp,ease,fitText,lerp,progress,rand,stagger,tween}from"./anim.js";export{noise2D,noise3D,noise4D}from"./noise.js";export{drag,fittsTime,INPUT_DEFAULTS,cursor,handPath,reach,scroll,tap,typing}from"./input.js";export{aimed}from"@allyhub/scenery";export{drawOn,interpolatePath,normalizePath,pathLength,pointAtLength,tangentAtLength,trimPath}from"./paths.js";export{ROUTE_DEFAULTS,routeConnections,routeCrossings}from"./route.js";export{FIT_LINES_PRECISION,fitLines,textLines}from"@allyhub/image-sdk/dom";export{custom,defineComponent,LAYER_OPTIONS}from"@allyhub/image-sdk/define";export{adjustment,fill,group,shape,textLayer}from"@allyhub/image-sdk";export{say}from"./parts.js";export{defineConfig,definePiece,paged}from"./piece.js";export{asset,boolean,color,list,number,object,text,time}from"@allyhub/image-sdk/props";export{countText,splitText}from"@allyhub/image-sdk/text";export{pictureProblem}from"@allyhub/image-sdk/picture";export{PICTURE_DEFAULTS}from"@allyhub/piece";export{markRuns,readMarks,withoutMarks}from"@allyhub/piece";
@@ -0,0 +1,28 @@
1
+ export * from "./free.js";
2
+ export { BOUND, sdkFor, type BoundSdk, type Sdk, type SdkModule, } from "./module.js";
3
+ export type { FootageFn, PartFn, TakeFn } from "./parts.js";
4
+ export type { PictureFn } from "@allyhub/image-sdk/picture";
5
+ export type { VideoFn } from "./piece.js";
6
+ /**
7
+ * A video: the default export of a video's module. The function returns
8
+ * its parts, in order.
9
+ */
10
+ export declare const video: import("./piece.js").VideoFn;
11
+ /** A part of a video. */
12
+ export declare const part: import("./parts.js").PartFn;
13
+ /**
14
+ * Speech from a recording (an import, or a path) with its word times
15
+ * beside it, or a stretch of another video item of the project.
16
+ */
17
+ export declare const take: import("./parts.js").TakeFn;
18
+ /**
19
+ * A video on the part: footage("./broll.mp4", { at: "inbox", dur: 1.5 }).
20
+ * Without a file it is the part's own take, in sync with its speech.
21
+ */
22
+ export declare const footage: import("./parts.js").FootageFn;
23
+ /**
24
+ * A still on the part, in CSS's terms: picture({ src: plate, fit: "cover",
25
+ * position: [0.62, 0.4] }).
26
+ */
27
+ export declare const picture: import("@allyhub/image-sdk/picture").PictureFn;
28
+ //# 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
+ import{footageFor as r,partFor as t,takeFor as e}from"./parts.js";import{pictureFor as p}from"@allyhub/image-sdk/picture";import{videoFor as i}from"./piece.js";import{writtenIn as m}from"@allyhub/image-sdk/written";export*from"./free.js";export{BOUND,sdkFor}from"./module.js";const o=m({file:""});export const video=i(o),part=t(o),take=e(o),footage=r(o),picture=p(o);
@@ -45,12 +45,38 @@ export declare const INPUT_DEFAULTS: {
45
45
  };
46
46
  seed: number;
47
47
  };
48
+ /**
49
+ * A mouse's cursor: a hand's movement without its errors (no overshoot,
50
+ * scatter, lateness, bow, tremor or variation from move to move), timed
51
+ * by the same Fitts' law; and the seconds it rests after a click before
52
+ * it moves on.
53
+ */
54
+ cursor: {
55
+ reach: {
56
+ overshoot: number;
57
+ peak: number;
58
+ vary: number;
59
+ fitts: {
60
+ a: number;
61
+ b: number;
62
+ };
63
+ scatter: number;
64
+ jitter: number;
65
+ bow: number;
66
+ tremor: {
67
+ px: number;
68
+ frequency: number;
69
+ };
70
+ seed: number;
71
+ };
72
+ after: number;
73
+ };
48
74
  /** A target's size when a step gives none, px. */
49
75
  size: number;
50
- /** Seconds the pointer rests on a target before it presses, and a press's hold. */
76
+ /** Seconds a cursor or a hand rests on a target before it presses, and a press's hold. */
51
77
  dwell: number;
52
78
  hold: number;
53
- /** A drag: the finger's rest before it moves and after, s; its Fitts' b (a drag is slower than a move); its tremor while down. */
79
+ /** A drag: the rest after it is pressed and before it is let go, s; its Fitts' law (a drag is slower than a move); a finger's tremor while it is down. */
54
80
  drag: {
55
81
  settle: number;
56
82
  release: number;
@@ -131,12 +157,12 @@ export declare function reach(from: Point, to: Point, at: {
131
157
  size?: number;
132
158
  index?: number;
133
159
  }, opts?: ReachOptions): Movement;
134
- /** One step of a pointer: it lands on `to` by `at`, or presses there at `at`. */
135
- export interface PointerStep {
160
+ /** One step of a path: it lands on `to` by `at`, or presses there at `at`. */
161
+ export interface PathStep {
136
162
  /** Seconds: when it lands, or with `press`, when it presses. */
137
163
  at: number;
138
164
  to: Point;
139
- /** The target's size, px: how far it may land from its centre and how long the move takes. */
165
+ /** The target's size, px: how long the move takes (and, for a hand, how far it may land from its centre). */
140
166
  size?: number;
141
167
  /** It presses there (a click, or a finger's tap). */
142
168
  press?: boolean;
@@ -146,21 +172,36 @@ export interface PointerStep {
146
172
  dwell?: number;
147
173
  hold?: number;
148
174
  }
149
- export interface PointerOptions extends ReachOptions {
175
+ /** One step of a cursor: a path's step, and how long it rests after its click. */
176
+ export interface CursorStep extends PathStep {
177
+ /** Seconds it rests after this click before it moves on; default the cursor's `after`. */
178
+ after?: number;
179
+ }
180
+ export interface HandPathOptions extends ReachOptions {
181
+ /** Where it is before its first step. */
182
+ from: Point;
183
+ steps: readonly PathStep[];
184
+ dwell?: number;
185
+ hold?: number;
186
+ }
187
+ export interface CursorOptions extends ReachOptions {
150
188
  /** Where it is before its first step. */
151
189
  from: Point;
152
- steps: readonly PointerStep[];
190
+ steps: readonly CursorStep[];
153
191
  dwell?: number;
154
192
  hold?: number;
193
+ /** Seconds it rests after a click before it moves on (`INPUT_DEFAULTS.cursor.after`). */
194
+ after?: number;
155
195
  }
156
- export interface PointerState {
196
+ export interface InputState {
157
197
  x: number;
158
198
  y: number;
159
199
  /** Pressed at that moment. */
160
200
  down: boolean;
161
201
  }
162
- export interface Pointer {
163
- at: (t: number) => PointerState;
202
+ /** Where a cursor or a hand is over time. */
203
+ export interface InputPath {
204
+ at: (t: number) => InputState;
164
205
  /** Each move, in order. */
165
206
  moves: readonly Movement[];
166
207
  /** Each press: when it goes down and comes up, and where. */
@@ -171,13 +212,23 @@ export interface Pointer {
171
212
  }[];
172
213
  }
173
214
  /**
174
- * A pointer (a mouse's, or a finger hovering a screen) going from place to
175
- * place: each step an aimed movement that lands on its target by its
176
- * moment, resting `dwell` before a press, which goes down at the step's
177
- * moment and up `hold` later (each drawn a little differently); a hand's
178
- * tremor on it throughout.
215
+ * A mouse's cursor going from place to place: each step a glide that lands
216
+ * where it is aimed by its moment (timed by Fitts' law, with none of a
217
+ * hand's overshoot, scatter, bow or tremor), resting `dwell` before a
218
+ * click, which goes down at the step's moment and up `hold` later, and
219
+ * resting `after` before it moves on. A hand's errors are options
220
+ * (`overshoot`, `scatter`, `bow`, `tremor`…), none by default.
221
+ */
222
+ export declare function cursor(opts: CursorOptions): InputPath;
223
+ /**
224
+ * A hand's path from place to place (a finger hovering a screen, or a
225
+ * thing a hand holds to it): each step an aimed movement that lands on its
226
+ * target by its moment, a little past it and back and a little off,
227
+ * resting `dwell` before a press, which goes down at the step's moment and
228
+ * up `hold` later (each drawn a little differently); a hand's tremor on it
229
+ * throughout.
179
230
  */
180
- export declare function pointer(opts: PointerOptions): Pointer;
231
+ export declare function handPath(opts: HandPathOptions): InputPath;
181
232
  export interface TapOptions {
182
233
  /** When the finger touches, s. */
183
234
  at: number;
@@ -197,7 +248,7 @@ export interface Tap {
197
248
  /** When it touches and when it lifts: a phone highlights on the first and acts on the second. */
198
249
  down: number;
199
250
  up: number;
200
- at: (t: number) => PointerState & {
251
+ at: (t: number) => InputState & {
201
252
  /** How much of the fingertip touches, 0 to 1. */
202
253
  contact: number;
203
254
  };
@@ -205,6 +256,8 @@ export interface Tap {
205
256
  /** A finger's tap: down at its moment, a little off the target's centre, sliding a little, up after its hold. */
206
257
  export declare function tap(opts: TapOptions): Tap;
207
258
  export interface DragOptions extends ReachOptions {
259
+ /** A mouse's (the default: a cursor's glide, still while the button is down) or a finger's on a screen (a hand's movement, trembling while it is down). */
260
+ by?: "mouse" | "finger";
208
261
  /** Where it is pressed and where it is let go. */
209
262
  from: Point;
210
263
  to: Point;
@@ -214,7 +267,7 @@ export interface DragOptions extends ReachOptions {
214
267
  duration?: number;
215
268
  /** The target's size, px (how far from it it lands, and how long it takes). */
216
269
  size?: number;
217
- /** Seconds the finger rests after it is pressed and before it is let go. */
270
+ /** Seconds it rests after it is pressed and before it is let go. */
218
271
  settle?: number;
219
272
  release?: number;
220
273
  index?: number;
@@ -227,12 +280,13 @@ export interface Drag {
227
280
  up: number;
228
281
  /** Where it is let go. */
229
282
  to: Point;
230
- at: (t: number) => PointerState;
283
+ at: (t: number) => InputState;
231
284
  }
232
285
  /**
233
- * A drag: pressed at its moment, a rest, then an aimed movement to the
234
- * target (a quick start, a longer settle, past it and back), a rest, and
235
- * let go; a hand's tremor on it while it is down.
286
+ * A drag: pressed at its moment, a rest, then a movement to the target, a
287
+ * rest, and let go. A mouse's glides there and lands where it is aimed; a
288
+ * finger's is a hand's (a quick start, a longer settle, past it and back),
289
+ * with a tremor while it is down.
236
290
  */
237
291
  export declare function drag(opts: DragOptions): Drag;
238
292
  export interface ScrollOptions {
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{aimAt as S,aimShape as N,bandNoise as q,unit3 as v}from"@allyhub/scenery";export const INPUT_DEFAULTS={reach:{overshoot:.06,peak:.38,vary:.5,fitts:{a:.2,b:.15},scatter:.1,jitter:.02,bow:.06,tremor:{px:.3,frequency:9},seed:1},cursor:{reach:{overshoot:0,peak:.38,vary:0,fitts:{a:.2,b:.15},scatter:0,jitter:0,bow:0,tremor:{px:0,frequency:9},seed:1},after:.3},size:40,dwell:.12,hold:.1,drag:{settle:.08,release:.06,fitts:{a:.25,b:.2},tremor:{px:.8,frequency:8}},tap:{slide:1.2,grow:.03},wheel:{notch:100,animate:.15,interval:.05,pause:.25,burst:4},flick:{contact:.12,decay:.4995,band:800,spring:.12},typing:{cps:9,spread:.35,word:1.5,mark:2,think:{chance:.08,seconds:.35},notice:.3,backspace:.07,seed:1}};function z(t,r=INPUT_DEFAULTS.reach){return{...r,...t,fitts:{...r.fitts,...t?.fitts},tremor:{...r.tremor,...t?.tremor}}}const k=(t,r,o)=>2*v(t,r,o)-1,p=(t,r,o)=>Math.sqrt(-2*Math.log(v(t,r,o)))*Math.cos(2*Math.PI*v(t^625341585,r,o));export function reachProblem(t,r){const o=[["scatter",t.scatter],["jitter",t.jitter],["bow",t.bow],["vary",t.vary],["fitts.a",t.fitts?.a],["fitts.b",t.fitts?.b],["tremor.px",t.tremor?.px],["tremor.frequency",t.tremor?.frequency]];for(const[e,a]of o)if(a!==void 0&&!(Number.isFinite(a)&&a>=0))return`${r}'s ${e} is a number from 0, not ${String(a)}`;if(t.overshoot!==void 0&&!(t.overshoot>=-.5&&t.overshoot<=1))return`${r}'s overshoot is a share from -0.5 to 1, not ${String(t.overshoot)}`;if(t.peak!==void 0&&!(t.peak>=.15&&t.peak<=.6))return`${r}'s peak is a share from 0.15 to 0.6, not ${String(t.peak)}`;if(t.seed!==void 0&&!Number.isInteger(t.seed))return`${r}'s seed is a whole number, not ${String(t.seed)}`}export function fittsTime(t,r,o={}){const e={...INPUT_DEFAULTS.reach.fitts,...o};return e.a+e.b*Math.log2(1+t/Math.max(1,r))}export function reach(t,r,o,e={}){const a=reachProblem(e,"reach");if(a)throw new Error(a);const i=z(e),h=o.index??0,l=o.size??INPUT_DEFAULTS.size,m=[r[0]+i.scatter*l*p(i.seed,h,11),r[1]+i.scatter*l*p(i.seed,h,12)],w=m[0]-t[0],y=m[1]-t[1],d=Math.hypot(w,y),s=Math.max(.05,(o.duration??fittsTime(d,l,i.fitts))*(1+.15*i.vary*k(i.seed,h,13))),n=o.end+i.jitter*p(i.seed,h,14),c=n-s,f=N({overshoot:i.overshoot,peak:i.peak,vary:i.vary,seed:i.seed,index:h}),u=i.bow*k(i.seed,h,15);return{start:c,end:n,from:t,to:m,bow:u,progress:b=>S(f,b),at(b){if(b<=c)return t;if(b>=n)return m;const g=(b-c)/s,x=S(f,g),M=u*Math.sin(Math.PI*Math.min(1,g));return[t[0]+w*x-y*M,t[1]+y*x+w*M]}}}function E(t,r,o){if(o.px<=0)return()=>[0,0];const e={center:o.frequency,spread:o.frequency/5},a=q(t+r*31,101,e),i=q(t+r*31,102,e);return h=>[o.px*a(h),o.px*i(h)]}function I(t,r,o){const e=z(t,r),a=t.dwell??INPUT_DEFAULTS.dwell,i=t.hold??INPUT_DEFAULTS.hold,h=[],l=[];let m=t.from,w=-1/0;for(const[d,s]of t.steps.entries()){const n=s.press?(s.dwell??a)*(1+.4*e.vary*k(e.seed,d,21)):0,c=s.size??INPUT_DEFAULTS.size,f=s.at-n,u=s.duration??fittsTime(Math.hypot(s.to[0]-m[0],s.to[1]-m[1]),c,e.fitts),b=f-u<w?Math.max(.1,f-w):s.duration,g=reach(m,s.to,{end:f,...b===void 0?{}:{duration:b},size:c,index:d},e);if(h.push(g),s.press){const x=(s.hold??i)*(1+.4*e.vary*k(e.seed,d,22));l.push({down:s.at,up:s.at+x,at:g.to}),o&&(w=s.at+x+o(s))}m=g.to}const y=E(e.seed,0,e.tremor);return{moves:h,presses:l,at(d){let s=t.from;for(const f of h)d>=f.start&&(s=f.at(d));const[n,c]=y(d);return{x:s[0]+n,y:s[1]+c,down:l.some(f=>d>=f.down&&d<f.up)}}}}export function cursor(t){const r=reachProblem(t,"cursor");if(r)throw new Error(r);const o=INPUT_DEFAULTS.cursor,e=t.after??o.after;if(!(Number.isFinite(e)&&e>=0))throw new Error(`cursor's after is a number of seconds from 0, not ${String(e)}`);return I(t,o.reach,a=>a.after??e)}export function handPath(t){const r=reachProblem(t,"handPath");if(r)throw new Error(r);return I(t,INPUT_DEFAULTS.reach,void 0)}export function tap(t){const r=t.seed??INPUT_DEFAULTS.reach.seed,o=t.index??0,e=t.size??INPUT_DEFAULTS.size,a=t.scatter??INPUT_DEFAULTS.reach.scatter,i=t.slide??INPUT_DEFAULTS.tap.slide,h=t.grow??INPUT_DEFAULTS.tap.grow,l=(t.hold??INPUT_DEFAULTS.hold)*(1+.3*k(r,o,31)),m=t.to[0]+a*e*p(r,o,32),w=t.to[1]+a*e*p(r,o,33),y=2*Math.PI*v(r,o,34),d=t.at,s=d+l;return{down:d,up:s,at(n){const c=Math.min(1,Math.max(0,(n-d)/l)),f=i*(c*c*(3-2*c)),u=n>=d&&n<s,b=u?Math.min(1,(n-d)/h,(s-n)/h):0;return{x:m+f*Math.cos(y),y:w+f*Math.sin(y),down:u,contact:b}}}}const P=["mouse","finger"];export function drag(t){const r=reachProblem(t,"drag");if(r)throw new Error(r);if(t.by!==void 0&&!P.includes(t.by))throw new Error(`drag's by is "mouse" or "finger", not ${JSON.stringify(t.by)}`);const o=INPUT_DEFAULTS.drag,e=t.by==="finger",a=z(t,{...e?INPUT_DEFAULTS.reach:INPUT_DEFAULTS.cursor.reach,fitts:o.fitts,tremor:e?o.tremor:INPUT_DEFAULTS.cursor.reach.tremor}),i=t.index??0,h=(t.settle??o.settle)*(1+.4*a.vary*k(a.seed,i,41)),l=(t.release??o.release)*(1+.4*a.vary*k(a.seed,i,42)),m=t.size??INPUT_DEFAULTS.size,w=Math.hypot(t.to[0]-t.from[0],t.to[1]-t.from[1]),y=t.duration??fittsTime(w,m,a.fitts),d=reach(t.from,t.to,{end:t.at+h+y,duration:y,size:m,index:i},{...a,jitter:0}),s=E(a.seed,i+1e3,a.tremor),n=d.end+l;return{down:t.at,start:d.start,end:d.end,up:n,to:d.to,at(c){const f=d.at(c),u=c>=t.at&&c<n,b=u?Math.min(1,(c-t.at)/.05,(n-c)/.05):0,[g,x]=s(c);return{x:f[0]+b*g,y:f[1]+b*x,down:u}}}}export function scroll(t){const r=t.seed??INPUT_DEFAULTS.reach.seed,o=t.index??0,e=t.by<0?-1:1;if((t.kind??"flick")==="wheel"){const n={...INPUT_DEFAULTS.wheel,...t.wheel},c=Math.max(1,Math.round(Math.abs(t.by)/n.notch)),f=t.by/c,u=[];let b=t.at;for(let x=0;x<c;x++){u.push(b);const M=(x+1)%Math.max(1,n.burst)===0?n.pause:n.interval;b+=M*(1+.4*k(r,o*997+x,51))}const g=x=>1-(1-x)**3;return{start:t.at,end:(u.at(-1)??t.at)+n.animate,at(x){let M=0;for(const $ of u)x>$&&(M+=f*g(Math.min(1,(x-$)/n.animate)));return M}}}const a={...INPUT_DEFAULTS.flick,...t.flick},i=a.contact*(1+.3*k(r,o,52)),h=Math.abs(t.by)/(i/2+a.decay),l=h*i/2,m=t.at+i,w=n=>{if(n<=t.at)return 0;if(n<=m){const c=(n-t.at)/i;return l*c*c}return l+h*a.decay*(1-Math.exp(-(n-m)/a.decay))},y=t.limit===void 0?1/0:Math.abs(t.limit);let d=1/0;Math.abs(t.by)>y&&(y<=l?d=t.at+i*Math.sqrt(y/l):d=m-a.decay*Math.log(1-(y-l)/(h*a.decay)));const s=n=>(1-1/(n*.55/a.band+1))*a.band;return{start:t.at,end:m+a.decay*5,at(n){const c=w(n);if(c<=y)return e*c;const f=Math.max(0,n-d),u=(1+f/a.spring)*Math.exp(-f/a.spring);return e*(y+s(c-y)*u)}}}const j=t=>t!==void 0&&/[\p{L}\p{N}]/u.test(t);export function typing(t,r){const o=INPUT_DEFAULTS.typing,e={...o,...r,think:{...o.think,...r.think}};if(!(e.cps>0))throw new Error(`typing's cps is above 0, not ${String(e.cps)}`);const a=Array.from(t),i=[],h=[];let l=e.at,m=0;const w=(s,n)=>{const c=1/e.cps,f=e.spread,u=p(e.seed,m,61);let b=c*Math.exp(f*u-f*f/2);return!j(s)&&j(n)&&(b*=e.word,v(e.seed,m,62)<e.think.chance&&(b+=e.think.seconds)),s!==void 0&&/[.,;:!?。,、!?]/u.test(s)&&(b*=e.mark),b},y=(s,n,c)=>{i.length>0&&(l+=c??w(s,n)),i.push({t:l,key:n}),m++};let d;for(const[s,n]of a.entries()){for(const c of e.mistakes??[]){if(c.at!==s)continue;const f=Array.from(c.typed);for(const u of f)y(d,u),d=u;l+=e.notice*(1+.3*k(e.seed,m,63));for(let u=0;u<f.length;u++)y(d,"Backspace",u===0?0:e.backspace);d=a[s-1]}y(d,n),h[s]=l,d=n}return{keys:i,times:h,end:l,text(s){let n=[];for(const c of i){if(c.t>s)break;c.key==="Backspace"?n=n.slice(0,-1):n.push(c.key)}return n.join("")}}}