@celljs/ta-web 4.27.0 → 4.29.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-role.d.ts +9 -4
- package/esm/browser/assistant/assistant-role.js +17 -5
- package/esm/browser/assistant/assistant-task-util.d.ts +6 -0
- package/esm/browser/assistant/assistant-task-util.js +12 -1
- package/esm/browser/assistant/assistant-thread.js +15 -2
- package/esm/browser/assistant/assistant-view.js +4 -1
- package/esm/browser/assistant/assistant.d.ts +2 -1
- package/esm/browser/assistant/assistant.js +9 -7
- package/esm/browser/assistant/call-conversing.d.ts +45 -0
- package/esm/browser/assistant/call-conversing.js +91 -0
- package/esm/browser/assistant/call-face.d.ts +13 -0
- package/esm/browser/assistant/call-face.js +81 -0
- package/esm/browser/assistant/call-keeper.d.ts +8 -4
- package/esm/browser/assistant/call-keeper.js +32 -11
- package/esm/browser/assistant/call-partnering.d.ts +37 -0
- package/esm/browser/assistant/call-partnering.js +79 -0
- package/esm/browser/assistant/call-scenes.d.ts +26 -0
- package/esm/browser/assistant/call-scenes.js +85 -0
- package/esm/browser/assistant/call-screen.d.ts +3 -0
- package/esm/browser/assistant/call-screen.js +15 -0
- package/esm/browser/assistant/mic-sense.d.ts +31 -0
- package/esm/browser/assistant/mic-sense.js +119 -0
- package/esm/browser/assistant/noise-gate.d.ts +32 -0
- package/esm/browser/assistant/noise-gate.js +66 -0
- package/esm/browser/assistant/pcm-util.d.ts +10 -0
- package/esm/browser/assistant/pcm-util.js +55 -0
- package/esm/browser/assistant/read-aloud.d.ts +2 -1
- package/esm/browser/assistant/realtime-voice-protocol.d.ts +84 -0
- package/esm/browser/assistant/realtime-voice-protocol.js +40 -0
- package/esm/browser/assistant/realtime-voice.d.ts +50 -62
- package/esm/browser/assistant/realtime-voice.js +213 -134
- package/esm/browser/assistant/spoken-timeline.d.ts +27 -0
- package/esm/browser/assistant/spoken-timeline.js +49 -0
- package/esm/browser/assistant/voice-call-bar.d.ts +9 -2
- package/esm/browser/assistant/voice-call-bar.js +81 -31
- package/esm/browser/assistant/voice-call-protocol.d.ts +61 -4
- package/esm/browser/assistant/voice-call.d.ts +16 -23
- package/esm/browser/assistant/voice-call.js +134 -117
- package/esm/browser/assistant/voice-reading.d.ts +83 -0
- package/esm/browser/assistant/voice-reading.js +150 -0
- package/esm/browser/avatar/dino-talk.d.ts +15 -0
- package/esm/browser/avatar/dino-talk.js +34 -0
- package/esm/browser/chat/chat-protocol.d.ts +2 -0
- package/esm/browser/chat/chat-shown.d.ts +3 -1
- package/esm/browser/chat/chat-shown.js +25 -3
- package/esm/browser/chat/chat.d.ts +5 -1
- package/esm/browser/chat/chat.js +32 -16
- package/esm/browser/components/account-menu.d.ts +6 -16
- package/esm/browser/components/account-menu.js +47 -101
- package/esm/browser/components/app-contexts.js +3 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/composer-box-protocol.d.ts +2 -0
- package/esm/browser/components/composer-box.js +20 -1
- package/esm/browser/components/composer-emoji.d.ts +22 -0
- package/esm/browser/components/composer-emoji.js +50 -0
- package/esm/browser/components/conversation-scroll-util.d.ts +8 -1
- package/esm/browser/components/conversation-scroll-util.js +21 -0
- package/esm/browser/components/conversation-scroll.js +10 -11
- package/esm/browser/components/discover-view.d.ts +4 -3
- package/esm/browser/components/discover-view.js +5 -4
- package/esm/browser/components/emoji-panel.d.ts +22 -0
- package/esm/browser/components/emoji-panel.js +54 -0
- package/esm/browser/components/gallery.js +28 -7
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/image-pull.d.ts +64 -0
- package/esm/browser/components/image-pull.js +202 -0
- package/esm/browser/components/kept-call-bar.js +2 -1
- package/esm/browser/components/lightbox.d.ts +1 -1
- package/esm/browser/components/lightbox.js +57 -2
- package/esm/browser/components/markdown.d.ts +8 -1
- package/esm/browser/components/markdown.js +12 -4
- package/esm/browser/components/me-rows.d.ts +24 -0
- package/esm/browser/components/me-rows.js +19 -0
- package/esm/browser/components/me-view.d.ts +2 -1
- package/esm/browser/components/me-view.js +3 -2
- package/esm/browser/components/message-list.js +47 -7
- package/esm/browser/components/message-steps.js +13 -0
- package/esm/browser/components/nav-places.js +1 -1
- package/esm/browser/components/partner-row.js +2 -1
- package/esm/browser/components/relay-services.d.ts +9 -3
- package/esm/browser/components/relay-services.js +73 -35
- package/esm/browser/components/session-view.js +4 -2
- package/esm/browser/components/settings-choices.js +3 -0
- package/esm/browser/components/settings-controls.d.ts +13 -0
- package/esm/browser/components/settings-controls.js +19 -0
- package/esm/browser/components/settings-more.d.ts +1 -1
- package/esm/browser/components/settings-more.js +28 -39
- package/esm/browser/components/settings-parts.d.ts +4 -2
- package/esm/browser/components/settings-parts.js +16 -9
- package/esm/browser/components/settings-view.js +2 -6
- package/esm/browser/components/ta-avatar.d.ts +15 -1
- package/esm/browser/components/ta-avatar.js +38 -5
- package/esm/browser/components/voice-services.js +6 -1
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/device/file-save.d.ts +31 -0
- package/esm/browser/device/file-save.js +80 -0
- package/esm/browser/extension/extension-view.d.ts +2 -0
- package/esm/browser/extension/extension-view.js +2 -0
- package/esm/browser/extension/web-api-call.d.ts +109 -2
- package/esm/browser/extension/web-api-components.d.ts +4 -0
- package/esm/browser/extension/web-api-contributions.d.ts +14 -14
- package/esm/browser/extension/web-api-desktop.d.ts +16 -1
- package/esm/browser/extension/web-api-desktop.js +1 -0
- package/esm/browser/extension/web-api-partners.d.ts +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +8 -10
- package/esm/browser/extension/web-extension-code.d.ts +15 -8
- package/esm/browser/extension/web-extension-code.js +25 -27
- package/esm/browser/extension/web-extension-context.js +4 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +10 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +4 -2
- package/esm/browser/extension/web-extension-run.js +10 -4
- package/esm/browser/extension/web-extensions-running.js +7 -6
- package/esm/browser/extension/web-pages.d.ts +2 -0
- package/esm/browser/extension/web-pages.js +2 -0
- package/esm/browser/i18n/en/account.d.ts +202 -0
- package/esm/browser/i18n/en/account.js +205 -0
- package/esm/browser/i18n/en/assistant.d.ts +129 -0
- package/esm/browser/i18n/en/assistant.js +130 -0
- package/esm/browser/i18n/en/call.d.ts +86 -0
- package/esm/browser/i18n/en/call.js +87 -0
- package/esm/browser/i18n/en/chat.d.ts +213 -0
- package/esm/browser/i18n/en/chat.js +214 -0
- package/esm/browser/i18n/en/common.d.ts +99 -0
- package/esm/browser/i18n/en/common.js +101 -0
- package/esm/browser/i18n/en/console.d.ts +230 -0
- package/esm/browser/i18n/en/console.js +232 -0
- package/esm/browser/i18n/en/discover.d.ts +117 -0
- package/esm/browser/i18n/en/discover.js +119 -0
- package/esm/browser/i18n/en/service.d.ts +242 -0
- package/esm/browser/i18n/en/service.js +245 -0
- package/esm/browser/i18n/en/settings.d.ts +213 -0
- package/esm/browser/i18n/en/settings.js +214 -0
- package/esm/browser/i18n/en/tools.d.ts +85 -0
- package/esm/browser/i18n/en/tools.js +87 -0
- package/esm/browser/i18n/ja/account.d.ts +2 -0
- package/esm/browser/i18n/ja/account.js +202 -0
- package/esm/browser/i18n/ja/assistant.d.ts +2 -0
- package/esm/browser/i18n/ja/assistant.js +129 -0
- package/esm/browser/i18n/ja/call.d.ts +2 -0
- package/esm/browser/i18n/ja/call.js +86 -0
- package/esm/browser/i18n/ja/chat.d.ts +2 -0
- package/esm/browser/i18n/ja/chat.js +213 -0
- package/esm/browser/i18n/ja/common.d.ts +2 -0
- package/esm/browser/i18n/ja/common.js +99 -0
- package/esm/browser/i18n/ja/console.d.ts +2 -0
- package/esm/browser/i18n/ja/console.js +230 -0
- package/esm/browser/i18n/ja/discover.d.ts +2 -0
- package/esm/browser/i18n/ja/discover.js +117 -0
- package/esm/browser/i18n/ja/service.d.ts +2 -0
- package/esm/browser/i18n/ja/service.js +242 -0
- package/esm/browser/i18n/ja/settings.d.ts +2 -0
- package/esm/browser/i18n/ja/settings.js +213 -0
- package/esm/browser/i18n/ja/tools.d.ts +2 -0
- package/esm/browser/i18n/ja/tools.js +85 -0
- package/esm/browser/i18n/locales.d.ts +1150 -1131
- package/esm/browser/i18n/messages-ja.js +20 -1567
- package/esm/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/esm/browser/i18n/messages-zh-tw.js +20 -1568
- package/esm/browser/i18n/messages.d.ts +1153 -1131
- package/esm/browser/i18n/messages.js +44 -3145
- package/esm/browser/i18n/zh/account.d.ts +2 -0
- package/esm/browser/i18n/zh/account.js +203 -0
- package/esm/browser/i18n/zh/assistant.d.ts +2 -0
- package/esm/browser/i18n/zh/assistant.js +129 -0
- package/esm/browser/i18n/zh/call.d.ts +2 -0
- package/esm/browser/i18n/zh/call.js +86 -0
- package/esm/browser/i18n/zh/chat.d.ts +2 -0
- package/esm/browser/i18n/zh/chat.js +213 -0
- package/esm/browser/i18n/zh/common.d.ts +2 -0
- package/esm/browser/i18n/zh/common.js +99 -0
- package/esm/browser/i18n/zh/console.d.ts +2 -0
- package/esm/browser/i18n/zh/console.js +230 -0
- package/esm/browser/i18n/zh/discover.d.ts +2 -0
- package/esm/browser/i18n/zh/discover.js +117 -0
- package/esm/browser/i18n/zh/service.d.ts +2 -0
- package/esm/browser/i18n/zh/service.js +242 -0
- package/esm/browser/i18n/zh/settings.d.ts +2 -0
- package/esm/browser/i18n/zh/settings.js +213 -0
- package/esm/browser/i18n/zh/tools.d.ts +2 -0
- package/esm/browser/i18n/zh/tools.js +86 -0
- package/esm/browser/i18n/zh-tw/account.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/account.js +202 -0
- package/esm/browser/i18n/zh-tw/assistant.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/assistant.js +129 -0
- package/esm/browser/i18n/zh-tw/call.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/call.js +86 -0
- package/esm/browser/i18n/zh-tw/chat.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +213 -0
- package/esm/browser/i18n/zh-tw/common.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/common.js +99 -0
- package/esm/browser/i18n/zh-tw/console.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/console.js +230 -0
- package/esm/browser/i18n/zh-tw/discover.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/discover.js +117 -0
- package/esm/browser/i18n/zh-tw/service.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/service.js +242 -0
- package/esm/browser/i18n/zh-tw/settings.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/settings.js +213 -0
- package/esm/browser/i18n/zh-tw/tools.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/tools.js +85 -0
- package/esm/browser/markdown/code-renderers.d.ts +2 -0
- package/esm/browser/markdown/code-renderers.js +2 -0
- package/esm/browser/offline/device-values.d.ts +4 -0
- package/esm/browser/offline/device-values.js +10 -0
- package/esm/browser/pwa/page-build.d.ts +15 -0
- package/esm/browser/pwa/page-build.js +45 -0
- package/esm/browser/screen/page-answers.d.ts +2 -1
- package/esm/browser/screen/page-answers.js +7 -4
- package/esm/browser/settings/settings-protocol.d.ts +4 -0
- package/esm/browser/settings/settings-protocol.js +4 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +1 -1
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +17 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +11 -1
- package/esm/browser/style/device.js +1 -0
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +1 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +135 -57
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +0 -7
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +8 -0
- package/esm/browser/style/video-call.d.ts +2 -0
- package/esm/browser/style/video-call.js +63 -0
- package/esm/browser/style.js +2 -0
- package/esm/browser/util/call-transcript.d.ts +16 -0
- package/esm/browser/util/call-transcript.js +110 -0
- package/esm/browser/util/desktop.d.ts +10 -1
- package/esm/browser/util/desktop.js +10 -0
- package/esm/browser/util/image-pull.d.ts +61 -0
- package/esm/browser/util/image-pull.js +88 -0
- package/esm/browser/util/process.d.ts +6 -0
- package/esm/browser/util/process.js +18 -5
- package/esm/browser/util/spoken.d.ts +3 -3
- package/esm/browser/util/spoken.js +4 -4
- package/esm/browser/video-call/call-camera.d.ts +59 -0
- package/esm/browser/video-call/call-camera.js +188 -0
- package/esm/browser/video-call/call-people.d.ts +21 -0
- package/esm/browser/video-call/call-people.js +29 -0
- package/esm/browser/video-call/call-window.d.ts +19 -0
- package/esm/browser/video-call/call-window.js +80 -0
- package/esm/browser/video-call/clip-plan.d.ts +56 -0
- package/esm/browser/video-call/clip-plan.js +76 -0
- package/esm/browser/video-call/face-camera.d.ts +93 -0
- package/esm/browser/video-call/face-camera.js +192 -0
- package/esm/browser/video-call/face-files.d.ts +69 -0
- package/esm/browser/video-call/face-files.js +132 -0
- package/esm/browser/video-call/face-moves.d.ts +68 -0
- package/esm/browser/video-call/face-moves.js +180 -0
- package/esm/browser/video-call/face-stage.d.ts +139 -0
- package/esm/browser/video-call/face-stage.js +219 -0
- package/esm/browser/video-call/mouth-layer.d.ts +81 -0
- package/esm/browser/video-call/mouth-layer.js +241 -0
- package/esm/browser/video-call/video-call-view.d.ts +19 -0
- package/esm/browser/video-call/video-call-view.js +254 -0
- package/esm/browser/video-call/video-face.d.ts +19 -0
- package/esm/browser/video-call/video-face.js +471 -0
- package/esm/browser/workbench-hosts.d.ts +1 -0
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-util.d.ts +5 -0
- package/esm/browser/workbench-util.js +18 -0
- package/esm/browser/workbench.d.ts +14 -0
- package/esm/browser/workbench.js +73 -6
- package/lib/browser/assistant/assistant-role.d.ts +9 -4
- package/lib/browser/assistant/assistant-role.js +17 -5
- package/lib/browser/assistant/assistant-task-util.d.ts +6 -0
- package/lib/browser/assistant/assistant-task-util.js +11 -0
- package/lib/browser/assistant/assistant-thread.js +15 -2
- package/lib/browser/assistant/assistant-view.js +3 -0
- package/lib/browser/assistant/assistant.d.ts +2 -1
- package/lib/browser/assistant/assistant.js +9 -7
- package/lib/browser/assistant/call-conversing.d.ts +46 -0
- package/lib/browser/assistant/call-conversing.js +96 -0
- package/lib/browser/assistant/call-face.d.ts +14 -0
- package/lib/browser/assistant/call-face.js +117 -0
- package/lib/browser/assistant/call-keeper.d.ts +8 -4
- package/lib/browser/assistant/call-keeper.js +32 -11
- package/lib/browser/assistant/call-partnering.d.ts +38 -0
- package/lib/browser/assistant/call-partnering.js +83 -0
- package/lib/browser/assistant/call-scenes.d.ts +27 -0
- package/lib/browser/assistant/call-scenes.js +88 -0
- package/lib/browser/assistant/call-screen.d.ts +3 -0
- package/lib/browser/assistant/call-screen.js +15 -0
- package/lib/browser/assistant/mic-sense.d.ts +32 -0
- package/lib/browser/assistant/mic-sense.js +123 -0
- package/lib/browser/assistant/noise-gate.d.ts +33 -0
- package/lib/browser/assistant/noise-gate.js +71 -0
- package/lib/browser/assistant/pcm-util.d.ts +11 -0
- package/lib/browser/assistant/pcm-util.js +58 -0
- package/lib/browser/assistant/read-aloud.d.ts +2 -1
- package/lib/browser/assistant/realtime-voice-protocol.d.ts +85 -0
- package/lib/browser/assistant/realtime-voice-protocol.js +43 -0
- package/lib/browser/assistant/realtime-voice.d.ts +50 -62
- package/lib/browser/assistant/realtime-voice.js +217 -138
- package/lib/browser/assistant/spoken-timeline.d.ts +28 -0
- package/lib/browser/assistant/spoken-timeline.js +53 -0
- package/lib/browser/assistant/voice-call-bar.d.ts +9 -2
- package/lib/browser/assistant/voice-call-bar.js +81 -30
- package/lib/browser/assistant/voice-call-protocol.d.ts +61 -4
- package/lib/browser/assistant/voice-call.d.ts +16 -23
- package/lib/browser/assistant/voice-call.js +134 -117
- package/lib/browser/assistant/voice-reading.d.ts +84 -0
- package/lib/browser/assistant/voice-reading.js +156 -0
- package/lib/browser/avatar/dino-talk.d.ts +16 -0
- package/lib/browser/avatar/dino-talk.js +37 -0
- package/lib/browser/chat/chat-protocol.d.ts +2 -0
- package/lib/browser/chat/chat-shown.d.ts +3 -1
- package/lib/browser/chat/chat-shown.js +25 -3
- package/lib/browser/chat/chat.d.ts +5 -1
- package/lib/browser/chat/chat.js +32 -16
- package/lib/browser/components/account-menu.d.ts +6 -16
- package/lib/browser/components/account-menu.js +45 -99
- package/lib/browser/components/app-contexts.js +2 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/composer-box-protocol.d.ts +2 -0
- package/lib/browser/components/composer-box.js +20 -1
- package/lib/browser/components/composer-emoji.d.ts +23 -0
- package/lib/browser/components/composer-emoji.js +87 -0
- package/lib/browser/components/conversation-scroll-util.d.ts +8 -1
- package/lib/browser/components/conversation-scroll-util.js +21 -0
- package/lib/browser/components/conversation-scroll.js +10 -11
- package/lib/browser/components/discover-view.d.ts +4 -3
- package/lib/browser/components/discover-view.js +5 -4
- package/lib/browser/components/emoji-panel.d.ts +23 -0
- package/lib/browser/components/emoji-panel.js +90 -0
- package/lib/browser/components/gallery.js +28 -7
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/image-pull.d.ts +65 -0
- package/lib/browser/components/image-pull.js +206 -0
- package/lib/browser/components/kept-call-bar.js +2 -1
- package/lib/browser/components/lightbox.d.ts +1 -1
- package/lib/browser/components/lightbox.js +57 -2
- package/lib/browser/components/markdown.d.ts +8 -1
- package/lib/browser/components/markdown.js +11 -3
- package/lib/browser/components/me-rows.d.ts +25 -0
- package/lib/browser/components/me-rows.js +22 -0
- package/lib/browser/components/me-view.d.ts +2 -1
- package/lib/browser/components/me-view.js +3 -2
- package/lib/browser/components/message-list.js +46 -6
- package/lib/browser/components/message-steps.js +13 -0
- package/lib/browser/components/nav-places.js +1 -1
- package/lib/browser/components/partner-row.js +2 -1
- package/lib/browser/components/relay-services.d.ts +9 -3
- package/lib/browser/components/relay-services.js +71 -33
- package/lib/browser/components/session-view.js +3 -1
- package/lib/browser/components/settings-choices.js +3 -0
- package/lib/browser/components/settings-controls.d.ts +13 -0
- package/lib/browser/components/settings-controls.js +19 -0
- package/lib/browser/components/settings-more.d.ts +1 -1
- package/lib/browser/components/settings-more.js +27 -38
- package/lib/browser/components/settings-parts.d.ts +4 -2
- package/lib/browser/components/settings-parts.js +15 -8
- package/lib/browser/components/settings-view.js +2 -6
- package/lib/browser/components/ta-avatar.d.ts +15 -1
- package/lib/browser/components/ta-avatar.js +38 -5
- package/lib/browser/components/voice-services.js +5 -0
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/device/file-save.d.ts +32 -0
- package/lib/browser/device/file-save.js +83 -0
- package/lib/browser/extension/extension-view.d.ts +2 -0
- package/lib/browser/extension/extension-view.js +3 -1
- package/lib/browser/extension/web-api-call.d.ts +109 -2
- package/lib/browser/extension/web-api-components.d.ts +4 -0
- package/lib/browser/extension/web-api-contributions.d.ts +14 -14
- package/lib/browser/extension/web-api-desktop.d.ts +16 -1
- package/lib/browser/extension/web-api-desktop.js +1 -0
- package/lib/browser/extension/web-api-partners.d.ts +2 -0
- package/lib/browser/extension/web-extension-api.d.ts +8 -10
- package/lib/browser/extension/web-extension-code.d.ts +15 -8
- package/lib/browser/extension/web-extension-code.js +25 -27
- package/lib/browser/extension/web-extension-context.js +4 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +10 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +4 -2
- package/lib/browser/extension/web-extension-run.js +10 -4
- package/lib/browser/extension/web-extensions-running.js +7 -6
- package/lib/browser/extension/web-pages.d.ts +2 -0
- package/lib/browser/extension/web-pages.js +2 -0
- package/lib/browser/i18n/en/account.d.ts +203 -0
- package/lib/browser/i18n/en/account.js +208 -0
- package/lib/browser/i18n/en/assistant.d.ts +130 -0
- package/lib/browser/i18n/en/assistant.js +133 -0
- package/lib/browser/i18n/en/call.d.ts +87 -0
- package/lib/browser/i18n/en/call.js +90 -0
- package/lib/browser/i18n/en/chat.d.ts +214 -0
- package/lib/browser/i18n/en/chat.js +217 -0
- package/lib/browser/i18n/en/common.d.ts +100 -0
- package/lib/browser/i18n/en/common.js +104 -0
- package/lib/browser/i18n/en/console.d.ts +231 -0
- package/lib/browser/i18n/en/console.js +235 -0
- package/lib/browser/i18n/en/discover.d.ts +118 -0
- package/lib/browser/i18n/en/discover.js +122 -0
- package/lib/browser/i18n/en/service.d.ts +243 -0
- package/lib/browser/i18n/en/service.js +248 -0
- package/lib/browser/i18n/en/settings.d.ts +214 -0
- package/lib/browser/i18n/en/settings.js +217 -0
- package/lib/browser/i18n/en/tools.d.ts +86 -0
- package/lib/browser/i18n/en/tools.js +90 -0
- package/lib/browser/i18n/ja/account.d.ts +3 -0
- package/lib/browser/i18n/ja/account.js +205 -0
- package/lib/browser/i18n/ja/assistant.d.ts +3 -0
- package/lib/browser/i18n/ja/assistant.js +132 -0
- package/lib/browser/i18n/ja/call.d.ts +3 -0
- package/lib/browser/i18n/ja/call.js +89 -0
- package/lib/browser/i18n/ja/chat.d.ts +3 -0
- package/lib/browser/i18n/ja/chat.js +216 -0
- package/lib/browser/i18n/ja/common.d.ts +3 -0
- package/lib/browser/i18n/ja/common.js +102 -0
- package/lib/browser/i18n/ja/console.d.ts +3 -0
- package/lib/browser/i18n/ja/console.js +233 -0
- package/lib/browser/i18n/ja/discover.d.ts +3 -0
- package/lib/browser/i18n/ja/discover.js +120 -0
- package/lib/browser/i18n/ja/service.d.ts +3 -0
- package/lib/browser/i18n/ja/service.js +245 -0
- package/lib/browser/i18n/ja/settings.d.ts +3 -0
- package/lib/browser/i18n/ja/settings.js +216 -0
- package/lib/browser/i18n/ja/tools.d.ts +3 -0
- package/lib/browser/i18n/ja/tools.js +88 -0
- package/lib/browser/i18n/locales.d.ts +1150 -1131
- package/lib/browser/i18n/messages-ja.js +20 -1567
- package/lib/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/lib/browser/i18n/messages-zh-tw.js +20 -1568
- package/lib/browser/i18n/messages.d.ts +1153 -1131
- package/lib/browser/i18n/messages.js +44 -3145
- package/lib/browser/i18n/zh/account.d.ts +3 -0
- package/lib/browser/i18n/zh/account.js +206 -0
- package/lib/browser/i18n/zh/assistant.d.ts +3 -0
- package/lib/browser/i18n/zh/assistant.js +132 -0
- package/lib/browser/i18n/zh/call.d.ts +3 -0
- package/lib/browser/i18n/zh/call.js +89 -0
- package/lib/browser/i18n/zh/chat.d.ts +3 -0
- package/lib/browser/i18n/zh/chat.js +216 -0
- package/lib/browser/i18n/zh/common.d.ts +3 -0
- package/lib/browser/i18n/zh/common.js +102 -0
- package/lib/browser/i18n/zh/console.d.ts +3 -0
- package/lib/browser/i18n/zh/console.js +233 -0
- package/lib/browser/i18n/zh/discover.d.ts +3 -0
- package/lib/browser/i18n/zh/discover.js +120 -0
- package/lib/browser/i18n/zh/service.d.ts +3 -0
- package/lib/browser/i18n/zh/service.js +245 -0
- package/lib/browser/i18n/zh/settings.d.ts +3 -0
- package/lib/browser/i18n/zh/settings.js +216 -0
- package/lib/browser/i18n/zh/tools.d.ts +3 -0
- package/lib/browser/i18n/zh/tools.js +89 -0
- package/lib/browser/i18n/zh-tw/account.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/account.js +205 -0
- package/lib/browser/i18n/zh-tw/assistant.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/assistant.js +132 -0
- package/lib/browser/i18n/zh-tw/call.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/call.js +89 -0
- package/lib/browser/i18n/zh-tw/chat.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/chat.js +216 -0
- package/lib/browser/i18n/zh-tw/common.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/common.js +102 -0
- package/lib/browser/i18n/zh-tw/console.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/console.js +233 -0
- package/lib/browser/i18n/zh-tw/discover.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/discover.js +120 -0
- package/lib/browser/i18n/zh-tw/service.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/service.js +245 -0
- package/lib/browser/i18n/zh-tw/settings.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/settings.js +216 -0
- package/lib/browser/i18n/zh-tw/tools.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/tools.js +88 -0
- package/lib/browser/markdown/code-renderers.d.ts +2 -0
- package/lib/browser/markdown/code-renderers.js +3 -1
- package/lib/browser/offline/device-values.d.ts +4 -0
- package/lib/browser/offline/device-values.js +10 -0
- package/lib/browser/pwa/page-build.d.ts +16 -0
- package/lib/browser/pwa/page-build.js +48 -0
- package/lib/browser/screen/page-answers.d.ts +2 -1
- package/lib/browser/screen/page-answers.js +7 -4
- package/lib/browser/settings/settings-protocol.d.ts +4 -0
- package/lib/browser/settings/settings-protocol.js +4 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +1 -1
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +17 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +11 -1
- package/lib/browser/style/device.js +1 -0
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +1 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +135 -57
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +0 -7
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +8 -0
- package/lib/browser/style/video-call.d.ts +3 -0
- package/lib/browser/style/video-call.js +66 -0
- package/lib/browser/style.js +2 -0
- package/lib/browser/util/call-transcript.d.ts +17 -0
- package/lib/browser/util/call-transcript.js +113 -0
- package/lib/browser/util/desktop.d.ts +10 -1
- package/lib/browser/util/desktop.js +10 -0
- package/lib/browser/util/image-pull.d.ts +62 -0
- package/lib/browser/util/image-pull.js +91 -0
- package/lib/browser/util/process.d.ts +6 -0
- package/lib/browser/util/process.js +17 -4
- package/lib/browser/util/spoken.d.ts +3 -3
- package/lib/browser/util/spoken.js +4 -4
- package/lib/browser/video-call/call-camera.d.ts +60 -0
- package/lib/browser/video-call/call-camera.js +192 -0
- package/lib/browser/video-call/call-people.d.ts +22 -0
- package/lib/browser/video-call/call-people.js +32 -0
- package/lib/browser/video-call/call-window.d.ts +20 -0
- package/lib/browser/video-call/call-window.js +83 -0
- package/lib/browser/video-call/clip-plan.d.ts +57 -0
- package/lib/browser/video-call/clip-plan.js +80 -0
- package/lib/browser/video-call/face-camera.d.ts +94 -0
- package/lib/browser/video-call/face-camera.js +197 -0
- package/lib/browser/video-call/face-files.d.ts +70 -0
- package/lib/browser/video-call/face-files.js +137 -0
- package/lib/browser/video-call/face-moves.d.ts +69 -0
- package/lib/browser/video-call/face-moves.js +184 -0
- package/lib/browser/video-call/face-stage.d.ts +140 -0
- package/lib/browser/video-call/face-stage.js +223 -0
- package/lib/browser/video-call/mouth-layer.d.ts +82 -0
- package/lib/browser/video-call/mouth-layer.js +245 -0
- package/lib/browser/video-call/video-call-view.d.ts +20 -0
- package/lib/browser/video-call/video-call-view.js +290 -0
- package/lib/browser/video-call/video-face.d.ts +20 -0
- package/lib/browser/video-call/video-face.js +507 -0
- package/lib/browser/workbench-hosts.d.ts +1 -0
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-util.d.ts +5 -0
- package/lib/browser/workbench-util.js +18 -0
- package/lib/browser/workbench.d.ts +14 -0
- package/lib/browser/workbench.js +71 -4
- package/package.json +7 -7
- package/public/faces/README.md +40 -0
- package/public/faces/blonde/clap.mp4 +0 -0
- package/public/faces/blonde/dance.mp4 +0 -0
- package/public/faces/blonde/face.jpg +0 -0
- package/public/faces/blonde/happy.mp4 +0 -0
- package/public/faces/blonde/heart.mp4 +0 -0
- package/public/faces/blonde/idle-1.mp4 +0 -0
- package/public/faces/blonde/idle-2.mp4 +0 -0
- package/public/faces/blonde/idle-3.mp4 +0 -0
- package/public/faces/blonde/laugh.mp4 +0 -0
- package/public/faces/blonde/listening.mp4 +0 -0
- package/public/faces/blonde/poster.jpg +0 -0
- package/public/faces/blonde/shy.mp4 +0 -0
- package/public/faces/blonde/sorry.mp4 +0 -0
- package/public/faces/blonde/stretch.mp4 +0 -0
- package/public/faces/blonde/surprised.mp4 +0 -0
- package/public/faces/blonde/talk-1.mp4 +0 -0
- package/public/faces/blonde/talk-2.mp4 +0 -0
- package/public/faces/blonde/think-2.mp4 +0 -0
- package/public/faces/blonde/thinking.mp4 +0 -0
- package/public/faces/blonde/wave.mp4 +0 -0
- package/public/faces/clap.mp4 +0 -0
- package/public/faces/dance.mp4 +0 -0
- package/public/faces/face.jpg +0 -0
- package/public/faces/framing.json +1 -0
- package/public/faces/happy.mp4 +0 -0
- package/public/faces/heart.mp4 +0 -0
- package/public/faces/idle-1.mp4 +0 -0
- package/public/faces/idle-2.mp4 +0 -0
- package/public/faces/idle-3.mp4 +0 -0
- package/public/faces/laugh.mp4 +0 -0
- package/public/faces/lips.json +1 -0
- package/public/faces/listening.mp4 +0 -0
- package/public/faces/poster.jpg +0 -0
- package/public/faces/shy.mp4 +0 -0
- package/public/faces/sorry.mp4 +0 -0
- package/public/faces/stretch.mp4 +0 -0
- package/public/faces/surprised.mp4 +0 -0
- package/public/faces/talk-1.mp4 +0 -0
- package/public/faces/talk-2.mp4 +0 -0
- package/public/faces/think-2.mp4 +0 -0
- package/public/faces/thinking.mp4 +0 -0
- package/public/faces/wave.mp4 +0 -0
|
@@ -2,6 +2,16 @@ import * as React from 'react';
|
|
|
2
2
|
import { type Mood } from '../avatar/dino-avatar.js';
|
|
3
3
|
import { type Gait } from '../avatar/dino-motion.js';
|
|
4
4
|
import { type SpeciesId } from '../avatar/dino-species.js';
|
|
5
|
+
/**
|
|
6
|
+
* What moves a close-up in a call (the face of a call): the mouth by the sound that plays while it speaks, a nod as the
|
|
7
|
+
* user's words come.
|
|
8
|
+
*/
|
|
9
|
+
export interface DinoTalk {
|
|
10
|
+
/** How loud what plays now is (RMS, 0 to 1); undefined when nothing tells, and the mouth moves by itself. */
|
|
11
|
+
level?(): number | undefined;
|
|
12
|
+
/** Changes as the user's words come: it nods (once in a while). */
|
|
13
|
+
nods?: number;
|
|
14
|
+
}
|
|
5
15
|
/** The kind of dinosaur ta is and how it walks, as the user picked them for the double; the logo walking until then. */
|
|
6
16
|
export interface DinoLook {
|
|
7
17
|
species: SpeciesId;
|
|
@@ -26,9 +36,13 @@ export declare function TaAvatar({ mood, size, mark, className, roam, species, g
|
|
|
26
36
|
* A close-up of ta's head in a round frame tinted with its color, sweet rather than fierce: the figure of the
|
|
27
37
|
* account. It tilts its head, blinks, follows the pointer with its eyes, and laughs when poked.
|
|
28
38
|
*/
|
|
29
|
-
export declare function DinoFace({ mood, size, species, className }: {
|
|
39
|
+
export declare function DinoFace({ mood, size, species, className, talk, fill, }: {
|
|
30
40
|
mood?: Mood;
|
|
31
41
|
size?: number;
|
|
32
42
|
species?: SpeciesId;
|
|
33
43
|
className?: string;
|
|
44
|
+
/** In a call: its mouth moves by the sound it plays, it nods to the words it hears. */
|
|
45
|
+
talk?: DinoTalk;
|
|
46
|
+
/** As large as its box, which the styles size; `size` says how large it is drawn at most. */
|
|
47
|
+
fill?: boolean;
|
|
34
48
|
}): React.JSX.Element;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { AVATAR_VIEWBOX, DinoAvatar, frame, headAt } from '../avatar/dino-avatar.js';
|
|
3
3
|
import { DinoMotion, POKE } from '../avatar/dino-motion.js';
|
|
4
4
|
import { DinoSpecies } from '../avatar/dino-species.js';
|
|
5
|
+
import { DinoTalkMotion } from '../avatar/dino-talk.js';
|
|
5
6
|
import { ScrollRest } from '../util/scroll-rest.js';
|
|
6
7
|
let next = 0;
|
|
7
8
|
/** How long a change of mood takes to blend into the new motion, in seconds. */
|
|
@@ -14,6 +15,8 @@ const FINE = 48;
|
|
|
14
15
|
const BOX_MS = 200;
|
|
15
16
|
/** The whole dinosaur's viewBox: its left and top edge, and its width. */
|
|
16
17
|
const WHOLE = [-8, -8, 272];
|
|
18
|
+
/** How long after a nod a close-up nods again, however often the words it hears come, in seconds. */
|
|
19
|
+
const NOD_GAP = 1.4;
|
|
17
20
|
export const DinoLook = React.createContext({ species: DinoSpecies.DEFAULT, gait: 'walk' });
|
|
18
21
|
/** One loop of animation frames for every ta on the page; only those on screen move, and none when motion is reduced. */
|
|
19
22
|
const players = new Set();
|
|
@@ -78,6 +81,9 @@ function draw(player, now) {
|
|
|
78
81
|
player.last = now;
|
|
79
82
|
const since = (now - player.poked) / 1000;
|
|
80
83
|
// A close-up only tilts its head toward the pointer, and laughs when poked; the whole dinosaur roars.
|
|
84
|
+
if (player.face && player.talk) {
|
|
85
|
+
pose = talking(player, pose, now, dt);
|
|
86
|
+
}
|
|
81
87
|
pose = player.face
|
|
82
88
|
? DinoMotion.tickle(DinoMotion.look(pose, { ...look, weight: look.weight * 0.5 }), since)
|
|
83
89
|
: DinoMotion.poke(DinoMotion.look(pose, look), since);
|
|
@@ -128,6 +134,27 @@ function draw(player, now) {
|
|
|
128
134
|
svg.classList.toggle('ta-dino-poked', since >= 0 && since < POKE);
|
|
129
135
|
}
|
|
130
136
|
}
|
|
137
|
+
/** A close-up in a call: its mouth by the sound it plays as it speaks, a nod to the words it hears. */
|
|
138
|
+
function talking(player, pose, now, dt) {
|
|
139
|
+
var _a;
|
|
140
|
+
const talk = player.talk;
|
|
141
|
+
const level = player.mood === 'speaking' ? (_a = talk === null || talk === void 0 ? void 0 : talk.level) === null || _a === void 0 ? void 0 : _a.call(talk) : undefined;
|
|
142
|
+
let posed = pose;
|
|
143
|
+
if (level !== undefined) {
|
|
144
|
+
player.open = DinoTalkMotion.mouth(player.open, level, dt);
|
|
145
|
+
posed = DinoTalkMotion.speak(posed, player.open);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
player.open = 0;
|
|
149
|
+
}
|
|
150
|
+
if ((talk === null || talk === void 0 ? void 0 : talk.nods) !== player.nods) {
|
|
151
|
+
player.nods = talk === null || talk === void 0 ? void 0 : talk.nods;
|
|
152
|
+
if (player.mood === 'listening' && (now - player.nodded) / 1000 >= NOD_GAP) {
|
|
153
|
+
player.nodded = now;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return DinoTalkMotion.nod(posed, (now - player.nodded) / 1000);
|
|
157
|
+
}
|
|
131
158
|
function tick(now) {
|
|
132
159
|
loop = 0;
|
|
133
160
|
if (document.documentElement.hasAttribute('data-reduce-motion')) {
|
|
@@ -195,7 +222,7 @@ function start(player) {
|
|
|
195
222
|
};
|
|
196
223
|
}
|
|
197
224
|
/** Plays the drawing in `svg`: its markup (which changes with the mood and the kind only) and the frames that move what is in it. */
|
|
198
|
-
function usePlayer(svg, { mood, size, roam, species, gait, face }) {
|
|
225
|
+
function usePlayer(svg, { mood, size, roam, species, gait, face, talk }) {
|
|
199
226
|
const id = React.useMemo(() => `ta-${++next}`, []);
|
|
200
227
|
const player = React.useRef(undefined);
|
|
201
228
|
const detail = size >= FINE;
|
|
@@ -217,6 +244,7 @@ function usePlayer(svg, { mood, size, roam, species, gait, face }) {
|
|
|
217
244
|
const view = face ? species.face : WHOLE;
|
|
218
245
|
if (current) {
|
|
219
246
|
current.svg = element;
|
|
247
|
+
current.talk = talk;
|
|
220
248
|
current.fine = size >= FINE;
|
|
221
249
|
current.view = view;
|
|
222
250
|
if (current.species !== species) {
|
|
@@ -249,10 +277,14 @@ function usePlayer(svg, { mood, size, roam, species, gait, face }) {
|
|
|
249
277
|
look: { x: 0, y: 0, weight: 0 },
|
|
250
278
|
last: now,
|
|
251
279
|
poked: -Infinity,
|
|
280
|
+
talk,
|
|
281
|
+
open: 0,
|
|
282
|
+
nods: talk === null || talk === void 0 ? void 0 : talk.nods,
|
|
283
|
+
nodded: -Infinity,
|
|
252
284
|
boxedAt: -Infinity,
|
|
253
285
|
parts: new Map(),
|
|
254
286
|
};
|
|
255
|
-
}, [mood, roam, size, species, gait, face]);
|
|
287
|
+
}, [mood, roam, size, species, gait, face, talk]);
|
|
256
288
|
React.useEffect(() => {
|
|
257
289
|
const current = player.current;
|
|
258
290
|
return current ? start(current) : undefined;
|
|
@@ -284,12 +316,13 @@ export function TaAvatar({ mood = 'idle', size = 40, mark, className = '', roam
|
|
|
284
316
|
* A close-up of ta's head in a round frame tinted with its color, sweet rather than fierce: the figure of the
|
|
285
317
|
* account. It tilts its head, blinks, follows the pointer with its eyes, and laughs when poked.
|
|
286
318
|
*/
|
|
287
|
-
export function DinoFace({ mood = 'idle', size = 32, species, className = '' }) {
|
|
319
|
+
export function DinoFace({ mood = 'idle', size = 32, species, className = '', talk, fill = false, }) {
|
|
288
320
|
const look = React.useContext(DinoLook);
|
|
289
321
|
const kind = DinoSpecies.of(species !== null && species !== void 0 ? species : look.species);
|
|
290
322
|
const svgRef = React.useRef(null);
|
|
291
|
-
const markup = usePlayer(svgRef, { mood, size, roam: false, species: kind, gait: look.gait, face: true });
|
|
292
|
-
|
|
323
|
+
const markup = usePlayer(svgRef, { mood, size, roam: false, species: kind, gait: look.gait, face: true, talk });
|
|
324
|
+
const box = fill ? {} : { width: size, height: size };
|
|
325
|
+
return (React.createElement("span", { className: `ta-dino-face ${className}`, style: { ...box, ['--ta-dino']: kind.colors.skin } },
|
|
293
326
|
React.createElement("svg", { ref: svgRef, className: `ta-avatar ta-avatar-${mood}`, width: size, height: size, viewBox: DinoAvatar.faceBox(kind), "aria-hidden": "true",
|
|
294
327
|
// biome-ignore lint/security/noDangerouslySetInnerHtml: markup made here from constants, nothing from outside
|
|
295
328
|
dangerouslySetInnerHTML: { __html: markup } })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TaBargeIn, TaPackageTextUtil } from '@celljs/ta-protocol';
|
|
2
|
-
import { AudioLines, Check, FileJson, Hand, Pencil, Plus, ShieldCheck, Smartphone, Trash2 } from 'lucide-react';
|
|
2
|
+
import { AudioLines, BrainCircuit, Check, FileJson, Hand, Pencil, Plus, ShieldCheck, Smartphone, Trash2 } from 'lucide-react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useNotices, useWorkbench } from '../hooks.js';
|
|
5
5
|
import { useLanguage, useT } from '../i18n/use-t.js';
|
|
@@ -11,6 +11,7 @@ import { Row, Switch } from './settings-controls.js';
|
|
|
11
11
|
* to use it; the types packages registered, each with a form to add one. Keys are typed here and never shown again.
|
|
12
12
|
*/
|
|
13
13
|
export function VoiceServices() {
|
|
14
|
+
var _a;
|
|
14
15
|
const t = useT();
|
|
15
16
|
const language = useLanguage();
|
|
16
17
|
const [workbench, bench] = useWorkbench();
|
|
@@ -42,6 +43,8 @@ export function VoiceServices() {
|
|
|
42
43
|
}
|
|
43
44
|
const title = (type, fallback) => (type && TaPackageTextUtil.pick(type.title, language)) || fallback;
|
|
44
45
|
const typeOf = (name) => voices.types.find(type => type.type === name);
|
|
46
|
+
const inUse = voices.services.find(service => service.id === voices.use);
|
|
47
|
+
const thinks = !!inUse && !!((_a = typeOf(inUse.type)) === null || _a === void 0 ? void 0 : _a.thinks);
|
|
45
48
|
const chosen = (id) => voices.use === id ? (React.createElement(Icon, { icon: Check, size: 18, className: "ta-setting-check" })) : (React.createElement("button", { type: "button", className: "ta-button", disabled: busy !== undefined, onClick: () => void run('use', () => bench.voice.chooseVoice(id !== null && id !== void 0 ? id : null)) }, t('ta.voices.use')));
|
|
46
49
|
return (React.createElement(React.Fragment, null,
|
|
47
50
|
React.createElement(Row, { icon: Smartphone, label: t('ta.voices.device'), description: t('ta.voices.deviceHint') }, chosen(undefined)),
|
|
@@ -61,6 +64,8 @@ export function VoiceServices() {
|
|
|
61
64
|
await read();
|
|
62
65
|
} })))));
|
|
63
66
|
}),
|
|
67
|
+
thinks && (React.createElement(Row, { icon: BrainCircuit, label: t('ta.voices.brain'), description: t('ta.voices.brainHint') },
|
|
68
|
+
React.createElement(Switch, { checked: voices.brain === 'service', label: t('ta.voices.brain'), onChange: on => run('brain', () => bench.voice.setBrain(on ? 'service' : 'ta')) }))),
|
|
64
69
|
voices.use && (React.createElement(Row, { icon: Hand, label: t('ta.voices.cutIn'), description: t('ta.voices.cutInHint') },
|
|
65
70
|
React.createElement(Switch, { checked: !voices.bargeIn.tap, label: t('ta.voices.cutIn'), onChange: on => run('bargeIn', () => bench.voice.setBargeIn({ tap: !on })) }))),
|
|
66
71
|
voices.use && !voices.bargeIn.tap && (React.createElement(BargeInRow, { bargeIn: voices.bargeIn, onChange: bargeIn => void run('bargeIn', () => bench.voice.setBargeIn(bargeIn)) })),
|
|
@@ -19,4 +19,4 @@ export interface WebComposerHostProps extends WebComposerProps {
|
|
|
19
19
|
* The message box as web extensions get it (`pi.ui.Composer`): text, and pictures when it takes them (shrunk within
|
|
20
20
|
* the limits given), `@` for the names they give; a failure is a notice of the page.
|
|
21
21
|
*/
|
|
22
|
-
export declare function WebComposer({ notices, placeholder, onSend, images, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }: WebComposerHostProps): React.JSX.Element;
|
|
22
|
+
export declare function WebComposer({ notices, placeholder, onSend, images, emoji, autoFocus, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }: WebComposerHostProps): React.JSX.Element;
|
|
@@ -10,7 +10,7 @@ import { DirectoryButton } from './folder-picker.js';
|
|
|
10
10
|
* The message box as web extensions get it (`pi.ui.Composer`): text, and pictures when it takes them (shrunk within
|
|
11
11
|
* the limits given), `@` for the names they give; a failure is a notice of the page.
|
|
12
12
|
*/
|
|
13
|
-
export function WebComposer({ notices, placeholder, onSend, images, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }) {
|
|
13
|
+
export function WebComposer({ notices, placeholder, onSend, images, emoji, autoFocus, mentions, mentionLabel, actions, cwd, onPickCwd, commands, working, onStop, voiceSends, onTalkSent, onListening, after, draft, server, listDirectory, serverCwd, remote, }) {
|
|
14
14
|
const t = useT();
|
|
15
15
|
const language = useLanguage();
|
|
16
16
|
const [query, setQuery] = React.useState();
|
|
@@ -19,7 +19,7 @@ export function WebComposer({ notices, placeholder, onSend, images, mentions, me
|
|
|
19
19
|
return (React.createElement(ComposerBox, { placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : t('ta.composer.label'), onSend: async (text, attached) => {
|
|
20
20
|
const limits = typeof images === 'object' ? images : undefined;
|
|
21
21
|
await onSend(text, limits ? await Promise.all(attached.map(image => ImageShrink.shrink(image, limits))) : attached);
|
|
22
|
-
}, images: !!images, commands: listed, onMentionQuery: mentions ? setQuery : undefined, mentions: mentions && query !== undefined
|
|
22
|
+
}, images: !!images, emoji: emoji, autoFocus: autoFocus, commands: listed, onMentionQuery: mentions ? setQuery : undefined, mentions: mentions && query !== undefined
|
|
23
23
|
? {
|
|
24
24
|
items: ComposerUtil.commands(mentions, query).map(mention => ({
|
|
25
25
|
key: mention.name,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WebFileSaved as FileSaveResult } from '../extension/web-api-desktop.js';
|
|
2
|
+
/** What the page asks the Ta app: TaSave.swift of apps/ta-mobile on iOS, MainActivity.java on Android. */
|
|
3
|
+
export interface FileSaveMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
action: 'begin' | 'chunk' | 'end';
|
|
6
|
+
/** `begin`: the name of the file, its type. */
|
|
7
|
+
name?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
/** `chunk`: the next bytes, in base64. */
|
|
10
|
+
data?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Files kept on a phone as its system keeps them, where a browser's download does nothing (the web view of the Ta
|
|
14
|
+
* app has none): on iOS pictures and videos go to the album, other files to Files where the user picks; on Android
|
|
15
|
+
* everything goes to Downloads. The bytes go to the app in pieces, which it writes to a file of its own before it
|
|
16
|
+
* keeps it. Elsewhere (a browser, Ta Desktop) there is none: the page downloads as browsers do.
|
|
17
|
+
*/
|
|
18
|
+
export declare namespace FileSave {
|
|
19
|
+
const EVENT = "ta-save";
|
|
20
|
+
/** The bytes of one message: a multiple of 3, so that each piece is base64 of its own, without padding inside. */
|
|
21
|
+
const CHUNK_BYTES: number;
|
|
22
|
+
/** Whether the device keeps files itself here: in the Ta app on iOS and Android. */
|
|
23
|
+
function available(): boolean;
|
|
24
|
+
/** Base64 of bytes, a piece at a time: `String.fromCharCode` takes only so many arguments. */
|
|
25
|
+
function base64(bytes: Uint8Array): string;
|
|
26
|
+
/**
|
|
27
|
+
* Keeps `file` on the device as `name`. Not timed out: the user takes the time they need in Files. Rejects when
|
|
28
|
+
* the app could not write or keep it; resolves `cancelled` in a browser.
|
|
29
|
+
*/
|
|
30
|
+
function save(file: Blob, name: string): Promise<FileSaveResult>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Files kept on a phone as its system keeps them, where a browser's download does nothing (the web view of the Ta
|
|
3
|
+
* app has none): on iOS pictures and videos go to the album, other files to Files where the user picks; on Android
|
|
4
|
+
* everything goes to Downloads. The bytes go to the app in pieces, which it writes to a file of its own before it
|
|
5
|
+
* keeps it. Elsewhere (a browser, Ta Desktop) there is none: the page downloads as browsers do.
|
|
6
|
+
*/
|
|
7
|
+
export var FileSave;
|
|
8
|
+
(function (FileSave) {
|
|
9
|
+
FileSave.EVENT = 'ta-save';
|
|
10
|
+
/** The bytes of one message: a multiple of 3, so that each piece is base64 of its own, without padding inside. */
|
|
11
|
+
FileSave.CHUNK_BYTES = 3 * 256 * 1024;
|
|
12
|
+
let next = 0;
|
|
13
|
+
function native() {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const scope = globalThis;
|
|
16
|
+
const ios = (_b = (_a = scope.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.taSave;
|
|
17
|
+
if (ios) {
|
|
18
|
+
return { post: message => ios.postMessage(message) };
|
|
19
|
+
}
|
|
20
|
+
const android = scope.taSaveAndroid;
|
|
21
|
+
return android ? { post: message => android.post(JSON.stringify(message)) } : undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Whether the device keeps files itself here: in the Ta app on iOS and Android. */
|
|
24
|
+
function available() {
|
|
25
|
+
return native() !== undefined;
|
|
26
|
+
}
|
|
27
|
+
FileSave.available = available;
|
|
28
|
+
/** Base64 of bytes, a piece at a time: `String.fromCharCode` takes only so many arguments. */
|
|
29
|
+
function base64(bytes) {
|
|
30
|
+
let text = '';
|
|
31
|
+
for (let start = 0; start < bytes.length; start += 0x8000) {
|
|
32
|
+
text += String.fromCharCode(...bytes.subarray(start, start + 0x8000));
|
|
33
|
+
}
|
|
34
|
+
return btoa(text);
|
|
35
|
+
}
|
|
36
|
+
FileSave.base64 = base64;
|
|
37
|
+
/**
|
|
38
|
+
* Keeps `file` on the device as `name`. Not timed out: the user takes the time they need in Files. Rejects when
|
|
39
|
+
* the app could not write or keep it; resolves `cancelled` in a browser.
|
|
40
|
+
*/
|
|
41
|
+
async function save(file, name) {
|
|
42
|
+
const app = native();
|
|
43
|
+
if (!app) {
|
|
44
|
+
return 'cancelled';
|
|
45
|
+
}
|
|
46
|
+
const id = `s${++next}`;
|
|
47
|
+
let onEvent = () => undefined;
|
|
48
|
+
const answer = new Promise((resolve, reject) => {
|
|
49
|
+
onEvent = (event) => {
|
|
50
|
+
const detail = event.detail;
|
|
51
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.id) !== id) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
globalThis.removeEventListener(FileSave.EVENT, onEvent);
|
|
55
|
+
if (detail.result) {
|
|
56
|
+
resolve(detail.result);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
reject(new Error(detail.error || 'The file could not be saved'));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
globalThis.addEventListener(FileSave.EVENT, onEvent);
|
|
63
|
+
});
|
|
64
|
+
try {
|
|
65
|
+
app.post({ id, action: 'begin', name, type: file.type });
|
|
66
|
+
for (let start = 0; start < file.size; start += FileSave.CHUNK_BYTES) {
|
|
67
|
+
const piece = new Uint8Array(await file.slice(start, start + FileSave.CHUNK_BYTES).arrayBuffer());
|
|
68
|
+
app.post({ id, action: 'chunk', data: base64(piece) });
|
|
69
|
+
}
|
|
70
|
+
app.post({ id, action: 'end' });
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
globalThis.removeEventListener(FileSave.EVENT, onEvent);
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
return answer;
|
|
77
|
+
}
|
|
78
|
+
FileSave.save = save;
|
|
79
|
+
})(FileSave || (FileSave = {}));
|
|
80
|
+
//# sourceMappingURL=file-save.js.map
|
|
@@ -14,6 +14,8 @@ export declare const ChatIcons: React.Context<{
|
|
|
14
14
|
}>;
|
|
15
15
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
16
16
|
export declare const SessionAvatars: React.Context<Record<string, React.ComponentType<import("./web-extension-api.js").WebAvatarProps>>>;
|
|
17
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
18
|
+
export declare const CallGroup: React.Context<string | undefined>;
|
|
17
19
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
18
20
|
export declare const SessionMenus: React.Context<import("./web-api-menus.js").WebSessionMenu[]>;
|
|
19
21
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
@@ -12,6 +12,8 @@ export const ToolRenderers = React.createContext([]);
|
|
|
12
12
|
export const ChatIcons = React.createContext({ entries: [], version: 0 });
|
|
13
13
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
14
14
|
export const SessionAvatars = React.createContext({});
|
|
15
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
16
|
+
export const CallGroup = React.createContext(undefined);
|
|
15
17
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
16
18
|
export const SessionMenus = React.createContext([]);
|
|
17
19
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ImageContent, TaCallScene, TaVoiceBrainRef } from '@celljs/ta-protocol';
|
|
1
2
|
/** The conversation a call is with (WebCallPartner.open). */
|
|
2
3
|
export interface WebCallTarget {
|
|
3
4
|
sessionId: string;
|
|
@@ -7,6 +8,15 @@ export interface WebCallTarget {
|
|
|
7
8
|
double: boolean;
|
|
8
9
|
/** The language the user speaks in the call. */
|
|
9
10
|
language: string;
|
|
11
|
+
/** The device the user calls from: what they ask of their screen is done on its page. Newer than some apps. */
|
|
12
|
+
device?: 'phone' | 'tablet' | 'computer';
|
|
13
|
+
/**
|
|
14
|
+
* The model of the voice service answers the call itself (voices.json `brain`): the partner gives it a brain
|
|
15
|
+
* (WebCallSession.brain) rather than answering; `say` then fails, and the call asks the partner again without.
|
|
16
|
+
*/
|
|
17
|
+
voiced?: boolean;
|
|
18
|
+
/** How the call is for the user as it begins (a video call, their camera, how it shows; docs/design/ta-call.md 13). Newer than some apps. */
|
|
19
|
+
scene?: TaCallScene;
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
12
22
|
* Who answers in a call in place of the conversation (WebExtensionAPI.registerCallPartner): a front that talks at
|
|
@@ -18,20 +28,30 @@ export interface WebCallPartner {
|
|
|
18
28
|
}
|
|
19
29
|
/** A call as its partner answers it, from when it starts until it ends. */
|
|
20
30
|
export interface WebCallSession {
|
|
21
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* What the user said; the reply to say. `sent`: it went to the conversation already, as it began the call.
|
|
33
|
+
* `images`: in a video call, what their camera sees now, when it changed (docs/design/ta-call.md 12).
|
|
34
|
+
*/
|
|
22
35
|
say(text: string, options?: {
|
|
23
36
|
sent?: boolean;
|
|
37
|
+
images?: ImageContent[];
|
|
24
38
|
}): Promise<string | undefined>;
|
|
25
39
|
/**
|
|
26
40
|
* What the user said so far, as they paused where they may be done: the partner answers it at once, to be said only
|
|
27
41
|
* if they were done (`keep`), dropped as they say more (`drop`), doing nothing until kept (docs/design/ta-call.md
|
|
28
42
|
* 10). Newer than some partners.
|
|
29
43
|
*/
|
|
30
|
-
draft?(text: string
|
|
44
|
+
draft?(text: string, options?: {
|
|
45
|
+
images?: ImageContent[];
|
|
46
|
+
}): WebCallDraft;
|
|
31
47
|
/** Whether the partner ended the call (asked to hang up): it ends once its last reply is said. */
|
|
32
48
|
ending?(): boolean;
|
|
33
49
|
/** What the partner says by itself (news of the work), asked again and again in a call; undefined after a while. */
|
|
34
50
|
next?(): Promise<string | undefined>;
|
|
51
|
+
/** Of a call `voiced`: the brain the voice service answers with (TaVoiceServer.openVoice). */
|
|
52
|
+
brain?: TaVoiceBrainRef;
|
|
53
|
+
/** How the call is for the user now, told as it changes (video or voice, the camera, how it shows). Newer than some partners. */
|
|
54
|
+
scene?(scene: TaCallScene): void;
|
|
35
55
|
close(): void;
|
|
36
56
|
}
|
|
37
57
|
/** An answer begun before the user was known to be done (WebCallSession.draft). */
|
|
@@ -43,3 +63,90 @@ export interface WebCallDraft {
|
|
|
43
63
|
/** The user said more: it stops and does nothing. */
|
|
44
64
|
drop(): void;
|
|
45
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Draws the mouth of the person of a video call as Ta speaks (WebExtensionAPI.registerCallMouth, docs/design/ta-call.md
|
|
68
|
+
* 12): told the sound of each reading as it comes and which frame of which clip shows at each moment of it, it gives
|
|
69
|
+
* the lower half of her face for those frames, drawn again for that sound, to lay over them as they show.
|
|
70
|
+
*/
|
|
71
|
+
export interface WebCallMouth {
|
|
72
|
+
/** For a video call that begins; undefined when it cannot draw now (not set up, or the page too far from it). */
|
|
73
|
+
open(): Promise<WebMouthSession | undefined>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Moves of the person of a video call an extension adds to Ta's own (WebExtensionAPI.registerCallMoves, docs/design/ta-call.md
|
|
77
|
+
* 16): clips the user made or filmed. They play as Ta's own do, through the same transitions; one named as a move of Ta's
|
|
78
|
+
* own, or of the same state, comes first, and Ta's own plays in its place when its clip cannot.
|
|
79
|
+
*/
|
|
80
|
+
export interface WebCallMoves {
|
|
81
|
+
/** The moves as a video call begins. */
|
|
82
|
+
moves(): Promise<WebCallMove[]>;
|
|
83
|
+
/** A move could not play (its clip did not load or decode): Ta's own plays in its place; the extension says why where the user manages them. */
|
|
84
|
+
failed?(name: string, reason: string): void;
|
|
85
|
+
}
|
|
86
|
+
/** A move a clip shows (WebCallMoves). */
|
|
87
|
+
export interface WebCallMove {
|
|
88
|
+
/** Its name: a move of Ta's own of that name (wave, nod…) gives way to it. */
|
|
89
|
+
name: string;
|
|
90
|
+
/** What the user calls it, in the list of what she can do. */
|
|
91
|
+
title?: string;
|
|
92
|
+
/**
|
|
93
|
+
* A loop of a state (listening, thinking, speaking: played at random while the call is so, before Ta's own); `say`:
|
|
94
|
+
* once, as she says one of its words; `after`: once she said it, as she listens (she may stand up).
|
|
95
|
+
*/
|
|
96
|
+
kind: 'listening' | 'thinking' | 'speaking' | 'say' | 'after';
|
|
97
|
+
/** The words that bring it (`say`, `after`), as she says them. */
|
|
98
|
+
words?: string[];
|
|
99
|
+
/** Its clip, a URL the page plays (a `blob:`): 24 frames a second, beginning and ending as she sits. */
|
|
100
|
+
url: string;
|
|
101
|
+
frames: number;
|
|
102
|
+
/** Of a clip she stands up in: where her seated picture is (x, y, width, height) and the box of her body `fps` times a second. */
|
|
103
|
+
framing?: {
|
|
104
|
+
rest: number[];
|
|
105
|
+
body: number[][];
|
|
106
|
+
fps: number;
|
|
107
|
+
};
|
|
108
|
+
/** Where her face is in each frame (x1, y1, x2, y2), for her mouth. */
|
|
109
|
+
boxes?: number[][];
|
|
110
|
+
}
|
|
111
|
+
/** The frame of a clip that shows at a moment of a reading: its name (faces/<clip>.mp4) and its frame. */
|
|
112
|
+
export type WebMouthSlot = [clip: string, frame: number];
|
|
113
|
+
/** A part of a frame drawn again: where it goes in the frame (pixels of the clip), soft at its edges. */
|
|
114
|
+
export interface WebMouthFrame {
|
|
115
|
+
clip: string;
|
|
116
|
+
frame: number;
|
|
117
|
+
box: [x: number, y: number, width: number, height: number];
|
|
118
|
+
image: CanvasImageSource;
|
|
119
|
+
}
|
|
120
|
+
/** The mouth of one video call (WebCallMouth.open), until it ends. */
|
|
121
|
+
export interface WebMouthSession {
|
|
122
|
+
/** How long a reading waits before it plays, in ms, so that its first frames are drawn as it begins. */
|
|
123
|
+
readonly holdMs: number;
|
|
124
|
+
/** Frames a moment of a reading has, a second: the slots are of each 1/fps of its sound. */
|
|
125
|
+
readonly fps: number;
|
|
126
|
+
/**
|
|
127
|
+
* While it starts (its models load): about how long until it draws, in ms, which a reading that begins meanwhile
|
|
128
|
+
* waits more, so that its mouth moves from its first word; 0 or undefined once it draws.
|
|
129
|
+
*/
|
|
130
|
+
readyIn?(): number;
|
|
131
|
+
/**
|
|
132
|
+
* More sound of the reading `say` (PCM16 mono at `rate`) and the slots it covers, in order from its start, the first
|
|
133
|
+
* of them its slot `first`; `pcm` undefined once all of it came.
|
|
134
|
+
*/
|
|
135
|
+
sound(say: number, pcm: Uint8Array | undefined, rate: number, slots: WebMouthSlot[], first: number): void;
|
|
136
|
+
/** The reading shows its slot `slot` now: those before it need not be drawn any more. */
|
|
137
|
+
at(say: number, slot: number): void;
|
|
138
|
+
/** The reading stopped (the user cut in, the call ended). */
|
|
139
|
+
cut(say: number): void;
|
|
140
|
+
/** The drawn part of a slot, once it came; undefined until then (the clip shows as it is). */
|
|
141
|
+
frame(say: number, slot: number): WebMouthFrame | undefined;
|
|
142
|
+
close(): void;
|
|
143
|
+
}
|
|
144
|
+
/** What an extension adds to calls (WebExtensionAPI). */
|
|
145
|
+
export interface WebCallsAPI {
|
|
146
|
+
/** Answers in calls in place of the conversation called (the first registered). Newer than some Ta apps: `pi.registerCallPartner?.(…)`. */
|
|
147
|
+
registerCallPartner(partner: WebCallPartner): void;
|
|
148
|
+
/** Draws the mouth of the person of video calls as Ta speaks (the first registered). Newer than some Ta apps. */
|
|
149
|
+
registerCallMouth(mouth: WebCallMouth): void;
|
|
150
|
+
/** Adds moves to the person of video calls (all registered, before Ta's own). Newer than some Ta apps: `pi.registerCallMoves?.(…)`. */
|
|
151
|
+
registerCallMoves(moves: WebCallMoves): void;
|
|
152
|
+
}
|
|
@@ -321,6 +321,10 @@ export interface WebComposerProps {
|
|
|
321
321
|
* Newer than some Ta apps, which take none.
|
|
322
322
|
*/
|
|
323
323
|
images?: boolean | WebComposerImageLimits;
|
|
324
|
+
/** An emoji button on the right of the field, as WeChat's: on a phone its panel takes the place of the keyboard. Newer than some Ta apps. */
|
|
325
|
+
emoji?: boolean;
|
|
326
|
+
/** The field takes the focus as the box shows (the keyboard comes up on a phone), as a box opened to comment. Newer than some Ta apps. */
|
|
327
|
+
autoFocus?: boolean;
|
|
324
328
|
/** What `@` lists, by name; and the + menu entry that starts an `@`. */
|
|
325
329
|
mentions?: {
|
|
326
330
|
name: string;
|
|
@@ -19,11 +19,12 @@ export interface WebConversation {
|
|
|
19
19
|
title?: string;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* The groups of the settings, by what the user looks for
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* The groups of the settings, by what the user looks for (docs/design/ta-places.md): `general` (how Ta looks), `chats`
|
|
23
|
+
* (the list, notices, who answers others, what is kept), `ta` (models, the double, coding agents), `initiative` (what
|
|
24
|
+
* Ta does by itself), `voice` (speech, calls), `devices` (devices, other computers, the network), `privacy` (secrets,
|
|
25
|
+
* who may come in), `extensions` (what was added to Ta). Older Ta apps leave out a section of a group they do not know.
|
|
25
26
|
*/
|
|
26
|
-
export type WebSettingsGroup = 'general' | 'ta' | 'devices' | 'privacy' | 'extensions';
|
|
27
|
+
export type WebSettingsGroup = 'general' | 'chats' | 'ta' | 'initiative' | 'voice' | 'devices' | 'privacy' | 'extensions';
|
|
27
28
|
/** A section an extension adds to the settings (WebExtensionAPI.registerSettings). */
|
|
28
29
|
export interface WebSettingsSection {
|
|
29
30
|
title: WebLabel;
|
|
@@ -31,6 +32,8 @@ export interface WebSettingsSection {
|
|
|
31
32
|
icon?: WebIcon;
|
|
32
33
|
/** The group it is listed in, after Ta's own sections there; default `extensions`. Newer than some Ta apps. */
|
|
33
34
|
group?: WebSettingsGroup;
|
|
35
|
+
/** Smaller first among those of extensions in its group, then as registered; default 100 (negative: before Ta's). */
|
|
36
|
+
order?: number;
|
|
34
37
|
rows: WebSettingRow[];
|
|
35
38
|
/**
|
|
36
39
|
* Models without signing in to a service (coding agents to install): the first page, which asks to sign in, shows the
|
|
@@ -129,16 +132,12 @@ export interface WidgetOptions {
|
|
|
129
132
|
*/
|
|
130
133
|
export type WebViewLocation = 'page' | 'sidebar' | 'panel' | 'launcher' | 'board';
|
|
131
134
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Where a page is listed: a group of Discover (`people`, `work`, `share`, `more`), or `me`, among the entries of Me (the
|
|
138
|
-
* last tab of a phone; the menu of the account elsewhere), for what is the user's own (their feedback), never in the
|
|
139
|
-
* navigation nor under Discover. Older Ta apps list a page of `me` under Discover's `more`.
|
|
135
|
+
* Where a page is listed: a card of Discover (docs/design/ta-places.md), `people` (friends, rooms, who is nearby, what
|
|
136
|
+
* they post), `work` (what Ta does for the user), `share` (what the user shares, who is let in), `tools` (Ta itself and
|
|
137
|
+
* what it reaches), `play` (games, worlds), `more` (the rest); or `me`, among the entries of Me, for what is the
|
|
138
|
+
* user's own (their feedback), never in the navigation nor under Discover. Older Ta apps list the newer under `more`.
|
|
140
139
|
*/
|
|
141
|
-
export type WebPageGroup = 'people' | 'work' | 'share' | 'more' | 'me';
|
|
140
|
+
export type WebPageGroup = 'people' | 'work' | 'share' | 'tools' | 'play' | 'more' | 'me';
|
|
142
141
|
export interface WebView {
|
|
143
142
|
title: WebLabel;
|
|
144
143
|
render: React.ComponentType;
|
|
@@ -502,7 +501,7 @@ export interface WebCodeRendererProps {
|
|
|
502
501
|
closed: boolean;
|
|
503
502
|
/**
|
|
504
503
|
* Sends words as the user to the conversation the block is in (after its turn, if it works): a choice in it
|
|
505
|
-
* answered with a tap. None where no conversation holds the block (`ui.Markdown` of a page). Newer than some
|
|
504
|
+
* answered with a tap. None where no conversation holds the block (`ui.Markdown` of a page given none). Newer than some
|
|
506
505
|
* Ta apps, whose props have no `send`: there `pi.sendUserMessage` reaches the conversation shown.
|
|
507
506
|
*/
|
|
508
507
|
send?: (text: string) => Promise<void>;
|
|
@@ -512,6 +511,7 @@ export interface WebCodeRendererProps {
|
|
|
512
511
|
* some Ta apps.
|
|
513
512
|
*/
|
|
514
513
|
answer?: string;
|
|
514
|
+
embedded?: boolean;
|
|
515
515
|
}
|
|
516
516
|
/** pi's custom message, as the conversation holds it. */
|
|
517
517
|
export interface WebCustomMessage {
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop
|
|
1
|
+
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop and the Ta app add, and files dragged between views. */
|
|
2
|
+
/**
|
|
3
|
+
* Where the Ta app kept a file (`ui.saveFile`): `photos` the album of iOS (pictures and videos), `files` where the
|
|
4
|
+
* user chose in Files (iOS, any other file), `downloads` the Downloads of Android; `cancelled` when the user closed
|
|
5
|
+
* Files, `denied` when Ta may not add to the album (Settings) or write the Downloads (Android 8 and 9, asked then).
|
|
6
|
+
*/
|
|
7
|
+
export type WebFileSaved = 'photos' | 'files' | 'downloads' | 'cancelled' | 'denied';
|
|
8
|
+
/** What a device adds to `ui`. */
|
|
9
|
+
export interface WebDeviceUI {
|
|
10
|
+
/**
|
|
11
|
+
* In the Ta app on a phone, whose web view downloads nothing: keeps a file as the system does (iOS: pictures and
|
|
12
|
+
* videos in the album, other files in Files; Android: Downloads). Undefined elsewhere, where a link with
|
|
13
|
+
* `download` saves it. Newer than some Ta apps.
|
|
14
|
+
*/
|
|
15
|
+
readonly saveFile?: (file: Blob, name: string) => Promise<WebFileSaved>;
|
|
16
|
+
}
|
|
2
17
|
export interface WebDesktop {
|
|
3
18
|
/** Node's `process.platform` of the machine (`darwin`, `win32`, `linux`): what its file manager is called. */
|
|
4
19
|
readonly platform: string;
|
|
@@ -33,6 +33,8 @@ export interface WebPartner {
|
|
|
33
33
|
online?: boolean;
|
|
34
34
|
/** A group chat with friends in it, not of the user's agents alone: a small label after its name. */
|
|
35
35
|
friends?: boolean;
|
|
36
|
+
/** A small label after its name of what it is, over {@link friends}'s: one who came to the user's front desk. Newer than some Ta apps. */
|
|
37
|
+
label?: string;
|
|
36
38
|
/** Where it works (an agent's directory): a remote one is marked by its host. */
|
|
37
39
|
location?: string;
|
|
38
40
|
/** Opens its conversation (or, while not a partner yet, what to answer). A promise keeps the row busy. */
|