@codingame/monaco-vscode-chat-service-override 31.0.0 → 32.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 -1
- package/index.js +21 -5
- package/package.json +5 -5
- package/vscode/src/vs/base/common/defaultAccount.d.ts +69 -0
- package/vscode/src/vs/base/common/defaultAccount.js +12 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +91 -22
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +301 -68
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +24 -5
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +89 -16
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +17 -5
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +73 -10
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +32 -6
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +32 -20
- package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.d.ts +37 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.js +15 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +242 -201
- package/vscode/src/vs/platform/agentHost/common/agentService.js +3 -1
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.d.ts +35 -0
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.js +106 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +38 -30
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +2 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +114 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +10 -10
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +52 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +42 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +42 -41
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +6 -6
- package/vscode/src/vs/platform/agentHost/common/transportConstants.d.ts +15 -0
- package/vscode/src/vs/platform/agentHost/common/transportConstants.js +6 -0
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +4 -3
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +4 -3
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +4 -2
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +15 -7
- package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +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 +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +64 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +31 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +18 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +30 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +8 -7
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +27 -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 +21 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +4 -4
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +63 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +3 -3
- 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 +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -48
- 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/localAgentSessionsController.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +99 -39
- 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 +17 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +35 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +347 -326
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +1 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +113 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +37 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +436 -134
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +52 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +73 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +272 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +430 -185
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +44 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +480 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.d.ts +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +1216 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +32 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +26 -19
- 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 +28 -25
- 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 +25 -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.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +68 -33
- 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/media/chatDebug.css +650 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +390 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +18 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -7
- 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 +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +6 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +116 -182
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +61 -41
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +106 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +25 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +629 -425
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +105 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +175 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +9 -2
- 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/defaultModelContribution.js +4 -4
- 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.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +339 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +572 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +167 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +49 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +315 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +45 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +44 -40
- 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/promptFileContributions.js +4 -1
- 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.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +111 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +13 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +14 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +23 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +136 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +72 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +14 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +41 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +30 -12
- 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 +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +108 -45
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +65 -26
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +38 -11
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +165 -16
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +62 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -1
- 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.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +15 -21
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +18 -24
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +203 -180
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +35 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +27 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +14 -49
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +35 -177
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -11
- 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 +13 -13
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +29 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +129 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -6
- 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 +1 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +12 -38
- 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/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +77 -70
- 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/tools/terminalOutputCompressor.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +232 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +83 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.js +243 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +0 -749
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +0 -14
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +0 -17
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +0 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +0 -40
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +0 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +0 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +0 -638
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +0 -363
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +0 -306
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +0 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatStatusWidget.css +0 -57
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -242
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1701
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -191
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -728
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +0 -69
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type StateAction } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
|
|
2
|
+
import { type ProtocolNotification } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
|
|
3
|
+
/**
|
|
4
|
+
* The current protocol version that new code speaks.
|
|
5
|
+
*
|
|
6
|
+
* Formatted as a [SemVer](https://semver.org) `MAJOR.MINOR.PATCH` string.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PROTOCOL_VERSION = "0.1.0";
|
|
9
|
+
/**
|
|
10
|
+
* Compares two `MAJOR.MINOR.PATCH` SemVer strings.
|
|
11
|
+
*
|
|
12
|
+
* Returns a negative number if `a < b`, zero if `a === b`, and a positive
|
|
13
|
+
* number if `a > b`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function compareProtocolVersions(a: string, b: string): number;
|
|
16
|
+
/**
|
|
17
|
+
* Maps every action type to the protocol version that introduced it.
|
|
18
|
+
* Adding a new action to `StateAction` without adding it here is a compile error.
|
|
19
|
+
*
|
|
20
|
+
* Versions are SemVer `MAJOR.MINOR.PATCH` strings (see `PROTOCOL_VERSION`).
|
|
21
|
+
*/
|
|
22
|
+
export declare const ACTION_INTRODUCED_IN: {
|
|
23
|
+
readonly [K in StateAction["type"]]: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Returns whether the given action type is known to the specified protocol version.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isActionKnownToVersion(action: StateAction, clientVersion: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Maps every notification type to the protocol version that introduced it.
|
|
31
|
+
* Adding a new notification to `ProtocolNotification` without adding it here
|
|
32
|
+
* is a compile error.
|
|
33
|
+
*
|
|
34
|
+
* Versions are SemVer `MAJOR.MINOR.PATCH` strings (see `PROTOCOL_VERSION`).
|
|
35
|
+
*/
|
|
36
|
+
export declare const NOTIFICATION_INTRODUCED_IN: {
|
|
37
|
+
readonly [K in ProtocolNotification["type"]]: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Returns whether the given notification type is known to the specified protocol version.
|
|
41
|
+
*/
|
|
42
|
+
export declare function isNotificationKnownToVersion(notification: ProtocolNotification, clientVersion: string): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
import '@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions';
|
|
3
|
+
import '@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications';
|
|
4
|
+
|
|
5
|
+
const PROTOCOL_VERSION = "0.1.0";
|
|
6
|
+
|
|
7
|
+
export { PROTOCOL_VERSION };
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
export { ActionType, type
|
|
2
|
-
export { NotificationType, AuthRequiredReason, type
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type IAgentsChangedAction =
|
|
13
|
-
export type IActiveSessionsChangedAction =
|
|
14
|
-
export type
|
|
15
|
-
export type
|
|
16
|
-
export type
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
25
|
-
export type
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
30
|
-
export type
|
|
31
|
-
export type
|
|
32
|
-
export type
|
|
33
|
-
export type
|
|
34
|
-
export type
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
38
|
-
export type
|
|
39
|
-
export
|
|
40
|
-
export declare function
|
|
41
|
-
export declare function
|
|
1
|
+
export { ActionType, type ActionEnvelope, type ActionOrigin, type RootAgentsChangedAction, type RootActiveSessionsChangedAction, type SessionCreationFailedAction, type SessionDeltaAction, type SessionDiffsChangedAction, type SessionErrorAction, type SessionModelChangedAction, type SessionReadyAction, type SessionReasoningAction, type SessionResponsePartAction, type SessionToolCallCompleteAction, type SessionToolCallConfirmedAction, type SessionToolCallApprovedAction, type SessionToolCallDeniedAction, type SessionToolCallDeltaAction, type SessionToolCallReadyAction, type SessionToolCallResultConfirmedAction, type SessionToolCallStartAction, type SessionTitleChangedAction, type SessionTurnCancelledAction, type SessionTurnCompleteAction, type SessionTurnStartedAction, type SessionUsageAction, type SessionServerToolsChangedAction, type SessionActiveClientChangedAction, type SessionActiveClientToolsChangedAction, type SessionCustomizationsChangedAction, type SessionCustomizationToggledAction, type SessionPendingMessageSetAction, type SessionPendingMessageRemovedAction, type SessionQueuedMessagesReorderedAction, type SessionInputRequestedAction, type SessionInputCompletedAction, type SessionIsReadChangedAction, type SessionIsArchivedChangedAction, type SessionToolCallContentChangedAction, type StateAction, } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
|
|
2
|
+
export { NotificationType, AuthRequiredReason, type SessionAddedNotification, type SessionRemovedNotification, type AuthRequiredNotification, } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
|
|
3
|
+
import type { RootAgentsChangedAction, RootActiveSessionsChangedAction, SessionDeltaAction, SessionModelChangedAction, SessionReasoningAction, SessionResponsePartAction, SessionToolCallApprovedAction, SessionToolCallCompleteAction, SessionToolCallConfirmedAction, SessionToolCallDeniedAction, SessionToolCallDeltaAction, SessionToolCallReadyAction, SessionToolCallResultConfirmedAction, SessionToolCallStartAction, SessionTitleChangedAction, SessionTurnCancelledAction, SessionTurnCompleteAction, SessionTurnStartedAction, SessionUsageAction, StateAction, SessionPendingMessageSetAction, SessionPendingMessageRemovedAction, SessionQueuedMessagesReorderedAction, SessionIsReadChangedAction, SessionIsArchivedChangedAction, RootConfigChangedAction } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
|
|
4
|
+
import type { ProtocolNotification } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
|
|
5
|
+
import type { RootAction as IRootAction_, SessionAction as ISessionAction_, ClientSessionAction as IClientSessionAction_, ServerSessionAction as IServerSessionAction_, TerminalAction as ITerminalAction_, ClientTerminalAction as IClientTerminalAction_ } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/action-origin.generated";
|
|
6
|
+
export type RootAction = IRootAction_;
|
|
7
|
+
export type SessionAction = ISessionAction_;
|
|
8
|
+
export type ClientSessionAction = IClientSessionAction_;
|
|
9
|
+
export type ServerSessionAction = IServerSessionAction_;
|
|
10
|
+
export type TerminalAction = ITerminalAction_;
|
|
11
|
+
export type ClientTerminalAction = IClientTerminalAction_;
|
|
12
|
+
export type IAgentsChangedAction = RootAgentsChangedAction;
|
|
13
|
+
export type IActiveSessionsChangedAction = RootActiveSessionsChangedAction;
|
|
14
|
+
export type IRootConfigChangedAction = RootConfigChangedAction;
|
|
15
|
+
export type ITurnStartedAction = SessionTurnStartedAction;
|
|
16
|
+
export type IDeltaAction = SessionDeltaAction;
|
|
17
|
+
export type IResponsePartAction = SessionResponsePartAction;
|
|
18
|
+
export type IToolCallStartAction = SessionToolCallStartAction;
|
|
19
|
+
export type IToolCallDeltaAction = SessionToolCallDeltaAction;
|
|
20
|
+
export type IToolCallReadyAction = SessionToolCallReadyAction;
|
|
21
|
+
export type IToolCallApprovedAction = SessionToolCallApprovedAction;
|
|
22
|
+
export type IToolCallDeniedAction = SessionToolCallDeniedAction;
|
|
23
|
+
export type IToolCallConfirmedAction = SessionToolCallConfirmedAction;
|
|
24
|
+
export type IToolCallCompleteAction = SessionToolCallCompleteAction;
|
|
25
|
+
export type IToolCallResultConfirmedAction = SessionToolCallResultConfirmedAction;
|
|
26
|
+
export type ITurnCompleteAction = SessionTurnCompleteAction;
|
|
27
|
+
export type ITurnCancelledAction = SessionTurnCancelledAction;
|
|
28
|
+
export type ITitleChangedAction = SessionTitleChangedAction;
|
|
29
|
+
export type IUsageAction = SessionUsageAction;
|
|
30
|
+
export type IReasoningAction = SessionReasoningAction;
|
|
31
|
+
export type IModelChangedAction = SessionModelChangedAction;
|
|
32
|
+
export type ICustomizationsChangedAction = import("@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions").SessionCustomizationsChangedAction;
|
|
33
|
+
export type ICustomizationToggledAction = import("@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions").SessionCustomizationToggledAction;
|
|
34
|
+
export type IPendingMessageSetAction = SessionPendingMessageSetAction;
|
|
35
|
+
export type IPendingMessageRemovedAction = SessionPendingMessageRemovedAction;
|
|
36
|
+
export type IQueuedMessagesReorderedAction = SessionQueuedMessagesReorderedAction;
|
|
37
|
+
export type IIsReadChangedAction = SessionIsReadChangedAction;
|
|
38
|
+
export type IIsArchivedChangedAction = SessionIsArchivedChangedAction;
|
|
39
|
+
export type INotification = ProtocolNotification;
|
|
40
|
+
export declare function isRootAction(action: StateAction): action is RootAction;
|
|
41
|
+
export declare function isSessionAction(action: StateAction): action is SessionAction;
|
|
42
|
+
export declare function isTerminalAction(action: StateAction): action is TerminalAction;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
2
|
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ProtocolMessage, AhpServerNotification, JsonRpcNotification, JsonRpcResponse, JsonRpcRequest } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionProtocol";
|
|
4
4
|
/**
|
|
5
5
|
* A bidirectional transport for protocol messages. Implementations handle
|
|
6
6
|
* serialization, framing, and connection management.
|
|
7
7
|
*/
|
|
8
8
|
export interface IProtocolTransport extends IDisposable {
|
|
9
9
|
/** Fires when a message is received from the remote end. */
|
|
10
|
-
readonly onMessage: Event<
|
|
10
|
+
readonly onMessage: Event<ProtocolMessage>;
|
|
11
11
|
/** Fires when the transport connection closes. */
|
|
12
12
|
readonly onClose: Event<void>;
|
|
13
13
|
/**
|
|
14
14
|
* Send a message to the remote end.
|
|
15
15
|
*
|
|
16
16
|
* Accepts:
|
|
17
|
-
* - `
|
|
18
|
-
* - `
|
|
19
|
-
* - `
|
|
17
|
+
* - `ProtocolMessage` — fully-typed client↔server messages.
|
|
18
|
+
* - `AhpServerNotification` — server→client notifications.
|
|
19
|
+
* - `JsonRpcResponse` — dynamically-constructed success/error responses.
|
|
20
20
|
*/
|
|
21
|
-
send(message:
|
|
21
|
+
send(message: ProtocolMessage | AhpServerNotification | JsonRpcNotification | JsonRpcResponse | JsonRpcRequest): void;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A client-side transport that requires an explicit connection step
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for agent-host protocol transports. Kept in a common
|
|
3
|
+
* module so browser, electron-browser, and sessions-layer transports all
|
|
4
|
+
* apply the same malformed-frame policy without duplicating values.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Force-close the transport once more than this many malformed inbound
|
|
8
|
+
* frames have been observed. A handful of bad frames can be tolerated
|
|
9
|
+
* (e.g. a proxy momentarily corrupts a message), but a sustained stream
|
|
10
|
+
* almost always indicates a protocol mismatch or a broken relay, and is
|
|
11
|
+
* best surfaced as a hard disconnect so the reconnect loop can take over.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MALFORMED_FRAMES_FORCE_CLOSE_THRESHOLD = 10;
|
|
14
|
+
/** Cap warn-level logs per connection for malformed frames to avoid spam. */
|
|
15
|
+
export declare const MALFORMED_FRAMES_LOG_CAP = 5;
|
|
@@ -75,9 +75,10 @@ export declare function parseComponentPathConfig(raw: unknown): IComponentPathCo
|
|
|
75
75
|
/**
|
|
76
76
|
* Resolves the directories to scan for a given component type, combining
|
|
77
77
|
* the default directory with any custom paths from the manifest config.
|
|
78
|
-
* Paths that resolve outside the
|
|
78
|
+
* Paths that resolve outside the boundary are silently ignored.
|
|
79
|
+
* @param boundaryUri The outermost directory that resolved paths must stay within. Defaults to {@link pluginUri}.
|
|
79
80
|
*/
|
|
80
|
-
export declare function resolveComponentDirs(pluginUri: URI, defaultDir: string, config: IComponentPathConfig): readonly URI[];
|
|
81
|
+
export declare function resolveComponentDirs(pluginUri: URI, defaultDir: string, config: IComponentPathConfig, boundaryUri?: URI): readonly URI[];
|
|
81
82
|
/**
|
|
82
83
|
* Extracts the MCP server map from a raw JSON value. Accepts both the
|
|
83
84
|
* wrapped format `{ mcpServers: { … } }` and the flat format.
|
|
@@ -115,4 +116,4 @@ export declare function parseMcpServerDefinitionMap(definitionURI: URI, raw: unk
|
|
|
115
116
|
* Parses a plugin directory to extract hooks, MCP servers, skills, and agents.
|
|
116
117
|
* This is the main entry point for the agent host to discover plugin contents.
|
|
117
118
|
*/
|
|
118
|
-
export declare function parsePlugin(pluginUri: URI, fileService: IFileService, workspaceRoot: URI | undefined, userHome: string): Promise<IParsedPlugin>;
|
|
119
|
+
export declare function parsePlugin(pluginUri: URI, fileService: IFileService, workspaceRoot: URI | undefined, userHome: string, boundaryUri?: URI): Promise<IParsedPlugin>;
|
|
@@ -3,7 +3,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
|
|
|
3
3
|
import { cloneAndChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
4
4
|
import { isAbsolute } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
|
|
5
5
|
import { untildify } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
|
|
6
|
-
import { joinPath,
|
|
6
|
+
import { joinPath, isEqualOrParent, normalizePath, basename, extname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
7
7
|
import { escapeRegExpCharacters } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
8
8
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
9
9
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
@@ -106,14 +106,15 @@ function parseComponentPathConfig(raw) {
|
|
|
106
106
|
}
|
|
107
107
|
return emptyComponentPathConfig;
|
|
108
108
|
}
|
|
109
|
-
function resolveComponentDirs(pluginUri, defaultDir, config) {
|
|
109
|
+
function resolveComponentDirs(pluginUri, defaultDir, config, boundaryUri) {
|
|
110
|
+
const boundary = (boundaryUri && isEqualOrParent(pluginUri, boundaryUri)) ? boundaryUri : pluginUri;
|
|
110
111
|
const dirs = [];
|
|
111
112
|
if (!config.exclusive) {
|
|
112
113
|
dirs.push(joinPath(pluginUri, defaultDir));
|
|
113
114
|
}
|
|
114
115
|
for (const p of config.paths) {
|
|
115
116
|
const resolved = normalizePath(joinPath(pluginUri, p));
|
|
116
|
-
if (isEqualOrParent(resolved,
|
|
117
|
+
if (isEqualOrParent(resolved, boundary)) {
|
|
117
118
|
dirs.push(resolved);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -3,11 +3,12 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
3
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
4
|
import { ITerminalSandboxService } from "@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service";
|
|
5
5
|
import { IAgentNetworkFilterService } from "@codingame/monaco-vscode-api/vscode/vs/platform/networkFilter/common/networkFilterService.service";
|
|
6
|
+
export declare const AgentNetworkFilterFetchWebToolName = "fetchWebTool";
|
|
6
7
|
export declare class AgentNetworkFilterService extends Disposable implements IAgentNetworkFilterService {
|
|
7
8
|
private readonly configurationService;
|
|
8
9
|
private readonly terminalSandboxService;
|
|
9
10
|
readonly _serviceBrand: undefined;
|
|
10
|
-
private
|
|
11
|
+
private networkFilterEnabled;
|
|
11
12
|
private terminalSandboxEnabled;
|
|
12
13
|
private allowedPatterns;
|
|
13
14
|
private deniedPatterns;
|
|
@@ -17,6 +18,7 @@ export declare class AgentNetworkFilterService extends Disposable implements IAg
|
|
|
17
18
|
constructor(configurationService: IConfigurationService, terminalSandboxService: ITerminalSandboxService);
|
|
18
19
|
private readConfiguration;
|
|
19
20
|
private updateTerminalSandboxEnabled;
|
|
20
|
-
isUriAllowed(uri: URI): boolean;
|
|
21
|
+
isUriAllowed(uri: URI, toolName?: string): boolean;
|
|
22
|
+
private shouldFilter;
|
|
21
23
|
formatError(uri: URI): string;
|
|
22
24
|
}
|
|
@@ -10,12 +10,13 @@ import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
10
10
|
import { extractDomainFromUri, isDomainAllowed } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/networkFilter/common/domainMatcher';
|
|
11
11
|
import { AgentNetworkDomainSettingId } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/networkFilter/common/settings';
|
|
12
12
|
|
|
13
|
+
const AgentNetworkFilterFetchWebToolName = "fetchWebTool";
|
|
13
14
|
let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposable {
|
|
14
15
|
constructor(configurationService, terminalSandboxService) {
|
|
15
16
|
super();
|
|
16
17
|
this.configurationService = configurationService;
|
|
17
18
|
this.terminalSandboxService = terminalSandboxService;
|
|
18
|
-
this.
|
|
19
|
+
this.networkFilterEnabled = false;
|
|
19
20
|
this.terminalSandboxEnabled = false;
|
|
20
21
|
this.allowedPatterns = [];
|
|
21
22
|
this.deniedPatterns = [];
|
|
@@ -35,13 +36,17 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
35
36
|
}
|
|
36
37
|
readConfiguration() {
|
|
37
38
|
const networkFilterEnabled = this.configurationService.getValue(AgentNetworkDomainSettingId.NetworkFilter) ?? false;
|
|
38
|
-
this.
|
|
39
|
+
this.networkFilterEnabled = networkFilterEnabled;
|
|
39
40
|
this.allowedPatterns = this.configurationService.getValue(AgentNetworkDomainSettingId.AllowedNetworkDomains) ?? [];
|
|
40
41
|
this.deniedPatterns = this.configurationService.getValue(AgentNetworkDomainSettingId.DeniedNetworkDomains) ?? [];
|
|
41
42
|
this.domainCache.clear();
|
|
42
43
|
}
|
|
43
44
|
async updateTerminalSandboxEnabled() {
|
|
44
|
-
const
|
|
45
|
+
const [isSandboxEnabled, isSandboxAllowNetworkEnabled] = await Promise.all([
|
|
46
|
+
this.terminalSandboxService.isEnabled(),
|
|
47
|
+
this.terminalSandboxService.isSandboxAllowNetworkEnabled()
|
|
48
|
+
]);
|
|
49
|
+
const enabled = isSandboxEnabled && !isSandboxAllowNetworkEnabled;
|
|
45
50
|
if (this.terminalSandboxEnabled === enabled) {
|
|
46
51
|
return;
|
|
47
52
|
}
|
|
@@ -49,8 +54,8 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
49
54
|
this.readConfiguration();
|
|
50
55
|
this.onDidChangeEmitter.fire();
|
|
51
56
|
}
|
|
52
|
-
isUriAllowed(uri) {
|
|
53
|
-
if (!this.
|
|
57
|
+
isUriAllowed(uri, toolName) {
|
|
58
|
+
if (!this.shouldFilter(toolName)) {
|
|
54
59
|
return true;
|
|
55
60
|
}
|
|
56
61
|
if (uri.scheme === "file" || !uri.authority) {
|
|
@@ -67,10 +72,13 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
67
72
|
}
|
|
68
73
|
return result;
|
|
69
74
|
}
|
|
75
|
+
shouldFilter(toolName) {
|
|
76
|
+
return this.networkFilterEnabled || (this.terminalSandboxEnabled && toolName === AgentNetworkFilterFetchWebToolName);
|
|
77
|
+
}
|
|
70
78
|
formatError(uri) {
|
|
71
79
|
const domain = extractDomainFromUri(uri);
|
|
72
80
|
return localize(
|
|
73
|
-
|
|
81
|
+
2063,
|
|
74
82
|
"Access to {0} is blocked by network domain policy (see `{1}` and `{2}` settings).",
|
|
75
83
|
domain ?? uri.authority,
|
|
76
84
|
AgentNetworkDomainSettingId.AllowedNetworkDomains,
|
|
@@ -80,4 +88,4 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
80
88
|
};
|
|
81
89
|
AgentNetworkFilterService = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, ITerminalSandboxService))], AgentNetworkFilterService));
|
|
82
90
|
|
|
83
|
-
export { AgentNetworkFilterService };
|
|
91
|
+
export { AgentNetworkFilterFetchWebToolName, AgentNetworkFilterService };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool reference names for the integrated browser tools.
|
|
3
|
+
*/
|
|
4
|
+
export declare const BrowserChatToolReferenceName: {
|
|
5
|
+
readonly OpenBrowserPage: "openBrowserPage";
|
|
6
|
+
readonly ReadPage: "readPage";
|
|
7
|
+
readonly ScreenshotPage: "screenshotPage";
|
|
8
|
+
readonly NavigatePage: "navigatePage";
|
|
9
|
+
readonly ClickElement: "clickElement";
|
|
10
|
+
readonly TypeInPage: "typeInPage";
|
|
11
|
+
readonly HoverElement: "hoverElement";
|
|
12
|
+
readonly DragElement: "dragElement";
|
|
13
|
+
readonly HandleDialog: "handleDialog";
|
|
14
|
+
readonly RunPlaywrightCode: "runPlaywrightCode";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* All browser-tool reference names as a flat list.
|
|
18
|
+
*/
|
|
19
|
+
export declare const browserChatToolReferenceNames: ("hoverElement" | "openBrowserPage" | "readPage" | "screenshotPage" | "navigatePage" | "clickElement" | "typeInPage" | "dragElement" | "handleDialog" | "runPlaywrightCode")[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
const BrowserChatToolReferenceName = {
|
|
4
|
+
OpenBrowserPage: "openBrowserPage",
|
|
5
|
+
ReadPage: "readPage",
|
|
6
|
+
ScreenshotPage: "screenshotPage",
|
|
7
|
+
NavigatePage: "navigatePage",
|
|
8
|
+
ClickElement: "clickElement",
|
|
9
|
+
TypeInPage: "typeInPage",
|
|
10
|
+
HoverElement: "hoverElement",
|
|
11
|
+
DragElement: "dragElement",
|
|
12
|
+
HandleDialog: "handleDialog",
|
|
13
|
+
RunPlaywrightCode: "runPlaywrightCode"
|
|
14
|
+
};
|
|
15
|
+
const browserChatToolReferenceNames = ( Object.values(BrowserChatToolReferenceName));
|
|
16
|
+
|
|
17
|
+
export { BrowserChatToolReferenceName, browserChatToolReferenceNames };
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js
CHANGED
|
@@ -117,7 +117,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
this.toasts.clearAndDisposeAll();
|
|
120
|
-
const title = widget?.viewModel?.model.title ? ( localize(
|
|
120
|
+
const title = widget?.viewModel?.model.title ? ( localize(4762, "Chat: {0}", widget.viewModel.model.title)) : ( localize(4763, "Untitled Chat"));
|
|
121
121
|
const cts = ( new CancellationTokenSource());
|
|
122
122
|
const disposable = toDisposable(() => cts.dispose(true));
|
|
123
123
|
this.toasts.add(disposable);
|
|
@@ -125,7 +125,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
125
125
|
clicked
|
|
126
126
|
} = await this._hostService.showToast({
|
|
127
127
|
title,
|
|
128
|
-
body: ( localize(
|
|
128
|
+
body: ( localize(4764, "New chat response."))
|
|
129
129
|
}, cts.token);
|
|
130
130
|
this.toasts.deleteAndDispose(disposable);
|
|
131
131
|
if (clicked) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vsco
|
|
|
6
6
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
7
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
8
8
|
import { AccessibilityVerbositySettingId } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration";
|
|
9
|
-
import { IChatExtensionsContent, IChatModifiedFilesConfirmationData, IChatPullRequestContent, IChatSimpleToolInvocationData, IChatSubagentToolInvocationData, IChatTerminalToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolResourcesInvocationData, ILegacyChatTerminalToolInvocationData, IToolResultOutputDetailsSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
9
|
+
import { IChatExtensionsContent, IChatModifiedFilesConfirmationData, IChatPullRequestContent, IChatSearchToolInvocationData, IChatSimpleToolInvocationData, IChatSubagentToolInvocationData, IChatTerminalToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolResourcesInvocationData, ILegacyChatTerminalToolInvocationData, IToolResultOutputDetailsSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
10
10
|
import { IToolResultInputOutputDetails, IToolResultOutputDetails } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService";
|
|
11
11
|
import { ChatTreeItem, IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
12
12
|
import { Location } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
|
|
@@ -17,7 +17,7 @@ export declare class ChatResponseAccessibleView implements IAccessibleViewImplem
|
|
|
17
17
|
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").RawContextKey<boolean>;
|
|
18
18
|
getProvider(accessor: ServicesAccessor): ChatResponseAccessibleProvider | undefined;
|
|
19
19
|
}
|
|
20
|
-
type ToolSpecificData = IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent | IChatSubagentToolInvocationData | IChatSimpleToolInvocationData | IChatToolResourcesInvocationData | IChatModifiedFilesConfirmationData;
|
|
20
|
+
type ToolSpecificData = IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent | IChatSubagentToolInvocationData | IChatSimpleToolInvocationData | IChatSearchToolInvocationData | IChatToolResourcesInvocationData | IChatModifiedFilesConfirmationData;
|
|
21
21
|
type ResultDetails = Array<URI | Location> | IToolResultInputOutputDetails | IToolResultOutputDetails | IToolResultOutputDetailsSerialized;
|
|
22
22
|
export declare const CHAT_ACCESSIBLE_VIEW_INCLUDE_THINKING_STORAGE_KEY = "chat.accessibleView.includeThinking";
|
|
23
23
|
export declare function isThinkingContentIncludedInAccessibleView(storageService: IStorageService): boolean;
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js
CHANGED
|
@@ -78,29 +78,29 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
78
78
|
{
|
|
79
79
|
const parts = [];
|
|
80
80
|
if (toolSpecificData.agentName) {
|
|
81
|
-
parts.push(( localize(
|
|
81
|
+
parts.push(( localize(4765, "Agent: {0}", toolSpecificData.agentName)));
|
|
82
82
|
}
|
|
83
83
|
if (toolSpecificData.description) {
|
|
84
84
|
parts.push(toolSpecificData.description);
|
|
85
85
|
}
|
|
86
86
|
if (toolSpecificData.prompt) {
|
|
87
|
-
parts.push(( localize(
|
|
87
|
+
parts.push(( localize(4766, "Task: {0}", toolSpecificData.prompt)));
|
|
88
88
|
}
|
|
89
89
|
return parts.join(". ") || "";
|
|
90
90
|
}
|
|
91
91
|
case "extensions":
|
|
92
|
-
return toolSpecificData.extensions.length > 0 ? ( localize(
|
|
92
|
+
return toolSpecificData.extensions.length > 0 ? ( localize(4767, "Extensions: {0}", toolSpecificData.extensions.join(", "))) : "";
|
|
93
93
|
case "todoList":
|
|
94
94
|
{
|
|
95
95
|
const todos = toolSpecificData.todoList;
|
|
96
96
|
if (todos.length === 0) {
|
|
97
97
|
return "";
|
|
98
98
|
}
|
|
99
|
-
const todoDescriptions = ( todos.map(t => ( localize(
|
|
100
|
-
return localize(
|
|
99
|
+
const todoDescriptions = ( todos.map(t => ( localize(4768, "{0} ({1})", t.title, t.status))));
|
|
100
|
+
return localize(4769, "{0} items: {1}", todos.length, todoDescriptions.join("; "));
|
|
101
101
|
}
|
|
102
102
|
case "pullRequest":
|
|
103
|
-
return localize(
|
|
103
|
+
return localize(4770, "PR: {0} by {1}", toolSpecificData.title, toolSpecificData.author);
|
|
104
104
|
case "input":
|
|
105
105
|
return typeof toolSpecificData.rawInput === "string" ? toolSpecificData.rawInput : JSON.stringify(toolSpecificData.rawInput);
|
|
106
106
|
case "resources":
|
|
@@ -116,13 +116,13 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
116
116
|
return v.fsPath || v.path;
|
|
117
117
|
}
|
|
118
118
|
})).join(", ");
|
|
119
|
-
return localize(
|
|
119
|
+
return localize(4771, "Resources: {0}", paths);
|
|
120
120
|
}
|
|
121
121
|
case "simpleToolInvocation":
|
|
122
122
|
{
|
|
123
123
|
const inputText = toolSpecificData.input;
|
|
124
124
|
const outputText = toolSpecificData.output;
|
|
125
|
-
return localize(
|
|
125
|
+
return localize(4772, "Input: {0}, Output: {1}", inputText, outputText);
|
|
126
126
|
}
|
|
127
127
|
case "modifiedFilesConfirmation":
|
|
128
128
|
{
|
|
@@ -130,7 +130,7 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
130
130
|
return "";
|
|
131
131
|
}
|
|
132
132
|
return localize(
|
|
133
|
-
|
|
133
|
+
4773,
|
|
134
134
|
"Modified files: {0}",
|
|
135
135
|
( toolSpecificData.modifiedFiles.map(file => {
|
|
136
136
|
const revivedUri = URI.revive(file.uri);
|
|
@@ -165,12 +165,12 @@ function getResultDetailsDescription(resultDetails) {
|
|
|
165
165
|
}
|
|
166
166
|
if (isOutputDetailsSerialized(resultDetails)) {
|
|
167
167
|
return {
|
|
168
|
-
input: ( localize(
|
|
168
|
+
input: ( localize(4774, "{0} data", resultDetails.output.mimeType))
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
if (isToolResultOutputDetails(resultDetails)) {
|
|
172
172
|
return {
|
|
173
|
-
input: ( localize(
|
|
173
|
+
input: ( localize(4774, "{0} data", resultDetails.output.mimeType))
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
return {};
|
|
@@ -194,13 +194,13 @@ function getToolInvocationA11yDescription(
|
|
|
194
194
|
if (isComplete && resultDetails) {
|
|
195
195
|
const details = getResultDetailsDescription(resultDetails);
|
|
196
196
|
if (details.isError) {
|
|
197
|
-
parts.unshift(( localize(
|
|
197
|
+
parts.unshift(( localize(4775, "Errored")));
|
|
198
198
|
}
|
|
199
199
|
if (details.input && !toolDataDesc) {
|
|
200
|
-
parts.push(( localize(
|
|
200
|
+
parts.push(( localize(4776, "Input: {0}", details.input)));
|
|
201
201
|
}
|
|
202
202
|
if (details.files && details.files.length > 0) {
|
|
203
|
-
parts.push(( localize(
|
|
203
|
+
parts.push(( localize(4777, "Files: {0}", details.files.join(", "))));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
return parts.join(". ");
|
|
@@ -262,7 +262,7 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
262
262
|
const thinkingValue = Array.isArray(part.value) ? part.value.join("") : (part.value || "");
|
|
263
263
|
const trimmed = thinkingValue.trim();
|
|
264
264
|
if (trimmed) {
|
|
265
|
-
contentParts.push(( localize(
|
|
265
|
+
contentParts.push(( localize(4778, "Thinking: {0}", trimmed)));
|
|
266
266
|
}
|
|
267
267
|
break;
|
|
268
268
|
}
|
|
@@ -338,7 +338,7 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
338
338
|
contentParts.push(toolContent);
|
|
339
339
|
} else if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
340
340
|
const postApprovalDetails = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
|
|
341
|
-
contentParts.push(( localize(
|
|
341
|
+
contentParts.push(( localize(4779, "Approve results of {0}? Result: ", part.toolId)) + (postApprovalDetails ?? ""));
|
|
342
342
|
} else {
|
|
343
343
|
const resultDetails = IChatToolInvocation.resultDetails(part);
|
|
344
344
|
const isComplete = IChatToolInvocation.isComplete(part);
|
|
@@ -22,11 +22,11 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
22
22
|
super({
|
|
23
23
|
id: ACTION_ID_FOCUS_CHAT_CONFIRMATION,
|
|
24
24
|
title: {
|
|
25
|
-
value: ( localize(
|
|
25
|
+
value: ( localize(4780, "Focus Chat Confirmation")),
|
|
26
26
|
original: "Focus Chat Confirmation"
|
|
27
27
|
},
|
|
28
28
|
category: {
|
|
29
|
-
value: ( localize(
|
|
29
|
+
value: ( localize(4781, "Chat")),
|
|
30
30
|
original: "Chat"
|
|
31
31
|
},
|
|
32
32
|
precondition: ChatContextKeys.enabled,
|
|
@@ -42,30 +42,34 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
42
42
|
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
43
43
|
const pendingWidget = chatWidgetService.getAllWidgets().find(widget => widget.viewModel?.model.requestNeedsInput.get());
|
|
44
44
|
if (!pendingWidget) {
|
|
45
|
-
alert(( localize(
|
|
45
|
+
alert(( localize(4782, "No active chat session found.")));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
const viewModel = pendingWidget.viewModel;
|
|
49
49
|
if (!viewModel) {
|
|
50
|
-
alert(( localize(
|
|
50
|
+
alert(( localize(4783, "Chat interface not ready.")));
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
let firstConfirmationElement;
|
|
54
54
|
const lastResponse = viewModel.getItems()[viewModel.getItems().length - 1];
|
|
55
55
|
if (isResponseVM(lastResponse)) {
|
|
56
|
-
|
|
56
|
+
pendingWidget.reveal(lastResponse);
|
|
57
|
+
const confirmationWidgets = pendingWidget.domNode.querySelectorAll(".chat-confirmation-widget-container[tabindex]");
|
|
57
58
|
if (confirmationWidgets.length > 0) {
|
|
58
|
-
firstConfirmationElement = confirmationWidgets[
|
|
59
|
+
firstConfirmationElement = confirmationWidgets[confirmationWidgets.length - 1];
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
if (firstConfirmationElement) {
|
|
62
63
|
if (firstConfirmationElement.contains(pendingWidget.domNode.ownerDocument.activeElement)) {
|
|
63
64
|
pendingWidget.focusInput();
|
|
64
65
|
} else {
|
|
66
|
+
firstConfirmationElement.scrollIntoView({
|
|
67
|
+
block: "nearest"
|
|
68
|
+
});
|
|
65
69
|
firstConfirmationElement.focus();
|
|
66
70
|
}
|
|
67
71
|
} else {
|
|
68
|
-
alert(( localize(
|
|
72
|
+
alert(( localize(4784, "No chat confirmation required")));
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
}
|
|
@@ -74,11 +78,11 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
|
|
|
74
78
|
super({
|
|
75
79
|
id: ACTION_ID_TOGGLE_THINKING_CONTENT_ACCESSIBLE_VIEW,
|
|
76
80
|
title: {
|
|
77
|
-
value: ( localize(
|
|
81
|
+
value: ( localize(4785, "Toggle Thinking Content in Accessible View")),
|
|
78
82
|
original: "Toggle Thinking Content in Accessible View"
|
|
79
83
|
},
|
|
80
84
|
category: {
|
|
81
|
-
value: ( localize(
|
|
85
|
+
value: ( localize(4781, "Chat")),
|
|
82
86
|
original: "Chat"
|
|
83
87
|
},
|
|
84
88
|
precondition: ChatContextKeys.enabled,
|
|
@@ -100,7 +104,7 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
|
|
|
100
104
|
StorageScope.PROFILE,
|
|
101
105
|
StorageTarget.USER
|
|
102
106
|
);
|
|
103
|
-
alert(updatedValue ? ( localize(
|
|
107
|
+
alert(updatedValue ? ( localize(4786, "Thinking content will be included in the accessible view.")) : ( localize(4787, "Thinking content will be hidden from the accessible view.")));
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
function registerChatAccessibilityActions() {
|