@histoire/app 1.0.0-alpha.5 → 1.0.0-beta.2

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 (1623) hide show
  1. package/dist/app/style/README.md +167 -0
  2. package/dist/app/style/controls.css +28 -0
  3. package/dist/app/style/density.css +38 -0
  4. package/dist/app/style/document.pcss +60 -0
  5. package/dist/app/style/fonts.pcss +1 -0
  6. package/dist/app/style/main.css +25 -0
  7. package/dist/app/style/theme.css +109 -0
  8. package/dist/app/style/tokens.pcss +135 -0
  9. package/dist/bundle-embed-dev.js +6 -0
  10. package/dist/bundle-embed.js +6 -0
  11. package/dist/bundle-main-dev.js +1 -1
  12. package/dist/bundle-main.js +2 -1
  13. package/dist/bundle-sandbox-dev.js +3 -2
  14. package/dist/bundle-sandbox.js +3 -2
  15. package/dist/bundled/api.js +1 -12
  16. package/dist/bundled/app.css +183 -75
  17. package/dist/bundled/chunks/AboutSection-D3IIVsiV.js +42 -0
  18. package/dist/bundled/chunks/AgentCursor-Cg5SLa2H.js +124 -0
  19. package/dist/bundled/chunks/AgentLogo-C2uXqX04.js +69 -0
  20. package/dist/bundled/chunks/AgentPlanApproval-D4hnGlYs.js +693 -0
  21. package/dist/bundled/chunks/AgentsSection-CJGS9C2q.js +1126 -0
  22. package/dist/bundled/chunks/AiPanel-B9QWRuSg.js +1130 -0
  23. package/dist/bundled/chunks/AppearanceSection-DMjmDr1Y.js +306 -0
  24. package/dist/bundled/chunks/BasePopover-CQQ8wKev.js +307 -0
  25. package/dist/bundled/chunks/CommentsCanvasOverlay-UX-oYgnx.js +955 -0
  26. package/dist/bundled/chunks/DevBrowseStatus-D2rIG8uC.js +48 -0
  27. package/dist/bundled/chunks/DocsTab-BR3BktyF.js +31 -0
  28. package/dist/bundled/chunks/EmbedDialog-B70Zo-PZ.js +475 -0
  29. package/dist/bundled/chunks/EventsTab-BP0hCGqL.js +37 -0
  30. package/dist/bundled/chunks/GeneralSection-CT_-32qT.js +84 -0
  31. package/dist/bundled/chunks/HomeCard-JYU5jbs7.js +24 -0
  32. package/dist/bundled/chunks/InspectionPanel-C6kUdJj9.js +584 -0
  33. package/dist/bundled/chunks/InspectorGuideLink-Bqlz1aaY.js +28 -0
  34. package/dist/bundled/chunks/MarkdownPage-DD7XyGkq.js +349 -0
  35. package/dist/bundled/chunks/MarketplaceUpdateBody-B1cn_zeo.js +300 -0
  36. package/dist/bundled/chunks/MarketplaceView-eDPLtc_x.js +2769 -0
  37. package/dist/bundled/chunks/MatrixInspector-eIr_N5eH.js +893 -0
  38. package/dist/bundled/chunks/MatrixView-CDmN-Kl9.js +604 -0
  39. package/dist/bundled/chunks/MatrixVisualActions-Cx3QzDTD.js +70 -0
  40. package/dist/bundled/chunks/McpActivity-CiK3jUTY.js +136 -0
  41. package/dist/bundled/chunks/McpSection-DRGzPGXO.js +76 -0
  42. package/dist/bundled/chunks/MenuItem-BYRJG5YA.js +59 -0
  43. package/dist/bundled/chunks/NeedsAttention-C5zjd6RT.js +77 -0
  44. package/dist/bundled/chunks/PermissionPrompt-i5VbZCCJ.js +128 -0
  45. package/dist/bundled/chunks/PluginTile-CfplGy7m.js +97 -0
  46. package/dist/bundled/chunks/PluginsSection-B3ZWAjrk.js +855 -0
  47. package/dist/bundled/chunks/PopoverDivider-vLxqs_KP.js +13 -0
  48. package/dist/bundled/chunks/PopoverTitle-zikHVKQE.js +12 -0
  49. package/dist/bundled/chunks/SaveToProject-F-tQZKCG.js +206 -0
  50. package/dist/bundled/chunks/ScreenshotPopover-DWcV_NAf.js +725 -0
  51. package/dist/bundled/chunks/SettingsChoices-BoESgi62.js +19 -0
  52. package/dist/bundled/chunks/SettingsPage-BvT1FOl7.js +174 -0
  53. package/dist/bundled/chunks/SettingsRow-C4lda-j7.js +22 -0
  54. package/dist/bundled/chunks/ShortcutsSection-D3-4e5Ug.js +43 -0
  55. package/dist/bundled/chunks/StoryInspector-BJKzoeHc.js +1194 -0
  56. package/dist/bundled/chunks/TestsPanel-CpBld3wM.js +1264 -0
  57. package/dist/bundled/chunks/TestsSection-CEXW49Ge.js +33 -0
  58. package/dist/bundled/chunks/TestsTab-B-ZNDgGi.js +50 -0
  59. package/dist/bundled/chunks/ThreadMessage-CPRLVXXQ.js +2426 -0
  60. package/dist/bundled/chunks/ToolbarPopover-Nd-us4Fg.js +276 -0
  61. package/dist/bundled/chunks/ViewportsSection-3EWu6WSc.js +203 -0
  62. package/dist/bundled/chunks/VisualViewer-DV5mNFT8.js +888 -0
  63. package/dist/bundled/chunks/WorkbenchErrorState-D97EoY89.js +48 -0
  64. package/dist/bundled/chunks/WorkbenchGuideLink-COO1XNvp.js +26 -0
  65. package/dist/bundled/chunks/WorkbenchLoadingState-CLA8IBL6.js +50 -0
  66. package/dist/bundled/chunks/WorkbenchPaneHeader-DBuiBHTT.js +15 -0
  67. package/dist/bundled/chunks/WorkbenchPaneList-cOz9-XSR.js +13 -0
  68. package/dist/bundled/chunks/WorkbenchPaneToolbar-DEYUs_bD.js +12 -0
  69. package/dist/bundled/chunks/WorkbenchPanelAction-Cl68QrDs.js +96 -0
  70. package/dist/bundled/chunks/WorkbenchVirtualList-CUTamRgO.js +67 -0
  71. package/dist/bundled/chunks/agents-Cnoa7KRp.js +318 -0
  72. package/dist/bundled/chunks/agents-http-BjeGJFYE.js +27 -0
  73. package/dist/bundled/chunks/ai-threads-3QfVXZ43.js +402 -0
  74. package/dist/bundled/chunks/background-CG5-SPiv.js +70 -0
  75. package/dist/bundled/chunks/canvas-settings-EP62RnvB.js +101 -0
  76. package/dist/bundled/chunks/capture-SFV9pF9b.js +20 -0
  77. package/dist/bundled/chunks/catalog-UvMhynPX.js +39 -0
  78. package/dist/bundled/chunks/catalog-target-BN1NsBKA.js +9 -0
  79. package/dist/bundled/chunks/color-scheme-mhmCnofm.js +96 -0
  80. package/dist/bundled/chunks/content-view-Bpn8As7f.js +15 -0
  81. package/dist/bundled/chunks/context-menu-Cw2xQKsM.js +121 -0
  82. package/dist/bundled/chunks/controls-DpdwHd4q.js +23264 -0
  83. package/dist/bundled/chunks/controls-view-COcHf8Pm.js +358 -0
  84. package/dist/bundled/chunks/events-Dhp302xE.js +30 -0
  85. package/dist/bundled/chunks/explorer-view-5gTgnjcf.js +283 -0
  86. package/dist/bundled/chunks/extensions-DUXM9uEy.js +6274 -0
  87. package/dist/bundled/chunks/extensions-DY0LLiE_.js +42 -0
  88. package/dist/bundled/chunks/frame-ledger-BHZ0nJjD.js +3290 -0
  89. package/dist/bundled/chunks/frame-owner-Di8_BWb0.js +22 -0
  90. package/dist/bundled/chunks/frame-screenshot-D9R_xDns.js +84 -0
  91. package/dist/bundled/chunks/http-json-B3BE0tJj.js +37 -0
  92. package/dist/bundled/chunks/icons-Bd36WZPu.js +128 -0
  93. package/dist/bundled/chunks/internal-BOzwU0KU.js +49 -0
  94. package/dist/bundled/chunks/keyboard-DWsKh2rn.js +93 -0
  95. package/dist/bundled/chunks/local-mount-CCa2jcqi.js +198 -0
  96. package/dist/bundled/chunks/marketplace-DKeNfni-.js +945 -0
  97. package/dist/bundled/chunks/matrix-BPPIGW-q.js +770 -0
  98. package/dist/bundled/chunks/mcp-CbWZxLuC.js +212 -0
  99. package/dist/bundled/chunks/measure-owner-BJxCiOYZ.js +36 -0
  100. package/dist/bundled/chunks/measurement-DfNeNMZe.js +237 -0
  101. package/dist/bundled/chunks/model-DhvdMZzS.js +744 -0
  102. package/dist/bundled/chunks/navigation-view-GU5-aPWL.js +20 -0
  103. package/dist/bundled/chunks/ownership-004rrffQ.js +48 -0
  104. package/dist/bundled/chunks/presets-config-CfdpjV2k.js +173 -0
  105. package/dist/bundled/chunks/project-config-Di_IAjjN.js +190 -0
  106. package/dist/bundled/chunks/purify.es-DhaLjfsW.js +2463 -0
  107. package/dist/bundled/chunks/rolldown-runtime-D8jQpDG7.js +12 -0
  108. package/dist/bundled/chunks/sandbox-shared-CwPQj187.js +1178 -0
  109. package/dist/bundled/chunks/screenshot-file-5sIH6A7o.js +22 -0
  110. package/dist/bundled/chunks/screenshot-targets-1TJFnTQJ.js +21 -0
  111. package/dist/bundled/chunks/selection-DQJWdqhl.js +35 -0
  112. package/dist/bundled/chunks/settings-B8QvkMcW.js +173 -0
  113. package/dist/bundled/chunks/settings-DC0gilMg.js +35 -0
  114. package/dist/bundled/chunks/shell-VHlsl1Wj.js +15 -0
  115. package/dist/bundled/chunks/shell-extensions-BRqMTtWV.js +29 -0
  116. package/dist/bundled/chunks/shell-registry-dTiCKXFh.js +66 -0
  117. package/dist/bundled/chunks/shortcuts-BPetXlYX.js +84 -0
  118. package/dist/bundled/chunks/src-BazVZNon.js +445 -0
  119. package/dist/bundled/chunks/status-C0sxyPzj.js +48 -0
  120. package/dist/bundled/chunks/tests-view-B9J9Gvpt.js +33 -0
  121. package/dist/bundled/chunks/ui-channel-BPYj8uw2.js +36 -0
  122. package/dist/bundled/chunks/use-install-plan-ChZg4Xyq.js +184 -0
  123. package/dist/bundled/chunks/visual-CId9zv09.js +611 -0
  124. package/dist/bundled/chunks/workbench-plugin-id-BgjbPURy.js +7 -0
  125. package/dist/bundled/controls.js +1 -0
  126. package/dist/bundled/index.js +15290 -33
  127. package/dist/bundled/sandbox.js +1 -87
  128. package/dist/embed/EmbedDocument.vue.js +4 -0
  129. package/dist/embed/EmbedDocument.vue_vue_type_script_setup_true_lang.js +47 -0
  130. package/dist/embed/_virtual/_plugin-vue_export-helper.js +7 -0
  131. package/dist/embed/_virtual/_rolldown/runtime.js +12 -0
  132. package/dist/embed/adapters/channels.d.ts +34 -0
  133. package/dist/embed/adapters/channels.js +105 -0
  134. package/dist/embed/adapters/content-surface.d.ts +1 -0
  135. package/dist/embed/adapters/content-surface.js +9 -0
  136. package/dist/embed/adapters/content-view.d.ts +6 -0
  137. package/dist/embed/adapters/content-view.js +16 -0
  138. package/dist/embed/adapters/controls-replica.d.ts +10 -0
  139. package/dist/embed/adapters/controls-replica.js +294 -0
  140. package/dist/embed/adapters/controls-view.d.ts +7 -0
  141. package/dist/embed/adapters/controls-view.js +69 -0
  142. package/dist/embed/adapters/controls.d.ts +1 -0
  143. package/dist/embed/adapters/controls.js +8 -0
  144. package/dist/embed/adapters/document.d.ts +24 -0
  145. package/dist/embed/adapters/document.js +48 -0
  146. package/dist/embed/adapters/explorer-session.d.ts +13 -0
  147. package/dist/embed/adapters/explorer-session.js +203 -0
  148. package/dist/embed/adapters/explorer-view.d.ts +9 -0
  149. package/dist/embed/adapters/explorer-view.js +83 -0
  150. package/dist/embed/adapters/explorer.d.ts +1 -0
  151. package/dist/embed/adapters/explorer.js +9 -0
  152. package/dist/embed/adapters/geometry.d.ts +1 -0
  153. package/dist/embed/adapters/geometry.js +1 -0
  154. package/dist/embed/adapters/layout.d.ts +14 -0
  155. package/dist/embed/adapters/layout.js +109 -0
  156. package/dist/embed/adapters/lazy-surface.d.ts +3 -0
  157. package/dist/embed/adapters/lazy-surface.js +52 -0
  158. package/dist/embed/adapters/local-mount.d.ts +3 -0
  159. package/dist/embed/adapters/local-mount.js +179 -0
  160. package/dist/embed/adapters/navigation-surface.d.ts +1 -0
  161. package/dist/embed/adapters/navigation-surface.js +14 -0
  162. package/dist/embed/adapters/navigation-view.d.ts +7 -0
  163. package/dist/embed/adapters/navigation-view.js +23 -0
  164. package/dist/embed/adapters/preview.d.ts +1 -0
  165. package/dist/embed/adapters/preview.js +5 -0
  166. package/dist/embed/adapters/runtime-frame.d.ts +14 -0
  167. package/dist/embed/adapters/runtime-frame.js +470 -0
  168. package/dist/embed/adapters/runtime-layout.d.ts +23 -0
  169. package/dist/embed/adapters/runtime-layout.js +44 -0
  170. package/dist/embed/adapters/runtime-loading.d.ts +30 -0
  171. package/dist/embed/adapters/runtime-loading.js +57 -0
  172. package/dist/embed/adapters/runtime-readiness.d.ts +14 -0
  173. package/dist/embed/adapters/runtime-readiness.js +53 -0
  174. package/dist/embed/adapters/runtime-requests.d.ts +12 -0
  175. package/dist/embed/adapters/runtime-requests.js +114 -0
  176. package/dist/embed/adapters/runtime-revision.d.ts +9 -0
  177. package/dist/embed/adapters/runtime-revision.js +29 -0
  178. package/dist/embed/adapters/sandbox-urls.d.ts +22 -0
  179. package/dist/embed/adapters/sandbox-urls.js +40 -0
  180. package/dist/embed/adapters/stale-preview.d.ts +14 -0
  181. package/dist/embed/adapters/stale-preview.js +56 -0
  182. package/dist/embed/adapters/state-presets.d.ts +28 -0
  183. package/dist/embed/adapters/state-presets.js +108 -0
  184. package/dist/embed/adapters/state.d.ts +11 -0
  185. package/dist/embed/adapters/state.js +29 -0
  186. package/dist/embed/adapters/test-workers.d.ts +30 -0
  187. package/dist/embed/adapters/test-workers.js +133 -0
  188. package/dist/embed/adapters/tests-surface.d.ts +1 -0
  189. package/dist/embed/adapters/tests-surface.js +9 -0
  190. package/dist/embed/adapters/tests-view.d.ts +7 -0
  191. package/dist/embed/adapters/tests-view.js +34 -0
  192. package/dist/embed/adapters/tests.d.ts +8 -0
  193. package/dist/embed/adapters/tests.js +21 -0
  194. package/dist/embed/app/standalone/presets.js +67 -0
  195. package/dist/embed/app.css +175 -0
  196. package/dist/embed/capabilities.d.ts +5 -0
  197. package/dist/embed/capabilities.js +23 -0
  198. package/dist/embed/color-scheme.d.ts +6 -0
  199. package/dist/embed/color-scheme.js +10 -0
  200. package/dist/embed/commands.d.ts +9 -0
  201. package/dist/embed/commands.js +118 -0
  202. package/dist/embed/descriptor.d.ts +7 -0
  203. package/dist/embed/descriptor.js +47 -0
  204. package/dist/embed/direct.d.ts +4 -0
  205. package/dist/embed/direct.js +55 -0
  206. package/dist/embed/document.css +11 -0
  207. package/dist/embed/fetch.d.ts +4 -0
  208. package/dist/embed/fetch.js +66 -0
  209. package/dist/embed/handshake.d.ts +7 -0
  210. package/dist/embed/handshake.js +171 -0
  211. package/dist/embed/index.d.ts +14 -0
  212. package/dist/embed/index.js +36 -0
  213. package/dist/embed/lifecycle.d.ts +7 -0
  214. package/dist/embed/lifecycle.js +32 -0
  215. package/dist/embed/node_modules/.pnpm/@codemirror_commands@6.10.1/node_modules/@codemirror/commands/dist/index.js +1567 -0
  216. package/dist/embed/node_modules/.pnpm/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +28 -0
  217. package/dist/embed/node_modules/.pnpm/@codemirror_language@6.12.1/node_modules/@codemirror/language/dist/index.js +1737 -0
  218. package/dist/embed/node_modules/.pnpm/@codemirror_lint@6.9.2/node_modules/@codemirror/lint/dist/index.js +559 -0
  219. package/dist/embed/node_modules/.pnpm/@codemirror_state@6.5.3/node_modules/@codemirror/state/dist/index.js +3351 -0
  220. package/dist/embed/node_modules/.pnpm/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +119 -0
  221. package/dist/embed/node_modules/.pnpm/@codemirror_view@6.39.9/node_modules/@codemirror/view/dist/index.js +8856 -0
  222. package/dist/embed/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +1521 -0
  223. package/dist/embed/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +874 -0
  224. package/dist/embed/node_modules/.pnpm/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.js +52 -0
  225. package/dist/embed/node_modules/.pnpm/@lezer_lr@1.4.7/node_modules/@lezer/lr/dist/index.js +1446 -0
  226. package/dist/embed/node_modules/.pnpm/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js +71 -0
  227. package/dist/embed/node_modules/.pnpm/@shikijs_core@3.21.0/node_modules/@shikijs/core/dist/index.js +1775 -0
  228. package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/index.js +387 -0
  229. package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +6 -0
  230. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/abap.js +2 -0
  231. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -0
  232. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ada.js +2 -0
  233. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-expression.js +2 -0
  234. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-html.js +16 -0
  235. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -0
  236. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-template.js +10 -0
  237. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -0
  238. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template-blocks.js +10 -0
  239. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template.js +5 -0
  240. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-ts.js +18 -0
  241. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apache.js +2 -0
  242. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apex.js +2 -0
  243. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apl.js +16 -0
  244. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/applescript.js +2 -0
  245. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ara.js +2 -0
  246. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asciidoc.js +2 -0
  247. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asm.js +2 -0
  248. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/astro.js +18 -0
  249. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/awk.js +2 -0
  250. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ballerina.js +2 -0
  251. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bat.js +2 -0
  252. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/beancount.js +2 -0
  253. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/berry.js +2 -0
  254. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bibtex.js +2 -0
  255. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bicep.js +2 -0
  256. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/blade.js +20 -0
  257. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bsl.js +5 -0
  258. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c.js +2 -0
  259. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c3.js +2 -0
  260. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cadence.js +2 -0
  261. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cairo.js +5 -0
  262. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clarity.js +2 -0
  263. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clojure.js +2 -0
  264. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cmake.js +2 -0
  265. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cobol.js +10 -0
  266. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeowners.js +2 -0
  267. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeql.js +2 -0
  268. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coffee.js +5 -0
  269. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/common-lisp.js +2 -0
  270. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coq.js +2 -0
  271. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp-macro.js +12 -0
  272. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp.js +14 -0
  273. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/crystal.js +18 -0
  274. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csharp.js +2 -0
  275. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/css.js +2 -0
  276. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csv.js +2 -0
  277. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cue.js +2 -0
  278. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cypher.js +2 -0
  279. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/d.js +2 -0
  280. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dart.js +2 -0
  281. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dax.js +2 -0
  282. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/desktop.js +2 -0
  283. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/diff.js +2 -0
  284. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/docker.js +2 -0
  285. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dotenv.js +2 -0
  286. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dream-maker.js +2 -0
  287. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/edge.js +12 -0
  288. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elixir.js +5 -0
  289. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elm.js +5 -0
  290. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -0
  291. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erb.js +10 -0
  292. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erlang.js +5 -0
  293. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-css.js +12 -0
  294. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-glsl.js +12 -0
  295. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-html.js +12 -0
  296. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-sql.js +10 -0
  297. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -0
  298. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fennel.js +2 -0
  299. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fish.js +2 -0
  300. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fluent.js +2 -0
  301. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -0
  302. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -0
  303. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fsharp.js +5 -0
  304. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdresource.js +10 -0
  305. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdscript.js +2 -0
  306. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdshader.js +2 -0
  307. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/genie.js +2 -0
  308. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gherkin.js +2 -0
  309. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-commit.js +5 -0
  310. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-rebase.js +5 -0
  311. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gleam.js +2 -0
  312. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-js.js +14 -0
  313. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-ts.js +14 -0
  314. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glsl.js +5 -0
  315. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gn.js +2 -0
  316. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gnuplot.js +2 -0
  317. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/go.js +2 -0
  318. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/graphql.js +14 -0
  319. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/groovy.js +2 -0
  320. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hack.js +10 -0
  321. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haml.js +10 -0
  322. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/handlebars.js +14 -0
  323. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haskell.js +2 -0
  324. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haxe.js +2 -0
  325. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hcl.js +2 -0
  326. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hjson.js +2 -0
  327. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hlsl.js +2 -0
  328. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html-derivative.js +5 -0
  329. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html.js +10 -0
  330. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/http.js +14 -0
  331. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hurl.js +12 -0
  332. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hxml.js +5 -0
  333. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hy.js +2 -0
  334. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/imba.js +2 -0
  335. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ini.js +2 -0
  336. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/java.js +2 -0
  337. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/javascript.js +2 -0
  338. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja-html.js +5 -0
  339. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja.js +5 -0
  340. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jison.js +5 -0
  341. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json.js +2 -0
  342. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json5.js +2 -0
  343. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonc.js +2 -0
  344. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonl.js +2 -0
  345. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonnet.js +2 -0
  346. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jssm.js +2 -0
  347. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsx.js +2 -0
  348. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/julia.js +16 -0
  349. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kdl.js +2 -0
  350. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kotlin.js +2 -0
  351. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kusto.js +2 -0
  352. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/latex.js +5 -0
  353. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lean.js +2 -0
  354. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/less.js +2 -0
  355. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/liquid.js +14 -0
  356. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/llvm.js +2 -0
  357. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/log.js +2 -0
  358. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/logo.js +2 -0
  359. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lua.js +5 -0
  360. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/luau.js +2 -0
  361. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/make.js +2 -0
  362. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -0
  363. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -0
  364. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown.js +2 -0
  365. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/marko.js +14 -0
  366. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/matlab.js +2 -0
  367. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdc.js +12 -0
  368. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdx.js +2 -0
  369. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mermaid.js +2 -0
  370. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mipsasm.js +2 -0
  371. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mojo.js +2 -0
  372. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/moonbit.js +2 -0
  373. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/move.js +2 -0
  374. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/narrat.js +2 -0
  375. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nextflow.js +2 -0
  376. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nginx.js +5 -0
  377. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nim.js +20 -0
  378. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nix.js +5 -0
  379. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nushell.js +2 -0
  380. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-c.js +2 -0
  381. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -0
  382. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ocaml.js +2 -0
  383. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/openscad.js +2 -0
  384. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pascal.js +2 -0
  385. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/perl.js +16 -0
  386. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/php.js +18 -0
  387. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pkl.js +2 -0
  388. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/plsql.js +2 -0
  389. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/po.js +2 -0
  390. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/polar.js +2 -0
  391. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/postcss.js +2 -0
  392. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powerquery.js +2 -0
  393. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powershell.js +2 -0
  394. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prisma.js +2 -0
  395. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prolog.js +2 -0
  396. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/proto.js +2 -0
  397. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pug.js +12 -0
  398. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/puppet.js +2 -0
  399. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/purescript.js +2 -0
  400. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/python.js +2 -0
  401. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qml.js +5 -0
  402. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qmldir.js +2 -0
  403. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qss.js +2 -0
  404. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/r.js +2 -0
  405. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/racket.js +2 -0
  406. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/raku.js +2 -0
  407. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/razor.js +10 -0
  408. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/reg.js +2 -0
  409. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/regexp.js +2 -0
  410. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rel.js +2 -0
  411. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/riscv.js +2 -0
  412. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rosmsg.js +2 -0
  413. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rst.js +22 -0
  414. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ruby.js +30 -0
  415. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rust.js +2 -0
  416. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sas.js +5 -0
  417. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sass.js +2 -0
  418. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scala.js +2 -0
  419. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scheme.js +2 -0
  420. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scss.js +5 -0
  421. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sdbl.js +2 -0
  422. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shaderlab.js +5 -0
  423. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellscript.js +2 -0
  424. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellsession.js +5 -0
  425. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/smalltalk.js +2 -0
  426. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/solidity.js +2 -0
  427. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/soy.js +5 -0
  428. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sparql.js +5 -0
  429. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/splunk.js +2 -0
  430. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sql.js +2 -0
  431. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ssh-config.js +2 -0
  432. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stata.js +5 -0
  433. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stylus.js +2 -0
  434. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/svelte.js +14 -0
  435. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/swift.js +2 -0
  436. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/system-verilog.js +2 -0
  437. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/systemd.js +2 -0
  438. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/talonscript.js +2 -0
  439. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tasl.js +2 -0
  440. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tcl.js +2 -0
  441. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/templ.js +12 -0
  442. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/terraform.js +2 -0
  443. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tex.js +5 -0
  444. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/toml.js +2 -0
  445. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ts-tags.js +18 -0
  446. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsv.js +2 -0
  447. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsx.js +2 -0
  448. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/turtle.js +2 -0
  449. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/twig.js +18 -0
  450. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typescript.js +2 -0
  451. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typespec.js +2 -0
  452. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typst.js +2 -0
  453. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/v.js +2 -0
  454. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vala.js +2 -0
  455. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vb.js +2 -0
  456. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/verilog.js +2 -0
  457. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vhdl.js +2 -0
  458. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/viml.js +2 -0
  459. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-directives.js +2 -0
  460. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-html.js +5 -0
  461. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -0
  462. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -0
  463. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-vine.js +18 -0
  464. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue.js +26 -0
  465. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vyper.js +2 -0
  466. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wasm.js +2 -0
  467. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wenyan.js +2 -0
  468. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wgsl.js +2 -0
  469. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wikitext.js +2 -0
  470. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wit.js +2 -0
  471. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wolfram.js +2 -0
  472. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
  473. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xsl.js +5 -0
  474. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/yaml.js +2 -0
  475. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zenscript.js +2 -0
  476. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zig.js +2 -0
  477. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/andromeeda.js +3 -0
  478. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/aurora-x.js +3 -0
  479. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/ayu-dark.js +3 -0
  480. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +3 -0
  481. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-latte.js +3 -0
  482. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +3 -0
  483. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +3 -0
  484. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dark-plus.js +3 -0
  485. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula-soft.js +3 -0
  486. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula.js +3 -0
  487. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-dark.js +3 -0
  488. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-light.js +3 -0
  489. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-default.js +3 -0
  490. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +3 -0
  491. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +3 -0
  492. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark.js +3 -0
  493. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-default.js +3 -0
  494. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +3 -0
  495. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light.js +3 -0
  496. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +3 -0
  497. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +3 -0
  498. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +3 -0
  499. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +3 -0
  500. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +3 -0
  501. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +3 -0
  502. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/houston.js +3 -0
  503. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +3 -0
  504. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +3 -0
  505. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-wave.js +3 -0
  506. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/laserwave.js +3 -0
  507. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/light-plus.js +3 -0
  508. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-darker.js +3 -0
  509. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-lighter.js +3 -0
  510. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-ocean.js +3 -0
  511. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-palenight.js +3 -0
  512. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme.js +3 -0
  513. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-dark.js +3 -0
  514. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-light.js +3 -0
  515. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/monokai.js +3 -0
  516. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/night-owl.js +3 -0
  517. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/nord.js +3 -0
  518. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-dark-pro.js +3 -0
  519. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-light.js +3 -0
  520. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/plastic.js +3 -0
  521. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/poimandres.js +3 -0
  522. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/red.js +3 -0
  523. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +3 -0
  524. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-moon.js +3 -0
  525. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine.js +3 -0
  526. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-dark.js +3 -0
  527. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-ochin.js +3 -0
  528. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/snazzy-light.js +3 -0
  529. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-dark.js +3 -0
  530. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-light.js +3 -0
  531. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/synthwave-84.js +3 -0
  532. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/tokyo-night.js +3 -0
  533. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vesper.js +3 -0
  534. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-black.js +3 -0
  535. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-dark.js +3 -0
  536. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-light.js +3 -0
  537. package/dist/embed/node_modules/.pnpm/@shikijs_types@3.21.0/node_modules/@shikijs/types/dist/index.js +8 -0
  538. package/dist/embed/node_modules/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +2320 -0
  539. package/dist/embed/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +23 -0
  540. package/dist/embed/node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +261 -0
  541. package/dist/embed/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +115 -0
  542. package/dist/embed/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +16 -0
  543. package/dist/embed/node_modules/.pnpm/crelt@1.0.6/node_modules/crelt/index.js +23 -0
  544. package/dist/embed/node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.js +2463 -0
  545. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +33 -0
  546. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +23 -0
  547. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +125 -0
  548. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +50 -0
  549. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +25 -0
  550. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +23 -0
  551. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +26 -0
  552. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +238 -0
  553. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +268 -0
  554. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +39 -0
  555. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +97 -0
  556. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +42 -0
  557. package/dist/embed/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +27 -0
  558. package/dist/embed/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +29 -0
  559. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +25 -0
  560. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +60 -0
  561. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +80 -0
  562. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +315 -0
  563. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +14 -0
  564. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +561 -0
  565. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +14 -0
  566. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +13 -0
  567. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +52 -0
  568. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +48 -0
  569. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +32 -0
  570. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +25 -0
  571. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +26 -0
  572. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +23 -0
  573. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +18 -0
  574. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +14 -0
  575. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +13 -0
  576. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/bundle-full.js +13 -0
  577. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/index.js +7 -0
  578. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/langs.js +1248 -0
  579. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/themes.js +365 -0
  580. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/wasm.js +1 -0
  581. package/dist/embed/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +13 -0
  582. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +18 -0
  583. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +77 -0
  584. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +21 -0
  585. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +40 -0
  586. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +15 -0
  587. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +15 -0
  588. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +35 -0
  589. package/dist/embed/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod/src/style-mod.js +92 -0
  590. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScroller.vue_vue_type_script_setup_true_lang-yssX6Q5B.js +130 -0
  591. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScrollerItem.vue_vue_type_script_setup_true_lang-qh6MY0wl.js +37 -0
  592. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi.js +202 -0
  593. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScroller.js +705 -0
  594. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScrollerItem.js +47 -0
  595. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/dynamicScrollerMeasurement-Cq5NQLJa.js +122 -0
  596. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/keyField-D6okV6nC.js +15 -0
  597. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/scroller.css_vue_type_style_index_0_src_true_lang--7gJ3zh_.js +100 -0
  598. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/useRecycleScroller-D_RDrEg2.js +805 -0
  599. package/dist/embed/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js +101 -0
  600. package/dist/embed/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +105 -0
  601. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue.js +4 -0
  602. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue_vue_type_script_setup_true_lang.js +43 -0
  603. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue.js +4 -0
  604. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue_vue_type_script_setup_true_lang.js +50 -0
  605. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue.js +4 -0
  606. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue_vue_type_script_setup_true_lang.js +40 -0
  607. package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue.js +6 -0
  608. package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue_vue_type_script_setup_true_lang.js +78 -0
  609. package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue.js +6 -0
  610. package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue_vue_type_script_setup_true_lang.js +50 -0
  611. package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue.js +4 -0
  612. package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue_vue_type_script_setup_true_lang.js +79 -0
  613. package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue.js +4 -0
  614. package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue_vue_type_script_setup_true_lang.js +46 -0
  615. package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue.js +4 -0
  616. package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue_vue_type_script_setup_true_lang.js +85 -0
  617. package/dist/embed/packages/histoire-controls/src/components/design-tokens/HstTokenGrid.vue.js +1 -0
  618. package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue.js +6 -0
  619. package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue_vue_type_script_setup_true_lang.js +146 -0
  620. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue.js +6 -0
  621. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue_vue_type_script_setup_true_lang.js +175 -0
  622. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditorAsync.js +22 -0
  623. package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue.js +4 -0
  624. package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue_vue_type_script_setup_true_lang.js +107 -0
  625. package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue.js +4 -0
  626. package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue_vue_type_script_setup_true_lang.js +207 -0
  627. package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue.js +4 -0
  628. package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue_vue_type_script_setup_true_lang.js +78 -0
  629. package/dist/embed/packages/histoire-controls/src/components/slider/HstSlider.vue.js +1 -0
  630. package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue.js +4 -0
  631. package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue_vue_type_script_setup_true_lang.js +67 -0
  632. package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue.js +4 -0
  633. package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue_vue_type_script_setup_true_lang.js +65 -0
  634. package/dist/embed/packages/histoire-controls/src/context.js +17 -0
  635. package/dist/embed/packages/histoire-controls/src/field.js +43 -0
  636. package/dist/embed/packages/histoire-controls/src/index.js +30 -0
  637. package/dist/embed/packages/histoire-controls/src/loading/LoadingDelayBoundary.js +13 -0
  638. package/dist/embed/packages/histoire-controls/src/loading/use-loading-delay.js +24 -0
  639. package/dist/embed/packages/histoire-controls/src/model.js +28 -0
  640. package/dist/embed/packages/histoire-controls/src/options.js +12 -0
  641. package/dist/embed/packages/histoire-controls/src/overlay/appearance.js +64 -0
  642. package/dist/embed/packages/histoire-controls/src/overlay/focus.js +81 -0
  643. package/dist/embed/packages/histoire-controls/src/overlay/tooltip.js +116 -0
  644. package/dist/embed/packages/histoire-controls/src/utils.js +15 -0
  645. package/dist/embed/packages/histoire-vue/src/components/controls/GenericControls.js +40 -0
  646. package/dist/embed/packages/histoire-vue/src/components/controls/HistoireControls.js +203 -0
  647. package/dist/embed/packages/histoire-vue/src/components/controls/PresetMenu.js +267 -0
  648. package/dist/embed/packages/histoire-vue/src/components/controls/PropControl.js +85 -0
  649. package/dist/embed/packages/histoire-vue/src/components/controls/StateControl.js +34 -0
  650. package/dist/embed/packages/histoire-vue/src/components/controls/StatePresets.js +127 -0
  651. package/dist/embed/packages/histoire-vue/src/components/controls/edit.js +80 -0
  652. package/dist/embed/packages/histoire-vue/src/components/controls/editor.js +29 -0
  653. package/dist/embed/packages/histoire-vue/src/components/docs/HistoireDocs.js +149 -0
  654. package/dist/embed/packages/histoire-vue/src/components/docs/anchors.js +21 -0
  655. package/dist/embed/packages/histoire-vue/src/components/docs/content.js +12 -0
  656. package/dist/embed/packages/histoire-vue/src/components/docs/links.js +81 -0
  657. package/dist/embed/packages/histoire-vue/src/components/docs/sanitize.js +30 -0
  658. package/dist/embed/packages/histoire-vue/src/components/embed/EmbedPanels.js +64 -0
  659. package/dist/embed/packages/histoire-vue/src/components/embed/HistoireEmbed.js +93 -0
  660. package/dist/embed/packages/histoire-vue/src/components/embed/geometry.js +39 -0
  661. package/dist/embed/packages/histoire-vue/src/components/events/HistoireEvents.js +116 -0
  662. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerNavigation.js +23 -0
  663. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPanels.js +121 -0
  664. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPreview.js +136 -0
  665. package/dist/embed/packages/histoire-vue/src/components/explorer/HistoireExplorer.js +58 -0
  666. package/dist/embed/packages/histoire-vue/src/components/explorer/panel-tabs.js +69 -0
  667. package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionOutlet.js +48 -0
  668. package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionView.js +76 -0
  669. package/dist/embed/packages/histoire-vue/src/components/extensions/panel-action.js +33 -0
  670. package/dist/embed/packages/histoire-vue/src/components/extensions/state-renderer.js +65 -0
  671. package/dist/embed/packages/histoire-vue/src/components/extensions/view-lifecycle.js +109 -0
  672. package/dist/embed/packages/histoire-vue/src/components/extensions/workbench-components.js +134 -0
  673. package/dist/embed/packages/histoire-vue/src/components/preview/HistoirePreview.js +5 -0
  674. package/dist/embed/packages/histoire-vue/src/components/preview/surface.js +121 -0
  675. package/dist/embed/packages/histoire-vue/src/components/search/HistoireSearch.js +106 -0
  676. package/dist/embed/packages/histoire-vue/src/components/source/HistoireSource.js +147 -0
  677. package/dist/embed/packages/histoire-vue/src/components/source/content.js +15 -0
  678. package/dist/embed/packages/histoire-vue/src/components/source/highlight.js +32 -0
  679. package/dist/embed/packages/histoire-vue/src/components/source/render.js +15 -0
  680. package/dist/embed/packages/histoire-vue/src/components/tests/HistoireTests.js +119 -0
  681. package/dist/embed/packages/histoire-vue/src/components/tests/TestsRunActions.js +186 -0
  682. package/dist/embed/packages/histoire-vue/src/components/tests/render.js +147 -0
  683. package/dist/embed/packages/histoire-vue/src/components/toolbar/HistoireToolbar.js +145 -0
  684. package/dist/embed/packages/histoire-vue/src/components/toolbar/ToolbarExtensions.js +89 -0
  685. package/dist/embed/packages/histoire-vue/src/components/toolbar/groups.js +25 -0
  686. package/dist/embed/packages/histoire-vue/src/components/tree/HistoireStoryTree.js +90 -0
  687. package/dist/embed/packages/histoire-vue/src/composables/snapshot.js +11 -0
  688. package/dist/embed/packages/histoire-vue/src/content/controller.js +66 -0
  689. package/dist/embed/packages/histoire-vue/src/foundation/VirtualList.js +156 -0
  690. package/dist/embed/packages/histoire-vue/src/foundation/floating.js +80 -0
  691. package/dist/embed/packages/histoire-vue/src/foundation/parts.js +18 -0
  692. package/dist/embed/packages/histoire-vue/src/overlays/OverlayHost.js +138 -0
  693. package/dist/embed/packages/histoire-vue/src/overlays/geometry.js +14 -0
  694. package/dist/embed/packages/histoire-vue/src/overlays/menu-bounds.js +46 -0
  695. package/dist/embed/packages/histoire-vue/src/provider/HistoireProvider.js +198 -0
  696. package/dist/embed/packages/histoire-vue/src/provider/context.js +17 -0
  697. package/dist/embed/packages/histoire-vue/src/provider/extensions.js +150 -0
  698. package/dist/embed/packages/histoire-vue/src/provider/panels.js +51 -0
  699. package/dist/embed/packages/histoire-vue/src/provider/plugin-shortcuts.js +75 -0
  700. package/dist/embed/packages/histoire-vue/src/provider/shortcuts.js +56 -0
  701. package/dist/embed/packages/histoire-vue/src/provider/theme.js +23 -0
  702. package/dist/embed/packages/histoire-vue/src/search/navigation.js +51 -0
  703. package/dist/embed/packages/histoire-vue/src/tests/collector.js +49 -0
  704. package/dist/embed/packages/histoire-vue/src/tests/controller.js +114 -0
  705. package/dist/embed/packages/histoire-vue/src/tests/model.js +29 -0
  706. package/dist/embed/search-match.d.ts +23 -0
  707. package/dist/embed/search-match.js +51 -0
  708. package/dist/embed/search.d.ts +5 -0
  709. package/dist/embed/search.js +54 -0
  710. package/dist/embed/source.d.ts +4 -0
  711. package/dist/embed/source.js +151 -0
  712. package/dist/embed/subscriptions.d.ts +10 -0
  713. package/dist/embed/subscriptions.js +49 -0
  714. package/dist/embed/surfaces.d.ts +42 -0
  715. package/dist/embed/surfaces.js +22 -0
  716. package/dist/embed/types.d.ts +24 -0
  717. package/dist/embed/view-session.d.ts +16 -0
  718. package/dist/embed/view-session.js +196 -0
  719. package/dist/fonts/SOURCES.txt +2 -0
  720. package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  721. package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  722. package/dist/fonts/jetbrains-mono.LICENSE +93 -0
  723. package/dist/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
  724. package/dist/fonts/manrope-latin-wght-normal.woff2 +0 -0
  725. package/dist/fonts/manrope.LICENSE +93 -0
  726. package/dist/style.css +8151 -2836
  727. package/package.json +35 -15
  728. package/postcss-scope-wrapper.cjs +21 -22
  729. package/postcss.config.cjs +2 -4
  730. package/scripts/asset-path.mjs +8 -0
  731. package/scripts/copy.mjs +4 -5
  732. package/scripts/generate-fonts.mjs +42 -0
  733. package/scripts/generate-icons.mjs +28 -0
  734. package/scripts/module-file-name.mjs +8 -0
  735. package/scripts/watchAndCopy.mjs +8 -5
  736. package/src/app/App.vue +27 -167
  737. package/src/app/api.ts +8 -1
  738. package/src/app/components/agents/AgentLogo.vue +31 -0
  739. package/src/app/components/agents/PermissionPrompt.vue +74 -0
  740. package/src/app/components/base/BaseButton.vue +13 -23
  741. package/src/app/components/base/BaseChip.vue +21 -0
  742. package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
  743. package/src/app/components/base/overflow/BaseOverflowToolbar.vue +111 -0
  744. package/src/app/components/base/overflow/BaseOverflowToolbarItem.vue +36 -0
  745. package/src/app/components/base/overflow/context.ts +47 -0
  746. package/src/app/components/base/overflow/fit.ts +28 -0
  747. package/src/app/components/base/overflow/layout.ts +174 -0
  748. package/src/app/components/base/overflow/measurement.ts +70 -0
  749. package/src/app/components/base/overflow/presentation.ts +12 -0
  750. package/src/app/components/base/popover/BasePopover.vue +147 -0
  751. package/src/app/components/base/popover/PopoverDivider.vue +12 -0
  752. package/src/app/components/base/popover/PopoverError.vue +12 -0
  753. package/src/app/components/base/popover/PopoverMeta.vue +10 -0
  754. package/src/app/components/base/popover/PopoverRow.vue +19 -0
  755. package/src/app/components/base/popover/PopoverTitle.vue +16 -0
  756. package/src/app/components/base/popover/overlay.ts +21 -0
  757. package/src/app/components/base/popover/position.ts +54 -0
  758. package/src/app/components/base/popover/scope.ts +45 -0
  759. package/src/app/components/base/use-menu-keyboard.ts +61 -0
  760. package/src/app/components/canvas/AgentCursor.vue +66 -0
  761. package/src/app/components/canvas/CanvasFrame.vue +167 -0
  762. package/src/app/components/canvas/CanvasHeader.vue +35 -0
  763. package/src/app/components/canvas/CanvasHintBar.vue +16 -0
  764. package/src/app/components/canvas/CanvasHintButton.vue +18 -0
  765. package/src/app/components/canvas/CanvasHintItem.vue +16 -0
  766. package/src/app/components/canvas/CanvasHintKey.vue +10 -0
  767. package/src/app/components/canvas/CanvasLoadingIndicator.vue +9 -0
  768. package/src/app/components/canvas/CanvasMatrixPrimary.vue +147 -0
  769. package/src/app/components/canvas/CanvasMeasureHint.vue +57 -0
  770. package/src/app/components/canvas/CanvasReplicaPreview.vue +86 -0
  771. package/src/app/components/canvas/CanvasSingleVariant.vue +70 -0
  772. package/src/app/components/canvas/CanvasStatus.vue +49 -0
  773. package/src/app/components/canvas/CanvasViewport.vue +283 -0
  774. package/src/app/components/canvas/CollectErrorCard.vue +22 -0
  775. package/src/app/components/canvas/FrameGrid.vue +14 -0
  776. package/src/app/components/canvas/FrameList.vue +14 -0
  777. package/src/app/components/canvas/MeasureBoxModel.vue +47 -0
  778. package/src/app/components/canvas/MeasureGuides.vue +30 -0
  779. package/src/app/components/canvas/MeasureOverlay.vue +252 -0
  780. package/src/app/components/canvas/SingleVariantResizeHandle.vue +11 -0
  781. package/src/app/components/canvas/SingleVariantResizeHandles.vue +131 -0
  782. package/src/app/components/canvas/active-tool.ts +9 -0
  783. package/src/app/components/canvas/agent-cursor.ts +57 -0
  784. package/src/app/components/canvas/canvas-extensions.ts +87 -0
  785. package/src/app/components/canvas/canvas-header-editor.ts +84 -0
  786. package/src/app/components/canvas/canvas-overlay-occlusion.ts +20 -0
  787. package/src/app/components/canvas/canvas-startup-activity.ts +46 -0
  788. package/src/app/components/canvas/content-measure.ts +92 -0
  789. package/src/app/components/canvas/content-sizes.ts +37 -0
  790. package/src/app/components/canvas/frame-activation.ts +49 -0
  791. package/src/app/components/canvas/frame-admission.ts +42 -0
  792. package/src/app/components/canvas/frame-badges.ts +74 -0
  793. package/src/app/components/canvas/frame-focus.ts +31 -0
  794. package/src/app/components/canvas/frame-interactions.ts +81 -0
  795. package/src/app/components/canvas/frame-layout.ts +158 -0
  796. package/src/app/components/canvas/frame-menu.ts +13 -0
  797. package/src/app/components/canvas/frame-props-override.ts +94 -0
  798. package/src/app/components/canvas/frame-registration.ts +12 -0
  799. package/src/app/components/canvas/frame-replica.ts +34 -0
  800. package/src/app/components/canvas/frame-requests.ts +8 -0
  801. package/src/app/components/canvas/frame-runtime.ts +100 -0
  802. package/src/app/components/canvas/frame-selection.ts +90 -0
  803. package/src/app/components/canvas/frame-source.ts +10 -0
  804. package/src/app/components/canvas/frame-startup-coordinator.ts +250 -0
  805. package/src/app/components/canvas/frame-startup-lifecycle.ts +197 -0
  806. package/src/app/components/canvas/frame-state.ts +92 -0
  807. package/src/app/components/canvas/frame-target.ts +21 -0
  808. package/src/app/components/canvas/frames/acquire-story-frame.ts +240 -0
  809. package/src/app/components/canvas/frames/frame-leases.ts +204 -0
  810. package/src/app/components/canvas/frames/frame-ledger.ts +79 -0
  811. package/src/app/components/canvas/frames/story-frame-session.ts +156 -0
  812. package/src/app/components/canvas/frames/viewport-frames.ts +49 -0
  813. package/src/app/components/canvas/matrix/MatrixAvailabilityState.vue +51 -0
  814. package/src/app/components/canvas/matrix/MatrixAxisBar.vue +32 -0
  815. package/src/app/components/canvas/matrix/MatrixAxisEntry.vue +85 -0
  816. package/src/app/components/canvas/matrix/MatrixAxisForm.vue +16 -0
  817. package/src/app/components/canvas/matrix/MatrixAxisFormActions.vue +12 -0
  818. package/src/app/components/canvas/matrix/MatrixBaseProp.vue +59 -0
  819. package/src/app/components/canvas/matrix/MatrixCell.vue +100 -0
  820. package/src/app/components/canvas/matrix/MatrixCustomAxes.vue +71 -0
  821. package/src/app/components/canvas/matrix/MatrixCustomValues.vue +52 -0
  822. package/src/app/components/canvas/matrix/MatrixInspector.vue +124 -0
  823. package/src/app/components/canvas/matrix/MatrixNumericValues.vue +95 -0
  824. package/src/app/components/canvas/matrix/MatrixView.vue +123 -0
  825. package/src/app/components/canvas/matrix/MatrixVisualActions.vue +52 -0
  826. package/src/app/components/canvas/matrix/matrix-layout.ts +63 -0
  827. package/src/app/components/canvas/matrix/matrix-registration.ts +42 -0
  828. package/src/app/components/canvas/matrix/matrix-selection.ts +18 -0
  829. package/src/app/components/canvas/measure-controller.ts +205 -0
  830. package/src/app/components/canvas/measure-geometry.ts +158 -0
  831. package/src/app/components/canvas/measure-labels.ts +130 -0
  832. package/src/app/components/canvas/measure-owner.ts +31 -0
  833. package/src/app/components/canvas/overlays/CanvasPluginLayers.vue +22 -0
  834. package/src/app/components/canvas/overlays/FrameLayer.vue +28 -0
  835. package/src/app/components/canvas/overlays/OverlayItem.vue +26 -0
  836. package/src/app/components/canvas/overlays/OverlayLayer.vue +32 -0
  837. package/src/app/components/canvas/overlays/frame-overlays.ts +83 -0
  838. package/src/app/components/canvas/pan/usePanZoom.ts +147 -0
  839. package/src/app/components/canvas/pan/usePointerPan.ts +99 -0
  840. package/src/app/components/canvas/pan/useSpacePan.ts +89 -0
  841. package/src/app/components/canvas/sandbox-boot-gate.ts +63 -0
  842. package/src/app/components/canvas/single-resize.ts +192 -0
  843. package/src/app/components/canvas/single-viewport.ts +41 -0
  844. package/src/app/components/canvas/single-zoom.ts +10 -0
  845. package/src/app/components/canvas/snapshots/capture.ts +107 -0
  846. package/src/app/components/canvas/snapshots/document.ts +24 -0
  847. package/src/app/components/canvas/snapshots/store.ts +127 -0
  848. package/src/app/components/canvas/snapshots/useFrameSnapshot.ts +98 -0
  849. package/src/app/components/canvas/story-view-binding.ts +187 -0
  850. package/src/app/components/canvas/toolbar/ArrangeSwitch.vue +25 -0
  851. package/src/app/components/canvas/toolbar/BackgroundPicker.vue +77 -0
  852. package/src/app/components/canvas/toolbar/CanvasToolbar.vue +157 -0
  853. package/src/app/components/canvas/toolbar/PluginToolbarItem.vue +74 -0
  854. package/src/app/components/canvas/toolbar/ScreenshotPopover.vue +195 -0
  855. package/src/app/components/canvas/toolbar/ScreenshotSetup.vue +193 -0
  856. package/src/app/components/canvas/toolbar/SearchMatchStepper.vue +27 -0
  857. package/src/app/components/canvas/toolbar/ToolSwitch.vue +38 -0
  858. package/src/app/components/canvas/toolbar/ToolbarButton.vue +52 -0
  859. package/src/app/components/canvas/toolbar/ToolbarPopover.vue +57 -0
  860. package/src/app/components/canvas/toolbar/ViewportMenu.vue +105 -0
  861. package/src/app/components/canvas/toolbar/ZoomMenu.vue +58 -0
  862. package/src/app/components/canvas/toolbar/bounds.ts +30 -0
  863. package/src/app/components/canvas/toolbar/session-settings.ts +16 -0
  864. package/src/app/components/canvas/toolbar/settings.ts +25 -0
  865. package/src/app/components/canvas/toolbar/shortcuts.ts +20 -0
  866. package/src/app/components/canvas/toolbar/use-screenshot-setup.ts +183 -0
  867. package/src/app/components/canvas/toolbar/viewport-size.ts +20 -0
  868. package/src/app/components/canvas/tools/PluginToolLayer.vue +50 -0
  869. package/src/app/components/canvas/tools/plugin-tool.ts +158 -0
  870. package/src/app/components/canvas/tools/plugin-tools.ts +134 -0
  871. package/src/app/components/canvas/useCanvasContentSizing.ts +69 -0
  872. package/src/app/components/canvas/useCanvasGeometry.ts +99 -0
  873. package/src/app/components/canvas/useCanvasHeaderOcclusion.ts +52 -0
  874. package/src/app/components/canvas/useCanvasPan.ts +46 -0
  875. package/src/app/components/canvas/useCanvasVariantSize.ts +22 -0
  876. package/src/app/components/canvas/useSingleVariantGeometry.ts +32 -0
  877. package/src/app/components/canvas/useSingleVariantPan.ts +78 -0
  878. package/src/app/components/canvas/useSingleVariantZoom.ts +58 -0
  879. package/src/app/components/canvas/viewport-events.ts +105 -0
  880. package/src/app/components/canvas/views/PluginCanvasView.vue +59 -0
  881. package/src/app/components/canvas/views/canvas-views.ts +119 -0
  882. package/src/app/components/canvas/views/view-input.ts +20 -0
  883. package/src/app/components/command/CommandPrompts.vue +31 -23
  884. package/src/app/components/command/PromptSelect.vue +27 -23
  885. package/src/app/components/command/PromptText.vue +10 -8
  886. package/src/app/components/comments/CommentComposer.vue +78 -0
  887. package/src/app/components/comments/CommentContext.vue +56 -0
  888. package/src/app/components/comments/CommentContextChip.vue +21 -0
  889. package/src/app/components/comments/CommentPin.vue +31 -0
  890. package/src/app/components/comments/CommentThread.vue +113 -0
  891. package/src/app/components/comments/CommentsCanvasOverlay.vue +172 -0
  892. package/src/app/components/comments/capture.ts +45 -0
  893. package/src/app/components/comments/destination.ts +45 -0
  894. package/src/app/components/comments/dismiss-outside.ts +44 -0
  895. package/src/app/components/comments/frame-geometry.ts +28 -0
  896. package/src/app/components/comments/pick.ts +83 -0
  897. package/src/app/components/comments/presentation.ts +85 -0
  898. package/src/app/components/comments/prompt/AgentPrompt.vue +188 -0
  899. package/src/app/components/comments/prompt/AttachMenuPanel.vue +67 -0
  900. package/src/app/components/comments/prompt/AttachmentStrip.vue +54 -0
  901. package/src/app/components/comments/prompt/AttachmentTile.vue +41 -0
  902. package/src/app/components/comments/prompt/AttachmentViewer.vue +37 -0
  903. package/src/app/components/comments/prompt/ContextChip.vue +28 -0
  904. package/src/app/components/comments/prompt/PromptAttachMenu.vue +52 -0
  905. package/src/app/components/comments/prompt/PromptMenu.vue +51 -0
  906. package/src/app/components/comments/prompt/PromptSuggestions.vue +33 -0
  907. package/src/app/components/comments/prompt/SessionPicker.vue +49 -0
  908. package/src/app/components/comments/prompt/SessionPopover.vue +21 -0
  909. package/src/app/components/comments/prompt/SessionRadioList.vue +30 -0
  910. package/src/app/components/comments/prompt/SessionSettings.vue +71 -0
  911. package/src/app/components/comments/prompt/actions.ts +85 -0
  912. package/src/app/components/comments/prompt/attachment-meta.ts +28 -0
  913. package/src/app/components/comments/prompt/attachments.ts +121 -0
  914. package/src/app/components/comments/prompt/autogrow.ts +20 -0
  915. package/src/app/components/comments/prompt/menu-trigger.ts +28 -0
  916. package/src/app/components/comments/prompt/plan-follow-up.ts +23 -0
  917. package/src/app/components/comments/prompt/session-labels.ts +36 -0
  918. package/src/app/components/comments/prompt/suggestions.ts +140 -0
  919. package/src/app/components/comments/reply-draft.ts +42 -0
  920. package/src/app/components/comments/thread/AgentActivityPhase.vue +46 -0
  921. package/src/app/components/comments/thread/AgentDisclosure.vue +12 -0
  922. package/src/app/components/comments/thread/AgentLiveTail.vue +54 -0
  923. package/src/app/components/comments/thread/AgentMarkdown.vue +32 -0
  924. package/src/app/components/comments/thread/AgentPlan.vue +39 -0
  925. package/src/app/components/comments/thread/AgentPlanDecision.vue +29 -0
  926. package/src/app/components/comments/thread/ThreadMessage.vue +70 -0
  927. package/src/app/components/comments/thread/activity-phases.ts +105 -0
  928. package/src/app/components/comments/thread/markdown.ts +32 -0
  929. package/src/app/components/comments/thread/questions/AgentElicitation.vue +34 -0
  930. package/src/app/components/comments/thread/questions/AgentPendingInput.vue +67 -0
  931. package/src/app/components/comments/thread/questions/AgentPlanApproval.vue +36 -0
  932. package/src/app/components/comments/thread/questions/ElicitationField.vue +74 -0
  933. package/src/app/components/comments/thread/questions/ElicitationForm.vue +54 -0
  934. package/src/app/components/comments/thread/questions/ElicitationLink.vue +64 -0
  935. package/src/app/components/comments/thread/questions/ElicitationOptions.vue +101 -0
  936. package/src/app/components/comments/thread/questions/QuestionActions.vue +12 -0
  937. package/src/app/components/comments/thread/questions/QuestionInput.vue +3 -0
  938. package/src/app/components/comments/thread/questions/QuestionOption.vue +13 -0
  939. package/src/app/components/comments/thread/questions/QuestionOptionLabel.vue +12 -0
  940. package/src/app/components/comments/thread/questions/elicitation-fields.ts +66 -0
  941. package/src/app/components/comments/thread/questions/use-expiry-countdown.ts +31 -0
  942. package/src/app/components/comments/thread/stick-to-bottom.ts +43 -0
  943. package/src/app/components/embed/EmbedDialog.vue +204 -0
  944. package/src/app/components/embed/EmbedMenu.vue +36 -0
  945. package/src/app/components/embed/actions.ts +21 -0
  946. package/src/app/components/embed/controller.ts +74 -0
  947. package/src/app/components/embed/snippets.ts +124 -0
  948. package/src/app/components/extensions/ExtensionOutlet.vue +58 -0
  949. package/src/app/components/extensions/ExtensionView.vue +79 -0
  950. package/src/app/components/extensions/workbench-components.ts +23 -0
  951. package/src/app/components/inspector/DocsTab.vue +20 -0
  952. package/src/app/components/inspector/EventsBadge.vue +9 -0
  953. package/src/app/components/inspector/EventsTab.vue +29 -0
  954. package/src/app/components/inspector/InspectorExtensionOutlet.vue +31 -0
  955. package/src/app/components/inspector/InspectorGuideLink.vue +21 -0
  956. package/src/app/components/inspector/InspectorHeader.vue +36 -0
  957. package/src/app/components/inspector/InspectorTabs.vue +103 -0
  958. package/src/app/components/inspector/PropsTab.vue +33 -0
  959. package/src/app/components/inspector/SourceAction.vue +14 -0
  960. package/src/app/components/inspector/SourceDrawer.vue +188 -0
  961. package/src/app/components/inspector/StoryInspector.vue +149 -0
  962. package/src/app/components/inspector/TestsBadge.vue +14 -0
  963. package/src/app/components/inspector/TestsTab.vue +29 -0
  964. package/src/app/components/inspector/builtins.ts +36 -0
  965. package/src/app/components/inspector/inspection/InspectionAccessibility.vue +56 -0
  966. package/src/app/components/inspector/inspection/InspectionComponents.vue +48 -0
  967. package/src/app/components/inspector/inspection/InspectionPanel.vue +107 -0
  968. package/src/app/components/inspector/inspection/frame-owner.ts +13 -0
  969. package/src/app/components/inspector/inspection/picker.ts +80 -0
  970. package/src/app/components/inspector/inspection/plugin.ts +111 -0
  971. package/src/app/components/inspector/inspection/use-inspection.ts +227 -0
  972. package/src/app/components/inspector/model.ts +79 -0
  973. package/src/app/components/inspector/plugin-tabs.ts +78 -0
  974. package/src/app/components/inspector/state.ts +131 -0
  975. package/src/app/components/inspector/tab-overflow.ts +127 -0
  976. package/src/app/components/lists/WorkbenchVirtualList.vue +41 -0
  977. package/src/app/components/marketplace/browse/CatalogState.vue +29 -0
  978. package/src/app/components/marketplace/browse/CollectionRow.vue +36 -0
  979. package/src/app/components/marketplace/browse/DiscoverHero.vue +43 -0
  980. package/src/app/components/marketplace/browse/FacetPanel.vue +73 -0
  981. package/src/app/components/marketplace/browse/MarketplaceAll.vue +46 -0
  982. package/src/app/components/marketplace/browse/MarketplaceDiscover.vue +53 -0
  983. package/src/app/components/marketplace/browse/MatchText.vue +28 -0
  984. package/src/app/components/marketplace/browse/NoResults.vue +63 -0
  985. package/src/app/components/marketplace/browse/PluginCard.vue +61 -0
  986. package/src/app/components/marketplace/browse/PluginInstallAction.vue +22 -0
  987. package/src/app/components/marketplace/browse/ResultsBar.vue +38 -0
  988. package/src/app/components/marketplace/browse/catalog-client.ts +52 -0
  989. package/src/app/components/marketplace/browse/catalog-collections.ts +37 -0
  990. package/src/app/components/marketplace/browse/labels.ts +11 -0
  991. package/src/app/components/marketplace/browse/plugin-actions.ts +7 -0
  992. package/src/app/components/marketplace/browse/use-catalog-filters.ts +50 -0
  993. package/src/app/components/marketplace/browse/use-catalog-query.ts +67 -0
  994. package/src/app/components/marketplace/detail/ChangelogTab.vue +31 -0
  995. package/src/app/components/marketplace/detail/DetailHeader.vue +83 -0
  996. package/src/app/components/marketplace/detail/MarketplaceDetail.vue +83 -0
  997. package/src/app/components/marketplace/detail/MetaList.vue +76 -0
  998. package/src/app/components/marketplace/detail/OptionsTab.vue +48 -0
  999. package/src/app/components/marketplace/detail/OverviewTab.vue +31 -0
  1000. package/src/app/components/marketplace/detail/VersionsTab.vue +24 -0
  1001. package/src/app/components/marketplace/detail/use-plugin-detail.ts +48 -0
  1002. package/src/app/components/marketplace/install/CommandBlock.vue +15 -0
  1003. package/src/app/components/marketplace/install/ConfigDiff.vue +23 -0
  1004. package/src/app/components/marketplace/install/FailureStep.vue +59 -0
  1005. package/src/app/components/marketplace/install/InstallFooter.vue +17 -0
  1006. package/src/app/components/marketplace/install/ManualStep.vue +87 -0
  1007. package/src/app/components/marketplace/install/MarketplaceInstall.vue +121 -0
  1008. package/src/app/components/marketplace/install/OptionField.vue +46 -0
  1009. package/src/app/components/marketplace/install/OptionsStep.vue +43 -0
  1010. package/src/app/components/marketplace/install/OutputLog.vue +22 -0
  1011. package/src/app/components/marketplace/install/ProgressStep.vue +60 -0
  1012. package/src/app/components/marketplace/install/ReviewStep.vue +75 -0
  1013. package/src/app/components/marketplace/install/WizardSteps.vue +27 -0
  1014. package/src/app/components/marketplace/install/manual-instructions.ts +18 -0
  1015. package/src/app/components/marketplace/install/use-copy.ts +15 -0
  1016. package/src/app/components/marketplace/install/use-install-plan.ts +59 -0
  1017. package/src/app/components/marketplace/install/use-install-wizard.ts +161 -0
  1018. package/src/app/components/marketplace/shell/MarketplaceHeader.vue +46 -0
  1019. package/src/app/components/marketplace/shell/MarketplaceModal.vue +52 -0
  1020. package/src/app/components/marketplace/shell/MarketplaceView.vue +16 -0
  1021. package/src/app/components/marketplace/shell/PluginTile.vue +44 -0
  1022. package/src/app/components/marketplace/shell/compatibility-reason.ts +4 -0
  1023. package/src/app/components/marketplace/shell/job-progress-label.ts +22 -0
  1024. package/src/app/components/marketplace/shell/marketplace-jobs.ts +115 -0
  1025. package/src/app/components/marketplace/shell/marketplace-prefs.ts +18 -0
  1026. package/src/app/components/marketplace/shell/marketplace-reads.ts +16 -0
  1027. package/src/app/components/marketplace/shell/marketplace-services.ts +17 -0
  1028. package/src/app/components/marketplace/shell/use-marketplace-keys.ts +34 -0
  1029. package/src/app/components/marketplace/shell/workbench-plugin-id.ts +5 -0
  1030. package/src/app/components/marketplace/spotlight/MarketplaceSpotlightHost.vue +10 -0
  1031. package/src/app/components/marketplace/spotlight/SpotlightCard.vue +95 -0
  1032. package/src/app/components/marketplace/spotlight/use-post-install-spotlight.ts +173 -0
  1033. package/src/app/components/marketplace/spotlight/use-spotlight-targets.ts +80 -0
  1034. package/src/app/components/marketplace/update/MarketplaceUpdateBody.vue +98 -0
  1035. package/src/app/components/marketplace/update/MarketplaceUpdateDialog.vue +40 -0
  1036. package/src/app/components/marketplace/update/ReleaseNotes.vue +27 -0
  1037. package/src/app/components/marketplace/update/use-update-dialog.ts +118 -0
  1038. package/src/app/components/menu/ContextMenu.vue +118 -0
  1039. package/src/app/components/menu/MenuItem.vue +12 -0
  1040. package/src/app/components/menu/SubMenu.vue +48 -0
  1041. package/src/app/components/misc/HatchedPattern.vue +1 -11
  1042. package/src/app/components/pages/home/BrowseSections.vue +39 -0
  1043. package/src/app/components/pages/home/DevBrowseStatus.vue +25 -0
  1044. package/src/app/components/pages/home/GuidesList.vue +31 -0
  1045. package/src/app/components/pages/home/HomeCard.vue +12 -0
  1046. package/src/app/components/pages/home/HomeHeader.vue +30 -0
  1047. package/src/app/components/pages/home/HomeHeading.vue +12 -0
  1048. package/src/app/components/pages/home/HomePage.vue +102 -0
  1049. package/src/app/components/pages/home/HomeRow.vue +18 -0
  1050. package/src/app/components/pages/home/HomeSearch.vue +22 -0
  1051. package/src/app/components/pages/home/NeedsAttention.vue +47 -0
  1052. package/src/app/components/pages/home/PluginHomeSections.vue +44 -0
  1053. package/src/app/components/pages/home/UpdatesList.vue +46 -0
  1054. package/src/app/components/pages/home/catalog.spec.ts +53 -0
  1055. package/src/app/components/pages/home/catalog.ts +59 -0
  1056. package/src/app/components/pages/home/ownership.spec.ts +14 -0
  1057. package/src/app/components/pages/home/ownership.ts +48 -0
  1058. package/src/app/components/pages/markdown/MarkdownOutline.vue +26 -0
  1059. package/src/app/components/pages/markdown/MarkdownPage.vue +141 -0
  1060. package/src/app/components/pages/markdown/MarkdownPager.vue +30 -0
  1061. package/src/app/components/pages/markdown/navigation.spec.ts +18 -0
  1062. package/src/app/components/pages/markdown/navigation.ts +9 -0
  1063. package/src/app/components/pages/markdown/outline-dom.spec.ts +28 -0
  1064. package/src/app/components/pages/markdown/outline-dom.ts +37 -0
  1065. package/src/app/components/pages/markdown/outline.ts +36 -0
  1066. package/src/app/components/pages/settings/AboutSection.vue +27 -0
  1067. package/src/app/components/pages/settings/AgentAdvancedSettings.vue +135 -0
  1068. package/src/app/components/pages/settings/AgentArgumentsField.vue +49 -0
  1069. package/src/app/components/pages/settings/AgentEnvironmentField.vue +67 -0
  1070. package/src/app/components/pages/settings/AgentLaunchField.vue +19 -0
  1071. package/src/app/components/pages/settings/AgentModelSettings.vue +51 -0
  1072. package/src/app/components/pages/settings/AgentPresetRow.vue +79 -0
  1073. package/src/app/components/pages/settings/AgentsSection.vue +149 -0
  1074. package/src/app/components/pages/settings/AppearanceSection.vue +60 -0
  1075. package/src/app/components/pages/settings/BackgroundsSection.vue +96 -0
  1076. package/src/app/components/pages/settings/GeneralSection.vue +33 -0
  1077. package/src/app/components/pages/settings/McpSection.vue +48 -0
  1078. package/src/app/components/pages/settings/PluginsSection.vue +105 -0
  1079. package/src/app/components/pages/settings/ProjectSourceBadge.vue +32 -0
  1080. package/src/app/components/pages/settings/SaveToProject.vue +71 -0
  1081. package/src/app/components/pages/settings/SettingsCard.vue +12 -0
  1082. package/src/app/components/pages/settings/SettingsChoices.vue +7 -0
  1083. package/src/app/components/pages/settings/SettingsNav.vue +35 -0
  1084. package/src/app/components/pages/settings/SettingsPage.vue +59 -0
  1085. package/src/app/components/pages/settings/SettingsRow.vue +20 -0
  1086. package/src/app/components/pages/settings/ShortcutsSection.vue +28 -0
  1087. package/src/app/components/pages/settings/TestsSection.vue +20 -0
  1088. package/src/app/components/pages/settings/ViewportsSection.vue +76 -0
  1089. package/src/app/components/pages/settings/plugins/InstalledPluginRow.vue +90 -0
  1090. package/src/app/components/pages/settings/plugins/MarketplacePrefs.vue +37 -0
  1091. package/src/app/components/pages/settings/plugins/PluginActionsMenu.vue +79 -0
  1092. package/src/app/components/pages/settings/plugins/PluginSettingsCard.vue +23 -0
  1093. package/src/app/components/pages/settings/plugins/builtin-logos.ts +15 -0
  1094. package/src/app/components/pages/settings/plugins/types.ts +4 -0
  1095. package/src/app/components/pages/settings/plugins/use-package-manager.ts +26 -0
  1096. package/src/app/components/pages/settings/plugins/use-plugin-updates.ts +85 -0
  1097. package/src/app/components/pages/settings/plugins/use-settings-jobs.ts +124 -0
  1098. package/src/app/components/pages/settings/project-config-preview.ts +27 -0
  1099. package/src/app/components/pages/settings/usePluginToggles.ts +111 -0
  1100. package/src/app/components/panes/ai/AiCreatedStories.vue +27 -0
  1101. package/src/app/components/panes/ai/AiPanel.vue +102 -0
  1102. package/src/app/components/panes/ai/AiThreadComposer.vue +71 -0
  1103. package/src/app/components/panes/ai/AiThreadHeader.vue +28 -0
  1104. package/src/app/components/panes/ai/AiThreadList.vue +78 -0
  1105. package/src/app/components/panes/ai/AiThreadView.vue +102 -0
  1106. package/src/app/components/panes/ai/created-stories.ts +33 -0
  1107. package/src/app/components/panes/mcp/McpActivity.vue +57 -0
  1108. package/src/app/components/panes/mcp/McpClients.vue +38 -0
  1109. package/src/app/components/panes/mcp/McpContent.vue +49 -0
  1110. package/src/app/components/panes/mcp/McpCurrentOperation.vue +36 -0
  1111. package/src/app/components/panes/mcp/McpEndpoint.vue +51 -0
  1112. package/src/app/components/panes/mcp/McpHistory.vue +39 -0
  1113. package/src/app/components/panes/search/SearchPanel.vue +288 -0
  1114. package/src/app/components/panes/search/SearchResultItem.vue +65 -0
  1115. package/src/app/components/panes/search/SearchResultList.vue +36 -0
  1116. package/src/app/components/panes/search/SearchScopes.vue +21 -0
  1117. package/src/app/components/panes/search/accessibility.ts +14 -0
  1118. package/src/app/components/panes/search/command-execution.ts +42 -0
  1119. package/src/app/components/panes/search/controller.ts +145 -0
  1120. package/src/app/components/panes/search/frame-navigation.ts +61 -0
  1121. package/src/app/components/panes/search/query.ts +114 -0
  1122. package/src/app/components/panes/stories/StoriesPanel.vue +299 -0
  1123. package/src/app/components/panes/stories/row-status.ts +49 -0
  1124. package/src/app/components/panes/stories/tree.spec.ts +79 -0
  1125. package/src/app/components/panes/stories/tree.ts +77 -0
  1126. package/src/app/components/panes/tests/FunctionalTestsPanel.vue +98 -0
  1127. package/src/app/components/panes/tests/TestsFilter.vue +15 -0
  1128. package/src/app/components/panes/tests/TestsPanel.vue +18 -0
  1129. package/src/app/components/panes/tests/TestsSummary.vue +34 -0
  1130. package/src/app/components/panes/tests/TestsTree.vue +122 -0
  1131. package/src/app/components/panes/tests/TestsTreeRow.vue +45 -0
  1132. package/src/app/components/panes/tests/capture.ts +22 -0
  1133. package/src/app/components/panes/tests/dev-runner.ts +48 -0
  1134. package/src/app/components/panes/tests/discovery.ts +201 -0
  1135. package/src/app/components/panes/tests/execution.ts +69 -0
  1136. package/src/app/components/panes/tests/model.ts +305 -0
  1137. package/src/app/components/panes/tests/projection.ts +86 -0
  1138. package/src/app/components/panes/tests/types.ts +96 -0
  1139. package/src/app/components/panes/visual/VisualImageLabel.vue +16 -0
  1140. package/src/app/components/panes/visual/VisualResultRow.vue +43 -0
  1141. package/src/app/components/panes/visual/VisualResultsList.vue +43 -0
  1142. package/src/app/components/panes/visual/VisualRunButton.vue +25 -0
  1143. package/src/app/components/panes/visual/VisualSlider.vue +91 -0
  1144. package/src/app/components/panes/visual/VisualTestsPanel.vue +112 -0
  1145. package/src/app/components/panes/visual/VisualTestsSummary.vue +37 -0
  1146. package/src/app/components/panes/visual/VisualViewer.vue +215 -0
  1147. package/src/app/components/panes/visual/VisualViewerActions.vue +41 -0
  1148. package/src/app/components/panes/visual/VisualViewerDock.vue +75 -0
  1149. package/src/app/components/panes/visual/VisualViewerDockButton.vue +15 -0
  1150. package/src/app/components/panes/visual/VisualViewerHeader.vue +86 -0
  1151. package/src/app/components/panes/visual/VisualViewerSurface.vue +19 -0
  1152. package/src/app/components/panes/visual/projection.ts +62 -0
  1153. package/src/app/components/panes/visual/status.ts +21 -0
  1154. package/src/app/components/panes/visual/viewer-focus.ts +24 -0
  1155. package/src/app/components/panes/visual/viewer-types.ts +5 -0
  1156. package/src/app/components/panes/visual/zoom.spec.ts +21 -0
  1157. package/src/app/components/panes/visual/zoom.ts +30 -0
  1158. package/src/app/components/shell/AppRail.vue +135 -0
  1159. package/src/app/components/shell/InspectorFrame.vue +31 -0
  1160. package/src/app/components/shell/PanelResizeHandle.vue +35 -0
  1161. package/src/app/components/shell/PluginPane.vue +22 -0
  1162. package/src/app/components/shell/RailButton.vue +45 -0
  1163. package/src/app/components/shell/ShellLayout.vue +104 -0
  1164. package/src/app/components/shell/SidePanelHost.vue +24 -0
  1165. package/src/app/components/shell/WorkbenchApp.vue +174 -0
  1166. package/src/app/components/shell/WorkbenchEmptyState.vue +39 -0
  1167. package/src/app/components/shell/WorkbenchErrorState.vue +37 -0
  1168. package/src/app/components/shell/WorkbenchGuideLink.vue +16 -0
  1169. package/src/app/components/shell/WorkbenchLoadingSkeleton.vue +22 -0
  1170. package/src/app/components/shell/WorkbenchLoadingState.vue +34 -0
  1171. package/src/app/components/shell/WorkbenchPaneHeader.vue +19 -0
  1172. package/src/app/components/shell/WorkbenchPaneList.vue +12 -0
  1173. package/src/app/components/shell/WorkbenchPaneToolbar.vue +17 -0
  1174. package/src/app/components/shell/WorkbenchPanelAction.vue +54 -0
  1175. package/src/app/components/shell/WorkbenchStateLayout.vue +36 -0
  1176. package/src/app/components/shell/panel-focus.ts +35 -0
  1177. package/src/app/components/shell/panel-resize.ts +83 -0
  1178. package/src/app/components/shell/rail-items.ts +63 -0
  1179. package/src/app/components/shell/shortcuts.ts +8 -0
  1180. package/src/app/components/story/GenericMountStory.vue +17 -3
  1181. package/src/app/components/story/GenericRenderStory.vue +21 -2
  1182. package/src/app/composables/agent-discovery.ts +25 -0
  1183. package/src/app/composables/canvas-settings.ts +127 -0
  1184. package/src/app/composables/context-menu.ts +156 -0
  1185. package/src/app/composables/controls-host.ts +100 -0
  1186. package/src/app/composables/extensions.ts +50 -0
  1187. package/src/app/composables/keyboard-input.ts +11 -0
  1188. package/src/app/composables/list-density.ts +14 -0
  1189. package/src/app/composables/selection.ts +25 -0
  1190. package/src/app/composables/shell-extensions.ts +40 -0
  1191. package/src/app/composables/shell.ts +18 -0
  1192. package/src/app/extensions/action-surfaces.ts +43 -0
  1193. package/src/app/extensions/canvas-service.ts +208 -0
  1194. package/src/app/extensions/commands.ts +26 -0
  1195. package/src/app/extensions/context.ts +9 -0
  1196. package/src/app/extensions/create-workbench-host.ts +137 -0
  1197. package/src/app/extensions/dev-events.ts +31 -0
  1198. package/src/app/extensions/frame-channels.ts +188 -0
  1199. package/src/app/extensions/frame-context.ts +209 -0
  1200. package/src/app/extensions/icons.ts +28 -0
  1201. package/src/app/extensions/menus.ts +138 -0
  1202. package/src/app/extensions/navigation.ts +144 -0
  1203. package/src/app/extensions/plugins.ts +7 -0
  1204. package/src/app/extensions/shell-registry.ts +87 -0
  1205. package/src/app/extensions/shortcuts.ts +54 -0
  1206. package/src/app/extensions/standalone.ts +50 -0
  1207. package/src/app/extensions/storage.ts +47 -0
  1208. package/src/app/extensions/sync.ts +57 -0
  1209. package/src/app/extensions/tests-service.ts +63 -0
  1210. package/src/app/extensions/toolbar.ts +79 -0
  1211. package/src/app/index.ts +10 -30
  1212. package/src/app/plugin.ts +37 -48
  1213. package/src/app/sandbox.ts +19 -101
  1214. package/src/app/standalone/arrangement.ts +49 -0
  1215. package/src/app/standalone/build-info.ts +10 -0
  1216. package/src/app/standalone/client-actions.ts +58 -0
  1217. package/src/app/standalone/commands.ts +115 -0
  1218. package/src/app/standalone/document.ts +30 -0
  1219. package/src/app/standalone/editable-state.ts +79 -0
  1220. package/src/app/standalone/error-handler.ts +15 -0
  1221. package/src/app/standalone/folders.ts +62 -0
  1222. package/src/app/standalone/markdown-transition.ts +46 -0
  1223. package/src/app/standalone/mount.ts +123 -0
  1224. package/src/app/standalone/navigation.ts +116 -0
  1225. package/src/app/standalone/preferences.ts +36 -0
  1226. package/src/app/standalone/presets.ts +70 -0
  1227. package/src/app/standalone/runtime-binding.ts +57 -0
  1228. package/src/app/standalone/runtime-tests.ts +46 -0
  1229. package/src/app/standalone/selection.ts +76 -0
  1230. package/src/app/standalone/session.ts +32 -0
  1231. package/src/app/standalone/tests.ts +14 -0
  1232. package/src/app/standalone/ui-visibility-menu.ts +27 -0
  1233. package/src/app/standalone/ui-visibility.ts +72 -0
  1234. package/src/app/standalone/workbench-dev.ts +208 -0
  1235. package/src/app/standalone/workbench-navigation.ts +48 -0
  1236. package/src/app/standalone/workbench-stores.ts +54 -0
  1237. package/src/app/standalone/workbench-thread-actions.ts +46 -0
  1238. package/src/app/standalone/workbench-types.ts +39 -0
  1239. package/src/app/standalone/workbench-visual.ts +74 -0
  1240. package/src/app/standalone/workbench.ts +299 -0
  1241. package/src/app/stores/agent-threads.ts +170 -0
  1242. package/src/app/stores/agents-catalog.ts +100 -0
  1243. package/src/app/stores/agents.ts +201 -0
  1244. package/src/app/stores/ai-threads.ts +151 -0
  1245. package/src/app/stores/canvas-arrangement.ts +44 -0
  1246. package/src/app/stores/canvas-preferences.ts +77 -0
  1247. package/src/app/stores/canvas-types.ts +54 -0
  1248. package/src/app/stores/canvas.ts +260 -0
  1249. package/src/app/stores/events.ts +12 -8
  1250. package/src/app/stores/marketplace.ts +228 -0
  1251. package/src/app/stores/matrix-axis-editor.ts +43 -0
  1252. package/src/app/stores/matrix-domains.ts +55 -0
  1253. package/src/app/stores/matrix-preferences.ts +85 -0
  1254. package/src/app/stores/matrix-runtime.ts +106 -0
  1255. package/src/app/stores/matrix.ts +267 -0
  1256. package/src/app/stores/mcp-activity.ts +70 -0
  1257. package/src/app/stores/mcp.ts +170 -0
  1258. package/src/app/stores/presets-config.ts +202 -0
  1259. package/src/app/stores/project-config.ts +170 -0
  1260. package/src/app/stores/project-save-persistence.ts +59 -0
  1261. package/src/app/stores/settings.ts +139 -0
  1262. package/src/app/stores/shell-widths.ts +51 -0
  1263. package/src/app/stores/shell.ts +249 -0
  1264. package/src/app/stores/story-canvas-views.ts +49 -0
  1265. package/src/app/stores/thread-drafts.ts +128 -0
  1266. package/src/app/stores/visual-approval.ts +73 -0
  1267. package/src/app/stores/visual-collection.ts +76 -0
  1268. package/src/app/stores/visual-refresh.ts +31 -0
  1269. package/src/app/stores/visual-transport.ts +85 -0
  1270. package/src/app/stores/visual.ts +293 -0
  1271. package/src/app/style/README.md +167 -0
  1272. package/src/app/style/controls.css +28 -0
  1273. package/src/app/style/density.css +38 -0
  1274. package/src/app/style/document.pcss +60 -0
  1275. package/src/app/style/fonts.pcss +1 -0
  1276. package/src/app/style/main.css +25 -0
  1277. package/src/app/style/theme.css +109 -0
  1278. package/src/app/style/tokens.pcss +135 -0
  1279. package/src/app/types.ts +3 -9
  1280. package/src/app/util/agent-catalog-rows.ts +31 -0
  1281. package/src/app/util/agent-command.ts +9 -0
  1282. package/src/app/util/agents-http.ts +25 -0
  1283. package/src/app/util/agents-transport.ts +24 -0
  1284. package/src/app/util/background.ts +56 -0
  1285. package/src/app/util/builtin-commands.ts +27 -0
  1286. package/src/app/util/catalog-target.ts +17 -0
  1287. package/src/app/util/comments-http.ts +38 -0
  1288. package/src/app/util/const.ts +29 -4
  1289. package/src/app/util/controls-appearance.ts +2 -0
  1290. package/src/app/util/controls-document.ts +26 -0
  1291. package/src/app/util/controls-overlay-anchor.ts +14 -0
  1292. package/src/app/util/dark.ts +45 -17
  1293. package/src/app/util/dev-event-api.ts +236 -0
  1294. package/src/app/util/docs.ts +13 -17
  1295. package/src/app/util/dynamic-source.ts +20 -0
  1296. package/src/app/util/event-payload.ts +30 -0
  1297. package/src/app/util/events.ts +32 -17
  1298. package/src/app/util/frame-actions.ts +198 -0
  1299. package/src/app/util/frame-screenshot.ts +68 -0
  1300. package/src/app/util/frame-variant-source.ts +111 -0
  1301. package/src/app/util/host-channel.ts +148 -0
  1302. package/src/app/util/hot.ts +5 -0
  1303. package/src/app/util/http-json.ts +30 -0
  1304. package/src/app/util/keyboard.ts +1 -82
  1305. package/src/app/util/mapping.ts +26 -5
  1306. package/src/app/util/marketplace-client.ts +177 -0
  1307. package/src/app/util/marketplace-preferences.ts +6 -0
  1308. package/src/app/util/matrix-numeric.ts +19 -0
  1309. package/src/app/util/matrix-values.ts +72 -0
  1310. package/src/app/util/matrix.ts +172 -0
  1311. package/src/app/util/preview-settings.ts +4 -0
  1312. package/src/app/util/runtime-events.ts +101 -0
  1313. package/src/app/util/screenshot-file.ts +32 -0
  1314. package/src/app/util/screenshot-targets.ts +14 -0
  1315. package/src/app/util/shortcuts.ts +111 -0
  1316. package/src/app/util/story-component.ts +51 -0
  1317. package/src/app/util/ui-channel.ts +49 -0
  1318. package/src/app/util/variant-selection.ts +43 -0
  1319. package/src/app/util/vitest-mocker-shim.ts +27 -0
  1320. package/src/bundle-embed-dev.js +6 -0
  1321. package/src/bundle-embed.js +6 -0
  1322. package/src/bundle-main-dev.js +1 -1
  1323. package/src/bundle-main.js +2 -1
  1324. package/src/bundle-sandbox-dev.js +3 -2
  1325. package/src/bundle-sandbox.js +3 -2
  1326. package/src/embed/EmbedDocument.vue +29 -0
  1327. package/src/embed/adapters/channels.ts +113 -0
  1328. package/src/embed/adapters/content-surface.ts +12 -0
  1329. package/src/embed/adapters/content-view.ts +12 -0
  1330. package/src/embed/adapters/controls-replica.ts +281 -0
  1331. package/src/embed/adapters/controls-view.ts +56 -0
  1332. package/src/embed/adapters/controls.ts +8 -0
  1333. package/src/embed/adapters/document.ts +46 -0
  1334. package/src/embed/adapters/explorer-session.ts +171 -0
  1335. package/src/embed/adapters/explorer-view.ts +65 -0
  1336. package/src/embed/adapters/explorer.ts +9 -0
  1337. package/src/embed/adapters/geometry.ts +2 -0
  1338. package/src/embed/adapters/layout.ts +92 -0
  1339. package/src/embed/adapters/lazy-surface.ts +50 -0
  1340. package/src/embed/adapters/local-mount.ts +137 -0
  1341. package/src/embed/adapters/navigation-surface.ts +11 -0
  1342. package/src/embed/adapters/navigation-view.ts +12 -0
  1343. package/src/embed/adapters/preview.ts +5 -0
  1344. package/src/embed/adapters/runtime-frame.ts +337 -0
  1345. package/src/embed/adapters/runtime-layout.ts +58 -0
  1346. package/src/embed/adapters/runtime-loading.ts +66 -0
  1347. package/src/embed/adapters/runtime-readiness.ts +53 -0
  1348. package/src/embed/adapters/runtime-requests.ts +58 -0
  1349. package/src/embed/adapters/runtime-revision.ts +32 -0
  1350. package/src/embed/adapters/sandbox-urls.ts +55 -0
  1351. package/src/embed/adapters/stale-preview.ts +59 -0
  1352. package/src/embed/adapters/state-presets.ts +134 -0
  1353. package/src/embed/adapters/state.ts +24 -0
  1354. package/src/embed/adapters/test-workers.ts +189 -0
  1355. package/src/embed/adapters/tests-surface.ts +9 -0
  1356. package/src/embed/adapters/tests-view.ts +34 -0
  1357. package/src/embed/adapters/tests.ts +27 -0
  1358. package/src/embed/capabilities.ts +12 -0
  1359. package/src/embed/color-scheme.ts +8 -0
  1360. package/src/embed/commands.ts +111 -0
  1361. package/src/embed/descriptor.ts +43 -0
  1362. package/src/embed/direct.ts +49 -0
  1363. package/src/embed/document.css +11 -0
  1364. package/src/embed/fetch.ts +61 -0
  1365. package/src/embed/handshake.ts +140 -0
  1366. package/src/embed/index.ts +36 -0
  1367. package/src/embed/lifecycle.ts +37 -0
  1368. package/src/embed/search-match.ts +50 -0
  1369. package/src/embed/search.ts +33 -0
  1370. package/src/embed/source.ts +129 -0
  1371. package/src/embed/subscriptions.ts +38 -0
  1372. package/src/embed/surfaces.ts +62 -0
  1373. package/src/embed/types.ts +26 -0
  1374. package/src/embed/view-session.ts +153 -0
  1375. package/src/embed/virtual.d.ts +13 -0
  1376. package/src/embed/vue.d.ts +6 -0
  1377. package/src/virtual.d.ts +70 -0
  1378. package/tsconfig.embed.json +11 -0
  1379. package/tsconfig.json +10 -9
  1380. package/tsconfig.workbench.json +12 -0
  1381. package/vite.config.ts +48 -21
  1382. package/vite.embed.config.ts +53 -0
  1383. package/LICENSE +0 -21
  1384. package/dist/app/style/floating.pcss +0 -34
  1385. package/dist/app/style/main.pcss +0 -100
  1386. package/dist/app/style/sandbox.css +0 -24
  1387. package/dist/app/style/transitions.pcss +0 -51
  1388. package/dist/bundled/App.vue.js +0 -5
  1389. package/dist/bundled/App.vue2.js +0 -167
  1390. package/dist/bundled/_virtual/_plugin-vue_export-helper.js +0 -10
  1391. package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
  1392. package/dist/bundled/assets/histoire-text.svg.js +0 -4
  1393. package/dist/bundled/assets/histoire.svg.js +0 -4
  1394. package/dist/bundled/components/HomeView.vue.js +0 -5
  1395. package/dist/bundled/components/HomeView.vue2.js +0 -66
  1396. package/dist/bundled/components/app/AppHeader.vue.js +0 -5
  1397. package/dist/bundled/components/app/AppHeader.vue2.js +0 -71
  1398. package/dist/bundled/components/app/AppLogo.vue.js +0 -5
  1399. package/dist/bundled/components/app/AppLogo.vue2.js +0 -29
  1400. package/dist/bundled/components/app/Breadcrumb.vue.js +0 -8
  1401. package/dist/bundled/components/app/Breadcrumb.vue2.js +0 -91
  1402. package/dist/bundled/components/app/HomeCounter.vue.js +0 -5
  1403. package/dist/bundled/components/app/HomeCounter.vue2.js +0 -42
  1404. package/dist/bundled/components/app/InitialLoading.vue.js +0 -5
  1405. package/dist/bundled/components/app/InitialLoading.vue2.js +0 -51
  1406. package/dist/bundled/components/app/MobileOverlay.vue.js +0 -5
  1407. package/dist/bundled/components/app/MobileOverlay.vue2.js +0 -45
  1408. package/dist/bundled/components/base/BaseButton.vue.js +0 -5
  1409. package/dist/bundled/components/base/BaseButton.vue2.js +0 -39
  1410. package/dist/bundled/components/base/BaseCheckbox.vue.js +0 -5
  1411. package/dist/bundled/components/base/BaseCheckbox.vue2.js +0 -78
  1412. package/dist/bundled/components/base/BaseEmpty.vue.js +0 -14
  1413. package/dist/bundled/components/base/BaseIcon.vue.js +0 -8
  1414. package/dist/bundled/components/base/BaseIcon.vue2.js +0 -29
  1415. package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +0 -5
  1416. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +0 -20
  1417. package/dist/bundled/components/base/BaseListItem.vue.js +0 -5
  1418. package/dist/bundled/components/base/BaseListItem.vue2.js +0 -33
  1419. package/dist/bundled/components/base/BaseListItemLink.vue.js +0 -33
  1420. package/dist/bundled/components/base/BaseListItemLink.vue2.js +0 -26
  1421. package/dist/bundled/components/base/BaseOverflowMenu.vue.js +0 -5
  1422. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +0 -100
  1423. package/dist/bundled/components/base/BaseOverflowTab.vue.js +0 -36
  1424. package/dist/bundled/components/base/BaseOverflowTab.vue2.js +0 -18
  1425. package/dist/bundled/components/base/BaseSelect.vue.js +0 -5
  1426. package/dist/bundled/components/base/BaseSelect.vue2.js +0 -77
  1427. package/dist/bundled/components/base/BaseSplitPane.vue.js +0 -8
  1428. package/dist/bundled/components/base/BaseSplitPane.vue2.js +0 -183
  1429. package/dist/bundled/components/base/BaseTab.vue.js +0 -36
  1430. package/dist/bundled/components/base/BaseTab.vue2.js +0 -18
  1431. package/dist/bundled/components/base/BaseTag.vue.js +0 -13
  1432. package/dist/bundled/components/command/CommandPrompts.vue.js +0 -5
  1433. package/dist/bundled/components/command/CommandPrompts.vue2.js +0 -91
  1434. package/dist/bundled/components/command/CommandPromptsModal.vue.js +0 -5
  1435. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +0 -45
  1436. package/dist/bundled/components/command/PromptSelect.vue.js +0 -5
  1437. package/dist/bundled/components/command/PromptSelect.vue2.js +0 -142
  1438. package/dist/bundled/components/command/PromptText.vue.js +0 -5
  1439. package/dist/bundled/components/command/PromptText.vue2.js +0 -67
  1440. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +0 -40
  1441. package/dist/bundled/components/misc/HatchedPattern.vue.js +0 -12
  1442. package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +0 -5
  1443. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +0 -72
  1444. package/dist/bundled/components/panel/ControlsComponentProps.vue.js +0 -5
  1445. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +0 -45
  1446. package/dist/bundled/components/panel/ControlsComponentState.vue.js +0 -5
  1447. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +0 -41
  1448. package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +0 -5
  1449. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +0 -46
  1450. package/dist/bundled/components/panel/PaneTabs.vue.js +0 -5
  1451. package/dist/bundled/components/panel/PaneTabs.vue2.js +0 -114
  1452. package/dist/bundled/components/panel/StatePresets.vue.js +0 -5
  1453. package/dist/bundled/components/panel/StatePresets.vue2.js +0 -193
  1454. package/dist/bundled/components/panel/StoryControls.vue.js +0 -5
  1455. package/dist/bundled/components/panel/StoryControls.vue2.js +0 -87
  1456. package/dist/bundled/components/panel/StoryDocs.vue.js +0 -7
  1457. package/dist/bundled/components/panel/StoryDocs.vue2.js +0 -161
  1458. package/dist/bundled/components/panel/StoryEvent.vue.js +0 -5
  1459. package/dist/bundled/components/panel/StoryEvent.vue2.js +0 -59
  1460. package/dist/bundled/components/panel/StoryEvents.vue.js +0 -5
  1461. package/dist/bundled/components/panel/StoryEvents.vue2.js +0 -53
  1462. package/dist/bundled/components/panel/StorySidePanel.vue.js +0 -5
  1463. package/dist/bundled/components/panel/StorySidePanel.vue2.js +0 -83
  1464. package/dist/bundled/components/panel/StorySourceCode.vue.js +0 -8
  1465. package/dist/bundled/components/panel/StorySourceCode.vue2.js +0 -204
  1466. package/dist/bundled/components/search/SearchItem.vue.js +0 -8
  1467. package/dist/bundled/components/search/SearchItem.vue2.js +0 -93
  1468. package/dist/bundled/components/search/SearchItemContent.vue.js +0 -5
  1469. package/dist/bundled/components/search/SearchItemContent.vue2.js +0 -71
  1470. package/dist/bundled/components/search/SearchLoading.vue.js +0 -5
  1471. package/dist/bundled/components/search/SearchLoading.vue2.js +0 -21
  1472. package/dist/bundled/components/search/SearchModal.vue.js +0 -5
  1473. package/dist/bundled/components/search/SearchModal.vue2.js +0 -51
  1474. package/dist/bundled/components/search/SearchPane.vue.js +0 -5
  1475. package/dist/bundled/components/search/SearchPane.vue2.js +0 -272
  1476. package/dist/bundled/components/search/search-docs-data.js +0 -11
  1477. package/dist/bundled/components/search/search-title-data.js +0 -11
  1478. package/dist/bundled/components/story/GenericMountStory.vue.js +0 -5
  1479. package/dist/bundled/components/story/GenericMountStory.vue2.js +0 -34
  1480. package/dist/bundled/components/story/GenericRenderStory.vue.js +0 -5
  1481. package/dist/bundled/components/story/GenericRenderStory.vue2.js +0 -39
  1482. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +0 -8
  1483. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +0 -207
  1484. package/dist/bundled/components/story/StoryVariantGrid.vue.js +0 -5
  1485. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +0 -146
  1486. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +0 -8
  1487. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +0 -153
  1488. package/dist/bundled/components/story/StoryVariantListItem.vue.js +0 -8
  1489. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +0 -55
  1490. package/dist/bundled/components/story/StoryVariantSingle.vue.js +0 -8
  1491. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +0 -107
  1492. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +0 -5
  1493. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +0 -70
  1494. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +0 -5
  1495. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +0 -128
  1496. package/dist/bundled/components/story/StoryVariantSingleView.vue.js +0 -5
  1497. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +0 -66
  1498. package/dist/bundled/components/story/StoryView.vue.js +0 -5
  1499. package/dist/bundled/components/story/StoryView.vue2.js +0 -104
  1500. package/dist/bundled/components/story/StoryViewer.vue.js +0 -8
  1501. package/dist/bundled/components/story/StoryViewer.vue2.js +0 -55
  1502. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +0 -5
  1503. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +0 -31
  1504. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +0 -8
  1505. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +0 -98
  1506. package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +0 -5
  1507. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +0 -36
  1508. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +0 -5
  1509. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +0 -127
  1510. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +0 -5
  1511. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +0 -27
  1512. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +0 -5
  1513. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +0 -26
  1514. package/dist/bundled/components/tree/StoryGroup.vue.js +0 -5
  1515. package/dist/bundled/components/tree/StoryGroup.vue2.js +0 -74
  1516. package/dist/bundled/components/tree/StoryList.vue.js +0 -5
  1517. package/dist/bundled/components/tree/StoryList.vue2.js +0 -41
  1518. package/dist/bundled/components/tree/StoryListFolder.vue.js +0 -8
  1519. package/dist/bundled/components/tree/StoryListFolder.vue2.js +0 -86
  1520. package/dist/bundled/components/tree/StoryListItem.vue.js +0 -8
  1521. package/dist/bundled/components/tree/StoryListItem.vue2.js +0 -69
  1522. package/dist/bundled/plugin.js +0 -49
  1523. package/dist/bundled/router.js +0 -32
  1524. package/dist/bundled/stores/command.js +0 -25
  1525. package/dist/bundled/stores/events.js +0 -29
  1526. package/dist/bundled/stores/folder.js +0 -54
  1527. package/dist/bundled/stores/preview-settings.js +0 -19
  1528. package/dist/bundled/stores/story.js +0 -43
  1529. package/dist/bundled/util/commands.js +0 -57
  1530. package/dist/bundled/util/config.js +0 -8
  1531. package/dist/bundled/util/const.js +0 -10
  1532. package/dist/bundled/util/dark.js +0 -28
  1533. package/dist/bundled/util/docs.js +0 -26
  1534. package/dist/bundled/util/env.js +0 -4
  1535. package/dist/bundled/util/events.js +0 -33
  1536. package/dist/bundled/util/keyboard.js +0 -90
  1537. package/dist/bundled/util/mapping.js +0 -70
  1538. package/dist/bundled/util/open-in-editor.js +0 -6
  1539. package/dist/bundled/util/preview-settings.js +0 -21
  1540. package/dist/bundled/util/responsive.js +0 -6
  1541. package/dist/bundled/util/sandbox.js +0 -11
  1542. package/dist/bundled/util/scroll.js +0 -31
  1543. package/dist/bundled/util/select.js +0 -28
  1544. package/dist/bundled/util/state.js +0 -41
  1545. package/dist/bundled/util/tooltip.js +0 -15
  1546. package/dist/bundled/util/variant.js +0 -21
  1547. package/src/app/components/HomeView.vue +0 -61
  1548. package/src/app/components/app/AppHeader.vue +0 -65
  1549. package/src/app/components/app/AppLogo.vue +0 -25
  1550. package/src/app/components/app/Breadcrumb.vue +0 -98
  1551. package/src/app/components/app/HomeCounter.vue +0 -39
  1552. package/src/app/components/app/InitialLoading.vue +0 -44
  1553. package/src/app/components/app/MobileOverlay.vue +0 -33
  1554. package/src/app/components/base/BaseCheckbox.vue +0 -76
  1555. package/src/app/components/base/BaseCopyIcon.vue +0 -34
  1556. package/src/app/components/base/BaseEmpty.vue +0 -21
  1557. package/src/app/components/base/BaseIcon.vue +0 -31
  1558. package/src/app/components/base/BaseListItem.vue +0 -30
  1559. package/src/app/components/base/BaseListItemLink.vue +0 -56
  1560. package/src/app/components/base/BaseOverflowMenu.vue +0 -119
  1561. package/src/app/components/base/BaseOverflowTab.vue +0 -47
  1562. package/src/app/components/base/BaseSelect.vue +0 -75
  1563. package/src/app/components/base/BaseSplitPane.vue +0 -244
  1564. package/src/app/components/base/BaseTab.vue +0 -47
  1565. package/src/app/components/base/BaseTag.vue +0 -5
  1566. package/src/app/components/command/CommandPromptsModal.vue +0 -41
  1567. package/src/app/components/misc/CheckerboardPattern.vue +0 -32
  1568. package/src/app/components/panel/ControlsComponentPropItem.vue +0 -73
  1569. package/src/app/components/panel/ControlsComponentProps.vue +0 -34
  1570. package/src/app/components/panel/ControlsComponentState.vue +0 -38
  1571. package/src/app/components/panel/ControlsComponentStateItem.vue +0 -44
  1572. package/src/app/components/panel/PaneTabs.vue +0 -84
  1573. package/src/app/components/panel/StatePresets.vue +0 -199
  1574. package/src/app/components/panel/StoryControls.vue +0 -97
  1575. package/src/app/components/panel/StoryDocs.vue +0 -202
  1576. package/src/app/components/panel/StoryEvent.vue +0 -54
  1577. package/src/app/components/panel/StoryEvents.vue +0 -48
  1578. package/src/app/components/panel/StorySidePanel.vue +0 -76
  1579. package/src/app/components/panel/StorySourceCode.vue +0 -248
  1580. package/src/app/components/search/SearchItem.vue +0 -89
  1581. package/src/app/components/search/SearchItemContent.vue +0 -67
  1582. package/src/app/components/search/SearchLoading.vue +0 -16
  1583. package/src/app/components/search/SearchModal.vue +0 -44
  1584. package/src/app/components/search/SearchPane.vue +0 -319
  1585. package/src/app/components/search/search-docs-data.ts +0 -9
  1586. package/src/app/components/search/search-title-data.ts +0 -9
  1587. package/src/app/components/search/types.ts +0 -4
  1588. package/src/app/components/story/StoryResponsivePreview.vue +0 -216
  1589. package/src/app/components/story/StoryVariantGrid.vue +0 -169
  1590. package/src/app/components/story/StoryVariantGridItem.vue +0 -163
  1591. package/src/app/components/story/StoryVariantListItem.vue +0 -52
  1592. package/src/app/components/story/StoryVariantSingle.vue +0 -105
  1593. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +0 -66
  1594. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +0 -143
  1595. package/src/app/components/story/StoryVariantSingleView.vue +0 -61
  1596. package/src/app/components/story/StoryView.vue +0 -110
  1597. package/src/app/components/story/StoryViewer.vue +0 -52
  1598. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +0 -23
  1599. package/src/app/components/toolbar/ToolbarBackground.vue +0 -81
  1600. package/src/app/components/toolbar/ToolbarNewTab.vue +0 -29
  1601. package/src/app/components/toolbar/ToolbarResponsiveSize.vue +0 -82
  1602. package/src/app/components/toolbar/ToolbarTextDirection.vue +0 -19
  1603. package/src/app/components/toolbar/ToolbarTitle.vue +0 -21
  1604. package/src/app/components/tree/StoryGroup.vue +0 -73
  1605. package/src/app/components/tree/StoryList.vue +0 -35
  1606. package/src/app/components/tree/StoryListFolder.vue +0 -88
  1607. package/src/app/components/tree/StoryListItem.vue +0 -72
  1608. package/src/app/router.ts +0 -29
  1609. package/src/app/stores/command.ts +0 -26
  1610. package/src/app/stores/folder.ts +0 -63
  1611. package/src/app/stores/preview-settings.ts +0 -18
  1612. package/src/app/stores/story.ts +0 -47
  1613. package/src/app/style/floating.pcss +0 -34
  1614. package/src/app/style/main.pcss +0 -100
  1615. package/src/app/style/sandbox.css +0 -24
  1616. package/src/app/style/transitions.pcss +0 -51
  1617. package/src/app/util/commands.ts +0 -57
  1618. package/src/app/util/responsive.ts +0 -3
  1619. package/src/app/util/sandbox.ts +0 -9
  1620. package/src/app/util/scroll.ts +0 -32
  1621. package/src/app/util/tooltip.ts +0 -13
  1622. package/src/app/util/variant.ts +0 -21
  1623. package/tailwind.config.cjs +0 -137
@@ -0,0 +1,2426 @@
1
+ import { A as useLoadingDelay, d as HstPulsatingDisc, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
+ import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
3
+ import { a as sendUiEvent, r as onUiEvent } from "./ui-channel-BPYj8uw2.js";
4
+ import { t as catalogTargetLabel } from "./catalog-target-BN1NsBKA.js";
5
+ import { a as useShortcutRegistry, r as matchesShortcut, t as createShortcutRegistry } from "./shortcuts-BPetXlYX.js";
6
+ import { r as useAgentsStore } from "./agents-Cnoa7KRp.js";
7
+ import { r as useAiThreads } from "./ai-threads-3QfVXZ43.js";
8
+ import { n as requestJson, r as uiHttpUrl, t as jsonBody } from "./http-json-B3BE0tJj.js";
9
+ import { t as BasePopover_default } from "./BasePopover-CQQ8wKev.js";
10
+ import { n as isMac, r as isTypingTarget, t as formatKey } from "./keyboard-DWsKh2rn.js";
11
+ import { t as PopoverDivider_default } from "./PopoverDivider-vLxqs_KP.js";
12
+ import { t as PopoverTitle_default } from "./PopoverTitle-zikHVKQE.js";
13
+ import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
14
+ import { n as AgentMarkdown_default, r as AgentElicitation_default, t as AgentPlanApproval_default } from "./AgentPlanApproval-D4hnGlYs.js";
15
+ import { n as screenshotUrl } from "./screenshot-file-5sIH6A7o.js";
16
+ import { n as useAgentDiscovery, t as AgentLogo_default } from "./AgentLogo-C2uXqX04.js";
17
+ import { COMMENT_ATTACHMENT_LIMIT, isPinnedThread } from "@histoire/shared";
18
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useId, watch, withCtx, withModifiers } from "@histoire/vendors/vue";
19
+ // src/app/components/comments/presentation.ts
20
+ /**
21
+ * Pin numbers: ordinals among pinned threads in persisted order, shared by canvas pins and list rows.
22
+ * @param threads Persisted threads in file order.
23
+ */
24
+ function pinNumbers(threads) {
25
+ return new Map(threads.filter(isPinnedThread).map((thread, index) => [thread.id, index + 1]));
26
+ }
27
+ /**
28
+ * Whether a pinned thread's variant still exists, so it can open on the canvas.
29
+ * Orphans (story or variant removed) open in the pane instead.
30
+ * @param thread Thread to check.
31
+ * @param stories Collected catalog stories.
32
+ */
33
+ function isOnCanvas(thread, stories) {
34
+ return isPinnedThread(thread) && stories.some((story) => story.id === thread.context.storyId && story.variants.some((variant) => variant.id === thread.context.variantId));
35
+ }
36
+ /**
37
+ * Threads of the selected story first, then the rest of the project; empty groups are dropped.
38
+ * @param threads Visible threads in list order.
39
+ * @param storyId Selected story, if any.
40
+ */
41
+ function groupThreads(threads, storyId) {
42
+ const story = threads.filter((thread) => storyId !== void 0 && thread.context?.storyId === storyId);
43
+ const project = threads.filter((thread) => !story.includes(thread));
44
+ return [{
45
+ title: "This story",
46
+ threads: story
47
+ }, {
48
+ title: "Project",
49
+ threads: project
50
+ }].filter((group) => group.threads.length);
51
+ }
52
+ /** Compact timestamps keep actual time accessible through native title text. */
53
+ function commentAge(date, now = Date.now()) {
54
+ const minutes = Math.max(0, Math.floor((now - Date.parse(date)) / 6e4));
55
+ return minutes < 1 ? "now" : minutes < 60 ? `${minutes}m` : minutes < 1440 ? `${Math.floor(minutes / 60)}h` : `${Math.floor(minutes / 1440)}d`;
56
+ }
57
+ /** Stable attribute the runtime puts on every story render root. */
58
+ var STORY_ROOT_SELECTOR = "[data-test-id=\"sandbox-render\"]";
59
+ /** Strip leading story root from inspection selectors; agents still receive the raw selector. */
60
+ function selectorParts(selector) {
61
+ if (!selector.startsWith(STORY_ROOT_SELECTOR)) return {
62
+ storyRoot: false,
63
+ path: selector
64
+ };
65
+ return {
66
+ storyRoot: true,
67
+ path: selector.slice(STORY_ROOT_SELECTOR.length).replace(/^\s*>\s*/, "")
68
+ };
69
+ }
70
+ /** Keep only deepest selector segments; full selector stays available as native title. */
71
+ function compactSelectorPath(path, keep = 2) {
72
+ const segments = path.split(/\s*>\s*/).filter(Boolean);
73
+ return segments.length > keep ? ["…", ...segments.slice(-keep)].join(" > ") : segments.join(" > ");
74
+ }
75
+ /** Short display form of one captured prop value; nested data collapses to its shape. */
76
+ function propValueLabel(value) {
77
+ if (typeof value === "string") return JSON.stringify(value.length > 24 ? `${value.slice(0, 24)}…` : value);
78
+ if (Array.isArray(value)) return `[${value.length}]`;
79
+ if (value && typeof value === "object") return "{…}";
80
+ return String(value);
81
+ }
82
+ /** Captured prop context as `key: value` lines; per-component props (`componentProps[index]`) are flattened. */
83
+ function propsSummary(props) {
84
+ const { componentProps, ...state } = props ?? {};
85
+ const components = componentProps && typeof componentProps === "object" ? Object.values(componentProps) : [];
86
+ return [...Object.entries(state), ...components.flatMap((values) => values && typeof values === "object" ? Object.entries(values) : [])].map(([key, value]) => `${key}: ${propValueLabel(value)}`);
87
+ }
88
+ // src/app/components/comments/destination.ts
89
+ /** Resolve merged agent preferences without treating an implicit choice as consent. */
90
+ function commentDestination(agents, explicitId) {
91
+ const usable = agents.filter((agent) => ![
92
+ "disabled",
93
+ "not-installed",
94
+ "error"
95
+ ].includes(agent.state));
96
+ if (explicitId && usable.some((agent) => agent.id === explicitId)) return explicitId;
97
+ if (usable.some((agent) => agent.askEachTime)) return "";
98
+ return usable.find((agent) => agent.default)?.id ?? usable[0]?.id ?? "";
99
+ }
100
+ /** Keep manual choices while following default preferences for each new send. */
101
+ function useCommentDestination(source) {
102
+ const usable = computed(() => source().filter((agent) => ![
103
+ "disabled",
104
+ "not-installed",
105
+ "error"
106
+ ].includes(agent.state)));
107
+ const agentId = ref("");
108
+ let explicitId;
109
+ watch(usable, (agents) => {
110
+ if (!agents.some((agent) => agent.id === explicitId)) explicitId = void 0;
111
+ agentId.value = commentDestination(agents, explicitId);
112
+ }, { immediate: true });
113
+ return {
114
+ usable,
115
+ agentId,
116
+ /** Only an actual picker action counts as the user's explicit destination. */
117
+ choose(id) {
118
+ explicitId = id;
119
+ agentId.value = commentDestination(usable.value, explicitId);
120
+ },
121
+ /** Each new draft observes current destination policy. */
122
+ reset() {
123
+ explicitId = void 0;
124
+ agentId.value = commentDestination(usable.value);
125
+ }
126
+ };
127
+ }
128
+ /**
129
+ * Configured display metadata for an agent id, without inventing provider labels.
130
+ * @param agents Current safe agent display states.
131
+ * @param id Agent that wrote or will write a message.
132
+ */
133
+ function agentDisplay(agents, id) {
134
+ const found = agents.find((agent) => agent.id === id);
135
+ return {
136
+ name: found?.name ?? id ?? "Agent",
137
+ icon: found?.icon
138
+ };
139
+ }
140
+ // src/app/util/comments-http.ts
141
+ /** Dev-server comment routes. */
142
+ var prefix = () => uiHttpUrl("comments/");
143
+ /**
144
+ * Ranked project files for an `@` mention.
145
+ * @param query Text typed after `@`.
146
+ */
147
+ async function searchProjectFiles(query) {
148
+ return (await requestJson(`${prefix()}files/search`, jsonBody({ query }), "Cannot search files")).files;
149
+ }
150
+ /**
151
+ * Stores one file beneath `.histoire/attachments`.
152
+ * @param file Picked, dropped or pasted file.
153
+ */
154
+ function uploadAttachment(file) {
155
+ const query = new URLSearchParams({
156
+ name: file.name || `pasted-${Date.now()}.png`,
157
+ type: file.type
158
+ });
159
+ return requestJson(`${prefix()}attachments?${query}`, {
160
+ method: "POST",
161
+ headers: { "Content-Type": "application/octet-stream" },
162
+ body: file
163
+ }, "Cannot attach file");
164
+ }
165
+ /**
166
+ * Copies a stored screenshot into `.histoire/attachments`, so it attaches like an upload.
167
+ * @param path Project-relative stored screenshot path.
168
+ */
169
+ function attachScreenshot(path) {
170
+ return requestJson(`${prefix()}attachments/from-screenshot`, jsonBody({ path }), "Cannot attach screenshot");
171
+ }
172
+ /**
173
+ * Same-origin URL of a stored attachment.
174
+ * @param path Project-relative stored path.
175
+ */
176
+ function attachmentUrl(path) {
177
+ return `${prefix()}attachments/${encodeURIComponent(path.split("/").pop())}`;
178
+ }
179
+ // src/app/components/comments/prompt/actions.ts
180
+ /**
181
+ * Attach-menu and keyboard actions of the prompt: files, screenshot capture, `@` mentions, `/` commands.
182
+ * @param options Prompt parts the actions drive.
183
+ * @param options.input Message field.
184
+ * @param options.picker Hidden file input.
185
+ * @param options.update Writes the message text.
186
+ * @param options.files Attachment state.
187
+ * @param options.suggestions Suggestion list state.
188
+ * @param options.capture Screenshot capture, when this prompt offers one.
189
+ * @param options.locked Actions are refused while true.
190
+ */
191
+ function usePromptActions(options) {
192
+ const shortcuts = useShortcutRegistry() ?? createShortcutRegistry();
193
+ /** Capture in flight. */
194
+ const capturing = ref(false);
195
+ /** Insert text at the caret (or replace the selection) and refresh suggestions. */
196
+ async function insert(text, at) {
197
+ const field = options.input.value;
198
+ if (!field) return;
199
+ const start = at ?? field.selectionStart;
200
+ const end = at ?? field.selectionEnd;
201
+ options.update(`${field.value.slice(0, start)}${text}${field.value.slice(end)}`);
202
+ await nextTick();
203
+ field.focus();
204
+ field.setSelectionRange(start + text.length, start + text.length);
205
+ options.suggestions.refresh();
206
+ }
207
+ const actions = {
208
+ capturing,
209
+ /** Open the system file picker. */
210
+ openFiles() {
211
+ if (!options.locked()) options.picker.value?.click();
212
+ },
213
+ /** Insert `@` at the caret, spaced from a preceding word. */
214
+ mention() {
215
+ const field = options.input.value;
216
+ const caret = field?.selectionStart ?? 0;
217
+ return insert(caret > 0 && !/\s/.test(field?.value[caret - 1] ?? "") ? " @" : "@");
218
+ },
219
+ /** Start the message with `/` to list agent commands. */
220
+ command() {
221
+ return options.input.value?.value.startsWith("/") ? insert("", 1) : insert("/", 0);
222
+ },
223
+ /** Capture a screenshot; a returned path is attached as a copy. */
224
+ async screenshot() {
225
+ const capture = options.capture();
226
+ if (!capture || capturing.value || options.locked()) return;
227
+ capturing.value = true;
228
+ try {
229
+ const path = await capture();
230
+ if (path) await options.files.addScreenshot(path);
231
+ } catch (error) {
232
+ options.files.fail(error instanceof Error ? error.message : "Screenshot unavailable. Retry capture.");
233
+ } finally {
234
+ capturing.value = false;
235
+ }
236
+ },
237
+ /** Readable shortcut of an action, for menu hints. */
238
+ hint: (id) => shortcuts.hint(id),
239
+ /** Prompt shortcuts (attach files, capture); returns whether the key was handled. */
240
+ keydown(event) {
241
+ if (event.repeat) return false;
242
+ const keys = (id) => shortcuts.reference.get(id)?.keys ?? [];
243
+ const run = keys("comment.attach").some((key) => matchesShortcut(key, event)) ? actions.openFiles : options.capture() && keys("comment.screenshot").some((key) => matchesShortcut(key, event)) ? actions.screenshot : void 0;
244
+ if (!run) return false;
245
+ event.preventDefault();
246
+ event.stopPropagation();
247
+ run();
248
+ return true;
249
+ }
250
+ };
251
+ return actions;
252
+ }
253
+ // src/app/components/comments/prompt/attachments.ts
254
+ /**
255
+ * Files carried by a clipboard or drag event.
256
+ * @param data Event transfer data.
257
+ */
258
+ function transferFiles(data) {
259
+ if (!data) return [];
260
+ const files = [...data.files ?? []];
261
+ return files.length ? files : [...data.items ?? []].filter((item) => item.kind === "file").map((item) => item.getAsFile()).filter((file) => file !== null);
262
+ }
263
+ /**
264
+ * Upload, screenshot, paste and drag & drop handling for prompt attachments.
265
+ * Results that finish after the owning component unmounts are dropped, so parents key the
266
+ * prompt by draft identity to keep late uploads out of another draft.
267
+ * @param options Current list accessors.
268
+ * @param options.attachments Current attachments.
269
+ * @param options.update Writes the new list.
270
+ * @param options.disabled Drops are ignored while true.
271
+ */
272
+ function usePromptAttachments(options) {
273
+ const uploading = ref(0);
274
+ const dropping = ref(false);
275
+ const notice = ref("");
276
+ let noticeTimer;
277
+ let disposed = false;
278
+ /**
279
+ * Last list written or received. Parents mirror updates only on their next render, so
280
+ * reading props mid-batch would count and append against a stale list.
281
+ */
282
+ let latest = options.attachments();
283
+ watch(options.attachments, (value) => {
284
+ latest = value;
285
+ });
286
+ onScopeDispose(() => {
287
+ disposed = true;
288
+ clearTimeout(noticeTimer);
289
+ });
290
+ /** Write a new list and remember it until the parent echoes it back. */
291
+ function write(value) {
292
+ latest = value;
293
+ options.update(value);
294
+ }
295
+ /** Show a transient failure under the field. */
296
+ function fail(message) {
297
+ clearTimeout(noticeTimer);
298
+ notice.value = message;
299
+ noticeTimer = setTimeout(() => notice.value = "", 4e3);
300
+ }
301
+ /** Store attachments one by one (uploads, copied screenshots), appending each as soon as it is stored. */
302
+ async function add(stores) {
303
+ for (const store of stores) {
304
+ if (disposed) return;
305
+ if (latest.length + uploading.value >= COMMENT_ATTACHMENT_LIMIT) {
306
+ fail(`Attach at most ${COMMENT_ATTACHMENT_LIMIT} files`);
307
+ break;
308
+ }
309
+ uploading.value++;
310
+ try {
311
+ const stored = await store();
312
+ if (!disposed) write([...latest, stored]);
313
+ } catch (error) {
314
+ if (!disposed) fail(error instanceof Error ? error.message : "Cannot attach file");
315
+ } finally {
316
+ uploading.value--;
317
+ }
318
+ }
319
+ }
320
+ /** Upload picked, pasted or dropped files. */
321
+ function addFiles(files) {
322
+ return add([...files].map((file) => () => uploadAttachment(file)));
323
+ }
324
+ /** Whether a drag carries files. */
325
+ function hasFiles(event) {
326
+ return [...event.dataTransfer?.types ?? []].includes("Files");
327
+ }
328
+ return {
329
+ uploading,
330
+ dropping,
331
+ notice,
332
+ addFiles,
333
+ fail,
334
+ /** Attach a stored screenshot (captured or recent) as a copy. */
335
+ addScreenshot(path) {
336
+ return add([() => attachScreenshot(path)]);
337
+ },
338
+ /** Detach one stored file. */
339
+ remove(path) {
340
+ write(latest.filter((file) => file.path !== path));
341
+ },
342
+ /** Pasted files become attachments; text (even with a file rendering, e.g. spreadsheet cells) pastes normally. */
343
+ paste(event) {
344
+ const files = transferFiles(event.clipboardData);
345
+ if (!files.length || event.clipboardData?.getData("text/plain").trim()) return;
346
+ event.preventDefault();
347
+ addFiles(files);
348
+ },
349
+ /** Accept file drags and highlight the box; a locked prompt refuses them. */
350
+ dragover(event) {
351
+ if (!hasFiles(event)) return;
352
+ event.preventDefault();
353
+ if (options.disabled()) {
354
+ if (event.dataTransfer) event.dataTransfer.dropEffect = "none";
355
+ return;
356
+ }
357
+ dropping.value = true;
358
+ },
359
+ /** Drag left the box. */
360
+ dragleave(event) {
361
+ if (!event.currentTarget.contains(event.relatedTarget)) dropping.value = false;
362
+ },
363
+ /** Dropped files become attachments unless the prompt is locked. */
364
+ drop(event) {
365
+ dropping.value = false;
366
+ const files = transferFiles(event.dataTransfer);
367
+ if (!files.length) return;
368
+ event.preventDefault();
369
+ if (!options.disabled()) addFiles(files);
370
+ }
371
+ };
372
+ }
373
+ // src/app/components/comments/prompt/attachment-meta.ts
374
+ /**
375
+ * Compact byte size (B / KB / MB).
376
+ * @param bytes Size in bytes.
377
+ */
378
+ function formatSize(bytes) {
379
+ if (bytes < 1024) return `${bytes} B`;
380
+ if (bytes < 1048576) return `${Math.round(bytes / 1024)} KB`;
381
+ return `${(bytes / 1048576).toFixed(1)} MB`;
382
+ }
383
+ /**
384
+ * File type and size line of a non-image attachment, e.g. `TXT · 2 KB`.
385
+ * @param attachment Stored attachment.
386
+ */
387
+ function attachmentMeta(attachment) {
388
+ return `${attachment.name.includes(".") ? attachment.name.split(".").pop().toUpperCase() : "FILE"} · ${formatSize(attachment.size)}`;
389
+ }
390
+ /**
391
+ * Whether an attachment renders as an image tile.
392
+ * @param attachment Stored attachment.
393
+ */
394
+ function isImage(attachment) {
395
+ return attachment.mimeType.startsWith("image/");
396
+ }
397
+ // src/app/components/comments/prompt/AttachmentTile.vue?vue&type=script&setup=true&lang.ts
398
+ var _hoisted_1$14 = ["data-image", "title"];
399
+ var _hoisted_2$12 = ["aria-label"];
400
+ var _hoisted_3$10 = ["src"];
401
+ var _hoisted_4$7 = { class: "htw:grid htw:flex-none htw:place-items-center htw:w-8.5 htw:h-8.5 htw:rounded-control htw:bg-surface htw:text-muted" };
402
+ var _hoisted_5$6 = { class: "htw:flex htw:flex-col htw:min-w-0 htw:leading-[1.3]" };
403
+ var _hoisted_6$2 = ["href", "download"];
404
+ var _hoisted_7$2 = {
405
+ key: 1,
406
+ class: "htw:overflow-hidden htw:text-inherit htw:font-semibold htw:no-underline htw:text-ellipsis htw:whitespace-nowrap"
407
+ };
408
+ var _hoisted_8$2 = {
409
+ key: 2,
410
+ class: "htw:text-muted htw:text-[11px]"
411
+ };
412
+ // src/app/components/comments/prompt/AttachmentTile.vue
413
+ var AttachmentTile_default = /* @__PURE__ */ defineComponent({
414
+ __name: "AttachmentTile",
415
+ props: {
416
+ name: {},
417
+ src: {},
418
+ meta: {},
419
+ href: {},
420
+ removable: { type: Boolean }
421
+ },
422
+ emits: ["open", "remove"],
423
+ setup(__props, { emit: __emit }) {
424
+ const emit = __emit;
425
+ return (_ctx, _cache) => {
426
+ return openBlock(), createElementBlock("div", {
427
+ class: "htw:relative htw:inline-flex htw:items-center htw:gap-2 htw:h-12 htw:max-w-55 htw:pt-0 htw:pr-7 htw:pb-0 htw:pl-1.5 htw:border htw:border-border htw:rounded-control htw:bg-chip htw:text-[12px] htw:group/attachment htw:data-[image=true]:w-12 htw:data-[image=true]:p-0 htw:data-[image=true]:overflow-hidden",
428
+ "data-image": Boolean(__props.src),
429
+ title: __props.name
430
+ }, [__props.src ? (openBlock(), createElementBlock("button", {
431
+ key: 0,
432
+ type: "button",
433
+ class: "htw:block htw:w-full htw:h-full htw:p-0 htw:border-0 htw:bg-surface htw:cursor-zoom-in htw:focus-visible:[outline:2px_solid_var(--histoire-agent)] htw:focus-visible:-outline-offset-2",
434
+ "aria-label": `Open ${__props.name}`,
435
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("open"))
436
+ }, [createElementVNode("img", {
437
+ src: __props.src,
438
+ alt: "",
439
+ class: "htw:block htw:w-full htw:h-full htw:object-cover"
440
+ }, null, 8, _hoisted_3$10)], 8, _hoisted_2$12)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("span", _hoisted_4$7, [createVNode(unref(BuiltinIcon), {
441
+ icon: "document",
442
+ size: 16
443
+ })]), createElementVNode("span", _hoisted_5$6, [__props.href ? (openBlock(), createElementBlock("a", {
444
+ key: 0,
445
+ class: "htw:overflow-hidden htw:text-inherit htw:font-semibold htw:no-underline htw:text-ellipsis htw:whitespace-nowrap htw:hover:underline",
446
+ href: __props.href,
447
+ download: __props.name
448
+ }, toDisplayString(__props.name), 9, _hoisted_6$2)) : (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(__props.name), 1)), __props.meta ? (openBlock(), createElementBlock("span", _hoisted_8$2, toDisplayString(__props.meta), 1)) : createCommentVNode("", true)])], 64)), __props.removable ? (openBlock(), createBlock(unref(HstButton), {
449
+ key: 2,
450
+ "icon-only": "",
451
+ color: "flat",
452
+ type: "button",
453
+ class: "htw:[--histoire-icon-button-size:18px] htw:absolute htw:top-0.75 htw:right-0.75 htw:rounded-full htw:text-muted htw:[box-shadow:0_0_0_1px_var(--histoire-border)] htw:bg-surface htw:hover:bg-chip htw:group-data-[image=true]/attachment:opacity-0 htw:group-data-[image=true]/attachment:bg-black/70 htw:group-data-[image=true]/attachment:text-white htw:group-data-[image=true]/attachment:shadow-[0_0_0_1px_rgb(255_255_255/0.25)] htw:group-data-[image=true]/attachment:[transition:opacity_120ms_ease,background-color_120ms_ease] htw:group-data-[image=true]/attachment:hover:bg-black/90 htw:group-hover/attachment:opacity-100 htw:group-focus-within/attachment:opacity-100",
454
+ "aria-label": `Remove ${__props.name}`,
455
+ title: `Remove ${__props.name}`,
456
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("remove"))
457
+ }, {
458
+ default: withCtx(() => [createVNode(unref(BuiltinIcon), {
459
+ icon: "close",
460
+ size: 12
461
+ })]),
462
+ _: 1
463
+ }, 8, ["aria-label", "title"])) : createCommentVNode("", true)], 8, _hoisted_1$14);
464
+ };
465
+ }
466
+ });
467
+ // src/app/components/comments/prompt/AttachmentViewer.vue?vue&type=script&setup=true&lang.ts
468
+ var _hoisted_1$13 = ["aria-label"];
469
+ var _hoisted_2$11 = { class: "htw:flex htw:items-center htw:gap-1 htw:pt-1.5 htw:pr-1.5 htw:pb-1.5 htw:pl-3 htw:border-b htw:border-border" };
470
+ var _hoisted_3$9 = { class: "htw:flex-1 htw:min-w-0 htw:overflow-hidden htw:text-[12px] htw:font-semibold htw:text-ellipsis htw:whitespace-nowrap" };
471
+ var _hoisted_4$6 = ["href", "download"];
472
+ var _hoisted_5$5 = ["src", "alt"];
473
+ // src/app/components/comments/prompt/AttachmentViewer.vue
474
+ var AttachmentViewer_default = /* @__PURE__ */ defineComponent({
475
+ __name: "AttachmentViewer",
476
+ props: {
477
+ src: {},
478
+ name: {},
479
+ href: {}
480
+ },
481
+ emits: ["close"],
482
+ setup(__props, { emit: __emit }) {
483
+ const emit = __emit;
484
+ const dialog = ref();
485
+ onMounted(() => {
486
+ const element = dialog.value;
487
+ if (element?.showModal) element.showModal();
488
+ else element?.setAttribute("open", "");
489
+ });
490
+ return (_ctx, _cache) => {
491
+ return openBlock(), createElementBlock("dialog", {
492
+ ref_key: "dialog",
493
+ ref: dialog,
494
+ class: "htw:flex htw:flex-col htw:[max-width:min(90vw,_1200px)] htw:[max-height:90vh] htw:p-0 htw:overflow-hidden htw:border htw:border-border htw:rounded-panel htw:bg-surface htw:text-text htw:shadow-panel htw:backdrop:bg-scrim",
495
+ "aria-label": __props.name,
496
+ onClose: _cache[1] || (_cache[1] = ($event) => emit("close")),
497
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => emit("close"), ["self"]))
498
+ }, [createElementVNode("header", _hoisted_2$11, [
499
+ createElementVNode("span", _hoisted_3$9, toDisplayString(__props.name), 1),
500
+ __props.href ? (openBlock(), createElementBlock("a", {
501
+ key: 0,
502
+ class: "htw:inline-flex htw:p-1.5 htw:text-muted",
503
+ href: __props.href,
504
+ download: __props.name,
505
+ "aria-label": "Download",
506
+ title: "Download"
507
+ }, [createVNode(unref(BuiltinIcon), {
508
+ icon: "launch",
509
+ size: 14
510
+ })], 8, _hoisted_4$6)) : createCommentVNode("", true),
511
+ createVNode(unref(HstButton), {
512
+ "icon-only": "",
513
+ color: "flat",
514
+ type: "button",
515
+ "aria-label": "Close",
516
+ title: "Close (Esc)",
517
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
518
+ }, {
519
+ default: withCtx(() => [createVNode(unref(BuiltinIcon), {
520
+ icon: "close",
521
+ size: 16
522
+ })]),
523
+ _: 1
524
+ })
525
+ ]), createElementVNode("img", {
526
+ src: __props.src,
527
+ alt: __props.name,
528
+ class: "htw:block htw:min-h-0 htw:max-w-full htw:[max-height:calc(90vh_-_44px)] htw:m-auto htw:object-contain htw:[background:repeating-conic-gradient(var(--histoire-chip)_0_25%,_transparent_0_50%)_0_0_/_16px_16px]"
529
+ }, null, 8, _hoisted_5$5)], 40, _hoisted_1$13);
530
+ };
531
+ }
532
+ });
533
+ // src/app/components/comments/prompt/AttachmentStrip.vue?vue&type=script&setup=true&lang.ts
534
+ var _hoisted_1$12 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-1.5" };
535
+ // src/app/components/comments/prompt/AttachmentStrip.vue
536
+ var AttachmentStrip_default = /* @__PURE__ */ defineComponent({
537
+ __name: "AttachmentStrip",
538
+ props: {
539
+ attachments: {},
540
+ screenshot: {},
541
+ uploading: { default: 0 },
542
+ removable: { type: Boolean },
543
+ linked: { type: Boolean }
544
+ },
545
+ emits: ["remove", "removeScreenshot"],
546
+ setup(__props, { emit: __emit }) {
547
+ const props = __props;
548
+ const uploadingVisible = useLoadingDelay(() => props.uploading > 0);
549
+ const emit = __emit;
550
+ /** Image open in the viewer. */
551
+ const viewing = shallowRef();
552
+ return (_ctx, _cache) => {
553
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
554
+ renderSlot(_ctx.$slots, "default"),
555
+ __props.screenshot ? (openBlock(), createBlock(AttachmentTile_default, {
556
+ key: 0,
557
+ name: "Screenshot",
558
+ src: unref(screenshotUrl)(__props.screenshot),
559
+ removable: __props.removable,
560
+ onOpen: _cache[0] || (_cache[0] = ($event) => viewing.value = {
561
+ src: unref(screenshotUrl)(__props.screenshot),
562
+ name: "Screenshot"
563
+ }),
564
+ onRemove: _cache[1] || (_cache[1] = ($event) => emit("removeScreenshot"))
565
+ }, null, 8, ["src", "removable"])) : createCommentVNode("", true),
566
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.attachments, (file) => {
567
+ return openBlock(), createBlock(AttachmentTile_default, {
568
+ key: file.path,
569
+ name: file.name,
570
+ src: unref(isImage)(file) ? unref(attachmentUrl)(file.path) : void 0,
571
+ meta: unref(isImage)(file) ? void 0 : unref(attachmentMeta)(file),
572
+ href: __props.linked ? unref(attachmentUrl)(file.path) : void 0,
573
+ removable: __props.removable,
574
+ onOpen: ($event) => viewing.value = {
575
+ src: unref(attachmentUrl)(file.path),
576
+ name: file.name,
577
+ href: unref(attachmentUrl)(file.path)
578
+ },
579
+ onRemove: ($event) => emit("remove", file.path)
580
+ }, null, 8, [
581
+ "name",
582
+ "src",
583
+ "meta",
584
+ "href",
585
+ "removable",
586
+ "onOpen",
587
+ "onRemove"
588
+ ]);
589
+ }), 128)),
590
+ unref(uploadingVisible) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.uploading, (index) => {
591
+ return openBlock(), createElementBlock("span", {
592
+ key: `uploading-${index}`,
593
+ class: "htw:grid htw:place-items-center htw:w-12 htw:h-12 htw:[border:1px_dashed_var(--histoire-border)] htw:rounded-control htw:text-muted",
594
+ role: "status",
595
+ "aria-label": "Uploading",
596
+ title: "Uploading"
597
+ }, [createVNode(unref(HstPulsatingDisc), {
598
+ immediate: "",
599
+ size: 12
600
+ })]);
601
+ }), 128)) : createCommentVNode("", true),
602
+ viewing.value ? (openBlock(), createBlock(AttachmentViewer_default, {
603
+ key: 2,
604
+ src: viewing.value.src,
605
+ name: viewing.value.name,
606
+ href: viewing.value.href,
607
+ onClose: _cache[2] || (_cache[2] = ($event) => viewing.value = void 0)
608
+ }, null, 8, [
609
+ "src",
610
+ "name",
611
+ "href"
612
+ ])) : createCommentVNode("", true)
613
+ ]);
614
+ };
615
+ }
616
+ });
617
+ // src/app/components/comments/prompt/autogrow.ts
618
+ /**
619
+ * Grow a textarea with its content; CSS `min-height`/`max-height` bound the result
620
+ * and `overflow-y: auto` takes over past the max.
621
+ * @param textarea Field to resize.
622
+ * @param value Current text, watched to trigger resizing.
623
+ */
624
+ function useAutoGrow(textarea, value) {
625
+ /** Collapse first so shrinking content reports its real scroll height. */
626
+ function resize() {
627
+ const element = textarea.value;
628
+ if (!element) return;
629
+ element.style.height = "auto";
630
+ element.style.height = `${element.scrollHeight}px`;
631
+ }
632
+ watch(value, () => nextTick(resize));
633
+ onMounted(resize);
634
+ }
635
+ // src/app/components/comments/prompt/AttachMenuPanel.vue?vue&type=script&setup=true&lang.ts
636
+ var _hoisted_1$11 = { class: "htw:grid htw:[grid-template-columns:repeat(3,_1fr)] htw:gap-1.5 htw:pt-0 htw:px-2 htw:pb-2" };
637
+ var _hoisted_2$10 = [
638
+ "aria-label",
639
+ "title",
640
+ "onClick"
641
+ ];
642
+ var _hoisted_3$8 = ["src"];
643
+ // src/app/components/comments/prompt/AttachMenuPanel.vue
644
+ var AttachMenuPanel_default = /* @__PURE__ */ defineComponent({
645
+ __name: "AttachMenuPanel",
646
+ props: {
647
+ anchor: {},
648
+ actions: {}
649
+ },
650
+ emits: [
651
+ "action",
652
+ "screenshot",
653
+ "close"
654
+ ],
655
+ setup(__props, { emit: __emit }) {
656
+ const emit = __emit;
657
+ const context = useHistoireContext();
658
+ const snapshot = useHistoireSnapshot();
659
+ /** Most recent stored screenshots, newest first. */
660
+ const recent = shallowRef([]);
661
+ const requestId = crypto.randomUUID();
662
+ onScopeDispose(onUiEvent("histoire:ui:screenshot-list-result", (result) => {
663
+ if (result.requestId === requestId) recent.value = result.files.slice(0, 6);
664
+ }));
665
+ sendUiEvent("histoire:ui:screenshot-list", { requestId });
666
+ return (_ctx, _cache) => {
667
+ return openBlock(), createBlock(BasePopover_default, {
668
+ open: "",
669
+ anchor: __props.anchor,
670
+ label: "Add to message",
671
+ role: "menu",
672
+ width: 264,
673
+ align: "start",
674
+ side: "top",
675
+ "overlay-target": unref(context).overlay.value ?? unref(context).root.value,
676
+ "onUpdate:open": _cache[0] || (_cache[0] = ($event) => emit("close"))
677
+ }, {
678
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action) => {
679
+ return openBlock(), createBlock(MenuItem_default, {
680
+ key: action.id,
681
+ label: action.label,
682
+ icon: action.icon,
683
+ shortcut: action.shortcut,
684
+ onClick: ($event) => emit("action", action.id)
685
+ }, null, 8, [
686
+ "label",
687
+ "icon",
688
+ "shortcut",
689
+ "onClick"
690
+ ]);
691
+ }), 128)), recent.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
692
+ createVNode(PopoverDivider_default, { role: "separator" }),
693
+ createVNode(PopoverTitle_default, null, {
694
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" Recent screenshots ", -1)])]),
695
+ _: 1
696
+ }),
697
+ createElementVNode("div", _hoisted_1$11, [(openBlock(true), createElementBlock(Fragment, null, renderList(recent.value, (file) => {
698
+ return openBlock(), createElementBlock("button", {
699
+ key: file.path,
700
+ type: "button",
701
+ role: "menuitem",
702
+ tabindex: "-1",
703
+ "aria-label": `Attach screenshot of ${unref(catalogTargetLabel)(file, unref(snapshot).catalog)}`,
704
+ title: unref(catalogTargetLabel)(file, unref(snapshot).catalog),
705
+ class: "htw:[aspect-ratio:4_/_3] htw:p-0 htw:overflow-hidden htw:border htw:border-border htw:rounded-control htw:bg-chip htw:cursor-pointer htw:hover:border-agent htw:hover:outline-none htw:focus-visible:border-agent htw:focus-visible:outline-none",
706
+ onClick: ($event) => emit("screenshot", file.path)
707
+ }, [createElementVNode("img", {
708
+ src: unref(screenshotUrl)(file.path),
709
+ alt: "",
710
+ class: "htw:block htw:w-full htw:h-full htw:object-cover"
711
+ }, null, 8, _hoisted_3$8)], 8, _hoisted_2$10);
712
+ }), 128))])
713
+ ], 64)) : createCommentVNode("", true)]),
714
+ _: 1
715
+ }, 8, ["anchor", "overlay-target"]);
716
+ };
717
+ }
718
+ });
719
+ // src/app/components/comments/prompt/menu-trigger.ts
720
+ /**
721
+ * Open state and anchor of a button that toggles a `PromptMenu`.
722
+ * Bind `trigger` as the button's template ref; `anchor` is its DOM element for positioning.
723
+ */
724
+ function useMenuTrigger() {
725
+ /** Menu is shown. */
726
+ const open = ref(false);
727
+ /** Toggle button instance (template ref). */
728
+ const trigger = shallowRef(null);
729
+ return {
730
+ open,
731
+ trigger,
732
+ anchor: computed(() => trigger.value?.element ?? null),
733
+ /** Flip the menu from the trigger button. */
734
+ toggle() {
735
+ open.value = !open.value;
736
+ },
737
+ /** Dismiss the menu. */
738
+ close() {
739
+ open.value = false;
740
+ }
741
+ };
742
+ }
743
+ // src/app/components/comments/prompt/PromptAttachMenu.vue
744
+ var PromptAttachMenu_default = /* @__PURE__ */ defineComponent({
745
+ __name: "PromptAttachMenu",
746
+ props: {
747
+ disabled: { type: Boolean },
748
+ capture: { type: Boolean },
749
+ capturing: { type: Boolean },
750
+ commands: { type: Boolean },
751
+ hints: {}
752
+ },
753
+ emits: ["action", "screenshot"],
754
+ setup(__props, { emit: __emit }) {
755
+ const props = __props;
756
+ const emit = __emit;
757
+ const { open, trigger, anchor, toggle, close } = useMenuTrigger();
758
+ const actions = computed(() => [
759
+ {
760
+ id: "files",
761
+ label: "Attach files…",
762
+ icon: "attachment",
763
+ shortcut: props.hints.files
764
+ },
765
+ ...props.capture ? [{
766
+ id: "screenshot",
767
+ label: "Capture screenshot",
768
+ icon: "camera",
769
+ shortcut: props.hints.screenshot
770
+ }] : [],
771
+ {
772
+ id: "mention",
773
+ label: "Mention a file",
774
+ icon: "document",
775
+ shortcut: "@"
776
+ },
777
+ ...props.commands ? [{
778
+ id: "command",
779
+ label: "Use a command",
780
+ icon: "terminal",
781
+ shortcut: "/"
782
+ }] : []
783
+ ]);
784
+ /** Run the picked action and dismiss the menu. */
785
+ function pick(id) {
786
+ close();
787
+ emit("action", id);
788
+ }
789
+ /** Attach the picked screenshot and dismiss the menu. */
790
+ function pickScreenshot(path) {
791
+ close();
792
+ emit("screenshot", path);
793
+ }
794
+ return (_ctx, _cache) => {
795
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(HstButton), {
796
+ ref_key: "trigger",
797
+ ref: trigger,
798
+ "icon-only": "",
799
+ color: "flat",
800
+ type: "button",
801
+ class: "htw:text-muted",
802
+ "aria-label": __props.capturing ? "Capturing screenshot" : "Add to message",
803
+ "aria-haspopup": "menu",
804
+ "aria-expanded": unref(open),
805
+ title: __props.capturing ? "Capturing screenshot" : "Add to message",
806
+ disabled: __props.disabled,
807
+ onClick: unref(toggle)
808
+ }, {
809
+ default: withCtx(() => [__props.capturing ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
810
+ key: 0,
811
+ size: 12
812
+ })) : (openBlock(), createBlock(unref(BuiltinIcon), {
813
+ key: 1,
814
+ icon: "add",
815
+ size: 16
816
+ }))]),
817
+ _: 1
818
+ }, 8, [
819
+ "aria-label",
820
+ "aria-expanded",
821
+ "title",
822
+ "disabled",
823
+ "onClick"
824
+ ]), unref(open) ? (openBlock(), createBlock(AttachMenuPanel_default, {
825
+ key: 0,
826
+ anchor: unref(anchor),
827
+ actions: actions.value,
828
+ onAction: pick,
829
+ onScreenshot: pickScreenshot,
830
+ onClose: unref(close)
831
+ }, null, 8, [
832
+ "anchor",
833
+ "actions",
834
+ "onClose"
835
+ ])) : createCommentVNode("", true)], 64);
836
+ };
837
+ }
838
+ });
839
+ // src/app/components/comments/prompt/PromptSuggestions.vue?vue&type=script&setup=true&lang.ts
840
+ var _hoisted_1$10 = ["id", "aria-label"];
841
+ var _hoisted_2$9 = [
842
+ "id",
843
+ "aria-selected",
844
+ "onClick"
845
+ ];
846
+ var _hoisted_3$7 = { class: "htw:flex-none htw:font-mono" };
847
+ var _hoisted_4$5 = {
848
+ key: 0,
849
+ class: "htw:min-w-0 htw:overflow-hidden htw:text-muted htw:text-ellipsis htw:whitespace-nowrap"
850
+ };
851
+ var _hoisted_5$4 = {
852
+ key: 0,
853
+ class: "empty htw:flex htw:items-center htw:gap-2 htw:min-w-0 htw:py-1.25 htw:px-2 htw:rounded-control htw:text-[12px] htw:text-muted htw:cursor-default htw:aria-selected:bg-chip",
854
+ role: "presentation"
855
+ };
856
+ // src/app/components/comments/prompt/PromptSuggestions.vue
857
+ var PromptSuggestions_default = /* @__PURE__ */ defineComponent({
858
+ __name: "PromptSuggestions",
859
+ props: {
860
+ id: {},
861
+ label: {},
862
+ items: {},
863
+ active: {},
864
+ empty: {}
865
+ },
866
+ emits: ["pick"],
867
+ setup(__props, { emit: __emit }) {
868
+ const emit = __emit;
869
+ return (_ctx, _cache) => {
870
+ return openBlock(), createElementBlock("ul", {
871
+ id: __props.id,
872
+ class: "htw:absolute htw:[z-index:2] htw:[right:-1px] htw:[bottom:calc(100%_+_4px)] htw:[left:-1px] htw:max-h-55 htw:m-0 htw:p-1 htw:overflow-y-auto htw:list-none htw:border htw:border-border htw:rounded-control htw:bg-surface htw:shadow-panel",
873
+ role: "listbox",
874
+ "aria-label": __props.label,
875
+ onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"]))
876
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
877
+ return openBlock(), createElementBlock("li", {
878
+ id: `${__props.id}-${index}`,
879
+ key: item.id,
880
+ role: "option",
881
+ "aria-selected": index === __props.active,
882
+ class: "htw:flex htw:items-center htw:gap-2 htw:min-w-0 htw:py-1.25 htw:px-2 htw:rounded-control htw:text-body htw:text-[12px] htw:cursor-pointer htw:aria-selected:bg-chip",
883
+ onClick: ($event) => emit("pick", index)
884
+ }, [
885
+ createVNode(unref(BuiltinIcon), {
886
+ icon: item.icon,
887
+ size: 14,
888
+ class: "htw:flex-none htw:text-muted"
889
+ }, null, 8, ["icon"]),
890
+ createElementVNode("span", _hoisted_3$7, toDisplayString(item.label), 1),
891
+ item.detail ? (openBlock(), createElementBlock("span", _hoisted_4$5, toDisplayString(item.detail), 1)) : createCommentVNode("", true)
892
+ ], 8, _hoisted_2$9);
893
+ }), 128)), !__props.items.length ? (openBlock(), createElementBlock("li", _hoisted_5$4, toDisplayString(__props.empty), 1)) : createCommentVNode("", true)], 40, _hoisted_1$10);
894
+ };
895
+ }
896
+ });
897
+ // src/app/components/comments/prompt/session-labels.ts
898
+ /**
899
+ * Value in effect for one selector: the explicit choice, else the agent's current value.
900
+ * @param selector Agent-advertised choices.
901
+ * @param value Explicit choice.
902
+ */
903
+ function sessionValue(selector, value) {
904
+ return value ?? selector?.currentValue;
905
+ }
906
+ /**
907
+ * Display label of the value in effect for one selector; none before the agent advertised its choices.
908
+ * @param selector Agent-advertised choices.
909
+ * @param value Explicit choice.
910
+ */
911
+ function sessionLabel(selector, value) {
912
+ if (!selector) return void 0;
913
+ const current = sessionValue(selector, value);
914
+ return selector.options.find((option) => option.value === current)?.label ?? current;
915
+ }
916
+ /**
917
+ * Next choices after picking one value; a new model resets effort, whose levels depend on the model.
918
+ * @param options Current explicit choices.
919
+ * @param field Picked field.
920
+ * @param value Picked value.
921
+ */
922
+ function pickSessionOption(options, field, value) {
923
+ const next = {
924
+ ...options,
925
+ [field]: value
926
+ };
927
+ if (field === "model") delete next.effort;
928
+ return next;
929
+ }
930
+ // src/app/components/comments/prompt/SessionPopover.vue
931
+ var SessionPopover_default = /* @__PURE__ */ defineComponent({
932
+ __name: "SessionPopover",
933
+ props: { anchor: {} },
934
+ emits: ["close"],
935
+ setup(__props, { emit: __emit }) {
936
+ const emit = __emit;
937
+ const context = useHistoireContext();
938
+ return (_ctx, _cache) => {
939
+ return openBlock(), createBlock(BasePopover_default, {
940
+ open: "",
941
+ anchor: __props.anchor,
942
+ label: "Agent session",
943
+ role: "dialog",
944
+ width: 280,
945
+ align: "start",
946
+ side: "top",
947
+ "overlay-target": unref(context).overlay.value ?? unref(context).root.value,
948
+ "onUpdate:open": _cache[0] || (_cache[0] = ($event) => emit("close"))
949
+ }, {
950
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
951
+ _: 3
952
+ }, 8, ["anchor", "overlay-target"]);
953
+ };
954
+ }
955
+ });
956
+ // src/app/components/comments/prompt/PromptMenu.vue
957
+ var PromptMenu_default = /* @__PURE__ */ defineComponent({
958
+ __name: "PromptMenu",
959
+ props: {
960
+ anchor: {},
961
+ label: {},
962
+ items: {},
963
+ radio: { type: Boolean },
964
+ ai: { type: Boolean }
965
+ },
966
+ emits: ["pick", "close"],
967
+ setup(__props, { emit: __emit }) {
968
+ const emit = __emit;
969
+ const context = useHistoireContext();
970
+ return (_ctx, _cache) => {
971
+ return openBlock(), createBlock(BasePopover_default, {
972
+ open: "",
973
+ anchor: __props.anchor,
974
+ label: __props.label,
975
+ role: "menu",
976
+ width: 220,
977
+ "overlay-target": unref(context).overlay.value ?? unref(context).root.value,
978
+ "onUpdate:open": _cache[0] || (_cache[0] = ($event) => emit("close"))
979
+ }, {
980
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
981
+ return openBlock(), createBlock(MenuItem_default, {
982
+ key: item.id,
983
+ label: item.label,
984
+ icon: item.icon,
985
+ ai: __props.ai,
986
+ role: __props.radio ? "menuitemradio" : "menuitem",
987
+ "aria-checked": __props.radio ? Boolean(item.checked) : void 0,
988
+ onClick: ($event) => emit("pick", item.id)
989
+ }, {
990
+ default: withCtx(() => [item.logo ? (openBlock(), createBlock(AgentLogo_default, {
991
+ key: 0,
992
+ class: "htw:[order:-1] htw:text-agent",
993
+ icon: item.logo.icon,
994
+ size: 16
995
+ }, null, 8, ["icon"])) : createCommentVNode("", true), item.checked ? (openBlock(), createBlock(unref(BuiltinIcon), {
996
+ key: 1,
997
+ class: "htw:ml-auto",
998
+ icon: "checkmark",
999
+ size: 16
1000
+ })) : createCommentVNode("", true)]),
1001
+ _: 2
1002
+ }, 1032, [
1003
+ "label",
1004
+ "icon",
1005
+ "ai",
1006
+ "role",
1007
+ "aria-checked",
1008
+ "onClick"
1009
+ ]);
1010
+ }), 128))]),
1011
+ _: 1
1012
+ }, 8, [
1013
+ "anchor",
1014
+ "label",
1015
+ "overlay-target"
1016
+ ]);
1017
+ };
1018
+ }
1019
+ });
1020
+ // src/app/components/comments/prompt/SessionRadioList.vue?vue&type=script&setup=true&lang.ts
1021
+ var _hoisted_1$9 = { class: "htw:flex htw:flex-col htw:gap-1" };
1022
+ var _hoisted_2$8 = { class: "htw:text-muted htw:text-[11px] htw:font-semibold" };
1023
+ var _hoisted_3$6 = ["aria-label"];
1024
+ // src/app/components/comments/prompt/SessionRadioList.vue
1025
+ var SessionRadioList_default = /* @__PURE__ */ defineComponent({
1026
+ __name: "SessionRadioList",
1027
+ props: {
1028
+ label: {},
1029
+ selector: {},
1030
+ current: {},
1031
+ disabled: { type: Boolean }
1032
+ },
1033
+ emits: ["pick"],
1034
+ setup(__props, { emit: __emit }) {
1035
+ const emit = __emit;
1036
+ return (_ctx, _cache) => {
1037
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [createElementVNode("span", _hoisted_2$8, toDisplayString(__props.label), 1), createElementVNode("div", {
1038
+ role: "radiogroup",
1039
+ "aria-label": __props.label,
1040
+ class: "htw:flex htw:flex-col htw:max-h-44 htw:overflow-y-auto"
1041
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.selector.options, (option) => {
1042
+ return openBlock(), createBlock(unref(HstButton), {
1043
+ key: option.value,
1044
+ color: "flat",
1045
+ type: "button",
1046
+ role: "radio",
1047
+ "aria-label": option.label,
1048
+ "aria-checked": option.value === __props.current,
1049
+ disabled: __props.disabled,
1050
+ class: "htw:flex htw:items-center htw:justify-between htw:gap-2 htw:px-2 htw:py-1.25 htw:text-body htw:text-[12px] htw:text-left htw:aria-checked:text-text htw:aria-checked:font-semibold",
1051
+ onClick: ($event) => emit("pick", option.value)
1052
+ }, {
1053
+ default: withCtx(() => [createElementVNode("span", null, toDisplayString(option.group ? `${option.group} / ${option.label}` : option.label), 1), option.value === __props.current ? (openBlock(), createBlock(unref(BuiltinIcon), {
1054
+ key: 0,
1055
+ icon: "checkmark",
1056
+ size: 14
1057
+ })) : createCommentVNode("", true)]),
1058
+ _: 2
1059
+ }, 1032, [
1060
+ "aria-label",
1061
+ "aria-checked",
1062
+ "disabled",
1063
+ "onClick"
1064
+ ]);
1065
+ }), 128))], 8, _hoisted_3$6)]);
1066
+ };
1067
+ }
1068
+ });
1069
+ // src/app/components/comments/prompt/SessionSettings.vue?vue&type=script&setup=true&lang.ts
1070
+ var _hoisted_1$8 = { class: "htw:flex htw:flex-col htw:gap-3 htw:p-3" };
1071
+ var _hoisted_2$7 = { class: "htw:flex htw:items-center htw:gap-2 htw:min-w-0" };
1072
+ var _hoisted_3$5 = { class: "htw:flex-1 htw:min-w-0 htw:overflow-hidden htw:text-[13px] htw:text-ellipsis htw:whitespace-nowrap" };
1073
+ var _hoisted_4$4 = {
1074
+ key: 0,
1075
+ class: "htw:m-0 htw:text-muted htw:text-[12px]",
1076
+ role: "status"
1077
+ };
1078
+ // src/app/components/comments/prompt/SessionSettings.vue
1079
+ var SessionSettings_default = /* @__PURE__ */ defineComponent({
1080
+ __name: "SessionSettings",
1081
+ props: {
1082
+ agents: {},
1083
+ agentId: {},
1084
+ locked: { type: Boolean },
1085
+ config: {},
1086
+ loading: { type: Boolean },
1087
+ options: {},
1088
+ disabled: { type: Boolean }
1089
+ },
1090
+ emits: ["choose", "update:options"],
1091
+ setup(__props, { emit: __emit }) {
1092
+ const props = __props;
1093
+ const emit = __emit;
1094
+ const loadingVisible = useLoadingDelay(() => !!props.loading && !props.config);
1095
+ const menu = useMenuTrigger();
1096
+ const agent = computed(() => props.agents.find((agent) => agent.id === props.agentId));
1097
+ const agentItems = computed(() => props.agents.map((agent) => ({
1098
+ id: agent.id,
1099
+ label: agent.name,
1100
+ logo: { icon: agent.icon },
1101
+ checked: agent.id === props.agentId
1102
+ })));
1103
+ /** Agent selector with choices, if any. */
1104
+ function selector(field) {
1105
+ const value = props.config?.[field];
1106
+ return value?.options.length ? value : void 0;
1107
+ }
1108
+ /** Record one picked value. */
1109
+ function pick(field, value) {
1110
+ emit("update:options", pickSessionOption(props.options, field, value));
1111
+ }
1112
+ /** Switch destination and dismiss the agent menu. */
1113
+ function switchAgent(id) {
1114
+ menu.close();
1115
+ emit("choose", id);
1116
+ }
1117
+ return (_ctx, _cache) => {
1118
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
1119
+ createElementVNode("div", _hoisted_2$7, [
1120
+ createVNode(AgentLogo_default, {
1121
+ icon: agent.value?.icon,
1122
+ size: 16,
1123
+ class: "htw:flex-none htw:text-agent"
1124
+ }, null, 8, ["icon"]),
1125
+ createElementVNode("strong", _hoisted_3$5, toDisplayString(agent.value?.name ?? __props.agentId), 1),
1126
+ !__props.locked ? (openBlock(), createBlock(unref(HstButton), {
1127
+ key: 0,
1128
+ ref: (el) => unref(menu).trigger.value = el,
1129
+ color: "flat",
1130
+ type: "button",
1131
+ class: "htw:inline-flex htw:items-center htw:gap-1 htw:py-1 htw:px-1.5 htw:text-muted htw:text-[12px]",
1132
+ "aria-label": "Switch agent",
1133
+ "aria-haspopup": "menu",
1134
+ "aria-expanded": unref(menu).open.value,
1135
+ disabled: __props.disabled,
1136
+ onClick: unref(menu).toggle
1137
+ }, {
1138
+ default: withCtx(() => [_cache[3] || (_cache[3] = createTextVNode(" Switch agent", -1)), createVNode(unref(BuiltinIcon), {
1139
+ icon: "chevron-right",
1140
+ size: 12
1141
+ })]),
1142
+ _: 1
1143
+ }, 8, [
1144
+ "aria-expanded",
1145
+ "disabled",
1146
+ "onClick"
1147
+ ])) : createCommentVNode("", true),
1148
+ unref(menu).open.value ? (openBlock(), createBlock(PromptMenu_default, {
1149
+ key: 1,
1150
+ anchor: unref(menu).anchor.value,
1151
+ label: "Agents",
1152
+ items: agentItems.value,
1153
+ radio: "",
1154
+ ai: "",
1155
+ onPick: switchAgent,
1156
+ onClose: unref(menu).close
1157
+ }, null, 8, [
1158
+ "anchor",
1159
+ "items",
1160
+ "onClose"
1161
+ ])) : createCommentVNode("", true)
1162
+ ]),
1163
+ unref(loadingVisible) ? (openBlock(), createElementBlock("p", _hoisted_4$4, " Loading models… ")) : createCommentVNode("", true),
1164
+ selector("model") ? (openBlock(), createBlock(SessionRadioList_default, {
1165
+ key: 1,
1166
+ label: "Model",
1167
+ selector: selector("model"),
1168
+ current: unref(sessionValue)(selector("model"), __props.options?.model),
1169
+ disabled: __props.disabled,
1170
+ onPick: _cache[0] || (_cache[0] = ($event) => pick("model", $event))
1171
+ }, null, 8, [
1172
+ "selector",
1173
+ "current",
1174
+ "disabled"
1175
+ ])) : createCommentVNode("", true),
1176
+ selector("effort") ? (openBlock(), createBlock(SessionRadioList_default, {
1177
+ key: 2,
1178
+ label: "Reasoning effort",
1179
+ selector: selector("effort"),
1180
+ current: unref(sessionValue)(selector("effort"), __props.options?.effort),
1181
+ disabled: __props.disabled,
1182
+ onPick: _cache[1] || (_cache[1] = ($event) => pick("effort", $event))
1183
+ }, null, 8, [
1184
+ "selector",
1185
+ "current",
1186
+ "disabled"
1187
+ ])) : createCommentVNode("", true),
1188
+ selector("mode") ? (openBlock(), createBlock(SessionRadioList_default, {
1189
+ key: 3,
1190
+ label: "Mode",
1191
+ selector: selector("mode"),
1192
+ current: unref(sessionValue)(selector("mode"), __props.options?.mode),
1193
+ disabled: __props.disabled,
1194
+ onPick: _cache[2] || (_cache[2] = ($event) => pick("mode", $event))
1195
+ }, null, 8, [
1196
+ "selector",
1197
+ "current",
1198
+ "disabled"
1199
+ ])) : createCommentVNode("", true)
1200
+ ]);
1201
+ };
1202
+ }
1203
+ });
1204
+ // src/app/components/comments/prompt/SessionPicker.vue?vue&type=script&setup=true&lang.ts
1205
+ var _hoisted_1$7 = { class: "htw:flex htw:flex-none htw:text-agent" };
1206
+ var _hoisted_2$6 = { class: "htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap" };
1207
+ // src/app/components/comments/prompt/SessionPicker.vue
1208
+ var SessionPicker_default = /* @__PURE__ */ defineComponent({
1209
+ __name: "SessionPicker",
1210
+ props: {
1211
+ agents: {},
1212
+ agentId: {},
1213
+ locked: { type: Boolean },
1214
+ config: {},
1215
+ loading: { type: Boolean },
1216
+ options: {},
1217
+ disabled: { type: Boolean }
1218
+ },
1219
+ emits: ["choose", "update:options"],
1220
+ setup(__props, { emit: __emit }) {
1221
+ const props = __props;
1222
+ const emit = __emit;
1223
+ const { open, trigger, anchor, toggle, close } = useMenuTrigger();
1224
+ const agent = computed(() => props.agents.find((agent) => agent.id === props.agentId));
1225
+ /** Model name (or agent name before discovery), then the effort in effect. */
1226
+ const label = computed(() => {
1227
+ const model = sessionLabel(props.config?.model, props.options?.model) ?? agent.value?.name ?? "Choose agent";
1228
+ const effort = sessionLabel(props.config?.effort, props.options?.effort);
1229
+ return effort ? `${model} · ${effort}` : model;
1230
+ });
1231
+ return (_ctx, _cache) => {
1232
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(HstButton), {
1233
+ ref_key: "trigger",
1234
+ ref: trigger,
1235
+ color: "flat",
1236
+ type: "button",
1237
+ class: "htw:inline-flex htw:items-center htw:gap-1.5 htw:min-w-0 htw:max-w-50 htw:py-1 htw:px-2 htw:text-body htw:text-[12px]",
1238
+ "aria-haspopup": "dialog",
1239
+ "aria-expanded": unref(open),
1240
+ title: `${agent.value?.name ?? __props.agentId}: ${label.value}`,
1241
+ disabled: __props.disabled,
1242
+ onClick: unref(toggle)
1243
+ }, {
1244
+ default: withCtx(() => [
1245
+ createElementVNode("span", _hoisted_1$7, [createVNode(AgentLogo_default, {
1246
+ icon: agent.value?.icon,
1247
+ size: 14
1248
+ }, null, 8, ["icon"])]),
1249
+ createElementVNode("span", _hoisted_2$6, toDisplayString(label.value), 1),
1250
+ createVNode(unref(BuiltinIcon), {
1251
+ icon: "chevron-down",
1252
+ size: 12,
1253
+ class: "htw:flex-none htw:text-muted"
1254
+ })
1255
+ ]),
1256
+ _: 1
1257
+ }, 8, [
1258
+ "aria-expanded",
1259
+ "title",
1260
+ "disabled",
1261
+ "onClick"
1262
+ ]), unref(open) ? (openBlock(), createBlock(SessionPopover_default, {
1263
+ key: 0,
1264
+ anchor: unref(anchor),
1265
+ onClose: unref(close)
1266
+ }, {
1267
+ default: withCtx(() => [createVNode(SessionSettings_default, {
1268
+ agents: __props.agents,
1269
+ "agent-id": __props.agentId,
1270
+ locked: __props.locked,
1271
+ config: __props.config,
1272
+ loading: __props.loading,
1273
+ options: __props.options,
1274
+ disabled: __props.disabled,
1275
+ onChoose: _cache[0] || (_cache[0] = ($event) => emit("choose", $event)),
1276
+ "onUpdate:options": _cache[1] || (_cache[1] = ($event) => emit("update:options", $event))
1277
+ }, null, 8, [
1278
+ "agents",
1279
+ "agent-id",
1280
+ "locked",
1281
+ "config",
1282
+ "loading",
1283
+ "options",
1284
+ "disabled"
1285
+ ])]),
1286
+ _: 1
1287
+ }, 8, ["anchor", "onClose"])) : createCommentVNode("", true)], 64);
1288
+ };
1289
+ }
1290
+ });
1291
+ // src/app/components/comments/prompt/suggestions.ts
1292
+ /**
1293
+ * Finds the trigger the caret is completing: `@` at the start or after whitespace, `/` at the very start.
1294
+ * @param text Field value.
1295
+ * @param caret Caret index.
1296
+ */
1297
+ function detectTrigger(text, caret) {
1298
+ const before = text.slice(0, caret);
1299
+ const command = before.match(/^\/([\w:.-]*)$/);
1300
+ if (command) return {
1301
+ char: "/",
1302
+ query: command[1],
1303
+ start: 0,
1304
+ end: caret
1305
+ };
1306
+ const mention = before.match(/(?:^|\s)@([^\s@]*)$/);
1307
+ if (mention) return {
1308
+ char: "@",
1309
+ query: mention[1],
1310
+ start: caret - mention[1].length - 1,
1311
+ end: caret
1312
+ };
1313
+ }
1314
+ /**
1315
+ * Suggestion list state for a textarea: trigger detection, debounced loading, keyboard navigation and insertion.
1316
+ * @param options Field, value writer and suggestion sources.
1317
+ * @param options.input Bound textarea; its live DOM value is read so detection never lags the model.
1318
+ * @param options.update Writes a new field value.
1319
+ * @param options.sources Provider per trigger character.
1320
+ */
1321
+ function useSuggestions(options) {
1322
+ const trigger = shallowRef();
1323
+ const items = shallowRef([]);
1324
+ const active = ref(0);
1325
+ /** Items belong to the current trigger, so an empty list means no results. */
1326
+ const settled = ref(false);
1327
+ let request = 0;
1328
+ let timer;
1329
+ /** List is rendered for the current query; stale rows of a loading query stay inert. */
1330
+ const visible = computed(() => Boolean(trigger.value && settled.value));
1331
+ /** A rendered row exists for the field's `aria-activedescendant`. */
1332
+ const open = computed(() => visible.value && items.value.length > 0);
1333
+ onScopeDispose(() => clearTimeout(timer));
1334
+ /** Dismiss the list and retire any in-flight load. */
1335
+ function close() {
1336
+ clearTimeout(timer);
1337
+ request++;
1338
+ trigger.value = void 0;
1339
+ items.value = [];
1340
+ settled.value = false;
1341
+ }
1342
+ /** Re-evaluate the trigger after input, caret moves or focus. */
1343
+ function refresh() {
1344
+ const input = options.input.value;
1345
+ const found = input && input.selectionStart === input.selectionEnd ? detectTrigger(input.value, input.selectionStart) : void 0;
1346
+ const source = found && options.sources()[found.char];
1347
+ if (!found || !source) return close();
1348
+ const changed = found.char !== trigger.value?.char || found.query !== trigger.value?.query;
1349
+ trigger.value = found;
1350
+ if (!changed) return;
1351
+ clearTimeout(timer);
1352
+ settled.value = false;
1353
+ const current = ++request;
1354
+ /** Apply results only for the latest query. */
1355
+ const load = async () => {
1356
+ const result = await Promise.resolve(source(found.query)).catch(() => []);
1357
+ if (current !== request) return;
1358
+ items.value = result;
1359
+ active.value = 0;
1360
+ settled.value = true;
1361
+ };
1362
+ if (found.char === "@") timer = setTimeout(load, 120);
1363
+ else load();
1364
+ }
1365
+ /** Replace the trigger and query with the picked row, keeping the caret after it. */
1366
+ function pick(index = active.value) {
1367
+ const found = trigger.value;
1368
+ const item = items.value[index];
1369
+ if (!found || !item) return;
1370
+ const value = options.input.value?.value ?? "";
1371
+ const next = `${value.slice(0, found.start)}${item.insert} ${value.slice(found.end)}`;
1372
+ const caret = found.start + item.insert.length + 1;
1373
+ close();
1374
+ options.update(next);
1375
+ nextTick(() => {
1376
+ options.input.value?.focus();
1377
+ options.input.value?.setSelectionRange(caret, caret);
1378
+ });
1379
+ }
1380
+ /** Keyboard navigation while the list is visible; returns whether the key was consumed. */
1381
+ function keydown(event) {
1382
+ if (event.isComposing || event.keyCode === 229) return false;
1383
+ if (!visible.value || event.ctrlKey || event.metaKey || event.altKey) return false;
1384
+ if (event.key === "Escape") close();
1385
+ else if (!open.value) return false;
1386
+ else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
1387
+ const step = event.key === "ArrowDown" ? 1 : -1;
1388
+ active.value = (active.value + step + items.value.length) % items.value.length;
1389
+ } else if (event.key === "Enter" || event.key === "Tab") pick();
1390
+ else return false;
1391
+ event.preventDefault();
1392
+ event.stopPropagation();
1393
+ return true;
1394
+ }
1395
+ return {
1396
+ trigger,
1397
+ items,
1398
+ active,
1399
+ visible,
1400
+ open,
1401
+ refresh,
1402
+ pick,
1403
+ keydown,
1404
+ close
1405
+ };
1406
+ }
1407
+ // src/app/components/comments/prompt/AgentPrompt.vue?vue&type=script&setup=true&lang.ts
1408
+ var _hoisted_1$6 = [
1409
+ "data-compact",
1410
+ "data-disabled",
1411
+ "data-drop"
1412
+ ];
1413
+ var _hoisted_2$5 = {
1414
+ key: 1,
1415
+ class: "htw:flex htw:flex-wrap htw:gap-1.5 htw:pt-2 htw:px-2.5 htw:pb-0"
1416
+ };
1417
+ var _hoisted_3$4 = [
1418
+ "value",
1419
+ "aria-label",
1420
+ "placeholder",
1421
+ "disabled",
1422
+ "aria-expanded",
1423
+ "aria-controls",
1424
+ "aria-activedescendant"
1425
+ ];
1426
+ var _hoisted_4$3 = {
1427
+ key: 3,
1428
+ class: "htw:m-0 htw:py-0.5 htw:px-3 htw:text-danger htw:text-[12px]",
1429
+ role: "status"
1430
+ };
1431
+ var _hoisted_5$3 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-0.5 htw:pt-1 htw:px-1.5 htw:pb-1.5" };
1432
+ // src/app/components/comments/prompt/AgentPrompt.vue
1433
+ var AgentPrompt_default = /* @__PURE__ */ defineComponent({
1434
+ __name: "AgentPrompt",
1435
+ props: {
1436
+ modelValue: {},
1437
+ label: {},
1438
+ placeholder: {},
1439
+ agents: {},
1440
+ agentId: {},
1441
+ agentLocked: { type: Boolean },
1442
+ attachments: { default: () => [] },
1443
+ options: {},
1444
+ busy: { type: Boolean },
1445
+ disabled: { type: Boolean },
1446
+ pending: { type: Boolean },
1447
+ compact: { type: Boolean },
1448
+ capture: {},
1449
+ screenshot: {}
1450
+ },
1451
+ emits: [
1452
+ "update:modelValue",
1453
+ "update:attachments",
1454
+ "update:options",
1455
+ "choose",
1456
+ "send",
1457
+ "setupAgent",
1458
+ "removeScreenshot"
1459
+ ],
1460
+ setup(__props, { expose: __expose, emit: __emit }) {
1461
+ const props = __props;
1462
+ const emit = __emit;
1463
+ const input = ref();
1464
+ const picker = ref();
1465
+ const listId = `prompt-suggestions-${useId()}`;
1466
+ useAutoGrow(input, () => props.modelValue);
1467
+ const locked = computed(() => props.disabled || props.busy);
1468
+ const hasAgent = computed(() => props.agentLocked || props.agents.length > 0);
1469
+ const files = usePromptAttachments({
1470
+ attachments: () => props.attachments,
1471
+ update: (value) => emit("update:attachments", value),
1472
+ disabled: () => locked.value
1473
+ });
1474
+ const sendHint = `${formatKey(isMac ? "meta" : "ctrl")} ${formatKey("enter")}`;
1475
+ /** Model/effort/mode choices and probe-announced commands of the current agent. */
1476
+ const { discovery } = useAgentDiscovery(useAgentsStore(), () => props.agentId || void 0);
1477
+ const discoveryVisible = useLoadingDelay(() => !!discovery.value?.loading);
1478
+ const agent = computed(() => props.agents.find((agent) => agent.id === props.agentId));
1479
+ /** Live session commands win; discovery covers agents that have not run yet. */
1480
+ const commands = computed(() => agent.value?.commands ?? discovery.value?.value?.commands ?? []);
1481
+ /** `@` searches project files on the server; `/` lists the agent's advertised commands. */
1482
+ const sources = {
1483
+ "@": async (query) => (await searchProjectFiles(query)).map((file) => ({
1484
+ id: file.path,
1485
+ label: file.basename,
1486
+ detail: file.dirname,
1487
+ icon: "document",
1488
+ insert: `@${file.path}`
1489
+ })),
1490
+ "/": (query) => commands.value.filter((command) => command.name.startsWith(query)).map((command) => ({
1491
+ id: command.name,
1492
+ label: `/${command.name}`,
1493
+ detail: command.hint ? `${command.description} · ${command.hint}` : command.description,
1494
+ icon: "terminal",
1495
+ insert: `/${command.name}`
1496
+ }))
1497
+ };
1498
+ const suggestions = useSuggestions({
1499
+ input,
1500
+ update: (value) => emit("update:modelValue", value),
1501
+ sources: () => sources
1502
+ });
1503
+ /** Why the open list has no rows. */
1504
+ const emptyText = computed(() => {
1505
+ if (suggestions.trigger.value?.char === "@") return "No matching files";
1506
+ if (commands.value.length) return "No matching command";
1507
+ return discovery.value?.loading ? discoveryVisible.value ? "Loading commands…" : "" : `No commands from ${agent.value?.name ?? "this agent"} yet`;
1508
+ });
1509
+ const showSuggestions = suggestions.visible;
1510
+ const actions = usePromptActions({
1511
+ input,
1512
+ picker,
1513
+ update: (value) => emit("update:modelValue", value),
1514
+ files,
1515
+ suggestions,
1516
+ capture: () => props.capture,
1517
+ locked: () => locked.value
1518
+ });
1519
+ const canSend = computed(() => Boolean(props.modelValue.trim() && (props.agentLocked || props.agentId) && !locked.value && !props.pending && !files.uploading.value && !actions.capturing.value));
1520
+ watch(() => commands.value.map((command) => command.name).join("\n"), () => {
1521
+ if (suggestions.trigger.value?.char !== "/") return;
1522
+ suggestions.close();
1523
+ suggestions.refresh();
1524
+ });
1525
+ /** Field shortcut and button share one gate. */
1526
+ function send() {
1527
+ if (canSend.value) emit("send");
1528
+ }
1529
+ /** Suggestion navigation first, then prompt shortcuts, then Ctrl/⌘+Enter sends. */
1530
+ function keydown(event) {
1531
+ if (suggestions.keydown(event) || actions.keydown(event)) return;
1532
+ if (event.isComposing || event.keyCode === 229) return;
1533
+ if (event.key === "Enter" && (event.ctrlKey || event.metaKey)) {
1534
+ event.preventDefault();
1535
+ send();
1536
+ }
1537
+ }
1538
+ /** Caret moves can enter or leave a mention. */
1539
+ function keyup(event) {
1540
+ if ([
1541
+ "ArrowLeft",
1542
+ "ArrowRight",
1543
+ "Home",
1544
+ "End"
1545
+ ].includes(event.key)) suggestions.refresh();
1546
+ }
1547
+ /** Attach-menu action rows. */
1548
+ function runAction(id) {
1549
+ ({
1550
+ files: actions.openFiles,
1551
+ screenshot: actions.screenshot,
1552
+ mention: actions.mention,
1553
+ command: actions.command
1554
+ })[id]();
1555
+ }
1556
+ /** Files picked in the system dialog; reset so the same file can be picked again. */
1557
+ function picked() {
1558
+ files.addFiles([...picker.value?.files ?? []]);
1559
+ if (picker.value) picker.value.value = "";
1560
+ }
1561
+ __expose({
1562
+ /** Move keyboard focus into the message field. */
1563
+ focus: () => input.value?.focus() });
1564
+ return (_ctx, _cache) => {
1565
+ return openBlock(), createElementBlock("div", {
1566
+ class: "agent-prompt htw:[--histoire-control-accent:var(--histoire-agent)] htw:[--histoire-control-on-accent:#fff] htw:relative htw:flex htw:flex-col htw:border htw:border-border htw:rounded-control htw:bg-surface htw:[transition:border-color_120ms_ease,_box-shadow_120ms_ease] htw:group/prompt htw:focus-within:border-agent htw:focus-within:shadow-[0_0_0_3px_rgb(var(--histoire-agent-rgb)/0.2)] htw:data-[drop]:border-agent htw:data-[drop]:shadow-[0_0_0_3px_rgb(var(--histoire-agent-rgb)/0.2)]",
1567
+ "data-compact": __props.compact,
1568
+ "data-disabled": locked.value,
1569
+ "data-drop": unref(files).dropping.value || void 0,
1570
+ onDragover: _cache[8] || (_cache[8] = (...args) => unref(files).dragover && unref(files).dragover(...args)),
1571
+ onDragleave: _cache[9] || (_cache[9] = (...args) => unref(files).dragleave && unref(files).dragleave(...args)),
1572
+ onDrop: _cache[10] || (_cache[10] = (...args) => unref(files).drop && unref(files).drop(...args))
1573
+ }, [
1574
+ unref(showSuggestions) ? (openBlock(), createBlock(PromptSuggestions_default, {
1575
+ key: 0,
1576
+ id: listId,
1577
+ label: unref(suggestions).trigger.value?.char === "/" ? "Commands" : "Project files",
1578
+ items: unref(suggestions).items.value,
1579
+ active: unref(suggestions).active.value,
1580
+ empty: emptyText.value,
1581
+ onPick: unref(suggestions).pick
1582
+ }, null, 8, [
1583
+ "label",
1584
+ "items",
1585
+ "active",
1586
+ "empty",
1587
+ "onPick"
1588
+ ])) : createCommentVNode("", true),
1589
+ _ctx.$slots.chips ? (openBlock(), createElementBlock("div", _hoisted_2$5, [renderSlot(_ctx.$slots, "chips")])) : createCommentVNode("", true),
1590
+ __props.attachments.length || __props.screenshot || unref(files).uploading.value ? (openBlock(), createBlock(AttachmentStrip_default, {
1591
+ key: 2,
1592
+ class: "htw:pt-2 htw:px-2.5 htw:pb-0",
1593
+ attachments: __props.attachments,
1594
+ screenshot: __props.screenshot,
1595
+ uploading: unref(files).uploading.value,
1596
+ removable: "",
1597
+ onRemove: unref(files).remove,
1598
+ onRemoveScreenshot: _cache[0] || (_cache[0] = ($event) => emit("removeScreenshot"))
1599
+ }, null, 8, [
1600
+ "attachments",
1601
+ "screenshot",
1602
+ "uploading",
1603
+ "onRemove"
1604
+ ])) : createCommentVNode("", true),
1605
+ createElementVNode("textarea", {
1606
+ ref_key: "input",
1607
+ ref: input,
1608
+ class: "htw:box-border htw:block htw:w-full htw:[min-height:4.5rem] htw:max-h-60 htw:m-0 htw:pt-2.5 htw:px-3 htw:pb-1 htw:border-0 htw:outline-none htw:bg-transparent htw:text-text htw:[font-family:inherit] htw:[font-weight:inherit] htw:[font-style:inherit] htw:text-[13px] htw:leading-[1.45] htw:resize-none htw:overflow-y-auto htw:group-data-[compact=true]/prompt:min-h-9 htw:group-data-[compact=true]/prompt:max-h-40 htw:placeholder:text-muted htw:disabled:cursor-not-allowed",
1609
+ rows: "1",
1610
+ maxlength: "8192",
1611
+ value: __props.modelValue,
1612
+ "aria-label": __props.label,
1613
+ placeholder: __props.placeholder,
1614
+ disabled: locked.value,
1615
+ "aria-autocomplete": "list",
1616
+ "aria-expanded": unref(showSuggestions),
1617
+ "aria-controls": unref(showSuggestions) ? listId : void 0,
1618
+ "aria-activedescendant": unref(suggestions).open.value ? `${listId}-${unref(suggestions).active.value}` : void 0,
1619
+ onInput: _cache[1] || (_cache[1] = ($event) => {
1620
+ emit("update:modelValue", $event.target.value);
1621
+ unref(suggestions).refresh();
1622
+ }),
1623
+ onClick: _cache[2] || (_cache[2] = (...args) => unref(suggestions).refresh && unref(suggestions).refresh(...args)),
1624
+ onKeydown: keydown,
1625
+ onKeyup: keyup,
1626
+ onBlur: _cache[3] || (_cache[3] = (...args) => unref(suggestions).close && unref(suggestions).close(...args)),
1627
+ onPaste: _cache[4] || (_cache[4] = (...args) => unref(files).paste && unref(files).paste(...args))
1628
+ }, null, 40, _hoisted_3$4),
1629
+ unref(files).notice.value ? (openBlock(), createElementBlock("p", _hoisted_4$3, toDisplayString(unref(files).notice.value), 1)) : createCommentVNode("", true),
1630
+ createElementVNode("div", _hoisted_5$3, [
1631
+ createVNode(PromptAttachMenu_default, {
1632
+ disabled: locked.value,
1633
+ capture: Boolean(__props.capture),
1634
+ capturing: Boolean(unref(actions).capturing.value || __props.pending),
1635
+ commands: commands.value.length > 0,
1636
+ hints: {
1637
+ files: unref(actions).hint("comment.attach"),
1638
+ screenshot: unref(actions).hint("comment.screenshot")
1639
+ },
1640
+ onAction: runAction,
1641
+ onScreenshot: unref(files).addScreenshot
1642
+ }, null, 8, [
1643
+ "disabled",
1644
+ "capture",
1645
+ "capturing",
1646
+ "commands",
1647
+ "hints",
1648
+ "onScreenshot"
1649
+ ]),
1650
+ createElementVNode("input", {
1651
+ ref_key: "picker",
1652
+ ref: picker,
1653
+ type: "file",
1654
+ multiple: "",
1655
+ hidden: "",
1656
+ onChange: picked
1657
+ }, null, 544),
1658
+ renderSlot(_ctx.$slots, "tools"),
1659
+ hasAgent.value ? (openBlock(), createBlock(SessionPicker_default, {
1660
+ key: 0,
1661
+ agents: __props.agents,
1662
+ "agent-id": __props.agentId,
1663
+ locked: __props.agentLocked,
1664
+ config: unref(discovery)?.value,
1665
+ loading: unref(discovery)?.loading,
1666
+ options: __props.options,
1667
+ disabled: locked.value,
1668
+ onChoose: _cache[5] || (_cache[5] = ($event) => emit("choose", $event)),
1669
+ "onUpdate:options": _cache[6] || (_cache[6] = ($event) => emit("update:options", $event))
1670
+ }, null, 8, [
1671
+ "agents",
1672
+ "agent-id",
1673
+ "locked",
1674
+ "config",
1675
+ "loading",
1676
+ "options",
1677
+ "disabled"
1678
+ ])) : (openBlock(), createBlock(unref(HstButton), {
1679
+ key: 1,
1680
+ color: "flat",
1681
+ type: "button",
1682
+ class: "htw:py-1 htw:px-2 htw:text-agent htw:text-[12px] htw:font-semibold",
1683
+ onClick: _cache[7] || (_cache[7] = ($event) => emit("setupAgent"))
1684
+ }, {
1685
+ default: withCtx(() => [createVNode(unref(BuiltinIcon), {
1686
+ icon: "bot",
1687
+ size: 14
1688
+ }), _cache[11] || (_cache[11] = createTextVNode("Set up an agent ", -1))]),
1689
+ _: 1
1690
+ })),
1691
+ _cache[12] || (_cache[12] = createElementVNode("span", { class: "htw:flex-1" }, null, -1)),
1692
+ createVNode(unref(HstButton), {
1693
+ "icon-only": "",
1694
+ color: "primary",
1695
+ type: "button",
1696
+ class: "htw:[--histoire-icon-button-size:28px] htw:rounded-full",
1697
+ disabled: !canSend.value,
1698
+ "aria-label": __props.busy ? "Agent is working" : "Send",
1699
+ title: __props.busy ? "Agent is working" : `Send (${sendHint})`,
1700
+ onClick: send
1701
+ }, {
1702
+ default: withCtx(() => [__props.busy ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
1703
+ key: 0,
1704
+ size: 12
1705
+ })) : (openBlock(), createBlock(unref(BuiltinIcon), {
1706
+ key: 1,
1707
+ icon: "send-alt-filled",
1708
+ size: 14
1709
+ }))]),
1710
+ _: 1
1711
+ }, 8, [
1712
+ "disabled",
1713
+ "aria-label",
1714
+ "title"
1715
+ ])
1716
+ ])
1717
+ ], 40, _hoisted_1$6);
1718
+ };
1719
+ }
1720
+ });
1721
+ // src/app/components/comments/prompt/plan-follow-up.ts
1722
+ /** Composer placeholder once the agent kept planning. */
1723
+ var PLAN_FOLLOW_UP_PLACEHOLDER = "What should change in the plan?";
1724
+ /**
1725
+ * Whether the latest reply ended with "Keep planning"; focuses the composer when such a reply arrives.
1726
+ * @param thread Current thread.
1727
+ * @param prompt Composer exposing `focus`.
1728
+ */
1729
+ function usePlanFollowUp(thread, prompt) {
1730
+ const keptPlanning = computed(() => {
1731
+ const last = thread().thread.at(-1);
1732
+ return last?.author === "agent" && last.decisions?.at(-1)?.outcome === "kept-planning";
1733
+ });
1734
+ watch(() => [thread().id, thread().thread.length], ([id, length], [previousId, previousLength]) => {
1735
+ if (id === previousId && length > previousLength && keptPlanning.value) prompt.value?.focus();
1736
+ }, { flush: "post" });
1737
+ return keptPlanning;
1738
+ }
1739
+ // src/app/components/comments/reply-draft.ts
1740
+ /**
1741
+ * Reply drafts kept per conversation id, so switching threads keeps each one's unsent text and files.
1742
+ * @param id Current conversation id.
1743
+ * @param target Agent receiving the next reply.
1744
+ */
1745
+ function useReplyDrafts(id, target) {
1746
+ const drafts = ref({});
1747
+ const draft = computed(() => drafts.value[id()] ?? {
1748
+ body: "",
1749
+ attachments: []
1750
+ });
1751
+ /** Update fields of the current draft. */
1752
+ function edit(patch) {
1753
+ drafts.value = {
1754
+ ...drafts.value,
1755
+ [id()]: {
1756
+ ...draft.value,
1757
+ ...patch
1758
+ }
1759
+ };
1760
+ }
1761
+ return {
1762
+ draft,
1763
+ edit,
1764
+ /** Draft choices only while they still target the current agent; a switch or reset drops them. */
1765
+ options: computed(() => draft.value.optionsAgentId === target() ? draft.value.options : void 0),
1766
+ /** Record choices for the current agent. */
1767
+ choose(options) {
1768
+ edit({
1769
+ options,
1770
+ optionsAgentId: target()
1771
+ });
1772
+ },
1773
+ /** Clear text and files after a send; session choices persist. */
1774
+ sent() {
1775
+ edit({
1776
+ body: "",
1777
+ attachments: []
1778
+ });
1779
+ }
1780
+ };
1781
+ }
1782
+ // src/app/components/comments/thread/activity-phases.ts
1783
+ /** Most file names an edit summary lists before "+N". */
1784
+ var MAX_LISTED_FILES = 3;
1785
+ /** Maps an ACP tool kind to its phase family. */
1786
+ function phaseKind(kind) {
1787
+ if (kind === "read" || kind === "search" || kind === "think" || kind === "fetch") return "explore";
1788
+ if (kind === "edit" || kind === "delete" || kind === "move") return "edit";
1789
+ if (kind === "execute") return "run";
1790
+ return "other";
1791
+ }
1792
+ /** Whether a step is still in flight. */
1793
+ function isStepRunning(step) {
1794
+ return step.status === "pending" || step.status === "in_progress";
1795
+ }
1796
+ /** "2 files" style fragment, singular at 1. */
1797
+ function count(value, singular, plural) {
1798
+ return `${value} ${value === 1 ? singular : plural}`;
1799
+ }
1800
+ /** Last path segment. */
1801
+ function basename(file) {
1802
+ return file.split("/").findLast(Boolean) ?? file;
1803
+ }
1804
+ /** Summary of an explore phase: reads, searches/fetches and whether the agent thought. */
1805
+ function exploreSummary(steps) {
1806
+ const reads = steps.filter((step) => step.kind === "read").length;
1807
+ const searches = steps.filter((step) => step.kind === "search" || step.kind === "fetch").length;
1808
+ const thought = steps.some((step) => step.kind === "think");
1809
+ if (!reads && !searches) return "";
1810
+ return [
1811
+ reads && `read ${count(reads, "file", "files")}`,
1812
+ searches && `searched ${count(searches, "pattern", "patterns")}`,
1813
+ thought && "thought"
1814
+ ].filter(Boolean).join(", ");
1815
+ }
1816
+ /** Edit summary: up to three distinct basenames, then "+N". */
1817
+ function editSummary(steps) {
1818
+ const names = [...new Set(steps.flatMap((step) => step.target ? [basename(step.target)] : []))];
1819
+ const shown = names.slice(0, MAX_LISTED_FILES).join(", ");
1820
+ return names.length > MAX_LISTED_FILES ? `${shown} +${names.length - MAX_LISTED_FILES}` : shown;
1821
+ }
1822
+ /** Row label and detail for a phase. */
1823
+ function describe(kind, steps, running) {
1824
+ switch (kind) {
1825
+ case "explore":
1826
+ if (steps.every((step) => step.kind === "think")) return {
1827
+ title: running ? "Thinking" : "Thought",
1828
+ summary: ""
1829
+ };
1830
+ return {
1831
+ title: running ? "Exploring" : "Explored",
1832
+ summary: exploreSummary(steps)
1833
+ };
1834
+ case "edit": return {
1835
+ title: running ? "Editing" : "Edited",
1836
+ summary: editSummary(steps)
1837
+ };
1838
+ case "run": return {
1839
+ title: running ? "Running" : "Ran",
1840
+ summary: steps.length === 1 ? steps[0].title : count(steps.length, "command", "commands")
1841
+ };
1842
+ default: return {
1843
+ title: steps.length === 1 ? steps[0].title : running ? "Working" : "Worked",
1844
+ summary: steps.length === 1 ? "" : count(steps.length, "step", "steps")
1845
+ };
1846
+ }
1847
+ }
1848
+ /**
1849
+ * Groups consecutive steps of the same family into phases, in order.
1850
+ * @param steps Persisted or live agent steps.
1851
+ */
1852
+ function groupActivityPhases(steps) {
1853
+ const groups = [];
1854
+ for (const step of steps) {
1855
+ const kind = phaseKind(step.kind);
1856
+ const last = groups.at(-1);
1857
+ if (last?.kind === kind) last.steps.push(step);
1858
+ else groups.push({
1859
+ kind,
1860
+ steps: [step]
1861
+ });
1862
+ }
1863
+ return groups.map(({ kind, steps }) => {
1864
+ const running = steps.some(isStepRunning);
1865
+ return {
1866
+ id: steps[0].id,
1867
+ kind,
1868
+ ...describe(kind, steps, running),
1869
+ steps,
1870
+ added: steps.reduce((sum, step) => sum + (step.added ?? 0), 0),
1871
+ removed: steps.reduce((sum, step) => sum + (step.removed ?? 0), 0),
1872
+ status: running ? "running" : steps.at(-1)?.status === "failed" ? "failed" : "done"
1873
+ };
1874
+ });
1875
+ }
1876
+ // src/app/components/comments/thread/AgentLiveTail.vue?vue&type=script&setup=true&lang.ts
1877
+ var _hoisted_1$5 = {
1878
+ key: 0,
1879
+ class: "htw:flex htw:items-center htw:gap-1.5 htw:min-w-0 htw:mt-1 htw:mx-0 htw:mb-0 htw:text-agent-text htw:text-[11px]",
1880
+ role: "status"
1881
+ };
1882
+ var _hoisted_2$4 = { class: "label htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap" };
1883
+ var _hoisted_3$3 = {
1884
+ key: 0,
1885
+ class: "htw:flex-none htw:text-muted"
1886
+ };
1887
+ // src/app/components/comments/thread/AgentLiveTail.vue
1888
+ var AgentLiveTail_default = /* @__PURE__ */ defineComponent({
1889
+ __name: "AgentLiveTail",
1890
+ props: {
1891
+ steps: {},
1892
+ text: {},
1893
+ startedAt: {},
1894
+ queued: { type: Boolean },
1895
+ threadId: {}
1896
+ },
1897
+ setup(__props) {
1898
+ const props = __props;
1899
+ const visible = useLoadingDelay(true);
1900
+ const agents = useAgentsStore();
1901
+ const threads = useAiThreads();
1902
+ /** Live plan entry the agent reports working on. */
1903
+ const planEntry = computed(() => props.threadId ? threads?.streaming.value[props.threadId]?.plan?.find((entry) => entry.status === "in_progress")?.content : void 0);
1904
+ /** The agent is blocked on a plan approval or input request of this thread. */
1905
+ const waiting = computed(() => Boolean(props.threadId && agents?.needsInput.value.includes(props.threadId)));
1906
+ /** Ticks every second while mounted for the elapsed label. */
1907
+ const now = ref(Date.now());
1908
+ const timer = setInterval(() => now.value = Date.now(), 1e3);
1909
+ onBeforeUnmount(() => clearInterval(timer));
1910
+ /** What the agent is doing right now. */
1911
+ const label = computed(() => {
1912
+ if (props.queued) return "Queued";
1913
+ if (waiting.value) return "Waiting for your input";
1914
+ const running = props.steps.findLast(isStepRunning);
1915
+ if (running && running.kind !== "think") return running.title;
1916
+ if (running || !props.text) return planEntry.value ?? "Thinking";
1917
+ return "Writing response";
1918
+ });
1919
+ /** "12s" / "1m 05s" elapsed since the live output started. */
1920
+ const elapsed = computed(() => {
1921
+ if (!props.startedAt) return "";
1922
+ const seconds = Math.max(0, Math.floor((now.value - props.startedAt) / 1e3));
1923
+ return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m ${String(seconds % 60).padStart(2, "0")}s`;
1924
+ });
1925
+ return (_ctx, _cache) => {
1926
+ return unref(visible) ? (openBlock(), createElementBlock("p", _hoisted_1$5, [
1927
+ createVNode(unref(HstPulsatingDisc), {
1928
+ immediate: "",
1929
+ size: 12
1930
+ }),
1931
+ createElementVNode("span", _hoisted_2$4, toDisplayString(label.value), 1),
1932
+ elapsed.value ? (openBlock(), createElementBlock("time", _hoisted_3$3, toDisplayString(elapsed.value), 1)) : createCommentVNode("", true)
1933
+ ])) : createCommentVNode("", true);
1934
+ };
1935
+ }
1936
+ });
1937
+ // src/app/components/comments/thread/questions/AgentPendingInput.vue
1938
+ var AgentPendingInput_default = /* @__PURE__ */ defineComponent({
1939
+ __name: "AgentPendingInput",
1940
+ props: { threadId: {} },
1941
+ setup(__props) {
1942
+ const props = __props;
1943
+ const agents = useAgentsStore();
1944
+ /** Plan approvals and input requests of this thread. */
1945
+ const pending = computed(() => agents?.pendingFor(props.threadId) ?? {
1946
+ plans: [],
1947
+ elicitations: []
1948
+ });
1949
+ /** Request identities in render order. */
1950
+ const ids = computed(() => [...pending.value.plans, ...pending.value.elicitations].map((item) => item.requestId));
1951
+ let hide;
1952
+ watch(() => props.threadId, (id) => {
1953
+ hide?.();
1954
+ hide = agents?.show(id);
1955
+ }, { immediate: true });
1956
+ onBeforeUnmount(() => hide?.());
1957
+ /** Rendered card root of each request. */
1958
+ const cards = /* @__PURE__ */ new Map();
1959
+ /**
1960
+ * Template ref collector keyed by request identity.
1961
+ * @param id Request identity.
1962
+ * @param instance Card component, null on unmount.
1963
+ */
1964
+ function track(id, instance) {
1965
+ const element = instance && "$el" in instance ? instance.$el : instance;
1966
+ if (element) cards.set(id, element);
1967
+ else cards.delete(id);
1968
+ }
1969
+ /**
1970
+ * Brings a card into view and focuses its primary action: the first form field, else the primary
1971
+ * button. Focus stays put while the user types elsewhere so a new question never swallows keystrokes.
1972
+ * @param card Card root element.
1973
+ */
1974
+ function reveal(card) {
1975
+ if (!card?.isConnected) return;
1976
+ const reduced = card.ownerDocument.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
1977
+ card.scrollIntoView?.({
1978
+ behavior: reduced ? "auto" : "smooth",
1979
+ block: "nearest"
1980
+ });
1981
+ if (isTypingTarget(card.ownerDocument.activeElement)) return;
1982
+ card.querySelector("form :is(input, textarea, select):not(:disabled), [data-color=\"primary\"]:not(:disabled)")?.focus({ preventScroll: true });
1983
+ }
1984
+ onMounted(() => reveal(cards.get(ids.value[0])));
1985
+ watch(ids, async (next, previous) => {
1986
+ const added = next.filter((id) => !previous.includes(id));
1987
+ if (!added.length) return;
1988
+ await nextTick();
1989
+ reveal(cards.get(added[0]));
1990
+ });
1991
+ return (_ctx, _cache) => {
1992
+ return openBlock(), createElementBlock(Fragment, null, [(openBlock(true), createElementBlock(Fragment, null, renderList(pending.value.plans, (request) => {
1993
+ return openBlock(), createBlock(AgentPlanApproval_default, {
1994
+ key: request.requestId,
1995
+ ref_for: true,
1996
+ ref: (value) => track(request.requestId, value),
1997
+ request
1998
+ }, null, 8, ["request"]);
1999
+ }), 128)), (openBlock(true), createElementBlock(Fragment, null, renderList(pending.value.elicitations, (request) => {
2000
+ return openBlock(), createBlock(AgentElicitation_default, {
2001
+ key: request.requestId,
2002
+ ref_for: true,
2003
+ ref: (value) => track(request.requestId, value),
2004
+ request
2005
+ }, null, 8, ["request"]);
2006
+ }), 128))], 64);
2007
+ };
2008
+ }
2009
+ });
2010
+ // src/app/components/comments/thread/stick-to-bottom.ts
2011
+ /** Distance (px) from the bottom still treated as "at the bottom". */
2012
+ var THRESHOLD = 24;
2013
+ /**
2014
+ * Keeps a scroll container pinned to its bottom: when `key` changes (another thread
2015
+ * opens) and whenever its content grows (new messages, streamed text, async markdown),
2016
+ * unless the user scrolled up to read history.
2017
+ * @param container Scrollable element.
2018
+ * @param content Element wrapping all scrollable content; its size changes are observed.
2019
+ * @param key Identity whose change re-pins to the bottom.
2020
+ */
2021
+ function useStickToBottom(container, content, key) {
2022
+ let stick = true;
2023
+ /** Scroll to the end when pinned. */
2024
+ function pin() {
2025
+ const element = container.value;
2026
+ if (element && stick) element.scrollTop = element.scrollHeight;
2027
+ }
2028
+ /** User scrolling decides whether later growth keeps following. */
2029
+ function scrolled() {
2030
+ const element = container.value;
2031
+ if (element) stick = element.scrollHeight - element.scrollTop - element.clientHeight <= THRESHOLD;
2032
+ }
2033
+ const observer = typeof ResizeObserver === "undefined" ? void 0 : new ResizeObserver(pin);
2034
+ watch(key, () => {
2035
+ stick = true;
2036
+ pin();
2037
+ }, { flush: "post" });
2038
+ watch([container, content], ([element, inner], [previous, previousInner]) => {
2039
+ previous?.removeEventListener("scroll", scrolled);
2040
+ if (previousInner) observer?.unobserve(previousInner);
2041
+ element?.addEventListener("scroll", scrolled, { passive: true });
2042
+ if (inner) observer?.observe(inner);
2043
+ pin();
2044
+ }, {
2045
+ flush: "post",
2046
+ immediate: true
2047
+ });
2048
+ onBeforeUnmount(() => {
2049
+ observer?.disconnect();
2050
+ container.value?.removeEventListener("scroll", scrolled);
2051
+ });
2052
+ }
2053
+ // src/app/components/comments/thread/AgentDisclosure.vue?vue&type=script&setup=true&lang.ts
2054
+ var _hoisted_1$4 = {
2055
+ type: "button",
2056
+ class: "htw:flex htw:items-center htw:gap-1.5 htw:w-full htw:min-w-0 htw:py-0.75 htw:px-0 htw:border-0 htw:bg-transparent htw:text-inherit htw:[font:inherit] htw:text-left htw:cursor-pointer htw:disabled:cursor-default"
2057
+ };
2058
+ // src/app/components/comments/thread/AgentDisclosure.vue
2059
+ var AgentDisclosure_default = /* @__PURE__ */ defineComponent({
2060
+ __name: "AgentDisclosure",
2061
+ setup(__props) {
2062
+ return (_ctx, _cache) => {
2063
+ return openBlock(), createElementBlock("button", _hoisted_1$4, [renderSlot(_ctx.$slots, "default")]);
2064
+ };
2065
+ }
2066
+ });
2067
+ // src/app/components/comments/thread/AgentActivityPhase.vue?vue&type=script&setup=true&lang.ts
2068
+ var _hoisted_1$3 = ["data-status"];
2069
+ var _hoisted_2$3 = { class: "htw:text-body htw:font-semibold" };
2070
+ var _hoisted_3$2 = {
2071
+ key: 1,
2072
+ class: "summary htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap"
2073
+ };
2074
+ var _hoisted_4$2 = {
2075
+ key: 2,
2076
+ class: "counts htw:flex-none"
2077
+ };
2078
+ var _hoisted_5$2 = { class: "added htw:text-accent-link" };
2079
+ var _hoisted_6$1 = { class: "removed htw:text-danger-text" };
2080
+ var _hoisted_7$1 = {
2081
+ key: 3,
2082
+ class: "failed htw:text-danger-text"
2083
+ };
2084
+ var _hoisted_8$1 = {
2085
+ key: 0,
2086
+ class: "phase-steps htw:grid htw:[grid-template-columns:minmax(0,_1fr)] htw:gap-0.5 htw:mt-0.5 htw:mx-0 htw:mb-1 htw:pt-0 htw:pr-0 htw:pb-0 htw:pl-4.5 htw:list-none"
2087
+ };
2088
+ var _hoisted_9$1 = ["data-status"];
2089
+ var _hoisted_10$1 = { class: "htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap" };
2090
+ var _hoisted_11$1 = {
2091
+ key: 0,
2092
+ class: "htw:flex-[0_1_auto] htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap htw:text-[10px]"
2093
+ };
2094
+ var _hoisted_12 = {
2095
+ key: 1,
2096
+ class: "counts htw:flex-none"
2097
+ };
2098
+ var _hoisted_13 = { class: "added htw:text-accent-link" };
2099
+ var _hoisted_14 = { class: "removed htw:text-danger-text" };
2100
+ // src/app/components/comments/thread/AgentActivityPhase.vue
2101
+ var AgentActivityPhase_default = /* @__PURE__ */ defineComponent({
2102
+ __name: "AgentActivityPhase",
2103
+ props: { phase: {} },
2104
+ setup(__props) {
2105
+ const props = __props;
2106
+ /** Glyph per phase family. */
2107
+ const phaseIcons = {
2108
+ explore: "search",
2109
+ edit: "edit",
2110
+ run: "terminal",
2111
+ other: "settings"
2112
+ };
2113
+ /** Glyph per ACP tool kind. */
2114
+ const stepIcons = {
2115
+ read: "document",
2116
+ search: "search",
2117
+ think: "light",
2118
+ fetch: "link",
2119
+ edit: "edit",
2120
+ delete: "trash-can",
2121
+ move: "move",
2122
+ execute: "terminal",
2123
+ other: "settings"
2124
+ };
2125
+ /** User toggle; `undefined` follows the default (open while running or failed). */
2126
+ const toggled = ref();
2127
+ const open = computed(() => props.phase.status === "running" || (toggled.value ?? props.phase.status === "failed"));
2128
+ /** Thought-only phases have nothing to expand. */
2129
+ const expandable = computed(() => props.phase.steps.some((step) => step.kind !== "think"));
2130
+ return (_ctx, _cache) => {
2131
+ return openBlock(), createElementBlock("div", {
2132
+ class: "htw:min-w-0 htw:text-[11px] htw:text-muted",
2133
+ "data-status": __props.phase.status
2134
+ }, [createVNode(AgentDisclosure_default, {
2135
+ class: "phase-row",
2136
+ "aria-expanded": expandable.value ? open.value : void 0,
2137
+ disabled: !expandable.value,
2138
+ onClick: _cache[0] || (_cache[0] = ($event) => toggled.value = !open.value)
2139
+ }, {
2140
+ default: withCtx(() => [
2141
+ expandable.value ? (openBlock(), createBlock(unref(BuiltinIcon), {
2142
+ key: 0,
2143
+ class: "htw:[transition:transform_120ms_ease-out] htw:data-[open=true]:rotate-90 htw:motion-reduce:transition-none",
2144
+ "data-open": open.value,
2145
+ icon: "chevron-right",
2146
+ size: 12
2147
+ }, null, 8, ["data-open"])) : createCommentVNode("", true),
2148
+ createVNode(unref(BuiltinIcon), {
2149
+ icon: phaseIcons[__props.phase.kind],
2150
+ size: 14
2151
+ }, null, 8, ["icon"]),
2152
+ createElementVNode("strong", _hoisted_2$3, toDisplayString(__props.phase.title), 1),
2153
+ __props.phase.summary ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.phase.summary), 1)) : createCommentVNode("", true),
2154
+ __props.phase.added || __props.phase.removed ? (openBlock(), createElementBlock("span", _hoisted_4$2, [
2155
+ createElementVNode("span", _hoisted_5$2, "+" + toDisplayString(__props.phase.added), 1),
2156
+ _cache[1] || (_cache[1] = createTextVNode()),
2157
+ createElementVNode("span", _hoisted_6$1, "-" + toDisplayString(__props.phase.removed), 1)
2158
+ ])) : createCommentVNode("", true),
2159
+ __props.phase.status === "failed" ? (openBlock(), createElementBlock("span", _hoisted_7$1, "failed")) : createCommentVNode("", true),
2160
+ __props.phase.status === "running" ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
2161
+ key: 4,
2162
+ size: 10
2163
+ })) : createCommentVNode("", true)
2164
+ ]),
2165
+ _: 1
2166
+ }, 8, ["aria-expanded", "disabled"]), open.value && expandable.value ? (openBlock(), createElementBlock("ul", _hoisted_8$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.phase.steps, (step) => {
2167
+ return openBlock(), createElementBlock("li", {
2168
+ key: step.id,
2169
+ "data-status": step.status,
2170
+ class: "htw:flex htw:items-center htw:gap-1.5 htw:min-w-0"
2171
+ }, [
2172
+ createVNode(unref(BuiltinIcon), {
2173
+ icon: stepIcons[step.kind],
2174
+ size: 12
2175
+ }, null, 8, ["icon"]),
2176
+ createElementVNode("span", _hoisted_10$1, toDisplayString(step.title), 1),
2177
+ step.target && !step.title.includes(step.target) ? (openBlock(), createElementBlock("code", _hoisted_11$1, toDisplayString(step.target), 1)) : createCommentVNode("", true),
2178
+ step.added || step.removed ? (openBlock(), createElementBlock("span", _hoisted_12, [
2179
+ createElementVNode("span", _hoisted_13, "+" + toDisplayString(step.added ?? 0), 1),
2180
+ _cache[2] || (_cache[2] = createTextVNode()),
2181
+ createElementVNode("span", _hoisted_14, "-" + toDisplayString(step.removed ?? 0), 1)
2182
+ ])) : createCommentVNode("", true),
2183
+ step.status === "failed" ? (openBlock(), createBlock(unref(BuiltinIcon), {
2184
+ key: 2,
2185
+ class: "failed htw:text-danger-text",
2186
+ icon: "error-filled",
2187
+ size: 12
2188
+ })) : unref(isStepRunning)(step) ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
2189
+ key: 3,
2190
+ size: 8
2191
+ })) : createCommentVNode("", true)
2192
+ ], 8, _hoisted_9$1);
2193
+ }), 128))])) : createCommentVNode("", true)], 8, _hoisted_1$3);
2194
+ };
2195
+ }
2196
+ });
2197
+ // src/app/components/comments/thread/AgentPlan.vue?vue&type=script&setup=true&lang.ts
2198
+ var _hoisted_1$2 = {
2199
+ class: "htw:min-w-0 htw:mb-1.5 htw:text-[11px] htw:text-muted",
2200
+ "aria-label": "Agent plan"
2201
+ };
2202
+ var _hoisted_2$2 = { class: "summary" };
2203
+ var _hoisted_3$1 = {
2204
+ key: 0,
2205
+ class: "htw:grid htw:gap-0.75 htw:mt-0.5 htw:mx-0 htw:mb-1 htw:pt-0 htw:pr-0 htw:pb-0 htw:pl-4.5 htw:list-none"
2206
+ };
2207
+ var _hoisted_4$1 = ["data-status"];
2208
+ var _hoisted_5$1 = { class: "content htw:min-w-0 htw:wrap-anywhere htw:group-data-[status=in\\_progress]/entry:text-body htw:group-data-[status=in\\_progress]/entry:font-semibold htw:group-data-[status=completed]/entry:line-through" };
2209
+ // src/app/components/comments/thread/AgentPlan.vue
2210
+ var AgentPlan_default = /* @__PURE__ */ defineComponent({
2211
+ __name: "AgentPlan",
2212
+ props: {
2213
+ entries: {},
2214
+ live: { type: Boolean }
2215
+ },
2216
+ setup(__props) {
2217
+ const props = __props;
2218
+ /** Completed entry count. */
2219
+ const done = computed(() => props.entries.filter((entry) => entry.status === "completed").length);
2220
+ /** User toggle; `undefined` follows the default (open until every entry is done). */
2221
+ const toggled = ref();
2222
+ const open = computed(() => toggled.value ?? done.value < props.entries.length);
2223
+ /** Static glyph per settled status; live running entries use the pulsating disc. */
2224
+ const icons = {
2225
+ pending: "circle-dash",
2226
+ in_progress: "in-progress",
2227
+ completed: "checkmark-filled"
2228
+ };
2229
+ return (_ctx, _cache) => {
2230
+ return openBlock(), createElementBlock("section", _hoisted_1$2, [createVNode(AgentDisclosure_default, {
2231
+ "aria-expanded": open.value,
2232
+ onClick: _cache[0] || (_cache[0] = ($event) => toggled.value = !open.value)
2233
+ }, {
2234
+ default: withCtx(() => [
2235
+ createVNode(unref(BuiltinIcon), {
2236
+ class: "htw:[transition:transform_120ms_ease-out] htw:data-[open=true]:rotate-90 htw:motion-reduce:transition-none",
2237
+ "data-open": open.value,
2238
+ icon: "chevron-right",
2239
+ size: 12
2240
+ }, null, 8, ["data-open"]),
2241
+ createVNode(unref(BuiltinIcon), {
2242
+ icon: "list-checked",
2243
+ size: 14
2244
+ }),
2245
+ _cache[1] || (_cache[1] = createElementVNode("strong", { class: "htw:text-body htw:font-semibold" }, "Plan", -1)),
2246
+ createElementVNode("span", _hoisted_2$2, toDisplayString(done.value) + "/" + toDisplayString(__props.entries.length) + " done", 1)
2247
+ ]),
2248
+ _: 1
2249
+ }, 8, ["aria-expanded"]), open.value ? (openBlock(), createElementBlock("ol", _hoisted_3$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.entries, (entry, index) => {
2250
+ return openBlock(), createElementBlock("li", {
2251
+ key: index,
2252
+ "data-status": entry.status,
2253
+ class: "htw:flex htw:items-start htw:gap-1.5 htw:min-w-0 htw:leading-[1.45] htw:group/entry"
2254
+ }, [__props.live && entry.status === "in_progress" ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
2255
+ key: 0,
2256
+ class: "status htw:flex-none htw:w-3 htw:mt-0.5 htw:group-data-[status=completed]/entry:text-accent-link",
2257
+ size: 10
2258
+ })) : (openBlock(), createBlock(unref(BuiltinIcon), {
2259
+ key: 1,
2260
+ class: "status htw:flex-none htw:w-3 htw:mt-0.5 htw:group-data-[status=completed]/entry:text-accent-link",
2261
+ icon: icons[entry.status],
2262
+ size: 12
2263
+ }, null, 8, ["icon"])), createElementVNode("span", _hoisted_5$1, toDisplayString(entry.content), 1)], 8, _hoisted_4$1);
2264
+ }), 128))])) : createCommentVNode("", true)]);
2265
+ };
2266
+ }
2267
+ });
2268
+ // src/app/components/comments/thread/AgentPlanDecision.vue?vue&type=script&setup=true&lang.ts
2269
+ var _hoisted_1$1 = ["data-outcome"];
2270
+ var _hoisted_2$1 = { class: "outcome htw:inline-flex htw:items-center htw:gap-1 htw:py-0 htw:px-1.5 htw:border htw:border-border htw:rounded-full htw:bg-chip htw:text-[10px] htw:font-medium htw:leading-[16px] htw:group-data-[outcome=approved]/decision:text-accent-link" };
2271
+ // src/app/components/comments/thread/AgentPlanDecision.vue
2272
+ var AgentPlanDecision_default = /* @__PURE__ */ defineComponent({
2273
+ __name: "AgentPlanDecision",
2274
+ props: { decision: {} },
2275
+ setup(__props) {
2276
+ /** Plan text stays collapsed until asked for. */
2277
+ const open = ref(false);
2278
+ return (_ctx, _cache) => {
2279
+ return openBlock(), createElementBlock("section", {
2280
+ class: "htw:min-w-0 htw:mb-1.5 htw:text-[11px] htw:text-muted htw:group/decision",
2281
+ "aria-label": "Plan decision",
2282
+ "data-outcome": __props.decision.outcome
2283
+ }, [createVNode(AgentDisclosure_default, {
2284
+ "aria-expanded": __props.decision.plan ? open.value : void 0,
2285
+ disabled: !__props.decision.plan,
2286
+ onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
2287
+ }, {
2288
+ default: withCtx(() => [
2289
+ __props.decision.plan ? (openBlock(), createBlock(unref(BuiltinIcon), {
2290
+ key: 0,
2291
+ class: "htw:[transition:transform_120ms_ease-out] htw:data-[open=true]:rotate-90 htw:motion-reduce:transition-none",
2292
+ "data-open": open.value,
2293
+ icon: "chevron-right",
2294
+ size: 12
2295
+ }, null, 8, ["data-open"])) : createCommentVNode("", true),
2296
+ createVNode(unref(BuiltinIcon), {
2297
+ icon: "list-checked",
2298
+ size: 14
2299
+ }),
2300
+ _cache[1] || (_cache[1] = createElementVNode("strong", { class: "htw:text-body htw:font-semibold" }, "Plan", -1)),
2301
+ createElementVNode("span", _hoisted_2$1, [createVNode(unref(BuiltinIcon), {
2302
+ icon: __props.decision.outcome === "approved" ? "checkmark-filled" : "edit",
2303
+ size: 12
2304
+ }, null, 8, ["icon"]), createTextVNode(" " + toDisplayString(__props.decision.outcome === "approved" ? "Approved" : "Kept planning"), 1)])
2305
+ ]),
2306
+ _: 1
2307
+ }, 8, ["aria-expanded", "disabled"]), open.value && __props.decision.plan ? (openBlock(), createBlock(AgentMarkdown_default, {
2308
+ key: 0,
2309
+ class: "htw:mt-0.5 htw:mx-0 htw:mb-1 htw:py-2 htw:px-2.5 htw:border htw:border-border htw:rounded-[6px]",
2310
+ text: __props.decision.plan
2311
+ }, null, 8, ["text"])) : createCommentVNode("", true)], 8, _hoisted_1$1);
2312
+ };
2313
+ }
2314
+ });
2315
+ // src/app/components/comments/thread/ThreadMessage.vue?vue&type=script&setup=true&lang.ts
2316
+ var _hoisted_1 = ["data-author"];
2317
+ var _hoisted_2 = { class: "htw:grid htw:place-items-center htw:flex-none htw:w-7 htw:h-7 htw:rounded-full htw:bg-chip htw:text-muted htw:group-data-[author=agent]/message:bg-agent-soft htw:group-data-[author=agent]/message:text-agent-text" };
2318
+ var _hoisted_3 = { class: "htw:min-w-0 htw:flex-1" };
2319
+ var _hoisted_4 = { class: "htw:flex htw:flex-wrap htw:items-baseline htw:gap-1.75 htw:mb-1" };
2320
+ var _hoisted_5 = { class: "htw:text-[12px]" };
2321
+ var _hoisted_6 = ["datetime", "title"];
2322
+ var _hoisted_7 = {
2323
+ key: 1,
2324
+ class: "htw:grid htw:[grid-template-columns:minmax(0,_1fr)] htw:gap-0.25 htw:mb-1.5"
2325
+ };
2326
+ var _hoisted_8 = {
2327
+ key: 2,
2328
+ class: "failed htw:m-0 htw:text-[12px] htw:leading-[1.6] htw:whitespace-pre-wrap htw:wrap-anywhere htw:flex htw:items-center htw:gap-1.5 htw:text-danger-text",
2329
+ role: "alert"
2330
+ };
2331
+ var _hoisted_9 = {
2332
+ key: 4,
2333
+ class: "plain htw:m-0 htw:text-[12px] htw:leading-[1.6] htw:text-body htw:whitespace-pre-wrap htw:wrap-anywhere"
2334
+ };
2335
+ var _hoisted_10 = { class: "added htw:text-accent-link" };
2336
+ var _hoisted_11 = { class: "removed htw:text-danger-text" };
2337
+ // src/app/components/comments/thread/ThreadMessage.vue
2338
+ var ThreadMessage_default = /* @__PURE__ */ defineComponent({
2339
+ __name: "ThreadMessage",
2340
+ props: {
2341
+ author: {},
2342
+ name: {},
2343
+ icon: {},
2344
+ at: {},
2345
+ body: {},
2346
+ steps: {},
2347
+ plan: {},
2348
+ decisions: {},
2349
+ changes: {},
2350
+ failed: { type: Boolean },
2351
+ streaming: { type: Boolean },
2352
+ attachments: {}
2353
+ },
2354
+ setup(__props) {
2355
+ const props = __props;
2356
+ const phases = computed(() => groupActivityPhases(props.steps ?? []));
2357
+ return (_ctx, _cache) => {
2358
+ return openBlock(), createElementBlock("article", {
2359
+ class: "htw:flex htw:gap-2.5 htw:mt-0 htw:mx-0 htw:mb-4.5 htw:group/message htw:last:mb-0",
2360
+ "data-author": __props.author
2361
+ }, [createElementVNode("span", _hoisted_2, [__props.author === "agent" ? (openBlock(), createBlock(AgentLogo_default, {
2362
+ key: 0,
2363
+ icon: __props.icon,
2364
+ size: 16
2365
+ }, null, 8, ["icon"])) : (openBlock(), createBlock(unref(BuiltinIcon), {
2366
+ key: 1,
2367
+ icon: "user-avatar",
2368
+ size: 16
2369
+ }))]), createElementVNode("div", _hoisted_3, [
2370
+ createElementVNode("header", _hoisted_4, [createElementVNode("strong", _hoisted_5, toDisplayString(__props.name), 1), __props.at ? (openBlock(), createElementBlock("time", {
2371
+ key: 0,
2372
+ datetime: __props.at,
2373
+ title: __props.at,
2374
+ class: "htw:text-muted htw:text-[11px]"
2375
+ }, toDisplayString(unref(commentAge)(__props.at)), 9, _hoisted_6)) : createCommentVNode("", true)]),
2376
+ __props.plan?.length ? (openBlock(), createBlock(AgentPlan_default, {
2377
+ key: 0,
2378
+ entries: __props.plan,
2379
+ live: __props.streaming
2380
+ }, null, 8, ["entries", "live"])) : createCommentVNode("", true),
2381
+ phases.value.length ? (openBlock(), createElementBlock("div", _hoisted_7, [(openBlock(true), createElementBlock(Fragment, null, renderList(phases.value, (phase) => {
2382
+ return openBlock(), createBlock(AgentActivityPhase_default, {
2383
+ key: phase.id,
2384
+ phase
2385
+ }, null, 8, ["phase"]);
2386
+ }), 128))])) : createCommentVNode("", true),
2387
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.decisions, (decision, index) => {
2388
+ return openBlock(), createBlock(AgentPlanDecision_default, {
2389
+ key: index,
2390
+ decision
2391
+ }, null, 8, ["decision"]);
2392
+ }), 128)),
2393
+ __props.failed ? (openBlock(), createElementBlock("p", _hoisted_8, [createVNode(unref(BuiltinIcon), {
2394
+ icon: "error-filled",
2395
+ size: 14
2396
+ }), createTextVNode(toDisplayString(__props.body), 1)])) : __props.author === "agent" && __props.body ? (openBlock(), createBlock(AgentMarkdown_default, {
2397
+ key: 3,
2398
+ text: __props.body,
2399
+ streaming: __props.streaming
2400
+ }, null, 8, ["text", "streaming"])) : __props.body ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(__props.body), 1)) : createCommentVNode("", true),
2401
+ __props.attachments?.length ? (openBlock(), createBlock(AttachmentStrip_default, {
2402
+ key: 5,
2403
+ class: "attachments htw:mt-1.5",
2404
+ attachments: __props.attachments,
2405
+ linked: ""
2406
+ }, null, 8, ["attachments"])) : createCommentVNode("", true),
2407
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.changes, (change) => {
2408
+ return openBlock(), createElementBlock("code", {
2409
+ key: change.file,
2410
+ class: "htw:flex htw:items-center htw:flex-wrap htw:gap-1.25 htw:w-fit htw:mt-1.5 htw:py-1.25 htw:px-1.75 htw:rounded-[6px] htw:bg-chip htw:text-[10px] htw:wrap-anywhere"
2411
+ }, [
2412
+ createVNode(unref(BuiltinIcon), {
2413
+ icon: "code",
2414
+ size: 16
2415
+ }),
2416
+ createTextVNode(toDisplayString(change.file) + " ", 1),
2417
+ createElementVNode("span", _hoisted_10, "+" + toDisplayString(change.added), 1),
2418
+ createElementVNode("span", _hoisted_11, "-" + toDisplayString(change.removed), 1)
2419
+ ]);
2420
+ }), 128)),
2421
+ renderSlot(_ctx.$slots, "default")
2422
+ ])], 8, _hoisted_1);
2423
+ };
2424
+ }
2425
+ });
2426
+ export { selectorParts as _, useReplyDrafts as a, AgentPrompt_default as c, commentAge as d, compactSelectorPath as f, propsSummary as g, pinNumbers as h, AgentLiveTail_default as i, agentDisplay as l, isOnCanvas as m, useStickToBottom as n, PLAN_FOLLOW_UP_PLACEHOLDER as o, groupThreads as p, AgentPendingInput_default as r, usePlanFollowUp as s, ThreadMessage_default as t, useCommentDestination as u };