@celljs/ta-web 4.16.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -1
- package/README.md +2 -1
- package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +11 -8
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +119 -11
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +33 -8
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +24 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +27 -7
- package/esm/browser/assistant/assistant-task-util.js +84 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +2 -4
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +112 -0
- package/esm/browser/assistant/assistant-view.js +79 -130
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +105 -357
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +56 -0
- package/esm/browser/assistant/chat-task-source.js +82 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +138 -0
- package/esm/browser/assistant/realtime-voice.js +479 -0
- package/esm/browser/assistant/task-views.d.ts +11 -9
- package/esm/browser/assistant/task-views.js +47 -25
- package/esm/browser/assistant/voice-call-bar.d.ts +67 -0
- package/esm/browser/assistant/voice-call-bar.js +316 -0
- package/esm/browser/assistant/voice-call.d.ts +207 -0
- package/esm/browser/assistant/voice-call.js +469 -0
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +7 -9
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +26 -2
- package/esm/browser/components/account-menu.js +4 -2
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +6 -2
- package/esm/browser/components/app-nav.js +15 -12
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +471 -0
- package/esm/browser/components/app-view.js +212 -393
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +57 -10
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +10 -2
- package/esm/browser/components/chat-icon.js +32 -6
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +96 -0
- package/esm/browser/components/chat-list-row.js +208 -0
- package/esm/browser/components/chat-list-util.d.ts +197 -0
- package/esm/browser/components/chat-list-util.js +398 -0
- package/esm/browser/components/chat-list.d.ts +6 -190
- package/esm/browser/components/chat-list.js +340 -545
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +54 -154
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +18 -3
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +3 -35
- package/esm/browser/components/conversation-scroll.js +16 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +59 -15
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +9 -4
- package/esm/browser/components/host-view.js +56 -15
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +12 -115
- package/esm/browser/components/image-viewer.js +74 -368
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +6 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +7 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +7 -1
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +22 -454
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +190 -0
- package/esm/browser/components/message-user.d.ts +63 -0
- package/esm/browser/components/message-user.js +204 -0
- package/esm/browser/components/model-picker.d.ts +4 -2
- package/esm/browser/components/model-picker.js +16 -3
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +17 -11
- package/esm/browser/components/nav-places.js +18 -13
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +5 -4
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +53 -20
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +188 -7
- package/esm/browser/components/settings-choices.d.ts +9 -3
- package/esm/browser/components/settings-choices.js +17 -29
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +35 -250
- package/esm/browser/components/settings-view.js +44 -16
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +12 -5
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +160 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +14 -1
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +74 -6
- package/esm/browser/extension/web-api-contributions.d.ts +139 -39
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +126 -63
- package/esm/browser/extension/web-extension-context.d.ts +9 -9
- package/esm/browser/extension/web-extension-context.js +84 -19
- package/esm/browser/extension/web-extension-protocol.d.ts +26 -3
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -2
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +9 -82
- package/esm/browser/extension/web-extensions.js +22 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +8 -1
- package/esm/browser/extension/web-tasks.js +17 -3
- package/esm/browser/extension/web-view-util.d.ts +2 -2
- package/esm/browser/extension/web-view-util.js +7 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -32
- package/esm/browser/gateway/console-parts.js +58 -218
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +118 -209
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +117 -0
- package/esm/browser/gateway/console-view.js +153 -88
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +280 -13
- package/esm/browser/i18n/messages-ja.js +292 -25
- package/esm/browser/i18n/messages-zh-tw.js +292 -25
- package/esm/browser/i18n/messages.d.ts +277 -10
- package/esm/browser/i18n/messages.js +585 -51
- package/esm/browser/index.d.ts +18 -0
- package/esm/browser/index.js +18 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +185 -0
- package/esm/browser/screen/screen-protocol.js +60 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +53 -0
- package/esm/browser/screen/screen.js +292 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +14 -1
- package/esm/browser/settings/settings-protocol.js +24 -2
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +146 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +12 -1
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +150 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +66 -12
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +162 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +8 -540
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +172 -110
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +13 -3
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +24 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +59 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +29 -10
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +37 -5
- package/esm/browser/util/process.js +81 -10
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +29 -0
- package/esm/browser/util/spoken.js +92 -0
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +48 -0
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +31 -3
- package/esm/browser/workbench-services.d.ts +57 -0
- package/esm/browser/workbench-services.js +158 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +9 -89
- package/esm/browser/workbench.js +61 -344
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +11 -8
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +117 -9
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +34 -9
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +25 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +27 -7
- package/lib/browser/assistant/assistant-task-util.js +84 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +3 -5
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +148 -0
- package/lib/browser/assistant/assistant-view.js +76 -127
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +102 -354
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +57 -0
- package/lib/browser/assistant/chat-task-source.js +86 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +139 -0
- package/lib/browser/assistant/realtime-voice.js +483 -0
- package/lib/browser/assistant/task-views.d.ts +11 -9
- package/lib/browser/assistant/task-views.js +47 -24
- package/lib/browser/assistant/voice-call-bar.d.ts +68 -0
- package/lib/browser/assistant/voice-call-bar.js +362 -0
- package/lib/browser/assistant/voice-call.d.ts +208 -0
- package/lib/browser/assistant/voice-call.js +473 -0
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +7 -9
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +26 -2
- package/lib/browser/components/account-menu.js +3 -1
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +6 -2
- package/lib/browser/components/app-nav.js +15 -12
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +507 -0
- package/lib/browser/components/app-view.js +202 -383
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +56 -9
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +10 -2
- package/lib/browser/components/chat-icon.js +32 -6
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +97 -0
- package/lib/browser/components/chat-list-row.js +247 -0
- package/lib/browser/components/chat-list-util.d.ts +198 -0
- package/lib/browser/components/chat-list-util.js +401 -0
- package/lib/browser/components/chat-list.d.ts +6 -190
- package/lib/browser/components/chat-list.js +354 -561
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +56 -157
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +18 -3
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +3 -35
- package/lib/browser/components/conversation-scroll.js +34 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +58 -14
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +9 -4
- package/lib/browser/components/host-view.js +56 -15
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +12 -115
- package/lib/browser/components/image-viewer.js +74 -370
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +6 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +7 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +23 -462
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +226 -0
- package/lib/browser/components/message-user.d.ts +64 -0
- package/lib/browser/components/message-user.js +247 -0
- package/lib/browser/components/model-picker.d.ts +4 -2
- package/lib/browser/components/model-picker.js +16 -3
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +17 -11
- package/lib/browser/components/nav-places.js +20 -14
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +5 -4
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +54 -20
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +188 -7
- package/lib/browser/components/settings-choices.d.ts +10 -4
- package/lib/browser/components/settings-choices.js +16 -28
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +31 -246
- package/lib/browser/components/settings-view.js +44 -16
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +12 -5
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +196 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +13 -0
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +74 -6
- package/lib/browser/extension/web-api-contributions.d.ts +139 -39
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +126 -63
- package/lib/browser/extension/web-extension-context.d.ts +9 -9
- package/lib/browser/extension/web-extension-context.js +86 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +26 -3
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -2
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +9 -82
- package/lib/browser/extension/web-extensions.js +19 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +8 -1
- package/lib/browser/extension/web-tasks.js +17 -3
- package/lib/browser/extension/web-view-util.d.ts +2 -2
- package/lib/browser/extension/web-view-util.js +7 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -32
- package/lib/browser/gateway/console-parts.js +63 -223
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +116 -208
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +153 -0
- package/lib/browser/gateway/console-view.js +151 -86
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +280 -13
- package/lib/browser/i18n/messages-ja.js +292 -25
- package/lib/browser/i18n/messages-zh-tw.js +292 -25
- package/lib/browser/i18n/messages.d.ts +277 -10
- package/lib/browser/i18n/messages.js +585 -51
- package/lib/browser/index.d.ts +18 -0
- package/lib/browser/index.js +18 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +186 -0
- package/lib/browser/screen/screen-protocol.js +63 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +54 -0
- package/lib/browser/screen/screen.js +295 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +14 -1
- package/lib/browser/settings/settings-protocol.js +24 -2
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +182 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +12 -1
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +153 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +66 -12
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +165 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +8 -540
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +172 -110
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +14 -4
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +27 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +59 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +29 -10
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +37 -5
- package/lib/browser/util/process.js +80 -9
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +30 -0
- package/lib/browser/util/spoken.js +95 -0
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +51 -0
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +31 -3
- package/lib/browser/workbench-services.d.ts +58 -0
- package/lib/browser/workbench-services.js +162 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +9 -89
- package/lib/browser/workbench.js +58 -341
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { TaScreen } from '../screen/screen-protocol';
|
|
2
3
|
import type { TaSettings } from '../settings/settings-protocol';
|
|
3
4
|
import type { GameProps } from './game-protocol';
|
|
4
5
|
import type { Game3DProps } from './game3d-protocol';
|
|
5
6
|
/** A game of a web extension on Phaser (`ui.Game`): GameRunner in a GameHost. */
|
|
6
|
-
export declare function GameView({ settings, config, onReady, className, style }: GameProps & {
|
|
7
|
+
export declare function GameView({ settings, screen, config, onReady, title, className, style }: GameProps & {
|
|
7
8
|
settings: TaSettings;
|
|
9
|
+
screen?: TaScreen;
|
|
8
10
|
}): React.JSX.Element;
|
|
9
11
|
/** A 3D game of a web extension on Three.js (`ui.Game3D`): Game3DRunner in a GameHost. */
|
|
10
|
-
export declare function Game3DView({ settings, setup, onReady, className, style }: Game3DProps & {
|
|
12
|
+
export declare function Game3DView({ settings, screen, setup, onReady, title, className, style }: Game3DProps & {
|
|
11
13
|
settings: TaSettings;
|
|
14
|
+
screen?: TaScreen;
|
|
12
15
|
}): React.JSX.Element;
|
|
13
16
|
//# sourceMappingURL=game-view.d.ts.map
|
|
@@ -41,7 +41,7 @@ const game_loader_1 = require("./game-loader");
|
|
|
41
41
|
const game_runner_1 = require("./game-runner");
|
|
42
42
|
const game3d_runner_1 = require("./game3d-runner");
|
|
43
43
|
/** A game of a web extension on Phaser (`ui.Game`): GameRunner in a GameHost. */
|
|
44
|
-
function GameView({ settings, config, onReady, className, style }) {
|
|
44
|
+
function GameView({ settings, screen, config, onReady, title, className, style }) {
|
|
45
45
|
const props = React.useRef({ config, onReady });
|
|
46
46
|
props.current = { config, onReady };
|
|
47
47
|
const start = React.useCallback(async (element, page, fail) => {
|
|
@@ -50,10 +50,10 @@ function GameView({ settings, config, onReady, className, style }) {
|
|
|
50
50
|
runner.game.events.once(engine.Core.Events.READY, () => { var _a, _b; return (_b = (_a = props.current).onReady) === null || _b === void 0 ? void 0 : _b.call(_a, runner.game); });
|
|
51
51
|
return runner;
|
|
52
52
|
}, []);
|
|
53
|
-
return React.createElement(game_host_1.GameHost, { settings: settings, start: start, className: className, style: style });
|
|
53
|
+
return React.createElement(game_host_1.GameHost, { settings: settings, start: start, title: title, screen: screen, className: className, style: style });
|
|
54
54
|
}
|
|
55
55
|
/** A 3D game of a web extension on Three.js (`ui.Game3D`): Game3DRunner in a GameHost. */
|
|
56
|
-
function Game3DView({ settings, setup, onReady, className, style }) {
|
|
56
|
+
function Game3DView({ settings, screen, setup, onReady, title, className, style }) {
|
|
57
57
|
const props = React.useRef({ setup, onReady });
|
|
58
58
|
props.current = { setup, onReady };
|
|
59
59
|
const start = React.useCallback(async (element, page, fail) => {
|
|
@@ -63,6 +63,6 @@ function Game3DView({ settings, setup, onReady, className, style }) {
|
|
|
63
63
|
(_b = (_a = props.current).onReady) === null || _b === void 0 ? void 0 : _b.call(_a, runner.context);
|
|
64
64
|
return runner;
|
|
65
65
|
}, []);
|
|
66
|
-
return React.createElement(game_host_1.GameHost, { settings: settings, start: start, className: className, style: style });
|
|
66
|
+
return React.createElement(game_host_1.GameHost, { settings: settings, start: start, title: title, screen: screen, className: className, style: style });
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=game-view.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ThreeModule from 'three';
|
|
2
|
-
import type { GamePage } from './game-protocol';
|
|
2
|
+
import type { GamePage, GameState } from './game-protocol';
|
|
3
3
|
/** The addons are ES modules only, and this a CommonJS one. */
|
|
4
4
|
type OrbitControlsClass = typeof import('three/addons/controls/OrbitControls.js', { with: { 'resolution-mode': 'import' } }).OrbitControls;
|
|
5
5
|
type GLTFLoaderClass = typeof import('three/addons/loaders/GLTFLoader.js', { with: { 'resolution-mode': 'import' } }).GLTFLoader;
|
|
@@ -46,6 +46,8 @@ export interface Game3DLoop {
|
|
|
46
46
|
resize?(width: number, height: number): void;
|
|
47
47
|
/** The theme, the pointer or the motion changed. */
|
|
48
48
|
page?(page: GamePage): void;
|
|
49
|
+
/** Its score and whether its round is over, read when Ta looks at the screen: what the agent is told of it. */
|
|
50
|
+
state?(): GameState | undefined;
|
|
49
51
|
/** Before the game ends; what is in the scene the page disposes itself. */
|
|
50
52
|
dispose?(): void;
|
|
51
53
|
}
|
|
@@ -54,6 +56,8 @@ export interface Game3DProps {
|
|
|
54
56
|
setup(context: Game3DContext): Game3DLoop | void;
|
|
55
57
|
/** Once set up. */
|
|
56
58
|
onReady?(context: Game3DContext): void;
|
|
59
|
+
/** What Ta calls the game when it tells the agent of the screen; the title of the extension's package without. */
|
|
60
|
+
title?: string;
|
|
57
61
|
className?: string;
|
|
58
62
|
style?: React.CSSProperties;
|
|
59
63
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ThreeModule from 'three';
|
|
2
|
-
import type { GamePage } from './game-protocol';
|
|
2
|
+
import type { GamePage, GameState } from './game-protocol';
|
|
3
3
|
import type { Game3DContext, Game3DEngine, Game3DLoop, Game3DProps } from './game3d-protocol';
|
|
4
4
|
/**
|
|
5
5
|
* One 3D game in an element of the page, from its start to its end: a WebGLRenderer of Three.js drawing into
|
|
@@ -15,6 +15,8 @@ export declare class Game3DRunner {
|
|
|
15
15
|
protected last?: number;
|
|
16
16
|
protected elapsed: number;
|
|
17
17
|
constructor(engine: Game3DEngine, setup: Game3DProps['setup'], element: HTMLElement, page: GamePage, onError?: (error: unknown) => void);
|
|
18
|
+
/** What the game says of its round (Game3DLoop.state); nothing when that throws. */
|
|
19
|
+
state(): GameState | undefined;
|
|
18
20
|
get sleeping(): boolean;
|
|
19
21
|
protected readonly frame: (time: number) => void;
|
|
20
22
|
setPage(page: GamePage): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Game3DRunner = void 0;
|
|
4
|
+
const game_control_1 = require("./game-control");
|
|
4
5
|
const game_util_1 = require("./game-util");
|
|
5
6
|
/** Of an element not laid out yet. */
|
|
6
7
|
const FALLBACK_SIZE = { width: 300, height: 150 };
|
|
@@ -60,6 +61,19 @@ class Game3DRunner {
|
|
|
60
61
|
}
|
|
61
62
|
renderer.setAnimationLoop(this.frame);
|
|
62
63
|
}
|
|
64
|
+
/** What the game says of its round (Game3DLoop.state); nothing when that throws. */
|
|
65
|
+
state() {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
if (this.disposed) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
return game_control_1.GameControlUtil.state((_b = (_a = this.loop).state) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
72
|
+
}
|
|
73
|
+
catch (_c) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
63
77
|
get sleeping() {
|
|
64
78
|
return this.asleep;
|
|
65
79
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TaGatewayConsole, TaGatewayTenant } from '@celljs/ta-protocol';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** The agents of a tenant's Ta: totals, then each conversation open, the latest first; one opens what it did lately. */
|
|
4
|
+
export declare function AgentsSection({ tenant }: {
|
|
5
|
+
tenant: TaGatewayTenant;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
/** The log of a tenant's sandbox, read on a click (it is audited), the latest lines in view. */
|
|
8
|
+
export declare function LogsSection({ tenant, info }: {
|
|
9
|
+
tenant: TaGatewayTenant;
|
|
10
|
+
info: TaGatewayConsole;
|
|
11
|
+
}): React.JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=console-agents.d.ts.map
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AgentsSection = AgentsSection;
|
|
37
|
+
exports.LogsSection = LogsSection;
|
|
38
|
+
const lucide_react_1 = require("lucide-react");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const busy_1 = require("../components/busy");
|
|
41
|
+
const callout_1 = require("../components/callout");
|
|
42
|
+
const icon_1 = require("../components/icon");
|
|
43
|
+
const loading_1 = require("../components/loading");
|
|
44
|
+
const hooks_1 = require("../hooks");
|
|
45
|
+
const use_t_1 = require("../i18n/use-t");
|
|
46
|
+
const terminal_text_1 = require("../util/terminal-text");
|
|
47
|
+
const console_parts_1 = require("./console-parts");
|
|
48
|
+
const console_util_1 = require("./console-util");
|
|
49
|
+
/* What a tenant's agents do (its conversations, each one's latest calls) and the log of its sandbox. */
|
|
50
|
+
const AGENT_STATUS = {
|
|
51
|
+
working: 'ta.console.agentWorking',
|
|
52
|
+
waiting: 'ta.console.agentWaiting',
|
|
53
|
+
asking: 'ta.console.agentAsking',
|
|
54
|
+
idle: 'ta.console.agentIdle',
|
|
55
|
+
};
|
|
56
|
+
/** What an agent did lately: its tool calls and the failures of its model, newest first. */
|
|
57
|
+
function ActivityList({ tenantId, sessionId }) {
|
|
58
|
+
const t = (0, use_t_1.useT)();
|
|
59
|
+
const language = (0, use_t_1.useLanguage)();
|
|
60
|
+
const [, bench] = (0, hooks_1.useWorkbench)();
|
|
61
|
+
const { value, error } = (0, console_parts_1.usePolled)(() => bench.gateway.getAgentActivity(tenantId, sessionId), `${tenantId}|${sessionId}`);
|
|
62
|
+
if (error && !value) {
|
|
63
|
+
return React.createElement("p", { className: "ta-console-activity-empty" }, error);
|
|
64
|
+
}
|
|
65
|
+
if (!value) {
|
|
66
|
+
return React.createElement(loading_1.Loading, { compact: true });
|
|
67
|
+
}
|
|
68
|
+
if (value.length === 0) {
|
|
69
|
+
return React.createElement("p", { className: "ta-console-activity-empty" }, t('ta.console.activityNone'));
|
|
70
|
+
}
|
|
71
|
+
const failures = value.filter(each => !each.ok).length;
|
|
72
|
+
return (React.createElement("div", { className: "ta-console-activity" },
|
|
73
|
+
React.createElement("span", { className: "ta-console-activity-summary" }, t('ta.console.activitySummary', { count: value.length, failed: failures })),
|
|
74
|
+
value.slice(0, 30).map((each, index) => (React.createElement("div", { key: `${each.at}-${index}`, className: `ta-console-activity-row${each.ok ? '' : ' ta-failed'}` },
|
|
75
|
+
React.createElement("span", { className: `ta-console-dot ${each.running ? 'ta-console-agent-working' : each.ok ? 'ta-console-running' : 'ta-console-failed'}` }),
|
|
76
|
+
React.createElement("span", { className: "ta-console-mono" }, each.kind === 'model' ? t('ta.console.modelFailed', { model: each.name }) : each.name),
|
|
77
|
+
each.error && (React.createElement("span", { className: "ta-console-activity-error ta-ellipsis", title: each.error }, each.error)),
|
|
78
|
+
React.createElement("span", { className: "ta-console-time" }, [
|
|
79
|
+
each.running
|
|
80
|
+
? t('ta.console.activityRunning')
|
|
81
|
+
: each.ms !== undefined
|
|
82
|
+
? `${(each.ms / 1000).toFixed(each.ms >= 10000 ? 0 : 1)} s`
|
|
83
|
+
: '',
|
|
84
|
+
console_util_1.ConsoleUtil.ago(each.at, language),
|
|
85
|
+
]
|
|
86
|
+
.filter(Boolean)
|
|
87
|
+
.join(' · ')))))));
|
|
88
|
+
}
|
|
89
|
+
function AgentRow({ tenantId, session }) {
|
|
90
|
+
var _a;
|
|
91
|
+
const t = (0, use_t_1.useT)();
|
|
92
|
+
const language = (0, use_t_1.useLanguage)();
|
|
93
|
+
const [open, setOpen] = React.useState(false);
|
|
94
|
+
const { stats } = session;
|
|
95
|
+
const model = (_a = session.model) === null || _a === void 0 ? void 0 : _a.split('/').pop();
|
|
96
|
+
const parts = [
|
|
97
|
+
t('ta.console.messages', { count: session.messageCount }),
|
|
98
|
+
stats && stats.toolCalls > 0 ? t('ta.console.toolCalls', { count: stats.toolCalls }) : '',
|
|
99
|
+
stats && stats.tokens.total > 0 ? `${console_util_1.ConsoleUtil.count(stats.tokens.total)} tokens` : '',
|
|
100
|
+
stats ? console_util_1.ConsoleUtil.cost(stats.cost) : '',
|
|
101
|
+
].filter(Boolean);
|
|
102
|
+
return (React.createElement("div", { className: "ta-console-item" },
|
|
103
|
+
React.createElement("button", { type: "button", className: "ta-console-entry ta-console-press", "aria-expanded": open, onClick: () => setOpen(!open) },
|
|
104
|
+
React.createElement("span", { className: `ta-console-dot ta-console-agent-${session.status}` }),
|
|
105
|
+
React.createElement("span", { className: "ta-console-entry-text" },
|
|
106
|
+
React.createElement("span", { className: "ta-console-entry-label ta-ellipsis" },
|
|
107
|
+
session.name || console_util_1.ConsoleUtil.folder(session.cwd),
|
|
108
|
+
model && React.createElement("span", { className: "ta-console-chip" }, model)),
|
|
109
|
+
React.createElement("span", { className: "ta-console-entry-hint ta-ellipsis" }, [t(AGENT_STATUS[session.status]), ...parts, console_util_1.ConsoleUtil.ago(session.updatedAt, language)].join(' · '))),
|
|
110
|
+
(stats === null || stats === void 0 ? void 0 : stats.context) !== undefined && (React.createElement("span", { className: "ta-console-side", title: t('ta.console.context') },
|
|
111
|
+
React.createElement("span", null,
|
|
112
|
+
stats.context,
|
|
113
|
+
"%"),
|
|
114
|
+
React.createElement(console_parts_1.Bar, { share: stats.context, small: true }))),
|
|
115
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 15, className: `ta-console-chevron${open ? ' ta-open' : ''}` })),
|
|
116
|
+
open && React.createElement(ActivityList, { tenantId: tenantId, sessionId: session.sessionId })));
|
|
117
|
+
}
|
|
118
|
+
/** The agents of a tenant's Ta: totals, then each conversation open, the latest first; one opens what it did lately. */
|
|
119
|
+
function AgentsSection({ tenant }) {
|
|
120
|
+
var _a, _b, _c, _d, _e;
|
|
121
|
+
const t = (0, use_t_1.useT)();
|
|
122
|
+
const [, bench] = (0, hooks_1.useWorkbench)();
|
|
123
|
+
const own = tenant.environment.provider === 'own';
|
|
124
|
+
const running = tenant.environment.status === 'running' && !own;
|
|
125
|
+
const { value: agents, error } = (0, console_parts_1.usePolled)(() => (running ? bench.gateway.getTenantAgents(tenant.id) : Promise.resolve(undefined)), `${tenant.id}|${running}`);
|
|
126
|
+
const totals = agents === null || agents === void 0 ? void 0 : agents.totals;
|
|
127
|
+
return (React.createElement(console_parts_1.Section, { title: t('ta.console.agents'), hint: running && agents ? t('ta.console.agentsPrivacy') : undefined }, !running ? (React.createElement(console_parts_1.Card, null,
|
|
128
|
+
React.createElement("p", { className: "ta-console-empty" }, own ? t('ta.console.agentsOwn') : t('ta.console.agentsStopped')))) : error && !agents ? (React.createElement(callout_1.Callout, { level: "warning" }, error)) : !agents ? (React.createElement(loading_1.Loading, { compact: true })) : (React.createElement(React.Fragment, null,
|
|
129
|
+
React.createElement(console_parts_1.Stats, { items: [
|
|
130
|
+
{ value: (_a = totals === null || totals === void 0 ? void 0 : totals.sessions) !== null && _a !== void 0 ? _a : 0, label: t('ta.console.sessions') },
|
|
131
|
+
{ value: (_b = totals === null || totals === void 0 ? void 0 : totals.working) !== null && _b !== void 0 ? _b : 0, label: t('ta.console.agentWorking'), tone: (totals === null || totals === void 0 ? void 0 : totals.working) ? 'good' : undefined },
|
|
132
|
+
{ value: (_c = totals === null || totals === void 0 ? void 0 : totals.toolCalls) !== null && _c !== void 0 ? _c : 0, label: t('ta.console.toolCallsLabel') },
|
|
133
|
+
{ value: (_e = console_util_1.ConsoleUtil.cost((_d = totals === null || totals === void 0 ? void 0 : totals.cost) !== null && _d !== void 0 ? _d : 0)) !== null && _e !== void 0 ? _e : '—', label: t('ta.console.cost') },
|
|
134
|
+
] }),
|
|
135
|
+
agents.sessions.length === 0 ? (React.createElement(console_parts_1.Card, null,
|
|
136
|
+
React.createElement("p", { className: "ta-console-empty" }, t('ta.console.agentsNone')))) : (React.createElement(console_parts_1.Card, null, agents.sessions.map(session => (React.createElement(AgentRow, { key: session.sessionId, tenantId: tenant.id, session: session })))))))));
|
|
137
|
+
}
|
|
138
|
+
/** The log of a tenant's sandbox, read on a click (it is audited), the latest lines in view. */
|
|
139
|
+
function LogsSection({ tenant, info }) {
|
|
140
|
+
const t = (0, use_t_1.useT)();
|
|
141
|
+
const [, bench] = (0, hooks_1.useWorkbench)();
|
|
142
|
+
const [, notices] = (0, hooks_1.useNotices)();
|
|
143
|
+
const [logs, setLogs] = React.useState();
|
|
144
|
+
const [busy, run] = (0, busy_1.useBusy)();
|
|
145
|
+
const box = React.useRef(null);
|
|
146
|
+
const hasLogs = tenant.environment.provider !== 'own' && info.providers.some(provider => provider.id === tenant.environment.provider && provider.logs);
|
|
147
|
+
const read = React.useCallback(() => run(() => bench.gateway.getTenantLogs(tenant.id, 300).then(text => setLogs(terminal_text_1.TerminalText.plain(text).trimEnd()), error => notices.error(error))), [bench, tenant.id, notices, run]);
|
|
148
|
+
// The latest lines are what one looks for: the box starts at its end.
|
|
149
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: scrolled again when the lines change
|
|
150
|
+
React.useLayoutEffect(() => {
|
|
151
|
+
if (box.current) {
|
|
152
|
+
box.current.scrollTop = box.current.scrollHeight;
|
|
153
|
+
}
|
|
154
|
+
}, [logs]);
|
|
155
|
+
if (!hasLogs) {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
return (React.createElement(console_parts_1.Section, { title: t('ta.console.logs'), action: logs !== undefined ? React.createElement(icon_1.IconButton, { icon: lucide_react_1.RefreshCw, label: t('ta.console.refresh'), busy: busy, onClick: () => void read() }) : undefined }, logs === undefined ? (React.createElement(console_parts_1.Card, null,
|
|
159
|
+
React.createElement("button", { type: "button", className: `ta-console-entry ta-console-press${busy ? ' ta-busy' : ''}`, onClick: () => void read() },
|
|
160
|
+
React.createElement("span", { className: "ta-console-entry-text" },
|
|
161
|
+
React.createElement("span", { className: "ta-console-entry-label" }, t('ta.console.logsShow')),
|
|
162
|
+
React.createElement("span", { className: "ta-console-entry-hint" }, t('ta.console.logsAudited'))),
|
|
163
|
+
busy ? (React.createElement("span", { className: "ta-spinner ta-busy-mark", "aria-hidden": "true" })) : (React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 15, className: "ta-console-chevron" }))))) : (React.createElement("pre", { ref: box, className: "ta-console-logs" }, logs || t('ta.console.logsEmpty')))));
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=console-agents.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TaGatewayLimits } from '@celljs/ta-protocol';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface LimitsCardProps {
|
|
4
|
+
value: TaGatewayLimits;
|
|
5
|
+
/** Those of the gateway, for an account: what "default" is. */
|
|
6
|
+
defaults?: TaGatewayLimits;
|
|
7
|
+
providers: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}[];
|
|
11
|
+
/** An account's: each limit may also be the default's. */
|
|
12
|
+
nullable: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
/** Whether the gateway gives models, so that a limit of tokens holds. */
|
|
15
|
+
metered?: boolean;
|
|
16
|
+
onSave(limits: TaGatewayLimits): Promise<unknown>;
|
|
17
|
+
}
|
|
18
|
+
/** The limits of the gateway or of an account, each saved as it is picked. */
|
|
19
|
+
export declare function LimitsCard({ value, defaults, providers, nullable, readOnly, metered, onSave }: LimitsCardProps): React.JSX.Element;
|
|
20
|
+
//# sourceMappingURL=console-limits.d.ts.map
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.LimitsCard = LimitsCard;
|
|
37
|
+
const lucide_react_1 = require("lucide-react");
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
const busy_1 = require("../components/busy");
|
|
40
|
+
const context_menu_1 = require("../components/context-menu");
|
|
41
|
+
const icon_1 = require("../components/icon");
|
|
42
|
+
const settings_controls_1 = require("../components/settings-controls");
|
|
43
|
+
const hooks_1 = require("../hooks");
|
|
44
|
+
const use_t_1 = require("../i18n/use-t");
|
|
45
|
+
const console_parts_1 = require("./console-parts");
|
|
46
|
+
const console_util_1 = require("./console-util");
|
|
47
|
+
const NUMBERS = [
|
|
48
|
+
{ key: 'freeMinutes', label: 'ta.console.freeMinutes', hint: 'ta.console.freeMinutesHint', picks: [600, 1800, 6000], format: console_util_1.ConsoleUtil.minutes },
|
|
49
|
+
{
|
|
50
|
+
key: 'monthlyTokens',
|
|
51
|
+
label: 'ta.console.monthlyTokens',
|
|
52
|
+
hint: 'ta.console.monthlyTokensHint',
|
|
53
|
+
picks: [1000000, 2000000, 10000000],
|
|
54
|
+
format: console_util_1.ConsoleUtil.count,
|
|
55
|
+
},
|
|
56
|
+
{ key: 'promptsPerMinute', label: 'ta.console.promptsPerMinute', hint: 'ta.console.promptsPerMinuteHint', picks: [10, 30, 60], format: String },
|
|
57
|
+
{ key: 'connections', label: 'ta.console.connectionsMax', hint: 'ta.console.connectionsMaxHint', picks: [2, 5, 10], format: String },
|
|
58
|
+
];
|
|
59
|
+
/** A value on the right of a row that opens its menu. */
|
|
60
|
+
function ValueButton({ text, muted, busy, disabled, label, items, }) {
|
|
61
|
+
const [menu, open] = (0, context_menu_1.useContextMenu)();
|
|
62
|
+
if (disabled) {
|
|
63
|
+
return React.createElement("span", { className: `ta-console-value${muted ? ' ta-muted' : ''}` }, text);
|
|
64
|
+
}
|
|
65
|
+
return (React.createElement(React.Fragment, null,
|
|
66
|
+
React.createElement("button", { type: "button", className: `ta-console-value ta-console-pick${muted ? ' ta-muted' : ''}${busy ? ' ta-busy' : ''}`, "aria-label": label, "aria-haspopup": "menu", onClick: event => open(event, items()) },
|
|
67
|
+
React.createElement("span", { className: "ta-ellipsis" }, text),
|
|
68
|
+
busy ? React.createElement("span", { className: "ta-spinner ta-busy-mark", "aria-hidden": "true" }) : React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronsUpDown, size: 14 })),
|
|
69
|
+
menu));
|
|
70
|
+
}
|
|
71
|
+
function LimitRow({ label, hint, children }) {
|
|
72
|
+
return (React.createElement("div", { className: "ta-console-entry" },
|
|
73
|
+
React.createElement("div", { className: "ta-console-entry-text" },
|
|
74
|
+
React.createElement("span", { className: "ta-console-entry-label" }, label),
|
|
75
|
+
hint && React.createElement("span", { className: "ta-console-entry-hint" }, hint)),
|
|
76
|
+
children));
|
|
77
|
+
}
|
|
78
|
+
/** The limits of the gateway or of an account, each saved as it is picked. */
|
|
79
|
+
function LimitsCard({ value, defaults, providers, nullable, readOnly, metered, onSave }) {
|
|
80
|
+
const t = (0, use_t_1.useT)();
|
|
81
|
+
const [, notices] = (0, hooks_1.useNotices)();
|
|
82
|
+
const [busy, run] = (0, busy_1.useBusy)();
|
|
83
|
+
const [doing, setDoing] = React.useState();
|
|
84
|
+
const save = (key, change) => {
|
|
85
|
+
setDoing(key);
|
|
86
|
+
const next = Object.fromEntries(Object.entries({ ...value, ...change }).filter(([, item]) => item !== undefined));
|
|
87
|
+
void run(() => onSave(next)).finally(() => setDoing(undefined));
|
|
88
|
+
};
|
|
89
|
+
const ask = async (limit) => {
|
|
90
|
+
const current = value[limit.key];
|
|
91
|
+
const given = await notices.input({
|
|
92
|
+
title: t(limit.label),
|
|
93
|
+
value: typeof current === 'number' ? String(current) : '',
|
|
94
|
+
placeholder: String(limit.picks[0]),
|
|
95
|
+
});
|
|
96
|
+
if (given === undefined) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const parsed = console_util_1.ConsoleUtil.parse(given);
|
|
100
|
+
if (parsed === undefined || Number.isNaN(parsed)) {
|
|
101
|
+
notices.notify(t('ta.console.wholeNumber'), { level: 'warning' });
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
save(limit.key, { [limit.key]: parsed });
|
|
105
|
+
};
|
|
106
|
+
const shown = (limit) => {
|
|
107
|
+
const own = value[limit.key];
|
|
108
|
+
if (typeof own === 'number') {
|
|
109
|
+
return { text: limit.format(own), muted: false };
|
|
110
|
+
}
|
|
111
|
+
if (own === null || !nullable) {
|
|
112
|
+
return { text: t('ta.console.unlimited'), muted: false };
|
|
113
|
+
}
|
|
114
|
+
const base = defaults === null || defaults === void 0 ? void 0 : defaults[limit.key];
|
|
115
|
+
return { text: typeof base === 'number' ? limit.format(base) : t('ta.console.unlimited'), muted: true };
|
|
116
|
+
};
|
|
117
|
+
const numberItems = (limit) => {
|
|
118
|
+
const own = value[limit.key];
|
|
119
|
+
const base = defaults === null || defaults === void 0 ? void 0 : defaults[limit.key];
|
|
120
|
+
return [
|
|
121
|
+
...(nullable
|
|
122
|
+
? [
|
|
123
|
+
{
|
|
124
|
+
label: t('ta.console.limitDefault', { value: typeof base === 'number' ? limit.format(base) : t('ta.console.unlimited') }),
|
|
125
|
+
checked: own === undefined,
|
|
126
|
+
run: () => save(limit.key, { [limit.key]: undefined }),
|
|
127
|
+
},
|
|
128
|
+
]
|
|
129
|
+
: []),
|
|
130
|
+
{
|
|
131
|
+
label: t('ta.console.unlimited'),
|
|
132
|
+
checked: nullable ? own === null : typeof own !== 'number',
|
|
133
|
+
run: () => save(limit.key, { [limit.key]: nullable ? null : undefined }),
|
|
134
|
+
},
|
|
135
|
+
'-',
|
|
136
|
+
...limit.picks.map(pick => ({ label: limit.format(pick), checked: own === pick, run: () => save(limit.key, { [limit.key]: pick }) })),
|
|
137
|
+
{
|
|
138
|
+
label: typeof own === 'number' && !limit.picks.includes(own)
|
|
139
|
+
? `${limit.format(own)} · ${t('ta.console.limitCustom')}`
|
|
140
|
+
: t('ta.console.limitCustom'),
|
|
141
|
+
checked: typeof own === 'number' && !limit.picks.includes(own),
|
|
142
|
+
run: () => void ask(limit),
|
|
143
|
+
},
|
|
144
|
+
];
|
|
145
|
+
};
|
|
146
|
+
const providerText = () => {
|
|
147
|
+
const list = value.providers;
|
|
148
|
+
if (Array.isArray(list)) {
|
|
149
|
+
return list.map(id => { var _a; var _b; return (_b = (_a = providers.find(each => each.id === id)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : id; }).join(', ') || '—';
|
|
150
|
+
}
|
|
151
|
+
if (list === null || !nullable) {
|
|
152
|
+
return t('ta.console.allProviders');
|
|
153
|
+
}
|
|
154
|
+
return t('ta.console.limitDefault', {
|
|
155
|
+
value: (defaults === null || defaults === void 0 ? void 0 : defaults.providers)
|
|
156
|
+
? defaults.providers.map(id => { var _a; var _b; return (_b = (_a = providers.find(each => each.id === id)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : id; }).join(', ')
|
|
157
|
+
: t('ta.console.allProviders'),
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
const providerItems = () => {
|
|
161
|
+
const list = value.providers;
|
|
162
|
+
const all = providers.map(each => each.id);
|
|
163
|
+
const toggle = (id) => {
|
|
164
|
+
const current = Array.isArray(list) ? list : all;
|
|
165
|
+
const next = current.includes(id) ? current.filter(each => each !== id) : [...current, id];
|
|
166
|
+
save('providers', { providers: next.length === all.length ? (nullable ? null : undefined) : next });
|
|
167
|
+
};
|
|
168
|
+
return [
|
|
169
|
+
...(nullable ? [{ label: t('ta.console.default'), checked: list === undefined, run: () => save('providers', { providers: undefined }) }] : []),
|
|
170
|
+
{
|
|
171
|
+
label: t('ta.console.allProviders'),
|
|
172
|
+
checked: nullable ? list === null : !Array.isArray(list),
|
|
173
|
+
run: () => save('providers', { providers: nullable ? null : undefined }),
|
|
174
|
+
},
|
|
175
|
+
...(providers.length > 1
|
|
176
|
+
? [
|
|
177
|
+
'-',
|
|
178
|
+
...providers.map(each => ({
|
|
179
|
+
label: each.name,
|
|
180
|
+
checked: Array.isArray(list) ? list.includes(each.id) : false,
|
|
181
|
+
run: () => toggle(each.id),
|
|
182
|
+
})),
|
|
183
|
+
]
|
|
184
|
+
: []),
|
|
185
|
+
];
|
|
186
|
+
};
|
|
187
|
+
const own = value.own;
|
|
188
|
+
const ownOn = own === undefined || own === null ? (defaults === null || defaults === void 0 ? void 0 : defaults.own) !== false : own;
|
|
189
|
+
return (React.createElement(console_parts_1.Card, null,
|
|
190
|
+
NUMBERS.map(limit => {
|
|
191
|
+
const { text, muted } = shown(limit);
|
|
192
|
+
return (React.createElement(LimitRow, { key: limit.key, label: t(limit.label), hint: limit.key === 'monthlyTokens' && !metered ? t('ta.console.monthlyTokensOff') : t(limit.hint) },
|
|
193
|
+
React.createElement(ValueButton, { text: text, muted: muted, label: t(limit.label), busy: busy && doing === limit.key, disabled: readOnly, items: () => numberItems(limit) })));
|
|
194
|
+
}),
|
|
195
|
+
providers.length > 1 && (React.createElement(LimitRow, { label: t('ta.console.providersAllowed'), hint: t('ta.console.providersAllowedHint') },
|
|
196
|
+
React.createElement(ValueButton, { text: providerText(), muted: nullable && value.providers === undefined, label: t('ta.console.providersAllowed'), busy: busy && doing === 'providers', disabled: readOnly, items: providerItems }))),
|
|
197
|
+
React.createElement(LimitRow, { label: t('ta.console.ownService'), hint: t('ta.console.ownServiceHint') },
|
|
198
|
+
React.createElement(settings_controls_1.Switch, { checked: ownOn, disabled: readOnly || busy, label: t('ta.console.ownService'), onChange: on => save('own', { own: nullable && on === ((defaults === null || defaults === void 0 ? void 0 : defaults.own) !== false) ? undefined : on }) }))));
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=console-limits.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TaEnvironmentStatus, TaQuotaState } from '@celljs/ta-protocol';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/** How often what the console shows is read again while it is seen. */
|
|
4
4
|
export declare const REFRESH_MS = 10000;
|
|
@@ -9,9 +9,17 @@ export declare function usePolled<T>(load: () => Promise<T>, key: unknown, every
|
|
|
9
9
|
read: () => Promise<void>;
|
|
10
10
|
readAt: number | undefined;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/** A title over what it is the title of; `action` on the right of the title, `hint` under the content. */
|
|
13
|
+
export declare function Section({ title, action, hint, children, }: {
|
|
14
|
+
title: React.ReactNode;
|
|
14
15
|
action?: React.ReactNode;
|
|
16
|
+
hint?: React.ReactNode;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
/** A rounded card whose rows are parted by lines. */
|
|
20
|
+
export declare function Card({ children, className }: {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
className?: string;
|
|
15
23
|
}): React.JSX.Element;
|
|
16
24
|
/** A bar that fills: of a limit (amber, then red, as it nears it), or a `part` of a whole, in one color. */
|
|
17
25
|
export declare function Bar({ share, small, part }: {
|
|
@@ -19,47 +27,36 @@ export declare function Bar({ share, small, part }: {
|
|
|
19
27
|
small?: boolean;
|
|
20
28
|
part?: boolean;
|
|
21
29
|
}): React.JSX.Element;
|
|
22
|
-
|
|
30
|
+
/** A row of a card: what is used, its value on the right, a bar under them when there is a limit. */
|
|
31
|
+
export declare function MeterRow({ label, value, share, hint }: {
|
|
23
32
|
label: string;
|
|
24
33
|
value: string;
|
|
25
34
|
share?: number;
|
|
26
35
|
hint?: string;
|
|
27
36
|
}): React.JSX.Element;
|
|
28
|
-
export
|
|
37
|
+
export interface StatItem {
|
|
29
38
|
value: React.ReactNode;
|
|
30
39
|
label: string;
|
|
31
40
|
tone?: 'good' | 'warn' | 'bad';
|
|
32
41
|
onClick?(): void;
|
|
33
|
-
|
|
42
|
+
}
|
|
43
|
+
/** Numbers side by side, in one card: the first look at what they are of. */
|
|
44
|
+
export declare function Stats({ items }: {
|
|
45
|
+
items: StatItem[];
|
|
34
46
|
}): React.JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
export declare function
|
|
37
|
-
|
|
47
|
+
/** The face of an account, a dot on it while its Ta runs (green), starts (blue) or failed (red). */
|
|
48
|
+
export declare function TenantFace({ account, avatar, status, large }: {
|
|
49
|
+
account: string;
|
|
50
|
+
avatar?: string;
|
|
51
|
+
status: TaEnvironmentStatus;
|
|
52
|
+
large?: boolean;
|
|
38
53
|
}): React.JSX.Element;
|
|
39
54
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
55
|
+
* This month's minutes, tokens and way out of an account, as rows of a card, with the connections refused lately;
|
|
56
|
+
* `children`, more rows of the same card.
|
|
42
57
|
*/
|
|
43
|
-
export declare function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
onTenant?(id: string): void;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
|
-
/**
|
|
49
|
-
* Limits to change: the gateway's defaults (`nullable` false: a limit is a number or none), or an account's over them
|
|
50
|
-
* (each the default's, none, or its own). Saved as a whole.
|
|
51
|
-
*/
|
|
52
|
-
export declare function LimitsForm({ value, defaults, providers, nullable, readOnly, metered, onSave, }: {
|
|
53
|
-
value: TaGatewayLimits;
|
|
54
|
-
defaults?: TaGatewayLimits;
|
|
55
|
-
providers: {
|
|
56
|
-
id: string;
|
|
57
|
-
name: string;
|
|
58
|
-
}[];
|
|
59
|
-
nullable: boolean;
|
|
60
|
-
readOnly?: boolean;
|
|
61
|
-
/** Whether the gateway gives models, so that a limit of tokens holds. */
|
|
62
|
-
metered?: boolean;
|
|
63
|
-
onSave(limits: TaGatewayLimits): Promise<unknown>;
|
|
58
|
+
export declare function QuotaMeters({ quota, children }: {
|
|
59
|
+
quota: TaQuotaState;
|
|
60
|
+
children?: React.ReactNode;
|
|
64
61
|
}): React.JSX.Element;
|
|
65
62
|
//# sourceMappingURL=console-parts.d.ts.map
|