macbetter 0.0.0-stage → 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/LICENSE +201 -0
- package/README.md +92 -2
- package/dist/components/accessory-tile.d.ts +50 -0
- package/dist/components/accessory-tile.js +46 -0
- package/dist/components/activity-indicator.d.ts +15 -0
- package/dist/components/activity-indicator.js +15 -0
- package/dist/components/alert.d.ts +29 -0
- package/dist/components/alert.js +30 -0
- package/dist/components/artifact-card.d.ts +41 -0
- package/dist/components/artifact-card.js +57 -0
- package/dist/components/artwork.d.ts +44 -0
- package/dist/components/artwork.js +935 -0
- package/dist/components/attachment.d.ts +48 -0
- package/dist/components/attachment.js +65 -0
- package/dist/components/automation-row.d.ts +24 -0
- package/dist/components/automation-row.js +12 -0
- package/dist/components/avatar.d.ts +33 -0
- package/dist/components/avatar.js +45 -0
- package/dist/components/badge.d.ts +24 -0
- package/dist/components/badge.js +19 -0
- package/dist/components/button.d.ts +20 -0
- package/dist/components/button.js +10 -0
- package/dist/components/calendar.d.ts +30 -0
- package/dist/components/calendar.js +47 -0
- package/dist/components/camera-view.d.ts +40 -0
- package/dist/components/camera-view.js +44 -0
- package/dist/components/card.d.ts +14 -0
- package/dist/components/card.js +21 -0
- package/dist/components/carousel.d.ts +18 -0
- package/dist/components/carousel.js +33 -0
- package/dist/components/chat.d.ts +29 -0
- package/dist/components/chat.js +29 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.js +16 -0
- package/dist/components/code-block.d.ts +39 -0
- package/dist/components/code-block.js +65 -0
- package/dist/components/code-field.d.ts +16 -0
- package/dist/components/code-field.js +29 -0
- package/dist/components/color-well.d.ts +23 -0
- package/dist/components/color-well.js +27 -0
- package/dist/components/combo-box.d.ts +42 -0
- package/dist/components/combo-box.js +102 -0
- package/dist/components/command-palette.d.ts +33 -0
- package/dist/components/command-palette.js +55 -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/context-menu.d.ts +9 -0
- package/dist/components/context-menu.js +15 -0
- package/dist/components/date-picker.d.ts +53 -0
- package/dist/components/date-picker.js +86 -0
- package/dist/components/description-list.d.ts +18 -0
- package/dist/components/description-list.js +17 -0
- package/dist/components/device-frame.d.ts +18 -0
- package/dist/components/device-frame.js +16 -0
- package/dist/components/dialog.d.ts +27 -0
- package/dist/components/dialog.js +35 -0
- package/dist/components/disclosure.d.ts +32 -0
- package/dist/components/disclosure.js +35 -0
- package/dist/components/dock.d.ts +28 -0
- package/dist/components/dock.js +80 -0
- package/dist/components/door-control.d.ts +20 -0
- package/dist/components/door-control.js +43 -0
- package/dist/components/energy-readout.d.ts +32 -0
- package/dist/components/energy-readout.js +27 -0
- package/dist/components/field.d.ts +28 -0
- package/dist/components/field.js +32 -0
- package/dist/components/gauge.d.ts +25 -0
- package/dist/components/gauge.js +42 -0
- package/dist/components/generated-image.d.ts +39 -0
- package/dist/components/generated-image.js +47 -0
- package/dist/components/glass.d.ts +34 -0
- package/dist/components/glass.js +31 -0
- package/dist/components/home-backdrop.d.ts +23 -0
- package/dist/components/home-backdrop.js +12 -0
- package/dist/components/home-section.d.ts +19 -0
- package/dist/components/home-section.js +21 -0
- package/dist/components/home-status.d.ts +24 -0
- package/dist/components/home-status.js +14 -0
- package/dist/components/hover-card.d.ts +14 -0
- package/dist/components/hover-card.js +16 -0
- package/dist/components/inspector.d.ts +29 -0
- package/dist/components/inspector.js +40 -0
- package/dist/components/level-control.d.ts +19 -0
- package/dist/components/level-control.js +13 -0
- package/dist/components/light-color-picker.d.ts +33 -0
- package/dist/components/light-color-picker.js +56 -0
- package/dist/components/list.d.ts +42 -0
- package/dist/components/list.js +42 -0
- package/dist/components/listbox.d.ts +16 -0
- package/dist/components/listbox.js +28 -0
- package/dist/components/lock-control.d.ts +20 -0
- package/dist/components/lock-control.js +35 -0
- package/dist/components/menu-bar.d.ts +14 -0
- package/dist/components/menu-bar.js +16 -0
- package/dist/components/menu.d.ts +40 -0
- package/dist/components/menu.js +54 -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/navigation-bar.d.ts +24 -0
- package/dist/components/navigation-bar.js +54 -0
- package/dist/components/outline.d.ts +21 -0
- package/dist/components/outline.js +40 -0
- package/dist/components/page-control.d.ts +10 -0
- package/dist/components/page-control.js +8 -0
- package/dist/components/plan.d.ts +25 -0
- package/dist/components/plan.js +43 -0
- package/dist/components/popover.d.ts +16 -0
- package/dist/components/popover.js +24 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +27 -0
- package/dist/components/prompt-input.d.ts +93 -0
- package/dist/components/prompt-input.js +172 -0
- package/dist/components/radio.d.ts +16 -0
- package/dist/components/radio.js +13 -0
- package/dist/components/rating.d.ts +10 -0
- package/dist/components/rating.js +12 -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/scene-tile.d.ts +22 -0
- package/dist/components/scene-tile.js +13 -0
- package/dist/components/scroll-view.d.ts +21 -0
- package/dist/components/scroll-view.js +13 -0
- package/dist/components/search-field.d.ts +16 -0
- package/dist/components/search-field.js +12 -0
- package/dist/components/secure-field.d.ts +23 -0
- package/dist/components/secure-field.js +21 -0
- package/dist/components/segmented-control.d.ts +12 -0
- package/dist/components/segmented-control.js +10 -0
- package/dist/components/select.d.ts +45 -0
- package/dist/components/select.js +79 -0
- package/dist/components/sensor-readout.d.ts +29 -0
- package/dist/components/sensor-readout.js +12 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +11 -0
- package/dist/components/setup-code.d.ts +29 -0
- package/dist/components/setup-code.js +47 -0
- package/dist/components/sheet.d.ts +31 -0
- package/dist/components/sheet.js +51 -0
- package/dist/components/shimmer.d.ts +18 -0
- package/dist/components/shimmer.js +17 -0
- package/dist/components/sidebar.d.ts +30 -0
- package/dist/components/sidebar.js +26 -0
- package/dist/components/slider.d.ts +27 -0
- package/dist/components/slider.js +43 -0
- package/dist/components/sources.d.ts +51 -0
- package/dist/components/sources.js +46 -0
- package/dist/components/split-view.d.ts +11 -0
- package/dist/components/split-view.js +13 -0
- package/dist/components/squircle.d.ts +41 -0
- package/dist/components/squircle.js +63 -0
- package/dist/components/stepper.d.ts +30 -0
- package/dist/components/stepper.js +28 -0
- package/dist/components/suggestion.d.ts +23 -0
- package/dist/components/suggestion.js +29 -0
- package/dist/components/switch.d.ts +10 -0
- package/dist/components/switch.js +10 -0
- package/dist/components/tab-bar.d.ts +20 -0
- package/dist/components/tab-bar.js +17 -0
- package/dist/components/table.d.ts +49 -0
- package/dist/components/table.js +179 -0
- package/dist/components/tabs.d.ts +16 -0
- package/dist/components/tabs.js +19 -0
- package/dist/components/text-area.d.ts +14 -0
- package/dist/components/text-area.js +9 -0
- package/dist/components/text-field.d.ts +26 -0
- package/dist/components/text-field.js +23 -0
- package/dist/components/thermostat-control.d.ts +30 -0
- package/dist/components/thermostat-control.js +139 -0
- package/dist/components/toast.d.ts +30 -0
- package/dist/components/toast.js +114 -0
- package/dist/components/toggle.d.ts +21 -0
- package/dist/components/toggle.js +19 -0
- package/dist/components/token-field.d.ts +31 -0
- package/dist/components/token-field.js +78 -0
- package/dist/components/tool-call.d.ts +48 -0
- package/dist/components/tool-call.js +77 -0
- package/dist/components/toolbar.d.ts +27 -0
- package/dist/components/toolbar.js +39 -0
- package/dist/components/tooltip.d.ts +11 -0
- package/dist/components/tooltip.js +18 -0
- package/dist/components/window.d.ts +56 -0
- package/dist/components/window.js +61 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +98 -0
- package/dist/lib/agent-glyphs.d.ts +10 -0
- package/dist/lib/agent-glyphs.js +19 -0
- package/dist/lib/cx.d.ts +9 -0
- package/dist/lib/cx.js +14 -0
- package/dist/lib/derive.d.ts +53 -0
- package/dist/lib/derive.js +255 -0
- package/dist/lib/field-glyphs.d.ts +13 -0
- package/dist/lib/field-glyphs.js +28 -0
- package/dist/lib/menu-glyphs.d.ts +6 -0
- package/dist/lib/menu-glyphs.js +15 -0
- package/dist/lib/platform.d.ts +18 -0
- package/dist/lib/platform.js +17 -0
- package/dist/lib/squircle.d.ts +23 -0
- package/dist/lib/squircle.js +69 -0
- package/dist/lib/theme.d.ts +42 -0
- package/dist/lib/theme.js +62 -0
- package/dist/styles/base.css +115 -0
- package/dist/styles/components/accessory-tile.css +461 -0
- package/dist/styles/components/activity-indicator.css +63 -0
- package/dist/styles/components/alert.css +433 -0
- package/dist/styles/components/artifact-card.css +238 -0
- package/dist/styles/components/artwork.css +380 -0
- package/dist/styles/components/attachment.css +540 -0
- package/dist/styles/components/automation-row.css +52 -0
- package/dist/styles/components/avatar.css +230 -0
- package/dist/styles/components/badge.css +204 -0
- package/dist/styles/components/button.css +298 -0
- package/dist/styles/components/calendar.css +287 -0
- package/dist/styles/components/camera-view.css +239 -0
- package/dist/styles/components/card.css +100 -0
- package/dist/styles/components/carousel.css +210 -0
- package/dist/styles/components/chat.css +209 -0
- package/dist/styles/components/checkbox.css +212 -0
- package/dist/styles/components/code-block.css +162 -0
- package/dist/styles/components/code-field.css +163 -0
- package/dist/styles/components/color-well.css +452 -0
- package/dist/styles/components/combo-box.css +222 -0
- package/dist/styles/components/command-palette.css +379 -0
- package/dist/styles/components/confirmation.css +189 -0
- package/dist/styles/components/content-unavailable.css +105 -0
- package/dist/styles/components/context-menu.css +43 -0
- package/dist/styles/components/date-picker.css +356 -0
- package/dist/styles/components/description-list.css +92 -0
- package/dist/styles/components/device-frame.css +202 -0
- package/dist/styles/components/dialog.css +366 -0
- package/dist/styles/components/disclosure.css +197 -0
- package/dist/styles/components/dock.css +404 -0
- package/dist/styles/components/door-control.css +187 -0
- package/dist/styles/components/energy-readout.css +161 -0
- package/dist/styles/components/field.css +175 -0
- package/dist/styles/components/gauge.css +239 -0
- package/dist/styles/components/generated-image.css +248 -0
- package/dist/styles/components/glass.css +113 -0
- package/dist/styles/components/home-backdrop.css +81 -0
- package/dist/styles/components/home-section.css +100 -0
- package/dist/styles/components/home-status.css +215 -0
- package/dist/styles/components/hover-card.css +145 -0
- package/dist/styles/components/index.css +94 -0
- package/dist/styles/components/inspector.css +236 -0
- package/dist/styles/components/level-control.css +247 -0
- package/dist/styles/components/light-color-picker.css +94 -0
- package/dist/styles/components/list.css +411 -0
- package/dist/styles/components/listbox.css +168 -0
- package/dist/styles/components/lock-control.css +164 -0
- package/dist/styles/components/menu-bar.css +94 -0
- package/dist/styles/components/menu.css +454 -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 +249 -0
- package/dist/styles/components/outline.css +248 -0
- package/dist/styles/components/page-control.css +127 -0
- package/dist/styles/components/plan.css +212 -0
- package/dist/styles/components/popover.css +186 -0
- package/dist/styles/components/progress.css +228 -0
- package/dist/styles/components/prompt-input.css +503 -0
- package/dist/styles/components/radio.css +281 -0
- package/dist/styles/components/rating.css +122 -0
- package/dist/styles/components/reasoning.css +214 -0
- package/dist/styles/components/response.css +303 -0
- package/dist/styles/components/scene-tile.css +295 -0
- package/dist/styles/components/scroll-view.css +195 -0
- package/dist/styles/components/search-field.css +128 -0
- package/dist/styles/components/secure-field.css +189 -0
- package/dist/styles/components/segmented-control.css +183 -0
- package/dist/styles/components/select.css +290 -0
- package/dist/styles/components/sensor-readout.css +231 -0
- package/dist/styles/components/separator.css +62 -0
- package/dist/styles/components/setup-code.css +138 -0
- package/dist/styles/components/sheet.css +345 -0
- package/dist/styles/components/shimmer.css +60 -0
- package/dist/styles/components/sidebar.css +261 -0
- package/dist/styles/components/slider.css +208 -0
- package/dist/styles/components/sources.css +349 -0
- package/dist/styles/components/split-view.css +75 -0
- package/dist/styles/components/squircle.css +44 -0
- package/dist/styles/components/stepper.css +278 -0
- package/dist/styles/components/suggestion.css +203 -0
- package/dist/styles/components/switch.css +115 -0
- package/dist/styles/components/tab-bar.css +223 -0
- package/dist/styles/components/table.css +313 -0
- package/dist/styles/components/tabs.css +262 -0
- package/dist/styles/components/text-area.css +94 -0
- package/dist/styles/components/text-field.css +294 -0
- package/dist/styles/components/thermostat-control.css +214 -0
- package/dist/styles/components/toast.css +418 -0
- package/dist/styles/components/toggle.css +312 -0
- package/dist/styles/components/token-field.css +193 -0
- package/dist/styles/components/tool-call.css +391 -0
- package/dist/styles/components/toolbar.css +370 -0
- package/dist/styles/components/tooltip.css +69 -0
- package/dist/styles/components/window.css +428 -0
- package/dist/styles/index.css +17 -0
- package/dist/styles/materials.css +263 -0
- package/dist/styles/platforms.css +214 -0
- package/dist/styles/themes/ember.css +24 -0
- package/dist/styles/themes/graphite.css +16 -0
- package/dist/styles/themes/nebula.css +16 -0
- package/dist/styles/themes/system.css +28 -0
- package/dist/styles/tokens.css +299 -0
- package/package.json +82 -3
|
@@ -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
|
+
}
|