@celljs/ta-web 4.8.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 +36 -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 +46 -7
- package/esm/browser/chat/chat.d.ts +47 -8
- package/esm/browser/chat/chat.js +206 -24
- package/esm/browser/chat/draft-model.d.ts +1 -3
- package/esm/browser/chat/draft-model.js +3 -25
- 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 +289 -122
- 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 +13 -8
- package/esm/browser/components/composer-box.js +70 -55
- 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/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/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 +20 -6
- 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/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/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 +31 -2
- package/esm/browser/extension/web-extension-api.d.ts +353 -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 +67 -26
- package/esm/browser/extension/web-extensions.js +299 -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 +256 -10
- package/esm/browser/i18n/messages.d.ts +255 -9
- package/esm/browser/i18n/messages.js +550 -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/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 +42 -31
- 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 +176 -117
- 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 +104 -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/terminal-theme.d.ts +3 -1
- package/esm/browser/terminal/terminal-theme.js +52 -44
- package/esm/browser/terminal/web-terminal.d.ts +41 -3
- package/esm/browser/terminal/web-terminal.js +219 -8
- package/esm/browser/util/composer.d.ts +20 -7
- package/esm/browser/util/composer.js +27 -5
- 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/tool.d.ts +1 -1
- package/esm/browser/util/tool.js +4 -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 +36 -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 +46 -7
- package/lib/browser/chat/chat.d.ts +47 -8
- package/lib/browser/chat/chat.js +205 -23
- package/lib/browser/chat/draft-model.d.ts +1 -3
- package/lib/browser/chat/draft-model.js +3 -25
- 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 +285 -118
- 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 +13 -8
- package/lib/browser/components/composer-box.js +71 -56
- 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/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/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 +18 -4
- 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/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/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 +31 -2
- package/lib/browser/extension/web-extension-api.d.ts +353 -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 +67 -26
- package/lib/browser/extension/web-extensions.js +306 -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 +256 -10
- package/lib/browser/i18n/messages.d.ts +255 -9
- package/lib/browser/i18n/messages.js +550 -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/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 +42 -31
- 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 +176 -117
- 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 +104 -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/terminal-theme.d.ts +3 -1
- package/lib/browser/terminal/terminal-theme.js +52 -44
- package/lib/browser/terminal/web-terminal.d.ts +41 -3
- package/lib/browser/terminal/web-terminal.js +220 -9
- package/lib/browser/util/composer.d.ts +20 -7
- package/lib/browser/util/composer.js +27 -5
- 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/tool.d.ts +1 -1
- package/lib/browser/util/tool.js +4 -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 +10 -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/chat/draft-model.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/terminal-art.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/terminal/canvas-font.js.map +0 -1
- package/esm/browser/terminal/terminal-links.js.map +0 -1
- package/esm/browser/terminal/terminal-theme.js.map +0 -1
- package/esm/browser/terminal/web-terminal.js.map +0 -1
- package/esm/browser/terminal/xterm.js.map +0 -1
- package/esm/browser/util/composer.js.map +0 -1
- package/esm/browser/util/desktop.js.map +0 -1
- package/esm/browser/util/diff.js.map +0 -1
- package/esm/browser/util/file-drag.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/terminal-text.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 -215
- package/lib/browser/chat/chat.spec.js.map +0 -1
- package/lib/browser/chat/draft-model.d.ts.map +0 -1
- package/lib/browser/chat/draft-model.js.map +0 -1
- package/lib/browser/chat/draft-model.spec.d.ts +0 -2
- package/lib/browser/chat/draft-model.spec.d.ts.map +0 -1
- package/lib/browser/chat/draft-model.spec.js +0 -31
- package/lib/browser/chat/draft-model.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/plus-menu.spec.d.ts +0 -2
- package/lib/browser/components/plus-menu.spec.d.ts.map +0 -1
- package/lib/browser/components/plus-menu.spec.js +0 -18
- package/lib/browser/components/plus-menu.spec.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/terminal-art.d.ts.map +0 -1
- package/lib/browser/components/terminal-art.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 -101
- 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/terminal/canvas-font.d.ts.map +0 -1
- package/lib/browser/terminal/canvas-font.js.map +0 -1
- package/lib/browser/terminal/canvas-font.spec.d.ts +0 -2
- package/lib/browser/terminal/canvas-font.spec.d.ts.map +0 -1
- package/lib/browser/terminal/canvas-font.spec.js +0 -32
- package/lib/browser/terminal/canvas-font.spec.js.map +0 -1
- package/lib/browser/terminal/terminal-links.d.ts.map +0 -1
- package/lib/browser/terminal/terminal-links.js.map +0 -1
- package/lib/browser/terminal/terminal-links.spec.d.ts +0 -2
- package/lib/browser/terminal/terminal-links.spec.d.ts.map +0 -1
- package/lib/browser/terminal/terminal-links.spec.js +0 -30
- package/lib/browser/terminal/terminal-links.spec.js.map +0 -1
- package/lib/browser/terminal/terminal-theme.d.ts.map +0 -1
- package/lib/browser/terminal/terminal-theme.js.map +0 -1
- package/lib/browser/terminal/terminal-theme.spec.d.ts +0 -2
- package/lib/browser/terminal/terminal-theme.spec.d.ts.map +0 -1
- package/lib/browser/terminal/terminal-theme.spec.js +0 -24
- package/lib/browser/terminal/terminal-theme.spec.js.map +0 -1
- package/lib/browser/terminal/web-terminal.d.ts.map +0 -1
- package/lib/browser/terminal/web-terminal.js.map +0 -1
- package/lib/browser/terminal/xterm.d.ts.map +0 -1
- package/lib/browser/terminal/xterm.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/desktop.d.ts.map +0 -1
- package/lib/browser/util/desktop.js.map +0 -1
- package/lib/browser/util/desktop.spec.d.ts +0 -2
- package/lib/browser/util/desktop.spec.d.ts.map +0 -1
- package/lib/browser/util/desktop.spec.js +0 -67
- package/lib/browser/util/desktop.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/file-drag.d.ts.map +0 -1
- package/lib/browser/util/file-drag.js.map +0 -1
- package/lib/browser/util/file-drag.spec.d.ts +0 -2
- package/lib/browser/util/file-drag.spec.d.ts.map +0 -1
- package/lib/browser/util/file-drag.spec.js +0 -46
- package/lib/browser/util/file-drag.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/terminal-text.d.ts.map +0 -1
- package/lib/browser/util/terminal-text.js.map +0 -1
- package/lib/browser/util/terminal-text.spec.d.ts +0 -2
- package/lib/browser/util/terminal-text.spec.d.ts.map +0 -1
- package/lib/browser/util/terminal-text.spec.js +0 -54
- package/lib/browser/util/terminal-text.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 -85
- 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 -51
- package/src/browser/chat/chat-view.tsx +0 -159
- package/src/browser/chat/chat.spec.ts +0 -225
- package/src/browser/chat/chat.ts +0 -357
- package/src/browser/chat/draft-model.spec.tsx +0 -31
- package/src/browser/chat/draft-model.tsx +0 -63
- 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 -562
- 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 -521
- 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 -171
- 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 -91
- 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 -193
- package/src/browser/components/plus-menu.spec.ts +0 -16
- 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 -214
- 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/terminal-art.tsx +0 -21
- 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 -62
- 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 -171
- package/src/browser/extension/web-extension-api.ts +0 -478
- 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 -762
- package/src/browser/hooks.ts +0 -102
- package/src/browser/i18n/locales.ts +0 -20
- package/src/browser/i18n/messages.ts +0 -950
- 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 -95
- package/src/browser/notices/notices.spec.ts +0 -105
- package/src/browser/notices/notices.ts +0 -189
- 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 -215
- package/src/browser/style/layout.ts +0 -408
- package/src/browser/style/pages.ts +0 -74
- package/src/browser/style/shell.ts +0 -236
- package/src/browser/style.ts +0 -11
- package/src/browser/terminal/canvas-font.spec.ts +0 -29
- package/src/browser/terminal/canvas-font.ts +0 -32
- package/src/browser/terminal/terminal-links.spec.ts +0 -32
- package/src/browser/terminal/terminal-links.ts +0 -75
- package/src/browser/terminal/terminal-theme.spec.ts +0 -23
- package/src/browser/terminal/terminal-theme.ts +0 -66
- package/src/browser/terminal/web-terminal.ts +0 -330
- package/src/browser/terminal/xterm.ts +0 -10
- package/src/browser/util/composer.spec.ts +0 -71
- package/src/browser/util/composer.ts +0 -157
- package/src/browser/util/desktop.spec.ts +0 -68
- package/src/browser/util/desktop.ts +0 -96
- package/src/browser/util/diff.spec.ts +0 -20
- package/src/browser/util/diff.ts +0 -33
- package/src/browser/util/file-drag.spec.ts +0 -48
- package/src/browser/util/file-drag.ts +0 -78
- 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/terminal-text.spec.ts +0 -60
- package/src/browser/util/terminal-text.ts +0 -223
- package/src/browser/util/tool.spec.ts +0 -90
- package/src/browser/util/tool.ts +0 -207
- 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
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { SessionStore } from '@celljs/ta-client';
|
|
2
2
|
import type { ImageContent } from '@celljs/ta-protocol';
|
|
3
|
+
import type { StateSpec } from '../state/state-protocol';
|
|
3
4
|
export declare const TaChat: unique symbol;
|
|
5
|
+
/** The files of the conversations taken out of the list, in any browser: they stay on disk, and come back with TaChat.restore. */
|
|
6
|
+
export declare const REMOVED_CHATS: StateSpec<string[]>;
|
|
4
7
|
/** A new conversation not opened yet: its session opens with its first message. */
|
|
5
8
|
export interface ChatDraft {
|
|
6
9
|
/** Where it will work. */
|
|
@@ -8,11 +11,20 @@ export interface ChatDraft {
|
|
|
8
11
|
/** `<provider>/<model id>` it will start on; none: the default model of the settings. */
|
|
9
12
|
model?: string;
|
|
10
13
|
}
|
|
14
|
+
/** What a conversation still opening says of itself, before the server has it (TaChat.show of a session on its way). */
|
|
15
|
+
export interface ChatOpening {
|
|
16
|
+
title?: string;
|
|
17
|
+
cwd?: string;
|
|
18
|
+
}
|
|
11
19
|
export interface ChatState {
|
|
12
20
|
/** The conversation shown, once there is one. */
|
|
13
21
|
store?: SessionStore;
|
|
14
22
|
/** Shown instead of a conversation. */
|
|
15
23
|
draft?: ChatDraft;
|
|
24
|
+
/** The conversation asked for that is still loading (`show`; the file for `resume`): lists mark it at once. */
|
|
25
|
+
pending?: string;
|
|
26
|
+
/** What the one pending says of itself, if the lists do not have it yet. */
|
|
27
|
+
opening?: ChatOpening;
|
|
16
28
|
error?: string;
|
|
17
29
|
}
|
|
18
30
|
/**
|
|
@@ -26,17 +38,26 @@ export interface TaChat {
|
|
|
26
38
|
/** Unless one is shown: the conversation of before, if the server has it open or its file is there, else a new one. */
|
|
27
39
|
start(): Promise<void>;
|
|
28
40
|
/**
|
|
29
|
-
* Shows a new conversation, in the directory the
|
|
30
|
-
*
|
|
41
|
+
* Shows a new conversation, in the default directory of the server (TaServerInfo.cwd), which it follows
|
|
42
|
+
* as it changes. Nothing opens on the server until its first message.
|
|
31
43
|
*/
|
|
32
44
|
draft(): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Moves the new conversation to another directory, which becomes the default one (TaWorkbench.setWorkingDirectory):
|
|
47
|
+
* the next new conversations, terminals and tasks of the double open there, on every device. A failure is a notice.
|
|
48
|
+
*/
|
|
49
|
+
setDraftCwd(cwd: string): Promise<void>;
|
|
35
50
|
/** The model the new conversation starts on; none: the default one. */
|
|
36
51
|
setDraftModel(model: string | undefined): void;
|
|
37
52
|
/** Opens the session of the new conversation and sends its first message; fails as the opening fails. */
|
|
38
53
|
submit(message: string, images?: ImageContent[]): Promise<void>;
|
|
39
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Shows an open session; one the service closed meanwhile opens again from its file. A session still on its
|
|
56
|
+
* way (a promise of its id) has its place at once, said by `opening`, and shows when it comes; it fails as it fails.
|
|
57
|
+
*/
|
|
58
|
+
show(session: string | Promise<string>, opening?: ChatOpening): Promise<void>;
|
|
59
|
+
/** Shows a conversation of a session file: the open session of the file, else one opened from it. It is in the list again if it was taken out. */
|
|
60
|
+
resume(sessionFile: string): Promise<void>;
|
|
40
61
|
/**
|
|
41
62
|
* Opens a conversation beside the one shown, which stays: from a file (a fork), else a new one in `cwd`.
|
|
42
63
|
* It has the tools of the web extensions, which its store runs; detach the store when done with it.
|
|
@@ -45,7 +66,15 @@ export interface TaChat {
|
|
|
45
66
|
sessionFile?: string;
|
|
46
67
|
cwd: string;
|
|
47
68
|
}): Promise<SessionStore>;
|
|
48
|
-
/**
|
|
49
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Takes a conversation out of the list (REMOVED_CHATS) and closes its session if it is open; its file
|
|
71
|
+
* stays. Closing the one shown shows another, or a new one.
|
|
72
|
+
*/
|
|
73
|
+
remove(chat: {
|
|
74
|
+
sessionId?: string;
|
|
75
|
+
sessionFile?: string;
|
|
76
|
+
}): Promise<void>;
|
|
77
|
+
/** Puts a conversation taken out back in the list. */
|
|
78
|
+
restore(sessionFile: string): void;
|
|
50
79
|
}
|
|
51
80
|
//# sourceMappingURL=chat-protocol.d.ts.map
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaChat = void 0;
|
|
3
|
+
exports.REMOVED_CHATS = exports.TaChat = void 0;
|
|
4
4
|
exports.TaChat = Symbol('TaChat');
|
|
5
|
+
/** The files of the conversations taken out of the list, in any browser: they stay on disk, and come back with TaChat.restore. */
|
|
6
|
+
exports.REMOVED_CHATS = {
|
|
7
|
+
key: 'chat.removed',
|
|
8
|
+
tier: 'user',
|
|
9
|
+
initial: [],
|
|
10
|
+
parse: value => (Array.isArray(value) ? value.filter((file) => typeof file === 'string') : undefined),
|
|
11
|
+
};
|
|
5
12
|
//# sourceMappingURL=chat-protocol.js.map
|
|
@@ -10,7 +10,9 @@ export interface ChatViewProps {
|
|
|
10
10
|
/** The widgets of web extensions around the message box. */
|
|
11
11
|
widgets: WebWidgetEntry[];
|
|
12
12
|
onMenu(): void;
|
|
13
|
+
/** On a phone the conversation is a screen of its own: its first button goes back (`onMenu`), not to the drawer. */
|
|
14
|
+
back?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/** The conversation shown, with the widgets of web extensions around its message box. */
|
|
15
|
-
export declare function ChatView({ widgets, onMenu }: ChatViewProps): React.JSX.Element;
|
|
17
|
+
export declare function ChatView({ widgets, onMenu, back }: ChatViewProps): React.JSX.Element;
|
|
16
18
|
//# sourceMappingURL=chat-view.d.ts.map
|
|
@@ -37,12 +37,15 @@ exports.useChat = useChat;
|
|
|
37
37
|
exports.Widget = Widget;
|
|
38
38
|
exports.ChatView = ChatView;
|
|
39
39
|
const react_1 = require("@celljs/react");
|
|
40
|
+
const lucide_react_1 = require("lucide-react");
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const callout_1 = require("../components/callout");
|
|
42
43
|
const composer_1 = require("../components/composer");
|
|
44
|
+
const connection_bar_1 = require("../components/connection-bar");
|
|
43
45
|
const folder_picker_1 = require("../components/folder-picker");
|
|
44
46
|
const hero_cards_1 = require("../components/hero-cards");
|
|
45
47
|
const icon_1 = require("../components/icon");
|
|
48
|
+
const phone_shell_1 = require("../components/phone-shell");
|
|
46
49
|
const session_view_1 = require("../components/session-view");
|
|
47
50
|
const ta_avatar_1 = require("../components/ta-avatar");
|
|
48
51
|
const workbench_toggle_1 = require("../components/workbench-toggle");
|
|
@@ -102,17 +105,53 @@ function DraftView({ draft, menu, aboveComposer, belowComposer }) {
|
|
|
102
105
|
React.createElement(composer_1.Composer, { server: workbench.server, workspace: workbench.workspace, working: false, commands: [], cwd: draft.cwd || undefined, onSubmit: submit, onError: fail, actions: model ? [[model]] : undefined, beside: React.createElement(folder_picker_1.DirectoryButton, { cwd: draft.cwd, list: list, remote: workbench, onPick: cwd => chat.setDraftCwd(cwd) }) }),
|
|
103
106
|
belowComposer)));
|
|
104
107
|
}
|
|
108
|
+
/** A conversation picked that is still loading, laid out as it will be: its head, a spinner, a message box that waits. */
|
|
109
|
+
function OpeningView({ info, menu }) {
|
|
110
|
+
const t = (0, use_t_1.useT)();
|
|
111
|
+
const [, workbench] = (0, hooks_1.useWorkbench)();
|
|
112
|
+
return (React.createElement("section", { className: "ta-session", "aria-busy": "true" },
|
|
113
|
+
React.createElement("header", { className: "ta-session-header" },
|
|
114
|
+
menu,
|
|
115
|
+
React.createElement("div", { className: "ta-session-title" },
|
|
116
|
+
React.createElement("span", { className: "ta-title" }, (info === null || info === void 0 ? void 0 : info.title) || ((info === null || info === void 0 ? void 0 : info.cwd) ? message_1.MessageUtil.basename(info.cwd) : t('ta.session.title'))),
|
|
117
|
+
(info === null || info === void 0 ? void 0 : info.cwd) && (React.createElement("span", { className: "ta-muted ta-path", title: info.cwd }, message_1.MessageUtil.shortPath(info.cwd)))),
|
|
118
|
+
React.createElement(workbench_toggle_1.WorkbenchToggle, null)),
|
|
119
|
+
React.createElement("div", { className: "ta-empty" },
|
|
120
|
+
React.createElement("span", { className: "ta-spinner" }),
|
|
121
|
+
" ",
|
|
122
|
+
t('ta.chat.opening')),
|
|
123
|
+
React.createElement("div", { className: "ta-bottom", inert: true },
|
|
124
|
+
React.createElement(composer_1.Composer, { server: workbench.server, workspace: workbench.workspace, working: false, commands: [], cwd: info === null || info === void 0 ? void 0 : info.cwd, onError: () => undefined }))));
|
|
125
|
+
}
|
|
105
126
|
/** The conversation shown, with the widgets of web extensions around its message box. */
|
|
106
|
-
function ChatView({ widgets, onMenu }) {
|
|
107
|
-
var _a;
|
|
127
|
+
function ChatView({ widgets, onMenu, back }) {
|
|
128
|
+
var _a, _b;
|
|
108
129
|
const t = (0, use_t_1.useT)();
|
|
109
|
-
const [{ sessions }, workbench] = (0, hooks_1.useWorkbench)();
|
|
110
|
-
const [{ store, draft, error }] = useChat();
|
|
130
|
+
const [{ sessions, saved }, workbench] = (0, hooks_1.useWorkbench)();
|
|
131
|
+
const [{ store, draft, pending, opening, error }] = useChat();
|
|
132
|
+
const arriving = (0, phone_shell_1.useScreenArriving)();
|
|
133
|
+
// A conversation that comes while the phone's screen slides in is drawn once it is in, the slide keeps its frames.
|
|
134
|
+
const [kept, setKept] = React.useState({ arriving, sessionId: store === null || store === void 0 ? void 0 : store.sessionId });
|
|
135
|
+
let before = kept.sessionId;
|
|
136
|
+
if (kept.arriving !== arriving) {
|
|
137
|
+
before = store === null || store === void 0 ? void 0 : store.sessionId;
|
|
138
|
+
setKept({ arriving, sessionId: before });
|
|
139
|
+
}
|
|
111
140
|
const refresh = React.useCallback(() => void workbench.refresh().catch(() => undefined), [workbench]);
|
|
112
|
-
const menu = React.createElement(icon_1.IconButton, { icon: icon_1.SidebarLeft, label: t('ta.sidebar'), className: "ta-narrow-only", onClick: onMenu });
|
|
141
|
+
const menu = React.createElement(icon_1.IconButton, { icon: back ? lucide_react_1.ChevronLeft : icon_1.SidebarLeft, label: t(back ? 'ta.back' : 'ta.sidebar'), className: "ta-narrow-only", onClick: onMenu });
|
|
113
142
|
const around = (placement) => widgets.filter(widget => widget.placement === placement).map(widget => React.createElement(Widget, { key: widget.id, widget: widget }));
|
|
143
|
+
// On a phone, the state of the connection is a row over the message box.
|
|
144
|
+
const aboveComposer = (React.createElement(React.Fragment, null,
|
|
145
|
+
React.createElement(connection_bar_1.ConnectionBanner, null),
|
|
146
|
+
around('aboveEditor')));
|
|
147
|
+
// The conversation picked shows at once, as it opens: its head and that it is on its way, rather than the one before.
|
|
148
|
+
const coming = pending && pending !== (store === null || store === void 0 ? void 0 : store.sessionId) ? pending : arriving && store && store.sessionId !== before ? store.sessionId : undefined;
|
|
149
|
+
if (coming) {
|
|
150
|
+
const info = (_a = sessions.find(session => session.sessionId === coming)) !== null && _a !== void 0 ? _a : saved.find(session => session.sessionFile === coming);
|
|
151
|
+
return React.createElement(OpeningView, { info: opening !== null && opening !== void 0 ? opening : (info && { title: info.sessionName, cwd: info.cwd }), menu: menu });
|
|
152
|
+
}
|
|
114
153
|
if (draft) {
|
|
115
|
-
return React.createElement(DraftView, { draft: draft, menu: menu, aboveComposer:
|
|
154
|
+
return React.createElement(DraftView, { draft: draft, menu: menu, aboveComposer: aboveComposer, belowComposer: around('belowEditor') });
|
|
116
155
|
}
|
|
117
156
|
if (!store) {
|
|
118
157
|
return (React.createElement(React.Fragment, null,
|
|
@@ -123,6 +162,6 @@ function ChatView({ widgets, onMenu }) {
|
|
|
123
162
|
t('ta.chat.opening'))))));
|
|
124
163
|
}
|
|
125
164
|
const info = sessions.find(session => session.sessionId === store.sessionId);
|
|
126
|
-
return (React.createElement(session_view_1.SessionView, { key: store.sessionId, store: store, server: workbench.server, workspace: workbench.workspace, info: info, onClosed: refresh, onActivity: refresh, leading: menu, trailing: React.createElement(workbench_toggle_1.WorkbenchToggle, null), empty: React.createElement(Hero, { cwd: (
|
|
165
|
+
return (React.createElement(session_view_1.SessionView, { key: store.sessionId, store: store, server: workbench.server, workspace: workbench.workspace, info: info, onClosed: refresh, onActivity: refresh, leading: menu, trailing: React.createElement(workbench_toggle_1.WorkbenchToggle, null), empty: React.createElement(Hero, { cwd: (_b = info === null || info === void 0 ? void 0 : info.cwd) !== null && _b !== void 0 ? _b : '', onPick: text => store.prompt(text).catch(() => undefined) }), aboveComposer: aboveComposer, belowComposer: around('belowEditor') }));
|
|
127
166
|
}
|
|
128
167
|
//# sourceMappingURL=chat-view.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ClientTool, SessionState, SessionStore } from '@celljs/ta-client';
|
|
2
|
-
import type
|
|
2
|
+
import { type ImageContent, type TaEvent, type TaOpenSessionOptions, type TaSessionInfo } from '@celljs/ta-protocol';
|
|
3
3
|
import type { WebTool } from '../extension/web-extension-api';
|
|
4
4
|
import { TaWebExtensions } from '../extension/web-extension-protocol';
|
|
5
5
|
import { TaNotices } from '../notices/notices-protocol';
|
|
6
6
|
import { TaState } from '../state/state-protocol';
|
|
7
7
|
import { TaWorkbench } from '../workbench-protocol';
|
|
8
|
-
import { type ChatState, TaChat } from './chat-protocol';
|
|
8
|
+
import { type ChatOpening, type ChatState, TaChat } from './chat-protocol';
|
|
9
|
+
import { RecentStores } from './recent-stores';
|
|
9
10
|
export declare namespace ChatUtil {
|
|
10
11
|
function toolNames(tools: WebTool[]): string;
|
|
11
12
|
/** Ids of the runs of `write` and `edit` in a directory of packages that are not in `seen`. */
|
|
@@ -30,32 +31,70 @@ export declare class TaChatImpl implements TaChat {
|
|
|
30
31
|
protected reloadPending: boolean;
|
|
31
32
|
/** The conversation asked for last: of quick switches, only the last is shown. */
|
|
32
33
|
protected wanted?: string;
|
|
34
|
+
/** Sessions shown while still on their way, counted for their keys. */
|
|
35
|
+
protected coming: number;
|
|
36
|
+
/** The conversations shown before, to show again at once. */
|
|
37
|
+
protected readonly recent: RecentStores;
|
|
38
|
+
/** The names of the web tools each store runs. */
|
|
39
|
+
protected readonly toolsOf: WeakMap<SessionStore, string>;
|
|
33
40
|
get state(): ChatState;
|
|
34
41
|
subscribe(listener: (state: ChatState) => void): () => void;
|
|
35
42
|
start(): Promise<void>;
|
|
36
43
|
draft(): Promise<void>;
|
|
37
|
-
setDraftCwd(cwd: string): void
|
|
44
|
+
setDraftCwd(cwd: string): Promise<void>;
|
|
45
|
+
/** A new conversation is in the default directory, as it changes here or on another device. */
|
|
46
|
+
protected followDefault(): void;
|
|
38
47
|
setDraftModel(model: string | undefined): void;
|
|
39
48
|
submit(message: string, images?: ImageContent[]): Promise<void>;
|
|
40
|
-
show(
|
|
49
|
+
show(session: string | Promise<string>, opening?: ChatOpening): Promise<void>;
|
|
50
|
+
/** A session the caller still opens: its place shows now, under a key no session has. */
|
|
51
|
+
protected showComing(session: Promise<string>, opening: ChatOpening | undefined): Promise<void>;
|
|
52
|
+
resume(sessionFile: string): Promise<void>;
|
|
53
|
+
remove({ sessionId, sessionFile }: {
|
|
54
|
+
sessionId?: string;
|
|
55
|
+
sessionFile?: string;
|
|
56
|
+
}): Promise<void>;
|
|
57
|
+
restore(sessionFile: string): void;
|
|
41
58
|
openBeside(options: {
|
|
42
59
|
sessionFile?: string;
|
|
43
60
|
cwd: string;
|
|
44
61
|
}): Promise<SessionStore>;
|
|
45
|
-
|
|
62
|
+
/** Closes an open session; its file stays. Closing the one shown shows another, or a new one. */
|
|
63
|
+
protected close(sessionId: string): Promise<void>;
|
|
46
64
|
protected enqueue(change: () => Promise<void>): Promise<void>;
|
|
47
65
|
/** Opens a session with the tools of the web extensions of now. */
|
|
48
66
|
protected open(options: Partial<TaOpenSessionOptions>): Promise<string>;
|
|
49
|
-
/**
|
|
50
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Follows a session, running the web tools it asks for. One shown lately and still open shows at once
|
|
69
|
+
* as it was, and catches up as it attaches again. Another shows once loaded, the conversation shown
|
|
70
|
+
* staying until then, so that switching does not flash an empty page.
|
|
71
|
+
*/
|
|
51
72
|
protected attach(sessionId: string): Promise<void>;
|
|
73
|
+
protected listed(sessionId: string): boolean;
|
|
74
|
+
/** Shows a store in place of the one shown, which is kept for later. */
|
|
75
|
+
protected enter(store: SessionStore): void;
|
|
76
|
+
/** The open session of a file. */
|
|
77
|
+
protected openOf(sessionFile: string): TaSessionInfo | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* A session of the list that the service closed since the list was read (idle, or a restart): opened
|
|
80
|
+
* again from its file. One of a package's group is left to its package, which opens it with its role.
|
|
81
|
+
*/
|
|
82
|
+
protected reopenClosed(sessionId: string, error: unknown): Promise<void>;
|
|
83
|
+
/** The conversation shown, opened again from its file; the newest other one if that fails. */
|
|
84
|
+
protected recover(): Promise<void>;
|
|
52
85
|
/** The newest other open session, or a new conversation. */
|
|
53
86
|
protected replace(): Promise<void>;
|
|
54
87
|
protected showDraft(): void;
|
|
55
88
|
/** Runs the web tool of the name that is loaded when the model calls it: a changed one runs as it is now. */
|
|
56
89
|
protected clientTool(name: string): ClientTool;
|
|
57
90
|
protected follow(store: SessionStore): void;
|
|
58
|
-
|
|
91
|
+
/**
|
|
92
|
+
* The events of a store go to web extensions once it is attached: not those it catches up on, which
|
|
93
|
+
* happened while another conversation was shown.
|
|
94
|
+
*/
|
|
95
|
+
protected listen(store: SessionStore): void;
|
|
96
|
+
/** Stops following the conversation shown; it is kept to show again unless `keep` is false (it closed, or is gone). */
|
|
97
|
+
protected leave(keep?: boolean): void;
|
|
59
98
|
protected onEvent(event: TaEvent): void;
|
|
60
99
|
/**
|
|
61
100
|
* A run ended, in which ta may have made or changed a package. The web extensions load again. New or
|
package/lib/browser/chat/chat.js
CHANGED
|
@@ -11,17 +11,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TaChatImpl = exports.ChatUtil = void 0;
|
|
13
13
|
const core_1 = require("@celljs/core");
|
|
14
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
14
15
|
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
15
16
|
const notices_protocol_1 = require("../notices/notices-protocol");
|
|
16
17
|
const state_protocol_1 = require("../state/state-protocol");
|
|
18
|
+
const frame_1 = require("../util/frame");
|
|
17
19
|
const workbench_protocol_1 = require("../workbench-protocol");
|
|
18
20
|
const chat_protocol_1 = require("./chat-protocol");
|
|
21
|
+
const recent_stores_1 = require("./recent-stores");
|
|
19
22
|
/** The file of the conversation shown last, in any browser: the page opens it again. */
|
|
20
23
|
const FILE = { key: 'chat.file', tier: 'user', initial: '', parse: state_protocol_1.StateUtil.string };
|
|
21
24
|
/** That conversation is of a package's group: the page shows it again only while it is open, as its package opens it with a role of its own. */
|
|
22
25
|
const GROUPED = { key: 'chat.grouped', tier: 'user', initial: false, parse: state_protocol_1.StateUtil.boolean };
|
|
23
|
-
/** The directory of the last new conversation. */
|
|
24
|
-
const CWD = { key: 'chat.cwd', tier: 'user', initial: '', parse: state_protocol_1.StateUtil.string };
|
|
25
26
|
/** The model the user picked for the last new conversation. */
|
|
26
27
|
const MODEL = { key: 'chat.model', tier: 'user', initial: '', parse: state_protocol_1.StateUtil.string };
|
|
27
28
|
/** A file in a directory of packages: `extensions/<name>/...`, of the user or a project. */
|
|
@@ -64,6 +65,12 @@ let TaChatImpl = class TaChatImpl {
|
|
|
64
65
|
this.watching = false;
|
|
65
66
|
/** A web extension changed packages during a run: its end loads them again. */
|
|
66
67
|
this.reloadPending = false;
|
|
68
|
+
/** Sessions shown while still on their way, counted for their keys. */
|
|
69
|
+
this.coming = 0;
|
|
70
|
+
/** The conversations shown before, to show again at once. */
|
|
71
|
+
this.recent = new recent_stores_1.RecentStores();
|
|
72
|
+
/** The names of the web tools each store runs. */
|
|
73
|
+
this.toolsOf = new WeakMap();
|
|
67
74
|
}
|
|
68
75
|
get state() {
|
|
69
76
|
return this.current;
|
|
@@ -77,7 +84,15 @@ let TaChatImpl = class TaChatImpl {
|
|
|
77
84
|
if (!this.watching) {
|
|
78
85
|
this.watching = true;
|
|
79
86
|
// Signed out, the conversation goes with its connection.
|
|
80
|
-
this.workbench.subscribe(state =>
|
|
87
|
+
this.workbench.subscribe(state => {
|
|
88
|
+
this.followDefault();
|
|
89
|
+
if (state.status === 'signed-out') {
|
|
90
|
+
this.recent.clear();
|
|
91
|
+
if (this.current.store) {
|
|
92
|
+
this.leave(false);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
});
|
|
81
96
|
}
|
|
82
97
|
if (this.current.store || this.current.draft) {
|
|
83
98
|
return;
|
|
@@ -86,7 +101,7 @@ let TaChatImpl = class TaChatImpl {
|
|
|
86
101
|
await this.workbench.refresh();
|
|
87
102
|
const file = (await this.persisted.load(FILE)) || undefined;
|
|
88
103
|
const open = file && this.workbench.state.sessions.find(session => session.sessionFile === file);
|
|
89
|
-
const reopen = file && !(await this.persisted.load(GROUPED));
|
|
104
|
+
const reopen = file && !(await this.persisted.load(GROUPED)) && !(await this.persisted.load(chat_protocol_1.REMOVED_CHATS)).includes(file);
|
|
90
105
|
const sessionId = open ? open.sessionId : reopen ? await this.open({ sessionFile: file }).catch(() => undefined) : undefined;
|
|
91
106
|
if (sessionId) {
|
|
92
107
|
await this.attach(sessionId);
|
|
@@ -104,10 +119,19 @@ let TaChatImpl = class TaChatImpl {
|
|
|
104
119
|
}
|
|
105
120
|
});
|
|
106
121
|
}
|
|
107
|
-
setDraftCwd(cwd) {
|
|
122
|
+
async setDraftCwd(cwd) {
|
|
108
123
|
if (this.current.draft) {
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
124
|
+
await this.workbench.setWorkingDirectory(cwd).catch(error => void this.notices.error(error));
|
|
125
|
+
this.followDefault();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/** A new conversation is in the default directory, as it changes here or on another device. */
|
|
129
|
+
followDefault() {
|
|
130
|
+
var _a;
|
|
131
|
+
const cwd = (_a = this.workbench.state.server) === null || _a === void 0 ? void 0 : _a.cwd;
|
|
132
|
+
const { draft } = this.current;
|
|
133
|
+
if (draft && cwd && draft.cwd !== cwd) {
|
|
134
|
+
this.update({ draft: { ...draft, cwd } });
|
|
111
135
|
this.extensions.connect({ cwd });
|
|
112
136
|
}
|
|
113
137
|
}
|
|
@@ -125,24 +149,94 @@ let TaChatImpl = class TaChatImpl {
|
|
|
125
149
|
return;
|
|
126
150
|
}
|
|
127
151
|
const sessionId = await this.open({ cwd: draft.cwd, model: draft.model });
|
|
128
|
-
if (draft.cwd) {
|
|
129
|
-
this.persisted.set(CWD, draft.cwd);
|
|
130
|
-
}
|
|
131
152
|
await this.attach(sessionId);
|
|
132
153
|
await ((_a = this.current.store) === null || _a === void 0 ? void 0 : _a.prompt(message, { images }));
|
|
133
154
|
});
|
|
134
155
|
this.queue = next.catch(() => undefined);
|
|
135
156
|
return next;
|
|
136
157
|
}
|
|
137
|
-
show(
|
|
158
|
+
show(session, opening) {
|
|
159
|
+
var _a;
|
|
160
|
+
if (typeof session !== 'string') {
|
|
161
|
+
return this.showComing(session, opening);
|
|
162
|
+
}
|
|
163
|
+
const sessionId = session;
|
|
138
164
|
this.wanted = sessionId;
|
|
165
|
+
const switching = ((_a = this.current.store) === null || _a === void 0 ? void 0 : _a.sessionId) !== sessionId;
|
|
166
|
+
if (switching) {
|
|
167
|
+
this.update({ pending: sessionId, opening });
|
|
168
|
+
}
|
|
139
169
|
return this.enqueue(async () => {
|
|
140
170
|
var _a;
|
|
171
|
+
// Picked in the lists of the last time, before the connection: it opens once there is one.
|
|
172
|
+
await this.workbench.connected();
|
|
173
|
+
if (switching) {
|
|
174
|
+
// The list marks it and the conversation's place says it opens before the conversation is drawn.
|
|
175
|
+
await frame_1.FrameUtil.painted();
|
|
176
|
+
}
|
|
141
177
|
if (this.wanted === sessionId && ((_a = this.current.store) === null || _a === void 0 ? void 0 : _a.sessionId) !== sessionId) {
|
|
142
|
-
await this.attach(sessionId);
|
|
178
|
+
await this.attach(sessionId).catch(error => this.reopenClosed(sessionId, error));
|
|
179
|
+
}
|
|
180
|
+
}).finally(() => {
|
|
181
|
+
if (this.current.pending === sessionId) {
|
|
182
|
+
this.update({ pending: undefined, opening: undefined });
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/** A session the caller still opens: its place shows now, under a key no session has. */
|
|
187
|
+
async showComing(session, opening) {
|
|
188
|
+
const key = `coming ${++this.coming}`;
|
|
189
|
+
this.wanted = key;
|
|
190
|
+
this.update({ pending: key, opening });
|
|
191
|
+
try {
|
|
192
|
+
const sessionId = await session;
|
|
193
|
+
if (this.wanted === key) {
|
|
194
|
+
await this.show(sessionId, opening);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
finally {
|
|
198
|
+
if (this.current.pending === key) {
|
|
199
|
+
this.update({ pending: undefined, opening: undefined });
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
resume(sessionFile) {
|
|
204
|
+
this.wanted = sessionFile;
|
|
205
|
+
this.restore(sessionFile);
|
|
206
|
+
// The list marks it at once by its file, the key of a saved conversation.
|
|
207
|
+
this.update({ pending: sessionFile, opening: undefined });
|
|
208
|
+
return this.enqueue(async () => {
|
|
209
|
+
var _a;
|
|
210
|
+
await this.workbench.connected();
|
|
211
|
+
await frame_1.FrameUtil.painted();
|
|
212
|
+
const open = this.openOf(sessionFile);
|
|
213
|
+
if (this.wanted !== sessionFile || (open && ((_a = this.current.store) === null || _a === void 0 ? void 0 : _a.sessionId) === open.sessionId)) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
const saved = this.workbench.state.saved.find(session => session.sessionFile === sessionFile);
|
|
217
|
+
await this.attach(open ? open.sessionId : await this.open({ sessionFile, cwd: saved === null || saved === void 0 ? void 0 : saved.cwd }));
|
|
218
|
+
}).finally(() => {
|
|
219
|
+
if (this.current.pending === sessionFile) {
|
|
220
|
+
this.update({ pending: undefined, opening: undefined });
|
|
143
221
|
}
|
|
144
222
|
});
|
|
145
223
|
}
|
|
224
|
+
remove({ sessionId, sessionFile }) {
|
|
225
|
+
if (sessionFile) {
|
|
226
|
+
// Only the files the list still has: one deleted from the disk is forgotten.
|
|
227
|
+
const { sessions, saved } = this.workbench.state;
|
|
228
|
+
const known = new Set([...sessions, ...saved].map(session => session.sessionFile));
|
|
229
|
+
const removed = this.persisted.get(chat_protocol_1.REMOVED_CHATS).filter(file => known.has(file) && file !== sessionFile);
|
|
230
|
+
this.persisted.set(chat_protocol_1.REMOVED_CHATS, [...removed, sessionFile]);
|
|
231
|
+
}
|
|
232
|
+
return sessionId ? this.close(sessionId) : Promise.resolve();
|
|
233
|
+
}
|
|
234
|
+
restore(sessionFile) {
|
|
235
|
+
const removed = this.persisted.get(chat_protocol_1.REMOVED_CHATS);
|
|
236
|
+
if (removed.includes(sessionFile)) {
|
|
237
|
+
this.persisted.set(chat_protocol_1.REMOVED_CHATS, removed.filter(file => file !== sessionFile));
|
|
238
|
+
}
|
|
239
|
+
}
|
|
146
240
|
async openBeside(options) {
|
|
147
241
|
const sessionId = await this.open(options);
|
|
148
242
|
const store = this.workbench.createStore(sessionId, { clientTools: this.extensions.state.tools.map(tool => this.clientTool(tool.name)) });
|
|
@@ -150,11 +244,14 @@ let TaChatImpl = class TaChatImpl {
|
|
|
150
244
|
await this.workbench.refresh();
|
|
151
245
|
return store;
|
|
152
246
|
}
|
|
247
|
+
/** Closes an open session; its file stays. Closing the one shown shows another, or a new one. */
|
|
153
248
|
close(sessionId) {
|
|
154
249
|
return this.enqueue(async () => {
|
|
155
250
|
var _a;
|
|
251
|
+
await this.workbench.connected();
|
|
156
252
|
await this.workbench.server.closeSession(sessionId);
|
|
157
253
|
this.opened.delete(sessionId);
|
|
254
|
+
this.recent.drop(sessionId);
|
|
158
255
|
if (((_a = this.current.store) === null || _a === void 0 ? void 0 : _a.sessionId) === sessionId) {
|
|
159
256
|
await this.replace();
|
|
160
257
|
}
|
|
@@ -183,30 +280,97 @@ let TaChatImpl = class TaChatImpl {
|
|
|
183
280
|
this.opened.set(sessionId, ChatUtil.toolNames(tools));
|
|
184
281
|
return sessionId;
|
|
185
282
|
}
|
|
186
|
-
/**
|
|
187
|
-
|
|
283
|
+
/**
|
|
284
|
+
* Follows a session, running the web tools it asks for. One shown lately and still open shows at once
|
|
285
|
+
* as it was, and catches up as it attaches again. Another shows once loaded, the conversation shown
|
|
286
|
+
* staying until then, so that switching does not flash an empty page.
|
|
287
|
+
*/
|
|
188
288
|
async attach(sessionId) {
|
|
289
|
+
const tools = ChatUtil.toolNames(this.extensions.state.tools);
|
|
290
|
+
const kept = this.recent.take(sessionId, tools);
|
|
291
|
+
if (kept && this.listed(sessionId)) {
|
|
292
|
+
this.enter(kept);
|
|
293
|
+
try {
|
|
294
|
+
await kept.attach();
|
|
295
|
+
if (this.current.store === kept) {
|
|
296
|
+
this.listen(kept);
|
|
297
|
+
}
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
catch (_a) {
|
|
301
|
+
// Closed meanwhile: loaded as any other, which fails as it does.
|
|
302
|
+
this.leave(false);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
189
305
|
const store = this.workbench.createStore(sessionId, { clientTools: this.extensions.state.tools.map(tool => this.clientTool(tool.name)) });
|
|
306
|
+
this.toolsOf.set(store, tools);
|
|
190
307
|
try {
|
|
191
308
|
await store.attach();
|
|
192
|
-
//
|
|
193
|
-
|
|
309
|
+
// A session opened since (an agent's) is not listed yet: web extensions get the directory of this one.
|
|
310
|
+
if (!this.listed(sessionId)) {
|
|
311
|
+
await this.workbench.refresh();
|
|
312
|
+
}
|
|
194
313
|
}
|
|
195
314
|
catch (error) {
|
|
196
315
|
store.detach().catch(() => undefined);
|
|
197
316
|
throw error;
|
|
198
317
|
}
|
|
318
|
+
this.enter(store);
|
|
319
|
+
this.listen(store);
|
|
320
|
+
}
|
|
321
|
+
listed(sessionId) {
|
|
322
|
+
return this.workbench.state.sessions.some(session => session.sessionId === sessionId);
|
|
323
|
+
}
|
|
324
|
+
/** Shows a store in place of the one shown, which is kept for later. */
|
|
325
|
+
enter(store) {
|
|
199
326
|
this.leave();
|
|
200
327
|
this.seenEdits.clear();
|
|
201
328
|
for (const id of Object.keys(store.state.tools)) {
|
|
202
329
|
this.seenEdits.add(id);
|
|
203
330
|
}
|
|
204
331
|
this.follow(store);
|
|
205
|
-
this.remember(this.workbench.state.sessions.find(session => session.sessionId === sessionId));
|
|
332
|
+
this.remember(this.workbench.state.sessions.find(session => session.sessionId === store.sessionId));
|
|
333
|
+
// How the sessions are now (running, last change), without holding up the conversation.
|
|
334
|
+
this.workbench.refresh().catch(() => undefined);
|
|
335
|
+
}
|
|
336
|
+
/** The open session of a file. */
|
|
337
|
+
openOf(sessionFile) {
|
|
338
|
+
return this.workbench.state.sessions.find(session => session.sessionFile === sessionFile);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* A session of the list that the service closed since the list was read (idle, or a restart): opened
|
|
342
|
+
* again from its file. One of a package's group is left to its package, which opens it with its role.
|
|
343
|
+
*/
|
|
344
|
+
async reopenClosed(sessionId, error) {
|
|
345
|
+
const info = this.workbench.state.sessions.find(session => session.sessionId === sessionId);
|
|
346
|
+
if ((error === null || error === void 0 ? void 0 : error.code) !== ta_protocol_1.TaErrorCode.SESSION_NOT_FOUND || !(info === null || info === void 0 ? void 0 : info.sessionFile) || info.group) {
|
|
347
|
+
await this.workbench.refresh().catch(() => undefined);
|
|
348
|
+
throw error;
|
|
349
|
+
}
|
|
350
|
+
await this.attach(await this.open({ sessionFile: info.sessionFile, cwd: info.cwd }));
|
|
351
|
+
}
|
|
352
|
+
/** The conversation shown, opened again from its file; the newest other one if that fails. */
|
|
353
|
+
async recover() {
|
|
354
|
+
const gone = this.current.store;
|
|
355
|
+
try {
|
|
356
|
+
const file = this.persisted.get(FILE);
|
|
357
|
+
const sessionId = file ? await this.open({ sessionFile: file }).catch(() => undefined) : undefined;
|
|
358
|
+
if (sessionId) {
|
|
359
|
+
await this.attach(sessionId);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
await this.replace();
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
finally {
|
|
366
|
+
if (gone) {
|
|
367
|
+
this.recent.drop(gone.sessionId);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
206
370
|
}
|
|
207
371
|
/** The newest other open session, or a new conversation. */
|
|
208
372
|
async replace() {
|
|
209
|
-
this.leave();
|
|
373
|
+
this.leave(false);
|
|
210
374
|
await this.workbench.refresh();
|
|
211
375
|
const [next] = this.workbench.state.sessions;
|
|
212
376
|
if (next) {
|
|
@@ -218,7 +382,7 @@ let TaChatImpl = class TaChatImpl {
|
|
|
218
382
|
}
|
|
219
383
|
showDraft() {
|
|
220
384
|
var _a;
|
|
221
|
-
const cwd =
|
|
385
|
+
const cwd = ((_a = this.workbench.state.server) === null || _a === void 0 ? void 0 : _a.cwd) || '';
|
|
222
386
|
this.update({ draft: { cwd, model: this.persisted.get(MODEL) || undefined }, error: undefined });
|
|
223
387
|
this.extensions.connect(cwd ? { cwd } : undefined);
|
|
224
388
|
}
|
|
@@ -252,7 +416,8 @@ let TaChatImpl = class TaChatImpl {
|
|
|
252
416
|
}
|
|
253
417
|
working = state.working;
|
|
254
418
|
}),
|
|
255
|
-
|
|
419
|
+
// Gone from the service (it restarted, or closed it while idle): opened again from its file.
|
|
420
|
+
store.onGone(() => void this.enqueue(() => (this.current.store === store ? this.recover() : Promise.resolve()))),
|
|
256
421
|
];
|
|
257
422
|
this.extensions.connect({
|
|
258
423
|
send: text => store.prompt(text, { streamingBehavior: 'followUp' }).then(() => undefined),
|
|
@@ -262,13 +427,30 @@ let TaChatImpl = class TaChatImpl {
|
|
|
262
427
|
});
|
|
263
428
|
this.update({ store, draft: undefined, error: undefined });
|
|
264
429
|
}
|
|
265
|
-
|
|
430
|
+
/**
|
|
431
|
+
* The events of a store go to web extensions once it is attached: not those it catches up on, which
|
|
432
|
+
* happened while another conversation was shown.
|
|
433
|
+
*/
|
|
434
|
+
listen(store) {
|
|
435
|
+
for (const id of Object.keys(store.state.tools)) {
|
|
436
|
+
this.seenEdits.add(id);
|
|
437
|
+
}
|
|
438
|
+
this.unfollow.push(store.onEvent(event => this.onEvent(event)));
|
|
439
|
+
}
|
|
440
|
+
/** Stops following the conversation shown; it is kept to show again unless `keep` is false (it closed, or is gone). */
|
|
441
|
+
leave(keep = true) {
|
|
266
442
|
var _a;
|
|
267
443
|
for (const stop of this.unfollow.splice(0)) {
|
|
268
444
|
stop();
|
|
269
445
|
}
|
|
270
446
|
this.extensions.connect(undefined);
|
|
271
|
-
|
|
447
|
+
const { store } = this.current;
|
|
448
|
+
if (store) {
|
|
449
|
+
store.detach().catch(() => undefined);
|
|
450
|
+
if (keep && !store.state.closed) {
|
|
451
|
+
this.recent.keep(store, (_a = this.toolsOf.get(store)) !== null && _a !== void 0 ? _a : '');
|
|
452
|
+
}
|
|
453
|
+
}
|
|
272
454
|
this.update({ store: undefined });
|
|
273
455
|
}
|
|
274
456
|
onEvent(event) {
|
|
@@ -324,7 +506,7 @@ let TaChatImpl = class TaChatImpl {
|
|
|
324
506
|
var _a;
|
|
325
507
|
const { sessionFile } = await this.workbench.server.getState(store.sessionId);
|
|
326
508
|
const cwd = (_a = this.workbench.state.sessions.find(session => session.sessionId === store.sessionId)) === null || _a === void 0 ? void 0 : _a.cwd;
|
|
327
|
-
this.leave();
|
|
509
|
+
this.leave(false);
|
|
328
510
|
await this.workbench.server.closeSession(store.sessionId);
|
|
329
511
|
this.opened.delete(store.sessionId);
|
|
330
512
|
await this.attach(await this.open({ sessionFile, cwd }));
|