allyhub 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 (1569) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/NOTICE +122 -42
  3. package/client.d.ts +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +4 -4
  6. package/dist/commands/check.js +1 -1
  7. package/dist/commands/cloud-tools.js +13 -7
  8. package/dist/commands/cloud.js +1 -1
  9. package/dist/commands/contributed.js +2 -0
  10. package/dist/commands/dev.js +2 -2
  11. package/dist/commands/doctor.js +4 -4
  12. package/dist/commands/extensions.js +3 -0
  13. package/dist/commands/frames/common.js +1 -1
  14. package/dist/commands/frames/compare.js +1 -1
  15. package/dist/commands/frames/cuts.js +1 -1
  16. package/dist/commands/frames/doc.js +1 -1
  17. package/dist/commands/frames/overlay.js +2 -0
  18. package/dist/commands/frames/piece.js +1 -1
  19. package/dist/commands/frames/sheet.js +1 -1
  20. package/dist/commands/frames.js +9 -9
  21. package/dist/commands/index.js +1 -1
  22. package/dist/commands/inspect/combos.js +2 -2
  23. package/dist/commands/inspect/common.js +2 -2
  24. package/dist/commands/inspect/facts.js +3 -3
  25. package/dist/commands/inspect/index.js +1 -1
  26. package/dist/commands/inspect/layout.js +1 -1
  27. package/dist/commands/inspect/views.js +2 -0
  28. package/dist/commands/mail.js +9 -0
  29. package/dist/commands/render.js +2 -2
  30. package/dist/fields.js +1 -1
  31. package/dist/help.js +4 -4
  32. package/dist/main.js +4 -4
  33. package/dist/media.js +1 -1
  34. package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
  35. package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
  36. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
  37. package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
  38. package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
  39. package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
  40. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
  41. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
  42. package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
  43. package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
  44. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
  45. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
  46. package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
  47. package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
  48. package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
  49. package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
  50. package/dist/node_modules/@allyhub/3d-extension/package.json +295 -0
  51. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  52. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  53. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  54. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
  55. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
  56. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
  57. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
  58. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
  59. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
  60. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
  61. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
  62. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
  63. package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
  64. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
  65. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  66. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
  67. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
  68. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
  69. package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
  70. package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
  71. package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
  72. package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
  73. package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
  74. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
  75. package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
  76. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
  77. package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
  78. package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
  79. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
  81. package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
  82. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  83. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
  84. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
  85. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
  86. package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
  87. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
  88. package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
  89. package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
  90. package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
  91. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
  92. package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
  93. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
  94. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
  95. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
  96. package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
  97. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
  98. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
  99. package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
  100. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
  101. package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
  102. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
  103. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  104. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
  105. package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
  106. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
  107. package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
  108. package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
  109. package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
  110. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
  111. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  112. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
  113. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
  114. package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
  115. package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
  116. package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
  117. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
  118. package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
  119. package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
  120. package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
  121. package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
  122. package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
  123. package/dist/node_modules/@allyhub/build/package.json +1 -1
  124. package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
  125. package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
  126. package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
  127. package/dist/node_modules/@allyhub/canvas-extension/package.json +106 -0
  128. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +27 -0
  129. package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
  131. package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
  132. package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
  133. package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
  134. package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
  135. package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
  136. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  137. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  138. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  139. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  140. package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
  141. package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
  142. package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
  143. package/dist/node_modules/@allyhub/check/package.json +1 -1
  144. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
  145. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
  146. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  147. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
  148. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +43 -0
  149. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  150. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +25 -0
  151. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
  152. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  153. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
  154. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  155. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
  156. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
  157. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  158. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
  159. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
  160. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
  161. package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
  162. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
  163. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
  164. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
  165. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
  166. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
  167. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
  168. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  169. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
  170. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
  171. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  172. package/dist/node_modules/@allyhub/components/package.json +1 -1
  173. package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
  174. package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
  175. package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
  176. package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
  177. package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
  178. package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
  179. package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
  180. package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
  181. package/dist/node_modules/@allyhub/components/registry.json +6 -0
  182. package/dist/node_modules/@allyhub/components/src/callout.ts +80 -4
  183. package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
  184. package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
  185. package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
  186. package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
  187. package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
  188. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  189. package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
  190. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  191. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  192. package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
  193. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  194. package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
  195. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  196. package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
  197. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  198. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
  199. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  200. package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
  201. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  202. package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
  203. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  204. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  205. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
  206. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  207. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  208. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  209. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  210. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  211. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  212. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  213. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  214. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  215. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  216. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  217. package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
  218. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  219. package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
  220. package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
  221. package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
  222. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  223. package/dist/node_modules/@allyhub/doc/dist/html.js +243 -56
  224. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  225. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  226. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  227. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
  228. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  229. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  230. package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
  231. package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
  232. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  233. package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
  234. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
  235. package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
  236. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
  237. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
  238. package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
  239. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
  240. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
  241. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
  242. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
  243. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
  244. package/dist/node_modules/@allyhub/doc-extension/package.json +187 -0
  245. package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
  246. package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
  247. package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
  248. package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
  249. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
  250. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
  251. package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
  252. package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
  253. package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
  254. package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
  255. package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
  256. package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
  257. package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
  258. package/dist/node_modules/@allyhub/export/package.json +1 -1
  259. package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
  260. package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
  261. package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
  262. package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
  263. package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
  264. package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
  265. package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
  266. package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
  267. package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
  268. package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
  269. package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
  270. package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
  271. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  272. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  273. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  274. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  275. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  276. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  277. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  278. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
  279. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  280. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
  281. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  282. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  283. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  284. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  285. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  286. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  287. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  288. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  289. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  290. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  291. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  292. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  293. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  294. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  295. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  296. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
  297. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  298. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  299. package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
  300. package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
  301. package/dist/node_modules/@allyhub/i18n/package.json +13 -0
  302. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  303. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  304. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  305. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  306. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  307. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  308. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  309. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  310. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  311. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  312. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  313. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  314. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  315. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  316. package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
  317. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
  318. package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
  319. package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
  320. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
  321. package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
  322. package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
  323. package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
  324. package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
  325. package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
  326. package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
  327. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
  328. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
  329. package/dist/node_modules/@allyhub/image-extension/package.json +276 -0
  330. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +44 -0
  331. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  332. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  333. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  334. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  335. package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
  336. package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
  337. package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
  338. package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
  339. package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
  340. package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
  341. package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
  342. package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
  343. package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
  344. package/dist/node_modules/@allyhub/image-render/package.json +14 -0
  345. package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
  346. package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
  347. package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
  348. package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
  349. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
  350. package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
  351. package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
  352. package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
  353. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  354. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  355. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  356. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  357. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  358. package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
  359. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  360. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  361. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  362. package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
  363. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  364. package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
  365. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  366. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  367. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  368. package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
  369. package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
  370. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  371. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
  372. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
  373. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
  374. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  375. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  376. package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
  377. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  378. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  379. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  380. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  381. package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
  382. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  383. package/dist/node_modules/@allyhub/media/NOTICE +1 -42
  384. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
  385. package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
  386. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
  387. package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
  388. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
  389. package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
  390. package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
  391. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
  392. package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
  393. package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
  394. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/media/package.json +1 -1
  396. package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
  397. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
  398. package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
  399. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
  400. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
  401. package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
  402. package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
  403. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
  404. package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
  405. package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
  406. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
  407. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
  408. package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
  409. package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
  410. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
  411. package/dist/node_modules/@allyhub/media-extension/package.json +62 -0
  412. package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
  413. package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
  414. package/dist/node_modules/@allyhub/model/package.json +1 -1
  415. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  416. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  417. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  418. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  419. package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
  420. package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
  421. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  422. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  423. package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
  424. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
  425. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  426. package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
  427. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  428. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  429. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  430. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  431. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  432. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  433. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  434. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  435. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  436. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  437. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
  438. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
  439. package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
  440. package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
  441. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  442. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  443. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  444. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  445. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  446. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  447. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  448. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  449. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  450. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  451. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  452. package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
  453. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  454. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  455. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  456. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  457. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  458. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  459. package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
  460. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  461. package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
  462. package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
  463. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  464. package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
  465. package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
  466. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  467. package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
  468. package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
  469. package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
  470. package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
  471. package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
  472. package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
  473. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  474. package/dist/node_modules/@allyhub/project/package.json +1 -1
  475. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
  476. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  477. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  478. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  479. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  480. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  481. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
  482. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  483. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
  484. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  485. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  486. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  487. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
  488. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  489. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  490. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  491. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
  492. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  493. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  494. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  495. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  496. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  497. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  498. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
  499. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  500. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  501. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  502. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  503. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  504. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  505. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  506. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  507. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  508. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  509. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  510. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  511. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  512. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  513. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  514. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  515. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  516. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  517. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  518. package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
  519. package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
  520. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  521. package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
  522. package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
  523. package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
  524. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  525. package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
  526. package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
  527. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  528. package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
  529. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  530. package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
  531. package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
  532. package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
  533. package/dist/node_modules/@allyhub/render/package.json +1 -5
  534. package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
  535. package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
  536. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  537. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  538. package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
  539. package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
  540. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  541. package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
  542. package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
  543. package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
  544. package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
  545. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  546. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  547. package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
  548. package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
  549. package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
  550. package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
  551. package/dist/node_modules/@allyhub/runtime/package.json +1 -5
  552. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  553. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  554. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  555. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  556. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  557. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  558. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  559. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  560. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  561. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  562. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  563. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  564. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
  565. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  566. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  567. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  568. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  569. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
  570. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
  571. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
  572. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
  573. package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
  574. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
  575. package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
  576. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +2 -2
  577. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  578. package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
  579. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
  580. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  581. package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
  582. package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
  583. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
  584. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
  585. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
  586. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
  587. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
  588. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
  589. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
  590. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
  591. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
  592. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
  593. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
  594. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
  595. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
  596. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
  597. package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
  598. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  599. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  600. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  601. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  602. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  603. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  604. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  605. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  606. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  607. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  608. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  609. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  610. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  611. package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
  612. package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
  613. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
  614. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
  615. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
  616. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
  617. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
  618. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
  619. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
  620. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
  621. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
  622. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
  623. package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
  624. package/dist/node_modules/@allyhub/sheet-extension/package.json +209 -0
  625. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  626. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  627. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  628. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  629. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  630. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  631. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  632. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  633. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  634. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  635. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  636. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  637. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  638. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  639. package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
  640. package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
  641. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
  642. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
  643. package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
  644. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
  645. package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
  646. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
  647. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
  648. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
  649. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
  650. package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
  651. package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
  652. package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
  653. package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
  654. package/dist/node_modules/@allyhub/slides-extension/package.json +246 -0
  655. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  656. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  657. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  658. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  659. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
  660. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  661. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  662. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  663. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  664. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  665. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  666. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  667. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  668. package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
  669. package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
  670. package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
  671. package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
  672. package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
  673. package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
  674. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  675. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  676. package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
  677. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  678. package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
  679. package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
  680. package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
  681. package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
  682. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
  683. package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
  684. package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
  685. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  686. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  687. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  688. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  689. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  690. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  691. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  692. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  693. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  694. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  695. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  696. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  697. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  698. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  699. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  700. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  701. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  702. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  703. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  704. package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
  705. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
  706. package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
  707. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
  708. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
  709. package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
  710. package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
  711. package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
  712. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
  713. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
  714. package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
  715. package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
  716. package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
  717. package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
  718. package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
  719. package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
  720. package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
  721. package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
  722. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
  723. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
  724. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
  725. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
  726. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
  727. package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
  728. package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
  729. package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
  730. package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
  731. package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
  732. package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
  733. package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
  734. package/dist/node_modules/@allyhub/video-extension/package.json +454 -0
  735. package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
  736. package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
  737. package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
  738. package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
  739. package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
  740. package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
  741. package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
  742. package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
  743. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
  744. package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
  745. package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
  746. package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
  747. package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
  748. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
  749. package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
  750. package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
  751. package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
  752. package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
  753. package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
  754. package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
  755. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  756. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  757. package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
  758. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  759. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  760. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  761. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  762. package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
  763. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  764. package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
  765. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  766. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  767. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  768. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  769. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  770. package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
  771. package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
  772. package/dist/node_modules/@allyhub/website/package.json +1 -1
  773. package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
  774. package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
  775. package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
  776. package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
  777. package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
  778. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
  779. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -0
  780. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
  781. package/dist/node_modules/@allyhub/website-extension/package.json +152 -0
  782. package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
  783. package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
  784. package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
  785. package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
  786. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
  787. package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
  788. package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
  789. package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
  790. package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
  791. package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
  792. package/dist/node_modules/@allyhub/x-extension/package.json +277 -0
  793. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +67 -0
  794. package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
  795. package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
  796. package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
  797. package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
  798. package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
  799. package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
  800. package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
  801. package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
  802. package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
  803. package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
  804. package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
  805. package/dist/node_modules/@allyhub/x-model/package.json +14 -0
  806. package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
  807. package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
  808. package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
  809. package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
  810. package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
  811. package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
  812. package/dist/node_modules/@allyhub/x-view/package.json +21 -0
  813. package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
  814. package/dist/package.json +16 -0
  815. package/dist/parameters.js +1 -1
  816. package/dist/presence.js +2 -0
  817. package/dist/project.js +1 -1
  818. package/dist/sdk-docs.js +1 -1
  819. package/dist/text/batch-text.js +1 -1
  820. package/dist/text/console-text.js +1 -1
  821. package/dist/text/facts-text.js +5 -5
  822. package/dist/text/format.js +2 -2
  823. package/dist/text/index.js +1 -1
  824. package/dist/tool-options.js +1 -1
  825. package/dist/version.js +1 -1
  826. package/dist/works.js +1 -1
  827. package/editor-web/assets/abnfDiagram-WEYOIA3C-CN5PiJYY.js +1 -0
  828. package/editor-web/assets/alt-BOVao_9S.js +4 -0
  829. package/editor-web/assets/architecture-WOLXFQ4H-BnvZtQYk.js +1 -0
  830. package/editor-web/assets/architectureDiagram-ZHVYKT53-tkcEcFQ8.js +36 -0
  831. package/editor-web/assets/arrow-up-DTP2yVSU.js +1 -0
  832. package/editor-web/assets/article-B6YCzhj8.js +73 -0
  833. package/editor-web/assets/audio-lines-Ti8-m7H2.js +1 -0
  834. package/editor-web/assets/blockDiagram-RJAE7QA3-DhqEIpie.js +140 -0
  835. package/editor-web/assets/c4Diagram-XDPPPE54-Bg9G95tl.js +38 -0
  836. package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
  837. package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
  838. package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
  839. package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
  840. package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
  841. package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
  842. package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
  843. package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
  844. package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
  845. package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
  846. package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
  847. package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
  848. package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
  849. package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
  850. package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
  851. package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
  852. package/editor-web/assets/calc-worker-B5-fDWnb.js +45 -0
  853. package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
  854. package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
  855. package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
  856. package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
  857. package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
  858. package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
  859. package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
  860. package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
  861. package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
  862. package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
  863. package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
  864. package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
  865. package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
  866. package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
  867. package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
  868. package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
  869. package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
  870. package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
  871. package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
  872. package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
  873. package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
  874. package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
  875. package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
  876. package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
  877. package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
  878. package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
  879. package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
  880. package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
  881. package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
  882. package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
  883. package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
  884. package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
  885. package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
  886. package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
  887. package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
  888. package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
  889. package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
  890. package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
  891. package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
  892. package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
  893. package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
  894. package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
  895. package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
  896. package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
  897. package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
  898. package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
  899. package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
  900. package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
  901. package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
  902. package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
  903. package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
  904. package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
  905. package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
  906. package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
  907. package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
  908. package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
  909. package/editor-web/assets/channel-C26aBI4o.js +1 -0
  910. package/editor-web/assets/chart-BOnxneyw.js +1 -0
  911. package/editor-web/assets/choice-O5nwc2N0.js +1 -0
  912. package/editor-web/assets/chunk-2E7WHVMD-C8Ve9lAa.js +88 -0
  913. package/editor-web/assets/chunk-4EMNKR2T-BDWwPUnT.js +1 -0
  914. package/editor-web/assets/chunk-55XCU76K-BQiNPKgx.js +1 -0
  915. package/editor-web/assets/chunk-7S6XSTFO-QoEt-6jf.js +2 -0
  916. package/editor-web/assets/chunk-AQDTSKZB-BeuwIv0-.js +72 -0
  917. package/editor-web/assets/chunk-DSNLSHJZ-BHW7sLAz.js +129 -0
  918. package/editor-web/assets/chunk-HAGFOTED-bbGED0hu.js +62 -0
  919. package/editor-web/assets/chunk-HNE4Q36P-FltWp8yo.js +1 -0
  920. package/editor-web/assets/chunk-NQOKRVIF-NeQzr6kH.js +213 -0
  921. package/editor-web/assets/chunk-UHW7PFBP-eA4-WUhn.js +1 -0
  922. package/editor-web/assets/chunk-VQ5W62QI-BPPv325z.js +1 -0
  923. package/editor-web/assets/chunk-WQQL4CDK-DOCIz7Te.js +10 -0
  924. package/editor-web/assets/chunk-YZO67HFG-Dc_ihQJi.js +1 -0
  925. package/editor-web/assets/chunk-ZAUX2LTX-CoqwCPSm.js +1 -0
  926. package/editor-web/assets/chunk-ZCHMQSOR-CZUQPkJx.js +2 -0
  927. package/editor-web/assets/classDiagram-v2-4MYWR3UA-DUh9c50k.js +217 -0
  928. package/editor-web/assets/collaborator-BJU5qwHd.js +1 -0
  929. package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
  930. package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
  931. package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
  932. package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
  933. package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
  934. package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
  935. package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
  936. package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
  937. package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
  938. package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
  939. package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
  940. package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
  941. package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
  942. package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
  943. package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
  944. package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
  945. package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
  946. package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
  947. package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
  948. package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
  949. package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
  950. package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
  951. package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
  952. package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
  953. package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
  954. package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
  955. package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
  956. package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
  957. package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
  958. package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
  959. package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
  960. package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
  961. package/editor-web/assets/createLucideIcon-B3B95oX5.js +1 -0
  962. package/editor-web/assets/cynefin-EF2NZ3EQ-DUTZiog0.js +1 -0
  963. package/editor-web/assets/cynefinDiagram-WF24UDRP-oAjpfbrU.js +62 -0
  964. package/editor-web/assets/dagre-NK4GIZVX-BrKvKCvb.js +4 -0
  965. package/editor-web/assets/diagram-CBK3MWTC-GekVRnmm.js +24 -0
  966. package/editor-web/assets/diagram-I5XIIV2D-CDd1VFRT.js +24 -0
  967. package/editor-web/assets/diagram-ODIL2UCW-535RISTn.js +30 -0
  968. package/editor-web/assets/diagram-PFBEJUXE-MXzzKCGG.js +3 -0
  969. package/editor-web/assets/diagram-RJA3I4VV-vKVwkQxY.js +41 -0
  970. package/editor-web/assets/diagram-TYUNFSNR-UwGAiQLx.js +200 -0
  971. package/editor-web/assets/dist-9ymlIMhr.js +1 -0
  972. package/editor-web/assets/dist-C6NqUEG4.js +16 -0
  973. package/editor-web/assets/dist-C9UGmCG9.js +6 -0
  974. package/editor-web/assets/dist-CAk5bjBm.js +1 -0
  975. package/editor-web/assets/dist-CKyfo5RM.js +340 -0
  976. package/editor-web/assets/dist-CRaWqNwq.js +37 -0
  977. package/editor-web/assets/dist-CwIBc7HQ.js +1 -0
  978. package/editor-web/assets/dist-DXRmkezB.js +38 -0
  979. package/editor-web/assets/dist-EKK5i0dG.js +219 -0
  980. package/editor-web/assets/dist-YW8hS4IM.js +9 -0
  981. package/editor-web/assets/dist-hHJlpLWo.js +5 -0
  982. package/editor-web/assets/dist-oYKcwWUj.js +4 -0
  983. package/editor-web/assets/dist-shKo7XVN.js +2 -0
  984. package/editor-web/assets/dist-wrKxBrVu.js +24 -0
  985. package/editor-web/assets/ebnfDiagram-V4P3TTPT-73yGokYa.js +1 -0
  986. package/editor-web/assets/elk-QONTBCTQ-BW6V9y6a.js +27 -0
  987. package/editor-web/assets/erDiagram-KYQIGQAA-BPqIJ22h.js +99 -0
  988. package/editor-web/assets/eventmodeling-K75KTNOO-_VZ8jvuy.js +1 -0
  989. package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +1 -0
  990. package/editor-web/assets/ganttDiagram-R7GPNTJY-DZ157JN2.js +292 -0
  991. package/editor-web/assets/gitGraph-VSP46ZUC-fmcNL9bq.js +1 -0
  992. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-DiZDyksR.js +106 -0
  993. package/editor-web/assets/hint-_AQWCDMj.js +1 -0
  994. package/editor-web/assets/index-BsstP-cI.js +28 -0
  995. package/editor-web/assets/index-DQRcmxBO.css +2 -0
  996. package/editor-web/assets/info-OHQRW6UA-V06620kN.js +1 -0
  997. package/editor-web/assets/infoDiagram-MVDRKAX5-CbIgheWX.js +2 -0
  998. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-D5oJQPkG.js +70 -0
  999. package/editor-web/assets/italic-CDhZKo_q.js +1 -0
  1000. package/editor-web/assets/journeyDiagram-BOSHW7O7-BZEv6JI4.js +139 -0
  1001. package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
  1002. package/editor-web/assets/kanban-definition-FNSA4HC5-CLG1R8y_.js +89 -0
  1003. package/editor-web/assets/layout-SWqqA0yV.js +1 -0
  1004. package/editor-web/assets/mermaid-parser.core-DxDwXM7z.js +7 -0
  1005. package/editor-web/assets/mermaid.core-tU55ZwVG.js +44 -0
  1006. package/editor-web/assets/mindmap-definition-6OY57UG3-CYf4zzAh.js +98 -0
  1007. package/editor-web/assets/minus-Cgmm6ncD.js +1 -0
  1008. package/editor-web/assets/packet-JDAUHWVQ-DsHeKYNL.js +1 -0
  1009. package/editor-web/assets/pegDiagram-ECIUJNBX-CQyh6TTa.js +1 -0
  1010. package/editor-web/assets/picture-B-I4V_JT.js +1 -0
  1011. package/editor-web/assets/pie-XZMESJXO-3vCIvpNB.js +1 -0
  1012. package/editor-web/assets/pieDiagram-GNMPY74T-DF5yGBLn.js +39 -0
  1013. package/editor-web/assets/progress-0B_TVsPi.js +6 -0
  1014. package/editor-web/assets/quadrantDiagram-D57K4MC3-B7pxlDYP.js +7 -0
  1015. package/editor-web/assets/radar-ABXABTNO-cpEA41mL.js +1 -0
  1016. package/editor-web/assets/railroad-I3PHUGI6-BLyy5R2c.js +1 -0
  1017. package/editor-web/assets/railroad-abnf-LNEFI6M7-Y-oyol19.js +1 -0
  1018. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-o58wHZsr.js +1 -0
  1019. package/editor-web/assets/railroad-peg-JR7BVNR7-CcD3PXZ8.js +1 -0
  1020. package/editor-web/assets/railroadDiagram-Y72NRBL7-BuCC4eyy.js +1 -0
  1021. package/editor-web/assets/react-BP46yLMB.js +1 -0
  1022. package/editor-web/assets/react-pgBZqVxJ.js +96 -0
  1023. package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
  1024. package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
  1025. package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
  1026. package/editor-web/assets/repeat-2-C5PCbNsg.js +1 -0
  1027. package/editor-web/assets/requirementDiagram-EQYSW5RA-Dp-JFGn4.js +84 -0
  1028. package/editor-web/assets/sankeyDiagram-SY24JHO5-rYuCqEvw.js +40 -0
  1029. package/editor-web/assets/schemas-Ewwjtbf4.js +1 -0
  1030. package/editor-web/assets/sequenceDiagram-BLEHNHQU-DryW8x6d.js +169 -0
  1031. package/editor-web/assets/session-DiI9KYRI.js +1 -0
  1032. package/editor-web/assets/slides-CCwgBcGH.js +1 -0
  1033. package/editor-web/assets/sound-CqryteNl.js +1 -0
  1034. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js +291 -0
  1035. package/editor-web/assets/strikethrough-DJckA35o.js +1 -0
  1036. package/editor-web/assets/svg-BjM9RazX.js +1 -0
  1037. package/editor-web/assets/swatch-DL3HqIjW.js +1 -0
  1038. package/editor-web/assets/swimlanes-B3ENRKFQ-BiRRhhbd.js +1 -0
  1039. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +8 -0
  1040. package/editor-web/assets/switch-DltnKqN-.js +1 -0
  1041. package/editor-web/assets/syntax-C0iPON60.js +18 -0
  1042. package/editor-web/assets/syntax-CC6QYhCz.js +1 -0
  1043. package/editor-web/assets/tabs-C-re0Kxn.js +1 -0
  1044. package/editor-web/assets/textarea-BGtPqZdB.js +105 -0
  1045. package/editor-web/assets/timeline-definition-JXYKGLGB-D-Q5ZtDF.js +120 -0
  1046. package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
  1047. package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
  1048. package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
  1049. package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
  1050. package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
  1051. package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
  1052. package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
  1053. package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
  1054. package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
  1055. package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
  1056. package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
  1057. package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
  1058. package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
  1059. package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
  1060. package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
  1061. package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
  1062. package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
  1063. package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
  1064. package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
  1065. package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
  1066. package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
  1067. package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
  1068. package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
  1069. package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
  1070. package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
  1071. package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
  1072. package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
  1073. package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
  1074. package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
  1075. package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
  1076. package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
  1077. package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
  1078. package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
  1079. package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
  1080. package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
  1081. package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
  1082. package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
  1083. package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
  1084. package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
  1085. package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
  1086. package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
  1087. package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
  1088. package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
  1089. package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
  1090. package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
  1091. package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
  1092. package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
  1093. package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
  1094. package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
  1095. package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
  1096. package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
  1097. package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
  1098. package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
  1099. package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
  1100. package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
  1101. package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
  1102. package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
  1103. package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
  1104. package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
  1105. package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
  1106. package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
  1107. package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
  1108. package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
  1109. package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
  1110. package/editor-web/assets/trash-2-Bjj6cWzP.js +1 -0
  1111. package/editor-web/assets/treeView-D4JQ5SDB-B6DDatXq.js +1 -0
  1112. package/editor-web/assets/treemap-SAJKECNS-D7j5ZhiI.js +1 -0
  1113. package/editor-web/assets/undo-2-yOSG766T.js +1 -0
  1114. package/editor-web/assets/usecaseDiagram-WPOLBNNX-tkrdKUJB.js +328 -0
  1115. package/editor-web/assets/vennDiagram-Q3Y3IDCW-Ch4XbSnD.js +34 -0
  1116. package/editor-web/assets/video-DXFiCNGc.js +1 -0
  1117. package/editor-web/assets/wardley-7MLQ67FV-Bynt7qNQ.js +1 -0
  1118. package/editor-web/assets/wardleyDiagram-IVAIDKWA-DRuSgm_L.js +78 -0
  1119. package/editor-web/assets/xychartDiagram-4URNHDU4-DctpvfkL.js +7 -0
  1120. package/editor-web/index.html +7 -3
  1121. package/package.json +21 -5
  1122. package/dist/audio-text.js +0 -6
  1123. package/dist/cloud-hearing.js +0 -2
  1124. package/dist/commands/audio.js +0 -4
  1125. package/dist/commands/inspect/contrast.js +0 -2
  1126. package/dist/commands/inspect/fidelity.js +0 -2
  1127. package/dist/commands/inspect/joins.js +0 -2
  1128. package/dist/commands/inspect/motion.js +0 -4
  1129. package/dist/commands/inspect/sheet.js +0 -3
  1130. package/dist/commands/inspect/timeline.js +0 -3
  1131. package/dist/commands/model.js +0 -3
  1132. package/dist/commands/reference-text.js +0 -5
  1133. package/dist/commands/reference.js +0 -2
  1134. package/dist/commands/scenery-input.js +0 -2
  1135. package/dist/commands/scenery.js +0 -7
  1136. package/dist/commands/sheet.js +0 -8
  1137. package/dist/commands/site.js +0 -4
  1138. package/dist/commands/slides.js +0 -3
  1139. package/dist/commands/voice.js +0 -3
  1140. package/dist/commands/words-text.js +0 -6
  1141. package/dist/commands/words.js +0 -2
  1142. package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
  1143. package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
  1144. package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
  1145. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
  1146. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
  1147. package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
  1148. package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
  1149. package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
  1150. package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
  1151. package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
  1152. package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
  1153. package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
  1154. package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
  1155. package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
  1156. package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
  1157. package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
  1158. package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
  1159. package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
  1160. package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
  1161. package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
  1162. package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
  1163. package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
  1164. package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
  1165. package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
  1166. package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
  1167. package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
  1168. package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
  1169. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  1170. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  1171. package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
  1172. package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
  1173. package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
  1174. package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
  1175. package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
  1176. package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
  1177. package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
  1178. package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
  1179. package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
  1180. package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
  1181. package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
  1182. package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
  1183. package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
  1184. package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
  1185. package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
  1186. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
  1187. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
  1188. package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
  1189. package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
  1190. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
  1191. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
  1192. package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
  1193. package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
  1194. package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
  1195. package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
  1196. package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
  1197. package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
  1198. package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
  1199. package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
  1200. package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
  1201. package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
  1202. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
  1203. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
  1204. package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
  1205. package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
  1206. package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
  1207. package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
  1208. package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
  1209. package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
  1210. package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
  1211. package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
  1212. package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
  1213. package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
  1214. package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
  1215. package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
  1216. package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
  1217. package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
  1218. package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
  1219. package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
  1220. package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
  1221. package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
  1222. package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
  1223. package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
  1224. package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
  1225. package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
  1226. package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
  1227. package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
  1228. package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
  1229. package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
  1230. package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
  1231. package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
  1232. package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
  1233. package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
  1234. package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
  1235. package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
  1236. package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
  1237. package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
  1238. package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
  1239. package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
  1240. package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
  1241. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
  1242. package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
  1243. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
  1244. package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
  1245. package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
  1246. package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
  1247. package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
  1248. package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
  1249. package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
  1250. package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
  1251. package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
  1252. package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
  1253. package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
  1254. package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
  1255. package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
  1256. package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
  1257. package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
  1258. package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
  1259. package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
  1260. package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
  1261. package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
  1262. package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
  1263. package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
  1264. package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
  1265. package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
  1266. package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
  1267. package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
  1268. package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
  1269. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  1270. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  1271. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  1272. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  1273. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  1274. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  1275. package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
  1276. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
  1277. package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
  1278. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
  1279. package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
  1280. package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
  1281. package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
  1282. package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
  1283. package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
  1284. package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
  1285. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
  1286. package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
  1287. package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
  1288. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
  1289. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
  1290. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
  1291. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
  1292. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
  1293. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
  1294. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
  1295. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
  1296. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
  1297. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
  1298. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
  1299. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
  1300. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
  1301. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
  1302. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
  1303. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
  1304. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
  1305. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
  1306. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
  1307. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
  1308. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
  1309. package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
  1310. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
  1311. package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
  1312. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
  1313. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
  1314. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
  1315. package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
  1316. package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
  1317. package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
  1318. package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
  1319. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
  1320. package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
  1321. package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
  1322. package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
  1323. package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
  1324. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
  1325. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
  1326. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
  1327. package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
  1328. package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
  1329. package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
  1330. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
  1331. package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
  1332. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
  1333. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
  1334. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
  1335. package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
  1336. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
  1337. package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
  1338. package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
  1339. package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
  1340. package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
  1341. package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
  1342. package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
  1343. package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
  1344. package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
  1345. package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
  1346. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
  1347. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
  1348. package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
  1349. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
  1350. package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
  1351. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
  1352. package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
  1353. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
  1354. package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
  1355. package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
  1356. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
  1357. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
  1358. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
  1359. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
  1360. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
  1361. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
  1362. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
  1363. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
  1364. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
  1365. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
  1366. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
  1367. package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
  1368. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
  1369. package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
  1370. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
  1371. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
  1372. package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
  1373. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
  1374. package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
  1375. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
  1376. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
  1377. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
  1378. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
  1379. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
  1380. package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
  1381. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
  1382. package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
  1383. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
  1384. package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
  1385. package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
  1386. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
  1387. package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
  1388. package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
  1389. package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
  1390. package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
  1391. package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
  1392. package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
  1393. package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
  1394. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
  1395. package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
  1396. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
  1397. package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
  1398. package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
  1399. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
  1400. package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
  1401. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
  1402. package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
  1403. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  1404. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
  1405. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
  1406. package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
  1407. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  1408. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  1409. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
  1410. package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
  1411. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
  1412. package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
  1413. package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
  1414. package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
  1415. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
  1416. package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
  1417. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
  1418. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
  1419. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  1420. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  1421. package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
  1422. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
  1423. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
  1424. package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
  1425. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  1426. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
  1427. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
  1428. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  1429. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
  1430. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
  1431. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
  1432. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
  1433. package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
  1434. package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
  1435. package/dist/text/timeline-text.js +0 -2
  1436. package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
  1437. package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
  1438. package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
  1439. package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
  1440. package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
  1441. package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
  1442. package/editor-web/assets/channel-hhT2g1yB.js +0 -1
  1443. package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
  1444. package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
  1445. package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
  1446. package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
  1447. package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
  1448. package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
  1449. package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
  1450. package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
  1451. package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
  1452. package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
  1453. package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
  1454. package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
  1455. package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
  1456. package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
  1457. package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
  1458. package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
  1459. package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
  1460. package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
  1461. package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
  1462. package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
  1463. package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
  1464. package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
  1465. package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
  1466. package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
  1467. package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
  1468. package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
  1469. package/editor-web/assets/dist-BRuoygB7.js +0 -2
  1470. package/editor-web/assets/dist-CK42vCmN.js +0 -550
  1471. package/editor-web/assets/dist-C_buDsM-.js +0 -36
  1472. package/editor-web/assets/dist-DNcXHhzn.js +0 -37
  1473. package/editor-web/assets/dist-HxiPpGXi.js +0 -10
  1474. package/editor-web/assets/dist-PF3VMsK7.js +0 -1
  1475. package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
  1476. package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
  1477. package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
  1478. package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
  1479. package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
  1480. package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
  1481. package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
  1482. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
  1483. package/editor-web/assets/hint-BwGc32IE.js +0 -1
  1484. package/editor-web/assets/index-BQKSbBSy.js +0 -69
  1485. package/editor-web/assets/index-CfD80QPx.css +0 -2
  1486. package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
  1487. package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
  1488. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
  1489. package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
  1490. package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
  1491. package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
  1492. package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
  1493. package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
  1494. package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
  1495. package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
  1496. package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
  1497. package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
  1498. package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
  1499. package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
  1500. package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
  1501. package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
  1502. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
  1503. package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
  1504. package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
  1505. package/editor-web/assets/react-BSSSHUyV.js +0 -101
  1506. package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
  1507. package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
  1508. package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
  1509. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
  1510. package/editor-web/assets/svg-BiObwMnL.js +0 -1
  1511. package/editor-web/assets/swatch-CwskGSEY.js +0 -105
  1512. package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
  1513. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
  1514. package/editor-web/assets/tabs-uHwPMprC.js +0 -1
  1515. package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
  1516. package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
  1517. package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
  1518. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
  1519. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
  1520. package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
  1521. package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
  1522. package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
  1523. /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
  1524. /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
  1525. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
  1526. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
  1527. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  1528. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  1529. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
  1530. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
  1531. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
  1532. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
  1533. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
  1534. /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
  1535. /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
  1536. /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
  1537. /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
  1538. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  1539. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  1540. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  1541. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  1542. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  1543. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  1544. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  1545. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  1546. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  1547. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  1548. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  1549. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  1550. /package/dist/node_modules/@allyhub/{runtime/dist → piece/dist/page}/locate.js +0 -0
  1551. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  1552. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  1553. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  1554. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  1555. /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
  1556. /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
  1557. /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
  1558. /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
  1559. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
  1560. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
  1561. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
  1562. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
  1563. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
  1564. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
  1565. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
  1566. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
  1567. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
  1568. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
  1569. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
@@ -4,6 +4,7 @@ import {
4
4
  custom,
5
5
  defineComponent,
6
6
  type GraphicLayer,
7
+ INPUT_DEFAULTS,
7
8
  lerp,
8
9
  list,
9
10
  type MediaInfo,
@@ -20,11 +21,11 @@ import { h, layout, text } from "@allyhub/sdk/dom";
20
21
 
21
22
  // A demo played on a screen: a window in the frame, a camera that goes in
22
23
  // on what is acted on, a cursor that travels and clicks, text typed into a
23
- // field, a button pressed. The cursor moves as a hand moves it (the SDK's
24
- // reach(): quick to start, a longer settle, a little past its target and
25
- // back, landing a little off; each move its own) and rests on a target
26
- // before it presses; keys go down in an uneven rhythm (the SDK's typing()).
27
- // A seed is another hand.
24
+ // field, a button pressed. The cursor moves as the SDK's cursor() does: an
25
+ // aimed movement (reach()) without a hand's errors, gliding to where it is
26
+ // aimed, resting on a target before it presses and after it lets go; a
27
+ // hand's overshoot, scatter and bow are `cursor.reach` options. Keys go
28
+ // down in an uneven rhythm (the SDK's typing()). A seed is another hand.
28
29
  //
29
30
  // The camera says where to look, and the screen stays flat: a place it
30
31
  // goes in on is not lifted off the page or set apart, and the rest is
@@ -137,17 +138,19 @@ export interface ScreenCursor {
137
138
  durMin?: number;
138
139
  durMax?: number;
139
140
  /**
140
- * How a hand moves it (the SDK's reach(): its overshoot, when its speed
141
- * peaks, how much each move differs, where it lands within its target,
142
- * how far its path bows; `seed` is the demo's). `false`, or a curve in
143
- * `ease` (here or a step's): every move that curve, bowed by `bow`.
141
+ * How it moves (the SDK's reach(): its overshoot, when its speed peaks,
142
+ * how much each move differs, where it lands within its target, how far
143
+ * its path bows; `seed` is the demo's). By default a cursor's: none of a
144
+ * hand's errors. `false`, or a curve in `ease` (here or a step's): every
145
+ * move that curve, bowed by `bow`.
144
146
  */
145
- hand?: Omit<ReachOptions, "fitts" | "jitter" | "tremor" | "seed"> | false;
147
+ reach?: Omit<ReachOptions, "fitts" | "jitter" | "tremor" | "seed"> | false;
146
148
  ease?: ScreenEase;
147
- /** With `hand: false` or an `ease`: how far its path bows, as a share of the distance, each leg the other way. */
149
+ /** With `reach: false` or an `ease`: how far its path bows, as a share of the distance, each leg the other way. */
148
150
  bow?: number;
149
- /** Seconds it rests on a thing before it presses it (each press a little different). */
151
+ /** Seconds it rests on a thing before it presses it (each press a little different when `reach.vary` is), and after it clicks before it moves on. */
150
152
  dwell?: number;
153
+ after?: number;
151
154
  /** Where on a thing it lands, as fractions of the thing: low and to the right, so the arrow hangs off it and covers no label. */
152
155
  aim?: [x: number, y: number];
153
156
  /** The same for a field, and how far below a field it draws back to (a share of the field's height) so that it is off the text. */
@@ -291,10 +294,17 @@ export const SCREEN_DEMO_DEFAULTS = {
291
294
  from: [0.68, 0.93],
292
295
  durMin: 0.6,
293
296
  durMax: 1,
294
- hand: { overshoot: 0.05, peak: 0.38, vary: 0.5, scatter: 0.06, bow: 0.08 },
297
+ reach: {
298
+ overshoot: INPUT_DEFAULTS.cursor.reach.overshoot,
299
+ peak: INPUT_DEFAULTS.cursor.reach.peak,
300
+ vary: INPUT_DEFAULTS.cursor.reach.vary,
301
+ scatter: INPUT_DEFAULTS.cursor.reach.scatter,
302
+ bow: INPUT_DEFAULTS.cursor.reach.bow,
303
+ },
295
304
  ease: "arrive",
296
- bow: 0.13,
305
+ bow: 0,
297
306
  dwell: 0.1,
307
+ after: INPUT_DEFAULTS.cursor.after,
298
308
  aim: [0.7, 0.8],
299
309
  aimField: [0.62, 0.66],
300
310
  rest: 0.86,
@@ -696,6 +706,11 @@ function build(
696
706
  ),
697
707
  ),
698
708
  ];
709
+ if (o.cursor && "hand" in o.cursor) {
710
+ throw new Error(
711
+ "screenDemo and uiDemo's cursor.hand is now cursor.reach, and a cursor glides by default, with none of a hand's overshoot, scatter or bow.",
712
+ );
713
+ }
699
714
  if (gone.length > 0) {
700
715
  throw new Error(
701
716
  `screenDemo and uiDemo no longer lift, blur or fade any part of the screen, and the camera holds still between moves: it alone says where to look. ${gone.join(", ")} ${gone.length > 1 ? "were removed. Take them" : "was removed. Take it"} out.`,
@@ -987,12 +1002,14 @@ function build(
987
1002
  (from[1] * fh - wide.y) / s0 - bar,
988
1003
  ];
989
1004
  const seed = o.seed ?? SCREEN_DEMO_DEFAULTS.seed;
990
- // A hand moves the cursor, unless the piece asked for a curve.
991
- const hand =
992
- c && c.hand !== false && o.cursor !== false && o.cursor?.ease === undefined
993
- ? { ...SCREEN_DEMO_DEFAULTS.cursor.hand, ...c.hand }
1005
+ // An aimed movement moves the cursor, unless the piece asked for a curve.
1006
+ const aimed =
1007
+ c && c.reach !== false && o.cursor !== false && o.cursor?.ease === undefined
1008
+ ? { ...SCREEN_DEMO_DEFAULTS.cursor.reach, ...c.reach }
994
1009
  : undefined;
995
- const vary = hand?.vary ?? 0;
1010
+ const vary = aimed?.vary ?? 0;
1011
+ // The earliest a move may leave: a rest after the last click.
1012
+ let free = -Infinity;
996
1013
  /** A share from −1 to 1 for this demo's seed. */
997
1014
  const signed = (index: number) => 2 * chance(seed, index) - 1;
998
1015
  const legTo = (
@@ -1005,16 +1022,18 @@ function build(
1005
1022
  ): void => {
1006
1023
  if (!c) return;
1007
1024
  const far = (Math.hypot(to[0] - last[0], to[1] - last[1]) * s0) / fw;
1008
- const dur =
1025
+ const wanted =
1009
1026
  given ??
1010
1027
  c.dur ??
1011
1028
  clamp(lerp(c.durMin, c.durMax, far * 1.6), c.durMin, c.durMax);
1012
- if (hand && ease === undefined) {
1029
+ // A move the rest after a click leaves less time for is quicker.
1030
+ const dur = arrive - wanted < free ? Math.max(0.15, arrive - free) : wanted;
1031
+ if (aimed && ease === undefined) {
1013
1032
  const m = reach(
1014
1033
  last,
1015
1034
  to,
1016
1035
  { end: arrive, duration: dur, size, index: legs.length },
1017
- { ...hand, seed, jitter: 0, tremor: { px: 0 } },
1036
+ { ...aimed, seed, jitter: 0, tremor: { px: 0 } },
1018
1037
  );
1019
1038
  legs.push({
1020
1039
  from: m.start,
@@ -1049,9 +1068,9 @@ function build(
1049
1068
  : (c?.aim ?? SCREEN_DEMO_DEFAULTS.cursor.aim);
1050
1069
  const point: Point = [x + w * aim[0], y + hgt * aim[1]];
1051
1070
  const n = legs.length;
1052
- // A hand rests on what it presses before it presses it.
1071
+ // It rests on what it presses before it presses it.
1053
1072
  const rest =
1054
- pressing && hand && step.ease === undefined
1073
+ pressing && aimed && step.ease === undefined
1055
1074
  ? (c?.dwell ?? SCREEN_DEMO_DEFAULTS.cursor.dwell) *
1056
1075
  (1 + 0.4 * vary * signed(1000 + n))
1057
1076
  : 0;
@@ -1068,6 +1087,9 @@ function build(
1068
1087
  if (!pressing) continue;
1069
1088
  const hold = HOLD * (1 + 0.3 * vary * signed(2000 + n));
1070
1089
  presses.push({ at: step.at, hold });
1090
+ // After a click it rests before it moves on; into a field, it draws
1091
+ // back off the text at once.
1092
+ if (!into) free = step.at + hold + (c?.after ?? 0);
1071
1093
  if (!into) {
1072
1094
  const leg = legs.at(-1);
1073
1095
  const button: Button = {
@@ -1256,7 +1278,7 @@ function build(
1256
1278
  [x + w + hgt * 0.02, y + hgt * (1 + (c?.rest ?? 0))],
1257
1279
  step.at + 0.66,
1258
1280
  0.46,
1259
- hand ? undefined : "drift",
1281
+ aimed ? undefined : "drift",
1260
1282
  -(c?.bow ?? 0) * 1.2,
1261
1283
  hgt,
1262
1284
  );
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{runCheck as l}from"@allyhub/check";import{indexNeeds as d,makeIndex as c}from"@allyhub/project";import{loose as o}from"./paths.js";export const SETTLE_MS=1500;export class Checker{state;reads=new Map;timer;active;again=!1;closed=!1;live;emit;needs;settle;constructor(e){this.live=e.live,this.emit=e.emit,this.needs=e.needs,this.settle=e.settle??SETTLE_MS,this.state={status:"waiting",revision:0,problems:[],facts:[]}}schedule(e=!1){this.closed||(clearTimeout(this.timer),this.state.status!=="running"&&this.publish({...this.state,status:"waiting"}),this.timer=setTimeout(()=>{if(!this.closed){if(this.active){this.again=!0;return}this.active=this.run().finally(()=>{this.active=void 0})}},e?0:this.settle))}async run(){const e=this.live.revision;this.publish({...this.state,status:"running",revision:e});let s;try{const t=await this.live.withSession(i=>l({dir:this.live.root,session:i}));s={status:"done",revision:e,problems:t.problems.map(o),facts:t.facts.map(o),versions:{total:t.targets.length,loaded:t.stats.loaded.length,reused:t.stats.reused}},this.needs?.(d(t.results));const a=new Map;for(const i of t.results){const r=a.get(i.piece)??{media:new Set,data:new Set};a.set(i.piece,r);for(const n of i.reads?.media??[])r.media.add(n.path);for(const n of i.reads?.data??[])r.data.add(n.path)}this.reads=new Map([...a].map(([i,{media:r,data:n}])=>[i,{media:[...r],data:[...n]}]))}catch(t){s={status:"failed",revision:e,problems:[],facts:[],error:t instanceof Error?t.message:String(t)}}this.closed||(e===this.live.revision&&!this.again?this.publish(s):(this.again=!1,this.schedule(!0)))}publish(e){this.state=e,this.emit(e)}async close(){this.closed=!0,clearTimeout(this.timer),await this.active}}export class Indexer{jobs=[];root;emit;made;wanted=[];tried=new Set;running;abort=new AbortController;constructor(e){this.root=e.root,this.emit=e.emit,this.made=e.made}want(e){const s=e.filter(t=>!this.tried.has(`${t.file}:${String(t.faces)}:${String(t.matte)}`));if(s.length!==0){for(const t of s)this.tried.add(`${t.file}:${String(t.faces)}:${String(t.matte)}`);this.wanted.push(...s),this.running??=this.loop().finally(()=>{this.running=void 0})}}async loop(){for(;this.wanted.length>0&&!this.abort.signal.aborted;){const e=this.wanted.splice(0),{done:s}=await c(this.root,e,t=>{this.jobs=[...this.jobs.filter(a=>a.file!==t.file),{file:t.file,status:t.status,message:t.message,...t.share===void 0?{}:{share:t.share}}],this.emit(this.jobs)},this.abort.signal);s.length>0&&this.made()}}async close(){this.abort.abort(),await this.running}}
2
+ import{runCheck as l}from"@allyhub/check";import{analysesAsked as d,indexNeeds as c,makeIndex as f}from"@allyhub/project";import{loose as h}from"./paths.js";export const SETTLE_MS=1500;export class Checker{state;reads=new Map;timer;active;again=!1;closed=!1;live;emit;needs;settle;files;constructor(t){this.live=t.live,this.emit=t.emit,this.needs=t.needs,this.settle=t.settle??SETTLE_MS,this.files=t.files,this.state={status:"waiting",revision:0,problems:[],facts:[]}}schedule(t=!1){this.closed||(clearTimeout(this.timer),this.state.status!=="running"&&this.publish({...this.state,status:"waiting"}),this.timer=setTimeout(()=>{if(!this.closed){if(this.active){this.again=!0;return}this.active=this.run().finally(()=>{this.active=void 0})}},t?0:this.settle))}async run(){const t=this.live.revision;this.publish({...this.state,status:"running",revision:t});let i;try{const s=await this.live.withSession(a=>l({dir:this.live.root,session:a,...this.files===void 0?{}:{files:this.files}}));i={status:"done",revision:t,problems:s.problems.map(h),facts:s.facts.map(h),versions:{total:s.targets.length,loaded:s.stats.loaded.length,reused:s.stats.reused}},this.needs?.(c(s.results));const e=new Map;for(const a of s.results){const n=e.get(a.piece)??{media:new Set,data:new Set};e.set(a.piece,n);for(const r of a.reads?.media??[])n.media.add(r.path);for(const r of a.reads?.data??[])n.data.add(r.path)}this.reads=new Map([...e].map(([a,{media:n,data:r}])=>[a,{media:[...n],data:[...r]}]))}catch(s){i={status:"failed",revision:t,problems:[],facts:[],error:s instanceof Error?s.message:String(s)}}this.closed||(t===this.live.revision&&!this.again?this.publish(i):(this.again=!1,this.schedule(!0)))}publish(t){this.state=t,this.emit(t)}async close(){this.closed=!0,clearTimeout(this.timer),await this.active}}export class Indexer{jobs=[];root;analyses;env;emit;made;wanted=[];tried=new Set;running;abort=new AbortController;constructor(t){this.root=t.root,this.analyses=t.analyses,this.env=t.env,this.emit=t.emit,this.made=t.made}want(t){const i=e=>`${e.file}:${d(e).join(",")}`,s=t.filter(e=>!this.tried.has(i(e)));if(s.length!==0){for(const e of s)this.tried.add(i(e));this.wanted.push(...s),this.running??=this.loop().finally(()=>{this.running=void 0})}}async loop(){for(;this.wanted.length>0&&!this.abort.signal.aborted;){const t=this.wanted.splice(0),{done:i}=await f(this.root,t,this.analyses,{env:this.env,onProgress:s=>{this.jobs=[...this.jobs.filter(e=>e.file!==s.file),{file:s.file,status:s.status,message:s.message,...s.share===void 0?{}:{share:s.share}}],this.emit(this.jobs)},signal:this.abort.signal});i.length>0&&this.made()}}async close(){this.abort.abort(),await this.running}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as p}from"node:fs/promises";import{basename as f,join as w}from"node:path";import{parseDoc as y,splitTitle as b}from"@allyhub/doc";import{readSheetSource as g,workbookFiles as k}from"@allyhub/build";import{Calc as j,readWorkbook as x,shownValue as A}from"@allyhub/sheet";export const CARD_DEFAULTS={lines:4,chars:240,rows:5,columns:6},projectName=t=>f(t);function v(t){if(!("content"in t)||!Array.isArray(t.content))return;const e=t.content.map(r=>r.text).join("").trim();return e===""?void 0:e}const D=(t,e)=>t.length<=e?t:`${t.slice(0,e-1).trimEnd()}…`;function F(t){const{body:e}=b(y(t).blocks),r=[];for(const o of e){const i=v(o);if(i!==void 0&&r.push(D(i,CARD_DEFAULTS.chars)),r.length===CARD_DEFAULTS.lines)break}return{type:"text",lines:r}}async function P(t,e){const r=await g(t,e.dir),{workbook:o}=x(k(t,r)),i=o?.sheets[0];if(!o||!i)return{type:"table",columns:[],rows:[],count:0};const u=new j(o).calculate(),n=i.tables[0]?.area??i.used;if(!n)return{type:"table",columns:[],rows:[],count:0};const d=(s,c)=>A(u.value(i,s,c),i.lookAt(s,c).format),h=Math.min(n.right-n.left+1,CARD_DEFAULTS.columns),a=s=>Array.from({length:h},(c,m)=>d(s,n.left+m)),l=[];for(let s=n.top+1;s<=Math.min(n.bottom,n.top+CARD_DEFAULTS.rows);s++)l.push(a(s));return{type:"table",columns:a(n.top),rows:l,count:n.bottom-n.top}}export async function itemPreview(t,e){const r=t.project.root;switch(e.kind){case"doc":return F(await p(w(r,e.entry),"utf8"));case"sheet":return await P(r,e);case"video":{const o=await t.project.tool("video/still",{item:e.dir});return{type:"picture",image:o.image,width:o.width,height:o.height,duration:o.duration}}case"slides":{const o=await t.project.tool("video/still",{item:e.dir});return{type:"picture",image:o.image,width:o.width,height:o.height}}default:return}}
2
+ import{basename as n}from"node:path";import{NEVER_CANCELLED as p}from"@allyhub/extension-api";import{PreviewSchema as m}from"@allyhub/protocol";import{kindContext as a,kindItem as c}from"./kinds.js";export const projectName=e=>n(e);export function itemPreview(e,o){return providedPreview(e.project.extensions,o,a(e.project.root,r=>e.project.hasTool(r),(r,t)=>e.project.tool(r,t)))}export async function providedPreview(e,o,r){const t=await e?.kindProvider(o.kind);if(!t?.preview)return;const i=await t.preview(c(o),r,p);return i==null?void 0:m.parse(i)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{randomBytes as f}from"node:crypto";import{basename as u,join as h}from"node:path";import{exportProject as m}from"@allyhub/export";import{JobFailure as p}from"@allyhub/jobs";import{OUT_DIR as w}from"@allyhub/formats";import{parseCombo as g}from"@allyhub/project";import{projectPathOf as y}from"./paths.js";function x(n){const t=n?.pptx;return{...n?.steps===!0?{steps:!0}:{},...t==="picture"?{pptx:t}:{}}}export class Exports{root;changed;jobs=[];aborts=new Map;queue=Promise.resolve();asJobs;constructor(t,r,s){this.root=t,this.changed=r,this.asJobs=s}list(){return this.jobs.map(t=>({...t}))}start(t,r,s,a){const e={id:`x${f(4).toString("hex")}`,item:t,versions:r,types:s,...a?{options:a}:{},state:"queued",progress:0,files:[]};this.jobs.push(e);const o=new AbortController;return this.aborts.set(e.id,o),this.changed({...e}),this.queue=this.queue.then(()=>this.run(e,o.signal)),{...e}}cancel(t){const r=this.jobs.find(s=>s.id===t);return!r||r.state==="done"||r.state==="failed"?!1:(this.aborts.get(t)?.abort(),this.set(r,{state:"cancelled"}),!0)}idle(){return this.queue}async close(){for(const t of this.aborts.values())t.abort();await this.queue}watchers=new Set;set(t,r){Object.assign(t,r),this.changed({...t});for(const s of this.watchers)s(t)}async run(t,r){if(t.state==="cancelled")return;const s=this.asJobs;if(s===void 0)return this.make(t,r);const a=await s.nameOf(t.item).catch(()=>u(t.item));let e=0;const o=async()=>{await this.queue;const i=new AbortController;return this.aborts.set(t.id,i),delete t.error,this.set(t,{state:"queued",progress:0,files:[]}),i.signal};await s.jobs.run({about:{kind:"piece",id:h(this.root,t.item)},what:"export",name:a,unit:"share",total:1},async i=>{i.signal.addEventListener("abort",()=>{this.cancel(t.id)});const c=d=>{d.id===t.id&&i.report(d.progress,1)};this.watchers.add(c);try{await this.make(t,e++===0?r:await o())}finally{this.watchers.delete(c)}if(t.state==="cancelled")throw new DOMException("The export was cancelled.","AbortError");if(t.state==="failed")throw new p("other",t.error??"The export failed.");const[l]=t.files;l!==void 0&&i.made(h(this.root,l))}).catch(()=>{})}async make(t,r){this.set(t,{state:"running"});try{const s=await m({root:this.root,items:[t.item],...t.versions.length?{combos:t.versions.map(e=>g(e))}:{},...t.types.length?{types:t.types}:{},...x(t.options),out:h(this.root,w),signal:r,onProgress:e=>{r.aborted||this.set(t,{progress:Math.max(t.progress,Math.min(1,e))})}}),a=s.files.flatMap(e=>e.files).map(e=>y(this.root,e)).filter(e=>e!==void 0);r.aborted?this.set(t,{state:"cancelled",files:a}):s.failed.length>0&&a.length===0?this.set(t,{state:"failed",error:s.failed.map(e=>e.message).join(" ")}):this.set(t,{state:"done",progress:1,files:a,...s.failed.length>0?{error:[...new Map(s.failed.map(e=>[e.code,e.message])).values()].join(" ")}:{}})}catch(s){this.set(t,{state:r.aborted?"cancelled":"failed",...r.aborted?{}:{error:s instanceof Error?s.message:String(s)}})}finally{this.aborts.delete(t.id)}}}
2
+ import{randomBytes as d}from"node:crypto";import{basename as f,join as n}from"node:path";import{exportProject as m}from"@allyhub/export";import{JobFailure as p}from"@allyhub/jobs";import{OUT_DIR as u}from"@allyhub/formats";import{parseCombo as w}from"@allyhub/project";import{projectPathOf as g}from"./paths.js";export class Exports{root;changed;jobs=[];aborts=new Map;queue=Promise.resolve();asJobs;kinds;processors;analyses;constructor(t,r,s,a,e={}){this.root=t,this.kinds=r,this.processors=e.processors??[],this.analyses=e.analyses??[],this.changed=s,this.asJobs=a}list(){return this.jobs.map(t=>({...t}))}start(t,r,s,a){const e={id:`x${d(4).toString("hex")}`,item:t,versions:r,types:s,...a?{options:a}:{},state:"queued",progress:0,files:[]};this.jobs.push(e);const o=new AbortController;return this.aborts.set(e.id,o),this.changed({...e}),this.queue=this.queue.then(()=>this.run(e,o.signal)),{...e}}cancel(t){const r=this.jobs.find(s=>s.id===t);return!r||r.state==="done"||r.state==="failed"?!1:(this.aborts.get(t)?.abort(),this.set(r,{state:"cancelled"}),!0)}idle(){return this.queue}async close(){for(const t of this.aborts.values())t.abort();await this.queue}watchers=new Set;set(t,r){Object.assign(t,r),this.changed({...t});for(const s of this.watchers)s(t)}async run(t,r){if(t.state==="cancelled")return;const s=this.asJobs;if(s===void 0)return this.make(t,r);const a=await s.nameOf(t.item).catch(()=>f(t.item));let e=0;const o=async()=>{await this.queue;const i=new AbortController;return this.aborts.set(t.id,i),delete t.error,this.set(t,{state:"queued",progress:0,files:[]}),i.signal};await s.jobs.run({about:{kind:"piece",id:n(this.root,t.item)},what:"export",name:a,unit:"share",total:1},async i=>{i.signal.addEventListener("abort",()=>{this.cancel(t.id)});const h=l=>{l.id===t.id&&i.report(l.progress,1)};this.watchers.add(h);try{await this.make(t,e++===0?r:await o())}finally{this.watchers.delete(h)}if(t.state==="cancelled")throw new DOMException("The export was cancelled.","AbortError");if(t.state==="failed")throw new p("other",t.error??"The export failed.");const[c]=t.files;c!==void 0&&i.made(n(this.root,c))}).catch(()=>{})}async make(t,r){this.set(t,{state:"running"});try{const s=await m({root:this.root,kinds:this.kinds,processors:this.processors,analyses:this.analyses,items:[t.item],...t.versions.length?{combos:t.versions.map(e=>w(e))}:{},...t.types.length?{types:t.types}:{},...t.options?{params:t.options}:{},out:n(this.root,u),signal:r,onProgress:e=>{r.aborted||this.set(t,{progress:Math.max(t.progress,Math.min(1,e))})}}),a=s.files.flatMap(e=>e.files).map(e=>g(this.root,e)).filter(e=>e!==void 0);r.aborted?this.set(t,{state:"cancelled",files:a}):s.failed.length>0&&a.length===0?this.set(t,{state:"failed",error:s.failed.map(e=>e.message).join(" ")}):this.set(t,{state:"done",progress:1,files:a,...s.failed.length>0?{error:[...new Map(s.failed.map(e=>[e.code,e.message])).values()].join(" ")}:{}})}catch(s){this.set(t,{state:r.aborted?"cancelled":"failed",...r.aborted?{}:{error:s instanceof Error?s.message:String(s)}})}finally{this.aborts.delete(t.id)}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{PING_MS,RAW_PATH,RPC_PATH,forwardedHost,startDevServer}from"./server.js";export{ProjectServer,SERVER_METHODS}from"./project.js";export{Writer,LIST_LIMIT,UPLOAD_MAX_BYTES}from"./writer.js";export{Watcher}from"./watcher.js";export{writeProblems,dataFileOf}from"./validate.js";export{pathProblem,versionOf}from"./paths.js";export{SETTLE_MS}from"./background.js";export{recordTree}from"./record.js";export{CARD_DEFAULTS,itemPreview,projectName}from"./card.js";export{hasFileManager,revealFile}from"./reveal.js";
2
+ export{PING_MS,RAW_PATH,RPC_PATH,forwardedHost,startDevServer}from"./server.js";export{ProjectServer,SERVER_METHODS}from"./project.js";export{Writer,LIST_LIMIT,UPLOAD_MAX_BYTES}from"./writer.js";export{Watcher}from"./watcher.js";export{Presence}from"./presence.js";export{changedLines}from"./texts.js";export{writeProblems,dataFileOf}from"./validate.js";export{pathProblem,versionOf}from"./paths.js";export{SETTLE_MS}from"./background.js";export{recordTree}from"./record.js";export{itemPreview,projectName}from"./card.js";export{hasFileManager,revealFile}from"./reveal.js";
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const kindItem=r=>({id:r.id,kind:r.kind,dir:r.dir,entry:r.entry});export function kindContext(r,o,t){return{root:r,tool:async(n,d)=>{if(!o(n))throw new Error(`There is no project tool ${n}.`);return t(n,d)}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{rm as w}from"node:fs/promises";import{join as c}from"node:path";import{fileLoudness as b}from"@allyhub/audio/node";import{startBrowser as v}from"@allyhub/browser";import{hasSheetCode as g,mediaHref as y,readSheetSource as S,sourceOf as D,stageItem as C}from"@allyhub/build";import{CACHE_DIR as E}from"@allyhub/formats";import{CheckSession as $,ProjectError as k,pickTarget as R,parseCombo as O}from"@allyhub/project";import{RPC_ERROR as h,RpcError as p,SNAPSHOT_TREE as m,SOUND_FOLDER as P}from"@allyhub/protocol";import{SCENERY_STAGE as H,sceneryHref as l}from"@allyhub/scenery-host/bundle";import{bakesOnDisk as _,bundleSceneryStage as F,prepareStage as N,serveDecoders as T}from"@allyhub/stage";export function rpcErrorOf(n){return n instanceof k?new p(n.kind==="not-found"?h.notFound:h.invalid,n.hint?`${n.message} ${n.hint}`:n.message):n}export class Live{root;buildDir;revision=0;prep;last;lease;old=new Set;browserStarted;gpu;sceneries=new Map;building=Promise.resolve();closed=!1;sheetCodes=new Map;constructor(e,s={}){this.root=e,this.buildDir=c(e,E,"build",`dev-${String(process.pid)}`),this.gpu=s.gpu}moved(e){this.revision=e,this.lease&&this.lease.revision!==e&&this.retire(this.lease)}prepared(){const e=this.revision;if(this.prep?.revision===e)return this.prep.promise;const s=this.building.then(()=>e===this.revision?this.build():void 0);this.building=s.catch(()=>{});const t=s.then(i=>i??this.prepared());return this.prep={revision:e,promise:t},t.catch(()=>{this.prep?.promise===t&&(this.prep=void 0)}),t}async build(){const e=await N(this.root,this.pieceDir);return e.bundle&&await T(e.bundle.dir),this.last=e,e}async sheetCode(e){if(!g(this.root,e))return{failed:!1};const s=this.sheetCodes.get(e),t=s?.revision===this.revision?s.promise:S(this.root,e).catch(()=>{});this.sheetCodes.set(e,{revision:this.revision,promise:t});const i=await t;return{failed:i?.failed??!0,...i?.generated?{generated:i.generated}:{}}}get pieceDir(){return c(this.buildDir,"stage")}get sceneryDir(){return c(this.buildDir,"scenery",H)}latest(){return this.last}async target(e,s){const t=await this.prepared();try{const{piece:i,target:o}=R(t,e,s===void 0?void 0:[O(s)]);return{prepared:t,piece:i,combo:o.combo}}catch(i){throw rpcErrorOf(i)}}async componentHost(e,s){const t=await this.prepared(),i=e.replace(/\/doc\.mdx$/u,"").replace(/^\.?\/?/u,""),o=t.docs.find(r=>r.place===i);if(o){if(o.components.length===0)throw new p(h.notFound,`${o.place} shows no component.`);const r=t.messages.locales[0];return{prepared:t,host:o,combo:r===void 0?{}:{lang:r}}}const{piece:u,combo:a}=await this.target(e,s);return{prepared:t,host:u,combo:a}}async source(e){const s=await this.prepared(),t=C(s,e);if(!t)throw new p(h.notFound,`No piece ${e}.`);const i=D(s,t),o={...i.media},u=(a,r)=>`${a}${y(r).slice(m.media.length)}`;return await Promise.all(Object.entries(o).map(async([a,r])=>{let d=r;if(r.kind==="video"&&r.matte===!0&&(d={...d,matteUrl:u(m.matte,a)}),r.kind==="audio"||r.kind==="video"&&r.audio===!0){d={...d,denoisedUrl:u(P,a)};const f=await b(c(this.root,a)).catch(()=>{});f!==void 0&&(d={...d,loudness:f.lufs,...f.by==="level"?{loudnessBy:"level"}:{}})}o[a]=d})),{...i,media:o}}browser(){return this.browserStarted??=v(this.gpu===void 0?{}:{gpu:this.gpu}),this.browserStarted}async withSession(e){this.refuseStopped();let s=this.lease;if(s?.revision!==this.revision){s&&this.retire(s);const t=await this.browser();if(this.refuseStopped(),s=this.lease,s?.revision!==this.revision){s&&this.retire(s);const i={revision:this.revision,session:this.prepared().then(o=>$.open({root:this.root,browser:t,prepared:o})),users:0,retired:!1};s=i,this.lease=i,i.session.catch(()=>{this.lease===i&&(this.lease=void 0)})}}s.users++;try{return await e(await s.session)}finally{s.users--,s.retired&&s.users===0&&this.end(s)}}refuseStopped(){if(this.closed)throw new p(h.unavailable,"allyhub dev is stopping.")}retire(e){e.retired=!0,this.lease===e&&(this.lease=void 0),this.old.add(e),e.users===0&&this.end(e)}end(e){return e.ended??=(async()=>{this.old.delete(e),await e.session.then(s=>s.close()).catch(()=>{})})(),e.ended}scenery(e){const s=this.sceneries.get(e);if(s?.revision===this.revision)return s.promise;const t=this.bundleScenery(e);return this.sceneries.set(e,{revision:this.revision,promise:t}),t.catch(()=>{this.sceneries.get(e)?.promise===t&&this.sceneries.delete(e)}),t}async scenerySource(e){const s=await this.scenery(e),t=i=>`${m.scenery}${i}`;return{module:t(s.module),decoders:t(s.decoders),manifoldWasm:t(s.manifoldWasm),bakes:[...await _(this.root)]}}async bundleScenery(e){const{bundle:s,media:t}=await F(this.root,e,c(this.buildDir,"scenery"));return{module:l(s.module),decoders:l(s.decoders),manifoldWasm:l(s.manifoldWasm),output:s.output.map(l),media:t}}async close(){this.closed=!0;const e=[...this.old,...this.lease?[this.lease]:[]];this.lease&&this.retire(this.lease),await Promise.all(e.map(s=>this.end(s))),await this.browserStarted?.then(s=>s.close()).catch(()=>{}),await w(this.buildDir,{recursive:!0,force:!0})}}
2
+ import{rm as f}from"node:fs/promises";import{join as u}from"node:path";import{startBrowser as m}from"@allyhub/browser";import{kindBuildOf as w,mediaHref as v,nodeLending as b,projectItems as g,sourceOf as k,stageItem as S}from"@allyhub/build";import{CACHE_DIR as y}from"@allyhub/formats";import{CheckSession as D,ProjectError as R,pickTarget as E,parseCombo as O}from"@allyhub/project";import{RPC_ERROR as h,RpcError as c,SNAPSHOT_TREE as l}from"@allyhub/protocol";import{prepareStage as $,viewStage as C}from"@allyhub/stage";import{Routes as P}from"./routes.js";export function rpcErrorOf(o){return o instanceof R?new c(o.kind==="not-found"?h.notFound:h.invalid,o.hint?`${o.message} ${o.hint}`:o.message):o}export class Live{root;buildDir;revision=0;prep;last;lease;old=new Set;browserStarted;gpu;building=Promise.resolve();closed=!1;codes=new Map;kinds;routes;constructor(e,i){this.root=e,this.kinds=i.kinds,this.buildDir=u(e,y,"build",`dev-${String(process.pid)}`),this.gpu=i.gpu,this.routes=new P({root:e,kinds:i.kinds,buildDir:this.buildDir,revision:()=>this.revision,prepared:()=>this.prepared(),latest:()=>this.latest(),view:(t,s)=>C(e,t,s,i.kinds)})}moved(e){this.revision=e,this.lease&&this.lease.revision!==e&&this.retire(this.lease)}prepared(){const e=this.revision;if(this.prep?.revision===e)return this.prep.promise;const i=this.building.then(()=>e===this.revision?this.build():void 0);this.building=i.catch(()=>{});const t=i.then(s=>s??this.prepared());return this.prep={revision:e,promise:t},t.catch(()=>{this.prep?.promise===t&&(this.prep=void 0)}),t}async build(){const e=await $(this.root,this.pieceDir,this.kinds);return this.last=e,e}async itemCode(e){const i=await this.item(e),t=i?await w(this.kinds.find(r=>r.id===i.kind))?.catch(()=>{}):void 0,s=t?.code?.bind(t);if(!i||!s)return{failed:!1};const n=this.codes.get(e),d=n?.revision===this.revision?n.promise:b(this.kinds,this.root).then(r=>s(i,{root:this.root,lend:r})).catch(()=>{});return this.codes.set(e,{revision:this.revision,promise:d}),await d??{failed:!0}}async item(e){const{items:i}=await g(this.root,this.kinds);return i.find(t=>t.id===e)}get pieceDir(){return u(this.buildDir,"stage")}latest(){return this.last}async target(e,i){const t=await this.prepared();try{const{piece:s,target:n}=E(t,e,i===void 0?void 0:[O(i)]);return{prepared:t,piece:s,combo:n.combo}}catch(s){throw rpcErrorOf(s)}}async componentHost(e,i){const t=await this.prepared(),s=t.docs.find(r=>r.place===e||r.file===e);if(s){if(s.components.length===0)throw new c(h.notFound,`${s.place} shows no component.`);const r=t.messages.locales[0];return{prepared:t,host:s,combo:r===void 0?{}:{lang:r}}}const{piece:n,combo:d}=await this.target(e,i);return{prepared:t,host:n,combo:d}}async source(e){const i=await this.prepared(),t=S(i,e);if(!t)throw new c(h.notFound,`No piece ${e}.`);const s=k(i,t),n={...s.media},d=(r,a)=>`${r}${v(a).slice(l.media.length)}`;return await Promise.all(Object.entries(n).map(async([r,a])=>{let p=a;a.kind==="video"&&a.matte===!0&&(p={...p,matteUrl:d(l.matte,r)}),n[r]=await this.routes.mediaOf(r,p)})),{...s,media:n}}browser(){return this.browserStarted??=m(this.gpu===void 0?{}:{gpu:this.gpu}),this.browserStarted}async withSession(e){this.refuseStopped();let i=this.lease;if(i?.revision!==this.revision){i&&this.retire(i);const t=await this.browser();if(this.refuseStopped(),i=this.lease,i?.revision!==this.revision){i&&this.retire(i);const s={revision:this.revision,session:this.prepared().then(n=>D.open({root:this.root,kinds:this.kinds,browser:t,prepared:n})),users:0,retired:!1};i=s,this.lease=s,s.session.catch(()=>{this.lease===s&&(this.lease=void 0)})}}i.users++;try{return await e(await i.session)}finally{i.users--,i.retired&&i.users===0&&this.end(i)}}refuseStopped(){if(this.closed)throw new c(h.unavailable,"allyhub dev is stopping.")}retire(e){e.retired=!0,this.lease===e&&(this.lease=void 0),this.old.add(e),e.users===0&&this.end(e)}end(e){return e.ended??=(async()=>{this.old.delete(e),await e.session.then(i=>i.close()).catch(()=>{})})(),e.ended}async close(){this.closed=!0;const e=[...this.old,...this.lease?[this.lease]:[]];this.lease&&this.retire(this.lease),await Promise.all(e.map(i=>this.end(i))),await this.browserStarted?.then(i=>i.close()).catch(()=>{}),await f(this.buildDir,{recursive:!0,force:!0})}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{AGENT_COLLABORATOR as h,AGENT_NAME as a,PRESENCE_GONE_MS as d}from"@allyhub/protocol";export class Presence{held=new Map;changed;now;agentName=a;constructor(e,t=Date.now){this.changed=e,this.now=t}list(){return[...this.held.values()].map(e=>e.collaborator).sort((e,t)=>+(t.kind==="agent")-+(e.kind==="agent"))}agent(e,t=d){e.name!==void 0&&(this.agentName=e.name);const i=this.held.get(h)?.collaborator,n=e.item===void 0&&i?.item!==void 0?{item:i.item,...i.place===void 0?{}:{place:i.place},...i.source===void 0?{}:{source:i.source}}:{};this.set({...e,...n,id:h,kind:"agent",name:this.agentName,at:this.now()},t)}leave(e){const t=this.held.get(e);t&&(clearTimeout(t.timer),this.held.delete(e),this.changed(this.list()))}close(){for(const e of this.held.values())clearTimeout(e.timer);this.held.clear()}set(e,t){const i=this.held.get(e.id);clearTimeout(i?.timer);const n=t===null?void 0:setTimeout(()=>{this.leave(e.id)},t);n?.unref(),this.held.set(e.id,{collaborator:e,timer:n}),!(i&&r(i.collaborator,e))&&this.changed(this.list())}}function r(s,e){return JSON.stringify({...s,at:0})===JSON.stringify({...e,at:0})}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{randomBytes as m}from"node:crypto";import{resolve as v}from"node:path";import{FILE_METHODS as y,HOST_METHODS as w,JSONRPC as c,PROJECT_TOOLS as h,RPC_ERROR as l,RequestSchema as g,RpcError as d,answer as f}from"@allyhub/protocol";import{Checker as O,Indexer as x}from"./background.js";import{Exports as S}from"./exports.js";import{hasFileManager as k,revealFile as b}from"./reveal.js";import{Live as j}from"./live.js";import{fileIn as u}from"./paths.js";import{toolHandlers as p}from"./tools.js";import{Watcher as R}from"./watcher.js";import{Writer as E}from"./writer.js";export const SERVER_METHODS={...y,"tools/call":w["tools/call"]};export class ProjectServer{root;writer;watcher;live;exports;reveal;checker;serving;indexer;clients=new Map;constructor(t){this.root=v(t.root),this.live=new j(this.root,t.gpu===void 0?{}:{gpu:t.gpu}),this.watcher=new R(this.root,(e,r)=>{this.sendTo(this.watchOwner(e),"files/changed",{watch:e,changes:r})},e=>{this.live.moved(e),this.notify("project/changed",{revision:e}),this.checker?.schedule()}),this.writer=new E(this.root,(e,r)=>{this.watcher.wrote(e,r)},t.writable),this.reveal=t.reveal===!1?void 0:t.reveal??(k()?b:void 0),this.exports=new S(this.root,e=>{this.notify("export/changed",{job:e})},t.jobs===void 0?void 0:{jobs:t.jobs,nameOf:async e=>{const{items:r}=await this.tool("project/items",{});return r.find(o=>o.dir===e)?.title??e.split("/").pop()??e}});const i=t.index??process.env.ALLYHUB_NO_INDEX!=="1";if(t.check!==!1){const e=i?new x({root:this.root,emit:r=>{this.notify("index/changed",{jobs:r})},made:()=>{this.checker?.schedule(!0)}}):void 0;this.indexer=e,this.checker=new O({live:this.live,emit:r=>{this.notify("check/changed",r)},...e?{needs:r=>{e.want(r)}}:{},...t.settle===void 0?{}:{settle:t.settle}})}}static open(t){const i=new ProjectServer(t);return i.watcher.start(),i.checker?.schedule(),Promise.resolve(i)}owners=new Map;watchOwner(t){return this.owners.get(t)}connect(t,i={}){const e=`c${m(6).toString("hex")}`;this.clients.set(e,t);const r=this.handlersFor(e,i.origin);return{id:e,receive:async o=>{const s=await this.answerOne(r,o);s&&t(s)},close:()=>{this.clients.delete(e),this.watcher.forget(e);for(const[o,s]of this.owners)s===e&&this.owners.delete(o)}}}channel(){const t=new Set,i=this.connect(e=>{const r=JSON.parse(JSON.stringify(e));queueMicrotask(()=>{for(const o of t)o(r)})});return{send:e=>{i.receive(JSON.parse(JSON.stringify(e)))},listen:e=>(t.add(e),()=>t.delete(e)),close:()=>{i.close()}}}notify(t,i){for(const e of this.clients.values())e({jsonrpc:c,method:t,params:i})}sendTo(t,i,e){t!==void 0&&this.clients.get(t)?.({jsonrpc:c,method:i,params:e})}async answerOne(t,i){const e=g.safeParse(i);if(!e.success){const o=i?.id;return typeof o!="string"&&typeof o!="number"?void 0:{jsonrpc:c,id:o,error:{code:l.invalidRequest,message:"Not a JSON-RPC request."}}}const r=e.data;return Object.hasOwn(w,r.method)&&r.method!=="tools/call"?{jsonrpc:c,id:r.id,error:{code:l.methodNotFound,message:`${r.method} is answered by the page that hosts the editor, not by allyhub dev's server.`}}:f(SERVER_METHODS,t,r)}handlersFor(t,i){const{writer:e,watcher:r}=this,o=p({live:this.live,checker:this.checker,exports:this.exports,reveal:this.reveal,tree:()=>this.serving?.tree(i)});return{"files/read":({path:s})=>e.read(s),"files/write":async({path:s,text:a,over:n})=>({version:await e.write(s,a,n,t)}),"files/upload":async({dir:s,name:a,data:n})=>({path:await e.upload(s,a,Buffer.from(n,"base64"),t)}),"files/url":async({path:s})=>{if(await u(this.root,s),!this.serving)throw new d(l.unavailable,"This server serves no files over HTTP: only allyhub dev's does.");return{url:this.serving.file(i,s)}},"files/list":({dir:s})=>e.list(s),"files/move":async({from:s,to:a})=>({rewritten:await e.move(s,a,t)}),"files/remove":async({path:s})=>({trash:await e.remove(s,t)}),"files/trash":async()=>({entries:await e.trash()}),"files/restore":async({id:s})=>({path:await e.restore(s,t)}),"files/watch":async({paths:s})=>{for(const n of s)await u(this.root,n);const a=await r.watch(t,s);return this.owners.set(a,t),{watch:a}},"files/unwatch":({watch:s})=>(this.owners.get(s)===t&&(r.unwatch(s),this.owners.delete(s)),Promise.resolve({})),"tools/call":async({name:s,arguments:a})=>{const n=await f(h,o,{jsonrpc:c,id:0,method:s,params:a});if("error"in n)throw new d(n.error.code,n.error.message,n.error.data);return{result:n.result}}}}async tool(t,i,e={}){const r=await f(h,p({live:this.live,checker:this.checker,exports:this.exports,reveal:this.reveal,tree:()=>e.tree??this.serving?.tree(void 0)}),{jsonrpc:c,id:0,method:t,params:i});if("error"in r)throw new d(r.error.code,r.error.message,r.error.data);return h[t].result.parse(r.result)}async close(){this.watcher.close(),this.clients.clear(),await this.checker?.close(),await this.indexer?.close(),await this.exports.close(),await this.live.close()}}
2
+ import{itemNameOf as m,listsFile as v}from"@allyhub/formats";import{randomBytes as g}from"node:crypto";import{isAbsolute as u,relative as x,resolve as y,sep as O}from"node:path";import{AGENT_NAME as b,FILE_METHODS as T,HOST_METHODS as w,JSONRPC as c,PRESENCE_METHODS as S,PROJECT_TOOLS as h,RPC_ERROR as d,RequestSchema as E,RpcError as l,answer as f}from"@allyhub/protocol";import{Checker as j,Indexer as k}from"./background.js";import{Exports as P}from"./exports.js";import{hasFileManager as N,revealFile as R}from"./reveal.js";import{Live as M}from"./live.js";import{fileIn as p}from"./paths.js";import{kindContext as C}from"./kinds.js";import{Presence as J}from"./presence.js";import{Texts as _}from"./texts.js";import{contributedTool as H,contributedTools as F,projectToolContext as q,toolHandlers as A}from"./tools.js";import{Watcher as D}from"./watcher.js";import{Writer as I}from"./writer.js";export const SERVER_METHODS={...T,"tools/call":w["tools/call"],...S};const L=5e3;export class ProjectServer{root;writer;watcher;live;exports;presence;texts;placing=Promise.resolve();listed;extensions;reveal;checker;serving;indexer;clients=new Map;contributed;services;held=new Map;unhearJobs;constructor(e){this.root=y(e.root),this.services={...e.jobs===void 0?{}:{jobs:e.jobs},...e.cloud===void 0?{}:{cloud:e.cloud},...e.env===void 0?{}:{env:e.env},...e.ports===void 0?{}:{ports:e.ports}},this.unhearJobs=e.jobs?.on(t=>{if(!u(t.about.id))return;const r=x(this.root,t.about.id);r===""||r.startsWith("..")||u(r)||this.notify("jobs/changed",{job:t,item:r.split(O).join("/")})})??(()=>{}),this.contributed=F(e.kinds),this.extensions=e.extensions,this.live=new M(this.root,{kinds:e.kinds,...e.gpu===void 0?{}:{gpu:e.gpu}}),this.presence=new J(t=>{this.notify("presence/changed",{collaborators:t})}),this.texts=new _(this.root),this.watcher=new D(this.root,(t,r)=>{this.sendTo(this.watchOwner(t),"files/changed",{watch:t,changes:r})},t=>{this.live.moved(t),this.notify("project/changed",{revision:t}),this.checker?.schedule()},{by:{kind:"agent",name:b},moved:t=>{this.placing=this.placing.then(()=>this.wroteOutside(t))}}),this.writer=new I(this.root,e.kinds,(t,r)=>{for(const n of t)this.texts.set(n.path,n.text);this.watcher.wrote(t.map(({path:n,version:s})=>({path:n,version:s})),r)},e.writable),this.reveal=e.reveal===!1?void 0:e.reveal??(N()?R:void 0),this.exports=new P(this.root,e.kinds,t=>{this.notify("export/changed",{job:t})},e.jobs===void 0?void 0:{jobs:e.jobs,nameOf:async t=>{const{items:r}=await this.tool("project/items",{}),n=r.find(s=>s.id===t);return m(n??{id:t})}},{...e.extensions?{processors:e.extensions.exportProcessors(),analyses:e.extensions.mediaAnalyses()}:{}});const i=e.index??process.env.ALLYHUB_NO_INDEX!=="1";if(e.check!==!1){const t=i?new k({root:this.root,analyses:e.extensions?.mediaAnalyses()??[],env:e.env??process.env,emit:n=>{this.notify("index/changed",{jobs:n})},made:()=>{this.checker?.schedule(!0)}}):void 0;this.indexer=t;const r=e.extensions?.fileEditors();this.checker=new j({live:this.live,...r===void 0?{}:{files:r},emit:n=>{this.notify("check/changed",n)},...t?{needs:n=>{t.want(n)}}:{},...e.settle===void 0?{}:{settle:e.settle}})}}static open(e){const i=new ProjectServer(e);return i.watcher.start(),i.checker?.schedule(),i.texts.warm(),Promise.resolve(i)}async settled(){await this.watcher.settled(),await this.placing}async wroteOutside(e){let i;for(const r of e){const{changed:n,lines:s}=await this.texts.changed(r).catch(()=>({changed:!1,lines:void 0}));n&&(i={path:r,...s})}if(i===void 0)return;const t=await this.itemOf(i.path);this.presence.agent({doing:"editing",...t===void 0?{}:{item:t},source:i})}async itemOf(e){const i=Date.now();this.listed!==void 0&&i-this.listed.at<L||(this.listed={at:i,items:this.tool("project/items",{}).then(s=>s.items,()=>[])});const r=await this.listed?.items??[],n=r.filter(s=>s.dir!==""&&e.startsWith(`${s.dir}/`)).sort((s,o)=>o.dir.length-s.dir.length);return(r.find(s=>s.entry===e)??r.find(s=>s.files!==void 0&&v(s.files,e))??n[0])?.id}owners=new Map;watchOwner(e){return this.owners.get(e)}connect(e,i={}){const t=`c${g(6).toString("hex")}`;this.clients.set(t,e);const r=this.handlersFor(t,i.origin);return{id:t,receive:async n=>{const s=await this.answerOne(r,n);s&&e(s)},close:()=>{this.clients.delete(t),this.watcher.forget(t);for(const[n,s]of this.owners)s===t&&this.owners.delete(n)}}}channel(){const e=new Set,i=this.connect(t=>{const r=JSON.parse(JSON.stringify(t));queueMicrotask(()=>{for(const n of e)n(r)})});return{send:t=>{i.receive(JSON.parse(JSON.stringify(t)))},listen:t=>(e.add(t),()=>e.delete(t)),close:()=>{i.close()}}}notify(e,i){for(const t of this.clients.values())t({jsonrpc:c,method:e,params:i})}sendTo(e,i,t){e!==void 0&&this.clients.get(e)?.({jsonrpc:c,method:i,params:t})}async answerOne(e,i){const t=E.safeParse(i);if(!t.success){const n=i?.id;return typeof n!="string"&&typeof n!="number"?void 0:{jsonrpc:c,id:n,error:{code:d.invalidRequest,message:"Not a JSON-RPC request."}}}const r=t.data;return Object.hasOwn(w,r.method)&&r.method!=="tools/call"?{jsonrpc:c,id:r.id,error:{code:d.methodNotFound,message:`${r.method} is answered by the page that hosts the editor, not by allyhub dev's server.`}}:f(SERVER_METHODS,e,r)}handlersFor(e,i){const{writer:t,watcher:r}=this,n=this.toolSet(()=>this.serving?.tree(i));return{"files/read":({path:s})=>t.read(s),"files/write":async({path:s,text:o,over:a})=>({version:await t.write(s,o,a,e)}),"files/upload":async({dir:s,name:o,data:a})=>({path:await t.upload(s,o,Buffer.from(a,"base64"),e)}),"files/url":async({path:s})=>{if(await p(this.root,s),!this.serving)throw new l(d.unavailable,"This server serves no files over HTTP: only allyhub dev's does.");return{url:this.serving.file(i,s)}},"files/list":({dir:s})=>t.list(s),"files/move":async({from:s,to:o})=>({rewritten:await t.move(s,o,e)}),"files/remove":async({path:s})=>({trash:await t.remove(s,e)}),"files/trash":async()=>({entries:await t.trash()}),"files/restore":async({id:s})=>({path:await t.restore(s,e)}),"files/watch":async({paths:s})=>{for(const a of s)await p(this.root,a);const o=await r.watch(e,s);return this.owners.set(o,e),{watch:o}},"files/unwatch":({watch:s})=>(this.owners.get(s)===e&&(r.unwatch(s),this.owners.delete(s)),Promise.resolve({})),"tools/call":async({name:s,arguments:o})=>({result:await this.runTool(n,s,o)}),"presence/get":()=>Promise.resolve({collaborators:this.presence.list()})}}toolSet(e){const i=this.toolContext(e);return{core:A(i),context:q(i)}}async runTool(e,i,t){const r={jsonrpc:c,id:0,method:i,params:t},n=Object.hasOwn(h,i)?void 0:this.contributed.get(i);let s;if(n===void 0)s=await f(h,e.core,r);else{const o=await H(n).catch(a=>{throw new l(d.internal,a instanceof Error?a.message:String(a))});s=await f({[i]:o},{[i]:a=>o.run(a,e.context)},r)}if("error"in s)throw new l(s.error.code,s.error.message,s.error.data);return s.result}hasTool(e){return Object.hasOwn(h,e)||this.contributed.has(e)}toolContext(e){return{live:this.live,checker:this.checker,exports:this.exports,reveal:this.reveal,tree:e,extensions:this.extensions,services:this.services,held:this.held,kindContext:C(this.root,i=>this.hasTool(i),(i,t)=>this.tool(i,t))}}async tool(e,i,t={}){const r=await this.runTool(this.toolSet(()=>t.tree??this.serving?.tree(void 0)),e,i);return Object.hasOwn(h,e)?h[e].result.parse(r):r}async close(){this.unhearJobs(),this.presence.close(),this.watcher.close(),this.clients.clear();for(const e of[...this.held.values()].reverse())await Promise.resolve(e.dispose()).catch(()=>{});this.held.clear(),await this.checker?.close(),await this.indexer?.close(),await this.exports.close(),await this.live.close()}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{isAbsolute as h,relative as p,sep as m}from"node:path";import{within as l}from"@allyhub/formats";import{SHARED_KINDS as u,SNAPSHOT_TREE as d}from"@allyhub/protocol";import{THREE_LIBS as w}from"@allyhub/scenery-host/bundle";export const REACH_SHARED=[d.editor,d.runtime,`${d.build}${w}/`];const O="comments.json",S=t=>u.includes(t);export class Reach{reaching=new Map;dirs;files;constructor(r,n){this.files=n,this.dirs=r.map(s=>s.dir).sort((s,i)=>i.split("/").length-s.split("/").length);for(const s of r)S(s.kind)&&this.reaching.set(s.dir,{tree:new Set,files:new Set,own:[]})}get items(){return[...this.reaching.keys()]}itemOf(r){return this.dirs.find(n=>n!==""&&l(r,n))??(this.dirs.includes("")?"":void 0)}of(r){return this.reaching.get(r)}done(r){for(const s of this.files)if(s.split("/").pop()!==O){const i=this.itemOf(s);i!==void 0&&this.reaching.get(i)?.files.add(s)}const n={};for(const[s,i]of this.reaching)n[s]={tree:[...i.tree].filter(a=>r.has(a)).sort(),files:[...i.files].sort(),own:i.own};return{shared:[...REACH_SHARED],items:n}}}export function pieceBundle(t,r){const n=new Set,s=new Set,i=new Set,a=c=>{if(i.has(c))return;i.add(c);const e=t?.chunks[c];if(e){n.add(e.file);for(const f of[...e.css,...e.assets])n.add(f);for(const f of e.modules)s.add(f);for(const f of[...e.imports,...e.dynamicImports])a(f)}},o=t?.entries[r.replaceAll("/","__")];return o&&a(o.file),{files:n,modules:s}}export function projectPathOf(t,r){const n=t.replace(/[?#].*$/u,"");if(h(n))for(const s of r){const i=p(s,n);if(i!==""&&!i.startsWith("..")&&!h(i))return i.split(m).join("/")}}export function pieceNames(t){const{prepared:r,piece:n,reach:s}=t,i=e=>s.itemOf(e)===n.dir,a=new Set,o=new Set,c=e=>Object.hasOwn(r.media,e);for(const e of t.modules){const f=projectPathOf(e,t.roots);f!==void 0&&c(f)&&a.add(f)}for(const e of Object.keys(r.media))(i(e)||e.startsWith(".allyhub/"))&&a.add(e);for(const e of[...t.reads?.media??[],...t.shows?.media??[]])c(e)&&a.add(e);for(const e of Object.keys(r.data))i(e.split("#")[0]??e)&&o.add(e);for(const e of[...t.reads?.data??[],...t.shows?.data??[]])Object.hasOwn(r.data,e)&&o.add(e);return{media:a,data:o}}export function reachedSource(t,r,n){const s=(o,c)=>Object.fromEntries(Object.entries(o).filter(([e])=>c(e))),i=o=>!n.some(c=>o.startsWith(`${c}.`)),a=o=>Object.fromEntries(Object.entries(o).map(([c,e])=>[c,s(e,i)]));return{...t,media:s(t.media,o=>r.media.has(o)),...t.data?{data:s(t.data,o=>r.data.has(o))}:{},messages:a(t.messages),...t.anchors?{anchors:a(t.anchors)}:{}}}export function reachedCheck(t,r,n){const s=i=>{const a=i.where?.file;return typeof i.piece=="string"&&r.has(i.piece)||typeof a=="string"&&n(a)};return{...t,problems:t.problems.filter(s),facts:t.facts.filter(s)}}
2
+ import{isAbsolute as d,relative as l,sep as p}from"node:path";import{listsFile as m}from"@allyhub/formats";import{SNAPSHOT_TREE as h}from"@allyhub/protocol";export const REACH_SHARED=[h.editor,h.runtime];export class Reach{reaching=new Map;listed;files;shared;constructor(r,i,n=[]){this.files=i,this.shared=[...REACH_SHARED,...n],this.listed=r.map(t=>({id:t.id,files:t.files??[{path:t.entry}]}));for(const t of r)t.kindInfo?.share===!0&&this.reaching.set(t.id,{tree:new Set,files:new Set([t.entry]),own:[]})}get items(){return[...this.reaching.keys()]}itemsOf(r){return this.listed.filter(i=>m(i.files,r)).map(i=>i.id)}of(r){return this.reaching.get(r)}done(r){for(const n of this.files)for(const t of this.itemsOf(n))this.reaching.get(t)?.files.add(n);const i={};for(const[n,t]of this.reaching)i[n]={tree:[...t.tree].filter(a=>r.has(a)).sort(),files:[...t.files].sort(),own:t.own};return{shared:[...this.shared],items:i}}}export function pieceBundle(s,r){const i=new Set,n=new Set,t=new Set,a=f=>{if(t.has(f))return;t.add(f);const e=s?.chunks[f];if(e){i.add(e.file);for(const c of[...e.css,...e.assets])i.add(c);for(const c of e.modules)n.add(c);for(const c of[...e.imports,...e.dynamicImports])a(c)}},o=s?.entries[r.replaceAll("/","__")];return o&&a(o.file),{files:i,modules:n}}export function projectPathOf(s,r){const i=s.replace(/[?#].*$/u,"");if(d(i))for(const n of r){const t=l(n,i);if(t!==""&&!t.startsWith("..")&&!d(t))return t.split(p).join("/")}}export function pieceNames(s){const{prepared:r,piece:i,reach:n}=s,t=e=>n.itemsOf(e).includes(i.place),a=new Set,o=new Set,f=e=>Object.hasOwn(r.media,e);for(const e of s.modules){const c=projectPathOf(e,s.roots);c!==void 0&&f(c)&&a.add(c)}for(const e of Object.keys(r.media))(t(e)||e.startsWith(".allyhub/"))&&a.add(e);for(const e of[...s.reads?.media??[],...s.shows?.media??[]])f(e)&&a.add(e);for(const e of Object.keys(r.data))t(e.split("#")[0]??e)&&o.add(e);for(const e of[...s.reads?.data??[],...s.shows?.data??[]])Object.hasOwn(r.data,e)&&o.add(e);return{media:a,data:o}}export function reachedSource(s,r,i){const n=(o,f)=>Object.fromEntries(Object.entries(o).filter(([e])=>f(e))),t=o=>!i.some(f=>o.startsWith(`${f}.`)),a=o=>Object.fromEntries(Object.entries(o).map(([f,e])=>[f,n(e,t)]));return{...s,media:n(s.media,o=>r.media.has(o)),...s.data?{data:n(s.data,o=>r.data.has(o))}:{},messages:a(s.messages),...s.anchors?{anchors:a(s.anchors)}:{}}}export function reachedCheck(s,r,i){const n=t=>{const a=t.where?.file;return typeof t.piece=="string"&&r.has(t.piece)||typeof a=="string"&&i(a)};return{...s,problems:s.problems.filter(n),facts:s.facts.filter(n)}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as J,readdir as Q,realpath as U,stat as V}from"node:fs/promises";import{join as d,sep as Y}from"node:path";import{THREE_LIBS as x}from"@allyhub/scenery-host/bundle";import{BAKE_DIR as Z}from"@allyhub/scenery-host";import{KeyedStore as ee}from"@allyhub/project";import{componentAt as te,everyBlock as ie,parseDoc as se}from"@allyhub/doc";import{COMPONENT_STILLS_MAX as H,RpcError as oe,SNAPSHOT_TREE as m,pieceSourcePath as ne,scenerySourcePath as re,snapshotAnswerPath as E,snapshotPreviewPath as ce,stillPath as K,stillsIndexKey as ae,stillsIndexPath as de}from"@allyhub/protocol";import{deckComponents as fe,isDeckCode as le,readScript as pe,readSlidesFile as me,resolveDeck as ue,scriptWords as he}from"@allyhub/slides-core";import{bakesOnDisk as we}from"@allyhub/stage";import{runtimeFiles as ye}from"@allyhub/stage-page";import{itemPreview as ke}from"./card.js";import{mediaTypeOf as z}from"@allyhub/formats";import{Reach as $e,pieceBundle as be,pieceNames as ge,reachedCheck as Se,reachedSource as je}from"./reach.js";import{matteFile as ve}from"./tree.js";const P="https://tree.invalid/";function _(o){return typeof o=="string"?o.startsWith(P)?o.slice(P.length):o:Array.isArray(o)?o.map(_):o!==null&&typeof o=="object"?Object.fromEntries(Object.entries(o).map(([$,f])=>[$,_(f)])):o}const g=o=>new TextEncoder().encode(JSON.stringify(o));async function A(o){return(await Q(o,{recursive:!0,withFileTypes:!0}).catch(()=>[])).filter(f=>f.isFile()).map(f=>d(f.parentPath,f.name).slice(o.length+1).split(Y).join("/"))}const Oe=o=>V(o).then($=>$.isFile(),()=>!1);export async function recordTree(o,$={}){const{project:f}=o,{live:l,root:y}=f;await f.watcher.settled();const O=new Map,u=(e,t,i=z(e))=>{O.set(e,{path:e,type:i,file:t})},S=(e,t,i=z(e))=>{O.set(e,{path:e,type:i,bytes:t})},X=l.revision,p=await l.prepared(),T=new Map;if(o.ui!==void 0)for(const e of await A(o.ui))u(`${m.editor}${e}`,d(o.ui,e));for(const[e,t]of await ye())u(`${m.runtime}${e}`,t);const k=async(e,t)=>{let i;try{i={result:_(await f.tool(e,t,{tree:P}))}}catch(a){i={error:a instanceof oe?{code:a.code,message:a.message}:{code:-32603,message:a instanceof Error?a.message:""}}}const n=E(e,t);S(n,g(i));const s=t.item;return typeof s=="string"&&T.set(s,[...T.get(s)??[],n]),i.result},q=async(e,t,i)=>{if(!le(i.code))return;const n=w=>J(d(y,w),"utf8").catch(()=>{}),s=await n(i.file),a=s===void 0?void 0:me(s).file;if(!a)return;const c=t.lang??Object.keys(i.scripts)[0],r=c===void 0?void 0:await n(i.scripts[c]??`${e}/script.${c}.yaml`),v=(r===void 0?void 0:pe(r))??{parts:[],slides:[]};return ue({code:i.code,file:a,words:he(v,i.prefix),prefix:i.prefix,base:i.file.split("/").slice(0,-1).join("/"),theme:i.theme,data:w=>i.data?.[w]}).deck},R=async(e,t,i)=>{const n=new Map;for(const w of i)n.set(ae(w),w);if(n.size===0)return;const s=ee.of(y,"stills"),a={stills:{}},c=h.of(e),r=[...n];for(let w=0;w<r.length;w+=H){const L=r.slice(w,w+H);(await f.tool("components/stills",{item:e,...t===""?{}:{version:t},components:L.map(([,b])=>b)},{tree:P}).catch(()=>{}))?.stills.forEach((b,G)=>{const W=L[G]?.[0];!b||W===void 0||(a.stills[W]=b.key,u(K(b.key),s.path(`${b.key}.webp`),"image/webp"),c?.tree.add(K(b.key)))})}const v=de(e,t);S(v,g(a),"application/json"),c?.tree.add(v)},F=await k("project/items",{}),D=F?.items??[],h=new $e(D,p.files),j=f.checker?.state,M=j===void 0||j.status==="waiting"||j.status==="running"?{status:"off",revision:l.revision,problems:j?.problems??[],facts:j?.facts??[]}:j;S(E("check/results",{}),g({result:M}));for(const e of h.items){const t=h.of(e),i=new Set(p.pieces.filter(s=>s.dir===e).map(s=>s.id)),n=s=>h.itemOf(s)===e;t?.own.push({path:E("project/items",{}),type:"application/json",bytes:g({result:{...F,items:D.filter(s=>s.dir===e)}})},{path:E("check/results",{}),type:"application/json",bytes:g({result:Se(M,i,n)})})}for(const e of p.bundle?.chunks.files??[])u(`${m.build}${e}`,d(l.pieceDir,e));for(const e of await A(d(l.pieceDir,x)))u(`${m.build}${x}/${e}`,d(l.pieceDir,x,e));const N=new Set(Object.keys(p.media));for(const e of Object.keys(p.media)){const t=ve(y,p.media[e]);t!==void 0&&await Oe(t)&&u(`${m.matte}${e}`,t,"video/mp4")}const B=new Map;for(const e of D)if(e.kind==="video"||e.kind==="slides"){const t=await k("video/versions",{item:e.dir});await k("video/stage",{item:e.dir});for(const i of t?.versions??[])await k("video/stage",{item:e.dir,version:i.key});if(e.kind==="slides"){const i=await k("slides/deck",{item:e.dir});await k("slides/fonts",{item:e.dir});const n={media:new Set,data:new Set};if(B.set(e.dir,n),i&&t)for(const s of t.versions){const a=await q(e.dir,s,i);if(a){for(const c of a.slides){c.background_picture!==void 0&&n.media.add(c.background_picture);for(const r of c.shapes)r.media&&n.media.add(r.media.path),r.chart?.source!==void 0&&n.data.add(r.chart.source)}await R(e.dir,s.key,fe(a,t.width).map(c=>c.at))}}}}else if(e.kind==="sheet")await k("sheet/generated",{item:e.dir});else if(e.kind==="doc"){await k("doc/data",{item:e.dir});const t=p.docs.find(i=>i.place===e.dir);if(t&&t.components.length>0){const i=se(await J(d(y,t.file),"utf8")).blocks,n=[];for(const s of ie(i))s.type==="component"&&n.push(te(s));await R(e.dir,"",n)}}else if(e.kind==="scenery"||e.kind==="model"){const t=await l.scenery(e.entry).catch(()=>{});if(!t)continue;for(const i of t.output)u(`${m.scenery}${i}`,d(l.sceneryDir,i));for(const i of await A(d(l.sceneryDir,t.decoders)))u(`${m.scenery}${t.decoders}${i}`,d(l.sceneryDir,t.decoders,i));u(`${m.scenery}${t.manifoldWasm}`,d(l.sceneryDir,t.manifoldWasm)),S(re(e.entry),g(await l.scenerySource(e.entry)));for(const i of t.media)N.add(i)}for(const e of N)u(`${m.media}${e}`,d(y,e));for(const e of await we(y))u(`${m.bakes}${e}.bin`,d(y,Z,`${e}.bin`));const C=[y,await U(y).catch(()=>y)];for(const e of p.pieces){const t=await l.source(e.id).catch(()=>{});if(!t)continue;const i=be(p.bundle?.chunks,e.id),n=ge({prepared:p,piece:e,reach:h,modules:i.modules,roots:C,reads:f.checker?.reads.get(e.id),shows:B.get(e.dir)}),s=p.pieces.filter(r=>r.id!==e.id&&!C.some(v=>i.modules.has(d(v,r.file)))).map(r=>r.id),a=ne(e.id);S(a,g(je(t,n,s)));const c=h.of(e.dir);if(c){c.tree.add(a);for(const r of i.files)c.tree.add(`${m.build}${r}`);for(const r of n.media)c.tree.add(`${m.media}${r}`),c.tree.add(`${m.matte}${r}`),c.files.add(r)}}for(const[e,t]of T)for(const i of t)h.of(e)?.tree.add(i);for(const e of p.docs)for(const t of e.shows)h.of(e.dir)?.files.add(t);for(const e of p.sheets)for(const t of e.files)h.of(e.dir)?.files.add(t);const I=$.preview===!1?void 0:$.preview??(e=>ke(o,e));if(I)for(const e of D){const t=await I(e).catch(()=>{});if(t===void 0)continue;const i=ce(e.dir);S(i,Buffer.from(JSON.stringify(t)),"application/json"),h.of(e.dir)?.tree.add(i)}return{revision:X,files:[...O.values()],reach:h.done(new Set(O.keys()))}}
2
+ import{readdir as U,realpath as Y,stat as Z}from"node:fs/promises";import{join as g,relative as ee,sep as te}from"node:path";import{KeyedStore as oe}from"@allyhub/project";import{NEVER_CANCELLED as se}from"@allyhub/extension-api";import{COMPONENT_STILLS_MAX as J,KindSnapshotSchema as ne,RpcError as K,SNAPSHOT_TREE as m,pieceSourcePath as ie,snapshotAnswerPath as x,snapshotPreviewPath as re,stillPath as z,stillsIndexKey as ce,stillsIndexPath as ae}from"@allyhub/protocol";import{runtimeFiles as fe}from"@allyhub/stage-page";import{itemPreview as de}from"./card.js";import{kindContext as le,kindItem as pe}from"./kinds.js";import{mediaTypeOf as H}from"@allyhub/formats";import{Reach as ue,pieceBundle as me,pieceNames as he,reachedCheck as we,reachedSource as ye}from"./reach.js";import{matteFile as $e}from"./tree.js";const T="https://tree.invalid/";function M(n){return typeof n=="string"?n.startsWith(T)?n.slice(T.length):n:Array.isArray(n)?n.map(M):n!==null&&typeof n=="object"?Object.fromEntries(Object.entries(n).map(([w,c])=>[w,M(c)])):n}const j=n=>new TextEncoder().encode(JSON.stringify(n));async function V(n){return(await U(n,{recursive:!0,withFileTypes:!0}).catch(()=>[])).filter(c=>c.isFile()).map(c=>ee(n,g(c.parentPath,c.name)).split(te).join("/"))}const ge=n=>Z(n).then(w=>w.isFile(),()=>!1);export async function recordTree(n,w={}){const{project:c}=n,{live:u,root:y}=c;await c.watcher.settled();const P=new Map,h=(e,t,o=H(e))=>{P.set(e,{path:e,type:o,file:t})},b=(e,t,o=H(e))=>{P.set(e,{path:e,type:o,bytes:t})},N=async(e,t)=>{for(const o of await V(t))h(`${e}${o}`,g(t,o))},W=u.revision,a=await u.prepared(),v=new Map;if(n.ui!==void 0)for(const e of await V(n.ui))h(`${m.editor}${e}`,g(n.ui,e));for(const[e,t]of await fe())h(`${m.runtime}${e}`,t);const A=async(e,t)=>{let o;try{o={result:M(await c.tool(e,t,{tree:T}))}}catch(s){o={error:s instanceof K?{code:s.code,message:s.message}:{code:-32603,message:s instanceof Error?s.message:""}}}const r=x(e,t);b(r,j(o));const d=t.item;return typeof d=="string"&&v.set(d,[...v.get(d)??[],r]),o},X=le(y,e=>c.hasTool(e),async(e,t)=>{const o=await A(e,t);if(o.error)throw new K(o.error.code,o.error.message);return o.result}),q=async(e,t,o)=>{const r=new Map;for(const p of o)r.set(ce(p),p);if(r.size===0)return;const d=oe.of(y,"stills"),s={stills:{}},l=f.of(e),i=[...r];for(let p=0;p<i.length;p+=J){const O=i.slice(p,p+J);(await c.tool("components/stills",{item:e,...t===""?{}:{version:t},components:O.map(([,$])=>$)},{tree:T}).catch(()=>{}))?.stills.forEach(($,Q)=>{const B=O[Q]?.[0];!$||B===void 0||(s.stills[B]=$.key,h(z($.key),d.path(`${$.key}.webp`),"image/webp"),l?.tree.add(z($.key)))})}const S=ae(e,t);b(S,j(s),"application/json"),l?.tree.add(S)},I=(await A("project/items",{})).result,E=(I?.items??[]).filter(e=>e.kind!==void 0),G=new Map(a.items.map(e=>[e.id,e.files])),f=new ue(E.map(e=>({...e,files:G.get(e.id)??e.files})),a.files,(a.bundle?.beside??[]).map(e=>`${m.build}${e}`)),k=c.checker?.state,R=k===void 0||k.status==="waiting"||k.status==="running"?{status:"off",revision:u.revision,problems:k?.problems??[],facts:k?.facts??[]}:k;b(x("check/results",{}),j({result:R}));for(const e of f.items){const t=f.of(e),o=new Set(a.pieces.filter(s=>s.place===e).map(s=>s.id)),r=E.find(s=>s.id===e)?.entry,d=s=>s===r||f.itemsOf(s).includes(e);t?.own.push({path:x("project/items",{}),type:"application/json",bytes:j({result:{...I,items:E.filter(s=>s.id===e)}})},{path:x("check/results",{}),type:"application/json",bytes:j({result:we(R,o,d)})})}for(const e of a.bundle?.chunks.files??[])h(`${m.build}${e}`,g(u.pieceDir,e));for(const e of a.bundle?.beside??[])await N(`${m.build}${e}`,g(u.pieceDir,e));const C=new Set(Object.keys(a.media));for(const e of Object.keys(a.media)){const t=$e(y,a.media[e]);t!==void 0&&await ge(t)&&h(`${m.matte}${e}`,t,"video/mp4")}const F=new Map,_=e=>({file:(t,o,r)=>{h(`${e}${t}`,o,r)},folder:(t,o)=>N(`${e}${t}`,o),bytes:(t,o,r)=>{b(`${e}${t}`,o,r)},media:t=>{C.add(t)}});for(const e of E){const t=await c.extensions?.kindProvider(e.kind);if(!t?.snapshot)continue;const o=await Promise.resolve(t.snapshot(pe(e),X,se)).catch(()=>{}),r=ne.safeParse(o??{});if(!r.success)continue;const{stills:d,shows:s,routes:l}=r.data;s&&F.set(e.id,{media:new Set(s.media),data:new Set(s.data)});for(const i of d??[])await q(e.id,i.version,i.components);for(const[i,S]of Object.entries(l??{})){const p=await u.routes.route(i).catch(()=>{});if(p?.route.recordItem)for(const O of S)await p.route.recordItem(O,_(i),p.context).catch(()=>{})}}for(const e of C)h(`${m.media}${e}`,g(y,e));for(const e of u.routes.specs.keys()){const t=await u.routes.route(e).catch(()=>{});t?.route.record&&await t.route.record(_(e),t.context).catch(()=>{})}const D=[y,await Y(y).catch(()=>y)];for(const e of a.pieces){const t=await u.source(e.id).catch(()=>{});if(!t)continue;const o=me(a.bundle?.chunks,e.id),r=he({prepared:a,piece:e,reach:f,modules:o.modules,roots:D,reads:c.checker?.reads.get(e.id),shows:F.get(e.place)}),d=a.pieces.filter(i=>i.id!==e.id&&!D.some(S=>o.modules.has(g(S,i.file)))).map(i=>i.id),s=ie(e.id);b(s,j(ye(t,r,d)));const l=f.of(e.place);if(l){l.tree.add(s);for(const i of o.files)l.tree.add(`${m.build}${i}`);for(const i of r.media)l.tree.add(`${m.media}${i}`),l.tree.add(`${m.matte}${i}`),l.files.add(i)}}for(const[e,t]of v)for(const o of t)f.of(e)?.tree.add(o);for(const e of a.docs)for(const t of e.shows)f.of(e.place)?.files.add(t);for(const e of a.sheets)for(const t of e.files)f.of(e.place)?.files.add(t);const L=w.preview===!1?void 0:w.preview??(e=>de(n,e));if(L)for(const e of E){const t=await L(e).catch(()=>{});if(t===void 0)continue;const o=re(e.id);b(o,Buffer.from(JSON.stringify(t)),"application/json"),f.of(e.id)?.tree.add(o)}return{revision:W,files:[...P.values()],reach:f.done(new Set(P.keys())),routes:u.routes.loads()}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{join as f}from"node:path";import{pathToFileURL as c}from"node:url";import{pathProblem as l}from"./paths.js";import{inside as h}from"./tree.js";export function contributedRoutes(r){const t=new Map;for(const o of r)for(const e of o.stageRoutes??[])t.has(e.folder)||t.set(e.folder,e);return t}const u=new Map;async function m(r){let t=u.get(r.module);t||(t=import(c(r.module).href).then(e=>{if(typeof e.default!="object"||e.default===null)throw new Error(`${r.extension}'s stage routes (${r.module}) have no default export.`);return e.default}),u.set(r.module,t),t.catch(()=>{u.get(r.module)===t&&u.delete(r.module)}));const o=(await t)[r.folder];if(!o)throw new Error(`${r.extension} serves the stage's ${r.folder} but its module (${r.module}) has no route for it.`);return o}export class Routes{specs;kept=new Map;media=new Set;contexts=new Map;o;constructor(t){this.o=t,this.specs=contributedRoutes(t.kinds)}loads(){return Object.fromEntries([...this.specs].map(([t,o])=>[t,[...o.loads]]))}allowed(t){return this.media.has(t)}async route(t){const o=this.specs.get(t);if(o)return{route:await m(o),context:this.of(t)}}async mediaOf(t,o){let e=o;for(const i of this.specs.keys()){const s=await this.route(i).catch(()=>{}),n=s?.route.media?await s.route.media(t,e,s.context).catch(()=>{}):void 0;n!==void 0&&(e=n)}return e}of(t){let o=this.contexts.get(t);if(o)return o;const{o:e,kept:i,media:s}=this;return o={root:e.root,kinds:e.kinds,get revision(){return e.revision()},prepared:()=>e.prepared(),latest:()=>e.latest(),dir:f(e.buildDir,t.slice(0,-1)),kept(n,d){const a=`${t}\0${n}`;return i.has(a)||i.set(a,d()),i.get(a)},allowMedia(n){for(const d of n)s.add(d)},inProject:n=>l(n)===void 0?h(e.root,n):void 0,view:(n,d)=>e.view(n,d)},this.contexts.set(t,o),o}}
@@ -1,6 +1,6 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{randomBytes as E}from"node:crypto";import{createReadStream as B}from"node:fs";import{readFile as z,stat as W}from"node:fs/promises";import{createServer as J}from"node:http";import{Readable as G}from"node:stream";import{join as P,normalize as K,resolve as j,sep as _}from"node:path";import{getRequestListener as Y}from"@hono/node-server";import{Hono as Q}from"hono";import{WebSocketServer as V}from"ws";import{KeyedStore as X}from"@allyhub/project";import{SNAPSHOT_TREE as S,SOUND_FOLDER as Z,TREE_PAGES as ee,stageCsp as te}from"@allyhub/protocol";import{BAKE_DIR as ne}from"@allyhub/scenery-host";import{runtimeFile as re}from"@allyhub/stage-page";import{mediaTypeOf as oe}from"@allyhub/formats";import{pathProblem as q}from"./paths.js";import{ProjectServer as se}from"./project.js";import{MadeSounds as ie,decodeAsOf as ae}from"./sound.js";import{BAKE_NAME as ce,STILL_NAME as de,matteFile as ue,sourceName as C}from"./tree.js";export const RPC_PATH="/rpc",RAW_PATH="/files/raw/";const d={"access-control-allow-origin":"*"};function w(t,a){const f=K(P(t,a));return f.startsWith(t.endsWith(_)?t:`${t}${_}`)?f:void 0}async function h(t,a,f){const $=await W(t).catch(()=>{});if(!$?.isFile())return new Response("not found",{status:404,headers:f});const l={"content-type":oe(t),"cache-control":"no-cache","accept-ranges":"bytes",...f},o=$.size,c=a?/^bytes=(\d*)-(\d*)$/u.exec(a.trim()):null,R=(F,A)=>G.toWeb(B(t,{start:F,end:A}));if(!c||c[1]===""&&c[2]===""||o===0)return new Response(o===0?null:R(0,o-1),{status:200,headers:{...l,"content-length":String(o)}});let p,g;return c[1]===""?(p=Math.max(0,o-Number(c[2])),g=o-1):(p=Number(c[1]),g=c[2]===""?o-1:Math.min(Number(c[2]),o-1)),p>=o||p>g?new Response(null,{status:416,headers:{...l,"content-range":`bytes */${String(o)}`}}):new Response(R(p,g),{status:206,headers:{...l,"content-length":String(g-p+1),"content-range":`bytes ${String(p)}-${String(g)}/${String(o)}`}})}const U=/^[a-z][a-z0-9+.-]*:\/\/[a-z0-9.-]+(:\d{1,5})?$/u;export const PING_MS=3e4,ALLYHUB_FORWARDED="allyhub-forwarded";export function forwardedHost(t){const a=t[ALLYHUB_FORWARDED],$=(t.forwarded??(Array.isArray(a)?a[0]:a))?.split(",")[0]?.split(";").map(o=>o.trim().split("=")).find(([o])=>o?.toLowerCase()==="host")?.[1];if($!==void 0)return $.replace(/^"(.*)"$/u,"$1");const l=t["x-forwarded-host"];return(Array.isArray(l)?l[0]:l)?.split(",")[0]?.trim()}export async function startDevServer(t){const a=j(t.root);if(t.embedder!==void 0&&!U.test(t.embedder))throw new Error(`Not an origin: ${t.embedder}`);if(t.publicOrigin!==void 0&&!U.test(t.publicOrigin.replace("{port}","1")))throw new Error(`Not an origin: ${t.publicOrigin}`);const f=t.token??E(18).toString("base64url"),l=`/s/${E(18).toString("base64url")}/`,o=await se.open({...t,root:a,...t.publicOrigin===void 0?{}:{reveal:!1}});let c=0;const R=()=>c===0?void 0:t.publicOrigin?.replace("{port}",String(c)),p=()=>{const e=R();return e===void 0?void 0:new URL(e).host},g=()=>{const e=p();return new Set([`127.0.0.1:${String(c)}`,`localhost:${String(c)}`,...e===void 0?[]:[e]])},F=e=>e===p()?R()??"":`http://${e}`,A=e=>F(e.req.header("host")??""),k=e=>{const n=p();n!==void 0&&forwardedHost(e.headers)===n&&(e.headers.host=n)},I=e=>e??`http://127.0.0.1:${String(c)}`;o.serving={file:(e,n)=>`${I(e)}${RAW_PATH}${n.split("/").map(encodeURIComponent).join("/")}?token=${encodeURIComponent(f)}`,tree:e=>`${I(e)}${l}`};const T=new Set,H=new ie(a),O=new Q,L=async e=>{if(!t.ui)return e.text("allyhub dev serves its editors here.",200);const n=await z(P(t.ui,"index.html"),"utf8").catch(()=>{});if(n===void 0)return e.text("The page's files are missing: build them first (pnpm --filter @allyhub/editor-web build).",500);const u=E(16).toString("base64");return e.html(n.replace(/<script/gu,`<script nonce="${u}"`).replace("</head>",`<meta name="allyhub-token" content="${f}"></head>`),200,{"content-security-policy":["default-src 'self'",`script-src 'self' 'nonce-${u}'`,"style-src 'self' 'unsafe-inline'","img-src 'self' data: blob:","media-src 'self' blob:","font-src 'self' data:",`connect-src 'self' ws://${e.req.header("host")??""}`,"frame-src 'self'",`frame-ancestors ${t.embedder??"'none'"}`].join("; "),"cache-control":"no-store"})};O.get("/",L),O.get(`${RAW_PATH}*`,async e=>{if(e.req.query("token")!==f)return e.text("forbidden",403);const n=decodeURIComponent(e.req.path.slice(RAW_PATH.length));if(q(n)!==void 0)return e.text("forbidden",403);const u=w(a,n);return u?h(u,e.req.header("range"),{"x-content-type-options":"nosniff","content-security-policy":"sandbox; default-src 'none'; img-src 'self'; media-src 'self'; style-src 'unsafe-inline'"}):e.text("forbidden",403)}),O.get(`${l}*`,async e=>{let n;try{n=decodeURIComponent(e.req.path.slice(l.length))}catch{return e.notFound()}const u=e.req.header("range"),b=A(e),m=n.slice(0,n.indexOf("/")+1),i=n.slice(m.length);switch(m){case S.runtime:{const r=re(i);if(!r)return e.notFound();const s=Object.values(ee).includes(n);return h(r,void 0,{...d,...s?{"content-security-policy":te(`${b}${l}`,[b,...t.embedder?[t.embedder]:[]])}:{}})}case S.build:{const r=C(i);if(r===void 0){const s=w(o.live.pieceDir,i);return s?h(s,void 0,d):e.notFound()}try{return e.json(await o.live.source(r),200,{...d,"cache-control":"no-store"})}catch(s){return e.json({error:{message:s instanceof Error?s.message:String(s)}},404,d)}}case S.scenery:{const r=C(i);if(r===void 0){const s=w(o.live.sceneryDir,i);return s?h(s,void 0,d):e.notFound()}if(q(r)!==void 0||!w(a,r))return e.text("No such scenery.",404,d);try{const s=await o.live.scenery(r);for(const y of s.media)T.add(y);return e.json(await o.live.scenerySource(r),200,{...d,"cache-control":"no-store"})}catch(s){return e.text(s instanceof Error?s.message:String(s),500,d)}}case S.media:{const s=Object.hasOwn(o.live.latest()?.media??{},i)||T.has(i)?w(a,i):void 0;return s?h(s,u,d):e.notFound()}case Z:{const r=o.live.latest()?.media[i],s=r?w(a,i):void 0;if(!r||!s)return e.notFound();const y=ae({db:e.req.query("db"),speed:e.req.query("speed"),filter:e.req.query("filter")});if(typeof y=="string")return e.text(y,400,d);try{const x=await H.made(s,r.sha256,y,e.req.query("wait")!=="0");return x===void 0?e.body(null,202,d):await h(x,u,{...d,"content-type":"audio/flac"})}catch(x){return e.text(x instanceof Error?x.message:String(x),500,d)}}case S.matte:{const r=ue(a,o.live.latest()?.media[i]);return r?h(r,u,{...d,"content-type":"video/mp4"}):e.notFound()}case S.bakes:{if(!ce.test(i))return e.notFound();const r=w(P(a,ne),i);return r?h(r,void 0,d):e.notFound()}case S.stills:return de.test(i)?h(X.of(a,"stills").path(i),void 0,{...d,"cache-control":"public, max-age=31536000, immutable"}):e.notFound();default:return e.notFound()}}),O.get("/*",async e=>{if(!t.ui)return e.notFound();const n=w(j(t.ui),decodeURIComponent(e.req.path.slice(1)));return n?h(n,void 0,{"cache-control":"public, max-age=3600"}):e.notFound()});const N=new V({noServer:!0,maxPayload:512*1024*1024});N.on("connection",(e,n)=>{const u=o.connect(r=>{e.readyState===e.OPEN&&e.send(JSON.stringify(r))},{origin:F(n.headers.host??"")});e.on("message",(r,s)=>{if(s||!Buffer.isBuffer(r))return;let y;try{y=JSON.parse(r.toString("utf8"))}catch{e.send(JSON.stringify({jsonrpc:"2.0",id:null,error:{code:-32700,message:"Not JSON."}}));return}u.receive(y)});const b=t.pingMs??PING_MS;let m=!0;e.on("pong",()=>{m=!0});const i=b>0?setInterval(()=>{if(!m){e.terminate();return}m=!1,e.ping()},b):void 0;i?.unref(),e.on("close",()=>{clearInterval(i),u.close()})});const M=Y(O.fetch),D=(e,n)=>{e.writeHead(403,{"content-type":"text/plain; charset=utf-8"}),e.end(n)},v=J((e,n)=>{if(k(e),!g().has(e.headers.host??"")){D(n,"forbidden host");return}M(e,n)});v.on("upgrade",(e,n,u)=>{const b=new URL(e.url??"/","http://x"),m=(r,s)=>{n.end(`HTTP/1.1 ${String(r)} ${s}\r
2
+ import{randomBytes as E}from"node:crypto";import{createReadStream as B}from"node:fs";import{readFile as M,stat as W}from"node:fs/promises";import{createServer as D}from"node:http";import{Readable as J}from"node:stream";import{join as G,resolve as C}from"node:path";import{getRequestListener as K}from"@hono/node-server";import{Hono as Y}from"hono";import{WebSocketServer as Q}from"ws";import{KeyedStore as V}from"@allyhub/project";import{CollaboratorStateSchema as X,PRESENCE_PATH as Z,SNAPSHOT_TREE as O,TREE_PAGES as ee,stageCsp as te}from"@allyhub/protocol";import{runtimeFile as ne}from"@allyhub/stage-page";import{mediaTypeOf as re}from"@allyhub/formats";import{pathProblem as oe}from"./paths.js";import{ProjectServer as se}from"./project.js";import{STILL_NAME as ie,inside as F,matteFile as ae,sourceName as ce}from"./tree.js";export const RPC_PATH="/rpc",RAW_PATH="/files/raw/";const h={"access-control-allow-origin":"*"};async function y(n,c,a){const g=await W(n).catch(()=>{});if(!g?.isFile())return new Response("not found",{status:404,headers:{...a}});const u={"content-type":re(n),"cache-control":"no-cache","accept-ranges":"bytes",...a},r=g.size,s=c?/^bytes=(\d*)-(\d*)$/u.exec(c.trim()):null,x=(R,N)=>J.toWeb(B(n,{start:R,end:N}));if(!s||s[1]===""&&s[2]===""||r===0)return new Response(r===0?null:x(0,r-1),{status:200,headers:{...u,"content-length":String(r)}});let p,m;return s[1]===""?(p=Math.max(0,r-Number(s[2])),m=r-1):(p=Number(s[1]),m=s[2]===""?r-1:Math.min(Number(s[2]),r-1)),p>=r||p>m?new Response(null,{status:416,headers:{...u,"content-range":`bytes */${String(r)}`}}):new Response(x(p,m),{status:206,headers:{...u,"content-length":String(m-p+1),"content-range":`bytes ${String(p)}-${String(m)}/${String(r)}`}})}const U=/^[a-z][a-z0-9+.-]*:\/\/[a-z0-9.-]+(:\d{1,5})?$/u;export const PING_MS=3e4,ALLYHUB_FORWARDED="allyhub-forwarded";export function forwardedHost(n){const c=n[ALLYHUB_FORWARDED],g=(n.forwarded??(Array.isArray(c)?c[0]:c))?.split(",")[0]?.split(";").map(r=>r.trim().split("=")).find(([r])=>r?.toLowerCase()==="host")?.[1];if(g!==void 0)return g.replace(/^"(.*)"$/u,"$1");const u=n["x-forwarded-host"];return(Array.isArray(u)?u[0]:u)?.split(",")[0]?.trim()}export function frameSources(n){const c=["'self'","http://127.0.0.1:*","http://localhost:*"];if(n===void 0)return c;const a=new URL(n.replace("{port}","1")),g=new URL(n.replace("{port}","2"));if(a.port!==g.port)return[...c,`${a.protocol}//${a.hostname}:*`];const u=a.hostname.slice(a.hostname.indexOf(".")+1);return[...c,`${a.protocol}//*.${u}`]}export async function startDevServer(n){const c=C(n.root);if(n.embedder!==void 0&&!U.test(n.embedder))throw new Error(`Not an origin: ${n.embedder}`);if(n.publicOrigin!==void 0&&!U.test(n.publicOrigin.replace("{port}","1")))throw new Error(`Not an origin: ${n.publicOrigin}`);const a=n.token??E(18).toString("base64url"),u=`/s/${E(18).toString("base64url")}/`,r=await se.open({...n,root:c,...n.publicOrigin===void 0?{}:{reveal:!1}});let s=0;const x=()=>s===0?void 0:n.publicOrigin?.replace("{port}",String(s)),p=()=>{const e=x();return e===void 0?void 0:new URL(e).host},m=()=>{const e=p();return new Set([`127.0.0.1:${String(s)}`,`localhost:${String(s)}`,...e===void 0?[]:[e]])},R=e=>e===p()?x()??"":`http://${e}`,N=e=>R(e.req.header("host")??""),A=e=>{const t=p();t!==void 0&&forwardedHost(e.headers)===t&&(e.headers.host=t)},T=e=>e??`http://127.0.0.1:${String(s)}`;r.serving={file:(e,t)=>`${T(e)}${RAW_PATH}${t.split("/").map(encodeURIComponent).join("/")}?token=${encodeURIComponent(a)}`,tree:e=>`${T(e)}${u}`};const{routes:P}=r.live,S=new Y,I=async e=>{if(!n.ui)return e.text("allyhub dev serves its editors here.",200);const t=await M(G(n.ui,"index.html"),"utf8").catch(()=>{});if(t===void 0)return e.text("The page's files are missing: build them first (pnpm --filter @allyhub/editor-web build).",500);const l=E(16).toString("base64");return e.html(t.replace(/<script/gu,`<script nonce="${l}"`).replace("</head>",`<meta name="allyhub-token" content="${a}"></head>`),200,{"content-security-policy":["default-src 'self'",`script-src 'self' 'nonce-${l}'`,"style-src 'self' 'unsafe-inline'","img-src 'self' data: blob:","media-src 'self' blob:","font-src 'self' data:",`connect-src 'self' ws://${e.req.header("host")??""}`,`frame-src ${frameSources(n.publicOrigin).join(" ")}`,`frame-ancestors ${n.embedder??"'none'"}`].join("; "),"cache-control":"no-store"})};S.get("/",I),S.post(Z,async e=>{if(e.req.header("authorization")!==`Bearer ${a}`)return e.text("forbidden",403);const t=X.safeParse(await e.req.json().catch(()=>{}));return t.success?(r.presence.agent(t.data),e.body(null,204)):e.text(t.error.message,400)}),S.get(`${RAW_PATH}*`,async e=>{if(e.req.query("token")!==a)return e.text("forbidden",403);const t=decodeURIComponent(e.req.path.slice(RAW_PATH.length));if(oe(t)!==void 0)return e.text("forbidden",403);const l=F(c,t);return l?y(l,e.req.header("range"),{"x-content-type-options":"nosniff","content-security-policy":"sandbox; default-src 'none'; img-src 'self'; media-src 'self'; style-src 'unsafe-inline'"}):e.text("forbidden",403)}),S.get(`${u}*`,async e=>{let t;try{t=decodeURIComponent(e.req.path.slice(u.length))}catch{return e.notFound()}const l=e.req.header("range"),b=N(e),f=t.slice(0,t.indexOf("/")+1),d=t.slice(f.length);switch(f){case O.runtime:{const o=ne(d);if(!o)return e.notFound();const i=Object.values(ee).includes(t);return y(o,void 0,{...h,...i?{"content-security-policy":te(`${b}${u}`,[b,...n.embedder?[n.embedder]:[]],P.loads())}:{}})}case O.build:{const o=ce(d);if(o===void 0){const i=F(r.live.pieceDir,d);return i?y(i,void 0,h):e.notFound()}try{return e.json(await r.live.source(o),200,{...h,"cache-control":"no-store"})}catch(i){return e.json({error:{message:i instanceof Error?i.message:String(i)}},404,h)}}case O.media:{const i=Object.hasOwn(r.live.latest()?.media??{},d)||P.allowed(d)?F(c,d):void 0;return i?y(i,l,h):e.notFound()}case O.matte:{const o=ae(c,r.live.latest()?.media[d]);return o?y(o,l,{...h,"content-type":"video/mp4"}):e.notFound()}case O.stills:return ie.test(d)?y(V.of(c,"stills").path(d),void 0,{...h,"cache-control":"public, max-age=31536000, immutable"}):e.notFound();default:try{const o=await P.route(f);if(!o)return await e.notFound();const i=new WeakSet,w=await o.route.serve({path:d,query:new URL(e.req.url).searchParams,file:async(_,q,z)=>{const j=F(_,q);if(!j)return;const k=await y(j,l,{...h,...z});return i.add(k),k}},o.context);return w?(!i.has(w)&&!w.headers.has("access-control-allow-origin")&&w.headers.set("access-control-allow-origin","*"),w):await e.notFound()}catch(o){return e.text(o instanceof Error?o.message:String(o),500,{...h})}}}),S.get("/*",async e=>{if(!n.ui)return e.notFound();const t=F(C(n.ui),decodeURIComponent(e.req.path.slice(1)));return t?y(t,void 0,{"cache-control":"public, max-age=3600"}):e.notFound()});const v=new Q({noServer:!0,maxPayload:512*1024*1024});v.on("connection",(e,t)=>{const l=r.connect(o=>{e.readyState===e.OPEN&&e.send(JSON.stringify(o))},{origin:R(t.headers.host??"")});e.on("message",(o,i)=>{if(i||!Buffer.isBuffer(o))return;let w;try{w=JSON.parse(o.toString("utf8"))}catch{e.send(JSON.stringify({jsonrpc:"2.0",id:null,error:{code:-32700,message:"Not JSON."}}));return}l.receive(w)});const b=n.pingMs??PING_MS;let f=!0;e.on("pong",()=>{f=!0});const d=b>0?setInterval(()=>{if(!f){e.terminate();return}f=!1,e.ping()},b):void 0;d?.unref(),e.on("close",()=>{clearInterval(d),l.close()})});const L=K(S.fetch),H=(e,t)=>{e.writeHead(403,{"content-type":"text/plain; charset=utf-8"}),e.end(t)},$=D((e,t)=>{if(A(e),!m().has(e.headers.host??"")){H(t,"forbidden host");return}L(e,t)});$.on("upgrade",(e,t,l)=>{const b=new URL(e.url??"/","http://x"),f=(o,i)=>{t.end(`HTTP/1.1 ${String(o)} ${i}\r
3
3
  connection: close\r
4
4
  content-length: 0\r
5
5
  \r
6
- `)};k(e);const i=e.headers.host??"";if(!g().has(i)){m(403,"Forbidden");return}if(b.pathname!==RPC_PATH){m(404,"Not Found");return}if(e.headers.origin!==F(i)){m(403,"Forbidden");return}if(b.searchParams.get("token")!==f){m(403,"Forbidden");return}N.handleUpgrade(e,n,u,r=>{N.emit("connection",r,e)})});try{await new Promise((e,n)=>{v.once("error",n),v.listen(t.port??0,"127.0.0.1",()=>{e()})})}catch(e){throw await o.close(),e}return c=v.address().port,{url:`http://127.0.0.1:${String(c)}/`,port:c,token:f,tree:`http://127.0.0.1:${String(c)}${l}`,ui:t.ui,project:o,async close(){for(const e of N.clients)e.terminate();N.close(),await new Promise(e=>{v.closeAllConnections(),v.close(()=>{e()})}),await o.close()}}}
6
+ `)};A(e);const d=e.headers.host??"";if(!m().has(d)){f(403,"Forbidden");return}if(b.pathname!==RPC_PATH){f(404,"Not Found");return}if(e.headers.origin!==R(d)){f(403,"Forbidden");return}if(b.searchParams.get("token")!==a){f(403,"Forbidden");return}v.handleUpgrade(e,t,l,o=>{v.emit("connection",o,e)})});try{await new Promise((e,t)=>{$.once("error",t),$.listen(n.port??0,"127.0.0.1",()=>{e()})})}catch(e){throw await r.close(),e}return s=$.address().port,{url:`http://127.0.0.1:${String(s)}/`,port:s,token:a,tree:`http://127.0.0.1:${String(s)}${u}`,ui:n.ui,project:r,async close(){for(const e of v.clients)e.terminate();v.close(),await new Promise(e=>{$.closeAllConnections(),$.close(()=>{e()})}),await r.close()}}}
@@ -0,0 +1,4 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readFile as c,readdir as a,stat as d}from"node:fs/promises";import{join as o,posix as l}from"node:path";import{LOCAL_DIR as g}from"@allyhub/formats";import{pathProblem as m}from"./paths.js";export const TEXT_MAX_BYTES=1024*1024;const p=64*1024*1024,y=new Set(["node_modules",".git",g]);export function changedLines(r,e){if(r===e)return;const t=r.split(`
3
+ `),n=e.split(`
4
+ `);let i=0;for(;i<t.length&&i<n.length&&t[i]===n[i];)i++;let s=0;for(;s<t.length-i&&s<n.length-i&&t[t.length-1-s]===n[n.length-1-s];)s++;const f=Math.max(n.length,1),u=Math.min(i+1,f);return{from:u,to:Math.min(Math.max(u,n.length-s),f)}}async function h(r){const e=await d(r).catch(()=>{});if(!e?.isFile())return null;if(e.size>TEXT_MAX_BYTES)return;const t=await c(r).catch(()=>{});if(t===void 0)return null;if(!t.includes(0))return t.toString("utf8")}export class Texts{root;texts=new Map;bytes=0;constructor(e){this.root=e}async warm(){const e=await a(this.root,{recursive:!0,withFileTypes:!0}).catch(()=>[]);for(const t of e){if(!t.isFile())continue;const n=l.relative(this.root.split("\\").join("/"),o(t.parentPath,t.name).split("\\").join("/"));if(n.split("/").some(s=>y.has(s))||m(n)!==void 0||this.texts.has(n))continue;const i=await h(o(this.root,n));if(typeof i=="string"&&!this.keep(n,i))return}}set(e,t){t===void 0||Buffer.byteLength(t)>TEXT_MAX_BYTES?this.forget(e):this.keep(e,t)}forget(e){const t=this.texts.get(e);t!==void 0&&(this.bytes-=Buffer.byteLength(t),this.texts.delete(e))}async changed(e){const t=await h(o(this.root,e)),n=this.texts.get(e);if(t===null)return this.forget(e),{changed:n!==void 0};if(t===void 0)return this.forget(e),{changed:!0};if(this.keep(e,t),n===void 0)return{changed:!0};const i=changedLines(n,t);return i===void 0?{changed:!1}:{changed:!0,lines:i}}keep(e,t){this.forget(e);const n=Buffer.byteLength(t);return this.bytes+n>p?!1:(this.texts.set(e,t),this.bytes+=n,!0)}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{createHash as R}from"node:crypto";import{access as D,readFile as F}from"node:fs/promises";import{basename as L,join as y,posix as _}from"node:path";import{listFiles as b,sourceOf as I,stageId as N}from"@allyhub/build";import{splitTitle as j,parseDoc as C,titleText as H}from"@allyhub/doc";import{ITEM_KINDS as S,OUT_DIR as U,scanItems as v,scriptFileFor as A,slidesFileFor as K}from"@allyhub/formats";import{OpenedVersion as M,componentStills as q,deckDigests as W,parseCombo as z}from"@allyhub/project";import{runtimeFile as G,stageFiles as J}from"@allyhub/stage-page";import{RPC_ERROR as p,RpcError as m,SNAPSHOT_TREE as $,TREE_PAGES as g,stillPath as V}from"@allyhub/protocol";import{readSheetFile as B}from"@allyhub/sheet";import{themeOfLook as Q}from"@allyhub/slides-core";import{CLEAN_LOOK as X,comboKey as k,componentRefText as Y,formatInfo as E,looksOf as Z,messagePrefix as ee}from"@allyhub/video-core";import{fontFaces as te}from"./fonts.js";import{rpcErrorOf as P}from"./live.js";import{loose as oe}from"./paths.js";const ne=a=>R("sha256").update(a).digest("base64url").slice(0,16),w=(a,r)=>{const l=a.tree();if(l===void 0)throw new m(p.unavailable,"This server serves no pages: only allyhub dev's does.");return new URL(r,l).href},x=(a,r,l)=>({url:w(a,`${r}?${l.toString()}`),probe:w(a,g.probe)}),O=a=>({mime:"image/webp",data:a.toString("base64")});async function se(a,r,l){try{if(r.kind==="doc"){const u=await F(y(a,r.entry),"utf8");return H(j(C(u).blocks).title)||void 0}if(r.kind==="sheet"){const u=await F(y(a,r.entry),"utf8");return B(u).file?.title}}catch{return}return l.get(r.dir)}const re=512;export function toolHandlers(a){const{live:r}=a,l=new Map,u=async(e,t,n,o)=>{try{return await r.withSession(async s=>{const i=await M.open({root:r.root,item:e,...t===void 0?{}:{combos:[z(t)]},purpose:n,session:s});try{return await o(i)}finally{await i.close()}})}catch(s){throw P(s)}};return{"project/items":async()=>{const e=await b(r.root),t=v(e),o=t.items.some(i=>i.kind==="video"||i.kind==="slides")?await r.prepared().catch(()=>r.latest()):void 0,s=new Map;for(const i of o?.pieces??[]){const c=typeof i.title=="string"?i.title:void 0;c&&s.set(i.dir,c)}return{items:await Promise.all(t.items.map(async i=>{const c=await se(r.root,i,s);return{...i,...c?{title:c}:{}}})),name:L(r.root),scope:ne(r.root),revision:r.revision}},"sheet/generated":async({item:e})=>{const t=await r.sheetCode(e);return{failed:t.failed,...t.generated?{generated:t.generated}:{}}},"video/versions":async({item:e})=>{const{piece:t}=await r.target(e),n=[...new Set(t.combos.map(o=>o.lang))];return{piece:t.id,kind:t.kind,...typeof t.title=="string"?{title:t.title}:{},width:E(t.formatEntry)?.width??0,height:E(t.formatEntry)?.height??0,versions:n.map(o=>o===void 0?{key:k({})}:{key:k({lang:o}),lang:o})}},"slides/deck":async({item:e})=>{const{prepared:t,piece:n}=await r.target(e);if(n.kind!=="slides"||!n.deck)throw new Error(`${e} is a video, not a deck.`);const o=Z(t.config).looks;return{piece:n.id,file:K(n.dir),prefix:ee(n.id),layouts:n.deck.layouts,components:n.deck.components,generators:n.deck.generators,code:n.deck.code,data:n.deck.data,theme:Q(o?.clean??X),scripts:Object.fromEntries(t.messages.locales.map(s=>[s,A(n.dir,s)]))}},"video/stage":async({item:e,version:t,start:n,play:o,chrome:s,mode:i})=>{const{piece:c,combo:f}=await r.target(e,t),d=new URLSearchParams({piece:c.id,combo:k(f)});for(const[h,T]of Object.entries(n??{}))d.set(h,String(T));return o&&d.set("play","1"),s===!1&&d.set("chrome","0"),i!==void 0&&d.set("mode",i),x(a,g.stage,d)},"video/timeline":async({item:e,version:t})=>u(e,t,"play",n=>Promise.resolve({timeline:oe(n.timeline),text:n.version.summary?.text??[]})),"video/still":async({item:e,version:t,t:n})=>u(e,t,"render",async o=>{const s=n??o.timeline.parts[0]?.still??0;return{t:s,image:O(await o.still(s,{format:"webp"})),width:o.timeline.width,height:o.timeline.height,duration:o.timeline.duration}}),"video/stills":async({item:e,version:t,moments:n})=>u(e,t,"render",async o=>{const s=[];for(const i of n){const c=await o.version.sign(i),f=`${e}\0${t??""}\0${c??""}`,d=c===void 0?void 0:l.get(f),h=d??O(await o.still(i,{format:"webp"}));c!==void 0&&!d&&(l.size>=re&&l.clear(),l.set(f,h)),s.push({t:i,image:h})}return{stills:s}}),"slides/fonts":async({item:e})=>{const{prepared:t,piece:n}=await r.target(e);if(n.kind!=="slides")throw new Error(`${e} is a video, not a deck.`);const o=J().fontCss.flatMap(c=>{const f=G(c);return f===void 0?[]:[{file:f,url:w(a,`${$.runtime}${c}`)}]}),s=I(t,n).styles??[],i=[...o,...s.map(c=>({file:y(r.pieceDir,c.slice($.build.length)),url:w(a,c)}))];return{faces:(await Promise.all(i.map(c=>te(c)))).flat()}},"components/list":async({item:e})=>{const t=await r.prepared(),n=e.replace(/\/doc\.mdx$/u,"").replace(/^\.?\/?/u,"");return{components:t.components.map(o=>{const s=_.relative(n,o.file);return{of:Y({path:s.startsWith(".")?s:`./${s}`,name:o.export}),name:o.name,...o.label===void 0?{}:{label:o.label}}})}},"doc/data":async({item:e})=>{const t=await r.prepared(),n=e.replace(/\/doc\.mdx$/u,"").replace(/^\.?\/?/u,""),o=t.docs.find(s=>s.place===n);if(!o)throw new m(p.notFound,`${e} is not a doc.`);return{data:o.data}},"components/stage":async({item:e,version:t})=>{const{prepared:n,host:o,combo:s}=await r.componentHost(e,t);if(!("components"in o)&&o.kind!=="slides")throw new m(p.notFound,`${e} has no components to draw alone: a deck's or a doc's are.`);const{code:i}=await W(n,o),c=new URLSearchParams({piece:N(o),combo:k(s),mode:"component",code:i.slice(0,16)});return x(a,g.stage,c)},"components/stills":async({item:e,version:t,components:n})=>{w(a,$.stills);try{const{prepared:o,host:s,combo:i}=await r.componentHost(e,t);if(!("components"in s)&&s.kind!=="slides")throw new m(p.notFound,`${e} has no components to draw alone: a deck's or a doc's are.`);const{gpu:c}=await r.browser();return{stills:(await q(n,{prepared:o,item:s,combo:i,gpu:c,withSession:d=>r.withSession(d)})).map(({key:d})=>({key:d,url:w(a,V(d))}))}}catch(o){throw P(o)}},"check/results":()=>Promise.resolve(a.checker?.state??{status:"off",revision:r.revision,problems:[],facts:[]}),"check/run":()=>{if(!a.checker)throw new m(p.unavailable,"This server runs no check.");return a.checker.schedule(!0),Promise.resolve({})},"export/start":async({item:e,versions:t,types:n,options:o})=>{const s=await b(r.root);if(!v(s).items.some(i=>i.dir===e))throw new m(p.notFound,`There is no item ${e}.`);return{job:a.exports.start(e,t??[],n??[],o)}},"export/cancel":({job:e})=>{if(!a.exports.cancel(e))throw new m(p.notFound,`No export ${e} is under way.`);return Promise.resolve({})},"export/list":()=>Promise.resolve({jobs:a.exports.list(),reveal:a.reveal!==void 0}),"export/reveal":async({path:e})=>{if(!a.reveal)throw new m(p.unavailable,"This server is not on the person's computer: download the file.");if(!e.startsWith(`${U}/`))throw new m(p.notFound,`${e} is no exported file.`);const t=y(r.root,e);return await D(t).catch(()=>{throw new m(p.notFound,`There is no file ${e}.`)}),await a.reveal(t),{}},"scenery/viewer":async({item:e,camera:t})=>{const n=await b(r.root),o=v(n).items.find(i=>i.dir===e&&(i.kind==="scenery"||i.kind==="model"));if(!o)throw new m(p.notFound,`There is no scenery or 3D model ${e}: a scenery is a folder with a ${S.scenery.entries[0]??"scenery.ts"}, a model one with a ${S.model.entries[0]??"model.ts"}.`);const s=new URLSearchParams({file:o.entry});return t&&s.set("camera",JSON.stringify(t)),x(a,g.viewer,s)}}}
2
+ import{createHash as R}from"node:crypto";import{access as y}from"node:fs/promises";import{basename as j,join as g,posix as P}from"node:path";import{pathToFileURL as C}from"node:url";import{inTime as x,listWork as O,projectItems as h,stageId as I}from"@allyhub/build";import{NEVER_CANCELLED as L}from"@allyhub/extension-api";import{OUT_DIR as M,isListedFile as _,WORK_FILE as D}from"@allyhub/formats";import{OpenedVersion as H,componentStills as N,itemDigests as U,keyedStills as W,parseCombo as A}from"@allyhub/project";import{runtimeFile as K,stageFiles as V}from"@allyhub/stage-page";import{RPC_ERROR as l,RpcError as c,SNAPSHOT_TREE as $,TREE_PAGES as E,listedFileEditor as q,listedKind as T,stillPath as G}from"@allyhub/protocol";import{comboKey as z,componentRefText as B}from"@allyhub/piece";import{providedPreview as J}from"./card.js";import{kindItem as Q}from"./kinds.js";import{rpcErrorOf as b}from"./live.js";const X=t=>R("sha256").update(t).digest("base64url").slice(0,16),f=(t,e)=>{const n=t.tree();if(n===void 0)throw new c(l.unavailable,"This server serves no pages: only allyhub dev's does.");return new URL(e,n).href},F=(t,e,n)=>({url:f(t,`${e}?${n.toString()}`),probe:f(t,E.probe)});async function Y(t,e,n){if(e.title!==void 0)return e.title;const o=await t.extensions?.kindProvider(e.kind);if(!o?.title)return(await n()).get(e.id);try{const r=await o.title(Q(e),t.kindContext,L);return typeof r=="string"?r:void 0}catch{return}}export function contributedTools(t){const e=new Map;for(const n of t)for(const o of n.projectTools??[])e.has(o.name)||e.set(o.name,o);return e}const v=new Map;export async function contributedTool(t){let e=v.get(t.module);e||(e=import(C(t.module).href).then(o=>{if(typeof o.default!="object"||o.default===null)throw new Error(`${t.extension}'s project tools (${t.module}) have no default export.`);return o.default}),v.set(t.module,e),e.catch(()=>{v.get(t.module)===e&&v.delete(t.module)}));const n=(await e)[t.name];if(!n)throw new Error(`${t.extension} contributes the project tool "${t.name}" but its module (${t.module}) has none of that name.`);return n}export function projectToolContext(t){const{live:e}=t,n=new Map;return{root:e.root,kinds:e.kinds,prepared:()=>e.prepared(),target:(o,r)=>e.target(o,r),itemCode:o=>e.itemCode(o),items:async()=>(await h(e.root,e.kinds)).items,async version(o,r,s,a){try{return await e.withSession(async d=>{const i=await H.open({root:e.root,item:o,...r===void 0?{}:{combos:[A(r)]},purpose:s,session:d});try{return await a(i)}finally{await i.close()}})}catch(d){throw b(d)}},async componentStills(o,r,s){try{const a=await e.prepared(),{gpu:d}=await e.browser();return await W(r,{prepared:a,item:o,combo:s,gpu:d,withSession:i=>e.withSession(i)})}catch(a){throw b(a)}},served:o=>f(t,o),page:(o,r)=>F(t,o,r),buildDir:e.pieceDir,stageStyles:()=>V().fontCss.flatMap(o=>{const r=K(o);return r===void 0?[]:[{file:r,url:f(t,`${$.runtime}${o}`)}]}),kept(o,r){return n.has(o)||n.set(o,r()),n.get(o)},held(o,r){return t.held.has(o)||t.held.set(o,r()),t.held.get(o)},jobs:t.services.jobs,cloud:t.services.cloud,env:t.services.env??process.env,forward:o=>Z(t.services.ports,o)}}function Z(t,e){const n=`http://127.0.0.1:${String(e)}/`;return t===void 0?{url:n,hosts:[],dispose:()=>{}}:(t.add(e),{url:t.public(n),hosts:t.hosts(e),dispose:()=>{t.remove(e)}})}export function toolHandlers(t){const{live:e}=t;return{"project/items":async()=>{const n=await h(e.root,e.kinds,void 0,t.extensions?.fileEditors()??[]);let o;const r=()=>o??=(async()=>{const i=await e.prepared().catch(()=>e.latest()),p=new Map;for(const u of i?.pieces??[]){const m=typeof u.title=="string"?u.title:void 0;m&&p.set(u.place,m)}return p})(),s=new Map((e.latest()?.items??[]).map(i=>[i.id,i.files])),a=t.extensions?.fileEditors()??[];return{items:await Promise.all(n.listed.map(async i=>{const p={id:i.id,dir:i.dir,entry:i.entry,...i.title===void 0?{}:{title:i.title},groups:i.groups};if(_(i)){const w=a.find(S=>S.id===i.editor);return{...p,...w?{kindInfo:q(w)}:{}}}const u=await Y(t,i,r),m=e.kinds.find(w=>w.id===i.kind),k=s.get(i.id);return{...p,kind:i.kind,...u?{title:u}:{},...k?{files:k}:{},...m?{kindInfo:T(m)}:{}}})),kinds:e.kinds.map(i=>({id:i.id,...T(i)})),name:j(e.root),scope:X(e.root),revision:e.revision}},"items/preview":async({item:n})=>{const o=n.replace(/^\.\//u,""),r=(await h(e.root,e.kinds)).items.find(a=>a.id===o||a.entry===o);if(!r)throw new c(l.notFound,`There is no item ${n} in the project's list.`);const s=await J(t.extensions,r,t.kindContext);return s===void 0?{}:{preview:s}},"work/add":async({kind:n,file:o,title:r})=>{if(!e.kinds.some(s=>s.id===n))throw new c(l.invalid,`No extension here contributes the kind ${n}.`);return await y(g(e.root,o)).catch(()=>{throw new c(l.notFound,`There is no file ${o} to list in ${D}.`)}),await O(e.root,{kind:n,file:o,...r===void 0?{}:{title:r}}),{}},"components/list":async({item:n})=>{const o=await e.prepared(),r=o.items.find(s=>s.id===n||s.entry===n)?.dir??n;return{components:o.components.map(s=>{const a=P.relative(r,s.file);return{of:B({path:a.startsWith(".")?a:`./${a}`,name:s.export}),name:s.name,...s.label===void 0?{}:{label:s.label}}})}},"components/stage":async({item:n,version:o})=>{const{prepared:r,host:s,combo:a}=await e.componentHost(n,o);if(!("components"in s)&&x(s,r.kinds))throw new c(l.notFound,`${n} has no components to draw alone: a deck's or a doc's are.`);const{code:d}=await U(r,s),i=new URLSearchParams({piece:I(s),combo:z(a),mode:"component",code:d.slice(0,16)});return F(t,E.stage,i)},"components/stills":async({item:n,version:o,components:r})=>{f(t,$.stills);try{const{prepared:s,host:a,combo:d}=await e.componentHost(n,o);if(!("components"in a)&&x(a,s.kinds))throw new c(l.notFound,`${n} has no components to draw alone: a deck's or a doc's are.`);const{gpu:i}=await e.browser();return{stills:(await N(r,{prepared:s,item:a,combo:d,gpu:i,withSession:u=>e.withSession(u)})).map(({key:u})=>({key:u,url:f(t,G(u))}))}}catch(s){throw b(s)}},"check/results":()=>Promise.resolve(t.checker?.state??{status:"off",revision:e.revision,problems:[],facts:[]}),"check/run":()=>{if(!t.checker)throw new c(l.unavailable,"This server runs no check.");return t.checker.schedule(!0),Promise.resolve({})},"export/start":async({item:n,versions:o,types:r,options:s})=>{const{items:a}=await h(e.root,e.kinds);if(!a.some(d=>d.id===n))throw new c(l.notFound,`There is no item ${n}.`);return{job:t.exports.start(n,o??[],r??[],s)}},"export/cancel":({job:n})=>{if(!t.exports.cancel(n))throw new c(l.notFound,`No export ${n} is under way.`);return Promise.resolve({})},"export/list":()=>Promise.resolve({jobs:t.exports.list(),reveal:t.reveal!==void 0}),"export/reveal":async({path:n})=>{if(!t.reveal)throw new c(l.unavailable,"This server is not on the person's computer: download the file.");if(!n.startsWith(`${M}/`))throw new c(l.notFound,`${n} is no exported file.`);const o=g(e.root,n);return await y(o).catch(()=>{throw new c(l.notFound,`There is no file ${n}.`)}),await t.reveal(o),{}}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{join as n}from"node:path";import{indexPath as o}from"@allyhub/video-core";export const BAKE_NAME=/^[0-9a-f]+\.[a-z0-9-]+\.bin$/u,STILL_NAME=/^[0-9a-f]{64}\.webp$/u;export function sourceName(t){const e=/^sources\/([^/]+)\.json$/u.exec(t);if(e?.[1])try{return decodeURIComponent(e[1])}catch{return}}export function matteFile(t,e){return e?.matte===!0?n(t,o(e.sha256,"matte.mp4")):void 0}
2
+ import{join as o,normalize as u,sep as r}from"node:path";import{indexPath as i}from"@allyhub/piece";export const STILL_NAME=/^[0-9a-f]{64}\.webp$/u;export function inside(e,t){const n=u(o(e,t));return n.startsWith(e.endsWith(r)?e:`${e}${r}`)?n:void 0}export function sourceName(e){const t=/^sources\/([^/]+)\.json$/u.exec(e);if(t?.[1])try{return decodeURIComponent(t[1])}catch{return}}export function matteFile(e,t){return t?.matte===!0?o(e,i(t.sha256,"matte.mp4")):void 0}
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{parse as c}from"yaml";import{parseDoc as p}from"@allyhub/doc";import{DATA_FILES as m,ITEM_KINDS as l,baseOf as f}from"@allyhub/formats";import{readSheetFile as u}from"@allyhub/sheet";const $=r=>new RegExp(`^${r.split("**/").map(s=>s.replace(/[.+?^${}()|[\]\\]/gu,"\\$&").replaceAll("*","[^/]*")).join("(?:.*/)?")}$`,"u"),d=Object.entries(m).flatMap(([r,s])=>s.files.map(t=>({name:r,re:$(t)})));export function dataFileOf(r){return d.find(s=>s.re.test(r))?.name}const g=l.doc.entries[0],b=l.sheet.entries[0];export function writeProblems(r,s){const t=f(r);if(t===g){const e=p(s),n=e.blocks.length===0?e.problems[0]:void 0;return n&&s.trim()!==""?[`not MDX${n.line===void 0?"":` (line ${String(n.line)})`}: ${n.message}`]:[]}if(t===b)return u(s).problems.filter(e=>e.message.startsWith("not YAML")).map(e=>e.message);const a=dataFileOf(r);if(a===void 0)return[];let o;try{o=/\.ya?ml$/u.test(t)?c(s):JSON.parse(s)}catch(e){return[`not ${/\.ya?ml$/u.test(t)?"YAML":"JSON"}: ${e.message.split(`
3
- `)[0]??""}`]}const i=m[a].schema.safeParse(o);return i.success?[]:i.error.issues.map(e=>`${e.path.length?`${e.path.join(".")}: `:""}${e.message}`)}
2
+ import{parse as f}from"yaml";import{kindBuildOf as m,readWork as p}from"@allyhub/build";import{DATA_FILES as c,baseOf as $,listedWork as b}from"@allyhub/formats";const g=e=>new RegExp(`^${e.split("**/").map(a=>a.replace(/[.+?^${}()|[\]\\]/gu,"\\$&").replaceAll("*","[^/]*")).join("(?:.*/)?")}$`,"u"),k=Object.entries(c).flatMap(([e,a])=>a.files.map(n=>({name:e,re:g(n)})));export function dataFileOf(e){return k.find(a=>a.re.test(e))?.name}export async function writeProblems(e,a,n,u){const t=$(e),d=b((await p(u)).work).find(r=>r.file.replace(/^\.\//u,"")===e)?.kind,s=await m(n.find(r=>r.id===d))?.catch(()=>{});if(s?.unreadable)return[...s.unreadable(a)];const i=dataFileOf(e);if(i===void 0)return[];let o;try{o=/\.ya?ml$/u.test(t)?f(a):JSON.parse(a)}catch(r){return[`not ${/\.ya?ml$/u.test(t)?"YAML":"JSON"}: ${r.message.split(`
3
+ `)[0]??""}`]}const l=c[i].schema.safeParse(o);return l.success?[]:l.error.issues.map(r=>`${r.path.length?`${r.path.join(".")}: `:""}${r.message}`)}