@codingame/monaco-vscode-chat-service-override 36.2.7 → 37.0.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/index.d.ts +1 -0
- package/index.js +92 -10
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +10 -3
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +54 -17
- package/vscode/src/vs/platform/agentHost/browser/agentHostEnablementService.d.ts +14 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostEnablementService.js +46 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.d.ts +7 -2
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.js +34 -2
- package/vscode/src/vs/platform/agentHost/browser/{remoteAgentHostProtocolClient.d.ts → agentHostProtocolClient.d.ts} +240 -60
- package/vscode/src/vs/platform/agentHost/browser/agentHostProtocolClient.js +1911 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +30 -33
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +381 -315
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +3 -1
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +2 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostClientInfo.d.ts +9 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostClientInfo.js +20 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostExtensionProtocol.d.ts +144 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostExtensionProtocol.js +20 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +14 -6
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +14 -10
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedRules.d.ts +47 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedRules.js +75 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedSettings.d.ts +68 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedSettings.js +161 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +288 -45
- package/vscode/src/vs/platform/agentHost/common/agentMerge.d.ts +261 -0
- package/vscode/src/vs/platform/agentHost/common/agentMerge.js +67 -0
- package/vscode/src/vs/platform/agentHost/common/agentSdkSetup.d.ts +53 -0
- package/vscode/src/vs/platform/agentHost/common/agentSdkSetup.js +45 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.d.ts +130 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.js +27 -0
- package/vscode/src/vs/platform/agentHost/common/customAgents.d.ts +8 -2
- package/vscode/src/vs/platform/agentHost/common/customAgents.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentChatSurfaceMeta.d.ts +39 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentChatSurfaceMeta.js +25 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.d.ts +110 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.js +38 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentHostArtifactRemovalMeta.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/meta/clientPluginCustomizationMeta.d.ts +7 -0
- package/vscode/src/vs/platform/agentHost/common/meta/clientPluginCustomizationMeta.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +3 -3
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +16 -24
- package/vscode/src/vs/platform/agentHost/common/semanticSearchConstants.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/semanticSearchConstants.js +8 -0
- package/vscode/src/vs/platform/agentHost/common/sessionArtifacts.d.ts +75 -0
- package/vscode/src/vs/platform/agentHost/common/sessionArtifacts.js +84 -0
- package/vscode/src/vs/platform/agentHost/common/shellInitScript.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/shellInitScript.js +63 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +71 -20
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +187 -26
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +30 -0
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +87 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.js +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/reducer.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/reducer.js +37 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.js +45 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.d.ts +5 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.js +100 -35
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +193 -49
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +161 -40
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/reducer.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/reducer.js +5 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.d.ts +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/timestamps.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/timestamps.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +114 -3
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +28 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +4 -2
- package/vscode/src/vs/platform/agentHost/common/state/sessionWorkingDirectories.d.ts +34 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionWorkingDirectories.js +28 -0
- package/vscode/src/vs/platform/agentHost/common/worktreePaths.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/worktreePaths.js +15 -0
- package/vscode/src/vs/platform/browserView/common/browserChatToolReferenceNames.d.ts +1 -1
- package/vscode/src/vs/platform/chat/common/aiAgentEnv.d.ts +18 -0
- package/vscode/src/vs/platform/chat/common/aiAgentEnv.js +6 -0
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +5 -1
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +77 -5
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +1 -1
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +9 -5
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +1 -5
- package/vscode/src/vs/platform/networkFilter/common/settings.js +0 -4
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +19 -7
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +49 -37
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.d.ts +2 -1
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.js +12 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.js +1 -2
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveParseSafety.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveParseSafety.js +7 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/cmdDelayedExpansion.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/cmdDelayedExpansion.js +8 -0
- package/vscode/src/vs/{workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers → platform/terminal/common/autoApprove}/sedFileWriteParser.d.ts +1 -2
- package/vscode/src/vs/workbench/browser/chatChangesPill.d.ts +29 -0
- package/vscode/src/vs/workbench/browser/chatChangesPill.js +84 -0
- package/vscode/src/vs/workbench/common/chatPullRequest.d.ts +19 -0
- package/vscode/src/vs/workbench/common/chatPullRequest.js +53 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +342 -155
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +25 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +150 -67
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +5 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +39 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +54 -17
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +5 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +252 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +889 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +3 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +214 -161
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +256 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +19 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +30 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +19 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +237 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +68 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +17 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +17 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +68 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +222 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +64 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +530 -305
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentHostCompletionAction.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentHostCompletionAction.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +95 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +10 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +86 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +61 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +43 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +326 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +112 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +33 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +28 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +110 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.d.ts +131 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.js +638 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.js +202 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.d.ts +24 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +26 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostProtectedResourcesService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostProtectedResourcesService.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +624 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.d.ts +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +207 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostShellInitSynchronizer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostShellInitSynchronizer.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +74 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +511 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.js +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +55 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +210 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +43 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +46 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +216 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +26 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +30 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/externalSessionsFilterMenu.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/externalSessionsFilterMenu.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/sessionSummaryHover.css +104 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.js +168 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHoverService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHoverService.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +16 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +48 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +913 -220
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +148 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +161 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +2367 -247
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +21 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.js +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +143 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +10 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +302 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +49 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigration.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigration.js +240 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.js +762 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +437 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +85 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +697 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +40 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +164 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +6 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +260 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +2097 -589
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.js +860 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +2229 -1338
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +79 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/customizationMigrationDashboard.css +354 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +85 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +1550 -357
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +13 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.d.ts +38 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +637 -319
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +28 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatPasteTargetService.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatPasteTargetService.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatReferenceAttachmentWidget.contribution.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatReferenceAttachmentWidget.contribution.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/transcriptContextAttachmentWidget.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/transcriptContextAttachmentWidget.contribution.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +1675 -633
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +93 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +823 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +446 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostUsageSidecar.d.ts +183 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostUsageSidecar.js +218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +45 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +163 -136
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +22 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +105 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +27 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +22 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +76 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.d.ts +145 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +839 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +277 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +35 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +16 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.d.ts +86 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.js +282 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +37 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +135 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutlineCreator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutlineCreator.js +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementPreview.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementPreview.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +326 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +301 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.d.ts +9 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +103 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +36 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +51 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +31 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +65 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +291 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/microsoft-dark.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/microsoft-light.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSideChat.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSideChat.js +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +59 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +221 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +15 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +21 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSubmitRequestHandlerService.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSubmitRequestHandlerService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +23 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +62 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +97 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +24 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.js +232 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationContribution.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyPromptContribution.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyPromptContribution.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatPetAchievements.css +236 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +260 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +39 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +155 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +10 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +29 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +76 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +53 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +29 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +36 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +9 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +5 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/media/promptTimeline.css +820 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptBucketing.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptBucketing.js +100 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +440 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineLayout.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineLayout.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.d.ts +194 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +525 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRail.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.d.ts +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +460 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineWidgetContrib.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineWidgetContrib.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +25 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.js +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.js +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +361 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatEditorTopologyTelemetry.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatEditorTopologyTelemetry.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +25 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +77 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +60 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +60 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +44 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +52 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +446 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceInputUtils.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceInputUtils.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +297 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.d.ts +137 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +714 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentOpenChat.css +379 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.js +172 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHub.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHub.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +41 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +133 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatEditorInputContentProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +36 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +67 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +23 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +72 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputPlaceholderDecoration.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/{agentsVoice/common/agentsVoiceColors.js → chat/browser/widget/input/editor/chatInputPlaceholderDecoration.js} +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputReferenceDecorations.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputReferenceDecorations.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +21 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +48 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +457 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +6 -22
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationBlueprint.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationBlueprint.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +27 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +79 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatNotification.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatNotification.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +44 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +404 -51
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +64 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +33 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.js +70 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +18 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +43 -14
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +164 -71
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +19 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +172 -159
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationService.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationService.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.js +139 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +21 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +25 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +55 -18
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +323 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.js +79 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +118 -13
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +85 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +17 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +81 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.js +86 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +97 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +2 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +10 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +42 -36
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +25 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/consoleCompactor/consoleCompactor.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/consoleCompactor/consoleCompactor.js +4316 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +188 -148
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +82 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +5 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalOutput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalOutput.js +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +27 -8
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +205 -0
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +1580 -0
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.d.ts +30 -0
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +175 -0
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/media/agentEditorCommentsOverlayWidget.css +65 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.d.ts +47 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.js +129 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +26 -8
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +89 -27
- package/vscode/src/vs/workbench/services/agentHost/browser/webAgentHostEnablementService.d.ts +8 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/webAgentHostEnablementService.js +28 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +5 -1
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostResourceService.d.ts +18 -18
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostResourceService.js +159 -60
- package/vscode/src/vs/workbench/services/agentHost/common/editorRemoteAgentHostTransport.d.ts +47 -0
- package/vscode/src/vs/workbench/services/agentHost/common/editorRemoteAgentHostTransport.js +362 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.d.ts +0 -1
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.js +0 -40
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +0 -1110
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.js +0 -76
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.d.ts +0 -63
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.js +0 -25
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +0 -254
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +0 -451
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +0 -1294
- package/vscode/src/vs/platform/agentHost/common/agentService.js +0 -92
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/errors.d.ts +0 -186
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/errors.js +0 -10
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +0 -42
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.js +0 -7
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.js +0 -15
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +0 -243
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +0 -92
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +0 -224
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.js +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +0 -96
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.js +0 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.d.ts +0 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.js +0 -772
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.js +0 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +0 -160
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +0 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +0 -572
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.d.ts +0 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.js +0 -399
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.d.ts +0 -321
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.js +0 -2117
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.js +0 -367
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automation.d.ts +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +0 -177
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +0 -195
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +0 -264
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +0 -190
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +0 -865
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +0 -122
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
- /package/vscode/src/vs/{workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers → platform/terminal/common/autoApprove}/sedFileWriteParser.js +0 -0
- /package/vscode/src/vs/{platform/agentHost/common/agentHost.config.contribution.d.ts → workbench/contrib/chat/browser/agentSessionsConfiguration.d.ts} +0 -0
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { $ as $$1, append, hide, addDisposableListener, EventType, show, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { DomScrollableElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
5
|
+
import { BreadcrumbsWidget } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget';
|
|
6
|
+
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
7
|
+
import { SelectBox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/selectBox/selectBox';
|
|
8
|
+
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
9
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
10
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
11
|
+
import { Disposable, DisposableStore, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
13
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
14
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
|
+
import { ScrollbarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable';
|
|
16
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
17
|
+
import { IContextViewService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
18
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
|
+
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
20
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
21
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
22
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
23
|
+
import { defaultBreadcrumbsWidgetStyles, defaultSelectBoxStyles, defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
24
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
25
|
+
import { AgentHostAhpJsonlLoggingSettingId } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService';
|
|
26
|
+
import { IAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service';
|
|
27
|
+
import { ActionType } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/common/actions';
|
|
28
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/common/notifications';
|
|
29
|
+
import { IRemoteAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService.service';
|
|
30
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
31
|
+
import { IOutputService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/output/common/output.service';
|
|
32
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
33
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
34
|
+
import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
35
|
+
import { isAgentHostSession, enumerateAgentHostLogSources, AgentHostLogSourceKind, readAgentHostLogSourceContent } from './agentHostLogSources.js';
|
|
36
|
+
import { setupBreadcrumbKeyboardNavigation, TextBreadcrumbItem } from './chatDebugTypes.js';
|
|
37
|
+
|
|
38
|
+
const $ = $$1;
|
|
39
|
+
const LIVE_REFRESH_DELAY = 400;
|
|
40
|
+
const FILTER_DEBOUNCE_DELAY = 150;
|
|
41
|
+
const PAGE_SIZE = 1000;
|
|
42
|
+
const MAX_DETAIL_JSON = 20000;
|
|
43
|
+
var WireLogNavigation;
|
|
44
|
+
(function(WireLogNavigation) {
|
|
45
|
+
WireLogNavigation["Home"] = "home";
|
|
46
|
+
WireLogNavigation["Overview"] = "overview";
|
|
47
|
+
})(WireLogNavigation || (WireLogNavigation = {}));
|
|
48
|
+
let ChatDebugWireLogView = class ChatDebugWireLogView extends Disposable {
|
|
49
|
+
constructor(
|
|
50
|
+
parent,
|
|
51
|
+
chatService,
|
|
52
|
+
contextViewService,
|
|
53
|
+
editorService,
|
|
54
|
+
configurationService,
|
|
55
|
+
pathService,
|
|
56
|
+
agentHostService,
|
|
57
|
+
remoteAgentHostService,
|
|
58
|
+
outputService,
|
|
59
|
+
fileService,
|
|
60
|
+
textModelService,
|
|
61
|
+
environmentService,
|
|
62
|
+
productService,
|
|
63
|
+
logService
|
|
64
|
+
) {
|
|
65
|
+
super();
|
|
66
|
+
this.chatService = chatService;
|
|
67
|
+
this.contextViewService = contextViewService;
|
|
68
|
+
this.editorService = editorService;
|
|
69
|
+
this.configurationService = configurationService;
|
|
70
|
+
this.pathService = pathService;
|
|
71
|
+
this.agentHostService = agentHostService;
|
|
72
|
+
this.remoteAgentHostService = remoteAgentHostService;
|
|
73
|
+
this.outputService = outputService;
|
|
74
|
+
this.fileService = fileService;
|
|
75
|
+
this.textModelService = textModelService;
|
|
76
|
+
this.environmentService = environmentService;
|
|
77
|
+
this.productService = productService;
|
|
78
|
+
this.logService = logService;
|
|
79
|
+
this._onNavigate = this._register(( new Emitter()));
|
|
80
|
+
this.onNavigate = this._onNavigate.event;
|
|
81
|
+
this.headerDisposables = this._register(( new DisposableStore()));
|
|
82
|
+
this.contentDisposables = this._register(( new DisposableStore()));
|
|
83
|
+
this.liveWatch = this._register(( new MutableDisposable()));
|
|
84
|
+
this.sources = [];
|
|
85
|
+
this.entries = [];
|
|
86
|
+
this.renderedVisible = [];
|
|
87
|
+
this.rowElements = [];
|
|
88
|
+
this.rowStores = [];
|
|
89
|
+
this.listShowingMessage = false;
|
|
90
|
+
this.filterText = "";
|
|
91
|
+
this.loadGeneration = 0;
|
|
92
|
+
this.visibleLimit = PAGE_SIZE;
|
|
93
|
+
this.loadMoreDisposables = this._register(( new DisposableStore()));
|
|
94
|
+
this.loadMoreVisible = false;
|
|
95
|
+
this.container = append(parent, $(".chat-debug-wirelog"));
|
|
96
|
+
hide(this.container);
|
|
97
|
+
this.refreshScheduler = this._register(( new RunOnceScheduler(() => this.liveRefresh(), LIVE_REFRESH_DELAY)));
|
|
98
|
+
this.filterScheduler = this._register(( new RunOnceScheduler(() => this.applyFilter(), FILTER_DEBOUNCE_DELAY)));
|
|
99
|
+
const breadcrumbContainer = append(this.container, $(".chat-debug-breadcrumb"));
|
|
100
|
+
this.breadcrumbWidget = this._register(( new BreadcrumbsWidget(
|
|
101
|
+
breadcrumbContainer,
|
|
102
|
+
3,
|
|
103
|
+
undefined,
|
|
104
|
+
Codicon.chevronRight,
|
|
105
|
+
defaultBreadcrumbsWidgetStyles
|
|
106
|
+
)));
|
|
107
|
+
this._register(
|
|
108
|
+
setupBreadcrumbKeyboardNavigation(breadcrumbContainer, this.breadcrumbWidget)
|
|
109
|
+
);
|
|
110
|
+
this._register(this.breadcrumbWidget.onDidSelectItem(e => {
|
|
111
|
+
if (e.type === "select" && e.item instanceof TextBreadcrumbItem) {
|
|
112
|
+
this.breadcrumbWidget.setSelection(undefined);
|
|
113
|
+
const idx = this.breadcrumbWidget.getItems().indexOf(e.item);
|
|
114
|
+
if (idx === 0) {
|
|
115
|
+
this._onNavigate.fire(WireLogNavigation.Home);
|
|
116
|
+
} else if (idx === 1) {
|
|
117
|
+
this._onNavigate.fire(WireLogNavigation.Overview);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}));
|
|
121
|
+
this.hintBar = append(this.container, $(".chat-debug-wirelog-hint"));
|
|
122
|
+
hide(this.hintBar);
|
|
123
|
+
this.toolbar = append(this.container, $(".chat-debug-wirelog-toolbar"));
|
|
124
|
+
this.selectHost = append(this.toolbar, $(".chat-debug-wirelog-select"));
|
|
125
|
+
this.filterInput = append(this.toolbar, $("input.chat-debug-wirelog-filter"));
|
|
126
|
+
this.filterInput.type = "text";
|
|
127
|
+
this.filterInput.placeholder = ( localize(7996, "Filter by method, type, or id"));
|
|
128
|
+
this.filterInput.setAttribute("aria-label", ( localize(7997, "Filter AHP log frames")));
|
|
129
|
+
this._register(addDisposableListener(this.filterInput, EventType.INPUT, () => {
|
|
130
|
+
this.filterScheduler.schedule();
|
|
131
|
+
}));
|
|
132
|
+
this.summary = append(this.container, $(".chat-debug-wirelog-summary"));
|
|
133
|
+
hide(this.summary);
|
|
134
|
+
this.body = append(this.container, $(".chat-debug-wirelog-body"));
|
|
135
|
+
this.list = $(".chat-debug-wirelog-list");
|
|
136
|
+
this.scrollable = this._register(( new DomScrollableElement(this.list, {
|
|
137
|
+
horizontal: ScrollbarVisibility.Auto,
|
|
138
|
+
vertical: ScrollbarVisibility.Auto
|
|
139
|
+
})));
|
|
140
|
+
append(this.body, this.scrollable.getDomNode());
|
|
141
|
+
this.loadMoreContainer = append(this.container, $(".chat-debug-wirelog-loadmore"));
|
|
142
|
+
hide(this.loadMoreContainer);
|
|
143
|
+
this.footer = append(this.container, $(".chat-debug-wirelog-footer"));
|
|
144
|
+
}
|
|
145
|
+
setSession(sessionResource) {
|
|
146
|
+
this.currentSessionResource = sessionResource;
|
|
147
|
+
this.selectedSourceId = undefined;
|
|
148
|
+
this.visibleLimit = PAGE_SIZE;
|
|
149
|
+
}
|
|
150
|
+
show() {
|
|
151
|
+
show(this.container);
|
|
152
|
+
this.load();
|
|
153
|
+
}
|
|
154
|
+
hide() {
|
|
155
|
+
hide(this.container);
|
|
156
|
+
this.refreshScheduler.cancel();
|
|
157
|
+
this.filterScheduler.cancel();
|
|
158
|
+
this.liveWatch.clear();
|
|
159
|
+
}
|
|
160
|
+
refresh() {
|
|
161
|
+
if (this.container.style.display !== "none" && !this.refreshScheduler.isScheduled()) {
|
|
162
|
+
this.refreshScheduler.schedule();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
updateBreadcrumb() {
|
|
166
|
+
if (!this.currentSessionResource) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const sessionTitle = this.chatService.getSessionTitle(this.currentSessionResource) || LocalChatSessionUri.parseLocalSessionId(this.currentSessionResource) || ( this.currentSessionResource.toString());
|
|
170
|
+
this.breadcrumbWidget.setItems([( new TextBreadcrumbItem(( localize(7998, "Agent Debug Logs")), true)), ( new TextBreadcrumbItem(sessionTitle, true)), ( new TextBreadcrumbItem(( localize(7999, "AHP Log"))))]);
|
|
171
|
+
}
|
|
172
|
+
focus() {
|
|
173
|
+
this.selectBox?.focus();
|
|
174
|
+
}
|
|
175
|
+
layout() {
|
|
176
|
+
const height = this.body.clientHeight;
|
|
177
|
+
if (height > 0) {
|
|
178
|
+
this.list.style.height = `${height}px`;
|
|
179
|
+
}
|
|
180
|
+
this.scrollable.scanDomNode();
|
|
181
|
+
}
|
|
182
|
+
get logSourceServices() {
|
|
183
|
+
return {
|
|
184
|
+
pathService: this.pathService,
|
|
185
|
+
agentHostService: this.agentHostService,
|
|
186
|
+
remoteAgentHostService: this.remoteAgentHostService,
|
|
187
|
+
outputService: this.outputService,
|
|
188
|
+
fileService: this.fileService,
|
|
189
|
+
textModelService: this.textModelService,
|
|
190
|
+
configurationService: this.configurationService,
|
|
191
|
+
environmentService: this.environmentService,
|
|
192
|
+
productService: this.productService,
|
|
193
|
+
logService: this.logService
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
async load() {
|
|
197
|
+
this.updateBreadcrumb();
|
|
198
|
+
this.headerDisposables.clear();
|
|
199
|
+
this.liveWatch.clear();
|
|
200
|
+
clearNode(this.selectHost);
|
|
201
|
+
this.selectBox = undefined;
|
|
202
|
+
const wireLoggingEnabled = this.configurationService.getValue(AgentHostAhpJsonlLoggingSettingId);
|
|
203
|
+
clearNode(this.hintBar);
|
|
204
|
+
if (!wireLoggingEnabled) {
|
|
205
|
+
show(this.hintBar);
|
|
206
|
+
append(this.hintBar, $(`span${ThemeIcon.asCSSSelector(Codicon.info)}`));
|
|
207
|
+
append(this.hintBar, $("span", undefined, ( localize(
|
|
208
|
+
8000,
|
|
209
|
+
"AHP logging is disabled — enable {0} and reproduce to capture client↔host protocol frames.",
|
|
210
|
+
AgentHostAhpJsonlLoggingSettingId
|
|
211
|
+
))));
|
|
212
|
+
} else {
|
|
213
|
+
hide(this.hintBar);
|
|
214
|
+
}
|
|
215
|
+
if (!isAgentHostSession(this.currentSessionResource)) {
|
|
216
|
+
this.renderMessage(( localize(8001, "The AHP Log is available for Agent Host sessions.")));
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
const allSources = await enumerateAgentHostLogSources(this.logSourceServices, this.currentSessionResource);
|
|
220
|
+
this.sources = allSources.filter(source => source.kind === AgentHostLogSourceKind.WireLog);
|
|
221
|
+
if (this.sources.length === 0) {
|
|
222
|
+
this.renderMessage(wireLoggingEnabled ? ( localize(
|
|
223
|
+
8002,
|
|
224
|
+
"No AHP log was found yet for this session. Interact with the agent to capture protocol frames."
|
|
225
|
+
)) : ( localize(
|
|
226
|
+
8003,
|
|
227
|
+
"No AHP log is available. Enable {0} and reproduce the issue to capture protocol frames.",
|
|
228
|
+
AgentHostAhpJsonlLoggingSettingId
|
|
229
|
+
)));
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (this.sources.length > 1) {
|
|
233
|
+
show(this.selectHost);
|
|
234
|
+
const options = ( this.sources.map(source => ({
|
|
235
|
+
text: source.label
|
|
236
|
+
})));
|
|
237
|
+
let selectedIndex = this.sources.findIndex(source => source.id === this.selectedSourceId);
|
|
238
|
+
if (selectedIndex < 0) {
|
|
239
|
+
selectedIndex = 0;
|
|
240
|
+
}
|
|
241
|
+
const selectBox = this.headerDisposables.add(( new SelectBox(options, selectedIndex, this.contextViewService, defaultSelectBoxStyles, {
|
|
242
|
+
ariaLabel: ( localize(8004, "AHP log file"))
|
|
243
|
+
})));
|
|
244
|
+
selectBox.render(this.selectHost);
|
|
245
|
+
this.headerDisposables.add(selectBox.onDidSelect(e => this.loadSource(e.index)));
|
|
246
|
+
this.selectBox = selectBox;
|
|
247
|
+
} else {
|
|
248
|
+
hide(this.selectHost);
|
|
249
|
+
}
|
|
250
|
+
const openBtn = this.headerDisposables.add(( new Button(this.toolbar, {
|
|
251
|
+
...defaultButtonStyles,
|
|
252
|
+
secondary: true,
|
|
253
|
+
supportIcons: true,
|
|
254
|
+
title: ( localize(8005, "Open Full File"))
|
|
255
|
+
})));
|
|
256
|
+
openBtn.element.classList.add("chat-debug-wirelog-action");
|
|
257
|
+
openBtn.label = `$(go-to-file) ${( localize(8005, "Open Full File"))}`;
|
|
258
|
+
this.headerDisposables.add(openBtn.onDidClick(() => this.openCurrentFile()));
|
|
259
|
+
const refreshBtn = this.headerDisposables.add(( new Button(this.toolbar, {
|
|
260
|
+
...defaultButtonStyles,
|
|
261
|
+
secondary: true,
|
|
262
|
+
supportIcons: true,
|
|
263
|
+
title: ( localize(8006, "Refresh"))
|
|
264
|
+
})));
|
|
265
|
+
refreshBtn.element.classList.add("chat-debug-wirelog-action");
|
|
266
|
+
refreshBtn.label = `$(refresh) ${( localize(8006, "Refresh"))}`;
|
|
267
|
+
this.headerDisposables.add(refreshBtn.onDidClick(() => this.reloadCurrentSource()));
|
|
268
|
+
let selectedIndex = this.sources.findIndex(source => source.id === this.selectedSourceId);
|
|
269
|
+
if (selectedIndex < 0) {
|
|
270
|
+
selectedIndex = 0;
|
|
271
|
+
}
|
|
272
|
+
await this.loadSource(selectedIndex);
|
|
273
|
+
}
|
|
274
|
+
async loadSource(index) {
|
|
275
|
+
const source = this.sources[index];
|
|
276
|
+
if (!source) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
this.selectedSourceId = source.id;
|
|
280
|
+
this.liveWatch.clear();
|
|
281
|
+
this.currentFileResource = undefined;
|
|
282
|
+
this.visibleLimit = PAGE_SIZE;
|
|
283
|
+
const generation = ++this.loadGeneration;
|
|
284
|
+
this.renderMessage(( localize(8007, "Loading…")));
|
|
285
|
+
let content;
|
|
286
|
+
try {
|
|
287
|
+
content = await readAgentHostLogSourceContent(source, this.logSourceServices);
|
|
288
|
+
} catch (error) {
|
|
289
|
+
if (generation !== this.loadGeneration) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
this.renderMessage(( localize(
|
|
293
|
+
8008,
|
|
294
|
+
"Failed to read AHP log: {0}",
|
|
295
|
+
error instanceof Error ? error.message : String(error)
|
|
296
|
+
)));
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
if (generation !== this.loadGeneration) {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
if (!content) {
|
|
303
|
+
this.renderMessage(( localize(8009, "This AHP log is unavailable.")));
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
this.currentFileResource = content.fileResource;
|
|
307
|
+
this.entries = buildWireEntries(parseWireFrames(content.text));
|
|
308
|
+
this.renderList();
|
|
309
|
+
this.renderFooter(source, content.truncated);
|
|
310
|
+
this.setupLiveWatch(source);
|
|
311
|
+
}
|
|
312
|
+
reloadCurrentSource() {
|
|
313
|
+
const index = this.sources.findIndex(source => source.id === this.selectedSourceId);
|
|
314
|
+
if (index >= 0) {
|
|
315
|
+
this.loadSource(index);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
setupLiveWatch(source) {
|
|
319
|
+
const store = ( new DisposableStore());
|
|
320
|
+
if (source.resource?.scheme === Schemas.file) {
|
|
321
|
+
const watcher = store.add(this.fileService.createWatcher(source.resource, {
|
|
322
|
+
recursive: false,
|
|
323
|
+
excludes: []
|
|
324
|
+
}));
|
|
325
|
+
store.add(watcher.onDidChange(() => this.refresh()));
|
|
326
|
+
}
|
|
327
|
+
this.liveWatch.value = store;
|
|
328
|
+
}
|
|
329
|
+
openCurrentFile() {
|
|
330
|
+
if (this.currentFileResource) {
|
|
331
|
+
this.editorService.openEditor({
|
|
332
|
+
resource: this.currentFileResource,
|
|
333
|
+
options: {
|
|
334
|
+
pinned: true
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
renderMessage(message) {
|
|
340
|
+
this.contentDisposables.clear();
|
|
341
|
+
this.rowElements = [];
|
|
342
|
+
this.rowStores = [];
|
|
343
|
+
this.renderedVisible = [];
|
|
344
|
+
this.listShowingMessage = true;
|
|
345
|
+
hide(this.summary);
|
|
346
|
+
clearNode(this.list);
|
|
347
|
+
this.list.classList.add("chat-debug-wirelog-message");
|
|
348
|
+
this.list.textContent = message;
|
|
349
|
+
this.scrollable.scanDomNode();
|
|
350
|
+
clearNode(this.footer);
|
|
351
|
+
if (this.loadMoreVisible) {
|
|
352
|
+
hide(this.loadMoreContainer);
|
|
353
|
+
this.loadMoreVisible = false;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
renderSummary() {
|
|
357
|
+
clearNode(this.summary);
|
|
358
|
+
let requests = 0;
|
|
359
|
+
let errors = 0;
|
|
360
|
+
let pending = 0;
|
|
361
|
+
let longest = 0;
|
|
362
|
+
for (const entry of this.entries) {
|
|
363
|
+
if (entry.frame.kind === "request") {
|
|
364
|
+
requests++;
|
|
365
|
+
if (!entry.response) {
|
|
366
|
+
pending++;
|
|
367
|
+
} else {
|
|
368
|
+
const duration = entry.response.ts - entry.frame.ts;
|
|
369
|
+
if (duration > longest) {
|
|
370
|
+
longest = duration;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if (isErrorEntry(entry)) {
|
|
375
|
+
errors++;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
show(this.summary);
|
|
379
|
+
this.appendChip(( localize(8010, "{0} frames", this.entries.length)));
|
|
380
|
+
this.appendChip(( localize(8011, "{0} requests", requests)));
|
|
381
|
+
if (errors > 0) {
|
|
382
|
+
this.appendChip(( localize(8012, "{0} errors", errors)), "error");
|
|
383
|
+
}
|
|
384
|
+
if (pending > 0) {
|
|
385
|
+
this.appendChip(( localize(8013, "{0} pending", pending)), "pending");
|
|
386
|
+
}
|
|
387
|
+
if (longest > 0) {
|
|
388
|
+
this.appendChip(( localize(8014, "slowest {0}", formatDuration(longest))));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
appendChip(text, tone) {
|
|
392
|
+
const chip = append(this.summary, $("span.chat-debug-wirelog-chip", undefined, text));
|
|
393
|
+
if (tone) {
|
|
394
|
+
chip.classList.add(`chat-debug-wirelog-chip-${tone}`);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
applyFilter() {
|
|
398
|
+
const next = this.filterInput.value.trim().toLowerCase();
|
|
399
|
+
if (next === this.filterText) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
this.filterText = next;
|
|
403
|
+
this.visibleLimit = PAGE_SIZE;
|
|
404
|
+
this.renderList();
|
|
405
|
+
}
|
|
406
|
+
renderList() {
|
|
407
|
+
this.contentDisposables.clear();
|
|
408
|
+
clearNode(this.list);
|
|
409
|
+
this.rowElements = [];
|
|
410
|
+
this.rowStores = [];
|
|
411
|
+
this.renderedVisible = [];
|
|
412
|
+
this.listShowingMessage = false;
|
|
413
|
+
if (this.entries.length === 0) {
|
|
414
|
+
this.renderMessage(( localize(8015, "The AHP log is empty.")));
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
this.renderSummary();
|
|
418
|
+
const {
|
|
419
|
+
filtered,
|
|
420
|
+
display
|
|
421
|
+
} = this.computeVisible(this.entries);
|
|
422
|
+
if (display.length === 0) {
|
|
423
|
+
const empty = append(this.list, $(".chat-debug-wirelog-noresults"));
|
|
424
|
+
empty.textContent = ( localize(8016, "No frames match '{0}'.", this.filterText));
|
|
425
|
+
this.updateLoadMore(0);
|
|
426
|
+
this.scrollable.scanDomNode();
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
for (const entry of display) {
|
|
430
|
+
this.appendRow(entry);
|
|
431
|
+
}
|
|
432
|
+
this.renderedVisible = display;
|
|
433
|
+
this.updateLoadMore(filtered.length);
|
|
434
|
+
this.scrollable.scanDomNode();
|
|
435
|
+
}
|
|
436
|
+
async liveRefresh() {
|
|
437
|
+
const index = this.sources.findIndex(source => source.id === this.selectedSourceId);
|
|
438
|
+
const source = this.sources[index];
|
|
439
|
+
if (!source) {
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
const generation = ++this.loadGeneration;
|
|
443
|
+
let content;
|
|
444
|
+
try {
|
|
445
|
+
content = await readAgentHostLogSourceContent(source, this.logSourceServices);
|
|
446
|
+
} catch {
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (generation !== this.loadGeneration || !content) {
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
this.currentFileResource = content.fileResource;
|
|
453
|
+
this.applyEntries(buildWireEntries(parseWireFrames(content.text)));
|
|
454
|
+
this.renderFooter(source, content.truncated);
|
|
455
|
+
}
|
|
456
|
+
applyEntries(newEntries) {
|
|
457
|
+
const {
|
|
458
|
+
filtered,
|
|
459
|
+
display
|
|
460
|
+
} = this.computeVisible(newEntries);
|
|
461
|
+
const canReconcile = !this.listShowingMessage && this.renderedVisible.length > 0 && display.length >= this.renderedVisible.length && this.renderedVisible.every((entry, i) => baseEntryKey(entry) === baseEntryKey(display[i]));
|
|
462
|
+
this.entries = newEntries;
|
|
463
|
+
if (!canReconcile) {
|
|
464
|
+
this.renderList();
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
const wasAtBottom = this.isScrolledToBottom();
|
|
468
|
+
this.renderSummary();
|
|
469
|
+
for (let i = 0; i < this.renderedVisible.length; i++) {
|
|
470
|
+
if (entryStateKey(this.renderedVisible[i]) !== entryStateKey(display[i])) {
|
|
471
|
+
this.replaceRow(i, display[i]);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
for (let i = this.renderedVisible.length; i < display.length; i++) {
|
|
475
|
+
this.appendRow(display[i]);
|
|
476
|
+
}
|
|
477
|
+
this.renderedVisible = display;
|
|
478
|
+
this.updateLoadMore(filtered.length);
|
|
479
|
+
this.scrollable.scanDomNode();
|
|
480
|
+
if (wasAtBottom) {
|
|
481
|
+
this.scrollToBottom();
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
computeVisible(entries) {
|
|
485
|
+
const filter = this.filterText;
|
|
486
|
+
const filtered = filter ? entries.filter(entry => matchesFilter(entry, filter)) : entries;
|
|
487
|
+
const display = filtered.length > this.visibleLimit ? filtered.slice(0, this.visibleLimit) : filtered;
|
|
488
|
+
return {
|
|
489
|
+
filtered,
|
|
490
|
+
display
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
updateLoadMore(totalFiltered) {
|
|
494
|
+
if (totalFiltered <= this.visibleLimit) {
|
|
495
|
+
if (this.loadMoreVisible) {
|
|
496
|
+
hide(this.loadMoreContainer);
|
|
497
|
+
this.loadMoreVisible = false;
|
|
498
|
+
this.layout();
|
|
499
|
+
}
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
if (!this.loadMoreStatus) {
|
|
503
|
+
this.loadMoreStatus = append(this.loadMoreContainer, $("span.chat-debug-wirelog-loadmore-status"));
|
|
504
|
+
}
|
|
505
|
+
if (!this.loadMoreBtn) {
|
|
506
|
+
this.loadMoreBtn = this.loadMoreDisposables.add(( new Button(this.loadMoreContainer, {
|
|
507
|
+
...defaultButtonStyles,
|
|
508
|
+
secondary: true,
|
|
509
|
+
title: ( localize(8017, "Load more frames"))
|
|
510
|
+
})));
|
|
511
|
+
this.loadMoreDisposables.add(this.loadMoreBtn.onDidClick(() => {
|
|
512
|
+
this.visibleLimit += PAGE_SIZE;
|
|
513
|
+
this.renderList();
|
|
514
|
+
}));
|
|
515
|
+
}
|
|
516
|
+
const shown = Math.min(this.visibleLimit, totalFiltered);
|
|
517
|
+
const remaining = totalFiltered - shown;
|
|
518
|
+
this.loadMoreStatus.textContent = ( localize(8018, "Showing {0} of {1} frames", shown, totalFiltered));
|
|
519
|
+
this.loadMoreBtn.label = ( localize(8019, "Load More ({0})", remaining));
|
|
520
|
+
if (!this.loadMoreVisible) {
|
|
521
|
+
show(this.loadMoreContainer);
|
|
522
|
+
this.loadMoreVisible = true;
|
|
523
|
+
this.layout();
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
appendRow(entry) {
|
|
527
|
+
const {
|
|
528
|
+
row,
|
|
529
|
+
store
|
|
530
|
+
} = this.buildRow(entry);
|
|
531
|
+
this.contentDisposables.add(store);
|
|
532
|
+
this.rowElements.push(row);
|
|
533
|
+
this.rowStores.push(store);
|
|
534
|
+
this.list.appendChild(row);
|
|
535
|
+
}
|
|
536
|
+
replaceRow(index, entry) {
|
|
537
|
+
const {
|
|
538
|
+
row,
|
|
539
|
+
store
|
|
540
|
+
} = this.buildRow(entry);
|
|
541
|
+
this.contentDisposables.add(store);
|
|
542
|
+
const oldRow = this.rowElements[index];
|
|
543
|
+
this.list.replaceChild(row, oldRow);
|
|
544
|
+
this.rowStores[index].dispose();
|
|
545
|
+
this.rowElements[index] = row;
|
|
546
|
+
this.rowStores[index] = store;
|
|
547
|
+
}
|
|
548
|
+
isScrolledToBottom() {
|
|
549
|
+
const dimensions = this.scrollable.getScrollDimensions();
|
|
550
|
+
const position = this.scrollable.getScrollPosition();
|
|
551
|
+
return position.scrollTop + dimensions.height >= dimensions.scrollHeight - 4;
|
|
552
|
+
}
|
|
553
|
+
scrollToBottom() {
|
|
554
|
+
this.scrollable.setScrollPosition({
|
|
555
|
+
scrollTop: this.scrollable.getScrollDimensions().scrollHeight
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
buildRow(entry) {
|
|
559
|
+
const store = ( new DisposableStore());
|
|
560
|
+
const frame = entry.frame;
|
|
561
|
+
const isError = isErrorEntry(entry);
|
|
562
|
+
const isPending = frame.kind === "request" && !entry.response;
|
|
563
|
+
const row = $(".chat-debug-wirelog-row");
|
|
564
|
+
if (isError) {
|
|
565
|
+
row.classList.add("chat-debug-wirelog-row-error");
|
|
566
|
+
}
|
|
567
|
+
const header = append(row, $(".chat-debug-wirelog-row-header"));
|
|
568
|
+
header.tabIndex = 0;
|
|
569
|
+
header.setAttribute("role", "button");
|
|
570
|
+
const chevron = append(header, $(
|
|
571
|
+
`span.chat-debug-wirelog-chevron${ThemeIcon.asCSSSelector(Codicon.chevronRight)}`
|
|
572
|
+
));
|
|
573
|
+
chevron.setAttribute("aria-hidden", "true");
|
|
574
|
+
const outbound = frame.dir === "c2s";
|
|
575
|
+
const dirIcon = outbound ? Codicon.arrowRight : Codicon.arrowLeft;
|
|
576
|
+
const dirEl = append(
|
|
577
|
+
header,
|
|
578
|
+
$(`span.chat-debug-wirelog-dir${ThemeIcon.asCSSSelector(dirIcon)}`)
|
|
579
|
+
);
|
|
580
|
+
dirEl.title = outbound ? ( localize(8020, "VS Code → Agent Host")) : ( localize(8021, "Agent Host → VS Code"));
|
|
581
|
+
const label = frame.method ?? ( localize(8022, "(response)"));
|
|
582
|
+
append(header, $("span.chat-debug-wirelog-method", undefined, label));
|
|
583
|
+
if (frame.actionType) {
|
|
584
|
+
append(header, $("span.chat-debug-wirelog-type", undefined, frame.actionType));
|
|
585
|
+
}
|
|
586
|
+
const badgeText = frame.kind === "request" ? ( localize(8023, "request")) : frame.kind === "notification" ? ( localize(8024, "notify")) : ( localize(8025, "response"));
|
|
587
|
+
append(header, $("span.chat-debug-wirelog-badge", undefined, badgeText));
|
|
588
|
+
const status = append(header, $("span.chat-debug-wirelog-status"));
|
|
589
|
+
if (isError) {
|
|
590
|
+
status.classList.add("chat-debug-wirelog-status-error");
|
|
591
|
+
const code = entry.response?.error?.code ?? frame.error?.code;
|
|
592
|
+
status.textContent = code !== undefined ? ( localize(8026, "error {0}", code)) : ( localize(8027, "error"));
|
|
593
|
+
} else if (isPending) {
|
|
594
|
+
status.classList.add("chat-debug-wirelog-status-pending");
|
|
595
|
+
status.textContent = ( localize(8028, "pending"));
|
|
596
|
+
} else if (entry.response) {
|
|
597
|
+
status.classList.add("chat-debug-wirelog-status-ok");
|
|
598
|
+
status.textContent = formatDuration(entry.response.ts - frame.ts);
|
|
599
|
+
}
|
|
600
|
+
const time = append(header, $("span.chat-debug-wirelog-time"));
|
|
601
|
+
time.textContent = formatClock(frame.ts);
|
|
602
|
+
if (frame.id !== undefined) {
|
|
603
|
+
time.title = ( localize(8029, "id: {0}", frame.id));
|
|
604
|
+
}
|
|
605
|
+
const details = append(row, $(".chat-debug-wirelog-row-details"));
|
|
606
|
+
let detailsRendered = false;
|
|
607
|
+
let expanded = false;
|
|
608
|
+
const setExpanded = (value, scan) => {
|
|
609
|
+
expanded = value;
|
|
610
|
+
if (expanded && !detailsRendered) {
|
|
611
|
+
this.renderDetails(details, entry);
|
|
612
|
+
detailsRendered = true;
|
|
613
|
+
}
|
|
614
|
+
row.classList.toggle("chat-debug-wirelog-row-expanded", expanded);
|
|
615
|
+
chevron.classList.toggle("codicon-chevron-down", expanded);
|
|
616
|
+
chevron.classList.toggle("codicon-chevron-right", !expanded);
|
|
617
|
+
header.setAttribute("aria-expanded", String(expanded));
|
|
618
|
+
if (scan) {
|
|
619
|
+
this.scrollable.scanDomNode();
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
setExpanded(isError, false);
|
|
623
|
+
store.add(
|
|
624
|
+
addDisposableListener(header, EventType.CLICK, () => setExpanded(!expanded, true))
|
|
625
|
+
);
|
|
626
|
+
store.add(addDisposableListener(header, EventType.KEY_DOWN, e => {
|
|
627
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
628
|
+
e.preventDefault();
|
|
629
|
+
setExpanded(!expanded, true);
|
|
630
|
+
}
|
|
631
|
+
}));
|
|
632
|
+
return {
|
|
633
|
+
row,
|
|
634
|
+
store
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
renderDetails(container, entry) {
|
|
638
|
+
const frame = entry.frame;
|
|
639
|
+
if (frame.payload !== undefined) {
|
|
640
|
+
this.appendJsonSection(container, frame.kind === "response" ? ( localize(8030, "Result")) : ( localize(8031, "Params")), frame.payload);
|
|
641
|
+
}
|
|
642
|
+
if (frame.error) {
|
|
643
|
+
this.appendJsonSection(container, ( localize(8032, "Error")), frame.error, true);
|
|
644
|
+
}
|
|
645
|
+
if (entry.response) {
|
|
646
|
+
if (entry.response.error) {
|
|
647
|
+
this.appendJsonSection(container, ( localize(8033, "Response Error")), entry.response.error, true);
|
|
648
|
+
} else if (entry.response.payload !== undefined) {
|
|
649
|
+
this.appendJsonSection(container, ( localize(8030, "Result")), entry.response.payload);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
if (frame.truncated || entry.response?.truncated) {
|
|
653
|
+
append(container, $(".chat-debug-wirelog-detail-note", undefined, ( localize(
|
|
654
|
+
8034,
|
|
655
|
+
"Large payload values were elided in the log. Open the full file for complete data."
|
|
656
|
+
))));
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
appendJsonSection(container, title, value, isError = false) {
|
|
660
|
+
const section = append(container, $(".chat-debug-wirelog-detail-section"));
|
|
661
|
+
append(section, $(".chat-debug-wirelog-detail-title", undefined, title));
|
|
662
|
+
const pre = append(section, $("pre.chat-debug-wirelog-detail-json"));
|
|
663
|
+
if (isError) {
|
|
664
|
+
pre.classList.add("chat-debug-wirelog-detail-json-error");
|
|
665
|
+
}
|
|
666
|
+
pre.textContent = stringifyBounded(value);
|
|
667
|
+
}
|
|
668
|
+
renderFooter(source, truncated) {
|
|
669
|
+
clearNode(this.footer);
|
|
670
|
+
const parts = [];
|
|
671
|
+
if (truncated) {
|
|
672
|
+
parts.push(( localize(8035, "Showing the most recent frames")));
|
|
673
|
+
}
|
|
674
|
+
if (source.isRemote) {
|
|
675
|
+
parts.push(( localize(8036, "remote")));
|
|
676
|
+
}
|
|
677
|
+
this.footer.textContent = parts.join(" · ");
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
ChatDebugWireLogView = ( __decorate([( __param(1, IChatService)), ( __param(2, IContextViewService)), ( __param(3, IEditorService)), ( __param(4, IConfigurationService)), ( __param(5, IPathService)), ( __param(6, IAgentHostService)), ( __param(7, IRemoteAgentHostService)), ( __param(8, IOutputService)), ( __param(9, IFileService)), ( __param(10, ITextModelService)), ( __param(11, IEnvironmentService)), ( __param(12, IProductService)), ( __param(13, ILogService))], ChatDebugWireLogView));
|
|
681
|
+
function extractActionType(method, payload) {
|
|
682
|
+
switch (method) {
|
|
683
|
+
case "notification":
|
|
684
|
+
return typeStringOf(getProp(payload, "notification"));
|
|
685
|
+
case "dispatchAction":
|
|
686
|
+
return typeStringOf(Array.isArray(payload) ? payload[1] : undefined);
|
|
687
|
+
case "createSession":
|
|
688
|
+
return uriStringOf(getProp(Array.isArray(payload) ? payload[0] : undefined, "session"));
|
|
689
|
+
default:
|
|
690
|
+
return typeStringOf(getProp(payload, "action"));
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
function getProp(value, key) {
|
|
694
|
+
return value && typeof value === "object" ? value[key] : undefined;
|
|
695
|
+
}
|
|
696
|
+
function typeStringOf(value) {
|
|
697
|
+
const type = getProp(value, "type");
|
|
698
|
+
return typeof type === "string" ? type : undefined;
|
|
699
|
+
}
|
|
700
|
+
function uriStringOf(value) {
|
|
701
|
+
if (typeof value === "string") {
|
|
702
|
+
return value;
|
|
703
|
+
}
|
|
704
|
+
if (value && typeof value === "object") {
|
|
705
|
+
const external = value.external;
|
|
706
|
+
if (typeof external === "string") {
|
|
707
|
+
return external;
|
|
708
|
+
}
|
|
709
|
+
if (typeof value.scheme === "string") {
|
|
710
|
+
try {
|
|
711
|
+
return ( URI.revive(value).toString(true));
|
|
712
|
+
} catch {
|
|
713
|
+
return undefined;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
return undefined;
|
|
718
|
+
}
|
|
719
|
+
function parseWireFrames(text) {
|
|
720
|
+
const frames = [];
|
|
721
|
+
for (const line of text.split("\n")) {
|
|
722
|
+
const trimmed = line.trim();
|
|
723
|
+
if (!trimmed) {
|
|
724
|
+
continue;
|
|
725
|
+
}
|
|
726
|
+
let record;
|
|
727
|
+
try {
|
|
728
|
+
record = JSON.parse(trimmed);
|
|
729
|
+
} catch {
|
|
730
|
+
continue;
|
|
731
|
+
}
|
|
732
|
+
const meta = record._ahpLog;
|
|
733
|
+
if (!meta) {
|
|
734
|
+
continue;
|
|
735
|
+
}
|
|
736
|
+
const dir = meta.dir === "s2c" ? "s2c" : "c2s";
|
|
737
|
+
const ts = typeof meta.ts === "string" ? Date.parse(meta.ts) : NaN;
|
|
738
|
+
const id = record.id !== undefined && record.id !== null ? String(record.id) : undefined;
|
|
739
|
+
const method = typeof record.method === "string" ? record.method : undefined;
|
|
740
|
+
const hasResult = Object.prototype.hasOwnProperty.call(record, "result");
|
|
741
|
+
const errorValue = record.error;
|
|
742
|
+
const kind = method ? (id !== undefined ? "request" : "notification") : "response";
|
|
743
|
+
const payload = method ? record.params : (hasResult ? record.result : undefined);
|
|
744
|
+
frames.push({
|
|
745
|
+
ts: Number.isNaN(ts) ? 0 : ts,
|
|
746
|
+
dir,
|
|
747
|
+
truncated: meta.truncated === true,
|
|
748
|
+
byteLength: typeof meta.byteLength === "number" ? meta.byteLength : undefined,
|
|
749
|
+
id,
|
|
750
|
+
method,
|
|
751
|
+
actionType: extractActionType(method, payload),
|
|
752
|
+
payload,
|
|
753
|
+
error: errorValue && typeof errorValue === "object" ? errorValue : undefined,
|
|
754
|
+
kind
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
return frames;
|
|
758
|
+
}
|
|
759
|
+
function buildWireEntries(frames) {
|
|
760
|
+
const entries = [];
|
|
761
|
+
const pendingByKey = ( new Map());
|
|
762
|
+
const pendingKey = (dir, id) => `${dir}|${id}`;
|
|
763
|
+
for (const frame of frames) {
|
|
764
|
+
if (frame.kind === "response" && frame.id !== undefined) {
|
|
765
|
+
const requestDir = frame.dir === "c2s" ? "s2c" : "c2s";
|
|
766
|
+
const key = pendingKey(requestDir, frame.id);
|
|
767
|
+
const request = pendingByKey.get(key);
|
|
768
|
+
if (request) {
|
|
769
|
+
request.response = frame;
|
|
770
|
+
pendingByKey.delete(key);
|
|
771
|
+
continue;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
const entry = {
|
|
775
|
+
frame,
|
|
776
|
+
response: undefined
|
|
777
|
+
};
|
|
778
|
+
entries.push(entry);
|
|
779
|
+
if (frame.kind === "request" && frame.id !== undefined) {
|
|
780
|
+
pendingByKey.set(pendingKey(frame.dir, frame.id), entry);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
return entries;
|
|
784
|
+
}
|
|
785
|
+
function isErrorEntry(entry) {
|
|
786
|
+
const frame = entry.frame;
|
|
787
|
+
return !!entry.response?.error || (frame.kind === "response" && !!frame.error) || frame.actionType === ActionType.ChatError;
|
|
788
|
+
}
|
|
789
|
+
function matchesFilter(entry, filter) {
|
|
790
|
+
const frame = entry.frame;
|
|
791
|
+
if (frame.method?.toLowerCase().includes(filter)) {
|
|
792
|
+
return true;
|
|
793
|
+
}
|
|
794
|
+
if (frame.actionType?.toLowerCase().includes(filter)) {
|
|
795
|
+
return true;
|
|
796
|
+
}
|
|
797
|
+
if (frame.id !== undefined && frame.id.toLowerCase().includes(filter)) {
|
|
798
|
+
return true;
|
|
799
|
+
}
|
|
800
|
+
const errorMessage = entry.response?.error?.message ?? frame.error?.message;
|
|
801
|
+
return !!errorMessage && errorMessage.toLowerCase().includes(filter);
|
|
802
|
+
}
|
|
803
|
+
function baseEntryKey(entry) {
|
|
804
|
+
const frame = entry.frame;
|
|
805
|
+
return `${frame.dir}|${frame.kind}|${frame.id ?? ""}|${frame.ts}|${frame.method ?? ""}`;
|
|
806
|
+
}
|
|
807
|
+
function entryStateKey(entry) {
|
|
808
|
+
const response = entry.response;
|
|
809
|
+
const responseKey = response ? `R${response.ts}${response.error ? "E" : ""}` : "P";
|
|
810
|
+
return `${baseEntryKey(entry)}|${responseKey}`;
|
|
811
|
+
}
|
|
812
|
+
function stringifyBounded(value) {
|
|
813
|
+
let text;
|
|
814
|
+
try {
|
|
815
|
+
text = JSON.stringify(value, undefined, 2) ?? String(value);
|
|
816
|
+
} catch {
|
|
817
|
+
text = String(value);
|
|
818
|
+
}
|
|
819
|
+
if (text.length > MAX_DETAIL_JSON) {
|
|
820
|
+
return `${text.slice(0, MAX_DETAIL_JSON)}…`;
|
|
821
|
+
}
|
|
822
|
+
return text;
|
|
823
|
+
}
|
|
824
|
+
function formatDuration(millis) {
|
|
825
|
+
if (millis < 1000) {
|
|
826
|
+
return localize(8037, "{0} ms", Math.round(millis));
|
|
827
|
+
}
|
|
828
|
+
return localize(8038, "{0} s", (millis / 1000).toFixed(millis < 10000 ? 1 : 0));
|
|
829
|
+
}
|
|
830
|
+
function formatClock(ts) {
|
|
831
|
+
if (!ts) {
|
|
832
|
+
return "";
|
|
833
|
+
}
|
|
834
|
+
const date = ( new Date(ts));
|
|
835
|
+
const pad = (value, length = 2) => String(value).padStart(length, "0");
|
|
836
|
+
return `${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}.${pad(date.getMilliseconds(), 3)}`;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export { ChatDebugWireLogView, WireLogNavigation };
|