@celljs/ta-web 4.43.0 → 4.45.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 (213) hide show
  1. package/esm/browser/apps/app-window.js +2 -2
  2. package/esm/browser/assistant/assistant-chat-list.js +2 -1
  3. package/esm/browser/assistant/assistant-extension.js +16 -2
  4. package/esm/browser/assistant/assistant-protocol.d.ts +6 -0
  5. package/esm/browser/assistant/assistant-task-source.js +3 -0
  6. package/esm/browser/assistant/assistant-task-util.d.ts +2 -0
  7. package/esm/browser/assistant/assistant-task-util.js +5 -0
  8. package/esm/browser/assistant/assistant.d.ts +3 -0
  9. package/esm/browser/assistant/assistant.js +26 -2
  10. package/esm/browser/components/app-shell-hooks.d.ts +2 -1
  11. package/esm/browser/components/app-shell-hooks.js +4 -3
  12. package/esm/browser/components/app-shell-state.js +2 -2
  13. package/esm/browser/components/chat-list-row.js +4 -4
  14. package/esm/browser/components/chat-list-util.d.ts +2 -2
  15. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  16. package/esm/browser/components/custom-host.d.ts +4 -1
  17. package/esm/browser/components/custom-host.js +8 -2
  18. package/esm/browser/components/earlier-messages.d.ts +4 -1
  19. package/esm/browser/components/earlier-messages.js +5 -2
  20. package/esm/browser/components/hearing-host.d.ts +2 -1
  21. package/esm/browser/components/hearing-host.js +10 -7
  22. package/esm/browser/components/host-view.d.ts +1 -1
  23. package/esm/browser/components/message-list.js +2 -1
  24. package/esm/browser/components/message-steps.js +8 -5
  25. package/esm/browser/components/settings-choices.d.ts +2 -1
  26. package/esm/browser/components/settings-choices.js +2 -1
  27. package/esm/browser/components/settings-parts.js +23 -3
  28. package/esm/browser/components/share-dialog.js +1 -1
  29. package/esm/browser/components/share-friends.d.ts +18 -2
  30. package/esm/browser/components/share-friends.js +62 -4
  31. package/esm/browser/components/share-sheet.d.ts +4 -3
  32. package/esm/browser/components/share-sheet.js +11 -3
  33. package/esm/browser/extension/web-api-chats.d.ts +23 -0
  34. package/esm/browser/extension/web-api-desktop.d.ts +14 -0
  35. package/esm/browser/extension/web-api-skins.d.ts +95 -0
  36. package/esm/browser/extension/web-api-skins.js +2 -0
  37. package/esm/browser/extension/web-api-spec.js +3 -0
  38. package/esm/browser/extension/web-extension-api.d.ts +11 -26
  39. package/esm/browser/extension/web-extension-context.js +4 -0
  40. package/esm/browser/extension/web-extension-protocol.d.ts +3 -1
  41. package/esm/browser/extension/web-extension-protocol.js +1 -0
  42. package/esm/browser/extension/web-extension-run.d.ts +3 -2
  43. package/esm/browser/extension/web-extension-run.js +3 -0
  44. package/esm/browser/extension/web-share-ui.js +6 -1
  45. package/esm/browser/i18n/en/assistant.d.ts +4 -0
  46. package/esm/browser/i18n/en/assistant.js +4 -0
  47. package/esm/browser/i18n/en/chat.d.ts +1 -0
  48. package/esm/browser/i18n/en/chat.js +1 -0
  49. package/esm/browser/i18n/en/common.d.ts +0 -3
  50. package/esm/browser/i18n/en/common.js +0 -3
  51. package/esm/browser/i18n/en/discover.d.ts +4 -1
  52. package/esm/browser/i18n/en/discover.js +4 -1
  53. package/esm/browser/i18n/en/service.js +1 -1
  54. package/esm/browser/i18n/en/settings.d.ts +8 -0
  55. package/esm/browser/i18n/en/settings.js +8 -0
  56. package/esm/browser/i18n/en/tools.d.ts +5 -0
  57. package/esm/browser/i18n/en/tools.js +5 -0
  58. package/esm/browser/i18n/ja/assistant.js +4 -0
  59. package/esm/browser/i18n/ja/chat.js +1 -0
  60. package/esm/browser/i18n/ja/common.js +0 -3
  61. package/esm/browser/i18n/ja/discover.js +4 -1
  62. package/esm/browser/i18n/ja/service.js +1 -1
  63. package/esm/browser/i18n/ja/settings.js +8 -0
  64. package/esm/browser/i18n/ja/tools.js +5 -0
  65. package/esm/browser/i18n/locales.d.ts +23 -5
  66. package/esm/browser/i18n/messages.d.ts +22 -4
  67. package/esm/browser/i18n/zh/assistant.js +4 -0
  68. package/esm/browser/i18n/zh/chat.js +1 -0
  69. package/esm/browser/i18n/zh/common.js +0 -3
  70. package/esm/browser/i18n/zh/discover.js +4 -1
  71. package/esm/browser/i18n/zh/service.js +1 -1
  72. package/esm/browser/i18n/zh/settings.js +8 -0
  73. package/esm/browser/i18n/zh/tools.js +5 -0
  74. package/esm/browser/i18n/zh-tw/assistant.js +4 -0
  75. package/esm/browser/i18n/zh-tw/chat.js +1 -0
  76. package/esm/browser/i18n/zh-tw/common.js +0 -3
  77. package/esm/browser/i18n/zh-tw/discover.js +4 -1
  78. package/esm/browser/i18n/zh-tw/service.js +1 -1
  79. package/esm/browser/i18n/zh-tw/settings.js +8 -0
  80. package/esm/browser/i18n/zh-tw/tools.js +5 -0
  81. package/esm/browser/links/clipboard-links.d.ts +4 -8
  82. package/esm/browser/links/clipboard-links.js +9 -51
  83. package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
  84. package/esm/browser/settings/settings-protocol.d.ts +24 -0
  85. package/esm/browser/settings/settings-protocol.js +9 -0
  86. package/esm/browser/settings/settings.d.ts +4 -1
  87. package/esm/browser/settings/settings.js +16 -3
  88. package/esm/browser/skin/skin-layer.d.ts +8 -0
  89. package/esm/browser/skin/skin-layer.js +118 -0
  90. package/esm/browser/skin/skin-util.d.ts +40 -0
  91. package/esm/browser/skin/skin-util.js +120 -0
  92. package/esm/browser/style/conversation.d.ts +1 -1
  93. package/esm/browser/style/conversation.js +3 -2
  94. package/esm/browser/style/skins.d.ts +9 -0
  95. package/esm/browser/style/skins.js +107 -0
  96. package/esm/browser/style/surfaces.d.ts +1 -1
  97. package/esm/browser/style/surfaces.js +8 -0
  98. package/esm/browser/style.js +2 -0
  99. package/esm/browser/util/desktop.d.ts +11 -1
  100. package/esm/browser/util/desktop.js +30 -0
  101. package/esm/browser/util/fresh-rows.d.ts +21 -0
  102. package/esm/browser/util/fresh-rows.js +36 -0
  103. package/esm/browser/util/process.d.ts +12 -22
  104. package/esm/browser/util/process.js +49 -39
  105. package/esm/browser/util/tool.js +15 -5
  106. package/esm/browser/util/voice.js +10 -2
  107. package/lib/browser/apps/app-window.js +2 -2
  108. package/lib/browser/assistant/assistant-chat-list.js +2 -1
  109. package/lib/browser/assistant/assistant-extension.js +15 -1
  110. package/lib/browser/assistant/assistant-protocol.d.ts +6 -0
  111. package/lib/browser/assistant/assistant-task-source.js +3 -0
  112. package/lib/browser/assistant/assistant-task-util.d.ts +2 -0
  113. package/lib/browser/assistant/assistant-task-util.js +5 -0
  114. package/lib/browser/assistant/assistant.d.ts +3 -0
  115. package/lib/browser/assistant/assistant.js +26 -2
  116. package/lib/browser/components/app-shell-hooks.d.ts +2 -1
  117. package/lib/browser/components/app-shell-hooks.js +4 -3
  118. package/lib/browser/components/app-shell-state.js +2 -2
  119. package/lib/browser/components/chat-list-row.js +4 -4
  120. package/lib/browser/components/chat-list-util.d.ts +2 -2
  121. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  122. package/lib/browser/components/custom-host.d.ts +4 -1
  123. package/lib/browser/components/custom-host.js +8 -2
  124. package/lib/browser/components/earlier-messages.d.ts +4 -1
  125. package/lib/browser/components/earlier-messages.js +5 -2
  126. package/lib/browser/components/hearing-host.d.ts +2 -1
  127. package/lib/browser/components/hearing-host.js +9 -6
  128. package/lib/browser/components/host-view.d.ts +1 -1
  129. package/lib/browser/components/message-list.js +2 -1
  130. package/lib/browser/components/message-steps.js +8 -5
  131. package/lib/browser/components/settings-choices.d.ts +2 -1
  132. package/lib/browser/components/settings-choices.js +2 -1
  133. package/lib/browser/components/settings-parts.js +21 -1
  134. package/lib/browser/components/share-dialog.js +1 -1
  135. package/lib/browser/components/share-friends.d.ts +18 -2
  136. package/lib/browser/components/share-friends.js +65 -4
  137. package/lib/browser/components/share-sheet.d.ts +4 -3
  138. package/lib/browser/components/share-sheet.js +10 -2
  139. package/lib/browser/extension/web-api-chats.d.ts +23 -0
  140. package/lib/browser/extension/web-api-desktop.d.ts +14 -0
  141. package/lib/browser/extension/web-api-skins.d.ts +96 -0
  142. package/lib/browser/extension/web-api-skins.js +3 -0
  143. package/lib/browser/extension/web-api-spec.js +3 -0
  144. package/lib/browser/extension/web-extension-api.d.ts +11 -26
  145. package/lib/browser/extension/web-extension-context.js +4 -0
  146. package/lib/browser/extension/web-extension-protocol.d.ts +3 -1
  147. package/lib/browser/extension/web-extension-protocol.js +1 -0
  148. package/lib/browser/extension/web-extension-run.d.ts +3 -2
  149. package/lib/browser/extension/web-extension-run.js +3 -0
  150. package/lib/browser/extension/web-share-ui.js +6 -1
  151. package/lib/browser/i18n/en/assistant.d.ts +4 -0
  152. package/lib/browser/i18n/en/assistant.js +4 -0
  153. package/lib/browser/i18n/en/chat.d.ts +1 -0
  154. package/lib/browser/i18n/en/chat.js +1 -0
  155. package/lib/browser/i18n/en/common.d.ts +0 -3
  156. package/lib/browser/i18n/en/common.js +0 -3
  157. package/lib/browser/i18n/en/discover.d.ts +4 -1
  158. package/lib/browser/i18n/en/discover.js +4 -1
  159. package/lib/browser/i18n/en/service.js +1 -1
  160. package/lib/browser/i18n/en/settings.d.ts +8 -0
  161. package/lib/browser/i18n/en/settings.js +8 -0
  162. package/lib/browser/i18n/en/tools.d.ts +5 -0
  163. package/lib/browser/i18n/en/tools.js +5 -0
  164. package/lib/browser/i18n/ja/assistant.js +4 -0
  165. package/lib/browser/i18n/ja/chat.js +1 -0
  166. package/lib/browser/i18n/ja/common.js +0 -3
  167. package/lib/browser/i18n/ja/discover.js +4 -1
  168. package/lib/browser/i18n/ja/service.js +1 -1
  169. package/lib/browser/i18n/ja/settings.js +8 -0
  170. package/lib/browser/i18n/ja/tools.js +5 -0
  171. package/lib/browser/i18n/locales.d.ts +23 -5
  172. package/lib/browser/i18n/messages.d.ts +22 -4
  173. package/lib/browser/i18n/zh/assistant.js +4 -0
  174. package/lib/browser/i18n/zh/chat.js +1 -0
  175. package/lib/browser/i18n/zh/common.js +0 -3
  176. package/lib/browser/i18n/zh/discover.js +4 -1
  177. package/lib/browser/i18n/zh/service.js +1 -1
  178. package/lib/browser/i18n/zh/settings.js +8 -0
  179. package/lib/browser/i18n/zh/tools.js +5 -0
  180. package/lib/browser/i18n/zh-tw/assistant.js +4 -0
  181. package/lib/browser/i18n/zh-tw/chat.js +1 -0
  182. package/lib/browser/i18n/zh-tw/common.js +0 -3
  183. package/lib/browser/i18n/zh-tw/discover.js +4 -1
  184. package/lib/browser/i18n/zh-tw/service.js +1 -1
  185. package/lib/browser/i18n/zh-tw/settings.js +8 -0
  186. package/lib/browser/i18n/zh-tw/tools.js +5 -0
  187. package/lib/browser/links/clipboard-links.d.ts +4 -8
  188. package/lib/browser/links/clipboard-links.js +10 -52
  189. package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
  190. package/lib/browser/settings/settings-protocol.d.ts +24 -0
  191. package/lib/browser/settings/settings-protocol.js +10 -1
  192. package/lib/browser/settings/settings.d.ts +4 -1
  193. package/lib/browser/settings/settings.js +16 -3
  194. package/lib/browser/skin/skin-layer.d.ts +9 -0
  195. package/lib/browser/skin/skin-layer.js +154 -0
  196. package/lib/browser/skin/skin-util.d.ts +41 -0
  197. package/lib/browser/skin/skin-util.js +123 -0
  198. package/lib/browser/style/conversation.d.ts +1 -1
  199. package/lib/browser/style/conversation.js +3 -2
  200. package/lib/browser/style/skins.d.ts +10 -0
  201. package/lib/browser/style/skins.js +110 -0
  202. package/lib/browser/style/surfaces.d.ts +1 -1
  203. package/lib/browser/style/surfaces.js +8 -0
  204. package/lib/browser/style.js +2 -0
  205. package/lib/browser/util/desktop.d.ts +11 -1
  206. package/lib/browser/util/desktop.js +30 -0
  207. package/lib/browser/util/fresh-rows.d.ts +22 -0
  208. package/lib/browser/util/fresh-rows.js +40 -0
  209. package/lib/browser/util/process.d.ts +12 -22
  210. package/lib/browser/util/process.js +49 -40
  211. package/lib/browser/util/tool.js +15 -5
  212. package/lib/browser/util/voice.js +10 -2
  213. package/package.json +7 -7
@@ -226,6 +226,9 @@ export declare const EN_MESSAGES: {
226
226
  'ta.assistant.speakStopShort': string;
227
227
  'ta.assistant.poke': string;
228
228
  'ta.assistant.stop': string;
229
+ 'ta.assistant.pauseTasks': string;
230
+ 'ta.assistant.resumeTasks': string;
231
+ 'ta.assistant.pausedTasks': string;
229
232
  'ta.assistant.restart': string;
230
233
  'ta.assistant.restartTitle': string;
231
234
  'ta.assistant.restartHint': string;
@@ -280,6 +283,7 @@ export declare const EN_MESSAGES: {
280
283
  'ta.task.verdictFail': string;
281
284
  'ta.task.branch': string;
282
285
  'ta.task.stopped': string;
286
+ 'ta.task.paused': string;
283
287
  'ta.task.waiting': string;
284
288
  'ta.task.waitingPermission': string;
285
289
  'ta.task.waitingQuestion': string;
@@ -586,6 +590,7 @@ export declare const EN_MESSAGES: {
586
590
  'ta.hear.getting': string;
587
591
  'ta.hear.failed': string;
588
592
  'ta.hear.retry': string;
593
+ 'ta.hear.service': string;
589
594
  'ta.hear.unsupported': string;
590
595
  'ta.hear.unavailable': string;
591
596
  'ta.hear.unavailableHint': string;
@@ -713,9 +718,6 @@ export declare const EN_MESSAGES: {
713
718
  'ta.clip.pasteMany': string;
714
719
  'ta.clip.pick': string;
715
720
  'ta.clip.open': string;
716
- 'ta.clip.maybe': string;
717
- 'ta.clip.maybeDetail': string;
718
- 'ta.clip.none': string;
719
721
  'ta.link.notFound': string;
720
722
  'ta.terminal.openLink': string;
721
723
  'ta.terminal.openLinkMac': string;
@@ -1051,7 +1053,10 @@ export declare const EN_MESSAGES: {
1051
1053
  'ta.share.friends': string;
1052
1054
  'ta.share.pickFriends': string;
1053
1055
  'ta.share.sendN': string;
1054
- 'ta.share.sentTo': string;
1056
+ 'ta.share.sentTitle': string;
1057
+ 'ta.share.sent': string;
1058
+ 'ta.share.got': string;
1059
+ 'ta.share.opened': string;
1055
1060
  'ta.share.renew': string;
1056
1061
  'ta.share.passwordApart': string;
1057
1062
  'ta.share.copyPassword': string;
@@ -1462,6 +1467,14 @@ export declare const EN_MESSAGES: {
1462
1467
  'ta.settings.diagramStyle.sketch': string;
1463
1468
  'ta.settings.diagramStyle.colour': string;
1464
1469
  'ta.settings.diagramStyle.motion': string;
1470
+ 'ta.settings.skin': string;
1471
+ 'ta.settings.skinHint': string;
1472
+ 'ta.settings.skin.none': string;
1473
+ 'ta.settings.glass': string;
1474
+ 'ta.settings.glassHint': string;
1475
+ 'ta.settings.glass.clear': string;
1476
+ 'ta.settings.glass.soft': string;
1477
+ 'ta.settings.glass.focus': string;
1465
1478
  'ta.settings.fontSize': string;
1466
1479
  'ta.settings.fontSizeHint': string;
1467
1480
  'ta.settings.chatFontSize': string;
@@ -1716,6 +1729,11 @@ export declare const EN_MESSAGES: {
1716
1729
  'ta.tool.verb.deleteScheduled': string;
1717
1730
  'ta.tool.verb.publish': string;
1718
1731
  'ta.tool.verb.editImage': string;
1732
+ 'ta.tool.verb.generateImage': string;
1733
+ 'ta.tool.verb.generateVideo': string;
1734
+ 'ta.tool.verb.findTools': string;
1735
+ 'ta.tool.verb.callTool': string;
1736
+ 'ta.tool.verb.notify': string;
1719
1737
  'ta.tool.verb.click': string;
1720
1738
  'ta.tool.verb.doubleClick': string;
1721
1739
  'ta.tool.verb.rightClick': string;
@@ -23,6 +23,9 @@ export const ASSISTANT_ZH = {
23
23
  'ta.assistant.speakStopShort': '停止',
24
24
  'ta.assistant.poke': '戳一下 Ta',
25
25
  'ta.assistant.stop': '停止',
26
+ 'ta.assistant.pauseTasks': '暂停全部任务',
27
+ 'ta.assistant.resumeTasks': '继续已暂停的任务({count})',
28
+ 'ta.assistant.pausedTasks': '已暂停 {count} 个任务',
26
29
  'ta.assistant.restart': '重新开始',
27
30
  'ta.assistant.restartTitle': '和分身开始新的对话?',
28
31
  'ta.assistant.restartHint': '当前对话仍保存在会话文件里,任务继续进行。',
@@ -77,6 +80,7 @@ export const ASSISTANT_ZH = {
77
80
  'ta.task.verdictFail': '检查未通过',
78
81
  'ta.task.branch': '分支 {branch}',
79
82
  'ta.task.stopped': '已停止',
83
+ 'ta.task.paused': '已暂停',
80
84
  'ta.task.waiting': '等你处理',
81
85
  'ta.task.waitingPermission': '等你授权',
82
86
  'ta.task.waitingQuestion': '等你回答',
@@ -171,6 +171,7 @@ export const CHAT_ZH = {
171
171
  'ta.hear.getting': '电脑正在下载语音识别模型({percent}%),好了再说一次',
172
172
  'ta.hear.failed': '电脑上的语音识别还没准备好',
173
173
  'ta.hear.retry': '重试',
174
+ 'ta.hear.service': '改用语音服务',
174
175
  'ta.hear.unsupported': '这台设备不能识别语音,电脑也跑不了 Ta 的语音识别',
175
176
  'ta.hear.unavailable': '这台设备不能识别语音,Ta 的语音识别也没开',
176
177
  'ta.hear.unavailableHint': '在 设置 → 扩展 里打开「实时语音」和「本机模型」。',
@@ -56,9 +56,6 @@ export const COMMON_ZH = {
56
56
  'ta.clip.pasteMany': '粘贴的内容里有 {count} 个 Ta 链接',
57
57
  'ta.clip.pick': '点一个打开',
58
58
  'ta.clip.open': '打开',
59
- 'ta.clip.maybe': '剪贴板里有个链接',
60
- 'ta.clip.maybeDetail': '是 Ta 的邀请或分享的话,点“打开”就能打开',
61
- 'ta.clip.none': '剪贴板里没有 Ta 的链接',
62
59
  'ta.link.notFound': '{path} 不存在。',
63
60
  'ta.terminal.openLink': 'Ctrl + 点击打开',
64
61
  'ta.terminal.openLinkMac': 'Cmd + 点击打开',
@@ -45,7 +45,10 @@ export const DISCOVER_ZH = {
45
45
  'ta.share.friends': 'Ta 好友',
46
46
  'ta.share.pickFriends': '选择好友',
47
47
  'ta.share.sendN': '发送给 {n} 位',
48
- 'ta.share.sentTo': '已发给 {n} 位好友,在对方的 Ta 里等着打开',
48
+ 'ta.share.sentTitle': '发给了这些好友',
49
+ 'ta.share.sent': '已发出',
50
+ 'ta.share.got': '已收到',
51
+ 'ta.share.opened': '已打开',
49
52
  'ta.share.renew': '换新链接',
50
53
  'ta.share.passwordApart': '密码请另行告诉对方:',
51
54
  'ta.share.copyPassword': '复制密码',
@@ -261,6 +261,6 @@ export const SERVICE_ZH = {
261
261
  'ta.relay.unpair': '取消配对',
262
262
  'ta.relay.unpairConfirm': '取消配对 {name}?它将无法再连到这台电脑上的 Ta。',
263
263
  'ta.relay.keepAwake': '让电脑保持唤醒',
264
- 'ta.relay.keepAwakeHint': '有任务在跑,或手机连过后的 30 分钟内,电脑闲置也不睡眠,手机随时连得上。屏幕照常熄灭,合上盖子仍会睡眠。',
264
+ 'ta.relay.keepAwakeHint': '插着电源时一直不睡眠,下班把电脑留在公司,手机晚上也连得上;用电池时,只在有任务在跑或手机连过后的 30 分钟内不睡眠。屏幕照常熄灭、锁屏,合上盖子仍会睡眠。',
265
265
  };
266
266
  //# sourceMappingURL=service.js.map
@@ -59,6 +59,14 @@ export const SETTINGS_ZH = {
59
59
  'ta.settings.diagramStyle.sketch': '草图',
60
60
  'ta.settings.diagramStyle.colour': '彩色',
61
61
  'ta.settings.diagramStyle.motion': '动效',
62
+ 'ta.settings.skin': '皮肤',
63
+ 'ta.settings.skinHint': 'Ta 背后的画面,各栏像玻璃一样透出它。',
64
+ 'ta.settings.skin.none': '无',
65
+ 'ta.settings.glass': '玻璃',
66
+ 'ta.settings.glassHint': '透出多少皮肤的画面。',
67
+ 'ta.settings.glass.clear': '清透',
68
+ 'ta.settings.glass.soft': '柔和',
69
+ 'ta.settings.glass.focus': '专注',
62
70
  'ta.settings.fontSize': '字体大小',
63
71
  'ta.settings.fontSizeHint': '整个页面的文字。',
64
72
  'ta.settings.chatFontSize': '对话字体大小',
@@ -32,6 +32,11 @@ export const TOOLS_ZH = {
32
32
  'ta.tool.verb.deleteScheduled': '取消定时任务',
33
33
  'ta.tool.verb.publish': '发布',
34
34
  'ta.tool.verb.editImage': '编辑图片',
35
+ 'ta.tool.verb.generateImage': '生成图片',
36
+ 'ta.tool.verb.generateVideo': '生成视频',
37
+ 'ta.tool.verb.findTools': '查找工具',
38
+ 'ta.tool.verb.callTool': '调用工具',
39
+ 'ta.tool.verb.notify': '发送通知',
35
40
  'ta.tool.verb.click': '点击',
36
41
  'ta.tool.verb.doubleClick': '双击',
37
42
  'ta.tool.verb.rightClick': '右键点击',
@@ -23,6 +23,9 @@ export const ASSISTANT_ZH_TW = {
23
23
  'ta.assistant.speakStopShort': '停止',
24
24
  'ta.assistant.poke': '戳一下 Ta',
25
25
  'ta.assistant.stop': '停止',
26
+ 'ta.assistant.pauseTasks': '暫停全部任務',
27
+ 'ta.assistant.resumeTasks': '繼續已暫停的任務({count})',
28
+ 'ta.assistant.pausedTasks': '已暫停 {count} 個任務',
26
29
  'ta.assistant.restart': '重新開始',
27
30
  'ta.assistant.restartTitle': '和分身開始新的對話?',
28
31
  'ta.assistant.restartHint': '目前對話仍儲存在會話檔案裡,任務繼續進行。',
@@ -77,6 +80,7 @@ export const ASSISTANT_ZH_TW = {
77
80
  'ta.task.verdictFail': '檢查未通過',
78
81
  'ta.task.branch': '分支 {branch}',
79
82
  'ta.task.stopped': '已停止',
83
+ 'ta.task.paused': '已暫停',
80
84
  'ta.task.waiting': '等你處理',
81
85
  'ta.task.waitingPermission': '等你授權',
82
86
  'ta.task.waitingQuestion': '等你回答',
@@ -171,6 +171,7 @@ export const CHAT_ZH_TW = {
171
171
  'ta.hear.getting': '電腦正在下載語音辨識模型({percent}%),好了再說一次',
172
172
  'ta.hear.failed': '電腦上的語音辨識還沒準備好',
173
173
  'ta.hear.retry': '重試',
174
+ 'ta.hear.service': '改用語音服務',
174
175
  'ta.hear.unsupported': '這台裝置不能辨識語音,電腦也跑不了 Ta 的語音辨識',
175
176
  'ta.hear.unavailable': '這台裝置不能辨識語音,Ta 的語音辨識也沒開',
176
177
  'ta.hear.unavailableHint': '在 設定 → 擴充 裡開啟「即時語音」和「本機模型」。',
@@ -56,9 +56,6 @@ export const COMMON_ZH_TW = {
56
56
  'ta.clip.pasteMany': '貼上的內容裡有 {count} 個 Ta 連結',
57
57
  'ta.clip.pick': '點一個開啟',
58
58
  'ta.clip.open': '開啟',
59
- 'ta.clip.maybe': '剪貼簿裡有個連結',
60
- 'ta.clip.maybeDetail': '是 Ta 的邀請或分享的話,點「開啟」就能開啟',
61
- 'ta.clip.none': '剪貼簿裡沒有 Ta 的連結',
62
59
  'ta.link.notFound': '{path} 不存在。',
63
60
  'ta.terminal.openLink': 'Ctrl + 點選開啟',
64
61
  'ta.terminal.openLinkMac': 'Cmd + 點選開啟',
@@ -45,7 +45,10 @@ export const DISCOVER_ZH_TW = {
45
45
  'ta.share.friends': 'Ta 好友',
46
46
  'ta.share.pickFriends': '選擇好友',
47
47
  'ta.share.sendN': '傳送給 {n} 位',
48
- 'ta.share.sentTo': '已傳給 {n} 位好友,在對方的 Ta 裡等著開啟',
48
+ 'ta.share.sentTitle': '傳給了這些好友',
49
+ 'ta.share.sent': '已傳出',
50
+ 'ta.share.got': '已收到',
51
+ 'ta.share.opened': '已開啟',
49
52
  'ta.share.renew': '換新連結',
50
53
  'ta.share.passwordApart': '密碼請另行告訴對方:',
51
54
  'ta.share.copyPassword': '複製密碼',
@@ -261,6 +261,6 @@ export const SERVICE_ZH_TW = {
261
261
  'ta.relay.unpair': '取消配對',
262
262
  'ta.relay.unpairConfirm': '取消配對 {name}?它將無法再連到這台電腦上的 Ta。',
263
263
  'ta.relay.keepAwake': '讓電腦保持喚醒',
264
- 'ta.relay.keepAwakeHint': '有任務在跑,或手機連過後的 30 分鐘內,電腦閒置也不睡眠,手機隨時連得上。螢幕照常熄滅,合上蓋子仍會睡眠。',
264
+ 'ta.relay.keepAwakeHint': '插著電源時一直不睡眠,下班把電腦留在公司,手機晚上也連得上;用電池時,只在有任務在跑或手機連過後的 30 分鐘內不睡眠。螢幕照常熄滅、鎖定,合上蓋子仍會睡眠。',
265
265
  };
266
266
  //# sourceMappingURL=service.js.map
@@ -59,6 +59,14 @@ export const SETTINGS_ZH_TW = {
59
59
  'ta.settings.diagramStyle.sketch': '草圖',
60
60
  'ta.settings.diagramStyle.colour': '彩色',
61
61
  'ta.settings.diagramStyle.motion': '動效',
62
+ 'ta.settings.skin': '皮膚',
63
+ 'ta.settings.skinHint': 'Ta 背後的畫面,各欄像玻璃一樣透出它。',
64
+ 'ta.settings.skin.none': '無',
65
+ 'ta.settings.glass': '玻璃',
66
+ 'ta.settings.glassHint': '透出多少皮膚的畫面。',
67
+ 'ta.settings.glass.clear': '清透',
68
+ 'ta.settings.glass.soft': '柔和',
69
+ 'ta.settings.glass.focus': '專注',
62
70
  'ta.settings.fontSize': '字型大小',
63
71
  'ta.settings.fontSizeHint': '整個頁面的文字。',
64
72
  'ta.settings.chatFontSize': '對話字型大小',
@@ -32,6 +32,11 @@ export const TOOLS_ZH_TW = {
32
32
  'ta.tool.verb.deleteScheduled': '取消定時任務',
33
33
  'ta.tool.verb.publish': '發布',
34
34
  'ta.tool.verb.editImage': '編輯圖片',
35
+ 'ta.tool.verb.generateImage': '生成圖片',
36
+ 'ta.tool.verb.generateVideo': '生成影片',
37
+ 'ta.tool.verb.findTools': '查找工具',
38
+ 'ta.tool.verb.callTool': '呼叫工具',
39
+ 'ta.tool.verb.notify': '傳送通知',
35
40
  'ta.tool.verb.click': '點擊',
36
41
  'ta.tool.verb.doubleClick': '雙擊',
37
42
  'ta.tool.verb.rightClick': '右鍵點擊',
@@ -1,8 +1,6 @@
1
1
  import type { MessageId } from '../i18n/messages.js';
2
2
  import type { TaNotices } from '../notices/notices-protocol.js';
3
3
  import { type FoundLink } from './link-text.js';
4
- /** What the Ta app on a phone posts to its page of the clipboard (`ta-clipboard`): a link may be there, or the text read when asked. */
5
- export declare const CLIPBOARD_EVENT = "ta-clipboard";
6
4
  /** What ClipboardLinks uses of the page. */
7
5
  export interface ClipboardLinksHost {
8
6
  /** The links of Ta in a text (TaLinks.find). */
@@ -40,9 +38,9 @@ export declare class SeenLinks {
40
38
  *
41
39
  * Cheap and quiet: nothing runs on a timer; the clipboard is read when the page comes to the front, at most once a
42
40
  * second, and only where it may be read without asking the user (Ta Desktop; a browser that was allowed; the Ta app of
43
- * Android, when it changed). The Ta app of iOS says only that a link may be there, which iOS tells without reading, and
44
- * reads it when the user taps Open. A text read is looked through once (LinkText); what the user copied in Ta itself is
45
- * never offered back.
41
+ * Android, when it changed). The Ta app of iOS looks at nothing as Ta comes back: iOS tells without asking only that some
42
+ * web link is there, any link copied on the phone or on a Mac near it, so it offers a link of Ta when pasted, as a
43
+ * browser does. A text read is looked through once (LinkText); what the user copied in Ta itself is never offered back.
46
44
  */
47
45
  export declare class ClipboardLinks {
48
46
  protected readonly host: ClipboardLinksHost;
@@ -70,10 +68,8 @@ export declare class ClipboardLinks {
70
68
  protected fresh(text: string): FoundLink[];
71
69
  /** Pasted into any box of Ta: offered, unless the box opened it (a box for links). */
72
70
  protected pasted(text: string): void;
73
- /** Copied in Ta: never offered back, and the app of a phone counts the clipboard as seen. */
71
+ /** Copied in Ta: never offered back, and the app of Android counts the clipboard as seen. */
74
72
  protected mine(text: string, scope: Window & typeof globalThis): void;
75
- /** What the Ta app of iOS said: a link may be in the clipboard, or the text read once the user tapped Open. */
76
- protected heard(detail: unknown, scope: Window & typeof globalThis): void;
77
73
  /** One notice: the words the link came with and what it is, and Open; for several, a button each. */
78
74
  protected offer(found: readonly FoundLink[], from: From): void;
79
75
  /** A button of several: its kind, or its words where two are of one kind. */
@@ -1,6 +1,4 @@
1
1
  import { LinkText } from './link-text.js';
2
- /** What the Ta app on a phone posts to its page of the clipboard (`ta-clipboard`): a link may be there, or the text read when asked. */
3
- export const CLIPBOARD_EVENT = 'ta-clipboard';
4
2
  /**
5
3
  * The links of Ta offered once (docs/design/ta-links.md 7): kept by a hash of each, never the link, whose fragment holds
6
4
  * its key; the newest {@link SeenLinks.MAX}, in the storage of the device.
@@ -65,9 +63,9 @@ SeenLinks.MAX = 200;
65
63
  *
66
64
  * Cheap and quiet: nothing runs on a timer; the clipboard is read when the page comes to the front, at most once a
67
65
  * second, and only where it may be read without asking the user (Ta Desktop; a browser that was allowed; the Ta app of
68
- * Android, when it changed). The Ta app of iOS says only that a link may be there, which iOS tells without reading, and
69
- * reads it when the user taps Open. A text read is looked through once (LinkText); what the user copied in Ta itself is
70
- * never offered back.
66
+ * Android, when it changed). The Ta app of iOS looks at nothing as Ta comes back: iOS tells without asking only that some
67
+ * web link is there, any link copied on the phone or on a Mac near it, so it offers a link of Ta when pasted, as a
68
+ * browser does. A text read is looked through once (LinkText); what the user copied in Ta itself is never offered back.
71
69
  */
72
70
  export class ClipboardLinks {
73
71
  constructor(host, seen = new SeenLinks(ClipboardLinks.storage())) {
@@ -86,13 +84,11 @@ export class ClipboardLinks {
86
84
  const visible = () => doc.visibilityState === 'visible' && this.check(scope);
87
85
  const paste = (event) => { var _a; var _b; return this.pasted((_b = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text/plain')) !== null && _b !== void 0 ? _b : ''); };
88
86
  const copy = (event) => this.mine(ClipboardLinks.selected(scope, event.target), scope);
89
- const native = (event) => this.heard(event.detail, scope);
90
87
  scope.addEventListener('focus', check);
91
88
  doc.addEventListener('visibilitychange', visible);
92
89
  doc.addEventListener('paste', paste, true);
93
90
  doc.addEventListener('copy', copy, true);
94
91
  doc.addEventListener('cut', copy, true);
95
- scope.addEventListener(CLIPBOARD_EVENT, native);
96
92
  const stopOpen = this.host.onOpen(url => {
97
93
  this.opened.add(url);
98
94
  this.seen.add([url]);
@@ -105,7 +101,6 @@ export class ClipboardLinks {
105
101
  doc.removeEventListener('paste', paste, true);
106
102
  doc.removeEventListener('copy', copy, true);
107
103
  doc.removeEventListener('cut', copy, true);
108
- scope.removeEventListener(CLIPBOARD_EVENT, native);
109
104
  stopOpen();
110
105
  unwrap();
111
106
  };
@@ -117,8 +112,8 @@ export class ClipboardLinks {
117
112
  }
118
113
  /** Ta came to the front: what was copied meanwhile, where it may be read without asking. */
119
114
  check(scope = window) {
120
- var _a, _b, _c;
121
- var _d;
115
+ var _a;
116
+ var _b;
122
117
  const now = Date.now();
123
118
  if (!this.ready || !this.host.enabled() || scope.document.visibilityState === 'hidden' || now - this.lastCheck < ClipboardLinks.THROTTLE_MS) {
124
119
  return;
@@ -126,13 +121,10 @@ export class ClipboardLinks {
126
121
  this.lastCheck = now;
127
122
  const native = scope;
128
123
  if (native.taClipboardAndroid) {
129
- this.take((_d = native.taClipboardAndroid.read()) !== null && _d !== void 0 ? _d : '', 'clipboard');
130
- }
131
- else if ((_b = (_a = native.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.taClipboard) {
132
- native.webkit.messageHandlers.taClipboard.postMessage('peek');
124
+ this.take((_b = native.taClipboardAndroid.read()) !== null && _b !== void 0 ? _b : '', 'clipboard');
133
125
  }
134
126
  else if (this.readable && scope.document.hasFocus()) {
135
- (_c = scope.navigator.clipboard) === null || _c === void 0 ? void 0 : _c.readText().then(text => this.take(text, 'clipboard'), () => undefined);
127
+ (_a = scope.navigator.clipboard) === null || _a === void 0 ? void 0 : _a.readText().then(text => this.take(text, 'clipboard'), () => undefined);
136
128
  }
137
129
  }
138
130
  /** A text of the clipboard or pasted: its links of Ta not offered before, offered now. */
@@ -168,7 +160,7 @@ export class ClipboardLinks {
168
160
  }
169
161
  }, ClipboardLinks.PASTE_WAIT_MS);
170
162
  }
171
- /** Copied in Ta: never offered back, and the app of a phone counts the clipboard as seen. */
163
+ /** Copied in Ta: never offered back, and the app of Android counts the clipboard as seen. */
172
164
  mine(text, scope) {
173
165
  if (text) {
174
166
  this.lastText = text;
@@ -176,41 +168,7 @@ export class ClipboardLinks {
176
168
  }
177
169
  const native = scope;
178
170
  // Once the clipboard holds it: the copy event comes before.
179
- setTimeout(() => {
180
- var _a, _b, _c, _d;
181
- (_c = (_b = (_a = native.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.taClipboard) === null || _c === void 0 ? void 0 : _c.postMessage('mine');
182
- (_d = native.taClipboardAndroid) === null || _d === void 0 ? void 0 : _d.mine();
183
- }, 50);
184
- }
185
- /** What the Ta app of iOS said: a link may be in the clipboard, or the text read once the user tapped Open. */
186
- heard(detail, scope) {
187
- const said = (detail !== null && detail !== void 0 ? detail : {});
188
- if (said.url === true && this.ready && this.host.enabled()) {
189
- this.host.notices.notify(this.host.say('ta.clip.maybe'), {
190
- level: 'info',
191
- key: ClipboardLinks.KEY,
192
- detail: this.host.say('ta.clip.maybeDetail'),
193
- action: {
194
- label: this.host.say('ta.clip.open'),
195
- run: () => { var _a, _b, _c; return (_c = (_b = (_a = scope.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.taClipboard) === null || _c === void 0 ? void 0 : _c.postMessage('read'); },
196
- },
197
- });
198
- }
199
- else if (typeof said.text === 'string') {
200
- // The user asked: offered again if seen, opened at once when it is one.
201
- const found = this.host.find(said.text);
202
- this.lastText = said.text;
203
- this.seen.add(found.map(link => link.url));
204
- if (found.length === 1) {
205
- this.host.open(found[0].url);
206
- }
207
- else if (found.length) {
208
- this.offer(found, 'clipboard');
209
- }
210
- else {
211
- this.host.notices.notify(this.host.say('ta.clip.none'), { level: 'info', key: ClipboardLinks.KEY });
212
- }
213
- }
171
+ setTimeout(() => { var _a; return (_a = native.taClipboardAndroid) === null || _a === void 0 ? void 0 : _a.mine(); }, 50);
214
172
  }
215
173
  /** One notice: the words the link came with and what it is, and Open; for several, a button each. */
216
174
  offer(found, from) {