@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
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.js
DELETED
|
@@ -1,772 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import * as aiCustomizationManagement from './media/aiCustomizationManagement.css';
|
|
5
|
-
import { $ as $$1, append, addDisposableListener, isAncestor, clearNode, addStandardDisposableListener, scheduleAtNextAnimationFrame, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
|
-
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
7
|
-
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
8
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
9
|
-
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
10
|
-
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
11
|
-
import { DisposableStore, Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
13
|
-
import { fromNow, getDurationString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
14
|
-
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
15
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
16
|
-
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
17
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
18
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
|
-
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
20
|
-
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
21
|
-
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
22
|
-
import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
23
|
-
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
24
|
-
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
25
|
-
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
26
|
-
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
27
|
-
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
28
|
-
import { IAutomationRunner } from '../../common/automations/automationRunner.service.js';
|
|
29
|
-
import { IAutomationService } from '../../common/automations/automationService.service.js';
|
|
30
|
-
import { IAutomationDialogService } from '../../common/automations/automationDialogService.service.js';
|
|
31
|
-
import { CHAT_AUTOMATIONS_ENABLED_SETTING } from '../../common/automations/automationsEnabled.js';
|
|
32
|
-
import { DAYS_OF_WEEK } from '../../common/automations/schedule.js';
|
|
33
|
-
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
34
|
-
import { openSession } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener';
|
|
35
|
-
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
36
|
-
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
37
|
-
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
38
|
-
|
|
39
|
-
registerCss(aiCustomizationManagement);
|
|
40
|
-
const $ = $$1;
|
|
41
|
-
const AUTOMATION_ROW_HEIGHT = 72;
|
|
42
|
-
const HISTORY_ROW_HEIGHT = 28;
|
|
43
|
-
const HISTORY_HEADER_HEIGHT = 32;
|
|
44
|
-
const HISTORY_EMPTY_HEIGHT = 28;
|
|
45
|
-
const HISTORY_MORE_HEIGHT = 22;
|
|
46
|
-
const MAX_VISIBLE_RUNS = 20;
|
|
47
|
-
class AutomationItemDelegate {
|
|
48
|
-
getHeight(element) {
|
|
49
|
-
if (!element.expanded) {
|
|
50
|
-
return AUTOMATION_ROW_HEIGHT;
|
|
51
|
-
}
|
|
52
|
-
const runs = element.runs;
|
|
53
|
-
const visibleRuns = Math.min(runs.length, MAX_VISIBLE_RUNS);
|
|
54
|
-
if (visibleRuns === 0) {
|
|
55
|
-
return AUTOMATION_ROW_HEIGHT + HISTORY_EMPTY_HEIGHT;
|
|
56
|
-
}
|
|
57
|
-
let historyHeight = HISTORY_HEADER_HEIGHT + visibleRuns * HISTORY_ROW_HEIGHT;
|
|
58
|
-
if (runs.length > MAX_VISIBLE_RUNS) {
|
|
59
|
-
historyHeight += HISTORY_MORE_HEIGHT;
|
|
60
|
-
}
|
|
61
|
-
return AUTOMATION_ROW_HEIGHT + historyHeight;
|
|
62
|
-
}
|
|
63
|
-
hasDynamicHeight(_element) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
getTemplateId(_element) {
|
|
67
|
-
return "automationItem";
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
class AutomationItemRenderer {
|
|
71
|
-
constructor(
|
|
72
|
-
widget,
|
|
73
|
-
hoverService,
|
|
74
|
-
notificationService,
|
|
75
|
-
editorService,
|
|
76
|
-
editorGroupsService,
|
|
77
|
-
logService,
|
|
78
|
-
agentSessionsService,
|
|
79
|
-
instantiationService
|
|
80
|
-
) {
|
|
81
|
-
this.widget = widget;
|
|
82
|
-
this.hoverService = hoverService;
|
|
83
|
-
this.notificationService = notificationService;
|
|
84
|
-
this.editorService = editorService;
|
|
85
|
-
this.editorGroupsService = editorGroupsService;
|
|
86
|
-
this.logService = logService;
|
|
87
|
-
this.agentSessionsService = agentSessionsService;
|
|
88
|
-
this.instantiationService = instantiationService;
|
|
89
|
-
this.templateId = "automationItem";
|
|
90
|
-
}
|
|
91
|
-
renderTemplate(container) {
|
|
92
|
-
const disposables = ( new DisposableStore());
|
|
93
|
-
container.classList.add("automations-row-wrapper");
|
|
94
|
-
const row = append(container, $(".automations-row"));
|
|
95
|
-
const main = append(row, $(".automations-row-main"));
|
|
96
|
-
const nameEl = append(main, $(".automations-row-name"));
|
|
97
|
-
const nameTextEl = append(nameEl, $("span.automations-row-name-text"));
|
|
98
|
-
const disabledBadge = append(nameEl, $("span.automations-row-disabled-badge"));
|
|
99
|
-
const metaEl = append(main, $(".automations-row-meta"));
|
|
100
|
-
const scheduleEl = append(metaEl, $("span.automations-row-schedule"));
|
|
101
|
-
const sep1 = append(metaEl, $("span.automations-row-meta-sep"));
|
|
102
|
-
const nextEl = append(metaEl, $("span.automations-row-next"));
|
|
103
|
-
const sepFolder = append(metaEl, $("span.automations-row-meta-sep"));
|
|
104
|
-
const folderEl = append(metaEl, $("span.automations-row-folder"));
|
|
105
|
-
const sep2 = append(metaEl, $("span.automations-row-meta-sep"));
|
|
106
|
-
const lastEl = append(metaEl, $("span.automations-row-last"));
|
|
107
|
-
const promptEl = append(main, $(".automations-row-prompt"));
|
|
108
|
-
const actions = append(row, $(".automations-row-actions"));
|
|
109
|
-
const historyPanel = append(container, $(".automations-row-history"));
|
|
110
|
-
return {
|
|
111
|
-
container,
|
|
112
|
-
row,
|
|
113
|
-
nameEl,
|
|
114
|
-
nameTextEl,
|
|
115
|
-
disabledBadge,
|
|
116
|
-
scheduleEl,
|
|
117
|
-
sep1,
|
|
118
|
-
nextEl,
|
|
119
|
-
sepFolder,
|
|
120
|
-
folderEl,
|
|
121
|
-
sep2,
|
|
122
|
-
lastEl,
|
|
123
|
-
promptEl,
|
|
124
|
-
actions,
|
|
125
|
-
historyPanel,
|
|
126
|
-
disposables
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
renderElement(element, _index, templateData) {
|
|
130
|
-
templateData.disposables.clear();
|
|
131
|
-
const {
|
|
132
|
-
automation,
|
|
133
|
-
runs,
|
|
134
|
-
expanded,
|
|
135
|
-
inFlight
|
|
136
|
-
} = element;
|
|
137
|
-
templateData.nameTextEl.textContent = automation.name;
|
|
138
|
-
templateData.row.classList.toggle("automations-row-disabled", !automation.enabled);
|
|
139
|
-
templateData.disabledBadge.textContent = !automation.enabled ? ( localize(5950, "Disabled")) : "";
|
|
140
|
-
templateData.disabledBadge.style.display = !automation.enabled ? "" : "none";
|
|
141
|
-
templateData.scheduleEl.textContent = formatSchedule(automation);
|
|
142
|
-
templateData.sep1.textContent = "·";
|
|
143
|
-
templateData.nextEl.textContent = formatNextRun(automation);
|
|
144
|
-
templateData.sepFolder.textContent = "·";
|
|
145
|
-
const folderLabel = this.widget.formatFolderLabel(automation.folderUri);
|
|
146
|
-
templateData.folderEl.textContent = ( localize(5951, "in {0}", folderLabel));
|
|
147
|
-
templateData.folderEl.title = ( automation.folderUri.toString());
|
|
148
|
-
if (automation.lastRunAt) {
|
|
149
|
-
templateData.sep2.textContent = "·";
|
|
150
|
-
templateData.sep2.style.display = "";
|
|
151
|
-
templateData.lastEl.textContent = ( localize(5952, "Last run {0}", formatRelativeTimeOrIso(automation.lastRunAt)));
|
|
152
|
-
templateData.lastEl.style.display = "";
|
|
153
|
-
} else {
|
|
154
|
-
templateData.sep2.style.display = "none";
|
|
155
|
-
templateData.lastEl.style.display = "none";
|
|
156
|
-
}
|
|
157
|
-
templateData.promptEl.textContent = truncate(automation.prompt, 160);
|
|
158
|
-
templateData.promptEl.title = automation.prompt;
|
|
159
|
-
templateData.disposables.add(addDisposableListener(templateData.row, "click", e => {
|
|
160
|
-
if (isAncestor(e.target, templateData.actions)) {
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
this.widget.toggleExpanded(automation.id);
|
|
164
|
-
}));
|
|
165
|
-
clearNode(templateData.actions);
|
|
166
|
-
templateData.disposables.add(addDisposableListener(templateData.actions, "click", e => {
|
|
167
|
-
e.stopPropagation();
|
|
168
|
-
}));
|
|
169
|
-
this.renderActions(templateData, automation, expanded, inFlight);
|
|
170
|
-
clearNode(templateData.historyPanel);
|
|
171
|
-
templateData.historyPanel.id = `automation-history-${automation.id}`;
|
|
172
|
-
if (expanded) {
|
|
173
|
-
this.renderHistoryPanel(templateData, automation, runs);
|
|
174
|
-
}
|
|
175
|
-
templateData.historyPanel.style.display = expanded ? "" : "none";
|
|
176
|
-
}
|
|
177
|
-
renderActions(templateData, automation, expanded, inFlight) {
|
|
178
|
-
const {
|
|
179
|
-
actions,
|
|
180
|
-
disposables
|
|
181
|
-
} = templateData;
|
|
182
|
-
const runBtn = this.createIconButton(actions, Codicon.play, ( localize(5953, "Run now")), inFlight, disposables);
|
|
183
|
-
disposables.add(addStandardDisposableListener(runBtn, "click", () => {
|
|
184
|
-
void this.widget.runNow(automation);
|
|
185
|
-
}));
|
|
186
|
-
const toggleIcon = automation.enabled ? Codicon.eye : Codicon.eyeClosed;
|
|
187
|
-
const toggleTooltip = automation.enabled ? ( localize(5954, "Disable")) : ( localize(5955, "Enable"));
|
|
188
|
-
const toggleBtn = this.createIconButton(actions, toggleIcon, toggleTooltip, false, disposables);
|
|
189
|
-
disposables.add(addStandardDisposableListener(toggleBtn, "click", () => {
|
|
190
|
-
void this.widget.toggleEnabled(automation);
|
|
191
|
-
}));
|
|
192
|
-
const editBtn = this.createIconButton(actions, Codicon.edit, ( localize(5956, "Edit")), false, disposables);
|
|
193
|
-
disposables.add(addStandardDisposableListener(editBtn, "click", () => {
|
|
194
|
-
void this.widget.openEditDialog(automation);
|
|
195
|
-
}));
|
|
196
|
-
const deleteBtn = this.createIconButton(actions, Codicon.trash, ( localize(5957, "Delete")), false, disposables);
|
|
197
|
-
disposables.add(addStandardDisposableListener(deleteBtn, "click", () => {
|
|
198
|
-
void this.widget.deleteAutomation(automation);
|
|
199
|
-
}));
|
|
200
|
-
const histIcon = expanded ? Codicon.chevronDown : Codicon.chevronRight;
|
|
201
|
-
const histTooltip = expanded ? ( localize(5958, "Hide history")) : ( localize(5959, "Show history"));
|
|
202
|
-
const histBtn = this.createIconButton(actions, histIcon, histTooltip, false, disposables);
|
|
203
|
-
histBtn.setAttribute("aria-expanded", expanded ? "true" : "false");
|
|
204
|
-
histBtn.setAttribute("aria-controls", `automation-history-${automation.id}`);
|
|
205
|
-
disposables.add(addStandardDisposableListener(histBtn, "click", () => {
|
|
206
|
-
this.widget.toggleExpanded(automation.id);
|
|
207
|
-
}));
|
|
208
|
-
}
|
|
209
|
-
renderHistoryPanel(templateData, automation, runs) {
|
|
210
|
-
const panel = templateData.historyPanel;
|
|
211
|
-
panel.setAttribute("role", "region");
|
|
212
|
-
panel.setAttribute("aria-label", ( localize(5960, "Run history for {0}", automation.name)));
|
|
213
|
-
if (runs.length === 0) {
|
|
214
|
-
const empty = append(panel, $(".automations-history-empty"));
|
|
215
|
-
empty.textContent = ( localize(5961, "No runs yet."));
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const heading = append(panel, $("h4.automations-history-heading"));
|
|
219
|
-
heading.textContent = ( localize(5962, "Run history"));
|
|
220
|
-
const runsList = append(panel, $("ul.automations-history-list"));
|
|
221
|
-
const visibleRuns = runs.slice(0, MAX_VISIBLE_RUNS);
|
|
222
|
-
for (const run of visibleRuns) {
|
|
223
|
-
this.renderRunRow(runsList, run, templateData.disposables);
|
|
224
|
-
}
|
|
225
|
-
if (runs.length > MAX_VISIBLE_RUNS) {
|
|
226
|
-
const more = append(panel, $(".automations-history-more"));
|
|
227
|
-
more.textContent = ( localize(5963, "{0} more run(s) not shown.", runs.length - visibleRuns.length));
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
renderRunRow(container, run, disposables) {
|
|
231
|
-
const li = append(container, $("li.automations-history-row", {
|
|
232
|
-
"data-run-id": run.id,
|
|
233
|
-
"data-run-status": run.status
|
|
234
|
-
}));
|
|
235
|
-
const statusIcon = append(li, $("span.automations-history-status.codicon"));
|
|
236
|
-
const {
|
|
237
|
-
iconId,
|
|
238
|
-
spin
|
|
239
|
-
} = runStatusIcon(run.status);
|
|
240
|
-
statusIcon.classList.add(`codicon-${iconId}`);
|
|
241
|
-
if (spin) {
|
|
242
|
-
statusIcon.classList.add("codicon-modifier-spin");
|
|
243
|
-
}
|
|
244
|
-
statusIcon.setAttribute("aria-hidden", "true");
|
|
245
|
-
const text = append(li, $(".automations-history-row-text"));
|
|
246
|
-
const first = append(text, $(".automations-history-row-first"));
|
|
247
|
-
const statusLabel = append(first, $("span.automations-history-row-status"));
|
|
248
|
-
statusLabel.textContent = runStatusLabel(run.status);
|
|
249
|
-
const sep = append(first, $("span.automations-history-row-sep"));
|
|
250
|
-
sep.textContent = "·";
|
|
251
|
-
const trig = append(first, $("span.automations-history-row-trigger"));
|
|
252
|
-
trig.textContent = runTriggerLabel(run.trigger);
|
|
253
|
-
const sep2 = append(first, $("span.automations-history-row-sep"));
|
|
254
|
-
sep2.textContent = "·";
|
|
255
|
-
const started = append(first, $("span.automations-history-row-started"));
|
|
256
|
-
started.textContent = ( localize(5964, "Started {0}", formatRelativeTimeOrIso(run.startedAt)));
|
|
257
|
-
const dur = formatRunDuration(run);
|
|
258
|
-
if (dur) {
|
|
259
|
-
const sep3 = append(first, $("span.automations-history-row-sep"));
|
|
260
|
-
sep3.textContent = "·";
|
|
261
|
-
const durEl = append(first, $("span.automations-history-row-duration"));
|
|
262
|
-
durEl.textContent = dur;
|
|
263
|
-
}
|
|
264
|
-
if (run.errorMessage) {
|
|
265
|
-
const err = append(text, $(".automations-history-row-error"));
|
|
266
|
-
err.textContent = run.errorMessage;
|
|
267
|
-
err.setAttribute("role", "status");
|
|
268
|
-
err.setAttribute("aria-live", "polite");
|
|
269
|
-
}
|
|
270
|
-
if (run.sessionResource) {
|
|
271
|
-
const openButton = append(li, $("span.automations-history-row-open.codicon.codicon-link-external"));
|
|
272
|
-
openButton.setAttribute("role", "button");
|
|
273
|
-
openButton.setAttribute("tabindex", "0");
|
|
274
|
-
openButton.setAttribute("aria-label", ( localize(5965, "Open session")));
|
|
275
|
-
disposables.add(
|
|
276
|
-
this.hoverService.setupManagedHover(getDefaultHoverDelegate("element"), openButton, ( localize(5965, "Open session")))
|
|
277
|
-
);
|
|
278
|
-
const openSession$1 = e => {
|
|
279
|
-
e.stopPropagation();
|
|
280
|
-
const sessionResource = ( URI.parse(run.sessionResource));
|
|
281
|
-
this.logService.debug(`[AutomationsListWidget] Opening session: ${( sessionResource.toString())}`);
|
|
282
|
-
const activeEditor = this.editorService.activeEditor;
|
|
283
|
-
const activeGroupId = this.editorGroupsService.activeGroup.id;
|
|
284
|
-
const agentSession = this.agentSessionsService.getSession(sessionResource);
|
|
285
|
-
if (!agentSession) {
|
|
286
|
-
this.logService.warn(`[AutomationsListWidget] Session not found for ${( sessionResource.toString())}`);
|
|
287
|
-
this.notificationService.error(( localize(5966, "Failed to open automation session")));
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
this.instantiationService.invokeFunction(openSession, agentSession).then(() => {
|
|
291
|
-
if (activeEditor) {
|
|
292
|
-
this.editorService.closeEditor({
|
|
293
|
-
editor: activeEditor,
|
|
294
|
-
groupId: activeGroupId
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
}).catch(err => {
|
|
298
|
-
this.logService.error(`[AutomationsListWidget] openSession failed for ${( sessionResource.toString())}`, err);
|
|
299
|
-
this.notificationService.error(( localize(5966, "Failed to open automation session")));
|
|
300
|
-
});
|
|
301
|
-
};
|
|
302
|
-
disposables.add(addDisposableListener(openButton, "click", openSession$1));
|
|
303
|
-
disposables.add(addDisposableListener(openButton, "keydown", e => {
|
|
304
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
305
|
-
e.preventDefault();
|
|
306
|
-
openSession$1(e);
|
|
307
|
-
}
|
|
308
|
-
}));
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
createIconButton(container, icon, tooltip, disabled, disposables) {
|
|
312
|
-
const button = append(container, $("button.automations-row-action-button", {
|
|
313
|
-
type: "button",
|
|
314
|
-
"aria-label": tooltip,
|
|
315
|
-
tabindex: "0"
|
|
316
|
-
}));
|
|
317
|
-
button.classList.add(...ThemeIcon.asClassNameArray(icon));
|
|
318
|
-
button.disabled = disabled;
|
|
319
|
-
disposables.add(
|
|
320
|
-
this.hoverService.setupManagedHover(getDefaultHoverDelegate("element"), button, tooltip)
|
|
321
|
-
);
|
|
322
|
-
return button;
|
|
323
|
-
}
|
|
324
|
-
disposeTemplate(templateData) {
|
|
325
|
-
templateData.disposables.dispose();
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
let AutomationsListWidget = class AutomationsListWidget extends Disposable {
|
|
329
|
-
constructor(
|
|
330
|
-
automationService,
|
|
331
|
-
automationRunner,
|
|
332
|
-
dialogService,
|
|
333
|
-
automationDialogService,
|
|
334
|
-
hoverService,
|
|
335
|
-
workspaceContextService,
|
|
336
|
-
logService,
|
|
337
|
-
configurationService,
|
|
338
|
-
instantiationService,
|
|
339
|
-
notificationService,
|
|
340
|
-
editorService,
|
|
341
|
-
editorGroupsService,
|
|
342
|
-
agentSessionsService
|
|
343
|
-
) {
|
|
344
|
-
super();
|
|
345
|
-
this.automationService = automationService;
|
|
346
|
-
this.automationRunner = automationRunner;
|
|
347
|
-
this.dialogService = dialogService;
|
|
348
|
-
this.automationDialogService = automationDialogService;
|
|
349
|
-
this.hoverService = hoverService;
|
|
350
|
-
this.workspaceContextService = workspaceContextService;
|
|
351
|
-
this.logService = logService;
|
|
352
|
-
this.configurationService = configurationService;
|
|
353
|
-
this.instantiationService = instantiationService;
|
|
354
|
-
this.notificationService = notificationService;
|
|
355
|
-
this.editorService = editorService;
|
|
356
|
-
this.editorGroupsService = editorGroupsService;
|
|
357
|
-
this.agentSessionsService = agentSessionsService;
|
|
358
|
-
this._onDidChangeItemCount = this._register(( new Emitter()));
|
|
359
|
-
this.onDidChangeItemCount = this._onDidChangeItemCount.event;
|
|
360
|
-
this.newButtonHover = this._register(( new MutableDisposable()));
|
|
361
|
-
this.newEmptyStateButtonHover = this._register(( new MutableDisposable()));
|
|
362
|
-
this._emptyStateStore = this._register(( new DisposableStore()));
|
|
363
|
-
this.runInFlight = ( new Set());
|
|
364
|
-
this.expandedRows = ( new Set());
|
|
365
|
-
this.displayEntries = [];
|
|
366
|
-
this.lastHeight = 0;
|
|
367
|
-
this.lastWidth = 0;
|
|
368
|
-
this._layoutDeferred = false;
|
|
369
|
-
this._layoutRAF = this._register(( new MutableDisposable()));
|
|
370
|
-
this.element = $(".automations-list-widget");
|
|
371
|
-
this.headerEl = append(this.element, $(".automations-header"));
|
|
372
|
-
this.emptyContainer = append(this.element, $(".automations-empty-state"));
|
|
373
|
-
this.emptyContainer.style.display = "none";
|
|
374
|
-
this.listContainer = append(this.element, $(".automations-list"));
|
|
375
|
-
this.renderHeader();
|
|
376
|
-
this.createList();
|
|
377
|
-
this._register(autorun(reader => {
|
|
378
|
-
const items = this.automationService.automations.read(reader);
|
|
379
|
-
this.automationService.runs.read(reader);
|
|
380
|
-
this.updateList(items);
|
|
381
|
-
this._onDidChangeItemCount.fire(items.length);
|
|
382
|
-
}));
|
|
383
|
-
}
|
|
384
|
-
renderHeader() {
|
|
385
|
-
const titleRow = append(this.headerEl, $(".automations-header-row"));
|
|
386
|
-
const titleEl = append(titleRow, $("h2.automations-header-title"));
|
|
387
|
-
titleEl.textContent = ( localize(5967, "Automations"));
|
|
388
|
-
const subtitleEl = append(this.headerEl, $("p.automations-header-subtitle"));
|
|
389
|
-
subtitleEl.textContent = ( localize(5968, "Schedule agent sessions to run on a cadence you choose."));
|
|
390
|
-
const newButton = this._register(( new Button(titleRow, {
|
|
391
|
-
...defaultButtonStyles,
|
|
392
|
-
title: ( localize(5969, "New automation"))
|
|
393
|
-
})));
|
|
394
|
-
newButton.label = ( localize(5969, "New automation"));
|
|
395
|
-
newButton.element.classList.add("automations-new-button");
|
|
396
|
-
this._register(newButton.onDidClick(() => this.openCreateDialog()));
|
|
397
|
-
this.newButtonHover.value = this.hoverService.setupManagedHover(getDefaultHoverDelegate("element"), newButton.element, ( localize(5970, "Create a new automation")));
|
|
398
|
-
}
|
|
399
|
-
createList() {
|
|
400
|
-
const delegate = ( new AutomationItemDelegate());
|
|
401
|
-
const renderer = ( new AutomationItemRenderer(
|
|
402
|
-
this,
|
|
403
|
-
this.hoverService,
|
|
404
|
-
this.notificationService,
|
|
405
|
-
this.editorService,
|
|
406
|
-
this.editorGroupsService,
|
|
407
|
-
this.logService,
|
|
408
|
-
this.agentSessionsService,
|
|
409
|
-
this.instantiationService
|
|
410
|
-
));
|
|
411
|
-
this.list = this._register(this.instantiationService.createInstance(
|
|
412
|
-
WorkbenchList,
|
|
413
|
-
"AutomationsManagementList",
|
|
414
|
-
this.listContainer,
|
|
415
|
-
delegate,
|
|
416
|
-
[renderer],
|
|
417
|
-
{
|
|
418
|
-
multipleSelectionSupport: false,
|
|
419
|
-
setRowLineHeight: false,
|
|
420
|
-
supportDynamicHeights: true,
|
|
421
|
-
horizontalScrolling: false,
|
|
422
|
-
accessibilityProvider: {
|
|
423
|
-
getAriaLabel: element => {
|
|
424
|
-
const a = element.automation;
|
|
425
|
-
return a.enabled ? ( localize(5971, "{0}, {1}", a.name, formatSchedule(a))) : ( localize(5972, "{0}, disabled", a.name));
|
|
426
|
-
},
|
|
427
|
-
getWidgetAriaLabel() {
|
|
428
|
-
return localize(5973, "Automations");
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
identityProvider: {
|
|
432
|
-
getId(element) {
|
|
433
|
-
return element.automation.id;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
));
|
|
438
|
-
this._register(this.list.onDidChangeSelection(() => {
|
|
439
|
-
if (this.list.getSelection().length > 0) {
|
|
440
|
-
this.list.setSelection([]);
|
|
441
|
-
}
|
|
442
|
-
}));
|
|
443
|
-
}
|
|
444
|
-
updateList(items) {
|
|
445
|
-
if (items.length === 0) {
|
|
446
|
-
this.element.classList.add("automations-empty");
|
|
447
|
-
this.emptyContainer.style.display = "";
|
|
448
|
-
this.listContainer.style.display = "none";
|
|
449
|
-
this.renderEmptyState();
|
|
450
|
-
this.displayEntries = [];
|
|
451
|
-
this.list.splice(0, this.list.length, []);
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
this.element.classList.remove("automations-empty");
|
|
455
|
-
this.emptyContainer.style.display = "none";
|
|
456
|
-
this.listContainer.style.display = "";
|
|
457
|
-
this.newEmptyStateButtonHover.clear();
|
|
458
|
-
this.displayEntries = ( items.map(automation => ({
|
|
459
|
-
type: "automation-item",
|
|
460
|
-
automation,
|
|
461
|
-
runs: this.automationService.runsFor(automation.id).get(),
|
|
462
|
-
expanded: ( this.expandedRows.has(automation.id)),
|
|
463
|
-
inFlight: ( this.runInFlight.has(automation.id))
|
|
464
|
-
})));
|
|
465
|
-
this.list.splice(0, this.list.length, this.displayEntries);
|
|
466
|
-
}
|
|
467
|
-
renderEmptyState() {
|
|
468
|
-
this._emptyStateStore.clear();
|
|
469
|
-
clearNode(this.emptyContainer);
|
|
470
|
-
this.emptyContainer.setAttribute("role", "status");
|
|
471
|
-
const title = append(this.emptyContainer, $("h3.automations-empty-title"));
|
|
472
|
-
title.textContent = ( localize(5974, "No automations yet"));
|
|
473
|
-
const message = append(this.emptyContainer, $("p.automations-empty-message"));
|
|
474
|
-
message.textContent = ( localize(
|
|
475
|
-
5975,
|
|
476
|
-
"Create an automation to schedule an agent session to run on a cadence you choose."
|
|
477
|
-
));
|
|
478
|
-
const ctaButton = this._emptyStateStore.add(( new Button(this.emptyContainer, {
|
|
479
|
-
...defaultButtonStyles
|
|
480
|
-
})));
|
|
481
|
-
ctaButton.label = ( localize(5976, "Create automation"));
|
|
482
|
-
ctaButton.element.classList.add("automations-empty-cta");
|
|
483
|
-
this._emptyStateStore.add(ctaButton.onDidClick(() => this.openCreateDialog()));
|
|
484
|
-
this.newEmptyStateButtonHover.value = this.hoverService.setupManagedHover(getDefaultHoverDelegate("element"), ctaButton.element, ( localize(5970, "Create a new automation")));
|
|
485
|
-
}
|
|
486
|
-
toggleExpanded(automationId) {
|
|
487
|
-
if (( this.expandedRows.has(automationId))) {
|
|
488
|
-
this.expandedRows.delete(automationId);
|
|
489
|
-
} else {
|
|
490
|
-
this.expandedRows.add(automationId);
|
|
491
|
-
}
|
|
492
|
-
this.updateList(this.automationService.automations.get());
|
|
493
|
-
}
|
|
494
|
-
async runNow(automation) {
|
|
495
|
-
if (!this._isEnabled()) {
|
|
496
|
-
await this._notifyDisabled();
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
if (( this.runInFlight.has(automation.id))) {
|
|
500
|
-
return;
|
|
501
|
-
}
|
|
502
|
-
this.runInFlight.add(automation.id);
|
|
503
|
-
this.updateList(this.automationService.automations.get());
|
|
504
|
-
const previousRunId = this.automationService.runsFor(automation.id).get()[0]?.id;
|
|
505
|
-
try {
|
|
506
|
-
await this.automationRunner.runOnce(automation, "manual", 0, CancellationToken.None);
|
|
507
|
-
const latestRun = this.automationService.runsFor(automation.id).get()[0];
|
|
508
|
-
if (latestRun && latestRun.id !== previousRunId && latestRun.status !== "failed") {
|
|
509
|
-
status(( localize(5977, "Started automation {0}", automation.name)));
|
|
510
|
-
}
|
|
511
|
-
} catch (err) {
|
|
512
|
-
this.logService.error("[Automations] runNow failed unexpectedly", err);
|
|
513
|
-
} finally {
|
|
514
|
-
this.runInFlight.delete(automation.id);
|
|
515
|
-
this.updateList(this.automationService.automations.get());
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
async toggleEnabled(automation) {
|
|
519
|
-
if (!this._isEnabled()) {
|
|
520
|
-
await this._notifyDisabled();
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
try {
|
|
524
|
-
await this.automationService.updateAutomation(automation.id, {
|
|
525
|
-
enabled: !automation.enabled
|
|
526
|
-
});
|
|
527
|
-
status(automation.enabled ? ( localize(5978, "Disabled automation {0}", automation.name)) : ( localize(5979, "Enabled automation {0}", automation.name)));
|
|
528
|
-
} catch (err) {
|
|
529
|
-
this.logService.error("[Automations] Failed to toggle automation", err);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
async deleteAutomation(automation) {
|
|
533
|
-
if (!this._isEnabled()) {
|
|
534
|
-
await this._notifyDisabled();
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
const result = await this.dialogService.confirm({
|
|
538
|
-
type: "warning",
|
|
539
|
-
message: ( localize(5980, "Delete automation “{0}”?", automation.name)),
|
|
540
|
-
detail: ( localize(5981, "Runs already in flight will continue. This cannot be undone.")),
|
|
541
|
-
primaryButton: ( localize(5982, "Delete"))
|
|
542
|
-
});
|
|
543
|
-
if (!result.confirmed) {
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
if (!this._isEnabled()) {
|
|
547
|
-
await this._notifyDisabled();
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
try {
|
|
551
|
-
await this.automationService.deleteAutomation(automation.id);
|
|
552
|
-
status(( localize(5983, "Deleted automation {0}", automation.name)));
|
|
553
|
-
} catch (err) {
|
|
554
|
-
this.logService.error("[Automations] Failed to delete automation", err);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
async openEditDialog(automation) {
|
|
558
|
-
if (!this._isEnabled()) {
|
|
559
|
-
await this._notifyDisabled();
|
|
560
|
-
return;
|
|
561
|
-
}
|
|
562
|
-
const result = await this.automationDialogService.showAutomationDialog({
|
|
563
|
-
existing: automation
|
|
564
|
-
});
|
|
565
|
-
if (!result || result.kind !== "update") {
|
|
566
|
-
return;
|
|
567
|
-
}
|
|
568
|
-
if (!this._isEnabled()) {
|
|
569
|
-
await this._notifyDisabled();
|
|
570
|
-
return;
|
|
571
|
-
}
|
|
572
|
-
try {
|
|
573
|
-
await this.automationService.updateAutomation(result.id, result.value);
|
|
574
|
-
status(( localize(5984, "Updated automation {0}", automation.name)));
|
|
575
|
-
} catch (err) {
|
|
576
|
-
this.logService.error("[Automations] Failed to update automation", err);
|
|
577
|
-
await this.dialogService.error(( localize(5985, "Failed to update automation.")), err instanceof Error ? err.message : String(err));
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
formatFolderLabel(folderUri) {
|
|
581
|
-
const folders = this.workspaceContextService.getWorkspace().folders;
|
|
582
|
-
const match = folders.find(f => isEqual(f.uri, folderUri));
|
|
583
|
-
if (match) {
|
|
584
|
-
return match.name || ( match.uri.toString());
|
|
585
|
-
}
|
|
586
|
-
const segments = folderUri.path.split("/").filter(s => s.length > 0);
|
|
587
|
-
return segments[segments.length - 1] ?? ( folderUri.toString());
|
|
588
|
-
}
|
|
589
|
-
_isEnabled() {
|
|
590
|
-
return this.configurationService.getValue(CHAT_AUTOMATIONS_ENABLED_SETTING) === true;
|
|
591
|
-
}
|
|
592
|
-
async _notifyDisabled() {
|
|
593
|
-
await this.dialogService.info(( localize(5986, "Automations are disabled.")), ( localize(5987, "Enable “{0}” to make changes.", CHAT_AUTOMATIONS_ENABLED_SETTING)));
|
|
594
|
-
}
|
|
595
|
-
async openCreateDialog() {
|
|
596
|
-
if (!this._isEnabled()) {
|
|
597
|
-
await this._notifyDisabled();
|
|
598
|
-
return;
|
|
599
|
-
}
|
|
600
|
-
const result = await this.automationDialogService.showAutomationDialog({});
|
|
601
|
-
if (!result || result.kind !== "create") {
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
if (!this._isEnabled()) {
|
|
605
|
-
await this._notifyDisabled();
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
try {
|
|
609
|
-
const created = await this.automationService.createAutomation(result.value);
|
|
610
|
-
status(( localize(5988, "Created automation {0}", created.name)));
|
|
611
|
-
} catch (err) {
|
|
612
|
-
this.logService.error("[Automations] Failed to create automation", err);
|
|
613
|
-
await this.dialogService.error(( localize(5989, "Failed to create automation.")), err instanceof Error ? err.message : String(err));
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
layout(height, width) {
|
|
617
|
-
this.lastHeight = height;
|
|
618
|
-
this.lastWidth = width;
|
|
619
|
-
this.element.style.height = `${height}px`;
|
|
620
|
-
const headerHeight = this.headerEl.offsetHeight;
|
|
621
|
-
if (headerHeight === 0 && !this._layoutDeferred) {
|
|
622
|
-
this._layoutDeferred = true;
|
|
623
|
-
this._layoutRAF.value = scheduleAtNextAnimationFrame(getWindow(this.element), () => {
|
|
624
|
-
this._layoutDeferred = false;
|
|
625
|
-
this.layout(this.lastHeight, this.lastWidth);
|
|
626
|
-
});
|
|
627
|
-
return;
|
|
628
|
-
}
|
|
629
|
-
const listHeight = Math.max(0, height - headerHeight);
|
|
630
|
-
this.listContainer.style.height = `${listHeight}px`;
|
|
631
|
-
this.list.layout(listHeight, width);
|
|
632
|
-
}
|
|
633
|
-
fireItemCount() {
|
|
634
|
-
this._onDidChangeItemCount.fire(this.automationService.automations.get().length);
|
|
635
|
-
}
|
|
636
|
-
get itemCount() {
|
|
637
|
-
return this.list.length;
|
|
638
|
-
}
|
|
639
|
-
getDisplayEntriesForTest() {
|
|
640
|
-
return this.displayEntries;
|
|
641
|
-
}
|
|
642
|
-
focus() {
|
|
643
|
-
if (this.list.length > 0) {
|
|
644
|
-
this.list.domFocus();
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
AutomationsListWidget = ( __decorate([( __param(0, IAutomationService)), ( __param(1, IAutomationRunner)), ( __param(2, IDialogService)), ( __param(3, IAutomationDialogService)), ( __param(4, IHoverService)), ( __param(5, IWorkspaceContextService)), ( __param(6, ILogService)), ( __param(7, IConfigurationService)), ( __param(8, IInstantiationService)), ( __param(9, INotificationService)), ( __param(10, IEditorService)), ( __param(11, IEditorGroupsService)), ( __param(12, IAgentSessionsService))], AutomationsListWidget));
|
|
649
|
-
function formatSchedule(a) {
|
|
650
|
-
switch (a.schedule.interval) {
|
|
651
|
-
case "manual":
|
|
652
|
-
return localize(5990, "Manual");
|
|
653
|
-
case "hourly":
|
|
654
|
-
return localize(5991, "Hourly");
|
|
655
|
-
case "daily":
|
|
656
|
-
return localize(
|
|
657
|
-
5992,
|
|
658
|
-
"Daily at {0}",
|
|
659
|
-
formatHourMinute(a.schedule.scheduleHour, a.schedule.scheduleMinute)
|
|
660
|
-
);
|
|
661
|
-
case "weekly":
|
|
662
|
-
{
|
|
663
|
-
const day = dayName(a.schedule.scheduleDay);
|
|
664
|
-
return localize(
|
|
665
|
-
5993,
|
|
666
|
-
"Weekly on {0} at {1}",
|
|
667
|
-
day,
|
|
668
|
-
formatHourMinute(a.schedule.scheduleHour, a.schedule.scheduleMinute)
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
function formatHourMinute(hour, minute) {
|
|
674
|
-
const date = ( new Date());
|
|
675
|
-
date.setHours(
|
|
676
|
-
Math.max(0, Math.min(23, hour | 0)),
|
|
677
|
-
Math.max(0, Math.min(59, minute | 0)),
|
|
678
|
-
0,
|
|
679
|
-
0
|
|
680
|
-
);
|
|
681
|
-
return date.toLocaleTimeString(undefined, {
|
|
682
|
-
hour: "numeric",
|
|
683
|
-
minute: "2-digit"
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
function dayName(day) {
|
|
687
|
-
const idx = ((day % 7) + 7) % 7;
|
|
688
|
-
return DAYS_OF_WEEK[idx];
|
|
689
|
-
}
|
|
690
|
-
function formatNextRun(a) {
|
|
691
|
-
if (a.schedule.interval === "manual" || !a.nextRunAt) {
|
|
692
|
-
return localize(5994, "No scheduled run");
|
|
693
|
-
}
|
|
694
|
-
return localize(5995, "Next run {0}", formatRelativeTimeOrIso(a.nextRunAt));
|
|
695
|
-
}
|
|
696
|
-
function formatRelativeTimeOrIso(iso) {
|
|
697
|
-
const t = Date.parse(iso);
|
|
698
|
-
if (Number.isNaN(t)) {
|
|
699
|
-
return iso;
|
|
700
|
-
}
|
|
701
|
-
const date = ( new Date(t));
|
|
702
|
-
const rel = fromNow(date, true);
|
|
703
|
-
const absolute = date.toLocaleString();
|
|
704
|
-
return `${rel} (${absolute})`;
|
|
705
|
-
}
|
|
706
|
-
function truncate(s, max) {
|
|
707
|
-
const single = s.replace(/\s+/g, " ").trim();
|
|
708
|
-
if (single.length <= max) {
|
|
709
|
-
return single;
|
|
710
|
-
}
|
|
711
|
-
return single.slice(0, Math.max(0, max - 1)) + "…";
|
|
712
|
-
}
|
|
713
|
-
function runStatusIcon(status) {
|
|
714
|
-
switch (status) {
|
|
715
|
-
case "pending":
|
|
716
|
-
return {
|
|
717
|
-
iconId: "circle-outline",
|
|
718
|
-
spin: false
|
|
719
|
-
};
|
|
720
|
-
case "running":
|
|
721
|
-
return {
|
|
722
|
-
iconId: "sync",
|
|
723
|
-
spin: true
|
|
724
|
-
};
|
|
725
|
-
case "completed":
|
|
726
|
-
return {
|
|
727
|
-
iconId: "check",
|
|
728
|
-
spin: false
|
|
729
|
-
};
|
|
730
|
-
case "failed":
|
|
731
|
-
return {
|
|
732
|
-
iconId: "error",
|
|
733
|
-
spin: false
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
function runStatusLabel(status) {
|
|
738
|
-
switch (status) {
|
|
739
|
-
case "pending":
|
|
740
|
-
return localize(5996, "Pending");
|
|
741
|
-
case "running":
|
|
742
|
-
return localize(5997, "Running");
|
|
743
|
-
case "completed":
|
|
744
|
-
return localize(5998, "Completed");
|
|
745
|
-
case "failed":
|
|
746
|
-
return localize(5999, "Failed");
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
function runTriggerLabel(trigger) {
|
|
750
|
-
switch (trigger) {
|
|
751
|
-
case "schedule":
|
|
752
|
-
return localize(6000, "Scheduled");
|
|
753
|
-
case "manual":
|
|
754
|
-
return localize(6001, "Manual");
|
|
755
|
-
case "catch_up":
|
|
756
|
-
return localize(6002, "Catch-up");
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
function formatRunDuration(run) {
|
|
760
|
-
if (!run.completedAt) {
|
|
761
|
-
return undefined;
|
|
762
|
-
}
|
|
763
|
-
const startMs = Date.parse(run.startedAt);
|
|
764
|
-
const endMs = Date.parse(run.completedAt);
|
|
765
|
-
if (Number.isNaN(startMs) || Number.isNaN(endMs)) {
|
|
766
|
-
return undefined;
|
|
767
|
-
}
|
|
768
|
-
const durationMs = Math.max(0, endMs - startMs);
|
|
769
|
-
return getDurationString(durationMs);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
export { AutomationsListWidget };
|