macbetter 0.1.0-beta.1 → 0.1.0-beta.2
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/dist/components/artifact-card.d.ts +41 -0
- package/dist/components/artifact-card.js +57 -0
- package/dist/components/attachment.d.ts +48 -0
- package/dist/components/attachment.js +65 -0
- package/dist/components/chat.d.ts +29 -0
- package/dist/components/chat.js +29 -0
- package/dist/components/code-block.d.ts +39 -0
- package/dist/components/code-block.js +65 -0
- package/dist/components/confirmation.d.ts +24 -0
- package/dist/components/confirmation.js +50 -0
- package/dist/components/content-unavailable.d.ts +19 -0
- package/dist/components/content-unavailable.js +21 -0
- package/dist/components/description-list.d.ts +18 -0
- package/dist/components/description-list.js +17 -0
- package/dist/components/generated-image.d.ts +39 -0
- package/dist/components/generated-image.js +47 -0
- package/dist/components/inspector.d.ts +29 -0
- package/dist/components/inspector.js +40 -0
- package/dist/components/message.d.ts +65 -0
- package/dist/components/message.js +69 -0
- package/dist/components/model-picker.d.ts +61 -0
- package/dist/components/model-picker.js +59 -0
- package/dist/components/plan.d.ts +25 -0
- package/dist/components/plan.js +43 -0
- package/dist/components/prompt-input.d.ts +93 -0
- package/dist/components/prompt-input.js +172 -0
- package/dist/components/reasoning.d.ts +28 -0
- package/dist/components/reasoning.js +52 -0
- package/dist/components/response.d.ts +14 -0
- package/dist/components/response.js +14 -0
- package/dist/components/shimmer.d.ts +18 -0
- package/dist/components/shimmer.js +17 -0
- package/dist/components/sources.d.ts +51 -0
- package/dist/components/sources.js +46 -0
- package/dist/components/suggestion.d.ts +23 -0
- package/dist/components/suggestion.js +29 -0
- package/dist/components/tool-call.d.ts +48 -0
- package/dist/components/tool-call.js +77 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +19 -0
- package/dist/lib/agent-glyphs.d.ts +10 -0
- package/dist/lib/agent-glyphs.js +19 -0
- package/dist/styles/components/artifact-card.css +238 -0
- package/dist/styles/components/attachment.css +540 -0
- package/dist/styles/components/chat.css +209 -0
- package/dist/styles/components/code-block.css +162 -0
- package/dist/styles/components/confirmation.css +189 -0
- package/dist/styles/components/content-unavailable.css +105 -0
- package/dist/styles/components/description-list.css +92 -0
- package/dist/styles/components/device-frame.css +8 -0
- package/dist/styles/components/generated-image.css +248 -0
- package/dist/styles/components/index.css +19 -0
- package/dist/styles/components/inspector.css +236 -0
- package/dist/styles/components/message.css +236 -0
- package/dist/styles/components/model-picker.css +64 -0
- package/dist/styles/components/navigation-bar.css +2 -1
- package/dist/styles/components/plan.css +212 -0
- package/dist/styles/components/prompt-input.css +503 -0
- package/dist/styles/components/reasoning.css +214 -0
- package/dist/styles/components/response.css +303 -0
- package/dist/styles/components/shimmer.css +60 -0
- package/dist/styles/components/sources.css +349 -0
- package/dist/styles/components/suggestion.css +203 -0
- package/dist/styles/components/tool-call.css +391 -0
- package/package.json +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/* Suggestion — prompt starters, as rows with hairlines between them or as a row of capsules. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-suggestion-row-height: 34px;
|
|
5
|
+
--mb-suggestion-row-padding: 10px;
|
|
6
|
+
--mb-suggestion-icon-size: 15px;
|
|
7
|
+
--mb-suggestion-icon-gap: 10px;
|
|
8
|
+
--mb-suggestion-font: var(--mb-text-body);
|
|
9
|
+
--mb-suggestion-chip-height: var(--mb-control-height);
|
|
10
|
+
--mb-suggestion-chip-padding: 12px;
|
|
11
|
+
--mb-suggestion-chip-font: 400 13px/16px var(--mb-font);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
15
|
+
--mb-suggestion-row-height: 48px;
|
|
16
|
+
--mb-suggestion-row-padding: 16px;
|
|
17
|
+
--mb-suggestion-icon-size: 20px;
|
|
18
|
+
--mb-suggestion-icon-gap: 14px;
|
|
19
|
+
--mb-suggestion-font: var(--mb-text-body);
|
|
20
|
+
--mb-suggestion-chip-height: 36px;
|
|
21
|
+
--mb-suggestion-chip-padding: 15px;
|
|
22
|
+
--mb-suggestion-chip-font: 400 15px/20px var(--mb-font);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mb-suggestions {
|
|
26
|
+
display: flex;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mb-suggestions[data-layout="list"] {
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mb-suggestions[data-layout="chips"] {
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mb-suggestions[data-layout="chips"][data-overflow="scroll"] {
|
|
40
|
+
flex-wrap: nowrap;
|
|
41
|
+
overflow-x: auto;
|
|
42
|
+
overscroll-behavior-x: contain;
|
|
43
|
+
scrollbar-width: none;
|
|
44
|
+
/* Room for the focus ring, which would otherwise be clipped by the scroller. */
|
|
45
|
+
margin: calc(var(--mb-focus-ring-width) * -1 - 1px);
|
|
46
|
+
padding: calc(var(--mb-focus-ring-width) + 1px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.mb-suggestions[data-overflow="scroll"]::-webkit-scrollbar {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.mb-suggestion {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex: none;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: var(--mb-suggestion-icon-gap);
|
|
59
|
+
margin: 0;
|
|
60
|
+
border: 0;
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: var(--mb-label);
|
|
63
|
+
text-align: start;
|
|
64
|
+
cursor: default;
|
|
65
|
+
user-select: none;
|
|
66
|
+
-webkit-user-select: none;
|
|
67
|
+
touch-action: manipulation;
|
|
68
|
+
transition:
|
|
69
|
+
background-color var(--mb-duration-fast) var(--mb-ease-out),
|
|
70
|
+
opacity var(--mb-duration-fast) var(--mb-ease-out),
|
|
71
|
+
scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.mb-suggestion-icon {
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
flex: none;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
width: var(--mb-suggestion-icon-size);
|
|
80
|
+
height: var(--mb-suggestion-icon-size);
|
|
81
|
+
color: var(--mb-label-secondary);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.mb-suggestion-icon :where(svg, img) {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.mb-suggestion-label {
|
|
90
|
+
min-width: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ── List ────────────────────────────────────────────────────── */
|
|
94
|
+
|
|
95
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion {
|
|
96
|
+
width: 100%;
|
|
97
|
+
min-height: var(--mb-suggestion-row-height);
|
|
98
|
+
padding: 6px var(--mb-suggestion-row-padding);
|
|
99
|
+
border-radius: var(--mb-row-radius);
|
|
100
|
+
font: var(--mb-suggestion-font);
|
|
101
|
+
letter-spacing: var(--mb-tracking-body);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mb-suggestions[data-layout="list"] .mb-suggestion-label {
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
text-overflow: ellipsis;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* An inset hairline between rows, starting where the text does. */
|
|
111
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion + .mb-suggestion::before {
|
|
112
|
+
content: "";
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset-block-start: 0;
|
|
115
|
+
inset-inline: var(--mb-suggestion-row-padding);
|
|
116
|
+
height: var(--mb-hairline);
|
|
117
|
+
background: var(--mb-separator);
|
|
118
|
+
transition: opacity var(--mb-duration-fast) var(--mb-ease-out);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* ── Chips ───────────────────────────────────────────────────── */
|
|
122
|
+
|
|
123
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion {
|
|
124
|
+
gap: 6px;
|
|
125
|
+
height: var(--mb-suggestion-chip-height);
|
|
126
|
+
padding-inline: var(--mb-suggestion-chip-padding);
|
|
127
|
+
border-radius: var(--mb-radius-full);
|
|
128
|
+
background: var(--mb-fill-quaternary);
|
|
129
|
+
box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-separator-strong);
|
|
130
|
+
font: var(--mb-suggestion-chip-font);
|
|
131
|
+
letter-spacing: var(--mb-tracking-body);
|
|
132
|
+
white-space: nowrap;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion .mb-suggestion-icon {
|
|
136
|
+
width: calc(var(--mb-suggestion-icon-size) - 1px);
|
|
137
|
+
height: calc(var(--mb-suggestion-icon-size) - 1px);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* A touch target never drops below the platform minimum. */
|
|
141
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion::after {
|
|
142
|
+
content: "";
|
|
143
|
+
position: absolute;
|
|
144
|
+
inset: 50% auto auto 50%;
|
|
145
|
+
width: max(100%, var(--mb-hit-target));
|
|
146
|
+
height: max(100%, var(--mb-hit-target));
|
|
147
|
+
translate: -50% -50%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* ── States ──────────────────────────────────────────────────── */
|
|
151
|
+
|
|
152
|
+
@media (hover: hover) and (pointer: fine) {
|
|
153
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion:hover {
|
|
154
|
+
background: var(--mb-fill-tertiary);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion:hover::before,
|
|
158
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion:hover + .mb-suggestion::before {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion:hover {
|
|
163
|
+
background: var(--mb-fill-secondary);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.mb-suggestion:active {
|
|
168
|
+
transition-duration: 0ms;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion:active {
|
|
172
|
+
background: var(--mb-fill-secondary);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion:active {
|
|
176
|
+
background: var(--mb-fill);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.mb-suggestion:focus-visible {
|
|
180
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
181
|
+
outline-offset: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.mb-suggestion:is([data-disabled], :disabled) {
|
|
185
|
+
opacity: 0.4;
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
|
|
190
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion:active {
|
|
191
|
+
scale: 0.96;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.mb-suggestions[data-layout="list"] > .mb-suggestion:active {
|
|
195
|
+
border-radius: var(--mb-row-radius);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media (prefers-contrast: more) {
|
|
200
|
+
.mb-suggestions[data-layout="chips"] > .mb-suggestion {
|
|
201
|
+
box-shadow: inset 0 0 0 1px var(--mb-control-border);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
/* Tool call — the steps an agent took: a summary line that opens a bordered group of rows. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-tool-activity-font: var(--mb-text-body);
|
|
5
|
+
--mb-tool-activity-summary-height: 22px;
|
|
6
|
+
--mb-tool-activity-icon-size: 14px;
|
|
7
|
+
--mb-tool-activity-gap: 6px;
|
|
8
|
+
--mb-tool-activity-radius: var(--mb-radius-lg);
|
|
9
|
+
--mb-tool-call-font: var(--mb-text-body);
|
|
10
|
+
--mb-tool-call-row-height: 32px;
|
|
11
|
+
--mb-tool-call-padding-inline: 12px;
|
|
12
|
+
--mb-tool-call-gap: 8px;
|
|
13
|
+
--mb-tool-call-icon-size: 14px;
|
|
14
|
+
--mb-tool-call-chevron-width: 5px;
|
|
15
|
+
--mb-tool-call-chevron-height: 9px;
|
|
16
|
+
--mb-tool-call-chevron-stroke: 1.8;
|
|
17
|
+
--mb-tool-call-section-radius: var(--mb-radius-md);
|
|
18
|
+
--mb-tool-call-section-padding: 10px 12px;
|
|
19
|
+
--mb-tool-call-section-title-font: 600 11px/14px var(--mb-font);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
23
|
+
--mb-tool-activity-font: var(--mb-text-subheadline);
|
|
24
|
+
--mb-tool-activity-summary-height: 28px;
|
|
25
|
+
--mb-tool-activity-icon-size: 16px;
|
|
26
|
+
--mb-tool-activity-gap: 6px;
|
|
27
|
+
--mb-tool-activity-radius: var(--mb-group-radius);
|
|
28
|
+
--mb-tool-call-font: var(--mb-text-subheadline);
|
|
29
|
+
--mb-tool-call-row-height: 44px;
|
|
30
|
+
--mb-tool-call-padding-inline: 14px;
|
|
31
|
+
--mb-tool-call-gap: 10px;
|
|
32
|
+
--mb-tool-call-icon-size: 17px;
|
|
33
|
+
--mb-tool-call-chevron-width: 6px;
|
|
34
|
+
--mb-tool-call-chevron-height: 11px;
|
|
35
|
+
--mb-tool-call-chevron-stroke: 2;
|
|
36
|
+
--mb-tool-call-section-radius: var(--mb-radius-lg);
|
|
37
|
+
--mb-tool-call-section-padding: 12px 14px;
|
|
38
|
+
--mb-tool-call-section-title-font: 600 13px/18px var(--mb-font);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ── The summary line ───────────────────────────────────────── */
|
|
42
|
+
|
|
43
|
+
.mb-tool-activity {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: flex-start;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
color: var(--mb-label-secondary);
|
|
49
|
+
font: var(--mb-tool-activity-font);
|
|
50
|
+
letter-spacing: var(--mb-tracking-body);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.mb-tool-activity-summary {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: var(--mb-tool-activity-gap);
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
min-height: var(--mb-tool-activity-summary-height);
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
border: 0;
|
|
63
|
+
border-radius: var(--mb-radius-xs);
|
|
64
|
+
background: transparent;
|
|
65
|
+
color: var(--mb-label-secondary);
|
|
66
|
+
font: inherit;
|
|
67
|
+
letter-spacing: inherit;
|
|
68
|
+
text-align: start;
|
|
69
|
+
cursor: default;
|
|
70
|
+
-webkit-tap-highlight-color: transparent;
|
|
71
|
+
touch-action: manipulation;
|
|
72
|
+
user-select: none;
|
|
73
|
+
-webkit-user-select: none;
|
|
74
|
+
transition: color var(--mb-duration-fast) var(--mb-ease-out);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.mb-tool-activity-summary::after {
|
|
78
|
+
content: "";
|
|
79
|
+
position: absolute;
|
|
80
|
+
inset: 50% -4px auto;
|
|
81
|
+
height: max(100%, var(--mb-hit-target));
|
|
82
|
+
translate: 0 -50%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mb-tool-activity-summary:focus-visible {
|
|
86
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
87
|
+
outline-offset: var(--mb-focus-ring-offset);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.mb-tool-activity-icon {
|
|
91
|
+
display: inline-grid;
|
|
92
|
+
flex: none;
|
|
93
|
+
place-items: center;
|
|
94
|
+
width: var(--mb-tool-activity-icon-size);
|
|
95
|
+
height: var(--mb-tool-activity-icon-size);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mb-tool-activity-icon > svg {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mb-tool-activity-label {
|
|
104
|
+
min-width: 0;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.mb-tool-activity-chevron,
|
|
111
|
+
.mb-tool-call-chevron {
|
|
112
|
+
flex: none;
|
|
113
|
+
box-sizing: content-box;
|
|
114
|
+
width: var(--mb-tool-call-chevron-width);
|
|
115
|
+
height: var(--mb-tool-call-chevron-height);
|
|
116
|
+
padding-inline: calc((var(--mb-tool-call-chevron-height) - var(--mb-tool-call-chevron-width)) / 2);
|
|
117
|
+
fill: none;
|
|
118
|
+
stroke: currentColor;
|
|
119
|
+
stroke-width: var(--mb-tool-call-chevron-stroke);
|
|
120
|
+
stroke-linecap: round;
|
|
121
|
+
stroke-linejoin: round;
|
|
122
|
+
transition: rotate var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.mb-tool-activity-summary[data-open] .mb-tool-activity-chevron,
|
|
126
|
+
.mb-tool-call-row[data-open] .mb-tool-call-chevron {
|
|
127
|
+
rotate: 90deg;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:where([dir="rtl"]) :is(.mb-tool-activity-chevron, .mb-tool-call-chevron) {
|
|
131
|
+
scale: -1 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where([dir="rtl"]) :is(.mb-tool-activity-summary, .mb-tool-call-row)[data-open] :is(.mb-tool-activity-chevron, .mb-tool-call-chevron) {
|
|
135
|
+
rotate: -90deg;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (hover: hover) and (pointer: fine) {
|
|
139
|
+
.mb-tool-activity-summary:hover,
|
|
140
|
+
.mb-tool-activity-summary:hover .mb-tool-activity-label:not([data-active]) {
|
|
141
|
+
color: var(--mb-label);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.mb-tool-activity-summary:active,
|
|
146
|
+
.mb-tool-activity-summary:active .mb-tool-activity-label:not([data-active]) {
|
|
147
|
+
color: var(--mb-label);
|
|
148
|
+
transition-duration: 0ms;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* ── Panels open by height ───────────────────────────────────── */
|
|
152
|
+
|
|
153
|
+
.mb-tool-activity-panel,
|
|
154
|
+
.mb-tool-call-panel {
|
|
155
|
+
align-self: stretch;
|
|
156
|
+
height: var(--collapsible-panel-height, auto);
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
transition: height var(--mb-spring-smooth-duration) var(--mb-spring-smooth);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.mb-tool-activity-panel:is([data-starting-style], [data-ending-style]),
|
|
162
|
+
.mb-tool-call-panel:is([data-starting-style], [data-ending-style]) {
|
|
163
|
+
height: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.mb-tool-activity-panel[data-ending-style],
|
|
167
|
+
.mb-tool-call-panel[data-ending-style] {
|
|
168
|
+
transition-duration: var(--mb-duration-slow);
|
|
169
|
+
transition-timing-function: var(--mb-ease-out);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* ── The group of steps ──────────────────────────────────────── */
|
|
173
|
+
|
|
174
|
+
.mb-tool-activity-list {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
margin: var(--mb-space-4) 0 var(--mb-space-1);
|
|
178
|
+
padding: 0;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
border-radius: var(--mb-tool-activity-radius);
|
|
181
|
+
box-shadow: inset 0 0 0 1px var(--mb-separator);
|
|
182
|
+
list-style: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@supports (corner-shape: squircle) {
|
|
186
|
+
.mb-tool-activity-list {
|
|
187
|
+
corner-shape: var(--mb-corner-shape);
|
|
188
|
+
border-radius: calc(var(--mb-tool-activity-radius) * var(--mb-corner-factor));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.mb-tool-activity-item {
|
|
193
|
+
position: relative;
|
|
194
|
+
display: block;
|
|
195
|
+
min-width: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mb-tool-activity-item + .mb-tool-activity-item::before {
|
|
199
|
+
content: "";
|
|
200
|
+
position: absolute;
|
|
201
|
+
z-index: 1;
|
|
202
|
+
inset-block-start: 0;
|
|
203
|
+
inset-inline: 0;
|
|
204
|
+
height: 1px;
|
|
205
|
+
background: var(--mb-separator);
|
|
206
|
+
pointer-events: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ── One step ────────────────────────────────────────────────── */
|
|
210
|
+
|
|
211
|
+
.mb-tool-call {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
min-width: 0;
|
|
215
|
+
color: var(--mb-label);
|
|
216
|
+
font: var(--mb-tool-call-font);
|
|
217
|
+
letter-spacing: var(--mb-tracking-body);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.mb-tool-call-row {
|
|
221
|
+
position: relative;
|
|
222
|
+
box-sizing: border-box;
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: var(--mb-tool-call-gap);
|
|
226
|
+
width: 100%;
|
|
227
|
+
min-height: var(--mb-tool-call-row-height);
|
|
228
|
+
margin: 0;
|
|
229
|
+
padding: var(--mb-space-3) var(--mb-tool-call-padding-inline);
|
|
230
|
+
border: 0;
|
|
231
|
+
border-radius: 0;
|
|
232
|
+
background: transparent;
|
|
233
|
+
color: inherit;
|
|
234
|
+
font: inherit;
|
|
235
|
+
letter-spacing: inherit;
|
|
236
|
+
text-align: start;
|
|
237
|
+
-webkit-tap-highlight-color: transparent;
|
|
238
|
+
touch-action: manipulation;
|
|
239
|
+
transition: background-color var(--mb-duration-fast) var(--mb-ease-out);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
button.mb-tool-call-row {
|
|
243
|
+
cursor: default;
|
|
244
|
+
user-select: none;
|
|
245
|
+
-webkit-user-select: none;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
button.mb-tool-call-row:focus-visible {
|
|
249
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
250
|
+
outline-offset: calc(var(--mb-focus-ring-width) * -1);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@media (hover: hover) and (pointer: fine) {
|
|
254
|
+
button.mb-tool-call-row:hover {
|
|
255
|
+
background: var(--mb-fill-quaternary);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
button.mb-tool-call-row:active {
|
|
260
|
+
background: var(--mb-fill-tertiary);
|
|
261
|
+
transition-duration: 0ms;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.mb-tool-call-icon {
|
|
265
|
+
display: inline-grid;
|
|
266
|
+
flex: none;
|
|
267
|
+
place-items: center;
|
|
268
|
+
width: var(--mb-tool-call-icon-size);
|
|
269
|
+
height: var(--mb-tool-call-icon-size);
|
|
270
|
+
color: var(--mb-label-secondary);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.mb-tool-call-icon > svg {
|
|
274
|
+
width: 100%;
|
|
275
|
+
height: 100%;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.mb-tool-call-title {
|
|
279
|
+
flex: 1 1 auto;
|
|
280
|
+
min-width: 0;
|
|
281
|
+
overflow: hidden;
|
|
282
|
+
white-space: nowrap;
|
|
283
|
+
text-overflow: ellipsis;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.mb-tool-call-verb {
|
|
287
|
+
color: var(--mb-label-secondary);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.mb-tool-call-object {
|
|
291
|
+
color: var(--mb-label);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* A row without a verb is a note: what the agent is doing, in secondary text. */
|
|
295
|
+
.mb-tool-call-title[data-note] .mb-tool-call-object,
|
|
296
|
+
.mb-tool-call[data-status="pending"] .mb-tool-call-object {
|
|
297
|
+
color: var(--mb-label-secondary);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* Shimmer paints the whole line while it runs. */
|
|
301
|
+
.mb-tool-call-title[data-active] :is(.mb-tool-call-verb, .mb-tool-call-object) {
|
|
302
|
+
color: inherit;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.mb-tool-call-chevron {
|
|
306
|
+
color: var(--mb-label-tertiary);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.mb-tool-call-status {
|
|
310
|
+
display: inline-flex;
|
|
311
|
+
flex: none;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: var(--mb-space-2);
|
|
314
|
+
color: var(--mb-label-secondary);
|
|
315
|
+
font: var(--mb-tool-call-font);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.mb-tool-call-status[data-status="error"] {
|
|
319
|
+
color: var(--mb-destructive-text);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.mb-tool-call-status[data-status="approval"] {
|
|
323
|
+
color: var(--mb-accent-text);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.mb-tool-call-spinner {
|
|
327
|
+
color: var(--mb-label-secondary);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.mb-tool-call-alert {
|
|
331
|
+
width: var(--mb-tool-call-icon-size);
|
|
332
|
+
height: var(--mb-tool-call-icon-size);
|
|
333
|
+
fill: none;
|
|
334
|
+
stroke: var(--mb-on-destructive);
|
|
335
|
+
stroke-width: 1.7;
|
|
336
|
+
stroke-linecap: round;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.mb-tool-call-alert > [data-fill] {
|
|
340
|
+
fill: var(--mb-destructive-fill);
|
|
341
|
+
stroke: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.mb-tool-call-alert > [data-dot] {
|
|
345
|
+
fill: var(--mb-on-destructive);
|
|
346
|
+
stroke-width: 0.9;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* ── Detail ──────────────────────────────────────────────────── */
|
|
350
|
+
|
|
351
|
+
.mb-tool-call-detail {
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
gap: var(--mb-space-4);
|
|
355
|
+
padding: 0 var(--mb-tool-call-padding-inline) var(--mb-tool-call-padding-inline);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.mb-tool-call-section {
|
|
359
|
+
display: flex;
|
|
360
|
+
flex-direction: column;
|
|
361
|
+
gap: var(--mb-space-3);
|
|
362
|
+
min-width: 0;
|
|
363
|
+
padding: var(--mb-tool-call-section-padding);
|
|
364
|
+
border-radius: var(--mb-tool-call-section-radius);
|
|
365
|
+
background: var(--mb-fill-quaternary);
|
|
366
|
+
box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-separator);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@supports (corner-shape: squircle) {
|
|
370
|
+
.mb-tool-call-section {
|
|
371
|
+
corner-shape: var(--mb-corner-shape);
|
|
372
|
+
border-radius: calc(var(--mb-tool-call-section-radius) * var(--mb-corner-factor));
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.mb-tool-call-section-title {
|
|
377
|
+
color: var(--mb-label-secondary);
|
|
378
|
+
font: var(--mb-tool-call-section-title-font);
|
|
379
|
+
letter-spacing: var(--mb-tracking-caption);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.mb-tool-call-section-body {
|
|
383
|
+
min-width: 0;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (forced-colors: active) {
|
|
387
|
+
.mb-tool-activity-list,
|
|
388
|
+
.mb-tool-call-section {
|
|
389
|
+
border: 1px solid CanvasText;
|
|
390
|
+
}
|
|
391
|
+
}
|