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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.fluid-functionalism +21 -0
  3. package/README.md +105 -2
  4. package/blocks/conversation/agent-prompt/examples.mdx +44 -0
  5. package/blocks/conversation/agent-prompt/index.tsx +114 -0
  6. package/blocks/conversation/composer/draft.css +25 -0
  7. package/blocks/conversation/composer/draft.tsx +589 -0
  8. package/blocks/conversation/composer/examples.mdx +164 -0
  9. package/blocks/conversation/composer/file-preview-tile.tsx +59 -0
  10. package/blocks/conversation/composer/file-thumbnail.tsx +146 -0
  11. package/blocks/conversation/composer/index.tsx +651 -0
  12. package/blocks/conversation/composer/queued-row.tsx +102 -0
  13. package/blocks/conversation/composer/shared.ts +38 -0
  14. package/blocks/conversation/composer/suggestion-row.tsx +64 -0
  15. package/blocks/conversation/composer/use-composer-files.ts +142 -0
  16. package/blocks/conversation/composer/use-history-nav.ts +60 -0
  17. package/blocks/conversation/composer/use-message-queue.ts +108 -0
  18. package/blocks/conversation/composer/use-region-height.ts +34 -0
  19. package/blocks/conversation/failure-states/examples.mdx +58 -0
  20. package/blocks/conversation/failure-states/index.tsx +274 -0
  21. package/blocks/conversation/transcript/examples.mdx +43 -0
  22. package/blocks/conversation/transcript/index.tsx +206 -0
  23. package/blocks/conversation/transcript-search/examples.mdx +50 -0
  24. package/blocks/conversation/transcript-search/index.tsx +469 -0
  25. package/blocks/dialogs/command-palette/examples.mdx +50 -0
  26. package/blocks/dialogs/command-palette/index.tsx +239 -0
  27. package/blocks/dialogs/hook-dialog/examples.mdx +44 -0
  28. package/blocks/dialogs/hook-dialog/index.tsx +286 -0
  29. package/blocks/dialogs/mcp-server-dialog/examples.mdx +57 -0
  30. package/blocks/dialogs/mcp-server-dialog/index.tsx +415 -0
  31. package/blocks/dialogs/shortcuts-sheet/examples.mdx +36 -0
  32. package/blocks/dialogs/shortcuts-sheet/index.tsx +186 -0
  33. package/blocks/panes/artifacts-pane/examples.mdx +23 -0
  34. package/blocks/panes/artifacts-pane/index.tsx +82 -0
  35. package/blocks/panes/changes-pane/examples.mdx +23 -0
  36. package/blocks/panes/changes-pane/index.tsx +248 -0
  37. package/blocks/panes/file-pane/examples.mdx +13 -0
  38. package/blocks/panes/file-pane/index.tsx +102 -0
  39. package/blocks/panes/pr-pane/examples.mdx +13 -0
  40. package/blocks/panes/pr-pane/index.tsx +191 -0
  41. package/blocks/panes/side-pane/examples.mdx +58 -0
  42. package/blocks/panes/side-pane/index.tsx +187 -0
  43. package/blocks/panes/tasks-pane/examples.mdx +23 -0
  44. package/blocks/panes/tasks-pane/index.tsx +127 -0
  45. package/blocks/panes/terminal-pane/examples.mdx +13 -0
  46. package/blocks/panes/terminal-pane/index.tsx +99 -0
  47. package/blocks/panes/usage-pane/examples.mdx +23 -0
  48. package/blocks/panes/usage-pane/index.tsx +78 -0
  49. package/blocks/profiles/profile-onboarding/examples.mdx +80 -0
  50. package/blocks/profiles/profile-onboarding/index.tsx +580 -0
  51. package/blocks/profiles/profile-switcher/examples.mdx +29 -0
  52. package/blocks/profiles/profile-switcher/index.tsx +212 -0
  53. package/blocks/profiles/profile-usage/examples.mdx +41 -0
  54. package/blocks/profiles/profile-usage/index.tsx +141 -0
  55. package/blocks/sessions/inbox/examples.mdx +35 -0
  56. package/blocks/sessions/inbox/index.tsx +372 -0
  57. package/blocks/sessions/session-board/examples.mdx +34 -0
  58. package/blocks/sessions/session-board/index.tsx +570 -0
  59. package/blocks/sessions/session-sidebar/examples.mdx +93 -0
  60. package/blocks/sessions/session-sidebar/index.tsx +497 -0
  61. package/blocks/settings/extensions/examples.mdx +10 -0
  62. package/blocks/settings/extensions/index.tsx +72 -0
  63. package/blocks/settings/hooks/examples.mdx +16 -0
  64. package/blocks/settings/hooks/index.tsx +127 -0
  65. package/blocks/settings/mcp-servers/examples.mdx +26 -0
  66. package/blocks/settings/mcp-servers/index.tsx +204 -0
  67. package/blocks/settings/memory/examples.mdx +22 -0
  68. package/blocks/settings/memory/index.tsx +113 -0
  69. package/blocks/settings/notifications/examples.mdx +8 -0
  70. package/blocks/settings/notifications/index.tsx +63 -0
  71. package/blocks/settings/permission-rules/examples.mdx +37 -0
  72. package/blocks/settings/permission-rules/index.tsx +317 -0
  73. package/blocks/settings/plugin-catalog/examples.mdx +52 -0
  74. package/blocks/settings/plugin-catalog/index.tsx +407 -0
  75. package/blocks/settings/plugins/examples.mdx +10 -0
  76. package/blocks/settings/plugins/index.tsx +72 -0
  77. package/blocks/settings/settings-window/examples.mdx +40 -0
  78. package/blocks/settings/settings-window/index.tsx +188 -0
  79. package/blocks/settings/worktrees/examples.mdx +17 -0
  80. package/blocks/settings/worktrees/index.tsx +145 -0
  81. package/components/conversation/agent-run/examples.mdx +38 -0
  82. package/components/conversation/agent-run/index.tsx +83 -0
  83. package/components/conversation/chapter-nav/examples.mdx +30 -0
  84. package/components/conversation/chapter-nav/index.tsx +123 -0
  85. package/components/conversation/message/examples.mdx +53 -0
  86. package/components/conversation/message/index.tsx +130 -0
  87. package/components/conversation/message/working.tsx +102 -0
  88. package/components/conversation/reasoning/examples.mdx +32 -0
  89. package/components/conversation/reasoning/index.tsx +55 -0
  90. package/components/conversation/recap/examples.mdx +21 -0
  91. package/components/conversation/recap/index.tsx +67 -0
  92. package/components/conversation/todo-list/examples.mdx +32 -0
  93. package/components/conversation/todo-list/index.tsx +106 -0
  94. package/components/conversation/tool-call/examples.mdx +48 -0
  95. package/components/conversation/tool-call/index.tsx +142 -0
  96. package/components/conversation/work-summary/examples.mdx +50 -0
  97. package/components/conversation/work-summary/index.tsx +87 -0
  98. package/components/prompts/permission-request/examples.mdx +32 -0
  99. package/components/prompts/permission-request/index.tsx +74 -0
  100. package/components/prompts/plan-approval/examples.mdx +37 -0
  101. package/components/prompts/plan-approval/index.tsx +76 -0
  102. package/components/prompts/prompt-card/examples.mdx +31 -0
  103. package/components/prompts/prompt-card/index.tsx +82 -0
  104. package/components/prompts/question-prompt/examples.mdx +46 -0
  105. package/components/prompts/question-prompt/index.tsx +118 -0
  106. package/dist/blocks/conversation/agent-prompt/index.d.ts +7 -0
  107. package/dist/blocks/conversation/agent-prompt/index.js +13 -0
  108. package/dist/blocks/conversation/composer/index.d.ts +4 -0
  109. package/dist/blocks/conversation/composer/index.js +16 -0
  110. package/dist/blocks/conversation/failure-states/index.d.ts +4 -0
  111. package/dist/blocks/conversation/failure-states/index.js +8 -0
  112. package/dist/blocks/conversation/transcript/index.d.ts +50 -0
  113. package/dist/blocks/conversation/transcript/index.js +17 -0
  114. package/dist/blocks/conversation/transcript-search/index.d.ts +4 -0
  115. package/dist/blocks/conversation/transcript-search/index.js +11 -0
  116. package/dist/blocks/dialogs/command-palette/index.d.ts +5 -0
  117. package/dist/blocks/dialogs/command-palette/index.js +20 -0
  118. package/dist/blocks/dialogs/hook-dialog/index.d.ts +3 -0
  119. package/dist/blocks/dialogs/hook-dialog/index.js +12 -0
  120. package/dist/blocks/dialogs/mcp-server-dialog/index.d.ts +5 -0
  121. package/dist/blocks/dialogs/mcp-server-dialog/index.js +12 -0
  122. package/dist/blocks/dialogs/shortcuts-sheet/index.d.ts +2 -0
  123. package/dist/blocks/dialogs/shortcuts-sheet/index.js +11 -0
  124. package/dist/blocks/panes/artifacts-pane/index.d.ts +3 -0
  125. package/dist/blocks/panes/artifacts-pane/index.js +9 -0
  126. package/dist/blocks/panes/changes-pane/index.d.ts +3 -0
  127. package/dist/blocks/panes/changes-pane/index.js +9 -0
  128. package/dist/blocks/panes/file-pane/index.d.ts +3 -0
  129. package/dist/blocks/panes/file-pane/index.js +9 -0
  130. package/dist/blocks/panes/pr-pane/index.d.ts +3 -0
  131. package/dist/blocks/panes/pr-pane/index.js +10 -0
  132. package/dist/blocks/panes/side-pane/index.d.ts +5 -0
  133. package/dist/blocks/panes/side-pane/index.js +21 -0
  134. package/dist/blocks/panes/tasks-pane/index.d.ts +3 -0
  135. package/dist/blocks/panes/tasks-pane/index.js +10 -0
  136. package/dist/blocks/panes/terminal-pane/index.d.ts +3 -0
  137. package/dist/blocks/panes/terminal-pane/index.js +9 -0
  138. package/dist/blocks/panes/usage-pane/index.d.ts +4 -0
  139. package/dist/blocks/panes/usage-pane/index.js +11 -0
  140. package/dist/blocks/profiles/profile-onboarding/index.d.ts +4 -0
  141. package/dist/blocks/profiles/profile-onboarding/index.js +11 -0
  142. package/dist/blocks/profiles/profile-switcher/index.d.ts +4 -0
  143. package/dist/blocks/profiles/profile-switcher/index.js +12 -0
  144. package/dist/blocks/profiles/profile-usage/index.d.ts +4 -0
  145. package/dist/blocks/profiles/profile-usage/index.js +10 -0
  146. package/dist/blocks/sessions/inbox/index.d.ts +2 -0
  147. package/dist/blocks/sessions/inbox/index.js +11 -0
  148. package/dist/blocks/sessions/session-board/index.d.ts +4 -0
  149. package/dist/blocks/sessions/session-board/index.js +27 -0
  150. package/dist/blocks/sessions/session-sidebar/index.d.ts +5 -0
  151. package/dist/blocks/sessions/session-sidebar/index.js +15 -0
  152. package/dist/blocks/settings/extensions/index.d.ts +2 -0
  153. package/dist/blocks/settings/extensions/index.js +9 -0
  154. package/dist/blocks/settings/hooks/index.d.ts +4 -0
  155. package/dist/blocks/settings/hooks/index.js +9 -0
  156. package/dist/blocks/settings/mcp-servers/index.d.ts +4 -0
  157. package/dist/blocks/settings/mcp-servers/index.js +9 -0
  158. package/dist/blocks/settings/memory/index.d.ts +4 -0
  159. package/dist/blocks/settings/memory/index.js +8 -0
  160. package/dist/blocks/settings/notifications/index.d.ts +2 -0
  161. package/dist/blocks/settings/notifications/index.js +8 -0
  162. package/dist/blocks/settings/permission-rules/index.d.ts +3 -0
  163. package/dist/blocks/settings/permission-rules/index.js +10 -0
  164. package/dist/blocks/settings/plugin-catalog/index.d.ts +2 -0
  165. package/dist/blocks/settings/plugin-catalog/index.js +11 -0
  166. package/dist/blocks/settings/plugins/index.d.ts +4 -0
  167. package/dist/blocks/settings/plugins/index.js +9 -0
  168. package/dist/blocks/settings/settings-window/index.d.ts +4 -0
  169. package/dist/blocks/settings/settings-window/index.js +8 -0
  170. package/dist/blocks/settings/worktrees/index.d.ts +4 -0
  171. package/dist/blocks/settings/worktrees/index.js +9 -0
  172. package/dist/components/conversation/agent-run/index.d.ts +3 -0
  173. package/dist/components/conversation/agent-run/index.js +10 -0
  174. package/dist/components/conversation/chapter-nav/index.d.ts +2 -0
  175. package/dist/components/conversation/chapter-nav/index.js +11 -0
  176. package/dist/components/conversation/message/index.d.ts +2 -0
  177. package/dist/components/conversation/message/index.js +15 -0
  178. package/dist/components/conversation/reasoning/index.d.ts +2 -0
  179. package/dist/components/conversation/reasoning/index.js +8 -0
  180. package/dist/components/conversation/recap/index.d.ts +2 -0
  181. package/dist/components/conversation/recap/index.js +9 -0
  182. package/dist/components/conversation/todo-list/index.d.ts +2 -0
  183. package/dist/components/conversation/todo-list/index.js +9 -0
  184. package/dist/components/conversation/tool-call/index.d.ts +3 -0
  185. package/dist/components/conversation/tool-call/index.js +13 -0
  186. package/dist/components/conversation/work-summary/index.d.ts +2 -0
  187. package/dist/components/conversation/work-summary/index.js +10 -0
  188. package/dist/components/prompts/permission-request/index.d.ts +2 -0
  189. package/dist/components/prompts/permission-request/index.js +9 -0
  190. package/dist/components/prompts/plan-approval/index.d.ts +2 -0
  191. package/dist/components/prompts/plan-approval/index.js +9 -0
  192. package/dist/components/prompts/prompt-card/index.d.ts +3 -0
  193. package/dist/components/prompts/prompt-card/index.js +8 -0
  194. package/dist/components/prompts/question-prompt/index.d.ts +2 -0
  195. package/dist/components/prompts/question-prompt/index.js +9 -0
  196. package/dist/index.d.ts +50 -0
  197. package/dist/index.js +231 -0
  198. package/dist/lib/config-parts.d.ts +2 -0
  199. package/dist/lib/config-parts.js +16 -0
  200. package/dist/lib/icons.d.ts +2 -0
  201. package/dist/lib/icons.js +10 -0
  202. package/dist/lib/pace-bar.d.ts +11 -0
  203. package/dist/lib/pace-bar.js +6 -0
  204. package/dist/lib/pace.d.ts +4 -0
  205. package/dist/lib/pace.js +14 -0
  206. package/dist/lib/pane-parts.d.ts +25 -0
  207. package/dist/lib/pane-parts.js +11 -0
  208. package/dist/lib/row-trigger.d.ts +5 -0
  209. package/dist/lib/row-trigger.js +7 -0
  210. package/dist/lib/settings-parts.d.ts +70 -0
  211. package/dist/lib/settings-parts.js +24 -0
  212. package/dist/lib/side-pane-types.d.ts +2 -0
  213. package/dist/lib/side-pane-types.js +1 -0
  214. package/dist/lib/status-glyph.d.ts +8 -0
  215. package/dist/lib/status-glyph.js +12 -0
  216. package/dist/lib/types.d.ts +3 -0
  217. package/dist/lib/types.js +1 -0
  218. package/dist/shared/chunk-04a497rr.js +21 -0
  219. package/dist/shared/chunk-13yf0mza.d.ts +70 -0
  220. package/dist/shared/chunk-1hzrm8r5.d.ts +51 -0
  221. package/dist/shared/chunk-1qdwg7w5.d.ts +81 -0
  222. package/dist/shared/chunk-1yt061np.d.ts +64 -0
  223. package/dist/shared/chunk-218qabm5.js +250 -0
  224. package/dist/shared/chunk-2fk5aq60.js +313 -0
  225. package/dist/shared/chunk-3ps5h55t.d.ts +30 -0
  226. package/dist/shared/chunk-3yaftgh0.d.ts +28 -0
  227. package/dist/shared/chunk-4zvhpf2x.js +55 -0
  228. package/dist/shared/chunk-57hzzmjd.d.ts +67 -0
  229. package/dist/shared/chunk-58jh3mje.js +46 -0
  230. package/dist/shared/chunk-58qvny6a.d.ts +29 -0
  231. package/dist/shared/chunk-5fhkkn39.js +130 -0
  232. package/dist/shared/chunk-5hw0525a.d.ts +33 -0
  233. package/dist/shared/chunk-5meda998.js +238 -0
  234. package/dist/shared/chunk-5pqksw7z.js +91 -0
  235. package/dist/shared/chunk-6220dy5n.js +70 -0
  236. package/dist/shared/chunk-64bnh22t.d.ts +59 -0
  237. package/dist/shared/chunk-66sh633m.d.ts +60 -0
  238. package/dist/shared/chunk-6cmf27g3.d.ts +81 -0
  239. package/dist/shared/chunk-6kwk9vag.js +558 -0
  240. package/dist/shared/chunk-6rdwkymk.js +177 -0
  241. package/dist/shared/chunk-71j8qzvb.d.ts +57 -0
  242. package/dist/shared/chunk-74bvf3tw.d.ts +21 -0
  243. package/dist/shared/chunk-75zwypyr.d.ts +43 -0
  244. package/dist/shared/chunk-7mfer3tp.js +176 -0
  245. package/dist/shared/chunk-7rzjmcnh.d.ts +30 -0
  246. package/dist/shared/chunk-7zvb39cf.d.ts +26 -0
  247. package/dist/shared/chunk-8mecznyr.js +357 -0
  248. package/dist/shared/chunk-8pag6vmd.js +255 -0
  249. package/dist/shared/chunk-94grzz9f.js +187 -0
  250. package/dist/shared/chunk-9kw6m047.d.ts +32 -0
  251. package/dist/shared/chunk-at0jje23.d.ts +110 -0
  252. package/dist/shared/chunk-awd573h9.js +34 -0
  253. package/dist/shared/chunk-b171wjge.d.ts +25 -0
  254. package/dist/shared/chunk-b4dz15em.d.ts +36 -0
  255. package/dist/shared/chunk-b5ccp5de.js +35 -0
  256. package/dist/shared/chunk-bh2b5d1z.js +98 -0
  257. package/dist/shared/chunk-c36qvrwq.d.ts +30 -0
  258. package/dist/shared/chunk-c8wp058j.js +153 -0
  259. package/dist/shared/chunk-d2t72h4x.d.ts +35 -0
  260. package/dist/shared/chunk-dh3qy5fj.js +49 -0
  261. package/dist/shared/chunk-dxzrtvt9.d.ts +283 -0
  262. package/dist/shared/chunk-e46apgve.d.ts +40 -0
  263. package/dist/shared/chunk-ejtknc0w.js +21 -0
  264. package/dist/shared/chunk-eqajdxn8.js +82 -0
  265. package/dist/shared/chunk-fapc805j.js +130 -0
  266. package/dist/shared/chunk-fm1qyrae.d.ts +68 -0
  267. package/dist/shared/chunk-fqhcz6ss.d.ts +29 -0
  268. package/dist/shared/chunk-g88hweqh.d.ts +70 -0
  269. package/dist/shared/chunk-gb5ee5dw.d.ts +88 -0
  270. package/dist/shared/chunk-gewnsgza.js +61 -0
  271. package/dist/shared/chunk-hxjgey30.d.ts +36 -0
  272. package/dist/shared/chunk-jkkdq1mh.d.ts +213 -0
  273. package/dist/shared/chunk-jpq101w3.js +91 -0
  274. package/dist/shared/chunk-k3bv9k1v.d.ts +56 -0
  275. package/dist/shared/chunk-kreypnzp.d.ts +34 -0
  276. package/dist/shared/chunk-mnzw0bav.js +80 -0
  277. package/dist/shared/chunk-mrb3fp2f.d.ts +30 -0
  278. package/dist/shared/chunk-n1qq2wp9.js +6 -0
  279. package/dist/shared/chunk-n31qwnj2.js +1544 -0
  280. package/dist/shared/chunk-n4742y54.js +39 -0
  281. package/dist/shared/chunk-ndjvdkv7.d.ts +29 -0
  282. package/dist/shared/chunk-njf851p1.js +245 -0
  283. package/dist/shared/chunk-nk4578dr.js +73 -0
  284. package/dist/shared/chunk-nkbgg7bw.d.ts +24 -0
  285. package/dist/shared/chunk-nvh33x9x.js +488 -0
  286. package/dist/shared/chunk-paezqfg1.js +106 -0
  287. package/dist/shared/chunk-qemm9e3r.d.ts +21 -0
  288. package/dist/shared/chunk-qhxz1etk.js +96 -0
  289. package/dist/shared/chunk-qj5ev9ak.js +531 -0
  290. package/dist/shared/chunk-qnwggvjy.js +150 -0
  291. package/dist/shared/chunk-qt31n444.js +178 -0
  292. package/dist/shared/chunk-r5hz78pb.js +129 -0
  293. package/dist/shared/chunk-r6nb21kz.d.ts +102 -0
  294. package/dist/shared/chunk-rqrpvvz4.d.ts +107 -0
  295. package/dist/shared/chunk-s3r759ec.js +80 -0
  296. package/dist/shared/chunk-sdtjrw9w.d.ts +98 -0
  297. package/dist/shared/chunk-skg3m9m0.js +56 -0
  298. package/dist/shared/chunk-t21t9x7e.js +188 -0
  299. package/dist/shared/chunk-tc75ng2c.js +235 -0
  300. package/dist/shared/chunk-tkx1krwc.js +88 -0
  301. package/dist/shared/chunk-tprdqtb1.d.ts +30 -0
  302. package/dist/shared/chunk-tv9a1sek.js +137 -0
  303. package/dist/shared/chunk-tvbd27hg.d.ts +43 -0
  304. package/dist/shared/chunk-ty2ccknv.d.ts +54 -0
  305. package/dist/shared/chunk-v6yevw62.d.ts +28 -0
  306. package/dist/shared/chunk-v9q38p0x.js +258 -0
  307. package/dist/shared/chunk-vgh4f3sv.js +118 -0
  308. package/dist/shared/chunk-vjht1zn1.js +391 -0
  309. package/dist/shared/chunk-vsrkb0sp.d.ts +21 -0
  310. package/dist/shared/chunk-whsx7yp9.d.ts +37 -0
  311. package/dist/shared/chunk-wq9h37gy.js +86 -0
  312. package/dist/shared/chunk-x7az5x1y.d.ts +57 -0
  313. package/dist/shared/chunk-x9jf26yb.js +318 -0
  314. package/dist/shared/chunk-xbrrt07s.d.ts +23 -0
  315. package/dist/shared/chunk-xkchhs2z.js +129 -0
  316. package/dist/shared/chunk-xzfrskd7.js +202 -0
  317. package/dist/shared/chunk-y4cj4y54.js +423 -0
  318. package/dist/shared/chunk-y934at6m.js +7 -0
  319. package/dist/shared/chunk-zbpwhpjy.d.ts +75 -0
  320. package/dist/shared/chunk-zfhmbb7n.js +63 -0
  321. package/dist/shared/chunk-zk0t4vq5.js +71 -0
  322. package/dist/shared/chunk-znp9gna7.d.ts +23 -0
  323. package/dist/styles.css +467 -0
  324. package/index.ts +49 -0
  325. package/lib/config-parts.tsx +97 -0
  326. package/lib/icons.tsx +149 -0
  327. package/lib/pace-bar.tsx +24 -0
  328. package/lib/pace.ts +78 -0
  329. package/lib/pane-parts.tsx +76 -0
  330. package/lib/row-trigger.tsx +44 -0
  331. package/lib/settings-parts.tsx +232 -0
  332. package/lib/side-pane-types.ts +75 -0
  333. package/lib/status-glyph.tsx +25 -0
  334. package/lib/types.ts +204 -0
  335. package/mock/demo-reply.tsx +33 -0
  336. package/mock/demo-session.tsx +150 -0
  337. package/mock/mock-config.ts +173 -0
  338. package/mock/mock-extras.ts +288 -0
  339. package/mock/mock-panes.ts +190 -0
  340. package/mock/mock-settings.ts +92 -0
  341. package/mock/mock.ts +548 -0
  342. package/mock/screen-frame.tsx +49 -0
  343. package/package.json +114 -4
@@ -0,0 +1,130 @@
1
+ "use client";
2
+
3
+ import {
4
+ Section2,
5
+ Group2,
6
+ Toggles2,
7
+ Details2,
8
+ Row2,
9
+ CardCode2,
10
+ Footer2
11
+ } from "./chunk-5meda998.js";
12
+
13
+ // blocks/settings/memory/index.tsx
14
+ import Button from "@justanarthur/modo-ui/components/actions/button";
15
+ import Switch from "@justanarthur/modo-ui/components/inputs/switch";
16
+ import { jsx, jsxs } from "react/jsx-runtime";
17
+ /*!
18
+ * Local addition: the settings screen's memory section — the auto memory
19
+ * switch, then MEMORY.md and each memory file, opening into its contents.
20
+ */
21
+ function frontmatter(memory) {
22
+ return `---
23
+ name: ${memory.name}
24
+ description: ${memory.description}
25
+ type: ${memory.type}
26
+ ---`;
27
+ }
28
+ function Memory2({
29
+ files,
30
+ configDir,
31
+ autoMemory = true,
32
+ onAutoMemoryChange,
33
+ defaultOpen,
34
+ onEdit,
35
+ onForget
36
+ }) {
37
+ const index = files.map((m) => `- [${m.name}](${m.name}.md) — ${m.description}`).join(`
38
+ `);
39
+ const dir = `${configDir}/memory`;
40
+ return /* @__PURE__ */ jsxs(Section2, {
41
+ title: "Memory",
42
+ lead: "What this profile remembers across sessions, one fact per file. MEMORY.md is the index loaded into every session.",
43
+ children: [
44
+ /* @__PURE__ */ jsx(Toggles2, {
45
+ label: "Memory",
46
+ children: /* @__PURE__ */ jsx(Switch, {
47
+ label: "Auto memory",
48
+ description: "Let sessions save and update memories as they learn",
49
+ defaultChecked: autoMemory,
50
+ onCheckedChange: onAutoMemoryChange
51
+ })
52
+ }),
53
+ /* @__PURE__ */ jsx(Group2, {
54
+ title: "Files",
55
+ aside: /* @__PURE__ */ jsx("span", {
56
+ className: "tabular-nums",
57
+ children: files.length + 1
58
+ }),
59
+ children: /* @__PURE__ */ jsxs(Details2, {
60
+ label: "Memory files",
61
+ defaultOpen,
62
+ children: [
63
+ /* @__PURE__ */ jsxs(Row2, {
64
+ value: "MEMORY.md",
65
+ index: 0,
66
+ label: "MEMORY.md",
67
+ caption: "The index, loaded into every session",
68
+ meta: /* @__PURE__ */ jsxs("span", {
69
+ className: "text-caption tabular-nums",
70
+ children: [
71
+ files.length,
72
+ " entries"
73
+ ]
74
+ }),
75
+ children: [
76
+ /* @__PURE__ */ jsx(CardCode2, {
77
+ language: "md",
78
+ children: index
79
+ }),
80
+ /* @__PURE__ */ jsx(Footer2, {
81
+ source: dir,
82
+ children: /* @__PURE__ */ jsx(Button, {
83
+ size: "compact",
84
+ variant: "ghost",
85
+ onClick: () => onEdit?.("MEMORY.md"),
86
+ children: "Edit"
87
+ })
88
+ })
89
+ ]
90
+ }),
91
+ files.map((memory, i) => /* @__PURE__ */ jsxs(Row2, {
92
+ value: memory.name,
93
+ index: i + 1,
94
+ label: `${memory.name}.md`,
95
+ caption: memory.description,
96
+ meta: /* @__PURE__ */ jsx("span", {
97
+ className: "text-caption",
98
+ children: memory.type
99
+ }),
100
+ children: [
101
+ /* @__PURE__ */ jsx(CardCode2, {
102
+ language: "md",
103
+ children: frontmatter(memory)
104
+ }),
105
+ /* @__PURE__ */ jsxs(Footer2, {
106
+ source: dir,
107
+ children: [
108
+ /* @__PURE__ */ jsx(Button, {
109
+ size: "compact",
110
+ variant: "ghost",
111
+ onClick: () => onEdit?.(memory.name),
112
+ children: "Edit"
113
+ }),
114
+ /* @__PURE__ */ jsx(Button, {
115
+ size: "compact",
116
+ variant: "ghost",
117
+ onClick: () => onForget?.(memory),
118
+ children: "Forget"
119
+ })
120
+ ]
121
+ })
122
+ ]
123
+ }, memory.name))
124
+ ]
125
+ })
126
+ })
127
+ ]
128
+ });
129
+ }
130
+ export { Memory2 };
@@ -0,0 +1,33 @@
1
+ import { IconName2 } from "./chunk-13yf0mza.js";
2
+ import { ReactNode } from "react";
3
+ import { JSX as JSX_1kxb } from "react";
4
+ interface PromptCardProps2 {
5
+ /** What is asked, in one line. */
6
+ title: ReactNode;
7
+ /** A glyph from the icon set for the kind of prompt. Defaults to `'circle-alert'`. */
8
+ icon?: IconName2;
9
+ /** A chip after the title: the tool, the question's topic. */
10
+ tag?: string;
11
+ /** The prompt's body: what will run, the options, the plan. */
12
+ children?: ReactNode;
13
+ /** The answers, on the bottom row, the recommended one last. */
14
+ actions?: ReactNode;
15
+ /** A muted hint on the bottom row's left: keys, scope. */
16
+ hint?: ReactNode;
17
+ /** Classes for the frame. */
18
+ className?: string;
19
+ }
20
+ type Element_12xgc = JSX_1kxb["Element"];
21
+ /**
22
+ * A card for anything an agent stops to ask you mid-turn.
23
+ *
24
+ * The frame lifts two surface levels off whatever it sits on, with a
25
+ * popup's shadow, so a waiting prompt reads as the thing to answer next: a
26
+ * glyph and one line saying what is asked, an optional chip, the body, then
27
+ * a muted hint and the answers on the bottom row. Permission request,
28
+ * Question prompt and Plan approval are built on it.
29
+ *
30
+ * @example {@include ./examples.mdx}
31
+ */
32
+ declare function PromptCard2({ title, icon, tag, children, actions, hint, className }: PromptCardProps2): Element_12xgc;
33
+ export { PromptCardProps2, PromptCard2 };
@@ -0,0 +1,238 @@
1
+ "use client";
2
+
3
+ // lib/settings-parts.tsx
4
+ import { SurfaceProvider, useSurface } from "@justanarthur/modo-ui";
5
+ import Accordion from "@justanarthur/modo-ui/components/containers/accordion";
6
+ import Switch from "@justanarthur/modo-ui/components/inputs/switch";
7
+ import { useShape } from "@justanarthur/modo-ui/lib/shape-context";
8
+ import { SURFACE_BG, SURFACE_SHADOW } from "@justanarthur/modo-ui/lib/surface-classes";
9
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
10
+ import Code from "@justanarthur/modo-ui/primitives/content/code";
11
+ import { createContext, useContext, useState } from "react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ /*!
14
+ * Local addition: the settings sections' shared row language. Plain lists
15
+ * (no frames) pulled back by their rows' padding so text lines up with the
16
+ * section heading; a label with a caption on the left, its state or control
17
+ * on the right. Toggles are a Switch.Group; anything with more to it is an
18
+ * Accordion.Group row that lifts into a card with its config, as the
19
+ * session board's rows do.
20
+ */
21
+ function Section2({
22
+ title,
23
+ lead,
24
+ actions,
25
+ children
26
+ }) {
27
+ return /* @__PURE__ */ jsxs("section", {
28
+ className: "flex flex-col gap-[var(--space-5)]",
29
+ children: [
30
+ /* @__PURE__ */ jsxs("div", {
31
+ className: "flex items-start gap-[var(--space-3)]",
32
+ children: [
33
+ /* @__PURE__ */ jsxs("div", {
34
+ className: "flex min-w-0 flex-1 flex-col gap-[var(--space-1)]",
35
+ children: [
36
+ /* @__PURE__ */ jsx("h1", {
37
+ className: "m-0 text-title text-foreground",
38
+ children: title
39
+ }),
40
+ /* @__PURE__ */ jsx("p", {
41
+ className: "m-0 max-w-2xl text-body text-muted-foreground",
42
+ children: lead
43
+ })
44
+ ]
45
+ }),
46
+ actions && /* @__PURE__ */ jsx("div", {
47
+ className: "flex shrink-0 gap-[var(--space-2)]",
48
+ children: actions
49
+ })
50
+ ]
51
+ }),
52
+ /* @__PURE__ */ jsx("div", {
53
+ className: "flex flex-col gap-[var(--space-5)]",
54
+ children
55
+ })
56
+ ]
57
+ });
58
+ }
59
+ function Group2({ title, aside, children }) {
60
+ return /* @__PURE__ */ jsxs("section", {
61
+ "aria-label": title,
62
+ className: "flex flex-col gap-[var(--space-1)]",
63
+ children: [
64
+ /* @__PURE__ */ jsxs("div", {
65
+ className: "flex items-baseline justify-between gap-[var(--space-2)] text-caption text-muted-foreground",
66
+ children: [
67
+ /* @__PURE__ */ jsx("span", {
68
+ children: title
69
+ }),
70
+ aside
71
+ ]
72
+ }),
73
+ children
74
+ ]
75
+ });
76
+ }
77
+ function Toggles2({ label, children }) {
78
+ return /* @__PURE__ */ jsx("div", {
79
+ className: "-mx-4",
80
+ children: /* @__PURE__ */ jsx(Switch.Group, {
81
+ "aria-label": label,
82
+ className: "w-full border-0",
83
+ children
84
+ })
85
+ });
86
+ }
87
+ var OpenRows = createContext([]);
88
+ var ACTION_SLOTS = {
89
+ button: { slot: "w-8 @md:w-28", room: "pr-12 @md:pr-32" },
90
+ icon: { slot: "w-8", room: "pr-12" }
91
+ };
92
+ var ActionSlot = createContext(undefined);
93
+ function Details2({
94
+ label,
95
+ actions,
96
+ defaultOpen = [],
97
+ children
98
+ }) {
99
+ const [open, setOpen] = useState(defaultOpen);
100
+ return /* @__PURE__ */ jsx(OpenRows.Provider, {
101
+ value: open,
102
+ children: /* @__PURE__ */ jsx(ActionSlot.Provider, {
103
+ value: actions,
104
+ children: /* @__PURE__ */ jsx("div", {
105
+ className: "-mx-4",
106
+ children: /* @__PURE__ */ jsx(Accordion.Group, {
107
+ type: "multiple",
108
+ value: open,
109
+ onValueChange: setOpen,
110
+ highlight: "trigger",
111
+ "aria-label": label,
112
+ className: "w-full max-w-none",
113
+ children
114
+ })
115
+ })
116
+ })
117
+ });
118
+ }
119
+ var ON_HOVER2 = "opacity-0 transition-opacity duration-fast group-hover/row:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100";
120
+ function Row2({
121
+ value,
122
+ index,
123
+ label,
124
+ caption,
125
+ meta,
126
+ action,
127
+ children
128
+ }) {
129
+ const open = useContext(OpenRows).includes(value);
130
+ const slot = useContext(ActionSlot);
131
+ const shape = useShape();
132
+ const substrate = useSurface();
133
+ const level = Math.min(substrate + 2, 8);
134
+ return /* @__PURE__ */ jsx(Accordion.Item, {
135
+ value,
136
+ index,
137
+ className: cn("group/row transition-[margin,padding,background-color,box-shadow] duration-moderate", open && ["-mx-1 my-[var(--space-2)] p-1", SURFACE_BG[level], SURFACE_SHADOW[3], shape.container]),
138
+ children: /* @__PURE__ */ jsxs(SurfaceProvider, {
139
+ value: open ? level : substrate,
140
+ children: [
141
+ /* @__PURE__ */ jsxs("div", {
142
+ className: "relative",
143
+ children: [
144
+ /* @__PURE__ */ jsx(Accordion.Trigger, {
145
+ className: cn("px-4 py-2.5 [&>span:first-child]:min-w-0 [&>span:first-child]:grid-cols-[minmax(0,1fr)]", slot && ACTION_SLOTS[slot].room),
146
+ children: /* @__PURE__ */ jsxs("span", {
147
+ className: "flex min-w-0 items-center gap-[var(--space-3)]",
148
+ children: [
149
+ /* @__PURE__ */ jsxs("span", {
150
+ className: "flex min-w-0 flex-1 flex-col gap-0.5",
151
+ children: [
152
+ /* @__PURE__ */ jsx("span", {
153
+ className: "truncate weight-medium text-foreground",
154
+ children: label
155
+ }),
156
+ caption && /* @__PURE__ */ jsx("span", {
157
+ className: "truncate text-caption weight-normal text-muted-foreground",
158
+ children: caption
159
+ })
160
+ ]
161
+ }),
162
+ meta && /* @__PURE__ */ jsx("span", {
163
+ className: "flex shrink-0 items-center gap-[var(--space-3)] weight-normal text-muted-foreground",
164
+ children: meta
165
+ })
166
+ ]
167
+ })
168
+ }),
169
+ slot && /* @__PURE__ */ jsx("div", {
170
+ className: cn("absolute inset-y-0 right-4 z-20 flex items-center justify-end", ACTION_SLOTS[slot].slot),
171
+ children: action
172
+ })
173
+ ]
174
+ }),
175
+ /* @__PURE__ */ jsx(Accordion.Content, {
176
+ children: /* @__PURE__ */ jsx("div", {
177
+ className: "flex flex-col gap-[var(--space-3)] px-1 pt-[var(--space-1)]",
178
+ children
179
+ })
180
+ })
181
+ ]
182
+ })
183
+ });
184
+ }
185
+ function Facts2({ items }) {
186
+ return /* @__PURE__ */ jsx("dl", {
187
+ className: "m-0 grid grid-cols-[minmax(0,6rem)_minmax(0,1fr)] items-baseline gap-x-[var(--space-4)] gap-y-[var(--space-2)] text-body",
188
+ children: items.map(([term, value]) => /* @__PURE__ */ jsxs("div", {
189
+ className: "contents",
190
+ children: [
191
+ /* @__PURE__ */ jsx("dt", {
192
+ className: "text-caption text-muted-foreground",
193
+ children: term
194
+ }),
195
+ /* @__PURE__ */ jsx("dd", {
196
+ className: "m-0 min-w-0 break-words text-foreground",
197
+ children: value
198
+ })
199
+ ]
200
+ }, term))
201
+ });
202
+ }
203
+ function CardCode2({ language, children }) {
204
+ return /* @__PURE__ */ jsx(Code, {
205
+ language,
206
+ className: "bg-sunken",
207
+ children
208
+ });
209
+ }
210
+ function Mono2({ children }) {
211
+ return /* @__PURE__ */ jsx("span", {
212
+ className: "font-mono text-caption",
213
+ children
214
+ });
215
+ }
216
+ function Footer2({ source, children }) {
217
+ return /* @__PURE__ */ jsxs("div", {
218
+ className: "flex min-w-0 flex-wrap items-center gap-[var(--space-2)]",
219
+ children: [
220
+ /* @__PURE__ */ jsxs("span", {
221
+ className: "min-w-0 flex-1 truncate text-caption text-muted-foreground",
222
+ children: [
223
+ "In ",
224
+ /* @__PURE__ */ jsx("span", {
225
+ className: "font-mono",
226
+ children: source
227
+ })
228
+ ]
229
+ }),
230
+ /* @__PURE__ */ jsx("div", {
231
+ className: "flex shrink-0 gap-[var(--space-1)]",
232
+ children
233
+ })
234
+ ]
235
+ });
236
+ }
237
+
238
+ export { Section2, Group2, Toggles2, Details2, ON_HOVER2, Row2, Facts2, CardCode2, Mono2, Footer2 };
@@ -0,0 +1,91 @@
1
+ "use client";
2
+
3
+ // lib/config-parts.tsx
4
+ import { Label } from "@justanarthur/modo-ui/components/inputs/input";
5
+ import Tabs from "@justanarthur/modo-ui/components/navigation/tabs";
6
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
7
+ import { useId } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ /*!
10
+ * Local addition: what the AI app's config forms share — the three scopes a
11
+ * setting can live in, the file each scope writes, a labelled field, and a
12
+ * segmented pick over a few string values.
13
+ */
14
+ var SCOPES2 = [
15
+ { value: "user", label: "User" },
16
+ { value: "project", label: "Project" },
17
+ { value: "local", label: "Local" }
18
+ ];
19
+ var SCOPE_NOTE2 = {
20
+ user: "Every project, for this profile only.",
21
+ project: "Checked in: everyone working in the repo.",
22
+ local: "This repo, on this machine only; git-ignored."
23
+ };
24
+ function settingsFile2(scope, configDir) {
25
+ if (scope === "project")
26
+ return ".claude/settings.json";
27
+ if (scope === "local")
28
+ return ".claude/settings.local.json";
29
+ return `${configDir}/settings.json`;
30
+ }
31
+ function Field2({
32
+ label,
33
+ hint,
34
+ error,
35
+ children
36
+ }) {
37
+ const id = useId();
38
+ return /* @__PURE__ */ jsxs("div", {
39
+ className: "flex min-w-0 flex-col gap-[var(--space-1)]",
40
+ children: [
41
+ /* @__PURE__ */ jsx(Label, {
42
+ htmlFor: id,
43
+ invalid: Boolean(error),
44
+ children: label
45
+ }),
46
+ children(id),
47
+ (error || hint) && /* @__PURE__ */ jsx("span", {
48
+ className: cn("text-caption", error ? "text-destructive" : "text-muted-foreground"),
49
+ children: error ?? hint
50
+ })
51
+ ]
52
+ });
53
+ }
54
+ function Fieldset2({ legend, hint, children }) {
55
+ return /* @__PURE__ */ jsxs("fieldset", {
56
+ className: "m-0 flex min-w-0 flex-col gap-[var(--space-1)] border-0 p-0",
57
+ children: [
58
+ /* @__PURE__ */ jsx("legend", {
59
+ className: "mb-[var(--space-1)] p-0 text-caption text-muted-foreground",
60
+ children: legend
61
+ }),
62
+ children,
63
+ hint && /* @__PURE__ */ jsx("span", {
64
+ className: "text-caption text-muted-foreground",
65
+ children: hint
66
+ })
67
+ ]
68
+ });
69
+ }
70
+ function Segmented2({
71
+ label,
72
+ options,
73
+ value,
74
+ onValueChange
75
+ }) {
76
+ return /* @__PURE__ */ jsx(Tabs, {
77
+ variant: "subtle",
78
+ value,
79
+ onValueChange: (next) => onValueChange(next),
80
+ className: "self-start",
81
+ children: /* @__PURE__ */ jsx(Tabs.List, {
82
+ "aria-label": label,
83
+ children: options.map((o) => /* @__PURE__ */ jsx(Tabs.Item, {
84
+ value: o.value,
85
+ label: o.label
86
+ }, o.value))
87
+ })
88
+ });
89
+ }
90
+
91
+ export { SCOPES2, SCOPE_NOTE2, settingsFile2, Field2, Fieldset2, Segmented2 };
@@ -0,0 +1,70 @@
1
+ "use client";
2
+
3
+ import {
4
+ PromptCard2
5
+ } from "./chunk-zk0t4vq5.js";
6
+
7
+ // components/prompts/plan-approval/index.tsx
8
+ import Button from "@justanarthur/modo-ui/components/actions/button";
9
+ import { MarkdownProse } from "@justanarthur/modo-ui/components/data-display/markdown";
10
+ import Textarea from "@justanarthur/modo-ui/components/inputs/textarea";
11
+ import ScrollArea from "@justanarthur/modo-ui/primitives/layout/scroll-area";
12
+ import { useState } from "react";
13
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
14
+ /*!
15
+ * Local addition (not part of Fluid Functionalism): an agent's plan, waiting
16
+ * for approval — the plan as prose, a feedback field and three decisions.
17
+ */
18
+ function PlanApproval2({
19
+ children,
20
+ title = "Ready to code? Here is the plan.",
21
+ tag = "Plan mode",
22
+ placeholder = "Tell the agent what to change",
23
+ onDecide
24
+ }) {
25
+ const [feedback, setFeedback] = useState("");
26
+ return /* @__PURE__ */ jsxs(PromptCard2, {
27
+ icon: "list-checks",
28
+ title,
29
+ tag,
30
+ actions: /* @__PURE__ */ jsxs(Fragment, {
31
+ children: [
32
+ /* @__PURE__ */ jsx(Button, {
33
+ size: "compact",
34
+ variant: "ghost",
35
+ onClick: () => onDecide?.("keep-planning", feedback),
36
+ children: "Keep planning"
37
+ }),
38
+ /* @__PURE__ */ jsx(Button, {
39
+ size: "compact",
40
+ variant: "tertiary",
41
+ onClick: () => onDecide?.("review", feedback),
42
+ children: "Approve, ask before edits"
43
+ }),
44
+ /* @__PURE__ */ jsx(Button, {
45
+ size: "compact",
46
+ onClick: () => onDecide?.("auto", feedback),
47
+ children: "Approve, accept edits"
48
+ })
49
+ ]
50
+ }),
51
+ children: [
52
+ /* @__PURE__ */ jsx(ScrollArea, {
53
+ className: "max-h-72 rounded-xl border border-border",
54
+ viewportClassName: "scroll-fade",
55
+ children: /* @__PURE__ */ jsx(MarkdownProse, {
56
+ className: "p-[var(--space-3)]",
57
+ children
58
+ })
59
+ }),
60
+ /* @__PURE__ */ jsx(Textarea, {
61
+ minRows: 1,
62
+ maxRows: 4,
63
+ value: feedback,
64
+ onValueChange: setFeedback,
65
+ placeholder
66
+ })
67
+ ]
68
+ });
69
+ }
70
+ export { PlanApproval2 };
@@ -0,0 +1,59 @@
1
+ import { IconName2 } from "./chunk-13yf0mza.js";
2
+ import { ReactNode } from "react";
3
+ import { JSX as JSX_1kxb } from "react";
4
+ type ToolCallStatus2 = "running" | "waiting" | "done" | "error" | "denied";
5
+ interface ToolStatusMarkProps2 {
6
+ /** Where the call stands; `done` shows nothing. */
7
+ status: ToolCallStatus2;
8
+ }
9
+ type Element_12xgc = JSX_1kxb["Element"];
10
+ /** A call's state at the end of its row: the Spinner, the waiting dot, or the failed and denied marks. */
11
+ declare function ToolStatusMark2({ status }: ToolStatusMarkProps2): Element_12xgc | null;
12
+ interface ToolCallGroupProps2 {
13
+ /** The calls, `ToolCall`s each with its `index`. */
14
+ children: ReactNode;
15
+ /** Calls open at first, by `value`. */
16
+ defaultValue?: string[];
17
+ }
18
+ /** A run of tool calls: one hover highlight down the run, each call folds open in place. */
19
+ declare function ToolCallGroup2({ children, defaultValue }: ToolCallGroupProps2): Element_12xgc;
20
+ interface ToolCallProps2 {
21
+ /** The tool's name, shown in the row; a common one (Bash, Read, Edit, Grep, Fetch…) picks its glyph. */
22
+ tool: string;
23
+ /** Its main argument: a command, a path, a pattern. */
24
+ summary: string;
25
+ /** Its key, unique in the run. */
26
+ value: string;
27
+ /** Its place in the run, from 0, for the shared hover. */
28
+ index: number;
29
+ /** The glyph, for a tool the name doesn't match. Defaults to the name's glyph, else `'wrench'`. */
30
+ icon?: IconName2;
31
+ /** Where it stands. Defaults to `'done'`. */
32
+ status?: ToolCallStatus2;
33
+ /** A short result on the right: `+12 −3`, `42 lines`, `exit 1`. */
34
+ meta?: ReactNode;
35
+ /** The output, folded until opened: a Diff, Code, terminal text. */
36
+ children?: ReactNode;
37
+ }
38
+ /**
39
+ * One tool call an AI made: its glyph, name and argument in one row, the
40
+ * output folded inside.
41
+ *
42
+ * Calls come in runs: a `ToolCall.Group` shares one fluid hover highlight
43
+ * down the run, and each call with output opens in place, its output (a
44
+ * Diff, a Code block, terminal text) morphing out of the row. A call without
45
+ * output doesn't open. The end of the row carries a short result (`+3 −1`,
46
+ * `exit 1`) and the call's state: the Spinner while it runs, the warning dot
47
+ * while it waits on you, a mark when it failed or was denied, nothing once
48
+ * it's done. The run is a compact region, and its rows reach into the margin
49
+ * so the labels stay flush with the text around them.
50
+ *
51
+ * Statics:
52
+ * - `ToolCall.Group` — a run of calls: `defaultValue` opens some.
53
+ *
54
+ * @example {@include ./examples.mdx}
55
+ */
56
+ declare const ToolCall2: (({ tool, summary, value, index, icon, status, meta, children }: ToolCallProps2) => Element_12xgc) & {
57
+ Group: typeof ToolCallGroup2;
58
+ };
59
+ export { ToolCallStatus2, ToolStatusMarkProps2, ToolStatusMark2, ToolCallGroupProps2, ToolCallGroup2, ToolCallProps2, ToolCall2 };
@@ -0,0 +1,60 @@
1
+ interface PaneChange2 {
2
+ path: string;
3
+ status: "added" | "modified" | "deleted";
4
+ staged: boolean;
5
+ patch: string;
6
+ }
7
+ interface PaneFile2 {
8
+ path: string;
9
+ language: string;
10
+ source: string;
11
+ }
12
+ interface ShellEntry2 {
13
+ command: string;
14
+ output: string[];
15
+ /** Non-zero when the command failed. Defaults to 0. */
16
+ exit?: number;
17
+ }
18
+ interface PaneShell2 {
19
+ /** The shell's name, as the section title. */
20
+ name: string;
21
+ cwd: string;
22
+ /** What the prompt shows before `$`. */
23
+ prompt: string;
24
+ history: ShellEntry2[];
25
+ }
26
+ interface PaneCheck2 {
27
+ name: string;
28
+ status: "success" | "running" | "failed";
29
+ /** The run time, or what it is doing while it runs. */
30
+ detail: string;
31
+ /** The tail of the check's log. */
32
+ log: string;
33
+ }
34
+ interface PaneReview2 {
35
+ author: string;
36
+ where: string;
37
+ body: string;
38
+ }
39
+ interface PanePullRequest2 {
40
+ number: number;
41
+ title: string;
42
+ branch: string;
43
+ base: string;
44
+ checks: PaneCheck2[];
45
+ reviews: PaneReview2[];
46
+ }
47
+ type ArtifactKind2 = "page" | "dashboard" | "document" | "diagram";
48
+ interface PaneArtifact2 {
49
+ title: string;
50
+ kind: ArtifactKind2;
51
+ updated: string;
52
+ }
53
+ interface PaneTask2 {
54
+ id: string;
55
+ title: string;
56
+ kind: "agent" | "shell" | "session";
57
+ status: "running" | "done" | "failed" | "stopped";
58
+ detail: string;
59
+ }
60
+ export { PaneChange2, PaneFile2, ShellEntry2, PaneShell2, PaneCheck2, PaneReview2, PanePullRequest2, ArtifactKind2, PaneArtifact2, PaneTask2 };