@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,213 @@
|
|
|
1
|
+
import { IconName2 } from "./chunk-13yf0mza.js";
|
|
2
|
+
/** The side pane's tabs. */
|
|
3
|
+
type PaneId2 = "changes" | "file" | "terminal" | "pr" | "artifacts" | "tasks" | "extension";
|
|
4
|
+
/** The tools the AI app's mock sessions call. */
|
|
5
|
+
type ToolName2 = "Bash" | "Read" | "Edit" | "Write" | "Grep" | "Glob" | "WebFetch" | "Agent" | "MCP" | "TodoWrite";
|
|
6
|
+
interface UsageLimit2 {
|
|
7
|
+
label: string;
|
|
8
|
+
/** Used share, 0–1. */
|
|
9
|
+
value: number;
|
|
10
|
+
detail: string;
|
|
11
|
+
/** The rolling window's length. */
|
|
12
|
+
windowHours: number;
|
|
13
|
+
/** Time until it resets. */
|
|
14
|
+
resetsInHours: number;
|
|
15
|
+
}
|
|
16
|
+
interface Profile2 {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
/** The CLAUDE_CONFIG_DIR the profile's `claude` process runs with. */
|
|
20
|
+
configDir: string;
|
|
21
|
+
plan: string;
|
|
22
|
+
/** `anthropic` signs in to claude.ai; `compatible` points ANTHROPIC_BASE_URL at another provider. */
|
|
23
|
+
provider: "anthropic" | "compatible";
|
|
24
|
+
/** The base URL of a compatible provider. */
|
|
25
|
+
baseUrl?: string;
|
|
26
|
+
account: string;
|
|
27
|
+
defaultModel: string;
|
|
28
|
+
limits: UsageLimit2[];
|
|
29
|
+
/** Sessions running under the profile right now. */
|
|
30
|
+
running: number;
|
|
31
|
+
}
|
|
32
|
+
type SessionStatus2 = "running" | "waiting" | "unread" | "idle";
|
|
33
|
+
/** What a waiting session asks, as the AgentPrompt that answers it. */
|
|
34
|
+
type SessionPrompt2 = {
|
|
35
|
+
kind: "permission";
|
|
36
|
+
tool: string;
|
|
37
|
+
command: string;
|
|
38
|
+
rule?: string;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "question";
|
|
41
|
+
question: string;
|
|
42
|
+
tag?: string;
|
|
43
|
+
options: {
|
|
44
|
+
label: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
/** A turn's work, folded to one row (see Transcript.Work). */
|
|
49
|
+
interface SessionWork2 {
|
|
50
|
+
summary: string;
|
|
51
|
+
detail?: string;
|
|
52
|
+
tools: {
|
|
53
|
+
tool: ToolName2;
|
|
54
|
+
summary: string;
|
|
55
|
+
meta?: string;
|
|
56
|
+
}[];
|
|
57
|
+
}
|
|
58
|
+
interface Session2 {
|
|
59
|
+
id: string;
|
|
60
|
+
title: string;
|
|
61
|
+
status: SessionStatus2;
|
|
62
|
+
profile: string;
|
|
63
|
+
/** Relative time of the last activity. */
|
|
64
|
+
updated: string;
|
|
65
|
+
branch?: string;
|
|
66
|
+
pinned?: boolean;
|
|
67
|
+
/** Linked child sessions started from this one. */
|
|
68
|
+
children?: Session2[];
|
|
69
|
+
/** What a waiting session waits on. */
|
|
70
|
+
waitingOn?: string;
|
|
71
|
+
/** Its task list's progress. */
|
|
72
|
+
tasks?: {
|
|
73
|
+
done: number;
|
|
74
|
+
total: number;
|
|
75
|
+
};
|
|
76
|
+
/** The latest line of its transcript. */
|
|
77
|
+
lastLine?: string;
|
|
78
|
+
/** Its project, when it is listed outside the project's group (pinned). */
|
|
79
|
+
project?: string;
|
|
80
|
+
/** The latest assistant text. */
|
|
81
|
+
reply?: string;
|
|
82
|
+
/** The latest turn's work. */
|
|
83
|
+
work?: SessionWork2;
|
|
84
|
+
/** What it waits on, to answer in place. */
|
|
85
|
+
prompt?: SessionPrompt2;
|
|
86
|
+
}
|
|
87
|
+
interface SessionGroup2 {
|
|
88
|
+
/** A project folder, or a section the user made. */
|
|
89
|
+
label: string;
|
|
90
|
+
kind: "project" | "section";
|
|
91
|
+
path?: string;
|
|
92
|
+
sessions: Session2[];
|
|
93
|
+
}
|
|
94
|
+
/** A folder sessions run in. */
|
|
95
|
+
interface Project2 {
|
|
96
|
+
label: string;
|
|
97
|
+
path: string;
|
|
98
|
+
}
|
|
99
|
+
interface Model2 {
|
|
100
|
+
name: string;
|
|
101
|
+
/** One line on what it is for. */
|
|
102
|
+
note: string;
|
|
103
|
+
}
|
|
104
|
+
interface PermissionMode2 {
|
|
105
|
+
label: string;
|
|
106
|
+
/** What the agent may do without asking. */
|
|
107
|
+
note: string;
|
|
108
|
+
icon: IconName2;
|
|
109
|
+
}
|
|
110
|
+
interface Command2 {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
kind: "command" | "skill" | "plugin";
|
|
114
|
+
}
|
|
115
|
+
interface Change2 {
|
|
116
|
+
path: string;
|
|
117
|
+
status: "added" | "modified" | "deleted";
|
|
118
|
+
added: number;
|
|
119
|
+
removed: number;
|
|
120
|
+
patch: string;
|
|
121
|
+
}
|
|
122
|
+
interface Check2 {
|
|
123
|
+
name: string;
|
|
124
|
+
status: "success" | "running" | "failed";
|
|
125
|
+
detail: string;
|
|
126
|
+
}
|
|
127
|
+
interface Artifact2 {
|
|
128
|
+
title: string;
|
|
129
|
+
kind: string;
|
|
130
|
+
updated: string;
|
|
131
|
+
}
|
|
132
|
+
interface BackgroundTask2 {
|
|
133
|
+
title: string;
|
|
134
|
+
kind: "agent" | "shell" | "session";
|
|
135
|
+
status: "running" | "done" | "failed";
|
|
136
|
+
detail: string;
|
|
137
|
+
}
|
|
138
|
+
interface McpServer2 {
|
|
139
|
+
name: string;
|
|
140
|
+
transport: "stdio" | "http" | "sse";
|
|
141
|
+
status: "connected" | "needs-auth" | "failed" | "disabled";
|
|
142
|
+
tools: number;
|
|
143
|
+
scope: "user" | "project" | "plugin";
|
|
144
|
+
/** The command a stdio server runs, or the URL an http / sse server answers on. */
|
|
145
|
+
target: string;
|
|
146
|
+
/** Env var names passed to the server; values stay in the config. */
|
|
147
|
+
env?: string[];
|
|
148
|
+
/** Tool names, once connected. */
|
|
149
|
+
toolNames?: string[];
|
|
150
|
+
/** Why a failed server stopped: the tail of its stderr. */
|
|
151
|
+
error?: string;
|
|
152
|
+
/** Where a needs-auth server signs in. */
|
|
153
|
+
authHost?: string;
|
|
154
|
+
}
|
|
155
|
+
interface Hook2 {
|
|
156
|
+
event: string;
|
|
157
|
+
matcher: string;
|
|
158
|
+
command: string;
|
|
159
|
+
scope: "user" | "project";
|
|
160
|
+
/** Seconds before the harness gives up on it. */
|
|
161
|
+
timeout?: number;
|
|
162
|
+
/** The latest run: when, and the exit code (non-zero blocks or warns, by event). */
|
|
163
|
+
lastRun?: {
|
|
164
|
+
when: string;
|
|
165
|
+
exit: number;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
interface Plugin2 {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
kind: "plugin" | "skill";
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
}
|
|
174
|
+
interface MemoryFile2 {
|
|
175
|
+
name: string;
|
|
176
|
+
description: string;
|
|
177
|
+
type: "user" | "feedback" | "project" | "reference";
|
|
178
|
+
}
|
|
179
|
+
interface Worktree2 {
|
|
180
|
+
path: string;
|
|
181
|
+
branch: string;
|
|
182
|
+
session: string;
|
|
183
|
+
size: string;
|
|
184
|
+
state: "active" | "merged" | "stale";
|
|
185
|
+
}
|
|
186
|
+
/** What a command palette row stands for, handed back by its `onSelect`. */
|
|
187
|
+
type PaletteItem2 = {
|
|
188
|
+
kind: "session";
|
|
189
|
+
id: string;
|
|
190
|
+
} | {
|
|
191
|
+
kind: "new-session";
|
|
192
|
+
project: string;
|
|
193
|
+
profile: string;
|
|
194
|
+
} | {
|
|
195
|
+
kind: "command";
|
|
196
|
+
name: string;
|
|
197
|
+
} | {
|
|
198
|
+
kind: "pane";
|
|
199
|
+
pane: PaneId2;
|
|
200
|
+
} | {
|
|
201
|
+
kind: "settings";
|
|
202
|
+
section?: string;
|
|
203
|
+
} | {
|
|
204
|
+
kind: "profile";
|
|
205
|
+
id: string;
|
|
206
|
+
} | {
|
|
207
|
+
kind: "profiles";
|
|
208
|
+
} | {
|
|
209
|
+
kind: "search";
|
|
210
|
+
} | {
|
|
211
|
+
kind: "shortcuts";
|
|
212
|
+
};
|
|
213
|
+
export { PaneId2, ToolName2, UsageLimit2, Profile2, SessionStatus2, SessionPrompt2, SessionWork2, Session2, SessionGroup2, Project2, Model2, PermissionMode2, Command2, Change2, Check2, Artifact2, BackgroundTask2, McpServer2, Hook2, Plugin2, MemoryFile2, Worktree2, PaletteItem2 };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useIcon2
|
|
5
|
+
} from "./chunk-xkchhs2z.js";
|
|
6
|
+
|
|
7
|
+
// components/conversation/todo-list/index.tsx
|
|
8
|
+
import Button from "@justanarthur/modo-ui/components/actions/button";
|
|
9
|
+
import { Spinner } from "@justanarthur/modo-ui/components/feedback/progress";
|
|
10
|
+
import { useShape } from "@justanarthur/modo-ui/lib/shape-context";
|
|
11
|
+
import { cn } from "@justanarthur/modo-ui/lib/utils";
|
|
12
|
+
import { useState } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
/*!
|
|
15
|
+
* Local addition (not part of Fluid Functionalism): an AI's plan for the task
|
|
16
|
+
* at hand, pinned under the conversation, with the step in progress turning.
|
|
17
|
+
* Folds to one row. Generalised from the AI app's transcript.
|
|
18
|
+
*/
|
|
19
|
+
function TodoList2({ items, title = "Tasks", defaultOpen = true }) {
|
|
20
|
+
const shape = useShape();
|
|
21
|
+
const [open, setOpen] = useState(defaultOpen);
|
|
22
|
+
const Check = useIcon2("check");
|
|
23
|
+
const Chevron = useIcon2("chevron-up");
|
|
24
|
+
const done = items.filter((i) => i.status === "completed").length;
|
|
25
|
+
const current = items.find((i) => i.status === "in_progress");
|
|
26
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
27
|
+
"aria-label": title,
|
|
28
|
+
className: cn("flex flex-col gap-1 border border-border p-[var(--space-3)]", shape.container),
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: "flex min-w-0 items-center gap-2 text-caption",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsx("span", {
|
|
34
|
+
className: "shrink-0 weight-medium text-foreground",
|
|
35
|
+
children: title
|
|
36
|
+
}),
|
|
37
|
+
!open && current && /* @__PURE__ */ jsx("span", {
|
|
38
|
+
className: "min-w-0 truncate text-muted-foreground",
|
|
39
|
+
children: current.content
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ jsxs("span", {
|
|
42
|
+
className: "ml-auto shrink-0 tabular-nums text-muted-foreground",
|
|
43
|
+
children: [
|
|
44
|
+
done,
|
|
45
|
+
" of ",
|
|
46
|
+
items.length
|
|
47
|
+
]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ jsx(Button, {
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
size: "icon-compact",
|
|
52
|
+
"aria-label": open ? "Fold the list" : "Show every step",
|
|
53
|
+
"aria-expanded": open,
|
|
54
|
+
className: "-mr-1.5 size-6",
|
|
55
|
+
onClick: () => setOpen(!open),
|
|
56
|
+
children: /* @__PURE__ */ jsx(Chevron, {
|
|
57
|
+
className: cn("transition-transform duration-fast", !open && "rotate-180")
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ jsx("ol", {
|
|
63
|
+
className: cn("m-0 flex flex-col p-0", !open && "hidden"),
|
|
64
|
+
children: items.map((item) => /* @__PURE__ */ jsxs("li", {
|
|
65
|
+
className: "flex min-h-6 items-center gap-2 text-body",
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: "flex size-4 shrink-0 items-center justify-center",
|
|
69
|
+
children: item.status === "in_progress" ? /* @__PURE__ */ jsx(Spinner, {
|
|
70
|
+
className: "size-3.5"
|
|
71
|
+
}) : item.status === "completed" ? /* @__PURE__ */ jsx(Check, {
|
|
72
|
+
size: 14,
|
|
73
|
+
strokeWidth: 2,
|
|
74
|
+
className: "text-muted-foreground"
|
|
75
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
76
|
+
className: "size-2.5 rounded-full border border-muted-foreground"
|
|
77
|
+
})
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: cn("min-w-0 truncate", item.status === "in_progress" ? "weight-medium text-foreground" : "text-muted-foreground", item.status === "pending" && "text-foreground"),
|
|
81
|
+
children: item.content
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}, item.content))
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
var todo_list_default = TodoList2;
|
|
90
|
+
|
|
91
|
+
export { TodoList2, todo_list_default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IconName2 } from "./chunk-13yf0mza.js";
|
|
2
|
+
import { Profile2 } from "./chunk-jkkdq1mh.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { JSX as JSX_1kxb } from "react";
|
|
5
|
+
interface SettingsWindowSection2 {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: IconName2;
|
|
9
|
+
/** Lives in a config dir, so the scope picker shows while it is open. */
|
|
10
|
+
scoped: boolean;
|
|
11
|
+
/** Words the search matches besides the label. */
|
|
12
|
+
keywords: string;
|
|
13
|
+
}
|
|
14
|
+
interface SettingsWindowProps2 {
|
|
15
|
+
/** The sections, in sidebar order. */
|
|
16
|
+
sections: SettingsWindowSection2[];
|
|
17
|
+
/** The profiles the scope picker offers, before "This project". */
|
|
18
|
+
profiles: Profile2[];
|
|
19
|
+
/** The open section's id (controlled). */
|
|
20
|
+
section?: string;
|
|
21
|
+
/** The section that starts open. Defaults to the first section. */
|
|
22
|
+
defaultSection?: string;
|
|
23
|
+
/** Called when another section is picked. */
|
|
24
|
+
onSectionChange?: (section: string) => void;
|
|
25
|
+
/** The profile id (or `'project'`) whose config dir the scoped sections edit (controlled). */
|
|
26
|
+
scope?: string;
|
|
27
|
+
/** The scope at first. Defaults to the first profile. */
|
|
28
|
+
defaultScope?: string;
|
|
29
|
+
/** Called when another scope is picked. */
|
|
30
|
+
onScopeChange?: (scope: string) => void;
|
|
31
|
+
/** Start with the section list open. Defaults to `true`. */
|
|
32
|
+
sidebar?: boolean;
|
|
33
|
+
/** Called when "Back to sessions" is pressed. */
|
|
34
|
+
onBack?: () => void;
|
|
35
|
+
/** Called when "Profiles" in the sidebar's footer is pressed: profiles have their own page. */
|
|
36
|
+
onOpenProfiles?: () => void;
|
|
37
|
+
/** Renders the open section, given its id and the config dir being edited. */
|
|
38
|
+
children: (section: string, configDir: string) => ReactNode;
|
|
39
|
+
}
|
|
40
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
41
|
+
/**
|
|
42
|
+
* The app's settings window: a list of sections on the left, the open one
|
|
43
|
+
* on the right.
|
|
44
|
+
*
|
|
45
|
+
* The search over the section list narrows it by name and by what each
|
|
46
|
+
* section holds ("auth", "sound", "disk"). Sections that live in a config dir
|
|
47
|
+
* show a picker in the header that says which one you are editing (a
|
|
48
|
+
* profile's, or the project's `.claude`) and switches it; the others belong
|
|
49
|
+
* to the app and hide it. Profiles themselves are their own page, linked from
|
|
50
|
+
* the sidebar's footer. The content is yours: `children` renders the open
|
|
51
|
+
* section for the config dir in scope.
|
|
52
|
+
*
|
|
53
|
+
* @example {@include ./examples.mdx}
|
|
54
|
+
*/
|
|
55
|
+
declare function SettingsWindow2({ sections, profiles, section, defaultSection, onSectionChange, scope, defaultScope, onScopeChange, sidebar, onBack, onOpenProfiles, children }: SettingsWindowProps2): Element_12xgc;
|
|
56
|
+
export { SettingsWindowSection2, SettingsWindowProps2, SettingsWindow2 };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PaneCheck2, PanePullRequest2 } from "./chunk-66sh633m.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
interface PullRequestPaneProps2 {
|
|
4
|
+
/** The pull request: number, title, branches, its checks and its review comments. */
|
|
5
|
+
pr: PanePullRequest2;
|
|
6
|
+
/** Whether auto-fix starts on. Defaults to `true`. */
|
|
7
|
+
defaultAutoFix?: boolean;
|
|
8
|
+
/** Called with the new state whenever auto-fix is toggled. */
|
|
9
|
+
onAutoFixChange?: (on: boolean) => void;
|
|
10
|
+
/** Called by Re-run failed. */
|
|
11
|
+
onRerun?: () => void;
|
|
12
|
+
/** Called by a check's Full log. */
|
|
13
|
+
onOpenLog?: (check: PaneCheck2) => void;
|
|
14
|
+
/** Called by a failed check's Ask Claude to fix. */
|
|
15
|
+
onFix?: (check: PaneCheck2) => void;
|
|
16
|
+
/** Called by GitHub. */
|
|
17
|
+
onOpenOnGitHub?: () => void;
|
|
18
|
+
/** Called by Merge, which waits while a check fails. */
|
|
19
|
+
onMerge?: () => void;
|
|
20
|
+
}
|
|
21
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
22
|
+
/**
|
|
23
|
+
* The session's pull request: its CI checks as they run, its review
|
|
24
|
+
* comments and the merge.
|
|
25
|
+
*
|
|
26
|
+
* Each check opens to the tail of its log; a failed one starts open, with
|
|
27
|
+
* Ask Claude to fix beside Full log, and the merge waits while one fails.
|
|
28
|
+
* Auto-fix lets the session watch CI, fix failures and answer reviews on
|
|
29
|
+
* its own.
|
|
30
|
+
*
|
|
31
|
+
* @example {@include ./examples.mdx}
|
|
32
|
+
*/
|
|
33
|
+
declare function PullRequestPane2({ pr, defaultAutoFix, onAutoFixChange, onRerun, onOpenLog, onFix, onOpenOnGitHub, onMerge }: PullRequestPaneProps2): Element_12xgc;
|
|
34
|
+
export { PullRequestPaneProps2, PullRequestPane2 };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
paceOf2,
|
|
5
|
+
duration2,
|
|
6
|
+
NO_USAGE2,
|
|
7
|
+
percent2,
|
|
8
|
+
VERDICT_TEXT2
|
|
9
|
+
} from "./chunk-58jh3mje.js";
|
|
10
|
+
import {
|
|
11
|
+
PaceBar2
|
|
12
|
+
} from "./chunk-04a497rr.js";
|
|
13
|
+
import {
|
|
14
|
+
PaneSection2
|
|
15
|
+
} from "./chunk-eqajdxn8.js";
|
|
16
|
+
|
|
17
|
+
// blocks/panes/usage-pane/index.tsx
|
|
18
|
+
import Badge from "@justanarthur/modo-ui/components/data-display/badge";
|
|
19
|
+
import { useSize } from "@justanarthur/modo-ui/lib/size-context";
|
|
20
|
+
import { cn } from "@justanarthur/modo-ui/lib/utils";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
/*!
|
|
23
|
+
* Local addition: the side pane's extensions slot, filled with usage —
|
|
24
|
+
* every profile's limits as pace bars, read against the time until each
|
|
25
|
+
* resets.
|
|
26
|
+
*/
|
|
27
|
+
var VERDICT_WORD = { free: "on pace", watch: "only just", tight: "too fast" };
|
|
28
|
+
function UsagePane2({ profiles }) {
|
|
29
|
+
const size = useSize();
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: "flex flex-col gap-2",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsxs("div", {
|
|
34
|
+
className: "flex items-center gap-2 px-2 pt-2",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: "min-w-0 flex-1 text-caption text-muted-foreground",
|
|
38
|
+
children: "From your ai-app MCP server. The tick is where an even spend would be by now."
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx(Badge, {
|
|
41
|
+
size: "compact",
|
|
42
|
+
color: "violet",
|
|
43
|
+
className: "shrink-0",
|
|
44
|
+
children: "Extension"
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
}),
|
|
48
|
+
profiles.map(paceOf2).map(({ profile, limits, binding }) => /* @__PURE__ */ jsx(PaneSection2, {
|
|
49
|
+
title: profile.name,
|
|
50
|
+
meta: profile.plan,
|
|
51
|
+
actions: /* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: cn("pr-1 text-caption", binding ? VERDICT_TEXT2[binding.verdict] : "text-muted-foreground"),
|
|
53
|
+
children: binding ? VERDICT_WORD[binding.verdict] : NO_USAGE2
|
|
54
|
+
}),
|
|
55
|
+
children: limits.map((pace) => /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
className: cn("flex items-center gap-2 px-2", size.control, size.text),
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx("span", {
|
|
59
|
+
className: "min-w-0 flex-1 truncate text-foreground",
|
|
60
|
+
children: pace.limit.label
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ jsx(PaceBar2, {
|
|
63
|
+
pace,
|
|
64
|
+
className: "w-16 shrink-0"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsxs("span", {
|
|
67
|
+
className: "w-24 shrink-0 whitespace-nowrap text-right text-caption tabular-nums text-muted-foreground",
|
|
68
|
+
children: [
|
|
69
|
+
percent2(pace.limit.value),
|
|
70
|
+
" · ",
|
|
71
|
+
duration2(pace.limit.resetsInHours)
|
|
72
|
+
]
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
}, pace.limit.label))
|
|
76
|
+
}, profile.id))
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export { UsagePane2 };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PaneChange2 } from "./chunk-66sh633m.js";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
interface ChangesPaneProps2 {
|
|
4
|
+
/** The session's changed files, each with its patch. The pane keeps its own copy as you stage, revert and commit. */
|
|
5
|
+
changes: PaneChange2[];
|
|
6
|
+
/** Called with the paths staged (`true`) or unstaged (`false`). */
|
|
7
|
+
onStage?: (paths: string[], staged: boolean) => void;
|
|
8
|
+
/** Called with the paths reverted. */
|
|
9
|
+
onRevert?: (paths: string[]) => void;
|
|
10
|
+
/** Called by Commit with the message (empty when Claude writes one) and the staged paths. */
|
|
11
|
+
onCommit?: (message: string, paths: string[]) => void;
|
|
12
|
+
/** Called by the diff's open in editor with the file's path. */
|
|
13
|
+
onOpenFile?: (path: string) => void;
|
|
14
|
+
}
|
|
15
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
16
|
+
/**
|
|
17
|
+
* The session's changes: staged and unstaged files under a commit field,
|
|
18
|
+
* and the picked file's diff.
|
|
19
|
+
*
|
|
20
|
+
* A row shows the file's status letter, its name before its folder and the
|
|
21
|
+
* lines it adds and removes; hovering it swaps the counts for its stage,
|
|
22
|
+
* unstage and revert. Each section stages, unstages or reverts all at once.
|
|
23
|
+
* Commit takes the staged files (an empty message lets Claude write one).
|
|
24
|
+
* The picked file's diff wraps its long lines; the toggle above it scrolls
|
|
25
|
+
* them instead. With nothing changed, the pane says the tree is clean.
|
|
26
|
+
*
|
|
27
|
+
* @example {@include ./examples.mdx}
|
|
28
|
+
*/
|
|
29
|
+
declare function ChangesPane2({ changes, onStage, onRevert, onCommit, onOpenFile }: ChangesPaneProps2): Element_12xgc;
|
|
30
|
+
export { ChangesPaneProps2, ChangesPane2 };
|