@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,177 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcons2,
5
+ useIcon2
6
+ } from "./chunk-xkchhs2z.js";
7
+ import {
8
+ ArtifactsPane2
9
+ } from "./chunk-s3r759ec.js";
10
+ import {
11
+ ChangesPane2
12
+ } from "./chunk-218qabm5.js";
13
+ import {
14
+ FilePane2
15
+ } from "./chunk-qhxz1etk.js";
16
+ import {
17
+ PullRequestPane2
18
+ } from "./chunk-8pag6vmd.js";
19
+ import {
20
+ TasksPane2
21
+ } from "./chunk-r5hz78pb.js";
22
+ import {
23
+ TerminalPane2
24
+ } from "./chunk-tkx1krwc.js";
25
+ import {
26
+ UsagePane2
27
+ } from "./chunk-a4s440b6.js";
28
+
29
+ // blocks/panes/side-pane/index.tsx
30
+ import Button from "@justanarthur/modo-ui/components/actions/button";
31
+ import Tabs from "@justanarthur/modo-ui/components/navigation/tabs";
32
+ import Dropdown from "@justanarthur/modo-ui/components/overlays/dropdown";
33
+ import Tooltip from "@justanarthur/modo-ui/components/overlays/tooltip";
34
+ import { useControllableState } from "@justanarthur/modo-ui/lib/use-controllable-state";
35
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
36
+ import ScrollArea from "@justanarthur/modo-ui/primitives/layout/scroll-area";
37
+ import { SizeProvider } from "@justanarthur/modo-ui/primitives/systems/sizes";
38
+ import { jsx, jsxs } from "react/jsx-runtime";
39
+ /*!
40
+ * Local addition: the AI app's side pane, beside the transcript. A
41
+ * strip of pill tabs (subtle Tabs, only the picked one spelled out) switches
42
+ * between the pane blocks (changes-pane, file-pane, …); a Dropdown beside the last tab adds
43
+ * optional panes from plugins; the close button hands the room back to the
44
+ * transcript. The whole pane is a compact region.
45
+ */
46
+ var PANES2 = [
47
+ { id: "changes", label: "Changes", icon: "file-diff" },
48
+ { id: "file", label: "File", icon: "file-text" },
49
+ { id: "terminal", label: "Terminal", icon: "terminal" },
50
+ { id: "pr", label: "Pull request", icon: "git-pull-request" },
51
+ { id: "artifacts", label: "Artifacts", icon: "layers" },
52
+ { id: "tasks", label: "Tasks", icon: "list-checks" },
53
+ { id: "extension", label: "Usage", icon: "puzzle" }
54
+ ];
55
+ var CONTENT = {
56
+ changes: (data) => /* @__PURE__ */ jsx(ChangesPane2, {
57
+ changes: data.changes
58
+ }),
59
+ file: (data) => /* @__PURE__ */ jsx(FilePane2, {
60
+ file: data.file,
61
+ files: data.files
62
+ }),
63
+ terminal: (data) => /* @__PURE__ */ jsx(TerminalPane2, {
64
+ shell: data.shell
65
+ }),
66
+ pr: (data) => /* @__PURE__ */ jsx(PullRequestPane2, {
67
+ pr: data.pr
68
+ }),
69
+ artifacts: (data) => /* @__PURE__ */ jsx(ArtifactsPane2, {
70
+ artifacts: data.artifacts
71
+ }),
72
+ tasks: (data) => /* @__PURE__ */ jsx(TasksPane2, {
73
+ tasks: data.tasks
74
+ }),
75
+ extension: (data) => /* @__PURE__ */ jsx(UsagePane2, {
76
+ profiles: data.profiles
77
+ })
78
+ };
79
+ function SidePane2({
80
+ data,
81
+ pane,
82
+ defaultPane = "changes",
83
+ onPaneChange,
84
+ onClose,
85
+ className
86
+ }) {
87
+ const [current, setCurrent] = useControllableState(pane, defaultPane, onPaneChange);
88
+ const icons = useIcons2();
89
+ const Close = useIcon2("x");
90
+ const Plus = useIcon2("plus");
91
+ const Globe = useIcon2("globe");
92
+ const Phone = useIcon2("monitor");
93
+ const shown = PANES2.some((p) => p.id === current) ? current : "changes";
94
+ return /* @__PURE__ */ jsx("section", {
95
+ "aria-label": "Side pane",
96
+ className: cn("flex min-h-0 min-w-0 flex-col", className),
97
+ children: /* @__PURE__ */ jsx(SizeProvider, {
98
+ size: "compact",
99
+ children: /* @__PURE__ */ jsxs(Tabs, {
100
+ variant: "subtle",
101
+ activeLabel: true,
102
+ value: shown,
103
+ onValueChange: (value) => setCurrent(value),
104
+ className: "flex min-h-0 flex-1 flex-col",
105
+ children: [
106
+ /* @__PURE__ */ jsxs("div", {
107
+ className: "flex h-12 shrink-0 items-center gap-1 px-2",
108
+ children: [
109
+ /* @__PURE__ */ jsx(Tabs.List, {
110
+ className: "min-w-0",
111
+ children: PANES2.map((p) => /* @__PURE__ */ jsx(Tabs.Item, {
112
+ value: p.id,
113
+ icon: icons[p.icon],
114
+ label: p.label
115
+ }, p.id))
116
+ }),
117
+ /* @__PURE__ */ jsxs(Dropdown.Menu, {
118
+ children: [
119
+ /* @__PURE__ */ jsx(Dropdown.Trigger, {
120
+ render: /* @__PURE__ */ jsx(Button, {
121
+ variant: "ghost",
122
+ size: "icon-compact",
123
+ "aria-label": "Add a pane",
124
+ className: "shrink-0",
125
+ children: /* @__PURE__ */ jsx(Plus, {})
126
+ })
127
+ }),
128
+ /* @__PURE__ */ jsxs(Dropdown.Content, {
129
+ align: "start",
130
+ className: "w-60",
131
+ children: [
132
+ /* @__PURE__ */ jsx(Dropdown.Label, {
133
+ children: "From plugins"
134
+ }),
135
+ /* @__PURE__ */ jsx(Dropdown.Item, {
136
+ index: 0,
137
+ icon: Globe,
138
+ label: "Browser (install)"
139
+ }),
140
+ /* @__PURE__ */ jsx(Dropdown.Item, {
141
+ index: 1,
142
+ icon: Phone,
143
+ label: "iOS simulator (install)"
144
+ })
145
+ ]
146
+ })
147
+ ]
148
+ }),
149
+ onClose && /* @__PURE__ */ jsx(Tooltip, {
150
+ content: "Close the pane",
151
+ side: "bottom",
152
+ children: /* @__PURE__ */ jsx(Button, {
153
+ variant: "ghost",
154
+ size: "icon-compact",
155
+ "aria-label": "Close the pane",
156
+ className: "ml-auto shrink-0",
157
+ onClick: onClose,
158
+ children: /* @__PURE__ */ jsx(Close, {})
159
+ })
160
+ })
161
+ ]
162
+ }),
163
+ /* @__PURE__ */ jsx(ScrollArea, {
164
+ className: "min-h-0 flex-1",
165
+ viewportClassName: "scroll-fade",
166
+ children: /* @__PURE__ */ jsx(Tabs.Panel, {
167
+ value: shown,
168
+ className: "px-2 pb-4 [contain:inline-size]",
169
+ children: CONTENT[shown](data)
170
+ })
171
+ })
172
+ ]
173
+ })
174
+ })
175
+ });
176
+ }
177
+ export { PANES2, SidePane2 };
@@ -0,0 +1,25 @@
1
+ import { UsageLimit2, Profile2 } from "./chunk-jkkdq1mh.js";
2
+ /** `free`: lasts past the reset at this pace; `watch`: only just; `tight`: runs out before it. */
3
+ type Verdict2 = "free" | "watch" | "tight";
4
+ interface LimitPace2 {
5
+ limit: UsageLimit2;
6
+ /** Share of the window already gone, 0–1: where an even spend would be now. */
7
+ elapsed: number;
8
+ /** Share used at the reset if spending goes on at the pace so far (may exceed 1). */
9
+ projected: number;
10
+ /** Hours until the limit is hit at that pace; Infinity when it lasts past the reset. */
11
+ runsOutInHours: number;
12
+ verdict: Verdict2;
13
+ }
14
+ interface ProfilePace2 {
15
+ profile: Profile2;
16
+ limits: LimitPace2[];
17
+ /** The limit that runs out first, or lands highest at its reset. */
18
+ binding: LimitPace2;
19
+ }
20
+ declare function paceOf2(profile: Profile2): ProfilePace2;
21
+ /** A short duration: `17m`, `2h 20m`, `20h`, `4d`. */
22
+ declare function duration2(hours: number): string;
23
+ declare function percent2(share: number): string;
24
+ declare const VERDICT_TEXT2: Record<Verdict2, string>;
25
+ export { Verdict2, LimitPace2, ProfilePace2, paceOf2, duration2, percent2, VERDICT_TEXT2 };
@@ -0,0 +1,179 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ tool_call_default
8
+ } from "./chunk-vgh4f3sv.js";
9
+ import {
10
+ agent_run_default
11
+ } from "./chunk-nk4578dr.js";
12
+ import {
13
+ chapter_nav_default
14
+ } from "./chunk-bh2b5d1z.js";
15
+ import {
16
+ Working2,
17
+ message_default
18
+ } from "./chunk-bzs6amnv.js";
19
+ import {
20
+ reasoning_default
21
+ } from "./chunk-8xg5gwwy.js";
22
+ import {
23
+ recap_default
24
+ } from "./chunk-skg3m9m0.js";
25
+ import {
26
+ todo_list_default
27
+ } from "./chunk-jpq101w3.js";
28
+ import {
29
+ work_summary_default
30
+ } from "./chunk-zfhmbb7n.js";
31
+
32
+ // blocks/conversation/transcript/index.tsx
33
+ import Button from "@justanarthur/modo-ui/components/actions/button";
34
+ import Markdown from "@justanarthur/modo-ui/components/data-display/markdown";
35
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
36
+ import ScrollArea from "@justanarthur/modo-ui/primitives/layout/scroll-area";
37
+ import { useEffect, useLayoutEffect, useRef, useState } from "react";
38
+ import { jsx, jsxs } from "react/jsx-runtime";
39
+ /*!
40
+ * Local addition: the AI app's transcript. A scrolling reading column for
41
+ * one session, with the show-work toggle and the chapter list floating in its
42
+ * corner; it follows a growing session while you read at its end. The parts
43
+ * are the generic AI components (Message, Reasoning,
44
+ * ToolCall, AgentRun, WorkSummary, ChapterNav, TodoList, Recap), aliased as
45
+ * statics.
46
+ */
47
+ function User(props) {
48
+ return /* @__PURE__ */ jsx(message_default, {
49
+ role: "user",
50
+ ...props
51
+ });
52
+ }
53
+ function Assistant({ children, streaming, ...props }) {
54
+ if (typeof children === "string")
55
+ return /* @__PURE__ */ jsxs("div", {
56
+ className: "flex flex-col gap-3",
57
+ children: [
58
+ /* @__PURE__ */ jsx(Markdown, {
59
+ streaming,
60
+ children
61
+ }),
62
+ streaming && /* @__PURE__ */ jsx(Working2, {})
63
+ ]
64
+ });
65
+ return /* @__PURE__ */ jsx(message_default, {
66
+ role: "assistant",
67
+ streaming,
68
+ ...props,
69
+ children
70
+ });
71
+ }
72
+ var Transcript2 = Object.assign(function Transcript({ children, chapters, defaultShowWork = false, footer, className }) {
73
+ const [showWork, setShowWork] = useState(defaultShowWork);
74
+ const [following, setFollowing] = useState(true);
75
+ const Eye = useIcon2("eye");
76
+ const Down = useIcon2("arrow-down");
77
+ const column = useRef(null);
78
+ const viewport = useRef(null);
79
+ const atEnd = useRef(true);
80
+ const toEnd = () => {
81
+ const el = viewport.current;
82
+ if (el)
83
+ el.scrollTop = el.scrollHeight;
84
+ };
85
+ useLayoutEffect(() => {
86
+ viewport.current = column.current?.closest('[data-slot="scroll-area-viewport"]') ?? null;
87
+ toEnd();
88
+ }, []);
89
+ useEffect(() => {
90
+ const el = viewport.current;
91
+ const content = column.current;
92
+ if (!el || !content)
93
+ return;
94
+ const onScroll = () => {
95
+ const end = el.scrollHeight - el.scrollTop - el.clientHeight < 8;
96
+ if (end === atEnd.current)
97
+ return;
98
+ atEnd.current = end;
99
+ setFollowing(end);
100
+ };
101
+ const observer = new ResizeObserver(() => {
102
+ if (atEnd.current)
103
+ toEnd();
104
+ });
105
+ el.addEventListener("scroll", onScroll, { passive: true });
106
+ observer.observe(content);
107
+ return () => {
108
+ el.removeEventListener("scroll", onScroll);
109
+ observer.disconnect();
110
+ };
111
+ }, []);
112
+ return /* @__PURE__ */ jsxs("div", {
113
+ className: cn("@container relative flex min-h-0 flex-1 flex-col", className),
114
+ children: [
115
+ /* @__PURE__ */ jsxs("div", {
116
+ className: "flex shrink-0 items-center justify-end gap-0.5 px-3 pt-1 @3xl:absolute @3xl:right-3 @3xl:top-2 @3xl:z-20 @3xl:p-0",
117
+ children: [
118
+ /* @__PURE__ */ jsx(Button, {
119
+ variant: "ghost",
120
+ size: "icon-compact",
121
+ "aria-label": showWork ? "Hide work" : "Show work",
122
+ "aria-pressed": showWork,
123
+ active: showWork,
124
+ onClick: () => setShowWork(!showWork),
125
+ children: /* @__PURE__ */ jsx(Eye, {})
126
+ }),
127
+ chapters && chapters.length > 0 && /* @__PURE__ */ jsx(chapter_nav_default, {
128
+ chapters
129
+ })
130
+ ]
131
+ }),
132
+ /* @__PURE__ */ jsx(ScrollArea, {
133
+ className: "min-h-0 flex-1",
134
+ viewportClassName: "scroll-fade",
135
+ children: /* @__PURE__ */ jsx(work_summary_default.Provider, {
136
+ open: showWork,
137
+ children: /* @__PURE__ */ jsx("div", {
138
+ ref: column,
139
+ className: "mx-auto flex w-full max-w-3xl flex-col gap-5 px-6 py-6 [contain:inline-size]",
140
+ children
141
+ })
142
+ })
143
+ }),
144
+ !following && /* @__PURE__ */ jsx("div", {
145
+ className: "pointer-events-none relative z-20 mx-auto flex w-full max-w-3xl justify-center px-6",
146
+ children: /* @__PURE__ */ jsxs(Button, {
147
+ variant: "secondary",
148
+ size: "compact",
149
+ className: "pointer-events-auto absolute bottom-2",
150
+ onClick: toEnd,
151
+ children: [
152
+ /* @__PURE__ */ jsx(Down, {}),
153
+ "Latest"
154
+ ]
155
+ })
156
+ }),
157
+ footer && /* @__PURE__ */ jsx("div", {
158
+ className: "mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3",
159
+ children: footer
160
+ })
161
+ ]
162
+ });
163
+ }, {
164
+ User,
165
+ Assistant,
166
+ Work: work_summary_default,
167
+ Thinking: reasoning_default,
168
+ Tools: tool_call_default.Group,
169
+ Tool: tool_call_default,
170
+ Agent: agent_run_default,
171
+ Chapter: chapter_nav_default.Break,
172
+ Mention: message_default.Mention,
173
+ Attachment: message_default.Attachment,
174
+ Working: message_default.Working,
175
+ TaskList: todo_list_default,
176
+ NextStep: recap_default
177
+ });
178
+ var transcript_default = Transcript2;
179
+ export { Transcript2, transcript_default };
@@ -0,0 +1,55 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ Section2,
8
+ Group2,
9
+ Toggles2
10
+ } from "./chunk-5meda998.js";
11
+
12
+ // blocks/settings/plugins/index.tsx
13
+ import Button from "@justanarthur/modo-ui/components/actions/button";
14
+ import Switch from "@justanarthur/modo-ui/components/inputs/switch";
15
+ import { jsx } from "react/jsx-runtime";
16
+ /*!
17
+ * Local addition: the settings screen's skills and plugins section — two
18
+ * runs of switches, skills and plugins, each with how many are on.
19
+ */
20
+ var on = (list) => `${list.filter((p) => p.enabled).length} of ${list.length} on`;
21
+ function Plugins2({ plugins, onBrowse, onToggle }) {
22
+ const Search = useIcon2("search");
23
+ const runs = [
24
+ { title: "Skills", items: plugins.filter((p) => p.kind === "skill") },
25
+ { title: "Plugins", items: plugins.filter((p) => p.kind === "plugin") }
26
+ ];
27
+ return /* @__PURE__ */ jsx(Section2, {
28
+ title: "Skills and plugins",
29
+ lead: "Skills load into a turn when a task calls for them; plugins bundle commands, skills, hooks and panes.",
30
+ actions: /* @__PURE__ */ jsx(Button, {
31
+ size: "compact",
32
+ variant: "tertiary",
33
+ leadingIcon: Search,
34
+ onClick: onBrowse,
35
+ children: "Browse catalog"
36
+ }),
37
+ children: runs.map((run) => /* @__PURE__ */ jsx(Group2, {
38
+ title: run.title,
39
+ aside: /* @__PURE__ */ jsx("span", {
40
+ className: "tabular-nums",
41
+ children: on(run.items)
42
+ }),
43
+ children: /* @__PURE__ */ jsx(Toggles2, {
44
+ label: run.title,
45
+ children: run.items.map((plugin) => /* @__PURE__ */ jsx(Switch, {
46
+ label: plugin.name,
47
+ description: plugin.description,
48
+ defaultChecked: plugin.enabled,
49
+ onCheckedChange: (enabled) => onToggle?.(plugin, enabled)
50
+ }, plugin.name))
51
+ })
52
+ }, run.title))
53
+ });
54
+ }
55
+ export { Plugins2 };
@@ -0,0 +1,67 @@
1
+ import { IconName2 } from "./chunk-13yf0mza.js";
2
+ import { PaneChange2, PaneFile2, PaneShell2, PanePullRequest2, PaneArtifact2, PaneTask2 } from "./chunk-66sh633m.js";
3
+ import { PaneId2, Profile2 } from "./chunk-jkkdq1mh.js";
4
+ import { JSX as JSX_1kxb } from "react";
5
+ declare const PANES2: {
6
+ id: PaneId2;
7
+ label: string;
8
+ icon: IconName2;
9
+ }[];
10
+ /** Every pane's data, handed to the pane blocks. */
11
+ interface SidePaneData2 {
12
+ changes: PaneChange2[];
13
+ file: PaneFile2;
14
+ /** The session's file paths, for the File pane's tree. */
15
+ files?: string[];
16
+ shell: PaneShell2;
17
+ pr: PanePullRequest2;
18
+ artifacts: PaneArtifact2[];
19
+ tasks: PaneTask2[];
20
+ /** The profiles the extensions slot reads usage from. */
21
+ profiles: Profile2[];
22
+ }
23
+ interface SidePaneProps2 {
24
+ /** Every pane's data: changes, the open file, the shell, the pull request, artifacts, tasks and the profiles for usage. */
25
+ data: SidePaneData2;
26
+ /** Controlled open pane. Pair with `onPaneChange`. */
27
+ pane?: PaneId2;
28
+ /** Initial pane, for an uncontrolled side pane. Defaults to `'changes'`. */
29
+ defaultPane?: PaneId2;
30
+ /** Called with the pane picked in the strip. */
31
+ onPaneChange?: (pane: PaneId2) => void;
32
+ /** Called by the close button. */
33
+ onClose?: () => void;
34
+ /** Classes for the root. */
35
+ className?: string;
36
+ }
37
+ type Element_12xgc = JSX_1kxb["Element"];
38
+ /**
39
+ * The room beside the transcript for what the session touches: its
40
+ * changes, a file, a terminal, its pull request, artifacts and background
41
+ * tasks.
42
+ *
43
+ * Pill tabs at the top switch panes; only the picked tab spells out its
44
+ * name, so the strip fits a narrow pane, and the pill melts from tab to
45
+ * tab. The + beside the last tab adds optional panes from plugins (a
46
+ * browser, an iOS simulator); the close button sits at the far edge. The
47
+ * strip is as tall as the session's header, so the two share a line across
48
+ * the window.
49
+ *
50
+ * Every pane speaks one language: a section row with a title, its meta and
51
+ * icon actions, then rows on the control height whose text lines up with
52
+ * the title. Changes splits the files into staged and unstaged with a
53
+ * commit field on top; a row's stage, unstage and revert show on hover, and
54
+ * the picked file's diff wraps its long lines (toggle it to scroll). File
55
+ * shows a path crumb with copy and open. Terminal is a prompt you type at,
56
+ * not a form. The pull request lists its checks: a failed one opens to the
57
+ * tail of its log with Ask Claude to fix, and the merge waits while one
58
+ * fails. Artifacts open on press; tasks stop while they run and retry once
59
+ * they failed or stopped. The last tab is the extensions slot, a pane your
60
+ * own MCP server or plugin provides: here, every profile's limits as pace
61
+ * bars, read against the time until each resets. A pane with nothing in it
62
+ * says so and what lands there.
63
+ *
64
+ * @example {@include ./examples.mdx}
65
+ */
66
+ declare function SidePane2({ data, pane, defaultPane, onPaneChange, onClose, className }: SidePaneProps2): Element_12xgc;
67
+ export { PANES2, SidePaneData2, SidePaneProps2, SidePane2 };
@@ -0,0 +1,29 @@
1
+ import { JSX as JSX_1kxb } from "react";
2
+ interface NotificationSetting2 {
3
+ id: string;
4
+ label: string;
5
+ description: string;
6
+ enabled: boolean;
7
+ }
8
+ interface NotificationGroup2 {
9
+ title: string;
10
+ settings: NotificationSetting2[];
11
+ }
12
+ interface NotificationsProps2 {
13
+ /** Captioned runs of settings, in order ("Notify me when", "Behavior"). */
14
+ groups: NotificationGroup2[];
15
+ /** Called when a setting's switch flips, with its id and new state. */
16
+ onChange?: (id: string, enabled: boolean) => void;
17
+ }
18
+ type Element_12xgc = JSX_1kxb["Element"];
19
+ /**
20
+ * How the app gets your attention while sessions run in the background.
21
+ *
22
+ * Each run is a captioned list of switches with a description under each
23
+ * label: what to be told about (input needed, a turn finished, CI changed)
24
+ * and how (a sound, keeping the Mac awake).
25
+ *
26
+ * @example {@include ./examples.mdx}
27
+ */
28
+ declare function Notifications2({ groups, onChange }: NotificationsProps2): Element_12xgc;
29
+ export { NotificationSetting2, NotificationGroup2, NotificationsProps2, Notifications2 };
@@ -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 };