@jingyi0605/codingns4dsh 0.2.1-beta.6 → 0.2.1-beta.8
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 +4 -4
- package/README.md +21 -5
- package/THIRD_PARTY_NOTICES +5 -0
- package/assets/provider-icons/r4.svg +4 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
- package/data/build/dist/bootstrap/index.d.ts +1 -1
- package/data/build/dist/client/assistant-settings-styles.d.ts.map +1 -1
- package/data/build/dist/client/assistant-settings-styles.js +3 -2
- package/data/build/dist/client/assistant-settings-styles.js.map +1 -1
- package/data/build/dist/client/avatar/catalog-panel.d.ts.map +1 -1
- package/data/build/dist/client/avatar/catalog-panel.js +7 -5
- package/data/build/dist/client/avatar/catalog-panel.js.map +1 -1
- package/data/build/dist/client/avatar/catalog-picker.d.ts.map +1 -1
- package/data/build/dist/client/avatar/catalog-picker.js +2 -1
- package/data/build/dist/client/avatar/catalog-picker.js.map +1 -1
- package/data/build/dist/client/avatar/desktop-bridge.d.ts +7 -3
- package/data/build/dist/client/avatar/desktop-bridge.d.ts.map +1 -1
- package/data/build/dist/client/avatar/desktop-bridge.js +64 -5
- package/data/build/dist/client/avatar/desktop-bridge.js.map +1 -1
- package/data/build/dist/client/avatar/desktop-view.d.ts +6 -0
- package/data/build/dist/client/avatar/desktop-view.d.ts.map +1 -1
- package/data/build/dist/client/avatar/desktop-view.js +98 -5
- package/data/build/dist/client/avatar/desktop-view.js.map +1 -1
- package/data/build/dist/client/avatar/engine.d.ts.map +1 -1
- package/data/build/dist/client/avatar/engine.js +3 -2
- package/data/build/dist/client/avatar/engine.js.map +1 -1
- package/data/build/dist/client/avatar/floating.d.ts +8 -3
- package/data/build/dist/client/avatar/floating.d.ts.map +1 -1
- package/data/build/dist/client/avatar/floating.js +22 -4
- package/data/build/dist/client/avatar/floating.js.map +1 -1
- package/data/build/dist/client/avatar/image.d.ts +1 -1
- package/data/build/dist/client/avatar/image.d.ts.map +1 -1
- package/data/build/dist/client/avatar/image.js +2 -2
- package/data/build/dist/client/avatar/image.js.map +1 -1
- package/data/build/dist/client/avatar/live2d.d.ts +14 -3
- package/data/build/dist/client/avatar/live2d.d.ts.map +1 -1
- package/data/build/dist/client/avatar/live2d.js +62 -9
- package/data/build/dist/client/avatar/live2d.js.map +1 -1
- package/data/build/dist/client/avatar/loading.d.ts.map +1 -1
- package/data/build/dist/client/avatar/loading.js +3 -2
- package/data/build/dist/client/avatar/loading.js.map +1 -1
- package/data/build/dist/client/avatar/notification-bubble.d.ts +39 -0
- package/data/build/dist/client/avatar/notification-bubble.d.ts.map +1 -0
- package/data/build/dist/client/avatar/notification-bubble.js +353 -0
- package/data/build/dist/client/avatar/notification-bubble.js.map +1 -0
- package/data/build/dist/client/avatar/notification-surface.d.ts +16 -0
- package/data/build/dist/client/avatar/notification-surface.d.ts.map +1 -0
- package/data/build/dist/client/avatar/notification-surface.js +54 -0
- package/data/build/dist/client/avatar/notification-surface.js.map +1 -0
- package/data/build/dist/client/avatar/reaction-badge.d.ts +7 -0
- package/data/build/dist/client/avatar/reaction-badge.d.ts.map +1 -0
- package/data/build/dist/client/avatar/reaction-badge.js +20 -0
- package/data/build/dist/client/avatar/reaction-badge.js.map +1 -0
- package/data/build/dist/client/avatar/registry.d.ts +2 -1
- package/data/build/dist/client/avatar/registry.d.ts.map +1 -1
- package/data/build/dist/client/avatar/registry.js.map +1 -1
- package/data/build/dist/client/avatar/settings-panel.d.ts.map +1 -1
- package/data/build/dist/client/avatar/settings-panel.js +7 -5
- package/data/build/dist/client/avatar/settings-panel.js.map +1 -1
- package/data/build/dist/client/avatar/slot.d.ts +2 -1
- package/data/build/dist/client/avatar/slot.d.ts.map +1 -1
- package/data/build/dist/client/avatar/slot.js +5 -4
- package/data/build/dist/client/avatar/slot.js.map +1 -1
- package/data/build/dist/client/avatar/spritesheet.d.ts +4 -2
- package/data/build/dist/client/avatar/spritesheet.d.ts.map +1 -1
- package/data/build/dist/client/avatar/spritesheet.js +18 -9
- package/data/build/dist/client/avatar/spritesheet.js.map +1 -1
- package/data/build/dist/client/bundle.js +6881 -1776
- package/data/build/dist/client/bundle.js.map +1 -1
- package/data/build/dist/client/cli-catalog.d.ts +1 -1
- package/data/build/dist/client/cli-catalog.d.ts.map +1 -1
- package/data/build/dist/client/cli-catalog.js +2 -0
- package/data/build/dist/client/cli-catalog.js.map +1 -1
- package/data/build/dist/client/cli-session-config-cache.d.ts +17 -0
- package/data/build/dist/client/cli-session-config-cache.d.ts.map +1 -0
- package/data/build/dist/client/cli-session-config-cache.js +56 -0
- package/data/build/dist/client/cli-session-config-cache.js.map +1 -0
- package/data/build/dist/client/cli-settings-rpc.d.ts +5 -0
- package/data/build/dist/client/cli-settings-rpc.d.ts.map +1 -0
- package/data/build/dist/client/cli-settings-rpc.js +60 -0
- package/data/build/dist/client/cli-settings-rpc.js.map +1 -0
- package/data/build/dist/client/cli-slots.d.ts.map +1 -1
- package/data/build/dist/client/cli-slots.js +24 -40
- package/data/build/dist/client/cli-slots.js.map +1 -1
- package/data/build/dist/client/client.assistant-configuration-view.js +264 -55
- package/data/build/dist/client/client.assistant-configuration-view.js.map +1 -1
- package/data/build/dist/client/client.assistant-debug-workbench.js +4 -4
- package/data/build/dist/client/client.assistant-debug-workbench.js.map +1 -1
- package/data/build/dist/client/{client.assistant-prompts.js → client.assistant-notifications.js} +63 -2
- package/data/build/dist/client/client.assistant-notifications.js.map +1 -0
- package/data/build/dist/client/client.assistant-prompt-editor.js +4 -4
- package/data/build/dist/client/client.assistant-prompt-editor.js.map +1 -1
- package/data/build/dist/client/client.assistant-workbench.js +287 -161
- package/data/build/dist/client/client.assistant-workbench.js.map +1 -1
- package/data/build/dist/client/client.delegate-command.js +12 -25
- package/data/build/dist/client/client.delegate-command.js.map +1 -1
- package/data/build/dist/client/client.manager.js +201 -25
- package/data/build/dist/client/client.manager.js.map +1 -1
- package/data/build/dist/client/client.model-catalog-cache.js +2 -1
- package/data/build/dist/client/client.model-catalog-cache.js.map +1 -1
- package/data/build/dist/client/client.native-workspace-store.js +42 -11
- package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
- package/data/build/dist/client/client.react-dom.js +250 -0
- package/data/build/dist/client/client.react-dom.js.map +1 -1
- package/data/build/dist/client/client.theme.js +58 -12
- package/data/build/dist/client/client.theme.js.map +1 -1
- package/data/build/dist/client/client.transport.js +342 -46
- package/data/build/dist/client/client.transport.js.map +1 -1
- package/data/build/dist/client/debug/ui.d.ts.map +1 -1
- package/data/build/dist/client/debug/ui.js +30 -29
- package/data/build/dist/client/debug/ui.js.map +1 -1
- package/data/build/dist/client/delegate-command.d.ts.map +1 -1
- package/data/build/dist/client/delegate-command.js +12 -21
- package/data/build/dist/client/delegate-command.js.map +1 -1
- package/data/build/dist/client/desktop-assistant.js +61859 -158
- package/data/build/dist/client/external-tool-stream.d.ts.map +1 -1
- package/data/build/dist/client/external-tool-stream.js +2 -1
- package/data/build/dist/client/external-tool-stream.js.map +1 -1
- package/data/build/dist/client/features/assistant-configuration-session.js +3 -3
- package/data/build/dist/client/features/assistant-configuration-session.js.map +1 -1
- package/data/build/dist/client/features/assistant-configuration-tabs.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-configuration-tabs.js +2 -1
- package/data/build/dist/client/features/assistant-configuration-tabs.js.map +1 -1
- package/data/build/dist/client/features/assistant-configuration-view.d.ts +8 -0
- package/data/build/dist/client/features/assistant-configuration-view.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-configuration-view.js +99 -3
- package/data/build/dist/client/features/assistant-configuration-view.js.map +1 -1
- package/data/build/dist/client/features/assistant-conversation-message.d.ts +2 -1
- package/data/build/dist/client/features/assistant-conversation-message.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-conversation-message.js +64 -28
- package/data/build/dist/client/features/assistant-conversation-message.js.map +1 -1
- package/data/build/dist/client/features/assistant-debug-workbench.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-debug-workbench.js +3 -2
- package/data/build/dist/client/features/assistant-debug-workbench.js.map +1 -1
- package/data/build/dist/client/features/assistant-floating-call.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-floating-call.js +4 -3
- package/data/build/dist/client/features/assistant-floating-call.js.map +1 -1
- package/data/build/dist/client/features/assistant-notification-store.d.ts +72 -0
- package/data/build/dist/client/features/assistant-notification-store.d.ts.map +1 -0
- package/data/build/dist/client/features/assistant-notification-store.js +439 -0
- package/data/build/dist/client/features/assistant-notification-store.js.map +1 -0
- package/data/build/dist/client/features/assistant-realtime-call.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-realtime-call.js +13 -12
- package/data/build/dist/client/features/assistant-realtime-call.js.map +1 -1
- package/data/build/dist/client/features/assistant-record-style.js +11 -4
- package/data/build/dist/client/features/assistant-record-style.js.map +1 -1
- package/data/build/dist/client/features/assistant-voice-initialization.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-voice-initialization.js +4 -2
- package/data/build/dist/client/features/assistant-voice-initialization.js.map +1 -1
- package/data/build/dist/client/features/assistant-voice-settings-group.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-voice-settings-group.js +2 -1
- package/data/build/dist/client/features/assistant-voice-settings-group.js.map +1 -1
- package/data/build/dist/client/features/assistant-voice-settings.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-voice-settings.js +4 -3
- package/data/build/dist/client/features/assistant-voice-settings.js.map +1 -1
- package/data/build/dist/client/features/assistant-workbench-controls.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-workbench-controls.js +6 -5
- package/data/build/dist/client/features/assistant-workbench-controls.js.map +1 -1
- package/data/build/dist/client/features/assistant-workbench.d.ts +4 -0
- package/data/build/dist/client/features/assistant-workbench.d.ts.map +1 -1
- package/data/build/dist/client/features/assistant-workbench.js +37 -9
- package/data/build/dist/client/features/assistant-workbench.js.map +1 -1
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
- package/data/build/dist/client/features/cli-adapters.js +140 -35
- package/data/build/dist/client/features/cli-adapters.js.map +1 -1
- package/data/build/dist/client/features/file-management-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/file-management-panel.js +3 -10
- package/data/build/dist/client/features/file-management-panel.js.map +1 -1
- package/data/build/dist/client/features/global-voice-assistant.d.ts +6 -0
- package/data/build/dist/client/features/global-voice-assistant.d.ts.map +1 -1
- package/data/build/dist/client/features/global-voice-assistant.js +117 -3
- package/data/build/dist/client/features/global-voice-assistant.js.map +1 -1
- package/data/build/dist/client/features/index.d.ts +1 -0
- package/data/build/dist/client/features/index.d.ts.map +1 -1
- package/data/build/dist/client/features/index.js +3 -0
- package/data/build/dist/client/features/index.js.map +1 -1
- package/data/build/dist/client/features/lan-access-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/lan-access-panel.js +6 -4
- package/data/build/dist/client/features/lan-access-panel.js.map +1 -1
- package/data/build/dist/client/features/login-protection-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/login-protection-panel.js +7 -2
- package/data/build/dist/client/features/login-protection-panel.js.map +1 -1
- package/data/build/dist/client/features/mobile-access-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/mobile-access-panel.js +19 -13
- package/data/build/dist/client/features/mobile-access-panel.js.map +1 -1
- package/data/build/dist/client/features/peer-host.d.ts +3 -0
- package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/client/features/peer-host.js +445 -28
- package/data/build/dist/client/features/peer-host.js.map +1 -1
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/reverse-proxy-panel.js +5 -4
- package/data/build/dist/client/features/reverse-proxy-panel.js.map +1 -1
- package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts +9 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts.map +1 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.js +28 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.js.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/subscription-usage-panel.js +4 -3
- package/data/build/dist/client/features/subscription-usage-panel.js.map +1 -1
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/terminal-enhancement-panel.js +6 -4
- package/data/build/dist/client/features/terminal-enhancement-panel.js.map +1 -1
- package/data/build/dist/client/features/types.d.ts +8 -0
- package/data/build/dist/client/features/types.d.ts.map +1 -1
- package/data/build/dist/client/features/voice-conversation-dialog.d.ts.map +1 -1
- package/data/build/dist/client/features/voice-conversation-dialog.js +7 -6
- package/data/build/dist/client/features/voice-conversation-dialog.js.map +1 -1
- package/data/build/dist/client/features/voice-initialization-dialog.d.ts.map +1 -1
- package/data/build/dist/client/features/voice-initialization-dialog.js +7 -6
- package/data/build/dist/client/features/voice-initialization-dialog.js.map +1 -1
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +44 -96
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js.map +1 -1
- package/data/build/dist/client/file-management-dom.d.ts.map +1 -1
- package/data/build/dist/client/file-management-dom.js +42 -28
- package/data/build/dist/client/file-management-dom.js.map +1 -1
- package/data/build/dist/client/font-scale.d.ts +37 -0
- package/data/build/dist/client/font-scale.d.ts.map +1 -0
- package/data/build/dist/client/font-scale.js +56 -0
- package/data/build/dist/client/font-scale.js.map +1 -0
- package/data/build/dist/client/git-management.d.ts.map +1 -1
- package/data/build/dist/client/git-management.js +80 -37
- package/data/build/dist/client/git-management.js.map +1 -1
- package/data/build/dist/client/index.d.ts +1 -1
- package/data/build/dist/client/index.d.ts.map +1 -1
- package/data/build/dist/client/index.js +43 -1
- package/data/build/dist/client/index.js.map +1 -1
- package/data/build/dist/client/locale.d.ts.map +1 -1
- package/data/build/dist/client/locale.js +27 -2
- package/data/build/dist/client/locale.js.map +1 -1
- package/data/build/dist/client/locales/assistantWorkbench.d.ts +45 -0
- package/data/build/dist/client/locales/assistantWorkbench.d.ts.map +1 -1
- package/data/build/dist/client/locales/assistantWorkbench.js +30 -6
- package/data/build/dist/client/locales/assistantWorkbench.js.map +1 -1
- package/data/build/dist/client/locales/peerHost.d.ts.map +1 -1
- package/data/build/dist/client/locales/peerHost.js +10 -0
- package/data/build/dist/client/locales/peerHost.js.map +1 -1
- package/data/build/dist/client/locales/peerHostWorkspace.d.ts.map +1 -1
- package/data/build/dist/client/locales/peerHostWorkspace.js +16 -0
- package/data/build/dist/client/locales/peerHostWorkspace.js.map +1 -1
- package/data/build/dist/client/locales/subagentCollapsed.d.ts +53 -0
- package/data/build/dist/client/locales/subagentCollapsed.d.ts.map +1 -0
- package/data/build/dist/client/locales/subagentCollapsed.js +95 -0
- package/data/build/dist/client/locales/subagentCollapsed.js.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.js +2 -2
- package/data/build/dist/client/locales/terminalAuth.js.map +1 -1
- package/data/build/dist/client/locales/usage.d.ts.map +1 -1
- package/data/build/dist/client/locales/usage.js +48 -0
- package/data/build/dist/client/locales/usage.js.map +1 -1
- package/data/build/dist/client/native-workspace-store.d.ts +10 -0
- package/data/build/dist/client/native-workspace-store.d.ts.map +1 -1
- package/data/build/dist/client/native-workspace-store.js +22 -1
- package/data/build/dist/client/native-workspace-store.js.map +1 -1
- package/data/build/dist/client/peer-host-color.d.ts +3 -0
- package/data/build/dist/client/peer-host-color.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-color.js +16 -0
- package/data/build/dist/client/peer-host-color.js.map +1 -1
- package/data/build/dist/client/peer-host-file-links.d.ts +8 -0
- package/data/build/dist/client/peer-host-file-links.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-file-links.js +43 -0
- package/data/build/dist/client/peer-host-file-links.js.map +1 -0
- package/data/build/dist/client/peer-host-management-api.d.ts +2 -1
- package/data/build/dist/client/peer-host-management-api.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-management-api.js +2 -1
- package/data/build/dist/client/peer-host-management-api.js.map +1 -1
- package/data/build/dist/client/peer-host-native-projection.d.ts +20 -8
- package/data/build/dist/client/peer-host-native-projection.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-native-projection.js +127 -15
- package/data/build/dist/client/peer-host-native-projection.js.map +1 -1
- package/data/build/dist/client/peer-host-native-store-projection.d.ts +2 -0
- package/data/build/dist/client/peer-host-native-store-projection.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-native-store-projection.js +52 -13
- package/data/build/dist/client/peer-host-native-store-projection.js.map +1 -1
- package/data/build/dist/client/peer-host-reference-source.d.ts +18 -0
- package/data/build/dist/client/peer-host-reference-source.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-reference-source.js +174 -0
- package/data/build/dist/client/peer-host-reference-source.js.map +1 -0
- package/data/build/dist/client/peer-host-remote-events.d.ts +48 -0
- package/data/build/dist/client/peer-host-remote-events.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-remote-events.js +328 -0
- package/data/build/dist/client/peer-host-remote-events.js.map +1 -0
- package/data/build/dist/client/peer-host-scoped-client.d.ts +3 -0
- package/data/build/dist/client/peer-host-scoped-client.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-scoped-client.js +5 -2
- package/data/build/dist/client/peer-host-scoped-client.js.map +1 -1
- package/data/build/dist/client/peer-host-workspace-tab.d.ts +2 -0
- package/data/build/dist/client/peer-host-workspace-tab.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-workspace-tab.js +62 -29
- package/data/build/dist/client/peer-host-workspace-tab.js.map +1 -1
- package/data/build/dist/client/peer-host-workspace-tag.d.ts +5 -0
- package/data/build/dist/client/peer-host-workspace-tag.d.ts.map +1 -1
- package/data/build/dist/client/peer-host-workspace-tag.js +57 -14
- package/data/build/dist/client/peer-host-workspace-tag.js.map +1 -1
- package/data/build/dist/client/provider-icons.d.ts.map +1 -1
- package/data/build/dist/client/provider-icons.js +2 -1
- package/data/build/dist/client/provider-icons.js.map +1 -1
- package/data/build/dist/client/quick-phrase-slot.d.ts.map +1 -1
- package/data/build/dist/client/quick-phrase-slot.js +12 -11
- package/data/build/dist/client/quick-phrase-slot.js.map +1 -1
- package/data/build/dist/client/serial-polling.d.ts +1 -0
- package/data/build/dist/client/serial-polling.d.ts.map +1 -1
- package/data/build/dist/client/serial-polling.js +4 -2
- package/data/build/dist/client/serial-polling.js.map +1 -1
- package/data/build/dist/client/session-adapter-cache.d.ts +2 -0
- package/data/build/dist/client/session-adapter-cache.d.ts.map +1 -1
- package/data/build/dist/client/session-adapter-cache.js +11 -0
- package/data/build/dist/client/session-adapter-cache.js.map +1 -1
- package/data/build/dist/client/session-changed-files-view.d.ts +15 -0
- package/data/build/dist/client/session-changed-files-view.d.ts.map +1 -1
- package/data/build/dist/client/session-changed-files-view.js +73 -29
- package/data/build/dist/client/session-changed-files-view.js.map +1 -1
- package/data/build/dist/client/settings-controls.d.ts +29 -0
- package/data/build/dist/client/settings-controls.d.ts.map +1 -0
- package/data/build/dist/client/settings-controls.js +80 -0
- package/data/build/dist/client/settings-controls.js.map +1 -0
- package/data/build/dist/client/settings-section.d.ts.map +1 -1
- package/data/build/dist/client/settings-section.js +7 -11
- package/data/build/dist/client/settings-section.js.map +1 -1
- package/data/build/dist/client/skill-command.d.ts.map +1 -1
- package/data/build/dist/client/skill-command.js +2 -1
- package/data/build/dist/client/skill-command.js.map +1 -1
- package/data/build/dist/client/style.css +2561 -0
- package/data/build/dist/client/subagent-collapsed-lineage.d.ts +103 -0
- package/data/build/dist/client/subagent-collapsed-lineage.d.ts.map +1 -0
- package/data/build/dist/client/subagent-collapsed-lineage.js +664 -0
- package/data/build/dist/client/subagent-collapsed-lineage.js.map +1 -0
- package/data/build/dist/client/subscription-slot.d.ts +8 -2
- package/data/build/dist/client/subscription-slot.d.ts.map +1 -1
- package/data/build/dist/client/subscription-slot.js +55 -34
- package/data/build/dist/client/subscription-slot.js.map +1 -1
- package/data/build/dist/client/terminal/ui.d.ts.map +1 -1
- package/data/build/dist/client/terminal/ui.js +26 -8
- package/data/build/dist/client/terminal/ui.js.map +1 -1
- package/data/build/dist/client/theme.d.ts +2 -0
- package/data/build/dist/client/theme.d.ts.map +1 -1
- package/data/build/dist/client/theme.js +20 -12
- package/data/build/dist/client/theme.js.map +1 -1
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -1
- package/data/build/dist/client/workspace-session-visibility-dom.js +22 -10
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.d.ts +15 -0
- package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.js +86 -0
- package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.js +199 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts +1 -1
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js +8 -2
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js.map +1 -1
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/matrix.js +13 -3
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.js +37 -3
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/types.js.map +1 -1
- package/data/build/dist/host/avatar/materials.d.ts.map +1 -1
- package/data/build/dist/host/avatar/materials.js +3 -1
- package/data/build/dist/host/avatar/materials.js.map +1 -1
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js +136 -11
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/codebuddy-driver.js +65 -31
- package/data/build/dist/host/cli-adapters/codebuddy-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.js +36 -9
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.js +271 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/command-code-driver.js +136 -16
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts +4 -3
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js +7 -6
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js.map +1 -1
- package/data/build/dist/host/cli-adapters/doubao-app.d.ts +32 -11
- package/data/build/dist/host/cli-adapters/doubao-app.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/doubao-app.js +195 -24
- package/data/build/dist/host/cli-adapters/doubao-app.js.map +1 -1
- package/data/build/dist/host/cli-adapters/doubao-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/doubao-driver.js +3 -1
- package/data/build/dist/host/cli-adapters/doubao-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-config.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/dsh-config.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-config.js +153 -0
- package/data/build/dist/host/cli-adapters/dsh-config.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +2 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +16 -5
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +23 -3
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.js +72 -28
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.js +22 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +24 -2
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +113 -4
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +63 -18
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +35 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
- package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/new-api-subscription.js +2 -45
- package/data/build/dist/host/cli-adapters/new-api-subscription.js.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +6 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.js +10 -3
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js +334 -62
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -1
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/pi-driver.js +134 -14
- package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/provider-subscription.js +13 -45
- package/data/build/dist/host/cli-adapters/provider-subscription.js.map +1 -1
- package/data/build/dist/host/cli-adapters/r4-subscription.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.js +111 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.js +14 -3
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +7 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.js +28 -7
- package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts +24 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.js +121 -23
- package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -1
- package/data/build/dist/host/cli-bridge/dispatch.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/dispatch.js +26 -6
- package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.d.ts +45 -4
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.js +129 -14
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -1
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +20 -5
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -1
- package/data/build/dist/host/desktop-assistant/controller.d.ts +27 -2
- package/data/build/dist/host/desktop-assistant/controller.d.ts.map +1 -1
- package/data/build/dist/host/desktop-assistant/controller.js +197 -7
- package/data/build/dist/host/desktop-assistant/controller.js.map +1 -1
- package/data/build/dist/host/desktop-assistant/feature.d.ts.map +1 -1
- package/data/build/dist/host/desktop-assistant/feature.js +41 -4
- package/data/build/dist/host/desktop-assistant/feature.js.map +1 -1
- package/data/build/dist/host/desktop-assistant/launcher.d.ts.map +1 -1
- package/data/build/dist/host/desktop-assistant/launcher.js +3 -1
- package/data/build/dist/host/desktop-assistant/launcher.js.map +1 -1
- package/data/build/dist/host/desktop-assistant/mac-agent.d.ts.map +1 -1
- package/data/build/dist/host/desktop-assistant/mac-agent.js +41 -10
- package/data/build/dist/host/desktop-assistant/mac-agent.js.map +1 -1
- package/data/build/dist/host/desktop-assistant/notifications.d.ts +16 -0
- package/data/build/dist/host/desktop-assistant/notifications.d.ts.map +1 -0
- package/data/build/dist/host/desktop-assistant/notifications.js +45 -0
- package/data/build/dist/host/desktop-assistant/notifications.js.map +1 -0
- package/data/build/dist/host/desktop-assistant/win-agent.d.ts.map +1 -1
- package/data/build/dist/host/desktop-assistant/win-agent.js +95 -8
- package/data/build/dist/host/desktop-assistant/win-agent.js.map +1 -1
- package/data/build/dist/host/features/assistant-lifecycle-settings.js +1 -1
- package/data/build/dist/host/features/assistant-lifecycle-settings.js.map +1 -1
- package/data/build/dist/host/features/assistant-management-tools.d.ts +2 -1
- package/data/build/dist/host/features/assistant-management-tools.d.ts.map +1 -1
- package/data/build/dist/host/features/assistant-management-tools.js +10 -3
- package/data/build/dist/host/features/assistant-management-tools.js.map +1 -1
- package/data/build/dist/host/features/assistant-notification-events.d.ts +77 -0
- package/data/build/dist/host/features/assistant-notification-events.d.ts.map +1 -0
- package/data/build/dist/host/features/assistant-notification-events.js +574 -0
- package/data/build/dist/host/features/assistant-notification-events.js.map +1 -0
- package/data/build/dist/host/features/assistant-notification-source.d.ts +32 -0
- package/data/build/dist/host/features/assistant-notification-source.d.ts.map +1 -0
- package/data/build/dist/host/features/assistant-notification-source.js +101 -0
- package/data/build/dist/host/features/assistant-notification-source.js.map +1 -0
- package/data/build/dist/host/features/assistant-notification-stream.d.ts +26 -0
- package/data/build/dist/host/features/assistant-notification-stream.d.ts.map +1 -0
- package/data/build/dist/host/features/assistant-notification-stream.js +179 -0
- package/data/build/dist/host/features/assistant-notification-stream.js.map +1 -0
- package/data/build/dist/host/features/assistant-notifications.d.ts +78 -0
- package/data/build/dist/host/features/assistant-notifications.d.ts.map +1 -0
- package/data/build/dist/host/features/assistant-notifications.js +436 -0
- package/data/build/dist/host/features/assistant-notifications.js.map +1 -0
- package/data/build/dist/host/features/assistant-peer-notifications.d.ts +53 -0
- package/data/build/dist/host/features/assistant-peer-notifications.d.ts.map +1 -0
- package/data/build/dist/host/features/assistant-peer-notifications.js +197 -0
- package/data/build/dist/host/features/assistant-peer-notifications.js.map +1 -0
- package/data/build/dist/host/features/assistant-tts-service.d.ts.map +1 -1
- package/data/build/dist/host/features/assistant-tts-service.js +2 -2
- package/data/build/dist/host/features/assistant-tts-service.js.map +1 -1
- package/data/build/dist/host/features/assistant-voice-initialization.js +1 -1
- package/data/build/dist/host/features/assistant-voice-initialization.js.map +1 -1
- package/data/build/dist/host/features/git-management.js +2 -1
- package/data/build/dist/host/features/git-management.js.map +1 -1
- package/data/build/dist/host/features/global-voice-rpc.d.ts +2 -2
- package/data/build/dist/host/features/global-voice-rpc.d.ts.map +1 -1
- package/data/build/dist/host/features/global-voice-rpc.js +179 -4
- package/data/build/dist/host/features/global-voice-rpc.js.map +1 -1
- package/data/build/dist/host/features/index.d.ts +1 -0
- package/data/build/dist/host/features/index.d.ts.map +1 -1
- package/data/build/dist/host/features/index.js +3 -0
- package/data/build/dist/host/features/index.js.map +1 -1
- package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/host/features/peer-host.js +193 -75
- package/data/build/dist/host/features/peer-host.js.map +1 -1
- package/data/build/dist/host/features/session-title-optimization.d.ts +5 -0
- package/data/build/dist/host/features/session-title-optimization.d.ts.map +1 -0
- package/data/build/dist/host/features/session-title-optimization.js +26 -0
- package/data/build/dist/host/features/session-title-optimization.js.map +1 -0
- package/data/build/dist/host/features/types.d.ts +9 -1
- package/data/build/dist/host/features/types.d.ts.map +1 -1
- package/data/build/dist/host/index.d.ts.map +1 -1
- package/data/build/dist/host/index.js +23 -1
- package/data/build/dist/host/index.js.map +1 -1
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
- package/data/build/dist/host/lan-access-dsh.js +9 -1
- package/data/build/dist/host/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.js +8 -2
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts +5 -1
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js +72 -23
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.js +7 -5
- package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.d.ts +6 -1
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.js +7 -0
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.d.ts +2 -1
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.js +11 -10
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts +7 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js +63 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.d.ts +6 -3
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.js +92 -5
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts +15 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js +101 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.js +44 -11
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.js +75 -20
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-request-errors.d.ts +31 -0
- package/data/build/dist/host/modules/peer-host/peer-host-request-errors.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-request-errors.js +60 -0
- package/data/build/dist/host/modules/peer-host/peer-host-request-errors.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts +12 -4
- package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-session.js +28 -18
- package/data/build/dist/host/modules/peer-host/peer-host-session.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.d.ts +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.js +15 -4
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-workspace-cache.d.ts +22 -0
- package/data/build/dist/host/modules/peer-host/peer-host-workspace-cache.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-workspace-cache.js +133 -0
- package/data/build/dist/host/modules/peer-host/peer-host-workspace-cache.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts +2 -0
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
- package/data/build/dist/host/native-session-bridge.js +89 -9
- package/data/build/dist/host/native-session-bridge.js.map +1 -1
- package/data/build/dist/host/rpc.d.ts.map +1 -1
- package/data/build/dist/host/rpc.js +11 -2
- package/data/build/dist/host/rpc.js.map +1 -1
- package/data/build/dist/host/settings.d.ts.map +1 -1
- package/data/build/dist/host/settings.js +14 -3
- package/data/build/dist/host/settings.js.map +1 -1
- package/data/build/dist/host/terminal/controller-factory.d.ts +1 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts.map +1 -1
- package/data/build/dist/host/terminal/controller-factory.js +3 -0
- package/data/build/dist/host/terminal/controller-factory.js.map +1 -1
- package/data/build/dist/host/terminal/startup.d.ts +3 -0
- package/data/build/dist/host/terminal/startup.d.ts.map +1 -1
- package/data/build/dist/host/terminal/startup.js +1 -0
- package/data/build/dist/host/terminal/startup.js.map +1 -1
- package/data/build/dist/host/terminal/terminal-controller.d.ts +8 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts.map +1 -1
- package/data/build/dist/host/terminal/terminal-controller.js +2 -1
- package/data/build/dist/host/terminal/terminal-controller.js.map +1 -1
- package/data/build/dist/shared/assistant-avatar-adapters.d.ts.map +1 -1
- package/data/build/dist/shared/assistant-avatar-adapters.js +3 -0
- package/data/build/dist/shared/assistant-avatar-adapters.js.map +1 -1
- package/data/build/dist/shared/assistant-avatar.d.ts +11 -1
- package/data/build/dist/shared/assistant-avatar.d.ts.map +1 -1
- package/data/build/dist/shared/assistant-avatar.js +31 -1
- package/data/build/dist/shared/assistant-avatar.js.map +1 -1
- package/data/build/dist/shared/assistant-message-timeline.d.ts +11 -0
- package/data/build/dist/shared/assistant-message-timeline.d.ts.map +1 -1
- package/data/build/dist/shared/assistant-message-timeline.js +19 -0
- package/data/build/dist/shared/assistant-message-timeline.js.map +1 -1
- package/data/build/dist/shared/assistant-notification-feed.d.ts +44 -0
- package/data/build/dist/shared/assistant-notification-feed.d.ts.map +1 -0
- package/data/build/dist/shared/assistant-notification-feed.js +88 -0
- package/data/build/dist/shared/assistant-notification-feed.js.map +1 -0
- package/data/build/dist/shared/assistant-notifications.d.ts +141 -0
- package/data/build/dist/shared/assistant-notifications.d.ts.map +1 -0
- package/data/build/dist/shared/assistant-notifications.js +32 -0
- package/data/build/dist/shared/assistant-notifications.js.map +1 -0
- package/data/build/dist/shared/assistant-session-messages.d.ts +13 -0
- package/data/build/dist/shared/assistant-session-messages.d.ts.map +1 -0
- package/data/build/dist/shared/assistant-session-messages.js +155 -0
- package/data/build/dist/shared/assistant-session-messages.js.map +1 -0
- package/data/build/dist/shared/assistant-tts.js +1 -1
- package/data/build/dist/shared/contracts/assistant.d.ts +13 -0
- package/data/build/dist/shared/contracts/assistant.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +5 -1
- package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/config.d.ts +5 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/config.js +3 -0
- package/data/build/dist/shared/contracts/config.js.map +1 -1
- package/data/build/dist/shared/contracts/errors.d.ts +2 -2
- package/data/build/dist/shared/contracts/peer-host.d.ts +15 -0
- package/data/build/dist/shared/contracts/peer-host.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/peer-host.js.map +1 -1
- package/data/build/dist/shared/contracts/subscription.d.ts +31 -0
- package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/subscription.js.map +1 -1
- package/data/build/dist/shared/contracts/version.d.ts +12 -8
- package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/version.js +11 -7
- package/data/build/dist/shared/contracts/version.js.map +1 -1
- package/data/build/dist/shared/desktop-assistant.d.ts +74 -1
- package/data/build/dist/shared/desktop-assistant.d.ts.map +1 -1
- package/data/build/dist/shared/desktop-assistant.js +201 -2
- package/data/build/dist/shared/desktop-assistant.js.map +1 -1
- package/data/build/dist/shared/index.d.ts +2 -2
- package/data/build/dist/shared/index.d.ts.map +1 -1
- package/data/build/dist/shared/index.js.map +1 -1
- package/data/build/dist/shared/peer-host-file-location.d.ts +11 -0
- package/data/build/dist/shared/peer-host-file-location.d.ts.map +1 -0
- package/data/build/dist/shared/peer-host-file-location.js +20 -0
- package/data/build/dist/shared/peer-host-file-location.js.map +1 -0
- package/data/build/dist/shared/peer-host-http-routes.d.ts +10 -0
- package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
- package/data/build/dist/shared/peer-host-http-routes.js +7 -1
- package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
- package/data/build/dist/shared/provider-icon-resources.d.ts.map +1 -1
- package/data/build/dist/shared/provider-icon-resources.js +1 -0
- package/data/build/dist/shared/provider-icon-resources.js.map +1 -1
- package/data/build/dist/shared/session-reference.d.ts +11 -0
- package/data/build/dist/shared/session-reference.d.ts.map +1 -0
- package/data/build/dist/shared/session-reference.js +29 -0
- package/data/build/dist/shared/session-reference.js.map +1 -0
- package/data/build/dist/shared/session-title.d.ts +12 -0
- package/data/build/dist/shared/session-title.d.ts.map +1 -0
- package/data/build/dist/shared/session-title.js +65 -0
- package/data/build/dist/shared/session-title.js.map +1 -0
- package/data/build/dist/shared/voice-initialization.d.ts +1 -1
- package/data/build/dist/shared/voice-initialization.d.ts.map +1 -1
- package/data/build/dist/shared/voice-initialization.js +1 -1
- package/data/build/dist/shared/voice-initialization.js.map +1 -1
- package/data/build/dist/shared/voice-models.d.ts +2 -2
- package/data/build/dist/shared/voice-models.d.ts.map +1 -1
- package/data/build/dist/shared/voice-models.js +9 -9
- package/data/build/dist/shared/voice-models.js.map +1 -1
- package/data/build/dist/typert.host.d.ts +18 -1
- package/data/build/dist/typert.host.d.ts.map +1 -1
- package/data/build/dist/typert.host.js +28 -3
- package/data/build/dist/typert.host.js.map +1 -1
- package/data/build/dist/typert.notifications-client.d.ts +5 -0
- package/data/build/dist/typert.notifications-client.d.ts.map +1 -0
- package/data/build/dist/typert.notifications-client.js +7 -0
- package/data/build/dist/typert.notifications-client.js.map +1 -0
- package/data/build/dist/typert.remote-client.js +1 -1
- package/data/build/dist/typert.remote-client.js.map +1 -1
- package/package.json +41 -33
- package/profile/README.md +2 -2
- package/profile/package.json +3 -3
- package/profile/version.json +3 -3
- package/version.json +3 -3
- package/data/build/dist/client/client.assistant-prompts.js.map +0 -1
|
@@ -30,19 +30,12 @@ window.__ModuleLoader__.load({
|
|
|
30
30
|
name: "tokens.txt"
|
|
31
31
|
}
|
|
32
32
|
];
|
|
33
|
-
/**
|
|
34
|
-
const DEFAULT_VOICE_MODEL_ID = "sherpa-onnx-streaming-zh-
|
|
33
|
+
/** 全局智能助理默认使用中文 Zipformer Large;显式保存的模型选择继续保留。 */
|
|
34
|
+
const DEFAULT_VOICE_MODEL_ID = "sherpa-onnx-streaming-zh-large-2025-06-30";
|
|
35
35
|
/** 只暴露支持实时输入的推荐模型;模型地址由 Host 根据此白名单解析。 */
|
|
36
36
|
const ASSISTANT_VOICE_MODEL_CATALOG = [
|
|
37
37
|
{
|
|
38
38
|
id: DEFAULT_VOICE_MODEL_ID,
|
|
39
|
-
label: "中英双语实时模型(默认)",
|
|
40
|
-
description: "本地运行,约 200 MB,同时识别中文和英文,适合编程交流。",
|
|
41
|
-
repository: "csukuangfj/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20",
|
|
42
|
-
files: STREAMING_FILES
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: "sherpa-onnx-streaming-zh-large-2025-06-30",
|
|
46
39
|
label: "中文 Zipformer Large(2025-06-30)",
|
|
47
40
|
description: "本地中文实时识别,模型文件约 168 MB。",
|
|
48
41
|
repository: "csukuangfj/sherpa-onnx-streaming-zipformer-zh-int8-2025-06-30",
|
|
@@ -65,6 +58,13 @@ window.__ModuleLoader__.load({
|
|
|
65
58
|
}
|
|
66
59
|
]
|
|
67
60
|
},
|
|
61
|
+
{
|
|
62
|
+
id: "sherpa-onnx-streaming-zh-en",
|
|
63
|
+
label: "中英双语实时模型",
|
|
64
|
+
description: "本地运行,约 200 MB,同时识别中文和英文,适合编程交流。",
|
|
65
|
+
repository: "csukuangfj/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20",
|
|
66
|
+
files: STREAMING_FILES
|
|
67
|
+
},
|
|
68
68
|
{
|
|
69
69
|
id: "sherpa-onnx-streaming-zh-14m",
|
|
70
70
|
label: "中文轻量实时模型(14M)",
|
|
@@ -80,7 +80,7 @@ window.__ModuleLoader__.load({
|
|
|
80
80
|
//#region src/client/assistant-settings-styles.ts
|
|
81
81
|
/** 助理各页共用选项排版,避免开关、许可复选框和字段标签分别继承宿主字号。 */
|
|
82
82
|
const assistantSettingTextStyle = {
|
|
83
|
-
fontSize: 13,
|
|
83
|
+
fontSize: require_theme.uiFontSize(13),
|
|
84
84
|
fontWeight: 400,
|
|
85
85
|
lineHeight: 1.5
|
|
86
86
|
};
|
|
@@ -101,7 +101,9 @@ window.__ModuleLoader__.load({
|
|
|
101
101
|
display: "flex",
|
|
102
102
|
alignItems: "center",
|
|
103
103
|
justifyContent: "space-between",
|
|
104
|
-
gap: 12
|
|
104
|
+
gap: 12,
|
|
105
|
+
width: "100%",
|
|
106
|
+
minWidth: 0
|
|
105
107
|
};
|
|
106
108
|
//#endregion
|
|
107
109
|
//#region src/client/features/assistant-display-store.ts
|
|
@@ -415,7 +417,7 @@ window.__ModuleLoader__.load({
|
|
|
415
417
|
whiteSpace: "nowrap",
|
|
416
418
|
cursor: "pointer",
|
|
417
419
|
font: "inherit",
|
|
418
|
-
fontSize: 13,
|
|
420
|
+
fontSize: require_theme.uiFontSize(13),
|
|
419
421
|
fontWeight: active === tab.id ? 600 : 400,
|
|
420
422
|
color: active === tab.id ? require_theme.dshThemeColor.labelPrimary : require_theme.dshThemeColor.labelSecondary,
|
|
421
423
|
background: active === tab.id ? require_theme.dshThemeColor.pageBackground : "transparent",
|
|
@@ -497,7 +499,7 @@ window.__ModuleLoader__.load({
|
|
|
497
499
|
gap: 5,
|
|
498
500
|
padding: "3px 8px",
|
|
499
501
|
borderRadius: 999,
|
|
500
|
-
fontSize: 11,
|
|
502
|
+
fontSize: require_theme.uiFontSize(11),
|
|
501
503
|
lineHeight: 1.4,
|
|
502
504
|
whiteSpace: "nowrap",
|
|
503
505
|
color: status === "idle" ? require_theme.dshThemeColor.labelSecondary : require_theme.dshThemeColor.accent,
|
|
@@ -604,7 +606,7 @@ window.__ModuleLoader__.load({
|
|
|
604
606
|
borderRadius: 10,
|
|
605
607
|
background: require_theme.dshThemeColor.buttonBackground,
|
|
606
608
|
border: `1px solid ${require_theme.dshThemeColor.border}`,
|
|
607
|
-
fontSize: 12
|
|
609
|
+
fontSize: require_theme.uiFontSize(12)
|
|
608
610
|
}
|
|
609
611
|
}, (0, react.createElement)("span", {
|
|
610
612
|
title: file.name,
|
|
@@ -655,7 +657,7 @@ window.__ModuleLoader__.load({
|
|
|
655
657
|
background: "transparent",
|
|
656
658
|
color: require_theme.dshThemeColor.labelPrimary,
|
|
657
659
|
font: "inherit",
|
|
658
|
-
fontSize: 14,
|
|
660
|
+
fontSize: require_theme.uiFontSize(14),
|
|
659
661
|
lineHeight: "20px"
|
|
660
662
|
},
|
|
661
663
|
onChange: (event) => onChange(event.currentTarget.value),
|
|
@@ -787,7 +789,7 @@ window.__ModuleLoader__.load({
|
|
|
787
789
|
}
|
|
788
790
|
}, (0, react.createElement)("strong", {
|
|
789
791
|
id,
|
|
790
|
-
style: { fontSize: 17 }
|
|
792
|
+
style: { fontSize: require_theme.uiFontSize(17) }
|
|
791
793
|
}, props.t(props.stage === "clear" ? "awb.clear" : props.stage === "reset-first" ? "awb.reset" : "awb.resetFinalTitle")), (0, react.createElement)(AssistantMaintenanceConfirmationView, props));
|
|
792
794
|
}
|
|
793
795
|
function AssistantMaintenanceConfirmationView({ stage, t, disabled, error, onConfirm, onCancel }) {
|
|
@@ -795,7 +797,7 @@ window.__ModuleLoader__.load({
|
|
|
795
797
|
display: "grid",
|
|
796
798
|
gap: 16,
|
|
797
799
|
marginTop: 14,
|
|
798
|
-
fontSize: 13,
|
|
800
|
+
fontSize: require_theme.uiFontSize(13),
|
|
799
801
|
lineHeight: 1.6
|
|
800
802
|
} }, (0, react.createElement)("p", { style: {
|
|
801
803
|
margin: 0,
|
|
@@ -1004,7 +1006,8 @@ window.__ModuleLoader__.load({
|
|
|
1004
1006
|
"appearance",
|
|
1005
1007
|
"voice",
|
|
1006
1008
|
"tts",
|
|
1007
|
-
"prompts"
|
|
1009
|
+
"prompts",
|
|
1010
|
+
"notifications"
|
|
1008
1011
|
].includes(operation.path[1])).map((operation) => ({
|
|
1009
1012
|
...operation,
|
|
1010
1013
|
path: operation.path.slice(1)
|
|
@@ -1108,7 +1111,7 @@ window.__ModuleLoader__.load({
|
|
|
1108
1111
|
} : endpoint.endsWith("/remove") ? {
|
|
1109
1112
|
...tts,
|
|
1110
1113
|
voices: tts.voices.filter((voice) => voice.id !== value?.id),
|
|
1111
|
-
selectedId: tts.selectedId === value?.id ?
|
|
1114
|
+
selectedId: tts.selectedId === value?.id ? require_manager.DEFAULT_ASSISTANT_TTS_SETTINGS.selectedId : tts.selectedId
|
|
1112
1115
|
} : {
|
|
1113
1116
|
...tts,
|
|
1114
1117
|
selectedId: value?.id ?? tts.selectedId,
|
|
@@ -1242,6 +1245,28 @@ window.__ModuleLoader__.load({
|
|
|
1242
1245
|
});
|
|
1243
1246
|
return parts;
|
|
1244
1247
|
}
|
|
1248
|
+
/** 将同一正文位置连续发生的工具归入一个 DSH 风格 step;正文仍保持原有穿插位置。 */
|
|
1249
|
+
function assistantMessageStepTimeline(text, calls = []) {
|
|
1250
|
+
const parts = assistantMessageTimeline(text, calls);
|
|
1251
|
+
const grouped = [];
|
|
1252
|
+
for (const part of parts) {
|
|
1253
|
+
if (part.kind === "text") {
|
|
1254
|
+
grouped.push(part);
|
|
1255
|
+
continue;
|
|
1256
|
+
}
|
|
1257
|
+
const previous = grouped.at(-1);
|
|
1258
|
+
if (previous?.kind === "tool-step") grouped[grouped.length - 1] = {
|
|
1259
|
+
...previous,
|
|
1260
|
+
calls: [...previous.calls, part.call]
|
|
1261
|
+
};
|
|
1262
|
+
else grouped.push({
|
|
1263
|
+
kind: "tool-step",
|
|
1264
|
+
key: `tool-step-${part.call.id}`,
|
|
1265
|
+
calls: [part.call]
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
return grouped;
|
|
1269
|
+
}
|
|
1245
1270
|
//#endregion
|
|
1246
1271
|
//#region src/client/features/assistant-record-style.ts
|
|
1247
1272
|
/** 工具记录和通话记录共享交互反馈,选择器只作用于这两类组件。 */
|
|
@@ -1267,14 +1292,21 @@ window.__ModuleLoader__.load({
|
|
|
1267
1292
|
}, (0, react.createElement)("path", { d: "m9 5 7 7-7 7" }));
|
|
1268
1293
|
}
|
|
1269
1294
|
const recordCss = `
|
|
1270
|
-
.codingns-assistant-tool-summary{list-style:none;cursor:pointer
|
|
1295
|
+
.codingns-assistant-tool-summary{list-style:none;cursor:pointer}
|
|
1271
1296
|
.codingns-assistant-tool-summary::-webkit-details-marker{display:none}
|
|
1272
|
-
.codingns-assistant-tool-summary:hover,.codingns-assistant-record-button:hover{
|
|
1273
|
-
.codingns-assistant-tool-summary:active,.codingns-assistant-record-button:active{
|
|
1297
|
+
.codingns-assistant-tool-summary:hover,.codingns-assistant-record-button:hover{color:${require_theme.dshThemeColor.labelPrimary}!important}
|
|
1298
|
+
.codingns-assistant-tool-summary:active,.codingns-assistant-record-button:active{color:${require_theme.dshThemeColor.labelPrimary}!important}
|
|
1274
1299
|
.codingns-assistant-tool-summary:focus-visible,.codingns-assistant-record-button:focus-visible{outline:2px solid ${require_theme.dshThemeColor.accent};outline-offset:2px}
|
|
1275
|
-
.codingns-assistant-tool-details[open]>.codingns-assistant-tool-summary{border-radius:9px 9px 0 0}
|
|
1276
1300
|
.codingns-assistant-tool-details[open] .codingns-assistant-tool-name{white-space:normal!important;overflow-wrap:anywhere}
|
|
1277
1301
|
.codingns-assistant-tool-details[open]>.codingns-assistant-tool-summary .codingns-assistant-record-chevron{transform:rotate(90deg)}
|
|
1302
|
+
.codingns-assistant-tool-step-summary{list-style:none;cursor:pointer}
|
|
1303
|
+
.codingns-assistant-tool-step-summary::-webkit-details-marker{display:none}
|
|
1304
|
+
.codingns-assistant-tool-step-summary:hover{color:${require_theme.dshThemeColor.labelPrimary}!important}
|
|
1305
|
+
.codingns-assistant-tool-step-summary:active{color:${require_theme.dshThemeColor.labelPrimary}!important}
|
|
1306
|
+
.codingns-assistant-tool-step-summary:focus-visible{outline:2px solid ${require_theme.dshThemeColor.accent};outline-offset:2px}
|
|
1307
|
+
.codingns-assistant-tool-step-details[open]>.codingns-assistant-tool-step-summary .codingns-assistant-step-chevron{transform:rotate(180deg)}
|
|
1308
|
+
.codingns-assistant-tool-step-details[open] .codingns-assistant-tool-step-body{padding-inline:4px}
|
|
1309
|
+
.codingns-assistant-tool-step-details[open] .codingns-assistant-tool-step-preview{white-space:normal;overflow-wrap:anywhere}
|
|
1278
1310
|
.codingns-assistant-voice-dialog[open]{display:flex;flex-direction:column}
|
|
1279
1311
|
.codingns-assistant-voice-dialog::backdrop{background:${require_theme.dshThemeColor.overlay}}
|
|
1280
1312
|
`;
|
|
@@ -1294,7 +1326,7 @@ window.__ModuleLoader__.load({
|
|
|
1294
1326
|
maxWidth: side === void 0 ? "100%" : "88%",
|
|
1295
1327
|
minWidth: 0,
|
|
1296
1328
|
boxSizing: "border-box",
|
|
1297
|
-
fontSize: 14,
|
|
1329
|
+
fontSize: require_theme.uiFontSize(14),
|
|
1298
1330
|
lineHeight: 1.65,
|
|
1299
1331
|
whiteSpace: "pre-wrap",
|
|
1300
1332
|
overflowWrap: "anywhere"
|
|
@@ -1324,7 +1356,7 @@ window.__ModuleLoader__.load({
|
|
|
1324
1356
|
key: item.attachment.attachmentId,
|
|
1325
1357
|
title: item.attachment.name,
|
|
1326
1358
|
style: {
|
|
1327
|
-
fontSize: 12,
|
|
1359
|
+
fontSize: require_theme.uiFontSize(12),
|
|
1328
1360
|
padding: "3px 8px",
|
|
1329
1361
|
borderRadius: 8,
|
|
1330
1362
|
border: `1px solid ${require_theme.dshThemeColor.border}`
|
|
@@ -1333,9 +1365,9 @@ window.__ModuleLoader__.load({
|
|
|
1333
1365
|
}
|
|
1334
1366
|
/** 文字聊天、实时字幕与通话历史共用同一时间线,不额外生成工具汇总区。 */
|
|
1335
1367
|
function AssistantMessageContentView({ text, calls, t }) {
|
|
1336
|
-
return (0, react.createElement)(react.Fragment, null, ...
|
|
1368
|
+
return (0, react.createElement)(react.Fragment, null, ...assistantMessageStepTimeline(text, calls).map((part) => part.kind === "tool-step" ? (0, react.createElement)(AssistantToolStepView, {
|
|
1337
1369
|
key: part.key,
|
|
1338
|
-
calls:
|
|
1370
|
+
calls: part.calls,
|
|
1339
1371
|
t
|
|
1340
1372
|
}) : (0, react.createElement)("div", {
|
|
1341
1373
|
key: part.key,
|
|
@@ -1347,14 +1379,15 @@ window.__ModuleLoader__.load({
|
|
|
1347
1379
|
}, part.text)));
|
|
1348
1380
|
}
|
|
1349
1381
|
/** 工具信息单独展示,不拼入消息正文,字幕与语音合成都只使用原始 text。 */
|
|
1350
|
-
function AssistantToolCallsView({ calls, t }) {
|
|
1382
|
+
function AssistantToolCallsView({ calls, t, compact = false }) {
|
|
1351
1383
|
if (!calls?.length) return null;
|
|
1352
1384
|
return (0, react.createElement)("div", {
|
|
1353
1385
|
"data-codingns-assistant-tools": true,
|
|
1386
|
+
"data-codingns-assistant-tools-compact": compact,
|
|
1354
1387
|
style: {
|
|
1355
1388
|
display: "grid",
|
|
1356
|
-
gap:
|
|
1357
|
-
marginBlock: 6,
|
|
1389
|
+
gap: 2,
|
|
1390
|
+
marginBlock: compact ? 0 : 6,
|
|
1358
1391
|
textAlign: "left",
|
|
1359
1392
|
whiteSpace: "normal",
|
|
1360
1393
|
minWidth: 0
|
|
@@ -1362,26 +1395,113 @@ window.__ModuleLoader__.load({
|
|
|
1362
1395
|
}, (0, react.createElement)(AssistantRecordStyle), ...calls.map((call) => (0, react.createElement)(AssistantToolCallView, {
|
|
1363
1396
|
key: call.id,
|
|
1364
1397
|
call,
|
|
1365
|
-
t
|
|
1398
|
+
t,
|
|
1399
|
+
compact
|
|
1366
1400
|
})));
|
|
1367
1401
|
}
|
|
1402
|
+
/** 一个 step 只显示摘要;展开后才加载其中的工具调用明细。 */
|
|
1403
|
+
function AssistantToolStepView({ calls, t }) {
|
|
1404
|
+
if (calls.length === 0) return null;
|
|
1405
|
+
const running = calls.some((call) => call.state === "running");
|
|
1406
|
+
const failed = calls.some((call) => call.state === "failed");
|
|
1407
|
+
const status = running ? "running" : failed ? "failed" : calls.every((call) => call.state === "cancelled") ? "cancelled" : "completed";
|
|
1408
|
+
const latestCall = calls[calls.length - 1];
|
|
1409
|
+
const latestArguments = assistantToolArgumentPreview(latestCall, t);
|
|
1410
|
+
const summary = calls.map((call) => assistantToolStepPreview(call, t)).filter((value, index, all) => all.indexOf(value) === index).join(t("awb.call.separator"));
|
|
1411
|
+
return (0, react.createElement)("div", {
|
|
1412
|
+
"data-codingns-assistant-tool-step": true,
|
|
1413
|
+
style: {
|
|
1414
|
+
marginBlock: 6,
|
|
1415
|
+
textAlign: "left",
|
|
1416
|
+
whiteSpace: "normal",
|
|
1417
|
+
minWidth: 0,
|
|
1418
|
+
color: require_theme.dshThemeColor.labelSecondary,
|
|
1419
|
+
fontSize: require_theme.uiFontSize(13),
|
|
1420
|
+
lineHeight: 1.6
|
|
1421
|
+
}
|
|
1422
|
+
}, (0, react.createElement)(AssistantRecordStyle), (0, react.createElement)("details", { className: "codingns-assistant-tool-step-details" }, (0, react.createElement)("summary", {
|
|
1423
|
+
className: "codingns-assistant-tool-step-summary",
|
|
1424
|
+
title: t("awb.call.stepDetails"),
|
|
1425
|
+
"aria-label": `${t("awb.call.step")} · ${summary} · ${t(`awb.call.tool.${status}`)}`,
|
|
1426
|
+
style: {
|
|
1427
|
+
display: "flex",
|
|
1428
|
+
alignItems: "center",
|
|
1429
|
+
gap: 8,
|
|
1430
|
+
minWidth: 0,
|
|
1431
|
+
padding: "2px 0",
|
|
1432
|
+
color: require_theme.dshThemeColor.labelSecondary
|
|
1433
|
+
}
|
|
1434
|
+
}, (0, react.createElement)(AssistantStepChevron), (0, react.createElement)("span", {
|
|
1435
|
+
className: "codingns-assistant-tool-step-preview",
|
|
1436
|
+
"data-latest-tool": latestCall.name,
|
|
1437
|
+
title: latestCall.name,
|
|
1438
|
+
style: {
|
|
1439
|
+
minWidth: 0,
|
|
1440
|
+
overflow: "hidden",
|
|
1441
|
+
textOverflow: "ellipsis",
|
|
1442
|
+
whiteSpace: "nowrap"
|
|
1443
|
+
}
|
|
1444
|
+
}, summary, " · ", (0, react.createElement)("code", { style: {
|
|
1445
|
+
color: require_theme.dshThemeColor.labelPrimary,
|
|
1446
|
+
fontFamily: require_theme.dshThemeColor.codeFont,
|
|
1447
|
+
fontSize: "0.92em"
|
|
1448
|
+
} }, latestCall.name), latestArguments ? ` · ${latestArguments}` : "")), (0, react.createElement)("div", {
|
|
1449
|
+
className: "codingns-assistant-tool-step-body",
|
|
1450
|
+
style: {
|
|
1451
|
+
display: "grid",
|
|
1452
|
+
gap: 1,
|
|
1453
|
+
padding: "4px 0 5px 21px"
|
|
1454
|
+
}
|
|
1455
|
+
}, (0, react.createElement)(AssistantToolCallsView, {
|
|
1456
|
+
calls,
|
|
1457
|
+
t,
|
|
1458
|
+
compact: true
|
|
1459
|
+
}))));
|
|
1460
|
+
}
|
|
1461
|
+
function assistantToolStepPreview(call, t) {
|
|
1462
|
+
if (call.name.includes("read") || call.kind === "attachment") return t("awb.call.stepRead");
|
|
1463
|
+
if (call.name.includes("search") || call.kind === "web-search") return t("awb.call.stepSearch");
|
|
1464
|
+
if (call.name.includes("workspace") || call.kind === "workspace") return t("awb.call.stepWorkspace");
|
|
1465
|
+
return t("awb.call.stepTool");
|
|
1466
|
+
}
|
|
1467
|
+
function assistantToolArgumentPreview(call, t) {
|
|
1468
|
+
try {
|
|
1469
|
+
const args = JSON.parse(call.arguments);
|
|
1470
|
+
if (args === null || typeof args !== "object" || Array.isArray(args)) return "";
|
|
1471
|
+
const record = args;
|
|
1472
|
+
for (const key of [
|
|
1473
|
+
"query",
|
|
1474
|
+
"queries",
|
|
1475
|
+
"text",
|
|
1476
|
+
"url",
|
|
1477
|
+
"fileName",
|
|
1478
|
+
"filename",
|
|
1479
|
+
"file",
|
|
1480
|
+
"title",
|
|
1481
|
+
"message"
|
|
1482
|
+
]) {
|
|
1483
|
+
const value = record[key];
|
|
1484
|
+
const preview = typeof value === "string" ? value : Array.isArray(value) ? value.filter((item) => typeof item === "string").join(t("awb.call.separator")) : "";
|
|
1485
|
+
if (preview.trim()) return preview.trim().slice(0, 120);
|
|
1486
|
+
}
|
|
1487
|
+
} catch {}
|
|
1488
|
+
return "";
|
|
1489
|
+
}
|
|
1368
1490
|
/** 整个标题栏就是展开入口;实时状态更新不替换 details,保留用户的展开状态。 */
|
|
1369
|
-
function AssistantToolCallView({ call, t }) {
|
|
1491
|
+
function AssistantToolCallView({ call, t, compact = false }) {
|
|
1370
1492
|
const label = t(call.kind === "web-search" ? "awb.call.webSearch" : call.kind === "attachment" ? "awb.call.attachment" : "awb.call.workspace");
|
|
1371
1493
|
const status = t(`awb.call.tool.${call.state}`);
|
|
1372
|
-
const
|
|
1373
|
-
const
|
|
1374
|
-
return (0, react.createElement)("
|
|
1494
|
+
const argumentPreview = compact ? assistantToolArgumentPreview(call, t) : "";
|
|
1495
|
+
const rowColor = call.state === "failed" ? require_theme.dshThemeColor.error : require_theme.dshThemeColor.labelSecondary;
|
|
1496
|
+
return (0, react.createElement)("div", {
|
|
1497
|
+
"data-codingns-assistant-tool-row": call.name,
|
|
1375
1498
|
"data-codingns-assistant-tool": call.name,
|
|
1376
1499
|
"data-state": call.state,
|
|
1377
1500
|
style: {
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
fontSize: 12,
|
|
1383
|
-
lineHeight: 1.4,
|
|
1384
|
-
minWidth: 0
|
|
1501
|
+
minWidth: 0,
|
|
1502
|
+
color: rowColor,
|
|
1503
|
+
fontSize: require_theme.uiFontSize(13),
|
|
1504
|
+
lineHeight: 1.65
|
|
1385
1505
|
}
|
|
1386
1506
|
}, (0, react.createElement)("details", { className: "codingns-assistant-tool-details" }, (0, react.createElement)("summary", {
|
|
1387
1507
|
className: "codingns-assistant-tool-summary",
|
|
@@ -1391,98 +1511,53 @@ window.__ModuleLoader__.load({
|
|
|
1391
1511
|
display: "flex",
|
|
1392
1512
|
alignItems: "center",
|
|
1393
1513
|
gap: 8,
|
|
1394
|
-
|
|
1395
|
-
|
|
1514
|
+
minWidth: 0,
|
|
1515
|
+
padding: "1px 0"
|
|
1396
1516
|
}
|
|
1397
|
-
}, (0, react.createElement)("span", { style: {
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
width: 28,
|
|
1402
|
-
height: 28,
|
|
1403
|
-
borderRadius: 8,
|
|
1404
|
-
color,
|
|
1405
|
-
background: `color-mix(in srgb, ${color} 9%, transparent)`
|
|
1406
|
-
} }, (0, react.createElement)(AssistantToolIcon, { kind: call.kind })), (0, react.createElement)("span", { style: {
|
|
1407
|
-
flex: "1 1 auto",
|
|
1408
|
-
minWidth: 0,
|
|
1409
|
-
display: "grid",
|
|
1410
|
-
gap: 1
|
|
1411
|
-
} }, (0, react.createElement)("strong", { style: {
|
|
1412
|
-
fontSize: 12,
|
|
1413
|
-
fontWeight: 600
|
|
1414
|
-
} }, label), (0, react.createElement)("span", {
|
|
1415
|
-
className: "codingns-assistant-tool-name",
|
|
1517
|
+
}, (0, react.createElement)(AssistantRecordChevron), (0, react.createElement)("span", { style: { flexShrink: 0 } }, label), (0, react.createElement)("span", { style: {
|
|
1518
|
+
color: require_theme.dshThemeColor.labelTertiary,
|
|
1519
|
+
flexShrink: 0
|
|
1520
|
+
} }, "·"), (0, react.createElement)("span", {
|
|
1416
1521
|
title: call.name,
|
|
1417
1522
|
style: {
|
|
1418
|
-
|
|
1419
|
-
fontFamily: require_theme.dshThemeColor.codeFont,
|
|
1420
|
-
fontSize: 11,
|
|
1523
|
+
minWidth: 0,
|
|
1421
1524
|
overflow: "hidden",
|
|
1422
1525
|
textOverflow: "ellipsis",
|
|
1423
|
-
whiteSpace: "nowrap"
|
|
1424
|
-
|
|
1425
|
-
}, call.name)), (0, react.createElement)("span", { style: {
|
|
1426
|
-
display: "grid",
|
|
1427
|
-
justifyItems: "end",
|
|
1428
|
-
gap: 3,
|
|
1429
|
-
flexShrink: 0
|
|
1430
|
-
} }, (0, react.createElement)("span", {
|
|
1431
|
-
role: "status",
|
|
1432
|
-
style: {
|
|
1433
|
-
display: "inline-flex",
|
|
1434
|
-
alignItems: "center",
|
|
1435
|
-
gap: 4,
|
|
1436
|
-
color,
|
|
1437
|
-
padding: "1px 6px",
|
|
1438
|
-
borderRadius: 5,
|
|
1439
|
-
background: `color-mix(in srgb, ${color} 9%, transparent)`,
|
|
1440
|
-
fontSize: 11,
|
|
1441
|
-
whiteSpace: "nowrap"
|
|
1526
|
+
whiteSpace: "nowrap",
|
|
1527
|
+
fontFamily: require_theme.dshThemeColor.codeFont
|
|
1442
1528
|
}
|
|
1443
|
-
}, (0, react.createElement)("
|
|
1444
|
-
"
|
|
1529
|
+
}, call.name, argumentPreview ? ` · ${argumentPreview}` : "")), (0, react.createElement)("div", {
|
|
1530
|
+
className: "codingns-assistant-tool-body",
|
|
1445
1531
|
style: {
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1532
|
+
display: "grid",
|
|
1533
|
+
gap: 0,
|
|
1534
|
+
margin: "2px 0 4px 22px",
|
|
1535
|
+
border: `0.5px solid ${require_theme.dshThemeColor.border}`,
|
|
1536
|
+
borderRadius: 6,
|
|
1537
|
+
overflow: "hidden",
|
|
1538
|
+
minWidth: 0
|
|
1450
1539
|
}
|
|
1451
|
-
}),
|
|
1452
|
-
|
|
1453
|
-
title: startedAt.toLocaleString(),
|
|
1540
|
+
}, ...[[t("awb.call.arguments"), call.arguments], [t("awb.call.result"), call.result]].map(([heading, value], index) => (0, react.createElement)("div", {
|
|
1541
|
+
key: heading,
|
|
1454
1542
|
style: {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1543
|
+
display: "grid",
|
|
1544
|
+
gridTemplateColumns: "max-content minmax(0, 1fr)",
|
|
1545
|
+
gap: 12,
|
|
1546
|
+
alignItems: "baseline",
|
|
1547
|
+
padding: "7px 10px",
|
|
1548
|
+
minWidth: 0,
|
|
1549
|
+
...index === 0 ? {} : { borderTop: `0.5px solid ${require_theme.dshThemeColor.border}` }
|
|
1459
1550
|
}
|
|
1460
|
-
}, startedAt.toLocaleTimeString([], {
|
|
1461
|
-
hour: "2-digit",
|
|
1462
|
-
minute: "2-digit",
|
|
1463
|
-
second: "2-digit",
|
|
1464
|
-
hour12: false
|
|
1465
|
-
}))), (0, react.createElement)(AssistantRecordChevron)), (0, react.createElement)("div", { style: {
|
|
1466
|
-
display: "grid",
|
|
1467
|
-
gap: 8,
|
|
1468
|
-
padding: "9px 10px 10px",
|
|
1469
|
-
borderTop: `1px solid ${require_theme.dshThemeColor.border}`,
|
|
1470
|
-
minWidth: 0
|
|
1471
|
-
} }, ...[[t("awb.call.arguments"), call.arguments], [t("awb.call.result"), call.result]].map(([heading, value]) => (0, react.createElement)("div", {
|
|
1472
|
-
key: heading,
|
|
1473
|
-
style: { minWidth: 0 }
|
|
1474
1551
|
}, (0, react.createElement)("small", { style: {
|
|
1475
|
-
color: require_theme.dshThemeColor.
|
|
1476
|
-
fontSize: 11,
|
|
1477
|
-
|
|
1552
|
+
color: require_theme.dshThemeColor.labelTertiary,
|
|
1553
|
+
fontSize: require_theme.uiFontSize(11),
|
|
1554
|
+
whiteSpace: "nowrap"
|
|
1478
1555
|
} }, heading), (0, react.createElement)("pre", {
|
|
1479
1556
|
tabIndex: 0,
|
|
1480
1557
|
"aria-label": heading,
|
|
1481
1558
|
style: {
|
|
1482
|
-
margin:
|
|
1483
|
-
|
|
1484
|
-
borderRadius: 6,
|
|
1485
|
-
background: require_theme.dshThemeColor.cardBackground,
|
|
1559
|
+
margin: 0,
|
|
1560
|
+
color: require_theme.dshThemeColor.labelSecondary,
|
|
1486
1561
|
maxHeight: 160,
|
|
1487
1562
|
overflowY: "auto",
|
|
1488
1563
|
overscrollBehavior: "contain",
|
|
@@ -1490,23 +1565,28 @@ window.__ModuleLoader__.load({
|
|
|
1490
1565
|
whiteSpace: "pre-wrap",
|
|
1491
1566
|
overflowWrap: "anywhere",
|
|
1492
1567
|
fontFamily: require_theme.dshThemeColor.codeFont,
|
|
1493
|
-
fontSize: 11,
|
|
1568
|
+
fontSize: require_theme.uiFontSize(11),
|
|
1494
1569
|
lineHeight: 1.5
|
|
1495
1570
|
}
|
|
1496
1571
|
}, value || "—"))))));
|
|
1497
1572
|
}
|
|
1498
|
-
function
|
|
1573
|
+
function AssistantStepChevron() {
|
|
1499
1574
|
return (0, react.createElement)("svg", {
|
|
1500
|
-
|
|
1501
|
-
|
|
1575
|
+
className: "codingns-assistant-step-chevron",
|
|
1576
|
+
width: 14,
|
|
1577
|
+
height: 14,
|
|
1502
1578
|
viewBox: "0 0 24 24",
|
|
1503
1579
|
fill: "none",
|
|
1504
1580
|
stroke: "currentColor",
|
|
1505
|
-
strokeWidth: 1.
|
|
1581
|
+
strokeWidth: 1.8,
|
|
1506
1582
|
strokeLinecap: "round",
|
|
1507
1583
|
strokeLinejoin: "round",
|
|
1508
|
-
"aria-hidden": true
|
|
1509
|
-
|
|
1584
|
+
"aria-hidden": true,
|
|
1585
|
+
style: {
|
|
1586
|
+
flexShrink: 0,
|
|
1587
|
+
color: require_theme.dshThemeColor.labelTertiary
|
|
1588
|
+
}
|
|
1589
|
+
}, (0, react.createElement)("path", { d: "m6 9 6 6 6-6" }));
|
|
1510
1590
|
}
|
|
1511
1591
|
//#endregion
|
|
1512
1592
|
//#region src/client/features/assistant-realtime-call.ts
|
|
@@ -1579,7 +1659,7 @@ window.__ModuleLoader__.load({
|
|
|
1579
1659
|
display: "flex",
|
|
1580
1660
|
alignItems: "center",
|
|
1581
1661
|
gap: 9,
|
|
1582
|
-
fontSize: 13
|
|
1662
|
+
fontSize: require_theme.uiFontSize(13)
|
|
1583
1663
|
} }, (0, react.createElement)("input", {
|
|
1584
1664
|
type: "checkbox",
|
|
1585
1665
|
checked: !speakerMuted,
|
|
@@ -1592,7 +1672,7 @@ window.__ModuleLoader__.load({
|
|
|
1592
1672
|
}), props.t("awb.call.playSound")), (0, react.createElement)("label", { style: {
|
|
1593
1673
|
display: "grid",
|
|
1594
1674
|
gap: 6,
|
|
1595
|
-
fontSize: 12
|
|
1675
|
+
fontSize: require_theme.uiFontSize(12)
|
|
1596
1676
|
} }, props.t("awb.call.outputDevice"), (0, react.createElement)("select", {
|
|
1597
1677
|
value: adapter?.outputDeviceSupported ? outputId : "",
|
|
1598
1678
|
disabled: !adapter?.outputDeviceSupported || devicePending,
|
|
@@ -1613,7 +1693,7 @@ window.__ModuleLoader__.load({
|
|
|
1613
1693
|
}, device.label || props.t("awb.call.speaker"))))), error ? (0, react.createElement)("div", {
|
|
1614
1694
|
role: "alert",
|
|
1615
1695
|
style: {
|
|
1616
|
-
fontSize: 12,
|
|
1696
|
+
fontSize: require_theme.uiFontSize(12),
|
|
1617
1697
|
color: require_theme.dshThemeColor.error,
|
|
1618
1698
|
overflowWrap: "anywhere"
|
|
1619
1699
|
}
|
|
@@ -1696,7 +1776,7 @@ window.__ModuleLoader__.load({
|
|
|
1696
1776
|
kind,
|
|
1697
1777
|
muted: pressed === true
|
|
1698
1778
|
})), (0, react.createElement)("span", { style: {
|
|
1699
|
-
fontSize: 12,
|
|
1779
|
+
fontSize: require_theme.uiFontSize(12),
|
|
1700
1780
|
color: require_theme.dshThemeColor.labelSecondary
|
|
1701
1781
|
} }, kind === "microphone" ? t(microphoneMuted ? "awb.call.unmute" : "awb.call.microphone") : t(`awb.call.${kind}`)));
|
|
1702
1782
|
return (0, react.createElement)("div", {
|
|
@@ -1717,10 +1797,10 @@ window.__ModuleLoader__.load({
|
|
|
1717
1797
|
display: "grid",
|
|
1718
1798
|
gap: 4
|
|
1719
1799
|
} }, (0, react.createElement)("strong", { style: {
|
|
1720
|
-
fontSize: 18,
|
|
1800
|
+
fontSize: require_theme.uiFontSize(18),
|
|
1721
1801
|
overflowWrap: "anywhere"
|
|
1722
1802
|
} }, name), (0, react.createElement)("span", { style: {
|
|
1723
|
-
fontSize: 12,
|
|
1803
|
+
fontSize: require_theme.uiFontSize(12),
|
|
1724
1804
|
color: require_theme.dshThemeColor.labelTertiary,
|
|
1725
1805
|
fontVariantNumeric: "tabular-nums"
|
|
1726
1806
|
} }, t("awb.call.title"), " · ", duration), onMinimize ? (0, react.createElement)("button", {
|
|
@@ -1772,7 +1852,7 @@ window.__ModuleLoader__.load({
|
|
|
1772
1852
|
}, avatar)), (0, react.createElement)("div", {
|
|
1773
1853
|
role: "status",
|
|
1774
1854
|
style: {
|
|
1775
|
-
fontSize: 13,
|
|
1855
|
+
fontSize: require_theme.uiFontSize(13),
|
|
1776
1856
|
color: require_theme.dshThemeColor.labelSecondary
|
|
1777
1857
|
}
|
|
1778
1858
|
}, t(`awb.call.${status}`)), (0, react.createElement)("div", {
|
|
@@ -1800,7 +1880,7 @@ window.__ModuleLoader__.load({
|
|
|
1800
1880
|
style: {
|
|
1801
1881
|
margin: 0,
|
|
1802
1882
|
flexShrink: 0,
|
|
1803
|
-
fontSize: 13,
|
|
1883
|
+
fontSize: require_theme.uiFontSize(13),
|
|
1804
1884
|
lineHeight: 1.6,
|
|
1805
1885
|
color: require_theme.dshThemeColor.labelTertiary
|
|
1806
1886
|
}
|
|
@@ -1810,7 +1890,7 @@ window.__ModuleLoader__.load({
|
|
|
1810
1890
|
flexShrink: 0,
|
|
1811
1891
|
display: "grid",
|
|
1812
1892
|
gap: 8,
|
|
1813
|
-
fontSize: 16,
|
|
1893
|
+
fontSize: require_theme.uiFontSize(16),
|
|
1814
1894
|
lineHeight: 1.65,
|
|
1815
1895
|
color: assistantText ? require_theme.dshThemeColor.labelPrimary : require_theme.dshThemeColor.labelTertiary
|
|
1816
1896
|
}
|
|
@@ -1879,10 +1959,10 @@ window.__ModuleLoader__.load({
|
|
|
1879
1959
|
gap: 3,
|
|
1880
1960
|
minWidth: 0
|
|
1881
1961
|
} }, (0, react.createElement)("strong", { style: {
|
|
1882
|
-
fontSize: 13,
|
|
1962
|
+
fontSize: require_theme.uiFontSize(13),
|
|
1883
1963
|
fontWeight: 600
|
|
1884
1964
|
} }, t("awb.call.record")), (0, react.createElement)("span", { style: {
|
|
1885
|
-
fontSize: 11,
|
|
1965
|
+
fontSize: require_theme.uiFontSize(11),
|
|
1886
1966
|
color: require_theme.dshThemeColor.labelSecondary,
|
|
1887
1967
|
overflow: "hidden",
|
|
1888
1968
|
textOverflow: "ellipsis",
|
|
@@ -1904,7 +1984,7 @@ window.__ModuleLoader__.load({
|
|
|
1904
1984
|
borderRadius: 6,
|
|
1905
1985
|
background: require_theme.dshThemeColor.cardBackground,
|
|
1906
1986
|
color: require_theme.dshThemeColor.labelSecondary,
|
|
1907
|
-
fontSize: 11,
|
|
1987
|
+
fontSize: require_theme.uiFontSize(11),
|
|
1908
1988
|
fontVariantNumeric: "tabular-nums",
|
|
1909
1989
|
whiteSpace: "nowrap",
|
|
1910
1990
|
flexShrink: 0
|
|
@@ -1963,7 +2043,7 @@ window.__ModuleLoader__.load({
|
|
|
1963
2043
|
id: titleId,
|
|
1964
2044
|
style: {
|
|
1965
2045
|
flex: 1,
|
|
1966
|
-
fontSize: 14
|
|
2046
|
+
fontSize: require_theme.uiFontSize(14)
|
|
1967
2047
|
}
|
|
1968
2048
|
}, props.t("awb.call.details")), (0, react.createElement)("button", {
|
|
1969
2049
|
type: "button",
|
|
@@ -2011,7 +2091,7 @@ window.__ModuleLoader__.load({
|
|
|
2011
2091
|
borderRadius: 5,
|
|
2012
2092
|
background: require_theme.dshThemeColor.cardBackground,
|
|
2013
2093
|
color: require_theme.dshThemeColor.labelPrimary,
|
|
2014
|
-
fontSize: 11,
|
|
2094
|
+
fontSize: require_theme.uiFontSize(11),
|
|
2015
2095
|
fontVariantNumeric: "tabular-nums"
|
|
2016
2096
|
};
|
|
2017
2097
|
return (0, react.createElement)("div", { style: {
|
|
@@ -2025,7 +2105,7 @@ window.__ModuleLoader__.load({
|
|
|
2025
2105
|
display: "grid",
|
|
2026
2106
|
gap: 8,
|
|
2027
2107
|
color: require_theme.dshThemeColor.labelSecondary,
|
|
2028
|
-
fontSize: 11,
|
|
2108
|
+
fontSize: require_theme.uiFontSize(11),
|
|
2029
2109
|
lineHeight: 1.5,
|
|
2030
2110
|
minWidth: 0
|
|
2031
2111
|
} }, (0, react.createElement)("div", { style: {
|
|
@@ -2045,7 +2125,7 @@ window.__ModuleLoader__.load({
|
|
|
2045
2125
|
fontVariantNumeric: "tabular-nums"
|
|
2046
2126
|
} }, date(value)))))), session.messages.length === 0 ? (0, react.createElement)("p", { style: {
|
|
2047
2127
|
margin: "8px 0",
|
|
2048
|
-
fontSize: 13,
|
|
2128
|
+
fontSize: require_theme.uiFontSize(13),
|
|
2049
2129
|
color: require_theme.dshThemeColor.labelSecondary
|
|
2050
2130
|
} }, t("awb.call.noMessages")) : null, ...session.messages.map((message) => (0, react.createElement)(AssistantConversationMessageView, {
|
|
2051
2131
|
key: message.id,
|
|
@@ -2540,7 +2620,7 @@ window.__ModuleLoader__.load({
|
|
|
2540
2620
|
size: 144,
|
|
2541
2621
|
showDiagnostics: false
|
|
2542
2622
|
}), (0, react.createElement)("strong", { style: {
|
|
2543
|
-
fontSize: 18,
|
|
2623
|
+
fontSize: require_theme.uiFontSize(18),
|
|
2544
2624
|
overflowWrap: "anywhere",
|
|
2545
2625
|
textAlign: "center"
|
|
2546
2626
|
} }, draft.name.trim() || t("awb.unnamed")), (0, react.createElement)("p", { style: {
|
|
@@ -2589,15 +2669,14 @@ window.__ModuleLoader__.load({
|
|
|
2589
2669
|
style: {
|
|
2590
2670
|
...dialog,
|
|
2591
2671
|
...!configuring ? {
|
|
2592
|
-
height: "min(740px, calc(100dvh -
|
|
2672
|
+
height: "min(740px, calc(100dvh - 44px))",
|
|
2593
2673
|
minHeight: 0
|
|
2594
2674
|
} : {}
|
|
2595
2675
|
}
|
|
2596
2676
|
}, calling ? null : (0, react.createElement)("header", { style: {
|
|
2597
2677
|
...row,
|
|
2598
2678
|
flexShrink: 0,
|
|
2599
|
-
padding:
|
|
2600
|
-
borderBottom: `1px solid ${require_theme.dshThemeColor.border}`
|
|
2679
|
+
padding: "22px 22px 11px"
|
|
2601
2680
|
} }, (0, react.createElement)("div", { style: {
|
|
2602
2681
|
flex: "1 1 auto",
|
|
2603
2682
|
minWidth: 0,
|
|
@@ -2610,7 +2689,7 @@ window.__ModuleLoader__.load({
|
|
|
2610
2689
|
gap: 8
|
|
2611
2690
|
}
|
|
2612
2691
|
}, (0, react.createElement)("strong", { style: {
|
|
2613
|
-
fontSize: 17,
|
|
2692
|
+
fontSize: require_theme.uiFontSize(17),
|
|
2614
2693
|
overflowWrap: "anywhere"
|
|
2615
2694
|
} }, initializing ? t("awb.setupTitle") : lifecycle.profile.name), initializing ? null : (0, react.createElement)(AssistantStatusBadge, {
|
|
2616
2695
|
status,
|
|
@@ -2634,7 +2713,7 @@ window.__ModuleLoader__.load({
|
|
|
2634
2713
|
"data-codingns-assistant-scroll": true,
|
|
2635
2714
|
style: {
|
|
2636
2715
|
flex: "1 1 auto",
|
|
2637
|
-
padding: calling ? 0 :
|
|
2716
|
+
padding: calling ? 0 : "11px 22px",
|
|
2638
2717
|
overflowY: "auto",
|
|
2639
2718
|
overscrollBehavior: "contain",
|
|
2640
2719
|
minHeight: 0,
|
|
@@ -2642,16 +2721,11 @@ window.__ModuleLoader__.load({
|
|
|
2642
2721
|
flexDirection: "column",
|
|
2643
2722
|
gap: configuring ? 11 : 16
|
|
2644
2723
|
}
|
|
2645
|
-
}, !loaded ? (0, react.createElement)("div", {
|
|
2646
|
-
role: "status",
|
|
2647
|
-
style: require_theme.dshSettingsHelpStyle
|
|
2648
|
-
}, t("awb.loading"), " ", button(t("awb.retry"), () => {
|
|
2649
|
-
refresh().catch((cause) => setError(message(cause)));
|
|
2650
|
-
})) : null, noticeText ? (0, react.createElement)("div", {
|
|
2724
|
+
}, !loaded ? (0, react.createElement)(AssistantLoadingView, { t }) : null, noticeText ? (0, react.createElement)("div", {
|
|
2651
2725
|
role: "alert",
|
|
2652
2726
|
style: {
|
|
2653
2727
|
color: require_theme.dshThemeColor.error,
|
|
2654
|
-
fontSize: 13,
|
|
2728
|
+
fontSize: require_theme.uiFontSize(13),
|
|
2655
2729
|
overflowWrap: "anywhere"
|
|
2656
2730
|
}
|
|
2657
2731
|
}, noticeText) : null, notice ? (0, react.createElement)("div", {
|
|
@@ -2743,8 +2817,7 @@ window.__ModuleLoader__.load({
|
|
|
2743
2817
|
...row,
|
|
2744
2818
|
flexShrink: 0,
|
|
2745
2819
|
justifyContent: initializing ? "space-between" : "flex-end",
|
|
2746
|
-
padding:
|
|
2747
|
-
borderTop: `1px solid ${require_theme.dshThemeColor.border}`,
|
|
2820
|
+
padding: "11px 22px 22px",
|
|
2748
2821
|
background: require_theme.dshThemeColor.pageBackground
|
|
2749
2822
|
}
|
|
2750
2823
|
}, initializing ? (0, react.createElement)("p", { style: {
|
|
@@ -2754,8 +2827,7 @@ window.__ModuleLoader__.load({
|
|
|
2754
2827
|
"data-codingns-assistant-composer-dock": true,
|
|
2755
2828
|
style: {
|
|
2756
2829
|
flexShrink: 0,
|
|
2757
|
-
padding:
|
|
2758
|
-
borderTop: `1px solid ${require_theme.dshThemeColor.border}`,
|
|
2830
|
+
padding: "11px 22px 22px",
|
|
2759
2831
|
background: require_theme.dshThemeColor.pageBackground
|
|
2760
2832
|
}
|
|
2761
2833
|
}, (0, react.createElement)(AssistantComposer, {
|
|
@@ -2852,6 +2924,19 @@ window.__ModuleLoader__.load({
|
|
|
2852
2924
|
model
|
|
2853
2925
|
}));
|
|
2854
2926
|
}
|
|
2927
|
+
/** 首次读取期间使用居中的动态状态,避免把正常等待误显示成失败或重试入口。 */
|
|
2928
|
+
function AssistantLoadingView({ t }) {
|
|
2929
|
+
return (0, react.createElement)("div", {
|
|
2930
|
+
"data-codingns-assistant-loading": true,
|
|
2931
|
+
role: "status",
|
|
2932
|
+
"aria-live": "polite",
|
|
2933
|
+
"aria-label": t("awb.loading"),
|
|
2934
|
+
style: assistantLoadingStyle
|
|
2935
|
+
}, (0, react.createElement)("style", null, assistantLoadingCss), (0, react.createElement)("div", {
|
|
2936
|
+
"aria-hidden": true,
|
|
2937
|
+
style: assistantLoadingOrbStyle
|
|
2938
|
+
}, (0, react.createElement)("span", { className: "codingns-assistant-loading-ring" }), (0, react.createElement)("span", { className: "codingns-assistant-loading-core" }), (0, react.createElement)("span", { className: "codingns-assistant-loading-dot codingns-assistant-loading-dot-one" }), (0, react.createElement)("span", { className: "codingns-assistant-loading-dot codingns-assistant-loading-dot-two" }), (0, react.createElement)("span", { className: "codingns-assistant-loading-dot codingns-assistant-loading-dot-three" })), (0, react.createElement)("div", { style: assistantLoadingLabelStyle }, t("awb.loadingHint")));
|
|
2939
|
+
}
|
|
2855
2940
|
/** 内层菜单先消费 Escape,外层窗口只处理尚未消费的关闭按键。 */
|
|
2856
2941
|
function handleAssistantWorkbenchEscape(event, onClose) {
|
|
2857
2942
|
if (event.key !== "Escape" || event.defaultPrevented) return;
|
|
@@ -2886,6 +2971,47 @@ window.__ModuleLoader__.load({
|
|
|
2886
2971
|
gap: 8,
|
|
2887
2972
|
justifyItems: "center"
|
|
2888
2973
|
};
|
|
2974
|
+
const assistantLoadingStyle = {
|
|
2975
|
+
flex: "1 1 auto",
|
|
2976
|
+
minHeight: "min(420px, 45vh)",
|
|
2977
|
+
display: "flex",
|
|
2978
|
+
flexDirection: "column",
|
|
2979
|
+
alignItems: "center",
|
|
2980
|
+
justifyContent: "center",
|
|
2981
|
+
gap: 18,
|
|
2982
|
+
color: require_theme.dshThemeColor.labelSecondary
|
|
2983
|
+
};
|
|
2984
|
+
const assistantLoadingOrbStyle = {
|
|
2985
|
+
position: "relative",
|
|
2986
|
+
width: 76,
|
|
2987
|
+
height: 76,
|
|
2988
|
+
borderRadius: "50%",
|
|
2989
|
+
background: `radial-gradient(circle at 35% 28%, ${require_theme.dshThemeColor.accent}33, transparent 58%)`,
|
|
2990
|
+
boxShadow: `0 0 0 1px ${require_theme.dshThemeColor.border}, 0 0 42px ${require_theme.dshThemeColor.accent}24`
|
|
2991
|
+
};
|
|
2992
|
+
const assistantLoadingLabelStyle = {
|
|
2993
|
+
fontSize: require_theme.uiFontSize(13),
|
|
2994
|
+
letterSpacing: "0.04em"
|
|
2995
|
+
};
|
|
2996
|
+
const assistantLoadingCss = `
|
|
2997
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-ring,
|
|
2998
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-core,
|
|
2999
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-dot{position:absolute;display:block;border-radius:50%}
|
|
3000
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-ring{inset:7px;border:1px solid ${require_theme.dshThemeColor.accent}88;border-top-color:transparent;border-left-color:${require_theme.dshThemeColor.accent};animation:codingns-assistant-loading-spin 2.8s linear infinite}
|
|
3001
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-core{inset:22px;background:${require_theme.dshThemeColor.accent};box-shadow:0 0 18px ${require_theme.dshThemeColor.accent}aa;animation:codingns-assistant-loading-breathe 1.8s ease-in-out infinite}
|
|
3002
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-dot{width:6px;height:6px;background:${require_theme.dshThemeColor.labelPrimary};box-shadow:0 0 10px ${require_theme.dshThemeColor.accent};animation:codingns-assistant-loading-pulse 1.8s ease-in-out infinite}
|
|
3003
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-dot-one{top:4px;left:35px}
|
|
3004
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-dot-two{right:7px;bottom:20px;animation-delay:.22s}
|
|
3005
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-dot-three{left:7px;bottom:20px;animation-delay:.44s}
|
|
3006
|
+
@keyframes codingns-assistant-loading-spin{to{transform:rotate(360deg)}}
|
|
3007
|
+
@keyframes codingns-assistant-loading-breathe{0%,100%{transform:scale(.82);opacity:.72}50%{transform:scale(1.08);opacity:1}}
|
|
3008
|
+
@keyframes codingns-assistant-loading-pulse{0%,100%{transform:scale(.65);opacity:.36}50%{transform:scale(1.15);opacity:1}}
|
|
3009
|
+
@media (prefers-reduced-motion:reduce){
|
|
3010
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-ring,
|
|
3011
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-core,
|
|
3012
|
+
[data-codingns-assistant-loading] .codingns-assistant-loading-dot{animation:none}
|
|
3013
|
+
}
|
|
3014
|
+
`;
|
|
2889
3015
|
const backdrop = {
|
|
2890
3016
|
position: "fixed",
|
|
2891
3017
|
inset: 0,
|
|
@@ -2895,14 +3021,14 @@ window.__ModuleLoader__.load({
|
|
|
2895
3021
|
display: "flex",
|
|
2896
3022
|
alignItems: "center",
|
|
2897
3023
|
justifyContent: "center",
|
|
2898
|
-
padding:
|
|
3024
|
+
padding: 22,
|
|
2899
3025
|
boxSizing: "border-box"
|
|
2900
3026
|
};
|
|
2901
3027
|
const dialog = {
|
|
2902
3028
|
display: "flex",
|
|
2903
3029
|
flexDirection: "column",
|
|
2904
3030
|
width: "min(940px, 100%)",
|
|
2905
|
-
maxHeight: "calc(100dvh -
|
|
3031
|
+
maxHeight: "calc(100dvh - 44px)",
|
|
2906
3032
|
minHeight: 300,
|
|
2907
3033
|
background: require_theme.dshThemeColor.pageBackground,
|
|
2908
3034
|
color: require_theme.dshThemeColor.labelPrimary,
|