@celljs/ta-web 4.17.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-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-export.js +6 -2
- package/esm/browser/assistant/assistant-extension.js +70 -15
- package/esm/browser/assistant/assistant-role.d.ts +2 -2
- package/esm/browser/assistant/assistant-role.js +7 -4
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +18 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +8 -0
- package/esm/browser/assistant/assistant-task-util.js +14 -3
- package/esm/browser/assistant/assistant-tasks.js +2 -2
- package/esm/browser/assistant/assistant-thread.js +5 -1
- package/esm/browser/assistant/assistant-view.js +3 -5
- package/esm/browser/assistant/assistant.js +2 -1
- 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 +16 -18
- package/esm/browser/assistant/chat-task-source.js +27 -52
- package/esm/browser/assistant/realtime-voice.d.ts +62 -1
- package/esm/browser/assistant/realtime-voice.js +188 -29
- package/esm/browser/assistant/task-views.d.ts +9 -6
- package/esm/browser/assistant/task-views.js +28 -10
- package/esm/browser/assistant/voice-call-bar.d.ts +11 -4
- package/esm/browser/assistant/voice-call-bar.js +102 -46
- package/esm/browser/assistant/voice-call.d.ts +33 -1
- package/esm/browser/assistant/voice-call.js +131 -28
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-view.js +5 -8
- 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 +25 -1
- package/esm/browser/components/account-menu.js +3 -1
- 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 +5 -3
- package/esm/browser/components/app-nav.js +11 -8
- package/esm/browser/components/app-shell-state.d.ts +2 -2
- package/esm/browser/components/app-shell-state.js +33 -28
- package/esm/browser/components/app-view.js +113 -82
- package/esm/browser/components/auth-view.js +3 -5
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -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 +4 -2
- package/esm/browser/components/chat-icon.js +15 -5
- 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 +14 -2
- package/esm/browser/components/chat-list-row.js +27 -17
- package/esm/browser/components/chat-list-util.d.ts +40 -9
- package/esm/browser/components/chat-list-util.js +72 -9
- package/esm/browser/components/chat-list.d.ts +4 -49
- package/esm/browser/components/chat-list.js +118 -87
- 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-box.js +7 -0
- 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 +14 -3
- package/esm/browser/components/conversation-scroll.d.ts +2 -0
- package/esm/browser/components/conversation-scroll.js +14 -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/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/fork-view.js +2 -4
- package/esm/browser/components/gallery.js +2 -1
- 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 +53 -14
- 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 +10 -114
- package/esm/browser/components/image-viewer.js +46 -365
- 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 +4 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +5 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +2 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-images.js +1 -1
- package/esm/browser/components/message-list.js +12 -7
- package/esm/browser/components/message-steps.js +31 -23
- package/esm/browser/components/message-user.d.ts +10 -1
- package/esm/browser/components/message-user.js +48 -13
- package/esm/browser/components/model-picker.d.ts +3 -1
- package/esm/browser/components/model-picker.js +14 -3
- package/esm/browser/components/nav-places.d.ts +7 -12
- package/esm/browser/components/nav-places.js +10 -13
- package/esm/browser/components/phone-shell.d.ts +1 -1
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +46 -20
- 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-view.js +44 -13
- package/esm/browser/components/settings-choices.d.ts +3 -3
- package/esm/browser/components/settings-choices.js +9 -29
- package/esm/browser/components/settings-parts.js +5 -2
- package/esm/browser/components/settings-view.js +2 -2
- 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/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 +2 -1
- package/esm/browser/components/unseen-drop.js +1 -1
- package/esm/browser/components/voice-services.js +26 -3
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- 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/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/extension/icons.js +13 -2
- 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 +61 -6
- package/esm/browser/extension/web-api-contributions.d.ts +28 -53
- 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 +45 -65
- package/esm/browser/extension/web-extension-context.d.ts +5 -10
- package/esm/browser/extension/web-extension-context.js +33 -21
- package/esm/browser/extension/web-extension-protocol.d.ts +8 -3
- package/esm/browser/extension/web-extension-run.js +0 -1
- package/esm/browser/extension/web-extensions.d.ts +4 -1
- package/esm/browser/extension/web-extensions.js +12 -0
- package/esm/browser/extension/web-tasks.d.ts +6 -1
- package/esm/browser/extension/web-tasks.js +11 -3
- package/esm/browser/extension/web-view-util.d.ts +0 -1
- package/esm/browser/extension/web-view-util.js +4 -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 -22
- package/esm/browser/gateway/console-parts.js +67 -137
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +117 -209
- package/esm/browser/gateway/console-trend.js +6 -4
- package/esm/browser/gateway/console-view.js +136 -109
- 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 +144 -14
- package/esm/browser/i18n/messages-ja.js +153 -23
- package/esm/browser/i18n/messages-zh-tw.js +153 -23
- package/esm/browser/i18n/messages.d.ts +141 -11
- package/esm/browser/i18n/messages.js +307 -47
- package/esm/browser/index.d.ts +1 -0
- package/esm/browser/index.js +1 -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/screen/screen-protocol.d.ts +74 -1
- package/esm/browser/screen/screen-protocol.js +15 -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 +34 -1
- package/esm/browser/screen/screen.js +172 -2
- 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 +9 -0
- package/esm/browser/settings/settings-protocol.js +18 -0
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.js +4 -3
- package/esm/browser/share/shared-page.js +2 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +8 -1
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +0 -3
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +42 -4
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +0 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +7 -15
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +168 -112
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +8 -2
- package/esm/browser/style/shared.d.ts +1 -1
- package/esm/browser/style/shared.js +1 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +12 -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 +16 -2
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/process.d.ts +31 -3
- package/esm/browser/util/process.js +75 -8
- 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 +5 -0
- package/esm/browser/util/spoken.js +11 -2
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.js +3 -1
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/workbench-hosts.d.ts +1 -1
- package/esm/browser/workbench-hosts.js +2 -2
- package/esm/browser/workbench-protocol.d.ts +18 -3
- package/esm/browser/workbench-services.d.ts +9 -1
- package/esm/browser/workbench-services.js +38 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +3 -0
- package/esm/browser/workbench.js +36 -9
- 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-export.js +5 -1
- package/lib/browser/assistant/assistant-extension.js +69 -14
- package/lib/browser/assistant/assistant-role.d.ts +2 -2
- package/lib/browser/assistant/assistant-role.js +7 -4
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +19 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +8 -0
- package/lib/browser/assistant/assistant-task-util.js +14 -3
- package/lib/browser/assistant/assistant-tasks.js +2 -2
- package/lib/browser/assistant/assistant-thread.js +4 -0
- package/lib/browser/assistant/assistant-view.js +3 -5
- package/lib/browser/assistant/assistant.js +2 -1
- 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 +16 -18
- package/lib/browser/assistant/chat-task-source.js +28 -53
- package/lib/browser/assistant/realtime-voice.d.ts +62 -1
- package/lib/browser/assistant/realtime-voice.js +188 -29
- package/lib/browser/assistant/task-views.d.ts +9 -6
- package/lib/browser/assistant/task-views.js +29 -10
- package/lib/browser/assistant/voice-call-bar.d.ts +11 -4
- package/lib/browser/assistant/voice-call-bar.js +102 -46
- package/lib/browser/assistant/voice-call.d.ts +33 -1
- package/lib/browser/assistant/voice-call.js +132 -29
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-view.js +5 -8
- 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 +24 -0
- package/lib/browser/components/account-menu.js +2 -0
- 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 +5 -3
- package/lib/browser/components/app-nav.js +11 -8
- package/lib/browser/components/app-shell-state.d.ts +2 -2
- package/lib/browser/components/app-shell-state.js +33 -28
- package/lib/browser/components/app-view.js +109 -78
- package/lib/browser/components/auth-view.js +3 -5
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -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 +4 -2
- package/lib/browser/components/chat-icon.js +15 -5
- 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 +14 -2
- package/lib/browser/components/chat-list-row.js +27 -16
- package/lib/browser/components/chat-list-util.d.ts +40 -9
- package/lib/browser/components/chat-list-util.js +73 -10
- package/lib/browser/components/chat-list.d.ts +4 -49
- package/lib/browser/components/chat-list.js +121 -90
- 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-box.js +7 -0
- 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 +14 -3
- package/lib/browser/components/conversation-scroll.d.ts +2 -0
- package/lib/browser/components/conversation-scroll.js +14 -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/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/fork-view.js +2 -4
- package/lib/browser/components/gallery.js +2 -1
- 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 +52 -13
- 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 +10 -114
- package/lib/browser/components/image-viewer.js +47 -368
- 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 +4 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +5 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +2 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-images.js +1 -1
- package/lib/browser/components/message-list.js +12 -7
- package/lib/browser/components/message-steps.js +31 -23
- package/lib/browser/components/message-user.d.ts +10 -1
- package/lib/browser/components/message-user.js +48 -12
- package/lib/browser/components/model-picker.d.ts +3 -1
- package/lib/browser/components/model-picker.js +14 -3
- package/lib/browser/components/nav-places.d.ts +7 -12
- package/lib/browser/components/nav-places.js +10 -13
- package/lib/browser/components/phone-shell.d.ts +1 -1
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +47 -20
- 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-view.js +43 -12
- package/lib/browser/components/settings-choices.d.ts +3 -3
- package/lib/browser/components/settings-choices.js +8 -28
- package/lib/browser/components/settings-parts.js +4 -1
- package/lib/browser/components/settings-view.js +2 -2
- 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/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 +2 -1
- package/lib/browser/components/unseen-drop.js +1 -1
- package/lib/browser/components/voice-services.js +23 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- 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/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/extension/icons.js +12 -1
- 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 +61 -6
- package/lib/browser/extension/web-api-contributions.d.ts +28 -53
- 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 +45 -65
- package/lib/browser/extension/web-extension-context.d.ts +5 -10
- package/lib/browser/extension/web-extension-context.js +33 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +8 -3
- package/lib/browser/extension/web-extension-run.js +0 -1
- package/lib/browser/extension/web-extensions.d.ts +4 -1
- package/lib/browser/extension/web-extensions.js +12 -0
- package/lib/browser/extension/web-tasks.d.ts +6 -1
- package/lib/browser/extension/web-tasks.js +11 -3
- package/lib/browser/extension/web-view-util.d.ts +0 -1
- package/lib/browser/extension/web-view-util.js +4 -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 -22
- package/lib/browser/gateway/console-parts.js +72 -141
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +115 -208
- package/lib/browser/gateway/console-trend.js +6 -4
- package/lib/browser/gateway/console-view.js +134 -107
- 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 +144 -14
- package/lib/browser/i18n/messages-ja.js +153 -23
- package/lib/browser/i18n/messages-zh-tw.js +153 -23
- package/lib/browser/i18n/messages.d.ts +141 -11
- package/lib/browser/i18n/messages.js +307 -47
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -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/screen/screen-protocol.d.ts +74 -1
- package/lib/browser/screen/screen-protocol.js +15 -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 +34 -1
- package/lib/browser/screen/screen.js +172 -2
- 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 +9 -0
- package/lib/browser/settings/settings-protocol.js +19 -1
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.js +4 -3
- package/lib/browser/share/shared-page.js +2 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +8 -1
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +0 -3
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +42 -4
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +0 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +7 -15
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +168 -112
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +8 -2
- package/lib/browser/style/shared.d.ts +1 -1
- package/lib/browser/style/shared.js +1 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +12 -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 +16 -2
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/process.d.ts +31 -3
- package/lib/browser/util/process.js +74 -7
- 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 +5 -0
- package/lib/browser/util/spoken.js +10 -1
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.js +3 -1
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/workbench-hosts.d.ts +1 -1
- package/lib/browser/workbench-hosts.js +2 -2
- package/lib/browser/workbench-protocol.d.ts +18 -3
- package/lib/browser/workbench-services.d.ts +9 -1
- package/lib/browser/workbench-services.js +38 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +3 -0
- package/lib/browser/workbench.js +35 -8
- 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,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,37 +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
|
-
|
|
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;
|
|
37
53
|
}): React.JSX.Element;
|
|
38
54
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
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.
|
|
41
57
|
*/
|
|
42
|
-
export declare function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
providers: {
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
}[];
|
|
49
|
-
nullable: boolean;
|
|
50
|
-
readOnly?: boolean;
|
|
51
|
-
/** Whether the gateway gives models, so that a limit of tokens holds. */
|
|
52
|
-
metered?: boolean;
|
|
53
|
-
onSave(limits: TaGatewayLimits): Promise<unknown>;
|
|
58
|
+
export declare function QuotaMeters({ quota, children }: {
|
|
59
|
+
quota: TaQuotaState;
|
|
60
|
+
children?: React.ReactNode;
|
|
54
61
|
}): React.JSX.Element;
|
|
55
62
|
//# sourceMappingURL=console-parts.d.ts.map
|