@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,91 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+
7
+ // components/conversation/todo-list/index.tsx
8
+ import Button from "@justanarthur/modo-ui/components/actions/button";
9
+ import { Spinner } from "@justanarthur/modo-ui/components/feedback/progress";
10
+ import { useShape } from "@justanarthur/modo-ui/lib/shape-context";
11
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
12
+ import { useState } from "react";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ /*!
15
+ * Local addition (not part of Fluid Functionalism): an AI's plan for the task
16
+ * at hand, pinned under the conversation, with the step in progress turning.
17
+ * Folds to one row. Generalised from the AI app's transcript.
18
+ */
19
+ function TodoList2({ items, title = "Tasks", defaultOpen = true }) {
20
+ const shape = useShape();
21
+ const [open, setOpen] = useState(defaultOpen);
22
+ const Check = useIcon2("check");
23
+ const Chevron = useIcon2("chevron-up");
24
+ const done = items.filter((i) => i.status === "completed").length;
25
+ const current = items.find((i) => i.status === "in_progress");
26
+ return /* @__PURE__ */ jsxs("section", {
27
+ "aria-label": title,
28
+ className: cn("flex flex-col gap-1 border border-border p-[var(--space-3)]", shape.container),
29
+ children: [
30
+ /* @__PURE__ */ jsxs("div", {
31
+ className: "flex min-w-0 items-center gap-2 text-caption",
32
+ children: [
33
+ /* @__PURE__ */ jsx("span", {
34
+ className: "shrink-0 weight-medium text-foreground",
35
+ children: title
36
+ }),
37
+ !open && current && /* @__PURE__ */ jsx("span", {
38
+ className: "min-w-0 truncate text-muted-foreground",
39
+ children: current.content
40
+ }),
41
+ /* @__PURE__ */ jsxs("span", {
42
+ className: "ml-auto shrink-0 tabular-nums text-muted-foreground",
43
+ children: [
44
+ done,
45
+ " of ",
46
+ items.length
47
+ ]
48
+ }),
49
+ /* @__PURE__ */ jsx(Button, {
50
+ variant: "ghost",
51
+ size: "icon-compact",
52
+ "aria-label": open ? "Fold the list" : "Show every step",
53
+ "aria-expanded": open,
54
+ className: "-mr-1.5 size-6",
55
+ onClick: () => setOpen(!open),
56
+ children: /* @__PURE__ */ jsx(Chevron, {
57
+ className: cn("transition-transform duration-fast", !open && "rotate-180")
58
+ })
59
+ })
60
+ ]
61
+ }),
62
+ /* @__PURE__ */ jsx("ol", {
63
+ className: cn("m-0 flex flex-col p-0", !open && "hidden"),
64
+ children: items.map((item) => /* @__PURE__ */ jsxs("li", {
65
+ className: "flex min-h-6 items-center gap-2 text-body",
66
+ children: [
67
+ /* @__PURE__ */ jsx("span", {
68
+ className: "flex size-4 shrink-0 items-center justify-center",
69
+ children: item.status === "in_progress" ? /* @__PURE__ */ jsx(Spinner, {
70
+ className: "size-3.5"
71
+ }) : item.status === "completed" ? /* @__PURE__ */ jsx(Check, {
72
+ size: 14,
73
+ strokeWidth: 2,
74
+ className: "text-muted-foreground"
75
+ }) : /* @__PURE__ */ jsx("span", {
76
+ className: "size-2.5 rounded-full border border-muted-foreground"
77
+ })
78
+ }),
79
+ /* @__PURE__ */ jsx("span", {
80
+ className: cn("min-w-0 truncate", item.status === "in_progress" ? "weight-medium text-foreground" : "text-muted-foreground", item.status === "pending" && "text-foreground"),
81
+ children: item.content
82
+ })
83
+ ]
84
+ }, item.content))
85
+ })
86
+ ]
87
+ });
88
+ }
89
+ var todo_list_default = TodoList2;
90
+
91
+ export { TodoList2, todo_list_default };
@@ -0,0 +1,56 @@
1
+ import { IconName2 } from "./chunk-13yf0mza.js";
2
+ import { Profile2 } from "./chunk-jkkdq1mh.js";
3
+ import { ReactNode } from "react";
4
+ import { JSX as JSX_1kxb } from "react";
5
+ interface SettingsWindowSection2 {
6
+ id: string;
7
+ label: string;
8
+ icon: IconName2;
9
+ /** Lives in a config dir, so the scope picker shows while it is open. */
10
+ scoped: boolean;
11
+ /** Words the search matches besides the label. */
12
+ keywords: string;
13
+ }
14
+ interface SettingsWindowProps2 {
15
+ /** The sections, in sidebar order. */
16
+ sections: SettingsWindowSection2[];
17
+ /** The profiles the scope picker offers, before "This project". */
18
+ profiles: Profile2[];
19
+ /** The open section's id (controlled). */
20
+ section?: string;
21
+ /** The section that starts open. Defaults to the first section. */
22
+ defaultSection?: string;
23
+ /** Called when another section is picked. */
24
+ onSectionChange?: (section: string) => void;
25
+ /** The profile id (or `'project'`) whose config dir the scoped sections edit (controlled). */
26
+ scope?: string;
27
+ /** The scope at first. Defaults to the first profile. */
28
+ defaultScope?: string;
29
+ /** Called when another scope is picked. */
30
+ onScopeChange?: (scope: string) => void;
31
+ /** Start with the section list open. Defaults to `true`. */
32
+ sidebar?: boolean;
33
+ /** Called when "Back to sessions" is pressed. */
34
+ onBack?: () => void;
35
+ /** Called when "Profiles" in the sidebar's footer is pressed: profiles have their own page. */
36
+ onOpenProfiles?: () => void;
37
+ /** Renders the open section, given its id and the config dir being edited. */
38
+ children: (section: string, configDir: string) => ReactNode;
39
+ }
40
+ type Element_12xgc = JSX_1kxb["Element"];
41
+ /**
42
+ * The app's settings window: a list of sections on the left, the open one
43
+ * on the right.
44
+ *
45
+ * The search over the section list narrows it by name and by what each
46
+ * section holds ("auth", "sound", "disk"). Sections that live in a config dir
47
+ * show a picker in the header that says which one you are editing (a
48
+ * profile's, or the project's `.claude`) and switches it; the others belong
49
+ * to the app and hide it. Profiles themselves are their own page, linked from
50
+ * the sidebar's footer. The content is yours: `children` renders the open
51
+ * section for the config dir in scope.
52
+ *
53
+ * @example {@include ./examples.mdx}
54
+ */
55
+ declare function SettingsWindow2({ sections, profiles, section, defaultSection, onSectionChange, scope, defaultScope, onScopeChange, sidebar, onBack, onOpenProfiles, children }: SettingsWindowProps2): Element_12xgc;
56
+ export { SettingsWindowSection2, SettingsWindowProps2, SettingsWindow2 };
@@ -0,0 +1,81 @@
1
+ import { AgentRun2 } from "./chunk-g28hweee.js";
2
+ import { ChapterNavItem2, ChapterBreak2 } from "./chunk-tvbd27hg.js";
3
+ import { Working2, Mention2, Attachment2, MessageProps2 } from "./chunk-sfqvyzcs.js";
4
+ import { Reasoning2 } from "./chunk-hd4gtj5z.js";
5
+ import { Recap2 } from "./chunk-b171wjge.js";
6
+ import { TodoItem2, TodoList2 } from "./chunk-tprdqtb1.js";
7
+ import { ToolCallGroup2, ToolCallProps2 } from "./chunk-64bnh22t.js";
8
+ import { WorkSummaryProvider2, WorkSummaryProps2 } from "./chunk-e46apgve.js";
9
+ import { ReactNode } from "react";
10
+ import { JSX as JSX_1kxb } from "react";
11
+ type TurnProps = Omit<MessageProps2, "role">;
12
+ type Element_12xgc = JSX_1kxb["Element"];
13
+ declare function User(props: TurnProps): Element_12xgc;
14
+ /** The agent's turn. A string is markdown, rendered as it streams in; JSX (work, tool runs, prose) renders as is. */
15
+ declare function Assistant({ children, streaming,...props }: TurnProps): Element_12xgc;
16
+ interface TranscriptProps2 {
17
+ /** The turns: `Transcript.User`, `Transcript.Assistant` and the parts below. */
18
+ children: ReactNode;
19
+ /** The session's chapters, for the chapter list in the corner. Omit for no list. */
20
+ chapters?: ChapterNavItem2[];
21
+ /** Start with every turn's work unfolded. Defaults to `false`. */
22
+ defaultShowWork?: boolean;
23
+ /** Pinned under the column, outside the scroll: a TodoList, a prompt, a Recap. */
24
+ footer?: ReactNode;
25
+ /** Classes for the root. */
26
+ className?: string;
27
+ }
28
+ /**
29
+ * One session's conversation: what you asked, what the agent said and did,
30
+ * and where the turn left off.
31
+ *
32
+ * The turns sit in one reading column and are the AI components: your
33
+ * messages and the agent's replies are Messages; what the agent did on the
34
+ * way (Reasoning, ToolCalls, AgentRuns) folds into one WorkSummary per
35
+ * turn, so the output reads clean. Press a row to open it, or the eye in the
36
+ * corner to show every turn's work at once. Chapters break the column with a
37
+ * titled hairline, and the ChapterNav in the corner jumps between them; in a
38
+ * narrow column both controls take a row of their own above it. The
39
+ * `footer` stays put under the column: that is where the TodoList, a pending
40
+ * prompt and the Recap live. The session opens scrolled to its latest turn
41
+ * and follows it: while you read at the end, a turn that arrives or a reply
42
+ * that streams keeps it in view; scroll up and it lets go, with a button to
43
+ * jump back to the latest.
44
+ *
45
+ * Statics (aliases of the components, named for the session):
46
+ * - `Transcript.User` / `Transcript.Assistant` — a Message with its `role` set.
47
+ * - `Transcript.Work` — WorkSummary.
48
+ * - `Transcript.Thinking` — Reasoning.
49
+ * - `Transcript.Tools` / `Transcript.Tool` — ToolCall.Group / ToolCall.
50
+ * - `Transcript.Agent` — AgentRun.
51
+ * - `Transcript.Chapter` — ChapterNav.Break.
52
+ * - `Transcript.Mention` / `Transcript.Attachment` / `Transcript.Working` — Message.Mention / Message.Attachment / Message.Working.
53
+ * - `Transcript.TaskList` — TodoList.
54
+ * - `Transcript.NextStep` — Recap.
55
+ *
56
+ * @example {@include ./examples.mdx}
57
+ */
58
+ declare const Transcript2: (({ children, chapters, defaultShowWork, footer, className }: TranscriptProps2) => Element_12xgc) & {
59
+ User: typeof User;
60
+ Assistant: typeof Assistant;
61
+ Work: (({ summary, detail, running, children }: WorkSummaryProps2) => Element_12xgc) & {
62
+ Provider: typeof WorkSummaryProvider2;
63
+ };
64
+ Thinking: typeof Reasoning2;
65
+ Tools: typeof ToolCallGroup2;
66
+ Tool: (({ tool, summary, value, index, icon, status, meta, children }: ToolCallProps2) => Element_12xgc) & {
67
+ Group: typeof ToolCallGroup2;
68
+ };
69
+ Agent: typeof AgentRun2;
70
+ Chapter: typeof ChapterBreak2;
71
+ Mention: typeof Mention2;
72
+ Attachment: typeof Attachment2;
73
+ Working2: typeof Working2;
74
+ TaskList: typeof TodoList2;
75
+ NextStep: typeof Recap2;
76
+ };
77
+ /** A chapter in the corner list: ChapterNavItem, named for the session. */
78
+ type TocChapter2 = ChapterNavItem2;
79
+ /** A row of the pinned task list: TodoItem, named for the session. */
80
+ type TaskItem2 = TodoItem2;
81
+ export { TranscriptProps2, Transcript2, TocChapter2, TaskItem2 };
@@ -0,0 +1,34 @@
1
+ import { PaneCheck2, PanePullRequest2 } from "./chunk-66sh633m.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface PullRequestPaneProps2 {
4
+ /** The pull request: number, title, branches, its checks and its review comments. */
5
+ pr: PanePullRequest2;
6
+ /** Whether auto-fix starts on. Defaults to `true`. */
7
+ defaultAutoFix?: boolean;
8
+ /** Called with the new state whenever auto-fix is toggled. */
9
+ onAutoFixChange?: (on: boolean) => void;
10
+ /** Called by Re-run failed. */
11
+ onRerun?: () => void;
12
+ /** Called by a check's Full log. */
13
+ onOpenLog?: (check: PaneCheck2) => void;
14
+ /** Called by a failed check's Ask Claude to fix. */
15
+ onFix?: (check: PaneCheck2) => void;
16
+ /** Called by GitHub. */
17
+ onOpenOnGitHub?: () => void;
18
+ /** Called by Merge, which waits while a check fails. */
19
+ onMerge?: () => void;
20
+ }
21
+ type Element_12xgc = JSX_1kxb["Element"];
22
+ /**
23
+ * The session's pull request: its CI checks as they run, its review
24
+ * comments and the merge.
25
+ *
26
+ * Each check opens to the tail of its log; a failed one starts open, with
27
+ * Ask Claude to fix beside Full log, and the merge waits while one fails.
28
+ * Auto-fix lets the session watch CI, fix failures and answer reviews on
29
+ * its own.
30
+ *
31
+ * @example {@include ./examples.mdx}
32
+ */
33
+ declare function PullRequestPane2({ pr, defaultAutoFix, onAutoFixChange, onRerun, onOpenLog, onFix, onOpenOnGitHub, onMerge }: PullRequestPaneProps2): Element_12xgc;
34
+ export { PullRequestPaneProps2, PullRequestPane2 };
@@ -0,0 +1,224 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ RowTrigger2
8
+ } from "./chunk-n4742y54.js";
9
+
10
+ // blocks/profiles/profile-switcher/index.tsx
11
+ import Button from "@justanarthur/modo-ui/components/actions/button";
12
+ import Avatar from "@justanarthur/modo-ui/components/data-display/avatar";
13
+ import List, { LIST_POPOVER } from "@justanarthur/modo-ui/components/data-display/list";
14
+ import Meter from "@justanarthur/modo-ui/components/feedback/meter";
15
+ import ChoiceList from "@justanarthur/modo-ui/components/inputs/choice-list";
16
+ import Sidebar from "@justanarthur/modo-ui/components/navigation/sidebar";
17
+ import Popover from "@justanarthur/modo-ui/components/overlays/popover";
18
+ import { useControllableState } from "@justanarthur/modo-ui/lib/use-controllable-state";
19
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
20
+ import { SizeProvider } from "@justanarthur/modo-ui/primitives/systems/sizes";
21
+ import { jsx, jsxs } from "react/jsx-runtime";
22
+ /*!
23
+ * Local addition: the AI app's profile switcher. A profile is one
24
+ * Claude config dir (its own `claude` process, sign-in and limits) or an
25
+ * Anthropic-compatible provider behind a base URL. The panel is a Popover
26
+ * that grows out of the trigger; the profiles are a ChoiceList (fluid hover, a
27
+ * melting selected background) with each profile's limits as Meters.
28
+ */
29
+ var TILE_SIZE = { sm: "size-4", md: "size-5" };
30
+ var TILE_TONE = {
31
+ anthropic: "bg-foreground text-background",
32
+ compatible: "bg-accent text-foreground"
33
+ };
34
+ function ProfileTile2({ profile, size = "md", className }) {
35
+ return /* @__PURE__ */ jsx(Avatar, {
36
+ shape: "square",
37
+ role: "img",
38
+ "aria-label": profile.name,
39
+ className: cn("shrink-0", TILE_SIZE[size], className),
40
+ children: /* @__PURE__ */ jsx(Avatar.Fallback, {
41
+ className: cn("text-micro-compact weight-semibold", TILE_TONE[profile.provider]),
42
+ children: /* @__PURE__ */ jsx("span", {
43
+ "aria-hidden": "true",
44
+ children: profile.name.slice(0, 1).toUpperCase()
45
+ })
46
+ })
47
+ });
48
+ }
49
+ function ProfileRow({ profile }) {
50
+ const top = Math.max(...profile.limits.map((l) => l.value));
51
+ return /* @__PURE__ */ jsxs("span", {
52
+ className: "flex min-w-0 flex-1 items-center gap-2",
53
+ children: [
54
+ /* @__PURE__ */ jsx(ProfileTile2, {
55
+ profile
56
+ }),
57
+ /* @__PURE__ */ jsx("span", {
58
+ className: "min-w-0 flex-1 truncate text-body text-foreground",
59
+ children: profile.name
60
+ }),
61
+ /* @__PURE__ */ jsx("span", {
62
+ className: "shrink-0 text-caption text-muted-foreground",
63
+ children: profile.plan
64
+ }),
65
+ /* @__PURE__ */ jsx("span", {
66
+ "aria-hidden": "true",
67
+ className: "flex w-8 shrink-0 flex-col gap-0.5",
68
+ children: profile.limits.slice(0, 2).map((limit) => /* @__PURE__ */ jsx(Meter, {
69
+ variant: "line",
70
+ label: limit.label,
71
+ value: limit.value
72
+ }, limit.label))
73
+ }),
74
+ /* @__PURE__ */ jsxs("span", {
75
+ className: "w-8 shrink-0 text-right text-caption tabular-nums text-muted-foreground",
76
+ children: [
77
+ Math.round(top * 100),
78
+ "%"
79
+ ]
80
+ })
81
+ ]
82
+ });
83
+ }
84
+ function ProfileSwitcher2({
85
+ profiles,
86
+ value,
87
+ defaultValue,
88
+ onValueChange,
89
+ defaultOpen = false,
90
+ variant = "button",
91
+ side = "bottom",
92
+ className
93
+ }) {
94
+ const [current, setCurrent] = useControllableState(value, defaultValue ?? profiles[0]?.id ?? "", onValueChange);
95
+ const active = profiles.find((p) => p.id === current) ?? profiles[0];
96
+ const ChevronsUpDown = useIcon2("chevrons-up-down");
97
+ const Plus = useIcon2("plus");
98
+ const Settings = useIcon2("settings");
99
+ if (!active)
100
+ return null;
101
+ const trigger = variant === "sidebar" ? /* @__PURE__ */ jsxs(Sidebar.MenuButton, {
102
+ "aria-label": `Profile: ${active.name}`,
103
+ className: cn("pl-8", className),
104
+ children: [
105
+ /* @__PURE__ */ jsx("span", {
106
+ "aria-hidden": "true",
107
+ className: "pointer-events-none absolute left-1.5 top-1/2 -translate-y-1/2",
108
+ children: /* @__PURE__ */ jsx(ProfileTile2, {
109
+ profile: active
110
+ })
111
+ }),
112
+ /* @__PURE__ */ jsx("span", {
113
+ className: "min-w-0 truncate text-body weight-semibold text-foreground",
114
+ children: active.name
115
+ }),
116
+ /* @__PURE__ */ jsx("span", {
117
+ className: "min-w-0 truncate text-caption text-muted-foreground",
118
+ children: active.plan
119
+ }),
120
+ /* @__PURE__ */ jsx(ChevronsUpDown, {
121
+ size: 14,
122
+ strokeWidth: 1.5,
123
+ className: "ml-auto shrink-0 text-muted-foreground"
124
+ })
125
+ ]
126
+ }) : /* @__PURE__ */ jsxs(RowTrigger2, {
127
+ "aria-label": `Profile: ${active.name}`,
128
+ className,
129
+ children: [
130
+ /* @__PURE__ */ jsx(ProfileTile2, {
131
+ profile: active
132
+ }),
133
+ /* @__PURE__ */ jsx("span", {
134
+ className: "min-w-0 truncate",
135
+ children: active.name
136
+ }),
137
+ /* @__PURE__ */ jsx("span", {
138
+ "aria-hidden": "true",
139
+ className: "flex w-8 shrink-0 flex-col gap-0.5",
140
+ children: active.limits.slice(0, 2).map((limit) => /* @__PURE__ */ jsx(Meter, {
141
+ variant: "line",
142
+ label: limit.label,
143
+ value: limit.value
144
+ }, limit.label))
145
+ })
146
+ ]
147
+ });
148
+ const popover = /* @__PURE__ */ jsxs(Popover, {
149
+ defaultOpen,
150
+ children: [
151
+ /* @__PURE__ */ jsx(Popover.Trigger, {
152
+ render: trigger
153
+ }),
154
+ /* @__PURE__ */ jsx(Popover.Content, {
155
+ side,
156
+ align: "start",
157
+ sideOffset: 8,
158
+ className: LIST_POPOVER,
159
+ children: /* @__PURE__ */ jsxs(SizeProvider, {
160
+ size: "default",
161
+ children: [
162
+ /* @__PURE__ */ jsx(List.Section, {
163
+ title: "Profile",
164
+ children: /* @__PURE__ */ jsx(ChoiceList, {
165
+ label: "Profiles",
166
+ value: active.id,
167
+ onValueChange: setCurrent,
168
+ options: profiles.map((p) => ({ value: p.id, label: p.name, content: /* @__PURE__ */ jsx(ProfileRow, {
169
+ profile: p
170
+ }) }))
171
+ })
172
+ }),
173
+ /* @__PURE__ */ jsx(List.Section, {
174
+ title: `Limits · ${active.name}`,
175
+ aside: active.provider === "compatible" ? active.baseUrl : active.configDir,
176
+ children: active.limits.map((limit) => /* @__PURE__ */ jsxs(List.Row, {
177
+ label: limit.label,
178
+ children: [
179
+ /* @__PURE__ */ jsx(Meter, {
180
+ variant: "line",
181
+ className: "w-16",
182
+ label: limit.label,
183
+ value: limit.value
184
+ }),
185
+ /* @__PURE__ */ jsx("span", {
186
+ className: "w-28 pr-[var(--space-3)] text-right text-caption tabular-nums text-muted-foreground",
187
+ children: limit.detail
188
+ })
189
+ ]
190
+ }, limit.label))
191
+ }),
192
+ /* @__PURE__ */ jsxs("div", {
193
+ className: "flex items-center gap-[var(--space-1)]",
194
+ children: [
195
+ /* @__PURE__ */ jsx(Button, {
196
+ variant: "ghost",
197
+ size: "compact",
198
+ leadingIcon: Plus,
199
+ children: "Add profile"
200
+ }),
201
+ /* @__PURE__ */ jsx(Button, {
202
+ variant: "ghost",
203
+ size: "compact",
204
+ leadingIcon: Settings,
205
+ className: "ml-auto",
206
+ children: "Manage"
207
+ })
208
+ ]
209
+ })
210
+ ]
211
+ })
212
+ })
213
+ ]
214
+ });
215
+ if (variant === "button")
216
+ return popover;
217
+ return /* @__PURE__ */ jsx(Sidebar.Menu, {
218
+ "aria-label": "Profile",
219
+ children: /* @__PURE__ */ jsx(Sidebar.MenuItem, {
220
+ children: popover
221
+ })
222
+ });
223
+ }
224
+ export { ProfileTile2, ProfileSwitcher2 };
@@ -0,0 +1,30 @@
1
+ import { PaneChange2 } from "./chunk-66sh633m.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface ChangesPaneProps2 {
4
+ /** The session's changed files, each with its patch. The pane keeps its own copy as you stage, revert and commit. */
5
+ changes: PaneChange2[];
6
+ /** Called with the paths staged (`true`) or unstaged (`false`). */
7
+ onStage?: (paths: string[], staged: boolean) => void;
8
+ /** Called with the paths reverted. */
9
+ onRevert?: (paths: string[]) => void;
10
+ /** Called by Commit with the message (empty when Claude writes one) and the staged paths. */
11
+ onCommit?: (message: string, paths: string[]) => void;
12
+ /** Called by the diff's open in editor with the file's path. */
13
+ onOpenFile?: (path: string) => void;
14
+ }
15
+ type Element_12xgc = JSX_1kxb["Element"];
16
+ /**
17
+ * The session's changes: staged and unstaged files under a commit field,
18
+ * and the picked file's diff.
19
+ *
20
+ * A row shows the file's status letter, its name before its folder and the
21
+ * lines it adds and removes; hovering it swaps the counts for its stage,
22
+ * unstage and revert. Each section stages, unstages or reverts all at once.
23
+ * Commit takes the staged files (an empty message lets Claude write one).
24
+ * The picked file's diff wraps its long lines; the toggle above it scrolls
25
+ * them instead. With nothing changed, the pane says the tree is clean.
26
+ *
27
+ * @example {@include ./examples.mdx}
28
+ */
29
+ declare function ChangesPane2({ changes, onStage, onRevert, onCommit, onOpenFile }: ChangesPaneProps2): Element_12xgc;
30
+ export { ChangesPaneProps2, ChangesPane2 };
@@ -0,0 +1,6 @@
1
+ // lib/types.ts
2
+ /*!
3
+ * Local addition: the AI app's data shapes — profiles and their limits,
4
+ * sessions and their groups, changes, checks, tasks, settings. Blocks take
5
+ * these through props; the AI pages fill them with their mock data.
6
+ */
@@ -0,0 +1,39 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+
7
+ // lib/row-trigger.tsx
8
+ import { useFieldBox } from "@justanarthur/modo-ui/lib/field-box";
9
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
10
+ import { forwardRef } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ /*!
13
+ * A borderless button field with a trailing chevron, on modo-ui's field box:
14
+ * a row of pickers (profile, project, branch, model) reads as one strip of
15
+ * Select triggers. Forwards a popover or menu trigger's props.
16
+ */
17
+ var RowTrigger2 = forwardRef(({ children, className, disabled, ...props }, ref) => {
18
+ const field = useFieldBox({ variant: "borderless", disabled });
19
+ const Chevron = useIcon2("chevron-down");
20
+ return /* @__PURE__ */ jsxs("button", {
21
+ ref,
22
+ type: "button",
23
+ disabled,
24
+ ...field.props,
25
+ className: cn(field.props.className, "flex cursor-pointer items-center outline-none focus-visible:ring-1 focus-visible:ring-focus-ring", field.size.control, field.size.text, field.size.gap, className),
26
+ ...props,
27
+ children: [
28
+ children,
29
+ /* @__PURE__ */ jsx(Chevron, {
30
+ size: field.size.icon,
31
+ strokeWidth: 1.5,
32
+ className: "shrink-0 text-muted-foreground transition-[color] duration-fast group-hover/field:text-foreground"
33
+ })
34
+ ]
35
+ });
36
+ });
37
+ RowTrigger2.displayName = "RowTrigger";
38
+
39
+ export { RowTrigger2 };
@@ -0,0 +1,29 @@
1
+ import { Hook2 } from "./chunk-jkkdq1mh.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface HooksProps2 {
4
+ /** The hooks the scope's settings and the project's list. */
5
+ hooks: Hook2[];
6
+ /** The config dir being edited: where user-scoped hooks live. */
7
+ configDir: string;
8
+ /** Hook keys (`<event>-<command>`) whose rows start open. Defaults to `[]`. */
9
+ defaultOpen?: string[];
10
+ /** Called when "Add hook" is pressed. */
11
+ onAdd?: () => void;
12
+ /** Called when an open hook's "Run now" is pressed. */
13
+ onRun?: (hook: Hook2) => void;
14
+ /** Called when an open hook's Edit is pressed. */
15
+ onEdit?: (hook: Hook2) => void;
16
+ }
17
+ type Element_12xgc = JSX_1kxb["Element"];
18
+ /**
19
+ * The commands the harness runs on session events, before and after tools.
20
+ *
21
+ * A row names the event and matcher over the command, with its scope on the
22
+ * right; a hook whose last run exited non-zero says Failed there. Press a row
23
+ * and it lifts into a card with the command, the timeout, the last run and
24
+ * which settings file it comes from, with Run now and Edit.
25
+ *
26
+ * @example {@include ./examples.mdx}
27
+ */
28
+ declare function Hooks2({ hooks, configDir, defaultOpen, onAdd, onRun, onEdit }: HooksProps2): Element_12xgc;
29
+ export { HooksProps2, Hooks2 };
@@ -0,0 +1,73 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ ToolStatusMark2
8
+ } from "./chunk-vgh4f3sv.js";
9
+
10
+ // components/conversation/agent-run/index.tsx
11
+ import Badge from "@justanarthur/modo-ui/components/data-display/badge";
12
+ import { useShape } from "@justanarthur/modo-ui/lib/shape-context";
13
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
+ /*!
16
+ * Local addition (not part of Fluid Functionalism): a sub-agent or background
17
+ * agent's run, framed as a card with its own tool calls and report inside.
18
+ * Generalised from the AI app's transcript.
19
+ */
20
+ function AgentRun2({
21
+ agent,
22
+ description,
23
+ status = "done",
24
+ background = false,
25
+ meta,
26
+ icon = "bot",
27
+ children
28
+ }) {
29
+ const shape = useShape();
30
+ const Icon = useIcon2(icon);
31
+ return /* @__PURE__ */ jsxs("div", {
32
+ className: cn("flex flex-col gap-2 border border-border p-[var(--space-3)]", shape.container),
33
+ children: [
34
+ /* @__PURE__ */ jsxs("div", {
35
+ className: "flex min-w-0 items-center gap-2",
36
+ children: [
37
+ /* @__PURE__ */ jsx(Icon, {
38
+ size: 16,
39
+ strokeWidth: 1.5,
40
+ className: "shrink-0 text-muted-foreground"
41
+ }),
42
+ /* @__PURE__ */ jsx("span", {
43
+ className: "shrink-0 text-body weight-medium text-foreground",
44
+ children: agent
45
+ }),
46
+ /* @__PURE__ */ jsx("span", {
47
+ className: "min-w-0 truncate text-body text-muted-foreground",
48
+ children: description
49
+ }),
50
+ background && /* @__PURE__ */ jsx(Badge, {
51
+ size: "compact",
52
+ color: "gray",
53
+ className: "shrink-0",
54
+ children: "Background"
55
+ }),
56
+ /* @__PURE__ */ jsxs("span", {
57
+ className: "ml-auto flex shrink-0 items-center gap-2 text-caption text-muted-foreground",
58
+ children: [
59
+ meta,
60
+ /* @__PURE__ */ jsx(ToolStatusMark2, {
61
+ status
62
+ })
63
+ ]
64
+ })
65
+ ]
66
+ }),
67
+ children
68
+ ]
69
+ });
70
+ }
71
+ var agent_run_default = AgentRun2;
72
+
73
+ export { AgentRun2, agent_run_default };