@allyhub/sdk 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  33. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  34. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  36. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  38. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  42. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  48. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  50. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  52. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  58. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  95. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  96. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  100. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  101. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  102. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  104. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  105. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  106. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  117. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  120. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  127. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  128. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  129. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  131. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  133. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  135. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  137. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  142. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  143. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  144. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  146. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  147. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  148. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  150. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  151. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  152. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  153. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  154. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  156. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  166. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  168. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  176. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  178. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  179. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  180. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  183. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  185. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  186. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  187. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  189. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  190. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  191. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  194. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  198. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  200. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  202. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  204. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  206. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  210. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  211. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  216. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  217. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  225. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  228. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  229. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  230. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  232. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  234. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  235. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  236. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  237. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  239. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  240. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  243. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  244. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  245. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  247. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  248. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  249. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  250. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  251. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  252. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  253. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  254. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  257. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  259. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
  262. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
  284. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  287. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  288. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  289. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  291. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
  293. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  294. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
  295. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  297. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  304. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
  305. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  306. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  307. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
  308. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  309. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  310. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
  311. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  312. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  322. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  323. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  325. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  327. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  330. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  331. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  350. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  353. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  354. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  356. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  357. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  358. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  359. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  360. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  361. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  362. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  363. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  364. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  365. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  366. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  367. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  368. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  369. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  370. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  371. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  372. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  373. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  376. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
  377. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  378. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  379. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
  380. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  381. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  382. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  383. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  384. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  385. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  386. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  387. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  388. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  391. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  392. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  393. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  394. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  396. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  397. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  398. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  399. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  400. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  401. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  402. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  403. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  404. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  405. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  406. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  407. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  408. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  409. package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
  410. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  411. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  412. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  417. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  418. package/dist/scenery.d.ts +1 -1
  419. package/dist/scenery.js +1 -1
  420. package/dist/sheets.d.ts +1 -1
  421. package/dist/sheets.js +1 -1
  422. package/dist/slides.d.ts +1 -9
  423. package/dist/slides.js +1 -1
  424. package/docs/README.md +10 -6
  425. package/docs/batches.md +5 -5
  426. package/docs/canvas.md +28 -0
  427. package/docs/contract.md +2 -2
  428. package/docs/defaults.md +298 -22
  429. package/docs/docs.md +80 -66
  430. package/docs/footage.md +7 -7
  431. package/docs/image.md +165 -0
  432. package/docs/layers.md +22 -13
  433. package/docs/modeling.md +4 -4
  434. package/docs/pictures.md +65 -0
  435. package/docs/project.md +51 -31
  436. package/docs/scenery.md +14 -15
  437. package/docs/sheets.md +46 -28
  438. package/docs/slides.md +121 -67
  439. package/docs/sound.md +3 -3
  440. package/docs/speech.md +8 -8
  441. package/docs/video.md +16 -13
  442. package/docs/websites.md +4 -4
  443. package/docs/x.md +73 -0
  444. package/package.json +7 -2
  445. package/dist/define.js +0 -2
  446. package/dist/free.js +0 -2
  447. package/dist/input.js +0 -2
  448. package/dist/module.js +0 -2
  449. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  450. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  451. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  452. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  453. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  454. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  455. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  456. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  457. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  458. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  459. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  460. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  461. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  462. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  463. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  464. package/dist/parts.js +0 -2
  465. package/dist/phone.js +0 -2
  466. package/dist/piece.js +0 -2
  467. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  468. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  469. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  470. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  471. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  472. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  473. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  474. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  475. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  476. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  477. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  478. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  479. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  480. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  481. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  482. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  483. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  484. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  485. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  486. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  487. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  488. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  489. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  490. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  491. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  492. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  493. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  494. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  495. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  496. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  497. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -0,0 +1,126 @@
1
+ /** A step after an export, as its extension contributes it (`exportProcessors`). */
2
+ export interface ExportProcessorSpec {
3
+ /** Its id: its extension's id and a name, `acme.sums.sha256`. */
4
+ readonly id: string;
5
+ /** The file types it applies to: every file of one of them an export makes. */
6
+ readonly types: readonly string[];
7
+ /** Its module, where the export imports it from: its default export is `@allyhub/export`'s ExportProcessor. */
8
+ readonly module: string;
9
+ /** The extension that contributes it. */
10
+ readonly extension: string;
11
+ }
12
+ /** The export processors the extensions loaded contribute, in their order. */
13
+ export type ProcessorTable = readonly ExportProcessorSpec[];
14
+ /** An analysis of media, as its extension contributes it (`mediaAnalyses`). */
15
+ export interface MediaAnalysisSpec {
16
+ /** Its id, as a version's needs name it in the media index (`faces`). */
17
+ readonly id: string;
18
+ /** What it measures, for a person and an agent. */
19
+ readonly about: string;
20
+ /** What it makes, as a line of progress names it: `the face track`. */
21
+ readonly what: string;
22
+ /** The kinds of media file it takes (`video`). */
23
+ readonly media: readonly string[];
24
+ /** The runtimes it downloads when first run (`yt-dlp`), by their names in the runtime manager. */
25
+ readonly runtimes: readonly string[];
26
+ /** Its module, where the index imports it from: its default export is `@allyhub/media`'s MediaAnalysis. */
27
+ readonly module: string;
28
+ /** The extension that contributes it. */
29
+ readonly extension: string;
30
+ }
31
+ /** The media analyses the extensions loaded contribute, in their order: the order the index runs them in. */
32
+ export type AnalysisTable = readonly MediaAnalysisSpec[];
33
+ /** A command of the CLI, as its extension contributes it (`cliCommands`). */
34
+ export interface CliCommandSpec {
35
+ /** Its words: `allyhub <name>`. */
36
+ readonly name: string;
37
+ /** Its one line in `allyhub help`. */
38
+ readonly summary: string;
39
+ /** The work `allyhub help <work>` lists it in. */
40
+ readonly work?: string;
41
+ /** Its module, where the CLI imports it from: its default export is `@allyhub/build`'s CliCommands, which has this command by name. */
42
+ readonly module: string;
43
+ /** The extension that contributes it. */
44
+ readonly extension: string;
45
+ }
46
+ /** A view of `allyhub inspect`, as its extension contributes it (`inspectViews`). */
47
+ export interface InspectViewSpec {
48
+ /** Its word: `allyhub inspect <name>`. */
49
+ readonly name: string;
50
+ /** Its one line in `allyhub help`. */
51
+ readonly summary: string;
52
+ /** Its module, where the CLI imports it from: its default export is `@allyhub/build`'s InspectViews, which has this view by name. */
53
+ readonly module: string;
54
+ /** The extension that contributes it. */
55
+ readonly extension: string;
56
+ }
57
+ /**
58
+ * What does for the agent what a project tool does for an editor: a CLI
59
+ * command, or the files it reads or writes instead; or, for what only a
60
+ * person decides (taking a website offline), why the agent has none.
61
+ */
62
+ export type ToolCounterpart = {
63
+ readonly command: string;
64
+ } | {
65
+ readonly files: string;
66
+ } | {
67
+ readonly person: string;
68
+ };
69
+ /** What a stage page loads from a folder of the tree: the CSP fetch directive it needs (`script-src` for "script"). */
70
+ export declare const STAGE_LOADS: readonly ["script", "style", "font", "img", "media", "connect"];
71
+ export type StageLoad = (typeof STAGE_LOADS)[number];
72
+ /** A folder of the stage's tree an extension serves, as it contributes it (`stageRoutes`). */
73
+ export interface StageRouteSpec {
74
+ /** Its folder at the tree's root, ending in "/" (`sound/`). */
75
+ readonly folder: string;
76
+ /** What the stage's pages load from it, which their CSP allows there. */
77
+ readonly loads: readonly StageLoad[];
78
+ /** Its module, where the dev server imports it from: its default export is `@allyhub/build`'s StageRoutes, which has this folder. */
79
+ readonly module: string;
80
+ /** The extension that contributes it. */
81
+ readonly extension: string;
82
+ }
83
+ /** A tool of the project's server, as its extension contributes it (`projectTools`). */
84
+ export interface ProjectToolSpec {
85
+ /** Its method: `video/timeline`, namespaced by its kind or its extension. */
86
+ readonly name: string;
87
+ /** Where a read view answers it with no machine (@allyhub/protocol's MethodSource): from the snapshot, as nothing, or by the machine. */
88
+ readonly source: "project" | "asleep" | "machine";
89
+ /** What does the same for the agent. */
90
+ readonly does: ToolCounterpart;
91
+ /** Its module, where the dev server imports it from: its default export is `@allyhub/build`'s ProjectTools, which has this tool by name. */
92
+ readonly module: string;
93
+ /** The extension that contributes it. */
94
+ readonly extension: string;
95
+ }
96
+ /**
97
+ * A part of a skill (`skills`): a folder laid out as an Agent Skill's
98
+ * (its SKILL.md, references/, scripts/, assets/), named as the skill is.
99
+ * A skill is assembled from every part of its name: the one that holds
100
+ * its SKILL.md, and those that add files to it.
101
+ */
102
+ export interface SkillSpec {
103
+ /** The skill's name: its folder's (`allyhub`). */
104
+ readonly name: string;
105
+ /** Where the folder is. */
106
+ readonly folder: string;
107
+ /** What gives it: the extension that contributes it, or the app whose own part it is. */
108
+ readonly extension: string;
109
+ }
110
+ /** An MCP server, as its extension contributes it (`mcpServers`): a local program or an address, as `.mcp.json` names one. */
111
+ export type McpServerSpec = {
112
+ /** Its name, as an agent names its tools (`mcp__<name>__<tool>`). */
113
+ readonly name: string;
114
+ /** The extension that contributes it. */
115
+ readonly extension: string;
116
+ } & ({
117
+ readonly command: string;
118
+ readonly args: readonly string[];
119
+ readonly env: Readonly<Record<string, string>>;
120
+ /** Where it runs: its extension's folder unless it says. */
121
+ readonly cwd: string;
122
+ } | {
123
+ readonly url: string;
124
+ readonly headers: Readonly<Record<string, string>>;
125
+ });
126
+ //# sourceMappingURL=contributed.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const STAGE_LOADS=["script","style","font","img","media","connect"];
@@ -18,7 +18,7 @@ export interface TrackedFace {
18
18
  */
19
19
  export interface FaceTrack {
20
20
  version: 2;
21
- /** The detector, e.g. "yunet-2023mar". */
21
+ /** What found the faces: the cloud tool ("detect-faces"), never the model behind it. */
22
22
  model: string;
23
23
  /** The displayed picture's pixels the boxes are in. */
24
24
  width: number;
@@ -43,7 +43,6 @@ export declare const ReferenceTextSchema: z.ZodObject<{
43
43
  text: z.ZodString;
44
44
  box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
45
45
  height: z.ZodNumber;
46
- conf: z.ZodNumber;
47
46
  words: z.ZodNumber;
48
47
  upper: z.ZodNumber;
49
48
  start: z.ZodNumber;
@@ -276,6 +275,12 @@ export declare const ReferenceSchema: z.ZodObject<{
276
275
  hint: z.ZodOptional<z.ZodString>;
277
276
  instead: z.ZodString;
278
277
  }, z.core.$strip>>;
278
+ textMissing: z.ZodOptional<z.ZodObject<{
279
+ code: z.ZodOptional<z.ZodString>;
280
+ message: z.ZodString;
281
+ hint: z.ZodOptional<z.ZodString>;
282
+ instead: z.ZodString;
283
+ }, z.core.$strip>>;
279
284
  shots: z.ZodObject<{
280
285
  threshold: z.ZodNumber;
281
286
  minShot: z.ZodNumber;
@@ -346,26 +351,16 @@ export declare const ReferenceSchema: z.ZodObject<{
346
351
  }, z.core.$strip>;
347
352
  ocr: z.ZodObject<{
348
353
  engine: z.ZodString;
349
- confidence: z.ZodObject<{
350
- word: z.ZodNumber;
351
- short: z.ZodNumber;
352
- }, z.core.$strip>;
353
354
  frames: z.ZodNumber;
355
+ unread: z.ZodOptional<z.ZodNumber>;
354
356
  samePlace: z.ZodNumber;
355
357
  saidWithin: z.ZodNumber;
356
- low: z.ZodOptional<z.ZodArray<z.ZodObject<{
357
- t: z.ZodNumber;
358
- text: z.ZodString;
359
- conf: z.ZodNumber;
360
- box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
361
- }, z.core.$strip>>>;
362
358
  }, z.core.$strip>;
363
359
  text: z.ZodArray<z.ZodObject<{
364
360
  id: z.ZodNumber;
365
361
  text: z.ZodString;
366
362
  box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
367
363
  height: z.ZodNumber;
368
- conf: z.ZodNumber;
369
364
  words: z.ZodNumber;
370
365
  upper: z.ZodNumber;
371
366
  start: z.ZodNumber;
@@ -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 e}from"zod";import{SECONDS as n,SHA256 as m,dataFile as c}from"./file.js";const i=e.tuple([e.number(),e.number(),e.number(),e.number()]),r=e.object({t:n,score:e.number()}),t=e.number().nullable(),o=e.number().int().nonnegative();export const ReferenceSentenceSchema=e.object({index:o,start:n,end:n,words:e.tuple([e.number().int(),e.number().int()]),text:e.string(),punctuation:e.boolean(),pauseAfter:n.optional()}),ReferenceGapSchema=e.object({after:o,start:n,end:n,dur:n}),ReferenceBoundarySchema=e.object({t:n,cut:r.optional(),weak:r.optional(),pause:e.object({start:n,end:n,dur:n}).optional(),sentence:o.optional()}),ReferenceTextSchema=e.object({id:o,text:e.string(),box:i,height:e.number(),conf:e.number(),words:o,upper:e.number().min(0).max(1),start:n,end:n,spans:e.array(e.tuple([n,n])),seconds:n,seen:e.number().int().positive(),frames:e.number().min(0).max(1),spread:e.number().min(0).max(1),said:e.number().min(0).max(1)}),SectionNumbersSchema=e.object({start:n,end:n,dur:n,said:e.string(),words:o,wordsPerMinute:e.number().nonnegative(),cuts:e.array(n),shots:e.number().int().positive(),cutsPerMinute:e.number().nonnegative(),text:e.array(o),textSeconds:n}),ReferenceSegmentSchema=SectionNumbersSchema.extend({index:o,name:e.string(),sentences:e.tuple([e.number().int(),e.number().int()]).optional()}),ReferencePacingSchema=e.object({cutsPerMinute:e.number().nonnegative(),meanShot:n,medianShot:n,wordsPerMinute:e.number().nonnegative(),speakingRate:e.number().nonnegative(),timeToFirstWord:n.optional(),timeToFirstCut:n.optional(),textShare:e.number().min(0).max(1),speechShare:e.number().min(0).max(1),tempo:e.object({bpm:e.number().positive(),confidence:e.number().min(0),candidates:e.array(e.object({bpm:e.number(),r:e.number(),score:e.number()})).optional(),prior:e.number().optional()}).optional(),onsetsPerMinute:e.number().nonnegative()});const a=e.object({seconds:n,p10:e.number(),median:e.number(),p90:e.number()});export const ReferenceSoundSchema=e.object({gap:n,edge:n,voiced:e.number().min(0).max(100),whole:a,words:a.optional(),between:a.extend({voicedShare:e.number().min(0).max(1),onsetsPerMinute:e.number().nonnegative()}).optional(),floor:e.number()}),ReferencePictureSchema=e.object({params:e.record(e.string(),e.unknown()),frames:e.object({tone:o,color:o,motion:o}),luma:e.object({p1:t,p50:t,p99:t}),blackShare:t,noise:t,sharpness:t,saturation:t,warmth:t,motion:e.object({speed:e.object({p50:t,p90:t}),shake:e.object({p50:t,p90:t}),stillShare:t,runs:o}),sharpnessBySpeed:e.array(e.object({from:e.number(),to:t,frames:o,sharpness:t})),noiseByLuma:e.array(e.object({from:e.number(),to:e.number(),blocks:o,noise:t,median:t})),shake:e.array(e.object({start:n,end:n,rms:e.number(),peaks:e.array(e.object({hz:e.number(),share:e.number()})),flatness:e.number()}))});const s=e.object({frames:o,reach:e.array(e.object({drop:e.number(),hz:t})),rolloff95:t,rolloff99:t,steps:e.array(e.object({hz:e.number(),db:e.number()}))});export const ReferenceAudioSchema=e.object({loudness:e.object({integrated:t,range:t,truePeak:t}),recording:e.object({params:e.record(e.string(),e.unknown()),spectrum:e.array(e.object({hz:e.number(),db:e.number()})),dynamics:e.object({spread:e.number(),crest:e.number()})}).loose(),bandwidth:s.extend({params:e.record(e.string(),e.unknown())}),voice:s.optional()}),ReferenceSchema=e.object({version:e.literal(1),id:e.string(),source:e.object({file:e.string(),url:e.string().optional(),title:e.string().optional(),sha256:m}),analysedAt:e.string(),duration:n,width:e.number().int().positive(),height:e.number().int().positive(),fps:e.number().positive(),encoding:e.object({codec:e.string().optional(),bitrate:e.number().positive().optional(),audio:e.object({codec:e.string().optional(),profile:e.string().optional(),bitrate:e.number().positive().optional(),rate:e.number().positive().optional(),channels:e.number().int().positive().optional()}).optional()}).optional(),words:e.string().optional(),wordCount:o,asr:e.string().optional(),wordsMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),shots:e.object({threshold:e.number().min(0).max(1),minShot:e.number().nonnegative(),weakFloor:e.number().min(0).max(1),prominence:e.number().nonnegative(),cuts:e.array(r),weak:e.array(r),candidates:e.array(e.object({t:n,score:e.number(),source:e.enum(["jump","change"]),around:e.number(),passes:e.boolean()})).optional()}),speech:e.object({pause:n,sentences:e.array(ReferenceSentenceSchema),pauses:e.array(ReferenceGapSchema),gaps:e.array(ReferenceGapSchema).optional()}),boundaries:e.object({cutWithin:n,candidates:e.array(ReferenceBoundarySchema)}),ocr:e.object({engine:e.string(),confidence:e.object({word:e.number().min(0).max(100),short:e.number().min(0).max(100)}),frames:o,samePlace:e.number(),saidWithin:n,low:e.array(e.object({t:n,text:e.string(),conf:e.number(),box:i})).optional()}),text:e.array(ReferenceTextSchema),pacing:ReferencePacingSchema,sound:ReferenceSoundSchema.optional(),segments:e.object({rule:e.string(),pause:n,cutWithin:n,minLength:n,list:e.array(ReferenceSegmentSchema).min(1)}),sheets:e.array(e.string()),picture:ReferencePictureSchema,audio:ReferenceAudioSchema.optional()}),REFERENCE_FILE="reference.json",INTERPRETATION_FILE="interpretation.json",InterpretedSectionSchema=e.strictObject({start:n,end:n,name:e.string().min(1).optional(),role:e.string().min(1).optional(),picture:e.string().optional(),onScreen:e.array(e.string()).optional(),notes:e.string().optional()}),InterpretationSchema=c({version:e.literal(1).default(1),summary:e.string().optional(),layout:e.string().optional(),hook:e.string().optional(),sections:e.array(InterpretedSectionSchema).min(1),captions:e.strictObject({lines:e.array(o).optional(),style:e.string().optional()}).optional(),watermarks:e.array(o).optional(),notes:e.string().optional(),labels:e.record(e.string(),e.union([e.string(),e.number(),e.boolean(),e.array(e.string())])).optional()});
2
+ import{z as e}from"zod";import{SECONDS as n,SHA256 as s,dataFile as c}from"./file.js";const m=e.tuple([e.number(),e.number(),e.number(),e.number()]),r=e.object({t:n,score:e.number()}),t=e.number().nullable(),o=e.number().int().nonnegative();export const ReferenceSentenceSchema=e.object({index:o,start:n,end:n,words:e.tuple([e.number().int(),e.number().int()]),text:e.string(),punctuation:e.boolean(),pauseAfter:n.optional()}),ReferenceGapSchema=e.object({after:o,start:n,end:n,dur:n}),ReferenceBoundarySchema=e.object({t:n,cut:r.optional(),weak:r.optional(),pause:e.object({start:n,end:n,dur:n}).optional(),sentence:o.optional()}),ReferenceTextSchema=e.object({id:o,text:e.string(),box:m,height:e.number(),words:o,upper:e.number().min(0).max(1),start:n,end:n,spans:e.array(e.tuple([n,n])),seconds:n,seen:e.number().int().positive(),frames:e.number().min(0).max(1),spread:e.number().min(0).max(1),said:e.number().min(0).max(1)}),SectionNumbersSchema=e.object({start:n,end:n,dur:n,said:e.string(),words:o,wordsPerMinute:e.number().nonnegative(),cuts:e.array(n),shots:e.number().int().positive(),cutsPerMinute:e.number().nonnegative(),text:e.array(o),textSeconds:n}),ReferenceSegmentSchema=SectionNumbersSchema.extend({index:o,name:e.string(),sentences:e.tuple([e.number().int(),e.number().int()]).optional()}),ReferencePacingSchema=e.object({cutsPerMinute:e.number().nonnegative(),meanShot:n,medianShot:n,wordsPerMinute:e.number().nonnegative(),speakingRate:e.number().nonnegative(),timeToFirstWord:n.optional(),timeToFirstCut:n.optional(),textShare:e.number().min(0).max(1),speechShare:e.number().min(0).max(1),tempo:e.object({bpm:e.number().positive(),confidence:e.number().min(0),candidates:e.array(e.object({bpm:e.number(),r:e.number(),score:e.number()})).optional(),prior:e.number().optional()}).optional(),onsetsPerMinute:e.number().nonnegative()});const a=e.object({seconds:n,p10:e.number(),median:e.number(),p90:e.number()});export const ReferenceSoundSchema=e.object({gap:n,edge:n,voiced:e.number().min(0).max(100),whole:a,words:a.optional(),between:a.extend({voicedShare:e.number().min(0).max(1),onsetsPerMinute:e.number().nonnegative()}).optional(),floor:e.number()}),ReferencePictureSchema=e.object({params:e.record(e.string(),e.unknown()),frames:e.object({tone:o,color:o,motion:o}),luma:e.object({p1:t,p50:t,p99:t}),blackShare:t,noise:t,sharpness:t,saturation:t,warmth:t,motion:e.object({speed:e.object({p50:t,p90:t}),shake:e.object({p50:t,p90:t}),stillShare:t,runs:o}),sharpnessBySpeed:e.array(e.object({from:e.number(),to:t,frames:o,sharpness:t})),noiseByLuma:e.array(e.object({from:e.number(),to:e.number(),blocks:o,noise:t,median:t})),shake:e.array(e.object({start:n,end:n,rms:e.number(),peaks:e.array(e.object({hz:e.number(),share:e.number()})),flatness:e.number()}))});const i=e.object({frames:o,reach:e.array(e.object({drop:e.number(),hz:t})),rolloff95:t,rolloff99:t,steps:e.array(e.object({hz:e.number(),db:e.number()}))});export const ReferenceAudioSchema=e.object({loudness:e.object({integrated:t,range:t,truePeak:t}),recording:e.object({params:e.record(e.string(),e.unknown()),spectrum:e.array(e.object({hz:e.number(),db:e.number()})),dynamics:e.object({spread:e.number(),crest:e.number()})}).loose(),bandwidth:i.extend({params:e.record(e.string(),e.unknown())}),voice:i.optional()}),ReferenceSchema=e.object({version:e.literal(1),id:e.string(),source:e.object({file:e.string(),url:e.string().optional(),title:e.string().optional(),sha256:s}),analysedAt:e.string(),duration:n,width:e.number().int().positive(),height:e.number().int().positive(),fps:e.number().positive(),encoding:e.object({codec:e.string().optional(),bitrate:e.number().positive().optional(),audio:e.object({codec:e.string().optional(),profile:e.string().optional(),bitrate:e.number().positive().optional(),rate:e.number().positive().optional(),channels:e.number().int().positive().optional()}).optional()}).optional(),words:e.string().optional(),wordCount:o,asr:e.string().optional(),wordsMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),textMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),shots:e.object({threshold:e.number().min(0).max(1),minShot:e.number().nonnegative(),weakFloor:e.number().min(0).max(1),prominence:e.number().nonnegative(),cuts:e.array(r),weak:e.array(r),candidates:e.array(e.object({t:n,score:e.number(),source:e.enum(["jump","change"]),around:e.number(),passes:e.boolean()})).optional()}),speech:e.object({pause:n,sentences:e.array(ReferenceSentenceSchema),pauses:e.array(ReferenceGapSchema),gaps:e.array(ReferenceGapSchema).optional()}),boundaries:e.object({cutWithin:n,candidates:e.array(ReferenceBoundarySchema)}),ocr:e.object({engine:e.string(),frames:o,unread:o.optional(),samePlace:e.number(),saidWithin:n}),text:e.array(ReferenceTextSchema),pacing:ReferencePacingSchema,sound:ReferenceSoundSchema.optional(),segments:e.object({rule:e.string(),pause:n,cutWithin:n,minLength:n,list:e.array(ReferenceSegmentSchema).min(1)}),sheets:e.array(e.string()),picture:ReferencePictureSchema,audio:ReferenceAudioSchema.optional()}),REFERENCE_FILE="reference.json",INTERPRETATION_FILE="interpretation.json",InterpretedSectionSchema=e.strictObject({start:n,end:n,name:e.string().min(1).optional(),role:e.string().min(1).optional(),picture:e.string().optional(),onScreen:e.array(e.string()).optional(),notes:e.string().optional()}),InterpretationSchema=c({version:e.literal(1).default(1),summary:e.string().optional(),layout:e.string().optional(),hook:e.string().optional(),sections:e.array(InterpretedSectionSchema).min(1),captions:e.strictObject({lines:e.array(o).optional(),style:e.string().optional()}).optional(),watermarks:e.array(o).optional(),notes:e.string().optional(),labels:e.record(e.string(),e.union([e.string(),e.number(),e.boolean(),e.array(e.string())])).optional()});
@@ -31,6 +31,11 @@ export declare const ScriptSlideSchema: z.ZodObject<{
31
31
  match: z.ZodRecord<z.ZodString, z.ZodString>;
32
32
  }, z.core.$strict>]>>;
33
33
  }, z.core.$strict>;
34
+ /** An image's board in its script: the words of its layers by their names. */
35
+ export declare const ScriptBoardSchema: z.ZodObject<{
36
+ id: z.ZodString;
37
+ text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
38
+ }, z.core.$strict>;
34
39
  export declare const ScriptFileSchema: z.ZodObject<{
35
40
  title: z.ZodOptional<z.ZodString>;
36
41
  text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
@@ -53,10 +58,10 @@ export declare const ScriptFileSchema: z.ZodObject<{
53
58
  match: z.ZodRecord<z.ZodString, z.ZodString>;
54
59
  }, z.core.$strict>]>>;
55
60
  }, z.core.$strict>>>;
61
+ boards: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
+ id: z.ZodString;
63
+ text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
64
+ }, z.core.$strict>>>;
56
65
  }, z.core.$strict>;
57
66
  export type ScriptFile = z.infer<typeof ScriptFileSchema>;
58
- /** The script of an item in a language. */
59
- export declare const scriptFileFor: (dir: string, locale: string) => string;
60
- /** The language a script file is in, or undefined for another file. */
61
- export declare function scriptLocale(path: string): string | undefined;
62
67
  //# sourceMappingURL=script.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{SpokenSchema as d,VariantsSchema as i}from"./messages.js";export const SCRIPT_NAME=/^[A-Za-z0-9_-]+$/u;const r=t.string().regex(SCRIPT_NAME,"A name is letters, digits, _ and -.");export const ScriptTextSchema=t.lazy(()=>t.union([t.string(),d,i,t.array(ScriptTextSchema),t.record(r,ScriptTextSchema)])),ScriptPartSchema=t.strictObject({id:r,say:t.union([t.string(),i]).optional(),screen:t.record(r,ScriptTextSchema).optional()}),ScriptSlideSchema=t.strictObject({id:r,text:t.record(r,ScriptTextSchema).optional(),alt:t.record(r,t.string()).optional(),notes:t.union([t.string(),i]).optional()}),ScriptFileSchema=t.strictObject({title:t.string().optional(),text:t.record(r,ScriptTextSchema).optional(),parts:t.array(ScriptPartSchema).default([]),slides:t.array(ScriptSlideSchema).default([])}).superRefine((o,s)=>{const c=new Set;o.parts.forEach((e,a)=>{c.has(e.id)&&s.addIssue({code:"custom",path:["parts",a,"id"],message:`Two parts are "${e.id}".`}),c.add(e.id)});const n=new Set;o.slides.forEach((e,a)=>{n.has(e.id)&&s.addIssue({code:"custom",path:["slides",a,"id"],message:`Two slides are "${e.id}".`}),n.add(e.id)})}),scriptFileFor=(o,s)=>`${o}/script.${s}.yaml`;export function scriptLocale(o){return/(?:^|\/)script\.([A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*)\.yaml$/u.exec(o)?.[1]}
2
+ import{z as t}from"zod";import{SpokenSchema as p,VariantsSchema as i}from"./messages.js";export const SCRIPT_NAME=/^[A-Za-z0-9_-]+$/u;const a=t.string().regex(SCRIPT_NAME,"A name is letters, digits, _ and -.");export const ScriptTextSchema=t.lazy(()=>t.union([t.string(),p,i,t.array(ScriptTextSchema),t.record(a,ScriptTextSchema)])),ScriptPartSchema=t.strictObject({id:a,say:t.union([t.string(),i]).optional(),screen:t.record(a,ScriptTextSchema).optional()}),ScriptSlideSchema=t.strictObject({id:a,text:t.record(a,ScriptTextSchema).optional(),alt:t.record(a,t.string()).optional(),notes:t.union([t.string(),i]).optional()}),ScriptBoardSchema=t.strictObject({id:a,text:t.record(a,ScriptTextSchema).optional()}),ScriptFileSchema=t.strictObject({title:t.string().optional(),text:t.record(a,ScriptTextSchema).optional(),parts:t.array(ScriptPartSchema).default([]),slides:t.array(ScriptSlideSchema).default([]),boards:t.array(ScriptBoardSchema).default([])}).superRefine((o,r)=>{const d=new Set;o.parts.forEach((e,s)=>{d.has(e.id)&&r.addIssue({code:"custom",path:["parts",s,"id"],message:`Two parts are "${e.id}".`}),d.add(e.id)});const c=new Set;o.slides.forEach((e,s)=>{c.has(e.id)&&r.addIssue({code:"custom",path:["slides",s,"id"],message:`Two slides are "${e.id}".`}),c.add(e.id)});const n=new Set;o.boards.forEach((e,s)=>{n.has(e.id)&&r.addIssue({code:"custom",path:["boards",s,"id"],message:`Two boards are "${e.id}".`}),n.add(e.id)})});
@@ -1,12 +1,6 @@
1
1
  import { z } from "zod";
2
- /** A sheet's entry file. */
2
+ /** The name a new sheet's file is written as when none is asked (an import); a sheet's file may be named anything, the project's list naming it. */
3
3
  export declare const SHEET_FILE = "sheet.yaml";
4
- /** The folder beside it that holds its CSV files. */
5
- export declare const SHEET_DATA = "data";
6
- /** The code beside it that makes sheets. */
7
- export declare const SHEET_CODE = "sheet.ts";
8
- /** The folder beside it that holds the files its cells name. */
9
- export declare const SHEET_FILES = "files";
10
4
  /** What joins the choices of a cell, and the files of one, unless it says. */
11
5
  export declare const SHEET_SEPARATOR = ", ";
12
6
  /** How tall a `files` column draws a picture, in pixels, unless it says. */
@@ -181,6 +175,7 @@ declare const CellEntry: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber,
181
175
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
182
176
  formula: z.ZodOptional<z.ZodString>;
183
177
  name: z.ZodOptional<z.ZodString>;
178
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
184
179
  }, z.core.$strict>]>;
185
180
  export type SheetCell = z.output<typeof CellEntry>;
186
181
  declare const FormatEntry: z.ZodObject<{
@@ -1604,12 +1599,12 @@ export declare const SHEET_VALIDATIONS: readonly ["whole", "decimal", "list", "d
1604
1599
  declare const Validation: z.ZodObject<{
1605
1600
  range: z.ZodString;
1606
1601
  type: z.ZodEnum<{
1607
- list: "list";
1608
1602
  date: "date";
1609
1603
  custom: "custom";
1604
+ list: "list";
1605
+ time: "time";
1610
1606
  whole: "whole";
1611
1607
  decimal: "decimal";
1612
- time: "time";
1613
1608
  textLength: "textLength";
1614
1609
  }>;
1615
1610
  operator: z.ZodOptional<z.ZodEnum<{
@@ -1645,7 +1640,6 @@ declare const Validation: z.ZodObject<{
1645
1640
  }, z.core.$strict>>;
1646
1641
  }, z.core.$strict>;
1647
1642
  export type SheetValidation = z.output<typeof Validation>;
1648
- /** A chart's series: where its numbers are read from, and its look. */
1649
1643
  declare const ChartSeries: z.ZodObject<{
1650
1644
  values: z.ZodString;
1651
1645
  x: z.ZodOptional<z.ZodString>;
@@ -1655,6 +1649,17 @@ declare const ChartSeries: z.ZodObject<{
1655
1649
  smooth: z.ZodOptional<z.ZodBoolean>;
1656
1650
  line_width: z.ZodOptional<z.ZodNumber>;
1657
1651
  marker_size: z.ZodOptional<z.ZodNumber>;
1652
+ type: z.ZodOptional<z.ZodEnum<{
1653
+ line: "line";
1654
+ "column-clustered": "column-clustered";
1655
+ "column-stacked": "column-stacked";
1656
+ "column-stacked-100": "column-stacked-100";
1657
+ "line-markers": "line-markers";
1658
+ area: "area";
1659
+ "area-stacked": "area-stacked";
1660
+ "area-stacked-100": "area-stacked-100";
1661
+ }>>;
1662
+ secondary: z.ZodOptional<z.ZodBoolean>;
1658
1663
  }, z.core.$strict>;
1659
1664
  export type SheetChartSeries = z.output<typeof ChartSeries>;
1660
1665
  declare const ChartAxis: z.ZodObject<{
@@ -1704,6 +1709,17 @@ declare const Chart: z.ZodObject<{
1704
1709
  smooth: z.ZodOptional<z.ZodBoolean>;
1705
1710
  line_width: z.ZodOptional<z.ZodNumber>;
1706
1711
  marker_size: z.ZodOptional<z.ZodNumber>;
1712
+ type: z.ZodOptional<z.ZodEnum<{
1713
+ line: "line";
1714
+ "column-clustered": "column-clustered";
1715
+ "column-stacked": "column-stacked";
1716
+ "column-stacked-100": "column-stacked-100";
1717
+ "line-markers": "line-markers";
1718
+ area: "area";
1719
+ "area-stacked": "area-stacked";
1720
+ "area-stacked-100": "area-stacked-100";
1721
+ }>>;
1722
+ secondary: z.ZodOptional<z.ZodBoolean>;
1707
1723
  }, z.core.$strict>>;
1708
1724
  legend: z.ZodOptional<z.ZodEnum<{
1709
1725
  left: "left";
@@ -1768,6 +1784,16 @@ declare const Chart: z.ZodObject<{
1768
1784
  format: z.ZodOptional<z.ZodString>;
1769
1785
  reverse: z.ZodOptional<z.ZodBoolean>;
1770
1786
  }, z.core.$strict>>;
1787
+ secondary_axis: z.ZodOptional<z.ZodObject<{
1788
+ title: z.ZodOptional<z.ZodString>;
1789
+ min: z.ZodOptional<z.ZodNumber>;
1790
+ max: z.ZodOptional<z.ZodNumber>;
1791
+ major: z.ZodOptional<z.ZodNumber>;
1792
+ gridlines: z.ZodOptional<z.ZodBoolean>;
1793
+ visible: z.ZodOptional<z.ZodBoolean>;
1794
+ format: z.ZodOptional<z.ZodString>;
1795
+ reverse: z.ZodOptional<z.ZodBoolean>;
1796
+ }, z.core.$strict>>;
1771
1797
  size: z.ZodOptional<z.ZodNumber>;
1772
1798
  title_size: z.ZodOptional<z.ZodNumber>;
1773
1799
  color: z.ZodOptional<z.ZodString>;
@@ -2457,6 +2483,7 @@ declare const Worksheet: z.ZodObject<{
2457
2483
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
2458
2484
  formula: z.ZodOptional<z.ZodString>;
2459
2485
  name: z.ZodOptional<z.ZodString>;
2486
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
2460
2487
  }, z.core.$strict>]>>>;
2461
2488
  format: z.ZodOptional<z.ZodArray<z.ZodObject<{
2462
2489
  format: z.ZodOptional<z.ZodString>;
@@ -3248,12 +3275,12 @@ declare const Worksheet: z.ZodObject<{
3248
3275
  validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
3249
3276
  range: z.ZodString;
3250
3277
  type: z.ZodEnum<{
3251
- list: "list";
3252
3278
  date: "date";
3253
3279
  custom: "custom";
3280
+ list: "list";
3281
+ time: "time";
3254
3282
  whole: "whole";
3255
3283
  decimal: "decimal";
3256
- time: "time";
3257
3284
  textLength: "textLength";
3258
3285
  }>;
3259
3286
  operator: z.ZodOptional<z.ZodEnum<{
@@ -3323,6 +3350,17 @@ declare const Worksheet: z.ZodObject<{
3323
3350
  smooth: z.ZodOptional<z.ZodBoolean>;
3324
3351
  line_width: z.ZodOptional<z.ZodNumber>;
3325
3352
  marker_size: z.ZodOptional<z.ZodNumber>;
3353
+ type: z.ZodOptional<z.ZodEnum<{
3354
+ line: "line";
3355
+ "column-clustered": "column-clustered";
3356
+ "column-stacked": "column-stacked";
3357
+ "column-stacked-100": "column-stacked-100";
3358
+ "line-markers": "line-markers";
3359
+ area: "area";
3360
+ "area-stacked": "area-stacked";
3361
+ "area-stacked-100": "area-stacked-100";
3362
+ }>>;
3363
+ secondary: z.ZodOptional<z.ZodBoolean>;
3326
3364
  }, z.core.$strict>>;
3327
3365
  legend: z.ZodOptional<z.ZodEnum<{
3328
3366
  left: "left";
@@ -3387,6 +3425,16 @@ declare const Worksheet: z.ZodObject<{
3387
3425
  format: z.ZodOptional<z.ZodString>;
3388
3426
  reverse: z.ZodOptional<z.ZodBoolean>;
3389
3427
  }, z.core.$strict>>;
3428
+ secondary_axis: z.ZodOptional<z.ZodObject<{
3429
+ title: z.ZodOptional<z.ZodString>;
3430
+ min: z.ZodOptional<z.ZodNumber>;
3431
+ max: z.ZodOptional<z.ZodNumber>;
3432
+ major: z.ZodOptional<z.ZodNumber>;
3433
+ gridlines: z.ZodOptional<z.ZodBoolean>;
3434
+ visible: z.ZodOptional<z.ZodBoolean>;
3435
+ format: z.ZodOptional<z.ZodString>;
3436
+ reverse: z.ZodOptional<z.ZodBoolean>;
3437
+ }, z.core.$strict>>;
3390
3438
  size: z.ZodOptional<z.ZodNumber>;
3391
3439
  title_size: z.ZodOptional<z.ZodNumber>;
3392
3440
  color: z.ZodOptional<z.ZodString>;
@@ -3462,9 +3510,16 @@ declare const Check: z.ZodObject<{
3462
3510
  formula: z.ZodString;
3463
3511
  }, z.core.$strict>;
3464
3512
  export type SheetCheck = z.output<typeof Check>;
3465
- /** sheet.yaml. */
3513
+ /** Excel's iterative calculation: `true`, or its limits. */
3514
+ declare const Iteration: z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
3515
+ max_iterations: z.ZodOptional<z.ZodNumber>;
3516
+ max_change: z.ZodOptional<z.ZodNumber>;
3517
+ }, z.core.$strict>]>;
3518
+ export type SheetIteration = z.output<typeof Iteration>;
3519
+ /** A sheet's file. */
3466
3520
  export declare const SheetFileSchema: z.ZodObject<{
3467
3521
  title: z.ZodOptional<z.ZodString>;
3522
+ code: z.ZodOptional<z.ZodString>;
3468
3523
  names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
3469
3524
  hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
3470
3525
  sheets: z.ZodArray<z.ZodObject<{
@@ -4056,6 +4111,7 @@ export declare const SheetFileSchema: z.ZodObject<{
4056
4111
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
4057
4112
  formula: z.ZodOptional<z.ZodString>;
4058
4113
  name: z.ZodOptional<z.ZodString>;
4114
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
4059
4115
  }, z.core.$strict>]>>>;
4060
4116
  format: z.ZodOptional<z.ZodArray<z.ZodObject<{
4061
4117
  format: z.ZodOptional<z.ZodString>;
@@ -4847,12 +4903,12 @@ export declare const SheetFileSchema: z.ZodObject<{
4847
4903
  validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
4848
4904
  range: z.ZodString;
4849
4905
  type: z.ZodEnum<{
4850
- list: "list";
4851
4906
  date: "date";
4852
4907
  custom: "custom";
4908
+ list: "list";
4909
+ time: "time";
4853
4910
  whole: "whole";
4854
4911
  decimal: "decimal";
4855
- time: "time";
4856
4912
  textLength: "textLength";
4857
4913
  }>;
4858
4914
  operator: z.ZodOptional<z.ZodEnum<{
@@ -4922,6 +4978,17 @@ export declare const SheetFileSchema: z.ZodObject<{
4922
4978
  smooth: z.ZodOptional<z.ZodBoolean>;
4923
4979
  line_width: z.ZodOptional<z.ZodNumber>;
4924
4980
  marker_size: z.ZodOptional<z.ZodNumber>;
4981
+ type: z.ZodOptional<z.ZodEnum<{
4982
+ line: "line";
4983
+ "column-clustered": "column-clustered";
4984
+ "column-stacked": "column-stacked";
4985
+ "column-stacked-100": "column-stacked-100";
4986
+ "line-markers": "line-markers";
4987
+ area: "area";
4988
+ "area-stacked": "area-stacked";
4989
+ "area-stacked-100": "area-stacked-100";
4990
+ }>>;
4991
+ secondary: z.ZodOptional<z.ZodBoolean>;
4925
4992
  }, z.core.$strict>>;
4926
4993
  legend: z.ZodOptional<z.ZodEnum<{
4927
4994
  left: "left";
@@ -4986,6 +5053,16 @@ export declare const SheetFileSchema: z.ZodObject<{
4986
5053
  format: z.ZodOptional<z.ZodString>;
4987
5054
  reverse: z.ZodOptional<z.ZodBoolean>;
4988
5055
  }, z.core.$strict>>;
5056
+ secondary_axis: z.ZodOptional<z.ZodObject<{
5057
+ title: z.ZodOptional<z.ZodString>;
5058
+ min: z.ZodOptional<z.ZodNumber>;
5059
+ max: z.ZodOptional<z.ZodNumber>;
5060
+ major: z.ZodOptional<z.ZodNumber>;
5061
+ gridlines: z.ZodOptional<z.ZodBoolean>;
5062
+ visible: z.ZodOptional<z.ZodBoolean>;
5063
+ format: z.ZodOptional<z.ZodString>;
5064
+ reverse: z.ZodOptional<z.ZodBoolean>;
5065
+ }, z.core.$strict>>;
4989
5066
  size: z.ZodOptional<z.ZodNumber>;
4990
5067
  title_size: z.ZodOptional<z.ZodNumber>;
4991
5068
  color: z.ZodOptional<z.ZodString>;
@@ -5060,79 +5137,26 @@ export declare const SheetFileSchema: z.ZodObject<{
5060
5137
  formula: z.ZodString;
5061
5138
  }, z.core.$strict>>>;
5062
5139
  scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
5140
+ iteration: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
5141
+ max_iterations: z.ZodOptional<z.ZodNumber>;
5142
+ max_change: z.ZodOptional<z.ZodNumber>;
5143
+ }, z.core.$strict>]>>;
5063
5144
  }, z.core.$strict>;
5064
5145
  export type SheetFile = z.output<typeof SheetFileSchema>;
5065
- /** What each kind of a workbook's facts measures: `allyhub inspect`'s, never problems. */
5066
- export interface SheetFactData {
5067
- /** A cell whose value is an error. */
5068
- "sheet-error": {
5069
- sheet: string;
5070
- cell: string;
5071
- code: string;
5072
- formula?: string;
5073
- /** None of what it reads is an error: the error starts here. */
5074
- origin: boolean;
5075
- };
5076
- /** Numbers written into a formula. */
5077
- "sheet-number": {
5078
- sheet: string;
5079
- /** The cell its formula is written for. */
5080
- cell: string;
5081
- /** How many cells hold this formula. */
5082
- cells: number;
5083
- formula: string;
5084
- /** Each number, and the operator or function it is given to. */
5085
- numbers: {
5086
- value: number;
5087
- in: string;
5088
- }[];
5089
- };
5090
- /** A cell between neighbours that agree, unlike them. */
5091
- "sheet-unlike": {
5092
- sheet: string;
5093
- cell: string;
5094
- /** What it holds: its formula, or its value. */
5095
- holds: string;
5096
- /** What the neighbours hold, as the first of them reads. */
5097
- neighbour: string;
5098
- along: "column" | "row";
5099
- /** How many cells together read alike either side. */
5100
- run: number;
5101
- };
5102
- /** A cell of a calculated column set apart from its formula. */
5103
- "sheet-exception": {
5104
- sheet: string;
5105
- table: string;
5106
- column: string;
5107
- cell: string;
5108
- text: string;
5109
- };
5110
- /** An input nothing reads. */
5111
- "sheet-unused": {
5112
- /** A defined name, a typed cell, or a table's column (with --all). */
5113
- what: "name" | "cell" | "column";
5114
- name: string;
5115
- sheet?: string;
5116
- value?: string;
5117
- };
5118
- /** A cell that breaks its data validation. */
5119
- "sheet-invalid": {
5120
- sheet: string;
5121
- cell: string;
5122
- value: string | number | boolean | null;
5123
- rule: string;
5124
- range: string;
5125
- };
5126
- /** A number sheet.ts typed that neither its data nor its code holds: what it computed, where a formula should. */
5127
- "sheet-typed": {
5146
+ /** What a sheet's code makes, beside what its file holds: sheets as sheet.yaml would hold them, with their tables' rows as CSV text, and names. */
5147
+ export interface GeneratedSheets {
5148
+ /** The sheets it makes, in the order it made them, as sheet.yaml would hold them. */
5149
+ sheets: SheetWorksheet[];
5150
+ /** Names it defines. */
5151
+ names?: NonNullable<SheetFile["names"]>;
5152
+ /** Its tables' and blocks' rows, as CSV text, by the paths its sheets name. */
5153
+ csv: Record<string, string>;
5154
+ /** Numbers it typed that neither its data nor its code holds. */
5155
+ typed?: {
5128
5156
  sheet: string;
5129
5157
  cell: string;
5130
5158
  value: number;
5131
- };
5132
- /** A sheet sheet.ts makes and sheet.yaml holds too: sheet.yaml's stands. */
5133
- "sheet-ordinary": {
5134
- sheet: string;
5135
- };
5159
+ }[];
5136
5160
  }
5137
5161
  export {};
5138
5162
  //# sourceMappingURL=sheet.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_DATA="data",SHEET_CODE="sheet.ts",SHEET_FILES="files",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const l=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),m={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:l.optional(),right:l.optional(),top:l.optional(),bottom:l.optional()}).optional()},a={...m,format:t.string().min(1).optional()},r=t.union([t.number(),t.boolean(),t.string(),t.null()]),E=t.strictObject({value:r.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),O=t.union([r,E]),f=t.strictObject({range:t.string().min(1),...a}),b=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),S=t.strictObject({formula:t.string().min(1).optional(),...a,width:t.number().positive().optional(),files:b.optional()}),u=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),x=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),S).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),u)})]).optional()}),j=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a,files:b.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),u).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=t.union([t.number(),t.string()]),i={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:m.border},n={range:t.string().min(1),stop:t.boolean().optional()},s=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=t.discriminatedUnion("type",[t.strictObject({...n,...i,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(p).min(1).max(2)}),t.strictObject({...n,...i,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...i,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...i,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:s.optional(),max:s.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...s.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(s).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(p).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),k=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional()}),g=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),H=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(k).min(1),legend:t.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:g.optional(),category_axis:g.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),R=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),C=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),D=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),G=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(x).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),O).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(j).optional(),filter:v.optional(),conditional:t.array(w).optional(),validations:t.array(A).optional(),charts:t.array(H).optional(),pictures:t.array(C).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),D).optional(),print:R.optional(),protect:t.boolean().optional(),names:t.record(t.string(),r).optional(),hidden_names:t.array(t.string().min(1)).optional()}),I=t.strictObject({name:t.string().min(1),formula:t.string().min(1)});export const SheetFileSchema=t.strictObject({title:t.string().optional(),names:t.record(t.string(),r).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(G).min(1),checks:t.array(I).optional(),scenarios:t.record(t.string(),t.record(t.string(),r)).optional()});
2
+ import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as r,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const s=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),b={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:s.optional(),right:s.optional(),top:s.optional(),bottom:s.optional()}).optional()},l={...b,format:t.string().min(1).optional()},i=t.union([t.number(),t.boolean(),t.string(),t.null()]),O=t.strictObject({value:i.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),start:i.optional(),...l}).refine(a=>a.value===void 0||a.formula===void 0,{message:"A cell has a value or a formula, not both."}).refine(a=>a.start===void 0||a.formula!==void 0,{message:"A cell's start is a formula's."}),E=t.union([i,O]),f=t.strictObject({range:t.string().min(1),...l}),u=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),x=t.strictObject({formula:t.string().min(1).optional(),...l,width:t.number().positive().optional(),files:u.optional()}),g=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),j=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),x).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),g)})]).optional()}),S=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l,files:u.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const c=t.union([t.number(),t.string()]),e={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:b.border},n={range:t.string().min(1),stop:t.boolean().optional()},p=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:c.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const k=t.discriminatedUnion("type",[t.strictObject({...n,...e,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(c).min(1).max(2)}),t.strictObject({...n,...e,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...e,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...e,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:p.optional(),max:p.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...p.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(p).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const w=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(c).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),A=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"],H=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional(),type:t.enum(A).optional(),secondary:t.boolean().optional()}),m=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),R=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(H).min(1),legend:t.enum(h).optional(),labels:r.shape.labels,gap_width:r.shape.gap_width,overlap:r.shape.overlap,vary_by_categories:r.shape.vary_by_categories,hole_size:r.shape.hole_size,value_axis:m.optional(),category_axis:m.optional(),secondary_axis:m.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),C=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),D=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),G=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),I=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(j).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),E).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(S).optional(),filter:v.optional(),conditional:t.array(k).optional(),validations:t.array(w).optional(),charts:t.array(R).optional(),pictures:t.array(D).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),G).optional(),print:C.optional(),protect:t.boolean().optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional()}),z=t.strictObject({name:t.string().min(1),formula:t.string().min(1)}),L=t.union([t.literal(!0),t.strictObject({max_iterations:t.number().int().min(1).max(32767).optional(),max_change:t.number().min(0).optional()})]);export const SheetFileSchema=t.strictObject({title:t.string().optional(),code:t.string().min(1).optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(I).min(1),checks:t.array(z).optional(),scenarios:t.record(t.string(),t.record(t.string(),i)).optional(),iteration:L.optional()});