@celljs/ta-web 4.9.1 → 4.11.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 (614) hide show
  1. package/README.en.md +8 -7
  2. package/README.md +8 -7
  3. package/esm/browser/assistant/assistant-chat-list.d.ts +11 -0
  4. package/esm/browser/assistant/assistant-chat-list.js +20 -2
  5. package/esm/browser/assistant/assistant-extension.d.ts +8 -1
  6. package/esm/browser/assistant/assistant-extension.js +25 -0
  7. package/esm/browser/assistant/assistant-protocol.d.ts +5 -2
  8. package/esm/browser/assistant/assistant-task-book.d.ts +12 -2
  9. package/esm/browser/assistant/assistant-task-book.js +23 -4
  10. package/esm/browser/assistant/assistant-task-source.d.ts +1 -1
  11. package/esm/browser/assistant/assistant-task-source.js +5 -10
  12. package/esm/browser/assistant/assistant-task-util.d.ts +14 -2
  13. package/esm/browser/assistant/assistant-task-util.js +62 -13
  14. package/esm/browser/assistant/assistant-view.js +117 -71
  15. package/esm/browser/assistant/assistant.d.ts +28 -5
  16. package/esm/browser/assistant/assistant.js +96 -22
  17. package/esm/browser/avatar/dino-face.js +1 -2
  18. package/esm/browser/chat/chat-packages.d.ts +39 -0
  19. package/esm/browser/chat/chat-packages.js +70 -0
  20. package/esm/browser/chat/chat-protocol.d.ts +28 -1
  21. package/esm/browser/chat/chat-stores.d.ts +62 -0
  22. package/esm/browser/chat/chat-stores.js +129 -0
  23. package/esm/browser/chat/chat-util.d.ts +17 -0
  24. package/esm/browser/chat/chat-util.js +61 -0
  25. package/esm/browser/chat/chat-view.js +45 -17
  26. package/esm/browser/chat/chat.d.ts +41 -41
  27. package/esm/browser/chat/chat.js +276 -190
  28. package/esm/browser/components/account-menu.d.ts +0 -2
  29. package/esm/browser/components/account-menu.js +1 -27
  30. package/esm/browser/components/agent-settings-view.d.ts +3 -2
  31. package/esm/browser/components/agent-settings-view.js +2 -1
  32. package/esm/browser/components/app-nav.d.ts +11 -5
  33. package/esm/browser/components/app-nav.js +39 -17
  34. package/esm/browser/components/app-shell-hooks.d.ts +2 -2
  35. package/esm/browser/components/app-shell-hooks.js +12 -6
  36. package/esm/browser/components/app-view.js +150 -36
  37. package/esm/browser/components/busy.d.ts +25 -0
  38. package/esm/browser/components/busy.js +52 -0
  39. package/esm/browser/components/chat-icon.d.ts +29 -0
  40. package/esm/browser/components/chat-icon.js +78 -0
  41. package/esm/browser/components/chat-list.d.ts +93 -8
  42. package/esm/browser/components/chat-list.js +411 -60
  43. package/esm/browser/components/chat-seen.d.ts +53 -0
  44. package/esm/browser/components/chat-seen.js +101 -0
  45. package/esm/browser/components/composer-box.d.ts +18 -8
  46. package/esm/browser/components/composer-box.js +199 -52
  47. package/esm/browser/components/composer.d.ts +13 -6
  48. package/esm/browser/components/composer.js +8 -5
  49. package/esm/browser/components/connection-bar.js +50 -17
  50. package/esm/browser/components/context-menu.d.ts +30 -4
  51. package/esm/browser/components/context-menu.js +199 -37
  52. package/esm/browser/components/conversation-scroll.d.ts +136 -6
  53. package/esm/browser/components/conversation-scroll.js +467 -108
  54. package/esm/browser/components/custom-host.d.ts +3 -0
  55. package/esm/browser/components/custom-host.js +14 -0
  56. package/esm/browser/components/directory-commands.d.ts +6 -0
  57. package/esm/browser/components/directory-commands.js +34 -0
  58. package/esm/browser/components/discover-view.d.ts +11 -4
  59. package/esm/browser/components/discover-view.js +20 -11
  60. package/esm/browser/components/dismiss.d.ts +3 -0
  61. package/esm/browser/components/dismiss.js +29 -0
  62. package/esm/browser/components/earlier-messages.d.ts +34 -2
  63. package/esm/browser/components/earlier-messages.js +42 -23
  64. package/esm/browser/components/editor-area.d.ts +6 -20
  65. package/esm/browser/components/editor-area.js +10 -96
  66. package/esm/browser/components/empty-pictures.d.ts +0 -2
  67. package/esm/browser/components/empty-pictures.js +0 -16
  68. package/esm/browser/components/fold-text.d.ts +20 -0
  69. package/esm/browser/components/fold-text.js +66 -0
  70. package/esm/browser/components/folder-picker.d.ts +6 -3
  71. package/esm/browser/components/folder-picker.js +27 -9
  72. package/esm/browser/components/full-screen.d.ts +9 -0
  73. package/esm/browser/components/full-screen.js +26 -0
  74. package/esm/browser/components/grow-box.d.ts +9 -0
  75. package/esm/browser/components/grow-box.js +50 -0
  76. package/esm/browser/components/held-talk.d.ts +28 -0
  77. package/esm/browser/components/held-talk.js +76 -0
  78. package/esm/browser/components/hold-to-talk.d.ts +22 -0
  79. package/esm/browser/components/hold-to-talk.js +29 -0
  80. package/esm/browser/components/host-view.d.ts +1 -1
  81. package/esm/browser/components/icon.d.ts +5 -3
  82. package/esm/browser/components/icon.js +9 -9
  83. package/esm/browser/components/image-viewer.d.ts +132 -0
  84. package/esm/browser/components/image-viewer.js +434 -0
  85. package/esm/browser/components/launcher-search-util.d.ts +4 -3
  86. package/esm/browser/components/launcher-search-util.js +12 -4
  87. package/esm/browser/components/lightbox.d.ts +14 -0
  88. package/esm/browser/components/lightbox.js +25 -0
  89. package/esm/browser/components/list-rows.d.ts +9 -1
  90. package/esm/browser/components/list-rows.js +17 -3
  91. package/esm/browser/components/markdown.d.ts +6 -2
  92. package/esm/browser/components/markdown.js +60 -14
  93. package/esm/browser/components/media.js +20 -12
  94. package/esm/browser/components/message-actions.js +2 -0
  95. package/esm/browser/components/message-footer.d.ts +22 -2
  96. package/esm/browser/components/message-footer.js +47 -13
  97. package/esm/browser/components/message-list.d.ts +78 -6
  98. package/esm/browser/components/message-list.js +281 -36
  99. package/esm/browser/components/message-menu.d.ts +3 -1
  100. package/esm/browser/components/message-menu.js +24 -4
  101. package/esm/browser/components/model-picker.js +1 -0
  102. package/esm/browser/components/nav-places.d.ts +37 -3
  103. package/esm/browser/components/nav-places.js +32 -7
  104. package/esm/browser/components/notice-center.js +34 -0
  105. package/esm/browser/components/notice-face.d.ts +10 -0
  106. package/esm/browser/components/notice-face.js +28 -0
  107. package/esm/browser/components/phone-shell.d.ts +27 -2
  108. package/esm/browser/components/phone-shell.js +98 -9
  109. package/esm/browser/components/picture.d.ts +8 -1
  110. package/esm/browser/components/picture.js +12 -1
  111. package/esm/browser/components/plus-menu.d.ts +23 -0
  112. package/esm/browser/components/plus-menu.js +90 -0
  113. package/esm/browser/components/recent-shot.d.ts +15 -0
  114. package/esm/browser/components/recent-shot.js +174 -0
  115. package/esm/browser/components/relay-view.js +10 -3
  116. package/esm/browser/components/run-status.d.ts +1 -1
  117. package/esm/browser/components/run-status.js +17 -29
  118. package/esm/browser/components/said-text.d.ts +6 -0
  119. package/esm/browser/components/said-text.js +14 -0
  120. package/esm/browser/components/scan-screen.d.ts +10 -0
  121. package/esm/browser/components/scan-screen.js +230 -0
  122. package/esm/browser/components/search-page.js +10 -6
  123. package/esm/browser/components/session-settings.d.ts +8 -3
  124. package/esm/browser/components/session-settings.js +15 -1
  125. package/esm/browser/components/session-view.js +36 -22
  126. package/esm/browser/components/settings-choices.d.ts +1 -0
  127. package/esm/browser/components/settings-choices.js +3 -2
  128. package/esm/browser/components/settings-controls.d.ts +5 -3
  129. package/esm/browser/components/settings-controls.js +10 -1
  130. package/esm/browser/components/settings-parts.d.ts +2 -2
  131. package/esm/browser/components/settings-parts.js +69 -15
  132. package/esm/browser/components/swipe-row.d.ts +2 -2
  133. package/esm/browser/components/swipe-row.js +7 -3
  134. package/esm/browser/components/tool-view.js +21 -14
  135. package/esm/browser/components/unseen-drop.d.ts +39 -0
  136. package/esm/browser/components/unseen-drop.js +219 -0
  137. package/esm/browser/components/use-seen-chats.d.ts +8 -0
  138. package/esm/browser/components/use-seen-chats.js +49 -0
  139. package/esm/browser/components/voice-button.d.ts +7 -1
  140. package/esm/browser/components/voice-button.js +15 -2
  141. package/esm/browser/components/voice-picker.d.ts +6 -0
  142. package/esm/browser/components/voice-picker.js +53 -0
  143. package/esm/browser/components/voice-talk.d.ts +51 -0
  144. package/esm/browser/components/voice-talk.js +242 -0
  145. package/esm/browser/components/web-composer.d.ts +4 -2
  146. package/esm/browser/components/web-composer.js +8 -4
  147. package/esm/browser/components/workbench-tabs.d.ts +41 -0
  148. package/esm/browser/components/workbench-tabs.js +193 -0
  149. package/esm/browser/components/workbench-toggle.d.ts +0 -13
  150. package/esm/browser/components/workbench-toggle.js +1 -28
  151. package/esm/browser/device/code-scan.d.ts +55 -0
  152. package/esm/browser/device/code-scan.js +137 -0
  153. package/esm/browser/device/code-vision.d.ts +51 -0
  154. package/esm/browser/device/code-vision.js +100 -0
  155. package/esm/browser/device/device.d.ts +3 -0
  156. package/esm/browser/device/device.js +11 -1
  157. package/esm/browser/device/hold.d.ts +42 -0
  158. package/esm/browser/device/hold.js +134 -0
  159. package/esm/browser/device/launch-screen.d.ts +1 -1
  160. package/esm/browser/device/launch-screen.js +1 -1
  161. package/esm/browser/device/long-press.d.ts +12 -0
  162. package/esm/browser/device/long-press.js +44 -13
  163. package/esm/browser/device/own-gestures.d.ts +25 -0
  164. package/esm/browser/device/own-gestures.js +39 -0
  165. package/esm/browser/device/pull-down.d.ts +4 -2
  166. package/esm/browser/device/pull-down.js +67 -78
  167. package/esm/browser/device/recent-shots.d.ts +45 -0
  168. package/esm/browser/device/recent-shots.js +142 -0
  169. package/esm/browser/device/row-swipe.d.ts +35 -10
  170. package/esm/browser/device/row-swipe.js +154 -71
  171. package/esm/browser/device/shake-undo.d.ts +16 -0
  172. package/esm/browser/device/shake-undo.js +59 -0
  173. package/esm/browser/device/sheet-swipe.d.ts +118 -18
  174. package/esm/browser/device/sheet-swipe.js +414 -108
  175. package/esm/browser/extension/extension-view.d.ts +10 -0
  176. package/esm/browser/extension/extension-view.js +6 -0
  177. package/esm/browser/extension/icons.js +15 -2
  178. package/esm/browser/extension/web-api-components.d.ts +269 -0
  179. package/esm/browser/extension/web-api-components.js +2 -0
  180. package/esm/browser/extension/web-api-contributions.d.ts +385 -0
  181. package/esm/browser/extension/web-api-contributions.js +2 -0
  182. package/esm/browser/extension/web-api-desktop.d.ts +55 -0
  183. package/esm/browser/extension/web-api-desktop.js +2 -0
  184. package/esm/browser/extension/web-api-terminal.d.ts +71 -0
  185. package/esm/browser/extension/web-api-terminal.js +2 -0
  186. package/esm/browser/extension/web-editor-tabs.d.ts +42 -0
  187. package/esm/browser/extension/web-editor-tabs.js +137 -0
  188. package/esm/browser/extension/web-extension-api.d.ts +218 -521
  189. package/esm/browser/extension/web-extension-code.d.ts +6 -0
  190. package/esm/browser/extension/web-extension-code.js +24 -0
  191. package/esm/browser/extension/web-extension-context.d.ts +78 -0
  192. package/esm/browser/extension/web-extension-context.js +346 -0
  193. package/esm/browser/extension/web-extension-protocol.d.ts +66 -6
  194. package/esm/browser/extension/web-extension-protocol.js +41 -0
  195. package/esm/browser/extension/web-extension-run.d.ts +54 -0
  196. package/esm/browser/extension/web-extension-run.js +120 -0
  197. package/esm/browser/extension/web-extensions.d.ts +41 -68
  198. package/esm/browser/extension/web-extensions.js +188 -487
  199. package/esm/browser/extension/web-home.d.ts +19 -0
  200. package/esm/browser/extension/web-home.js +72 -0
  201. package/esm/browser/extension/web-pages.d.ts +13 -3
  202. package/esm/browser/extension/web-pages.js +23 -3
  203. package/esm/browser/extension/web-session-notices.d.ts +36 -0
  204. package/esm/browser/extension/web-session-notices.js +174 -0
  205. package/esm/browser/extension/web-sharing.d.ts +2 -0
  206. package/esm/browser/extension/web-sharing.js +4 -0
  207. package/esm/browser/files/files-protocol.d.ts +25 -0
  208. package/esm/browser/files/files-protocol.js +2 -0
  209. package/esm/browser/files/files.d.ts +35 -0
  210. package/esm/browser/files/files.js +119 -0
  211. package/esm/browser/game/game-host.d.ts +27 -0
  212. package/esm/browser/game/game-host.js +127 -0
  213. package/esm/browser/game/game-loader.d.ts +10 -0
  214. package/esm/browser/game/game-loader.js +28 -0
  215. package/esm/browser/game/game-protocol.d.ts +49 -0
  216. package/esm/browser/game/game-protocol.js +2 -0
  217. package/esm/browser/game/game-runner.d.ts +27 -0
  218. package/esm/browser/game/game-runner.js +60 -0
  219. package/esm/browser/game/game-util.d.ts +29 -0
  220. package/esm/browser/game/game-util.js +180 -0
  221. package/esm/browser/game/game-view.d.ts +12 -0
  222. package/esm/browser/game/game-view.js +31 -0
  223. package/esm/browser/game/game3d-protocol.d.ts +51 -0
  224. package/esm/browser/game/game3d-protocol.js +2 -0
  225. package/esm/browser/game/game3d-runner.d.ts +27 -0
  226. package/esm/browser/game/game3d-runner.js +149 -0
  227. package/esm/browser/hooks.d.ts +5 -1
  228. package/esm/browser/hooks.js +13 -2
  229. package/esm/browser/i18n/locales.d.ts +105 -3
  230. package/esm/browser/i18n/messages.d.ts +104 -2
  231. package/esm/browser/i18n/messages.js +215 -11
  232. package/esm/browser/index.d.ts +15 -0
  233. package/esm/browser/index.js +15 -0
  234. package/esm/browser/links/links-protocol.d.ts +5 -0
  235. package/esm/browser/links/links.d.ts +19 -7
  236. package/esm/browser/links/links.js +57 -11
  237. package/esm/browser/markdown/code-renderers.d.ts +4 -0
  238. package/esm/browser/markdown/code-renderers.js +4 -0
  239. package/esm/browser/notices/notices-protocol.d.ts +26 -1
  240. package/esm/browser/notices/notices.d.ts +3 -1
  241. package/esm/browser/notices/notices.js +26 -12
  242. package/esm/browser/notices/session-notices.d.ts +69 -0
  243. package/esm/browser/notices/session-notices.js +92 -0
  244. package/esm/browser/offline/device-values.d.ts +55 -0
  245. package/esm/browser/offline/device-values.js +151 -0
  246. package/esm/browser/offline/kept-chats-protocol.d.ts +17 -0
  247. package/esm/browser/offline/kept-chats-protocol.js +2 -0
  248. package/esm/browser/offline/kept-chats.d.ts +47 -0
  249. package/esm/browser/offline/kept-chats.js +146 -0
  250. package/esm/browser/offline/offline-reads.d.ts +44 -0
  251. package/esm/browser/offline/offline-reads.js +109 -0
  252. package/esm/browser/settings/navigation.d.ts +3 -2
  253. package/esm/browser/settings/navigation.js +4 -3
  254. package/esm/browser/settings/settings-protocol.d.ts +17 -0
  255. package/esm/browser/settings/settings-protocol.js +20 -4
  256. package/esm/browser/state/state-protocol.d.ts +8 -1
  257. package/esm/browser/state/state.d.ts +2 -0
  258. package/esm/browser/state/state.js +21 -2
  259. package/esm/browser/style/base.d.ts +1 -1
  260. package/esm/browser/style/base.js +27 -1
  261. package/esm/browser/style/conversation.d.ts +1 -1
  262. package/esm/browser/style/conversation.js +95 -17
  263. package/esm/browser/style/device.js +42 -5
  264. package/esm/browser/style/layout.d.ts +1 -1
  265. package/esm/browser/style/layout.js +252 -67
  266. package/esm/browser/style/pages.d.ts +1 -1
  267. package/esm/browser/style/pages.js +38 -2
  268. package/esm/browser/style/phone.d.ts +1 -1
  269. package/esm/browser/style/phone.js +15 -0
  270. package/esm/browser/style/shell.d.ts +1 -1
  271. package/esm/browser/style/shell.js +76 -9
  272. package/esm/browser/style/surfaces.d.ts +1 -1
  273. package/esm/browser/style/surfaces.js +2 -2
  274. package/esm/browser/style/tints.d.ts +27 -0
  275. package/esm/browser/style/tints.js +56 -0
  276. package/esm/browser/style.js +13 -1
  277. package/esm/browser/util/composer.d.ts +6 -0
  278. package/esm/browser/util/composer.js +16 -0
  279. package/esm/browser/util/desktop.d.ts +19 -1
  280. package/esm/browser/util/desktop.js +15 -0
  281. package/esm/browser/util/frame.d.ts +5 -4
  282. package/esm/browser/util/frame.js +5 -4
  283. package/esm/browser/util/link.d.ts +18 -0
  284. package/esm/browser/util/link.js +66 -1
  285. package/esm/browser/util/markdown.d.ts +22 -2
  286. package/esm/browser/util/markdown.js +120 -6
  287. package/esm/browser/util/message.d.ts +5 -0
  288. package/esm/browser/util/message.js +30 -0
  289. package/esm/browser/util/process.d.ts +35 -2
  290. package/esm/browser/util/process.js +79 -4
  291. package/esm/browser/util/progress.d.ts +19 -1
  292. package/esm/browser/util/progress.js +57 -4
  293. package/esm/browser/util/quote.d.ts +19 -0
  294. package/esm/browser/util/quote.js +58 -0
  295. package/esm/browser/util/tool.d.ts +19 -2
  296. package/esm/browser/util/tool.js +70 -2
  297. package/esm/browser/util/voice.d.ts +49 -6
  298. package/esm/browser/util/voice.js +271 -26
  299. package/esm/browser/util/zoom.d.ts +46 -0
  300. package/esm/browser/util/zoom.js +96 -0
  301. package/esm/browser/workbench-calls.d.ts +61 -0
  302. package/esm/browser/workbench-calls.js +146 -0
  303. package/esm/browser/workbench-protocol.d.ts +36 -3
  304. package/esm/browser/workbench-util.d.ts +22 -4
  305. package/esm/browser/workbench-util.js +37 -7
  306. package/esm/browser/workbench.d.ts +47 -6
  307. package/esm/browser/workbench.js +191 -43
  308. package/lib/browser/assistant/assistant-chat-list.d.ts +11 -0
  309. package/lib/browser/assistant/assistant-chat-list.js +21 -2
  310. package/lib/browser/assistant/assistant-extension.d.ts +8 -1
  311. package/lib/browser/assistant/assistant-extension.js +25 -0
  312. package/lib/browser/assistant/assistant-protocol.d.ts +5 -2
  313. package/lib/browser/assistant/assistant-task-book.d.ts +12 -2
  314. package/lib/browser/assistant/assistant-task-book.js +23 -4
  315. package/lib/browser/assistant/assistant-task-source.d.ts +1 -1
  316. package/lib/browser/assistant/assistant-task-source.js +5 -10
  317. package/lib/browser/assistant/assistant-task-util.d.ts +14 -2
  318. package/lib/browser/assistant/assistant-task-util.js +62 -13
  319. package/lib/browser/assistant/assistant-view.js +113 -67
  320. package/lib/browser/assistant/assistant.d.ts +28 -5
  321. package/lib/browser/assistant/assistant.js +96 -22
  322. package/lib/browser/avatar/dino-face.js +1 -2
  323. package/lib/browser/chat/chat-packages.d.ts +40 -0
  324. package/lib/browser/chat/chat-packages.js +74 -0
  325. package/lib/browser/chat/chat-protocol.d.ts +28 -1
  326. package/lib/browser/chat/chat-stores.d.ts +63 -0
  327. package/lib/browser/chat/chat-stores.js +133 -0
  328. package/lib/browser/chat/chat-util.d.ts +18 -0
  329. package/lib/browser/chat/chat-util.js +64 -0
  330. package/lib/browser/chat/chat-view.js +44 -16
  331. package/lib/browser/chat/chat.d.ts +41 -41
  332. package/lib/browser/chat/chat.js +277 -191
  333. package/lib/browser/components/account-menu.d.ts +0 -2
  334. package/lib/browser/components/account-menu.js +2 -29
  335. package/lib/browser/components/agent-settings-view.d.ts +3 -2
  336. package/lib/browser/components/agent-settings-view.js +2 -1
  337. package/lib/browser/components/app-nav.d.ts +11 -5
  338. package/lib/browser/components/app-nav.js +35 -13
  339. package/lib/browser/components/app-shell-hooks.d.ts +2 -2
  340. package/lib/browser/components/app-shell-hooks.js +12 -6
  341. package/lib/browser/components/app-view.js +145 -31
  342. package/lib/browser/components/busy.d.ts +26 -0
  343. package/lib/browser/components/busy.js +91 -0
  344. package/lib/browser/components/chat-icon.d.ts +30 -0
  345. package/lib/browser/components/chat-icon.js +117 -0
  346. package/lib/browser/components/chat-list.d.ts +93 -8
  347. package/lib/browser/components/chat-list.js +412 -60
  348. package/lib/browser/components/chat-seen.d.ts +54 -0
  349. package/lib/browser/components/chat-seen.js +104 -0
  350. package/lib/browser/components/composer-box.d.ts +18 -8
  351. package/lib/browser/components/composer-box.js +198 -51
  352. package/lib/browser/components/composer.d.ts +13 -6
  353. package/lib/browser/components/composer.js +7 -4
  354. package/lib/browser/components/connection-bar.js +48 -15
  355. package/lib/browser/components/context-menu.d.ts +30 -4
  356. package/lib/browser/components/context-menu.js +198 -36
  357. package/lib/browser/components/conversation-scroll.d.ts +136 -6
  358. package/lib/browser/components/conversation-scroll.js +469 -109
  359. package/lib/browser/components/custom-host.d.ts +4 -0
  360. package/lib/browser/components/custom-host.js +50 -0
  361. package/lib/browser/components/directory-commands.d.ts +7 -0
  362. package/lib/browser/components/directory-commands.js +70 -0
  363. package/lib/browser/components/discover-view.d.ts +11 -4
  364. package/lib/browser/components/discover-view.js +19 -10
  365. package/lib/browser/components/dismiss.d.ts +4 -0
  366. package/lib/browser/components/dismiss.js +65 -0
  367. package/lib/browser/components/earlier-messages.d.ts +34 -2
  368. package/lib/browser/components/earlier-messages.js +44 -24
  369. package/lib/browser/components/editor-area.d.ts +6 -20
  370. package/lib/browser/components/editor-area.js +11 -97
  371. package/lib/browser/components/empty-pictures.d.ts +0 -2
  372. package/lib/browser/components/empty-pictures.js +0 -17
  373. package/lib/browser/components/fold-text.d.ts +21 -0
  374. package/lib/browser/components/fold-text.js +103 -0
  375. package/lib/browser/components/folder-picker.d.ts +6 -3
  376. package/lib/browser/components/folder-picker.js +27 -9
  377. package/lib/browser/components/full-screen.d.ts +10 -0
  378. package/lib/browser/components/full-screen.js +62 -0
  379. package/lib/browser/components/grow-box.d.ts +10 -0
  380. package/lib/browser/components/grow-box.js +86 -0
  381. package/lib/browser/components/held-talk.d.ts +29 -0
  382. package/lib/browser/components/held-talk.js +79 -0
  383. package/lib/browser/components/hold-to-talk.d.ts +23 -0
  384. package/lib/browser/components/hold-to-talk.js +65 -0
  385. package/lib/browser/components/host-view.d.ts +1 -1
  386. package/lib/browser/components/icon.d.ts +5 -3
  387. package/lib/browser/components/icon.js +11 -9
  388. package/lib/browser/components/image-viewer.d.ts +133 -0
  389. package/lib/browser/components/image-viewer.js +472 -0
  390. package/lib/browser/components/launcher-search-util.d.ts +4 -3
  391. package/lib/browser/components/launcher-search-util.js +12 -4
  392. package/lib/browser/components/lightbox.d.ts +15 -0
  393. package/lib/browser/components/lightbox.js +61 -0
  394. package/lib/browser/components/list-rows.d.ts +9 -1
  395. package/lib/browser/components/list-rows.js +18 -3
  396. package/lib/browser/components/markdown.d.ts +6 -2
  397. package/lib/browser/components/markdown.js +60 -14
  398. package/lib/browser/components/media.js +21 -13
  399. package/lib/browser/components/message-actions.js +2 -0
  400. package/lib/browser/components/message-footer.d.ts +22 -2
  401. package/lib/browser/components/message-footer.js +49 -12
  402. package/lib/browser/components/message-list.d.ts +78 -6
  403. package/lib/browser/components/message-list.js +281 -32
  404. package/lib/browser/components/message-menu.d.ts +3 -1
  405. package/lib/browser/components/message-menu.js +23 -3
  406. package/lib/browser/components/model-picker.js +1 -0
  407. package/lib/browser/components/nav-places.d.ts +37 -3
  408. package/lib/browser/components/nav-places.js +35 -7
  409. package/lib/browser/components/notice-center.js +34 -0
  410. package/lib/browser/components/notice-face.d.ts +11 -0
  411. package/lib/browser/components/notice-face.js +64 -0
  412. package/lib/browser/components/phone-shell.d.ts +27 -2
  413. package/lib/browser/components/phone-shell.js +99 -10
  414. package/lib/browser/components/picture.d.ts +8 -1
  415. package/lib/browser/components/picture.js +13 -1
  416. package/lib/browser/components/plus-menu.d.ts +24 -0
  417. package/lib/browser/components/plus-menu.js +126 -0
  418. package/lib/browser/components/recent-shot.d.ts +16 -0
  419. package/lib/browser/components/recent-shot.js +210 -0
  420. package/lib/browser/components/relay-view.js +10 -3
  421. package/lib/browser/components/run-status.d.ts +1 -1
  422. package/lib/browser/components/run-status.js +17 -29
  423. package/lib/browser/components/said-text.d.ts +7 -0
  424. package/lib/browser/components/said-text.js +50 -0
  425. package/lib/browser/components/scan-screen.d.ts +11 -0
  426. package/lib/browser/components/scan-screen.js +266 -0
  427. package/lib/browser/components/search-page.js +10 -6
  428. package/lib/browser/components/session-settings.d.ts +8 -3
  429. package/lib/browser/components/session-settings.js +15 -1
  430. package/lib/browser/components/session-view.js +32 -18
  431. package/lib/browser/components/settings-choices.d.ts +1 -0
  432. package/lib/browser/components/settings-choices.js +2 -1
  433. package/lib/browser/components/settings-controls.d.ts +5 -3
  434. package/lib/browser/components/settings-controls.js +10 -1
  435. package/lib/browser/components/settings-parts.d.ts +2 -2
  436. package/lib/browser/components/settings-parts.js +67 -13
  437. package/lib/browser/components/swipe-row.d.ts +2 -2
  438. package/lib/browser/components/swipe-row.js +7 -3
  439. package/lib/browser/components/tool-view.js +21 -14
  440. package/lib/browser/components/unseen-drop.d.ts +40 -0
  441. package/lib/browser/components/unseen-drop.js +256 -0
  442. package/lib/browser/components/use-seen-chats.d.ts +9 -0
  443. package/lib/browser/components/use-seen-chats.js +85 -0
  444. package/lib/browser/components/voice-button.d.ts +7 -1
  445. package/lib/browser/components/voice-button.js +16 -2
  446. package/lib/browser/components/voice-picker.d.ts +7 -0
  447. package/lib/browser/components/voice-picker.js +89 -0
  448. package/lib/browser/components/voice-talk.d.ts +52 -0
  449. package/lib/browser/components/voice-talk.js +281 -0
  450. package/lib/browser/components/web-composer.d.ts +4 -2
  451. package/lib/browser/components/web-composer.js +7 -3
  452. package/lib/browser/components/workbench-tabs.d.ts +42 -0
  453. package/lib/browser/components/workbench-tabs.js +232 -0
  454. package/lib/browser/components/workbench-toggle.d.ts +0 -13
  455. package/lib/browser/components/workbench-toggle.js +1 -29
  456. package/lib/browser/device/code-scan.d.ts +56 -0
  457. package/lib/browser/device/code-scan.js +141 -0
  458. package/lib/browser/device/code-vision.d.ts +52 -0
  459. package/lib/browser/device/code-vision.js +103 -0
  460. package/lib/browser/device/device.d.ts +3 -0
  461. package/lib/browser/device/device.js +11 -1
  462. package/lib/browser/device/hold.d.ts +43 -0
  463. package/lib/browser/device/hold.js +171 -0
  464. package/lib/browser/device/launch-screen.d.ts +1 -1
  465. package/lib/browser/device/launch-screen.js +1 -1
  466. package/lib/browser/device/long-press.d.ts +12 -0
  467. package/lib/browser/device/long-press.js +44 -13
  468. package/lib/browser/device/own-gestures.d.ts +26 -0
  469. package/lib/browser/device/own-gestures.js +42 -0
  470. package/lib/browser/device/pull-down.d.ts +4 -2
  471. package/lib/browser/device/pull-down.js +66 -77
  472. package/lib/browser/device/recent-shots.d.ts +46 -0
  473. package/lib/browser/device/recent-shots.js +145 -0
  474. package/lib/browser/device/row-swipe.d.ts +35 -10
  475. package/lib/browser/device/row-swipe.js +153 -70
  476. package/lib/browser/device/shake-undo.d.ts +17 -0
  477. package/lib/browser/device/shake-undo.js +63 -0
  478. package/lib/browser/device/sheet-swipe.d.ts +118 -18
  479. package/lib/browser/device/sheet-swipe.js +418 -109
  480. package/lib/browser/extension/extension-view.d.ts +10 -0
  481. package/lib/browser/extension/extension-view.js +7 -1
  482. package/lib/browser/extension/icons.js +14 -1
  483. package/lib/browser/extension/web-api-components.d.ts +270 -0
  484. package/lib/browser/extension/web-api-components.js +3 -0
  485. package/lib/browser/extension/web-api-contributions.d.ts +386 -0
  486. package/lib/browser/extension/web-api-contributions.js +3 -0
  487. package/lib/browser/extension/web-api-desktop.d.ts +56 -0
  488. package/lib/browser/extension/web-api-desktop.js +3 -0
  489. package/lib/browser/extension/web-api-terminal.d.ts +72 -0
  490. package/lib/browser/extension/web-api-terminal.js +3 -0
  491. package/lib/browser/extension/web-editor-tabs.d.ts +43 -0
  492. package/lib/browser/extension/web-editor-tabs.js +141 -0
  493. package/lib/browser/extension/web-extension-api.d.ts +218 -521
  494. package/lib/browser/extension/web-extension-code.d.ts +6 -0
  495. package/lib/browser/extension/web-extension-code.js +24 -0
  496. package/lib/browser/extension/web-extension-context.d.ts +79 -0
  497. package/lib/browser/extension/web-extension-context.js +383 -0
  498. package/lib/browser/extension/web-extension-protocol.d.ts +66 -6
  499. package/lib/browser/extension/web-extension-protocol.js +42 -1
  500. package/lib/browser/extension/web-extension-run.d.ts +55 -0
  501. package/lib/browser/extension/web-extension-run.js +123 -0
  502. package/lib/browser/extension/web-extensions.d.ts +41 -68
  503. package/lib/browser/extension/web-extensions.js +184 -516
  504. package/lib/browser/extension/web-home.d.ts +20 -0
  505. package/lib/browser/extension/web-home.js +76 -0
  506. package/lib/browser/extension/web-pages.d.ts +13 -3
  507. package/lib/browser/extension/web-pages.js +23 -3
  508. package/lib/browser/extension/web-session-notices.d.ts +37 -0
  509. package/lib/browser/extension/web-session-notices.js +177 -0
  510. package/lib/browser/extension/web-sharing.d.ts +2 -0
  511. package/lib/browser/extension/web-sharing.js +4 -0
  512. package/lib/browser/files/files-protocol.d.ts +26 -0
  513. package/lib/browser/files/files-protocol.js +5 -0
  514. package/lib/browser/files/files.d.ts +36 -0
  515. package/lib/browser/files/files.js +122 -0
  516. package/lib/browser/game/game-host.d.ts +28 -0
  517. package/lib/browser/game/game-host.js +163 -0
  518. package/lib/browser/game/game-loader.d.ts +11 -0
  519. package/lib/browser/game/game-loader.js +31 -0
  520. package/lib/browser/game/game-protocol.d.ts +50 -0
  521. package/lib/browser/game/game-protocol.js +3 -0
  522. package/lib/browser/game/game-runner.d.ts +28 -0
  523. package/lib/browser/game/game-runner.js +64 -0
  524. package/lib/browser/game/game-util.d.ts +30 -0
  525. package/lib/browser/game/game-util.js +183 -0
  526. package/lib/browser/game/game-view.d.ts +13 -0
  527. package/lib/browser/game/game-view.js +68 -0
  528. package/lib/browser/game/game3d-protocol.d.ts +52 -0
  529. package/lib/browser/game/game3d-protocol.js +3 -0
  530. package/lib/browser/game/game3d-runner.d.ts +28 -0
  531. package/lib/browser/game/game3d-runner.js +153 -0
  532. package/lib/browser/hooks.d.ts +5 -1
  533. package/lib/browser/hooks.js +14 -2
  534. package/lib/browser/i18n/locales.d.ts +105 -3
  535. package/lib/browser/i18n/messages.d.ts +104 -2
  536. package/lib/browser/i18n/messages.js +215 -11
  537. package/lib/browser/index.d.ts +15 -0
  538. package/lib/browser/index.js +15 -0
  539. package/lib/browser/links/links-protocol.d.ts +5 -0
  540. package/lib/browser/links/links.d.ts +19 -7
  541. package/lib/browser/links/links.js +57 -11
  542. package/lib/browser/markdown/code-renderers.d.ts +5 -0
  543. package/lib/browser/markdown/code-renderers.js +40 -0
  544. package/lib/browser/notices/notices-protocol.d.ts +26 -1
  545. package/lib/browser/notices/notices.d.ts +3 -1
  546. package/lib/browser/notices/notices.js +26 -12
  547. package/lib/browser/notices/session-notices.d.ts +70 -0
  548. package/lib/browser/notices/session-notices.js +96 -0
  549. package/lib/browser/offline/device-values.d.ts +56 -0
  550. package/lib/browser/offline/device-values.js +157 -0
  551. package/lib/browser/offline/kept-chats-protocol.d.ts +18 -0
  552. package/lib/browser/offline/kept-chats-protocol.js +5 -0
  553. package/lib/browser/offline/kept-chats.d.ts +48 -0
  554. package/lib/browser/offline/kept-chats.js +149 -0
  555. package/lib/browser/offline/offline-reads.d.ts +45 -0
  556. package/lib/browser/offline/offline-reads.js +113 -0
  557. package/lib/browser/settings/navigation.d.ts +3 -2
  558. package/lib/browser/settings/navigation.js +4 -3
  559. package/lib/browser/settings/settings-protocol.d.ts +17 -0
  560. package/lib/browser/settings/settings-protocol.js +21 -5
  561. package/lib/browser/state/state-protocol.d.ts +8 -1
  562. package/lib/browser/state/state.d.ts +2 -0
  563. package/lib/browser/state/state.js +21 -2
  564. package/lib/browser/style/base.d.ts +1 -1
  565. package/lib/browser/style/base.js +27 -1
  566. package/lib/browser/style/conversation.d.ts +1 -1
  567. package/lib/browser/style/conversation.js +95 -17
  568. package/lib/browser/style/device.js +42 -5
  569. package/lib/browser/style/layout.d.ts +1 -1
  570. package/lib/browser/style/layout.js +252 -67
  571. package/lib/browser/style/pages.d.ts +1 -1
  572. package/lib/browser/style/pages.js +38 -2
  573. package/lib/browser/style/phone.d.ts +1 -1
  574. package/lib/browser/style/phone.js +15 -0
  575. package/lib/browser/style/shell.d.ts +1 -1
  576. package/lib/browser/style/shell.js +76 -9
  577. package/lib/browser/style/surfaces.d.ts +1 -1
  578. package/lib/browser/style/surfaces.js +2 -2
  579. package/lib/browser/style/tints.d.ts +28 -0
  580. package/lib/browser/style/tints.js +59 -0
  581. package/lib/browser/style.js +13 -1
  582. package/lib/browser/util/composer.d.ts +6 -0
  583. package/lib/browser/util/composer.js +16 -0
  584. package/lib/browser/util/desktop.d.ts +19 -1
  585. package/lib/browser/util/desktop.js +15 -0
  586. package/lib/browser/util/frame.d.ts +5 -4
  587. package/lib/browser/util/frame.js +5 -4
  588. package/lib/browser/util/link.d.ts +18 -0
  589. package/lib/browser/util/link.js +66 -1
  590. package/lib/browser/util/markdown.d.ts +22 -2
  591. package/lib/browser/util/markdown.js +120 -6
  592. package/lib/browser/util/message.d.ts +5 -0
  593. package/lib/browser/util/message.js +30 -0
  594. package/lib/browser/util/process.d.ts +35 -2
  595. package/lib/browser/util/process.js +80 -5
  596. package/lib/browser/util/progress.d.ts +19 -1
  597. package/lib/browser/util/progress.js +57 -4
  598. package/lib/browser/util/quote.d.ts +20 -0
  599. package/lib/browser/util/quote.js +61 -0
  600. package/lib/browser/util/tool.d.ts +19 -2
  601. package/lib/browser/util/tool.js +70 -2
  602. package/lib/browser/util/voice.d.ts +49 -6
  603. package/lib/browser/util/voice.js +271 -26
  604. package/lib/browser/util/zoom.d.ts +47 -0
  605. package/lib/browser/util/zoom.js +99 -0
  606. package/lib/browser/workbench-calls.d.ts +62 -0
  607. package/lib/browser/workbench-calls.js +150 -0
  608. package/lib/browser/workbench-protocol.d.ts +36 -3
  609. package/lib/browser/workbench-util.d.ts +22 -4
  610. package/lib/browser/workbench-util.js +38 -8
  611. package/lib/browser/workbench.d.ts +47 -6
  612. package/lib/browser/workbench.js +189 -41
  613. package/package.json +14 -11
  614. package/public/launch.svg +46 -42
@@ -12,7 +12,10 @@ const ta_client_1 = require("@celljs/ta-client");
12
12
  const ta_protocol_1 = require("@celljs/ta-protocol");
13
13
  const ta_relay_1 = require("@celljs/ta-relay");
14
14
  const hosts_1 = require("./hosts");
15
+ const device_values_1 = require("./offline/device-values");
16
+ const settings_protocol_1 = require("./settings/settings-protocol");
15
17
  const state_protocol_1 = require("./state/state-protocol");
18
+ const workbench_calls_1 = require("./workbench-calls");
16
19
  const workbench_protocol_1 = require("./workbench-protocol");
17
20
  const workbench_util_1 = require("./workbench-util");
18
21
  let TaWorkbenchImpl = class TaWorkbenchImpl {
@@ -21,10 +24,31 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
21
24
  this.current = { status: 'connecting', hosts: this.list.hosts, host: this.list.current, sessions: [], saved: [] };
22
25
  this.attempts = 0;
23
26
  this.graceMs = workbench_util_1.GRACE_MS;
27
+ /** What was kept of the computers dropped, being taken off the device. */
28
+ this.forgetting = Promise.resolve();
29
+ /**
30
+ * The calls of the services and of the stores, to the connection of the time; answered from the device
31
+ * while offline, for the computer in use from the start (web extensions started from the device read
32
+ * before the page connects).
33
+ */
34
+ this.calls = new workbench_calls_1.WorkbenchCalls({
35
+ status: () => this.current.status,
36
+ connection: () => this.connection,
37
+ connected: () => this.connected(),
38
+ subscribe: listener => this.subscribe(listener),
39
+ dataChanged: (name, keys, cwd) => {
40
+ for (const listener of this.extensionDataListeners) {
41
+ listener(name, keys, cwd);
42
+ }
43
+ },
44
+ }, this.list.current);
24
45
  /** Those waiting for the connection (`connected`): `resolve` once online, `reject` once signed out. */
25
- this.beforeConnection = new Map();
26
46
  this.connectedWaiters = new Set();
27
47
  this.waking = false;
48
+ /** Settings.chatArchiveDays: the saved conversations older are read only by `readArchived`. */
49
+ this.archiveDays = settings_protocol_1.DEFAULT_SETTINGS.chatArchiveDays;
50
+ /** Counts the lists of open sessions the server told: a read of the lists begun before one does not undo it. */
51
+ this.pushes = 0;
28
52
  /** Counts sign-ins and sign-outs: an attempt of an earlier one does nothing when it ends. */
29
53
  this.generation = 0;
30
54
  this.listeners = new Set();
@@ -32,6 +56,8 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
32
56
  this.extensionDataListeners = new Set();
33
57
  this.authListeners = new Set();
34
58
  this.remoteListeners = new Set();
59
+ /** Those that listen to the rooms, and what they hear: messages and the state too, or the state of some keys. */
60
+ this.roomListeners = new Map();
35
61
  }
36
62
  get state() {
37
63
  return this.current;
@@ -66,32 +92,11 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
66
92
  get remote() {
67
93
  return this.service('remote');
68
94
  }
69
- /**
70
- * A service of the connection; before there is one (the lists of the last time show meanwhile), its
71
- * calls wait for it, and fail if the page signs out instead.
72
- */
95
+ get rooms() {
96
+ return this.service('rooms');
97
+ }
73
98
  service(name) {
74
- if (this.connection) {
75
- return this.connection[name];
76
- }
77
- // The same each time, as the connection's are: what is given it is not drawn again for nothing.
78
- const known = this.beforeConnection.get(name);
79
- if (known) {
80
- return known;
81
- }
82
- const service = new Proxy({}, {
83
- get: (_target, method) =>
84
- // Not a promise itself.
85
- method === 'then'
86
- ? undefined
87
- : async (...params) => {
88
- await this.connected();
89
- const real = this.signedIn()[name];
90
- return real[method](...params);
91
- },
92
- });
93
- this.beforeConnection.set(name, service);
94
- return service;
99
+ return this.calls.service(name);
95
100
  }
96
101
  signedIn() {
97
102
  if (!this.connection) {
@@ -115,6 +120,18 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
115
120
  this.remoteListeners.add(listener);
116
121
  return () => this.remoteListeners.delete(listener);
117
122
  }
123
+ onRoomEvent(listener, options = {}) {
124
+ const wrapped = (event) => listener(event);
125
+ this.roomListeners.set(wrapped, ta_protocol_1.TaRoomWatchUtil.of(options.messages, options.state));
126
+ if (this.connection) {
127
+ void this.watchRooms(this.connection, false);
128
+ }
129
+ return () => {
130
+ if (this.roomListeners.delete(wrapped) && this.connection) {
131
+ void this.watchRooms(this.connection, false);
132
+ }
133
+ };
134
+ }
118
135
  async setWorkingDirectory(cwd) {
119
136
  this.update({ server: await this.server.setWorkingDirectory(cwd) });
120
137
  }
@@ -210,7 +227,7 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
210
227
  */
211
228
  load(hostId) {
212
229
  this.update({ switching: hostId });
213
- setTimeout(() => this.reload(), workbench_util_1.SWITCH_MS);
230
+ setTimeout(() => this.reloadSoon(), workbench_util_1.SWITCH_MS);
214
231
  }
215
232
  reload() {
216
233
  location.reload();
@@ -223,10 +240,15 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
223
240
  if (kept) {
224
241
  state_protocol_1.StateUtil.forgetHost(kept, hostId);
225
242
  }
243
+ this.forgetting = Promise.all([this.forgetting, device_values_1.OfflineKeys.forget((0, device_values_1.deviceValues)(), hostId)]);
226
244
  if (this.listsOf === hostId) {
227
245
  this.listsOf = undefined;
228
246
  }
229
247
  }
248
+ /** Loads the page again once what was kept of the computers dropped is off the device: a load aborts what IndexedDB has not written. */
249
+ reloadSoon() {
250
+ void this.forgetting.finally(() => this.reload());
251
+ }
230
252
  keepHosts(list) {
231
253
  var _a;
232
254
  this.list = list;
@@ -247,7 +269,14 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
247
269
  if (of !== this.listsOf) {
248
270
  // Another ta serve: its lists of the last time, or none, rather than those of the one before.
249
271
  this.listsOf = of;
250
- this.update({ server: undefined, sessions: [], saved: [], ...workbench_util_1.WorkbenchUtil.readLists((_c = (_b = (0, workbench_util_1.storage)()) === null || _b === void 0 ? void 0 : _b.getItem(workbench_util_1.WorkbenchUtil.listsKey(of))) !== null && _c !== void 0 ? _c : null, of) });
272
+ this.calls.reads.use(of);
273
+ this.update({
274
+ server: undefined,
275
+ sessions: [],
276
+ saved: [],
277
+ archived: undefined,
278
+ ...workbench_util_1.WorkbenchUtil.readLists((_c = (_b = (0, workbench_util_1.storage)()) === null || _b === void 0 ? void 0 : _b.getItem(workbench_util_1.WorkbenchUtil.listsKey(of))) !== null && _c !== void 0 ? _c : null, of),
279
+ });
251
280
  }
252
281
  this.update({ status: 'connecting', error: undefined });
253
282
  await this.connect(credential);
@@ -268,7 +297,7 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
268
297
  if (wasRefused) {
269
298
  // Unpaired on the computer, or a token of before: of no use any more.
270
299
  this.drop(workbench_util_1.WorkbenchUtil.serverOf(credential, (0, workbench_util_1.pageHost)()));
271
- this.update({ status: 'signed-out', error: 'refused', server: undefined, sessions: [], saved: [] });
300
+ this.update({ status: 'signed-out', error: 'refused', server: undefined, sessions: [], saved: [], archived: undefined });
272
301
  }
273
302
  else {
274
303
  const delay = workbench_util_1.WorkbenchUtil.retryDelay(this.attempts++);
@@ -305,8 +334,16 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
305
334
  }
306
335
  });
307
336
  connection.onRemoteEvent(event => this.emitRemote(event));
337
+ connection.onRoomEvent(event => {
338
+ for (const [listener, watch] of this.roomListeners) {
339
+ if (ta_protocol_1.TaRoomWatchUtil.hears(watch, event)) {
340
+ listener(event);
341
+ }
342
+ }
343
+ });
308
344
  // A connection closed for a sign-out or another computer says nothing any more.
309
345
  const own = () => this.connection === connection;
346
+ connection.onSessions(sessions => own() && this.takeSessions(sessions));
310
347
  connection.onClose(() => own() && this.update({ status: 'offline' }));
311
348
  connection.onReconnecting(delayMs => own() && this.update({ retryAt: Date.now() + delayMs }));
312
349
  connection.onOpen(() => {
@@ -316,8 +353,19 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
316
353
  this.update({ status: 'online', retryAt: undefined });
317
354
  void this.refresh();
318
355
  void this.watchRemote(connection);
356
+ this.roomsWatched = undefined;
357
+ void this.watchRooms(connection, true);
358
+ void this.watchSessions(connection);
319
359
  });
320
360
  void this.watchRemote(connection);
361
+ this.roomsWatched = undefined;
362
+ void this.watchRooms(connection, true);
363
+ void this.watchSessions(connection);
364
+ if ('pairing' in credential) {
365
+ // Through a relay the computer has let the page in once the socket is open, and no gateway is behind
366
+ // it: the calls of the page go now, with the one that reads who it is, not a round trip after it.
367
+ this.update({ status: 'online', error: undefined, retryAt: undefined });
368
+ }
321
369
  let server;
322
370
  try {
323
371
  server = await connection.server.getServerInfo();
@@ -368,8 +416,8 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
368
416
  this.stopRetrying();
369
417
  (_a = this.connection) === null || _a === void 0 ? void 0 : _a.close();
370
418
  this.connection = undefined;
371
- this.update({ status: 'signed-out', error: undefined, retryAt: undefined, server: undefined, sessions: [], saved: [] });
372
- this.reload();
419
+ this.update({ status: 'signed-out', error: undefined, retryAt: undefined, server: undefined, sessions: [], saved: [], archived: undefined });
420
+ this.reloadSoon();
373
421
  }
374
422
  connected() {
375
423
  if (this.current.status === 'online') {
@@ -390,27 +438,107 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
390
438
  (_a = this.connection) === null || _a === void 0 ? void 0 : _a.reconnect();
391
439
  }
392
440
  }
393
- async refresh() {
441
+ listOpened(info) {
442
+ if (this.current.sessions.some(session => session.sessionId === info.sessionId)) {
443
+ return;
444
+ }
445
+ // Newer than a list read before it, as one the server told.
446
+ this.pushes++;
447
+ this.update({ sessions: workbench_util_1.WorkbenchUtil.sorted([...this.current.sessions, info]) });
448
+ }
449
+ /**
450
+ * One read of the lists at a time: asked again meanwhile, one more follows it for all who asked, so that
451
+ * reads on a slow network do not pile up.
452
+ */
453
+ refresh() {
454
+ var _a;
455
+ if (!this.refreshing) {
456
+ this.refreshing = this.readLists().finally(() => {
457
+ this.refreshing = undefined;
458
+ });
459
+ return this.refreshing;
460
+ }
461
+ (_a = this.refreshAgain) !== null && _a !== void 0 ? _a : (this.refreshAgain = this.refreshing
462
+ .catch(() => undefined)
463
+ .then(() => {
464
+ this.refreshAgain = undefined;
465
+ return this.refresh();
466
+ }));
467
+ return this.refreshAgain;
468
+ }
469
+ async readLists() {
470
+ const pushes = this.pushes;
394
471
  // A ta serve of before has no saved sessions to list: its list stays the open ones. The default
395
- // directory comes along, as another device may have changed it.
472
+ // directory comes along, as another device may have changed it. The archived are left out: a list
473
+ // read every few seconds stays as small as the conversations of the last days, however many there were.
474
+ const since = workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), this.archiveDays);
396
475
  const [sessions, saved, server] = await Promise.all([
397
476
  this.server.listSessions(),
398
- this.server.listSavedSessions().catch(() => []),
477
+ this.server.listSavedSessions(since === undefined ? undefined : { since }).catch(() => []),
399
478
  this.server.getServerInfo().catch(() => this.current.server),
400
479
  ]);
401
- sessions.sort((a, b) => b.createdAt - a.createdAt);
402
- // Read every few seconds and mostly the same: what shows them is not drawn again for nothing.
480
+ // A ta serve of before lists them all.
481
+ const recent = since === undefined ? saved : saved.filter(session => session.updatedAt >= since);
482
+ // Read every few seconds and mostly the same: what shows them is not drawn again for nothing. A list
483
+ // the server told meanwhile is newer than this one, read before it.
403
484
  this.update({
404
- sessions: workbench_util_1.WorkbenchUtil.same(this.current.sessions, sessions),
405
- saved: workbench_util_1.WorkbenchUtil.same(this.current.saved, saved),
485
+ sessions: pushes === this.pushes ? workbench_util_1.WorkbenchUtil.same(this.current.sessions, workbench_util_1.WorkbenchUtil.sorted(sessions)) : this.current.sessions,
486
+ saved: workbench_util_1.WorkbenchUtil.same(this.current.saved, recent),
406
487
  server: workbench_util_1.WorkbenchUtil.same(this.current.server, server),
407
488
  });
489
+ // A day later, those that just grew old are in the archive read, not lost between the two lists.
490
+ if (this.current.archived && this.archivedSince !== since) {
491
+ void this.readArchived().catch(() => undefined);
492
+ }
493
+ }
494
+ setArchiveDays(days) {
495
+ if (days === this.archiveDays) {
496
+ return;
497
+ }
498
+ this.archiveDays = days;
499
+ if (this.current.status === 'online') {
500
+ void this.refresh().catch(() => undefined);
501
+ }
502
+ }
503
+ readArchived() {
504
+ var _a;
505
+ (_a = this.archiving) !== null && _a !== void 0 ? _a : (this.archiving = (async () => {
506
+ const since = workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), this.archiveDays);
507
+ const archived = since === undefined ? [] : await this.server.listSavedSessions({ before: since });
508
+ this.archivedSince = since;
509
+ const old = since === undefined ? [] : archived.filter(session => session.updatedAt < since);
510
+ this.update({ archived: workbench_util_1.WorkbenchUtil.same(this.current.archived, old) });
511
+ })().finally(() => {
512
+ this.archiving = undefined;
513
+ }));
514
+ return this.archiving;
408
515
  }
409
516
  createStore(sessionId, options) {
410
- if (!this.connection) {
411
- throw new Error('Not signed in to ta serve.');
517
+ return new ta_client_1.SessionStore(this.calls.link, sessionId, { pageBytes: workbench_util_1.PAGE_BYTES, ...options });
518
+ }
519
+ /** The open sessions from now on as they change, on each connection; a Ta service of before has its lists read again every few seconds. */
520
+ async watchSessions(connection) {
521
+ try {
522
+ const sessions = await connection.server.watchSessions();
523
+ if (this.connection === connection) {
524
+ this.takeSessions(sessions);
525
+ this.update({ sessionsPushed: true });
526
+ }
527
+ }
528
+ catch (error) {
529
+ if (this.connection === connection && ta_client_1.TaRemoteError.isMethodNotFound(error)) {
530
+ this.update({ sessionsPushed: false });
531
+ }
532
+ }
533
+ }
534
+ /** The open sessions as the server told them; one that closed is among the saved ones now, which are read again. */
535
+ takeSessions(sessions) {
536
+ this.pushes++;
537
+ const closed = this.current.sessions.some(session => !sessions.some(other => other.sessionId === session.sessionId));
538
+ this.update({ sessions: workbench_util_1.WorkbenchUtil.same(this.current.sessions, workbench_util_1.WorkbenchUtil.sorted(sessions)) });
539
+ if (closed) {
540
+ void this.refresh().catch(() => undefined);
412
541
  }
413
- return new ta_client_1.SessionStore(this.connection, sessionId, { pageBytes: workbench_util_1.PAGE_BYTES, ...options });
414
542
  }
415
543
  /** The prompts of ssh that wait for an answer, from now and those already there. */
416
544
  async watchRemote(connection) {
@@ -419,6 +547,23 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
419
547
  this.emitRemote({ type: 'prompt', prompt });
420
548
  }
421
549
  }
550
+ /**
551
+ * Watches the rooms as the listeners want (messages too if one does), or no more once none listens; on a new
552
+ * connection (`opened`) the listeners read them again (`rooms`), for what changed while away.
553
+ */
554
+ async watchRooms(connection, opened) {
555
+ const wanted = this.roomListeners.size === 0 ? undefined : ta_protocol_1.TaRoomWatchUtil.union(this.roomListeners.values());
556
+ if (!ta_protocol_1.TaRoomWatchUtil.same(wanted, this.roomsWatched)) {
557
+ this.roomsWatched = wanted;
558
+ // A ta serve of before has no rooms; one of before the state of some keys hears it only with messages.
559
+ await (wanted === undefined ? connection.rooms.unwatch() : connection.rooms.watch(wanted.messages, wanted.state)).catch(() => undefined);
560
+ }
561
+ if (opened) {
562
+ for (const listener of this.roomListeners.keys()) {
563
+ listener({ type: 'rooms' });
564
+ }
565
+ }
566
+ }
422
567
  emitRemote(event) {
423
568
  for (const listener of this.remoteListeners) {
424
569
  listener(event);
@@ -499,6 +644,9 @@ let TaWorkbenchImpl = class TaWorkbenchImpl {
499
644
  if (this.listsOf && (next.sessions !== before.sessions || next.saved !== before.saved || next.server !== before.server)) {
500
645
  this.keepLists(this.listsOf);
501
646
  }
647
+ if (before.status !== 'online') {
648
+ this.calls.online();
649
+ }
502
650
  }
503
651
  }
504
652
  keepLists(of) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-web",
3
- "version": "4.9.1",
3
+ "version": "4.11.0",
4
4
  "description": "The web client of ta serve: sessions, streaming messages, tool runs with diffs, and dialogs",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -33,26 +33,29 @@
33
33
  "watch": "tsc -b -w --preserveWatchOutput"
34
34
  },
35
35
  "dependencies": {
36
- "@celljs/core": "4.9.1",
37
- "@celljs/react": "4.9.1",
38
- "@celljs/ta-client": "4.9.1",
39
- "@celljs/ta-protocol": "4.9.1",
40
- "@celljs/ta-relay": "4.9.1",
41
- "@celljs/widget": "4.9.1",
36
+ "@celljs/core": "4.11.0",
37
+ "@celljs/react": "4.11.0",
38
+ "@celljs/ta-client": "4.11.0",
39
+ "@celljs/ta-protocol": "4.11.0",
40
+ "@celljs/ta-relay": "4.11.0",
41
+ "@celljs/widget": "4.11.0",
42
+ "@types/three": "^0.187.0",
42
43
  "@xterm/addon-fit": "^0.11.0",
43
44
  "@xterm/addon-unicode11": "^0.9.0",
44
45
  "@xterm/addon-webgl": "^0.19.0",
45
46
  "@xterm/xterm": "^6.0.0",
46
47
  "katex": "^0.18.11",
47
- "lucide-react": "^1.70.0",
48
+ "lucide-react": "^1.72.0",
48
49
  "mermaid": "^12.3.0",
49
50
  "monaco-editor": "^0.57.0",
51
+ "phaser": "^4.2.1",
50
52
  "react": "^19.3.1",
51
- "react-intl": "^7.1.14"
53
+ "react-intl": "^7.1.14",
54
+ "three": "^0.187.0"
52
55
  },
53
56
  "devDependencies": {
54
- "@earendil-works/pi-ai": "^1.5.0",
55
- "@earendil-works/pi-coding-agent": "^1.5.0",
57
+ "@earendil-works/pi-ai": "^1.5.2",
58
+ "@earendil-works/pi-coding-agent": "^1.5.2",
56
59
  "@types/react": "^19.3.0",
57
60
  "react-dom": "^19.3.1"
58
61
  },
package/public/launch.svg CHANGED
@@ -1,49 +1,53 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 640" width="360" height="640">
2
- <!-- The launch picture of Ta: the dinosaur of the logo on its small planet, a shooting star ahead of it. On #0B0D10, fit to the screen;
3
- its edges fade out, so any size of screen is all one night. apps/ta-mobile draws the same, rendered to PNG (docs/design/ta-mobile.md). -->
2
+ <!-- The launch picture of Ta: the dinosaur of the logo stands small at the edge of a great planet seen low, the dawn coming up
3
+ behind its rim, a shower of shooting stars and a young moon above; lit from behind, its long shadow falls toward us.
4
+ On #0B0D10, fit to the screen; its edges fade into it (a vignette over it, not a mask: WebKit masks each layer of a group
5
+ by itself, which lets the sky show through the ground), so any size of screen is all one night. apps/ta-mobile draws the same,
6
+ rendered to PNG (docs/design/ta-mobile.md). -->
4
7
  <defs>
5
- <radialGradient id="edge" cx="180" cy="320" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(180 320) scale(180 320) translate(-180 -320)">
6
- <stop offset="0.62" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/>
7
- </radialGradient>
8
- <mask id="m"><rect width="360" height="640" fill="url(#edge)"/></mask>
9
- <radialGradient id="twinkle"><stop offset="0" stop-color="#D1FAE5" stop-opacity="0.35"/><stop offset="1" stop-color="#D1FAE5" stop-opacity="0"/></radialGradient>
10
- <radialGradient id="glow" cx="180" cy="372" r="170" gradientUnits="userSpaceOnUse">
11
- <stop offset="0" stop-color="#10B981" stop-opacity="0.13"/>
12
- <stop offset="0.5" stop-color="#10B981" stop-opacity="0.04"/>
13
- <stop offset="1" stop-color="#10B981" stop-opacity="0"/>
14
- </radialGradient>
15
- <radialGradient id="planet" cx="154" cy="328" r="129.5" gradientUnits="userSpaceOnUse">
16
- <stop offset="0" stop-color="#26332F"/>
17
- <stop offset="0.5" stop-color="#171D1C"/>
18
- <stop offset="1" stop-color="#0C0E10"/>
19
- </radialGradient>
20
- <linearGradient id="rim" x1="0" y1="302" x2="0" y2="386" gradientUnits="userSpaceOnUse">
21
- <stop offset="0" stop-color="#6EE7B7" stop-opacity="0.85"/>
22
- <stop offset="1" stop-color="#34D399" stop-opacity="0"/>
23
- </linearGradient>
24
- <radialGradient id="air" cx="180" cy="372" r="80" gradientUnits="userSpaceOnUse">
25
- <stop offset="0.875" stop-color="#34D399" stop-opacity="0.22"/>
26
- <stop offset="1" stop-color="#34D399" stop-opacity="0"/>
27
- </radialGradient>
28
- <linearGradient id="airfade" x1="0" y1="292" x2="0" y2="372" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient>
29
- <mask id="airmask"><rect width="360" height="640" fill="url(#airfade)"/></mask>
30
- <linearGradient id="meteor" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#D1FAE5" stop-opacity="0"/><stop offset="1" stop-color="#ECFDF5" stop-opacity="0.7"/></linearGradient>
31
- <clipPath id="ball"><circle cx="180" cy="372" r="70"/></clipPath>
8
+ <radialGradient id="edge" cx="180" cy="320" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(180 320) scale(180 320) translate(-180 -320)"><stop offset="0.62" stop-color="#0B0D10" stop-opacity="0"/><stop offset="0.97" stop-color="#0B0D10"/></radialGradient>
9
+ <radialGradient id="tw"><stop offset="0" stop-color="#D1FAE5" stop-opacity="0.4"/><stop offset="1" stop-color="#D1FAE5" stop-opacity="0"/></radialGradient>
10
+ <linearGradient id="tail" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ECFDF5" stop-opacity="0.9"/><stop offset="0.3" stop-color="#A7F3D0" stop-opacity="0.35"/><stop offset="1" stop-color="#6EE7B7" stop-opacity="0"/></linearGradient>
11
+ <linearGradient id="sky" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#07090B"/><stop offset="0.42" stop-color="#0A1311"/><stop offset="0.63" stop-color="#12382F"/></linearGradient>
12
+ <radialGradient id="dawn" cx="276" cy="407.24" r="230" gradientUnits="userSpaceOnUse" gradientTransform="translate(276 407.24) scale(1 0.42) translate(-276 -407.24)"><stop offset="0" stop-color="#ECFDF5" stop-opacity="0.9"/><stop offset="0.08" stop-color="#A7F3D0" stop-opacity="0.55"/><stop offset="0.3" stop-color="#34D399" stop-opacity="0.2"/><stop offset="1" stop-color="#10B981" stop-opacity="0"/></radialGradient>
13
+ <radialGradient id="sky-glow" cx="276" cy="407.24" r="300" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#10B981" stop-opacity="0.14"/><stop offset="1" stop-color="#10B981" stop-opacity="0"/></radialGradient>
14
+ <linearGradient id="streak" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#D1FAE5" stop-opacity="0"/><stop offset="0.5" stop-color="#ECFDF5" stop-opacity="0.5"/><stop offset="1" stop-color="#D1FAE5" stop-opacity="0"/></linearGradient>
15
+ <radialGradient id="ground" cx="276" cy="401.24" r="430" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#355247"/><stop offset="0.12" stop-color="#1D2D28"/><stop offset="0.4" stop-color="#0D1412"/><stop offset="1" stop-color="#050707"/></radialGradient>
16
+ <radialGradient id="atmo" cx="180" cy="1040" r="674" gradientUnits="userSpaceOnUse"><stop offset="0.949" stop-color="#34D399" stop-opacity="0.5"/><stop offset="0.96" stop-color="#34D399" stop-opacity="0.16"/><stop offset="0.98" stop-color="#34D399" stop-opacity="0.04"/><stop offset="1" stop-color="#34D399" stop-opacity="0"/></radialGradient>
17
+ <linearGradient id="limb" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#A7F3D0" stop-opacity="0.12"/><stop offset="0.76" stop-color="#ECFDF5"/><stop offset="1" stop-color="#A7F3D0" stop-opacity="0.25"/></linearGradient>
18
+ <linearGradient id="bowl" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#010202" stop-opacity="0.75"/><stop offset="1" stop-color="#0B1311" stop-opacity="0.35"/></linearGradient>
19
+ <linearGradient id="shadow" x1="1" y1="0" x2="0" y2="0"><stop offset="0" stop-color="#000" stop-opacity="0.85"/><stop offset="1" stop-color="#000" stop-opacity="0"/></linearGradient>
20
+ <linearGradient id="skin" x1="1" y1="0.15" x2="0" y2="0.85"><stop offset="0" stop-color="#34D399"/><stop offset="0.45" stop-color="#10B981"/><stop offset="1" stop-color="#065F46"/></linearGradient>
21
+ <mask id="crescent"><circle cx="76" cy="170" r="12" fill="#fff"/><circle cx="82" cy="166" r="11" fill="#000"/></mask>
22
+ <filter id="grain" x="0" y="380" width="360" height="260" filterUnits="userSpaceOnUse"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="4"/><feColorMatrix values="0 0 0 0 0.7 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 -1.3 0.7"/></filter>
23
+ <filter id="haze" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="3"/></filter>
24
+ <clipPath id="frame"><rect width="360" height="640"/></clipPath>
25
+ <clipPath id="land"><circle cx="180" cy="1040" r="640"/></clipPath>
26
+ <path id="dino" fill-rule="evenodd" d="M87.56 246.56C78.45 245.88 69.68 241.69 63.62 235.12C55.27 226.06 53.05 217.63 57.25 210.87C58.80 208.36 60.00 207.04 65.18 202.17C69.26 198.32 70.20 196.55 70.21 192.69C70.21 189.81 70.10 189.60 68.07 188.59C58.99 184.06 48.53 175.16 41.10 165.64C20.03 138.61 16.32 99.87 32.24 73.21C35.05 68.50 38.42 64.26 40.25 63.11C42.91 61.44 46.64 61.89 48.71 64.14C51.04 66.67 51.48 69.39 50.27 73.65C48.09 81.27 47.41 86.83 47.99 92.32C49.53 106.98 58.42 118.20 70.83 121.15C73.08 121.68 78.88 121.72 81.15 121.22C88.97 119.48 94.86 113.39 96.69 105.18C97.35 102.17 97.35 102.36 97.36 79.55C97.37 56.55 97.35 57.24 98.04 53.23C102.05 29.98 119.81 12.19 141.49 9.73C143.46 9.51 150.65 9.43 152.36 9.61C160.37 10.46 167.56 12.82 174.51 16.89C177.43 18.59 176.54 18.47 186.86 18.57C196.67 18.66 196.99 18.68 200.87 19.58C210.24 21.74 219.17 27.62 224.57 35.17C229.72 42.38 232.50 49.80 233.36 58.67C233.68 61.91 233.71 76.53 233.41 78.22C232.01 86.00 227.35 91.05 220.23 92.50C218.50 92.85 180.16 92.91 177.10 92.57C165.61 91.28 155.17 86.13 150.52 79.47C148.44 76.48 145.54 75.90 143.40 78.04C141.49 79.95 141.76 81.92 144.74 87.63C150.17 98.03 159.04 105.16 169.50 107.52C172.11 108.11 172.69 107.96 173.25 106.55C173.81 105.12 174.70 103.52 175.57 102.37C178.23 98.86 180.68 100.09 183.51 106.36C184.55 108.67 183.79 108.47 191.23 108.44C198.27 108.42 197.86 108.50 198.43 107.20C200.89 101.63 202.81 99.79 204.99 100.89C206.11 101.47 207.63 103.65 208.74 106.31C209.67 108.51 209.55 108.45 213.05 108.41C216.35 108.36 217.08 108.45 218.31 109.05C225.39 112.51 217.61 125.59 205.66 130.33C199.65 132.71 198.20 132.85 180.39 132.87C164.51 132.89 165.38 132.84 164.14 133.78C162.82 134.78 162.30 136.08 162.30 138.40C162.30 139.80 161.98 143.39 161.42 148.29C159.70 163.39 153.05 175.87 141.81 185.08C138.73 187.60 134.92 189.85 129.84 192.14C125.19 194.25 115.57 196.33 110.54 196.34C109.17 196.34 108.60 196.57 108.23 197.27C108.10 197.53 107.64 198.49 107.20 199.42C103.90 206.45 98.19 211.37 88.72 215.35C85.89 216.54 85.91 216.52 85.98 219.64C86.04 222.32 86.33 222.69 90.00 224.75C92.29 226.04 94.81 227.75 95.82 228.71C100.98 233.57 100.86 241.48 95.60 244.93C93.34 246.41 91.24 246.84 87.56 246.56ZM134.07 240.25C128.56 238.82 125.22 235.56 123.96 230.38C123.70 229.30 123.68 228.71 123.59 220.23C123.53 214.63 123.44 210.89 123.34 210.35C123.00 208.36 122.74 207.31 122.25 205.86C121.48 203.62 121.59 203.31 123.26 202.93C129.90 201.41 136.34 198.97 140.57 196.35C147.00 192.39 151.46 188.55 155.60 183.42C157.24 181.39 157.77 181.54 158.23 184.19C159.89 193.79 157.66 202.21 151.13 210.89C149.39 213.20 149.36 213.30 149.36 215.69C149.35 218.41 149.61 218.72 151.96 218.75C157.60 218.82 162.31 219.95 165.26 221.92C173.20 227.23 172.45 238.39 164.03 240.43C162.18 240.88 135.88 240.72 134.07 240.25ZM185.67 173.17C183.79 172.66 182.15 171.55 180.81 169.86C178.08 166.41 174.71 164.68 169.71 164.16C166.89 163.87 166.86 163.80 167.90 160.34C168.86 157.13 169.71 152.32 170.10 147.82C170.40 144.42 170.40 144.42 170.65 144.15C172.11 142.53 184.08 147.33 189.10 151.54C193.73 155.43 196.56 162.25 195.41 166.75C194.22 171.40 189.83 174.29 185.67 173.17ZM144.28 53.97C148.98 52.79 151.98 47.68 150.77 42.91C148.71 34.78 137.83 33.29 134.20 40.65C130.66 47.83 136.74 55.88 144.28 53.97Z"/>
27
+ <clipPath id="body"><use href="#dino"/></clipPath>
32
28
  </defs>
33
- <g mask="url(#m)">
29
+ <g clip-path="url(#frame)">
30
+ <rect width="360" height="640" fill="url(#sky)"/>
31
+ <circle cx="276" cy="407.24" r="300" fill="url(#sky-glow)"/>
34
32
  <g fill="#E6F4EE"><circle cx="0.0" cy="286.0" r="0.31" opacity="0.49"/><circle cx="147.1" cy="331.2" r="0.52" opacity="0.23"/><circle cx="78.7" cy="456.7" r="0.35" opacity="0.36"/><circle cx="297.6" cy="244.9" r="0.32" opacity="0.43"/><circle cx="213.2" cy="354.9" r="0.41" opacity="0.24"/><circle cx="286.6" cy="7.4" r="0.41" opacity="0.42"/><circle cx="4.9" cy="245.9" r="0.76" opacity="0.14"/><circle cx="219.8" cy="613.8" r="0.59" opacity="0.11"/><circle cx="258.3" cy="517.2" r="0.57" opacity="0.18"/><circle cx="287.8" cy="606.7" r="1.03" opacity="0.46"/><circle cx="155.3" cy="163.2" r="0.31" opacity="0.53"/><circle cx="299.4" cy="225.1" r="0.30" opacity="0.40"/><circle cx="342.4" cy="351.8" r="0.65" opacity="0.48"/><circle cx="156.1" cy="593.7" r="0.72" opacity="0.47"/><circle cx="182.8" cy="144.4" r="0.30" opacity="0.47"/><circle cx="39.2" cy="224.5" r="0.51" opacity="0.31"/><circle cx="38.2" cy="242.6" r="0.40" opacity="0.35"/><circle cx="333.0" cy="63.0" r="1.27" opacity="0.45"/><circle cx="203.5" cy="236.5" r="0.86" opacity="0.33"/><circle cx="110.1" cy="341.0" r="0.55" opacity="0.36"/><circle cx="327.7" cy="94.1" r="0.45" opacity="0.41"/><circle cx="103.8" cy="528.9" r="0.62" opacity="0.32"/><circle cx="183.2" cy="148.0" r="0.38" opacity="0.49"/><circle cx="94.5" cy="484.8" r="0.59" opacity="0.30"/><circle cx="0.3" cy="13.1" r="0.32" opacity="0.23"/><circle cx="290.9" cy="202.8" r="0.93" opacity="0.32"/><circle cx="272.5" cy="110.5" r="0.62" opacity="0.21"/><circle cx="95.4" cy="318.2" r="0.59" opacity="0.24"/><circle cx="176.8" cy="326.1" r="0.37" opacity="0.47"/><circle cx="178.7" cy="358.4" r="0.47" opacity="0.27"/><circle cx="37.6" cy="366.1" r="0.38" opacity="0.33"/><circle cx="331.9" cy="252.1" r="0.44" opacity="0.48"/><circle cx="261.5" cy="154.1" r="0.37" opacity="0.24"/><circle cx="330.6" cy="442.5" r="0.54" opacity="0.33"/><circle cx="159.5" cy="475.0" r="0.31" opacity="0.45"/><circle cx="6.7" cy="501.5" r="0.60" opacity="0.10"/><circle cx="304.1" cy="624.2" r="0.52" opacity="0.18"/><circle cx="132.4" cy="304.3" r="1.05" opacity="0.31"/><circle cx="66.2" cy="361.9" r="0.90" opacity="0.24"/><circle cx="30.5" cy="297.6" r="1.10" opacity="0.13"/><circle cx="208.4" cy="463.5" r="0.73" opacity="0.26"/><circle cx="65.7" cy="583.5" r="0.39" opacity="0.35"/><circle cx="123.8" cy="411.0" r="0.32" opacity="0.35"/><circle cx="313.9" cy="517.1" r="0.42" opacity="0.19"/><circle cx="268.7" cy="495.9" r="0.37" opacity="0.48"/><circle cx="136.2" cy="220.5" r="0.40" opacity="0.14"/><circle cx="188.9" cy="505.7" r="0.82" opacity="0.53"/><circle cx="317.9" cy="237.3" r="0.73" opacity="0.40"/><circle cx="250.8" cy="535.7" r="0.42" opacity="0.11"/><circle cx="117.6" cy="633.8" r="0.95" opacity="0.45"/><circle cx="2.4" cy="6.2" r="0.30" opacity="0.33"/><circle cx="214.2" cy="324.8" r="0.43" opacity="0.19"/><circle cx="287.3" cy="74.1" r="0.34" opacity="0.28"/><circle cx="333.1" cy="225.5" r="0.61" opacity="0.22"/><circle cx="170.6" cy="270.7" r="0.58" opacity="0.38"/><circle cx="44.8" cy="349.1" r="0.70" opacity="0.15"/><circle cx="48.1" cy="79.7" r="0.39" opacity="0.41"/><circle cx="6.1" cy="320.6" r="0.53" opacity="0.53"/><circle cx="40.3" cy="470.4" r="1.02" opacity="0.36"/><circle cx="42.5" cy="264.7" r="0.94" opacity="0.43"/><circle cx="237.1" cy="180.7" r="0.65" opacity="0.38"/><circle cx="208.9" cy="318.1" r="0.65" opacity="0.23"/><circle cx="139.8" cy="503.9" r="0.34" opacity="0.38"/><circle cx="263.8" cy="367.0" r="0.56" opacity="0.31"/><circle cx="340.5" cy="80.1" r="0.36" opacity="0.32"/><circle cx="293.1" cy="267.6" r="0.63" opacity="0.43"/><circle cx="305.0" cy="46.4" r="0.60" opacity="0.21"/><circle cx="95.8" cy="46.2" r="0.36" opacity="0.46"/><circle cx="140.3" cy="280.7" r="0.31" opacity="0.52"/><circle cx="141.2" cy="43.3" r="0.48" opacity="0.13"/><circle cx="247.9" cy="175.9" r="0.58" opacity="0.48"/><circle cx="235.6" cy="237.5" r="1.05" opacity="0.44"/><circle cx="43.8" cy="105.3" r="0.30" opacity="0.10"/><circle cx="34.7" cy="597.0" r="0.78" opacity="0.23"/><circle cx="228.3" cy="8.5" r="0.54" opacity="0.45"/><circle cx="279.5" cy="503.1" r="0.63" opacity="0.22"/><circle cx="326.5" cy="417.6" r="0.32" opacity="0.50"/><circle cx="16.8" cy="289.7" r="1.00" opacity="0.52"/><circle cx="220.6" cy="136.6" r="0.36" opacity="0.29"/><circle cx="253.2" cy="470.6" r="0.58" opacity="0.27"/></g>
35
- <circle cx="62" cy="168" r="4.55" fill="url(#twinkle)"/><circle cx="62" cy="168" r="1.3" fill="#F0FDF8"/><circle cx="296" cy="236" r="3.8500000000000005" fill="url(#twinkle)"/><circle cx="296" cy="236" r="1.1" fill="#F0FDF8"/><circle cx="104" cy="520" r="3.5" fill="url(#twinkle)"/><circle cx="104" cy="520" r="1" fill="#F0FDF8"/><circle cx="262" cy="92" r="3.15" fill="url(#twinkle)"/><circle cx="262" cy="92" r="0.9" fill="#F0FDF8"/>
36
- <g transform="translate(286 150) rotate(152)"><rect x="0" y="-0.6" width="54" height="1" rx="0.5" fill="url(#meteor)"/><circle cx="54" cy="0" r="1.1" fill="#F0FDF8"/></g>
37
- <circle cx="180" cy="372" r="170" fill="url(#glow)"/>
33
+ <circle cx="58" cy="300" r="3.5" fill="url(#tw)"/><circle cx="58" cy="300" r="1" fill="#F0FDF8"/><circle cx="140" cy="122" r="3.15" fill="url(#tw)"/><circle cx="140" cy="122" r="0.9" fill="#F0FDF8"/><circle cx="322" cy="334" r="2.8" fill="url(#tw)"/><circle cx="322" cy="334" r="0.8" fill="#F0FDF8"/><circle cx="44" cy="96" r="2.8" fill="url(#tw)"/><circle cx="44" cy="96" r="0.8" fill="#F0FDF8"/>
34
+ <circle cx="76" cy="170" r="12" fill="#E7F7EF" mask="url(#crescent)" opacity="0.85"/>
35
+ <g transform="translate(296 128) rotate(146)" opacity="0.95"><path d="M0 0L96 -1.2L96 1.2Z" fill="url(#tail)"/><circle r="3.6" fill="url(#tw)"/><circle r="0.96" fill="#F7FFFB"/></g><g transform="translate(252 92) rotate(146)" opacity="0.6"><path d="M0 0L58 -0.8L58 0.8Z" fill="url(#tail)"/><circle r="2.4" fill="url(#tw)"/><circle r="0.64" fill="#F7FFFB"/></g><g transform="translate(334 214) rotate(146)" opacity="0.7"><path d="M0 0L66 -0.9L66 0.9Z" fill="url(#tail)"/><circle r="2.7" fill="url(#tw)"/><circle r="0.72" fill="#F7FFFB"/></g><g transform="translate(210 170) rotate(146)" opacity="0.45"><path d="M0 0L40 -0.6L40 0.6Z" fill="url(#tail)"/><circle r="1.8" fill="url(#tw)"/><circle r="0.48" fill="#F7FFFB"/></g><g transform="translate(286 262) rotate(146)" opacity="0.4"><path d="M0 0L34 -0.55L34 0.55Z" fill="url(#tail)"/><circle r="1.65" fill="url(#tw)"/><circle r="0.44" fill="#F7FFFB"/></g><g transform="translate(168 112) rotate(146)" opacity="0.3"><path d="M0 0L26 -0.5L26 0.5Z" fill="url(#tail)"/><circle r="1.5" fill="url(#tw)"/><circle r="0.4" fill="#F7FFFB"/></g>
36
+ <circle cx="180" cy="1040" r="674" fill="url(#atmo)"/>
37
+ <circle cx="180" cy="1040" r="640" fill="url(#ground)"/>
38
+ <g clip-path="url(#land)">
39
+ <rect x="0" y="380" width="360" height="260" filter="url(#grain)" opacity="0.1"/>
40
+ <ellipse cx="100" cy="452" rx="18" ry="4.18" fill="url(#bowl)"/><path d="M82 452A18 4.18 0 0 0 118 452" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M83.8 450.96A18 4.18 0 0 1 116.2 450.96" fill="none" stroke="#6EE7B7" stroke-width="1.46" opacity="0.1"/><ellipse cx="236" cy="436" rx="12" ry="2.33" fill="url(#bowl)"/><path d="M224 436A12 2.33 0 0 0 248 436" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M225.2 435.42A12 2.33 0 0 1 246.8 435.42" fill="none" stroke="#6EE7B7" stroke-width="0.82" opacity="0.1"/><ellipse cx="172" cy="528" rx="30" ry="13.8" fill="url(#bowl)"/><path d="M142 528A30 13.8 0 0 0 202 528" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M145 524.55A30 13.8 0 0 1 199 524.55" fill="none" stroke="#6EE7B7" stroke-width="4.83" opacity="0.1"/><ellipse cx="300" cy="492" rx="22" ry="7.19" fill="url(#bowl)"/><path d="M278 492A22 7.19 0 0 0 322 492" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M280.2 490.2A22 7.19 0 0 1 319.8 490.2" fill="none" stroke="#6EE7B7" stroke-width="2.52" opacity="0.1"/><ellipse cx="52" cy="506" rx="16" ry="5.79" fill="url(#bowl)"/><path d="M36 506A16 5.79 0 0 0 68 506" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M37.6 504.55A16 5.79 0 0 1 66.4 504.55" fill="none" stroke="#6EE7B7" stroke-width="2.03" opacity="0.1"/><ellipse cx="146" cy="470" rx="6" ry="1.77" fill="url(#bowl)"/><path d="M140 470A6 1.77 0 0 0 152 470" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M140.6 469.56A6 1.77 0 0 1 151.4 469.56" fill="none" stroke="#6EE7B7" stroke-width="0.62" opacity="0.1"/><ellipse cx="262" cy="462" rx="5" ry="1.3" fill="url(#bowl)"/><path d="M257 462A5 1.3 0 0 0 267 462" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M257.5 461.68A5 1.3 0 0 1 266.5 461.68" fill="none" stroke="#6EE7B7" stroke-width="0.5" opacity="0.1"/><ellipse cx="214" cy="584" rx="14" ry="7" fill="url(#bowl)"/><path d="M200 584A14 7 0 0 0 228 584" fill="none" stroke="#A7F3D0" stroke-width="0.6" opacity="0.16"/><path d="M201.4 582.25A14 7 0 0 1 226.6 582.25" fill="none" stroke="#6EE7B7" stroke-width="2.45" opacity="0.1"/>
41
+ <path d="M127 402.85L38 406.45L38 408.95L129 404.65Z" fill="url(#shadow)" filter="url(#haze)" opacity="0.9"/>
42
+ </g>
43
+ <circle cx="180" cy="1040" r="640" fill="none" stroke="url(#limb)" stroke-width="1"/>
44
+ <path transform="translate(64 411.2) rotate(-10.44)" d="M-5 0C-4 -2.38 -2 -3.4 -1 -3.4C1 -3.4 4.5 -1.7 5 0Z" fill="#050807"/><path transform="translate(72 409.78) rotate(-9.72)" d="M-2.6 0C-2.08 -1.26 -0.02 -1.8 0.5 -1.8C1.54 -1.8 2.34 -0.9 2.6 0Z" fill="#050807"/><path transform="translate(196 400.8) rotate(1.43)" d="M-3.4 0C-2.72 -1.54 -0.08 -2.2 0.6 -2.2C1.96 -2.2 3.06 -1.1 3.4 0Z" fill="#050807"/><path transform="translate(204 401.05) rotate(2.15)" d="M-1.6 0C-1.28 -0.77 -0.32 -1.1 0 -1.1C0.64 -1.1 1.44 -0.55 1.6 0Z" fill="#050807"/><path transform="translate(318 415.66) rotate(12.45)" d="M-6 0C-4.8 -2.8 -0.2 -4 1 -4C3.4 -4 5.4 -2 6 0Z" fill="#050807"/><path transform="translate(330 418.43) rotate(13.55)" d="M-2.4 0C-1.92 -1.1199999999999999 -0.48 -1.6 0 -1.6C0.96 -1.6 2.16 -0.8 2.4 0Z" fill="#050807"/>
45
+ <ellipse cx="276" cy="407.24" rx="230" ry="96.6" fill="url(#dawn)"/>
46
+ <rect x="156" y="406.64" width="240" height="1.2" fill="url(#streak)"/>
47
+ <g transform="translate(124 402.85) rotate(-5.02) scale(0.27) translate(-124 -245)">
48
+ <use href="#dino" fill="#D1FAE5"/>
49
+ <g clip-path="url(#body)"><use href="#dino" fill="url(#skin)" transform="translate(-7 1.5)"/></g>
38
50
  </g>
39
- <circle cx="180" cy="372" r="80" fill="url(#air)" mask="url(#airmask)"/>
40
- <g transform="translate(144.04 231.38) scale(0.29)"><path fill="#10B981" fill-rule="evenodd" d="M87.56 246.56C78.45 245.88 69.68 241.69 63.62 235.12C55.27 226.06 53.05 217.63 57.25 210.87C58.80 208.36 60.00 207.04 65.18 202.17C69.26 198.32 70.20 196.55 70.21 192.69C70.21 189.81 70.10 189.60 68.07 188.59C58.99 184.06 48.53 175.16 41.10 165.64C20.03 138.61 16.32 99.87 32.24 73.21C35.05 68.50 38.42 64.26 40.25 63.11C42.91 61.44 46.64 61.89 48.71 64.14C51.04 66.67 51.48 69.39 50.27 73.65C48.09 81.27 47.41 86.83 47.99 92.32C49.53 106.98 58.42 118.20 70.83 121.15C73.08 121.68 78.88 121.72 81.15 121.22C88.97 119.48 94.86 113.39 96.69 105.18C97.35 102.17 97.35 102.36 97.36 79.55C97.37 56.55 97.35 57.24 98.04 53.23C102.05 29.98 119.81 12.19 141.49 9.73C143.46 9.51 150.65 9.43 152.36 9.61C160.37 10.46 167.56 12.82 174.51 16.89C177.43 18.59 176.54 18.47 186.86 18.57C196.67 18.66 196.99 18.68 200.87 19.58C210.24 21.74 219.17 27.62 224.57 35.17C229.72 42.38 232.50 49.80 233.36 58.67C233.68 61.91 233.71 76.53 233.41 78.22C232.01 86.00 227.35 91.05 220.23 92.50C218.50 92.85 180.16 92.91 177.10 92.57C165.61 91.28 155.17 86.13 150.52 79.47C148.44 76.48 145.54 75.90 143.40 78.04C141.49 79.95 141.76 81.92 144.74 87.63C150.17 98.03 159.04 105.16 169.50 107.52C172.11 108.11 172.69 107.96 173.25 106.55C173.81 105.12 174.70 103.52 175.57 102.37C178.23 98.86 180.68 100.09 183.51 106.36C184.55 108.67 183.79 108.47 191.23 108.44C198.27 108.42 197.86 108.50 198.43 107.20C200.89 101.63 202.81 99.79 204.99 100.89C206.11 101.47 207.63 103.65 208.74 106.31C209.67 108.51 209.55 108.45 213.05 108.41C216.35 108.36 217.08 108.45 218.31 109.05C225.39 112.51 217.61 125.59 205.66 130.33C199.65 132.71 198.20 132.85 180.39 132.87C164.51 132.89 165.38 132.84 164.14 133.78C162.82 134.78 162.30 136.08 162.30 138.40C162.30 139.80 161.98 143.39 161.42 148.29C159.70 163.39 153.05 175.87 141.81 185.08C138.73 187.60 134.92 189.85 129.84 192.14C125.19 194.25 115.57 196.33 110.54 196.34C109.17 196.34 108.60 196.57 108.23 197.27C108.10 197.53 107.64 198.49 107.20 199.42C103.90 206.45 98.19 211.37 88.72 215.35C85.89 216.54 85.91 216.52 85.98 219.64C86.04 222.32 86.33 222.69 90.00 224.75C92.29 226.04 94.81 227.75 95.82 228.71C100.98 233.57 100.86 241.48 95.60 244.93C93.34 246.41 91.24 246.84 87.56 246.56ZM134.07 240.25C128.56 238.82 125.22 235.56 123.96 230.38C123.70 229.30 123.68 228.71 123.59 220.23C123.53 214.63 123.44 210.89 123.34 210.35C123.00 208.36 122.74 207.31 122.25 205.86C121.48 203.62 121.59 203.31 123.26 202.93C129.90 201.41 136.34 198.97 140.57 196.35C147.00 192.39 151.46 188.55 155.60 183.42C157.24 181.39 157.77 181.54 158.23 184.19C159.89 193.79 157.66 202.21 151.13 210.89C149.39 213.20 149.36 213.30 149.36 215.69C149.35 218.41 149.61 218.72 151.96 218.75C157.60 218.82 162.31 219.95 165.26 221.92C173.20 227.23 172.45 238.39 164.03 240.43C162.18 240.88 135.88 240.72 134.07 240.25ZM185.67 173.17C183.79 172.66 182.15 171.55 180.81 169.86C178.08 166.41 174.71 164.68 169.71 164.16C166.89 163.87 166.86 163.80 167.90 160.34C168.86 157.13 169.71 152.32 170.10 147.82C170.40 144.42 170.40 144.42 170.65 144.15C172.11 142.53 184.08 147.33 189.10 151.54C193.73 155.43 196.56 162.25 195.41 166.75C194.22 171.40 189.83 174.29 185.67 173.17ZM144.28 53.97C148.98 52.79 151.98 47.68 150.77 42.91C148.71 34.78 137.83 33.29 134.20 40.65C130.66 47.83 136.74 55.88 144.28 53.97Z"/></g>
41
- <circle cx="180" cy="372" r="70" fill="url(#planet)"/>
42
- <g clip-path="url(#ball)" fill="#0A0C0E">
43
- <ellipse cx="150" cy="378" rx="11" ry="7" opacity="0.5"/>
44
- <ellipse cx="204" cy="402" rx="15" ry="8.5" opacity="0.42"/>
45
- <ellipse cx="188" cy="342" rx="6" ry="3.5" opacity="0.48"/>
46
- <ellipse cx="140" cy="416" rx="7" ry="4" opacity="0.38"/>
51
+ <rect width="360" height="640" fill="url(#edge)"/>
47
52
  </g>
48
- <circle cx="180" cy="372" r="69.5" fill="none" stroke="url(#rim)" stroke-width="1"/>
49
53
  </svg>