@celljs/ta-web 4.47.1 → 4.49.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 (247) hide show
  1. package/esm/browser/assistant/assistant-role.d.ts +1 -1
  2. package/esm/browser/assistant/assistant-role.js +1 -1
  3. package/esm/browser/assistant/assistant-task-source.js +6 -1
  4. package/esm/browser/assistant/assistant-task-util.d.ts +1 -0
  5. package/esm/browser/assistant/assistant-task-util.js +9 -3
  6. package/esm/browser/assistant/assistant-view.js +4 -2
  7. package/esm/browser/cloud/cloud-sign-in.d.ts +26 -4
  8. package/esm/browser/cloud/cloud-sign-in.js +88 -18
  9. package/esm/browser/components/app-nav.d.ts +3 -1
  10. package/esm/browser/components/app-nav.js +3 -3
  11. package/esm/browser/components/app-view.js +16 -6
  12. package/esm/browser/components/asks-badge.d.ts +12 -0
  13. package/esm/browser/components/asks-badge.js +17 -1
  14. package/esm/browser/components/chat-list-row.d.ts +4 -1
  15. package/esm/browser/components/chat-list-row.js +7 -1
  16. package/esm/browser/components/chats-dot.d.ts +4 -1
  17. package/esm/browser/components/chats-dot.js +6 -2
  18. package/esm/browser/components/cloud-sign-in-view.d.ts +2 -1
  19. package/esm/browser/components/cloud-sign-in-view.js +28 -5
  20. package/esm/browser/components/composer-box-protocol.d.ts +5 -3
  21. package/esm/browser/components/composer-box.js +11 -11
  22. package/esm/browser/components/composer.d.ts +8 -1
  23. package/esm/browser/components/composer.js +57 -34
  24. package/esm/browser/components/host-view.d.ts +1 -1
  25. package/esm/browser/components/lightbox.d.ts +15 -1
  26. package/esm/browser/components/lightbox.js +14 -2
  27. package/esm/browser/components/link.js +8 -3
  28. package/esm/browser/components/markdown.d.ts +4 -2
  29. package/esm/browser/components/markdown.js +13 -4
  30. package/esm/browser/components/media.d.ts +6 -0
  31. package/esm/browser/components/media.js +9 -1
  32. package/esm/browser/components/message-images.d.ts +5 -0
  33. package/esm/browser/components/message-images.js +40 -4
  34. package/esm/browser/components/message-user.js +4 -2
  35. package/esm/browser/components/partner-row.js +4 -4
  36. package/esm/browser/components/phone-shell.d.ts +2 -0
  37. package/esm/browser/components/phone-shell.js +2 -2
  38. package/esm/browser/components/sending.d.ts +19 -0
  39. package/esm/browser/components/sending.js +27 -0
  40. package/esm/browser/components/session-view.js +4 -3
  41. package/esm/browser/components/settings-choices.js +1 -0
  42. package/esm/browser/components/settings-parts.js +28 -17
  43. package/esm/browser/components/share-dialog.js +3 -2
  44. package/esm/browser/components/share-item-sheet.js +1 -1
  45. package/esm/browser/components/share-sheet.d.ts +4 -2
  46. package/esm/browser/components/share-sheet.js +16 -2
  47. package/esm/browser/components/sign-in-accounts.js +7 -1
  48. package/esm/browser/components/unseen-drop.d.ts +2 -2
  49. package/esm/browser/components/unseen-drop.js +1 -1
  50. package/esm/browser/device/app-badge.d.ts +8 -0
  51. package/esm/browser/device/app-badge.js +28 -0
  52. package/esm/browser/device/code-scan.js +1 -1
  53. package/esm/browser/extension/web-api-code.d.ts +26 -0
  54. package/esm/browser/extension/web-api-components.d.ts +31 -0
  55. package/esm/browser/extension/web-api-menus.d.ts +15 -0
  56. package/esm/browser/extension/web-api-messages.d.ts +15 -0
  57. package/esm/browser/extension/web-api-messages.js +2 -0
  58. package/esm/browser/extension/web-api-partners.d.ts +16 -0
  59. package/esm/browser/extension/web-api-spec.js +1 -0
  60. package/esm/browser/extension/web-extension-api.d.ts +7 -13
  61. package/esm/browser/extension/web-extension-context.js +2 -0
  62. package/esm/browser/extension/web-session-notices.js +11 -2
  63. package/esm/browser/extension/web-share-ui.js +1 -0
  64. package/esm/browser/extension/web-share.js +3 -3
  65. package/esm/browser/extension/web-sharing.js +1 -1
  66. package/esm/browser/i18n/en/assistant.d.ts +2 -0
  67. package/esm/browser/i18n/en/assistant.js +2 -0
  68. package/esm/browser/i18n/en/chat.d.ts +11 -0
  69. package/esm/browser/i18n/en/chat.js +13 -2
  70. package/esm/browser/i18n/en/common.d.ts +4 -0
  71. package/esm/browser/i18n/en/common.js +4 -0
  72. package/esm/browser/i18n/en/service.d.ts +5 -0
  73. package/esm/browser/i18n/en/service.js +5 -0
  74. package/esm/browser/i18n/en/settings.d.ts +6 -0
  75. package/esm/browser/i18n/en/settings.js +8 -2
  76. package/esm/browser/i18n/ja/assistant.js +2 -0
  77. package/esm/browser/i18n/ja/chat.js +13 -2
  78. package/esm/browser/i18n/ja/common.js +4 -0
  79. package/esm/browser/i18n/ja/service.js +5 -0
  80. package/esm/browser/i18n/ja/settings.js +10 -4
  81. package/esm/browser/i18n/locales.d.ts +29 -1
  82. package/esm/browser/i18n/messages.d.ts +28 -0
  83. package/esm/browser/i18n/zh/assistant.js +2 -0
  84. package/esm/browser/i18n/zh/chat.js +13 -2
  85. package/esm/browser/i18n/zh/common.js +4 -0
  86. package/esm/browser/i18n/zh/service.js +5 -0
  87. package/esm/browser/i18n/zh/settings.js +8 -2
  88. package/esm/browser/i18n/zh-tw/assistant.js +2 -0
  89. package/esm/browser/i18n/zh-tw/chat.js +13 -2
  90. package/esm/browser/i18n/zh-tw/common.js +4 -0
  91. package/esm/browser/i18n/zh-tw/service.js +5 -0
  92. package/esm/browser/i18n/zh-tw/settings.js +8 -2
  93. package/esm/browser/links/links.js +1 -1
  94. package/esm/browser/notices/session-notices.d.ts +4 -4
  95. package/esm/browser/notices/session-notices.js +3 -6
  96. package/esm/browser/partners/partners-util.d.ts +6 -0
  97. package/esm/browser/partners/partners-util.js +22 -0
  98. package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
  99. package/esm/browser/settings/agent-settings.d.ts +2 -0
  100. package/esm/browser/settings/agent-settings.js +2 -0
  101. package/esm/browser/settings/settings-protocol.d.ts +8 -0
  102. package/esm/browser/settings/settings-protocol.js +5 -0
  103. package/esm/browser/style/base.d.ts +1 -1
  104. package/esm/browser/style/base.js +3 -0
  105. package/esm/browser/style/chat-list.d.ts +1 -1
  106. package/esm/browser/style/chat-list.js +8 -3
  107. package/esm/browser/style/conversation-column.d.ts +1 -1
  108. package/esm/browser/style/conversation-column.js +6 -1
  109. package/esm/browser/style/conversation.d.ts +1 -1
  110. package/esm/browser/style/conversation.js +18 -0
  111. package/esm/browser/style/phone.d.ts +1 -1
  112. package/esm/browser/style/phone.js +2 -0
  113. package/esm/browser/util/composer.d.ts +18 -3
  114. package/esm/browser/util/composer.js +31 -5
  115. package/esm/browser/util/desktop.d.ts +8 -1
  116. package/esm/browser/util/desktop.js +10 -0
  117. package/esm/browser/util/image-shrink.d.ts +5 -1
  118. package/esm/browser/util/image-shrink.js +1 -1
  119. package/esm/browser/util/markdown.d.ts +3 -5
  120. package/esm/browser/util/markdown.js +5 -29
  121. package/esm/browser/util/process.js +2 -2
  122. package/lib/browser/assistant/assistant-role.d.ts +1 -1
  123. package/lib/browser/assistant/assistant-role.js +1 -1
  124. package/lib/browser/assistant/assistant-task-source.js +5 -0
  125. package/lib/browser/assistant/assistant-task-util.d.ts +1 -0
  126. package/lib/browser/assistant/assistant-task-util.js +8 -2
  127. package/lib/browser/assistant/assistant-view.js +4 -2
  128. package/lib/browser/cloud/cloud-sign-in.d.ts +26 -4
  129. package/lib/browser/cloud/cloud-sign-in.js +89 -19
  130. package/lib/browser/components/app-nav.d.ts +3 -1
  131. package/lib/browser/components/app-nav.js +2 -2
  132. package/lib/browser/components/app-view.js +16 -6
  133. package/lib/browser/components/asks-badge.d.ts +12 -0
  134. package/lib/browser/components/asks-badge.js +19 -1
  135. package/lib/browser/components/chat-list-row.d.ts +4 -1
  136. package/lib/browser/components/chat-list-row.js +7 -1
  137. package/lib/browser/components/chats-dot.d.ts +4 -1
  138. package/lib/browser/components/chats-dot.js +6 -2
  139. package/lib/browser/components/cloud-sign-in-view.d.ts +2 -1
  140. package/lib/browser/components/cloud-sign-in-view.js +28 -5
  141. package/lib/browser/components/composer-box-protocol.d.ts +5 -3
  142. package/lib/browser/components/composer-box.js +11 -11
  143. package/lib/browser/components/composer.d.ts +8 -1
  144. package/lib/browser/components/composer.js +56 -33
  145. package/lib/browser/components/host-view.d.ts +1 -1
  146. package/lib/browser/components/lightbox.d.ts +15 -1
  147. package/lib/browser/components/lightbox.js +15 -2
  148. package/lib/browser/components/link.js +8 -3
  149. package/lib/browser/components/markdown.d.ts +4 -2
  150. package/lib/browser/components/markdown.js +11 -2
  151. package/lib/browser/components/media.d.ts +6 -0
  152. package/lib/browser/components/media.js +10 -2
  153. package/lib/browser/components/message-images.d.ts +5 -0
  154. package/lib/browser/components/message-images.js +40 -4
  155. package/lib/browser/components/message-user.js +4 -2
  156. package/lib/browser/components/partner-row.js +4 -4
  157. package/lib/browser/components/phone-shell.d.ts +2 -0
  158. package/lib/browser/components/phone-shell.js +1 -1
  159. package/lib/browser/components/sending.d.ts +20 -0
  160. package/lib/browser/components/sending.js +63 -0
  161. package/lib/browser/components/session-view.js +4 -3
  162. package/lib/browser/components/settings-choices.js +1 -0
  163. package/lib/browser/components/settings-parts.js +26 -15
  164. package/lib/browser/components/share-dialog.js +3 -2
  165. package/lib/browser/components/share-item-sheet.js +1 -1
  166. package/lib/browser/components/share-sheet.d.ts +4 -2
  167. package/lib/browser/components/share-sheet.js +16 -2
  168. package/lib/browser/components/sign-in-accounts.js +7 -1
  169. package/lib/browser/components/unseen-drop.d.ts +2 -2
  170. package/lib/browser/components/unseen-drop.js +1 -1
  171. package/lib/browser/device/app-badge.d.ts +9 -0
  172. package/lib/browser/device/app-badge.js +31 -0
  173. package/lib/browser/device/code-scan.js +1 -1
  174. package/lib/browser/extension/web-api-code.d.ts +26 -0
  175. package/lib/browser/extension/web-api-components.d.ts +31 -0
  176. package/lib/browser/extension/web-api-menus.d.ts +15 -0
  177. package/lib/browser/extension/web-api-messages.d.ts +16 -0
  178. package/lib/browser/extension/web-api-messages.js +3 -0
  179. package/lib/browser/extension/web-api-partners.d.ts +16 -0
  180. package/lib/browser/extension/web-api-spec.js +1 -0
  181. package/lib/browser/extension/web-extension-api.d.ts +7 -13
  182. package/lib/browser/extension/web-extension-context.js +2 -0
  183. package/lib/browser/extension/web-session-notices.js +10 -1
  184. package/lib/browser/extension/web-share-ui.js +1 -0
  185. package/lib/browser/extension/web-share.js +3 -3
  186. package/lib/browser/extension/web-sharing.js +1 -1
  187. package/lib/browser/i18n/en/assistant.d.ts +2 -0
  188. package/lib/browser/i18n/en/assistant.js +2 -0
  189. package/lib/browser/i18n/en/chat.d.ts +11 -0
  190. package/lib/browser/i18n/en/chat.js +13 -2
  191. package/lib/browser/i18n/en/common.d.ts +4 -0
  192. package/lib/browser/i18n/en/common.js +4 -0
  193. package/lib/browser/i18n/en/service.d.ts +5 -0
  194. package/lib/browser/i18n/en/service.js +5 -0
  195. package/lib/browser/i18n/en/settings.d.ts +6 -0
  196. package/lib/browser/i18n/en/settings.js +8 -2
  197. package/lib/browser/i18n/ja/assistant.js +2 -0
  198. package/lib/browser/i18n/ja/chat.js +13 -2
  199. package/lib/browser/i18n/ja/common.js +4 -0
  200. package/lib/browser/i18n/ja/service.js +5 -0
  201. package/lib/browser/i18n/ja/settings.js +10 -4
  202. package/lib/browser/i18n/locales.d.ts +29 -1
  203. package/lib/browser/i18n/messages.d.ts +28 -0
  204. package/lib/browser/i18n/zh/assistant.js +2 -0
  205. package/lib/browser/i18n/zh/chat.js +13 -2
  206. package/lib/browser/i18n/zh/common.js +4 -0
  207. package/lib/browser/i18n/zh/service.js +5 -0
  208. package/lib/browser/i18n/zh/settings.js +8 -2
  209. package/lib/browser/i18n/zh-tw/assistant.js +2 -0
  210. package/lib/browser/i18n/zh-tw/chat.js +13 -2
  211. package/lib/browser/i18n/zh-tw/common.js +4 -0
  212. package/lib/browser/i18n/zh-tw/service.js +5 -0
  213. package/lib/browser/i18n/zh-tw/settings.js +8 -2
  214. package/lib/browser/links/links.js +1 -1
  215. package/lib/browser/notices/session-notices.d.ts +4 -4
  216. package/lib/browser/notices/session-notices.js +3 -6
  217. package/lib/browser/partners/partners-util.d.ts +6 -0
  218. package/lib/browser/partners/partners-util.js +22 -0
  219. package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
  220. package/lib/browser/settings/agent-settings.d.ts +2 -0
  221. package/lib/browser/settings/agent-settings.js +3 -1
  222. package/lib/browser/settings/settings-protocol.d.ts +8 -0
  223. package/lib/browser/settings/settings-protocol.js +6 -1
  224. package/lib/browser/style/base.d.ts +1 -1
  225. package/lib/browser/style/base.js +3 -0
  226. package/lib/browser/style/chat-list.d.ts +1 -1
  227. package/lib/browser/style/chat-list.js +8 -3
  228. package/lib/browser/style/conversation-column.d.ts +1 -1
  229. package/lib/browser/style/conversation-column.js +6 -1
  230. package/lib/browser/style/conversation.d.ts +1 -1
  231. package/lib/browser/style/conversation.js +18 -0
  232. package/lib/browser/style/phone.d.ts +1 -1
  233. package/lib/browser/style/phone.js +2 -0
  234. package/lib/browser/util/composer.d.ts +18 -3
  235. package/lib/browser/util/composer.js +31 -5
  236. package/lib/browser/util/desktop.d.ts +8 -1
  237. package/lib/browser/util/desktop.js +10 -0
  238. package/lib/browser/util/image-shrink.d.ts +5 -1
  239. package/lib/browser/util/image-shrink.js +1 -1
  240. package/lib/browser/util/markdown.d.ts +3 -5
  241. package/lib/browser/util/markdown.js +5 -29
  242. package/lib/browser/util/process.js +1 -1
  243. package/package.json +7 -7
  244. package/esm/browser/util/share-link.d.ts +0 -21
  245. package/esm/browser/util/share-link.js +0 -61
  246. package/lib/browser/util/share-link.d.ts +0 -22
  247. package/lib/browser/util/share-link.js +0 -64
@@ -212,12 +212,17 @@ export const SETTINGS_ZH = {
212
212
  'ta.setting.transport': '传输方式',
213
213
  'ta.setting.transport.hint': '模型服务支持多种连接方式时使用哪一种。',
214
214
  'ta.setting.transport.auto': '自动',
215
+ 'ta.settings.sendWhileWorking': '工作中发消息',
216
+ 'ta.settings.sendWhileWorkingHint': 'Ta 正在干活时,按 Enter 或发送按钮发出的消息怎么处理(这台设备)。{alt}Enter、{mod}Enter 可以临时换另一种。',
217
+ 'ta.settings.sendWhileWorking.steer': '引导(推荐)',
218
+ 'ta.settings.sendWhileWorking.followUp': '排队',
219
+ 'ta.settings.sendWhileWorking.interrupt': '立即发送',
215
220
  'ta.setting.steeringMode': '引导消息',
216
- 'ta.setting.steeringMode.hint': '工作中发送(Enter)的消息是逐条送达还是一起送达。',
221
+ 'ta.setting.steeringMode.hint': 'Ta 跑完手上的工具就读到;攒了几条时,逐条读还是一起读。',
217
222
  'ta.setting.steeringMode.one-at-a-time': '逐条',
218
223
  'ta.setting.steeringMode.all': '一起',
219
224
  'ta.setting.followUpMode': '排队消息',
220
- 'ta.setting.followUpMode.hint': '排在本轮之后的消息(Alt+Enter)。',
225
+ 'ta.setting.followUpMode.hint': '等这一轮回复完才发;攒了几条时,逐条发还是一起发。',
221
226
  'ta.setting.followUpMode.one-at-a-time': '逐条',
222
227
  'ta.setting.followUpMode.all': '一起',
223
228
  'ta.setting.context.renewAt': '上下文多满时换新',
@@ -276,6 +281,7 @@ export const SETTINGS_ZH = {
276
281
  'ta.shortcut.send': '发送',
277
282
  'ta.shortcut.newline': '换行',
278
283
  'ta.shortcut.followUp': 'Ta 工作时排队一条消息',
284
+ 'ta.shortcut.sendNow': '立即发送:打断 Ta,马上处理这条',
279
285
  'ta.shortcut.stop': '停止 Ta',
280
286
  'ta.shortcut.commands': '命令与技能',
281
287
  'ta.shortcut.files': '提及文件',
@@ -77,6 +77,8 @@ export const ASSISTANT_ZH_TW = {
77
77
  'ta.task.running': '進行中',
78
78
  'ta.task.done': '已完成',
79
79
  'ta.task.failed': '失敗',
80
+ 'ta.task.deadEndFiltered': '沒完成:回答被模型服務的內容過濾攔下了(已自動重試一次)',
81
+ 'ta.task.deadEndEmpty': '沒完成:模型沒有輸出就結束了(已自動重試一次)',
80
82
  'ta.task.verdictPass': '檢查通過',
81
83
  'ta.task.verdictFail': '檢查未通過',
82
84
  'ta.task.branch': '分支 {branch}',
@@ -14,6 +14,7 @@ export const CHAT_ZH_TW = {
14
14
  'ta.chat.asking': '等你決定',
15
15
  'ta.chat.draft': '草稿',
16
16
  'ta.chat.asksCount': '{count} 個待你決定',
17
+ 'ta.chat.unseenCount': '{count} 則新訊息',
17
18
  'ta.chat.letGo': '不用決定了',
18
19
  'ta.chat.toAsk': '等你決定:{question}',
19
20
  'ta.chat.removed': '已移除({count})',
@@ -55,7 +56,7 @@ export const CHAT_ZH_TW = {
55
56
  'ta.session.waitingClientTool': '等待客戶端工具',
56
57
  'ta.composer.placeholder': '給 Ta 發訊息;/ 檢視命令,@ 引用檔案',
57
58
  'ta.composer.placeholderTouch': '給 Ta 發訊息',
58
- 'ta.composer.steerPlaceholder': '繼續補充或引導 Ta;Alt+Enter 排隊追加',
59
+ 'ta.composer.steerPlaceholder': '繼續補充或引導 Ta;{alt}Enter 排隊,{mod}Enter 立即發送',
59
60
  'ta.composer.steerPlaceholderTouch': '繼續補充或引導 Ta',
60
61
  'ta.composer.stopTitle': '停止(Esc)',
61
62
  'ta.composer.stopping': '正在停止…',
@@ -88,6 +89,7 @@ export const CHAT_ZH_TW = {
88
89
  'ta.message.sendFailed': '傳送失敗',
89
90
  'ta.message.resend': '重發',
90
91
  'ta.message.discard': '刪除',
92
+ 'ta.message.sending': '傳送中',
91
93
  'ta.message.noModel': '還沒連上模型,Ta 沒法回答',
92
94
  'ta.message.connectModel': '連接模型',
93
95
  'ta.message.selectText': '選擇文本',
@@ -193,7 +195,7 @@ export const CHAT_ZH_TW = {
193
195
  'ta.talk.tooShort': '說話時間太短',
194
196
  'ta.talk.hold': '按住 說話',
195
197
  'ta.composer.keyboard': '切換到鍵盤',
196
- 'ta.composer.steerTitle': '引導 Ta(Enter);Alt+Enter 排隊追加',
198
+ 'ta.composer.steerTitle': '引導 Ta(Enter);{alt}Enter 排隊,{mod}Enter 立即發送',
197
199
  'ta.composer.addImage': '上傳圖片',
198
200
  'ta.composer.addMedia': '上傳圖片或影片',
199
201
  'ta.composer.album': '相簿',
@@ -227,6 +229,15 @@ export const CHAT_ZH_TW = {
227
229
  'ta.composer.queue.takeBackTitle': '把排隊的訊息取回輸入框',
228
230
  'ta.composer.queue.editTitle': '撤回到輸入框編輯',
229
231
  'ta.composer.queue.remove': '刪除',
232
+ 'ta.composer.queue.settings': '工作中發訊息的設定',
233
+ 'ta.composer.queue.sendNowTitle': '打斷 Ta 手上的事,馬上發這則',
234
+ 'ta.composer.queue.sendNow': '立即發送',
235
+ 'ta.composer.interruptTitle': '打斷 Ta,立即發送(Enter);{alt}Enter 排隊',
236
+ 'ta.composer.followUpTitle': '排隊,等它回覆完再發(Enter);{mod}Enter 立即發送',
237
+ 'ta.composer.interruptPlaceholderTouch': '發出去會打斷 Ta,馬上處理這則',
238
+ 'ta.composer.interruptPlaceholder': '發出去會打斷 Ta,馬上處理這則;{alt}Enter 排隊',
239
+ 'ta.composer.followUpPlaceholderTouch': '排一則訊息,等它回覆完再發',
240
+ 'ta.composer.followUpPlaceholder': '排一則訊息,等它回覆完再發;{mod}Enter 立即發送',
230
241
  'ta.chat.replyingFor': '{names} · 正在回覆',
231
242
  'ta.chats.busy': '進行中的對話',
232
243
  'ta.chat.tagOpen': '這是什麼、怎麼改',
@@ -22,6 +22,9 @@ export const COMMON_ZH_TW = {
22
22
  'ta.markdown.exitFullscreen': '退出全螢幕',
23
23
  'ta.markdown.enlarge': '檢視大圖',
24
24
  'ta.images.expand': '展開 {count}',
25
+ 'ta.images.original': '查看原圖 {size}',
26
+ 'ta.images.originalLoading': '正在載入原圖',
27
+ 'ta.images.originalFailed': '原圖暫時取不到,稍後再試',
25
28
  'ta.images.collapse': '收起',
26
29
  'ta.zoom.in': '放大',
27
30
  'ta.zoom.out': '縮小',
@@ -35,6 +38,7 @@ export const COMMON_ZH_TW = {
35
38
  'ta.zoom.next': '下一張(→)',
36
39
  'ta.zoom.failed': '無法顯示這張圖片',
37
40
  'ta.markdown.missing': '無法顯示 {name}',
41
+ 'ta.markdown.elsewhere': '{name} 在對方電腦上,沒有傳過來',
38
42
  'ta.markdown.retry': '點一下重試',
39
43
  'ta.link.openFile': '點選開啟',
40
44
  'ta.link.openFolder': '點選在資源管理器中顯示',
@@ -154,6 +154,11 @@ export const SERVICE_ZH_TW = {
154
154
  'ta.cloud.codeTitle': '在瀏覽器中完成登入',
155
155
  'ta.cloud.code': '確認瀏覽器頁面上顯示的是同一串碼,並在那裡登入。登入後這裡會自動連上。',
156
156
  'ta.cloud.pending': '等待你登入…',
157
+ 'ta.cloud.failed.timeout': '登入確認逾時了,再試一次就好。',
158
+ 'ta.cloud.failed.error': '這次沒有登入成功,請再試一次。',
159
+ 'ta.cloud.renewed': '等得太久,這次登入已失效,點下面重新登入。',
160
+ 'ta.cloud.reconnecting': '正在重新連線雲端 Ta…',
161
+ 'ta.cloud.signInAgain': '重新登入',
157
162
  'ta.cloud.connecting': '正在連線到 {host}…',
158
163
  'ta.cloud.retry': '重試',
159
164
  'ta.cloud.device.title': '允許新裝置登入',
@@ -212,12 +212,17 @@ export const SETTINGS_ZH_TW = {
212
212
  'ta.setting.transport': '傳輸方式',
213
213
  'ta.setting.transport.hint': '模型服務支援多種連線方式時使用哪一種。',
214
214
  'ta.setting.transport.auto': '自動',
215
+ 'ta.settings.sendWhileWorking': '工作中發訊息',
216
+ 'ta.settings.sendWhileWorkingHint': 'Ta 正在工作時,按 Enter 或發送按鈕發出的訊息怎麼處理(這台裝置)。{alt}Enter、{mod}Enter 可以臨時換另一種。',
217
+ 'ta.settings.sendWhileWorking.steer': '引導(推薦)',
218
+ 'ta.settings.sendWhileWorking.followUp': '排隊',
219
+ 'ta.settings.sendWhileWorking.interrupt': '立即發送',
215
220
  'ta.setting.steeringMode': '引導訊息',
216
- 'ta.setting.steeringMode.hint': '工作中傳送(Enter)的訊息是逐條送達還是一起送達。',
221
+ 'ta.setting.steeringMode.hint': 'Ta 跑完手上的工具就讀到;累積了幾則時,逐則讀還是一起讀。',
217
222
  'ta.setting.steeringMode.one-at-a-time': '逐條',
218
223
  'ta.setting.steeringMode.all': '一起',
219
224
  'ta.setting.followUpMode': '排隊訊息',
220
- 'ta.setting.followUpMode.hint': '排在本輪之後的訊息(Alt+Enter)。',
225
+ 'ta.setting.followUpMode.hint': '等這一輪回覆完才發;累積了幾則時,逐則發還是一起發。',
221
226
  'ta.setting.followUpMode.one-at-a-time': '逐條',
222
227
  'ta.setting.followUpMode.all': '一起',
223
228
  'ta.setting.context.renewAt': '上下文多滿時換新',
@@ -276,6 +281,7 @@ export const SETTINGS_ZH_TW = {
276
281
  'ta.shortcut.send': '傳送',
277
282
  'ta.shortcut.newline': '換行',
278
283
  'ta.shortcut.followUp': 'Ta 工作時排隊一條訊息',
284
+ 'ta.shortcut.sendNow': '立即發送:打斷 Ta,馬上處理這則',
279
285
  'ta.shortcut.stop': '停止 Ta',
280
286
  'ta.shortcut.commands': '命令與技能',
281
287
  'ta.shortcut.files': '提及檔案',
@@ -8,6 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { Autowired, Component } from '@celljs/core';
11
+ import { ShareLinkUtil } from '@celljs/ta-protocol/lib/common/share-link';
11
12
  import { RelayOpenInTa } from '@celljs/ta-relay/lib/common/relay-open-in-ta';
12
13
  import { MiniProgram } from '../device/mini-program.js';
13
14
  import { TaWebExtensions } from '../extension/web-extension-protocol.js';
@@ -15,7 +16,6 @@ import { message } from '../i18n/messages.js';
15
16
  import { TaNotices } from '../notices/notices-protocol.js';
16
17
  import { TaSettings } from '../settings/settings-protocol.js';
17
18
  import { LinkUtil } from '../util/link.js';
18
- import { ShareLinkUtil } from '../util/share-link.js';
19
19
  import { TaWorkbench } from '../workbench-protocol.js';
20
20
  import { pageHost, WorkbenchError, WorkbenchUtil } from '../workbench-util.js';
21
21
  import { LinkText } from './link-text.js';
@@ -11,7 +11,7 @@ export type SessionNoticeWay = 'none' | 'banner' | 'system' | 'waiting';
11
11
  export interface SessionNoticeScene {
12
12
  /** The page is in front and has the focus: the user is on it. */
13
13
  focused: boolean;
14
- /** The user looks at that conversation: it is shown, or it is the double's and its page is. */
14
+ /** The user looks at that conversation: it is shown, or it is the double's and its page is; the view of news of an extension. */
15
15
  looking: boolean;
16
16
  /** It is a task the double follows, which tells the user of it. */
17
17
  task: boolean;
@@ -54,9 +54,9 @@ export declare namespace SessionNoticeUtil {
54
54
  */
55
55
  function way(notice: Pick<WebSessionNotice, 'level' | 'view'>, scene: SessionNoticeScene): SessionNoticeWay;
56
56
  /**
57
- * Whether a notice the user asked to hear plays its tone: not of what they look at, nor of a task the double
58
- * tells of unless it asks, nor of news of an extension the page shows itself while in front; else it does,
59
- * whatever the way, as a messenger chimes in front on a phone and while away with no notice of the system.
57
+ * Whether a notice the user asked to hear plays its tone: not of what they look at (news of an extension, its
58
+ * view), nor of a task the double tells of unless it asks; else it does, whatever the way, as a messenger chimes
59
+ * in front on a phone (a friend writes in another chat) and while away with no notice of the system.
60
60
  */
61
61
  function audible(notice: Pick<WebSessionNotice, 'level' | 'view'>, scene: SessionNoticeScene): boolean;
62
62
  function level(notice: Pick<WebSessionNotice, 'level'>): NoticeLevel;
@@ -28,14 +28,11 @@ export var SessionNoticeUtil;
28
28
  }
29
29
  SessionNoticeUtil.way = way;
30
30
  /**
31
- * Whether a notice the user asked to hear plays its tone: not of what they look at, nor of a task the double
32
- * tells of unless it asks, nor of news of an extension the page shows itself while in front; else it does,
33
- * whatever the way, as a messenger chimes in front on a phone and while away with no notice of the system.
31
+ * Whether a notice the user asked to hear plays its tone: not of what they look at (news of an extension, its
32
+ * view), nor of a task the double tells of unless it asks; else it does, whatever the way, as a messenger chimes
33
+ * in front on a phone (a friend writes in another chat) and while away with no notice of the system.
34
34
  */
35
35
  function audible(notice, scene) {
36
- if (notice.view) {
37
- return !scene.focused;
38
- }
39
36
  if (scene.task && notice.level !== 'ask') {
40
37
  return false;
41
38
  }
@@ -35,4 +35,10 @@ export declare namespace PartnersUtil {
35
35
  function line(partner: WebPartnerEntry, waiting: string): string;
36
36
  /** It wants the user to look: one asks or invites them, or something was said they have not seen. */
37
37
  function unseen(partner: WebPartnerEntry): boolean;
38
+ /** How many messages of people it has the user has not seen (WebPartnerChat.count): 0 for none, or none counted. */
39
+ function count(partner: WebPartnerEntry): number;
40
+ /** Sees what each of them said that the user has not, as the number of the tab is dragged away (WebPartnerChat.see). */
41
+ function seeAll(partners: readonly WebPartnerEntry[]): void;
42
+ /** All of them, of the partners the double's list has: the red number of the tab of the chats. */
43
+ function counted(partners: readonly WebPartnerEntry[]): number;
38
44
  }
@@ -73,5 +73,27 @@ export var PartnersUtil;
73
73
  return partner.status === 'asking' || partner.status === 'invited' || (!partner.status && !!((_a = partner.chat) === null || _a === void 0 ? void 0 : _a.unseen));
74
74
  }
75
75
  PartnersUtil.unseen = unseen;
76
+ /** How many messages of people it has the user has not seen (WebPartnerChat.count): 0 for none, or none counted. */
77
+ function count(partner) {
78
+ var _a;
79
+ const count = !partner.status && ((_a = partner.chat) === null || _a === void 0 ? void 0 : _a.unseen) ? partner.chat.count : undefined;
80
+ return typeof count === 'number' && Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;
81
+ }
82
+ PartnersUtil.count = count;
83
+ /** Sees what each of them said that the user has not, as the number of the tab is dragged away (WebPartnerChat.see). */
84
+ function seeAll(partners) {
85
+ var _a, _b, _c;
86
+ for (const partner of chats(partners)) {
87
+ if (!partner.status && ((_a = partner.chat) === null || _a === void 0 ? void 0 : _a.unseen)) {
88
+ (_c = (_b = partner.chat).see) === null || _c === void 0 ? void 0 : _c.call(_b);
89
+ }
90
+ }
91
+ }
92
+ PartnersUtil.seeAll = seeAll;
93
+ /** All of them, of the partners the double's list has: the red number of the tab of the chats. */
94
+ function counted(partners) {
95
+ return chats(partners).reduce((sum, partner) => sum + count(partner), 0);
96
+ }
97
+ PartnersUtil.counted = counted;
76
98
  })(PartnersUtil || (PartnersUtil = {}));
77
99
  //# sourceMappingURL=partners-util.js.map