@celljs/ta-web 4.15.2 → 4.17.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 (601) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
  4. package/esm/browser/assistant/assistant-ask-book.js +96 -0
  5. package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
  6. package/esm/browser/assistant/assistant-conversation.js +351 -0
  7. package/esm/browser/assistant/assistant-export.js +6 -7
  8. package/esm/browser/assistant/assistant-extension.d.ts +3 -2
  9. package/esm/browser/assistant/assistant-extension.js +57 -4
  10. package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
  11. package/esm/browser/assistant/assistant-role.d.ts +22 -4
  12. package/esm/browser/assistant/assistant-role.js +29 -7
  13. package/esm/browser/assistant/assistant-state.d.ts +5 -1
  14. package/esm/browser/assistant/assistant-state.js +11 -0
  15. package/esm/browser/assistant/assistant-task-source.js +7 -1
  16. package/esm/browser/assistant/assistant-task-util.d.ts +19 -7
  17. package/esm/browser/assistant/assistant-task-util.js +73 -20
  18. package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
  19. package/esm/browser/assistant/assistant-tasks.js +0 -2
  20. package/esm/browser/assistant/assistant-thread.d.ts +22 -0
  21. package/esm/browser/assistant/assistant-thread.js +108 -0
  22. package/esm/browser/assistant/assistant-view.js +77 -126
  23. package/esm/browser/assistant/assistant.d.ts +33 -105
  24. package/esm/browser/assistant/assistant.js +103 -356
  25. package/esm/browser/assistant/chat-task-source.d.ts +58 -0
  26. package/esm/browser/assistant/chat-task-source.js +107 -0
  27. package/esm/browser/assistant/read-aloud.d.ts +34 -0
  28. package/esm/browser/assistant/read-aloud.js +98 -0
  29. package/esm/browser/assistant/realtime-voice.d.ts +77 -0
  30. package/esm/browser/assistant/realtime-voice.js +320 -0
  31. package/esm/browser/assistant/task-views.d.ts +2 -3
  32. package/esm/browser/assistant/task-views.js +20 -16
  33. package/esm/browser/assistant/voice-call-bar.d.ts +60 -0
  34. package/esm/browser/assistant/voice-call-bar.js +260 -0
  35. package/esm/browser/assistant/voice-call.d.ts +175 -0
  36. package/esm/browser/assistant/voice-call.js +366 -0
  37. package/esm/browser/chat/chat-shown.d.ts +78 -0
  38. package/esm/browser/chat/chat-shown.js +262 -0
  39. package/esm/browser/chat/chat-view.js +2 -1
  40. package/esm/browser/chat/chat.d.ts +4 -68
  41. package/esm/browser/chat/chat.js +5 -253
  42. package/esm/browser/chat/draft-model.d.ts +1 -1
  43. package/esm/browser/components/access-view.js +1 -1
  44. package/esm/browser/components/account-menu.js +1 -1
  45. package/esm/browser/components/app-nav.d.ts +3 -1
  46. package/esm/browser/components/app-nav.js +7 -7
  47. package/esm/browser/components/app-shell-hooks.d.ts +11 -2
  48. package/esm/browser/components/app-shell-hooks.js +25 -4
  49. package/esm/browser/components/app-shell-state.d.ts +80 -0
  50. package/esm/browser/components/app-shell-state.js +466 -0
  51. package/esm/browser/components/app-view.js +128 -334
  52. package/esm/browser/components/asks-badge.d.ts +6 -2
  53. package/esm/browser/components/asks-badge.js +7 -3
  54. package/esm/browser/components/auth-pictures.d.ts +2 -2
  55. package/esm/browser/components/auth-pictures.js +13 -1
  56. package/esm/browser/components/auth-view.d.ts +4 -3
  57. package/esm/browser/components/auth-view.js +54 -5
  58. package/esm/browser/components/chat-asks.d.ts +2 -0
  59. package/esm/browser/components/chat-asks.js +8 -0
  60. package/esm/browser/components/chat-busy.d.ts +32 -0
  61. package/esm/browser/components/chat-busy.js +49 -0
  62. package/esm/browser/components/chat-icon.d.ts +6 -0
  63. package/esm/browser/components/chat-icon.js +17 -1
  64. package/esm/browser/components/chat-list-row.d.ts +84 -0
  65. package/esm/browser/components/chat-list-row.js +198 -0
  66. package/esm/browser/components/chat-list-util.d.ts +166 -0
  67. package/esm/browser/components/chat-list-util.js +335 -0
  68. package/esm/browser/components/chat-list.d.ts +11 -148
  69. package/esm/browser/components/chat-list.js +280 -511
  70. package/esm/browser/components/chat-seen.d.ts +7 -0
  71. package/esm/browser/components/chat-seen.js +58 -10
  72. package/esm/browser/components/composer-addon-util.d.ts +1 -1
  73. package/esm/browser/components/composer-addons.d.ts +1 -1
  74. package/esm/browser/components/composer-attachments.d.ts +11 -0
  75. package/esm/browser/components/composer-attachments.js +27 -0
  76. package/esm/browser/components/composer-box-hooks.d.ts +9 -0
  77. package/esm/browser/components/composer-box-hooks.js +138 -0
  78. package/esm/browser/components/composer-box-protocol.d.ts +108 -0
  79. package/esm/browser/components/composer-box-protocol.js +2 -0
  80. package/esm/browser/components/composer-box.d.ts +1 -95
  81. package/esm/browser/components/composer-box.js +49 -156
  82. package/esm/browser/components/composer-target.d.ts +21 -0
  83. package/esm/browser/components/composer-target.js +43 -0
  84. package/esm/browser/components/composer.d.ts +7 -1
  85. package/esm/browser/components/composer.js +13 -9
  86. package/esm/browser/components/context-menu.js +4 -0
  87. package/esm/browser/components/conversation-find.d.ts +27 -0
  88. package/esm/browser/components/conversation-find.js +151 -0
  89. package/esm/browser/components/conversation-scroll-hooks.js +2 -1
  90. package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
  91. package/esm/browser/components/conversation-scroll-util.js +80 -0
  92. package/esm/browser/components/conversation-scroll.d.ts +1 -35
  93. package/esm/browser/components/conversation-scroll.js +2 -81
  94. package/esm/browser/components/conversation-view.d.ts +8 -0
  95. package/esm/browser/components/conversation-view.js +41 -0
  96. package/esm/browser/components/discover-view.d.ts +3 -2
  97. package/esm/browser/components/discover-view.js +31 -26
  98. package/esm/browser/components/dismiss.js +2 -0
  99. package/esm/browser/components/earlier-messages.d.ts +2 -0
  100. package/esm/browser/components/earlier-messages.js +2 -1
  101. package/esm/browser/components/environment-view.js +50 -1
  102. package/esm/browser/components/folder-picker.d.ts +7 -0
  103. package/esm/browser/components/folder-picker.js +90 -20
  104. package/esm/browser/components/gallery.d.ts +1 -1
  105. package/esm/browser/components/gallery.js +57 -14
  106. package/esm/browser/components/host-tag.js +2 -2
  107. package/esm/browser/components/host-view.d.ts +1 -1
  108. package/esm/browser/components/host-view.js +3 -1
  109. package/esm/browser/components/image-menu.d.ts +11 -0
  110. package/esm/browser/components/image-menu.js +29 -0
  111. package/esm/browser/components/image-viewer.d.ts +3 -2
  112. package/esm/browser/components/image-viewer.js +29 -4
  113. package/esm/browser/components/lightbox.js +2 -0
  114. package/esm/browser/components/link-dialog.js +2 -0
  115. package/esm/browser/components/list-rows.d.ts +3 -1
  116. package/esm/browser/components/list-rows.js +2 -1
  117. package/esm/browser/components/markdown.js +5 -0
  118. package/esm/browser/components/media.d.ts +2 -0
  119. package/esm/browser/components/media.js +16 -1
  120. package/esm/browser/components/message-actions.d.ts +1 -1
  121. package/esm/browser/components/message-actions.js +9 -0
  122. package/esm/browser/components/message-footer.d.ts +3 -1
  123. package/esm/browser/components/message-footer.js +3 -2
  124. package/esm/browser/components/message-images.d.ts +41 -0
  125. package/esm/browser/components/message-images.js +120 -0
  126. package/esm/browser/components/message-list.d.ts +4 -100
  127. package/esm/browser/components/message-list.js +10 -447
  128. package/esm/browser/components/message-menu.js +4 -0
  129. package/esm/browser/components/message-steps.d.ts +21 -0
  130. package/esm/browser/components/message-steps.js +182 -0
  131. package/esm/browser/components/message-user.d.ts +54 -0
  132. package/esm/browser/components/message-user.js +169 -0
  133. package/esm/browser/components/model-picker.d.ts +1 -1
  134. package/esm/browser/components/model-picker.js +2 -0
  135. package/esm/browser/components/moved-notice.d.ts +14 -0
  136. package/esm/browser/components/moved-notice.js +60 -0
  137. package/esm/browser/components/nav-places.d.ts +12 -1
  138. package/esm/browser/components/nav-places.js +10 -2
  139. package/esm/browser/components/notice-center.js +36 -1
  140. package/esm/browser/components/notice-face.js +2 -1
  141. package/esm/browser/components/phone-shell.d.ts +4 -3
  142. package/esm/browser/components/phone-shell.js +60 -68
  143. package/esm/browser/components/plus-menu.d.ts +1 -1
  144. package/esm/browser/components/relay-services.d.ts +6 -1
  145. package/esm/browser/components/relay-services.js +109 -2
  146. package/esm/browser/components/relay-view.js +2 -0
  147. package/esm/browser/components/remote-hosts.d.ts +10 -0
  148. package/esm/browser/components/remote-hosts.js +67 -5
  149. package/esm/browser/components/remote-prompts.js +2 -0
  150. package/esm/browser/components/scan-screen.js +7 -0
  151. package/esm/browser/components/screen-navigator-util.d.ts +28 -0
  152. package/esm/browser/components/screen-navigator-util.js +33 -0
  153. package/esm/browser/components/screen-navigator.d.ts +30 -0
  154. package/esm/browser/components/screen-navigator.js +47 -0
  155. package/esm/browser/components/session-settings.d.ts +1 -1
  156. package/esm/browser/components/session-view.js +157 -7
  157. package/esm/browser/components/settings-choices.d.ts +6 -0
  158. package/esm/browser/components/settings-choices.js +8 -0
  159. package/esm/browser/components/settings-more.d.ts +7 -0
  160. package/esm/browser/components/settings-more.js +263 -0
  161. package/esm/browser/components/settings-parts.d.ts +8 -3
  162. package/esm/browser/components/settings-parts.js +31 -249
  163. package/esm/browser/components/settings-view.js +43 -15
  164. package/esm/browser/components/stop-times.js +1 -0
  165. package/esm/browser/components/surface-flyout.js +2 -0
  166. package/esm/browser/components/unseen-drop.d.ts +10 -4
  167. package/esm/browser/components/unseen-drop.js +9 -8
  168. package/esm/browser/components/use-seen-chats.js +1 -1
  169. package/esm/browser/components/voice-services.d.ts +6 -0
  170. package/esm/browser/components/voice-services.js +137 -0
  171. package/esm/browser/components/voice-talk.d.ts +23 -6
  172. package/esm/browser/components/voice-talk.js +46 -11
  173. package/esm/browser/components/web-composer.d.ts +1 -1
  174. package/esm/browser/components/web-composer.js +2 -2
  175. package/esm/browser/components/web-dialog.js +2 -0
  176. package/esm/browser/device/back-stack.d.ts +89 -11
  177. package/esm/browser/device/back-stack.js +200 -29
  178. package/esm/browser/device/device-protocol.d.ts +1 -1
  179. package/esm/browser/device/device-protocol.js +1 -1
  180. package/esm/browser/device/own-gestures.d.ts +1 -1
  181. package/esm/browser/device/pull-down.js +3 -1
  182. package/esm/browser/device/row-swipe.js +3 -1
  183. package/esm/browser/device/sheet-swipe.d.ts +1 -179
  184. package/esm/browser/device/sheet-swipe.js +3 -433
  185. package/esm/browser/device/swipe-finger.d.ts +31 -0
  186. package/esm/browser/device/swipe-finger.js +83 -0
  187. package/esm/browser/device/swipe-settle.d.ts +52 -0
  188. package/esm/browser/device/swipe-settle.js +170 -0
  189. package/esm/browser/device/swipe-util.d.ts +97 -0
  190. package/esm/browser/device/swipe-util.js +183 -0
  191. package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
  192. package/esm/browser/drafts/drafts-protocol.js +75 -0
  193. package/esm/browser/drafts/drafts.d.ts +21 -0
  194. package/esm/browser/drafts/drafts.js +91 -0
  195. package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
  196. package/esm/browser/drafts/use-composer-draft.js +108 -0
  197. package/esm/browser/extension/icons.js +25 -4
  198. package/esm/browser/extension/web-api-components.d.ts +13 -0
  199. package/esm/browser/extension/web-api-contributions.d.ts +125 -0
  200. package/esm/browser/extension/web-extension-api.d.ts +88 -5
  201. package/esm/browser/extension/web-extension-context.d.ts +5 -0
  202. package/esm/browser/extension/web-extension-context.js +60 -7
  203. package/esm/browser/extension/web-extension-protocol.d.ts +19 -1
  204. package/esm/browser/extension/web-extension-protocol.js +3 -0
  205. package/esm/browser/extension/web-extension-run.d.ts +5 -2
  206. package/esm/browser/extension/web-extension-run.js +13 -1
  207. package/esm/browser/extension/web-extensions-running.d.ts +93 -0
  208. package/esm/browser/extension/web-extensions-running.js +339 -0
  209. package/esm/browser/extension/web-extensions.d.ts +6 -82
  210. package/esm/browser/extension/web-extensions.js +10 -319
  211. package/esm/browser/extension/web-pages.js +1 -0
  212. package/esm/browser/extension/web-session-notices.js +6 -1
  213. package/esm/browser/extension/web-tasks.d.ts +2 -0
  214. package/esm/browser/extension/web-tasks.js +6 -0
  215. package/esm/browser/extension/web-view-util.d.ts +2 -1
  216. package/esm/browser/extension/web-view-util.js +4 -1
  217. package/esm/browser/gateway/console-parts.d.ts +4 -12
  218. package/esm/browser/gateway/console-parts.js +42 -125
  219. package/esm/browser/gateway/console-tenant.js +3 -2
  220. package/esm/browser/gateway/console-trend.d.ts +11 -0
  221. package/esm/browser/gateway/console-trend.js +115 -0
  222. package/esm/browser/gateway/console-util.js +2 -2
  223. package/esm/browser/gateway/console-view.js +49 -3
  224. package/esm/browser/i18n/locales.d.ts +170 -6
  225. package/esm/browser/i18n/messages-ja.js +171 -7
  226. package/esm/browser/i18n/messages-zh-tw.js +171 -7
  227. package/esm/browser/i18n/messages.d.ts +167 -3
  228. package/esm/browser/i18n/messages.js +342 -14
  229. package/esm/browser/index.d.ts +17 -0
  230. package/esm/browser/index.js +17 -0
  231. package/esm/browser/notices/notices-protocol.d.ts +12 -0
  232. package/esm/browser/notices/notices.js +7 -4
  233. package/esm/browser/offline/device-values.d.ts +2 -0
  234. package/esm/browser/offline/device-values.js +6 -1
  235. package/esm/browser/screen/page-answers.d.ts +42 -0
  236. package/esm/browser/screen/page-answers.js +89 -0
  237. package/esm/browser/screen/screen-protocol.d.ts +112 -0
  238. package/esm/browser/screen/screen-protocol.js +45 -0
  239. package/esm/browser/screen/screen.d.ts +20 -0
  240. package/esm/browser/screen/screen.js +122 -0
  241. package/esm/browser/screen/use-screen-part.d.ts +6 -0
  242. package/esm/browser/screen/use-screen-part.js +14 -0
  243. package/esm/browser/settings/settings-protocol.d.ts +5 -1
  244. package/esm/browser/settings/settings-protocol.js +6 -2
  245. package/esm/browser/share/shared-extensions.d.ts +29 -0
  246. package/esm/browser/share/shared-extensions.js +145 -0
  247. package/esm/browser/share/shared-link.d.ts +11 -0
  248. package/esm/browser/share/shared-link.js +38 -0
  249. package/esm/browser/share/shared-page.d.ts +5 -0
  250. package/esm/browser/share/shared-page.js +137 -0
  251. package/esm/browser/state/state-protocol.d.ts +14 -0
  252. package/esm/browser/state/state-protocol.js +18 -0
  253. package/esm/browser/state/state.d.ts +10 -2
  254. package/esm/browser/state/state.js +19 -3
  255. package/esm/browser/style/base.d.ts +1 -1
  256. package/esm/browser/style/base.js +4 -0
  257. package/esm/browser/style/chat-list.d.ts +2 -0
  258. package/esm/browser/style/chat-list.js +153 -0
  259. package/esm/browser/style/conversation-column.d.ts +2 -0
  260. package/esm/browser/style/conversation-column.js +250 -0
  261. package/esm/browser/style/conversation.d.ts +1 -1
  262. package/esm/browser/style/conversation.js +24 -8
  263. package/esm/browser/style/dialogs.d.ts +2 -0
  264. package/esm/browser/style/dialogs.js +163 -0
  265. package/esm/browser/style/layout.d.ts +2 -2
  266. package/esm/browser/style/layout.js +1 -525
  267. package/esm/browser/style/pages.d.ts +1 -1
  268. package/esm/browser/style/pages.js +10 -3
  269. package/esm/browser/style/phone.d.ts +1 -1
  270. package/esm/browser/style/phone.js +6 -2
  271. package/esm/browser/style/shared.d.ts +2 -0
  272. package/esm/browser/style/shared.js +23 -0
  273. package/esm/browser/style/shell.d.ts +1 -1
  274. package/esm/browser/style/shell.js +47 -0
  275. package/esm/browser/style/tasks.d.ts +1 -1
  276. package/esm/browser/style/tasks.js +13 -8
  277. package/esm/browser/style.js +8 -0
  278. package/esm/browser/util/gallery.d.ts +24 -2
  279. package/esm/browser/util/gallery.js +82 -2
  280. package/esm/browser/util/image-copy.d.ts +16 -0
  281. package/esm/browser/util/image-copy.js +57 -0
  282. package/esm/browser/util/message.d.ts +5 -0
  283. package/esm/browser/util/message.js +14 -0
  284. package/esm/browser/util/process.d.ts +6 -2
  285. package/esm/browser/util/process.js +6 -2
  286. package/esm/browser/util/spoken.d.ts +24 -0
  287. package/esm/browser/util/spoken.js +83 -0
  288. package/esm/browser/util/transcript.d.ts +22 -0
  289. package/esm/browser/util/transcript.js +46 -0
  290. package/esm/browser/util/voice.d.ts +5 -1
  291. package/esm/browser/util/voice.js +6 -1
  292. package/esm/browser/workbench-hosts.d.ts +36 -0
  293. package/esm/browser/workbench-hosts.js +120 -0
  294. package/esm/browser/workbench-lists.d.ts +33 -0
  295. package/esm/browser/workbench-lists.js +128 -0
  296. package/esm/browser/workbench-protocol.d.ts +14 -1
  297. package/esm/browser/workbench-services.d.ts +49 -0
  298. package/esm/browser/workbench-services.js +120 -0
  299. package/esm/browser/workbench-util.d.ts +1 -1
  300. package/esm/browser/workbench.d.ts +6 -89
  301. package/esm/browser/workbench.js +26 -336
  302. package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
  303. package/lib/browser/assistant/assistant-ask-book.js +100 -0
  304. package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
  305. package/lib/browser/assistant/assistant-conversation.js +355 -0
  306. package/lib/browser/assistant/assistant-export.js +6 -7
  307. package/lib/browser/assistant/assistant-extension.d.ts +3 -2
  308. package/lib/browser/assistant/assistant-extension.js +55 -2
  309. package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
  310. package/lib/browser/assistant/assistant-role.d.ts +22 -4
  311. package/lib/browser/assistant/assistant-role.js +30 -8
  312. package/lib/browser/assistant/assistant-state.d.ts +5 -1
  313. package/lib/browser/assistant/assistant-state.js +11 -0
  314. package/lib/browser/assistant/assistant-task-source.js +7 -1
  315. package/lib/browser/assistant/assistant-task-util.d.ts +19 -7
  316. package/lib/browser/assistant/assistant-task-util.js +73 -20
  317. package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
  318. package/lib/browser/assistant/assistant-tasks.js +1 -3
  319. package/lib/browser/assistant/assistant-thread.d.ts +23 -0
  320. package/lib/browser/assistant/assistant-thread.js +144 -0
  321. package/lib/browser/assistant/assistant-view.js +74 -123
  322. package/lib/browser/assistant/assistant.d.ts +33 -105
  323. package/lib/browser/assistant/assistant.js +100 -353
  324. package/lib/browser/assistant/chat-task-source.d.ts +59 -0
  325. package/lib/browser/assistant/chat-task-source.js +111 -0
  326. package/lib/browser/assistant/read-aloud.d.ts +35 -0
  327. package/lib/browser/assistant/read-aloud.js +102 -0
  328. package/lib/browser/assistant/realtime-voice.d.ts +78 -0
  329. package/lib/browser/assistant/realtime-voice.js +324 -0
  330. package/lib/browser/assistant/task-views.d.ts +2 -3
  331. package/lib/browser/assistant/task-views.js +19 -15
  332. package/lib/browser/assistant/voice-call-bar.d.ts +61 -0
  333. package/lib/browser/assistant/voice-call-bar.js +306 -0
  334. package/lib/browser/assistant/voice-call.d.ts +176 -0
  335. package/lib/browser/assistant/voice-call.js +370 -0
  336. package/lib/browser/chat/chat-shown.d.ts +79 -0
  337. package/lib/browser/chat/chat-shown.js +266 -0
  338. package/lib/browser/chat/chat-view.js +2 -1
  339. package/lib/browser/chat/chat.d.ts +4 -68
  340. package/lib/browser/chat/chat.js +3 -251
  341. package/lib/browser/chat/draft-model.d.ts +1 -1
  342. package/lib/browser/components/access-view.js +2 -2
  343. package/lib/browser/components/account-menu.js +1 -1
  344. package/lib/browser/components/app-nav.d.ts +3 -1
  345. package/lib/browser/components/app-nav.js +7 -7
  346. package/lib/browser/components/app-shell-hooks.d.ts +11 -2
  347. package/lib/browser/components/app-shell-hooks.js +26 -5
  348. package/lib/browser/components/app-shell-state.d.ts +81 -0
  349. package/lib/browser/components/app-shell-state.js +502 -0
  350. package/lib/browser/components/app-view.js +120 -326
  351. package/lib/browser/components/asks-badge.d.ts +6 -2
  352. package/lib/browser/components/asks-badge.js +7 -3
  353. package/lib/browser/components/auth-pictures.d.ts +2 -2
  354. package/lib/browser/components/auth-pictures.js +13 -1
  355. package/lib/browser/components/auth-view.d.ts +4 -3
  356. package/lib/browser/components/auth-view.js +53 -4
  357. package/lib/browser/components/chat-asks.d.ts +2 -0
  358. package/lib/browser/components/chat-asks.js +8 -0
  359. package/lib/browser/components/chat-busy.d.ts +33 -0
  360. package/lib/browser/components/chat-busy.js +52 -0
  361. package/lib/browser/components/chat-icon.d.ts +6 -0
  362. package/lib/browser/components/chat-icon.js +17 -1
  363. package/lib/browser/components/chat-list-row.d.ts +85 -0
  364. package/lib/browser/components/chat-list-row.js +236 -0
  365. package/lib/browser/components/chat-list-util.d.ts +167 -0
  366. package/lib/browser/components/chat-list-util.js +338 -0
  367. package/lib/browser/components/chat-list.d.ts +11 -148
  368. package/lib/browser/components/chat-list.js +297 -530
  369. package/lib/browser/components/chat-seen.d.ts +7 -0
  370. package/lib/browser/components/chat-seen.js +58 -10
  371. package/lib/browser/components/composer-addon-util.d.ts +1 -1
  372. package/lib/browser/components/composer-addons.d.ts +1 -1
  373. package/lib/browser/components/composer-attachments.d.ts +12 -0
  374. package/lib/browser/components/composer-attachments.js +64 -0
  375. package/lib/browser/components/composer-box-hooks.d.ts +10 -0
  376. package/lib/browser/components/composer-box-hooks.js +178 -0
  377. package/lib/browser/components/composer-box-protocol.d.ts +109 -0
  378. package/lib/browser/components/composer-box-protocol.js +3 -0
  379. package/lib/browser/components/composer-box.d.ts +1 -95
  380. package/lib/browser/components/composer-box.js +51 -159
  381. package/lib/browser/components/composer-target.d.ts +22 -0
  382. package/lib/browser/components/composer-target.js +46 -0
  383. package/lib/browser/components/composer.d.ts +7 -1
  384. package/lib/browser/components/composer.js +15 -11
  385. package/lib/browser/components/context-menu.js +4 -0
  386. package/lib/browser/components/conversation-find.d.ts +28 -0
  387. package/lib/browser/components/conversation-find.js +188 -0
  388. package/lib/browser/components/conversation-scroll-hooks.js +3 -2
  389. package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
  390. package/lib/browser/components/conversation-scroll-util.js +85 -1
  391. package/lib/browser/components/conversation-scroll.d.ts +1 -35
  392. package/lib/browser/components/conversation-scroll.js +20 -100
  393. package/lib/browser/components/conversation-view.d.ts +9 -0
  394. package/lib/browser/components/conversation-view.js +77 -0
  395. package/lib/browser/components/discover-view.d.ts +3 -2
  396. package/lib/browser/components/discover-view.js +30 -25
  397. package/lib/browser/components/dismiss.js +2 -0
  398. package/lib/browser/components/earlier-messages.d.ts +2 -0
  399. package/lib/browser/components/earlier-messages.js +2 -1
  400. package/lib/browser/components/environment-view.js +49 -0
  401. package/lib/browser/components/folder-picker.d.ts +7 -0
  402. package/lib/browser/components/folder-picker.js +89 -19
  403. package/lib/browser/components/gallery.d.ts +1 -1
  404. package/lib/browser/components/gallery.js +56 -13
  405. package/lib/browser/components/host-tag.js +1 -1
  406. package/lib/browser/components/host-view.d.ts +1 -1
  407. package/lib/browser/components/host-view.js +4 -2
  408. package/lib/browser/components/image-menu.d.ts +12 -0
  409. package/lib/browser/components/image-menu.js +65 -0
  410. package/lib/browser/components/image-viewer.d.ts +3 -2
  411. package/lib/browser/components/image-viewer.js +28 -3
  412. package/lib/browser/components/lightbox.js +2 -0
  413. package/lib/browser/components/link-dialog.js +2 -0
  414. package/lib/browser/components/list-rows.d.ts +3 -1
  415. package/lib/browser/components/list-rows.js +2 -1
  416. package/lib/browser/components/markdown.js +5 -0
  417. package/lib/browser/components/media.d.ts +2 -0
  418. package/lib/browser/components/media.js +17 -1
  419. package/lib/browser/components/message-actions.d.ts +1 -1
  420. package/lib/browser/components/message-actions.js +9 -0
  421. package/lib/browser/components/message-footer.d.ts +3 -1
  422. package/lib/browser/components/message-footer.js +2 -1
  423. package/lib/browser/components/message-images.d.ts +42 -0
  424. package/lib/browser/components/message-images.js +157 -0
  425. package/lib/browser/components/message-list.d.ts +4 -100
  426. package/lib/browser/components/message-list.js +11 -455
  427. package/lib/browser/components/message-menu.js +4 -0
  428. package/lib/browser/components/message-steps.d.ts +22 -0
  429. package/lib/browser/components/message-steps.js +218 -0
  430. package/lib/browser/components/message-user.d.ts +55 -0
  431. package/lib/browser/components/message-user.js +211 -0
  432. package/lib/browser/components/model-picker.d.ts +1 -1
  433. package/lib/browser/components/model-picker.js +2 -0
  434. package/lib/browser/components/moved-notice.d.ts +15 -0
  435. package/lib/browser/components/moved-notice.js +96 -0
  436. package/lib/browser/components/nav-places.d.ts +12 -1
  437. package/lib/browser/components/nav-places.js +12 -3
  438. package/lib/browser/components/notice-center.js +35 -0
  439. package/lib/browser/components/notice-face.js +7 -6
  440. package/lib/browser/components/phone-shell.d.ts +4 -3
  441. package/lib/browser/components/phone-shell.js +59 -67
  442. package/lib/browser/components/plus-menu.d.ts +1 -1
  443. package/lib/browser/components/relay-services.d.ts +6 -1
  444. package/lib/browser/components/relay-services.js +107 -0
  445. package/lib/browser/components/relay-view.js +2 -0
  446. package/lib/browser/components/remote-hosts.d.ts +10 -0
  447. package/lib/browser/components/remote-hosts.js +67 -4
  448. package/lib/browser/components/remote-prompts.js +2 -0
  449. package/lib/browser/components/scan-screen.js +7 -0
  450. package/lib/browser/components/screen-navigator-util.d.ts +29 -0
  451. package/lib/browser/components/screen-navigator-util.js +36 -0
  452. package/lib/browser/components/screen-navigator.d.ts +31 -0
  453. package/lib/browser/components/screen-navigator.js +83 -0
  454. package/lib/browser/components/session-settings.d.ts +1 -1
  455. package/lib/browser/components/session-view.js +157 -7
  456. package/lib/browser/components/settings-choices.d.ts +7 -1
  457. package/lib/browser/components/settings-choices.js +9 -1
  458. package/lib/browser/components/settings-more.d.ts +8 -0
  459. package/lib/browser/components/settings-more.js +299 -0
  460. package/lib/browser/components/settings-parts.d.ts +8 -3
  461. package/lib/browser/components/settings-parts.js +27 -245
  462. package/lib/browser/components/settings-view.js +43 -15
  463. package/lib/browser/components/stop-times.js +1 -0
  464. package/lib/browser/components/surface-flyout.js +2 -0
  465. package/lib/browser/components/unseen-drop.d.ts +10 -4
  466. package/lib/browser/components/unseen-drop.js +9 -8
  467. package/lib/browser/components/use-seen-chats.js +2 -2
  468. package/lib/browser/components/voice-services.d.ts +7 -0
  469. package/lib/browser/components/voice-services.js +173 -0
  470. package/lib/browser/components/voice-talk.d.ts +23 -6
  471. package/lib/browser/components/voice-talk.js +45 -10
  472. package/lib/browser/components/web-composer.d.ts +1 -1
  473. package/lib/browser/components/web-composer.js +2 -2
  474. package/lib/browser/components/web-dialog.js +2 -0
  475. package/lib/browser/device/back-stack.d.ts +89 -11
  476. package/lib/browser/device/back-stack.js +205 -31
  477. package/lib/browser/device/device-protocol.d.ts +1 -1
  478. package/lib/browser/device/device-protocol.js +1 -1
  479. package/lib/browser/device/own-gestures.d.ts +1 -1
  480. package/lib/browser/device/pull-down.js +8 -6
  481. package/lib/browser/device/row-swipe.js +11 -9
  482. package/lib/browser/device/sheet-swipe.d.ts +1 -179
  483. package/lib/browser/device/sheet-swipe.js +16 -452
  484. package/lib/browser/device/swipe-finger.d.ts +32 -0
  485. package/lib/browser/device/swipe-finger.js +87 -0
  486. package/lib/browser/device/swipe-settle.d.ts +53 -0
  487. package/lib/browser/device/swipe-settle.js +176 -0
  488. package/lib/browser/device/swipe-util.d.ts +98 -0
  489. package/lib/browser/device/swipe-util.js +187 -0
  490. package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
  491. package/lib/browser/drafts/drafts-protocol.js +78 -0
  492. package/lib/browser/drafts/drafts.d.ts +22 -0
  493. package/lib/browser/drafts/drafts.js +94 -0
  494. package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
  495. package/lib/browser/drafts/use-composer-draft.js +146 -0
  496. package/lib/browser/extension/icons.js +24 -3
  497. package/lib/browser/extension/web-api-components.d.ts +13 -0
  498. package/lib/browser/extension/web-api-contributions.d.ts +125 -0
  499. package/lib/browser/extension/web-extension-api.d.ts +88 -5
  500. package/lib/browser/extension/web-extension-context.d.ts +5 -0
  501. package/lib/browser/extension/web-extension-context.js +62 -9
  502. package/lib/browser/extension/web-extension-protocol.d.ts +19 -1
  503. package/lib/browser/extension/web-extension-protocol.js +3 -0
  504. package/lib/browser/extension/web-extension-run.d.ts +5 -2
  505. package/lib/browser/extension/web-extension-run.js +13 -1
  506. package/lib/browser/extension/web-extensions-running.d.ts +94 -0
  507. package/lib/browser/extension/web-extensions-running.js +343 -0
  508. package/lib/browser/extension/web-extensions.d.ts +6 -82
  509. package/lib/browser/extension/web-extensions.js +7 -316
  510. package/lib/browser/extension/web-pages.js +1 -0
  511. package/lib/browser/extension/web-session-notices.js +8 -3
  512. package/lib/browser/extension/web-tasks.d.ts +2 -0
  513. package/lib/browser/extension/web-tasks.js +6 -0
  514. package/lib/browser/extension/web-view-util.d.ts +2 -1
  515. package/lib/browser/extension/web-view-util.js +4 -1
  516. package/lib/browser/gateway/console-parts.d.ts +4 -12
  517. package/lib/browser/gateway/console-parts.js +42 -126
  518. package/lib/browser/gateway/console-tenant.js +3 -2
  519. package/lib/browser/gateway/console-trend.d.ts +12 -0
  520. package/lib/browser/gateway/console-trend.js +151 -0
  521. package/lib/browser/gateway/console-util.js +2 -2
  522. package/lib/browser/gateway/console-view.js +48 -2
  523. package/lib/browser/i18n/locales.d.ts +170 -6
  524. package/lib/browser/i18n/messages-ja.js +171 -7
  525. package/lib/browser/i18n/messages-zh-tw.js +171 -7
  526. package/lib/browser/i18n/messages.d.ts +167 -3
  527. package/lib/browser/i18n/messages.js +342 -14
  528. package/lib/browser/index.d.ts +17 -0
  529. package/lib/browser/index.js +17 -0
  530. package/lib/browser/notices/notices-protocol.d.ts +12 -0
  531. package/lib/browser/notices/notices.js +7 -4
  532. package/lib/browser/offline/device-values.d.ts +2 -0
  533. package/lib/browser/offline/device-values.js +6 -1
  534. package/lib/browser/screen/page-answers.d.ts +43 -0
  535. package/lib/browser/screen/page-answers.js +93 -0
  536. package/lib/browser/screen/screen-protocol.d.ts +113 -0
  537. package/lib/browser/screen/screen-protocol.js +48 -0
  538. package/lib/browser/screen/screen.d.ts +21 -0
  539. package/lib/browser/screen/screen.js +125 -0
  540. package/lib/browser/screen/use-screen-part.d.ts +7 -0
  541. package/lib/browser/screen/use-screen-part.js +50 -0
  542. package/lib/browser/settings/settings-protocol.d.ts +5 -1
  543. package/lib/browser/settings/settings-protocol.js +5 -1
  544. package/lib/browser/share/shared-extensions.d.ts +30 -0
  545. package/lib/browser/share/shared-extensions.js +181 -0
  546. package/lib/browser/share/shared-link.d.ts +12 -0
  547. package/lib/browser/share/shared-link.js +41 -0
  548. package/lib/browser/share/shared-page.d.ts +6 -0
  549. package/lib/browser/share/shared-page.js +173 -0
  550. package/lib/browser/state/state-protocol.d.ts +14 -0
  551. package/lib/browser/state/state-protocol.js +20 -1
  552. package/lib/browser/state/state.d.ts +10 -2
  553. package/lib/browser/state/state.js +18 -2
  554. package/lib/browser/style/base.d.ts +1 -1
  555. package/lib/browser/style/base.js +4 -0
  556. package/lib/browser/style/chat-list.d.ts +3 -0
  557. package/lib/browser/style/chat-list.js +156 -0
  558. package/lib/browser/style/conversation-column.d.ts +3 -0
  559. package/lib/browser/style/conversation-column.js +253 -0
  560. package/lib/browser/style/conversation.d.ts +1 -1
  561. package/lib/browser/style/conversation.js +24 -8
  562. package/lib/browser/style/dialogs.d.ts +3 -0
  563. package/lib/browser/style/dialogs.js +166 -0
  564. package/lib/browser/style/layout.d.ts +2 -2
  565. package/lib/browser/style/layout.js +1 -525
  566. package/lib/browser/style/pages.d.ts +1 -1
  567. package/lib/browser/style/pages.js +10 -3
  568. package/lib/browser/style/phone.d.ts +1 -1
  569. package/lib/browser/style/phone.js +7 -3
  570. package/lib/browser/style/shared.d.ts +3 -0
  571. package/lib/browser/style/shared.js +26 -0
  572. package/lib/browser/style/shell.d.ts +1 -1
  573. package/lib/browser/style/shell.js +47 -0
  574. package/lib/browser/style/tasks.d.ts +1 -1
  575. package/lib/browser/style/tasks.js +13 -8
  576. package/lib/browser/style.js +8 -0
  577. package/lib/browser/util/gallery.d.ts +24 -2
  578. package/lib/browser/util/gallery.js +82 -2
  579. package/lib/browser/util/image-copy.d.ts +17 -0
  580. package/lib/browser/util/image-copy.js +60 -0
  581. package/lib/browser/util/message.d.ts +5 -0
  582. package/lib/browser/util/message.js +14 -0
  583. package/lib/browser/util/process.d.ts +6 -2
  584. package/lib/browser/util/process.js +6 -2
  585. package/lib/browser/util/spoken.d.ts +25 -0
  586. package/lib/browser/util/spoken.js +86 -0
  587. package/lib/browser/util/transcript.d.ts +23 -0
  588. package/lib/browser/util/transcript.js +49 -0
  589. package/lib/browser/util/voice.d.ts +5 -1
  590. package/lib/browser/util/voice.js +6 -1
  591. package/lib/browser/workbench-hosts.d.ts +37 -0
  592. package/lib/browser/workbench-hosts.js +124 -0
  593. package/lib/browser/workbench-lists.d.ts +34 -0
  594. package/lib/browser/workbench-lists.js +132 -0
  595. package/lib/browser/workbench-protocol.d.ts +14 -1
  596. package/lib/browser/workbench-services.d.ts +50 -0
  597. package/lib/browser/workbench-services.js +124 -0
  598. package/lib/browser/workbench-util.d.ts +1 -1
  599. package/lib/browser/workbench.d.ts +6 -89
  600. package/lib/browser/workbench.js +23 -333
  601. package/package.json +7 -7
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.AddCloudHost = AddCloudHost;
36
37
  exports.RemoteHosts = RemoteHosts;
37
38
  const ta_protocol_1 = require("@celljs/ta-protocol");
38
39
  const lucide_react_1 = require("lucide-react");
@@ -62,6 +63,60 @@ function useRemote() {
62
63
  }, [workbench.status, bench, read]);
63
64
  return { bench, hosts, ports, read };
64
65
  }
66
+ /**
67
+ * A cloud workspace to add: the address of a Ta gateway (or Ta service), a token of one's account there, and a name for
68
+ * its directories, `ta://<name>/…`. Checked by connecting before it is kept. A deployment joined (RelayServices) opens
69
+ * it with the address of its gateway and a name filled in.
70
+ */
71
+ function AddCloudHost({ onAdded, url: givenUrl = '', name: givenName = '' }) {
72
+ const t = (0, use_t_1.useT)();
73
+ const [, bench] = (0, hooks_1.useWorkbench)();
74
+ const [, notices] = (0, hooks_1.useNotices)();
75
+ const [open, setOpen] = React.useState(false);
76
+ const [name, setName] = React.useState(givenName);
77
+ const [url, setUrl] = React.useState(givenUrl);
78
+ const [token, setToken] = React.useState('');
79
+ const [busy, setBusy] = React.useState(false);
80
+ const nameOk = ta_protocol_1.TaLocation.isCloudName(name.trim());
81
+ if (!open) {
82
+ return (React.createElement("button", { type: "button", className: "ta-button", onClick: () => setOpen(true) },
83
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.Cloud, size: 14 }),
84
+ " ",
85
+ t('ta.remote.addCloud')));
86
+ }
87
+ return (React.createElement("form", { className: "ta-environment-own", onSubmit: async (event) => {
88
+ event.preventDefault();
89
+ setBusy(true);
90
+ try {
91
+ const added = await bench.remote.addCloudHost(name.trim(), url.trim(), token.trim());
92
+ notices.notify(t('ta.remote.cloudAdded', { name: ta_protocol_1.TaLocation.hostLabel(added.host) }), { level: 'success' });
93
+ setOpen(false);
94
+ setName(givenName);
95
+ setUrl(givenUrl);
96
+ setToken('');
97
+ await onAdded();
98
+ }
99
+ catch (error) {
100
+ notices.error(error);
101
+ }
102
+ finally {
103
+ setBusy(false);
104
+ }
105
+ } },
106
+ React.createElement("label", { className: "ta-field" },
107
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.Link2, size: 16 }),
108
+ React.createElement("input", { value: url, placeholder: "https://ta.example.com", "aria-label": t('ta.remote.cloudUrl'), spellCheck: false, autoCapitalize: "off", onChange: event => setUrl(event.target.value) })),
109
+ React.createElement("label", { className: "ta-field" },
110
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.KeyRound, size: 16 }),
111
+ React.createElement("input", { type: "password", value: token, placeholder: t('ta.remote.cloudToken'), "aria-label": t('ta.remote.cloudToken'), autoComplete: "off", onChange: event => setToken(event.target.value) })),
112
+ React.createElement("label", { className: "ta-field" },
113
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.Tag, size: 16 }),
114
+ React.createElement("input", { value: name, placeholder: t('ta.remote.cloudName'), "aria-label": t('ta.remote.cloudName'), "aria-invalid": name.trim() && !nameOk ? true : undefined, spellCheck: false, autoCapitalize: "off", onChange: event => setName(event.target.value.toLowerCase()) })),
115
+ React.createElement("p", { className: "ta-environment-hint" }, t('ta.remote.cloudHint')),
116
+ React.createElement("div", { className: "ta-auth-actions" },
117
+ React.createElement("button", { type: "button", className: "ta-button", onClick: () => setOpen(false) }, t('ta.cancel')),
118
+ React.createElement("button", { type: "submit", className: "ta-button ta-primary", disabled: busy || !nameOk || !url.trim() || !token.trim() }, busy ? React.createElement("span", { className: "ta-spinner" }) : t('ta.remote.cloudConnect')))));
119
+ }
65
120
  /**
66
121
  * The machines conversations can work on (`ssh://` directories): those of ~/.ssh/config and those added,
67
122
  * whether Ta is connected to each, and the ports forwarded from them. Connecting checks a host the way a
@@ -106,24 +161,32 @@ function RemoteHosts() {
106
161
  React.createElement(icon_1.Icon, { icon: lucide_react_1.Plus, size: 14 }),
107
162
  " ",
108
163
  t('ta.remote.add')))),
164
+ React.createElement(settings_controls_1.Row, { label: t('ta.remote.cloudTitle'), description: t('ta.remote.cloudDescription'), stacked: true },
165
+ React.createElement(AddCloudHost, { onAdded: read })),
109
166
  hosts.length === 0 && React.createElement(settings_controls_1.EmptyRow, { picture: React.createElement(empty_pictures_1.RemotePicture, null), title: t('ta.remote.none'), hint: t('ta.remote.noneHint') }),
110
- hosts.map(host => (React.createElement(settings_controls_1.Row, { key: host.host, label: folder_picker_1.RemoteHostsUtil.breakable(host.host), description: React.createElement("span", { className: "ta-remote-state" },
167
+ hosts.map(host => { var _a; return (React.createElement(settings_controls_1.Row, { key: host.host, icon: host.source === 'cloud' ? lucide_react_1.Cloud : undefined, label: host.source === 'cloud' ? ta_protocol_1.TaLocation.hostLabel(host.host) : folder_picker_1.RemoteHostsUtil.breakable(host.host), description: React.createElement("span", { className: "ta-remote-state" },
111
168
  React.createElement("span", { className: `ta-remote-light${host.connected ? ' ta-on' : ''}` }),
112
169
  [
113
170
  t(host.connected ? 'ta.remote.connected' : 'ta.remote.disconnected'),
114
- t(host.source === 'config' ? 'ta.remote.fromConfig' : 'ta.remote.added'),
171
+ host.source === 'cloud'
172
+ ? ((_a = host.url) !== null && _a !== void 0 ? _a : '').replace(/^https?:\/\//, '')
173
+ : t(host.source === 'config' ? 'ta.remote.fromConfig' : 'ta.remote.added'),
115
174
  ].join(' · ')) },
175
+ host.source === 'cloud' && host.url && (React.createElement("a", { className: "ta-button", href: host.url, target: "_blank", rel: "noreferrer noopener", title: t('ta.remote.openCloudHint') },
176
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.ExternalLink, size: 14 }),
177
+ " ",
178
+ t('ta.remote.openCloud'))),
116
179
  host.connected ? (React.createElement("button", { type: "button", className: "ta-button", disabled: busy === host.host, onClick: () => run(host.host, () => bench.remote.disconnect(host.host)) },
117
180
  React.createElement(icon_1.Icon, { icon: lucide_react_1.Unplug, size: 14 }),
118
181
  " ",
119
182
  t('ta.remote.disconnect'))) : (React.createElement("button", { type: "button", className: "ta-button", disabled: busy === host.host, onClick: () => run(host.host, async () => {
120
183
  await bench.remote.resolveLocation(ta_protocol_1.TaLocation.ssh(host.host));
121
- notices.notify(t('ta.remote.connectedTo', { host: host.host }), { level: 'success' });
184
+ notices.notify(t('ta.remote.connectedTo', { host: ta_protocol_1.TaLocation.hostLabel(host.host) }), { level: 'success' });
122
185
  }) },
123
186
  busy === host.host ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(icon_1.Icon, { icon: lucide_react_1.Plug, size: 14 }),
124
187
  " ",
125
188
  t('ta.remote.connect'))),
126
- host.source === 'recent' && (React.createElement(icon_1.IconButton, { icon: lucide_react_1.Trash2, label: t('ta.remote.remove', { host: host.host }), disabled: busy === host.host, onClick: () => run(host.host, () => bench.remote.removeHost(host.host)) }))))),
189
+ host.source !== 'config' && (React.createElement(icon_1.IconButton, { icon: lucide_react_1.Trash2, label: t('ta.remote.remove', { host: host.host }), disabled: busy === host.host, onClick: () => run(host.host, () => bench.remote.removeHost(host.host)) })))); }),
127
190
  ports.map(port => (React.createElement(settings_controls_1.Row, { key: `${port.host}:${port.remotePort}`, label: t('ta.remote.port', { host: port.host, port: port.remotePort }), description: `localhost:${port.localPort}` },
128
191
  React.createElement(icon_1.Icon, { icon: lucide_react_1.Server, size: 14, className: "ta-muted" }),
129
192
  React.createElement(icon_1.IconButton, { icon: lucide_react_1.X, label: t('ta.remote.closePort'), onClick: () => run(port.host, () => bench.remote.closeForwardedPort(port.host, port.remotePort)) }))))));
@@ -37,6 +37,7 @@ exports.RemotePrompts = RemotePrompts;
37
37
  const lucide_react_1 = require("lucide-react");
38
38
  const React = __importStar(require("react"));
39
39
  const react_dom_1 = require("react-dom");
40
+ const back_stack_1 = require("../device/back-stack");
40
41
  const hooks_1 = require("../hooks");
41
42
  const use_t_1 = require("../i18n/use-t");
42
43
  const icon_1 = require("./icon");
@@ -45,6 +46,7 @@ function PromptDialog({ prompt, onAnswer }) {
45
46
  const t = (0, use_t_1.useT)();
46
47
  const [value, setValue] = React.useState('');
47
48
  const confirm = prompt.kind === 'confirm';
49
+ (0, back_stack_1.useBackLayer)(true, () => onAnswer(null));
48
50
  return (0, react_dom_1.createPortal)(React.createElement("div", { className: "ta-modal-scrim" },
49
51
  React.createElement("button", { type: "button", className: "ta-overlay-close", "aria-label": t('ta.cancel'), tabIndex: -1, onClick: () => onAnswer(null) }),
50
52
  React.createElement("form", { className: "ta-modal ta-confirm ta-remote-prompt", role: "alertdialog", "aria-modal": "true", "aria-label": t('ta.remote.prompt.title', { host: prompt.host }), onKeyDown: event => event.key === 'Escape' && onAnswer(null), onSubmit: event => {
@@ -37,6 +37,7 @@ exports.ScanHost = ScanHost;
37
37
  const lucide_react_1 = require("lucide-react");
38
38
  const React = __importStar(require("react"));
39
39
  const react_dom_1 = require("react-dom");
40
+ const back_stack_1 = require("../device/back-stack");
40
41
  const code_scan_1 = require("../device/code-scan");
41
42
  const code_vision_1 = require("../device/code-vision");
42
43
  const device_1 = require("../device/device");
@@ -172,6 +173,12 @@ function ScanView({ onCode, onAsk }) {
172
173
  close();
173
174
  }
174
175
  }, [phase.kind, close]);
176
+ // The scanner, and the photo looked at in it: the back of the system goes back from the photo first.
177
+ (0, back_stack_1.useBackLayer)(true, close);
178
+ (0, back_stack_1.useBackLayer)(phase.kind === 'photo', () => {
179
+ setPhase({ kind: 'live' });
180
+ setText('');
181
+ });
175
182
  React.useEffect(() => {
176
183
  const onKey = (event) => event.key === 'Escape' && !myCode && back();
177
184
  document.addEventListener('keydown', onKey);
@@ -0,0 +1,29 @@
1
+ import { type WebViewEntry } from '../extension/web-extension-protocol';
2
+ /** What is in front, for ScreenNavigatorUtil.where: at most one of them, but the list beside. */
3
+ export interface ShellFront {
4
+ /** The settings shown, at a section (`''`: the first). */
5
+ settings?: string;
6
+ page?: WebViewEntry;
7
+ discover?: boolean;
8
+ me?: boolean;
9
+ /** The list in the sidebar, or the tab of a phone. */
10
+ list?: string;
11
+ /** The name of the conversation shown. */
12
+ chat?: string;
13
+ words: {
14
+ settings: string;
15
+ discover: string;
16
+ me: string;
17
+ };
18
+ }
19
+ export declare namespace ScreenNavigatorUtil {
20
+ /** What is in front, a line: `Settings → voice`, `Page “Town”`, `Conversation “Fix the login” · list “Chats” beside`. */
21
+ function where(front: ShellFront): string;
22
+ /** A conversation by its session id, its file or its name: the name whole first, then a part of it. */
23
+ function chat<T extends {
24
+ name: string;
25
+ sessionId?: string;
26
+ sessionFile?: string;
27
+ }>(chats: readonly T[], words: string): T | undefined;
28
+ }
29
+ //# sourceMappingURL=screen-navigator-util.d.ts.map
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScreenNavigatorUtil = void 0;
4
+ const web_extension_protocol_1 = require("../extension/web-extension-protocol");
5
+ var ScreenNavigatorUtil;
6
+ (function (ScreenNavigatorUtil) {
7
+ /** What is in front, a line: `Settings → voice`, `Page “Town”`, `Conversation “Fix the login” · list “Chats” beside`. */
8
+ function where(front) {
9
+ var _a;
10
+ const main = front.settings !== undefined
11
+ ? `${front.words.settings}${front.settings ? ` → ${front.settings}` : ''}`
12
+ : front.page
13
+ ? `Page “${web_extension_protocol_1.WebLabelUtil.text(front.page.title)}”`
14
+ : front.discover
15
+ ? front.words.discover
16
+ : front.me
17
+ ? front.words.me
18
+ : front.chat !== undefined
19
+ ? `Conversation “${front.chat}”`
20
+ : undefined;
21
+ const list = front.list !== undefined ? `List “${front.list}”` : undefined;
22
+ return main && list ? `${main}, with the ${list} beside` : ((_a = main !== null && main !== void 0 ? main : list) !== null && _a !== void 0 ? _a : '');
23
+ }
24
+ ScreenNavigatorUtil.where = where;
25
+ /** A conversation by its session id, its file or its name: the name whole first, then a part of it. */
26
+ function chat(chats, words) {
27
+ var _a, _b;
28
+ const word = words.trim().toLowerCase();
29
+ if (!word) {
30
+ return undefined;
31
+ }
32
+ return ((_b = (_a = chats.find(one => one.sessionId === words || one.sessionFile === words)) !== null && _a !== void 0 ? _a : chats.find(one => one.name.trim().toLowerCase() === word)) !== null && _b !== void 0 ? _b : chats.find(one => one.name.toLowerCase().includes(word)));
33
+ }
34
+ ScreenNavigatorUtil.chat = chat;
35
+ })(ScreenNavigatorUtil || (exports.ScreenNavigatorUtil = ScreenNavigatorUtil = {}));
36
+ //# sourceMappingURL=screen-navigator-util.js.map
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import { type ScreenPlace } from '../screen/screen-protocol';
3
+ /** What the shell knows of where it is, as AppShell renders: the navigator reads the latest. */
4
+ export interface ShellPlaces {
5
+ phone: boolean;
6
+ /** What is in front now, a line. */
7
+ where: string;
8
+ places: ScreenPlace[];
9
+ /** Goes to a place of `places`. */
10
+ goPlace(place: ScreenPlace): unknown;
11
+ /** Shows a conversation: open by its session id, or saved by its file. */
12
+ showChat(target: {
13
+ sessionId: string;
14
+ } | {
15
+ sessionFile: string;
16
+ }): Promise<void>;
17
+ /** Conversations by name: those open, then those saved. */
18
+ chats: {
19
+ name: string;
20
+ sessionId?: string;
21
+ sessionFile?: string;
22
+ }[];
23
+ /** Opens the settings at a section. */
24
+ openSettings(section?: string): void;
25
+ }
26
+ /**
27
+ * The shell as TaScreen's navigator (docs/design/ta-app-use.md 3): what AppShell sets on the ref as it renders is
28
+ * what the agent reads and where it goes. Called before AppShell returns anything else, as hooks are.
29
+ */
30
+ export declare function useScreenNavigator(): React.RefObject<ShellPlaces | undefined>;
31
+ //# sourceMappingURL=screen-navigator.d.ts.map
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.useScreenNavigator = useScreenNavigator;
37
+ const react_1 = require("@celljs/react");
38
+ const React = __importStar(require("react"));
39
+ const screen_protocol_1 = require("../screen/screen-protocol");
40
+ const screen_navigator_util_1 = require("./screen-navigator-util");
41
+ /**
42
+ * The shell as TaScreen's navigator (docs/design/ta-app-use.md 3): what AppShell sets on the ref as it renders is
43
+ * what the agent reads and where it goes. Called before AppShell returns anything else, as hooks are.
44
+ */
45
+ function useScreenNavigator() {
46
+ const screen = (0, react_1.useInject)(screen_protocol_1.TaScreen);
47
+ const shell = React.useRef(undefined);
48
+ React.useEffect(() => {
49
+ const navigator = {
50
+ where: () => { var _a; var _b; return (_b = (_a = shell.current) === null || _a === void 0 ? void 0 : _a.where) !== null && _b !== void 0 ? _b : ''; },
51
+ places: () => { var _a; var _b; return (_b = (_a = shell.current) === null || _a === void 0 ? void 0 : _a.places) !== null && _b !== void 0 ? _b : []; },
52
+ go: async (to) => {
53
+ var _a;
54
+ const now = shell.current;
55
+ if (!now) {
56
+ return false;
57
+ }
58
+ if (to.startsWith('chat:')) {
59
+ const chat = screen_navigator_util_1.ScreenNavigatorUtil.chat(now.chats, to.slice(5));
60
+ if (!chat) {
61
+ return false;
62
+ }
63
+ await now.showChat(chat.sessionId ? { sessionId: chat.sessionId } : { sessionFile: (_a = chat.sessionFile) !== null && _a !== void 0 ? _a : '' });
64
+ return true;
65
+ }
66
+ if (to.startsWith('settings:')) {
67
+ now.openSettings(to.slice(9));
68
+ return true;
69
+ }
70
+ const place = screen_protocol_1.ScreenUtil.find(now.places, to);
71
+ if (!place) {
72
+ return false;
73
+ }
74
+ await now.goPlace(place);
75
+ return true;
76
+ },
77
+ };
78
+ screen.setNavigator(navigator);
79
+ return () => screen.setNavigator(undefined);
80
+ }, [screen]);
81
+ return shell;
82
+ }
83
+ //# sourceMappingURL=screen-navigator.js.map
@@ -1,7 +1,7 @@
1
1
  import type { SessionStore } from '@celljs/ta-client';
2
2
  import type { TaCommandResult, TaServer, TaSettingsServer, TaSlashCommand, ThinkingLevel } from '@celljs/ta-protocol';
3
3
  import type { Translate } from '../i18n/use-t';
4
- import type { ComposerAction } from './composer-box';
4
+ import type { ComposerAction } from './composer-box-protocol';
5
5
  type Model = TaCommandResult<'get_available_models'>['models'][number];
6
6
  /** What a session needs from the server besides its events: models, thinking levels, commands. */
7
7
  export interface SessionSettings {
@@ -38,29 +38,39 @@ const react_1 = require("@celljs/react");
38
38
  const ta_protocol_1 = require("@celljs/ta-protocol");
39
39
  const lucide_react_1 = require("lucide-react");
40
40
  const React = __importStar(require("react"));
41
+ const voice_call_bar_1 = require("../assistant/voice-call-bar");
41
42
  const device_1 = require("../device/device");
43
+ const drafts_protocol_1 = require("../drafts/drafts-protocol");
42
44
  const files_protocol_1 = require("../files/files-protocol");
43
45
  const hooks_1 = require("../hooks");
44
46
  const use_t_1 = require("../i18n/use-t");
45
47
  const code_renderers_1 = require("../markdown/code-renderers");
48
+ const screen_protocol_1 = require("../screen/screen-protocol");
49
+ const use_screen_part_1 = require("../screen/use-screen-part");
46
50
  const link_1 = require("../util/link");
47
51
  const message_1 = require("../util/message");
48
52
  const terminal_text_1 = require("../util/terminal-text");
49
53
  const thumbnail_1 = require("../util/thumbnail");
54
+ const voice_1 = require("../util/voice");
50
55
  const workbench_protocol_1 = require("../workbench-protocol");
51
56
  const chat_asks_1 = require("./chat-asks");
52
57
  const composer_1 = require("./composer");
53
58
  const composer_addons_1 = require("./composer-addons");
54
- const conversation_scroll_1 = require("./conversation-scroll");
59
+ const composer_target_1 = require("./composer-target");
60
+ const conversation_find_1 = require("./conversation-find");
55
61
  const conversation_scroll_hooks_1 = require("./conversation-scroll-hooks");
62
+ const conversation_scroll_util_1 = require("./conversation-scroll-util");
56
63
  const dialog_view_1 = require("./dialog-view");
57
64
  const earlier_messages_1 = require("./earlier-messages");
58
65
  const grow_box_1 = require("./grow-box");
66
+ const icon_1 = require("./icon");
59
67
  const link_2 = require("./link");
60
68
  const media_1 = require("./media");
61
69
  const message_actions_1 = require("./message-actions");
62
70
  const message_footer_1 = require("./message-footer");
71
+ const message_images_1 = require("./message-images");
63
72
  const message_list_1 = require("./message-list");
73
+ const moved_notice_1 = require("./moved-notice");
64
74
  const people_1 = require("./people");
65
75
  const session_settings_1 = require("./session-settings");
66
76
  const terminal_art_1 = require("./terminal-art");
@@ -147,7 +157,23 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
147
157
  useSessionNotices(store, state.notices);
148
158
  const { settings, actions } = (0, session_settings_1.useSessionSettings)(server, (0, hooks_1.useSettingsServer)(), store, state.working, t, fail);
149
159
  const composer = React.useRef(null);
150
- const recentShots = (0, hooks_1.useSettings)()[0].settings.recentShots;
160
+ const [settingsState] = (0, hooks_1.useSettings)();
161
+ const recentShots = settingsState.settings.recentShots;
162
+ // A call: the conversation listens, answers aloud, and listens again (VoiceCall); not in a tab of the workbench.
163
+ const [callState, call] = (0, voice_call_bar_1.useVoiceCall)({
164
+ language: () => settingsState.language,
165
+ voice: () => settingsState.settings.voice,
166
+ send: text => store.prompt(text, { streamingBehavior: 'followUp' }),
167
+ ended: (reason, detail) => notices.notify((0, voice_call_bar_1.callEndedNotice)(t, reason, detail)),
168
+ }, { sessionId: store.sessionId, sessionFile: info === null || info === void 0 ? void 0 : info.sessionFile, cwd: info === null || info === void 0 ? void 0 : info.cwd, double: false });
169
+ (0, voice_call_bar_1.useCallTurns)(call, callState, state.working, message_1.MessageUtil.lastReply(state.messages, state.start));
170
+ // In a call, a dialog it waits on is said: the user may not be looking.
171
+ (0, voice_call_bar_1.useCallAnnouncements)(call, callState, (0, voice_call_bar_1.dialogAnnouncements)(state.pendingUi, t));
172
+ const callable = !compact && voice_1.Voice.canSpeak() && voice_1.Voice.canListen();
173
+ const talkCalls = (0, voice_call_bar_1.useTalkCalls)();
174
+ // Another conversation shown in the same view: the call was with this one.
175
+ // biome-ignore lint/correctness/useExhaustiveDependencies: hangs up as the store changes
176
+ React.useEffect(() => () => call.hangUp(), [call, store]);
151
177
  const cwd = info === null || info === void 0 ? void 0 : info.cwd;
152
178
  const messageActions = (0, message_actions_1.useMessageActions)(store, server, state.working, cwd, composer, onActivity);
153
179
  // An extension puts text in the message box, as in pi's terminal.
@@ -166,6 +192,14 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
166
192
  (_a = composer.current) === null || _a === void 0 ? void 0 : _a.setText(draftText);
167
193
  }
168
194
  }, [draftText]);
195
+ // The box of the conversation in front takes what extensions put in it (WebUiAPI.addToComposer); not a tab's.
196
+ React.useEffect(() => compact
197
+ ? undefined
198
+ : composer_target_1.ComposerTarget.set({
199
+ text: () => { var _a; var _b; return (_b = (_a = composer.current) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : ''; },
200
+ setText: text => { var _a; return (_a = composer.current) === null || _a === void 0 ? void 0 : _a.setText(text); },
201
+ addFiles: files => { var _a, _b; return (_b = (_a = composer.current) === null || _a === void 0 ? void 0 : _a.addFiles) === null || _b === void 0 ? void 0 : _b.call(_a, files); },
202
+ }), [compact]);
169
203
  const files = (0, react_1.useInject)(files_protocol_1.TaFiles);
170
204
  const fileUrl = React.useCallback(async (path, box) => files.loadable(thumbnail_1.ThumbnailUtil.boxed(await workspace.fileUrl(path, cwd), box)), [workspace, cwd, files]);
171
205
  const namedPaths = React.useCallback(() => message_1.MessageUtil.namedPaths(store.state.messages), [store]);
@@ -184,6 +218,119 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
184
218
  const title = (info === null || info === void 0 ? void 0 : info.sessionName) || (info ? message_1.MessageUtil.basename(info.cwd) : t('ta.session.title'));
185
219
  const conversation = React.useMemo(() => ({ sessionId: store.sessionId, sessionFile: info === null || info === void 0 ? void 0 : info.sessionFile, cwd: info === null || info === void 0 ? void 0 : info.cwd, kind: 'chat', group: info === null || info === void 0 ? void 0 : info.group, title }), [store.sessionId, info === null || info === void 0 ? void 0 : info.sessionFile, info === null || info === void 0 ? void 0 : info.cwd, info === null || info === void 0 ? void 0 : info.group, title]);
186
220
  const addons = (0, composer_addons_1.useComposerAddons)(conversation);
221
+ // Finding words in it (ConversationFind): 0 while it does not show, counted up each time it is asked for.
222
+ const [finding, setFinding] = React.useState(0);
223
+ const closeFind = React.useCallback(() => setFinding(0), []);
224
+ React.useEffect(() => {
225
+ if (compact) {
226
+ return;
227
+ }
228
+ // Cmd/Ctrl+F, as a browser's find; not for an editor or a terminal of the workbench, which find their own.
229
+ const onKey = (event) => {
230
+ var _a;
231
+ const target = event.target;
232
+ if (event.defaultPrevented ||
233
+ !(event.metaKey || event.ctrlKey) ||
234
+ event.shiftKey ||
235
+ event.altKey ||
236
+ event.key.toLowerCase() !== 'f' ||
237
+ ((_a = target === null || target === void 0 ? void 0 : target.closest) === null || _a === void 0 ? void 0 : _a.call(target, '.ta-editors-pane, .xterm, .cm-editor, .monaco-editor'))) {
238
+ return;
239
+ }
240
+ event.preventDefault();
241
+ setFinding(count => count + 1);
242
+ };
243
+ window.addEventListener('keydown', onKey);
244
+ return () => window.removeEventListener('keydown', onKey);
245
+ }, [compact]);
246
+ // What an agent reads of the conversation and does in it, as the user does (docs/design/ta-app-use.md 3).
247
+ const partId = compact ? 'conversation-tab' : 'conversation';
248
+ (0, use_screen_part_1.useScreenPart)({
249
+ id: partId,
250
+ title: (info === null || info === void 0 ? void 0 : info.sessionName) || (info === null || info === void 0 ? void 0 : info.firstMessage) || title,
251
+ state: () => (state.working ? t('ta.screen.working') : dialog ? t('ta.screen.asks', { question: 'title' in dialog ? dialog.title : '' }) : undefined),
252
+ items: () => [
253
+ ...state.messages
254
+ .filter(message => message.role === 'user' || message.role === 'assistant')
255
+ .slice(-6)
256
+ .map((message, index) => {
257
+ const text = message_1.MessageUtil.text(message_1.MessageUtil.blocks(message)).replace(/\s+/g, ' ').trim();
258
+ return { id: `m${index}`, text: `${message.role === 'user' ? '›' : '‹'} ${text.length > 240 ? `${text.slice(0, 239)}…` : text}` };
259
+ })
260
+ .filter(item => item.text.length > 2),
261
+ ...(dialog && 'title' in dialog
262
+ ? [
263
+ {
264
+ id: 'dialog',
265
+ text: dialog.title,
266
+ marks: dialog.method === 'select' ? dialog.options : dialog.method === 'confirm' ? [dialog.message] : [dialog.method],
267
+ },
268
+ ]
269
+ : []),
270
+ ],
271
+ actions: {
272
+ send: {
273
+ label: t('ta.send'),
274
+ takes: 'text',
275
+ run: async (_item, input) => {
276
+ var _a;
277
+ const text = String((_a = input.text) !== null && _a !== void 0 ? _a : '').trim();
278
+ if (!text) {
279
+ throw new Error('Send what? Pass input.text.');
280
+ }
281
+ await store.prompt(text, { streamingBehavior: 'followUp' });
282
+ return 'Sent.';
283
+ },
284
+ },
285
+ stop: {
286
+ label: t('ta.stop'),
287
+ ...((info === null || info === void 0 ? void 0 : info.sessionFile) ? { command: 'chats.stop', commandInput: () => ({ file: info.sessionFile }) } : {}),
288
+ run: async () => {
289
+ await server.abort(store.sessionId);
290
+ return 'Stopped.';
291
+ },
292
+ },
293
+ ...(dialog && 'title' in dialog
294
+ ? {
295
+ answer: {
296
+ label: t('ta.screen.answer'),
297
+ takes: dialog.method === 'select' ? 'one of its choices' : dialog.method === 'confirm' ? 'yes or no' : 'text',
298
+ run: async (_item, input) => {
299
+ var _a, _b, _c, _d;
300
+ const said = String((_b = (_a = input.text) !== null && _a !== void 0 ? _a : input.answer) !== null && _b !== void 0 ? _b : '').trim();
301
+ const response = dialog.method === 'confirm'
302
+ ? { confirmed: /^(y|yes|true|ok|是|好|可以|确认|確認|はい)$/i.test(said) }
303
+ : dialog.method === 'select'
304
+ ? {
305
+ value: (_d = (_c = dialog.options.find(option => option.toLowerCase() === said.toLowerCase())) !== null && _c !== void 0 ? _c : dialog.options[Number(said) - 1]) !== null && _d !== void 0 ? _d : '',
306
+ }
307
+ : { value: said };
308
+ if ('value' in response && !response.value) {
309
+ throw new Error(dialog.method === 'select' ? `Answer one of: ${dialog.options.join(', ')}.` : 'Answer with some text.');
310
+ }
311
+ await store.respondUi({ type: 'extension_ui_response', id: dialog.id, ...response });
312
+ return 'Answered.';
313
+ },
314
+ },
315
+ }
316
+ : {}),
317
+ },
318
+ });
319
+ const nothingSaid = state.messages.length === 0;
320
+ const composerActions = React.useMemo(() => [
321
+ [
322
+ ...actions,
323
+ {
324
+ key: 'find',
325
+ label: t('ta.find.open'),
326
+ icon: React.createElement(icon_1.Icon, { icon: lucide_react_1.TextSearch, size: 16 }),
327
+ disabled: nothingSaid,
328
+ run: () => setFinding(count => count + 1),
329
+ },
330
+ ...(callable ? [(0, voice_call_bar_1.callAction)(callState, call, t)] : []),
331
+ ],
332
+ ...addons.actions,
333
+ ], [actions, addons.actions, t, nothingSaid, callable, callState, call]);
187
334
  const outbox = React.useMemo(() => ({ resend: id => void store.resend(id), discard: id => store.discard(id) }), [store]);
188
335
  const images = React.useCallback((timestamp, index) => server.getMessageImage(store.sessionId, timestamp, index), [server, store]);
189
336
  // A choice in a card of a reply answers this conversation, wherever it is shown, not the one in front.
@@ -194,7 +341,7 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
194
341
  const onTyping = React.useCallback((typing) => presence.type(store.sessionId, typing), [presence, store]);
195
342
  const viewing = people_1.PresenceUtil.viewing(info === null || info === void 0 ? void 0 : info.people);
196
343
  return (React.createElement(people_1.MessagePeople.Provider, { value: people },
197
- React.createElement("section", { className: `ta-session ${compact ? 'ta-session-compact' : ''}` },
344
+ React.createElement("section", { className: `ta-session ${compact ? 'ta-session-compact' : ''}`, ...screen_protocol_1.ScreenUtil.part(partId) },
198
345
  !compact && (React.createElement("header", { className: "ta-session-header" },
199
346
  leading,
200
347
  React.createElement("div", { className: "ta-session-title" },
@@ -202,16 +349,17 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
202
349
  info && (React.createElement("span", { className: "ta-muted ta-path", title: info.cwd }, message_1.MessageUtil.shortPath(info.cwd)))),
203
350
  React.createElement(people_1.PeopleFaces, { people: viewing, size: 24, label: t('ta.presence.viewing') }),
204
351
  trailing)),
352
+ finding > 0 && React.createElement(conversation_find_1.ConversationFind, { store: store, state: state, rows: rows, scroller: scroller, focusKey: finding, onClose: closeFind }),
205
353
  React.createElement("div", { className: "ta-scroll ta-conversation", ref: scroller },
206
354
  React.createElement("div", { className: "ta-thread" },
207
- state.start > 0 && (React.createElement("div", { className: `ta-earlier ${state.loadingEarlier ? '' : 'ta-earlier-idle'}`, role: "status", "aria-label": state.loadingEarlier ? t('ta.session.earlier') : undefined, ...conversation_scroll_1.SCROLL_SKIP },
355
+ state.start > 0 && (React.createElement("div", { className: `ta-earlier ${state.loadingEarlier ? '' : 'ta-earlier-idle'}`, role: "status", "aria-label": state.loadingEarlier ? t('ta.session.earlier') : undefined, ...conversation_scroll_util_1.SCROLL_SKIP },
208
356
  React.createElement("span", { className: "ta-spinner" }))),
209
357
  state.messages.length === 0 && (empty !== null && empty !== void 0 ? empty : React.createElement("div", { className: "ta-empty" }, t('ta.session.empty', { cwd: (_a = info === null || info === void 0 ? void 0 : info.cwd) !== null && _a !== void 0 ? _a : '.' }))),
210
358
  React.createElement(message_list_1.ConversationSession.Provider, { value: info },
211
359
  React.createElement(message_footer_1.MessageActions.Provider, { value: messageActions },
212
360
  React.createElement(media_1.FileUrls.Provider, { value: fileUrl },
213
361
  React.createElement(link_2.OpenLink.Provider, { value: openLink },
214
- React.createElement(message_list_1.MessageImages.Provider, { value: images },
362
+ React.createElement(message_images_1.MessageImages.Provider, { value: images },
215
363
  React.createElement(code_renderers_1.CodeReply.Provider, { value: reply },
216
364
  React.createElement(message_list_1.MessageList, { state: state, outbox: outbox, rows: rows }))))))))),
217
365
  React.createElement("div", { className: "ta-bottom" },
@@ -225,10 +373,12 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
225
373
  React.createElement(grow_box_1.GrowBox, null,
226
374
  React.createElement(people_1.PresenceLine, { people: info === null || info === void 0 ? void 0 : info.people, working: state.working }),
227
375
  dialog && React.createElement(dialog_view_1.DialogView, { key: dialog.id, request: dialog, respond: response => store.respondUi(response).catch(fail) }),
376
+ (info === null || info === void 0 ? void 0 : info.movedFrom) && (React.createElement(moved_notice_1.MovedNotice, { server: server, sessionId: store.sessionId, sessionFile: info.sessionFile, movedFrom: info.movedFrom, cwd: info.cwd })),
228
377
  aboveComposer,
229
378
  widgetsAt('aboveEditor'),
230
- addons.above),
231
- React.createElement(composer_1.Composer, { ref: composer, store: store, server: server, workspace: workspace, working: state.working, commands: settings.commands, cwd: info === null || info === void 0 ? void 0 : info.cwd, actions: [actions, ...addons.actions], recentShots: recentShots, onStopTimed: stopTimed, onTyping: onTyping, onError: fail }),
379
+ addons.above,
380
+ React.createElement(voice_call_bar_1.CallBar, { state: callState, call: call })),
381
+ React.createElement(composer_1.Composer, { ref: composer, store: store, server: server, workspace: workspace, working: state.working, commands: settings.commands, cwd: info === null || info === void 0 ? void 0 : info.cwd, actions: composerActions, recentShots: recentShots, onStopTimed: stopTimed, onTyping: onTyping, draft: (info === null || info === void 0 ? void 0 : info.sessionFile) ? drafts_protocol_1.DraftPlaces.chat(info.sessionFile) : undefined, onTalkCall: callable && !callState.active ? (0, voice_call_bar_1.talkCall)(call) : undefined, talkCalls: talkCalls, onError: fail }),
232
382
  belowComposer,
233
383
  widgetsAt('belowEditor'),
234
384
  statuses.length > 0 && (React.createElement("div", { className: "ta-statusline" }, statuses.map(([key, text]) => (React.createElement(StatusChip, { key: key, text: text })))))))));
@@ -1,5 +1,6 @@
1
1
  import { type TaPackageInfo } from '@celljs/ta-protocol';
2
2
  import { type LucideIcon } from 'lucide-react';
3
+ import type { WebSettingsGroup } from '../extension/web-extension-api';
3
4
  import type { MessageId } from '../i18n/messages';
4
5
  import type { useT } from '../i18n/use-t';
5
6
  import type { FontSize, LanguageSetting, ThemeSetting } from '../settings/settings-protocol';
@@ -10,6 +11,11 @@ export declare const FONT_SIZES: Choice<FontSize>[];
10
11
  export declare const LANGUAGES: Choice<LanguageSetting>[];
11
12
  /** The model has the icon of the + menu's model (ModelPicker), the others their own. */
12
13
  export declare const GROUP_ICONS: Record<string, LucideIcon>;
14
+ /** The parts of the settings, in their order: by what the user looks for, not where a setting is kept. */
15
+ export declare const SETTINGS_GROUPS: readonly {
16
+ id: WebSettingsGroup;
17
+ title: MessageId;
18
+ }[];
13
19
  /** The keys of the page and of the message box; `Mod` is ⌘ on a Mac, Ctrl elsewhere. */
14
20
  export declare const SHORTCUTS: {
15
21
  keys: string;
@@ -32,6 +38,6 @@ export declare function navigationRows(navigation: Navigation, t: ReturnType<typ
32
38
  export declare function packageLabel(pkg: TaPackageInfo, language: string): {
33
39
  title: string;
34
40
  summary: string | undefined;
35
- icon: import("..").WebIcon;
41
+ icon: import("../extension/web-extension-api").WebIcon;
36
42
  };
37
43
  //# sourceMappingURL=settings-choices.d.ts.map
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.SLOTS = exports.SHORTCUTS = exports.GROUP_ICONS = exports.LANGUAGES = exports.FONT_SIZES = exports.THEMES = void 0;
36
+ exports.SLOTS = exports.SHORTCUTS = exports.SETTINGS_GROUPS = exports.GROUP_ICONS = exports.LANGUAGES = exports.FONT_SIZES = exports.THEMES = void 0;
37
37
  exports.usePackages = usePackages;
38
38
  exports.navigationRows = navigationRows;
39
39
  exports.packageLabel = packageLabel;
@@ -63,6 +63,14 @@ exports.LANGUAGES = [
63
63
  ];
64
64
  /** The model has the icon of the + menu's model (ModelPicker), the others their own. */
65
65
  exports.GROUP_ICONS = { model: lucide_react_1.Box, conversation: lucide_react_1.MessagesSquare, context: lucide_react_1.Layers, tools: lucide_react_1.Wrench };
66
+ /** The parts of the settings, in their order: by what the user looks for, not where a setting is kept. */
67
+ exports.SETTINGS_GROUPS = [
68
+ { id: 'general', title: 'ta.settings.general' },
69
+ { id: 'ta', title: 'ta.settings.agent' },
70
+ { id: 'devices', title: 'ta.settings.devices' },
71
+ { id: 'privacy', title: 'ta.settings.privacy' },
72
+ { id: 'extensions', title: 'ta.packages' },
73
+ ];
66
74
  /** The keys of the page and of the message box; `Mod` is ⌘ on a Mac, Ctrl elsewhere. */
67
75
  exports.SHORTCUTS = [
68
76
  { keys: 'Mod+,', label: 'ta.shortcut.settings' },