@openlegion/platform 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +1189 -2
- package/dist/body.d.ts +9 -0
- package/dist/body.js +28 -0
- package/dist/chat-history.d.ts +53 -0
- package/dist/chat-history.js +11 -0
- package/dist/client.d.ts +217 -0
- package/dist/client.js +367 -0
- package/dist/core.d.ts +47 -0
- package/dist/core.js +1 -0
- package/dist/crypto.d.ts +25 -0
- package/dist/crypto.js +81 -0
- package/dist/errors.d.ts +111 -0
- package/dist/errors.js +134 -0
- package/dist/events.d.ts +131 -0
- package/dist/events.js +5 -0
- package/dist/generated/api.d.ts +5505 -0
- package/dist/generated/api.js +446 -0
- package/dist/handler.d.ts +201 -0
- package/dist/handler.js +682 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +12 -0
- package/dist/kit-agents.d.ts +95 -0
- package/dist/kit-agents.js +280 -0
- package/dist/kit-codes.d.ts +279 -0
- package/dist/kit-codes.js +44 -0
- package/dist/kit-connections.d.ts +21 -0
- package/dist/kit-connections.js +189 -0
- package/dist/kit-files.d.ts +8 -0
- package/dist/kit-files.js +117 -0
- package/dist/kit-model-keys.d.ts +8 -0
- package/dist/kit-model-keys.js +86 -0
- package/dist/kit-threads.d.ts +3 -0
- package/dist/kit-threads.js +92 -0
- package/dist/kit-tools.d.ts +21 -0
- package/dist/kit-tools.js +47 -0
- package/dist/kit.d.ts +130 -0
- package/dist/kit.js +155 -0
- package/dist/mcp-server.d.ts +27 -0
- package/dist/mcp-server.js +166 -0
- package/dist/next.d.ts +24 -0
- package/dist/next.js +6 -0
- package/dist/ol-signed.d.ts +82 -0
- package/dist/ol-signed.js +115 -0
- package/dist/react/add-server.d.ts +90 -0
- package/dist/react/add-server.js +183 -0
- package/dist/react/agent-chat.d.ts +925 -0
- package/dist/react/agent-chat.js +1917 -0
- package/dist/react/agent-editor.d.ts +133 -0
- package/dist/react/agent-editor.js +222 -0
- package/dist/react/agent-kit.d.ts +160 -0
- package/dist/react/agent-kit.js +279 -0
- package/dist/react/agent-list.d.ts +247 -0
- package/dist/react/agent-list.js +248 -0
- package/dist/react/approval-card.d.ts +272 -0
- package/dist/react/approval-card.js +372 -0
- package/dist/react/artifact-card.d.ts +38 -0
- package/dist/react/artifact-card.js +39 -0
- package/dist/react/avatar.d.ts +21 -0
- package/dist/react/avatar.js +33 -0
- package/dist/react/card-ledger.d.ts +30 -0
- package/dist/react/card-ledger.js +49 -0
- package/dist/react/chat-timing.d.ts +121 -0
- package/dist/react/chat-timing.js +229 -0
- package/dist/react/computer-view.d.ts +309 -0
- package/dist/react/computer-view.js +543 -0
- package/dist/react/computer-viewer.d.ts +175 -0
- package/dist/react/computer-viewer.js +555 -0
- package/dist/react/computer-wire.d.ts +178 -0
- package/dist/react/computer-wire.js +244 -0
- package/dist/react/connect-button.d.ts +145 -0
- package/dist/react/connect-button.js +212 -0
- package/dist/react/connection-request.d.ts +16 -0
- package/dist/react/connection-request.js +18 -0
- package/dist/react/connections-list.d.ts +90 -0
- package/dist/react/connections-list.js +76 -0
- package/dist/react/errors.d.ts +250 -0
- package/dist/react/errors.js +146 -0
- package/dist/react/files.d.ts +41 -0
- package/dist/react/files.js +78 -0
- package/dist/react/index.d.ts +35 -0
- package/dist/react/index.js +26 -0
- package/dist/react/limit-words.d.ts +80 -0
- package/dist/react/limit-words.js +53 -0
- package/dist/react/markdown.d.ts +42 -0
- package/dist/react/markdown.js +56 -0
- package/dist/react/md-parse.d.ts +106 -0
- package/dist/react/md-parse.js +638 -0
- package/dist/react/model-keys-card.d.ts +94 -0
- package/dist/react/model-keys-card.js +123 -0
- package/dist/react/reload.d.ts +211 -0
- package/dist/react/reload.js +339 -0
- package/dist/react/reveal.d.ts +17 -0
- package/dist/react/reveal.js +22 -0
- package/dist/react/schedule-editor.d.ts +107 -0
- package/dist/react/schedule-editor.js +172 -0
- package/dist/react/schedule-time.d.ts +66 -0
- package/dist/react/schedule-time.js +90 -0
- package/dist/react/styles.css +1274 -0
- package/dist/react/transport.d.ts +49 -0
- package/dist/react/transport.js +380 -0
- package/dist/react/use-connections.d.ts +155 -0
- package/dist/react/use-connections.js +231 -0
- package/dist/react/use-model-keys.d.ts +47 -0
- package/dist/react/use-model-keys.js +57 -0
- package/dist/react/use-threads.d.ts +63 -0
- package/dist/react/use-threads.js +73 -0
- package/dist/react/vault-form.d.ts +92 -0
- package/dist/react/vault-form.js +151 -0
- package/dist/schema.d.ts +47 -0
- package/dist/schema.js +16 -0
- package/dist/secrets.d.ts +15 -0
- package/dist/secrets.js +18 -0
- package/dist/stream.d.ts +129 -0
- package/dist/stream.js +192 -0
- package/dist/testing.d.ts +33 -0
- package/dist/testing.js +40 -0
- package/dist/webhooks.d.ts +31 -0
- package/dist/webhooks.js +72 -0
- package/package.json +85 -3
|
@@ -0,0 +1,1274 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @openlegion/platform/react/styles.css: the kit's OPTIONAL default look.
|
|
3
|
+
*
|
|
4
|
+
* import "@openlegion/platform/react/styles.css";
|
|
5
|
+
*
|
|
6
|
+
* The components ship unstyled and work without this file (the chat then is plain blocks in your page's flow:
|
|
7
|
+
* its layout is here, so a rule of yours never needs !important). With it, <AgentChat>, <AgentEditor>,
|
|
8
|
+
* <ScheduleEditor>, <VaultSecretForm>, <ConnectButton>, <ConnectionsList>, <AppCatalog> and <ComputerView> share one
|
|
9
|
+
* small look: the page's font, spacing, real buttons and inputs, a focus ring, light and dark.
|
|
10
|
+
*
|
|
11
|
+
* YOUR CSS WINS. Every rule is in `@layer openlegion` and every selector is wrapped in `:where()`, so any
|
|
12
|
+
* rule of yours that isn't in a layer overrides it, at any specificity.
|
|
13
|
+
*
|
|
14
|
+
* IT FOLLOWS YOUR PAGE. Colours come from the text colour around the component (`currentColor`) and from
|
|
15
|
+
* your page's `color-scheme`, not from the visitor's system: a light page stays light on a dark system.
|
|
16
|
+
* For dark mode, declare `color-scheme: light dark` (Next.js: `export const viewport = { colorScheme:
|
|
17
|
+
* "light dark" }`).
|
|
18
|
+
*
|
|
19
|
+
* THEME IT with the variables below, on `:root` or on any element around a component.
|
|
20
|
+
*
|
|
21
|
+
* YOUR OWN CONTROLS can share the look: put `data-ol-theme` on an element (the quickstart puts it on <body>)
|
|
22
|
+
* and the buttons and inputs inside it are drawn the same way. A form's submit button is filled; give a button
|
|
23
|
+
* `data-ol-button="secondary"` to draw it outlined all the same (a list where each row is its own small form).
|
|
24
|
+
* Nothing outside the components and that element is touched.
|
|
25
|
+
*/
|
|
26
|
+
@layer openlegion {
|
|
27
|
+
:where(:root) {
|
|
28
|
+
--ol-accent: #2563eb;
|
|
29
|
+
--ol-on-accent: #ffffff;
|
|
30
|
+
--ol-danger: #b42318;
|
|
31
|
+
/* Lines between areas, and the stronger line around a control (3:1 against the page). */
|
|
32
|
+
--ol-border: color-mix(in srgb, currentColor 18%, transparent);
|
|
33
|
+
--ol-control-border: color-mix(in srgb, currentColor 50%, transparent);
|
|
34
|
+
--ol-muted: color-mix(in srgb, currentColor 72%, transparent);
|
|
35
|
+
--ol-surface: color-mix(in srgb, currentColor 6%, transparent);
|
|
36
|
+
--ol-field: Canvas;
|
|
37
|
+
--ol-radius: 0.5rem;
|
|
38
|
+
--ol-gap: 1rem;
|
|
39
|
+
--ol-gap-small: 0.5rem;
|
|
40
|
+
--ol-field-gap: 0.375rem;
|
|
41
|
+
--ol-small: 0.875em;
|
|
42
|
+
--ol-control-height: 2.5rem;
|
|
43
|
+
/* <AgentChat> */
|
|
44
|
+
--ol-chat-height: min(60vh, 32rem);
|
|
45
|
+
--ol-chat-padding: 1rem;
|
|
46
|
+
--ol-chat-gap: 0.75rem;
|
|
47
|
+
--ol-chat-part-gap: 0.25rem;
|
|
48
|
+
--ol-chat-tool-opacity: 0.75;
|
|
49
|
+
/* A refusal's words in the chat: the text color around it, unless you set one. */
|
|
50
|
+
--ol-chat-notice: currentColor;
|
|
51
|
+
/* The agent's Markdown in <AgentChat>: the space between its blocks, and its code's font. */
|
|
52
|
+
--ol-md-gap: 0.625rem;
|
|
53
|
+
--ol-md-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
54
|
+
/* <VaultSecretForm> */
|
|
55
|
+
--ol-vault-gap: var(--ol-field-gap);
|
|
56
|
+
--ol-vault-border: var(--ol-border);
|
|
57
|
+
--ol-vault-radius: var(--ol-radius);
|
|
58
|
+
--ol-vault-padding: 1rem;
|
|
59
|
+
--ol-vault-caution: var(--ol-danger);
|
|
60
|
+
/* <ScheduleEditor>: how many lines of a schedule's instructions its row shows. */
|
|
61
|
+
--ol-schedule-does-lines: 3;
|
|
62
|
+
/* The approval card in <AgentChat> */
|
|
63
|
+
--ol-approval-border: var(--ol-border);
|
|
64
|
+
/* An agent's avatar (<AgentList>, and beside its name in <AgentChat>): its box, and the kit's letter on a circle. */
|
|
65
|
+
--ol-avatar-size: 1.75rem;
|
|
66
|
+
--ol-avatar-radius: 50%;
|
|
67
|
+
--ol-avatar-bg: color-mix(in srgb, var(--ol-accent) 18%, transparent);
|
|
68
|
+
--ol-avatar-fg: currentColor;
|
|
69
|
+
/* A note the kit scrolls into view after a press (a refusal, "Saved."): the room it keeps from the screen's
|
|
70
|
+
edge, so its last line isn't on the very foot. A phone's safe area is added to it there. */
|
|
71
|
+
--ol-note-scroll-margin: 8px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@supports (color: light-dark(#000, #fff)) {
|
|
75
|
+
:where(:root) {
|
|
76
|
+
--ol-accent: light-dark(#2563eb, #8ab4ff);
|
|
77
|
+
--ol-on-accent: light-dark(#ffffff, #0b1220);
|
|
78
|
+
--ol-danger: light-dark(#b42318, #ff9b8f);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) {
|
|
83
|
+
line-height: 1.5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ---- Controls --------------------------------------------------------------------------------------- */
|
|
87
|
+
|
|
88
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer])
|
|
89
|
+
:where(input:not([type="checkbox"], [type="radio"]), textarea, select) {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
min-height: var(--ol-control-height);
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
padding: 0.5rem 0.75rem;
|
|
94
|
+
border: 1px solid var(--ol-control-border);
|
|
95
|
+
border-radius: var(--ol-radius);
|
|
96
|
+
background: var(--ol-field);
|
|
97
|
+
color: inherit;
|
|
98
|
+
font: inherit;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(textarea) {
|
|
102
|
+
resize: vertical;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
* A select as tall as the fields beside it, in every engine: WebKit draws a native one at its own small height
|
|
107
|
+
* whatever its padding (an 18 px tap target at 390), so it is drawn by these rules, with its own chevron.
|
|
108
|
+
*/
|
|
109
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(select) {
|
|
110
|
+
appearance: none;
|
|
111
|
+
padding-inline-end: 2.25rem;
|
|
112
|
+
background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
|
|
113
|
+
background-position: calc(100% - 1.125rem) 50%, calc(100% - 0.8125rem) 50%;
|
|
114
|
+
background-size: 0.3125rem 0.3125rem;
|
|
115
|
+
background-repeat: no-repeat;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(::placeholder) {
|
|
119
|
+
color: var(--ol-muted);
|
|
120
|
+
opacity: 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(input[type="checkbox"], input[type="radio"]) {
|
|
124
|
+
width: 1.125rem;
|
|
125
|
+
height: 1.125rem;
|
|
126
|
+
margin: 0;
|
|
127
|
+
accent-color: var(--ol-accent);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button) {
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
min-height: var(--ol-control-height);
|
|
133
|
+
padding: 0.5rem 1rem;
|
|
134
|
+
border: 1px solid var(--ol-control-border);
|
|
135
|
+
border-radius: var(--ol-radius);
|
|
136
|
+
background: transparent;
|
|
137
|
+
color: inherit;
|
|
138
|
+
font: inherit;
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button:not(:disabled):hover) {
|
|
144
|
+
background: var(--ol-surface);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* The form's one action is filled; every other button is outlined. */
|
|
148
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button[type="submit"]) {
|
|
149
|
+
border-color: var(--ol-accent);
|
|
150
|
+
background: var(--ol-accent);
|
|
151
|
+
color: var(--ol-on-accent);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button[type="submit"]:not(:disabled):hover) {
|
|
155
|
+
background: color-mix(in srgb, var(--ol-accent) 85%, currentColor);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* The action that can't be pressed yet loses its fill and is outlined like the rest: a dimmed fill still
|
|
159
|
+
reads as pressable (in dark, 2.6:1 from the live one), so the state is the shape, not a shade. */
|
|
160
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button[type="submit"]:disabled) {
|
|
161
|
+
border-color: var(--ol-control-border);
|
|
162
|
+
background: transparent;
|
|
163
|
+
color: inherit;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* A button of yours that is not its page's one action, even as a form's submit: outlined like the rest. */
|
|
167
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button[data-ol-button="secondary"]) {
|
|
168
|
+
border-color: var(--ol-control-border);
|
|
169
|
+
background: transparent;
|
|
170
|
+
color: inherit;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button[data-ol-button="secondary"]:not(:disabled):hover) {
|
|
174
|
+
background: var(--ol-surface);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* A toggle that is on (a picked tab, a chosen item) says so with the accent, outlined. */
|
|
178
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(button[aria-pressed="true"]) {
|
|
179
|
+
border-color: var(--ol-accent);
|
|
180
|
+
background: color-mix(in srgb, var(--ol-accent) 12%, transparent);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(:disabled, fieldset:disabled *) {
|
|
184
|
+
opacity: 0.55;
|
|
185
|
+
cursor: not-allowed;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where(:focus-visible) {
|
|
189
|
+
outline: 2px solid var(--ol-accent);
|
|
190
|
+
outline-offset: 2px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:where([data-ol-theme], [data-ol-chat], [data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form], [data-ol-connect], [data-ol-connections], [data-ol-catalog], [data-ol-model-keys], [data-ol-agent-list], [data-ol-add-server], [data-ol-computer]) :where([aria-invalid="true"]) {
|
|
194
|
+
border-color: var(--ol-danger);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:where([data-ol-agent-editor], [data-ol-schedule-editor]) :where(fieldset) {
|
|
198
|
+
min-width: 0;
|
|
199
|
+
margin: 0;
|
|
200
|
+
padding: 0;
|
|
201
|
+
border: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:where([data-ol-agent-editor], [data-ol-schedule-editor]) :where(legend) {
|
|
205
|
+
margin-bottom: var(--ol-field-gap);
|
|
206
|
+
padding: 0;
|
|
207
|
+
font-weight: 600;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* A field's own label; a label around a checkbox stays plain. A field with nothing to choose names itself the same. */
|
|
211
|
+
:where([data-ol-agent-editor], [data-ol-schedule-editor], [data-ol-vault-form]) :where(label[for], [data-ol-agent-field-name]) {
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* ---- Messages ---------------------------------------------------------------------------------------- */
|
|
216
|
+
|
|
217
|
+
:where([data-ol-agent-error], [data-ol-schedule-error], [data-ol-vault-error], [data-ol-error], [data-ol-attach-error], [data-ol-model-keys-error], [data-ol-connect-error], [data-ol-add-server-error]) {
|
|
218
|
+
color: var(--ol-danger);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:where([data-ol-agent-saved], [data-ol-vault-saved]) {
|
|
222
|
+
font-weight: 600;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:where([data-ol-agent-empty], [data-ol-agent-loading], [data-ol-schedule-empty], [data-ol-schedule-loading], [data-ol-schedule-not-offered]) {
|
|
226
|
+
color: var(--ol-muted);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* One quiet notice: the agent or schedule limit in place of a form, and a refusal in the chat (a normal
|
|
230
|
+
answer, not an alarm). */
|
|
231
|
+
:where([data-ol-agent-limit], [data-ol-schedule-full], [data-ol-refusal]) {
|
|
232
|
+
margin: 0;
|
|
233
|
+
padding: 0.75rem 1rem;
|
|
234
|
+
border: 1px solid var(--ol-border);
|
|
235
|
+
border-radius: var(--ol-radius);
|
|
236
|
+
background: var(--ol-surface);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* ---- <AgentEditor> ----------------------------------------------------------------------------------- */
|
|
240
|
+
|
|
241
|
+
:where([data-ol-agent-tool]) {
|
|
242
|
+
min-height: 2.25rem;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* ---- <ScheduleEditor> -------------------------------------------------------------------------------- */
|
|
246
|
+
|
|
247
|
+
:where([data-ol-schedule]) {
|
|
248
|
+
padding: 0.75rem 1rem;
|
|
249
|
+
border: 1px solid var(--ol-border);
|
|
250
|
+
border-radius: var(--ol-radius);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* What a schedule does: its instructions, up to three lines in the row (all of it on hover, and in Edit). */
|
|
254
|
+
:where([data-ol-schedule-does]) {
|
|
255
|
+
display: -webkit-box;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
-webkit-box-orient: vertical;
|
|
258
|
+
-webkit-line-clamp: var(--ol-schedule-does-lines);
|
|
259
|
+
line-clamp: var(--ol-schedule-does-lines);
|
|
260
|
+
overflow-wrap: anywhere;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:where([data-ol-schedule-does-label]) {
|
|
264
|
+
color: var(--ol-muted);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
:where([data-ol-schedule-badge]) {
|
|
268
|
+
padding: 0.0625rem 0.5rem;
|
|
269
|
+
border: 1px solid var(--ol-border);
|
|
270
|
+
border-radius: 999px;
|
|
271
|
+
background: var(--ol-surface);
|
|
272
|
+
font-size: var(--ol-small);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Each day a chip; the checkbox stays, so it reads and works as one. */
|
|
276
|
+
:where([data-ol-schedule-day]) {
|
|
277
|
+
box-sizing: border-box;
|
|
278
|
+
padding: 0 0.75rem;
|
|
279
|
+
border: 1px solid var(--ol-control-border);
|
|
280
|
+
border-radius: 999px;
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
:where([data-ol-schedule-day]:has(input:checked)) {
|
|
285
|
+
border-color: var(--ol-accent);
|
|
286
|
+
background: color-mix(in srgb, var(--ol-accent) 14%, transparent);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:where([data-ol-schedule-day]:has(input:focus-visible)) {
|
|
290
|
+
outline: 2px solid var(--ol-accent);
|
|
291
|
+
outline-offset: 2px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
:where([data-ol-schedule-day]) :where(input:focus-visible) {
|
|
295
|
+
outline: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* ---- <AgentChat> ------------------------------------------------------------------------------------- */
|
|
299
|
+
|
|
300
|
+
/* The transcript scrolls in its own box, so the message box stays in reach. */
|
|
301
|
+
:where([data-ol-transcript]) {
|
|
302
|
+
box-sizing: border-box;
|
|
303
|
+
max-height: var(--ol-chat-height);
|
|
304
|
+
overflow-y: auto;
|
|
305
|
+
overscroll-behavior: contain;
|
|
306
|
+
border: 1px solid var(--ol-border);
|
|
307
|
+
border-radius: var(--ol-radius);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* The line at the top while older messages can be read: one line tall whatever it says (or nothing yet), so
|
|
311
|
+
"Loading earlier messages…" and the start of the conversation take its place without moving anything. */
|
|
312
|
+
:where([data-ol-earlier]) {
|
|
313
|
+
min-height: 1.5em;
|
|
314
|
+
color: var(--ol-muted);
|
|
315
|
+
font-size: var(--ol-small);
|
|
316
|
+
line-height: 1.5;
|
|
317
|
+
text-align: center;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:where([data-ol-empty]) {
|
|
321
|
+
padding: 2rem 1rem;
|
|
322
|
+
border: 1px dashed var(--ol-border);
|
|
323
|
+
border-radius: var(--ol-radius);
|
|
324
|
+
color: var(--ol-muted);
|
|
325
|
+
text-align: center;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
:where([data-ol-message][data-ol-role="user"]) {
|
|
329
|
+
align-self: flex-end;
|
|
330
|
+
max-width: 85%;
|
|
331
|
+
padding: 0.5rem 0.75rem;
|
|
332
|
+
border-radius: var(--ol-radius);
|
|
333
|
+
background: var(--ol-surface);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
:where([data-ol-message][data-ol-role="assistant"]) {
|
|
337
|
+
max-width: 100%;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
:where([data-ol-author]) {
|
|
341
|
+
color: var(--ol-muted);
|
|
342
|
+
font-size: var(--ol-small);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* Signed with the agent's name (`agentName`): its avatar before it, smaller than a list row's. */
|
|
346
|
+
:where([data-ol-author]:has([data-ol-avatar])) {
|
|
347
|
+
--ol-avatar-size: 1.25rem;
|
|
348
|
+
display: inline-flex;
|
|
349
|
+
align-items: center;
|
|
350
|
+
gap: 0.375rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
:where([data-ol-tool], [data-ol-thinking], [data-ol-queued], [data-ol-waiting-note], [data-ol-stopping], [data-ol-stopped], [data-ol-stop-failed], [data-ol-from-schedule], [data-ol-model-note]) {
|
|
354
|
+
font-size: var(--ol-small);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* A long word, link or piece of code breaks where it must, so it never widens a narrow page. */
|
|
358
|
+
:where([data-ol-text], [data-ol-refusal], [data-ol-tool], [data-ol-model-note]) {
|
|
359
|
+
overflow-wrap: anywhere;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:where([data-ol-thinking], [data-ol-queued], [data-ol-uploading], [data-ol-waiting-note], [data-ol-stopping], [data-ol-stopped], [data-ol-stop-failed], [data-ol-from-schedule], [data-ol-model-note]) {
|
|
363
|
+
color: var(--ol-muted);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/*
|
|
367
|
+
* The agent's Markdown (<MarkdownText>): the reply's own rhythm, nothing louder than the chat. A heading is a
|
|
368
|
+
* bold line, a table scrolls sideways inside the reply, code is the page's monospace on a faint surface.
|
|
369
|
+
*/
|
|
370
|
+
:where([data-ol-md]) {
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
gap: var(--ol-md-gap);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
:where([data-ol-md-p], [data-ol-md-heading], [data-ol-md-ul], [data-ol-md-ol], [data-ol-md-quote], [data-ol-md-pre], [data-ol-md-rule]) {
|
|
377
|
+
margin: 0;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
:where([data-ol-md-heading]) {
|
|
381
|
+
margin-top: calc(var(--ol-md-gap) / 2);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
:where([data-ol-md-ul], [data-ol-md-ol]) {
|
|
385
|
+
display: flex;
|
|
386
|
+
flex-direction: column;
|
|
387
|
+
gap: calc(var(--ol-md-gap) / 2);
|
|
388
|
+
padding-inline-start: 1.5em;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
:where([data-ol-md-li] > [data-ol-md-p], [data-ol-md-li] > [data-ol-md-ul], [data-ol-md-li] > [data-ol-md-ol]) {
|
|
392
|
+
margin-top: calc(var(--ol-md-gap) / 2);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:where([data-ol-md-li] > :first-child) {
|
|
396
|
+
margin-top: 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
:where([data-ol-md-quote]) {
|
|
400
|
+
display: flex;
|
|
401
|
+
flex-direction: column;
|
|
402
|
+
gap: var(--ol-md-gap);
|
|
403
|
+
padding-inline-start: 0.75rem;
|
|
404
|
+
border-inline-start: 3px solid var(--ol-border);
|
|
405
|
+
color: var(--ol-muted);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
:where([data-ol-md-rule]) {
|
|
409
|
+
width: 100%;
|
|
410
|
+
border: none;
|
|
411
|
+
border-top: 1px solid var(--ol-border);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:where([data-ol-md-code], [data-ol-md-pre]) {
|
|
415
|
+
font-family: var(--ol-md-mono);
|
|
416
|
+
font-size: 0.9em;
|
|
417
|
+
background: var(--ol-surface);
|
|
418
|
+
border-radius: calc(var(--ol-radius) / 2);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
:where([data-ol-md-code]) {
|
|
422
|
+
padding: 0.05em 0.3em;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
:where([data-ol-md-pre] > code) {
|
|
426
|
+
font: inherit;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* A fence keeps its lines: it scrolls sideways rather than wrap code. */
|
|
430
|
+
:where([data-ol-md-pre]) {
|
|
431
|
+
overflow-x: auto;
|
|
432
|
+
padding: 0.625rem 0.75rem;
|
|
433
|
+
white-space: pre;
|
|
434
|
+
overflow-wrap: normal;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
:where([data-ol-md-link]) {
|
|
438
|
+
color: var(--ol-accent);
|
|
439
|
+
text-decoration: underline;
|
|
440
|
+
text-underline-offset: 0.15em;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* Where a link goes, after words that do not say it. */
|
|
444
|
+
:where([data-ol-md-host]) {
|
|
445
|
+
color: var(--ol-muted);
|
|
446
|
+
font-size: var(--ol-small);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/* A table is never squeezed into a narrow reply: it keeps readable columns and scrolls sideways in its box. */
|
|
450
|
+
:where([data-ol-md-table]) {
|
|
451
|
+
max-width: 100%;
|
|
452
|
+
overflow-x: auto;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
:where([data-ol-md-table]) :where(table) {
|
|
456
|
+
border-collapse: collapse;
|
|
457
|
+
font-size: var(--ol-small);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
:where([data-ol-md-table]) :where(th, td) {
|
|
461
|
+
min-width: 6rem;
|
|
462
|
+
max-width: 18rem;
|
|
463
|
+
padding: 0.375rem 0.625rem;
|
|
464
|
+
border: 1px solid var(--ol-border);
|
|
465
|
+
text-align: start;
|
|
466
|
+
vertical-align: top;
|
|
467
|
+
overflow-wrap: normal;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
:where([data-ol-md-table]) :where(th) {
|
|
471
|
+
font-weight: 600;
|
|
472
|
+
background: var(--ol-surface);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
:where([data-ol-md-align="center"]) {
|
|
476
|
+
text-align: center;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
:where([data-ol-md-align="right"]) {
|
|
480
|
+
text-align: end;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* The empty conversation's suggested first messages: chips, each sends itself. */
|
|
484
|
+
:where([data-ol-suggestion]) {
|
|
485
|
+
min-height: 2.25rem;
|
|
486
|
+
padding: 0.25rem 0.875rem;
|
|
487
|
+
border-radius: 999px;
|
|
488
|
+
font-weight: 400;
|
|
489
|
+
text-align: start;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/* Files: a person's attachments as chips, and the files the agent delivered as a list of links. */
|
|
493
|
+
:where([data-ol-attachment]) {
|
|
494
|
+
display: inline-flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
gap: 0.25rem;
|
|
497
|
+
padding: 0.125rem 0.5rem;
|
|
498
|
+
border: 1px solid var(--ol-border);
|
|
499
|
+
border-radius: var(--ol-radius);
|
|
500
|
+
font-size: var(--ol-small);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
:where([data-ol-attachment-remove]) {
|
|
504
|
+
min-height: 0;
|
|
505
|
+
padding: 0 0.25rem;
|
|
506
|
+
border: none;
|
|
507
|
+
background: none;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
:where([data-ol-files]) {
|
|
511
|
+
padding: 0.75rem 1rem;
|
|
512
|
+
border: 1px solid var(--ol-border);
|
|
513
|
+
border-radius: var(--ol-radius);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
:where([data-ol-file-size], [data-ol-file-note]) {
|
|
517
|
+
color: var(--ol-muted);
|
|
518
|
+
font-size: var(--ol-small);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* A delivered file, as a card where the agent delivered it, with its preview. */
|
|
522
|
+
:where([data-ol-artifact]) {
|
|
523
|
+
display: flex;
|
|
524
|
+
flex-direction: column;
|
|
525
|
+
align-items: flex-start;
|
|
526
|
+
gap: var(--ol-gap-small);
|
|
527
|
+
padding: 0.75rem 1rem;
|
|
528
|
+
border: 1px solid var(--ol-border);
|
|
529
|
+
border-radius: var(--ol-radius);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
:where([data-ol-artifact-toggle]) {
|
|
533
|
+
min-height: 2rem;
|
|
534
|
+
padding: 0.125rem 0.75rem;
|
|
535
|
+
font-size: var(--ol-small);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
:where([data-ol-artifact-preview]) {
|
|
539
|
+
box-sizing: border-box;
|
|
540
|
+
width: 100%;
|
|
541
|
+
max-width: 100%;
|
|
542
|
+
border-radius: var(--ol-radius);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
:where(img[data-ol-artifact-preview]) {
|
|
546
|
+
width: auto;
|
|
547
|
+
height: auto;
|
|
548
|
+
max-height: 24rem;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
:where(object[data-ol-artifact-preview]) {
|
|
552
|
+
height: min(70vh, 32rem);
|
|
553
|
+
border: 1px solid var(--ol-border);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
:where(div[data-ol-artifact-preview]) {
|
|
557
|
+
max-height: 24rem;
|
|
558
|
+
overflow: auto;
|
|
559
|
+
padding: 0.75rem;
|
|
560
|
+
border: 1px solid var(--ol-border);
|
|
561
|
+
overflow-wrap: anywhere;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
:where([data-ol-artifact-text]) {
|
|
565
|
+
margin: 0;
|
|
566
|
+
font: inherit;
|
|
567
|
+
white-space: pre-wrap;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
:where([data-ol-artifact-fallback]) {
|
|
571
|
+
margin: 0;
|
|
572
|
+
padding: 0.75rem;
|
|
573
|
+
color: var(--ol-muted);
|
|
574
|
+
font-size: var(--ol-small);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/* A held tool call: the approval card in the chat. Approve is its one filled button. */
|
|
578
|
+
:where([data-ol-approval-approve]) {
|
|
579
|
+
border-color: var(--ol-accent);
|
|
580
|
+
background: var(--ol-accent);
|
|
581
|
+
color: var(--ol-on-accent);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
:where([data-ol-approval-approve]:not(:disabled):hover) {
|
|
585
|
+
background: color-mix(in srgb, var(--ol-accent) 85%, currentColor);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
:where([data-ol-approval-approve]:disabled) {
|
|
589
|
+
border-color: var(--ol-control-border);
|
|
590
|
+
background: transparent;
|
|
591
|
+
color: inherit;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* One line that opens: a finished reply's steps, and an approval's facts after the first two. */
|
|
595
|
+
:where([data-ol-steps-summary], [data-ol-approval-details-summary]) {
|
|
596
|
+
font-size: var(--ol-small);
|
|
597
|
+
cursor: pointer;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
:where([data-ol-steps-summary]) {
|
|
601
|
+
color: var(--ol-muted);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
:where([data-ol-approval-details-summary]) {
|
|
605
|
+
color: var(--ol-accent);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
:where([data-ol-steps][open], [data-ol-approval-details][open]) :where(summary) {
|
|
609
|
+
margin-bottom: var(--ol-chat-part-gap);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/* A long value's "Show all": a quiet text button under its first lines. */
|
|
613
|
+
:where([data-ol-approval-show-all]) {
|
|
614
|
+
min-height: 0;
|
|
615
|
+
margin-top: 0.125rem;
|
|
616
|
+
padding: 0;
|
|
617
|
+
border: none;
|
|
618
|
+
background: none;
|
|
619
|
+
color: var(--ol-accent);
|
|
620
|
+
font-size: var(--ol-small);
|
|
621
|
+
font-weight: 400;
|
|
622
|
+
cursor: pointer;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
:where([data-ol-approval-outcome]) {
|
|
626
|
+
font-weight: 600;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* An approved action that then did not work: a failure, said as one. */
|
|
630
|
+
:where([data-ol-approval-notice], [data-ol-approval-failed]) {
|
|
631
|
+
color: var(--ol-danger);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* While the card is read, and while a decision is out: quiet. */
|
|
635
|
+
:where([data-ol-approval-loading], [data-ol-approval-progress]) {
|
|
636
|
+
color: var(--ol-muted);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/* Approve held back while the person holds the browser: why, and what to do. Not an error. */
|
|
640
|
+
:where([data-ol-approval-held]) {
|
|
641
|
+
color: var(--ol-muted);
|
|
642
|
+
font-size: var(--ol-small);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/* A value longer than the card shows: said once per cut fact, before the buttons. */
|
|
646
|
+
:where([data-ol-approval-cut]) {
|
|
647
|
+
color: var(--ol-muted);
|
|
648
|
+
font-size: var(--ol-small);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* Connecting an app: the card in the chat, the connections list and the app catalog. */
|
|
652
|
+
:where([data-ol-connect]) {
|
|
653
|
+
display: flex;
|
|
654
|
+
flex-direction: column;
|
|
655
|
+
gap: var(--ol-gap-small);
|
|
656
|
+
padding: 0.75rem;
|
|
657
|
+
border: 1px solid var(--ol-border);
|
|
658
|
+
border-radius: var(--ol-radius);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/* In a row that already names the app (the catalog), the card is its button and its status alone: no frame. */
|
|
662
|
+
:where([data-ol-connect][data-ol-connect-compact]) {
|
|
663
|
+
padding: 0;
|
|
664
|
+
border: 0;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
:where([data-ol-connect-app]) {
|
|
668
|
+
font-weight: 600;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
:where([data-ol-connect-reason], [data-ol-connect-status], [data-ol-connect-warning], [data-ol-connect-error]) {
|
|
672
|
+
margin: 0;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
:where([data-ol-connect-status], [data-ol-connection-account], [data-ol-connection-state], [data-ol-catalog-description], [data-ol-connections-empty], [data-ol-catalog-empty]) {
|
|
676
|
+
color: var(--ol-muted);
|
|
677
|
+
font-size: var(--ol-small);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
:where([data-ol-connect-warning]) {
|
|
681
|
+
font-size: var(--ol-small);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
:where([data-ol-connect-button]) {
|
|
685
|
+
width: 100%;
|
|
686
|
+
max-width: 20rem;
|
|
687
|
+
padding: 0 1rem;
|
|
688
|
+
border: 0;
|
|
689
|
+
border-radius: var(--ol-radius);
|
|
690
|
+
background: var(--ol-accent);
|
|
691
|
+
color: var(--ol-on-accent);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
:where([data-ol-connection-confirm]) {
|
|
695
|
+
display: flex;
|
|
696
|
+
flex-basis: 100%;
|
|
697
|
+
flex-wrap: wrap;
|
|
698
|
+
align-items: center;
|
|
699
|
+
gap: var(--ol-gap-small);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* ---- <ModelKeysCard> ------------------------------------------------------------------------------- */
|
|
703
|
+
|
|
704
|
+
:where([data-ol-model-keys]) {
|
|
705
|
+
display: flex;
|
|
706
|
+
flex-direction: column;
|
|
707
|
+
gap: var(--ol-gap-small);
|
|
708
|
+
padding: 0.75rem;
|
|
709
|
+
border: 1px solid var(--ol-border);
|
|
710
|
+
border-radius: var(--ol-radius);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
:where([data-ol-model-keys-title]) {
|
|
714
|
+
margin: 0;
|
|
715
|
+
font-size: 1em;
|
|
716
|
+
font-weight: 600;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
:where([data-ol-model-keys-intro], [data-ol-model-keys-not-allowed], [data-ol-model-keys-replaces], [data-ol-model-keys-error]) {
|
|
720
|
+
margin: 0;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
:where([data-ol-model-keys-intro], [data-ol-model-keys-not-allowed], [data-ol-model-keys-replaces], [data-ol-model-key-state]) {
|
|
724
|
+
color: var(--ol-muted);
|
|
725
|
+
font-size: var(--ol-small);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
:where([data-ol-model-key]) {
|
|
729
|
+
display: flex;
|
|
730
|
+
flex-wrap: wrap;
|
|
731
|
+
align-items: center;
|
|
732
|
+
gap: var(--ol-gap-small);
|
|
733
|
+
padding: var(--ol-gap-small) 0;
|
|
734
|
+
border-bottom: 1px solid var(--ol-border);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
:where([data-ol-model-key-summary]) {
|
|
738
|
+
font-weight: 600;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
:where([data-ol-model-key-confirm]) {
|
|
742
|
+
display: flex;
|
|
743
|
+
flex-basis: 100%;
|
|
744
|
+
flex-wrap: wrap;
|
|
745
|
+
align-items: center;
|
|
746
|
+
gap: var(--ol-gap-small);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
:where([data-ol-model-keys-form]) {
|
|
750
|
+
display: flex;
|
|
751
|
+
flex-direction: column;
|
|
752
|
+
gap: var(--ol-gap-small);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
:where([data-ol-model-keys-field]) {
|
|
756
|
+
display: flex;
|
|
757
|
+
flex-direction: column;
|
|
758
|
+
gap: 0.25rem;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
:where([data-ol-model-keys-save]) {
|
|
762
|
+
align-self: flex-start;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/* ---- <AgentList> -------------------------------------------------------------------------------------- */
|
|
766
|
+
|
|
767
|
+
/* A left bar's list: each agent a full-width row, not a boxed button; the open one on the surface. */
|
|
768
|
+
:where([data-ol-agent-list]) {
|
|
769
|
+
display: flex;
|
|
770
|
+
flex-direction: column;
|
|
771
|
+
gap: var(--ol-gap-small);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
:where([data-ol-agent-list] > ul) {
|
|
775
|
+
display: flex;
|
|
776
|
+
flex-direction: column;
|
|
777
|
+
gap: 2px;
|
|
778
|
+
margin: 0;
|
|
779
|
+
padding: 0;
|
|
780
|
+
list-style: none;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/* Above the list: the partner's mark, name or link home, lined up with the rows' text. */
|
|
784
|
+
:where([data-ol-agent-list-header]) {
|
|
785
|
+
display: flex;
|
|
786
|
+
align-items: center;
|
|
787
|
+
gap: var(--ol-gap-small);
|
|
788
|
+
padding: 0.25rem 0.625rem;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/* A row: a button, the partner's link (rowHref), or the partner's last row; all look alike. */
|
|
792
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent], a[data-ol-agent], [data-ol-agent-list-last]) {
|
|
793
|
+
display: flex;
|
|
794
|
+
align-items: center;
|
|
795
|
+
gap: var(--ol-gap-small);
|
|
796
|
+
width: 100%;
|
|
797
|
+
min-height: var(--ol-control-height);
|
|
798
|
+
padding: 0.375rem 0.625rem;
|
|
799
|
+
border: 0;
|
|
800
|
+
border-radius: var(--ol-radius);
|
|
801
|
+
background: transparent;
|
|
802
|
+
color: inherit;
|
|
803
|
+
font: inherit;
|
|
804
|
+
text-align: start;
|
|
805
|
+
text-decoration: none;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent]:not(:disabled):hover, a[data-ol-agent]:hover, [data-ol-agent-list-last]:hover) {
|
|
809
|
+
background: var(--ol-surface);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/* Where the person is: the kit's own chosen look (as aria-pressed), never the same as a hover. */
|
|
813
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent][aria-current="page"], a[data-ol-agent][aria-current="page"]) {
|
|
814
|
+
background: color-mix(in srgb, var(--ol-accent) 12%, transparent);
|
|
815
|
+
font-weight: 600;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/* The ring inside the row: rows sit 2 px apart, and a left bar that scrolls would cut it at its edges. */
|
|
819
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent]:focus-visible, a[data-ol-agent]:focus-visible, [data-ol-agent-list-last]:focus-visible) {
|
|
820
|
+
outline-offset: -2px;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/* A row opening its conversation: shown, not only told. */
|
|
824
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent][aria-busy="true"]) {
|
|
825
|
+
color: var(--ol-muted);
|
|
826
|
+
cursor: progress;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* The name takes the room and ends in an ellipsis; the mark and the badge keep their size at the end. */
|
|
830
|
+
:where([data-ol-agent-name]) {
|
|
831
|
+
flex: 1;
|
|
832
|
+
min-width: 0;
|
|
833
|
+
overflow: hidden;
|
|
834
|
+
text-overflow: ellipsis;
|
|
835
|
+
white-space: nowrap;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/*
|
|
839
|
+
* The avatar: a fixed box (its size is on the element too), so nothing moves when a partner's picture loads or
|
|
840
|
+
* fails; the picture fills it. The kit's own is the name's first letter on a quiet circle. A last row's icon sits in
|
|
841
|
+
* the same column.
|
|
842
|
+
*/
|
|
843
|
+
:where([data-ol-avatar], [data-ol-agent-list-icon]) {
|
|
844
|
+
display: inline-flex;
|
|
845
|
+
flex: none;
|
|
846
|
+
align-items: center;
|
|
847
|
+
justify-content: center;
|
|
848
|
+
width: var(--ol-avatar-size);
|
|
849
|
+
height: var(--ol-avatar-size);
|
|
850
|
+
overflow: hidden;
|
|
851
|
+
border-radius: var(--ol-avatar-radius);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
:where([data-ol-avatar="initial"]) {
|
|
855
|
+
background: var(--ol-avatar-bg);
|
|
856
|
+
color: var(--ol-avatar-fg);
|
|
857
|
+
font-size: calc(var(--ol-avatar-size) * 0.45);
|
|
858
|
+
font-weight: 600;
|
|
859
|
+
line-height: 1;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
:where([data-ol-avatar]) :where(img, svg, picture, video) {
|
|
863
|
+
display: block;
|
|
864
|
+
width: 100%;
|
|
865
|
+
height: 100%;
|
|
866
|
+
object-fit: cover;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* With a model preset (`models`): the name over it, both ending in an ellipsis; the row keeps its height. */
|
|
870
|
+
:where([data-ol-agent-text]) {
|
|
871
|
+
display: flex;
|
|
872
|
+
flex: 1;
|
|
873
|
+
flex-direction: column;
|
|
874
|
+
min-width: 0;
|
|
875
|
+
line-height: 1.25;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
:where([data-ol-agent-preset]) {
|
|
879
|
+
overflow: hidden;
|
|
880
|
+
color: var(--ol-muted);
|
|
881
|
+
font-size: var(--ol-small);
|
|
882
|
+
font-weight: 400;
|
|
883
|
+
text-overflow: ellipsis;
|
|
884
|
+
white-space: nowrap;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
:where([data-ol-agent-status="paused"] [data-ol-agent-name]) {
|
|
888
|
+
color: var(--ol-muted);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/* Working and Paused: quiet words, not a dot (a dot beside a badge reads as unread), and still: no motion. */
|
|
892
|
+
:where([data-ol-agent-working], [data-ol-agent-paused]) {
|
|
893
|
+
flex: none;
|
|
894
|
+
color: var(--ol-muted);
|
|
895
|
+
font-size: var(--ol-small);
|
|
896
|
+
font-weight: 400;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/*
|
|
900
|
+
* Waiting on the person (an approval to answer): a word in an outlined accent pill, apart from both others (the
|
|
901
|
+
* unread badge is filled, working a muted word). It keeps its size; the name gives way first.
|
|
902
|
+
*/
|
|
903
|
+
:where([data-ol-agent-waiting]) {
|
|
904
|
+
flex: none;
|
|
905
|
+
padding: 0 0.375rem;
|
|
906
|
+
border: 1px solid var(--ol-accent);
|
|
907
|
+
border-radius: 999px;
|
|
908
|
+
color: var(--ol-accent);
|
|
909
|
+
font-size: var(--ol-small);
|
|
910
|
+
font-weight: 600;
|
|
911
|
+
line-height: calc(1.25rem - 2px);
|
|
912
|
+
white-space: nowrap;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
:where([data-ol-agent-unseen]) {
|
|
916
|
+
flex: none;
|
|
917
|
+
min-width: 1.25rem;
|
|
918
|
+
padding: 0 0.375rem;
|
|
919
|
+
border-radius: 999px;
|
|
920
|
+
background: var(--ol-accent);
|
|
921
|
+
color: var(--ol-on-accent);
|
|
922
|
+
font-size: var(--ol-small);
|
|
923
|
+
font-weight: 600;
|
|
924
|
+
line-height: 1.25rem;
|
|
925
|
+
text-align: center;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
:where([data-ol-agent-open-failed], [data-ol-agent-list-loading], [data-ol-agent-list-empty], [data-ol-agent-list-failed], [data-ol-agent-list-more-failed]) {
|
|
929
|
+
margin: 0;
|
|
930
|
+
padding: 0 0.625rem;
|
|
931
|
+
font-size: var(--ol-small);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/* Waiting and empty are quiet; a failure reads at full contrast. */
|
|
935
|
+
:where([data-ol-agent-list-loading], [data-ol-agent-list-empty]) {
|
|
936
|
+
color: var(--ol-muted);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
:where([data-ol-agent-new]) {
|
|
940
|
+
align-self: flex-start;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/* Quieter than "New agent", the one action here: a row-style link to the next page, and a compact Try again. */
|
|
944
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent-list-more], button[data-ol-agent-list-retry]) {
|
|
945
|
+
min-height: 0;
|
|
946
|
+
padding: 0.25rem 0.625rem;
|
|
947
|
+
border: 0;
|
|
948
|
+
background: transparent;
|
|
949
|
+
color: var(--ol-accent);
|
|
950
|
+
font: inherit;
|
|
951
|
+
font-size: var(--ol-small);
|
|
952
|
+
text-decoration: underline;
|
|
953
|
+
text-underline-offset: 0.2em;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
:where([data-ol-agent-list]) :where(button[data-ol-agent-list-more]) {
|
|
957
|
+
align-self: flex-start;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
:where([data-ol-connections] > ul, [data-ol-catalog] > ul) {
|
|
961
|
+
margin: 0;
|
|
962
|
+
padding: 0;
|
|
963
|
+
list-style: none;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
:where([data-ol-connection], [data-ol-catalog-app]) {
|
|
967
|
+
display: flex;
|
|
968
|
+
flex-wrap: wrap;
|
|
969
|
+
align-items: center;
|
|
970
|
+
gap: var(--ol-gap-small);
|
|
971
|
+
padding: var(--ol-gap-small) 0;
|
|
972
|
+
border-bottom: 1px solid var(--ol-border);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/*
|
|
976
|
+
* ---- The chat's layout ------------------------------------------------------------------------------
|
|
977
|
+
* What <AgentChat> and its approval card once set inline (so a rule of yours needed !important): here, last
|
|
978
|
+
* in the layer, so these win over the look above and any rule of yours wins over them. Without this file the
|
|
979
|
+
* chat is plain blocks in the page's flow. Only state stays inline: the empty transcript is hidden, a long
|
|
980
|
+
* approval value is clamped, and a person's own line breaks are kept.
|
|
981
|
+
*/
|
|
982
|
+
:where([data-ol-chat], [data-ol-transcript]) {
|
|
983
|
+
display: flex;
|
|
984
|
+
flex-direction: column;
|
|
985
|
+
gap: var(--ol-chat-gap);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
:where([data-ol-transcript]) {
|
|
989
|
+
margin: 0;
|
|
990
|
+
padding: var(--ol-chat-padding);
|
|
991
|
+
list-style: none;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
:where([data-ol-message], [data-ol-run-outcome]) {
|
|
995
|
+
display: flex;
|
|
996
|
+
flex-direction: column;
|
|
997
|
+
gap: var(--ol-chat-part-gap);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
:where([data-ol-author], [data-ol-approval-field] > dt) {
|
|
1001
|
+
font-weight: 600;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
:where([data-ol-tool]) {
|
|
1005
|
+
opacity: var(--ol-chat-tool-opacity);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/* A step that did not work is an alarm only in a reply that failed. One the reply went on from
|
|
1009
|
+
([data-ol-tool-recovered]) is a quiet step like the others. Not at the steps' opacity: at 0.75 the danger red is
|
|
1010
|
+
below AA contrast on white. After the rule above, which it overrides (both are :where). */
|
|
1011
|
+
:where([data-ol-reply-failed] [data-ol-tool][data-ol-tool-state="output-error"]) {
|
|
1012
|
+
color: var(--ol-danger);
|
|
1013
|
+
opacity: 1;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
:where([data-ol-refusal]) {
|
|
1017
|
+
color: var(--ol-chat-notice);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
:where([data-ol-empty], [data-ol-refusal], [data-ol-unsent-note], [data-ol-waiting-note], [data-ol-stopping], [data-ol-stopped], [data-ol-thinking], [data-ol-queued], [data-ol-stop-failed], [data-ol-error], [data-ol-uploading], [data-ol-attach-error], [data-ol-from-schedule], [data-ol-model-note]) {
|
|
1021
|
+
margin: 0;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
/* "Not sent." (`data-ol-unsent-why`): a failure's color only for a send that did not go; a refusal or a limit is said quietly. */
|
|
1025
|
+
:where([data-ol-unsent-note][data-ol-unsent-why="failed"] > span:first-child) {
|
|
1026
|
+
color: var(--ol-danger);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
:where([data-ol-unsent-note][data-ol-unsent-why="refused"] > span:first-child, [data-ol-unsent-note][data-ol-unsent-why="limit"] > span:first-child) {
|
|
1030
|
+
color: var(--ol-muted);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
/* The note under a reply that ran on the agent's usual model: set off from the reply's words by one of their own block gaps. */
|
|
1034
|
+
:where([data-ol-model-note]) {
|
|
1035
|
+
margin-top: calc(var(--ol-md-gap) - var(--ol-chat-part-gap));
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
:where([data-ol-suggestions], [data-ol-attachments], [data-ol-files-list]) {
|
|
1039
|
+
display: flex;
|
|
1040
|
+
flex-wrap: wrap;
|
|
1041
|
+
gap: var(--ol-chat-part-gap);
|
|
1042
|
+
margin: 0;
|
|
1043
|
+
padding: 0;
|
|
1044
|
+
list-style: none;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
:where([data-ol-files-list]) {
|
|
1048
|
+
flex-direction: column;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
:where([data-ol-files-heading]) {
|
|
1052
|
+
margin: 0;
|
|
1053
|
+
font: inherit;
|
|
1054
|
+
font-weight: 600;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
:where([data-ol-file-note]) {
|
|
1058
|
+
display: block;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
:where([data-ol-composer]) {
|
|
1062
|
+
display: flex;
|
|
1063
|
+
align-items: flex-end;
|
|
1064
|
+
gap: var(--ol-chat-gap);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
:where([data-ol-input]) {
|
|
1068
|
+
flex: 1;
|
|
1069
|
+
font: inherit;
|
|
1070
|
+
resize: vertical;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/* The box off (composerOff): its controls stay, hidden, in one cell, and your sentence sits over them, so the
|
|
1074
|
+
box keeps its height and the page does not move. A longer sentence makes it taller, never cut. */
|
|
1075
|
+
:where([data-ol-composer][data-ol-composer-off]) {
|
|
1076
|
+
display: grid;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
:where([data-ol-composer][data-ol-composer-off] > *) {
|
|
1080
|
+
grid-area: 1 / 1;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
:where([data-ol-composer-note]) {
|
|
1084
|
+
align-self: center;
|
|
1085
|
+
margin: 0;
|
|
1086
|
+
padding: 0 0.75rem;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/* Right above the box while a waiting card is out of sight: one line, its words and "Review". */
|
|
1090
|
+
:where([data-ol-approval-bar]) {
|
|
1091
|
+
display: flex;
|
|
1092
|
+
align-items: center;
|
|
1093
|
+
justify-content: space-between;
|
|
1094
|
+
gap: var(--ol-chat-gap);
|
|
1095
|
+
padding: 0.375rem 0.375rem 0.375rem 0.75rem;
|
|
1096
|
+
border: 1px solid var(--ol-accent);
|
|
1097
|
+
border-radius: 0.5rem;
|
|
1098
|
+
background: color-mix(in srgb, var(--ol-accent) 10%, transparent);
|
|
1099
|
+
font-size: var(--ol-small);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
:where([data-ol-approval-bar] > span) {
|
|
1103
|
+
overflow: hidden;
|
|
1104
|
+
text-overflow: ellipsis;
|
|
1105
|
+
white-space: nowrap;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
:where([data-ol-approval-bar] > button) {
|
|
1109
|
+
flex: none;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/* The card that "Review" brought into view has focus, from code: no ring unless it came from the keyboard. */
|
|
1113
|
+
:where([data-ol-approval]:focus:not(:focus-visible)) {
|
|
1114
|
+
outline: none;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/* The card, and its frame while it is read: a card from the first moment, never a step's line. */
|
|
1118
|
+
:where([data-ol-approval], [data-ol-approval-loading]) {
|
|
1119
|
+
display: flex;
|
|
1120
|
+
flex-direction: column;
|
|
1121
|
+
gap: 0.5rem;
|
|
1122
|
+
padding: 0.75rem;
|
|
1123
|
+
border: 1px solid var(--ol-approval-border, currentColor);
|
|
1124
|
+
border-radius: 0.5rem;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
:where([data-ol-approval-fields], [data-ol-approval-more], [data-ol-approval-field] > dd, [data-ol-approval-notice], [data-ol-approval-cut], [data-ol-approval-held], [data-ol-approval-outcome], [data-ol-approval-progress], [data-ol-approval-error]) {
|
|
1128
|
+
margin: 0;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
:where([data-ol-approval-actions]) {
|
|
1132
|
+
display: flex;
|
|
1133
|
+
gap: 0.5rem;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/* A note the kit scrolls into view after a press stops this far from the screen's edge (react/reveal.ts scrolls
|
|
1137
|
+
it to the nearest edge), above a phone's home bar at the foot. Change --ol-note-scroll-margin, or set your own
|
|
1138
|
+
scroll-margin on these notes: yours wins. */
|
|
1139
|
+
:where([data-ol-connect-status], [data-ol-connect-error], [data-ol-add-server-status], [data-ol-add-server-error], [data-ol-add-server-state] > p[role="status"], [data-ol-vault-saved], [data-ol-vault-error], [data-ol-agent-error], [data-ol-agent-saved], [data-ol-model-keys-error], [data-ol-schedule-error], [data-ol-connections-error], [data-ol-agent-open-failed], [data-ol-agent-list-more-failed]) {
|
|
1140
|
+
scroll-margin-block: calc(var(--ol-note-scroll-margin) + env(safe-area-inset-top, 0px)) calc(var(--ol-note-scroll-margin) + env(safe-area-inset-bottom, 0px));
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/* <ComputerView>: the agent's browser. A bar (the sentence, the site, one button) above the picture; in the chat,
|
|
1144
|
+
the same bar alone, with Watch. The picture keeps the page's 16:10 and fills the width it is given. */
|
|
1145
|
+
:where([data-ol-computer]) {
|
|
1146
|
+
display: flex;
|
|
1147
|
+
flex-direction: column;
|
|
1148
|
+
gap: var(--ol-gap-small);
|
|
1149
|
+
min-width: 0;
|
|
1150
|
+
padding: 0.75rem 1rem;
|
|
1151
|
+
border: 1px solid var(--ol-border);
|
|
1152
|
+
border-radius: var(--ol-radius);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
:where([data-ol-computer]:focus:not(:focus-visible)) {
|
|
1156
|
+
outline: none;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
:where([data-ol-computer-bar]) {
|
|
1160
|
+
display: flex;
|
|
1161
|
+
flex-wrap: wrap;
|
|
1162
|
+
align-items: center;
|
|
1163
|
+
justify-content: space-between;
|
|
1164
|
+
gap: var(--ol-gap-small);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
:where([data-ol-computer-words]) {
|
|
1168
|
+
flex: 1 1 14rem;
|
|
1169
|
+
min-width: 0;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
:where([data-ol-computer-sentence], [data-ol-computer-site], [data-ol-computer-hint]) {
|
|
1173
|
+
margin: 0;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
:where([data-ol-computer-site], [data-ol-computer-hint]) {
|
|
1177
|
+
color: var(--ol-muted);
|
|
1178
|
+
font-size: var(--ol-small);
|
|
1179
|
+
overflow-wrap: anywhere;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
:where([data-ol-computer-actions]) {
|
|
1183
|
+
display: flex;
|
|
1184
|
+
flex-wrap: wrap;
|
|
1185
|
+
gap: var(--ol-gap-small);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/* A finger's target: 44 px. */
|
|
1189
|
+
:where([data-ol-computer-actions] > button) {
|
|
1190
|
+
min-height: 2.75rem;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
/* The pointer: in the newest reply that used a browser whose row is further up the conversation, one compact line,
|
|
1194
|
+
the browser's sentence and the button that brings that row into sight. Lighter than the row it points to. */
|
|
1195
|
+
:where([data-ol-computer-pointer]) {
|
|
1196
|
+
display: flex;
|
|
1197
|
+
flex-wrap: wrap;
|
|
1198
|
+
align-items: center;
|
|
1199
|
+
justify-content: space-between;
|
|
1200
|
+
gap: var(--ol-gap-small);
|
|
1201
|
+
min-width: 0;
|
|
1202
|
+
padding: 0.5rem 0.75rem;
|
|
1203
|
+
border: 1px dashed var(--ol-border);
|
|
1204
|
+
border-radius: var(--ol-radius);
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
:where([data-ol-computer-pointer-sentence]) {
|
|
1208
|
+
flex: 1 1 14rem;
|
|
1209
|
+
min-width: 0;
|
|
1210
|
+
margin: 0;
|
|
1211
|
+
font-size: var(--ol-small);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
:where([data-ol-computer-pointer] > button) {
|
|
1215
|
+
min-height: 2.75rem;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/* Take over when the agent stopped for a person, and Give back: the one filled button. */
|
|
1219
|
+
:where(button[data-ol-computer-primary]) {
|
|
1220
|
+
border-color: var(--ol-accent);
|
|
1221
|
+
background: var(--ol-accent);
|
|
1222
|
+
color: var(--ol-on-accent);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
:where(button[data-ol-computer-primary]:hover) {
|
|
1226
|
+
background: color-mix(in srgb, var(--ol-accent) 85%, currentColor);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
:where(button[aria-disabled="true"]) {
|
|
1230
|
+
cursor: progress;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/* Stretched, not width: 100%: WebKit takes a column-flex item's percentage width from the wrong box for its ratio.
|
|
1234
|
+
16:10 holds the place until the first frame; then the box takes the frame's own ratio, set on it by the view. */
|
|
1235
|
+
:where([data-ol-computer-picture]) {
|
|
1236
|
+
position: relative;
|
|
1237
|
+
box-sizing: border-box;
|
|
1238
|
+
align-self: stretch;
|
|
1239
|
+
aspect-ratio: 16 / 10;
|
|
1240
|
+
overflow: hidden;
|
|
1241
|
+
border-radius: calc(var(--ol-radius) / 2);
|
|
1242
|
+
background: var(--ol-surface);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
:where([data-ol-computer-picture] > img) {
|
|
1246
|
+
display: block;
|
|
1247
|
+
width: 100%;
|
|
1248
|
+
height: 100%;
|
|
1249
|
+
object-fit: contain;
|
|
1250
|
+
user-select: none;
|
|
1251
|
+
-webkit-user-select: none;
|
|
1252
|
+
-webkit-touch-callout: none;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/* While the person holds control the picture is outlined, takes the pointer, and a pinch is the phone's own zoom. */
|
|
1256
|
+
:where([data-ol-computer-state="control"] [data-ol-computer-picture]) {
|
|
1257
|
+
outline: 2px solid var(--ol-accent);
|
|
1258
|
+
outline-offset: 2px;
|
|
1259
|
+
touch-action: pinch-zoom;
|
|
1260
|
+
cursor: default;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
:where([data-ol-computer-state="control"] [data-ol-computer-picture]:focus-visible) {
|
|
1264
|
+
outline-width: 3px;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/* Keyboard opens a phone's on-screen keyboard; with a mouse there is a real one. */
|
|
1268
|
+
@media (pointer: fine) {
|
|
1269
|
+
:where([data-ol-computer-keyboard]) {
|
|
1270
|
+
display: none;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
}
|