@celljs/ta-web 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +40 -9
- package/README.md +39 -8
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -0
- package/esm/browser/assistant/assistant-chat-list.js +19 -0
- package/esm/browser/assistant/assistant-extension.d.ts +4 -1
- package/esm/browser/assistant/assistant-extension.js +96 -12
- package/esm/browser/assistant/assistant-protocol.d.ts +48 -0
- package/esm/browser/assistant/assistant-role.d.ts +81 -0
- package/esm/browser/assistant/assistant-role.js +45 -0
- package/esm/browser/assistant/assistant-state.d.ts +18 -0
- package/esm/browser/assistant/assistant-state.js +35 -0
- package/esm/browser/assistant/assistant-task-book.d.ts +30 -0
- package/esm/browser/assistant/assistant-task-book.js +68 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +54 -0
- package/esm/browser/assistant/assistant-task-source.js +156 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +48 -0
- package/esm/browser/assistant/assistant-task-util.js +105 -0
- package/esm/browser/assistant/assistant-tasks.d.ts +15 -28
- package/esm/browser/assistant/assistant-tasks.js +65 -89
- package/esm/browser/assistant/assistant-view.js +125 -86
- package/esm/browser/assistant/assistant.d.ts +91 -18
- package/esm/browser/assistant/assistant.js +398 -140
- package/esm/browser/assistant/task-card.d.ts +10 -0
- package/esm/browser/assistant/task-card.js +24 -0
- package/esm/browser/assistant/task-views.d.ts +44 -0
- package/esm/browser/assistant/task-views.js +187 -0
- package/esm/browser/avatar/dino-avatar.d.ts +33 -56
- package/esm/browser/avatar/dino-avatar.js +366 -145
- package/esm/browser/avatar/dino-motion.d.ts +9 -2
- package/esm/browser/avatar/dino-motion.js +298 -44
- package/esm/browser/avatar/dino-species.d.ts +123 -0
- package/esm/browser/avatar/dino-species.js +912 -0
- package/esm/browser/chat/chat-protocol.d.ts +40 -7
- package/esm/browser/chat/chat-protocol.js +7 -0
- package/esm/browser/chat/chat-view.d.ts +3 -1
- package/esm/browser/chat/chat-view.js +50 -8
- package/esm/browser/chat/chat.d.ts +54 -8
- package/esm/browser/chat/chat.js +234 -33
- package/esm/browser/chat/draft-model.d.ts +13 -0
- package/esm/browser/chat/draft-model.js +31 -0
- package/esm/browser/chat/recent-stores.d.ts +24 -0
- package/esm/browser/chat/recent-stores.js +39 -0
- package/esm/browser/components/access-util.d.ts +4 -0
- package/esm/browser/components/access-util.js +28 -0
- package/esm/browser/components/access-view.d.ts +16 -0
- package/esm/browser/components/access-view.js +125 -0
- package/esm/browser/components/account-menu.d.ts +59 -4
- package/esm/browser/components/account-menu.js +169 -42
- package/esm/browser/components/agent-settings-view.d.ts +1 -0
- package/esm/browser/components/agent-settings-view.js +11 -5
- package/esm/browser/components/app-nav.d.ts +44 -0
- package/esm/browser/components/app-nav.js +110 -0
- package/esm/browser/components/app-view.d.ts +1 -7
- package/esm/browser/components/app-view.js +299 -125
- package/esm/browser/components/auth-pictures.js +4 -7
- package/esm/browser/components/auth-view.js +18 -12
- package/esm/browser/components/board-util.d.ts +20 -0
- package/esm/browser/components/board-util.js +42 -0
- package/esm/browser/components/board.d.ts +14 -0
- package/esm/browser/components/board.js +92 -0
- package/esm/browser/components/chat-list.d.ts +62 -13
- package/esm/browser/components/chat-list.js +132 -34
- package/esm/browser/components/code-editor.d.ts +1 -1
- package/esm/browser/components/code-editor.js +5 -1
- package/esm/browser/components/composer-addons.d.ts +17 -0
- package/esm/browser/components/composer-addons.js +56 -0
- package/esm/browser/components/composer-box.d.ts +15 -4
- package/esm/browser/components/composer-box.js +71 -19
- package/esm/browser/components/composer.d.ts +4 -1
- package/esm/browser/components/composer.js +31 -10
- package/esm/browser/components/connection-bar.d.ts +9 -2
- package/esm/browser/components/connection-bar.js +113 -38
- package/esm/browser/components/context-menu.d.ts +24 -1
- package/esm/browser/components/context-menu.js +36 -8
- package/esm/browser/components/conversation-scroll.d.ts +3 -1
- package/esm/browser/components/conversation-scroll.js +56 -4
- package/esm/browser/components/dialog-view.d.ts +4 -1
- package/esm/browser/components/dialog-view.js +11 -7
- package/esm/browser/components/diff-editor.d.ts +1 -1
- package/esm/browser/components/diff-editor.js +5 -1
- package/esm/browser/components/dino-look-picker.d.ts +10 -0
- package/esm/browser/components/dino-look-picker.js +33 -0
- package/esm/browser/components/dino-look.d.ts +14 -0
- package/esm/browser/components/dino-look.js +53 -0
- package/esm/browser/components/dino.js +1 -1
- package/esm/browser/components/discover-view.d.ts +18 -0
- package/esm/browser/components/discover-view.js +38 -0
- package/esm/browser/components/earlier-messages.d.ts +30 -0
- package/esm/browser/components/earlier-messages.js +86 -0
- package/esm/browser/components/editor-area.js +6 -1
- package/esm/browser/components/empty-pictures.d.ts +7 -0
- package/esm/browser/components/empty-pictures.js +53 -0
- package/esm/browser/components/empty-state.d.ts +8 -0
- package/esm/browser/components/empty-state.js +15 -0
- package/esm/browser/components/environment-view.d.ts +19 -0
- package/esm/browser/components/environment-view.js +214 -0
- package/esm/browser/components/folder-picker.js +6 -3
- package/esm/browser/components/hero-cards.d.ts +4 -0
- package/esm/browser/components/hero-cards.js +16 -15
- package/esm/browser/components/host-tag.d.ts +9 -0
- package/esm/browser/components/host-tag.js +21 -0
- package/esm/browser/components/host-view.d.ts +34 -0
- package/esm/browser/components/host-view.js +168 -0
- package/esm/browser/components/kept-pages.d.ts +15 -0
- package/esm/browser/components/kept-pages.js +13 -0
- package/esm/browser/components/launch-settings.d.ts +3 -0
- package/esm/browser/components/launch-settings.js +38 -0
- package/esm/browser/components/launcher-search-util.d.ts +12 -0
- package/esm/browser/components/launcher-search-util.js +41 -0
- package/esm/browser/components/launcher-surface.d.ts +9 -0
- package/esm/browser/components/launcher-surface.js +67 -0
- package/esm/browser/components/list-rows.d.ts +21 -0
- package/esm/browser/components/list-rows.js +21 -0
- package/esm/browser/components/list-skeleton.d.ts +10 -0
- package/esm/browser/components/list-skeleton.js +31 -0
- package/esm/browser/components/me-view.d.ts +9 -0
- package/esm/browser/components/me-view.js +35 -0
- package/esm/browser/components/message-actions.js +1 -0
- package/esm/browser/components/message-footer.d.ts +2 -0
- package/esm/browser/components/message-list.js +50 -10
- package/esm/browser/components/message-menu.d.ts +20 -0
- package/esm/browser/components/message-menu.js +59 -0
- package/esm/browser/components/model-picker.d.ts +43 -0
- package/esm/browser/components/model-picker.js +167 -0
- package/esm/browser/components/nav-places.d.ts +46 -0
- package/esm/browser/components/nav-places.js +49 -0
- package/esm/browser/components/notice-center.js +3 -1
- package/esm/browser/components/option-list.d.ts +45 -0
- package/esm/browser/components/option-list.js +138 -0
- package/esm/browser/components/phone-shell.d.ts +72 -0
- package/esm/browser/components/phone-shell.js +226 -0
- package/esm/browser/components/picture.d.ts +15 -0
- package/esm/browser/components/picture.js +23 -0
- package/esm/browser/components/qr-view.d.ts +6 -0
- package/esm/browser/components/qr-view.js +12 -0
- package/esm/browser/components/relay-view.js +5 -12
- package/esm/browser/components/remote-hosts.js +3 -2
- package/esm/browser/components/search-page.d.ts +13 -0
- package/esm/browser/components/search-page.js +147 -0
- package/esm/browser/components/search-section.d.ts +16 -0
- package/esm/browser/components/search-section.js +99 -0
- package/esm/browser/components/session-settings.d.ts +7 -3
- package/esm/browser/components/session-settings.js +28 -18
- package/esm/browser/components/session-view.js +68 -10
- package/esm/browser/components/settings-controls.d.ts +22 -2
- package/esm/browser/components/settings-controls.js +38 -2
- package/esm/browser/components/settings-view.d.ts +8 -5
- package/esm/browser/components/settings-view.js +334 -93
- package/esm/browser/components/share-dialog.d.ts +13 -0
- package/esm/browser/components/share-dialog.js +83 -0
- package/esm/browser/components/side-lists.d.ts +37 -0
- package/esm/browser/components/side-lists.js +40 -0
- package/esm/browser/components/sign-in-accounts.d.ts +27 -0
- package/esm/browser/components/sign-in-accounts.js +64 -0
- package/esm/browser/components/sign-in-marks.d.ts +5 -0
- package/esm/browser/components/sign-in-marks.js +30 -0
- package/esm/browser/components/sign-in-picture.d.ts +7 -0
- package/esm/browser/components/sign-in-picture.js +64 -0
- package/esm/browser/components/sortable.d.ts +13 -0
- package/esm/browser/components/sortable.js +87 -0
- package/esm/browser/components/surface-flyout.d.ts +10 -0
- package/esm/browser/components/surface-flyout.js +38 -0
- package/esm/browser/components/swipe-row.d.ts +297 -0
- package/esm/browser/components/swipe-row.js +34 -0
- package/esm/browser/components/ta-avatar.d.ts +23 -2
- package/esm/browser/components/ta-avatar.js +108 -30
- package/esm/browser/components/terminal-art.d.ts +7 -0
- package/esm/browser/components/terminal-art.js +12 -0
- package/esm/browser/components/tool-view.js +1 -1
- package/esm/browser/components/trusted-domains.js +2 -2
- package/esm/browser/components/voice-button.d.ts +11 -0
- package/esm/browser/components/voice-button.js +65 -0
- package/esm/browser/components/web-composer.js +1 -1
- package/esm/browser/components/workbench-toggle.d.ts +13 -0
- package/esm/browser/components/workbench-toggle.js +28 -1
- package/esm/browser/components/workbench-view.d.ts +6 -3
- package/esm/browser/components/workbench-view.js +30 -16
- package/esm/browser/components/working-directory.d.ts +1 -1
- package/esm/browser/components/working-directory.js +1 -1
- package/esm/browser/device/back-stack.d.ts +36 -0
- package/esm/browser/device/back-stack.js +71 -0
- package/esm/browser/device/device-protocol.d.ts +47 -0
- package/esm/browser/device/device-protocol.js +32 -0
- package/esm/browser/device/device.d.ts +106 -0
- package/esm/browser/device/device.js +283 -0
- package/esm/browser/device/field-dismiss.d.ts +31 -0
- package/esm/browser/device/field-dismiss.js +80 -0
- package/esm/browser/device/launch-screen.d.ts +35 -0
- package/esm/browser/device/launch-screen.js +72 -0
- package/esm/browser/device/long-press.d.ts +30 -0
- package/esm/browser/device/long-press.js +132 -0
- package/esm/browser/device/new-line.d.ts +14 -0
- package/esm/browser/device/new-line.js +38 -0
- package/esm/browser/device/pull-down.d.ts +46 -0
- package/esm/browser/device/pull-down.js +232 -0
- package/esm/browser/device/row-swipe.d.ts +26 -0
- package/esm/browser/device/row-swipe.js +204 -0
- package/esm/browser/device/scanner.d.ts +15 -0
- package/esm/browser/device/scanner.js +63 -0
- package/esm/browser/device/sheet-swipe.d.ts +109 -0
- package/esm/browser/device/sheet-swipe.js +380 -0
- package/esm/browser/editor/monaco-loader.d.ts +8 -3
- package/esm/browser/editor/monaco-loader.js +7 -3
- package/esm/browser/extension/icons.d.ts +4 -0
- package/esm/browser/extension/icons.js +33 -1
- package/esm/browser/extension/web-extension-api.d.ts +469 -7
- package/esm/browser/extension/web-extension-code.d.ts +15 -0
- package/esm/browser/extension/web-extension-code.js +55 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +70 -4
- package/esm/browser/extension/web-extensions.d.ts +70 -26
- package/esm/browser/extension/web-extensions.js +321 -113
- package/esm/browser/extension/web-keep-alive.d.ts +39 -0
- package/esm/browser/extension/web-keep-alive.js +79 -0
- package/esm/browser/extension/web-on-demand.d.ts +63 -0
- package/esm/browser/extension/web-on-demand.js +144 -0
- package/esm/browser/extension/web-pages.d.ts +74 -0
- package/esm/browser/extension/web-pages.js +77 -0
- package/esm/browser/extension/web-sharing.d.ts +21 -0
- package/esm/browser/extension/web-sharing.js +54 -0
- package/esm/browser/extension/web-tasks.d.ts +46 -0
- package/esm/browser/extension/web-tasks.js +134 -0
- package/esm/browser/extension/web-view-util.d.ts +44 -0
- package/esm/browser/extension/web-view-util.js +114 -0
- package/esm/browser/hooks.d.ts +6 -0
- package/esm/browser/hooks.js +9 -0
- package/esm/browser/hosts.d.ts +26 -0
- package/esm/browser/hosts.js +100 -0
- package/esm/browser/i18n/locales.d.ts +268 -10
- package/esm/browser/i18n/messages.d.ts +267 -9
- package/esm/browser/i18n/messages.js +574 -57
- package/esm/browser/i18n/use-t.d.ts +4 -0
- package/esm/browser/i18n/use-t.js +21 -3
- package/esm/browser/index.d.ts +10 -2
- package/esm/browser/index.js +10 -2
- package/esm/browser/notices/notices-protocol.d.ts +3 -0
- package/esm/browser/notices/notices.d.ts +3 -0
- package/esm/browser/notices/notices.js +15 -0
- package/esm/browser/settings/navigation.d.ts +45 -0
- package/esm/browser/settings/navigation.js +62 -0
- package/esm/browser/settings/settings-protocol.d.ts +40 -1
- package/esm/browser/settings/settings-protocol.js +50 -1
- package/esm/browser/settings/settings.js +5 -1
- package/esm/browser/state/state-protocol.d.ts +6 -1
- package/esm/browser/state/state-protocol.js +20 -0
- package/esm/browser/state/state.d.ts +4 -0
- package/esm/browser/state/state.js +23 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +32 -11
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +55 -29
- package/esm/browser/style/device.d.ts +5 -0
- package/esm/browser/style/device.js +154 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +177 -113
- package/esm/browser/style/pages.d.ts +2 -2
- package/esm/browser/style/pages.js +133 -24
- package/esm/browser/style/phone.d.ts +6 -0
- package/esm/browser/style/phone.js +110 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +105 -62
- package/esm/browser/style/surfaces.d.ts +5 -0
- package/esm/browser/style/surfaces.js +92 -0
- package/esm/browser/style/tasks.d.ts +6 -0
- package/esm/browser/style/tasks.js +80 -0
- package/esm/browser/style.d.ts +2 -1
- package/esm/browser/style.js +7 -2
- package/esm/browser/terminal/canvas-font.d.ts +10 -0
- package/esm/browser/terminal/canvas-font.js +34 -0
- package/esm/browser/terminal/terminal-links.d.ts +18 -0
- package/esm/browser/terminal/terminal-links.js +72 -0
- package/esm/browser/terminal/terminal-theme.d.ts +10 -0
- package/esm/browser/terminal/terminal-theme.js +73 -0
- package/esm/browser/terminal/web-terminal.d.ts +112 -0
- package/esm/browser/terminal/web-terminal.js +511 -0
- package/esm/browser/terminal/xterm.d.ts +5 -0
- package/esm/browser/terminal/xterm.js +9 -0
- package/esm/browser/util/composer.d.ts +20 -7
- package/esm/browser/util/composer.js +27 -5
- package/esm/browser/util/desktop.d.ts +43 -0
- package/esm/browser/util/desktop.js +55 -0
- package/esm/browser/util/file-drag.d.ts +26 -0
- package/esm/browser/util/file-drag.js +73 -0
- package/esm/browser/util/frame.d.ts +5 -0
- package/esm/browser/util/frame.js +8 -0
- package/esm/browser/util/message.d.ts +7 -0
- package/esm/browser/util/message.js +20 -0
- package/esm/browser/util/process.d.ts +3 -2
- package/esm/browser/util/process.js +7 -7
- package/esm/browser/util/share-link.d.ts +16 -0
- package/esm/browser/util/share-link.js +51 -0
- package/esm/browser/util/terminal-text.d.ts +33 -0
- package/esm/browser/util/terminal-text.js +209 -0
- package/esm/browser/util/tool.d.ts +1 -1
- package/esm/browser/util/tool.js +20 -3
- package/esm/browser/util/voice.d.ts +16 -0
- package/esm/browser/util/voice.js +77 -0
- package/esm/browser/workbench-protocol.d.ts +66 -7
- package/esm/browser/workbench.d.ts +76 -8
- package/esm/browser/workbench.js +407 -57
- package/lib/browser/assistant/assistant-chat-list.d.ts +5 -0
- package/lib/browser/assistant/assistant-chat-list.js +55 -0
- package/lib/browser/assistant/assistant-extension.d.ts +4 -1
- package/lib/browser/assistant/assistant-extension.js +95 -11
- package/lib/browser/assistant/assistant-protocol.d.ts +48 -0
- package/lib/browser/assistant/assistant-role.d.ts +82 -0
- package/lib/browser/assistant/assistant-role.js +49 -0
- package/lib/browser/assistant/assistant-state.d.ts +19 -0
- package/lib/browser/assistant/assistant-state.js +38 -0
- package/lib/browser/assistant/assistant-task-book.d.ts +31 -0
- package/lib/browser/assistant/assistant-task-book.js +72 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +55 -0
- package/lib/browser/assistant/assistant-task-source.js +161 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +49 -0
- package/lib/browser/assistant/assistant-task-util.js +108 -0
- package/lib/browser/assistant/assistant-tasks.d.ts +15 -28
- package/lib/browser/assistant/assistant-tasks.js +61 -89
- package/lib/browser/assistant/assistant-view.js +122 -83
- package/lib/browser/assistant/assistant.d.ts +91 -18
- package/lib/browser/assistant/assistant.js +400 -142
- package/lib/browser/assistant/task-card.d.ts +11 -0
- package/lib/browser/assistant/task-card.js +60 -0
- package/lib/browser/assistant/task-views.d.ts +45 -0
- package/lib/browser/assistant/task-views.js +230 -0
- package/lib/browser/avatar/dino-avatar.d.ts +33 -56
- package/lib/browser/avatar/dino-avatar.js +367 -147
- package/lib/browser/avatar/dino-motion.d.ts +9 -2
- package/lib/browser/avatar/dino-motion.js +299 -45
- package/lib/browser/avatar/dino-species.d.ts +124 -0
- package/lib/browser/avatar/dino-species.js +917 -0
- package/lib/browser/chat/chat-protocol.d.ts +40 -7
- package/lib/browser/chat/chat-protocol.js +8 -1
- package/lib/browser/chat/chat-view.d.ts +3 -1
- package/lib/browser/chat/chat-view.js +50 -8
- package/lib/browser/chat/chat.d.ts +54 -8
- package/lib/browser/chat/chat.js +233 -32
- package/lib/browser/chat/draft-model.d.ts +14 -0
- package/lib/browser/chat/draft-model.js +68 -0
- package/lib/browser/chat/recent-stores.d.ts +25 -0
- package/lib/browser/chat/recent-stores.js +43 -0
- package/lib/browser/components/access-util.d.ts +5 -0
- package/lib/browser/components/access-util.js +31 -0
- package/lib/browser/components/access-view.d.ts +17 -0
- package/lib/browser/components/access-view.js +162 -0
- package/lib/browser/components/account-menu.d.ts +59 -4
- package/lib/browser/components/account-menu.js +171 -40
- package/lib/browser/components/agent-settings-view.d.ts +1 -0
- package/lib/browser/components/agent-settings-view.js +11 -5
- package/lib/browser/components/app-nav.d.ts +45 -0
- package/lib/browser/components/app-nav.js +149 -0
- package/lib/browser/components/app-view.d.ts +1 -7
- package/lib/browser/components/app-view.js +295 -121
- package/lib/browser/components/auth-pictures.js +7 -10
- package/lib/browser/components/auth-view.js +18 -12
- package/lib/browser/components/board-util.d.ts +21 -0
- package/lib/browser/components/board-util.js +45 -0
- package/lib/browser/components/board.d.ts +15 -0
- package/lib/browser/components/board.js +129 -0
- package/lib/browser/components/chat-list.d.ts +62 -13
- package/lib/browser/components/chat-list.js +132 -34
- package/lib/browser/components/code-editor.d.ts +1 -1
- package/lib/browser/components/code-editor.js +5 -1
- package/lib/browser/components/composer-addons.d.ts +18 -0
- package/lib/browser/components/composer-addons.js +93 -0
- package/lib/browser/components/composer-box.d.ts +15 -4
- package/lib/browser/components/composer-box.js +71 -19
- package/lib/browser/components/composer.d.ts +4 -1
- package/lib/browser/components/composer.js +30 -9
- package/lib/browser/components/connection-bar.d.ts +9 -2
- package/lib/browser/components/connection-bar.js +114 -38
- package/lib/browser/components/context-menu.d.ts +24 -1
- package/lib/browser/components/context-menu.js +37 -8
- package/lib/browser/components/conversation-scroll.d.ts +3 -1
- package/lib/browser/components/conversation-scroll.js +57 -4
- package/lib/browser/components/dialog-view.d.ts +4 -1
- package/lib/browser/components/dialog-view.js +11 -7
- package/lib/browser/components/diff-editor.d.ts +1 -1
- package/lib/browser/components/diff-editor.js +5 -1
- package/lib/browser/components/dino-look-picker.d.ts +11 -0
- package/lib/browser/components/dino-look-picker.js +36 -0
- package/lib/browser/components/dino-look.d.ts +15 -0
- package/lib/browser/components/dino-look.js +91 -0
- package/lib/browser/components/dino.js +3 -3
- package/lib/browser/components/discover-view.d.ts +19 -0
- package/lib/browser/components/discover-view.js +74 -0
- package/lib/browser/components/earlier-messages.d.ts +31 -0
- package/lib/browser/components/earlier-messages.js +124 -0
- package/lib/browser/components/editor-area.js +6 -1
- package/lib/browser/components/empty-pictures.d.ts +8 -0
- package/lib/browser/components/empty-pictures.js +91 -0
- package/lib/browser/components/empty-state.d.ts +9 -0
- package/lib/browser/components/empty-state.js +51 -0
- package/lib/browser/components/environment-view.d.ts +20 -0
- package/lib/browser/components/environment-view.js +253 -0
- package/lib/browser/components/folder-picker.js +6 -3
- package/lib/browser/components/hero-cards.d.ts +4 -0
- package/lib/browser/components/hero-cards.js +17 -15
- package/lib/browser/components/host-tag.d.ts +10 -0
- package/lib/browser/components/host-tag.js +57 -0
- package/lib/browser/components/host-view.d.ts +35 -0
- package/lib/browser/components/host-view.js +208 -0
- package/lib/browser/components/kept-pages.d.ts +16 -0
- package/lib/browser/components/kept-pages.js +49 -0
- package/lib/browser/components/launch-settings.d.ts +4 -0
- package/lib/browser/components/launch-settings.js +74 -0
- package/lib/browser/components/launcher-search-util.d.ts +13 -0
- package/lib/browser/components/launcher-search-util.js +44 -0
- package/lib/browser/components/launcher-surface.d.ts +10 -0
- package/lib/browser/components/launcher-surface.js +103 -0
- package/lib/browser/components/list-rows.d.ts +22 -0
- package/lib/browser/components/list-rows.js +58 -0
- package/lib/browser/components/list-skeleton.d.ts +11 -0
- package/lib/browser/components/list-skeleton.js +68 -0
- package/lib/browser/components/me-view.d.ts +10 -0
- package/lib/browser/components/me-view.js +71 -0
- package/lib/browser/components/message-actions.js +1 -0
- package/lib/browser/components/message-footer.d.ts +2 -0
- package/lib/browser/components/message-list.js +48 -8
- package/lib/browser/components/message-menu.d.ts +21 -0
- package/lib/browser/components/message-menu.js +95 -0
- package/lib/browser/components/model-picker.d.ts +44 -0
- package/lib/browser/components/model-picker.js +206 -0
- package/lib/browser/components/nav-places.d.ts +47 -0
- package/lib/browser/components/nav-places.js +56 -0
- package/lib/browser/components/notice-center.js +3 -1
- package/lib/browser/components/option-list.d.ts +46 -0
- package/lib/browser/components/option-list.js +175 -0
- package/lib/browser/components/phone-shell.d.ts +73 -0
- package/lib/browser/components/phone-shell.js +265 -0
- package/lib/browser/components/picture.d.ts +16 -0
- package/lib/browser/components/picture.js +61 -0
- package/lib/browser/components/qr-view.d.ts +7 -0
- package/lib/browser/components/qr-view.js +48 -0
- package/lib/browser/components/relay-view.js +6 -13
- package/lib/browser/components/remote-hosts.js +2 -1
- package/lib/browser/components/search-page.d.ts +14 -0
- package/lib/browser/components/search-page.js +183 -0
- package/lib/browser/components/search-section.d.ts +17 -0
- package/lib/browser/components/search-section.js +136 -0
- package/lib/browser/components/session-settings.d.ts +7 -3
- package/lib/browser/components/session-settings.js +27 -17
- package/lib/browser/components/session-view.js +66 -8
- package/lib/browser/components/settings-controls.d.ts +22 -2
- package/lib/browser/components/settings-controls.js +39 -1
- package/lib/browser/components/settings-view.d.ts +8 -5
- package/lib/browser/components/settings-view.js +330 -89
- package/lib/browser/components/share-dialog.d.ts +14 -0
- package/lib/browser/components/share-dialog.js +120 -0
- package/lib/browser/components/side-lists.d.ts +38 -0
- package/lib/browser/components/side-lists.js +43 -0
- package/lib/browser/components/sign-in-accounts.d.ts +28 -0
- package/lib/browser/components/sign-in-accounts.js +102 -0
- package/lib/browser/components/sign-in-marks.d.ts +6 -0
- package/lib/browser/components/sign-in-marks.js +66 -0
- package/lib/browser/components/sign-in-picture.d.ts +8 -0
- package/lib/browser/components/sign-in-picture.js +100 -0
- package/lib/browser/components/sortable.d.ts +14 -0
- package/lib/browser/components/sortable.js +124 -0
- package/lib/browser/components/surface-flyout.d.ts +11 -0
- package/lib/browser/components/surface-flyout.js +74 -0
- package/lib/browser/components/swipe-row.d.ts +298 -0
- package/lib/browser/components/swipe-row.js +70 -0
- package/lib/browser/components/ta-avatar.d.ts +23 -2
- package/lib/browser/components/ta-avatar.js +109 -29
- package/lib/browser/components/terminal-art.d.ts +8 -0
- package/lib/browser/components/terminal-art.js +48 -0
- package/lib/browser/components/tool-view.js +1 -1
- package/lib/browser/components/trusted-domains.js +1 -1
- package/lib/browser/components/voice-button.d.ts +12 -0
- package/lib/browser/components/voice-button.js +101 -0
- package/lib/browser/components/web-composer.js +1 -1
- package/lib/browser/components/workbench-toggle.d.ts +13 -0
- package/lib/browser/components/workbench-toggle.js +29 -1
- package/lib/browser/components/workbench-view.d.ts +6 -3
- package/lib/browser/components/workbench-view.js +30 -16
- package/lib/browser/components/working-directory.d.ts +1 -1
- package/lib/browser/components/working-directory.js +1 -1
- package/lib/browser/device/back-stack.d.ts +37 -0
- package/lib/browser/device/back-stack.js +109 -0
- package/lib/browser/device/device-protocol.d.ts +48 -0
- package/lib/browser/device/device-protocol.js +35 -0
- package/lib/browser/device/device.d.ts +107 -0
- package/lib/browser/device/device.js +323 -0
- package/lib/browser/device/field-dismiss.d.ts +32 -0
- package/lib/browser/device/field-dismiss.js +84 -0
- package/lib/browser/device/launch-screen.d.ts +36 -0
- package/lib/browser/device/launch-screen.js +76 -0
- package/lib/browser/device/long-press.d.ts +31 -0
- package/lib/browser/device/long-press.js +136 -0
- package/lib/browser/device/new-line.d.ts +15 -0
- package/lib/browser/device/new-line.js +42 -0
- package/lib/browser/device/pull-down.d.ts +47 -0
- package/lib/browser/device/pull-down.js +269 -0
- package/lib/browser/device/row-swipe.d.ts +27 -0
- package/lib/browser/device/row-swipe.js +241 -0
- package/lib/browser/device/scanner.d.ts +16 -0
- package/lib/browser/device/scanner.js +67 -0
- package/lib/browser/device/sheet-swipe.d.ts +110 -0
- package/lib/browser/device/sheet-swipe.js +419 -0
- package/lib/browser/editor/monaco-loader.d.ts +8 -3
- package/lib/browser/editor/monaco-loader.js +7 -3
- package/lib/browser/extension/icons.d.ts +4 -0
- package/lib/browser/extension/icons.js +33 -1
- package/lib/browser/extension/web-extension-api.d.ts +469 -7
- package/lib/browser/extension/web-extension-code.d.ts +16 -0
- package/lib/browser/extension/web-extension-code.js +59 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +70 -4
- package/lib/browser/extension/web-extensions.d.ts +70 -26
- package/lib/browser/extension/web-extensions.js +328 -120
- package/lib/browser/extension/web-keep-alive.d.ts +40 -0
- package/lib/browser/extension/web-keep-alive.js +83 -0
- package/lib/browser/extension/web-on-demand.d.ts +64 -0
- package/lib/browser/extension/web-on-demand.js +148 -0
- package/lib/browser/extension/web-pages.d.ts +75 -0
- package/lib/browser/extension/web-pages.js +80 -0
- package/lib/browser/extension/web-sharing.d.ts +22 -0
- package/lib/browser/extension/web-sharing.js +58 -0
- package/lib/browser/extension/web-tasks.d.ts +47 -0
- package/lib/browser/extension/web-tasks.js +138 -0
- package/lib/browser/extension/web-view-util.d.ts +45 -0
- package/lib/browser/extension/web-view-util.js +150 -0
- package/lib/browser/hooks.d.ts +6 -0
- package/lib/browser/hooks.js +11 -0
- package/lib/browser/hosts.d.ts +27 -0
- package/lib/browser/hosts.js +103 -0
- package/lib/browser/i18n/locales.d.ts +268 -10
- package/lib/browser/i18n/messages.d.ts +267 -9
- package/lib/browser/i18n/messages.js +574 -57
- package/lib/browser/i18n/use-t.d.ts +4 -0
- package/lib/browser/i18n/use-t.js +22 -2
- package/lib/browser/index.d.ts +10 -2
- package/lib/browser/index.js +10 -2
- package/lib/browser/notices/notices-protocol.d.ts +3 -0
- package/lib/browser/notices/notices.d.ts +3 -0
- package/lib/browser/notices/notices.js +15 -0
- package/lib/browser/settings/navigation.d.ts +46 -0
- package/lib/browser/settings/navigation.js +65 -0
- package/lib/browser/settings/settings-protocol.d.ts +40 -1
- package/lib/browser/settings/settings-protocol.js +51 -2
- package/lib/browser/settings/settings.js +4 -0
- package/lib/browser/state/state-protocol.d.ts +6 -1
- package/lib/browser/state/state-protocol.js +20 -0
- package/lib/browser/state/state.d.ts +4 -0
- package/lib/browser/state/state.js +23 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +32 -11
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +55 -29
- package/lib/browser/style/device.d.ts +6 -0
- package/lib/browser/style/device.js +157 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +177 -113
- package/lib/browser/style/pages.d.ts +2 -2
- package/lib/browser/style/pages.js +133 -24
- package/lib/browser/style/phone.d.ts +7 -0
- package/lib/browser/style/phone.js +113 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +105 -62
- package/lib/browser/style/surfaces.d.ts +6 -0
- package/lib/browser/style/surfaces.js +95 -0
- package/lib/browser/style/tasks.d.ts +7 -0
- package/lib/browser/style/tasks.js +83 -0
- package/lib/browser/style.d.ts +2 -1
- package/lib/browser/style.js +7 -2
- package/lib/browser/terminal/canvas-font.d.ts +11 -0
- package/lib/browser/terminal/canvas-font.js +37 -0
- package/lib/browser/terminal/terminal-links.d.ts +19 -0
- package/lib/browser/terminal/terminal-links.js +75 -0
- package/lib/browser/terminal/terminal-theme.d.ts +11 -0
- package/lib/browser/terminal/terminal-theme.js +76 -0
- package/lib/browser/terminal/web-terminal.d.ts +113 -0
- package/lib/browser/terminal/web-terminal.js +515 -0
- package/lib/browser/terminal/xterm.d.ts +6 -0
- package/lib/browser/terminal/xterm.js +16 -0
- package/lib/browser/util/composer.d.ts +20 -7
- package/lib/browser/util/composer.js +27 -5
- package/lib/browser/util/desktop.d.ts +44 -0
- package/lib/browser/util/desktop.js +58 -0
- package/lib/browser/util/file-drag.d.ts +27 -0
- package/lib/browser/util/file-drag.js +76 -0
- package/lib/browser/util/frame.d.ts +5 -0
- package/lib/browser/util/frame.js +8 -0
- package/lib/browser/util/message.d.ts +7 -0
- package/lib/browser/util/message.js +20 -0
- package/lib/browser/util/process.d.ts +3 -2
- package/lib/browser/util/process.js +7 -7
- package/lib/browser/util/share-link.d.ts +17 -0
- package/lib/browser/util/share-link.js +54 -0
- package/lib/browser/util/terminal-text.d.ts +34 -0
- package/lib/browser/util/terminal-text.js +212 -0
- package/lib/browser/util/tool.d.ts +1 -1
- package/lib/browser/util/tool.js +20 -3
- package/lib/browser/util/voice.d.ts +17 -0
- package/lib/browser/util/voice.js +80 -0
- package/lib/browser/workbench-protocol.d.ts +66 -7
- package/lib/browser/workbench.d.ts +76 -8
- package/lib/browser/workbench.js +408 -57
- package/package.json +14 -8
- package/public/launch.svg +49 -0
- package/esm/browser/assistant/assistant-export.js.map +0 -1
- package/esm/browser/assistant/assistant-extension.js.map +0 -1
- package/esm/browser/assistant/assistant-hooks.js.map +0 -1
- package/esm/browser/assistant/assistant-protocol.js.map +0 -1
- package/esm/browser/assistant/assistant-tasks.js.map +0 -1
- package/esm/browser/assistant/assistant-view.js.map +0 -1
- package/esm/browser/assistant/assistant.js.map +0 -1
- package/esm/browser/assistant/voice.d.ts +0 -14
- package/esm/browser/assistant/voice.js +0 -72
- package/esm/browser/assistant/voice.js.map +0 -1
- package/esm/browser/avatar/dino-avatar.js.map +0 -1
- package/esm/browser/avatar/dino-motion.js.map +0 -1
- package/esm/browser/chat/chat-protocol.js.map +0 -1
- package/esm/browser/chat/chat-view.js.map +0 -1
- package/esm/browser/chat/chat.js.map +0 -1
- package/esm/browser/components/account-menu.js.map +0 -1
- package/esm/browser/components/agent-settings-view.js.map +0 -1
- package/esm/browser/components/app-view.js.map +0 -1
- package/esm/browser/components/auth-pictures.js.map +0 -1
- package/esm/browser/components/auth-view.js.map +0 -1
- package/esm/browser/components/callout.js.map +0 -1
- package/esm/browser/components/chat-list.js.map +0 -1
- package/esm/browser/components/code-editor.js.map +0 -1
- package/esm/browser/components/composer-box.js.map +0 -1
- package/esm/browser/components/composer-menu.js.map +0 -1
- package/esm/browser/components/composer.js.map +0 -1
- package/esm/browser/components/connection-bar.js.map +0 -1
- package/esm/browser/components/context-menu.js.map +0 -1
- package/esm/browser/components/conversation-scroll.js.map +0 -1
- package/esm/browser/components/dialog-view.js.map +0 -1
- package/esm/browser/components/diff-editor.js.map +0 -1
- package/esm/browser/components/diff-view.js.map +0 -1
- package/esm/browser/components/dino.js.map +0 -1
- package/esm/browser/components/editor-area.js.map +0 -1
- package/esm/browser/components/folder-picker.js.map +0 -1
- package/esm/browser/components/fork-view.js.map +0 -1
- package/esm/browser/components/hero-cards.js.map +0 -1
- package/esm/browser/components/icon.js.map +0 -1
- package/esm/browser/components/link-dialog.js.map +0 -1
- package/esm/browser/components/link.js.map +0 -1
- package/esm/browser/components/manage-menu.d.ts +0 -13
- package/esm/browser/components/manage-menu.js +0 -96
- package/esm/browser/components/manage-menu.js.map +0 -1
- package/esm/browser/components/markdown.js.map +0 -1
- package/esm/browser/components/math.js.map +0 -1
- package/esm/browser/components/media.js.map +0 -1
- package/esm/browser/components/mermaid-view.js.map +0 -1
- package/esm/browser/components/message-actions.js.map +0 -1
- package/esm/browser/components/message-footer.js.map +0 -1
- package/esm/browser/components/message-list.js.map +0 -1
- package/esm/browser/components/notice-center.js.map +0 -1
- package/esm/browser/components/relay-view.js.map +0 -1
- package/esm/browser/components/remote-hosts.js.map +0 -1
- package/esm/browser/components/remote-prompts.js.map +0 -1
- package/esm/browser/components/run-status.js.map +0 -1
- package/esm/browser/components/session-settings.js.map +0 -1
- package/esm/browser/components/session-view.js.map +0 -1
- package/esm/browser/components/settings-controls.js.map +0 -1
- package/esm/browser/components/settings-view.js.map +0 -1
- package/esm/browser/components/split-pane.js.map +0 -1
- package/esm/browser/components/ta-avatar.js.map +0 -1
- package/esm/browser/components/tool-view.js.map +0 -1
- package/esm/browser/components/trusted-domains.js.map +0 -1
- package/esm/browser/components/web-composer.js.map +0 -1
- package/esm/browser/components/web-dialog.js.map +0 -1
- package/esm/browser/components/workbench-toggle.js.map +0 -1
- package/esm/browser/components/workbench-view.js.map +0 -1
- package/esm/browser/components/working-directory.js.map +0 -1
- package/esm/browser/editor/monaco-loader.js.map +0 -1
- package/esm/browser/editor/monaco.js.map +0 -1
- package/esm/browser/extension/extension-view.js.map +0 -1
- package/esm/browser/extension/icons.js.map +0 -1
- package/esm/browser/extension/web-extension-api.js.map +0 -1
- package/esm/browser/extension/web-extension-protocol.js.map +0 -1
- package/esm/browser/extension/web-extensions.js.map +0 -1
- package/esm/browser/hooks.js.map +0 -1
- package/esm/browser/i18n/locales.js.map +0 -1
- package/esm/browser/i18n/messages.js.map +0 -1
- package/esm/browser/i18n/use-t.js.map +0 -1
- package/esm/browser/index.js.map +0 -1
- package/esm/browser/links/links-protocol.js.map +0 -1
- package/esm/browser/links/links.js.map +0 -1
- package/esm/browser/markdown/hooks.js.map +0 -1
- package/esm/browser/markdown/lazy.js.map +0 -1
- package/esm/browser/markdown/math.js.map +0 -1
- package/esm/browser/markdown/mermaid.js.map +0 -1
- package/esm/browser/module.js.map +0 -1
- package/esm/browser/notices/notices-protocol.js.map +0 -1
- package/esm/browser/notices/notices.js.map +0 -1
- package/esm/browser/pwa/pwa-protocol.js.map +0 -1
- package/esm/browser/pwa/pwa.js.map +0 -1
- package/esm/browser/settings/agent-settings.js.map +0 -1
- package/esm/browser/settings/settings-protocol.js.map +0 -1
- package/esm/browser/settings/settings.js.map +0 -1
- package/esm/browser/state/state-protocol.js.map +0 -1
- package/esm/browser/state/state.js.map +0 -1
- package/esm/browser/style/base.js.map +0 -1
- package/esm/browser/style/conversation.js.map +0 -1
- package/esm/browser/style/layout.js.map +0 -1
- package/esm/browser/style/pages.js.map +0 -1
- package/esm/browser/style/shell.js.map +0 -1
- package/esm/browser/style.js.map +0 -1
- package/esm/browser/util/composer.js.map +0 -1
- package/esm/browser/util/diff.js.map +0 -1
- package/esm/browser/util/frame.js.map +0 -1
- package/esm/browser/util/layout.js.map +0 -1
- package/esm/browser/util/link.js.map +0 -1
- package/esm/browser/util/markdown.js.map +0 -1
- package/esm/browser/util/message.js.map +0 -1
- package/esm/browser/util/process.js.map +0 -1
- package/esm/browser/util/progress.js.map +0 -1
- package/esm/browser/util/qr-code.d.ts +0 -37
- package/esm/browser/util/qr-code.js +0 -349
- package/esm/browser/util/qr-code.js.map +0 -1
- package/esm/browser/util/tool.js.map +0 -1
- package/esm/browser/view.js.map +0 -1
- package/esm/browser/workbench-protocol.js.map +0 -1
- package/esm/browser/workbench.js.map +0 -1
- package/lib/browser/assistant/assistant-export.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-export.js.map +0 -1
- package/lib/browser/assistant/assistant-export.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant-export.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-export.spec.js +0 -27
- package/lib/browser/assistant/assistant-export.spec.js.map +0 -1
- package/lib/browser/assistant/assistant-extension.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-extension.js.map +0 -1
- package/lib/browser/assistant/assistant-extension.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant-extension.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-extension.spec.js +0 -121
- package/lib/browser/assistant/assistant-extension.spec.js.map +0 -1
- package/lib/browser/assistant/assistant-hooks.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-hooks.js.map +0 -1
- package/lib/browser/assistant/assistant-protocol.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-protocol.js.map +0 -1
- package/lib/browser/assistant/assistant-tasks.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-tasks.js.map +0 -1
- package/lib/browser/assistant/assistant-view.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-view.js.map +0 -1
- package/lib/browser/assistant/assistant.d.ts.map +0 -1
- package/lib/browser/assistant/assistant.js.map +0 -1
- package/lib/browser/assistant/assistant.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant.spec.js +0 -80
- package/lib/browser/assistant/assistant.spec.js.map +0 -1
- package/lib/browser/assistant/voice.d.ts +0 -15
- package/lib/browser/assistant/voice.d.ts.map +0 -1
- package/lib/browser/assistant/voice.js +0 -75
- package/lib/browser/assistant/voice.js.map +0 -1
- package/lib/browser/assistant/voice.spec.d.ts +0 -2
- package/lib/browser/assistant/voice.spec.d.ts.map +0 -1
- package/lib/browser/assistant/voice.spec.js +0 -10
- package/lib/browser/assistant/voice.spec.js.map +0 -1
- package/lib/browser/avatar/dino-avatar.d.ts.map +0 -1
- package/lib/browser/avatar/dino-avatar.js.map +0 -1
- package/lib/browser/avatar/dino-avatar.spec.d.ts +0 -2
- package/lib/browser/avatar/dino-avatar.spec.d.ts.map +0 -1
- package/lib/browser/avatar/dino-avatar.spec.js +0 -143
- package/lib/browser/avatar/dino-avatar.spec.js.map +0 -1
- package/lib/browser/avatar/dino-motion.d.ts.map +0 -1
- package/lib/browser/avatar/dino-motion.js.map +0 -1
- package/lib/browser/chat/chat-protocol.d.ts.map +0 -1
- package/lib/browser/chat/chat-protocol.js.map +0 -1
- package/lib/browser/chat/chat-view.d.ts.map +0 -1
- package/lib/browser/chat/chat-view.js.map +0 -1
- package/lib/browser/chat/chat.d.ts.map +0 -1
- package/lib/browser/chat/chat.js.map +0 -1
- package/lib/browser/chat/chat.spec.d.ts +0 -2
- package/lib/browser/chat/chat.spec.d.ts.map +0 -1
- package/lib/browser/chat/chat.spec.js +0 -185
- package/lib/browser/chat/chat.spec.js.map +0 -1
- package/lib/browser/components/account-menu.d.ts.map +0 -1
- package/lib/browser/components/account-menu.js.map +0 -1
- package/lib/browser/components/agent-settings-view.d.ts.map +0 -1
- package/lib/browser/components/agent-settings-view.js.map +0 -1
- package/lib/browser/components/app-view.d.ts.map +0 -1
- package/lib/browser/components/app-view.js.map +0 -1
- package/lib/browser/components/auth-pictures.d.ts.map +0 -1
- package/lib/browser/components/auth-pictures.js.map +0 -1
- package/lib/browser/components/auth-view.d.ts.map +0 -1
- package/lib/browser/components/auth-view.js.map +0 -1
- package/lib/browser/components/callout.d.ts.map +0 -1
- package/lib/browser/components/callout.js.map +0 -1
- package/lib/browser/components/chat-list.d.ts.map +0 -1
- package/lib/browser/components/chat-list.js.map +0 -1
- package/lib/browser/components/chat-list.spec.d.ts +0 -2
- package/lib/browser/components/chat-list.spec.d.ts.map +0 -1
- package/lib/browser/components/chat-list.spec.js +0 -61
- package/lib/browser/components/chat-list.spec.js.map +0 -1
- package/lib/browser/components/code-editor.d.ts.map +0 -1
- package/lib/browser/components/code-editor.js.map +0 -1
- package/lib/browser/components/composer-box.d.ts.map +0 -1
- package/lib/browser/components/composer-box.js.map +0 -1
- package/lib/browser/components/composer-menu.d.ts.map +0 -1
- package/lib/browser/components/composer-menu.js.map +0 -1
- package/lib/browser/components/composer.d.ts.map +0 -1
- package/lib/browser/components/composer.js.map +0 -1
- package/lib/browser/components/composer.spec.d.ts +0 -2
- package/lib/browser/components/composer.spec.d.ts.map +0 -1
- package/lib/browser/components/composer.spec.js +0 -129
- package/lib/browser/components/composer.spec.js.map +0 -1
- package/lib/browser/components/connection-bar.d.ts.map +0 -1
- package/lib/browser/components/connection-bar.js.map +0 -1
- package/lib/browser/components/context-menu.d.ts.map +0 -1
- package/lib/browser/components/context-menu.js.map +0 -1
- package/lib/browser/components/conversation-scroll.d.ts.map +0 -1
- package/lib/browser/components/conversation-scroll.js.map +0 -1
- package/lib/browser/components/dialog-view.d.ts.map +0 -1
- package/lib/browser/components/dialog-view.js.map +0 -1
- package/lib/browser/components/diff-editor.d.ts.map +0 -1
- package/lib/browser/components/diff-editor.js.map +0 -1
- package/lib/browser/components/diff-view.d.ts.map +0 -1
- package/lib/browser/components/diff-view.js.map +0 -1
- package/lib/browser/components/dino.d.ts.map +0 -1
- package/lib/browser/components/dino.js.map +0 -1
- package/lib/browser/components/editor-area.d.ts.map +0 -1
- package/lib/browser/components/editor-area.js.map +0 -1
- package/lib/browser/components/folder-picker.d.ts.map +0 -1
- package/lib/browser/components/folder-picker.js.map +0 -1
- package/lib/browser/components/folder-picker.spec.d.ts +0 -2
- package/lib/browser/components/folder-picker.spec.d.ts.map +0 -1
- package/lib/browser/components/folder-picker.spec.js +0 -43
- package/lib/browser/components/folder-picker.spec.js.map +0 -1
- package/lib/browser/components/fork-view.d.ts.map +0 -1
- package/lib/browser/components/fork-view.js.map +0 -1
- package/lib/browser/components/hero-cards.d.ts.map +0 -1
- package/lib/browser/components/hero-cards.js.map +0 -1
- package/lib/browser/components/icon.d.ts.map +0 -1
- package/lib/browser/components/icon.js.map +0 -1
- package/lib/browser/components/link-dialog.d.ts.map +0 -1
- package/lib/browser/components/link-dialog.js.map +0 -1
- package/lib/browser/components/link.d.ts.map +0 -1
- package/lib/browser/components/link.js.map +0 -1
- package/lib/browser/components/manage-menu.d.ts +0 -14
- package/lib/browser/components/manage-menu.d.ts.map +0 -1
- package/lib/browser/components/manage-menu.js +0 -132
- package/lib/browser/components/manage-menu.js.map +0 -1
- package/lib/browser/components/markdown.d.ts.map +0 -1
- package/lib/browser/components/markdown.js.map +0 -1
- package/lib/browser/components/markdown.spec.d.ts +0 -2
- package/lib/browser/components/markdown.spec.d.ts.map +0 -1
- package/lib/browser/components/markdown.spec.js +0 -72
- package/lib/browser/components/markdown.spec.js.map +0 -1
- package/lib/browser/components/math.d.ts.map +0 -1
- package/lib/browser/components/math.js.map +0 -1
- package/lib/browser/components/media.d.ts.map +0 -1
- package/lib/browser/components/media.js.map +0 -1
- package/lib/browser/components/mermaid-view.d.ts.map +0 -1
- package/lib/browser/components/mermaid-view.js.map +0 -1
- package/lib/browser/components/message-actions.d.ts.map +0 -1
- package/lib/browser/components/message-actions.js.map +0 -1
- package/lib/browser/components/message-footer.d.ts.map +0 -1
- package/lib/browser/components/message-footer.js.map +0 -1
- package/lib/browser/components/message-list.d.ts.map +0 -1
- package/lib/browser/components/message-list.js.map +0 -1
- package/lib/browser/components/message-list.spec.d.ts +0 -2
- package/lib/browser/components/message-list.spec.d.ts.map +0 -1
- package/lib/browser/components/message-list.spec.js +0 -269
- package/lib/browser/components/message-list.spec.js.map +0 -1
- package/lib/browser/components/notice-center.d.ts.map +0 -1
- package/lib/browser/components/notice-center.js.map +0 -1
- package/lib/browser/components/relay-view.d.ts.map +0 -1
- package/lib/browser/components/relay-view.js.map +0 -1
- package/lib/browser/components/remote-hosts.d.ts.map +0 -1
- package/lib/browser/components/remote-hosts.js.map +0 -1
- package/lib/browser/components/remote-prompts.d.ts.map +0 -1
- package/lib/browser/components/remote-prompts.js.map +0 -1
- package/lib/browser/components/run-status.d.ts.map +0 -1
- package/lib/browser/components/run-status.js.map +0 -1
- package/lib/browser/components/session-settings.d.ts.map +0 -1
- package/lib/browser/components/session-settings.js.map +0 -1
- package/lib/browser/components/session-settings.spec.d.ts +0 -2
- package/lib/browser/components/session-settings.spec.d.ts.map +0 -1
- package/lib/browser/components/session-settings.spec.js +0 -47
- package/lib/browser/components/session-settings.spec.js.map +0 -1
- package/lib/browser/components/session-view.d.ts.map +0 -1
- package/lib/browser/components/session-view.js.map +0 -1
- package/lib/browser/components/settings-controls.d.ts.map +0 -1
- package/lib/browser/components/settings-controls.js.map +0 -1
- package/lib/browser/components/settings-view.d.ts.map +0 -1
- package/lib/browser/components/settings-view.js.map +0 -1
- package/lib/browser/components/split-pane.d.ts.map +0 -1
- package/lib/browser/components/split-pane.js.map +0 -1
- package/lib/browser/components/ta-avatar.d.ts.map +0 -1
- package/lib/browser/components/ta-avatar.js.map +0 -1
- package/lib/browser/components/ta-avatar.spec.d.ts +0 -2
- package/lib/browser/components/ta-avatar.spec.d.ts.map +0 -1
- package/lib/browser/components/ta-avatar.spec.js +0 -60
- package/lib/browser/components/ta-avatar.spec.js.map +0 -1
- package/lib/browser/components/tool-view.d.ts.map +0 -1
- package/lib/browser/components/tool-view.js.map +0 -1
- package/lib/browser/components/trusted-domains.d.ts.map +0 -1
- package/lib/browser/components/trusted-domains.js.map +0 -1
- package/lib/browser/components/web-composer.d.ts.map +0 -1
- package/lib/browser/components/web-composer.js.map +0 -1
- package/lib/browser/components/web-dialog.d.ts.map +0 -1
- package/lib/browser/components/web-dialog.js.map +0 -1
- package/lib/browser/components/workbench-toggle.d.ts.map +0 -1
- package/lib/browser/components/workbench-toggle.js.map +0 -1
- package/lib/browser/components/workbench-toggle.spec.d.ts +0 -2
- package/lib/browser/components/workbench-toggle.spec.d.ts.map +0 -1
- package/lib/browser/components/workbench-toggle.spec.js +0 -64
- package/lib/browser/components/workbench-toggle.spec.js.map +0 -1
- package/lib/browser/components/workbench-view.d.ts.map +0 -1
- package/lib/browser/components/workbench-view.js.map +0 -1
- package/lib/browser/components/working-directory.d.ts.map +0 -1
- package/lib/browser/components/working-directory.js.map +0 -1
- package/lib/browser/editor/monaco-loader.d.ts.map +0 -1
- package/lib/browser/editor/monaco-loader.js.map +0 -1
- package/lib/browser/editor/monaco-loader.spec.d.ts +0 -2
- package/lib/browser/editor/monaco-loader.spec.d.ts.map +0 -1
- package/lib/browser/editor/monaco-loader.spec.js +0 -39
- package/lib/browser/editor/monaco-loader.spec.js.map +0 -1
- package/lib/browser/editor/monaco.d.ts.map +0 -1
- package/lib/browser/editor/monaco.js.map +0 -1
- package/lib/browser/extension/extension-view.d.ts.map +0 -1
- package/lib/browser/extension/extension-view.js.map +0 -1
- package/lib/browser/extension/icons.d.ts.map +0 -1
- package/lib/browser/extension/icons.js.map +0 -1
- package/lib/browser/extension/web-extension-api.d.ts.map +0 -1
- package/lib/browser/extension/web-extension-api.js.map +0 -1
- package/lib/browser/extension/web-extension-protocol.d.ts.map +0 -1
- package/lib/browser/extension/web-extension-protocol.js.map +0 -1
- package/lib/browser/extension/web-extensions.d.ts.map +0 -1
- package/lib/browser/extension/web-extensions.js.map +0 -1
- package/lib/browser/extension/web-extensions.spec.d.ts +0 -2
- package/lib/browser/extension/web-extensions.spec.d.ts.map +0 -1
- package/lib/browser/extension/web-extensions.spec.js +0 -617
- package/lib/browser/extension/web-extensions.spec.js.map +0 -1
- package/lib/browser/hooks.d.ts.map +0 -1
- package/lib/browser/hooks.js.map +0 -1
- package/lib/browser/i18n/locales.d.ts.map +0 -1
- package/lib/browser/i18n/locales.js.map +0 -1
- package/lib/browser/i18n/messages.d.ts.map +0 -1
- package/lib/browser/i18n/messages.js.map +0 -1
- package/lib/browser/i18n/use-t.d.ts.map +0 -1
- package/lib/browser/i18n/use-t.js.map +0 -1
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/links/links-protocol.d.ts.map +0 -1
- package/lib/browser/links/links-protocol.js.map +0 -1
- package/lib/browser/links/links.d.ts.map +0 -1
- package/lib/browser/links/links.js.map +0 -1
- package/lib/browser/links/links.spec.d.ts +0 -2
- package/lib/browser/links/links.spec.d.ts.map +0 -1
- package/lib/browser/links/links.spec.js +0 -123
- package/lib/browser/links/links.spec.js.map +0 -1
- package/lib/browser/markdown/hooks.d.ts.map +0 -1
- package/lib/browser/markdown/hooks.js.map +0 -1
- package/lib/browser/markdown/lazy.d.ts.map +0 -1
- package/lib/browser/markdown/lazy.js.map +0 -1
- package/lib/browser/markdown/lazy.spec.d.ts +0 -2
- package/lib/browser/markdown/lazy.spec.d.ts.map +0 -1
- package/lib/browser/markdown/lazy.spec.js +0 -35
- package/lib/browser/markdown/lazy.spec.js.map +0 -1
- package/lib/browser/markdown/math.d.ts.map +0 -1
- package/lib/browser/markdown/math.js.map +0 -1
- package/lib/browser/markdown/math.spec.d.ts +0 -2
- package/lib/browser/markdown/math.spec.d.ts.map +0 -1
- package/lib/browser/markdown/math.spec.js +0 -24
- package/lib/browser/markdown/math.spec.js.map +0 -1
- package/lib/browser/markdown/mermaid.d.ts.map +0 -1
- package/lib/browser/markdown/mermaid.js.map +0 -1
- package/lib/browser/markdown/mermaid.spec.d.ts +0 -2
- package/lib/browser/markdown/mermaid.spec.d.ts.map +0 -1
- package/lib/browser/markdown/mermaid.spec.js +0 -21
- package/lib/browser/markdown/mermaid.spec.js.map +0 -1
- package/lib/browser/module.d.ts.map +0 -1
- package/lib/browser/module.js.map +0 -1
- package/lib/browser/notices/notices-protocol.d.ts.map +0 -1
- package/lib/browser/notices/notices-protocol.js.map +0 -1
- package/lib/browser/notices/notices.d.ts.map +0 -1
- package/lib/browser/notices/notices.js.map +0 -1
- package/lib/browser/notices/notices.spec.d.ts +0 -2
- package/lib/browser/notices/notices.spec.d.ts.map +0 -1
- package/lib/browser/notices/notices.spec.js +0 -96
- package/lib/browser/notices/notices.spec.js.map +0 -1
- package/lib/browser/pwa/pwa-protocol.d.ts.map +0 -1
- package/lib/browser/pwa/pwa-protocol.js.map +0 -1
- package/lib/browser/pwa/pwa.d.ts.map +0 -1
- package/lib/browser/pwa/pwa.js.map +0 -1
- package/lib/browser/pwa/pwa.spec.d.ts +0 -2
- package/lib/browser/pwa/pwa.spec.d.ts.map +0 -1
- package/lib/browser/pwa/pwa.spec.js +0 -134
- package/lib/browser/pwa/pwa.spec.js.map +0 -1
- package/lib/browser/settings/agent-settings.d.ts.map +0 -1
- package/lib/browser/settings/agent-settings.js.map +0 -1
- package/lib/browser/settings/agent-settings.spec.d.ts +0 -2
- package/lib/browser/settings/agent-settings.spec.d.ts.map +0 -1
- package/lib/browser/settings/agent-settings.spec.js +0 -53
- package/lib/browser/settings/agent-settings.spec.js.map +0 -1
- package/lib/browser/settings/settings-protocol.d.ts.map +0 -1
- package/lib/browser/settings/settings-protocol.js.map +0 -1
- package/lib/browser/settings/settings.d.ts.map +0 -1
- package/lib/browser/settings/settings.js.map +0 -1
- package/lib/browser/settings/settings.spec.d.ts +0 -2
- package/lib/browser/settings/settings.spec.d.ts.map +0 -1
- package/lib/browser/settings/settings.spec.js +0 -32
- package/lib/browser/settings/settings.spec.js.map +0 -1
- package/lib/browser/state/state-protocol.d.ts.map +0 -1
- package/lib/browser/state/state-protocol.js.map +0 -1
- package/lib/browser/state/state.d.ts.map +0 -1
- package/lib/browser/state/state.js.map +0 -1
- package/lib/browser/state/state.spec.d.ts +0 -2
- package/lib/browser/state/state.spec.d.ts.map +0 -1
- package/lib/browser/state/state.spec.js +0 -201
- package/lib/browser/state/state.spec.js.map +0 -1
- package/lib/browser/style/base.d.ts.map +0 -1
- package/lib/browser/style/base.js.map +0 -1
- package/lib/browser/style/conversation.d.ts.map +0 -1
- package/lib/browser/style/conversation.js.map +0 -1
- package/lib/browser/style/layout.d.ts.map +0 -1
- package/lib/browser/style/layout.js.map +0 -1
- package/lib/browser/style/pages.d.ts.map +0 -1
- package/lib/browser/style/pages.js.map +0 -1
- package/lib/browser/style/shell.d.ts.map +0 -1
- package/lib/browser/style/shell.js.map +0 -1
- package/lib/browser/style.d.ts.map +0 -1
- package/lib/browser/style.js.map +0 -1
- package/lib/browser/util/composer.d.ts.map +0 -1
- package/lib/browser/util/composer.js.map +0 -1
- package/lib/browser/util/composer.spec.d.ts +0 -2
- package/lib/browser/util/composer.spec.d.ts.map +0 -1
- package/lib/browser/util/composer.spec.js +0 -66
- package/lib/browser/util/composer.spec.js.map +0 -1
- package/lib/browser/util/diff.d.ts.map +0 -1
- package/lib/browser/util/diff.js.map +0 -1
- package/lib/browser/util/diff.spec.d.ts +0 -2
- package/lib/browser/util/diff.spec.d.ts.map +0 -1
- package/lib/browser/util/diff.spec.js +0 -21
- package/lib/browser/util/diff.spec.js.map +0 -1
- package/lib/browser/util/frame.d.ts.map +0 -1
- package/lib/browser/util/frame.js.map +0 -1
- package/lib/browser/util/frame.spec.d.ts +0 -2
- package/lib/browser/util/frame.spec.d.ts.map +0 -1
- package/lib/browser/util/frame.spec.js +0 -60
- package/lib/browser/util/frame.spec.js.map +0 -1
- package/lib/browser/util/layout.d.ts.map +0 -1
- package/lib/browser/util/layout.js.map +0 -1
- package/lib/browser/util/layout.spec.d.ts +0 -2
- package/lib/browser/util/layout.spec.d.ts.map +0 -1
- package/lib/browser/util/layout.spec.js +0 -35
- package/lib/browser/util/layout.spec.js.map +0 -1
- package/lib/browser/util/link.d.ts.map +0 -1
- package/lib/browser/util/link.js.map +0 -1
- package/lib/browser/util/link.spec.d.ts +0 -2
- package/lib/browser/util/link.spec.d.ts.map +0 -1
- package/lib/browser/util/link.spec.js +0 -101
- package/lib/browser/util/link.spec.js.map +0 -1
- package/lib/browser/util/markdown.d.ts.map +0 -1
- package/lib/browser/util/markdown.js.map +0 -1
- package/lib/browser/util/markdown.spec.d.ts +0 -2
- package/lib/browser/util/markdown.spec.d.ts.map +0 -1
- package/lib/browser/util/markdown.spec.js +0 -124
- package/lib/browser/util/markdown.spec.js.map +0 -1
- package/lib/browser/util/message.d.ts.map +0 -1
- package/lib/browser/util/message.js.map +0 -1
- package/lib/browser/util/message.spec.d.ts +0 -2
- package/lib/browser/util/message.spec.d.ts.map +0 -1
- package/lib/browser/util/message.spec.js +0 -61
- package/lib/browser/util/message.spec.js.map +0 -1
- package/lib/browser/util/process.d.ts.map +0 -1
- package/lib/browser/util/process.js.map +0 -1
- package/lib/browser/util/process.spec.d.ts +0 -2
- package/lib/browser/util/process.spec.d.ts.map +0 -1
- package/lib/browser/util/process.spec.js +0 -106
- package/lib/browser/util/process.spec.js.map +0 -1
- package/lib/browser/util/progress.d.ts.map +0 -1
- package/lib/browser/util/progress.js.map +0 -1
- package/lib/browser/util/progress.spec.d.ts +0 -2
- package/lib/browser/util/progress.spec.d.ts.map +0 -1
- package/lib/browser/util/progress.spec.js +0 -77
- package/lib/browser/util/progress.spec.js.map +0 -1
- package/lib/browser/util/qr-code.d.ts +0 -38
- package/lib/browser/util/qr-code.d.ts.map +0 -1
- package/lib/browser/util/qr-code.js +0 -353
- package/lib/browser/util/qr-code.js.map +0 -1
- package/lib/browser/util/qr-code.spec.d.ts +0 -2
- package/lib/browser/util/qr-code.spec.d.ts.map +0 -1
- package/lib/browser/util/qr-code.spec.js +0 -48
- package/lib/browser/util/qr-code.spec.js.map +0 -1
- package/lib/browser/util/tool.d.ts.map +0 -1
- package/lib/browser/util/tool.js.map +0 -1
- package/lib/browser/util/tool.spec.d.ts +0 -2
- package/lib/browser/util/tool.spec.d.ts.map +0 -1
- package/lib/browser/util/tool.spec.js +0 -73
- package/lib/browser/util/tool.spec.js.map +0 -1
- package/lib/browser/view.d.ts.map +0 -1
- package/lib/browser/view.js.map +0 -1
- package/lib/browser/workbench-protocol.d.ts.map +0 -1
- package/lib/browser/workbench-protocol.js.map +0 -1
- package/lib/browser/workbench.d.ts.map +0 -1
- package/lib/browser/workbench.js.map +0 -1
- package/lib/browser/workbench.spec.d.ts +0 -2
- package/lib/browser/workbench.spec.d.ts.map +0 -1
- package/lib/browser/workbench.spec.js +0 -34
- package/lib/browser/workbench.spec.js.map +0 -1
- package/src/browser/assistant/assistant-export.spec.ts +0 -30
- package/src/browser/assistant/assistant-export.ts +0 -41
- package/src/browser/assistant/assistant-extension.spec.ts +0 -122
- package/src/browser/assistant/assistant-extension.ts +0 -137
- package/src/browser/assistant/assistant-hooks.ts +0 -63
- package/src/browser/assistant/assistant-protocol.ts +0 -55
- package/src/browser/assistant/assistant-tasks.tsx +0 -194
- package/src/browser/assistant/assistant-view.tsx +0 -453
- package/src/browser/assistant/assistant.spec.ts +0 -80
- package/src/browser/assistant/assistant.ts +0 -315
- package/src/browser/assistant/voice.spec.ts +0 -8
- package/src/browser/assistant/voice.ts +0 -87
- package/src/browser/avatar/dino-avatar.spec.ts +0 -151
- package/src/browser/avatar/dino-avatar.ts +0 -541
- package/src/browser/avatar/dino-motion.ts +0 -313
- package/src/browser/chat/chat-protocol.ts +0 -47
- package/src/browser/chat/chat-view.tsx +0 -155
- package/src/browser/chat/chat.spec.ts +0 -194
- package/src/browser/chat/chat.ts +0 -335
- package/src/browser/components/account-menu.tsx +0 -117
- package/src/browser/components/agent-settings-view.tsx +0 -196
- package/src/browser/components/app-view.tsx +0 -555
- package/src/browser/components/auth-pictures.tsx +0 -55
- package/src/browser/components/auth-view.tsx +0 -421
- package/src/browser/components/callout.tsx +0 -33
- package/src/browser/components/chat-list.spec.ts +0 -66
- package/src/browser/components/chat-list.tsx +0 -283
- package/src/browser/components/code-editor.tsx +0 -114
- package/src/browser/components/composer-box.tsx +0 -475
- package/src/browser/components/composer-menu.tsx +0 -49
- package/src/browser/components/composer.spec.tsx +0 -130
- package/src/browser/components/composer.tsx +0 -170
- package/src/browser/components/connection-bar.tsx +0 -85
- package/src/browser/components/context-menu.tsx +0 -100
- package/src/browser/components/conversation-scroll.ts +0 -126
- package/src/browser/components/dialog-view.tsx +0 -82
- package/src/browser/components/diff-editor.tsx +0 -131
- package/src/browser/components/diff-view.tsx +0 -19
- package/src/browser/components/dino.tsx +0 -19
- package/src/browser/components/editor-area.tsx +0 -234
- package/src/browser/components/folder-picker.spec.ts +0 -47
- package/src/browser/components/folder-picker.tsx +0 -359
- package/src/browser/components/fork-view.tsx +0 -65
- package/src/browser/components/hero-cards.tsx +0 -189
- package/src/browser/components/icon.tsx +0 -62
- package/src/browser/components/link-dialog.tsx +0 -66
- package/src/browser/components/link.tsx +0 -77
- package/src/browser/components/manage-menu.tsx +0 -165
- package/src/browser/components/markdown.spec.tsx +0 -46
- package/src/browser/components/markdown.tsx +0 -155
- package/src/browser/components/math.tsx +0 -21
- package/src/browser/components/media.tsx +0 -91
- package/src/browser/components/mermaid-view.tsx +0 -105
- package/src/browser/components/message-actions.tsx +0 -89
- package/src/browser/components/message-footer.tsx +0 -128
- package/src/browser/components/message-list.spec.tsx +0 -321
- package/src/browser/components/message-list.tsx +0 -328
- package/src/browser/components/notice-center.tsx +0 -187
- package/src/browser/components/relay-view.tsx +0 -146
- package/src/browser/components/remote-hosts.tsx +0 -149
- package/src/browser/components/remote-prompts.tsx +0 -111
- package/src/browser/components/run-status.tsx +0 -70
- package/src/browser/components/session-settings.spec.tsx +0 -49
- package/src/browser/components/session-settings.tsx +0 -119
- package/src/browser/components/session-view.tsx +0 -153
- package/src/browser/components/settings-controls.tsx +0 -94
- package/src/browser/components/settings-view.tsx +0 -581
- package/src/browser/components/split-pane.tsx +0 -108
- package/src/browser/components/ta-avatar.spec.tsx +0 -27
- package/src/browser/components/ta-avatar.tsx +0 -251
- package/src/browser/components/tool-view.tsx +0 -186
- package/src/browser/components/trusted-domains.tsx +0 -60
- package/src/browser/components/web-composer.tsx +0 -61
- package/src/browser/components/web-dialog.tsx +0 -29
- package/src/browser/components/workbench-toggle.spec.tsx +0 -35
- package/src/browser/components/workbench-toggle.tsx +0 -24
- package/src/browser/components/workbench-view.tsx +0 -77
- package/src/browser/components/working-directory.tsx +0 -22
- package/src/browser/editor/monaco-loader.spec.ts +0 -39
- package/src/browser/editor/monaco-loader.ts +0 -139
- package/src/browser/editor/monaco.ts +0 -55
- package/src/browser/editor/worker-modules.d.ts +0 -5
- package/src/browser/extension/extension-view.tsx +0 -78
- package/src/browser/extension/icons.ts +0 -165
- package/src/browser/extension/web-extension-api.ts +0 -348
- package/src/browser/extension/web-extension-protocol.ts +0 -154
- package/src/browser/extension/web-extensions.spec.ts +0 -597
- package/src/browser/extension/web-extensions.ts +0 -727
- package/src/browser/hooks.ts +0 -102
- package/src/browser/i18n/locales.ts +0 -20
- package/src/browser/i18n/messages.ts +0 -926
- package/src/browser/i18n/use-t.ts +0 -21
- package/src/browser/index.ts +0 -52
- package/src/browser/links/links-protocol.ts +0 -41
- package/src/browser/links/links.spec.ts +0 -132
- package/src/browser/links/links.ts +0 -127
- package/src/browser/markdown/hooks.ts +0 -32
- package/src/browser/markdown/lazy.spec.ts +0 -34
- package/src/browser/markdown/lazy.ts +0 -46
- package/src/browser/markdown/math.spec.ts +0 -20
- package/src/browser/markdown/math.ts +0 -33
- package/src/browser/markdown/mermaid.spec.ts +0 -21
- package/src/browser/markdown/mermaid.ts +0 -89
- package/src/browser/markdown/style-modules.d.ts +0 -2
- package/src/browser/module.ts +0 -6
- package/src/browser/notices/notices-protocol.ts +0 -92
- package/src/browser/notices/notices.spec.ts +0 -99
- package/src/browser/notices/notices.ts +0 -173
- package/src/browser/pwa/pwa-protocol.ts +0 -22
- package/src/browser/pwa/pwa.spec.ts +0 -143
- package/src/browser/pwa/pwa.ts +0 -123
- package/src/browser/settings/agent-settings.spec.ts +0 -56
- package/src/browser/settings/agent-settings.ts +0 -96
- package/src/browser/settings/settings-protocol.ts +0 -75
- package/src/browser/settings/settings.spec.ts +0 -31
- package/src/browser/settings/settings.ts +0 -89
- package/src/browser/state/state-protocol.ts +0 -71
- package/src/browser/state/state.spec.ts +0 -214
- package/src/browser/state/state.ts +0 -217
- package/src/browser/style/base.ts +0 -144
- package/src/browser/style/conversation.ts +0 -200
- package/src/browser/style/layout.ts +0 -403
- package/src/browser/style/pages.ts +0 -74
- package/src/browser/style/shell.ts +0 -235
- package/src/browser/style.ts +0 -11
- package/src/browser/util/composer.spec.ts +0 -71
- package/src/browser/util/composer.ts +0 -157
- package/src/browser/util/diff.spec.ts +0 -20
- package/src/browser/util/diff.ts +0 -33
- package/src/browser/util/frame.spec.ts +0 -62
- package/src/browser/util/frame.ts +0 -54
- package/src/browser/util/layout.spec.ts +0 -37
- package/src/browser/util/layout.ts +0 -71
- package/src/browser/util/link.spec.ts +0 -104
- package/src/browser/util/link.ts +0 -237
- package/src/browser/util/markdown.spec.ts +0 -133
- package/src/browser/util/markdown.ts +0 -347
- package/src/browser/util/message.spec.ts +0 -65
- package/src/browser/util/message.ts +0 -191
- package/src/browser/util/process.spec.ts +0 -133
- package/src/browser/util/process.ts +0 -166
- package/src/browser/util/progress.spec.ts +0 -86
- package/src/browser/util/progress.ts +0 -170
- package/src/browser/util/qr-code.spec.ts +0 -49
- package/src/browser/util/qr-code.ts +0 -371
- package/src/browser/util/tool.spec.ts +0 -78
- package/src/browser/util/tool.ts +0 -190
- package/src/browser/view.ts +0 -6
- package/src/browser/workbench-protocol.ts +0 -74
- package/src/browser/workbench.spec.ts +0 -37
- package/src/browser/workbench.ts +0 -326
- /package/{src/browser/public → public}/icons/apple-touch-icon.png +0 -0
- /package/{src/browser/public → public}/icons/icon-192.png +0 -0
- /package/{src/browser/public → public}/icons/icon-512.png +0 -0
- /package/{src/browser/public → public}/icons/icon.svg +0 -0
- /package/{src/browser/public → public}/icons/maskable-512.png +0 -0
- /package/{src/browser/public → public}/manifest.webmanifest +0 -0
- /package/{src/browser/public → public}/sw.js +0 -0
package/README.en.md
CHANGED
|
@@ -10,32 +10,32 @@ ta serve --web # Start and open in browser, token already included
|
|
|
10
10
|
|
|
11
11
|
The Web client can be installed as an application on desktop or mobile: use the install icon in the Chrome or Edge address bar, or "Install as app" from the account menu, or "Add to Home Screen" in iOS Safari. After installation, it opens in a separate window with the Cell dinosaur icon.
|
|
12
12
|
|
|
13
|
-
- Files are in `
|
|
13
|
+
- Files are in `public/` at the root of the package (`manifest.webmanifest`, `sw.js`, `icons/`) and placed at the site root during build; the manifest and Service Worker only work in secure contexts: localhost (127.0.0.1 or localhost) or HTTPS. Accessing via HTTP from another machine using `--host` displays only as a web page.
|
|
14
14
|
- The app remembers the address (including port) and token, so `ta serve` reuses the last port and token by default (see [@celljs/ta](../../apps/ta/README.md)).
|
|
15
15
|
- The Service Worker caches nothing under `/api`: pages come from the network and fall back to the last page on failure; hashed scripts under `/assets/` come from the cache first, and old scripts are cleared once the page has a new build. While ta serve is not running the app still opens, says "The Ta service is not running" and connects once it starts. The interface calls ta serve "the Ta service" and names the command only where the user has to run it in a terminal.
|
|
16
16
|
|
|
17
17
|
## Interface
|
|
18
18
|
|
|
19
|
-
The main layout is IDE-style: the navigation bar on the far left
|
|
19
|
+
The main layout is IDE-style: the navigation bar on the far left, in the order of a phone's bottom tabs: under the logo the lists of the sidebar (web extension sidebar views such as the agents, then the conversations), a divider, then pages for web extensions and Discover, and the account menu at the bottom; picking a list shows it in the sidebar, picking it again hides the sidebar (Mod+B also toggles it). The sidebar next to it (resizable and collapsible; the current list's search box and + button at the top) containing all open sessions on the server (which can be created, created in a specified directory, or closed; grouped by directory by default, each group folding with a + of its own for a new chat there, a button in the search box switching to a list by time, which a search always shows), the current conversation in the middle, and a collapsible panel on the right for web extension cards. On narrow screens, the navigation bar and conversation list become drawers, and the panel floats above the conversation.
|
|
20
20
|
|
|
21
21
|
Initially, the interface shows only conversations. You tell Ta what you want this page to do and display, and Ta builds it as a pi package—cards beside the conversation, a standalone page, or a new Ta command—which appears on the page immediately.
|
|
22
22
|
|
|
23
23
|
Everything new in the interface comes from **web extensions** within packages, using the same mechanism and terminology as pi extensions:
|
|
24
24
|
|
|
25
25
|
- **Packages** are pi packages. In the `pi` field of `package.json`, `extensions` are extensions for Ta (terminal and server), and `web` are extensions for this page; when not declared, modules in the `web/` directory are used. Packages can be placed in `~/.ta/agent/extensions/<name>/` or the project's `.ta/extensions/` to take effect, or installed with `ta install`.
|
|
26
|
-
- **Web extensions** are ES modules without import statements, with a default export of a function that the page calls with `pi`; the returned function is called on unload. The `pi` interface follows pi's ExtensionAPI naming: `ui.setWidget` (default above the input box, same as pi; `placement: 'panel'` puts it in the right workbench's card tabs), `registerView` (pages in the navigation bar, or a
|
|
26
|
+
- **Web extensions** are ES modules without import statements, with a default export of a function that the page calls with `pi`; the returned function is called on unload. The `pi` interface follows pi's ExtensionAPI naming: `ui.setWidget` (default above the input box, same as pi; `placement: 'panel'` puts it in the right workbench's card tabs), `registerView` (pages in the navigation bar, or a list of the sidebar at the top of the navigation bar; `location: 'panel'` is a tool in the right workbench; `discover: true` keeps a page not used every day under Discover until the user pins it), `registerMessageRenderer` (displays custom messages sent by pi extensions with `sendMessage`), `registerTool` (tools executed by the browser in conversations opened on the page), `registerTasks` / `ui.useTasks` (work done for the user, listed by the double with its own tasks and those of other extensions; see docs/design/ta-double.md), `registerOpener` (opens links in replies: files and their lines, directories, web pages, asked in registration order, returns true if opened), `registerComposerAddon` (adds to the message box of every conversation: `actions(conversation)` is a section of its own in the + menu, entries may have `items`, a list in its place; `above` is drawn above the box; `subscribe` says the entries changed. `conversation` says which: `sessionId`, `sessionFile`, `cwd`, `kind` `double` or `chat`, `group`, `title`; the double, agents and plain conversations all have it), `ui.QrCode` (a QR code of a text, black on white in any theme), `on` (events of the current conversation), `sendUserMessage` (sends to current conversation; `/commands` execute pi extension commands), `switchSession` (displays another open session in ta serve as the current conversation; given a promise of the id, it is in front at once showing that it opens, under the title of `opening`), `callHost` (calls methods of this package's `pi.host`, via `callPackageHost`), `reloadExtensions` (after the exten... [truncated]
|
|
27
27
|
- **Make packages with natural language**: the built-in extension [@celljs/ta-extensions](../ta-extensions/README.md) includes the skill `ta-package` (also available in the Ta terminal) and adds an "Extensions" page in the navigation bar (create an extension in one sentence, export or import). It documents package format, the web extension interface, and validation steps. At the end of each reply in the current conversation, the page reloads web extensions: new ones load, changed ones reload, and deleted ones unload; when tools change, the conversation reopens that part in the same session file (only for conversations opened on this page); when packages change, the session reloads pi extensions. The page checks again when redisplayed (packages might change in the terminal too).
|
|
28
28
|
- **Stable**: each extension owns what it registers and removes it all on unload; if one extension fails to load or render, only that extension's area shows an error, without affecting the page or other extensions.
|
|
29
29
|
|
|
30
30
|
**Settings → More → Extensions** (the "Extensions" in the gear menu) lists installed extensions (each is a package with web extensions that can be removed or reloaded); **Built-in Extensions** lists packages and web extensions provided with Ta and can be toggled here:
|
|
31
31
|
|
|
32
|
-
- **My Double**: a double that can be given tasks by voice or text. The main conversation is a regular Ta session with role instructions (`appendSystemPrompt`) and five client tools (such as `start_task`); each task runs as a new session in the background and ends with a `<task_update>` report.
|
|
32
|
+
- **My Double**: a double that can be given tasks by voice or text. The main conversation is a regular Ta session with role instructions (`appendSystemPrompt`) and five client tools (such as `start_task`); each task runs as a new session in the background and ends with a `<task_update>` report. By default it is the T. rex of the Cell logo (`DinoAvatar`, using the same path as `assets/logo.svg`), showing standby, listening, thinking, working, speaking, needing confirmation, done and asleep with its eyes, small markers and its moves. "Look of the double", in the double's … menu or the account menu, makes it a Triceratops, Stegosaurus, Brachiosaurus, Velociraptor, Ankylosaurus, Pteranodon, Parasaurolophus or the premium Chinese dragon (`avatar/dino-species.ts`, on the same bones and moves) and picks how it walks (steady, strut, bounce, sneak, waddle); the choice is kept on the server, the same on every device.
|
|
33
33
|
|
|
34
34
|
### Conversation and Input Box
|
|
35
35
|
|
|
36
36
|
- **Conversation flow**: continuous thinking, tool calls, and interim explanations in a turn are folded into a single line "Executed N steps": this expands while in progress, shows only recent steps, and collapses after completion (remaining expanded and marking failed steps if any); the final text is the reply. Layout is a pure function `ProcessUtil` (`util/process.ts`); each message uses a stable key and memos per message, so streaming output only redraws changed messages.
|
|
37
|
-
- **Input box**: Enter sends, Shift+Enter inserts a newline; during IME composition, Enter does not send. While Ta works, Enter suggests, Alt+Enter queues, Esc stops, and send and stop use the same button. `/` lists commands, `@` finds and inserts `@path` by filename (using the server's `findFiles`; the menu explains if unsupported); images can be pasted, dragged, or selected (PNG, JPEG, GIF, WebP; max 5 MB per image, max 8 per message); queued messages show above the input box and can be undone back to the box (`clearQueue`). Logic is in `ComposerUtil` (`util/composer.ts`).
|
|
38
|
-
- **Avatar**: `TaAvatar` is the Cell logo, and `mark` is a 1–2 character badge to distinguish agents (in web extensions it's `pi.ui.Avatar`); each reply starts with a small avatar (once per turn): during work, eye expression shows thinking, execution, or output; on the last turn when done, eyes squint with a checkmark; on error, it shows an alert badge; an empty conversation page displays a large avatar that blinks and occasionally looks at the input box. With reduced motion, everything is static.
|
|
37
|
+
- **Input box**: Enter sends, Shift+Enter inserts a newline; during IME composition, Enter does not send. While Ta works, Enter suggests, Alt+Enter queues, Esc stops, and send and stop use the same button. `/` lists commands, `@` finds and inserts `@path` by filename (using the server's `findFiles`; the menu explains if unsupported); images can be pasted, dragged, or selected (PNG, JPEG, GIF, WebP; max 5 MB per image, max 8 per message); queued messages show above the input box and can be undone back to the box (`clearQueue`). Where the browser recognizes speech (`Voice`, `util/voice.ts`), every input box has a microphone on its right: a conversation puts what is heard at the caret to be read over before sending; the double sends it as soon as it is heard. Logic is in `ComposerUtil` (`util/composer.ts`).
|
|
38
|
+
- **Avatar**: `TaAvatar` is the dinosaur the double is (the Cell logo by default), and `mark` is a 1–2 character badge to distinguish agents (in web extensions it's `pi.ui.Avatar`); each reply starts with a small avatar (once per turn): during work, eye expression shows thinking, execution, or output; on the last turn when done, eyes squint with a checkmark; on error, it shows an alert badge; an empty conversation page displays a large avatar that blinks and occasionally looks at the input box. With reduced motion, everything is static. The figure of the account (the bottom of the rail, Me on a phone) is a close-up of the same dinosaur's head, `DinoFace`: round eyes and blushing cheeks; it tilts its head, blinks, follows the pointer with its eyes and laughs when tapped. Still SVG files of every kind are in `assets/dinos/` (made by `bun ta-packages/ta-web/scripts/dino-art.ts`).
|
|
39
39
|
- **Status and hints**: four levels (info, success, warning, and error), each with a fixed icon and color, with the body always in body color. By ownership, there are three types: global **connection status bar** (a capsule at the top of the main area that appears after 1 second of disconnect, showing reason, countdown, and "Retry now"; shows "Reconnected" for 2 seconds after recovery); **notices** (`TaNotices`, bottom right, top on phone; success 3s, info 4s, warning 6s, error 8s; add 4s for buttons; pause on hover or focus; merge same messages with count; max 4 notices); **inline hints** (`Callout`, staying at the place of issue, such as when a turn reply fails, an extension view errors, or a token is rejected). Operation failures (send, switch model, open conversation, etc.) uniformly use `notices.error`: server errors with `hint` put the suggestion on the second line; failures from disconnect merge into one "Did not complete: ta serve not connected" message. Operations needing user confirmation use `notices.confirm`; irreversible operations have red buttons with default focus on "Cancel".
|
|
40
40
|
- **Links**: all links in replies are clickable (`TaLinks`, parsed in `LinkUtil`). Web links, bare URLs in text, and `<URL>` open by default in the browser on the right workbench; Cmd/Ctrl+click (or middle button) opens in the system browser. File paths (`[text](src/a.ts#L10-L20)`, `src/a.ts:10:5`, `file://` address, and inline code like `src/a.ts:12` and `package.json`) are parsed relative to the conversation directory, open and locate in the workbench, and select corresponding lines and columns (syntax like VS Code: `#L10`, `#L10C5-L12C3`, `:10:5`, `:10-20`); directories (`docs/`) open in the explorer at that directory. Open actions are provided by web extensions (`registerOpener`; the built-in @celljs/ta-workspace handles files, directories, and the built-in browser). For security, following VS Code: only http(s), mailto, and paths are recognized; `javascript:`, `data:`, `command:`, etc. are plain text; rendering results are React elements, not HTML; paths are confirmed to exist on the server first, though read/write are still subject to execution environment constraints. Before opening in the system browser, a popup shows the full address with the domain highlighted (domains with similar appearance are shown in browser's punycode format); you can copy, open, or trust the domain. Localhost addresses (localhost, 127.0.0.1, and the host where ta serve runs) and **Settings → Links → Trusted Domains** (`github.com`, `*.github.com`, `localhost:3000`, `*`) skip confirmation; new windows always have `noopener,noreferrer`. In the built-in browser, URLs same-origin with the Ta page do not get `allow-same-origin` and cannot reach the page or token.
|
|
41
41
|
- **Account menu**: the round avatar at the foot of the navigation bar (`AccountMenu`) shows the initial of the user name on the computer of ta serve (`TaServerInfo.user`), with a yellow dot at its corner while disconnected. The menu shows the user and computer name (`host`), the connection state and version of the Ta service, "Install as app" (when the browser supports it) and sign out.
|
|
@@ -46,13 +46,44 @@ The gear above the avatar (`ManageMenu`) is a two-level menu: Settings (⌘/Ctrl
|
|
|
46
46
|
|
|
47
47
|
- **Interface**: theme, reduce motion, interface language, and read aloud replies; stored in server user data (`TaSettings`), consistent across browsers and devices.
|
|
48
48
|
- **Ta**: Ta's own settings; reads and writes pi's `settings.json` (via the server's `getSettings` and `updateSettings`; editable keys are listed in ta-protocol's `TA_SETTINGS`): default model, thinking strength, transport, guide and queue message delivery, auto-compress and retry, code mode, skill commands, shell and command prefix, and images. At the top, switch between **User** (agent directory; affects all projects) and **Project** (`.ta/settings.json` in the current conversation directory; overrides user settings). Unset items show inherited values ("Default (…)" or "Use user setting (…)"); items set in the current level have a blue bar on the left; hover to reset. A project that is untrusted is read-only with the reason shown.
|
|
49
|
-
- **More**: Extensions, Built-in extensions, Keyboard shortcuts, and About (version, working directory, model accounts, phone access, and log out).
|
|
49
|
+
- **More**: Extensions, Built-in extensions, Access (when ta serve takes accounts: sign in with your own, those waiting to be let in, the accounts let in, the browsers signed in; see "Signing In with Accounts" of ta-host), Remote hosts, Keyboard shortcuts, and About (version, working directory, model accounts, phone access, and log out).
|
|
50
50
|
|
|
51
51
|
### Sign In to Model Service, Working Directory and Phone
|
|
52
52
|
|
|
53
53
|
- **Model accounts**: similar to pi's `/login` in the terminal, you can sign in with an account (OAuth, Claude, ChatGPT subscriptions) or API Key. Sign-in occurs on ta serve (`TaAuthServer`): the login page to open, device code, and key to fill are sent only to the requesting page; credentials are stored in `auth.json` on the ta serve machine, not in the browser. When no model is available (`CELL_TA_NOT_SIGNED_IN`), the page opens the login page directly instead of pi's `/login` prompt; the same applies to the desktop app on first launch.
|
|
54
54
|
- **Working directory**: when no directory is specified, new conversations and doubles open in ta serve's working directory. "Open working directory…" (`TaServer.setWorkingDirectory`) affects all clients and persists across restarts; already open conversations are not changed.
|
|
55
|
-
- **
|
|
55
|
+
- **Sign-in page**: when ta serve takes accounts (GitHub, Google, WeChat, OpenID Connect), the sign-in page lists them first (`GET /sign-in`), the token can still be pasted below; an account not let in comes back to a note that the owner has to let it in. When ta serve is not on this computer (an address of the network, through a relay, the phone app), the OAuth sign-in of model accounts asks for the `localhost` address the browser ended on.
|
|
56
|
+
- **Use on your phone**: pair a device via Relay ([@celljs/ta-relay](../ta-relay/README.md)); the pairing link is displayed as a QR code (drawn by `QrCode` of ta-relay, with no dependencies) and shown only once. Below, it lists paired devices and whether ta serve is connected to Relay. The default Relay is `https://relay.cellbang.com`.
|
|
57
|
+
|
|
58
|
+
### Quick open, widgets and extensions started on open
|
|
59
|
+
|
|
60
|
+
As WeChat pulls its mini programs down over its chats (design record docs/design/ta-launcher.md):
|
|
61
|
+
|
|
62
|
+
- **Quick open** (views at `location: 'launcher'`): on a phone, a pull down from the top of the list of the first tab moves the home down to a strip at the bottom, Quick open behind it; a light tap tells when it has gone far enough, and a tap on the strip or a push up brings the home back. On a computer or a tablet it is the grid at the bottom of the rail, a flyout with the same. The built-in package [@celljs/ta-launcher](../ta-launcher/README.en.md) holds Recent and Mine; other extensions add sections.
|
|
63
|
+
- **Search**: the field at the top of Quick open lists, before anything is typed, sections of pages and of the extensions installed, built in and of the market (web extensions add theirs with `registerSearch`), narrowed as the user types, the market asked of npm after a pause; its page is pushed in from the right, and Cancel, a swipe from the left edge or the back of the system goes back to Quick open.
|
|
64
|
+
- **Widgets** (views at `location: 'board'`): on a phone, a swipe to the right over the first tab brings the board in from the left (from the left edge over a row swiped open); elsewhere a button of the rail. Edit takes cards off, puts them back and orders them by their handles, kept for the user (`board`). Built in: the double's tasks, Quick open, and Next up of the scheduled tasks.
|
|
65
|
+
- **Started on open**: a package with `pi.webActivation: 'open'`, or one opened without installing (`origin: 'temporary'`), loads when one of its pages opens; left, it keeps running in the background with its page as it was (`KeptPages`), shown again at once; it stops after the time of Settings, Extensions (5 minutes by default) in the background, or when more than three are there. Its pages are not in the navigation: Quick open lists them.
|
|
66
|
+
- **Sharing**: `ui.shareExtension` opens the dialog that hands an extension on (QR code, copy, the share of the system): the source of a published one, else end to end through the relay and kept nowhere (`TaRelayServer.sharePackage`); `ui.openShared` opens a link of an extension, asked first.
|
|
67
|
+
- For web extensions: `ui.usePages()` (every page, with its state, place, last use and temporary package), `ui.showView` (starts one started on open first; its name opens its first page), `ui.stopExtension`, `ui.forgetPage`, `pi.openTemporary(source, from)`, `ui.useContextMenu()` (the menu of the page, right click or long press), `ui.QrCode`, `ui.scanCode` (in the Ta app only).
|
|
68
|
+
|
|
69
|
+
## Phones and tablets
|
|
70
|
+
|
|
71
|
+
One page fits computers, phones and tablets, adapted in one place: `DeviceMedia` (`src/browser/device/device-protocol.ts`) holds every breakpoint; styles write `@media ${DeviceMedia.COMPACT}`, code uses `useDevice()`, and no width is written anywhere else.
|
|
72
|
+
|
|
73
|
+
- **Layout**: `compact` (phones, tablets upright, split views, a phone sideways): the navigation is a drawer and the workbench covers the conversation; `medium` (an 11" tablet sideways): the sidebar sits beside it, the workbench is still an overlay; `expanded` (a computer, a 13" tablet sideways): everything side by side.
|
|
74
|
+
- **Fingers**: small buttons take touches over 44px while what is drawn, and how it lines up, stays the same; no grey flash on a tap, no zoom on a double tap, no selection of the chrome on a long press. Lists bounce at their ends without moving the page.
|
|
75
|
+
- **Navigation on a phone**, as in WeChat: tabs at the bottom (agents, chats, scheduled tasks, extensions, settings), the app opening on the first. A conversation or an agent picked from a list slides in from the right; the back button or a swipe from the left edge goes back to the list. A swipe left in a conversation brings out the workbench. A conversation slides in at once, showing its title and "Opening" until it is loaded rather than the one before; the layer it covers darkens a little, and a layer resting off screen is not drawn. The conversation and the workbench are entries of the browser's history, so the back of the browser, Safari's swipe from the edge and Android's back close them one by one (`device/back-stack.ts`). A row of the chats swiped left shows Remove (Put back for one removed; `device/row-swipe.ts`), put away by a tap elsewhere or on another row. The tab shown, tapped again, scrolls its list back to the top. Sideways, the tab bar is lower, with the labels beside the icons. See `components/phone-shell.tsx`.
|
|
76
|
+
- **Swipes**: on tablets and narrow windows, a swipe from the left edge brings out the sidebar under the finger, its scrim fading with it; a swipe left puts it away. A drag only sets the transform of the drawer and the opacity of the scrim, which the compositor draws; the listener that may hold a move back is only there for a touch that may be the drawer's, so scrolling never waits on script.
|
|
77
|
+
- **Sending**: as in WeChat, the Return key of the keyboard says Send and sends; Shift+Enter on a keyboard is a new line. In the Ta app on iOS the edit menu of a long press on the message box has New Line (`device/new-line.ts`). The keyboard stays up after the send button too, to go on typing; the Enter that picks a candidate of pinyin never sends.
|
|
78
|
+
- **Keyboard away**: opening a conversation does not bring it up; dragging the conversation down, or tapping where nothing answers a tap, puts it away. The conversation stays on its latest as the keyboard comes and goes.
|
|
79
|
+
- **Keyboard**: iOS does not shrink the page for its keyboard: the page takes the height above it and its head stays in place (`data-keyboard`, `--ta-viewport`). In the Ta app on iOS the native plugin tells the page the keyboard's height as it starts to come up or go, and the page moves with it on the keyboard's own curve, the message box riding on the keyboard (`--ta-keyboard`, `data-keyboard-moving`); the bar above the keyboard is hidden.
|
|
80
|
+
- **Alignment**: the first icon of a row of buttons starts where the text does; icon buttons drop the padding of the browser (14px a side on iOS, which put icons off centre); sideways, the notch and the rounded corners are kept clear.
|
|
81
|
+
- A conversation scrolled up by more than half a screen shows a button back to the latest above the message box.
|
|
82
|
+
- **Long press**: on a touch screen a held finger is a right click. Every menu a right click opens (files, tabs, chats, agents, terminals, search results) opens on a long press, through one bridge (`device/long-press.ts`): iOS fires no `contextmenu` on a long press, so the bridge sends one; Android does, and the bridge keeps it to one menu. The menu comes out above the finger, centred, clear of the status bar, in rows of 44px, with a light tap of the haptic engine in the app. The click of the finger let go is swallowed, and the system does not select the word under it.
|
|
83
|
+
- **Messages held**, as in WeChat: copy, select text (in a sheet, with the system's handles), a new conversation from here, rewind to here, copy debug info. On a touch screen the text of a message is not selected by a long press, except in code blocks, where a long press does not open the menu. A row of the chats held: open, delete from the list.
|
|
84
|
+
- **Easy to hit**: the buttons under a message take touches over 36×48px while their icons stay lined up with the text; the heads of the steps, the pill of changed files, the close of a tab take touches farther out, and the heads and rows of the groups of the chat list are 44px high; a tap anywhere in the message box types.
|
|
85
|
+
|
|
86
|
+
Web extensions read the same state with `ui.useDevice()` (`layout`, `touch`, `handheld`, `keyboard`). The root carries it as `data-layout`, `data-touch`, `data-handheld` and `data-keyboard` for styles.
|
|
56
87
|
|
|
57
88
|
## Structure
|
|
58
89
|
|
|
@@ -87,4 +118,4 @@ State for a specific directory (expanded folders in the explorer) is saved by th
|
|
|
87
118
|
|
|
88
119
|
The token is a login credential, not interface state, and is still stored by `TaWorkbench` in localStorage (after being installed as an app, you can sign in in its own window).
|
|
89
120
|
|
|
90
|
-
To add a built-in web extension, write a `@Component(BuiltinWebExtension)`. To replace the whole interface, rebind the home page with `@View({ index: true, component: MyView }, true)`.
|
|
121
|
+
To add a built-in web extension, write a `@Component(BuiltinWebExtension)`. To replace the whole interface, rebind the home page with `@View({ index: true, component: MyView }, true)`.
|
package/README.md
CHANGED
|
@@ -10,32 +10,32 @@ ta serve --web # 启动并在浏览器里打开,已带上 token
|
|
|
10
10
|
|
|
11
11
|
Web 客户端可以装成桌面或手机上的应用:Chrome / Edge 地址栏的安装图标或账号菜单里的"安装为应用",iOS Safari 的"添加到主屏幕"。装好后在单独的窗口里打开,图标是 Cell 的小恐龙。
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- 文件在包根目录的 `public/`(`manifest.webmanifest`、`sw.js`、`icons/`),构建时放在站点根路径;清单与 Service Worker 只在安全上下文生效:本机(127.0.0.1、localhost)或 HTTPS,用 `--host` 经普通 HTTP 从别的机器访问时只是网页。
|
|
14
14
|
- 应用记住的是地址(含端口)和 token,所以 ta serve 默认沿用上次的端口和 token(见 [@celljs/ta](../../apps/ta/README.md))。
|
|
15
15
|
- Service Worker 不缓存 `/api` 下的任何东西:页面走网络,失败时用上次的页面;`/assets/` 下带哈希的脚本先读缓存,页面换了新构建就清掉旧脚本。ta serve 没在运行时应用照样打开,提示"Ta 服务没有在运行",启动后自动连上。界面文案把 ta serve 称为"Ta 服务",只在需要用户去终端执行时写出命令。
|
|
16
16
|
|
|
17
17
|
## 界面
|
|
18
18
|
|
|
19
|
-
主框架是 IDE
|
|
19
|
+
主框架是 IDE 式布局:最左侧是导航栏,和手机的底部标签同一顺序:logo 下面先是侧栏的列表(Web 扩展的侧栏视图,如智能体,然后是对话),一条分隔线后是 Web 扩展的页面和"发现",底部是头像菜单;点一个列表,侧栏换成它,再点一次收起侧栏(Mod+B 同样开关侧栏)。旁边是侧栏(可拖宽、可收起;顶部是当前列表的搜索框和 +)(服务器上所有打开的会话,可新建、在指定目录新建、关闭;默认按目录分组,每组可折叠、组头的 + 在该目录新建,搜索框里的按钮切回按时间排列,搜索时总是按时间排列),中间是当前对话,右侧是可收起的面板,放 Web 扩展的卡片。窄屏时导航栏和对话列表变成抽屉,面板浮在对话上方。
|
|
20
20
|
|
|
21
21
|
一开始,界面上只有对话。你告诉 Ta 想让这个页面做什么、显示什么,Ta 就把它做成一个 pi 包——对话旁的卡片、单独的页面,或者 Ta 的新命令——做完立刻出现在页面上。
|
|
22
22
|
|
|
23
23
|
界面上新增的一切都来自包里的 **Web 扩展**,和 pi 的扩展同一套机制、同一套叫法:
|
|
24
24
|
|
|
25
25
|
- **包**就是 pi 的包。`package.json` 的 `pi` 里,`extensions` 是给 Ta(终端和服务端)的扩展,`web` 是给这个页面的扩展;没有声明时取 `web/` 目录下的模块。包放在 `~/.ta/agent/extensions/<名字>/`(项目的 `.ta/extensions/`)即可生效,也可以用 `ta install` 安装。
|
|
26
|
-
- **Web 扩展**是一个不带 import 的 ES 模块,默认导出一个函数,页面用 `pi` 调用它;返回的函数在卸载时调用。`pi` 的接口照 pi 的 ExtensionAPI 命名:`ui.setWidget`(默认在输入框上方,和 pi 一样;`placement: 'panel'` 放进右侧工作台的卡片标签)、`registerView
|
|
26
|
+
- **Web 扩展**是一个不带 import 的 ES 模块,默认导出一个函数,页面用 `pi` 调用它;返回的函数在卸载时调用。`pi` 的接口照 pi 的 ExtensionAPI 命名:`ui.setWidget`(默认在输入框上方,和 pi 一样;`placement: 'panel'` 放进右侧工作台的卡片标签)、`registerView`(导航栏里的页面,或导航栏上方的一个侧栏列表;`location: 'panel'` 是右侧工作台的工具)、`registerMessageRenderer`(显示 pi 扩展用 `sendMessage` 发出的自定义消息)、`registerTool`(页面打开的对话里由浏览器执行的工具)、`registerTasks` / `ui.useTasks`(替用户做的事,由分身和其他扩展的任务一起列出,见 docs/design/ta-double.md)、`registerOpener`(打开回复里的链接:文件及其行、目录、网页,按注册顺序询问,返回 true 表示已打开)、`registerComposerAddon`(给所有对话的输入框加东西:`actions(conversation)` 是 + 菜单里自己的一组,条目可以带 `items` 二级列表;`above` 画在输入框上方;`subscribe` 通知条目变了。`conversation` 说明是哪个对话:`sessionId`、`sessionFile`、`cwd`、`kind` 为 `double` 或 `chat`、`group`、`title`;分身、智能体和普通对话都有)、`ui.QrCode`(文字的二维码,任何主题下都是白底黑码)、`on`(当前对话的事件)、`sendUserMessage`(发到当前对话;`/命令` 会执行 pi 扩展的命令)、`switchSession`(把 ta serve 里另一个打开的会话显示为当前对话;传会话 id 的 Promise 时立即切过去显示"正在打开",`opening` 给出占位的标题)、`callHost`(调用本包 `pi.host` 的方法,经 `callPackageHost`)、`reloadExtensions`(扩展自己安装、导入或移除了包之后,像回复结束时一样重新加载 Web 扩展和当前对话的 pi 扩展)、`ui.showView` / `ui.useView`(显示、查看任意扩展的视图)、`ui.Composer` / `ui.Markdown`(和对话一样的输入框与 Markdown)、`ui.Empty`(列表或视图为空时的提示:一行标题加至多一行说明,在所在区域居中;菜单、选择器和弹窗里用 `compact`;`picture` 在上方放一张插图)、`ui.Picture` / `ui.PictureCards`(和 Ta 一样的小插图:SVG 里的图形用 `ta-pic-*` 类名,跟随主题;一排可点的插图卡片,带标签和一行说明)、`ui.Dialog`(盖住整页的弹窗)、`ui.openEditor` 的 `preview`(单击打开的预览标签,标题斜体,下一个预览会替换它,双击或 `ui.pinEditor` 固定)、`ui.setEditorDirty`(标签显示未保存圆点,关闭前确认)、`ui.useActiveEditor`(工作台当前标签)、`ui.DiffEditor`(Monaco 差异编辑器,并排或内联,可编辑右侧)、`ui.confirm` 的 `confirmLabel` / `danger`、视图的 `head`(自己的顶栏)、`ui.input` / `ui.editor`(向用户要一行或多行文字,取消时为 `undefined`)、页面的 `menu`(侧栏列出该页面时悬浮显示的 … 菜单)与 `pages`(侧栏列出的页面,导航栏不再单列)、`discover`(不常用的页面默认收在"发现",用户固定后才进导航栏)、`ui.notify`(页面右下角的通知)、`ui.confirm`(继续前先确认,返回用户是否同意)、`ui.theme`、`ui.language`、`ui.supportsWebview`(能否用 `<webview>` 显示网站,Ta 桌面版里可以,其他地方用 iframe)、`ui.debugWebview`(Ta 桌面版:向这种 webview 里的网页发 Chrome DevTools Protocol 命令,只限网页本身)、`ui.desktop.browserData`(Ta 桌面版,macOS 和 Windows:用户在应用的原生对话框里同意后,把其浏览器某个个... [truncated]
|
|
27
27
|
- **用自然语言做包**:内置扩展 [@celljs/ta-extensions](../ta-extensions/README.md) 带技能 `ta-package`(终端里的 Ta 也有),并在导航栏加了"扩展"页(一句话做扩展、导出导入),写明了包的格式、Web 扩展接口和验证步骤。当前对话每次回复结束,页面重新读取 Web 扩展:新的加载、改过的重新加载、删掉的卸载;工具有变化时,用同一个会话文件重新打开这段对话(只限本页打开的对话),包有改动时让会话重新加载 pi 扩展。页面重新显示时也会检查一次(包也可能在终端里改)。
|
|
28
28
|
- **稳定**:每个扩展注册的东西归它自己,卸载时一并撤掉;一个扩展加载失败或渲染出错,只在它自己的位置显示错误,不影响页面和其他扩展。
|
|
29
29
|
|
|
30
30
|
**设置 → 更多 → 扩展**(齿轮菜单的"扩展")列出安装的扩展(每个是一个带 Web 扩展的包,可移除、重新加载);**内置扩展**列出随 Ta 提供的包和 Web 扩展,可以在这里开关:
|
|
31
31
|
|
|
32
|
-
- **我的分身**:一个可以用语音或文字交代事情的分身。主对话是一个普通的 Ta 会话,加了角色说明(`appendSystemPrompt`)和五个客户端工具(`start_task` 等);每件事作为一个新会话在后台执行,结束后以 `<task_update>`
|
|
32
|
+
- **我的分身**:一个可以用语音或文字交代事情的分身。主对话是一个普通的 Ta 会话,加了角色说明(`appendSystemPrompt`)和五个客户端工具(`start_task` 等);每件事作为一个新会话在后台执行,结束后以 `<task_update>` 回报。形象默认是 Cell logo 里的霸王龙(`DinoAvatar`,与 `assets/logo.svg` 同一路径),用眼神、小标记和动作表示待命、在听、思考、干活、说话、需要你确认、完成、睡着。分身的 … 菜单或账号菜单里的"分身形象"可以换成三角龙、剑龙、腕龙、迅猛龙、甲龙、翼龙、副栉龙,或尊贵版的中国龙(`avatar/dino-species.ts`,同一套骨骼动作),并选走路姿势(稳步、神气、蹦跳、蹑足、摇摆);选择存在服务端,所有设备一致。
|
|
33
33
|
|
|
34
34
|
### 对话与输入框
|
|
35
35
|
|
|
36
36
|
- **对话流**:一轮里连续的思考、工具调用和中途说明折成一行“已执行 N 步”:进行中展开、只显示最近几步,结束后收起(有失败的步骤时保持展开并标出),最后的正文是回复。布局是纯函数 `ProcessUtil`(`util/process.ts`);每条用稳定的 key 并按条 memo,流式输出时只重绘变化的那条。
|
|
37
|
-
- **输入框**:Enter 发送、Shift+Enter 换行,输入法合成期间的回车不发送;Ta 工作时 Enter 引导、Alt+Enter 排队追加、Esc 停止,发送与停止是同一个按钮。`/` 列出命令,`@` 按文件名查找并插入 `@路径`(服务端 `findFiles`,不支持时菜单里说明);图片可粘贴、拖入或选择(PNG/JPEG/GIF/WebP,单张 5 MB、每条 8 张以内);排队的消息显示在输入框上方,可撤回到输入框(`clearQueue
|
|
38
|
-
- **头像**:`TaAvatar`
|
|
37
|
+
- **输入框**:Enter 发送、Shift+Enter 换行,输入法合成期间的回车不发送;Ta 工作时 Enter 引导、Alt+Enter 排队追加、Esc 停止,发送与停止是同一个按钮。`/` 列出命令,`@` 按文件名查找并插入 `@路径`(服务端 `findFiles`,不支持时菜单里说明);图片可粘贴、拖入或选择(PNG/JPEG/GIF/WebP,单张 5 MB、每条 8 张以内);排队的消息显示在输入框上方,可撤回到输入框(`clearQueue`)。浏览器能识别语音时(`Voice`,`util/voice.ts`),每个输入框右侧都有麦克风:普通对话把听到的话填进光标处,改完再发;分身听完直接发出。逻辑在 `ComposerUtil`(`util/composer.ts`)。
|
|
38
|
+
- **头像**:`TaAvatar` 是分身选的那种恐龙(默认就是 Cell logo),`mark` 是 1~2 个字符的角标,用来区分智能体(Web 扩展里是 `pi.ui.Avatar`);每轮回复开头放一个小头像(一轮一次):工作中用眼神表示思考、执行或输出,最后一轮完成时眯眼带勾,出错时带提醒角标;空对话页是大号头像,会眨眼、不时看向输入框。减少动效时全部静止。账号头像(导轨左下角、手机"我")是同一只恐龙的头部特写 `DinoFace`:圆眼、腮红,会歪头、眨眼、眼睛跟着指针,点一下会笑。各品种的静态 SVG 在 `assets/dinos/`(`bun ta-packages/ta-web/scripts/dino-art.ts` 生成)。
|
|
39
39
|
- **状态与提示**:分四级(info / success / warning / error),每级有固定的图标和颜色,正文始终用正文色。按归属分三种:全局的**连接状态条**(主区顶部的胶囊,断线超过 1 秒才出现,显示原因、倒计时和“立即重试”,恢复后显示“已重新连接”2 秒);**通知**(`TaNotices`,右下角、手机在顶部,success 3 秒、info 4 秒、warning 6 秒、error 8 秒,有按钮的多留 4 秒,悬停或聚焦时暂停计时,同一条重复出现时合并计数,最多 4 条);**就地提示**(`Callout`,留在出事的位置,如一轮回复失败、扩展视图出错、token 被拒绝)。操作失败(发送、切换模型、打开对话等)统一用 `notices.error`:服务端带 `hint` 的错误把建议放第二行,断线导致的失败合并成一条“没有完成:ta serve 未连接”。需要用户确认的操作用 `notices.confirm`,不可撤销的操作按钮为红色、默认焦点在“取消”。
|
|
40
40
|
- **链接**:回复里的链接都可以点(`TaLinks`,解析在 `LinkUtil`)。网页链接、正文里的裸 URL 和 `<URL>` 默认在右侧工作台的浏览器里打开,Cmd/Ctrl + 点击(或中键)在系统浏览器里打开;文件路径(`[说明](src/a.ts#L10-L20)`、`src/a.ts:10:5`、`file://` 地址,以及写成行内代码的 `src/a.ts:12`、`package.json`)按对话目录解析,在工作台打开并定位、选中对应行列(写法同 VS Code:`#L10`、`#L10C5-L12C3`、`:10:5`、`:10-20`);目录(`docs/`)在资源管理器里切到该目录。打开动作由 Web 扩展提供(`registerOpener`,内置的 @celljs/ta-workspace 负责文件、目录和内置浏览器)。安全上照 VS Code 的做法:只认 http(s)、mailto 和路径,`javascript:`、`data:`、`command:` 等其他协议一律当普通文本;渲染结果是 React 元素而不是 HTML;路径先经服务端确认存在,读写仍受执行环境约束;在系统浏览器打开前会弹窗显示完整地址并突出域名(外观相近的域名按浏览器的 punycode 显示),可复制、打开或信任该域名,本机地址(localhost、127.0.0.1、ta serve 所在主机)和 **设置 → 链接 → 受信任的域名**(`github.com`、`*.github.com`、`localhost:3000`、`*`)里的不再询问;新窗口一律 `noopener,noreferrer`。内置浏览器里,与 Ta 页面同源的地址不给 `allow-same-origin`,碰不到页面和 token。
|
|
41
41
|
- **账号菜单**:导航栏底部的圆形头像(`AccountMenu`),是 ta serve 所在电脑的用户名首字母(`TaServerInfo.user`),断开时右下角出现黄点;菜单里是用户名与电脑名(`host`)、Ta 服务的连接状态与版本、安装为应用(浏览器支持时)和退出登录。
|
|
@@ -46,13 +46,44 @@ Web 客户端可以装成桌面或手机上的应用:Chrome / Edge 地址栏
|
|
|
46
46
|
|
|
47
47
|
- **界面**:主题、减少动效、界面语言、朗读回复;存在服务器上的用户数据里(`TaSettings`),换浏览器、换设备都一样。
|
|
48
48
|
- **Ta**:Ta 本身的设置,读写 pi 的 `settings.json`(服务端 `getSettings` / `updateSettings`,可改的键见 ta-protocol 的 `TA_SETTINGS`):默认模型、思考强度、传输方式、引导与排队消息的送达方式、自动压缩与重试、代码模式、技能命令、Shell 与命令前缀、图片。顶部切换**用户**(agent 目录,对所有项目生效)和**项目**(当前对话目录下的 `.ta/settings.json`,覆盖用户设置);没设置的项显示继承来的值("默认(…)"或"沿用用户设置(…)"),在当前层设置过的项左侧有蓝条,悬停出现重置。项目未被信任时只读并说明原因。
|
|
49
|
-
-
|
|
49
|
+
- **更多**:扩展、内置扩展、访问(ta serve 配了账号登录时:用自己的账号登录、等待允许的人、允许登录的账号、已登录的浏览器,见 ta-host 的「账号登录」)、远程主机、键盘快捷方式、关于(版本、工作目录、模型账号、手机访问、退出登录)。
|
|
50
50
|
|
|
51
51
|
### 登录模型服务、工作目录与手机
|
|
52
52
|
|
|
53
53
|
- **模型账号**:和终端里 pi 的 `/login` 一样,可以用账号(OAuth,Claude、ChatGPT 这类订阅)或 API Key 登录模型服务。登录在 ta serve 上进行(`TaAuthServer`):要打开的登录页、设备码、要填的 Key 只发给发起登录的页面;凭据存在 ta serve 所在电脑的 `auth.json`,不回到浏览器。没有可用的模型时(`CELL_TA_NOT_SIGNED_IN`),页面直接打开登录页,而不是显示 pi 关于 `/login` 的提示;桌面应用第一次启动时也一样。
|
|
54
54
|
- **工作目录**:没指定目录时,新对话和分身在 ta serve 的工作目录里打开。"打开工作目录…"(`TaServer.setWorkingDirectory`)对所有客户端生效,跨重启保留;已经打开的对话不动。
|
|
55
|
-
-
|
|
55
|
+
- **登录页**:ta serve 配了账号登录(GitHub、Google、微信、OpenID Connect)时,登录页先列出这些按钮(`GET /sign-in`),下面仍可以粘贴 token;没被允许的账号回来后显示要等主人允许。ta serve 不在这台电脑上时(远程地址、经 Relay、手机应用),模型账号的 OAuth 登录提示把浏览器最后打开的 `localhost` 地址粘贴回来。
|
|
56
|
+
- **在手机上使用**:经 Relay 配对一台设备([@celljs/ta-relay](../ta-relay/README.md)),配对链接显示成二维码(ta-relay 的 `QrCode` 自己画,没有依赖),只显示一次;下面列出已配对的设备和 ta serve 是否连着 Relay,可以取消配对。默认 Relay 是 `https://relay.cellbang.com`。
|
|
57
|
+
|
|
58
|
+
### 快捷打开、小组件与按需启动
|
|
59
|
+
|
|
60
|
+
参照微信首页下拉出小程序(设计记录 docs/design/ta-launcher.md):
|
|
61
|
+
|
|
62
|
+
- **快捷打开**(`location: 'launcher'` 的视图):手机上在第一个标签的列表顶部往下拉,首页跟手滑到底部只留一条,后面是快捷打开;松手前过了阈值会轻触反馈,点那一条或往上推收回。电脑和平板上是导轨底部的九宫格按钮,弹出同样内容的浮层。内置包 [@celljs/ta-launcher](../ta-launcher/README.md) 放"最近使用"和"我的",其他扩展可以再加分区。
|
|
63
|
+
- **搜索**:快捷打开顶部的搜索框,未输入时按分区列出页面、已安装、内置和市场(扩展用 `registerSearch` 加分区),输入后就地过滤,市场停顿后再问 npm;搜索页从右侧推入,取消、左边缘右滑或系统返回回到快捷打开。
|
|
64
|
+
- **小组件**(`location: 'board'` 的视图):手机上在第一个标签上从左往右划,小组件面板从左侧滑入(已经划开的列表行上从左边缘开始);电脑和平板上是导轨底部的按钮。"编辑"里可以移除、加回卡片,拖动右侧把手排序,排列存在用户数据里(`board`)。内置的卡片有分身的任务、快捷打开和定时任务的"接下来"。
|
|
65
|
+
- **按需启动**:包的 `pi.webActivation: 'open'`,或免安装打开的临时扩展(`origin: 'temporary'`),在打开它的页面时才加载;离开后在后台继续运行、页面原样保留(`KeptPages`),再次打开没有等待;在后台超过保留时间(设置 → 扩展,默认 5 分钟)或后台超过 3 个时停止。这类扩展的页面不进导航栏,在快捷打开里找到。
|
|
66
|
+
- **分享**:`ui.shareExtension` 打开分享弹窗(二维码、复制、系统分享),已发布的扩展给来源,本机的经中继端到端发送、不存储(`TaRelayServer.sharePackage`);`ui.openShared` 打开扩展链接,先确认。
|
|
67
|
+
- 扩展接口:`ui.usePages()`(所有页面及其状态、位置、最近使用时间、临时扩展信息)、`ui.showView`(按需启动的先启动,扩展名打开它的第一个页面)、`ui.stopExtension`、`ui.forgetPage`、`pi.openTemporary(source, from)`、`ui.useContextMenu()`(和页面一样的右键/长按菜单)、`ui.QrCode`、`ui.scanCode`(只在 Ta 手机应用里)。
|
|
68
|
+
|
|
69
|
+
## 手机与平板
|
|
70
|
+
|
|
71
|
+
同一套页面适配电脑、手机和平板,适配只看一处:`DeviceMedia`(`src/browser/device/device-protocol.ts`)定义全部断点,样式写 `@media ${DeviceMedia.COMPACT}`,代码用 `useDevice()`,不在别处写宽度。
|
|
72
|
+
|
|
73
|
+
- **布局**:`compact`(手机、竖放的平板、分屏、横放的手机)导航是抽屉,工作台盖在对话上;`medium`(横放的 11 寸平板)侧栏在旁边,工作台仍是浮层;`expanded`(电脑、横放的 13 寸平板)全部并排。
|
|
74
|
+
- **手指**:小按钮的触控范围扩到 44px,但画出来的大小和对齐不变;轻点没有灰色闪烁、双击不缩放,界面框架不能长按选中。列表滚到两端会回弹,但不会带动整页。
|
|
75
|
+
- **手机的导航**(参照微信):底部是标签栏(智能体、对话、定时任务、扩展、设置),打开 App 停在第一个标签。点列表里的对话或智能体,会话从右边滑入;点返回或从左边缘右滑回到列表。在会话里左滑拉出工作台。会话立刻滑入,还没加载完时显示标题和"正在打开",不会先闪出上一个对话;被盖住的一层微微变暗,停在屏幕外的一层不绘制。会话和工作台都记在浏览器历史里,浏览器的返回、Safari 的边缘右滑和 Android 的返回键都会逐层关闭(`device/back-stack.ts`)。对话列表里的一行左滑露出"移除"(已移除的露出"放回",`device/row-swipe.ts`),点空白处或其他行收起。再点一次当前标签,列表回到顶部。横屏时标签栏变矮,图标和文字并排。见 `components/phone-shell.tsx`。
|
|
76
|
+
- **侧滑**:平板和窄窗口上,从屏幕左边缘右滑拉出侧栏,侧栏跟着手指走,左滑收起;蒙层的透明度随拖动距离变化。拖动时只修改侧栏的 transform 和蒙层的透明度,交给合成线程处理;只有可能拉出侧栏的那次触摸才挂可阻塞的 touchmove 监听,其他时候滚动不经过 JS。
|
|
77
|
+
- **发送**:和微信一样,键盘的回车键显示"发送",按下即发送;用外接键盘时,Shift+Enter 换行。在 Ta 手机应用(iOS)里,长按输入框弹出的系统菜单里有"换行"(`device/new-line.ts`)。点发送按钮后键盘保持打开,可以接着输入。拼音输入时,用回车确认候选词不会触发发送。
|
|
78
|
+
- **键盘收起**:打开对话时不会自动弹出键盘。在对话上往下拖,或点击对话里的空白处,都会收起键盘。键盘弹起或收起时,对话保持停在最新一条。
|
|
79
|
+
- **键盘**:iOS 不会因键盘缩小页面,页面会取键盘上方的高度,标题栏保持原位(`data-keyboard`、`--ta-viewport`)。在 Ta 手机应用(iOS)里,键盘开始弹起或收起时原生插件就告诉页面它的高度,页面按键盘自己的动画曲线同步移动,输入框贴着键盘一起上下(`--ta-keyboard`、`data-keyboard-moving`);键盘上方的辅助栏隐藏。
|
|
80
|
+
- **对齐**:按钮第一个图标的边缘与正文对齐,图标按钮去掉浏览器默认内边距(iOS 每边 14px,会让图标偏离中心);横屏时避开刘海和圆角。
|
|
81
|
+
- 对话向上翻了半屏以上时,输入框上方会出现"回到最新"按钮。
|
|
82
|
+
- **长按**:在触屏上,长按就是右键。凡是右键能打开的菜单(文件、标签页、对话、智能体、终端、搜索结果),长按都能打开,由 `device/long-press.ts` 统一桥接。iOS 长按不会触发 `contextmenu`,就由这里补发一个;Android 会自己发,这里保证只出现一次。菜单出现在手指上方并居中,不会被状态栏或手指挡住,每行 44px。打开菜单时,手机应用会给一次轻触反馈。松手后的点击会被吞掉,系统也不会去选中手指下的字。
|
|
83
|
+
- **长按消息**(参照微信):可以复制、选择文本(在底部弹层里用系统手柄选择)、从这里新开对话、回退到这里,或复制调试信息。消息正文在触屏上不能直接长按选中;代码块例外,可以选中,且长按代码不会弹出菜单。长按对话列表里的某一行,可以打开或从列表删除。
|
|
84
|
+
- **好点**:消息下方的按钮是 36×48px 的触控区,图标仍然和正文对齐;步骤标题、改动胶囊、标签页关闭按钮的触控区都已扩大,对话列表的分组标题和组内对话行高 44px;点输入框的任何空白处都会开始输入。
|
|
85
|
+
|
|
86
|
+
Web 扩展用 `ui.useDevice()` 读取同样的状态(`layout`、`touch`、`handheld`、`keyboard`)。根元素上也有对应的 `data-layout`、`data-touch`、`data-handheld`、`data-keyboard`,样式可以直接按它们写。
|
|
56
87
|
|
|
57
88
|
## 结构
|
|
58
89
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ChatListProps } from '../components/chat-list.js';
|
|
3
|
+
/** The list of chats with what the double knows of them: its tasks marked, a conversation to hand it. */
|
|
4
|
+
export declare function AssistantChatList(props: Omit<ChatListProps, 'double' | 'notice'>): React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ChatList } from '../components/chat-list.js';
|
|
3
|
+
import { ConnectionBanner } from '../components/connection-bar.js';
|
|
4
|
+
import { useNotices } from '../hooks.js';
|
|
5
|
+
import { useAssistant } from './assistant-hooks.js';
|
|
6
|
+
/** The list of chats with what the double knows of them: its tasks marked, a conversation to hand it. */
|
|
7
|
+
export function AssistantChatList(props) {
|
|
8
|
+
var _a;
|
|
9
|
+
const [{ tasks, ready }, assistant] = useAssistant();
|
|
10
|
+
const [, notices] = useNotices();
|
|
11
|
+
const session = ready ? (_a = assistant.store()) === null || _a === void 0 ? void 0 : _a.sessionId : undefined;
|
|
12
|
+
const double = React.useMemo(() => ({
|
|
13
|
+
tasks: new Set(tasks.filter(task => !task.takenOver).map(task => task.sessionId)),
|
|
14
|
+
session,
|
|
15
|
+
hand: (info, title) => void assistant.adopt({ sessionId: info.sessionId, title, cwd: info.cwd }).catch(error => notices.error(error)),
|
|
16
|
+
}), [tasks, session, assistant, notices]);
|
|
17
|
+
return React.createElement(ChatList, { ...props, double: double, notice: React.createElement(ConnectionBanner, null) });
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=assistant-chat-list.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WebExtensionAPI, WebExtensionFactory, WebMenuItem } from '../extension/web-extension-api.js';
|
|
2
2
|
import { BuiltinWebExtension } from '../extension/web-extension-protocol.js';
|
|
3
|
+
import { TaSettings } from '../settings/settings-protocol.js';
|
|
3
4
|
import { TaState } from '../state/state-protocol.js';
|
|
4
5
|
import { TaWorkbench } from '../workbench-protocol.js';
|
|
5
6
|
import { TaAssistant } from './assistant-protocol.js';
|
|
@@ -11,10 +12,12 @@ export declare class AssistantWebExtension implements BuiltinWebExtension {
|
|
|
11
12
|
readonly name = "assistant";
|
|
12
13
|
readonly title = "ta.builtin.assistant";
|
|
13
14
|
readonly description = "ta.builtin.assistantHint";
|
|
15
|
+
readonly icon: import("lucide-react").LucideIcon;
|
|
14
16
|
protected readonly assistant: TaAssistant;
|
|
15
17
|
protected readonly persisted: TaState;
|
|
16
18
|
protected readonly workbench: TaWorkbench;
|
|
19
|
+
protected readonly settings: TaSettings;
|
|
17
20
|
readonly activate: WebExtensionFactory;
|
|
18
|
-
/** The … of the page: stop, start over; its name, its system prompt, its
|
|
21
|
+
/** The … of the page: stop, start over; its name, its look, its system prompt, the default directory its tasks open in; the conversation as a file. */
|
|
19
22
|
protected menu(pi: WebExtensionAPI): WebMenuItem[][];
|
|
20
23
|
}
|
|
@@ -8,15 +8,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Autowired, Component } from '@celljs/core';
|
|
11
|
-
import { Bot, Copy, Download, ListTodo, Pencil, RotateCcw, ScrollText, Square } from 'lucide-react';
|
|
11
|
+
import { Bot, Copy, Download, Hand, ListTodo, Pencil, RotateCcw, ScrollText, Sparkles, Square, Trash2 } from 'lucide-react';
|
|
12
12
|
import * as React from 'react';
|
|
13
|
+
import { DinoLookPicker } from '../components/dino-look-picker.js';
|
|
13
14
|
import { BuiltinWebExtension } from '../extension/web-extension-protocol.js';
|
|
14
15
|
import { message } from '../i18n/messages.js';
|
|
16
|
+
import { translator } from '../i18n/use-t.js';
|
|
17
|
+
import { TaSettings } from '../settings/settings-protocol.js';
|
|
15
18
|
import { TaState } from '../state/state-protocol.js';
|
|
16
19
|
import { TaWorkbench } from '../workbench-protocol.js';
|
|
17
20
|
import { AssistantExport } from './assistant-export.js';
|
|
18
21
|
import { TaAssistant } from './assistant-protocol.js';
|
|
22
|
+
import { AssistantTaskSource } from './assistant-task-source.js';
|
|
19
23
|
import { ASSISTANT_NAME, ASSISTANT_TASKS_VIEW, AssistantPanel, AssistantTasks, AssistantTaskView } from './assistant-view.js';
|
|
24
|
+
import { TasksBoardCard } from './task-card.js';
|
|
20
25
|
function download(name, text) {
|
|
21
26
|
const url = URL.createObjectURL(new Blob([text], { type: 'text/markdown;charset=utf-8' }));
|
|
22
27
|
const link = document.createElement('a');
|
|
@@ -34,13 +39,57 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
34
39
|
this.name = ASSISTANT_NAME;
|
|
35
40
|
this.title = 'ta.builtin.assistant';
|
|
36
41
|
this.description = 'ta.builtin.assistantHint';
|
|
42
|
+
this.icon = Bot;
|
|
37
43
|
this.activate = pi => {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
const t = (id) => message(pi.ui.language, id);
|
|
45
|
+
const fail = (error) => pi.ui.notify(error instanceof Error ? error.message : String(error), 'error');
|
|
46
|
+
const editorId = (task) => `${ASSISTANT_NAME}:task:${task.id}`;
|
|
47
|
+
// The conversation moves to the main area: its tab in the workbench goes, not to show it twice.
|
|
48
|
+
const takeOver = (task) => {
|
|
49
|
+
this.assistant
|
|
50
|
+
.takeOver(task.id)
|
|
51
|
+
.then(sessionId => {
|
|
52
|
+
pi.ui.closeEditor(editorId(task));
|
|
53
|
+
return pi.switchSession(sessionId);
|
|
54
|
+
})
|
|
55
|
+
.catch(fail);
|
|
56
|
+
};
|
|
57
|
+
const remove = async (task) => {
|
|
58
|
+
if (await pi.ui.confirm(t('ta.task.removeTitle').replace('{title}', task.title), t('ta.task.removeHint'))) {
|
|
59
|
+
await this.assistant.removeTask(task.id);
|
|
60
|
+
pi.ui.closeEditor(editorId(task));
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
/** What can be done with a task, in its … wherever it shows: stop or take over, then remove (a running one is stopped first). */
|
|
64
|
+
const taskMenu = (task) => {
|
|
65
|
+
const running = task.status === 'running' && !task.takenOver;
|
|
66
|
+
return [
|
|
67
|
+
[
|
|
68
|
+
...(running
|
|
69
|
+
? [{ key: 'stop', label: t('ta.assistant.stop'), icon: Square, run: () => void this.assistant.stopTask(task.id).catch(fail) }]
|
|
70
|
+
: []),
|
|
71
|
+
...(task.takenOver ? [] : [{ key: 'takeOver', label: t('ta.task.takeOver'), icon: Hand, run: () => takeOver(task) }]),
|
|
72
|
+
],
|
|
73
|
+
[{ key: 'remove', label: t('ta.task.remove'), icon: Trash2, danger: true, run: () => void remove(task).catch(fail) }],
|
|
74
|
+
].filter(section => section.length > 0);
|
|
75
|
+
};
|
|
76
|
+
const showTasks = () => pi.ui.showView(`${ASSISTANT_NAME}/${ASSISTANT_TASKS_VIEW}`);
|
|
77
|
+
// A task taken over is the user's conversation: it opens in the main area, as it did when taken.
|
|
78
|
+
const openTask = (task) => task.takenOver
|
|
79
|
+
? takeOver(task)
|
|
80
|
+
: pi.ui.openEditor({
|
|
81
|
+
id: editorId(task),
|
|
82
|
+
title: task.title,
|
|
83
|
+
icon: ListTodo,
|
|
84
|
+
render: () => React.createElement(AssistantTaskView, { taskId: task.id, onTakeOver: takeOver, onTasks: showTasks, menu: taskMenu }),
|
|
85
|
+
});
|
|
86
|
+
const tasks = new AssistantTaskSource(this.assistant, {
|
|
87
|
+
t: (id, values) => translator(pi.ui.language)(id, values),
|
|
88
|
+
open: openTask,
|
|
89
|
+
openDouble: () => pi.ui.showView(`${ASSISTANT_NAME}/assistant`),
|
|
90
|
+
menu: taskMenu,
|
|
43
91
|
});
|
|
92
|
+
pi.registerTasks(tasks);
|
|
44
93
|
const registerPage = () => pi.registerView('assistant', {
|
|
45
94
|
title: () => this.assistant.name || message(pi.ui.language, 'ta.builtin.assistant'),
|
|
46
95
|
icon: Bot,
|
|
@@ -48,23 +97,52 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
48
97
|
menu: () => this.menu(pi),
|
|
49
98
|
});
|
|
50
99
|
registerPage();
|
|
100
|
+
pi.registerView('tasks-card', {
|
|
101
|
+
title: () => message(pi.ui.language, 'ta.board.tasks'),
|
|
102
|
+
icon: ListTodo,
|
|
103
|
+
location: 'board',
|
|
104
|
+
order: 0,
|
|
105
|
+
render: () => React.createElement(TasksBoardCard, { useTasks: pi.ui.useTasks, onAll: showTasks }),
|
|
106
|
+
});
|
|
51
107
|
pi.registerView(ASSISTANT_TASKS_VIEW, {
|
|
52
108
|
title: () => message(pi.ui.language, 'ta.assistant.tasksTool'),
|
|
53
109
|
icon: ListTodo,
|
|
54
110
|
location: 'panel',
|
|
55
|
-
render: () => React.createElement(AssistantTasks
|
|
111
|
+
render: () => React.createElement(AssistantTasks),
|
|
56
112
|
});
|
|
57
113
|
// Its title is its name: the lists that show the page read it again when it is registered again.
|
|
58
114
|
let name = this.assistant.name;
|
|
59
|
-
|
|
115
|
+
const stopName = this.persisted.subscribe(() => {
|
|
60
116
|
if (this.assistant.name !== name) {
|
|
61
117
|
name = this.assistant.name;
|
|
62
118
|
registerPage();
|
|
63
119
|
}
|
|
64
120
|
});
|
|
121
|
+
// The double is where the user goes first: its conversation opens as soon as there is a connection, not when its page shows.
|
|
122
|
+
const warm = () => {
|
|
123
|
+
if (this.workbench.state.status === 'online') {
|
|
124
|
+
void this.assistant.warm();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const stopWarm = this.workbench.subscribe(warm);
|
|
128
|
+
warm();
|
|
129
|
+
// The words of the tasks are of the page's language.
|
|
130
|
+
let language = pi.ui.language;
|
|
131
|
+
const stopLanguage = this.settings.subscribe(state => {
|
|
132
|
+
if (state.language !== language) {
|
|
133
|
+
language = state.language;
|
|
134
|
+
tasks.refresh();
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
return () => {
|
|
138
|
+
stopWarm();
|
|
139
|
+
stopName();
|
|
140
|
+
stopLanguage();
|
|
141
|
+
tasks.dispose();
|
|
142
|
+
};
|
|
65
143
|
};
|
|
66
144
|
}
|
|
67
|
-
/** The … of the page: stop, start over; its name, its system prompt, its
|
|
145
|
+
/** The … of the page: stop, start over; its name, its look, its system prompt, the default directory its tasks open in; the conversation as a file. */
|
|
68
146
|
menu(pi) {
|
|
69
147
|
var _a;
|
|
70
148
|
const t = (id) => message(pi.ui.language, id);
|
|
@@ -104,10 +182,11 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
104
182
|
await navigator.clipboard.writeText(cwd !== null && cwd !== void 0 ? cwd : '');
|
|
105
183
|
pi.ui.notify(t('ta.assistant.copied').replace('{path}', cwd !== null && cwd !== void 0 ? cwd : ''), 'info');
|
|
106
184
|
});
|
|
107
|
-
const exportMarkdown = act(() => {
|
|
185
|
+
const exportMarkdown = act(async () => {
|
|
108
186
|
var _a;
|
|
109
|
-
|
|
110
|
-
|
|
187
|
+
const store = this.assistant.store();
|
|
188
|
+
await (store === null || store === void 0 ? void 0 : store.loadAll());
|
|
189
|
+
const text = AssistantExport.markdown((_a = store === null || store === void 0 ? void 0 : store.state.messages) !== null && _a !== void 0 ? _a : [], {
|
|
111
190
|
user: t('ta.assistant.you'),
|
|
112
191
|
ta: title(),
|
|
113
192
|
task: t('ta.assistant.tasks'),
|
|
@@ -127,6 +206,7 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
127
206
|
],
|
|
128
207
|
[
|
|
129
208
|
{ key: 'rename', label: t('ta.assistant.rename'), icon: Pencil, run: rename },
|
|
209
|
+
{ key: 'look', label: t('ta.assistant.look'), icon: Sparkles, run: () => DinoLookPicker.open() },
|
|
130
210
|
{ key: 'prompt', label: t('ta.assistant.prompt'), icon: ScrollText, run: editPrompt },
|
|
131
211
|
{ key: 'copyCwd', label: t('ta.assistant.copyCwd'), icon: Copy, disabled: !cwd, run: copyCwd },
|
|
132
212
|
],
|
|
@@ -146,6 +226,10 @@ __decorate([
|
|
|
146
226
|
Autowired(TaWorkbench),
|
|
147
227
|
__metadata("design:type", Object)
|
|
148
228
|
], AssistantWebExtension.prototype, "workbench", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
Autowired(TaSettings),
|
|
231
|
+
__metadata("design:type", Object)
|
|
232
|
+
], AssistantWebExtension.prototype, "settings", void 0);
|
|
149
233
|
AssistantWebExtension = __decorate([
|
|
150
234
|
Component(BuiltinWebExtension)
|
|
151
235
|
], AssistantWebExtension);
|
|
@@ -12,12 +12,35 @@ export interface AssistantTask {
|
|
|
12
12
|
endedAt?: number;
|
|
13
13
|
/** The last words of the task's agent. */
|
|
14
14
|
result?: string;
|
|
15
|
+
/** The double's conversation (its session file) the task was handed out from: it shows there, in the turn that started it. */
|
|
16
|
+
origin?: string;
|
|
17
|
+
/** The user took it over: the double no longer follows it. */
|
|
18
|
+
takenOver?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* One more at each change: the pages of the user keep the list together, and of two copies of a task
|
|
21
|
+
* the one changed more often is the newer (AssistantTaskUtil.merge). Not a time: the clocks of a phone
|
|
22
|
+
* and of a computer differ.
|
|
23
|
+
*/
|
|
24
|
+
rev?: number;
|
|
25
|
+
/** Taken off the list: kept as such for a while, so that a page that still lists it does not bring it back. */
|
|
26
|
+
removed?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** A task the double is about to start, which the user lets start or not (Settings.confirmTasks). */
|
|
29
|
+
export interface AssistantAsk {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
instructions: string;
|
|
33
|
+
cwd: string;
|
|
34
|
+
/** When the double asked. */
|
|
35
|
+
at: number;
|
|
15
36
|
}
|
|
16
37
|
export interface AssistantState {
|
|
17
38
|
/** The conversation with ta is open. */
|
|
18
39
|
ready: boolean;
|
|
19
40
|
error?: string;
|
|
20
41
|
tasks: AssistantTask[];
|
|
42
|
+
/** The tasks waiting for the user's go. */
|
|
43
|
+
asks: AssistantAsk[];
|
|
21
44
|
/** The time the last task ended, for a little celebration. */
|
|
22
45
|
lastFinished?: number;
|
|
23
46
|
}
|
|
@@ -31,12 +54,37 @@ export interface TaAssistant {
|
|
|
31
54
|
subscribe(listener: (state: AssistantState) => void): () => void;
|
|
32
55
|
/** Opens the conversation again, or for the first time; follows the tasks still running. */
|
|
33
56
|
start(): Promise<void>;
|
|
57
|
+
/** Starts ahead, once connected, if the user talked to the double before: the first look at it finds it awake. */
|
|
58
|
+
warm(): Promise<void>;
|
|
59
|
+
/** Reads the tasks kept, for the lists, without opening the conversation. */
|
|
60
|
+
loadTasks(): Promise<void>;
|
|
34
61
|
/** The conversation with ta. */
|
|
35
62
|
store(): SessionStore | undefined;
|
|
36
63
|
taskStore(taskId: string): SessionStore | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The session of a task to show: the one followed, else its conversation opened again from its file (a
|
|
66
|
+
* task of another browser, or of a page since reloaded); followed from then on, as message_task does.
|
|
67
|
+
*/
|
|
68
|
+
openTask(taskId: string): Promise<SessionStore>;
|
|
69
|
+
/** Takes a task that does not run off the list; its conversation stays with the user's others. */
|
|
70
|
+
removeTask(taskId: string): Promise<void>;
|
|
37
71
|
/** Says something to ta: a new message, or, while it works, one it reads at its next step. */
|
|
38
72
|
say(text: string): Promise<void>;
|
|
39
73
|
stopTask(taskId: string): Promise<void>;
|
|
74
|
+
/** The user lets the task start, or not. */
|
|
75
|
+
answer(askId: string, start: boolean): void;
|
|
76
|
+
/** The user takes the task over: the double stops following it; its session, opened again if it closed since, is what to show. */
|
|
77
|
+
takeOver(taskId: string): Promise<string>;
|
|
78
|
+
/** Hands an open conversation of the user to the double, which follows it as a task from now on. */
|
|
79
|
+
adopt(session: {
|
|
80
|
+
sessionId: string;
|
|
81
|
+
title: string;
|
|
82
|
+
cwd: string;
|
|
83
|
+
}): Promise<void>;
|
|
84
|
+
/** The task a session is of, if it is one. */
|
|
85
|
+
taskOf(sessionId: string): AssistantTask | undefined;
|
|
86
|
+
/** The file of the conversation with the double: tasks show in the turn of it that started them. */
|
|
87
|
+
readonly sessionFile: string | undefined;
|
|
40
88
|
/** What the user calls the double; empty, its default name. */
|
|
41
89
|
readonly name: string;
|
|
42
90
|
rename(name: string): void;
|