@celljs/ta-web 4.16.0 → 4.17.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 +1 -1
- package/README.md +1 -1
- package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +6 -7
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +57 -4
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +29 -7
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.js +7 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +19 -7
- package/esm/browser/assistant/assistant-task-util.js +73 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +0 -2
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +108 -0
- package/esm/browser/assistant/assistant-view.js +77 -126
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +103 -356
- package/esm/browser/assistant/chat-task-source.d.ts +58 -0
- package/esm/browser/assistant/chat-task-source.js +107 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +77 -0
- package/esm/browser/assistant/realtime-voice.js +320 -0
- package/esm/browser/assistant/task-views.d.ts +2 -3
- package/esm/browser/assistant/task-views.js +20 -16
- package/esm/browser/assistant/voice-call-bar.d.ts +60 -0
- package/esm/browser/assistant/voice-call-bar.js +260 -0
- package/esm/browser/assistant/voice-call.d.ts +175 -0
- package/esm/browser/assistant/voice-call.js +366 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +2 -1
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/components/access-view.js +1 -1
- package/esm/browser/components/account-menu.js +1 -1
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +7 -7
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +466 -0
- package/esm/browser/components/app-view.js +121 -333
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +54 -5
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-icon.d.ts +6 -0
- package/esm/browser/components/chat-icon.js +17 -1
- package/esm/browser/components/chat-list-row.d.ts +84 -0
- package/esm/browser/components/chat-list-row.js +198 -0
- package/esm/browser/components/chat-list-util.d.ts +166 -0
- package/esm/browser/components/chat-list-util.js +335 -0
- package/esm/browser/components/chat-list.d.ts +9 -148
- package/esm/browser/components/chat-list.js +277 -513
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +49 -156
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/context-menu.js +4 -0
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +1 -35
- package/esm/browser/components/conversation-scroll.js +2 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +57 -14
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/host-view.js +3 -1
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-viewer.d.ts +3 -2
- package/esm/browser/components/image-viewer.js +29 -4
- package/esm/browser/components/lightbox.js +2 -0
- package/esm/browser/components/link-dialog.js +2 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/markdown.js +5 -0
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +10 -447
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +182 -0
- package/esm/browser/components/message-user.d.ts +54 -0
- package/esm/browser/components/message-user.js +169 -0
- package/esm/browser/components/model-picker.d.ts +1 -1
- package/esm/browser/components/model-picker.js +2 -0
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +12 -1
- package/esm/browser/components/nav-places.js +10 -2
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +4 -3
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.js +7 -0
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +157 -7
- package/esm/browser/components/settings-choices.d.ts +6 -0
- package/esm/browser/components/settings-choices.js +8 -0
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +31 -249
- package/esm/browser/components/settings-view.js +43 -15
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/unseen-drop.d.ts +10 -4
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +137 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +3 -1
- package/esm/browser/extension/web-api-components.d.ts +13 -0
- package/esm/browser/extension/web-api-contributions.d.ts +125 -0
- package/esm/browser/extension/web-extension-api.d.ts +88 -5
- package/esm/browser/extension/web-extension-context.d.ts +5 -0
- package/esm/browser/extension/web-extension-context.js +60 -7
- package/esm/browser/extension/web-extension-protocol.d.ts +19 -1
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -1
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +6 -82
- package/esm/browser/extension/web-extensions.js +10 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +2 -0
- package/esm/browser/extension/web-tasks.js +6 -0
- package/esm/browser/extension/web-view-util.d.ts +2 -1
- package/esm/browser/extension/web-view-util.js +4 -1
- package/esm/browser/gateway/console-parts.d.ts +1 -11
- package/esm/browser/gateway/console-parts.js +38 -128
- package/esm/browser/gateway/console-tenant.js +2 -1
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +115 -0
- package/esm/browser/gateway/console-view.js +39 -1
- package/esm/browser/i18n/locales.d.ts +143 -6
- package/esm/browser/i18n/messages-ja.js +144 -7
- package/esm/browser/i18n/messages-zh-tw.js +144 -7
- package/esm/browser/i18n/messages.d.ts +140 -3
- package/esm/browser/i18n/messages.js +288 -14
- package/esm/browser/index.d.ts +17 -0
- package/esm/browser/index.js +17 -0
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +112 -0
- package/esm/browser/screen/screen-protocol.js +45 -0
- package/esm/browser/screen/screen.d.ts +20 -0
- package/esm/browser/screen/screen.js +122 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/settings-protocol.d.ts +5 -1
- package/esm/browser/settings/settings-protocol.js +6 -2
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +145 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +4 -0
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +153 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +24 -8
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +163 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +1 -525
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +9 -3
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +6 -2
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +23 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +47 -0
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +13 -8
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +6 -2
- package/esm/browser/util/process.js +6 -2
- package/esm/browser/util/spoken.d.ts +24 -0
- package/esm/browser/util/spoken.js +83 -0
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +46 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +14 -1
- package/esm/browser/workbench-services.d.ts +49 -0
- package/esm/browser/workbench-services.js +120 -0
- package/esm/browser/workbench-util.d.ts +1 -1
- package/esm/browser/workbench.d.ts +6 -89
- package/esm/browser/workbench.js +26 -336
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +6 -7
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +55 -2
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +30 -8
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.js +7 -1
- package/lib/browser/assistant/assistant-task-util.d.ts +19 -7
- package/lib/browser/assistant/assistant-task-util.js +73 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +1 -3
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +144 -0
- package/lib/browser/assistant/assistant-view.js +74 -123
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +100 -353
- package/lib/browser/assistant/chat-task-source.d.ts +59 -0
- package/lib/browser/assistant/chat-task-source.js +111 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +78 -0
- package/lib/browser/assistant/realtime-voice.js +324 -0
- package/lib/browser/assistant/task-views.d.ts +2 -3
- package/lib/browser/assistant/task-views.js +19 -15
- package/lib/browser/assistant/voice-call-bar.d.ts +61 -0
- package/lib/browser/assistant/voice-call-bar.js +306 -0
- package/lib/browser/assistant/voice-call.d.ts +176 -0
- package/lib/browser/assistant/voice-call.js +370 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +2 -1
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/components/access-view.js +2 -2
- package/lib/browser/components/account-menu.js +1 -1
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +7 -7
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +502 -0
- package/lib/browser/components/app-view.js +114 -326
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +53 -4
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-icon.d.ts +6 -0
- package/lib/browser/components/chat-icon.js +17 -1
- package/lib/browser/components/chat-list-row.d.ts +85 -0
- package/lib/browser/components/chat-list-row.js +236 -0
- package/lib/browser/components/chat-list-util.d.ts +167 -0
- package/lib/browser/components/chat-list-util.js +338 -0
- package/lib/browser/components/chat-list.d.ts +9 -148
- package/lib/browser/components/chat-list.js +294 -532
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +51 -159
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/context-menu.js +4 -0
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +1 -35
- package/lib/browser/components/conversation-scroll.js +20 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +56 -13
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/host-view.js +4 -2
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-viewer.d.ts +3 -2
- package/lib/browser/components/image-viewer.js +28 -3
- package/lib/browser/components/lightbox.js +2 -0
- package/lib/browser/components/link-dialog.js +2 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/markdown.js +5 -0
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +11 -455
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +218 -0
- package/lib/browser/components/message-user.d.ts +55 -0
- package/lib/browser/components/message-user.js +211 -0
- package/lib/browser/components/model-picker.d.ts +1 -1
- package/lib/browser/components/model-picker.js +2 -0
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +12 -1
- package/lib/browser/components/nav-places.js +12 -3
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +4 -3
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.js +7 -0
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +157 -7
- package/lib/browser/components/settings-choices.d.ts +7 -1
- package/lib/browser/components/settings-choices.js +9 -1
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +27 -245
- package/lib/browser/components/settings-view.js +43 -15
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/unseen-drop.d.ts +10 -4
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +173 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +2 -0
- package/lib/browser/extension/web-api-components.d.ts +13 -0
- package/lib/browser/extension/web-api-contributions.d.ts +125 -0
- package/lib/browser/extension/web-extension-api.d.ts +88 -5
- package/lib/browser/extension/web-extension-context.d.ts +5 -0
- package/lib/browser/extension/web-extension-context.js +62 -9
- package/lib/browser/extension/web-extension-protocol.d.ts +19 -1
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -1
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +6 -82
- package/lib/browser/extension/web-extensions.js +7 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +2 -0
- package/lib/browser/extension/web-tasks.js +6 -0
- package/lib/browser/extension/web-view-util.d.ts +2 -1
- package/lib/browser/extension/web-view-util.js +4 -1
- package/lib/browser/gateway/console-parts.d.ts +1 -11
- package/lib/browser/gateway/console-parts.js +38 -129
- package/lib/browser/gateway/console-tenant.js +2 -1
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +151 -0
- package/lib/browser/gateway/console-view.js +39 -1
- package/lib/browser/i18n/locales.d.ts +143 -6
- package/lib/browser/i18n/messages-ja.js +144 -7
- package/lib/browser/i18n/messages-zh-tw.js +144 -7
- package/lib/browser/i18n/messages.d.ts +140 -3
- package/lib/browser/i18n/messages.js +288 -14
- package/lib/browser/index.d.ts +17 -0
- package/lib/browser/index.js +17 -0
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +113 -0
- package/lib/browser/screen/screen-protocol.js +48 -0
- package/lib/browser/screen/screen.d.ts +21 -0
- package/lib/browser/screen/screen.js +125 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/settings-protocol.d.ts +5 -1
- package/lib/browser/settings/settings-protocol.js +5 -1
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +181 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +4 -0
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +156 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +24 -8
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +166 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +1 -525
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +9 -3
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +7 -3
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +26 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +47 -0
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +13 -8
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +6 -2
- package/lib/browser/util/process.js +6 -2
- package/lib/browser/util/spoken.d.ts +25 -0
- package/lib/browser/util/spoken.js +86 -0
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +49 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +14 -1
- package/lib/browser/workbench-services.d.ts +50 -0
- package/lib/browser/workbench-services.js +124 -0
- package/lib/browser/workbench-util.d.ts +1 -1
- package/lib/browser/workbench.d.ts +6 -89
- package/lib/browser/workbench.js +23 -333
- package/package.json +7 -7
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { WebLabelUtil } from '../extension/web-extension-protocol.js';
|
|
2
|
+
export var ScreenNavigatorUtil;
|
|
3
|
+
(function (ScreenNavigatorUtil) {
|
|
4
|
+
/** What is in front, a line: `Settings → voice`, `Page “Town”`, `Conversation “Fix the login” · list “Chats” beside`. */
|
|
5
|
+
function where(front) {
|
|
6
|
+
var _a;
|
|
7
|
+
const main = front.settings !== undefined
|
|
8
|
+
? `${front.words.settings}${front.settings ? ` → ${front.settings}` : ''}`
|
|
9
|
+
: front.page
|
|
10
|
+
? `Page “${WebLabelUtil.text(front.page.title)}”`
|
|
11
|
+
: front.discover
|
|
12
|
+
? front.words.discover
|
|
13
|
+
: front.me
|
|
14
|
+
? front.words.me
|
|
15
|
+
: front.chat !== undefined
|
|
16
|
+
? `Conversation “${front.chat}”`
|
|
17
|
+
: undefined;
|
|
18
|
+
const list = front.list !== undefined ? `List “${front.list}”` : undefined;
|
|
19
|
+
return main && list ? `${main}, with the ${list} beside` : ((_a = main !== null && main !== void 0 ? main : list) !== null && _a !== void 0 ? _a : '');
|
|
20
|
+
}
|
|
21
|
+
ScreenNavigatorUtil.where = where;
|
|
22
|
+
/** A conversation by its session id, its file or its name: the name whole first, then a part of it. */
|
|
23
|
+
function chat(chats, words) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const word = words.trim().toLowerCase();
|
|
26
|
+
if (!word) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
return ((_b = (_a = chats.find(one => one.sessionId === words || one.sessionFile === words)) !== null && _a !== void 0 ? _a : chats.find(one => one.name.trim().toLowerCase() === word)) !== null && _b !== void 0 ? _b : chats.find(one => one.name.toLowerCase().includes(word)));
|
|
30
|
+
}
|
|
31
|
+
ScreenNavigatorUtil.chat = chat;
|
|
32
|
+
})(ScreenNavigatorUtil || (ScreenNavigatorUtil = {}));
|
|
33
|
+
//# sourceMappingURL=screen-navigator-util.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ScreenPlace } from '../screen/screen-protocol.js';
|
|
3
|
+
/** What the shell knows of where it is, as AppShell renders: the navigator reads the latest. */
|
|
4
|
+
export interface ShellPlaces {
|
|
5
|
+
phone: boolean;
|
|
6
|
+
/** What is in front now, a line. */
|
|
7
|
+
where: string;
|
|
8
|
+
places: ScreenPlace[];
|
|
9
|
+
/** Goes to a place of `places`. */
|
|
10
|
+
goPlace(place: ScreenPlace): unknown;
|
|
11
|
+
/** Shows a conversation: open by its session id, or saved by its file. */
|
|
12
|
+
showChat(target: {
|
|
13
|
+
sessionId: string;
|
|
14
|
+
} | {
|
|
15
|
+
sessionFile: string;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
/** Conversations by name: those open, then those saved. */
|
|
18
|
+
chats: {
|
|
19
|
+
name: string;
|
|
20
|
+
sessionId?: string;
|
|
21
|
+
sessionFile?: string;
|
|
22
|
+
}[];
|
|
23
|
+
/** Opens the settings at a section. */
|
|
24
|
+
openSettings(section?: string): void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The shell as TaScreen's navigator (docs/design/ta-app-use.md 3): what AppShell sets on the ref as it renders is
|
|
28
|
+
* what the agent reads and where it goes. Called before AppShell returns anything else, as hooks are.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useScreenNavigator(): React.RefObject<ShellPlaces | undefined>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { useInject } from '@celljs/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ScreenUtil, TaScreen } from '../screen/screen-protocol.js';
|
|
4
|
+
import { ScreenNavigatorUtil } from './screen-navigator-util.js';
|
|
5
|
+
/**
|
|
6
|
+
* The shell as TaScreen's navigator (docs/design/ta-app-use.md 3): what AppShell sets on the ref as it renders is
|
|
7
|
+
* what the agent reads and where it goes. Called before AppShell returns anything else, as hooks are.
|
|
8
|
+
*/
|
|
9
|
+
export function useScreenNavigator() {
|
|
10
|
+
const screen = useInject(TaScreen);
|
|
11
|
+
const shell = React.useRef(undefined);
|
|
12
|
+
React.useEffect(() => {
|
|
13
|
+
const navigator = {
|
|
14
|
+
where: () => { var _a; var _b; return (_b = (_a = shell.current) === null || _a === void 0 ? void 0 : _a.where) !== null && _b !== void 0 ? _b : ''; },
|
|
15
|
+
places: () => { var _a; var _b; return (_b = (_a = shell.current) === null || _a === void 0 ? void 0 : _a.places) !== null && _b !== void 0 ? _b : []; },
|
|
16
|
+
go: async (to) => {
|
|
17
|
+
var _a;
|
|
18
|
+
const now = shell.current;
|
|
19
|
+
if (!now) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (to.startsWith('chat:')) {
|
|
23
|
+
const chat = ScreenNavigatorUtil.chat(now.chats, to.slice(5));
|
|
24
|
+
if (!chat) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
await now.showChat(chat.sessionId ? { sessionId: chat.sessionId } : { sessionFile: (_a = chat.sessionFile) !== null && _a !== void 0 ? _a : '' });
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
if (to.startsWith('settings:')) {
|
|
31
|
+
now.openSettings(to.slice(9));
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
const place = ScreenUtil.find(now.places, to);
|
|
35
|
+
if (!place) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
await now.goPlace(place);
|
|
39
|
+
return true;
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
screen.setNavigator(navigator);
|
|
43
|
+
return () => screen.setNavigator(undefined);
|
|
44
|
+
}, [screen]);
|
|
45
|
+
return shell;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=screen-navigator.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SessionStore } from '@celljs/ta-client';
|
|
2
2
|
import type { TaCommandResult, TaServer, TaSettingsServer, TaSlashCommand, ThinkingLevel } from '@celljs/ta-protocol';
|
|
3
3
|
import type { Translate } from '../i18n/use-t.js';
|
|
4
|
-
import type { ComposerAction } from './composer-box.js';
|
|
4
|
+
import type { ComposerAction } from './composer-box-protocol.js';
|
|
5
5
|
type Model = TaCommandResult<'get_available_models'>['models'][number];
|
|
6
6
|
/** What a session needs from the server besides its events: models, thinking levels, commands. */
|
|
7
7
|
export interface SessionSettings {
|
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
import { useInject } from '@celljs/react';
|
|
2
2
|
import { TA_OWNER } from '@celljs/ta-protocol';
|
|
3
|
-
import { ArrowDown } from 'lucide-react';
|
|
3
|
+
import { ArrowDown, TextSearch } from 'lucide-react';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import { CallBar, callAction, callEndedNotice, dialogAnnouncements, talkCall, useCallAnnouncements, useCallTurns, useTalkCalls, useVoiceCall, } from '../assistant/voice-call-bar.js';
|
|
5
6
|
import { useKeyboardDismiss } from '../device/device.js';
|
|
7
|
+
import { DraftPlaces } from '../drafts/drafts-protocol.js';
|
|
6
8
|
import { TaFiles } from '../files/files-protocol.js';
|
|
7
9
|
import { useNotices, useOpenLink, usePersisted, useSessionState, useSettings, useSettingsServer } from '../hooks.js';
|
|
8
10
|
import { useT } from '../i18n/use-t.js';
|
|
9
11
|
import { CodeReply } from '../markdown/code-renderers.js';
|
|
12
|
+
import { ScreenUtil } from '../screen/screen-protocol.js';
|
|
13
|
+
import { useScreenPart } from '../screen/use-screen-part.js';
|
|
10
14
|
import { LinkUtil } from '../util/link.js';
|
|
11
15
|
import { MessageUtil } from '../util/message.js';
|
|
12
16
|
import { TerminalText } from '../util/terminal-text.js';
|
|
13
17
|
import { ThumbnailUtil } from '../util/thumbnail.js';
|
|
18
|
+
import { Voice } from '../util/voice.js';
|
|
14
19
|
import { TaWorkbench } from '../workbench-protocol.js';
|
|
15
20
|
import { ChatAskUtil, LET_GO_ASKS } from './chat-asks.js';
|
|
16
21
|
import { Composer } from './composer.js';
|
|
17
22
|
import { useComposerAddons } from './composer-addons.js';
|
|
18
|
-
import {
|
|
23
|
+
import { ComposerTarget } from './composer-target.js';
|
|
24
|
+
import { ConversationFind } from './conversation-find.js';
|
|
19
25
|
import { useAwayFromBottom, useConversationScroll } from './conversation-scroll-hooks.js';
|
|
26
|
+
import { SCROLL_SKIP } from './conversation-scroll-util.js';
|
|
20
27
|
import { DialogView } from './dialog-view.js';
|
|
21
28
|
import { useAsked, useEarlierMessages, useRowWindow } from './earlier-messages.js';
|
|
22
29
|
import { GrowBox } from './grow-box.js';
|
|
30
|
+
import { Icon } from './icon.js';
|
|
23
31
|
import { OpenLink } from './link.js';
|
|
24
32
|
import { FileUrls } from './media.js';
|
|
25
33
|
import { useMessageActions } from './message-actions.js';
|
|
26
34
|
import { MessageActions } from './message-footer.js';
|
|
27
|
-
import {
|
|
35
|
+
import { MessageImages } from './message-images.js';
|
|
36
|
+
import { ConversationSession, MessageList } from './message-list.js';
|
|
37
|
+
import { MovedNotice } from './moved-notice.js';
|
|
28
38
|
import { MessagePeople, PeopleFaces, PresenceLine, PresenceUtil } from './people.js';
|
|
29
39
|
import { useSessionSettings } from './session-settings.js';
|
|
30
40
|
import { TerminalArt } from './terminal-art.js';
|
|
@@ -111,7 +121,23 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
|
|
|
111
121
|
useSessionNotices(store, state.notices);
|
|
112
122
|
const { settings, actions } = useSessionSettings(server, useSettingsServer(), store, state.working, t, fail);
|
|
113
123
|
const composer = React.useRef(null);
|
|
114
|
-
const
|
|
124
|
+
const [settingsState] = useSettings();
|
|
125
|
+
const recentShots = settingsState.settings.recentShots;
|
|
126
|
+
// A call: the conversation listens, answers aloud, and listens again (VoiceCall); not in a tab of the workbench.
|
|
127
|
+
const [callState, call] = useVoiceCall({
|
|
128
|
+
language: () => settingsState.language,
|
|
129
|
+
voice: () => settingsState.settings.voice,
|
|
130
|
+
send: text => store.prompt(text, { streamingBehavior: 'followUp' }),
|
|
131
|
+
ended: (reason, detail) => notices.notify(callEndedNotice(t, reason, detail)),
|
|
132
|
+
}, { sessionId: store.sessionId, sessionFile: info === null || info === void 0 ? void 0 : info.sessionFile, cwd: info === null || info === void 0 ? void 0 : info.cwd, double: false });
|
|
133
|
+
useCallTurns(call, callState, state.working, MessageUtil.lastReply(state.messages, state.start));
|
|
134
|
+
// In a call, a dialog it waits on is said: the user may not be looking.
|
|
135
|
+
useCallAnnouncements(call, callState, dialogAnnouncements(state.pendingUi, t));
|
|
136
|
+
const callable = !compact && Voice.canSpeak() && Voice.canListen();
|
|
137
|
+
const talkCalls = useTalkCalls();
|
|
138
|
+
// Another conversation shown in the same view: the call was with this one.
|
|
139
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: hangs up as the store changes
|
|
140
|
+
React.useEffect(() => () => call.hangUp(), [call, store]);
|
|
115
141
|
const cwd = info === null || info === void 0 ? void 0 : info.cwd;
|
|
116
142
|
const messageActions = useMessageActions(store, server, state.working, cwd, composer, onActivity);
|
|
117
143
|
// An extension puts text in the message box, as in pi's terminal.
|
|
@@ -130,6 +156,14 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
|
|
|
130
156
|
(_a = composer.current) === null || _a === void 0 ? void 0 : _a.setText(draftText);
|
|
131
157
|
}
|
|
132
158
|
}, [draftText]);
|
|
159
|
+
// The box of the conversation in front takes what extensions put in it (WebUiAPI.addToComposer); not a tab's.
|
|
160
|
+
React.useEffect(() => compact
|
|
161
|
+
? undefined
|
|
162
|
+
: ComposerTarget.set({
|
|
163
|
+
text: () => { var _a; var _b; return (_b = (_a = composer.current) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : ''; },
|
|
164
|
+
setText: text => { var _a; return (_a = composer.current) === null || _a === void 0 ? void 0 : _a.setText(text); },
|
|
165
|
+
addFiles: files => { var _a, _b; return (_b = (_a = composer.current) === null || _a === void 0 ? void 0 : _a.addFiles) === null || _b === void 0 ? void 0 : _b.call(_a, files); },
|
|
166
|
+
}), [compact]);
|
|
133
167
|
const files = useInject(TaFiles);
|
|
134
168
|
const fileUrl = React.useCallback(async (path, box) => files.loadable(ThumbnailUtil.boxed(await workspace.fileUrl(path, cwd), box)), [workspace, cwd, files]);
|
|
135
169
|
const namedPaths = React.useCallback(() => MessageUtil.namedPaths(store.state.messages), [store]);
|
|
@@ -148,6 +182,119 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
|
|
|
148
182
|
const title = (info === null || info === void 0 ? void 0 : info.sessionName) || (info ? MessageUtil.basename(info.cwd) : t('ta.session.title'));
|
|
149
183
|
const conversation = React.useMemo(() => ({ sessionId: store.sessionId, sessionFile: info === null || info === void 0 ? void 0 : info.sessionFile, cwd: info === null || info === void 0 ? void 0 : info.cwd, kind: 'chat', group: info === null || info === void 0 ? void 0 : info.group, title }), [store.sessionId, info === null || info === void 0 ? void 0 : info.sessionFile, info === null || info === void 0 ? void 0 : info.cwd, info === null || info === void 0 ? void 0 : info.group, title]);
|
|
150
184
|
const addons = useComposerAddons(conversation);
|
|
185
|
+
// Finding words in it (ConversationFind): 0 while it does not show, counted up each time it is asked for.
|
|
186
|
+
const [finding, setFinding] = React.useState(0);
|
|
187
|
+
const closeFind = React.useCallback(() => setFinding(0), []);
|
|
188
|
+
React.useEffect(() => {
|
|
189
|
+
if (compact) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
// Cmd/Ctrl+F, as a browser's find; not for an editor or a terminal of the workbench, which find their own.
|
|
193
|
+
const onKey = (event) => {
|
|
194
|
+
var _a;
|
|
195
|
+
const target = event.target;
|
|
196
|
+
if (event.defaultPrevented ||
|
|
197
|
+
!(event.metaKey || event.ctrlKey) ||
|
|
198
|
+
event.shiftKey ||
|
|
199
|
+
event.altKey ||
|
|
200
|
+
event.key.toLowerCase() !== 'f' ||
|
|
201
|
+
((_a = target === null || target === void 0 ? void 0 : target.closest) === null || _a === void 0 ? void 0 : _a.call(target, '.ta-editors-pane, .xterm, .cm-editor, .monaco-editor'))) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
event.preventDefault();
|
|
205
|
+
setFinding(count => count + 1);
|
|
206
|
+
};
|
|
207
|
+
window.addEventListener('keydown', onKey);
|
|
208
|
+
return () => window.removeEventListener('keydown', onKey);
|
|
209
|
+
}, [compact]);
|
|
210
|
+
// What an agent reads of the conversation and does in it, as the user does (docs/design/ta-app-use.md 3).
|
|
211
|
+
const partId = compact ? 'conversation-tab' : 'conversation';
|
|
212
|
+
useScreenPart({
|
|
213
|
+
id: partId,
|
|
214
|
+
title: (info === null || info === void 0 ? void 0 : info.sessionName) || (info === null || info === void 0 ? void 0 : info.firstMessage) || title,
|
|
215
|
+
state: () => (state.working ? t('ta.screen.working') : dialog ? t('ta.screen.asks', { question: 'title' in dialog ? dialog.title : '' }) : undefined),
|
|
216
|
+
items: () => [
|
|
217
|
+
...state.messages
|
|
218
|
+
.filter(message => message.role === 'user' || message.role === 'assistant')
|
|
219
|
+
.slice(-6)
|
|
220
|
+
.map((message, index) => {
|
|
221
|
+
const text = MessageUtil.text(MessageUtil.blocks(message)).replace(/\s+/g, ' ').trim();
|
|
222
|
+
return { id: `m${index}`, text: `${message.role === 'user' ? '›' : '‹'} ${text.length > 240 ? `${text.slice(0, 239)}…` : text}` };
|
|
223
|
+
})
|
|
224
|
+
.filter(item => item.text.length > 2),
|
|
225
|
+
...(dialog && 'title' in dialog
|
|
226
|
+
? [
|
|
227
|
+
{
|
|
228
|
+
id: 'dialog',
|
|
229
|
+
text: dialog.title,
|
|
230
|
+
marks: dialog.method === 'select' ? dialog.options : dialog.method === 'confirm' ? [dialog.message] : [dialog.method],
|
|
231
|
+
},
|
|
232
|
+
]
|
|
233
|
+
: []),
|
|
234
|
+
],
|
|
235
|
+
actions: {
|
|
236
|
+
send: {
|
|
237
|
+
label: t('ta.send'),
|
|
238
|
+
takes: 'text',
|
|
239
|
+
run: async (_item, input) => {
|
|
240
|
+
var _a;
|
|
241
|
+
const text = String((_a = input.text) !== null && _a !== void 0 ? _a : '').trim();
|
|
242
|
+
if (!text) {
|
|
243
|
+
throw new Error('Send what? Pass input.text.');
|
|
244
|
+
}
|
|
245
|
+
await store.prompt(text, { streamingBehavior: 'followUp' });
|
|
246
|
+
return 'Sent.';
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
stop: {
|
|
250
|
+
label: t('ta.stop'),
|
|
251
|
+
...((info === null || info === void 0 ? void 0 : info.sessionFile) ? { command: 'chats.stop', commandInput: () => ({ file: info.sessionFile }) } : {}),
|
|
252
|
+
run: async () => {
|
|
253
|
+
await server.abort(store.sessionId);
|
|
254
|
+
return 'Stopped.';
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
...(dialog && 'title' in dialog
|
|
258
|
+
? {
|
|
259
|
+
answer: {
|
|
260
|
+
label: t('ta.screen.answer'),
|
|
261
|
+
takes: dialog.method === 'select' ? 'one of its choices' : dialog.method === 'confirm' ? 'yes or no' : 'text',
|
|
262
|
+
run: async (_item, input) => {
|
|
263
|
+
var _a, _b, _c, _d;
|
|
264
|
+
const said = String((_b = (_a = input.text) !== null && _a !== void 0 ? _a : input.answer) !== null && _b !== void 0 ? _b : '').trim();
|
|
265
|
+
const response = dialog.method === 'confirm'
|
|
266
|
+
? { confirmed: /^(y|yes|true|ok|是|好|可以|确认|確認|はい)$/i.test(said) }
|
|
267
|
+
: dialog.method === 'select'
|
|
268
|
+
? {
|
|
269
|
+
value: (_d = (_c = dialog.options.find(option => option.toLowerCase() === said.toLowerCase())) !== null && _c !== void 0 ? _c : dialog.options[Number(said) - 1]) !== null && _d !== void 0 ? _d : '',
|
|
270
|
+
}
|
|
271
|
+
: { value: said };
|
|
272
|
+
if ('value' in response && !response.value) {
|
|
273
|
+
throw new Error(dialog.method === 'select' ? `Answer one of: ${dialog.options.join(', ')}.` : 'Answer with some text.');
|
|
274
|
+
}
|
|
275
|
+
await store.respondUi({ type: 'extension_ui_response', id: dialog.id, ...response });
|
|
276
|
+
return 'Answered.';
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
}
|
|
280
|
+
: {}),
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
const nothingSaid = state.messages.length === 0;
|
|
284
|
+
const composerActions = React.useMemo(() => [
|
|
285
|
+
[
|
|
286
|
+
...actions,
|
|
287
|
+
{
|
|
288
|
+
key: 'find',
|
|
289
|
+
label: t('ta.find.open'),
|
|
290
|
+
icon: React.createElement(Icon, { icon: TextSearch, size: 16 }),
|
|
291
|
+
disabled: nothingSaid,
|
|
292
|
+
run: () => setFinding(count => count + 1),
|
|
293
|
+
},
|
|
294
|
+
...(callable ? [callAction(callState, call, t)] : []),
|
|
295
|
+
],
|
|
296
|
+
...addons.actions,
|
|
297
|
+
], [actions, addons.actions, t, nothingSaid, callable, callState, call]);
|
|
151
298
|
const outbox = React.useMemo(() => ({ resend: id => void store.resend(id), discard: id => store.discard(id) }), [store]);
|
|
152
299
|
const images = React.useCallback((timestamp, index) => server.getMessageImage(store.sessionId, timestamp, index), [server, store]);
|
|
153
300
|
// A choice in a card of a reply answers this conversation, wherever it is shown, not the one in front.
|
|
@@ -158,7 +305,7 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
|
|
|
158
305
|
const onTyping = React.useCallback((typing) => presence.type(store.sessionId, typing), [presence, store]);
|
|
159
306
|
const viewing = PresenceUtil.viewing(info === null || info === void 0 ? void 0 : info.people);
|
|
160
307
|
return (React.createElement(MessagePeople.Provider, { value: people },
|
|
161
|
-
React.createElement("section", { className: `ta-session ${compact ? 'ta-session-compact' : ''}
|
|
308
|
+
React.createElement("section", { className: `ta-session ${compact ? 'ta-session-compact' : ''}`, ...ScreenUtil.part(partId) },
|
|
162
309
|
!compact && (React.createElement("header", { className: "ta-session-header" },
|
|
163
310
|
leading,
|
|
164
311
|
React.createElement("div", { className: "ta-session-title" },
|
|
@@ -166,6 +313,7 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
|
|
|
166
313
|
info && (React.createElement("span", { className: "ta-muted ta-path", title: info.cwd }, MessageUtil.shortPath(info.cwd)))),
|
|
167
314
|
React.createElement(PeopleFaces, { people: viewing, size: 24, label: t('ta.presence.viewing') }),
|
|
168
315
|
trailing)),
|
|
316
|
+
finding > 0 && React.createElement(ConversationFind, { store: store, state: state, rows: rows, scroller: scroller, focusKey: finding, onClose: closeFind }),
|
|
169
317
|
React.createElement("div", { className: "ta-scroll ta-conversation", ref: scroller },
|
|
170
318
|
React.createElement("div", { className: "ta-thread" },
|
|
171
319
|
state.start > 0 && (React.createElement("div", { className: `ta-earlier ${state.loadingEarlier ? '' : 'ta-earlier-idle'}`, role: "status", "aria-label": state.loadingEarlier ? t('ta.session.earlier') : undefined, ...SCROLL_SKIP },
|
|
@@ -189,10 +337,12 @@ export function SessionView({ store, server, workspace, info, onClosed, onActivi
|
|
|
189
337
|
React.createElement(GrowBox, null,
|
|
190
338
|
React.createElement(PresenceLine, { people: info === null || info === void 0 ? void 0 : info.people, working: state.working }),
|
|
191
339
|
dialog && React.createElement(DialogView, { key: dialog.id, request: dialog, respond: response => store.respondUi(response).catch(fail) }),
|
|
340
|
+
(info === null || info === void 0 ? void 0 : info.movedFrom) && (React.createElement(MovedNotice, { server: server, sessionId: store.sessionId, sessionFile: info.sessionFile, movedFrom: info.movedFrom, cwd: info.cwd })),
|
|
192
341
|
aboveComposer,
|
|
193
342
|
widgetsAt('aboveEditor'),
|
|
194
|
-
addons.above
|
|
195
|
-
|
|
343
|
+
addons.above,
|
|
344
|
+
React.createElement(CallBar, { state: callState, call: call })),
|
|
345
|
+
React.createElement(Composer, { ref: composer, store: store, server: server, workspace: workspace, working: state.working, commands: settings.commands, cwd: info === null || info === void 0 ? void 0 : info.cwd, actions: composerActions, recentShots: recentShots, onStopTimed: stopTimed, onTyping: onTyping, draft: (info === null || info === void 0 ? void 0 : info.sessionFile) ? DraftPlaces.chat(info.sessionFile) : undefined, onTalkCall: callable && !callState.active ? talkCall(call) : undefined, talkCalls: talkCalls, onError: fail }),
|
|
196
346
|
belowComposer,
|
|
197
347
|
widgetsAt('belowEditor'),
|
|
198
348
|
statuses.length > 0 && (React.createElement("div", { className: "ta-statusline" }, statuses.map(([key, text]) => (React.createElement(StatusChip, { key: key, text: text })))))))));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type TaPackageInfo } from '@celljs/ta-protocol';
|
|
2
2
|
import { type LucideIcon } from 'lucide-react';
|
|
3
|
+
import type { WebSettingsGroup } from '../extension/web-extension-api.js';
|
|
3
4
|
import type { MessageId } from '../i18n/messages.js';
|
|
4
5
|
import type { useT } from '../i18n/use-t.js';
|
|
5
6
|
import type { FontSize, LanguageSetting, ThemeSetting } from '../settings/settings-protocol.js';
|
|
@@ -10,6 +11,11 @@ export declare const FONT_SIZES: Choice<FontSize>[];
|
|
|
10
11
|
export declare const LANGUAGES: Choice<LanguageSetting>[];
|
|
11
12
|
/** The model has the icon of the + menu's model (ModelPicker), the others their own. */
|
|
12
13
|
export declare const GROUP_ICONS: Record<string, LucideIcon>;
|
|
14
|
+
/** The parts of the settings, in their order: by what the user looks for, not where a setting is kept. */
|
|
15
|
+
export declare const SETTINGS_GROUPS: readonly {
|
|
16
|
+
id: WebSettingsGroup;
|
|
17
|
+
title: MessageId;
|
|
18
|
+
}[];
|
|
13
19
|
/** The keys of the page and of the message box; `Mod` is ⌘ on a Mac, Ctrl elsewhere. */
|
|
14
20
|
export declare const SHORTCUTS: {
|
|
15
21
|
keys: string;
|
|
@@ -24,6 +24,14 @@ export const LANGUAGES = [
|
|
|
24
24
|
];
|
|
25
25
|
/** The model has the icon of the + menu's model (ModelPicker), the others their own. */
|
|
26
26
|
export const GROUP_ICONS = { model: Box, conversation: MessagesSquare, context: Layers, tools: Wrench };
|
|
27
|
+
/** The parts of the settings, in their order: by what the user looks for, not where a setting is kept. */
|
|
28
|
+
export const SETTINGS_GROUPS = [
|
|
29
|
+
{ id: 'general', title: 'ta.settings.general' },
|
|
30
|
+
{ id: 'ta', title: 'ta.settings.agent' },
|
|
31
|
+
{ id: 'devices', title: 'ta.settings.devices' },
|
|
32
|
+
{ id: 'privacy', title: 'ta.settings.privacy' },
|
|
33
|
+
{ id: 'extensions', title: 'ta.packages' },
|
|
34
|
+
];
|
|
27
35
|
/** The keys of the page and of the message box; `Mod` is ⌘ on a Mac, Ctrl elsewhere. */
|
|
28
36
|
export const SHORTCUTS = [
|
|
29
37
|
{ keys: 'Mod+,', label: 'ta.shortcut.settings' },
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SectionEntry, SettingsDialog } from './settings-parts.js';
|
|
2
|
+
/**
|
|
3
|
+
* The sections besides those of the page and of pi's settings, each in its part (SectionEntry.group): the packages,
|
|
4
|
+
* those built in, those of extensions where they ask, the computers and services Ta reaches, who may come in, the
|
|
5
|
+
* keys, and what is about Ta and this computer.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useMoreSections(onClose: () => void, onDialog: (dialog: SettingsDialog) => void): SectionEntry[];
|