@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,123 @@
1
+ "use client";
2
+
3
+ import {
4
+ useIcon2
5
+ } from "./chunk-xkchhs2z.js";
6
+ import {
7
+ paceOf2,
8
+ duration2,
9
+ percent2,
10
+ VERDICT_TEXT2
11
+ } from "./chunk-1f96cz69.js";
12
+ import {
13
+ PaceBar2
14
+ } from "./chunk-04a497rr.js";
15
+
16
+ // blocks/profiles/profile-usage/index.tsx
17
+ import Button from "@justanarthur/modo-ui/components/actions/button";
18
+ import List, { LIST_POPOVER } from "@justanarthur/modo-ui/components/data-display/list";
19
+ import Sidebar from "@justanarthur/modo-ui/components/navigation/sidebar";
20
+ import Popover from "@justanarthur/modo-ui/components/overlays/popover";
21
+ import { cn } from "@justanarthur/modo-ui/lib/utils";
22
+ import { SizeProvider } from "@justanarthur/modo-ui/primitives/systems/sizes";
23
+ import { jsx, jsxs } from "react/jsx-runtime";
24
+ /*!
25
+ * Local addition: the AI app's usage at a glance, read against time.
26
+ * One Sidebar row lists every profile by name with its session limit and its
27
+ * tightest weekly limit as pace bars (the share colored by whether it lasts
28
+ * until its reset, a tick where an even spend would be); a press opens one
29
+ * Popover with every limit, its pace and its reset.
30
+ */
31
+ var VERDICT_WORD = { free: "on pace", watch: "only just", tight: "too fast" };
32
+ function glanceLimits(limits) {
33
+ const [session, ...weekly] = limits;
34
+ const worstWeekly = [...weekly].sort((a, b) => b.projected - a.projected)[0];
35
+ return [session, worstWeekly].filter((pace) => pace !== undefined);
36
+ }
37
+ function ProfileUsage2({ profiles, onManage }) {
38
+ const Settings = useIcon2("settings");
39
+ const paces = profiles.map(paceOf2);
40
+ return /* @__PURE__ */ jsx(Sidebar.Menu, {
41
+ "aria-label": "Profile usage",
42
+ children: /* @__PURE__ */ jsx(Sidebar.MenuItem, {
43
+ children: /* @__PURE__ */ jsxs(Popover, {
44
+ children: [
45
+ /* @__PURE__ */ jsx(Popover.Trigger, {
46
+ render: /* @__PURE__ */ jsx(Sidebar.MenuButton, {
47
+ "aria-label": `Usage pace of ${profiles.length} profiles`,
48
+ className: "h-auto py-[var(--space-2)]",
49
+ children: /* @__PURE__ */ jsx("span", {
50
+ className: "grid min-w-0 flex-1 grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] items-center gap-x-[var(--space-2)] gap-y-[var(--space-2)]",
51
+ children: paces.map(({ profile, limits, binding }) => /* @__PURE__ */ jsxs("span", {
52
+ className: "contents",
53
+ children: [
54
+ /* @__PURE__ */ jsx("span", {
55
+ className: cn("truncate text-caption", binding.verdict === "free" ? "text-foreground" : VERDICT_TEXT2[binding.verdict]),
56
+ children: profile.name
57
+ }),
58
+ /* @__PURE__ */ jsx("span", {
59
+ className: "flex flex-col gap-1",
60
+ children: glanceLimits(limits).map((pace) => /* @__PURE__ */ jsx(PaceBar2, {
61
+ pace
62
+ }, pace.limit.label))
63
+ })
64
+ ]
65
+ }, profile.id))
66
+ })
67
+ })
68
+ }),
69
+ /* @__PURE__ */ jsx(Popover.Content, {
70
+ side: "right",
71
+ align: "end",
72
+ sideOffset: 12,
73
+ className: LIST_POPOVER,
74
+ children: /* @__PURE__ */ jsxs(SizeProvider, {
75
+ size: "default",
76
+ children: [
77
+ /* @__PURE__ */ jsx("p", {
78
+ className: "m-0 px-[var(--space-2)] text-caption text-muted-foreground",
79
+ children: "The tick is where an even spend would be by now; a fill past it spends faster than the window refills."
80
+ }),
81
+ paces.map(({ profile, limits, binding }) => /* @__PURE__ */ jsx(List.Section, {
82
+ title: `${profile.name} · ${profile.plan}`,
83
+ aside: /* @__PURE__ */ jsx("span", {
84
+ className: VERDICT_TEXT2[binding.verdict],
85
+ children: VERDICT_WORD[binding.verdict]
86
+ }),
87
+ children: limits.map((pace) => /* @__PURE__ */ jsxs(List.Row, {
88
+ label: pace.limit.label,
89
+ children: [
90
+ /* @__PURE__ */ jsx(PaceBar2, {
91
+ pace,
92
+ className: "w-16"
93
+ }),
94
+ /* @__PURE__ */ jsxs("span", {
95
+ className: "w-24 pr-[var(--space-3)] text-right text-caption tabular-nums text-muted-foreground",
96
+ children: [
97
+ percent2(pace.limit.value),
98
+ " · ",
99
+ duration2(pace.limit.resetsInHours)
100
+ ]
101
+ })
102
+ ]
103
+ }, pace.limit.label))
104
+ }, profile.id)),
105
+ /* @__PURE__ */ jsx("div", {
106
+ className: "flex justify-end",
107
+ children: /* @__PURE__ */ jsx(Button, {
108
+ variant: "ghost",
109
+ size: "compact",
110
+ leadingIcon: Settings,
111
+ onClick: onManage,
112
+ children: "Profiles"
113
+ })
114
+ })
115
+ ]
116
+ })
117
+ })
118
+ ]
119
+ })
120
+ })
121
+ });
122
+ }
123
+ export { ProfileUsage2 };
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from "react";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ type PermissionAnswer2 = "once" | "always" | "deny";
4
+ interface PermissionRequestProps2 {
5
+ /** The tool asking: `Bash`, `Edit`, an MCP tool. */
6
+ tool: string;
7
+ /** What it would run: the command, the path. */
8
+ command: string;
9
+ /** More of what it would do, under the command: a Diff for an edit. */
10
+ detail?: ReactNode;
11
+ /** The rule "Always allow" would add, after its label. */
12
+ rule?: string;
13
+ /** A muted hint on the bottom row: who asks, the keys. Defaults to `'Esc denies'`. */
14
+ hint?: ReactNode;
15
+ /** Called with the answer. */
16
+ onAnswer?: (answer: PermissionAnswer2) => void;
17
+ }
18
+ type Element_12xgc = JSX_1kxb["Element"];
19
+ /**
20
+ * A tool asks for permission to run.
21
+ *
22
+ * The card names the tool and shows what it would run as a code block, with
23
+ * an optional detail under it (a Diff for an edit). The answers sit on the
24
+ * bottom row, the safest first: deny, always allow the `rule`, or allow once.
25
+ *
26
+ * @example {@include ./examples.mdx}
27
+ */
28
+ declare function PermissionRequest2({ tool, command, detail, rule, hint, onAnswer }: PermissionRequestProps2): Element_12xgc;
29
+ export { PermissionAnswer2, PermissionRequestProps2, PermissionRequest2 };
@@ -0,0 +1,35 @@
1
+ import { IconName2 } from "./chunk-13yf0mza.js";
2
+ import { ReactNode } from "react";
3
+ import { JSX as JSX_1kxb } from "react";
4
+ type AgentRunStatus2 = "running" | "done" | "error";
5
+ interface AgentRunProps2 {
6
+ /** The agent's name or type: `Explore`, `researcher`, a custom agent. */
7
+ agent: string;
8
+ /** What it was asked to do, in a few words. */
9
+ description: string;
10
+ /** Where it stands. Defaults to `'done'`. */
11
+ status?: AgentRunStatus2;
12
+ /** Ran detached: the conversation went on without waiting. Defaults to `false`. */
13
+ background?: boolean;
14
+ /** The run's tally: `14 tool uses · 38s`. */
15
+ meta?: string;
16
+ /** The glyph before the name. Defaults to `'bot'`. */
17
+ icon?: IconName2;
18
+ /** Its calls (a `ToolCall.Group`) and its report. */
19
+ children?: ReactNode;
20
+ }
21
+ type Element_12xgc = JSX_1kxb["Element"];
22
+ /**
23
+ * A run an AI handed to another agent: a framed card with what it was asked,
24
+ * its calls and its report.
25
+ *
26
+ * The header names the agent and its task, with the tally and the run's
27
+ * state on the right (the Spinner while it runs, the failed mark on error).
28
+ * A background run carries a badge: the conversation went on without
29
+ * waiting for it. Inside, a `ToolCall.Group` lists its calls and a line of
30
+ * text its report.
31
+ *
32
+ * @example {@include ./examples.mdx}
33
+ */
34
+ declare function AgentRun2({ agent, description, status, background, meta, icon, children }: AgentRunProps2): Element_12xgc;
35
+ export { AgentRunStatus2, AgentRunProps2, AgentRun2 };
@@ -0,0 +1,70 @@
1
+ import { ConfigScope2 } from "./chunk-whsx7yp9.js";
2
+ import { ReactElement } from "react";
3
+ import { JSX as JSX_1kxb } from "react";
4
+ type HookEvent2 = "PreToolUse" | "PostToolUse" | "UserPromptSubmit" | "Notification" | "Stop" | "SubagentStop" | "PreCompact" | "SessionStart" | "SessionEnd";
5
+ /** A hook as the form writes it. */
6
+ interface HookConfig2 {
7
+ event: HookEvent2;
8
+ /** What it fires on: a tool pattern for the tool events, a source for SessionStart and PreCompact, empty for every one. */
9
+ matcher: string;
10
+ command: string;
11
+ /** Seconds before the harness gives up on it. */
12
+ timeout: number;
13
+ scope: ConfigScope2;
14
+ }
15
+ interface HookDialogPanelProps2 {
16
+ /** What the form starts with; editing an existing hook passes it here. Defaults to an empty PreToolUse hook. */
17
+ defaultHook?: Partial<HookConfig2>;
18
+ /** The config dir user-scoped hooks are written to. Defaults to `'~/.claude'`. */
19
+ configDir?: string;
20
+ /** Whether the form edits an existing hook: the title and the button say so. Defaults to `false`. */
21
+ editing?: boolean;
22
+ /** Called with the hook when Save is pressed. */
23
+ onSave?: (hook: HookConfig2) => void;
24
+ /** Called when Cancel is pressed; leave it out and no Cancel shows. */
25
+ onCancel?: () => void;
26
+ /** Classes for the root. */
27
+ className?: string;
28
+ }
29
+ type Element_12xgc = JSX_1kxb["Element"];
30
+ /** The form without the Dialog: for a settings page, or the docs. */
31
+ declare function HookDialogPanel2({ defaultHook, configDir, editing, onSave, onCancel, className }: HookDialogPanelProps2): Element_12xgc;
32
+ interface HookDialogProps2 {
33
+ /** The control that opens it, such as the hooks section's "Add hook" button. */
34
+ trigger?: ReactElement;
35
+ /** Controlled open state. */
36
+ open?: boolean;
37
+ /** Initial open state, for an uncontrolled dialog. Defaults to `false`. */
38
+ defaultOpen?: boolean;
39
+ /** Called when the dialog opens or closes. */
40
+ onOpenChange?: (open: boolean) => void;
41
+ /** What the form starts with; editing an existing hook passes it here. Defaults to an empty PreToolUse hook. */
42
+ defaultHook?: Partial<HookConfig2>;
43
+ /** The config dir user-scoped hooks are written to. Defaults to `'~/.claude'`. */
44
+ configDir?: string;
45
+ /** Whether the form edits an existing hook: the title and the button say so. Defaults to `false`. */
46
+ editing?: boolean;
47
+ /** Called with the hook when Save is pressed; the dialog closes. */
48
+ onSave?: (hook: HookConfig2) => void;
49
+ }
50
+ /**
51
+ * Adds or edits a hook: a command the harness runs on a session event.
52
+ *
53
+ * Pick the event, and the form says when it fires and what its matcher
54
+ * takes: a tool pattern for PreToolUse and PostToolUse, a source for
55
+ * SessionStart and PreCompact; the other events take none, and the field
56
+ * stands disabled. The command is a mono field that grows with it; the
57
+ * timeout takes whole seconds; the scope says which settings file it lands
58
+ * in. Under the form, the settings.json fragment it writes follows every
59
+ * keystroke. The dialog grows out of its trigger; `HookDialog.Panel` is the
60
+ * same form without it.
61
+ *
62
+ * Statics:
63
+ * - `HookDialog.Panel` — the form on its own: the same props, minus the dialog's, plus `onCancel`.
64
+ *
65
+ * @example {@include ./examples.mdx}
66
+ */
67
+ declare const HookDialog2: (({ trigger, open, defaultOpen, onOpenChange, onSave,...panel }: HookDialogProps2) => Element_12xgc) & {
68
+ Panel: typeof HookDialogPanel2;
69
+ };
70
+ export { HookEvent2, HookConfig2, HookDialogPanelProps2, HookDialogPanel2, HookDialogProps2, HookDialog2 };
@@ -0,0 +1,61 @@
1
+ "use client";
2
+
3
+ import {
4
+ PromptCard2
5
+ } from "./chunk-zk0t4vq5.js";
6
+
7
+ // components/prompts/permission-request/index.tsx
8
+ import Button from "@justanarthur/modo-ui/components/actions/button";
9
+ import Code from "@justanarthur/modo-ui/primitives/content/code";
10
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
11
+ /*!
12
+ * Local addition (not part of Fluid Functionalism): an agent's tool asks to
13
+ * run — the command first, then allow once, always allow a rule, or deny.
14
+ */
15
+ function PermissionRequest2({
16
+ tool,
17
+ command,
18
+ detail,
19
+ rule,
20
+ hint = "Esc denies",
21
+ onAnswer
22
+ }) {
23
+ return /* @__PURE__ */ jsxs(PromptCard2, {
24
+ icon: "shield-check",
25
+ title: `Allow ${tool} to run this?`,
26
+ tag: tool,
27
+ hint,
28
+ actions: /* @__PURE__ */ jsxs(Fragment, {
29
+ children: [
30
+ /* @__PURE__ */ jsx(Button, {
31
+ size: "compact",
32
+ variant: "ghost",
33
+ onClick: () => onAnswer?.("deny"),
34
+ children: "Deny"
35
+ }),
36
+ /* @__PURE__ */ jsxs(Button, {
37
+ size: "compact",
38
+ variant: "tertiary",
39
+ onClick: () => onAnswer?.("always"),
40
+ children: [
41
+ "Always allow",
42
+ rule ? ` ${rule}` : ""
43
+ ]
44
+ }),
45
+ /* @__PURE__ */ jsx(Button, {
46
+ size: "compact",
47
+ onClick: () => onAnswer?.("once"),
48
+ children: "Allow once"
49
+ })
50
+ ]
51
+ }),
52
+ children: [
53
+ /* @__PURE__ */ jsx(Code, {
54
+ language: "sh",
55
+ children: command
56
+ }),
57
+ detail
58
+ ]
59
+ });
60
+ }
61
+ export { PermissionRequest2 };
@@ -0,0 +1,53 @@
1
+ import { Profile2, Session2, Project2, Command2, PaletteItem2 } from "./chunk-jkkdq1mh.js";
2
+ import { SettingsWindowSection2 } from "./chunk-k3bv9k1v.js";
3
+ import { ReactElement } from "react";
4
+ import { JSX as JSX_1kxb } from "react";
5
+ interface CommandPaletteProps2 {
6
+ /** The sessions to switch to, most recent first. */
7
+ sessions: Session2[];
8
+ /** The folders a new session can start in. */
9
+ projects: Project2[];
10
+ /** The profiles a new session can run under, and to switch to. */
11
+ profiles: Profile2[];
12
+ /** Slash commands, skills and plugins. */
13
+ commands: Command2[];
14
+ /** Settings sections to open; without them, one row opens the settings. */
15
+ settings?: SettingsWindowSection2[];
16
+ /** The active profile's id: new sessions start under it. Defaults to the first profile. */
17
+ profile?: string;
18
+ /** The current project's path: "New session as …" starts there. Defaults to the first project. */
19
+ project?: string;
20
+ /** Called with the picked row; the palette closes. */
21
+ onSelect?: (item: PaletteItem2) => void;
22
+ /** Controlled open state. */
23
+ open?: boolean;
24
+ /** Initial open state, for an uncontrolled palette. Defaults to `false`. */
25
+ defaultOpen?: boolean;
26
+ /** Called when the palette opens or closes. */
27
+ onOpenChange?: (open: boolean) => void;
28
+ /** The key that toggles it with ⌘ (Ctrl elsewhere); `false` leaves the keyboard alone. Defaults to `'k'`. */
29
+ hotkey?: string | false;
30
+ /** Replaces the Search button. `null` draws no trigger: the hotkey and `open` still work. */
31
+ trigger?: ReactElement | null;
32
+ /** The trigger's label. Defaults to `'Search'`. */
33
+ label?: string;
34
+ /** Classes for the trigger. */
35
+ className?: string;
36
+ }
37
+ type Element_12xgc = JSX_1kxb["Element"];
38
+ /**
39
+ * The AI app's ⌘K palette: one search over sessions, new sessions,
40
+ * commands, panes, settings and profiles.
41
+ *
42
+ * Type to filter every group at once: a session by its title, branch or
43
+ * project; a new session by its project or profile; a command or skill by
44
+ * its name or description. Sessions show their live state (running, waiting
45
+ * on you). New sessions start in each project under the active profile, or
46
+ * under each other profile in the current project. Picking a row hands it to
47
+ * `onSelect` and closes the panel. The panel is Command's: it grows out of
48
+ * the trigger, and ⌘K (Ctrl+K elsewhere) toggles it from anywhere.
49
+ *
50
+ * @example {@include ./examples.mdx}
51
+ */
52
+ declare function CommandPalette2({ sessions, projects, profiles, commands, settings, profile, project, onSelect, open, defaultOpen, onOpenChange, hotkey, trigger, label, className }: CommandPaletteProps2): Element_12xgc;
53
+ export { CommandPaletteProps2, CommandPalette2 };
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from "react";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface ReasoningProps2 {
4
+ /** How long it thought, shown in the row: `"12s"`. */
5
+ duration: string;
6
+ /** The reasoning text, folded until opened. */
7
+ children: ReactNode;
8
+ /** Start unfolded. Defaults to `false`. */
9
+ defaultOpen?: boolean;
10
+ }
11
+ type Element_12xgc = JSX_1kxb["Element"];
12
+ /**
13
+ * The reasoning behind a reply, folded to one row: "Thought for 12s".
14
+ *
15
+ * Press the row and the reasoning morphs out of it (see Accordion), set in
16
+ * the muted color behind a hairline so it reads as an aside, not the answer.
17
+ * The row sits flush with the text around it: its hover fill reaches into
18
+ * the margin instead of indenting the label.
19
+ *
20
+ * @example {@include ./examples.mdx}
21
+ */
22
+ declare function Reasoning2({ duration, children, defaultOpen }: ReasoningProps2): Element_12xgc;
23
+ export { ReasoningProps2, Reasoning2 };
@@ -0,0 +1,36 @@
1
+ import { McpServer2 } from "./chunk-jkkdq1mh.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ interface McpServersProps2 {
4
+ /** The servers the scope's config lists. */
5
+ servers: McpServer2[];
6
+ /** The config dir being edited: where user-scoped servers live. */
7
+ configDir: string;
8
+ /** Server names whose rows start open. Defaults to `[]`. */
9
+ defaultOpen?: string[];
10
+ /** Called when "Add server" is pressed. */
11
+ onAdd?: () => void;
12
+ /** Called with a needs-auth server when its Authenticate is pressed. */
13
+ onAuthenticate?: (server: McpServer2) => void;
14
+ /** Called with a failed server when its Retry is pressed. */
15
+ onRetry?: (server: McpServer2) => void;
16
+ /** Called when an open server's Edit is pressed. */
17
+ onEdit?: (server: McpServer2) => void;
18
+ /** Called when an open server's Enable or Disable is pressed. */
19
+ onToggle?: (server: McpServer2) => void;
20
+ }
21
+ type Element_12xgc = JSX_1kxb["Element"];
22
+ /**
23
+ * The tools the sessions can call: every MCP server in the config dir being
24
+ * edited, with what it needs from you.
25
+ *
26
+ * A row names the server, its transport, scope and tool count, and its state
27
+ * as a badge. A server that needs auth says where it signs in and one that
28
+ * failed shows its error's first line; both keep their fix (Authenticate,
29
+ * Retry) at the row's end, folded to an icon in a narrow window. Press a row
30
+ * and it lifts into a card with the command or URL, the env var names, the
31
+ * tools, and which file the server comes from.
32
+ *
33
+ * @example {@include ./examples.mdx}
34
+ */
35
+ declare function McpServers2({ servers, configDir, defaultOpen, onAdd, onAuthenticate, onRetry, onEdit, onToggle }: McpServersProps2): Element_12xgc;
36
+ export { McpServersProps2, McpServers2 };
@@ -0,0 +1,213 @@
1
+ import { IconName2 } from "./chunk-13yf0mza.js";
2
+ /** The side pane's tabs. */
3
+ type PaneId2 = "changes" | "file" | "terminal" | "pr" | "artifacts" | "tasks" | "extension";
4
+ /** The tools the AI app's mock sessions call. */
5
+ type ToolName2 = "Bash" | "Read" | "Edit" | "Write" | "Grep" | "Glob" | "WebFetch" | "Agent" | "MCP" | "TodoWrite";
6
+ interface UsageLimit2 {
7
+ label: string;
8
+ /** Used share, 0–1. */
9
+ value: number;
10
+ detail: string;
11
+ /** The rolling window's length. */
12
+ windowHours: number;
13
+ /** Time until it resets. */
14
+ resetsInHours: number;
15
+ }
16
+ interface Profile2 {
17
+ id: string;
18
+ name: string;
19
+ /** The CLAUDE_CONFIG_DIR the profile's `claude` process runs with. */
20
+ configDir: string;
21
+ plan: string;
22
+ /** `anthropic` signs in to claude.ai; `compatible` points ANTHROPIC_BASE_URL at another provider. */
23
+ provider: "anthropic" | "compatible";
24
+ /** The base URL of a compatible provider. */
25
+ baseUrl?: string;
26
+ account: string;
27
+ defaultModel: string;
28
+ limits: UsageLimit2[];
29
+ /** Sessions running under the profile right now. */
30
+ running: number;
31
+ }
32
+ type SessionStatus2 = "running" | "waiting" | "unread" | "idle";
33
+ /** What a waiting session asks, as the AgentPrompt that answers it. */
34
+ type SessionPrompt2 = {
35
+ kind: "permission";
36
+ tool: string;
37
+ command: string;
38
+ rule?: string;
39
+ } | {
40
+ kind: "question";
41
+ question: string;
42
+ tag?: string;
43
+ options: {
44
+ label: string;
45
+ description?: string;
46
+ }[];
47
+ };
48
+ /** A turn's work, folded to one row (see Transcript.Work). */
49
+ interface SessionWork2 {
50
+ summary: string;
51
+ detail?: string;
52
+ tools: {
53
+ tool: ToolName2;
54
+ summary: string;
55
+ meta?: string;
56
+ }[];
57
+ }
58
+ interface Session2 {
59
+ id: string;
60
+ title: string;
61
+ status: SessionStatus2;
62
+ profile: string;
63
+ /** Relative time of the last activity. */
64
+ updated: string;
65
+ branch?: string;
66
+ pinned?: boolean;
67
+ /** Linked child sessions started from this one. */
68
+ children?: Session2[];
69
+ /** What a waiting session waits on. */
70
+ waitingOn?: string;
71
+ /** Its task list's progress. */
72
+ tasks?: {
73
+ done: number;
74
+ total: number;
75
+ };
76
+ /** The latest line of its transcript. */
77
+ lastLine?: string;
78
+ /** Its project, when it is listed outside the project's group (pinned). */
79
+ project?: string;
80
+ /** The latest assistant text. */
81
+ reply?: string;
82
+ /** The latest turn's work. */
83
+ work?: SessionWork2;
84
+ /** What it waits on, to answer in place. */
85
+ prompt?: SessionPrompt2;
86
+ }
87
+ interface SessionGroup2 {
88
+ /** A project folder, or a section the user made. */
89
+ label: string;
90
+ kind: "project" | "section";
91
+ path?: string;
92
+ sessions: Session2[];
93
+ }
94
+ /** A folder sessions run in. */
95
+ interface Project2 {
96
+ label: string;
97
+ path: string;
98
+ }
99
+ interface Model2 {
100
+ name: string;
101
+ /** One line on what it is for. */
102
+ note: string;
103
+ }
104
+ interface PermissionMode2 {
105
+ label: string;
106
+ /** What the agent may do without asking. */
107
+ note: string;
108
+ icon: IconName2;
109
+ }
110
+ interface Command2 {
111
+ name: string;
112
+ description: string;
113
+ kind: "command" | "skill" | "plugin";
114
+ }
115
+ interface Change2 {
116
+ path: string;
117
+ status: "added" | "modified" | "deleted";
118
+ added: number;
119
+ removed: number;
120
+ patch: string;
121
+ }
122
+ interface Check2 {
123
+ name: string;
124
+ status: "success" | "running" | "failed";
125
+ detail: string;
126
+ }
127
+ interface Artifact2 {
128
+ title: string;
129
+ kind: string;
130
+ updated: string;
131
+ }
132
+ interface BackgroundTask2 {
133
+ title: string;
134
+ kind: "agent" | "shell" | "session";
135
+ status: "running" | "done" | "failed";
136
+ detail: string;
137
+ }
138
+ interface McpServer2 {
139
+ name: string;
140
+ transport: "stdio" | "http" | "sse";
141
+ status: "connected" | "needs-auth" | "failed" | "disabled";
142
+ tools: number;
143
+ scope: "user" | "project" | "plugin";
144
+ /** The command a stdio server runs, or the URL an http / sse server answers on. */
145
+ target: string;
146
+ /** Env var names passed to the server; values stay in the config. */
147
+ env?: string[];
148
+ /** Tool names, once connected. */
149
+ toolNames?: string[];
150
+ /** Why a failed server stopped: the tail of its stderr. */
151
+ error?: string;
152
+ /** Where a needs-auth server signs in. */
153
+ authHost?: string;
154
+ }
155
+ interface Hook2 {
156
+ event: string;
157
+ matcher: string;
158
+ command: string;
159
+ scope: "user" | "project";
160
+ /** Seconds before the harness gives up on it. */
161
+ timeout?: number;
162
+ /** The latest run: when, and the exit code (non-zero blocks or warns, by event). */
163
+ lastRun?: {
164
+ when: string;
165
+ exit: number;
166
+ };
167
+ }
168
+ interface Plugin2 {
169
+ name: string;
170
+ description: string;
171
+ kind: "plugin" | "skill";
172
+ enabled: boolean;
173
+ }
174
+ interface MemoryFile2 {
175
+ name: string;
176
+ description: string;
177
+ type: "user" | "feedback" | "project" | "reference";
178
+ }
179
+ interface Worktree2 {
180
+ path: string;
181
+ branch: string;
182
+ session: string;
183
+ size: string;
184
+ state: "active" | "merged" | "stale";
185
+ }
186
+ /** What a command palette row stands for, handed back by its `onSelect`. */
187
+ type PaletteItem2 = {
188
+ kind: "session";
189
+ id: string;
190
+ } | {
191
+ kind: "new-session";
192
+ project: string;
193
+ profile: string;
194
+ } | {
195
+ kind: "command";
196
+ name: string;
197
+ } | {
198
+ kind: "pane";
199
+ pane: PaneId2;
200
+ } | {
201
+ kind: "settings";
202
+ section?: string;
203
+ } | {
204
+ kind: "profile";
205
+ id: string;
206
+ } | {
207
+ kind: "profiles";
208
+ } | {
209
+ kind: "search";
210
+ } | {
211
+ kind: "shortcuts";
212
+ };
213
+ export { PaneId2, ToolName2, UsageLimit2, Profile2, SessionStatus2, SessionPrompt2, SessionWork2, Session2, SessionGroup2, Project2, Model2, PermissionMode2, Command2, Change2, Check2, Artifact2, BackgroundTask2, McpServer2, Hook2, Plugin2, MemoryFile2, Worktree2, PaletteItem2 };