@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.
Files changed (191) hide show
  1. package/esm/browser/assistant/assistant-thread.d.ts +1 -1
  2. package/esm/browser/assistant/chat-task-source.js +2 -1
  3. package/esm/browser/components/app-contexts.js +11 -10
  4. package/esm/browser/components/chat-asks.d.ts +4 -1
  5. package/esm/browser/components/chat-asks.js +10 -0
  6. package/esm/browser/components/chat-list-row.js +5 -3
  7. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  8. package/esm/browser/components/composer-box-protocol.d.ts +5 -0
  9. package/esm/browser/components/composer-box.js +11 -14
  10. package/esm/browser/components/composer-media.d.ts +26 -0
  11. package/esm/browser/components/composer-media.js +37 -0
  12. package/esm/browser/components/composer-target.d.ts +2 -2
  13. package/esm/browser/components/composer-target.js +3 -3
  14. package/esm/browser/components/composer.js +1 -0
  15. package/esm/browser/components/host-view.d.ts +1 -1
  16. package/esm/browser/components/link.d.ts +7 -1
  17. package/esm/browser/components/link.js +24 -5
  18. package/esm/browser/components/markdown.d.ts +1 -1
  19. package/esm/browser/components/markdown.js +70 -4
  20. package/esm/browser/components/remote-hosts.d.ts +3 -1
  21. package/esm/browser/components/remote-hosts.js +10 -5
  22. package/esm/browser/components/session-view.js +10 -6
  23. package/esm/browser/components/web-composer.d.ts +1 -1
  24. package/esm/browser/components/web-composer.js +12 -3
  25. package/esm/browser/device/photo-picker.d.ts +11 -3
  26. package/esm/browser/device/photo-picker.js +26 -9
  27. package/esm/browser/device/video-picks.d.ts +24 -0
  28. package/esm/browser/device/video-picks.js +104 -0
  29. package/esm/browser/extension/icons.js +3 -1
  30. package/esm/browser/extension/web-access.js +4 -1
  31. package/esm/browser/extension/web-api-code.d.ts +36 -0
  32. package/esm/browser/extension/web-api-code.js +3 -0
  33. package/esm/browser/extension/web-api-components.d.ts +22 -0
  34. package/esm/browser/extension/web-api-contributions.d.ts +0 -31
  35. package/esm/browser/extension/web-api-menus.d.ts +17 -5
  36. package/esm/browser/extension/web-api-play.d.ts +29 -0
  37. package/esm/browser/extension/web-api-play.js +2 -0
  38. package/esm/browser/extension/web-api-spec.js +3 -0
  39. package/esm/browser/extension/web-api-terminal.d.ts +20 -0
  40. package/esm/browser/extension/web-extension-api.d.ts +12 -17
  41. package/esm/browser/extension/web-extension-context.d.ts +1 -1
  42. package/esm/browser/extension/web-extension-context.js +4 -3
  43. package/esm/browser/extension/web-extension-protocol.d.ts +2 -0
  44. package/esm/browser/extension/web-extension-protocol.js +1 -0
  45. package/esm/browser/extension/web-extension-run.d.ts +4 -3
  46. package/esm/browser/extension/web-extension-run.js +15 -8
  47. package/esm/browser/extension/web-extensions-running.js +38 -7
  48. package/esm/browser/extension/web-on-demand.d.ts +5 -0
  49. package/esm/browser/extension/web-on-demand.js +11 -0
  50. package/esm/browser/i18n/en/assistant.d.ts +3 -0
  51. package/esm/browser/i18n/en/assistant.js +3 -0
  52. package/esm/browser/i18n/en/chat.d.ts +1 -0
  53. package/esm/browser/i18n/en/chat.js +1 -0
  54. package/esm/browser/i18n/en/common.d.ts +1 -0
  55. package/esm/browser/i18n/en/common.js +1 -0
  56. package/esm/browser/i18n/en/discover.d.ts +2 -0
  57. package/esm/browser/i18n/en/discover.js +2 -0
  58. package/esm/browser/i18n/en/service.js +6 -6
  59. package/esm/browser/i18n/ja/assistant.js +3 -0
  60. package/esm/browser/i18n/ja/chat.js +1 -0
  61. package/esm/browser/i18n/ja/common.js +1 -0
  62. package/esm/browser/i18n/ja/discover.js +2 -0
  63. package/esm/browser/i18n/ja/service.js +6 -6
  64. package/esm/browser/i18n/locales.d.ts +8 -1
  65. package/esm/browser/i18n/messages.d.ts +7 -0
  66. package/esm/browser/i18n/zh/assistant.js +3 -0
  67. package/esm/browser/i18n/zh/chat.js +1 -0
  68. package/esm/browser/i18n/zh/common.js +1 -0
  69. package/esm/browser/i18n/zh/discover.js +2 -0
  70. package/esm/browser/i18n/zh/service.js +6 -6
  71. package/esm/browser/i18n/zh-tw/assistant.js +3 -0
  72. package/esm/browser/i18n/zh-tw/chat.js +1 -0
  73. package/esm/browser/i18n/zh-tw/common.js +1 -0
  74. package/esm/browser/i18n/zh-tw/discover.js +2 -0
  75. package/esm/browser/i18n/zh-tw/service.js +6 -6
  76. package/esm/browser/markdown/code-renderers.d.ts +3 -1
  77. package/esm/browser/markdown/code-renderers.js +2 -0
  78. package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
  79. package/esm/browser/sandbox/work/work-api.d.ts +113 -0
  80. package/esm/browser/sandbox/work/work-api.js +95 -0
  81. package/esm/browser/sandbox/work/work-docs.d.ts +18 -0
  82. package/esm/browser/sandbox/work/work-docs.js +66 -0
  83. package/esm/browser/sandbox/work/work-frame.d.ts +27 -0
  84. package/esm/browser/sandbox/work/work-frame.js +124 -0
  85. package/esm/browser/share/shared-extensions.d.ts +2 -1
  86. package/esm/browser/style/conversation.d.ts +1 -1
  87. package/esm/browser/style/conversation.js +10 -0
  88. package/esm/browser/style/pages.d.ts +1 -1
  89. package/esm/browser/style/pages.js +1 -0
  90. package/esm/browser/terminal/terminal-osc.d.ts +15 -0
  91. package/esm/browser/terminal/terminal-osc.js +91 -0
  92. package/esm/browser/terminal/web-terminal.d.ts +4 -7
  93. package/esm/browser/terminal/web-terminal.js +22 -26
  94. package/esm/browser/util/link.d.ts +6 -1
  95. package/esm/browser/util/link.js +11 -0
  96. package/lib/browser/assistant/assistant-thread.d.ts +1 -1
  97. package/lib/browser/assistant/chat-task-source.js +2 -1
  98. package/lib/browser/components/app-contexts.js +10 -9
  99. package/lib/browser/components/chat-asks.d.ts +4 -1
  100. package/lib/browser/components/chat-asks.js +10 -0
  101. package/lib/browser/components/chat-list-row.js +5 -3
  102. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  103. package/lib/browser/components/composer-box-protocol.d.ts +5 -0
  104. package/lib/browser/components/composer-box.js +9 -12
  105. package/lib/browser/components/composer-media.d.ts +27 -0
  106. package/lib/browser/components/composer-media.js +74 -0
  107. package/lib/browser/components/composer-target.d.ts +2 -2
  108. package/lib/browser/components/composer-target.js +3 -3
  109. package/lib/browser/components/composer.js +1 -0
  110. package/lib/browser/components/host-view.d.ts +1 -1
  111. package/lib/browser/components/link.d.ts +7 -1
  112. package/lib/browser/components/link.js +25 -6
  113. package/lib/browser/components/markdown.d.ts +1 -1
  114. package/lib/browser/components/markdown.js +68 -2
  115. package/lib/browser/components/remote-hosts.d.ts +3 -1
  116. package/lib/browser/components/remote-hosts.js +10 -5
  117. package/lib/browser/components/session-view.js +8 -4
  118. package/lib/browser/components/web-composer.d.ts +1 -1
  119. package/lib/browser/components/web-composer.js +12 -3
  120. package/lib/browser/device/photo-picker.d.ts +11 -3
  121. package/lib/browser/device/photo-picker.js +26 -9
  122. package/lib/browser/device/video-picks.d.ts +25 -0
  123. package/lib/browser/device/video-picks.js +107 -0
  124. package/lib/browser/extension/icons.js +2 -0
  125. package/lib/browser/extension/web-access.js +4 -1
  126. package/lib/browser/extension/web-api-code.d.ts +37 -0
  127. package/lib/browser/extension/web-api-code.js +4 -0
  128. package/lib/browser/extension/web-api-components.d.ts +22 -0
  129. package/lib/browser/extension/web-api-contributions.d.ts +0 -31
  130. package/lib/browser/extension/web-api-menus.d.ts +17 -5
  131. package/lib/browser/extension/web-api-play.d.ts +30 -0
  132. package/lib/browser/extension/web-api-play.js +3 -0
  133. package/lib/browser/extension/web-api-spec.js +3 -0
  134. package/lib/browser/extension/web-api-terminal.d.ts +20 -0
  135. package/lib/browser/extension/web-extension-api.d.ts +12 -17
  136. package/lib/browser/extension/web-extension-context.d.ts +1 -1
  137. package/lib/browser/extension/web-extension-context.js +4 -3
  138. package/lib/browser/extension/web-extension-protocol.d.ts +2 -0
  139. package/lib/browser/extension/web-extension-protocol.js +1 -0
  140. package/lib/browser/extension/web-extension-run.d.ts +4 -3
  141. package/lib/browser/extension/web-extension-run.js +15 -8
  142. package/lib/browser/extension/web-extensions-running.js +38 -7
  143. package/lib/browser/extension/web-on-demand.d.ts +5 -0
  144. package/lib/browser/extension/web-on-demand.js +11 -0
  145. package/lib/browser/i18n/en/assistant.d.ts +3 -0
  146. package/lib/browser/i18n/en/assistant.js +3 -0
  147. package/lib/browser/i18n/en/chat.d.ts +1 -0
  148. package/lib/browser/i18n/en/chat.js +1 -0
  149. package/lib/browser/i18n/en/common.d.ts +1 -0
  150. package/lib/browser/i18n/en/common.js +1 -0
  151. package/lib/browser/i18n/en/discover.d.ts +2 -0
  152. package/lib/browser/i18n/en/discover.js +2 -0
  153. package/lib/browser/i18n/en/service.js +6 -6
  154. package/lib/browser/i18n/ja/assistant.js +3 -0
  155. package/lib/browser/i18n/ja/chat.js +1 -0
  156. package/lib/browser/i18n/ja/common.js +1 -0
  157. package/lib/browser/i18n/ja/discover.js +2 -0
  158. package/lib/browser/i18n/ja/service.js +6 -6
  159. package/lib/browser/i18n/locales.d.ts +8 -1
  160. package/lib/browser/i18n/messages.d.ts +7 -0
  161. package/lib/browser/i18n/zh/assistant.js +3 -0
  162. package/lib/browser/i18n/zh/chat.js +1 -0
  163. package/lib/browser/i18n/zh/common.js +1 -0
  164. package/lib/browser/i18n/zh/discover.js +2 -0
  165. package/lib/browser/i18n/zh/service.js +6 -6
  166. package/lib/browser/i18n/zh-tw/assistant.js +3 -0
  167. package/lib/browser/i18n/zh-tw/chat.js +1 -0
  168. package/lib/browser/i18n/zh-tw/common.js +1 -0
  169. package/lib/browser/i18n/zh-tw/discover.js +2 -0
  170. package/lib/browser/i18n/zh-tw/service.js +6 -6
  171. package/lib/browser/markdown/code-renderers.d.ts +3 -1
  172. package/lib/browser/markdown/code-renderers.js +3 -1
  173. package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
  174. package/lib/browser/sandbox/work/work-api.d.ts +114 -0
  175. package/lib/browser/sandbox/work/work-api.js +99 -0
  176. package/lib/browser/sandbox/work/work-docs.d.ts +19 -0
  177. package/lib/browser/sandbox/work/work-docs.js +69 -0
  178. package/lib/browser/sandbox/work/work-frame.d.ts +28 -0
  179. package/lib/browser/sandbox/work/work-frame.js +160 -0
  180. package/lib/browser/share/shared-extensions.d.ts +2 -1
  181. package/lib/browser/style/conversation.d.ts +1 -1
  182. package/lib/browser/style/conversation.js +10 -0
  183. package/lib/browser/style/pages.d.ts +1 -1
  184. package/lib/browser/style/pages.js +1 -0
  185. package/lib/browser/terminal/terminal-osc.d.ts +16 -0
  186. package/lib/browser/terminal/terminal-osc.js +94 -0
  187. package/lib/browser/terminal/web-terminal.d.ts +4 -7
  188. package/lib/browser/terminal/web-terminal.js +25 -29
  189. package/lib/browser/util/link.d.ts +6 -1
  190. package/lib/browser/util/link.js +11 -0
  191. 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, WebCodeRendererOptions, WebCodeRendererProps, 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';
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
- /** Into the box of the conversation in front: `quote` before what it holds, `images` (base64) as if pasted; false when none shows. */
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-contributions.js';
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
- if (options === null || options === void 0 ? void 0 : options.spoken) {
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
  /**
@@ -14,6 +14,7 @@ export var WebExtensionsStateUtil;
14
14
  renderers: {},
15
15
  codeRenderers: {},
16
16
  codeSpeech: {},
17
+ codePointable: {},
17
18
  avatars: {},
18
19
  callMoves: [],
19
20
  chatIcons: [],
@@ -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
- codeSpeech: Map<string, WebExtensionsState['codeSpeech'][string]>;
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
- codeSpeech: new Map(),
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 _b, _c, _d;
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
- (_b = renderers[type]) !== null && _b !== void 0 ? _b : (renderers[type] = renderer);
128
+ (_c = renderers[type]) !== null && _c !== void 0 ? _c : (renderers[type] = renderer);
128
129
  }
129
130
  for (const [language, renderer] of run.codeRenderers) {
130
- (_c = codeRenderers[language]) !== null && _c !== void 0 ? _c : (codeRenderers[language] = renderer);
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, spoken] of run.codeSpeech) {
133
- (_d = codeSpeech[language]) !== null && _d !== void 0 ? _d : (codeSpeech[language] = spoken);
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: (_a = runs.find(run => run.callPartners.length)) === null || _a === void 0 ? void 0 : _a.loaded.name,
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 infos = this.code
213
- .list(host)
214
- .filter(info => info.enabled !== false && info.activation !== 'open' && !this.running.has(info.id) && WebAccessUtil.granted(info) !== undefined);
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 = (_a = info.access) !== null && _a !== void 0 ? _a : 'full';
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 declare const COMMON_EN: {
10
10
  'ta.stop': string;
11
11
  'ta.copy': string;
12
12
  'ta.copied': string;
13
+ 'ta.point.hint': string;
13
14
  'ta.markdown.source': string;
14
15
  'ta.markdown.diagram': string;
15
16
  'ta.markdown.download': string;
@@ -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. Without one, add a machine you reach by ssh above and turn on handover.',
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': 'Handover is on: while this computer is away, conversations go on on {host}',
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 handing over to {host}?',
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 handover',
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': 'A Host of ~/.ssh/config, user@host:port, or an ssh command',
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. On one with handover on, they go on there while this computer is away.',
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': '追加と設定',
@@ -9,6 +9,7 @@ export const COMMON_JA = {
9
9
  'ta.stop': '停止',
10
10
  'ta.copy': 'コピー',
11
11
  'ta.copied': 'コピーしました',
12
+ 'ta.point.hint': 'Ta に直してほしい所をタップ',
12
13
  'ta.markdown.source': 'ソースコード',
13
14
  'ta.markdown.diagram': '図',
14
15
  'ta.markdown.download': 'SVG をダウンロード',
@@ -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 ゲートウェイを運用している場合だけ必要です。ない場合は、上で ssh できるマシンを追加して引き継ぎをオンにします。',
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': '引き継ぎをオンにしました:パソコンを離れている間、会話は {host} で続きます',
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': '~/.ssh/config のホスト、user@host:port、または ssh コマンド',
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 ポート を入力してください。',