@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,118 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+
7
+ // components/conversation/tool-call/index.tsx
8
+ import Accordion from "@justanarthur/modo-ui/components/containers/accordion";
9
+ import { Spinner } from "@justanarthur/modo-ui/components/feedback/progress";
10
+ import { statusGlyph } from "@justanarthur/modo-ui/components/feedback/status-dot";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ /*!
13
+ * Local addition (not part of Fluid Functionalism): an AI's tool calls. A run
14
+ * of calls is one Accordion group, so one fluid hover highlight runs down it
15
+ * and each call's output morphs out of its row. Generalised from the AI app's
16
+ * transcript.
17
+ */
18
+ var TOOL_ICON = {
19
+ bash: "terminal",
20
+ shell: "terminal",
21
+ terminal: "terminal",
22
+ read: "file-text",
23
+ edit: "pen-line",
24
+ write: "file-plus",
25
+ grep: "search",
26
+ search: "search",
27
+ glob: "folder-open",
28
+ fetch: "globe",
29
+ webfetch: "globe",
30
+ websearch: "globe",
31
+ agent: "bot",
32
+ mcp: "plug",
33
+ todowrite: "list-checks"
34
+ };
35
+ var Waiting = statusGlyph("waiting");
36
+ function ToolStatusMark2({ status }) {
37
+ const Failed = useIcon2("circle-x");
38
+ const Denied = useIcon2("ban");
39
+ if (status === "running")
40
+ return /* @__PURE__ */ jsx(Spinner, {
41
+ className: "size-3.5"
42
+ });
43
+ if (status === "waiting")
44
+ return /* @__PURE__ */ jsx(Waiting, {
45
+ size: 14
46
+ });
47
+ if (status === "error")
48
+ return /* @__PURE__ */ jsx(Failed, {
49
+ size: 14,
50
+ strokeWidth: 1.5,
51
+ "aria-label": "Failed",
52
+ className: "shrink-0 text-status-error"
53
+ });
54
+ if (status === "denied")
55
+ return /* @__PURE__ */ jsx(Denied, {
56
+ size: 14,
57
+ strokeWidth: 1.5,
58
+ "aria-label": "Denied",
59
+ className: "shrink-0 text-muted-foreground"
60
+ });
61
+ return null;
62
+ }
63
+ function ToolCallGroup2({ children, defaultValue }) {
64
+ return /* @__PURE__ */ jsx(Accordion.Group, {
65
+ type: "multiple",
66
+ defaultValue,
67
+ size: "compact",
68
+ className: "-mx-2.5 w-auto max-w-none",
69
+ children
70
+ });
71
+ }
72
+ var ToolCall2 = Object.assign(function ToolCall({ tool, summary, value, index, icon, status = "done", meta, children }) {
73
+ const Icon = useIcon2(icon ?? TOOL_ICON[tool.toLowerCase()] ?? "wrench");
74
+ return /* @__PURE__ */ jsxs(Accordion.Item, {
75
+ value,
76
+ index,
77
+ disabled: !children,
78
+ children: [
79
+ /* @__PURE__ */ jsx(Accordion.Trigger, {
80
+ className: "[&>span:first-child]:min-w-0",
81
+ children: /* @__PURE__ */ jsxs("span", {
82
+ className: "flex min-w-0 items-center gap-2",
83
+ children: [
84
+ /* @__PURE__ */ jsx(Icon, {
85
+ size: 14,
86
+ strokeWidth: 1.5,
87
+ className: "shrink-0"
88
+ }),
89
+ /* @__PURE__ */ jsx("span", {
90
+ className: "shrink-0",
91
+ children: tool
92
+ }),
93
+ /* @__PURE__ */ jsx("span", {
94
+ className: "min-w-0 truncate font-mono text-caption-compact weight-normal text-muted-foreground",
95
+ children: summary
96
+ }),
97
+ meta && /* @__PURE__ */ jsx("span", {
98
+ className: "ml-auto shrink-0 text-caption-compact weight-normal text-muted-foreground",
99
+ children: meta
100
+ }),
101
+ /* @__PURE__ */ jsx(ToolStatusMark2, {
102
+ status
103
+ })
104
+ ]
105
+ })
106
+ }),
107
+ children && /* @__PURE__ */ jsx(Accordion.Content, {
108
+ children: /* @__PURE__ */ jsx("div", {
109
+ className: "pb-2",
110
+ children
111
+ })
112
+ })
113
+ ]
114
+ });
115
+ }, { Group: ToolCallGroup2 });
116
+ var tool_call_default = ToolCall2;
117
+
118
+ export { ToolStatusMark2, ToolCallGroup2, ToolCall2, tool_call_default };
@@ -0,0 +1,391 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+
7
+ // blocks/settings/plugin-catalog/index.tsx
8
+ import Button from "@justanarthur/modo-ui/components/actions/button";
9
+ import Badge from "@justanarthur/modo-ui/components/data-display/badge";
10
+ import Markdown from "@justanarthur/modo-ui/components/data-display/markdown";
11
+ import EmptyState from "@justanarthur/modo-ui/components/feedback/empty-state";
12
+ import ChoiceList from "@justanarthur/modo-ui/components/inputs/choice-list";
13
+ import Input from "@justanarthur/modo-ui/components/inputs/input";
14
+ import Select from "@justanarthur/modo-ui/components/inputs/select";
15
+ import Tabs from "@justanarthur/modo-ui/components/navigation/tabs";
16
+ import Dialog from "@justanarthur/modo-ui/components/overlays/dialog";
17
+ import { useControllableState } from "@justanarthur/modo-ui/lib/use-controllable-state";
18
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
19
+ import ScrollArea from "@justanarthur/modo-ui/primitives/layout/scroll-area";
20
+ import { useState } from "react";
21
+ import { jsx, jsxs } from "react/jsx-runtime";
22
+ /*!
23
+ * Local addition: the AI app's plugin catalog. Plugins, skills and MCP
24
+ * servers from the marketplaces you added, searched and filtered by
25
+ * category, each opening into its README and contents, with install,
26
+ * update and uninstall. A Dialog with a static panel.
27
+ */
28
+ var KIND = {
29
+ skill: { label: "Skill", color: "blue" },
30
+ command: { label: "Command", color: "violet" },
31
+ agent: { label: "Agent", color: "amber" },
32
+ hook: { label: "Hook", color: "teal" },
33
+ mcp: { label: "MCP", color: "green" }
34
+ };
35
+ var ALL = "all";
36
+ var kindsOf = (plugin) => [...new Set(plugin.contents.map((c) => c.kind))];
37
+ function matches(plugin, query, category) {
38
+ if (category !== ALL && plugin.category !== category)
39
+ return false;
40
+ const q = query.trim().toLowerCase();
41
+ if (!q)
42
+ return true;
43
+ return [plugin.name, plugin.author, plugin.description, plugin.marketplace, ...kindsOf(plugin)].some((text) => text.toLowerCase().includes(q));
44
+ }
45
+ function Kinds({ plugin }) {
46
+ return /* @__PURE__ */ jsx("span", {
47
+ className: "flex flex-wrap gap-[var(--space-1)]",
48
+ children: kindsOf(plugin).map((kind) => /* @__PURE__ */ jsx(Badge, {
49
+ size: "compact",
50
+ color: KIND[kind].color,
51
+ children: KIND[kind].label
52
+ }, kind))
53
+ });
54
+ }
55
+ function state(plugin) {
56
+ if (!plugin.installed)
57
+ return;
58
+ return plugin.installed === plugin.version ? `Installed ${plugin.installed}` : `Update ${plugin.installed} → ${plugin.version}`;
59
+ }
60
+ function Actions({ plugin, handlers, all = false }) {
61
+ const Install = useIcon2("arrow-down");
62
+ const Refresh = useIcon2("refresh-cw");
63
+ const Trash = useIcon2("trash");
64
+ const busy = handlers.pending.includes(plugin.id);
65
+ const outdated = plugin.installed !== undefined && plugin.installed !== plugin.version;
66
+ if (!plugin.installed)
67
+ return /* @__PURE__ */ jsx(Button, {
68
+ size: "compact",
69
+ leadingIcon: Install,
70
+ loading: busy,
71
+ onClick: () => handlers.onInstall?.(plugin.id),
72
+ children: "Install"
73
+ });
74
+ return /* @__PURE__ */ jsxs("span", {
75
+ className: "flex gap-[var(--space-1)]",
76
+ children: [
77
+ outdated && /* @__PURE__ */ jsx(Button, {
78
+ size: "compact",
79
+ leadingIcon: Refresh,
80
+ loading: busy,
81
+ onClick: () => handlers.onUpdate?.(plugin.id),
82
+ children: "Update"
83
+ }),
84
+ (all || !outdated) && /* @__PURE__ */ jsx(Button, {
85
+ size: "compact",
86
+ variant: "ghost",
87
+ leadingIcon: Trash,
88
+ loading: busy && !outdated,
89
+ onClick: () => handlers.onUninstall?.(plugin.id),
90
+ children: "Uninstall"
91
+ })
92
+ ]
93
+ });
94
+ }
95
+ function Detail({ plugin, handlers, onBack }) {
96
+ const Back = useIcon2("arrow-left");
97
+ return /* @__PURE__ */ jsxs("div", {
98
+ className: "flex min-w-0 flex-col gap-[var(--space-4)]",
99
+ children: [
100
+ /* @__PURE__ */ jsx(Button, {
101
+ variant: "ghost",
102
+ size: "compact",
103
+ leadingIcon: Back,
104
+ className: "self-start @2xl:hidden",
105
+ onClick: onBack,
106
+ children: "All plugins"
107
+ }),
108
+ /* @__PURE__ */ jsxs("div", {
109
+ className: "flex flex-wrap items-start gap-[var(--space-3)]",
110
+ children: [
111
+ /* @__PURE__ */ jsxs("div", {
112
+ className: "flex min-w-0 flex-1 flex-col gap-[var(--space-1)]",
113
+ children: [
114
+ /* @__PURE__ */ jsx("h3", {
115
+ className: "m-0 text-subtitle text-foreground",
116
+ children: plugin.name
117
+ }),
118
+ /* @__PURE__ */ jsxs("span", {
119
+ className: "text-caption text-muted-foreground",
120
+ children: [
121
+ plugin.author,
122
+ " · ",
123
+ plugin.marketplace,
124
+ " · ",
125
+ plugin.version,
126
+ state(plugin) && ` · ${state(plugin)}`
127
+ ]
128
+ })
129
+ ]
130
+ }),
131
+ /* @__PURE__ */ jsx(Actions, {
132
+ plugin,
133
+ handlers,
134
+ all: true
135
+ })
136
+ ]
137
+ }),
138
+ /* @__PURE__ */ jsx("p", {
139
+ className: "m-0 text-body text-foreground",
140
+ children: plugin.description
141
+ }),
142
+ /* @__PURE__ */ jsx(Kinds, {
143
+ plugin
144
+ }),
145
+ /* @__PURE__ */ jsxs(Tabs, {
146
+ variant: "subtle",
147
+ size: "compact",
148
+ defaultValue: "readme",
149
+ children: [
150
+ /* @__PURE__ */ jsxs(Tabs.List, {
151
+ "aria-label": `${plugin.name} details`,
152
+ children: [
153
+ /* @__PURE__ */ jsx(Tabs.Item, {
154
+ value: "readme",
155
+ label: "README"
156
+ }),
157
+ /* @__PURE__ */ jsx(Tabs.Item, {
158
+ value: "contents",
159
+ label: `Contents · ${plugin.contents.length}`
160
+ })
161
+ ]
162
+ }),
163
+ /* @__PURE__ */ jsx(Tabs.Panel, {
164
+ value: "readme",
165
+ className: "pt-[var(--space-3)]",
166
+ children: /* @__PURE__ */ jsx(Markdown, {
167
+ children: plugin.readme
168
+ })
169
+ }),
170
+ /* @__PURE__ */ jsx(Tabs.Panel, {
171
+ value: "contents",
172
+ className: "pt-[var(--space-3)]",
173
+ children: /* @__PURE__ */ jsx("ul", {
174
+ "aria-label": "Contents",
175
+ className: "m-0 flex list-none flex-col p-0",
176
+ children: plugin.contents.map((item) => /* @__PURE__ */ jsxs("li", {
177
+ className: "flex min-w-0 items-baseline gap-[var(--space-3)] border-b border-border py-[var(--space-2)] last:border-b-0",
178
+ children: [
179
+ /* @__PURE__ */ jsx("span", {
180
+ className: "w-20 shrink-0",
181
+ children: /* @__PURE__ */ jsx(Badge, {
182
+ size: "compact",
183
+ color: KIND[item.kind].color,
184
+ children: KIND[item.kind].label
185
+ })
186
+ }),
187
+ /* @__PURE__ */ jsxs("span", {
188
+ className: "flex min-w-0 flex-col",
189
+ children: [
190
+ /* @__PURE__ */ jsx("span", {
191
+ className: "truncate font-mono text-caption text-foreground",
192
+ children: item.name
193
+ }),
194
+ item.description && /* @__PURE__ */ jsx("span", {
195
+ className: "text-caption text-muted-foreground",
196
+ children: item.description
197
+ })
198
+ ]
199
+ })
200
+ ]
201
+ }, `${item.kind}-${item.name}`))
202
+ })
203
+ })
204
+ ]
205
+ })
206
+ ]
207
+ });
208
+ }
209
+ function PluginCatalogPanel2({
210
+ plugins,
211
+ query,
212
+ defaultQuery = "",
213
+ onQueryChange,
214
+ defaultCategory = ALL,
215
+ selected,
216
+ defaultSelected = "",
217
+ onSelectedChange,
218
+ pending = [],
219
+ onInstall,
220
+ onUninstall,
221
+ onUpdate,
222
+ className
223
+ }) {
224
+ const [q, setQ] = useControllableState(query, defaultQuery, onQueryChange);
225
+ const [category, setCategory] = useState(defaultCategory);
226
+ const [picked, setPicked] = useControllableState(selected, defaultSelected, onSelectedChange);
227
+ const SearchIcon = useIcon2("search");
228
+ const Package = useIcon2("package");
229
+ const handlers = { pending, onInstall, onUninstall, onUpdate };
230
+ const categories = [...new Set(plugins.map((p) => p.category))].sort();
231
+ const shown = plugins.filter((p) => matches(p, q, category));
232
+ const detail = plugins.find((p) => p.id === picked);
233
+ return /* @__PURE__ */ jsxs("div", {
234
+ className: cn("@container flex min-h-0 flex-col gap-[var(--space-4)]", className),
235
+ children: [
236
+ /* @__PURE__ */ jsxs("div", {
237
+ className: "flex flex-wrap items-center gap-[var(--space-2)] pr-[var(--space-6)]",
238
+ children: [
239
+ /* @__PURE__ */ jsx("h2", {
240
+ className: "m-0 mr-auto text-title text-foreground",
241
+ children: "Plugin catalog"
242
+ }),
243
+ /* @__PURE__ */ jsx(Input, {
244
+ variant: "bordered",
245
+ size: "compact",
246
+ icon: SearchIcon,
247
+ "aria-label": "Search plugins",
248
+ placeholder: "Search plugins, skills, MCP…",
249
+ className: "w-60",
250
+ value: q,
251
+ onValueChange: setQ
252
+ }),
253
+ /* @__PURE__ */ jsxs(Select, {
254
+ size: "compact",
255
+ value: category,
256
+ onValueChange: setCategory,
257
+ children: [
258
+ /* @__PURE__ */ jsx(Select.Trigger, {
259
+ "aria-label": "Category",
260
+ className: "w-40"
261
+ }),
262
+ /* @__PURE__ */ jsxs(Select.Content, {
263
+ children: [
264
+ /* @__PURE__ */ jsx(Select.Item, {
265
+ index: 0,
266
+ value: ALL,
267
+ children: "All categories"
268
+ }),
269
+ categories.map((c, i) => /* @__PURE__ */ jsx(Select.Item, {
270
+ index: i + 1,
271
+ value: c,
272
+ children: c
273
+ }, c))
274
+ ]
275
+ })
276
+ ]
277
+ })
278
+ ]
279
+ }),
280
+ /* @__PURE__ */ jsxs("div", {
281
+ className: "grid min-h-0 flex-1 grid-cols-1 gap-[var(--space-6)] @2xl:grid-cols-[minmax(0,24rem)_minmax(0,1fr)]",
282
+ children: [
283
+ /* @__PURE__ */ jsx(ScrollArea, {
284
+ className: cn("min-h-0", detail && "hidden @2xl:block"),
285
+ viewportClassName: "scroll-fade",
286
+ children: shown.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
287
+ size: "compact",
288
+ icon: SearchIcon,
289
+ title: "No plugins match",
290
+ description: q.trim() ? `Nothing in ${category === ALL ? "the catalog" : category} matches “${q.trim()}”.` : `Nothing in ${category}.`,
291
+ actions: /* @__PURE__ */ jsx(Button, {
292
+ size: "compact",
293
+ variant: "secondary",
294
+ onClick: () => {
295
+ setQ("");
296
+ setCategory(ALL);
297
+ },
298
+ children: "Clear filters"
299
+ })
300
+ }) : /* @__PURE__ */ jsx(ChoiceList, {
301
+ label: "Plugins",
302
+ value: picked,
303
+ onValueChange: setPicked,
304
+ rowClassName: "pr-24",
305
+ options: shown.map((plugin) => ({
306
+ value: plugin.id,
307
+ label: plugin.name,
308
+ actions: /* @__PURE__ */ jsx(Actions, {
309
+ plugin,
310
+ handlers
311
+ }),
312
+ content: /* @__PURE__ */ jsxs("span", {
313
+ className: "flex min-w-0 flex-1 flex-col gap-[var(--space-1)]",
314
+ children: [
315
+ /* @__PURE__ */ jsxs("span", {
316
+ className: "flex min-w-0 items-baseline gap-[var(--space-2)]",
317
+ children: [
318
+ /* @__PURE__ */ jsx("span", {
319
+ className: "truncate weight-medium text-foreground",
320
+ children: plugin.name
321
+ }),
322
+ /* @__PURE__ */ jsx("span", {
323
+ className: "shrink-0 truncate text-caption text-muted-foreground",
324
+ children: plugin.author
325
+ })
326
+ ]
327
+ }),
328
+ /* @__PURE__ */ jsx("span", {
329
+ className: "line-clamp-2 text-caption text-muted-foreground",
330
+ children: plugin.description
331
+ }),
332
+ /* @__PURE__ */ jsxs("span", {
333
+ className: "flex flex-wrap items-center gap-[var(--space-2)]",
334
+ children: [
335
+ /* @__PURE__ */ jsx(Kinds, {
336
+ plugin
337
+ }),
338
+ state(plugin) && /* @__PURE__ */ jsx("span", {
339
+ className: "text-caption text-muted-foreground",
340
+ children: state(plugin)
341
+ })
342
+ ]
343
+ })
344
+ ]
345
+ })
346
+ }))
347
+ })
348
+ }),
349
+ /* @__PURE__ */ jsx(ScrollArea, {
350
+ className: cn("min-h-0", !detail && "hidden @2xl:block"),
351
+ viewportClassName: "scroll-fade",
352
+ children: detail ? /* @__PURE__ */ jsx(Detail, {
353
+ plugin: detail,
354
+ handlers,
355
+ onBack: () => setPicked("")
356
+ }) : /* @__PURE__ */ jsx(EmptyState, {
357
+ size: "compact",
358
+ icon: Package,
359
+ title: "Pick a plugin",
360
+ description: "Its README and what it ships show here."
361
+ })
362
+ })
363
+ ]
364
+ })
365
+ ]
366
+ });
367
+ }
368
+ var PluginCatalog2 = Object.assign(function PluginCatalog({ trigger, open, defaultOpen = false, onOpenChange, ...panel }) {
369
+ const [isOpen, setOpen] = useControllableState(open, defaultOpen, onOpenChange);
370
+ return /* @__PURE__ */ jsxs(Dialog, {
371
+ open: isOpen,
372
+ onOpenChange: setOpen,
373
+ children: [
374
+ trigger && /* @__PURE__ */ jsx(Dialog.Trigger, {
375
+ render: trigger
376
+ }),
377
+ /* @__PURE__ */ jsx(Dialog.Content, {
378
+ width: "xl",
379
+ "aria-label": "Plugin catalog",
380
+ className: "flex h-[min(640px,85dvh)] flex-col",
381
+ children: /* @__PURE__ */ jsx(PluginCatalogPanel2, {
382
+ ...panel,
383
+ className: "flex-1"
384
+ })
385
+ })
386
+ ]
387
+ });
388
+ }, { Panel: PluginCatalogPanel2 });
389
+ var plugin_catalog_default = PluginCatalog2;
390
+
391
+ export { PluginCatalogPanel2, PluginCatalog2, plugin_catalog_default };
@@ -0,0 +1,21 @@
1
+ import { PaneShell2 } from "./chunk-66sh633m.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface TerminalPaneProps2 {
4
+ /** The shell: its name, folder, prompt and the history so far. The pane keeps its own copy as you run and clear. */
5
+ shell: PaneShell2;
6
+ /** Called with each command entered at the prompt. */
7
+ onRun?: (command: string) => void;
8
+ }
9
+ type Element_12xgc = JSX_1kxb["Element"];
10
+ /**
11
+ * The session's shell in its folder: its history, then a prompt you type at.
12
+ *
13
+ * The history is a LogView (ANSI colors, follows the latest line, smooth on
14
+ * long output). A press anywhere in the frame puts the caret on the prompt, as a terminal
15
+ * does; Enter runs the line and adds it to the history. A failed command
16
+ * ends on its exit code. Clear empties the history.
17
+ *
18
+ * @example {@include ./examples.mdx}
19
+ */
20
+ declare function TerminalPane2({ shell, onRun }: TerminalPaneProps2): Element_12xgc;
21
+ export { TerminalPaneProps2, TerminalPane2 };
@@ -0,0 +1,37 @@
1
+ import { ReactNode } from "react";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ /** Where a setting lives: your config dir, the repo (checked in), or the repo's local, git-ignored file. */
4
+ type ConfigScope2 = "user" | "project" | "local";
5
+ declare const SCOPES2: {
6
+ value: ConfigScope2;
7
+ label: string;
8
+ }[];
9
+ declare const SCOPE_NOTE2: Record<ConfigScope2, string>;
10
+ /** The settings file a scope writes. */
11
+ declare function settingsFile2(scope: ConfigScope2, configDir: string): string;
12
+ type Element_12xgc = JSX_1kxb["Element"];
13
+ /** A label over its control, with a hint or an error under it. */
14
+ declare function Field2({ label, hint, error, children }: {
15
+ label: string;
16
+ hint?: ReactNode;
17
+ error?: string;
18
+ /** The control, given the id its label points at. */
19
+ children: (id: string) => ReactNode;
20
+ }): Element_12xgc;
21
+ /** A caption over a control that has no single input to label: a segmented pick, a list. */
22
+ declare function Fieldset2({ legend, hint, children }: {
23
+ legend: string;
24
+ hint?: ReactNode;
25
+ children: ReactNode;
26
+ }): Element_12xgc;
27
+ /** A segmented pick over a few values, on subtle Tabs. */
28
+ declare function Segmented2<T extends string>({ label, options, value, onValueChange }: {
29
+ label: string;
30
+ options: {
31
+ value: T;
32
+ label: string;
33
+ }[];
34
+ value: T;
35
+ onValueChange: (value: T) => void;
36
+ }): Element_12xgc;
37
+ export { ConfigScope2, SCOPES2, SCOPE_NOTE2, settingsFile2, Field2, Fieldset2, Segmented2 };
@@ -0,0 +1,86 @@
1
+ "use client";
2
+
3
+ import {
4
+ PromptCard2
5
+ } from "./chunk-zk0t4vq5.js";
6
+ import {
7
+ PermissionRequest2
8
+ } from "./chunk-gewnsgza.js";
9
+ import {
10
+ PlanApproval2
11
+ } from "./chunk-6220dy5n.js";
12
+ import {
13
+ QuestionPrompt2
14
+ } from "./chunk-paezqfg1.js";
15
+
16
+ // blocks/conversation/agent-prompt/index.tsx
17
+ import Button from "@justanarthur/modo-ui/components/actions/button";
18
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
19
+ /*!
20
+ * Local addition: the AI app's interaction prompts — everything the agent
21
+ * asks of the user mid-turn. The generic prompts (Prompt card, Permission
22
+ * request, Question prompt, Plan approval) live in the kit's `components/`; this
23
+ * block adds the session cards (an offer to split work off, an
24
+ * own-initiative task) and gathers them all as statics.
25
+ */
26
+ function OfferPrompt({ title, brief, onChoose }) {
27
+ return /* @__PURE__ */ jsx(PromptCard2, {
28
+ icon: "split",
29
+ title,
30
+ tag: "New session?",
31
+ actions: /* @__PURE__ */ jsxs(Fragment, {
32
+ children: [
33
+ /* @__PURE__ */ jsx(Button, {
34
+ size: "compact",
35
+ variant: "tertiary",
36
+ onClick: () => onChoose?.("here"),
37
+ children: "Do it here"
38
+ }),
39
+ /* @__PURE__ */ jsx(Button, {
40
+ size: "compact",
41
+ onClick: () => onChoose?.("new-session"),
42
+ children: "New session"
43
+ })
44
+ ]
45
+ }),
46
+ children: brief && /* @__PURE__ */ jsx("p", {
47
+ className: "m-0 text-body text-muted-foreground",
48
+ children: brief
49
+ })
50
+ });
51
+ }
52
+ function TaskPrompt({ title, brief, where, onDecide }) {
53
+ return /* @__PURE__ */ jsx(PromptCard2, {
54
+ icon: "git-fork",
55
+ title,
56
+ tag: "New task",
57
+ hint: where ? `${where} · expires in 7 days` : "Expires in 7 days",
58
+ actions: /* @__PURE__ */ jsxs(Fragment, {
59
+ children: [
60
+ /* @__PURE__ */ jsx(Button, {
61
+ size: "compact",
62
+ variant: "ghost",
63
+ onClick: () => onDecide?.("dismiss"),
64
+ children: "Dismiss"
65
+ }),
66
+ /* @__PURE__ */ jsx(Button, {
67
+ size: "compact",
68
+ variant: "tertiary",
69
+ onClick: () => onDecide?.("start"),
70
+ children: "Start session"
71
+ })
72
+ ]
73
+ }),
74
+ children: /* @__PURE__ */ jsx("p", {
75
+ className: "m-0 text-body text-muted-foreground",
76
+ children: brief
77
+ })
78
+ });
79
+ }
80
+ var AgentPrompt2 = Object.assign(function AgentPrompt(props) {
81
+ return /* @__PURE__ */ jsx(PromptCard2, {
82
+ ...props
83
+ });
84
+ }, { Permission: PermissionRequest2, Question: QuestionPrompt2, Plan: PlanApproval2, Offer: OfferPrompt, Task: TaskPrompt });
85
+ var agent_prompt_default = AgentPrompt2;
86
+ export { AgentPrompt2, agent_prompt_default };