allyhub 0.21.0 → 0.23.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 (253) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/dev.js +5 -5
  3. package/dist/commands/export.js +1 -1
  4. package/dist/commands/index.js +1 -1
  5. package/dist/commands/list.js +1 -1
  6. package/dist/commands/run.js +2 -0
  7. package/dist/commands/schedule.js +4 -0
  8. package/dist/commands.json +1 -1
  9. package/dist/main.js +8 -8
  10. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  11. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  12. package/dist/node_modules/@allyhub/blocks/package.json +1 -1
  13. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  14. package/dist/node_modules/@allyhub/build/dist/migrate.js +1 -1
  15. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  16. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  17. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  18. package/dist/node_modules/@allyhub/build/package.json +1 -1
  19. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  20. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/check/package.json +1 -1
  23. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  24. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  25. package/dist/node_modules/@allyhub/cloud/dist/scheduled-tasks.js +2 -0
  26. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  27. package/dist/node_modules/@allyhub/components/package.json +1 -1
  28. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  29. package/dist/node_modules/@allyhub/dev-server/dist/record.js +2 -1
  30. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  31. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  32. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  33. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  34. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  35. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  36. package/dist/node_modules/@allyhub/export/package.json +1 -1
  37. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  38. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +3 -3
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +151 -151
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +173 -173
  42. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +1 -2
  43. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  46. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  48. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +106 -101
  49. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  50. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +26 -1
  51. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +1 -1
  52. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  53. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  54. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  55. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  56. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  57. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  58. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  61. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  62. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  63. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  64. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  65. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  66. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  67. package/dist/node_modules/@allyhub/media/package.json +1 -1
  68. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  69. package/dist/node_modules/@allyhub/model/package.json +1 -1
  70. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  71. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  72. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  73. package/dist/node_modules/@allyhub/project/package.json +1 -1
  74. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  75. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  76. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  77. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  78. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  79. package/dist/node_modules/@allyhub/protocol/dist/scheduled-tasks.js +2 -0
  80. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  81. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  82. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  83. package/dist/node_modules/@allyhub/render/package.json +1 -1
  84. package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
  85. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  86. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  87. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -6
  88. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  89. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  90. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  91. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  92. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  93. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  94. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  95. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  96. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  97. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -2
  98. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  99. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  100. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  101. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  102. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  103. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  104. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  105. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  106. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  107. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  108. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  109. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  110. package/dist/node_modules/@allyhub/website/package.json +1 -1
  111. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  112. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  113. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  114. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  115. package/dist/package.json +15 -15
  116. package/dist/run-register.js +2 -0
  117. package/dist/works.js +1 -1
  118. package/editor-web/assets/{abnfDiagram-WEYOIA3C-B4tvwU6C.js → abnfDiagram-WEYOIA3C-OIbGwO0P.js} +1 -1
  119. package/editor-web/assets/{architecture-WOLXFQ4H-V2fA0vY2.js → architecture-WOLXFQ4H-i87EDk8h.js} +1 -1
  120. package/editor-web/assets/{architectureDiagram-ZHVYKT53-B6B7XN0M.js → architectureDiagram-ZHVYKT53-DRsgKDbu.js} +1 -1
  121. package/editor-web/assets/article-BVbLqhwK.js +3 -0
  122. package/editor-web/assets/article-BxkgemqI.js +7 -0
  123. package/editor-web/assets/bar-button-BJ-_6g-F.js +1 -0
  124. package/editor-web/assets/{blockDiagram-RJAE7QA3-BizcUGOM.js → blockDiagram-RJAE7QA3-k_lanKyI.js} +1 -1
  125. package/editor-web/assets/{c4Diagram-XDPPPE54-CBHS0dQ0.js → c4Diagram-XDPPPE54-BFJTpM5w.js} +1 -1
  126. package/editor-web/assets/{calc-worker-Cr4a0xmt.js → calc-worker-BpAgQE9E.js} +3 -3
  127. package/editor-web/assets/channel-CDJSUIp1.js +1 -0
  128. package/editor-web/assets/chevron-right-7tjLd0X4.js +1 -0
  129. package/editor-web/assets/chip-lvclIKGj.js +1 -0
  130. package/editor-web/assets/{chunk-2E7WHVMD-CMPBck_Q.js → chunk-2E7WHVMD-Bbfj2q42.js} +1 -1
  131. package/editor-web/assets/{chunk-4EMNKR2T-Df22Adpt.js → chunk-4EMNKR2T-iKWsgYqL.js} +1 -1
  132. package/editor-web/assets/{chunk-55XCU76K-CYrZ6_Q7.js → chunk-55XCU76K-WwcsywWu.js} +1 -1
  133. package/editor-web/assets/{chunk-7S6XSTFO-BfdG9NNW.js → chunk-7S6XSTFO-BEEtZTsQ.js} +1 -1
  134. package/editor-web/assets/{chunk-AQDTSKZB-BCzZMoTJ.js → chunk-AQDTSKZB-ZT2PBdLK.js} +1 -1
  135. package/editor-web/assets/{chunk-DSNLSHJZ-DT0xT8Wf.js → chunk-DSNLSHJZ-BDlY4xos.js} +1 -1
  136. package/editor-web/assets/{chunk-HAGFOTED-Bg3-EotU.js → chunk-HAGFOTED-Yp6V4sx6.js} +1 -1
  137. package/editor-web/assets/{chunk-HNE4Q36P-BrSym24V.js → chunk-HNE4Q36P-C6IdGLw2.js} +1 -1
  138. package/editor-web/assets/{chunk-NQOKRVIF-CMxgkJWF.js → chunk-NQOKRVIF-D3gs_SMr.js} +1 -1
  139. package/editor-web/assets/{chunk-UHW7PFBP-DWEwoyPy.js → chunk-UHW7PFBP-Byf0dX4X.js} +1 -1
  140. package/editor-web/assets/{chunk-VQ5W62QI-eTFh5_T9.js → chunk-VQ5W62QI-n9lsvBOX.js} +1 -1
  141. package/editor-web/assets/{chunk-WQQL4CDK-4PTupr9T.js → chunk-WQQL4CDK-BW540sO1.js} +1 -1
  142. package/editor-web/assets/{chunk-YZO67HFG-D5XAAFWm.js → chunk-YZO67HFG-CWL9cioT.js} +1 -1
  143. package/editor-web/assets/{chunk-ZAUX2LTX-CPsdaisO.js → chunk-ZAUX2LTX-D9zlkFeQ.js} +1 -1
  144. package/editor-web/assets/{chunk-ZCHMQSOR-ClnuUyfy.js → chunk-ZCHMQSOR-nieSgKB5.js} +1 -1
  145. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CM21waNF.js → classDiagram-v2-4MYWR3UA-BXamBIDc.js} +1 -1
  146. package/editor-web/assets/{color-picker-BmKFn2ww.js → color-picker-XpkmmKxv.js} +1 -1
  147. package/editor-web/assets/context-menu-pSruvRyd.js +1 -0
  148. package/editor-web/assets/{cynefin-EF2NZ3EQ-CJUHTgee.js → cynefin-EF2NZ3EQ-CVKVgqFb.js} +1 -1
  149. package/editor-web/assets/{cynefinDiagram-WF24UDRP-C9RIfuIV.js → cynefinDiagram-WF24UDRP-r0bqUe5X.js} +1 -1
  150. package/editor-web/assets/{dagre-NK4GIZVX-g-01KdpO.js → dagre-NK4GIZVX-4q_IUjiM.js} +1 -1
  151. package/editor-web/assets/deck-cyd6f3QU.js +1 -0
  152. package/editor-web/assets/{diagram-CBK3MWTC-CbOjWUu-.js → diagram-CBK3MWTC-CDh12DaH.js} +1 -1
  153. package/editor-web/assets/{diagram-I5XIIV2D-C6psNS8J.js → diagram-I5XIIV2D-C_sqASp8.js} +1 -1
  154. package/editor-web/assets/{diagram-ODIL2UCW-C9PUE46P.js → diagram-ODIL2UCW-QgoMb-iS.js} +1 -1
  155. package/editor-web/assets/{diagram-PFBEJUXE-vJ_pnB33.js → diagram-PFBEJUXE-Djhv4RT6.js} +1 -1
  156. package/editor-web/assets/{diagram-RJA3I4VV-FwYlEfJ-.js → diagram-RJA3I4VV-CvVswF4l.js} +1 -1
  157. package/editor-web/assets/{diagram-TYUNFSNR-FKpIxeUc.js → diagram-TYUNFSNR-DLnbV741.js} +1 -1
  158. package/editor-web/assets/dist-BK-WZ2ce.js +3 -0
  159. package/editor-web/assets/dist-CQ8-PJqF.js +16 -0
  160. package/editor-web/assets/dist-CQElMvxC.js +4 -0
  161. package/editor-web/assets/{dist-Cg0Z26Kv.js → dist-D49XAtID.js} +4 -4
  162. package/editor-web/assets/{dist-DH8oJJw9.js → dist-DDQLLUz5.js} +3 -3
  163. package/editor-web/assets/{dist-BI_BaYhO.js → dist-DO2VygfS.js} +4 -4
  164. package/editor-web/assets/dist-DOoUVqs_.js +24 -0
  165. package/editor-web/assets/{dist-D2rGVz9C.js → dist-DUyJ8AI0.js} +1 -1
  166. package/editor-web/assets/dist-DlDgR_Er.js +1 -0
  167. package/editor-web/assets/dist-Dw7AH_ip.js +6 -0
  168. package/editor-web/assets/{dist-H0z_DXDz.js → dist-Dx3tLwZ1.js} +17 -17
  169. package/editor-web/assets/{dist-CtYjYJdv.js → dist-F7lLi27Y.js} +1 -1
  170. package/editor-web/assets/dist-OfUZ68xY.js +547 -0
  171. package/editor-web/assets/{dist-CB-_0-X4.js → dist-OyPpS4AG.js} +28 -28
  172. package/editor-web/assets/dist-QCvBWMrp.js +5 -0
  173. package/editor-web/assets/{dist-D07Kj8GR.js → dist-RppJbSHJ.js} +1 -1
  174. package/editor-web/assets/dist-ZFgjTFWK.js +19 -0
  175. package/editor-web/assets/{dist-BqijryYd.js → dist-onYtssQw.js} +1 -1
  176. package/editor-web/assets/{docx-draw-Dxb67W2d.js → docx-draw-BBI4k72R.js} +1 -1
  177. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DBymUM-F.js → ebnfDiagram-V4P3TTPT-BoiJRPsL.js} +1 -1
  178. package/editor-web/assets/{elk-QONTBCTQ-BNYR3OlS.js → elk-QONTBCTQ-BDiBwn0f.js} +1 -1
  179. package/editor-web/assets/{erDiagram-KYQIGQAA-cTNyOqW6.js → erDiagram-KYQIGQAA-DaA3jdNm.js} +1 -1
  180. package/editor-web/assets/esm-BWIRT8Yl.js +21 -0
  181. package/editor-web/assets/{eventmodeling-K75KTNOO-C6FUZeXP.js → eventmodeling-K75KTNOO-j7ZSOAed.js} +1 -1
  182. package/editor-web/assets/flowDiagram-IUGLLWBU-Cb-xQSAJ.js +1 -0
  183. package/editor-web/assets/{ganttDiagram-R7GPNTJY-LD9mqQ1x.js → ganttDiagram-R7GPNTJY-CyNcjwUZ.js} +1 -1
  184. package/editor-web/assets/{gitGraph-VSP46ZUC-CtCBcQFl.js → gitGraph-VSP46ZUC-BuzoK22Z.js} +1 -1
  185. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DYQpOozz.js → gitGraphDiagram-PDYL7XHY--lzum_QP.js} +1 -1
  186. package/editor-web/assets/index-BSd85XUU.js +28 -0
  187. package/editor-web/assets/{info-OHQRW6UA-IXInKPRO.js → info-OHQRW6UA-rs42SY_Y.js} +1 -1
  188. package/editor-web/assets/{infoDiagram-MVDRKAX5-Ds7Cei7T.js → infoDiagram-MVDRKAX5-BjedWKrM.js} +1 -1
  189. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-DWs3qtAX.js → ishikawaDiagram-HPEHV2GE-Dtqm_gq7.js} +1 -1
  190. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BkNKVYBA.js → journeyDiagram-BOSHW7O7-J0dA2yU0.js} +1 -1
  191. package/editor-web/assets/{kanban-definition-FNSA4HC5-D3dMswnI.js → kanban-definition-FNSA4HC5-DV13v0Uf.js} +1 -1
  192. package/editor-web/assets/layout-CuWN7_3k.js +1 -0
  193. package/editor-web/assets/{mermaid-parser.core-D_W_0X0N.js → mermaid-parser.core-B7bZFHzS.js} +3 -3
  194. package/editor-web/assets/{mermaid.core-Bkirj-s5.js → mermaid.core-DQ10-Otk.js} +4 -4
  195. package/editor-web/assets/{mindmap-definition-6OY57UG3-CMKkAAvI.js → mindmap-definition-6OY57UG3-DgdXGBCF.js} +1 -1
  196. package/editor-web/assets/{packet-JDAUHWVQ-CzCkgCfg.js → packet-JDAUHWVQ-ZNSLC_YL.js} +1 -1
  197. package/editor-web/assets/{panes-BexRuZd2.js → panes-1hRg6CCN.js} +2 -2
  198. package/editor-web/assets/{pegDiagram-ECIUJNBX-C8qHkx7M.js → pegDiagram-ECIUJNBX-nBIsHepE.js} +1 -1
  199. package/editor-web/assets/{pie-XZMESJXO-BJqgxMrD.js → pie-XZMESJXO-CXen6okO.js} +1 -1
  200. package/editor-web/assets/{pieDiagram-GNMPY74T-DyNntV5y.js → pieDiagram-GNMPY74T-BlimMsUq.js} +1 -1
  201. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BHa-69ir.js → quadrantDiagram-D57K4MC3-D_B7p8XB.js} +1 -1
  202. package/editor-web/assets/{radar-ABXABTNO-BeRPjBBR.js → radar-ABXABTNO-DFfRPPEM.js} +1 -1
  203. package/editor-web/assets/{railroad-I3PHUGI6-BaRQqRsK.js → railroad-I3PHUGI6-DS8ly7WZ.js} +1 -1
  204. package/editor-web/assets/{railroad-abnf-LNEFI6M7-BZfwomxZ.js → railroad-abnf-LNEFI6M7-Coohlgpw.js} +1 -1
  205. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DbgqpEF5.js → railroad-ebnf-DWYD2UWJ-CvcfKbZc.js} +1 -1
  206. package/editor-web/assets/{railroad-peg-JR7BVNR7-BYOf3PsQ.js → railroad-peg-JR7BVNR7-jRtVHKtg.js} +1 -1
  207. package/editor-web/assets/{railroadDiagram-Y72NRBL7-B5OAzOsD.js → railroadDiagram-Y72NRBL7-kWUIDPHg.js} +1 -1
  208. package/editor-web/assets/{requirementDiagram-EQYSW5RA-wqYNoqO0.js → requirementDiagram-EQYSW5RA-C39Gfdi-.js} +1 -1
  209. package/editor-web/assets/ribbon-tabs-5R-_EtHp.js +1 -0
  210. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Crf6GRsa.js → sankeyDiagram-SY24JHO5-DtSQ2N2q.js} +1 -1
  211. package/editor-web/assets/schemas-CnlOL0u4.js +1 -0
  212. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DUcHz4_d.js → sequenceDiagram-BLEHNHQU-BZx9gAR1.js} +1 -1
  213. package/editor-web/assets/{session--OJYv_B7.js → session-2pd0mFQm.js} +1 -1
  214. package/editor-web/assets/{snapshots-DYooVfOx.js → snapshots-8hCkRemI.js} +1 -1
  215. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DbeLdnpS.js → stateDiagram-v2-A6IESKWZ-E9qhWPa3.js} +1 -1
  216. package/editor-web/assets/{swimlanes-B3ENRKFQ-BDi6AeJI.js → swimlanes-B3ENRKFQ-C6vD9fmU.js} +1 -1
  217. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-D_DL_JP0.js +8 -0
  218. package/editor-web/assets/themes-D_ISkWVz.js +1 -0
  219. package/editor-web/assets/{timeline-definition-JXYKGLGB-B0awa2hh.js → timeline-definition-JXYKGLGB-CT8AKsKE.js} +1 -1
  220. package/editor-web/assets/{treeView-D4JQ5SDB-C91G0IGm.js → treeView-D4JQ5SDB-DA2iE5aC.js} +1 -1
  221. package/editor-web/assets/{treemap-SAJKECNS-CiOWiwl2.js → treemap-SAJKECNS-RgrBf6Sq.js} +1 -1
  222. package/editor-web/assets/{updating-D0GEtwnJ.js → updating--4wIxO0k.js} +1 -1
  223. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DMYM1MRe.js → usecaseDiagram-WPOLBNNX-DfIcy0_F.js} +1 -1
  224. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DQIJ5vvN.js → vennDiagram-Q3Y3IDCW-DxTSyNH7.js} +1 -1
  225. package/editor-web/assets/{video-mMOFXHYK.js → video-yjnj5UY2.js} +1 -1
  226. package/editor-web/assets/{wardley-7MLQ67FV-C3H9HG8r.js → wardley-7MLQ67FV-pow5gWxU.js} +1 -1
  227. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DgsjqY1Y.js → wardleyDiagram-IVAIDKWA-Dar0j9HS.js} +1 -1
  228. package/editor-web/assets/{workbook-NtMEyLgf.js → workbook-7fUt0Qgy.js} +1 -1
  229. package/editor-web/assets/{xychartDiagram-4URNHDU4-DzsGI527.js → xychartDiagram-4URNHDU4-qCxuQZMj.js} +1 -1
  230. package/editor-web/index.html +5 -3
  231. package/package.json +2 -2
  232. package/editor-web/assets/article-DW4eD_8K.js +0 -3
  233. package/editor-web/assets/article-Dm2dIEwc.js +0 -7
  234. package/editor-web/assets/bar-button-CJmpgNg4.js +0 -1
  235. package/editor-web/assets/channel-dyUtlVPg.js +0 -1
  236. package/editor-web/assets/chip-BdQRH3FL.js +0 -1
  237. package/editor-web/assets/deck-C0VxrlzX.js +0 -1
  238. package/editor-web/assets/dist-BaWFMuvr.js +0 -1
  239. package/editor-web/assets/dist-BdmMT8fP.js +0 -5
  240. package/editor-web/assets/dist-BgKyM9U6.js +0 -3
  241. package/editor-web/assets/dist-ByguWp3a.js +0 -16
  242. package/editor-web/assets/dist-CCP24Lel.js +0 -19
  243. package/editor-web/assets/dist-D3DwRF1k.js +0 -547
  244. package/editor-web/assets/dist-DCI21ljp.js +0 -6
  245. package/editor-web/assets/dist-DJvfQvM7.js +0 -24
  246. package/editor-web/assets/dist-DmCDcb2_.js +0 -4
  247. package/editor-web/assets/esm-Cl3GKSDd.js +0 -21
  248. package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +0 -1
  249. package/editor-web/assets/index-omhSywJb.js +0 -28
  250. package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +0 -1
  251. package/editor-web/assets/schemas-C21MyseF.js +0 -1
  252. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +0 -8
  253. package/editor-web/assets/tolerant-DM9s0Mt1.js +0 -1
@@ -1,13 +1,13 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{mkdir as p,readFile as m,writeFile as d}from"node:fs/promises";import{basename as f,join as a,resolve as u}from"node:path";export const PROJECT_PACKAGES={cli:"allyhub",sdk:"@allyhub/sdk"},PROJECT_TYPESCRIPT="~5.9.3",PROJECT_GITIGNORE=`node_modules/
2
+ import{mkdir as p,readFile as y,writeFile as d}from"node:fs/promises";import{basename as f,join as r,resolve as u}from"node:path";export const PROJECT_PACKAGES={cli:"allyhub",sdk:"@allyhub/sdk"},PROJECT_TYPESCRIPT="~5.9.3",PROJECT_GITIGNORE=`node_modules/
3
3
  .allyhub/
4
4
  .playwright-cli/
5
- `,REGISTRY="https://allyhub.com/r",MASTER_SKILL="allyhub";export function workSkills(n){return n.filter(e=>e.type==="allyhub:skill"&&e.name!==MASTER_SKILL).map(e=>({name:e.name,description:e.description.replaceAll(/\s+/gu," ").trim()}))}export const AGENT_RULES_BEGIN="<!-- BEGIN:allyhub-agent-rules -->",AGENT_RULES_END="<!-- END:allyhub-agent-rules -->";export function agentRules(){return[AGENT_RULES_BEGIN,"",`The SDK's docs for the version this project builds with are in \`node_modules/${PROJECT_PACKAGES.sdk}/docs/\` once the project has installed it, its \`README.md\` saying what each file covers; without it, \`allyhub help\` says where they are (the SDK the CLI lends). They and the SDK's types describe the API as it is now.`,"","`allyhub help` lists AllyHub's commands (`npx allyhub help` once the project has installed it); `allyhub help <command>` says what one does.","",AGENT_RULES_END].join(`
5
+ `,REGISTRY="https://allyhub.com/r",MASTER_SKILL="allyhub";export function workSkills(n){return n.filter(e=>e.type==="allyhub:skill"&&e.name!==MASTER_SKILL).map(e=>({name:e.name,description:e.description.replaceAll(/\s+/gu," ").trim()}))}export const AGENT_RULES_BEGIN="<!-- BEGIN:allyhub-agent-rules -->",AGENT_RULES_END="<!-- END:allyhub-agent-rules -->";export function agentRules(){return[AGENT_RULES_BEGIN,"","`allyhub help` lists AllyHub's commands and says where the docs of the SDK this project builds with are, their `README.md` saying what each file covers; `allyhub help <command>` says what one does. The docs and the SDK's types describe the API as it is now.","",AGENT_RULES_END].join(`
6
6
  `)}export function projectAgents(){return`# AllyHub project
7
7
 
8
- This folder is an AllyHub project. Videos, decks, images, 3D sceneries and 3D models are TypeScript, docs MDX, sheets YAML and CSV, a canvas JSON Canvas, and a website any web project; their files are named and laid out freely, and a model is made once and put in any scenery that imports it. \`${WORK_FILE}\` lists the work a person sees, in the order they see it: each piece's \`kind\` (\`video\`, \`slides\`, \`image\`, \`doc\`, \`sheet\`, \`scenery\`, \`model\`, \`website\`; none for a \`.canvas\`, which its editor opens by its name), its \`file\` from this folder and, if its file says none, a \`title\`, optionally under \`group\` headings. A file not listed (a scenery a video imports, a helper, a draft) is not shown to the person.
8
+ This folder is an AllyHub project. Videos, decks, images, 3D sceneries and 3D models are TypeScript, docs MDX, sheets YAML and CSV, reports HTML, a canvas JSON Canvas, and a website any web project; their files are named and laid out freely, and a model is made once and put in any scenery that imports it. \`${WORK_FILE}\` lists the work a person sees, in the order they see it: each piece's \`kind\` (\`video\`, \`slides\`, \`image\`, \`doc\`, \`sheet\`, \`report\`, \`scenery\`, \`model\`, \`website\`; none for a \`.canvas\`, which its editor opens by its name), its \`file\` from this folder and, if its file says none, a \`title\`, optionally under \`group\` headings. A file not listed (a scenery a video imports, a helper, a draft) is not shown to the person.
9
9
 
10
- - A video or a scenery is code, which needs a package.json: \`npm create allyhub@latest .\` makes one, and \`npm install\` installs it.
10
+ - Code imports \`${PROJECT_PACKAGES.sdk}\` and three.js with nothing installed: \`allyhub\` brings them where the project has not installed them. A package of another that code imports is installed with \`npm install <package>\`.
11
11
 
12
12
  ${agentRules()}
13
13
  `}export const PROJECT_CLAUDE=`@AGENTS.md
@@ -17,5 +17,5 @@ versions: {}
17
17
  versions:
18
18
  ${e.map(([t,s])=>` ${/^[a-z][\w-]*$/u.test(t)?t:JSON.stringify(t)}: ${String(s)}
19
19
  `).join("")}`}export const PROJECT_TSCONFIG=`${JSON.stringify({compilerOptions:{target:"ES2022",module:"ESNext",moduleResolution:"Bundler",lib:["ES2022","DOM","DOM.Iterable"],types:[`${PROJECT_PACKAGES.sdk}/client`,`${PROJECT_PACKAGES.cli}/client`],strict:!0,noEmit:!0,skipLibCheck:!0,verbatimModuleSyntax:!0,allowImportingTsExtensions:!0},include:["**/*.ts",".allyhub/cache/types"],exclude:["node_modules"]},null,2)}
20
- `;export function packageName(n){const e=n.toLowerCase().normalize("NFKD").replace(/\p{M}/gu,"").replace(/[^\w.-]+/gu,"-").replace(/^[-._]+|[-._]+$/gu,"").slice(0,214);return e===""?"allyhub-project":e}const c=n=>m(n).then(()=>!0,()=>!1);export async function writeAgentFiles(n,e){const t=u(n);await p(t,{recursive:!0});const s=[];for(const[o,r]of[["AGENTS.md",projectAgents()],["CLAUDE.md",PROJECT_CLAUDE],[WORK_FILE,projectWork(e)]])await c(a(t,o))||(await d(a(t,o),r,{flag:"wx"}),s.push(o));return s}export async function startProject(n,e){const t=u(n);if(await c(a(t,"package.json")))throw new Error(`${t} already has a package.json: add AllyHub to it with npm install ${PROJECT_PACKAGES.cli} ${PROJECT_PACKAGES.sdk}.`);const s=packageName(f(t)),o=i=>e.packages?.[i]??e.version,r={name:s,version:"0.0.0",private:!0,type:"module",scripts:{dev:"allyhub dev",check:"allyhub check",export:"allyhub export",typecheck:"tsc --noEmit"},dependencies:{[PROJECT_PACKAGES.cli]:o(PROJECT_PACKAGES.cli),[PROJECT_PACKAGES.sdk]:o(PROJECT_PACKAGES.sdk)},devDependencies:{typescript:PROJECT_TYPESCRIPT}},h=[["package.json",`${JSON.stringify(r,null,2)}
21
- `],["tsconfig.json",PROJECT_TSCONFIG],[".gitignore",PROJECT_GITIGNORE]];await p(t,{recursive:!0});const l=[];for(const[i,y]of h)await c(a(t,i))||(await d(a(t,i),y,{flag:"wx"}),l.push(i));return l.push(...await writeAgentFiles(t,e.formats)),{folder:t,name:s,files:l}}
20
+ `;export function packageName(n){const e=n.toLowerCase().normalize("NFKD").replace(/\p{M}/gu,"").replace(/[^\w.-]+/gu,"-").replace(/^[-._]+|[-._]+$/gu,"").slice(0,214);return e===""?"allyhub-project":e}const c=n=>y(n).then(()=>!0,()=>!1);export async function writeAgentFiles(n,e){const t=u(n);await p(t,{recursive:!0});const s=[];for(const[o,a]of[["AGENTS.md",projectAgents()],["CLAUDE.md",PROJECT_CLAUDE],[WORK_FILE,projectWork(e)],[".gitignore",PROJECT_GITIGNORE]])await c(r(t,o))||(await d(r(t,o),a,{flag:"wx"}),s.push(o));return s}export async function startProject(n,e){const t=u(n);if(await c(r(t,"package.json")))throw new Error(`${t} already has a package.json: add AllyHub to it with npm install ${PROJECT_PACKAGES.cli} ${PROJECT_PACKAGES.sdk}.`);const s=packageName(f(t)),o=i=>e.packages?.[i]??e.version,a={name:s,version:"0.0.0",private:!0,type:"module",scripts:{dev:"allyhub dev",check:"allyhub check",export:"allyhub export",typecheck:"tsc --noEmit"},dependencies:{[PROJECT_PACKAGES.cli]:o(PROJECT_PACKAGES.cli),[PROJECT_PACKAGES.sdk]:o(PROJECT_PACKAGES.sdk)},devDependencies:{typescript:PROJECT_TYPESCRIPT}},h=[["package.json",`${JSON.stringify(a,null,2)}
21
+ `],["tsconfig.json",PROJECT_TSCONFIG],[".gitignore",PROJECT_GITIGNORE]];await p(t,{recursive:!0});const l=[];for(const[i,m]of h)await c(r(t,i))||(await d(r(t,i),m,{flag:"wx"}),l.push(i));return l.push(...await writeAgentFiles(t,e.formats)),{folder:t,name:s,files:l}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/scaffold",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/scenery",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/scenery-host",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readDataFileAsWritten as g}from"@allyhub/formats";import{CORE_SCHEMA as y,load as S}from"js-yaml";import{inPixels as c}from"./units.js";import{LineCounter as f,isMap as k,isScalar as d,parseDocument as p,visit as $}from"yaml";export const ENTRY="sheet.yaml",CODE="sheet.ts";const b={clustered:"clustered",standard:"clustered",stacked:"stacked",percentStacked:"stacked-100"},M={col:"column",column:"column",bar:"bar",area:"area",line:"line"};function m(n){const s=n.sheets;if(!Array.isArray(s))return n;for(const r of s)if(Array.isArray(r.charts))for(const e of r.charts){const t=typeof e.type=="string"?M[e.type]:void 0,o=e.grouping;if(t===void 0||typeof o!="string")continue;const i=b[o];i!==void 0&&(e.type=t==="line"||t==="area"?i==="clustered"?t:`${t}-${i}`:`${t}-${i}`,Reflect.deleteProperty(e,"grouping"))}return n}export const codeOf=n=>readSheetFile(n).file?.code;export function placesOf(n,s){const r=e=>{const t=e===""?[]:e.split("/");for(const o of s.split("/"))if(!(o===""||o==="."))if(o===".."){if(t.length===0)return;t.pop()}else t.push(o);return t.join("/")};return[...new Set([r(n),r("")])].filter(e=>e!==void 0&&e!=="")}export function dataFilesOf(n){const s=readSheetFile(n),r=s.file??s.partial;return[...new Set(r?.sheets.flatMap(e=>[...(e.tables??[]).map(t=>t.rows),...(e.blocks??[]).map(t=>t.rows)])??[])]}function O(n){const s=[];return $(n,{Map(r,e){if(!k(e))return;const t=new Set;for(const o of e.items){const i=d(o.key)?String(o.key.value):void 0;if(i!==void 0)if(t.has(i)){const l=d(o.key)?o.key.range?.[0]??0:0;s.push({at:l,key:i})}else t.add(i)}}}),s}export const SHEET_FILE_MOST=20*1e3*1e3,sizeSaid=n=>`${String(Math.round(n/1e5)/10)} MB`;function a(n,s){let r=s;return e=>{if(r===void 0){const i=new f;r={doc:p(n,{lineCounter:i,uniqueKeys:!1}),counter:i}}const{doc:t,counter:o}=r;for(let i=e.length;i>=0;i--){const u=t.getIn(e.slice(0,i),!0)?.range?.[0];if(u!==void 0)return o.linePos(u).line}}}function A(n){try{return{value:S(n,{schema:y})}}catch{return}}export function readSheetFile(n){if(n.length>SHEET_FILE_MOST)return{problems:[{file:ENTRY,line:1,message:`this file is ${sizeSaid(n.length)}; a sheet's file over ${sizeSaid(SHEET_FILE_MOST)} is not read`}],lineOf:()=>{}};const s=A(n);if(s)return h(m(s.value??{}),a(n));const r=new f,e=p(n,{lineCounter:r,uniqueKeys:!1}),t=O(e);return e.errors.length>0||t.length>0?{problems:[...e.errors.map(o=>({file:ENTRY,line:r.linePos(o.pos[0]).line,message:`not YAML: ${o.message.split(`
3
- `)[0]??""}`})),...t.map(o=>({file:ENTRY,line:r.linePos(o.at).line,message:`not YAML: Map keys must be unique (${o.key})`}))],lineOf:a(n,{doc:e,counter:r})}:h(m(e.toJS()??{}),a(n,{doc:e,counter:r}))}function h(n,s){const r=g("sheet",n);return r.ok?{file:c(r.value),problems:[],lineOf:s}:{...r.partial?{partial:c(r.partial)}:{},problems:r.problems.map(e=>{const t=s(e.path===""?[]:e.path.split(".").map(o=>/^\d+$/u.test(o)?Number(o):o));return{file:ENTRY,...t===void 0?{}:{line:t},message:`${e.path===""?"":`${e.path}: `}${e.message}`}}),lineOf:s}}
2
+ import{readDataFileAsWritten as g}from"@allyhub/formats";import{CORE_SCHEMA as y,load as S}from"js-yaml";import{inPixels as c}from"./units.js";import{LineCounter as f,isMap as k,isScalar as d,parseDocument as p,visit as $}from"yaml";export const ENTRY="sheet.yaml",CODE="sheet.ts";const b={clustered:"clustered",standard:"clustered",stacked:"stacked",percentStacked:"stacked-100"},O={col:"column",column:"column",bar:"bar",area:"area",line:"line"};function m(t){const s=t.sheets;if(!Array.isArray(s))return t;for(const o of s)if(Array.isArray(o.charts))for(const e of o.charts){const r=typeof e.type=="string"?O[e.type]:void 0,n=e.grouping;if(r===void 0||typeof n!="string")continue;const i=b[n];i!==void 0&&(e.type=r==="line"||r==="area"?i==="clustered"?r:`${r}-${i}`:`${r}-${i}`,Reflect.deleteProperty(e,"grouping"))}return t}export const codeOf=t=>readSheetFile(t).file?.code;export function placesOf(t,s){const o=e=>{const r=e===""?[]:e.split("/");for(const n of s.split("/"))if(!(n===""||n==="."))if(n===".."){if(r.length===0)return;r.pop()}else r.push(n);return r.join("/")};return[...new Set([o(t),o("")])].filter(e=>e!==void 0&&e!=="")}export function dataFilesOf(t){const s=readSheetFile(t),o=s.file??s.partial;return[...new Set(o?.sheets.flatMap(e=>[...(e.tables??[]).map(r=>r.rows),...(e.blocks??[]).map(r=>r.rows)])??[])]}function M(t){const s=[];return $(t,{Map(o,e){if(!k(e))return;const r=new Set;for(const n of e.items){const i=d(n.key)?String(n.key.value):void 0;if(i!==void 0)if(r.has(i)){const a=d(n.key)?n.key.range?.[0]??0:0;s.push({at:a,key:i})}else r.add(i)}}}),s}export const SHEET_FILE_MOST=20*1e3*1e3,sizeSaid=t=>`${String(Math.round(t/1e5)/10)} MB`;function l(t,s){let o=s;return e=>{if(o===void 0){const i=new f;o={doc:p(t,{lineCounter:i,uniqueKeys:!1}),counter:i}}const{doc:r,counter:n}=o;for(let i=e.length;i>=0;i--){const u=r.getIn(e.slice(0,i),!0)?.range?.[0];if(u!==void 0)return n.linePos(u).line}}}function w(t){try{return{value:S(t,{schema:y})}}catch{return}}export function readSheetFile(t){if(t.length>SHEET_FILE_MOST)return{problems:[{file:ENTRY,line:1,message:`this file is ${sizeSaid(t.length)}; a sheet's file over ${sizeSaid(SHEET_FILE_MOST)} is not read`}],lineOf:()=>{}};const s=w(t);if(s)return h(m(s.value??{}),l(t));const o=new f,e=p(t,{lineCounter:o,uniqueKeys:!1}),r=M(e);return e.errors.length>0||r.length>0?{problems:[...e.errors.map(n=>({file:ENTRY,line:o.linePos(n.pos[0]).line,message:`not YAML: ${n.message.split(`
3
+ `)[0]??""}`})),...r.map(n=>({file:ENTRY,line:o.linePos(n.at).line,message:`not YAML: Map keys must be unique (${n.key})`}))],lineOf:l(t,{doc:e,counter:o})}:h(m(e.toJS()??{}),l(t,{doc:e,counter:o}))}function h(t,s){const o=g("sheet",t),e=n=>{const i=s(n.path===""?[]:n.path.split(".").map(a=>/^\d+$/u.test(a)?Number(a):a));return{file:ENTRY,...i===void 0?{}:{line:i},message:`${n.path===""?"":`${n.path}: `}${n.message}`}},r=(o.leftOut??[]).map(n=>({...e(n),level:"warn"}));return o.ok?{file:c(o.value),problems:r,lineOf:s}:{...o.partial?{partial:c(o.partial)}:{},problems:[...o.problems.map(e),...r],lineOf:s}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/sheet",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{createHash as b}from"node:crypto";import{readFile as F}from"node:fs/promises";import{join as N,posix as S}from"node:path";import{problem as J}from"@allyhub/diagnostics";import{sdkEntriesOf as j}from"@allyhub/build";import{cellName as k,chartFormula as C,checkWorkbook as E,readCells as A,readSheetFile as D,seededRandom as L,SharedFormula as M,tableRows as $,textOf as O,CellError as R}from"@allyhub/sheet";import W from"./build-plugins.js";import{readSheetSource as x,sheetCodeOf as H,sheetFilePath as K,workbookFiles as P}from"./code.js";export const LEND={sdk:j(W)};function T(o,t,l,i,h){const n={};for(const e of l.tables){const a=$(i,e),d=$(i,e,{values:"shown"}),c=b("sha256").update(h).update(JSON.stringify(a)).update(JSON.stringify(d)).digest("hex");n[`${o}#${e.name}`]={sha256:c,value:a,shown:d},n[`${t}#${e.name}`]={sha256:c,value:a,shown:d}}const m=(e,a,d)=>{const c=b("sha256").update(h).update(e).update(JSON.stringify(a)).update(JSON.stringify(d)).digest("hex");n[`${o}#${e}`]={sha256:c,value:a,shown:d},n[`${t}#${e}`]={sha256:c,value:a,shown:d}};for(const e of l.names.values()){if(e.hidden===!0||e.sheet!==void 0)continue;const a=new M(C(e.name),0,0,e.source),d=l.sheets[0];if(!a.node||!d)continue;const c=A(i,d,a),g=c.map(r=>v(r.value)),u=c.map(O);c.length===1?m(e.name,g[0],u[0]):c.length>1&&m(e.name,g,u)}for(const e of l.sheets){const a=e.used;if(!a)continue;const d=l.tables.filter(r=>r.sheet===e).map(r=>r.area),c=(r,f)=>d.some(p=>r>=p.top&&r<=p.bottom&&f>=p.left&&f<=p.right),g={},u={};for(let r=a.top;r<=a.bottom;r++)for(let f=a.left;f<=a.right;f++){if(c(r,f))continue;const p=i.value(e,r,f);if(p===null)continue;const s=k({row:r,col:f});g[s]=v(p),u[s]=O({value:p,sheet:e,row:r,col:f})}Object.keys(g).length>0&&m(`${e.name}!`,g,u)}return n}const v=o=>o instanceof R?o.code:o;async function w(o,t,l){const i=[],h=t.entry,n=await x(o,h,l?{meta:l}:{lend:LEND}).catch(()=>{});if(!n)return{};i.push(...n.problems);const{csv:m,generated:e}=n,a=b("sha256").update(n.text);for(const s of m.values())a.update(s);e&&a.update(JSON.stringify(e));const d=a.digest("hex"),c=E(P(o,n),{random:L(d)}),g=K(n);for(const s of c.problems){const y=g(s.file);i.push(J("AK-M009",`${y}${s.line===void 0?"":`:${String(s.line)}`}: ${s.message}.`,{where:{file:y,...s.line===void 0?{}:{line:s.line}}}))}const{workbook:u,calc:r}=c,f=u?.title?.trim();return{sheet:{dir:t.dir,place:t.id,file:h,...f?{title:f}:{},sheets:u?.sheets.map(s=>s.name)??[],tables:u?.tables.map(s=>({name:s.name,rows:s.rows}))??[],files:[h,...[...m.keys()].map(s=>n.at.get(s)??S.join(t.dir,s)),...n.code===void 0?[]:[n.code]],...e?{generated:e}:{},...n.failed?{codeFailed:!0}:{}},problems:i,files:[...[...m.keys()].map(s=>({path:n.at.get(s)??S.join(t.dir,s),role:"table"})),...n.code===void 0?[]:[{path:n.code,role:"code"}]],...u&&r?{data:T(t.id,h,u,r,d)}:{}}}export async function readSheets(o,t,l){const i=[],h=[];let n={};for(const m of t){const e=await w(o,m,l);e.sheet&&i.push(e.sheet),h.push(...e.problems??[]),n={...n,...e.data}}return{sheets:i,problems:h,data:n}}const V={lend:(o,t)=>w(t.root,o,t.meta),code:async(o,t)=>{const l=await F(N(t.root,o.entry),"utf8").catch(()=>"");if(H(o.entry,l)===void 0)return{failed:!1};const i=await x(t.root,o.entry,{lend:t.lend}).catch(()=>{});return{failed:i?.failed??!0,...i?.generated?{value:i.generated}:{}}},unreadable:o=>D(o).problems.filter(t=>t.message.startsWith("not YAML")).map(t=>t.message),render:async(o,t)=>(await import("./export.js")).renderSheet(o,t)};export default V;
2
+ import{createHash as b}from"node:crypto";import{readFile as F}from"node:fs/promises";import{join as N,posix as S}from"node:path";import{problem as J}from"@allyhub/diagnostics";import{sdkEntriesOf as j}from"@allyhub/build";import{cellName as k,chartFormula as C,checkWorkbook as E,readCells as A,readSheetFile as D,seededRandom as L,SharedFormula as M,tableRows as $,textOf as v,CellError as R}from"@allyhub/sheet";import W from"./build-plugins.js";import{readSheetSource as O,sheetCodeOf as H,sheetFilePath as K,workbookFiles as P}from"./code.js";export const LEND={sdk:j(W)};function T(o,t,c,i,h){const s={};for(const e of c.tables){const a=$(i,e),l=$(i,e,{values:"shown"}),d=b("sha256").update(h).update(JSON.stringify(a)).update(JSON.stringify(l)).digest("hex");s[`${o}#${e.name}`]={sha256:d,value:a,shown:l},s[`${t}#${e.name}`]={sha256:d,value:a,shown:l}}const m=(e,a,l)=>{const d=b("sha256").update(h).update(e).update(JSON.stringify(a)).update(JSON.stringify(l)).digest("hex");s[`${o}#${e}`]={sha256:d,value:a,shown:l},s[`${t}#${e}`]={sha256:d,value:a,shown:l}};for(const e of c.names.values()){if(e.hidden===!0||e.sheet!==void 0)continue;const a=new M(C(e.name),0,0,e.source),l=c.sheets[0];if(!a.node||!l)continue;const d=A(i,l,a),g=d.map(r=>x(r.value)),u=d.map(v);d.length===1?m(e.name,g[0],u[0]):d.length>1&&m(e.name,g,u)}for(const e of c.sheets){const a=e.used;if(!a)continue;const l=c.tables.filter(r=>r.sheet===e).map(r=>r.area),d=(r,f)=>l.some(p=>r>=p.top&&r<=p.bottom&&f>=p.left&&f<=p.right),g={},u={};for(let r=a.top;r<=a.bottom;r++)for(let f=a.left;f<=a.right;f++){if(d(r,f))continue;const p=i.value(e,r,f);if(p===null)continue;const n=k({row:r,col:f});g[n]=x(p),u[n]=v({value:p,sheet:e,row:r,col:f})}Object.keys(g).length>0&&m(`${e.name}!`,g,u)}return s}const x=o=>o instanceof R?o.code:o;async function w(o,t,c){const i=[],h=t.entry,s=await O(o,h,c?{meta:c}:{lend:LEND}).catch(()=>{});if(!s)return{};i.push(...s.problems);const{csv:m,generated:e}=s,a=b("sha256").update(s.text);for(const n of m.values())a.update(n);e&&a.update(JSON.stringify(e));const l=a.digest("hex"),d=E(P(o,s),{random:L(l)}),g=K(s);for(const n of d.problems){const y=g(n.file);i.push(J("AK-M009",`${y}${n.line===void 0?"":`:${String(n.line)}`}: ${n.message}.`,{where:{file:y,...n.line===void 0?{}:{line:n.line}},...n.level===void 0?{}:{level:n.level}}))}const{workbook:u,calc:r}=d,f=u?.title?.trim();return{sheet:{dir:t.dir,place:t.id,file:h,...f?{title:f}:{},sheets:u?.sheets.map(n=>n.name)??[],tables:u?.tables.map(n=>({name:n.name,rows:n.rows}))??[],files:[h,...[...m.keys()].map(n=>s.at.get(n)??S.join(t.dir,n)),...s.code===void 0?[]:[s.code]],...e?{generated:e}:{},...s.failed?{codeFailed:!0}:{}},problems:i,files:[...[...m.keys()].map(n=>({path:s.at.get(n)??S.join(t.dir,n),role:"table"})),...s.code===void 0?[]:[{path:s.code,role:"code"}]],...u&&r?{data:T(t.id,h,u,r,l)}:{}}}export async function readSheets(o,t,c){const i=[],h=[];let s={};for(const m of t){const e=await w(o,m,c);e.sheet&&i.push(e.sheet),h.push(...e.problems??[]),s={...s,...e.data}}return{sheets:i,problems:h,data:s}}const V={lend:(o,t)=>w(t.root,o,t.meta),code:async(o,t)=>{const c=await F(N(t.root,o.entry),"utf8").catch(()=>"");if(H(o.entry,c)===void 0)return{failed:!1};const i=await O(t.root,o.entry,{lend:t.lend}).catch(()=>{});return{failed:i?.failed??!0,...i?.generated?{value:i.generated}:{}}},unreadable:o=>D(o).problems.filter(t=>t.message.startsWith("not YAML")).map(t=>t.message),render:async(o,t)=>(await import("./export.js")).renderSheet(o,t)};export default V;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/sheet-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./code": {
@@ -1,4 +1,4 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readDataFileAsWritten as A}from"@allyhub/formats";import{isCollection as $,isMap as b,isSeq as j,LineCounter as M,parseDocument as x}from"yaml";import{commonPairs as P,sameValue as O}from"./values.js";export function readSlidesFile(t){const e=new M,s=x(t,{lineCounter:e}),o=c=>{const g=c===""?[]:c.split(".");for(let p=g.length;p>=0;p--){const S=s.getIn(g.slice(0,p).map(y=>/^\d+$/u.test(y)?Number(y):y),!0)?.range?.[0];if(S!==void 0)return e.linePos(S).line}};if(s.errors.length>0)return{problems:s.errors.map(c=>({path:"",line:e.linePos(c.pos[0]).line,message:`not YAML: ${c.message.split(`
3
- `)[0]??""}`})),lineOf:o};const l=s.toJS()??{},r=A("slides",l);if(r.ok)return{file:r.value,readable:{file:r.value,lineOf:o},problems:[],lineOf:o};const n=[],h=(c,g)=>{const p=o(c);n.push({path:c,...p===void 0?{}:{line:p},message:g})},a=(c,g)=>{h(c,w(g,T(l,c)))},i=typeof l=="object"&&l!==null&&"slides"in l?l.slides:void 0,d=Array.isArray(i)?i:[],u=A("slides",{...l,...Array.isArray(i)?{slides:[]}:{}});if(!u.ok)for(const c of u.problems)a(c.path,c.message);const f=[],k=[],m=new Set;return d.forEach((c,g)=>{const p=A("slides",{slides:[c]});if(!p.ok)for(const y of p.problems)a(y.path.replace(/^slides\.0(?=\.|$)/u,`slides.${String(g)}`),y.message);const v=typeof c=="object"&&c!==null&&"id"in c?c.id:void 0;if(typeof v=="string"){if(m.has(v)){h(`slides.${String(g)}.id`,`Two slides are "${v}".`);return}m.add(v)}const[S]=p.ok?p.value.slides:[];S&&(f.push(S),k.push(g))}),{readable:{file:{slides:f},lineOf:c=>o(c.replace(/^slides\.(\d+)/u,(g,p)=>`slides.${String(k[Number(p)]??p)}`))},problems:n,lineOf:o}}function T(t,e){let s=t;for(const o of e===""?[]:e.split(".")){if(typeof s!="object"||s===null)return;s=s[o]}return s}const w=(t,e)=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"?`${t.replace(/\.$/u,"")} (it is ${JSON.stringify(e)}).`:t,E=`slides: []
4
- `;function C(t){let e=t.get("slides",!0);if(j(e)||(b(t.contents)?t.set("slides",t.createNode([])):t.contents=t.createNode({slides:[]}),e=t.get("slides",!0)),!j(e))throw new Error("The slides file has no slides list.");return e}const N=(t,e)=>t.findIndex(s=>b(s)&&s.get("id")===e),_=["frame","text","fill","line","z","crop","connect"];export function editSlidesFile(t,e){const s=x(t===void 0||t.trim()===""?E:t);if(s.errors.length>0)throw new Error("The slides file is not YAML: it is mended by hand first.");return editSlidesDocument(s,e)?s.toString():t??E}export function editSlidesDocument(t,e){const s=C(t),o=a=>{if(a===null)return 0;const i=a===void 0?-1:N(s.items,a);return i<0?s.items.length:i+1};if(e.op==="add")return N(s.items,e.slide.id)>=0||(s.items.splice(o(e.after),0,t.createNode(e.slide)),s.flow===!0&&(s.flow=!1)),!0;const l=N(s.items,e.slide),r=s.items[l];if(l<0||!b(r))return!1;const n=a=>{let i=r.get("shapes",!0);return!b(i)&&a&&(r.set("shapes",t.createNode({})),i=r.get("shapes",!0)),b(i)?i:void 0},h=a=>{const i=n(!1);if(i){for(const d of a){const u=i.get(d,!0);b(u)&&u.items.length===0&&i.delete(d)}i.items.length===0&&r.delete("shapes")}};switch(e.op){case"move":{if(e.after===e.slide)break;s.items.splice(l,1),s.items.splice(o(e.after),0,r);break}case"duplicate":{const a=r.clone();a.set("id",e.id),a.delete("section"),s.items.splice(l+1,0,a);break}case"remove":s.items.splice(l,1);break;case"layout":r.set("layout",e.layout);break;case"hidden":e.hidden===!1||Array.isArray(e.hidden)&&e.hidden.length===0?r.delete("hidden"):r.set("hidden",t.createNode(e.hidden));break;case"shape":{const a=n(!0);if(!a)break;let i=a.get(e.shape,!0);if(b(i)||(a.set(e.shape,t.createNode({})),i=a.get(e.shape,!0)),!b(i))break;for(const[d,u]of Object.entries(e.set)){const f=d.split(".");if(u===void 0){i.deleteIn(f);const k=f.length>1?i.getIn(f.slice(0,-1),!0):void 0;b(k)&&k.items.length===0&&i.deleteIn(f.slice(0,-1))}else{const k=i.getIn(f,!0),m=t.createNode(u);$(k)&&$(m)&&k.flow===!0&&(m.flow=!0),i.setIn(f,m)}}h([e.shape]);break}case"unplace":{n(!1)?.delete(e.shape),h([]);break}case"show":{if(!e.shown){n(!1)?.delete(e.shape),h([]);break}const a=n(!0);a&&!a.has(e.shape)&&a.set(e.shape,t.createNode({}));break}case"background":e.background===void 0?r.delete("background"):r.set("background",t.createNode(e.background));break;case"animations":e.animations.length===0?r.delete("animations"):r.set("animations",t.createNode(e.animations));break;case"transition":e.transition===void 0?r.delete("transition"):r.set("transition",t.createNode(e.transition));break;case"advance":e.after===void 0?r.delete("advance_after"):r.set("advance_after",e.after);break;case"section":e.section===void 0?r.delete("section"):r.set("section",e.section);break;case"reset":{const a=n(!1);if(!a)break;const i=[];for(const d of a.items){const u=String(b(d.key)?"":d.key.value??d.key);if(e.shape!==void 0&&u!==e.shape)continue;const f=d.value;if(!(!b(f)||["textbox","picture","movie","audio","geometry","component"].some(m=>f.has(m))||!_.some(m=>f.has(m)))){for(const m of _)f.delete(m);i.push(u)}}h(i);break}}return!0}export function freeName(t,e){const s=new Set(t),o=e.replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"")||"slide";if(!s.has(o))return o;for(let l=2;;l++){const r=`${o}-${String(l)}`;if(!s.has(r))return r}}const D=new Set(["text","props","crop"]);function I(t){const e=new Map;for(const[s,o]of Object.entries(t??{}))if(D.has(s)&&typeof o=="object"&&o!==null&&!Array.isArray(o))for(const[l,r]of Object.entries(o))e.set(`${s}.${l}`,r);else e.set(s,o);return e}const F=(t,e)=>new Set(P(t,e).map(([s])=>t[s]??""));function L(t,e){const s=[],o=e.id;e.layout!==void 0&&e.layout!==t.layout&&s.push({op:"layout",slide:o,layout:e.layout}),O(t.hidden,e.hidden)||s.push({op:"hidden",slide:o,hidden:e.hidden??!1}),O(t.animations??[],e.animations??[])||s.push({op:"animations",slide:o,animations:e.animations??[]}),O(t.transition,e.transition)||s.push({op:"transition",slide:o,...e.transition?{transition:e.transition}:{}}),t.advance_after!==e.advance_after&&s.push({op:"advance",slide:o,...e.advance_after===void 0?{}:{after:e.advance_after}}),t.section!==e.section&&s.push({op:"section",slide:o,...e.section===void 0?{}:{section:e.section}}),O(t.background,e.background)||s.push({op:"background",slide:o,...e.background?{background:e.background}:{}});const l=t.shapes??{},r=e.shapes??{};for(const n of Object.keys(l))n in r||s.push({op:"unplace",slide:o,shape:n});for(const[n,h]of Object.entries(r)){const a=I(l[n]),i=I(h),d={};for(const f of new Set([...a.keys(),...i.keys()]))O(a.get(f),i.get(f))||(d[f]=i.get(f));Object.keys(d).length>0&&s.push({op:"shape",slide:o,shape:n,set:d});const u=l[n];Object.keys(h).length===0&&(u===void 0||Object.keys(u).length>0)&&s.push({op:"show",slide:o,shape:n,shown:!0})}return s}export function slidesEdits(t,e){const s=[],o=new Map(t.slides.map(n=>[n.id,n])),l=new Set(e.slides.map(n=>n.id));for(const n of t.slides)l.has(n.id)||s.push({op:"remove",slide:n.id});const r=F(t.slides.map(n=>n.id).filter(n=>l.has(n)),e.slides.map(n=>n.id).filter(n=>o.has(n)));return e.slides.forEach((n,h)=>{const a=h===0?null:e.slides[h-1]?.id??null,i=o.get(n.id);if(!i||i.generate!==n.generate){i&&s.push({op:"remove",slide:n.id}),s.push({op:"add",slide:n,after:a});return}r.has(n.id)||s.push({op:"move",slide:n.id,after:a}),s.push(...L(i,n))}),s}
2
+ import{readDataFileAsWritten as N}from"@allyhub/formats";import{isCollection as x,isMap as b,isSeq as E,LineCounter as P,parseDocument as _}from"yaml";import{commonPairs as T,sameValue as S}from"./values.js";export function readSlidesFile(t){const e=new P,s=_(t,{lineCounter:e}),i=c=>{const m=c===""?[]:c.split(".");for(let u=m.length;u>=0;u--){const k=s.getIn(m.slice(0,u).map(O=>/^\d+$/u.test(O)?Number(O):O),!0)?.range?.[0];if(k!==void 0)return e.linePos(k).line}};if(s.errors.length>0)return{problems:s.errors.map(c=>({path:"",line:e.linePos(c.pos[0]).line,message:`not YAML: ${c.message.split(`
3
+ `)[0]??""}`})),lineOf:i};const l=s.toJS()??{},r=N("slides",l),n=(c,m=u=>u)=>(c.leftOut??[]).map(u=>{const v=m(u.path),k=i(v);return{path:v,...k===void 0?{}:{line:k},message:u.message,level:"warn"}});if(r.ok)return{file:r.value,readable:{file:r.value,lineOf:i},problems:n(r),lineOf:i};const p=[],a=(c,m)=>{const u=i(c);p.push({path:c,...u===void 0?{}:{line:u},message:m})},o=(c,m)=>{a(c,D(m,C(l,c)))},d=typeof l=="object"&&l!==null&&"slides"in l?l.slides:void 0,h=Array.isArray(d)?d:[],f=N("slides",{...l,...Array.isArray(d)?{slides:[]}:{}});if(!f.ok)for(const c of f.problems)o(c.path,c.message);p.push(...n(f));const y=[],g=[],j=new Set;return h.forEach((c,m)=>{const u=N("slides",{slides:[c]}),v=A=>A.replace(/^slides\.0(?=\.|$)/u,`slides.${String(m)}`);if(!u.ok)for(const A of u.problems)o(v(A.path),A.message);p.push(...n(u,v));const k=typeof c=="object"&&c!==null&&"id"in c?c.id:void 0;if(typeof k=="string"){if(j.has(k)){a(`slides.${String(m)}.id`,`Two slides are "${k}".`);return}j.add(k)}const[O]=u.ok?u.value.slides:[];O&&(y.push(O),g.push(m))}),{readable:{file:{slides:y},lineOf:c=>i(c.replace(/^slides\.(\d+)/u,(m,u)=>`slides.${String(g[Number(u)]??u)}`))},problems:p,lineOf:i}}function C(t,e){let s=t;for(const i of e===""?[]:e.split(".")){if(typeof s!="object"||s===null)return;s=s[i]}return s}const D=(t,e)=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"?`${t.replace(/\.$/u,"")} (it is ${JSON.stringify(e)}).`:t,I=`slides: []
4
+ `;function F(t){let e=t.get("slides",!0);if(E(e)||(b(t.contents)?t.set("slides",t.createNode([])):t.contents=t.createNode({slides:[]}),e=t.get("slides",!0)),!E(e))throw new Error("The slides file has no slides list.");return e}const $=(t,e)=>t.findIndex(s=>b(s)&&s.get("id")===e),M=["frame","text","fill","line","z","crop","connect"];export function editSlidesFile(t,e){const s=_(t===void 0||t.trim()===""?I:t);if(s.errors.length>0)throw new Error("The slides file is not YAML: it is mended by hand first.");return editSlidesDocument(s,e)?s.toString():t??I}export function editSlidesDocument(t,e){const s=F(t),i=a=>{if(a===null)return 0;const o=a===void 0?-1:$(s.items,a);return o<0?s.items.length:o+1};if(e.op==="add")return $(s.items,e.slide.id)>=0||(s.items.splice(i(e.after),0,t.createNode(e.slide)),s.flow===!0&&(s.flow=!1)),!0;const l=$(s.items,e.slide),r=s.items[l];if(l<0||!b(r))return!1;const n=a=>{let o=r.get("shapes",!0);return!b(o)&&a&&(r.set("shapes",t.createNode({})),o=r.get("shapes",!0)),b(o)?o:void 0},p=a=>{const o=n(!1);if(o){for(const d of a){const h=o.get(d,!0);b(h)&&h.items.length===0&&o.delete(d)}o.items.length===0&&r.delete("shapes")}};switch(e.op){case"move":{if(e.after===e.slide)break;s.items.splice(l,1),s.items.splice(i(e.after),0,r);break}case"duplicate":{const a=r.clone();a.set("id",e.id),a.delete("section"),s.items.splice(l+1,0,a);break}case"remove":s.items.splice(l,1);break;case"layout":r.set("layout",e.layout);break;case"hidden":e.hidden===!1||Array.isArray(e.hidden)&&e.hidden.length===0?r.delete("hidden"):r.set("hidden",t.createNode(e.hidden));break;case"shape":{const a=n(!0);if(!a)break;let o=a.get(e.shape,!0);if(b(o)||(a.set(e.shape,t.createNode({})),o=a.get(e.shape,!0)),!b(o))break;for(const[d,h]of Object.entries(e.set)){const f=d.split(".");if(h===void 0){o.deleteIn(f);const y=f.length>1?o.getIn(f.slice(0,-1),!0):void 0;b(y)&&y.items.length===0&&o.deleteIn(f.slice(0,-1))}else{const y=o.getIn(f,!0),g=t.createNode(h);x(y)&&x(g)&&y.flow===!0&&(g.flow=!0),o.setIn(f,g)}}p([e.shape]);break}case"unplace":{n(!1)?.delete(e.shape),p([]);break}case"show":{if(!e.shown){n(!1)?.delete(e.shape),p([]);break}const a=n(!0);a&&!a.has(e.shape)&&a.set(e.shape,t.createNode({}));break}case"background":e.background===void 0?r.delete("background"):r.set("background",t.createNode(e.background));break;case"animations":e.animations.length===0?r.delete("animations"):r.set("animations",t.createNode(e.animations));break;case"transition":e.transition===void 0?r.delete("transition"):r.set("transition",t.createNode(e.transition));break;case"advance":e.after===void 0?r.delete("advance_after"):r.set("advance_after",e.after);break;case"section":e.section===void 0?r.delete("section"):r.set("section",e.section);break;case"reset":{const a=n(!1);if(!a)break;const o=[];for(const d of a.items){const h=String(b(d.key)?"":d.key.value??d.key);if(e.shape!==void 0&&h!==e.shape)continue;const f=d.value;if(!(!b(f)||["textbox","picture","movie","audio","geometry","component"].some(g=>f.has(g))||!M.some(g=>f.has(g)))){for(const g of M)f.delete(g);o.push(h)}}p(o);break}}return!0}export function freeName(t,e){const s=new Set(t),i=e.replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"")||"slide";if(!s.has(i))return i;for(let l=2;;l++){const r=`${i}-${String(l)}`;if(!s.has(r))return r}}const L=new Set(["text","props","crop"]);function w(t){const e=new Map;for(const[s,i]of Object.entries(t??{}))if(L.has(s)&&typeof i=="object"&&i!==null&&!Array.isArray(i))for(const[l,r]of Object.entries(i))e.set(`${s}.${l}`,r);else e.set(s,i);return e}const Y=(t,e)=>new Set(T(t,e).map(([s])=>t[s]??""));function z(t,e){const s=[],i=e.id;e.layout!==void 0&&e.layout!==t.layout&&s.push({op:"layout",slide:i,layout:e.layout}),S(t.hidden,e.hidden)||s.push({op:"hidden",slide:i,hidden:e.hidden??!1}),S(t.animations??[],e.animations??[])||s.push({op:"animations",slide:i,animations:e.animations??[]}),S(t.transition,e.transition)||s.push({op:"transition",slide:i,...e.transition?{transition:e.transition}:{}}),t.advance_after!==e.advance_after&&s.push({op:"advance",slide:i,...e.advance_after===void 0?{}:{after:e.advance_after}}),t.section!==e.section&&s.push({op:"section",slide:i,...e.section===void 0?{}:{section:e.section}}),S(t.background,e.background)||s.push({op:"background",slide:i,...e.background?{background:e.background}:{}});const l=t.shapes??{},r=e.shapes??{};for(const n of Object.keys(l))n in r||s.push({op:"unplace",slide:i,shape:n});for(const[n,p]of Object.entries(r)){const a=w(l[n]),o=w(p),d={};for(const f of new Set([...a.keys(),...o.keys()]))S(a.get(f),o.get(f))||(d[f]=o.get(f));Object.keys(d).length>0&&s.push({op:"shape",slide:i,shape:n,set:d});const h=l[n];Object.keys(p).length===0&&(h===void 0||Object.keys(h).length>0)&&s.push({op:"show",slide:i,shape:n,shown:!0})}return s}export function slidesEdits(t,e){const s=[],i=new Map(t.slides.map(n=>[n.id,n])),l=new Set(e.slides.map(n=>n.id));for(const n of t.slides)l.has(n.id)||s.push({op:"remove",slide:n.id});const r=Y(t.slides.map(n=>n.id).filter(n=>l.has(n)),e.slides.map(n=>n.id).filter(n=>i.has(n)));return e.slides.forEach((n,p)=>{const a=p===0?null:e.slides[p-1]?.id??null,o=i.get(n.id);if(!o||o.generate!==n.generate){o&&s.push({op:"remove",slide:n.id}),s.push({op:"add",slide:n,after:a});return}r.has(n.id)||s.push({op:"move",slide:n.id,after:a}),s.push(...z(o,n))}),s}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/slides-core",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as I}from"node:fs/promises";import{join as N,posix as f}from"node:path";import{problem as y}from"@allyhub/diagnostics";import{besideModule as K,deckReferences as U,loadFailure as D,mergeScript as B,messagePrefix as H,nodeStackPlace as M,parseComponentRef as L,pieceLocales as W,readScripts as G,referenceModule as J,resolveDims as Q,resolveMatrix as V,stageName as X}from"@allyhub/build";import{USE_FORMS as j,shownOf as Y}from"@allyhub/formats";import{checkDeck as Z,readSlidesFile as ee}from"@allyhub/slides-core";import{deckOf as te}from"./deck-info.js";export const DECK_DPI=144;const A=914400;export const deckFormat=([t,s])=>`${String(Math.round(t/A*DECK_DPI))}x${String(Math.round(s/A*DECK_DPI))}`;export async function readDeck(t,s){const r=[],i=t.id,u=s.claim(i,t.entry);if(u!==void 0)return r.push(y("AK-B001",`${t.entry} and ${u} both have the piece id ${i}.`,{where:{file:t.entry}})),{problems:r};const d=await s.meta.request({type:"run",module:K(import.meta.url,"evaluate"),file:t.entry,input:{files:!0}});if(r.push(...d.problems),!d.ok)return d.error!=="timeout"&&r.push(D(t.entry,d.error??"",M(d.stack,s.root))),{problems:r};const{slides:n,script:k}=d.value;if(n===void 0||k===void 0)return r.push(y("AK-M011",`The deck ${i} names no ${n===void 0?"slides":"script"}: presentation({ slides: "./${f.basename(i)}.yaml", script: "./${f.basename(i)}.{locale}.yaml" }, …) names its slides' file and its script, a file per language, from its module's folder.`,{piece:i,where:{file:t.entry}})),{problems:r};const w=[{path:n,role:"slides"},{path:k,role:"script"}],v=await G(s.root,s.files,k,i);r.push(...v.problems),r.push(...B(s.messages,i,v.scripts));const O=W(s.messages,v.scripts),$=e=>({file:n,...e===void 0?{}:{line:e}});let p,b=()=>{},c;try{c=await I(N(s.root,n),"utf8")}catch{r.push(y("AK-M011",`The deck ${i} names ${n} for its slides, which is not there: write it, its slides listed each on one of ${f.basename(t.entry)}'s layouts (slides: [{ id: cover, layout: Title Slide }]).`,{piece:i,where:{file:n}}))}const m=c===void 0?void 0:ee(c);if(m){b=m.readable?.lineOf??m.lineOf;for(const e of m.problems)r.push(y("AK-M011",`${n}: ${e.message}`,{piece:i,where:$(e.line)}));p=m.readable?.file}const T=r.length,_={slides:p,words:Object.fromEntries(O.map(e=>[e,s.messages.messages[e]??{}])),prefix:H(i),tables:Object.fromEntries(Object.entries(s.lent).map(([e,o])=>[e,o.value])),shown:Object.fromEntries(Object.entries(s.lent).flatMap(([e,o])=>o.shown===void 0?[]:[[e,o.shown]]))},h=await s.meta.request({type:"run",module:K(import.meta.url,"evaluate"),file:t.entry,input:_});if(r.push(...h.problems),!h.ok)return h.error!=="timeout"&&r.push(D(t.entry,h.error??"",M(h.stack,s.root))),{problems:r,files:w};const a=h.value,P=e=>{const o=M(e.stack,s.root);return o?{file:o.file,line:o.line}:$(e.path===void 0?void 0:b(e.path))};for(const e of[...a.problems,...Z(a.resolved,{mediaKind:o=>s.media[o]?.kind})])r.push(y("AK-M011",e.stack===void 0?`${n}: ${e.message}`:e.message,{piece:i,...e.slide===void 0?{}:{part:e.slide},where:P(e)}));if(a.resolved.slides.length===0)return r.length===T&&m?.file&&r.push(y("AK-K003",m.file.slides.length===0?`The deck has no slides: ${n} lists none (slides: [{ id: cover, layout: Title Slide }]).`:`The deck has no slides: ${n} lists only generators, and they made none.`,{piece:i,where:$(b("slides"))})),{problems:r,files:w};const x=Q(void 0,{locales:O}),R=await V({root:s.root,piece:i,file:t.entry,dims:x,matrix:void 0,files:[]}),S=deckFormat(a.size),F={id:i,idFrom:"path",kind:t.kind,dir:t.dir,file:t.entry,place:i,...a.title===void 0?{}:{title:a.title},format:S,formatEntry:S,dims:x,combos:R.combos,options:{},meta:{},script:k,info:{slides:n,...p?{file:p}:{},size:a.size,layouts:a.layouts,components:a.components,generators:a.generators,code:a.code,data:a.data},loads:{kindData:{slides:p??{slides:[]},slidesFile:n,code:a.code}},counts:{value:p??null}},z=f.dirname(n)===f.dirname(t.entry),C=e=>{const o=/[\w#./-]/u;for(let l=z?c?.indexOf(e)??-1:-1;c!==void 0&&l>=0;){const g=c[l-1]??" ",q=c[l+e.length]??" ";if(!o.test(g)&&!o.test(q))return{from:n,line:c.slice(0,l).split(`
3
- `).length};l=c.indexOf(e,l+1)}return{}},E=[...Object.keys(a.data).filter(e=>e.includes("#")&&Y(e)===void 0).map(e=>({of:e,...C(e),types:[j.data],role:"data"})),...a.resolved.slides.flatMap(e=>e.shapes.flatMap(o=>{if(o.kind!=="item"||!o.item)return[];const l=f.relative(f.dirname(n),o.item.path),g=b(o.sources.media?.path??"");return[{of:l.startsWith(".")?l:`./${l}`,from:n,...g===void 0?{}:{line:g},types:[j.live,"wav"],madeFor:["pptx"],role:"item"}]}))];return{problems:r,files:w,...E.length>0?{uses:E}:{},piece:F,stage:se(F,n)}}function se(t,s){const r=f.dirname(t.file),i=U(te(t)?.file).flatMap(u=>{const d=J(r,u),n=L(u);return d!==void 0&&n?[{of:u,module:d,name:n.name}]:[]});return{name:X(t.id),module:t.file,of:s,components:i}}const re={read:readDeck,onStage:!0,checks:[import.meta.resolve("@allyhub/slides-core"),import.meta.resolve("@allyhub/video-measure"),import.meta.resolve("@allyhub/video-core")],still:async(t,s,r)=>new(await import("@allyhub/video-measure")).OpenedFilm(t).still(s,r.format===void 0?{}:{format:r.format}),checkPiece:async t=>(await import("./check.js")).checkDeck(t),ready:async(t,s)=>(await import("./export.js")).deckReady(t,s),render:async(t,s)=>(await import("./export.js")).renderDeck(s)};export default re;
2
+ import{readFile as I}from"node:fs/promises";import{join as N,posix as f}from"node:path";import{problem as y}from"@allyhub/diagnostics";import{besideModule as K,deckReferences as U,loadFailure as D,mergeScript as B,messagePrefix as H,nodeStackPlace as M,parseComponentRef as L,pieceLocales as W,readScripts as G,referenceModule as J,resolveDims as Q,resolveMatrix as V,stageName as X}from"@allyhub/build";import{USE_FORMS as j,shownOf as Y}from"@allyhub/formats";import{checkDeck as Z,readSlidesFile as ee}from"@allyhub/slides-core";import{deckOf as te}from"./deck-info.js";export const DECK_DPI=144;const A=914400;export const deckFormat=([t,s])=>`${String(Math.round(t/A*DECK_DPI))}x${String(Math.round(s/A*DECK_DPI))}`;export async function readDeck(t,s){const n=[],i=t.id,u=s.claim(i,t.entry);if(u!==void 0)return n.push(y("AK-B001",`${t.entry} and ${u} both have the piece id ${i}.`,{where:{file:t.entry}})),{problems:n};const d=await s.meta.request({type:"run",module:K(import.meta.url,"evaluate"),file:t.entry,input:{files:!0}});if(n.push(...d.problems),!d.ok)return d.error!=="timeout"&&n.push(D(t.entry,d.error??"",M(d.stack,s.root))),{problems:n};const{slides:r,script:k}=d.value;if(r===void 0||k===void 0)return n.push(y("AK-M011",`The deck ${i} names no ${r===void 0?"slides":"script"}: presentation({ slides: "./${f.basename(i)}.yaml", script: "./${f.basename(i)}.{locale}.yaml" }, …) names its slides' file and its script, a file per language, from its module's folder.`,{piece:i,where:{file:t.entry}})),{problems:n};const w=[{path:r,role:"slides"},{path:k,role:"script"}],v=await G(s.root,s.files,k,i);n.push(...v.problems),n.push(...B(s.messages,i,v.scripts));const O=W(s.messages,v.scripts),$=e=>({file:r,...e===void 0?{}:{line:e}});let p,b=()=>{},c;try{c=await I(N(s.root,r),"utf8")}catch{n.push(y("AK-M011",`The deck ${i} names ${r} for its slides, which is not there: write it, its slides listed each on one of ${f.basename(t.entry)}'s layouts (slides: [{ id: cover, layout: Title Slide }]).`,{piece:i,where:{file:r}}))}const m=c===void 0?void 0:ee(c);if(m){b=m.readable?.lineOf??m.lineOf;for(const e of m.problems)n.push(y("AK-M011",`${r}: ${e.message}`,{piece:i,where:$(e.line),...e.level===void 0?{}:{level:e.level}}));p=m.readable?.file}const T=n.length,_={slides:p,words:Object.fromEntries(O.map(e=>[e,s.messages.messages[e]??{}])),prefix:H(i),tables:Object.fromEntries(Object.entries(s.lent).map(([e,o])=>[e,o.value])),shown:Object.fromEntries(Object.entries(s.lent).flatMap(([e,o])=>o.shown===void 0?[]:[[e,o.shown]]))},h=await s.meta.request({type:"run",module:K(import.meta.url,"evaluate"),file:t.entry,input:_});if(n.push(...h.problems),!h.ok)return h.error!=="timeout"&&n.push(D(t.entry,h.error??"",M(h.stack,s.root))),{problems:n,files:w};const a=h.value,P=e=>{const o=M(e.stack,s.root);return o?{file:o.file,line:o.line}:$(e.path===void 0?void 0:b(e.path))};for(const e of[...a.problems,...Z(a.resolved,{mediaKind:o=>s.media[o]?.kind})])n.push(y("AK-M011",e.stack===void 0?`${r}: ${e.message}`:e.message,{piece:i,...e.slide===void 0?{}:{part:e.slide},where:P(e)}));if(a.resolved.slides.length===0)return n.length===T&&m?.file&&n.push(y("AK-K003",m.file.slides.length===0?`The deck has no slides: ${r} lists none (slides: [{ id: cover, layout: Title Slide }]).`:`The deck has no slides: ${r} lists only generators, and they made none.`,{piece:i,where:$(b("slides"))})),{problems:n,files:w};const x=Q(void 0,{locales:O}),R=await V({root:s.root,piece:i,file:t.entry,dims:x,matrix:void 0,files:[]}),S=deckFormat(a.size),F={id:i,idFrom:"path",kind:t.kind,dir:t.dir,file:t.entry,place:i,...a.title===void 0?{}:{title:a.title},format:S,formatEntry:S,dims:x,combos:R.combos,options:{},meta:{},script:k,info:{slides:r,...p?{file:p}:{},size:a.size,layouts:a.layouts,components:a.components,generators:a.generators,code:a.code,data:a.data},loads:{kindData:{slides:p??{slides:[]},slidesFile:r,code:a.code}},counts:{value:p??null}},z=f.dirname(r)===f.dirname(t.entry),C=e=>{const o=/[\w#./-]/u;for(let l=z?c?.indexOf(e)??-1:-1;c!==void 0&&l>=0;){const g=c[l-1]??" ",q=c[l+e.length]??" ";if(!o.test(g)&&!o.test(q))return{from:r,line:c.slice(0,l).split(`
3
+ `).length};l=c.indexOf(e,l+1)}return{}},E=[...Object.keys(a.data).filter(e=>e.includes("#")&&Y(e)===void 0).map(e=>({of:e,...C(e),types:[j.data],role:"data"})),...a.resolved.slides.flatMap(e=>e.shapes.flatMap(o=>{if(o.kind!=="item"||!o.item)return[];const l=f.relative(f.dirname(r),o.item.path),g=b(o.sources.media?.path??"");return[{of:l.startsWith(".")?l:`./${l}`,from:r,...g===void 0?{}:{line:g},types:[j.live,"wav"],madeFor:["pptx"],role:"item"}]}))];return{problems:n,files:w,...E.length>0?{uses:E}:{},piece:F,stage:se(F,r)}}function se(t,s){const n=f.dirname(t.file),i=U(te(t)?.file).flatMap(u=>{const d=J(n,u),r=L(u);return d!==void 0&&r?[{of:u,module:d,name:r.name}]:[]});return{name:X(t.id),module:t.file,of:s,components:i}}const ne={read:readDeck,onStage:!0,checks:[import.meta.resolve("@allyhub/slides-core"),import.meta.resolve("@allyhub/video-measure"),import.meta.resolve("@allyhub/video-core")],still:async(t,s,n)=>new(await import("@allyhub/video-measure")).OpenedFilm(t).still(s,n.format===void 0?{}:{format:n.format}),checkPiece:async t=>(await import("./check.js")).checkDeck(t),ready:async(t,s)=>(await import("./export.js")).deckReady(t,s),render:async(t,s)=>(await import("./export.js")).renderDeck(s)};export default ne;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/slides-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tools": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/slides-pptx",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/slides-runtime",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/stage",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/stage-page",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/stage-runtime",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/telemetry",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/text-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-core",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tools": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-measure",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-sdk",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/website",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/website-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tools": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-model",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-view",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/dist/package.json CHANGED
@@ -2,20 +2,20 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@allyhub/3d-extension": "0.21.0",
6
- "@allyhub/canvas-extension": "0.21.0",
7
- "@allyhub/doc-extension": "0.21.0",
8
- "@allyhub/html-extension": "0.21.0",
9
- "@allyhub/image-extension": "0.21.0",
10
- "@allyhub/linkedin-extension": "0.21.0",
11
- "@allyhub/media-extension": "0.21.0",
12
- "@allyhub/office-extension": "0.21.0",
13
- "@allyhub/report-extension": "0.21.0",
14
- "@allyhub/sheet-extension": "0.21.0",
15
- "@allyhub/slides-extension": "0.21.0",
16
- "@allyhub/text-extension": "0.21.0",
17
- "@allyhub/video-extension": "0.21.0",
18
- "@allyhub/website-extension": "0.21.0",
19
- "@allyhub/x-extension": "0.21.0"
5
+ "@allyhub/3d-extension": "0.23.0",
6
+ "@allyhub/canvas-extension": "0.23.0",
7
+ "@allyhub/doc-extension": "0.23.0",
8
+ "@allyhub/html-extension": "0.23.0",
9
+ "@allyhub/image-extension": "0.23.0",
10
+ "@allyhub/linkedin-extension": "0.23.0",
11
+ "@allyhub/media-extension": "0.23.0",
12
+ "@allyhub/office-extension": "0.23.0",
13
+ "@allyhub/report-extension": "0.23.0",
14
+ "@allyhub/sheet-extension": "0.23.0",
15
+ "@allyhub/slides-extension": "0.23.0",
16
+ "@allyhub/text-extension": "0.23.0",
17
+ "@allyhub/video-extension": "0.23.0",
18
+ "@allyhub/website-extension": "0.23.0",
19
+ "@allyhub/x-extension": "0.23.0"
20
20
  }
21
21
  }
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{registerHooks as c}from"node:module";import{pathToFileURL as f}from"node:url";const t=JSON.parse(process.env.ALLYHUB_RUN_LENDING??"null");function a(n){if(/^[./]|^[a-z]+:/iu.test(n))return;const r=n.split("/");return n.startsWith("@")?r.slice(0,2).join("/"):r[0]??void 0}const h=n=>n instanceof Error&&"code"in n&&(n.code==="ERR_MODULE_NOT_FOUND"||n.code==="ERR_PACKAGE_PATH_NOT_EXPORTED");t&&c({resolve(n,r,o){try{return o(n,r)}catch(e){const u=a(n);if(!h(e)||u===void 0)throw e;const d=t.sdk[n];if(d!==void 0)return{url:f(d).href,shortCircuit:!0};const s=l=>({...r,parentURL:l});if(u==="@allyhub/sdk")return o(n,s(t.cli));const i=t.lent[u];if(i!==void 0)return o(n,s(f(i).href));throw e}}});
package/dist/works.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect contrast","inspect seams","inspect loop","inspect combos","inspect uses","audio","add search","add","dev","export"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","export"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect uses","dev","export"],docs:["slides.md","blocks.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","inspect uses","dev","export"],docs:["docs.md","blocks.md"]},{name:"reports",title:"Making a report: a page written freely in HTML, read on a screen and sent as a link",commands:["report style list","report style show","check","dev","export"],docs:["reports.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect uses","sheet","check","dev","export"],docs:["sheets.md","blocks.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","export"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","export","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","export"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","export"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"setup",title:"This computer, the account, AllyHub's skills, this CLI's release and the project's formats",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions","upgrade","migrate"]}];export function withJoined(e,a){const t=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return t.length===0?e:{...e,commands:[...e.commands,...t]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(n=>n.cloud?.works??[])),s=e.cloud.works;return a.filter(n=>n.work!==!1&&(s===void 0?!t.has(n.name):s.includes(n.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,a);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(s=>s.name).join(", ")}`}
2
+ export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect contrast","inspect seams","inspect loop","inspect combos","inspect uses","audio","add search","add","dev","export"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","export"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect uses","dev","export"],docs:["slides.md","blocks.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","inspect uses","dev","export"],docs:["docs.md","blocks.md"]},{name:"reports",title:"Making a report: a page written freely in HTML, read on a screen and sent as a link",commands:["report style list","report style show","check","dev","export"],docs:["reports.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect uses","sheet","run","check","dev","export"],docs:["sheets.md","blocks.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","export"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","export","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","export"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","export"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"scheduled-tasks",title:"A prompt run at set times on your cloud computer, woken for it: each run a new chat, or a message in the chat it continues",commands:["schedule add","schedule list","schedule runs","schedule run","schedule edit","schedule pause","schedule resume","schedule remove"]},{name:"setup",title:"This computer, the account, AllyHub's skills, this CLI's release and the project's formats",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions","upgrade","migrate"]}];export function withJoined(e,a){const t=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return t.length===0?e:{...e,commands:[...e.commands,...t]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(n=>n.cloud?.works??[])),s=e.cloud.works;return a.filter(n=>n.work!==!1&&(s===void 0?!t.has(n.name):s.includes(n.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,a);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(s=>s.name).join(", ")}`}
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-D_W_0X0N.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-DT0xT8Wf.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-CMPBck_Q.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Bkirj-s5.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-B7bZFHzS.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-BDlY4xos.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-Bbfj2q42.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DQ10-Otk.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-D_W_0X0N.js";
1
+ import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-B7bZFHzS.js";