@celljs/ta-web 4.27.0 → 4.29.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 (586) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/assistant/assistant-role.d.ts +9 -4
  4. package/esm/browser/assistant/assistant-role.js +17 -5
  5. package/esm/browser/assistant/assistant-task-util.d.ts +6 -0
  6. package/esm/browser/assistant/assistant-task-util.js +12 -1
  7. package/esm/browser/assistant/assistant-thread.js +15 -2
  8. package/esm/browser/assistant/assistant-view.js +4 -1
  9. package/esm/browser/assistant/assistant.d.ts +2 -1
  10. package/esm/browser/assistant/assistant.js +9 -7
  11. package/esm/browser/assistant/call-conversing.d.ts +45 -0
  12. package/esm/browser/assistant/call-conversing.js +91 -0
  13. package/esm/browser/assistant/call-face.d.ts +13 -0
  14. package/esm/browser/assistant/call-face.js +81 -0
  15. package/esm/browser/assistant/call-keeper.d.ts +8 -4
  16. package/esm/browser/assistant/call-keeper.js +32 -11
  17. package/esm/browser/assistant/call-partnering.d.ts +37 -0
  18. package/esm/browser/assistant/call-partnering.js +79 -0
  19. package/esm/browser/assistant/call-scenes.d.ts +26 -0
  20. package/esm/browser/assistant/call-scenes.js +85 -0
  21. package/esm/browser/assistant/call-screen.d.ts +3 -0
  22. package/esm/browser/assistant/call-screen.js +15 -0
  23. package/esm/browser/assistant/mic-sense.d.ts +31 -0
  24. package/esm/browser/assistant/mic-sense.js +119 -0
  25. package/esm/browser/assistant/noise-gate.d.ts +32 -0
  26. package/esm/browser/assistant/noise-gate.js +66 -0
  27. package/esm/browser/assistant/pcm-util.d.ts +10 -0
  28. package/esm/browser/assistant/pcm-util.js +55 -0
  29. package/esm/browser/assistant/read-aloud.d.ts +2 -1
  30. package/esm/browser/assistant/realtime-voice-protocol.d.ts +84 -0
  31. package/esm/browser/assistant/realtime-voice-protocol.js +40 -0
  32. package/esm/browser/assistant/realtime-voice.d.ts +50 -62
  33. package/esm/browser/assistant/realtime-voice.js +213 -134
  34. package/esm/browser/assistant/spoken-timeline.d.ts +27 -0
  35. package/esm/browser/assistant/spoken-timeline.js +49 -0
  36. package/esm/browser/assistant/voice-call-bar.d.ts +9 -2
  37. package/esm/browser/assistant/voice-call-bar.js +81 -31
  38. package/esm/browser/assistant/voice-call-protocol.d.ts +61 -4
  39. package/esm/browser/assistant/voice-call.d.ts +16 -23
  40. package/esm/browser/assistant/voice-call.js +134 -117
  41. package/esm/browser/assistant/voice-reading.d.ts +83 -0
  42. package/esm/browser/assistant/voice-reading.js +150 -0
  43. package/esm/browser/avatar/dino-talk.d.ts +15 -0
  44. package/esm/browser/avatar/dino-talk.js +34 -0
  45. package/esm/browser/chat/chat-protocol.d.ts +2 -0
  46. package/esm/browser/chat/chat-shown.d.ts +3 -1
  47. package/esm/browser/chat/chat-shown.js +25 -3
  48. package/esm/browser/chat/chat.d.ts +5 -1
  49. package/esm/browser/chat/chat.js +32 -16
  50. package/esm/browser/components/account-menu.d.ts +6 -16
  51. package/esm/browser/components/account-menu.js +47 -101
  52. package/esm/browser/components/app-contexts.js +3 -2
  53. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  54. package/esm/browser/components/composer-box-protocol.d.ts +2 -0
  55. package/esm/browser/components/composer-box.js +20 -1
  56. package/esm/browser/components/composer-emoji.d.ts +22 -0
  57. package/esm/browser/components/composer-emoji.js +50 -0
  58. package/esm/browser/components/conversation-scroll-util.d.ts +8 -1
  59. package/esm/browser/components/conversation-scroll-util.js +21 -0
  60. package/esm/browser/components/conversation-scroll.js +10 -11
  61. package/esm/browser/components/discover-view.d.ts +4 -3
  62. package/esm/browser/components/discover-view.js +5 -4
  63. package/esm/browser/components/emoji-panel.d.ts +22 -0
  64. package/esm/browser/components/emoji-panel.js +54 -0
  65. package/esm/browser/components/gallery.js +28 -7
  66. package/esm/browser/components/host-view.d.ts +1 -1
  67. package/esm/browser/components/image-pull.d.ts +64 -0
  68. package/esm/browser/components/image-pull.js +202 -0
  69. package/esm/browser/components/kept-call-bar.js +2 -1
  70. package/esm/browser/components/lightbox.d.ts +1 -1
  71. package/esm/browser/components/lightbox.js +57 -2
  72. package/esm/browser/components/markdown.d.ts +8 -1
  73. package/esm/browser/components/markdown.js +12 -4
  74. package/esm/browser/components/me-rows.d.ts +24 -0
  75. package/esm/browser/components/me-rows.js +19 -0
  76. package/esm/browser/components/me-view.d.ts +2 -1
  77. package/esm/browser/components/me-view.js +3 -2
  78. package/esm/browser/components/message-list.js +47 -7
  79. package/esm/browser/components/message-steps.js +13 -0
  80. package/esm/browser/components/nav-places.js +1 -1
  81. package/esm/browser/components/partner-row.js +2 -1
  82. package/esm/browser/components/relay-services.d.ts +9 -3
  83. package/esm/browser/components/relay-services.js +73 -35
  84. package/esm/browser/components/session-view.js +4 -2
  85. package/esm/browser/components/settings-choices.js +3 -0
  86. package/esm/browser/components/settings-controls.d.ts +13 -0
  87. package/esm/browser/components/settings-controls.js +19 -0
  88. package/esm/browser/components/settings-more.d.ts +1 -1
  89. package/esm/browser/components/settings-more.js +28 -39
  90. package/esm/browser/components/settings-parts.d.ts +4 -2
  91. package/esm/browser/components/settings-parts.js +16 -9
  92. package/esm/browser/components/settings-view.js +2 -6
  93. package/esm/browser/components/ta-avatar.d.ts +15 -1
  94. package/esm/browser/components/ta-avatar.js +38 -5
  95. package/esm/browser/components/voice-services.js +6 -1
  96. package/esm/browser/components/web-composer.d.ts +1 -1
  97. package/esm/browser/components/web-composer.js +2 -2
  98. package/esm/browser/device/file-save.d.ts +31 -0
  99. package/esm/browser/device/file-save.js +80 -0
  100. package/esm/browser/extension/extension-view.d.ts +2 -0
  101. package/esm/browser/extension/extension-view.js +2 -0
  102. package/esm/browser/extension/web-api-call.d.ts +109 -2
  103. package/esm/browser/extension/web-api-components.d.ts +4 -0
  104. package/esm/browser/extension/web-api-contributions.d.ts +14 -14
  105. package/esm/browser/extension/web-api-desktop.d.ts +16 -1
  106. package/esm/browser/extension/web-api-desktop.js +1 -0
  107. package/esm/browser/extension/web-api-partners.d.ts +2 -0
  108. package/esm/browser/extension/web-extension-api.d.ts +8 -10
  109. package/esm/browser/extension/web-extension-code.d.ts +15 -8
  110. package/esm/browser/extension/web-extension-code.js +25 -27
  111. package/esm/browser/extension/web-extension-context.js +4 -0
  112. package/esm/browser/extension/web-extension-protocol.d.ts +10 -1
  113. package/esm/browser/extension/web-extension-protocol.js +1 -0
  114. package/esm/browser/extension/web-extension-run.d.ts +4 -2
  115. package/esm/browser/extension/web-extension-run.js +10 -4
  116. package/esm/browser/extension/web-extensions-running.js +7 -6
  117. package/esm/browser/extension/web-pages.d.ts +2 -0
  118. package/esm/browser/extension/web-pages.js +2 -0
  119. package/esm/browser/i18n/en/account.d.ts +202 -0
  120. package/esm/browser/i18n/en/account.js +205 -0
  121. package/esm/browser/i18n/en/assistant.d.ts +129 -0
  122. package/esm/browser/i18n/en/assistant.js +130 -0
  123. package/esm/browser/i18n/en/call.d.ts +86 -0
  124. package/esm/browser/i18n/en/call.js +87 -0
  125. package/esm/browser/i18n/en/chat.d.ts +213 -0
  126. package/esm/browser/i18n/en/chat.js +214 -0
  127. package/esm/browser/i18n/en/common.d.ts +99 -0
  128. package/esm/browser/i18n/en/common.js +101 -0
  129. package/esm/browser/i18n/en/console.d.ts +230 -0
  130. package/esm/browser/i18n/en/console.js +232 -0
  131. package/esm/browser/i18n/en/discover.d.ts +117 -0
  132. package/esm/browser/i18n/en/discover.js +119 -0
  133. package/esm/browser/i18n/en/service.d.ts +242 -0
  134. package/esm/browser/i18n/en/service.js +245 -0
  135. package/esm/browser/i18n/en/settings.d.ts +213 -0
  136. package/esm/browser/i18n/en/settings.js +214 -0
  137. package/esm/browser/i18n/en/tools.d.ts +85 -0
  138. package/esm/browser/i18n/en/tools.js +87 -0
  139. package/esm/browser/i18n/ja/account.d.ts +2 -0
  140. package/esm/browser/i18n/ja/account.js +202 -0
  141. package/esm/browser/i18n/ja/assistant.d.ts +2 -0
  142. package/esm/browser/i18n/ja/assistant.js +129 -0
  143. package/esm/browser/i18n/ja/call.d.ts +2 -0
  144. package/esm/browser/i18n/ja/call.js +86 -0
  145. package/esm/browser/i18n/ja/chat.d.ts +2 -0
  146. package/esm/browser/i18n/ja/chat.js +213 -0
  147. package/esm/browser/i18n/ja/common.d.ts +2 -0
  148. package/esm/browser/i18n/ja/common.js +99 -0
  149. package/esm/browser/i18n/ja/console.d.ts +2 -0
  150. package/esm/browser/i18n/ja/console.js +230 -0
  151. package/esm/browser/i18n/ja/discover.d.ts +2 -0
  152. package/esm/browser/i18n/ja/discover.js +117 -0
  153. package/esm/browser/i18n/ja/service.d.ts +2 -0
  154. package/esm/browser/i18n/ja/service.js +242 -0
  155. package/esm/browser/i18n/ja/settings.d.ts +2 -0
  156. package/esm/browser/i18n/ja/settings.js +213 -0
  157. package/esm/browser/i18n/ja/tools.d.ts +2 -0
  158. package/esm/browser/i18n/ja/tools.js +85 -0
  159. package/esm/browser/i18n/locales.d.ts +1150 -1131
  160. package/esm/browser/i18n/messages-ja.js +20 -1567
  161. package/esm/browser/i18n/messages-zh-tw.d.ts +0 -1
  162. package/esm/browser/i18n/messages-zh-tw.js +20 -1568
  163. package/esm/browser/i18n/messages.d.ts +1153 -1131
  164. package/esm/browser/i18n/messages.js +44 -3145
  165. package/esm/browser/i18n/zh/account.d.ts +2 -0
  166. package/esm/browser/i18n/zh/account.js +203 -0
  167. package/esm/browser/i18n/zh/assistant.d.ts +2 -0
  168. package/esm/browser/i18n/zh/assistant.js +129 -0
  169. package/esm/browser/i18n/zh/call.d.ts +2 -0
  170. package/esm/browser/i18n/zh/call.js +86 -0
  171. package/esm/browser/i18n/zh/chat.d.ts +2 -0
  172. package/esm/browser/i18n/zh/chat.js +213 -0
  173. package/esm/browser/i18n/zh/common.d.ts +2 -0
  174. package/esm/browser/i18n/zh/common.js +99 -0
  175. package/esm/browser/i18n/zh/console.d.ts +2 -0
  176. package/esm/browser/i18n/zh/console.js +230 -0
  177. package/esm/browser/i18n/zh/discover.d.ts +2 -0
  178. package/esm/browser/i18n/zh/discover.js +117 -0
  179. package/esm/browser/i18n/zh/service.d.ts +2 -0
  180. package/esm/browser/i18n/zh/service.js +242 -0
  181. package/esm/browser/i18n/zh/settings.d.ts +2 -0
  182. package/esm/browser/i18n/zh/settings.js +213 -0
  183. package/esm/browser/i18n/zh/tools.d.ts +2 -0
  184. package/esm/browser/i18n/zh/tools.js +86 -0
  185. package/esm/browser/i18n/zh-tw/account.d.ts +2 -0
  186. package/esm/browser/i18n/zh-tw/account.js +202 -0
  187. package/esm/browser/i18n/zh-tw/assistant.d.ts +2 -0
  188. package/esm/browser/i18n/zh-tw/assistant.js +129 -0
  189. package/esm/browser/i18n/zh-tw/call.d.ts +2 -0
  190. package/esm/browser/i18n/zh-tw/call.js +86 -0
  191. package/esm/browser/i18n/zh-tw/chat.d.ts +2 -0
  192. package/esm/browser/i18n/zh-tw/chat.js +213 -0
  193. package/esm/browser/i18n/zh-tw/common.d.ts +2 -0
  194. package/esm/browser/i18n/zh-tw/common.js +99 -0
  195. package/esm/browser/i18n/zh-tw/console.d.ts +2 -0
  196. package/esm/browser/i18n/zh-tw/console.js +230 -0
  197. package/esm/browser/i18n/zh-tw/discover.d.ts +2 -0
  198. package/esm/browser/i18n/zh-tw/discover.js +117 -0
  199. package/esm/browser/i18n/zh-tw/service.d.ts +2 -0
  200. package/esm/browser/i18n/zh-tw/service.js +242 -0
  201. package/esm/browser/i18n/zh-tw/settings.d.ts +2 -0
  202. package/esm/browser/i18n/zh-tw/settings.js +213 -0
  203. package/esm/browser/i18n/zh-tw/tools.d.ts +2 -0
  204. package/esm/browser/i18n/zh-tw/tools.js +85 -0
  205. package/esm/browser/markdown/code-renderers.d.ts +2 -0
  206. package/esm/browser/markdown/code-renderers.js +2 -0
  207. package/esm/browser/offline/device-values.d.ts +4 -0
  208. package/esm/browser/offline/device-values.js +10 -0
  209. package/esm/browser/pwa/page-build.d.ts +15 -0
  210. package/esm/browser/pwa/page-build.js +45 -0
  211. package/esm/browser/screen/page-answers.d.ts +2 -1
  212. package/esm/browser/screen/page-answers.js +7 -4
  213. package/esm/browser/settings/settings-protocol.d.ts +4 -0
  214. package/esm/browser/settings/settings-protocol.js +4 -0
  215. package/esm/browser/style/base.d.ts +1 -1
  216. package/esm/browser/style/base.js +3 -0
  217. package/esm/browser/style/chat-list.d.ts +1 -1
  218. package/esm/browser/style/chat-list.js +1 -1
  219. package/esm/browser/style/conversation-column.d.ts +1 -1
  220. package/esm/browser/style/conversation-column.js +17 -0
  221. package/esm/browser/style/conversation.d.ts +1 -1
  222. package/esm/browser/style/conversation.js +11 -1
  223. package/esm/browser/style/device.js +1 -0
  224. package/esm/browser/style/dialogs.d.ts +1 -1
  225. package/esm/browser/style/dialogs.js +1 -1
  226. package/esm/browser/style/layout.d.ts +1 -1
  227. package/esm/browser/style/layout.js +135 -57
  228. package/esm/browser/style/pages.d.ts +1 -1
  229. package/esm/browser/style/pages.js +0 -7
  230. package/esm/browser/style/shell.d.ts +1 -1
  231. package/esm/browser/style/shell.js +8 -0
  232. package/esm/browser/style/video-call.d.ts +2 -0
  233. package/esm/browser/style/video-call.js +63 -0
  234. package/esm/browser/style.js +2 -0
  235. package/esm/browser/util/call-transcript.d.ts +16 -0
  236. package/esm/browser/util/call-transcript.js +110 -0
  237. package/esm/browser/util/desktop.d.ts +10 -1
  238. package/esm/browser/util/desktop.js +10 -0
  239. package/esm/browser/util/image-pull.d.ts +61 -0
  240. package/esm/browser/util/image-pull.js +88 -0
  241. package/esm/browser/util/process.d.ts +6 -0
  242. package/esm/browser/util/process.js +18 -5
  243. package/esm/browser/util/spoken.d.ts +3 -3
  244. package/esm/browser/util/spoken.js +4 -4
  245. package/esm/browser/video-call/call-camera.d.ts +59 -0
  246. package/esm/browser/video-call/call-camera.js +188 -0
  247. package/esm/browser/video-call/call-people.d.ts +21 -0
  248. package/esm/browser/video-call/call-people.js +29 -0
  249. package/esm/browser/video-call/call-window.d.ts +19 -0
  250. package/esm/browser/video-call/call-window.js +80 -0
  251. package/esm/browser/video-call/clip-plan.d.ts +56 -0
  252. package/esm/browser/video-call/clip-plan.js +76 -0
  253. package/esm/browser/video-call/face-camera.d.ts +93 -0
  254. package/esm/browser/video-call/face-camera.js +192 -0
  255. package/esm/browser/video-call/face-files.d.ts +69 -0
  256. package/esm/browser/video-call/face-files.js +132 -0
  257. package/esm/browser/video-call/face-moves.d.ts +68 -0
  258. package/esm/browser/video-call/face-moves.js +180 -0
  259. package/esm/browser/video-call/face-stage.d.ts +139 -0
  260. package/esm/browser/video-call/face-stage.js +219 -0
  261. package/esm/browser/video-call/mouth-layer.d.ts +81 -0
  262. package/esm/browser/video-call/mouth-layer.js +241 -0
  263. package/esm/browser/video-call/video-call-view.d.ts +19 -0
  264. package/esm/browser/video-call/video-call-view.js +254 -0
  265. package/esm/browser/video-call/video-face.d.ts +19 -0
  266. package/esm/browser/video-call/video-face.js +471 -0
  267. package/esm/browser/workbench-hosts.d.ts +1 -0
  268. package/esm/browser/workbench-protocol.d.ts +2 -0
  269. package/esm/browser/workbench-util.d.ts +5 -0
  270. package/esm/browser/workbench-util.js +18 -0
  271. package/esm/browser/workbench.d.ts +14 -0
  272. package/esm/browser/workbench.js +73 -6
  273. package/lib/browser/assistant/assistant-role.d.ts +9 -4
  274. package/lib/browser/assistant/assistant-role.js +17 -5
  275. package/lib/browser/assistant/assistant-task-util.d.ts +6 -0
  276. package/lib/browser/assistant/assistant-task-util.js +11 -0
  277. package/lib/browser/assistant/assistant-thread.js +15 -2
  278. package/lib/browser/assistant/assistant-view.js +3 -0
  279. package/lib/browser/assistant/assistant.d.ts +2 -1
  280. package/lib/browser/assistant/assistant.js +9 -7
  281. package/lib/browser/assistant/call-conversing.d.ts +46 -0
  282. package/lib/browser/assistant/call-conversing.js +96 -0
  283. package/lib/browser/assistant/call-face.d.ts +14 -0
  284. package/lib/browser/assistant/call-face.js +117 -0
  285. package/lib/browser/assistant/call-keeper.d.ts +8 -4
  286. package/lib/browser/assistant/call-keeper.js +32 -11
  287. package/lib/browser/assistant/call-partnering.d.ts +38 -0
  288. package/lib/browser/assistant/call-partnering.js +83 -0
  289. package/lib/browser/assistant/call-scenes.d.ts +27 -0
  290. package/lib/browser/assistant/call-scenes.js +88 -0
  291. package/lib/browser/assistant/call-screen.d.ts +3 -0
  292. package/lib/browser/assistant/call-screen.js +15 -0
  293. package/lib/browser/assistant/mic-sense.d.ts +32 -0
  294. package/lib/browser/assistant/mic-sense.js +123 -0
  295. package/lib/browser/assistant/noise-gate.d.ts +33 -0
  296. package/lib/browser/assistant/noise-gate.js +71 -0
  297. package/lib/browser/assistant/pcm-util.d.ts +11 -0
  298. package/lib/browser/assistant/pcm-util.js +58 -0
  299. package/lib/browser/assistant/read-aloud.d.ts +2 -1
  300. package/lib/browser/assistant/realtime-voice-protocol.d.ts +85 -0
  301. package/lib/browser/assistant/realtime-voice-protocol.js +43 -0
  302. package/lib/browser/assistant/realtime-voice.d.ts +50 -62
  303. package/lib/browser/assistant/realtime-voice.js +217 -138
  304. package/lib/browser/assistant/spoken-timeline.d.ts +28 -0
  305. package/lib/browser/assistant/spoken-timeline.js +53 -0
  306. package/lib/browser/assistant/voice-call-bar.d.ts +9 -2
  307. package/lib/browser/assistant/voice-call-bar.js +81 -30
  308. package/lib/browser/assistant/voice-call-protocol.d.ts +61 -4
  309. package/lib/browser/assistant/voice-call.d.ts +16 -23
  310. package/lib/browser/assistant/voice-call.js +134 -117
  311. package/lib/browser/assistant/voice-reading.d.ts +84 -0
  312. package/lib/browser/assistant/voice-reading.js +156 -0
  313. package/lib/browser/avatar/dino-talk.d.ts +16 -0
  314. package/lib/browser/avatar/dino-talk.js +37 -0
  315. package/lib/browser/chat/chat-protocol.d.ts +2 -0
  316. package/lib/browser/chat/chat-shown.d.ts +3 -1
  317. package/lib/browser/chat/chat-shown.js +25 -3
  318. package/lib/browser/chat/chat.d.ts +5 -1
  319. package/lib/browser/chat/chat.js +32 -16
  320. package/lib/browser/components/account-menu.d.ts +6 -16
  321. package/lib/browser/components/account-menu.js +45 -99
  322. package/lib/browser/components/app-contexts.js +2 -1
  323. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  324. package/lib/browser/components/composer-box-protocol.d.ts +2 -0
  325. package/lib/browser/components/composer-box.js +20 -1
  326. package/lib/browser/components/composer-emoji.d.ts +23 -0
  327. package/lib/browser/components/composer-emoji.js +87 -0
  328. package/lib/browser/components/conversation-scroll-util.d.ts +8 -1
  329. package/lib/browser/components/conversation-scroll-util.js +21 -0
  330. package/lib/browser/components/conversation-scroll.js +10 -11
  331. package/lib/browser/components/discover-view.d.ts +4 -3
  332. package/lib/browser/components/discover-view.js +5 -4
  333. package/lib/browser/components/emoji-panel.d.ts +23 -0
  334. package/lib/browser/components/emoji-panel.js +90 -0
  335. package/lib/browser/components/gallery.js +28 -7
  336. package/lib/browser/components/host-view.d.ts +1 -1
  337. package/lib/browser/components/image-pull.d.ts +65 -0
  338. package/lib/browser/components/image-pull.js +206 -0
  339. package/lib/browser/components/kept-call-bar.js +2 -1
  340. package/lib/browser/components/lightbox.d.ts +1 -1
  341. package/lib/browser/components/lightbox.js +57 -2
  342. package/lib/browser/components/markdown.d.ts +8 -1
  343. package/lib/browser/components/markdown.js +11 -3
  344. package/lib/browser/components/me-rows.d.ts +25 -0
  345. package/lib/browser/components/me-rows.js +22 -0
  346. package/lib/browser/components/me-view.d.ts +2 -1
  347. package/lib/browser/components/me-view.js +3 -2
  348. package/lib/browser/components/message-list.js +46 -6
  349. package/lib/browser/components/message-steps.js +13 -0
  350. package/lib/browser/components/nav-places.js +1 -1
  351. package/lib/browser/components/partner-row.js +2 -1
  352. package/lib/browser/components/relay-services.d.ts +9 -3
  353. package/lib/browser/components/relay-services.js +71 -33
  354. package/lib/browser/components/session-view.js +3 -1
  355. package/lib/browser/components/settings-choices.js +3 -0
  356. package/lib/browser/components/settings-controls.d.ts +13 -0
  357. package/lib/browser/components/settings-controls.js +19 -0
  358. package/lib/browser/components/settings-more.d.ts +1 -1
  359. package/lib/browser/components/settings-more.js +27 -38
  360. package/lib/browser/components/settings-parts.d.ts +4 -2
  361. package/lib/browser/components/settings-parts.js +15 -8
  362. package/lib/browser/components/settings-view.js +2 -6
  363. package/lib/browser/components/ta-avatar.d.ts +15 -1
  364. package/lib/browser/components/ta-avatar.js +38 -5
  365. package/lib/browser/components/voice-services.js +5 -0
  366. package/lib/browser/components/web-composer.d.ts +1 -1
  367. package/lib/browser/components/web-composer.js +2 -2
  368. package/lib/browser/device/file-save.d.ts +32 -0
  369. package/lib/browser/device/file-save.js +83 -0
  370. package/lib/browser/extension/extension-view.d.ts +2 -0
  371. package/lib/browser/extension/extension-view.js +3 -1
  372. package/lib/browser/extension/web-api-call.d.ts +109 -2
  373. package/lib/browser/extension/web-api-components.d.ts +4 -0
  374. package/lib/browser/extension/web-api-contributions.d.ts +14 -14
  375. package/lib/browser/extension/web-api-desktop.d.ts +16 -1
  376. package/lib/browser/extension/web-api-desktop.js +1 -0
  377. package/lib/browser/extension/web-api-partners.d.ts +2 -0
  378. package/lib/browser/extension/web-extension-api.d.ts +8 -10
  379. package/lib/browser/extension/web-extension-code.d.ts +15 -8
  380. package/lib/browser/extension/web-extension-code.js +25 -27
  381. package/lib/browser/extension/web-extension-context.js +4 -0
  382. package/lib/browser/extension/web-extension-protocol.d.ts +10 -1
  383. package/lib/browser/extension/web-extension-protocol.js +1 -0
  384. package/lib/browser/extension/web-extension-run.d.ts +4 -2
  385. package/lib/browser/extension/web-extension-run.js +10 -4
  386. package/lib/browser/extension/web-extensions-running.js +7 -6
  387. package/lib/browser/extension/web-pages.d.ts +2 -0
  388. package/lib/browser/extension/web-pages.js +2 -0
  389. package/lib/browser/i18n/en/account.d.ts +203 -0
  390. package/lib/browser/i18n/en/account.js +208 -0
  391. package/lib/browser/i18n/en/assistant.d.ts +130 -0
  392. package/lib/browser/i18n/en/assistant.js +133 -0
  393. package/lib/browser/i18n/en/call.d.ts +87 -0
  394. package/lib/browser/i18n/en/call.js +90 -0
  395. package/lib/browser/i18n/en/chat.d.ts +214 -0
  396. package/lib/browser/i18n/en/chat.js +217 -0
  397. package/lib/browser/i18n/en/common.d.ts +100 -0
  398. package/lib/browser/i18n/en/common.js +104 -0
  399. package/lib/browser/i18n/en/console.d.ts +231 -0
  400. package/lib/browser/i18n/en/console.js +235 -0
  401. package/lib/browser/i18n/en/discover.d.ts +118 -0
  402. package/lib/browser/i18n/en/discover.js +122 -0
  403. package/lib/browser/i18n/en/service.d.ts +243 -0
  404. package/lib/browser/i18n/en/service.js +248 -0
  405. package/lib/browser/i18n/en/settings.d.ts +214 -0
  406. package/lib/browser/i18n/en/settings.js +217 -0
  407. package/lib/browser/i18n/en/tools.d.ts +86 -0
  408. package/lib/browser/i18n/en/tools.js +90 -0
  409. package/lib/browser/i18n/ja/account.d.ts +3 -0
  410. package/lib/browser/i18n/ja/account.js +205 -0
  411. package/lib/browser/i18n/ja/assistant.d.ts +3 -0
  412. package/lib/browser/i18n/ja/assistant.js +132 -0
  413. package/lib/browser/i18n/ja/call.d.ts +3 -0
  414. package/lib/browser/i18n/ja/call.js +89 -0
  415. package/lib/browser/i18n/ja/chat.d.ts +3 -0
  416. package/lib/browser/i18n/ja/chat.js +216 -0
  417. package/lib/browser/i18n/ja/common.d.ts +3 -0
  418. package/lib/browser/i18n/ja/common.js +102 -0
  419. package/lib/browser/i18n/ja/console.d.ts +3 -0
  420. package/lib/browser/i18n/ja/console.js +233 -0
  421. package/lib/browser/i18n/ja/discover.d.ts +3 -0
  422. package/lib/browser/i18n/ja/discover.js +120 -0
  423. package/lib/browser/i18n/ja/service.d.ts +3 -0
  424. package/lib/browser/i18n/ja/service.js +245 -0
  425. package/lib/browser/i18n/ja/settings.d.ts +3 -0
  426. package/lib/browser/i18n/ja/settings.js +216 -0
  427. package/lib/browser/i18n/ja/tools.d.ts +3 -0
  428. package/lib/browser/i18n/ja/tools.js +88 -0
  429. package/lib/browser/i18n/locales.d.ts +1150 -1131
  430. package/lib/browser/i18n/messages-ja.js +20 -1567
  431. package/lib/browser/i18n/messages-zh-tw.d.ts +0 -1
  432. package/lib/browser/i18n/messages-zh-tw.js +20 -1568
  433. package/lib/browser/i18n/messages.d.ts +1153 -1131
  434. package/lib/browser/i18n/messages.js +44 -3145
  435. package/lib/browser/i18n/zh/account.d.ts +3 -0
  436. package/lib/browser/i18n/zh/account.js +206 -0
  437. package/lib/browser/i18n/zh/assistant.d.ts +3 -0
  438. package/lib/browser/i18n/zh/assistant.js +132 -0
  439. package/lib/browser/i18n/zh/call.d.ts +3 -0
  440. package/lib/browser/i18n/zh/call.js +89 -0
  441. package/lib/browser/i18n/zh/chat.d.ts +3 -0
  442. package/lib/browser/i18n/zh/chat.js +216 -0
  443. package/lib/browser/i18n/zh/common.d.ts +3 -0
  444. package/lib/browser/i18n/zh/common.js +102 -0
  445. package/lib/browser/i18n/zh/console.d.ts +3 -0
  446. package/lib/browser/i18n/zh/console.js +233 -0
  447. package/lib/browser/i18n/zh/discover.d.ts +3 -0
  448. package/lib/browser/i18n/zh/discover.js +120 -0
  449. package/lib/browser/i18n/zh/service.d.ts +3 -0
  450. package/lib/browser/i18n/zh/service.js +245 -0
  451. package/lib/browser/i18n/zh/settings.d.ts +3 -0
  452. package/lib/browser/i18n/zh/settings.js +216 -0
  453. package/lib/browser/i18n/zh/tools.d.ts +3 -0
  454. package/lib/browser/i18n/zh/tools.js +89 -0
  455. package/lib/browser/i18n/zh-tw/account.d.ts +3 -0
  456. package/lib/browser/i18n/zh-tw/account.js +205 -0
  457. package/lib/browser/i18n/zh-tw/assistant.d.ts +3 -0
  458. package/lib/browser/i18n/zh-tw/assistant.js +132 -0
  459. package/lib/browser/i18n/zh-tw/call.d.ts +3 -0
  460. package/lib/browser/i18n/zh-tw/call.js +89 -0
  461. package/lib/browser/i18n/zh-tw/chat.d.ts +3 -0
  462. package/lib/browser/i18n/zh-tw/chat.js +216 -0
  463. package/lib/browser/i18n/zh-tw/common.d.ts +3 -0
  464. package/lib/browser/i18n/zh-tw/common.js +102 -0
  465. package/lib/browser/i18n/zh-tw/console.d.ts +3 -0
  466. package/lib/browser/i18n/zh-tw/console.js +233 -0
  467. package/lib/browser/i18n/zh-tw/discover.d.ts +3 -0
  468. package/lib/browser/i18n/zh-tw/discover.js +120 -0
  469. package/lib/browser/i18n/zh-tw/service.d.ts +3 -0
  470. package/lib/browser/i18n/zh-tw/service.js +245 -0
  471. package/lib/browser/i18n/zh-tw/settings.d.ts +3 -0
  472. package/lib/browser/i18n/zh-tw/settings.js +216 -0
  473. package/lib/browser/i18n/zh-tw/tools.d.ts +3 -0
  474. package/lib/browser/i18n/zh-tw/tools.js +88 -0
  475. package/lib/browser/markdown/code-renderers.d.ts +2 -0
  476. package/lib/browser/markdown/code-renderers.js +3 -1
  477. package/lib/browser/offline/device-values.d.ts +4 -0
  478. package/lib/browser/offline/device-values.js +10 -0
  479. package/lib/browser/pwa/page-build.d.ts +16 -0
  480. package/lib/browser/pwa/page-build.js +48 -0
  481. package/lib/browser/screen/page-answers.d.ts +2 -1
  482. package/lib/browser/screen/page-answers.js +7 -4
  483. package/lib/browser/settings/settings-protocol.d.ts +4 -0
  484. package/lib/browser/settings/settings-protocol.js +4 -0
  485. package/lib/browser/style/base.d.ts +1 -1
  486. package/lib/browser/style/base.js +3 -0
  487. package/lib/browser/style/chat-list.d.ts +1 -1
  488. package/lib/browser/style/chat-list.js +1 -1
  489. package/lib/browser/style/conversation-column.d.ts +1 -1
  490. package/lib/browser/style/conversation-column.js +17 -0
  491. package/lib/browser/style/conversation.d.ts +1 -1
  492. package/lib/browser/style/conversation.js +11 -1
  493. package/lib/browser/style/device.js +1 -0
  494. package/lib/browser/style/dialogs.d.ts +1 -1
  495. package/lib/browser/style/dialogs.js +1 -1
  496. package/lib/browser/style/layout.d.ts +1 -1
  497. package/lib/browser/style/layout.js +135 -57
  498. package/lib/browser/style/pages.d.ts +1 -1
  499. package/lib/browser/style/pages.js +0 -7
  500. package/lib/browser/style/shell.d.ts +1 -1
  501. package/lib/browser/style/shell.js +8 -0
  502. package/lib/browser/style/video-call.d.ts +3 -0
  503. package/lib/browser/style/video-call.js +66 -0
  504. package/lib/browser/style.js +2 -0
  505. package/lib/browser/util/call-transcript.d.ts +17 -0
  506. package/lib/browser/util/call-transcript.js +113 -0
  507. package/lib/browser/util/desktop.d.ts +10 -1
  508. package/lib/browser/util/desktop.js +10 -0
  509. package/lib/browser/util/image-pull.d.ts +62 -0
  510. package/lib/browser/util/image-pull.js +91 -0
  511. package/lib/browser/util/process.d.ts +6 -0
  512. package/lib/browser/util/process.js +17 -4
  513. package/lib/browser/util/spoken.d.ts +3 -3
  514. package/lib/browser/util/spoken.js +4 -4
  515. package/lib/browser/video-call/call-camera.d.ts +60 -0
  516. package/lib/browser/video-call/call-camera.js +192 -0
  517. package/lib/browser/video-call/call-people.d.ts +22 -0
  518. package/lib/browser/video-call/call-people.js +32 -0
  519. package/lib/browser/video-call/call-window.d.ts +20 -0
  520. package/lib/browser/video-call/call-window.js +83 -0
  521. package/lib/browser/video-call/clip-plan.d.ts +57 -0
  522. package/lib/browser/video-call/clip-plan.js +80 -0
  523. package/lib/browser/video-call/face-camera.d.ts +94 -0
  524. package/lib/browser/video-call/face-camera.js +197 -0
  525. package/lib/browser/video-call/face-files.d.ts +70 -0
  526. package/lib/browser/video-call/face-files.js +137 -0
  527. package/lib/browser/video-call/face-moves.d.ts +69 -0
  528. package/lib/browser/video-call/face-moves.js +184 -0
  529. package/lib/browser/video-call/face-stage.d.ts +140 -0
  530. package/lib/browser/video-call/face-stage.js +223 -0
  531. package/lib/browser/video-call/mouth-layer.d.ts +82 -0
  532. package/lib/browser/video-call/mouth-layer.js +245 -0
  533. package/lib/browser/video-call/video-call-view.d.ts +20 -0
  534. package/lib/browser/video-call/video-call-view.js +290 -0
  535. package/lib/browser/video-call/video-face.d.ts +20 -0
  536. package/lib/browser/video-call/video-face.js +507 -0
  537. package/lib/browser/workbench-hosts.d.ts +1 -0
  538. package/lib/browser/workbench-protocol.d.ts +2 -0
  539. package/lib/browser/workbench-util.d.ts +5 -0
  540. package/lib/browser/workbench-util.js +18 -0
  541. package/lib/browser/workbench.d.ts +14 -0
  542. package/lib/browser/workbench.js +71 -4
  543. package/package.json +7 -7
  544. package/public/faces/README.md +40 -0
  545. package/public/faces/blonde/clap.mp4 +0 -0
  546. package/public/faces/blonde/dance.mp4 +0 -0
  547. package/public/faces/blonde/face.jpg +0 -0
  548. package/public/faces/blonde/happy.mp4 +0 -0
  549. package/public/faces/blonde/heart.mp4 +0 -0
  550. package/public/faces/blonde/idle-1.mp4 +0 -0
  551. package/public/faces/blonde/idle-2.mp4 +0 -0
  552. package/public/faces/blonde/idle-3.mp4 +0 -0
  553. package/public/faces/blonde/laugh.mp4 +0 -0
  554. package/public/faces/blonde/listening.mp4 +0 -0
  555. package/public/faces/blonde/poster.jpg +0 -0
  556. package/public/faces/blonde/shy.mp4 +0 -0
  557. package/public/faces/blonde/sorry.mp4 +0 -0
  558. package/public/faces/blonde/stretch.mp4 +0 -0
  559. package/public/faces/blonde/surprised.mp4 +0 -0
  560. package/public/faces/blonde/talk-1.mp4 +0 -0
  561. package/public/faces/blonde/talk-2.mp4 +0 -0
  562. package/public/faces/blonde/think-2.mp4 +0 -0
  563. package/public/faces/blonde/thinking.mp4 +0 -0
  564. package/public/faces/blonde/wave.mp4 +0 -0
  565. package/public/faces/clap.mp4 +0 -0
  566. package/public/faces/dance.mp4 +0 -0
  567. package/public/faces/face.jpg +0 -0
  568. package/public/faces/framing.json +1 -0
  569. package/public/faces/happy.mp4 +0 -0
  570. package/public/faces/heart.mp4 +0 -0
  571. package/public/faces/idle-1.mp4 +0 -0
  572. package/public/faces/idle-2.mp4 +0 -0
  573. package/public/faces/idle-3.mp4 +0 -0
  574. package/public/faces/laugh.mp4 +0 -0
  575. package/public/faces/lips.json +1 -0
  576. package/public/faces/listening.mp4 +0 -0
  577. package/public/faces/poster.jpg +0 -0
  578. package/public/faces/shy.mp4 +0 -0
  579. package/public/faces/sorry.mp4 +0 -0
  580. package/public/faces/stretch.mp4 +0 -0
  581. package/public/faces/surprised.mp4 +0 -0
  582. package/public/faces/talk-1.mp4 +0 -0
  583. package/public/faces/talk-2.mp4 +0 -0
  584. package/public/faces/think-2.mp4 +0 -0
  585. package/public/faces/thinking.mp4 +0 -0
  586. package/public/faces/wave.mp4 +0 -0
@@ -21,6 +21,17 @@ const SummaryStep = React.memo(function SummaryStep({ text }) {
21
21
  React.createElement(Icon, { icon: ChevronRight, size: 14, className: "ta-step-chevron" })),
22
22
  open && React.createElement("div", { className: "ta-thinking-text" }, text)));
23
23
  });
24
+ /** What it wrote of the pictures attached, for Ta to keep: one quiet line, which opens to a line for each picture. */
25
+ const PicturesStep = React.memo(function PicturesStep({ told }) {
26
+ const t = useT();
27
+ const [open, setOpen] = React.useState(false);
28
+ return (React.createElement("div", { className: "ta-step-summary ta-step-pictures" },
29
+ React.createElement("button", { type: "button", className: "ta-step-toggle", "aria-expanded": open, onClick: () => setOpen(!open) },
30
+ React.createElement("span", { className: "ta-status ta-status-thought" }),
31
+ React.createElement("span", { className: "ta-step-tag" }, t('ta.message.picturesSeen', { count: told.length })),
32
+ React.createElement(Icon, { icon: ChevronRight, size: 14, className: "ta-step-chevron" })),
33
+ open && (React.createElement("div", { className: "ta-thinking-text" }, told.map(([at, what]) => (React.createElement("div", { key: at }, t('ta.message.pictureSeen', { n: at, what }))))))));
34
+ });
24
35
  /** A request that failed on the way, the work going on after it: one quiet line, which opens to the error. */
25
36
  const ErrorStep = React.memo(function ErrorStep({ text }) {
26
37
  const t = useT();
@@ -68,6 +79,8 @@ function Step({ step, results, tools, tagged, streaming, }) {
68
79
  return React.createElement(TextStep, { text: step.text, streaming: streaming });
69
80
  case 'summary':
70
81
  return React.createElement(SummaryStep, { text: step.text });
82
+ case 'pictures':
83
+ return React.createElement(PicturesStep, { told: step.told });
71
84
  case 'error':
72
85
  return React.createElement(ErrorStep, { text: step.text });
73
86
  case 'said':
@@ -47,7 +47,7 @@ export function arrangeViews(views, onOpen, setting, handheld, infoOf, kinds) {
47
47
  return view => (arranged.nav.includes(view) ? 'navigation' : arranged.discover.includes(view) ? 'discover' : 'list');
48
48
  }
49
49
  /** The groups of Discover, in their order: each a card of its own. */
50
- export const DISCOVER_GROUPS = ['people', 'work', 'share', 'more'];
50
+ export const DISCOVER_GROUPS = ['people', 'work', 'share', 'tools', 'play', 'more'];
51
51
  /** The pages under Discover by group (WebView.group, `more` without one or with one it does not know), in the order of DISCOVER_GROUPS; empty ones left out. */
52
52
  export function discoverGroups(pages) {
53
53
  const of = (page) => (page.group && DISCOVER_GROUPS.includes(page.group) ? page.group : 'more');
@@ -17,6 +17,7 @@ import { SwipeRow } from './swipe-row.js';
17
17
  */
18
18
  export function PartnerRow({ partner, time, selected, open, pinned, onPin, }) {
19
19
  var _a, _b;
20
+ var _c;
20
21
  const t = useT();
21
22
  const [menu, openMenu] = useContextMenu();
22
23
  const [opening, setOpening] = React.useState(false);
@@ -55,6 +56,6 @@ export function PartnerRow({ partner, time, selected, open, pinned, onPin, }) {
55
56
  React.createElement(Own, { size: 38 }))) : (React.createElement("span", { className: "ta-chat-avatar ta-chat-icon", style: { background: `var(--ta-tint-${partner.tone})`, color: `var(--ta-tint-ink-${partner.tone})`, width: 38, height: 38 }, "aria-hidden": "true" }, opening ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(Glyph, { size: 18, strokeWidth: 1.8 }))),
56
57
  partner.online && React.createElement("span", { className: "ta-partner-online", "aria-hidden": "true" }),
57
58
  React.createElement(ChatDot, { unseen: unseen, asks: asks })),
58
- React.createElement(RowText, { title: partner.name, time: time, line: PartnersUtil.line(partner, t('ta.partners.waiting')), unseen: unseen, busy: !partner.status && !!((_b = partner.chat) === null || _b === void 0 ? void 0 : _b.busy), tag: partner.location ? React.createElement(HostTag, { location: partner.location }) : undefined, badge: partner.friends ? t('ta.partners.withFriends') : undefined }))));
59
+ React.createElement(RowText, { title: partner.name, time: time, line: PartnersUtil.line(partner, t('ta.partners.waiting')), unseen: unseen, busy: !partner.status && !!((_b = partner.chat) === null || _b === void 0 ? void 0 : _b.busy), tag: partner.location ? React.createElement(HostTag, { location: partner.location }) : undefined, badge: (_c = partner.label) !== null && _c !== void 0 ? _c : (partner.friends ? t('ta.partners.withFriends') : undefined) }))));
59
60
  }
60
61
  //# sourceMappingURL=partner-row.js.map
@@ -1,4 +1,4 @@
1
- import type { TaJoinedDeployment, TaRelayFeature, TaRelayProbe, TaRelayService, TaRelayTypeInfo } from '@celljs/ta-protocol';
1
+ import type { TaJoinedDeployment, TaRelayFeature, TaRelayProbe, TaRelayService, TaRelays, TaRelayTypeInfo } from '@celljs/ta-protocol';
2
2
  import { type LucideIcon } from 'lucide-react';
3
3
  import * as React from 'react';
4
4
  import { useT } from '../i18n/use-t.js';
@@ -11,14 +11,20 @@ export declare namespace RelayServicesUtil {
11
11
  function serves(service: TaRelayService, feature: TaRelayFeature): boolean;
12
12
  /** The icon of a service: the official relay, a relay, a folder, a store by the icon its package gave its type. */
13
13
  function icon(service: TaRelayService, types?: readonly TaRelayTypeInfo[]): LucideIcon;
14
+ /** The ways of the phones, in order: as the computer lists them, else the relay of `devices` alone. */
15
+ function routes(relays: TaRelays): string[];
16
+ /** The ways of the phones as relays.json keeps them: `direct` first while it is on. */
17
+ function withDirect(relays: TaRelays, ids: readonly string[], on?: boolean): string[];
18
+ /** The ways with the one at `index` tried one earlier. */
19
+ function earlier(routes: readonly string[], index: number): string[];
14
20
  /** What a deployment is called: its name, else the host of the address it was joined by. */
15
21
  function deploymentName(deployment: TaJoinedDeployment): string;
16
22
  function host(url: string): string;
17
23
  /** A name for the cloud workspace of a deployment's gateway (ta://<name>): its first label, as TaLocation takes it. */
18
24
  function cloudName(gateway: string): string;
19
25
  function iconNamed(name: string | undefined): LucideIcon;
20
- /** What a relay shows under its name: where it is, whether it answers, what it keeps. */
21
- function line(service: TaRelayService, probe: TaRelayProbe | undefined, t: ReturnType<typeof useT>): string;
26
+ /** Where a relay is and whether it answers, short enough for a phone beside its controls. */
27
+ function brief(service: TaRelayService, probe: TaRelayProbe | undefined, t: ReturnType<typeof useT>): string;
22
28
  }
23
29
  /**
24
30
  * The relays of relays.json (docs/design/ta-relays.md) and which one each feature uses: phones that reach this
@@ -1,12 +1,17 @@
1
- import { Building2, Cloud, Database, ExternalLink, FileJson, Folder, GitBranch, HardDrive, Plus, RefreshCw, Server, ShieldCheck, Trash2, } from 'lucide-react';
1
+ import { ArrowUp, Building2, Cloud, Database, ExternalLink, FileJson, Folder, GitBranch, HardDrive, Plus, RefreshCw, Server, ShieldCheck, Trash2, Zap, } from 'lucide-react';
2
2
  import * as React from 'react';
3
3
  import { useNotices, useWorkbench } from '../hooks.js';
4
4
  import { useT } from '../i18n/use-t.js';
5
5
  import { Icon, IconButton } from './icon.js';
6
6
  import { AddCloudHost } from './remote-hosts.js';
7
- import { Row } from './settings-controls.js';
8
- /** The features that go through a relay, in the order the settings list them; where sync goes is chosen in its own settings (ta-sync). */
9
- const FEATURES = ['devices', 'share', 'rooms'];
7
+ import { Row, Switch } from './settings-controls.js';
8
+ /** In `use.devices`, the direct connection of a phone to this computer (DIRECT_ROUTE of ta-relay). */
9
+ const DIRECT = 'direct';
10
+ /**
11
+ * The features that go through one relay, in the order the settings list them, after the ways of the phones
12
+ * (DeviceRoutes); where sync goes is chosen in its own settings (ta-sync).
13
+ */
14
+ const FEATURES = ['share', 'rooms'];
10
15
  export var RelayServicesUtil;
11
16
  (function (RelayServicesUtil) {
12
17
  /** What a service is called: the official relay, its name, else its host or its folder. */
@@ -46,6 +51,30 @@ export var RelayServicesUtil;
46
51
  return iconNamed((_a = types.find(each => each.type === service.type)) === null || _a === void 0 ? void 0 : _a.icon);
47
52
  }
48
53
  RelayServicesUtil.icon = icon;
54
+ /** The ways of the phones, in order: as the computer lists them, else the relay of `devices` alone. */
55
+ function routes(relays) {
56
+ var _a;
57
+ const listed = ((_a = relays.routes) === null || _a === void 0 ? void 0 : _a.length) ? relays.routes : [relays.use.devices];
58
+ return listed.filter(id => relays.relays.some(relay => relay.id === id && relay.type === 'ta-relay'));
59
+ }
60
+ RelayServicesUtil.routes = routes;
61
+ /** The ways of the phones as relays.json keeps them: `direct` first while it is on. */
62
+ function withDirect(relays, ids, on) {
63
+ var _a;
64
+ var _b;
65
+ if (on === void 0) { on = (_b = (_a = relays.direct) === null || _a === void 0 ? void 0 : _a.on) !== null && _b !== void 0 ? _b : false; }
66
+ return [...(on ? [DIRECT] : []), ...ids.filter(id => id !== DIRECT)];
67
+ }
68
+ RelayServicesUtil.withDirect = withDirect;
69
+ /** The ways with the one at `index` tried one earlier. */
70
+ function earlier(routes, index) {
71
+ const next = [...routes];
72
+ if (index > 0 && index < next.length) {
73
+ [next[index - 1], next[index]] = [next[index], next[index - 1]];
74
+ }
75
+ return next;
76
+ }
77
+ RelayServicesUtil.earlier = earlier;
49
78
  /** What a deployment is called: its name, else the host of the address it was joined by. */
50
79
  function deploymentName(deployment) {
51
80
  var _a;
@@ -75,38 +104,20 @@ export var RelayServicesUtil;
75
104
  return name === 'Database' ? Database : name === 'GitBranch' ? GitBranch : name === 'HardDrive' ? HardDrive : name === 'Server' ? Server : Cloud;
76
105
  }
77
106
  RelayServicesUtil.iconNamed = iconNamed;
78
- /** What a relay shows under its name: where it is, whether it answers, what it keeps. */
79
- function line(service, probe, t) {
80
- var _a, _b;
107
+ /** Where a relay is and whether it answers, short enough for a phone beside its controls. */
108
+ function brief(service, probe, t) {
81
109
  const host = where(service);
82
- if (service.type === 'folder') {
83
- return probe && !probe.online ? `${host} · ${(_a = probe.error) !== null && _a !== void 0 ? _a : t('ta.relays.offline')}` : `${host} · ${t('ta.relays.folderOnly')}`;
84
- }
85
- if (service.type !== 'ta-relay') {
86
- if (service.unavailable) {
87
- return `${service.type} · ${t('ta.relays.unavailable')}`;
88
- }
89
- if (probe && !probe.online) {
90
- return `${host} · ${(_b = probe.error) !== null && _b !== void 0 ? _b : t('ta.relays.offline')}`;
91
- }
92
- return [host, (probe === null || probe === void 0 ? void 0 : probe.ms) !== undefined ? t('ta.relays.online', { ms: probe.ms }) : undefined, t('ta.relays.storeOnly')].filter(Boolean).join(' · ');
93
- }
94
110
  if (!probe) {
95
111
  return host;
96
112
  }
97
113
  if (!probe.online) {
98
114
  return `${host} · ${t('ta.relays.offline')}`;
99
115
  }
100
- const parts = [host, probe.ms !== undefined ? t('ta.relays.online', { ms: probe.ms }) : t('ta.relays.onlineNoTime')];
101
- if (probe.persistent === false) {
102
- parts.push(t('ta.relays.memory'));
103
- }
104
- if (probe.limits && !probe.legacy) {
105
- parts.push(t('ta.relays.limits', { members: probe.limits.hubMembers, state: Math.round(probe.limits.hubStateBytes / 1024 / 1024) }));
106
- }
107
- return parts.join(' · ');
116
+ const answers = probe.ms !== undefined ? t('ta.relays.online', { ms: probe.ms }) : t('ta.relays.onlineNoTime');
117
+ // A relay that keeps group chats in memory loses them when it restarts: worth saying.
118
+ return [host, answers, probe.persistent === false ? t('ta.relays.memory') : undefined].filter(Boolean).join(' · ');
108
119
  }
109
- RelayServicesUtil.line = line;
120
+ RelayServicesUtil.brief = brief;
110
121
  })(RelayServicesUtil || (RelayServicesUtil = {}));
111
122
  /**
112
123
  * The relays of relays.json (docs/design/ta-relays.md) and which one each feature uses: phones that reach this
@@ -166,10 +177,7 @@ export function RelayServices() {
166
177
  if (!relays) {
167
178
  return null;
168
179
  }
169
- const used = new Set(Object.values(relays.use));
170
- const types = (_a = relays.types) !== null && _a !== void 0 ? _a : [];
171
- // Folders and stores are places of sync, chosen and removed there.
172
- const shown = relays.relays.filter(relay => relay.type === 'ta-relay');
180
+ const used = new Set([...Object.values(relays.use), ...((_a = relays.routes) !== null && _a !== void 0 ? _a : [])]);
173
181
  return (React.createElement(React.Fragment, null,
174
182
  React.createElement(Deployment, { relays: relays, changed: listed => {
175
183
  var _a;
@@ -184,9 +192,9 @@ export function RelayServices() {
184
192
  React.createElement("select", { className: "ta-input ta-select", "aria-label": t(`ta.relays.feature.${feature}`), disabled: busy !== undefined, value: (_a = relays.use[feature]) !== null && _a !== void 0 ? _a : '', onChange: event => void run(feature, async () => setRelays(await bench.relay.chooseRelay(feature, event.target.value || null))) }, relays.relays
185
193
  .filter(relay => RelayServicesUtil.serves(relay, feature) || relays.use[feature] === relay.id)
186
194
  .map(relay => (React.createElement("option", { key: relay.id, value: relay.id }, RelayServicesUtil.label(relay, t))))))); }),
187
- shown.map(relay => { var _a; return (React.createElement(Row, { key: relay.id, icon: RelayServicesUtil.icon(relay, types), label: RelayServicesUtil.label(relay, t), description: React.createElement("span", { className: "ta-remote-state" },
188
- React.createElement("span", { className: `ta-remote-light${((_a = probes[relay.id]) === null || _a === void 0 ? void 0 : _a.online) ? ' ta-on' : ''}` }),
189
- RelayServicesUtil.line(relay, probes[relay.id], t)) }, !relay.builtin && relay.id !== 'relay-json' && !used.has(relay.id) && (React.createElement(IconButton, { icon: Trash2, label: t('ta.relays.remove', { name: RelayServicesUtil.label(relay, t) }), disabled: busy !== undefined, onClick: () => void run(relay.id, () => bench.relay.removeRelay(relay.id)) })))); }),
195
+ React.createElement(DeviceRoutes, { relays: relays, probes: probes, busy: busy !== undefined, chooseWays: ids => void run('devices', async () => setRelays(await bench.relay.chooseRelay('devices', ids))), choose: ids => void run('devices', async () => setRelays(await bench.relay.chooseRelay('devices', RelayServicesUtil.withDirect(relays, ids)))), remove: relay => !relay.builtin && relay.id !== 'relay-json' && !used.has(relay.id)
196
+ ? () => void run(relay.id, () => bench.relay.removeRelay(relay.id))
197
+ : undefined }),
190
198
  React.createElement(Row, { label: t('ta.relays.add'), description: t('ta.relays.addHint'), stacked: true },
191
199
  React.createElement("form", { className: "ta-trusted-add", onSubmit: event => {
192
200
  event.preventDefault();
@@ -200,6 +208,36 @@ export function RelayServices() {
200
208
  React.createElement(Row, { icon: RefreshCw, label: t('ta.relays.syncElsewhere'), description: t('ta.relays.syncElsewhereHint') }),
201
209
  React.createElement(Row, { icon: FileJson, label: t('ta.relays.file'), description: React.createElement("span", { className: "ta-path" }, relays.file) })));
202
210
  }
211
+ /**
212
+ * The relays, as the ways of the phones to this computer (docs/design/ta-relays.md 12): each relay a row with whether it
213
+ * answers, on or off for phones and moved earlier by its arrow, the phones trying them in that order and keeping the first
214
+ * that connects; one stays on. A relay nothing uses can be removed. Folders and stores are places of sync, listed there.
215
+ */
216
+ function DeviceRoutes({ relays, probes, busy, choose, chooseWays, remove, }) {
217
+ const t = useT();
218
+ const routes = RelayServicesUtil.routes(relays);
219
+ const all = relays.relays.filter(relay => relay.type === 'ta-relay');
220
+ const ordered = [...routes.flatMap(id => all.filter(relay => relay.id === id)), ...all.filter(relay => !routes.includes(relay.id))];
221
+ return (React.createElement(React.Fragment, null,
222
+ React.createElement(Row, { label: t('ta.relays.feature.devices'), description: t('ta.relays.feature.devicesHint') }),
223
+ relays.direct && (React.createElement(Row, { icon: Zap, label: t('ta.relays.direct'), description: relays.direct.available ? t('ta.relays.directHint') : t('ta.relays.directUnavailable') },
224
+ React.createElement(Switch, { checked: relays.direct.on && relays.direct.available, label: t('ta.relays.direct'), disabled: busy || !relays.direct.available, onChange: on => chooseWays(RelayServicesUtil.withDirect(relays, routes, on)) }))),
225
+ ordered.map(relay => {
226
+ var _a;
227
+ const at = routes.indexOf(relay.id);
228
+ const name = RelayServicesUtil.label(relay, t);
229
+ const removing = remove(relay);
230
+ return (React.createElement(Row, { key: relay.id, icon: RelayServicesUtil.icon(relay, relays.types), label: name, description: React.createElement("span", { className: "ta-remote-state" },
231
+ React.createElement("span", { className: `ta-remote-light${((_a = probes[relay.id]) === null || _a === void 0 ? void 0 : _a.online) ? ' ta-on' : ''}` }),
232
+ [
233
+ at >= 0 ? t('ta.relays.routeAt', { n: at + 1 }) : t('ta.relays.routeOff'),
234
+ RelayServicesUtil.brief(relay, probes[relay.id], t),
235
+ ].join(' · ')) },
236
+ removing && React.createElement(IconButton, { icon: Trash2, label: t('ta.relays.remove', { name }), disabled: busy, onClick: removing }),
237
+ at > 0 && (React.createElement(IconButton, { icon: ArrowUp, label: t('ta.relays.routeUp', { name }), disabled: busy, onClick: () => choose(RelayServicesUtil.earlier(routes, at)) })),
238
+ React.createElement(Switch, { checked: at >= 0, label: t('ta.relays.routeUse', { name }), disabled: busy || (at >= 0 && routes.length === 1), onChange: on => choose(on ? [...routes, relay.id] : routes.filter(id => id !== relay.id)) })));
239
+ })));
240
+ }
203
241
  /**
204
242
  * A deployment of Ta, inside a company or outside it (docs/design/ta-deploy.md 8): joined by the address of any of its
205
243
  * services, its relay is the default of what is new, and its gateway gives a Ta in the cloud to open, or its sandbox as a
@@ -2,7 +2,8 @@ import { useInject } from '@celljs/react';
2
2
  import { TA_OWNER } from '@celljs/ta-protocol';
3
3
  import { ArrowDown, TextSearch } from 'lucide-react';
4
4
  import * as React from 'react';
5
- import { CallBar, callAction, callEndedNotice, dialogAnnouncements, talkCall, useCallAnnouncements, useCallTurns, useTalkCalls, useVoiceCall, } from '../assistant/voice-call-bar.js';
5
+ import { CallFace } from '../assistant/call-face.js';
6
+ import { CallBar, callAction, callEndedNotice, dialogAnnouncements, talkCall, useCallAnnouncements, useCallTurns, useTalkCalls, useVoiceCall, videoCallAction, } from '../assistant/voice-call-bar.js';
6
7
  import { useKeyboardDismiss } from '../device/device.js';
7
8
  import { DraftPlaces } from '../drafts/drafts-protocol.js';
8
9
  import { TaFiles } from '../files/files-protocol.js';
@@ -322,7 +323,7 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
322
323
  disabled: nothingSaid,
323
324
  run: () => setFinding(count => count + 1),
324
325
  },
325
- ...(callable ? [callAction(callState, call, t)] : []),
326
+ ...(callable ? [callAction(callState, call, t), videoCallAction(callState, call, t)] : []),
326
327
  ],
327
328
  ...addons.actions,
328
329
  ], [actions, addons.actions, t, nothingSaid, callable, callState, call]);
@@ -344,6 +345,7 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
344
345
  info && (React.createElement("span", { className: "ta-muted ta-path", title: info.cwd }, MessageUtil.shortPath(info.cwd)))),
345
346
  React.createElement(PeopleFaces, { people: viewing, size: 24, label: t('ta.presence.viewing') }),
346
347
  trailing)),
348
+ React.createElement(CallFace, { state: callState, call: call }),
347
349
  finding > 0 && React.createElement(ConversationFind, { store: store, state: state, rows: rows, scroller: scroller, focusKey: finding, onClose: closeFind }),
348
350
  React.createElement("div", { className: "ta-scroll ta-conversation", ref: scroller },
349
351
  React.createElement("div", { className: "ta-thread" },
@@ -27,7 +27,10 @@ export const GROUP_ICONS = { model: Box, conversation: MessagesSquare, context:
27
27
  /** The parts of the settings, in their order: by what the user looks for, not where a setting is kept. */
28
28
  export const SETTINGS_GROUPS = [
29
29
  { id: 'general', title: 'ta.settings.general' },
30
+ { id: 'chats', title: 'ta.settings.part.chats' },
30
31
  { id: 'ta', title: 'ta.settings.agent' },
32
+ { id: 'initiative', title: 'ta.settings.part.initiative' },
33
+ { id: 'voice', title: 'ta.settings.part.voice' },
31
34
  { id: 'devices', title: 'ta.settings.devices' },
32
35
  { id: 'privacy', title: 'ta.settings.privacy' },
33
36
  { id: 'extensions', title: 'ta.packages' },
@@ -63,6 +63,19 @@ export declare namespace SettingsViewUtil {
63
63
  }, P extends {
64
64
  sections: S[];
65
65
  }>(parts: P[], query: string): P[];
66
+ /**
67
+ * The sections in their parts, in the order of `groups`: a section without a group in the first, those of a part by
68
+ * `order` (default 0), in the order given for the same; parts without a section left out.
69
+ */
70
+ function parts<S extends {
71
+ group?: string;
72
+ order?: number;
73
+ }>(sections: readonly S[], groups: readonly {
74
+ id: string;
75
+ }[]): {
76
+ id: string;
77
+ sections: S[];
78
+ }[];
66
79
  /** Where `scroller` puts `element` at its top, below its scroll padding; no further than it scrolls. */
67
80
  function scrollTop(scroller: HTMLElement, element: HTMLElement): number;
68
81
  }
@@ -70,6 +70,25 @@ export var SettingsViewUtil;
70
70
  .filter(part => part.sections.length > 0);
71
71
  }
72
72
  SettingsViewUtil.filter = filter;
73
+ /**
74
+ * The sections in their parts, in the order of `groups`: a section without a group in the first, those of a part by
75
+ * `order` (default 0), in the order given for the same; parts without a section left out.
76
+ */
77
+ function parts(sections, groups) {
78
+ var _a;
79
+ const first = (_a = groups[0]) === null || _a === void 0 ? void 0 : _a.id;
80
+ return groups
81
+ .map(({ id }) => ({
82
+ id,
83
+ sections: sections
84
+ .filter(entry => { var _a; return ((_a = entry.group) !== null && _a !== void 0 ? _a : first) === id; })
85
+ .map((entry, index) => ({ entry, index }))
86
+ .sort((a, b) => { var _a, _b; return ((_a = a.entry.order) !== null && _a !== void 0 ? _a : 0) - ((_b = b.entry.order) !== null && _b !== void 0 ? _b : 0) || a.index - b.index; })
87
+ .map(({ entry }) => entry),
88
+ }))
89
+ .filter(part => part.sections.length > 0);
90
+ }
91
+ SettingsViewUtil.parts = parts;
73
92
  /** Where `scroller` puts `element` at its top, below its scroll padding; no further than it scrolls. */
74
93
  function scrollTop(scroller, element) {
75
94
  const padding = Number.parseFloat(getComputedStyle(scroller).scrollPaddingTop) || 0;
@@ -4,4 +4,4 @@ import type { SectionEntry, SettingsDialog } from './settings-parts.js';
4
4
  * those built in, those of extensions where they ask, the computers and services Ta reaches, who may come in, the
5
5
  * keys, and what is about Ta and this computer.
6
6
  */
7
- export declare function useMoreSections(onClose: () => void, onDialog: (dialog: SettingsDialog) => void): SectionEntry[];
7
+ export declare function useMoreSections(onDialog: (dialog: SettingsDialog) => void): SectionEntry[];
@@ -1,11 +1,10 @@
1
- import { Blocks, Cloud, FolderOpen, Info, Keyboard, KeyRound, LogOut, Puzzle, RefreshCw, RotateCw, Server, ShieldCheck, Smartphone, Trash2, Waypoints, } from 'lucide-react';
1
+ import { Blocks, Cloud, FolderOpen, Info, Keyboard, Puzzle, RefreshCw, RotateCw, Server, ShieldCheck, Trash2, Waypoints } from 'lucide-react';
2
2
  import * as React from 'react';
3
3
  import { useDevice } from '../device/device.js';
4
4
  import { ExtensionBoundary } from '../extension/extension-view.js';
5
5
  import { WebLabelUtil } from '../extension/web-extension-protocol.js';
6
6
  import { useNotices, useSettings, useWebExtensions, useWorkbench } from '../hooks.js';
7
7
  import { useLanguage, useT } from '../i18n/use-t.js';
8
- import { WorkbenchUtil } from '../workbench-util.js';
9
8
  import { AccessSettings, useAccess } from './access-view.js';
10
9
  import { BusyMark } from './busy.js';
11
10
  import { EnvironmentSettings, useGateway } from './environment-view.js';
@@ -23,12 +22,12 @@ import { SignInSetupSettings, useSignInConfig } from './sign-in-setup.js';
23
22
  * those built in, those of extensions where they ask, the computers and services Ta reaches, who may come in, the
24
23
  * keys, and what is about Ta and this computer.
25
24
  */
26
- export function useMoreSections(onClose, onDialog) {
25
+ export function useMoreSections(onDialog) {
27
26
  var _a, _b;
28
27
  const t = useT();
29
28
  const language = useLanguage();
30
29
  const [{ settings }, store] = useSettings();
31
- const [workbench, bench] = useWorkbench();
30
+ const [workbench] = useWorkbench();
32
31
  const [{ extensions, settingsSections }, host] = useWebExtensions();
33
32
  const packageList = usePackages();
34
33
  const builtinPackages = packageList.packages.filter(pkg => pkg.origin === 'builtin');
@@ -37,10 +36,8 @@ export function useMoreSections(onClose, onDialog) {
37
36
  const signInConfig = useSignInConfig();
38
37
  const gateway = useGateway();
39
38
  const restartTa = useRestartTa();
40
- // As the menu of the account (useAccountEntries): a finger has no keys to learn; a phone is not the computer
41
- // that pairs phones, and signs out at the foot of Me.
39
+ // A finger has no keys to learn.
42
40
  const touch = useDevice(device => device.touch);
43
- const handheld = useDevice(device => device.handheld);
44
41
  // What runs, one thing at a time: its control turns (Switch, IconButton busy), the others wait.
45
42
  const [busy, setBusy] = React.useState();
46
43
  const run = (key, action, done) => {
@@ -185,14 +182,36 @@ export function useMoreSections(onClose, onDialog) {
185
182
  id: 'shortcuts',
186
183
  title: t('ta.settings.shortcuts'),
187
184
  icon: Keyboard,
185
+ // Last of General, with About, after those of extensions there.
186
+ order: 900,
188
187
  rows: SHORTCUTS.map(shortcut => row(`key:${shortcut.keys}`, [t(shortcut.label), shortcut.keys, t('ta.settings.shortcuts')], React.createElement(Row, { label: t(shortcut.label) },
189
188
  React.createElement(Keys, { keys: shortcut.keys })))),
190
189
  },
191
190
  ]),
191
+ // Where new chats open: how Ta works, beside its model and tools.
192
+ ...(workbench.server
193
+ ? [
194
+ {
195
+ id: 'directory',
196
+ title: t('ta.settings.cwd'),
197
+ icon: FolderOpen,
198
+ group: 'ta',
199
+ order: 50,
200
+ rows: [
201
+ row('cwd', [t('ta.settings.cwd'), workbench.server.cwd], React.createElement(Row, { label: t('ta.settings.cwd'), description: t('ta.settings.cwdDescription', { path: workbench.server.cwd }) },
202
+ React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('directory') },
203
+ React.createElement(Icon, { icon: FolderOpen, size: 15 }),
204
+ " ",
205
+ t('ta.settings.cwdChange')))),
206
+ ],
207
+ },
208
+ ]
209
+ : []),
192
210
  {
193
211
  id: 'about',
194
212
  title: t('ta.settings.about'),
195
213
  icon: Info,
214
+ order: 1000,
196
215
  rows: workbench.server
197
216
  ? [
198
217
  row('version', [t('ta.settings.version'), 'version'], React.createElement(Row, { label: t('ta.settings.version'), description: restartTa.update
@@ -209,37 +228,6 @@ export function useMoreSections(onClose, onDialog) {
209
228
  ]
210
229
  : []),
211
230
  row('settings-files', [t('ta.settings.files'), 'settings.json', 'models.json', 'JSON'], React.createElement(SettingsFilesRow, null)),
212
- row('cwd', [t('ta.settings.cwd'), workbench.server.cwd], React.createElement(Row, { label: t('ta.settings.cwd'), description: t('ta.settings.cwdDescription', { path: workbench.server.cwd }) },
213
- React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('directory') },
214
- React.createElement(Icon, { icon: FolderOpen, size: 15 }),
215
- " ",
216
- t('ta.settings.cwdChange')))),
217
- row('accounts', [t('ta.settings.accounts'), t('ta.settings.accountsDescription')], React.createElement(Row, { label: t('ta.settings.accounts'), description: t('ta.settings.accountsDescription') },
218
- React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('accounts') },
219
- React.createElement(Icon, { icon: KeyRound, size: 15 }),
220
- " ",
221
- t('ta.settings.manageAccounts')))),
222
- ...(WorkbenchUtil.isApp() || handheld
223
- ? []
224
- : [
225
- row('relay', [t('ta.settings.relay'), t('ta.settings.relayDescription')], React.createElement(Row, { label: t('ta.settings.relay'), description: t('ta.settings.relayDescription') },
226
- React.createElement("button", { type: "button", className: "ta-button", onClick: () => onDialog('relay') },
227
- React.createElement(Icon, { icon: Smartphone, size: 15 }),
228
- " ",
229
- t('ta.settings.manageAccounts')))),
230
- ]),
231
- ...(handheld
232
- ? []
233
- : [
234
- row('signOut', [t('ta.settings.signOut')], React.createElement(Row, { label: t('ta.settings.signOut') },
235
- React.createElement("button", { type: "button", className: "ta-button ta-danger", onClick: () => {
236
- onClose();
237
- bench.signOut();
238
- } },
239
- React.createElement(Icon, { icon: LogOut, size: 15 }),
240
- " ",
241
- t('ta.settings.signOut')))),
242
- ]),
243
231
  ]
244
232
  : [],
245
233
  },
@@ -248,13 +236,14 @@ export function useMoreSections(onClose, onDialog) {
248
236
  }
249
237
  /** A section an extension added (WebExtensionAPI.registerSettings): its rows as Ta's, each control in a boundary of its own. */
250
238
  function extensionSection({ id, section }) {
251
- var _a;
239
+ var _a, _b;
252
240
  const title = WebLabelUtil.text(section.title);
253
241
  return {
254
242
  id: `extension-${id.replace(/[^\w-]+/g, '-')}`,
255
243
  title,
256
244
  icon: (_a = section.icon) !== null && _a !== void 0 ? _a : Puzzle,
257
245
  group: section.group && SETTINGS_GROUPS.some(group => group.id === section.group) ? section.group : 'extensions',
246
+ order: (_b = section.order) !== null && _b !== void 0 ? _b : 100,
258
247
  rows: section.rows.map(item => {
259
248
  const label = WebLabelUtil.text(item.label);
260
249
  const description = item.description === undefined ? undefined : WebLabelUtil.text(item.description);
@@ -10,6 +10,8 @@ export interface SectionEntry {
10
10
  rows: RowEntry[];
11
11
  /** The part it is in; default `general`. */
12
12
  group?: WebSettingsGroup;
13
+ /** Smaller first in its part, in the order given for the same; default 0, an extension's 100 (WebSettingsSection.order). */
14
+ order?: number;
13
15
  /** A setting of pi's files, of the user or of the project: under the scope of its part (Part.lead). */
14
16
  scoped?: boolean;
15
17
  }
@@ -21,6 +23,6 @@ export interface Part {
21
23
  lead?: React.ReactNode;
22
24
  }
23
25
  /** What a row of the settings opens over them. */
24
- export type SettingsDialog = 'accounts' | 'directory' | 'relay';
26
+ export type SettingsDialog = 'directory';
25
27
  /** The sections of the page and of ta, by part, with their rows. */
26
- export declare function useParts(scope: TaSettingsScope, onScope: (scope: TaSettingsScope) => void, onClose: () => void, onDialog: (dialog: SettingsDialog) => void): Part[];
28
+ export declare function useParts(scope: TaSettingsScope, onScope: (scope: TaSettingsScope) => void, onDialog: (dialog: SettingsDialog) => void): Part[];
@@ -12,13 +12,13 @@ import { useNavigation } from './app-nav.js';
12
12
  import { Loading } from './loading.js';
13
13
  import { SettingsModelPicker } from './model-picker.js';
14
14
  import { DIAGRAM_STYLE_CHOICES, FONT_SIZES, GROUP_ICONS, LANGUAGES, navigationRows, SETTINGS_GROUPS, THEMES } from './settings-choices.js';
15
- import { ChoiceRow, Row, row, Segmented, Switch } from './settings-controls.js';
15
+ import { ChoiceRow, Row, row, Segmented, SettingsViewUtil, Switch } from './settings-controls.js';
16
16
  import { useMoreSections } from './settings-more.js';
17
17
  import { TrustedDomains } from './trusted-domains.js';
18
18
  import { VoicePicker } from './voice-picker.js';
19
19
  import { VoiceServices } from './voice-services.js';
20
20
  /** The sections of the page and of ta, by part, with their rows. */
21
- export function useParts(scope, onScope, onClose, onDialog) {
21
+ export function useParts(scope, onScope, onDialog) {
22
22
  var _a;
23
23
  const t = useT();
24
24
  const [{ settings }, store] = useSettings();
@@ -27,7 +27,7 @@ export function useParts(scope, onScope, onClose, onDialog) {
27
27
  const [{ cwd, views }] = useWebExtensions();
28
28
  const navigation = useNavigation(views);
29
29
  const agent = useAgentSettings(cwd !== null && cwd !== void 0 ? cwd : (_a = workbench.server) === null || _a === void 0 ? void 0 : _a.cwd);
30
- const more = useMoreSections(onClose, onDialog);
30
+ const more = useMoreSections(onDialog);
31
31
  const handheld = useDevice(device => device.handheld);
32
32
  const web = [
33
33
  {
@@ -72,6 +72,7 @@ export function useParts(scope, onScope, onClose, onDialog) {
72
72
  id: 'chats',
73
73
  title: t('ta.settings.chats'),
74
74
  icon: List,
75
+ group: 'chats',
75
76
  rows: [
76
77
  row('chat-fold', [t('ta.settings.chatFold'), t('ta.settings.chatFoldHint')], React.createElement(Row, { label: t('ta.settings.chatFold'), description: t('ta.settings.chatFoldHint'), stacked: true },
77
78
  React.createElement(Segmented, { label: t('ta.settings.chatFold'), value: String(settings.chatFoldDays), choices: CHAT_FOLD_CHOICES.map(days => ({
@@ -91,6 +92,9 @@ export function useParts(scope, onScope, onClose, onDialog) {
91
92
  id: 'links',
92
93
  title: t('ta.settings.links'),
93
94
  icon: Link2,
95
+ group: 'chats',
96
+ // After the notices and who answers others, before what is kept.
97
+ order: 30,
94
98
  rows: [
95
99
  row('trusted-domains', [t('ta.settings.trustedDomains'), t('ta.settings.trustedDomainsHint'), ...settings.trustedDomains], React.createElement(TrustedDomains, null)),
96
100
  ],
@@ -120,6 +124,7 @@ export function useParts(scope, onScope, onClose, onDialog) {
120
124
  id: 'voice',
121
125
  title: t('ta.settings.voice'),
122
126
  icon: Volume2,
127
+ group: 'voice',
123
128
  rows: [
124
129
  row('speak', [t('ta.settings.speak'), t('ta.settings.speakHint')], React.createElement(Row, { label: t('ta.settings.speak'), description: t('ta.settings.speakHint') },
125
130
  React.createElement(Switch, { label: t('ta.settings.speak'), checked: settings.speak, onChange: speak => store.update({ speak }) }))),
@@ -127,6 +132,8 @@ export function useParts(scope, onScope, onClose, onDialog) {
127
132
  React.createElement(Switch, { label: t('ta.settings.speakTalk'), checked: settings.speakTalk, onChange: speakTalk => store.update({ speakTalk }) }))),
128
133
  row('callCaptions', [t('ta.settings.callCaptions'), t('ta.settings.callCaptionsHint')], React.createElement(Row, { label: t('ta.settings.callCaptions'), description: t('ta.settings.callCaptionsHint') },
129
134
  React.createElement(Switch, { label: t('ta.settings.callCaptions'), checked: settings.callCaptions, onChange: callCaptions => store.update({ callCaptions }) }))),
135
+ row('callFace', [t('ta.settings.callFace'), t('ta.settings.callFaceHint')], React.createElement(Row, { label: t('ta.settings.callFace'), description: t('ta.settings.callFaceHint') },
136
+ React.createElement(Switch, { label: t('ta.settings.callFace'), checked: settings.callFace, onChange: callFace => store.update({ callFace }) }))),
130
137
  ...(Voice.canSpeak()
131
138
  ? [
132
139
  row('voiceName', [t('ta.settings.voiceName'), t('ta.settings.voiceNameHint')], React.createElement(Row, { label: t('ta.settings.voiceName'), description: t('ta.settings.voiceNameHint'), stacked: true },
@@ -170,11 +177,11 @@ export function useParts(scope, onScope, onClose, onDialog) {
170
177
  }); });
171
178
  // Ta's scoped sections first in its part, under their scope; each part's own sections before those of extensions.
172
179
  const sections = [...web.filter(entry => entry.group !== 'ta'), ...ta, ...web.filter(entry => entry.group === 'ta'), ...more];
173
- return SETTINGS_GROUPS.map(group => ({
174
- id: group.id,
175
- title: t(group.title),
176
- sections: sections.filter(entry => { var _a; return ((_a = entry.group) !== null && _a !== void 0 ? _a : 'general') === group.id; }),
177
- ...(group.id === 'ta' ? { lead } : {}),
178
- })).filter(part => part.sections.length > 0);
180
+ return SettingsViewUtil.parts(sections, SETTINGS_GROUPS).map(({ id, sections: own }) => { var _a; var _b; return ({
181
+ id,
182
+ title: t((_b = (_a = SETTINGS_GROUPS.find(group => group.id === id)) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : 'ta.settings.general'),
183
+ sections: own,
184
+ ...(id === 'ta' ? { lead } : {}),
185
+ }); });
179
186
  }
180
187
  //# sourceMappingURL=settings-parts.js.map
@@ -4,13 +4,11 @@ import { useDevice } from '../device/device.js';
4
4
  import { useT } from '../i18n/use-t.js';
5
5
  import { ScreenUtil } from '../screen/screen-protocol.js';
6
6
  import { useScreenPart } from '../screen/use-screen-part.js';
7
- import { AuthDialog } from './auth-view.js';
8
7
  import { EmptyState } from './empty-state.js';
9
8
  import { Icon, IconButton } from './icon.js';
10
9
  import { ListGroup, ListRow } from './list-rows.js';
11
10
  import { Loading } from './loading.js';
12
11
  import { PhoneStack } from './phone-shell.js';
13
- import { RelayDialog } from './relay-view.js';
14
12
  import { SettingsViewUtil } from './settings-controls.js';
15
13
  import { useParts } from './settings-parts.js';
16
14
  import { WorkingDirectoryPicker } from './working-directory.js';
@@ -28,7 +26,7 @@ export function SettingsView({ section, onClose, onMenu, onBack }) {
28
26
  const [scope, setScope] = React.useState('user');
29
27
  const [dialog, setDialog] = React.useState();
30
28
  const closeDialog = React.useCallback(() => setDialog(undefined), []);
31
- const parts = useParts(scope, setScope, onClose, setDialog);
29
+ const parts = useParts(scope, setScope, setDialog);
32
30
  // What an agent reads of the settings and where it goes in them (docs/design/ta-app-use.md 3); the rows are read as they show.
33
31
  useScreenPart({
34
32
  id: 'settings',
@@ -67,9 +65,7 @@ export function SettingsView({ section, onClose, onMenu, onBack }) {
67
65
  const props = { parts, query, search, section };
68
66
  return (React.createElement("section", { className: "ta-settings-page", "aria-label": t('ta.settings'), ...ScreenUtil.part('settings') },
69
67
  handheld ? React.createElement(PhoneSettings, { ...props, onBack: onBack !== null && onBack !== void 0 ? onBack : onClose }) : React.createElement(WideSettings, { ...props, onClose: onClose, onMenu: onMenu, onBack: onBack }),
70
- dialog === 'accounts' && React.createElement(AuthDialog, { onClose: closeDialog }),
71
- dialog === 'directory' && React.createElement(WorkingDirectoryPicker, { onClose: closeDialog }),
72
- dialog === 'relay' && React.createElement(RelayDialog, { onClose: closeDialog })));
68
+ dialog === 'directory' && React.createElement(WorkingDirectoryPicker, { onClose: closeDialog })));
73
69
  }
74
70
  /** The rows of a section, in a card. */
75
71
  function SectionRows({ entry }) {