@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** What Ta Desktop can do for the page beyond a tab of a browser. */
|
|
2
|
+
export type DesktopFeature = 'webview' | 'debugWebview' | 'showItemInFolder' | 'browserData';
|
|
3
|
+
/** The file manager of the system, from Ta Desktop: {@link WebDesktop} of the extension API. */
|
|
4
|
+
export interface DesktopFileManager {
|
|
5
|
+
/** Node's `process.platform` of the machine: what the file manager is called there. */
|
|
6
|
+
readonly platform: string;
|
|
7
|
+
showItemInFolder(path: string): Promise<void>;
|
|
8
|
+
readonly browserData?: DesktopBrowserData;
|
|
9
|
+
}
|
|
10
|
+
/** A profile of the user's Chrome, Edge…, whose sign-ins Ta Desktop can take. */
|
|
11
|
+
export interface DesktopBrowserProfile {
|
|
12
|
+
id: string;
|
|
13
|
+
browser: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
/** What an import took; `appBound`: cookies only Chrome itself can read (Windows). */
|
|
17
|
+
export interface DesktopBrowserImport {
|
|
18
|
+
imported: number;
|
|
19
|
+
skipped: number;
|
|
20
|
+
appBound: number;
|
|
21
|
+
}
|
|
22
|
+
/** The sign-ins of the user's browsers in the browser of Ta: {@link WebBrowserData} of the extension API. */
|
|
23
|
+
export interface DesktopBrowserData {
|
|
24
|
+
profiles(): Promise<DesktopBrowserProfile[]>;
|
|
25
|
+
/** After the user said yes in a dialog of the app; `undefined` when they said no. */
|
|
26
|
+
import(profileId: string): Promise<DesktopBrowserImport | undefined>;
|
|
27
|
+
clear(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
/** A command of the DevTools protocol to the page of a `<webview>` of this page, by its getWebContentsId(). */
|
|
30
|
+
export type DebugWebview = (webContentsId: number, method: string, params?: Record<string, unknown>) => Promise<unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Ta Desktop gives its window's page `taDesktop` (its preload, apps/ta-desktop): the features it adds to
|
|
33
|
+
* what a browser can do. A browser, an installed web app and the mobile app have none.
|
|
34
|
+
*/
|
|
35
|
+
export declare namespace DesktopUtil {
|
|
36
|
+
function has(feature: DesktopFeature, scope?: object): boolean;
|
|
37
|
+
/** The file manager of the system, when the page is in Ta Desktop. */
|
|
38
|
+
function fileManager(scope?: object): DesktopFileManager | undefined;
|
|
39
|
+
/** The sign-ins of the user's browsers, where Ta Desktop can read them (macOS, Windows). */
|
|
40
|
+
function browserData(scope?: object): DesktopBrowserData | undefined;
|
|
41
|
+
/** `debugWebview` of Ta Desktop; `undefined` elsewhere. */
|
|
42
|
+
function debugWebview(scope?: object): DebugWebview | undefined;
|
|
43
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ta Desktop gives its window's page `taDesktop` (its preload, apps/ta-desktop): the features it adds to
|
|
3
|
+
* what a browser can do. A browser, an installed web app and the mobile app have none.
|
|
4
|
+
*/
|
|
5
|
+
export var DesktopUtil;
|
|
6
|
+
(function (DesktopUtil) {
|
|
7
|
+
function has(feature, scope = globalThis) {
|
|
8
|
+
var _a;
|
|
9
|
+
const features = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.features;
|
|
10
|
+
return Array.isArray(features) && features.includes(feature);
|
|
11
|
+
}
|
|
12
|
+
DesktopUtil.has = has;
|
|
13
|
+
/** The file manager of the system, when the page is in Ta Desktop. */
|
|
14
|
+
function fileManager(scope = globalThis) {
|
|
15
|
+
const desktop = scope.taDesktop;
|
|
16
|
+
const show = desktop === null || desktop === void 0 ? void 0 : desktop.showItemInFolder;
|
|
17
|
+
if (!has('showItemInFolder', scope) || typeof show !== 'function') {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
return Object.freeze({
|
|
21
|
+
platform: typeof (desktop === null || desktop === void 0 ? void 0 : desktop.platform) === 'string' ? desktop.platform : 'unknown',
|
|
22
|
+
showItemInFolder: (path) => Promise.resolve(show(path)).then(() => undefined),
|
|
23
|
+
browserData: browserData(scope),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
DesktopUtil.fileManager = fileManager;
|
|
27
|
+
/** The sign-ins of the user's browsers, where Ta Desktop can read them (macOS, Windows). */
|
|
28
|
+
function browserData(scope = globalThis) {
|
|
29
|
+
var _a;
|
|
30
|
+
const data = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.browserData;
|
|
31
|
+
const { profiles, import: take, clear } = data !== null && data !== void 0 ? data : {};
|
|
32
|
+
if (!has('browserData', scope) || typeof profiles !== 'function' || typeof take !== 'function' || typeof clear !== 'function') {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
return Object.freeze({
|
|
36
|
+
profiles: async () => { var _a; return (_a = (await profiles())) !== null && _a !== void 0 ? _a : []; },
|
|
37
|
+
import: async (profileId) => {
|
|
38
|
+
const report = (await take(profileId));
|
|
39
|
+
return 'cancelled' in report ? undefined : report;
|
|
40
|
+
},
|
|
41
|
+
clear: async () => {
|
|
42
|
+
await clear();
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
DesktopUtil.browserData = browserData;
|
|
47
|
+
/** `debugWebview` of Ta Desktop; `undefined` elsewhere. */
|
|
48
|
+
function debugWebview(scope = globalThis) {
|
|
49
|
+
const desktop = scope.taDesktop;
|
|
50
|
+
const debug = desktop === null || desktop === void 0 ? void 0 : desktop.debugWebview;
|
|
51
|
+
return has('debugWebview', scope) && typeof debug === 'function' ? (webContentsId, method, params) => debug(webContentsId, method, params) : undefined;
|
|
52
|
+
}
|
|
53
|
+
DesktopUtil.debugWebview = debugWebview;
|
|
54
|
+
})(DesktopUtil || (DesktopUtil = {}));
|
|
55
|
+
//# sourceMappingURL=desktop.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Files of a directory dragged from a view (the explorer): {@link WebFileDrag} of the extension API. */
|
|
2
|
+
export interface DraggedFiles {
|
|
3
|
+
/** The directory they are of: a path of the machine of ta serve, or `ssh://` (TaLocation). */
|
|
4
|
+
cwd: string;
|
|
5
|
+
/** Relative to `cwd`, with `/`; '' for `cwd` itself. */
|
|
6
|
+
paths: string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Files on a drag between the views of the page: their own type, read on a drop; and their paths as text,
|
|
10
|
+
* for what is not of the page (a native field, another app).
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace FileDragUtil {
|
|
13
|
+
const TYPE = "application/x-ta-files";
|
|
14
|
+
function set(dataTransfer: DataTransfer, files: DraggedFiles): void;
|
|
15
|
+
/** Whether a drag holds files: all that `dragover` can tell. */
|
|
16
|
+
function has(dataTransfer: Pick<DataTransfer, 'types'>): boolean;
|
|
17
|
+
/** The files of a drop; undefined when it holds none. */
|
|
18
|
+
function get(dataTransfer: Pick<DataTransfer, 'getData'>): DraggedFiles | undefined;
|
|
19
|
+
/** The paths inside their machine, as a terminal there takes them. */
|
|
20
|
+
function paths(files: DraggedFiles): string[];
|
|
21
|
+
/**
|
|
22
|
+
* The files as `@` references of a conversation in `cwd`: relative to it when they are inside it, on the
|
|
23
|
+
* same machine; else their paths there.
|
|
24
|
+
*/
|
|
25
|
+
function references(files: DraggedFiles, cwd: string | undefined): string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { TaLocation } from '@celljs/ta-protocol';
|
|
2
|
+
import { ComposerUtil } from './composer.js';
|
|
3
|
+
/**
|
|
4
|
+
* Files on a drag between the views of the page: their own type, read on a drop; and their paths as text,
|
|
5
|
+
* for what is not of the page (a native field, another app).
|
|
6
|
+
*/
|
|
7
|
+
export var FileDragUtil;
|
|
8
|
+
(function (FileDragUtil) {
|
|
9
|
+
FileDragUtil.TYPE = 'application/x-ta-files';
|
|
10
|
+
function set(dataTransfer, files) {
|
|
11
|
+
const dragged = { cwd: files.cwd, paths: [...files.paths] };
|
|
12
|
+
dataTransfer.setData(FileDragUtil.TYPE, JSON.stringify(dragged));
|
|
13
|
+
dataTransfer.setData('text/plain', paths(dragged).join('\n'));
|
|
14
|
+
}
|
|
15
|
+
FileDragUtil.set = set;
|
|
16
|
+
/** Whether a drag holds files: all that `dragover` can tell. */
|
|
17
|
+
function has(dataTransfer) {
|
|
18
|
+
var _a;
|
|
19
|
+
return Array.from((_a = dataTransfer.types) !== null && _a !== void 0 ? _a : []).includes(FileDragUtil.TYPE);
|
|
20
|
+
}
|
|
21
|
+
FileDragUtil.has = has;
|
|
22
|
+
/** The files of a drop; undefined when it holds none. */
|
|
23
|
+
function get(dataTransfer) {
|
|
24
|
+
try {
|
|
25
|
+
const value = JSON.parse(dataTransfer.getData(FileDragUtil.TYPE) || 'null');
|
|
26
|
+
if (!value || typeof value.cwd !== 'string' || !Array.isArray(value.paths)) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const list = value.paths.filter((path) => typeof path === 'string');
|
|
30
|
+
return list.length ? { cwd: value.cwd, paths: list } : undefined;
|
|
31
|
+
}
|
|
32
|
+
catch (_a) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
FileDragUtil.get = get;
|
|
37
|
+
/** The paths inside their machine, as a terminal there takes them. */
|
|
38
|
+
function paths(files) {
|
|
39
|
+
const base = TaLocation.path(files.cwd);
|
|
40
|
+
const windows = /^[a-zA-Z]:[\\/]|^\\\\/.test(base) && !base.includes('/');
|
|
41
|
+
const trimmed = base.replace(/[\\/]+$/, '');
|
|
42
|
+
return files.paths.map(path => {
|
|
43
|
+
if (!path) {
|
|
44
|
+
return base;
|
|
45
|
+
}
|
|
46
|
+
return windows ? `${trimmed}\\${path.replace(/\//g, '\\')}` : `${trimmed}/${path}`;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
FileDragUtil.paths = paths;
|
|
50
|
+
/**
|
|
51
|
+
* The files as `@` references of a conversation in `cwd`: relative to it when they are inside it, on the
|
|
52
|
+
* same machine; else their paths there.
|
|
53
|
+
*/
|
|
54
|
+
function references(files, cwd) {
|
|
55
|
+
const absolute = paths(files);
|
|
56
|
+
const sameMachine = cwd !== undefined && TaLocation.host(cwd) === TaLocation.host(files.cwd);
|
|
57
|
+
const root = cwd === undefined ? '' : TaLocation.path(cwd).replace(/[\\/]+$/, '');
|
|
58
|
+
return absolute
|
|
59
|
+
.map((path, index) => {
|
|
60
|
+
if (files.cwd === cwd) {
|
|
61
|
+
return files.paths[index] || '.';
|
|
62
|
+
}
|
|
63
|
+
if (sameMachine && root && path.startsWith(`${root}/`)) {
|
|
64
|
+
return path.slice(root.length + 1);
|
|
65
|
+
}
|
|
66
|
+
return path;
|
|
67
|
+
})
|
|
68
|
+
.map(ComposerUtil.reference)
|
|
69
|
+
.join(' ');
|
|
70
|
+
}
|
|
71
|
+
FileDragUtil.references = references;
|
|
72
|
+
})(FileDragUtil || (FileDragUtil = {}));
|
|
73
|
+
//# sourceMappingURL=file-drag.js.map
|
|
@@ -12,6 +12,11 @@ export declare namespace FrameUtil {
|
|
|
12
12
|
call(): void;
|
|
13
13
|
cancel(): void;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Once what changed now is painted: rAF runs before the paint, a task after it. Heavy work started
|
|
17
|
+
* then (drawing a long conversation) no longer holds up what the user should see at once.
|
|
18
|
+
*/
|
|
19
|
+
function painted(scheduler?: FrameScheduler): Promise<void>;
|
|
15
20
|
/** Below this distance from the bottom, the view follows what comes in. */
|
|
16
21
|
const STICK_PX = 80;
|
|
17
22
|
function atBottom(element: {
|
|
@@ -26,6 +26,14 @@ export var FrameUtil;
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
FrameUtil.coalesce = coalesce;
|
|
29
|
+
/**
|
|
30
|
+
* Once what changed now is painted: rAF runs before the paint, a task after it. Heavy work started
|
|
31
|
+
* then (drawing a long conversation) no longer holds up what the user should see at once.
|
|
32
|
+
*/
|
|
33
|
+
function painted(scheduler = ANIMATION_FRAME) {
|
|
34
|
+
return new Promise(resolve => scheduler.request(() => setTimeout(resolve, 0)));
|
|
35
|
+
}
|
|
36
|
+
FrameUtil.painted = painted;
|
|
29
37
|
/** Below this distance from the bottom, the view follows what comes in. */
|
|
30
38
|
FrameUtil.STICK_PX = 80;
|
|
31
39
|
function atBottom(element) {
|
|
@@ -39,6 +39,13 @@ interface Entry {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
export declare namespace MessageUtil {
|
|
42
|
+
/**
|
|
43
|
+
* Why an assistant message ended. A call stopped by the user that pi records as an error, with the
|
|
44
|
+
* words of an aborted fetch (a model called again after its tool was cancelled), is stopped, not failed.
|
|
45
|
+
*/
|
|
46
|
+
/** A call that ended because the user stopped the turn: not a failure. */
|
|
47
|
+
function cancelled(output: ToolOutput | undefined): boolean;
|
|
48
|
+
function stopReason(message: unknown): string | undefined;
|
|
42
49
|
function blocks(message: SessionMessage): ContentBlock[];
|
|
43
50
|
function text(content: ContentBlock[] | string | undefined): string;
|
|
44
51
|
/** The tool result messages of a conversation by tool call id: shown with their calls. */
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import { TaLocation } from '@celljs/ta-protocol';
|
|
2
2
|
const SCRIPT_HEADER = /^Script (completed|failed)\nWall time [\d.]+ seconds\nOutput:\n/;
|
|
3
|
+
/** What a fetch or a provider says when it was stopped with its abort signal (DOMException AbortError). */
|
|
4
|
+
const ABORTED = /^(this|the) operation was aborted\.?$|^(request )?aborted\.?$/i;
|
|
5
|
+
/** What a tool call stopped by the user returns: pi's words, or those of another agent's call. */
|
|
6
|
+
const CANCELLED = /^(cancell?ed|operation aborted|tool execution (was )?aborted)\.?$/i;
|
|
3
7
|
export var MessageUtil;
|
|
4
8
|
(function (MessageUtil) {
|
|
9
|
+
/**
|
|
10
|
+
* Why an assistant message ended. A call stopped by the user that pi records as an error, with the
|
|
11
|
+
* words of an aborted fetch (a model called again after its tool was cancelled), is stopped, not failed.
|
|
12
|
+
*/
|
|
13
|
+
/** A call that ended because the user stopped the turn: not a failure. */
|
|
14
|
+
function cancelled(output) {
|
|
15
|
+
var _a;
|
|
16
|
+
const text = (output === null || output === void 0 ? void 0 : output.isError) ? MessageUtil.text((_a = output.content) !== null && _a !== void 0 ? _a : []).trim() : '';
|
|
17
|
+
return !!text && (CANCELLED.test(text) || ABORTED.test(text));
|
|
18
|
+
}
|
|
19
|
+
MessageUtil.cancelled = cancelled;
|
|
20
|
+
function stopReason(message) {
|
|
21
|
+
const { stopReason, errorMessage } = (message !== null && message !== void 0 ? message : {});
|
|
22
|
+
return stopReason === 'error' && errorMessage && ABORTED.test(errorMessage.trim()) ? 'aborted' : stopReason;
|
|
23
|
+
}
|
|
24
|
+
MessageUtil.stopReason = stopReason;
|
|
5
25
|
function blocks(message) {
|
|
6
26
|
const content = message.content;
|
|
7
27
|
if (typeof content === 'string') {
|
|
@@ -49,9 +49,10 @@ export declare namespace ProcessUtil {
|
|
|
49
49
|
/**
|
|
50
50
|
* The items of the conversation. While the agent works and has not answered yet, its turn is there
|
|
51
51
|
* already, empty, with the key the turn will have: the head drawn while it waits is the one its answer
|
|
52
|
-
* fills, not another put in its place.
|
|
52
|
+
* fills, not another put in its place. `offset`: where `messages` start in the conversation, so that
|
|
53
|
+
* the keys stay as earlier messages come in front.
|
|
53
54
|
*/
|
|
54
|
-
function items(messages: SessionMessage[], working: boolean): ThreadItem[];
|
|
55
|
+
function items(messages: SessionMessage[], working: boolean, offset?: number): ThreadItem[];
|
|
55
56
|
/** The tool calls: what "N steps" counts. */
|
|
56
57
|
function tools(steps: ProcessStep[]): ContentBlock[];
|
|
57
58
|
/** The steps shown: all of them, or while it works the latest few when more than two would fold. */
|
|
@@ -11,16 +11,17 @@ export var ProcessUtil;
|
|
|
11
11
|
/**
|
|
12
12
|
* The items of the conversation. While the agent works and has not answered yet, its turn is there
|
|
13
13
|
* already, empty, with the key the turn will have: the head drawn while it waits is the one its answer
|
|
14
|
-
* fills, not another put in its place.
|
|
14
|
+
* fills, not another put in its place. `offset`: where `messages` start in the conversation, so that
|
|
15
|
+
* the keys stay as earlier messages come in front.
|
|
15
16
|
*/
|
|
16
|
-
function items(messages, working) {
|
|
17
|
+
function items(messages, working, offset = 0) {
|
|
17
18
|
var _a;
|
|
18
19
|
const items = [];
|
|
19
20
|
let index = 0;
|
|
20
21
|
while (index < messages.length) {
|
|
21
22
|
const role = messages[index].role;
|
|
22
23
|
if (!TURN_ROLES.has(role)) {
|
|
23
|
-
items.push({ kind: 'message', key: `m${index}`, message: messages[index] });
|
|
24
|
+
items.push({ kind: 'message', key: `m${offset + index}`, message: messages[index] });
|
|
24
25
|
index++;
|
|
25
26
|
continue;
|
|
26
27
|
}
|
|
@@ -28,10 +29,10 @@ export var ProcessUtil;
|
|
|
28
29
|
while (index < messages.length && TURN_ROLES.has(messages[index].role)) {
|
|
29
30
|
index++;
|
|
30
31
|
}
|
|
31
|
-
items.push(turn(messages.slice(start, index), start, working && index === messages.length));
|
|
32
|
+
items.push(turn(messages.slice(start, index), offset + start, working && index === messages.length));
|
|
32
33
|
}
|
|
33
34
|
if (working && ((_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.kind) !== 'turn') {
|
|
34
|
-
items.push({ kind: 'turn', key: `t${messages.length}`, messages: [], steps: [], reply: [], active: true });
|
|
35
|
+
items.push({ kind: 'turn', key: `t${offset + messages.length}`, messages: [], steps: [], reply: [], active: true });
|
|
35
36
|
}
|
|
36
37
|
return items;
|
|
37
38
|
}
|
|
@@ -108,7 +109,6 @@ export var ProcessUtil;
|
|
|
108
109
|
* waits), then done for the last turn, needing you after an error, and calm for the rest.
|
|
109
110
|
*/
|
|
110
111
|
function mood(item, last, waiting) {
|
|
111
|
-
var _a;
|
|
112
112
|
if (item.active) {
|
|
113
113
|
if (waiting) {
|
|
114
114
|
return 'attention';
|
|
@@ -116,7 +116,7 @@ export var ProcessUtil;
|
|
|
116
116
|
const phase = ProcessUtil.phase(item.messages);
|
|
117
117
|
return phase === 'thinking' ? 'thinking' : phase === 'writing' ? 'speaking' : 'working';
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const stopReason = MessageUtil.stopReason(item.last);
|
|
120
120
|
if (stopReason === 'error') {
|
|
121
121
|
return 'attention';
|
|
122
122
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Links of extensions (ta-launcher.md): `ta://open?source=<source>` carries where an extension comes from, a
|
|
3
|
+
* package of npm or Git, or a link of the relay to a package of someone's computer (TaRelayServer.sharePackage).
|
|
4
|
+
* Pure, for the tests.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace ShareLinkUtil {
|
|
7
|
+
function link(source: string): string;
|
|
8
|
+
/** A link of the relay to a package of someone's computer: it works while that computer runs Ta. */
|
|
9
|
+
function relayed(source: string): boolean;
|
|
10
|
+
/** A source anyone can open by itself, without the computer it came from: npm or Git. */
|
|
11
|
+
function published(source: string | undefined): source is string;
|
|
12
|
+
/** What a link, `#open=<source>` of an address of Ta Web, or a source itself carries; undefined for anything else (a path of this computer too). */
|
|
13
|
+
function sourceOf(text: string): string | undefined;
|
|
14
|
+
/** The name a link of the relay gives its package, to ask about before it comes. */
|
|
15
|
+
function nameOf(source: string): string | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Links of extensions (ta-launcher.md): `ta://open?source=<source>` carries where an extension comes from, a
|
|
3
|
+
* package of npm or Git, or a link of the relay to a package of someone's computer (TaRelayServer.sharePackage).
|
|
4
|
+
* Pure, for the tests.
|
|
5
|
+
*/
|
|
6
|
+
export var ShareLinkUtil;
|
|
7
|
+
(function (ShareLinkUtil) {
|
|
8
|
+
const RELAYED = /^https?:\/\/[^/\s]+\/share#v=1&/i;
|
|
9
|
+
const PUBLISHED = /^(npm:\S+|git:\S+|git@\S+|https?:\/\/\S+)$/i;
|
|
10
|
+
function link(source) {
|
|
11
|
+
return `ta://open?source=${encodeURIComponent(source)}`;
|
|
12
|
+
}
|
|
13
|
+
ShareLinkUtil.link = link;
|
|
14
|
+
/** A link of the relay to a package of someone's computer: it works while that computer runs Ta. */
|
|
15
|
+
function relayed(source) {
|
|
16
|
+
return RELAYED.test(source);
|
|
17
|
+
}
|
|
18
|
+
ShareLinkUtil.relayed = relayed;
|
|
19
|
+
/** A source anyone can open by itself, without the computer it came from: npm or Git. */
|
|
20
|
+
function published(source) {
|
|
21
|
+
return !!source && PUBLISHED.test(source) && !relayed(source);
|
|
22
|
+
}
|
|
23
|
+
ShareLinkUtil.published = published;
|
|
24
|
+
/** What a link, `#open=<source>` of an address of Ta Web, or a source itself carries; undefined for anything else (a path of this computer too). */
|
|
25
|
+
function sourceOf(text) {
|
|
26
|
+
var _a;
|
|
27
|
+
const trimmed = text.trim();
|
|
28
|
+
const found = (_a = /^ta:\/\/open\?(?:[^#]*&)?source=([^&#]+)/i.exec(trimmed)) !== null && _a !== void 0 ? _a : /#open=([^&]+)$/.exec(trimmed);
|
|
29
|
+
let source = trimmed;
|
|
30
|
+
if (found) {
|
|
31
|
+
try {
|
|
32
|
+
source = decodeURIComponent(found[1]).trim();
|
|
33
|
+
}
|
|
34
|
+
catch (_b) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return PUBLISHED.test(source) ? source : undefined;
|
|
39
|
+
}
|
|
40
|
+
ShareLinkUtil.sourceOf = sourceOf;
|
|
41
|
+
/** The name a link of the relay gives its package, to ask about before it comes. */
|
|
42
|
+
function nameOf(source) {
|
|
43
|
+
var _a;
|
|
44
|
+
if (!relayed(source)) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
return (_a = new URLSearchParams(source.slice(source.indexOf('#') + 1)).get('n')) !== null && _a !== void 0 ? _a : undefined;
|
|
48
|
+
}
|
|
49
|
+
ShareLinkUtil.nameOf = nameOf;
|
|
50
|
+
})(ShareLinkUtil || (ShareLinkUtil = {}));
|
|
51
|
+
//# sourceMappingURL=share-link.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** The tone of a status, from the sign a terminal extension puts before it. */
|
|
2
|
+
export type StatusTone = 'running' | 'done' | 'error' | 'waiting';
|
|
3
|
+
export interface StatusSegment {
|
|
4
|
+
text: string;
|
|
5
|
+
tone?: StatusTone;
|
|
6
|
+
}
|
|
7
|
+
/** A status of an extension (`setStatus`), in its parts: `[WeChat] ✅ connected | abc` is a label and two segments. */
|
|
8
|
+
export interface StatusParts {
|
|
9
|
+
label?: string;
|
|
10
|
+
segments: StatusSegment[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Text that pi extensions write for a terminal (pi's TUI), shown in a page: without the escapes of the
|
|
14
|
+
* terminal, with the pictures they draw with characters (a QR code to sign in) drawn, and the signs of their
|
|
15
|
+
* status line as tones.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace TerminalText {
|
|
18
|
+
/** The text without the escapes of a terminal (colours, styles, links, titles): a page draws its own. */
|
|
19
|
+
function plain(text: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* The text without the picture in it, and without escapes; and the picture as rows of cells, dark ones true.
|
|
22
|
+
* A picture is the longest run of lines of half blocks, or of spaces on black and white: how a terminal
|
|
23
|
+
* extension draws a QR code. Its light is what a dark terminal shows light.
|
|
24
|
+
*/
|
|
25
|
+
function art(text: string): {
|
|
26
|
+
text: string;
|
|
27
|
+
art?: boolean[][];
|
|
28
|
+
};
|
|
29
|
+
/** The picture as an SVG path of its dark cells, one unit each. */
|
|
30
|
+
function path(art: boolean[][]): string;
|
|
31
|
+
/** A status line in its parts: a leading `[label]`, segments split by ` | `, and a sign at the start of one as its tone. */
|
|
32
|
+
function status(text: string): StatusParts;
|
|
33
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text that pi extensions write for a terminal (pi's TUI), shown in a page: without the escapes of the
|
|
3
|
+
* terminal, with the pictures they draw with characters (a QR code to sign in) drawn, and the signs of their
|
|
4
|
+
* status line as tones.
|
|
5
|
+
*/
|
|
6
|
+
export var TerminalText;
|
|
7
|
+
(function (TerminalText) {
|
|
8
|
+
/** Half blocks, as qrcode-terminal's small mode: the character is the light of two cells, one above the other. */
|
|
9
|
+
const CELLS = { '█': [true, true], '▀': [true, false], '▄': [false, true], ' ': [false, false] };
|
|
10
|
+
const HALF_BLOCKS = /^[█▀▄ ]+$/;
|
|
11
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: the escapes of a terminal are what is matched
|
|
12
|
+
const ESCAPES = /\x1b\[[0-?]*[ -/]*[@-~]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)|\x1b[@-Z\\-_]/g;
|
|
13
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: the colours of a terminal
|
|
14
|
+
const SGR = /\x1b\[([0-9;]*)m/g;
|
|
15
|
+
/** Fewer lines than this are not a picture (a bar, a rule). */
|
|
16
|
+
const MIN_ART_LINES = 8;
|
|
17
|
+
const TONES = [
|
|
18
|
+
[/^(?:⏳|⌛|🔄)\uFE0F?\s*/u, 'running'],
|
|
19
|
+
[/^(?:✅|✔|☑)\uFE0F?\s*/u, 'done'],
|
|
20
|
+
[/^(?:❌|✖|⛔|🚫)\uFE0F?\s*/u, 'error'],
|
|
21
|
+
[/^(?:⚠)\uFE0F?\s*/u, 'waiting'],
|
|
22
|
+
];
|
|
23
|
+
/** The text without the escapes of a terminal (colours, styles, links, titles): a page draws its own. */
|
|
24
|
+
function plain(text) {
|
|
25
|
+
return text.replace(ESCAPES, '');
|
|
26
|
+
}
|
|
27
|
+
TerminalText.plain = plain;
|
|
28
|
+
/** A line of half blocks as its two rows of cells, dark ones true. */
|
|
29
|
+
function halfBlocks(line) {
|
|
30
|
+
const text = plain(line);
|
|
31
|
+
if (!HALF_BLOCKS.test(text) || !/[█▀▄]/.test(text)) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
const top = [];
|
|
35
|
+
const bottom = [];
|
|
36
|
+
for (const char of text) {
|
|
37
|
+
const [upper, lower] = CELLS[char];
|
|
38
|
+
top.push(!upper);
|
|
39
|
+
bottom.push(!lower);
|
|
40
|
+
}
|
|
41
|
+
return [top, bottom];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A line of spaces on black and white backgrounds, as qrcode-terminal's large mode, as its row of cells:
|
|
45
|
+
* dark ones true, a cell for each character.
|
|
46
|
+
*/
|
|
47
|
+
function backgrounds(line) {
|
|
48
|
+
if (!line.includes('\x1b[') || plain(line).trim()) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
const row = [];
|
|
52
|
+
let dark;
|
|
53
|
+
let at = 0;
|
|
54
|
+
const take = (until) => {
|
|
55
|
+
for (let i = at; i < until; i++) {
|
|
56
|
+
if (dark === undefined) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
row.push(dark);
|
|
60
|
+
}
|
|
61
|
+
return true;
|
|
62
|
+
};
|
|
63
|
+
for (const match of line.matchAll(SGR)) {
|
|
64
|
+
if (!take(match.index)) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
at = match.index + match[0].length;
|
|
68
|
+
for (const code of (match[1] || '0').split(';').map(Number)) {
|
|
69
|
+
if (code === 40 || code === 100) {
|
|
70
|
+
dark = true;
|
|
71
|
+
}
|
|
72
|
+
else if (code === 47 || code === 107) {
|
|
73
|
+
dark = false;
|
|
74
|
+
}
|
|
75
|
+
else if (code === 0 || code === 49) {
|
|
76
|
+
dark = undefined;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (!take(line.length) || !row.length) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
return [row];
|
|
84
|
+
}
|
|
85
|
+
/** The longest run of lines that `cells` reads, as rows of cells, and where it is. */
|
|
86
|
+
function longest(lines, cells) {
|
|
87
|
+
let best;
|
|
88
|
+
let run;
|
|
89
|
+
lines.forEach((line, index) => {
|
|
90
|
+
const read = cells(line);
|
|
91
|
+
if (!read) {
|
|
92
|
+
run = undefined;
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
run = run ? { ...run, end: index, rows: [...run.rows, ...read] } : { start: index, end: index, rows: read };
|
|
96
|
+
if (!best || run.end - run.start > best.end - best.start) {
|
|
97
|
+
best = run;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
return best && best.end - best.start + 1 >= MIN_ART_LINES ? best : undefined;
|
|
101
|
+
}
|
|
102
|
+
/** Two characters make a square cell on a terminal: rows whose characters all go in pairs are halved. */
|
|
103
|
+
function squared(rows) {
|
|
104
|
+
const paired = rows.every(row => row.length % 2 === 0 && row.every((cell, x) => x % 2 === 0 || cell === row[x - 1]));
|
|
105
|
+
return paired ? rows.map(row => row.filter((_, x) => x % 2 === 0)) : rows;
|
|
106
|
+
}
|
|
107
|
+
/** Rows of one width: a shorter one is light at its end, as the background of a terminal. */
|
|
108
|
+
function even(rows) {
|
|
109
|
+
const width = Math.max(...rows.map(row => row.length));
|
|
110
|
+
return rows.map(row => [...row, ...new Array(width - row.length).fill(false)]);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Without the rows and columns at its edges that are dark all along: the background of the terminal around
|
|
114
|
+
* the light margin a QR code draws, not part of the picture.
|
|
115
|
+
*/
|
|
116
|
+
function trimmed(rows) {
|
|
117
|
+
var _a;
|
|
118
|
+
var _b;
|
|
119
|
+
let top = 0;
|
|
120
|
+
let bottom = rows.length;
|
|
121
|
+
while (top < bottom && rows[top].every(Boolean)) {
|
|
122
|
+
top++;
|
|
123
|
+
}
|
|
124
|
+
while (bottom > top && rows[bottom - 1].every(Boolean)) {
|
|
125
|
+
bottom--;
|
|
126
|
+
}
|
|
127
|
+
const kept = rows.slice(top, bottom);
|
|
128
|
+
const width = (_b = (_a = kept[0]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
129
|
+
const dark = (x) => kept.every(row => row[x]);
|
|
130
|
+
let left = 0;
|
|
131
|
+
let right = width;
|
|
132
|
+
while (left < right && dark(left)) {
|
|
133
|
+
left++;
|
|
134
|
+
}
|
|
135
|
+
while (right > left && dark(right - 1)) {
|
|
136
|
+
right--;
|
|
137
|
+
}
|
|
138
|
+
return kept.map(row => row.slice(left, right));
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The text without the picture in it, and without escapes; and the picture as rows of cells, dark ones true.
|
|
142
|
+
* A picture is the longest run of lines of half blocks, or of spaces on black and white: how a terminal
|
|
143
|
+
* extension draws a QR code. Its light is what a dark terminal shows light.
|
|
144
|
+
*/
|
|
145
|
+
function art(text) {
|
|
146
|
+
const lines = text.split('\n');
|
|
147
|
+
const blocks = longest(lines, halfBlocks);
|
|
148
|
+
const colours = longest(lines, backgrounds);
|
|
149
|
+
const found = blocks && (!colours || blocks.end - blocks.start >= colours.end - colours.start) ? blocks : colours;
|
|
150
|
+
if (!found) {
|
|
151
|
+
return { text: plain(text) };
|
|
152
|
+
}
|
|
153
|
+
const rest = plain([...lines.slice(0, found.start), ...lines.slice(found.end + 1)].join('\n')).trim();
|
|
154
|
+
const art = trimmed(even(found === colours ? squared(found.rows) : found.rows));
|
|
155
|
+
return art.length ? { text: rest, art } : { text: plain(text) };
|
|
156
|
+
}
|
|
157
|
+
TerminalText.art = art;
|
|
158
|
+
/** The picture as an SVG path of its dark cells, one unit each. */
|
|
159
|
+
function path(art) {
|
|
160
|
+
let d = '';
|
|
161
|
+
art.forEach((row, y) => {
|
|
162
|
+
let x = 0;
|
|
163
|
+
while (x < row.length) {
|
|
164
|
+
if (!row[x]) {
|
|
165
|
+
x++;
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
const from = x;
|
|
169
|
+
while (x < row.length && row[x]) {
|
|
170
|
+
x++;
|
|
171
|
+
}
|
|
172
|
+
d += `M${from} ${y}h${x - from}v1h-${x - from}z`;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
return d;
|
|
176
|
+
}
|
|
177
|
+
TerminalText.path = path;
|
|
178
|
+
/** A status line in its parts: a leading `[label]`, segments split by ` | `, and a sign at the start of one as its tone. */
|
|
179
|
+
function status(text) {
|
|
180
|
+
let rest = plain(text).trim();
|
|
181
|
+
const labelled = /^\[([^\]]+)\]\s*/.exec(rest);
|
|
182
|
+
const label = labelled === null || labelled === void 0 ? void 0 : labelled[1].trim();
|
|
183
|
+
if (labelled) {
|
|
184
|
+
rest = rest.slice(labelled[0].length);
|
|
185
|
+
}
|
|
186
|
+
const segments = rest
|
|
187
|
+
.split(/\s+\|\s+/)
|
|
188
|
+
.map(part => part.trim())
|
|
189
|
+
.filter(Boolean)
|
|
190
|
+
.map(part => {
|
|
191
|
+
for (const [sign, tone] of TONES) {
|
|
192
|
+
if (sign.test(part)) {
|
|
193
|
+
return { text: part.replace(sign, ''), tone };
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// Or after it, as `main ✔`; a sign alone stays, as it is all there is to read.
|
|
197
|
+
const signed = /\s+(\S+)$/u.exec(part);
|
|
198
|
+
for (const [sign, tone] of signed ? TONES : []) {
|
|
199
|
+
if (signed && sign.test(signed[1])) {
|
|
200
|
+
return { text: part.slice(0, signed.index), tone };
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return { text: part };
|
|
204
|
+
});
|
|
205
|
+
return label ? { label, segments } : { segments };
|
|
206
|
+
}
|
|
207
|
+
TerminalText.status = status;
|
|
208
|
+
})(TerminalText || (TerminalText = {}));
|
|
209
|
+
//# sourceMappingURL=terminal-text.js.map
|
|
@@ -31,7 +31,7 @@ export declare namespace ToolUtil {
|
|
|
31
31
|
* the time; the live runs have the arguments and the results; the result message keeps the arguments.
|
|
32
32
|
*/
|
|
33
33
|
function nestedCalls(id: string, output: ToolOutput | undefined, runs: Record<string, ToolRun>): NestedCall[];
|
|
34
|
-
/** The steps of the tool calls of a turn, with those of their scripts, and how many of them failed. */
|
|
34
|
+
/** The steps of the tool calls of a turn, with those of their scripts, and how many of them failed (not those the user stopped). */
|
|
35
35
|
function count(calls: ContentBlock[], results: Map<string, ToolOutput>, runs: Record<string, ToolRun>): {
|
|
36
36
|
steps: number;
|
|
37
37
|
failed: number;
|