@celljs/ta-web 4.7.0 → 4.9.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 +40 -9
- package/README.md +39 -8
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -0
- package/esm/browser/assistant/assistant-chat-list.js +19 -0
- package/esm/browser/assistant/assistant-extension.d.ts +4 -1
- package/esm/browser/assistant/assistant-extension.js +96 -12
- package/esm/browser/assistant/assistant-protocol.d.ts +48 -0
- package/esm/browser/assistant/assistant-role.d.ts +81 -0
- package/esm/browser/assistant/assistant-role.js +45 -0
- package/esm/browser/assistant/assistant-state.d.ts +18 -0
- package/esm/browser/assistant/assistant-state.js +35 -0
- package/esm/browser/assistant/assistant-task-book.d.ts +30 -0
- package/esm/browser/assistant/assistant-task-book.js +68 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +54 -0
- package/esm/browser/assistant/assistant-task-source.js +156 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +48 -0
- package/esm/browser/assistant/assistant-task-util.js +105 -0
- package/esm/browser/assistant/assistant-tasks.d.ts +15 -28
- package/esm/browser/assistant/assistant-tasks.js +65 -89
- package/esm/browser/assistant/assistant-view.js +125 -86
- package/esm/browser/assistant/assistant.d.ts +91 -18
- package/esm/browser/assistant/assistant.js +398 -140
- package/esm/browser/assistant/task-card.d.ts +10 -0
- package/esm/browser/assistant/task-card.js +24 -0
- package/esm/browser/assistant/task-views.d.ts +44 -0
- package/esm/browser/assistant/task-views.js +187 -0
- package/esm/browser/avatar/dino-avatar.d.ts +33 -56
- package/esm/browser/avatar/dino-avatar.js +366 -145
- package/esm/browser/avatar/dino-motion.d.ts +9 -2
- package/esm/browser/avatar/dino-motion.js +298 -44
- package/esm/browser/avatar/dino-species.d.ts +123 -0
- package/esm/browser/avatar/dino-species.js +912 -0
- package/esm/browser/chat/chat-protocol.d.ts +40 -7
- package/esm/browser/chat/chat-protocol.js +7 -0
- package/esm/browser/chat/chat-view.d.ts +3 -1
- package/esm/browser/chat/chat-view.js +50 -8
- package/esm/browser/chat/chat.d.ts +54 -8
- package/esm/browser/chat/chat.js +234 -33
- package/esm/browser/chat/draft-model.d.ts +13 -0
- package/esm/browser/chat/draft-model.js +31 -0
- package/esm/browser/chat/recent-stores.d.ts +24 -0
- package/esm/browser/chat/recent-stores.js +39 -0
- package/esm/browser/components/access-util.d.ts +4 -0
- package/esm/browser/components/access-util.js +28 -0
- package/esm/browser/components/access-view.d.ts +16 -0
- package/esm/browser/components/access-view.js +125 -0
- package/esm/browser/components/account-menu.d.ts +59 -4
- package/esm/browser/components/account-menu.js +169 -42
- package/esm/browser/components/agent-settings-view.d.ts +1 -0
- package/esm/browser/components/agent-settings-view.js +11 -5
- package/esm/browser/components/app-nav.d.ts +44 -0
- package/esm/browser/components/app-nav.js +110 -0
- package/esm/browser/components/app-view.d.ts +1 -7
- package/esm/browser/components/app-view.js +299 -125
- package/esm/browser/components/auth-pictures.js +4 -7
- package/esm/browser/components/auth-view.js +18 -12
- package/esm/browser/components/board-util.d.ts +20 -0
- package/esm/browser/components/board-util.js +42 -0
- package/esm/browser/components/board.d.ts +14 -0
- package/esm/browser/components/board.js +92 -0
- package/esm/browser/components/chat-list.d.ts +62 -13
- package/esm/browser/components/chat-list.js +132 -34
- package/esm/browser/components/code-editor.d.ts +1 -1
- package/esm/browser/components/code-editor.js +5 -1
- package/esm/browser/components/composer-addons.d.ts +17 -0
- package/esm/browser/components/composer-addons.js +56 -0
- package/esm/browser/components/composer-box.d.ts +15 -4
- package/esm/browser/components/composer-box.js +71 -19
- package/esm/browser/components/composer.d.ts +4 -1
- package/esm/browser/components/composer.js +31 -10
- package/esm/browser/components/connection-bar.d.ts +9 -2
- package/esm/browser/components/connection-bar.js +113 -38
- package/esm/browser/components/context-menu.d.ts +24 -1
- package/esm/browser/components/context-menu.js +36 -8
- package/esm/browser/components/conversation-scroll.d.ts +3 -1
- package/esm/browser/components/conversation-scroll.js +56 -4
- package/esm/browser/components/dialog-view.d.ts +4 -1
- package/esm/browser/components/dialog-view.js +11 -7
- package/esm/browser/components/diff-editor.d.ts +1 -1
- package/esm/browser/components/diff-editor.js +5 -1
- package/esm/browser/components/dino-look-picker.d.ts +10 -0
- package/esm/browser/components/dino-look-picker.js +33 -0
- package/esm/browser/components/dino-look.d.ts +14 -0
- package/esm/browser/components/dino-look.js +53 -0
- package/esm/browser/components/dino.js +1 -1
- package/esm/browser/components/discover-view.d.ts +18 -0
- package/esm/browser/components/discover-view.js +38 -0
- package/esm/browser/components/earlier-messages.d.ts +30 -0
- package/esm/browser/components/earlier-messages.js +86 -0
- package/esm/browser/components/editor-area.js +6 -1
- package/esm/browser/components/empty-pictures.d.ts +7 -0
- package/esm/browser/components/empty-pictures.js +53 -0
- package/esm/browser/components/empty-state.d.ts +8 -0
- package/esm/browser/components/empty-state.js +15 -0
- package/esm/browser/components/environment-view.d.ts +19 -0
- package/esm/browser/components/environment-view.js +214 -0
- package/esm/browser/components/folder-picker.js +6 -3
- package/esm/browser/components/hero-cards.d.ts +4 -0
- package/esm/browser/components/hero-cards.js +16 -15
- package/esm/browser/components/host-tag.d.ts +9 -0
- package/esm/browser/components/host-tag.js +21 -0
- package/esm/browser/components/host-view.d.ts +34 -0
- package/esm/browser/components/host-view.js +168 -0
- package/esm/browser/components/kept-pages.d.ts +15 -0
- package/esm/browser/components/kept-pages.js +13 -0
- package/esm/browser/components/launch-settings.d.ts +3 -0
- package/esm/browser/components/launch-settings.js +38 -0
- package/esm/browser/components/launcher-search-util.d.ts +12 -0
- package/esm/browser/components/launcher-search-util.js +41 -0
- package/esm/browser/components/launcher-surface.d.ts +9 -0
- package/esm/browser/components/launcher-surface.js +67 -0
- package/esm/browser/components/list-rows.d.ts +21 -0
- package/esm/browser/components/list-rows.js +21 -0
- package/esm/browser/components/list-skeleton.d.ts +10 -0
- package/esm/browser/components/list-skeleton.js +31 -0
- package/esm/browser/components/me-view.d.ts +9 -0
- package/esm/browser/components/me-view.js +35 -0
- package/esm/browser/components/message-actions.js +1 -0
- package/esm/browser/components/message-footer.d.ts +2 -0
- package/esm/browser/components/message-list.js +50 -10
- package/esm/browser/components/message-menu.d.ts +20 -0
- package/esm/browser/components/message-menu.js +59 -0
- package/esm/browser/components/model-picker.d.ts +43 -0
- package/esm/browser/components/model-picker.js +167 -0
- package/esm/browser/components/nav-places.d.ts +46 -0
- package/esm/browser/components/nav-places.js +49 -0
- package/esm/browser/components/notice-center.js +3 -1
- package/esm/browser/components/option-list.d.ts +45 -0
- package/esm/browser/components/option-list.js +138 -0
- package/esm/browser/components/phone-shell.d.ts +72 -0
- package/esm/browser/components/phone-shell.js +226 -0
- package/esm/browser/components/picture.d.ts +15 -0
- package/esm/browser/components/picture.js +23 -0
- package/esm/browser/components/qr-view.d.ts +6 -0
- package/esm/browser/components/qr-view.js +12 -0
- package/esm/browser/components/relay-view.js +5 -12
- package/esm/browser/components/remote-hosts.js +3 -2
- package/esm/browser/components/search-page.d.ts +13 -0
- package/esm/browser/components/search-page.js +147 -0
- package/esm/browser/components/search-section.d.ts +16 -0
- package/esm/browser/components/search-section.js +99 -0
- package/esm/browser/components/session-settings.d.ts +7 -3
- package/esm/browser/components/session-settings.js +28 -18
- package/esm/browser/components/session-view.js +68 -10
- package/esm/browser/components/settings-controls.d.ts +22 -2
- package/esm/browser/components/settings-controls.js +38 -2
- package/esm/browser/components/settings-view.d.ts +8 -5
- package/esm/browser/components/settings-view.js +334 -93
- package/esm/browser/components/share-dialog.d.ts +13 -0
- package/esm/browser/components/share-dialog.js +83 -0
- package/esm/browser/components/side-lists.d.ts +37 -0
- package/esm/browser/components/side-lists.js +40 -0
- package/esm/browser/components/sign-in-accounts.d.ts +27 -0
- package/esm/browser/components/sign-in-accounts.js +64 -0
- package/esm/browser/components/sign-in-marks.d.ts +5 -0
- package/esm/browser/components/sign-in-marks.js +30 -0
- package/esm/browser/components/sign-in-picture.d.ts +7 -0
- package/esm/browser/components/sign-in-picture.js +64 -0
- package/esm/browser/components/sortable.d.ts +13 -0
- package/esm/browser/components/sortable.js +87 -0
- package/esm/browser/components/surface-flyout.d.ts +10 -0
- package/esm/browser/components/surface-flyout.js +38 -0
- package/esm/browser/components/swipe-row.d.ts +297 -0
- package/esm/browser/components/swipe-row.js +34 -0
- package/esm/browser/components/ta-avatar.d.ts +23 -2
- package/esm/browser/components/ta-avatar.js +108 -30
- package/esm/browser/components/terminal-art.d.ts +7 -0
- package/esm/browser/components/terminal-art.js +12 -0
- package/esm/browser/components/tool-view.js +1 -1
- package/esm/browser/components/trusted-domains.js +2 -2
- package/esm/browser/components/voice-button.d.ts +11 -0
- package/esm/browser/components/voice-button.js +65 -0
- package/esm/browser/components/web-composer.js +1 -1
- package/esm/browser/components/workbench-toggle.d.ts +13 -0
- package/esm/browser/components/workbench-toggle.js +28 -1
- package/esm/browser/components/workbench-view.d.ts +6 -3
- package/esm/browser/components/workbench-view.js +30 -16
- package/esm/browser/components/working-directory.d.ts +1 -1
- package/esm/browser/components/working-directory.js +1 -1
- package/esm/browser/device/back-stack.d.ts +36 -0
- package/esm/browser/device/back-stack.js +71 -0
- package/esm/browser/device/device-protocol.d.ts +47 -0
- package/esm/browser/device/device-protocol.js +32 -0
- package/esm/browser/device/device.d.ts +106 -0
- package/esm/browser/device/device.js +283 -0
- package/esm/browser/device/field-dismiss.d.ts +31 -0
- package/esm/browser/device/field-dismiss.js +80 -0
- package/esm/browser/device/launch-screen.d.ts +35 -0
- package/esm/browser/device/launch-screen.js +72 -0
- package/esm/browser/device/long-press.d.ts +30 -0
- package/esm/browser/device/long-press.js +132 -0
- package/esm/browser/device/new-line.d.ts +14 -0
- package/esm/browser/device/new-line.js +38 -0
- package/esm/browser/device/pull-down.d.ts +46 -0
- package/esm/browser/device/pull-down.js +232 -0
- package/esm/browser/device/row-swipe.d.ts +26 -0
- package/esm/browser/device/row-swipe.js +204 -0
- package/esm/browser/device/scanner.d.ts +15 -0
- package/esm/browser/device/scanner.js +63 -0
- package/esm/browser/device/sheet-swipe.d.ts +109 -0
- package/esm/browser/device/sheet-swipe.js +380 -0
- package/esm/browser/editor/monaco-loader.d.ts +8 -3
- package/esm/browser/editor/monaco-loader.js +7 -3
- package/esm/browser/extension/icons.d.ts +4 -0
- package/esm/browser/extension/icons.js +33 -1
- package/esm/browser/extension/web-extension-api.d.ts +469 -7
- package/esm/browser/extension/web-extension-code.d.ts +15 -0
- package/esm/browser/extension/web-extension-code.js +55 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +70 -4
- package/esm/browser/extension/web-extensions.d.ts +70 -26
- package/esm/browser/extension/web-extensions.js +321 -113
- package/esm/browser/extension/web-keep-alive.d.ts +39 -0
- package/esm/browser/extension/web-keep-alive.js +79 -0
- package/esm/browser/extension/web-on-demand.d.ts +63 -0
- package/esm/browser/extension/web-on-demand.js +144 -0
- package/esm/browser/extension/web-pages.d.ts +74 -0
- package/esm/browser/extension/web-pages.js +77 -0
- package/esm/browser/extension/web-sharing.d.ts +21 -0
- package/esm/browser/extension/web-sharing.js +54 -0
- package/esm/browser/extension/web-tasks.d.ts +46 -0
- package/esm/browser/extension/web-tasks.js +134 -0
- package/esm/browser/extension/web-view-util.d.ts +44 -0
- package/esm/browser/extension/web-view-util.js +114 -0
- package/esm/browser/hooks.d.ts +6 -0
- package/esm/browser/hooks.js +9 -0
- package/esm/browser/hosts.d.ts +26 -0
- package/esm/browser/hosts.js +100 -0
- package/esm/browser/i18n/locales.d.ts +268 -10
- package/esm/browser/i18n/messages.d.ts +267 -9
- package/esm/browser/i18n/messages.js +574 -57
- package/esm/browser/i18n/use-t.d.ts +4 -0
- package/esm/browser/i18n/use-t.js +21 -3
- package/esm/browser/index.d.ts +10 -2
- package/esm/browser/index.js +10 -2
- package/esm/browser/notices/notices-protocol.d.ts +3 -0
- package/esm/browser/notices/notices.d.ts +3 -0
- package/esm/browser/notices/notices.js +15 -0
- package/esm/browser/settings/navigation.d.ts +45 -0
- package/esm/browser/settings/navigation.js +62 -0
- package/esm/browser/settings/settings-protocol.d.ts +40 -1
- package/esm/browser/settings/settings-protocol.js +50 -1
- package/esm/browser/settings/settings.js +5 -1
- package/esm/browser/state/state-protocol.d.ts +6 -1
- package/esm/browser/state/state-protocol.js +20 -0
- package/esm/browser/state/state.d.ts +4 -0
- package/esm/browser/state/state.js +23 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +32 -11
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +55 -29
- package/esm/browser/style/device.d.ts +5 -0
- package/esm/browser/style/device.js +154 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +177 -113
- package/esm/browser/style/pages.d.ts +2 -2
- package/esm/browser/style/pages.js +133 -24
- package/esm/browser/style/phone.d.ts +6 -0
- package/esm/browser/style/phone.js +110 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +105 -62
- package/esm/browser/style/surfaces.d.ts +5 -0
- package/esm/browser/style/surfaces.js +92 -0
- package/esm/browser/style/tasks.d.ts +6 -0
- package/esm/browser/style/tasks.js +80 -0
- package/esm/browser/style.d.ts +2 -1
- package/esm/browser/style.js +7 -2
- package/esm/browser/terminal/canvas-font.d.ts +10 -0
- package/esm/browser/terminal/canvas-font.js +34 -0
- package/esm/browser/terminal/terminal-links.d.ts +18 -0
- package/esm/browser/terminal/terminal-links.js +72 -0
- package/esm/browser/terminal/terminal-theme.d.ts +10 -0
- package/esm/browser/terminal/terminal-theme.js +73 -0
- package/esm/browser/terminal/web-terminal.d.ts +112 -0
- package/esm/browser/terminal/web-terminal.js +511 -0
- package/esm/browser/terminal/xterm.d.ts +5 -0
- package/esm/browser/terminal/xterm.js +9 -0
- package/esm/browser/util/composer.d.ts +20 -7
- package/esm/browser/util/composer.js +27 -5
- package/esm/browser/util/desktop.d.ts +43 -0
- package/esm/browser/util/desktop.js +55 -0
- package/esm/browser/util/file-drag.d.ts +26 -0
- package/esm/browser/util/file-drag.js +73 -0
- package/esm/browser/util/frame.d.ts +5 -0
- package/esm/browser/util/frame.js +8 -0
- package/esm/browser/util/message.d.ts +7 -0
- package/esm/browser/util/message.js +20 -0
- package/esm/browser/util/process.d.ts +3 -2
- package/esm/browser/util/process.js +7 -7
- package/esm/browser/util/share-link.d.ts +16 -0
- package/esm/browser/util/share-link.js +51 -0
- package/esm/browser/util/terminal-text.d.ts +33 -0
- package/esm/browser/util/terminal-text.js +209 -0
- package/esm/browser/util/tool.d.ts +1 -1
- package/esm/browser/util/tool.js +20 -3
- package/esm/browser/util/voice.d.ts +16 -0
- package/esm/browser/util/voice.js +77 -0
- package/esm/browser/workbench-protocol.d.ts +66 -7
- package/esm/browser/workbench.d.ts +76 -8
- package/esm/browser/workbench.js +407 -57
- package/lib/browser/assistant/assistant-chat-list.d.ts +5 -0
- package/lib/browser/assistant/assistant-chat-list.js +55 -0
- package/lib/browser/assistant/assistant-extension.d.ts +4 -1
- package/lib/browser/assistant/assistant-extension.js +95 -11
- package/lib/browser/assistant/assistant-protocol.d.ts +48 -0
- package/lib/browser/assistant/assistant-role.d.ts +82 -0
- package/lib/browser/assistant/assistant-role.js +49 -0
- package/lib/browser/assistant/assistant-state.d.ts +19 -0
- package/lib/browser/assistant/assistant-state.js +38 -0
- package/lib/browser/assistant/assistant-task-book.d.ts +31 -0
- package/lib/browser/assistant/assistant-task-book.js +72 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +55 -0
- package/lib/browser/assistant/assistant-task-source.js +161 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +49 -0
- package/lib/browser/assistant/assistant-task-util.js +108 -0
- package/lib/browser/assistant/assistant-tasks.d.ts +15 -28
- package/lib/browser/assistant/assistant-tasks.js +61 -89
- package/lib/browser/assistant/assistant-view.js +122 -83
- package/lib/browser/assistant/assistant.d.ts +91 -18
- package/lib/browser/assistant/assistant.js +400 -142
- package/lib/browser/assistant/task-card.d.ts +11 -0
- package/lib/browser/assistant/task-card.js +60 -0
- package/lib/browser/assistant/task-views.d.ts +45 -0
- package/lib/browser/assistant/task-views.js +230 -0
- package/lib/browser/avatar/dino-avatar.d.ts +33 -56
- package/lib/browser/avatar/dino-avatar.js +367 -147
- package/lib/browser/avatar/dino-motion.d.ts +9 -2
- package/lib/browser/avatar/dino-motion.js +299 -45
- package/lib/browser/avatar/dino-species.d.ts +124 -0
- package/lib/browser/avatar/dino-species.js +917 -0
- package/lib/browser/chat/chat-protocol.d.ts +40 -7
- package/lib/browser/chat/chat-protocol.js +8 -1
- package/lib/browser/chat/chat-view.d.ts +3 -1
- package/lib/browser/chat/chat-view.js +50 -8
- package/lib/browser/chat/chat.d.ts +54 -8
- package/lib/browser/chat/chat.js +233 -32
- package/lib/browser/chat/draft-model.d.ts +14 -0
- package/lib/browser/chat/draft-model.js +68 -0
- package/lib/browser/chat/recent-stores.d.ts +25 -0
- package/lib/browser/chat/recent-stores.js +43 -0
- package/lib/browser/components/access-util.d.ts +5 -0
- package/lib/browser/components/access-util.js +31 -0
- package/lib/browser/components/access-view.d.ts +17 -0
- package/lib/browser/components/access-view.js +162 -0
- package/lib/browser/components/account-menu.d.ts +59 -4
- package/lib/browser/components/account-menu.js +171 -40
- package/lib/browser/components/agent-settings-view.d.ts +1 -0
- package/lib/browser/components/agent-settings-view.js +11 -5
- package/lib/browser/components/app-nav.d.ts +45 -0
- package/lib/browser/components/app-nav.js +149 -0
- package/lib/browser/components/app-view.d.ts +1 -7
- package/lib/browser/components/app-view.js +295 -121
- package/lib/browser/components/auth-pictures.js +7 -10
- package/lib/browser/components/auth-view.js +18 -12
- package/lib/browser/components/board-util.d.ts +21 -0
- package/lib/browser/components/board-util.js +45 -0
- package/lib/browser/components/board.d.ts +15 -0
- package/lib/browser/components/board.js +129 -0
- package/lib/browser/components/chat-list.d.ts +62 -13
- package/lib/browser/components/chat-list.js +132 -34
- package/lib/browser/components/code-editor.d.ts +1 -1
- package/lib/browser/components/code-editor.js +5 -1
- package/lib/browser/components/composer-addons.d.ts +18 -0
- package/lib/browser/components/composer-addons.js +93 -0
- package/lib/browser/components/composer-box.d.ts +15 -4
- package/lib/browser/components/composer-box.js +71 -19
- package/lib/browser/components/composer.d.ts +4 -1
- package/lib/browser/components/composer.js +30 -9
- package/lib/browser/components/connection-bar.d.ts +9 -2
- package/lib/browser/components/connection-bar.js +114 -38
- package/lib/browser/components/context-menu.d.ts +24 -1
- package/lib/browser/components/context-menu.js +37 -8
- package/lib/browser/components/conversation-scroll.d.ts +3 -1
- package/lib/browser/components/conversation-scroll.js +57 -4
- package/lib/browser/components/dialog-view.d.ts +4 -1
- package/lib/browser/components/dialog-view.js +11 -7
- package/lib/browser/components/diff-editor.d.ts +1 -1
- package/lib/browser/components/diff-editor.js +5 -1
- package/lib/browser/components/dino-look-picker.d.ts +11 -0
- package/lib/browser/components/dino-look-picker.js +36 -0
- package/lib/browser/components/dino-look.d.ts +15 -0
- package/lib/browser/components/dino-look.js +91 -0
- package/lib/browser/components/dino.js +3 -3
- package/lib/browser/components/discover-view.d.ts +19 -0
- package/lib/browser/components/discover-view.js +74 -0
- package/lib/browser/components/earlier-messages.d.ts +31 -0
- package/lib/browser/components/earlier-messages.js +124 -0
- package/lib/browser/components/editor-area.js +6 -1
- package/lib/browser/components/empty-pictures.d.ts +8 -0
- package/lib/browser/components/empty-pictures.js +91 -0
- package/lib/browser/components/empty-state.d.ts +9 -0
- package/lib/browser/components/empty-state.js +51 -0
- package/lib/browser/components/environment-view.d.ts +20 -0
- package/lib/browser/components/environment-view.js +253 -0
- package/lib/browser/components/folder-picker.js +6 -3
- package/lib/browser/components/hero-cards.d.ts +4 -0
- package/lib/browser/components/hero-cards.js +17 -15
- package/lib/browser/components/host-tag.d.ts +10 -0
- package/lib/browser/components/host-tag.js +57 -0
- package/lib/browser/components/host-view.d.ts +35 -0
- package/lib/browser/components/host-view.js +208 -0
- package/lib/browser/components/kept-pages.d.ts +16 -0
- package/lib/browser/components/kept-pages.js +49 -0
- package/lib/browser/components/launch-settings.d.ts +4 -0
- package/lib/browser/components/launch-settings.js +74 -0
- package/lib/browser/components/launcher-search-util.d.ts +13 -0
- package/lib/browser/components/launcher-search-util.js +44 -0
- package/lib/browser/components/launcher-surface.d.ts +10 -0
- package/lib/browser/components/launcher-surface.js +103 -0
- package/lib/browser/components/list-rows.d.ts +22 -0
- package/lib/browser/components/list-rows.js +58 -0
- package/lib/browser/components/list-skeleton.d.ts +11 -0
- package/lib/browser/components/list-skeleton.js +68 -0
- package/lib/browser/components/me-view.d.ts +10 -0
- package/lib/browser/components/me-view.js +71 -0
- package/lib/browser/components/message-actions.js +1 -0
- package/lib/browser/components/message-footer.d.ts +2 -0
- package/lib/browser/components/message-list.js +48 -8
- package/lib/browser/components/message-menu.d.ts +21 -0
- package/lib/browser/components/message-menu.js +95 -0
- package/lib/browser/components/model-picker.d.ts +44 -0
- package/lib/browser/components/model-picker.js +206 -0
- package/lib/browser/components/nav-places.d.ts +47 -0
- package/lib/browser/components/nav-places.js +56 -0
- package/lib/browser/components/notice-center.js +3 -1
- package/lib/browser/components/option-list.d.ts +46 -0
- package/lib/browser/components/option-list.js +175 -0
- package/lib/browser/components/phone-shell.d.ts +73 -0
- package/lib/browser/components/phone-shell.js +265 -0
- package/lib/browser/components/picture.d.ts +16 -0
- package/lib/browser/components/picture.js +61 -0
- package/lib/browser/components/qr-view.d.ts +7 -0
- package/lib/browser/components/qr-view.js +48 -0
- package/lib/browser/components/relay-view.js +6 -13
- package/lib/browser/components/remote-hosts.js +2 -1
- package/lib/browser/components/search-page.d.ts +14 -0
- package/lib/browser/components/search-page.js +183 -0
- package/lib/browser/components/search-section.d.ts +17 -0
- package/lib/browser/components/search-section.js +136 -0
- package/lib/browser/components/session-settings.d.ts +7 -3
- package/lib/browser/components/session-settings.js +27 -17
- package/lib/browser/components/session-view.js +66 -8
- package/lib/browser/components/settings-controls.d.ts +22 -2
- package/lib/browser/components/settings-controls.js +39 -1
- package/lib/browser/components/settings-view.d.ts +8 -5
- package/lib/browser/components/settings-view.js +330 -89
- package/lib/browser/components/share-dialog.d.ts +14 -0
- package/lib/browser/components/share-dialog.js +120 -0
- package/lib/browser/components/side-lists.d.ts +38 -0
- package/lib/browser/components/side-lists.js +43 -0
- package/lib/browser/components/sign-in-accounts.d.ts +28 -0
- package/lib/browser/components/sign-in-accounts.js +102 -0
- package/lib/browser/components/sign-in-marks.d.ts +6 -0
- package/lib/browser/components/sign-in-marks.js +66 -0
- package/lib/browser/components/sign-in-picture.d.ts +8 -0
- package/lib/browser/components/sign-in-picture.js +100 -0
- package/lib/browser/components/sortable.d.ts +14 -0
- package/lib/browser/components/sortable.js +124 -0
- package/lib/browser/components/surface-flyout.d.ts +11 -0
- package/lib/browser/components/surface-flyout.js +74 -0
- package/lib/browser/components/swipe-row.d.ts +298 -0
- package/lib/browser/components/swipe-row.js +70 -0
- package/lib/browser/components/ta-avatar.d.ts +23 -2
- package/lib/browser/components/ta-avatar.js +109 -29
- package/lib/browser/components/terminal-art.d.ts +8 -0
- package/lib/browser/components/terminal-art.js +48 -0
- package/lib/browser/components/tool-view.js +1 -1
- package/lib/browser/components/trusted-domains.js +1 -1
- package/lib/browser/components/voice-button.d.ts +12 -0
- package/lib/browser/components/voice-button.js +101 -0
- package/lib/browser/components/web-composer.js +1 -1
- package/lib/browser/components/workbench-toggle.d.ts +13 -0
- package/lib/browser/components/workbench-toggle.js +29 -1
- package/lib/browser/components/workbench-view.d.ts +6 -3
- package/lib/browser/components/workbench-view.js +30 -16
- package/lib/browser/components/working-directory.d.ts +1 -1
- package/lib/browser/components/working-directory.js +1 -1
- package/lib/browser/device/back-stack.d.ts +37 -0
- package/lib/browser/device/back-stack.js +109 -0
- package/lib/browser/device/device-protocol.d.ts +48 -0
- package/lib/browser/device/device-protocol.js +35 -0
- package/lib/browser/device/device.d.ts +107 -0
- package/lib/browser/device/device.js +323 -0
- package/lib/browser/device/field-dismiss.d.ts +32 -0
- package/lib/browser/device/field-dismiss.js +84 -0
- package/lib/browser/device/launch-screen.d.ts +36 -0
- package/lib/browser/device/launch-screen.js +76 -0
- package/lib/browser/device/long-press.d.ts +31 -0
- package/lib/browser/device/long-press.js +136 -0
- package/lib/browser/device/new-line.d.ts +15 -0
- package/lib/browser/device/new-line.js +42 -0
- package/lib/browser/device/pull-down.d.ts +47 -0
- package/lib/browser/device/pull-down.js +269 -0
- package/lib/browser/device/row-swipe.d.ts +27 -0
- package/lib/browser/device/row-swipe.js +241 -0
- package/lib/browser/device/scanner.d.ts +16 -0
- package/lib/browser/device/scanner.js +67 -0
- package/lib/browser/device/sheet-swipe.d.ts +110 -0
- package/lib/browser/device/sheet-swipe.js +419 -0
- package/lib/browser/editor/monaco-loader.d.ts +8 -3
- package/lib/browser/editor/monaco-loader.js +7 -3
- package/lib/browser/extension/icons.d.ts +4 -0
- package/lib/browser/extension/icons.js +33 -1
- package/lib/browser/extension/web-extension-api.d.ts +469 -7
- package/lib/browser/extension/web-extension-code.d.ts +16 -0
- package/lib/browser/extension/web-extension-code.js +59 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +70 -4
- package/lib/browser/extension/web-extensions.d.ts +70 -26
- package/lib/browser/extension/web-extensions.js +328 -120
- package/lib/browser/extension/web-keep-alive.d.ts +40 -0
- package/lib/browser/extension/web-keep-alive.js +83 -0
- package/lib/browser/extension/web-on-demand.d.ts +64 -0
- package/lib/browser/extension/web-on-demand.js +148 -0
- package/lib/browser/extension/web-pages.d.ts +75 -0
- package/lib/browser/extension/web-pages.js +80 -0
- package/lib/browser/extension/web-sharing.d.ts +22 -0
- package/lib/browser/extension/web-sharing.js +58 -0
- package/lib/browser/extension/web-tasks.d.ts +47 -0
- package/lib/browser/extension/web-tasks.js +138 -0
- package/lib/browser/extension/web-view-util.d.ts +45 -0
- package/lib/browser/extension/web-view-util.js +150 -0
- package/lib/browser/hooks.d.ts +6 -0
- package/lib/browser/hooks.js +11 -0
- package/lib/browser/hosts.d.ts +27 -0
- package/lib/browser/hosts.js +103 -0
- package/lib/browser/i18n/locales.d.ts +268 -10
- package/lib/browser/i18n/messages.d.ts +267 -9
- package/lib/browser/i18n/messages.js +574 -57
- package/lib/browser/i18n/use-t.d.ts +4 -0
- package/lib/browser/i18n/use-t.js +22 -2
- package/lib/browser/index.d.ts +10 -2
- package/lib/browser/index.js +10 -2
- package/lib/browser/notices/notices-protocol.d.ts +3 -0
- package/lib/browser/notices/notices.d.ts +3 -0
- package/lib/browser/notices/notices.js +15 -0
- package/lib/browser/settings/navigation.d.ts +46 -0
- package/lib/browser/settings/navigation.js +65 -0
- package/lib/browser/settings/settings-protocol.d.ts +40 -1
- package/lib/browser/settings/settings-protocol.js +51 -2
- package/lib/browser/settings/settings.js +4 -0
- package/lib/browser/state/state-protocol.d.ts +6 -1
- package/lib/browser/state/state-protocol.js +20 -0
- package/lib/browser/state/state.d.ts +4 -0
- package/lib/browser/state/state.js +23 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +32 -11
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +55 -29
- package/lib/browser/style/device.d.ts +6 -0
- package/lib/browser/style/device.js +157 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +177 -113
- package/lib/browser/style/pages.d.ts +2 -2
- package/lib/browser/style/pages.js +133 -24
- package/lib/browser/style/phone.d.ts +7 -0
- package/lib/browser/style/phone.js +113 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +105 -62
- package/lib/browser/style/surfaces.d.ts +6 -0
- package/lib/browser/style/surfaces.js +95 -0
- package/lib/browser/style/tasks.d.ts +7 -0
- package/lib/browser/style/tasks.js +83 -0
- package/lib/browser/style.d.ts +2 -1
- package/lib/browser/style.js +7 -2
- package/lib/browser/terminal/canvas-font.d.ts +11 -0
- package/lib/browser/terminal/canvas-font.js +37 -0
- package/lib/browser/terminal/terminal-links.d.ts +19 -0
- package/lib/browser/terminal/terminal-links.js +75 -0
- package/lib/browser/terminal/terminal-theme.d.ts +11 -0
- package/lib/browser/terminal/terminal-theme.js +76 -0
- package/lib/browser/terminal/web-terminal.d.ts +113 -0
- package/lib/browser/terminal/web-terminal.js +515 -0
- package/lib/browser/terminal/xterm.d.ts +6 -0
- package/lib/browser/terminal/xterm.js +16 -0
- package/lib/browser/util/composer.d.ts +20 -7
- package/lib/browser/util/composer.js +27 -5
- package/lib/browser/util/desktop.d.ts +44 -0
- package/lib/browser/util/desktop.js +58 -0
- package/lib/browser/util/file-drag.d.ts +27 -0
- package/lib/browser/util/file-drag.js +76 -0
- package/lib/browser/util/frame.d.ts +5 -0
- package/lib/browser/util/frame.js +8 -0
- package/lib/browser/util/message.d.ts +7 -0
- package/lib/browser/util/message.js +20 -0
- package/lib/browser/util/process.d.ts +3 -2
- package/lib/browser/util/process.js +7 -7
- package/lib/browser/util/share-link.d.ts +17 -0
- package/lib/browser/util/share-link.js +54 -0
- package/lib/browser/util/terminal-text.d.ts +34 -0
- package/lib/browser/util/terminal-text.js +212 -0
- package/lib/browser/util/tool.d.ts +1 -1
- package/lib/browser/util/tool.js +20 -3
- package/lib/browser/util/voice.d.ts +17 -0
- package/lib/browser/util/voice.js +80 -0
- package/lib/browser/workbench-protocol.d.ts +66 -7
- package/lib/browser/workbench.d.ts +76 -8
- package/lib/browser/workbench.js +408 -57
- package/package.json +14 -8
- package/public/launch.svg +49 -0
- package/esm/browser/assistant/assistant-export.js.map +0 -1
- package/esm/browser/assistant/assistant-extension.js.map +0 -1
- package/esm/browser/assistant/assistant-hooks.js.map +0 -1
- package/esm/browser/assistant/assistant-protocol.js.map +0 -1
- package/esm/browser/assistant/assistant-tasks.js.map +0 -1
- package/esm/browser/assistant/assistant-view.js.map +0 -1
- package/esm/browser/assistant/assistant.js.map +0 -1
- package/esm/browser/assistant/voice.d.ts +0 -14
- package/esm/browser/assistant/voice.js +0 -72
- package/esm/browser/assistant/voice.js.map +0 -1
- package/esm/browser/avatar/dino-avatar.js.map +0 -1
- package/esm/browser/avatar/dino-motion.js.map +0 -1
- package/esm/browser/chat/chat-protocol.js.map +0 -1
- package/esm/browser/chat/chat-view.js.map +0 -1
- package/esm/browser/chat/chat.js.map +0 -1
- package/esm/browser/components/account-menu.js.map +0 -1
- package/esm/browser/components/agent-settings-view.js.map +0 -1
- package/esm/browser/components/app-view.js.map +0 -1
- package/esm/browser/components/auth-pictures.js.map +0 -1
- package/esm/browser/components/auth-view.js.map +0 -1
- package/esm/browser/components/callout.js.map +0 -1
- package/esm/browser/components/chat-list.js.map +0 -1
- package/esm/browser/components/code-editor.js.map +0 -1
- package/esm/browser/components/composer-box.js.map +0 -1
- package/esm/browser/components/composer-menu.js.map +0 -1
- package/esm/browser/components/composer.js.map +0 -1
- package/esm/browser/components/connection-bar.js.map +0 -1
- package/esm/browser/components/context-menu.js.map +0 -1
- package/esm/browser/components/conversation-scroll.js.map +0 -1
- package/esm/browser/components/dialog-view.js.map +0 -1
- package/esm/browser/components/diff-editor.js.map +0 -1
- package/esm/browser/components/diff-view.js.map +0 -1
- package/esm/browser/components/dino.js.map +0 -1
- package/esm/browser/components/editor-area.js.map +0 -1
- package/esm/browser/components/folder-picker.js.map +0 -1
- package/esm/browser/components/fork-view.js.map +0 -1
- package/esm/browser/components/hero-cards.js.map +0 -1
- package/esm/browser/components/icon.js.map +0 -1
- package/esm/browser/components/link-dialog.js.map +0 -1
- package/esm/browser/components/link.js.map +0 -1
- package/esm/browser/components/manage-menu.d.ts +0 -13
- package/esm/browser/components/manage-menu.js +0 -96
- package/esm/browser/components/manage-menu.js.map +0 -1
- package/esm/browser/components/markdown.js.map +0 -1
- package/esm/browser/components/math.js.map +0 -1
- package/esm/browser/components/media.js.map +0 -1
- package/esm/browser/components/mermaid-view.js.map +0 -1
- package/esm/browser/components/message-actions.js.map +0 -1
- package/esm/browser/components/message-footer.js.map +0 -1
- package/esm/browser/components/message-list.js.map +0 -1
- package/esm/browser/components/notice-center.js.map +0 -1
- package/esm/browser/components/relay-view.js.map +0 -1
- package/esm/browser/components/remote-hosts.js.map +0 -1
- package/esm/browser/components/remote-prompts.js.map +0 -1
- package/esm/browser/components/run-status.js.map +0 -1
- package/esm/browser/components/session-settings.js.map +0 -1
- package/esm/browser/components/session-view.js.map +0 -1
- package/esm/browser/components/settings-controls.js.map +0 -1
- package/esm/browser/components/settings-view.js.map +0 -1
- package/esm/browser/components/split-pane.js.map +0 -1
- package/esm/browser/components/ta-avatar.js.map +0 -1
- package/esm/browser/components/tool-view.js.map +0 -1
- package/esm/browser/components/trusted-domains.js.map +0 -1
- package/esm/browser/components/web-composer.js.map +0 -1
- package/esm/browser/components/web-dialog.js.map +0 -1
- package/esm/browser/components/workbench-toggle.js.map +0 -1
- package/esm/browser/components/workbench-view.js.map +0 -1
- package/esm/browser/components/working-directory.js.map +0 -1
- package/esm/browser/editor/monaco-loader.js.map +0 -1
- package/esm/browser/editor/monaco.js.map +0 -1
- package/esm/browser/extension/extension-view.js.map +0 -1
- package/esm/browser/extension/icons.js.map +0 -1
- package/esm/browser/extension/web-extension-api.js.map +0 -1
- package/esm/browser/extension/web-extension-protocol.js.map +0 -1
- package/esm/browser/extension/web-extensions.js.map +0 -1
- package/esm/browser/hooks.js.map +0 -1
- package/esm/browser/i18n/locales.js.map +0 -1
- package/esm/browser/i18n/messages.js.map +0 -1
- package/esm/browser/i18n/use-t.js.map +0 -1
- package/esm/browser/index.js.map +0 -1
- package/esm/browser/links/links-protocol.js.map +0 -1
- package/esm/browser/links/links.js.map +0 -1
- package/esm/browser/markdown/hooks.js.map +0 -1
- package/esm/browser/markdown/lazy.js.map +0 -1
- package/esm/browser/markdown/math.js.map +0 -1
- package/esm/browser/markdown/mermaid.js.map +0 -1
- package/esm/browser/module.js.map +0 -1
- package/esm/browser/notices/notices-protocol.js.map +0 -1
- package/esm/browser/notices/notices.js.map +0 -1
- package/esm/browser/pwa/pwa-protocol.js.map +0 -1
- package/esm/browser/pwa/pwa.js.map +0 -1
- package/esm/browser/settings/agent-settings.js.map +0 -1
- package/esm/browser/settings/settings-protocol.js.map +0 -1
- package/esm/browser/settings/settings.js.map +0 -1
- package/esm/browser/state/state-protocol.js.map +0 -1
- package/esm/browser/state/state.js.map +0 -1
- package/esm/browser/style/base.js.map +0 -1
- package/esm/browser/style/conversation.js.map +0 -1
- package/esm/browser/style/layout.js.map +0 -1
- package/esm/browser/style/pages.js.map +0 -1
- package/esm/browser/style/shell.js.map +0 -1
- package/esm/browser/style.js.map +0 -1
- package/esm/browser/util/composer.js.map +0 -1
- package/esm/browser/util/diff.js.map +0 -1
- package/esm/browser/util/frame.js.map +0 -1
- package/esm/browser/util/layout.js.map +0 -1
- package/esm/browser/util/link.js.map +0 -1
- package/esm/browser/util/markdown.js.map +0 -1
- package/esm/browser/util/message.js.map +0 -1
- package/esm/browser/util/process.js.map +0 -1
- package/esm/browser/util/progress.js.map +0 -1
- package/esm/browser/util/qr-code.d.ts +0 -37
- package/esm/browser/util/qr-code.js +0 -349
- package/esm/browser/util/qr-code.js.map +0 -1
- package/esm/browser/util/tool.js.map +0 -1
- package/esm/browser/view.js.map +0 -1
- package/esm/browser/workbench-protocol.js.map +0 -1
- package/esm/browser/workbench.js.map +0 -1
- package/lib/browser/assistant/assistant-export.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-export.js.map +0 -1
- package/lib/browser/assistant/assistant-export.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant-export.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-export.spec.js +0 -27
- package/lib/browser/assistant/assistant-export.spec.js.map +0 -1
- package/lib/browser/assistant/assistant-extension.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-extension.js.map +0 -1
- package/lib/browser/assistant/assistant-extension.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant-extension.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-extension.spec.js +0 -121
- package/lib/browser/assistant/assistant-extension.spec.js.map +0 -1
- package/lib/browser/assistant/assistant-hooks.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-hooks.js.map +0 -1
- package/lib/browser/assistant/assistant-protocol.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-protocol.js.map +0 -1
- package/lib/browser/assistant/assistant-tasks.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-tasks.js.map +0 -1
- package/lib/browser/assistant/assistant-view.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-view.js.map +0 -1
- package/lib/browser/assistant/assistant.d.ts.map +0 -1
- package/lib/browser/assistant/assistant.js.map +0 -1
- package/lib/browser/assistant/assistant.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant.spec.js +0 -80
- package/lib/browser/assistant/assistant.spec.js.map +0 -1
- package/lib/browser/assistant/voice.d.ts +0 -15
- package/lib/browser/assistant/voice.d.ts.map +0 -1
- package/lib/browser/assistant/voice.js +0 -75
- package/lib/browser/assistant/voice.js.map +0 -1
- package/lib/browser/assistant/voice.spec.d.ts +0 -2
- package/lib/browser/assistant/voice.spec.d.ts.map +0 -1
- package/lib/browser/assistant/voice.spec.js +0 -10
- package/lib/browser/assistant/voice.spec.js.map +0 -1
- package/lib/browser/avatar/dino-avatar.d.ts.map +0 -1
- package/lib/browser/avatar/dino-avatar.js.map +0 -1
- package/lib/browser/avatar/dino-avatar.spec.d.ts +0 -2
- package/lib/browser/avatar/dino-avatar.spec.d.ts.map +0 -1
- package/lib/browser/avatar/dino-avatar.spec.js +0 -143
- package/lib/browser/avatar/dino-avatar.spec.js.map +0 -1
- package/lib/browser/avatar/dino-motion.d.ts.map +0 -1
- package/lib/browser/avatar/dino-motion.js.map +0 -1
- package/lib/browser/chat/chat-protocol.d.ts.map +0 -1
- package/lib/browser/chat/chat-protocol.js.map +0 -1
- package/lib/browser/chat/chat-view.d.ts.map +0 -1
- package/lib/browser/chat/chat-view.js.map +0 -1
- package/lib/browser/chat/chat.d.ts.map +0 -1
- package/lib/browser/chat/chat.js.map +0 -1
- package/lib/browser/chat/chat.spec.d.ts +0 -2
- package/lib/browser/chat/chat.spec.d.ts.map +0 -1
- package/lib/browser/chat/chat.spec.js +0 -185
- package/lib/browser/chat/chat.spec.js.map +0 -1
- package/lib/browser/components/account-menu.d.ts.map +0 -1
- package/lib/browser/components/account-menu.js.map +0 -1
- package/lib/browser/components/agent-settings-view.d.ts.map +0 -1
- package/lib/browser/components/agent-settings-view.js.map +0 -1
- package/lib/browser/components/app-view.d.ts.map +0 -1
- package/lib/browser/components/app-view.js.map +0 -1
- package/lib/browser/components/auth-pictures.d.ts.map +0 -1
- package/lib/browser/components/auth-pictures.js.map +0 -1
- package/lib/browser/components/auth-view.d.ts.map +0 -1
- package/lib/browser/components/auth-view.js.map +0 -1
- package/lib/browser/components/callout.d.ts.map +0 -1
- package/lib/browser/components/callout.js.map +0 -1
- package/lib/browser/components/chat-list.d.ts.map +0 -1
- package/lib/browser/components/chat-list.js.map +0 -1
- package/lib/browser/components/chat-list.spec.d.ts +0 -2
- package/lib/browser/components/chat-list.spec.d.ts.map +0 -1
- package/lib/browser/components/chat-list.spec.js +0 -61
- package/lib/browser/components/chat-list.spec.js.map +0 -1
- package/lib/browser/components/code-editor.d.ts.map +0 -1
- package/lib/browser/components/code-editor.js.map +0 -1
- package/lib/browser/components/composer-box.d.ts.map +0 -1
- package/lib/browser/components/composer-box.js.map +0 -1
- package/lib/browser/components/composer-menu.d.ts.map +0 -1
- package/lib/browser/components/composer-menu.js.map +0 -1
- package/lib/browser/components/composer.d.ts.map +0 -1
- package/lib/browser/components/composer.js.map +0 -1
- package/lib/browser/components/composer.spec.d.ts +0 -2
- package/lib/browser/components/composer.spec.d.ts.map +0 -1
- package/lib/browser/components/composer.spec.js +0 -129
- package/lib/browser/components/composer.spec.js.map +0 -1
- package/lib/browser/components/connection-bar.d.ts.map +0 -1
- package/lib/browser/components/connection-bar.js.map +0 -1
- package/lib/browser/components/context-menu.d.ts.map +0 -1
- package/lib/browser/components/context-menu.js.map +0 -1
- package/lib/browser/components/conversation-scroll.d.ts.map +0 -1
- package/lib/browser/components/conversation-scroll.js.map +0 -1
- package/lib/browser/components/dialog-view.d.ts.map +0 -1
- package/lib/browser/components/dialog-view.js.map +0 -1
- package/lib/browser/components/diff-editor.d.ts.map +0 -1
- package/lib/browser/components/diff-editor.js.map +0 -1
- package/lib/browser/components/diff-view.d.ts.map +0 -1
- package/lib/browser/components/diff-view.js.map +0 -1
- package/lib/browser/components/dino.d.ts.map +0 -1
- package/lib/browser/components/dino.js.map +0 -1
- package/lib/browser/components/editor-area.d.ts.map +0 -1
- package/lib/browser/components/editor-area.js.map +0 -1
- package/lib/browser/components/folder-picker.d.ts.map +0 -1
- package/lib/browser/components/folder-picker.js.map +0 -1
- package/lib/browser/components/folder-picker.spec.d.ts +0 -2
- package/lib/browser/components/folder-picker.spec.d.ts.map +0 -1
- package/lib/browser/components/folder-picker.spec.js +0 -43
- package/lib/browser/components/folder-picker.spec.js.map +0 -1
- package/lib/browser/components/fork-view.d.ts.map +0 -1
- package/lib/browser/components/fork-view.js.map +0 -1
- package/lib/browser/components/hero-cards.d.ts.map +0 -1
- package/lib/browser/components/hero-cards.js.map +0 -1
- package/lib/browser/components/icon.d.ts.map +0 -1
- package/lib/browser/components/icon.js.map +0 -1
- package/lib/browser/components/link-dialog.d.ts.map +0 -1
- package/lib/browser/components/link-dialog.js.map +0 -1
- package/lib/browser/components/link.d.ts.map +0 -1
- package/lib/browser/components/link.js.map +0 -1
- package/lib/browser/components/manage-menu.d.ts +0 -14
- package/lib/browser/components/manage-menu.d.ts.map +0 -1
- package/lib/browser/components/manage-menu.js +0 -132
- package/lib/browser/components/manage-menu.js.map +0 -1
- package/lib/browser/components/markdown.d.ts.map +0 -1
- package/lib/browser/components/markdown.js.map +0 -1
- package/lib/browser/components/markdown.spec.d.ts +0 -2
- package/lib/browser/components/markdown.spec.d.ts.map +0 -1
- package/lib/browser/components/markdown.spec.js +0 -72
- package/lib/browser/components/markdown.spec.js.map +0 -1
- package/lib/browser/components/math.d.ts.map +0 -1
- package/lib/browser/components/math.js.map +0 -1
- package/lib/browser/components/media.d.ts.map +0 -1
- package/lib/browser/components/media.js.map +0 -1
- package/lib/browser/components/mermaid-view.d.ts.map +0 -1
- package/lib/browser/components/mermaid-view.js.map +0 -1
- package/lib/browser/components/message-actions.d.ts.map +0 -1
- package/lib/browser/components/message-actions.js.map +0 -1
- package/lib/browser/components/message-footer.d.ts.map +0 -1
- package/lib/browser/components/message-footer.js.map +0 -1
- package/lib/browser/components/message-list.d.ts.map +0 -1
- package/lib/browser/components/message-list.js.map +0 -1
- package/lib/browser/components/message-list.spec.d.ts +0 -2
- package/lib/browser/components/message-list.spec.d.ts.map +0 -1
- package/lib/browser/components/message-list.spec.js +0 -269
- package/lib/browser/components/message-list.spec.js.map +0 -1
- package/lib/browser/components/notice-center.d.ts.map +0 -1
- package/lib/browser/components/notice-center.js.map +0 -1
- package/lib/browser/components/relay-view.d.ts.map +0 -1
- package/lib/browser/components/relay-view.js.map +0 -1
- package/lib/browser/components/remote-hosts.d.ts.map +0 -1
- package/lib/browser/components/remote-hosts.js.map +0 -1
- package/lib/browser/components/remote-prompts.d.ts.map +0 -1
- package/lib/browser/components/remote-prompts.js.map +0 -1
- package/lib/browser/components/run-status.d.ts.map +0 -1
- package/lib/browser/components/run-status.js.map +0 -1
- package/lib/browser/components/session-settings.d.ts.map +0 -1
- package/lib/browser/components/session-settings.js.map +0 -1
- package/lib/browser/components/session-settings.spec.d.ts +0 -2
- package/lib/browser/components/session-settings.spec.d.ts.map +0 -1
- package/lib/browser/components/session-settings.spec.js +0 -47
- package/lib/browser/components/session-settings.spec.js.map +0 -1
- package/lib/browser/components/session-view.d.ts.map +0 -1
- package/lib/browser/components/session-view.js.map +0 -1
- package/lib/browser/components/settings-controls.d.ts.map +0 -1
- package/lib/browser/components/settings-controls.js.map +0 -1
- package/lib/browser/components/settings-view.d.ts.map +0 -1
- package/lib/browser/components/settings-view.js.map +0 -1
- package/lib/browser/components/split-pane.d.ts.map +0 -1
- package/lib/browser/components/split-pane.js.map +0 -1
- package/lib/browser/components/ta-avatar.d.ts.map +0 -1
- package/lib/browser/components/ta-avatar.js.map +0 -1
- package/lib/browser/components/ta-avatar.spec.d.ts +0 -2
- package/lib/browser/components/ta-avatar.spec.d.ts.map +0 -1
- package/lib/browser/components/ta-avatar.spec.js +0 -60
- package/lib/browser/components/ta-avatar.spec.js.map +0 -1
- package/lib/browser/components/tool-view.d.ts.map +0 -1
- package/lib/browser/components/tool-view.js.map +0 -1
- package/lib/browser/components/trusted-domains.d.ts.map +0 -1
- package/lib/browser/components/trusted-domains.js.map +0 -1
- package/lib/browser/components/web-composer.d.ts.map +0 -1
- package/lib/browser/components/web-composer.js.map +0 -1
- package/lib/browser/components/web-dialog.d.ts.map +0 -1
- package/lib/browser/components/web-dialog.js.map +0 -1
- package/lib/browser/components/workbench-toggle.d.ts.map +0 -1
- package/lib/browser/components/workbench-toggle.js.map +0 -1
- package/lib/browser/components/workbench-toggle.spec.d.ts +0 -2
- package/lib/browser/components/workbench-toggle.spec.d.ts.map +0 -1
- package/lib/browser/components/workbench-toggle.spec.js +0 -64
- package/lib/browser/components/workbench-toggle.spec.js.map +0 -1
- package/lib/browser/components/workbench-view.d.ts.map +0 -1
- package/lib/browser/components/workbench-view.js.map +0 -1
- package/lib/browser/components/working-directory.d.ts.map +0 -1
- package/lib/browser/components/working-directory.js.map +0 -1
- package/lib/browser/editor/monaco-loader.d.ts.map +0 -1
- package/lib/browser/editor/monaco-loader.js.map +0 -1
- package/lib/browser/editor/monaco-loader.spec.d.ts +0 -2
- package/lib/browser/editor/monaco-loader.spec.d.ts.map +0 -1
- package/lib/browser/editor/monaco-loader.spec.js +0 -39
- package/lib/browser/editor/monaco-loader.spec.js.map +0 -1
- package/lib/browser/editor/monaco.d.ts.map +0 -1
- package/lib/browser/editor/monaco.js.map +0 -1
- package/lib/browser/extension/extension-view.d.ts.map +0 -1
- package/lib/browser/extension/extension-view.js.map +0 -1
- package/lib/browser/extension/icons.d.ts.map +0 -1
- package/lib/browser/extension/icons.js.map +0 -1
- package/lib/browser/extension/web-extension-api.d.ts.map +0 -1
- package/lib/browser/extension/web-extension-api.js.map +0 -1
- package/lib/browser/extension/web-extension-protocol.d.ts.map +0 -1
- package/lib/browser/extension/web-extension-protocol.js.map +0 -1
- package/lib/browser/extension/web-extensions.d.ts.map +0 -1
- package/lib/browser/extension/web-extensions.js.map +0 -1
- package/lib/browser/extension/web-extensions.spec.d.ts +0 -2
- package/lib/browser/extension/web-extensions.spec.d.ts.map +0 -1
- package/lib/browser/extension/web-extensions.spec.js +0 -617
- package/lib/browser/extension/web-extensions.spec.js.map +0 -1
- package/lib/browser/hooks.d.ts.map +0 -1
- package/lib/browser/hooks.js.map +0 -1
- package/lib/browser/i18n/locales.d.ts.map +0 -1
- package/lib/browser/i18n/locales.js.map +0 -1
- package/lib/browser/i18n/messages.d.ts.map +0 -1
- package/lib/browser/i18n/messages.js.map +0 -1
- package/lib/browser/i18n/use-t.d.ts.map +0 -1
- package/lib/browser/i18n/use-t.js.map +0 -1
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/links/links-protocol.d.ts.map +0 -1
- package/lib/browser/links/links-protocol.js.map +0 -1
- package/lib/browser/links/links.d.ts.map +0 -1
- package/lib/browser/links/links.js.map +0 -1
- package/lib/browser/links/links.spec.d.ts +0 -2
- package/lib/browser/links/links.spec.d.ts.map +0 -1
- package/lib/browser/links/links.spec.js +0 -123
- package/lib/browser/links/links.spec.js.map +0 -1
- package/lib/browser/markdown/hooks.d.ts.map +0 -1
- package/lib/browser/markdown/hooks.js.map +0 -1
- package/lib/browser/markdown/lazy.d.ts.map +0 -1
- package/lib/browser/markdown/lazy.js.map +0 -1
- package/lib/browser/markdown/lazy.spec.d.ts +0 -2
- package/lib/browser/markdown/lazy.spec.d.ts.map +0 -1
- package/lib/browser/markdown/lazy.spec.js +0 -35
- package/lib/browser/markdown/lazy.spec.js.map +0 -1
- package/lib/browser/markdown/math.d.ts.map +0 -1
- package/lib/browser/markdown/math.js.map +0 -1
- package/lib/browser/markdown/math.spec.d.ts +0 -2
- package/lib/browser/markdown/math.spec.d.ts.map +0 -1
- package/lib/browser/markdown/math.spec.js +0 -24
- package/lib/browser/markdown/math.spec.js.map +0 -1
- package/lib/browser/markdown/mermaid.d.ts.map +0 -1
- package/lib/browser/markdown/mermaid.js.map +0 -1
- package/lib/browser/markdown/mermaid.spec.d.ts +0 -2
- package/lib/browser/markdown/mermaid.spec.d.ts.map +0 -1
- package/lib/browser/markdown/mermaid.spec.js +0 -21
- package/lib/browser/markdown/mermaid.spec.js.map +0 -1
- package/lib/browser/module.d.ts.map +0 -1
- package/lib/browser/module.js.map +0 -1
- package/lib/browser/notices/notices-protocol.d.ts.map +0 -1
- package/lib/browser/notices/notices-protocol.js.map +0 -1
- package/lib/browser/notices/notices.d.ts.map +0 -1
- package/lib/browser/notices/notices.js.map +0 -1
- package/lib/browser/notices/notices.spec.d.ts +0 -2
- package/lib/browser/notices/notices.spec.d.ts.map +0 -1
- package/lib/browser/notices/notices.spec.js +0 -96
- package/lib/browser/notices/notices.spec.js.map +0 -1
- package/lib/browser/pwa/pwa-protocol.d.ts.map +0 -1
- package/lib/browser/pwa/pwa-protocol.js.map +0 -1
- package/lib/browser/pwa/pwa.d.ts.map +0 -1
- package/lib/browser/pwa/pwa.js.map +0 -1
- package/lib/browser/pwa/pwa.spec.d.ts +0 -2
- package/lib/browser/pwa/pwa.spec.d.ts.map +0 -1
- package/lib/browser/pwa/pwa.spec.js +0 -134
- package/lib/browser/pwa/pwa.spec.js.map +0 -1
- package/lib/browser/settings/agent-settings.d.ts.map +0 -1
- package/lib/browser/settings/agent-settings.js.map +0 -1
- package/lib/browser/settings/agent-settings.spec.d.ts +0 -2
- package/lib/browser/settings/agent-settings.spec.d.ts.map +0 -1
- package/lib/browser/settings/agent-settings.spec.js +0 -53
- package/lib/browser/settings/agent-settings.spec.js.map +0 -1
- package/lib/browser/settings/settings-protocol.d.ts.map +0 -1
- package/lib/browser/settings/settings-protocol.js.map +0 -1
- package/lib/browser/settings/settings.d.ts.map +0 -1
- package/lib/browser/settings/settings.js.map +0 -1
- package/lib/browser/settings/settings.spec.d.ts +0 -2
- package/lib/browser/settings/settings.spec.d.ts.map +0 -1
- package/lib/browser/settings/settings.spec.js +0 -32
- package/lib/browser/settings/settings.spec.js.map +0 -1
- package/lib/browser/state/state-protocol.d.ts.map +0 -1
- package/lib/browser/state/state-protocol.js.map +0 -1
- package/lib/browser/state/state.d.ts.map +0 -1
- package/lib/browser/state/state.js.map +0 -1
- package/lib/browser/state/state.spec.d.ts +0 -2
- package/lib/browser/state/state.spec.d.ts.map +0 -1
- package/lib/browser/state/state.spec.js +0 -201
- package/lib/browser/state/state.spec.js.map +0 -1
- package/lib/browser/style/base.d.ts.map +0 -1
- package/lib/browser/style/base.js.map +0 -1
- package/lib/browser/style/conversation.d.ts.map +0 -1
- package/lib/browser/style/conversation.js.map +0 -1
- package/lib/browser/style/layout.d.ts.map +0 -1
- package/lib/browser/style/layout.js.map +0 -1
- package/lib/browser/style/pages.d.ts.map +0 -1
- package/lib/browser/style/pages.js.map +0 -1
- package/lib/browser/style/shell.d.ts.map +0 -1
- package/lib/browser/style/shell.js.map +0 -1
- package/lib/browser/style.d.ts.map +0 -1
- package/lib/browser/style.js.map +0 -1
- package/lib/browser/util/composer.d.ts.map +0 -1
- package/lib/browser/util/composer.js.map +0 -1
- package/lib/browser/util/composer.spec.d.ts +0 -2
- package/lib/browser/util/composer.spec.d.ts.map +0 -1
- package/lib/browser/util/composer.spec.js +0 -66
- package/lib/browser/util/composer.spec.js.map +0 -1
- package/lib/browser/util/diff.d.ts.map +0 -1
- package/lib/browser/util/diff.js.map +0 -1
- package/lib/browser/util/diff.spec.d.ts +0 -2
- package/lib/browser/util/diff.spec.d.ts.map +0 -1
- package/lib/browser/util/diff.spec.js +0 -21
- package/lib/browser/util/diff.spec.js.map +0 -1
- package/lib/browser/util/frame.d.ts.map +0 -1
- package/lib/browser/util/frame.js.map +0 -1
- package/lib/browser/util/frame.spec.d.ts +0 -2
- package/lib/browser/util/frame.spec.d.ts.map +0 -1
- package/lib/browser/util/frame.spec.js +0 -60
- package/lib/browser/util/frame.spec.js.map +0 -1
- package/lib/browser/util/layout.d.ts.map +0 -1
- package/lib/browser/util/layout.js.map +0 -1
- package/lib/browser/util/layout.spec.d.ts +0 -2
- package/lib/browser/util/layout.spec.d.ts.map +0 -1
- package/lib/browser/util/layout.spec.js +0 -35
- package/lib/browser/util/layout.spec.js.map +0 -1
- package/lib/browser/util/link.d.ts.map +0 -1
- package/lib/browser/util/link.js.map +0 -1
- package/lib/browser/util/link.spec.d.ts +0 -2
- package/lib/browser/util/link.spec.d.ts.map +0 -1
- package/lib/browser/util/link.spec.js +0 -101
- package/lib/browser/util/link.spec.js.map +0 -1
- package/lib/browser/util/markdown.d.ts.map +0 -1
- package/lib/browser/util/markdown.js.map +0 -1
- package/lib/browser/util/markdown.spec.d.ts +0 -2
- package/lib/browser/util/markdown.spec.d.ts.map +0 -1
- package/lib/browser/util/markdown.spec.js +0 -124
- package/lib/browser/util/markdown.spec.js.map +0 -1
- package/lib/browser/util/message.d.ts.map +0 -1
- package/lib/browser/util/message.js.map +0 -1
- package/lib/browser/util/message.spec.d.ts +0 -2
- package/lib/browser/util/message.spec.d.ts.map +0 -1
- package/lib/browser/util/message.spec.js +0 -61
- package/lib/browser/util/message.spec.js.map +0 -1
- package/lib/browser/util/process.d.ts.map +0 -1
- package/lib/browser/util/process.js.map +0 -1
- package/lib/browser/util/process.spec.d.ts +0 -2
- package/lib/browser/util/process.spec.d.ts.map +0 -1
- package/lib/browser/util/process.spec.js +0 -106
- package/lib/browser/util/process.spec.js.map +0 -1
- package/lib/browser/util/progress.d.ts.map +0 -1
- package/lib/browser/util/progress.js.map +0 -1
- package/lib/browser/util/progress.spec.d.ts +0 -2
- package/lib/browser/util/progress.spec.d.ts.map +0 -1
- package/lib/browser/util/progress.spec.js +0 -77
- package/lib/browser/util/progress.spec.js.map +0 -1
- package/lib/browser/util/qr-code.d.ts +0 -38
- package/lib/browser/util/qr-code.d.ts.map +0 -1
- package/lib/browser/util/qr-code.js +0 -353
- package/lib/browser/util/qr-code.js.map +0 -1
- package/lib/browser/util/qr-code.spec.d.ts +0 -2
- package/lib/browser/util/qr-code.spec.d.ts.map +0 -1
- package/lib/browser/util/qr-code.spec.js +0 -48
- package/lib/browser/util/qr-code.spec.js.map +0 -1
- package/lib/browser/util/tool.d.ts.map +0 -1
- package/lib/browser/util/tool.js.map +0 -1
- package/lib/browser/util/tool.spec.d.ts +0 -2
- package/lib/browser/util/tool.spec.d.ts.map +0 -1
- package/lib/browser/util/tool.spec.js +0 -73
- package/lib/browser/util/tool.spec.js.map +0 -1
- package/lib/browser/view.d.ts.map +0 -1
- package/lib/browser/view.js.map +0 -1
- package/lib/browser/workbench-protocol.d.ts.map +0 -1
- package/lib/browser/workbench-protocol.js.map +0 -1
- package/lib/browser/workbench.d.ts.map +0 -1
- package/lib/browser/workbench.js.map +0 -1
- package/lib/browser/workbench.spec.d.ts +0 -2
- package/lib/browser/workbench.spec.d.ts.map +0 -1
- package/lib/browser/workbench.spec.js +0 -34
- package/lib/browser/workbench.spec.js.map +0 -1
- package/src/browser/assistant/assistant-export.spec.ts +0 -30
- package/src/browser/assistant/assistant-export.ts +0 -41
- package/src/browser/assistant/assistant-extension.spec.ts +0 -122
- package/src/browser/assistant/assistant-extension.ts +0 -137
- package/src/browser/assistant/assistant-hooks.ts +0 -63
- package/src/browser/assistant/assistant-protocol.ts +0 -55
- package/src/browser/assistant/assistant-tasks.tsx +0 -194
- package/src/browser/assistant/assistant-view.tsx +0 -453
- package/src/browser/assistant/assistant.spec.ts +0 -80
- package/src/browser/assistant/assistant.ts +0 -315
- package/src/browser/assistant/voice.spec.ts +0 -8
- package/src/browser/assistant/voice.ts +0 -87
- package/src/browser/avatar/dino-avatar.spec.ts +0 -151
- package/src/browser/avatar/dino-avatar.ts +0 -541
- package/src/browser/avatar/dino-motion.ts +0 -313
- package/src/browser/chat/chat-protocol.ts +0 -47
- package/src/browser/chat/chat-view.tsx +0 -155
- package/src/browser/chat/chat.spec.ts +0 -194
- package/src/browser/chat/chat.ts +0 -335
- package/src/browser/components/account-menu.tsx +0 -117
- package/src/browser/components/agent-settings-view.tsx +0 -196
- package/src/browser/components/app-view.tsx +0 -555
- package/src/browser/components/auth-pictures.tsx +0 -55
- package/src/browser/components/auth-view.tsx +0 -421
- package/src/browser/components/callout.tsx +0 -33
- package/src/browser/components/chat-list.spec.ts +0 -66
- package/src/browser/components/chat-list.tsx +0 -283
- package/src/browser/components/code-editor.tsx +0 -114
- package/src/browser/components/composer-box.tsx +0 -475
- package/src/browser/components/composer-menu.tsx +0 -49
- package/src/browser/components/composer.spec.tsx +0 -130
- package/src/browser/components/composer.tsx +0 -170
- package/src/browser/components/connection-bar.tsx +0 -85
- package/src/browser/components/context-menu.tsx +0 -100
- package/src/browser/components/conversation-scroll.ts +0 -126
- package/src/browser/components/dialog-view.tsx +0 -82
- package/src/browser/components/diff-editor.tsx +0 -131
- package/src/browser/components/diff-view.tsx +0 -19
- package/src/browser/components/dino.tsx +0 -19
- package/src/browser/components/editor-area.tsx +0 -234
- package/src/browser/components/folder-picker.spec.ts +0 -47
- package/src/browser/components/folder-picker.tsx +0 -359
- package/src/browser/components/fork-view.tsx +0 -65
- package/src/browser/components/hero-cards.tsx +0 -189
- package/src/browser/components/icon.tsx +0 -62
- package/src/browser/components/link-dialog.tsx +0 -66
- package/src/browser/components/link.tsx +0 -77
- package/src/browser/components/manage-menu.tsx +0 -165
- package/src/browser/components/markdown.spec.tsx +0 -46
- package/src/browser/components/markdown.tsx +0 -155
- package/src/browser/components/math.tsx +0 -21
- package/src/browser/components/media.tsx +0 -91
- package/src/browser/components/mermaid-view.tsx +0 -105
- package/src/browser/components/message-actions.tsx +0 -89
- package/src/browser/components/message-footer.tsx +0 -128
- package/src/browser/components/message-list.spec.tsx +0 -321
- package/src/browser/components/message-list.tsx +0 -328
- package/src/browser/components/notice-center.tsx +0 -187
- package/src/browser/components/relay-view.tsx +0 -146
- package/src/browser/components/remote-hosts.tsx +0 -149
- package/src/browser/components/remote-prompts.tsx +0 -111
- package/src/browser/components/run-status.tsx +0 -70
- package/src/browser/components/session-settings.spec.tsx +0 -49
- package/src/browser/components/session-settings.tsx +0 -119
- package/src/browser/components/session-view.tsx +0 -153
- package/src/browser/components/settings-controls.tsx +0 -94
- package/src/browser/components/settings-view.tsx +0 -581
- package/src/browser/components/split-pane.tsx +0 -108
- package/src/browser/components/ta-avatar.spec.tsx +0 -27
- package/src/browser/components/ta-avatar.tsx +0 -251
- package/src/browser/components/tool-view.tsx +0 -186
- package/src/browser/components/trusted-domains.tsx +0 -60
- package/src/browser/components/web-composer.tsx +0 -61
- package/src/browser/components/web-dialog.tsx +0 -29
- package/src/browser/components/workbench-toggle.spec.tsx +0 -35
- package/src/browser/components/workbench-toggle.tsx +0 -24
- package/src/browser/components/workbench-view.tsx +0 -77
- package/src/browser/components/working-directory.tsx +0 -22
- package/src/browser/editor/monaco-loader.spec.ts +0 -39
- package/src/browser/editor/monaco-loader.ts +0 -139
- package/src/browser/editor/monaco.ts +0 -55
- package/src/browser/editor/worker-modules.d.ts +0 -5
- package/src/browser/extension/extension-view.tsx +0 -78
- package/src/browser/extension/icons.ts +0 -165
- package/src/browser/extension/web-extension-api.ts +0 -348
- package/src/browser/extension/web-extension-protocol.ts +0 -154
- package/src/browser/extension/web-extensions.spec.ts +0 -597
- package/src/browser/extension/web-extensions.ts +0 -727
- package/src/browser/hooks.ts +0 -102
- package/src/browser/i18n/locales.ts +0 -20
- package/src/browser/i18n/messages.ts +0 -926
- package/src/browser/i18n/use-t.ts +0 -21
- package/src/browser/index.ts +0 -52
- package/src/browser/links/links-protocol.ts +0 -41
- package/src/browser/links/links.spec.ts +0 -132
- package/src/browser/links/links.ts +0 -127
- package/src/browser/markdown/hooks.ts +0 -32
- package/src/browser/markdown/lazy.spec.ts +0 -34
- package/src/browser/markdown/lazy.ts +0 -46
- package/src/browser/markdown/math.spec.ts +0 -20
- package/src/browser/markdown/math.ts +0 -33
- package/src/browser/markdown/mermaid.spec.ts +0 -21
- package/src/browser/markdown/mermaid.ts +0 -89
- package/src/browser/markdown/style-modules.d.ts +0 -2
- package/src/browser/module.ts +0 -6
- package/src/browser/notices/notices-protocol.ts +0 -92
- package/src/browser/notices/notices.spec.ts +0 -99
- package/src/browser/notices/notices.ts +0 -173
- package/src/browser/pwa/pwa-protocol.ts +0 -22
- package/src/browser/pwa/pwa.spec.ts +0 -143
- package/src/browser/pwa/pwa.ts +0 -123
- package/src/browser/settings/agent-settings.spec.ts +0 -56
- package/src/browser/settings/agent-settings.ts +0 -96
- package/src/browser/settings/settings-protocol.ts +0 -75
- package/src/browser/settings/settings.spec.ts +0 -31
- package/src/browser/settings/settings.ts +0 -89
- package/src/browser/state/state-protocol.ts +0 -71
- package/src/browser/state/state.spec.ts +0 -214
- package/src/browser/state/state.ts +0 -217
- package/src/browser/style/base.ts +0 -144
- package/src/browser/style/conversation.ts +0 -200
- package/src/browser/style/layout.ts +0 -403
- package/src/browser/style/pages.ts +0 -74
- package/src/browser/style/shell.ts +0 -235
- package/src/browser/style.ts +0 -11
- package/src/browser/util/composer.spec.ts +0 -71
- package/src/browser/util/composer.ts +0 -157
- package/src/browser/util/diff.spec.ts +0 -20
- package/src/browser/util/diff.ts +0 -33
- package/src/browser/util/frame.spec.ts +0 -62
- package/src/browser/util/frame.ts +0 -54
- package/src/browser/util/layout.spec.ts +0 -37
- package/src/browser/util/layout.ts +0 -71
- package/src/browser/util/link.spec.ts +0 -104
- package/src/browser/util/link.ts +0 -237
- package/src/browser/util/markdown.spec.ts +0 -133
- package/src/browser/util/markdown.ts +0 -347
- package/src/browser/util/message.spec.ts +0 -65
- package/src/browser/util/message.ts +0 -191
- package/src/browser/util/process.spec.ts +0 -133
- package/src/browser/util/process.ts +0 -166
- package/src/browser/util/progress.spec.ts +0 -86
- package/src/browser/util/progress.ts +0 -170
- package/src/browser/util/qr-code.spec.ts +0 -49
- package/src/browser/util/qr-code.ts +0 -371
- package/src/browser/util/tool.spec.ts +0 -78
- package/src/browser/util/tool.ts +0 -190
- package/src/browser/view.ts +0 -6
- package/src/browser/workbench-protocol.ts +0 -74
- package/src/browser/workbench.spec.ts +0 -37
- package/src/browser/workbench.ts +0 -326
- /package/{src/browser/public → public}/icons/apple-touch-icon.png +0 -0
- /package/{src/browser/public → public}/icons/icon-192.png +0 -0
- /package/{src/browser/public → public}/icons/icon-512.png +0 -0
- /package/{src/browser/public → public}/icons/icon.svg +0 -0
- /package/{src/browser/public → public}/icons/maskable-512.png +0 -0
- /package/{src/browser/public → public}/manifest.webmanifest +0 -0
- /package/{src/browser/public → public}/sw.js +0 -0
|
@@ -3,8 +3,31 @@ import * as React from 'react';
|
|
|
3
3
|
export type ContextMenuItem = '-' | {
|
|
4
4
|
label: string;
|
|
5
5
|
run(): void;
|
|
6
|
-
disabled?: boolean
|
|
6
|
+
disabled?: boolean /** Cannot be undone, as delete: drawn in red. */;
|
|
7
|
+
danger?: boolean;
|
|
7
8
|
};
|
|
9
|
+
export declare namespace ContextMenuUtil {
|
|
10
|
+
/**
|
|
11
|
+
* Where a menu of `size` goes for a click at `at`: its corner at the pointer, as a browser's; above a finger
|
|
12
|
+
* (below when there is no room), centred on it, as the menus of a phone. Always on the screen.
|
|
13
|
+
*/
|
|
14
|
+
function place(at: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}, size: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
}, screen: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}, touch: boolean, safe?: {
|
|
24
|
+
top: number;
|
|
25
|
+
bottom: number;
|
|
26
|
+
}): {
|
|
27
|
+
left: number;
|
|
28
|
+
top: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
8
31
|
/**
|
|
9
32
|
* A context menu at the pointer, as a browser's tabs have: arrows move, Enter runs, Escape or a click
|
|
10
33
|
* elsewhere closes. `open` takes the event of a right click (or of the menu key) and the entries.
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Device } from '../device/device.js';
|
|
3
|
+
export var ContextMenuUtil;
|
|
4
|
+
(function (ContextMenuUtil) {
|
|
5
|
+
/** Between a finger and the menu it opened: the finger does not cover it. */
|
|
6
|
+
const FINGER_GAP = 14;
|
|
7
|
+
/**
|
|
8
|
+
* Where a menu of `size` goes for a click at `at`: its corner at the pointer, as a browser's; above a finger
|
|
9
|
+
* (below when there is no room), centred on it, as the menus of a phone. Always on the screen.
|
|
10
|
+
*/
|
|
11
|
+
function place(at, size, screen, touch, safe = { top: 0, bottom: 0 }) {
|
|
12
|
+
const clamp = (value, max) => Math.max(4, Math.min(value, max - 4));
|
|
13
|
+
if (touch) {
|
|
14
|
+
const left = clamp(at.x - size.width / 2, screen.width - size.width);
|
|
15
|
+
const above = at.y - FINGER_GAP - size.height;
|
|
16
|
+
// Not under the status bar nor the home indicator.
|
|
17
|
+
const top = above >= safe.top + 4 ? above : Math.max(safe.top + 4, Math.min(at.y + FINGER_GAP, screen.height - safe.bottom - size.height - 4));
|
|
18
|
+
return { left, top };
|
|
19
|
+
}
|
|
20
|
+
const left = clamp(at.x, screen.width - size.width);
|
|
21
|
+
const top = at.y + size.height > screen.height - 4 ? Math.max(4, at.y - size.height) : at.y;
|
|
22
|
+
return { left, top };
|
|
23
|
+
}
|
|
24
|
+
ContextMenuUtil.place = place;
|
|
25
|
+
})(ContextMenuUtil || (ContextMenuUtil = {}));
|
|
2
26
|
/**
|
|
3
27
|
* A context menu at the pointer, as a browser's tabs have: arrows move, Enter runs, Escape or a click
|
|
4
28
|
* elsewhere closes. `open` takes the event of a right click (or of the menu key) and the entries.
|
|
@@ -19,16 +43,20 @@ export function useContextMenu() {
|
|
|
19
43
|
}
|
|
20
44
|
function ContextMenu({ x, y, items, onClose }) {
|
|
21
45
|
const root = React.useRef(null);
|
|
22
|
-
|
|
46
|
+
// Measured where it has the whole width, not squeezed against the edge it may open by; then placed.
|
|
47
|
+
const [place, setPlace] = React.useState({ left: 0, top: 0, ready: false });
|
|
23
48
|
React.useLayoutEffect(() => {
|
|
24
|
-
var _a, _b
|
|
25
|
-
const
|
|
49
|
+
var _a, _b;
|
|
50
|
+
const element = root.current;
|
|
51
|
+
// Its size without the scale it comes in with.
|
|
52
|
+
const box = element && { width: element.offsetWidth, height: element.offsetHeight };
|
|
26
53
|
if (box) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
54
|
+
setPlace({
|
|
55
|
+
...ContextMenuUtil.place({ x, y }, box, { width: window.innerWidth, height: window.innerHeight }, Device.state.touch, Device.safeArea()),
|
|
56
|
+
ready: true,
|
|
57
|
+
});
|
|
30
58
|
}
|
|
31
|
-
(
|
|
59
|
+
(_b = (_a = root.current) === null || _a === void 0 ? void 0 : _a.querySelector('button:not(:disabled)')) === null || _b === void 0 ? void 0 : _b.focus();
|
|
32
60
|
}, [x, y]);
|
|
33
61
|
React.useEffect(() => {
|
|
34
62
|
const onPointer = (event) => {
|
|
@@ -60,7 +88,7 @@ function ContextMenu({ x, y, items, onClose }) {
|
|
|
60
88
|
const at = buttons.indexOf(document.activeElement);
|
|
61
89
|
(_b = buttons[(at + (event.key === 'ArrowDown' ? 1 : buttons.length - 1)) % buttons.length]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
62
90
|
};
|
|
63
|
-
return (React.createElement("div", { ref: root, className: "ta-context-menu", role: "menu", style: { left: place.left, top: place.top, visibility: place.ready ? 'visible' : 'hidden' }, onKeyDown: onKeyDown, onContextMenu: event => event.preventDefault() }, items.map((item, index) => item === '-' ? (React.createElement("hr", { key: `-${index}`, className: "ta-context-menu-line" })) : (React.createElement("button", { key: item.label, type: "button", role: "menuitem", className:
|
|
91
|
+
return (React.createElement("div", { ref: root, className: "ta-context-menu", role: "menu", style: { left: place.left, top: place.top, visibility: place.ready ? 'visible' : 'hidden' }, onKeyDown: onKeyDown, onContextMenu: event => event.preventDefault() }, items.map((item, index) => item === '-' ? (React.createElement("hr", { key: `-${index}`, className: "ta-context-menu-line" })) : (React.createElement("button", { key: item.label, type: "button", role: "menuitem", className: `ta-context-menu-item${item.danger ? ' ta-danger' : ''}`, disabled: item.disabled, onClick: () => {
|
|
64
92
|
onClose();
|
|
65
93
|
item.run();
|
|
66
94
|
} }, item.label)))));
|
|
@@ -5,9 +5,11 @@ export declare const ASK_CLASS = "ta-thread-ask";
|
|
|
5
5
|
* The scrolling of a conversation, whose thread is the first child of the element of the returned ref.
|
|
6
6
|
* A message the user sends goes to the top of the view, and the answer comes in under it: the thread
|
|
7
7
|
* keeps the room for that until the answer fills it. Past that, the view follows what comes in while it
|
|
8
|
-
* is at the bottom, after layout, on a change of the size of the thread rather than of the state.
|
|
8
|
+
* is at the bottom, after layout, on a change of the size of the thread or of the view rather than of the state.
|
|
9
9
|
* Opened, and when messages of the user go (a rewind), the view goes to the bottom.
|
|
10
10
|
*
|
|
11
11
|
* `asked`: how many messages of the user there are; the thread marks them with ASK_CLASS.
|
|
12
12
|
*/
|
|
13
13
|
export declare function useConversationScroll(asked: number): React.RefObject<HTMLDivElement | null>;
|
|
14
|
+
/** Whether the conversation of `ref` is scrolled up from its latest, and a way back to it. */
|
|
15
|
+
export declare function useAwayFromBottom(ref: React.RefObject<HTMLDivElement | null>): [boolean, () => void];
|
|
@@ -9,7 +9,7 @@ function calm() {
|
|
|
9
9
|
* The scrolling of a conversation, whose thread is the first child of the element of the returned ref.
|
|
10
10
|
* A message the user sends goes to the top of the view, and the answer comes in under it: the thread
|
|
11
11
|
* keeps the room for that until the answer fills it. Past that, the view follows what comes in while it
|
|
12
|
-
* is at the bottom, after layout, on a change of the size of the thread rather than of the state.
|
|
12
|
+
* is at the bottom, after layout, on a change of the size of the thread or of the view rather than of the state.
|
|
13
13
|
* Opened, and when messages of the user go (a rewind), the view goes to the bottom.
|
|
14
14
|
*
|
|
15
15
|
* `asked`: how many messages of the user there are; the thread marks them with ASK_CLASS.
|
|
@@ -22,14 +22,23 @@ export function useConversationScroll(asked) {
|
|
|
22
22
|
// The message sent last, kept at the top until the user scrolls: rows above it may still change their height.
|
|
23
23
|
const anchored = React.useRef(undefined);
|
|
24
24
|
const before = React.useRef(undefined);
|
|
25
|
+
// The user scrolled since the view went to the bottom: until then, a scroll is the page moving under it.
|
|
26
|
+
const touched = React.useRef(false);
|
|
25
27
|
React.useEffect(() => {
|
|
26
28
|
const element = ref.current;
|
|
27
29
|
if (!element) {
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
32
|
+
let height = element.clientHeight;
|
|
30
33
|
const onScroll = () => {
|
|
34
|
+
// The view shrank or grew (the keyboard of a phone, a turn of it): where it is follows from the resize, not the user.
|
|
35
|
+
if (element.clientHeight !== height) {
|
|
36
|
+
height = element.clientHeight;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
31
39
|
if (heading.current === undefined) {
|
|
32
|
-
|
|
40
|
+
// Rows above that take their height as they come into view (content-visibility) move the view, not the user.
|
|
41
|
+
stuck.current = FrameUtil.atBottom(element) || (stuck.current && !touched.current);
|
|
33
42
|
}
|
|
34
43
|
else if (Math.abs(element.scrollTop - heading.current) < 1) {
|
|
35
44
|
// There: from now on the view follows the answer as it grows past the bottom.
|
|
@@ -38,7 +47,11 @@ export function useConversationScroll(asked) {
|
|
|
38
47
|
}
|
|
39
48
|
};
|
|
40
49
|
// The user scrolls: a smooth scroll on its way stops, and where the view is says whether it follows.
|
|
41
|
-
const onInput = () => {
|
|
50
|
+
const onInput = (event) => {
|
|
51
|
+
// A tap is not a scroll: only a wheel, a drag or a key moves the view away from the bottom.
|
|
52
|
+
if (event.type !== 'touchstart' && event.type !== 'pointerdown') {
|
|
53
|
+
touched.current = true;
|
|
54
|
+
}
|
|
42
55
|
heading.current = undefined;
|
|
43
56
|
anchored.current = undefined;
|
|
44
57
|
};
|
|
@@ -49,7 +62,7 @@ export function useConversationScroll(asked) {
|
|
|
49
62
|
stuck.current = true;
|
|
50
63
|
}
|
|
51
64
|
};
|
|
52
|
-
const inputs = ['wheel', 'touchstart', 'pointerdown', 'keydown'];
|
|
65
|
+
const inputs = ['wheel', 'touchstart', 'touchmove', 'pointerdown', 'keydown'];
|
|
53
66
|
element.addEventListener('scroll', onScroll, { passive: true });
|
|
54
67
|
element.addEventListener('scrollend', onScrollEnd);
|
|
55
68
|
for (const input of inputs) {
|
|
@@ -76,6 +89,8 @@ export function useConversationScroll(asked) {
|
|
|
76
89
|
: undefined;
|
|
77
90
|
if (content) {
|
|
78
91
|
observer === null || observer === void 0 ? void 0 : observer.observe(content);
|
|
92
|
+
// The view itself shrinks under what comes above the message box (the files changed, the keyboard of a phone).
|
|
93
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(element);
|
|
79
94
|
}
|
|
80
95
|
return () => {
|
|
81
96
|
element.removeEventListener('scroll', onScroll);
|
|
@@ -98,6 +113,7 @@ export function useConversationScroll(asked) {
|
|
|
98
113
|
const asks = sent ? content.getElementsByClassName(ASK_CLASS) : undefined;
|
|
99
114
|
const message = asks === null || asks === void 0 ? void 0 : asks[asks.length - 1];
|
|
100
115
|
anchored.current = message;
|
|
116
|
+
touched.current = false;
|
|
101
117
|
if (!message) {
|
|
102
118
|
content.style.minHeight = '';
|
|
103
119
|
heading.current = undefined;
|
|
@@ -118,4 +134,40 @@ export function useConversationScroll(asked) {
|
|
|
118
134
|
}, [asked]);
|
|
119
135
|
return ref;
|
|
120
136
|
}
|
|
137
|
+
/** Away from the bottom by more than half of the view: the button back to the latest shows. */
|
|
138
|
+
const AWAY_SHARE = 0.5;
|
|
139
|
+
/** Lower than this (a phone held sideways, its keyboard open) the view has no room for the button. */
|
|
140
|
+
const AWAY_MIN_PX = 240;
|
|
141
|
+
/** Whether the conversation of `ref` is scrolled up from its latest, and a way back to it. */
|
|
142
|
+
export function useAwayFromBottom(ref) {
|
|
143
|
+
const [away, setAway] = React.useState(false);
|
|
144
|
+
React.useEffect(() => {
|
|
145
|
+
const element = ref.current;
|
|
146
|
+
if (!element) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
let frame = 0;
|
|
150
|
+
const measure = () => {
|
|
151
|
+
cancelAnimationFrame(frame);
|
|
152
|
+
frame = requestAnimationFrame(() => {
|
|
153
|
+
const { scrollHeight, scrollTop, clientHeight } = element;
|
|
154
|
+
setAway(clientHeight >= AWAY_MIN_PX && scrollHeight - scrollTop - clientHeight > clientHeight * AWAY_SHARE);
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
element.addEventListener('scroll', measure, { passive: true });
|
|
158
|
+
// The keyboard and a turn of the phone change the height of the view, not where it is.
|
|
159
|
+
const observer = typeof ResizeObserver !== 'undefined' ? new ResizeObserver(measure) : undefined;
|
|
160
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(element);
|
|
161
|
+
return () => {
|
|
162
|
+
cancelAnimationFrame(frame);
|
|
163
|
+
observer === null || observer === void 0 ? void 0 : observer.disconnect();
|
|
164
|
+
element.removeEventListener('scroll', measure);
|
|
165
|
+
};
|
|
166
|
+
}, [ref]);
|
|
167
|
+
const back = React.useCallback(() => {
|
|
168
|
+
const element = ref.current;
|
|
169
|
+
element === null || element === void 0 ? void 0 : element.scrollTo({ top: element.scrollHeight, behavior: calm() ? 'auto' : 'smooth' });
|
|
170
|
+
}, [ref]);
|
|
171
|
+
return [away, back];
|
|
172
|
+
}
|
|
121
173
|
//# sourceMappingURL=conversation-scroll.js.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { RpcExtensionUIRequest, RpcExtensionUIResponse } from '@celljs/ta-protocol';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
type Respond = (response: RpcExtensionUIResponse) => void;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* The dialog an extension opened, such as the permission gate's question; one at a time, oldest first. Its texts
|
|
6
|
+
* are written for pi's terminal: shown without its escapes, while an option goes back as it came.
|
|
7
|
+
*/
|
|
5
8
|
export declare function DialogView({ request, respond }: {
|
|
6
9
|
request: RpcExtensionUIRequest;
|
|
7
10
|
respond: Respond;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useT } from '../i18n/use-t.js';
|
|
3
|
-
|
|
3
|
+
import { TerminalText } from '../util/terminal-text.js';
|
|
4
|
+
/**
|
|
5
|
+
* The dialog an extension opened, such as the permission gate's question; one at a time, oldest first. Its texts
|
|
6
|
+
* are written for pi's terminal: shown without its escapes, while an option goes back as it came.
|
|
7
|
+
*/
|
|
4
8
|
export function DialogView({ request, respond }) {
|
|
5
9
|
const t = useT();
|
|
6
|
-
const [value, setValue] = React.useState(() => { var _a; return ('prefill' in request ? ((_a = request.prefill) !== null && _a !== void 0 ? _a : '') : ''); });
|
|
10
|
+
const [value, setValue] = React.useState(() => { var _a; return ('prefill' in request ? TerminalText.plain((_a = request.prefill) !== null && _a !== void 0 ? _a : '') : ''); });
|
|
7
11
|
const cancel = () => respond({ type: 'extension_ui_response', id: request.id, cancelled: true });
|
|
8
12
|
const answer = (response) => respond({ type: 'extension_ui_response', id: request.id, ...response });
|
|
9
13
|
let body = null;
|
|
10
14
|
switch (request.method) {
|
|
11
15
|
case 'confirm':
|
|
12
16
|
body = (React.createElement(React.Fragment, null,
|
|
13
|
-
React.createElement("p", { className: "ta-dialog-message" }, request.message),
|
|
17
|
+
React.createElement("p", { className: "ta-dialog-message" }, TerminalText.plain(request.message)),
|
|
14
18
|
React.createElement("div", { className: "ta-dialog-actions" },
|
|
15
19
|
React.createElement("button", { type: "button", className: "ta-button", onClick: () => answer({ confirmed: false }) }, t('ta.no')),
|
|
16
20
|
React.createElement("button", { type: "button", className: "ta-button ta-primary", autoFocus: true, onClick: () => answer({ confirmed: true }) }, t('ta.yes')))));
|
|
17
21
|
break;
|
|
18
22
|
case 'select':
|
|
19
|
-
body = (React.createElement("div", { className: "ta-dialog-options" }, request.options.map((option, index) => (React.createElement("button", { key: option, type: "button", className: "ta-option", autoFocus: index === 0, onClick: () => answer({ value: option }) }, option)))));
|
|
23
|
+
body = (React.createElement("div", { className: "ta-dialog-options" }, request.options.map((option, index) => (React.createElement("button", { key: option, type: "button", className: "ta-option", autoFocus: index === 0, onClick: () => answer({ value: option }) }, TerminalText.plain(option))))));
|
|
20
24
|
break;
|
|
21
25
|
case 'input':
|
|
22
26
|
case 'editor': {
|
|
@@ -25,7 +29,7 @@ export function DialogView({ request, respond }) {
|
|
|
25
29
|
answer({ value });
|
|
26
30
|
};
|
|
27
31
|
body = (React.createElement("form", { onSubmit: submit },
|
|
28
|
-
request.method === 'input' ? (React.createElement("input", { className: "ta-input", autoFocus: true, value: value, placeholder: request.placeholder, onChange: event => setValue(event.target.value) })) : (React.createElement("textarea", { className: "ta-input ta-editor", autoFocus: true, value: value, onChange: event => setValue(event.target.value) })),
|
|
32
|
+
request.method === 'input' ? (React.createElement("input", { className: "ta-input", autoFocus: true, value: value, placeholder: request.placeholder && TerminalText.plain(request.placeholder), onChange: event => setValue(event.target.value) })) : (React.createElement("textarea", { className: "ta-input ta-editor", autoFocus: true, value: value, onChange: event => setValue(event.target.value) })),
|
|
29
33
|
React.createElement("div", { className: "ta-dialog-actions" },
|
|
30
34
|
React.createElement("button", { type: "button", className: "ta-button", onClick: cancel }, t('ta.cancel')),
|
|
31
35
|
React.createElement("button", { type: "submit", className: "ta-button ta-primary" }, t('ta.ok')))));
|
|
@@ -34,8 +38,8 @@ export function DialogView({ request, respond }) {
|
|
|
34
38
|
default:
|
|
35
39
|
return null;
|
|
36
40
|
}
|
|
37
|
-
return (React.createElement("div", { className: "ta-dialog ta-glass", role: "dialog", "aria-label": request.title, onKeyDown: event => event.key === 'Escape' && cancel() },
|
|
38
|
-
React.createElement("div", { className: "ta-dialog-title" }, request.title),
|
|
41
|
+
return (React.createElement("div", { className: "ta-dialog ta-glass", role: "dialog", "aria-label": TerminalText.plain(request.title), onKeyDown: event => event.key === 'Escape' && cancel() },
|
|
42
|
+
React.createElement("div", { className: "ta-dialog-title" }, TerminalText.plain(request.title)),
|
|
39
43
|
body));
|
|
40
44
|
}
|
|
41
45
|
//# sourceMappingURL=dialog-view.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DiffEditorProps } from '../extension/web-extension-api.js';
|
|
3
|
-
import type
|
|
3
|
+
import { type TaSettings } from '../settings/settings-protocol.js';
|
|
4
4
|
/**
|
|
5
5
|
* Monaco's diff editor on two texts of a file, in the theme of `settings`: side by side (inline when
|
|
6
6
|
* narrow, or with `inline`), the unchanged regions folded, as the diffs of an IDE.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useDevice } from '../device/device.js';
|
|
2
3
|
import { MonacoLoader, MonacoUtil } from '../editor/monaco-loader.js';
|
|
3
4
|
import { useT } from '../i18n/use-t.js';
|
|
5
|
+
import { SettingsUtil } from '../settings/settings-protocol.js';
|
|
4
6
|
let models = 0;
|
|
5
7
|
/**
|
|
6
8
|
* Monaco's diff editor on two texts of a file, in the theme of `settings`: side by side (inline when
|
|
@@ -9,6 +11,7 @@ let models = 0;
|
|
|
9
11
|
export function DiffEditor({ settings: store, path, original, modified, inline = false, readOnly = true, onChange, onSave, onDiff, }) {
|
|
10
12
|
const t = useT();
|
|
11
13
|
const settings = React.useSyncExternalStore(listener => store.subscribe(listener), () => store.state);
|
|
14
|
+
const fontScale = SettingsUtil.deviceFontScale(settings.fontScale, useDevice(device => device.handheld));
|
|
12
15
|
const host = React.useRef(null);
|
|
13
16
|
const [monaco, setMonaco] = React.useState();
|
|
14
17
|
const [error, setError] = React.useState();
|
|
@@ -39,7 +42,7 @@ export function DiffEditor({ settings: store, path, original, modified, inline =
|
|
|
39
42
|
const left = monaco.editor.createModel(original, undefined, monaco.Uri.from({ scheme: 'ta-diff', path: `/${id}/original/${name}` }));
|
|
40
43
|
const right = monaco.editor.createModel(modified, undefined, monaco.Uri.from({ scheme: 'ta-diff', path: `/${id}/modified/${name}` }));
|
|
41
44
|
const created = monaco.editor.createDiffEditor(host.current, {
|
|
42
|
-
...MonacoUtil.editorOptions(),
|
|
45
|
+
...MonacoUtil.editorOptions(fontScale),
|
|
43
46
|
readOnly,
|
|
44
47
|
originalEditable: false,
|
|
45
48
|
renderSideBySide: !inline,
|
|
@@ -94,6 +97,7 @@ export function DiffEditor({ settings: store, path, original, modified, inline =
|
|
|
94
97
|
}
|
|
95
98
|
}, [editor, original, modified]);
|
|
96
99
|
React.useEffect(() => editor === null || editor === void 0 ? void 0 : editor.updateOptions({ readOnly, renderSideBySide: !inline }), [editor, readOnly, inline]);
|
|
100
|
+
React.useEffect(() => editor === null || editor === void 0 ? void 0 : editor.updateOptions(MonacoUtil.fontOptions(fontScale)), [editor, fontScale]);
|
|
97
101
|
return (React.createElement("div", { className: "ta-code-editor" },
|
|
98
102
|
React.createElement("div", { ref: host, className: "ta-code-editor-host" }),
|
|
99
103
|
!editor && React.createElement("div", { className: "ta-code-editor-state" }, error ? t('ta.editor.failed', { message: error }) : t('ta.editor.loading'))));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the picker of the double's look is open: the menu of the double and the account open it,
|
|
3
|
+
* DinoLookHost (dino-look.tsx) shows it. Apart from the picker, so that what opens it needs no React.
|
|
4
|
+
*/
|
|
5
|
+
export declare namespace DinoLookPicker {
|
|
6
|
+
function open(): void;
|
|
7
|
+
function close(): void;
|
|
8
|
+
function isOpen(): boolean;
|
|
9
|
+
function subscribe(listener: () => void): () => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the picker of the double's look is open: the menu of the double and the account open it,
|
|
3
|
+
* DinoLookHost (dino-look.tsx) shows it. Apart from the picker, so that what opens it needs no React.
|
|
4
|
+
*/
|
|
5
|
+
export var DinoLookPicker;
|
|
6
|
+
(function (DinoLookPicker) {
|
|
7
|
+
const listeners = new Set();
|
|
8
|
+
let shown = false;
|
|
9
|
+
function open() {
|
|
10
|
+
set(true);
|
|
11
|
+
}
|
|
12
|
+
DinoLookPicker.open = open;
|
|
13
|
+
function close() {
|
|
14
|
+
set(false);
|
|
15
|
+
}
|
|
16
|
+
DinoLookPicker.close = close;
|
|
17
|
+
function isOpen() {
|
|
18
|
+
return shown;
|
|
19
|
+
}
|
|
20
|
+
DinoLookPicker.isOpen = isOpen;
|
|
21
|
+
function subscribe(listener) {
|
|
22
|
+
listeners.add(listener);
|
|
23
|
+
return () => listeners.delete(listener);
|
|
24
|
+
}
|
|
25
|
+
DinoLookPicker.subscribe = subscribe;
|
|
26
|
+
function set(open) {
|
|
27
|
+
shown = open;
|
|
28
|
+
for (const listener of listeners) {
|
|
29
|
+
listener();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
})(DinoLookPicker || (DinoLookPicker = {}));
|
|
33
|
+
//# sourceMappingURL=dino-look-picker.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** The kind of dinosaur the user picked for the double and how it walks, for every ta drawn below it. */
|
|
3
|
+
export declare function DinoLookProvider({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
/** Where the picker of the look opens (DinoLookPicker.open), once on the page. */
|
|
7
|
+
export declare function DinoLookHost(): React.JSX.Element | null;
|
|
8
|
+
/**
|
|
9
|
+
* The look of the double: which dinosaur it is and how it walks. Above, it walks as picked, with the close-up the
|
|
10
|
+
* account shows; what is picked applies at once.
|
|
11
|
+
*/
|
|
12
|
+
export declare function DinoLookDialog({ onClose }: {
|
|
13
|
+
onClose(): void;
|
|
14
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Crown } from 'lucide-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ASSISTANT_GAIT_STATE, ASSISTANT_SPECIES_STATE } from '../assistant/assistant-state.js';
|
|
4
|
+
import { GAITS } from '../avatar/dino-motion.js';
|
|
5
|
+
import { SPECIES } from '../avatar/dino-species.js';
|
|
6
|
+
import { usePersisted } from '../hooks.js';
|
|
7
|
+
import { useT } from '../i18n/use-t.js';
|
|
8
|
+
import { DinoLookPicker } from './dino-look-picker.js';
|
|
9
|
+
import { Icon } from './icon.js';
|
|
10
|
+
import { Segmented } from './settings-controls.js';
|
|
11
|
+
import { DinoFace, DinoLook, TaAvatar } from './ta-avatar.js';
|
|
12
|
+
import { WebDialog } from './web-dialog.js';
|
|
13
|
+
/** The kind of dinosaur the user picked for the double and how it walks, for every ta drawn below it. */
|
|
14
|
+
export function DinoLookProvider({ children }) {
|
|
15
|
+
const [species] = usePersisted(ASSISTANT_SPECIES_STATE);
|
|
16
|
+
const [gait] = usePersisted(ASSISTANT_GAIT_STATE);
|
|
17
|
+
const look = React.useMemo(() => ({ species, gait }), [species, gait]);
|
|
18
|
+
return React.createElement(DinoLook.Provider, { value: look }, children);
|
|
19
|
+
}
|
|
20
|
+
/** Where the picker of the look opens (DinoLookPicker.open), once on the page. */
|
|
21
|
+
export function DinoLookHost() {
|
|
22
|
+
const open = React.useSyncExternalStore(DinoLookPicker.subscribe, DinoLookPicker.isOpen, () => false);
|
|
23
|
+
return open ? React.createElement(DinoLookDialog, { onClose: DinoLookPicker.close }) : null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The look of the double: which dinosaur it is and how it walks. Above, it walks as picked, with the close-up the
|
|
27
|
+
* account shows; what is picked applies at once.
|
|
28
|
+
*/
|
|
29
|
+
export function DinoLookDialog({ onClose }) {
|
|
30
|
+
const t = useT();
|
|
31
|
+
const [species, setSpecies] = usePersisted(ASSISTANT_SPECIES_STATE);
|
|
32
|
+
const [gait, setGait] = usePersisted(ASSISTANT_GAIT_STATE);
|
|
33
|
+
return (React.createElement(WebDialog, { title: t('ta.look.title'), onClose: onClose },
|
|
34
|
+
React.createElement("div", { className: "ta-look" },
|
|
35
|
+
React.createElement("div", { className: "ta-look-stage" },
|
|
36
|
+
React.createElement("div", { className: "ta-look-figure" },
|
|
37
|
+
React.createElement(DinoFace, { size: 56 })),
|
|
38
|
+
React.createElement("div", { className: "ta-look-walk" },
|
|
39
|
+
React.createElement(TaAvatar, { size: 88, roam: true }))),
|
|
40
|
+
React.createElement("div", { className: "ta-look-label" }, t('ta.look.species')),
|
|
41
|
+
React.createElement("fieldset", { className: "ta-look-kinds", "aria-label": t('ta.look.species') }, SPECIES.map(kind => {
|
|
42
|
+
const name = t(`ta.species.${kind.id}`);
|
|
43
|
+
return (React.createElement("button", { key: kind.id, type: "button", "aria-pressed": species === kind.id, className: `ta-look-kind${species === kind.id ? ' ta-on' : ''}`, title: name, onClick: () => setSpecies(kind.id) },
|
|
44
|
+
React.createElement(TaAvatar, { species: kind.id, size: 52 }),
|
|
45
|
+
React.createElement("span", { className: "ta-look-name ta-ellipsis" }, name),
|
|
46
|
+
kind.premium && (React.createElement("span", { className: "ta-look-premium", title: t('ta.look.premium') },
|
|
47
|
+
React.createElement(Icon, { icon: Crown, size: 11 }),
|
|
48
|
+
t('ta.look.premium')))));
|
|
49
|
+
})),
|
|
50
|
+
React.createElement("div", { className: "ta-look-label" }, t('ta.look.gait')),
|
|
51
|
+
React.createElement(Segmented, { value: gait, choices: GAITS.map(way => ({ value: way, label: `ta.gait.${way}` })), onChange: way => setGait(way), label: t('ta.look.gait') }))));
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=dino-look.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { LOGO_PATH } from '../avatar/dino-
|
|
2
|
+
import { LOGO_PATH } from '../avatar/dino-species.js';
|
|
3
3
|
export const DINO_GREEN = '#10B981';
|
|
4
4
|
/** Cell's dinosaur as assets/logo.svg draws it: the mark of ta. */
|
|
5
5
|
export function Dino({ size = 32 }) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type WebViewEntry } from '../extension/web-extension-protocol.js';
|
|
3
|
+
export interface DiscoverViewProps {
|
|
4
|
+
/** The pages under Discover (NavigationUtil.arrange). */
|
|
5
|
+
pages: WebViewEntry[];
|
|
6
|
+
onOpen(id: string): void;
|
|
7
|
+
/** Into the navigation. */
|
|
8
|
+
onPin(id: string): void;
|
|
9
|
+
/** The settings of the navigation. */
|
|
10
|
+
onSettings(): void;
|
|
11
|
+
/** The menu of a narrow screen, first in the head. */
|
|
12
|
+
leading?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Discover, as in a messaging app: the pages the navigation has no room for, or that the user put here. A row
|
|
16
|
+
* opens its page; its pin, or its menu (a right click, a held finger), puts it in the navigation.
|
|
17
|
+
*/
|
|
18
|
+
export declare function DiscoverView({ pages, onOpen, onPin, onSettings, leading }: DiscoverViewProps): React.JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PanelTop, Pin, SlidersHorizontal } from 'lucide-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { WebLabelUtil } from '../extension/web-extension-protocol.js';
|
|
4
|
+
import { useT } from '../i18n/use-t.js';
|
|
5
|
+
import { useContextMenu } from './context-menu.js';
|
|
6
|
+
import { EmptyState } from './empty-state.js';
|
|
7
|
+
import { IconButton } from './icon.js';
|
|
8
|
+
import { ListGroup, ListRow } from './list-rows.js';
|
|
9
|
+
/**
|
|
10
|
+
* Discover, as in a messaging app: the pages the navigation has no room for, or that the user put here. A row
|
|
11
|
+
* opens its page; its pin, or its menu (a right click, a held finger), puts it in the navigation.
|
|
12
|
+
*/
|
|
13
|
+
export function DiscoverView({ pages, onOpen, onPin, onSettings, leading }) {
|
|
14
|
+
const t = useT();
|
|
15
|
+
const [menu, openMenu] = useContextMenu();
|
|
16
|
+
return (React.createElement("section", { className: "ta-list-page", "aria-label": t('ta.discover') },
|
|
17
|
+
React.createElement("header", { className: "ta-main-head ta-list-head" },
|
|
18
|
+
leading,
|
|
19
|
+
React.createElement("div", { className: "ta-main-title" },
|
|
20
|
+
React.createElement("span", null, t('ta.discover')))),
|
|
21
|
+
React.createElement("div", { className: "ta-list-scroll" },
|
|
22
|
+
React.createElement("div", { className: "ta-list-content" },
|
|
23
|
+
pages.length > 0 ? (React.createElement(ListGroup, null, pages.map(page => {
|
|
24
|
+
var _a;
|
|
25
|
+
const title = WebLabelUtil.text(page.title);
|
|
26
|
+
return (React.createElement(ListRow, { key: page.id, icon: (_a = page.icon) !== null && _a !== void 0 ? _a : PanelTop, label: title, onClick: () => onOpen(page.id), onContextMenu: event => openMenu(event, [
|
|
27
|
+
{ label: t('ta.nav.open'), run: () => onOpen(page.id) },
|
|
28
|
+
{ label: t('ta.nav.pin'), run: () => onPin(page.id) },
|
|
29
|
+
'-',
|
|
30
|
+
{ label: t('ta.nav.settings'), run: onSettings },
|
|
31
|
+
]), trailing: React.createElement(IconButton, { icon: Pin, label: `${t('ta.nav.pin')} · ${title}`, className: "ta-list-trailing", onClick: () => onPin(page.id) }) }));
|
|
32
|
+
}))) : (React.createElement(EmptyState, { title: t('ta.discover.empty'), hint: t('ta.discover.emptyHint') })),
|
|
33
|
+
pages.length > 0 && React.createElement("p", { className: "ta-list-hint" }, t('ta.discover.hint')),
|
|
34
|
+
React.createElement(ListGroup, null,
|
|
35
|
+
React.createElement(ListRow, { icon: SlidersHorizontal, label: t('ta.nav.settings'), onClick: onSettings })))),
|
|
36
|
+
menu));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=discover-view.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { SessionMessage, SessionState, SessionStore } from '@celljs/ta-client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** Where the count of the messages asked was last: by the message first then, to know what came in front of it. */
|
|
4
|
+
export interface AskedCount {
|
|
5
|
+
start: number;
|
|
6
|
+
first: SessionMessage | undefined;
|
|
7
|
+
/** What to add to the messages asked that are there: minus those that came in front since. */
|
|
8
|
+
base: number;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace EarlierUtil {
|
|
11
|
+
/** The messages in front of those of `previous` when only earlier ones came; else undefined (loaded again). */
|
|
12
|
+
function prepended(messages: readonly SessionMessage[], start: number, previous: {
|
|
13
|
+
start: number;
|
|
14
|
+
first: SessionMessage | undefined;
|
|
15
|
+
}): number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* How many messages were asked, so that earlier ones loaded in front do not count as sent: the view
|
|
18
|
+
* goes to a message sent, and to the bottom of a conversation loaded again.
|
|
19
|
+
*/
|
|
20
|
+
function asked(messages: readonly SessionMessage[], start: number, isAsk: (message: SessionMessage) => boolean, previous?: AskedCount): AskedCount & {
|
|
21
|
+
count: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/** EarlierUtil.asked for a view: `isAsk` should be the same function each render. */
|
|
25
|
+
export declare function useAsked(state: SessionState, isAsk?: (message: SessionMessage) => boolean): number;
|
|
26
|
+
/**
|
|
27
|
+
* The earlier messages of a long conversation, loaded as the view of `ref` nears the top of its thread
|
|
28
|
+
* (only its latest came when it opened): what the view shows stays where it is as they come in front.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useEarlierMessages(store: SessionStore, state: SessionState, ref: React.RefObject<HTMLDivElement | null>): void;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** Closer than this many heights of the view to the top of the thread, the earlier messages load. */
|
|
3
|
+
const NEAR_TOP = 1.5;
|
|
4
|
+
export var EarlierUtil;
|
|
5
|
+
(function (EarlierUtil) {
|
|
6
|
+
/** The messages in front of those of `previous` when only earlier ones came; else undefined (loaded again). */
|
|
7
|
+
function prepended(messages, start, previous) {
|
|
8
|
+
const added = previous.start - start;
|
|
9
|
+
return added > 0 && messages[added] === previous.first ? added : undefined;
|
|
10
|
+
}
|
|
11
|
+
EarlierUtil.prepended = prepended;
|
|
12
|
+
/**
|
|
13
|
+
* How many messages were asked, so that earlier ones loaded in front do not count as sent: the view
|
|
14
|
+
* goes to a message sent, and to the bottom of a conversation loaded again.
|
|
15
|
+
*/
|
|
16
|
+
function asked(messages, start, isAsk, previous) {
|
|
17
|
+
const all = messages.filter(isAsk).length;
|
|
18
|
+
let base = 0;
|
|
19
|
+
if (previous && previous.start === start && previous.first === messages[0]) {
|
|
20
|
+
base = previous.base;
|
|
21
|
+
}
|
|
22
|
+
else if (previous) {
|
|
23
|
+
const added = prepended(messages, start, previous);
|
|
24
|
+
base = added === undefined ? 0 : previous.base - messages.slice(0, added).filter(isAsk).length;
|
|
25
|
+
}
|
|
26
|
+
return { start, first: messages[0], base, count: base + all };
|
|
27
|
+
}
|
|
28
|
+
EarlierUtil.asked = asked;
|
|
29
|
+
})(EarlierUtil || (EarlierUtil = {}));
|
|
30
|
+
const isUser = (message) => message.role === 'user';
|
|
31
|
+
/** EarlierUtil.asked for a view: `isAsk` should be the same function each render. */
|
|
32
|
+
export function useAsked(state, isAsk = isUser) {
|
|
33
|
+
const previous = React.useRef(undefined);
|
|
34
|
+
return React.useMemo(() => {
|
|
35
|
+
const next = EarlierUtil.asked(state.messages, state.start, isAsk, previous.current);
|
|
36
|
+
previous.current = next;
|
|
37
|
+
return next.count;
|
|
38
|
+
}, [state.messages, state.start, isAsk]);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The earlier messages of a long conversation, loaded as the view of `ref` nears the top of its thread
|
|
42
|
+
* (only its latest came when it opened): what the view shows stays where it is as they come in front.
|
|
43
|
+
*/
|
|
44
|
+
export function useEarlierMessages(store, state, ref) {
|
|
45
|
+
const shown = React.useRef({ start: state.start, first: state.messages[0] });
|
|
46
|
+
const before = React.useRef(undefined);
|
|
47
|
+
// Read before the commit: the messages in front are not in the page yet.
|
|
48
|
+
const element = ref.current;
|
|
49
|
+
if (element && !before.current && EarlierUtil.prepended(state.messages, state.start, shown.current) !== undefined) {
|
|
50
|
+
before.current = { height: element.scrollHeight, top: element.scrollTop };
|
|
51
|
+
}
|
|
52
|
+
React.useLayoutEffect(() => {
|
|
53
|
+
const element = ref.current;
|
|
54
|
+
const at = before.current;
|
|
55
|
+
before.current = undefined;
|
|
56
|
+
if (element && at && EarlierUtil.prepended(state.messages, state.start, shown.current) !== undefined) {
|
|
57
|
+
element.scrollTop = at.top + element.scrollHeight - at.height;
|
|
58
|
+
}
|
|
59
|
+
shown.current = { start: state.start, first: state.messages[0] };
|
|
60
|
+
}, [state.messages, state.start, ref]);
|
|
61
|
+
const more = state.start > 0;
|
|
62
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: checks again once earlier messages came
|
|
63
|
+
React.useEffect(() => {
|
|
64
|
+
const element = ref.current;
|
|
65
|
+
if (!element || !more) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
let frame = 0;
|
|
69
|
+
const check = () => {
|
|
70
|
+
cancelAnimationFrame(frame);
|
|
71
|
+
frame = requestAnimationFrame(() => {
|
|
72
|
+
if (element.scrollTop < element.clientHeight * NEAR_TOP) {
|
|
73
|
+
store.loadEarlier().catch(() => undefined);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
// Also once they came: the thread may still be short of the top.
|
|
78
|
+
check();
|
|
79
|
+
element.addEventListener('scroll', check, { passive: true });
|
|
80
|
+
return () => {
|
|
81
|
+
cancelAnimationFrame(frame);
|
|
82
|
+
element.removeEventListener('scroll', check);
|
|
83
|
+
};
|
|
84
|
+
}, [store, ref, more, state.start]);
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=earlier-messages.js.map
|