@codingame/monaco-vscode-chat-service-override 33.0.9 → 34.0.1
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.js +19 -5
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.d.ts +32 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.js +77 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +84 -17
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +235 -190
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +3 -2
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +23 -4
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.js +22 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +107 -8
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +272 -49
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.js +2 -2
- package/vscode/src/vs/platform/agentHost/common/{agentHostPermissionService.d.ts → agentHostResourceService.d.ts} +26 -0
- package/vscode/src/vs/platform/agentHost/common/{agentHostPermissionService.js → agentHostResourceService.js} +11 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +13 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +26 -18
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +119 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +135 -19
- package/vscode/src/vs/platform/agentHost/common/agentService.js +8 -2
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.d.ts +5 -1
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.js +85 -22
- package/vscode/src/vs/platform/agentHost/common/customAgents.d.ts +36 -0
- package/vscode/src/vs/platform/agentHost/common/customAgents.js +12 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +81 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +103 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +86 -10
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +129 -37
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.d.ts +12 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.js +72 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-root/reducer.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-root/reducer.js +30 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/{reducers.js → channels-session/reducer.js} +99 -168
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/reducer.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/reducer.js +110 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/{errors.d.ts → common/errors.d.ts} +13 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/{errors.js → common/errors.js} +1 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.d.ts +17 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.js +9 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +33 -8
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +2 -3
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +36 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +6 -3
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +50 -0
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +138 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +3 -3
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +12 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.js +14 -0
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.d.ts +4 -1
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.js +9 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +21 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +28 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.d.ts +31 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.js +49 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +182 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +784 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.d.ts +18 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.js +305 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +7 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.js +120 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +100 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +60 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +106 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +22 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +21 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +38 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +40 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +23 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationSyncProvider.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationSyncProvider.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +119 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +104 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +177 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.js +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +44 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- 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 +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +38 -28
- 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/aiCustomization/aiCustomizationDebugPanel.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +22 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +8 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +112 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +62 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +149 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +13 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +15 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +78 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +140 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +11 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +59 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +440 -357
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +99 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- 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 +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- 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.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- 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 +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +28 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +187 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +346 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +72 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +144 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +126 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +32 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +40 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +25 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +1 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.d.ts +12 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.js +14 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +56 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +5 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +33 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +31 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +16 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.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 +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +24 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +23 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +22 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +14 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +55 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +47 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +54 -12
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +40 -4
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +30 -8
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +205 -46
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +153 -38
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +70 -37
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +6 -28
- 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 +5 -5
- 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/promptValidator.js +150 -150
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- 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/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/inlineChatSessionServiceImpl.js +4 -4
- 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 +7 -7
- 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 +21 -21
- 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 +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +21 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +122 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +232 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +225 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +143 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +205 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +174 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +260 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +98 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +226 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +392 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +243 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +310 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +177 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +102 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +55 -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.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +31 -9
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +177 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +518 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +297 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +2961 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +63 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +14 -14
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +118 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +223 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +81 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +63 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +349 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +75 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +192 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostResourceService.d.ts +89 -0
- package/vscode/src/vs/workbench/services/agentHost/common/{agentHostPermissionService.js → agentHostResourceService.js} +226 -9
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +0 -30
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +0 -119
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +0 -552
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +0 -83
|
@@ -56,6 +56,9 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
56
56
|
static {
|
|
57
57
|
this.QUICK_SETTINGS_COLLAPSED_KEY = "chatStatusDashboard.quickSettingsCollapsed";
|
|
58
58
|
}
|
|
59
|
+
static {
|
|
60
|
+
this.HIDDEN_ENTRY_IDS = ( new Set(["copilot.otelStatus"]));
|
|
61
|
+
}
|
|
59
62
|
constructor(
|
|
60
63
|
options,
|
|
61
64
|
chatEntitlementService,
|
|
@@ -121,19 +124,20 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
121
124
|
} = this.chatEntitlementService.quotas;
|
|
122
125
|
const hasQuotas = !!(chat || premiumChat);
|
|
123
126
|
const isAnonymousWithSentiment = this.chatEntitlementService.anonymous && this.chatEntitlementService.sentiment.completed;
|
|
124
|
-
const isPooledQuotaDepleted = premiumChat?.unlimited && premiumChat.hasQuota === false
|
|
127
|
+
const isPooledQuotaDepleted = premiumChat?.unlimited && premiumChat.hasQuota === false;
|
|
125
128
|
const hasUsageSection = hasQuotas || isAnonymousWithSentiment;
|
|
126
129
|
const hasVisibleUsageContent = chat?.unlimited === false || premiumChat?.unlimited === false || (!this.options?.compactQuotaLayout && completions?.unlimited === false) || isAnonymousWithSentiment || isPooledQuotaDepleted;
|
|
127
|
-
const contributedEntries = [...this.chatStatusItemService.getEntries()];
|
|
130
|
+
const contributedEntries = [...this.chatStatusItemService.getEntries()].filter(entry => !( ChatStatusDashboard_1.HIDDEN_ENTRY_IDS.has(entry.id)));
|
|
128
131
|
const hasQuickSettingsContent = !this.options?.disableInlineSuggestionsSettings || !this.options?.disableModelSelection || !this.options?.disableProviderOptions || !this.options?.disableCompletionsSnooze;
|
|
129
132
|
let headerAdditionalSpendButton;
|
|
133
|
+
let headerUpgradeButton;
|
|
130
134
|
if (hasUsageSection && !this.options?.compactQuotaLayout) {
|
|
131
135
|
const planName = getChatPlanName(this.chatEntitlementService.entitlement);
|
|
132
136
|
const headerHost = this.options?.titleHeaderContainer ?? this.element;
|
|
133
137
|
const header = this.renderHeader(headerHost, this._store, planName, toAction({
|
|
134
138
|
id: "workbench.action.manageCopilot",
|
|
135
|
-
label: ( localize(
|
|
136
|
-
tooltip: ( localize(
|
|
139
|
+
label: ( localize(6804, "Manage Copilot Settings")),
|
|
140
|
+
tooltip: ( localize(6805, "Manage Copilot Settings")),
|
|
137
141
|
class: ThemeIcon.asClassName(Codicon.settings),
|
|
138
142
|
run: () => this.runCommandAndClose(() => this.openerService.open(( URI.parse(this.defaultAccountService.resolveGitHubUrl(GitHubPaths.copilotSettings)))))
|
|
139
143
|
}));
|
|
@@ -147,7 +151,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
147
151
|
secondary: true
|
|
148
152
|
})));
|
|
149
153
|
headerAdditionalSpendButton.element.classList.add("header-cta-button");
|
|
150
|
-
headerAdditionalSpendButton.label = ( localize(
|
|
154
|
+
headerAdditionalSpendButton.label = ( localize(6806, "Manage Budget"));
|
|
151
155
|
this._store.add(headerAdditionalSpendButton.onDidClick(() => {
|
|
152
156
|
this.telemetryService.publicLog2("workbenchActionExecuted", {
|
|
153
157
|
id: "workbench.action.chat.manageAdditionalSpend",
|
|
@@ -159,18 +163,18 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
159
163
|
header.insertBefore(headerAdditionalSpendButton.element, actionBarElement);
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
|
-
if (showUpgrade
|
|
163
|
-
|
|
166
|
+
if (showUpgrade) {
|
|
167
|
+
headerUpgradeButton = this._store.add(( new Button(header, {
|
|
164
168
|
...defaultButtonStyles,
|
|
165
169
|
hoverDelegate: nativeHoverDelegate
|
|
166
170
|
})));
|
|
167
|
-
|
|
168
|
-
|
|
171
|
+
headerUpgradeButton.element.classList.add("header-cta-button");
|
|
172
|
+
headerUpgradeButton.label = ( localize(6807, "Upgrade"));
|
|
169
173
|
this._store.add(
|
|
170
|
-
|
|
174
|
+
headerUpgradeButton.onDidClick(() => this.runCommandAndClose("workbench.action.chat.upgradePlan"))
|
|
171
175
|
);
|
|
172
176
|
if (actionBarElement) {
|
|
173
|
-
header.insertBefore(
|
|
177
|
+
header.insertBefore(headerUpgradeButton.element, actionBarElement);
|
|
174
178
|
}
|
|
175
179
|
}
|
|
176
180
|
}
|
|
@@ -184,7 +188,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
184
188
|
hoverDelegate: nativeHoverDelegate,
|
|
185
189
|
secondary: true
|
|
186
190
|
})));
|
|
187
|
-
headerAdditionalSpendButton.label = ( localize(
|
|
191
|
+
headerAdditionalSpendButton.label = ( localize(6806, "Manage Budget"));
|
|
188
192
|
this._store.add(headerAdditionalSpendButton.onDidClick(() => {
|
|
189
193
|
this.telemetryService.publicLog2("workbenchActionExecuted", {
|
|
190
194
|
id: "workbench.action.chat.manageAdditionalSpend",
|
|
@@ -193,14 +197,14 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
193
197
|
this.runCommandAndClose(() => this.openerService.open(( URI.parse(this.defaultAccountService.resolveGitHubUrl(GitHubPaths.billingBudgets)))));
|
|
194
198
|
}));
|
|
195
199
|
}
|
|
196
|
-
if (showUpgrade
|
|
197
|
-
|
|
200
|
+
if (showUpgrade) {
|
|
201
|
+
headerUpgradeButton = this._store.add(( new Button(ctaContainer, {
|
|
198
202
|
...defaultButtonStyles,
|
|
199
203
|
hoverDelegate: nativeHoverDelegate
|
|
200
204
|
})));
|
|
201
|
-
|
|
205
|
+
headerUpgradeButton.label = ( localize(6807, "Upgrade"));
|
|
202
206
|
this._store.add(
|
|
203
|
-
|
|
207
|
+
headerUpgradeButton.onDidClick(() => this.runCommandAndClose("workbench.action.chat.upgradePlan"))
|
|
204
208
|
);
|
|
205
209
|
}
|
|
206
210
|
}
|
|
@@ -209,20 +213,26 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
209
213
|
}
|
|
210
214
|
const updatePromise = this.chatEntitlementService.update(token);
|
|
211
215
|
if (hasVisibleUsageContent) {
|
|
212
|
-
this.renderUsageContent(
|
|
216
|
+
this.renderUsageContent(
|
|
217
|
+
this.element,
|
|
218
|
+
token,
|
|
219
|
+
headerAdditionalSpendButton,
|
|
220
|
+
headerUpgradeButton,
|
|
221
|
+
updatePromise
|
|
222
|
+
);
|
|
213
223
|
}
|
|
214
224
|
const hasPremiumUnlimited = !!premiumChat?.unlimited;
|
|
215
225
|
if (hasPremiumUnlimited) {
|
|
216
|
-
const includedTitle = this.chatEntitlementService.quotas.usageBasedBilling ? ( localize(
|
|
226
|
+
const includedTitle = this.chatEntitlementService.quotas.usageBasedBilling ? ( localize(6808, "Credits")) : ( localize(6809, "Premium Requests"));
|
|
217
227
|
const includedContainer = this.element.appendChild($("div.quota-indicator.included"));
|
|
218
228
|
if (this.options?.compactQuotaLayout) {
|
|
219
229
|
const planName = getChatPlanName(this.chatEntitlementService.entitlement);
|
|
220
230
|
includedContainer.classList.add("compact");
|
|
221
231
|
includedContainer.appendChild($("div.quota-title", undefined, planName));
|
|
222
|
-
includedContainer.appendChild($("div.description", undefined, isPooledQuotaDepleted ? ( localize(
|
|
232
|
+
includedContainer.appendChild($("div.description", undefined, isPooledQuotaDepleted ? ( localize(6810, "{0} limit reached.", includedTitle)) : ( localize(6811, "{0} included with your organization's plan.", includedTitle))));
|
|
223
233
|
} else {
|
|
224
234
|
includedContainer.appendChild($("div.quota-title", undefined, includedTitle));
|
|
225
|
-
includedContainer.appendChild($("div.description", undefined, isPooledQuotaDepleted ? ( localize(
|
|
235
|
+
includedContainer.appendChild($("div.description", undefined, isPooledQuotaDepleted ? ( localize(6812, "Organization limit reached.")) : ( localize(6813, "Included with your organization's plan."))));
|
|
226
236
|
}
|
|
227
237
|
}
|
|
228
238
|
if (hasQuickSettingsContent) {
|
|
@@ -234,7 +244,13 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
234
244
|
}
|
|
235
245
|
this.renderSetupSection();
|
|
236
246
|
}
|
|
237
|
-
renderUsageContent(
|
|
247
|
+
renderUsageContent(
|
|
248
|
+
container,
|
|
249
|
+
token,
|
|
250
|
+
headerAdditionalSpendButton,
|
|
251
|
+
headerUpgradeButton,
|
|
252
|
+
updatePromise
|
|
253
|
+
) {
|
|
238
254
|
const {
|
|
239
255
|
chat: chatQuota,
|
|
240
256
|
completions: completionsQuota,
|
|
@@ -246,12 +262,12 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
246
262
|
const planName = compact ? getChatPlanName(this.chatEntitlementService.entitlement) : undefined;
|
|
247
263
|
if (chatQuota || premiumChatQuota || completionsQuota) {
|
|
248
264
|
const resetLabel = resetDate ? (resetDateHasTime ? ( localize(
|
|
249
|
-
|
|
265
|
+
6814,
|
|
250
266
|
"Resets {0} at {1}",
|
|
251
267
|
this.dateFormatter.value.format(( new Date(resetDate))),
|
|
252
268
|
this.timeFormatter.value.format(( new Date(resetDate)))
|
|
253
269
|
)) : ( localize(
|
|
254
|
-
|
|
270
|
+
6815,
|
|
255
271
|
"Resets {0}",
|
|
256
272
|
this.dateFormatter.value.format(( new Date(resetDate)))
|
|
257
273
|
))) : undefined;
|
|
@@ -262,9 +278,12 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
262
278
|
if (headerAdditionalSpendButton) {
|
|
263
279
|
headerAdditionalSpendButton.element.style.display = initialCalloutVisible ? "" : "none";
|
|
264
280
|
}
|
|
281
|
+
if (headerUpgradeButton) {
|
|
282
|
+
headerUpgradeButton.element.style.display = (headerAdditionalSpendButton && initialCalloutVisible) ? "none" : "";
|
|
283
|
+
}
|
|
265
284
|
let chatQuotaIndicator;
|
|
266
285
|
if (chatQuota && !chatQuota.unlimited && (!this.chatEntitlementService.quotas.usageBasedBilling || this.chatEntitlementService.entitlement === ChatEntitlement.Free)) {
|
|
267
|
-
const chatLabel = this.chatEntitlementService.quotas.usageBasedBilling && this.chatEntitlementService.entitlement === ChatEntitlement.Free ? ( localize(
|
|
286
|
+
const chatLabel = this.chatEntitlementService.quotas.usageBasedBilling && this.chatEntitlementService.entitlement === ChatEntitlement.Free ? ( localize(6816, "Credits")) : ( localize(6817, "Chat messages"));
|
|
268
287
|
chatQuotaIndicator = this.createQuotaIndicator(
|
|
269
288
|
container,
|
|
270
289
|
chatQuota,
|
|
@@ -276,7 +295,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
276
295
|
let premiumChatQuotaIndicator;
|
|
277
296
|
if (premiumChatQuota && !premiumChatQuota.unlimited && premiumChatQuota.percentRemaining >= 0) {
|
|
278
297
|
const isUBB = this.chatEntitlementService.quotas.usageBasedBilling;
|
|
279
|
-
const premiumChatLabel = isUBB ? ( localize(
|
|
298
|
+
const premiumChatLabel = isUBB ? ( localize(6816, "Credits")) : this.chatEntitlementService.quotas.additionalUsageEnabled ? ( localize(6818, "Included premium requests")) : ( localize(6819, "Premium requests"));
|
|
280
299
|
const premiumChatResetLabel = isUBB ? this.formatResetAtLabel(premiumChatQuota.resetAt) ?? resetLabel : resetLabel;
|
|
281
300
|
premiumChatQuotaIndicator = this.createQuotaIndicator(
|
|
282
301
|
container,
|
|
@@ -289,7 +308,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
289
308
|
let completionsQuotaIndicator;
|
|
290
309
|
const showCompletions = !compact && completionsQuota && !completionsQuota.unlimited && completionsQuota.percentRemaining >= 0 && (!this.chatEntitlementService.quotas.usageBasedBilling || this.chatEntitlementService.entitlement === ChatEntitlement.Free);
|
|
291
310
|
if (showCompletions) {
|
|
292
|
-
completionsQuotaIndicator = this.createQuotaIndicator(container, completionsQuota, ( localize(
|
|
311
|
+
completionsQuotaIndicator = this.createQuotaIndicator(container, completionsQuota, ( localize(6820, "Inline Suggestions")), resetLabel, compact ? planName : undefined);
|
|
293
312
|
}
|
|
294
313
|
const updateIndicators = () => {
|
|
295
314
|
const {
|
|
@@ -311,7 +330,10 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
311
330
|
} = globalCalloutUpdater();
|
|
312
331
|
if (headerAdditionalSpendButton) {
|
|
313
332
|
headerAdditionalSpendButton.element.style.display = calloutVisible ? "" : "none";
|
|
314
|
-
headerAdditionalSpendButton.label = ( localize(
|
|
333
|
+
headerAdditionalSpendButton.label = ( localize(6806, "Manage Budget"));
|
|
334
|
+
}
|
|
335
|
+
if (headerUpgradeButton) {
|
|
336
|
+
headerUpgradeButton.element.style.display = (headerAdditionalSpendButton && calloutVisible) ? "none" : "";
|
|
315
337
|
}
|
|
316
338
|
};
|
|
317
339
|
(async () => {
|
|
@@ -329,7 +351,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
329
351
|
);
|
|
330
352
|
}
|
|
331
353
|
else if (this.chatEntitlementService.anonymous && this.chatEntitlementService.sentiment.completed) {
|
|
332
|
-
this.createQuotaIndicator(container, ( localize(
|
|
354
|
+
this.createQuotaIndicator(container, ( localize(6821, "Limited")), ( localize(6817, "Chat messages")));
|
|
333
355
|
}
|
|
334
356
|
}
|
|
335
357
|
renderInlineSuggestionsSection(hasContentAbove) {
|
|
@@ -342,10 +364,10 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
342
364
|
const activeLanguageId = this.editorService.activeTextEditorLanguageId;
|
|
343
365
|
const getStatusText = () => {
|
|
344
366
|
if (!this.canUseChat()) {
|
|
345
|
-
return localize(
|
|
367
|
+
return localize(6822, "Disabled");
|
|
346
368
|
}
|
|
347
369
|
const enabled = activeLanguageId ? isCompletionsEnabled(this.configurationService, activeLanguageId) : isCompletionsEnabled(this.configurationService);
|
|
348
|
-
return enabled ? ( localize(
|
|
370
|
+
return enabled ? ( localize(6823, "Enabled")) : ( localize(6822, "Disabled"));
|
|
349
371
|
};
|
|
350
372
|
let disclosureHeader;
|
|
351
373
|
let chevron;
|
|
@@ -356,7 +378,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
356
378
|
disclosureHeader.classList.add("no-border");
|
|
357
379
|
}
|
|
358
380
|
disclosureHeader.setAttribute("aria-expanded", String(!collapsed));
|
|
359
|
-
disclosureHeader.appendChild($("span.collapsible-label", undefined, ( localize(
|
|
381
|
+
disclosureHeader.appendChild($("span.collapsible-label", undefined, ( localize(6824, "Inline Suggestions"))));
|
|
360
382
|
chevron = disclosureHeader.appendChild($("span.collapsible-chevron"));
|
|
361
383
|
chevron.classList.add(
|
|
362
384
|
...ThemeIcon.asClassNameArray(collapsed ? Codicon.chevronRight : Codicon.chevronDown)
|
|
@@ -418,7 +440,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
418
440
|
if (linkDescription) {
|
|
419
441
|
hoverContent.appendText(" ");
|
|
420
442
|
}
|
|
421
|
-
hoverContent.appendMarkdown(`[${( localize(
|
|
443
|
+
hoverContent.appendMarkdown(`[${( localize(6825, "Learn More"))}](${headerLink})`);
|
|
422
444
|
}
|
|
423
445
|
return {
|
|
424
446
|
content: hoverContent
|
|
@@ -428,7 +450,13 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
428
450
|
}));
|
|
429
451
|
}
|
|
430
452
|
const statusEl = header.appendChild($("span.collapsible-status"));
|
|
431
|
-
|
|
453
|
+
const statusDisposables = this._store.add(( new MutableDisposable()));
|
|
454
|
+
const renderStatus = text => {
|
|
455
|
+
const newStore = ( new DisposableStore());
|
|
456
|
+
statusDisposables.value = newStore;
|
|
457
|
+
this.renderTextPlus(statusEl, text, newStore);
|
|
458
|
+
};
|
|
459
|
+
renderStatus(item.description);
|
|
432
460
|
let currentTooltip = item.tooltip;
|
|
433
461
|
if (currentTooltip) {
|
|
434
462
|
this._store.add(this.hoverService.setupDelayedHover(statusEl, () => ({
|
|
@@ -448,7 +476,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
448
476
|
this._store.add(this.chatStatusItemService.onDidChange(e => {
|
|
449
477
|
if (e.entry.id === item.id) {
|
|
450
478
|
statusEl.textContent = "";
|
|
451
|
-
|
|
479
|
+
renderStatus(e.entry.description);
|
|
452
480
|
currentTooltip = e.entry.tooltip;
|
|
453
481
|
headerLink = typeof e.entry.label === "string" ? undefined : e.entry.label.link;
|
|
454
482
|
linkDescription = typeof e.entry.label === "string" ? undefined : e.entry.label.helpText;
|
|
@@ -475,7 +503,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
475
503
|
const newUser = isNewUser(this.chatEntitlementService) && !hasByokModels;
|
|
476
504
|
const anonymousUser = this.chatEntitlementService.anonymous;
|
|
477
505
|
const disabled = this.chatEntitlementService.sentiment.disabled || this.chatEntitlementService.sentiment.untrusted;
|
|
478
|
-
const signedOut = this.chatEntitlementService.entitlement === ChatEntitlement.Unknown
|
|
506
|
+
const signedOut = this.chatEntitlementService.entitlement === ChatEntitlement.Unknown;
|
|
479
507
|
if (!(newUser || signedOut || disabled)) {
|
|
480
508
|
return;
|
|
481
509
|
}
|
|
@@ -484,7 +512,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
484
512
|
let descriptionClass = ".description";
|
|
485
513
|
if (newUser && anonymousUser) {
|
|
486
514
|
descriptionText = ( new MarkdownString(( localize(
|
|
487
|
-
|
|
515
|
+
6826,
|
|
488
516
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
489
517
|
defaultChat.provider.default.name,
|
|
490
518
|
defaultChat.provider.default.name,
|
|
@@ -495,23 +523,23 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
495
523
|
}));
|
|
496
524
|
descriptionClass = `${descriptionClass}.terms`;
|
|
497
525
|
} else if (newUser) {
|
|
498
|
-
descriptionText = ( localize(
|
|
526
|
+
descriptionText = ( localize(6827, "Set up Copilot to use AI features."));
|
|
499
527
|
} else if (anonymousUser) {
|
|
500
|
-
descriptionText = ( localize(
|
|
528
|
+
descriptionText = ( localize(6828, "Sign in to enable more Copilot AI features."));
|
|
501
529
|
} else if (disabled) {
|
|
502
|
-
descriptionText = ( localize(
|
|
530
|
+
descriptionText = ( localize(6829, "Enable Copilot to use AI features."));
|
|
503
531
|
} else {
|
|
504
|
-
descriptionText = ( localize(
|
|
532
|
+
descriptionText = ( localize(6830, "Sign in to use GitHub Copilot AI features."));
|
|
505
533
|
}
|
|
506
534
|
let buttonLabel;
|
|
507
535
|
if (newUser) {
|
|
508
|
-
buttonLabel = ( localize(
|
|
536
|
+
buttonLabel = ( localize(6831, "Use AI Features"));
|
|
509
537
|
} else if (anonymousUser) {
|
|
510
|
-
buttonLabel = ( localize(
|
|
538
|
+
buttonLabel = ( localize(6832, "Enable more AI Features"));
|
|
511
539
|
} else if (disabled) {
|
|
512
|
-
buttonLabel = ( localize(
|
|
540
|
+
buttonLabel = ( localize(6833, "Enable AI Features"));
|
|
513
541
|
} else {
|
|
514
|
-
buttonLabel = ( localize(
|
|
542
|
+
buttonLabel = ( localize(6834, "Sign in to use GitHub Copilot"));
|
|
515
543
|
}
|
|
516
544
|
let commandId;
|
|
517
545
|
if (newUser && anonymousUser) {
|
|
@@ -547,7 +575,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
547
575
|
const currentModel = modelInfo.models.find(m => m.id === modelInfo.currentModelId);
|
|
548
576
|
if (currentModel) {
|
|
549
577
|
const modelContainer = container.appendChild($("div.model-selection"));
|
|
550
|
-
modelContainer.appendChild($("span.model-text", undefined, ( localize(
|
|
578
|
+
modelContainer.appendChild($("span.model-text", undefined, ( localize(6835, "Model"))));
|
|
551
579
|
const selectOptions = ( modelInfo.models.map(m => ({
|
|
552
580
|
text: m.name
|
|
553
581
|
})));
|
|
@@ -558,7 +586,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
558
586
|
this.contextViewService,
|
|
559
587
|
defaultSelectBoxStyles,
|
|
560
588
|
{
|
|
561
|
-
ariaLabel: ( localize(
|
|
589
|
+
ariaLabel: ( localize(6836, "Select Model")),
|
|
562
590
|
optionsAsChildren: true
|
|
563
591
|
}
|
|
564
592
|
)));
|
|
@@ -591,7 +619,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
591
619
|
this.contextViewService,
|
|
592
620
|
defaultSelectBoxStyles,
|
|
593
621
|
{
|
|
594
|
-
ariaLabel: ( localize(
|
|
622
|
+
ariaLabel: ( localize(6837, "Select {0}", option.label)),
|
|
595
623
|
optionsAsChildren: true
|
|
596
624
|
}
|
|
597
625
|
)));
|
|
@@ -610,7 +638,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
610
638
|
}
|
|
611
639
|
if (!this.options?.disableCompletionsSnooze && this.canUseChat()) {
|
|
612
640
|
const snooze = append(container, $("div.snooze-completions"));
|
|
613
|
-
this.createCompletionsSnooze(snooze, ( localize(
|
|
641
|
+
this.createCompletionsSnooze(snooze, ( localize(6838, "Snooze")));
|
|
614
642
|
}
|
|
615
643
|
}
|
|
616
644
|
canUseChat() {
|
|
@@ -667,7 +695,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
667
695
|
}
|
|
668
696
|
const resetDate = ( new Date(resetAt * 1000));
|
|
669
697
|
return localize(
|
|
670
|
-
|
|
698
|
+
6814,
|
|
671
699
|
"Resets {0} at {1}",
|
|
672
700
|
this.dateFormatter.value.format(resetDate),
|
|
673
701
|
this.timeFormatter.value.format(resetDate)
|
|
@@ -685,13 +713,17 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
685
713
|
}
|
|
686
714
|
const quotaPercentage = $("div.quota-percentage", undefined, quotaValue, quotaValueSuffix);
|
|
687
715
|
quotaPercentage.tabIndex = isCompact ? -1 : 0;
|
|
688
|
-
const indicatorElement = $(
|
|
689
|
-
"div.quota-
|
|
716
|
+
const indicatorElement = $("div.quota-indicator", undefined, $(
|
|
717
|
+
"div.quota-title",
|
|
690
718
|
undefined,
|
|
691
|
-
$("
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
719
|
+
$("span", undefined, isCompact ? compactTitle : label),
|
|
720
|
+
...(isCompact ? [] : [resetValue])
|
|
721
|
+
), $(
|
|
722
|
+
"div.quota-details",
|
|
723
|
+
undefined,
|
|
724
|
+
quotaPercentage,
|
|
725
|
+
...(isCompact ? [resetValue] : [])
|
|
726
|
+
), ...(isCompact ? [] : [$("div.quota-bar", undefined, quotaBit)]));
|
|
695
727
|
if (isCompact) {
|
|
696
728
|
indicatorElement.classList.add("compact");
|
|
697
729
|
}
|
|
@@ -705,21 +737,21 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
705
737
|
} else {
|
|
706
738
|
const usedPercentage = Math.max(0, 100 - currentQuota.percentRemaining);
|
|
707
739
|
quotaValueText.textContent = ( localize(
|
|
708
|
-
|
|
740
|
+
6839,
|
|
709
741
|
"{0}%",
|
|
710
742
|
this.quotaPercentageFormatter.value.format(Math.floor(usedPercentage))
|
|
711
743
|
));
|
|
712
|
-
quotaValueSuffix.textContent = isCompact ? ( localize(
|
|
744
|
+
quotaValueSuffix.textContent = isCompact ? ( localize(6840, "{0} used", label)) : ` ${( localize(6841, "used"))}`;
|
|
713
745
|
}
|
|
714
746
|
};
|
|
715
747
|
const showCredits = () => {
|
|
716
748
|
if (typeof currentQuota !== "string" && currentQuota.entitlement) {
|
|
717
749
|
const total = currentQuota.entitlement;
|
|
718
|
-
const used = total * (100 - currentQuota.percentRemaining) / 100;
|
|
750
|
+
const used = currentQuota.quotaRemaining !== undefined ? total - currentQuota.quotaRemaining : total * (100 - currentQuota.percentRemaining) / 100;
|
|
719
751
|
const usedFormatted = this.quotaCreditsFormatter.value.format(used);
|
|
720
752
|
const totalFormatted = this.quotaCreditsFormatter.value.format(total);
|
|
721
|
-
quotaValueText.textContent = ( localize(
|
|
722
|
-
quotaValueSuffix.textContent = isCompact ? ( localize(
|
|
753
|
+
quotaValueText.textContent = ( localize(6842, "{0} / {1}", usedFormatted, totalFormatted));
|
|
754
|
+
quotaValueSuffix.textContent = isCompact ? ( localize(6840, "{0} used", label)) : ` ${( localize(6841, "used"))}`;
|
|
723
755
|
}
|
|
724
756
|
};
|
|
725
757
|
const hoverTarget = isCompact ? quotaValueText : quotaPercentage;
|
|
@@ -779,38 +811,52 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
779
811
|
}
|
|
780
812
|
const maxUsedPercentage = allQuotas.length > 0 ? Math.max(...( allQuotas.map(q => Math.max(0, 100 - q.percentRemaining)))) : 0;
|
|
781
813
|
const isPooledQuotaExhausted = quotas.premiumChat?.unlimited && quotas.premiumChat.hasQuota === false;
|
|
782
|
-
if (
|
|
814
|
+
if (isEnterpriseUser && isPooledQuotaExhausted) {
|
|
783
815
|
quotaCallout.style.display = "";
|
|
784
816
|
quotaCallout.className = "quota-callout info";
|
|
785
817
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
786
|
-
calloutText.textContent =
|
|
787
|
-
|
|
818
|
+
calloutText.textContent = ( localize(
|
|
819
|
+
6843,
|
|
820
|
+
"Your organization or enterprise has exceeded its Copilot budget. Contact your admin to resume usage."
|
|
821
|
+
));
|
|
822
|
+
} else if (maxUsedPercentage >= 100 && additionalUsageEnabled) {
|
|
823
|
+
quotaCallout.style.display = "";
|
|
824
|
+
quotaCallout.className = "quota-callout info";
|
|
825
|
+
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
826
|
+
calloutText.textContent = isEnterpriseUser ? ( localize(
|
|
827
|
+
6844,
|
|
828
|
+
"You've used your included credits. Your organization covers additional usage, so you can keep working."
|
|
829
|
+
)) : isUsageBasedBilling ? ( localize(
|
|
830
|
+
6845,
|
|
788
831
|
"Additional budget is configured. Usage will continue until limits reset."
|
|
789
832
|
)) : ( localize(
|
|
790
|
-
|
|
833
|
+
6846,
|
|
791
834
|
"Premium request budget is configured. Usage will continue until limits reset."
|
|
792
835
|
));
|
|
793
836
|
} else if (maxUsedPercentage >= 75 && maxUsedPercentage < 100 && additionalUsageEnabled) {
|
|
794
837
|
quotaCallout.style.display = "";
|
|
795
838
|
quotaCallout.className = "quota-callout info";
|
|
796
839
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
797
|
-
calloutText.textContent =
|
|
840
|
+
calloutText.textContent = isEnterpriseUser ? ( localize(
|
|
841
|
+
6847,
|
|
842
|
+
"You're approaching your included credits. Your organization covers additional usage, so there's no interruption."
|
|
843
|
+
)) : isUsageBasedBilling ? ( localize(6848, "Once the limit is reached, additional budget will be used.")) : ( localize(6849, "Once the limit is reached, premium request budget will be used."));
|
|
798
844
|
} else if ((maxUsedPercentage >= 100 || isPooledQuotaExhausted) && !additionalUsageEnabled) {
|
|
799
845
|
quotaCallout.style.display = "";
|
|
800
846
|
quotaCallout.className = "quota-callout info";
|
|
801
847
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
802
848
|
calloutText.textContent = isEnterpriseUser ? ( localize(
|
|
803
|
-
|
|
849
|
+
6850,
|
|
804
850
|
"Copilot is paused until the limit resets. Contact your administrator for more information."
|
|
805
|
-
)) : ( localize(
|
|
851
|
+
)) : ( localize(6851, "Copilot is paused until the limit resets."));
|
|
806
852
|
} else if (maxUsedPercentage >= 75 && !additionalUsageEnabled) {
|
|
807
853
|
quotaCallout.style.display = "";
|
|
808
854
|
quotaCallout.className = "quota-callout info";
|
|
809
855
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
810
856
|
calloutText.textContent = isEnterpriseUser ? ( localize(
|
|
811
|
-
|
|
857
|
+
6852,
|
|
812
858
|
"Copilot will pause when the limit is reached. Contact your administrator for more information."
|
|
813
|
-
)) : ( localize(
|
|
859
|
+
)) : ( localize(6853, "Copilot will pause when the limit is reached."));
|
|
814
860
|
} else {
|
|
815
861
|
quotaCallout.style.display = "none";
|
|
816
862
|
}
|
|
@@ -827,23 +873,23 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
827
873
|
const settings = container.appendChild($("div.settings"));
|
|
828
874
|
{
|
|
829
875
|
const globalSetting = append(settings, $("div.setting"));
|
|
830
|
-
this.createInlineSuggestionsSetting(globalSetting, ( localize(
|
|
876
|
+
this.createInlineSuggestionsSetting(globalSetting, ( localize(6854, "Ghost text suggestions")), "*");
|
|
831
877
|
const overriddenHint = globalSetting.appendChild($("span.setting-overridden"));
|
|
832
878
|
const updateOverriddenHint = () => {
|
|
833
879
|
const obj = this.configurationService.getValue(defaultChat.completionsEnablementSetting);
|
|
834
880
|
const hasOverride = modeId && isObject(obj) && typeof obj[modeId] !== "undefined" && Boolean(obj[modeId]) !== Boolean(obj["*"]);
|
|
835
|
-
overriddenHint.textContent = hasOverride ? ( localize(
|
|
881
|
+
overriddenHint.textContent = hasOverride ? ( localize(6855, "(overridden)")) : "";
|
|
836
882
|
};
|
|
837
883
|
updateOverriddenHint();
|
|
838
884
|
if (modeId) {
|
|
839
885
|
const languageSetting = append(settings, $("div.setting"));
|
|
840
886
|
const languageName = this.languageService.getLanguageName(modeId) ?? modeId;
|
|
841
|
-
this.createTriStateLanguageSetting(languageSetting, ( localize(
|
|
887
|
+
this.createTriStateLanguageSetting(languageSetting, ( localize(6856, "Ghost text suggestions for {0}", languageName)), modeId, updateOverriddenHint);
|
|
842
888
|
}
|
|
843
889
|
}
|
|
844
890
|
{
|
|
845
891
|
const setting = append(settings, $("div.setting"));
|
|
846
|
-
this.createNextEditSuggestionsSetting(setting, ( localize(
|
|
892
|
+
this.createNextEditSuggestionsSetting(setting, ( localize(6857, "Next edit suggestions")), this.getCompletionsSettingAccessor(modeId));
|
|
847
893
|
}
|
|
848
894
|
}
|
|
849
895
|
createSetting(container, settingIdsToReEvaluate, label, accessor) {
|
|
@@ -1045,7 +1091,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
1045
1091
|
})));
|
|
1046
1092
|
const cancelAction = toAction({
|
|
1047
1093
|
id: "workbench.action.cancelSnoozeStatusBarLink",
|
|
1048
|
-
label: ( localize(
|
|
1094
|
+
label: ( localize(6858, "Cancel Snooze")),
|
|
1049
1095
|
run: () => this.inlineCompletionsService.cancelSnooze(),
|
|
1050
1096
|
class: ThemeIcon.asClassName(Codicon.stopCircle)
|
|
1051
1097
|
});
|
|
@@ -1054,19 +1100,19 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
1054
1100
|
toolbar.clear();
|
|
1055
1101
|
const timeLeftMs = this.inlineCompletionsService.snoozeTimeLeft;
|
|
1056
1102
|
if (!isEnabled || timeLeftMs <= 0) {
|
|
1057
|
-
timerDisplay.textContent = ( localize(
|
|
1103
|
+
timerDisplay.textContent = ( localize(6859, "Hide suggestions for 5 min"));
|
|
1058
1104
|
timerDisplay.title = "";
|
|
1059
1105
|
button.label = label;
|
|
1060
|
-
button.setTitle(( localize(
|
|
1106
|
+
button.setTitle(( localize(6860, "Hide inline suggestions for 5 min")));
|
|
1061
1107
|
return true;
|
|
1062
1108
|
}
|
|
1063
1109
|
const timeLeftSeconds = Math.ceil(timeLeftMs / 1000);
|
|
1064
1110
|
const minutes = Math.floor(timeLeftSeconds / 60);
|
|
1065
1111
|
const seconds = timeLeftSeconds % 60;
|
|
1066
|
-
timerDisplay.textContent = `${minutes}:${seconds < 10 ? "0" : ""}${seconds} ${( localize(
|
|
1067
|
-
timerDisplay.title = ( localize(
|
|
1068
|
-
button.label = ( localize(
|
|
1069
|
-
button.setTitle(( localize(
|
|
1112
|
+
timerDisplay.textContent = `${minutes}:${seconds < 10 ? "0" : ""}${seconds} ${( localize(6861, "remaining"))}`;
|
|
1113
|
+
timerDisplay.title = ( localize(6862, "Inline suggestions are hidden for the remaining duration"));
|
|
1114
|
+
button.label = ( localize(6863, "+5 min"));
|
|
1115
|
+
button.setTitle(( localize(6864, "Snooze additional 5 min")));
|
|
1070
1116
|
toolbar.push([cancelAction], {
|
|
1071
1117
|
icon: true,
|
|
1072
1118
|
label: false
|
|
@@ -22,6 +22,7 @@ export declare class ChatStatusBarEntry extends Disposable implements IWorkbench
|
|
|
22
22
|
private entry;
|
|
23
23
|
private readonly activeCodeEditorListener;
|
|
24
24
|
private readonly entryAnchor;
|
|
25
|
+
private readonly dashboardTooltip;
|
|
25
26
|
private runningSessionsCount;
|
|
26
27
|
constructor(chatEntitlementService: ChatEntitlementService, instantiationService: IInstantiationService, statusbarService: IStatusbarService, editorService: IEditorService, configurationService: IConfigurationService, completionsService: IInlineCompletionsService, chatSessionsService: IChatSessionsService, contextKeyService: IContextKeyService);
|
|
27
28
|
private update;
|