@celljs/ta-web 4.15.0 → 4.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/esm/browser/components/access-view.d.ts +6 -0
  2. package/esm/browser/components/access-view.js +4 -4
  3. package/esm/browser/components/account-menu.js +8 -1
  4. package/esm/browser/components/app-view.js +8 -1
  5. package/esm/browser/components/environment-view.js +9 -2
  6. package/esm/browser/components/face.js +7 -2
  7. package/esm/browser/components/gallery.d.ts +9 -0
  8. package/esm/browser/components/gallery.js +57 -0
  9. package/esm/browser/components/host-view.d.ts +1 -1
  10. package/esm/browser/components/lightbox.d.ts +8 -1
  11. package/esm/browser/components/lightbox.js +4 -1
  12. package/esm/browser/components/markdown.js +6 -1
  13. package/esm/browser/components/media.d.ts +12 -2
  14. package/esm/browser/components/media.js +55 -13
  15. package/esm/browser/components/message-list.js +3 -2
  16. package/esm/browser/components/notice-center.js +6 -2
  17. package/esm/browser/components/serve-restart.d.ts +26 -0
  18. package/esm/browser/components/serve-restart.js +91 -0
  19. package/esm/browser/components/session-view.js +19 -11
  20. package/esm/browser/components/settings-parts.js +18 -6
  21. package/esm/browser/extension/icons.js +3 -1
  22. package/esm/browser/extension/web-extension-protocol.d.ts +6 -0
  23. package/esm/browser/extension/web-extensions.d.ts +3 -0
  24. package/esm/browser/extension/web-extensions.js +7 -0
  25. package/esm/browser/gateway/console-extension.d.ts +20 -0
  26. package/esm/browser/gateway/console-extension.js +75 -0
  27. package/esm/browser/gateway/console-parts.d.ts +62 -0
  28. package/esm/browser/gateway/console-parts.js +271 -0
  29. package/esm/browser/gateway/console-tenant.d.ts +22 -0
  30. package/esm/browser/gateway/console-tenant.js +286 -0
  31. package/esm/browser/gateway/console-util.d.ts +59 -0
  32. package/esm/browser/gateway/console-util.js +187 -0
  33. package/esm/browser/gateway/console-view.d.ts +2 -0
  34. package/esm/browser/gateway/console-view.js +218 -0
  35. package/esm/browser/i18n/locales.d.ts +186 -3
  36. package/esm/browser/i18n/messages-ja.js +183 -0
  37. package/esm/browser/i18n/messages-zh-tw.js +183 -0
  38. package/esm/browser/i18n/messages.d.ts +183 -0
  39. package/esm/browser/i18n/messages.js +366 -0
  40. package/esm/browser/index.d.ts +3 -0
  41. package/esm/browser/index.js +3 -0
  42. package/esm/browser/style/conversation.d.ts +1 -1
  43. package/esm/browser/style/conversation.js +18 -0
  44. package/esm/browser/style/layout.d.ts +1 -1
  45. package/esm/browser/style/layout.js +2 -0
  46. package/esm/browser/style/pages.d.ts +1 -1
  47. package/esm/browser/style/pages.js +140 -0
  48. package/esm/browser/style/shell.d.ts +1 -1
  49. package/esm/browser/style/shell.js +2 -0
  50. package/esm/browser/style/surfaces.d.ts +1 -1
  51. package/esm/browser/style/surfaces.js +1 -0
  52. package/esm/browser/util/desktop.d.ts +6 -1
  53. package/esm/browser/util/desktop.js +10 -0
  54. package/esm/browser/util/gallery.d.ts +18 -0
  55. package/esm/browser/util/gallery.js +123 -0
  56. package/esm/browser/util/link.d.ts +8 -0
  57. package/esm/browser/util/link.js +14 -0
  58. package/esm/browser/util/markdown.d.ts +11 -0
  59. package/esm/browser/util/markdown.js +4 -0
  60. package/esm/browser/util/thumbnail.d.ts +18 -0
  61. package/esm/browser/util/thumbnail.js +26 -0
  62. package/esm/browser/workbench-protocol.d.ts +8 -0
  63. package/esm/browser/workbench.d.ts +16 -0
  64. package/esm/browser/workbench.js +67 -0
  65. package/lib/browser/components/access-view.d.ts +6 -0
  66. package/lib/browser/components/access-view.js +5 -4
  67. package/lib/browser/components/account-menu.js +7 -0
  68. package/lib/browser/components/app-view.js +8 -1
  69. package/lib/browser/components/environment-view.js +9 -2
  70. package/lib/browser/components/face.js +7 -2
  71. package/lib/browser/components/gallery.d.ts +10 -0
  72. package/lib/browser/components/gallery.js +93 -0
  73. package/lib/browser/components/host-view.d.ts +1 -1
  74. package/lib/browser/components/lightbox.d.ts +8 -1
  75. package/lib/browser/components/lightbox.js +4 -1
  76. package/lib/browser/components/markdown.js +6 -1
  77. package/lib/browser/components/media.d.ts +12 -2
  78. package/lib/browser/components/media.js +57 -13
  79. package/lib/browser/components/message-list.js +3 -2
  80. package/lib/browser/components/notice-center.js +6 -2
  81. package/lib/browser/components/serve-restart.d.ts +27 -0
  82. package/lib/browser/components/serve-restart.js +129 -0
  83. package/lib/browser/components/session-view.js +21 -13
  84. package/lib/browser/components/settings-parts.js +17 -5
  85. package/lib/browser/extension/icons.js +2 -0
  86. package/lib/browser/extension/web-extension-protocol.d.ts +6 -0
  87. package/lib/browser/extension/web-extensions.d.ts +3 -0
  88. package/lib/browser/extension/web-extensions.js +7 -0
  89. package/lib/browser/gateway/console-extension.d.ts +21 -0
  90. package/lib/browser/gateway/console-extension.js +111 -0
  91. package/lib/browser/gateway/console-parts.d.ts +63 -0
  92. package/lib/browser/gateway/console-parts.js +315 -0
  93. package/lib/browser/gateway/console-tenant.d.ts +23 -0
  94. package/lib/browser/gateway/console-tenant.js +327 -0
  95. package/lib/browser/gateway/console-util.d.ts +60 -0
  96. package/lib/browser/gateway/console-util.js +190 -0
  97. package/lib/browser/gateway/console-view.d.ts +3 -0
  98. package/lib/browser/gateway/console-view.js +254 -0
  99. package/lib/browser/i18n/locales.d.ts +186 -3
  100. package/lib/browser/i18n/messages-ja.js +183 -0
  101. package/lib/browser/i18n/messages-zh-tw.js +183 -0
  102. package/lib/browser/i18n/messages.d.ts +183 -0
  103. package/lib/browser/i18n/messages.js +366 -0
  104. package/lib/browser/index.d.ts +3 -0
  105. package/lib/browser/index.js +3 -0
  106. package/lib/browser/style/conversation.d.ts +1 -1
  107. package/lib/browser/style/conversation.js +18 -0
  108. package/lib/browser/style/layout.d.ts +1 -1
  109. package/lib/browser/style/layout.js +2 -0
  110. package/lib/browser/style/pages.d.ts +1 -1
  111. package/lib/browser/style/pages.js +140 -0
  112. package/lib/browser/style/shell.d.ts +1 -1
  113. package/lib/browser/style/shell.js +2 -0
  114. package/lib/browser/style/surfaces.d.ts +1 -1
  115. package/lib/browser/style/surfaces.js +1 -0
  116. package/lib/browser/util/desktop.d.ts +6 -1
  117. package/lib/browser/util/desktop.js +10 -0
  118. package/lib/browser/util/gallery.d.ts +19 -0
  119. package/lib/browser/util/gallery.js +126 -0
  120. package/lib/browser/util/link.d.ts +8 -0
  121. package/lib/browser/util/link.js +14 -0
  122. package/lib/browser/util/markdown.d.ts +11 -0
  123. package/lib/browser/util/markdown.js +4 -0
  124. package/lib/browser/util/thumbnail.d.ts +19 -0
  125. package/lib/browser/util/thumbnail.js +29 -0
  126. package/lib/browser/workbench-protocol.d.ts +8 -0
  127. package/lib/browser/workbench.d.ts +16 -0
  128. package/lib/browser/workbench.js +67 -0
  129. package/package.json +7 -7
@@ -50,6 +50,7 @@ const use_t_1 = require("../i18n/use-t");
50
50
  const code_renderers_1 = require("../markdown/code-renderers");
51
51
  const notices_1 = require("../notices/notices");
52
52
  const state_protocol_1 = require("../state/state-protocol");
53
+ const thumbnail_1 = require("../util/thumbnail");
53
54
  const voice_1 = require("../util/voice");
54
55
  const workbench_util_1 = require("../workbench-util");
55
56
  const app_nav_1 = require("./app-nav");
@@ -81,6 +82,7 @@ const notice_center_1 = require("./notice-center");
81
82
  const phone_shell_1 = require("./phone-shell");
82
83
  const remote_prompts_1 = require("./remote-prompts");
83
84
  const scan_screen_1 = require("./scan-screen");
85
+ const serve_restart_1 = require("./serve-restart");
84
86
  const settings_view_1 = require("./settings-view");
85
87
  const share_dialog_1 = require("./share-dialog");
86
88
  const side_lists_1 = require("./side-lists");
@@ -154,7 +156,7 @@ function AppShell() {
154
156
  const online = workbench.status === 'online';
155
157
  // Files named in replies outside a conversation (channels, pages) are in the server's directory.
156
158
  const files = (0, react_1.useInject)(files_protocol_1.TaFiles);
157
- const fileUrl = React.useCallback(async (path) => files.loadable(await bench.workspace.fileUrl(path)), [bench, files]);
159
+ const fileUrl = React.useCallback(async (path, box) => files.loadable(thumbnail_1.ThumbnailUtil.boxed(await bench.workspace.fileUrl(path), box)), [bench, files]);
158
160
  const openLink = (0, hooks_1.useOpenLink)(undefined);
159
161
  (0, workbench_view_1.useDocument)();
160
162
  (0, app_shell_hooks_1.useRefresh)(online);
@@ -197,6 +199,10 @@ function AppShell() {
197
199
  setSurface(undefined);
198
200
  }
199
201
  }, [focus, revealRight, revealEditor]);
202
+ React.useEffect(() => {
203
+ host.setSettingsOpener(openSettings);
204
+ return () => host.setSettingsOpener(undefined);
205
+ }, [host, openSettings]);
200
206
  // A web extension shows another conversation: the conversation, not a page, a drawer or the workbench over it, is then in front.
201
207
  React.useEffect(() => {
202
208
  host.setSessionSwitcher(async (session, opening) => {
@@ -464,6 +470,7 @@ function AppShell() {
464
470
  React.createElement(notice_center_1.NoticeCenter, null),
465
471
  React.createElement(link_dialog_1.LinkDialog, null),
466
472
  React.createElement(remote_prompts_1.RemotePrompts, null),
473
+ React.createElement(serve_restart_1.ServeRestartNotices, null),
467
474
  React.createElement(host_view_1.SwitchingVeil, null),
468
475
  codeScan && React.createElement(scan_screen_1.ScanHost, { onCode: text => void codeScan.open(text), onAsk: askDouble }),
469
476
  React.createElement(share_dialog_1.ShareHost, null),
@@ -39,6 +39,7 @@ exports.EnvironmentSettings = EnvironmentSettings;
39
39
  exports.EnvironmentPage = EnvironmentPage;
40
40
  const lucide_react_1 = require("lucide-react");
41
41
  const React = __importStar(require("react"));
42
+ const console_parts_1 = require("../gateway/console-parts");
42
43
  const hooks_1 = require("../hooks");
43
44
  const use_t_1 = require("../i18n/use-t");
44
45
  const callout_1 = require("./callout");
@@ -215,6 +216,8 @@ function EnvironmentSettings({ info, onChange }) {
215
216
  busy ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(icon_1.Icon, { icon: lucide_react_1.RotateCw, size: 14 }),
216
217
  " ",
217
218
  t('ta.environment.restart'))),
219
+ React.createElement(settings_controls_1.Row, { label: t('ta.console.quota'), description: t('ta.environment.quotaHint'), stacked: true },
220
+ React.createElement(console_parts_1.QuotaMeters, { quota: info.quota })),
218
221
  React.createElement(settings_controls_1.Row, { label: t('ta.environment.where'), description: t('ta.environment.whereHint'), stacked: true },
219
222
  React.createElement(EnvironmentChooser, { info: info, onChanged: reload })),
220
223
  info.admin && React.createElement(Tenants, null)));
@@ -230,8 +233,12 @@ function EnvironmentPage() {
230
233
  return (React.createElement("div", { className: "ta-signin" },
231
234
  React.createElement("div", { className: "ta-card ta-environment-card" },
232
235
  React.createElement(ta_avatar_1.TaAvatar, { size: 72 }),
233
- React.createElement("h1", null, t('ta.environment.failedTitle')),
234
- React.createElement(callout_1.Callout, { level: "error" }, (_a = info === null || info === void 0 ? void 0 : info.environment.error) !== null && _a !== void 0 ? _a : workbench.environmentError),
236
+ React.createElement("h1", null, t((info === null || info === void 0 ? void 0 : info.quota.blocked) ? 'ta.environment.blockedTitle' : 'ta.environment.failedTitle')),
237
+ (info === null || info === void 0 ? void 0 : info.quota.blocked) ? (React.createElement(React.Fragment, null,
238
+ React.createElement(callout_1.Callout, { level: "warning" }, t(info.quota.blocked === 'suspended' ? 'ta.environment.blockedSuspended' : 'ta.environment.blockedMinutes', {
239
+ date: new Date(info.quota.resetsAt).toLocaleDateString(undefined, { month: 'long', day: 'numeric' }),
240
+ })),
241
+ React.createElement(console_parts_1.QuotaMeters, { quota: info.quota }))) : (React.createElement(callout_1.Callout, { level: "error" }, (_a = info === null || info === void 0 ? void 0 : info.environment.error) !== null && _a !== void 0 ? _a : workbench.environmentError)),
235
242
  React.createElement("button", { type: "button", className: "ta-button ta-primary ta-wide", disabled: busy, onClick: async () => {
236
243
  setBusy(true);
237
244
  try {
@@ -62,10 +62,15 @@ function Face(props) {
62
62
  const species = dino_species_1.DinoSpecies.IDS.find(id => id === props.look);
63
63
  return species ? React.createElement(DoubleFace, { species: species, size: props.size, online: props.online }) : React.createElement(ShapeFace, { ...props });
64
64
  }
65
+ /**
66
+ * How wide the disc of a double is in its box: as wide as the shapes, which leave a margin in their 40 × 40 grid (the
67
+ * round one is 29 wide), so that a double among them in a row is no bigger than they are.
68
+ */
69
+ const DOUBLE_DISC = 0.75;
65
70
  /** A Ta as its double: the close-up of the dinosaur, as the account shows it; this Ta's own without `species`. */
66
71
  function DoubleFace({ species, size, online }) {
67
- return (React.createElement("span", { className: "ta-face", style: { width: size, height: size }, "aria-hidden": "true" },
68
- React.createElement(ta_avatar_1.DinoFace, { species: species, size: size }),
72
+ return (React.createElement("span", { className: "ta-face ta-face-double", style: { width: size, height: size }, "aria-hidden": "true" },
73
+ React.createElement(ta_avatar_1.DinoFace, { species: species, size: Math.round(size * DOUBLE_DISC) }),
69
74
  online !== undefined && React.createElement("i", { className: `ta-face-dot${online ? ' ta-face-on' : ''}` })));
70
75
  }
71
76
  function ShapeFace({ face: given, seed = '', size, working, online }) {
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import type { MarkdownPicture } from '../util/markdown';
3
+ /**
4
+ * Pictures of a reply shown together (GalleryUtil): square tiles in columns as many as suit their number, the words
5
+ * that name each under it, and a click on one opens it over the page, where ← → and its side buttons go through all.
6
+ */
7
+ export declare function Gallery({ items }: {
8
+ items: readonly MarkdownPicture[];
9
+ }): React.JSX.Element;
10
+ //# sourceMappingURL=gallery.d.ts.map
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Gallery = Gallery;
37
+ const lucide_react_1 = require("lucide-react");
38
+ const React = __importStar(require("react"));
39
+ const use_t_1 = require("../i18n/use-t");
40
+ const gallery_1 = require("../util/gallery");
41
+ const thumbnail_1 = require("../util/thumbnail");
42
+ const icon_1 = require("./icon");
43
+ const lightbox_1 = require("./lightbox");
44
+ const media_1 = require("./media");
45
+ /** A tile: the picture cut to a square, a place that shimmers while it loads, and on the last one how many more there are. */
46
+ /** The CSS side of a tile at most (--ta-gallery-tile, style/conversation.ts). */
47
+ const TILE = 168;
48
+ const TILE_BOX = { width: thumbnail_1.ThumbnailUtil.side(TILE), height: thumbnail_1.ThumbnailUtil.side(TILE), cover: true };
49
+ function Tile({ url, picture, more, onOpen }) {
50
+ const t = (0, use_t_1.useT)();
51
+ const [failed, setFailed] = React.useState();
52
+ const [loaded, setLoaded] = React.useState();
53
+ if (url === null || (url && failed === url)) {
54
+ return (React.createElement("span", { className: "ta-gallery-tile ta-gallery-missing", title: picture.src },
55
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.ImageOff, size: 18 })));
56
+ }
57
+ return (React.createElement("button", { type: "button", className: `ta-gallery-tile${url && loaded === url ? '' : ' ta-gallery-pending'}`, title: picture.caption || picture.alt || t('ta.markdown.enlarge'), disabled: !url, onClick: onOpen },
58
+ url && React.createElement("img", { src: url, alt: picture.alt, loading: "lazy", onLoad: () => setLoaded(url), onError: () => setFailed(url) }),
59
+ more > 0 && React.createElement("span", { className: "ta-gallery-more" },
60
+ "+",
61
+ more)));
62
+ }
63
+ /**
64
+ * Pictures of a reply shown together (GalleryUtil): square tiles in columns as many as suit their number, the words
65
+ * that name each under it, and a click on one opens it over the page, where ← → and its side buttons go through all.
66
+ */
67
+ function Gallery({ items }) {
68
+ // A picture of the workspace loads as large as its tile (ThumbnailUtil); enlarged, as it is.
69
+ const urls = (0, media_1.useMediaUrls)(React.useMemo(() => items.map(item => item.src), [items]), TILE_BOX);
70
+ const [open, setOpen] = React.useState();
71
+ const full = (0, media_1.useMediaUrl)(open !== undefined && urls[open] ? items[open].src : undefined);
72
+ const shown = items.slice(0, gallery_1.GalleryUtil.TILES);
73
+ const more = items.length - shown.length;
74
+ const named = items.some(item => item.caption);
75
+ const style = { '--ta-gallery-columns': gallery_1.GalleryUtil.columns(items.length) };
76
+ const step = (from, by) => {
77
+ for (let at = from + by; at >= 0 && at < items.length; at += by) {
78
+ if (urls[at]) {
79
+ return at;
80
+ }
81
+ }
82
+ return undefined;
83
+ };
84
+ const current = open !== undefined ? urls[open] : undefined;
85
+ const previous = open !== undefined ? step(open, -1) : undefined;
86
+ const next = open !== undefined ? step(open, 1) : undefined;
87
+ return (React.createElement("div", { className: "ta-gallery", style: style },
88
+ shown.map((item, index) => { var _a; return (React.createElement("figure", { key: index, className: "ta-gallery-item" },
89
+ React.createElement(Tile, { url: urls[index], picture: item, more: index === shown.length - 1 ? more : 0, onOpen: () => setOpen(index) }),
90
+ named && React.createElement("figcaption", { className: "ta-gallery-caption" }, (_a = item.caption) !== null && _a !== void 0 ? _a : '\u00a0'))); }),
91
+ open !== undefined && current && (React.createElement(lightbox_1.Lightbox, { src: full || current, alt: items[open].alt, caption: items[open].caption, count: { at: open, of: items.length }, onClose: () => setOpen(undefined), onPrevious: previous !== undefined ? () => setOpen(previous) : undefined, onNext: next !== undefined ? () => setOpen(next) : undefined }))));
92
+ }
93
+ //# sourceMappingURL=gallery.js.map
@@ -4,7 +4,7 @@ import type { SavedHost } from '../workbench-protocol';
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.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.custom.add" | "ta.auth.custom.addHeader" | "ta.auth.custom.addHint" | "ta.auth.custom.advanced" | "ta.auth.custom.advancedHint" | "ta.auth.custom.api" | "ta.auth.custom.apiAnthropic" | "ta.auth.custom.apiGoogle" | "ta.auth.custom.apiKey" | "ta.auth.custom.apiOpenai" | "ta.auth.custom.apiResponses" | "ta.auth.custom.badNumber" | "ta.auth.custom.baseUrl" | "ta.auth.custom.contextWindow" | "ta.auth.custom.fetch" | "ta.auth.custom.fetchFailed" | "ta.auth.custom.fetched" | "ta.auth.custom.fetchedNone" | "ta.auth.custom.filter" | "ta.auth.custom.headerName" | "ta.auth.custom.headerValue" | "ta.auth.custom.headers" | "ta.auth.custom.images" | "ta.auth.custom.keyKept" | "ta.auth.custom.keyOptional" | "ta.auth.custom.kind" | "ta.auth.custom.maxTokens" | "ta.auth.custom.mixed" | "ta.auth.custom.modelPlaceholder" | "ta.auth.custom.models" | "ta.auth.custom.name" | "ta.auth.custom.needModel" | "ta.auth.custom.note" | "ta.auth.custom.optional" | "ta.auth.custom.reasoning" | "ta.auth.custom.remove" | "ta.auth.custom.removeConfirm" | "ta.auth.custom.removeHeader" | "ta.auth.custom.removeModel" | "ta.auth.custom.save" | "ta.auth.custom.saved" | "ta.auth.custom.title" | "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.replyingFor" | "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.presence.asked" | "ta.presence.more" | "ta.presence.owner" | "ta.presence.separator" | "ta.presence.typing" | "ta.presence.viewing" | "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.signInSetup.add" | "ta.signInSetup.callback" | "ta.signInSetup.copied" | "ta.signInSetup.copy" | "ta.signInSetup.device" | "ta.signInSetup.edit" | "ta.signInSetup.field.appId" | "ta.signInSetup.field.appSecret" | "ta.signInSetup.field.clientId" | "ta.signInSetup.field.clientSecret" | "ta.signInSetup.field.issuer" | "ta.signInSetup.field.name" | "ta.signInSetup.field.url" | "ta.signInSetup.fromEnv" | "ta.signInSetup.hint" | "ta.signInSetup.incomplete" | "ta.signInSetup.off" | "ta.signInSetup.oidc" | "ta.signInSetup.on" | "ta.signInSetup.optional" | "ta.signInSetup.remove" | "ta.signInSetup.removeConfirm" | "ta.signInSetup.removeDetail" | "ta.signInSetup.removed" | "ta.signInSetup.save" | "ta.signInSetup.saved" | "ta.signInSetup.secretKept" | "ta.signInSetup.title" | "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;
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.custom.add" | "ta.auth.custom.addHeader" | "ta.auth.custom.addHint" | "ta.auth.custom.advanced" | "ta.auth.custom.advancedHint" | "ta.auth.custom.api" | "ta.auth.custom.apiAnthropic" | "ta.auth.custom.apiGoogle" | "ta.auth.custom.apiKey" | "ta.auth.custom.apiOpenai" | "ta.auth.custom.apiResponses" | "ta.auth.custom.badNumber" | "ta.auth.custom.baseUrl" | "ta.auth.custom.contextWindow" | "ta.auth.custom.fetch" | "ta.auth.custom.fetchFailed" | "ta.auth.custom.fetched" | "ta.auth.custom.fetchedNone" | "ta.auth.custom.filter" | "ta.auth.custom.headerName" | "ta.auth.custom.headerValue" | "ta.auth.custom.headers" | "ta.auth.custom.images" | "ta.auth.custom.keyKept" | "ta.auth.custom.keyOptional" | "ta.auth.custom.kind" | "ta.auth.custom.maxTokens" | "ta.auth.custom.mixed" | "ta.auth.custom.modelPlaceholder" | "ta.auth.custom.models" | "ta.auth.custom.name" | "ta.auth.custom.needModel" | "ta.auth.custom.note" | "ta.auth.custom.optional" | "ta.auth.custom.reasoning" | "ta.auth.custom.remove" | "ta.auth.custom.removeConfirm" | "ta.auth.custom.removeHeader" | "ta.auth.custom.removeModel" | "ta.auth.custom.save" | "ta.auth.custom.saved" | "ta.auth.custom.title" | "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.replyingFor" | "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.console.about" | "ta.console.accounts" | "ta.console.active" | "ta.console.activityNone" | "ta.console.activityRunning" | "ta.console.activitySummary" | "ta.console.agentAsking" | "ta.console.agentIdle" | "ta.console.agentWaiting" | "ta.console.agentWorking" | "ta.console.agents" | "ta.console.agentsNone" | "ta.console.agentsOwn" | "ta.console.agentsPrivacy" | "ta.console.agentsStopped" | "ta.console.agentsWorking" | "ta.console.allProviders" | "ta.console.audit" | "ta.console.auditActivity" | "ta.console.auditAllow" | "ta.console.auditDefaults" | "ta.console.auditDisallow" | "ta.console.auditDismiss" | "ta.console.auditGrant" | "ta.console.auditInvite" | "ta.console.auditLimits" | "ta.console.auditLogs" | "ta.console.auditNone" | "ta.console.auditRestart" | "ta.console.auditRole" | "ta.console.auditStart" | "ta.console.auditStop" | "ta.console.auditSuspend" | "ta.console.blockedMinutes" | "ta.console.blockedSuspended" | "ta.console.bonus" | "ta.console.byAccount" | "ta.console.byModel" | "ta.console.cannotManage" | "ta.console.connectionsLabel" | "ta.console.connectionsLimit" | "ta.console.connectionsMax" | "ta.console.connectionsMaxHint" | "ta.console.context" | "ta.console.copied" | "ta.console.copy" | "ta.console.cost" | "ta.console.cpu" | "ta.console.created" | "ta.console.default" | "ta.console.defaults" | "ta.console.defaultsHint" | "ta.console.defaultsReadOnly" | "ta.console.demote" | "ta.console.demoteConfirm" | "ta.console.demoteDetail" | "ta.console.empty" | "ta.console.emptyHint" | "ta.console.environment" | "ta.console.failed" | "ta.console.filterAdmins" | "ta.console.filterAll" | "ta.console.filterLimited" | "ta.console.filterRunning" | "ta.console.filterWorking" | "ta.console.freeMinutes" | "ta.console.freeMinutesHint" | "ta.console.grant" | "ta.console.grantTitle" | "ta.console.granted" | "ta.console.hint" | "ta.console.idle" | "ta.console.idleNever" | "ta.console.invite" | "ta.console.inviteHint" | "ta.console.inviteLink" | "ta.console.invitePlaceholder" | "ta.console.inviteTitle" | "ta.console.isAdmin" | "ta.console.isMember" | "ta.console.limitDefault" | "ta.console.limitSet" | "ta.console.limitedCount" | "ta.console.limitsDone" | "ta.console.limitsEdit" | "ta.console.logs" | "ta.console.logsAudited" | "ta.console.logsEmpty" | "ta.console.logsNone" | "ta.console.logsShow" | "ta.console.managers" | "ta.console.managersHint" | "ta.console.memory" | "ta.console.messages" | "ta.console.metric" | "ta.console.modelFailed" | "ta.console.monthTokens" | "ta.console.never" | "ta.console.no" | "ta.console.noMatch" | "ta.console.outOfMinutes" | "ta.console.ownAllowed" | "ta.console.ownNot" | "ta.console.ownService" | "ta.console.ownServiceHint" | "ta.console.peak" | "ta.console.promote" | "ta.console.promoteConfirm" | "ta.console.promoteDetail" | "ta.console.promptsLimit" | "ta.console.promptsPerMinute" | "ta.console.promptsPerMinuteHint" | "ta.console.providerTenants" | "ta.console.providersAllowed" | "ta.console.providersAllowedHint" | "ta.console.quota" | "ta.console.range" | "ta.console.range1" | "ta.console.range30" | "ta.console.range7" | "ta.console.refresh" | "ta.console.requests" | "ta.console.reset" | "ta.console.resets" | "ta.console.restartConfirm" | "ta.console.restartDetail" | "ta.console.resume" | "ta.console.resumed" | "ta.console.roleAdmin" | "ta.console.roleMember" | "ta.console.roleOwner" | "ta.console.rowWaiting" | "ta.console.rowWorking" | "ta.console.running" | "ta.console.sandboxNow" | "ta.console.sandboxes" | "ta.console.save" | "ta.console.saved" | "ta.console.search" | "ta.console.sessions" | "ta.console.since" | "ta.console.someProviders" | "ta.console.sort" | "ta.console.sortActive" | "ta.console.sortMinutes" | "ta.console.sortName" | "ta.console.stale" | "ta.console.start" | "ta.console.suspend" | "ta.console.suspendConfirm" | "ta.console.suspendDetail" | "ta.console.suspended" | "ta.console.tabAccounts" | "ta.console.tabOverview" | "ta.console.tabPolicy" | "ta.console.tenantId" | "ta.console.title" | "ta.console.tokens" | "ta.console.toolCalls" | "ta.console.toolCallsLabel" | "ta.console.trend" | "ta.console.trendEmpty" | "ta.console.turns" | "ta.console.unlimited" | "ta.console.updated" | "ta.console.view" | "ta.console.yes" | "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.blockedMinutes" | "ta.environment.blockedSuspended" | "ta.environment.blockedTitle" | "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.quotaHint" | "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.openLink" | "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.presence.asked" | "ta.presence.more" | "ta.presence.owner" | "ta.presence.separator" | "ta.presence.typing" | "ta.presence.viewing" | "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.restart" | "ta.restart.button" | "ta.restart.confirm" | "ta.restart.description" | "ta.restart.detail" | "ta.restart.done" | "ta.restart.restarting" | "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.signInSetup.add" | "ta.signInSetup.callback" | "ta.signInSetup.copied" | "ta.signInSetup.copy" | "ta.signInSetup.device" | "ta.signInSetup.edit" | "ta.signInSetup.field.appId" | "ta.signInSetup.field.appSecret" | "ta.signInSetup.field.clientId" | "ta.signInSetup.field.clientSecret" | "ta.signInSetup.field.issuer" | "ta.signInSetup.field.name" | "ta.signInSetup.field.url" | "ta.signInSetup.fromEnv" | "ta.signInSetup.hint" | "ta.signInSetup.incomplete" | "ta.signInSetup.off" | "ta.signInSetup.oidc" | "ta.signInSetup.on" | "ta.signInSetup.optional" | "ta.signInSetup.remove" | "ta.signInSetup.removeConfirm" | "ta.signInSetup.removeDetail" | "ta.signInSetup.removed" | "ta.signInSetup.save" | "ta.signInSetup.saved" | "ta.signInSetup.secretKept" | "ta.signInSetup.title" | "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.update.later" | "ta.update.ready" | "ta.update.readyDetail" | "ta.update.restartTo" | "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;
@@ -5,9 +5,16 @@ import * as React from 'react';
5
5
  * its close button or Escape closes it. In the top layer, so no container clips it; the touches in it are its
6
6
  * own, never a swipe of a sheet under it.
7
7
  */
8
- export declare function Lightbox({ src, alt, onClose, onPrevious, onNext }: {
8
+ export declare function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, }: {
9
9
  src: string;
10
10
  alt: string;
11
+ /** The words that name it, at the top. */
12
+ caption?: string;
13
+ /** Of the images it goes through: which it is and how many, as "2 / 5". */
14
+ count?: {
15
+ at: number;
16
+ of: number;
17
+ };
11
18
  onClose(): void;
12
19
  onPrevious?(): void;
13
20
  onNext?(): void;
@@ -45,7 +45,7 @@ const image_viewer_1 = require("./image-viewer");
45
45
  * its close button or Escape closes it. In the top layer, so no container clips it; the touches in it are its
46
46
  * own, never a swipe of a sheet under it.
47
47
  */
48
- function Lightbox({ src, alt, onClose, onPrevious, onNext }) {
48
+ function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, }) {
49
49
  const t = (0, use_t_1.useT)();
50
50
  const dialog = React.useRef(null);
51
51
  React.useEffect(() => {
@@ -55,6 +55,9 @@ function Lightbox({ src, alt, onClose, onPrevious, onNext }) {
55
55
  const close = () => { var _a; return (_a = dialog.current) === null || _a === void 0 ? void 0 : _a.close(); };
56
56
  return (React.createElement("dialog", { ref: dialog, className: "ta-lightbox", onClose: onClose, onTouchStart: event => event.stopPropagation() },
57
57
  React.createElement(image_viewer_1.ImageViewer, { key: src, src: src, alt: alt, onBackground: close, onPrevious: onPrevious, onNext: onNext, autoFocus: true }),
58
+ (caption || count) && (React.createElement("div", { className: "ta-lightbox-caption" },
59
+ caption && React.createElement("span", { className: "ta-lightbox-words" }, caption),
60
+ count && count.of > 1 && React.createElement("span", { className: "ta-lightbox-count" }, `${count.at + 1} / ${count.of}`))),
58
61
  React.createElement("button", { type: "button", className: "ta-lightbox-close", title: t('ta.close'), "aria-label": t('ta.close'), onClick: close },
59
62
  React.createElement(icon_1.Icon, { icon: lucide_react_1.X, size: 18 }))));
60
63
  }
@@ -40,7 +40,9 @@ const React = __importStar(require("react"));
40
40
  const use_t_1 = require("../i18n/use-t");
41
41
  const code_renderers_1 = require("../markdown/code-renderers");
42
42
  const mermaid_1 = require("../markdown/mermaid");
43
+ const gallery_1 = require("../util/gallery");
43
44
  const markdown_1 = require("../util/markdown");
45
+ const gallery_2 = require("./gallery");
44
46
  const icon_1 = require("./icon");
45
47
  const link_1 = require("./link");
46
48
  const math_1 = require("./math");
@@ -151,6 +153,8 @@ const Block = React.memo(function Block({ block }) {
151
153
  React.createElement(Text, { text: cell })))))))))));
152
154
  case 'rule':
153
155
  return React.createElement("hr", null);
156
+ case 'gallery':
157
+ return React.createElement(gallery_2.Gallery, { items: block.items });
154
158
  default:
155
159
  return (React.createElement("p", null,
156
160
  React.createElement(Text, { text: block.text })));
@@ -163,7 +167,8 @@ const Block = React.memo(function Block({ block }) {
163
167
  function useBlocks(text, streaming) {
164
168
  const previous = React.useRef([]);
165
169
  return React.useMemo(() => {
166
- const blocks = streaming ? markdown_1.MarkdownUtil.streaming(text) : markdown_1.MarkdownUtil.blocks(text);
170
+ // Pictures one after another show together (GalleryUtil).
171
+ const blocks = gallery_1.GalleryUtil.group(streaming ? markdown_1.MarkdownUtil.streaming(text) : markdown_1.MarkdownUtil.blocks(text));
167
172
  const kept = blocks.map((block, index) => (markdown_1.MarkdownUtil.same(previous.current[index], block) ? previous.current[index] : block));
168
173
  previous.current = kept;
169
174
  return kept;
@@ -1,9 +1,19 @@
1
1
  import * as React from 'react';
2
+ import { ThumbnailUtil } from '../util/thumbnail';
2
3
  /**
3
4
  * Where the page loads a file of the workspace from (TaWorkspaceServer.fileUrl), in the directory of the
4
- * conversation that shows it; without it, files of the workspace do not show.
5
+ * conversation that shows it, smaller in `box` (ThumbnailUtil); without it, files of the workspace do not show.
6
+ * Through a relay what it gives is a blob: URL of the bytes, to which nothing can be added: the box is asked of
7
+ * the file before.
5
8
  */
6
- export declare const FileUrls: React.Context<((path: string) => Promise<string>) | undefined>;
9
+ export declare const FileUrls: React.Context<((path: string, box?: ThumbnailUtil.Box) => Promise<string>) | undefined>;
10
+ /**
11
+ * The URL of a target: as it is, or for a path, the URL of the file, smaller in `box`; null when it cannot show,
12
+ * undefined while it is asked (and for no target).
13
+ */
14
+ export declare function useMediaUrl(src: string | undefined, box?: ThumbnailUtil.Box): string | null | undefined;
15
+ /** The URLs of targets, as `useMediaUrl` gives each, all in one `box`: the tiles of a gallery. */
16
+ export declare function useMediaUrls(sources: readonly string[], box?: ThumbnailUtil.Box): (string | null | undefined)[];
7
17
  /** An image, a video or a sound a reply shows: from the web, a data URL, or a file of the workspace. */
8
18
  export declare function MediaView({ src, alt }: {
9
19
  src: string;
@@ -34,17 +34,22 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.FileUrls = void 0;
37
+ exports.useMediaUrl = useMediaUrl;
38
+ exports.useMediaUrls = useMediaUrls;
37
39
  exports.MediaView = MediaView;
38
40
  const lucide_react_1 = require("lucide-react");
39
41
  const React = __importStar(require("react"));
40
42
  const use_t_1 = require("../i18n/use-t");
41
43
  const lazy_1 = require("../markdown/lazy");
42
44
  const markdown_1 = require("../util/markdown");
45
+ const thumbnail_1 = require("../util/thumbnail");
43
46
  const icon_1 = require("./icon");
44
47
  const lightbox_1 = require("./lightbox");
45
48
  /**
46
49
  * Where the page loads a file of the workspace from (TaWorkspaceServer.fileUrl), in the directory of the
47
- * conversation that shows it; without it, files of the workspace do not show.
50
+ * conversation that shows it, smaller in `box` (ThumbnailUtil); without it, files of the workspace do not show.
51
+ * Through a relay what it gives is a blob: URL of the bytes, to which nothing can be added: the box is asked of
52
+ * the file before.
48
53
  */
49
54
  exports.FileUrls = React.createContext(undefined);
50
55
  /**
@@ -54,35 +59,75 @@ exports.FileUrls = React.createContext(undefined);
54
59
  const shown = new lazy_1.KeptRecent('ta.media.shown', 300);
55
60
  /** The max-height of an image of a reply (style/conversation.ts). */
56
61
  const MEDIA_MAX_HEIGHT = 420;
57
- /** The URL of a target: as it is, or for a path, the URL of the file; null when it cannot show. */
58
- function useUrl(src) {
62
+ /** As wide as an image of a reply shows at most: the column of the conversation. */
63
+ const MEDIA_MAX_WIDTH = 720;
64
+ /** The box an image of a reply asks for. */
65
+ const IMAGE_BOX = { width: thumbnail_1.ThumbnailUtil.side(MEDIA_MAX_WIDTH), height: thumbnail_1.ThumbnailUtil.side(MEDIA_MAX_HEIGHT) };
66
+ /**
67
+ * The URL of a target: as it is, or for a path, the URL of the file, smaller in `box`; null when it cannot show,
68
+ * undefined while it is asked (and for no target).
69
+ */
70
+ function useMediaUrl(src, box) {
59
71
  const fileUrl = React.useContext(exports.FileUrls);
60
- const path = markdown_1.MarkdownUtil.localPath(src);
61
- const [url, setUrl] = React.useState(path === undefined ? src : undefined);
72
+ const path = src === undefined ? undefined : markdown_1.MarkdownUtil.localPath(src);
73
+ const { width, height, cover } = box !== null && box !== void 0 ? box : {};
74
+ // What it asked for with the URL: another target (a gallery enlarged goes through its pictures) is not shown the one before.
75
+ const asked = `${path} ${width}x${height}${cover ? ' cover' : ''}`;
76
+ const [found, setFound] = React.useState();
62
77
  React.useEffect(() => {
63
78
  if (path === undefined) {
64
- setUrl(src);
65
79
  return;
66
80
  }
67
81
  if (!fileUrl) {
68
- setUrl(null);
82
+ setFound({ asked, url: null });
69
83
  return;
70
84
  }
71
85
  let current = true;
72
- fileUrl(path).then(url => current && setUrl(url), () => current && setUrl(null));
86
+ fileUrl(path, width && height ? { width, height, cover } : undefined).then(url => current && setFound({ asked, url }), () => current && setFound({ asked, url: null }));
73
87
  return () => {
74
88
  current = false;
75
89
  };
76
- }, [fileUrl, path, src]);
77
- return url;
90
+ }, [fileUrl, path, asked, width, height, cover]);
91
+ if (path === undefined) {
92
+ return src;
93
+ }
94
+ return (found === null || found === void 0 ? void 0 : found.asked) === asked ? found.url : undefined;
95
+ }
96
+ /** The URLs of targets, as `useMediaUrl` gives each, all in one `box`: the tiles of a gallery. */
97
+ function useMediaUrls(sources, box) {
98
+ const fileUrl = React.useContext(exports.FileUrls);
99
+ const key = sources.join('\n');
100
+ const { width, height, cover } = box !== null && box !== void 0 ? box : {};
101
+ const [urls, setUrls] = React.useState({});
102
+ React.useEffect(() => {
103
+ let current = true;
104
+ for (const src of key.split('\n')) {
105
+ const path = markdown_1.MarkdownUtil.localPath(src);
106
+ if (path === undefined) {
107
+ continue;
108
+ }
109
+ if (!fileUrl) {
110
+ setUrls(known => ({ ...known, [src]: null }));
111
+ continue;
112
+ }
113
+ fileUrl(path, width && height ? { width, height, cover } : undefined).then(url => current && setUrls(known => ({ ...known, [src]: url })), () => current && setUrls(known => ({ ...known, [src]: null })));
114
+ }
115
+ return () => {
116
+ current = false;
117
+ };
118
+ }, [fileUrl, key, width, height, cover]);
119
+ return sources.map(src => (markdown_1.MarkdownUtil.localPath(src) === undefined ? src : urls[src]));
78
120
  }
79
121
  /** An image, a video or a sound a reply shows: from the web, a data URL, or a file of the workspace. */
80
122
  function MediaView({ src, alt }) {
81
123
  var _a;
82
124
  const t = (0, use_t_1.useT)();
83
- const url = useUrl(src);
125
+ const kind = (_a = markdown_1.MarkdownUtil.media(src)) !== null && _a !== void 0 ? _a : 'image';
126
+ // A picture of the workspace loads as large as it shows (ThumbnailUtil); enlarged, as it is.
127
+ const url = useMediaUrl(src, kind === 'image' ? IMAGE_BOX : undefined);
84
128
  const [failedUrl, setFailedUrl] = React.useState();
85
129
  const [open, setOpen] = React.useState(false);
130
+ const full = useMediaUrl(open && kind === 'image' ? src : undefined);
86
131
  const [loaded, setLoaded] = React.useState(false);
87
132
  const known = shown.get(src);
88
133
  const failed = (!!url && url === failedUrl) || known === false;
@@ -93,7 +138,6 @@ function MediaView({ src, alt }) {
93
138
  }
94
139
  setFailedUrl(url !== null && url !== void 0 ? url : undefined);
95
140
  };
96
- const kind = (_a = markdown_1.MarkdownUtil.media(src)) !== null && _a !== void 0 ? _a : 'image';
97
141
  const size = kind === 'image' && known ? known : undefined;
98
142
  // Of the size it had when known: its place does not change as it loads.
99
143
  const box = size &&
@@ -129,7 +173,7 @@ function MediaView({ src, alt }) {
129
173
  }
130
174
  setLoaded(true);
131
175
  }, onError: setFailed })),
132
- open && React.createElement(lightbox_1.Lightbox, { src: url, alt: alt, onClose: () => setOpen(false) })));
176
+ open && React.createElement(lightbox_1.Lightbox, { src: full || url, alt: alt, onClose: () => setOpen(false) })));
133
177
  }
134
178
  }
135
179
  //# sourceMappingURL=media.js.map
@@ -53,6 +53,7 @@ const icons_1 = require("../extension/icons");
53
53
  const use_t_1 = require("../i18n/use-t");
54
54
  const code_renderers_1 = require("../markdown/code-renderers");
55
55
  const lazy_1 = require("../markdown/lazy");
56
+ const gallery_1 = require("../util/gallery");
56
57
  const message_1 = require("../util/message");
57
58
  const process_1 = require("../util/process");
58
59
  const progress_1 = require("../util/progress");
@@ -211,9 +212,9 @@ function UserImages({ blocks, timestamp }) {
211
212
  }
212
213
  const single = images.length === 1 ? UserImageUtil.box(UserImageUtil.size(images[0].block)) : undefined;
213
214
  const shown = open !== undefined ? sources[open] : undefined;
214
- return (React.createElement("div", { className: "ta-user-images", "data-count": Math.min(images.length, 3) },
215
+ return (React.createElement("div", { className: "ta-user-images", "data-count": Math.min(images.length, 3), style: { '--ta-user-image-columns': gallery_1.GalleryUtil.columns(images.length) } },
215
216
  images.map(({ index }, at) => (React.createElement("button", { key: index, type: "button", className: "ta-user-image", title: t('ta.markdown.enlarge'), disabled: !sources[at], onClick: () => setOpen(at) }, sources[at] ? (React.createElement("img", { className: "ta-thumb", src: sources[at], alt: "", style: single })) : (React.createElement("span", { className: "ta-thumb ta-thumb-waiting", style: single }))))),
216
- open !== undefined && shown && (React.createElement(lightbox_1.Lightbox, { src: shown, alt: "", onClose: () => setOpen(undefined), onPrevious: open > 0 && sources[open - 1] ? () => setOpen(open - 1) : undefined, onNext: open < images.length - 1 && sources[open + 1] ? () => setOpen(open + 1) : undefined }))));
217
+ open !== undefined && shown && (React.createElement(lightbox_1.Lightbox, { src: shown, alt: "", count: { at: open, of: images.length }, onClose: () => setOpen(undefined), onPrevious: open > 0 && sources[open - 1] ? () => setOpen(open - 1) : undefined, onNext: open < images.length - 1 && sources[open + 1] ? () => setOpen(open + 1) : undefined }))));
217
218
  }
218
219
  /**
219
220
  * What the user said, in the bubble of a message of theirs, with the pictures they sent with it in the same