@allyhub/sdk 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +1 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  20. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  21. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  22. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  30. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  31. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  33. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  34. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  36. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  38. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  40. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  42. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  46. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  48. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  50. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  51. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  52. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  53. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  54. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  56. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  58. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  60. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  94. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  95. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  96. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  100. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  101. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  102. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  104. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  105. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  106. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  116. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  117. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  119. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  120. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  126. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  127. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  128. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  129. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  131. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  133. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  135. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  137. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  138. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  142. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  143. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  144. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  146. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  147. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  148. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  150. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  151. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  152. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  153. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  154. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  156. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  162. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  166. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  168. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  174. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  176. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  178. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  179. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  180. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  181. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  183. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  185. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  186. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  187. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  189. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  190. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  191. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
  194. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  195. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
  196. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  198. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  199. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
  200. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  201. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  202. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
  204. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  205. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  206. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  210. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
  211. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  212. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  216. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  217. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  219. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  220. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  223. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  225. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  226. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  227. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  228. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  229. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  230. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  231. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  232. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  233. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  234. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  235. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  236. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  237. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  239. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  240. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  241. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  242. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  243. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  244. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  245. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  246. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  247. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  248. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  250. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  252. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  253. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  254. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  257. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
  258. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  259. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  262. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  263. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
  265. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  269. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  270. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  271. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
  272. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  273. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  274. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  275. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  276. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  277. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  278. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  279. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
  280. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  281. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  282. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  283. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  284. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  285. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  286. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  287. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  288. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  289. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
  290. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  291. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  292. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
  293. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  294. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  295. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  296. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  297. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  298. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  299. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  300. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  301. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  302. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  303. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  304. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  305. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  306. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  307. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  308. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  309. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  310. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  311. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  312. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  313. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  314. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  315. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  316. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  317. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  318. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  319. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  320. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
  321. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  322. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  323. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
  324. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  325. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  326. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  327. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  328. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  329. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  330. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  331. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  332. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  333. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  334. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  335. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  336. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  337. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  338. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  339. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  340. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  341. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  342. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  343. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  344. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  345. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  346. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  347. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  348. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  349. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  350. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  351. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  352. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  353. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  354. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  355. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  356. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  357. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  358. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  359. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  360. package/dist/scenery.d.ts +1 -1
  361. package/dist/scenery.js +1 -1
  362. package/dist/sheets.d.ts +1 -1
  363. package/dist/sheets.js +1 -1
  364. package/dist/slides.d.ts +1 -9
  365. package/dist/slides.js +1 -1
  366. package/docs/README.md +8 -6
  367. package/docs/batches.md +5 -5
  368. package/docs/contract.md +2 -2
  369. package/docs/defaults.md +278 -20
  370. package/docs/docs.md +77 -63
  371. package/docs/footage.md +7 -7
  372. package/docs/image.md +165 -0
  373. package/docs/layers.md +22 -13
  374. package/docs/modeling.md +4 -4
  375. package/docs/pictures.md +65 -0
  376. package/docs/project.md +51 -31
  377. package/docs/scenery.md +11 -11
  378. package/docs/sheets.md +26 -25
  379. package/docs/slides.md +73 -65
  380. package/docs/sound.md +3 -3
  381. package/docs/speech.md +8 -8
  382. package/docs/video.md +16 -13
  383. package/docs/websites.md +4 -4
  384. package/package.json +7 -2
  385. package/dist/define.js +0 -2
  386. package/dist/free.js +0 -2
  387. package/dist/input.js +0 -2
  388. package/dist/module.js +0 -2
  389. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  390. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  391. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  392. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  393. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  394. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  395. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  396. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  397. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  398. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  399. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  400. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  401. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  402. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  403. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  404. package/dist/parts.js +0 -2
  405. package/dist/piece.js +0 -2
  406. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  407. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  408. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  409. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  410. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  411. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  412. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  413. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  414. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  415. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  416. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  417. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  418. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  419. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  420. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  421. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  422. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  423. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  424. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  425. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  426. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  427. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  428. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  429. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  430. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  431. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  432. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  433. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  434. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  435. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  436. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
  437. /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
  438. /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";export const WEBSITE_FILE="website.json",WebsiteFileSchema=t.strictObject({$schema:t.string().optional(),dev:t.string().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:t.string().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: it is not built."),output:t.string().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:t.string().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")});export function parseWebsite(o){let i;try{i=JSON.parse(o)}catch(e){return{ok:!1,problems:[`is not JSON: ${e instanceof Error?e.message:String(e)}`]}}const s=WebsiteFileSchema.safeParse(i);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(e=>e.path.length===0?e.message:`${e.path.join(".")}: ${e.message}`)}}
2
+ import{z as t}from"zod";export const WEBSITE_FILE="website.json",WebsiteFileSchema=t.strictObject({$schema:t.string().optional(),title:t.string().min(1).optional().describe("The website's name where people see it (Studio's list of a project's work); none: its entry file's name."),dev:t.string().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:t.string().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: it is not built."),output:t.string().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:t.string().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")});export function parseWebsite(o){let i;try{i=JSON.parse(o)}catch(e){return{ok:!1,problems:[`is not JSON: ${e instanceof Error?e.message:String(e)}`]}}const s=WebsiteFileSchema.safeParse(i);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(e=>e.path.length===0?e.message:`${e.path.join(".")}: ${e.message}`)}}
@@ -0,0 +1,42 @@
1
+ import { z } from "zod";
2
+ /** The project's list of its work, at its root. */
3
+ export declare const WORK_FILE = "allyhub.yaml";
4
+ /**
5
+ * A piece of work: its kind (a kind's id: `video`, `doc`), its file from
6
+ * the project's root, its title. A piece with no kind is a file an editor
7
+ * opens by its name (an `editors` contribution's `files`, as VS Code's
8
+ * custom editors match a file pattern: a canvas, `*.canvas`).
9
+ */
10
+ export declare const WorkItemSchema: z.ZodObject<{
11
+ kind: z.ZodOptional<z.ZodString>;
12
+ file: z.ZodString;
13
+ title: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strict>;
15
+ export type WorkItem = z.infer<typeof WorkItemSchema>;
16
+ /** A heading over work, which may hold groups of its own. */
17
+ export interface WorkGroup {
18
+ group: string;
19
+ items: WorkEntry[];
20
+ }
21
+ export type WorkEntry = WorkItem | WorkGroup;
22
+ export declare const WorkEntrySchema: z.ZodType<WorkEntry>;
23
+ export declare const WorkFileSchema: z.ZodObject<{
24
+ $schema: z.ZodOptional<z.ZodString>;
25
+ work: z.ZodDefault<z.ZodArray<z.ZodType<WorkEntry, unknown, z.core.$ZodTypeInternals<WorkEntry, unknown>>>>;
26
+ }, z.core.$strict>;
27
+ export type WorkFile = z.infer<typeof WorkFileSchema>;
28
+ /** A piece of work as listed, with the headings over it, outermost first. */
29
+ export interface ListedWork extends WorkItem {
30
+ groups: string[];
31
+ }
32
+ /** Every piece of work a list holds, in its order, each with its headings. */
33
+ export declare function listedWork(file: WorkFile): ListedWork[];
34
+ /** A list read from its parsed YAML: the list, or what is wrong with it, by path. */
35
+ export declare function parseWork(raw: unknown): {
36
+ ok: true;
37
+ value: WorkFile;
38
+ } | {
39
+ ok: false;
40
+ problems: string[];
41
+ };
42
+ //# sourceMappingURL=work.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as e}from"zod";import{dataFile as n}from"./file.js";export const WORK_FILE="allyhub.yaml",WorkItemSchema=e.strictObject({kind:e.string().min(1).optional().describe("What it is: a kind's id (video, slides, image, doc, sheet, scenery, model, website, or an extension's); none for a file an editor opens by its name (a canvas, *.canvas)"),file:e.string().min(1).describe("Its file, from the project's root: a video's, a deck's or an image's module, a doc's MDX, a sheet's YAML, a website's JSON, a canvas"),title:e.string().min(1).optional().describe("Its name where people see it; none: the title its file says, else its file's name")}),WorkEntrySchema=e.lazy(()=>e.union([WorkItemSchema,e.strictObject({group:e.string().min(1).describe("A heading, as people see it"),items:e.array(WorkEntrySchema)})])),WorkFileSchema=n({work:e.array(WorkEntrySchema).default([]).describe("The work a person sees, in order: pieces, and groups of them")});export function listedWork(r){const s=[],o=(a,i)=>{for(const t of a)"group"in t?o(t.items,[...i,t.group]):s.push({...t,groups:i})};return o(r.work,[]),s}export function parseWork(r){const s=WorkFileSchema.safeParse(r??{});return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(o=>`${o.path.join(".")||"(root)"}: ${o.message}`)}}
@@ -0,0 +1,91 @@
1
+ import { z } from "zod";
2
+ /** `publisher.name`, as VS Code names an extension: lower case, digits and hyphens. */
3
+ export declare const ExtensionIdSchema: z.ZodString;
4
+ /** A host on the network an extension's workspace code calls, with why. */
5
+ export declare const NetworkCapabilitySchema: z.ZodObject<{
6
+ host: z.ZodString;
7
+ reason: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export declare const CapabilitiesSchema: z.ZodObject<{
10
+ untrustedProjects: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"limited">]>>;
11
+ network: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ host: z.ZodString;
13
+ reason: z.ZodString;
14
+ }, z.core.$strip>>>;
15
+ spend: z.ZodOptional<z.ZodBoolean>;
16
+ }, z.core.$strip>;
17
+ export type Capabilities = z.infer<typeof CapabilitiesSchema>;
18
+ /**
19
+ * A declared point's id: the declaring extension's id, the point's name and
20
+ * its version (`allyhub.doc/blockTypes/v1`), so a point that changes shape
21
+ * is a new point beside the old.
22
+ */
23
+ export declare const EXTENSION_POINT_ID: RegExp;
24
+ /** A contribution point an extension opens for others (4.8): what it is for, and its entries' JSON Schema. */
25
+ export declare const ExtensionPointSchema: z.ZodObject<{
26
+ about: z.ZodString;
27
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
+ }, z.core.$strip>;
29
+ export declare const ExtensionManifestSchema: z.ZodObject<{
30
+ id: z.ZodString;
31
+ engines: z.ZodString;
32
+ main: z.ZodOptional<z.ZodString>;
33
+ browser: z.ZodOptional<z.ZodString>;
34
+ stage: z.ZodOptional<z.ZodString>;
35
+ activationEvents: z.ZodDefault<z.ZodArray<z.ZodString>>;
36
+ contributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
+ extensionPoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
38
+ about: z.ZodString;
39
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
40
+ }, z.core.$strip>>>;
41
+ extensionDependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
42
+ capabilities: z.ZodDefault<z.ZodObject<{
43
+ untrustedProjects: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"limited">]>>;
44
+ network: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
+ host: z.ZodString;
46
+ reason: z.ZodString;
47
+ }, z.core.$strip>>>;
48
+ spend: z.ZodOptional<z.ZodBoolean>;
49
+ }, z.core.$strip>>;
50
+ enabledApiProposals: z.ZodDefault<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strip>;
52
+ export type ExtensionManifest = z.infer<typeof ExtensionManifestSchema>;
53
+ /**
54
+ * The package.json an extension is: its name, its version, its manifest,
55
+ * and npm's ranges of the packages it depends on, where the range of an
56
+ * extension it names in `extensionDependencies` is read (F6b).
57
+ */
58
+ export declare const ExtensionPackageSchema: z.ZodObject<{
59
+ name: z.ZodString;
60
+ version: z.ZodString;
61
+ allyhub: z.ZodObject<{
62
+ id: z.ZodString;
63
+ engines: z.ZodString;
64
+ main: z.ZodOptional<z.ZodString>;
65
+ browser: z.ZodOptional<z.ZodString>;
66
+ stage: z.ZodOptional<z.ZodString>;
67
+ activationEvents: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ contributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
69
+ extensionPoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
70
+ about: z.ZodString;
71
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
72
+ }, z.core.$strip>>>;
73
+ extensionDependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
74
+ capabilities: z.ZodDefault<z.ZodObject<{
75
+ untrustedProjects: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"limited">]>>;
76
+ network: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ host: z.ZodString;
78
+ reason: z.ZodString;
79
+ }, z.core.$strip>>>;
80
+ spend: z.ZodOptional<z.ZodBoolean>;
81
+ }, z.core.$strip>>;
82
+ enabledApiProposals: z.ZodDefault<z.ZodArray<z.ZodString>>;
83
+ }, z.core.$strip>;
84
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
87
+ }, z.core.$strip>;
88
+ export type ExtensionPackage = z.infer<typeof ExtensionPackageSchema>;
89
+ /** Whether a package.json says it is an extension (it has an `allyhub` field). */
90
+ export declare const isExtensionPackage: (pkg: unknown) => boolean;
91
+ //# sourceMappingURL=extension.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as n}from"zod";export const ExtensionIdSchema=n.string().regex(/^[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*$/u,{message:"An extension's id is publisher.name, in lower case."}),NetworkCapabilitySchema=n.object({host:n.string().min(1),reason:n.string().min(1)}),CapabilitiesSchema=n.object({untrustedProjects:n.union([n.boolean(),n.literal("limited")]).optional(),network:n.array(NetworkCapabilitySchema).optional(),spend:n.boolean().optional()}),EXTENSION_POINT_ID=/^([a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*)\/[a-z][a-zA-Z0-9]*\/v[1-9][0-9]*$/u,ExtensionPointSchema=n.object({about:n.string().min(1),schema:n.record(n.string(),n.unknown())}),ExtensionManifestSchema=n.object({id:ExtensionIdSchema,engines:n.string().min(1),main:n.string().min(1).optional(),browser:n.string().min(1).optional(),stage:n.string().min(1).optional(),activationEvents:n.array(n.string().min(1)).default([]),contributes:n.record(n.string(),n.unknown()).default({}),extensionPoints:n.record(n.string(),ExtensionPointSchema).default({}),extensionDependencies:n.array(ExtensionIdSchema).default([]),capabilities:CapabilitiesSchema.default({}),enabledApiProposals:n.array(n.string().min(1)).default([])});const t=n.record(n.string(),n.string()).optional();export const ExtensionPackageSchema=n.object({name:n.string().min(1),version:n.string().min(1),allyhub:ExtensionManifestSchema,dependencies:t,peerDependencies:t,optionalDependencies:t}),isExtensionPackage=e=>typeof e=="object"&&e!==null&&"allyhub"in e&&typeof e.allyhub=="object";
@@ -0,0 +1,51 @@
1
+ /**
2
+ * An editor that opens files by their names, as its extension contributes
3
+ * it: what the core needs to list those files and name them.
4
+ */
5
+ export interface FileEditorSpec {
6
+ /** The editor's id: `allyhub.canvas.editor`. */
7
+ readonly id: string;
8
+ /** The glob patterns of the project paths it opens (`**\/*.canvas`). */
9
+ readonly files: readonly string[];
10
+ /** What it opens, for an agent and the CLI, in English: `canvas`. */
11
+ readonly noun: string;
12
+ /** What it opens, for people, by language. */
13
+ readonly name: Readonly<Record<string, string>>;
14
+ /** A heading over the files it opens, by language. */
15
+ readonly plural?: Readonly<Record<string, string>> | undefined;
16
+ /** Its icon, a name in the UI kit's icon set. */
17
+ readonly icon?: string | undefined;
18
+ /** Its colour, a token of the UI kit's. */
19
+ readonly color?: string | undefined;
20
+ /**
21
+ * Its check module, where the check imports it from (its contribution's
22
+ * `check`, resolved against its extension's folder): its default export
23
+ * is `@allyhub/build`'s FileCheck, the objective errors of one file.
24
+ */
25
+ readonly check?: string | undefined;
26
+ /** The extension that contributes it. */
27
+ readonly extension: string;
28
+ }
29
+ /** The editors that open files by their names, as the extensions loaded contribute them. */
30
+ export type FileEditorTable = readonly FileEditorSpec[];
31
+ /** A file an editor opens by its name: its project path, and the editor. */
32
+ export interface EditorFile {
33
+ path: string;
34
+ editor: string;
35
+ }
36
+ /**
37
+ * A glob pattern as a test of project paths, as VS Code's file patterns
38
+ * read: `*` is any run of characters but `/`, `?` one of them, `**` any
39
+ * run of folders (none among them), `{a,b}` either; a pattern with no `/`
40
+ * matches a file's name in any folder (`*.canvas` as `**\/*.canvas`).
41
+ */
42
+ export declare function globTest(pattern: string): (path: string) => boolean;
43
+ /** The editor that opens a project path by its name, in a table: the first whose pattern matches. */
44
+ export declare function fileEditorIn(table: FileEditorTable, path: string): FileEditorSpec | undefined;
45
+ /**
46
+ * The files of a project the editors of `table` open by their names, in
47
+ * path order (project paths; dot folders and node_modules are left out
48
+ * whatever is passed).
49
+ */
50
+ export declare function scanFiles(files: Iterable<string>, table: FileEditorTable): EditorFile[];
51
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{unscanned as f}from"./layout.js";const r=/[.+^${}()|[\]\\]/gu;export function globTest(o){const t=o.includes("/")?o:`**/${o}`;let s="";for(let e=0;e<t.length;e++){const n=t.charAt(e);if(n==="*"&&t.charAt(e+1)==="*"){const i=t.charAt(e+2)==="/";s+=i?"(?:[^/]+/)*":".*",e+=i?2:1}else if(n==="*")s+="[^/]*";else if(n==="?")s+="[^/]";else if(n==="{"){const i=t.indexOf("}",e);i<0?s+="\\{":(s+=`(?:${t.slice(e+1,i).split(",").map(l=>l.replace(r,"\\$&").replaceAll("*","[^/]*")).join("|")})`,e=i)}else s+=n.replace(r,"\\$&")}const c=new RegExp(`^${s}$`,"u");return e=>c.test(e)}export function fileEditorIn(o,t){return o.find(s=>s.files.some(c=>globTest(c)(t)))}export function scanFiles(o,t){if(t.length===0)return[];const s=t.map(e=>({id:e.id,tests:e.files.map(globTest)})),c=[];for(const e of[...o].filter(n=>!f(n)).sort()){const n=s.find(i=>i.tests.some(l=>l(e)));n&&c.push({path:e,editor:n.id})}return c}
@@ -1,6 +1,8 @@
1
1
  export * from "./layout.js";
2
2
  export * from "./note-shape.js";
3
3
  export * from "./items.js";
4
+ export * from "./files.js";
5
+ export * from "./contributed.js";
4
6
  export * from "./schemas.js";
5
7
  export * from "./strict.js";
6
8
  export * from "./data/file.js";
@@ -8,9 +10,9 @@ export * from "./data/words.js";
8
10
  export * from "./data/edits.js";
9
11
  export * from "./data/elements.js";
10
12
  export * from "./data/gen.js";
11
- export * from "./data/comments.js";
12
13
  export * from "./data/messages.js";
13
14
  export * from "./data/script.js";
15
+ export * from "./data/work.js";
14
16
  export * from "./data/sheet.js";
15
17
  export * from "./data/slides.js";
16
18
  export * from "./data/deck-code.js";
@@ -20,4 +22,6 @@ export * from "./data/reference.js";
20
22
  export * from "./data/website.js";
21
23
  export * from "./media-type.js";
22
24
  export * from "./zip.js";
25
+ export * from "./csv.js";
26
+ export * from "./extension.js";
23
27
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./schemas.js";export*from"./strict.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/comments.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/deck-code.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";export*from"./data/website.js";export*from"./media-type.js";export*from"./zip.js";
2
+ export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./files.js";export*from"./contributed.js";export*from"./schemas.js";export*from"./strict.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/work.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/deck-code.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";export*from"./data/website.js";export*from"./media-type.js";export*from"./zip.js";export*from"./csv.js";export*from"./extension.js";
@@ -1,46 +1,6 @@
1
- /** The extensions a code entry file may have. */
2
- export declare const CODE_EXTENSIONS: readonly ["ts", "tsx", "mts", "js", "jsx", "mjs"];
3
- /** The editors an item opens in: one per kind. */
4
- export declare const EDITORS: readonly ["video", "slides", "doc", "sheet", "scenery", "website"];
5
- export type EditorId = (typeof EDITORS)[number];
6
- export declare const ITEM_KINDS: {
7
- readonly video: {
8
- readonly entries: readonly string[];
9
- readonly editor: "video";
10
- readonly name: "video";
11
- };
12
- readonly slides: {
13
- readonly entries: readonly string[];
14
- readonly editor: "slides";
15
- readonly name: "slides";
16
- };
17
- readonly doc: {
18
- readonly entries: readonly ["doc.mdx"];
19
- readonly editor: "doc";
20
- readonly name: "doc";
21
- };
22
- readonly sheet: {
23
- readonly entries: readonly ["sheet.yaml"];
24
- readonly editor: "sheet";
25
- readonly name: "sheet";
26
- };
27
- readonly scenery: {
28
- readonly entries: readonly string[];
29
- readonly editor: "scenery";
30
- readonly name: "3D scenery";
31
- };
32
- readonly model: {
33
- readonly entries: readonly string[];
34
- readonly editor: "scenery";
35
- readonly name: "3D model";
36
- };
37
- readonly website: {
38
- readonly entries: readonly ["website.json"];
39
- readonly editor: "website";
40
- readonly name: "website";
41
- };
42
- };
43
- export type ItemKind = keyof typeof ITEM_KINDS;
1
+ import type { ProjectToolSpec, StageRouteSpec } from "./contributed.js";
2
+ import { type WorkFile } from "./data/work.js";
3
+ import { type FileEditorTable } from "./files.js";
44
4
  /**
45
5
  * A choice about how a file is made: one of `values`, the first the
46
6
  * default, or without them on or off. `only` lists the file types it means
@@ -52,69 +12,245 @@ export interface ExportOption {
52
12
  values?: readonly string[];
53
13
  }
54
14
  /**
55
- * What an item of a kind is exported as in its editor: the file types to
56
- * choose one of, the first the default, those that may come with it, and how
57
- * they are made. A kind that is not here has no Export. `allyhub render`
58
- * makes these and more.
15
+ * What a new item of a kind is made of: each file a path inside the new
16
+ * item's folder and its text, in the order they are written, with
17
+ * `{{name}}` (the new item's, as a file is named) and `{{locale}}` in a
18
+ * path or a text, `{{title}}` in a text (`@allyhub/protocol`'s
19
+ * starterFiles); `entry` is the one of them the list names.
20
+ */
21
+ export interface KindStarter {
22
+ readonly files: Readonly<Record<string, string>>;
23
+ readonly entry: string;
24
+ }
25
+ /**
26
+ * A kind as its extension contributes it (docs/design/framework.md, 5.1):
27
+ * what the core needs to find and name its items. The extension host makes
28
+ * the table from the extensions loaded; nothing in the core lists kinds.
59
29
  */
60
- export declare const EXPORT_OFFER: Partial<Record<ItemKind, {
61
- types: readonly string[];
62
- extras: readonly string[];
63
- options?: readonly ExportOption[];
64
- }>>;
65
- export declare const KINDS: ItemKind[];
66
- /** The kind a file name is the entry file of, if any. */
67
- export declare function entryKind(name: string): ItemKind | undefined;
68
- /** An item of the project, by its folder. */
30
+ export interface KindSpec {
31
+ /** Its id: `video`, `slides`. */
32
+ readonly id: string;
33
+ /** The editor that opens it, an editors contribution's id. */
34
+ readonly editor?: string | undefined;
35
+ /** Its name for an agent and the CLI, in English. */
36
+ readonly noun: string;
37
+ /**
38
+ * Its versions are pages, each drawn at its still (a deck's slides), not
39
+ * a film's moments sampled in time with its sound mixed and its speech
40
+ * said; absent: in time.
41
+ */
42
+ readonly pages?: boolean | undefined;
43
+ /** What its items are made of, as the CLI names them in English (a video's part, a deck's slide, an image's board); absent: `part`. */
44
+ readonly part?: {
45
+ readonly noun: string;
46
+ readonly plural: string;
47
+ } | undefined;
48
+ /** Its name for people, by language. */
49
+ readonly name?: Readonly<Record<string, string>> | undefined;
50
+ /** Its name for a heading over its items, by language. */
51
+ readonly plural?: Readonly<Record<string, string>> | undefined;
52
+ /** Its icon, a name in the UI kit's icon set. */
53
+ readonly icon?: string | undefined;
54
+ /** Its colour, a slot of the UI kit's palette (`kind-blue`). */
55
+ readonly color?: string | undefined;
56
+ /** What its editor's Export offers; none for a kind with no Export. */
57
+ readonly exports?: {
58
+ readonly types: readonly string[];
59
+ readonly extras: readonly string[];
60
+ readonly options: readonly ExportOption[];
61
+ /** A type of its own's name for people, by type, by language. */
62
+ readonly names?: Readonly<Record<string, Readonly<Record<string, string>>>>;
63
+ } | undefined;
64
+ /** What `allyhub render` makes of its items: the file types it can, and those made when none is asked; none for a kind not rendered. */
65
+ readonly renders?: {
66
+ readonly types: readonly string[];
67
+ readonly defaults: readonly string[];
68
+ } | undefined;
69
+ /** What a new item of it starts as (KindStarter); none for a kind a person does not make new. */
70
+ readonly starter?: KindStarter | undefined;
71
+ /** Whether an item of it is shared alone: a read-only link to it, its view served from the project's snapshot. */
72
+ readonly share?: boolean | undefined;
73
+ /**
74
+ * Its build module, where the build imports it from (its contribution's
75
+ * `build`, resolved against its extension's folder): what reads its
76
+ * items into the project's build (`@allyhub/build`'s KindBuild). A kind
77
+ * without one is only listed, by its entry file.
78
+ */
79
+ readonly build?: string | undefined;
80
+ /**
81
+ * The build plugin modules its extension contributes (its
82
+ * `buildPlugins`, each resolved as `build` is): what every stage bundle
83
+ * of a project takes from that extension (`@allyhub/build`'s
84
+ * BuildPlugins). Each kind of the extension carries them, and the build
85
+ * takes each module once.
86
+ */
87
+ readonly buildPlugins?: readonly string[] | undefined;
88
+ /**
89
+ * The project tools its extension contributes (its `projectTools`, each
90
+ * module resolved as `build` is): what the dev server answers an
91
+ * editor's `tools/call` with besides the core's. Each kind of the
92
+ * extension carries them, and the server takes each tool once.
93
+ */
94
+ readonly projectTools?: readonly ProjectToolSpec[] | undefined;
95
+ /**
96
+ * The folders of the stage's tree its extension serves (its
97
+ * `stageRoutes`, each module resolved as `build` is): what the dev
98
+ * server answers there besides the core's folders, and records of them
99
+ * in a snapshot. Each kind of the extension carries them, and the
100
+ * server takes each folder once.
101
+ */
102
+ readonly stageRoutes?: readonly StageRouteSpec[] | undefined;
103
+ /**
104
+ * The entries of the points its extension declares (`extensionPoints`,
105
+ * docs/design/framework.md, 4.8), by point id, as the host read them:
106
+ * what its build module, its exporter and its tools read where no
107
+ * extension is activated. Each kind of the
108
+ * extension carries them; none when its extension declares no point.
109
+ */
110
+ readonly points?: Readonly<Record<string, readonly PointEntry[]>> | undefined;
111
+ /** The extension that contributes it. */
112
+ readonly extension: string;
113
+ }
114
+ /** An entry of a declared point, with the extension that contributed it and its folder (where a path in it is). */
115
+ export interface PointEntry {
116
+ readonly extension: string;
117
+ readonly extensionPath: string;
118
+ /** The entry, as the point's schema read it. */
119
+ readonly entry: unknown;
120
+ }
121
+ /** The entries of a declared point that a kind's extension reads, from a kind table; none when nobody contributes to it. */
122
+ export declare function pointEntriesIn(table: KindTable, kind: string, point: string): readonly PointEntry[];
123
+ /** The kinds the extensions loaded contribute. */
124
+ export type KindTable = readonly KindSpec[];
125
+ /** A piece of work in the project, as its list names it. */
69
126
  export interface Item {
70
- kind: ItemKind;
71
- /** Its folder, a project path: what names the item. */
127
+ /** What names it: its file without its extension (`launch/teaser`), unique in the project. */
128
+ id: string;
129
+ /** Its kind's id, as the list says it. */
130
+ kind: string;
131
+ /** The folder its file is in, a project path ("" at the root). */
72
132
  dir: string;
73
- /** Its entry file, a project path. */
133
+ /** Its file, a project path. */
74
134
  entry: string;
135
+ /** Its title as the list says it, if it does. */
136
+ title?: string;
137
+ /** The headings over it in the list, outermost first. */
138
+ groups: string[];
139
+ /**
140
+ * The files it uses, its entry first, as its kind's build listed them
141
+ * once it read it (docs/design/item-files.md); absent before.
142
+ */
143
+ files?: ItemFile[];
144
+ /**
145
+ * The other items' made files it uses (docs/design/x.md §2), as the
146
+ * build resolved them once its kind read it; absent before, and for an
147
+ * item that uses none.
148
+ */
149
+ uses?: ItemUse[];
150
+ }
151
+ /**
152
+ * Another item's made file an item uses, resolved by the build: the
153
+ * reference as its file writes it (`./hero.ts#main`), the item it names,
154
+ * the part after `#` when there is one, and the type it is made as (the
155
+ * first of the types the using kind takes that the used kind renders).
156
+ */
157
+ export interface ItemUse {
158
+ /** The reference as written. */
159
+ of: string;
160
+ /** The file that writes it, a project path. */
161
+ from: string;
162
+ /** The used item's id. */
163
+ item: string;
164
+ /** The part after `#` (a board's key), when the reference names one. */
165
+ part?: string | undefined;
166
+ type: string;
167
+ /** What it is to the using item, in its kind's own words (`media`). */
168
+ role?: string | undefined;
169
+ }
170
+ /**
171
+ * A file an item uses, as its kind's build lists it: a project path (a
172
+ * script's with `{locale}` for each language), and what it is to the
173
+ * item in its kind's own words (`slides`, `script`, `code`, `table`), which
174
+ * its editor and tools read and nothing else does.
175
+ */
176
+ export interface ItemFile {
177
+ path: string;
178
+ role?: string | undefined;
179
+ }
180
+ /** What stands for each language in a path of a file per language (`./teaser.{locale}.yaml`). */
181
+ export declare const LOCALE_MARK = "{locale}";
182
+ /** Whether an item's files hold a project path: as listed, or a file per language by its pattern. */
183
+ export declare function listsFile(files: readonly ItemFile[], path: string): boolean;
184
+ /** An item's files: as its kind's build listed them, else its entry alone. */
185
+ export declare const itemFiles: (item: Pick<Item, "entry" | "files">) => ItemFile[];
186
+ /** An item's id: its file without its extension. */
187
+ export declare const itemIdOf: (file: string) => string;
188
+ /** An item's name for people: its title as listed, else the one its file says, else its file's name. */
189
+ export declare const itemNameOf: (item: {
190
+ id: string;
191
+ title?: string | undefined;
192
+ }, own?: string) => string;
193
+ /**
194
+ * A piece the list names with no kind: a file an editor opens by its name
195
+ * (a canvas), with the editor whose pattern matches it. It has the names an
196
+ * item has and nothing of a kind (no versions, no Export, no Share).
197
+ */
198
+ export interface ListedFile {
199
+ /** What names it: its file without its extension, unique among the items and files of the list. */
200
+ id: string;
201
+ /** The folder its file is in, a project path ("" at the root). */
202
+ dir: string;
203
+ /** Its file, a project path. */
204
+ entry: string;
205
+ /** Its title as the list says it, if it does. */
206
+ title?: string;
207
+ /** The headings over it in the list, outermost first. */
208
+ groups: string[];
209
+ /** The editor that opens it: an `editors` contribution's id, the first whose `files` match it. */
210
+ editor: string;
75
211
  }
76
212
  export type ItemProblem =
77
- /** A folder with more than one entry file: it is no item until one goes. */
213
+ /** A kind no extension loaded contributes. */
78
214
  {
79
- code: "two-entries";
80
- dir: string;
81
- entries: string[];
215
+ code: "unknown-kind";
216
+ kind: string;
217
+ file: string;
82
218
  }
83
- /** An item inside another item's folder: the outer one has it as a file. */
219
+ /** A file listed with no kind that no editor loaded opens by its name. */
84
220
  | {
85
- code: "nested";
86
- dir: string;
87
- inside: string;
221
+ code: "no-editor";
222
+ file: string;
88
223
  }
89
- /** An entry file at the project's root: the root is the project, not an item. */
224
+ /** A file the list names that is not in the project. */
90
225
  | {
91
- code: "at-root";
92
- entry: string;
226
+ code: "missing";
227
+ file: string;
228
+ }
229
+ /** Two listed files of one id (`a.ts`, `a.mdx`), or one file listed twice. */
230
+ | {
231
+ code: "same-id";
232
+ id: string;
233
+ files: string[];
93
234
  };
94
235
  export interface ItemScan {
95
- /** The items, by their folders, in path order. */
236
+ /** The items, in the list's order. */
96
237
  items: Item[];
238
+ /** The files listed with no kind, in the list's order, each with the editor that opens it; none unless the file editors were given. */
239
+ files: ListedFile[];
240
+ /** The items and the files together, in the list's order. */
241
+ listed: (Item | ListedFile)[];
97
242
  problems: ItemProblem[];
98
243
  }
244
+ /** Whether a listed piece is a file an editor opens by its name, not an item of a kind. */
245
+ export declare const isListedFile: (piece: Item | ListedFile) => piece is ListedFile;
99
246
  /**
100
- * The items of a project, from its files (project paths; dot folders and
101
- * node_modules are left out here whatever is passed).
247
+ * The items of a project from its list: each listed file of a known kind
248
+ * that is there (`files`, the project's paths, when known), in the list's
249
+ * order; what cannot be one is a problem, objective (an unknown kind, a
250
+ * file not there, an id twice). A piece listed with no kind is a file an
251
+ * editor opens by its name: with `editors` (the file editors loaded), each
252
+ * is found its editor or is a problem; without them (the build, which
253
+ * reads kinds only), it is left out, unchecked.
102
254
  */
103
- export declare function scanItems(files: Iterable<string>): ItemScan;
104
- /** The item a project path belongs to: the one whose folder holds it. */
105
- export declare function itemFor(path: string, items: readonly Item[]): Item | undefined;
106
- /** The registry as data, for a host that does not run this code. */
107
- export interface ItemManifest {
108
- version: 1;
109
- kinds: {
110
- kind: ItemKind;
111
- name: string;
112
- editor: EditorId;
113
- /** Glob patterns of its entry files, from the project's root. */
114
- patterns: string[];
115
- }[];
116
- /** Folders never looked into, as glob patterns. */
117
- ignore: string[];
118
- }
119
- export declare function itemManifest(): ItemManifest;
255
+ export declare function itemsOf(work: WorkFile, kinds: KindTable, files?: ReadonlySet<string>, editors?: FileEditorTable): ItemScan;
120
256
  //# sourceMappingURL=items.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{WEBSITE_FILE as f}from"./data/website.js";import{baseOf as l,dirOf as u,unscanned as x,within as a}from"./layout.js";export const CODE_EXTENSIONS=["ts","tsx","mts","js","jsx","mjs"];const d=e=>CODE_EXTENSIONS.map(n=>`${e}.${n}`);export const EDITORS=["video","slides","doc","sheet","scenery","website"],ITEM_KINDS={video:{entries:d("video"),editor:"video",name:"video"},slides:{entries:d("slides"),editor:"slides",name:"slides"},doc:{entries:["doc.mdx"],editor:"doc",name:"doc"},sheet:{entries:["sheet.yaml"],editor:"sheet",name:"sheet"},scenery:{entries:d("scenery"),editor:"scenery",name:"3D scenery"},model:{entries:d("model"),editor:"scenery",name:"3D model"},website:{entries:[f],editor:"website",name:"website"}},EXPORT_OFFER={video:{types:["mp4","mov","gif"],extras:["srt","cover"]},slides:{types:["pptx","pdf","png"],extras:["cover"],options:[{name:"pptx",only:["pptx"],values:["native","picture"]},{name:"steps",only:["pdf","png"]}]},doc:{types:["pdf","docx","png","md"],extras:[]},sheet:{types:["xlsx","pdf","png","csv","md","json"],extras:[]},model:{types:["glb"],extras:[]}},KINDS=Object.keys(ITEM_KINDS);const y=new Map(KINDS.flatMap(e=>ITEM_KINDS[e].entries.map(n=>[n,e])));export function entryKind(e){return y.get(l(e))}export function scanItems(e){const n=[...e].filter(t=>!x(t)).sort(),o=[],r=new Map;for(const t of n){if(entryKind(t)===void 0)continue;const s=u(t);if(s===""){o.push({code:"at-root",entry:t});continue}r.set(s,[...r.get(s)??[],t])}const c=[];for(const[t,s]of r){const[i]=s;if(s.length>1||i===void 0){o.push({code:"two-entries",dir:t,entries:s});continue}const m=entryKind(i);m&&c.push({kind:m,dir:t,entry:i})}c.sort((t,s)=>t.dir.localeCompare(s.dir));const p=[];for(const t of c){const s=p.find(i=>a(t.dir,i.dir));s?o.push({code:"nested",dir:t.dir,inside:s.dir}):p.push(t)}return{items:p,problems:o}}export function itemFor(e,n){let o;for(const r of n)a(e,r.dir)&&(!o||r.dir.length>o.dir.length)&&(o=r);return o}export function itemManifest(){return{version:1,kinds:KINDS.map(e=>({kind:e,name:ITEM_KINDS[e].name,editor:ITEM_KINDS[e].editor,patterns:ITEM_KINDS[e].entries.map(n=>`**/${n}`)})),ignore:["**/.*/**","**/node_modules/**"]}}
2
+ import{listedWork as x}from"./data/work.js";import{fileEditorIn as O}from"./files.js";import{baseOf as m,dirOf as k}from"./layout.js";export function pointEntriesIn(t,e,n){return t.find(s=>s.id===e)?.points?.[n]??[]}export const LOCALE_MARK="{locale}";export function listsFile(t,e){return t.some(n=>{const s=n.path.indexOf(LOCALE_MARK);if(s<0)return n.path===e;const r=n.path.slice(0,s),d=n.path.slice(s+LOCALE_MARK.length);return e.length>r.length+d.length&&e.startsWith(r)&&e.endsWith(d)})}export const itemFiles=t=>t.files??[{path:t.entry,role:"entry"}],itemIdOf=t=>{const e=m(t),n=e.lastIndexOf(".");return n<=0?t:t.slice(0,t.length-(e.length-n))},itemNameOf=(t,e)=>t.title??e??m(t.id),isListedFile=t=>"editor"in t;export function itemsOf(t,e,n,s){const r=[],d=[],f=new Map;for(const i of x(t)){const o=i.file.replace(/^\.\//u,""),c=i.kind;let p;if(c===void 0){if(s===void 0)continue;const l=O(s,o)?.id;if(l===void 0){r.push({code:"no-editor",file:o});continue}p={editor:l}}else if(e.some(l=>l.id===c))p={kind:c};else{r.push({code:"unknown-kind",kind:c,file:o});continue}if(n!==void 0&&!n.has(o)){r.push({code:"missing",file:o});continue}const h=itemIdOf(o);f.set(h,[...f.get(h)??[],o]);const g={id:h,dir:k(o),entry:o,...i.title===void 0?{}:{title:i.title},groups:i.groups};d.push({...g,...p})}const a=new Set;for(const[i,o]of f)o.length>1&&(a.add(i),r.push({code:"same-id",id:i,files:o}));const u=d.filter(i=>!a.has(i.id));return{items:u.filter(i=>!isListedFile(i)),files:u.filter(isListedFile),listed:u,problems:r}}
@@ -10,7 +10,7 @@ export declare const ENVIRONMENTS_DIR = "assets/media/environments";
10
10
  export declare const TEXTURES_DIR = "assets/media/textures";
11
11
  /** Code several items share. */
12
12
  export declare const COMPONENTS_DIR = "components";
13
- /** 3D sceneries a registry adds, a folder each (`sceneries/<name>/scenery.ts`), as shadcn puts a type of item in its own folder. */
13
+ /** 3D sceneries a registry adds, a folder each (`sceneries/<name>/`), as shadcn puts a type of item in its own folder. */
14
14
  export declare const SCENERIES_DIR = "sceneries";
15
15
  /** This computer's only, never shared: a framework's build folder. */
16
16
  export declare const LOCAL_DIR = ".allyhub";
@@ -24,6 +24,12 @@ export declare const DEV_FILE = ".allyhub/dev.json";
24
24
  export declare const OUT_DIR = ".allyhub/out";
25
25
  /** What the tools rebuild. */
26
26
  export declare const CACHE_DIR = ".allyhub/cache";
27
+ /**
28
+ * The size a cache of drawings under CACHE_DIR keeps to (the render's part
29
+ * cache, a deck's stills and measurements): ALLYHUB_PART_CACHE_MB, default
30
+ * 4096 MB. The least recently used go past it.
31
+ */
32
+ export declare function partCacheLimit(): number;
27
33
  /** Scenery bakes: a file each, named by its scene's digest and the renderer it was made on. */
28
34
  export declare const BAKE_DIR = ".allyhub/cache/bake";
29
35
  /** What a person deleted, kept until they empty it. */