@celljs/ta-web 4.12.0 → 4.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CircleAlert, CircleCheck, RotateCw, WifiOff } from 'lucide-react';
|
|
1
|
+
import { CircleAlert, CircleArrowUp, CircleCheck, RotateCw, WifiOff } from 'lucide-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useDevice } from '../device/device.js';
|
|
4
4
|
import { useNotices, useWorkbench } from '../hooks.js';
|
|
@@ -79,7 +79,7 @@ function usePressed() {
|
|
|
79
79
|
function useConnectionNotice() {
|
|
80
80
|
const t = useT();
|
|
81
81
|
const [{ offlineShown, error, retryAt, status }, workbench] = useWorkbench();
|
|
82
|
-
const [{ notDoneAt }] = useNotices();
|
|
82
|
+
const [{ notDoneAt, outdated }] = useNotices();
|
|
83
83
|
// Something the user did did not happen: no notice over the page, this row says it. Offline, it shows at once.
|
|
84
84
|
const notDone = useRecent(notDoneAt, NOT_DONE_MS);
|
|
85
85
|
const online = status === 'online';
|
|
@@ -91,6 +91,8 @@ function useConnectionNotice() {
|
|
|
91
91
|
const brief = error === 'away' ? t('ta.connection.awayBrief') : error === 'unreachable' ? t('ta.connection.unreachableBrief') : t('ta.connection.lost');
|
|
92
92
|
return {
|
|
93
93
|
phase,
|
|
94
|
+
// Below what the connection says: an outdated page reloads once it can.
|
|
95
|
+
outdated: !!outdated && phase === 'none',
|
|
94
96
|
back: phase === 'back' || phase === 'leaving',
|
|
95
97
|
notDone: phase === 'notDone',
|
|
96
98
|
text,
|
|
@@ -130,18 +132,30 @@ function useWidth(body, content) {
|
|
|
130
132
|
*/
|
|
131
133
|
export function ConnectionBar() {
|
|
132
134
|
const t = useT();
|
|
133
|
-
const { phase, back, notDone, text, seconds, trying, retry } = useConnectionNotice();
|
|
135
|
+
const { phase, outdated, back, notDone, text, seconds, trying, retry } = useConnectionNotice();
|
|
134
136
|
const body = React.useRef(null);
|
|
135
|
-
const shown = phase === 'none' ? undefined : notDone ? 'notDone' : back ? 'back' : 'offline';
|
|
137
|
+
const shown = outdated ? 'outdated' : phase === 'none' ? undefined : notDone ? 'notDone' : back ? 'back' : 'offline';
|
|
136
138
|
const width = useWidth(body, shown);
|
|
137
|
-
if (
|
|
139
|
+
if (shown === undefined) {
|
|
138
140
|
return null;
|
|
139
141
|
}
|
|
140
|
-
const classes = [
|
|
142
|
+
const classes = [
|
|
143
|
+
'ta-connection',
|
|
144
|
+
back && 'ta-connection-back',
|
|
145
|
+
notDone && 'ta-connection-notdone',
|
|
146
|
+
outdated && 'ta-connection-outdated',
|
|
147
|
+
phase === 'leaving' && 'ta-connection-leaving',
|
|
148
|
+
];
|
|
141
149
|
// The border of the bar is around the body.
|
|
142
150
|
const style = width === undefined ? undefined : { width: width + 2 };
|
|
143
151
|
return (React.createElement("div", { className: classes.filter(Boolean).join(' '), role: "status", style: style },
|
|
144
|
-
React.createElement("div", { className: "ta-connection-body", ref: body, key: shown },
|
|
152
|
+
React.createElement("div", { className: "ta-connection-body", ref: body, key: shown }, outdated ? (React.createElement(React.Fragment, null,
|
|
153
|
+
React.createElement(Icon, { icon: CircleArrowUp, size: 15, className: "ta-level-icon" }),
|
|
154
|
+
React.createElement("span", { className: "ta-connection-text" }, t('ta.connection.outdated')),
|
|
155
|
+
React.createElement("button", { type: "button", className: "ta-connection-retry", onClick: () => location.reload() },
|
|
156
|
+
React.createElement(Icon, { icon: RotateCw, size: 13 }),
|
|
157
|
+
" ",
|
|
158
|
+
t('ta.connection.reload')))) : notDone ? (React.createElement(React.Fragment, null,
|
|
145
159
|
React.createElement(Icon, { icon: CircleAlert, size: 15, className: "ta-level-icon" }),
|
|
146
160
|
React.createElement("span", { className: "ta-connection-text" }, t('ta.connection.notDone')))) : back ? (React.createElement(React.Fragment, null,
|
|
147
161
|
React.createElement(Icon, { icon: CircleCheck, size: 15, className: "ta-level-icon" }),
|
|
@@ -162,20 +176,25 @@ export function ConnectionBar() {
|
|
|
162
176
|
export function ConnectionBanner() {
|
|
163
177
|
const t = useT();
|
|
164
178
|
const handheld = useDevice(device => device.handheld);
|
|
165
|
-
const { phase, back, notDone, text, brief, trying, retry } = useConnectionNotice();
|
|
179
|
+
const { phase, outdated, back, notDone, text, brief, trying, retry } = useConnectionNotice();
|
|
166
180
|
if (!handheld) {
|
|
167
181
|
return null;
|
|
168
182
|
}
|
|
169
|
-
const open = phase === 'offline' || phase === 'back' || notDone;
|
|
183
|
+
const open = phase === 'offline' || phase === 'back' || notDone || outdated;
|
|
170
184
|
const quiet = back || notDone;
|
|
171
|
-
const classes = ['ta-connection-banner', open && 'ta-open', back && 'ta-connection-back'];
|
|
185
|
+
const classes = ['ta-connection-banner', open && 'ta-open', back && 'ta-connection-back', outdated && 'ta-connection-outdated'];
|
|
172
186
|
// Always there, empty while closed, so that it opens with a transition.
|
|
173
187
|
return (React.createElement("div", { className: classes.filter(Boolean).join(' '), role: "status", "aria-hidden": !open },
|
|
174
|
-
React.createElement("div", { className: "ta-connection-banner-inner" },
|
|
188
|
+
React.createElement("div", { className: "ta-connection-banner-inner" }, outdated ? (React.createElement("button", { type: "button", className: "ta-connection-banner-row", onClick: () => location.reload() },
|
|
189
|
+
React.createElement(Icon, { icon: CircleArrowUp, size: 16, className: "ta-level-icon" }),
|
|
190
|
+
React.createElement("span", { className: "ta-connection-banner-text" }, t('ta.connection.outdated')),
|
|
191
|
+
React.createElement("span", { className: "ta-connection-banner-action" },
|
|
192
|
+
React.createElement(Icon, { icon: RotateCw, size: 14 }),
|
|
193
|
+
t('ta.connection.reload')))) : (phase !== 'none' && (React.createElement("button", { type: "button", className: "ta-connection-banner-row", disabled: quiet || trying, tabIndex: open ? undefined : -1, title: quiet ? undefined : text, onClick: retry },
|
|
175
194
|
React.createElement(Icon, { icon: notDone ? CircleAlert : back ? CircleCheck : WifiOff, size: 16, className: "ta-level-icon" }),
|
|
176
195
|
React.createElement("span", { className: "ta-connection-banner-text" }, notDone ? t('ta.connection.notDone') : back ? t('ta.connection.back') : brief),
|
|
177
196
|
!quiet && (React.createElement("span", { className: "ta-connection-banner-action" },
|
|
178
197
|
trying ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(Icon, { icon: RotateCw, size: 14 }),
|
|
179
|
-
trying ? t('ta.connection.retrying') : t('ta.connection.retry'))))))));
|
|
198
|
+
trying ? t('ta.connection.retrying') : t('ta.connection.retry')))))))));
|
|
180
199
|
}
|
|
181
200
|
//# sourceMappingURL=connection-bar.js.map
|
|
@@ -13,6 +13,11 @@ export interface ScrollRow {
|
|
|
13
13
|
export declare namespace ScrollUtil {
|
|
14
14
|
/** The first of `rows` (in order, as laid out) in a view scrolled to `top`; past what says earlier rows load. */
|
|
15
15
|
function firstRow(rows: ArrayLike<ScrollRow>, top: number): ScrollRow | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The row read in a view scrolled to `top`, `height` high: the first that starts in it, which keeps its place as
|
|
18
|
+
* the row above it (only partly in sight) grows or shrinks; else the one over all of the view (firstRow).
|
|
19
|
+
*/
|
|
20
|
+
function readRow(rows: ArrayLike<ScrollRow>, top: number, height: number): ScrollRow | undefined;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
* A view gliding where it goes rather than jumping there: each frame it goes the share of the way left it would
|
|
@@ -18,6 +18,24 @@ export var ScrollUtil;
|
|
|
18
18
|
return ((_b = (_a = rows[low]) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.scrollSkip) !== undefined && low + 1 < rows.length ? rows[low + 1] : rows[low];
|
|
19
19
|
}
|
|
20
20
|
ScrollUtil.firstRow = firstRow;
|
|
21
|
+
/**
|
|
22
|
+
* The row read in a view scrolled to `top`, `height` high: the first that starts in it, which keeps its place as
|
|
23
|
+
* the row above it (only partly in sight) grows or shrinks; else the one over all of the view (firstRow).
|
|
24
|
+
*/
|
|
25
|
+
function readRow(rows, top, height) {
|
|
26
|
+
const first = firstRow(rows, top);
|
|
27
|
+
if (!first || first.offsetTop >= top) {
|
|
28
|
+
return first;
|
|
29
|
+
}
|
|
30
|
+
for (let index = 0; index < rows.length; index++) {
|
|
31
|
+
if (rows[index] === first) {
|
|
32
|
+
const next = rows[index + 1];
|
|
33
|
+
return next && next.offsetTop < top + height ? next : first;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return first;
|
|
37
|
+
}
|
|
38
|
+
ScrollUtil.readRow = readRow;
|
|
21
39
|
})(ScrollUtil || (ScrollUtil = {}));
|
|
22
40
|
/**
|
|
23
41
|
* A view gliding where it goes rather than jumping there: each frame it goes the share of the way left it would
|
|
@@ -82,7 +82,7 @@ export declare class ConversationScroller {
|
|
|
82
82
|
/** When the user last moved the view by hand (HAND_MS). */
|
|
83
83
|
private handAt;
|
|
84
84
|
private touchY;
|
|
85
|
-
/**
|
|
85
|
+
/** What the user reads while the view does not follow (ScrollAnchor). */
|
|
86
86
|
private anchor;
|
|
87
87
|
/** What the user just opened or closed, and how far it was below the top of the view. */
|
|
88
88
|
private toggled;
|
|
@@ -151,8 +151,18 @@ export declare class ConversationScroller {
|
|
|
151
151
|
private see;
|
|
152
152
|
private toBottomNow;
|
|
153
153
|
private moveTo;
|
|
154
|
-
/**
|
|
154
|
+
/** What the user reads, while the view does not follow (ScrollAnchor). */
|
|
155
155
|
private remember;
|
|
156
|
+
/** Where the anchor is now, from the top of the thread; undefined once it is gone. */
|
|
157
|
+
private anchorAt;
|
|
158
|
+
/**
|
|
159
|
+
* What moved above the anchor before the view heard of it, kept out of sight. The scroll of a frame comes before
|
|
160
|
+
* the observer of sizes: rows drawn in front of the view meanwhile (earlier messages, a diagram drawn) would
|
|
161
|
+
* else be taken as where the user is, and what they read would go down by all of them.
|
|
162
|
+
*/
|
|
163
|
+
private keepAnchor;
|
|
164
|
+
/** The first part of `row` (a row begun above the view) that starts in the view, as deep as it takes to find one. */
|
|
165
|
+
private partIn;
|
|
156
166
|
private offsetOf;
|
|
157
167
|
/** Whether what `element` opened goes on past the bottom of the view. */
|
|
158
168
|
private past;
|
|
@@ -24,6 +24,8 @@ const TOGGLE = '[aria-expanded], summary';
|
|
|
24
24
|
* follow its answer.
|
|
25
25
|
*/
|
|
26
26
|
const SCROLL_END_MS = 150;
|
|
27
|
+
/** How deep in a row taller than the view its part read is looked for. */
|
|
28
|
+
const PART_DEPTH = 8;
|
|
27
29
|
/** At most this share of the view is left to glide: more coming at once (a block, what came while away) jumps the rest. */
|
|
28
30
|
const GLIDE_MAX = 0.5;
|
|
29
31
|
function hasScrollEnd() {
|
|
@@ -237,6 +239,7 @@ export class ConversationScroller {
|
|
|
237
239
|
}
|
|
238
240
|
scrolled() {
|
|
239
241
|
const { view } = this;
|
|
242
|
+
this.keepAnchor();
|
|
240
243
|
const top = view.scrollTop;
|
|
241
244
|
const moved = top - this.top;
|
|
242
245
|
this.top = top;
|
|
@@ -381,8 +384,8 @@ export class ConversationScroller {
|
|
|
381
384
|
}
|
|
382
385
|
// The row read where it was, the bottom of the view kept to the message box. From the row rather than the
|
|
383
386
|
// view: the browser may have pulled the view up meanwhile, the thread shorter than where it was.
|
|
384
|
-
const
|
|
385
|
-
this.moveTo((
|
|
387
|
+
const at = this.anchor && this.anchorAt(this.anchor);
|
|
388
|
+
this.moveTo((at === undefined ? this.top : at - this.anchor.offset) + shrunk);
|
|
386
389
|
this.remember();
|
|
387
390
|
}
|
|
388
391
|
/**
|
|
@@ -510,15 +513,75 @@ export class ConversationScroller {
|
|
|
510
513
|
}
|
|
511
514
|
this.top = view.scrollTop;
|
|
512
515
|
}
|
|
513
|
-
/**
|
|
516
|
+
/** What the user reads, while the view does not follow (ScrollAnchor). */
|
|
514
517
|
remember() {
|
|
515
518
|
if (this.following) {
|
|
516
519
|
this.anchor = undefined;
|
|
517
520
|
this.see();
|
|
518
521
|
return;
|
|
519
522
|
}
|
|
520
|
-
const
|
|
521
|
-
|
|
523
|
+
const { view } = this;
|
|
524
|
+
const top = view.scrollTop;
|
|
525
|
+
const row = ScrollUtil.readRow(this.thread.children, top, view.clientHeight);
|
|
526
|
+
if (!row) {
|
|
527
|
+
this.anchor = undefined;
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
// A row taller than the view, begun above it: what of it starts in the view keeps its place, so that what
|
|
531
|
+
// grows in the part of the row above it (a diagram drawn, a part laid out) does not move what is read.
|
|
532
|
+
const part = row.offsetTop < top && isElement(row) ? this.partIn(row) : undefined;
|
|
533
|
+
const at = part ? top + this.offsetOf(part) : row.offsetTop;
|
|
534
|
+
this.anchor = { row, part, offset: at - top, at };
|
|
535
|
+
}
|
|
536
|
+
/** Where the anchor is now, from the top of the thread; undefined once it is gone. */
|
|
537
|
+
anchorAt(anchor) {
|
|
538
|
+
var _a;
|
|
539
|
+
if (((_a = anchor.part) === null || _a === void 0 ? void 0 : _a.isConnected) && anchor.row.isConnected) {
|
|
540
|
+
return this.view.scrollTop + this.offsetOf(anchor.part);
|
|
541
|
+
}
|
|
542
|
+
return anchor.row.isConnected ? anchor.row.offsetTop : undefined;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* What moved above the anchor before the view heard of it, kept out of sight. The scroll of a frame comes before
|
|
546
|
+
* the observer of sizes: rows drawn in front of the view meanwhile (earlier messages, a diagram drawn) would
|
|
547
|
+
* else be taken as where the user is, and what they read would go down by all of them.
|
|
548
|
+
*/
|
|
549
|
+
keepAnchor() {
|
|
550
|
+
const anchor = this.anchor;
|
|
551
|
+
if (this.following || !anchor || this.toggled || this.heading !== undefined) {
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
const at = this.anchorAt(anchor);
|
|
555
|
+
const drift = at === undefined ? 0 : at - anchor.at;
|
|
556
|
+
if (Math.abs(drift) >= 1) {
|
|
557
|
+
this.view.scrollTop += drift;
|
|
558
|
+
this.top += drift;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
/** The first part of `row` (a row begun above the view) that starts in the view, as deep as it takes to find one. */
|
|
562
|
+
partIn(row) {
|
|
563
|
+
const top = this.view.getBoundingClientRect().top;
|
|
564
|
+
const bottom = top + this.view.clientHeight;
|
|
565
|
+
let node = row;
|
|
566
|
+
for (let depth = 0; depth < PART_DEPTH; depth++) {
|
|
567
|
+
let inside;
|
|
568
|
+
for (const child of node.children) {
|
|
569
|
+
const box = child.getBoundingClientRect();
|
|
570
|
+
if (box.bottom <= top || box.height === 0) {
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
if (box.top >= top) {
|
|
574
|
+
return box.top < bottom ? child : undefined;
|
|
575
|
+
}
|
|
576
|
+
inside = child;
|
|
577
|
+
break;
|
|
578
|
+
}
|
|
579
|
+
if (!inside) {
|
|
580
|
+
return undefined;
|
|
581
|
+
}
|
|
582
|
+
node = inside;
|
|
583
|
+
}
|
|
584
|
+
return undefined;
|
|
522
585
|
}
|
|
523
586
|
offsetOf(element) {
|
|
524
587
|
return element.getBoundingClientRect().top - this.view.getBoundingClientRect().top;
|
|
@@ -27,12 +27,16 @@ export function DiscoverView({ pages, onOpenPages, onOpen, onPin, onSettings, on
|
|
|
27
27
|
pages.map(page => {
|
|
28
28
|
var _a;
|
|
29
29
|
const title = WebLabelUtil.text(page.title);
|
|
30
|
+
const Mark = page.mark;
|
|
30
31
|
return (React.createElement(ListRow, { key: page.id, icon: (_a = page.icon) !== null && _a !== void 0 ? _a : PanelTop, label: title, onClick: () => onOpen(page.id), onContextMenu: event => openMenu(event, [
|
|
31
32
|
{ label: t('ta.nav.open'), run: () => onOpen(page.id) },
|
|
32
33
|
{ label: t('ta.nav.pin'), run: () => onPin(page.id) },
|
|
33
34
|
'-',
|
|
34
35
|
{ label: t('ta.nav.settings'), run: onSettings },
|
|
35
|
-
]), trailing: React.createElement(
|
|
36
|
+
]), trailing: React.createElement(React.Fragment, null,
|
|
37
|
+
Mark && (React.createElement("span", { className: "ta-list-mark" },
|
|
38
|
+
React.createElement(Mark, null))),
|
|
39
|
+
React.createElement(IconButton, { icon: Pin, label: `${t('ta.nav.pin')} · ${title}`, className: "ta-list-trailing", onClick: () => onPin(page.id) })) }));
|
|
36
40
|
}),
|
|
37
41
|
onOpenPages.map(page => { var _a; return (React.createElement(ListRow, { key: page.id, icon: (_a = page.icon) !== null && _a !== void 0 ? _a : PanelTop, label: page.title, onClick: () => onOpen(page.id), onContextMenu: event => openMenu(event, [
|
|
38
42
|
{ label: t('ta.nav.open'), run: () => onOpen(page.id) },
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { SessionMessage, SessionState, SessionStore } from '@celljs/ta-client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* How many rows of a conversation are drawn when it shows (from its end), and how many more each time the view nears
|
|
5
|
+
* the top of them: a few at a time, each in a frame of its own, for a fling through them not to stutter.
|
|
6
|
+
*/
|
|
4
7
|
export declare const ROW_WINDOW: {
|
|
5
8
|
first: number;
|
|
6
9
|
more: number;
|
|
@@ -46,12 +49,16 @@ export declare namespace EarlierUtil {
|
|
|
46
49
|
* How many messages were asked, so that earlier ones loaded in front do not count as sent: the view
|
|
47
50
|
* goes to a message sent, and to the bottom of a conversation loaded again.
|
|
48
51
|
*/
|
|
49
|
-
function asked(messages: readonly SessionMessage[], start: number, isAsk:
|
|
52
|
+
function asked(messages: readonly SessionMessage[], start: number, isAsk: AskTest, previous?: AskedCount): AskedCount & {
|
|
50
53
|
count: number;
|
|
51
54
|
};
|
|
52
55
|
}
|
|
56
|
+
/** Whether the message at `index` of `messages` is one the user asked: a row of its own, where the view goes when sent. */
|
|
57
|
+
export type AskTest = (message: SessionMessage, index: number, messages: readonly SessionMessage[]) => boolean;
|
|
58
|
+
/** A message of the user, not one given to the agent on the way (ProcessUtil.steered), which is a step of its turn. */
|
|
59
|
+
export declare const isAsk: AskTest;
|
|
53
60
|
/** EarlierUtil.asked for a view: `isAsk` should be the same function each render. */
|
|
54
|
-
export declare function useAsked(state: SessionState,
|
|
61
|
+
export declare function useAsked(state: SessionState, test?: AskTest): number;
|
|
55
62
|
export declare function useRowWindow(): RowWindow;
|
|
56
63
|
/**
|
|
57
64
|
* The earlier messages of a long conversation, loaded as the view of `ref` nears the top of its thread
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ProcessUtil } from '../util/process.js';
|
|
2
3
|
/** Closer than this many heights of the view to the top of the thread, the earlier messages load. */
|
|
3
|
-
const NEAR_TOP =
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
const NEAR_TOP = 2;
|
|
5
|
+
/**
|
|
6
|
+
* How many rows of a conversation are drawn when it shows (from its end), and how many more each time the view nears
|
|
7
|
+
* the top of them: a few at a time, each in a frame of its own, for a fling through them not to stutter.
|
|
8
|
+
*/
|
|
9
|
+
export const ROW_WINDOW = { first: 12, more: 8 };
|
|
6
10
|
export var EarlierUtil;
|
|
7
11
|
(function (EarlierUtil) {
|
|
8
12
|
/**
|
|
@@ -37,15 +41,16 @@ export var EarlierUtil;
|
|
|
37
41
|
}
|
|
38
42
|
EarlierUtil.asked = asked;
|
|
39
43
|
})(EarlierUtil || (EarlierUtil = {}));
|
|
40
|
-
|
|
44
|
+
/** A message of the user, not one given to the agent on the way (ProcessUtil.steered), which is a step of its turn. */
|
|
45
|
+
export const isAsk = (message, index, messages) => message.role === 'user' && !ProcessUtil.steered(messages, index);
|
|
41
46
|
/** EarlierUtil.asked for a view: `isAsk` should be the same function each render. */
|
|
42
|
-
export function useAsked(state,
|
|
47
|
+
export function useAsked(state, test = isAsk) {
|
|
43
48
|
const previous = React.useRef(undefined);
|
|
44
49
|
return React.useMemo(() => {
|
|
45
|
-
const next = EarlierUtil.asked(state.messages, state.start,
|
|
50
|
+
const next = EarlierUtil.asked(state.messages, state.start, test, previous.current);
|
|
46
51
|
previous.current = next;
|
|
47
52
|
return next.count;
|
|
48
|
-
}, [state.messages, state.start,
|
|
53
|
+
}, [state.messages, state.start, test]);
|
|
49
54
|
}
|
|
50
55
|
export function useRowWindow() {
|
|
51
56
|
const [rows, setRows] = React.useState(ROW_WINDOW.first);
|
|
@@ -56,7 +61,8 @@ export function useRowWindow() {
|
|
|
56
61
|
}
|
|
57
62
|
// Not again before the list drew them.
|
|
58
63
|
hidden.current = 0;
|
|
59
|
-
|
|
64
|
+
// Drawn as the page has time, not in the frame of a scroll.
|
|
65
|
+
React.startTransition(() => setRows(count => count + ROW_WINDOW.more));
|
|
60
66
|
return true;
|
|
61
67
|
}, []);
|
|
62
68
|
return React.useMemo(() => ({ rows, hidden, more }), [rows, more]);
|
|
@@ -16,6 +16,8 @@ export declare namespace RemoteHostsUtil {
|
|
|
16
16
|
function problem(read: Exclude<TaLocation.HostInput, {
|
|
17
17
|
host: string;
|
|
18
18
|
}>, input: string, t: Translate): string;
|
|
19
|
+
/** `user@host:port` with a place to break after each `@`, `.` and `:`: on a phone a long host wraps there, not mid-word. */
|
|
20
|
+
function breakable(host: string): React.ReactNode;
|
|
19
21
|
}
|
|
20
22
|
export declare namespace FolderPickerUtil {
|
|
21
23
|
/** The directory above; undefined at a root (`/`, `C:\`, the root of a host). */
|
|
@@ -15,6 +15,13 @@ export var RemoteHostsUtil;
|
|
|
15
15
|
return read.error === 'options' ? t('ta.remote.options', { options: read.options.join(' ') }) : t('ta.remote.invalid', { host: input.trim() });
|
|
16
16
|
}
|
|
17
17
|
RemoteHostsUtil.problem = problem;
|
|
18
|
+
/** `user@host:port` with a place to break after each `@`, `.` and `:`: on a phone a long host wraps there, not mid-word. */
|
|
19
|
+
function breakable(host) {
|
|
20
|
+
return host.split(/(?<=[@.:])/).map((part, index) => (React.createElement(React.Fragment, { key: index },
|
|
21
|
+
index > 0 && React.createElement("wbr", null),
|
|
22
|
+
part)));
|
|
23
|
+
}
|
|
24
|
+
RemoteHostsUtil.breakable = breakable;
|
|
18
25
|
})(RemoteHostsUtil || (RemoteHostsUtil = {}));
|
|
19
26
|
export var FolderPickerUtil;
|
|
20
27
|
(function (FolderPickerUtil) {
|
|
@@ -4,7 +4,7 @@ import type { SavedHost } from '../workbench-protocol.js';
|
|
|
4
4
|
/** Adding a computer by its code or link: what the sign-in and the sheet of the computers share. */
|
|
5
5
|
export declare function useAddHost(): {
|
|
6
6
|
busy: boolean;
|
|
7
|
-
error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.confirmShort" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.offline" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOn" | "ta.assistant.speakStop" | "ta.assistant.speakStopShort" | "ta.assistant.speakTalkShort" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.archived" | "ta.chat.archivedCount" | "ta.chat.archivedHint" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.olderCount" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.pin" | "ta.chat.pinned" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.chat.unpin" | "ta.chat.unseen" | "ta.close" | "ta.command.bug" | "ta.command.mcp" | "ta.composer.addImage" | "ta.composer.album" | "ta.composer.camera" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.keyboard" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.page" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.recentShot" | "ta.composer.recentShotAdd" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.stopping" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.alreadyCompacted" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.game.failed" | "ta.game.label" | "ta.game.loading" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.discard" | "ta.message.failedUnknown" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.interrupted" | "ta.message.modelSwitched" | "ta.message.notSaved" | "ta.message.quote" | "ta.message.resend" | "ta.message.resume" | "ta.message.resumeText" | "ta.message.retriedFailed" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.showLess" | "ta.message.showMore" | "ta.message.silent" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.retried" | "ta.process.running" | "ta.process.showAll" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retry.error" | "ta.progress.retry.network" | "ta.progress.retry.overloaded" | "ta.progress.retry.rateLimit" | "ta.progress.retrying" | "ta.progress.retryingNow" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.scan" | "ta.scan.album" | "ta.scan.ask" | "ta.scan.askHint" | "ta.scan.askPlaceholder" | "ta.scan.askTitle" | "ta.scan.cameraFailed" | "ta.scan.copyFailed" | "ta.scan.error" | "ta.scan.errorPrompt" | "ta.scan.failed" | "ta.scan.flip" | "ta.scan.identify" | "ta.scan.identifyPrompt" | "ta.scan.instructions" | "ta.scan.myCode" | "ta.scan.noCode" | "ta.scan.note" | "ta.scan.notePrompt" | "ta.scan.pairMessage" | "ta.scan.pairTitle" | "ta.scan.result" | "ta.scan.retake" | "ta.scan.sameHost" | "ta.scan.translate" | "ta.scan.translatePrompt" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.select.all" | "ta.select.count" | "ta.select.done" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatArchive" | "ta.settings.chatArchiveHint" | "ta.settings.chatFold" | "ta.settings.chatFoldHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.chats" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.oneYear" | "ta.settings.recentShots" | "ta.settings.recentShotsHint" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.speakTalk" | "ta.settings.speakTalkHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.voiceAuto" | "ta.settings.voiceAutoNone" | "ta.settings.voiceName" | "ta.settings.voiceNameHint" | "ta.settings.voicePreview" | "ta.settings.voiceSample" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.talk.edit" | "ta.talk.hold" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.removeTitle" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.select" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.fetch" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.skill" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.todo" | "ta.tool.verb.viewImage" | "ta.tool.verb.webSearch" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | "ta.zoom.actual" | "ta.zoom.failed" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.loading" | "ta.zoom.next" | "ta.zoom.out" | "ta.zoom.previous" | undefined;
|
|
7
|
+
error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.confirmShort" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.forbidden" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.offline" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOn" | "ta.assistant.speakStop" | "ta.assistant.speakStopShort" | "ta.assistant.speakTalkShort" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.archived" | "ta.chat.archivedCount" | "ta.chat.archivedHint" | "ta.chat.asking" | "ta.chat.asks" | "ta.chat.asksCount" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.letGo" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.olderCount" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.pin" | "ta.chat.pinned" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.chat.toAsk" | "ta.chat.unpin" | "ta.chat.unseen" | "ta.close" | "ta.command.bug" | "ta.command.mcp" | "ta.composer.addImage" | "ta.composer.album" | "ta.composer.camera" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.keyboard" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.page" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.recentShot" | "ta.composer.recentShotAdd" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.stopping" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.outdated" | "ta.connection.reload" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.alreadyCompacted" | "ta.error.forbidden" | "ta.error.forbiddenAsk" | "ta.error.forbiddenHint" | "ta.error.forbiddenNever" | "ta.error.limit" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.game.failed" | "ta.game.label" | "ta.game.loading" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.compactedFrom" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.discard" | "ta.message.failedUnknown" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.interrupted" | "ta.message.modelSwitched" | "ta.message.notSaved" | "ta.message.queued" | "ta.message.queuedTitle" | "ta.message.quote" | "ta.message.resend" | "ta.message.resume" | "ta.message.resumeText" | "ta.message.resumed" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.showLess" | "ta.message.showMore" | "ta.message.silent" | "ta.message.skill" | "ta.message.steered" | "ta.message.steeredTitle" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.requestFailed" | "ta.process.running" | "ta.process.showAll" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retry.error" | "ta.progress.retry.network" | "ta.progress.retry.overloaded" | "ta.progress.retry.rateLimit" | "ta.progress.retrying" | "ta.progress.retryingNow" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.keepAwake" | "ta.relay.keepAwakeHint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.relays.add" | "ta.relays.addButton" | "ta.relays.addHint" | "ta.relays.addPlaceholder" | "ta.relays.broken" | "ta.relays.drive" | "ta.relays.driveHint" | "ta.relays.driveUse" | "ta.relays.feature.devices" | "ta.relays.feature.devicesHint" | "ta.relays.feature.rooms" | "ta.relays.feature.roomsHint" | "ta.relays.feature.share" | "ta.relays.feature.shareHint" | "ta.relays.feature.sync" | "ta.relays.feature.syncHint" | "ta.relays.file" | "ta.relays.folderOnly" | "ta.relays.limits" | "ta.relays.memory" | "ta.relays.official" | "ta.relays.offline" | "ta.relays.online" | "ta.relays.onlineNoTime" | "ta.relays.optional" | "ta.relays.remove" | "ta.relays.storeAdd" | "ta.relays.storeName" | "ta.relays.storeNote" | "ta.relays.storeOnly" | "ta.relays.storeOpen" | "ta.relays.storeType" | "ta.relays.title" | "ta.relays.unavailable" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.scan" | "ta.scan.album" | "ta.scan.ask" | "ta.scan.askHint" | "ta.scan.askPlaceholder" | "ta.scan.askTitle" | "ta.scan.cameraFailed" | "ta.scan.copyFailed" | "ta.scan.error" | "ta.scan.errorPrompt" | "ta.scan.failed" | "ta.scan.flip" | "ta.scan.identify" | "ta.scan.identifyPrompt" | "ta.scan.instructions" | "ta.scan.myCode" | "ta.scan.noCode" | "ta.scan.note" | "ta.scan.notePrompt" | "ta.scan.pairMessage" | "ta.scan.pairTitle" | "ta.scan.result" | "ta.scan.retake" | "ta.scan.sameHost" | "ta.scan.translate" | "ta.scan.translatePrompt" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.select.all" | "ta.select.count" | "ta.select.done" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatArchive" | "ta.settings.chatArchiveHint" | "ta.settings.chatFold" | "ta.settings.chatFoldHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.chats" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.oneYear" | "ta.settings.recentShots" | "ta.settings.recentShotsHint" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.speakTalk" | "ta.settings.speakTalkHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.voiceAuto" | "ta.settings.voiceAutoNone" | "ta.settings.voiceName" | "ta.settings.voiceNameHint" | "ta.settings.voicePreview" | "ta.settings.voiceSample" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.talk.edit" | "ta.talk.hold" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.removeTitle" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.select" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.exitCode" | "ta.tool.failedCalls" | "ta.tool.hideScript" | "ta.tool.moreEntries" | "ta.tool.noOutput" | "ta.tool.printed" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.deleteScheduled" | "ta.tool.verb.deleteTeam" | "ta.tool.verb.edit" | "ta.tool.verb.editImage" | "ta.tool.verb.fetch" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listScheduled" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.publish" | "ta.tool.verb.read" | "ta.tool.verb.scheduleTask" | "ta.tool.verb.sendMessage" | "ta.tool.verb.skill" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.todo" | "ta.tool.verb.viewImage" | "ta.tool.verb.webSearch" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | "ta.zoom.actual" | "ta.zoom.failed" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.loading" | "ta.zoom.next" | "ta.zoom.out" | "ta.zoom.previous" | undefined;
|
|
8
8
|
add: (text: string, scanned?: boolean) => Promise<void>;
|
|
9
9
|
scan: () => Promise<void>;
|
|
10
10
|
canScan: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Check, Copy } from 'lucide-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useT } from '../i18n/use-t.js';
|
|
4
|
-
import { CodeRenderers } from '../markdown/code-renderers.js';
|
|
4
|
+
import { CodeAnswer, CodeRenderers, CodeReply } from '../markdown/code-renderers.js';
|
|
5
5
|
import { MermaidUtil } from '../markdown/mermaid.js';
|
|
6
6
|
import { MarkdownUtil } from '../util/markdown.js';
|
|
7
7
|
import { IconButton } from './icon.js';
|
|
@@ -75,10 +75,12 @@ class CodeBoundary extends React.Component {
|
|
|
75
75
|
/** A fenced block: as a web extension draws its language, a Mermaid diagram, or code. */
|
|
76
76
|
function CodeView({ language, code, closed }) {
|
|
77
77
|
const Renderer = React.useContext(CodeRenderers)[language.trim().toLowerCase()];
|
|
78
|
+
const send = React.useContext(CodeReply);
|
|
79
|
+
const answer = React.useContext(CodeAnswer);
|
|
78
80
|
const plain = React.createElement(CodeBlock, { code: code, language: language });
|
|
79
81
|
if (Renderer) {
|
|
80
82
|
return (React.createElement(CodeBoundary, { retry: closed, fallback: plain },
|
|
81
|
-
React.createElement(Renderer, { code: code, language: language, closed: closed })));
|
|
83
|
+
React.createElement(Renderer, { code: code, language: language, closed: closed, send: send, answer: answer })));
|
|
82
84
|
}
|
|
83
85
|
if (MermaidUtil.isDiagram(language, code)) {
|
|
84
86
|
return React.createElement(MermaidView, { code: code, fallback: plain });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageOff } from 'lucide-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useT } from '../i18n/use-t.js';
|
|
4
|
-
import {
|
|
4
|
+
import { KeptRecent } from '../markdown/lazy.js';
|
|
5
5
|
import { MarkdownUtil } from '../util/markdown.js';
|
|
6
6
|
import { Icon } from './icon.js';
|
|
7
7
|
import { Lightbox } from './lightbox.js';
|
|
@@ -11,45 +11,10 @@ import { Lightbox } from './lightbox.js';
|
|
|
11
11
|
*/
|
|
12
12
|
export const FileUrls = React.createContext(undefined);
|
|
13
13
|
/**
|
|
14
|
-
* What the targets replies showed came to, kept on the device
|
|
15
|
-
*
|
|
16
|
-
* nothing under them moves.
|
|
14
|
+
* What the targets replies showed came to, kept on the device: shown again, even after the page loaded again, an
|
|
15
|
+
* image has its place before it loads and one that could not show says so at once, so that nothing under them moves.
|
|
17
16
|
*/
|
|
18
|
-
|
|
19
|
-
constructor(limit) {
|
|
20
|
-
var _a;
|
|
21
|
-
var _b;
|
|
22
|
-
super(limit);
|
|
23
|
-
try {
|
|
24
|
-
for (const [key, value] of JSON.parse((_b = (_a = ShownTargets.storage()) === null || _a === void 0 ? void 0 : _a.getItem(ShownTargets.KEY)) !== null && _b !== void 0 ? _b : '[]')) {
|
|
25
|
-
super.set(key, value);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (_c) {
|
|
29
|
-
// Kept by another version, or not at all: starts empty.
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
set(key, value) {
|
|
33
|
-
var _a;
|
|
34
|
-
super.set(key, value);
|
|
35
|
-
(_a = this.saving) !== null && _a !== void 0 ? _a : (this.saving = setTimeout(() => {
|
|
36
|
-
var _a;
|
|
37
|
-
this.saving = undefined;
|
|
38
|
-
try {
|
|
39
|
-
(_a = ShownTargets.storage()) === null || _a === void 0 ? void 0 : _a.setItem(ShownTargets.KEY, JSON.stringify([...this.entries]));
|
|
40
|
-
}
|
|
41
|
-
catch (_b) {
|
|
42
|
-
// Full: kept for this page only.
|
|
43
|
-
}
|
|
44
|
-
}, 1000));
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
static storage() {
|
|
48
|
-
return typeof localStorage === 'undefined' ? undefined : localStorage;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
ShownTargets.KEY = 'ta.media.shown';
|
|
52
|
-
const shown = new ShownTargets(300);
|
|
17
|
+
const shown = new KeptRecent('ta.media.shown', 300);
|
|
53
18
|
/** The max-height of an image of a reply (style/conversation.ts). */
|
|
54
19
|
const MEDIA_MAX_HEIGHT = 420;
|
|
55
20
|
/** The URL of a target: as it is, or for a path, the URL of the file; null when it cannot show. */
|