@celljs/ta-web 4.38.0 → 4.39.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-thread.d.ts +1 -1
- package/esm/browser/assistant/chat-task-source.js +2 -1
- package/esm/browser/components/app-contexts.js +11 -10
- package/esm/browser/components/chat-asks.d.ts +4 -1
- package/esm/browser/components/chat-asks.js +10 -0
- package/esm/browser/components/chat-list-row.js +5 -3
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/composer-box-protocol.d.ts +5 -0
- package/esm/browser/components/composer-box.js +11 -14
- package/esm/browser/components/composer-media.d.ts +26 -0
- package/esm/browser/components/composer-media.js +37 -0
- package/esm/browser/components/composer-target.d.ts +2 -2
- package/esm/browser/components/composer-target.js +3 -3
- package/esm/browser/components/composer.js +1 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/link.d.ts +7 -1
- package/esm/browser/components/link.js +24 -5
- package/esm/browser/components/markdown.d.ts +1 -1
- package/esm/browser/components/markdown.js +70 -4
- package/esm/browser/components/remote-hosts.d.ts +3 -1
- package/esm/browser/components/remote-hosts.js +10 -5
- package/esm/browser/components/session-view.js +10 -6
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +12 -3
- package/esm/browser/device/photo-picker.d.ts +11 -3
- package/esm/browser/device/photo-picker.js +26 -9
- package/esm/browser/device/video-picks.d.ts +24 -0
- package/esm/browser/device/video-picks.js +104 -0
- package/esm/browser/extension/icons.js +3 -1
- package/esm/browser/extension/web-access.js +4 -1
- package/esm/browser/extension/web-api-code.d.ts +36 -0
- package/esm/browser/extension/web-api-code.js +3 -0
- package/esm/browser/extension/web-api-components.d.ts +22 -0
- package/esm/browser/extension/web-api-contributions.d.ts +0 -31
- package/esm/browser/extension/web-api-menus.d.ts +17 -5
- package/esm/browser/extension/web-api-play.d.ts +29 -0
- package/esm/browser/extension/web-api-play.js +2 -0
- package/esm/browser/extension/web-api-spec.js +3 -0
- package/esm/browser/extension/web-api-terminal.d.ts +20 -0
- package/esm/browser/extension/web-extension-api.d.ts +12 -17
- package/esm/browser/extension/web-extension-context.d.ts +1 -1
- package/esm/browser/extension/web-extension-context.js +4 -3
- package/esm/browser/extension/web-extension-protocol.d.ts +2 -0
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +4 -3
- package/esm/browser/extension/web-extension-run.js +15 -8
- package/esm/browser/extension/web-extensions-running.js +38 -7
- package/esm/browser/extension/web-on-demand.d.ts +5 -0
- package/esm/browser/extension/web-on-demand.js +11 -0
- package/esm/browser/i18n/en/assistant.d.ts +3 -0
- package/esm/browser/i18n/en/assistant.js +3 -0
- package/esm/browser/i18n/en/chat.d.ts +1 -0
- package/esm/browser/i18n/en/chat.js +1 -0
- package/esm/browser/i18n/en/common.d.ts +1 -0
- package/esm/browser/i18n/en/common.js +1 -0
- package/esm/browser/i18n/en/discover.d.ts +2 -0
- package/esm/browser/i18n/en/discover.js +2 -0
- package/esm/browser/i18n/en/service.js +6 -6
- package/esm/browser/i18n/ja/assistant.js +3 -0
- package/esm/browser/i18n/ja/chat.js +1 -0
- package/esm/browser/i18n/ja/common.js +1 -0
- package/esm/browser/i18n/ja/discover.js +2 -0
- package/esm/browser/i18n/ja/service.js +6 -6
- package/esm/browser/i18n/locales.d.ts +8 -1
- package/esm/browser/i18n/messages.d.ts +7 -0
- package/esm/browser/i18n/zh/assistant.js +3 -0
- package/esm/browser/i18n/zh/chat.js +1 -0
- package/esm/browser/i18n/zh/common.js +1 -0
- package/esm/browser/i18n/zh/discover.js +2 -0
- package/esm/browser/i18n/zh/service.js +6 -6
- package/esm/browser/i18n/zh-tw/assistant.js +3 -0
- package/esm/browser/i18n/zh-tw/chat.js +1 -0
- package/esm/browser/i18n/zh-tw/common.js +1 -0
- package/esm/browser/i18n/zh-tw/discover.js +2 -0
- package/esm/browser/i18n/zh-tw/service.js +6 -6
- package/esm/browser/markdown/code-renderers.d.ts +3 -1
- package/esm/browser/markdown/code-renderers.js +2 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/sandbox/work/work-api.d.ts +113 -0
- package/esm/browser/sandbox/work/work-api.js +95 -0
- package/esm/browser/sandbox/work/work-docs.d.ts +18 -0
- package/esm/browser/sandbox/work/work-docs.js +66 -0
- package/esm/browser/sandbox/work/work-frame.d.ts +27 -0
- package/esm/browser/sandbox/work/work-frame.js +124 -0
- package/esm/browser/share/shared-extensions.d.ts +2 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +10 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +1 -0
- package/esm/browser/terminal/terminal-osc.d.ts +15 -0
- package/esm/browser/terminal/terminal-osc.js +91 -0
- package/esm/browser/terminal/web-terminal.d.ts +4 -7
- package/esm/browser/terminal/web-terminal.js +22 -26
- package/esm/browser/util/link.d.ts +6 -1
- package/esm/browser/util/link.js +11 -0
- package/lib/browser/assistant/assistant-thread.d.ts +1 -1
- package/lib/browser/assistant/chat-task-source.js +2 -1
- package/lib/browser/components/app-contexts.js +10 -9
- package/lib/browser/components/chat-asks.d.ts +4 -1
- package/lib/browser/components/chat-asks.js +10 -0
- package/lib/browser/components/chat-list-row.js +5 -3
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/composer-box-protocol.d.ts +5 -0
- package/lib/browser/components/composer-box.js +9 -12
- package/lib/browser/components/composer-media.d.ts +27 -0
- package/lib/browser/components/composer-media.js +74 -0
- package/lib/browser/components/composer-target.d.ts +2 -2
- package/lib/browser/components/composer-target.js +3 -3
- package/lib/browser/components/composer.js +1 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/link.d.ts +7 -1
- package/lib/browser/components/link.js +25 -6
- package/lib/browser/components/markdown.d.ts +1 -1
- package/lib/browser/components/markdown.js +68 -2
- package/lib/browser/components/remote-hosts.d.ts +3 -1
- package/lib/browser/components/remote-hosts.js +10 -5
- package/lib/browser/components/session-view.js +8 -4
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +12 -3
- package/lib/browser/device/photo-picker.d.ts +11 -3
- package/lib/browser/device/photo-picker.js +26 -9
- package/lib/browser/device/video-picks.d.ts +25 -0
- package/lib/browser/device/video-picks.js +107 -0
- package/lib/browser/extension/icons.js +2 -0
- package/lib/browser/extension/web-access.js +4 -1
- package/lib/browser/extension/web-api-code.d.ts +37 -0
- package/lib/browser/extension/web-api-code.js +4 -0
- package/lib/browser/extension/web-api-components.d.ts +22 -0
- package/lib/browser/extension/web-api-contributions.d.ts +0 -31
- package/lib/browser/extension/web-api-menus.d.ts +17 -5
- package/lib/browser/extension/web-api-play.d.ts +30 -0
- package/lib/browser/extension/web-api-play.js +3 -0
- package/lib/browser/extension/web-api-spec.js +3 -0
- package/lib/browser/extension/web-api-terminal.d.ts +20 -0
- package/lib/browser/extension/web-extension-api.d.ts +12 -17
- package/lib/browser/extension/web-extension-context.d.ts +1 -1
- package/lib/browser/extension/web-extension-context.js +4 -3
- package/lib/browser/extension/web-extension-protocol.d.ts +2 -0
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +4 -3
- package/lib/browser/extension/web-extension-run.js +15 -8
- package/lib/browser/extension/web-extensions-running.js +38 -7
- package/lib/browser/extension/web-on-demand.d.ts +5 -0
- package/lib/browser/extension/web-on-demand.js +11 -0
- package/lib/browser/i18n/en/assistant.d.ts +3 -0
- package/lib/browser/i18n/en/assistant.js +3 -0
- package/lib/browser/i18n/en/chat.d.ts +1 -0
- package/lib/browser/i18n/en/chat.js +1 -0
- package/lib/browser/i18n/en/common.d.ts +1 -0
- package/lib/browser/i18n/en/common.js +1 -0
- package/lib/browser/i18n/en/discover.d.ts +2 -0
- package/lib/browser/i18n/en/discover.js +2 -0
- package/lib/browser/i18n/en/service.js +6 -6
- package/lib/browser/i18n/ja/assistant.js +3 -0
- package/lib/browser/i18n/ja/chat.js +1 -0
- package/lib/browser/i18n/ja/common.js +1 -0
- package/lib/browser/i18n/ja/discover.js +2 -0
- package/lib/browser/i18n/ja/service.js +6 -6
- package/lib/browser/i18n/locales.d.ts +8 -1
- package/lib/browser/i18n/messages.d.ts +7 -0
- package/lib/browser/i18n/zh/assistant.js +3 -0
- package/lib/browser/i18n/zh/chat.js +1 -0
- package/lib/browser/i18n/zh/common.js +1 -0
- package/lib/browser/i18n/zh/discover.js +2 -0
- package/lib/browser/i18n/zh/service.js +6 -6
- package/lib/browser/i18n/zh-tw/assistant.js +3 -0
- package/lib/browser/i18n/zh-tw/chat.js +1 -0
- package/lib/browser/i18n/zh-tw/common.js +1 -0
- package/lib/browser/i18n/zh-tw/discover.js +2 -0
- package/lib/browser/i18n/zh-tw/service.js +6 -6
- package/lib/browser/markdown/code-renderers.d.ts +3 -1
- package/lib/browser/markdown/code-renderers.js +3 -1
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/sandbox/work/work-api.d.ts +114 -0
- package/lib/browser/sandbox/work/work-api.js +99 -0
- package/lib/browser/sandbox/work/work-docs.d.ts +19 -0
- package/lib/browser/sandbox/work/work-docs.js +69 -0
- package/lib/browser/sandbox/work/work-frame.d.ts +28 -0
- package/lib/browser/sandbox/work/work-frame.js +160 -0
- package/lib/browser/share/shared-extensions.d.ts +2 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +10 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +1 -0
- package/lib/browser/terminal/terminal-osc.d.ts +16 -0
- package/lib/browser/terminal/terminal-osc.js +94 -0
- package/lib/browser/terminal/web-terminal.d.ts +4 -7
- package/lib/browser/terminal/web-terminal.js +25 -29
- package/lib/browser/util/link.d.ts +6 -1
- package/lib/browser/util/link.js +11 -0
- package/package.json +7 -7
|
@@ -2,16 +2,16 @@ import type { TaEvent, TaRoomEvent, TaSavedSessionInfo, TaSessionInfo } from '@c
|
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
import type { Mood } from '../avatar/dino-avatar.js';
|
|
4
4
|
import type { DeviceState } from '../device/device-protocol.js';
|
|
5
|
-
import type { GameProps } from '../game/game-protocol.js';
|
|
6
|
-
import type { Game3DProps } from '../game/game3d-protocol.js';
|
|
7
5
|
import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol.js';
|
|
8
6
|
import type { Language, Theme } from '../settings/settings-protocol.js';
|
|
7
|
+
import type { WebCodeRendererOptions, WebCodeRendererProps } from './web-api-code.js';
|
|
9
8
|
import type { CodeEditorProps, DiffEditorProps, WebAvatarProps, WebChatImagesProps, 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';
|
|
10
|
-
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI,
|
|
9
|
+
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions.js';
|
|
11
10
|
import type { WebDesktop, WebDeviceUI, WebFileDrag } from './web-api-desktop.js';
|
|
12
11
|
import type { WebEditorsUI } from './web-api-editors.js';
|
|
13
12
|
import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home.js';
|
|
14
13
|
import type { WebFileRef, WebMenus } from './web-api-menus.js';
|
|
14
|
+
import type { WebPlayUI } from './web-api-play.js';
|
|
15
15
|
import type { WebServices } from './web-api-services.js';
|
|
16
16
|
import type { WebPackageStorage } from './web-api-storage.js';
|
|
17
17
|
import type { WebTargetsAPI } from './web-api-targets.js';
|
|
@@ -23,12 +23,14 @@ export type { TaFileBytes, TaFiles } from '../files/files-protocol.js';
|
|
|
23
23
|
export type { GameColors, GameConfig, GameEngine, GameInstance, GamePage, GamePoint, GameProps, GameState } from '../game/game-protocol.js';
|
|
24
24
|
export type { Game3DContext, Game3DEngine, Game3DLoop, Game3DProps } from '../game/game3d-protocol.js';
|
|
25
25
|
export type { Language, Theme } from '../settings/settings-protocol.js';
|
|
26
|
+
export type * from './web-api-code.js';
|
|
26
27
|
export type * from './web-api-components.js';
|
|
27
28
|
export type * from './web-api-contributions.js';
|
|
28
29
|
export type * from './web-api-desktop.js';
|
|
29
30
|
export type * from './web-api-editors.js';
|
|
30
31
|
export type * from './web-api-home.js';
|
|
31
32
|
export type * from './web-api-menus.js';
|
|
33
|
+
export type * from './web-api-play.js';
|
|
32
34
|
export type * from './web-api-services.js';
|
|
33
35
|
export type * from './web-api-storage.js';
|
|
34
36
|
export type * from './web-api-targets.js';
|
|
@@ -201,7 +203,7 @@ export interface WebNotifyOptions {
|
|
|
201
203
|
export type { ScreenAction, ScreenItem, ScreenPartSpec, ScreenPartView, ScreenPlace, ScreenScrollable, ScreenScrollTo } from '../screen/screen-protocol.js';
|
|
202
204
|
/** What web extensions see of TaScreen. */
|
|
203
205
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
204
|
-
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI {
|
|
206
|
+
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI, WebPlayUI {
|
|
205
207
|
/** A widget around the message box, as pi's, or a card in the workbench on the right; `undefined` removes it. */
|
|
206
208
|
setWidget(key: string, widget: React.ComponentType | undefined, options?: WidgetOptions): void;
|
|
207
209
|
/**
|
|
@@ -254,6 +256,8 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
254
256
|
* icon of the page as events and methods of the element (Electron's). Elsewhere, an iframe.
|
|
255
257
|
*/
|
|
256
258
|
readonly supportsWebview: boolean;
|
|
259
|
+
/** The message box (`Composer`) takes `videos`, picked with the pictures. Newer than some Ta apps. */
|
|
260
|
+
readonly composerVideos?: boolean;
|
|
257
261
|
/**
|
|
258
262
|
* Ta Desktop's way to the file manager of the system (Finder, File Explorer, that of Linux), for paths of
|
|
259
263
|
* this machine; undefined in a browser and the mobile app. A directory of `ssh://` is not of this machine.
|
|
@@ -273,7 +277,10 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
273
277
|
* element's `loadURL`); the app refuses the rest.
|
|
274
278
|
*/
|
|
275
279
|
readonly debugWebview?: (webContentsId: number, method: string, params?: Record<string, unknown>) => Promise<unknown>;
|
|
276
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Into the message box in front (a conversation's, or `ui.Composer` of a page): `quote` before what it holds, `images`
|
|
282
|
+
* (base64) as if pasted; false when none shows.
|
|
283
|
+
*/
|
|
277
284
|
addToComposer(draft: {
|
|
278
285
|
quote?: string;
|
|
279
286
|
images?: {
|
|
@@ -447,18 +454,6 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI,
|
|
|
447
454
|
* time one is made; what it shows stays while no view shows it (`attach` it to the next one).
|
|
448
455
|
*/
|
|
449
456
|
createTerminal(options?: WebTerminalOptions): WebTerminal;
|
|
450
|
-
/**
|
|
451
|
-
* A game, drawn by Phaser, the game engine of the page (docs/design/ta-games.md): it fills its parent (a
|
|
452
|
-
* column of flex, or an element with a size), sleeps while out of sight and ends when it unmounts. Phaser
|
|
453
|
-
* loads the first time a game starts; an extension never brings an engine of its own.
|
|
454
|
-
*/
|
|
455
|
-
readonly Game: React.ComponentType<GameProps>;
|
|
456
|
-
/**
|
|
457
|
-
* A 3D game, drawn by Three.js, the 3D engine of the page, with its OrbitControls: `setup` puts things in
|
|
458
|
-
* the scene it is given and returns what to do each frame. As `Game`, it fills its parent, sleeps while out
|
|
459
|
-
* of sight and ends when it unmounts, all of its scene disposed; Three.js loads the first time one starts.
|
|
460
|
-
*/
|
|
461
|
-
readonly Game3D: React.ComponentType<Game3DProps>;
|
|
462
457
|
/**
|
|
463
458
|
* What covers all of the page while it is mounted: the shell, its head and side columns, under the notch and
|
|
464
459
|
* the home bar (mind `env(safe-area-inset-*)`), below the title bar of the desktop app and above the keyboard.
|
|
@@ -9,7 +9,7 @@ import type { TaSettings } from '../settings/settings-protocol.js';
|
|
|
9
9
|
import type { TaState } from '../state/state-protocol.js';
|
|
10
10
|
import { type TaTargets } from '../targets/targets-protocol.js';
|
|
11
11
|
import type { TaWorkbench } from '../workbench-protocol.js';
|
|
12
|
-
import type { WebCodeRendererProps } from './web-api-
|
|
12
|
+
import type { WebCodeRendererProps } from './web-api-code.js';
|
|
13
13
|
import type { WebEditorTabs } from './web-editor-tabs.js';
|
|
14
14
|
import type { CodeEditorProps, DiffEditorProps, WebComposerProps, WebExtensionAPI, WebExtensionUI, WebFolderPickerProps, WebHoldToTalkProps, WebModelPickerProps, WebShareSheetProps, WebStorage, WebViewInfo, WebVoice } from './web-extension-api.js';
|
|
15
15
|
import { type TaWebExtensions, type WebExtensionConversation, type WebSessionSwitcher } from './web-extension-protocol.js';
|
|
@@ -43,6 +43,7 @@ import { DraftPlaces } from '../drafts/drafts-protocol.js';
|
|
|
43
43
|
import { Game3DView, GameView } from '../game/game-view.js';
|
|
44
44
|
import { message as messageOf } from '../i18n/messages.js';
|
|
45
45
|
import { translator } from '../i18n/use-t.js';
|
|
46
|
+
import { WorkFrame } from '../sandbox/work/work-frame.js';
|
|
46
47
|
import { ScreenUtil } from '../screen/screen-protocol.js';
|
|
47
48
|
import { TargetsUtil } from '../targets/targets-protocol.js';
|
|
48
49
|
import { DefaultWebTerminal } from '../terminal/web-terminal.js';
|
|
@@ -194,9 +195,7 @@ export class WebExtensionContext {
|
|
|
194
195
|
registerCodeRenderer: (language, renderer, options) => register(() => {
|
|
195
196
|
const key = language.trim().toLowerCase();
|
|
196
197
|
run.codeRenderers.set(key, WebExtensionContext.replying(renderer, mark));
|
|
197
|
-
|
|
198
|
-
run.codeSpeech.set(key, options.spoken);
|
|
199
|
-
}
|
|
198
|
+
run.codeOptions.set(key, options !== null && options !== void 0 ? options : {});
|
|
200
199
|
}),
|
|
201
200
|
registerCallPartner: partner => register(() => run.callPartners.push(partner)),
|
|
202
201
|
registerCallMouth: mouth => register(() => run.callMouths.push(mouth)),
|
|
@@ -296,6 +295,7 @@ export class WebExtensionContext {
|
|
|
296
295
|
return settings.state.language;
|
|
297
296
|
},
|
|
298
297
|
supportsWebview: DesktopUtil.has('webview'),
|
|
298
|
+
composerVideos: true,
|
|
299
299
|
desktop: DesktopUtil.fileManager(),
|
|
300
300
|
fileDrag: FILE_DRAG,
|
|
301
301
|
debugWebview: DesktopUtil.debugWebview(),
|
|
@@ -444,6 +444,7 @@ export class WebExtensionContext {
|
|
|
444
444
|
ImageViewer,
|
|
445
445
|
ChatImages,
|
|
446
446
|
QrCode: QrView,
|
|
447
|
+
WorkFrame,
|
|
447
448
|
ShareSheet: this.shareSheet,
|
|
448
449
|
Dialog: WebDialog,
|
|
449
450
|
FolderPicker: this.folderPicker,
|
|
@@ -126,6 +126,8 @@ export interface WebExtensionsState {
|
|
|
126
126
|
codeRenderers: Record<string, React.ComponentType<WebCodeRendererProps>>;
|
|
127
127
|
/** By language, in lower case, how its blocks are said aloud (WebCodeRendererOptions.spoken): SpokenReply. */
|
|
128
128
|
codeSpeech: BlockSpeech;
|
|
129
|
+
/** The languages whose renderers tell the parts of a block apart (WebCodeRendererOptions.pointable). */
|
|
130
|
+
codePointable: Readonly<Record<string, true>>;
|
|
129
131
|
/** Who answers in calls in place of the conversation (WebExtensionAPI.registerCallPartner): the first registered. */
|
|
130
132
|
callPartner?: WebCallPartner;
|
|
131
133
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TaEvent } from '@celljs/ta-protocol';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebVoice, WidgetOptions } from './web-extension-api.js';
|
|
3
|
+
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebCodeRendererOptions, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebVoice, WidgetOptions } from './web-extension-api.js';
|
|
4
4
|
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol.js';
|
|
5
5
|
/** What an extension registered through its API: all of it goes when it stops. */
|
|
6
6
|
export interface WebRegistrations {
|
|
@@ -11,7 +11,8 @@ export interface WebRegistrations {
|
|
|
11
11
|
}>;
|
|
12
12
|
renderers: Map<string, WebExtensionsState['renderers'][string]>;
|
|
13
13
|
codeRenderers: Map<string, WebExtensionsState['codeRenderers'][string]>;
|
|
14
|
-
|
|
14
|
+
/** By language, in lower case (WebCodeRendererOptions): how its blocks are said aloud, whether they can be pointed at. */
|
|
15
|
+
codeOptions: Map<string, WebCodeRendererOptions>;
|
|
15
16
|
callPartners: WebCallPartner[];
|
|
16
17
|
callMouths: WebCallMouth[];
|
|
17
18
|
callMoves: WebCallMoves[];
|
|
@@ -69,5 +70,5 @@ export declare namespace WebExtensionRunUtil {
|
|
|
69
70
|
*/
|
|
70
71
|
function voice(run: WebExtensionRun, voice: WebVoice): WebVoice;
|
|
71
72
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
72
|
-
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'codeMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
73
|
+
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'codeMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'codePointable' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
73
74
|
}
|
|
@@ -21,7 +21,7 @@ export var WebExtensionRunUtil;
|
|
|
21
21
|
widgets: new Map(),
|
|
22
22
|
renderers: new Map(),
|
|
23
23
|
codeRenderers: new Map(),
|
|
24
|
-
|
|
24
|
+
codeOptions: new Map(),
|
|
25
25
|
callPartners: [],
|
|
26
26
|
callMouths: [],
|
|
27
27
|
callMoves: [],
|
|
@@ -112,11 +112,12 @@ export var WebExtensionRunUtil;
|
|
|
112
112
|
WebExtensionRunUtil.voice = voice;
|
|
113
113
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
114
114
|
function collect(runs, onOpen) {
|
|
115
|
-
var _a;
|
|
116
|
-
var
|
|
115
|
+
var _a, _b;
|
|
116
|
+
var _c, _d, _e;
|
|
117
117
|
const renderers = {};
|
|
118
118
|
const codeRenderers = {};
|
|
119
119
|
const codeSpeech = {};
|
|
120
|
+
const codePointable = {};
|
|
120
121
|
const avatars = {};
|
|
121
122
|
const tools = [];
|
|
122
123
|
for (const run of runs) {
|
|
@@ -124,13 +125,18 @@ export var WebExtensionRunUtil;
|
|
|
124
125
|
avatars[run.loaded.name] = run.avatar;
|
|
125
126
|
}
|
|
126
127
|
for (const [type, renderer] of run.renderers) {
|
|
127
|
-
(
|
|
128
|
+
(_c = renderers[type]) !== null && _c !== void 0 ? _c : (renderers[type] = renderer);
|
|
128
129
|
}
|
|
129
130
|
for (const [language, renderer] of run.codeRenderers) {
|
|
130
|
-
(
|
|
131
|
+
if (!codeRenderers[language] && ((_a = run.codeOptions.get(language)) === null || _a === void 0 ? void 0 : _a.pointable)) {
|
|
132
|
+
codePointable[language] = true;
|
|
133
|
+
}
|
|
134
|
+
(_d = codeRenderers[language]) !== null && _d !== void 0 ? _d : (codeRenderers[language] = renderer);
|
|
131
135
|
}
|
|
132
|
-
for (const [language,
|
|
133
|
-
|
|
136
|
+
for (const [language, options] of run.codeOptions) {
|
|
137
|
+
if (options.spoken) {
|
|
138
|
+
(_e = codeSpeech[language]) !== null && _e !== void 0 ? _e : (codeSpeech[language] = options.spoken);
|
|
139
|
+
}
|
|
134
140
|
}
|
|
135
141
|
for (const tool of run.tools) {
|
|
136
142
|
if (!tools.some(other => other.name === tool.name)) {
|
|
@@ -179,8 +185,9 @@ export var WebExtensionRunUtil;
|
|
|
179
185
|
renderers,
|
|
180
186
|
codeRenderers,
|
|
181
187
|
codeSpeech,
|
|
188
|
+
codePointable,
|
|
182
189
|
callPartner: runs.flatMap(run => run.callPartners)[0],
|
|
183
|
-
callGroup: (
|
|
190
|
+
callGroup: (_b = runs.find(run => run.callPartners.length)) === null || _b === void 0 ? void 0 : _b.loaded.name,
|
|
184
191
|
callMouth: runs.flatMap(run => run.callMouths)[0],
|
|
185
192
|
callMoves: runs.flatMap(run => run.callMoves),
|
|
186
193
|
avatars,
|
|
@@ -172,6 +172,15 @@ export class WebExtensionsRunning {
|
|
|
172
172
|
void this.allow(info).then(allowed => allowed && this.refresh());
|
|
173
173
|
}
|
|
174
174
|
const loads = await Promise.all(starting.map(info => this.loadPackage(info)));
|
|
175
|
+
// The tabs of the views of one that starts again (a new version of a work) open again once it has: its page
|
|
176
|
+
// drawn anew beside the conversation, not closed under the user. One started on open starts again for them.
|
|
177
|
+
const prefix = WebViewUtil.editorId('');
|
|
178
|
+
const renewed = (id) => {
|
|
179
|
+
const info = fresh.get(id);
|
|
180
|
+
return !!info && this.running.has(id) && !this.same(this.running.get(id), info) && (info.activation === 'open' || starting.includes(info));
|
|
181
|
+
};
|
|
182
|
+
const reopen = this.current.editors.filter(editor => editor.id.startsWith(prefix) && renewed(editor.extension));
|
|
183
|
+
const active = reopen.some(editor => editor.id === this.current.activeEditor) ? this.current.activeEditor : undefined;
|
|
175
184
|
// Stopped only now, just before the new code starts: the views of the old one stay drawn until the next
|
|
176
185
|
// publish, and stopped while the new code is read (after an update, over the relay) they would show
|
|
177
186
|
// without the styles it took away.
|
|
@@ -194,6 +203,26 @@ export class WebExtensionsRunning {
|
|
|
194
203
|
this.placeholders = undefined;
|
|
195
204
|
// The list of those started on open may have changed too.
|
|
196
205
|
this.publish();
|
|
206
|
+
if (reopen.length > 0) {
|
|
207
|
+
// One in a sandbox registers its views as it starts: they are there to open once it did.
|
|
208
|
+
const ready = [...new Set(reopen.map(editor => editor.extension))].map(id => {
|
|
209
|
+
var _a;
|
|
210
|
+
const index = starting.findIndex(info => info.id === id);
|
|
211
|
+
const load = loads[index];
|
|
212
|
+
if (!load) {
|
|
213
|
+
return this.onDemand.ensure(fresh.get(id)).catch(() => undefined);
|
|
214
|
+
}
|
|
215
|
+
return 'factory' in load ? (_a = load.factory.ready) === null || _a === void 0 ? void 0 : _a.catch(() => undefined) : undefined;
|
|
216
|
+
});
|
|
217
|
+
void Promise.all(ready).then(() => {
|
|
218
|
+
for (const editor of reopen) {
|
|
219
|
+
this.openView(editor.id.slice(prefix.length), true);
|
|
220
|
+
}
|
|
221
|
+
if (active) {
|
|
222
|
+
this.tabs.show(active);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
197
226
|
changed = changed || stopped || starting.length > 0;
|
|
198
227
|
await this.tabs.restore();
|
|
199
228
|
return changed;
|
|
@@ -209,9 +238,10 @@ export class WebExtensionsRunning {
|
|
|
209
238
|
return false;
|
|
210
239
|
}
|
|
211
240
|
this.keptStarted = true;
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
|
|
241
|
+
const kept = this.code.list(host).filter(info => info.enabled !== false);
|
|
242
|
+
// Those started on open, in Quick open and on their links before the computer answers, or while it cannot.
|
|
243
|
+
const seeded = this.onDemand.seed(kept.filter(info => info.activation === 'open'));
|
|
244
|
+
const infos = kept.filter(info => info.activation !== 'open' && !this.running.has(info.id) && WebAccessUtil.granted(info) !== undefined);
|
|
215
245
|
const loads = await Promise.all(infos.map(async (info) => {
|
|
216
246
|
const code = await this.code.get(info.hash);
|
|
217
247
|
return code === undefined ? undefined : this.factoryOf(info, code).catch(() => undefined);
|
|
@@ -224,10 +254,10 @@ export class WebExtensionsRunning {
|
|
|
224
254
|
started = true;
|
|
225
255
|
}
|
|
226
256
|
}
|
|
227
|
-
if (started) {
|
|
257
|
+
if (started || seeded) {
|
|
228
258
|
this.publish();
|
|
229
259
|
}
|
|
230
|
-
return started;
|
|
260
|
+
return started || seeded;
|
|
231
261
|
}
|
|
232
262
|
/** Whether what runs is that of the list: the same code, allowed as much. */
|
|
233
263
|
same(run, info) {
|
|
@@ -253,13 +283,14 @@ export class WebExtensionsRunning {
|
|
|
253
283
|
}
|
|
254
284
|
async askAccess(info) {
|
|
255
285
|
var _a;
|
|
286
|
+
var _b;
|
|
256
287
|
const language = this.settings.state.language;
|
|
257
288
|
const say = (id) => message(language, id);
|
|
258
|
-
const access = (
|
|
289
|
+
const access = (_b = info.access) !== null && _b !== void 0 ? _b : 'full';
|
|
259
290
|
const yes = await this.notices.confirm({
|
|
260
291
|
title: say('ta.access.ask').replace('{name}', WebPagesUtil.title(info, language)),
|
|
261
292
|
message: [
|
|
262
|
-
say(info.regrant ? 'ta.access.updated' : 'ta.access.new'),
|
|
293
|
+
say(info.regrant ? 'ta.access.updated' : ((_a = info.temporary) === null || _a === void 0 ? void 0 : _a.from) === 'agent' ? 'ta.access.agent' : 'ta.access.new'),
|
|
263
294
|
say(`ta.access.${access}`),
|
|
264
295
|
say('ta.access.from').replace('{source}', WebAccessUtil.source(info, say)),
|
|
265
296
|
].join('\n'),
|
|
@@ -42,6 +42,11 @@ export declare class WebOnDemand {
|
|
|
42
42
|
get(id: string): TaWebExtensionInfo | undefined;
|
|
43
43
|
/** Those of the server's list now; one an agent just made for the user is told of, with a way to open it. */
|
|
44
44
|
set(infos: readonly TaWebExtensionInfo[]): void;
|
|
45
|
+
/**
|
|
46
|
+
* Those of the list of the last time, before the computer answers (or while it cannot): their pages open from the
|
|
47
|
+
* code the device keeps, as those started with the page do. The list of the computer replaces them.
|
|
48
|
+
*/
|
|
49
|
+
seed(infos: readonly TaWebExtensionInfo[]): boolean;
|
|
45
50
|
/** The extension started on open that a view id is of: its name, or `<its name>/<view>`. */
|
|
46
51
|
find(viewId: string): TaWebExtensionInfo | undefined;
|
|
47
52
|
/** Starts it unless it runs, once however often asked meanwhile. */
|
|
@@ -58,6 +58,17 @@ export class WebOnDemand {
|
|
|
58
58
|
}
|
|
59
59
|
this.listed = true;
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Those of the list of the last time, before the computer answers (or while it cannot): their pages open from the
|
|
63
|
+
* code the device keeps, as those started with the page do. The list of the computer replaces them.
|
|
64
|
+
*/
|
|
65
|
+
seed(infos) {
|
|
66
|
+
if (this.listed || this.infos.size > 0 || infos.length === 0) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
this.infos = new Map(infos.map(info => [info.id, info]));
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
61
72
|
/** The extension started on open that a view id is of: its name, or `<its name>/<view>`. */
|
|
62
73
|
find(viewId) {
|
|
63
74
|
for (const info of this.infos.values()) {
|
|
@@ -79,6 +79,9 @@ export declare const ASSISTANT_EN: {
|
|
|
79
79
|
'ta.task.branch': string;
|
|
80
80
|
'ta.task.stopped': string;
|
|
81
81
|
'ta.task.waiting': string;
|
|
82
|
+
'ta.task.waitingPermission': string;
|
|
83
|
+
'ta.task.waitingQuestion': string;
|
|
84
|
+
'ta.task.waitingAuth': string;
|
|
82
85
|
'ta.task.takenOver': string;
|
|
83
86
|
'ta.task.takeOver': string;
|
|
84
87
|
'ta.task.takeOverHint': string;
|
|
@@ -79,6 +79,9 @@ export const ASSISTANT_EN = {
|
|
|
79
79
|
'ta.task.branch': 'Branch {branch}',
|
|
80
80
|
'ta.task.stopped': 'Stopped',
|
|
81
81
|
'ta.task.waiting': 'Waiting for you',
|
|
82
|
+
'ta.task.waitingPermission': 'Waiting for you to allow',
|
|
83
|
+
'ta.task.waitingQuestion': 'Waiting for your answer',
|
|
84
|
+
'ta.task.waitingAuth': 'Waiting for you to sign in',
|
|
82
85
|
'ta.task.takenOver': 'You took it over',
|
|
83
86
|
'ta.task.takeOver': 'Take over',
|
|
84
87
|
'ta.task.takeOverHint': 'Go on with it yourself in the main area; the double stops following it',
|
|
@@ -180,6 +180,7 @@ export declare const CHAT_EN: {
|
|
|
180
180
|
'ta.composer.keyboard': string;
|
|
181
181
|
'ta.composer.steerTitle': string;
|
|
182
182
|
'ta.composer.addImage': string;
|
|
183
|
+
'ta.composer.addMedia': string;
|
|
183
184
|
'ta.composer.album': string;
|
|
184
185
|
'ta.composer.camera': string;
|
|
185
186
|
'ta.composer.more': string;
|
|
@@ -180,6 +180,7 @@ export const CHAT_EN = {
|
|
|
180
180
|
'ta.composer.keyboard': 'Type instead',
|
|
181
181
|
'ta.composer.steerTitle': 'Steer Ta (Enter); Alt+Enter queues a follow-up',
|
|
182
182
|
'ta.composer.addImage': 'Add images',
|
|
183
|
+
'ta.composer.addMedia': 'Add images or videos',
|
|
183
184
|
'ta.composer.album': 'Album',
|
|
184
185
|
'ta.composer.camera': 'Camera',
|
|
185
186
|
'ta.composer.more': 'Add and settings',
|
|
@@ -10,6 +10,7 @@ export const COMMON_EN = {
|
|
|
10
10
|
'ta.stop': 'Stop',
|
|
11
11
|
'ta.copy': 'Copy',
|
|
12
12
|
'ta.copied': 'Copied',
|
|
13
|
+
'ta.point.hint': 'Tap the part Ta should change',
|
|
13
14
|
'ta.markdown.source': 'Source',
|
|
14
15
|
'ta.markdown.diagram': 'Diagram',
|
|
15
16
|
'ta.markdown.download': 'Download SVG',
|
|
@@ -60,6 +60,7 @@ export declare const DISCOVER_EN: {
|
|
|
60
60
|
'ta.open.failed': string;
|
|
61
61
|
'ta.access.ask': string;
|
|
62
62
|
'ta.access.new': string;
|
|
63
|
+
'ta.access.agent': string;
|
|
63
64
|
'ta.access.updated': string;
|
|
64
65
|
'ta.access.full': string;
|
|
65
66
|
'ta.access.app': string;
|
|
@@ -67,6 +68,7 @@ export declare const DISCOVER_EN: {
|
|
|
67
68
|
'ta.access.from': string;
|
|
68
69
|
'ta.access.fromLink': string;
|
|
69
70
|
'ta.access.fromMarket': string;
|
|
71
|
+
'ta.access.fromAgent': string;
|
|
70
72
|
'ta.access.allow': string;
|
|
71
73
|
'ta.access.failed': string;
|
|
72
74
|
'ta.search.pages': string;
|
|
@@ -61,6 +61,7 @@ export const DISCOVER_EN = {
|
|
|
61
61
|
'ta.open.failed': 'Could not open it',
|
|
62
62
|
'ta.access.ask': 'Allow {name} to run?',
|
|
63
63
|
'ta.access.new': 'It is not one you made: it runs once you allow it.',
|
|
64
|
+
'ta.access.agent': 'Ta made it for you; it asks for more than a web page has, so it runs once you allow it.',
|
|
64
65
|
'ta.access.updated': 'It changed since you allowed it: this version runs once you allow it again.',
|
|
65
66
|
'ta.access.full': 'It asks for all Ta can do: read and write the files of this computer, run commands, read your conversations. Allow only what you trust.',
|
|
66
67
|
'ta.access.app': 'It asks for its own pages and the notices, widgets and voice of Ta, not for your files or conversations.',
|
|
@@ -68,6 +69,7 @@ export const DISCOVER_EN = {
|
|
|
68
69
|
'ta.access.from': 'From: {source}.',
|
|
69
70
|
'ta.access.fromLink': 'a link someone shared',
|
|
70
71
|
'ta.access.fromMarket': 'the market',
|
|
72
|
+
'ta.access.fromAgent': 'made by Ta for you',
|
|
71
73
|
'ta.access.allow': 'Allow',
|
|
72
74
|
'ta.access.failed': 'Could not allow it',
|
|
73
75
|
'ta.search.pages': 'Pages',
|
|
@@ -67,7 +67,7 @@ export const SERVICE_EN = {
|
|
|
67
67
|
'ta.environment.stopDetail': 'It starts again when they connect; what runs in it stops now.',
|
|
68
68
|
'ta.remote.addCloud': 'Enter the gateway',
|
|
69
69
|
'ta.remote.cloudTitle': "Your company's Ta gateway",
|
|
70
|
-
'ta.remote.cloudDescription': 'Only when your company runs a Ta gateway
|
|
70
|
+
'ta.remote.cloudDescription': 'Only when your company runs a Ta gateway; otherwise, skip it.',
|
|
71
71
|
'ta.remote.cloudUrl': 'Gateway address',
|
|
72
72
|
'ta.remote.cloudToken': 'Access token',
|
|
73
73
|
'ta.remote.cloudHint': 'The address is that of the web page of the gateway; make the token there in Settings, Environment, Use it from another Ta.',
|
|
@@ -75,15 +75,15 @@ export const SERVICE_EN = {
|
|
|
75
75
|
'ta.remote.cloudAdded': '{name} added: pick it in the folder picker',
|
|
76
76
|
'ta.remote.openCloud': 'Open its Ta',
|
|
77
77
|
'ta.remote.openCloudHint': 'The whole Ta there, its agent in the cloud too',
|
|
78
|
-
'ta.remote.madeCloud': '
|
|
78
|
+
'ta.remote.madeCloud': 'On: while this computer is away, conversations go on on {host}',
|
|
79
79
|
'ta.remote.network': 'Network',
|
|
80
80
|
'ta.remote.portLocal': 'Forwarded to localhost:{port} here',
|
|
81
81
|
'ta.remote.relay': 'Go on here while this computer is away',
|
|
82
82
|
'ta.remote.relay.off': 'Keeps Ta running here: when this computer closes its lid or runs low, conversations go on here.',
|
|
83
83
|
'ta.remote.relay.on': 'When the lid closes, the computer sleeps or its battery runs low, running conversations go on here, and come back when it returns.',
|
|
84
|
-
'ta.remote.relay.stopTitle': 'Stop
|
|
84
|
+
'ta.remote.relay.stopTitle': 'Stop moving conversations to {host}?',
|
|
85
85
|
'ta.remote.relay.stopHint': 'Ta stays installed there. Take back the conversations that went there first.',
|
|
86
|
-
'ta.remote.relay.stop': 'Turn off
|
|
86
|
+
'ta.remote.relay.stop': 'Turn off',
|
|
87
87
|
'ta.remote.network.off': 'Off (recommended)',
|
|
88
88
|
'ta.remote.network.common': 'Package sources only',
|
|
89
89
|
'ta.remote.network.open': 'Anywhere',
|
|
@@ -114,7 +114,7 @@ export const SERVICE_EN = {
|
|
|
114
114
|
'ta.remote.local': 'This computer',
|
|
115
115
|
'ta.remote.add': 'Add a host',
|
|
116
116
|
'ta.remote.addConfirm': 'Add',
|
|
117
|
-
'ta.remote.addHint': '
|
|
117
|
+
'ta.remote.addHint': 'Host name, user@host, or ssh command',
|
|
118
118
|
'ta.remote.connected': 'Connected',
|
|
119
119
|
'ta.remote.failed': 'Cannot connect to {host}',
|
|
120
120
|
'ta.relays.title': 'Relays',
|
|
@@ -208,7 +208,7 @@ export const SERVICE_EN = {
|
|
|
208
208
|
'ta.relays.storeNote': 'Ta tries it first, writing and removing a small file. What sync puts there is sealed on this computer; the password stays in relays.json here.',
|
|
209
209
|
'ta.relays.storeAdd': 'Add and sync there',
|
|
210
210
|
'ta.remote.title': 'Remote hosts',
|
|
211
|
-
'ta.remote.description': 'Conversations can work in directories of these machines
|
|
211
|
+
'ta.remote.description': 'Conversations can work in directories of these machines, and move there to go on when this computer closes its lid or runs out of power.',
|
|
212
212
|
'ta.remote.none': 'No hosts yet',
|
|
213
213
|
'ta.remote.noneHint': 'Add one above: conversations then work in its directories over ssh',
|
|
214
214
|
'ta.remote.invalid': '{host} names no host: write a Host of ~/.ssh/config, user@host:port, or ssh user@host -p port.',
|
|
@@ -78,6 +78,9 @@ export const ASSISTANT_JA = {
|
|
|
78
78
|
'ta.task.branch': 'ブランチ {branch}',
|
|
79
79
|
'ta.task.stopped': '停止',
|
|
80
80
|
'ta.task.waiting': 'あなたの対応が必要',
|
|
81
|
+
'ta.task.waitingPermission': '許可を待っています',
|
|
82
|
+
'ta.task.waitingQuestion': '回答を待っています',
|
|
83
|
+
'ta.task.waitingAuth': 'サインインを待っています',
|
|
81
84
|
'ta.task.takenOver': 'あなたが対応しました',
|
|
82
85
|
'ta.task.takeOver': '対応する',
|
|
83
86
|
'ta.task.takeOverHint': 'メインエリアで対応し続けます。分身は追従を中止します。',
|
|
@@ -179,6 +179,7 @@ export const CHAT_JA = {
|
|
|
179
179
|
'ta.composer.keyboard': 'キーボードに切り替え',
|
|
180
180
|
'ta.composer.steerTitle': 'Ta を操舵(Enter)。Alt+Enter でフォローアップをキューに入れます',
|
|
181
181
|
'ta.composer.addImage': '画像を追加',
|
|
182
|
+
'ta.composer.addMedia': '画像・動画を追加',
|
|
182
183
|
'ta.composer.album': 'アルバム',
|
|
183
184
|
'ta.composer.camera': 'カメラ',
|
|
184
185
|
'ta.composer.more': '追加と設定',
|
|
@@ -59,6 +59,7 @@ export const DISCOVER_JA = {
|
|
|
59
59
|
'ta.open.failed': '開けませんでした',
|
|
60
60
|
'ta.access.ask': '「{name}」の実行を許可しますか?',
|
|
61
61
|
'ta.access.new': 'あなたが作ったものではないため、許可すると実行されます。',
|
|
62
|
+
'ta.access.agent': 'Ta があなたのために作ったものですが、ウェブページ以上の機能を求めているため、許可すると実行されます。',
|
|
62
63
|
'ta.access.updated': '許可した後に更新されました。この版は再度許可すると実行されます。',
|
|
63
64
|
'ta.access.full': 'Ta のすべての機能を求めています:このパソコンのファイルの読み書き、コマンドの実行、会話の閲覧。信頼できるものだけ許可してください。',
|
|
64
65
|
'ta.access.app': '自分のページと、Ta の通知・ウィジェット・音声だけを求めています。ファイルや会話は求めていません。',
|
|
@@ -66,6 +67,7 @@ export const DISCOVER_JA = {
|
|
|
66
67
|
'ta.access.from': '提供元:{source}。',
|
|
67
68
|
'ta.access.fromLink': '誰かが共有したリンク',
|
|
68
69
|
'ta.access.fromMarket': 'マーケット',
|
|
70
|
+
'ta.access.fromAgent': 'Ta があなたのために作ったもの',
|
|
69
71
|
'ta.access.allow': '許可',
|
|
70
72
|
'ta.access.failed': '許可できませんでした',
|
|
71
73
|
'ta.search.pages': 'ページ',
|
|
@@ -64,7 +64,7 @@ export const SERVICE_JA = {
|
|
|
64
64
|
'ta.environment.stopDetail': '再び接続すると再び起動します。実行中のものはすぐに停止します。',
|
|
65
65
|
'ta.remote.addCloud': 'ゲートウェイを入力',
|
|
66
66
|
'ta.remote.cloudTitle': '会社の Ta ゲートウェイ',
|
|
67
|
-
'ta.remote.cloudDescription': '会社が Ta
|
|
67
|
+
'ta.remote.cloudDescription': '会社が Ta ゲートウェイを運用している場合だけ必要です。なければ不要です。',
|
|
68
68
|
'ta.remote.cloudUrl': 'ゲートウェイのアドレス',
|
|
69
69
|
'ta.remote.cloudToken': 'アクセストークン',
|
|
70
70
|
'ta.remote.cloudHint': 'アドレスはゲートウェイの Web ページのアドレスです。トークンはそのページの 設定 → 実行環境 → 他の Ta から使う で作成します。',
|
|
@@ -72,15 +72,15 @@ export const SERVICE_JA = {
|
|
|
72
72
|
'ta.remote.cloudAdded': '{name} を追加しました。フォルダ選択で選べます',
|
|
73
73
|
'ta.remote.openCloud': 'クラウドの Ta を開く',
|
|
74
74
|
'ta.remote.openCloudHint': 'エージェントも含めて Ta 全体がクラウドで動きます',
|
|
75
|
-
'ta.remote.madeCloud': '
|
|
75
|
+
'ta.remote.madeCloud': 'オンにしました:パソコンを離れている間、会話は {host} で続きます',
|
|
76
76
|
'ta.remote.network': 'ネットワーク',
|
|
77
77
|
'ta.remote.portLocal': 'このパソコンの localhost:{port} に転送済み',
|
|
78
78
|
'ta.remote.relay': 'パソコンを離れている間ここで続ける',
|
|
79
79
|
'ta.remote.relay.off': 'ここに Ta を常駐させます。パソコンを閉じたり電池が少なくなったりすると、会話はここで続きます。',
|
|
80
80
|
'ta.remote.relay.on': 'ふたを閉じた、スリープした、電池が少ないときに、実行中の会話はここで続き、戻ると自動で引き戻します。',
|
|
81
|
-
'ta.remote.relay.stopTitle': '{host}
|
|
81
|
+
'ta.remote.relay.stopTitle': '{host} で続けるのをやめますか?',
|
|
82
82
|
'ta.remote.relay.stopHint': 'そのマシンの Ta はそのまま残ります。そちらに移った会話は、先にこのパソコンへ引き戻してください。',
|
|
83
|
-
'ta.remote.relay.stop': '
|
|
83
|
+
'ta.remote.relay.stop': 'オフにする',
|
|
84
84
|
'ta.remote.network.off': 'オフ(おすすめ)',
|
|
85
85
|
'ta.remote.network.common': 'パッケージ配布元のみ',
|
|
86
86
|
'ta.remote.network.open': '制限なし',
|
|
@@ -111,7 +111,7 @@ export const SERVICE_JA = {
|
|
|
111
111
|
'ta.remote.local': 'このコンピュータ',
|
|
112
112
|
'ta.remote.add': 'ホストを追加',
|
|
113
113
|
'ta.remote.addConfirm': '追加',
|
|
114
|
-
'ta.remote.addHint': '
|
|
114
|
+
'ta.remote.addHint': 'ホスト名、user@host、ssh コマンド',
|
|
115
115
|
'ta.remote.connected': '接続済み',
|
|
116
116
|
'ta.remote.failed': '{host} に接続できません',
|
|
117
117
|
'ta.relays.title': 'リレー',
|
|
@@ -205,7 +205,7 @@ export const SERVICE_JA = {
|
|
|
205
205
|
'ta.relays.storeNote': 'Ta が先に試します:小さいファイルを書き込んで削除します。同期が保存する内容はこのパソコンで既に暗号化されています。パスワードはこのパソコンの relays.json にのみ保存されます。',
|
|
206
206
|
'ta.relays.storeAdd': '追加して同期に使用',
|
|
207
207
|
'ta.remote.title': 'リモートホスト',
|
|
208
|
-
'ta.remote.description': '
|
|
208
|
+
'ta.remote.description': '会話はこれらのマシンのディレクトリで動作できます。パソコンを閉じたり電池が切れたりしたときは、そこへ移って続けることもできます。',
|
|
209
209
|
'ta.remote.none': 'ホストはまだありません',
|
|
210
210
|
'ta.remote.noneHint': '上で追加するとホストのディレクトリで ssh 経由で会話が動作します',
|
|
211
211
|
'ta.remote.invalid': '{host} はホストではありません:~/.ssh/config の Host、user@host:port、または ssh user@host -p ポート を入力してください。',
|