@celljs/ta-web 4.15.2 → 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 +128 -334
- 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 +11 -148
- package/esm/browser/components/chat-list.js +280 -511
- package/esm/browser/components/chat-seen.d.ts +7 -0
- package/esm/browser/components/chat-seen.js +58 -10
- 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/environment-view.js +50 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +90 -20
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +57 -14
- package/esm/browser/components/host-tag.js +2 -2
- 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 +67 -5
- 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 +25 -4
- 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 +4 -12
- package/esm/browser/gateway/console-parts.js +42 -125
- package/esm/browser/gateway/console-tenant.js +3 -2
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +115 -0
- package/esm/browser/gateway/console-util.js +2 -2
- package/esm/browser/gateway/console-view.js +49 -3
- package/esm/browser/i18n/locales.d.ts +170 -6
- package/esm/browser/i18n/messages-ja.js +171 -7
- package/esm/browser/i18n/messages-zh-tw.js +171 -7
- package/esm/browser/i18n/messages.d.ts +167 -3
- package/esm/browser/i18n/messages.js +342 -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 +10 -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 +120 -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 +11 -148
- package/lib/browser/components/chat-list.js +297 -530
- package/lib/browser/components/chat-seen.d.ts +7 -0
- package/lib/browser/components/chat-seen.js +58 -10
- 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/environment-view.js +49 -0
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +89 -19
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +56 -13
- package/lib/browser/components/host-tag.js +1 -1
- 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 +67 -4
- 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 +24 -3
- 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 +4 -12
- package/lib/browser/gateway/console-parts.js +42 -126
- package/lib/browser/gateway/console-tenant.js +3 -2
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +151 -0
- package/lib/browser/gateway/console-util.js +2 -2
- package/lib/browser/gateway/console-view.js +48 -2
- package/lib/browser/i18n/locales.d.ts +170 -6
- package/lib/browser/i18n/messages-ja.js +171 -7
- package/lib/browser/i18n/messages-zh-tw.js +171 -7
- package/lib/browser/i18n/messages.d.ts +167 -3
- package/lib/browser/i18n/messages.js +342 -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 +10 -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
|
@@ -154,6 +154,11 @@ export const SHELL_STYLE = `
|
|
|
154
154
|
.ta-talk-zone-circle { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.86); transition: transform 180ms var(--ta-ease), background 160ms, color 160ms; }
|
|
155
155
|
.ta-talk-zone.ta-on .ta-talk-zone-label { opacity: 1; transform: none; }
|
|
156
156
|
.ta-talk-zone.ta-on .ta-talk-zone-circle { transform: scale(1.18); background: #fff; color: #111; }
|
|
157
|
+
/* 持续说 and 通话, between them and higher, on the arc the bottom draws: a finger slid straight up from the bar only reaches them on purpose. 通话 green as a call is. */
|
|
158
|
+
.ta-talk-zone-call, .ta-talk-zone-keep { transform: translateY(-40px); }
|
|
159
|
+
.ta-talk-zones:has(.ta-talk-zone-keep + .ta-talk-zone-call) .ta-talk-zone { padding-left: 6px; padding-right: 6px; }
|
|
160
|
+
.ta-talk-callable { --ta-talk-gap: 216px; }
|
|
161
|
+
.ta-talk-zone-call.ta-on .ta-talk-zone-circle { background: #07c160; color: #fff; }
|
|
157
162
|
.ta-talk-base { position: absolute; left: -12%; right: -12%; bottom: 0; height: var(--ta-talk-base); display: flex; justify-content: center; padding-top: 30px; box-sizing: border-box; border-radius: 50% 50% 0 0 / 60px 60px 0 0; background: #2c2c2e; color: rgba(255, 255, 255, 0.8); animation: ta-talk-base 260ms var(--ta-ease); transition: background 160ms, color 160ms; }
|
|
158
163
|
.ta-talk-send.ta-talk-listening .ta-talk-base { background: linear-gradient(#f2f2f2, #d6d6d6); color: #333; }
|
|
159
164
|
.ta-talk-hint { font-size: calc(15px * var(--ta-font-scale)); letter-spacing: 0.04em; }
|
|
@@ -164,6 +169,8 @@ export const SHELL_STYLE = `
|
|
|
164
169
|
.ta-talk-zones { bottom: calc(var(--ta-talk-base) + 4px); width: min(100%, 520px); }
|
|
165
170
|
.ta-talk-zone { gap: 8px; padding-bottom: 8px; }
|
|
166
171
|
.ta-talk-zone-circle { width: 56px; height: 56px; }
|
|
172
|
+
.ta-talk-zone-call, .ta-talk-zone-keep { transform: translateY(-20px); }
|
|
173
|
+
.ta-talk-callable { --ta-talk-gap: 136px; }
|
|
167
174
|
.ta-talk-words { max-height: 18vh; }
|
|
168
175
|
}
|
|
169
176
|
@keyframes ta-talk-pop { from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.9); } }
|
|
@@ -178,6 +185,33 @@ export const SHELL_STYLE = `
|
|
|
178
185
|
.ta-console-row > .ta-talk-bar { flex: 1; min-width: 0; height: var(--ta-field-height); margin: 0 2px; border: 0; border-radius: 10px; background: var(--ta-hover); color: var(--ta-text); font-size: var(--ta-field-font); font-weight: 600; letter-spacing: 0.06em; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; transition: background 120ms; }
|
|
179
186
|
.ta-console-row > .ta-talk-bar.ta-on { background: var(--ta-hover-strong); }
|
|
180
187
|
/* Reading a reply aloud (SpeakingButton): the wave of the microphone's, which a tap stops. */
|
|
188
|
+
.ta-call { display: flex; flex-direction: column; margin-bottom: 8px; padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--ta-card); border: 1px solid var(--ta-border-muted); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); color: var(--ta-green); animation: ta-in 200ms var(--ta-ease); }
|
|
189
|
+
.ta-call-row { display: flex; align-items: center; gap: 10px; }
|
|
190
|
+
/* The one line of a call is what is said, as a ticker (CaptionTicker), faded where it goes on. */
|
|
191
|
+
.ta-call-ticker { flex: 1; min-width: 0; display: flex; overflow: hidden; white-space: nowrap; color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); line-height: 1.35; }
|
|
192
|
+
.ta-call-ticker > span { flex: none; }
|
|
193
|
+
.ta-ticker-follow { justify-content: flex-end; }
|
|
194
|
+
.ta-ticker-follow.ta-over { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2em); mask-image: linear-gradient(90deg, transparent, #000 2em); }
|
|
195
|
+
.ta-ticker-read.ta-over { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent); }
|
|
196
|
+
.ta-ticker-read.ta-over > span { animation: ta-ticker var(--ta-ticker-time) linear 0.8s both; }
|
|
197
|
+
@keyframes ta-ticker { from { transform: translateX(0); } to { transform: translateX(var(--ta-ticker-over)); } }
|
|
198
|
+
.ta-call-mark { flex: none; width: 32px; height: 32px; padding: 0; border: 0; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: inherit; font: inherit; cursor: pointer; transition: background 120ms; }
|
|
199
|
+
/* The state is in the mark: a ring that breathes while Ta listens, a spinner while it thinks, the wave while it speaks. Tapped with words heard, they go. */
|
|
200
|
+
.ta-call-mark:disabled { cursor: default; opacity: 1; }
|
|
201
|
+
.ta-call-mark { position: relative; }
|
|
202
|
+
@media (hover: hover) { .ta-call-mark:not(:disabled):hover { background: color-mix(in srgb, var(--ta-green) 26%, transparent); } }
|
|
203
|
+
.ta-call-listening .ta-call-mark { animation: ta-call-pulse 1.6s ease-out infinite; }
|
|
204
|
+
@keyframes ta-call-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-green) 40%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
|
|
205
|
+
.ta-call-paused { color: var(--ta-secondary); background: var(--ta-card); border-color: var(--ta-border-muted); }
|
|
206
|
+
.ta-call-paused .ta-call-mark { background: var(--ta-raised); }
|
|
207
|
+
.ta-call-text { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 32px; line-height: 1.35; }
|
|
208
|
+
.ta-call-heard { color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
209
|
+
.ta-call-captions-toggle { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ta-secondary); cursor: pointer; transition: background 120ms, color 120ms; }
|
|
210
|
+
@media (hover: hover) { .ta-call-captions-toggle:hover { background: var(--ta-hover); } }
|
|
211
|
+
.ta-call-captions-toggle[aria-pressed="true"] { color: var(--ta-green); }
|
|
212
|
+
.ta-call-end { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ta-red); color: #fff; cursor: pointer; transition: filter 120ms; }
|
|
213
|
+
.ta-call-end:hover { filter: brightness(1.08); }
|
|
214
|
+
@media (prefers-reduced-motion: reduce) { .ta-call-listening .ta-call-mark, .ta-ticker-read > span { animation: none; } }
|
|
181
215
|
.ta-speaking { height: 30px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 9px; border: 0; border-radius: 15px; background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; animation: ta-in 180ms var(--ta-ease); transition: background 120ms; }
|
|
182
216
|
.ta-speaking:hover { background: color-mix(in srgb, var(--ta-green) 22%, transparent); }
|
|
183
217
|
.ta-speaking .ta-wave { height: 12px; }
|
|
@@ -232,6 +266,19 @@ export const SHELL_STYLE = `
|
|
|
232
266
|
.ta-toast-session .ta-toast-action { margin-top: 0; }
|
|
233
267
|
.ta-toast-text > .ta-toast-actions { padding-left: 0; margin-top: 6px; }
|
|
234
268
|
.ta-toast-text > .ta-toast-actions .ta-toast-action { margin-top: 0; }
|
|
269
|
+
.ta-toast-ta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 2px 10px; padding: 10px 6px 10px 10px; }
|
|
270
|
+
.ta-toast-ta .ta-toast-face { width: 32px; height: 32px; }
|
|
271
|
+
.ta-toast-ta .ta-toast-text { gap: 3px; padding-top: 1px; }
|
|
272
|
+
.ta-toast-ta .ta-toast-title { font-weight: 600; color: var(--ta-text); }
|
|
273
|
+
.ta-toast-change { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ta-secondary); }
|
|
274
|
+
.ta-toast-change-label { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 2px; }
|
|
275
|
+
.ta-toast-change-before { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }
|
|
276
|
+
.ta-toast-change-arrow { flex: none; color: var(--ta-muted); }
|
|
277
|
+
.ta-toast-change-after { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ta-text); }
|
|
278
|
+
.ta-toast-change-name { color: var(--ta-secondary); font-weight: 400; }
|
|
279
|
+
.ta-toast-undo { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-top: 3px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-accent); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 120ms; }
|
|
280
|
+
@media (hover: hover) { .ta-toast-undo:hover { background: var(--ta-hover); } }
|
|
281
|
+
.ta-toast-ta .ta-toast-close { margin-top: 4px; }
|
|
235
282
|
@keyframes ta-toast-in { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
|
|
236
283
|
@keyframes ta-toast-out { to { transform: translateX(12px); opacity: 0; } }
|
|
237
284
|
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* chip of the head, the card of a start to let go. Alike wherever they show; what waits for the user is
|
|
4
4
|
* the one thing that stands out, a failure only by its dot.
|
|
5
5
|
*/
|
|
6
|
-
export declare const TASKS_STYLE = "\n.ta-task-icon { flex: none; display: inline-grid; place-items: center; border-radius: 9px; overflow: hidden; }\n.ta-task-glyph { background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-task-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-task-more { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); opacity: 0; transition: opacity 120ms; }\n.ta-task-card:hover .ta-task-more, .ta-task-row:hover .ta-task-more, .ta-task-more:focus-visible { opacity: 1; }\n\n/* A card in the turn that started it */\n.ta-task-cards { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 4px 0 10px; }\n.ta-task-card { position: relative; display: flex; align-items: center; min-width: 0; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); transition: border-color 140ms, background 140ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-card:hover { border-color: var(--ta-border-field); }\n.ta-task-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-card-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }\n.ta-task-card-title { flex: 1; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-card-bottom { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: -3px; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-card-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-chevron { flex: none; margin-right: -4px; color: var(--ta-muted); transition: opacity 120ms; }\n.ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 40px; }\n.ta-task-card:has(.ta-task-more) .ta-task-chevron { position: absolute; right: 13px; }\n.ta-task-card:hover:has(.ta-task-more) .ta-task-chevron { opacity: 0; }\n.ta-task-card.ta-task-waiting { border-color: color-mix(in srgb, var(--ta-yellow) 40%, var(--ta-border)); background: color-mix(in srgb, var(--ta-yellow) 5%, var(--ta-card)); }\n.ta-task-waiting .ta-task-card-detail, .ta-task-waiting .ta-task-row-detail { color: color-mix(in srgb, var(--ta-yellow) 80%, var(--ta-text)); }\n\n/* Where a task said how it ended: a quiet line, the double tells the rest */\n.ta-task-update { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, color 120ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-update:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-task-update-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-update-chevron { flex: none; opacity: 0.6; }\n\n/* A row of the lists */\n.ta-task-group { display: flex; flex-direction: column; gap: 2px; }\n.ta-task-group-title { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-task-group-count { min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 8px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); text-align: center; font-variant-numeric: tabular-nums; }\n.ta-task-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-row { position: relative; border-radius: 9px; transition: background 120ms; }\n.ta-task-row:hover { background: var(--ta-hover); }\n.ta-task-row.ta-selecting:has(.ta-task-row-main[aria-pressed=\"true\"]) { background: var(--ta-selected); }\n.ta-task-row-main:disabled { cursor: default; }\n.ta-task-row-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.ta-task-row-title { font-size: calc(13px * var(--ta-font-scale)); line-height: calc(19px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row-detail { display: flex; align-items: center; gap: 3px; min-width: 0; margin-left: -3px; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-row-detail > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: hidden; }\n.ta-task-more-rows { align-self: flex-start; height: 26px; margin: 2px 4px 0; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }\n.ta-task-more-rows:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n\n/* In the head of the double: how many run, how many need the user */\n.ta-tasks-chip { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-card); color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms; animation: ta-fade 180ms var(--ta-ease); }\n.ta-tasks-chip:hover { background: var(--ta-hover); }\n.ta-tasks-chip-part { display: inline-flex; align-items: center; gap: 2px; }\n.ta-tasks-chip-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }\n\n/* A start waiting for the user's go */\n.ta-ask-card { gap:
|
|
6
|
+
export declare const TASKS_STYLE = "\n.ta-task-icon { flex: none; display: inline-grid; place-items: center; border-radius: 9px; overflow: hidden; }\n.ta-task-glyph { background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-task-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-task-more { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); opacity: 0; transition: opacity 120ms; }\n.ta-task-card:hover .ta-task-more, .ta-task-row:hover .ta-task-more, .ta-task-more:focus-visible { opacity: 1; }\n\n/* A card in the turn that started it */\n.ta-task-cards { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 4px 0 10px; }\n.ta-task-card { position: relative; display: flex; align-items: center; min-width: 0; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); transition: border-color 140ms, background 140ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-card:hover { border-color: var(--ta-border-field); }\n.ta-task-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-card-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }\n.ta-task-card-title { flex: 1; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-card-bottom { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: -3px; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-card-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-chevron { flex: none; margin-right: -4px; color: var(--ta-muted); transition: opacity 120ms; }\n.ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 40px; }\n.ta-task-card:has(.ta-task-more) .ta-task-chevron { position: absolute; right: 13px; }\n.ta-task-card:hover:has(.ta-task-more) .ta-task-chevron { opacity: 0; }\n.ta-task-card.ta-task-waiting { border-color: color-mix(in srgb, var(--ta-yellow) 40%, var(--ta-border)); background: color-mix(in srgb, var(--ta-yellow) 5%, var(--ta-card)); }\n.ta-task-waiting .ta-task-card-detail, .ta-task-waiting .ta-task-row-detail { color: color-mix(in srgb, var(--ta-yellow) 80%, var(--ta-text)); }\n\n/* Where a task said how it ended: a quiet line, the double tells the rest */\n.ta-task-update { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, color 120ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-update:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-task-update-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-update-chevron { flex: none; opacity: 0.6; }\n\n/* A row of the lists */\n.ta-task-group { display: flex; flex-direction: column; gap: 2px; }\n.ta-task-group-title { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-task-group-count { min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 8px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); text-align: center; font-variant-numeric: tabular-nums; }\n.ta-task-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-row { position: relative; border-radius: 9px; transition: background 120ms; }\n.ta-task-row:hover { background: var(--ta-hover); }\n.ta-task-row.ta-selecting:has(.ta-task-row-main[aria-pressed=\"true\"]) { background: var(--ta-selected); }\n.ta-task-row-main:disabled { cursor: default; }\n.ta-task-row-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.ta-task-row-title { font-size: calc(13px * var(--ta-font-scale)); line-height: calc(19px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row-detail { display: flex; align-items: center; gap: 3px; min-width: 0; margin-left: -3px; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-row-detail > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: hidden; }\n.ta-task-more-rows { align-self: flex-start; height: 26px; margin: 2px 4px 0; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }\n.ta-task-more-rows:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n\n/* In the head of the double: how many run, how many need the user */\n.ta-tasks-chip { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-card); color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms; animation: ta-fade 180ms var(--ta-ease); }\n.ta-tasks-chip:hover { background: var(--ta-hover); }\n.ta-tasks-chip-part { display: inline-flex; align-items: center; gap: 2px; }\n.ta-tasks-chip-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }\n\n/* A start waiting for the user's go */\n.ta-ask-card { gap: 0; padding: 12px 14px; }\n.ta-ask-card-label { display: flex; align-items: center; gap: 5px; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; line-height: 1.4; }\n.ta-ask-card-title { margin-top: 4px; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }\n.ta-ask-card-plan { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; text-align: left; cursor: pointer; }\n.ta-ask-card-plan-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }\n.ta-ask-card-plan.ta-open { max-height: 40vh; overflow-y: auto; cursor: auto; color: var(--ta-secondary); }\n.ta-ask-card-plan.ta-open .ta-ask-card-plan-text { display: block; white-space: pre-wrap; }\n.ta-ask-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }\n.ta-ask-card-where { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ask-card-where > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-ask-card-where > svg { flex: none; }\n.ta-ask-card-foot .ta-button { flex: none; min-width: 64px; border-radius: 16px; }\n.ta-ask-card-foot .ta-button.ta-primary { gap: 4px; }\n\n/* A conversation the double follows, in the list of chats */\n.ta-double-tag { display: inline-flex; align-items: center; flex: none; height: 17px; padding: 0 5px; margin-right: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ta-accent) 13%, transparent); color: var(--ta-accent); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); vertical-align: 1px; }\n\n/* A finger has no hover: the \u2026 is a long press, the chevron stays. */\n@media (pointer: coarse) {\n .ta-task-more { display: none; }\n .ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 14px; }\n .ta-task-card:has(.ta-task-more) .ta-task-chevron { position: static; opacity: 1; }\n .ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: visible; }\n}\n";
|
|
@@ -59,14 +59,19 @@ export const TASKS_STYLE = `
|
|
|
59
59
|
.ta-tasks-chip-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }
|
|
60
60
|
|
|
61
61
|
/* A start waiting for the user's go */
|
|
62
|
-
.ta-ask-card { gap:
|
|
63
|
-
.ta-ask-card-
|
|
64
|
-
.ta-ask-card-
|
|
65
|
-
.ta-ask-card-
|
|
66
|
-
.ta-ask-card-
|
|
67
|
-
.ta-ask-card-plan {
|
|
68
|
-
.ta-ask-card-plan.ta-open { display: block;
|
|
69
|
-
.ta-ask-card
|
|
62
|
+
.ta-ask-card { gap: 0; padding: 12px 14px; }
|
|
63
|
+
.ta-ask-card-label { display: flex; align-items: center; gap: 5px; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; line-height: 1.4; }
|
|
64
|
+
.ta-ask-card-title { margin-top: 4px; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
|
|
65
|
+
.ta-ask-card-plan { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; text-align: left; cursor: pointer; }
|
|
66
|
+
.ta-ask-card-plan-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
|
|
67
|
+
.ta-ask-card-plan.ta-open { max-height: 40vh; overflow-y: auto; cursor: auto; color: var(--ta-secondary); }
|
|
68
|
+
.ta-ask-card-plan.ta-open .ta-ask-card-plan-text { display: block; white-space: pre-wrap; }
|
|
69
|
+
.ta-ask-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
|
|
70
|
+
.ta-ask-card-where { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
71
|
+
.ta-ask-card-where > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
72
|
+
.ta-ask-card-where > svg { flex: none; }
|
|
73
|
+
.ta-ask-card-foot .ta-button { flex: none; min-width: 64px; border-radius: 16px; }
|
|
74
|
+
.ta-ask-card-foot .ta-button.ta-primary { gap: 4px; }
|
|
70
75
|
|
|
71
76
|
/* A conversation the double follows, in the list of chats */
|
|
72
77
|
.ta-double-tag { display: inline-flex; align-items: center; flex: none; height: 17px; padding: 0 5px; margin-right: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ta-accent) 13%, transparent); color: var(--ta-accent); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); vertical-align: 1px; }
|
package/esm/browser/style.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BASE_STYLE } from './style/base.js';
|
|
2
|
+
import { CHAT_LIST_STYLE } from './style/chat-list.js';
|
|
2
3
|
import { CONVERSATION_STYLE } from './style/conversation.js';
|
|
4
|
+
import { CONVERSATION_COLUMN_STYLE } from './style/conversation-column.js';
|
|
3
5
|
import { DEVICE_STYLE } from './style/device.js';
|
|
6
|
+
import { DIALOGS_STYLE } from './style/dialogs.js';
|
|
4
7
|
import { LAYOUT_STYLE } from './style/layout.js';
|
|
5
8
|
import { PAGES_STYLE } from './style/pages.js';
|
|
6
9
|
import { PHONE_STYLE } from './style/phone.js';
|
|
10
|
+
import { SHARED_STYLE } from './style/shared.js';
|
|
7
11
|
import { SHELL_STYLE } from './style/shell.js';
|
|
8
12
|
import { SURFACES_STYLE } from './style/surfaces.js';
|
|
9
13
|
import { TASKS_STYLE } from './style/tasks.js';
|
|
@@ -19,10 +23,14 @@ export const STYLE = [
|
|
|
19
23
|
SHELL_STYLE,
|
|
20
24
|
CONVERSATION_STYLE,
|
|
21
25
|
LAYOUT_STYLE,
|
|
26
|
+
CONVERSATION_COLUMN_STYLE,
|
|
27
|
+
CHAT_LIST_STYLE,
|
|
28
|
+
DIALOGS_STYLE,
|
|
22
29
|
TASKS_STYLE,
|
|
23
30
|
PAGES_STYLE,
|
|
24
31
|
DEVICE_STYLE,
|
|
25
32
|
SURFACES_STYLE,
|
|
26
33
|
PHONE_STYLE,
|
|
34
|
+
SHARED_STYLE,
|
|
27
35
|
].join('');
|
|
28
36
|
//# sourceMappingURL=style.js.map
|
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
import { type MarkdownBlock, type MarkdownPicture } from './markdown.js';
|
|
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[];
|
|
@@ -5,9 +5,15 @@ const CAPTION_WIDTH = 40;
|
|
|
5
5
|
const SENTENCE_END = /[。!?!?;;.]$/;
|
|
6
6
|
/** Alt text that names no picture: a file name, or "image", "screenshot" and the like. */
|
|
7
7
|
const BARE_ALT = /^(?:image|img|picture|pic|photo|screenshot|screen ?shot|图片?|截图|圖片?|截圖|画像|スクリーンショット)?\s*\d*$|\.\w{2,5}$/i;
|
|
8
|
+
/** A gallery narrower than this is a phone's: at most three pictures a row, none narrower than two would be. */
|
|
9
|
+
const NARROW = 480;
|
|
10
|
+
const MOST = 3;
|
|
11
|
+
/** A picture wider or taller than this (width over height) is cut to it, a panorama or a long page. */
|
|
12
|
+
const RATIO_MIN = 0.4;
|
|
13
|
+
const RATIO_MAX = 3;
|
|
8
14
|
/**
|
|
9
|
-
* Pictures of a reply shown together,
|
|
10
|
-
*
|
|
15
|
+
* Pictures of a reply shown together, nine at most, the last saying how many more: in rows as wide as the reply, each
|
|
16
|
+
* picture whole in its own shape and all of a row as tall (rows). Paragraphs of pictures alone one after
|
|
11
17
|
* another are one gallery, and so are pictures each under a short line of its own that names it (`**Dark**`,
|
|
12
18
|
* `Before:`), which shows under its tile.
|
|
13
19
|
*/
|
|
@@ -15,6 +21,80 @@ export var GalleryUtil;
|
|
|
15
21
|
(function (GalleryUtil) {
|
|
16
22
|
/** The tiles a gallery shows; the last of them says how many more there are. */
|
|
17
23
|
GalleryUtil.TILES = 9;
|
|
24
|
+
/** The shape of a picture (width over height) as its tile has it; a square while it is not known. */
|
|
25
|
+
function ratio(ratio) {
|
|
26
|
+
return ratio && Number.isFinite(ratio) && ratio > 0 ? Math.min(RATIO_MAX, Math.max(RATIO_MIN, ratio)) : 1;
|
|
27
|
+
}
|
|
28
|
+
GalleryUtil.ratio = ratio;
|
|
29
|
+
/**
|
|
30
|
+
* Pictures of these shapes in rows `width` wide: each row as many as come nearest a height that suits the width,
|
|
31
|
+
* stretched to fill it; the last, when it would stand much taller, joins the row before when that leaves it not
|
|
32
|
+
* much lower, or else stands as tall as one and a half at most, from the left.
|
|
33
|
+
*/
|
|
34
|
+
function rows(ratios, width, gap) {
|
|
35
|
+
const wide = width > 0 ? width : 480;
|
|
36
|
+
const { target, tallest } = heights(wide);
|
|
37
|
+
const narrow = wide < NARROW;
|
|
38
|
+
const out = [];
|
|
39
|
+
for (let start = 0; start < ratios.length;) {
|
|
40
|
+
let end = start;
|
|
41
|
+
let sum = 0;
|
|
42
|
+
let height = Number.POSITIVE_INFINITY;
|
|
43
|
+
while (end < ratios.length) {
|
|
44
|
+
const next = (wide - gap * (end - start)) / (sum + ratios[end]);
|
|
45
|
+
if (end > start && next < target && target - next > height - target) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
sum += ratios[end];
|
|
49
|
+
end++;
|
|
50
|
+
height = next;
|
|
51
|
+
if (height <= target || (narrow && end - start === MOST)) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const before = out[out.length - 1];
|
|
56
|
+
// On a phone a last picture alone under three is two rows of two.
|
|
57
|
+
if (narrow && end === ratios.length && end - start === 1 && before && before.end - before.start === MOST) {
|
|
58
|
+
out[out.length - 1] = row(ratios, before.start, before.start + 2, wide, gap, tallest);
|
|
59
|
+
out.push(row(ratios, before.start + 2, end, wide, gap, tallest));
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
if (!narrow && end === ratios.length && height > tallest && before) {
|
|
63
|
+
const joined = (wide - gap * (end - before.start - 1)) / ratios.slice(before.start, end).reduce((all, one) => all + one, 0);
|
|
64
|
+
if (joined >= target * 0.75) {
|
|
65
|
+
out[out.length - 1] = { start: before.start, end, height: joined, full: true };
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
out.push({ start, end, height: Math.min(height, tallest), full: height <= tallest });
|
|
70
|
+
start = end;
|
|
71
|
+
}
|
|
72
|
+
return out;
|
|
73
|
+
}
|
|
74
|
+
GalleryUtil.rows = rows;
|
|
75
|
+
/**
|
|
76
|
+
* The shapes the tiles of pictures of these shapes have in a gallery `width` wide: on a phone a tall picture (a
|
|
77
|
+
* screenshot of a phone) is cut from its top to what two side by side fill a row with, rather than four of them
|
|
78
|
+
* standing in a row as thin as a finger; elsewhere as they are.
|
|
79
|
+
*/
|
|
80
|
+
function shapes(ratios, width, gap) {
|
|
81
|
+
if (!(width > 0 && width < NARROW) || ratios.length < 2) {
|
|
82
|
+
return ratios.slice();
|
|
83
|
+
}
|
|
84
|
+
const least = (width - gap) / 2 / heights(width).tallest;
|
|
85
|
+
return ratios.map(one => Math.max(one, least));
|
|
86
|
+
}
|
|
87
|
+
GalleryUtil.shapes = shapes;
|
|
88
|
+
/** The height a row comes near, and the most it stands, in a gallery this wide. */
|
|
89
|
+
function heights(wide) {
|
|
90
|
+
const target = Math.min(240, Math.max(140, wide * 0.38));
|
|
91
|
+
return { target, tallest: target * 1.5 };
|
|
92
|
+
}
|
|
93
|
+
function row(ratios, start, end, wide, gap, tallest) {
|
|
94
|
+
const height = (wide - gap * (end - start - 1)) / ratios.slice(start, end).reduce((all, one) => all + one, 0);
|
|
95
|
+
return { start, end, height: Math.min(height, tallest), full: height <= tallest };
|
|
96
|
+
}
|
|
97
|
+
/** The columns of the pictures of a message of the user, as chat apps show several sent at once. */
|
|
18
98
|
function columns(count) {
|
|
19
99
|
return count <= 1 ? 1 : count === 2 || count === 4 ? 2 : 3;
|
|
20
100
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 var ImageCopyUtil;
|
|
6
|
+
(function (ImageCopyUtil) {
|
|
7
|
+
ImageCopyUtil.TYPE = 'image/png';
|
|
8
|
+
/** Whether the page can put a picture on the clipboard. */
|
|
9
|
+
function supported() {
|
|
10
|
+
var _a;
|
|
11
|
+
return typeof ClipboardItem !== 'undefined' && typeof navigator !== 'undefined' && !!((_a = navigator.clipboard) === null || _a === void 0 ? void 0 : _a.write);
|
|
12
|
+
}
|
|
13
|
+
ImageCopyUtil.supported = supported;
|
|
14
|
+
/**
|
|
15
|
+
* Copies the picture of `src`, or of the URL it comes to (the file itself of a picture shown smaller). Call it
|
|
16
|
+
* in the click or key that asks: the clipboard is written at once with what is still loading, as Safari wants.
|
|
17
|
+
*/
|
|
18
|
+
function copy(src) {
|
|
19
|
+
if (!supported()) {
|
|
20
|
+
return Promise.reject(new Error('This page cannot put a picture on the clipboard'));
|
|
21
|
+
}
|
|
22
|
+
const png = Promise.resolve(src).then(load).then(toPng);
|
|
23
|
+
return navigator.clipboard.write([new ClipboardItem({ [ImageCopyUtil.TYPE]: png })]);
|
|
24
|
+
}
|
|
25
|
+
ImageCopyUtil.copy = copy;
|
|
26
|
+
async function load(url) {
|
|
27
|
+
const response = await fetch(url);
|
|
28
|
+
if (!response.ok) {
|
|
29
|
+
throw new Error(`Cannot load the picture: ${response.status}`);
|
|
30
|
+
}
|
|
31
|
+
return response.blob();
|
|
32
|
+
}
|
|
33
|
+
/** The picture as PNG: as it is when it is one, else drawn again at its own size. */
|
|
34
|
+
async function toPng(blob) {
|
|
35
|
+
var _a;
|
|
36
|
+
if (blob.type === ImageCopyUtil.TYPE) {
|
|
37
|
+
return blob;
|
|
38
|
+
}
|
|
39
|
+
const url = URL.createObjectURL(blob);
|
|
40
|
+
try {
|
|
41
|
+
const image = new Image();
|
|
42
|
+
image.src = url;
|
|
43
|
+
await image.decode();
|
|
44
|
+
const canvas = document.createElement('canvas');
|
|
45
|
+
// An SVG with only a viewBox has no size of its own.
|
|
46
|
+
canvas.width = image.naturalWidth || 512;
|
|
47
|
+
canvas.height = image.naturalHeight || 512;
|
|
48
|
+
(_a = canvas.getContext('2d')) === null || _a === void 0 ? void 0 : _a.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
49
|
+
return await new Promise((resolve, reject) => canvas.toBlob(png => (png ? resolve(png) : reject(new Error('Cannot draw the picture as PNG'))), ImageCopyUtil.TYPE));
|
|
50
|
+
}
|
|
51
|
+
finally {
|
|
52
|
+
URL.revokeObjectURL(url);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
ImageCopyUtil.toPng = toPng;
|
|
56
|
+
})(ImageCopyUtil || (ImageCopyUtil = {}));
|
|
57
|
+
//# sourceMappingURL=image-copy.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;
|
|
@@ -179,6 +179,20 @@ export var MessageUtil;
|
|
|
179
179
|
}
|
|
180
180
|
MessageUtil.tail = tail;
|
|
181
181
|
/** The last two parts of a path: enough to recognize a project. */
|
|
182
|
+
/** The last reply of the assistant with words, its index in the whole conversation, of which `messages` start at `start`. */
|
|
183
|
+
function lastReply(messages, start) {
|
|
184
|
+
for (let index = messages.length - 1; index >= 0; index--) {
|
|
185
|
+
const message = messages[index];
|
|
186
|
+
if (message.role === 'assistant' && message.stopReason !== 'toolUse') {
|
|
187
|
+
const text = MessageUtil.text(MessageUtil.blocks(messages[index])).trim();
|
|
188
|
+
if (text) {
|
|
189
|
+
return { index: start + index, text };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
MessageUtil.lastReply = lastReply;
|
|
182
196
|
function shortPath(path) {
|
|
183
197
|
const remote = TaLocation.parse(path);
|
|
184
198
|
const parts = (remote ? remote.path : path).split(/[\\/]/).filter(Boolean);
|
|
@@ -80,9 +80,13 @@ export declare namespace ProcessUtil {
|
|
|
80
80
|
* the keys stay as earlier messages come in front. A message not shown (see `hidden`) in the middle of
|
|
81
81
|
* the work stays in its turn: an external agent that goes on on its own, with the files it changed
|
|
82
82
|
* 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.
|
|
83
|
+
* given on the way (`steered`): a step of the turn, not the start of another. `head`: when `messages` start in
|
|
84
|
+
* the middle of a turn, the message that asked for it, first, with the key it has once loaded.
|
|
84
85
|
*/
|
|
85
|
-
function items(messages: SessionMessage[], working: boolean, offset?: number, renderers?: Readonly<Record<string, unknown
|
|
86
|
+
function items(messages: SessionMessage[], working: boolean, offset?: number, renderers?: Readonly<Record<string, unknown>>, head?: {
|
|
87
|
+
index: number;
|
|
88
|
+
message: SessionMessage;
|
|
89
|
+
}): ThreadItem[];
|
|
86
90
|
/**
|
|
87
91
|
* The message at `index`, of the user, steered a turn: it came after the result of a tool and was written before
|
|
88
92
|
* it, while the agent worked; pi gave it to the agent with the results, and the work went on. One after another
|
|
@@ -18,11 +18,15 @@ export var ProcessUtil;
|
|
|
18
18
|
* the keys stay as earlier messages come in front. A message not shown (see `hidden`) in the middle of
|
|
19
19
|
* the work stays in its turn: an external agent that goes on on its own, with the files it changed
|
|
20
20
|
* 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
|
|
21
|
-
* given on the way (`steered`): a step of the turn, not the start of another.
|
|
21
|
+
* given on the way (`steered`): a step of the turn, not the start of another. `head`: when `messages` start in
|
|
22
|
+
* the middle of a turn, the message that asked for it, first, with the key it has once loaded.
|
|
22
23
|
*/
|
|
23
|
-
function items(messages, working, offset = 0, renderers = {}) {
|
|
24
|
+
function items(messages, working, offset = 0, renderers = {}, head) {
|
|
24
25
|
var _a;
|
|
25
26
|
const items = [];
|
|
27
|
+
if (head && head.index < offset) {
|
|
28
|
+
items.push({ kind: 'message', key: `m${head.index}`, message: head.message });
|
|
29
|
+
}
|
|
26
30
|
let index = 0;
|
|
27
31
|
while (index < messages.length) {
|
|
28
32
|
const role = messages[index].role;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** How a block of a language is said aloud (WebCodeRendererOptions.spoken): what the user must hear of it, or nothing. */
|
|
2
|
+
export type BlockSpeech = Readonly<Record<string, (code: string) => string | undefined>>;
|
|
3
|
+
/**
|
|
4
|
+
* What of a reply is said aloud, the one place that decides it: a call, a reply read out, a voice service.
|
|
5
|
+
*
|
|
6
|
+
* - A reply may hold a block for the ear, ```ta-say, which a call asks the model for (`asked`): that is said, and
|
|
7
|
+
* pages do not show it.
|
|
8
|
+
* - Else what it says is taken by rules: its first sentences (a reply leads with its answer), what the blocks of
|
|
9
|
+
* extensions say of themselves (the choices and risks of a card), never code, tables, pictures or formulas; when
|
|
10
|
+
* something is left on the screen, it says so.
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace SpokenReply {
|
|
13
|
+
/** The language of the block for the ear. */
|
|
14
|
+
const LANGUAGE = "ta-say";
|
|
15
|
+
/** What the model is told with what the user says in a call, in the context of their message: to write the block. */
|
|
16
|
+
const NOTE = "[ta-call] The user talks with you in a voice call: your reply is shown, and Ta reads aloud only a block of language ta-say you end it with. Write one: one to three short sentences in the user's language, as you would say it on the phone: the answer, and what they must decide or know (a question, a failure, a risk). No code, paths, links, tables or lists; say the rest is on the screen when there is more.";
|
|
17
|
+
/** What the user said in a call, as sent to the conversation: with the note, which pages leave out. */
|
|
18
|
+
function asked(text: string): string;
|
|
19
|
+
interface Words {
|
|
20
|
+
/** Said after the rest when something of the reply is only on the screen. */
|
|
21
|
+
onScreen: string;
|
|
22
|
+
}
|
|
23
|
+
function of(markdown: string, blocks: BlockSpeech, words: Words): string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { TaMessageContext } from '@celljs/ta-protocol';
|
|
2
|
+
import { MarkdownUtil } from './markdown.js';
|
|
3
|
+
import { Voice } from './voice.js';
|
|
4
|
+
/**
|
|
5
|
+
* What of a reply is said aloud, the one place that decides it: a call, a reply read out, a voice service.
|
|
6
|
+
*
|
|
7
|
+
* - A reply may hold a block for the ear, ```ta-say, which a call asks the model for (`asked`): that is said, and
|
|
8
|
+
* pages do not show it.
|
|
9
|
+
* - Else what it says is taken by rules: its first sentences (a reply leads with its answer), what the blocks of
|
|
10
|
+
* extensions say of themselves (the choices and risks of a card), never code, tables, pictures or formulas; when
|
|
11
|
+
* something is left on the screen, it says so.
|
|
12
|
+
*/
|
|
13
|
+
export var SpokenReply;
|
|
14
|
+
(function (SpokenReply) {
|
|
15
|
+
/** The language of the block for the ear. */
|
|
16
|
+
SpokenReply.LANGUAGE = 'ta-say';
|
|
17
|
+
/** Of the words of a reply without its block for the ear, at most so many sentences, and characters. */
|
|
18
|
+
const SENTENCES = 3;
|
|
19
|
+
const CHARS = 160;
|
|
20
|
+
/** What the model is told with what the user says in a call, in the context of their message: to write the block. */
|
|
21
|
+
SpokenReply.NOTE = `[ta-call] The user talks with you in a voice call: your reply is shown, and Ta reads aloud only a block of language ${SpokenReply.LANGUAGE} you end it with. Write one: one to three short sentences in the user's language, as you would say it on the phone: the answer, and what they must decide or know (a question, a failure, a risk). No code, paths, links, tables or lists; say the rest is on the screen when there is more.`;
|
|
22
|
+
/** What the user said in a call, as sent to the conversation: with the note, which pages leave out. */
|
|
23
|
+
function asked(text) {
|
|
24
|
+
return TaMessageContext.wrap(SpokenReply.NOTE, text);
|
|
25
|
+
}
|
|
26
|
+
SpokenReply.asked = asked;
|
|
27
|
+
function of(markdown, blocks, words) {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const parsed = MarkdownUtil.blocks(markdown);
|
|
30
|
+
const ear = parsed.find(block => block.type === 'code' && block.language.trim().toLowerCase() === SpokenReply.LANGUAGE);
|
|
31
|
+
if ((ear === null || ear === void 0 ? void 0 : ear.type) === 'code' && ear.code.trim()) {
|
|
32
|
+
return ear.code.trim();
|
|
33
|
+
}
|
|
34
|
+
const sentences = [];
|
|
35
|
+
const told = [];
|
|
36
|
+
let length = 0;
|
|
37
|
+
let left = false;
|
|
38
|
+
const prose = (text) => {
|
|
39
|
+
for (const sentence of Voice.sentences(Voice.spoken(text))) {
|
|
40
|
+
if (sentences.length >= SENTENCES || length + sentence.length > CHARS) {
|
|
41
|
+
left = true;
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
sentences.push(sentence);
|
|
45
|
+
length += sentence.length;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
for (const block of parsed) {
|
|
49
|
+
switch (block.type) {
|
|
50
|
+
case 'paragraph':
|
|
51
|
+
case 'heading':
|
|
52
|
+
case 'quote':
|
|
53
|
+
prose(block.text);
|
|
54
|
+
break;
|
|
55
|
+
case 'list':
|
|
56
|
+
// A few items are heard; more are for the screen.
|
|
57
|
+
if (block.items.length > 3) {
|
|
58
|
+
left = true;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
prose(block.items.map(item => (/[。.!?!?]$/.test(item.trim()) ? item : `${item}。`)).join('\n'));
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
case 'code': {
|
|
65
|
+
const spoken = (_b = (_a = blocks[block.language.trim().toLowerCase()]) === null || _a === void 0 ? void 0 : _a.call(blocks, block.code)) === null || _b === void 0 ? void 0 : _b.trim();
|
|
66
|
+
if (spoken) {
|
|
67
|
+
told.push(spoken);
|
|
68
|
+
}
|
|
69
|
+
left = true;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
case 'rule':
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
left = true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const said = [...sentences, ...told].join(' ').trim();
|
|
79
|
+
return said && left ? `${said} ${words.onScreen}` : said || (left ? words.onScreen : '');
|
|
80
|
+
}
|
|
81
|
+
SpokenReply.of = of;
|
|
82
|
+
})(SpokenReply || (SpokenReply = {}));
|
|
83
|
+
//# sourceMappingURL=spoken.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SessionMessage } from '@celljs/ta-client';
|
|
2
|
+
/** Who said each part of a transcript. */
|
|
3
|
+
export interface TranscriptLabels {
|
|
4
|
+
user: string;
|
|
5
|
+
agent: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A conversation as Markdown, to paste elsewhere: what the user said and what the agent answered, each under the
|
|
9
|
+
* name of who said it, oldest first. Tool calls and their results are left out; the text the agent said around
|
|
10
|
+
* them is one answer, as a turn shows it.
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace TranscriptUtil {
|
|
13
|
+
/** The parts of `messages` from `from` on, each its speaker and its words; `userText` reads what the user typed. */
|
|
14
|
+
function parts(messages: readonly SessionMessage[], from: number, userText: (message: SessionMessage) => string): {
|
|
15
|
+
role: 'user' | 'agent';
|
|
16
|
+
text: string;
|
|
17
|
+
}[];
|
|
18
|
+
function markdown(parts: readonly {
|
|
19
|
+
role: 'user' | 'agent';
|
|
20
|
+
text: string;
|
|
21
|
+
}[], labels: TranscriptLabels): string;
|
|
22
|
+
}
|