@celljs/ta-web 4.12.0 → 4.13.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/README.en.md +1 -1
- package/README.md +1 -1
- package/esm/browser/assistant/assistant-extension.js +14 -0
- package/esm/browser/assistant/assistant-initiative.d.ts +27 -0
- package/esm/browser/assistant/assistant-initiative.js +76 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +7 -0
- package/esm/browser/assistant/assistant-task-source.js +12 -2
- package/esm/browser/assistant/assistant-view.js +5 -4
- package/esm/browser/assistant/assistant.d.ts +5 -0
- package/esm/browser/assistant/assistant.js +25 -6
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +5 -2
- package/esm/browser/components/app-view.js +18 -9
- package/esm/browser/components/asks-badge.d.ts +5 -0
- package/esm/browser/components/asks-badge.js +8 -0
- package/esm/browser/components/chat-asks.d.ts +46 -0
- package/esm/browser/components/chat-asks.js +101 -0
- package/esm/browser/components/chat-list.d.ts +7 -1
- package/esm/browser/components/chat-list.js +46 -17
- package/esm/browser/components/composer-addon-util.d.ts +11 -0
- package/esm/browser/components/composer-addon-util.js +40 -0
- package/esm/browser/components/composer-addons.d.ts +1 -7
- package/esm/browser/components/composer-addons.js +1 -27
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +33 -20
- package/esm/browser/components/connection-bar.js +31 -12
- package/esm/browser/components/conversation-scroll-util.d.ts +5 -0
- package/esm/browser/components/conversation-scroll-util.js +18 -0
- package/esm/browser/components/conversation-scroll.d.ts +12 -2
- package/esm/browser/components/conversation-scroll.js +68 -5
- package/esm/browser/components/discover-view.js +5 -1
- package/esm/browser/components/earlier-messages.d.ts +10 -3
- package/esm/browser/components/earlier-messages.js +14 -8
- package/esm/browser/components/folder-picker.d.ts +2 -0
- package/esm/browser/components/folder-picker.js +7 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/markdown.js +4 -2
- package/esm/browser/components/media.js +4 -39
- package/esm/browser/components/mermaid-view.js +45 -3
- package/esm/browser/components/message-footer.d.ts +2 -0
- package/esm/browser/components/message-footer.js +8 -1
- package/esm/browser/components/message-list.d.ts +12 -0
- package/esm/browser/components/message-list.js +156 -25
- package/esm/browser/components/phone-shell.d.ts +7 -2
- package/esm/browser/components/phone-shell.js +7 -3
- package/esm/browser/components/relay-services.d.ts +24 -0
- package/esm/browser/components/relay-services.js +249 -0
- package/esm/browser/components/relay-view.js +17 -1
- package/esm/browser/components/remote-hosts.js +1 -1
- package/esm/browser/components/session-view.js +16 -4
- package/esm/browser/components/settings-controls.js +3 -3
- package/esm/browser/components/settings-parts.js +13 -1
- package/esm/browser/components/ta-avatar.js +6 -0
- package/esm/browser/components/tool-result.d.ts +13 -0
- package/esm/browser/components/tool-result.js +138 -0
- package/esm/browser/components/tool-view.js +5 -15
- package/esm/browser/components/web-composer.js +2 -1
- package/esm/browser/extension/extension-view.d.ts +3 -1
- package/esm/browser/extension/extension-view.js +7 -0
- package/esm/browser/extension/icons.js +9 -1
- package/esm/browser/extension/web-api-components.d.ts +3 -3
- package/esm/browser/extension/web-api-contributions.d.ts +119 -0
- package/esm/browser/extension/web-extension-api.d.ts +23 -46
- package/esm/browser/extension/web-extension-context.d.ts +6 -1
- package/esm/browser/extension/web-extension-context.js +63 -6
- package/esm/browser/extension/web-extension-protocol.d.ts +5 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +3 -2
- package/esm/browser/extension/web-extension-run.js +3 -0
- package/esm/browser/extension/web-extensions.d.ts +2 -8
- package/esm/browser/extension/web-extensions.js +9 -35
- package/esm/browser/extension/web-page-list.d.ts +25 -0
- package/esm/browser/extension/web-page-list.js +35 -0
- package/esm/browser/extension/web-session-notices.d.ts +6 -1
- package/esm/browser/extension/web-session-notices.js +30 -4
- package/esm/browser/extension/web-sharing.d.ts +5 -2
- package/esm/browser/extension/web-sharing.js +10 -1
- package/esm/browser/i18n/locales.d.ts +69 -3
- package/esm/browser/i18n/messages.d.ts +68 -2
- package/esm/browser/i18n/messages.js +138 -6
- package/esm/browser/markdown/code-renderers.d.ts +4 -0
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/markdown/lazy.d.ts +8 -0
- package/esm/browser/markdown/lazy.js +35 -0
- package/esm/browser/markdown/mermaid.d.ts +15 -3
- package/esm/browser/markdown/mermaid.js +45 -6
- package/esm/browser/notices/notices-protocol.d.ts +5 -0
- package/esm/browser/notices/notices.d.ts +19 -0
- package/esm/browser/notices/notices.js +85 -2
- package/esm/browser/notices/session-notices.d.ts +5 -2
- package/esm/browser/notices/session-notices.js +10 -1
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +2 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +51 -0
- package/esm/browser/style/device.js +3 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +24 -9
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +2 -0
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +2 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +14 -3
- package/esm/browser/util/desktop.d.ts +18 -1
- package/esm/browser/util/desktop.js +13 -0
- package/esm/browser/util/process.d.ts +26 -1
- package/esm/browser/util/process.js +79 -5
- package/esm/browser/util/progress.d.ts +6 -1
- package/esm/browser/util/progress.js +11 -2
- package/esm/browser/util/scroll-rest.d.ts +10 -0
- package/esm/browser/util/scroll-rest.js +44 -0
- package/esm/browser/util/tool-result.d.ts +32 -0
- package/esm/browser/util/tool-result.js +85 -0
- package/esm/browser/util/tool.js +7 -0
- package/lib/browser/assistant/assistant-extension.js +14 -0
- package/lib/browser/assistant/assistant-initiative.d.ts +28 -0
- package/lib/browser/assistant/assistant-initiative.js +80 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +7 -0
- package/lib/browser/assistant/assistant-task-source.js +12 -2
- package/lib/browser/assistant/assistant-view.js +3 -2
- package/lib/browser/assistant/assistant.d.ts +5 -0
- package/lib/browser/assistant/assistant.js +24 -5
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +5 -2
- package/lib/browser/components/app-view.js +17 -8
- package/lib/browser/components/asks-badge.d.ts +6 -0
- package/lib/browser/components/asks-badge.js +44 -0
- package/lib/browser/components/chat-asks.d.ts +47 -0
- package/lib/browser/components/chat-asks.js +104 -0
- package/lib/browser/components/chat-list.d.ts +7 -1
- package/lib/browser/components/chat-list.js +46 -17
- package/lib/browser/components/composer-addon-util.d.ts +12 -0
- package/lib/browser/components/composer-addon-util.js +76 -0
- package/lib/browser/components/composer-addons.d.ts +1 -7
- package/lib/browser/components/composer-addons.js +2 -29
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +33 -19
- package/lib/browser/components/connection-bar.js +30 -11
- package/lib/browser/components/conversation-scroll-util.d.ts +5 -0
- package/lib/browser/components/conversation-scroll-util.js +18 -0
- package/lib/browser/components/conversation-scroll.d.ts +12 -2
- package/lib/browser/components/conversation-scroll.js +68 -5
- package/lib/browser/components/discover-view.js +5 -1
- package/lib/browser/components/earlier-messages.d.ts +10 -3
- package/lib/browser/components/earlier-messages.js +16 -9
- package/lib/browser/components/folder-picker.d.ts +2 -0
- package/lib/browser/components/folder-picker.js +7 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/markdown.js +3 -1
- package/lib/browser/components/media.js +3 -38
- package/lib/browser/components/mermaid-view.js +45 -3
- package/lib/browser/components/message-footer.d.ts +2 -0
- package/lib/browser/components/message-footer.js +8 -0
- package/lib/browser/components/message-list.d.ts +12 -0
- package/lib/browser/components/message-list.js +153 -20
- package/lib/browser/components/phone-shell.d.ts +7 -2
- package/lib/browser/components/phone-shell.js +7 -3
- package/lib/browser/components/relay-services.d.ts +25 -0
- package/lib/browser/components/relay-services.js +286 -0
- package/lib/browser/components/relay-view.js +17 -1
- package/lib/browser/components/remote-hosts.js +1 -1
- package/lib/browser/components/session-view.js +15 -3
- package/lib/browser/components/settings-controls.js +3 -3
- package/lib/browser/components/settings-parts.js +13 -1
- package/lib/browser/components/ta-avatar.js +6 -0
- package/lib/browser/components/tool-result.d.ts +14 -0
- package/lib/browser/components/tool-result.js +175 -0
- package/lib/browser/components/tool-view.js +10 -20
- package/lib/browser/components/web-composer.js +2 -1
- package/lib/browser/extension/extension-view.d.ts +3 -1
- package/lib/browser/extension/extension-view.js +8 -1
- package/lib/browser/extension/icons.js +8 -0
- package/lib/browser/extension/web-api-components.d.ts +3 -3
- package/lib/browser/extension/web-api-contributions.d.ts +119 -0
- package/lib/browser/extension/web-extension-api.d.ts +23 -46
- package/lib/browser/extension/web-extension-context.d.ts +6 -1
- package/lib/browser/extension/web-extension-context.js +63 -6
- package/lib/browser/extension/web-extension-protocol.d.ts +5 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +3 -2
- package/lib/browser/extension/web-extension-run.js +3 -0
- package/lib/browser/extension/web-extensions.d.ts +2 -8
- package/lib/browser/extension/web-extensions.js +9 -35
- package/lib/browser/extension/web-page-list.d.ts +26 -0
- package/lib/browser/extension/web-page-list.js +39 -0
- package/lib/browser/extension/web-session-notices.d.ts +6 -1
- package/lib/browser/extension/web-session-notices.js +30 -4
- package/lib/browser/extension/web-sharing.d.ts +5 -2
- package/lib/browser/extension/web-sharing.js +10 -1
- package/lib/browser/i18n/locales.d.ts +69 -3
- package/lib/browser/i18n/messages.d.ts +68 -2
- package/lib/browser/i18n/messages.js +138 -6
- package/lib/browser/markdown/code-renderers.d.ts +4 -0
- package/lib/browser/markdown/code-renderers.js +5 -1
- package/lib/browser/markdown/lazy.d.ts +8 -0
- package/lib/browser/markdown/lazy.js +37 -1
- package/lib/browser/markdown/mermaid.d.ts +15 -3
- package/lib/browser/markdown/mermaid.js +44 -5
- package/lib/browser/notices/notices-protocol.d.ts +5 -0
- package/lib/browser/notices/notices.d.ts +19 -0
- package/lib/browser/notices/notices.js +84 -1
- package/lib/browser/notices/session-notices.d.ts +5 -2
- package/lib/browser/notices/session-notices.js +10 -1
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +2 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +51 -0
- package/lib/browser/style/device.js +3 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +24 -9
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +2 -0
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +2 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +14 -3
- package/lib/browser/util/desktop.d.ts +18 -1
- package/lib/browser/util/desktop.js +13 -0
- package/lib/browser/util/process.d.ts +26 -1
- package/lib/browser/util/process.js +79 -5
- package/lib/browser/util/progress.d.ts +6 -1
- package/lib/browser/util/progress.js +11 -2
- package/lib/browser/util/scroll-rest.d.ts +11 -0
- package/lib/browser/util/scroll-rest.js +47 -0
- package/lib/browser/util/tool-result.d.ts +33 -0
- package/lib/browser/util/tool-result.js +88 -0
- package/lib/browser/util/tool.js +7 -0
- package/package.json +7 -7
|
@@ -3,6 +3,12 @@ import { TaSettings } from '../settings/settings-protocol.js';
|
|
|
3
3
|
import { type ConfirmOptions, type ConfirmRequest, type InputOptions, type InputRequest, type Notice, type NoticeLevel, type NoticeOptions, type NoticesState, TaNotices } from './notices-protocol.js';
|
|
4
4
|
/** Asks the page to open its sign-in to a provider of models: a call failed for want of one. */
|
|
5
5
|
export declare const SIGN_IN_EVENT = "ta:sign-in";
|
|
6
|
+
/** Which build of Ta a page is: its entry module, whose name changes with each build. */
|
|
7
|
+
export declare namespace PageVersionUtil {
|
|
8
|
+
function entry(html: string): string | undefined;
|
|
9
|
+
/** Whether the page served now (`served`, its HTML) is another build than the one loaded (`loaded`, its entry). */
|
|
10
|
+
function outdated(loaded: string | undefined, served: string): boolean;
|
|
11
|
+
}
|
|
6
12
|
type Question = {
|
|
7
13
|
kind: 'confirm';
|
|
8
14
|
request: ConfirmRequest;
|
|
@@ -34,10 +40,23 @@ export declare class TaNoticesImpl implements TaNotices {
|
|
|
34
40
|
protected nextId: number;
|
|
35
41
|
protected readonly questions: Question[];
|
|
36
42
|
protected readonly listeners: Set<(state: NoticesState) => void>;
|
|
43
|
+
protected checking: boolean;
|
|
44
|
+
protected init(): void;
|
|
45
|
+
/**
|
|
46
|
+
* A part loaded on demand did not load: when ta serve now serves another build (Ta was updated while the
|
|
47
|
+
* page stayed open), the page is outdated. Offline is not: the row of the connection says that.
|
|
48
|
+
*/
|
|
49
|
+
protected checkOutdated(): Promise<void>;
|
|
50
|
+
protected loadedEntry(): string | undefined;
|
|
37
51
|
get state(): NoticesState;
|
|
38
52
|
subscribe(listener: (state: NoticesState) => void): () => void;
|
|
39
53
|
notify(text: string, options?: NoticeOptions): number;
|
|
40
54
|
error(cause: unknown, options?: Omit<NoticeOptions, 'level'>): number;
|
|
55
|
+
/**
|
|
56
|
+
* A call of one let into another's Ta that they may not make (docs/design/ta-team.md 6): what it needs, in their words,
|
|
57
|
+
* and a button that asks for it (the package that lets people in hears TA_ACCESS_REQUEST_EVENT).
|
|
58
|
+
*/
|
|
59
|
+
protected forbidden(cause: unknown, options: Omit<NoticeOptions, 'level'>): number;
|
|
41
60
|
/** Not a notice over the page: the row of the connection says that it did not happen, and why. */
|
|
42
61
|
protected notDone(): number;
|
|
43
62
|
dismiss(id: number): void;
|
|
@@ -7,14 +7,31 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Autowired, Component } from '@celljs/core';
|
|
10
|
+
import { Autowired, Component, PostConstruct } from '@celljs/core';
|
|
11
11
|
import { TaRemoteError } from '@celljs/ta-client';
|
|
12
|
-
import { TaErrorCode } from '@celljs/ta-protocol';
|
|
12
|
+
import { TA_ACCESS_REQUEST_EVENT, TaActionUtil, TaErrorCode } from '@celljs/ta-protocol';
|
|
13
13
|
import { message } from '../i18n/messages.js';
|
|
14
14
|
import { TaSettings } from '../settings/settings-protocol.js';
|
|
15
15
|
import { TaNotices, } from './notices-protocol.js';
|
|
16
16
|
/** Asks the page to open its sign-in to a provider of models: a call failed for want of one. */
|
|
17
17
|
export const SIGN_IN_EVENT = 'ta:sign-in';
|
|
18
|
+
/** What the build of the page sends when a part it loads on demand did not load. */
|
|
19
|
+
const PRELOAD_ERROR_EVENT = 'vite:preloadError';
|
|
20
|
+
/** Which build of Ta a page is: its entry module, whose name changes with each build. */
|
|
21
|
+
export var PageVersionUtil;
|
|
22
|
+
(function (PageVersionUtil) {
|
|
23
|
+
function entry(html) {
|
|
24
|
+
var _a;
|
|
25
|
+
return (_a = /<script\b[^>]*\btype="module"[^>]*\bsrc="([^"]+)"/.exec(html)) === null || _a === void 0 ? void 0 : _a[1];
|
|
26
|
+
}
|
|
27
|
+
PageVersionUtil.entry = entry;
|
|
28
|
+
/** Whether the page served now (`served`, its HTML) is another build than the one loaded (`loaded`, its entry). */
|
|
29
|
+
function outdated(loaded, served) {
|
|
30
|
+
const entry = PageVersionUtil.entry(served);
|
|
31
|
+
return !!loaded && !!entry && entry !== loaded;
|
|
32
|
+
}
|
|
33
|
+
PageVersionUtil.outdated = outdated;
|
|
34
|
+
})(PageVersionUtil || (PageVersionUtil = {}));
|
|
18
35
|
/** More than this many notices at once crowd the corner: the oldest that would go anyway go first. */
|
|
19
36
|
const MAX_NOTICES = 4;
|
|
20
37
|
/** How long a notice stays, by level: what asks more of the user stays longer. */
|
|
@@ -55,6 +72,7 @@ export var NoticesUtil;
|
|
|
55
72
|
[TaErrorCode.NOTHING_TO_COMPACT]: 'ta.error.nothingToCompact',
|
|
56
73
|
[TaErrorCode.ALREADY_COMPACTED]: 'ta.error.alreadyCompacted',
|
|
57
74
|
[TaErrorCode.SESSION_BUSY]: 'ta.error.sessionBusy',
|
|
75
|
+
[TaErrorCode.LIMIT]: 'ta.error.limit',
|
|
58
76
|
};
|
|
59
77
|
/** What an error says: its message, and for a failure ta serve names (TaRemoteError) its hint. */
|
|
60
78
|
function describe(cause) {
|
|
@@ -72,6 +90,39 @@ let TaNoticesImpl = class TaNoticesImpl {
|
|
|
72
90
|
this.nextId = 0;
|
|
73
91
|
this.questions = [];
|
|
74
92
|
this.listeners = new Set();
|
|
93
|
+
this.checking = false;
|
|
94
|
+
}
|
|
95
|
+
init() {
|
|
96
|
+
if (typeof window !== 'undefined') {
|
|
97
|
+
window.addEventListener(PRELOAD_ERROR_EVENT, () => void this.checkOutdated());
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* A part loaded on demand did not load: when ta serve now serves another build (Ta was updated while the
|
|
102
|
+
* page stayed open), the page is outdated. Offline is not: the row of the connection says that.
|
|
103
|
+
*/
|
|
104
|
+
async checkOutdated() {
|
|
105
|
+
if (this.current.outdated || this.checking) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
this.checking = true;
|
|
109
|
+
try {
|
|
110
|
+
const response = await fetch(location.href.split('#')[0], { cache: 'no-store' });
|
|
111
|
+
if (response.ok && PageVersionUtil.outdated(this.loadedEntry(), await response.text())) {
|
|
112
|
+
this.update({ outdated: true });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
catch (_a) {
|
|
116
|
+
// Offline.
|
|
117
|
+
}
|
|
118
|
+
finally {
|
|
119
|
+
this.checking = false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
loadedEntry() {
|
|
123
|
+
var _a;
|
|
124
|
+
var _b;
|
|
125
|
+
return (_b = (_a = document.querySelector('script[type="module"][src]')) === null || _a === void 0 ? void 0 : _a.getAttribute('src')) !== null && _b !== void 0 ? _b : undefined;
|
|
75
126
|
}
|
|
76
127
|
get state() {
|
|
77
128
|
return this.current;
|
|
@@ -120,6 +171,9 @@ let TaNoticesImpl = class TaNoticesImpl {
|
|
|
120
171
|
if (TaRemoteError.isConnectionLost(cause)) {
|
|
121
172
|
return this.notDone();
|
|
122
173
|
}
|
|
174
|
+
if (code === TaErrorCode.FORBIDDEN) {
|
|
175
|
+
return this.forbidden(cause, options);
|
|
176
|
+
}
|
|
123
177
|
const known = code ? NoticesUtil.LOCALIZED[code] : undefined;
|
|
124
178
|
if (known) {
|
|
125
179
|
// ta serve speaks English to its clients; the user reads what the error means, its words beneath.
|
|
@@ -128,6 +182,29 @@ let TaNoticesImpl = class TaNoticesImpl {
|
|
|
128
182
|
}
|
|
129
183
|
return this.notify(text, { detail, ...options, level: 'error' });
|
|
130
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* A call of one let into another's Ta that they may not make (docs/design/ta-team.md 6): what it needs, in their words,
|
|
187
|
+
* and a button that asks for it (the package that lets people in hears TA_ACCESS_REQUEST_EVENT).
|
|
188
|
+
*/
|
|
189
|
+
forbidden(cause, options) {
|
|
190
|
+
const language = this.settings.state.language;
|
|
191
|
+
const data = cause === null || cause === void 0 ? void 0 : cause.data;
|
|
192
|
+
const action = typeof (data === null || data === void 0 ? void 0 : data.action) === 'string' ? data.action : '';
|
|
193
|
+
const denial = { action, ...((data === null || data === void 0 ? void 0 : data.resource) ? { resource: data.resource } : {}) };
|
|
194
|
+
const askable = (data === null || data === void 0 ? void 0 : data.askable) !== false && !!TaActionUtil.info(action);
|
|
195
|
+
return this.notify(message(language, 'ta.error.forbidden').replace('{action}', TaActionUtil.title(action, language)), {
|
|
196
|
+
...options,
|
|
197
|
+
level: 'warning',
|
|
198
|
+
detail: message(language, askable ? 'ta.error.forbiddenHint' : 'ta.error.forbiddenNever'),
|
|
199
|
+
key: `forbidden:${action}`,
|
|
200
|
+
action: askable
|
|
201
|
+
? {
|
|
202
|
+
label: message(language, 'ta.error.forbiddenAsk'),
|
|
203
|
+
run: () => window.dispatchEvent(new CustomEvent(TA_ACCESS_REQUEST_EVENT, { detail: denial })),
|
|
204
|
+
}
|
|
205
|
+
: undefined,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
131
208
|
/** Not a notice over the page: the row of the connection says that it did not happen, and why. */
|
|
132
209
|
notDone() {
|
|
133
210
|
this.update({ notDoneAt: Date.now() });
|
|
@@ -184,6 +261,12 @@ __decorate([
|
|
|
184
261
|
Autowired(TaSettings),
|
|
185
262
|
__metadata("design:type", Object)
|
|
186
263
|
], TaNoticesImpl.prototype, "settings", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
PostConstruct(),
|
|
266
|
+
__metadata("design:type", Function),
|
|
267
|
+
__metadata("design:paramtypes", []),
|
|
268
|
+
__metadata("design:returntype", void 0)
|
|
269
|
+
], TaNoticesImpl.prototype, "init", null);
|
|
187
270
|
TaNoticesImpl = __decorate([
|
|
188
271
|
Component(TaNotices)
|
|
189
272
|
], TaNoticesImpl);
|
|
@@ -47,9 +47,10 @@ export declare namespace SessionNoticeUtil {
|
|
|
47
47
|
* How to tell of it: not of what the user looks at, nor of a task the double tells of unless it asks; a
|
|
48
48
|
* banner while the user is on the page; a notice of the system while not, if there are any; else a banner
|
|
49
49
|
* that waits for them, only when it asks or failed (an answer the lists mark unread anyway). On a phone or a
|
|
50
|
-
* tablet never a banner: the unread of the list and its tab tell, a notice of the system while away.
|
|
50
|
+
* tablet never a banner: the unread of the list and its tab tell, a notice of the system while away. News of an
|
|
51
|
+
* extension with a view of its own only as a notice of the system while away.
|
|
51
52
|
*/
|
|
52
|
-
function way(notice: Pick<WebSessionNotice, 'level'>, scene: SessionNoticeScene): SessionNoticeWay;
|
|
53
|
+
function way(notice: Pick<WebSessionNotice, 'level' | 'view'>, scene: SessionNoticeScene): SessionNoticeWay;
|
|
53
54
|
function level(notice: Pick<WebSessionNotice, 'level'>): NoticeLevel;
|
|
54
55
|
/** The banners of one conversation take each other's place. */
|
|
55
56
|
function bannerKey(notice: Pick<WebSessionNotice, 'key' | 'sessionId' | 'sessionFile'>): string;
|
|
@@ -65,5 +66,7 @@ export declare class SessionNotices implements TaSessionNotices {
|
|
|
65
66
|
protected readonly told: Set<string>;
|
|
66
67
|
constructor(host: SessionNoticeHost);
|
|
67
68
|
notify(notice: WebSessionNotice): SessionNoticeWay;
|
|
69
|
+
/** Shows what a notice is of: its conversation, or the view of the extension that told it. */
|
|
70
|
+
open(notice: WebSessionNotice): Promise<void>;
|
|
68
71
|
protected actions(notice: WebSessionNotice): NoticeAction[];
|
|
69
72
|
}
|
|
@@ -7,9 +7,14 @@ export var SessionNoticeUtil;
|
|
|
7
7
|
* How to tell of it: not of what the user looks at, nor of a task the double tells of unless it asks; a
|
|
8
8
|
* banner while the user is on the page; a notice of the system while not, if there are any; else a banner
|
|
9
9
|
* that waits for them, only when it asks or failed (an answer the lists mark unread anyway). On a phone or a
|
|
10
|
-
* tablet never a banner: the unread of the list and its tab tell, a notice of the system while away.
|
|
10
|
+
* tablet never a banner: the unread of the list and its tab tell, a notice of the system while away. News of an
|
|
11
|
+
* extension with a view of its own only as a notice of the system while away.
|
|
11
12
|
*/
|
|
12
13
|
function way(notice, scene) {
|
|
14
|
+
// News of an extension that is no conversation's: the extension shows it on the page.
|
|
15
|
+
if (notice.view) {
|
|
16
|
+
return !scene.focused && scene.system ? 'system' : 'none';
|
|
17
|
+
}
|
|
13
18
|
if (scene.task && notice.level !== 'ask') {
|
|
14
19
|
return 'none';
|
|
15
20
|
}
|
|
@@ -80,6 +85,10 @@ export class SessionNotices {
|
|
|
80
85
|
}
|
|
81
86
|
return way;
|
|
82
87
|
}
|
|
88
|
+
/** Shows what a notice is of: its conversation, or the view of the extension that told it. */
|
|
89
|
+
open(notice) {
|
|
90
|
+
return this.host.open(notice).catch(error => void this.host.notices.error(error));
|
|
91
|
+
}
|
|
83
92
|
actions(notice) {
|
|
84
93
|
var _a, _b;
|
|
85
94
|
const answers = ((_a = notice.options) !== null && _a !== void 0 ? _a : []).map((option, index) => ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Tokens of the theme, controls, levels. */
|
|
2
|
-
export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: 34px; width: 34px; }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n.ta-input, .ta-field { width: 100%; height: 36px; border: 1px solid var(--ta-border-field); background: var(--ta-input); border-radius: 8px; padding: 0 10px; outline: none; transition: border-color 120ms; }\n.ta-field { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); }\n.ta-field-small { height: 34px; }\n.ta-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-input:focus, .ta-field:focus-within { border-color: var(--ta-border-focus); }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-opening { display: inline-flex; align-items: center; gap: 6px; animation: ta-busy-in 140ms 240ms both; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n.ta-empty-hint { max-width: 260px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n\n";
|
|
2
|
+
export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: 34px; width: 34px; }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n.ta-input, .ta-field { width: 100%; height: 36px; border: 1px solid var(--ta-border-field); background: var(--ta-input); border-radius: 8px; padding: 0 10px; outline: none; transition: border-color 120ms; }\n.ta-field { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); }\n.ta-field-small { height: 34px; }\n.ta-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-input:focus, .ta-field:focus-within { border-color: var(--ta-border-focus); }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-opening { display: inline-flex; align-items: center; gap: 6px; animation: ta-busy-in 140ms 240ms both; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n\n";
|
|
@@ -180,7 +180,8 @@ a { color: var(--ta-link); text-decoration: none; }
|
|
|
180
180
|
.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }
|
|
181
181
|
.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
182
182
|
.ta-empty-title + .ta-empty-hint { margin-top: -4px; }
|
|
183
|
-
|
|
183
|
+
/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */
|
|
184
|
+
.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
184
185
|
.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }
|
|
185
186
|
.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }
|
|
186
187
|
.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** A conversation: the console session, Markdown, tools, dialogs. */
|
|
2
|
-
export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; animation: ta-busy-in 160ms 160ms both; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n.ta-media-missing { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); vertical-align: middle; }\n/* A picture that zooms (image-viewer.tsx): what scrolls is the box; the picture sits in it where ImageZoom puts it. */\n.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n.ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* A running dot breathes, like the light of a sleeping laptop: it works, it is not stuck. */\n.ta-status-running::before { background: var(--ta-blue); animation: ta-breathe 1.8s ease-in-out infinite; }\n@keyframes ta-breathe {\n 0%, 100% { transform: scale(0.8); opacity: 0.45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-blue) 0%, transparent); }\n 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-blue) 22%, transparent); }\n}\n.ta-status-thought::before { background: var(--ta-border-field); }\n.ta-diff { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 8px; overflow: auto; max-height: 400px; background: var(--ta-code); line-height: 1.6; }\n.ta-diff-line { display: grid; grid-template-columns: 42px 16px 1fr; white-space: pre; }\n.ta-diff-number { color: var(--ta-muted); text-align: right; padding-right: 8px; user-select: none; opacity: 0.7; }\n.ta-diff-sign { color: var(--ta-muted); user-select: none; }\n.ta-diff-add { background: var(--ta-add); }\n.ta-diff-add .ta-diff-sign { color: var(--ta-green); }\n.ta-diff-remove { background: var(--ta-remove); }\n.ta-diff-remove .ta-diff-sign { color: var(--ta-red); }\n.ta-diff-gap { color: var(--ta-muted); }\n.ta-add { color: var(--ta-green); }\n.ta-remove { color: var(--ta-red); }\n\n/* Dialogs */\n.ta-dialog { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ta-shadow-composer); }\n.ta-dialog-title { font-weight: 600; }\n.ta-dialog-message { margin: 0; white-space: pre-wrap; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }\n.ta-dialog-options { display: flex; flex-direction: column; gap: 4px; }\n.ta-option { text-align: left; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; transition: background 120ms; }\n.ta-option:hover, .ta-option:focus { background: var(--ta-hover); outline: none; }\n\n@keyframes ta-spin { to { transform: rotate(360deg); } }\n@keyframes ta-shimmer { to { background-position: -200% 0; } }\n@keyframes ta-pulse { 50% { opacity: 0.3; } }\n@keyframes ta-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }\n@keyframes ta-dino-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }\n@keyframes ta-dino-pop { from { transform: scale(0.4); opacity: 0; } }\n@keyframes ta-in { from { transform: translateY(4px); opacity: 0; } }\n@keyframes ta-fade { from { opacity: 0; } }\n@keyframes ta-slide { from { transform: translateX(24px); opacity: 0; } }\n@keyframes ta-up { from { transform: translateY(100%); } }\n/* Not inside a diagram being drawn: Mermaid lays a flowchart out wrong when its elements have a transition. */\n:root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }\n .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-connection-when { display: none; }\n .ta-app:has(.ta-connection:not(.ta-connection-leaving)) .ta-toasts { top: calc(100px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-narrow-only { display: inline-grid !important; }\n .ta-wide-only { display: none !important; }\n header.ta-narrow-only { display: flex !important; }\n .ta-nav { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ta-ease); box-shadow: var(--ta-shadow-pop); }\n .ta-nav-open .ta-nav { transform: none; }\n .ta-sidebar { width: min(280px, calc(88vw - 56px)); }\n .ta-scrim { display: block; position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; background: rgba(0, 0, 0, 0.35); animation: ta-fade 160ms; }\n .ta-main-head { height: calc(52px + env(safe-area-inset-top)); padding: 0 6px; padding-top: env(safe-area-inset-top); }\n .ta-chat-col { padding: 0 14px; }\n .ta-msg-bubble, .ta-bubble, .ta-skill-use { max-width: 88%; }\n .ta-close { opacity: 1; }\n .ta-session-header { padding: 8px 14px; flex-wrap: wrap; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
|
|
2
|
+
export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* A row of its own, not above a reply. */\n.ta-resume-break { margin-bottom: 0; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (layout.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n.ta-compaction-summary { align-self: stretch; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; animation: ta-busy-in 160ms 160ms both; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n.ta-media-missing { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); vertical-align: middle; }\n/* A picture that zooms (image-viewer.tsx): what scrolls is the box; the picture sits in it where ImageZoom puts it. */\n.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n.ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* A running dot breathes, like the light of a sleeping laptop: it works, it is not stuck. */\n.ta-status-running::before { background: var(--ta-blue); animation: ta-breathe 1.8s ease-in-out infinite; }\n@keyframes ta-breathe {\n 0%, 100% { transform: scale(0.8); opacity: 0.45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-blue) 0%, transparent); }\n 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-blue) 22%, transparent); }\n}\n.ta-status-thought::before { background: var(--ta-border-field); }\n.ta-diff { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 8px; overflow: auto; max-height: 400px; background: var(--ta-code); line-height: 1.6; }\n.ta-diff-line { display: grid; grid-template-columns: 42px 16px 1fr; white-space: pre; }\n.ta-diff-number { color: var(--ta-muted); text-align: right; padding-right: 8px; user-select: none; opacity: 0.7; }\n.ta-diff-sign { color: var(--ta-muted); user-select: none; }\n.ta-diff-add { background: var(--ta-add); }\n.ta-diff-add .ta-diff-sign { color: var(--ta-green); }\n.ta-diff-remove { background: var(--ta-remove); }\n.ta-diff-remove .ta-diff-sign { color: var(--ta-red); }\n.ta-diff-gap { color: var(--ta-muted); }\n.ta-add { color: var(--ta-green); }\n.ta-remove { color: var(--ta-red); }\n\n/* Dialogs */\n.ta-dialog { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ta-shadow-composer); }\n.ta-dialog-title { font-weight: 600; }\n.ta-dialog-message { margin: 0; white-space: pre-wrap; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }\n.ta-dialog-options { display: flex; flex-direction: column; gap: 4px; }\n.ta-option { text-align: left; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; transition: background 120ms; }\n.ta-option:hover, .ta-option:focus { background: var(--ta-hover); outline: none; }\n\n@keyframes ta-spin { to { transform: rotate(360deg); } }\n@keyframes ta-shimmer { to { background-position: -200% 0; } }\n@keyframes ta-pulse { 50% { opacity: 0.3; } }\n@keyframes ta-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }\n@keyframes ta-dino-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }\n@keyframes ta-dino-pop { from { transform: scale(0.4); opacity: 0; } }\n@keyframes ta-in { from { transform: translateY(4px); opacity: 0; } }\n@keyframes ta-fade { from { opacity: 0; } }\n@keyframes ta-slide { from { transform: translateX(24px); opacity: 0; } }\n@keyframes ta-up { from { transform: translateY(100%); } }\n/* Not inside a diagram being drawn: Mermaid lays a flowchart out wrong when its elements have a transition. */\n:root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }\n .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-connection-when { display: none; }\n .ta-app:has(.ta-connection:not(.ta-connection-leaving)) .ta-toasts { top: calc(100px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-narrow-only { display: inline-grid !important; }\n .ta-wide-only { display: none !important; }\n header.ta-narrow-only { display: flex !important; }\n .ta-nav { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ta-ease); box-shadow: var(--ta-shadow-pop); }\n .ta-nav-open .ta-nav { transform: none; }\n .ta-sidebar { width: min(280px, calc(88vw - 56px)); }\n .ta-scrim { display: block; position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; background: rgba(0, 0, 0, 0.35); animation: ta-fade 160ms; }\n .ta-main-head { height: calc(52px + env(safe-area-inset-top)); padding: 0 6px; padding-top: env(safe-area-inset-top); }\n .ta-chat-col { padding: 0 14px; }\n .ta-msg-bubble, .ta-bubble, .ta-skill-use { max-width: 88%; }\n .ta-close { opacity: 1; }\n .ta-session-header { padding: 8px 14px; flex-wrap: wrap; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
|
|
@@ -53,6 +53,35 @@ export const CONVERSATION_STYLE = `
|
|
|
53
53
|
/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */
|
|
54
54
|
.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }
|
|
55
55
|
.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }
|
|
56
|
+
/* A row of its own, not above a reply. */
|
|
57
|
+
.ta-resume-break { margin-bottom: 0; }
|
|
58
|
+
/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */
|
|
59
|
+
.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }
|
|
60
|
+
.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }
|
|
61
|
+
.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }
|
|
62
|
+
.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }
|
|
63
|
+
.ta-origin-detail::before { content: '·'; margin-right: 4px; }
|
|
64
|
+
/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */
|
|
65
|
+
.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }
|
|
66
|
+
/* On the string as the other dots (layout.ts), on the middle of the line of its head. */
|
|
67
|
+
.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }
|
|
68
|
+
.ta-status.ta-status-said::before { background: var(--ta-blue); }
|
|
69
|
+
.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }
|
|
70
|
+
.ta-said-head > .ta-origin { margin-left: 4px; }
|
|
71
|
+
.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
|
|
72
|
+
/* Folded, the words said on the way stay under the head, on a string of their own. */
|
|
73
|
+
.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }
|
|
74
|
+
/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */
|
|
75
|
+
.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }
|
|
76
|
+
/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */
|
|
77
|
+
.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }
|
|
78
|
+
.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }
|
|
79
|
+
.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }
|
|
80
|
+
.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }
|
|
81
|
+
.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }
|
|
82
|
+
.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }
|
|
83
|
+
.ta-compaction-mark[aria-expanded="true"] .ta-compaction-chevron { transform: rotate(90deg); }
|
|
84
|
+
.ta-compaction-summary { align-self: stretch; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }
|
|
56
85
|
.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }
|
|
57
86
|
.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }
|
|
58
87
|
.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }
|
|
@@ -154,6 +183,7 @@ export const CONVERSATION_STYLE = `
|
|
|
154
183
|
div.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }
|
|
155
184
|
.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }
|
|
156
185
|
.ta-mermaid-diagram svg { max-width: 100%; height: auto; }
|
|
186
|
+
.ta-mermaid-room { width: 100%; }
|
|
157
187
|
.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }
|
|
158
188
|
.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }
|
|
159
189
|
.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }
|
|
@@ -232,6 +262,27 @@ button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(
|
|
|
232
262
|
.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }
|
|
233
263
|
.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }
|
|
234
264
|
.ta-error { color: var(--ta-red) !important; }
|
|
265
|
+
/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */
|
|
266
|
+
.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }
|
|
267
|
+
.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
268
|
+
.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }
|
|
269
|
+
.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
270
|
+
.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }
|
|
271
|
+
.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }
|
|
272
|
+
.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }
|
|
273
|
+
.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }
|
|
274
|
+
.ta-result-block { min-width: 0; }
|
|
275
|
+
.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }
|
|
276
|
+
.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
|
|
277
|
+
.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }
|
|
278
|
+
.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
279
|
+
.ta-result-stderr pre { color: var(--ta-muted); }
|
|
280
|
+
.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }
|
|
281
|
+
.ta-result-empty { color: var(--ta-muted); }
|
|
282
|
+
.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }
|
|
283
|
+
.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }
|
|
284
|
+
/* A command reads whole, wrapped, as the line above shows only its start. */
|
|
285
|
+
.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
235
286
|
.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }
|
|
236
287
|
.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }
|
|
237
288
|
.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }
|
|
@@ -203,5 +203,8 @@ export const DEVICE_STYLE = `
|
|
|
203
203
|
.ta-bottom { position: relative; }
|
|
204
204
|
.ta-to-bottom { position: absolute; left: 50%; top: -46px; z-index: 5; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: var(--ta-raised); color: var(--ta-secondary); box-shadow: var(--ta-shadow-pop); transform: translateX(-50%); animation: ta-fade 160ms; }
|
|
205
205
|
.ta-to-bottom:hover { color: var(--ta-text); }
|
|
206
|
+
/* The way down to a choice that waits for the user: a pill with the ? of the list. */
|
|
207
|
+
.ta-to-bottom.ta-to-ask { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 32px; top: -42px; padding: 0 12px 0 6px; border-radius: 16px; border-color: color-mix(in srgb, var(--ta-blue) 45%, var(--ta-border)); color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-text)); font-size: calc(13px * var(--ta-font-scale)); white-space: nowrap; }
|
|
208
|
+
.ta-to-ask-mark { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ta-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
|
|
206
209
|
`;
|
|
207
210
|
//# sourceMappingURL=device.js.map
|