@celljs/ta-web 4.47.1 → 4.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/browser/assistant/assistant-role.d.ts +1 -1
- package/esm/browser/assistant/assistant-role.js +1 -1
- package/esm/browser/assistant/assistant-task-source.js +6 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +1 -0
- package/esm/browser/assistant/assistant-task-util.js +9 -3
- package/esm/browser/assistant/assistant-view.js +4 -2
- package/esm/browser/cloud/cloud-sign-in.d.ts +26 -4
- package/esm/browser/cloud/cloud-sign-in.js +88 -18
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +3 -3
- package/esm/browser/components/app-view.js +16 -6
- package/esm/browser/components/asks-badge.d.ts +12 -0
- package/esm/browser/components/asks-badge.js +17 -1
- package/esm/browser/components/chat-list-row.d.ts +4 -1
- package/esm/browser/components/chat-list-row.js +7 -1
- package/esm/browser/components/chats-dot.d.ts +4 -1
- package/esm/browser/components/chats-dot.js +6 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +2 -1
- package/esm/browser/components/cloud-sign-in-view.js +28 -5
- package/esm/browser/components/composer-box-protocol.d.ts +5 -3
- package/esm/browser/components/composer-box.js +11 -11
- package/esm/browser/components/composer.d.ts +8 -1
- package/esm/browser/components/composer.js +57 -34
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/lightbox.d.ts +15 -1
- package/esm/browser/components/lightbox.js +14 -2
- package/esm/browser/components/link.js +8 -3
- package/esm/browser/components/markdown.d.ts +4 -2
- package/esm/browser/components/markdown.js +13 -4
- package/esm/browser/components/media.d.ts +6 -0
- package/esm/browser/components/media.js +9 -1
- package/esm/browser/components/message-images.d.ts +5 -0
- package/esm/browser/components/message-images.js +40 -4
- package/esm/browser/components/message-user.js +4 -2
- package/esm/browser/components/partner-row.js +4 -4
- package/esm/browser/components/phone-shell.d.ts +2 -0
- package/esm/browser/components/phone-shell.js +2 -2
- package/esm/browser/components/sending.d.ts +19 -0
- package/esm/browser/components/sending.js +27 -0
- package/esm/browser/components/session-view.js +4 -3
- package/esm/browser/components/settings-choices.js +1 -0
- package/esm/browser/components/settings-parts.js +28 -17
- package/esm/browser/components/share-dialog.js +3 -2
- package/esm/browser/components/share-item-sheet.js +1 -1
- package/esm/browser/components/share-sheet.d.ts +4 -2
- package/esm/browser/components/share-sheet.js +16 -2
- package/esm/browser/components/sign-in-accounts.js +7 -1
- package/esm/browser/components/unseen-drop.d.ts +2 -2
- package/esm/browser/components/unseen-drop.js +1 -1
- package/esm/browser/device/app-badge.d.ts +8 -0
- package/esm/browser/device/app-badge.js +28 -0
- package/esm/browser/device/code-scan.js +1 -1
- package/esm/browser/extension/web-api-code.d.ts +26 -0
- package/esm/browser/extension/web-api-components.d.ts +31 -0
- package/esm/browser/extension/web-api-menus.d.ts +15 -0
- package/esm/browser/extension/web-api-messages.d.ts +15 -0
- package/esm/browser/extension/web-api-messages.js +2 -0
- package/esm/browser/extension/web-api-partners.d.ts +16 -0
- package/esm/browser/extension/web-api-spec.js +1 -0
- package/esm/browser/extension/web-extension-api.d.ts +7 -13
- package/esm/browser/extension/web-extension-context.js +2 -0
- package/esm/browser/extension/web-session-notices.js +11 -2
- package/esm/browser/extension/web-share-ui.js +1 -0
- package/esm/browser/extension/web-share.js +3 -3
- package/esm/browser/extension/web-sharing.js +1 -1
- package/esm/browser/i18n/en/assistant.d.ts +2 -0
- package/esm/browser/i18n/en/assistant.js +2 -0
- package/esm/browser/i18n/en/chat.d.ts +11 -0
- package/esm/browser/i18n/en/chat.js +13 -2
- package/esm/browser/i18n/en/common.d.ts +4 -0
- package/esm/browser/i18n/en/common.js +4 -0
- package/esm/browser/i18n/en/service.d.ts +5 -0
- package/esm/browser/i18n/en/service.js +5 -0
- package/esm/browser/i18n/en/settings.d.ts +6 -0
- package/esm/browser/i18n/en/settings.js +8 -2
- package/esm/browser/i18n/ja/assistant.js +2 -0
- package/esm/browser/i18n/ja/chat.js +13 -2
- package/esm/browser/i18n/ja/common.js +4 -0
- package/esm/browser/i18n/ja/service.js +5 -0
- package/esm/browser/i18n/ja/settings.js +10 -4
- package/esm/browser/i18n/locales.d.ts +29 -1
- package/esm/browser/i18n/messages.d.ts +28 -0
- package/esm/browser/i18n/zh/assistant.js +2 -0
- package/esm/browser/i18n/zh/chat.js +13 -2
- package/esm/browser/i18n/zh/common.js +4 -0
- package/esm/browser/i18n/zh/service.js +5 -0
- package/esm/browser/i18n/zh/settings.js +8 -2
- package/esm/browser/i18n/zh-tw/assistant.js +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +13 -2
- package/esm/browser/i18n/zh-tw/common.js +4 -0
- package/esm/browser/i18n/zh-tw/service.js +5 -0
- package/esm/browser/i18n/zh-tw/settings.js +8 -2
- package/esm/browser/links/links.js +1 -1
- package/esm/browser/notices/session-notices.d.ts +4 -4
- package/esm/browser/notices/session-notices.js +3 -6
- package/esm/browser/partners/partners-util.d.ts +6 -0
- package/esm/browser/partners/partners-util.js +22 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/settings/agent-settings.d.ts +2 -0
- package/esm/browser/settings/agent-settings.js +2 -0
- package/esm/browser/settings/settings-protocol.d.ts +8 -0
- package/esm/browser/settings/settings-protocol.js +5 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +8 -3
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +6 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +18 -0
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +2 -0
- package/esm/browser/util/composer.d.ts +18 -3
- package/esm/browser/util/composer.js +31 -5
- package/esm/browser/util/desktop.d.ts +8 -1
- package/esm/browser/util/desktop.js +10 -0
- package/esm/browser/util/image-shrink.d.ts +5 -1
- package/esm/browser/util/image-shrink.js +1 -1
- package/esm/browser/util/markdown.d.ts +3 -5
- package/esm/browser/util/markdown.js +5 -29
- package/esm/browser/util/process.js +2 -2
- package/lib/browser/assistant/assistant-role.d.ts +1 -1
- package/lib/browser/assistant/assistant-role.js +1 -1
- package/lib/browser/assistant/assistant-task-source.js +5 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +1 -0
- package/lib/browser/assistant/assistant-task-util.js +8 -2
- package/lib/browser/assistant/assistant-view.js +4 -2
- package/lib/browser/cloud/cloud-sign-in.d.ts +26 -4
- package/lib/browser/cloud/cloud-sign-in.js +89 -19
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +2 -2
- package/lib/browser/components/app-view.js +16 -6
- package/lib/browser/components/asks-badge.d.ts +12 -0
- package/lib/browser/components/asks-badge.js +19 -1
- package/lib/browser/components/chat-list-row.d.ts +4 -1
- package/lib/browser/components/chat-list-row.js +7 -1
- package/lib/browser/components/chats-dot.d.ts +4 -1
- package/lib/browser/components/chats-dot.js +6 -2
- package/lib/browser/components/cloud-sign-in-view.d.ts +2 -1
- package/lib/browser/components/cloud-sign-in-view.js +28 -5
- package/lib/browser/components/composer-box-protocol.d.ts +5 -3
- package/lib/browser/components/composer-box.js +11 -11
- package/lib/browser/components/composer.d.ts +8 -1
- package/lib/browser/components/composer.js +56 -33
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/lightbox.d.ts +15 -1
- package/lib/browser/components/lightbox.js +15 -2
- package/lib/browser/components/link.js +8 -3
- package/lib/browser/components/markdown.d.ts +4 -2
- package/lib/browser/components/markdown.js +11 -2
- package/lib/browser/components/media.d.ts +6 -0
- package/lib/browser/components/media.js +10 -2
- package/lib/browser/components/message-images.d.ts +5 -0
- package/lib/browser/components/message-images.js +40 -4
- package/lib/browser/components/message-user.js +4 -2
- package/lib/browser/components/partner-row.js +4 -4
- package/lib/browser/components/phone-shell.d.ts +2 -0
- package/lib/browser/components/phone-shell.js +1 -1
- package/lib/browser/components/sending.d.ts +20 -0
- package/lib/browser/components/sending.js +63 -0
- package/lib/browser/components/session-view.js +4 -3
- package/lib/browser/components/settings-choices.js +1 -0
- package/lib/browser/components/settings-parts.js +26 -15
- package/lib/browser/components/share-dialog.js +3 -2
- package/lib/browser/components/share-item-sheet.js +1 -1
- package/lib/browser/components/share-sheet.d.ts +4 -2
- package/lib/browser/components/share-sheet.js +16 -2
- package/lib/browser/components/sign-in-accounts.js +7 -1
- package/lib/browser/components/unseen-drop.d.ts +2 -2
- package/lib/browser/components/unseen-drop.js +1 -1
- package/lib/browser/device/app-badge.d.ts +9 -0
- package/lib/browser/device/app-badge.js +31 -0
- package/lib/browser/device/code-scan.js +1 -1
- package/lib/browser/extension/web-api-code.d.ts +26 -0
- package/lib/browser/extension/web-api-components.d.ts +31 -0
- package/lib/browser/extension/web-api-menus.d.ts +15 -0
- package/lib/browser/extension/web-api-messages.d.ts +16 -0
- package/lib/browser/extension/web-api-messages.js +3 -0
- package/lib/browser/extension/web-api-partners.d.ts +16 -0
- package/lib/browser/extension/web-api-spec.js +1 -0
- package/lib/browser/extension/web-extension-api.d.ts +7 -13
- package/lib/browser/extension/web-extension-context.js +2 -0
- package/lib/browser/extension/web-session-notices.js +10 -1
- package/lib/browser/extension/web-share-ui.js +1 -0
- package/lib/browser/extension/web-share.js +3 -3
- package/lib/browser/extension/web-sharing.js +1 -1
- package/lib/browser/i18n/en/assistant.d.ts +2 -0
- package/lib/browser/i18n/en/assistant.js +2 -0
- package/lib/browser/i18n/en/chat.d.ts +11 -0
- package/lib/browser/i18n/en/chat.js +13 -2
- package/lib/browser/i18n/en/common.d.ts +4 -0
- package/lib/browser/i18n/en/common.js +4 -0
- package/lib/browser/i18n/en/service.d.ts +5 -0
- package/lib/browser/i18n/en/service.js +5 -0
- package/lib/browser/i18n/en/settings.d.ts +6 -0
- package/lib/browser/i18n/en/settings.js +8 -2
- package/lib/browser/i18n/ja/assistant.js +2 -0
- package/lib/browser/i18n/ja/chat.js +13 -2
- package/lib/browser/i18n/ja/common.js +4 -0
- package/lib/browser/i18n/ja/service.js +5 -0
- package/lib/browser/i18n/ja/settings.js +10 -4
- package/lib/browser/i18n/locales.d.ts +29 -1
- package/lib/browser/i18n/messages.d.ts +28 -0
- package/lib/browser/i18n/zh/assistant.js +2 -0
- package/lib/browser/i18n/zh/chat.js +13 -2
- package/lib/browser/i18n/zh/common.js +4 -0
- package/lib/browser/i18n/zh/service.js +5 -0
- package/lib/browser/i18n/zh/settings.js +8 -2
- package/lib/browser/i18n/zh-tw/assistant.js +2 -0
- package/lib/browser/i18n/zh-tw/chat.js +13 -2
- package/lib/browser/i18n/zh-tw/common.js +4 -0
- package/lib/browser/i18n/zh-tw/service.js +5 -0
- package/lib/browser/i18n/zh-tw/settings.js +8 -2
- package/lib/browser/links/links.js +1 -1
- package/lib/browser/notices/session-notices.d.ts +4 -4
- package/lib/browser/notices/session-notices.js +3 -6
- package/lib/browser/partners/partners-util.d.ts +6 -0
- package/lib/browser/partners/partners-util.js +22 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/settings/agent-settings.d.ts +2 -0
- package/lib/browser/settings/agent-settings.js +3 -1
- package/lib/browser/settings/settings-protocol.d.ts +8 -0
- package/lib/browser/settings/settings-protocol.js +6 -1
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +8 -3
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +6 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +18 -0
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +2 -0
- package/lib/browser/util/composer.d.ts +18 -3
- package/lib/browser/util/composer.js +31 -5
- package/lib/browser/util/desktop.d.ts +8 -1
- package/lib/browser/util/desktop.js +10 -0
- package/lib/browser/util/image-shrink.d.ts +5 -1
- package/lib/browser/util/image-shrink.js +1 -1
- package/lib/browser/util/markdown.d.ts +3 -5
- package/lib/browser/util/markdown.js +5 -29
- package/lib/browser/util/process.js +1 -1
- package/package.json +7 -7
- package/esm/browser/util/share-link.d.ts +0 -21
- package/esm/browser/util/share-link.js +0 -61
- package/lib/browser/util/share-link.d.ts +0 -22
- package/lib/browser/util/share-link.js +0 -64
|
@@ -9,6 +9,32 @@ export interface WebCodeRendererOptions {
|
|
|
9
9
|
spoken?(code: string): string | undefined;
|
|
10
10
|
pointable?: boolean;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The files a text said on another computer names (a line of a group chat, docs/design/ta-local-refs.md), as they came
|
|
14
|
+
* with it, by the path the text names each by (LocalRefs.localPath): `ui.Markdown` with them shows and opens those, and
|
|
15
|
+
* looks for no file of this computer.
|
|
16
|
+
*/
|
|
17
|
+
export interface WebMarkdownFiles {
|
|
18
|
+
/** Whether the file of a path came with the text. */
|
|
19
|
+
has(path: string): boolean;
|
|
20
|
+
/** A URL of one that came, a picture or a video it shows; rejects while it cannot come (its sender away). */
|
|
21
|
+
url(path: string): Promise<string>;
|
|
22
|
+
/** Opens one that came, as the chat opens its files. */
|
|
23
|
+
open(path: string): void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* What `ui.Markdown` draws: `text` as the conversations show it; `inline`: in a line; `send`, `answer`: a group chat's
|
|
27
|
+
* (newer); `whole`: WebCodeRendererProps.whole; `files`: of a text said on another computer, the files that came with it
|
|
28
|
+
* (newer; older apps look for them on their own computer).
|
|
29
|
+
*/
|
|
30
|
+
export interface WebMarkdownProps {
|
|
31
|
+
text: string;
|
|
32
|
+
inline?: boolean;
|
|
33
|
+
send?: WebCodeRendererProps['send'];
|
|
34
|
+
answer?: string;
|
|
35
|
+
whole?: boolean;
|
|
36
|
+
files?: WebMarkdownFiles;
|
|
37
|
+
}
|
|
12
38
|
/** A fenced block of the language of a code renderer (WebExtensionAPI.registerCodeRenderer). */
|
|
13
39
|
export interface WebCodeRendererProps {
|
|
14
40
|
/** Its lines, as written. */
|
|
@@ -35,6 +35,8 @@ export interface WebShareSheetProps {
|
|
|
35
35
|
/** Who or what goes, as the other will see it: a face or an icon (44 px), and a name. */
|
|
36
36
|
face?: React.ReactNode;
|
|
37
37
|
name?: string;
|
|
38
|
+
/** An icon of the page (WEB_ICONS) for what goes, on its card where it is sent into a chat: `Package` for an extension. */
|
|
39
|
+
icon?: string;
|
|
38
40
|
/** What the other gets, in a line: "They add it as an agent of their own". */
|
|
39
41
|
gets?: string;
|
|
40
42
|
/**
|
|
@@ -214,10 +216,32 @@ export interface WebChatImagesProps {
|
|
|
214
216
|
thumb?: string;
|
|
215
217
|
width: number;
|
|
216
218
|
height: number;
|
|
219
|
+
original?: WebChatOriginal;
|
|
217
220
|
}[];
|
|
218
221
|
/** What they are, for who cannot see them. */
|
|
219
222
|
alt?: string;
|
|
220
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* The picture as it was picked, of one shown made smaller (WebChatImagesProps): 查看原图 with its size at the bottom left
|
|
226
|
+
* of the picture opened, as WeChat has it; `load` gives its URL once here (undefined when it cannot come now).
|
|
227
|
+
*/
|
|
228
|
+
export interface WebChatOriginal {
|
|
229
|
+
bytes: number;
|
|
230
|
+
load(): Promise<string | undefined>;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* WebExtensionUI.Sending: a message of the user on its way, as a messenger shows it: a spinner beside it while it goes
|
|
234
|
+
* (`progress`, 0 to 1, when known), a red mark and a line to send it again or take it back once it did not (`failed`, why).
|
|
235
|
+
*/
|
|
236
|
+
export interface WebSendingProps {
|
|
237
|
+
failed?: string;
|
|
238
|
+
progress?: number;
|
|
239
|
+
onResend?(): void;
|
|
240
|
+
onDiscard?(): void;
|
|
241
|
+
/** In place of the line under one that did not go (发送失败 · 重发 · 删除). */
|
|
242
|
+
line?: React.ReactNode;
|
|
243
|
+
children?: React.ReactNode;
|
|
244
|
+
}
|
|
221
245
|
export interface WebImageViewerProps {
|
|
222
246
|
src: string;
|
|
223
247
|
alt?: string;
|
|
@@ -418,6 +442,13 @@ export interface WebComposerImage {
|
|
|
418
442
|
/** In pixels, when the box shrank it (`images` with limits). */
|
|
419
443
|
width?: number;
|
|
420
444
|
height?: number;
|
|
445
|
+
/** The picture as it was picked, when the box made it smaller (`images` with limits): for 查看原图. */
|
|
446
|
+
original?: {
|
|
447
|
+
data: string;
|
|
448
|
+
mimeType: string;
|
|
449
|
+
width: number;
|
|
450
|
+
height: number;
|
|
451
|
+
};
|
|
421
452
|
}
|
|
422
453
|
/** How the message box shrinks the pictures it hands on: their longest side in pixels, their bytes at most. */
|
|
423
454
|
export interface WebComposerImageLimits {
|
|
@@ -57,6 +57,21 @@ export type WebShareItem = {
|
|
|
57
57
|
} | {
|
|
58
58
|
kind: 'file';
|
|
59
59
|
file: WebFileRef;
|
|
60
|
+
} | {
|
|
61
|
+
/**
|
|
62
|
+
* A link from the share sheet (`ui.ShareSheet`: an extension, a conversation, a card, an invitation), to send
|
|
63
|
+
* into chats as a card (docs/design/ta-links.md 4.1): its Send to friends is the way that takes it.
|
|
64
|
+
*/
|
|
65
|
+
kind: 'link';
|
|
66
|
+
link: string;
|
|
67
|
+
/** Who or what goes, as the sheet names it. */
|
|
68
|
+
title: string;
|
|
69
|
+
/** What the other reads with the link (WebShareSheetProps.invite). */
|
|
70
|
+
invite: string;
|
|
71
|
+
/** What the other gets, in a line. */
|
|
72
|
+
gets?: string;
|
|
73
|
+
/** An icon of the page (WEB_ICONS) for what it is. */
|
|
74
|
+
icon?: string;
|
|
60
75
|
};
|
|
61
76
|
/**
|
|
62
77
|
* A way to share (registerShareWay): a tile of the share sheet, for what it takes. Send to friends and group chats,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Part of the web extension API (web-extension-api.ts, which exports it all): what a chat an extension draws (a group
|
|
3
|
+
* chat, a channel) shows as the conversations of the page do, the pictures of a message and a message on its way.
|
|
4
|
+
*/
|
|
5
|
+
import type * as React from 'react';
|
|
6
|
+
import type { WebChatImagesProps, WebSendingProps } from './web-api-components.js';
|
|
7
|
+
export interface WebMessagesUI {
|
|
8
|
+
/**
|
|
9
|
+
* The pictures of a message of a chat the extension draws, as a conversation shows the user's (`thumb` blurred till
|
|
10
|
+
* `src`; 查看原图 of one shown made smaller, `original`). Newer than some apps.
|
|
11
|
+
*/
|
|
12
|
+
readonly ChatImages?: React.ComponentType<WebChatImagesProps>;
|
|
13
|
+
/** A message of the user on its way, around it: a spinner beside it while it goes, a red mark and 重发 / 删除 once it did not. Newer than some apps. */
|
|
14
|
+
readonly Sending?: React.ComponentType<WebSendingProps>;
|
|
15
|
+
}
|
|
@@ -69,10 +69,26 @@ export interface WebPartnerChat {
|
|
|
69
69
|
seenAt?: number;
|
|
70
70
|
/** What was said last, with who said it where it is not the partner. */
|
|
71
71
|
last?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Before {@link last}, in red while it is unseen, as WeChat's `[Someone @ you]`: what of it is for the user. Newer than
|
|
74
|
+
* some Ta apps.
|
|
75
|
+
*/
|
|
76
|
+
flag?: string;
|
|
72
77
|
/** `Date.now()` time of it: where the conversation is in the double's list. */
|
|
73
78
|
at?: number;
|
|
74
79
|
/** Said since the user last looked: the amber dot. */
|
|
75
80
|
unseen?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* With {@link unseen}, how many messages people sent that the user has not seen (a friend, a group chat): a red
|
|
83
|
+
* number on its face in place of the amber dot, and counted on the tab of the chats, as WeChat's. Newer than some Ta
|
|
84
|
+
* apps.
|
|
85
|
+
*/
|
|
86
|
+
count?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Marks what was said seen, as the user drags its number (or dot) away, from its row or from the tab of the chats
|
|
89
|
+
* with all the others; without it, it stays till opened. Newer than some Ta apps.
|
|
90
|
+
*/
|
|
91
|
+
see?(): void;
|
|
76
92
|
/** Answers now: the green dot that breathes. */
|
|
77
93
|
busy?: boolean;
|
|
78
94
|
/** Waits for the user to answer: the blue ?. */
|
|
@@ -91,6 +91,7 @@ export const WEB_UI_SPEC = {
|
|
|
91
91
|
PictureCards: component(B),
|
|
92
92
|
ImageViewer: component(B),
|
|
93
93
|
ChatImages: component(B),
|
|
94
|
+
Sending: component(B),
|
|
94
95
|
QrCode: component(B),
|
|
95
96
|
// Its host is functions that take functions: only in the page, for now (docs/design/ta-works.md stage 2 opens it).
|
|
96
97
|
WorkFrame: page,
|
|
@@ -4,8 +4,8 @@ import type { Mood } from '../avatar/dino-avatar.js';
|
|
|
4
4
|
import type { DeviceState } from '../device/device-protocol.js';
|
|
5
5
|
import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol.js';
|
|
6
6
|
import type { Language, Theme } from '../settings/settings-protocol.js';
|
|
7
|
-
import type { WebCodeRendererOptions, WebCodeRendererProps } from './web-api-code.js';
|
|
8
|
-
import type { CodeEditorProps, DiffEditorProps, WebAvatarProps,
|
|
7
|
+
import type { WebCodeRendererOptions, WebCodeRendererProps, WebMarkdownProps } from './web-api-code.js';
|
|
8
|
+
import type { CodeEditorProps, DiffEditorProps, WebAvatarProps, WebComposerProps, WebConversationViewProps, WebDialogProps, WebEmptyProps, WebFaceProps, WebFolderPickerProps, WebFullScreenProps, WebGroupFaceProps, WebHoldToTalkProps, WebImageViewerProps, WebLoadingProps, WebModelPickerProps, WebPictureCardsProps, WebPictureProps, WebSelectBarProps, WebSelectCheckProps, WebShareSheetProps, WebStackProps, WebSwipeRowProps, WebSwitchProps, WebTaskIconProps, WebVoice } from './web-api-components.js';
|
|
9
9
|
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebNotifyOptions, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions.js';
|
|
10
10
|
import type { WebDesktop, WebDeviceUI, WebFileDrag, WebviewTabEvent } from './web-api-desktop.js';
|
|
11
11
|
import type { WebEditorsUI } from './web-api-editors.js';
|
|
@@ -14,6 +14,7 @@ import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home.js
|
|
|
14
14
|
import type { WebHostAPI, WebHostUI } from './web-api-host.js';
|
|
15
15
|
import type { WebHosts } from './web-api-hosts.js';
|
|
16
16
|
import type { WebFileRef, WebMenus, WebShareUI } from './web-api-menus.js';
|
|
17
|
+
import type { WebMessagesUI } from './web-api-messages.js';
|
|
17
18
|
import type { WebPlayUI } from './web-api-play.js';
|
|
18
19
|
import type { WebServices } from './web-api-services.js';
|
|
19
20
|
import type { WebSkinsAPI } from './web-api-skins.js';
|
|
@@ -38,6 +39,7 @@ export type * from './web-api-home.js';
|
|
|
38
39
|
export type * from './web-api-host.js';
|
|
39
40
|
export type * from './web-api-hosts.js';
|
|
40
41
|
export type * from './web-api-menus.js';
|
|
42
|
+
export type * from './web-api-messages.js';
|
|
41
43
|
export type * from './web-api-play.js';
|
|
42
44
|
export type * from './web-api-services.js';
|
|
43
45
|
export type * from './web-api-skins.js';
|
|
@@ -188,7 +190,7 @@ export type WebIcon = React.ComponentType<{
|
|
|
188
190
|
}>;
|
|
189
191
|
/** What web extensions see of TaScreen. */
|
|
190
192
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
191
|
-
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI, WebPlayUI, WebShareUI, WebFileViewsUI, WebHostUI {
|
|
193
|
+
export interface WebExtensionUI extends WebMessagesUI, WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI, WebPlayUI, WebShareUI, WebFileViewsUI, WebHostUI {
|
|
192
194
|
/** A widget around the message box, as pi's, or a card in the workbench on the right; `undefined` removes it. */
|
|
193
195
|
setWidget(key: string, widget: React.ComponentType | undefined, options?: WidgetOptions): void;
|
|
194
196
|
/**
|
|
@@ -477,14 +479,8 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
477
479
|
* meeting written down); let it go when it stops. Newer than some Ta apps: `pi.ui.keepAwake?.()`.
|
|
478
480
|
*/
|
|
479
481
|
readonly keepAwake?: () => () => void;
|
|
480
|
-
/** As the conversations show it
|
|
481
|
-
readonly Markdown: React.ComponentType<
|
|
482
|
-
text: string;
|
|
483
|
-
inline?: boolean;
|
|
484
|
-
send?: WebCodeRendererProps['send'];
|
|
485
|
-
answer?: string;
|
|
486
|
-
whole?: boolean;
|
|
487
|
-
}>;
|
|
482
|
+
/** As the conversations show it (WebMarkdownProps). */
|
|
483
|
+
readonly Markdown: React.ComponentType<WebMarkdownProps>;
|
|
488
484
|
/**
|
|
489
485
|
* A conversation to read, drawn as those of the page are, with what extensions draw in them (cards, plots,
|
|
490
486
|
* 3D); nothing in it acts. Newer than some Ta apps: `pi.ui.Conversation ?? …`.
|
|
@@ -558,8 +554,6 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
558
554
|
* fit / actual size below it, and the pictures beside it at its sides when given (`onPrevious` / `onNext`). It fills its parent (a column of flex).
|
|
559
555
|
*/
|
|
560
556
|
readonly ImageViewer: React.ComponentType<WebImageViewerProps>;
|
|
561
|
-
/** The pictures of a message of a chat the extension draws, as a conversation shows the user's (`thumb` blurred till `src`). Newer than some apps. */
|
|
562
|
-
readonly ChatImages?: React.ComponentType<WebChatImagesProps>;
|
|
563
557
|
/** A QR code of a text (a link to scan with a phone), black on white whatever the theme; `label` for a screen reader. */
|
|
564
558
|
readonly QrCode: React.ComponentType<{
|
|
565
559
|
text: string;
|
|
@@ -28,6 +28,7 @@ import { PhoneStack } from '../components/phone-shell.js';
|
|
|
28
28
|
import { Picture, PictureCards } from '../components/picture.js';
|
|
29
29
|
import { QrView } from '../components/qr-view.js';
|
|
30
30
|
import { SelectBar, SelectCheck } from '../components/select-bar.js';
|
|
31
|
+
import { Sending } from '../components/sending.js';
|
|
31
32
|
import { Switch } from '../components/settings-controls.js';
|
|
32
33
|
import { SwipeRow } from '../components/swipe-row.js';
|
|
33
34
|
import { TaAvatar } from '../components/ta-avatar.js';
|
|
@@ -431,6 +432,7 @@ export class WebExtensionContext {
|
|
|
431
432
|
PictureCards,
|
|
432
433
|
ImageViewer,
|
|
433
434
|
ChatImages,
|
|
435
|
+
Sending,
|
|
434
436
|
QrCode: QrView,
|
|
435
437
|
WorkFrame,
|
|
436
438
|
WorkSenses,
|
|
@@ -11,7 +11,7 @@ import { Autowired, Component } from '@celljs/core';
|
|
|
11
11
|
import { TaAssistant } from '../assistant/assistant-protocol.js';
|
|
12
12
|
import { ChatListUtil } from '../components/chat-list-util.js';
|
|
13
13
|
import { DOUBLE_PAGE } from '../components/side-lists.js';
|
|
14
|
-
import { Device } from '../device/device.js';
|
|
14
|
+
import { Device, nativePlugin } from '../device/device.js';
|
|
15
15
|
import { translator } from '../i18n/use-t.js';
|
|
16
16
|
import { Chime } from '../notices/chime.js';
|
|
17
17
|
import { TaNotices } from '../notices/notices-protocol.js';
|
|
@@ -96,7 +96,11 @@ export var WebSessionNoticeUtil;
|
|
|
96
96
|
const state = deps.extensions.state;
|
|
97
97
|
const assistant = deps.assistant();
|
|
98
98
|
const double = isDouble(notice, assistant);
|
|
99
|
-
const looking =
|
|
99
|
+
const looking = notice.view
|
|
100
|
+
? state.page === notice.view && !state.pageHidden
|
|
101
|
+
: double
|
|
102
|
+
? state.page === DOUBLE_PAGE
|
|
103
|
+
: state.conversationShown && !!notice.sessionId && state.sessionId === notice.sessionId;
|
|
100
104
|
const task = !!notice.sessionId && !!(assistant === null || assistant === void 0 ? void 0 : assistant.taskOf(notice.sessionId)) && !((_a = assistant.taskOf(notice.sessionId)) === null || _a === void 0 ? void 0 : _a.takenOver);
|
|
101
105
|
return { focused: focused(), looking, task, system: systemAllowed(), quiet: Device.state.touch };
|
|
102
106
|
}
|
|
@@ -193,10 +197,15 @@ export var WebSessionNoticeUtil;
|
|
|
193
197
|
}
|
|
194
198
|
},
|
|
195
199
|
chime: (level, way) => {
|
|
200
|
+
var _a;
|
|
196
201
|
// Ta Desktop's notice of the system, from its main process, sounds of its own but for an answer.
|
|
197
202
|
if (way !== 'system' || !DesktopUtil.notices() || level === 'done') {
|
|
198
203
|
tone.play(level);
|
|
199
204
|
}
|
|
205
|
+
// A phone in hand buzzes too, as a messenger's in front; a page away buzzes nothing.
|
|
206
|
+
if (Device.state.touch && focused()) {
|
|
207
|
+
(_a = nativePlugin('Haptics')) === null || _a === void 0 ? void 0 : _a('impact', { style: 'MEDIUM' }).catch(() => undefined);
|
|
208
|
+
}
|
|
200
209
|
},
|
|
201
210
|
};
|
|
202
211
|
}
|
|
@@ -10,6 +10,7 @@ export function shareUI(host, stopped) {
|
|
|
10
10
|
notices: host.notices,
|
|
11
11
|
rooms: host.workbench.rooms,
|
|
12
12
|
onRoomEvent: listener => host.workbench.onRoomEvent(listener, { messages: false }),
|
|
13
|
+
ways: () => host.extensions.state.shareWays,
|
|
13
14
|
});
|
|
14
15
|
return {
|
|
15
16
|
shareExtension: target => !stopped() && host.extensions.share(target),
|
|
@@ -25,13 +25,13 @@ export var WebShareUtil;
|
|
|
25
25
|
/** What it is called: the title a work gives itself, the name of a file; '' for a block that says nothing. */
|
|
26
26
|
function name(item) {
|
|
27
27
|
var _a;
|
|
28
|
-
return item.kind === 'file' ? item.file.name : ((_a = TaWorkTitle.of(item.language, item.code)) !== null && _a !== void 0 ? _a : '');
|
|
28
|
+
return item.kind === 'file' ? item.file.name : item.kind === 'link' ? item.title : ((_a = TaWorkTitle.of(item.language, item.code)) !== null && _a !== void 0 ? _a : '');
|
|
29
29
|
}
|
|
30
30
|
WebShareUtil.name = name;
|
|
31
31
|
/** The name of its icon (WEB_ICONS): that of the kind of work, a file's. */
|
|
32
32
|
function icon(item) {
|
|
33
|
-
var _a;
|
|
34
|
-
return item.kind === 'file' ? 'FileText' : ((_a = TA_WORK_BLOCKS[item.language]) !== null &&
|
|
33
|
+
var _a, _b;
|
|
34
|
+
return item.kind === 'file' ? 'FileText' : item.kind === 'link' ? ((_a = item.icon) !== null && _a !== void 0 ? _a : 'Link') : ((_b = TA_WORK_BLOCKS[item.language]) !== null && _b !== void 0 ? _b : 'Sparkles');
|
|
35
35
|
}
|
|
36
36
|
WebShareUtil.icon = icon;
|
|
37
37
|
function label(way) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ShareLinkUtil } from '@celljs/ta-protocol/lib/common/share-link';
|
|
1
2
|
import { message } from '../i18n/messages.js';
|
|
2
|
-
import { ShareLinkUtil } from '../util/share-link.js';
|
|
3
3
|
/** Extensions opened from links and the market without installing (ta-launcher.md): fetched, loaded, shown. */
|
|
4
4
|
export class WebSharing {
|
|
5
5
|
constructor(host) {
|
|
@@ -78,6 +78,8 @@ export declare const ASSISTANT_EN: {
|
|
|
78
78
|
'ta.task.running': string;
|
|
79
79
|
'ta.task.done': string;
|
|
80
80
|
'ta.task.failed': string;
|
|
81
|
+
'ta.task.deadEndFiltered': string;
|
|
82
|
+
'ta.task.deadEndEmpty': string;
|
|
81
83
|
'ta.task.verdictPass': string;
|
|
82
84
|
'ta.task.verdictFail': string;
|
|
83
85
|
'ta.task.branch': string;
|
|
@@ -78,6 +78,8 @@ export const ASSISTANT_EN = {
|
|
|
78
78
|
'ta.task.running': 'Running',
|
|
79
79
|
'ta.task.done': 'Done',
|
|
80
80
|
'ta.task.failed': 'Failed',
|
|
81
|
+
'ta.task.deadEndFiltered': 'Not done: the model service filtered the reply (tried once more)',
|
|
82
|
+
'ta.task.deadEndEmpty': 'Not done: the model stopped with no output (tried once more)',
|
|
81
83
|
'ta.task.verdictPass': 'Check passed',
|
|
82
84
|
'ta.task.verdictFail': 'Check failed',
|
|
83
85
|
'ta.task.branch': 'Branch {branch}',
|
|
@@ -15,6 +15,7 @@ export declare const CHAT_EN: {
|
|
|
15
15
|
'ta.chat.asking': string;
|
|
16
16
|
'ta.chat.draft': string;
|
|
17
17
|
'ta.chat.asksCount': string;
|
|
18
|
+
'ta.chat.unseenCount': string;
|
|
18
19
|
'ta.chat.letGo': string;
|
|
19
20
|
'ta.chat.toAsk': string;
|
|
20
21
|
'ta.chat.removed': string;
|
|
@@ -89,6 +90,7 @@ export declare const CHAT_EN: {
|
|
|
89
90
|
'ta.message.sendFailed': string;
|
|
90
91
|
'ta.message.resend': string;
|
|
91
92
|
'ta.message.discard': string;
|
|
93
|
+
'ta.message.sending': string;
|
|
92
94
|
'ta.message.noModel': string;
|
|
93
95
|
'ta.message.connectModel': string;
|
|
94
96
|
'ta.message.selectText': string;
|
|
@@ -228,6 +230,15 @@ export declare const CHAT_EN: {
|
|
|
228
230
|
'ta.composer.queue.takeBackTitle': string;
|
|
229
231
|
'ta.composer.queue.editTitle': string;
|
|
230
232
|
'ta.composer.queue.remove': string;
|
|
233
|
+
'ta.composer.queue.settings': string;
|
|
234
|
+
'ta.composer.queue.sendNowTitle': string;
|
|
235
|
+
'ta.composer.queue.sendNow': string;
|
|
236
|
+
'ta.composer.interruptTitle': string;
|
|
237
|
+
'ta.composer.followUpTitle': string;
|
|
238
|
+
'ta.composer.interruptPlaceholderTouch': string;
|
|
239
|
+
'ta.composer.interruptPlaceholder': string;
|
|
240
|
+
'ta.composer.followUpPlaceholderTouch': string;
|
|
241
|
+
'ta.composer.followUpPlaceholder': string;
|
|
231
242
|
'ta.chat.replyingFor': string;
|
|
232
243
|
'ta.chats.busy': string;
|
|
233
244
|
'ta.chat.tagOpen': string;
|
|
@@ -15,6 +15,7 @@ export const CHAT_EN = {
|
|
|
15
15
|
'ta.chat.asking': 'Your call',
|
|
16
16
|
'ta.chat.draft': 'Draft',
|
|
17
17
|
'ta.chat.asksCount': '{count} waiting for you to decide',
|
|
18
|
+
'ta.chat.unseenCount': '{count} new messages',
|
|
18
19
|
'ta.chat.letGo': 'Skip this decision',
|
|
19
20
|
'ta.chat.toAsk': 'Waiting for you: {question}',
|
|
20
21
|
'ta.chat.removed': 'Removed ({count})',
|
|
@@ -56,7 +57,7 @@ export const CHAT_EN = {
|
|
|
56
57
|
'ta.session.waitingClientTool': 'waiting for a client tool',
|
|
57
58
|
'ta.composer.placeholder': 'Message Ta; / for commands, @ for files',
|
|
58
59
|
'ta.composer.placeholderTouch': 'Message Ta',
|
|
59
|
-
'ta.composer.steerPlaceholder': 'Add to it or steer Ta;
|
|
60
|
+
'ta.composer.steerPlaceholder': 'Add to it or steer Ta; {alt}Enter queues, {mod}Enter sends now',
|
|
60
61
|
'ta.composer.steerPlaceholderTouch': 'Add to it or steer Ta',
|
|
61
62
|
'ta.composer.stopTitle': 'Stop (Esc)',
|
|
62
63
|
'ta.composer.stopping': 'Stopping…',
|
|
@@ -89,6 +90,7 @@ export const CHAT_EN = {
|
|
|
89
90
|
'ta.message.sendFailed': 'Not sent',
|
|
90
91
|
'ta.message.resend': 'Send again',
|
|
91
92
|
'ta.message.discard': 'Delete',
|
|
93
|
+
'ta.message.sending': 'Sending',
|
|
92
94
|
'ta.message.noModel': 'No model connected yet, so Ta cannot answer',
|
|
93
95
|
'ta.message.connectModel': 'Connect a model',
|
|
94
96
|
'ta.message.selectText': 'Select text',
|
|
@@ -194,7 +196,7 @@ export const CHAT_EN = {
|
|
|
194
196
|
'ta.talk.tooShort': 'Too short to send',
|
|
195
197
|
'ta.talk.hold': 'Hold to talk',
|
|
196
198
|
'ta.composer.keyboard': 'Type instead',
|
|
197
|
-
'ta.composer.steerTitle': 'Steer Ta (Enter);
|
|
199
|
+
'ta.composer.steerTitle': 'Steer Ta (Enter); {alt}Enter queues, {mod}Enter sends now',
|
|
198
200
|
'ta.composer.addImage': 'Add images',
|
|
199
201
|
'ta.composer.addMedia': 'Add images or videos',
|
|
200
202
|
'ta.composer.album': 'Album',
|
|
@@ -228,6 +230,15 @@ export const CHAT_EN = {
|
|
|
228
230
|
'ta.composer.queue.takeBackTitle': 'Take the waiting messages back into the box',
|
|
229
231
|
'ta.composer.queue.editTitle': 'Take back into the box to edit',
|
|
230
232
|
'ta.composer.queue.remove': 'Remove',
|
|
233
|
+
'ta.composer.queue.settings': 'Settings for messages sent while Ta works',
|
|
234
|
+
'ta.composer.queue.sendNowTitle': 'Stop what Ta is doing and send this at once',
|
|
235
|
+
'ta.composer.queue.sendNow': 'Send now',
|
|
236
|
+
'ta.composer.interruptTitle': 'Stop Ta and send now (Enter); {alt}Enter queues',
|
|
237
|
+
'ta.composer.followUpTitle': 'Queue for when Ta is done (Enter); {mod}Enter sends now',
|
|
238
|
+
'ta.composer.interruptPlaceholderTouch': 'Sending stops Ta and goes at once',
|
|
239
|
+
'ta.composer.interruptPlaceholder': 'Sending stops Ta and goes at once; {alt}Enter queues',
|
|
240
|
+
'ta.composer.followUpPlaceholderTouch': 'Queue a message for when Ta is done',
|
|
241
|
+
'ta.composer.followUpPlaceholder': 'Queue a message for when Ta is done; {mod}Enter sends now',
|
|
231
242
|
'ta.chat.replyingFor': '{names} · answering',
|
|
232
243
|
'ta.chats.busy': 'Conversations going on',
|
|
233
244
|
'ta.chat.tagOpen': 'What this means, and how to change it',
|
|
@@ -23,6 +23,9 @@ export declare const COMMON_EN: {
|
|
|
23
23
|
'ta.markdown.exitFullscreen': string;
|
|
24
24
|
'ta.markdown.enlarge': string;
|
|
25
25
|
'ta.images.expand': string;
|
|
26
|
+
'ta.images.original': string;
|
|
27
|
+
'ta.images.originalLoading': string;
|
|
28
|
+
'ta.images.originalFailed': string;
|
|
26
29
|
'ta.images.collapse': string;
|
|
27
30
|
'ta.zoom.in': string;
|
|
28
31
|
'ta.zoom.out': string;
|
|
@@ -36,6 +39,7 @@ export declare const COMMON_EN: {
|
|
|
36
39
|
'ta.zoom.next': string;
|
|
37
40
|
'ta.zoom.failed': string;
|
|
38
41
|
'ta.markdown.missing': string;
|
|
42
|
+
'ta.markdown.elsewhere': string;
|
|
39
43
|
'ta.markdown.retry': string;
|
|
40
44
|
'ta.link.openFile': string;
|
|
41
45
|
'ta.link.openFolder': string;
|
|
@@ -23,6 +23,9 @@ export const COMMON_EN = {
|
|
|
23
23
|
'ta.markdown.exitFullscreen': 'Exit full screen',
|
|
24
24
|
'ta.markdown.enlarge': 'View larger',
|
|
25
25
|
'ta.images.expand': 'Show {count}',
|
|
26
|
+
'ta.images.original': 'View original {size}',
|
|
27
|
+
'ta.images.originalLoading': 'Loading the original',
|
|
28
|
+
'ta.images.originalFailed': 'The original cannot come now: try again later',
|
|
26
29
|
'ta.images.collapse': 'Fold',
|
|
27
30
|
'ta.zoom.in': 'Zoom in',
|
|
28
31
|
'ta.zoom.out': 'Zoom out',
|
|
@@ -36,6 +39,7 @@ export const COMMON_EN = {
|
|
|
36
39
|
'ta.zoom.next': 'Next picture (→)',
|
|
37
40
|
'ta.zoom.failed': 'Cannot show this picture',
|
|
38
41
|
'ta.markdown.missing': 'Cannot show {name}',
|
|
42
|
+
'ta.markdown.elsewhere': '{name} is on their computer and did not come',
|
|
39
43
|
'ta.markdown.retry': 'Tap to try again',
|
|
40
44
|
// Links of replies
|
|
41
45
|
'ta.link.openFile': 'Click to open',
|
|
@@ -155,6 +155,11 @@ export declare const SERVICE_EN: {
|
|
|
155
155
|
'ta.cloud.codeTitle': string;
|
|
156
156
|
'ta.cloud.code': string;
|
|
157
157
|
'ta.cloud.pending': string;
|
|
158
|
+
'ta.cloud.failed.timeout': string;
|
|
159
|
+
'ta.cloud.failed.error': string;
|
|
160
|
+
'ta.cloud.renewed': string;
|
|
161
|
+
'ta.cloud.reconnecting': string;
|
|
162
|
+
'ta.cloud.signInAgain': string;
|
|
158
163
|
'ta.cloud.connecting': string;
|
|
159
164
|
'ta.cloud.retry': string;
|
|
160
165
|
'ta.cloud.device.title': string;
|
|
@@ -157,6 +157,11 @@ export const SERVICE_EN = {
|
|
|
157
157
|
'ta.cloud.codeTitle': 'Finish in the browser',
|
|
158
158
|
'ta.cloud.code': 'Check the browser shows the same code, and sign in there. Ta connects here once you have.',
|
|
159
159
|
'ta.cloud.pending': 'Waiting for you to sign in…',
|
|
160
|
+
'ta.cloud.failed.timeout': 'The sign-in timed out. Try again.',
|
|
161
|
+
'ta.cloud.failed.error': "The sign-in didn't go through. Try again.",
|
|
162
|
+
'ta.cloud.renewed': 'This sign-in waited too long and expired. Sign in again below.',
|
|
163
|
+
'ta.cloud.reconnecting': 'Reconnecting to Ta in the cloud…',
|
|
164
|
+
'ta.cloud.signInAgain': 'Sign in again',
|
|
160
165
|
'ta.cloud.connecting': 'Connecting to {host}…',
|
|
161
166
|
'ta.cloud.retry': 'Try again',
|
|
162
167
|
'ta.cloud.device.title': 'Let a device sign in',
|
|
@@ -213,6 +213,11 @@ export declare const SETTINGS_EN: {
|
|
|
213
213
|
'ta.setting.transport': string;
|
|
214
214
|
'ta.setting.transport.hint': string;
|
|
215
215
|
'ta.setting.transport.auto': string;
|
|
216
|
+
'ta.settings.sendWhileWorking': string;
|
|
217
|
+
'ta.settings.sendWhileWorkingHint': string;
|
|
218
|
+
'ta.settings.sendWhileWorking.steer': string;
|
|
219
|
+
'ta.settings.sendWhileWorking.followUp': string;
|
|
220
|
+
'ta.settings.sendWhileWorking.interrupt': string;
|
|
216
221
|
'ta.setting.steeringMode': string;
|
|
217
222
|
'ta.setting.steeringMode.hint': string;
|
|
218
223
|
'ta.setting.steeringMode.one-at-a-time': string;
|
|
@@ -277,6 +282,7 @@ export declare const SETTINGS_EN: {
|
|
|
277
282
|
'ta.shortcut.send': string;
|
|
278
283
|
'ta.shortcut.newline': string;
|
|
279
284
|
'ta.shortcut.followUp': string;
|
|
285
|
+
'ta.shortcut.sendNow': string;
|
|
280
286
|
'ta.shortcut.stop': string;
|
|
281
287
|
'ta.shortcut.commands': string;
|
|
282
288
|
'ta.shortcut.files': string;
|
|
@@ -213,12 +213,17 @@ export const SETTINGS_EN = {
|
|
|
213
213
|
'ta.setting.transport': 'Transport',
|
|
214
214
|
'ta.setting.transport.hint': 'How Ta reaches a provider that offers more than one way.',
|
|
215
215
|
'ta.setting.transport.auto': 'Auto',
|
|
216
|
+
'ta.settings.sendWhileWorking': 'Sending while Ta works',
|
|
217
|
+
'ta.settings.sendWhileWorkingHint': 'What Enter and the send button do while Ta works, on this device. {alt}Enter and {mod}Enter do another for once.',
|
|
218
|
+
'ta.settings.sendWhileWorking.steer': 'Steer (recommended)',
|
|
219
|
+
'ta.settings.sendWhileWorking.followUp': 'Queue',
|
|
220
|
+
'ta.settings.sendWhileWorking.interrupt': 'Send now',
|
|
216
221
|
'ta.setting.steeringMode': 'Steering messages',
|
|
217
|
-
'ta.setting.steeringMode.hint': '
|
|
222
|
+
'ta.setting.steeringMode.hint': 'Ta reads them once its tools of now are done: several one at a time, or all together.',
|
|
218
223
|
'ta.setting.steeringMode.one-at-a-time': 'One at a time',
|
|
219
224
|
'ta.setting.steeringMode.all': 'All together',
|
|
220
225
|
'ta.setting.followUpMode': 'Queued messages',
|
|
221
|
-
'ta.setting.followUpMode.hint': '
|
|
226
|
+
'ta.setting.followUpMode.hint': 'They go when the run ends: several one at a time, or all together.',
|
|
222
227
|
'ta.setting.followUpMode.one-at-a-time': 'One at a time',
|
|
223
228
|
'ta.setting.followUpMode.all': 'All together',
|
|
224
229
|
'ta.setting.context.renewAt': 'Renew the context at',
|
|
@@ -277,6 +282,7 @@ export const SETTINGS_EN = {
|
|
|
277
282
|
'ta.shortcut.send': 'Send',
|
|
278
283
|
'ta.shortcut.newline': 'New line',
|
|
279
284
|
'ta.shortcut.followUp': 'Queue a message while Ta works',
|
|
285
|
+
'ta.shortcut.sendNow': 'Send now: stop Ta and handle this at once',
|
|
280
286
|
'ta.shortcut.stop': 'Stop Ta',
|
|
281
287
|
'ta.shortcut.commands': 'Commands and skills',
|
|
282
288
|
'ta.shortcut.files': 'Mention a file',
|
|
@@ -77,6 +77,8 @@ export const ASSISTANT_JA = {
|
|
|
77
77
|
'ta.task.running': '進行中',
|
|
78
78
|
'ta.task.done': '完了',
|
|
79
79
|
'ta.task.failed': '失敗',
|
|
80
|
+
'ta.task.deadEndFiltered': '未完了:応答がモデルサービスのコンテンツフィルターで止められました(自動で一度再試行済み)',
|
|
81
|
+
'ta.task.deadEndEmpty': '未完了:モデルが何も出力せずに終了しました(自動で一度再試行済み)',
|
|
80
82
|
'ta.task.verdictPass': 'チェック合格',
|
|
81
83
|
'ta.task.verdictFail': 'チェック不合格',
|
|
82
84
|
'ta.task.branch': 'ブランチ {branch}',
|
|
@@ -14,6 +14,7 @@ export const CHAT_JA = {
|
|
|
14
14
|
'ta.chat.asking': 'あなたの判断待ち',
|
|
15
15
|
'ta.chat.draft': '下書き',
|
|
16
16
|
'ta.chat.asksCount': '{count} 件の判断待ち',
|
|
17
|
+
'ta.chat.unseenCount': '新着メッセージ {count} 件',
|
|
17
18
|
'ta.chat.letGo': '判断は不要です',
|
|
18
19
|
'ta.chat.toAsk': 'あなたの判断待ち:{question}',
|
|
19
20
|
'ta.chat.removed': '削除済み({count})',
|
|
@@ -55,7 +56,7 @@ export const CHAT_JA = {
|
|
|
55
56
|
'ta.session.waitingClientTool': 'クライアント ツールを待機中',
|
|
56
57
|
'ta.composer.placeholder': 'Ta にメッセージを送信してください。/ でコマンド、@ でファイルを参照',
|
|
57
58
|
'ta.composer.placeholderTouch': 'Ta にメッセージを送信してください',
|
|
58
|
-
'ta.composer.steerPlaceholder': '追加または Ta
|
|
59
|
+
'ta.composer.steerPlaceholder': '追加または Ta を誘導。{alt}Enter でキュー、{mod}Enter で今すぐ送信',
|
|
59
60
|
'ta.composer.steerPlaceholderTouch': '追加または Ta を誘導してください',
|
|
60
61
|
'ta.composer.stopTitle': '停止(Esc)',
|
|
61
62
|
'ta.composer.stopping': '停止中…',
|
|
@@ -88,6 +89,7 @@ export const CHAT_JA = {
|
|
|
88
89
|
'ta.message.sendFailed': '送信されませんでした',
|
|
89
90
|
'ta.message.resend': 'もう一度送信',
|
|
90
91
|
'ta.message.discard': '削除',
|
|
92
|
+
'ta.message.sending': '送信中',
|
|
91
93
|
'ta.message.noModel': 'モデルにまだ接続していないため、Ta は答えられません',
|
|
92
94
|
'ta.message.connectModel': 'モデルに接続',
|
|
93
95
|
'ta.message.selectText': 'テキストを選択',
|
|
@@ -193,7 +195,7 @@ export const CHAT_JA = {
|
|
|
193
195
|
'ta.talk.tooShort': '送信するには短すぎます',
|
|
194
196
|
'ta.talk.hold': '押したまま話す',
|
|
195
197
|
'ta.composer.keyboard': 'キーボードに切り替え',
|
|
196
|
-
'ta.composer.steerTitle': 'Ta
|
|
198
|
+
'ta.composer.steerTitle': 'Ta を誘導(Enter)。{alt}Enter でキュー、{mod}Enter で今すぐ送信',
|
|
197
199
|
'ta.composer.addImage': '画像を追加',
|
|
198
200
|
'ta.composer.addMedia': '画像・動画を追加',
|
|
199
201
|
'ta.composer.album': 'アルバム',
|
|
@@ -227,6 +229,15 @@ export const CHAT_JA = {
|
|
|
227
229
|
'ta.composer.queue.takeBackTitle': 'キューにあるメッセージを入力ボックスに戻す',
|
|
228
230
|
'ta.composer.queue.editTitle': '編集するため入力ボックスに戻す',
|
|
229
231
|
'ta.composer.queue.remove': '削除',
|
|
232
|
+
'ta.composer.queue.settings': '作業中に送るメッセージの設定',
|
|
233
|
+
'ta.composer.queue.sendNowTitle': 'Ta の作業を止めて、これをすぐ送信',
|
|
234
|
+
'ta.composer.queue.sendNow': '今すぐ送信',
|
|
235
|
+
'ta.composer.interruptTitle': 'Ta を止めて今すぐ送信(Enter)。{alt}Enter でキュー',
|
|
236
|
+
'ta.composer.followUpTitle': '返信後に送信(Enter)。{mod}Enter で今すぐ送信',
|
|
237
|
+
'ta.composer.interruptPlaceholderTouch': '送信すると Ta を止めてすぐ処理します',
|
|
238
|
+
'ta.composer.interruptPlaceholder': '送信すると Ta を止めてすぐ処理します。{alt}Enter でキュー',
|
|
239
|
+
'ta.composer.followUpPlaceholderTouch': '返信後に送るメッセージをキューに入れる',
|
|
240
|
+
'ta.composer.followUpPlaceholder': '返信後に送るメッセージをキューに入れる。{mod}Enter で今すぐ送信',
|
|
230
241
|
'ta.chat.replyingFor': '{names} · 返信中',
|
|
231
242
|
'ta.chats.busy': '進行中の会話',
|
|
232
243
|
'ta.chat.tagOpen': '意味と変更方法',
|
|
@@ -22,6 +22,9 @@ export const COMMON_JA = {
|
|
|
22
22
|
'ta.markdown.exitFullscreen': '全画面を終了',
|
|
23
23
|
'ta.markdown.enlarge': '大きく見る',
|
|
24
24
|
'ta.images.expand': '{count} 枚を表示',
|
|
25
|
+
'ta.images.original': '元の画像を表示 {size}',
|
|
26
|
+
'ta.images.originalLoading': '元の画像を読み込み中',
|
|
27
|
+
'ta.images.originalFailed': '元の画像を今は取得できません。後でもう一度お試しください',
|
|
25
28
|
'ta.images.collapse': 'たたむ',
|
|
26
29
|
'ta.zoom.in': '拡大',
|
|
27
30
|
'ta.zoom.out': '縮小',
|
|
@@ -35,6 +38,7 @@ export const COMMON_JA = {
|
|
|
35
38
|
'ta.zoom.next': '次の画像(→)',
|
|
36
39
|
'ta.zoom.failed': 'この画像は表示できません',
|
|
37
40
|
'ta.markdown.missing': '{name} は表示できません',
|
|
41
|
+
'ta.markdown.elsewhere': '{name} は相手のコンピューターにあり、届いていません',
|
|
38
42
|
'ta.markdown.retry': 'タップして再読み込み',
|
|
39
43
|
'ta.link.openFile': 'クリックして開く',
|
|
40
44
|
'ta.link.openFolder': 'クリックしてエクスプローラーで表示',
|
|
@@ -154,6 +154,11 @@ export const SERVICE_JA = {
|
|
|
154
154
|
'ta.cloud.codeTitle': 'ブラウザで完了してください',
|
|
155
155
|
'ta.cloud.code': 'ブラウザに同じコードが表示されていることを確認し、そこでサインインしてください。完了するとここで自動的に接続します。',
|
|
156
156
|
'ta.cloud.pending': 'サインインを待っています…',
|
|
157
|
+
'ta.cloud.failed.timeout': 'サインインの確認がタイムアウトしました。もう一度お試しください。',
|
|
158
|
+
'ta.cloud.failed.error': 'サインインできませんでした。もう一度お試しください。',
|
|
159
|
+
'ta.cloud.renewed': '時間が経ちすぎてこのサインインは無効になりました。下からサインインし直してください。',
|
|
160
|
+
'ta.cloud.reconnecting': 'クラウドの Ta に再接続しています…',
|
|
161
|
+
'ta.cloud.signInAgain': 'サインインし直す',
|
|
157
162
|
'ta.cloud.connecting': '{host} に接続しています…',
|
|
158
163
|
'ta.cloud.retry': '再試行',
|
|
159
164
|
'ta.cloud.device.title': '新しいデバイスのサインインを許可',
|