@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.
- 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 +114 -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 +517 -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 +204 -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 +33 -0
- package/blocks/dialogs/command-palette/index.tsx +232 -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 +13 -0
- package/blocks/panes/usage-pane/index.tsx +75 -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 +18 -0
- package/blocks/profiles/profile-switcher/index.tsx +197 -0
- package/blocks/profiles/profile-usage/examples.mdx +21 -0
- package/blocks/profiles/profile-usage/index.tsx +127 -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 +43 -0
- package/blocks/sessions/session-sidebar/index.tsx +442 -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 +30 -0
- package/components/conversation/agent-run/index.tsx +82 -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 +128 -0
- package/components/conversation/message/working.tsx +102 -0
- package/components/conversation/reasoning/examples.mdx +22 -0
- package/components/conversation/reasoning/index.tsx +54 -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 +15 -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 +11 -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 +26 -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 +12 -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-1aq2xzv5.js +558 -0
- package/dist/shared/chunk-1f96cz69.js +45 -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-4248zvmh.js +177 -0
- package/dist/shared/chunk-45rqgey6.d.ts +25 -0
- package/dist/shared/chunk-4n0v64qx.js +179 -0
- package/dist/shared/chunk-4zvhpf2x.js +55 -0
- package/dist/shared/chunk-57hzzmjd.d.ts +67 -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-5k6xwqfj.d.ts +68 -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-6g4970a6.d.ts +20 -0
- package/dist/shared/chunk-75zwypyr.d.ts +43 -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-8xg5gwwy.js +38 -0
- package/dist/shared/chunk-9kw6m047.d.ts +32 -0
- package/dist/shared/chunk-a4s440b6.js +79 -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-bh2b5d1z.js +98 -0
- package/dist/shared/chunk-bzs6amnv.js +187 -0
- package/dist/shared/chunk-c36qvrwq.d.ts +30 -0
- package/dist/shared/chunk-c8wp058j.js +153 -0
- package/dist/shared/chunk-cd4f87as.d.ts +28 -0
- package/dist/shared/chunk-cmwby8f9.js +467 -0
- package/dist/shared/chunk-d2t72h4x.d.ts +35 -0
- package/dist/shared/chunk-dh3qy5fj.js +49 -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-fbn0h7cr.js +123 -0
- package/dist/shared/chunk-fqhcz6ss.d.ts +29 -0
- package/dist/shared/chunk-g28hweee.d.ts +35 -0
- package/dist/shared/chunk-g88hweqh.d.ts +70 -0
- package/dist/shared/chunk-gewnsgza.js +61 -0
- package/dist/shared/chunk-gkyk663q.d.ts +53 -0
- package/dist/shared/chunk-hd4gtj5z.d.ts +23 -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-k5zegxje.d.ts +81 -0
- package/dist/shared/chunk-kreypnzp.d.ts +34 -0
- package/dist/shared/chunk-kw9npka5.js +224 -0
- package/dist/shared/chunk-mrb3fp2f.d.ts +30 -0
- package/dist/shared/chunk-n1qq2wp9.js +6 -0
- package/dist/shared/chunk-n4742y54.js +39 -0
- package/dist/shared/chunk-ndjvdkv7.d.ts +29 -0
- package/dist/shared/chunk-nk4578dr.js +73 -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-r5hz78pb.js +129 -0
- package/dist/shared/chunk-r6nb21kz.d.ts +102 -0
- package/dist/shared/chunk-rjfwje37.d.ts +234 -0
- package/dist/shared/chunk-rqrpvvz4.d.ts +107 -0
- package/dist/shared/chunk-rzajcn44.d.ts +49 -0
- package/dist/shared/chunk-s3r759ec.js +80 -0
- package/dist/shared/chunk-sdtjrw9w.d.ts +98 -0
- package/dist/shared/chunk-sfqvyzcs.d.ts +68 -0
- package/dist/shared/chunk-skg3m9m0.js +56 -0
- package/dist/shared/chunk-szkvrqg1.d.ts +54 -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-v6yevw62.d.ts +28 -0
- package/dist/shared/chunk-v9q38p0x.js +258 -0
- package/dist/shared/chunk-vd59gzzd.js +86 -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-w5z8qnf8.js +175 -0
- package/dist/shared/chunk-wgvzavx1.js +1488 -0
- package/dist/shared/chunk-whsx7yp9.d.ts +37 -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 +74 -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,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcon2
|
|
5
|
+
} from "./chunk-xkchhs2z.js";
|
|
6
|
+
import {
|
|
7
|
+
PaneSection2,
|
|
8
|
+
PaneEmpty2
|
|
9
|
+
} from "./chunk-eqajdxn8.js";
|
|
10
|
+
|
|
11
|
+
// blocks/panes/artifacts-pane/index.tsx
|
|
12
|
+
import { useSize } from "@justanarthur/modo-ui/lib/size-context";
|
|
13
|
+
import { cn } from "@justanarthur/modo-ui/lib/utils";
|
|
14
|
+
import FluidHover from "@justanarthur/modo-ui/primitives/systems/fluid-hover";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
/*!
|
|
17
|
+
* Local addition: the side pane's Artifacts — what Claude made in this
|
|
18
|
+
* session, newest first, one fluid hover along the rows.
|
|
19
|
+
*/
|
|
20
|
+
var ARTIFACT_ICON = {
|
|
21
|
+
page: "globe",
|
|
22
|
+
dashboard: "layout-dashboard",
|
|
23
|
+
document: "file-text",
|
|
24
|
+
diagram: "list-tree"
|
|
25
|
+
};
|
|
26
|
+
var ARTIFACT_KIND = {
|
|
27
|
+
page: "Page",
|
|
28
|
+
dashboard: "Dashboard",
|
|
29
|
+
document: "Document",
|
|
30
|
+
diagram: "Diagram"
|
|
31
|
+
};
|
|
32
|
+
function ArtifactRow({ artifact, index, onOpen }) {
|
|
33
|
+
const size = useSize();
|
|
34
|
+
const Icon = useIcon2(ARTIFACT_ICON[artifact.kind]);
|
|
35
|
+
return /* @__PURE__ */ jsxs(FluidHover.Item, {
|
|
36
|
+
index,
|
|
37
|
+
onClick: onOpen,
|
|
38
|
+
className: cn("gap-2 px-2", size.control, size.text),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
41
|
+
size: size.icon,
|
|
42
|
+
strokeWidth: 1.5,
|
|
43
|
+
className: "shrink-0 text-muted-foreground"
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ jsx("span", {
|
|
46
|
+
className: "min-w-0 flex-1 truncate",
|
|
47
|
+
children: artifact.title
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ jsxs("span", {
|
|
50
|
+
className: "shrink-0 text-caption text-muted-foreground",
|
|
51
|
+
children: [
|
|
52
|
+
ARTIFACT_KIND[artifact.kind],
|
|
53
|
+
" · ",
|
|
54
|
+
artifact.updated
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function ArtifactsPane2({ artifacts, onOpen }) {
|
|
61
|
+
if (artifacts.length === 0)
|
|
62
|
+
return /* @__PURE__ */ jsx(PaneEmpty2, {
|
|
63
|
+
icon: "layers",
|
|
64
|
+
title: "No artifacts yet",
|
|
65
|
+
detail: "Pages, documents and dashboards Claude makes land here."
|
|
66
|
+
});
|
|
67
|
+
return /* @__PURE__ */ jsx(PaneSection2, {
|
|
68
|
+
title: "Artifacts",
|
|
69
|
+
meta: `${artifacts.length} · private until you share them`,
|
|
70
|
+
children: /* @__PURE__ */ jsx(FluidHover, {
|
|
71
|
+
className: "gap-0",
|
|
72
|
+
children: artifacts.map((artifact, i) => /* @__PURE__ */ jsx(ArtifactRow, {
|
|
73
|
+
artifact,
|
|
74
|
+
index: i,
|
|
75
|
+
onOpen: () => onOpen?.(artifact)
|
|
76
|
+
}, artifact.title))
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export { ArtifactsPane2 };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Profile2, Project2 } from "./chunk-jkkdq1mh.js";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { JSX as JSX_1kxb } from "react";
|
|
4
|
+
interface TranscriptMessage2 {
|
|
5
|
+
id: string;
|
|
6
|
+
role: "user" | "assistant" | "tool";
|
|
7
|
+
/** The message's text; a hit is one of its lines. */
|
|
8
|
+
text: string;
|
|
9
|
+
/** When it was sent, as it reads ("14:02", "Mon"). */
|
|
10
|
+
when: string;
|
|
11
|
+
}
|
|
12
|
+
interface TranscriptSession2 {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
/** The project's path, matched against `projects`. */
|
|
16
|
+
project: string;
|
|
17
|
+
/** The profile id it ran under. */
|
|
18
|
+
profile: string;
|
|
19
|
+
/** Days since its last message; the date filter reads it. */
|
|
20
|
+
daysAgo: number;
|
|
21
|
+
messages: TranscriptMessage2[];
|
|
22
|
+
}
|
|
23
|
+
type TranscriptDateRange2 = "any" | "today" | "week" | "month";
|
|
24
|
+
interface TranscriptSearchPanelProps2 {
|
|
25
|
+
/** The transcripts to search. */
|
|
26
|
+
sessions: TranscriptSession2[];
|
|
27
|
+
/** The projects the filter offers. */
|
|
28
|
+
projects: Project2[];
|
|
29
|
+
/** The profiles the filter offers. */
|
|
30
|
+
profiles: Profile2[];
|
|
31
|
+
/** Controlled query. Pair with `onQueryChange`. */
|
|
32
|
+
query?: string;
|
|
33
|
+
/** The query it starts with. Defaults to `''`. */
|
|
34
|
+
defaultQuery?: string;
|
|
35
|
+
/** Called as the query changes. */
|
|
36
|
+
onQueryChange?: (query: string) => void;
|
|
37
|
+
/** The project path it starts filtered to; empty for all. Defaults to `''`. */
|
|
38
|
+
defaultProject?: string;
|
|
39
|
+
/** The profile id it starts filtered to; empty for all. Defaults to `''`. */
|
|
40
|
+
defaultProfile?: string;
|
|
41
|
+
/** The date range it starts with. Defaults to `'any'`. */
|
|
42
|
+
defaultRange?: TranscriptDateRange2;
|
|
43
|
+
/** Called with the hit's session and message when a hit is opened (a click, or Enter on the lit one). */
|
|
44
|
+
onOpen?: (sessionId: string, messageId: string) => void;
|
|
45
|
+
/** Classes for the root. */
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
49
|
+
/** The search on its own, without the Dialog: the field, the filters and the hits. */
|
|
50
|
+
declare function TranscriptSearchPanel2({ sessions, projects, profiles, query, defaultQuery, onQueryChange, defaultProject, defaultProfile, defaultRange, onOpen, className }: TranscriptSearchPanelProps2): Element_12xgc;
|
|
51
|
+
interface TranscriptSearchProps2 {
|
|
52
|
+
/** The transcripts to search. */
|
|
53
|
+
sessions: TranscriptSession2[];
|
|
54
|
+
/** The projects the filter offers. */
|
|
55
|
+
projects: Project2[];
|
|
56
|
+
/** The profiles the filter offers. */
|
|
57
|
+
profiles: Profile2[];
|
|
58
|
+
/** The control that opens it. */
|
|
59
|
+
trigger?: ReactElement;
|
|
60
|
+
/** Controlled open state. */
|
|
61
|
+
open?: boolean;
|
|
62
|
+
/** Initial open state, for an uncontrolled dialog. Defaults to `false`. */
|
|
63
|
+
defaultOpen?: boolean;
|
|
64
|
+
/** Called when the dialog opens or closes. */
|
|
65
|
+
onOpenChange?: (open: boolean) => void;
|
|
66
|
+
/** The query it starts with. Defaults to `''`. */
|
|
67
|
+
defaultQuery?: string;
|
|
68
|
+
/** The project path it starts filtered to; empty for all. Defaults to `''`. */
|
|
69
|
+
defaultProject?: string;
|
|
70
|
+
/** The profile id it starts filtered to; empty for all. Defaults to `''`. */
|
|
71
|
+
defaultProfile?: string;
|
|
72
|
+
/** The date range it starts with. Defaults to `'any'`. */
|
|
73
|
+
defaultRange?: TranscriptDateRange2;
|
|
74
|
+
/** Called with the hit's session and message when a hit is opened; the dialog closes. */
|
|
75
|
+
onOpen?: (sessionId: string, messageId: string) => void;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Searches every session's transcript at once: what you asked, what Claude
|
|
79
|
+
* answered, what the tools printed.
|
|
80
|
+
*
|
|
81
|
+
* Each matching line shows with the line before and after it, the match
|
|
82
|
+
* marked, grouped under its session with the session's project and profile.
|
|
83
|
+
* Narrow it by project, by profile, or to today, the past week or the past
|
|
84
|
+
* month. The field keeps focus: the arrow keys move one highlight through
|
|
85
|
+
* the hits (Home and End jump), the pointer moves it too, and Enter or a
|
|
86
|
+
* click hands the session and message to `onOpen` and closes the dialog.
|
|
87
|
+
* The dialog sits near the top so it keeps still while the hits change;
|
|
88
|
+
* `TranscriptSearch.Panel` is the same search without it.
|
|
89
|
+
*
|
|
90
|
+
* Statics:
|
|
91
|
+
* - `TranscriptSearch.Panel` — the search on its own: the same props, minus the dialog's.
|
|
92
|
+
*
|
|
93
|
+
* @example {@include ./examples.mdx}
|
|
94
|
+
*/
|
|
95
|
+
declare const TranscriptSearch2: (({ trigger, open, defaultOpen, onOpenChange, onOpen,...panel }: TranscriptSearchProps2) => Element_12xgc) & {
|
|
96
|
+
Panel: typeof TranscriptSearchPanel2;
|
|
97
|
+
};
|
|
98
|
+
export { TranscriptMessage2, TranscriptSession2, TranscriptDateRange2, TranscriptSearchPanelProps2, TranscriptSearchPanel2, TranscriptSearchProps2, TranscriptSearch2 };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
interface WorkingProps2 {
|
|
4
|
+
/** A short line beside the dots: what it is doing. */
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
8
|
+
/** The in-flight dots, for a reply that hasn't started or a turn still running. */
|
|
9
|
+
declare function Working2({ label }: WorkingProps2): Element_12xgc;
|
|
10
|
+
import { JSX as JSX_1kxb2 } from "react";
|
|
11
|
+
type MessageRole2 = "user" | "assistant";
|
|
12
|
+
type AttachmentKind2 = "file" | "image" | "pasted";
|
|
13
|
+
interface MentionProps2 {
|
|
14
|
+
/** The file or folder path. */
|
|
15
|
+
path: string;
|
|
16
|
+
}
|
|
17
|
+
type Element_12xgc2 = JSX_1kxb2["Element"];
|
|
18
|
+
/** An @-mention of a file inside a message. */
|
|
19
|
+
declare function Mention2({ path }: MentionProps2): Element_12xgc2;
|
|
20
|
+
interface AttachmentProps2 {
|
|
21
|
+
/** The file name. */
|
|
22
|
+
name: string;
|
|
23
|
+
/** A short line under it: size, page count, line count. */
|
|
24
|
+
detail?: string;
|
|
25
|
+
/** `pasted` is text pasted into the composer, folded to a chip. Defaults to `'file'`. */
|
|
26
|
+
kind?: AttachmentKind2;
|
|
27
|
+
}
|
|
28
|
+
/** A file, image or pasted text that came with a message. */
|
|
29
|
+
declare function Attachment2({ name, detail, kind }: AttachmentProps2): Element_12xgc2;
|
|
30
|
+
interface MessageProps2 {
|
|
31
|
+
/** Who speaks: `user` is a bubble on the right, `assistant` is text on the page. */
|
|
32
|
+
role: MessageRole2;
|
|
33
|
+
/** The message: text with `Message.Mention`s for a user, rendered markdown for the assistant. */
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
/** A user's attachments and pasted text (`Message.Attachment`s), shown above the bubble. */
|
|
36
|
+
attachments?: ReactNode;
|
|
37
|
+
/** The assistant's reply is still arriving: the working dots follow its last block. Defaults to `false`. */
|
|
38
|
+
streaming?: boolean;
|
|
39
|
+
/** Classes for the root. */
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* One turn of a conversation with an AI: what you asked, or what it answered.
|
|
44
|
+
*
|
|
45
|
+
* Your turn is a bubble on the right, on the muted fill, with its
|
|
46
|
+
* attachments (files, images, pasted text folded to a chip) above it and
|
|
47
|
+
* @-mentions inline. The assistant's turn has no bubble: it is rendered
|
|
48
|
+
* markdown on the page, in Markdown.Prose's type and rhythm, so a long answer reads
|
|
49
|
+
* like a document. While the reply streams, the working dots follow its
|
|
50
|
+
* last block.
|
|
51
|
+
*
|
|
52
|
+
* Statics:
|
|
53
|
+
* - `Message.Mention` — an @-file chip inline in the text: `path`.
|
|
54
|
+
* - `Message.Attachment` — a file, image or pasted-text chip: `name`, `detail`, `kind`.
|
|
55
|
+
* - `Message.Working` — the in-flight dots on their own: three dots that melt
|
|
56
|
+
* into one blob and split again beside a word that cycles (Thinking,
|
|
57
|
+
* Planning, …) in the width of the longest, and an optional `label`. One
|
|
58
|
+
* static "Thinking…" is announced; reduced motion holds the dots apart and
|
|
59
|
+
* the word still.
|
|
60
|
+
*
|
|
61
|
+
* @example {@include ./examples.mdx}
|
|
62
|
+
*/
|
|
63
|
+
declare const Message2: (({ role, children, attachments, streaming, className }: MessageProps2) => Element_12xgc2) & {
|
|
64
|
+
Mention2: typeof Mention2;
|
|
65
|
+
Attachment2: typeof Attachment2;
|
|
66
|
+
Working2: typeof Working2;
|
|
67
|
+
};
|
|
68
|
+
export { WorkingProps2, Working2, MessageRole2, AttachmentKind2, MentionProps2, Mention2, AttachmentProps2, Attachment2, MessageProps2, Message2 };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcon2
|
|
5
|
+
} from "./chunk-xkchhs2z.js";
|
|
6
|
+
|
|
7
|
+
// components/conversation/recap/index.tsx
|
|
8
|
+
import Button from "@justanarthur/modo-ui/components/actions/button";
|
|
9
|
+
import { useShape } from "@justanarthur/modo-ui/lib/shape-context";
|
|
10
|
+
import { cn } from "@justanarthur/modo-ui/lib/utils";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
/*!
|
|
13
|
+
* Local addition (not part of Fluid Functionalism): the box an AI closes its
|
|
14
|
+
* work with — a short recap and, when you have a decision to make, one
|
|
15
|
+
* question with its answers. Generalised from the AI app's transcript.
|
|
16
|
+
*/
|
|
17
|
+
function Recap2({ recap, ask, actions = [], onAction }) {
|
|
18
|
+
const shape = useShape();
|
|
19
|
+
const Flag = useIcon2("corner-down-right");
|
|
20
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
21
|
+
"aria-label": "Recap",
|
|
22
|
+
className: cn("flex flex-col gap-3 bg-muted p-[var(--space-3)]", shape.container),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsx("p", {
|
|
25
|
+
className: "m-0 text-body text-muted-foreground",
|
|
26
|
+
children: recap
|
|
27
|
+
}),
|
|
28
|
+
ask && /* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: "flex flex-wrap items-center gap-2",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Flag, {
|
|
32
|
+
size: 16,
|
|
33
|
+
strokeWidth: 1.5,
|
|
34
|
+
className: "shrink-0 text-muted-foreground"
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: "min-w-0 flex-1 text-body weight-medium text-foreground",
|
|
38
|
+
children: ask
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: "flex shrink-0 gap-2",
|
|
42
|
+
children: actions.slice(0, 2).map((label, i) => /* @__PURE__ */ jsx(Button, {
|
|
43
|
+
size: "compact",
|
|
44
|
+
variant: i === 0 ? "primary" : "tertiary",
|
|
45
|
+
onClick: () => onAction?.(label),
|
|
46
|
+
children: label
|
|
47
|
+
}, label))
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
var recap_default = Recap2;
|
|
55
|
+
|
|
56
|
+
export { Recap2, recap_default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { PermissionRequest2 } from "./chunk-fqhcz6ss.js";
|
|
2
|
+
import { PlanApproval2 } from "./chunk-v6yevw62.js";
|
|
3
|
+
import { PromptCardProps2 } from "./chunk-5hw0525a.js";
|
|
4
|
+
import { QuestionPrompt2 } from "./chunk-d2t72h4x.js";
|
|
5
|
+
import { JSX as JSX_1kxb } from "react";
|
|
6
|
+
type AgentPromptProps2 = PromptCardProps2;
|
|
7
|
+
interface OfferProps2 {
|
|
8
|
+
/** The task, as a short title. */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Why it could run on its own, in one line. */
|
|
11
|
+
brief?: string;
|
|
12
|
+
/** Called with where it should run. */
|
|
13
|
+
onChoose?: (where: "new-session" | "here") => void;
|
|
14
|
+
}
|
|
15
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
16
|
+
declare function Offer({ title, brief, onChoose }: OfferProps2): Element_12xgc;
|
|
17
|
+
interface TaskProps2 {
|
|
18
|
+
/** The proposed task. */
|
|
19
|
+
title: string;
|
|
20
|
+
/** What it would do and what done looks like. */
|
|
21
|
+
brief: string;
|
|
22
|
+
/** The profile and place it would start in: `jobiflow · new worktree`. */
|
|
23
|
+
where?: string;
|
|
24
|
+
/** Called with the decision. */
|
|
25
|
+
onDecide?: (decision: "start" | "dismiss") => void;
|
|
26
|
+
}
|
|
27
|
+
declare function Task({ title, brief, where, onDecide }: TaskProps2): Element_12xgc;
|
|
28
|
+
/**
|
|
29
|
+
* Everything the agent stops to ask you mid-turn, as one family of lifted
|
|
30
|
+
* cards under the transcript.
|
|
31
|
+
*
|
|
32
|
+
* The frame is the Prompt card, and the permission, question and plan
|
|
33
|
+
* prompts are the generic Permission request, Question prompt and Plan
|
|
34
|
+
* approval; the statics gather them under one name. What is specific to
|
|
35
|
+
* the AI app is the pair of session cards: where a task should run, and a
|
|
36
|
+
* task the agent proposes on its own.
|
|
37
|
+
*
|
|
38
|
+
* Statics:
|
|
39
|
+
* - `AgentPrompt.Permission` — Permission request: `tool`, `command`, `detail`, `rule`.
|
|
40
|
+
* - `AgentPrompt.Question` — Question prompt: `question`, `tag`, `options`, `multiSelect`.
|
|
41
|
+
* - `AgentPrompt.Plan` — Plan approval: the plan as children, `onDecide`.
|
|
42
|
+
* - `AgentPrompt.Offer` — the agent asks where a task should run: a new session or here (`title`, `brief`, `onChoose`).
|
|
43
|
+
* - `AgentPrompt.Task` — a task the agent proposes on its own: start it as a session, or dismiss it (`title`, `brief`, `where`, `onDecide`).
|
|
44
|
+
*
|
|
45
|
+
* @example {@include ./examples.mdx}
|
|
46
|
+
*/
|
|
47
|
+
declare const AgentPrompt2: ((props: AgentPromptProps2) => Element_12xgc) & {
|
|
48
|
+
Permission: typeof PermissionRequest2;
|
|
49
|
+
Question: typeof QuestionPrompt2;
|
|
50
|
+
Plan: typeof PlanApproval2;
|
|
51
|
+
Offer: typeof Offer;
|
|
52
|
+
Task: typeof Task;
|
|
53
|
+
};
|
|
54
|
+
export { AgentPromptProps2, OfferProps2, TaskProps2, AgentPrompt2 };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcons2,
|
|
5
|
+
useIcon2
|
|
6
|
+
} from "./chunk-xkchhs2z.js";
|
|
7
|
+
|
|
8
|
+
// blocks/settings/settings-window/index.tsx
|
|
9
|
+
import { SidebarSearchField } from "@justanarthur/modo-ui/blocks/sidebar-app";
|
|
10
|
+
import Select from "@justanarthur/modo-ui/components/inputs/select";
|
|
11
|
+
import Sidebar from "@justanarthur/modo-ui/components/navigation/sidebar";
|
|
12
|
+
import { useControllableState } from "@justanarthur/modo-ui/lib/use-controllable-state";
|
|
13
|
+
import { useState } from "react";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
/*!
|
|
16
|
+
* Local addition: the AI app's settings window — a Sidebar of sections
|
|
17
|
+
* (with a search that narrows them) beside the picked section, with a picker
|
|
18
|
+
* for the config dir the scoped sections edit.
|
|
19
|
+
*/
|
|
20
|
+
var PROJECT = { id: "project", dir: ".claude" };
|
|
21
|
+
function SettingsWindow2({
|
|
22
|
+
sections,
|
|
23
|
+
profiles,
|
|
24
|
+
section,
|
|
25
|
+
defaultSection,
|
|
26
|
+
onSectionChange,
|
|
27
|
+
scope,
|
|
28
|
+
defaultScope,
|
|
29
|
+
onScopeChange,
|
|
30
|
+
sidebar = true,
|
|
31
|
+
onBack,
|
|
32
|
+
onOpenProfiles,
|
|
33
|
+
children
|
|
34
|
+
}) {
|
|
35
|
+
const [current, setCurrent] = useControllableState(section, defaultSection ?? sections[0]?.id ?? "", onSectionChange);
|
|
36
|
+
const [scopeId, setScopeId] = useControllableState(scope, defaultScope ?? profiles[0]?.id ?? PROJECT.id, onScopeChange);
|
|
37
|
+
const [query, setQuery] = useState("");
|
|
38
|
+
const icons = useIcons2();
|
|
39
|
+
const Back = useIcon2("arrow-left");
|
|
40
|
+
const Users = useIcon2("users");
|
|
41
|
+
const Folder = useIcon2("folder");
|
|
42
|
+
const scoped = sections.find((s) => s.id === current)?.scoped ?? false;
|
|
43
|
+
const configDir = scopeId === PROJECT.id ? PROJECT.dir : profiles.find((p) => p.id === scopeId)?.configDir ?? PROJECT.dir;
|
|
44
|
+
const needle = query.trim().toLowerCase();
|
|
45
|
+
const shown = sections.filter((s) => `${s.label} ${s.keywords}`.toLowerCase().includes(needle));
|
|
46
|
+
return /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: "flex h-full min-h-[640px] w-full bg-background",
|
|
48
|
+
children: /* @__PURE__ */ jsxs(Sidebar.Provider, {
|
|
49
|
+
className: "h-full min-h-0",
|
|
50
|
+
persist: false,
|
|
51
|
+
mobileBreakpoint: 0,
|
|
52
|
+
defaultOpen: sidebar,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxs(Sidebar, {
|
|
55
|
+
variant: "inset",
|
|
56
|
+
className: "h-full",
|
|
57
|
+
value: current,
|
|
58
|
+
onValueChange: (value) => setCurrent(value),
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(Sidebar.Header, {
|
|
61
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
62
|
+
className: "flex flex-col gap-0.5",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx(Sidebar.Menu, {
|
|
65
|
+
children: /* @__PURE__ */ jsx(Sidebar.MenuItem, {
|
|
66
|
+
children: /* @__PURE__ */ jsx(Sidebar.MenuButton, {
|
|
67
|
+
icon: Back,
|
|
68
|
+
onClick: onBack,
|
|
69
|
+
children: "Back to sessions"
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsx(SidebarSearchField, {
|
|
74
|
+
placeholder: "Search settings",
|
|
75
|
+
shortcut: null,
|
|
76
|
+
value: query,
|
|
77
|
+
onChange: (event) => setQuery(event.target.value)
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ jsx(Sidebar.Content, {
|
|
83
|
+
children: /* @__PURE__ */ jsxs(Sidebar.Group, {
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsx(Sidebar.GroupLabel, {
|
|
86
|
+
children: "Settings"
|
|
87
|
+
}),
|
|
88
|
+
shown.length > 0 ? /* @__PURE__ */ jsx(Sidebar.Menu, {
|
|
89
|
+
children: shown.map((s) => /* @__PURE__ */ jsx(Sidebar.MenuItem, {
|
|
90
|
+
children: /* @__PURE__ */ jsx(Sidebar.MenuButton, {
|
|
91
|
+
value: s.id,
|
|
92
|
+
icon: icons[s.icon],
|
|
93
|
+
children: s.label
|
|
94
|
+
})
|
|
95
|
+
}, s.id))
|
|
96
|
+
}) : /* @__PURE__ */ jsxs("p", {
|
|
97
|
+
className: "m-0 px-2 text-caption text-muted-foreground",
|
|
98
|
+
children: [
|
|
99
|
+
"No settings match “",
|
|
100
|
+
query.trim(),
|
|
101
|
+
"”"
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ jsx(Sidebar.Footer, {
|
|
108
|
+
children: /* @__PURE__ */ jsx(Sidebar.Menu, {
|
|
109
|
+
children: /* @__PURE__ */ jsx(Sidebar.MenuItem, {
|
|
110
|
+
children: /* @__PURE__ */ jsx(Sidebar.MenuButton, {
|
|
111
|
+
icon: Users,
|
|
112
|
+
onClick: onOpenProfiles,
|
|
113
|
+
children: "Profiles"
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsxs(Sidebar.Inset, {
|
|
121
|
+
className: "@container min-h-0 min-w-0 overflow-auto",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ jsxs("header", {
|
|
124
|
+
className: "flex h-12 shrink-0 items-center gap-2 px-1.5",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx(Sidebar.Trigger, {}),
|
|
127
|
+
/* @__PURE__ */ jsx("span", {
|
|
128
|
+
className: "text-body weight-medium text-foreground",
|
|
129
|
+
children: "Settings"
|
|
130
|
+
}),
|
|
131
|
+
scoped && /* @__PURE__ */ jsxs("div", {
|
|
132
|
+
className: "ml-auto flex min-w-0 items-center gap-2",
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ jsxs("span", {
|
|
135
|
+
className: "hidden min-w-0 truncate text-caption text-muted-foreground @2xl:inline",
|
|
136
|
+
children: [
|
|
137
|
+
"Editing ",
|
|
138
|
+
/* @__PURE__ */ jsx("span", {
|
|
139
|
+
className: "font-mono",
|
|
140
|
+
children: configDir
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
145
|
+
value: scopeId,
|
|
146
|
+
onValueChange: setScopeId,
|
|
147
|
+
size: "compact",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ jsx(Select.Trigger, {
|
|
150
|
+
variant: "borderless",
|
|
151
|
+
icon: Folder,
|
|
152
|
+
"aria-label": "Config dir"
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ jsxs(Select.Content, {
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsx(Select.Label, {
|
|
157
|
+
children: "Profiles"
|
|
158
|
+
}),
|
|
159
|
+
profiles.map((profile, i) => /* @__PURE__ */ jsx(Select.Item, {
|
|
160
|
+
index: i,
|
|
161
|
+
value: profile.id,
|
|
162
|
+
children: profile.name
|
|
163
|
+
}, profile.id)),
|
|
164
|
+
/* @__PURE__ */ jsx(Select.Separator, {}),
|
|
165
|
+
/* @__PURE__ */ jsx(Select.Item, {
|
|
166
|
+
index: profiles.length,
|
|
167
|
+
value: PROJECT.id,
|
|
168
|
+
children: "This project"
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ jsx("main", {
|
|
179
|
+
className: "mx-auto flex w-full max-w-3xl flex-col px-6 pb-8 pt-4 [contain:inline-size]",
|
|
180
|
+
children: children(current, configDir)
|
|
181
|
+
})
|
|
182
|
+
]
|
|
183
|
+
})
|
|
184
|
+
]
|
|
185
|
+
})
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
export { SettingsWindow2 };
|