@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,129 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ PaneSection2,
8
+ IconAction2,
9
+ PaneEmpty2
10
+ } from "./chunk-eqajdxn8.js";
11
+ import {
12
+ RunningGlyph2
13
+ } from "./chunk-ejtknc0w.js";
14
+
15
+ // blocks/panes/tasks-pane/index.tsx
16
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
17
+ import { useState } from "react";
18
+ import { jsx, jsxs } from "react/jsx-runtime";
19
+ /*!
20
+ * Local addition: the side pane's Tasks — the session's background agents,
21
+ * shells and child sessions, running ones first.
22
+ */
23
+ var TASK_KIND_ICON = { agent: "bot", shell: "terminal", session: "split" };
24
+ function TaskRow({ task, onStop, onRetry }) {
25
+ const Icon = useIcon2(TASK_KIND_ICON[task.kind]);
26
+ const Failed = useIcon2("circle-x");
27
+ const Done = useIcon2("circle-check");
28
+ const Stop = useIcon2("square");
29
+ const Retry = useIcon2("rotate-ccw");
30
+ const running = task.status === "running";
31
+ return /* @__PURE__ */ jsxs("li", {
32
+ className: "flex min-h-11 items-center gap-2 px-2 py-1",
33
+ children: [
34
+ /* @__PURE__ */ jsx(Icon, {
35
+ size: 16,
36
+ strokeWidth: 1.5,
37
+ className: "shrink-0 text-muted-foreground"
38
+ }),
39
+ /* @__PURE__ */ jsxs("span", {
40
+ className: "flex min-w-0 flex-1 flex-col",
41
+ children: [
42
+ /* @__PURE__ */ jsx("span", {
43
+ className: "truncate text-body text-foreground",
44
+ children: task.title
45
+ }),
46
+ /* @__PURE__ */ jsx("span", {
47
+ className: cn("truncate text-caption", task.status === "failed" ? "text-status-error" : "text-muted-foreground"),
48
+ children: task.status === "stopped" ? `Stopped · ${task.detail}` : task.detail
49
+ })
50
+ ]
51
+ }),
52
+ /* @__PURE__ */ jsxs("span", {
53
+ className: "flex size-4 shrink-0 items-center justify-center",
54
+ children: [
55
+ running && /* @__PURE__ */ jsx(RunningGlyph2, {
56
+ size: 14
57
+ }),
58
+ task.status === "done" && /* @__PURE__ */ jsx(Done, {
59
+ size: 14,
60
+ strokeWidth: 1.5,
61
+ className: "text-muted-foreground"
62
+ }),
63
+ task.status === "failed" && /* @__PURE__ */ jsx(Failed, {
64
+ size: 14,
65
+ strokeWidth: 1.5,
66
+ className: "text-status-error"
67
+ })
68
+ ]
69
+ }),
70
+ /* @__PURE__ */ jsxs("span", {
71
+ className: "flex w-7 shrink-0 justify-center",
72
+ children: [
73
+ running && /* @__PURE__ */ jsx(IconAction2, {
74
+ icon: Stop,
75
+ label: "Stop",
76
+ onClick: onStop
77
+ }),
78
+ (task.status === "failed" || task.status === "stopped") && /* @__PURE__ */ jsx(IconAction2, {
79
+ icon: Retry,
80
+ label: "Retry",
81
+ onClick: onRetry
82
+ })
83
+ ]
84
+ })
85
+ ]
86
+ });
87
+ }
88
+ function TasksPane2({ tasks, onStop, onRetry }) {
89
+ const [list, setList] = useState(tasks);
90
+ const setStatus = (id, status) => setList((l) => l.map((t) => t.id === id ? { ...t, status } : t));
91
+ const running = list.filter((t) => t.status === "running");
92
+ const finished = list.filter((t) => t.status !== "running");
93
+ if (list.length === 0)
94
+ return /* @__PURE__ */ jsx(PaneEmpty2, {
95
+ icon: "list-checks",
96
+ title: "No background tasks",
97
+ detail: "Subagents, shells and child sessions run here."
98
+ });
99
+ const rows = (items) => /* @__PURE__ */ jsx("ul", {
100
+ className: "m-0 flex list-none flex-col p-0",
101
+ children: items.map((task) => /* @__PURE__ */ jsx(TaskRow, {
102
+ task,
103
+ onStop: () => {
104
+ setStatus(task.id, "stopped");
105
+ onStop?.(task);
106
+ },
107
+ onRetry: () => {
108
+ setStatus(task.id, "running");
109
+ onRetry?.(task);
110
+ }
111
+ }, task.id))
112
+ });
113
+ return /* @__PURE__ */ jsxs("div", {
114
+ className: "flex flex-col gap-2",
115
+ children: [
116
+ running.length > 0 && /* @__PURE__ */ jsx(PaneSection2, {
117
+ title: "Running",
118
+ meta: running.length,
119
+ children: rows(running)
120
+ }),
121
+ finished.length > 0 && /* @__PURE__ */ jsx(PaneSection2, {
122
+ title: "Finished",
123
+ meta: finished.length,
124
+ children: rows(finished)
125
+ })
126
+ ]
127
+ });
128
+ }
129
+ export { TasksPane2 };
@@ -0,0 +1,102 @@
1
+ import { ConfigScope2 } from "./chunk-whsx7yp9.js";
2
+ import { Profile2 } from "./chunk-jkkdq1mh.js";
3
+ import { KeyValuePair } from "@justanarthur/modo-ui/components/inputs/key-value";
4
+ import { ReactElement } from "react";
5
+ import { JSX as JSX_1kxb } from "react";
6
+ type McpTransport2 = "stdio" | "http" | "sse";
7
+ /** An MCP server as the form writes it. */
8
+ interface McpServerConfig2 {
9
+ name: string;
10
+ transport: McpTransport2;
11
+ /** The executable a stdio server runs. */
12
+ command: string;
13
+ /** Its arguments, one word each. */
14
+ args: string[];
15
+ /** Env vars passed to a stdio server. */
16
+ env: KeyValuePair[];
17
+ /** Where an http or sse server answers. */
18
+ url: string;
19
+ /** Headers sent to an http or sse server. */
20
+ headers: KeyValuePair[];
21
+ scope: ConfigScope2;
22
+ /** Ids of the profiles whose sessions load it. */
23
+ profiles: string[];
24
+ }
25
+ /** Where the connection test stands; the app runs it and reports back. */
26
+ interface McpConnectionTest2 {
27
+ state: "idle" | "testing" | "ok" | "failed";
28
+ /** The tools the server listed, once it answered. */
29
+ tools?: string[];
30
+ /** Why it failed: the tail of its stderr or the HTTP error. */
31
+ error?: string;
32
+ }
33
+ interface McpServerDialogPanelProps2 {
34
+ /** What the form starts with; a server with a name is being edited. Defaults to an empty stdio server. */
35
+ defaultServer?: Partial<McpServerConfig2>;
36
+ /** The profiles it can apply to. Defaults to `[]`. */
37
+ profiles?: Profile2[];
38
+ /** Server names already taken, so a clash is caught before saving. Defaults to `[]`. */
39
+ taken?: string[];
40
+ /** Where the connection test stands. Defaults to idle. */
41
+ test?: McpConnectionTest2;
42
+ /** Called with what the form holds when "Test connection" is pressed: run the test here. */
43
+ onTest?: (server: McpServerConfig2) => void;
44
+ /** Called with the server when Save is pressed. */
45
+ onSave?: (server: McpServerConfig2) => void;
46
+ /** Called with the server when Delete is pressed; leave it out and no Delete shows. */
47
+ onDelete?: (server: McpServerConfig2) => void;
48
+ /** Called when Cancel is pressed; leave it out and no Cancel shows. */
49
+ onCancel?: () => void;
50
+ /** Classes for the root. */
51
+ className?: string;
52
+ }
53
+ type Element_12xgc = JSX_1kxb["Element"];
54
+ /** The form without the Dialog: for a settings page, or the docs. */
55
+ declare function McpServerDialogPanel2({ defaultServer, profiles, taken, test, onTest, onSave, onDelete, onCancel, className }: McpServerDialogPanelProps2): Element_12xgc;
56
+ interface McpServerDialogProps2 {
57
+ /** The control that opens it, such as the MCP section's "Add server" button. */
58
+ trigger?: ReactElement;
59
+ /** Controlled open state. */
60
+ open?: boolean;
61
+ /** Initial open state, for an uncontrolled dialog. Defaults to `false`. */
62
+ defaultOpen?: boolean;
63
+ /** Called when the dialog opens or closes. */
64
+ onOpenChange?: (open: boolean) => void;
65
+ /** What the form starts with; a server with a name is being edited. Defaults to an empty stdio server. */
66
+ defaultServer?: Partial<McpServerConfig2>;
67
+ /** The profiles it can apply to. Defaults to `[]`. */
68
+ profiles?: Profile2[];
69
+ /** Server names already taken, so a clash is caught before saving. Defaults to `[]`. */
70
+ taken?: string[];
71
+ /** Where the connection test stands. Defaults to idle. */
72
+ test?: McpConnectionTest2;
73
+ /** Called with what the form holds when "Test connection" is pressed: run the test here. */
74
+ onTest?: (server: McpServerConfig2) => void;
75
+ /** Called with the server when Save is pressed; the dialog closes. */
76
+ onSave?: (server: McpServerConfig2) => void;
77
+ /** Called with the server when Delete is pressed; the dialog closes. Leave it out and no Delete shows. */
78
+ onDelete?: (server: McpServerConfig2) => void;
79
+ }
80
+ /**
81
+ * Adds or edits an MCP server: how the sessions reach it, where it is
82
+ * configured and who loads it.
83
+ *
84
+ * Pick the transport and the form follows it: a stdio server takes a
85
+ * command, its arguments and env vars (values masked, the eye shows one);
86
+ * an http or sse server takes a URL and headers. The scope says which file
87
+ * it lands in (your config dir, the repo, or the repo's local file) and the
88
+ * profiles which sessions load it. "Test connection" hands the form to
89
+ * `onTest`; the app connects and reports back through `test`: connecting,
90
+ * the tools it listed, or the error. Save waits for a name and a command
91
+ * or URL. The dialog grows out of its trigger; `McpServerDialog.Panel` is
92
+ * the same form without it.
93
+ *
94
+ * Statics:
95
+ * - `McpServerDialog.Panel` — the form on its own: the same props, minus the dialog's, plus `onCancel`.
96
+ *
97
+ * @example {@include ./examples.mdx}
98
+ */
99
+ declare const McpServerDialog2: (({ trigger, open, defaultOpen, onOpenChange, onSave, onDelete,...panel }: McpServerDialogProps2) => Element_12xgc) & {
100
+ Panel: typeof McpServerDialogPanel2;
101
+ };
102
+ export { McpTransport2, McpServerConfig2, McpConnectionTest2, McpServerDialogPanelProps2, McpServerDialogPanel2, McpServerDialogProps2, McpServerDialog2 };
@@ -0,0 +1,234 @@
1
+ import { Profile2, Project2, Model2, PermissionMode2, Command2 } from "./chunk-jkkdq1mh.js";
2
+ import { SizeVariant } from "@justanarthur/modo-ui/lib/size-context";
3
+ import { HTMLAttributes, TextareaHTMLAttributes } from "react";
4
+ import { ReactNode } from "react";
5
+ type DraftStatus2 = "idle" | "streaming";
6
+ interface DraftSlotContext2 {
7
+ /** Opens the native file picker. Pass `acceptOverride` (e.g. `"image/*"`) to narrow the accepted types for this one invocation. */
8
+ openFilePicker: (acceptOverride?: string) => void;
9
+ /** Currently-attached files. */
10
+ files: File[];
11
+ }
12
+ type DraftSlot = ReactNode | ((ctx: DraftSlotContext2) => ReactNode);
13
+ /** A message held in the queue while the assistant is responding: the trimmed text and the files attached when it was queued, so editing restores both. `id` is minted on enqueue. */
14
+ interface QueuedMessage2 {
15
+ id: string;
16
+ text: string;
17
+ files: File[];
18
+ }
19
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn } from "react";
20
+ import { RefAttributes as RefAttributes_miuf56 } from "react";
21
+ interface ComposerDraftProps2 extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
22
+ /** Step on the size ladder (see Sizes). Wins over the surrounding SizeProvider and propagates to the composer's rows, buttons and queued messages. */
23
+ size?: SizeVariant;
24
+ /** Controlled textarea value. Pair with `onValueChange`; omit both for an uncontrolled composer. */
25
+ value?: string;
26
+ /** Initial textarea value for an uncontrolled composer. Defaults to `""`. */
27
+ defaultValue?: string;
28
+ /** Called with the new value on every textarea change. */
29
+ onValueChange?: (value: string) => void;
30
+ /** Fires on Enter (without Shift) or send-button click, and when a queued message auto-dispatches. Receives the trimmed value, the attached files, and — for auto-dispatched queue items — `meta.queuedId`. Skipped when the value is empty and no files are attached. */
31
+ onSend?: (value: string, files: File[], meta?: {
32
+ queuedId?: string;
33
+ }) => void;
34
+ /** Placeholder shown when the value is empty. While a file is dragged over the component (and attachments are enabled) it swaps to "Drop files here to add to chat". Defaults to `"Ask me anything…"`. */
35
+ placeholder?: string;
36
+ /** Content rendered in the bottom-left action area. May be a render-fn that receives `{ openFilePicker, files }` — `openFilePicker(acceptOverride?)` opens the native file picker. */
37
+ leftSlot?: DraftSlot;
38
+ /** Content rendered in the bottom-right action area, before the built-in send button. Same render-fn shape as `leftSlot`. */
39
+ rightSlot?: DraftSlot;
40
+ /** Disables the textarea, send button, and drag-and-drop. Defaults to `false`. */
41
+ disabled?: boolean;
42
+ /** Minimum visible rows before the textarea grows. Defaults to 1. */
43
+ minRows?: number;
44
+ /** Maximum visible rows before the textarea starts to scroll. Defaults to 8. */
45
+ maxRows?: number;
46
+ /** When true, clicking anywhere on the surrounding container (outside of buttons / links / inputs) focuses the textarea. Defaults to `true`. */
47
+ clickToFocus?: boolean;
48
+ /** Accessible label for the send button. Defaults to `"Send"`. */
49
+ sendLabel?: string;
50
+ /** Controlled list of attached files. Pair with `onFilesChange` to enable drag-and-drop and the file-picker slot helper. */
51
+ files?: File[];
52
+ /** Initial attachments for an uncontrolled composer. Providing it (even as `[]`) enables attachment behavior on its own. */
53
+ defaultFiles?: File[];
54
+ /** Called when files are added (drag-drop or picker) or removed via the preview tile's × button. Duplicate drops of the same file (same name + size + lastModified) are silently de-duplicated. */
55
+ onFilesChange?: (files: File[]) => void;
56
+ /** Accepted MIME types as a comma-separated string. Used by both the file picker and the drag-and-drop filter. Defaults to `"image/png,image/jpeg,application/pdf"`. */
57
+ accept?: string;
58
+ /** Maximum number of attached files. Extra files beyond this limit are dropped. */
59
+ maxFiles?: number;
60
+ /** Side length (in pixels) of each preview tile. Images use object-cover; PDFs render the first page via pdfjs (an optional peer: without `pdfjs-dist` they show the file icon); other types fall back to a centered icon. Defaults to 80. */
61
+ filePreviewSize?: number;
62
+ /** Extra props forwarded to the underlying textarea (value, onChange, onKeyDown, disabled and placeholder are controlled by the component). */
63
+ textareaProps?: Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onKeyDown" | "disabled" | "placeholder">;
64
+ /** Assistant response state. When `"streaming"`, the send button becomes a Stop control (empty draft) or a Queue action (non-empty draft). On the streaming→idle edge the next queued message auto-dispatches via `onSend`. Leave it and `defaultStatus` undefined for the send-immediately behavior. */
65
+ status?: DraftStatus2;
66
+ /** Initial status for an uncontrolled composer — the component then owns the streaming flag, and Stop flips it to `"idle"` itself. */
67
+ defaultStatus?: DraftStatus2;
68
+ /** Called whenever the status changes while it is uncontrolled (currently: the Stop control). */
69
+ onStatusChange?: (status: DraftStatus2) => void;
70
+ /** Fires when the Stop control is pressed (streaming + empty draft). Halt the current response and set status to `"idle"` — that edge immediately dispatches the next queued message. */
71
+ onStop?: () => void;
72
+ /** Controlled queue of pending messages, rendered as reorderable rows above the textarea. Double-click (or Enter/F2) edits a row back into the composer; the × (or Delete) removes it; drag — or Alt+↑/↓ — reorders. Requires a status. */
73
+ queue?: QueuedMessage2[];
74
+ /** Initial queue for an uncontrolled composer. Providing it (even as `[]`) enables the queue on its own, alongside `status` or `defaultStatus`. */
75
+ defaultQueue?: QueuedMessage2[];
76
+ /** Called whenever the queue changes — enqueue, edit, delete, reorder, or auto-dispatch. Each QueuedMessage is `{ id, text, files }`. */
77
+ onQueueChange?: (queue: QueuedMessage2[]) => void;
78
+ /** Render the built-in reorderable queue rows above the textarea. Set to false to suppress them and render the queue yourself — enqueue and auto-dispatch still run. Defaults to `true`. */
79
+ showQueue?: boolean;
80
+ /** Previously-sent messages, oldest first. With the textarea focused, ArrowUp (caret on the first line) recalls the previous message and walks backward; ArrowDown (caret on the last line) walks forward toward the in-progress draft. Editing or sending exits history mode. Defaults to `[]`. */
81
+ history?: string[];
82
+ /** Suggested prompt rendered as the placeholder (with a Tab keycap) while the draft is empty. Pressing Tab fills it into the composer — it doesn't send. Takes precedence over `placeholder`. */
83
+ placeholderSuggestion?: string;
84
+ /** Suggested prompts listed under the action bar while the draft is empty. ArrowDown moves a highlight into the list (focus stays in the textarea), ArrowUp walks back up and out, Enter or click fills the highlighted prompt. Escape drops the highlight; typing collapses the list. */
85
+ suggestions?: string[];
86
+ /** Extra classes for the composer surface. */
87
+ className?: string;
88
+ }
89
+ /**
90
+ * The composer's draft on its own (Fluid Functionalism's InputMessage): the
91
+ * textarea, its attachments, queue, history and suggestions, and the send /
92
+ * queue / stop button, on a Surface-2 substrate. `Composer` documents it.
93
+ */
94
+ declare const ComposerDraft2: ForwardRefExoticComponent_tcubfn<ComposerDraftProps2 & RefAttributes_miuf56<HTMLDivElement>>;
95
+ import { JSX as JSX_1kxb2 } from "react";
96
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn2 } from "react";
97
+ import { RefAttributes as RefAttributes_miuf562 } from "react";
98
+ import { JSX as JSX_1kxb } from "react";
99
+ interface FileThumbnailProps {
100
+ file: File;
101
+ /** Side length of the square thumbnail in pixels. */
102
+ size: number;
103
+ className?: string;
104
+ }
105
+ type Element_12xgc = JSX_1kxb["Element"];
106
+ /** A square preview of a File: images cover it, PDFs show their first page, anything else a document glyph. */
107
+ declare function FileThumbnail2({ file, size, className }: FileThumbnailProps): Element_12xgc;
108
+ interface ComposerProps2 {
109
+ /** The models the active profile offers, each with a note. */
110
+ models: Model2[];
111
+ /** The effort steps, lowest first. */
112
+ efforts: string[];
113
+ /** The permission modes, each with its icon and note. */
114
+ permissionModes: PermissionMode2[];
115
+ /** The output styles. */
116
+ outputStyles: string[];
117
+ /** The commands, skills and plugins the + palette runs. */
118
+ commands: Command2[];
119
+ /** Files the + palette can mention. */
120
+ files: string[];
121
+ /** The project folders a session can run in. */
122
+ projects: Project2[];
123
+ /** Branches a new worktree can start from. */
124
+ branches: string[];
125
+ /** The session's own branch, shown in the project menu. Omit before the session has one. */
126
+ branch?: string;
127
+ /** The profiles a session can run under. */
128
+ profiles: Profile2[];
129
+ /** Initial model, by name. Defaults to the first model. */
130
+ defaultModel?: string;
131
+ /** Initial permission mode, by label. Defaults to the first mode. */
132
+ defaultPermissionMode?: string;
133
+ /** Initial effort. Defaults to the middle step. */
134
+ defaultEffort?: string;
135
+ /** Start with fast mode on. Defaults to `false`. */
136
+ defaultFast?: boolean;
137
+ /** Used share of the context window, 0–1. Defaults to `0.62`. */
138
+ context?: number;
139
+ /** The conversation is being compacted: the context meter says so. Defaults to `false`. */
140
+ compacting?: boolean;
141
+ /** Whether a reply is streaming. While it is, Enter queues the draft and the empty draft's button stops the reply; on the streaming→idle edge the head of the queue sends. Pair with `onStatusChange` / `onStop`, or set `defaultStatus`. */
142
+ status?: DraftStatus2;
143
+ /** The initial status when uncontrolled; Stop then flips it to `"idle"` itself. Defaults to `"idle"`. */
144
+ defaultStatus?: DraftStatus2;
145
+ /** Called with the status when the uncontrolled composer changes it (Stop). */
146
+ onStatusChange?: (status: DraftStatus2) => void;
147
+ /** Called when Stop is pressed. Halt the reply and set `status` to `"idle"`. */
148
+ onStop?: () => void;
149
+ /** The draft's text, controlled. Pair with `onValueChange`. */
150
+ value?: string;
151
+ /** The draft's initial text when uncontrolled. Defaults to `""`. */
152
+ defaultValue?: string;
153
+ /** Called with the draft's text on every change. */
154
+ onValueChange?: (value: string) => void;
155
+ /** The messages queued while a reply streams, controlled: `{ id, text, files }` each. Pair with `onQueueChange`. */
156
+ queue?: QueuedMessage2[];
157
+ /** The initial queue when uncontrolled. Defaults to `[]`. */
158
+ defaultQueue?: QueuedMessage2[];
159
+ /** Called when a message is queued, edited back, removed, reordered or sent from the queue. */
160
+ onQueueChange?: (queue: QueuedMessage2[]) => void;
161
+ /** Messages sent before, oldest first: ↑ on the draft's first line recalls them, ↓ on its last walks back to the draft. Defaults to `[]`. */
162
+ history?: string[];
163
+ /** Prompts listed under the draft while it is empty: ↓ / ↑ walk them without leaving the text, Enter or a click fills one in. */
164
+ suggestions?: string[];
165
+ /** A prompt shown as the placeholder with a Tab keycap: Tab fills it in. Wins over `placeholder`. */
166
+ placeholderSuggestion?: string;
167
+ /** The file types the palette's Attach and a drop take, as an `accept` string. Defaults to `"image/png,image/jpeg,application/pdf"`. */
168
+ accept?: string;
169
+ /** The most files a message takes; extra ones are dropped. */
170
+ maxFiles?: number;
171
+ /** A new session: the project and profile can still be picked. Otherwise they show where this session runs. Defaults to `false`. */
172
+ target?: boolean;
173
+ /** The profile the session runs under, by id. Defaults to the first profile. */
174
+ defaultProfile?: string;
175
+ /** Called with the profile picked. */
176
+ onProfileChange?: (profile: string) => void;
177
+ /** The draft's placeholder. Defaults to `'Ask, or type / for commands'`. */
178
+ placeholder?: string;
179
+ /** Called with the trimmed text and the attached files when a message is sent, or sent from the queue. */
180
+ onSend?: (text: string, files: File[]) => void;
181
+ /** Classes for the root. */
182
+ className?: string;
183
+ }
184
+ type Element_12xgc2 = JSX_1kxb2["Element"];
185
+ /**
186
+ * Where you write to the session, with every per-session control behind
187
+ * four triggers, held in a ShellCard.
188
+ *
189
+ * The draft grows with its text, then scrolls; Enter sends and Shift+Enter
190
+ * breaks the line. Files dropped anywhere on it, or attached from the +
191
+ * palette, preview as tiles above the text (images as themselves, PDFs by
192
+ * their first page with the optional `pdfjs-dist`, the rest as an icon).
193
+ * While a reply streams (`status`) the button queues what you type: queued
194
+ * messages stack above the draft, reorder by drag or Alt+↑/↓, come back into
195
+ * the draft on a double-click, and the first one sends when the reply ends;
196
+ * with the draft empty the button stops the reply. ↑ on the first line
197
+ * recalls sent messages (`history`); `suggestions` list prompts under an
198
+ * empty draft and `placeholderSuggestion` offers one behind a Tab keycap.
199
+ * The + opens one searchable palette: attach, mention a file, run a
200
+ * command, skill or plugin.
201
+ *
202
+ * The row under it, on the shell, holds the rest. On the left, where the
203
+ * session runs: the project, whose popover also holds the worktree, the
204
+ * setup script and the base branch, and the profile, with two thin lines for
205
+ * its session and weekly limits (see the profile switcher). On the right,
206
+ * how it runs: one trigger showing the permission mode, the model, the
207
+ * effort and a small context ring opens the model (with a note on each), a
208
+ * tall effort slider, the permission mode, fast mode, the output style and
209
+ * the context with a compact button. All three popovers share one layout: a
210
+ * caption per section, then rows with the label on the left and the control
211
+ * on the right.
212
+ *
213
+ * Every draft prop has its uncontrolled twin (`defaultValue`,
214
+ * `defaultQueue`, `defaultStatus`), so a composer runs with no state in the
215
+ * caller.
216
+ *
217
+ * Statics:
218
+ * - `Composer.Draft` — the draft alone, without the shell and its menus:
219
+ * the props above plus `leftSlot` / `rightSlot` (content, or a render
220
+ * function given `{ openFilePicker, files }`), `files` / `defaultFiles` /
221
+ * `onFilesChange` (attachments are on once either is set), `minRows` /
222
+ * `maxRows`, `size`, `disabled`, `showQueue` and `textareaProps`.
223
+ *
224
+ * Also exported: `FileThumbnail`, the square preview of an attachment, for
225
+ * the files a sent message carried.
226
+ *
227
+ * @example {@include ./examples.mdx}
228
+ * @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/registry/default/input-message.tsx Fluid Functionalism
229
+ * @license MIT © 2026 Micka Touillaud
230
+ */
231
+ declare const Composer2: (({ models, efforts, permissionModes, outputStyles, commands, files, projects, branches, branch, profiles, defaultModel, defaultPermissionMode, defaultEffort, defaultFast, context, compacting, defaultStatus, target, defaultProfile, onProfileChange, placeholder, className,...draft }: ComposerProps2) => Element_12xgc2) & {
232
+ Draft: ForwardRefExoticComponent_tcubfn2<ComposerDraftProps2 & RefAttributes_miuf562<HTMLDivElement>>;
233
+ };
234
+ export { DraftStatus2, DraftSlotContext2, QueuedMessage2, ComposerDraftProps2, ComposerDraft2, FileThumbnail2, ComposerProps2, Composer2 };
@@ -0,0 +1,107 @@
1
+ import { ReactElement } from "react";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ type CatalogKind2 = "skill" | "command" | "agent" | "hook" | "mcp";
4
+ /** One thing a plugin ships. */
5
+ interface CatalogContent2 {
6
+ kind: CatalogKind2;
7
+ name: string;
8
+ description?: string;
9
+ }
10
+ /** A plugin as a marketplace lists it. */
11
+ interface CatalogPlugin2 {
12
+ id: string;
13
+ name: string;
14
+ author: string;
15
+ /** The marketplace it comes from. */
16
+ marketplace: string;
17
+ description: string;
18
+ category: string;
19
+ /** The latest version the marketplace offers. */
20
+ version: string;
21
+ /** The installed version; absent when it isn't installed. */
22
+ installed?: string;
23
+ /** Its README, in Markdown. */
24
+ readme: string;
25
+ contents: CatalogContent2[];
26
+ }
27
+ interface PluginCatalogPanelProps2 {
28
+ /** Everything the marketplaces list. */
29
+ plugins: CatalogPlugin2[];
30
+ /** Controlled search query. Pair with `onQueryChange`. */
31
+ query?: string;
32
+ /** Initial query, for an uncontrolled catalog. Defaults to `''`. */
33
+ defaultQuery?: string;
34
+ /** Called on every change of the query. */
35
+ onQueryChange?: (query: string) => void;
36
+ /** Initial category; `'all'` shows every one. Defaults to `'all'`. */
37
+ defaultCategory?: string;
38
+ /** Controlled id of the plugin whose detail shows. Pair with `onSelectedChange`. */
39
+ selected?: string;
40
+ /** Id of the plugin whose detail shows first. Defaults to none. */
41
+ defaultSelected?: string;
42
+ /** Called with the id of the plugin picked for its detail. */
43
+ onSelectedChange?: (id: string) => void;
44
+ /** Ids being installed, updated or uninstalled: their button spins. Defaults to `[]`. */
45
+ pending?: string[];
46
+ /** Called with a plugin's id when Install is pressed. */
47
+ onInstall?: (id: string) => void;
48
+ /** Called with a plugin's id when Uninstall is pressed. */
49
+ onUninstall?: (id: string) => void;
50
+ /** Called with a plugin's id when Update is pressed. */
51
+ onUpdate?: (id: string) => void;
52
+ /** Classes for the root. */
53
+ className?: string;
54
+ }
55
+ type Element_12xgc = JSX_1kxb["Element"];
56
+ /** The catalog without the Dialog: for a settings page, or the docs. */
57
+ declare function PluginCatalogPanel2({ plugins, query, defaultQuery, onQueryChange, defaultCategory, selected, defaultSelected, onSelectedChange, pending, onInstall, onUninstall, onUpdate, className }: PluginCatalogPanelProps2): Element_12xgc;
58
+ interface PluginCatalogProps2 {
59
+ /** Everything the marketplaces list. */
60
+ plugins: CatalogPlugin2[];
61
+ /** The control that opens it, such as the plugins section's "Browse catalog" button. */
62
+ trigger?: ReactElement;
63
+ /** Controlled open state. */
64
+ open?: boolean;
65
+ /** Initial open state, for an uncontrolled dialog. Defaults to `false`. */
66
+ defaultOpen?: boolean;
67
+ /** Called when the dialog opens or closes. */
68
+ onOpenChange?: (open: boolean) => void;
69
+ /** Initial query. Defaults to `''`. */
70
+ defaultQuery?: string;
71
+ /** Initial category; `'all'` shows every one. Defaults to `'all'`. */
72
+ defaultCategory?: string;
73
+ /** Id of the plugin whose detail shows first. Defaults to none. */
74
+ defaultSelected?: string;
75
+ /** Ids being installed, updated or uninstalled: their button spins. Defaults to `[]`. */
76
+ pending?: string[];
77
+ /** Called with a plugin's id when Install is pressed. */
78
+ onInstall?: (id: string) => void;
79
+ /** Called with a plugin's id when Uninstall is pressed. */
80
+ onUninstall?: (id: string) => void;
81
+ /** Called with a plugin's id when Update is pressed. */
82
+ onUpdate?: (id: string) => void;
83
+ }
84
+ /**
85
+ * Browse what the marketplaces offer, and install it: plugins that bundle
86
+ * skills, commands, agents, hooks and MCP servers.
87
+ *
88
+ * Search by name, author, description or kind, and narrow to a category.
89
+ * Each row names the plugin and its author, says what it does, badges what
90
+ * it ships, and says whether it is installed or has an update; its Install,
91
+ * Update or Uninstall shows on hover. Pick a row and its detail opens
92
+ * beside the list (in place of it, in a narrow window): the README, and
93
+ * the contents one by one. Nothing matching shows an empty state that
94
+ * clears the filters. The app does the installing: `onInstall`,
95
+ * `onUninstall` and `onUpdate` get the id, and `pending` spins the
96
+ * button meanwhile. The dialog grows out of its trigger;
97
+ * `PluginCatalog.Panel` is the same catalog without it.
98
+ *
99
+ * Statics:
100
+ * - `PluginCatalog.Panel` — the catalog on its own: the same props, minus the dialog's, plus a controlled `query` and `selected`.
101
+ *
102
+ * @example {@include ./examples.mdx}
103
+ */
104
+ declare const PluginCatalog2: (({ trigger, open, defaultOpen, onOpenChange,...panel }: PluginCatalogProps2) => Element_12xgc) & {
105
+ Panel: typeof PluginCatalogPanel2;
106
+ };
107
+ export { CatalogKind2, CatalogContent2, CatalogPlugin2, PluginCatalogPanelProps2, PluginCatalogPanel2, PluginCatalogProps2, PluginCatalog2 };
@@ -0,0 +1,49 @@
1
+ import { Profile2 } from "./chunk-jkkdq1mh.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ type ProfileTileSize = "sm" | "md";
4
+ interface ProfileTileProps2 {
5
+ /** The profile it stands for: an Anthropic profile is an ink tile, a compatible provider an accent one. */
6
+ profile: Profile2;
7
+ /** 16px (`sm`) or 20px (`md`). Defaults to `'md'`. */
8
+ size?: ProfileTileSize;
9
+ /** Classes for the tile. */
10
+ className?: string;
11
+ }
12
+ type Element_12xgc = JSX_1kxb["Element"];
13
+ /** A profile's letter tile: a square Avatar off the ladder, small enough for a row. */
14
+ declare function ProfileTile2({ profile, size, className }: ProfileTileProps2): Element_12xgc;
15
+ interface ProfileSwitcherProps2 {
16
+ /** The profiles to switch between. */
17
+ profiles: Profile2[];
18
+ /** Controlled active profile id. Pair with `onValueChange`. */
19
+ value?: string;
20
+ /** Initial active profile id, for an uncontrolled switcher. Defaults to the first profile. */
21
+ defaultValue?: string;
22
+ /** Called with the new profile id when another profile is picked. */
23
+ onValueChange?: (value: string) => void;
24
+ /** Start with the panel open, as the profiles screen shows it. Defaults to `false`. */
25
+ defaultOpen?: boolean;
26
+ /** The trigger: a borderless Select-style trigger with the tile, the name and two thin usage lines (it lines up with Selects in a row), or a Sidebar header row (inside a Sidebar). Defaults to `'button'`. */
27
+ variant?: "button" | "sidebar";
28
+ /** Which side of the trigger the panel opens on. Defaults to `'bottom'`. */
29
+ side?: "top" | "right" | "bottom" | "left";
30
+ /** Classes for the trigger. */
31
+ className?: string;
32
+ }
33
+ /**
34
+ * Switches the profile a new session runs under: one row per Claude config
35
+ * dir, plus any Anthropic-compatible provider, each with its plan and how
36
+ * much of its limits is used.
37
+ *
38
+ * Every profile is its own `claude` process with its own `CLAUDE_CONFIG_DIR`
39
+ * (its sign-in, settings, memory and limits), so the switcher shows what
40
+ * the switch costs before you make it: the plan, the config dir or base
41
+ * URL, how many sessions run there, and the session and weekly meters,
42
+ * which turn amber and red as a limit runs out. The panel grows out of the
43
+ * trigger; the active profile's background melts to the row you pick, and
44
+ * the arrow keys move the pick.
45
+ *
46
+ * @example {@include ./examples.mdx}
47
+ */
48
+ declare function ProfileSwitcher2({ profiles, value, defaultValue, onValueChange, defaultOpen, variant, side, className }: ProfileSwitcherProps2): Element_12xgc | null;
49
+ export { ProfileTileProps2, ProfileTile2, ProfileSwitcherProps2, ProfileSwitcher2 };