@celljs/ta-web 4.11.0 → 4.13.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 (281) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/assistant/assistant-extension.js +14 -0
  4. package/esm/browser/assistant/assistant-initiative.d.ts +27 -0
  5. package/esm/browser/assistant/assistant-initiative.js +76 -0
  6. package/esm/browser/assistant/assistant-task-source.d.ts +7 -0
  7. package/esm/browser/assistant/assistant-task-source.js +12 -2
  8. package/esm/browser/assistant/assistant-view.js +10 -6
  9. package/esm/browser/assistant/assistant.d.ts +5 -0
  10. package/esm/browser/assistant/assistant.js +25 -6
  11. package/esm/browser/chat/chat-view.js +6 -5
  12. package/esm/browser/components/app-nav.d.ts +3 -1
  13. package/esm/browser/components/app-nav.js +5 -2
  14. package/esm/browser/components/app-view.js +26 -13
  15. package/esm/browser/components/asks-badge.d.ts +5 -0
  16. package/esm/browser/components/asks-badge.js +8 -0
  17. package/esm/browser/components/chat-asks.d.ts +46 -0
  18. package/esm/browser/components/chat-asks.js +101 -0
  19. package/esm/browser/components/chat-list.d.ts +7 -1
  20. package/esm/browser/components/chat-list.js +46 -17
  21. package/esm/browser/components/composer-addon-util.d.ts +11 -0
  22. package/esm/browser/components/composer-addon-util.js +40 -0
  23. package/esm/browser/components/composer-addons.d.ts +1 -7
  24. package/esm/browser/components/composer-addons.js +1 -27
  25. package/esm/browser/components/composer-box.d.ts +1 -0
  26. package/esm/browser/components/composer-box.js +50 -28
  27. package/esm/browser/components/composer.d.ts +10 -1
  28. package/esm/browser/components/composer.js +61 -22
  29. package/esm/browser/components/connection-bar.js +31 -12
  30. package/esm/browser/components/conversation-scroll-hooks.d.ts +16 -0
  31. package/esm/browser/components/conversation-scroll-hooks.js +98 -0
  32. package/esm/browser/components/conversation-scroll-util.d.ts +35 -0
  33. package/esm/browser/components/conversation-scroll-util.js +74 -0
  34. package/esm/browser/components/conversation-scroll.d.ts +57 -33
  35. package/esm/browser/components/conversation-scroll.js +188 -123
  36. package/esm/browser/components/discover-view.js +5 -1
  37. package/esm/browser/components/earlier-messages.d.ts +10 -3
  38. package/esm/browser/components/earlier-messages.js +14 -8
  39. package/esm/browser/components/face.d.ts +24 -0
  40. package/esm/browser/components/face.js +42 -0
  41. package/esm/browser/components/folder-picker.d.ts +2 -0
  42. package/esm/browser/components/folder-picker.js +7 -0
  43. package/esm/browser/components/host-view.d.ts +1 -1
  44. package/esm/browser/components/markdown.js +4 -2
  45. package/esm/browser/components/media.js +25 -11
  46. package/esm/browser/components/mermaid-view.js +45 -3
  47. package/esm/browser/components/message-actions.js +1 -0
  48. package/esm/browser/components/message-footer.d.ts +4 -0
  49. package/esm/browser/components/message-footer.js +8 -1
  50. package/esm/browser/components/message-list.d.ts +15 -1
  51. package/esm/browser/components/message-list.js +204 -41
  52. package/esm/browser/components/phone-shell.d.ts +7 -2
  53. package/esm/browser/components/phone-shell.js +9 -3
  54. package/esm/browser/components/relay-services.d.ts +24 -0
  55. package/esm/browser/components/relay-services.js +249 -0
  56. package/esm/browser/components/relay-view.js +17 -1
  57. package/esm/browser/components/remote-hosts.js +1 -1
  58. package/esm/browser/components/session-view.d.ts +3 -1
  59. package/esm/browser/components/session-view.js +23 -7
  60. package/esm/browser/components/settings-controls.js +3 -3
  61. package/esm/browser/components/settings-parts.js +13 -1
  62. package/esm/browser/components/stop-times.d.ts +47 -0
  63. package/esm/browser/components/stop-times.js +81 -0
  64. package/esm/browser/components/ta-avatar.js +6 -0
  65. package/esm/browser/components/tool-result.d.ts +13 -0
  66. package/esm/browser/components/tool-result.js +138 -0
  67. package/esm/browser/components/tool-view.js +5 -15
  68. package/esm/browser/components/use-stop-times.d.ts +3 -0
  69. package/esm/browser/components/use-stop-times.js +17 -0
  70. package/esm/browser/components/web-composer.js +2 -1
  71. package/esm/browser/device/photo-picker.d.ts +14 -0
  72. package/esm/browser/device/photo-picker.js +48 -0
  73. package/esm/browser/device/row-swipe.d.ts +2 -0
  74. package/esm/browser/device/row-swipe.js +8 -2
  75. package/esm/browser/device/sheet-swipe.d.ts +1 -1
  76. package/esm/browser/device/sheet-swipe.js +17 -3
  77. package/esm/browser/extension/extension-view.d.ts +3 -1
  78. package/esm/browser/extension/extension-view.js +7 -0
  79. package/esm/browser/extension/icons.js +10 -1
  80. package/esm/browser/extension/web-api-components.d.ts +21 -3
  81. package/esm/browser/extension/web-api-contributions.d.ts +128 -0
  82. package/esm/browser/extension/web-extension-api.d.ts +45 -48
  83. package/esm/browser/extension/web-extension-context.d.ts +6 -1
  84. package/esm/browser/extension/web-extension-context.js +72 -7
  85. package/esm/browser/extension/web-extension-protocol.d.ts +18 -2
  86. package/esm/browser/extension/web-extension-protocol.js +2 -0
  87. package/esm/browser/extension/web-extension-run.d.ts +3 -2
  88. package/esm/browser/extension/web-extension-run.js +3 -0
  89. package/esm/browser/extension/web-extensions.d.ts +2 -8
  90. package/esm/browser/extension/web-extensions.js +12 -35
  91. package/esm/browser/extension/web-page-list.d.ts +25 -0
  92. package/esm/browser/extension/web-page-list.js +35 -0
  93. package/esm/browser/extension/web-session-notices.d.ts +6 -1
  94. package/esm/browser/extension/web-session-notices.js +30 -4
  95. package/esm/browser/extension/web-sharing.d.ts +5 -2
  96. package/esm/browser/extension/web-sharing.js +10 -1
  97. package/esm/browser/i18n/locales.d.ts +77 -1
  98. package/esm/browser/i18n/messages.d.ts +76 -0
  99. package/esm/browser/i18n/messages.js +154 -2
  100. package/esm/browser/links/links-protocol.d.ts +2 -0
  101. package/esm/browser/links/links.d.ts +7 -2
  102. package/esm/browser/links/links.js +16 -9
  103. package/esm/browser/markdown/code-renderers.d.ts +4 -0
  104. package/esm/browser/markdown/code-renderers.js +4 -0
  105. package/esm/browser/markdown/lazy.d.ts +8 -0
  106. package/esm/browser/markdown/lazy.js +35 -0
  107. package/esm/browser/markdown/mermaid.d.ts +15 -3
  108. package/esm/browser/markdown/mermaid.js +45 -6
  109. package/esm/browser/notices/notices-protocol.d.ts +5 -0
  110. package/esm/browser/notices/notices.d.ts +19 -0
  111. package/esm/browser/notices/notices.js +85 -2
  112. package/esm/browser/notices/session-notices.d.ts +5 -2
  113. package/esm/browser/notices/session-notices.js +10 -1
  114. package/esm/browser/style/base.d.ts +1 -1
  115. package/esm/browser/style/base.js +2 -1
  116. package/esm/browser/style/conversation.d.ts +1 -1
  117. package/esm/browser/style/conversation.js +53 -0
  118. package/esm/browser/style/device.js +3 -0
  119. package/esm/browser/style/layout.d.ts +1 -1
  120. package/esm/browser/style/layout.js +27 -9
  121. package/esm/browser/style/pages.d.ts +1 -1
  122. package/esm/browser/style/pages.js +5 -0
  123. package/esm/browser/style/phone.d.ts +1 -1
  124. package/esm/browser/style/phone.js +2 -0
  125. package/esm/browser/style/shell.d.ts +1 -1
  126. package/esm/browser/style/shell.js +16 -3
  127. package/esm/browser/style/surfaces.d.ts +1 -1
  128. package/esm/browser/style/surfaces.js +19 -0
  129. package/esm/browser/util/desktop.d.ts +18 -1
  130. package/esm/browser/util/desktop.js +13 -0
  131. package/esm/browser/util/frame.d.ts +2 -0
  132. package/esm/browser/util/frame.js +2 -0
  133. package/esm/browser/util/process.d.ts +69 -2
  134. package/esm/browser/util/process.js +163 -8
  135. package/esm/browser/util/progress.d.ts +6 -1
  136. package/esm/browser/util/progress.js +11 -2
  137. package/esm/browser/util/scroll-rest.d.ts +10 -0
  138. package/esm/browser/util/scroll-rest.js +44 -0
  139. package/esm/browser/util/tool-result.d.ts +32 -0
  140. package/esm/browser/util/tool-result.js +85 -0
  141. package/esm/browser/util/tool.js +7 -0
  142. package/lib/browser/assistant/assistant-extension.js +14 -0
  143. package/lib/browser/assistant/assistant-initiative.d.ts +28 -0
  144. package/lib/browser/assistant/assistant-initiative.js +80 -0
  145. package/lib/browser/assistant/assistant-task-source.d.ts +7 -0
  146. package/lib/browser/assistant/assistant-task-source.js +12 -2
  147. package/lib/browser/assistant/assistant-view.js +8 -4
  148. package/lib/browser/assistant/assistant.d.ts +5 -0
  149. package/lib/browser/assistant/assistant.js +24 -5
  150. package/lib/browser/chat/chat-view.js +6 -5
  151. package/lib/browser/components/app-nav.d.ts +3 -1
  152. package/lib/browser/components/app-nav.js +5 -2
  153. package/lib/browser/components/app-view.js +25 -12
  154. package/lib/browser/components/asks-badge.d.ts +6 -0
  155. package/lib/browser/components/asks-badge.js +44 -0
  156. package/lib/browser/components/chat-asks.d.ts +47 -0
  157. package/lib/browser/components/chat-asks.js +104 -0
  158. package/lib/browser/components/chat-list.d.ts +7 -1
  159. package/lib/browser/components/chat-list.js +46 -17
  160. package/lib/browser/components/composer-addon-util.d.ts +12 -0
  161. package/lib/browser/components/composer-addon-util.js +76 -0
  162. package/lib/browser/components/composer-addons.d.ts +1 -7
  163. package/lib/browser/components/composer-addons.js +2 -29
  164. package/lib/browser/components/composer-box.d.ts +1 -0
  165. package/lib/browser/components/composer-box.js +48 -26
  166. package/lib/browser/components/composer.d.ts +10 -1
  167. package/lib/browser/components/composer.js +61 -21
  168. package/lib/browser/components/connection-bar.js +30 -11
  169. package/lib/browser/components/conversation-scroll-hooks.d.ts +17 -0
  170. package/lib/browser/components/conversation-scroll-hooks.js +135 -0
  171. package/lib/browser/components/conversation-scroll-util.d.ts +36 -0
  172. package/lib/browser/components/conversation-scroll-util.js +78 -0
  173. package/lib/browser/components/conversation-scroll.d.ts +57 -33
  174. package/lib/browser/components/conversation-scroll.js +189 -158
  175. package/lib/browser/components/discover-view.js +5 -1
  176. package/lib/browser/components/earlier-messages.d.ts +10 -3
  177. package/lib/browser/components/earlier-messages.js +16 -9
  178. package/lib/browser/components/face.d.ts +25 -0
  179. package/lib/browser/components/face.js +79 -0
  180. package/lib/browser/components/folder-picker.d.ts +2 -0
  181. package/lib/browser/components/folder-picker.js +7 -0
  182. package/lib/browser/components/host-view.d.ts +1 -1
  183. package/lib/browser/components/markdown.js +3 -1
  184. package/lib/browser/components/media.js +24 -10
  185. package/lib/browser/components/mermaid-view.js +45 -3
  186. package/lib/browser/components/message-actions.js +1 -0
  187. package/lib/browser/components/message-footer.d.ts +4 -0
  188. package/lib/browser/components/message-footer.js +8 -0
  189. package/lib/browser/components/message-list.d.ts +15 -1
  190. package/lib/browser/components/message-list.js +200 -35
  191. package/lib/browser/components/phone-shell.d.ts +7 -2
  192. package/lib/browser/components/phone-shell.js +9 -3
  193. package/lib/browser/components/relay-services.d.ts +25 -0
  194. package/lib/browser/components/relay-services.js +286 -0
  195. package/lib/browser/components/relay-view.js +17 -1
  196. package/lib/browser/components/remote-hosts.js +1 -1
  197. package/lib/browser/components/session-view.d.ts +3 -1
  198. package/lib/browser/components/session-view.js +23 -7
  199. package/lib/browser/components/settings-controls.js +3 -3
  200. package/lib/browser/components/settings-parts.js +13 -1
  201. package/lib/browser/components/stop-times.d.ts +48 -0
  202. package/lib/browser/components/stop-times.js +85 -0
  203. package/lib/browser/components/ta-avatar.js +6 -0
  204. package/lib/browser/components/tool-result.d.ts +14 -0
  205. package/lib/browser/components/tool-result.js +175 -0
  206. package/lib/browser/components/tool-view.js +10 -20
  207. package/lib/browser/components/use-stop-times.d.ts +4 -0
  208. package/lib/browser/components/use-stop-times.js +53 -0
  209. package/lib/browser/components/web-composer.js +2 -1
  210. package/lib/browser/device/photo-picker.d.ts +15 -0
  211. package/lib/browser/device/photo-picker.js +51 -0
  212. package/lib/browser/device/row-swipe.d.ts +2 -0
  213. package/lib/browser/device/row-swipe.js +8 -2
  214. package/lib/browser/device/sheet-swipe.d.ts +1 -1
  215. package/lib/browser/device/sheet-swipe.js +17 -3
  216. package/lib/browser/extension/extension-view.d.ts +3 -1
  217. package/lib/browser/extension/extension-view.js +8 -1
  218. package/lib/browser/extension/icons.js +9 -0
  219. package/lib/browser/extension/web-api-components.d.ts +21 -3
  220. package/lib/browser/extension/web-api-contributions.d.ts +128 -0
  221. package/lib/browser/extension/web-extension-api.d.ts +45 -48
  222. package/lib/browser/extension/web-extension-context.d.ts +6 -1
  223. package/lib/browser/extension/web-extension-context.js +73 -8
  224. package/lib/browser/extension/web-extension-protocol.d.ts +18 -2
  225. package/lib/browser/extension/web-extension-protocol.js +2 -0
  226. package/lib/browser/extension/web-extension-run.d.ts +3 -2
  227. package/lib/browser/extension/web-extension-run.js +3 -0
  228. package/lib/browser/extension/web-extensions.d.ts +2 -8
  229. package/lib/browser/extension/web-extensions.js +12 -35
  230. package/lib/browser/extension/web-page-list.d.ts +26 -0
  231. package/lib/browser/extension/web-page-list.js +39 -0
  232. package/lib/browser/extension/web-session-notices.d.ts +6 -1
  233. package/lib/browser/extension/web-session-notices.js +30 -4
  234. package/lib/browser/extension/web-sharing.d.ts +5 -2
  235. package/lib/browser/extension/web-sharing.js +10 -1
  236. package/lib/browser/i18n/locales.d.ts +77 -1
  237. package/lib/browser/i18n/messages.d.ts +76 -0
  238. package/lib/browser/i18n/messages.js +154 -2
  239. package/lib/browser/links/links-protocol.d.ts +2 -0
  240. package/lib/browser/links/links.d.ts +7 -2
  241. package/lib/browser/links/links.js +16 -9
  242. package/lib/browser/markdown/code-renderers.d.ts +4 -0
  243. package/lib/browser/markdown/code-renderers.js +5 -1
  244. package/lib/browser/markdown/lazy.d.ts +8 -0
  245. package/lib/browser/markdown/lazy.js +37 -1
  246. package/lib/browser/markdown/mermaid.d.ts +15 -3
  247. package/lib/browser/markdown/mermaid.js +44 -5
  248. package/lib/browser/notices/notices-protocol.d.ts +5 -0
  249. package/lib/browser/notices/notices.d.ts +19 -0
  250. package/lib/browser/notices/notices.js +84 -1
  251. package/lib/browser/notices/session-notices.d.ts +5 -2
  252. package/lib/browser/notices/session-notices.js +10 -1
  253. package/lib/browser/style/base.d.ts +1 -1
  254. package/lib/browser/style/base.js +2 -1
  255. package/lib/browser/style/conversation.d.ts +1 -1
  256. package/lib/browser/style/conversation.js +53 -0
  257. package/lib/browser/style/device.js +3 -0
  258. package/lib/browser/style/layout.d.ts +1 -1
  259. package/lib/browser/style/layout.js +27 -9
  260. package/lib/browser/style/pages.d.ts +1 -1
  261. package/lib/browser/style/pages.js +5 -0
  262. package/lib/browser/style/phone.d.ts +1 -1
  263. package/lib/browser/style/phone.js +2 -0
  264. package/lib/browser/style/shell.d.ts +1 -1
  265. package/lib/browser/style/shell.js +16 -3
  266. package/lib/browser/style/surfaces.d.ts +1 -1
  267. package/lib/browser/style/surfaces.js +19 -0
  268. package/lib/browser/util/desktop.d.ts +18 -1
  269. package/lib/browser/util/desktop.js +13 -0
  270. package/lib/browser/util/frame.d.ts +2 -0
  271. package/lib/browser/util/frame.js +2 -0
  272. package/lib/browser/util/process.d.ts +69 -2
  273. package/lib/browser/util/process.js +165 -9
  274. package/lib/browser/util/progress.d.ts +6 -1
  275. package/lib/browser/util/progress.js +11 -2
  276. package/lib/browser/util/scroll-rest.d.ts +11 -0
  277. package/lib/browser/util/scroll-rest.js +47 -0
  278. package/lib/browser/util/tool-result.d.ts +33 -0
  279. package/lib/browser/util/tool-result.js +88 -0
  280. package/lib/browser/util/tool.js +7 -0
  281. package/package.json +7 -7
@@ -67,6 +67,8 @@ export declare const EN_MESSAGES: {
67
67
  'ta.connection.retry': string;
68
68
  'ta.connection.away': string;
69
69
  'ta.connection.back': string;
70
+ 'ta.connection.outdated': string;
71
+ 'ta.connection.reload': string;
70
72
  'ta.connection.awayBrief': string;
71
73
  'ta.connection.unreachableBrief': string;
72
74
  'ta.connection.notDone': string;
@@ -78,6 +80,12 @@ export declare const EN_MESSAGES: {
78
80
  'ta.error.nothingToCompact': string;
79
81
  'ta.error.alreadyCompacted': string;
80
82
  'ta.error.sessionBusy': string;
83
+ 'ta.error.forbidden': string;
84
+ 'ta.error.forbiddenHint': string;
85
+ 'ta.error.forbiddenAsk': string;
86
+ 'ta.assistant.forbidden': string;
87
+ 'ta.error.limit': string;
88
+ 'ta.error.forbiddenNever': string;
81
89
  'ta.notices': string;
82
90
  'ta.notice.picture': string;
83
91
  'ta.packages.removeDetail': string;
@@ -158,6 +166,11 @@ export declare const EN_MESSAGES: {
158
166
  'ta.chat.unpin': string;
159
167
  'ta.chat.pinned': string;
160
168
  'ta.chat.unseen': string;
169
+ 'ta.chat.asking': string;
170
+ 'ta.chat.asks': string;
171
+ 'ta.chat.asksCount': string;
172
+ 'ta.chat.letGo': string;
173
+ 'ta.chat.toAsk': string;
161
174
  'ta.chat.removed': string;
162
175
  'ta.chat.olderCount': string;
163
176
  'ta.chat.archived': string;
@@ -179,13 +192,24 @@ export declare const EN_MESSAGES: {
179
192
  'ta.composer.steerPlaceholder': string;
180
193
  'ta.composer.steerPlaceholderTouch': string;
181
194
  'ta.composer.stopTitle': string;
195
+ 'ta.composer.stopping': string;
182
196
  'ta.message.images': string;
183
197
  'ta.message.stopped': string;
198
+ 'ta.message.interrupted': string;
199
+ 'ta.message.silent': string;
200
+ 'ta.message.failedUnknown': string;
201
+ 'ta.message.resume': string;
202
+ 'ta.message.resumeText': string;
184
203
  'ta.message.thinking': string;
185
204
  'ta.message.skill': string;
186
205
  'ta.message.showMore': string;
187
206
  'ta.message.showLess': string;
188
207
  'ta.message.compacted': string;
208
+ 'ta.message.compactedFrom': string;
209
+ 'ta.message.steered': string;
210
+ 'ta.message.steeredTitle': string;
211
+ 'ta.message.queued': string;
212
+ 'ta.message.queuedTitle': string;
189
213
  'ta.message.branch': string;
190
214
  'ta.message.forkBefore': string;
191
215
  'ta.message.forkAt': string;
@@ -204,10 +228,16 @@ export declare const EN_MESSAGES: {
204
228
  'ta.message.debugCopied': string;
205
229
  'ta.message.used': string;
206
230
  'ta.message.modelSwitched': string;
231
+ 'ta.message.resumed': string;
207
232
  'ta.message.usageTitle': string;
208
233
  'ta.tool.earlier': string;
209
234
  'ta.tool.hideScript': string;
210
235
  'ta.tool.showScript': string;
236
+ 'ta.tool.printed': string;
237
+ 'ta.tool.failedCalls': string;
238
+ 'ta.tool.exitCode': string;
239
+ 'ta.tool.noOutput': string;
240
+ 'ta.tool.moreEntries': string;
211
241
  'ta.tool.verb.bash': string;
212
242
  'ta.tool.verb.read': string;
213
243
  'ta.tool.verb.edit': string;
@@ -226,6 +256,13 @@ export declare const EN_MESSAGES: {
226
256
  'ta.tool.verb.webSearch': string;
227
257
  'ta.tool.verb.todo': string;
228
258
  'ta.tool.verb.skill': string;
259
+ 'ta.tool.verb.sendMessage': string;
260
+ 'ta.tool.verb.deleteTeam': string;
261
+ 'ta.tool.verb.scheduleTask': string;
262
+ 'ta.tool.verb.listScheduled': string;
263
+ 'ta.tool.verb.deleteScheduled': string;
264
+ 'ta.tool.verb.publish': string;
265
+ 'ta.tool.verb.editImage': string;
229
266
  'ta.assistant.me': string;
230
267
  'ta.assistant.hello': string;
231
268
  'ta.assistant.showTasks': string;
@@ -392,6 +429,40 @@ export declare const EN_MESSAGES: {
392
429
  'ta.remote.addHint': string;
393
430
  'ta.remote.connected': string;
394
431
  'ta.remote.failed': string;
432
+ 'ta.relays.title': string;
433
+ 'ta.relays.feature.devices': string;
434
+ 'ta.relays.feature.devicesHint': string;
435
+ 'ta.relays.feature.share': string;
436
+ 'ta.relays.feature.shareHint': string;
437
+ 'ta.relays.feature.rooms': string;
438
+ 'ta.relays.feature.roomsHint': string;
439
+ 'ta.relays.feature.sync': string;
440
+ 'ta.relays.feature.syncHint': string;
441
+ 'ta.relays.official': string;
442
+ 'ta.relays.online': string;
443
+ 'ta.relays.onlineNoTime': string;
444
+ 'ta.relays.offline': string;
445
+ 'ta.relays.memory': string;
446
+ 'ta.relays.limits': string;
447
+ 'ta.relays.remove': string;
448
+ 'ta.relays.add': string;
449
+ 'ta.relays.addHint': string;
450
+ 'ta.relays.addButton': string;
451
+ 'ta.relays.addPlaceholder': string;
452
+ 'ta.relays.folderOnly': string;
453
+ 'ta.relays.drive': string;
454
+ 'ta.relays.driveHint': string;
455
+ 'ta.relays.driveUse': string;
456
+ 'ta.relays.file': string;
457
+ 'ta.relays.broken': string;
458
+ 'ta.relays.storeType': string;
459
+ 'ta.relays.storeOpen': string;
460
+ 'ta.relays.storeName': string;
461
+ 'ta.relays.optional': string;
462
+ 'ta.relays.storeNote': string;
463
+ 'ta.relays.storeAdd': string;
464
+ 'ta.relays.storeOnly': string;
465
+ 'ta.relays.unavailable': string;
395
466
  'ta.remote.title': string;
396
467
  'ta.remote.description': string;
397
468
  'ta.remote.none': string;
@@ -485,6 +556,7 @@ export declare const EN_MESSAGES: {
485
556
  'ta.process.thinking': string;
486
557
  'ta.process.thought': string;
487
558
  'ta.process.failed': string;
559
+ 'ta.process.requestFailed': string;
488
560
  'ta.process.earlier': string;
489
561
  'ta.process.showAll': string;
490
562
  'ta.session.phase.thinking': string;
@@ -517,6 +589,8 @@ export declare const EN_MESSAGES: {
517
589
  'ta.composer.keyboard': string;
518
590
  'ta.composer.steerTitle': string;
519
591
  'ta.composer.addImage': string;
592
+ 'ta.composer.album': string;
593
+ 'ta.composer.camera': string;
520
594
  'ta.composer.more': string;
521
595
  'ta.composer.page': string;
522
596
  'ta.composer.mentionFile': string;
@@ -778,6 +852,8 @@ export declare const EN_MESSAGES: {
778
852
  'ta.relay.offline': string;
779
853
  'ta.relay.unpair': string;
780
854
  'ta.relay.unpairConfirm': string;
855
+ 'ta.relay.keepAwake': string;
856
+ 'ta.relay.keepAwakeHint': string;
781
857
  'ta.manage.relay': string;
782
858
  'ta.settings.relay': string;
783
859
  'ta.settings.relayDescription': string;
@@ -69,6 +69,8 @@ export const EN_MESSAGES = {
69
69
  'ta.connection.retry': 'Retry',
70
70
  'ta.connection.away': "Can't reach Ta on your computer. Make sure the computer is on and online, with Ta running; this reconnects by itself.",
71
71
  'ta.connection.back': 'Connected again',
72
+ 'ta.connection.outdated': 'Ta was updated. Reload to show everything',
73
+ 'ta.connection.reload': 'Reload',
72
74
  'ta.connection.awayBrief': "Can't reach Ta on your computer",
73
75
  'ta.connection.unreachableBrief': 'The Ta service is not running',
74
76
  'ta.connection.notDone': 'Not done: the connection dropped for a moment. Try again',
@@ -80,6 +82,12 @@ export const EN_MESSAGES = {
80
82
  'ta.error.nothingToCompact': 'The conversation is still short: nothing to compact yet',
81
83
  'ta.error.alreadyCompacted': 'Nothing new since the last compaction: nothing to compact yet',
82
84
  'ta.error.sessionBusy': 'Ta is still answering or compacting; try again once it is done',
85
+ 'ta.error.forbidden': 'You may not {action} here yet',
86
+ 'ta.error.forbiddenHint': 'The owner of this Ta or an admin can let you',
87
+ 'ta.error.forbiddenAsk': 'Ask',
88
+ 'ta.assistant.forbidden': 'In this Ta you use what was shared with you: find it under the double, or in Discover → Members',
89
+ 'ta.error.limit': 'Too many people are working in this Ta at once; try again in a moment',
90
+ 'ta.error.forbiddenNever': 'This is kept out of reach of everyone let in',
83
91
  'ta.notices': 'Notifications',
84
92
  'ta.notice.picture': 'Picture of the extension, such as a QR code to scan',
85
93
  'ta.packages.removeDetail': 'Its pages, cards and commands go with it.',
@@ -162,6 +170,11 @@ export const EN_MESSAGES = {
162
170
  'ta.chat.unpin': 'Unpin',
163
171
  'ta.chat.pinned': 'Pinned',
164
172
  'ta.chat.unseen': 'New, not seen yet',
173
+ 'ta.chat.asking': 'Your call',
174
+ 'ta.chat.asks': 'Waiting for you',
175
+ 'ta.chat.asksCount': '{count} waiting for you to decide',
176
+ 'ta.chat.letGo': 'Skip this decision',
177
+ 'ta.chat.toAsk': 'Waiting for you: {question}',
165
178
  'ta.chat.removed': 'Removed ({count})',
166
179
  'ta.chat.olderCount': 'Over {days} days ({count})',
167
180
  'ta.chat.archived': 'Archived',
@@ -183,13 +196,24 @@ export const EN_MESSAGES = {
183
196
  'ta.composer.steerPlaceholder': 'Add to it or steer Ta; Alt+Enter queues a follow-up',
184
197
  'ta.composer.steerPlaceholderTouch': 'Add to it or steer Ta',
185
198
  'ta.composer.stopTitle': 'Stop (Esc)',
199
+ 'ta.composer.stopping': 'Stopping…',
186
200
  'ta.message.images': '{count, plural, one {# image} other {# images}}',
187
201
  'ta.message.stopped': 'Stopped.',
202
+ 'ta.message.interrupted': 'Cut off before it was done: the service stopped, or the agent ended its turn with work not finished.',
203
+ 'ta.message.silent': 'Ended without a reply: the agent may have lost the connection to its model.',
204
+ 'ta.message.failedUnknown': 'The request failed, without saying why.',
205
+ 'ta.message.resume': 'Continue',
206
+ 'ta.message.resumeText': 'Continue',
188
207
  'ta.message.thinking': 'Thinking',
189
208
  'ta.message.skill': 'Skill',
190
209
  'ta.message.showMore': 'Show more',
191
210
  'ta.message.showLess': 'Show less',
192
211
  'ta.message.compacted': 'Earlier messages were compacted',
212
+ 'ta.message.compactedFrom': 'from {tokens} tokens',
213
+ 'ta.message.steered': 'Said on the way',
214
+ 'ta.message.steeredTitle': 'Written while it worked: it read this after its tools and went on with it',
215
+ 'ta.message.queued': 'Waited for the reply',
216
+ 'ta.message.queuedTitle': 'Written while it worked: sent once it had answered',
193
217
  'ta.message.branch': 'Summary of the other branch',
194
218
  'ta.message.forkBefore': 'New conversation from here, beside',
195
219
  'ta.message.forkAt': 'New conversation from this reply, beside',
@@ -208,10 +232,16 @@ export const EN_MESSAGES = {
208
232
  'ta.message.debugCopied': 'Debug info copied',
209
233
  'ta.message.used': 'Used',
210
234
  'ta.message.modelSwitched': 'Switched to {model}',
235
+ 'ta.message.resumed': 'Carried on after Ta restarted',
211
236
  'ta.message.usageTitle': '{input} tokens sent, {output} received',
212
237
  'ta.tool.earlier': '{count, plural, one {# earlier line} other {# earlier lines}}',
213
238
  'ta.tool.hideScript': 'Hide script',
214
239
  'ta.tool.showScript': 'Show the script',
240
+ 'ta.tool.printed': 'Printed',
241
+ 'ta.tool.failedCalls': '{count, plural, one {# call failed} other {# calls failed}}',
242
+ 'ta.tool.exitCode': 'Exit code {code}',
243
+ 'ta.tool.noOutput': 'Nothing returned',
244
+ 'ta.tool.moreEntries': '{count} more',
215
245
  'ta.tool.verb.bash': 'Run',
216
246
  'ta.tool.verb.read': 'Read',
217
247
  'ta.tool.verb.edit': 'Edit',
@@ -230,6 +260,13 @@ export const EN_MESSAGES = {
230
260
  'ta.tool.verb.webSearch': 'Search the web',
231
261
  'ta.tool.verb.todo': 'Update todos',
232
262
  'ta.tool.verb.skill': 'Use skill',
263
+ 'ta.tool.verb.sendMessage': 'Send message',
264
+ 'ta.tool.verb.deleteTeam': 'Disband team',
265
+ 'ta.tool.verb.scheduleTask': 'Schedule',
266
+ 'ta.tool.verb.listScheduled': 'List scheduled tasks',
267
+ 'ta.tool.verb.deleteScheduled': 'Cancel scheduled task',
268
+ 'ta.tool.verb.publish': 'Publish',
269
+ 'ta.tool.verb.editImage': 'Edit image',
233
270
  'ta.assistant.me': 'My double',
234
271
  'ta.assistant.hello': 'Hi, I am Ta',
235
272
  'ta.assistant.showTasks': 'Show the tasks',
@@ -333,7 +370,7 @@ export const EN_MESSAGES = {
333
370
  'ta.settings.taskModel': 'Model of its tasks',
334
371
  'ta.settings.taskModelHint': 'What does the work the double hands out; an external agent fits here',
335
372
  'ta.settings.confirmTasks': 'Ask before starting tasks',
336
- 'ta.settings.confirmTasksHint': 'The double says what it would hand out, tasks or a team of agents, and waits for your go',
373
+ 'ta.settings.confirmTasksHint': 'The double says what it would hand out, tasks or a team of agents, and waits for your go. With Initiative on, it starts by itself once you said yes 3 times in a row (Settings → Initiative)',
337
374
  'ta.settings.maxTasks': 'Tasks at once',
338
375
  'ta.settings.maxTasksHint': 'Beyond it, the double waits for one to end',
339
376
  'ta.settings.maxTasksAny': 'Any',
@@ -396,6 +433,40 @@ export const EN_MESSAGES = {
396
433
  'ta.remote.addHint': 'A Host of ~/.ssh/config, user@host:port, or an ssh command',
397
434
  'ta.remote.connected': 'Connected',
398
435
  'ta.remote.failed': 'Cannot connect to {host}',
436
+ 'ta.relays.title': 'Relays',
437
+ 'ta.relays.feature.devices': 'Phones and other devices',
438
+ 'ta.relays.feature.devicesHint': 'What new devices reach this computer through. Paired ones stay on theirs.',
439
+ 'ta.relays.feature.share': 'Links you share',
440
+ 'ta.relays.feature.shareHint': 'Extensions and conversations shared by a link, their copies for while this computer is off, and the pages they open in.',
441
+ 'ta.relays.feature.rooms': 'Rooms and playing together',
442
+ 'ta.relays.feature.roomsHint': 'Where new rooms are made. A room stays on its relay; one you join is on the relay of its link.',
443
+ 'ta.relays.feature.sync': 'Sync',
444
+ 'ta.relays.feature.syncHint': 'Where your computers sync when it is turned on: a room of a relay; or with no relay at all, a folder of a cloud drive or storage of your own (WebDAV, S3, a git repository).',
445
+ 'ta.relays.official': 'Official relay',
446
+ 'ta.relays.online': 'answers in {ms} ms',
447
+ 'ta.relays.onlineNoTime': 'answers',
448
+ 'ta.relays.offline': 'does not answer',
449
+ 'ta.relays.memory': 'keeps rooms in memory only',
450
+ 'ta.relays.limits': 'rooms of {members}, {state} MB',
451
+ 'ta.relays.remove': 'Remove {name}',
452
+ 'ta.relays.add': 'Add a relay',
453
+ 'ta.relays.addHint': 'A relay of your own (on your Cloudflare, or ta relay --data <dir> behind HTTPS), which reads none of what goes through it but serves the pages of links; or a folder a cloud drive keeps the same on your computers, for sync.',
454
+ 'ta.relays.addButton': 'Add',
455
+ 'ta.relays.addPlaceholder': 'https://relay.example.com, or a folder ~/…',
456
+ 'ta.relays.folderOnly': 'a folder, for sync only',
457
+ 'ta.relays.drive': 'Sync in {name}',
458
+ 'ta.relays.driveHint': 'Sync through the folder {path}, which the drive keeps the same on your computers: no relay at all.',
459
+ 'ta.relays.driveUse': 'Use',
460
+ 'ta.relays.file': 'relays.json',
461
+ 'ta.relays.broken': 'relays.json does not parse',
462
+ 'ta.relays.storeType': 'Sync in {name}',
463
+ 'ta.relays.storeOpen': 'Set up',
464
+ 'ta.relays.storeName': 'Name',
465
+ 'ta.relays.optional': 'optional',
466
+ '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.',
467
+ 'ta.relays.storeAdd': 'Add and sync there',
468
+ 'ta.relays.storeOnly': 'for sync only',
469
+ 'ta.relays.unavailable': 'its extension is off',
399
470
  'ta.remote.title': 'Remote hosts',
400
471
  'ta.remote.description': 'Conversations can work in directories of these machines. Ta connects with the ssh of this computer and its ~/.ssh/config.',
401
472
  'ta.remote.none': 'No hosts yet',
@@ -490,6 +561,7 @@ export const EN_MESSAGES = {
490
561
  'ta.process.thinking': 'Thinking',
491
562
  'ta.process.thought': 'Thought',
492
563
  'ta.process.failed': '{count} failed',
564
+ 'ta.process.requestFailed': 'Request failed',
493
565
  'ta.process.earlier': '{count, plural, one {# earlier step} other {# earlier steps}}',
494
566
  'ta.process.showAll': 'Show all',
495
567
  'ta.session.phase.thinking': 'Thinking',
@@ -522,6 +594,8 @@ export const EN_MESSAGES = {
522
594
  'ta.composer.keyboard': 'Type instead',
523
595
  'ta.composer.steerTitle': 'Steer Ta (Enter); Alt+Enter queues a follow-up',
524
596
  'ta.composer.addImage': 'Add images',
597
+ 'ta.composer.album': 'Album',
598
+ 'ta.composer.camera': 'Camera',
525
599
  'ta.composer.more': 'Add and settings',
526
600
  'ta.composer.page': 'Page {page}',
527
601
  'ta.composer.mentionFile': 'Mention a file',
@@ -785,6 +859,8 @@ export const EN_MESSAGES = {
785
859
  'ta.relay.offline': 'Not connected · {relay}',
786
860
  'ta.relay.unpair': 'Unpair',
787
861
  'ta.relay.unpairConfirm': 'Unpair {name}? It can no longer reach this Ta.',
862
+ 'ta.relay.keepAwake': 'Keep this computer awake',
863
+ 'ta.relay.keepAwakeHint': 'While a task runs, or for 30 minutes after a device was connected, the computer does not sleep when idle, so your phone can reach it. The display still turns off; closing the lid still puts it to sleep.',
788
864
  'ta.manage.relay': 'Use on your phone…',
789
865
  'ta.settings.relay': 'Phone',
790
866
  'ta.settings.relayDescription': 'Devices that reach this Ta through a relay',
@@ -892,6 +968,8 @@ export const ZH_MESSAGES = {
892
968
  'ta.connection.retry': '重试',
893
969
  'ta.connection.away': '连不上电脑上的 Ta。请确认电脑开着、联网,并且 Ta 在运行;连上后会自动恢复。',
894
970
  'ta.connection.back': '已重新连接',
971
+ 'ta.connection.outdated': 'Ta 已更新,刷新后才能完整显示',
972
+ 'ta.connection.reload': '刷新',
895
973
  'ta.connection.awayBrief': '连不上电脑上的 Ta',
896
974
  'ta.connection.unreachableBrief': 'Ta 服务没有在运行',
897
975
  'ta.connection.notDone': '没有完成:连接断了一下,再试一次',
@@ -903,6 +981,12 @@ export const ZH_MESSAGES = {
903
981
  'ta.error.nothingToCompact': '对话内容还很少,暂时不需要压缩',
904
982
  'ta.error.alreadyCompacted': '上次压缩后还没有新内容,暂时不需要压缩',
905
983
  'ta.error.sessionBusy': 'Ta 正在回复或压缩,请等它结束后再试',
984
+ 'ta.error.forbidden': '你在这里还不能「{action}」',
985
+ 'ta.error.forbiddenHint': '这台 Ta 的所有者或管理员可以给你这个权限',
986
+ 'ta.error.forbiddenAsk': '申请',
987
+ 'ta.assistant.forbidden': '在这台 Ta 里你只能使用分享给你的内容:在分身下方的列表或「发现 → 成员与权限」里找到它',
988
+ 'ta.error.limit': '这台 Ta 同时在跑的协作任务已满,请稍后再试',
989
+ 'ta.error.forbiddenNever': '这里对所有协作者都不开放',
906
990
  'ta.notices': '通知',
907
991
  'ta.notice.picture': '扩展给出的图像,如要扫描的二维码',
908
992
  'ta.packages.removeDetail': '它的页面、卡片和命令也会一起移除。',
@@ -983,6 +1067,11 @@ export const ZH_MESSAGES = {
983
1067
  'ta.chat.unpin': '取消置顶',
984
1068
  'ta.chat.pinned': '置顶',
985
1069
  'ta.chat.unseen': '有新回复未查看',
1070
+ 'ta.chat.asking': '等你决定',
1071
+ 'ta.chat.asks': '待你决定',
1072
+ 'ta.chat.asksCount': '{count} 个待你决定',
1073
+ 'ta.chat.letGo': '不用决定了',
1074
+ 'ta.chat.toAsk': '等你决定:{question}',
986
1075
  'ta.chat.removed': '已移除({count})',
987
1076
  'ta.chat.olderCount': '{days} 天前({count})',
988
1077
  'ta.chat.archived': '已归档',
@@ -1004,13 +1093,24 @@ export const ZH_MESSAGES = {
1004
1093
  'ta.composer.steerPlaceholder': '继续补充或引导 Ta;Alt+Enter 排队追加',
1005
1094
  'ta.composer.steerPlaceholderTouch': '继续补充或引导 Ta',
1006
1095
  'ta.composer.stopTitle': '停止(Esc)',
1096
+ 'ta.composer.stopping': '正在停止…',
1007
1097
  'ta.message.images': '{count} 张图片',
1008
1098
  'ta.message.stopped': '已停止。',
1099
+ 'ta.message.interrupted': '这一轮中途断了:Ta 服务停止,或智能体没做完就结束了这一轮。',
1100
+ 'ta.message.silent': '这一轮没有回复就结束了:智能体可能和模型断了连接。',
1101
+ 'ta.message.failedUnknown': '请求失败,没有给出原因。',
1102
+ 'ta.message.resume': '继续',
1103
+ 'ta.message.resumeText': '继续',
1009
1104
  'ta.message.thinking': '思考',
1010
1105
  'ta.message.skill': '技能',
1011
1106
  'ta.message.showMore': '展开',
1012
1107
  'ta.message.showLess': '收起',
1013
1108
  'ta.message.compacted': '较早的消息已压缩',
1109
+ 'ta.message.compactedFrom': '压缩前 {tokens} tokens',
1110
+ 'ta.message.steered': '插话',
1111
+ 'ta.message.steeredTitle': '在它工作时发的:它跑完手头的工具后读到,接着按这句继续',
1112
+ 'ta.message.queued': '排队',
1113
+ 'ta.message.queuedTitle': '在它工作时发的:等它回复完才发出',
1014
1114
  'ta.message.branch': '另一分支的摘要',
1015
1115
  'ta.message.forkBefore': '从这里在侧边新开对话',
1016
1116
  'ta.message.forkAt': '从这条回复在侧边新开对话',
@@ -1029,10 +1129,16 @@ export const ZH_MESSAGES = {
1029
1129
  'ta.message.debugCopied': '已复制调试信息',
1030
1130
  'ta.message.used': '共消耗',
1031
1131
  'ta.message.modelSwitched': '已切换到 {model}',
1132
+ 'ta.message.resumed': 'Ta 重启后接着做',
1032
1133
  'ta.message.usageTitle': '发送 {input} token,接收 {output} token',
1033
1134
  'ta.tool.earlier': '前面还有 {count} 行',
1034
1135
  'ta.tool.hideScript': '收起脚本',
1035
1136
  'ta.tool.showScript': '查看脚本',
1137
+ 'ta.tool.printed': '打印',
1138
+ 'ta.tool.failedCalls': '{count} 次调用失败',
1139
+ 'ta.tool.exitCode': '退出码 {code}',
1140
+ 'ta.tool.noOutput': '没有返回内容',
1141
+ 'ta.tool.moreEntries': '还有 {count} 项',
1036
1142
  'ta.tool.verb.bash': '运行',
1037
1143
  'ta.tool.verb.read': '读取',
1038
1144
  'ta.tool.verb.edit': '编辑',
@@ -1051,6 +1157,13 @@ export const ZH_MESSAGES = {
1051
1157
  'ta.tool.verb.webSearch': '搜索网页',
1052
1158
  'ta.tool.verb.todo': '更新待办',
1053
1159
  'ta.tool.verb.skill': '使用技能',
1160
+ 'ta.tool.verb.sendMessage': '发送消息',
1161
+ 'ta.tool.verb.deleteTeam': '解散团队',
1162
+ 'ta.tool.verb.scheduleTask': '创建定时任务',
1163
+ 'ta.tool.verb.listScheduled': '查看定时任务',
1164
+ 'ta.tool.verb.deleteScheduled': '取消定时任务',
1165
+ 'ta.tool.verb.publish': '发布',
1166
+ 'ta.tool.verb.editImage': '编辑图片',
1054
1167
  'ta.assistant.me': '我的分身',
1055
1168
  'ta.assistant.hello': '你好,我是 Ta',
1056
1169
  'ta.assistant.showTasks': '查看任务',
@@ -1154,7 +1267,7 @@ export const ZH_MESSAGES = {
1154
1267
  'ta.settings.taskModel': '任务的模型',
1155
1268
  'ta.settings.taskModelHint': '分身交出的任务由它来做,外部 Agent 适合放在这里',
1156
1269
  'ta.settings.confirmTasks': '开始任务前先问我',
1157
- 'ta.settings.confirmTasksHint': '分身先说明要交出的任务或要组建的团队,等你同意再开始',
1270
+ 'ta.settings.confirmTasksHint': '分身先说明要交出的任务或要组建的团队,等你同意再开始。开着“主动”时,你连续同意 3 次后它会直接开始(设置 → 主动)',
1158
1271
  'ta.settings.maxTasks': '同时进行的任务',
1159
1272
  'ta.settings.maxTasksHint': '超过时,分身会等前面的结束',
1160
1273
  'ta.settings.maxTasksAny': '不限',
@@ -1217,6 +1330,40 @@ export const ZH_MESSAGES = {
1217
1330
  'ta.remote.addHint': '~/.ssh/config 里的主机、user@host:port,或 ssh 命令',
1218
1331
  'ta.remote.connected': '已连接',
1219
1332
  'ta.remote.failed': '连不上 {host}',
1333
+ 'ta.relays.title': '中继服务',
1334
+ 'ta.relays.feature.devices': '手机等设备',
1335
+ 'ta.relays.feature.devicesHint': '新配对的设备经它连回这台电脑;已配对的保持原来的中继。',
1336
+ 'ta.relays.feature.share': '分享链接',
1337
+ 'ta.relays.feature.shareHint': '分享扩展、对话的链接,电脑关机时可看的副本,以及链接在浏览器里打开的页面。',
1338
+ 'ta.relays.feature.rooms': '房间与联机',
1339
+ 'ta.relays.feature.roomsHint': '新建房间放在这里。房间建好后不随之变化;加入别人的房间用对方链接里的中继。',
1340
+ 'ta.relays.feature.sync': '设备同步',
1341
+ 'ta.relays.feature.syncHint': '开启同步时你的几台电脑经它同步:中继上的房间;或完全不经过中继,用网盘里的文件夹、你自己的 WebDAV、S3 存储或 git 仓库。',
1342
+ 'ta.relays.official': '官方中继',
1343
+ 'ta.relays.online': '{ms} 毫秒响应',
1344
+ 'ta.relays.onlineNoTime': '可用',
1345
+ 'ta.relays.offline': '连不上',
1346
+ 'ta.relays.memory': '房间只存在内存里',
1347
+ 'ta.relays.limits': '房间最多 {members} 人、{state} MB',
1348
+ 'ta.relays.remove': '移除 {name}',
1349
+ 'ta.relays.add': '添加中继',
1350
+ 'ta.relays.addHint': '你自己的中继(部署在自己的 Cloudflare 上,或在 HTTPS 后面运行 ta relay --data <目录>),它读不到经过的内容,但链接打开的网页由它提供;或者一个由网盘在几台电脑间保持一致的文件夹,用于设备同步。',
1351
+ 'ta.relays.addButton': '添加',
1352
+ 'ta.relays.addPlaceholder': 'https://relay.example.com,或文件夹 ~/…',
1353
+ 'ta.relays.folderOnly': '文件夹,仅用于设备同步',
1354
+ 'ta.relays.drive': '用 {name} 同步',
1355
+ 'ta.relays.driveHint': '设备同步经文件夹 {path},由网盘在你的几台电脑间保持一致,完全不经过中继。',
1356
+ 'ta.relays.driveUse': '使用',
1357
+ 'ta.relays.file': 'relays.json',
1358
+ 'ta.relays.broken': 'relays.json 格式不对',
1359
+ 'ta.relays.storeType': '用 {name} 同步',
1360
+ 'ta.relays.storeOpen': '设置',
1361
+ 'ta.relays.storeName': '名称',
1362
+ 'ta.relays.optional': '可不填',
1363
+ 'ta.relays.storeNote': 'Ta 会先试一下:写入再删掉一个小文件。同步放进去的内容在本机就已加密;密码只存在这台电脑的 relays.json 里。',
1364
+ 'ta.relays.storeAdd': '添加并用于同步',
1365
+ 'ta.relays.storeOnly': '仅用于设备同步',
1366
+ 'ta.relays.unavailable': '对应的扩展已关闭',
1220
1367
  'ta.remote.title': '远程主机',
1221
1368
  'ta.remote.description': '对话可以在这些机器的目录里工作。Ta 用本机的 ssh 和 ~/.ssh/config 连接。',
1222
1369
  'ta.remote.none': '还没有主机',
@@ -1311,6 +1458,7 @@ export const ZH_MESSAGES = {
1311
1458
  'ta.process.thinking': '思考中',
1312
1459
  'ta.process.thought': '已思考',
1313
1460
  'ta.process.failed': '{count} 步失败',
1461
+ 'ta.process.requestFailed': '请求失败',
1314
1462
  'ta.process.earlier': '前 {count} 步',
1315
1463
  'ta.process.showAll': '显示全部',
1316
1464
  'ta.session.phase.thinking': '思考中',
@@ -1343,6 +1491,8 @@ export const ZH_MESSAGES = {
1343
1491
  'ta.composer.keyboard': '切换到键盘',
1344
1492
  'ta.composer.steerTitle': '引导 Ta(Enter);Alt+Enter 排队追加',
1345
1493
  'ta.composer.addImage': '上传图片',
1494
+ 'ta.composer.album': '相册',
1495
+ 'ta.composer.camera': '拍照',
1346
1496
  'ta.composer.more': '添加与设置',
1347
1497
  'ta.composer.page': '第 {page} 页',
1348
1498
  'ta.composer.mentionFile': '引用文件',
@@ -1605,6 +1755,8 @@ export const ZH_MESSAGES = {
1605
1755
  'ta.relay.offline': '未连接 · {relay}',
1606
1756
  'ta.relay.unpair': '取消配对',
1607
1757
  'ta.relay.unpairConfirm': '取消配对 {name}?它将无法再连到这台电脑上的 Ta。',
1758
+ 'ta.relay.keepAwake': '让电脑保持唤醒',
1759
+ 'ta.relay.keepAwakeHint': '有任务在跑,或手机连过后的 30 分钟内,电脑闲置也不睡眠,手机随时连得上。屏幕照常熄灭,合上盖子仍会睡眠。',
1608
1760
  'ta.manage.relay': '在手机上使用…',
1609
1761
  'ta.settings.relay': '手机访问',
1610
1762
  'ta.settings.relayDescription': '经 Relay 连到这台电脑上 Ta 的设备',
@@ -35,6 +35,8 @@ export interface TaLinks {
35
35
  readonly state: LinksState;
36
36
  subscribe(listener: (state: LinksState) => void): () => void;
37
37
  open(target: LinkTarget, options?: OpenLinkOptions): Promise<void>;
38
+ /** Shows the conversation of a session file as the lists open it; false when no conversation has it (WebExtensionAPI.openChat). */
39
+ openConversation(file: string): Promise<boolean>;
38
40
  /** The answer to the question shown. */
39
41
  answer(id: number, answer: ExternalLinkAnswer): void;
40
42
  }
@@ -30,8 +30,13 @@ export declare class TaLinksImpl implements TaLinks {
30
30
  protected find(target: PathTarget, dirs: readonly string[]): Promise<WebLink | undefined>;
31
31
  /** The path in `dir`, whether a file or a directory, read from its directory; undefined when it is not there. */
32
32
  protected lookUp(target: PathTarget, dir: string): Promise<WebLink | undefined>;
33
- /** Shows the conversation of a session file, opened again when it closed; false when no conversation has it. */
34
- protected openConversation(file: string): Promise<boolean>;
33
+ /**
34
+ * Shows the conversation of a session file as the lists open it: an open one by its session, a saved one by its file
35
+ * (TaChat.resume), at once from what the page or the device has; false when no conversation has it.
36
+ */
37
+ openConversation(file: string): Promise<boolean>;
38
+ /** Whether a saved conversation has the file: by the lists of the page, the server asked only when they do not have it. */
39
+ protected isSaved(file: string): Promise<boolean>;
35
40
  /** The first opener of the web extensions that opens it; of those of some links only, with `specific`. */
36
41
  protected dispatch(link: WebLink, specific?: boolean): Promise<boolean>;
37
42
  /** Without asking for a host the user trusts; else the question, which a later link replaces. */
@@ -110,27 +110,34 @@ let TaLinksImpl = class TaLinksImpl {
110
110
  }
111
111
  return entry.kind === 'directory' ? { type: 'directory', cwd, path } : { type: 'file', cwd, path, selection: target.selection };
112
112
  }
113
- /** Shows the conversation of a session file, opened again when it closed; false when no conversation has it. */
113
+ /**
114
+ * Shows the conversation of a session file as the lists open it: an open one by its session, a saved one by its file
115
+ * (TaChat.resume), at once from what the page or the device has; false when no conversation has it.
116
+ */
114
117
  async openConversation(file) {
115
- var _a, _b, _c;
116
- var _d, _e;
117
118
  const switcher = this.extensions.sessionSwitcher();
118
119
  if (!switcher) {
119
120
  return false;
120
121
  }
121
122
  const open = this.workbench.state.sessions.find(session => session.sessionFile === file);
122
- const saved = open ? undefined : (await this.workbench.server.listSavedSessions()).find(session => session.sessionFile === file);
123
- if (!open && !saved) {
123
+ if (!open && !(await this.isSaved(file))) {
124
124
  return false;
125
125
  }
126
- const session = (_d = open === null || open === void 0 ? void 0 : open.sessionId) !== null && _d !== void 0 ? _d : this.workbench.server
127
- .openSession({ cwd: (_e = saved === null || saved === void 0 ? void 0 : saved.cwd) !== null && _e !== void 0 ? _e : '.', sessionFile: file, ...((saved === null || saved === void 0 ? void 0 : saved.group) ? { group: saved.group } : {}) })
128
- .then(info => info.sessionId);
129
- const shown = switcher(session, { title: ((_a = (open !== null && open !== void 0 ? open : saved)) === null || _a === void 0 ? void 0 : _a.sessionName) || ((_b = (open !== null && open !== void 0 ? open : saved)) === null || _b === void 0 ? void 0 : _b.firstMessage), cwd: (_c = (open !== null && open !== void 0 ? open : saved)) === null || _c === void 0 ? void 0 : _c.cwd, sessionFile: file });
126
+ const shown = open
127
+ ? switcher(open.sessionId, { title: open.sessionName || open.firstMessage, cwd: open.cwd, sessionFile: file })
128
+ : switcher({ sessionFile: file });
130
129
  this.extensions.showPage('');
131
130
  await shown;
132
131
  return true;
133
132
  }
133
+ /** Whether a saved conversation has the file: by the lists of the page, the server asked only when they do not have it. */
134
+ async isSaved(file) {
135
+ const { saved, archived = [] } = this.workbench.state;
136
+ if ([...saved, ...archived].some(session => session.sessionFile === file)) {
137
+ return true;
138
+ }
139
+ return (await this.workbench.server.listSavedSessions()).some(session => session.sessionFile === file);
140
+ }
134
141
  /** The first opener of the web extensions that opens it; of those of some links only, with `specific`. */
135
142
  async dispatch(link, specific = false) {
136
143
  const { openers, specificOpeners } = this.extensions.state;
@@ -2,3 +2,7 @@ import * as React from 'react';
2
2
  import type { WebCodeRendererProps } from '../extension/web-api-contributions.js';
3
3
  /** What web extensions draw fenced blocks of their languages with (WebExtensionAPI.registerCodeRenderer), by language in lower case. */
4
4
  export declare const CodeRenderers: React.Context<Readonly<Record<string, React.ComponentType<WebCodeRendererProps>>>>;
5
+ /** Where the fenced blocks drawn by web extensions send what the user picks in them: the conversation they are in. */
6
+ export declare const CodeReply: React.Context<((text: string) => Promise<void>) | undefined>;
7
+ /** What the user said after the turn of the blocks (WebCodeRendererProps.answer): none while they did not answer it. */
8
+ export declare const CodeAnswer: React.Context<string | undefined>;
@@ -1,4 +1,8 @@
1
1
  import * as React from 'react';
2
2
  /** What web extensions draw fenced blocks of their languages with (WebExtensionAPI.registerCodeRenderer), by language in lower case. */
3
3
  export const CodeRenderers = React.createContext({});
4
+ /** Where the fenced blocks drawn by web extensions send what the user picks in them: the conversation they are in. */
5
+ export const CodeReply = React.createContext(undefined);
6
+ /** What the user said after the turn of the blocks (WebCodeRendererProps.answer): none while they did not answer it. */
7
+ export const CodeAnswer = React.createContext(undefined);
4
8
  //# sourceMappingURL=code-renderers.js.map
@@ -19,3 +19,11 @@ export declare class Recent<V> {
19
19
  has(key: string): boolean;
20
20
  set(key: string, value: V): V;
21
21
  }
22
+ /** A Recent kept on the device (localStorage, under `key`): what it was told is there again after the page loads again. */
23
+ export declare class KeptRecent<V> extends Recent<V> {
24
+ private readonly key;
25
+ private saving;
26
+ constructor(key: string, limit: number);
27
+ set(key: string, value: V): V;
28
+ private static storage;
29
+ }
@@ -36,4 +36,39 @@ export class Recent {
36
36
  return value;
37
37
  }
38
38
  }
39
+ /** A Recent kept on the device (localStorage, under `key`): what it was told is there again after the page loads again. */
40
+ export class KeptRecent extends Recent {
41
+ constructor(key, limit) {
42
+ var _a;
43
+ var _b;
44
+ super(limit);
45
+ this.key = key;
46
+ try {
47
+ for (const [entry, value] of JSON.parse((_b = (_a = KeptRecent.storage()) === null || _a === void 0 ? void 0 : _a.getItem(key)) !== null && _b !== void 0 ? _b : '[]')) {
48
+ super.set(entry, value);
49
+ }
50
+ }
51
+ catch (_c) {
52
+ // Kept by another version, or not at all: starts empty.
53
+ }
54
+ }
55
+ set(key, value) {
56
+ var _a;
57
+ super.set(key, value);
58
+ (_a = this.saving) !== null && _a !== void 0 ? _a : (this.saving = setTimeout(() => {
59
+ var _a;
60
+ this.saving = undefined;
61
+ try {
62
+ (_a = KeptRecent.storage()) === null || _a === void 0 ? void 0 : _a.setItem(this.key, JSON.stringify([...this.entries]));
63
+ }
64
+ catch (_b) {
65
+ // Full: kept for this page only.
66
+ }
67
+ }, 1000));
68
+ return value;
69
+ }
70
+ static storage() {
71
+ return typeof localStorage === 'undefined' ? undefined : localStorage;
72
+ }
73
+ }
39
74
  //# sourceMappingURL=lazy.js.map