@justanarthur/modo-ui-ai 0.0.0-stage → 0.2.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 +114 -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 +517 -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 +204 -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 +33 -0
  26. package/blocks/dialogs/command-palette/index.tsx +232 -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 +13 -0
  48. package/blocks/panes/usage-pane/index.tsx +75 -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 +18 -0
  52. package/blocks/profiles/profile-switcher/index.tsx +197 -0
  53. package/blocks/profiles/profile-usage/examples.mdx +21 -0
  54. package/blocks/profiles/profile-usage/index.tsx +127 -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 +43 -0
  60. package/blocks/sessions/session-sidebar/index.tsx +442 -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 +30 -0
  82. package/components/conversation/agent-run/index.tsx +82 -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 +128 -0
  87. package/components/conversation/message/working.tsx +102 -0
  88. package/components/conversation/reasoning/examples.mdx +22 -0
  89. package/components/conversation/reasoning/index.tsx +54 -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 +15 -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 +11 -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 +26 -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 +12 -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-1aq2xzv5.js +558 -0
  221. package/dist/shared/chunk-1f96cz69.js +45 -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-4248zvmh.js +177 -0
  226. package/dist/shared/chunk-45rqgey6.d.ts +25 -0
  227. package/dist/shared/chunk-4n0v64qx.js +179 -0
  228. package/dist/shared/chunk-4zvhpf2x.js +55 -0
  229. package/dist/shared/chunk-57hzzmjd.d.ts +67 -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-5k6xwqfj.d.ts +68 -0
  234. package/dist/shared/chunk-5meda998.js +238 -0
  235. package/dist/shared/chunk-5pqksw7z.js +91 -0
  236. package/dist/shared/chunk-6220dy5n.js +70 -0
  237. package/dist/shared/chunk-64bnh22t.d.ts +59 -0
  238. package/dist/shared/chunk-66sh633m.d.ts +60 -0
  239. package/dist/shared/chunk-6cmf27g3.d.ts +81 -0
  240. package/dist/shared/chunk-6g4970a6.d.ts +20 -0
  241. package/dist/shared/chunk-75zwypyr.d.ts +43 -0
  242. package/dist/shared/chunk-7rzjmcnh.d.ts +30 -0
  243. package/dist/shared/chunk-7zvb39cf.d.ts +26 -0
  244. package/dist/shared/chunk-8mecznyr.js +357 -0
  245. package/dist/shared/chunk-8pag6vmd.js +255 -0
  246. package/dist/shared/chunk-8xg5gwwy.js +38 -0
  247. package/dist/shared/chunk-9kw6m047.d.ts +32 -0
  248. package/dist/shared/chunk-a4s440b6.js +79 -0
  249. package/dist/shared/chunk-at0jje23.d.ts +110 -0
  250. package/dist/shared/chunk-awd573h9.js +34 -0
  251. package/dist/shared/chunk-b171wjge.d.ts +25 -0
  252. package/dist/shared/chunk-bh2b5d1z.js +98 -0
  253. package/dist/shared/chunk-bzs6amnv.js +187 -0
  254. package/dist/shared/chunk-c36qvrwq.d.ts +30 -0
  255. package/dist/shared/chunk-c8wp058j.js +153 -0
  256. package/dist/shared/chunk-cd4f87as.d.ts +28 -0
  257. package/dist/shared/chunk-cmwby8f9.js +467 -0
  258. package/dist/shared/chunk-d2t72h4x.d.ts +35 -0
  259. package/dist/shared/chunk-dh3qy5fj.js +49 -0
  260. package/dist/shared/chunk-e46apgve.d.ts +40 -0
  261. package/dist/shared/chunk-ejtknc0w.js +21 -0
  262. package/dist/shared/chunk-eqajdxn8.js +82 -0
  263. package/dist/shared/chunk-fbn0h7cr.js +123 -0
  264. package/dist/shared/chunk-fqhcz6ss.d.ts +29 -0
  265. package/dist/shared/chunk-g28hweee.d.ts +35 -0
  266. package/dist/shared/chunk-g88hweqh.d.ts +70 -0
  267. package/dist/shared/chunk-gewnsgza.js +61 -0
  268. package/dist/shared/chunk-gkyk663q.d.ts +53 -0
  269. package/dist/shared/chunk-hd4gtj5z.d.ts +23 -0
  270. package/dist/shared/chunk-hxjgey30.d.ts +36 -0
  271. package/dist/shared/chunk-jkkdq1mh.d.ts +213 -0
  272. package/dist/shared/chunk-jpq101w3.js +91 -0
  273. package/dist/shared/chunk-k3bv9k1v.d.ts +56 -0
  274. package/dist/shared/chunk-k5zegxje.d.ts +81 -0
  275. package/dist/shared/chunk-kreypnzp.d.ts +34 -0
  276. package/dist/shared/chunk-kw9npka5.js +224 -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-n4742y54.js +39 -0
  280. package/dist/shared/chunk-ndjvdkv7.d.ts +29 -0
  281. package/dist/shared/chunk-nk4578dr.js +73 -0
  282. package/dist/shared/chunk-paezqfg1.js +106 -0
  283. package/dist/shared/chunk-qemm9e3r.d.ts +21 -0
  284. package/dist/shared/chunk-qhxz1etk.js +96 -0
  285. package/dist/shared/chunk-qj5ev9ak.js +531 -0
  286. package/dist/shared/chunk-qnwggvjy.js +150 -0
  287. package/dist/shared/chunk-r5hz78pb.js +129 -0
  288. package/dist/shared/chunk-r6nb21kz.d.ts +102 -0
  289. package/dist/shared/chunk-rjfwje37.d.ts +234 -0
  290. package/dist/shared/chunk-rqrpvvz4.d.ts +107 -0
  291. package/dist/shared/chunk-rzajcn44.d.ts +49 -0
  292. package/dist/shared/chunk-s3r759ec.js +80 -0
  293. package/dist/shared/chunk-sdtjrw9w.d.ts +98 -0
  294. package/dist/shared/chunk-sfqvyzcs.d.ts +68 -0
  295. package/dist/shared/chunk-skg3m9m0.js +56 -0
  296. package/dist/shared/chunk-szkvrqg1.d.ts +54 -0
  297. package/dist/shared/chunk-t21t9x7e.js +188 -0
  298. package/dist/shared/chunk-tc75ng2c.js +235 -0
  299. package/dist/shared/chunk-tkx1krwc.js +88 -0
  300. package/dist/shared/chunk-tprdqtb1.d.ts +30 -0
  301. package/dist/shared/chunk-tv9a1sek.js +137 -0
  302. package/dist/shared/chunk-tvbd27hg.d.ts +43 -0
  303. package/dist/shared/chunk-v6yevw62.d.ts +28 -0
  304. package/dist/shared/chunk-v9q38p0x.js +258 -0
  305. package/dist/shared/chunk-vd59gzzd.js +86 -0
  306. package/dist/shared/chunk-vgh4f3sv.js +118 -0
  307. package/dist/shared/chunk-vjht1zn1.js +391 -0
  308. package/dist/shared/chunk-vsrkb0sp.d.ts +21 -0
  309. package/dist/shared/chunk-w5z8qnf8.js +175 -0
  310. package/dist/shared/chunk-wgvzavx1.js +1488 -0
  311. package/dist/shared/chunk-whsx7yp9.d.ts +37 -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 +74 -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,467 @@
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-kw9npka5.js";
13
+ import {
14
+ ProfileUsage2
15
+ } from "./chunk-fbn0h7cr.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, onOpenSplit }) {
67
+ const Pin = useIcon2("pin");
68
+ const Archive = useIcon2("archive");
69
+ const More = useIcon2("more-vertical");
70
+ const Pencil = useIcon2("pencil");
71
+ const Columns = useIcon2("columns-2");
72
+ const Dot = useIcon2("circle-dot");
73
+ const Branch = useIcon2("git-branch");
74
+ const glyph = STATUS_GLYPH2[session.status];
75
+ const children = session.children ?? [];
76
+ return /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
77
+ collapsible: children.length > 0 ? true : undefined,
78
+ defaultOpen: children.length > 0 ? true : undefined,
79
+ children: [
80
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
81
+ value: session.id,
82
+ icon: glyph,
83
+ status: glyph ? undefined : session.status === "unread" ? "unread" : "idle",
84
+ title: `${session.title} · ${STATUS_LABEL2[session.status]} · ${session.profile}`,
85
+ children: /* @__PURE__ */ jsx("span", {
86
+ className: "truncate",
87
+ children: session.title
88
+ })
89
+ }),
90
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
91
+ children: session.updated
92
+ }),
93
+ /* @__PURE__ */ jsx(Sidebar.MenuActions, {
94
+ showOnHover: true,
95
+ children: [
96
+ reorder && /* @__PURE__ */ jsx(ReorderAction, {}, "reorder"),
97
+ /* @__PURE__ */ jsx(Tooltip, {
98
+ content: session.pinned ? "Unpin" : "Pin",
99
+ side: "top",
100
+ children: /* @__PURE__ */ jsx(Sidebar.MenuAction, {
101
+ "aria-label": session.pinned ? "Unpin" : "Pin",
102
+ children: /* @__PURE__ */ jsx(Pin, {})
103
+ })
104
+ }, "pin"),
105
+ !reorder && /* @__PURE__ */ jsx(Tooltip, {
106
+ content: "Archive",
107
+ side: "top",
108
+ children: /* @__PURE__ */ jsx(Sidebar.MenuAction, {
109
+ "aria-label": "Archive",
110
+ children: /* @__PURE__ */ jsx(Archive, {})
111
+ })
112
+ }, "archive"),
113
+ /* @__PURE__ */ jsxs(DropdownMenu, {
114
+ children: [
115
+ /* @__PURE__ */ jsx(DropdownTrigger, {
116
+ render: /* @__PURE__ */ jsx(Sidebar.MenuAction, {
117
+ "aria-label": "More options",
118
+ children: /* @__PURE__ */ jsx(More, {})
119
+ })
120
+ }),
121
+ /* @__PURE__ */ jsxs(DropdownContent, {
122
+ className: "w-[240px] min-w-0",
123
+ align: "start",
124
+ sideOffset: 4,
125
+ children: [
126
+ /* @__PURE__ */ jsx(MenuItem, {
127
+ index: 0,
128
+ icon: Columns,
129
+ label: "Open in split view",
130
+ onSelect: () => onOpenSplit?.(session.id)
131
+ }),
132
+ /* @__PURE__ */ jsx(MenuItem, {
133
+ index: 1,
134
+ icon: Pencil,
135
+ label: "Rename"
136
+ }),
137
+ /* @__PURE__ */ jsx(MenuItem, {
138
+ index: 2,
139
+ icon: Dot,
140
+ label: "Mark as unread"
141
+ }),
142
+ /* @__PURE__ */ jsx(MenuItem, {
143
+ index: 3,
144
+ icon: Branch,
145
+ label: "Fork into a new session"
146
+ }),
147
+ reorder && /* @__PURE__ */ jsx(MenuItem, {
148
+ index: 4,
149
+ icon: Archive,
150
+ label: "Archive"
151
+ })
152
+ ]
153
+ })
154
+ ]
155
+ }, "more")
156
+ ].filter(Boolean)
157
+ }),
158
+ children.length > 0 && /* @__PURE__ */ jsx(Sidebar.MenuSub, {
159
+ children: children.map((child) => /* @__PURE__ */ jsx(Sidebar.MenuSubItem, {
160
+ children: /* @__PURE__ */ jsx(Sidebar.MenuSubButton, {
161
+ value: child.id,
162
+ icon: STATUS_GLYPH2[child.status] ?? Branch,
163
+ children: child.title
164
+ })
165
+ }, child.id))
166
+ })
167
+ ]
168
+ });
169
+ }
170
+ function SessionFilters({
171
+ pinned,
172
+ groups,
173
+ profiles
174
+ }) {
175
+ const Folder = useIcon2("folder");
176
+ const all = everySession(pinned, groups);
177
+ const count = (match) => all.filter(match).length;
178
+ const projects = groups.filter((g) => g.kind === "project");
179
+ const used = profiles.filter((p) => all.some((s) => s.profile === p.id));
180
+ const icons = useMemo(() => Object.fromEntries(profiles.map((profile) => [profile.id, () => /* @__PURE__ */ jsx(ProfileTile2, {
181
+ profile,
182
+ size: "sm"
183
+ })])), [profiles]);
184
+ return /* @__PURE__ */ jsxs(Fragment, {
185
+ children: [
186
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
187
+ children: [
188
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
189
+ children: "State"
190
+ }),
191
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
192
+ children: STATES.map(({ status, label }) => /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
193
+ children: [
194
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
195
+ value: `state:${status}`,
196
+ icon: STATUS_GLYPH2[status],
197
+ status: STATUS_GLYPH2[status] ? undefined : status === "unread" ? "unread" : "idle",
198
+ children: label
199
+ }),
200
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
201
+ children: count((s) => s.status === status)
202
+ })
203
+ ]
204
+ }, status))
205
+ })
206
+ ]
207
+ }),
208
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
209
+ children: [
210
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
211
+ children: "Projects"
212
+ }),
213
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
214
+ children: projects.map(({ label }) => /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
215
+ children: [
216
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
217
+ value: `project:${label}`,
218
+ icon: Folder,
219
+ children: label
220
+ }),
221
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
222
+ children: count((s) => s.project === label)
223
+ })
224
+ ]
225
+ }, label))
226
+ })
227
+ ]
228
+ }),
229
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
230
+ children: [
231
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
232
+ children: "Profiles"
233
+ }),
234
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
235
+ children: used.map((profile) => /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
236
+ children: [
237
+ /* @__PURE__ */ jsx(Sidebar.MenuButton, {
238
+ value: `profile:${profile.id}`,
239
+ icon: icons[profile.id],
240
+ children: profile.name
241
+ }),
242
+ /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
243
+ children: count((s) => s.profile === profile.id)
244
+ })
245
+ ]
246
+ }, profile.id))
247
+ })
248
+ ]
249
+ })
250
+ ]
251
+ });
252
+ }
253
+ function SessionSidebar2({
254
+ pinned,
255
+ groups,
256
+ archived,
257
+ profiles,
258
+ onPinnedOrderChange,
259
+ list = "sessions",
260
+ value,
261
+ defaultValue,
262
+ onValueChange,
263
+ onOpenSplit,
264
+ onOpenSettings,
265
+ inbox,
266
+ onInboxAction,
267
+ onSearch,
268
+ variant = "inset",
269
+ className
270
+ }) {
271
+ const Plus = useIcon2("plus");
272
+ const Board = useIcon2("layout-dashboard");
273
+ const Settings = useIcon2("settings");
274
+ const Filter = useIcon2("sliders-horizontal");
275
+ const Bell = useIcon2("bell");
276
+ const unread = inbox?.filter((item) => !item.read).length ?? 0;
277
+ const waiting = everySession(pinned, groups).filter((s) => s.status === "waiting").length;
278
+ return /* @__PURE__ */ jsxs(Sidebar, {
279
+ variant,
280
+ className,
281
+ value,
282
+ defaultValue: value === undefined ? defaultValue : undefined,
283
+ onValueChange,
284
+ children: [
285
+ /* @__PURE__ */ jsx(Sidebar.Header, {
286
+ children: /* @__PURE__ */ jsxs("div", {
287
+ className: "flex flex-col gap-0.5",
288
+ children: [
289
+ /* @__PURE__ */ jsxs(Sidebar.Menu, {
290
+ children: [
291
+ /* @__PURE__ */ jsx(Sidebar.MenuItem, {
292
+ children: /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
293
+ icon: Board,
294
+ value: "overview",
295
+ children: [
296
+ "Overview",
297
+ /* @__PURE__ */ jsxs("span", {
298
+ className: "ml-auto text-micro tabular-nums text-muted-foreground",
299
+ children: [
300
+ waiting,
301
+ " need you"
302
+ ]
303
+ })
304
+ ]
305
+ })
306
+ }),
307
+ inbox && /* @__PURE__ */ jsxs(Sidebar.MenuItem, {
308
+ children: [
309
+ /* @__PURE__ */ jsx(inbox_default, {
310
+ items: inbox,
311
+ onAction: onInboxAction,
312
+ side: "right",
313
+ align: "start",
314
+ trigger: /* @__PURE__ */ jsx(Sidebar.MenuButton, {
315
+ icon: Bell,
316
+ "aria-label": unread > 0 ? `Inbox, ${unread} unread` : "Inbox",
317
+ children: "Inbox"
318
+ })
319
+ }),
320
+ unread > 0 && /* @__PURE__ */ jsx(Sidebar.MenuBadge, {
321
+ children: unread
322
+ })
323
+ ]
324
+ }),
325
+ /* @__PURE__ */ jsx(Sidebar.MenuItem, {
326
+ children: /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
327
+ icon: Plus,
328
+ value: "new",
329
+ children: [
330
+ "New session",
331
+ /* @__PURE__ */ jsx(Kbd, {
332
+ variant: "plain",
333
+ className: "ml-auto",
334
+ children: "⌘N"
335
+ })
336
+ ]
337
+ })
338
+ })
339
+ ]
340
+ }),
341
+ /* @__PURE__ */ jsx(SidebarSearchField, {
342
+ placeholder: "Search sessions",
343
+ ...onSearch && {
344
+ readOnly: true,
345
+ onClick: onSearch,
346
+ onKeyDown: (e) => {
347
+ if (e.key === "Enter")
348
+ onSearch();
349
+ }
350
+ }
351
+ })
352
+ ]
353
+ })
354
+ }),
355
+ /* @__PURE__ */ jsxs(Sidebar.Content, {
356
+ className: "before:!content-none after:!content-none",
357
+ children: [
358
+ list === "filters" && /* @__PURE__ */ jsx(SessionFilters, {
359
+ pinned,
360
+ groups,
361
+ profiles
362
+ }),
363
+ list === "sessions" && /* @__PURE__ */ jsxs(Fragment, {
364
+ children: [
365
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
366
+ collapsible: true,
367
+ children: [
368
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
369
+ children: "Pinned"
370
+ }),
371
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
372
+ children: /* @__PURE__ */ jsx(Sortable, {
373
+ as: "none",
374
+ handle: true,
375
+ items: pinned.map((session) => ({
376
+ id: session.id,
377
+ label: session.title,
378
+ content: /* @__PURE__ */ jsx(SessionRow, {
379
+ session,
380
+ reorder: true,
381
+ onOpenSplit
382
+ })
383
+ })),
384
+ onOrderChange: onPinnedOrderChange
385
+ })
386
+ })
387
+ ]
388
+ }),
389
+ groups.map((group) => /* @__PURE__ */ jsxs(Sidebar.Group, {
390
+ collapsible: true,
391
+ children: [
392
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
393
+ children: group.label
394
+ }),
395
+ /* @__PURE__ */ jsx(Sidebar.GroupActions, {
396
+ children: /* @__PURE__ */ jsx(Tooltip, {
397
+ content: group.kind === "project" ? `New session in ${group.label}` : "Filter",
398
+ side: "top",
399
+ children: /* @__PURE__ */ jsx(Sidebar.GroupAction, {
400
+ "aria-label": group.kind === "project" ? `New session in ${group.label}` : "Filter",
401
+ children: group.kind === "project" ? /* @__PURE__ */ jsx(Plus, {}) : /* @__PURE__ */ jsx(Filter, {})
402
+ })
403
+ })
404
+ }),
405
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
406
+ children: group.sessions.map((session) => /* @__PURE__ */ jsx(SessionRow, {
407
+ session,
408
+ onOpenSplit
409
+ }, session.id))
410
+ })
411
+ ]
412
+ }, group.label)),
413
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
414
+ collapsible: true,
415
+ defaultOpen: false,
416
+ children: [
417
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
418
+ children: "Archived"
419
+ }),
420
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
421
+ children: archived.map((session) => /* @__PURE__ */ jsx(SessionRow, {
422
+ session,
423
+ onOpenSplit
424
+ }, session.id))
425
+ })
426
+ ]
427
+ })
428
+ ]
429
+ })
430
+ ]
431
+ }),
432
+ /* @__PURE__ */ jsxs(Sidebar.Footer, {
433
+ children: [
434
+ /* @__PURE__ */ jsxs(Sidebar.Group, {
435
+ collapsible: true,
436
+ children: [
437
+ /* @__PURE__ */ jsx(Sidebar.GroupLabel, {
438
+ children: "Usage"
439
+ }),
440
+ /* @__PURE__ */ jsx(ProfileUsage2, {
441
+ profiles,
442
+ onManage: onOpenSettings
443
+ })
444
+ ]
445
+ }),
446
+ /* @__PURE__ */ jsx(Sidebar.Menu, {
447
+ children: /* @__PURE__ */ jsx(Sidebar.MenuItem, {
448
+ children: /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
449
+ icon: Settings,
450
+ onClick: onOpenSettings,
451
+ children: [
452
+ "Settings",
453
+ /* @__PURE__ */ jsx(Kbd, {
454
+ variant: "plain",
455
+ className: "ml-auto",
456
+ children: "⌘,"
457
+ })
458
+ ]
459
+ })
460
+ })
461
+ })
462
+ ]
463
+ })
464
+ ]
465
+ });
466
+ }
467
+ export { SessionSidebar2 };
@@ -0,0 +1,35 @@
1
+ import { JSX as JSX_1kxb } from "react";
2
+ interface QuestionOption2 {
3
+ /** The answer, also what `onSubmit` reports. */
4
+ label: string;
5
+ /** One line under the label. */
6
+ description?: string;
7
+ /** Shown beside the list while this option is picked: a mockup, a snippet. */
8
+ preview?: string;
9
+ }
10
+ interface QuestionPromptProps2 {
11
+ /** The question. */
12
+ question: string;
13
+ /** Its topic, as a chip: `Layout`, `Auth`. */
14
+ tag?: string;
15
+ /** Two to four options; labels are unique. */
16
+ options: QuestionOption2[];
17
+ /** Pick several. Defaults to `false`. */
18
+ multiSelect?: boolean;
19
+ /** Called with the picked labels and any "Other" text. */
20
+ onSubmit?: (labels: string[], other: string) => void;
21
+ }
22
+ type Element_12xgc = JSX_1kxb["Element"];
23
+ /**
24
+ * A question the agent asks with a few answers to pick from.
25
+ *
26
+ * One answer sits on a Choice list: the pick's background melts between
27
+ * options and the arrow keys move it. With `multiSelect` the options are
28
+ * checkboxes and neighbouring picks melt into one run. Options with a
29
+ * `preview` show the picked one beside the list, dropping below it on a
30
+ * narrow card. An "Other" field takes an answer of your own.
31
+ *
32
+ * @example {@include ./examples.mdx}
33
+ */
34
+ declare function QuestionPrompt2({ question, tag, options, multiSelect, onSubmit }: QuestionPromptProps2): Element_12xgc;
35
+ export { QuestionOption2, QuestionPromptProps2, QuestionPrompt2 };
@@ -0,0 +1,49 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ Section2,
8
+ Group2,
9
+ Toggles2
10
+ } from "./chunk-5meda998.js";
11
+
12
+ // blocks/settings/extensions/index.tsx
13
+ import Button from "@justanarthur/modo-ui/components/actions/button";
14
+ import Switch from "@justanarthur/modo-ui/components/inputs/switch";
15
+ import { jsx } from "react/jsx-runtime";
16
+ /*!
17
+ * Local addition: the settings screen's extensions section — your own
18
+ * panes, commands, actions and hooks, each a switch.
19
+ */
20
+ function Extensions2({ extensions, onNew, onToggle }) {
21
+ const Plus = useIcon2("plus");
22
+ return /* @__PURE__ */ jsx(Section2, {
23
+ title: "Extensions",
24
+ lead: "Your own features: panes, commands, actions and hooks, built as MCP servers, plugins, skills and hooks, so they work in the CLI too.",
25
+ actions: /* @__PURE__ */ jsx(Button, {
26
+ size: "compact",
27
+ leadingIcon: Plus,
28
+ onClick: onNew,
29
+ children: "New extension"
30
+ }),
31
+ children: /* @__PURE__ */ jsx(Group2, {
32
+ title: "Installed",
33
+ aside: /* @__PURE__ */ jsx("span", {
34
+ className: "tabular-nums",
35
+ children: extensions.length
36
+ }),
37
+ children: /* @__PURE__ */ jsx(Toggles2, {
38
+ label: "Extensions",
39
+ children: extensions.map((extension) => /* @__PURE__ */ jsx(Switch, {
40
+ label: extension.name,
41
+ description: `${extension.kind} · ${extension.description} · from ${extension.source}`,
42
+ defaultChecked: extension.enabled,
43
+ onCheckedChange: (enabled) => onToggle?.(extension, enabled)
44
+ }, extension.name))
45
+ })
46
+ })
47
+ });
48
+ }
49
+ export { Extensions2 };
@@ -0,0 +1,40 @@
1
+ import { ReactNode } from "react";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface WorkSummaryProviderProps2 {
4
+ /** Unfold every `WorkSummary` inside; switching it re-folds or re-opens them all. */
5
+ open: boolean;
6
+ /** The conversation. */
7
+ children: ReactNode;
8
+ }
9
+ type Element_12xgc = JSX_1kxb["Element"];
10
+ /** Opens or folds every WorkSummary inside at once: a "show work" toggle. */
11
+ declare function WorkSummaryProvider2({ open, children }: WorkSummaryProviderProps2): Element_12xgc;
12
+ interface WorkSummaryProps2 {
13
+ /** How long the turn worked: `"Worked for 52s"`, `"Working…"`. */
14
+ summary: string;
15
+ /** What it did, in a few words: `"4 tool calls · 1 agent"`. */
16
+ detail?: string;
17
+ /** Still working: the Spinner turns in the row. Defaults to `false`. */
18
+ running?: boolean;
19
+ /** The reasoning, tool calls and agent runs. */
20
+ children: ReactNode;
21
+ }
22
+ /**
23
+ * What an AI did on the way to a reply, folded to one row: "Worked for 52s ·
24
+ * 4 tool calls".
25
+ *
26
+ * The reasoning, tool calls and agent runs of a turn go inside, so the
27
+ * conversation reads as what was asked and what came out. Press the row and
28
+ * the work morphs out of it behind a hairline; while the turn runs, the
29
+ * Spinner turns in the row. Wrap the conversation in a `WorkSummary.Provider`
30
+ * to open or fold every turn's work at once, a "show work" toggle.
31
+ *
32
+ * Statics:
33
+ * - `WorkSummary.Provider` — opens every fold inside: `open`.
34
+ *
35
+ * @example {@include ./examples.mdx}
36
+ */
37
+ declare const WorkSummary2: (({ summary, detail, running, children }: WorkSummaryProps2) => Element_12xgc) & {
38
+ Provider: typeof WorkSummaryProvider2;
39
+ };
40
+ export { WorkSummaryProviderProps2, WorkSummaryProvider2, WorkSummaryProps2, WorkSummary2 };
@@ -0,0 +1,21 @@
1
+ // lib/status-glyph.tsx
2
+ import { statusGlyph } from "@justanarthur/modo-ui/components/feedback/status-dot";
3
+ /*!
4
+ * Local addition: the AI app's session states on the design system's status
5
+ * glyphs (see StatusDot): running turns, waiting is the warning dot, unread
6
+ * and idle use the Sidebar's own dots, so only those two map here.
7
+ */
8
+ var RunningGlyph2 = statusGlyph("running");
9
+ var WaitingGlyph2 = statusGlyph("waiting");
10
+ var STATUS_GLYPH2 = {
11
+ running: RunningGlyph2,
12
+ waiting: WaitingGlyph2
13
+ };
14
+ var STATUS_LABEL2 = {
15
+ running: "Running",
16
+ waiting: "Needs your input",
17
+ unread: "Unread",
18
+ idle: "Idle"
19
+ };
20
+
21
+ export { RunningGlyph2, WaitingGlyph2, STATUS_GLYPH2, STATUS_LABEL2 };
@@ -0,0 +1,82 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+
7
+ // lib/pane-parts.tsx
8
+ import Button from "@justanarthur/modo-ui/components/actions/button";
9
+ import EmptyState from "@justanarthur/modo-ui/components/feedback/empty-state";
10
+ import Tooltip from "@justanarthur/modo-ui/components/overlays/tooltip";
11
+ import { useId } from "react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ /*!
14
+ * Local addition: the side pane's shared language. PaneSection is a
15
+ * caption-sized title, its meta and icon actions on one row, the rows under
16
+ * it on the control height with their own 8px inset; IconAction is an
17
+ * icon-only ghost button with its label as a tooltip; PaneEmpty is what a
18
+ * pane shows with nothing in it.
19
+ */
20
+ function PaneSection2({
21
+ title,
22
+ meta,
23
+ actions,
24
+ children
25
+ }) {
26
+ const id = useId();
27
+ return /* @__PURE__ */ jsxs("section", {
28
+ "aria-labelledby": id,
29
+ className: "flex flex-col",
30
+ children: [
31
+ /* @__PURE__ */ jsxs("div", {
32
+ className: "flex h-9 items-center gap-2 px-2 text-caption text-muted-foreground",
33
+ children: [
34
+ /* @__PURE__ */ jsx("span", {
35
+ id,
36
+ className: "min-w-0 truncate weight-medium text-foreground",
37
+ children: title
38
+ }),
39
+ meta && /* @__PURE__ */ jsx("span", {
40
+ className: "min-w-0 truncate tabular-nums",
41
+ children: meta
42
+ }),
43
+ actions && /* @__PURE__ */ jsx("div", {
44
+ className: "-mr-1 ml-auto flex shrink-0 items-center gap-0.5",
45
+ children: actions
46
+ })
47
+ ]
48
+ }),
49
+ children
50
+ ]
51
+ });
52
+ }
53
+ function IconAction2({
54
+ icon: Icon,
55
+ label,
56
+ pressed,
57
+ onClick
58
+ }) {
59
+ return /* @__PURE__ */ jsx(Tooltip, {
60
+ content: label,
61
+ side: "bottom",
62
+ children: /* @__PURE__ */ jsx(Button, {
63
+ variant: "ghost",
64
+ size: "icon-compact",
65
+ "aria-label": label,
66
+ "aria-pressed": pressed,
67
+ active: pressed,
68
+ onClick,
69
+ children: /* @__PURE__ */ jsx(Icon, {})
70
+ })
71
+ });
72
+ }
73
+ function PaneEmpty2({ icon, title, detail }) {
74
+ return /* @__PURE__ */ jsx(EmptyState, {
75
+ size: "compact",
76
+ icon: useIcon2(icon),
77
+ title,
78
+ description: detail
79
+ });
80
+ }
81
+
82
+ export { PaneSection2, IconAction2, PaneEmpty2 };