@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,177 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcons2,
|
|
5
|
+
useIcon2
|
|
6
|
+
} from "./chunk-xkchhs2z.js";
|
|
7
|
+
import {
|
|
8
|
+
ArtifactsPane2
|
|
9
|
+
} from "./chunk-s3r759ec.js";
|
|
10
|
+
import {
|
|
11
|
+
ChangesPane2
|
|
12
|
+
} from "./chunk-218qabm5.js";
|
|
13
|
+
import {
|
|
14
|
+
FilePane2
|
|
15
|
+
} from "./chunk-qhxz1etk.js";
|
|
16
|
+
import {
|
|
17
|
+
PullRequestPane2
|
|
18
|
+
} from "./chunk-8pag6vmd.js";
|
|
19
|
+
import {
|
|
20
|
+
TasksPane2
|
|
21
|
+
} from "./chunk-r5hz78pb.js";
|
|
22
|
+
import {
|
|
23
|
+
TerminalPane2
|
|
24
|
+
} from "./chunk-tkx1krwc.js";
|
|
25
|
+
import {
|
|
26
|
+
UsagePane2
|
|
27
|
+
} from "./chunk-mnzw0bav.js";
|
|
28
|
+
|
|
29
|
+
// blocks/panes/side-pane/index.tsx
|
|
30
|
+
import Button from "@justanarthur/modo-ui/components/actions/button";
|
|
31
|
+
import Tabs from "@justanarthur/modo-ui/components/navigation/tabs";
|
|
32
|
+
import Dropdown from "@justanarthur/modo-ui/components/overlays/dropdown";
|
|
33
|
+
import Tooltip from "@justanarthur/modo-ui/components/overlays/tooltip";
|
|
34
|
+
import { useControllableState } from "@justanarthur/modo-ui/lib/use-controllable-state";
|
|
35
|
+
import { cn } from "@justanarthur/modo-ui/lib/utils";
|
|
36
|
+
import ScrollArea from "@justanarthur/modo-ui/primitives/layout/scroll-area";
|
|
37
|
+
import { SizeProvider } from "@justanarthur/modo-ui/primitives/systems/sizes";
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
/*!
|
|
40
|
+
* Local addition: the AI app's side pane, beside the transcript. A
|
|
41
|
+
* strip of pill tabs (subtle Tabs, only the picked one spelled out) switches
|
|
42
|
+
* between the pane blocks (changes-pane, file-pane, …); a Dropdown beside the last tab adds
|
|
43
|
+
* optional panes from plugins; the close button hands the room back to the
|
|
44
|
+
* transcript. The whole pane is a compact region.
|
|
45
|
+
*/
|
|
46
|
+
var PANES2 = [
|
|
47
|
+
{ id: "changes", label: "Changes", icon: "file-diff" },
|
|
48
|
+
{ id: "file", label: "File", icon: "file-text" },
|
|
49
|
+
{ id: "terminal", label: "Terminal", icon: "terminal" },
|
|
50
|
+
{ id: "pr", label: "Pull request", icon: "git-pull-request" },
|
|
51
|
+
{ id: "artifacts", label: "Artifacts", icon: "layers" },
|
|
52
|
+
{ id: "tasks", label: "Tasks", icon: "list-checks" },
|
|
53
|
+
{ id: "extension", label: "Usage", icon: "puzzle" }
|
|
54
|
+
];
|
|
55
|
+
var CONTENT = {
|
|
56
|
+
changes: (data) => /* @__PURE__ */ jsx(ChangesPane2, {
|
|
57
|
+
changes: data.changes
|
|
58
|
+
}),
|
|
59
|
+
file: (data) => /* @__PURE__ */ jsx(FilePane2, {
|
|
60
|
+
file: data.file,
|
|
61
|
+
files: data.files
|
|
62
|
+
}),
|
|
63
|
+
terminal: (data) => /* @__PURE__ */ jsx(TerminalPane2, {
|
|
64
|
+
shell: data.shell
|
|
65
|
+
}),
|
|
66
|
+
pr: (data) => /* @__PURE__ */ jsx(PullRequestPane2, {
|
|
67
|
+
pr: data.pr
|
|
68
|
+
}),
|
|
69
|
+
artifacts: (data) => /* @__PURE__ */ jsx(ArtifactsPane2, {
|
|
70
|
+
artifacts: data.artifacts
|
|
71
|
+
}),
|
|
72
|
+
tasks: (data) => /* @__PURE__ */ jsx(TasksPane2, {
|
|
73
|
+
tasks: data.tasks
|
|
74
|
+
}),
|
|
75
|
+
extension: (data) => /* @__PURE__ */ jsx(UsagePane2, {
|
|
76
|
+
profiles: data.profiles
|
|
77
|
+
})
|
|
78
|
+
};
|
|
79
|
+
function SidePane2({
|
|
80
|
+
data,
|
|
81
|
+
pane,
|
|
82
|
+
defaultPane = "changes",
|
|
83
|
+
onPaneChange,
|
|
84
|
+
onClose,
|
|
85
|
+
className
|
|
86
|
+
}) {
|
|
87
|
+
const [current, setCurrent] = useControllableState(pane, defaultPane, onPaneChange);
|
|
88
|
+
const icons = useIcons2();
|
|
89
|
+
const Close = useIcon2("x");
|
|
90
|
+
const Plus = useIcon2("plus");
|
|
91
|
+
const Globe = useIcon2("globe");
|
|
92
|
+
const Phone = useIcon2("monitor");
|
|
93
|
+
const shown = PANES2.some((p) => p.id === current) ? current : "changes";
|
|
94
|
+
return /* @__PURE__ */ jsx("section", {
|
|
95
|
+
"aria-label": "Side pane",
|
|
96
|
+
className: cn("flex min-h-0 min-w-0 flex-col", className),
|
|
97
|
+
children: /* @__PURE__ */ jsx(SizeProvider, {
|
|
98
|
+
size: "compact",
|
|
99
|
+
children: /* @__PURE__ */ jsxs(Tabs, {
|
|
100
|
+
variant: "subtle",
|
|
101
|
+
activeLabel: true,
|
|
102
|
+
value: shown,
|
|
103
|
+
onValueChange: (value) => setCurrent(value),
|
|
104
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ jsxs("div", {
|
|
107
|
+
className: "flex h-12 shrink-0 items-center gap-1 px-2",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsx(Tabs.List, {
|
|
110
|
+
className: "min-w-0",
|
|
111
|
+
children: PANES2.map((p) => /* @__PURE__ */ jsx(Tabs.Item, {
|
|
112
|
+
value: p.id,
|
|
113
|
+
icon: icons[p.icon],
|
|
114
|
+
label: p.label
|
|
115
|
+
}, p.id))
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ jsxs(Dropdown.Menu, {
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsx(Dropdown.Trigger, {
|
|
120
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
121
|
+
variant: "ghost",
|
|
122
|
+
size: "icon-compact",
|
|
123
|
+
"aria-label": "Add a pane",
|
|
124
|
+
className: "shrink-0",
|
|
125
|
+
children: /* @__PURE__ */ jsx(Plus, {})
|
|
126
|
+
})
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ jsxs(Dropdown.Content, {
|
|
129
|
+
align: "start",
|
|
130
|
+
className: "w-60",
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ jsx(Dropdown.Label, {
|
|
133
|
+
children: "From plugins"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx(Dropdown.Item, {
|
|
136
|
+
index: 0,
|
|
137
|
+
icon: Globe,
|
|
138
|
+
label: "Browser (install)"
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ jsx(Dropdown.Item, {
|
|
141
|
+
index: 1,
|
|
142
|
+
icon: Phone,
|
|
143
|
+
label: "iOS simulator (install)"
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
}),
|
|
149
|
+
onClose && /* @__PURE__ */ jsx(Tooltip, {
|
|
150
|
+
content: "Close the pane",
|
|
151
|
+
side: "bottom",
|
|
152
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
153
|
+
variant: "ghost",
|
|
154
|
+
size: "icon-compact",
|
|
155
|
+
"aria-label": "Close the pane",
|
|
156
|
+
className: "ml-auto shrink-0",
|
|
157
|
+
onClick: onClose,
|
|
158
|
+
children: /* @__PURE__ */ jsx(Close, {})
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ jsx(ScrollArea, {
|
|
164
|
+
className: "min-h-0 flex-1",
|
|
165
|
+
viewportClassName: "scroll-fade",
|
|
166
|
+
children: /* @__PURE__ */ jsx(Tabs.Panel, {
|
|
167
|
+
value: shown,
|
|
168
|
+
className: "px-2 pb-4 [contain:inline-size]",
|
|
169
|
+
children: CONTENT[shown](data)
|
|
170
|
+
})
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
export { PANES2, SidePane2 };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PaneId2, 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; omitted, one row opens the settings; `[]` drops the Settings group. */
|
|
15
|
+
settings?: SettingsWindowSection2[];
|
|
16
|
+
/** The side panes to offer, in the side pane's order; `false` (or `[]`) drops the Panes group. Defaults to every pane. */
|
|
17
|
+
panes?: PaneId2[] | false;
|
|
18
|
+
/** The active profile's id: new sessions start under it. Defaults to the first profile. */
|
|
19
|
+
profile?: string;
|
|
20
|
+
/** The current project's path: "New session as …" starts there. Defaults to the first project. */
|
|
21
|
+
project?: string;
|
|
22
|
+
/** Called with the picked row; the palette closes. */
|
|
23
|
+
onSelect?: (item: PaletteItem2) => void;
|
|
24
|
+
/** Controlled open state. */
|
|
25
|
+
open?: boolean;
|
|
26
|
+
/** Initial open state, for an uncontrolled palette. Defaults to `false`. */
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
/** Called when the palette opens or closes. */
|
|
29
|
+
onOpenChange?: (open: boolean) => void;
|
|
30
|
+
/** The key that toggles it with ⌘ (Ctrl elsewhere); `false` leaves the keyboard alone. Defaults to `'k'`. */
|
|
31
|
+
hotkey?: string | false;
|
|
32
|
+
/** Replaces the Search button. `null` draws no trigger: the hotkey and `open` still work. */
|
|
33
|
+
trigger?: ReactElement | null;
|
|
34
|
+
/** The trigger's label. Defaults to `'Search'`. */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** Classes for the trigger. */
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
40
|
+
/**
|
|
41
|
+
* The AI app's ⌘K palette: one search over sessions, new sessions,
|
|
42
|
+
* commands, panes, settings and profiles.
|
|
43
|
+
*
|
|
44
|
+
* Type to filter every group at once: a session by its title, branch or
|
|
45
|
+
* project; a new session by its project or profile; a command or skill by
|
|
46
|
+
* its name or description. Sessions show their live state (running, waiting
|
|
47
|
+
* on you). New sessions start in each project under the active profile, or
|
|
48
|
+
* under each other profile in the current project. Picking a row hands it to
|
|
49
|
+
* `onSelect` and closes the panel. The panel is Command's: it grows out of
|
|
50
|
+
* the trigger, and ⌘K (Ctrl+K elsewhere) toggles it from anywhere. A group
|
|
51
|
+
* with no rows is left out: an app without side panes passes `panes={false}`,
|
|
52
|
+
* one without a settings window `settings={[]}`.
|
|
53
|
+
*
|
|
54
|
+
* @example {@include ./examples.mdx}
|
|
55
|
+
*/
|
|
56
|
+
declare function CommandPalette2({ sessions, projects, profiles, commands, settings, panes, profile, project, onSelect, open, defaultOpen, onOpenChange, hotkey, trigger, label, className }: CommandPaletteProps2): Element_12xgc;
|
|
57
|
+
export { CommandPaletteProps2, CommandPalette2 };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Profile2 } from "./chunk-jkkdq1mh.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
interface UsagePaneProps2 {
|
|
4
|
+
/** The profiles to read, each with its limits (empty until the profile reports usage). */
|
|
5
|
+
profiles: Profile2[];
|
|
6
|
+
}
|
|
7
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
8
|
+
/**
|
|
9
|
+
* The extensions slot, a pane your own MCP server or plugin provides: here,
|
|
10
|
+
* usage across every profile.
|
|
11
|
+
*
|
|
12
|
+
* Each profile is a section with its plan and a verdict on its tightest
|
|
13
|
+
* limit (on pace, only just, too fast); each limit is a pace bar whose tick
|
|
14
|
+
* is where an even spend would be by now, with its share and the time
|
|
15
|
+
* until it resets. A profile with no limits yet (`limits: []`, before its
|
|
16
|
+
* first turn reports usage) reads "No usage yet".
|
|
17
|
+
*
|
|
18
|
+
* @example {@include ./examples.mdx}
|
|
19
|
+
*/
|
|
20
|
+
declare function UsagePane2({ profiles }: UsagePaneProps2): Element_12xgc;
|
|
21
|
+
export { UsagePaneProps2, UsagePane2 };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ConfigScope2 } from "./chunk-whsx7yp9.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
type PermissionBehavior2 = "allow" | "ask" | "deny";
|
|
4
|
+
type PermissionModeValue2 = "default" | "acceptEdits" | "plan" | "bypassPermissions";
|
|
5
|
+
/** One rule: a tool, optionally with a pattern (`Bash(bun run *)`), what it gets, and where it lives. */
|
|
6
|
+
interface PermissionRule2 {
|
|
7
|
+
rule: string;
|
|
8
|
+
behavior: PermissionBehavior2;
|
|
9
|
+
scope: ConfigScope2;
|
|
10
|
+
}
|
|
11
|
+
/** Everything the section edits. */
|
|
12
|
+
interface PermissionSettings2 {
|
|
13
|
+
mode: PermissionModeValue2;
|
|
14
|
+
rules: PermissionRule2[];
|
|
15
|
+
/** Paths outside the working directory the sessions may read and edit. */
|
|
16
|
+
directories: string[];
|
|
17
|
+
}
|
|
18
|
+
interface PermissionRulesProps2 {
|
|
19
|
+
/** Controlled settings. Pair with `onChange`. */
|
|
20
|
+
value?: PermissionSettings2;
|
|
21
|
+
/** Initial settings, for an uncontrolled section. Defaults to the default mode, no rules and no directories. */
|
|
22
|
+
defaultValue?: PermissionSettings2;
|
|
23
|
+
/** Called with the whole settings whenever a rule, the mode or a directory changes. */
|
|
24
|
+
onChange?: (value: PermissionSettings2) => void;
|
|
25
|
+
}
|
|
26
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
27
|
+
/**
|
|
28
|
+
* What the sessions may do without asking: the default permission mode,
|
|
29
|
+
* rules that allow, ask or deny a tool, and directories beyond the repo.
|
|
30
|
+
*
|
|
31
|
+
* A rule is a tool name, optionally with a pattern: `Bash(bun run *)`,
|
|
32
|
+
* `Edit(ui/**)`, `WebFetch(domain:github.com)`, `mcp__github`. Type one on
|
|
33
|
+
* the add line, pick what it gets and where it lives, and it lands in its
|
|
34
|
+
* group; a malformed rule or one already listed is caught as you type. Each
|
|
35
|
+
* rule's badge names its scope (user, project, local); its picker moves it
|
|
36
|
+
* between Allow, Ask and Deny, and the bin removes it (both shown on hover,
|
|
37
|
+
* always on touch). Deny wins over ask, and ask over allow. Works controlled
|
|
38
|
+
* (`value` + `onChange`) or uncontrolled (`defaultValue`).
|
|
39
|
+
*
|
|
40
|
+
* @example {@include ./examples.mdx}
|
|
41
|
+
*/
|
|
42
|
+
declare function PermissionRules2({ value, defaultValue, onChange }: PermissionRulesProps2): Element_12xgc;
|
|
43
|
+
export { PermissionBehavior2, PermissionModeValue2, PermissionRule2, PermissionSettings2, PermissionRulesProps2, PermissionRules2 };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcons2
|
|
5
|
+
} from "./chunk-xkchhs2z.js";
|
|
6
|
+
import {
|
|
7
|
+
STATUS_GLYPH2
|
|
8
|
+
} from "./chunk-ejtknc0w.js";
|
|
9
|
+
import {
|
|
10
|
+
PANES2
|
|
11
|
+
} from "./chunk-6rdwkymk.js";
|
|
12
|
+
|
|
13
|
+
// blocks/dialogs/command-palette/index.tsx
|
|
14
|
+
import Button from "@justanarthur/modo-ui/components/actions/button";
|
|
15
|
+
import Kbd from "@justanarthur/modo-ui/components/data-display/kbd";
|
|
16
|
+
import Command from "@justanarthur/modo-ui/components/overlays/command";
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
/*!
|
|
19
|
+
* Local addition: the AI app's ⌘K palette on the Command overlay — switch
|
|
20
|
+
* to a session, start one in a project under a profile, run a command or
|
|
21
|
+
* skill, open a pane, a settings section or another profile.
|
|
22
|
+
*/
|
|
23
|
+
function CommandPalette2({
|
|
24
|
+
sessions,
|
|
25
|
+
projects,
|
|
26
|
+
profiles,
|
|
27
|
+
commands,
|
|
28
|
+
settings,
|
|
29
|
+
panes,
|
|
30
|
+
profile,
|
|
31
|
+
project,
|
|
32
|
+
onSelect,
|
|
33
|
+
open,
|
|
34
|
+
defaultOpen,
|
|
35
|
+
onOpenChange,
|
|
36
|
+
hotkey = "k",
|
|
37
|
+
trigger,
|
|
38
|
+
label = "Search",
|
|
39
|
+
className
|
|
40
|
+
}) {
|
|
41
|
+
const icons = useIcons2();
|
|
42
|
+
const active = profiles.find((p) => p.id === profile) ?? profiles[0];
|
|
43
|
+
const here = projects.find((p) => p.path === project) ?? projects[0];
|
|
44
|
+
const pick = (item) => () => onSelect?.(item);
|
|
45
|
+
const kind = (k) => k === "command" ? icons.command : k === "skill" ? icons.zap : icons.puzzle;
|
|
46
|
+
const groups = [
|
|
47
|
+
{
|
|
48
|
+
label: "Sessions",
|
|
49
|
+
items: sessions.map((s) => ({
|
|
50
|
+
label: s.title,
|
|
51
|
+
icon: STATUS_GLYPH2[s.status] ?? icons["message-circle"],
|
|
52
|
+
shortcut: s.updated,
|
|
53
|
+
keywords: [s.branch ?? "", s.project ?? "", s.profile],
|
|
54
|
+
onSelect: pick({ kind: "session", id: s.id })
|
|
55
|
+
}))
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "New",
|
|
59
|
+
items: [
|
|
60
|
+
...active ? projects.map((p) => ({
|
|
61
|
+
label: `New session in ${p.label}`,
|
|
62
|
+
icon: icons.plus,
|
|
63
|
+
shortcut: active.name,
|
|
64
|
+
keywords: [p.path, active.name],
|
|
65
|
+
onSelect: pick({ kind: "new-session", project: p.path, profile: active.id })
|
|
66
|
+
})) : [],
|
|
67
|
+
...here ? profiles.filter((p) => p !== active).map((p) => ({
|
|
68
|
+
label: `New ${p.name} session`,
|
|
69
|
+
icon: icons.plus,
|
|
70
|
+
shortcut: here.label,
|
|
71
|
+
keywords: [p.plan, p.account, here.path],
|
|
72
|
+
onSelect: pick({ kind: "new-session", project: here.path, profile: p.id })
|
|
73
|
+
})) : []
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: "Commands",
|
|
78
|
+
items: commands.filter((c) => c.kind === "command").map((c) => ({
|
|
79
|
+
label: c.name,
|
|
80
|
+
icon: kind(c.kind),
|
|
81
|
+
keywords: [c.description],
|
|
82
|
+
onSelect: pick({ kind: "command", name: c.name })
|
|
83
|
+
}))
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Skills",
|
|
87
|
+
items: commands.filter((c) => c.kind !== "command").map((c) => ({
|
|
88
|
+
label: c.name,
|
|
89
|
+
icon: kind(c.kind),
|
|
90
|
+
keywords: [c.description, c.kind],
|
|
91
|
+
onSelect: pick({ kind: "command", name: c.name })
|
|
92
|
+
}))
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: "Find",
|
|
96
|
+
items: [
|
|
97
|
+
{
|
|
98
|
+
label: "Search transcripts",
|
|
99
|
+
icon: icons.search,
|
|
100
|
+
keywords: ["find", "history", "messages"],
|
|
101
|
+
onSelect: pick({ kind: "search" })
|
|
102
|
+
},
|
|
103
|
+
{ label: "Keyboard shortcuts", icon: icons.command, shortcut: "⌘/", onSelect: pick({ kind: "shortcuts" }) }
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: "Panes",
|
|
108
|
+
items: (panes === false ? [] : panes ? PANES2.filter((p) => panes.includes(p.id)) : PANES2).map((p) => ({
|
|
109
|
+
label: `Open ${p.label.toLowerCase()}`,
|
|
110
|
+
icon: icons[p.icon],
|
|
111
|
+
keywords: ["pane", "side"],
|
|
112
|
+
onSelect: pick({ kind: "pane", pane: p.id })
|
|
113
|
+
}))
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "Settings",
|
|
117
|
+
items: [
|
|
118
|
+
...settings?.length === 0 ? [] : [{ label: "Open settings", icon: icons.settings, shortcut: "⌘,", onSelect: pick({ kind: "settings" }) }],
|
|
119
|
+
...(settings ?? []).map((s) => ({
|
|
120
|
+
label: `Settings: ${s.label}`,
|
|
121
|
+
icon: icons[s.icon],
|
|
122
|
+
keywords: [s.keywords],
|
|
123
|
+
onSelect: pick({ kind: "settings", section: s.id })
|
|
124
|
+
}))
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: "Profiles",
|
|
129
|
+
items: [
|
|
130
|
+
...profiles.map((p) => ({
|
|
131
|
+
label: `Switch to ${p.name}`,
|
|
132
|
+
icon: icons.user,
|
|
133
|
+
shortcut: p.plan,
|
|
134
|
+
keywords: [p.account, p.configDir],
|
|
135
|
+
disabled: p === active,
|
|
136
|
+
onSelect: pick({ kind: "profile", id: p.id })
|
|
137
|
+
})),
|
|
138
|
+
{ label: "Manage profiles", icon: icons.users, onSelect: pick({ kind: "profiles" }) }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
];
|
|
142
|
+
return /* @__PURE__ */ jsxs(Command, {
|
|
143
|
+
open,
|
|
144
|
+
defaultOpen,
|
|
145
|
+
onOpenChange,
|
|
146
|
+
hotkey,
|
|
147
|
+
children: [
|
|
148
|
+
trigger !== null && /* @__PURE__ */ jsx(Command.Trigger, {
|
|
149
|
+
render: trigger ?? /* @__PURE__ */ jsxs(Button, {
|
|
150
|
+
variant: "secondary",
|
|
151
|
+
size: "compact",
|
|
152
|
+
leadingIcon: icons.search,
|
|
153
|
+
"aria-label": label,
|
|
154
|
+
className,
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsx("span", {
|
|
157
|
+
className: "hidden @lg:inline",
|
|
158
|
+
children: label
|
|
159
|
+
}),
|
|
160
|
+
hotkey && /* @__PURE__ */ jsx(Kbd, {
|
|
161
|
+
variant: "plain",
|
|
162
|
+
className: "ml-3 hidden @lg:inline-flex",
|
|
163
|
+
children: `⌘${hotkey.toUpperCase()}`
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
})
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ jsx(Command.Content, {
|
|
169
|
+
label: "Command palette",
|
|
170
|
+
placeholder: "Search sessions, commands and settings…",
|
|
171
|
+
items: groups.filter((g) => g.items.length > 0)
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export { CommandPalette2 };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { JSX as JSX_1kxb } from "react";
|
|
2
|
+
interface Extension2 {
|
|
3
|
+
name: string;
|
|
4
|
+
/** What it adds: a pane, a command, an action, a hook. */
|
|
5
|
+
kind: string;
|
|
6
|
+
/** What it is built as and ships in: an MCP server, a plugin, a settings file. */
|
|
7
|
+
source: string;
|
|
8
|
+
description: string;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface ExtensionsProps2 {
|
|
12
|
+
/** The installed extensions. */
|
|
13
|
+
extensions: Extension2[];
|
|
14
|
+
/** Called when "New extension" is pressed. */
|
|
15
|
+
onNew?: () => void;
|
|
16
|
+
/** Called when an extension's switch flips, with its new state. */
|
|
17
|
+
onToggle?: (extension: Extension2, enabled: boolean) => void;
|
|
18
|
+
}
|
|
19
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
20
|
+
/**
|
|
21
|
+
* Your own features in the app: panes, commands, actions and hooks.
|
|
22
|
+
*
|
|
23
|
+
* They are built as MCP servers, plugins, skills and hooks, so they work in
|
|
24
|
+
* the CLI too. Each is a switch whose description says what kind it is, what
|
|
25
|
+
* it does and where it comes from.
|
|
26
|
+
*
|
|
27
|
+
* @example {@include ./examples.mdx}
|
|
28
|
+
*/
|
|
29
|
+
declare function Extensions2({ extensions, onNew, onToggle }: ExtensionsProps2): Element_12xgc;
|
|
30
|
+
export { Extension2, ExtensionsProps2, Extensions2 };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PaneFile2 } from "./chunk-66sh633m.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
interface FilePaneProps2 {
|
|
4
|
+
/** The open file: its path, language and source. */
|
|
5
|
+
file: PaneFile2;
|
|
6
|
+
/** The session's file paths, browsed as a tree. Omit for no tree toggle. */
|
|
7
|
+
files?: string[];
|
|
8
|
+
/** Called with the path picked in the tree (a folder's path when a folder is picked). */
|
|
9
|
+
onPick?: (id: string) => void;
|
|
10
|
+
/** Called by open in editor with the file's path. */
|
|
11
|
+
onOpen?: (path: string) => void;
|
|
12
|
+
}
|
|
13
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
14
|
+
/**
|
|
15
|
+
* The file the session has open, highlighted, under its path crumb.
|
|
16
|
+
*
|
|
17
|
+
* The crumb folds its middle folders into a menu when the pane is narrow,
|
|
18
|
+
* so the file name is what stays; copy puts the whole path on the
|
|
19
|
+
* clipboard, and open hands the file to your editor. With `files`, the
|
|
20
|
+
* folder button shows the session's files above the source to switch
|
|
21
|
+
* between. A line under it says the language and how long the file is.
|
|
22
|
+
*
|
|
23
|
+
* @example {@include ./examples.mdx}
|
|
24
|
+
*/
|
|
25
|
+
declare function FilePane2({ file, files, onPick, onOpen }: FilePaneProps2): Element_12xgc;
|
|
26
|
+
export { FilePaneProps2, FilePane2 };
|