allyhub 0.10.0 → 0.11.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 (357) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/commands/dev.js +2 -2
  3. package/dist/commands/frames/report.js +2 -0
  4. package/dist/commands/frames.js +11 -9
  5. package/dist/commands/render.js +2 -2
  6. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
  7. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  8. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  9. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +29 -0
  10. package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
  11. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
  12. package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
  13. package/dist/node_modules/@allyhub/browser/package.json +9 -1
  14. package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
  15. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  16. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
  17. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
  18. package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
  19. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
  20. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
  21. package/dist/node_modules/@allyhub/build/package.json +1 -1
  22. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  23. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  24. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  25. package/dist/node_modules/@allyhub/check/package.json +1 -1
  26. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  27. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  28. package/dist/node_modules/@allyhub/components/package.json +1 -1
  29. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  30. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  31. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
  32. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  33. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
  34. package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
  35. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  36. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  37. package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
  38. package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
  39. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
  40. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  41. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  42. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  43. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  44. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
  45. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  46. package/dist/node_modules/@allyhub/doc/dist/html.js +15 -59
  47. package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
  48. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  49. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  50. package/dist/node_modules/@allyhub/doc-extension/package.json +12 -14
  51. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
  52. package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
  53. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  54. package/dist/node_modules/@allyhub/export/package.json +1 -1
  55. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  56. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +20 -0
  58. package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  61. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  62. package/dist/node_modules/@allyhub/image-extension/dist/export.js +4 -1
  63. package/dist/node_modules/@allyhub/image-extension/package.json +1 -6
  64. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  65. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  66. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  67. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  68. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  69. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  70. package/dist/node_modules/@allyhub/linkedin-extension/LICENSE +241 -0
  71. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
  72. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
  73. package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
  74. package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
  75. package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
  76. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
  77. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
  78. package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
  79. package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
  80. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
  81. package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
  82. package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
  83. package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
  84. package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
  85. package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
  86. package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
  87. package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
  88. package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
  89. package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
  90. package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
  91. package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
  92. package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
  93. package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
  94. package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
  95. package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
  96. package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
  97. package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
  98. package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
  99. package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
  100. package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
  101. package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
  102. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
  103. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  104. package/dist/node_modules/@allyhub/media/package.json +1 -1
  105. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  106. package/dist/node_modules/@allyhub/model/package.json +1 -1
  107. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  108. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +2 -0
  109. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
  110. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  111. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
  112. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
  113. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +12 -0
  114. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  115. package/dist/node_modules/@allyhub/project/package.json +1 -1
  116. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +8 -0
  117. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +4 -0
  118. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  119. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +6 -0
  120. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  121. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +61 -1
  122. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  123. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -1
  124. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +41 -3
  126. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  127. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
  128. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  129. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
  130. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  131. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +12 -0
  132. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  133. package/dist/node_modules/@allyhub/protocol/package.json +1 -5
  134. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  135. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  136. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  137. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  138. package/dist/node_modules/@allyhub/render/package.json +1 -1
  139. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  140. package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
  141. package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
  142. package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
  143. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
  144. package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
  145. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  146. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  147. package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
  148. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
  149. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
  150. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  151. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  152. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  153. package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
  154. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
  155. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
  156. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
  157. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
  158. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  159. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  160. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  161. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  162. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  163. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  164. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  165. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
  166. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
  167. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  168. package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
  169. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  170. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  171. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
  172. package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -7
  173. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  174. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  175. package/dist/node_modules/@allyhub/slides-extension/package.json +3 -16
  176. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  177. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +1 -1
  178. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  179. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  180. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  181. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
  182. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  183. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +14 -14
  184. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  185. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  186. package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
  187. package/dist/node_modules/@allyhub/video-extension/package.json +2 -4
  188. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  189. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  190. package/dist/node_modules/@allyhub/website/package.json +1 -1
  191. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +5 -5
  192. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -2
  193. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  194. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
  195. package/dist/node_modules/@allyhub/x-extension/package.json +10 -12
  196. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  197. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  198. package/dist/package.json +12 -10
  199. package/dist/works.js +1 -1
  200. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CjAmWsNR.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
  201. package/editor-web/assets/{architecture-WOLXFQ4H-DeeKhyhZ.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
  202. package/editor-web/assets/{architectureDiagram-ZHVYKT53-b32qTaJg.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
  203. package/editor-web/assets/{arrow-up-L4YV_65f.js → arrow-up-B5rJbBv0.js} +1 -1
  204. package/editor-web/assets/article-BUmD3xtR.js +8 -0
  205. package/editor-web/assets/article-DNioBb3p.js +7 -0
  206. package/editor-web/assets/{audio-lines-BFcM7G2L.js → audio-lines-CzuzsGjI.js} +1 -1
  207. package/editor-web/assets/{blockDiagram-RJAE7QA3-BNbnMNmw.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
  208. package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
  209. package/editor-web/assets/button-eGxLxbv9.js +41 -0
  210. package/editor-web/assets/{c4Diagram-XDPPPE54-BEuemvMw.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
  211. package/editor-web/assets/channel-TNPgFDrw.js +1 -0
  212. package/editor-web/assets/chart-C37xvZT2.js +1 -0
  213. package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
  214. package/editor-web/assets/{chunk-2E7WHVMD-Zb5nPx_e.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
  215. package/editor-web/assets/{chunk-4EMNKR2T-DSEM2reX.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
  216. package/editor-web/assets/{chunk-55XCU76K-BOZa_65H.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
  217. package/editor-web/assets/{chunk-7S6XSTFO-DeiGeVpB.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
  218. package/editor-web/assets/{chunk-AQDTSKZB-fPuQFBJc.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
  219. package/editor-web/assets/{chunk-DSNLSHJZ-5vdnoak2.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
  220. package/editor-web/assets/{chunk-HAGFOTED-DFF2mZJ1.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
  221. package/editor-web/assets/{chunk-HNE4Q36P-g6-ZLbTg.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
  222. package/editor-web/assets/{chunk-NQOKRVIF-o3hNcHMJ.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
  223. package/editor-web/assets/{chunk-UHW7PFBP-BQiDI9dK.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
  224. package/editor-web/assets/{chunk-VQ5W62QI-CJlMXWWz.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
  225. package/editor-web/assets/{chunk-WQQL4CDK-pNBU8dXv.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
  226. package/editor-web/assets/{chunk-YZO67HFG-2x-BiWd-.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
  227. package/editor-web/assets/{chunk-ZAUX2LTX-etFStEM8.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
  228. package/editor-web/assets/{chunk-ZCHMQSOR-B3AYRhIY.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
  229. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-6y2yX0oq.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
  230. package/editor-web/assets/{collaborator-LRd0hELn.js → collaborator-B1u2td9m.js} +1 -1
  231. package/editor-web/assets/{createLucideIcon-CPS-TrJJ.js → createLucideIcon-GFZ_fxLc.js} +1 -1
  232. package/editor-web/assets/{cynefin-EF2NZ3EQ-CX4BTQQe.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
  233. package/editor-web/assets/{cynefinDiagram-WF24UDRP-LbDkOTy3.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
  234. package/editor-web/assets/{dagre-NK4GIZVX-wCKQk7hi.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
  235. package/editor-web/assets/{diagram-CBK3MWTC-a9fofQwk.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
  236. package/editor-web/assets/{diagram-I5XIIV2D-UCLZWch5.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
  237. package/editor-web/assets/{diagram-ODIL2UCW-CAEe88Lp.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
  238. package/editor-web/assets/{diagram-PFBEJUXE-Cp1o45bs.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
  239. package/editor-web/assets/{diagram-RJA3I4VV-c6OVxDyq.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
  240. package/editor-web/assets/{diagram-TYUNFSNR-BVRWslDM.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
  241. package/editor-web/assets/dist-BGRwhCQO.js +1 -0
  242. package/editor-web/assets/{dist-DwGhfliS.js → dist-BW4X7BrF.js} +1 -1
  243. package/editor-web/assets/dist-BgDRE85b.js +2 -0
  244. package/editor-web/assets/dist-Blq5nJnU.js +24 -0
  245. package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
  246. package/editor-web/assets/dist-C1emZ9wX.js +37 -0
  247. package/editor-web/assets/dist-CC7OeU1e.js +6 -0
  248. package/editor-web/assets/{dist-j6ZLVcgf.js → dist-CX-fiPSn.js} +16 -16
  249. package/editor-web/assets/dist-C_VvG-_9.js +5 -0
  250. package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
  251. package/editor-web/assets/dist-D2k6w-_a.js +1 -0
  252. package/editor-web/assets/dist-DDv_SbKw.js +84 -0
  253. package/editor-web/assets/dist-DEoEO4zs.js +1 -0
  254. package/editor-web/assets/dist-DlDxxPIP.js +16 -0
  255. package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
  256. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-KdOTJgFu.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
  257. package/editor-web/assets/{elk-QONTBCTQ-Cmlrp7qB.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
  258. package/editor-web/assets/{erDiagram-KYQIGQAA-CBM7-aQm.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
  259. package/editor-web/assets/{eventmodeling-K75KTNOO-CEoJkbuW.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
  260. package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
  261. package/editor-web/assets/{ganttDiagram-R7GPNTJY-D4S6ZSYD.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
  262. package/editor-web/assets/{gitGraph-VSP46ZUC-BvkL6RSh.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
  263. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-lTGguloH.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
  264. package/editor-web/assets/{hint-BimUgJms.js → hint-B8JpEypy.js} +1 -1
  265. package/editor-web/assets/index-CgB5osVc.js +28 -0
  266. package/editor-web/assets/index-Daytem9N.css +2 -0
  267. package/editor-web/assets/{info-OHQRW6UA-DvKzqNvp.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
  268. package/editor-web/assets/{infoDiagram-MVDRKAX5-D7hCpehs.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
  269. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Bg93sZQe.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
  270. package/editor-web/assets/{italic-BQBwRTe8.js → italic-D10w8n6C.js} +1 -1
  271. package/editor-web/assets/{journeyDiagram-BOSHW7O7-CKm_KONJ.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
  272. package/editor-web/assets/{kanban-definition-FNSA4HC5-BKknnpTR.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
  273. package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
  274. package/editor-web/assets/link-BC5xK1-1.js +1 -0
  275. package/editor-web/assets/{mermaid-parser.core-BzqkDnqL.js → mermaid-parser.core-req5LE0X.js} +3 -3
  276. package/editor-web/assets/{mermaid.core-CEpvTOAe.js → mermaid.core-zFwZug4C.js} +4 -4
  277. package/editor-web/assets/{mindmap-definition-6OY57UG3-BJ0qG8Wi.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
  278. package/editor-web/assets/minus-DaWs5i8B.js +1 -0
  279. package/editor-web/assets/{packet-JDAUHWVQ-ew3kvyFm.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
  280. package/editor-web/assets/palette-BIOudGkm.js +1 -0
  281. package/editor-web/assets/{pegDiagram-ECIUJNBX-DqUS2xit.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
  282. package/editor-web/assets/{pie-XZMESJXO-DTIAMPGm.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
  283. package/editor-web/assets/{pieDiagram-GNMPY74T-DoKOE02-.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
  284. package/editor-web/assets/play-CrMmPghG.js +1 -0
  285. package/editor-web/assets/{progress-CPEbDOoN.js → progress-DE4C5_3x.js} +1 -1
  286. package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
  287. package/editor-web/assets/{quadrantDiagram-D57K4MC3-DauOpYun.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
  288. package/editor-web/assets/{radar-ABXABTNO-BvMJXUU-.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
  289. package/editor-web/assets/{railroad-I3PHUGI6-D3jdJmhM.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
  290. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Dm8ZpmPj.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
  291. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
  292. package/editor-web/assets/{railroad-peg-JR7BVNR7-CMrQL_7U.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
  293. package/editor-web/assets/{railroadDiagram-Y72NRBL7-y99z0C7i.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
  294. package/editor-web/assets/{react-DztDSW4P.js → react-WA6wlt8S.js} +1 -1
  295. package/editor-web/assets/{repeat-2-DJi4LW5C.js → repeat-2-VQP1EVOZ.js} +1 -1
  296. package/editor-web/assets/{requirementDiagram-EQYSW5RA-jMr_uoF6.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
  297. package/editor-web/assets/{row-ClBisiBs.js → row-BRlEWRrK.js} +1 -1
  298. package/editor-web/assets/{sankeyDiagram-SY24JHO5-DcUyx03Q.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
  299. package/editor-web/assets/{schemas-68mjUjP5.js → schemas-VikZYZIK.js} +1 -1
  300. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-R4X8wRCd.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
  301. package/editor-web/assets/{session-2u9U7koW.js → session-Do9AqS38.js} +1 -1
  302. package/editor-web/assets/{slides-BByblSSR.js → slides-diTEQ3C5.js} +1 -1
  303. package/editor-web/assets/{snapshots-C9KV-Y2_.js → snapshots-BUGlKQIB.js} +1 -1
  304. package/editor-web/assets/{sound-DExlNJbb.js → sound-Bj3o9_Fa.js} +1 -1
  305. package/editor-web/assets/split-CNU1RHcX.js +3 -0
  306. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-BqvXKbCA.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
  307. package/editor-web/assets/{strikethrough-CyUBnGTl.js → strikethrough-CfXx6IYH.js} +1 -1
  308. package/editor-web/assets/{svg-lBRT-uhy.js → svg-Cx50MpxK.js} +1 -1
  309. package/editor-web/assets/{swatch-1c1uVn1z.js → swatch-WeJD41aW.js} +1 -1
  310. package/editor-web/assets/{swimlanes-B3ENRKFQ-hjTXIc6M.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
  311. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
  312. package/editor-web/assets/{switch-D0K-K8-C.js → switch-N0G_sbqt.js} +1 -1
  313. package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
  314. package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
  315. package/editor-web/assets/table-B6hVZAMi.js +1 -0
  316. package/editor-web/assets/{tabs-CxxOnGLR.js → tabs-DIFDqj-l.js} +1 -1
  317. package/editor-web/assets/{textarea-Fu93tFO3.js → textarea-tEWvBY9p.js} +1 -1
  318. package/editor-web/assets/{timeline-definition-JXYKGLGB-BcSoN4Dq.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
  319. package/editor-web/assets/{trash-2-BAKAeziW.js → trash-2-BP6nqpg2.js} +1 -1
  320. package/editor-web/assets/{treeView-D4JQ5SDB-CsFN2jrc.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
  321. package/editor-web/assets/{treemap-SAJKECNS-DP1eqXJ2.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
  322. package/editor-web/assets/{undo-2-DQ5CBmki.js → undo-2-CHR0nvWL.js} +1 -1
  323. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-BGxa0osF.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
  324. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-D2XhTF49.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
  325. package/editor-web/assets/{video-CDbPX4Cr.js → video-BlvmR8BK.js} +1 -1
  326. package/editor-web/assets/{wardley-7MLQ67FV-DM3jMAbZ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
  327. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bf-DaZEg.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
  328. package/editor-web/assets/words-D_4T9Adq.js +3 -0
  329. package/editor-web/assets/words-WgdEQdYP.js +2 -0
  330. package/editor-web/assets/{xychartDiagram-4URNHDU4-dp-mdcWd.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
  331. package/editor-web/index.html +6 -6
  332. package/package.json +8 -2
  333. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +0 -337
  334. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +0 -2
  335. package/editor-web/assets/alt-DnBZJzEh.js +0 -4
  336. package/editor-web/assets/article-DLMjAdbP.js +0 -73
  337. package/editor-web/assets/button-Chk675Xu.js +0 -41
  338. package/editor-web/assets/channel-EzYq4r0d.js +0 -1
  339. package/editor-web/assets/chart-Be9Hj5GL.js +0 -1
  340. package/editor-web/assets/choice-BgmBh4yu.js +0 -1
  341. package/editor-web/assets/dist--KKyT5zP.js +0 -340
  342. package/editor-web/assets/dist-1k0MHB3i.js +0 -1
  343. package/editor-web/assets/dist-B9KHJqL5.js +0 -4
  344. package/editor-web/assets/dist-BbJyrhIY.js +0 -1
  345. package/editor-web/assets/dist-CJXCQxQM.js +0 -37
  346. package/editor-web/assets/dist-D9xQGwe9.js +0 -5
  347. package/editor-web/assets/dist-DFiLzbx8.js +0 -219
  348. package/editor-web/assets/dist-DIPV6xfF.js +0 -2
  349. package/editor-web/assets/dist-Dp-fQMtx.js +0 -6
  350. package/editor-web/assets/dist-Duw28VxJ.js +0 -16
  351. package/editor-web/assets/dist-OBE2IIYP.js +0 -24
  352. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +0 -1
  353. package/editor-web/assets/index-C-i_iuxN.js +0 -28
  354. package/editor-web/assets/index-Cxh_Shkm.css +0 -2
  355. package/editor-web/assets/minus-oPj1GxwA.js +0 -1
  356. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +0 -8
  357. package/editor-web/assets/syntax-Bih_jv7W.js +0 -1
@@ -229,6 +229,13 @@ export interface LocatedLayer {
229
229
  /** The module it is written in, where another item's (a video drawn inside this one), project-relative. */
230
230
  piece?: string;
231
231
  }
232
+ /** The one layer a person picked at a point (docs/design/notes.md, "Select"): what it is, and its edge, closed rings of points. */
233
+ export interface PickedLayer extends LocatedLayer {
234
+ outline: {
235
+ x: number;
236
+ y: number;
237
+ }[][];
238
+ }
232
239
  /** Where a player starts: a moment, or a part and how far into it (the same share of it when its length is no longer `dur`). */
233
240
  export interface PlayAt {
234
241
  /** Seconds. */
@@ -269,6 +276,11 @@ export interface StageBridge {
269
276
  play(options: PlayOptions): Promise<PlayControl>;
270
277
  /** What a person's mark is on, in shares of the stage. */
271
278
  locate(mark: NoteShape): LocatedLayer[];
279
+ /** The one thing in front at a point, with its edge, both in shares of the stage; none where nothing is drawn there. */
280
+ pick(at: {
281
+ x: number;
282
+ y: number;
283
+ }): PickedLayer | undefined;
272
284
  /**
273
285
  * An item's code as data, its module run and nothing drawn, as the
274
286
  * message its editor hears (a deck's DeckCode and theme), from the
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/project",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -75,6 +75,10 @@ export declare const ACCOUNT_CALLS: {
75
75
  renewsAt: z.ZodISODateTime;
76
76
  }, z.core.$strip>>>;
77
77
  bought: z.ZodDefault<z.ZodNumber>;
78
+ expiring: z.ZodDefault<z.ZodArray<z.ZodObject<{
79
+ credits: z.ZodNumber;
80
+ expiresAt: z.ZodISODateTime;
81
+ }, z.core.$strip>>>;
78
82
  customer: z.ZodDefault<z.ZodBoolean>;
79
83
  autoTopUp: z.ZodNullable<z.ZodObject<{
80
84
  below: z.ZodNumber;
@@ -281,6 +285,10 @@ export declare const ACCOUNT_CALLS: {
281
285
  renewsAt: z.ZodISODateTime;
282
286
  }, z.core.$strip>>>;
283
287
  bought: z.ZodDefault<z.ZodNumber>;
288
+ expiring: z.ZodDefault<z.ZodArray<z.ZodObject<{
289
+ credits: z.ZodNumber;
290
+ expiresAt: z.ZodISODateTime;
291
+ }, z.core.$strip>>>;
284
292
  customer: z.ZodDefault<z.ZodBoolean>;
285
293
  autoTopUp: z.ZodNullable<z.ZodObject<{
286
294
  below: z.ZodNumber;
@@ -42,6 +42,10 @@ export declare const BillingSummarySchema: z.ZodObject<{
42
42
  renewsAt: z.ZodISODateTime;
43
43
  }, z.core.$strip>>>;
44
44
  bought: z.ZodDefault<z.ZodNumber>;
45
+ expiring: z.ZodDefault<z.ZodArray<z.ZodObject<{
46
+ credits: z.ZodNumber;
47
+ expiresAt: z.ZodISODateTime;
48
+ }, z.core.$strip>>>;
45
49
  customer: z.ZodDefault<z.ZodBoolean>;
46
50
  autoTopUp: z.ZodNullable<z.ZodObject<{
47
51
  below: z.ZodNumber;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{openEnum as n}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=t.object({credits:t.number(),held:t.number(),owed:t.number(),frozen:t.string().nullable().default(null),plan:t.object({id:t.string(),name:t.string(),interval:n(BILLING_INTERVALS),status:t.string(),renewsAt:t.iso.datetime().nullable(),endsAt:t.iso.datetime().nullable(),monthlyCredits:t.number().default(0),price:t.object({amountCents:t.number(),currency:t.string()}).nullable().default(null)}).nullable(),allowance:t.object({total:t.number(),used:t.number(),renewsAt:t.iso.datetime()}).nullable().default(null),bought:t.number().default(0),customer:t.boolean().default(!1),autoTopUp:t.object({below:t.number(),amountCents:t.number(),monthlyLimitCents:t.number().nullable().default(null),chargedThisMonthCents:t.number().default(0),stopped:n(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),BILLING_PLANS_PATH="/api/billing/plans",BillingPlansSchema=t.object({plans:t.array(t.object({id:t.string(),name:t.string(),family:t.string().nullable().default(null),recommended:t.boolean().default(!1),monthlyCredits:t.number(),prices:t.array(t.object({interval:n(BILLING_INTERVALS),amountCents:t.number(),currency:t.string()}))})),topUp:t.object({currency:t.string(),creditsPerDollar:t.number(),minCents:t.number(),maxCents:t.number(),presetsCents:t.array(t.number()).default([])}),welcomeCredits:t.number().optional()}),BILLING_USAGE_PATH="/api/billing/usage",SPEND_KINDS=["models","tools","studio","other"],BillingUsageSchema=t.object({days:t.array(t.object({day:t.iso.date(),credits:t.number(),byKind:t.record(t.string(),t.number()).default({})}))}),BILLING_SPENDS_PATH="/api/billing/spends",BillingSpendsSchema=t.object({spends:t.array(t.object({at:t.string(),kind:n(SPEND_KINDS),what:t.string().nullable(),seconds:t.number().nullable(),member:t.string().nullable(),credits:t.number()})),more:t.boolean()}),BILLING_CHECKOUT_PATH="/api/billing/checkout",CheckoutRequestSchema=t.union([t.strictObject({plan:t.string(),interval:t.enum(BILLING_INTERVALS)}),t.strictObject({topUpCents:t.number().int()})]),BILLING_PORTAL_PATH="/api/billing/portal",PortalRequestSchema=t.union([t.strictObject({flow:t.enum(["home","payment_method","cancel"])}),t.strictObject({flow:t.literal("change_plan"),plan:t.string(),interval:t.enum(BILLING_INTERVALS)})]).default({flow:"home"}),BILLING_RESUME_PATH="/api/billing/resume",BILLING_PAYMENT_PATH="/api/billing/payment",BillingPaymentSchema=t.object({card:t.object({brand:t.string(),last4:t.string(),expMonth:t.number(),expYear:t.number()}).nullable(),email:t.string().nullable()}),BILLING_INVOICES_PATH="/api/billing/invoices",BillingInvoicesSchema=t.object({invoices:t.array(t.object({id:t.string(),number:t.string().nullable(),createdAt:t.string(),kind:n(["plan","credits"]),totalCents:t.number(),currency:t.string(),status:t.string(),pdf:t.string().nullable(),url:t.string().nullable()}))}),BILLING_TOP_UP_PATH="/api/billing/top-up",TopUpRequestSchema=t.strictObject({topUpCents:t.number().int()}),BILLING_REQUEST_PATH="/api/billing/request",AUTO_TOP_UP_PATH="/api/billing/auto-top-up",AutoTopUpRequestSchema=t.strictObject({below:t.number().nonnegative(),amountCents:t.number().int().positive(),monthlyLimitCents:t.number().int().positive().nullable().optional(),newCard:t.boolean().optional()}),BILLING_REFUSALS=["top_up_amount","monthly_limit","has_plan","no_plan","no_such_plan","not_customer","no_card","frozen","not_charged","asked_today"],BILLING_PAGE_PATH="/settings/plan",BILLING_PAID_PATH="/settings/plan?paid=1",LLM_MODELS_PATH="/api/llm/models",LLM_MESSAGES_PATH="/api/llm/v1/messages",MODEL_TIERS=["premium","standard","efficient"];const a={tier:n(MODEL_TIERS).optional(),maker:t.string().min(1).optional()};export const ModelCatalogSchema=t.object({models:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...a,reasoning:t.boolean().optional(),input:t.array(t.string()).optional(),contextWindow:t.number().int().positive().optional(),maxOutput:t.number().int().positive().optional()})).min(1),defaultModel:t.string().min(1),needPlan:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...a})).default([])}),JsonSchemaSchema=t.record(t.string(),t.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],WORK_KINDS=["data","ai"],CatalogWorkSchema=t.object({id:t.string().min(1),title:t.string().min(1),description:t.string().min(1),kind:n(WORK_KINDS).default("data"),line:t.string().optional()}),CatalogToolSchema=t.object({name:t.string().min(1),work:t.string().min(1),title:t.string().min(1),description:t.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:t.boolean(),example:t.record(t.string(),t.unknown()).optional(),price:t.object({credits:t.number().nonnegative(),per:n(PRICE_UNITS),varies:t.boolean()}).optional(),shown:t.object({name:t.string(),line:t.string(),section:n(TOOL_SECTIONS)}).optional()}),CatalogSchema=t.object({version:t.string().min(1),works:t.array(CatalogWorkSchema),tools:t.array(CatalogToolSchema)}),CAPABILITIES_PATH="/api/capabilities",CapabilitiesSchema=t.object({off:t.object({works:t.array(t.string()),tools:t.array(t.string())})}),CapabilityRequestSchema=t.union([t.strictObject({work:t.string().min(1),on:t.boolean()}),t.strictObject({tool:t.string().min(1),on:t.boolean()})]),EDITORS_PATH="/api/editors",EditorsSchema=t.object({editors:t.array(t.object({id:t.string().min(1),name:t.record(t.string(),t.string()),plural:t.record(t.string(),t.string()).optional(),line:t.record(t.string(),t.string()),icon:t.string().optional(),color:t.string().optional()}))}),toolCallsPath=e=>`/api/tools/${encodeURIComponent(e)}/calls`,callPath=e=>`/api/calls/${encodeURIComponent(e)}`,ToolCallRequestSchema=t.strictObject({input:t.record(t.string(),t.unknown())}),CALL_STATUS=["working","completed","failed"],ToolCallSchema=t.object({id:t.string().min(1),tool:t.string().min(1),status:n(CALL_STATUS),output:t.unknown().optional(),error:t.object({kind:t.string().min(1),message:t.string().min(1)}).optional(),credits:t.number().nonnegative().optional(),pollAfterMs:t.number().int().nonnegative().optional(),createdAt:t.string(),endedAt:t.string().optional()});const i="ally://data-tool-results/";export const allyFilePath=(e,o)=>`${i}${encodeURIComponent(e)}/${encodeURIComponent(o)}`;export function parseAllyFilePath(e){if(!e.startsWith(i))return;const[o,r,...s]=e.slice(i.length).split("/");if(!(!o||!r||s.length>0))try{return{id:decodeURIComponent(o),name:decodeURIComponent(r)}}catch{return}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=t.strictObject({name:t.string().min(1).max(255),size:t.int().positive().max(FILE_MAX_BYTES),sha256:t.string().regex(/^[0-9a-f]{64}$/u),contentType:t.string().min(1).max(255)}),FileCreatedSchema=t.object({id:t.string().min(1),upload:t.object({url:t.url(),headers:t.record(t.string(),t.string())}).nullable()}),fileDonePath=e=>`${FILES_PATH}/${encodeURIComponent(e)}/done`,UploadedFileSchema=t.object({id:t.string().min(1),name:t.string()}),FileContentResponseSchema=t.object({url:t.url()}),fileContentPath=(e,o)=>`${FILES_PATH}/${encodeURIComponent(e)}/content?disposition=${o}`;
2
+ import{z as t}from"zod";import{openEnum as n}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=t.object({credits:t.number(),held:t.number(),owed:t.number(),frozen:t.string().nullable().default(null),plan:t.object({id:t.string(),name:t.string(),interval:n(BILLING_INTERVALS),status:t.string(),renewsAt:t.iso.datetime().nullable(),endsAt:t.iso.datetime().nullable(),monthlyCredits:t.number().default(0),price:t.object({amountCents:t.number(),currency:t.string()}).nullable().default(null)}).nullable(),allowance:t.object({total:t.number(),used:t.number(),renewsAt:t.iso.datetime()}).nullable().default(null),bought:t.number().default(0),expiring:t.array(t.object({credits:t.number(),expiresAt:t.iso.datetime()})).default([]),customer:t.boolean().default(!1),autoTopUp:t.object({below:t.number(),amountCents:t.number(),monthlyLimitCents:t.number().nullable().default(null),chargedThisMonthCents:t.number().default(0),stopped:n(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),BILLING_PLANS_PATH="/api/billing/plans",BillingPlansSchema=t.object({plans:t.array(t.object({id:t.string(),name:t.string(),family:t.string().nullable().default(null),recommended:t.boolean().default(!1),monthlyCredits:t.number(),prices:t.array(t.object({interval:n(BILLING_INTERVALS),amountCents:t.number(),currency:t.string()}))})),topUp:t.object({currency:t.string(),creditsPerDollar:t.number(),minCents:t.number(),maxCents:t.number(),presetsCents:t.array(t.number()).default([])}),welcomeCredits:t.number().optional()}),BILLING_USAGE_PATH="/api/billing/usage",SPEND_KINDS=["models","tools","studio","other"],BillingUsageSchema=t.object({days:t.array(t.object({day:t.iso.date(),credits:t.number(),byKind:t.record(t.string(),t.number()).default({})}))}),BILLING_SPENDS_PATH="/api/billing/spends",BillingSpendsSchema=t.object({spends:t.array(t.object({at:t.string(),kind:n(SPEND_KINDS),what:t.string().nullable(),seconds:t.number().nullable(),member:t.string().nullable(),credits:t.number()})),more:t.boolean()}),BILLING_CHECKOUT_PATH="/api/billing/checkout",CheckoutRequestSchema=t.union([t.strictObject({plan:t.string(),interval:t.enum(BILLING_INTERVALS)}),t.strictObject({topUpCents:t.number().int()})]),BILLING_PORTAL_PATH="/api/billing/portal",PortalRequestSchema=t.union([t.strictObject({flow:t.enum(["home","payment_method","cancel"])}),t.strictObject({flow:t.literal("change_plan"),plan:t.string(),interval:t.enum(BILLING_INTERVALS)})]).default({flow:"home"}),BILLING_RESUME_PATH="/api/billing/resume",BILLING_PAYMENT_PATH="/api/billing/payment",BillingPaymentSchema=t.object({card:t.object({brand:t.string(),last4:t.string(),expMonth:t.number(),expYear:t.number()}).nullable(),email:t.string().nullable()}),BILLING_INVOICES_PATH="/api/billing/invoices",BillingInvoicesSchema=t.object({invoices:t.array(t.object({id:t.string(),number:t.string().nullable(),createdAt:t.string(),kind:n(["plan","credits"]),totalCents:t.number(),currency:t.string(),status:t.string(),pdf:t.string().nullable(),url:t.string().nullable()}))}),BILLING_TOP_UP_PATH="/api/billing/top-up",TopUpRequestSchema=t.strictObject({topUpCents:t.number().int()}),BILLING_REQUEST_PATH="/api/billing/request",AUTO_TOP_UP_PATH="/api/billing/auto-top-up",AutoTopUpRequestSchema=t.strictObject({below:t.number().nonnegative(),amountCents:t.number().int().positive(),monthlyLimitCents:t.number().int().positive().nullable().optional(),newCard:t.boolean().optional()}),BILLING_REFUSALS=["top_up_amount","monthly_limit","has_plan","no_plan","no_such_plan","not_customer","no_card","frozen","not_charged","asked_today"],BILLING_PAGE_PATH="/settings/plan",BILLING_PAID_PATH="/settings/plan?paid=1",LLM_MODELS_PATH="/api/llm/models",LLM_MESSAGES_PATH="/api/llm/v1/messages",MODEL_TIERS=["premium","standard","efficient"];const a={tier:n(MODEL_TIERS).optional(),maker:t.string().min(1).optional()};export const ModelCatalogSchema=t.object({models:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...a,reasoning:t.boolean().optional(),input:t.array(t.string()).optional(),contextWindow:t.number().int().positive().optional(),maxOutput:t.number().int().positive().optional()})).min(1),defaultModel:t.string().min(1),needPlan:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...a})).default([])}),JsonSchemaSchema=t.record(t.string(),t.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],WORK_KINDS=["data","ai"],CatalogWorkSchema=t.object({id:t.string().min(1),title:t.string().min(1),description:t.string().min(1),kind:n(WORK_KINDS).default("data"),line:t.string().optional()}),CatalogToolSchema=t.object({name:t.string().min(1),work:t.string().min(1),title:t.string().min(1),description:t.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:t.boolean(),example:t.record(t.string(),t.unknown()).optional(),price:t.object({credits:t.number().nonnegative(),per:n(PRICE_UNITS),varies:t.boolean()}).optional(),shown:t.object({name:t.string(),line:t.string(),section:n(TOOL_SECTIONS)}).optional()}),CatalogSchema=t.object({version:t.string().min(1),works:t.array(CatalogWorkSchema),tools:t.array(CatalogToolSchema)}),CAPABILITIES_PATH="/api/capabilities",CapabilitiesSchema=t.object({off:t.object({works:t.array(t.string()),tools:t.array(t.string())})}),CapabilityRequestSchema=t.union([t.strictObject({work:t.string().min(1),on:t.boolean()}),t.strictObject({tool:t.string().min(1),on:t.boolean()})]),EDITORS_PATH="/api/editors",EditorsSchema=t.object({editors:t.array(t.object({id:t.string().min(1),name:t.record(t.string(),t.string()),plural:t.record(t.string(),t.string()).optional(),line:t.record(t.string(),t.string()),icon:t.string().optional(),color:t.string().optional()}))}),toolCallsPath=e=>`/api/tools/${encodeURIComponent(e)}/calls`,callPath=e=>`/api/calls/${encodeURIComponent(e)}`,ToolCallRequestSchema=t.strictObject({input:t.record(t.string(),t.unknown())}),CALL_STATUS=["working","completed","failed"],ToolCallSchema=t.object({id:t.string().min(1),tool:t.string().min(1),status:n(CALL_STATUS),output:t.unknown().optional(),error:t.object({kind:t.string().min(1),message:t.string().min(1)}).optional(),credits:t.number().nonnegative().optional(),pollAfterMs:t.number().int().nonnegative().optional(),createdAt:t.string(),endedAt:t.string().optional()});const i="ally://data-tool-results/";export const allyFilePath=(e,o)=>`${i}${encodeURIComponent(e)}/${encodeURIComponent(o)}`;export function parseAllyFilePath(e){if(!e.startsWith(i))return;const[o,r,...s]=e.slice(i.length).split("/");if(!(!o||!r||s.length>0))try{return{id:decodeURIComponent(o),name:decodeURIComponent(r)}}catch{return}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=t.strictObject({name:t.string().min(1).max(255),size:t.int().positive().max(FILE_MAX_BYTES),sha256:t.string().regex(/^[0-9a-f]{64}$/u),contentType:t.string().min(1).max(255)}),FileCreatedSchema=t.object({id:t.string().min(1),upload:t.object({url:t.url(),headers:t.record(t.string(),t.string())}).nullable()}),fileDonePath=e=>`${FILES_PATH}/${encodeURIComponent(e)}/done`,UploadedFileSchema=t.object({id:t.string().min(1),name:t.string()}),FileContentResponseSchema=t.object({url:t.url()}),fileContentPath=(e,o)=>`${FILES_PATH}/${encodeURIComponent(e)}/content?disposition=${o}`;
@@ -191,6 +191,7 @@ export declare const HOST_METHODS: {
191
191
  width: z.ZodNumber;
192
192
  height: z.ZodNumber;
193
193
  }, z.core.$strict>>;
194
+ selection: z.ZodOptional<z.ZodBoolean>;
194
195
  }, z.core.$strict>, z.ZodObject<{
195
196
  begun: z.ZodBoolean;
196
197
  }, z.core.$strict>>;
@@ -233,6 +234,10 @@ export declare const HOST_NOTIFICATIONS: {
233
234
  readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
234
235
  revision: z.ZodInt;
235
236
  }, z.core.$strict>>;
237
+ readonly "items/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
238
+ item: z.ZodString;
239
+ paths: z.ZodArray<z.ZodString>;
240
+ }, z.core.$strict>>;
236
241
  readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
237
242
  status: z.ZodEnum<{
238
243
  off: "off";
@@ -559,6 +564,7 @@ export declare const EDITOR_HOST_METHODS: {
559
564
  width: z.ZodNumber;
560
565
  height: z.ZodNumber;
561
566
  }, z.core.$strict>>;
567
+ selection: z.ZodOptional<z.ZodBoolean>;
562
568
  }, z.core.$strict>, z.ZodObject<{
563
569
  begun: z.ZodBoolean;
564
570
  }, z.core.$strict>>;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{FILE_METHODS as r,FILE_NOTIFICATIONS as a,FolderSchema as i,PathSchema as o}from"./files.js";import{method as e,notification as n}from"./jsonrpc.js";import{KindInfoSchema as h}from"./kinds.js";import{NoteRectSchema as c}from"./notes.js";import{PlaceSchema as s}from"./place.js";import{AgentHereSchema as l,PRESENCE_METHODS as m,PRESENCE_NOTIFICATIONS as p}from"./presence.js";import{TOOL_NOTIFICATIONS as d}from"./tools.js";export{PLACE_PARAM,PlaceSchema,placeIn,placeParams}from"./place.js";export const ThemeSchema=t.enum(["light","dark"]),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),readOnly:t.boolean().optional(),viewer:t.boolean().optional(),place:s.optional(),item:t.strictObject({id:o,kind:t.string().min(1).optional(),dir:i,entry:o,kindInfo:h}),editor:t.string().min(1)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"agent/here":e(l,t.strictObject({}),"Says whether the project's agent is in the item and what it does there, and whether the editor follows it, for a host that draws the agent's name itself (HostContext's `commands`); the host's button asks back with `editor/command`'s `follow` or `unfollow`."),"editor/place":e(t.strictObject({place:s}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`). The place is the editor's, in the shape its `editors` contribution's schema says; the host keeps it unread."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:c.optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Mark up on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person tried to change what a read-only host shows (`readOnly`): the host offers to wake the machine that changes it; false where nothing does."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":n(HostContextSchema,"The language, theme or agent changed."),"editor/command":n(t.strictObject({command:t.string().min(1),open:t.boolean().optional()}),"The host around the editor asked it to run a command: what its own shortcut does (Export, ⌘E), or a command its extension contributes."),...a,...d,...p},EDITOR_HOST_METHODS={...r,...HOST_METHODS,...m};
2
+ import{z as t}from"zod";import{FILE_METHODS as r,FILE_NOTIFICATIONS as a,FolderSchema as i,PathSchema as o}from"./files.js";import{method as e,notification as n}from"./jsonrpc.js";import{KindInfoSchema as h}from"./kinds.js";import{NoteRectSchema as c}from"./notes.js";import{PlaceSchema as s}from"./place.js";import{AgentHereSchema as l,PRESENCE_METHODS as m,PRESENCE_NOTIFICATIONS as p}from"./presence.js";import{TOOL_NOTIFICATIONS as d}from"./tools.js";export{PLACE_PARAM,PlaceSchema,placeIn,placeParams}from"./place.js";export const ThemeSchema=t.enum(["light","dark"]),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),readOnly:t.boolean().optional(),viewer:t.boolean().optional(),place:s.optional(),item:t.strictObject({id:o,kind:t.string().min(1).optional(),dir:i,entry:o,kindInfo:h}),editor:t.string().min(1)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"agent/here":e(l,t.strictObject({}),"Says whether the project's agent is in the item and what it does there, and whether the editor follows it, for a host that draws the agent's name itself (HostContext's `commands`); the host's button asks back with `editor/command`'s `follow` or `unfollow`."),"editor/place":e(t.strictObject({place:s}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`). The place is the editor's, in the shape its `editors` contribution's schema says; the host keeps it unread."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:c.optional(),selection:t.boolean().optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Mark up on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person pressed an Edit of the editor's own (a website's view, with no machine to run its server) on a read-only host (`readOnly`): the host wakes the machine that changes it; false where nothing does. Never sent for a key pressed in the item."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":n(HostContextSchema,"The language, theme or agent changed."),"editor/command":n(t.strictObject({command:t.string().min(1),open:t.boolean().optional()}),"The host around the editor asked it to run a command: what its own shortcut does (Export, ⌘E), or a command its extension contributes."),...a,...d,...p},EDITOR_HOST_METHODS={...r,...HOST_METHODS,...m};
@@ -1,7 +1,9 @@
1
1
  import { z } from "zod";
2
2
  /** What the window asks the page. */
3
3
  export declare const FRAME_METHODS: {
4
- readonly "note/hold": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
4
+ readonly "note/hold": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
5
+ selection: z.ZodOptional<z.ZodBoolean>;
6
+ }, z.core.$strict>, z.ZodObject<{
5
7
  key: z.ZodString;
6
8
  what: z.ZodString;
7
9
  source: z.ZodOptional<z.ZodObject<{
@@ -9,6 +11,31 @@ export declare const FRAME_METHODS: {
9
11
  line: z.ZodOptional<z.ZodInt>;
10
12
  endLine: z.ZodOptional<z.ZodInt>;
11
13
  }, z.core.$strict>>;
14
+ selected: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ element: z.ZodObject<{
16
+ name: z.ZodString;
17
+ source: z.ZodOptional<z.ZodObject<{
18
+ path: z.ZodString;
19
+ line: z.ZodOptional<z.ZodInt>;
20
+ endLine: z.ZodOptional<z.ZodInt>;
21
+ }, z.core.$strict>>;
22
+ text: z.ZodOptional<z.ZodString>;
23
+ regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ in: z.ZodString;
25
+ file: z.ZodOptional<z.ZodString>;
26
+ width: z.ZodNumber;
27
+ height: z.ZodNumber;
28
+ path: z.ZodString;
29
+ area: z.ZodBoolean;
30
+ scale: z.ZodNumber;
31
+ }, z.core.$strict>>>;
32
+ }, z.core.$strict>;
33
+ outline: z.ZodArray<z.ZodArray<z.ZodObject<{
34
+ x: z.ZodNumber;
35
+ y: z.ZodNumber;
36
+ }, z.core.$strict>>>;
37
+ where: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strict>>>;
12
39
  }, z.core.$strict>>;
13
40
  readonly "note/locate": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
14
41
  shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -65,6 +92,38 @@ export declare const FRAME_METHODS: {
65
92
  }, z.core.$strict>>;
66
93
  where: z.ZodOptional<z.ZodString>;
67
94
  }, z.core.$strict>>;
95
+ readonly "note/pick": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
96
+ at: z.ZodObject<{
97
+ x: z.ZodNumber;
98
+ y: z.ZodNumber;
99
+ }, z.core.$strict>;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ pick: z.ZodOptional<z.ZodObject<{
102
+ element: z.ZodObject<{
103
+ name: z.ZodString;
104
+ source: z.ZodOptional<z.ZodObject<{
105
+ path: z.ZodString;
106
+ line: z.ZodOptional<z.ZodInt>;
107
+ endLine: z.ZodOptional<z.ZodInt>;
108
+ }, z.core.$strict>>;
109
+ text: z.ZodOptional<z.ZodString>;
110
+ regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
+ in: z.ZodString;
112
+ file: z.ZodOptional<z.ZodString>;
113
+ width: z.ZodNumber;
114
+ height: z.ZodNumber;
115
+ path: z.ZodString;
116
+ area: z.ZodBoolean;
117
+ scale: z.ZodNumber;
118
+ }, z.core.$strict>>>;
119
+ }, z.core.$strict>;
120
+ outline: z.ZodArray<z.ZodArray<z.ZodObject<{
121
+ x: z.ZodNumber;
122
+ y: z.ZodNumber;
123
+ }, z.core.$strict>>>;
124
+ where: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strict>>;
126
+ }, z.core.$strict>>;
68
127
  readonly "note/pictures": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
69
128
  pictures: z.ZodArray<z.ZodObject<{
70
129
  rect: z.ZodOptional<z.ZodObject<{
@@ -117,6 +176,7 @@ export declare const FRAME_NOTIFICATIONS: {
117
176
  width: z.ZodNumber;
118
177
  height: z.ZodNumber;
119
178
  }, z.core.$strict>>;
179
+ selection: z.ZodOptional<z.ZodBoolean>;
120
180
  }, z.core.$strict>>;
121
181
  readonly "share/begin": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
122
182
  readonly "edit/request": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{EDITOR_STATES as r,ExportStateSchema as i,PlaceSchema as a}from"./editor.js";import{AgentHereSchema as n}from"./presence.js";import{PathSchema as h}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{HeldSchema as c,NoteFoundSchema as d,NotePictureSchema as m,NoteRectSchema as s,NoteShapeSchema as p}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({}),c,"Holds what moves by itself while the person marks a picture of it; says what is on show."),"note/locate":o(e.strictObject({shape:p}),d,"What a mark is on: the editor's answer and every inset's under it, innermost first. Empty is an answer: the mark's place still goes."),"note/pictures":o(e.strictObject({}),e.strictObject({pictures:e.array(m),uncovered:e.array(e.strictObject({name:e.string(),rect:s}))}),"The page as it shows now, drawn without the window's marks, then its insets' pictures, each at its rect, outermost first."),"note/release":o(e.strictObject({}),e.strictObject({}),"The person is done marking. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own.")},FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"window/key":t(e.strictObject({key:e.string(),code:e.string(),meta:e.boolean(),ctrl:e.boolean(),shift:e.boolean(),alt:e.boolean()}),"A key with ⌘ or Ctrl pressed in the page that its editor did not take: the window's shortcut (⌘⇧M, ⌘K), heard where the keys are in the page. A desktop shell's menu hears them itself, so a page framed there tells none."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:s.optional()}),"The person asked for Mark up from the editor: the window shows its tools; `from` is what they pressed, in the page's viewport."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person tried to change what a read-only page shows, or the page needs the machine: the window offers to wake it."),"editor/place":t(e.strictObject({item:h,place:a}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"export/state":t(i,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(r),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(n,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
2
+ import{z as e}from"zod";import{EDITOR_STATES as r,ExportStateSchema as n,PlaceSchema as a}from"./editor.js";import{AgentHereSchema as h}from"./presence.js";import{PathSchema as c}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{HeldSchema as d,NoteFoundSchema as p,NotePickSchema as s,NotePictureSchema as m,NotePointSchema as w,NoteRectSchema as i,NoteShapeSchema as l}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({selection:e.boolean().optional()}),d.extend({selected:e.array(s).optional()}),"Holds what moves by itself while the person marks a picture of it; says what is on show, and with `selection` what is selected in it."),"note/locate":o(e.strictObject({shape:l}),p,"What a mark is on: the editor's answer and every inset's under it, innermost first. Empty is an answer: the mark's place still goes."),"note/pick":o(e.strictObject({at:w}),e.strictObject({pick:s.optional()}),"The one thing in front at a point, with its edge: the innermost inset's under it that answers, else the editor's. None is an answer."),"note/pictures":o(e.strictObject({}),e.strictObject({pictures:e.array(m),uncovered:e.array(e.strictObject({name:e.string(),rect:i}))}),"The page as it shows now, drawn without the window's marks, then its insets' pictures, each at its rect, outermost first."),"note/release":o(e.strictObject({}),e.strictObject({}),"The person is done marking. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own.")},FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"window/key":t(e.strictObject({key:e.string(),code:e.string(),meta:e.boolean(),ctrl:e.boolean(),shift:e.boolean(),alt:e.boolean()}),"A key with ⌘ or Ctrl pressed in the page that its editor did not take: the window's shortcut (⌘⇧M, ⌘K), heard where the keys are in the page. A desktop shell's menu hears them itself, so a page framed there tells none."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:i.optional(),selection:e.boolean().optional()}),"The person asked for Mark up from the editor: the window shows its tools, or with `selection` begins with what is selected marked; `from` is what they pressed, in the page's viewport."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person pressed an Edit of the page's own on a read-only page, or the page needs the machine for what they asked: the window wakes it. Never for a key pressed in the item."),"editor/place":t(e.strictObject({item:c,place:a}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"export/state":t(n,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(r),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(h,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
@@ -22,7 +22,6 @@ export * from "./sources.js";
22
22
  export * from "./shares.js";
23
23
  export * from "./account.js";
24
24
  export * from "./open.js";
25
- export * from "./browser-bridge.js";
26
25
  export * from "./jobs.js";
27
26
  export * from "./peer.js";
28
27
  export * from "./shape.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./presence.js";export*from"./kinds.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./mail.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./browser-bridge.js";export*from"./jobs.js";export*from"./peer.js";export*from"./shape.js";
2
+ export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./presence.js";export*from"./kinds.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./mail.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./jobs.js";export*from"./peer.js";export*from"./shape.js";
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { pointsOf, mapShape, touches, type NoteShape } from "@allyhub/formats";
2
+ import { insideOutline, mapOutline, mapShape, outlineBox, pointsOf, rectOutline, roundOutline, touches, turnedOutline, type NoteOutline, type NoteShape } from "@allyhub/formats";
3
3
  export declare const NoteRectSchema: z.ZodObject<{
4
4
  x: z.ZodNumber;
5
5
  y: z.ZodNumber;
@@ -46,8 +46,8 @@ export declare const NoteShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
46
  y: z.ZodNumber;
47
47
  }, z.core.$strict>>;
48
48
  }, z.core.$strict>], "kind">;
49
- export { mapShape, pointsOf, touches };
50
- export type { NoteShape };
49
+ export { insideOutline, mapOutline, mapShape, outlineBox, pointsOf, rectOutline, roundOutline, touches, turnedOutline, };
50
+ export type { NoteOutline, NoteShape };
51
51
  /** Where to change something: a project's file, and its line. */
52
52
  export declare const NoteSourceSchema: z.ZodObject<{
53
53
  path: z.ZodString;
@@ -135,6 +135,38 @@ export declare const NoteFoundSchema: z.ZodObject<{
135
135
  where: z.ZodOptional<z.ZodString>;
136
136
  }, z.core.$strict>;
137
137
  export type NoteFound = z.infer<typeof NoteFoundSchema>;
138
+ /**
139
+ * An element a person picked rather than drew round (docs/design/notes.md,
140
+ * "Select"): what it is, and its edge as it is drawn, closed rings of
141
+ * points in px of the surface. The host draws the edge as the mark and
142
+ * passes the element on unread.
143
+ */
144
+ export declare const NotePickSchema: z.ZodObject<{
145
+ element: z.ZodObject<{
146
+ name: z.ZodString;
147
+ source: z.ZodOptional<z.ZodObject<{
148
+ path: z.ZodString;
149
+ line: z.ZodOptional<z.ZodInt>;
150
+ endLine: z.ZodOptional<z.ZodInt>;
151
+ }, z.core.$strict>>;
152
+ text: z.ZodOptional<z.ZodString>;
153
+ regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
154
+ in: z.ZodString;
155
+ file: z.ZodOptional<z.ZodString>;
156
+ width: z.ZodNumber;
157
+ height: z.ZodNumber;
158
+ path: z.ZodString;
159
+ area: z.ZodBoolean;
160
+ scale: z.ZodNumber;
161
+ }, z.core.$strict>>>;
162
+ }, z.core.$strict>;
163
+ outline: z.ZodArray<z.ZodArray<z.ZodObject<{
164
+ x: z.ZodNumber;
165
+ y: z.ZodNumber;
166
+ }, z.core.$strict>>>;
167
+ where: z.ZodOptional<z.ZodString>;
168
+ }, z.core.$strict>;
169
+ export type NotePick = z.infer<typeof NotePickSchema>;
138
170
  /**
139
171
  * What every editor gives its host for notes on it, for as long as it is on
140
172
  * show (docs/design/notes.md, "The contract"): Mark up takes a picture of
@@ -149,6 +181,10 @@ export interface NoteSurface {
149
181
  hold(): Promise<Held>;
150
182
  /** What a mark is on, among what the editor draws in the page itself; insets answer for theirs. Empty is an answer. */
151
183
  locate(mark: NoteShape): Promise<NoteFound>;
184
+ /** The one thing in front at a point, among what the editor draws in the page itself, with its edge; none where there is nothing to pick. */
185
+ pick?(at: NotePoint): Promise<NotePick | undefined>;
186
+ /** What the person has selected in the editor now, each as a pick: what Mark up asked from a selection marks. None where nothing is. */
187
+ selected?(): Promise<NotePick[]>;
152
188
  /** The person is done. Nothing starts by itself: a video that was paused stays paused. */
153
189
  release?(): void;
154
190
  }
@@ -166,6 +202,8 @@ export interface NoteInset {
166
202
  pictures?(): Promise<NotePicture[]>;
167
203
  /** What a mark (px of the page) is on inside it. */
168
204
  locate?(mark: NoteShape): Promise<NoteFound>;
205
+ /** The one thing in front at a point (px of the page) inside it, with its edge. */
206
+ pick?(at: NotePoint): Promise<NotePick | undefined>;
169
207
  /** Stops what moves by itself in it. */
170
208
  hold?(): Promise<void>;
171
209
  release?(): void;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{pointsOf as i,mapShape as o,touches as n}from"@allyhub/formats";import{PathSchema as e}from"./files.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()}),NotePointSchema=t.strictObject({x:t.number(),y:t.number()}),NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:NotePointSchema,to:NotePointSchema}),t.strictObject({kind:t.literal("line"),points:t.array(NotePointSchema).min(1)})]);export{o as mapShape,i as pointsOf,n as touches};export const NoteSourceSchema=t.strictObject({path:e,line:t.int().positive().optional(),endLine:t.int().positive().optional()}),HeldSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteRegionSchema=t.strictObject({in:t.string().min(1),file:e.optional(),width:t.number().positive(),height:t.number().positive(),path:t.string().min(1),area:t.boolean(),scale:t.number().positive()}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional(),regions:t.array(NoteRegionSchema).optional()}),NoteFoundSchema=t.strictObject({elements:t.array(NoteElementSchema),where:t.string().optional()});
2
+ import{z as t}from"zod";import{insideOutline as i,mapOutline as n,mapShape as o,outlineBox as r,pointsOf as c,rectOutline as a,roundOutline as s,touches as m,turnedOutline as p}from"@allyhub/formats";import{PathSchema as e}from"./files.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()}),NotePointSchema=t.strictObject({x:t.number(),y:t.number()}),NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:NotePointSchema,to:NotePointSchema}),t.strictObject({kind:t.literal("line"),points:t.array(NotePointSchema).min(1)})]);export{i as insideOutline,n as mapOutline,o as mapShape,r as outlineBox,c as pointsOf,a as rectOutline,s as roundOutline,m as touches,p as turnedOutline};export const NoteSourceSchema=t.strictObject({path:e,line:t.int().positive().optional(),endLine:t.int().positive().optional()}),HeldSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteRegionSchema=t.strictObject({in:t.string().min(1),file:e.optional(),width:t.number().positive(),height:t.number().positive(),path:t.string().min(1),area:t.boolean(),scale:t.number().positive()}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional(),regions:t.array(NoteRegionSchema).optional()}),NoteFoundSchema=t.strictObject({elements:t.array(NoteElementSchema),where:t.string().optional()}),NotePickSchema=t.strictObject({element:NoteElementSchema,outline:t.array(t.array(NotePointSchema).min(3)).min(1),where:t.string().optional()});
@@ -229,6 +229,10 @@ export declare const KindSnapshotSchema: z.ZodObject<{
229
229
  data: z.ZodArray<z.ZodString>;
230
230
  }, z.core.$strip>>;
231
231
  routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
232
+ page: z.ZodOptional<z.ZodObject<{
233
+ folder: z.ZodOptional<z.ZodString>;
234
+ file: z.ZodOptional<z.ZodString>;
235
+ }, z.core.$strip>>;
232
236
  }, z.core.$strip>;
233
237
  export type KindSnapshot = z.infer<typeof KindSnapshotSchema>;
234
238
  /** An item's gallery preview in the tree: its `Preview` (a picture, words or rows), as JSON. */
@@ -414,9 +418,22 @@ export type SnapshotView = z.infer<typeof SnapshotViewSchema>;
414
418
  /** A read view's paths besides the tree's. */
415
419
  export declare const SNAPSHOT_VIEW: {
416
420
  readonly manifest: "manifest.json";
421
+ /** The project's files as text, sandboxed: they run nothing. */
417
422
  readonly files: "files/";
423
+ /**
424
+ * The project's files as an item's page loads them (`items/page`): each
425
+ * as its type, at an opaque origin, loading nothing but this view's own
426
+ * files (PAGE_CSP).
427
+ */
428
+ readonly pages: "pages/";
418
429
  readonly conversations: "conversations/";
419
430
  };
431
+ /**
432
+ * An item's page as a read view serves it (`pages/`): sandboxed to an
433
+ * opaque origin, so it reaches nothing of the page that frames it, its
434
+ * scripts running, and loading nothing but its own view's files.
435
+ */
436
+ export declare const PAGE_CSP: string;
420
437
  /**
421
438
  * The JSON-RPC error a read-only host answers for what needs the machine
422
439
  * (a change, an export, a check run, the agent): the window offers to wake
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{STAGE_LOADS as b}from"@allyhub/formats";import{z as e}from"zod";import{BlobSchema as g,Sha256Schema as u,TreeFileSchema as S,TreePathSchema as m}from"./blobs.js";import{placeParams as $}from"./editor.js";import{known as E,openEnum as x,readable as w}from"./open.js";export const SNAPSHOT_FORMAT=1,ConversationEntrySchema=e.object({sessionId:e.string().min(1),agent:e.string().min(1),title:e.string().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),transcript:u}),TranscriptSchema=e.object({sessionId:e.string().min(1),messages:e.array(e.object({method:e.string().min(1),params:e.unknown()}))}),SNAPSHOT_KINDS=["project","home"],StageFolderSchema=e.string().regex(/^[a-z][a-z0-9-]*\/$/u,"one lower-case word and /").refine(t=>!Object.values(SNAPSHOT_TREE).includes(t)&&!Object.values(SNAPSHOT_VIEW).includes(t),"a folder of the core's"),StageLoadSchema=x(b),StageRoutesSchema=e.record(e.string(),e.array(e.string()));const O=e.string().refine(t=>t.endsWith("/")&&m.safeParse(t.slice(0,-1)).success,"a folder of the tree, ending in /");export const ItemReachSchema=e.object({tree:e.array(m),files:e.array(m),own:e.record(m,S)}),SnapshotReachSchema=e.object({shared:e.array(O),items:e.record(e.string(),ItemReachSchema)}),SnapshotManifestSchema=e.object({format:e.literal(SNAPSHOT_FORMAT),kind:e.enum(SNAPSHOT_KINDS),project:e.object({name:e.string().min(1).max(255)}),host:e.object({version:e.string().min(1)}),madeAt:e.iso.datetime(),files:e.record(m,g),tree:e.record(m,S),conversations:e.array(ConversationEntrySchema),reach:SnapshotReachSchema.optional(),routes:StageRoutesSchema.optional()});export function scopedManifest(t,o){const r=t.reach,s=r!==void 0&&Object.hasOwn(r.items,o)?r.items[o]:void 0;if(r===void 0||s===void 0)return;const i={};for(const[n,a]of Object.entries(t.tree))r.shared.some(p=>n.startsWith(p))&&(i[n]=a);for(const n of s.tree){const a=Object.hasOwn(t.tree,n)?t.tree[n]:void 0;a!==void 0&&(i[n]=a)}Object.assign(i,s.own);const c={};for(const n of s.files){const a=Object.hasOwn(t.files,n)?t.files[n]:void 0;a!==void 0&&(c[n]=a)}return{format:t.format,kind:t.kind,project:t.project,host:t.host,madeAt:t.madeAt,files:c,tree:i,conversations:[],...t.routes===void 0?{}:{routes:t.routes}}}export const SNAPSHOT_SKIPPED=["node_modules",".allyhub/cache",".allyhub/out"],SNAPSHOT_TREE={editor:"editor/",runtime:"runtime/",build:"build/",media:"media/",matte:"matte/",stills:"stills/",answers:"answers/",previews:"previews/"};function d(t){return Array.isArray(t)?t.map(d):t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(o=>[o,d(t[o])])):t}export const snapshotAnswerPath=(t,o)=>`${SNAPSHOT_TREE.answers}${t}/${encodeURIComponent(JSON.stringify(d(o??{})))}.json`,RecordedAnswerSchema=e.object({result:e.unknown().optional(),error:e.object({code:e.number(),message:e.string(),data:e.unknown().optional()}).optional()}),recordedReadPath=(t,o)=>snapshotAnswerPath(t,Object.fromEntries(Object.entries(o??{}).filter(([r,s])=>r!=="folder"&&s!==void 0))),stillPath=t=>`${SNAPSHOT_TREE.stills}${t}.webp`,stillsIndexPath=(t,o)=>`${SNAPSHOT_TREE.stills}index/${encodeURIComponent(t)}/${encodeURIComponent(o)}.json`,StillsIndexSchema=e.object({stills:e.record(e.string(),e.string().regex(/^[0-9a-f]{64}$/u))}),stillsIndexKey=t=>JSON.stringify(d(t));const P=e.object({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()});export const KindSnapshotSchema=e.object({stills:e.array(e.object({version:e.string(),components:e.array(P)})).optional(),shows:e.object({media:e.array(e.string()),data:e.array(e.string())}).optional(),routes:e.record(e.string(),e.array(e.string().min(1))).optional()}),snapshotPreviewPath=t=>`${SNAPSHOT_TREE.previews}${encodeURIComponent(t)}.json`,TREE_PAGES={stage:`${SNAPSHOT_TREE.runtime}stage.html`,viewer:`${SNAPSHOT_TREE.runtime}viewer.html`,probe:`${SNAPSHOT_TREE.runtime}probe.html`},pieceSourcePath=t=>`${SNAPSHOT_TREE.build}sources/${encodeURIComponent(t)}.json`,treeHref=t=>t.split("/").map(encodeURIComponent).join("/");export function stageCsp(t,o,r={}){const s=l=>`${t}${l}`,i=s(SNAPSHOT_TREE.runtime),c=s(SNAPSHOT_TREE.build),n=s(SNAPSHOT_TREE.media),a=s(SNAPSHOT_TREE.matte),p=l=>Object.entries(r).filter(([h,j])=>StageFolderSchema.safeParse(h).success&&j.some(f=>E(b,f)&&f===l)).map(([h])=>` ${s(h)}`).join("");return["default-src 'none'",`script-src 'unsafe-eval' 'wasm-unsafe-eval' ${i} ${c}${p("script")}`,"worker-src blob:",`style-src 'unsafe-inline' ${i} ${c}${p("style")}`,`font-src ${i} ${c} ${n}${p("font")} data:`,`img-src ${n} ${c}${p("img")} data: blob:`,`media-src ${n} ${a}${p("media")} blob:`,`connect-src ${n} ${a} ${c} ${i}${p("connect")} blob: data:`,`frame-ancestors ${o.length>0?o.join(" "):"'none'"}`].join("; ")}export function snapshotEditorUrl(t,o,r={}){const s=Object.entries({item:o,embed:"studio",snapshot:"1",...r.viewer===!0?{viewer:"1"}:{},...r.theme===void 0?{}:{theme:r.theme},...$(r.place)}).map(([i,c])=>`${i}=${encodeURIComponent(c)}`);return`${t.replace(/\/$/u,"")}/${SNAPSHOT_TREE.editor}?${s.join("&")}`}export const EXECUTOR_KINDS=["cloud","computer"],COMPUTER_HEADER="x-allyhub-computer",ComputerIdSchema=e.string().regex(/^[A-Za-z0-9_-]{16,64}$/u),WORKED_ELSEWHERE="worked_elsewhere",ExecutorSchema=e.object({kind:x(EXECUTOR_KINDS),here:e.boolean()}),SNAPSHOT_BLOBS_PATH="/api/snapshots/blobs",SNAPSHOTS_PATH="/api/snapshots",SnapshotCreateSchema=e.strictObject({project:e.strictObject({id:e.string().min(1).optional(),kind:e.enum(SNAPSHOT_KINDS),name:e.string().min(1).max(255)}),manifest:u}),SnapshotCreatedSchema=e.object({id:e.string().min(1),projectId:e.string().min(1)}),SnapshotMissingSchema=e.object({missing:e.array(u)}),PROJECTS_PATH="/api/projects",SnapshotInfoSchema=e.object({id:e.string().min(1),madeAt:e.iso.datetime(),hostVersion:e.string()}),ProjectInfoSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),latest:SnapshotInfoSchema.nullable(),executor:ExecutorSchema}),ProjectsResponseSchema=e.object({projects:w(ProjectInfoSchema)}),projectPath=t=>`${PROJECTS_PATH}/${encodeURIComponent(t)}`,projectExecutorPath=t=>`${projectPath(t)}/executor`,ExecutorMoveSchema=e.strictObject({kind:e.enum(EXECUTOR_KINDS)}),snapshotViewPath=t=>`${SNAPSHOTS_PATH}/${encodeURIComponent(t)}/view`,SnapshotViewSchema=e.object({origin:e.url(),expiresAt:e.iso.datetime()}),SNAPSHOT_VIEW={manifest:"manifest.json",files:"files/",conversations:"conversations/"},NEEDS_MACHINE=-32010,isNeedsMachine=t=>typeof t=="object"&&t!==null&&t.code===NEEDS_MACHINE,ELSEWHERE=-32011,CHANGED_HERE=-32012,MoveChangesSchema=e.object({changed:e.array(e.string())});
2
+ import{STAGE_LOADS as b}from"@allyhub/formats";import{z as e}from"zod";import{BlobSchema as g,Sha256Schema as h,TreeFileSchema as S,TreePathSchema as d}from"./blobs.js";import{placeParams as $}from"./editor.js";import{known as w,openEnum as x,readable as E}from"./open.js";export const SNAPSHOT_FORMAT=1,ConversationEntrySchema=e.object({sessionId:e.string().min(1),agent:e.string().min(1),title:e.string().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),transcript:h}),TranscriptSchema=e.object({sessionId:e.string().min(1),messages:e.array(e.object({method:e.string().min(1),params:e.unknown()}))}),SNAPSHOT_KINDS=["project","home"],StageFolderSchema=e.string().regex(/^[a-z][a-z0-9-]*\/$/u,"one lower-case word and /").refine(t=>!Object.values(SNAPSHOT_TREE).includes(t)&&!Object.values(SNAPSHOT_VIEW).includes(t),"a folder of the core's"),StageLoadSchema=x(b),StageRoutesSchema=e.record(e.string(),e.array(e.string()));const O=e.string().refine(t=>t.endsWith("/")&&d.safeParse(t.slice(0,-1)).success,"a folder of the tree, ending in /");export const ItemReachSchema=e.object({tree:e.array(d),files:e.array(d),own:e.record(d,S)}),SnapshotReachSchema=e.object({shared:e.array(O),items:e.record(e.string(),ItemReachSchema)}),SnapshotManifestSchema=e.object({format:e.literal(SNAPSHOT_FORMAT),kind:e.enum(SNAPSHOT_KINDS),project:e.object({name:e.string().min(1).max(255)}),host:e.object({version:e.string().min(1)}),madeAt:e.iso.datetime(),files:e.record(d,g),tree:e.record(d,S),conversations:e.array(ConversationEntrySchema),reach:SnapshotReachSchema.optional(),routes:StageRoutesSchema.optional()});export function scopedManifest(t,o){const s=t.reach,r=s!==void 0&&Object.hasOwn(s.items,o)?s.items[o]:void 0;if(s===void 0||r===void 0)return;const a={};for(const[n,c]of Object.entries(t.tree))s.shared.some(p=>n.startsWith(p))&&(a[n]=c);for(const n of r.tree){const c=Object.hasOwn(t.tree,n)?t.tree[n]:void 0;c!==void 0&&(a[n]=c)}Object.assign(a,r.own);const i={};for(const n of r.files){const c=Object.hasOwn(t.files,n)?t.files[n]:void 0;c!==void 0&&(i[n]=c)}return{format:t.format,kind:t.kind,project:t.project,host:t.host,madeAt:t.madeAt,files:i,tree:a,conversations:[],...t.routes===void 0?{}:{routes:t.routes}}}export const SNAPSHOT_SKIPPED=["node_modules",".allyhub/cache",".allyhub/out"],SNAPSHOT_TREE={editor:"editor/",runtime:"runtime/",build:"build/",media:"media/",matte:"matte/",stills:"stills/",answers:"answers/",previews:"previews/"};function l(t){return Array.isArray(t)?t.map(l):t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(o=>[o,l(t[o])])):t}export const snapshotAnswerPath=(t,o)=>`${SNAPSHOT_TREE.answers}${t}/${encodeURIComponent(JSON.stringify(l(o??{})))}.json`,RecordedAnswerSchema=e.object({result:e.unknown().optional(),error:e.object({code:e.number(),message:e.string(),data:e.unknown().optional()}).optional()}),recordedReadPath=(t,o)=>snapshotAnswerPath(t,Object.fromEntries(Object.entries(o??{}).filter(([s,r])=>s!=="folder"&&r!==void 0))),stillPath=t=>`${SNAPSHOT_TREE.stills}${t}.webp`,stillsIndexPath=(t,o)=>`${SNAPSHOT_TREE.stills}index/${encodeURIComponent(t)}/${encodeURIComponent(o)}.json`,StillsIndexSchema=e.object({stills:e.record(e.string(),e.string().regex(/^[0-9a-f]{64}$/u))}),stillsIndexKey=t=>JSON.stringify(l(t));const P=e.object({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()});export const KindSnapshotSchema=e.object({stills:e.array(e.object({version:e.string(),components:e.array(P)})).optional(),shows:e.object({media:e.array(e.string()),data:e.array(e.string())}).optional(),routes:e.record(e.string(),e.array(e.string().min(1))).optional(),page:e.object({folder:e.string().optional(),file:e.string().optional()}).optional()}),snapshotPreviewPath=t=>`${SNAPSHOT_TREE.previews}${encodeURIComponent(t)}.json`,TREE_PAGES={stage:`${SNAPSHOT_TREE.runtime}stage.html`,viewer:`${SNAPSHOT_TREE.runtime}viewer.html`,probe:`${SNAPSHOT_TREE.runtime}probe.html`},pieceSourcePath=t=>`${SNAPSHOT_TREE.build}sources/${encodeURIComponent(t)}.json`,treeHref=t=>t.split("/").map(encodeURIComponent).join("/");export function stageCsp(t,o,s={}){const r=m=>`${t}${m}`,a=r(SNAPSHOT_TREE.runtime),i=r(SNAPSHOT_TREE.build),n=r(SNAPSHOT_TREE.media),c=r(SNAPSHOT_TREE.matte),p=m=>Object.entries(s).filter(([u,j])=>StageFolderSchema.safeParse(u).success&&j.some(f=>w(b,f)&&f===m)).map(([u])=>` ${r(u)}`).join("");return["default-src 'none'",`script-src 'unsafe-eval' 'wasm-unsafe-eval' ${a} ${i}${p("script")}`,"worker-src blob:",`style-src 'unsafe-inline' ${a} ${i}${p("style")}`,`font-src ${a} ${i} ${n}${p("font")} data:`,`img-src ${n} ${i}${p("img")} data: blob:`,`media-src ${n} ${c}${p("media")} blob:`,`connect-src ${n} ${c} ${i} ${a}${p("connect")} blob: data:`,`frame-ancestors ${o.length>0?o.join(" "):"'none'"}`].join("; ")}export function snapshotEditorUrl(t,o,s={}){const r=Object.entries({item:o,embed:"studio",snapshot:"1",...s.viewer===!0?{viewer:"1"}:{},...s.theme===void 0?{}:{theme:s.theme},...$(s.place)}).map(([a,i])=>`${a}=${encodeURIComponent(i)}`);return`${t.replace(/\/$/u,"")}/${SNAPSHOT_TREE.editor}?${r.join("&")}`}export const EXECUTOR_KINDS=["cloud","computer"],COMPUTER_HEADER="x-allyhub-computer",ComputerIdSchema=e.string().regex(/^[A-Za-z0-9_-]{16,64}$/u),WORKED_ELSEWHERE="worked_elsewhere",ExecutorSchema=e.object({kind:x(EXECUTOR_KINDS),here:e.boolean()}),SNAPSHOT_BLOBS_PATH="/api/snapshots/blobs",SNAPSHOTS_PATH="/api/snapshots",SnapshotCreateSchema=e.strictObject({project:e.strictObject({id:e.string().min(1).optional(),kind:e.enum(SNAPSHOT_KINDS),name:e.string().min(1).max(255)}),manifest:h}),SnapshotCreatedSchema=e.object({id:e.string().min(1),projectId:e.string().min(1)}),SnapshotMissingSchema=e.object({missing:e.array(h)}),PROJECTS_PATH="/api/projects",SnapshotInfoSchema=e.object({id:e.string().min(1),madeAt:e.iso.datetime(),hostVersion:e.string()}),ProjectInfoSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),latest:SnapshotInfoSchema.nullable(),executor:ExecutorSchema}),ProjectsResponseSchema=e.object({projects:E(ProjectInfoSchema)}),projectPath=t=>`${PROJECTS_PATH}/${encodeURIComponent(t)}`,projectExecutorPath=t=>`${projectPath(t)}/executor`,ExecutorMoveSchema=e.strictObject({kind:e.enum(EXECUTOR_KINDS)}),snapshotViewPath=t=>`${SNAPSHOTS_PATH}/${encodeURIComponent(t)}/view`,SnapshotViewSchema=e.object({origin:e.url(),expiresAt:e.iso.datetime()}),SNAPSHOT_VIEW={manifest:"manifest.json",files:"files/",pages:"pages/",conversations:"conversations/"},PAGE_CSP=["sandbox allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox","default-src 'self' data: blob:","script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:","style-src 'self' 'unsafe-inline'","img-src 'self' data: blob:","font-src 'self' data:","connect-src 'self' data: blob:","media-src 'self' data: blob:"].join("; "),NEEDS_MACHINE=-32010,isNeedsMachine=t=>typeof t=="object"&&t!==null&&t.code===NEEDS_MACHINE,ELSEWHERE=-32011,CHANGED_HERE=-32012,MoveChangesSchema=e.object({changed:e.array(e.string())});
@@ -109,6 +109,13 @@ export declare const NDJSON = "application/x-ndjson";
109
109
  * or the first time), its Host started. A step not needed is not said.
110
110
  */
111
111
  export declare const STUDIO_OPEN_STEPS: readonly ["machine", "install", "start"];
112
+ /**
113
+ * The environment variable a cloud Studio's Host is started with: a value
114
+ * new to each start, which its `/health` says back as `start`, so its
115
+ * control plane knows the Host answering is the one it started (not one
116
+ * before it that did not stop). A Host older than it ignores it.
117
+ */
118
+ export declare const STUDIO_START_ENV = "ALLYHUB_STUDIO_START";
112
119
  export type StudioOpenStep = (typeof STUDIO_OPEN_STEPS)[number];
113
120
  export declare const StudioOpenLineSchema: z.ZodUnion<readonly [z.ZodObject<{
114
121
  step: z.ZodEnum<{
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],StudioOpenLineSchema=t.union([t.object({step:t.enum(STUDIO_OPEN_STEPS),first:t.boolean().optional()}),t.object({status:t.number(),error:t.object({code:t.string(),message:t.string(),data:t.record(t.string(),t.unknown()).optional()})}),StudioOpenedSchema]),STUDIO_TICKET_PATH="/api/studio/ticket",StudioTicketSchema=t.object({ticket:t.string().min(1)}),STUDIO_PREPARE_PATH="/api/studio/prepare",StudioPreparedSchema=t.object({prepared:t.boolean()}),STUDIO_PAUSE_PATH="/api/studio/pause",StudioPausedSchema=t.object({paused:t.boolean()}),STUDIO_WAKES_PATH="/api/studio/wakes",STUDIO_WAKE_OUTCOMES=["live","failed"],StudioWakeReportSchema=t.strictObject({outcome:t.enum(STUDIO_WAKE_OUTCOMES),error:t.string().max(500).optional(),server:StudioOpenStagesSchema.optional(),window:t.strictObject({open:t.number().optional(),connect:t.number().optional(),enter:t.number().optional(),total:t.number()}),first:t.boolean().optional()}),STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
2
+ import{z as t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],STUDIO_START_ENV="ALLYHUB_STUDIO_START",StudioOpenLineSchema=t.union([t.object({step:t.enum(STUDIO_OPEN_STEPS),first:t.boolean().optional()}),t.object({status:t.number(),error:t.object({code:t.string(),message:t.string(),data:t.record(t.string(),t.unknown()).optional()})}),StudioOpenedSchema]),STUDIO_TICKET_PATH="/api/studio/ticket",StudioTicketSchema=t.object({ticket:t.string().min(1)}),STUDIO_PREPARE_PATH="/api/studio/prepare",StudioPreparedSchema=t.object({prepared:t.boolean()}),STUDIO_PAUSE_PATH="/api/studio/pause",StudioPausedSchema=t.object({paused:t.boolean()}),STUDIO_WAKES_PATH="/api/studio/wakes",STUDIO_WAKE_OUTCOMES=["live","failed"],StudioWakeReportSchema=t.strictObject({outcome:t.enum(STUDIO_WAKE_OUTCOMES),error:t.string().max(500).optional(),server:StudioOpenStagesSchema.optional(),window:t.strictObject({open:t.number().optional(),connect:t.number().optional(),enter:t.number().optional(),total:t.number()}),first:t.boolean().optional()}),STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
@@ -193,6 +193,13 @@ export declare const PROJECT_TOOLS: {
193
193
  count: z.ZodInt;
194
194
  }, z.core.$strict>], "type">>;
195
195
  }, z.core.$strict>>;
196
+ readonly "items/page": MethodSpec<z.ZodObject<{
197
+ item: z.ZodString;
198
+ folder: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>>;
199
+ file: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>, z.ZodObject<{
201
+ url: z.ZodString;
202
+ }, z.core.$strict>>;
196
203
  readonly "work/add": MethodSpec<z.ZodObject<{
197
204
  kind: z.ZodString;
198
205
  file: z.ZodString;
@@ -324,6 +331,7 @@ export type ProjectToolName = keyof typeof PROJECT_TOOLS;
324
331
  export declare const PROJECT_TOOL_SOURCES: {
325
332
  readonly "project/items": "project";
326
333
  readonly "items/preview": "asleep";
334
+ readonly "items/page": "asleep";
327
335
  readonly "work/add": "machine";
328
336
  readonly "components/list": "asleep";
329
337
  readonly "components/stage": "asleep";
@@ -368,6 +376,10 @@ export declare const TOOL_NOTIFICATIONS: {
368
376
  readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
369
377
  revision: z.ZodInt;
370
378
  }, z.core.$strict>>;
379
+ readonly "items/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
380
+ item: z.ZodString;
381
+ paths: z.ZodArray<z.ZodString>;
382
+ }, z.core.$strict>>;
371
383
  readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
372
384
  status: z.ZodEnum<{
373
385
  off: "off";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{FolderSchema as m,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as a}from"./kinds.js";import{RPC_ERROR as b,RpcError as g,method as r,notification as o}from"./jsonrpc.js";export const VersionRef={item:t,version:e.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:t,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(t),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:t,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()}),FramedPageSchema=e.strictObject({url:e.string(),probe:e.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":r(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:m,entry:t,title:e.string().optional(),groups:e.array(e.string()),files:e.array(e.object({path:e.string().min(1),role:e.string().min(1).optional()})).optional(),kindInfo:a.optional()})),kinds:e.array(a.extend({id:e.string().min(1)})).optional(),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"items/preview":r(e.strictObject({item:t}),e.strictObject({preview:h.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"work/add":r(e.strictObject({kind:e.string().min(1),file:t,title:e.string().min(1).optional()}),e.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":r(e.strictObject({item:t}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":r(e.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":r(e.strictObject({...VersionRef,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":r(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":r(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":r(e.strictObject({item:t,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":r(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":r(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":r(e.strictObject({path:t}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","items/preview":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"},AGENT_DOES={"project/items":{files:"allyhub.yaml"},"items/preview":{command:"frames"},"work/add":{files:"allyhub.yaml"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"}};export function toolSpec(s){return Object.hasOwn(PROJECT_TOOLS,s)?PROJECT_TOOLS[s]:void 0}export function toolCaller(s){return async(c,n,p)=>{const{result:l}=await c["tools/call"]({name:n,arguments:p}),i=s[n]?.result.safeParse(l);if(!i?.success)throw new g(b.internal,`The answer to the tool ${n} is not what the protocol says.`);return i.data}}export const TOOL_NOTIFICATIONS={"project/changed":o(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":o(CheckStateSchema,"The check started, ended or failed."),"export/changed":o(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":o(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":o(e.strictObject({job:d,item:t}),"A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
2
+ import{z as e}from"zod";import{FolderSchema as a,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as c}from"./kinds.js";import{RPC_ERROR as g,RpcError as b,method as s,notification as r}from"./jsonrpc.js";export const VersionRef={item:t,version:e.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:t,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(t),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:t,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()}),FramedPageSchema=e.strictObject({url:e.string(),probe:e.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":s(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:a,entry:t,title:e.string().optional(),groups:e.array(e.string()),files:e.array(e.object({path:e.string().min(1),role:e.string().min(1).optional()})).optional(),kindInfo:c.optional()})),kinds:e.array(c.extend({id:e.string().min(1)})).optional(),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"items/preview":s(e.strictObject({item:t}),e.strictObject({preview:h.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"items/page":s(e.strictObject({item:t,folder:a.optional(),file:t.optional()}),e.strictObject({url:e.string()}),"The address of an item's page, for a frame (a report's page, a website built as files): `folder` served as the root of an origin of its own, the project's files alone (no other address loads), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":s(e.strictObject({kind:e.string().min(1),file:t,title:e.string().min(1).optional()}),e.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":s(e.strictObject({item:t}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":s(e.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":s(e.strictObject({...VersionRef,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":s(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":s(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":s(e.strictObject({item:t,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":s(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":s(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":s(e.strictObject({path:t}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","items/preview":"asleep","items/page":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"},AGENT_DOES={"project/items":{files:"allyhub.yaml"},"items/preview":{command:"frames"},"items/page":{command:"frames"},"work/add":{files:"allyhub.yaml"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"}};export function toolSpec(o){return Object.hasOwn(PROJECT_TOOLS,o)?PROJECT_TOOLS[o]:void 0}export function toolCaller(o){return async(p,n,l)=>{const{result:m}=await p["tools/call"]({name:n,arguments:l}),i=o[n]?.result.safeParse(m);if(!i?.success)throw new b(g.internal,`The answer to the tool ${n} is not what the protocol says.`);return i.data}}export const TOOL_NOTIFICATIONS={"project/changed":r(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"items/changed":r(e.strictObject({item:t,paths:e.array(e.string())}),`One of an item's inputs changed (docs/design/item-files.md, "An item's inputs"): a file its build lists, or one its pages loaded.`),"check/changed":r(CheckStateSchema,"The check started, ended or failed."),"export/changed":r(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":r(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":r(e.strictObject({job:d,item:t}),"A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@allyhub/protocol",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
8
8
  "default": "./dist/index.js"
9
- },
10
- "./browser-bridge": {
11
- "types": "./dist/browser-bridge.d.ts",
12
- "default": "./dist/browser-bridge.js"
13
9
  }
14
10
  },
15
11
  "sideEffects": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/registry",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {