@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.
- package/LICENSE +21 -0
- package/LICENSE.fluid-functionalism +21 -0
- package/README.md +105 -2
- package/blocks/conversation/agent-prompt/examples.mdx +44 -0
- package/blocks/conversation/agent-prompt/index.tsx +114 -0
- package/blocks/conversation/composer/draft.css +25 -0
- package/blocks/conversation/composer/draft.tsx +589 -0
- package/blocks/conversation/composer/examples.mdx +164 -0
- package/blocks/conversation/composer/file-preview-tile.tsx +59 -0
- package/blocks/conversation/composer/file-thumbnail.tsx +146 -0
- package/blocks/conversation/composer/index.tsx +651 -0
- package/blocks/conversation/composer/queued-row.tsx +102 -0
- package/blocks/conversation/composer/shared.ts +38 -0
- package/blocks/conversation/composer/suggestion-row.tsx +64 -0
- package/blocks/conversation/composer/use-composer-files.ts +142 -0
- package/blocks/conversation/composer/use-history-nav.ts +60 -0
- package/blocks/conversation/composer/use-message-queue.ts +108 -0
- package/blocks/conversation/composer/use-region-height.ts +34 -0
- package/blocks/conversation/failure-states/examples.mdx +58 -0
- package/blocks/conversation/failure-states/index.tsx +274 -0
- package/blocks/conversation/transcript/examples.mdx +43 -0
- package/blocks/conversation/transcript/index.tsx +206 -0
- package/blocks/conversation/transcript-search/examples.mdx +50 -0
- package/blocks/conversation/transcript-search/index.tsx +469 -0
- package/blocks/dialogs/command-palette/examples.mdx +50 -0
- package/blocks/dialogs/command-palette/index.tsx +239 -0
- package/blocks/dialogs/hook-dialog/examples.mdx +44 -0
- package/blocks/dialogs/hook-dialog/index.tsx +286 -0
- package/blocks/dialogs/mcp-server-dialog/examples.mdx +57 -0
- package/blocks/dialogs/mcp-server-dialog/index.tsx +415 -0
- package/blocks/dialogs/shortcuts-sheet/examples.mdx +36 -0
- package/blocks/dialogs/shortcuts-sheet/index.tsx +186 -0
- package/blocks/panes/artifacts-pane/examples.mdx +23 -0
- package/blocks/panes/artifacts-pane/index.tsx +82 -0
- package/blocks/panes/changes-pane/examples.mdx +23 -0
- package/blocks/panes/changes-pane/index.tsx +248 -0
- package/blocks/panes/file-pane/examples.mdx +13 -0
- package/blocks/panes/file-pane/index.tsx +102 -0
- package/blocks/panes/pr-pane/examples.mdx +13 -0
- package/blocks/panes/pr-pane/index.tsx +191 -0
- package/blocks/panes/side-pane/examples.mdx +58 -0
- package/blocks/panes/side-pane/index.tsx +187 -0
- package/blocks/panes/tasks-pane/examples.mdx +23 -0
- package/blocks/panes/tasks-pane/index.tsx +127 -0
- package/blocks/panes/terminal-pane/examples.mdx +13 -0
- package/blocks/panes/terminal-pane/index.tsx +99 -0
- package/blocks/panes/usage-pane/examples.mdx +23 -0
- package/blocks/panes/usage-pane/index.tsx +78 -0
- package/blocks/profiles/profile-onboarding/examples.mdx +80 -0
- package/blocks/profiles/profile-onboarding/index.tsx +580 -0
- package/blocks/profiles/profile-switcher/examples.mdx +29 -0
- package/blocks/profiles/profile-switcher/index.tsx +212 -0
- package/blocks/profiles/profile-usage/examples.mdx +41 -0
- package/blocks/profiles/profile-usage/index.tsx +141 -0
- package/blocks/sessions/inbox/examples.mdx +35 -0
- package/blocks/sessions/inbox/index.tsx +372 -0
- package/blocks/sessions/session-board/examples.mdx +34 -0
- package/blocks/sessions/session-board/index.tsx +570 -0
- package/blocks/sessions/session-sidebar/examples.mdx +93 -0
- package/blocks/sessions/session-sidebar/index.tsx +497 -0
- package/blocks/settings/extensions/examples.mdx +10 -0
- package/blocks/settings/extensions/index.tsx +72 -0
- package/blocks/settings/hooks/examples.mdx +16 -0
- package/blocks/settings/hooks/index.tsx +127 -0
- package/blocks/settings/mcp-servers/examples.mdx +26 -0
- package/blocks/settings/mcp-servers/index.tsx +204 -0
- package/blocks/settings/memory/examples.mdx +22 -0
- package/blocks/settings/memory/index.tsx +113 -0
- package/blocks/settings/notifications/examples.mdx +8 -0
- package/blocks/settings/notifications/index.tsx +63 -0
- package/blocks/settings/permission-rules/examples.mdx +37 -0
- package/blocks/settings/permission-rules/index.tsx +317 -0
- package/blocks/settings/plugin-catalog/examples.mdx +52 -0
- package/blocks/settings/plugin-catalog/index.tsx +407 -0
- package/blocks/settings/plugins/examples.mdx +10 -0
- package/blocks/settings/plugins/index.tsx +72 -0
- package/blocks/settings/settings-window/examples.mdx +40 -0
- package/blocks/settings/settings-window/index.tsx +188 -0
- package/blocks/settings/worktrees/examples.mdx +17 -0
- package/blocks/settings/worktrees/index.tsx +145 -0
- package/components/conversation/agent-run/examples.mdx +38 -0
- package/components/conversation/agent-run/index.tsx +83 -0
- package/components/conversation/chapter-nav/examples.mdx +30 -0
- package/components/conversation/chapter-nav/index.tsx +123 -0
- package/components/conversation/message/examples.mdx +53 -0
- package/components/conversation/message/index.tsx +130 -0
- package/components/conversation/message/working.tsx +102 -0
- package/components/conversation/reasoning/examples.mdx +32 -0
- package/components/conversation/reasoning/index.tsx +55 -0
- package/components/conversation/recap/examples.mdx +21 -0
- package/components/conversation/recap/index.tsx +67 -0
- package/components/conversation/todo-list/examples.mdx +32 -0
- package/components/conversation/todo-list/index.tsx +106 -0
- package/components/conversation/tool-call/examples.mdx +48 -0
- package/components/conversation/tool-call/index.tsx +142 -0
- package/components/conversation/work-summary/examples.mdx +50 -0
- package/components/conversation/work-summary/index.tsx +87 -0
- package/components/prompts/permission-request/examples.mdx +32 -0
- package/components/prompts/permission-request/index.tsx +74 -0
- package/components/prompts/plan-approval/examples.mdx +37 -0
- package/components/prompts/plan-approval/index.tsx +76 -0
- package/components/prompts/prompt-card/examples.mdx +31 -0
- package/components/prompts/prompt-card/index.tsx +82 -0
- package/components/prompts/question-prompt/examples.mdx +46 -0
- package/components/prompts/question-prompt/index.tsx +118 -0
- package/dist/blocks/conversation/agent-prompt/index.d.ts +7 -0
- package/dist/blocks/conversation/agent-prompt/index.js +13 -0
- package/dist/blocks/conversation/composer/index.d.ts +4 -0
- package/dist/blocks/conversation/composer/index.js +16 -0
- package/dist/blocks/conversation/failure-states/index.d.ts +4 -0
- package/dist/blocks/conversation/failure-states/index.js +8 -0
- package/dist/blocks/conversation/transcript/index.d.ts +50 -0
- package/dist/blocks/conversation/transcript/index.js +17 -0
- package/dist/blocks/conversation/transcript-search/index.d.ts +4 -0
- package/dist/blocks/conversation/transcript-search/index.js +11 -0
- package/dist/blocks/dialogs/command-palette/index.d.ts +5 -0
- package/dist/blocks/dialogs/command-palette/index.js +20 -0
- package/dist/blocks/dialogs/hook-dialog/index.d.ts +3 -0
- package/dist/blocks/dialogs/hook-dialog/index.js +12 -0
- package/dist/blocks/dialogs/mcp-server-dialog/index.d.ts +5 -0
- package/dist/blocks/dialogs/mcp-server-dialog/index.js +12 -0
- package/dist/blocks/dialogs/shortcuts-sheet/index.d.ts +2 -0
- package/dist/blocks/dialogs/shortcuts-sheet/index.js +11 -0
- package/dist/blocks/panes/artifacts-pane/index.d.ts +3 -0
- package/dist/blocks/panes/artifacts-pane/index.js +9 -0
- package/dist/blocks/panes/changes-pane/index.d.ts +3 -0
- package/dist/blocks/panes/changes-pane/index.js +9 -0
- package/dist/blocks/panes/file-pane/index.d.ts +3 -0
- package/dist/blocks/panes/file-pane/index.js +9 -0
- package/dist/blocks/panes/pr-pane/index.d.ts +3 -0
- package/dist/blocks/panes/pr-pane/index.js +10 -0
- package/dist/blocks/panes/side-pane/index.d.ts +5 -0
- package/dist/blocks/panes/side-pane/index.js +21 -0
- package/dist/blocks/panes/tasks-pane/index.d.ts +3 -0
- package/dist/blocks/panes/tasks-pane/index.js +10 -0
- package/dist/blocks/panes/terminal-pane/index.d.ts +3 -0
- package/dist/blocks/panes/terminal-pane/index.js +9 -0
- package/dist/blocks/panes/usage-pane/index.d.ts +4 -0
- package/dist/blocks/panes/usage-pane/index.js +11 -0
- package/dist/blocks/profiles/profile-onboarding/index.d.ts +4 -0
- package/dist/blocks/profiles/profile-onboarding/index.js +11 -0
- package/dist/blocks/profiles/profile-switcher/index.d.ts +4 -0
- package/dist/blocks/profiles/profile-switcher/index.js +12 -0
- package/dist/blocks/profiles/profile-usage/index.d.ts +4 -0
- package/dist/blocks/profiles/profile-usage/index.js +10 -0
- package/dist/blocks/sessions/inbox/index.d.ts +2 -0
- package/dist/blocks/sessions/inbox/index.js +11 -0
- package/dist/blocks/sessions/session-board/index.d.ts +4 -0
- package/dist/blocks/sessions/session-board/index.js +27 -0
- package/dist/blocks/sessions/session-sidebar/index.d.ts +5 -0
- package/dist/blocks/sessions/session-sidebar/index.js +15 -0
- package/dist/blocks/settings/extensions/index.d.ts +2 -0
- package/dist/blocks/settings/extensions/index.js +9 -0
- package/dist/blocks/settings/hooks/index.d.ts +4 -0
- package/dist/blocks/settings/hooks/index.js +9 -0
- package/dist/blocks/settings/mcp-servers/index.d.ts +4 -0
- package/dist/blocks/settings/mcp-servers/index.js +9 -0
- package/dist/blocks/settings/memory/index.d.ts +4 -0
- package/dist/blocks/settings/memory/index.js +8 -0
- package/dist/blocks/settings/notifications/index.d.ts +2 -0
- package/dist/blocks/settings/notifications/index.js +8 -0
- package/dist/blocks/settings/permission-rules/index.d.ts +3 -0
- package/dist/blocks/settings/permission-rules/index.js +10 -0
- package/dist/blocks/settings/plugin-catalog/index.d.ts +2 -0
- package/dist/blocks/settings/plugin-catalog/index.js +11 -0
- package/dist/blocks/settings/plugins/index.d.ts +4 -0
- package/dist/blocks/settings/plugins/index.js +9 -0
- package/dist/blocks/settings/settings-window/index.d.ts +4 -0
- package/dist/blocks/settings/settings-window/index.js +8 -0
- package/dist/blocks/settings/worktrees/index.d.ts +4 -0
- package/dist/blocks/settings/worktrees/index.js +9 -0
- package/dist/components/conversation/agent-run/index.d.ts +3 -0
- package/dist/components/conversation/agent-run/index.js +10 -0
- package/dist/components/conversation/chapter-nav/index.d.ts +2 -0
- package/dist/components/conversation/chapter-nav/index.js +11 -0
- package/dist/components/conversation/message/index.d.ts +2 -0
- package/dist/components/conversation/message/index.js +15 -0
- package/dist/components/conversation/reasoning/index.d.ts +2 -0
- package/dist/components/conversation/reasoning/index.js +8 -0
- package/dist/components/conversation/recap/index.d.ts +2 -0
- package/dist/components/conversation/recap/index.js +9 -0
- package/dist/components/conversation/todo-list/index.d.ts +2 -0
- package/dist/components/conversation/todo-list/index.js +9 -0
- package/dist/components/conversation/tool-call/index.d.ts +3 -0
- package/dist/components/conversation/tool-call/index.js +13 -0
- package/dist/components/conversation/work-summary/index.d.ts +2 -0
- package/dist/components/conversation/work-summary/index.js +10 -0
- package/dist/components/prompts/permission-request/index.d.ts +2 -0
- package/dist/components/prompts/permission-request/index.js +9 -0
- package/dist/components/prompts/plan-approval/index.d.ts +2 -0
- package/dist/components/prompts/plan-approval/index.js +9 -0
- package/dist/components/prompts/prompt-card/index.d.ts +3 -0
- package/dist/components/prompts/prompt-card/index.js +8 -0
- package/dist/components/prompts/question-prompt/index.d.ts +2 -0
- package/dist/components/prompts/question-prompt/index.js +9 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +231 -0
- package/dist/lib/config-parts.d.ts +2 -0
- package/dist/lib/config-parts.js +16 -0
- package/dist/lib/icons.d.ts +2 -0
- package/dist/lib/icons.js +10 -0
- package/dist/lib/pace-bar.d.ts +11 -0
- package/dist/lib/pace-bar.js +6 -0
- package/dist/lib/pace.d.ts +4 -0
- package/dist/lib/pace.js +14 -0
- package/dist/lib/pane-parts.d.ts +25 -0
- package/dist/lib/pane-parts.js +11 -0
- package/dist/lib/row-trigger.d.ts +5 -0
- package/dist/lib/row-trigger.js +7 -0
- package/dist/lib/settings-parts.d.ts +70 -0
- package/dist/lib/settings-parts.js +24 -0
- package/dist/lib/side-pane-types.d.ts +2 -0
- package/dist/lib/side-pane-types.js +1 -0
- package/dist/lib/status-glyph.d.ts +8 -0
- package/dist/lib/status-glyph.js +12 -0
- package/dist/lib/types.d.ts +3 -0
- package/dist/lib/types.js +1 -0
- package/dist/shared/chunk-04a497rr.js +21 -0
- package/dist/shared/chunk-13yf0mza.d.ts +70 -0
- package/dist/shared/chunk-1hzrm8r5.d.ts +51 -0
- package/dist/shared/chunk-1qdwg7w5.d.ts +81 -0
- package/dist/shared/chunk-1yt061np.d.ts +64 -0
- package/dist/shared/chunk-218qabm5.js +250 -0
- package/dist/shared/chunk-2fk5aq60.js +313 -0
- package/dist/shared/chunk-3ps5h55t.d.ts +30 -0
- package/dist/shared/chunk-3yaftgh0.d.ts +28 -0
- package/dist/shared/chunk-4zvhpf2x.js +55 -0
- package/dist/shared/chunk-57hzzmjd.d.ts +67 -0
- package/dist/shared/chunk-58jh3mje.js +46 -0
- package/dist/shared/chunk-58qvny6a.d.ts +29 -0
- package/dist/shared/chunk-5fhkkn39.js +130 -0
- package/dist/shared/chunk-5hw0525a.d.ts +33 -0
- package/dist/shared/chunk-5meda998.js +238 -0
- package/dist/shared/chunk-5pqksw7z.js +91 -0
- package/dist/shared/chunk-6220dy5n.js +70 -0
- package/dist/shared/chunk-64bnh22t.d.ts +59 -0
- package/dist/shared/chunk-66sh633m.d.ts +60 -0
- package/dist/shared/chunk-6cmf27g3.d.ts +81 -0
- package/dist/shared/chunk-6kwk9vag.js +558 -0
- package/dist/shared/chunk-6rdwkymk.js +177 -0
- package/dist/shared/chunk-71j8qzvb.d.ts +57 -0
- package/dist/shared/chunk-74bvf3tw.d.ts +21 -0
- package/dist/shared/chunk-75zwypyr.d.ts +43 -0
- package/dist/shared/chunk-7mfer3tp.js +176 -0
- package/dist/shared/chunk-7rzjmcnh.d.ts +30 -0
- package/dist/shared/chunk-7zvb39cf.d.ts +26 -0
- package/dist/shared/chunk-8mecznyr.js +357 -0
- package/dist/shared/chunk-8pag6vmd.js +255 -0
- package/dist/shared/chunk-94grzz9f.js +187 -0
- package/dist/shared/chunk-9kw6m047.d.ts +32 -0
- package/dist/shared/chunk-at0jje23.d.ts +110 -0
- package/dist/shared/chunk-awd573h9.js +34 -0
- package/dist/shared/chunk-b171wjge.d.ts +25 -0
- package/dist/shared/chunk-b4dz15em.d.ts +36 -0
- package/dist/shared/chunk-b5ccp5de.js +35 -0
- package/dist/shared/chunk-bh2b5d1z.js +98 -0
- package/dist/shared/chunk-c36qvrwq.d.ts +30 -0
- package/dist/shared/chunk-c8wp058j.js +153 -0
- package/dist/shared/chunk-d2t72h4x.d.ts +35 -0
- package/dist/shared/chunk-dh3qy5fj.js +49 -0
- package/dist/shared/chunk-dxzrtvt9.d.ts +283 -0
- package/dist/shared/chunk-e46apgve.d.ts +40 -0
- package/dist/shared/chunk-ejtknc0w.js +21 -0
- package/dist/shared/chunk-eqajdxn8.js +82 -0
- package/dist/shared/chunk-fapc805j.js +130 -0
- package/dist/shared/chunk-fm1qyrae.d.ts +68 -0
- package/dist/shared/chunk-fqhcz6ss.d.ts +29 -0
- package/dist/shared/chunk-g88hweqh.d.ts +70 -0
- package/dist/shared/chunk-gb5ee5dw.d.ts +88 -0
- package/dist/shared/chunk-gewnsgza.js +61 -0
- package/dist/shared/chunk-hxjgey30.d.ts +36 -0
- package/dist/shared/chunk-jkkdq1mh.d.ts +213 -0
- package/dist/shared/chunk-jpq101w3.js +91 -0
- package/dist/shared/chunk-k3bv9k1v.d.ts +56 -0
- package/dist/shared/chunk-kreypnzp.d.ts +34 -0
- package/dist/shared/chunk-mnzw0bav.js +80 -0
- package/dist/shared/chunk-mrb3fp2f.d.ts +30 -0
- package/dist/shared/chunk-n1qq2wp9.js +6 -0
- package/dist/shared/chunk-n31qwnj2.js +1544 -0
- package/dist/shared/chunk-n4742y54.js +39 -0
- package/dist/shared/chunk-ndjvdkv7.d.ts +29 -0
- package/dist/shared/chunk-njf851p1.js +245 -0
- package/dist/shared/chunk-nk4578dr.js +73 -0
- package/dist/shared/chunk-nkbgg7bw.d.ts +24 -0
- package/dist/shared/chunk-nvh33x9x.js +488 -0
- package/dist/shared/chunk-paezqfg1.js +106 -0
- package/dist/shared/chunk-qemm9e3r.d.ts +21 -0
- package/dist/shared/chunk-qhxz1etk.js +96 -0
- package/dist/shared/chunk-qj5ev9ak.js +531 -0
- package/dist/shared/chunk-qnwggvjy.js +150 -0
- package/dist/shared/chunk-qt31n444.js +178 -0
- package/dist/shared/chunk-r5hz78pb.js +129 -0
- package/dist/shared/chunk-r6nb21kz.d.ts +102 -0
- package/dist/shared/chunk-rqrpvvz4.d.ts +107 -0
- package/dist/shared/chunk-s3r759ec.js +80 -0
- package/dist/shared/chunk-sdtjrw9w.d.ts +98 -0
- package/dist/shared/chunk-skg3m9m0.js +56 -0
- package/dist/shared/chunk-t21t9x7e.js +188 -0
- package/dist/shared/chunk-tc75ng2c.js +235 -0
- package/dist/shared/chunk-tkx1krwc.js +88 -0
- package/dist/shared/chunk-tprdqtb1.d.ts +30 -0
- package/dist/shared/chunk-tv9a1sek.js +137 -0
- package/dist/shared/chunk-tvbd27hg.d.ts +43 -0
- package/dist/shared/chunk-ty2ccknv.d.ts +54 -0
- package/dist/shared/chunk-v6yevw62.d.ts +28 -0
- package/dist/shared/chunk-v9q38p0x.js +258 -0
- package/dist/shared/chunk-vgh4f3sv.js +118 -0
- package/dist/shared/chunk-vjht1zn1.js +391 -0
- package/dist/shared/chunk-vsrkb0sp.d.ts +21 -0
- package/dist/shared/chunk-whsx7yp9.d.ts +37 -0
- package/dist/shared/chunk-wq9h37gy.js +86 -0
- package/dist/shared/chunk-x7az5x1y.d.ts +57 -0
- package/dist/shared/chunk-x9jf26yb.js +318 -0
- package/dist/shared/chunk-xbrrt07s.d.ts +23 -0
- package/dist/shared/chunk-xkchhs2z.js +129 -0
- package/dist/shared/chunk-xzfrskd7.js +202 -0
- package/dist/shared/chunk-y4cj4y54.js +423 -0
- package/dist/shared/chunk-y934at6m.js +7 -0
- package/dist/shared/chunk-zbpwhpjy.d.ts +75 -0
- package/dist/shared/chunk-zfhmbb7n.js +63 -0
- package/dist/shared/chunk-zk0t4vq5.js +71 -0
- package/dist/shared/chunk-znp9gna7.d.ts +23 -0
- package/dist/styles.css +467 -0
- package/index.ts +49 -0
- package/lib/config-parts.tsx +97 -0
- package/lib/icons.tsx +149 -0
- package/lib/pace-bar.tsx +24 -0
- package/lib/pace.ts +78 -0
- package/lib/pane-parts.tsx +76 -0
- package/lib/row-trigger.tsx +44 -0
- package/lib/settings-parts.tsx +232 -0
- package/lib/side-pane-types.ts +75 -0
- package/lib/status-glyph.tsx +25 -0
- package/lib/types.ts +204 -0
- package/mock/demo-reply.tsx +33 -0
- package/mock/demo-session.tsx +150 -0
- package/mock/mock-config.ts +173 -0
- package/mock/mock-extras.ts +288 -0
- package/mock/mock-panes.ts +190 -0
- package/mock/mock-settings.ts +92 -0
- package/mock/mock.ts +548 -0
- package/mock/screen-frame.tsx +49 -0
- package/package.json +114 -4
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Profile2, Session2, SessionGroup2 } from "./chunk-jkkdq1mh.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
/** Which sessions the board shows: all, or one state, project or profile. */
|
|
4
|
+
type SessionFilter2 = "all" | `state:${SessionStatus}` | `project:${string}` | `profile:${string}`;
|
|
5
|
+
type BoardView2 = "project" | "state";
|
|
6
|
+
interface SessionBoardProps2 {
|
|
7
|
+
/** Pinned sessions, first as in the sidebar. */
|
|
8
|
+
pinned: Session2[];
|
|
9
|
+
/** Projects and sections with their sessions, in the sidebar's order. */
|
|
10
|
+
groups: SessionGroup2[];
|
|
11
|
+
/** Archived sessions, folded at the bottom. */
|
|
12
|
+
archived: Session2[];
|
|
13
|
+
/** The profiles the sessions run under, for each row's tile. */
|
|
14
|
+
profiles: Profile2[];
|
|
15
|
+
/** Controlled view. Pair with `onViewChange`. */
|
|
16
|
+
view?: BoardView2;
|
|
17
|
+
/** Initial view: the sidebar's groups, or by what each session needs. Defaults to `'project'`. */
|
|
18
|
+
defaultView?: BoardView2;
|
|
19
|
+
/** Called with the new view. */
|
|
20
|
+
onViewChange?: (view: BoardView2) => void;
|
|
21
|
+
/** Controlled filter. Pair with `onFilterChange`. */
|
|
22
|
+
filter?: SessionFilter2;
|
|
23
|
+
/** Initial filter: every session, or one state, project or profile (`'state:waiting'`, `'project:modo'`, `'profile:work'`). Defaults to `'all'`. */
|
|
24
|
+
defaultFilter?: SessionFilter2;
|
|
25
|
+
/** Called with the new filter, `'all'` when "Show all" is pressed. */
|
|
26
|
+
onFilterChange?: (filter: SessionFilter2) => void;
|
|
27
|
+
/** Controlled open rows, by session id. Pair with `onOpenChange`. */
|
|
28
|
+
open?: string[];
|
|
29
|
+
/** Rows open at first, by session id. Defaults to none. */
|
|
30
|
+
defaultOpen?: string[];
|
|
31
|
+
/** Called with the open rows. */
|
|
32
|
+
onOpenChange?: (open: string[]) => void;
|
|
33
|
+
/** Called with a session id when its "Open session" is pressed. */
|
|
34
|
+
onOpen?: (id: string) => void;
|
|
35
|
+
/** Called when a row answers, stops or marks its session. The board applies the change itself; pass it on to keep other views (the sidebar's counts) in step. */
|
|
36
|
+
onPatch?: (id: string, patch: Partial<Session2>) => void;
|
|
37
|
+
/** Classes for the root. */
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
41
|
+
/**
|
|
42
|
+
* The sessions sidebar, widened into a control room: every session of
|
|
43
|
+
* every profile, what each is doing, and the controls to move it on without
|
|
44
|
+
* leaving the page.
|
|
45
|
+
*
|
|
46
|
+
* The rows are the sidebar's: pinned first, a group per project and per
|
|
47
|
+
* section you made, the archive folded; the same run-state glyphs and
|
|
48
|
+
* titles, linked children indented under their parent. Widened, a row also
|
|
49
|
+
* names its profile and project, says in one line what the session waits
|
|
50
|
+
* on or where its task list stands, and shows its last activity. What
|
|
51
|
+
* needs no reading sits at the row's end: allow or deny a permission, stop
|
|
52
|
+
* a run, mark a reply read. "By state" regroups the same rows by what each
|
|
53
|
+
* needs from you: needs you, running, to review, idle.
|
|
54
|
+
*
|
|
55
|
+
* Press a row and it opens in place into a small live session: the latest
|
|
56
|
+
* turn's work folded to one row, the latest reply, task progress while it
|
|
57
|
+
* runs, the pending prompt to answer right there, a reply box and "Open
|
|
58
|
+
* session". An open row lifts off the list into a card (one surface step up,
|
|
59
|
+
* with its shadow and a gap above and below), the row its header and the
|
|
60
|
+
* session its body, so several open at once stay separate units while the
|
|
61
|
+
* closed rows stay a dense list; one hover highlight runs down the whole
|
|
62
|
+
* board. Answer a prompt and the row goes back to running.
|
|
63
|
+
*
|
|
64
|
+
* \`filter\` narrows the board to one state (\`'state:waiting'\`), project
|
|
65
|
+
* (\`'project:modo'\`) or profile (\`'profile:work'\`); the summary line then
|
|
66
|
+
* names it, counts what it shows and offers "Show all". \`onPatch\` reports
|
|
67
|
+
* every answer, stop or mark-read, so a view beside the board (the overview's
|
|
68
|
+
* sidebar counts) can follow.
|
|
69
|
+
*
|
|
70
|
+
* Put it inside an \`@container\`: columns and labels fold away as it narrows.
|
|
71
|
+
*
|
|
72
|
+
* @example {@include ./examples.mdx}
|
|
73
|
+
*/
|
|
74
|
+
declare function SessionBoard2({ pinned, groups, archived, profiles, view, defaultView, onViewChange, filter, defaultFilter, onFilterChange, open, defaultOpen, onOpenChange, onOpen, onPatch, className }: SessionBoardProps2): Element_12xgc;
|
|
75
|
+
export { SessionFilter2, BoardView2, SessionBoardProps2, SessionBoard2 };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/conversation/work-summary/index.tsx
|
|
4
|
+
import Accordion from "@justanarthur/modo-ui/components/containers/accordion";
|
|
5
|
+
import { Spinner } from "@justanarthur/modo-ui/components/feedback/progress";
|
|
6
|
+
import { createContext, useContext } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
/*!
|
|
9
|
+
* Local addition (not part of Fluid Functionalism): an AI turn's work folded
|
|
10
|
+
* to one row ("Worked for 52s · 4 tool calls") on an Accordion, with a
|
|
11
|
+
* provider that opens every fold at once. Generalised from the AI app's
|
|
12
|
+
* transcript.
|
|
13
|
+
*/
|
|
14
|
+
var ShowWorkContext = createContext(false);
|
|
15
|
+
function WorkSummaryProvider2({ open, children }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(ShowWorkContext.Provider, {
|
|
17
|
+
value: open,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
var WorkSummary2 = Object.assign(function WorkSummary({ summary, detail, running = false, children }) {
|
|
22
|
+
const showWork = useContext(ShowWorkContext);
|
|
23
|
+
return /* @__PURE__ */ jsx(Accordion, {
|
|
24
|
+
type: "single",
|
|
25
|
+
collapsible: true,
|
|
26
|
+
defaultValue: showWork ? "work" : undefined,
|
|
27
|
+
size: "compact",
|
|
28
|
+
className: "-mx-2.5 w-auto max-w-none",
|
|
29
|
+
children: /* @__PURE__ */ jsxs(Accordion.Item, {
|
|
30
|
+
value: "work",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Accordion.Trigger, {
|
|
33
|
+
className: "[&>span:first-child]:min-w-0",
|
|
34
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
35
|
+
className: "flex min-w-0 items-center gap-2",
|
|
36
|
+
children: [
|
|
37
|
+
running && /* @__PURE__ */ jsx(Spinner, {
|
|
38
|
+
className: "size-3.5"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx("span", {
|
|
41
|
+
className: "shrink-0",
|
|
42
|
+
children: summary
|
|
43
|
+
}),
|
|
44
|
+
detail && /* @__PURE__ */ jsx("span", {
|
|
45
|
+
className: "min-w-0 truncate weight-normal text-muted-foreground",
|
|
46
|
+
children: detail
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
})
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsx(Accordion.Content, {
|
|
52
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
53
|
+
className: "flex flex-col gap-2 border-l border-border pb-1 pl-[var(--space-3)]",
|
|
54
|
+
children
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
})
|
|
59
|
+
}, String(showWork));
|
|
60
|
+
}, { Provider: WorkSummaryProvider2 });
|
|
61
|
+
var work_summary_default = WorkSummary2;
|
|
62
|
+
|
|
63
|
+
export { WorkSummaryProvider2, WorkSummary2, work_summary_default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcon2
|
|
5
|
+
} from "./chunk-xkchhs2z.js";
|
|
6
|
+
|
|
7
|
+
// components/prompts/prompt-card/index.tsx
|
|
8
|
+
import Badge from "@justanarthur/modo-ui/components/data-display/badge";
|
|
9
|
+
import { useShape } from "@justanarthur/modo-ui/lib/shape-context";
|
|
10
|
+
import { cn } from "@justanarthur/modo-ui/lib/utils";
|
|
11
|
+
import Elevated from "@justanarthur/modo-ui/primitives/systems/surface";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
/*!
|
|
14
|
+
* Local addition (not part of Fluid Functionalism): the lifted frame an
|
|
15
|
+
* agent's prompts share — two surface levels up with a popup's shadow, a
|
|
16
|
+
* glyph and one line of what is asked, the body, then hint and answers.
|
|
17
|
+
*/
|
|
18
|
+
function PromptCard2({
|
|
19
|
+
title,
|
|
20
|
+
icon = "circle-alert",
|
|
21
|
+
tag,
|
|
22
|
+
children,
|
|
23
|
+
actions,
|
|
24
|
+
hint,
|
|
25
|
+
className
|
|
26
|
+
}) {
|
|
27
|
+
const shape = useShape();
|
|
28
|
+
const Icon = useIcon2(icon);
|
|
29
|
+
return /* @__PURE__ */ jsxs(Elevated, {
|
|
30
|
+
offset: 2,
|
|
31
|
+
shadowLevel: 3,
|
|
32
|
+
className: cn("flex flex-col gap-3 p-[var(--space-3)]", shape.container, className),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsxs("div", {
|
|
35
|
+
className: "flex min-w-0 items-center gap-2",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
38
|
+
size: 16,
|
|
39
|
+
strokeWidth: 1.5,
|
|
40
|
+
className: "shrink-0 text-muted-foreground"
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsx("span", {
|
|
43
|
+
className: "min-w-0 text-body weight-medium text-foreground",
|
|
44
|
+
children: title
|
|
45
|
+
}),
|
|
46
|
+
tag && /* @__PURE__ */ jsx(Badge, {
|
|
47
|
+
size: "compact",
|
|
48
|
+
color: "gray",
|
|
49
|
+
className: "shrink-0",
|
|
50
|
+
children: tag
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
}),
|
|
54
|
+
children,
|
|
55
|
+
(actions || hint) && /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
className: "flex flex-wrap items-center gap-2",
|
|
57
|
+
children: [
|
|
58
|
+
hint && /* @__PURE__ */ jsx("span", {
|
|
59
|
+
className: "min-w-0 flex-1 text-caption text-muted-foreground",
|
|
60
|
+
children: hint
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: "ml-auto flex flex-wrap justify-end gap-2",
|
|
64
|
+
children: actions
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export { PromptCard2 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PaneTask2 } from "./chunk-66sh633m.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
interface TasksPaneProps2 {
|
|
4
|
+
/** The session's background tasks. The pane keeps its own copy as you stop and retry. */
|
|
5
|
+
tasks: PaneTask2[];
|
|
6
|
+
/** Called with the running task Stop ends. */
|
|
7
|
+
onStop?: (task: PaneTask2) => void;
|
|
8
|
+
/** Called with the failed or stopped task Retry starts again. */
|
|
9
|
+
onRetry?: (task: PaneTask2) => void;
|
|
10
|
+
}
|
|
11
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
12
|
+
/**
|
|
13
|
+
* The session's background work: subagents, shells and child sessions,
|
|
14
|
+
* running ones first.
|
|
15
|
+
*
|
|
16
|
+
* Each row names the task with its kind as a glyph and a line on what it
|
|
17
|
+
* is doing or how it ended. A running task stops from its row; one that
|
|
18
|
+
* failed or stopped retries. With none, the pane says what runs there.
|
|
19
|
+
*
|
|
20
|
+
* @example {@include ./examples.mdx}
|
|
21
|
+
*/
|
|
22
|
+
declare function TasksPane2({ tasks, onStop, onRetry }: TasksPaneProps2): Element_12xgc;
|
|
23
|
+
export { TasksPaneProps2, TasksPane2 };
|