@celljs/ta-web 4.16.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -1
- package/README.md +2 -1
- package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +11 -8
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +119 -11
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +33 -8
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +24 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +27 -7
- package/esm/browser/assistant/assistant-task-util.js +84 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +2 -4
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +112 -0
- package/esm/browser/assistant/assistant-view.js +79 -130
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +105 -357
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +56 -0
- package/esm/browser/assistant/chat-task-source.js +82 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +138 -0
- package/esm/browser/assistant/realtime-voice.js +479 -0
- package/esm/browser/assistant/task-views.d.ts +11 -9
- package/esm/browser/assistant/task-views.js +47 -25
- package/esm/browser/assistant/voice-call-bar.d.ts +67 -0
- package/esm/browser/assistant/voice-call-bar.js +316 -0
- package/esm/browser/assistant/voice-call.d.ts +207 -0
- package/esm/browser/assistant/voice-call.js +469 -0
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +7 -9
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +26 -2
- package/esm/browser/components/account-menu.js +4 -2
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +6 -2
- package/esm/browser/components/app-nav.js +15 -12
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +471 -0
- package/esm/browser/components/app-view.js +212 -393
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +57 -10
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +10 -2
- package/esm/browser/components/chat-icon.js +32 -6
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +96 -0
- package/esm/browser/components/chat-list-row.js +208 -0
- package/esm/browser/components/chat-list-util.d.ts +197 -0
- package/esm/browser/components/chat-list-util.js +398 -0
- package/esm/browser/components/chat-list.d.ts +6 -190
- package/esm/browser/components/chat-list.js +340 -545
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +54 -154
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +18 -3
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +3 -35
- package/esm/browser/components/conversation-scroll.js +16 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +59 -15
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +9 -4
- package/esm/browser/components/host-view.js +56 -15
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +12 -115
- package/esm/browser/components/image-viewer.js +74 -368
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +6 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +7 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +7 -1
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +22 -454
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +190 -0
- package/esm/browser/components/message-user.d.ts +63 -0
- package/esm/browser/components/message-user.js +204 -0
- package/esm/browser/components/model-picker.d.ts +4 -2
- package/esm/browser/components/model-picker.js +16 -3
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +17 -11
- package/esm/browser/components/nav-places.js +18 -13
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +5 -4
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +53 -20
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +188 -7
- package/esm/browser/components/settings-choices.d.ts +9 -3
- package/esm/browser/components/settings-choices.js +17 -29
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +35 -250
- package/esm/browser/components/settings-view.js +44 -16
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +12 -5
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +160 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +14 -1
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +74 -6
- package/esm/browser/extension/web-api-contributions.d.ts +139 -39
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +126 -63
- package/esm/browser/extension/web-extension-context.d.ts +9 -9
- package/esm/browser/extension/web-extension-context.js +84 -19
- package/esm/browser/extension/web-extension-protocol.d.ts +26 -3
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -2
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +9 -82
- package/esm/browser/extension/web-extensions.js +22 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +8 -1
- package/esm/browser/extension/web-tasks.js +17 -3
- package/esm/browser/extension/web-view-util.d.ts +2 -2
- package/esm/browser/extension/web-view-util.js +7 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -32
- package/esm/browser/gateway/console-parts.js +58 -218
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +118 -209
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +117 -0
- package/esm/browser/gateway/console-view.js +153 -88
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +280 -13
- package/esm/browser/i18n/messages-ja.js +292 -25
- package/esm/browser/i18n/messages-zh-tw.js +292 -25
- package/esm/browser/i18n/messages.d.ts +277 -10
- package/esm/browser/i18n/messages.js +585 -51
- package/esm/browser/index.d.ts +18 -0
- package/esm/browser/index.js +18 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +185 -0
- package/esm/browser/screen/screen-protocol.js +60 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +53 -0
- package/esm/browser/screen/screen.js +292 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +14 -1
- package/esm/browser/settings/settings-protocol.js +24 -2
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +146 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +12 -1
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +150 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +66 -12
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +162 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +8 -540
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +172 -110
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +13 -3
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +24 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +59 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +29 -10
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +37 -5
- package/esm/browser/util/process.js +81 -10
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +29 -0
- package/esm/browser/util/spoken.js +92 -0
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +48 -0
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +31 -3
- package/esm/browser/workbench-services.d.ts +57 -0
- package/esm/browser/workbench-services.js +158 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +9 -89
- package/esm/browser/workbench.js +61 -344
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +11 -8
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +117 -9
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +34 -9
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +25 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +27 -7
- package/lib/browser/assistant/assistant-task-util.js +84 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +3 -5
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +148 -0
- package/lib/browser/assistant/assistant-view.js +76 -127
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +102 -354
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +57 -0
- package/lib/browser/assistant/chat-task-source.js +86 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +139 -0
- package/lib/browser/assistant/realtime-voice.js +483 -0
- package/lib/browser/assistant/task-views.d.ts +11 -9
- package/lib/browser/assistant/task-views.js +47 -24
- package/lib/browser/assistant/voice-call-bar.d.ts +68 -0
- package/lib/browser/assistant/voice-call-bar.js +362 -0
- package/lib/browser/assistant/voice-call.d.ts +208 -0
- package/lib/browser/assistant/voice-call.js +473 -0
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +7 -9
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +26 -2
- package/lib/browser/components/account-menu.js +3 -1
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +6 -2
- package/lib/browser/components/app-nav.js +15 -12
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +507 -0
- package/lib/browser/components/app-view.js +202 -383
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +56 -9
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +10 -2
- package/lib/browser/components/chat-icon.js +32 -6
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +97 -0
- package/lib/browser/components/chat-list-row.js +247 -0
- package/lib/browser/components/chat-list-util.d.ts +198 -0
- package/lib/browser/components/chat-list-util.js +401 -0
- package/lib/browser/components/chat-list.d.ts +6 -190
- package/lib/browser/components/chat-list.js +354 -561
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +56 -157
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +18 -3
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +3 -35
- package/lib/browser/components/conversation-scroll.js +34 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +58 -14
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +9 -4
- package/lib/browser/components/host-view.js +56 -15
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +12 -115
- package/lib/browser/components/image-viewer.js +74 -370
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +6 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +7 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +23 -462
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +226 -0
- package/lib/browser/components/message-user.d.ts +64 -0
- package/lib/browser/components/message-user.js +247 -0
- package/lib/browser/components/model-picker.d.ts +4 -2
- package/lib/browser/components/model-picker.js +16 -3
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +17 -11
- package/lib/browser/components/nav-places.js +20 -14
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +5 -4
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +54 -20
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +188 -7
- package/lib/browser/components/settings-choices.d.ts +10 -4
- package/lib/browser/components/settings-choices.js +16 -28
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +31 -246
- package/lib/browser/components/settings-view.js +44 -16
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +12 -5
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +196 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +13 -0
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +74 -6
- package/lib/browser/extension/web-api-contributions.d.ts +139 -39
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +126 -63
- package/lib/browser/extension/web-extension-context.d.ts +9 -9
- package/lib/browser/extension/web-extension-context.js +86 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +26 -3
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -2
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +9 -82
- package/lib/browser/extension/web-extensions.js +19 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +8 -1
- package/lib/browser/extension/web-tasks.js +17 -3
- package/lib/browser/extension/web-view-util.d.ts +2 -2
- package/lib/browser/extension/web-view-util.js +7 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -32
- package/lib/browser/gateway/console-parts.js +63 -223
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +116 -208
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +153 -0
- package/lib/browser/gateway/console-view.js +151 -86
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +280 -13
- package/lib/browser/i18n/messages-ja.js +292 -25
- package/lib/browser/i18n/messages-zh-tw.js +292 -25
- package/lib/browser/i18n/messages.d.ts +277 -10
- package/lib/browser/i18n/messages.js +585 -51
- package/lib/browser/index.d.ts +18 -0
- package/lib/browser/index.js +18 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +186 -0
- package/lib/browser/screen/screen-protocol.js +63 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +54 -0
- package/lib/browser/screen/screen.js +295 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +14 -1
- package/lib/browser/settings/settings-protocol.js +24 -2
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +182 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +12 -1
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +153 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +66 -12
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +165 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +8 -540
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +172 -110
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +14 -4
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +27 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +59 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +29 -10
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +37 -5
- package/lib/browser/util/process.js +80 -9
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +30 -0
- package/lib/browser/util/spoken.js +95 -0
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +51 -0
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +31 -3
- package/lib/browser/workbench-services.d.ts +58 -0
- package/lib/browser/workbench-services.js +162 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +9 -89
- package/lib/browser/workbench.js +58 -341
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -1,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;
|
|
@@ -18,11 +18,15 @@ export var ProcessUtil;
|
|
|
18
18
|
* the keys stay as earlier messages come in front. A message not shown (see `hidden`) in the middle of
|
|
19
19
|
* the work stays in its turn: an external agent that goes on on its own, with the files it changed
|
|
20
20
|
* noted between, reads as one turn, not as a turn for each time it went on. So does a message of the user it was
|
|
21
|
-
* given on the way (`steered`): a step of the turn, not the start of another.
|
|
21
|
+
* given on the way (`steered`): a step of the turn, not the start of another. `head`: when `messages` start in
|
|
22
|
+
* the middle of a turn, the message that asked for it, first, with the key it has once loaded.
|
|
22
23
|
*/
|
|
23
|
-
function items(messages, working, offset = 0, renderers = {}) {
|
|
24
|
-
var _a;
|
|
24
|
+
function items(messages, working, offset = 0, renderers = {}, head) {
|
|
25
|
+
var _a, _b;
|
|
25
26
|
const items = [];
|
|
27
|
+
if (head && head.index < offset) {
|
|
28
|
+
items.push({ kind: 'message', key: `m${head.index}`, message: head.message });
|
|
29
|
+
}
|
|
26
30
|
let index = 0;
|
|
27
31
|
while (index < messages.length) {
|
|
28
32
|
const role = messages[index].role;
|
|
@@ -40,9 +44,13 @@ export var ProcessUtil;
|
|
|
40
44
|
(TURN_ROLES.has(messages[index].role) || hidden(messages[index], renderers) || steered(messages, index))) {
|
|
41
45
|
index++;
|
|
42
46
|
}
|
|
43
|
-
|
|
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);
|
|
44
52
|
}
|
|
45
|
-
if (working && ((
|
|
53
|
+
if (working && ((_b = items[items.length - 1]) === null || _b === void 0 ? void 0 : _b.kind) !== 'turn') {
|
|
46
54
|
items.push({ kind: 'turn', key: `t${offset + messages.length}`, messages: [], steps: [], reply: [], active: true });
|
|
47
55
|
}
|
|
48
56
|
return items;
|
|
@@ -147,7 +155,14 @@ export var ProcessUtil;
|
|
|
147
155
|
return undefined;
|
|
148
156
|
}
|
|
149
157
|
const stopReason = MessageUtil.stopReason(item.last);
|
|
150
|
-
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') {
|
|
151
166
|
return stopReason;
|
|
152
167
|
}
|
|
153
168
|
const roles = item.messages.map(message => message.role).filter(role => TURN_ROLES.has(role));
|
|
@@ -178,6 +193,56 @@ export var ProcessUtil;
|
|
|
178
193
|
return steps.flatMap(step => (step.kind === 'tool' ? [step.call] : []));
|
|
179
194
|
}
|
|
180
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;
|
|
181
246
|
/** The steps shown: all of them, or while it works the latest few when more than two would fold. */
|
|
182
247
|
function fold(steps, active, showAll, visible = VISIBLE_STEPS) {
|
|
183
248
|
if (!active || showAll || steps.length <= visible + 2) {
|
|
@@ -249,10 +314,13 @@ export var ProcessUtil;
|
|
|
249
314
|
return item.kind === 'turn' || !hidden(item.message, renderers);
|
|
250
315
|
}
|
|
251
316
|
ProcessUtil.shown = shown;
|
|
252
|
-
/**
|
|
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
|
+
*/
|
|
253
321
|
function hidden(message, renderers) {
|
|
254
322
|
const { role, display, customType } = message;
|
|
255
|
-
return role === 'custom' && !display && (customType === undefined || renderers[customType] === undefined);
|
|
323
|
+
return role === 'system' || (role === 'custom' && !display && (customType === undefined || renderers[customType] === undefined));
|
|
256
324
|
}
|
|
257
325
|
ProcessUtil.hidden = hidden;
|
|
258
326
|
/**
|
|
@@ -323,7 +391,10 @@ export var ProcessUtil;
|
|
|
323
391
|
if (a.kind === 'message' || b.kind === 'message') {
|
|
324
392
|
return a.kind === b.kind && a.message === b.message && a.queued === b.queued;
|
|
325
393
|
}
|
|
326
|
-
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]));
|
|
327
398
|
}
|
|
328
399
|
ProcessUtil.same = same;
|
|
329
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
|
+
}
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
/** Commands that only set the stage for the one that does the work: `cd dir && …`. */
|
|
2
|
+
const STAGE = new Set(['cd', 'pushd', 'popd', 'export', 'set', 'source', '.', 'true', ':', 'unset', 'ulimit', 'trap', 'umask']);
|
|
3
|
+
/** Words before a command that leave what it does as it is. */
|
|
4
|
+
const PREFIX = new Set(['sudo', 'time', 'env', 'command', 'exec', 'nohup', 'nice', 'caffeinate', 'stdbuf']);
|
|
5
|
+
/** Flags of grep and its kin that take the next word: it is not the pattern. */
|
|
6
|
+
const SEARCH_VALUE_FLAGS = new Set([
|
|
7
|
+
'-A',
|
|
8
|
+
'-B',
|
|
9
|
+
'-C',
|
|
10
|
+
'-m',
|
|
11
|
+
'-g',
|
|
12
|
+
'-t',
|
|
13
|
+
'-T',
|
|
14
|
+
'--glob',
|
|
15
|
+
'--type',
|
|
16
|
+
'--max-count',
|
|
17
|
+
'--include',
|
|
18
|
+
'--exclude',
|
|
19
|
+
'-d',
|
|
20
|
+
'--max-depth',
|
|
21
|
+
]);
|
|
22
|
+
const SEARCHERS = new Set(['grep', 'egrep', 'fgrep', 'rg', 'ag', 'ack', 'git-grep']);
|
|
23
|
+
const READERS = new Set(['cat', 'head', 'tail', 'less', 'more', 'bat', 'nl', 'sed', 'awk', 'jq', 'xxd', 'od', 'file', 'stat']);
|
|
24
|
+
const MANAGERS = new Set(['bun', 'npm', 'pnpm', 'yarn', 'deno']);
|
|
25
|
+
/** Runners of the scripts of a workspace: `turbo run build` builds. */
|
|
26
|
+
const TASK_RUNNERS = new Set(['turbo', 'nx', 'lerna']);
|
|
27
|
+
const RUNNERS = new Set(['node', 'python', 'python3', 'ruby', 'perl', 'tsx', 'ts-node', 'sh', 'bash', 'zsh']);
|
|
28
|
+
const LINTERS = new Set(['biome', 'eslint', 'prettier', 'oxlint', 'dprint']);
|
|
29
|
+
const TESTERS = new Set(['vitest', 'jest', 'mocha', 'playwright', 'pytest']);
|
|
30
|
+
const COMPILERS = new Set(['tsc', 'tsgo', 'vue-tsc']);
|
|
31
|
+
/** The words of a command, its quotes taken off. Not a shell: enough to tell what it runs and on what. */
|
|
32
|
+
function words(command) {
|
|
33
|
+
const out = [];
|
|
34
|
+
let word = '';
|
|
35
|
+
let quote = '';
|
|
36
|
+
let started = false;
|
|
37
|
+
for (const char of command) {
|
|
38
|
+
if (quote) {
|
|
39
|
+
if (char === quote) {
|
|
40
|
+
quote = '';
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
word += char;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else if (char === '"' || char === "'") {
|
|
47
|
+
quote = char;
|
|
48
|
+
started = true;
|
|
49
|
+
}
|
|
50
|
+
else if (/\s/.test(char)) {
|
|
51
|
+
if (started || word) {
|
|
52
|
+
out.push(word);
|
|
53
|
+
}
|
|
54
|
+
word = '';
|
|
55
|
+
started = false;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
word += char;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (started || word) {
|
|
62
|
+
out.push(word);
|
|
63
|
+
}
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
/** The commands of a line, one after another (`&&`, `||`, `;`, new lines), each without what it pipes into. */
|
|
67
|
+
function commands(line) {
|
|
68
|
+
const out = [];
|
|
69
|
+
let current = '';
|
|
70
|
+
let quote = '';
|
|
71
|
+
let depth = 0;
|
|
72
|
+
const flush = () => {
|
|
73
|
+
if (current.trim()) {
|
|
74
|
+
out.push(current.trim());
|
|
75
|
+
}
|
|
76
|
+
current = '';
|
|
77
|
+
};
|
|
78
|
+
for (let index = 0; index < line.length; index++) {
|
|
79
|
+
const char = line[index];
|
|
80
|
+
const next = line[index + 1];
|
|
81
|
+
if (quote) {
|
|
82
|
+
current += char;
|
|
83
|
+
if (char === quote) {
|
|
84
|
+
quote = '';
|
|
85
|
+
}
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (char === '"' || char === "'") {
|
|
89
|
+
quote = char;
|
|
90
|
+
current += char;
|
|
91
|
+
}
|
|
92
|
+
else if (char === '$' && next === '(') {
|
|
93
|
+
depth++;
|
|
94
|
+
current += char;
|
|
95
|
+
}
|
|
96
|
+
else if (char === ')' && depth > 0) {
|
|
97
|
+
depth--;
|
|
98
|
+
current += char;
|
|
99
|
+
}
|
|
100
|
+
else if (depth === 0 && ((char === '&' && next === '&') || (char === '|' && next === '|'))) {
|
|
101
|
+
flush();
|
|
102
|
+
index++;
|
|
103
|
+
}
|
|
104
|
+
else if (depth === 0 && (char === ';' || char === '\n')) {
|
|
105
|
+
flush();
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
current += char;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
flush();
|
|
112
|
+
// What a command pipes into only shapes its output: the first of the pipe is what it does.
|
|
113
|
+
return out.map(command => splitPipe(command)).filter(Boolean);
|
|
114
|
+
}
|
|
115
|
+
function splitPipe(command) {
|
|
116
|
+
let quote = '';
|
|
117
|
+
for (let index = 0; index < command.length; index++) {
|
|
118
|
+
const char = command[index];
|
|
119
|
+
if (quote) {
|
|
120
|
+
quote = char === quote ? '' : quote;
|
|
121
|
+
}
|
|
122
|
+
else if (char === '"' || char === "'") {
|
|
123
|
+
quote = char;
|
|
124
|
+
}
|
|
125
|
+
else if (char === '|' && command[index + 1] !== '|') {
|
|
126
|
+
return command.slice(0, index).trim();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return command.trim();
|
|
130
|
+
}
|
|
131
|
+
/** The words of a command without what comes before the program: brackets, `A=b`, `sudo`, redirections. */
|
|
132
|
+
function program(command) {
|
|
133
|
+
let list = words(command.replace(/^[({\s]+/, '').replace(/[)}\s]+$/, ''));
|
|
134
|
+
while (list.length) {
|
|
135
|
+
const [first] = list;
|
|
136
|
+
if (/^[A-Za-z_][A-Za-z0-9_]*=/.test(first) || PREFIX.has(first)) {
|
|
137
|
+
list = list.slice(1);
|
|
138
|
+
}
|
|
139
|
+
else if (first === 'timeout' || first === 'gtimeout') {
|
|
140
|
+
list = list.slice(2);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// Redirections and what they point to say where the output goes, not what the command is on.
|
|
147
|
+
const kept = [];
|
|
148
|
+
for (let index = 0; index < list.length; index++) {
|
|
149
|
+
const word = list[index];
|
|
150
|
+
if (/^\d*[<>]{1,2}&?$/.test(word)) {
|
|
151
|
+
index++;
|
|
152
|
+
}
|
|
153
|
+
else if (!/^\d*[<>]{1,2}&?\S/.test(word)) {
|
|
154
|
+
kept.push(word);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return kept;
|
|
158
|
+
}
|
|
159
|
+
function name(path) {
|
|
160
|
+
return path.replace(/\/+$/, '').split('/').pop() || path;
|
|
161
|
+
}
|
|
162
|
+
/** The words after the program that are not flags. */
|
|
163
|
+
function operands(args) {
|
|
164
|
+
return args.filter(arg => arg && !arg.startsWith('-'));
|
|
165
|
+
}
|
|
166
|
+
function pattern(args) {
|
|
167
|
+
const flag = args.findIndex(arg => arg === '-e' || arg === '--regexp');
|
|
168
|
+
if (flag >= 0 && args[flag + 1]) {
|
|
169
|
+
return args[flag + 1];
|
|
170
|
+
}
|
|
171
|
+
for (let index = 0; index < args.length; index++) {
|
|
172
|
+
const arg = args[index];
|
|
173
|
+
if (SEARCH_VALUE_FLAGS.has(arg)) {
|
|
174
|
+
index++;
|
|
175
|
+
}
|
|
176
|
+
else if (!arg.startsWith('-')) {
|
|
177
|
+
return arg;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return '';
|
|
181
|
+
}
|
|
182
|
+
function host(args) {
|
|
183
|
+
var _a;
|
|
184
|
+
for (const arg of args) {
|
|
185
|
+
const match = /^https?:\/\/([^/?#\s]+)/.exec(arg);
|
|
186
|
+
if (match) {
|
|
187
|
+
return match[1];
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return (_a = operands(args)[0]) !== null && _a !== void 0 ? _a : '';
|
|
191
|
+
}
|
|
192
|
+
/** What a script of a package (`bun run build`) does, by its name. */
|
|
193
|
+
function script(task, rest) {
|
|
194
|
+
if (/(^|:)test|spec|e2e/.test(task)) {
|
|
195
|
+
return { verb: 'ta.shell.test', target: operands(rest).join(' '), code: false };
|
|
196
|
+
}
|
|
197
|
+
if (/typecheck|tsc|types/.test(task)) {
|
|
198
|
+
return { verb: 'ta.shell.typecheck', target: '', code: false };
|
|
199
|
+
}
|
|
200
|
+
if (/lint|check|format|biome/.test(task)) {
|
|
201
|
+
return { verb: 'ta.shell.lint', target: '', code: false };
|
|
202
|
+
}
|
|
203
|
+
if (/build|bundle|compile|package/.test(task)) {
|
|
204
|
+
return { verb: 'ta.shell.build', target: '', code: false };
|
|
205
|
+
}
|
|
206
|
+
return { verb: 'ta.tool.verb.bash', target: [task, ...rest].join(' '), code: true };
|
|
207
|
+
}
|
|
208
|
+
function manager(tool, args) {
|
|
209
|
+
var _a;
|
|
210
|
+
const [sub = '', ...rest] = args;
|
|
211
|
+
if (sub === 'test' || (tool === 'deno' && sub === 'test')) {
|
|
212
|
+
return { verb: 'ta.shell.test', target: operands(rest).map(name).join(' '), code: false };
|
|
213
|
+
}
|
|
214
|
+
if (['install', 'i', 'ci', 'add'].includes(sub)) {
|
|
215
|
+
return { verb: 'ta.shell.install', target: operands(rest).join(' '), code: false };
|
|
216
|
+
}
|
|
217
|
+
if (sub === 'run' || sub === 'run-script') {
|
|
218
|
+
const [task = '', ...more] = rest.filter(arg => !arg.startsWith('-') || rest.indexOf(arg) > 0);
|
|
219
|
+
return task ? script(task, more) : undefined;
|
|
220
|
+
}
|
|
221
|
+
if (tool === 'deno' && sub === 'run') {
|
|
222
|
+
return { verb: 'ta.tool.verb.bash', target: name((_a = operands(rest)[0]) !== null && _a !== void 0 ? _a : ''), code: false };
|
|
223
|
+
}
|
|
224
|
+
if (sub === 'x' || sub === 'exec' || sub === 'dlx') {
|
|
225
|
+
return describeWords(rest);
|
|
226
|
+
}
|
|
227
|
+
// `bun file.ts` runs the file; `bun build`, `bun lint` the scripts of the package.
|
|
228
|
+
if (/\.[cm]?[jt]sx?$/.test(sub)) {
|
|
229
|
+
return { verb: 'ta.tool.verb.bash', target: name(sub), code: false };
|
|
230
|
+
}
|
|
231
|
+
return sub && !sub.startsWith('-') ? script(sub, rest) : undefined;
|
|
232
|
+
}
|
|
233
|
+
function git(args) {
|
|
234
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
235
|
+
let index = 0;
|
|
236
|
+
// `git -C dir …`, `git -c key=value …`: where and how, not what.
|
|
237
|
+
while (index < args.length && args[index].startsWith('-')) {
|
|
238
|
+
index += args[index] === '-C' || args[index] === '-c' ? 2 : 1;
|
|
239
|
+
}
|
|
240
|
+
const sub = (_a = args[index]) !== null && _a !== void 0 ? _a : '';
|
|
241
|
+
const rest = args.slice(index + 1);
|
|
242
|
+
const plain = (verb, target = '') => ({ verb, target, code: false });
|
|
243
|
+
switch (sub) {
|
|
244
|
+
case 'status':
|
|
245
|
+
return plain('ta.shell.gitStatus');
|
|
246
|
+
case 'log':
|
|
247
|
+
case 'reflog':
|
|
248
|
+
return plain('ta.shell.gitLog');
|
|
249
|
+
case 'diff':
|
|
250
|
+
return plain('ta.shell.gitDiff', operands(rest).map(name).join(' '));
|
|
251
|
+
case 'show':
|
|
252
|
+
return plain('ta.shell.gitShow', (_b = operands(rest)[0]) !== null && _b !== void 0 ? _b : '');
|
|
253
|
+
case 'add':
|
|
254
|
+
return plain('ta.shell.gitAdd');
|
|
255
|
+
case 'commit': {
|
|
256
|
+
const message = rest.findIndex(arg => arg === '-m' || arg === '--message');
|
|
257
|
+
return plain('ta.shell.gitCommit', message >= 0 ? ((_c = rest[message + 1]) !== null && _c !== void 0 ? _c : '').split('\n')[0] : '');
|
|
258
|
+
}
|
|
259
|
+
case 'push':
|
|
260
|
+
return plain('ta.shell.gitPush');
|
|
261
|
+
case 'pull':
|
|
262
|
+
case 'fetch':
|
|
263
|
+
return plain('ta.shell.gitPull');
|
|
264
|
+
case 'rebase':
|
|
265
|
+
return plain('ta.shell.gitRebase', (_d = operands(rest)[0]) !== null && _d !== void 0 ? _d : '');
|
|
266
|
+
case 'merge':
|
|
267
|
+
return plain('ta.shell.gitMerge', (_e = operands(rest)[0]) !== null && _e !== void 0 ? _e : '');
|
|
268
|
+
case 'checkout':
|
|
269
|
+
case 'switch':
|
|
270
|
+
return plain('ta.shell.gitSwitch', (_f = operands(rest)[0]) !== null && _f !== void 0 ? _f : '');
|
|
271
|
+
case 'worktree':
|
|
272
|
+
if (rest[0] === 'add') {
|
|
273
|
+
return plain('ta.shell.gitWorktree', name((_g = operands(rest.slice(1))[0]) !== null && _g !== void 0 ? _g : ''));
|
|
274
|
+
}
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
return { verb: 'ta.tool.verb.bash', target: ['git', ...args.slice(index, index + 3)].join(' '), code: true };
|
|
278
|
+
}
|
|
279
|
+
/** `dir`: where an earlier `cd` of the line went, what a command on no path works on. */
|
|
280
|
+
function describeWords(list, dir = '') {
|
|
281
|
+
var _a;
|
|
282
|
+
const [tool = '', ...args] = list;
|
|
283
|
+
const base = name(tool);
|
|
284
|
+
if (SEARCHERS.has(base)) {
|
|
285
|
+
return { verb: 'ta.tool.verb.grep', target: pattern(args), code: true };
|
|
286
|
+
}
|
|
287
|
+
if (base === 'git') {
|
|
288
|
+
return args[0] === 'grep' ? { verb: 'ta.tool.verb.grep', target: pattern(args.slice(1)), code: true } : git(args);
|
|
289
|
+
}
|
|
290
|
+
if (READERS.has(base)) {
|
|
291
|
+
const files = operands(args).filter(arg => !/^\d+(,\d+)?p?$/.test(arg) && !/^[{'"$]/.test(arg));
|
|
292
|
+
const file = files[files.length - 1];
|
|
293
|
+
return file ? { verb: 'ta.tool.verb.read', target: name(file), code: false } : undefined;
|
|
294
|
+
}
|
|
295
|
+
if (base === 'ls' || base === 'tree') {
|
|
296
|
+
return { verb: 'ta.tool.verb.ls', target: operands(args).map(name).join(' ') || name(dir), code: false };
|
|
297
|
+
}
|
|
298
|
+
if (base === 'find' || base === 'fd') {
|
|
299
|
+
const [where = ''] = operands(args);
|
|
300
|
+
return { verb: 'ta.tool.verb.find', target: where && where !== '.' ? name(where) : name(dir), code: false };
|
|
301
|
+
}
|
|
302
|
+
if (base === 'wc') {
|
|
303
|
+
return { verb: 'ta.shell.count', target: operands(args).map(name).join(' '), code: false };
|
|
304
|
+
}
|
|
305
|
+
if (MANAGERS.has(base)) {
|
|
306
|
+
return manager(base, args);
|
|
307
|
+
}
|
|
308
|
+
if (base === 'npx' || base === 'bunx' || base === 'pnpx') {
|
|
309
|
+
return describeWords(args.filter(arg => !arg.startsWith('-')));
|
|
310
|
+
}
|
|
311
|
+
if (TASK_RUNNERS.has(base)) {
|
|
312
|
+
const [first = '', ...rest] = operands(args);
|
|
313
|
+
const task = first === 'run' || first === 'exec' ? rest[0] : first;
|
|
314
|
+
return task ? script(task, []) : undefined;
|
|
315
|
+
}
|
|
316
|
+
if (TESTERS.has(base)) {
|
|
317
|
+
return { verb: 'ta.shell.test', target: '', code: false };
|
|
318
|
+
}
|
|
319
|
+
if (COMPILERS.has(base)) {
|
|
320
|
+
return { verb: 'ta.shell.typecheck', target: '', code: false };
|
|
321
|
+
}
|
|
322
|
+
if (LINTERS.has(base)) {
|
|
323
|
+
return { verb: 'ta.shell.lint', target: '', code: false };
|
|
324
|
+
}
|
|
325
|
+
if (RUNNERS.has(base)) {
|
|
326
|
+
const file = operands(args)[0];
|
|
327
|
+
return file && !args.includes('-e') && !args.includes('-c') ? { verb: 'ta.tool.verb.bash', target: name(file), code: false } : undefined;
|
|
328
|
+
}
|
|
329
|
+
switch (base) {
|
|
330
|
+
case 'curl':
|
|
331
|
+
case 'wget':
|
|
332
|
+
case 'http':
|
|
333
|
+
return { verb: 'ta.shell.request', target: host(args), code: false };
|
|
334
|
+
case 'mkdir':
|
|
335
|
+
return { verb: 'ta.shell.mkdir', target: operands(args).map(name).join(' '), code: false };
|
|
336
|
+
case 'rm':
|
|
337
|
+
case 'rmdir':
|
|
338
|
+
case 'trash':
|
|
339
|
+
return { verb: 'ta.shell.remove', target: operands(args).map(name).join(' '), code: false };
|
|
340
|
+
case 'mv':
|
|
341
|
+
return { verb: 'ta.shell.move', target: operands(args).map(name).join(' → '), code: false };
|
|
342
|
+
case 'cp':
|
|
343
|
+
case 'ditto':
|
|
344
|
+
case 'rsync':
|
|
345
|
+
return { verb: 'ta.shell.copy', target: operands(args).map(name).join(' → '), code: false };
|
|
346
|
+
case 'open':
|
|
347
|
+
return { verb: 'ta.shell.open', target: name((_a = operands(args)[0]) !== null && _a !== void 0 ? _a : ''), code: false };
|
|
348
|
+
case 'kill':
|
|
349
|
+
case 'pkill':
|
|
350
|
+
case 'killall':
|
|
351
|
+
return { verb: 'ta.shell.kill', target: operands(args).join(' '), code: false };
|
|
352
|
+
case 'sleep':
|
|
353
|
+
return { verb: 'ta.shell.wait', target: args[0] ? `${args[0]}s` : '', code: false };
|
|
354
|
+
case 'ps':
|
|
355
|
+
case 'lsof':
|
|
356
|
+
case 'pgrep':
|
|
357
|
+
return { verb: 'ta.shell.processes', target: '', code: false };
|
|
358
|
+
}
|
|
359
|
+
return undefined;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* A command line as a person says what it does: `cd ~/app && git status --short | head` is "View changes",
|
|
363
|
+
* `grep -rn "TODO" src` is "Search TODO". The first command that does the work says it; a command Ta does not
|
|
364
|
+
* know is not said in words (undefined): the line shows it as it is.
|
|
365
|
+
*/
|
|
366
|
+
export var ShellWords;
|
|
367
|
+
(function (ShellWords) {
|
|
368
|
+
function describe(command) {
|
|
369
|
+
var _a;
|
|
370
|
+
let dir = '';
|
|
371
|
+
for (const line of commands(command)) {
|
|
372
|
+
const list = program(line);
|
|
373
|
+
if (list[0] === 'cd' || list[0] === 'pushd') {
|
|
374
|
+
dir = (_a = list[1]) !== null && _a !== void 0 ? _a : '';
|
|
375
|
+
}
|
|
376
|
+
if (!list.length || STAGE.has(list[0]) || list[0] === 'echo' || list[0] === 'printf') {
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
return describeWords(list, dir === '.' || dir === '~' ? '' : dir);
|
|
380
|
+
}
|
|
381
|
+
return undefined;
|
|
382
|
+
}
|
|
383
|
+
ShellWords.describe = describe;
|
|
384
|
+
/** The command without the `cd dir &&` and `export A=b;` before the one that does the work, as it is written. */
|
|
385
|
+
function work(command) {
|
|
386
|
+
const lines = commands(command);
|
|
387
|
+
const index = lines.findIndex(line => { var _a; return !STAGE.has((_a = program(line)[0]) !== null && _a !== void 0 ? _a : ''); });
|
|
388
|
+
if (index <= 0) {
|
|
389
|
+
return command;
|
|
390
|
+
}
|
|
391
|
+
const first = lines[index];
|
|
392
|
+
const at = command.indexOf(first.split(/\s/)[0], command.indexOf(lines[index - 1]) + lines[index - 1].length);
|
|
393
|
+
return at > 0 ? command.slice(at) : command;
|
|
394
|
+
}
|
|
395
|
+
ShellWords.work = work;
|
|
396
|
+
})(ShellWords || (ShellWords = {}));
|
|
397
|
+
//# sourceMappingURL=shell-words.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** How a block of a language is said aloud (WebCodeRendererOptions.spoken): what the user must hear of it, or nothing. */
|
|
2
|
+
export type BlockSpeech = Readonly<Record<string, (code: string) => string | undefined>>;
|
|
3
|
+
/**
|
|
4
|
+
* What of a reply is said aloud, the one place that decides it: a call, a reply read out, a voice service.
|
|
5
|
+
*
|
|
6
|
+
* - A reply may hold a block for the ear, ```ta-say, which a call asks the model for (`asked`): that is said, and
|
|
7
|
+
* pages do not show it.
|
|
8
|
+
* - Else what it says is taken by rules: its first sentences (a reply leads with its answer), what the blocks of
|
|
9
|
+
* extensions say of themselves (the choices and risks of a card), never code, tables, pictures or formulas; when
|
|
10
|
+
* something is left on the screen, it says so.
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace SpokenReply {
|
|
13
|
+
/** The language of the block for the ear. */
|
|
14
|
+
const LANGUAGE = "ta-say";
|
|
15
|
+
/** What the model is told with what the user says in a call, in the context of their message: to write the block. */
|
|
16
|
+
const NOTE = "[ta-call] The user talks with you in a voice call: your reply is shown, and Ta reads aloud only a block of language ta-say you end it with. Write one: one to three short sentences in the user's language, as you would say it on the phone: the answer, and what they must decide or know (a question, a failure, a risk). No code, paths, links, tables or lists; say the rest is on the screen when there is more.";
|
|
17
|
+
/** What the user said in a call, as sent to the conversation: with the note, which pages leave out. */
|
|
18
|
+
function asked(text: string): string;
|
|
19
|
+
interface Words {
|
|
20
|
+
/** Said after the rest when something of the reply is only on the screen. */
|
|
21
|
+
onScreen: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A reply written for the ear (the partner of a call, told to only talk), said whole: a poem or a song is not cut
|
|
25
|
+
* to its first sentences, nor sends the user to the screen. Marks and markup are still left out.
|
|
26
|
+
*/
|
|
27
|
+
function whole(markdown: string): string;
|
|
28
|
+
function of(markdown: string, blocks: BlockSpeech, words: Words): string;
|
|
29
|
+
}
|