@celljs/ta-web 4.17.0 → 4.19.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/account/account-side.d.ts +13 -0
- package/esm/browser/account/account-side.js +74 -0
- package/esm/browser/account/device-account.d.ts +69 -0
- package/esm/browser/account/device-account.js +215 -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-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.d.ts +1 -1
- package/esm/browser/components/account-menu.js +7 -2
- package/esm/browser/components/account-view.d.ts +17 -0
- package/esm/browser/components/account-view.js +216 -0
- 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 +65 -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 +11 -4
- package/esm/browser/components/host-view.js +60 -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 +42 -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 +7 -0
- package/esm/browser/hosts.js +23 -2
- package/esm/browser/i18n/locales.d.ts +169 -14
- package/esm/browser/i18n/messages-ja.js +178 -23
- package/esm/browser/i18n/messages-zh-tw.js +178 -23
- package/esm/browser/i18n/messages.d.ts +166 -11
- package/esm/browser/i18n/messages.js +357 -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 +31 -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 +10 -3
- 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 +8 -1
- package/esm/browser/workbench-hosts.js +22 -2
- package/esm/browser/workbench-protocol.d.ts +25 -3
- package/esm/browser/workbench-services.d.ts +10 -1
- package/esm/browser/workbench-services.js +41 -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/account/account-side.d.ts +14 -0
- package/lib/browser/account/account-side.js +111 -0
- package/lib/browser/account/device-account.d.ts +70 -0
- package/lib/browser/account/device-account.js +219 -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-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.d.ts +1 -1
- package/lib/browser/components/account-menu.js +6 -1
- package/lib/browser/components/account-view.d.ts +18 -0
- package/lib/browser/components/account-view.js +255 -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 +66 -0
- package/lib/browser/components/cloud-sign-in-view.js +394 -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 +11 -4
- package/lib/browser/components/host-view.js +60 -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 +42 -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 +7 -0
- package/lib/browser/hosts.js +23 -2
- package/lib/browser/i18n/locales.d.ts +169 -14
- package/lib/browser/i18n/messages-ja.js +178 -23
- package/lib/browser/i18n/messages-zh-tw.js +178 -23
- package/lib/browser/i18n/messages.d.ts +166 -11
- package/lib/browser/i18n/messages.js +357 -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 +31 -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 +10 -3
- 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 +8 -1
- package/lib/browser/workbench-hosts.js +22 -2
- package/lib/browser/workbench-protocol.d.ts +25 -3
- package/lib/browser/workbench-services.d.ts +10 -1
- package/lib/browser/workbench-services.js +41 -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
|
@@ -35,6 +35,13 @@ export var DesktopUtil;
|
|
|
35
35
|
}
|
|
36
36
|
DesktopUtil.restart = restart;
|
|
37
37
|
/** The sign-ins of the user's browsers, where Ta Desktop can read them (macOS, Windows). */
|
|
38
|
+
/** Tells Ta Desktop a call goes on, or ended: it does not restart under it. None outside Ta Desktop. */
|
|
39
|
+
function calling(scope = globalThis) {
|
|
40
|
+
var _a;
|
|
41
|
+
const call = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.call;
|
|
42
|
+
return has('call', scope) && typeof call === 'function' ? active => void Promise.resolve(call(active)).catch(() => undefined) : undefined;
|
|
43
|
+
}
|
|
44
|
+
DesktopUtil.calling = calling;
|
|
38
45
|
function browserData(scope = globalThis) {
|
|
39
46
|
var _a;
|
|
40
47
|
const data = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.browserData;
|
|
@@ -74,6 +81,16 @@ export var DesktopUtil;
|
|
|
74
81
|
return Object.freeze({ onOpen: (listener) => onOpen(listener) });
|
|
75
82
|
}
|
|
76
83
|
DesktopUtil.notices = notices;
|
|
84
|
+
/** Links of Ta the system opened the app with (`ta://`): `onOpen` hears each, the one it started with first. */
|
|
85
|
+
function links(scope = globalThis) {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
const onOpen = (_b = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.onOpen;
|
|
88
|
+
if (!has('links', scope) || typeof onOpen !== 'function') {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
return Object.freeze({ onOpen: (listener) => onOpen(listener) });
|
|
92
|
+
}
|
|
93
|
+
DesktopUtil.links = links;
|
|
77
94
|
/** Apple's recognizer, where Ta Desktop has it (macOS). */
|
|
78
95
|
function speech(scope = globalThis) {
|
|
79
96
|
var _a;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Of the pictures a viewer goes through, the one before or the one after. */
|
|
2
|
+
export type ImageSwipeWay = 'previous' | 'next';
|
|
3
|
+
/** Whether there is a picture before and after the one shown. */
|
|
4
|
+
export interface ImageSwipeBeside {
|
|
5
|
+
previous: boolean;
|
|
6
|
+
next: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Whether the picture shown is scrolled all the way to its left and to its right: fitted, it is both. */
|
|
9
|
+
export interface ImageSwipeEdges {
|
|
10
|
+
start: boolean;
|
|
11
|
+
end: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A finger that swipes a picture sideways goes to the one beside it, as the viewers of pictures of a phone do:
|
|
15
|
+
* the picture follows the finger with the one beside it in sight, and let go far enough, or flicked, slides out
|
|
16
|
+
* for it. Zoomed in, the finger scrolls the picture, and only from its edge goes on to the next. Pure, for the tests.
|
|
17
|
+
*/
|
|
18
|
+
export declare namespace ImageSwipeUtil {
|
|
19
|
+
/** The space between two pictures as they slide. */
|
|
20
|
+
const GAP = 20;
|
|
21
|
+
/** Toward no picture, it goes this much less far than the finger (a rubber band), and comes back. */
|
|
22
|
+
const RESIST = 0.3;
|
|
23
|
+
/** Let go this far of its width, it goes on to the picture beside it. */
|
|
24
|
+
const FAR = 0.25;
|
|
25
|
+
/** How long it slides on, let go slowly. */
|
|
26
|
+
const SETTLE_MS = 320;
|
|
27
|
+
function edges(scrollLeft: number, scrollWidth: number, clientWidth: number): ImageSwipeEdges;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the move so far (`dx`, `dy`) is a swipe to the picture beside: undefined until it is told, false when it
|
|
30
|
+
* goes more down than sideways, or the picture still scrolls that way (`edges`, where it was when the finger came).
|
|
31
|
+
*/
|
|
32
|
+
function claims(dx: number, dy: number, edges: ImageSwipeEdges): boolean | undefined;
|
|
33
|
+
/** Where the picture is, the finger moved `dx`: with it toward a picture, less far toward none. */
|
|
34
|
+
function offset(dx: number, beside: ImageSwipeBeside): number;
|
|
35
|
+
/**
|
|
36
|
+
* Where it goes, let go `dx` from where it set off at `speed` (pixels a millisecond) in a box `width` wide:
|
|
37
|
+
* flicked, the way it was flicked; else on when it went FAR; never to a picture that is not there.
|
|
38
|
+
*/
|
|
39
|
+
function goes(dx: number, speed: number, width: number, beside: ImageSwipeBeside): ImageSwipeWay | undefined;
|
|
40
|
+
/** Where it slides to: out of sight for the picture beside, or back. */
|
|
41
|
+
function rest(way: ImageSwipeWay | undefined, width: number): number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SwipeUtil } from '../device/swipe-util.js';
|
|
2
|
+
/**
|
|
3
|
+
* A finger that swipes a picture sideways goes to the one beside it, as the viewers of pictures of a phone do:
|
|
4
|
+
* the picture follows the finger with the one beside it in sight, and let go far enough, or flicked, slides out
|
|
5
|
+
* for it. Zoomed in, the finger scrolls the picture, and only from its edge goes on to the next. Pure, for the tests.
|
|
6
|
+
*/
|
|
7
|
+
export var ImageSwipeUtil;
|
|
8
|
+
(function (ImageSwipeUtil) {
|
|
9
|
+
/** The space between two pictures as they slide. */
|
|
10
|
+
ImageSwipeUtil.GAP = 20;
|
|
11
|
+
/** Toward no picture, it goes this much less far than the finger (a rubber band), and comes back. */
|
|
12
|
+
ImageSwipeUtil.RESIST = 0.3;
|
|
13
|
+
/** Let go this far of its width, it goes on to the picture beside it. */
|
|
14
|
+
ImageSwipeUtil.FAR = 0.25;
|
|
15
|
+
/** How long it slides on, let go slowly. */
|
|
16
|
+
ImageSwipeUtil.SETTLE_MS = 320;
|
|
17
|
+
/** Within this of an edge, it is at that edge (scrolls are fractional). */
|
|
18
|
+
const EDGE_PX = 1;
|
|
19
|
+
function edges(scrollLeft, scrollWidth, clientWidth) {
|
|
20
|
+
return { start: scrollLeft <= EDGE_PX, end: scrollLeft >= scrollWidth - clientWidth - EDGE_PX };
|
|
21
|
+
}
|
|
22
|
+
ImageSwipeUtil.edges = edges;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the move so far (`dx`, `dy`) is a swipe to the picture beside: undefined until it is told, false when it
|
|
25
|
+
* goes more down than sideways, or the picture still scrolls that way (`edges`, where it was when the finger came).
|
|
26
|
+
*/
|
|
27
|
+
function claims(dx, dy, edges) {
|
|
28
|
+
if (Math.hypot(dx, dy) < SwipeUtil.SLOP_PX) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (Math.abs(dx) <= Math.abs(dy) * 1.2) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return dx > 0 ? edges.start : edges.end;
|
|
35
|
+
}
|
|
36
|
+
ImageSwipeUtil.claims = claims;
|
|
37
|
+
/** Where the picture is, the finger moved `dx`: with it toward a picture, less far toward none. */
|
|
38
|
+
function offset(dx, beside) {
|
|
39
|
+
const toward = dx > 0 ? beside.previous : beside.next;
|
|
40
|
+
return toward ? dx : dx * ImageSwipeUtil.RESIST;
|
|
41
|
+
}
|
|
42
|
+
ImageSwipeUtil.offset = offset;
|
|
43
|
+
/**
|
|
44
|
+
* Where it goes, let go `dx` from where it set off at `speed` (pixels a millisecond) in a box `width` wide:
|
|
45
|
+
* flicked, the way it was flicked; else on when it went FAR; never to a picture that is not there.
|
|
46
|
+
*/
|
|
47
|
+
function goes(dx, speed, width, beside) {
|
|
48
|
+
const flicked = Math.abs(speed) > SwipeUtil.FLICK;
|
|
49
|
+
const way = flicked ? Math.sign(speed) : Math.abs(dx) > width * ImageSwipeUtil.FAR ? Math.sign(dx) : 0;
|
|
50
|
+
// A flick back toward where it was stays.
|
|
51
|
+
if (way === 0 || Math.sign(dx) !== way) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (way > 0) {
|
|
55
|
+
return beside.previous ? 'previous' : undefined;
|
|
56
|
+
}
|
|
57
|
+
return beside.next ? 'next' : undefined;
|
|
58
|
+
}
|
|
59
|
+
ImageSwipeUtil.goes = goes;
|
|
60
|
+
/** Where it slides to: out of sight for the picture beside, or back. */
|
|
61
|
+
function rest(way, width) {
|
|
62
|
+
return way === 'next' ? -(width + ImageSwipeUtil.GAP) : way === 'previous' ? width + ImageSwipeUtil.GAP : 0;
|
|
63
|
+
}
|
|
64
|
+
ImageSwipeUtil.rest = rest;
|
|
65
|
+
})(ImageSwipeUtil || (ImageSwipeUtil = {}));
|
|
66
|
+
//# sourceMappingURL=image-swipe.js.map
|
|
@@ -33,6 +33,21 @@ export type ProcessStep = {
|
|
|
33
33
|
key: string;
|
|
34
34
|
message: SessionMessage;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* A thing ta did, as one line of the work: a call of a tool, with the thoughts that led to it and, for a script of
|
|
38
|
+
* another agent (its REPL), the calls the script made, which that agent reports after it as calls of their own. The
|
|
39
|
+
* other steps stay as they are: what ta said on the way, a card, what the user said, an error; and a thought not
|
|
40
|
+
* followed by a call (the latest, while ta thinks).
|
|
41
|
+
*/
|
|
42
|
+
export type ProcessAct = Exclude<ProcessStep, {
|
|
43
|
+
kind: 'tool';
|
|
44
|
+
}> | {
|
|
45
|
+
kind: 'tool';
|
|
46
|
+
key: string;
|
|
47
|
+
call: ContentBlock;
|
|
48
|
+
nested: ContentBlock[];
|
|
49
|
+
thoughts: string[];
|
|
50
|
+
};
|
|
36
51
|
/**
|
|
37
52
|
* How a turn that is over ended, when not with a reply: an error, stopped by the user, cut off in the middle of
|
|
38
53
|
* its work (the service stopped, the agent ended its turn with calls not done), or without a word after its work.
|
|
@@ -62,6 +77,8 @@ export interface TurnItem {
|
|
|
62
77
|
last?: SessionMessage;
|
|
63
78
|
/** The agent is still at it. */
|
|
64
79
|
active: boolean;
|
|
80
|
+
/** Ta restarted in the middle of it and the work went on (TA_RESUME_MESSAGE next): not cut off, as the user sees it. */
|
|
81
|
+
resumed?: boolean;
|
|
65
82
|
}
|
|
66
83
|
export type ThreadItem = MessageItem | TurnItem;
|
|
67
84
|
/** While the agent works, only the latest steps show; the earlier ones fold into one row. */
|
|
@@ -110,10 +127,18 @@ export declare namespace ProcessUtil {
|
|
|
110
127
|
function compaction(item: TurnItem): string | undefined;
|
|
111
128
|
/** The tool calls: what "N steps" counts. */
|
|
112
129
|
function tools(steps: ProcessStep[]): ContentBlock[];
|
|
130
|
+
/**
|
|
131
|
+
* The steps as the things ta did (ProcessAct): a thought goes with the call after it, and a call another agent's
|
|
132
|
+
* script made goes with the script. A thought with no call after it stays a step while ta works (`active`): what
|
|
133
|
+
* it thinks now; once the turn is over it goes with the last thing done.
|
|
134
|
+
*/
|
|
135
|
+
function acts(steps: ProcessStep[], active?: boolean): ProcessAct[];
|
|
113
136
|
/** The steps shown: all of them, or while it works the latest few when more than two would fold. */
|
|
114
|
-
function fold
|
|
137
|
+
function fold<T extends {
|
|
138
|
+
key: string;
|
|
139
|
+
}>(steps: T[], active: boolean, showAll: boolean, visible?: number): {
|
|
115
140
|
hidden: number;
|
|
116
|
-
steps:
|
|
141
|
+
steps: T[];
|
|
117
142
|
};
|
|
118
143
|
/** One line of thinking, without markdown: what a folded thought shows. */
|
|
119
144
|
function preview(text: string, length?: number): string;
|
|
@@ -131,7 +156,10 @@ export declare namespace ProcessUtil {
|
|
|
131
156
|
* false), unless a web extension registered a renderer for its type (`renderers`).
|
|
132
157
|
*/
|
|
133
158
|
function shown(item: ThreadItem, renderers: Readonly<Record<string, unknown>>): boolean;
|
|
134
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* A message the page draws nothing for: pi's note of a change to the system prompt (`system`), or a custom message
|
|
161
|
+
* with `display` false and no renderer of a web extension for its type.
|
|
162
|
+
*/
|
|
135
163
|
function hidden(message: SessionMessage, renderers: Readonly<Record<string, unknown>>): boolean;
|
|
136
164
|
/**
|
|
137
165
|
* What the user said next after each turn (`said` reads a message of theirs), undefined for one they did not answer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TaAgentSummary } from '@celljs/ta-protocol';
|
|
1
|
+
import { TA_RESUME_MESSAGE, TaAgentSummary } from '@celljs/ta-protocol';
|
|
2
2
|
import { MessageUtil } from './message.js';
|
|
3
3
|
/** While the agent works, only the latest steps show; the earlier ones fold into one row. */
|
|
4
4
|
export const VISIBLE_STEPS = 8;
|
|
@@ -22,7 +22,7 @@ export var ProcessUtil;
|
|
|
22
22
|
* the middle of a turn, the message that asked for it, first, with the key it has once loaded.
|
|
23
23
|
*/
|
|
24
24
|
function items(messages, working, offset = 0, renderers = {}, head) {
|
|
25
|
-
var _a;
|
|
25
|
+
var _a, _b;
|
|
26
26
|
const items = [];
|
|
27
27
|
if (head && head.index < offset) {
|
|
28
28
|
items.push({ kind: 'message', key: `m${head.index}`, message: head.message });
|
|
@@ -44,9 +44,13 @@ export var ProcessUtil;
|
|
|
44
44
|
(TURN_ROLES.has(messages[index].role) || hidden(messages[index], renderers) || steered(messages, index))) {
|
|
45
45
|
index++;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
const item = turn(messages.slice(start, index), offset + start, working && index === messages.length);
|
|
48
|
+
if (((_a = messages[index]) === null || _a === void 0 ? void 0 : _a.customType) === TA_RESUME_MESSAGE) {
|
|
49
|
+
item.resumed = true;
|
|
50
|
+
}
|
|
51
|
+
items.push(item);
|
|
48
52
|
}
|
|
49
|
-
if (working && ((
|
|
53
|
+
if (working && ((_b = items[items.length - 1]) === null || _b === void 0 ? void 0 : _b.kind) !== 'turn') {
|
|
50
54
|
items.push({ kind: 'turn', key: `t${offset + messages.length}`, messages: [], steps: [], reply: [], active: true });
|
|
51
55
|
}
|
|
52
56
|
return items;
|
|
@@ -151,7 +155,14 @@ export var ProcessUtil;
|
|
|
151
155
|
return undefined;
|
|
152
156
|
}
|
|
153
157
|
const stopReason = MessageUtil.stopReason(item.last);
|
|
154
|
-
if (stopReason === 'error'
|
|
158
|
+
if (stopReason === 'error') {
|
|
159
|
+
return stopReason;
|
|
160
|
+
}
|
|
161
|
+
// Cut off by a restart of Ta and gone on with after it, which the mark of it under the turn says.
|
|
162
|
+
if (item.resumed) {
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
|
165
|
+
if (stopReason === 'aborted') {
|
|
155
166
|
return stopReason;
|
|
156
167
|
}
|
|
157
168
|
const roles = item.messages.map(message => message.role).filter(role => TURN_ROLES.has(role));
|
|
@@ -182,6 +193,56 @@ export var ProcessUtil;
|
|
|
182
193
|
return steps.flatMap(step => (step.kind === 'tool' ? [step.call] : []));
|
|
183
194
|
}
|
|
184
195
|
ProcessUtil.tools = tools;
|
|
196
|
+
/**
|
|
197
|
+
* The steps as the things ta did (ProcessAct): a thought goes with the call after it, and a call another agent's
|
|
198
|
+
* script made goes with the script. A thought with no call after it stays a step while ta works (`active`): what
|
|
199
|
+
* it thinks now; once the turn is over it goes with the last thing done.
|
|
200
|
+
*/
|
|
201
|
+
function acts(steps, active = true) {
|
|
202
|
+
var _a;
|
|
203
|
+
const out = [];
|
|
204
|
+
let thoughts = [];
|
|
205
|
+
let script;
|
|
206
|
+
for (const step of steps) {
|
|
207
|
+
if (step.kind === 'thinking') {
|
|
208
|
+
thoughts.push(step);
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if (step.kind !== 'tool') {
|
|
212
|
+
out.push(...thoughts, step);
|
|
213
|
+
thoughts = [];
|
|
214
|
+
script = undefined;
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
const args = ((_a = step.call.arguments) !== null && _a !== void 0 ? _a : {});
|
|
218
|
+
if (step.call.name === 'agent_tool' && args.tool !== 'REPL' && script) {
|
|
219
|
+
// An agent whose tools are in its script calls nothing but the script: what comes after it, the script did.
|
|
220
|
+
script.nested.push(step.call);
|
|
221
|
+
script.thoughts.push(...thoughts.map(thought => thought.text));
|
|
222
|
+
thoughts = [];
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
const act = {
|
|
226
|
+
kind: 'tool',
|
|
227
|
+
key: step.key,
|
|
228
|
+
call: step.call,
|
|
229
|
+
nested: [],
|
|
230
|
+
thoughts: thoughts.map(thought => thought.text),
|
|
231
|
+
};
|
|
232
|
+
thoughts = [];
|
|
233
|
+
script = step.call.name === 'agent_tool' && args.tool === 'REPL' ? act : undefined;
|
|
234
|
+
out.push(act);
|
|
235
|
+
}
|
|
236
|
+
const last = out[out.length - 1];
|
|
237
|
+
if (!active && (last === null || last === void 0 ? void 0 : last.kind) === 'tool') {
|
|
238
|
+
last.thoughts.push(...thoughts.map(thought => thought.text));
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
out.push(...thoughts);
|
|
242
|
+
}
|
|
243
|
+
return out;
|
|
244
|
+
}
|
|
245
|
+
ProcessUtil.acts = acts;
|
|
185
246
|
/** The steps shown: all of them, or while it works the latest few when more than two would fold. */
|
|
186
247
|
function fold(steps, active, showAll, visible = VISIBLE_STEPS) {
|
|
187
248
|
if (!active || showAll || steps.length <= visible + 2) {
|
|
@@ -253,10 +314,13 @@ export var ProcessUtil;
|
|
|
253
314
|
return item.kind === 'turn' || !hidden(item.message, renderers);
|
|
254
315
|
}
|
|
255
316
|
ProcessUtil.shown = shown;
|
|
256
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* A message the page draws nothing for: pi's note of a change to the system prompt (`system`), or a custom message
|
|
319
|
+
* with `display` false and no renderer of a web extension for its type.
|
|
320
|
+
*/
|
|
257
321
|
function hidden(message, renderers) {
|
|
258
322
|
const { role, display, customType } = message;
|
|
259
|
-
return role === 'custom' && !display && (customType === undefined || renderers[customType] === undefined);
|
|
323
|
+
return role === 'system' || (role === 'custom' && !display && (customType === undefined || renderers[customType] === undefined));
|
|
260
324
|
}
|
|
261
325
|
ProcessUtil.hidden = hidden;
|
|
262
326
|
/**
|
|
@@ -327,7 +391,10 @@ export var ProcessUtil;
|
|
|
327
391
|
if (a.kind === 'message' || b.kind === 'message') {
|
|
328
392
|
return a.kind === b.kind && a.message === b.message && a.queued === b.queued;
|
|
329
393
|
}
|
|
330
|
-
return a.active === b.active &&
|
|
394
|
+
return (a.active === b.active &&
|
|
395
|
+
a.resumed === b.resumed &&
|
|
396
|
+
a.messages.length === b.messages.length &&
|
|
397
|
+
a.messages.every((message, index) => message === b.messages[index]));
|
|
331
398
|
}
|
|
332
399
|
ProcessUtil.same = same;
|
|
333
400
|
})(ProcessUtil || (ProcessUtil = {}));
|
|
@@ -11,6 +11,11 @@ export declare namespace ShareLinkUtil {
|
|
|
11
11
|
function published(source: string | undefined): source is string;
|
|
12
12
|
/** What a link, `#open=<source>` of an address of Ta Web, or a source itself carries; undefined for anything else (a path of this computer too). */
|
|
13
13
|
function sourceOf(text: string): string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Whether a link brings an extension: `ta://open?source=`, `#open=` of an address of Ta Web, a source of npm or Git
|
|
16
|
+
* that is not a plain page of the web, or a link of the relay to a package of someone's computer.
|
|
17
|
+
*/
|
|
18
|
+
function ofExtension(text: string): boolean;
|
|
14
19
|
/** The name a link of the relay gives its package, to ask about before it comes. */
|
|
15
20
|
function nameOf(source: string): string | undefined;
|
|
16
21
|
}
|
|
@@ -38,6 +38,16 @@ export var ShareLinkUtil;
|
|
|
38
38
|
return PUBLISHED.test(source) ? source : undefined;
|
|
39
39
|
}
|
|
40
40
|
ShareLinkUtil.sourceOf = sourceOf;
|
|
41
|
+
/**
|
|
42
|
+
* Whether a link brings an extension: `ta://open?source=`, `#open=` of an address of Ta Web, a source of npm or Git
|
|
43
|
+
* that is not a plain page of the web, or a link of the relay to a package of someone's computer.
|
|
44
|
+
*/
|
|
45
|
+
function ofExtension(text) {
|
|
46
|
+
const trimmed = text.trim();
|
|
47
|
+
const source = sourceOf(trimmed);
|
|
48
|
+
return !!source && (source !== trimmed || !/^https?:\/\/\S+$/i.test(trimmed) || relayed(trimmed));
|
|
49
|
+
}
|
|
50
|
+
ShareLinkUtil.ofExtension = ofExtension;
|
|
41
51
|
/** The name a link of the relay gives its package, to ask about before it comes. */
|
|
42
52
|
function nameOf(source) {
|
|
43
53
|
var _a;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MessageId } from '../i18n/messages.js';
|
|
2
|
+
/** A command in the words of a person: what it does (a verb Ta knows) and on what. */
|
|
3
|
+
export interface ShellSaid {
|
|
4
|
+
verb: MessageId;
|
|
5
|
+
target: string;
|
|
6
|
+
/** The target is a pattern or code: set in the monospace font. */
|
|
7
|
+
code: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A command line as a person says what it does: `cd ~/app && git status --short | head` is "View changes",
|
|
11
|
+
* `grep -rn "TODO" src` is "Search TODO". The first command that does the work says it; a command Ta does not
|
|
12
|
+
* know is not said in words (undefined): the line shows it as it is.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace ShellWords {
|
|
15
|
+
function describe(command: string): ShellSaid | undefined;
|
|
16
|
+
/** The command without the `cd dir &&` and `export A=b;` before the one that does the work, as it is written. */
|
|
17
|
+
function work(command: string): string;
|
|
18
|
+
}
|