@celljs/ta-web 4.17.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -1
- package/README.md +2 -1
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-export.js +6 -2
- package/esm/browser/assistant/assistant-extension.js +70 -15
- package/esm/browser/assistant/assistant-role.d.ts +2 -2
- package/esm/browser/assistant/assistant-role.js +7 -4
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +18 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +8 -0
- package/esm/browser/assistant/assistant-task-util.js +14 -3
- package/esm/browser/assistant/assistant-tasks.js +2 -2
- package/esm/browser/assistant/assistant-thread.js +5 -1
- package/esm/browser/assistant/assistant-view.js +3 -5
- package/esm/browser/assistant/assistant.js +2 -1
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +16 -18
- package/esm/browser/assistant/chat-task-source.js +27 -52
- package/esm/browser/assistant/realtime-voice.d.ts +62 -1
- package/esm/browser/assistant/realtime-voice.js +188 -29
- package/esm/browser/assistant/task-views.d.ts +9 -6
- package/esm/browser/assistant/task-views.js +28 -10
- package/esm/browser/assistant/voice-call-bar.d.ts +11 -4
- package/esm/browser/assistant/voice-call-bar.js +102 -46
- package/esm/browser/assistant/voice-call.d.ts +33 -1
- package/esm/browser/assistant/voice-call.js +131 -28
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-view.js +5 -8
- package/esm/browser/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +25 -1
- package/esm/browser/components/account-menu.js +3 -1
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +5 -3
- package/esm/browser/components/app-nav.js +11 -8
- package/esm/browser/components/app-shell-state.d.ts +2 -2
- package/esm/browser/components/app-shell-state.js +33 -28
- package/esm/browser/components/app-view.js +113 -82
- package/esm/browser/components/auth-view.js +3 -5
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +4 -2
- package/esm/browser/components/chat-icon.js +15 -5
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +14 -2
- package/esm/browser/components/chat-list-row.js +27 -17
- package/esm/browser/components/chat-list-util.d.ts +40 -9
- package/esm/browser/components/chat-list-util.js +72 -9
- package/esm/browser/components/chat-list.d.ts +4 -49
- package/esm/browser/components/chat-list.js +118 -87
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- package/esm/browser/components/composer-box.js +7 -0
- package/esm/browser/components/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +14 -3
- package/esm/browser/components/conversation-scroll.d.ts +2 -0
- package/esm/browser/components/conversation-scroll.js +14 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- package/esm/browser/components/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.js +2 -1
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +9 -4
- package/esm/browser/components/host-view.js +53 -14
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +10 -114
- package/esm/browser/components/image-viewer.js +46 -365
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +4 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +5 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +2 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-images.js +1 -1
- package/esm/browser/components/message-list.js +12 -7
- package/esm/browser/components/message-steps.js +31 -23
- package/esm/browser/components/message-user.d.ts +10 -1
- package/esm/browser/components/message-user.js +48 -13
- package/esm/browser/components/model-picker.d.ts +3 -1
- package/esm/browser/components/model-picker.js +14 -3
- package/esm/browser/components/nav-places.d.ts +7 -12
- package/esm/browser/components/nav-places.js +10 -13
- package/esm/browser/components/phone-shell.d.ts +1 -1
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +46 -20
- package/esm/browser/components/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-view.js +44 -13
- package/esm/browser/components/settings-choices.d.ts +3 -3
- package/esm/browser/components/settings-choices.js +9 -29
- package/esm/browser/components/settings-parts.js +5 -2
- package/esm/browser/components/settings-view.js +2 -2
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +2 -1
- package/esm/browser/components/unseen-drop.js +1 -1
- package/esm/browser/components/voice-services.js +26 -3
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/extension/icons.js +13 -2
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +61 -6
- package/esm/browser/extension/web-api-contributions.d.ts +28 -53
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +45 -65
- package/esm/browser/extension/web-extension-context.d.ts +5 -10
- package/esm/browser/extension/web-extension-context.js +33 -21
- package/esm/browser/extension/web-extension-protocol.d.ts +8 -3
- package/esm/browser/extension/web-extension-run.js +0 -1
- package/esm/browser/extension/web-extensions.d.ts +4 -1
- package/esm/browser/extension/web-extensions.js +12 -0
- package/esm/browser/extension/web-tasks.d.ts +6 -1
- package/esm/browser/extension/web-tasks.js +11 -3
- package/esm/browser/extension/web-view-util.d.ts +0 -1
- package/esm/browser/extension/web-view-util.js +4 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -22
- package/esm/browser/gateway/console-parts.js +67 -137
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +117 -209
- package/esm/browser/gateway/console-trend.js +6 -4
- package/esm/browser/gateway/console-view.js +136 -109
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +144 -14
- package/esm/browser/i18n/messages-ja.js +153 -23
- package/esm/browser/i18n/messages-zh-tw.js +153 -23
- package/esm/browser/i18n/messages.d.ts +141 -11
- package/esm/browser/i18n/messages.js +307 -47
- package/esm/browser/index.d.ts +1 -0
- package/esm/browser/index.js +1 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- package/esm/browser/screen/screen-protocol.d.ts +74 -1
- package/esm/browser/screen/screen-protocol.js +15 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +34 -1
- package/esm/browser/screen/screen.js +172 -2
- package/esm/browser/settings/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +9 -0
- package/esm/browser/settings/settings-protocol.js +18 -0
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.js +4 -3
- package/esm/browser/share/shared-page.js +2 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +8 -1
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +0 -3
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +42 -4
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +0 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +7 -15
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +168 -112
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +8 -2
- package/esm/browser/style/shared.d.ts +1 -1
- package/esm/browser/style/shared.js +1 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +12 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +16 -2
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/process.d.ts +31 -3
- package/esm/browser/util/process.js +75 -8
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +5 -0
- package/esm/browser/util/spoken.js +11 -2
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.js +3 -1
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/workbench-hosts.d.ts +1 -1
- package/esm/browser/workbench-hosts.js +2 -2
- package/esm/browser/workbench-protocol.d.ts +18 -3
- package/esm/browser/workbench-services.d.ts +9 -1
- package/esm/browser/workbench-services.js +38 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +3 -0
- package/esm/browser/workbench.js +36 -9
- package/lib/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- package/lib/browser/assistant/assistant-export.js +5 -1
- package/lib/browser/assistant/assistant-extension.js +69 -14
- package/lib/browser/assistant/assistant-role.d.ts +2 -2
- package/lib/browser/assistant/assistant-role.js +7 -4
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +19 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +8 -0
- package/lib/browser/assistant/assistant-task-util.js +14 -3
- package/lib/browser/assistant/assistant-tasks.js +2 -2
- package/lib/browser/assistant/assistant-thread.js +4 -0
- package/lib/browser/assistant/assistant-view.js +3 -5
- package/lib/browser/assistant/assistant.js +2 -1
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +16 -18
- package/lib/browser/assistant/chat-task-source.js +28 -53
- package/lib/browser/assistant/realtime-voice.d.ts +62 -1
- package/lib/browser/assistant/realtime-voice.js +188 -29
- package/lib/browser/assistant/task-views.d.ts +9 -6
- package/lib/browser/assistant/task-views.js +29 -10
- package/lib/browser/assistant/voice-call-bar.d.ts +11 -4
- package/lib/browser/assistant/voice-call-bar.js +102 -46
- package/lib/browser/assistant/voice-call.d.ts +33 -1
- package/lib/browser/assistant/voice-call.js +132 -29
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-view.js +5 -8
- package/lib/browser/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +24 -0
- package/lib/browser/components/account-menu.js +2 -0
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +5 -3
- package/lib/browser/components/app-nav.js +11 -8
- package/lib/browser/components/app-shell-state.d.ts +2 -2
- package/lib/browser/components/app-shell-state.js +33 -28
- package/lib/browser/components/app-view.js +109 -78
- package/lib/browser/components/auth-view.js +3 -5
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +4 -2
- package/lib/browser/components/chat-icon.js +15 -5
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +14 -2
- package/lib/browser/components/chat-list-row.js +27 -16
- package/lib/browser/components/chat-list-util.d.ts +40 -9
- package/lib/browser/components/chat-list-util.js +73 -10
- package/lib/browser/components/chat-list.d.ts +4 -49
- package/lib/browser/components/chat-list.js +121 -90
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-box.js +7 -0
- package/lib/browser/components/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +14 -3
- package/lib/browser/components/conversation-scroll.d.ts +2 -0
- package/lib/browser/components/conversation-scroll.js +14 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- package/lib/browser/components/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.js +2 -1
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +9 -4
- package/lib/browser/components/host-view.js +52 -13
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +10 -114
- package/lib/browser/components/image-viewer.js +47 -368
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +4 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +5 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +2 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-images.js +1 -1
- package/lib/browser/components/message-list.js +12 -7
- package/lib/browser/components/message-steps.js +31 -23
- package/lib/browser/components/message-user.d.ts +10 -1
- package/lib/browser/components/message-user.js +48 -12
- package/lib/browser/components/model-picker.d.ts +3 -1
- package/lib/browser/components/model-picker.js +14 -3
- package/lib/browser/components/nav-places.d.ts +7 -12
- package/lib/browser/components/nav-places.js +10 -13
- package/lib/browser/components/phone-shell.d.ts +1 -1
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +47 -20
- package/lib/browser/components/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-view.js +43 -12
- package/lib/browser/components/settings-choices.d.ts +3 -3
- package/lib/browser/components/settings-choices.js +8 -28
- package/lib/browser/components/settings-parts.js +4 -1
- package/lib/browser/components/settings-view.js +2 -2
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +2 -1
- package/lib/browser/components/unseen-drop.js +1 -1
- package/lib/browser/components/voice-services.js +23 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/extension/icons.js +12 -1
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +61 -6
- package/lib/browser/extension/web-api-contributions.d.ts +28 -53
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +45 -65
- package/lib/browser/extension/web-extension-context.d.ts +5 -10
- package/lib/browser/extension/web-extension-context.js +33 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +8 -3
- package/lib/browser/extension/web-extension-run.js +0 -1
- package/lib/browser/extension/web-extensions.d.ts +4 -1
- package/lib/browser/extension/web-extensions.js +12 -0
- package/lib/browser/extension/web-tasks.d.ts +6 -1
- package/lib/browser/extension/web-tasks.js +11 -3
- package/lib/browser/extension/web-view-util.d.ts +0 -1
- package/lib/browser/extension/web-view-util.js +4 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -22
- package/lib/browser/gateway/console-parts.js +72 -141
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +115 -208
- package/lib/browser/gateway/console-trend.js +6 -4
- package/lib/browser/gateway/console-view.js +134 -107
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +144 -14
- package/lib/browser/i18n/messages-ja.js +153 -23
- package/lib/browser/i18n/messages-zh-tw.js +153 -23
- package/lib/browser/i18n/messages.d.ts +141 -11
- package/lib/browser/i18n/messages.js +307 -47
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- package/lib/browser/screen/screen-protocol.d.ts +74 -1
- package/lib/browser/screen/screen-protocol.js +15 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +34 -1
- package/lib/browser/screen/screen.js +172 -2
- package/lib/browser/settings/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +9 -0
- package/lib/browser/settings/settings-protocol.js +19 -1
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.js +4 -3
- package/lib/browser/share/shared-page.js +2 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +8 -1
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +0 -3
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +42 -4
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +0 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +7 -15
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +168 -112
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +8 -2
- package/lib/browser/style/shared.d.ts +1 -1
- package/lib/browser/style/shared.js +1 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +12 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +16 -2
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/process.d.ts +31 -3
- package/lib/browser/util/process.js +74 -7
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +5 -0
- package/lib/browser/util/spoken.js +10 -1
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.js +3 -1
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/workbench-hosts.d.ts +1 -1
- package/lib/browser/workbench-hosts.js +2 -2
- package/lib/browser/workbench-protocol.d.ts +18 -3
- package/lib/browser/workbench-services.d.ts +9 -1
- package/lib/browser/workbench-services.js +38 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +3 -0
- package/lib/browser/workbench.js +35 -8
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -35,12 +35,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.useSeenConversations = useSeenConversations;
|
|
37
37
|
exports.AssistantChatList = AssistantChatList;
|
|
38
|
+
const react_1 = require("@celljs/react");
|
|
38
39
|
const React = __importStar(require("react"));
|
|
39
40
|
const chat_list_1 = require("../components/chat-list");
|
|
41
|
+
const chat_seen_1 = require("../components/chat-seen");
|
|
40
42
|
const connection_bar_1 = require("../components/connection-bar");
|
|
43
|
+
const side_lists_1 = require("../components/side-lists");
|
|
41
44
|
const use_seen_chats_1 = require("../components/use-seen-chats");
|
|
45
|
+
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
46
|
+
const web_tasks_1 = require("../extension/web-tasks");
|
|
42
47
|
const hooks_1 = require("../hooks");
|
|
43
48
|
const use_t_1 = require("../i18n/use-t");
|
|
49
|
+
const state_protocol_1 = require("../state/state-protocol");
|
|
44
50
|
const assistant_hooks_1 = require("./assistant-hooks");
|
|
45
51
|
/**
|
|
46
52
|
* Which conversations the user has seen (useSeenChats), and the one in front of them: the conversation `shown`,
|
|
@@ -53,7 +59,67 @@ function useSeenConversations(sessions, shown, doubleShown) {
|
|
|
53
59
|
const looking = shown !== null && shown !== void 0 ? shown : (doubleShown && ready ? (_a = assistant.store()) === null || _a === void 0 ? void 0 : _a.sessionId : undefined);
|
|
54
60
|
return { seen: (0, use_seen_chats_1.useSeenChats)(sessions, looking), looking };
|
|
55
61
|
}
|
|
56
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* The double's home over the chats, unless a sidebar view of before lists the double (docs/design/ta-partners.md):
|
|
64
|
+
* its card (its page's preview and menu), the rows extensions add under it, and every task.
|
|
65
|
+
*/
|
|
66
|
+
function useChatHome(onPicked) {
|
|
67
|
+
const [extensions, host] = (0, hooks_1.useWebExtensions)();
|
|
68
|
+
const [, notices] = (0, hooks_1.useNotices)();
|
|
69
|
+
const t = (0, use_t_1.useT)();
|
|
70
|
+
const state = (0, react_1.useInject)(state_protocol_1.TaState);
|
|
71
|
+
const view = extensions.views.find(candidate => candidate.id === side_lists_1.DOUBLE_PAGE);
|
|
72
|
+
const listed = side_lists_1.SideListUtil.viewListsDouble(extensions.views);
|
|
73
|
+
const tasks = React.useSyncExternalStore(host.tasks.subscribe, host.tasks.tasks, host.tasks.tasks);
|
|
74
|
+
const items = React.useSyncExternalStore(host.home.subscribe, host.home.items, host.home.items);
|
|
75
|
+
// Its preview and whether it works, as one string: the same line stays the same value.
|
|
76
|
+
const watch = React.useCallback((listener) => { var _a; var _b; return (_b = (_a = view === null || view === void 0 ? void 0 : view.subscribePreview) === null || _a === void 0 ? void 0 : _a.call(view, listener)) !== null && _b !== void 0 ? _b : (() => undefined); }, [view]);
|
|
77
|
+
const read = () => {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
const preview = (_a = view === null || view === void 0 ? void 0 : view.preview) === null || _a === void 0 ? void 0 : _a.call(view);
|
|
80
|
+
return `${((_b = view === null || view === void 0 ? void 0 : view.busy) === null || _b === void 0 ? void 0 : _b.call(view)) ? 1 : 0}\n${preview ? `${preview.at}\n${preview.text}` : ''}`;
|
|
81
|
+
};
|
|
82
|
+
const line = React.useSyncExternalStore(watch, read, read);
|
|
83
|
+
const latest = React.useRef(onPicked);
|
|
84
|
+
latest.current = onPicked;
|
|
85
|
+
const name = view ? web_extension_protocol_1.WebLabelUtil.text(view.title) : t('ta.builtin.assistant');
|
|
86
|
+
const shown = extensions.page === side_lists_1.DOUBLE_PAGE;
|
|
87
|
+
const shownItem = extensions.page && !extensions.pageHidden ? extensions.pageFrom : undefined;
|
|
88
|
+
return React.useMemo(() => {
|
|
89
|
+
if (listed) {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
const [busy, at, ...text] = line.split('\n');
|
|
93
|
+
return {
|
|
94
|
+
double: {
|
|
95
|
+
name,
|
|
96
|
+
shown,
|
|
97
|
+
busy: busy === '1',
|
|
98
|
+
preview: at ? { at: Number(at), text: text.join('\n') } : undefined,
|
|
99
|
+
menu: view === null || view === void 0 ? void 0 : view.menu,
|
|
100
|
+
open: () => {
|
|
101
|
+
latest.current();
|
|
102
|
+
host.showPage(side_lists_1.DOUBLE_PAGE);
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
items,
|
|
106
|
+
shownItem,
|
|
107
|
+
openItem: entry => {
|
|
108
|
+
latest.current();
|
|
109
|
+
return host.openHome(entry);
|
|
110
|
+
},
|
|
111
|
+
tasks,
|
|
112
|
+
look: (key, ended) => {
|
|
113
|
+
const next = chat_seen_1.ChatSeenUtil.look(state.get(chat_seen_1.SEEN_CHATS), key, ended, Date.now());
|
|
114
|
+
if (next) {
|
|
115
|
+
state.set(chat_seen_1.SEEN_CHATS, next);
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
remove: removed => void web_tasks_1.WebTaskUtil.remove(removed, notices, t),
|
|
119
|
+
};
|
|
120
|
+
}, [listed, line, name, shown, view, items, shownItem, tasks, host, state, notices, t]);
|
|
121
|
+
}
|
|
122
|
+
/** The list of chats with what the double knows of them: its tasks marked, a conversation to hand it; its home over them. */
|
|
57
123
|
function AssistantChatList(props) {
|
|
58
124
|
var _a;
|
|
59
125
|
const [{ tasks, ready }, assistant] = (0, assistant_hooks_1.useAssistant)();
|
|
@@ -63,12 +129,16 @@ function AssistantChatList(props) {
|
|
|
63
129
|
const session = ready ? (_a = assistant.store()) === null || _a === void 0 ? void 0 : _a.sessionId : undefined;
|
|
64
130
|
const { sessionFile } = assistant;
|
|
65
131
|
const double = React.useMemo(() => ({
|
|
66
|
-
|
|
132
|
+
// By the id of its session, and by its file: a task's conversation is marked once saved too.
|
|
133
|
+
tasks: new Map(tasks
|
|
134
|
+
.filter(task => !task.takenOver)
|
|
135
|
+
.flatMap(task => [[task.sessionId, task.status], ...(task.sessionFile ? [[task.sessionFile, task.status]] : [])])),
|
|
67
136
|
session,
|
|
68
137
|
sessionFile,
|
|
69
138
|
name,
|
|
70
139
|
hand: (info, title) => void assistant.adopt({ sessionId: info.sessionId, title, cwd: info.cwd }).catch(error => notices.error(error)),
|
|
71
140
|
}), [tasks, session, sessionFile, name, assistant, notices]);
|
|
72
|
-
|
|
141
|
+
const home = useChatHome(props.onPicked);
|
|
142
|
+
return React.createElement(chat_list_1.ChatList, { ...props, double: double, home: home, notice: React.createElement(connection_bar_1.ConnectionBanner, null) });
|
|
73
143
|
}
|
|
74
144
|
//# sourceMappingURL=assistant-chat-list.js.map
|
|
@@ -25,7 +25,11 @@ var AssistantExport;
|
|
|
25
25
|
parts.push('', `## ${labels.task} · ${note.title} · ${labels.status(note.status)}`, '', note.body.trim());
|
|
26
26
|
}
|
|
27
27
|
else if (!note) {
|
|
28
|
-
|
|
28
|
+
// What a person reads of it (TaSaid): no context for the model, no summary of a compacted context.
|
|
29
|
+
const said = ta_protocol_1.TaSaid.words(message.role, text);
|
|
30
|
+
if (said) {
|
|
31
|
+
parts.push('', `## ${message.role === 'user' ? labels.user : labels.ta}`, '', said);
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
return `${parts.join('\n')}\n`;
|
|
@@ -49,6 +49,7 @@ const React = __importStar(require("react"));
|
|
|
49
49
|
const chat_protocol_1 = require("../chat/chat-protocol");
|
|
50
50
|
const chat_asks_1 = require("../components/chat-asks");
|
|
51
51
|
const chat_icon_1 = require("../components/chat-icon");
|
|
52
|
+
const chat_list_util_1 = require("../components/chat-list-util");
|
|
52
53
|
const chat_seen_1 = require("../components/chat-seen");
|
|
53
54
|
const dino_look_picker_1 = require("../components/dino-look-picker");
|
|
54
55
|
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
@@ -63,9 +64,23 @@ const assistant_task_source_1 = require("./assistant-task-source");
|
|
|
63
64
|
const assistant_view_1 = require("./assistant-view");
|
|
64
65
|
const chat_task_source_1 = require("./chat-task-source");
|
|
65
66
|
const task_card_1 = require("./task-card");
|
|
66
|
-
/**
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
/** Faces of conversations as the chats draw them, one component for each look, so that a row drawn again keeps it. */
|
|
68
|
+
const letterFaces = new Map();
|
|
69
|
+
const iconFaces = new WeakMap();
|
|
70
|
+
/** The face of a conversation: the icon an extension gives it, else the letter of its directory in its tone. */
|
|
71
|
+
function chatFace(found, initial, tone) {
|
|
72
|
+
var _a, _b, _c;
|
|
73
|
+
if (found) {
|
|
74
|
+
const tints = (_a = iconFaces.get(found.icon)) !== null && _a !== void 0 ? _a : new Map();
|
|
75
|
+
iconFaces.set(found.icon, tints);
|
|
76
|
+
const face = (_b = tints.get(found.tint)) !== null && _b !== void 0 ? _b : (({ size }) => React.createElement(chat_icon_1.ChatIconTile, { found, size }));
|
|
77
|
+
tints.set(found.tint, face);
|
|
78
|
+
return face;
|
|
79
|
+
}
|
|
80
|
+
const key = `${tone}:${initial}`;
|
|
81
|
+
const face = (_c = letterFaces.get(key)) !== null && _c !== void 0 ? _c : (({ size }) => React.createElement('span', { className: `ta-chat-avatar ta-tone-${tone}`, style: { width: size, height: size }, 'aria-hidden': true }, initial));
|
|
82
|
+
letterFaces.set(key, face);
|
|
83
|
+
return face;
|
|
69
84
|
}
|
|
70
85
|
function download(name, text) {
|
|
71
86
|
const url = URL.createObjectURL(new Blob([text], { type: 'text/markdown;charset=utf-8' }));
|
|
@@ -104,11 +119,31 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
104
119
|
await this.assistant.removeTask(task.id);
|
|
105
120
|
pi.ui.closeEditor(editorId(task));
|
|
106
121
|
};
|
|
107
|
-
/**
|
|
122
|
+
/** The conversation of a task, when its turn is over and it asks the user to decide (not let go). */
|
|
123
|
+
const askingEntry = (task) => {
|
|
124
|
+
if (task.status === 'running' || task.takenOver) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
const { sessions, saved } = this.workbench.state;
|
|
128
|
+
const entry = chat_asks_1.ChatAskUtil.entryOf(sessions, saved, task);
|
|
129
|
+
return entry && chat_asks_1.ChatAskUtil.asking(entry, this.persisted.get(chat_asks_1.LET_GO_ASKS)) ? entry : undefined;
|
|
130
|
+
};
|
|
131
|
+
/** What can be done with a task, in its … wherever it shows: stop, let its ask go or take over, then remove (a running one is stopped first). */
|
|
108
132
|
const taskMenu = (task) => {
|
|
109
133
|
const running = task.status === 'running' && !task.takenOver;
|
|
134
|
+
const asks = askingEntry(task);
|
|
110
135
|
return [
|
|
111
136
|
[
|
|
137
|
+
...(asks
|
|
138
|
+
? [
|
|
139
|
+
{
|
|
140
|
+
key: 'letGo',
|
|
141
|
+
label: t('ta.chat.letGo'),
|
|
142
|
+
icon: lucide_react_1.CircleSlash,
|
|
143
|
+
run: () => this.persisted.set(chat_asks_1.LET_GO_ASKS, chat_asks_1.ChatAskUtil.letGoAll(this.persisted.get(chat_asks_1.LET_GO_ASKS), [asks])),
|
|
144
|
+
},
|
|
145
|
+
]
|
|
146
|
+
: []),
|
|
112
147
|
...(running
|
|
113
148
|
? [{ key: 'stop', label: t('ta.assistant.stop'), icon: lucide_react_1.Square, run: () => void this.assistant.stopTask(task.id).catch(fail) }]
|
|
114
149
|
: []),
|
|
@@ -138,15 +173,18 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
138
173
|
const tasks = new assistant_task_source_1.AssistantTaskSource(this.assistant, {
|
|
139
174
|
t: (id, values) => (0, use_t_1.translator)(pi.ui.language)(id, values),
|
|
140
175
|
open: openTask,
|
|
176
|
+
show: task => {
|
|
177
|
+
if (task.sessionFile) {
|
|
178
|
+
void pi.openChat(task.sessionFile).catch(fail);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
openTask(task);
|
|
182
|
+
}
|
|
183
|
+
},
|
|
141
184
|
openDouble: () => pi.ui.showView(`${assistant_view_1.ASSISTANT_NAME}/assistant`),
|
|
142
185
|
menu: taskMenu,
|
|
143
186
|
remove,
|
|
144
|
-
asking: task => {
|
|
145
|
-
var _a;
|
|
146
|
-
const { sessions, saved } = this.workbench.state;
|
|
147
|
-
const entry = chat_asks_1.ChatAskUtil.entryOf(sessions, saved, task);
|
|
148
|
-
return entry && ((_a = chat_asks_1.ChatAskUtil.asking(entry, this.persisted.get(chat_asks_1.LET_GO_ASKS))) === null || _a === void 0 ? void 0 : _a.question);
|
|
149
|
-
},
|
|
187
|
+
asking: task => { var _a, _b; return (_b = (_a = askingEntry(task)) === null || _a === void 0 ? void 0 : _a.asking) === null || _b === void 0 ? void 0 : _b.question; },
|
|
150
188
|
watchAsking: listener => {
|
|
151
189
|
const stops = [this.workbench.subscribe(() => listener()), this.persisted.subscribe(() => listener())];
|
|
152
190
|
return () => {
|
|
@@ -157,7 +195,7 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
157
195
|
},
|
|
158
196
|
});
|
|
159
197
|
pi.registerTasks(tasks);
|
|
160
|
-
// The conversations the user
|
|
198
|
+
// The conversations of the user's own that wait for them to decide, under the double on its list.
|
|
161
199
|
// The runs of a scheduled task are theirs too, folded into a folder of the chats (WebChatIcon.folder).
|
|
162
200
|
const folderOf = () => chat_icon_1.ChatIconUtil.folderOf(this.extensions.state.chatIcons);
|
|
163
201
|
const chatTasks = new chat_task_source_1.ChatTaskSource({
|
|
@@ -192,9 +230,26 @@ let AssistantWebExtension = class AssistantWebExtension {
|
|
|
192
230
|
}
|
|
193
231
|
};
|
|
194
232
|
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
233
|
+
glyph: lucide_react_1.MessagesSquare,
|
|
234
|
+
openChat: entry => void pi.openChat(chat_list_util_1.ChatListUtil.file(entry)).catch(fail),
|
|
235
|
+
letGo: entry => {
|
|
236
|
+
var _a;
|
|
237
|
+
const at = (_a = entry.asking) === null || _a === void 0 ? void 0 : _a.at;
|
|
238
|
+
if (at !== undefined) {
|
|
239
|
+
this.persisted.set(chat_asks_1.LET_GO_ASKS, chat_asks_1.ChatAskUtil.letGo(this.persisted.get(chat_asks_1.LET_GO_ASKS), chat_list_util_1.ChatListUtil.file(entry), at));
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
face: (entry) => {
|
|
243
|
+
var _a, _b;
|
|
244
|
+
const { sessions, saved } = this.workbench.state;
|
|
245
|
+
const found = chat_icon_1.ChatIconUtil.find(this.extensions.state.chatIcons, {
|
|
246
|
+
sessionFile: entry.sessionFile,
|
|
247
|
+
cwd: entry.cwd,
|
|
248
|
+
...(entry.group ? { group: entry.group } : {}),
|
|
249
|
+
});
|
|
250
|
+
const source = chat_list_util_1.ChatListUtil.sources([...sessions, ...saved]).find(each => { var _a; return each.title === ((_a = entry.group) !== null && _a !== void 0 ? _a : entry.cwd); });
|
|
251
|
+
return chatFace(found, (_a = source === null || source === void 0 ? void 0 : source.initial) !== null && _a !== void 0 ? _a : '', (_b = source === null || source === void 0 ? void 0 : source.tone) !== null && _b !== void 0 ? _b : 0);
|
|
252
|
+
},
|
|
198
253
|
});
|
|
199
254
|
pi.registerTasks(chatTasks);
|
|
200
255
|
const registerPage = () => pi.registerView('assistant', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TaDelegateLevel } from '@celljs/ta-protocol';
|
|
2
2
|
/** The role of ta in its conversation with the user. */
|
|
3
|
-
export declare const ASSISTANT_PROMPT = "You are Ta, the user's personal agent: a little green dinosaur they talk to by voice or text in a web page. The user hands you work and mostly does not care how it gets done: you talk with them and hand the work out to tasks, which do it.\n- To hand out work, call start_task with a short title and complete, self-contained instructions: a task runs in its own session that cannot see this conversation. Start independent tasks in parallel. Then tell the user in one sentence what you started.\n- A task opens in the user's default directory, which they may change at any time; start_task says which it was. Give a cwd only when the user names a directory.\n- When tasks change code in parallel, or a change should not touch the user's working copy until they agree, start them with isolate: each works in a git worktree of its own, on a branch of its own, and its update says which; merging is for the user to ask.\n-
|
|
3
|
+
export declare const ASSISTANT_PROMPT = "You are Ta, the user's personal agent: a little green dinosaur they talk to by voice or text in a web page. The user hands you work and mostly does not care how it gets done: you talk with them and hand the work out to tasks, which do it.\n- To hand out work, call start_task with a short title and complete, self-contained instructions: a task runs in its own session that cannot see this conversation. Say in them what to do and what to answer, never how the answer looks (its length, its format): Ta shows every answer as the user reads it. Start independent tasks in parallel. Then tell the user in one sentence what you started.\n- A task opens in the user's default directory, which they may change at any time; start_task says which it was. Give a cwd only when the user names a directory.\n- When tasks change code in parallel, or a change should not touch the user's working copy until they agree, start them with isolate: each works in a git worktree of its own, on a branch of its own, and its update says which; merging is for the user to ask.\n- Give verify only for a change a second look may catch out: code changed across several files, or behavior the user relies on. Not for documents, a small fix of a file or two, research, or what the task checks well itself. verify is one check (a command such as \"bun test\", or one thing to look at), not a list; and when you give it, add no steps of checking again to the instructions: the check does that. When such a task ends, its update asks you to start a check: do it with start_task and verifies, with the instructions it gives as they are, and tell the user what the check found.\n- When the user asks what goes on, list_tasks has your tasks and the conversations they have going on themselves. You cannot write to those or stop them: tell the user, and if they want you to follow one, they hand it to you from the list of chats.\n- When a <task_update> message arrives, the user already sees that the task ended and what it said, its cards too: tell them in one or two sentences what was done and what was not, and whether they need to decide anything. Do not repeat the numbers, lists of files, comparisons or tests it already shows, and write no card of your own for it. With nothing to decide, suggest nothing; with something, name that one thing alone. get_task has the details.\n- Ask before anything risky or irreversible the user did not clearly ask for.\n- Your replies are read aloud: short plain sentences, no tables, no code unless asked. Reply in the user's language.";
|
|
4
4
|
/**
|
|
5
5
|
* In the role while the user wants to be asked first (Settings.confirmTasks). The team tools of ta-channels
|
|
6
6
|
* read the same words in the system prompt to ask before they build a team: keep them as they are.
|
|
@@ -39,7 +39,7 @@ export declare const ASSISTANT_TOOLS: {
|
|
|
39
39
|
};
|
|
40
40
|
readonly verify: {
|
|
41
41
|
readonly type: 'string';
|
|
42
|
-
readonly description: '
|
|
42
|
+
readonly description: 'Only for a risky change: the one check to run once it ends, a command or one thing to look at. Its update then asks for a check.';
|
|
43
43
|
};
|
|
44
44
|
readonly verifies: {
|
|
45
45
|
readonly type: 'string';
|
|
@@ -5,12 +5,12 @@ exports.assistantRole = assistantRole;
|
|
|
5
5
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
6
6
|
/** The role of ta in its conversation with the user. */
|
|
7
7
|
exports.ASSISTANT_PROMPT = `You are Ta, the user's personal agent: a little green dinosaur they talk to by voice or text in a web page. The user hands you work and mostly does not care how it gets done: you talk with them and hand the work out to tasks, which do it.
|
|
8
|
-
- To hand out work, call start_task with a short title and complete, self-contained instructions: a task runs in its own session that cannot see this conversation. Start independent tasks in parallel. Then tell the user in one sentence what you started.
|
|
8
|
+
- To hand out work, call start_task with a short title and complete, self-contained instructions: a task runs in its own session that cannot see this conversation. Say in them what to do and what to answer, never how the answer looks (its length, its format): Ta shows every answer as the user reads it. Start independent tasks in parallel. Then tell the user in one sentence what you started.
|
|
9
9
|
- A task opens in the user's default directory, which they may change at any time; start_task says which it was. Give a cwd only when the user names a directory.
|
|
10
10
|
- When tasks change code in parallel, or a change should not touch the user's working copy until they agree, start them with isolate: each works in a git worktree of its own, on a branch of its own, and its update says which; merging is for the user to ask.
|
|
11
|
-
-
|
|
11
|
+
- Give verify only for a change a second look may catch out: code changed across several files, or behavior the user relies on. Not for documents, a small fix of a file or two, research, or what the task checks well itself. verify is one check (a command such as "bun test", or one thing to look at), not a list; and when you give it, add no steps of checking again to the instructions: the check does that. When such a task ends, its update asks you to start a check: do it with start_task and verifies, with the instructions it gives as they are, and tell the user what the check found.
|
|
12
12
|
- When the user asks what goes on, list_tasks has your tasks and the conversations they have going on themselves. You cannot write to those or stop them: tell the user, and if they want you to follow one, they hand it to you from the list of chats.
|
|
13
|
-
- When a <task_update> message arrives,
|
|
13
|
+
- When a <task_update> message arrives, the user already sees that the task ended and what it said, its cards too: tell them in one or two sentences what was done and what was not, and whether they need to decide anything. Do not repeat the numbers, lists of files, comparisons or tests it already shows, and write no card of your own for it. With nothing to decide, suggest nothing; with something, name that one thing alone. get_task has the details.
|
|
14
14
|
- Ask before anything risky or irreversible the user did not clearly ask for.
|
|
15
15
|
- Your replies are read aloud: short plain sentences, no tables, no code unless asked. Reply in the user's language.`;
|
|
16
16
|
/**
|
|
@@ -48,7 +48,10 @@ exports.ASSISTANT_TOOLS = {
|
|
|
48
48
|
type: 'boolean',
|
|
49
49
|
description: 'Work in a git worktree of its own beside the repository, on a branch of its own, so that tasks in parallel and the user do not touch the same files.',
|
|
50
50
|
},
|
|
51
|
-
verify: {
|
|
51
|
+
verify: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Only for a risky change: the one check to run once it ends, a command or one thing to look at. Its update then asks for a check.',
|
|
54
|
+
},
|
|
52
55
|
verifies: { type: 'string', description: "The id of the task this one checks: its first line, PASS or FAIL, is that task's verdict." },
|
|
53
56
|
},
|
|
54
57
|
required: ['title', 'instructions'],
|
|
@@ -4,10 +4,14 @@ import type { Translate } from '../i18n/use-t';
|
|
|
4
4
|
import type { AssistantAsk, AssistantState, AssistantTask, TaAssistant } from './assistant-protocol';
|
|
5
5
|
/** What a task does now, in a few words: what the loading line of its conversation says (ProgressUtil.text), the same. */
|
|
6
6
|
export declare function activity(task: AssistantTask, state: SessionState | undefined, t: Translate): string;
|
|
7
|
+
/** How a task came out of a check: its own verdict for a check that ended, else the verdict of the check of it. */
|
|
8
|
+
export declare function verdict(task: AssistantTask): AssistantTask['verdict'];
|
|
7
9
|
/** What the source does with a task besides listing it: the workbench and the menus are the extension's. */
|
|
8
10
|
export interface AssistantTaskActions {
|
|
9
11
|
t: Translate;
|
|
10
12
|
open(task: AssistantTask): void;
|
|
13
|
+
/** Opens its conversation in the main area (WebTask.show). */
|
|
14
|
+
show?(task: AssistantTask): void;
|
|
11
15
|
/** Shows the double, where a start waits for the user's go. */
|
|
12
16
|
openDouble(): void;
|
|
13
17
|
menu(task: AssistantTask): WebMenuItem[][];
|
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AssistantTaskSource = void 0;
|
|
4
4
|
exports.activity = activity;
|
|
5
|
-
|
|
5
|
+
exports.verdict = verdict;
|
|
6
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
7
|
+
const lucide_react_1 = require("lucide-react");
|
|
6
8
|
const progress_1 = require("../util/progress");
|
|
9
|
+
const assistant_task_util_1 = require("./assistant-task-util");
|
|
7
10
|
/** What a task does now, in a few words: what the loading line of its conversation says (ProgressUtil.text), the same. */
|
|
8
11
|
function activity(task, state, t) {
|
|
9
|
-
var _a;
|
|
10
12
|
if (task.status === 'running' && (state === null || state === void 0 ? void 0 : state.working)) {
|
|
11
13
|
return progress_1.ProgressUtil.text(progress_1.ProgressUtil.phase(state), t, { working: state.workingMessage });
|
|
12
14
|
}
|
|
13
|
-
|
|
15
|
+
// A check's words follow its verdict, which the list says in words of the user's language.
|
|
16
|
+
const said = task.verifies ? assistant_task_util_1.AssistantTaskUtil.verdictReason(task.result) : task.result;
|
|
17
|
+
// A card of its reply (ta-glance) is drawn in its conversation, not read out here.
|
|
18
|
+
return task.status === 'running' ? t('ta.task.running') : ta_protocol_1.TaSaid.line(said !== null && said !== void 0 ? said : '', { chars: 80 }) || t(`ta.task.${task.status}`);
|
|
19
|
+
}
|
|
20
|
+
/** How a task came out of a check: its own verdict for a check that ended, else the verdict of the check of it. */
|
|
21
|
+
function verdict(task) {
|
|
22
|
+
return task.verifies ? (task.status === 'done' ? assistant_task_util_1.AssistantTaskUtil.verdictOf(task.result) : undefined) : task.verdict;
|
|
14
23
|
}
|
|
15
24
|
/**
|
|
16
25
|
* The double's own tasks as a source of WebExtensionAPI.registerTasks, which lists them with those of
|
|
@@ -138,7 +147,7 @@ class AssistantTaskSource {
|
|
|
138
147
|
}
|
|
139
148
|
// How a check found it, and the branch it is on, before what it did.
|
|
140
149
|
const marks = [
|
|
141
|
-
task
|
|
150
|
+
verdict(task) && t(verdict(task) === 'pass' ? 'ta.task.verdictPass' : 'ta.task.verdictFail'),
|
|
142
151
|
task.worktree && t('ta.task.branch', { branch: task.worktree.branch }),
|
|
143
152
|
].filter(Boolean);
|
|
144
153
|
const said = activity(task, state, t);
|
|
@@ -155,15 +164,21 @@ class AssistantTaskSource {
|
|
|
155
164
|
};
|
|
156
165
|
}
|
|
157
166
|
entry(task, status, detail) {
|
|
167
|
+
var _a;
|
|
158
168
|
return {
|
|
159
169
|
id: task.id,
|
|
160
170
|
title: task.title,
|
|
161
171
|
status,
|
|
162
172
|
detail,
|
|
173
|
+
...(verdict(task) ? { tone: verdict(task) === 'pass' ? 'good' : 'bad' } : {}),
|
|
174
|
+
// A check of another task's work says so on its tile.
|
|
175
|
+
...(task.verifies ? { glyph: lucide_react_1.ShieldCheck } : {}),
|
|
163
176
|
startedAt: task.startedAt,
|
|
164
177
|
endedAt: task.endedAt,
|
|
165
178
|
origin: task.origin,
|
|
179
|
+
session: (_a = task.sessionFile) !== null && _a !== void 0 ? _a : task.sessionId,
|
|
166
180
|
open: () => this.actions.open(task),
|
|
181
|
+
...(this.actions.show ? { show: () => { var _a, _b; return (_b = (_a = this.actions).show) === null || _b === void 0 ? void 0 : _b.call(_a, task); } } : {}),
|
|
167
182
|
menu: () => this.actions.menu(task),
|
|
168
183
|
remove: () => this.actions.remove(task),
|
|
169
184
|
removeHint: this.actions.t('ta.task.removeHint'),
|
|
@@ -53,8 +53,16 @@ export declare namespace AssistantTaskUtil {
|
|
|
53
53
|
function updateNote(task: AssistantTask): string;
|
|
54
54
|
/** What a task that checks another is told: look at its change, run the check, and say PASS or FAIL first. */
|
|
55
55
|
function checkInstructions(task: Pick<AssistantTask, 'title' | 'verify' | 'worktree' | 'result'>): string;
|
|
56
|
+
/**
|
|
57
|
+
* How a check answers, added to its instructions whatever the double wrote: the verdict alone on the first line
|
|
58
|
+
* (verdictOf), then what it ran and what it showed as it shows any result to the user, a card where its replies
|
|
59
|
+
* are drawn as cards, not lines of plain words.
|
|
60
|
+
*/
|
|
61
|
+
const CHECK_ANSWER = "Answer with PASS or FAIL alone on the first line; after it, show what you ran and what it showed the way you show any result to the user.";
|
|
56
62
|
/** What a check answered on its first line of words: PASS or FAIL. */
|
|
57
63
|
function verdictOf(result: string | undefined): 'pass' | 'fail' | undefined;
|
|
64
|
+
/** What a check said after its verdict (verdictOf): its words without PASS or FAIL in front. */
|
|
65
|
+
function verdictReason(result: string | undefined): string;
|
|
58
66
|
/** The worktree of a task, beside the repository at `root`: `<root>-ta-<id>`, on the branch `ta/<id>-<words of its title>`. */
|
|
59
67
|
function worktreeOf(root: string, id: string, title: string, at: number): {
|
|
60
68
|
path: string;
|
|
@@ -139,13 +139,19 @@ var AssistantTaskUtil;
|
|
|
139
139
|
? `the changes of the branch ${task.worktree.branch} since ${task.worktree.base} (git diff ${task.worktree.base})`
|
|
140
140
|
: 'the changes in this directory (git diff, git status)';
|
|
141
141
|
return [
|
|
142
|
-
`Check the work of another agent on "${task.title}". Do not change any file
|
|
143
|
-
`Look
|
|
142
|
+
`Check the work of another agent on "${task.title}". Do not change any file.`,
|
|
143
|
+
`Run only this check: ${task.verify}. Look over ${change} once, to see what it covers. Run no other tests, builds or screenshots, and do not review the rest of the code: the agent checked its own work already.`,
|
|
144
144
|
`What the agent said it did:\n${((_a = task.result) !== null && _a !== void 0 ? _a : '').slice(0, 1500)}`,
|
|
145
|
-
|
|
145
|
+
AssistantTaskUtil.CHECK_ANSWER,
|
|
146
146
|
].join('\n\n');
|
|
147
147
|
}
|
|
148
148
|
AssistantTaskUtil.checkInstructions = checkInstructions;
|
|
149
|
+
/**
|
|
150
|
+
* How a check answers, added to its instructions whatever the double wrote: the verdict alone on the first line
|
|
151
|
+
* (verdictOf), then what it ran and what it showed as it shows any result to the user, a card where its replies
|
|
152
|
+
* are drawn as cards, not lines of plain words.
|
|
153
|
+
*/
|
|
154
|
+
AssistantTaskUtil.CHECK_ANSWER = 'Answer with PASS or FAIL alone on the first line; after it, show what you ran and what it showed the way you show any result to the user.';
|
|
149
155
|
/** What a check answered on its first line of words: PASS or FAIL. */
|
|
150
156
|
function verdictOf(result) {
|
|
151
157
|
var _a, _b;
|
|
@@ -157,6 +163,11 @@ var AssistantTaskUtil;
|
|
|
157
163
|
return word === 'PASS' ? 'pass' : word === 'FAIL' ? 'fail' : undefined;
|
|
158
164
|
}
|
|
159
165
|
AssistantTaskUtil.verdictOf = verdictOf;
|
|
166
|
+
/** What a check said after its verdict (verdictOf): its words without PASS or FAIL in front. */
|
|
167
|
+
function verdictReason(result) {
|
|
168
|
+
return (result !== null && result !== void 0 ? result : '').replace(/^[\s*_`#>]*(?:verdict:?\s*)?(?:PASS|FAIL)\b[*_`]*[\s::.,,。—-]*/i, '');
|
|
169
|
+
}
|
|
170
|
+
AssistantTaskUtil.verdictReason = verdictReason;
|
|
160
171
|
/** The worktree of a task, beside the repository at `root`: `<root>-ta-<id>`, on the branch `ta/<id>-<words of its title>`. */
|
|
161
172
|
function worktreeOf(root, id, title, at) {
|
|
162
173
|
const words = title
|
|
@@ -42,7 +42,7 @@ const React = __importStar(require("react"));
|
|
|
42
42
|
const context_menu_1 = require("../components/context-menu");
|
|
43
43
|
const empty_state_1 = require("../components/empty-state");
|
|
44
44
|
const icon_1 = require("../components/icon");
|
|
45
|
-
const
|
|
45
|
+
const loading_1 = require("../components/loading");
|
|
46
46
|
const markdown_1 = require("../components/markdown");
|
|
47
47
|
const session_view_1 = require("../components/session-view");
|
|
48
48
|
const hooks_1 = require("../hooks");
|
|
@@ -124,6 +124,6 @@ function AssistantTaskView({ taskId, onTakeOver, onTasks, menu }) {
|
|
|
124
124
|
store ? (React.createElement(session_view_1.SessionView, { store: store, server: workbench.server, workspace: workbench.workspace, info: info, onClosed: () => setClosed(store), onActivity: () => undefined })) : failed ? (React.createElement("div", { className: "ta-scroll" },
|
|
125
125
|
React.createElement("div", { className: "ta-task-result" },
|
|
126
126
|
React.createElement("p", { className: "ta-task-result-note" }, t('ta.assistant.taskEnded')),
|
|
127
|
-
React.createElement(markdown_1.Markdown, { text: task.result || t(`ta.task.${task.status}`) })))) : (React.createElement(
|
|
127
|
+
React.createElement(markdown_1.Markdown, { text: task.result || t(`ta.task.${task.status}`) })))) : (React.createElement(loading_1.Loading, null))));
|
|
128
128
|
}
|
|
129
129
|
//# sourceMappingURL=assistant-tasks.js.map
|
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.AssistantThread = AssistantThread;
|
|
37
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
37
38
|
const lucide_react_1 = require("lucide-react");
|
|
38
39
|
const React = __importStar(require("react"));
|
|
39
40
|
const callout_1 = require("../components/callout");
|
|
@@ -133,6 +134,9 @@ function AssistantThread({ state, reply, tasks, origin, onTask, t }) {
|
|
|
133
134
|
React.createElement("span", { className: "ta-task-update-text" }, line),
|
|
134
135
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 13, className: "ta-task-update-chevron" }))) : null;
|
|
135
136
|
}
|
|
137
|
+
if (ta_protocol_1.TaMessageSource.isNotice(text)) {
|
|
138
|
+
return React.createElement(message_user_1.NoticeMessage, { key: item.key, message: item.message });
|
|
139
|
+
}
|
|
136
140
|
return React.createElement(DoubleUserMessage, { key: item.key, message: item.message, blocks: blocks });
|
|
137
141
|
};
|
|
138
142
|
return (React.createElement(code_renderers_1.CodeReply.Provider, { value: reply },
|
|
@@ -48,6 +48,7 @@ const dialog_view_1 = require("../components/dialog-view");
|
|
|
48
48
|
const earlier_messages_1 = require("../components/earlier-messages");
|
|
49
49
|
const hero_cards_1 = require("../components/hero-cards");
|
|
50
50
|
const icon_1 = require("../components/icon");
|
|
51
|
+
const loading_1 = require("../components/loading");
|
|
51
52
|
const message_actions_1 = require("../components/message-actions");
|
|
52
53
|
const message_footer_1 = require("../components/message-footer");
|
|
53
54
|
const message_images_1 = require("../components/message-images");
|
|
@@ -152,7 +153,7 @@ function Chat({ store, tasks, taskStates, onTask, onMood, onTasks }) {
|
|
|
152
153
|
voice: () => voice,
|
|
153
154
|
send: text => say(text),
|
|
154
155
|
ended: (reason, detail) => notices.notify((0, voice_call_bar_1.callEndedNotice)(t, reason, detail)),
|
|
155
|
-
}, { sessionId: store.sessionId, double: true });
|
|
156
|
+
}, { sessionId: store.sessionId, double: true }, name || 'Ta');
|
|
156
157
|
const mood = moodOf({
|
|
157
158
|
working: state.working,
|
|
158
159
|
attention: attentions.length > 0 || asks.length > 0,
|
|
@@ -397,9 +398,6 @@ function AssistantPanel({ onTask }) {
|
|
|
397
398
|
React.createElement(task_views_1.TasksChip, { tasks: allTasks, onOpen: openTasks }),
|
|
398
399
|
React.createElement(workbench_toggle_1.WorkbenchToggle, null)),
|
|
399
400
|
React.createElement("div", { className: "ta-assistant-body" },
|
|
400
|
-
React.createElement("div", { className: "ta-assistant-chat" }, store ? (React.createElement(Chat, { store: store, tasks: state.tasks, taskStates: taskStates, onTask: openTask, onMood: setMood, onTasks: openTasks })) : (React.createElement("div", { className: "ta-empty" }, state.error ? (React.createElement(callout_1.Callout, { level: "error" }, state.error)) :
|
|
401
|
-
React.createElement("span", { className: "ta-spinner" }),
|
|
402
|
-
" ",
|
|
403
|
-
t('ta.assistant.waking'))))))))));
|
|
401
|
+
React.createElement("div", { className: "ta-assistant-chat" }, store ? (React.createElement(Chat, { store: store, tasks: state.tasks, taskStates: taskStates, onTask: openTask, onMood: setMood, onTasks: openTasks })) : state.error || workbench.offlineShown ? (React.createElement("div", { className: "ta-empty" }, state.error ? (React.createElement(callout_1.Callout, { level: "error" }, state.error)) : (React.createElement("span", { className: "ta-muted" }, t('ta.assistant.offline'))))) : (React.createElement(loading_1.Loading, { label: t('ta.assistant.waking') })))))));
|
|
404
402
|
}
|
|
405
403
|
//# sourceMappingURL=assistant-view.js.map
|
|
@@ -331,7 +331,8 @@ let TaAssistantImpl = class TaAssistantImpl extends assistant_conversation_1.Ass
|
|
|
331
331
|
};
|
|
332
332
|
this.book.add(task);
|
|
333
333
|
const store = await this.follow(task);
|
|
334
|
-
|
|
334
|
+
const asked = verifies && !instructions.includes(assistant_task_util_1.AssistantTaskUtil.CHECK_ANSWER) ? `${instructions}\n\n${assistant_task_util_1.AssistantTaskUtil.CHECK_ANSWER}` : instructions;
|
|
335
|
+
await store.prompt(ta_protocol_1.TaMessageSource.mark(asked, ta_protocol_1.TaMessageSource.DOUBLE));
|
|
335
336
|
const { sessionFile } = await this.server.getState(info.sessionId);
|
|
336
337
|
this.book.change(task, { sessionFile });
|
|
337
338
|
const apart = worktree ? ` (a git worktree on the branch ${worktree.worktree.branch})` : '';
|