meowtail 0.1.0 → 0.2.0-alpha.1
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/AGENT-COMPONENTS.md +117 -0
- package/ASSISTANT.md +39 -19
- package/JSON.md +12 -5
- package/README.md +462 -349
- package/THIRD_PARTY_NOTICES.md +8 -0
- package/dist/src/chat/assistant-composer.js +3 -5
- package/dist/src/chat/assistant-content.d.ts +2 -0
- package/dist/src/chat/assistant-content.js +51 -3
- package/dist/src/chat/assistant-types.d.ts +39 -1
- package/dist/src/chat/assistant.d.ts +1 -1
- package/dist/src/chat/assistant.js +6 -3
- package/dist/src/chat/attachments.js +9 -5
- package/dist/src/chat/composer-panel.d.ts +17 -0
- package/dist/src/chat/composer-panel.js +12 -0
- package/dist/src/chat/composer.d.ts +2 -0
- package/dist/src/chat/composer.js +5 -2
- package/dist/src/chat/conversation.d.ts +4 -1
- package/dist/src/chat/conversation.js +7 -4
- package/dist/src/chat/index.d.ts +5 -2
- package/dist/src/chat/index.js +2 -0
- package/dist/src/chat/message-list.js +1 -1
- package/dist/src/chat/message.js +3 -3
- package/dist/src/chat/question.js +1 -1
- package/dist/src/chat/sources.js +1 -1
- package/dist/src/chat/task.d.ts +29 -0
- package/dist/src/chat/task.js +53 -0
- package/dist/src/chat/tool-call.d.ts +33 -8
- package/dist/src/chat/tool-call.js +70 -26
- package/dist/src/components/action-rail.d.ts +19 -0
- package/dist/src/components/action-rail.js +13 -0
- package/dist/src/components/add-button.js +1 -1
- package/dist/src/components/alert.d.ts +2 -0
- package/dist/src/components/alert.js +2 -1
- package/dist/src/components/app-bar.d.ts +17 -0
- package/dist/src/components/app-bar.js +10 -0
- package/dist/src/components/breadcrumb.js +1 -1
- package/dist/src/components/choice-select.js +1 -1
- package/dist/src/components/code-block.js +6 -6
- package/dist/src/components/credential-source.js +12 -12
- package/dist/src/components/diff-block.js +1 -1
- package/dist/src/components/grid.js +1 -0
- package/dist/src/components/hover-card.js +2 -2
- package/dist/src/components/image-lightbox.js +3 -3
- package/dist/src/components/image-preview.js +1 -1
- package/dist/src/components/index.d.ts +4 -0
- package/dist/src/components/index.js +4 -0
- package/dist/src/components/inline.js +1 -0
- package/dist/src/components/json-block.js +2 -2
- package/dist/src/components/json-tree.js +3 -3
- package/dist/src/components/layout-item.js +2 -1
- package/dist/src/components/layout-types.d.ts +1 -1
- package/dist/src/components/list-group.d.ts +1 -1
- package/dist/src/components/menu.js +5 -5
- package/dist/src/components/meta-row.d.ts +33 -0
- package/dist/src/components/meta-row.js +45 -0
- package/dist/src/components/output-block.d.ts +5 -3
- package/dist/src/components/output-block.js +35 -25
- package/dist/src/components/page-frame.d.ts +6 -2
- package/dist/src/components/page-frame.js +2 -2
- package/dist/src/components/path-picker.js +4 -4
- package/dist/src/components/process-group.d.ts +2 -2
- package/dist/src/components/rail-item.d.ts +2 -2
- package/dist/src/components/rail-section.d.ts +1 -1
- package/dist/src/components/read-block.js +2 -2
- package/dist/src/components/resource-card.d.ts +1 -1
- package/dist/src/components/resource-link.d.ts +1 -1
- package/dist/src/components/search-block.js +2 -3
- package/dist/src/components/stack.js +1 -0
- package/dist/src/components/status.d.ts +16 -0
- package/dist/src/components/status.js +8 -0
- package/dist/src/components/terminal-block.js +6 -6
- package/dist/src/components/web-block.js +3 -3
- package/dist/src/components/work-card.d.ts +2 -2
- package/dist/src/components/work-card.js +1 -1
- package/dist/src/icons/README.md +13 -2
- package/dist/src/icons/icon-frame.d.ts +11 -0
- package/dist/src/icons/icon-frame.js +4 -0
- package/dist/src/icons/icon-source.d.ts +17 -0
- package/dist/src/icons/icon-source.js +6 -0
- package/dist/src/icons/icon.d.ts +44 -37
- package/dist/src/icons/icon.js +55 -128
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +1 -0
- package/dist/src/icons/lucide.d.ts +1 -0
- package/dist/src/icons/lucide.js +4 -0
- package/dist/src/json/catalog.d.ts +88 -2
- package/dist/src/json/catalog.js +33 -1
- package/dist/src/registry/index.d.ts +54 -4
- package/dist/src/registry/index.js +16 -2
- package/dist/src/shared/execution-state.d.ts +7 -0
- package/dist/src/shared/execution-state.js +36 -0
- package/dist/src/theme/base.styles.js +15 -0
- package/dist/src/theme/chat/assistant.styles.js +21 -9
- package/dist/src/theme/chat/composer-panel.styles.d.ts +1 -0
- package/dist/src/theme/chat/composer-panel.styles.js +44 -0
- package/dist/src/theme/chat/composer.styles.js +39 -7
- package/dist/src/theme/chat/conversation.styles.js +15 -7
- package/dist/src/theme/chat/records.styles.js +79 -7
- package/dist/src/theme/chat/task.styles.d.ts +1 -0
- package/dist/src/theme/chat/task.styles.js +87 -0
- package/dist/src/theme/components/action-rail.styles.d.ts +1 -0
- package/dist/src/theme/components/action-rail.styles.js +47 -0
- package/dist/src/theme/components/alert.styles.js +42 -1
- package/dist/src/theme/components/app-bar.styles.d.ts +1 -0
- package/dist/src/theme/components/app-bar.styles.js +48 -0
- package/dist/src/theme/components/card.styles.js +9 -3
- package/dist/src/theme/components/code-block.styles.js +7 -0
- package/dist/src/theme/components/dialog.styles.js +7 -0
- package/dist/src/theme/components/field.styles.js +4 -0
- package/dist/src/theme/components/list-group.styles.js +10 -11
- package/dist/src/theme/components/meta-row.styles.d.ts +1 -0
- package/dist/src/theme/components/meta-row.styles.js +66 -0
- package/dist/src/theme/components/output-block.styles.js +17 -0
- package/dist/src/theme/components/page-frame.styles.js +7 -1
- package/dist/src/theme/components/page-header.styles.js +7 -0
- package/dist/src/theme/components/resource-card.styles.js +15 -3
- package/dist/src/theme/components/status.styles.d.ts +1 -0
- package/dist/src/theme/components/status.styles.js +25 -0
- package/dist/src/theme/components/tag.styles.js +3 -3
- package/dist/src/theme/components/toolbar.styles.js +7 -0
- package/dist/src/theme/index.d.ts +148 -0
- package/dist/src/theme/index.js +173 -159
- package/dist/src/theme/palette.d.ts +1 -1
- package/dist/src/theme/palette.js +1 -1
- package/dist/src/theme/shared/code-highlight.styles.js +1 -1
- package/dist/src/theme/shared/code-highlight.tokens.d.ts +6 -6
- package/dist/src/theme/shared/code-highlight.tokens.js +6 -6
- package/dist/src/theme/tokens.d.ts +7 -7
- package/dist/src/theme/tokens.js +14 -8
- package/package.json +17 -6
package/dist/src/icons/icon.js
CHANGED
|
@@ -1,135 +1,62 @@
|
|
|
1
|
-
// Fragment is required by the classic JSX transform for the
|
|
1
|
+
// Fragment is required by the classic JSX transform for the local settings group.
|
|
2
2
|
// eslint-disable-next-line no-unused-vars
|
|
3
3
|
import { h, Fragment } from "meowjsx";
|
|
4
|
-
|
|
4
|
+
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, Brain, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Copy, ExternalLink, Eye, File, FileText, Folder, FolderOpen, Gauge, History, List, ListChecks, LoaderCircle, Map, Mic, Menu, MessageSquare, Minus, Network, NotebookTabs, PanelLeft, Paperclip, Plus, RefreshCw, Search, ShieldCheck, Square, Terminal, Timer, UserRound, Wrench, X, Database, } from "lucide";
|
|
5
|
+
import { IconFrame } from "./icon-frame.js";
|
|
6
|
+
function renderNodes(nodes) {
|
|
7
|
+
return nodes.map(([tag, attrs]) => h(tag, attrs));
|
|
8
|
+
}
|
|
9
|
+
// Local optical tuning: the upstream gear reads larger and rounder at the
|
|
10
|
+
// standard theme's 16px icon size, so the semantic set keeps this adjustment.
|
|
11
|
+
const settings = () => (h(Fragment, null,
|
|
12
|
+
h("path", { d: "M9.5 3h5l.6 2.5 2.2 1.3 2.5-.7 2.5 4.3-1.9 1.8v2.6l1.9 1.8-2.5 4.3-2.5-.7-2.2 1.3-.6 2.5h-5l-.6-2.5-2.2-1.3-2.5.7-2.5-4.3 1.9-1.8v-2.6l-1.9-1.8 2.5-4.3 2.5.7 2.2-1.3z", transform: "translate(0 -1.5) scale(1 .95)" }),
|
|
13
|
+
h("circle", { cx: "12", cy: "12", r: "3" })));
|
|
5
14
|
const shapes = {
|
|
6
|
-
terminal: () =>
|
|
7
|
-
menu: () =>
|
|
8
|
-
settings
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"arrow-left": () => (h(Fragment, null,
|
|
50
|
-
h("path", { d: "m12 19-7-7 7-7" }),
|
|
51
|
-
h("path", { d: "M19 12H5" }))),
|
|
52
|
-
"arrow-right": () => (h(Fragment, null,
|
|
53
|
-
h("path", { d: "M5 12h14" }),
|
|
54
|
-
h("path", { d: "m12 5 7 7-7 7" }))),
|
|
55
|
-
"arrow-up-right": () => (h(Fragment, null,
|
|
56
|
-
h("path", { d: "M7 7h10v10" }),
|
|
57
|
-
h("path", { d: "M7 17 17 7" }))),
|
|
58
|
-
"file-text": () => (h(Fragment, null,
|
|
59
|
-
h("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
60
|
-
h("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
61
|
-
h("path", { d: "M10 9H8" }),
|
|
62
|
-
h("path", { d: "M16 13H8" }),
|
|
63
|
-
h("path", { d: "M16 17H8" }))),
|
|
64
|
-
file: () => (h(Fragment, null,
|
|
65
|
-
h("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
66
|
-
h("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }))),
|
|
67
|
-
folder: () => (h(Fragment, null,
|
|
68
|
-
h("path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }))),
|
|
69
|
-
"folder-open": () => (h(Fragment, null,
|
|
70
|
-
h("path", { d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }))),
|
|
71
|
-
copy: () => (h(Fragment, null,
|
|
72
|
-
h("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
73
|
-
h("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }))),
|
|
74
|
-
x: () => (h(Fragment, null,
|
|
75
|
-
h("path", { d: "M18 6 6 18" }),
|
|
76
|
-
h("path", { d: "m6 6 12 12" }))),
|
|
77
|
-
"chevron-down": () => (h(Fragment, null,
|
|
78
|
-
h("path", { d: "m6 9 6 6 6-6" }))),
|
|
79
|
-
"chevron-left": () => (h(Fragment, null,
|
|
80
|
-
h("path", { d: "m15 18-6-6 6-6" }))),
|
|
81
|
-
"chevron-right": () => (h(Fragment, null,
|
|
82
|
-
h("path", { d: "m9 18 6-6-6-6" }))),
|
|
83
|
-
"chevron-up": () => (h(Fragment, null,
|
|
84
|
-
h("path", { d: "m18 15-6-6-6 6" }))),
|
|
85
|
-
search: () => (h(Fragment, null,
|
|
86
|
-
h("path", { d: "m21 21-4.34-4.34" }),
|
|
87
|
-
h("circle", { cx: "11", cy: "11", r: "8" }))),
|
|
88
|
-
plus: () => (h(Fragment, null,
|
|
89
|
-
h("path", { d: "M5 12h14" }),
|
|
90
|
-
h("path", { d: "M12 5v14" }))),
|
|
91
|
-
minus: () => (h(Fragment, null,
|
|
92
|
-
h("path", { d: "M5 12h14" }))),
|
|
93
|
-
"panel-left": () => (h(Fragment, null,
|
|
94
|
-
h("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
95
|
-
h("path", { d: "M9 3v18" }))),
|
|
96
|
-
list: () => (h(Fragment, null,
|
|
97
|
-
h("path", { d: "M3 5h.01" }),
|
|
98
|
-
h("path", { d: "M3 12h.01" }),
|
|
99
|
-
h("path", { d: "M3 19h.01" }),
|
|
100
|
-
h("path", { d: "M8 5h13" }),
|
|
101
|
-
h("path", { d: "M8 12h13" }),
|
|
102
|
-
h("path", { d: "M8 19h13" }))),
|
|
103
|
-
network: () => (h(Fragment, null,
|
|
104
|
-
h("rect", { x: "16", y: "16", width: "6", height: "6", rx: "1" }),
|
|
105
|
-
h("rect", { x: "2", y: "16", width: "6", height: "6", rx: "1" }),
|
|
106
|
-
h("rect", { x: "9", y: "2", width: "6", height: "6", rx: "1" }),
|
|
107
|
-
h("path", { d: "M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3" }),
|
|
108
|
-
h("path", { d: "M12 12V8" }))),
|
|
109
|
-
"external-link": () => (h(Fragment, null,
|
|
110
|
-
h("path", { d: "M15 3h6v6" }),
|
|
111
|
-
h("path", { d: "M10 14 21 3" }),
|
|
112
|
-
h("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }))),
|
|
113
|
-
brain: () => (h(Fragment, null,
|
|
114
|
-
h("path", { d: "M12 18V5" }),
|
|
115
|
-
h("path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4" }),
|
|
116
|
-
h("path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" }),
|
|
117
|
-
h("path", { d: "M17.997 5.125a4 4 0 0 1 2.526 5.77" }),
|
|
118
|
-
h("path", { d: "M18 18a4 4 0 0 0 2-7.464" }),
|
|
119
|
-
h("path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" }),
|
|
120
|
-
h("path", { d: "M6 18a4 4 0 0 1-2-7.464" }),
|
|
121
|
-
h("path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77" }))),
|
|
122
|
-
eye: () => (h(Fragment, null,
|
|
123
|
-
h("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
|
|
124
|
-
h("circle", { cx: "12", cy: "12", r: "3" }))),
|
|
125
|
-
wrench: () => (h(Fragment, null,
|
|
126
|
-
h("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }))),
|
|
127
|
-
"loader-circle": () => (h(Fragment, null,
|
|
128
|
-
h("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }))),
|
|
129
|
-
square: () => (h(Fragment, null,
|
|
130
|
-
h("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }))),
|
|
15
|
+
terminal: () => renderNodes(Terminal),
|
|
16
|
+
menu: () => renderNodes(Menu),
|
|
17
|
+
settings,
|
|
18
|
+
"arrow-up": () => renderNodes(ArrowUp),
|
|
19
|
+
"list-checks": () => renderNodes(ListChecks),
|
|
20
|
+
"message-square": () => renderNodes(MessageSquare),
|
|
21
|
+
map: () => renderNodes(Map),
|
|
22
|
+
"user-round": () => renderNodes(UserRound),
|
|
23
|
+
"notebook-tabs": () => renderNodes(NotebookTabs),
|
|
24
|
+
"refresh-cw": () => renderNodes(RefreshCw),
|
|
25
|
+
paperclip: () => renderNodes(Paperclip),
|
|
26
|
+
"arrow-down": () => renderNodes(ArrowDown),
|
|
27
|
+
"arrow-left": () => renderNodes(ArrowLeft),
|
|
28
|
+
"arrow-right": () => renderNodes(ArrowRight),
|
|
29
|
+
"arrow-up-right": () => renderNodes(ArrowUpRight),
|
|
30
|
+
"file-text": () => renderNodes(FileText),
|
|
31
|
+
file: () => renderNodes(File),
|
|
32
|
+
folder: () => renderNodes(Folder),
|
|
33
|
+
"folder-open": () => renderNodes(FolderOpen),
|
|
34
|
+
copy: () => renderNodes(Copy),
|
|
35
|
+
x: () => renderNodes(X),
|
|
36
|
+
"chevron-down": () => renderNodes(ChevronDown),
|
|
37
|
+
"chevron-left": () => renderNodes(ChevronLeft),
|
|
38
|
+
"chevron-right": () => renderNodes(ChevronRight),
|
|
39
|
+
"chevron-up": () => renderNodes(ChevronUp),
|
|
40
|
+
search: () => renderNodes(Search),
|
|
41
|
+
plus: () => renderNodes(Plus),
|
|
42
|
+
minus: () => renderNodes(Minus),
|
|
43
|
+
"panel-left": () => renderNodes(PanelLeft),
|
|
44
|
+
list: () => renderNodes(List),
|
|
45
|
+
network: () => renderNodes(Network),
|
|
46
|
+
"external-link": () => renderNodes(ExternalLink),
|
|
47
|
+
brain: () => renderNodes(Brain),
|
|
48
|
+
eye: () => renderNodes(Eye),
|
|
49
|
+
wrench: () => renderNodes(Wrench),
|
|
50
|
+
"loader-circle": () => renderNodes(LoaderCircle),
|
|
51
|
+
square: () => renderNodes(Square),
|
|
52
|
+
mic: () => renderNodes(Mic),
|
|
53
|
+
"shield-check": () => renderNodes(ShieldCheck),
|
|
54
|
+
gauge: () => renderNodes(Gauge),
|
|
55
|
+
timer: () => renderNodes(Timer),
|
|
56
|
+
database: () => renderNodes(Database),
|
|
57
|
+
history: () => renderNodes(History),
|
|
131
58
|
};
|
|
132
59
|
export const iconNames = Object.keys(shapes);
|
|
133
60
|
export function Icon({ name, size = 18, className, label }) {
|
|
134
|
-
return (h(
|
|
61
|
+
return (h(IconFrame, { size: size, className: className, label: label, dataIcon: name }, shapes[name]()));
|
|
135
62
|
}
|
|
@@ -8,3 +8,4 @@ export { SearchIcon } from "./search.js";
|
|
|
8
8
|
export { TasksIcon } from "./tasks.js";
|
|
9
9
|
export { FileTypeIcon, classifyFileType, fileExtension, type FileTypeKind, type FileTypeIconProps, } from "./file-type-icon.js";
|
|
10
10
|
export { Icon, iconNames, type IconName, type IconProps } from "./icon.js";
|
|
11
|
+
export { IconSource, type IconNode, type IconSourceProps } from "./icon-source.js";
|
package/dist/src/icons/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "lucide";
|
|
@@ -53,7 +53,47 @@ export declare const assistantJsonSchemas: Readonly<{
|
|
|
53
53
|
readonly sizeBytes?: number | undefined;
|
|
54
54
|
})[];
|
|
55
55
|
readonly kind: "attachments";
|
|
56
|
-
} & {})
|
|
56
|
+
} & {}) | ({
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly kind: "tool";
|
|
59
|
+
readonly label: string;
|
|
60
|
+
} & {
|
|
61
|
+
readonly canCancel?: boolean | undefined;
|
|
62
|
+
readonly canRetry?: boolean | undefined;
|
|
63
|
+
readonly cancelDisabled?: boolean | undefined;
|
|
64
|
+
readonly defaultOpen?: boolean | undefined;
|
|
65
|
+
readonly input?: string | undefined;
|
|
66
|
+
readonly maxLines?: number | undefined;
|
|
67
|
+
readonly output?: string | undefined;
|
|
68
|
+
readonly outputSummary?: string | undefined;
|
|
69
|
+
readonly retryDisabled?: boolean | undefined;
|
|
70
|
+
readonly state?: "cancelled" | "complete" | "error" | "queued" | "running" | "success" | "unknown" | "waiting" | undefined;
|
|
71
|
+
readonly statusLabel?: string | undefined;
|
|
72
|
+
readonly summary?: string | undefined;
|
|
73
|
+
}) | ({
|
|
74
|
+
readonly id: string;
|
|
75
|
+
readonly kind: "task";
|
|
76
|
+
readonly state: "cancelled" | "complete" | "error" | "queued" | "running" | "success" | "unknown" | "waiting";
|
|
77
|
+
readonly title: string;
|
|
78
|
+
} & {
|
|
79
|
+
readonly description?: string | undefined;
|
|
80
|
+
readonly executionText?: string | undefined;
|
|
81
|
+
readonly progress?: ({
|
|
82
|
+
readonly label: string;
|
|
83
|
+
readonly max: number;
|
|
84
|
+
readonly value: number;
|
|
85
|
+
} & {}) | undefined;
|
|
86
|
+
readonly replyText?: string | undefined;
|
|
87
|
+
readonly statusLabel?: string | undefined;
|
|
88
|
+
readonly steps?: readonly ({
|
|
89
|
+
readonly id: string;
|
|
90
|
+
readonly title: string;
|
|
91
|
+
} & {
|
|
92
|
+
readonly description?: string | undefined;
|
|
93
|
+
readonly statusText?: string | undefined;
|
|
94
|
+
readonly tone?: "danger" | "idle" | "processing" | "returned" | "success" | "unknown" | "warning" | undefined;
|
|
95
|
+
})[] | undefined;
|
|
96
|
+
})>;
|
|
57
97
|
message: JsonSchema<{
|
|
58
98
|
readonly author: string;
|
|
59
99
|
readonly id: string;
|
|
@@ -93,7 +133,47 @@ export declare const assistantJsonSchemas: Readonly<{
|
|
|
93
133
|
readonly sizeBytes?: number | undefined;
|
|
94
134
|
})[];
|
|
95
135
|
readonly kind: "attachments";
|
|
96
|
-
} & {})
|
|
136
|
+
} & {}) | ({
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly kind: "tool";
|
|
139
|
+
readonly label: string;
|
|
140
|
+
} & {
|
|
141
|
+
readonly canCancel?: boolean | undefined;
|
|
142
|
+
readonly canRetry?: boolean | undefined;
|
|
143
|
+
readonly cancelDisabled?: boolean | undefined;
|
|
144
|
+
readonly defaultOpen?: boolean | undefined;
|
|
145
|
+
readonly input?: string | undefined;
|
|
146
|
+
readonly maxLines?: number | undefined;
|
|
147
|
+
readonly output?: string | undefined;
|
|
148
|
+
readonly outputSummary?: string | undefined;
|
|
149
|
+
readonly retryDisabled?: boolean | undefined;
|
|
150
|
+
readonly state?: "cancelled" | "complete" | "error" | "queued" | "running" | "success" | "unknown" | "waiting" | undefined;
|
|
151
|
+
readonly statusLabel?: string | undefined;
|
|
152
|
+
readonly summary?: string | undefined;
|
|
153
|
+
}) | ({
|
|
154
|
+
readonly id: string;
|
|
155
|
+
readonly kind: "task";
|
|
156
|
+
readonly state: "cancelled" | "complete" | "error" | "queued" | "running" | "success" | "unknown" | "waiting";
|
|
157
|
+
readonly title: string;
|
|
158
|
+
} & {
|
|
159
|
+
readonly description?: string | undefined;
|
|
160
|
+
readonly executionText?: string | undefined;
|
|
161
|
+
readonly progress?: ({
|
|
162
|
+
readonly label: string;
|
|
163
|
+
readonly max: number;
|
|
164
|
+
readonly value: number;
|
|
165
|
+
} & {}) | undefined;
|
|
166
|
+
readonly replyText?: string | undefined;
|
|
167
|
+
readonly statusLabel?: string | undefined;
|
|
168
|
+
readonly steps?: readonly ({
|
|
169
|
+
readonly id: string;
|
|
170
|
+
readonly title: string;
|
|
171
|
+
} & {
|
|
172
|
+
readonly description?: string | undefined;
|
|
173
|
+
readonly statusText?: string | undefined;
|
|
174
|
+
readonly tone?: "danger" | "idle" | "processing" | "returned" | "success" | "unknown" | "warning" | undefined;
|
|
175
|
+
})[] | undefined;
|
|
176
|
+
}))[];
|
|
97
177
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
98
178
|
} & {
|
|
99
179
|
readonly status?: "complete" | "error" | "pending" | "streaming" | undefined;
|
|
@@ -164,6 +244,12 @@ export declare const assistantJsonSchemas: Readonly<{
|
|
|
164
244
|
} & {
|
|
165
245
|
readonly disabled?: boolean | undefined;
|
|
166
246
|
}>;
|
|
247
|
+
executionState: JsonSchema<"cancelled" | "complete" | "error" | "queued" | "running" | "success" | "unknown" | "waiting">;
|
|
248
|
+
taskProgress: JsonSchema<{
|
|
249
|
+
readonly label: string;
|
|
250
|
+
readonly max: number;
|
|
251
|
+
readonly value: number;
|
|
252
|
+
} & {}>;
|
|
167
253
|
}>;
|
|
168
254
|
/** A finite catalog of the original public components, not an alternate UI implementation. */
|
|
169
255
|
export declare function createMeowUICatalog(): ReadonlyMap<string, JsonComponentDefinition>;
|
package/dist/src/json/catalog.js
CHANGED
|
@@ -20,6 +20,8 @@ const step = s.object({
|
|
|
20
20
|
tone: optional(tone),
|
|
21
21
|
});
|
|
22
22
|
const steps = s.array(step);
|
|
23
|
+
const executionState = s.enum("queued", "running", "waiting", "success", "error", "cancelled", "unknown", "complete");
|
|
24
|
+
const taskProgress = s.object({ value: s.number(), max: s.number(), label: s.string() });
|
|
23
25
|
const part = s.union(s.object({ id: s.string(), kind: s.enum("text"), text: s.string() }), s.object({
|
|
24
26
|
id: s.string(),
|
|
25
27
|
kind: s.enum("code"),
|
|
@@ -32,7 +34,34 @@ const part = s.union(s.object({ id: s.string(), kind: s.enum("text"), text: s.st
|
|
|
32
34
|
statusText: optional(s.string()),
|
|
33
35
|
steps,
|
|
34
36
|
defaultOpen: optional(s.boolean()),
|
|
35
|
-
}), s.object({ id: s.string(), kind: s.enum("attachments"), items: s.array(attachment) })
|
|
37
|
+
}), s.object({ id: s.string(), kind: s.enum("attachments"), items: s.array(attachment) }), s.object({
|
|
38
|
+
id: s.string(),
|
|
39
|
+
kind: s.enum("tool"),
|
|
40
|
+
label: s.string(),
|
|
41
|
+
summary: optional(s.string()),
|
|
42
|
+
state: optional(executionState),
|
|
43
|
+
statusLabel: optional(s.string()),
|
|
44
|
+
input: optional(s.string()),
|
|
45
|
+
output: optional(s.string()),
|
|
46
|
+
outputSummary: optional(s.string()),
|
|
47
|
+
maxLines: optional(s.number()),
|
|
48
|
+
defaultOpen: optional(s.boolean()),
|
|
49
|
+
canRetry: optional(s.boolean()),
|
|
50
|
+
canCancel: optional(s.boolean()),
|
|
51
|
+
retryDisabled: optional(s.boolean()),
|
|
52
|
+
cancelDisabled: optional(s.boolean()),
|
|
53
|
+
}), s.object({
|
|
54
|
+
id: s.string(),
|
|
55
|
+
kind: s.enum("task"),
|
|
56
|
+
title: s.string(),
|
|
57
|
+
state: executionState,
|
|
58
|
+
statusLabel: optional(s.string()),
|
|
59
|
+
description: optional(s.string()),
|
|
60
|
+
executionText: optional(s.string()),
|
|
61
|
+
replyText: optional(s.string()),
|
|
62
|
+
progress: optional(taskProgress),
|
|
63
|
+
steps: optional(steps),
|
|
64
|
+
}));
|
|
36
65
|
const message = s.object({
|
|
37
66
|
id: s.string(),
|
|
38
67
|
role: s.enum("user", "assistant", "system", "tool"),
|
|
@@ -85,6 +114,8 @@ export const assistantJsonSchemas = Object.freeze({
|
|
|
85
114
|
work,
|
|
86
115
|
question,
|
|
87
116
|
choice,
|
|
117
|
+
executionState,
|
|
118
|
+
taskProgress,
|
|
88
119
|
});
|
|
89
120
|
const value = (schema) => ({ kind: "value", schema });
|
|
90
121
|
const binding = (schema) => ({
|
|
@@ -121,6 +152,7 @@ const assistant = defineJsonComponent(AssistantView, {
|
|
|
121
152
|
onReasoningChange: action(s.string()),
|
|
122
153
|
onAnswer: action(s.string(), s.string()),
|
|
123
154
|
onDismissQuestion: action(s.string()),
|
|
155
|
+
onToolAction: action(s.string(), s.string(), s.enum("retry", "cancel")),
|
|
124
156
|
onRefreshWork: action(s.string()),
|
|
125
157
|
onLoadOlder: action(),
|
|
126
158
|
loadingOlder: binding(s.boolean()),
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
import { chatTaskContract } from "../chat/task.js";
|
|
1
2
|
import { type Runtime, type RuntimePlugin } from "meowjsx";
|
|
2
3
|
import { pageFrameContract } from "../components/page-frame.js";
|
|
4
|
+
import { appBarContract } from "../components/app-bar.js";
|
|
3
5
|
import { regionLayoutContract } from "../components/region-layout.js";
|
|
4
6
|
import { imagePreviewContract } from "../components/image-preview.js";
|
|
5
7
|
import { segmentedControlContract, textShimmerContract, riskConfirmationContract, webBlockContract, jsonTreeContract, jsonBlockContract, imageLightboxContract, shortcutKeysContract, pathLabelContract, stateDotContract, hoverCardContract } from "../components/index.js";
|
|
6
8
|
import { menuContract, toastContract } from "../components/index.js";
|
|
7
9
|
import { outputBlockContract } from "../components/output-block.js";
|
|
8
10
|
import { terminalBlockContract, readBlockContract, diffBlockContract, searchBlockContract } from "../components/index.js";
|
|
9
|
-
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonBoundaryContract, spinnerContract, descriptionListContract, descriptionItemContract, tooltipContract, buttonContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, checkboxContract, switchContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, statusDotContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract } from "../components/index.js";
|
|
10
|
-
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, chatHeaderContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract } from "../chat/index.js";
|
|
11
|
+
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonBoundaryContract, spinnerContract, descriptionListContract, descriptionItemContract, tooltipContract, buttonContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, actionRailContract, metaRowContract, checkboxContract, switchContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, statusDotContract, statusContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract } from "../components/index.js";
|
|
12
|
+
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, composerPanelContract, chatHeaderContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract } from "../chat/index.js";
|
|
11
13
|
import { assistantStepsContract } from "../chat/assistant-content.js";
|
|
12
14
|
import { assistantMarkdownContract } from "../chat/assistant-markdown.js";
|
|
13
15
|
import { assistantComposerContract } from "../chat/assistant-composer.js";
|
|
14
16
|
import { assistantQuestionContract } from "../chat/assistant-question.js";
|
|
15
17
|
export declare const MeowUIComponent: {
|
|
16
18
|
readonly PageFrame: "page-frame";
|
|
19
|
+
readonly AppBar: "app-bar";
|
|
17
20
|
readonly RegionLayout: "region-layout";
|
|
18
21
|
readonly Pill: "pill";
|
|
19
22
|
readonly ImagePreview: "image-preview";
|
|
@@ -61,6 +64,8 @@ export declare const MeowUIComponent: {
|
|
|
61
64
|
readonly Button: "button";
|
|
62
65
|
readonly IconButton: "icon-button";
|
|
63
66
|
readonly Toolbar: "toolbar";
|
|
67
|
+
readonly ActionRail: "action-rail";
|
|
68
|
+
readonly MetaRow: "meta-row";
|
|
64
69
|
readonly EmptyState: "empty-state";
|
|
65
70
|
readonly Card: "card";
|
|
66
71
|
readonly Badge: "badge";
|
|
@@ -94,8 +99,11 @@ export declare const MeowUIComponent: {
|
|
|
94
99
|
readonly ChatMessage: "chat-message";
|
|
95
100
|
readonly ChatMessageActions: "chat-message-actions";
|
|
96
101
|
readonly ChatComposer: "chat-composer";
|
|
102
|
+
readonly ComposerPanel: "composer-panel";
|
|
97
103
|
readonly ChatToolCall: "chat-tool-call";
|
|
104
|
+
readonly ChatTask: "chat-task";
|
|
98
105
|
readonly StatusDot: "status-dot";
|
|
106
|
+
readonly Status: "status";
|
|
99
107
|
readonly Tag: "tag";
|
|
100
108
|
readonly ProcessGroup: "process-group";
|
|
101
109
|
readonly ProcessStep: "process-step";
|
|
@@ -118,11 +126,14 @@ export declare const MeowUIComponent: {
|
|
|
118
126
|
};
|
|
119
127
|
export declare const meowUIComponents: readonly [{
|
|
120
128
|
readonly name: "page-frame";
|
|
121
|
-
readonly parts: readonly ["root", "toolbar", "header", "body"];
|
|
129
|
+
readonly parts: readonly ["root", "toolbar", "header", "notice", "body", "footer"];
|
|
122
130
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
123
131
|
readonly variant: readonly ["page", "workspace"];
|
|
124
132
|
readonly scrollOwner: readonly ["content", "layout"];
|
|
125
133
|
}>>;
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "app-bar";
|
|
136
|
+
readonly parts: readonly ["root", "identity", "title", "status", "actions"];
|
|
126
137
|
}, {
|
|
127
138
|
readonly name: "region-layout";
|
|
128
139
|
readonly parts: readonly ["root", "back", "grid", "region", "content"];
|
|
@@ -228,6 +239,7 @@ export declare const meowUIComponents: readonly [{
|
|
|
228
239
|
readonly parts: readonly ["root", "title", "body", "actions"];
|
|
229
240
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
230
241
|
readonly tone: readonly ["info", "success", "warning", "danger"];
|
|
242
|
+
readonly layout: readonly ["block", "bar"];
|
|
231
243
|
}>>;
|
|
232
244
|
}, {
|
|
233
245
|
readonly name: "skeleton";
|
|
@@ -324,6 +336,16 @@ export declare const meowUIComponents: readonly [{
|
|
|
324
336
|
}, {
|
|
325
337
|
readonly name: "toolbar";
|
|
326
338
|
readonly parts: readonly ["root"];
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "action-rail";
|
|
341
|
+
readonly parts: readonly ["root", "leading", "trailing", "submit"];
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "meta-row";
|
|
344
|
+
readonly parts: readonly ["root", "item", "icon", "label", "separator", "progress"];
|
|
345
|
+
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
346
|
+
readonly align: readonly ["start", "center"];
|
|
347
|
+
readonly progressTone: readonly ["neutral", "accent"];
|
|
348
|
+
}>>;
|
|
327
349
|
}, {
|
|
328
350
|
readonly name: "empty-state";
|
|
329
351
|
readonly parts: readonly ["root", "illustration", "title", "description", "action"];
|
|
@@ -438,16 +460,26 @@ export declare const meowUIComponents: readonly [{
|
|
|
438
460
|
readonly parts: readonly ["root", "attachments", "field", "input", "hint", "actions", "trailing", "submit"];
|
|
439
461
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
440
462
|
readonly layout: readonly ["stacked", "inline", "hero"];
|
|
463
|
+
readonly surface: readonly ["default", "none"];
|
|
441
464
|
}>>;
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "composer-panel";
|
|
467
|
+
readonly parts: readonly ["root", "surface", "meta"];
|
|
442
468
|
}, {
|
|
443
469
|
readonly name: "chat-tool-call";
|
|
444
|
-
readonly parts: readonly ["root", "header", "icon", "label", "summary", "status", "chevron", "detail", "body"];
|
|
470
|
+
readonly parts: readonly ["root", "header", "icon", "label", "summary", "status", "chevron", "detail", "body", "input", "output", "outputSummary", "actions"];
|
|
471
|
+
}, {
|
|
472
|
+
readonly name: "chat-task";
|
|
473
|
+
readonly parts: readonly ["root", "header", "title", "status", "description", "execution", "reply", "progress", "progressLabel", "progressBar", "body", "footer"];
|
|
445
474
|
}, {
|
|
446
475
|
readonly name: "status-dot";
|
|
447
476
|
readonly parts: readonly ["root"];
|
|
448
477
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
449
478
|
readonly state: readonly ["processing", "success", "returned", "warning", "danger", "unknown", "idle"];
|
|
450
479
|
}>>;
|
|
480
|
+
}, {
|
|
481
|
+
readonly name: "status";
|
|
482
|
+
readonly parts: readonly ["root", "label"];
|
|
451
483
|
}, {
|
|
452
484
|
readonly name: "tag";
|
|
453
485
|
readonly parts: readonly ["root"];
|
|
@@ -509,6 +541,9 @@ declare module "meowjsx" {
|
|
|
509
541
|
"page-frame": {
|
|
510
542
|
parts: (typeof pageFrameContract.parts)[number];
|
|
511
543
|
};
|
|
544
|
+
"app-bar": {
|
|
545
|
+
parts: (typeof appBarContract.parts)[number];
|
|
546
|
+
};
|
|
512
547
|
"region-layout": {
|
|
513
548
|
parts: (typeof regionLayoutContract.parts)[number];
|
|
514
549
|
};
|
|
@@ -653,6 +688,12 @@ declare module "meowjsx" {
|
|
|
653
688
|
toolbar: {
|
|
654
689
|
parts: (typeof toolbarContract.parts)[number];
|
|
655
690
|
};
|
|
691
|
+
"action-rail": {
|
|
692
|
+
parts: (typeof actionRailContract.parts)[number];
|
|
693
|
+
};
|
|
694
|
+
"meta-row": {
|
|
695
|
+
parts: (typeof metaRowContract.parts)[number];
|
|
696
|
+
};
|
|
656
697
|
"empty-state": {
|
|
657
698
|
parts: (typeof emptyStateContract.parts)[number];
|
|
658
699
|
};
|
|
@@ -764,12 +805,21 @@ declare module "meowjsx" {
|
|
|
764
805
|
"chat-composer": {
|
|
765
806
|
parts: (typeof chatComposerContract.parts)[number];
|
|
766
807
|
};
|
|
808
|
+
"composer-panel": {
|
|
809
|
+
parts: (typeof composerPanelContract.parts)[number];
|
|
810
|
+
};
|
|
767
811
|
"chat-tool-call": {
|
|
768
812
|
parts: (typeof chatToolCallContract.parts)[number];
|
|
769
813
|
};
|
|
814
|
+
"chat-task": {
|
|
815
|
+
parts: (typeof chatTaskContract.parts)[number];
|
|
816
|
+
};
|
|
770
817
|
"status-dot": {
|
|
771
818
|
parts: (typeof statusDotContract.parts)[number];
|
|
772
819
|
};
|
|
820
|
+
status: {
|
|
821
|
+
parts: (typeof statusContract.parts)[number];
|
|
822
|
+
};
|
|
773
823
|
tag: {
|
|
774
824
|
parts: (typeof tagContract.parts)[number];
|
|
775
825
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { chatTaskContract } from "../chat/task.js";
|
|
1
2
|
import { defaultRuntime } from "meowjsx";
|
|
2
3
|
import { pillContract } from "../components/pill.js";
|
|
3
4
|
import { pageFrameContract } from "../components/page-frame.js";
|
|
5
|
+
import { appBarContract } from "../components/app-bar.js";
|
|
4
6
|
import { regionLayoutContract } from "../components/region-layout.js";
|
|
5
7
|
import { imagePreviewContract } from "../components/image-preview.js";
|
|
6
8
|
import { createStylePropsPlugin } from "meowcss/meowjsx";
|
|
@@ -8,14 +10,15 @@ import { segmentedControlContract, textShimmerContract, riskConfirmationContract
|
|
|
8
10
|
import { menuContract, toastContract } from "../components/index.js";
|
|
9
11
|
import { outputBlockContract } from "../components/output-block.js";
|
|
10
12
|
import { terminalBlockContract, readBlockContract, diffBlockContract, searchBlockContract, } from "../components/index.js";
|
|
11
|
-
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonContract, skeletonBoundaryContract, spinnerContract, stackContract, layoutItemContract, descriptionListContract, descriptionItemContract, inlineContract, gridContract, containerContract, cardHeaderContract, cardTitleContract, cardDescriptionContract, cardContentContract, cardFooterContract, cardActionContract, aspectRatioContract, tooltipContract, badgeContract, buttonContract, cardContract, dialogActionsContract, dialogContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, inputContract, checkboxContract, switchContract, selectContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, separatorContract, textareaContract, statusDotContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract, } from "../components/index.js";
|
|
12
|
-
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, chatFrameContract, chatHeaderContract, chatMessageActionsContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract, } from "../chat/index.js";
|
|
13
|
+
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonContract, skeletonBoundaryContract, spinnerContract, stackContract, layoutItemContract, descriptionListContract, descriptionItemContract, inlineContract, gridContract, containerContract, cardHeaderContract, cardTitleContract, cardDescriptionContract, cardContentContract, cardFooterContract, cardActionContract, aspectRatioContract, tooltipContract, badgeContract, buttonContract, cardContract, dialogActionsContract, dialogContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, actionRailContract, metaRowContract, inputContract, checkboxContract, switchContract, selectContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, separatorContract, textareaContract, statusDotContract, statusContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract, } from "../components/index.js";
|
|
14
|
+
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, composerPanelContract, chatFrameContract, chatHeaderContract, chatMessageActionsContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract, } from "../chat/index.js";
|
|
13
15
|
import { assistantStepsContract } from "../chat/assistant-content.js";
|
|
14
16
|
import { assistantMarkdownContract } from "../chat/assistant-markdown.js";
|
|
15
17
|
import { assistantComposerContract } from "../chat/assistant-composer.js";
|
|
16
18
|
import { assistantQuestionContract } from "../chat/assistant-question.js";
|
|
17
19
|
export const MeowUIComponent = {
|
|
18
20
|
PageFrame: pageFrameContract.name,
|
|
21
|
+
AppBar: appBarContract.name,
|
|
19
22
|
RegionLayout: regionLayoutContract.name,
|
|
20
23
|
Pill: pillContract.name,
|
|
21
24
|
ImagePreview: imagePreviewContract.name,
|
|
@@ -63,6 +66,8 @@ export const MeowUIComponent = {
|
|
|
63
66
|
Button: buttonContract.name,
|
|
64
67
|
IconButton: iconButtonContract.name,
|
|
65
68
|
Toolbar: toolbarContract.name,
|
|
69
|
+
ActionRail: actionRailContract.name,
|
|
70
|
+
MetaRow: metaRowContract.name,
|
|
66
71
|
EmptyState: emptyStateContract.name,
|
|
67
72
|
Card: cardContract.name,
|
|
68
73
|
Badge: badgeContract.name,
|
|
@@ -96,8 +101,11 @@ export const MeowUIComponent = {
|
|
|
96
101
|
ChatMessage: chatMessageContract.name,
|
|
97
102
|
ChatMessageActions: chatMessageActionsContract.name,
|
|
98
103
|
ChatComposer: chatComposerContract.name,
|
|
104
|
+
ComposerPanel: composerPanelContract.name,
|
|
99
105
|
ChatToolCall: chatToolCallContract.name,
|
|
106
|
+
ChatTask: chatTaskContract.name,
|
|
100
107
|
StatusDot: statusDotContract.name,
|
|
108
|
+
Status: statusContract.name,
|
|
101
109
|
Tag: tagContract.name,
|
|
102
110
|
ProcessGroup: processGroupContract.name,
|
|
103
111
|
ProcessStep: processStepContract.name,
|
|
@@ -120,6 +128,7 @@ export const MeowUIComponent = {
|
|
|
120
128
|
};
|
|
121
129
|
export const meowUIComponents = [
|
|
122
130
|
pageFrameContract,
|
|
131
|
+
appBarContract,
|
|
123
132
|
regionLayoutContract,
|
|
124
133
|
pillContract,
|
|
125
134
|
imagePreviewContract,
|
|
@@ -174,6 +183,8 @@ export const meowUIComponents = [
|
|
|
174
183
|
buttonContract,
|
|
175
184
|
iconButtonContract,
|
|
176
185
|
toolbarContract,
|
|
186
|
+
actionRailContract,
|
|
187
|
+
metaRowContract,
|
|
177
188
|
emptyStateContract,
|
|
178
189
|
cardContract,
|
|
179
190
|
badgeContract,
|
|
@@ -207,8 +218,11 @@ export const meowUIComponents = [
|
|
|
207
218
|
chatMessageContract,
|
|
208
219
|
chatMessageActionsContract,
|
|
209
220
|
chatComposerContract,
|
|
221
|
+
composerPanelContract,
|
|
210
222
|
chatToolCallContract,
|
|
223
|
+
chatTaskContract,
|
|
211
224
|
statusDotContract,
|
|
225
|
+
statusContract,
|
|
212
226
|
tagContract,
|
|
213
227
|
processGroupContract,
|
|
214
228
|
processStepContract,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StatusDotState } from "../components/status-dot.js";
|
|
2
|
+
/** Display facts supplied by the host. Completion never implies that a public reply was sent. */
|
|
3
|
+
export type ChatExecutionState = "queued" | "running" | "waiting" | "success" | "error" | "cancelled" | "unknown"
|
|
4
|
+
/** Compatibility spelling for a successful tool execution. */
|
|
5
|
+
| "complete";
|
|
6
|
+
export declare function executionStateLabel(state: ChatExecutionState): string;
|
|
7
|
+
export declare function executionStateTone(state: ChatExecutionState): StatusDotState;
|