@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,25 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: the AI app's session states on the design system's status
|
|
3
|
+
* glyphs (see StatusDot): running turns, waiting is the warning dot, unread
|
|
4
|
+
* and idle use the Sidebar's own dots, so only those two map here.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { statusGlyph } from '@justanarthur/modo-ui/components/feedback/status-dot'
|
|
8
|
+
import type { IconComponent } from './icons'
|
|
9
|
+
import type { SessionStatus } from './types'
|
|
10
|
+
|
|
11
|
+
export const RunningGlyph: IconComponent = statusGlyph('running')
|
|
12
|
+
export const WaitingGlyph: IconComponent = statusGlyph('waiting')
|
|
13
|
+
|
|
14
|
+
/** The glyph for a session state; unread and idle use the Sidebar's own dots instead. */
|
|
15
|
+
export const STATUS_GLYPH: Partial<Record<SessionStatus, IconComponent>> = {
|
|
16
|
+
running: RunningGlyph,
|
|
17
|
+
waiting: WaitingGlyph,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const STATUS_LABEL: Record<SessionStatus, string> = {
|
|
21
|
+
running: 'Running',
|
|
22
|
+
waiting: 'Needs your input',
|
|
23
|
+
unread: 'Unread',
|
|
24
|
+
idle: 'Idle',
|
|
25
|
+
}
|
package/lib/types.ts
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: the AI app's data shapes — profiles and their limits,
|
|
3
|
+
* sessions and their groups, changes, checks, tasks, settings. Blocks take
|
|
4
|
+
* these through props; the AI pages fill them with their mock data.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/** The side pane's tabs. */
|
|
8
|
+
export type PaneId = 'changes' | 'file' | 'terminal' | 'pr' | 'artifacts' | 'tasks' | 'extension'
|
|
9
|
+
|
|
10
|
+
/** The tools the AI app's mock sessions call. */
|
|
11
|
+
export type ToolName = 'Bash' | 'Read' | 'Edit' | 'Write' | 'Grep' | 'Glob' | 'WebFetch' | 'Agent' | 'MCP' | 'TodoWrite'
|
|
12
|
+
|
|
13
|
+
import type { IconName } from './icons'
|
|
14
|
+
|
|
15
|
+
export interface UsageLimit {
|
|
16
|
+
label: string
|
|
17
|
+
/** Used share, 0–1. */
|
|
18
|
+
value: number
|
|
19
|
+
detail: string
|
|
20
|
+
/** The rolling window's length. */
|
|
21
|
+
windowHours: number
|
|
22
|
+
/** Time until it resets. */
|
|
23
|
+
resetsInHours: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Profile {
|
|
27
|
+
id: string
|
|
28
|
+
name: string
|
|
29
|
+
/** The CLAUDE_CONFIG_DIR the profile's `claude` process runs with. */
|
|
30
|
+
configDir: string
|
|
31
|
+
plan: string
|
|
32
|
+
/** `anthropic` signs in to claude.ai; `compatible` points ANTHROPIC_BASE_URL at another provider. */
|
|
33
|
+
provider: 'anthropic' | 'compatible'
|
|
34
|
+
/** The base URL of a compatible provider. */
|
|
35
|
+
baseUrl?: string
|
|
36
|
+
account: string
|
|
37
|
+
defaultModel: string
|
|
38
|
+
limits: UsageLimit[]
|
|
39
|
+
/** Sessions running under the profile right now. */
|
|
40
|
+
running: number
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type SessionStatus = 'running' | 'waiting' | 'unread' | 'idle'
|
|
44
|
+
|
|
45
|
+
/** What a waiting session asks, as the AgentPrompt that answers it. */
|
|
46
|
+
export type SessionPrompt =
|
|
47
|
+
| { kind: 'permission'; tool: string; command: string; rule?: string }
|
|
48
|
+
| { kind: 'question'; question: string; tag?: string; options: { label: string; description?: string }[] }
|
|
49
|
+
|
|
50
|
+
/** A turn's work, folded to one row (see Transcript.Work). */
|
|
51
|
+
export interface SessionWork {
|
|
52
|
+
summary: string
|
|
53
|
+
detail?: string
|
|
54
|
+
tools: { tool: ToolName; summary: string; meta?: string }[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface Session {
|
|
58
|
+
id: string
|
|
59
|
+
title: string
|
|
60
|
+
status: SessionStatus
|
|
61
|
+
profile: string
|
|
62
|
+
/** Relative time of the last activity. */
|
|
63
|
+
updated: string
|
|
64
|
+
branch?: string
|
|
65
|
+
pinned?: boolean
|
|
66
|
+
/** Linked child sessions started from this one. */
|
|
67
|
+
children?: Session[]
|
|
68
|
+
/** What a waiting session waits on. */
|
|
69
|
+
waitingOn?: string
|
|
70
|
+
/** Its task list's progress. */
|
|
71
|
+
tasks?: { done: number; total: number }
|
|
72
|
+
/** The latest line of its transcript. */
|
|
73
|
+
lastLine?: string
|
|
74
|
+
/** Its project, when it is listed outside the project's group (pinned). */
|
|
75
|
+
project?: string
|
|
76
|
+
/** The latest assistant text. */
|
|
77
|
+
reply?: string
|
|
78
|
+
/** The latest turn's work. */
|
|
79
|
+
work?: SessionWork
|
|
80
|
+
/** What it waits on, to answer in place. */
|
|
81
|
+
prompt?: SessionPrompt
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface SessionGroup {
|
|
85
|
+
/** A project folder, or a section the user made. */
|
|
86
|
+
label: string
|
|
87
|
+
kind: 'project' | 'section'
|
|
88
|
+
path?: string
|
|
89
|
+
sessions: Session[]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** A folder sessions run in. */
|
|
93
|
+
export interface Project {
|
|
94
|
+
label: string
|
|
95
|
+
path: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface Model {
|
|
99
|
+
name: string
|
|
100
|
+
/** One line on what it is for. */
|
|
101
|
+
note: string
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface PermissionMode {
|
|
105
|
+
label: string
|
|
106
|
+
/** What the agent may do without asking. */
|
|
107
|
+
note: string
|
|
108
|
+
icon: IconName
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface Command {
|
|
112
|
+
name: string
|
|
113
|
+
description: string
|
|
114
|
+
kind: 'command' | 'skill' | 'plugin'
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface Change {
|
|
118
|
+
path: string
|
|
119
|
+
status: 'added' | 'modified' | 'deleted'
|
|
120
|
+
added: number
|
|
121
|
+
removed: number
|
|
122
|
+
patch: string
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface Check {
|
|
126
|
+
name: string
|
|
127
|
+
status: 'success' | 'running' | 'failed'
|
|
128
|
+
detail: string
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface Artifact {
|
|
132
|
+
title: string
|
|
133
|
+
kind: string
|
|
134
|
+
updated: string
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface BackgroundTask {
|
|
138
|
+
title: string
|
|
139
|
+
kind: 'agent' | 'shell' | 'session'
|
|
140
|
+
status: 'running' | 'done' | 'failed'
|
|
141
|
+
detail: string
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface McpServer {
|
|
145
|
+
name: string
|
|
146
|
+
transport: 'stdio' | 'http' | 'sse'
|
|
147
|
+
status: 'connected' | 'needs-auth' | 'failed' | 'disabled'
|
|
148
|
+
tools: number
|
|
149
|
+
scope: 'user' | 'project' | 'plugin'
|
|
150
|
+
/** The command a stdio server runs, or the URL an http / sse server answers on. */
|
|
151
|
+
target: string
|
|
152
|
+
/** Env var names passed to the server; values stay in the config. */
|
|
153
|
+
env?: string[]
|
|
154
|
+
/** Tool names, once connected. */
|
|
155
|
+
toolNames?: string[]
|
|
156
|
+
/** Why a failed server stopped: the tail of its stderr. */
|
|
157
|
+
error?: string
|
|
158
|
+
/** Where a needs-auth server signs in. */
|
|
159
|
+
authHost?: string
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface Hook {
|
|
163
|
+
event: string
|
|
164
|
+
matcher: string
|
|
165
|
+
command: string
|
|
166
|
+
scope: 'user' | 'project'
|
|
167
|
+
/** Seconds before the harness gives up on it. */
|
|
168
|
+
timeout?: number
|
|
169
|
+
/** The latest run: when, and the exit code (non-zero blocks or warns, by event). */
|
|
170
|
+
lastRun?: { when: string; exit: number }
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface Plugin {
|
|
174
|
+
name: string
|
|
175
|
+
description: string
|
|
176
|
+
kind: 'plugin' | 'skill'
|
|
177
|
+
enabled: boolean
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface MemoryFile {
|
|
181
|
+
name: string
|
|
182
|
+
description: string
|
|
183
|
+
type: 'user' | 'feedback' | 'project' | 'reference'
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface Worktree {
|
|
187
|
+
path: string
|
|
188
|
+
branch: string
|
|
189
|
+
session: string
|
|
190
|
+
size: string
|
|
191
|
+
state: 'active' | 'merged' | 'stale'
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** What a command palette row stands for, handed back by its `onSelect`. */
|
|
195
|
+
export type PaletteItem =
|
|
196
|
+
| { kind: 'session'; id: string }
|
|
197
|
+
| { kind: 'new-session'; project: string; profile: string }
|
|
198
|
+
| { kind: 'command'; name: string }
|
|
199
|
+
| { kind: 'pane'; pane: PaneId }
|
|
200
|
+
| { kind: 'settings'; section?: string }
|
|
201
|
+
| { kind: 'profile'; id: string }
|
|
202
|
+
| { kind: 'profiles' }
|
|
203
|
+
| { kind: 'search' }
|
|
204
|
+
| { kind: 'shortcuts' }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: a mock reply that streams in a few words at a time, so the
|
|
3
|
+
* workspace answers what you send and the transcript has something to follow.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
8
|
+
import { useEffect, useState } from 'react'
|
|
9
|
+
import Transcript from '../blocks/conversation/transcript'
|
|
10
|
+
|
|
11
|
+
const REPLY = `On it. I'll read the blocks that touch this first, then change them one at a time and run the checks after each.
|
|
12
|
+
|
|
13
|
+
1. Find where the composer hands the draft to the session.
|
|
14
|
+
2. Make the change and keep the props as they are.
|
|
15
|
+
3. Run \`bun run check\` and look at both themes.
|
|
16
|
+
|
|
17
|
+
I'll stop and ask before anything that leaves this branch.`
|
|
18
|
+
|
|
19
|
+
const WORDS = REPLY.split(/(?<=\s)/)
|
|
20
|
+
|
|
21
|
+
/** The canned answer to a message, a few words per tick until it is whole. */
|
|
22
|
+
export function DemoReply() {
|
|
23
|
+
const [count, setCount] = useState(0)
|
|
24
|
+
const done = count >= WORDS.length
|
|
25
|
+
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (done) return
|
|
28
|
+
const id = setTimeout(() => setCount(count + 3), 60)
|
|
29
|
+
return () => clearTimeout(id)
|
|
30
|
+
}, [count, done])
|
|
31
|
+
|
|
32
|
+
return <Transcript.Assistant streaming={!done}>{WORDS.slice(0, count).join('')}</Transcript.Assistant>
|
|
33
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: one mock session for the AI app, as transcript
|
|
3
|
+
* turns. The transcript's examples and the workspace pages render it.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import Diff from '@justanarthur/modo-ui/components/data-display/diff'
|
|
7
|
+
import Markdown from '@justanarthur/modo-ui/components/data-display/markdown'
|
|
8
|
+
import Code from '@justanarthur/modo-ui/primitives/content/code'
|
|
9
|
+
import Transcript, { type TaskItem, type TocChapter } from '../blocks/conversation/transcript'
|
|
10
|
+
import { CHANGES, TERMINAL_LINES } from './mock'
|
|
11
|
+
|
|
12
|
+
export const DEMO_CHAPTERS: TocChapter[] = [
|
|
13
|
+
{ id: 'chapter-read', title: 'Reading the design system', detail: '14:02 · 3 turns' },
|
|
14
|
+
{ id: 'chapter-build', title: 'Building the blocks', detail: '14:20 · 5 turns' },
|
|
15
|
+
{ id: 'chapter-verify', title: 'Verification', detail: '14:51 · now' },
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
export const DEMO_TASKS: TaskItem[] = [
|
|
19
|
+
{ content: 'Read the design rules and the craft page', status: 'completed' },
|
|
20
|
+
{ content: 'Add Meter and Diff components', status: 'completed' },
|
|
21
|
+
{ content: 'Build the AI app blocks', status: 'completed' },
|
|
22
|
+
{ content: 'Assemble the pages', status: 'in_progress' },
|
|
23
|
+
{ content: 'Lint, typecheck, check both themes', status: 'pending' },
|
|
24
|
+
{ content: 'Commit on the branch', status: 'pending' },
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
/** The opening turns: the ask, the reading, an Explore run. */
|
|
28
|
+
export function DemoReading() {
|
|
29
|
+
return (
|
|
30
|
+
<>
|
|
31
|
+
<Transcript.Chapter id="chapter-read" title="Reading the design system" />
|
|
32
|
+
<Transcript.User
|
|
33
|
+
attachments={
|
|
34
|
+
<>
|
|
35
|
+
<Transcript.Attachment kind="image" name="claude-desktop.png" detail="1.2 MB" />
|
|
36
|
+
<Transcript.Attachment kind="pasted" name="Pasted text" detail="38 lines" />
|
|
37
|
+
</>
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
Design a desktop app that drives all my claude profiles. Build it only from modo-ui and follow{' '}
|
|
41
|
+
<Transcript.Mention path="ui/DESIGN.md" /> and <Transcript.Mention path="ui/AGENTS.md" />.
|
|
42
|
+
</Transcript.User>
|
|
43
|
+
<Transcript.Assistant>
|
|
44
|
+
<Transcript.Work summary="Worked for 52s" detail="Thought 8s · 4 reads and searches · 1 agent">
|
|
45
|
+
<Transcript.Thinking duration="8s">
|
|
46
|
+
<p className="m-0">
|
|
47
|
+
Pages render as example cards, so each screen is a page item with a framed example per state. Blocks carry
|
|
48
|
+
the reusable parts.
|
|
49
|
+
</p>
|
|
50
|
+
</Transcript.Thinking>
|
|
51
|
+
<Transcript.Tools>
|
|
52
|
+
<Transcript.Tool index={0} value="read-design" tool="Read" summary="ui/DESIGN.md" meta="543 lines" />
|
|
53
|
+
<Transcript.Tool index={1} value="read-agents" tool="Read" summary="ui/AGENTS.md" meta="81 lines" />
|
|
54
|
+
<Transcript.Tool index={2} value="grep-goo" tool="Grep" summary={'"GooIndicator" ui/'} meta="12 files">
|
|
55
|
+
<Code language="sh">
|
|
56
|
+
{
|
|
57
|
+
'ui/lib/goo-indicator.tsx\nui/components/inputs/radio/index.tsx\nui/components/navigation/tabs/index.tsx\n…9 more'
|
|
58
|
+
}
|
|
59
|
+
</Code>
|
|
60
|
+
</Transcript.Tool>
|
|
61
|
+
<Transcript.Tool index={3} value="glob-blocks" tool="Glob" summary="ui/blocks/**/index.tsx" meta="1 file" />
|
|
62
|
+
</Transcript.Tools>
|
|
63
|
+
<Transcript.Agent agent="Explore" description="How the pages tier renders" meta="14 tool uses · 38s">
|
|
64
|
+
<p className="m-0 text-body text-muted-foreground">
|
|
65
|
+
Pages are discovered like blocks: a sidebar section, an overview card and an item page whose examples
|
|
66
|
+
render at screen size.
|
|
67
|
+
</p>
|
|
68
|
+
</Transcript.Agent>
|
|
69
|
+
</Transcript.Work>
|
|
70
|
+
<Markdown>
|
|
71
|
+
{`Here is the split I will build:
|
|
72
|
+
|
|
73
|
+
- **Blocks** — profile switcher, sessions sidebar, transcript, prompts, composer and side pane.
|
|
74
|
+
- **Pages** — the workspace, a new session, the prompt states, profiles and settings.
|
|
75
|
+
- Two missing pieces become components: \`Meter\` and \`Diff\`.`}
|
|
76
|
+
</Markdown>
|
|
77
|
+
</Transcript.Assistant>
|
|
78
|
+
</>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** The building turns: writes, an edit with its diff, a background agent. */
|
|
83
|
+
export function DemoBuilding() {
|
|
84
|
+
const icons = CHANGES[1]
|
|
85
|
+
return (
|
|
86
|
+
<>
|
|
87
|
+
<Transcript.Chapter id="chapter-build" title="Building the blocks" />
|
|
88
|
+
<Transcript.User>
|
|
89
|
+
Go ahead. Keep the status hues for real states only, and show the custom-features slot.
|
|
90
|
+
</Transcript.User>
|
|
91
|
+
<Transcript.Assistant>
|
|
92
|
+
<Transcript.Work summary="Worked for 2m 10s" detail="3 tool calls · 1 background agent" running>
|
|
93
|
+
<Transcript.Tools defaultValue={['edit-icons']}>
|
|
94
|
+
<Transcript.Tool
|
|
95
|
+
index={0}
|
|
96
|
+
value="write-meter"
|
|
97
|
+
tool="Write"
|
|
98
|
+
summary="ui/components/meter/index.tsx"
|
|
99
|
+
meta="118 lines"
|
|
100
|
+
/>
|
|
101
|
+
<Transcript.Tool index={1} value="edit-icons" tool="Edit" summary={icons?.path ?? ''} meta="+3 −1">
|
|
102
|
+
<Diff lineNumbers={false} patch={icons?.patch ?? ''} />
|
|
103
|
+
</Transcript.Tool>
|
|
104
|
+
<Transcript.Tool index={2} value="lint" tool="Bash" summary="bun run lint" meta="exit 0">
|
|
105
|
+
<Code language="sh">{TERMINAL_LINES.slice(0, 2).join('\n')}</Code>
|
|
106
|
+
</Transcript.Tool>
|
|
107
|
+
</Transcript.Tools>
|
|
108
|
+
<Transcript.Agent
|
|
109
|
+
agent="general-purpose"
|
|
110
|
+
description="Audit every new file for custom values"
|
|
111
|
+
status="running"
|
|
112
|
+
background
|
|
113
|
+
meta="6 tool uses"
|
|
114
|
+
/>
|
|
115
|
+
</Transcript.Work>
|
|
116
|
+
<p className="m-0">
|
|
117
|
+
The blocks are in. The background audit keeps running while I assemble the pages; I will fold its findings in
|
|
118
|
+
when it reports.
|
|
119
|
+
</p>
|
|
120
|
+
</Transcript.Assistant>
|
|
121
|
+
</>
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** The live turn: a check in flight. */
|
|
126
|
+
export function DemoVerifying() {
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
<Transcript.Chapter id="chapter-verify" title="Verification" />
|
|
130
|
+
<Transcript.Assistant streaming>
|
|
131
|
+
<Transcript.Work summary="Working…" detail="bun run check" running>
|
|
132
|
+
<Transcript.Tools>
|
|
133
|
+
<Transcript.Tool index={0} value="check" tool="Bash" summary="bun run check" status="running" />
|
|
134
|
+
</Transcript.Tools>
|
|
135
|
+
</Transcript.Work>
|
|
136
|
+
</Transcript.Assistant>
|
|
137
|
+
</>
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** The whole mock session. */
|
|
142
|
+
export function DemoSession() {
|
|
143
|
+
return (
|
|
144
|
+
<>
|
|
145
|
+
<DemoReading />
|
|
146
|
+
<DemoBuilding />
|
|
147
|
+
<DemoVerifying />
|
|
148
|
+
</>
|
|
149
|
+
)
|
|
150
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: mock data for the AI app's config forms — an MCP server
|
|
3
|
+
* being edited and its connection tests, a hook, the permission rules, and
|
|
4
|
+
* the plugin catalog.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { HookConfig } from '../blocks/dialogs/hook-dialog'
|
|
8
|
+
import type { McpConnectionTest, McpServerConfig } from '../blocks/dialogs/mcp-server-dialog'
|
|
9
|
+
import type { PermissionSettings } from '../blocks/settings/permission-rules'
|
|
10
|
+
import type { CatalogPlugin } from '../blocks/settings/plugin-catalog'
|
|
11
|
+
|
|
12
|
+
export const MCP_TAKEN = ['ai-app', 'github', 'linear', 'postgres']
|
|
13
|
+
|
|
14
|
+
export const MCP_POSTGRES: McpServerConfig = {
|
|
15
|
+
name: 'postgres',
|
|
16
|
+
transport: 'stdio',
|
|
17
|
+
command: 'npx',
|
|
18
|
+
args: ['-y', '@modelcontextprotocol/server-postgres'],
|
|
19
|
+
env: [
|
|
20
|
+
{ key: 'DATABASE_URL', value: 'postgres://app@localhost:5432/app', secret: true },
|
|
21
|
+
{ key: 'PGSSLMODE', value: 'disable' },
|
|
22
|
+
],
|
|
23
|
+
url: '',
|
|
24
|
+
headers: [],
|
|
25
|
+
scope: 'project',
|
|
26
|
+
profiles: ['work'],
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const MCP_LINEAR: Partial<McpServerConfig> = {
|
|
30
|
+
name: 'linear-staging',
|
|
31
|
+
transport: 'http',
|
|
32
|
+
url: 'https://mcp.linear.app/mcp',
|
|
33
|
+
headers: [{ key: 'Authorization', value: 'Bearer lin_test_0000', secret: true }],
|
|
34
|
+
scope: 'user',
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const MCP_TEST_TESTING: McpConnectionTest = { state: 'testing' }
|
|
38
|
+
|
|
39
|
+
export const MCP_TEST_OK: McpConnectionTest = {
|
|
40
|
+
state: 'ok',
|
|
41
|
+
tools: ['query', 'list_tables', 'describe_table', 'explain'],
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const MCP_TEST_FAILED: McpConnectionTest = {
|
|
45
|
+
state: 'failed',
|
|
46
|
+
error:
|
|
47
|
+
'Error: connect ECONNREFUSED 127.0.0.1:5432\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)\nserver exited with code 1',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const HOOK_LINT: HookConfig = {
|
|
51
|
+
event: 'PostToolUse',
|
|
52
|
+
matcher: 'Edit|Write',
|
|
53
|
+
command: 'bun run lint --fix "$CLAUDE_PROJECT_DIR"',
|
|
54
|
+
timeout: 30,
|
|
55
|
+
scope: 'project',
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const HOOK_GUARD: HookConfig = {
|
|
59
|
+
event: 'PreToolUse',
|
|
60
|
+
matcher: 'Bash',
|
|
61
|
+
command: "jq -r '.tool_input.command' | grep -qE 'rm -rf|git push --force' && exit 2 || exit 0",
|
|
62
|
+
timeout: 10,
|
|
63
|
+
scope: 'user',
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const PERMISSIONS: PermissionSettings = {
|
|
67
|
+
mode: 'acceptEdits',
|
|
68
|
+
rules: [
|
|
69
|
+
{ rule: 'Bash(bun run *)', behavior: 'allow', scope: 'project' },
|
|
70
|
+
{ rule: 'Bash(git status)', behavior: 'allow', scope: 'user' },
|
|
71
|
+
{ rule: 'Edit(ui/**)', behavior: 'allow', scope: 'project' },
|
|
72
|
+
{ rule: 'WebFetch(domain:github.com)', behavior: 'allow', scope: 'user' },
|
|
73
|
+
{ rule: 'mcp__github', behavior: 'allow', scope: 'local' },
|
|
74
|
+
{ rule: 'Bash(git push *)', behavior: 'ask', scope: 'project' },
|
|
75
|
+
{ rule: 'WebFetch', behavior: 'ask', scope: 'user' },
|
|
76
|
+
{ rule: 'Read(.env*)', behavior: 'deny', scope: 'project' },
|
|
77
|
+
{ rule: 'Bash(rm -rf *)', behavior: 'deny', scope: 'user' },
|
|
78
|
+
],
|
|
79
|
+
directories: ['../modo-docs', '~/Projects/shared/tokens'],
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const CATALOG: CatalogPlugin[] = [
|
|
83
|
+
{
|
|
84
|
+
id: 'commit-commands',
|
|
85
|
+
name: 'commit-commands',
|
|
86
|
+
author: 'Anthropic',
|
|
87
|
+
marketplace: 'claude-plugins-official',
|
|
88
|
+
description: 'Commit, push and open a pull request in one command, with messages written from the diff.',
|
|
89
|
+
category: 'Git',
|
|
90
|
+
version: '1.4.0',
|
|
91
|
+
installed: '1.4.0',
|
|
92
|
+
readme:
|
|
93
|
+
'# commit-commands\n\nThree commands for the end of a change:\n\n- `/commit` writes a conventional message from the staged diff.\n- `/commit-push-pr` commits, pushes and opens a PR.\n- `/clean-gone` deletes local branches whose remote is gone.\n\nNothing is pushed without your go-ahead.',
|
|
94
|
+
contents: [
|
|
95
|
+
{ kind: 'command', name: '/commit', description: 'A commit from the staged diff' },
|
|
96
|
+
{ kind: 'command', name: '/commit-push-pr', description: 'Commit, push and open a PR' },
|
|
97
|
+
{ kind: 'command', name: '/clean-gone', description: 'Delete branches whose remote is gone' },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'pr-review-toolkit',
|
|
102
|
+
name: 'pr-review-toolkit',
|
|
103
|
+
author: 'Anthropic',
|
|
104
|
+
marketplace: 'claude-plugins-official',
|
|
105
|
+
description: 'Specialised review agents for comments, tests, error handling, types and simplification.',
|
|
106
|
+
category: 'Code review',
|
|
107
|
+
version: '2.1.0',
|
|
108
|
+
installed: '2.0.3',
|
|
109
|
+
readme:
|
|
110
|
+
'# pr-review-toolkit\n\nRun `/review-pr` on a branch and six agents read the diff in parallel, each for one kind of problem. Findings come back ranked, with the file and line.\n\n## Agents\n\n| Agent | Looks for |\n| --- | --- |\n| comment-analyzer | stale or wrong comments |\n| silent-failure-hunter | swallowed errors |\n| type-design-analyzer | weak invariants |',
|
|
111
|
+
contents: [
|
|
112
|
+
{ kind: 'command', name: '/review-pr', description: 'Review the current branch' },
|
|
113
|
+
{ kind: 'agent', name: 'comment-analyzer' },
|
|
114
|
+
{ kind: 'agent', name: 'silent-failure-hunter' },
|
|
115
|
+
{ kind: 'agent', name: 'type-design-analyzer' },
|
|
116
|
+
{ kind: 'skill', name: 'review-checklist', description: 'What a reviewer checks first' },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 'playwright',
|
|
121
|
+
name: 'playwright',
|
|
122
|
+
author: 'Microsoft',
|
|
123
|
+
marketplace: 'claude-plugins-official',
|
|
124
|
+
description: 'Drive a real browser: navigate, click, fill forms, take screenshots and read the console.',
|
|
125
|
+
category: 'Testing',
|
|
126
|
+
version: '0.9.2',
|
|
127
|
+
readme:
|
|
128
|
+
'# playwright\n\nAn MCP server over Playwright. Sessions get tools to open pages, act on them by accessibility snapshot and capture what they see.\n\n```sh\nnpx @playwright/mcp@latest\n```',
|
|
129
|
+
contents: [
|
|
130
|
+
{ kind: 'mcp', name: 'playwright', description: '22 tools: navigate, click, type, snapshot, screenshot…' },
|
|
131
|
+
{ kind: 'skill', name: 'e2e-testing', description: 'When and how to write a browser test' },
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: 'security-guidance',
|
|
136
|
+
name: 'security-guidance',
|
|
137
|
+
author: 'Anthropic',
|
|
138
|
+
marketplace: 'claude-plugins-official',
|
|
139
|
+
description: 'A hook that warns before an edit introduces injection, unsafe deserialisation or secrets.',
|
|
140
|
+
category: 'Security',
|
|
141
|
+
version: '1.0.1',
|
|
142
|
+
readme:
|
|
143
|
+
'# security-guidance\n\nA PreToolUse hook on Edit and Write. It checks the new text for common footguns and, when it finds one, tells Claude why before the edit lands.',
|
|
144
|
+
contents: [{ kind: 'hook', name: 'PreToolUse · Edit|Write', description: 'Pattern checks on new code' }],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: 'frontend-design',
|
|
148
|
+
name: 'frontend-design',
|
|
149
|
+
author: 'Anthropic',
|
|
150
|
+
marketplace: 'claude-plugins-official',
|
|
151
|
+
description: 'A skill for distinctive, production-grade interfaces that avoid the generic look.',
|
|
152
|
+
category: 'Design',
|
|
153
|
+
version: '1.2.0',
|
|
154
|
+
readme:
|
|
155
|
+
'# frontend-design\n\nLoads when a task asks for UI. It pushes for a clear aesthetic direction, real typography and motion with a purpose.',
|
|
156
|
+
contents: [{ kind: 'skill', name: 'frontend-design' }],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: 'sentry',
|
|
160
|
+
name: 'sentry',
|
|
161
|
+
author: 'Sentry',
|
|
162
|
+
marketplace: 'acme-internal',
|
|
163
|
+
description: 'Look up issues and traces, and fix the top error of a release from its stack trace.',
|
|
164
|
+
category: 'Observability',
|
|
165
|
+
version: '0.4.0',
|
|
166
|
+
readme:
|
|
167
|
+
'# sentry\n\nConnects the Sentry MCP server and adds `/fix-top-issue`, which pulls the most frequent error of the latest release and starts a fix.',
|
|
168
|
+
contents: [
|
|
169
|
+
{ kind: 'mcp', name: 'sentry', description: 'Issues, events, traces and releases' },
|
|
170
|
+
{ kind: 'command', name: '/fix-top-issue', description: 'Fix the latest release’s top error' },
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
]
|