@celljs/ta-web 4.10.0 → 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 +7 -7
- package/README.md +7 -7
- package/esm/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/esm/browser/assistant/assistant-chat-list.js +12 -0
- package/esm/browser/assistant/assistant-extension.js +5 -0
- package/esm/browser/assistant/assistant-protocol.d.ts +2 -1
- 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 +13 -3
- package/esm/browser/assistant/assistant-task-util.js +59 -12
- package/esm/browser/assistant/assistant-view.js +44 -23
- package/esm/browser/assistant/assistant.d.ts +18 -4
- package/esm/browser/assistant/assistant.js +52 -17
- package/esm/browser/avatar/dino-face.js +1 -2
- package/esm/browser/chat/chat-protocol.d.ts +5 -0
- package/esm/browser/chat/chat-stores.d.ts +8 -5
- package/esm/browser/chat/chat-stores.js +17 -9
- package/esm/browser/chat/chat-view.js +18 -11
- package/esm/browser/chat/chat.d.ts +16 -8
- package/esm/browser/chat/chat.js +86 -51
- 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 +5 -2
- package/esm/browser/components/app-nav.js +22 -9
- package/esm/browser/components/app-shell-hooks.js +5 -3
- package/esm/browser/components/app-view.js +76 -16
- 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 +73 -6
- package/esm/browser/components/chat-list.js +295 -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 +14 -4
- package/esm/browser/components/composer-box.js +104 -64
- package/esm/browser/components/composer.d.ts +6 -6
- package/esm/browser/components/composer.js +5 -3
- package/esm/browser/components/conversation-scroll.d.ts +7 -0
- package/esm/browser/components/conversation-scroll.js +46 -7
- 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 -3
- package/esm/browser/components/earlier-messages.js +42 -8
- package/esm/browser/components/editor-area.d.ts +6 -22
- package/esm/browser/components/editor-area.js +10 -97
- 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 +1 -1
- package/esm/browser/components/folder-picker.js +1 -1
- 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/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 +3 -1
- package/esm/browser/components/icon.js +4 -3
- package/esm/browser/components/image-viewer.d.ts +10 -2
- package/esm/browser/components/image-viewer.js +48 -11
- 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 +5 -2
- package/esm/browser/components/lightbox.js +4 -3
- package/esm/browser/components/list-rows.d.ts +9 -1
- package/esm/browser/components/list-rows.js +17 -3
- package/esm/browser/components/markdown.js +36 -4
- package/esm/browser/components/media.js +19 -2
- package/esm/browser/components/message-actions.js +2 -0
- package/esm/browser/components/message-footer.d.ts +6 -0
- package/esm/browser/components/message-footer.js +20 -3
- package/esm/browser/components/message-list.d.ts +57 -6
- package/esm/browser/components/message-list.js +152 -36
- package/esm/browser/components/message-menu.js +6 -1
- package/esm/browser/components/model-picker.js +1 -0
- package/esm/browser/components/nav-places.d.ts +21 -2
- package/esm/browser/components/nav-places.js +20 -4
- 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 +23 -1
- package/esm/browser/components/phone-shell.js +96 -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 +2 -3
- package/esm/browser/components/session-settings.js +1 -0
- package/esm/browser/components/session-view.js +29 -19
- 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.js +45 -14
- package/esm/browser/components/tool-view.js +7 -2
- 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 +11 -3
- package/esm/browser/components/voice-talk.js +24 -4
- 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/hold.js +4 -6
- package/esm/browser/device/long-press.d.ts +10 -0
- package/esm/browser/device/long-press.js +28 -12
- 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.js +3 -2
- 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.js +6 -1
- package/esm/browser/device/sheet-swipe.js +8 -1
- 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 +166 -565
- 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 +44 -6
- package/esm/browser/extension/web-extension-protocol.js +33 -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 +29 -69
- package/esm/browser/extension/web-extensions.js +118 -516
- 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/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 +82 -2
- package/esm/browser/i18n/messages.d.ts +81 -1
- package/esm/browser/i18n/messages.js +167 -7
- package/esm/browser/index.d.ts +9 -0
- package/esm/browser/index.js +9 -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 +17 -0
- package/esm/browser/notices/notices.d.ts +1 -1
- package/esm/browser/notices/notices.js +6 -2
- 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.js +12 -3
- package/esm/browser/offline/offline-reads.js +3 -1
- 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 +15 -0
- package/esm/browser/settings/settings-protocol.js +18 -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 +43 -5
- package/esm/browser/style/device.js +15 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +189 -56
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +36 -1
- 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 +30 -6
- 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/link.d.ts +18 -0
- package/esm/browser/util/link.js +66 -1
- package/esm/browser/util/markdown.d.ts +4 -1
- package/esm/browser/util/markdown.js +1 -1
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +30 -0
- package/esm/browser/util/process.d.ts +14 -2
- package/esm/browser/util/process.js +39 -8
- 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 +47 -7
- package/esm/browser/util/voice.js +269 -27
- package/esm/browser/workbench-calls.d.ts +6 -4
- package/esm/browser/workbench-calls.js +15 -10
- package/esm/browser/workbench-protocol.d.ts +31 -2
- package/esm/browser/workbench-util.d.ts +15 -4
- package/esm/browser/workbench-util.js +28 -5
- package/esm/browser/workbench.d.ts +33 -1
- package/esm/browser/workbench.js +142 -14
- package/lib/browser/assistant/assistant-chat-list.d.ts +11 -0
- package/lib/browser/assistant/assistant-chat-list.js +13 -0
- package/lib/browser/assistant/assistant-extension.js +5 -0
- package/lib/browser/assistant/assistant-protocol.d.ts +2 -1
- 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 +13 -3
- package/lib/browser/assistant/assistant-task-util.js +59 -12
- package/lib/browser/assistant/assistant-view.js +42 -21
- package/lib/browser/assistant/assistant.d.ts +18 -4
- package/lib/browser/assistant/assistant.js +52 -17
- package/lib/browser/avatar/dino-face.js +1 -2
- package/lib/browser/chat/chat-protocol.d.ts +5 -0
- package/lib/browser/chat/chat-stores.d.ts +8 -5
- package/lib/browser/chat/chat-stores.js +17 -9
- package/lib/browser/chat/chat-view.js +17 -10
- package/lib/browser/chat/chat.d.ts +16 -8
- package/lib/browser/chat/chat.js +86 -51
- 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 +5 -2
- package/lib/browser/components/app-nav.js +18 -5
- package/lib/browser/components/app-shell-hooks.js +5 -3
- package/lib/browser/components/app-view.js +72 -12
- 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 +73 -6
- package/lib/browser/components/chat-list.js +295 -59
- 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 +14 -4
- package/lib/browser/components/composer-box.js +102 -62
- package/lib/browser/components/composer.d.ts +6 -6
- package/lib/browser/components/composer.js +4 -2
- package/lib/browser/components/conversation-scroll.d.ts +7 -0
- package/lib/browser/components/conversation-scroll.js +46 -7
- 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 -3
- package/lib/browser/components/earlier-messages.js +44 -9
- package/lib/browser/components/editor-area.d.ts +6 -22
- package/lib/browser/components/editor-area.js +11 -98
- 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 +1 -1
- package/lib/browser/components/folder-picker.js +1 -1
- 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/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 +3 -1
- package/lib/browser/components/icon.js +4 -3
- package/lib/browser/components/image-viewer.d.ts +10 -2
- package/lib/browser/components/image-viewer.js +47 -10
- 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 +5 -2
- package/lib/browser/components/lightbox.js +4 -3
- package/lib/browser/components/list-rows.d.ts +9 -1
- package/lib/browser/components/list-rows.js +18 -3
- package/lib/browser/components/markdown.js +36 -4
- package/lib/browser/components/media.js +19 -2
- package/lib/browser/components/message-actions.js +2 -0
- package/lib/browser/components/message-footer.d.ts +6 -0
- package/lib/browser/components/message-footer.js +20 -2
- package/lib/browser/components/message-list.d.ts +57 -6
- package/lib/browser/components/message-list.js +153 -34
- package/lib/browser/components/message-menu.js +6 -1
- package/lib/browser/components/model-picker.js +1 -0
- package/lib/browser/components/nav-places.d.ts +21 -2
- package/lib/browser/components/nav-places.js +22 -4
- 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 +23 -1
- package/lib/browser/components/phone-shell.js +97 -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 +2 -3
- package/lib/browser/components/session-settings.js +1 -0
- package/lib/browser/components/session-view.js +26 -16
- 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.js +43 -12
- package/lib/browser/components/tool-view.js +7 -2
- 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 +11 -3
- package/lib/browser/components/voice-talk.js +25 -4
- 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/hold.js +4 -6
- package/lib/browser/device/long-press.d.ts +10 -0
- package/lib/browser/device/long-press.js +28 -12
- 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.js +3 -2
- 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.js +6 -1
- package/lib/browser/device/sheet-swipe.js +8 -1
- 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 +166 -565
- 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 +44 -6
- package/lib/browser/extension/web-extension-protocol.js +34 -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 +29 -69
- package/lib/browser/extension/web-extensions.js +114 -545
- 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/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 +82 -2
- package/lib/browser/i18n/messages.d.ts +81 -1
- package/lib/browser/i18n/messages.js +167 -7
- package/lib/browser/index.d.ts +9 -0
- package/lib/browser/index.js +9 -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 +17 -0
- package/lib/browser/notices/notices.d.ts +1 -1
- package/lib/browser/notices/notices.js +6 -2
- 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.js +12 -3
- package/lib/browser/offline/offline-reads.js +3 -1
- 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 +15 -0
- package/lib/browser/settings/settings-protocol.js +19 -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 +43 -5
- package/lib/browser/style/device.js +15 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +189 -56
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +36 -1
- 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 +30 -6
- 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/link.d.ts +18 -0
- package/lib/browser/util/link.js +66 -1
- package/lib/browser/util/markdown.d.ts +4 -1
- package/lib/browser/util/markdown.js +1 -1
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +30 -0
- package/lib/browser/util/process.d.ts +14 -2
- package/lib/browser/util/process.js +39 -8
- 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 +47 -7
- package/lib/browser/util/voice.js +269 -27
- package/lib/browser/workbench-calls.d.ts +6 -4
- package/lib/browser/workbench-calls.js +15 -10
- package/lib/browser/workbench-protocol.d.ts +31 -2
- package/lib/browser/workbench-util.d.ts +15 -4
- package/lib/browser/workbench-util.js +28 -5
- package/lib/browser/workbench.d.ts +33 -1
- package/lib/browser/workbench.js +140 -12
- package/package.json +11 -8
|
@@ -1,58 +1,13 @@
|
|
|
1
|
-
import { Folder, Maximize2, Minimize2, PanelTop, Plus, X } from 'lucide-react';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { Widget } from '../chat/chat-view.js';
|
|
3
|
+
import { useDevice } from '../device/device.js';
|
|
4
4
|
import { ExtensionBoundary } from '../extension/extension-view.js';
|
|
5
5
|
import { WebLabelUtil } from '../extension/web-extension-protocol.js';
|
|
6
6
|
import { useWebExtensions } from '../hooks.js';
|
|
7
7
|
import { useT } from '../i18n/use-t.js';
|
|
8
|
-
import { MessageUtil } from '../util/message.js';
|
|
9
|
-
import { useDismiss } from './account-menu.js';
|
|
10
|
-
import { useContextMenu } from './context-menu.js';
|
|
11
8
|
import { EmptyState } from './empty-state.js';
|
|
12
9
|
import { HeroArt } from './hero-cards.js';
|
|
13
|
-
import {
|
|
14
|
-
function ViewGlyph({ view, size }) {
|
|
15
|
-
var _a;
|
|
16
|
-
const Glyph = (_a = view.icon) !== null && _a !== void 0 ? _a : PanelTop;
|
|
17
|
-
return React.createElement(Glyph, { size: size, strokeWidth: 1.6 });
|
|
18
|
-
}
|
|
19
|
-
/** `+` of the workbench: the tools it opens. */
|
|
20
|
-
function OpenMenu({ views, onOpenView }) {
|
|
21
|
-
const t = useT();
|
|
22
|
-
const [open, setOpen] = React.useState(false);
|
|
23
|
-
const root = React.useRef(null);
|
|
24
|
-
const button = React.useRef(null);
|
|
25
|
-
const menu = React.useRef(null);
|
|
26
|
-
const id = React.useId();
|
|
27
|
-
const close = React.useCallback(() => setOpen(false), []);
|
|
28
|
-
useDismiss(open, close, root, button);
|
|
29
|
-
React.useEffect(() => {
|
|
30
|
-
var _a, _b;
|
|
31
|
-
if (open) {
|
|
32
|
-
(_b = (_a = menu.current) === null || _a === void 0 ? void 0 : _a.querySelector('[role="menuitem"]')) === null || _b === void 0 ? void 0 : _b.focus();
|
|
33
|
-
}
|
|
34
|
-
}, [open]);
|
|
35
|
-
const onKeyDown = (event) => {
|
|
36
|
-
var _a, _b;
|
|
37
|
-
var _c;
|
|
38
|
-
if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp') {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
const items = [...((_c = (_a = menu.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="menuitem"]')) !== null && _c !== void 0 ? _c : [])];
|
|
43
|
-
const at = items.indexOf(document.activeElement);
|
|
44
|
-
(_b = items[(at + (event.key === 'ArrowDown' ? 1 : items.length - 1)) % items.length]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
45
|
-
};
|
|
46
|
-
return (React.createElement("div", { className: "ta-workbench-open", ref: root },
|
|
47
|
-
React.createElement("button", { ref: button, type: "button", className: `ta-icon-button ${open ? 'ta-on' : ''}`, title: t('ta.workbench.open'), "aria-label": t('ta.workbench.open'), "aria-haspopup": "menu", "aria-expanded": open, "aria-controls": open ? id : undefined, onClick: () => setOpen(!open) },
|
|
48
|
-
React.createElement(Icon, { icon: Plus })),
|
|
49
|
-
open && (React.createElement("div", { className: "ta-workbench-menu", id: id, role: "menu", ref: menu, "aria-label": t('ta.workbench.open'), onKeyDown: onKeyDown }, views.map(view => (React.createElement("button", { key: view.id, type: "button", role: "menuitem", className: "ta-account-item", onClick: () => {
|
|
50
|
-
close();
|
|
51
|
-
onOpenView(view.id);
|
|
52
|
-
} },
|
|
53
|
-
React.createElement(ViewGlyph, { view: view, size: 15 }),
|
|
54
|
-
React.createElement("span", { className: "ta-ellipsis" }, WebLabelUtil.text(view.title)))))))));
|
|
55
|
-
}
|
|
10
|
+
import { CompactHead, TabStrip, ViewGlyph } from './workbench-tabs.js';
|
|
56
11
|
/** What an empty workbench shows: the tools it opens. */
|
|
57
12
|
function Launcher({ views, onOpenView }) {
|
|
58
13
|
const t = useT();
|
|
@@ -66,58 +21,16 @@ function Launcher({ views, onOpenView }) {
|
|
|
66
21
|
}
|
|
67
22
|
/**
|
|
68
23
|
* The workbench beside the conversation: the tools of web extensions (`panel` views, such as the
|
|
69
|
-
* explorer or a terminal) and what they open (files, diffs), as tabs
|
|
70
|
-
*
|
|
71
|
-
* switching.
|
|
24
|
+
* explorer or a terminal) and what they open (files, diffs), as tabs: a strip of them where it is wide, the one
|
|
25
|
+
* shown and a list of the others on a phone. Every tab stays rendered while open, hidden when not shown, so that
|
|
26
|
+
* what it holds (a scroll position, a page in a frame) survives switching.
|
|
72
27
|
*/
|
|
73
|
-
export function EditorArea(
|
|
28
|
+
export function EditorArea(props) {
|
|
74
29
|
const t = useT();
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const others = editors.filter(candidate => candidate !== editor);
|
|
80
|
-
const left = editors.slice(0, at);
|
|
81
|
-
const right = editors.slice(at + 1);
|
|
82
|
-
const saved = editors.filter(candidate => !candidate.dirty);
|
|
83
|
-
const items = [
|
|
84
|
-
{ label: t('ta.tab.close'), run: () => onClose([editor.id]) },
|
|
85
|
-
{ label: t('ta.tab.closeOthers'), run: () => onClose(ids(others)), disabled: others.length === 0 },
|
|
86
|
-
{ label: t('ta.tab.closeLeft'), run: () => onClose(ids(left)), disabled: left.length === 0 },
|
|
87
|
-
{ label: t('ta.tab.closeRight'), run: () => onClose(ids(right)), disabled: right.length === 0 },
|
|
88
|
-
'-',
|
|
89
|
-
{ label: t('ta.tab.closeSaved'), run: () => onClose(ids(saved)), disabled: saved.length === 0 },
|
|
90
|
-
{ label: t('ta.tab.closeAll'), run: () => onClose(ids(editors)) },
|
|
91
|
-
];
|
|
92
|
-
if (editor.preview) {
|
|
93
|
-
items.push('-', { label: t('ta.tab.keepOpen'), run: () => onPin(editor.id) });
|
|
94
|
-
}
|
|
95
|
-
return items;
|
|
96
|
-
};
|
|
97
|
-
return (React.createElement("section", { className: "ta-editors", style: style, "aria-label": t('ta.workbench') },
|
|
98
|
-
React.createElement("header", { className: "ta-editor-tabs" },
|
|
99
|
-
React.createElement("div", { className: "ta-editor-tablist", role: "tablist" },
|
|
100
|
-
editors.length === 0 && React.createElement("span", { className: "ta-workbench-title" }, t('ta.workbench')),
|
|
101
|
-
editors.map(editor => {
|
|
102
|
-
const title = WebLabelUtil.text(editor.title);
|
|
103
|
-
const Glyph = editor.icon;
|
|
104
|
-
const selected = editor.id === active;
|
|
105
|
-
return (React.createElement("div", { key: editor.id, className: `ta-editor-tab ${selected ? 'ta-active' : ''} ${editor.preview ? 'ta-preview' : ''} ${editor.dirty ? 'ta-dirty' : ''}`, title: title },
|
|
106
|
-
React.createElement("button", { type: "button", role: "tab", "aria-selected": selected, className: "ta-editor-tab-button", onClick: () => onShow(editor.id), onDoubleClick: () => onPin(editor.id), onAuxClick: event => event.button === 1 && onClose([editor.id]), onContextMenu: event => openMenu(event, menuFor(editor)) },
|
|
107
|
-
Glyph && React.createElement(Glyph, { size: 14 }),
|
|
108
|
-
React.createElement("span", null, title)),
|
|
109
|
-
React.createElement("button", { type: "button", className: "ta-editor-tab-close", "aria-label": t('ta.editor.close', { title }), onClick: () => onClose([editor.id]), onContextMenu: event => openMenu(event, menuFor(editor)) },
|
|
110
|
-
React.createElement(Icon, { icon: X, size: 13 }),
|
|
111
|
-
editor.dirty && React.createElement("span", { className: "ta-editor-tab-dirty", "aria-hidden": "true" }))));
|
|
112
|
-
})),
|
|
113
|
-
menu,
|
|
114
|
-
React.createElement("div", { className: "ta-workbench-actions" },
|
|
115
|
-
cwd && (React.createElement("span", { className: "ta-workbench-cwd", title: t('ta.workbench.cwd', { path: cwd }) },
|
|
116
|
-
React.createElement(Folder, { size: 13, strokeWidth: 1.7, "aria-hidden": "true" }),
|
|
117
|
-
React.createElement("span", { className: "ta-ellipsis" }, MessageUtil.basename(cwd)))),
|
|
118
|
-
views.length > 0 && React.createElement(OpenMenu, { views: views, onOpenView: onOpenView }),
|
|
119
|
-
onMaximize && (React.createElement(IconButton, { icon: maximized ? Minimize2 : Maximize2, label: t(maximized ? 'ta.workbench.restore' : 'ta.workbench.maximize'), className: "ta-wide-only", "aria-pressed": maximized, onClick: onMaximize })),
|
|
120
|
-
React.createElement(IconButton, { icon: SidebarRight, label: t('ta.panel.hide'), onClick: onHide }))),
|
|
30
|
+
const { editors, active, views, onOpenView, style } = props;
|
|
31
|
+
const compact = useDevice(state => state.layout === 'compact');
|
|
32
|
+
return (React.createElement("section", { className: `ta-editors ${compact ? 'ta-compact' : ''}`, style: style, "aria-label": t('ta.workbench') },
|
|
33
|
+
compact ? React.createElement(CompactHead, { ...props }) : React.createElement(TabStrip, { ...props }),
|
|
121
34
|
editors.length === 0 && React.createElement(Launcher, { views: views, onOpenView: onOpenView }),
|
|
122
35
|
editors.map(editor => {
|
|
123
36
|
const Content = editor.render;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** Lines a long text shows while folded (`.ta-fold` in the style), and those it must pass to be folded at all. */
|
|
3
|
+
export declare const FOLD_LINES = 10;
|
|
4
|
+
export declare namespace FoldUtil {
|
|
5
|
+
/**
|
|
6
|
+
* Whether a text may be long enough to fold, before it is measured: those surely short (a few lines at the narrowest
|
|
7
|
+
* bubble, of about 22 characters a line on a phone) are not measured nor watched.
|
|
8
|
+
*/
|
|
9
|
+
function candidate(text: string): boolean;
|
|
10
|
+
/** Whether a text of `height` px, in lines of `line` px, folds: only when folding hides more than a few lines. */
|
|
11
|
+
function folds(height: number, line: number): boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A text the user wrote, folded to its first lines when it is long, with Show more under it (and Show less once
|
|
15
|
+
* opened). Its toggle has `aria-expanded`, so the conversation keeps it in place as it opens or closes.
|
|
16
|
+
*/
|
|
17
|
+
export declare function FoldText({ text, className }: {
|
|
18
|
+
text: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ChevronDown, ChevronUp } from 'lucide-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useT } from '../i18n/use-t.js';
|
|
4
|
+
import { Icon } from './icon.js';
|
|
5
|
+
/** Lines a long text shows while folded (`.ta-fold` in the style), and those it must pass to be folded at all. */
|
|
6
|
+
export const FOLD_LINES = 10;
|
|
7
|
+
const FOLD_OVER = 14;
|
|
8
|
+
export var FoldUtil;
|
|
9
|
+
(function (FoldUtil) {
|
|
10
|
+
/**
|
|
11
|
+
* Whether a text may be long enough to fold, before it is measured: those surely short (a few lines at the narrowest
|
|
12
|
+
* bubble, of about 22 characters a line on a phone) are not measured nor watched.
|
|
13
|
+
*/
|
|
14
|
+
function candidate(text) {
|
|
15
|
+
if (text.length > 240) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
let lines = 1;
|
|
19
|
+
for (let at = text.indexOf('\n'); at !== -1; at = text.indexOf('\n', at + 1)) {
|
|
20
|
+
if (++lines >= FOLD_OVER) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
FoldUtil.candidate = candidate;
|
|
27
|
+
/** Whether a text of `height` px, in lines of `line` px, folds: only when folding hides more than a few lines. */
|
|
28
|
+
function folds(height, line) {
|
|
29
|
+
return line > 0 && height > line * FOLD_OVER;
|
|
30
|
+
}
|
|
31
|
+
FoldUtil.folds = folds;
|
|
32
|
+
})(FoldUtil || (FoldUtil = {}));
|
|
33
|
+
/**
|
|
34
|
+
* A text the user wrote, folded to its first lines when it is long, with Show more under it (and Show less once
|
|
35
|
+
* opened). Its toggle has `aria-expanded`, so the conversation keeps it in place as it opens or closes.
|
|
36
|
+
*/
|
|
37
|
+
export function FoldText({ text, className }) {
|
|
38
|
+
const t = useT();
|
|
39
|
+
const ref = React.useRef(null);
|
|
40
|
+
const long = FoldUtil.candidate(text);
|
|
41
|
+
const [fold, setFold] = React.useState(long ? 'measuring' : 'short');
|
|
42
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: measured again for another text, which a folded height does not tell the observer
|
|
43
|
+
React.useLayoutEffect(() => {
|
|
44
|
+
const element = ref.current;
|
|
45
|
+
if (!long || !element) {
|
|
46
|
+
setFold('short');
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const measure = () => {
|
|
50
|
+
const line = Number.parseFloat(getComputedStyle(element).lineHeight);
|
|
51
|
+
const folds = FoldUtil.folds(element.scrollHeight, line);
|
|
52
|
+
setFold(fold => (folds ? (fold === 'open' ? 'open' : 'folded') : 'short'));
|
|
53
|
+
};
|
|
54
|
+
measure();
|
|
55
|
+
const observer = typeof ResizeObserver !== 'undefined' ? new ResizeObserver(measure) : undefined;
|
|
56
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(element);
|
|
57
|
+
return () => observer === null || observer === void 0 ? void 0 : observer.disconnect();
|
|
58
|
+
}, [long, text]);
|
|
59
|
+
const toggles = fold === 'folded' || fold === 'open';
|
|
60
|
+
return (React.createElement(React.Fragment, null,
|
|
61
|
+
React.createElement("div", { ref: ref, className: className ? `ta-fold ${className}` : 'ta-fold', "data-fold": fold }, text),
|
|
62
|
+
toggles && (React.createElement("button", { type: "button", className: "ta-fold-toggle", "aria-expanded": fold === 'open', onClick: () => setFold(fold === 'open' ? 'folded' : 'open') },
|
|
63
|
+
t(fold === 'open' ? 'ta.message.showLess' : 'ta.message.showMore'),
|
|
64
|
+
React.createElement(Icon, { icon: fold === 'open' ? ChevronUp : ChevronDown, size: 14 })))));
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=fold-text.js.map
|
|
@@ -58,5 +58,5 @@ export interface DirectoryButtonProps {
|
|
|
58
58
|
onPick(cwd: string): void | Promise<void>;
|
|
59
59
|
remote?: FolderPickerRemote;
|
|
60
60
|
}
|
|
61
|
-
/** The directory a new conversation will work in,
|
|
61
|
+
/** The directory a new conversation will work in, above its message box: a click picks another. */
|
|
62
62
|
export declare function DirectoryButton({ cwd, list, onPick, remote }: DirectoryButtonProps): React.ReactElement;
|
|
@@ -236,7 +236,7 @@ export function DirectoryName({ cwd }) {
|
|
|
236
236
|
React.createElement("span", { className: "ta-ellipsis" }, MessageUtil.basename(cwd) || cwd),
|
|
237
237
|
React.createElement(HostTag, { host: host })));
|
|
238
238
|
}
|
|
239
|
-
/** The directory a new conversation will work in,
|
|
239
|
+
/** The directory a new conversation will work in, above its message box: a click picks another. */
|
|
240
240
|
export function DirectoryButton({ cwd, list, onPick, remote }) {
|
|
241
241
|
const t = useT();
|
|
242
242
|
const [picking, setPicking] = React.useState(false);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { WebFullScreenProps } from '../extension/web-extension-api.js';
|
|
3
|
+
/**
|
|
4
|
+
* What a web extension shows over all of the page (`ui.FullScreen`): a game played on a phone held sideways, a
|
|
5
|
+
* world to walk in. It covers the shell, its head and its side columns, under the notch and the home bar too,
|
|
6
|
+
* below the title bar of the desktop app and above the keyboard as the page is; its touches are all its own,
|
|
7
|
+
* none moves a sheet of the shell, not even from an edge. Notices, menus and the hold to talk come over it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function FullScreen({ children, className, style }: WebFullScreenProps): React.ReactPortal;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import { OwnGestures } from '../device/own-gestures.js';
|
|
4
|
+
/** How many are shown: the root says so while one is (`data-full-screen`). */
|
|
5
|
+
let shown = 0;
|
|
6
|
+
/**
|
|
7
|
+
* What a web extension shows over all of the page (`ui.FullScreen`): a game played on a phone held sideways, a
|
|
8
|
+
* world to walk in. It covers the shell, its head and its side columns, under the notch and the home bar too,
|
|
9
|
+
* below the title bar of the desktop app and above the keyboard as the page is; its touches are all its own,
|
|
10
|
+
* none moves a sheet of the shell, not even from an edge. Notices, menus and the hold to talk come over it.
|
|
11
|
+
*/
|
|
12
|
+
export function FullScreen({ children, className, style }) {
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
const root = document.documentElement;
|
|
15
|
+
shown++;
|
|
16
|
+
root.dataset.fullScreen = '';
|
|
17
|
+
return () => {
|
|
18
|
+
shown--;
|
|
19
|
+
if (!shown) {
|
|
20
|
+
delete root.dataset.fullScreen;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}, []);
|
|
24
|
+
return createPortal(React.createElement("div", { className: className ? `ta-full-screen ${className}` : 'ta-full-screen', style: style, [OwnGestures.ATTRIBUTE]: OwnGestures.WHOLE }, children), document.body);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=full-screen.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* What sits over the message box and comes or goes while a conversation shows (a dialog, the widgets of
|
|
4
|
+
* extensions, the row of the connection): its height changes in a motion, so that the conversation, whose
|
|
5
|
+
* bottom keeps to it (ConversationScroller), slides rather than jumps. Its first height is taken as it is.
|
|
6
|
+
*/
|
|
7
|
+
export declare function GrowBox({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** A change of height smaller than this is of a part that moves by itself (a row that animates its own height); a larger one slides. */
|
|
3
|
+
const STEP_PX = 12;
|
|
4
|
+
const GROW_MS = 220;
|
|
5
|
+
/** Slow at first: the conversation over it starts to move by a few pixels a frame, not a jump. */
|
|
6
|
+
const GROW_EASE = 'cubic-bezier(0.4, 0, 0.2, 1)';
|
|
7
|
+
/**
|
|
8
|
+
* What sits over the message box and comes or goes while a conversation shows (a dialog, the widgets of
|
|
9
|
+
* extensions, the row of the connection): its height changes in a motion, so that the conversation, whose
|
|
10
|
+
* bottom keeps to it (ConversationScroller), slides rather than jumps. Its first height is taken as it is.
|
|
11
|
+
*/
|
|
12
|
+
export function GrowBox({ children }) {
|
|
13
|
+
const outer = React.useRef(null);
|
|
14
|
+
const inner = React.useRef(null);
|
|
15
|
+
React.useLayoutEffect(() => {
|
|
16
|
+
const box = outer.current;
|
|
17
|
+
const content = inner.current;
|
|
18
|
+
if (!box || !content || typeof ResizeObserver === 'undefined') {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let height = content.offsetHeight;
|
|
22
|
+
let animation;
|
|
23
|
+
const done = () => {
|
|
24
|
+
animation = undefined;
|
|
25
|
+
box.style.overflow = '';
|
|
26
|
+
};
|
|
27
|
+
const observer = new ResizeObserver(() => {
|
|
28
|
+
const next = content.offsetHeight;
|
|
29
|
+
// From where it is now, when it was on its way.
|
|
30
|
+
const from = animation ? box.getBoundingClientRect().height : height;
|
|
31
|
+
height = next;
|
|
32
|
+
animation === null || animation === void 0 ? void 0 : animation.cancel();
|
|
33
|
+
if (Math.abs(next - from) < STEP_PX || typeof box.animate !== 'function' || document.documentElement.hasAttribute('data-reduce-motion')) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
box.style.overflow = 'hidden';
|
|
37
|
+
animation = box.animate([{ height: `${from}px` }, { height: `${next}px` }], { duration: GROW_MS, easing: GROW_EASE });
|
|
38
|
+
animation.onfinish = done;
|
|
39
|
+
animation.oncancel = done;
|
|
40
|
+
});
|
|
41
|
+
observer.observe(content);
|
|
42
|
+
return () => {
|
|
43
|
+
observer.disconnect();
|
|
44
|
+
animation === null || animation === void 0 ? void 0 : animation.cancel();
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
return (React.createElement("div", { ref: outer, className: "ta-grow" },
|
|
48
|
+
React.createElement("div", { ref: inner, className: "ta-grow-inner" }, children)));
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=grow-box.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TaNotices } from '../notices/notices-protocol.js';
|
|
3
|
+
export interface HoldToTalkProps {
|
|
4
|
+
/** What was said, let go on the bottom of the overlay. */
|
|
5
|
+
onSend(text: string): void;
|
|
6
|
+
/** Let go over 编辑: the words to read over first; without it, they are sent. */
|
|
7
|
+
onEdit?(text: string): void;
|
|
8
|
+
/** Words to expect besides those of the work: names of who is talked to. */
|
|
9
|
+
hints?: readonly string[];
|
|
10
|
+
className?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A button held to talk, for web extensions (`ui.HoldToTalk`), as the message box's bar is: held, the page dims and
|
|
17
|
+
* listens with the overlay of a conversation by voice (取消 and 编辑 to slide onto); let go, the words are given.
|
|
18
|
+
* With the recognizer of the page (the app's on iOS); nothing where it cannot listen.
|
|
19
|
+
*/
|
|
20
|
+
export declare function HoldToTalk({ notices, onSend, onEdit, hints, className, title, disabled, children }: HoldToTalkProps & {
|
|
21
|
+
notices: TaNotices;
|
|
22
|
+
}): React.JSX.Element | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Voice } from '../util/voice.js';
|
|
3
|
+
import { useVoiceTalk, VoiceTalkOverlay } from './voice-talk.js';
|
|
4
|
+
/**
|
|
5
|
+
* A button held to talk, for web extensions (`ui.HoldToTalk`), as the message box's bar is: held, the page dims and
|
|
6
|
+
* listens with the overlay of a conversation by voice (取消 and 编辑 to slide onto); let go, the words are given.
|
|
7
|
+
* With the recognizer of the page (the app's on iOS); nothing where it cannot listen.
|
|
8
|
+
*/
|
|
9
|
+
export function HoldToTalk({ notices, onSend, onEdit, hints, className, title, disabled, children }) {
|
|
10
|
+
const talk = useVoiceTalk((text, zone) => (zone === 'edit' && onEdit ? onEdit(text) : onSend(text)), error => notices.error(error), hints);
|
|
11
|
+
if (!Voice.canListen()) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return (React.createElement(React.Fragment, null,
|
|
15
|
+
React.createElement("button", { type: "button", className: className, title: title, "aria-label": title, "aria-pressed": talk.active, disabled: disabled, "data-held": "", onPointerDown: event => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
if (!event.isPrimary || event.button !== 0) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
(_b = (_a = event.currentTarget).setPointerCapture) === null || _b === void 0 ? void 0 : _b.call(_a, event.pointerId);
|
|
22
|
+
talk.start();
|
|
23
|
+
talk.point(event.clientX, event.clientY);
|
|
24
|
+
}, onPointerMove: event => talk.point(event.clientX, event.clientY), onPointerUp: () => talk.release(), onPointerCancel: () => talk.cancel(),
|
|
25
|
+
// A finger held is the button's: no menu (device/long-press.ts sends one), no selection.
|
|
26
|
+
onContextMenu: event => event.preventDefault() }, children),
|
|
27
|
+
React.createElement(VoiceTalkOverlay, { talk: talk })));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=hold-to-talk.js.map
|
|
@@ -4,7 +4,7 @@ import type { SavedHost } from '../workbench-protocol.js';
|
|
|
4
4
|
/** Adding a computer by its code or link: what the sign-in and the sheet of the computers share. */
|
|
5
5
|
export declare function useAddHost(): {
|
|
6
6
|
busy: boolean;
|
|
7
|
-
error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.offline" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOff" | "ta.assistant.speakOn" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.close" | "ta.composer.addImage" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.alreadyCompacted" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.discard" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.notSaved" | "ta.message.resend" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.running" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retrying" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.select.all" | "ta.select.count" | "ta.select.done" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.speakTalk" | "ta.settings.speakTalkHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.talk.edit" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.removeTitle" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.select" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | "ta.zoom.actual" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.out" | undefined;
|
|
7
|
+
error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.confirmShort" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.offline" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOn" | "ta.assistant.speakStop" | "ta.assistant.speakStopShort" | "ta.assistant.speakTalkShort" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.archived" | "ta.chat.archivedCount" | "ta.chat.archivedHint" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.olderCount" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.pin" | "ta.chat.pinned" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.chat.unpin" | "ta.chat.unseen" | "ta.close" | "ta.command.bug" | "ta.command.mcp" | "ta.composer.addImage" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.keyboard" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.page" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.recentShot" | "ta.composer.recentShotAdd" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.alreadyCompacted" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.game.failed" | "ta.game.label" | "ta.game.loading" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.discard" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.modelSwitched" | "ta.message.notSaved" | "ta.message.quote" | "ta.message.resend" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.showLess" | "ta.message.showMore" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.running" | "ta.process.showAll" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retry.error" | "ta.progress.retry.network" | "ta.progress.retry.overloaded" | "ta.progress.retry.rateLimit" | "ta.progress.retrying" | "ta.progress.retryingNow" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.scan" | "ta.scan.album" | "ta.scan.ask" | "ta.scan.askHint" | "ta.scan.askPlaceholder" | "ta.scan.askTitle" | "ta.scan.cameraFailed" | "ta.scan.copyFailed" | "ta.scan.error" | "ta.scan.errorPrompt" | "ta.scan.failed" | "ta.scan.flip" | "ta.scan.identify" | "ta.scan.identifyPrompt" | "ta.scan.instructions" | "ta.scan.myCode" | "ta.scan.noCode" | "ta.scan.note" | "ta.scan.notePrompt" | "ta.scan.pairMessage" | "ta.scan.pairTitle" | "ta.scan.result" | "ta.scan.retake" | "ta.scan.sameHost" | "ta.scan.translate" | "ta.scan.translatePrompt" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.select.all" | "ta.select.count" | "ta.select.done" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatArchive" | "ta.settings.chatArchiveHint" | "ta.settings.chatFold" | "ta.settings.chatFoldHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.chats" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.oneYear" | "ta.settings.recentShots" | "ta.settings.recentShotsHint" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.speakTalk" | "ta.settings.speakTalkHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.voiceAuto" | "ta.settings.voiceAutoNone" | "ta.settings.voiceName" | "ta.settings.voiceNameHint" | "ta.settings.voicePreview" | "ta.settings.voiceSample" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.talk.edit" | "ta.talk.hold" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.removeTitle" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.select" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.fetch" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.skill" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.todo" | "ta.tool.verb.viewImage" | "ta.tool.verb.webSearch" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | "ta.zoom.actual" | "ta.zoom.failed" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.loading" | "ta.zoom.next" | "ta.zoom.out" | "ta.zoom.previous" | undefined;
|
|
8
8
|
add: (text: string, scanned?: boolean) => Promise<void>;
|
|
9
9
|
scan: () => Promise<void>;
|
|
10
10
|
canScan: boolean;
|
|
@@ -23,7 +23,9 @@ export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
23
23
|
icon: Glyph;
|
|
24
24
|
label: string;
|
|
25
25
|
badge?: number;
|
|
26
|
+
/** What it did goes on (useBusy): a spinner in place of the icon once it took a moment, and no second click. */
|
|
27
|
+
busy?: boolean;
|
|
26
28
|
}
|
|
27
29
|
/** A round button with an icon; its label is the tooltip and what screen readers say. */
|
|
28
|
-
export declare function IconButton({ icon, label, badge, className, ...props }: IconButtonProps): React.JSX.Element;
|
|
30
|
+
export declare function IconButton({ icon, label, badge, busy, className, ...props }: IconButtonProps): React.JSX.Element;
|
|
29
31
|
export {};
|
|
@@ -14,9 +14,10 @@ export const SidebarLeft = (props) => React.createElement(SidebarGlyph, { side:
|
|
|
14
14
|
/** Shows or hides the workbench on the right. */
|
|
15
15
|
export const SidebarRight = (props) => React.createElement(SidebarGlyph, { side: "right", ...props });
|
|
16
16
|
/** A round button with an icon; its label is the tooltip and what screen readers say. */
|
|
17
|
-
export function IconButton({ icon, label, badge, className = '', ...props }) {
|
|
18
|
-
return (React.createElement("button", { type: "button", className: `ta-icon-button ${className}`, title: label, "aria-label": label, ...props },
|
|
17
|
+
export function IconButton({ icon, label, badge, busy = false, className = '', ...props }) {
|
|
18
|
+
return (React.createElement("button", { type: "button", className: `ta-icon-button ${busy ? 'ta-busy ' : ''}${className}`, title: label, "aria-label": label, "aria-busy": busy || undefined, ...props },
|
|
19
19
|
React.createElement(Icon, { icon: icon }),
|
|
20
|
-
badge ? React.createElement("span", { className: "ta-badge" }, badge) : null
|
|
20
|
+
badge ? React.createElement("span", { className: "ta-badge" }, badge) : null,
|
|
21
|
+
busy ? React.createElement("span", { className: "ta-spinner ta-busy-mark", "aria-hidden": "true" }) : null));
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=icon.js.map
|
|
@@ -118,7 +118,15 @@ export interface ImageViewerProps {
|
|
|
118
118
|
onLoad?(size: ZoomSize): void;
|
|
119
119
|
/** A click or tap beside the picture (the lightbox closes). */
|
|
120
120
|
onBackground?(): void;
|
|
121
|
+
/** The picture before this one, and the one after (of a folder, of a message): buttons at the sides and ← →; none without them. */
|
|
122
|
+
onPrevious?(): void;
|
|
123
|
+
onNext?(): void;
|
|
124
|
+
/** Takes the keys at once: the picture after one shown by ← → (another viewer) goes on with the keys. */
|
|
125
|
+
autoFocus?: boolean;
|
|
121
126
|
}
|
|
122
|
-
/**
|
|
123
|
-
|
|
127
|
+
/**
|
|
128
|
+
* A picture that zooms and scrolls (ImageZoom), with its buttons: −, the scale, +, fit to window and actual size;
|
|
129
|
+
* with `onPrevious` / `onNext`, the pictures beside it at its sides and by ← → (which scroll it while it is zoomed).
|
|
130
|
+
*/
|
|
131
|
+
export declare function ImageViewer({ src, alt, className, onLoad, onBackground, onPrevious, onNext, autoFocus }: ImageViewerProps): React.JSX.Element;
|
|
124
132
|
export {};
|