@justanarthur/modo-ui-ai 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.fluid-functionalism +21 -0
  3. package/README.md +105 -2
  4. package/blocks/conversation/agent-prompt/examples.mdx +44 -0
  5. package/blocks/conversation/agent-prompt/index.tsx +114 -0
  6. package/blocks/conversation/composer/draft.css +25 -0
  7. package/blocks/conversation/composer/draft.tsx +589 -0
  8. package/blocks/conversation/composer/examples.mdx +164 -0
  9. package/blocks/conversation/composer/file-preview-tile.tsx +59 -0
  10. package/blocks/conversation/composer/file-thumbnail.tsx +146 -0
  11. package/blocks/conversation/composer/index.tsx +651 -0
  12. package/blocks/conversation/composer/queued-row.tsx +102 -0
  13. package/blocks/conversation/composer/shared.ts +38 -0
  14. package/blocks/conversation/composer/suggestion-row.tsx +64 -0
  15. package/blocks/conversation/composer/use-composer-files.ts +142 -0
  16. package/blocks/conversation/composer/use-history-nav.ts +60 -0
  17. package/blocks/conversation/composer/use-message-queue.ts +108 -0
  18. package/blocks/conversation/composer/use-region-height.ts +34 -0
  19. package/blocks/conversation/failure-states/examples.mdx +58 -0
  20. package/blocks/conversation/failure-states/index.tsx +274 -0
  21. package/blocks/conversation/transcript/examples.mdx +43 -0
  22. package/blocks/conversation/transcript/index.tsx +206 -0
  23. package/blocks/conversation/transcript-search/examples.mdx +50 -0
  24. package/blocks/conversation/transcript-search/index.tsx +469 -0
  25. package/blocks/dialogs/command-palette/examples.mdx +50 -0
  26. package/blocks/dialogs/command-palette/index.tsx +239 -0
  27. package/blocks/dialogs/hook-dialog/examples.mdx +44 -0
  28. package/blocks/dialogs/hook-dialog/index.tsx +286 -0
  29. package/blocks/dialogs/mcp-server-dialog/examples.mdx +57 -0
  30. package/blocks/dialogs/mcp-server-dialog/index.tsx +415 -0
  31. package/blocks/dialogs/shortcuts-sheet/examples.mdx +36 -0
  32. package/blocks/dialogs/shortcuts-sheet/index.tsx +186 -0
  33. package/blocks/panes/artifacts-pane/examples.mdx +23 -0
  34. package/blocks/panes/artifacts-pane/index.tsx +82 -0
  35. package/blocks/panes/changes-pane/examples.mdx +23 -0
  36. package/blocks/panes/changes-pane/index.tsx +248 -0
  37. package/blocks/panes/file-pane/examples.mdx +13 -0
  38. package/blocks/panes/file-pane/index.tsx +102 -0
  39. package/blocks/panes/pr-pane/examples.mdx +13 -0
  40. package/blocks/panes/pr-pane/index.tsx +191 -0
  41. package/blocks/panes/side-pane/examples.mdx +58 -0
  42. package/blocks/panes/side-pane/index.tsx +187 -0
  43. package/blocks/panes/tasks-pane/examples.mdx +23 -0
  44. package/blocks/panes/tasks-pane/index.tsx +127 -0
  45. package/blocks/panes/terminal-pane/examples.mdx +13 -0
  46. package/blocks/panes/terminal-pane/index.tsx +99 -0
  47. package/blocks/panes/usage-pane/examples.mdx +23 -0
  48. package/blocks/panes/usage-pane/index.tsx +78 -0
  49. package/blocks/profiles/profile-onboarding/examples.mdx +80 -0
  50. package/blocks/profiles/profile-onboarding/index.tsx +580 -0
  51. package/blocks/profiles/profile-switcher/examples.mdx +29 -0
  52. package/blocks/profiles/profile-switcher/index.tsx +212 -0
  53. package/blocks/profiles/profile-usage/examples.mdx +41 -0
  54. package/blocks/profiles/profile-usage/index.tsx +141 -0
  55. package/blocks/sessions/inbox/examples.mdx +35 -0
  56. package/blocks/sessions/inbox/index.tsx +372 -0
  57. package/blocks/sessions/session-board/examples.mdx +34 -0
  58. package/blocks/sessions/session-board/index.tsx +570 -0
  59. package/blocks/sessions/session-sidebar/examples.mdx +93 -0
  60. package/blocks/sessions/session-sidebar/index.tsx +497 -0
  61. package/blocks/settings/extensions/examples.mdx +10 -0
  62. package/blocks/settings/extensions/index.tsx +72 -0
  63. package/blocks/settings/hooks/examples.mdx +16 -0
  64. package/blocks/settings/hooks/index.tsx +127 -0
  65. package/blocks/settings/mcp-servers/examples.mdx +26 -0
  66. package/blocks/settings/mcp-servers/index.tsx +204 -0
  67. package/blocks/settings/memory/examples.mdx +22 -0
  68. package/blocks/settings/memory/index.tsx +113 -0
  69. package/blocks/settings/notifications/examples.mdx +8 -0
  70. package/blocks/settings/notifications/index.tsx +63 -0
  71. package/blocks/settings/permission-rules/examples.mdx +37 -0
  72. package/blocks/settings/permission-rules/index.tsx +317 -0
  73. package/blocks/settings/plugin-catalog/examples.mdx +52 -0
  74. package/blocks/settings/plugin-catalog/index.tsx +407 -0
  75. package/blocks/settings/plugins/examples.mdx +10 -0
  76. package/blocks/settings/plugins/index.tsx +72 -0
  77. package/blocks/settings/settings-window/examples.mdx +40 -0
  78. package/blocks/settings/settings-window/index.tsx +188 -0
  79. package/blocks/settings/worktrees/examples.mdx +17 -0
  80. package/blocks/settings/worktrees/index.tsx +145 -0
  81. package/components/conversation/agent-run/examples.mdx +38 -0
  82. package/components/conversation/agent-run/index.tsx +83 -0
  83. package/components/conversation/chapter-nav/examples.mdx +30 -0
  84. package/components/conversation/chapter-nav/index.tsx +123 -0
  85. package/components/conversation/message/examples.mdx +53 -0
  86. package/components/conversation/message/index.tsx +130 -0
  87. package/components/conversation/message/working.tsx +102 -0
  88. package/components/conversation/reasoning/examples.mdx +32 -0
  89. package/components/conversation/reasoning/index.tsx +55 -0
  90. package/components/conversation/recap/examples.mdx +21 -0
  91. package/components/conversation/recap/index.tsx +67 -0
  92. package/components/conversation/todo-list/examples.mdx +32 -0
  93. package/components/conversation/todo-list/index.tsx +106 -0
  94. package/components/conversation/tool-call/examples.mdx +48 -0
  95. package/components/conversation/tool-call/index.tsx +142 -0
  96. package/components/conversation/work-summary/examples.mdx +50 -0
  97. package/components/conversation/work-summary/index.tsx +87 -0
  98. package/components/prompts/permission-request/examples.mdx +32 -0
  99. package/components/prompts/permission-request/index.tsx +74 -0
  100. package/components/prompts/plan-approval/examples.mdx +37 -0
  101. package/components/prompts/plan-approval/index.tsx +76 -0
  102. package/components/prompts/prompt-card/examples.mdx +31 -0
  103. package/components/prompts/prompt-card/index.tsx +82 -0
  104. package/components/prompts/question-prompt/examples.mdx +46 -0
  105. package/components/prompts/question-prompt/index.tsx +118 -0
  106. package/dist/blocks/conversation/agent-prompt/index.d.ts +7 -0
  107. package/dist/blocks/conversation/agent-prompt/index.js +13 -0
  108. package/dist/blocks/conversation/composer/index.d.ts +4 -0
  109. package/dist/blocks/conversation/composer/index.js +16 -0
  110. package/dist/blocks/conversation/failure-states/index.d.ts +4 -0
  111. package/dist/blocks/conversation/failure-states/index.js +8 -0
  112. package/dist/blocks/conversation/transcript/index.d.ts +50 -0
  113. package/dist/blocks/conversation/transcript/index.js +17 -0
  114. package/dist/blocks/conversation/transcript-search/index.d.ts +4 -0
  115. package/dist/blocks/conversation/transcript-search/index.js +11 -0
  116. package/dist/blocks/dialogs/command-palette/index.d.ts +5 -0
  117. package/dist/blocks/dialogs/command-palette/index.js +20 -0
  118. package/dist/blocks/dialogs/hook-dialog/index.d.ts +3 -0
  119. package/dist/blocks/dialogs/hook-dialog/index.js +12 -0
  120. package/dist/blocks/dialogs/mcp-server-dialog/index.d.ts +5 -0
  121. package/dist/blocks/dialogs/mcp-server-dialog/index.js +12 -0
  122. package/dist/blocks/dialogs/shortcuts-sheet/index.d.ts +2 -0
  123. package/dist/blocks/dialogs/shortcuts-sheet/index.js +11 -0
  124. package/dist/blocks/panes/artifacts-pane/index.d.ts +3 -0
  125. package/dist/blocks/panes/artifacts-pane/index.js +9 -0
  126. package/dist/blocks/panes/changes-pane/index.d.ts +3 -0
  127. package/dist/blocks/panes/changes-pane/index.js +9 -0
  128. package/dist/blocks/panes/file-pane/index.d.ts +3 -0
  129. package/dist/blocks/panes/file-pane/index.js +9 -0
  130. package/dist/blocks/panes/pr-pane/index.d.ts +3 -0
  131. package/dist/blocks/panes/pr-pane/index.js +10 -0
  132. package/dist/blocks/panes/side-pane/index.d.ts +5 -0
  133. package/dist/blocks/panes/side-pane/index.js +21 -0
  134. package/dist/blocks/panes/tasks-pane/index.d.ts +3 -0
  135. package/dist/blocks/panes/tasks-pane/index.js +10 -0
  136. package/dist/blocks/panes/terminal-pane/index.d.ts +3 -0
  137. package/dist/blocks/panes/terminal-pane/index.js +9 -0
  138. package/dist/blocks/panes/usage-pane/index.d.ts +4 -0
  139. package/dist/blocks/panes/usage-pane/index.js +11 -0
  140. package/dist/blocks/profiles/profile-onboarding/index.d.ts +4 -0
  141. package/dist/blocks/profiles/profile-onboarding/index.js +11 -0
  142. package/dist/blocks/profiles/profile-switcher/index.d.ts +4 -0
  143. package/dist/blocks/profiles/profile-switcher/index.js +12 -0
  144. package/dist/blocks/profiles/profile-usage/index.d.ts +4 -0
  145. package/dist/blocks/profiles/profile-usage/index.js +10 -0
  146. package/dist/blocks/sessions/inbox/index.d.ts +2 -0
  147. package/dist/blocks/sessions/inbox/index.js +11 -0
  148. package/dist/blocks/sessions/session-board/index.d.ts +4 -0
  149. package/dist/blocks/sessions/session-board/index.js +27 -0
  150. package/dist/blocks/sessions/session-sidebar/index.d.ts +5 -0
  151. package/dist/blocks/sessions/session-sidebar/index.js +15 -0
  152. package/dist/blocks/settings/extensions/index.d.ts +2 -0
  153. package/dist/blocks/settings/extensions/index.js +9 -0
  154. package/dist/blocks/settings/hooks/index.d.ts +4 -0
  155. package/dist/blocks/settings/hooks/index.js +9 -0
  156. package/dist/blocks/settings/mcp-servers/index.d.ts +4 -0
  157. package/dist/blocks/settings/mcp-servers/index.js +9 -0
  158. package/dist/blocks/settings/memory/index.d.ts +4 -0
  159. package/dist/blocks/settings/memory/index.js +8 -0
  160. package/dist/blocks/settings/notifications/index.d.ts +2 -0
  161. package/dist/blocks/settings/notifications/index.js +8 -0
  162. package/dist/blocks/settings/permission-rules/index.d.ts +3 -0
  163. package/dist/blocks/settings/permission-rules/index.js +10 -0
  164. package/dist/blocks/settings/plugin-catalog/index.d.ts +2 -0
  165. package/dist/blocks/settings/plugin-catalog/index.js +11 -0
  166. package/dist/blocks/settings/plugins/index.d.ts +4 -0
  167. package/dist/blocks/settings/plugins/index.js +9 -0
  168. package/dist/blocks/settings/settings-window/index.d.ts +4 -0
  169. package/dist/blocks/settings/settings-window/index.js +8 -0
  170. package/dist/blocks/settings/worktrees/index.d.ts +4 -0
  171. package/dist/blocks/settings/worktrees/index.js +9 -0
  172. package/dist/components/conversation/agent-run/index.d.ts +3 -0
  173. package/dist/components/conversation/agent-run/index.js +10 -0
  174. package/dist/components/conversation/chapter-nav/index.d.ts +2 -0
  175. package/dist/components/conversation/chapter-nav/index.js +11 -0
  176. package/dist/components/conversation/message/index.d.ts +2 -0
  177. package/dist/components/conversation/message/index.js +15 -0
  178. package/dist/components/conversation/reasoning/index.d.ts +2 -0
  179. package/dist/components/conversation/reasoning/index.js +8 -0
  180. package/dist/components/conversation/recap/index.d.ts +2 -0
  181. package/dist/components/conversation/recap/index.js +9 -0
  182. package/dist/components/conversation/todo-list/index.d.ts +2 -0
  183. package/dist/components/conversation/todo-list/index.js +9 -0
  184. package/dist/components/conversation/tool-call/index.d.ts +3 -0
  185. package/dist/components/conversation/tool-call/index.js +13 -0
  186. package/dist/components/conversation/work-summary/index.d.ts +2 -0
  187. package/dist/components/conversation/work-summary/index.js +10 -0
  188. package/dist/components/prompts/permission-request/index.d.ts +2 -0
  189. package/dist/components/prompts/permission-request/index.js +9 -0
  190. package/dist/components/prompts/plan-approval/index.d.ts +2 -0
  191. package/dist/components/prompts/plan-approval/index.js +9 -0
  192. package/dist/components/prompts/prompt-card/index.d.ts +3 -0
  193. package/dist/components/prompts/prompt-card/index.js +8 -0
  194. package/dist/components/prompts/question-prompt/index.d.ts +2 -0
  195. package/dist/components/prompts/question-prompt/index.js +9 -0
  196. package/dist/index.d.ts +50 -0
  197. package/dist/index.js +231 -0
  198. package/dist/lib/config-parts.d.ts +2 -0
  199. package/dist/lib/config-parts.js +16 -0
  200. package/dist/lib/icons.d.ts +2 -0
  201. package/dist/lib/icons.js +10 -0
  202. package/dist/lib/pace-bar.d.ts +11 -0
  203. package/dist/lib/pace-bar.js +6 -0
  204. package/dist/lib/pace.d.ts +4 -0
  205. package/dist/lib/pace.js +14 -0
  206. package/dist/lib/pane-parts.d.ts +25 -0
  207. package/dist/lib/pane-parts.js +11 -0
  208. package/dist/lib/row-trigger.d.ts +5 -0
  209. package/dist/lib/row-trigger.js +7 -0
  210. package/dist/lib/settings-parts.d.ts +70 -0
  211. package/dist/lib/settings-parts.js +24 -0
  212. package/dist/lib/side-pane-types.d.ts +2 -0
  213. package/dist/lib/side-pane-types.js +1 -0
  214. package/dist/lib/status-glyph.d.ts +8 -0
  215. package/dist/lib/status-glyph.js +12 -0
  216. package/dist/lib/types.d.ts +3 -0
  217. package/dist/lib/types.js +1 -0
  218. package/dist/shared/chunk-04a497rr.js +21 -0
  219. package/dist/shared/chunk-13yf0mza.d.ts +70 -0
  220. package/dist/shared/chunk-1hzrm8r5.d.ts +51 -0
  221. package/dist/shared/chunk-1qdwg7w5.d.ts +81 -0
  222. package/dist/shared/chunk-1yt061np.d.ts +64 -0
  223. package/dist/shared/chunk-218qabm5.js +250 -0
  224. package/dist/shared/chunk-2fk5aq60.js +313 -0
  225. package/dist/shared/chunk-3ps5h55t.d.ts +30 -0
  226. package/dist/shared/chunk-3yaftgh0.d.ts +28 -0
  227. package/dist/shared/chunk-4zvhpf2x.js +55 -0
  228. package/dist/shared/chunk-57hzzmjd.d.ts +67 -0
  229. package/dist/shared/chunk-58jh3mje.js +46 -0
  230. package/dist/shared/chunk-58qvny6a.d.ts +29 -0
  231. package/dist/shared/chunk-5fhkkn39.js +130 -0
  232. package/dist/shared/chunk-5hw0525a.d.ts +33 -0
  233. package/dist/shared/chunk-5meda998.js +238 -0
  234. package/dist/shared/chunk-5pqksw7z.js +91 -0
  235. package/dist/shared/chunk-6220dy5n.js +70 -0
  236. package/dist/shared/chunk-64bnh22t.d.ts +59 -0
  237. package/dist/shared/chunk-66sh633m.d.ts +60 -0
  238. package/dist/shared/chunk-6cmf27g3.d.ts +81 -0
  239. package/dist/shared/chunk-6kwk9vag.js +558 -0
  240. package/dist/shared/chunk-6rdwkymk.js +177 -0
  241. package/dist/shared/chunk-71j8qzvb.d.ts +57 -0
  242. package/dist/shared/chunk-74bvf3tw.d.ts +21 -0
  243. package/dist/shared/chunk-75zwypyr.d.ts +43 -0
  244. package/dist/shared/chunk-7mfer3tp.js +176 -0
  245. package/dist/shared/chunk-7rzjmcnh.d.ts +30 -0
  246. package/dist/shared/chunk-7zvb39cf.d.ts +26 -0
  247. package/dist/shared/chunk-8mecznyr.js +357 -0
  248. package/dist/shared/chunk-8pag6vmd.js +255 -0
  249. package/dist/shared/chunk-94grzz9f.js +187 -0
  250. package/dist/shared/chunk-9kw6m047.d.ts +32 -0
  251. package/dist/shared/chunk-at0jje23.d.ts +110 -0
  252. package/dist/shared/chunk-awd573h9.js +34 -0
  253. package/dist/shared/chunk-b171wjge.d.ts +25 -0
  254. package/dist/shared/chunk-b4dz15em.d.ts +36 -0
  255. package/dist/shared/chunk-b5ccp5de.js +35 -0
  256. package/dist/shared/chunk-bh2b5d1z.js +98 -0
  257. package/dist/shared/chunk-c36qvrwq.d.ts +30 -0
  258. package/dist/shared/chunk-c8wp058j.js +153 -0
  259. package/dist/shared/chunk-d2t72h4x.d.ts +35 -0
  260. package/dist/shared/chunk-dh3qy5fj.js +49 -0
  261. package/dist/shared/chunk-dxzrtvt9.d.ts +283 -0
  262. package/dist/shared/chunk-e46apgve.d.ts +40 -0
  263. package/dist/shared/chunk-ejtknc0w.js +21 -0
  264. package/dist/shared/chunk-eqajdxn8.js +82 -0
  265. package/dist/shared/chunk-fapc805j.js +130 -0
  266. package/dist/shared/chunk-fm1qyrae.d.ts +68 -0
  267. package/dist/shared/chunk-fqhcz6ss.d.ts +29 -0
  268. package/dist/shared/chunk-g88hweqh.d.ts +70 -0
  269. package/dist/shared/chunk-gb5ee5dw.d.ts +88 -0
  270. package/dist/shared/chunk-gewnsgza.js +61 -0
  271. package/dist/shared/chunk-hxjgey30.d.ts +36 -0
  272. package/dist/shared/chunk-jkkdq1mh.d.ts +213 -0
  273. package/dist/shared/chunk-jpq101w3.js +91 -0
  274. package/dist/shared/chunk-k3bv9k1v.d.ts +56 -0
  275. package/dist/shared/chunk-kreypnzp.d.ts +34 -0
  276. package/dist/shared/chunk-mnzw0bav.js +80 -0
  277. package/dist/shared/chunk-mrb3fp2f.d.ts +30 -0
  278. package/dist/shared/chunk-n1qq2wp9.js +6 -0
  279. package/dist/shared/chunk-n31qwnj2.js +1544 -0
  280. package/dist/shared/chunk-n4742y54.js +39 -0
  281. package/dist/shared/chunk-ndjvdkv7.d.ts +29 -0
  282. package/dist/shared/chunk-njf851p1.js +245 -0
  283. package/dist/shared/chunk-nk4578dr.js +73 -0
  284. package/dist/shared/chunk-nkbgg7bw.d.ts +24 -0
  285. package/dist/shared/chunk-nvh33x9x.js +488 -0
  286. package/dist/shared/chunk-paezqfg1.js +106 -0
  287. package/dist/shared/chunk-qemm9e3r.d.ts +21 -0
  288. package/dist/shared/chunk-qhxz1etk.js +96 -0
  289. package/dist/shared/chunk-qj5ev9ak.js +531 -0
  290. package/dist/shared/chunk-qnwggvjy.js +150 -0
  291. package/dist/shared/chunk-qt31n444.js +178 -0
  292. package/dist/shared/chunk-r5hz78pb.js +129 -0
  293. package/dist/shared/chunk-r6nb21kz.d.ts +102 -0
  294. package/dist/shared/chunk-rqrpvvz4.d.ts +107 -0
  295. package/dist/shared/chunk-s3r759ec.js +80 -0
  296. package/dist/shared/chunk-sdtjrw9w.d.ts +98 -0
  297. package/dist/shared/chunk-skg3m9m0.js +56 -0
  298. package/dist/shared/chunk-t21t9x7e.js +188 -0
  299. package/dist/shared/chunk-tc75ng2c.js +235 -0
  300. package/dist/shared/chunk-tkx1krwc.js +88 -0
  301. package/dist/shared/chunk-tprdqtb1.d.ts +30 -0
  302. package/dist/shared/chunk-tv9a1sek.js +137 -0
  303. package/dist/shared/chunk-tvbd27hg.d.ts +43 -0
  304. package/dist/shared/chunk-ty2ccknv.d.ts +54 -0
  305. package/dist/shared/chunk-v6yevw62.d.ts +28 -0
  306. package/dist/shared/chunk-v9q38p0x.js +258 -0
  307. package/dist/shared/chunk-vgh4f3sv.js +118 -0
  308. package/dist/shared/chunk-vjht1zn1.js +391 -0
  309. package/dist/shared/chunk-vsrkb0sp.d.ts +21 -0
  310. package/dist/shared/chunk-whsx7yp9.d.ts +37 -0
  311. package/dist/shared/chunk-wq9h37gy.js +86 -0
  312. package/dist/shared/chunk-x7az5x1y.d.ts +57 -0
  313. package/dist/shared/chunk-x9jf26yb.js +318 -0
  314. package/dist/shared/chunk-xbrrt07s.d.ts +23 -0
  315. package/dist/shared/chunk-xkchhs2z.js +129 -0
  316. package/dist/shared/chunk-xzfrskd7.js +202 -0
  317. package/dist/shared/chunk-y4cj4y54.js +423 -0
  318. package/dist/shared/chunk-y934at6m.js +7 -0
  319. package/dist/shared/chunk-zbpwhpjy.d.ts +75 -0
  320. package/dist/shared/chunk-zfhmbb7n.js +63 -0
  321. package/dist/shared/chunk-zk0t4vq5.js +71 -0
  322. package/dist/shared/chunk-znp9gna7.d.ts +23 -0
  323. package/dist/styles.css +467 -0
  324. package/index.ts +49 -0
  325. package/lib/config-parts.tsx +97 -0
  326. package/lib/icons.tsx +149 -0
  327. package/lib/pace-bar.tsx +24 -0
  328. package/lib/pace.ts +78 -0
  329. package/lib/pane-parts.tsx +76 -0
  330. package/lib/row-trigger.tsx +44 -0
  331. package/lib/settings-parts.tsx +232 -0
  332. package/lib/side-pane-types.ts +75 -0
  333. package/lib/status-glyph.tsx +25 -0
  334. package/lib/types.ts +204 -0
  335. package/mock/demo-reply.tsx +33 -0
  336. package/mock/demo-session.tsx +150 -0
  337. package/mock/mock-config.ts +173 -0
  338. package/mock/mock-extras.ts +288 -0
  339. package/mock/mock-panes.ts +190 -0
  340. package/mock/mock-settings.ts +92 -0
  341. package/mock/mock.ts +548 -0
  342. package/mock/screen-frame.tsx +49 -0
  343. package/package.json +114 -4
@@ -0,0 +1,488 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ STATUS_GLYPH2,
8
+ STATUS_LABEL2
9
+ } from "./chunk-ejtknc0w.js";
10
+ import {
11
+ ProfileTile2
12
+ } from "./chunk-njf851p1.js";
13
+ import {
14
+ ProfileUsage2
15
+ } from "./chunk-fapc805j.js";
16
+ import {
17
+ inbox_default
18
+ } from "./chunk-x9jf26yb.js";
19
+
20
+ // blocks/sessions/session-sidebar/index.tsx
21
+ import { SidebarSearchField } from "@justanarthur/modo-ui/blocks/sidebar-app";
22
+ import Kbd from "@justanarthur/modo-ui/components/data-display/kbd";
23
+ import Sidebar from "@justanarthur/modo-ui/components/navigation/sidebar";
24
+ import {
25
+ DropdownContent,
26
+ DropdownMenu,
27
+ DropdownTrigger,
28
+ MenuItem
29
+ } from "@justanarthur/modo-ui/components/overlays/dropdown";
30
+ import Tooltip from "@justanarthur/modo-ui/components/overlays/tooltip";
31
+ import Sortable, { useSortableHandle } from "@justanarthur/modo-ui/primitives/layout/sortable";
32
+ import { useMemo } from "react";
33
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
34
+ /*!
35
+ * Local addition: the AI app's sessions sidebar, composed on Sidebar
36
+ * the way the SidebarApp block is: the profile switcher, a "New session" row
37
+ * and search in the header; pinned sessions, project groups and the user's
38
+ * own sections, an archive; and a settings row in the footer. A session row
39
+ * shows its run state (running, needs input, unread, idle), its last activity
40
+ * and, on hover, pin, archive and a row menu with "Open in split view".
41
+ * Linked child sessions fold under their parent. On the overview the list
42
+ * gives way to filters for its board (state, project, profile).
43
+ */
44
+ var STATES = [
45
+ { status: "waiting", label: "Needs you" },
46
+ { status: "running", label: "Running" },
47
+ { status: "unread", label: "To review" },
48
+ { status: "idle", label: "Idle" }
49
+ ];
50
+ function everySession(pinned, groups) {
51
+ const withChildren = (s, project) => [s, ...s.children ?? []].map((c) => ({ ...c, project: s.project ?? project }));
52
+ return [
53
+ ...pinned.flatMap((s) => withChildren(s)),
54
+ ...groups.flatMap((g) => g.sessions.flatMap((s) => withChildren(s, g.label)))
55
+ ];
56
+ }
57
+ function ReorderAction() {
58
+ const Grip = useIcon2("grip-vertical");
59
+ const handle = useSortableHandle();
60
+ return /* @__PURE__ */ jsx(Sidebar.MenuAction, {
61
+ ...handle,
62
+ className: "cursor-grab touch-none active:cursor-grabbing",
63
+ children: /* @__PURE__ */ jsx(Grip, {})
64
+ });
65
+ }
66
+ function SessionRow({ session, reorder, archived = false, actions }) {
67
+ const { onOpenSplit, onPin, onArchive, onRename, onMarkUnread, onFork } = actions;
68
+ const Pin = useIcon2("pin");
69
+ const Archive = useIcon2("archive");
70
+ const More = useIcon2("more-vertical");
71
+ const Pencil = useIcon2("pencil");
72
+ const Columns = useIcon2("columns-2");
73
+ const Dot = useIcon2("circle-dot");
74
+ const Branch = useIcon2("git-branch");
75
+ const glyph = STATUS_GLYPH2[session.status];
76
+ const children = session.children ?? [];
77
+ const pinLabel = session.pinned ? "Unpin" : "Pin";
78
+ const archiveLabel = archived ? "Unarchive" : "Archive";
79
+ const menu = [
80
+ onOpenSplit && /* @__PURE__ */ jsx(MenuItem, {
81
+ icon: Columns,
82
+ label: "Open in split view",
83
+ onSelect: () => onOpenSplit(session.id)
84
+ }, "split"),
85
+ onRename && /* @__PURE__ */ jsx(MenuItem, {
86
+ icon: Pencil,
87
+ label: "Rename",
88
+ onSelect: () => onRename(session.id)
89
+ }, "rename"),
90
+ onMarkUnread && session.status !== "unread" && /* @__PURE__ */ jsx(MenuItem, {
91
+ icon: Dot,
92
+ label: "Mark as unread",
93
+ onSelect: () => onMarkUnread(session.id)
94
+ }, "unread"),
95
+ onFork && /* @__PURE__ */ jsx(MenuItem, {
96
+ icon: Branch,
97
+ label: "Fork into a new session",
98
+ onSelect: () => onFork(session.id)
99
+ }, "fork"),
100
+ reorder && onArchive && /* @__PURE__ */ jsx(MenuItem, {
101
+ icon: Archive,
102
+ label: archiveLabel,
103
+ onSelect: () => onArchive(session.id, !archived)
104
+ }, "archive")
105
+ ].filter(Boolean);
106
+ const cluster = [
107
+ reorder && /* @__PURE__ */ jsx(ReorderAction, {}, "reorder"),
108
+ onPin && /* @__PURE__ */ jsx(Tooltip, {
109
+ content: pinLabel,
110
+ side: "top",
111
+ children: /* @__PURE__ */ jsx(Sidebar.MenuAction, {
112
+ "aria-label": pinLabel,
113
+ onClick: () => onPin(session.id, !session.pinned),
114
+ children: /* @__PURE__ */ jsx(Pin, {})
115
+ })
116
+ }, "pin"),
117
+ !reorder && onArchive && /* @__PURE__ */ jsx(Tooltip, {
118
+ content: archiveLabel,
119
+ side: "top",
120
+ children: /* @__PURE__ */ jsx(Sidebar.MenuAction, {
121
+ "aria-label": archiveLabel,
122
+ onClick: () => onArchive(session.id, !archived),
123
+ children: /* @__PURE__ */ jsx(Archive, {})
124
+ })
125
+ }, "archive"),
126
+ menu.length > 0 && /* @__PURE__ */ jsxs(DropdownMenu, {
127
+ children: [
128
+ /* @__PURE__ */ jsx(DropdownTrigger, {
129
+ render: /* @__PURE__ */ jsx(Sidebar.MenuAction, {
130
+ "aria-label": "More options",
131
+ children: /* @__PURE__ */ jsx(More, {})
132
+ })
133
+ }),
134
+ /* @__PURE__ */ jsx(DropdownContent, {
135
+ className: "w-[240px] min-w-0",
136
+ align: "start",
137
+ sideOffset: 4,
138
+ children: menu
139
+ })
140
+ ]
141
+ }, "more")
142
+ ].filter(Boolean);
143
+ return /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
144
+ collapsible: children.length > 0 ? true : undefined,
145
+ defaultOpen: children.length > 0 ? true : undefined,
146
+ children: [
147
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
148
+ value: session.id,
149
+ icon: glyph,
150
+ status: glyph ? undefined : session.status === "unread" ? "unread" : "idle",
151
+ title: `${session.title} · ${STATUS_LABEL2[session.status]} · ${session.profile}`,
152
+ children: /* @__PURE__ */ jsx("span", {
153
+ className: "truncate",
154
+ children: session.title
155
+ })
156
+ }),
157
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
158
+ children: session.updated
159
+ }),
160
+ cluster.length > 0 && /* @__PURE__ */ jsx(Sidebar.MenuActions, {
161
+ showOnHover: true,
162
+ children: cluster
163
+ }),
164
+ children.length > 0 && /* @__PURE__ */ jsx(Sidebar.MenuSub, {
165
+ children: children.map((child) => /* @__PURE__ */ jsx(Sidebar.MenuSubItem, {
166
+ children: /* @__PURE__ */ jsx(Sidebar.MenuSubButton, {
167
+ value: child.id,
168
+ icon: STATUS_GLYPH2[child.status] ?? Branch,
169
+ children: child.title
170
+ })
171
+ }, child.id))
172
+ })
173
+ ]
174
+ });
175
+ }
176
+ function SessionFilters({
177
+ pinned,
178
+ groups,
179
+ profiles
180
+ }) {
181
+ const Folder = useIcon2("folder");
182
+ const all = everySession(pinned, groups);
183
+ const count = (match) => all.filter(match).length;
184
+ const projects = groups.filter((g) => g.kind === "project");
185
+ const used = profiles.filter((p) => all.some((s) => s.profile === p.id));
186
+ const icons = useMemo(() => Object.fromEntries(profiles.map((profile) => [profile.id, () => /* @__PURE__ */ jsx(ProfileTile2, {
187
+ profile,
188
+ size: "sm"
189
+ })])), [profiles]);
190
+ return /* @__PURE__ */ jsxs(Fragment, {
191
+ children: [
192
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
193
+ children: [
194
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
195
+ children: "State"
196
+ }),
197
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
198
+ children: STATES.map(({ status, label }) => /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
199
+ children: [
200
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
201
+ value: `state:${status}`,
202
+ icon: STATUS_GLYPH2[status],
203
+ status: STATUS_GLYPH2[status] ? undefined : status === "unread" ? "unread" : "idle",
204
+ children: label
205
+ }),
206
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
207
+ children: count((s) => s.status === status)
208
+ })
209
+ ]
210
+ }, status))
211
+ })
212
+ ]
213
+ }),
214
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
215
+ children: [
216
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
217
+ children: "Projects"
218
+ }),
219
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
220
+ children: projects.map(({ label }) => /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
221
+ children: [
222
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
223
+ value: `project:${label}`,
224
+ icon: Folder,
225
+ children: label
226
+ }),
227
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
228
+ children: count((s) => s.project === label)
229
+ })
230
+ ]
231
+ }, label))
232
+ })
233
+ ]
234
+ }),
235
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
236
+ children: [
237
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
238
+ children: "Profiles"
239
+ }),
240
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
241
+ children: used.map((profile) => /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
242
+ children: [
243
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
244
+ value: `profile:${profile.id}`,
245
+ icon: icons[profile.id],
246
+ children: profile.name
247
+ }),
248
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
249
+ children: count((s) => s.profile === profile.id)
250
+ })
251
+ ]
252
+ }, profile.id))
253
+ })
254
+ ]
255
+ })
256
+ ]
257
+ });
258
+ }
259
+ function SessionSidebar2({
260
+ pinned,
261
+ groups,
262
+ archived,
263
+ profiles,
264
+ onPinnedOrderChange,
265
+ list = "sessions",
266
+ value,
267
+ defaultValue,
268
+ onValueChange,
269
+ onOpenSplit,
270
+ onPin,
271
+ onArchive,
272
+ onRename,
273
+ onMarkUnread,
274
+ onFork,
275
+ onNewSessionIn,
276
+ onFilterSection,
277
+ onOpenSettings,
278
+ inbox,
279
+ onInboxAction,
280
+ onSearch,
281
+ variant = "inset",
282
+ className
283
+ }) {
284
+ const Plus = useIcon2("plus");
285
+ const Board = useIcon2("layout-dashboard");
286
+ const Settings = useIcon2("settings");
287
+ const Filter = useIcon2("sliders-horizontal");
288
+ const Bell = useIcon2("bell");
289
+ const unread = inbox?.filter((item) => !item.read).length ?? 0;
290
+ const waiting = everySession(pinned, groups).filter((s) => s.status === "waiting").length;
291
+ const actions = { onOpenSplit, onPin, onArchive, onRename, onMarkUnread, onFork };
292
+ return /* @__PURE__ */ jsxs(Sidebar, {
293
+ variant,
294
+ className,
295
+ value,
296
+ defaultValue: value === undefined ? defaultValue : undefined,
297
+ onValueChange,
298
+ children: [
299
+ /* @__PURE__ */ jsx(Sidebar.Header, {
300
+ children: /* @__PURE__ */ jsxs("div", {
301
+ className: "flex flex-col gap-0.5",
302
+ children: [
303
+ /* @__PURE__ */ jsxs(Sidebar.Menu, {
304
+ children: [
305
+ /* @__PURE__ */ jsx(Sidebar.MenuItem, {
306
+ children: /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
307
+ icon: Board,
308
+ value: "overview",
309
+ children: [
310
+ "Overview",
311
+ /* @__PURE__ */ jsxs("span", {
312
+ className: "ml-auto text-micro tabular-nums text-muted-foreground",
313
+ children: [
314
+ waiting,
315
+ " need you"
316
+ ]
317
+ })
318
+ ]
319
+ })
320
+ }),
321
+ inbox && /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
322
+ children: [
323
+ /* @__PURE__ */ jsx(inbox_default, {
324
+ items: inbox,
325
+ onAction: onInboxAction,
326
+ side: "right",
327
+ align: "start",
328
+ trigger: /* @__PURE__ */ jsx(Sidebar.MenuButton, {
329
+ icon: Bell,
330
+ "aria-label": unread > 0 ? `Inbox, ${unread} unread` : "Inbox",
331
+ children: "Inbox"
332
+ })
333
+ }),
334
+ unread > 0 && /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
335
+ children: unread
336
+ })
337
+ ]
338
+ }),
339
+ /* @__PURE__ */ jsx(Sidebar.MenuItem, {
340
+ children: /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
341
+ icon: Plus,
342
+ value: "new",
343
+ children: [
344
+ "New session",
345
+ /* @__PURE__ */ jsx(Kbd, {
346
+ variant: "plain",
347
+ className: "ml-auto",
348
+ children: "⌘N"
349
+ })
350
+ ]
351
+ })
352
+ })
353
+ ]
354
+ }),
355
+ /* @__PURE__ */ jsx(SidebarSearchField, {
356
+ placeholder: "Search sessions",
357
+ ...onSearch && {
358
+ readOnly: true,
359
+ onClick: onSearch,
360
+ onKeyDown: (e) => {
361
+ if (e.key === "Enter")
362
+ onSearch();
363
+ }
364
+ }
365
+ })
366
+ ]
367
+ })
368
+ }),
369
+ /* @__PURE__ */ jsxs(Sidebar.Content, {
370
+ className: "before:!content-none after:!content-none",
371
+ children: [
372
+ list === "filters" && /* @__PURE__ */ jsx(SessionFilters, {
373
+ pinned,
374
+ groups,
375
+ profiles
376
+ }),
377
+ list === "sessions" && /* @__PURE__ */ jsxs(Fragment, {
378
+ children: [
379
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
380
+ collapsible: true,
381
+ children: [
382
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
383
+ children: "Pinned"
384
+ }),
385
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
386
+ children: /* @__PURE__ */ jsx(Sortable, {
387
+ as: "none",
388
+ handle: true,
389
+ items: pinned.map((session) => ({
390
+ id: session.id,
391
+ label: session.title,
392
+ content: /* @__PURE__ */ jsx(SessionRow, {
393
+ session,
394
+ reorder: true,
395
+ actions
396
+ })
397
+ })),
398
+ onOrderChange: onPinnedOrderChange
399
+ })
400
+ })
401
+ ]
402
+ }),
403
+ groups.map((group) => {
404
+ const isProject = group.kind === "project";
405
+ const onAction = isProject ? onNewSessionIn : onFilterSection;
406
+ const label = isProject ? `New session in ${group.label}` : "Filter";
407
+ return /* @__PURE__ */ jsxs(Sidebar.Group, {
408
+ collapsible: true,
409
+ children: [
410
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
411
+ children: group.label
412
+ }),
413
+ onAction && /* @__PURE__ */ jsx(Sidebar.GroupActions, {
414
+ children: /* @__PURE__ */ jsx(Tooltip, {
415
+ content: label,
416
+ side: "top",
417
+ children: /* @__PURE__ */ jsx(Sidebar.GroupAction, {
418
+ "aria-label": label,
419
+ onClick: () => onAction(group),
420
+ children: isProject ? /* @__PURE__ */ jsx(Plus, {}) : /* @__PURE__ */ jsx(Filter, {})
421
+ })
422
+ })
423
+ }),
424
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
425
+ children: group.sessions.map((session) => /* @__PURE__ */ jsx(SessionRow, {
426
+ session,
427
+ actions
428
+ }, session.id))
429
+ })
430
+ ]
431
+ }, group.label);
432
+ }),
433
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
434
+ collapsible: true,
435
+ defaultOpen: false,
436
+ children: [
437
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
438
+ children: "Archived"
439
+ }),
440
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
441
+ children: archived.map((session) => /* @__PURE__ */ jsx(SessionRow, {
442
+ session,
443
+ archived: true,
444
+ actions
445
+ }, session.id))
446
+ })
447
+ ]
448
+ })
449
+ ]
450
+ })
451
+ ]
452
+ }),
453
+ /* @__PURE__ */ jsxs(Sidebar.Footer, {
454
+ children: [
455
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
456
+ collapsible: true,
457
+ children: [
458
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
459
+ children: "Usage"
460
+ }),
461
+ /* @__PURE__ */ jsx(ProfileUsage2, {
462
+ profiles,
463
+ onManage: onOpenSettings
464
+ })
465
+ ]
466
+ }),
467
+ onOpenSettings && /* @__PURE__ */ jsx(Sidebar.Menu, {
468
+ children: /* @__PURE__ */ jsx(Sidebar.MenuItem, {
469
+ children: /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
470
+ icon: Settings,
471
+ onClick: onOpenSettings,
472
+ children: [
473
+ "Settings",
474
+ /* @__PURE__ */ jsx(Kbd, {
475
+ variant: "plain",
476
+ className: "ml-auto",
477
+ children: "⌘,"
478
+ })
479
+ ]
480
+ })
481
+ })
482
+ })
483
+ ]
484
+ })
485
+ ]
486
+ });
487
+ }
488
+ export { SessionSidebar2 };
@@ -0,0 +1,106 @@
1
+ "use client";
2
+
3
+ import {
4
+ PromptCard2
5
+ } from "./chunk-zk0t4vq5.js";
6
+
7
+ // components/prompts/question-prompt/index.tsx
8
+ import Button from "@justanarthur/modo-ui/components/actions/button";
9
+ import Checkbox from "@justanarthur/modo-ui/components/inputs/checkbox";
10
+ import ChoiceList from "@justanarthur/modo-ui/components/inputs/choice-list";
11
+ import Input from "@justanarthur/modo-ui/components/inputs/input";
12
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
13
+ import Code from "@justanarthur/modo-ui/primitives/content/code";
14
+ import { useState } from "react";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ /*!
17
+ * Local addition (not part of Fluid Functionalism): an agent asks you to pick
18
+ * — one answer or several, an optional preview per option beside the list,
19
+ * and a free-text "Other".
20
+ */
21
+ function OptionContent({ option }) {
22
+ return /* @__PURE__ */ jsxs("span", {
23
+ className: "flex min-w-0 flex-col",
24
+ children: [
25
+ /* @__PURE__ */ jsx("span", {
26
+ className: "text-body text-foreground",
27
+ children: option.label
28
+ }),
29
+ option.description && /* @__PURE__ */ jsx("span", {
30
+ className: "text-caption text-muted-foreground",
31
+ children: option.description
32
+ })
33
+ ]
34
+ });
35
+ }
36
+ function QuestionPrompt2({ question, tag, options, multiSelect = false, onSubmit }) {
37
+ const [picked, setPicked] = useState(options[0]?.label ?? "");
38
+ const [checked, setChecked] = useState(new Set);
39
+ const [other, setOther] = useState("");
40
+ const preview = options.find((o) => o.label === picked)?.preview;
41
+ const hasPreviews = options.some((o) => o.preview);
42
+ const list = multiSelect ? /* @__PURE__ */ jsx(Checkbox.Group, {
43
+ checkedIndices: checked,
44
+ onCheckedIndicesChange: setChecked,
45
+ className: "w-full",
46
+ children: options.map((option) => /* @__PURE__ */ jsx(Checkbox, {
47
+ label: option.label
48
+ }, option.label))
49
+ }) : /* @__PURE__ */ jsx(ChoiceList, {
50
+ label: question,
51
+ value: picked,
52
+ onValueChange: setPicked,
53
+ options: options.map((option) => ({
54
+ value: option.label,
55
+ label: option.label,
56
+ content: /* @__PURE__ */ jsx(OptionContent, {
57
+ option
58
+ })
59
+ }))
60
+ });
61
+ const submit = () => onSubmit?.(multiSelect ? options.filter((_, i) => checked.has(i)).map((o) => o.label) : [picked], other);
62
+ return /* @__PURE__ */ jsx(PromptCard2, {
63
+ icon: "message-circle",
64
+ title: question,
65
+ tag,
66
+ hint: multiSelect ? "Pick any" : "↑↓ to move",
67
+ actions: /* @__PURE__ */ jsx(Button, {
68
+ size: "compact",
69
+ onClick: submit,
70
+ children: "Submit"
71
+ }),
72
+ children: /* @__PURE__ */ jsxs("div", {
73
+ className: cn("grid gap-3", hasPreviews && "@container"),
74
+ children: [
75
+ /* @__PURE__ */ jsxs("div", {
76
+ className: cn("grid gap-3", hasPreviews && "@lg:grid-cols-[minmax(0,1fr)_minmax(0,1.2fr)]"),
77
+ children: [
78
+ /* @__PURE__ */ jsx("div", {
79
+ className: cn("flex min-w-0 flex-col gap-1", multiSelect ? "-mx-3" : "-mx-2"),
80
+ children: list
81
+ }),
82
+ hasPreviews && /* @__PURE__ */ jsxs("div", {
83
+ className: "flex min-w-0 flex-col gap-1.5",
84
+ children: [
85
+ /* @__PURE__ */ jsx("span", {
86
+ className: "text-caption text-muted-foreground",
87
+ children: "Preview"
88
+ }),
89
+ /* @__PURE__ */ jsx(Code, {
90
+ language: "plaintext",
91
+ children: preview ?? "No preview for this option."
92
+ })
93
+ ]
94
+ })
95
+ ]
96
+ }),
97
+ /* @__PURE__ */ jsx(Input, {
98
+ placeholder: "Other: type your own answer",
99
+ value: other,
100
+ onValueChange: setOther
101
+ })
102
+ ]
103
+ })
104
+ });
105
+ }
106
+ export { QuestionPrompt2 };
@@ -0,0 +1,21 @@
1
+ import { PaneArtifact2 } from "./chunk-66sh633m.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface ArtifactsPaneProps2 {
4
+ /** What Claude made in this session, newest first. */
5
+ artifacts: PaneArtifact2[];
6
+ /** Called with the artifact a press opens. */
7
+ onOpen?: (artifact: PaneArtifact2) => void;
8
+ }
9
+ type Element_12xgc = JSX_1kxb["Element"];
10
+ /**
11
+ * The pages, documents, dashboards and diagrams Claude made in this
12
+ * session, newest first.
13
+ *
14
+ * Each row shows the artifact's kind as its glyph and in words, and when it
15
+ * last changed; one fluid hover runs along the rows and a press opens one.
16
+ * With none yet, the pane says what lands there.
17
+ *
18
+ * @example {@include ./examples.mdx}
19
+ */
20
+ declare function ArtifactsPane2({ artifacts, onOpen }: ArtifactsPaneProps2): Element_12xgc;
21
+ export { ArtifactsPaneProps2, ArtifactsPane2 };