allyhub 0.17.1 → 0.18.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 (217) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/commands/render.js +1 -1
  3. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  4. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  5. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  6. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +7 -4
  7. package/dist/node_modules/@allyhub/build/package.json +1 -1
  8. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  9. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  10. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  11. package/dist/node_modules/@allyhub/check/package.json +1 -1
  12. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +21 -2
  13. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  14. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +1 -1
  15. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
  16. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  17. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  18. package/dist/node_modules/@allyhub/components/package.json +1 -1
  19. package/dist/node_modules/@allyhub/dev-server/dist/offline-page.js +2 -0
  20. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +1 -1
  21. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  22. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  23. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  24. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  25. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  26. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  27. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  28. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  29. package/dist/node_modules/@allyhub/export/package.json +1 -1
  30. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  31. package/dist/node_modules/@allyhub/extension-host/dist/host.js +1 -1
  32. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  33. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  34. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +4 -0
  35. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  36. package/dist/node_modules/@allyhub/html-extension/LICENSE +241 -0
  37. package/dist/node_modules/@allyhub/html-extension/dist/page.js +6 -0
  38. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -0
  39. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +2 -0
  40. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  41. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +15 -0
  42. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +36 -0
  43. package/dist/node_modules/@allyhub/html-extension/package.json +92 -0
  44. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  45. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  46. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  47. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  48. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  49. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  50. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  51. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  52. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +1 -1
  53. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  54. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  55. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  56. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  57. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  58. package/dist/node_modules/@allyhub/media/package.json +1 -1
  59. package/dist/node_modules/@allyhub/media-extension/package.json +2 -1
  60. package/dist/node_modules/@allyhub/model/package.json +1 -1
  61. package/dist/node_modules/@allyhub/office-extension/package.json +4 -1
  62. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  63. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  64. package/dist/node_modules/@allyhub/project/package.json +1 -1
  65. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +3 -2
  66. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  67. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +2 -2
  68. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +1 -1
  69. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +11 -4
  70. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  71. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -7
  72. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  73. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  74. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +2 -2
  75. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  76. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  77. package/dist/node_modules/@allyhub/render/package.json +1 -1
  78. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  79. package/dist/node_modules/@allyhub/runtimes/manifest.json +1 -1
  80. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  81. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  82. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  83. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  84. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  85. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  86. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  87. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  88. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  89. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  90. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  91. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  92. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  93. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  94. package/dist/node_modules/@allyhub/text-extension/package.json +2 -1
  95. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  96. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  97. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  98. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  99. package/dist/node_modules/@allyhub/website/package.json +1 -1
  100. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  101. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  102. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  103. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  104. package/dist/package.json +14 -13
  105. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CHNpVSPv.js → abnfDiagram-WEYOIA3C-Hy4-O0wN.js} +1 -1
  106. package/editor-web/assets/{architecture-WOLXFQ4H-gPsJqQwV.js → architecture-WOLXFQ4H-43JEVxqz.js} +1 -1
  107. package/editor-web/assets/{architectureDiagram-ZHVYKT53-CEIDcC6r.js → architectureDiagram-ZHVYKT53-7bFTl41n.js} +1 -1
  108. package/editor-web/assets/article-CS48wwvk.js +3 -0
  109. package/editor-web/assets/{article-DfELjJ2o.js → article-Cyle57uq.js} +2 -2
  110. package/editor-web/assets/{blockDiagram-RJAE7QA3-CUzEGVet.js → blockDiagram-RJAE7QA3-DcoNo1WH.js} +1 -1
  111. package/editor-web/assets/{c4Diagram-XDPPPE54-CB94NR9s.js → c4Diagram-XDPPPE54-CsMt61gx.js} +1 -1
  112. package/editor-web/assets/channel-HUlo15J7.js +1 -0
  113. package/editor-web/assets/{chunk-2E7WHVMD-DFYo_Boi.js → chunk-2E7WHVMD-fj-TJIRG.js} +1 -1
  114. package/editor-web/assets/{chunk-4EMNKR2T-CLLjmweX.js → chunk-4EMNKR2T-Du5cRy-Y.js} +1 -1
  115. package/editor-web/assets/{chunk-55XCU76K-CkwQ_3m1.js → chunk-55XCU76K-BHXxBBtm.js} +1 -1
  116. package/editor-web/assets/{chunk-7S6XSTFO-V-AvHpAB.js → chunk-7S6XSTFO-R5HW6X5I.js} +1 -1
  117. package/editor-web/assets/{chunk-AQDTSKZB-PjHyYpb8.js → chunk-AQDTSKZB-C98F2BUb.js} +1 -1
  118. package/editor-web/assets/{chunk-DSNLSHJZ-QaczBS3J.js → chunk-DSNLSHJZ-NIGsJ2cK.js} +1 -1
  119. package/editor-web/assets/{chunk-HAGFOTED-aLaQB5Xu.js → chunk-HAGFOTED-BtHxtfW5.js} +1 -1
  120. package/editor-web/assets/{chunk-HNE4Q36P-De3ftDQR.js → chunk-HNE4Q36P-BI8i7Vkk.js} +1 -1
  121. package/editor-web/assets/{chunk-NQOKRVIF-CrhVQyvP.js → chunk-NQOKRVIF-DP_Z_zEA.js} +1 -1
  122. package/editor-web/assets/{chunk-UHW7PFBP-BFmZ5ZLn.js → chunk-UHW7PFBP-C_8bui28.js} +1 -1
  123. package/editor-web/assets/{chunk-VQ5W62QI-CzppUHLA.js → chunk-VQ5W62QI-CKZgzWB2.js} +1 -1
  124. package/editor-web/assets/{chunk-WQQL4CDK-BrAU7V6v.js → chunk-WQQL4CDK-Ff4DgCht.js} +1 -1
  125. package/editor-web/assets/{chunk-YZO67HFG-BSiF71qj.js → chunk-YZO67HFG-Csbx1-pi.js} +1 -1
  126. package/editor-web/assets/{chunk-ZAUX2LTX-BJc4r5b1.js → chunk-ZAUX2LTX-BO1kcV3w.js} +1 -1
  127. package/editor-web/assets/{chunk-ZCHMQSOR-CkGTuehB.js → chunk-ZCHMQSOR-CxeNZYZG.js} +1 -1
  128. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Byxc7J88.js → classDiagram-v2-4MYWR3UA-D8eHQa5i.js} +1 -1
  129. package/editor-web/assets/{cynefin-EF2NZ3EQ-BSxkVbdf.js → cynefin-EF2NZ3EQ-lIUY3WQQ.js} +1 -1
  130. package/editor-web/assets/{cynefinDiagram-WF24UDRP-IkCgARNs.js → cynefinDiagram-WF24UDRP-CFOOhEEs.js} +1 -1
  131. package/editor-web/assets/{dagre-NK4GIZVX-9PgeH6nY.js → dagre-NK4GIZVX-DdHVup2I.js} +1 -1
  132. package/editor-web/assets/deck-CtEtDHo2.js +1 -0
  133. package/editor-web/assets/{diagram-CBK3MWTC-DRzeg3Ds.js → diagram-CBK3MWTC-CFAD9Y2B.js} +1 -1
  134. package/editor-web/assets/{diagram-I5XIIV2D-B_zeKMN6.js → diagram-I5XIIV2D-DZJAn95A.js} +1 -1
  135. package/editor-web/assets/{diagram-ODIL2UCW-FFm0O8SN.js → diagram-ODIL2UCW-BcIeYTaY.js} +1 -1
  136. package/editor-web/assets/{diagram-PFBEJUXE-DrtCT8OA.js → diagram-PFBEJUXE-CnZmh_fl.js} +1 -1
  137. package/editor-web/assets/{diagram-RJA3I4VV-DtxJ3V0q.js → diagram-RJA3I4VV-DpDd9rGx.js} +1 -1
  138. package/editor-web/assets/{diagram-TYUNFSNR-DmxF_8H_.js → diagram-TYUNFSNR-ouGiUQcR.js} +1 -1
  139. package/editor-web/assets/{dist-C56mWAec.js → dist-BBshIz1Q.js} +2 -2
  140. package/editor-web/assets/dist-BI8QjOsV.js +1 -0
  141. package/editor-web/assets/{dist-CEknsRDd.js → dist-BajH5QfK.js} +3 -3
  142. package/editor-web/assets/{dist-CbZAznNW.js → dist-Bl74xqMW.js} +6 -6
  143. package/editor-web/assets/{dist-BUD4ywMB.js → dist-BrUtQth3.js} +7 -7
  144. package/editor-web/assets/{dist-JLyDtl9X.js → dist-CN5A7Au2.js} +1 -1
  145. package/editor-web/assets/{dist-ZZlQa66J.js → dist-CcL6r6l3.js} +1 -1
  146. package/editor-web/assets/{dist-DDzjbKIg.js → dist-D2E3cgRP.js} +1 -1
  147. package/editor-web/assets/{dist-bQKpw3Zz.js → dist-DGKjn59H.js} +3 -3
  148. package/editor-web/assets/{dist-PBbWAsrV.js → dist-NQNQ5HqZ.js} +3 -3
  149. package/editor-web/assets/{dist-CAb3W9_P.js → dist-SV0sOVIC.js} +1 -1
  150. package/editor-web/assets/{dist-C21CkR7Z.js → dist-Y_XZZa8q.js} +7 -7
  151. package/editor-web/assets/dist-ZrBAbqyJ.js +3 -0
  152. package/editor-web/assets/dist-elglzHMT.js +6 -0
  153. package/editor-web/assets/{dist-Dr3o4vee.js → dist-hHcrvNn9.js} +1 -1
  154. package/editor-web/assets/{docx-draw-9Q_fArBC.js → docx-draw-C4aiB8HI.js} +1 -1
  155. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DSX1Aoty.js → ebnfDiagram-V4P3TTPT-HRjVlbUf.js} +1 -1
  156. package/editor-web/assets/{elk-QONTBCTQ-C7gy9q56.js → elk-QONTBCTQ-BFmtKyOf.js} +1 -1
  157. package/editor-web/assets/{erDiagram-KYQIGQAA-CKx_HoY4.js → erDiagram-KYQIGQAA-C9gcGEgK.js} +1 -1
  158. package/editor-web/assets/{esm-BZb5QMQf.js → esm-DzxAod8Q.js} +1 -1
  159. package/editor-web/assets/{eventmodeling-K75KTNOO-DL4HvSrd.js → eventmodeling-K75KTNOO-Bpma5Bdb.js} +1 -1
  160. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +1 -0
  161. package/editor-web/assets/{ganttDiagram-R7GPNTJY-N-AP4slN.js → ganttDiagram-R7GPNTJY-CE5ut4C3.js} +1 -1
  162. package/editor-web/assets/{gitGraph-VSP46ZUC-BKRGJKWm.js → gitGraph-VSP46ZUC-Dva3iGx2.js} +1 -1
  163. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-ClwL7w2_.js → gitGraphDiagram-PDYL7XHY-CJXFsAWp.js} +1 -1
  164. package/editor-web/assets/index-Dvh1t1om.css +2 -0
  165. package/editor-web/assets/{index-DG2nHq4D.js → index-q7X6hdHp.js} +3 -3
  166. package/editor-web/assets/{info-OHQRW6UA-DpcY8t23.js → info-OHQRW6UA-BY0AOfex.js} +1 -1
  167. package/editor-web/assets/{infoDiagram-MVDRKAX5-ChtmtWni.js → infoDiagram-MVDRKAX5-4Up1gMvC.js} +1 -1
  168. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BZNTuG_F.js → ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js} +1 -1
  169. package/editor-web/assets/{journeyDiagram-BOSHW7O7-C3uVmZbL.js → journeyDiagram-BOSHW7O7-BxV09WdR.js} +1 -1
  170. package/editor-web/assets/{kanban-definition-FNSA4HC5-puEhftGG.js → kanban-definition-FNSA4HC5-zTJtIDPG.js} +1 -1
  171. package/editor-web/assets/{mermaid-parser.core-Bw8re-WE.js → mermaid-parser.core-BWT9UQh_.js} +3 -3
  172. package/editor-web/assets/{mermaid.core-Cc2GIqBr.js → mermaid.core-DFf_Vg5X.js} +4 -4
  173. package/editor-web/assets/{mindmap-definition-6OY57UG3-C6MUl_S_.js → mindmap-definition-6OY57UG3-BYexiugS.js} +1 -1
  174. package/editor-web/assets/{packet-JDAUHWVQ-C75RnvC5.js → packet-JDAUHWVQ-DX_kSrI6.js} +1 -1
  175. package/editor-web/assets/{pegDiagram-ECIUJNBX-ChjmsdV4.js → pegDiagram-ECIUJNBX-I3SrcMLp.js} +1 -1
  176. package/editor-web/assets/{pie-XZMESJXO-BaKxJQpj.js → pie-XZMESJXO-BmAFSw3E.js} +1 -1
  177. package/editor-web/assets/{pieDiagram-GNMPY74T-CT2ez8pr.js → pieDiagram-GNMPY74T-DIZKcme5.js} +1 -1
  178. package/editor-web/assets/{props-form-D5oKHfpk.js → props-form-DUFxM5eb.js} +1 -1
  179. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BJItlTfk.js → quadrantDiagram-D57K4MC3-CO3oSqpQ.js} +1 -1
  180. package/editor-web/assets/{radar-ABXABTNO-DnLzBlTo.js → radar-ABXABTNO-D5CkFrrb.js} +1 -1
  181. package/editor-web/assets/{railroad-I3PHUGI6-D5hj6Yv3.js → railroad-I3PHUGI6-BeKY1p0K.js} +1 -1
  182. package/editor-web/assets/{railroad-abnf-LNEFI6M7-DUZlZoPu.js → railroad-abnf-LNEFI6M7-CIYV9_3-.js} +1 -1
  183. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-CDyyDC6d.js → railroad-ebnf-DWYD2UWJ-DN0zDl6d.js} +1 -1
  184. package/editor-web/assets/{railroad-peg-JR7BVNR7-CC3ImNnT.js → railroad-peg-JR7BVNR7-Bd_GcO24.js} +1 -1
  185. package/editor-web/assets/{railroadDiagram-Y72NRBL7-Bjw-8Se5.js → railroadDiagram-Y72NRBL7-DlFoiMhb.js} +1 -1
  186. package/editor-web/assets/{requirementDiagram-EQYSW5RA-CDFnuEIO.js → requirementDiagram-EQYSW5RA-LWAEz8Gy.js} +1 -1
  187. package/editor-web/assets/{sankeyDiagram-SY24JHO5-CQPVLY1w.js → sankeyDiagram-SY24JHO5-B_pZGwUK.js} +1 -1
  188. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BQzuLmBX.js → sequenceDiagram-BLEHNHQU-bNhyCq0C.js} +1 -1
  189. package/editor-web/assets/{session-s1I85rox.js → session-Beijw9EK.js} +1 -1
  190. package/editor-web/assets/snapshots-Dd0Wd_qM.js +1 -0
  191. package/editor-web/assets/{split-7CVjIkSU.js → split-zARio3J8.js} +1 -1
  192. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DOuageUf.js → stateDiagram-v2-A6IESKWZ-DI-oM3qz.js} +1 -1
  193. package/editor-web/assets/{swimlanes-B3ENRKFQ-CXKkok7X.js → swimlanes-B3ENRKFQ-awDmoLdW.js} +1 -1
  194. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +8 -0
  195. package/editor-web/assets/tabs-BHBvbekZ.js +1 -0
  196. package/editor-web/assets/{timeline-definition-JXYKGLGB-DgAjAeZp.js → timeline-definition-JXYKGLGB-CayduPvL.js} +1 -1
  197. package/editor-web/assets/{treeView-D4JQ5SDB-C0Xvnhck.js → treeView-D4JQ5SDB-BVEuNzCO.js} +1 -1
  198. package/editor-web/assets/{treemap-SAJKECNS-aXfKAeSX.js → treemap-SAJKECNS-BOB14HP3.js} +1 -1
  199. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-CvUlBa-L.js → usecaseDiagram-WPOLBNNX-DxT99uaq.js} +1 -1
  200. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-qMJ1iCxs.js → vennDiagram-Q3Y3IDCW-CWUKom-r.js} +1 -1
  201. package/editor-web/assets/{video-DQrjo1TI.js → video-oJ3qa1Qv.js} +1 -1
  202. package/editor-web/assets/{wardley-7MLQ67FV-DEdnH0by.js → wardley-7MLQ67FV-BAQyTneD.js} +1 -1
  203. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js → wardleyDiagram-IVAIDKWA-CiIYz4lZ.js} +1 -1
  204. package/editor-web/assets/{workbook-FSSUiIp9.js → workbook-DznVDqoE.js} +1 -1
  205. package/editor-web/assets/{xychartDiagram-4URNHDU4-DV4bSzTb.js → xychartDiagram-4URNHDU4-D_D5IGmd.js} +1 -1
  206. package/editor-web/index.html +3 -3
  207. package/package.json +2 -2
  208. package/editor-web/assets/article-BHTjq0_Y.js +0 -3
  209. package/editor-web/assets/channel-DCDCx5Es.js +0 -1
  210. package/editor-web/assets/deck-tTzKONci.js +0 -1
  211. package/editor-web/assets/dist-BEpzsYn_.js +0 -6
  212. package/editor-web/assets/dist-DaEbElXI.js +0 -3
  213. package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +0 -1
  214. package/editor-web/assets/index-BedbINE5.css +0 -2
  215. package/editor-web/assets/snapshots-BPJKywuN.js +0 -1
  216. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +0 -8
  217. package/editor-web/assets/tabs-CiF1N-pL.js +0 -1
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{API_PROPOSALS as v,API_VERSION as P,Disposable as b,Emitter as m,ProposalNotEnabledError as E,disposeAll as w}from"@allyhub/extension-api";import{EXTENSION_POINT_ID as $,ExtensionPackageSchema as x}from"@allyhub/formats";import l from"semver";import{z as T}from"zod";import{BUILD_PLUGINS_POINT as O,CLI_COMMANDS as I,CONFIGURATION_POINT as C,CORE_POINTS as S,EDITOR_POINT as k,EXPORT_PROCESSOR_POINT as N,INSPECT_VIEW_POINT as _,KIND_POINT as p,MCP_SERVER_POINT as R,MEDIA_ANALYSIS_POINT as A,PROJECT_TOOL_POINT as D,STAGE_ROUTE_POINT as j,SKILL_POINT as M,analysisTable as V,cliCommandTable as L,fileEditorTable as K,inspectViewTable as F,kindTable as U,mcpServerTable as W,processorTable as G,skillTable as J}from"./points.js";import{settingDefault as z,settingProblem as X}from"./shell.js";function Y(g,e){const t=e.replace(/^workspace:/u,"");return["","*","^","~"].includes(t)||l.validRange(t)===null?!0:l.satisfies(g,t,{includePrerelease:!0})}const B={workspace:"main",ui:"browser",stage:"stage"};export class ExtensionHost{place;apiVersion;locale;storageFor;settingOf;resolveEntry;points;logTo;load;loaded=new Map;order=[];registry=new Map;declared=new Map;grown=new Set;commands=new Map;kindProviders=new Map;commandRegistered=new m;settingChanged=new m;pointChanged=new m;reported=[];activations=[];constructor(e){this.place=e.place,this.apiVersion=e.apiVersion??P,this.locale=e.locale??"en",this.storageFor=e.storageFor??(()=>{}),this.settingOf=e.settings??(()=>{}),this.resolveEntry=e.resolveEntry??((t,i)=>t.includes("://")?new URL(i,t.endsWith("/")?t:`${t}/`).href:`${t.replace(/\/$/u,"")}/${i.replace(/^\.\//u,"")}`),this.points=e.points??S,this.logTo=e.log??(()=>{}),this.load=e.load??(async t=>await import(t))}get problems(){return this.reported}get activationLog(){return this.activations}get extensions(){return this.order.map(e=>this.view(this.must(e)))}extension(e){const t=this.loaded.get(e);return t?this.view(t):void 0}manifest(e){return this.loaded.get(e)?.manifest}kinds(){return U(this.contributions(p),(e,t)=>this.resolveEntry(this.must(e).dir,t),this.contributions(O),this.contributions(D),this.contributions(j),e=>this.pointEntriesOf(e))}fileEditors(){return K(this.contributions(k),(e,t)=>this.resolveEntry(this.must(e).dir,t))}pointEntriesOf(e){const t=[...this.declared].filter(([,i])=>i.extension===e).map(([i])=>i);return t.length===0?void 0:Object.fromEntries(t.map(i=>[i,[...this.contributionsTo(i)]]))}resolved=(e,t)=>this.resolveEntry(this.must(e).dir,t);inspectViews(){return F(this.contributions(_),this.resolved)}cliCommands(){return L(this.contributions(I),this.resolved)}exportProcessors(){return G(this.contributions(N),this.resolved)}mediaAnalyses(){return V(this.contributions(A),this.resolved)}skills(){return J(this.contributions(M),this.resolved)}mcpServers(){return W(this.contributions(R),e=>this.must(e).dir,this.resolved)}contributions(e){return this.registry.get(e.id)??[]}get extensionPoints(){return new Map([...this.declared].map(([e,t])=>[e,{extension:t.extension,about:t.point.about}]))}contributionsTo(e){return(this.registry.get(e)??[]).map(t=>({extension:t.extension,extensionPath:this.must(t.extension).dir,entry:t.entry}))}onDidChangeContributions=this.pointChanged.event;problem(e,t){this.reported.push({extension:e,message:t})}add(e){const t=new Map;for(const s of e){const n=x.safeParse(s.pkg);if(!n.success){this.problem(s.dir,`Its package.json's allyhub field is not a manifest: ${n.error.issues.map(c=>`${c.path.join(".")}: ${c.message}`).join("; ")}.`);continue}const{name:a,version:u,allyhub:r}=n.data,d={...n.data.dependencies,...n.data.optionalDependencies,...n.data.peerDependencies};if(this.loaded.has(r.id)||t.has(r.id)){this.problem(r.id,`Another extension has the id ${r.id}; ${s.dir} is left out.`);continue}if(!l.validRange(r.engines)||!l.satisfies(this.apiVersion,r.engines,{includePrerelease:!0})){this.problem(r.id,`It is built for the extension API ${r.engines}; this host gives ${this.apiVersion}.`);continue}for(const c of r.enabledApiProposals)c in v||this.problem(r.id,`Its enabledApiProposals name "${c}", which this host does not propose (${Object.keys(v).join(", ")||"it proposes none"}); it is ignored.`);r.activationEvents.includes("*")&&this.problem(r.id,'Its activationEvents name "*": an extension activates from what it contributes, and "*" is ignored.'),t.set(r.id,{id:r.id,name:a,version:u,dir:s.dir,manifest:r,ranges:d,active:!1,subscriptions:[]})}const i=new Map,o=(s,n)=>{const a=i.get(s);if(a==="done")return!0;if(a==="out")return!1;if(this.loaded.has(s))return!0;const u=t.get(s);if(!u)return!1;if(a==="visiting")return this.problem(s,`Its dependencies go round: ${[...n,s].join(" → ")}.`),i.set(s,"out"),!1;i.set(s,"visiting");for(const r of u.manifest.extensionDependencies){if(!o(r,[...n,s]))return i.get(s)!=="out"&&this.problem(s,`It needs ${r}, which is not loaded.`),i.set(s,"out"),!1;const d=this.loaded.get(r)??t.get(r),c=d&&u.ranges[d.name];if(d&&c!==void 0&&!Y(d.version,c))return this.problem(s,`It needs ${r} ${c} (${d.name} in its package.json); ${d.version} is loaded.`),i.set(s,"out"),!1}return i.set(s,"done"),this.register(u),!0};this.grown.clear();for(const s of t.keys())o(s,[]);for(const s of this.grown)this.pointChanged.fire(s);this.grown.clear()}declare(e){for(const[t,{about:i,schema:o}]of Object.entries(e.manifest.extensionPoints)){if($.exec(t)?.[1]!==e.id){this.problem(e.id,`extensionPoints.${t}: a point's id is its extension's id, its name and its version (${e.id}/<name>/v<n>).`);continue}let n;try{n=T.fromJSONSchema(o)}catch(a){this.problem(e.id,`extensionPoints.${t}: its schema is not a JSON Schema zod reads: ${a instanceof Error?a.message:String(a)}.`);continue}this.declared.set(t,{extension:e.id,point:{id:t,about:i,entry:n}})}}declaredPointsOf(e){const t=[];for(const i of Object.keys(e.manifest.contributes)){const o=$.exec(i)?.[1];if(o===void 0)continue;if(o!==e.id&&!e.manifest.extensionDependencies.includes(o)){this.problem(e.id,`contributes.${i}: a point of ${o}, which its extensionDependencies do not name; it is left out.`);continue}const s=this.declared.get(i);if(s===void 0){const n=[...this.declared.keys()].filter(a=>a.startsWith(`${o}/`));this.problem(e.id,`contributes.${i}: ${o} declares no such point (${n.length>0?n.join(", "):"it declares none"}); it is left out.`);continue}t.push(s.point)}return t}register(e){const t=new Set(e.manifest.activationEvents.filter(i=>i!=="*"));this.declare(e);for(const i of[...this.points,...this.declaredPointsOf(e)]){const o=e.manifest.contributes[i.id];if(o===void 0)continue;const s=i.entries?i.entries(o):Array.isArray(o)?o.map((a,u)=>[`[${String(u)}]`,a]):"is not a list.";if(typeof s=="string"){this.problem(e.id,`contributes.${i.id}${s.startsWith(".")?"":" "}${s}`);continue}const n=this.registry.get(i.id)??[];for(const[a,u]of s){const r=i.entry.safeParse(u);if(!r.success){this.problem(e.id,`contributes.${i.id}${a}: ${r.error.issues.map(h=>`${h.path.join(".")||"entry"}: ${h.message}`).join("; ")}.`);continue}const d=r.data,c=i.check?.(d,e.id)??[];if(c.length>0){for(const h of c)this.problem(e.id,`contributes.${i.id}${a}: ${h}`);continue}const f=i.key?.(d);if(f!==void 0){const h=n.find(y=>i.key?.(y.entry)===f);if(h){this.problem(e.id,`contributes.${i.id}: ${f} is ${h.extension}'s already; this one is left out.`);continue}}n.push({extension:e.id,entry:d}),this.declared.has(i.id)&&this.grown.add(i.id);for(const h of i.added?.(d,e.id)??[])this.problem(e.id,`contributes.${i.id}${a}: ${h}`);for(const h of i.activation?.(d,this.place)??[])t.add(h)}this.registry.set(i.id,n)}this.loaded.set(e.id,{...e,events:t}),this.order.push(e.id)}must(e){const t=this.loaded.get(e);if(!t)throw new Error(`There is no extension ${e}.`);return t}view(e){return{id:e.id,version:e.version,extensionPath:e.dir,get isActive(){return e.active},get exports(){return e.exports},activate:()=>this.activateExtension(e.id,"api")}}async activate(e){const t=this.order.filter(i=>this.must(i).events.has(e));for(const i of t)try{await this.activateExtension(i,e)}catch{}}async activateWorkspace(e){for(const t of new Set(e))await this.activate(`onKind:${t}`)}async activateExtension(e,t="api"){const i=this.must(e);return i.active?i.exports:(i.activating||(i.activating=(async()=>{for(const n of i.manifest.extensionDependencies)await this.activateExtension(n,`dependency:${e}`);const o=i.manifest[B[this.place]],s=performance.now();try{return o!==void 0&&(i.module=await this.load(this.resolveEntry(i.dir,o)),i.exports=await i.module.activate?.(this.context(i))),i.active=!0,this.activations.push({extension:e,event:t,ms:performance.now()-s}),i.exports}catch(n){const a=n instanceof Error?n.message:String(n);throw this.activations.push({extension:e,event:t,ms:performance.now()-s,error:a}),this.problem(e,`Its activate failed: ${a}`),w(i.subscriptions.splice(0)),i.activating=void 0,n}})()),i.activating)}async deactivate(){for(const e of[...this.order].reverse()){const t=this.must(e);if(t.active){try{await t.module?.deactivate?.()}catch(i){this.problem(e,`Its deactivate failed: ${i instanceof Error?i.message:String(i)}`)}try{w(t.subscriptions.splice(0))}catch(i){this.problem(e,`A disposable of it failed: ${i instanceof Error?i.message:String(i)}`)}t.active=!1,t.activating=void 0,t.exports=void 0}}}context(e){const t={info:i=>{this.logTo("info",e.id,i)},warn:i=>{this.logTo("warn",e.id,i)},error:i=>{this.logTo("error",e.id,i instanceof Error?i.message:i)}};return{id:e.id,version:e.version,extensionPath:e.dir,place:this.place,storagePath:this.storageFor(e.id),subscriptions:e.subscriptions,log:t,allyhub:this.api(e)}}gate(e,t){if(!this.must(e).manifest.enabledApiProposals.includes(t))throw new E(e,t)}own(e,t){if(this.declared.get(t)?.extension!==e)throw new Error(`${e} reads the point ${t}, which it does not declare (extensionPoints): a point is read by its own extension.`)}api(e){const t=()=>this.extensions,i=this.pointChanged.event,o=s=>this.declared.get(s)?.extension;return{version:this.apiVersion,extensions:{getExtension:s=>this.extension(s),get all(){return t()},contributionsTo:s=>(this.own(e.id,s),this.contributionsTo(s)),get onDidChangeContributions(){return s=>i(n=>{o(n)===e.id&&s(n)})}},commands:{registerCommand:(s,n)=>this.registerCommand(e.id,s,n),executeCommand:(s,...n)=>this.executeCommand(s,...n),getCommands:()=>Promise.resolve([...this.commands.keys()]),onDidRegisterCommand:this.commandRegistered.event},kinds:{registerKindProvider:(s,n)=>this.registerKindProvider(e.id,s,n)},settings:{get:s=>this.setting(s),onDidChange:this.settingChanged.event},l10n:{locale:this.locale}}}settingSchema(e){for(const t of this.contributions(C)){const i=t.entry.properties[e];if(i!==void 0)return{extension:t.extension,entry:i}}}setting(e){const t=this.settingSchema(e)?.entry;if(t===void 0)return;const i={...t,type:t.type},o=this.settingOf(e);return o!==void 0&&X(i,o)===void 0?o:z(i)}settingsChanged(e){for(const t of e)this.settingChanged.fire(t)}get commandIds(){return[...this.commands.keys()]}registerCommand(e,t,i){const o=this.commands.get(t);if(o)throw new Error(`The command ${t} is ${o.extension}'s already.`);return this.commands.set(t,{extension:e,handler:i}),this.commandRegistered.fire(t),b.of(()=>{this.commands.get(t)?.handler===i&&this.commands.delete(t)})}async executeCommand(e,...t){this.commands.has(e)||await this.activate(`onCommand:${e}`);const i=this.commands.get(e);if(!i)throw new Error(`There is no command ${e}.`);return await i.handler(...t)}registerKindProvider(e,t,i){if(this.contributions(p).find(s=>s.entry.id===t)?.extension!==e)throw new Error(`${e} registers a provider for the kind "${t}" without contributing it (contributes.kinds).`);if(this.kindProviders.has(t))throw new Error(`The kind "${t}" has a provider already.`);return this.kindProviders.set(t,{extension:e,provider:i}),b.of(()=>{this.kindProviders.get(t)?.provider===i&&this.kindProviders.delete(t)})}async kindProvider(e){if(this.contributions(p).some(t=>t.entry.id===e))return this.kindProviders.has(e)||await this.activate(`onKind:${e}`),this.kindProviders.get(e)?.provider}}
2
+ import{API_PROPOSALS as v,API_VERSION as E,Disposable as b,Emitter as m,ProposalNotEnabledError as T,disposeAll as w}from"@allyhub/extension-api";import{EXTENSION_POINT_ID as $,ExtensionPackageSchema as x}from"@allyhub/formats";import l from"semver";import{z as O}from"zod";import{BUILD_PLUGINS_POINT as I,CLI_COMMANDS as C,CONFIGURATION_POINT as S,CORE_POINTS as k,EDITOR_POINT as N,EXPORT_PROCESSOR_POINT as _,INSPECT_VIEW_POINT as R,KIND_POINT as p,MCP_SERVER_POINT as A,MEDIA_ANALYSIS_POINT as D,PROJECT_TOOL_POINT as y,STAGE_ROUTE_POINT as j,SKILL_POINT as M,analysisTable as V,cliCommandTable as L,fileEditorTable as K,inspectViewTable as F,kindTable as U,mcpServerTable as W,processorTable as G,skillTable as J}from"./points.js";import{settingDefault as z,settingProblem as X}from"./shell.js";function Y(g,e){const t=e.replace(/^workspace:/u,"");return["","*","^","~"].includes(t)||l.validRange(t)===null?!0:l.satisfies(g,t,{includePrerelease:!0})}const B={workspace:"main",ui:"browser",stage:"stage"};export class ExtensionHost{place;apiVersion;locale;storageFor;settingOf;resolveEntry;points;logTo;load;loaded=new Map;order=[];registry=new Map;declared=new Map;grown=new Set;commands=new Map;kindProviders=new Map;commandRegistered=new m;settingChanged=new m;pointChanged=new m;reported=[];activations=[];constructor(e){this.place=e.place,this.apiVersion=e.apiVersion??E,this.locale=e.locale??"en",this.storageFor=e.storageFor??(()=>{}),this.settingOf=e.settings??(()=>{}),this.resolveEntry=e.resolveEntry??((t,i)=>t.includes("://")?new URL(i,t.endsWith("/")?t:`${t}/`).href:`${t.replace(/\/$/u,"")}/${i.replace(/^\.\//u,"")}`),this.points=e.points??k,this.logTo=e.log??(()=>{}),this.load=e.load??(async t=>await import(t))}get problems(){return this.reported}get activationLog(){return this.activations}get extensions(){return this.order.map(e=>this.view(this.must(e)))}extension(e){const t=this.loaded.get(e);return t?this.view(t):void 0}manifest(e){return this.loaded.get(e)?.manifest}kinds(){return U(this.contributions(p),(e,t)=>this.resolveEntry(this.must(e).dir,t),this.contributions(I),this.contributions(y),this.contributions(j),e=>this.pointEntriesOf(e))}projectTools(){return this.contributions(y).map(({extension:e,entry:t})=>({name:t.name,source:t.source,does:t.does,module:this.resolveEntry(this.must(e).dir,t.module),extension:e}))}fileEditors(){return K(this.contributions(N),(e,t)=>this.resolveEntry(this.must(e).dir,t))}pointEntriesOf(e){const t=[...this.declared].filter(([,i])=>i.extension===e).map(([i])=>i);return t.length===0?void 0:Object.fromEntries(t.map(i=>[i,[...this.contributionsTo(i)]]))}resolved=(e,t)=>this.resolveEntry(this.must(e).dir,t);inspectViews(){return F(this.contributions(R),this.resolved)}cliCommands(){return L(this.contributions(C),this.resolved)}exportProcessors(){return G(this.contributions(_),this.resolved)}mediaAnalyses(){return V(this.contributions(D),this.resolved)}skills(){return J(this.contributions(M),this.resolved)}mcpServers(){return W(this.contributions(A),e=>this.must(e).dir,this.resolved)}contributions(e){return this.registry.get(e.id)??[]}get extensionPoints(){return new Map([...this.declared].map(([e,t])=>[e,{extension:t.extension,about:t.point.about}]))}contributionsTo(e){return(this.registry.get(e)??[]).map(t=>({extension:t.extension,extensionPath:this.must(t.extension).dir,entry:t.entry}))}onDidChangeContributions=this.pointChanged.event;problem(e,t){this.reported.push({extension:e,message:t})}add(e){const t=new Map;for(const s of e){const n=x.safeParse(s.pkg);if(!n.success){this.problem(s.dir,`Its package.json's allyhub field is not a manifest: ${n.error.issues.map(c=>`${c.path.join(".")}: ${c.message}`).join("; ")}.`);continue}const{name:a,version:u,allyhub:r}=n.data,d={...n.data.dependencies,...n.data.optionalDependencies,...n.data.peerDependencies};if(this.loaded.has(r.id)||t.has(r.id)){this.problem(r.id,`Another extension has the id ${r.id}; ${s.dir} is left out.`);continue}if(!l.validRange(r.engines)||!l.satisfies(this.apiVersion,r.engines,{includePrerelease:!0})){this.problem(r.id,`It is built for the extension API ${r.engines}; this host gives ${this.apiVersion}.`);continue}for(const c of r.enabledApiProposals)c in v||this.problem(r.id,`Its enabledApiProposals name "${c}", which this host does not propose (${Object.keys(v).join(", ")||"it proposes none"}); it is ignored.`);r.activationEvents.includes("*")&&this.problem(r.id,'Its activationEvents name "*": an extension activates from what it contributes, and "*" is ignored.'),t.set(r.id,{id:r.id,name:a,version:u,dir:s.dir,manifest:r,ranges:d,active:!1,subscriptions:[]})}const i=new Map,o=(s,n)=>{const a=i.get(s);if(a==="done")return!0;if(a==="out")return!1;if(this.loaded.has(s))return!0;const u=t.get(s);if(!u)return!1;if(a==="visiting")return this.problem(s,`Its dependencies go round: ${[...n,s].join(" → ")}.`),i.set(s,"out"),!1;i.set(s,"visiting");for(const r of u.manifest.extensionDependencies){if(!o(r,[...n,s]))return i.get(s)!=="out"&&this.problem(s,`It needs ${r}, which is not loaded.`),i.set(s,"out"),!1;const d=this.loaded.get(r)??t.get(r),c=d&&u.ranges[d.name];if(d&&c!==void 0&&!Y(d.version,c))return this.problem(s,`It needs ${r} ${c} (${d.name} in its package.json); ${d.version} is loaded.`),i.set(s,"out"),!1}return i.set(s,"done"),this.register(u),!0};this.grown.clear();for(const s of t.keys())o(s,[]);for(const s of this.grown)this.pointChanged.fire(s);this.grown.clear()}declare(e){for(const[t,{about:i,schema:o}]of Object.entries(e.manifest.extensionPoints)){if($.exec(t)?.[1]!==e.id){this.problem(e.id,`extensionPoints.${t}: a point's id is its extension's id, its name and its version (${e.id}/<name>/v<n>).`);continue}let n;try{n=O.fromJSONSchema(o)}catch(a){this.problem(e.id,`extensionPoints.${t}: its schema is not a JSON Schema zod reads: ${a instanceof Error?a.message:String(a)}.`);continue}this.declared.set(t,{extension:e.id,point:{id:t,about:i,entry:n}})}}declaredPointsOf(e){const t=[];for(const i of Object.keys(e.manifest.contributes)){const o=$.exec(i)?.[1];if(o===void 0)continue;if(o!==e.id&&!e.manifest.extensionDependencies.includes(o)){this.problem(e.id,`contributes.${i}: a point of ${o}, which its extensionDependencies do not name; it is left out.`);continue}const s=this.declared.get(i);if(s===void 0){const n=[...this.declared.keys()].filter(a=>a.startsWith(`${o}/`));this.problem(e.id,`contributes.${i}: ${o} declares no such point (${n.length>0?n.join(", "):"it declares none"}); it is left out.`);continue}t.push(s.point)}return t}register(e){const t=new Set(e.manifest.activationEvents.filter(i=>i!=="*"));this.declare(e);for(const i of[...this.points,...this.declaredPointsOf(e)]){const o=e.manifest.contributes[i.id];if(o===void 0)continue;const s=i.entries?i.entries(o):Array.isArray(o)?o.map((a,u)=>[`[${String(u)}]`,a]):"is not a list.";if(typeof s=="string"){this.problem(e.id,`contributes.${i.id}${s.startsWith(".")?"":" "}${s}`);continue}const n=this.registry.get(i.id)??[];for(const[a,u]of s){const r=i.entry.safeParse(u);if(!r.success){this.problem(e.id,`contributes.${i.id}${a}: ${r.error.issues.map(h=>`${h.path.join(".")||"entry"}: ${h.message}`).join("; ")}.`);continue}const d=r.data,c=i.check?.(d,e.id)??[];if(c.length>0){for(const h of c)this.problem(e.id,`contributes.${i.id}${a}: ${h}`);continue}const f=i.key?.(d);if(f!==void 0){const h=n.find(P=>i.key?.(P.entry)===f);if(h){this.problem(e.id,`contributes.${i.id}: ${f} is ${h.extension}'s already; this one is left out.`);continue}}n.push({extension:e.id,entry:d}),this.declared.has(i.id)&&this.grown.add(i.id);for(const h of i.added?.(d,e.id)??[])this.problem(e.id,`contributes.${i.id}${a}: ${h}`);for(const h of i.activation?.(d,this.place)??[])t.add(h)}this.registry.set(i.id,n)}this.loaded.set(e.id,{...e,events:t}),this.order.push(e.id)}must(e){const t=this.loaded.get(e);if(!t)throw new Error(`There is no extension ${e}.`);return t}view(e){return{id:e.id,version:e.version,extensionPath:e.dir,get isActive(){return e.active},get exports(){return e.exports},activate:()=>this.activateExtension(e.id,"api")}}async activate(e){const t=this.order.filter(i=>this.must(i).events.has(e));for(const i of t)try{await this.activateExtension(i,e)}catch{}}async activateWorkspace(e){for(const t of new Set(e))await this.activate(`onKind:${t}`)}async activateExtension(e,t="api"){const i=this.must(e);return i.active?i.exports:(i.activating||(i.activating=(async()=>{for(const n of i.manifest.extensionDependencies)await this.activateExtension(n,`dependency:${e}`);const o=i.manifest[B[this.place]],s=performance.now();try{return o!==void 0&&(i.module=await this.load(this.resolveEntry(i.dir,o)),i.exports=await i.module.activate?.(this.context(i))),i.active=!0,this.activations.push({extension:e,event:t,ms:performance.now()-s}),i.exports}catch(n){const a=n instanceof Error?n.message:String(n);throw this.activations.push({extension:e,event:t,ms:performance.now()-s,error:a}),this.problem(e,`Its activate failed: ${a}`),w(i.subscriptions.splice(0)),i.activating=void 0,n}})()),i.activating)}async deactivate(){for(const e of[...this.order].reverse()){const t=this.must(e);if(t.active){try{await t.module?.deactivate?.()}catch(i){this.problem(e,`Its deactivate failed: ${i instanceof Error?i.message:String(i)}`)}try{w(t.subscriptions.splice(0))}catch(i){this.problem(e,`A disposable of it failed: ${i instanceof Error?i.message:String(i)}`)}t.active=!1,t.activating=void 0,t.exports=void 0}}}context(e){const t={info:i=>{this.logTo("info",e.id,i)},warn:i=>{this.logTo("warn",e.id,i)},error:i=>{this.logTo("error",e.id,i instanceof Error?i.message:i)}};return{id:e.id,version:e.version,extensionPath:e.dir,place:this.place,storagePath:this.storageFor(e.id),subscriptions:e.subscriptions,log:t,allyhub:this.api(e)}}gate(e,t){if(!this.must(e).manifest.enabledApiProposals.includes(t))throw new T(e,t)}own(e,t){if(this.declared.get(t)?.extension!==e)throw new Error(`${e} reads the point ${t}, which it does not declare (extensionPoints): a point is read by its own extension.`)}api(e){const t=()=>this.extensions,i=this.pointChanged.event,o=s=>this.declared.get(s)?.extension;return{version:this.apiVersion,extensions:{getExtension:s=>this.extension(s),get all(){return t()},contributionsTo:s=>(this.own(e.id,s),this.contributionsTo(s)),get onDidChangeContributions(){return s=>i(n=>{o(n)===e.id&&s(n)})}},commands:{registerCommand:(s,n)=>this.registerCommand(e.id,s,n),executeCommand:(s,...n)=>this.executeCommand(s,...n),getCommands:()=>Promise.resolve([...this.commands.keys()]),onDidRegisterCommand:this.commandRegistered.event},kinds:{registerKindProvider:(s,n)=>this.registerKindProvider(e.id,s,n)},settings:{get:s=>this.setting(s),onDidChange:this.settingChanged.event},l10n:{locale:this.locale}}}settingSchema(e){for(const t of this.contributions(S)){const i=t.entry.properties[e];if(i!==void 0)return{extension:t.extension,entry:i}}}setting(e){const t=this.settingSchema(e)?.entry;if(t===void 0)return;const i={...t,type:t.type},o=this.settingOf(e);return o!==void 0&&X(i,o)===void 0?o:z(i)}settingsChanged(e){for(const t of e)this.settingChanged.fire(t)}get commandIds(){return[...this.commands.keys()]}registerCommand(e,t,i){const o=this.commands.get(t);if(o)throw new Error(`The command ${t} is ${o.extension}'s already.`);return this.commands.set(t,{extension:e,handler:i}),this.commandRegistered.fire(t),b.of(()=>{this.commands.get(t)?.handler===i&&this.commands.delete(t)})}async executeCommand(e,...t){this.commands.has(e)||await this.activate(`onCommand:${e}`);const i=this.commands.get(e);if(!i)throw new Error(`There is no command ${e}.`);return await i.handler(...t)}registerKindProvider(e,t,i){if(this.contributions(p).find(s=>s.entry.id===t)?.extension!==e)throw new Error(`${e} registers a provider for the kind "${t}" without contributing it (contributes.kinds).`);if(this.kindProviders.has(t))throw new Error(`The kind "${t}" has a provider already.`);return this.kindProviders.set(t,{extension:e,provider:i}),b.of(()=>{this.kindProviders.get(t)?.provider===i&&this.kindProviders.delete(t)})}async kindProvider(e){if(this.contributions(p).some(t=>t.entry.id===e))return this.kindProviders.has(e)||await this.activate(`onKind:${e}`),this.kindProviders.get(e)?.provider}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CORE as _,declareRules as v,ruleOf as C}from"@allyhub/diagnostics";import{STAGE_LOADS as R}from"@allyhub/formats";import{LOCALES as A}from"@allyhub/i18n";import{PROJECT_TOOLS as L,RuntimeSchema as M,StageFolderSchema as W,StageLoadSchema as V,known as D}from"@allyhub/protocol";import{z as n}from"zod";import{KEY as K,MENUS as U,SETTING_TYPES as E,VIEW_CONTAINERS as p,inMenuBar as G,settingProblem as O,whenProblem as H}from"./shell.js";export const definePoint=e=>e,WordsSchema=n.record(n.string(),n.string().min(1));export function missingLocales(e){return A.filter(t=>!(t in e))}export const wordIn=(e,t)=>e[t]??e.en??Object.values(e)[0]??"";const h=n.string().regex(/^(@[a-z0-9][\w.-]*\/)?[a-z0-9][\w.-]*(\/[\w.-]+)*$/u);function b(e,t,i){if(typeof e!="object"||e===null||Array.isArray(e))return`is not an object of ${t}.`;const o=[];for(const[s,r]of Object.entries(e)){if(!Array.isArray(r))return`.${s} is not a list.`;r.forEach((d,u)=>{o.push([`.${s}[${String(u)}]`,typeof d=="object"&&d!==null?{...d,[i]:s}:d])})}return o}const y=n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),f=n.string().superRefine((e,t)=>{const i=H(e);i!==void 0&&t.addIssue({code:"custom",message:i})}),J=n.object({id:y,title:WordsSchema,enablement:f.optional(),place:n.enum(["workspace","ui"]).default("workspace")});export const COMMANDS=definePoint({id:"commands",about:"Commands a person runs from the palette, the menus and the keys.",entry:J,key:e=>e.id,activation:(e,t)=>e.place===t?[`onCommand:${e.id}`]:[],check:e=>{const t=missingLocales(e.title);return t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[]}});const B=n.object({command:y,key:n.string().regex(K,{message:"A key is modifiers among Mod, Shift and Alt, then a capital letter, a digit, a sign or a key's name (Mod+Shift+H)."}),when:f.optional()});export const KEYBINDING_POINT=definePoint({id:"keybindings",about:"Keys that run commands, each while its when clause holds.",entry:B});const F=n.object({menu:n.string().min(1),command:y,when:f.optional(),group:n.string().min(1).optional()});export const MENU_POINT=definePoint({id:"menus",about:`Commands in menus, by menu (${U.join(", ")}), each while its when clause holds.`,entry:F,entries:e=>b(e,"menus","menu"),check:e=>G(e.menu)?[`${e.command} is not placed in ${e.menu}: Studio's menu bar shows the core's entries alone yet.`]:[]});const x="Studio places no extension's view yet; its work card and its sidebar show the core's alone.",Y=n.object({location:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),title:WordsSchema,icon:n.string().min(1).optional()});export const VIEW_CONTAINER_POINT=definePoint({id:"viewsContainers",about:`Containers of views, by where each goes; the shell gives its own (${p.join(", ")}) and takes none of an extension's yet.`,entry:Y,entries:e=>b(e,"places","location"),key:e=>e.id,check:e=>{const t=missingLocales(e.title);return[...t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[],`the container ${e.id} is not placed: ${x}`]}});const Z=n.object({container:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),name:WordsSchema,when:f.optional(),icon:n.string().min(1).optional(),module:h.optional()});export const VIEW_POINT=definePoint({id:"views",about:`Views, by the container each is in (${p.join(", ")}): a page in a frame, as an editor is.`,entry:Z,entries:e=>b(e,"containers","container"),key:e=>e.id,check:e=>{const t=missingLocales(e.name);return[...p.includes(e.container)?[]:[`${e.container} is not a container: a view goes in ${p.join(" or ")}.`],...t.length>0?[`${e.id}'s name has no words in ${t.join(", ")}.`]:[],...e.module===void 0?[`${e.id} names no module: a view is a page's module, as an editor is.`]:[],`the view ${e.id} is not placed: ${x}`]}});const S=n.union([n.string(),n.boolean(),n.number()]),X=n.object({type:n.string().min(1),default:S.optional(),title:WordsSchema,description:WordsSchema.optional(),enum:n.array(S).min(1).optional(),enumItemLabels:n.array(WordsSchema).optional(),enumDescriptions:n.array(WordsSchema).optional(),minimum:n.number().optional(),maximum:n.number().optional(),minLength:n.number().int().min(0).optional(),order:n.number().int().optional()}),q=n.object({title:WordsSchema,order:n.number().int().optional(),properties:n.record(n.string(),X)});function Q(e,t){const i=[],o=(s,r)=>{const d=missingLocales(r);d.length>0&&i.push(`${e}'s ${s} has no words in ${d.join(", ")}.`)};return o("title",t.title),t.description!==void 0&&o("description",t.description),t.enumItemLabels?.forEach((s,r)=>{o(`label of choice ${String(r+1)}`,s)}),t.enumDescriptions?.forEach((s,r)=>{o(`description of choice ${String(r+1)}`,s)}),i}export const CONFIGURATION_POINT=definePoint({id:"configuration",about:"Settings: a title and JSON Schema properties by key, drawn as rows in the shell and read through allyhub.settings.",entry:q,entries:e=>Array.isArray(e)?e.map((t,i)=>[`[${String(i)}]`,t]):typeof e=="object"&&e!==null?[["",e]]:"is not a configuration or a list of them.",check:(e,t)=>{const i=[],o=missingLocales(e.title);o.length>0&&i.push(`a configuration's title has no words in ${o.join(", ")}.`);for(const[s,r]of Object.entries(e.properties)){if((!s.startsWith(`${t}.`)||s===`${t}.`)&&i.push(`${s} is not named by its extension: a setting's key is ${t}. and a name.`),i.push(...Q(s,r)),!E.includes(r.type)){i.push(`${s} is of type ${r.type}: a shell draws ${E.join(", ")}.`);continue}const d={...r,type:r.type};for(const[u,m]of(r.enum??[]).entries()){const c=O({type:d.type},m);c!==void 0&&i.push(`${s}'s choice ${String(u+1)}: ${c}`)}if(r.default!==void 0){const u=O(d,r.default);u!==void 0&&i.push(`${s}'s default: ${u}`)}for(const u of["enumItemLabels","enumDescriptions"]){const m=r[u];m!==void 0&&m.length!==(r.enum?.length??0)&&i.push(`${s}'s ${u} are ${String(m.length)}, and its choices ${String(r.enum?.length??0)}.`)}}return i}});const ee=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),title:n.string().min(1),description:n.string().min(1),inputSchema:n.record(n.string(),n.unknown()),annotations:n.object({readOnlyHint:n.boolean(),destructiveHint:n.boolean(),idempotentHint:n.boolean(),openWorldHint:n.boolean()}).partial().optional()});export const WINDOW_TOOL_POINT=definePoint({id:"windowTools",about:"Tools an agent calls that act in the person's window, during its own turn: a name, a description, a JSON Schema of the input.",entry:ee,key:e=>e.name,check:e=>{const t=z(e.inputSchema);return[...t===void 0?[]:[`${e.name}'s inputSchema ${t}`],`the window tool ${e.name} is not given: Studio's MCP server gives the core's tools alone yet.`]}});const ne=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9-]*( [a-z0-9][a-z0-9-]*){0,2}$/u),summary:n.string().min(1),work:n.string().min(1).optional(),module:n.string().min(1)});export const CLI_COMMANDS=definePoint({id:"cliCommands",about:"Commands the agent runs, `allyhub <name>`, listed in `allyhub help` before their module is loaded.",entry:ne,key:e=>e.name});const te=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9.-]*\/[a-z][a-z0-9-]*$/u),source:n.enum(["project","asleep","machine"]),does:n.union([n.object({command:n.string().min(1)}),n.object({files:n.string().min(1)}),n.object({person:n.string().min(1)})]),module:n.string().min(1),readView:h.optional()});export const PROJECT_TOOL_POINT=definePoint({id:"projectTools",about:"Project tools: what an editor asks of a project through tools/call, each with the command or files that do the same for the agent.",entry:te,key:e=>e.name,check:(e,t)=>{if(Object.hasOwn(L,e.name))return[`${e.name} is the core's own project tool.`];const i=e.name.slice(0,e.name.lastIndexOf("/"));return T(t)||i===t?[]:[`the project tool ${e.name} does not start with its extension's id (${t}/…).`]}});const oe=n.object({folder:W,loads:n.array(V),module:n.string().min(1)});export const STAGE_ROUTE_POINT=definePoint({id:"stageRoutes",about:"Stage routes: a folder of the stage's tree an extension answers, what the stage's pages load from it, and what a snapshot records of it.",entry:oe,key:e=>e.folder});const ie=n.object({name:n.string().min(1),only:n.array(n.string().min(1)).min(1),values:n.array(n.string().min(1)).optional()}),se=n.object({files:n.record(n.string().min(1),n.string()),entry:n.string().min(1)}),w=e=>!e.startsWith("/")&&!e.includes("\\")&&e.split("/").every(t=>t!==""&&t!=="."&&t!==".."),ae=n.object({id:n.string().regex(/^[a-z][a-z0-9-]*$/u),name:WordsSchema,plural:WordsSchema.optional(),noun:n.string().min(1),part:n.object({noun:n.string().min(1),plural:n.string().min(1)}).optional(),pages:n.boolean().optional(),editor:n.string().min(1).optional(),shown:n.object({line:WordsSchema,order:n.number()}).optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),exports:n.object({types:n.array(n.string().min(1)).min(1),extras:n.array(n.string().min(1)).default([]),options:n.array(ie).default([]),names:n.record(n.string().min(1),WordsSchema).default({})}).optional(),renders:n.object({types:n.array(n.string().min(1)).min(1),defaults:n.array(n.string().min(1)).min(1)}).optional(),starter:se.optional(),turnInto:n.boolean().optional(),share:n.boolean().optional(),build:n.string().min(1).optional()});export const KIND_POINT=definePoint({id:"kinds",about:"Kinds of item: their names, their editor, their icon and colour, what they export and render, what a new one starts as, whether one is shared alone.",entry:ae,key:e=>e.id,activation:(e,t)=>t==="workspace"?[`onKind:${e.id}`]:[],check:e=>{const t=[],i=missingLocales(e.name);i.length>0&&t.push(`${e.id}'s name has no words in ${i.join(", ")}.`);const o=e.plural&&missingLocales(e.plural);o&&o.length>0&&t.push(`${e.id}'s plural has no words in ${o.join(", ")}.`);for(const[r,d]of Object.entries(e.exports?.names??{})){const u=missingLocales(d);u.length>0&&t.push(`${e.id}'s name for its export ${r} has no words in ${u.join(", ")}.`)}const s=Object.keys(e.starter?.files??{});for(const r of s.filter(d=>!w(d)))t.push(`${e.id}'s starter file ${r} is not inside the new item's folder.`);return e.starter&&!s.includes(e.starter.entry)&&t.push(`${e.id}'s starter's entry ${e.starter.entry} is none of its files.`),t}});const I=n.union([n.string().min(1),n.array(n.string().min(1)).min(1)]),re=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),markup:I.optional(),kinds:n.array(n.string().min(1)).default([]),files:n.array(n.string().min(1)).default([]),noun:n.string().min(1).optional(),name:WordsSchema.optional(),plural:WordsSchema.optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),check:n.string().min(1).optional(),priority:n.enum(["default","option"]).default("default"),module:h.optional(),place:n.record(n.string(),n.unknown()).optional()});function z(e){if(e.type!=="object")return'is not of "type": "object".';try{n.fromJSONSchema(e)}catch(t){return`is not a JSON Schema zod reads: ${t instanceof Error?t.message:String(t)}.`}}export const EDITOR_POINT=definePoint({id:"editors",about:"Editors: the kinds each opens, or the files it opens by their names (glob patterns, with their name, sign and check), whether it is their default, the module a page imports for it, and the schema of where a person is in what it opens.",entry:re,key:e=>e.id,activation:(e,t)=>t==="ui"?[`onEditor:${e.id}`]:[],check:e=>{const t=[],i=e.place&&z(e.place);if(i!==void 0&&t.push(`${e.id}'s place ${i}`),e.kinds.length===0&&e.files.length===0&&t.push(`${e.id} opens no kind and no files.`),e.kinds.length>0&&e.files.length>0&&t.push(`${e.id} opens kinds and files: an editor opens one or the other.`),e.files.length>0){e.noun===void 0&&t.push(`${e.id} opens files and has no noun for them.`),e.name===void 0&&t.push(`${e.id} opens files and has no name for them.`);for(const[o,s]of[["name",e.name],["plural",e.plural]]){const r=s===void 0?[]:missingLocales(s);r.length>0&&t.push(`${e.id}'s ${o} has no words in ${r.join(", ")}.`)}for(const o of e.files)(o.startsWith("/")||o.split("/").includes(".."))&&t.push(`${e.id}'s pattern ${o} is not of project paths (no leading /, no ..).`)}else e.check!==void 0&&t.push(`${e.id} has a check and opens no files: a kind's items are checked by its build.`);return t}});export function fileEditorTable(e,t=(i,o)=>o){return e.flatMap(({extension:i,entry:o})=>o.files.length===0||o.name===void 0||o.noun===void 0?[]:[{id:o.id,files:[...o.files],noun:o.noun,name:{...o.name},...o.plural===void 0?{}:{plural:{...o.plural}},...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.priority==="option"?{priority:o.priority}:{},...o.check===void 0?{}:{check:t(i,o.check)},extension:i}])}const de=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),markup:I.optional(),types:n.array(n.string().regex(/^[a-z]+\/(?:\*|[\w.+-]+)$/u)).min(1),module:h});export const PREVIEW_RENDERER_POINT=definePoint({id:"previewRenderers",about:"Preview renderers: how a file of a media type is drawn wherever one is shown (a canvas's node); each its media types and the module a page imports for it.",entry:de,key:e=>e.id});const T=e=>e.startsWith("allyhub.");function $(e,t,i){return T(e)||t.startsWith(`${e}/`)?[]:[`the ${i} ${t} does not start with its extension's id (${e}/…).`]}const le=n.object({code:n.string().regex(/^(AK-[A-Z]\d{3}|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[A-Za-z0-9][\w.-]*)$/u),level:n.enum(["error","warn"]),rule:n.string().min(1)});export const RULE_POINT=definePoint({id:"rules",about:"Rules: the codes an extension reports problems under, each with its level and what it says.",entry:le,key:e=>e.code,check:(e,t)=>{const i=C(e.code);return[...$(t,e.code,"rule"),...i&&i.extension!==t?[`${e.code} is ${i.extension===_?"the core's":`${i.extension}'s`} rule already.`]:[]]},added:(e,t)=>v(t,[e])});const ce=n.object({kind:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1)});export const FACT_POINT=definePoint({id:"facts",about:"Kinds of fact: what an extension measures for the agent to judge, each with what it says.",entry:ce,key:e=>e.kind,check:(e,t)=>$(t,e.kind,"kind of fact")});const ue=n.object({module:n.string().min(1)});export const BUILD_PLUGINS_POINT=definePoint({id:"buildPlugins",about:"Build plugins: a module whose Vite plugins and lent packages every stage bundle of a project takes.",entry:ue});const k=n.string().min(1),me=n.object({name:n.string().regex(/^[a-z][a-z0-9-]*$/u),summary:n.string().min(1),module:k});export const INSPECT_VIEW_POINT=definePoint({id:"inspectViews",about:"Views of `allyhub inspect <name>`: a measurement now, listed in `allyhub help` before its module is loaded.",entry:me,key:e=>e.name});const pe=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),types:n.array(n.string().min(1)).min(1),module:k});export const EXPORT_PROCESSOR_POINT=definePoint({id:"exportProcessors",about:"Export processors: a step run on every file of the types it names that an export makes.",entry:pe,key:e=>e.id,check:(e,t)=>e.id.startsWith(`${t}.`)?[]:[`the processor ${e.id} does not start with its extension's id (${t}.…).`]});const he=n.object({id:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1),what:n.string().min(1),media:n.array(n.enum(["image","audio","video"])).min(1),runtimes:n.array(n.string().regex(/^[a-z0-9][a-z0-9-]*$/u)).default([]),module:k});export const MEDIA_ANALYSIS_POINT=definePoint({id:"mediaAnalyses",about:"Media analyses: what the media index measures of a file once, by its content, when a version needs it.",entry:he,key:e=>e.id,check:(e,t)=>$(t,e.id,"media analysis")});const fe=n.object({id:n.string().regex(/^[a-z0-9][a-z0-9-]*$/u),...M.shape});export const RUNTIME_POINT=definePoint({id:"runtimes",about:"Runtimes: a tool's pinned download (a program, a model), fetched when first needed, checked, cached.",entry:fe,key:e=>e.id}),SKILL_NAME=/^(?=.{1,64}$)[a-z0-9]+(-[a-z0-9]+)*$/u;const g=e=>e.replace(/^\.\//u,"").replace(/\/+$/u,""),ge=n.object({path:n.string().min(1)});export const SKILL_POINT=definePoint({id:"skills",about:"Skills for the agent: a folder laid out as an Agent Skill's, a skill of its own or files of the skill of its name.",entry:ge,check:e=>{const t=g(e.path);if(!w(t))return[`the skill folder ${e.path} is not a folder inside its package.`];const i=t.slice(t.lastIndexOf("/")+1);return SKILL_NAME.test(i)?[]:[`the skill folder ${e.path} is not named as a skill is (lower-case letters, digits and hyphens, at most 64).`]}});const P=n.record(n.string(),n.string()),be=n.union([n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),command:n.string().min(1),args:n.array(n.string()).default([]),env:P.default({}),cwd:n.string().min(1).optional()}),n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),url:n.url(),headers:P.default({})})]);export const MCP_SERVER_POINT=definePoint({id:"mcpServers",about:"MCP servers: a local program or an address that gives an agent tools, defined as .mcp.json defines one.",entry:be,key:e=>e.name,check:e=>"cwd"in e&&e.cwd!==void 0&&!w(g(e.cwd))?[`the MCP server ${e.name}'s cwd is not a folder inside its package.`]:[]}),CORE_POINTS=[COMMANDS,KEYBINDING_POINT,MENU_POINT,VIEW_CONTAINER_POINT,VIEW_POINT,CONFIGURATION_POINT,WINDOW_TOOL_POINT,CLI_COMMANDS,KIND_POINT,EDITOR_POINT,PREVIEW_RENDERER_POINT,RULE_POINT,FACT_POINT,BUILD_PLUGINS_POINT,PROJECT_TOOL_POINT,STAGE_ROUTE_POINT,INSPECT_VIEW_POINT,EXPORT_PROCESSOR_POINT,MEDIA_ANALYSIS_POINT,RUNTIME_POINT,SKILL_POINT,MCP_SERVER_POINT];export function kindTable(e,t=(d,u)=>u,i=[],o=[],s=[],r=()=>{}){const d=c=>{const a=i.filter(l=>l.extension===c).map(l=>t(c,l.entry.module));return a.length>0?a:void 0},u=c=>{const a=o.filter(l=>l.extension===c).map(({entry:l})=>({name:l.name,source:l.source,does:l.does,module:t(c,l.module),extension:c}));return a.length>0?a:void 0},m=c=>{const a=s.filter(l=>l.extension===c).map(({entry:l})=>({folder:l.folder,loads:l.loads.filter(N=>D(R,N)),module:t(c,l.module),extension:c}));return a.length>0?a:void 0};return e.map(({extension:c,entry:a})=>({id:a.id,editor:a.editor,noun:a.noun,part:a.part,...a.pages===!0?{pages:!0}:{},name:a.name,plural:a.plural,icon:a.icon,color:a.color,exports:a.exports&&{types:a.exports.types,extras:a.exports.extras,options:a.exports.options.map(l=>({name:l.name,only:l.only,...l.values===void 0?{}:{values:l.values}})),...Object.keys(a.exports.names).length===0?{}:{names:a.exports.names}},renders:a.renders&&{types:a.renders.types,defaults:a.renders.defaults},starter:a.starter&&{files:{...a.starter.files},entry:a.starter.entry},...a.shown===void 0?{}:{order:a.shown.order},...a.turnInto===!1?{turnInto:!1}:{},share:a.share,build:a.build===void 0?void 0:t(c,a.build),buildPlugins:d(c),projectTools:u(c),stageRoutes:m(c),points:r(c),extension:c}))}export const inspectViewTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,module:t(i,o.module),extension:i})),cliCommandTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,...o.work===void 0?{}:{work:o.work},module:t(i,o.module),extension:i})),processorTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,types:o.types,module:t(i,o.module),extension:i})),analysisTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,about:o.about,what:o.what,media:o.media,runtimes:o.runtimes,module:t(i,o.module),extension:i})),skillTable=(e,t)=>e.map(({extension:i,entry:o})=>{const s=g(o.path);return{name:s.slice(s.lastIndexOf("/")+1),folder:t(i,s),extension:i}});const j=(e,t)=>e.replaceAll("${PLUGIN_ROOT}",t);export const mcpServerTable=(e,t,i)=>e.map(({extension:o,entry:s})=>{if("url"in s)return{name:s.name,url:s.url,headers:{...s.headers},extension:o};const r=t(o);return{name:s.name,command:j(s.command,r),args:s.args.map(d=>j(d,r)),env:Object.fromEntries(Object.entries(s.env).map(([d,u])=>[d,j(u,r)])),cwd:s.cwd===void 0?r:i(o,g(s.cwd)),extension:o}});
2
+ import{CORE as _,declareRules as v,ruleOf as C}from"@allyhub/diagnostics";import{STAGE_LOADS as R}from"@allyhub/formats";import{LOCALES as A}from"@allyhub/i18n";import{PROJECT_TOOLS as L,RuntimeSchema as M,StageFolderSchema as W,StageLoadSchema as V,known as D}from"@allyhub/protocol";import{z as n}from"zod";import{KEY as K,MENUS as U,SETTING_TYPES as E,VIEW_CONTAINERS as p,inMenuBar as G,settingProblem as O,whenProblem as H}from"./shell.js";export const definePoint=e=>e,WordsSchema=n.record(n.string(),n.string().min(1));export function missingLocales(e){return A.filter(t=>!(t in e))}export const wordIn=(e,t)=>e[t]??e.en??Object.values(e)[0]??"";const h=n.string().regex(/^(@[a-z0-9][\w.-]*\/)?[a-z0-9][\w.-]*(\/[\w.-]+)*$/u);function b(e,t,i){if(typeof e!="object"||e===null||Array.isArray(e))return`is not an object of ${t}.`;const o=[];for(const[s,r]of Object.entries(e)){if(!Array.isArray(r))return`.${s} is not a list.`;r.forEach((d,u)=>{o.push([`.${s}[${String(u)}]`,typeof d=="object"&&d!==null?{...d,[i]:s}:d])})}return o}const y=n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),f=n.string().superRefine((e,t)=>{const i=H(e);i!==void 0&&t.addIssue({code:"custom",message:i})}),J=n.object({id:y,title:WordsSchema,enablement:f.optional(),place:n.enum(["workspace","ui"]).default("workspace")});export const COMMANDS=definePoint({id:"commands",about:"Commands a person runs from the palette, the menus and the keys.",entry:J,key:e=>e.id,activation:(e,t)=>e.place===t?[`onCommand:${e.id}`]:[],check:e=>{const t=missingLocales(e.title);return t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[]}});const B=n.object({command:y,key:n.string().regex(K,{message:"A key is modifiers among Mod, Shift and Alt, then a capital letter, a digit, a sign or a key's name (Mod+Shift+H)."}),when:f.optional()});export const KEYBINDING_POINT=definePoint({id:"keybindings",about:"Keys that run commands, each while its when clause holds.",entry:B});const F=n.object({menu:n.string().min(1),command:y,when:f.optional(),group:n.string().min(1).optional()});export const MENU_POINT=definePoint({id:"menus",about:`Commands in menus, by menu (${U.join(", ")}), each while its when clause holds.`,entry:F,entries:e=>b(e,"menus","menu"),check:e=>G(e.menu)?[`${e.command} is not placed in ${e.menu}: Studio's menu bar shows the core's entries alone yet.`]:[]});const x="Studio places no extension's view yet; its work card and its sidebar show the core's alone.",Y=n.object({location:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),title:WordsSchema,icon:n.string().min(1).optional()});export const VIEW_CONTAINER_POINT=definePoint({id:"viewsContainers",about:`Containers of views, by where each goes; the shell gives its own (${p.join(", ")}) and takes none of an extension's yet.`,entry:Y,entries:e=>b(e,"places","location"),key:e=>e.id,check:e=>{const t=missingLocales(e.title);return[...t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[],`the container ${e.id} is not placed: ${x}`]}});const Z=n.object({container:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),name:WordsSchema,when:f.optional(),icon:n.string().min(1).optional(),module:h.optional()});export const VIEW_POINT=definePoint({id:"views",about:`Views, by the container each is in (${p.join(", ")}): a page in a frame, as an editor is.`,entry:Z,entries:e=>b(e,"containers","container"),key:e=>e.id,check:e=>{const t=missingLocales(e.name);return[...p.includes(e.container)?[]:[`${e.container} is not a container: a view goes in ${p.join(" or ")}.`],...t.length>0?[`${e.id}'s name has no words in ${t.join(", ")}.`]:[],...e.module===void 0?[`${e.id} names no module: a view is a page's module, as an editor is.`]:[],`the view ${e.id} is not placed: ${x}`]}});const S=n.union([n.string(),n.boolean(),n.number()]),X=n.object({type:n.string().min(1),default:S.optional(),title:WordsSchema,description:WordsSchema.optional(),enum:n.array(S).min(1).optional(),enumItemLabels:n.array(WordsSchema).optional(),enumDescriptions:n.array(WordsSchema).optional(),minimum:n.number().optional(),maximum:n.number().optional(),minLength:n.number().int().min(0).optional(),order:n.number().int().optional()}),q=n.object({title:WordsSchema,order:n.number().int().optional(),properties:n.record(n.string(),X)});function Q(e,t){const i=[],o=(s,r)=>{const d=missingLocales(r);d.length>0&&i.push(`${e}'s ${s} has no words in ${d.join(", ")}.`)};return o("title",t.title),t.description!==void 0&&o("description",t.description),t.enumItemLabels?.forEach((s,r)=>{o(`label of choice ${String(r+1)}`,s)}),t.enumDescriptions?.forEach((s,r)=>{o(`description of choice ${String(r+1)}`,s)}),i}export const CONFIGURATION_POINT=definePoint({id:"configuration",about:"Settings: a title and JSON Schema properties by key, drawn as rows in the shell and read through allyhub.settings.",entry:q,entries:e=>Array.isArray(e)?e.map((t,i)=>[`[${String(i)}]`,t]):typeof e=="object"&&e!==null?[["",e]]:"is not a configuration or a list of them.",check:(e,t)=>{const i=[],o=missingLocales(e.title);o.length>0&&i.push(`a configuration's title has no words in ${o.join(", ")}.`);for(const[s,r]of Object.entries(e.properties)){if((!s.startsWith(`${t}.`)||s===`${t}.`)&&i.push(`${s} is not named by its extension: a setting's key is ${t}. and a name.`),i.push(...Q(s,r)),!E.includes(r.type)){i.push(`${s} is of type ${r.type}: a shell draws ${E.join(", ")}.`);continue}const d={...r,type:r.type};for(const[u,m]of(r.enum??[]).entries()){const c=O({type:d.type},m);c!==void 0&&i.push(`${s}'s choice ${String(u+1)}: ${c}`)}if(r.default!==void 0){const u=O(d,r.default);u!==void 0&&i.push(`${s}'s default: ${u}`)}for(const u of["enumItemLabels","enumDescriptions"]){const m=r[u];m!==void 0&&m.length!==(r.enum?.length??0)&&i.push(`${s}'s ${u} are ${String(m.length)}, and its choices ${String(r.enum?.length??0)}.`)}}return i}});const ee=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),title:n.string().min(1),description:n.string().min(1),inputSchema:n.record(n.string(),n.unknown()),annotations:n.object({readOnlyHint:n.boolean(),destructiveHint:n.boolean(),idempotentHint:n.boolean(),openWorldHint:n.boolean()}).partial().optional()});export const WINDOW_TOOL_POINT=definePoint({id:"windowTools",about:"Tools an agent calls that act in the person's window, during its own turn: a name, a description, a JSON Schema of the input.",entry:ee,key:e=>e.name,check:e=>{const t=z(e.inputSchema);return[...t===void 0?[]:[`${e.name}'s inputSchema ${t}`],`the window tool ${e.name} is not given: Studio's MCP server gives the core's tools alone yet.`]}});const ne=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9-]*( [a-z0-9][a-z0-9-]*){0,2}$/u),summary:n.string().min(1),work:n.string().min(1).optional(),module:n.string().min(1)});export const CLI_COMMANDS=definePoint({id:"cliCommands",about:"Commands the agent runs, `allyhub <name>`, listed in `allyhub help` before their module is loaded.",entry:ne,key:e=>e.name});const te=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9.-]*\/[a-z][a-z0-9-]*$/u),source:n.enum(["project","asleep","machine"]),does:n.union([n.object({command:n.string().min(1)}),n.object({files:n.string().min(1)}),n.object({person:n.string().min(1)})]),module:n.string().min(1),readView:h.optional()});export const PROJECT_TOOL_POINT=definePoint({id:"projectTools",about:"Project tools: what an editor asks of a project through tools/call, each with the command or files that do the same for the agent.",entry:te,key:e=>e.name,check:(e,t)=>{if(Object.hasOwn(L,e.name))return[`${e.name} is the core's own project tool.`];const i=e.name.slice(0,e.name.lastIndexOf("/"));return T(t)||i===t?[]:[`the project tool ${e.name} does not start with its extension's id (${t}/…).`]}});const oe=n.object({folder:W,loads:n.array(V),module:n.string().min(1)});export const STAGE_ROUTE_POINT=definePoint({id:"stageRoutes",about:"Stage routes: a folder of the stage's tree an extension answers, what the stage's pages load from it, and what a snapshot records of it.",entry:oe,key:e=>e.folder});const ie=n.object({name:n.string().min(1),only:n.array(n.string().min(1)).min(1),values:n.array(n.string().min(1)).optional()}),se=n.object({files:n.record(n.string().min(1),n.string()),entry:n.string().min(1)}),w=e=>!e.startsWith("/")&&!e.includes("\\")&&e.split("/").every(t=>t!==""&&t!=="."&&t!==".."),ae=n.object({id:n.string().regex(/^[a-z][a-z0-9-]*$/u),name:WordsSchema,plural:WordsSchema.optional(),noun:n.string().min(1),part:n.object({noun:n.string().min(1),plural:n.string().min(1)}).optional(),pages:n.boolean().optional(),editor:n.string().min(1).optional(),shown:n.object({line:WordsSchema,order:n.number()}).optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),exports:n.object({types:n.array(n.string().min(1)).min(1),extras:n.array(n.string().min(1)).default([]),options:n.array(ie).default([]),names:n.record(n.string().min(1),WordsSchema).default({})}).optional(),renders:n.object({types:n.array(n.string().min(1)).min(1),defaults:n.array(n.string().min(1)).min(1)}).optional(),starter:se.optional(),turnInto:n.boolean().optional(),share:n.boolean().optional(),build:n.string().min(1).optional()});export const KIND_POINT=definePoint({id:"kinds",about:"Kinds of item: their names, their editor, their icon and colour, what they export and render, what a new one starts as, whether one is shared alone.",entry:ae,key:e=>e.id,activation:(e,t)=>t==="workspace"?[`onKind:${e.id}`]:[],check:e=>{const t=[],i=missingLocales(e.name);i.length>0&&t.push(`${e.id}'s name has no words in ${i.join(", ")}.`);const o=e.plural&&missingLocales(e.plural);o&&o.length>0&&t.push(`${e.id}'s plural has no words in ${o.join(", ")}.`);for(const[r,d]of Object.entries(e.exports?.names??{})){const u=missingLocales(d);u.length>0&&t.push(`${e.id}'s name for its export ${r} has no words in ${u.join(", ")}.`)}const s=Object.keys(e.starter?.files??{});for(const r of s.filter(d=>!w(d)))t.push(`${e.id}'s starter file ${r} is not inside the new item's folder.`);return e.starter&&!s.includes(e.starter.entry)&&t.push(`${e.id}'s starter's entry ${e.starter.entry} is none of its files.`),t}});const I=n.union([n.string().min(1),n.array(n.string().min(1)).min(1)]),re=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),markup:I.optional(),kinds:n.array(n.string().min(1)).default([]),files:n.array(n.string().min(1)).default([]),noun:n.string().min(1).optional(),name:WordsSchema.optional(),plural:WordsSchema.optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),check:n.string().min(1).optional(),priority:n.enum(["default","option"]).default("default"),share:n.boolean().optional(),page:n.boolean().optional(),module:h.optional(),place:n.record(n.string(),n.unknown()).optional()});function z(e){if(e.type!=="object")return'is not of "type": "object".';try{n.fromJSONSchema(e)}catch(t){return`is not a JSON Schema zod reads: ${t instanceof Error?t.message:String(t)}.`}}export const EDITOR_POINT=definePoint({id:"editors",about:"Editors: the kinds each opens, or the files it opens by their names (glob patterns, with their name, sign and check), whether it is their default, the module a page imports for it, and the schema of where a person is in what it opens.",entry:re,key:e=>e.id,activation:(e,t)=>t==="ui"?[`onEditor:${e.id}`]:[],check:e=>{const t=[],i=e.place&&z(e.place);if(i!==void 0&&t.push(`${e.id}'s place ${i}`),e.kinds.length===0&&e.files.length===0&&t.push(`${e.id} opens no kind and no files.`),e.kinds.length>0&&e.files.length>0&&t.push(`${e.id} opens kinds and files: an editor opens one or the other.`),e.files.length>0){e.noun===void 0&&t.push(`${e.id} opens files and has no noun for them.`),e.name===void 0&&t.push(`${e.id} opens files and has no name for them.`);for(const[o,s]of[["name",e.name],["plural",e.plural]]){const r=s===void 0?[]:missingLocales(s);r.length>0&&t.push(`${e.id}'s ${o} has no words in ${r.join(", ")}.`)}for(const o of e.files)(o.startsWith("/")||o.split("/").includes(".."))&&t.push(`${e.id}'s pattern ${o} is not of project paths (no leading /, no ..).`)}else e.check!==void 0&&t.push(`${e.id} has a check and opens no files: a kind's items are checked by its build.`);return t}});export function fileEditorTable(e,t=(i,o)=>o){return e.flatMap(({extension:i,entry:o})=>o.files.length===0||o.name===void 0||o.noun===void 0?[]:[{id:o.id,files:[...o.files],noun:o.noun,name:{...o.name},...o.plural===void 0?{}:{plural:{...o.plural}},...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.priority==="option"?{priority:o.priority}:{},...o.share===!0?{share:!0}:{},...o.page===!0?{page:!0}:{},...o.check===void 0?{}:{check:t(i,o.check)},extension:i}])}const de=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),markup:I.optional(),types:n.array(n.string().regex(/^[a-z]+\/(?:\*|[\w.+-]+)$/u)).min(1),module:h});export const PREVIEW_RENDERER_POINT=definePoint({id:"previewRenderers",about:"Preview renderers: how a file of a media type is drawn wherever one is shown (a canvas's node); each its media types and the module a page imports for it.",entry:de,key:e=>e.id});const T=e=>e.startsWith("allyhub.");function $(e,t,i){return T(e)||t.startsWith(`${e}/`)?[]:[`the ${i} ${t} does not start with its extension's id (${e}/…).`]}const le=n.object({code:n.string().regex(/^(AK-[A-Z]\d{3}|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[A-Za-z0-9][\w.-]*)$/u),level:n.enum(["error","warn"]),rule:n.string().min(1)});export const RULE_POINT=definePoint({id:"rules",about:"Rules: the codes an extension reports problems under, each with its level and what it says.",entry:le,key:e=>e.code,check:(e,t)=>{const i=C(e.code);return[...$(t,e.code,"rule"),...i&&i.extension!==t?[`${e.code} is ${i.extension===_?"the core's":`${i.extension}'s`} rule already.`]:[]]},added:(e,t)=>v(t,[e])});const ce=n.object({kind:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1)});export const FACT_POINT=definePoint({id:"facts",about:"Kinds of fact: what an extension measures for the agent to judge, each with what it says.",entry:ce,key:e=>e.kind,check:(e,t)=>$(t,e.kind,"kind of fact")});const ue=n.object({module:n.string().min(1)});export const BUILD_PLUGINS_POINT=definePoint({id:"buildPlugins",about:"Build plugins: a module whose Vite plugins and lent packages every stage bundle of a project takes.",entry:ue});const k=n.string().min(1),me=n.object({name:n.string().regex(/^[a-z][a-z0-9-]*$/u),summary:n.string().min(1),module:k});export const INSPECT_VIEW_POINT=definePoint({id:"inspectViews",about:"Views of `allyhub inspect <name>`: a measurement now, listed in `allyhub help` before its module is loaded.",entry:me,key:e=>e.name});const pe=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),types:n.array(n.string().min(1)).min(1),module:k});export const EXPORT_PROCESSOR_POINT=definePoint({id:"exportProcessors",about:"Export processors: a step run on every file of the types it names that an export makes.",entry:pe,key:e=>e.id,check:(e,t)=>e.id.startsWith(`${t}.`)?[]:[`the processor ${e.id} does not start with its extension's id (${t}.…).`]});const he=n.object({id:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1),what:n.string().min(1),media:n.array(n.enum(["image","audio","video"])).min(1),runtimes:n.array(n.string().regex(/^[a-z0-9][a-z0-9-]*$/u)).default([]),module:k});export const MEDIA_ANALYSIS_POINT=definePoint({id:"mediaAnalyses",about:"Media analyses: what the media index measures of a file once, by its content, when a version needs it.",entry:he,key:e=>e.id,check:(e,t)=>$(t,e.id,"media analysis")});const fe=n.object({id:n.string().regex(/^[a-z0-9][a-z0-9-]*$/u),...M.shape});export const RUNTIME_POINT=definePoint({id:"runtimes",about:"Runtimes: a tool's pinned download (a program, a model), fetched when first needed, checked, cached.",entry:fe,key:e=>e.id}),SKILL_NAME=/^(?=.{1,64}$)[a-z0-9]+(-[a-z0-9]+)*$/u;const g=e=>e.replace(/^\.\//u,"").replace(/\/+$/u,""),ge=n.object({path:n.string().min(1)});export const SKILL_POINT=definePoint({id:"skills",about:"Skills for the agent: a folder laid out as an Agent Skill's, a skill of its own or files of the skill of its name.",entry:ge,check:e=>{const t=g(e.path);if(!w(t))return[`the skill folder ${e.path} is not a folder inside its package.`];const i=t.slice(t.lastIndexOf("/")+1);return SKILL_NAME.test(i)?[]:[`the skill folder ${e.path} is not named as a skill is (lower-case letters, digits and hyphens, at most 64).`]}});const P=n.record(n.string(),n.string()),be=n.union([n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),command:n.string().min(1),args:n.array(n.string()).default([]),env:P.default({}),cwd:n.string().min(1).optional()}),n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),url:n.url(),headers:P.default({})})]);export const MCP_SERVER_POINT=definePoint({id:"mcpServers",about:"MCP servers: a local program or an address that gives an agent tools, defined as .mcp.json defines one.",entry:be,key:e=>e.name,check:e=>"cwd"in e&&e.cwd!==void 0&&!w(g(e.cwd))?[`the MCP server ${e.name}'s cwd is not a folder inside its package.`]:[]}),CORE_POINTS=[COMMANDS,KEYBINDING_POINT,MENU_POINT,VIEW_CONTAINER_POINT,VIEW_POINT,CONFIGURATION_POINT,WINDOW_TOOL_POINT,CLI_COMMANDS,KIND_POINT,EDITOR_POINT,PREVIEW_RENDERER_POINT,RULE_POINT,FACT_POINT,BUILD_PLUGINS_POINT,PROJECT_TOOL_POINT,STAGE_ROUTE_POINT,INSPECT_VIEW_POINT,EXPORT_PROCESSOR_POINT,MEDIA_ANALYSIS_POINT,RUNTIME_POINT,SKILL_POINT,MCP_SERVER_POINT];export function kindTable(e,t=(d,u)=>u,i=[],o=[],s=[],r=()=>{}){const d=c=>{const a=i.filter(l=>l.extension===c).map(l=>t(c,l.entry.module));return a.length>0?a:void 0},u=c=>{const a=o.filter(l=>l.extension===c).map(({entry:l})=>({name:l.name,source:l.source,does:l.does,module:t(c,l.module),extension:c}));return a.length>0?a:void 0},m=c=>{const a=s.filter(l=>l.extension===c).map(({entry:l})=>({folder:l.folder,loads:l.loads.filter(N=>D(R,N)),module:t(c,l.module),extension:c}));return a.length>0?a:void 0};return e.map(({extension:c,entry:a})=>({id:a.id,editor:a.editor,noun:a.noun,part:a.part,...a.pages===!0?{pages:!0}:{},name:a.name,plural:a.plural,icon:a.icon,color:a.color,exports:a.exports&&{types:a.exports.types,extras:a.exports.extras,options:a.exports.options.map(l=>({name:l.name,only:l.only,...l.values===void 0?{}:{values:l.values}})),...Object.keys(a.exports.names).length===0?{}:{names:a.exports.names}},renders:a.renders&&{types:a.renders.types,defaults:a.renders.defaults},starter:a.starter&&{files:{...a.starter.files},entry:a.starter.entry},...a.shown===void 0?{}:{order:a.shown.order},...a.turnInto===!1?{turnInto:!1}:{},share:a.share,build:a.build===void 0?void 0:t(c,a.build),buildPlugins:d(c),projectTools:u(c),stageRoutes:m(c),points:r(c),extension:c}))}export const inspectViewTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,module:t(i,o.module),extension:i})),cliCommandTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,...o.work===void 0?{}:{work:o.work},module:t(i,o.module),extension:i})),processorTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,types:o.types,module:t(i,o.module),extension:i})),analysisTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,about:o.about,what:o.what,media:o.media,runtimes:o.runtimes,module:t(i,o.module),extension:i})),skillTable=(e,t)=>e.map(({extension:i,entry:o})=>{const s=g(o.path);return{name:s.slice(s.lastIndexOf("/")+1),folder:t(i,s),extension:i}});const j=(e,t)=>e.replaceAll("${PLUGIN_ROOT}",t);export const mcpServerTable=(e,t,i)=>e.map(({extension:o,entry:s})=>{if("url"in s)return{name:s.name,url:s.url,headers:{...s.headers},extension:o};const r=t(o);return{name:s.name,command:j(s.command,r),args:s.args.map(d=>j(d,r)),env:Object.fromEntries(Object.entries(s.env).map(([d,u])=>[d,j(u,r)])),cwd:s.cwd===void 0?r:i(o,g(s.cwd)),extension:o}});
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/extension-host",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -23,6 +23,10 @@ export interface FileEditorSpec {
23
23
  * file opens a canvas only when asked; none is `default`.
24
24
  */
25
25
  readonly priority?: "default" | "option" | undefined;
26
+ /** Whether a file it opens may be shared alone (its contribution's `share`). */
27
+ readonly share?: boolean | undefined;
28
+ /** Whether a file it opens is a page a snapshot records through `items/page` (its contribution's `page`). */
29
+ readonly page?: boolean | undefined;
26
30
  /**
27
31
  * Its check module, where the check imports it from (its contribution's
28
32
  * `check`, resolved against its extension's folder): its default export
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{posix as l}from"node:path";import{setTimeout as p}from"node:timers/promises";import{openPage as d,startServer as h}from"@allyhub/browser";export const HTML_PAGE_WAITS={load:15e3,settle:5e3,quiet:600};const w=`(async () => {
3
+ await document.fonts.ready;
4
+ await Promise.all(Array.from(document.images).map((i) => i.decode().catch(() => undefined)));
5
+ return true;
6
+ })()`;export function projectPath(o){const t=l.normalize(o.split("\\").join("/"));if(t==="."||t.startsWith("../")||t.startsWith("/"))throw new Error(`${o} is not inside the project.`);return t}export async function openHtml(o,t,c,i){const a=await h([{at:"/",dir:t}]);let e;try{e=await d(o,{width:i.width,height:i.height,scale:i.scale??1,allow:r=>a.allow(r)||r.startsWith("https://")});const s=`${a.origin}/${projectPath(c).split("/").map(encodeURIComponent).join("/")}`;await e.goto(s,{timeoutMs:HTML_PAGE_WAITS.load}).catch(()=>{}),await e.evaluate(w,{timeoutMs:HTML_PAGE_WAITS.settle}).catch(()=>{}),await p(HTML_PAGE_WAITS.quiet);const n=e;return{page:n,async close(){await n.close(),await a.close()}}}catch(s){throw await e?.close(),await a.close(),s}}
@@ -0,0 +1,21 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{randomUUID as y}from"node:crypto";import{stat as T}from"node:fs/promises";import{join as E}from"node:path";import{defineProjectTool as l}from"@allyhub/build";import{startBrowser as f}from"@allyhub/browser";import{RPC_ERROR as p,RpcError as d}from"@allyhub/protocol";import{openHtml as g,projectPath as F}from"./page.js";import{HTML_TOOLS as c}from"./tools.js";async function w(a,t){let n;try{n=F(t)}catch(e){throw new d(p.invalid,e instanceof Error?e.message:String(e))}if(!(/\.html?$/iu.test(n)&&await T(E(a.root,n)).then(e=>e.isFile(),e=>{if(e.code==="ENOENT")return!1;throw e})))throw new d(p.notFound,`There is no HTML file ${t} in the project.`);return n}const L=`(points) => {
3
+ const part = (e) => e.tagName.toLowerCase() + (e.id ? "#" + e.id : "") +
4
+ [...e.classList].slice(0, 3).map((c) => "." + c).join("");
5
+ const seen = new Set();
6
+ const elements = [];
7
+ for (const p of points) {
8
+ const el = document.elementFromPoint(p.x, p.y);
9
+ if (!el || seen.has(el)) continue;
10
+ seen.add(el);
11
+ const path = [];
12
+ for (let e = el; e && path.length < 5; e = e.parentElement) path.unshift(part(e));
13
+ elements.push({
14
+ selector: path.join(" > "),
15
+ tag: el.tagName.toLowerCase(),
16
+ text: (el.innerText ?? el.textContent ?? "").trim().slice(0, 200),
17
+ });
18
+ }
19
+ const inner = elements.filter((e) => e.tag !== "html" && e.tag !== "body");
20
+ return inner.length > 0 ? inner : elements;
21
+ }`,N=30*6e4;class S{held=new Map;async hold(t,n,s){const e=await f();try{const o=await g(e,t,n,s),r=y(),i=setTimeout(()=>{this.release(r)},N);return i.unref(),this.held.set(r,{browser:e,opened:o,timer:i}),r}catch(o){throw await e.close(),o}}page(t){const n=this.held.get(t);if(!n)throw new d(p.notFound,`No page is held as ${t}: it was let go.`);return n.opened.page}async release(t){const n=this.held.get(t);if(n){this.held.delete(t),clearTimeout(n.timer);try{await n.opened.close()}finally{await n.browser.close()}}}async dispose(){for(const t of[...this.held.keys()])await this.release(t)}}const h=a=>a.held("html/held",()=>new S);async function u(a,t,n,s){const e=await f();try{const o=await g(e,a.root,t,n);try{return await s(o.page)}finally{await o.close()}}finally{await e.close()}}const j={"html/still":l(c["html/still"],async({file:a,width:t,height:n,scale:s,hold:e},o)=>{const r=m=>m.capture({format:"png"});return{image:{mime:"image/png",data:(e!==void 0?await r(h(o).page(e)):await u(o,await w(o,a),{width:t,height:n,scale:s},r)).toString("base64")}}}),"html/at":l(c["html/at"],async({file:a,width:t,height:n,points:s,hold:e},o)=>{const r=m=>m.evaluate(`(${L})(${JSON.stringify(s)})`);return{elements:e!==void 0?await r(h(o).page(e)):await u(o,await w(o,a),{width:t,height:n},r)}}),"html/hold":l(c["html/hold"],async({file:a,width:t,height:n,scale:s},e)=>({hold:await h(e).hold(e.root,await w(e,a),{width:t,height:n,scale:s})})),"html/release":l(c["html/release"],async({hold:a},t)=>(await h(t).release(a),{}))};export default j;
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as t}from"zod";import{PathSchema as i,method as e,toolCaller as r}from"@allyhub/protocol";const a=t.strictObject({file:i}),s={width:t.number().int().positive().max(4096),height:t.number().int().positive().max(4096)};export const HTML_TOOLS={"html/still":e(a.extend({...s,scale:t.number().positive().max(4).default(1),hold:t.string().optional()}),t.strictObject({image:t.strictObject({mime:t.string(),data:t.string()})}),"An HTML file's page drawn at a frame's size from its top, as its frame shows it: what Mark up lays over the frame, which the window cannot read."),"html/hold":e(a.extend({...s,scale:t.number().positive().max(4).default(1)}),t.strictObject({hold:t.string()}),"An HTML file's page opened at a frame's size and kept as it is while a person marks it: html/still and html/at draw and read it as it was, until html/release."),"html/release":e(t.strictObject({hold:t.string()}),t.strictObject({}),"Lets a page held for notes go."),"html/at":e(a.extend({...s,points:t.array(t.strictObject({x:t.number(),y:t.number()})).min(1).max(24),hold:t.string().optional()}),t.strictObject({elements:t.array(t.strictObject({selector:t.string(),tag:t.string(),text:t.string()}))}),"What is at places of an HTML file's page drawn at a frame's size from its top (as html/still draws it): what a person's mark on its frame is on.")},callHtmlTool=r(HTML_TOOLS);
@@ -0,0 +1,2 @@
1
+ work:
2
+ - file: pages/budget.html
@@ -0,0 +1,15 @@
1
+ {
2
+ "item": "pages/budget.html",
3
+ "probes": [
4
+ {
5
+ "at": "[data-testid=\"html-page\"]",
6
+ "part": { "x": 0.03, "y": 0.06, "w": 0.3, "h": 0.06 },
7
+ "finds": "the element html > body > header > h1"
8
+ }
9
+ ],
10
+ "change": {
11
+ "path": "pages/budget.html",
12
+ "from": "Spending stayed under budget",
13
+ "to": "Every team stayed under budget"
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Budget</title>
6
+ <style>
7
+ body {
8
+ margin: 0;
9
+ font: 16px/1.5 sans-serif;
10
+ background: #fdfcf9;
11
+ color: #3d3d3d;
12
+ }
13
+ header {
14
+ padding: 32px 40px;
15
+ background: #dee5f7;
16
+ }
17
+ h1 {
18
+ margin: 0 0 8px;
19
+ font-size: 28px;
20
+ color: #151515;
21
+ }
22
+ main {
23
+ padding: 24px 40px;
24
+ }
25
+ </style>
26
+ </head>
27
+ <body>
28
+ <header>
29
+ <h1>Spending stayed under budget</h1>
30
+ <p>Each team against its plan for the year.</p>
31
+ </header>
32
+ <main>
33
+ <p>Marketing spent the most, then engineering.</p>
34
+ </main>
35
+ </body>
36
+ </html>
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@allyhub/html-extension",
3
+ "version": "0.18.0",
4
+ "type": "module",
5
+ "exports": {
6
+ "./tools": {
7
+ "types": "./dist/tools.d.ts",
8
+ "default": "./dist/tools.js"
9
+ },
10
+ "./package.json": "./package.json",
11
+ "./dist/*": "./dist/*"
12
+ },
13
+ "allyhub": {
14
+ "id": "allyhub.html",
15
+ "engines": "^0.1.0",
16
+ "contributes": {
17
+ "editors": [
18
+ {
19
+ "id": "allyhub.html.page",
20
+ "files": [
21
+ "*.{html,htm}"
22
+ ],
23
+ "noun": "web page",
24
+ "name": {
25
+ "en": "Web page",
26
+ "zh-cn": "网页",
27
+ "zh-tw": "網頁",
28
+ "ja": "ウェブページ",
29
+ "ko": "웹 페이지",
30
+ "es": "Página web",
31
+ "fr": "Page web",
32
+ "de": "Webseite",
33
+ "pt": "Página da web"
34
+ },
35
+ "plural": {
36
+ "en": "Web pages",
37
+ "zh-cn": "网页",
38
+ "zh-tw": "網頁",
39
+ "ja": "ウェブページ",
40
+ "ko": "웹 페이지",
41
+ "es": "Páginas web",
42
+ "fr": "Pages web",
43
+ "de": "Webseiten",
44
+ "pt": "Páginas da web"
45
+ },
46
+ "icon": "app-window",
47
+ "color": "kind-teal",
48
+ "share": true,
49
+ "page": true,
50
+ "module": "@allyhub/html-viewer",
51
+ "markup": "./markup"
52
+ }
53
+ ],
54
+ "projectTools": [
55
+ {
56
+ "name": "html/still",
57
+ "source": "asleep",
58
+ "does": {
59
+ "files": "the HTML file; its page as the agent's own browser draws it"
60
+ },
61
+ "module": "./dist/project-tools.js"
62
+ },
63
+ {
64
+ "name": "html/at",
65
+ "source": "asleep",
66
+ "does": {
67
+ "files": "the HTML file; its page as the agent's own browser reads it"
68
+ },
69
+ "module": "./dist/project-tools.js"
70
+ },
71
+ {
72
+ "name": "html/hold",
73
+ "source": "asleep",
74
+ "does": {
75
+ "files": "the HTML file; its page kept open in a browser"
76
+ },
77
+ "module": "./dist/project-tools.js"
78
+ },
79
+ {
80
+ "name": "html/release",
81
+ "source": "asleep",
82
+ "does": {
83
+ "files": "nothing the agent does: a page kept open for a person's notes closed"
84
+ },
85
+ "module": "./dist/project-tools.js"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ "private": true,
91
+ "license": "SEE LICENSE IN LICENSE.md"
92
+ }