@celljs/ta-web 4.16.0 → 4.18.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 +2 -1
- package/README.md +2 -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-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- 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 +11 -8
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +119 -11
- 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 +33 -8
- 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.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +24 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +27 -7
- package/esm/browser/assistant/assistant-task-util.js +84 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +2 -4
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +112 -0
- package/esm/browser/assistant/assistant-view.js +79 -130
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +105 -357
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +56 -0
- package/esm/browser/assistant/chat-task-source.js +82 -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 +138 -0
- package/esm/browser/assistant/realtime-voice.js +479 -0
- package/esm/browser/assistant/task-views.d.ts +11 -9
- package/esm/browser/assistant/task-views.js +47 -25
- package/esm/browser/assistant/voice-call-bar.d.ts +67 -0
- package/esm/browser/assistant/voice-call-bar.js +316 -0
- package/esm/browser/assistant/voice-call.d.ts +207 -0
- package/esm/browser/assistant/voice-call.js +469 -0
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -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 +7 -9
- 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/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +26 -2
- package/esm/browser/components/account-menu.js +4 -2
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +6 -2
- package/esm/browser/components/app-nav.js +15 -12
- 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 +471 -0
- package/esm/browser/components/app-view.js +212 -393
- 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 +57 -10
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- 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-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +10 -2
- package/esm/browser/components/chat-icon.js +32 -6
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +96 -0
- package/esm/browser/components/chat-list-row.js +208 -0
- package/esm/browser/components/chat-list-util.d.ts +197 -0
- package/esm/browser/components/chat-list-util.js +398 -0
- package/esm/browser/components/chat-list.d.ts +6 -190
- package/esm/browser/components/chat-list.js +340 -545
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- 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 +54 -154
- 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/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +18 -3
- 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 +3 -35
- package/esm/browser/components/conversation-scroll.js +16 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- 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/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +59 -15
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +9 -4
- package/esm/browser/components/host-view.js +56 -15
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +12 -115
- package/esm/browser/components/image-viewer.js +74 -368
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +6 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +7 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +7 -1
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- 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 +22 -454
- 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 +190 -0
- package/esm/browser/components/message-user.d.ts +63 -0
- package/esm/browser/components/message-user.js +204 -0
- package/esm/browser/components/model-picker.d.ts +4 -2
- package/esm/browser/components/model-picker.js +16 -3
- 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 +17 -11
- package/esm/browser/components/nav-places.js +18 -13
- 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 +5 -4
- 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.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +53 -20
- 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/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +188 -7
- package/esm/browser/components/settings-choices.d.ts +9 -3
- package/esm/browser/components/settings-choices.js +17 -29
- 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 +35 -250
- package/esm/browser/components/settings-view.js +44 -16
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +12 -5
- 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 +160 -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/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- 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/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- 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 +14 -1
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +74 -6
- package/esm/browser/extension/web-api-contributions.d.ts +139 -39
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +126 -63
- package/esm/browser/extension/web-extension-context.d.ts +9 -9
- package/esm/browser/extension/web-extension-context.js +84 -19
- package/esm/browser/extension/web-extension-protocol.d.ts +26 -3
- 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 -2
- 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 +9 -82
- package/esm/browser/extension/web-extensions.js +22 -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 +8 -1
- package/esm/browser/extension/web-tasks.js +17 -3
- package/esm/browser/extension/web-view-util.d.ts +2 -2
- package/esm/browser/extension/web-view-util.js +7 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -32
- package/esm/browser/gateway/console-parts.js +58 -218
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +118 -209
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +117 -0
- package/esm/browser/gateway/console-view.js +153 -88
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +280 -13
- package/esm/browser/i18n/messages-ja.js +292 -25
- package/esm/browser/i18n/messages-zh-tw.js +292 -25
- package/esm/browser/i18n/messages.d.ts +277 -10
- package/esm/browser/i18n/messages.js +585 -51
- package/esm/browser/index.d.ts +18 -0
- package/esm/browser/index.js +18 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- 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 +185 -0
- package/esm/browser/screen/screen-protocol.js +60 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +53 -0
- package/esm/browser/screen/screen.js +292 -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/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +14 -1
- package/esm/browser/settings/settings-protocol.js +24 -2
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +146 -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 +12 -1
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +150 -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 +66 -12
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +162 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +8 -540
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +172 -110
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +13 -3
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +24 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +59 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +29 -10
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -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/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -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 +37 -5
- package/esm/browser/util/process.js +81 -10
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +29 -0
- package/esm/browser/util/spoken.js +92 -0
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +48 -0
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -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 +31 -3
- package/esm/browser/workbench-services.d.ts +57 -0
- package/esm/browser/workbench-services.js +158 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +9 -89
- package/esm/browser/workbench.js +61 -344
- 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-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- 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 +11 -8
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +117 -9
- 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 +34 -9
- 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.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +25 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +27 -7
- package/lib/browser/assistant/assistant-task-util.js +84 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +3 -5
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +148 -0
- package/lib/browser/assistant/assistant-view.js +76 -127
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +102 -354
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +57 -0
- package/lib/browser/assistant/chat-task-source.js +86 -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 +139 -0
- package/lib/browser/assistant/realtime-voice.js +483 -0
- package/lib/browser/assistant/task-views.d.ts +11 -9
- package/lib/browser/assistant/task-views.js +47 -24
- package/lib/browser/assistant/voice-call-bar.d.ts +68 -0
- package/lib/browser/assistant/voice-call-bar.js +362 -0
- package/lib/browser/assistant/voice-call.d.ts +208 -0
- package/lib/browser/assistant/voice-call.js +473 -0
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -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 +7 -9
- 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/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +26 -2
- package/lib/browser/components/account-menu.js +3 -1
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +6 -2
- package/lib/browser/components/app-nav.js +15 -12
- 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 +507 -0
- package/lib/browser/components/app-view.js +202 -383
- 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 +56 -9
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- 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-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +10 -2
- package/lib/browser/components/chat-icon.js +32 -6
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +97 -0
- package/lib/browser/components/chat-list-row.js +247 -0
- package/lib/browser/components/chat-list-util.d.ts +198 -0
- package/lib/browser/components/chat-list-util.js +401 -0
- package/lib/browser/components/chat-list.d.ts +6 -190
- package/lib/browser/components/chat-list.js +354 -561
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- 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 +56 -157
- 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/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +18 -3
- 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 +3 -35
- package/lib/browser/components/conversation-scroll.js +34 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- 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/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +58 -14
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +9 -4
- package/lib/browser/components/host-view.js +56 -15
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +12 -115
- package/lib/browser/components/image-viewer.js +74 -370
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +6 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +7 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- 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 +23 -462
- 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 +226 -0
- package/lib/browser/components/message-user.d.ts +64 -0
- package/lib/browser/components/message-user.js +247 -0
- package/lib/browser/components/model-picker.d.ts +4 -2
- package/lib/browser/components/model-picker.js +16 -3
- 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 +17 -11
- package/lib/browser/components/nav-places.js +20 -14
- 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 +5 -4
- 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.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +54 -20
- 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/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +188 -7
- package/lib/browser/components/settings-choices.d.ts +10 -4
- package/lib/browser/components/settings-choices.js +16 -28
- 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 +31 -246
- package/lib/browser/components/settings-view.js +44 -16
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +12 -5
- 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 +196 -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/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- 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/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- 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 +13 -0
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +74 -6
- package/lib/browser/extension/web-api-contributions.d.ts +139 -39
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +126 -63
- package/lib/browser/extension/web-extension-context.d.ts +9 -9
- package/lib/browser/extension/web-extension-context.js +86 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +26 -3
- 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 -2
- 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 +9 -82
- package/lib/browser/extension/web-extensions.js +19 -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 +8 -1
- package/lib/browser/extension/web-tasks.js +17 -3
- package/lib/browser/extension/web-view-util.d.ts +2 -2
- package/lib/browser/extension/web-view-util.js +7 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -32
- package/lib/browser/gateway/console-parts.js +63 -223
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +116 -208
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +153 -0
- package/lib/browser/gateway/console-view.js +151 -86
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +280 -13
- package/lib/browser/i18n/messages-ja.js +292 -25
- package/lib/browser/i18n/messages-zh-tw.js +292 -25
- package/lib/browser/i18n/messages.d.ts +277 -10
- package/lib/browser/i18n/messages.js +585 -51
- package/lib/browser/index.d.ts +18 -0
- package/lib/browser/index.js +18 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- 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 +186 -0
- package/lib/browser/screen/screen-protocol.js +63 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +54 -0
- package/lib/browser/screen/screen.js +295 -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/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +14 -1
- package/lib/browser/settings/settings-protocol.js +24 -2
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +182 -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 +12 -1
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +153 -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 +66 -12
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +165 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +8 -540
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +172 -110
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +14 -4
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +27 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +59 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +29 -10
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -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/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -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 +37 -5
- package/lib/browser/util/process.js +80 -9
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +30 -0
- package/lib/browser/util/spoken.js +95 -0
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +51 -0
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -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 +31 -3
- package/lib/browser/workbench-services.d.ts +58 -0
- package/lib/browser/workbench-services.js +162 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +9 -89
- package/lib/browser/workbench.js +58 -341
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The tints of the theme: for every color of the agents' faces (ta-channels faces.tsx), a tile under it and
|
|
3
|
-
* what is written on it, for the dark and the light theme (--ta-tint-<n>, --ta-tint-ink-<n>).
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* what is written on it, for the dark and the light theme (--ta-tint-<n>, --ta-tint-ink-<n>). The color is the
|
|
4
|
+
* ink, taken from the face in oklch, its hue kept; the tile is neutral, of the page's grey with no more than a
|
|
5
|
+
* breath of the hue. A tile of the color went earthy, whatever its lightness and chroma: a dark orange is brown,
|
|
6
|
+
* a dark yellow olive, and a light one of much chroma shouts beside the list; a yellow ink leans to amber, as a
|
|
7
|
+
* yellow of mid lightness is mustard.
|
|
7
8
|
*/
|
|
8
9
|
export declare namespace TintUtil {
|
|
9
10
|
/** The colors of the faces: blue, red, yellow, green, orange, violet, teal, pink, sky. */
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TINTS_STYLE = exports.TintUtil = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* The tints of the theme: for every color of the agents' faces (ta-channels faces.tsx), a tile under it and
|
|
6
|
-
* what is written on it, for the dark and the light theme (--ta-tint-<n>, --ta-tint-ink-<n>).
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* what is written on it, for the dark and the light theme (--ta-tint-<n>, --ta-tint-ink-<n>). The color is the
|
|
7
|
+
* ink, taken from the face in oklch, its hue kept; the tile is neutral, of the page's grey with no more than a
|
|
8
|
+
* breath of the hue. A tile of the color went earthy, whatever its lightness and chroma: a dark orange is brown,
|
|
9
|
+
* a dark yellow olive, and a light one of much chroma shouts beside the list; a yellow ink leans to amber, as a
|
|
10
|
+
* yellow of mid lightness is mustard.
|
|
10
11
|
*/
|
|
11
12
|
var TintUtil;
|
|
12
13
|
(function (TintUtil) {
|
|
@@ -29,12 +30,11 @@ var TintUtil;
|
|
|
29
30
|
/** The tile and the ink of a face's color in a theme. */
|
|
30
31
|
function tint(hex, theme) {
|
|
31
32
|
const { l, c, h } = oklch(hex);
|
|
32
|
-
// Yellows toward amber, more where the ink is darker
|
|
33
|
-
const
|
|
34
|
-
const inkHue = warm && h > 60 ? h - (theme === 'dark' ? 4 : 12) : h;
|
|
33
|
+
// Yellows toward amber, more where the ink is darker.
|
|
34
|
+
const inkHue = h > 60 && h < 100 ? h - (theme === 'dark' ? 4 : 12) : h;
|
|
35
35
|
return theme === 'dark'
|
|
36
|
-
? { tile: { l: 0.
|
|
37
|
-
: { tile: { l: 0.
|
|
36
|
+
? { tile: { l: 0.27, c: 0.004, h }, ink: { l: 0.84 + (l - 0.7) * 0.18, c: Math.min(c * 0.72, 0.13), h: inkHue } }
|
|
37
|
+
: { tile: { l: 0.945, c: 0.004, h }, ink: { l: 0.56 + (l - 0.7) * 0.18, c: Math.min(c * 0.82, 0.15), h: inkHue } };
|
|
38
38
|
}
|
|
39
39
|
TintUtil.tint = tint;
|
|
40
40
|
function css({ l, c, h }) {
|
package/lib/browser/style.js
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.STYLE = void 0;
|
|
4
4
|
const base_1 = require("./style/base");
|
|
5
|
+
const chat_list_1 = require("./style/chat-list");
|
|
5
6
|
const conversation_1 = require("./style/conversation");
|
|
7
|
+
const conversation_column_1 = require("./style/conversation-column");
|
|
6
8
|
const device_1 = require("./style/device");
|
|
9
|
+
const dialogs_1 = require("./style/dialogs");
|
|
7
10
|
const layout_1 = require("./style/layout");
|
|
8
11
|
const pages_1 = require("./style/pages");
|
|
9
12
|
const phone_1 = require("./style/phone");
|
|
13
|
+
const shared_1 = require("./style/shared");
|
|
10
14
|
const shell_1 = require("./style/shell");
|
|
11
15
|
const surfaces_1 = require("./style/surfaces");
|
|
12
16
|
const tasks_1 = require("./style/tasks");
|
|
@@ -22,10 +26,14 @@ exports.STYLE = [
|
|
|
22
26
|
shell_1.SHELL_STYLE,
|
|
23
27
|
conversation_1.CONVERSATION_STYLE,
|
|
24
28
|
layout_1.LAYOUT_STYLE,
|
|
29
|
+
conversation_column_1.CONVERSATION_COLUMN_STYLE,
|
|
30
|
+
chat_list_1.CHAT_LIST_STYLE,
|
|
31
|
+
dialogs_1.DIALOGS_STYLE,
|
|
25
32
|
tasks_1.TASKS_STYLE,
|
|
26
33
|
pages_1.PAGES_STYLE,
|
|
27
34
|
device_1.DEVICE_STYLE,
|
|
28
35
|
surfaces_1.SURFACES_STYLE,
|
|
29
36
|
phone_1.PHONE_STYLE,
|
|
37
|
+
shared_1.SHARED_STYLE,
|
|
30
38
|
].join('');
|
|
31
39
|
//# sourceMappingURL=style.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** What Ta Desktop can do for the page beyond a tab of a browser. */
|
|
2
|
-
export type DesktopFeature = 'webview' | 'debugWebview' | 'showItemInFolder' | 'browserData' | 'recentShots' | 'notices' | 'speech' | 'restart';
|
|
2
|
+
export type DesktopFeature = 'webview' | 'debugWebview' | 'showItemInFolder' | 'browserData' | 'recentShots' | 'notices' | 'speech' | 'restart' | 'links' | 'call';
|
|
3
3
|
/** The file manager of the system, from Ta Desktop: {@link WebDesktop} of the extension API. */
|
|
4
4
|
export interface DesktopFileManager {
|
|
5
5
|
/** Node's `process.platform` of the machine: what the file manager is called there. */
|
|
@@ -77,6 +77,8 @@ export declare namespace DesktopUtil {
|
|
|
77
77
|
*/
|
|
78
78
|
function restart(scope?: object): (() => Promise<boolean>) | undefined;
|
|
79
79
|
/** The sign-ins of the user's browsers, where Ta Desktop can read them (macOS, Windows). */
|
|
80
|
+
/** Tells Ta Desktop a call goes on, or ended: it does not restart under it. None outside Ta Desktop. */
|
|
81
|
+
function calling(scope?: object): ((active: boolean) => void) | undefined;
|
|
80
82
|
function browserData(scope?: object): DesktopBrowserData | undefined;
|
|
81
83
|
/** `debugWebview` of Ta Desktop; `undefined` elsewhere. */
|
|
82
84
|
function debugWebview(scope?: object): DebugWebview | undefined;
|
|
@@ -87,6 +89,10 @@ export declare namespace DesktopUtil {
|
|
|
87
89
|
function notices(scope?: object): {
|
|
88
90
|
onOpen(listener: (target: DesktopNoticeTarget) => void): () => void;
|
|
89
91
|
} | undefined;
|
|
92
|
+
/** Links of Ta the system opened the app with (`ta://`): `onOpen` hears each, the one it started with first. */
|
|
93
|
+
function links(scope?: object): {
|
|
94
|
+
onOpen(listener: (url: string) => void): () => void;
|
|
95
|
+
} | undefined;
|
|
90
96
|
/** Apple's recognizer, where Ta Desktop has it (macOS). */
|
|
91
97
|
function speech<Message = object, Answer = object>(scope?: object): DesktopSpeech<Message, Answer> | undefined;
|
|
92
98
|
/** The screenshots of this computer, where Ta Desktop finds them. */
|
|
@@ -38,6 +38,13 @@ var DesktopUtil;
|
|
|
38
38
|
}
|
|
39
39
|
DesktopUtil.restart = restart;
|
|
40
40
|
/** The sign-ins of the user's browsers, where Ta Desktop can read them (macOS, Windows). */
|
|
41
|
+
/** Tells Ta Desktop a call goes on, or ended: it does not restart under it. None outside Ta Desktop. */
|
|
42
|
+
function calling(scope = globalThis) {
|
|
43
|
+
var _a;
|
|
44
|
+
const call = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.call;
|
|
45
|
+
return has('call', scope) && typeof call === 'function' ? active => void Promise.resolve(call(active)).catch(() => undefined) : undefined;
|
|
46
|
+
}
|
|
47
|
+
DesktopUtil.calling = calling;
|
|
41
48
|
function browserData(scope = globalThis) {
|
|
42
49
|
var _a;
|
|
43
50
|
const data = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.browserData;
|
|
@@ -77,6 +84,16 @@ var DesktopUtil;
|
|
|
77
84
|
return Object.freeze({ onOpen: (listener) => onOpen(listener) });
|
|
78
85
|
}
|
|
79
86
|
DesktopUtil.notices = notices;
|
|
87
|
+
/** Links of Ta the system opened the app with (`ta://`): `onOpen` hears each, the one it started with first. */
|
|
88
|
+
function links(scope = globalThis) {
|
|
89
|
+
var _a, _b;
|
|
90
|
+
const onOpen = (_b = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.onOpen;
|
|
91
|
+
if (!has('links', scope) || typeof onOpen !== 'function') {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
return Object.freeze({ onOpen: (listener) => onOpen(listener) });
|
|
95
|
+
}
|
|
96
|
+
DesktopUtil.links = links;
|
|
80
97
|
/** Apple's recognizer, where Ta Desktop has it (macOS). */
|
|
81
98
|
function speech(scope = globalThis) {
|
|
82
99
|
var _a;
|
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
import { type MarkdownBlock, type MarkdownPicture } from './markdown';
|
|
2
2
|
/**
|
|
3
|
-
* Pictures of a reply shown together,
|
|
4
|
-
*
|
|
3
|
+
* Pictures of a reply shown together, nine at most, the last saying how many more: in rows as wide as the reply, each
|
|
4
|
+
* picture whole in its own shape and all of a row as tall (rows). Paragraphs of pictures alone one after
|
|
5
5
|
* another are one gallery, and so are pictures each under a short line of its own that names it (`**Dark**`,
|
|
6
6
|
* `Before:`), which shows under its tile.
|
|
7
7
|
*/
|
|
8
8
|
export declare namespace GalleryUtil {
|
|
9
9
|
/** The tiles a gallery shows; the last of them says how many more there are. */
|
|
10
10
|
const TILES = 9;
|
|
11
|
+
/** A row of a gallery: its pictures from start to before end, how tall, and whether they fill its width. */
|
|
12
|
+
interface Row {
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
height: number;
|
|
16
|
+
full: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** The shape of a picture (width over height) as its tile has it; a square while it is not known. */
|
|
19
|
+
function ratio(ratio: number | undefined): number;
|
|
20
|
+
/**
|
|
21
|
+
* Pictures of these shapes in rows `width` wide: each row as many as come nearest a height that suits the width,
|
|
22
|
+
* stretched to fill it; the last, when it would stand much taller, joins the row before when that leaves it not
|
|
23
|
+
* much lower, or else stands as tall as one and a half at most, from the left.
|
|
24
|
+
*/
|
|
25
|
+
function rows(ratios: readonly number[], width: number, gap: number): Row[];
|
|
26
|
+
/**
|
|
27
|
+
* The shapes the tiles of pictures of these shapes have in a gallery `width` wide: on a phone a tall picture (a
|
|
28
|
+
* screenshot of a phone) is cut from its top to what two side by side fill a row with, rather than four of them
|
|
29
|
+
* standing in a row as thin as a finger; elsewhere as they are.
|
|
30
|
+
*/
|
|
31
|
+
function shapes(ratios: readonly number[], width: number, gap: number): number[];
|
|
32
|
+
/** The columns of the pictures of a message of the user, as chat apps show several sent at once. */
|
|
11
33
|
function columns(count: number): number;
|
|
12
34
|
/** The blocks with each run of two pictures or more as one gallery. */
|
|
13
35
|
function group(blocks: readonly MarkdownBlock[]): MarkdownBlock[];
|
|
@@ -8,9 +8,15 @@ const CAPTION_WIDTH = 40;
|
|
|
8
8
|
const SENTENCE_END = /[。!?!?;;.]$/;
|
|
9
9
|
/** Alt text that names no picture: a file name, or "image", "screenshot" and the like. */
|
|
10
10
|
const BARE_ALT = /^(?:image|img|picture|pic|photo|screenshot|screen ?shot|图片?|截图|圖片?|截圖|画像|スクリーンショット)?\s*\d*$|\.\w{2,5}$/i;
|
|
11
|
+
/** A gallery narrower than this is a phone's: at most three pictures a row, none narrower than two would be. */
|
|
12
|
+
const NARROW = 480;
|
|
13
|
+
const MOST = 3;
|
|
14
|
+
/** A picture wider or taller than this (width over height) is cut to it, a panorama or a long page. */
|
|
15
|
+
const RATIO_MIN = 0.4;
|
|
16
|
+
const RATIO_MAX = 3;
|
|
11
17
|
/**
|
|
12
|
-
* Pictures of a reply shown together,
|
|
13
|
-
*
|
|
18
|
+
* Pictures of a reply shown together, nine at most, the last saying how many more: in rows as wide as the reply, each
|
|
19
|
+
* picture whole in its own shape and all of a row as tall (rows). Paragraphs of pictures alone one after
|
|
14
20
|
* another are one gallery, and so are pictures each under a short line of its own that names it (`**Dark**`,
|
|
15
21
|
* `Before:`), which shows under its tile.
|
|
16
22
|
*/
|
|
@@ -18,6 +24,80 @@ var GalleryUtil;
|
|
|
18
24
|
(function (GalleryUtil) {
|
|
19
25
|
/** The tiles a gallery shows; the last of them says how many more there are. */
|
|
20
26
|
GalleryUtil.TILES = 9;
|
|
27
|
+
/** The shape of a picture (width over height) as its tile has it; a square while it is not known. */
|
|
28
|
+
function ratio(ratio) {
|
|
29
|
+
return ratio && Number.isFinite(ratio) && ratio > 0 ? Math.min(RATIO_MAX, Math.max(RATIO_MIN, ratio)) : 1;
|
|
30
|
+
}
|
|
31
|
+
GalleryUtil.ratio = ratio;
|
|
32
|
+
/**
|
|
33
|
+
* Pictures of these shapes in rows `width` wide: each row as many as come nearest a height that suits the width,
|
|
34
|
+
* stretched to fill it; the last, when it would stand much taller, joins the row before when that leaves it not
|
|
35
|
+
* much lower, or else stands as tall as one and a half at most, from the left.
|
|
36
|
+
*/
|
|
37
|
+
function rows(ratios, width, gap) {
|
|
38
|
+
const wide = width > 0 ? width : 480;
|
|
39
|
+
const { target, tallest } = heights(wide);
|
|
40
|
+
const narrow = wide < NARROW;
|
|
41
|
+
const out = [];
|
|
42
|
+
for (let start = 0; start < ratios.length;) {
|
|
43
|
+
let end = start;
|
|
44
|
+
let sum = 0;
|
|
45
|
+
let height = Number.POSITIVE_INFINITY;
|
|
46
|
+
while (end < ratios.length) {
|
|
47
|
+
const next = (wide - gap * (end - start)) / (sum + ratios[end]);
|
|
48
|
+
if (end > start && next < target && target - next > height - target) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
sum += ratios[end];
|
|
52
|
+
end++;
|
|
53
|
+
height = next;
|
|
54
|
+
if (height <= target || (narrow && end - start === MOST)) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const before = out[out.length - 1];
|
|
59
|
+
// On a phone a last picture alone under three is two rows of two.
|
|
60
|
+
if (narrow && end === ratios.length && end - start === 1 && before && before.end - before.start === MOST) {
|
|
61
|
+
out[out.length - 1] = row(ratios, before.start, before.start + 2, wide, gap, tallest);
|
|
62
|
+
out.push(row(ratios, before.start + 2, end, wide, gap, tallest));
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
if (!narrow && end === ratios.length && height > tallest && before) {
|
|
66
|
+
const joined = (wide - gap * (end - before.start - 1)) / ratios.slice(before.start, end).reduce((all, one) => all + one, 0);
|
|
67
|
+
if (joined >= target * 0.75) {
|
|
68
|
+
out[out.length - 1] = { start: before.start, end, height: joined, full: true };
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
out.push({ start, end, height: Math.min(height, tallest), full: height <= tallest });
|
|
73
|
+
start = end;
|
|
74
|
+
}
|
|
75
|
+
return out;
|
|
76
|
+
}
|
|
77
|
+
GalleryUtil.rows = rows;
|
|
78
|
+
/**
|
|
79
|
+
* The shapes the tiles of pictures of these shapes have in a gallery `width` wide: on a phone a tall picture (a
|
|
80
|
+
* screenshot of a phone) is cut from its top to what two side by side fill a row with, rather than four of them
|
|
81
|
+
* standing in a row as thin as a finger; elsewhere as they are.
|
|
82
|
+
*/
|
|
83
|
+
function shapes(ratios, width, gap) {
|
|
84
|
+
if (!(width > 0 && width < NARROW) || ratios.length < 2) {
|
|
85
|
+
return ratios.slice();
|
|
86
|
+
}
|
|
87
|
+
const least = (width - gap) / 2 / heights(width).tallest;
|
|
88
|
+
return ratios.map(one => Math.max(one, least));
|
|
89
|
+
}
|
|
90
|
+
GalleryUtil.shapes = shapes;
|
|
91
|
+
/** The height a row comes near, and the most it stands, in a gallery this wide. */
|
|
92
|
+
function heights(wide) {
|
|
93
|
+
const target = Math.min(240, Math.max(140, wide * 0.38));
|
|
94
|
+
return { target, tallest: target * 1.5 };
|
|
95
|
+
}
|
|
96
|
+
function row(ratios, start, end, wide, gap, tallest) {
|
|
97
|
+
const height = (wide - gap * (end - start - 1)) / ratios.slice(start, end).reduce((all, one) => all + one, 0);
|
|
98
|
+
return { start, end, height: Math.min(height, tallest), full: height <= tallest };
|
|
99
|
+
}
|
|
100
|
+
/** The columns of the pictures of a message of the user, as chat apps show several sent at once. */
|
|
21
101
|
function columns(count) {
|
|
22
102
|
return count <= 1 ? 1 : count === 2 || count === 4 ? 2 : 3;
|
|
23
103
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puts a picture on the clipboard, as PNG: the one type of picture every clipboard of a browser takes (Chrome,
|
|
3
|
+
* Electron, Safari, the WebView of iOS). A picture of another type is drawn again as PNG first.
|
|
4
|
+
*/
|
|
5
|
+
export declare namespace ImageCopyUtil {
|
|
6
|
+
const TYPE = "image/png";
|
|
7
|
+
/** Whether the page can put a picture on the clipboard. */
|
|
8
|
+
function supported(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Copies the picture of `src`, or of the URL it comes to (the file itself of a picture shown smaller). Call it
|
|
11
|
+
* in the click or key that asks: the clipboard is written at once with what is still loading, as Safari wants.
|
|
12
|
+
*/
|
|
13
|
+
function copy(src: string | Promise<string>): Promise<void>;
|
|
14
|
+
/** The picture as PNG: as it is when it is one, else drawn again at its own size. */
|
|
15
|
+
function toPng(blob: Blob): Promise<Blob>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=image-copy.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageCopyUtil = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Puts a picture on the clipboard, as PNG: the one type of picture every clipboard of a browser takes (Chrome,
|
|
6
|
+
* Electron, Safari, the WebView of iOS). A picture of another type is drawn again as PNG first.
|
|
7
|
+
*/
|
|
8
|
+
var ImageCopyUtil;
|
|
9
|
+
(function (ImageCopyUtil) {
|
|
10
|
+
ImageCopyUtil.TYPE = 'image/png';
|
|
11
|
+
/** Whether the page can put a picture on the clipboard. */
|
|
12
|
+
function supported() {
|
|
13
|
+
var _a;
|
|
14
|
+
return typeof ClipboardItem !== 'undefined' && typeof navigator !== 'undefined' && !!((_a = navigator.clipboard) === null || _a === void 0 ? void 0 : _a.write);
|
|
15
|
+
}
|
|
16
|
+
ImageCopyUtil.supported = supported;
|
|
17
|
+
/**
|
|
18
|
+
* Copies the picture of `src`, or of the URL it comes to (the file itself of a picture shown smaller). Call it
|
|
19
|
+
* in the click or key that asks: the clipboard is written at once with what is still loading, as Safari wants.
|
|
20
|
+
*/
|
|
21
|
+
function copy(src) {
|
|
22
|
+
if (!supported()) {
|
|
23
|
+
return Promise.reject(new Error('This page cannot put a picture on the clipboard'));
|
|
24
|
+
}
|
|
25
|
+
const png = Promise.resolve(src).then(load).then(toPng);
|
|
26
|
+
return navigator.clipboard.write([new ClipboardItem({ [ImageCopyUtil.TYPE]: png })]);
|
|
27
|
+
}
|
|
28
|
+
ImageCopyUtil.copy = copy;
|
|
29
|
+
async function load(url) {
|
|
30
|
+
const response = await fetch(url);
|
|
31
|
+
if (!response.ok) {
|
|
32
|
+
throw new Error(`Cannot load the picture: ${response.status}`);
|
|
33
|
+
}
|
|
34
|
+
return response.blob();
|
|
35
|
+
}
|
|
36
|
+
/** The picture as PNG: as it is when it is one, else drawn again at its own size. */
|
|
37
|
+
async function toPng(blob) {
|
|
38
|
+
var _a;
|
|
39
|
+
if (blob.type === ImageCopyUtil.TYPE) {
|
|
40
|
+
return blob;
|
|
41
|
+
}
|
|
42
|
+
const url = URL.createObjectURL(blob);
|
|
43
|
+
try {
|
|
44
|
+
const image = new Image();
|
|
45
|
+
image.src = url;
|
|
46
|
+
await image.decode();
|
|
47
|
+
const canvas = document.createElement('canvas');
|
|
48
|
+
// An SVG with only a viewBox has no size of its own.
|
|
49
|
+
canvas.width = image.naturalWidth || 512;
|
|
50
|
+
canvas.height = image.naturalHeight || 512;
|
|
51
|
+
(_a = canvas.getContext('2d')) === null || _a === void 0 ? void 0 : _a.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
52
|
+
return await new Promise((resolve, reject) => canvas.toBlob(png => (png ? resolve(png) : reject(new Error('Cannot draw the picture as PNG'))), ImageCopyUtil.TYPE));
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
URL.revokeObjectURL(url);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
ImageCopyUtil.toPng = toPng;
|
|
59
|
+
})(ImageCopyUtil || (exports.ImageCopyUtil = ImageCopyUtil = {}));
|
|
60
|
+
//# sourceMappingURL=image-copy.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** Of the pictures a viewer goes through, the one before or the one after. */
|
|
2
|
+
export type ImageSwipeWay = 'previous' | 'next';
|
|
3
|
+
/** Whether there is a picture before and after the one shown. */
|
|
4
|
+
export interface ImageSwipeBeside {
|
|
5
|
+
previous: boolean;
|
|
6
|
+
next: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Whether the picture shown is scrolled all the way to its left and to its right: fitted, it is both. */
|
|
9
|
+
export interface ImageSwipeEdges {
|
|
10
|
+
start: boolean;
|
|
11
|
+
end: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A finger that swipes a picture sideways goes to the one beside it, as the viewers of pictures of a phone do:
|
|
15
|
+
* the picture follows the finger with the one beside it in sight, and let go far enough, or flicked, slides out
|
|
16
|
+
* for it. Zoomed in, the finger scrolls the picture, and only from its edge goes on to the next. Pure, for the tests.
|
|
17
|
+
*/
|
|
18
|
+
export declare namespace ImageSwipeUtil {
|
|
19
|
+
/** The space between two pictures as they slide. */
|
|
20
|
+
const GAP = 20;
|
|
21
|
+
/** Toward no picture, it goes this much less far than the finger (a rubber band), and comes back. */
|
|
22
|
+
const RESIST = 0.3;
|
|
23
|
+
/** Let go this far of its width, it goes on to the picture beside it. */
|
|
24
|
+
const FAR = 0.25;
|
|
25
|
+
/** How long it slides on, let go slowly. */
|
|
26
|
+
const SETTLE_MS = 320;
|
|
27
|
+
function edges(scrollLeft: number, scrollWidth: number, clientWidth: number): ImageSwipeEdges;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the move so far (`dx`, `dy`) is a swipe to the picture beside: undefined until it is told, false when it
|
|
30
|
+
* goes more down than sideways, or the picture still scrolls that way (`edges`, where it was when the finger came).
|
|
31
|
+
*/
|
|
32
|
+
function claims(dx: number, dy: number, edges: ImageSwipeEdges): boolean | undefined;
|
|
33
|
+
/** Where the picture is, the finger moved `dx`: with it toward a picture, less far toward none. */
|
|
34
|
+
function offset(dx: number, beside: ImageSwipeBeside): number;
|
|
35
|
+
/**
|
|
36
|
+
* Where it goes, let go `dx` from where it set off at `speed` (pixels a millisecond) in a box `width` wide:
|
|
37
|
+
* flicked, the way it was flicked; else on when it went FAR; never to a picture that is not there.
|
|
38
|
+
*/
|
|
39
|
+
function goes(dx: number, speed: number, width: number, beside: ImageSwipeBeside): ImageSwipeWay | undefined;
|
|
40
|
+
/** Where it slides to: out of sight for the picture beside, or back. */
|
|
41
|
+
function rest(way: ImageSwipeWay | undefined, width: number): number;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=image-swipe.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageSwipeUtil = void 0;
|
|
4
|
+
const swipe_util_1 = require("../device/swipe-util");
|
|
5
|
+
/**
|
|
6
|
+
* A finger that swipes a picture sideways goes to the one beside it, as the viewers of pictures of a phone do:
|
|
7
|
+
* the picture follows the finger with the one beside it in sight, and let go far enough, or flicked, slides out
|
|
8
|
+
* for it. Zoomed in, the finger scrolls the picture, and only from its edge goes on to the next. Pure, for the tests.
|
|
9
|
+
*/
|
|
10
|
+
var ImageSwipeUtil;
|
|
11
|
+
(function (ImageSwipeUtil) {
|
|
12
|
+
/** The space between two pictures as they slide. */
|
|
13
|
+
ImageSwipeUtil.GAP = 20;
|
|
14
|
+
/** Toward no picture, it goes this much less far than the finger (a rubber band), and comes back. */
|
|
15
|
+
ImageSwipeUtil.RESIST = 0.3;
|
|
16
|
+
/** Let go this far of its width, it goes on to the picture beside it. */
|
|
17
|
+
ImageSwipeUtil.FAR = 0.25;
|
|
18
|
+
/** How long it slides on, let go slowly. */
|
|
19
|
+
ImageSwipeUtil.SETTLE_MS = 320;
|
|
20
|
+
/** Within this of an edge, it is at that edge (scrolls are fractional). */
|
|
21
|
+
const EDGE_PX = 1;
|
|
22
|
+
function edges(scrollLeft, scrollWidth, clientWidth) {
|
|
23
|
+
return { start: scrollLeft <= EDGE_PX, end: scrollLeft >= scrollWidth - clientWidth - EDGE_PX };
|
|
24
|
+
}
|
|
25
|
+
ImageSwipeUtil.edges = edges;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the move so far (`dx`, `dy`) is a swipe to the picture beside: undefined until it is told, false when it
|
|
28
|
+
* goes more down than sideways, or the picture still scrolls that way (`edges`, where it was when the finger came).
|
|
29
|
+
*/
|
|
30
|
+
function claims(dx, dy, edges) {
|
|
31
|
+
if (Math.hypot(dx, dy) < swipe_util_1.SwipeUtil.SLOP_PX) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (Math.abs(dx) <= Math.abs(dy) * 1.2) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return dx > 0 ? edges.start : edges.end;
|
|
38
|
+
}
|
|
39
|
+
ImageSwipeUtil.claims = claims;
|
|
40
|
+
/** Where the picture is, the finger moved `dx`: with it toward a picture, less far toward none. */
|
|
41
|
+
function offset(dx, beside) {
|
|
42
|
+
const toward = dx > 0 ? beside.previous : beside.next;
|
|
43
|
+
return toward ? dx : dx * ImageSwipeUtil.RESIST;
|
|
44
|
+
}
|
|
45
|
+
ImageSwipeUtil.offset = offset;
|
|
46
|
+
/**
|
|
47
|
+
* Where it goes, let go `dx` from where it set off at `speed` (pixels a millisecond) in a box `width` wide:
|
|
48
|
+
* flicked, the way it was flicked; else on when it went FAR; never to a picture that is not there.
|
|
49
|
+
*/
|
|
50
|
+
function goes(dx, speed, width, beside) {
|
|
51
|
+
const flicked = Math.abs(speed) > swipe_util_1.SwipeUtil.FLICK;
|
|
52
|
+
const way = flicked ? Math.sign(speed) : Math.abs(dx) > width * ImageSwipeUtil.FAR ? Math.sign(dx) : 0;
|
|
53
|
+
// A flick back toward where it was stays.
|
|
54
|
+
if (way === 0 || Math.sign(dx) !== way) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (way > 0) {
|
|
58
|
+
return beside.previous ? 'previous' : undefined;
|
|
59
|
+
}
|
|
60
|
+
return beside.next ? 'next' : undefined;
|
|
61
|
+
}
|
|
62
|
+
ImageSwipeUtil.goes = goes;
|
|
63
|
+
/** Where it slides to: out of sight for the picture beside, or back. */
|
|
64
|
+
function rest(way, width) {
|
|
65
|
+
return way === 'next' ? -(width + ImageSwipeUtil.GAP) : way === 'previous' ? width + ImageSwipeUtil.GAP : 0;
|
|
66
|
+
}
|
|
67
|
+
ImageSwipeUtil.rest = rest;
|
|
68
|
+
})(ImageSwipeUtil || (exports.ImageSwipeUtil = ImageSwipeUtil = {}));
|
|
69
|
+
//# sourceMappingURL=image-swipe.js.map
|
|
@@ -80,6 +80,11 @@ export declare namespace MessageUtil {
|
|
|
80
80
|
hidden: number;
|
|
81
81
|
};
|
|
82
82
|
/** The last two parts of a path: enough to recognize a project. */
|
|
83
|
+
/** The last reply of the assistant with words, its index in the whole conversation, of which `messages` start at `start`. */
|
|
84
|
+
function lastReply(messages: readonly SessionMessage[], start: number): {
|
|
85
|
+
index: number;
|
|
86
|
+
text: string;
|
|
87
|
+
} | undefined;
|
|
83
88
|
function shortPath(path: string): string;
|
|
84
89
|
/** The last name of a path, or of an `ssh://` location (TaLocation). */
|
|
85
90
|
function basename(path: string): string;
|
|
@@ -182,6 +182,20 @@ var MessageUtil;
|
|
|
182
182
|
}
|
|
183
183
|
MessageUtil.tail = tail;
|
|
184
184
|
/** The last two parts of a path: enough to recognize a project. */
|
|
185
|
+
/** The last reply of the assistant with words, its index in the whole conversation, of which `messages` start at `start`. */
|
|
186
|
+
function lastReply(messages, start) {
|
|
187
|
+
for (let index = messages.length - 1; index >= 0; index--) {
|
|
188
|
+
const message = messages[index];
|
|
189
|
+
if (message.role === 'assistant' && message.stopReason !== 'toolUse') {
|
|
190
|
+
const text = MessageUtil.text(MessageUtil.blocks(messages[index])).trim();
|
|
191
|
+
if (text) {
|
|
192
|
+
return { index: start + index, text };
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return undefined;
|
|
197
|
+
}
|
|
198
|
+
MessageUtil.lastReply = lastReply;
|
|
185
199
|
function shortPath(path) {
|
|
186
200
|
const remote = ta_protocol_1.TaLocation.parse(path);
|
|
187
201
|
const parts = (remote ? remote.path : path).split(/[\\/]/).filter(Boolean);
|
|
@@ -33,6 +33,21 @@ export type ProcessStep = {
|
|
|
33
33
|
key: string;
|
|
34
34
|
message: SessionMessage;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* A thing ta did, as one line of the work: a call of a tool, with the thoughts that led to it and, for a script of
|
|
38
|
+
* another agent (its REPL), the calls the script made, which that agent reports after it as calls of their own. The
|
|
39
|
+
* other steps stay as they are: what ta said on the way, a card, what the user said, an error; and a thought not
|
|
40
|
+
* followed by a call (the latest, while ta thinks).
|
|
41
|
+
*/
|
|
42
|
+
export type ProcessAct = Exclude<ProcessStep, {
|
|
43
|
+
kind: 'tool';
|
|
44
|
+
}> | {
|
|
45
|
+
kind: 'tool';
|
|
46
|
+
key: string;
|
|
47
|
+
call: ContentBlock;
|
|
48
|
+
nested: ContentBlock[];
|
|
49
|
+
thoughts: string[];
|
|
50
|
+
};
|
|
36
51
|
/**
|
|
37
52
|
* How a turn that is over ended, when not with a reply: an error, stopped by the user, cut off in the middle of
|
|
38
53
|
* its work (the service stopped, the agent ended its turn with calls not done), or without a word after its work.
|
|
@@ -62,6 +77,8 @@ export interface TurnItem {
|
|
|
62
77
|
last?: SessionMessage;
|
|
63
78
|
/** The agent is still at it. */
|
|
64
79
|
active: boolean;
|
|
80
|
+
/** Ta restarted in the middle of it and the work went on (TA_RESUME_MESSAGE next): not cut off, as the user sees it. */
|
|
81
|
+
resumed?: boolean;
|
|
65
82
|
}
|
|
66
83
|
export type ThreadItem = MessageItem | TurnItem;
|
|
67
84
|
/** While the agent works, only the latest steps show; the earlier ones fold into one row. */
|
|
@@ -80,9 +97,13 @@ export declare namespace ProcessUtil {
|
|
|
80
97
|
* the keys stay as earlier messages come in front. A message not shown (see `hidden`) in the middle of
|
|
81
98
|
* the work stays in its turn: an external agent that goes on on its own, with the files it changed
|
|
82
99
|
* noted between, reads as one turn, not as a turn for each time it went on. So does a message of the user it was
|
|
83
|
-
* given on the way (`steered`): a step of the turn, not the start of another.
|
|
100
|
+
* given on the way (`steered`): a step of the turn, not the start of another. `head`: when `messages` start in
|
|
101
|
+
* the middle of a turn, the message that asked for it, first, with the key it has once loaded.
|
|
84
102
|
*/
|
|
85
|
-
function items(messages: SessionMessage[], working: boolean, offset?: number, renderers?: Readonly<Record<string, unknown
|
|
103
|
+
function items(messages: SessionMessage[], working: boolean, offset?: number, renderers?: Readonly<Record<string, unknown>>, head?: {
|
|
104
|
+
index: number;
|
|
105
|
+
message: SessionMessage;
|
|
106
|
+
}): ThreadItem[];
|
|
86
107
|
/**
|
|
87
108
|
* The message at `index`, of the user, steered a turn: it came after the result of a tool and was written before
|
|
88
109
|
* it, while the agent worked; pi gave it to the agent with the results, and the work went on. One after another
|
|
@@ -106,10 +127,18 @@ export declare namespace ProcessUtil {
|
|
|
106
127
|
function compaction(item: TurnItem): string | undefined;
|
|
107
128
|
/** The tool calls: what "N steps" counts. */
|
|
108
129
|
function tools(steps: ProcessStep[]): ContentBlock[];
|
|
130
|
+
/**
|
|
131
|
+
* The steps as the things ta did (ProcessAct): a thought goes with the call after it, and a call another agent's
|
|
132
|
+
* script made goes with the script. A thought with no call after it stays a step while ta works (`active`): what
|
|
133
|
+
* it thinks now; once the turn is over it goes with the last thing done.
|
|
134
|
+
*/
|
|
135
|
+
function acts(steps: ProcessStep[], active?: boolean): ProcessAct[];
|
|
109
136
|
/** The steps shown: all of them, or while it works the latest few when more than two would fold. */
|
|
110
|
-
function fold
|
|
137
|
+
function fold<T extends {
|
|
138
|
+
key: string;
|
|
139
|
+
}>(steps: T[], active: boolean, showAll: boolean, visible?: number): {
|
|
111
140
|
hidden: number;
|
|
112
|
-
steps:
|
|
141
|
+
steps: T[];
|
|
113
142
|
};
|
|
114
143
|
/** One line of thinking, without markdown: what a folded thought shows. */
|
|
115
144
|
function preview(text: string, length?: number): string;
|
|
@@ -127,7 +156,10 @@ export declare namespace ProcessUtil {
|
|
|
127
156
|
* false), unless a web extension registered a renderer for its type (`renderers`).
|
|
128
157
|
*/
|
|
129
158
|
function shown(item: ThreadItem, renderers: Readonly<Record<string, unknown>>): boolean;
|
|
130
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* A message the page draws nothing for: pi's note of a change to the system prompt (`system`), or a custom message
|
|
161
|
+
* with `display` false and no renderer of a web extension for its type.
|
|
162
|
+
*/
|
|
131
163
|
function hidden(message: SessionMessage, renderers: Readonly<Record<string, unknown>>): boolean;
|
|
132
164
|
/**
|
|
133
165
|
* What the user said next after each turn (`said` reads a message of theirs), undefined for one they did not answer
|