@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.
- package/README.en.md +8 -7
- package/README.md +8 -7
- package/esm/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/esm/browser/assistant/assistant-chat-list.js +20 -2
- package/esm/browser/assistant/assistant-extension.d.ts +8 -1
- package/esm/browser/assistant/assistant-extension.js +25 -0
- package/esm/browser/assistant/assistant-protocol.d.ts +5 -2
- package/esm/browser/assistant/assistant-task-book.d.ts +12 -2
- package/esm/browser/assistant/assistant-task-book.js +23 -4
- package/esm/browser/assistant/assistant-task-source.d.ts +1 -1
- package/esm/browser/assistant/assistant-task-source.js +5 -10
- package/esm/browser/assistant/assistant-task-util.d.ts +14 -2
- package/esm/browser/assistant/assistant-task-util.js +62 -13
- package/esm/browser/assistant/assistant-view.js +117 -71
- package/esm/browser/assistant/assistant.d.ts +28 -5
- package/esm/browser/assistant/assistant.js +96 -22
- package/esm/browser/avatar/dino-face.js +1 -2
- package/esm/browser/chat/chat-packages.d.ts +39 -0
- package/esm/browser/chat/chat-packages.js +70 -0
- package/esm/browser/chat/chat-protocol.d.ts +28 -1
- package/esm/browser/chat/chat-stores.d.ts +62 -0
- package/esm/browser/chat/chat-stores.js +129 -0
- package/esm/browser/chat/chat-util.d.ts +17 -0
- package/esm/browser/chat/chat-util.js +61 -0
- package/esm/browser/chat/chat-view.js +45 -17
- package/esm/browser/chat/chat.d.ts +41 -41
- package/esm/browser/chat/chat.js +276 -190
- package/esm/browser/components/account-menu.d.ts +0 -2
- package/esm/browser/components/account-menu.js +1 -27
- package/esm/browser/components/agent-settings-view.d.ts +3 -2
- package/esm/browser/components/agent-settings-view.js +2 -1
- package/esm/browser/components/app-nav.d.ts +11 -5
- package/esm/browser/components/app-nav.js +39 -17
- package/esm/browser/components/app-shell-hooks.d.ts +2 -2
- package/esm/browser/components/app-shell-hooks.js +12 -6
- package/esm/browser/components/app-view.js +150 -36
- package/esm/browser/components/busy.d.ts +25 -0
- package/esm/browser/components/busy.js +52 -0
- package/esm/browser/components/chat-icon.d.ts +29 -0
- package/esm/browser/components/chat-icon.js +78 -0
- package/esm/browser/components/chat-list.d.ts +93 -8
- package/esm/browser/components/chat-list.js +411 -60
- package/esm/browser/components/chat-seen.d.ts +53 -0
- package/esm/browser/components/chat-seen.js +101 -0
- package/esm/browser/components/composer-box.d.ts +18 -8
- package/esm/browser/components/composer-box.js +199 -52
- package/esm/browser/components/composer.d.ts +13 -6
- package/esm/browser/components/composer.js +8 -5
- package/esm/browser/components/connection-bar.js +50 -17
- package/esm/browser/components/context-menu.d.ts +30 -4
- package/esm/browser/components/context-menu.js +199 -37
- package/esm/browser/components/conversation-scroll.d.ts +136 -6
- package/esm/browser/components/conversation-scroll.js +467 -108
- package/esm/browser/components/custom-host.d.ts +3 -0
- package/esm/browser/components/custom-host.js +14 -0
- package/esm/browser/components/directory-commands.d.ts +6 -0
- package/esm/browser/components/directory-commands.js +34 -0
- package/esm/browser/components/discover-view.d.ts +11 -4
- package/esm/browser/components/discover-view.js +20 -11
- package/esm/browser/components/dismiss.d.ts +3 -0
- package/esm/browser/components/dismiss.js +29 -0
- package/esm/browser/components/earlier-messages.d.ts +34 -2
- package/esm/browser/components/earlier-messages.js +42 -23
- package/esm/browser/components/editor-area.d.ts +6 -20
- package/esm/browser/components/editor-area.js +10 -96
- package/esm/browser/components/empty-pictures.d.ts +0 -2
- package/esm/browser/components/empty-pictures.js +0 -16
- package/esm/browser/components/fold-text.d.ts +20 -0
- package/esm/browser/components/fold-text.js +66 -0
- package/esm/browser/components/folder-picker.d.ts +6 -3
- package/esm/browser/components/folder-picker.js +27 -9
- package/esm/browser/components/full-screen.d.ts +9 -0
- package/esm/browser/components/full-screen.js +26 -0
- package/esm/browser/components/grow-box.d.ts +9 -0
- package/esm/browser/components/grow-box.js +50 -0
- package/esm/browser/components/held-talk.d.ts +28 -0
- package/esm/browser/components/held-talk.js +76 -0
- package/esm/browser/components/hold-to-talk.d.ts +22 -0
- package/esm/browser/components/hold-to-talk.js +29 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/icon.d.ts +5 -3
- package/esm/browser/components/icon.js +9 -9
- package/esm/browser/components/image-viewer.d.ts +132 -0
- package/esm/browser/components/image-viewer.js +434 -0
- package/esm/browser/components/launcher-search-util.d.ts +4 -3
- package/esm/browser/components/launcher-search-util.js +12 -4
- package/esm/browser/components/lightbox.d.ts +14 -0
- package/esm/browser/components/lightbox.js +25 -0
- package/esm/browser/components/list-rows.d.ts +9 -1
- package/esm/browser/components/list-rows.js +17 -3
- package/esm/browser/components/markdown.d.ts +6 -2
- package/esm/browser/components/markdown.js +60 -14
- package/esm/browser/components/media.js +20 -12
- package/esm/browser/components/message-actions.js +2 -0
- package/esm/browser/components/message-footer.d.ts +22 -2
- package/esm/browser/components/message-footer.js +47 -13
- package/esm/browser/components/message-list.d.ts +78 -6
- package/esm/browser/components/message-list.js +281 -36
- package/esm/browser/components/message-menu.d.ts +3 -1
- package/esm/browser/components/message-menu.js +24 -4
- package/esm/browser/components/model-picker.js +1 -0
- package/esm/browser/components/nav-places.d.ts +37 -3
- package/esm/browser/components/nav-places.js +32 -7
- package/esm/browser/components/notice-center.js +34 -0
- package/esm/browser/components/notice-face.d.ts +10 -0
- package/esm/browser/components/notice-face.js +28 -0
- package/esm/browser/components/phone-shell.d.ts +27 -2
- package/esm/browser/components/phone-shell.js +98 -9
- package/esm/browser/components/picture.d.ts +8 -1
- package/esm/browser/components/picture.js +12 -1
- package/esm/browser/components/plus-menu.d.ts +23 -0
- package/esm/browser/components/plus-menu.js +90 -0
- package/esm/browser/components/recent-shot.d.ts +15 -0
- package/esm/browser/components/recent-shot.js +174 -0
- package/esm/browser/components/relay-view.js +10 -3
- package/esm/browser/components/run-status.d.ts +1 -1
- package/esm/browser/components/run-status.js +17 -29
- package/esm/browser/components/said-text.d.ts +6 -0
- package/esm/browser/components/said-text.js +14 -0
- package/esm/browser/components/scan-screen.d.ts +10 -0
- package/esm/browser/components/scan-screen.js +230 -0
- package/esm/browser/components/search-page.js +10 -6
- package/esm/browser/components/session-settings.d.ts +8 -3
- package/esm/browser/components/session-settings.js +15 -1
- package/esm/browser/components/session-view.js +36 -22
- package/esm/browser/components/settings-choices.d.ts +1 -0
- package/esm/browser/components/settings-choices.js +3 -2
- package/esm/browser/components/settings-controls.d.ts +5 -3
- package/esm/browser/components/settings-controls.js +10 -1
- package/esm/browser/components/settings-parts.d.ts +2 -2
- package/esm/browser/components/settings-parts.js +69 -15
- package/esm/browser/components/swipe-row.d.ts +2 -2
- package/esm/browser/components/swipe-row.js +7 -3
- package/esm/browser/components/tool-view.js +21 -14
- package/esm/browser/components/unseen-drop.d.ts +39 -0
- package/esm/browser/components/unseen-drop.js +219 -0
- package/esm/browser/components/use-seen-chats.d.ts +8 -0
- package/esm/browser/components/use-seen-chats.js +49 -0
- package/esm/browser/components/voice-button.d.ts +7 -1
- package/esm/browser/components/voice-button.js +15 -2
- package/esm/browser/components/voice-picker.d.ts +6 -0
- package/esm/browser/components/voice-picker.js +53 -0
- package/esm/browser/components/voice-talk.d.ts +51 -0
- package/esm/browser/components/voice-talk.js +242 -0
- package/esm/browser/components/web-composer.d.ts +4 -2
- package/esm/browser/components/web-composer.js +8 -4
- package/esm/browser/components/workbench-tabs.d.ts +41 -0
- package/esm/browser/components/workbench-tabs.js +193 -0
- package/esm/browser/components/workbench-toggle.d.ts +0 -13
- package/esm/browser/components/workbench-toggle.js +1 -28
- package/esm/browser/device/code-scan.d.ts +55 -0
- package/esm/browser/device/code-scan.js +137 -0
- package/esm/browser/device/code-vision.d.ts +51 -0
- package/esm/browser/device/code-vision.js +100 -0
- package/esm/browser/device/device.d.ts +3 -0
- package/esm/browser/device/device.js +11 -1
- package/esm/browser/device/hold.d.ts +42 -0
- package/esm/browser/device/hold.js +134 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +1 -1
- package/esm/browser/device/long-press.d.ts +12 -0
- package/esm/browser/device/long-press.js +44 -13
- package/esm/browser/device/own-gestures.d.ts +25 -0
- package/esm/browser/device/own-gestures.js +39 -0
- package/esm/browser/device/pull-down.d.ts +4 -2
- package/esm/browser/device/pull-down.js +67 -78
- package/esm/browser/device/recent-shots.d.ts +45 -0
- package/esm/browser/device/recent-shots.js +142 -0
- package/esm/browser/device/row-swipe.d.ts +35 -10
- package/esm/browser/device/row-swipe.js +154 -71
- package/esm/browser/device/shake-undo.d.ts +16 -0
- package/esm/browser/device/shake-undo.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +118 -18
- package/esm/browser/device/sheet-swipe.js +414 -108
- package/esm/browser/extension/extension-view.d.ts +10 -0
- package/esm/browser/extension/extension-view.js +6 -0
- package/esm/browser/extension/icons.js +15 -2
- package/esm/browser/extension/web-api-components.d.ts +269 -0
- package/esm/browser/extension/web-api-components.js +2 -0
- package/esm/browser/extension/web-api-contributions.d.ts +385 -0
- package/esm/browser/extension/web-api-contributions.js +2 -0
- package/esm/browser/extension/web-api-desktop.d.ts +55 -0
- package/esm/browser/extension/web-api-desktop.js +2 -0
- package/esm/browser/extension/web-api-terminal.d.ts +71 -0
- package/esm/browser/extension/web-api-terminal.js +2 -0
- package/esm/browser/extension/web-editor-tabs.d.ts +42 -0
- package/esm/browser/extension/web-editor-tabs.js +137 -0
- package/esm/browser/extension/web-extension-api.d.ts +218 -521
- package/esm/browser/extension/web-extension-code.d.ts +6 -0
- package/esm/browser/extension/web-extension-code.js +24 -0
- package/esm/browser/extension/web-extension-context.d.ts +78 -0
- package/esm/browser/extension/web-extension-context.js +346 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +66 -6
- package/esm/browser/extension/web-extension-protocol.js +41 -0
- package/esm/browser/extension/web-extension-run.d.ts +54 -0
- package/esm/browser/extension/web-extension-run.js +120 -0
- package/esm/browser/extension/web-extensions.d.ts +41 -68
- package/esm/browser/extension/web-extensions.js +188 -487
- package/esm/browser/extension/web-home.d.ts +19 -0
- package/esm/browser/extension/web-home.js +72 -0
- package/esm/browser/extension/web-pages.d.ts +13 -3
- package/esm/browser/extension/web-pages.js +23 -3
- package/esm/browser/extension/web-session-notices.d.ts +36 -0
- package/esm/browser/extension/web-session-notices.js +174 -0
- package/esm/browser/extension/web-sharing.d.ts +2 -0
- package/esm/browser/extension/web-sharing.js +4 -0
- package/esm/browser/files/files-protocol.d.ts +25 -0
- package/esm/browser/files/files-protocol.js +2 -0
- package/esm/browser/files/files.d.ts +35 -0
- package/esm/browser/files/files.js +119 -0
- package/esm/browser/game/game-host.d.ts +27 -0
- package/esm/browser/game/game-host.js +127 -0
- package/esm/browser/game/game-loader.d.ts +10 -0
- package/esm/browser/game/game-loader.js +28 -0
- package/esm/browser/game/game-protocol.d.ts +49 -0
- package/esm/browser/game/game-protocol.js +2 -0
- package/esm/browser/game/game-runner.d.ts +27 -0
- package/esm/browser/game/game-runner.js +60 -0
- package/esm/browser/game/game-util.d.ts +29 -0
- package/esm/browser/game/game-util.js +180 -0
- package/esm/browser/game/game-view.d.ts +12 -0
- package/esm/browser/game/game-view.js +31 -0
- package/esm/browser/game/game3d-protocol.d.ts +51 -0
- package/esm/browser/game/game3d-protocol.js +2 -0
- package/esm/browser/game/game3d-runner.d.ts +27 -0
- package/esm/browser/game/game3d-runner.js +149 -0
- package/esm/browser/hooks.d.ts +5 -1
- package/esm/browser/hooks.js +13 -2
- package/esm/browser/i18n/locales.d.ts +105 -3
- package/esm/browser/i18n/messages.d.ts +104 -2
- package/esm/browser/i18n/messages.js +215 -11
- package/esm/browser/index.d.ts +15 -0
- package/esm/browser/index.js +15 -0
- package/esm/browser/links/links-protocol.d.ts +5 -0
- package/esm/browser/links/links.d.ts +19 -7
- package/esm/browser/links/links.js +57 -11
- package/esm/browser/markdown/code-renderers.d.ts +4 -0
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/notices/notices-protocol.d.ts +26 -1
- package/esm/browser/notices/notices.d.ts +3 -1
- package/esm/browser/notices/notices.js +26 -12
- package/esm/browser/notices/session-notices.d.ts +69 -0
- package/esm/browser/notices/session-notices.js +92 -0
- package/esm/browser/offline/device-values.d.ts +55 -0
- package/esm/browser/offline/device-values.js +151 -0
- package/esm/browser/offline/kept-chats-protocol.d.ts +17 -0
- package/esm/browser/offline/kept-chats-protocol.js +2 -0
- package/esm/browser/offline/kept-chats.d.ts +47 -0
- package/esm/browser/offline/kept-chats.js +146 -0
- package/esm/browser/offline/offline-reads.d.ts +44 -0
- package/esm/browser/offline/offline-reads.js +109 -0
- package/esm/browser/settings/navigation.d.ts +3 -2
- package/esm/browser/settings/navigation.js +4 -3
- package/esm/browser/settings/settings-protocol.d.ts +17 -0
- package/esm/browser/settings/settings-protocol.js +20 -4
- package/esm/browser/state/state-protocol.d.ts +8 -1
- package/esm/browser/state/state.d.ts +2 -0
- package/esm/browser/state/state.js +21 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +27 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +95 -17
- package/esm/browser/style/device.js +42 -5
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +252 -67
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +38 -2
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +15 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +76 -9
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +2 -2
- package/esm/browser/style/tints.d.ts +27 -0
- package/esm/browser/style/tints.js +56 -0
- package/esm/browser/style.js +13 -1
- package/esm/browser/util/composer.d.ts +6 -0
- package/esm/browser/util/composer.js +16 -0
- package/esm/browser/util/desktop.d.ts +19 -1
- package/esm/browser/util/desktop.js +15 -0
- package/esm/browser/util/frame.d.ts +5 -4
- package/esm/browser/util/frame.js +5 -4
- package/esm/browser/util/link.d.ts +18 -0
- package/esm/browser/util/link.js +66 -1
- package/esm/browser/util/markdown.d.ts +22 -2
- package/esm/browser/util/markdown.js +120 -6
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +30 -0
- package/esm/browser/util/process.d.ts +35 -2
- package/esm/browser/util/process.js +79 -4
- package/esm/browser/util/progress.d.ts +19 -1
- package/esm/browser/util/progress.js +57 -4
- package/esm/browser/util/quote.d.ts +19 -0
- package/esm/browser/util/quote.js +58 -0
- package/esm/browser/util/tool.d.ts +19 -2
- package/esm/browser/util/tool.js +70 -2
- package/esm/browser/util/voice.d.ts +49 -6
- package/esm/browser/util/voice.js +271 -26
- package/esm/browser/util/zoom.d.ts +46 -0
- package/esm/browser/util/zoom.js +96 -0
- package/esm/browser/workbench-calls.d.ts +61 -0
- package/esm/browser/workbench-calls.js +146 -0
- package/esm/browser/workbench-protocol.d.ts +36 -3
- package/esm/browser/workbench-util.d.ts +22 -4
- package/esm/browser/workbench-util.js +37 -7
- package/esm/browser/workbench.d.ts +47 -6
- package/esm/browser/workbench.js +191 -43
- package/lib/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/lib/browser/assistant/assistant-chat-list.js +21 -2
- package/lib/browser/assistant/assistant-extension.d.ts +8 -1
- package/lib/browser/assistant/assistant-extension.js +25 -0
- package/lib/browser/assistant/assistant-protocol.d.ts +5 -2
- package/lib/browser/assistant/assistant-task-book.d.ts +12 -2
- package/lib/browser/assistant/assistant-task-book.js +23 -4
- package/lib/browser/assistant/assistant-task-source.d.ts +1 -1
- package/lib/browser/assistant/assistant-task-source.js +5 -10
- package/lib/browser/assistant/assistant-task-util.d.ts +14 -2
- package/lib/browser/assistant/assistant-task-util.js +62 -13
- package/lib/browser/assistant/assistant-view.js +113 -67
- package/lib/browser/assistant/assistant.d.ts +28 -5
- package/lib/browser/assistant/assistant.js +96 -22
- package/lib/browser/avatar/dino-face.js +1 -2
- package/lib/browser/chat/chat-packages.d.ts +40 -0
- package/lib/browser/chat/chat-packages.js +74 -0
- package/lib/browser/chat/chat-protocol.d.ts +28 -1
- package/lib/browser/chat/chat-stores.d.ts +63 -0
- package/lib/browser/chat/chat-stores.js +133 -0
- package/lib/browser/chat/chat-util.d.ts +18 -0
- package/lib/browser/chat/chat-util.js +64 -0
- package/lib/browser/chat/chat-view.js +44 -16
- package/lib/browser/chat/chat.d.ts +41 -41
- package/lib/browser/chat/chat.js +277 -191
- package/lib/browser/components/account-menu.d.ts +0 -2
- package/lib/browser/components/account-menu.js +2 -29
- package/lib/browser/components/agent-settings-view.d.ts +3 -2
- package/lib/browser/components/agent-settings-view.js +2 -1
- package/lib/browser/components/app-nav.d.ts +11 -5
- package/lib/browser/components/app-nav.js +35 -13
- package/lib/browser/components/app-shell-hooks.d.ts +2 -2
- package/lib/browser/components/app-shell-hooks.js +12 -6
- package/lib/browser/components/app-view.js +145 -31
- package/lib/browser/components/busy.d.ts +26 -0
- package/lib/browser/components/busy.js +91 -0
- package/lib/browser/components/chat-icon.d.ts +30 -0
- package/lib/browser/components/chat-icon.js +117 -0
- package/lib/browser/components/chat-list.d.ts +93 -8
- package/lib/browser/components/chat-list.js +412 -60
- package/lib/browser/components/chat-seen.d.ts +54 -0
- package/lib/browser/components/chat-seen.js +104 -0
- package/lib/browser/components/composer-box.d.ts +18 -8
- package/lib/browser/components/composer-box.js +198 -51
- package/lib/browser/components/composer.d.ts +13 -6
- package/lib/browser/components/composer.js +7 -4
- package/lib/browser/components/connection-bar.js +48 -15
- package/lib/browser/components/context-menu.d.ts +30 -4
- package/lib/browser/components/context-menu.js +198 -36
- package/lib/browser/components/conversation-scroll.d.ts +136 -6
- package/lib/browser/components/conversation-scroll.js +469 -109
- package/lib/browser/components/custom-host.d.ts +4 -0
- package/lib/browser/components/custom-host.js +50 -0
- package/lib/browser/components/directory-commands.d.ts +7 -0
- package/lib/browser/components/directory-commands.js +70 -0
- package/lib/browser/components/discover-view.d.ts +11 -4
- package/lib/browser/components/discover-view.js +19 -10
- package/lib/browser/components/dismiss.d.ts +4 -0
- package/lib/browser/components/dismiss.js +65 -0
- package/lib/browser/components/earlier-messages.d.ts +34 -2
- package/lib/browser/components/earlier-messages.js +44 -24
- package/lib/browser/components/editor-area.d.ts +6 -20
- package/lib/browser/components/editor-area.js +11 -97
- package/lib/browser/components/empty-pictures.d.ts +0 -2
- package/lib/browser/components/empty-pictures.js +0 -17
- package/lib/browser/components/fold-text.d.ts +21 -0
- package/lib/browser/components/fold-text.js +103 -0
- package/lib/browser/components/folder-picker.d.ts +6 -3
- package/lib/browser/components/folder-picker.js +27 -9
- package/lib/browser/components/full-screen.d.ts +10 -0
- package/lib/browser/components/full-screen.js +62 -0
- package/lib/browser/components/grow-box.d.ts +10 -0
- package/lib/browser/components/grow-box.js +86 -0
- package/lib/browser/components/held-talk.d.ts +29 -0
- package/lib/browser/components/held-talk.js +79 -0
- package/lib/browser/components/hold-to-talk.d.ts +23 -0
- package/lib/browser/components/hold-to-talk.js +65 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/icon.d.ts +5 -3
- package/lib/browser/components/icon.js +11 -9
- package/lib/browser/components/image-viewer.d.ts +133 -0
- package/lib/browser/components/image-viewer.js +472 -0
- package/lib/browser/components/launcher-search-util.d.ts +4 -3
- package/lib/browser/components/launcher-search-util.js +12 -4
- package/lib/browser/components/lightbox.d.ts +15 -0
- package/lib/browser/components/lightbox.js +61 -0
- package/lib/browser/components/list-rows.d.ts +9 -1
- package/lib/browser/components/list-rows.js +18 -3
- package/lib/browser/components/markdown.d.ts +6 -2
- package/lib/browser/components/markdown.js +60 -14
- package/lib/browser/components/media.js +21 -13
- package/lib/browser/components/message-actions.js +2 -0
- package/lib/browser/components/message-footer.d.ts +22 -2
- package/lib/browser/components/message-footer.js +49 -12
- package/lib/browser/components/message-list.d.ts +78 -6
- package/lib/browser/components/message-list.js +281 -32
- package/lib/browser/components/message-menu.d.ts +3 -1
- package/lib/browser/components/message-menu.js +23 -3
- package/lib/browser/components/model-picker.js +1 -0
- package/lib/browser/components/nav-places.d.ts +37 -3
- package/lib/browser/components/nav-places.js +35 -7
- package/lib/browser/components/notice-center.js +34 -0
- package/lib/browser/components/notice-face.d.ts +11 -0
- package/lib/browser/components/notice-face.js +64 -0
- package/lib/browser/components/phone-shell.d.ts +27 -2
- package/lib/browser/components/phone-shell.js +99 -10
- package/lib/browser/components/picture.d.ts +8 -1
- package/lib/browser/components/picture.js +13 -1
- package/lib/browser/components/plus-menu.d.ts +24 -0
- package/lib/browser/components/plus-menu.js +126 -0
- package/lib/browser/components/recent-shot.d.ts +16 -0
- package/lib/browser/components/recent-shot.js +210 -0
- package/lib/browser/components/relay-view.js +10 -3
- package/lib/browser/components/run-status.d.ts +1 -1
- package/lib/browser/components/run-status.js +17 -29
- package/lib/browser/components/said-text.d.ts +7 -0
- package/lib/browser/components/said-text.js +50 -0
- package/lib/browser/components/scan-screen.d.ts +11 -0
- package/lib/browser/components/scan-screen.js +266 -0
- package/lib/browser/components/search-page.js +10 -6
- package/lib/browser/components/session-settings.d.ts +8 -3
- package/lib/browser/components/session-settings.js +15 -1
- package/lib/browser/components/session-view.js +32 -18
- package/lib/browser/components/settings-choices.d.ts +1 -0
- package/lib/browser/components/settings-choices.js +2 -1
- package/lib/browser/components/settings-controls.d.ts +5 -3
- package/lib/browser/components/settings-controls.js +10 -1
- package/lib/browser/components/settings-parts.d.ts +2 -2
- package/lib/browser/components/settings-parts.js +67 -13
- package/lib/browser/components/swipe-row.d.ts +2 -2
- package/lib/browser/components/swipe-row.js +7 -3
- package/lib/browser/components/tool-view.js +21 -14
- package/lib/browser/components/unseen-drop.d.ts +40 -0
- package/lib/browser/components/unseen-drop.js +256 -0
- package/lib/browser/components/use-seen-chats.d.ts +9 -0
- package/lib/browser/components/use-seen-chats.js +85 -0
- package/lib/browser/components/voice-button.d.ts +7 -1
- package/lib/browser/components/voice-button.js +16 -2
- package/lib/browser/components/voice-picker.d.ts +7 -0
- package/lib/browser/components/voice-picker.js +89 -0
- package/lib/browser/components/voice-talk.d.ts +52 -0
- package/lib/browser/components/voice-talk.js +281 -0
- package/lib/browser/components/web-composer.d.ts +4 -2
- package/lib/browser/components/web-composer.js +7 -3
- package/lib/browser/components/workbench-tabs.d.ts +42 -0
- package/lib/browser/components/workbench-tabs.js +232 -0
- package/lib/browser/components/workbench-toggle.d.ts +0 -13
- package/lib/browser/components/workbench-toggle.js +1 -29
- package/lib/browser/device/code-scan.d.ts +56 -0
- package/lib/browser/device/code-scan.js +141 -0
- package/lib/browser/device/code-vision.d.ts +52 -0
- package/lib/browser/device/code-vision.js +103 -0
- package/lib/browser/device/device.d.ts +3 -0
- package/lib/browser/device/device.js +11 -1
- package/lib/browser/device/hold.d.ts +43 -0
- package/lib/browser/device/hold.js +171 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +1 -1
- package/lib/browser/device/long-press.d.ts +12 -0
- package/lib/browser/device/long-press.js +44 -13
- package/lib/browser/device/own-gestures.d.ts +26 -0
- package/lib/browser/device/own-gestures.js +42 -0
- package/lib/browser/device/pull-down.d.ts +4 -2
- package/lib/browser/device/pull-down.js +66 -77
- package/lib/browser/device/recent-shots.d.ts +46 -0
- package/lib/browser/device/recent-shots.js +145 -0
- package/lib/browser/device/row-swipe.d.ts +35 -10
- package/lib/browser/device/row-swipe.js +153 -70
- package/lib/browser/device/shake-undo.d.ts +17 -0
- package/lib/browser/device/shake-undo.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +118 -18
- package/lib/browser/device/sheet-swipe.js +418 -109
- package/lib/browser/extension/extension-view.d.ts +10 -0
- package/lib/browser/extension/extension-view.js +7 -1
- package/lib/browser/extension/icons.js +14 -1
- package/lib/browser/extension/web-api-components.d.ts +270 -0
- package/lib/browser/extension/web-api-components.js +3 -0
- package/lib/browser/extension/web-api-contributions.d.ts +386 -0
- package/lib/browser/extension/web-api-contributions.js +3 -0
- package/lib/browser/extension/web-api-desktop.d.ts +56 -0
- package/lib/browser/extension/web-api-desktop.js +3 -0
- package/lib/browser/extension/web-api-terminal.d.ts +72 -0
- package/lib/browser/extension/web-api-terminal.js +3 -0
- package/lib/browser/extension/web-editor-tabs.d.ts +43 -0
- package/lib/browser/extension/web-editor-tabs.js +141 -0
- package/lib/browser/extension/web-extension-api.d.ts +218 -521
- package/lib/browser/extension/web-extension-code.d.ts +6 -0
- package/lib/browser/extension/web-extension-code.js +24 -0
- package/lib/browser/extension/web-extension-context.d.ts +79 -0
- package/lib/browser/extension/web-extension-context.js +383 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +66 -6
- package/lib/browser/extension/web-extension-protocol.js +42 -1
- package/lib/browser/extension/web-extension-run.d.ts +55 -0
- package/lib/browser/extension/web-extension-run.js +123 -0
- package/lib/browser/extension/web-extensions.d.ts +41 -68
- package/lib/browser/extension/web-extensions.js +184 -516
- package/lib/browser/extension/web-home.d.ts +20 -0
- package/lib/browser/extension/web-home.js +76 -0
- package/lib/browser/extension/web-pages.d.ts +13 -3
- package/lib/browser/extension/web-pages.js +23 -3
- package/lib/browser/extension/web-session-notices.d.ts +37 -0
- package/lib/browser/extension/web-session-notices.js +177 -0
- package/lib/browser/extension/web-sharing.d.ts +2 -0
- package/lib/browser/extension/web-sharing.js +4 -0
- package/lib/browser/files/files-protocol.d.ts +26 -0
- package/lib/browser/files/files-protocol.js +5 -0
- package/lib/browser/files/files.d.ts +36 -0
- package/lib/browser/files/files.js +122 -0
- package/lib/browser/game/game-host.d.ts +28 -0
- package/lib/browser/game/game-host.js +163 -0
- package/lib/browser/game/game-loader.d.ts +11 -0
- package/lib/browser/game/game-loader.js +31 -0
- package/lib/browser/game/game-protocol.d.ts +50 -0
- package/lib/browser/game/game-protocol.js +3 -0
- package/lib/browser/game/game-runner.d.ts +28 -0
- package/lib/browser/game/game-runner.js +64 -0
- package/lib/browser/game/game-util.d.ts +30 -0
- package/lib/browser/game/game-util.js +183 -0
- package/lib/browser/game/game-view.d.ts +13 -0
- package/lib/browser/game/game-view.js +68 -0
- package/lib/browser/game/game3d-protocol.d.ts +52 -0
- package/lib/browser/game/game3d-protocol.js +3 -0
- package/lib/browser/game/game3d-runner.d.ts +28 -0
- package/lib/browser/game/game3d-runner.js +153 -0
- package/lib/browser/hooks.d.ts +5 -1
- package/lib/browser/hooks.js +14 -2
- package/lib/browser/i18n/locales.d.ts +105 -3
- package/lib/browser/i18n/messages.d.ts +104 -2
- package/lib/browser/i18n/messages.js +215 -11
- package/lib/browser/index.d.ts +15 -0
- package/lib/browser/index.js +15 -0
- package/lib/browser/links/links-protocol.d.ts +5 -0
- package/lib/browser/links/links.d.ts +19 -7
- package/lib/browser/links/links.js +57 -11
- package/lib/browser/markdown/code-renderers.d.ts +5 -0
- package/lib/browser/markdown/code-renderers.js +40 -0
- package/lib/browser/notices/notices-protocol.d.ts +26 -1
- package/lib/browser/notices/notices.d.ts +3 -1
- package/lib/browser/notices/notices.js +26 -12
- package/lib/browser/notices/session-notices.d.ts +70 -0
- package/lib/browser/notices/session-notices.js +96 -0
- package/lib/browser/offline/device-values.d.ts +56 -0
- package/lib/browser/offline/device-values.js +157 -0
- package/lib/browser/offline/kept-chats-protocol.d.ts +18 -0
- package/lib/browser/offline/kept-chats-protocol.js +5 -0
- package/lib/browser/offline/kept-chats.d.ts +48 -0
- package/lib/browser/offline/kept-chats.js +149 -0
- package/lib/browser/offline/offline-reads.d.ts +45 -0
- package/lib/browser/offline/offline-reads.js +113 -0
- package/lib/browser/settings/navigation.d.ts +3 -2
- package/lib/browser/settings/navigation.js +4 -3
- package/lib/browser/settings/settings-protocol.d.ts +17 -0
- package/lib/browser/settings/settings-protocol.js +21 -5
- package/lib/browser/state/state-protocol.d.ts +8 -1
- package/lib/browser/state/state.d.ts +2 -0
- package/lib/browser/state/state.js +21 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +27 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +95 -17
- package/lib/browser/style/device.js +42 -5
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +252 -67
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +38 -2
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +15 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +76 -9
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +2 -2
- package/lib/browser/style/tints.d.ts +28 -0
- package/lib/browser/style/tints.js +59 -0
- package/lib/browser/style.js +13 -1
- package/lib/browser/util/composer.d.ts +6 -0
- package/lib/browser/util/composer.js +16 -0
- package/lib/browser/util/desktop.d.ts +19 -1
- package/lib/browser/util/desktop.js +15 -0
- package/lib/browser/util/frame.d.ts +5 -4
- package/lib/browser/util/frame.js +5 -4
- package/lib/browser/util/link.d.ts +18 -0
- package/lib/browser/util/link.js +66 -1
- package/lib/browser/util/markdown.d.ts +22 -2
- package/lib/browser/util/markdown.js +120 -6
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +30 -0
- package/lib/browser/util/process.d.ts +35 -2
- package/lib/browser/util/process.js +80 -5
- package/lib/browser/util/progress.d.ts +19 -1
- package/lib/browser/util/progress.js +57 -4
- package/lib/browser/util/quote.d.ts +20 -0
- package/lib/browser/util/quote.js +61 -0
- package/lib/browser/util/tool.d.ts +19 -2
- package/lib/browser/util/tool.js +70 -2
- package/lib/browser/util/voice.d.ts +49 -6
- package/lib/browser/util/voice.js +271 -26
- package/lib/browser/util/zoom.d.ts +47 -0
- package/lib/browser/util/zoom.js +99 -0
- package/lib/browser/workbench-calls.d.ts +62 -0
- package/lib/browser/workbench-calls.js +150 -0
- package/lib/browser/workbench-protocol.d.ts +36 -3
- package/lib/browser/workbench-util.d.ts +22 -4
- package/lib/browser/workbench-util.js +38 -8
- package/lib/browser/workbench.d.ts +47 -6
- package/lib/browser/workbench.js +189 -41
- package/package.json +14 -11
- package/public/launch.svg +46 -42
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IndexedValues = exports.MemoryValues = exports.OfflineKeys = void 0;
|
|
4
|
+
exports.deviceValues = deviceValues;
|
|
5
|
+
/** The keys of what is kept, each with the computer it is of: what one computer showed is not shown for another. */
|
|
6
|
+
var OfflineKeys;
|
|
7
|
+
(function (OfflineKeys) {
|
|
8
|
+
/** The answer of a call that reads (OfflineReads). */
|
|
9
|
+
function read(host, call) {
|
|
10
|
+
return `read|${host}|${call}`;
|
|
11
|
+
}
|
|
12
|
+
OfflineKeys.read = read;
|
|
13
|
+
/** The conversation of a session file (KeptChats). */
|
|
14
|
+
function chat(host, sessionFile) {
|
|
15
|
+
return `chat|${host}|${sessionFile}`;
|
|
16
|
+
}
|
|
17
|
+
OfflineKeys.chat = chat;
|
|
18
|
+
/** Which conversations are kept, the one seen last at the end. */
|
|
19
|
+
function chats(host) {
|
|
20
|
+
return `chats|${host}`;
|
|
21
|
+
}
|
|
22
|
+
OfflineKeys.chats = chats;
|
|
23
|
+
/** Takes off the device all that was kept of a computer. */
|
|
24
|
+
async function forget(values, host) {
|
|
25
|
+
await Promise.all([values.deleteAll(read(host, '')), values.deleteAll(chat(host, '')), values.delete(chats(host))]);
|
|
26
|
+
}
|
|
27
|
+
OfflineKeys.forget = forget;
|
|
28
|
+
})(OfflineKeys || (exports.OfflineKeys = OfflineKeys = {}));
|
|
29
|
+
/** In memory: where there is no IndexedDB (a test, a browser that has it off), kept for the page only. */
|
|
30
|
+
class MemoryValues {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.values = new Map();
|
|
33
|
+
}
|
|
34
|
+
async get(key) {
|
|
35
|
+
return this.values.get(key);
|
|
36
|
+
}
|
|
37
|
+
async entries(prefix) {
|
|
38
|
+
return [...this.values].filter(([key]) => key.startsWith(prefix));
|
|
39
|
+
}
|
|
40
|
+
async set(key, value) {
|
|
41
|
+
this.values.set(key, value);
|
|
42
|
+
}
|
|
43
|
+
async delete(key) {
|
|
44
|
+
this.values.delete(key);
|
|
45
|
+
}
|
|
46
|
+
async deleteAll(prefix) {
|
|
47
|
+
for (const key of [...this.values.keys()]) {
|
|
48
|
+
if (key.startsWith(prefix)) {
|
|
49
|
+
this.values.delete(key);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.MemoryValues = MemoryValues;
|
|
55
|
+
/**
|
|
56
|
+
* In IndexedDB, one store of keys and values. What fails (no room, the database closed under it) is as if
|
|
57
|
+
* nothing were kept: the page then waits for the computer, as it would without.
|
|
58
|
+
*/
|
|
59
|
+
class IndexedValues {
|
|
60
|
+
constructor(factory) {
|
|
61
|
+
this.factory = factory;
|
|
62
|
+
}
|
|
63
|
+
get(key) {
|
|
64
|
+
return this.run('readonly', store => store.get(key), undefined);
|
|
65
|
+
}
|
|
66
|
+
entries(prefix) {
|
|
67
|
+
return this.run('readonly', store => new Promise((resolve, reject) => {
|
|
68
|
+
const found = [];
|
|
69
|
+
const cursor = store.openCursor(IndexedValues.range(prefix));
|
|
70
|
+
cursor.onsuccess = () => {
|
|
71
|
+
const at = cursor.result;
|
|
72
|
+
if (!at) {
|
|
73
|
+
resolve(found);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
found.push([String(at.key), at.value]);
|
|
77
|
+
at.continue();
|
|
78
|
+
};
|
|
79
|
+
cursor.onerror = () => reject(cursor.error);
|
|
80
|
+
}), []);
|
|
81
|
+
}
|
|
82
|
+
set(key, value) {
|
|
83
|
+
return this.run('readwrite', store => store.put(value, key), undefined);
|
|
84
|
+
}
|
|
85
|
+
delete(key) {
|
|
86
|
+
return this.run('readwrite', store => store.delete(key), undefined);
|
|
87
|
+
}
|
|
88
|
+
deleteAll(prefix) {
|
|
89
|
+
return this.run('readwrite', store => store.delete(IndexedValues.range(prefix)), undefined);
|
|
90
|
+
}
|
|
91
|
+
/** The keys that start with `prefix`. */
|
|
92
|
+
static range(prefix) {
|
|
93
|
+
return IDBKeyRange.bound(prefix, `${prefix}\uffff`);
|
|
94
|
+
}
|
|
95
|
+
open() {
|
|
96
|
+
var _a;
|
|
97
|
+
(_a = this.database) !== null && _a !== void 0 ? _a : (this.database = new Promise(resolve => {
|
|
98
|
+
try {
|
|
99
|
+
const request = this.factory.open(IndexedValues.DATABASE, 1);
|
|
100
|
+
request.onupgradeneeded = () => request.result.createObjectStore(IndexedValues.STORE);
|
|
101
|
+
request.onsuccess = () => {
|
|
102
|
+
const database = request.result;
|
|
103
|
+
// Closed by the browser (storage cleared): opened again next time.
|
|
104
|
+
database.onclose = () => {
|
|
105
|
+
this.database = undefined;
|
|
106
|
+
};
|
|
107
|
+
resolve(database);
|
|
108
|
+
};
|
|
109
|
+
request.onerror = () => resolve(undefined);
|
|
110
|
+
request.onblocked = () => resolve(undefined);
|
|
111
|
+
}
|
|
112
|
+
catch (_a) {
|
|
113
|
+
resolve(undefined);
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
116
|
+
return this.database;
|
|
117
|
+
}
|
|
118
|
+
async run(mode, work, otherwise) {
|
|
119
|
+
const database = await this.open();
|
|
120
|
+
if (!database) {
|
|
121
|
+
return otherwise;
|
|
122
|
+
}
|
|
123
|
+
try {
|
|
124
|
+
const transaction = database.transaction(IndexedValues.STORE, mode);
|
|
125
|
+
const request = work(transaction.objectStore(IndexedValues.STORE));
|
|
126
|
+
if (request instanceof Promise) {
|
|
127
|
+
return await request;
|
|
128
|
+
}
|
|
129
|
+
// A write is done once its transaction committed, not when its request succeeded: a load of the page in between aborts it.
|
|
130
|
+
return await new Promise((resolve, reject) => {
|
|
131
|
+
request.onsuccess = () => {
|
|
132
|
+
if (mode === 'readonly') {
|
|
133
|
+
resolve(request.result);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
request.onerror = () => reject(request.error);
|
|
137
|
+
if (mode !== 'readonly') {
|
|
138
|
+
transaction.oncomplete = () => resolve(request.result);
|
|
139
|
+
transaction.onabort = () => reject(transaction.error);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
catch (_a) {
|
|
144
|
+
return otherwise;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.IndexedValues = IndexedValues;
|
|
149
|
+
IndexedValues.DATABASE = 'ta';
|
|
150
|
+
IndexedValues.STORE = 'kept';
|
|
151
|
+
let shared;
|
|
152
|
+
/** The values of this device: in IndexedDB when the browser has it. */
|
|
153
|
+
function deviceValues() {
|
|
154
|
+
shared !== null && shared !== void 0 ? shared : (shared = typeof indexedDB === 'undefined' ? new MemoryValues() : new IndexedValues(indexedDB));
|
|
155
|
+
return shared;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=device-values.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SessionSnapshot, SessionStore } from '@celljs/ta-client';
|
|
2
|
+
export declare const TaKeptChats: unique symbol;
|
|
3
|
+
/**
|
|
4
|
+
* The conversations this device showed, as they were last seen, by session file and computer: one opened
|
|
5
|
+
* again shows at once, without the computer too, and catches up once it attaches (as a chat app shows
|
|
6
|
+
* what it has while it has no network).
|
|
7
|
+
*/
|
|
8
|
+
export interface TaKeptChats {
|
|
9
|
+
/** The conversation of the file as this device last saw it; none if it did not, or of another computer. */
|
|
10
|
+
read(sessionFile: string): Promise<SessionSnapshot | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Keeps the conversation of `store` as it changes, once it is not at work (a reply as it streams is not
|
|
13
|
+
* written each moment), and when the page is hidden, as the system may end it there. The function
|
|
14
|
+
* returned stops, keeping it a last time. `sessionFile` is asked each time: a session may get its file late.
|
|
15
|
+
*/
|
|
16
|
+
follow(store: SessionStore, sessionFile: () => string | undefined): () => void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=kept-chats-protocol.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { SessionSnapshot, SessionState, SessionStore } from '@celljs/ta-client';
|
|
2
|
+
import { TaWorkbench } from '../workbench-protocol';
|
|
3
|
+
import { type DeviceValues } from './device-values';
|
|
4
|
+
import { TaKeptChats } from './kept-chats-protocol';
|
|
5
|
+
/** How many conversations are kept, and how much of each (the JSON of its latest messages). */
|
|
6
|
+
export declare const KEPT_CHAT_LIMITS: {
|
|
7
|
+
count: number;
|
|
8
|
+
bytes: number;
|
|
9
|
+
};
|
|
10
|
+
export declare namespace KeptChatUtil {
|
|
11
|
+
/**
|
|
12
|
+
* What is kept of a conversation: its latest messages up to `bytes` of JSON, from a message of the user
|
|
13
|
+
* when one is among them (not the result of a call without the call), and the calls of its last run.
|
|
14
|
+
* Not those sent from here that the session does not have (`outbox`). None when there is nothing to keep.
|
|
15
|
+
*/
|
|
16
|
+
function snapshot(state: Pick<SessionState, 'messages' | 'start' | 'tools' | 'outbox'>, bytes: number): SessionSnapshot | undefined;
|
|
17
|
+
/** The files kept, the one seen now last, with those past `count` (seen longest ago) apart. */
|
|
18
|
+
function seen(files: readonly string[], file: string, count: number): {
|
|
19
|
+
files: string[];
|
|
20
|
+
dropped: string[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface Followed {
|
|
24
|
+
store: SessionStore;
|
|
25
|
+
sessionFile(): string | undefined;
|
|
26
|
+
/** What was written last, not written again. */
|
|
27
|
+
written?: SessionState;
|
|
28
|
+
timer?: ReturnType<typeof setTimeout>;
|
|
29
|
+
}
|
|
30
|
+
export declare class TaKeptChatsImpl implements TaKeptChats {
|
|
31
|
+
protected readonly workbench: TaWorkbench;
|
|
32
|
+
protected readonly values: DeviceValues;
|
|
33
|
+
protected readonly limits: {
|
|
34
|
+
count: number;
|
|
35
|
+
bytes: number;
|
|
36
|
+
};
|
|
37
|
+
protected readonly followed: Set<Followed>;
|
|
38
|
+
/** The files kept of each computer, once read; one write at a time changes them. */
|
|
39
|
+
protected readonly files: Map<string, Promise<string[]>>;
|
|
40
|
+
protected watching: boolean;
|
|
41
|
+
read(sessionFile: string): Promise<SessionSnapshot | undefined>;
|
|
42
|
+
follow(store: SessionStore, sessionFile: () => string | undefined): () => void;
|
|
43
|
+
protected watchHidden(): void;
|
|
44
|
+
protected write(followed: Followed): void;
|
|
45
|
+
protected keep(host: string, file: string, snapshot: SessionSnapshot): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=kept-chats.d.ts.map
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TaKeptChatsImpl = exports.KeptChatUtil = exports.KEPT_CHAT_LIMITS = void 0;
|
|
13
|
+
const core_1 = require("@celljs/core");
|
|
14
|
+
const workbench_protocol_1 = require("../workbench-protocol");
|
|
15
|
+
const device_values_1 = require("./device-values");
|
|
16
|
+
const kept_chats_protocol_1 = require("./kept-chats-protocol");
|
|
17
|
+
/** How many conversations are kept, and how much of each (the JSON of its latest messages). */
|
|
18
|
+
exports.KEPT_CHAT_LIMITS = { count: 30, bytes: 768 * 1024 };
|
|
19
|
+
/** How long after the last change a conversation not at work is written. */
|
|
20
|
+
const WRITE_MS = 600;
|
|
21
|
+
var KeptChatUtil;
|
|
22
|
+
(function (KeptChatUtil) {
|
|
23
|
+
/**
|
|
24
|
+
* What is kept of a conversation: its latest messages up to `bytes` of JSON, from a message of the user
|
|
25
|
+
* when one is among them (not the result of a call without the call), and the calls of its last run.
|
|
26
|
+
* Not those sent from here that the session does not have (`outbox`). None when there is nothing to keep.
|
|
27
|
+
*/
|
|
28
|
+
function snapshot(state, bytes) {
|
|
29
|
+
var _a;
|
|
30
|
+
const { start } = state;
|
|
31
|
+
const messages = ((_a = state.outbox) === null || _a === void 0 ? void 0 : _a.length) ? state.messages.slice(0, -state.outbox.length) : state.messages;
|
|
32
|
+
const tools = JSON.stringify(state.tools).length > bytes / 4 ? {} : state.tools;
|
|
33
|
+
let room = bytes - JSON.stringify(tools).length;
|
|
34
|
+
let from = messages.length;
|
|
35
|
+
while (from > 0) {
|
|
36
|
+
const size = JSON.stringify(messages[from - 1]).length;
|
|
37
|
+
if (size > room) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
room -= size;
|
|
41
|
+
from--;
|
|
42
|
+
}
|
|
43
|
+
if (from > 0) {
|
|
44
|
+
const user = messages.findIndex((message, index) => index >= from && message.role === 'user');
|
|
45
|
+
if (user > 0 && user < messages.length - 1) {
|
|
46
|
+
from = user;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (from >= messages.length) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
return { messages: from ? messages.slice(from) : messages, start: start + from, tools };
|
|
53
|
+
}
|
|
54
|
+
KeptChatUtil.snapshot = snapshot;
|
|
55
|
+
/** The files kept, the one seen now last, with those past `count` (seen longest ago) apart. */
|
|
56
|
+
function seen(files, file, count) {
|
|
57
|
+
const next = [...files.filter(other => other !== file), file];
|
|
58
|
+
const over = Math.max(0, next.length - count);
|
|
59
|
+
return { files: next.slice(over), dropped: next.slice(0, over) };
|
|
60
|
+
}
|
|
61
|
+
KeptChatUtil.seen = seen;
|
|
62
|
+
})(KeptChatUtil || (exports.KeptChatUtil = KeptChatUtil = {}));
|
|
63
|
+
let TaKeptChatsImpl = class TaKeptChatsImpl {
|
|
64
|
+
constructor() {
|
|
65
|
+
this.values = (0, device_values_1.deviceValues)();
|
|
66
|
+
this.limits = exports.KEPT_CHAT_LIMITS;
|
|
67
|
+
this.followed = new Set();
|
|
68
|
+
/** The files kept of each computer, once read; one write at a time changes them. */
|
|
69
|
+
this.files = new Map();
|
|
70
|
+
this.watching = false;
|
|
71
|
+
}
|
|
72
|
+
read(sessionFile) {
|
|
73
|
+
const { host } = this.workbench.state;
|
|
74
|
+
return host ? this.values.get(device_values_1.OfflineKeys.chat(host, sessionFile)) : Promise.resolve(undefined);
|
|
75
|
+
}
|
|
76
|
+
follow(store, sessionFile) {
|
|
77
|
+
this.watchHidden();
|
|
78
|
+
const followed = { store, sessionFile };
|
|
79
|
+
this.followed.add(followed);
|
|
80
|
+
const later = (state) => {
|
|
81
|
+
clearTimeout(followed.timer);
|
|
82
|
+
followed.timer = state.working ? undefined : setTimeout(() => this.write(followed), WRITE_MS);
|
|
83
|
+
};
|
|
84
|
+
const unsubscribe = store.subscribe(later);
|
|
85
|
+
// As it is now too: it attached before it was followed.
|
|
86
|
+
later(store.state);
|
|
87
|
+
return () => {
|
|
88
|
+
unsubscribe();
|
|
89
|
+
clearTimeout(followed.timer);
|
|
90
|
+
this.followed.delete(followed);
|
|
91
|
+
this.write(followed);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
watchHidden() {
|
|
95
|
+
if (this.watching || typeof document === 'undefined') {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.watching = true;
|
|
99
|
+
// The system may end a page it hides, an app in the background most of all.
|
|
100
|
+
document.addEventListener('visibilitychange', () => {
|
|
101
|
+
if (document.visibilityState === 'hidden') {
|
|
102
|
+
for (const followed of this.followed) {
|
|
103
|
+
this.write(followed);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
write(followed) {
|
|
109
|
+
clearTimeout(followed.timer);
|
|
110
|
+
followed.timer = undefined;
|
|
111
|
+
const { state } = followed.store;
|
|
112
|
+
const { host } = this.workbench.state;
|
|
113
|
+
const file = followed.sessionFile();
|
|
114
|
+
const { written } = followed;
|
|
115
|
+
// What extensions show, dialogs and the like are not kept: only a change of the conversation is written.
|
|
116
|
+
if (!host || !file || (written && written.messages === state.messages && written.start === state.start && written.tools === state.tools)) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
followed.written = state;
|
|
120
|
+
const snapshot = KeptChatUtil.snapshot(state, this.limits.bytes);
|
|
121
|
+
if (snapshot) {
|
|
122
|
+
void this.keep(host, file, snapshot);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
keep(host, file, snapshot) {
|
|
126
|
+
var _a;
|
|
127
|
+
const before = (_a = this.files.get(host)) !== null && _a !== void 0 ? _a : this.values.get(device_values_1.OfflineKeys.chats(host)).then(files => files !== null && files !== void 0 ? files : []);
|
|
128
|
+
const after = before.then(async (files) => {
|
|
129
|
+
const { files: next, dropped } = KeptChatUtil.seen(files, file, this.limits.count);
|
|
130
|
+
await Promise.all([
|
|
131
|
+
this.values.set(device_values_1.OfflineKeys.chat(host, file), snapshot),
|
|
132
|
+
this.values.set(device_values_1.OfflineKeys.chats(host), next),
|
|
133
|
+
...dropped.map(old => this.values.delete(device_values_1.OfflineKeys.chat(host, old))),
|
|
134
|
+
]);
|
|
135
|
+
return next;
|
|
136
|
+
});
|
|
137
|
+
this.files.set(host, after.catch(() => before));
|
|
138
|
+
return after.then(() => undefined);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
exports.TaKeptChatsImpl = TaKeptChatsImpl;
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, core_1.Autowired)(workbench_protocol_1.TaWorkbench),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], TaKeptChatsImpl.prototype, "workbench", void 0);
|
|
146
|
+
exports.TaKeptChatsImpl = TaKeptChatsImpl = __decorate([
|
|
147
|
+
(0, core_1.Component)(kept_chats_protocol_1.TaKeptChats)
|
|
148
|
+
], TaKeptChatsImpl);
|
|
149
|
+
//# sourceMappingURL=kept-chats.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type DeviceValues } from './device-values';
|
|
2
|
+
/**
|
|
3
|
+
* The calls whose answers the device keeps, by service and method: they only read, and what they read is
|
|
4
|
+
* what the lists and web extensions show. Each may say how a kept answer reads while offline: what it said
|
|
5
|
+
* of the moment it was given is not known of now.
|
|
6
|
+
*/
|
|
7
|
+
export declare const OFFLINE_READS: Record<string, Record<string, ((answer: unknown) => unknown) | undefined>>;
|
|
8
|
+
/** How many answers are kept, and how large one may be (its JSON): those used longest ago go first. */
|
|
9
|
+
export declare const OFFLINE_READ_LIMITS: {
|
|
10
|
+
count: number;
|
|
11
|
+
bytes: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The answers of the calls that read (OFFLINE_READS) as the computer last gave them, on the device: while
|
|
15
|
+
* the page cannot reach the computer, a call answers with them rather than waiting, so that what was shown
|
|
16
|
+
* shows again (the agents of a cold start too). Online, each answer that changed is kept again.
|
|
17
|
+
*/
|
|
18
|
+
export declare class OfflineReads {
|
|
19
|
+
protected readonly values: DeviceValues;
|
|
20
|
+
protected readonly limits: {
|
|
21
|
+
count: number;
|
|
22
|
+
bytes: number;
|
|
23
|
+
};
|
|
24
|
+
/** By call (`OfflineReads.call`), the JSON of the answer, the one used last at the end. */
|
|
25
|
+
protected answers: Map<string, string>;
|
|
26
|
+
protected host?: string;
|
|
27
|
+
protected loading: Promise<void>;
|
|
28
|
+
constructor(values: DeviceValues, limits?: {
|
|
29
|
+
count: number;
|
|
30
|
+
bytes: number;
|
|
31
|
+
});
|
|
32
|
+
static reads(service: string, method: string): boolean;
|
|
33
|
+
/** What names a call: its service, method and parameters. */
|
|
34
|
+
static call(service: string, method: string, params: unknown[]): string;
|
|
35
|
+
/** The answers of another computer from now on. */
|
|
36
|
+
use(host: string | undefined): this;
|
|
37
|
+
/** The answer kept of a call, as it reads offline; none if there is none. */
|
|
38
|
+
answer(service: string, method: string, params: unknown[]): Promise<{
|
|
39
|
+
value: unknown;
|
|
40
|
+
} | undefined>;
|
|
41
|
+
/** Keeps the answer of a call, if it changed; one too large is not kept. */
|
|
42
|
+
keep(service: string, method: string, params: unknown[], value: unknown): void;
|
|
43
|
+
protected touch(call: string, json: string): void;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=offline-reads.d.ts.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfflineReads = exports.OFFLINE_READ_LIMITS = exports.OFFLINE_READS = void 0;
|
|
4
|
+
const device_values_1 = require("./device-values");
|
|
5
|
+
/**
|
|
6
|
+
* The calls whose answers the device keeps, by service and method: they only read, and what they read is
|
|
7
|
+
* what the lists and web extensions show. Each may say how a kept answer reads while offline: what it said
|
|
8
|
+
* of the moment it was given is not known of now.
|
|
9
|
+
*/
|
|
10
|
+
exports.OFFLINE_READS = {
|
|
11
|
+
server: {
|
|
12
|
+
// A session answering then is not said to be answering now.
|
|
13
|
+
listSessions: answer => Array.isArray(answer) ? answer.map(session => ({ ...session, isStreaming: false, waiting: false })) : answer,
|
|
14
|
+
listSavedSessions: undefined,
|
|
15
|
+
getServerInfo: undefined,
|
|
16
|
+
// The `/` menu of a new conversation.
|
|
17
|
+
getDirectoryCommands: undefined,
|
|
18
|
+
},
|
|
19
|
+
// The data of web extensions (pi.storage): the agents and channels, what they said, the tasks.
|
|
20
|
+
packages: { getExtensionData: undefined },
|
|
21
|
+
};
|
|
22
|
+
/** How many answers are kept, and how large one may be (its JSON): those used longest ago go first. */
|
|
23
|
+
exports.OFFLINE_READ_LIMITS = { count: 400, bytes: 512 * 1024 };
|
|
24
|
+
/**
|
|
25
|
+
* The answers of the calls that read (OFFLINE_READS) as the computer last gave them, on the device: while
|
|
26
|
+
* the page cannot reach the computer, a call answers with them rather than waiting, so that what was shown
|
|
27
|
+
* shows again (the agents of a cold start too). Online, each answer that changed is kept again.
|
|
28
|
+
*/
|
|
29
|
+
class OfflineReads {
|
|
30
|
+
constructor(values, limits = exports.OFFLINE_READ_LIMITS) {
|
|
31
|
+
this.values = values;
|
|
32
|
+
this.limits = limits;
|
|
33
|
+
/** By call (`OfflineReads.call`), the JSON of the answer, the one used last at the end. */
|
|
34
|
+
this.answers = new Map();
|
|
35
|
+
this.loading = Promise.resolve();
|
|
36
|
+
}
|
|
37
|
+
static reads(service, method) {
|
|
38
|
+
const methods = exports.OFFLINE_READS[service];
|
|
39
|
+
return !!methods && Object.keys(methods).includes(method);
|
|
40
|
+
}
|
|
41
|
+
/** What names a call: its service, method and parameters. */
|
|
42
|
+
static call(service, method, params) {
|
|
43
|
+
return `${service}.${method}${JSON.stringify(params)}`;
|
|
44
|
+
}
|
|
45
|
+
/** The answers of another computer from now on. */
|
|
46
|
+
use(host) {
|
|
47
|
+
if (host === this.host) {
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
this.host = host;
|
|
51
|
+
this.answers = new Map();
|
|
52
|
+
if (!host) {
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
const prefix = device_values_1.OfflineKeys.read(host, '');
|
|
56
|
+
this.loading = this.values.entries(prefix).then(entries => {
|
|
57
|
+
if (this.host === host) {
|
|
58
|
+
// Those given since the page started are newer.
|
|
59
|
+
this.answers = new Map([...entries.map(([key, json]) => [key.slice(prefix.length), json]), ...this.answers]);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
/** The answer kept of a call, as it reads offline; none if there is none. */
|
|
65
|
+
async answer(service, method, params) {
|
|
66
|
+
var _a;
|
|
67
|
+
await this.loading;
|
|
68
|
+
const call = OfflineReads.call(service, method, params);
|
|
69
|
+
const json = this.answers.get(call);
|
|
70
|
+
if (json === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
this.touch(call, json);
|
|
74
|
+
const value = JSON.parse(json);
|
|
75
|
+
const offline = (_a = exports.OFFLINE_READS[service]) === null || _a === void 0 ? void 0 : _a[method];
|
|
76
|
+
return { value: offline ? offline(value) : value };
|
|
77
|
+
}
|
|
78
|
+
/** Keeps the answer of a call, if it changed; one too large is not kept. */
|
|
79
|
+
keep(service, method, params, value) {
|
|
80
|
+
const { host } = this;
|
|
81
|
+
if (!host) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const call = OfflineReads.call(service, method, params);
|
|
85
|
+
// JSON has no undefined: what the server gives as none comes as null.
|
|
86
|
+
const json = JSON.stringify(value !== null && value !== void 0 ? value : null);
|
|
87
|
+
if (this.answers.get(call) === json) {
|
|
88
|
+
this.touch(call, json);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (json.length > this.limits.bytes) {
|
|
92
|
+
if (this.answers.delete(call)) {
|
|
93
|
+
void this.values.delete(device_values_1.OfflineKeys.read(host, call));
|
|
94
|
+
}
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
this.touch(call, json);
|
|
98
|
+
void this.values.set(device_values_1.OfflineKeys.read(host, call), json);
|
|
99
|
+
for (const old of this.answers.keys()) {
|
|
100
|
+
if (this.answers.size <= this.limits.count) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
this.answers.delete(old);
|
|
104
|
+
void this.values.delete(device_values_1.OfflineKeys.read(host, old));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
touch(call, json) {
|
|
108
|
+
this.answers.delete(call);
|
|
109
|
+
this.answers.set(call, json);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.OfflineReads = OfflineReads;
|
|
113
|
+
//# sourceMappingURL=offline-reads.js.map
|
|
@@ -28,12 +28,13 @@ export declare namespace NavigationUtil {
|
|
|
28
28
|
* Where the pages go. They all fit in the slots: all in the navigation. Else Discover takes a slot, the pages
|
|
29
29
|
* the user put in the navigation keep theirs, the others take what is left in their order, and the rest is
|
|
30
30
|
* under Discover. `room` bounds the entries of a device (a phone's tabs), Discover among them: the pages
|
|
31
|
-
* put in the navigation go under Discover too past it.
|
|
31
|
+
* put in the navigation go under Discover too past it. `own`: Discover has entries of its own (extensions
|
|
32
|
+
* started on open), so it takes a slot whatever the pages.
|
|
32
33
|
*/
|
|
33
34
|
function arrange<T extends {
|
|
34
35
|
id: string;
|
|
35
36
|
discover?: boolean;
|
|
36
|
-
}>(pages: T[], setting: NavigationSetting, room?: number): NavigationLayout<T>;
|
|
37
|
+
}>(pages: T[], setting: NavigationSetting, room?: number, own?: boolean): NavigationLayout<T>;
|
|
37
38
|
/** The page in the navigation, whatever the slots. */
|
|
38
39
|
function pin(setting: NavigationSetting, id: string): NavigationSetting;
|
|
39
40
|
/** The page under Discover. */
|
|
@@ -25,15 +25,16 @@ var NavigationUtil;
|
|
|
25
25
|
* Where the pages go. They all fit in the slots: all in the navigation. Else Discover takes a slot, the pages
|
|
26
26
|
* the user put in the navigation keep theirs, the others take what is left in their order, and the rest is
|
|
27
27
|
* under Discover. `room` bounds the entries of a device (a phone's tabs), Discover among them: the pages
|
|
28
|
-
* put in the navigation go under Discover too past it.
|
|
28
|
+
* put in the navigation go under Discover too past it. `own`: Discover has entries of its own (extensions
|
|
29
|
+
* started on open), so it takes a slot whatever the pages.
|
|
29
30
|
*/
|
|
30
|
-
function arrange(pages, setting, room = Number.POSITIVE_INFINITY) {
|
|
31
|
+
function arrange(pages, setting, room = Number.POSITIVE_INFINITY, own = false) {
|
|
31
32
|
const limit = Math.max(1, Math.min(setting.slots, room));
|
|
32
33
|
const pinned = pages.filter(page => setting.pinned.includes(page.id));
|
|
33
34
|
// A page that asks to start under Discover is there until the user pins it.
|
|
34
35
|
const free = pages.filter(page => !setting.pinned.includes(page.id) && !setting.discover.includes(page.id) && !page.discover);
|
|
35
36
|
const folded = pages.length - pinned.length - free.length;
|
|
36
|
-
if (folded === 0 && pinned.length + free.length <= limit) {
|
|
37
|
+
if (folded === 0 && !own && pinned.length + free.length <= limit) {
|
|
37
38
|
return { nav: pages, discover: [] };
|
|
38
39
|
}
|
|
39
40
|
const kept = pinned.slice(0, Math.max(limit - 1, Math.min(pinned.length, room - 1)));
|
|
@@ -24,6 +24,10 @@ export interface Settings {
|
|
|
24
24
|
chatFontSize: FontSize;
|
|
25
25
|
/** Read the replies of ta aloud. */
|
|
26
26
|
speak: boolean;
|
|
27
|
+
/** Said to the double by voice (a finger held to talk), its answer is read aloud, even with `speak` off. */
|
|
28
|
+
speakTalk: boolean;
|
|
29
|
+
/** The voice replies are read with (its `voiceURI`), `''` for the most natural of the language (Voice.pick). */
|
|
30
|
+
voice: string;
|
|
27
31
|
/** The double asks before it hands out work: it says what it would start and waits for the user's go. */
|
|
28
32
|
confirmTasks: boolean;
|
|
29
33
|
/** How many of the double's tasks run at once; 0, as many as it starts. */
|
|
@@ -47,6 +51,15 @@ export interface Settings {
|
|
|
47
51
|
navigation: NavigationSetting;
|
|
48
52
|
/** How long an extension started on open keeps running once left, before it stops (ta-launcher.md). */
|
|
49
53
|
keepAliveMinutes: number;
|
|
54
|
+
/** The conversations of the list not updated for these days are folded at its end; 0, none. */
|
|
55
|
+
chatFoldDays: number;
|
|
56
|
+
/**
|
|
57
|
+
* The conversations not updated for these days are archived: out of the list, not read with it every few
|
|
58
|
+
* seconds, read when the archive or a search shows them; 0, none.
|
|
59
|
+
*/
|
|
60
|
+
chatArchiveDays: number;
|
|
61
|
+
/** The screenshot just taken is offered above the message box, once (RecentShots), where Ta can read the screenshots. */
|
|
62
|
+
recentShots: boolean;
|
|
50
63
|
}
|
|
51
64
|
export interface SettingsState {
|
|
52
65
|
settings: Settings;
|
|
@@ -62,6 +75,10 @@ export interface SettingsState {
|
|
|
62
75
|
}
|
|
63
76
|
/** What `keepAliveMinutes` may be. */
|
|
64
77
|
export declare const KEEP_ALIVE_CHOICES: readonly number[];
|
|
78
|
+
/** What `chatFoldDays` may be. */
|
|
79
|
+
export declare const CHAT_FOLD_CHOICES: readonly number[];
|
|
80
|
+
/** What `chatArchiveDays` may be. */
|
|
81
|
+
export declare const CHAT_ARCHIVE_CHOICES: readonly number[];
|
|
65
82
|
/** What `maxTasks` may be. */
|
|
66
83
|
export declare const MAX_TASKS_CHOICES: readonly number[];
|
|
67
84
|
export declare const DEFAULT_SETTINGS: Settings;
|