@codingame/monaco-vscode-chat-service-override 26.2.2 → 28.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.js +35 -2
- package/package.json +5 -5
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +15 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +53 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +219 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +89 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +251 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +278 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +76 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +299 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +85 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +397 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
- 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 +53 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +18 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +282 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +74 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -2
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +179 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +987 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +246 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +878 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +692 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +936 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +622 -391
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +314 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +467 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +788 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +6 -24
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +394 -0
- 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 +118 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +88 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +624 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +88 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +175 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +364 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +69 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +67 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +187 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
- 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 +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
- 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 +29 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +126 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +9 -5
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +46 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +65 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +208 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +19 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +261 -105
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +13 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +144 -11
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +119 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +748 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +672 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +293 -94
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +86 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +48 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +404 -132
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +40 -28
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +27 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +265 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
- 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 +6 -6
- 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/media/terminalChatWidget.css +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +302 -69
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +63 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
- 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/common/terminalSandboxService.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +46 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -51
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
4
4
|
import { IChatCodeBlockContextProviderService, IChatAccessibilityService, IQuickChatService, IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
5
5
|
import { ChatAccessibilityService } from './vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js';
|
|
6
6
|
import { QuickChatService } from './vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js';
|
|
7
|
-
import { ChatVariablesService } from '
|
|
7
|
+
import { ChatVariablesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatVariables';
|
|
8
8
|
import { ChatCodeBlockContextProviderService } from './vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js';
|
|
9
9
|
import { ChatAgentNameService, ChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents';
|
|
10
10
|
import { IChatAgentNameService, IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
@@ -82,6 +82,28 @@ import { ChatEditingExplanationModelManager } from './vscode/src/vs/workbench/co
|
|
|
82
82
|
import { ChatToolOutputStateCache } from './vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js';
|
|
83
83
|
import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.service';
|
|
84
84
|
import { TerminalSandboxService } from './vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js';
|
|
85
|
+
import { IAgentFeedbackService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service';
|
|
86
|
+
import { AgentFeedbackService } from './vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js';
|
|
87
|
+
import { ISessionsConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service';
|
|
88
|
+
import { SessionsConfigurationService } from './vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js';
|
|
89
|
+
import { IAICustomizationWorkspaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service';
|
|
90
|
+
import { SessionsAICustomizationWorkspaceService } from './vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js';
|
|
91
|
+
import { ISessionsManagementService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service';
|
|
92
|
+
import { SessionsManagementService } from './vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js';
|
|
93
|
+
import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
|
|
94
|
+
import { AgentPluginService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js';
|
|
95
|
+
import { PluginMarketplaceService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js';
|
|
96
|
+
import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
|
|
97
|
+
import { IAgentPluginRepositoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service';
|
|
98
|
+
import { AgentPluginRepositoryService } from './vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js';
|
|
99
|
+
import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
|
|
100
|
+
import { PluginInstallService } from './vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js';
|
|
101
|
+
import { IChatAttachmentWidgetRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service';
|
|
102
|
+
import { ChatAttachmentWidgetRegistry } from './vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js';
|
|
103
|
+
import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
|
|
104
|
+
import { ChatDebugServiceImpl } from './vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js';
|
|
105
|
+
import { IChatResponseResourceFileSystemProvider } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service';
|
|
106
|
+
import { ChatResponseResourceFileSystemProvider } from './vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js';
|
|
85
107
|
import './vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js';
|
|
86
108
|
import './vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js';
|
|
87
109
|
import './vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js';
|
|
@@ -132,7 +154,18 @@ function getServiceOverride() {
|
|
|
132
154
|
[IChatTipService.toString()]: new SyncDescriptor(ChatTipService, [], true),
|
|
133
155
|
[IChatEditingExplanationModelManager.toString()]: new SyncDescriptor(ChatEditingExplanationModelManager, [], true),
|
|
134
156
|
[IChatToolOutputStateCache.toString()]: new SyncDescriptor(ChatToolOutputStateCache, [], true),
|
|
135
|
-
[ITerminalSandboxService.toString()]: new SyncDescriptor(TerminalSandboxService, [], true)
|
|
157
|
+
[ITerminalSandboxService.toString()]: new SyncDescriptor(TerminalSandboxService, [], true),
|
|
158
|
+
[IAgentFeedbackService.toString()]: new SyncDescriptor(AgentFeedbackService, [], true),
|
|
159
|
+
[ISessionsConfigurationService.toString()]: new SyncDescriptor(SessionsConfigurationService, [], true),
|
|
160
|
+
[IAICustomizationWorkspaceService.toString()]: new SyncDescriptor(SessionsAICustomizationWorkspaceService, [], true),
|
|
161
|
+
[ISessionsManagementService.toString()]: new SyncDescriptor(SessionsManagementService, [], true),
|
|
162
|
+
[IAgentPluginService.toString()]: new SyncDescriptor(AgentPluginService, [], true),
|
|
163
|
+
[IPluginMarketplaceService.toString()]: new SyncDescriptor(PluginMarketplaceService, [], true),
|
|
164
|
+
[IAgentPluginRepositoryService.toString()]: new SyncDescriptor(AgentPluginRepositoryService, [], true),
|
|
165
|
+
[IPluginInstallService.toString()]: new SyncDescriptor(PluginInstallService, [], true),
|
|
166
|
+
[IChatAttachmentWidgetRegistry.toString()]: new SyncDescriptor(ChatAttachmentWidgetRegistry, [], true),
|
|
167
|
+
[IChatDebugService.toString()]: new SyncDescriptor(ChatDebugServiceImpl, [], true),
|
|
168
|
+
[IChatResponseResourceFileSystemProvider.toString()]: new SyncDescriptor(ChatResponseResourceFileSystemProvider, [], true)
|
|
136
169
|
};
|
|
137
170
|
}
|
|
138
171
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-katex-common": "
|
|
20
|
-
"@codingame/monaco-vscode-xterm-addons-common": "
|
|
21
|
-
"@codingame/monaco-vscode-xterm-common": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "28.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-katex-common": "28.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-xterm-addons-common": "28.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-xterm-common": "28.0.0"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { IRectangle } from "@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window";
|
|
2
|
+
export interface IElementAncestor {
|
|
3
|
+
readonly tagName: string;
|
|
4
|
+
readonly id?: string;
|
|
5
|
+
readonly classNames?: string[];
|
|
6
|
+
}
|
|
2
7
|
export interface IElementData {
|
|
3
8
|
readonly outerHTML: string;
|
|
4
9
|
readonly computedStyle: string;
|
|
5
10
|
readonly bounds: IRectangle;
|
|
11
|
+
readonly ancestors?: IElementAncestor[];
|
|
12
|
+
readonly attributes?: Record<string, string>;
|
|
13
|
+
readonly computedStyles?: Record<string, string>;
|
|
14
|
+
readonly dimensions?: {
|
|
15
|
+
readonly top: number;
|
|
16
|
+
readonly left: number;
|
|
17
|
+
readonly width: number;
|
|
18
|
+
readonly height: number;
|
|
19
|
+
};
|
|
20
|
+
readonly innerText?: string;
|
|
6
21
|
}
|
|
7
22
|
/**
|
|
8
23
|
* Locator for identifying a browser target/webview.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
|
|
5
|
+
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service";
|
|
6
|
+
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
7
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
8
|
+
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
9
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
10
|
+
import { IAgentFeedbackService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service";
|
|
11
|
+
export interface IAgentFeedback {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly text: string;
|
|
14
|
+
readonly resourceUri: URI;
|
|
15
|
+
readonly range: IRange;
|
|
16
|
+
readonly sessionResource: URI;
|
|
17
|
+
}
|
|
18
|
+
export interface IAgentFeedbackChangeEvent {
|
|
19
|
+
readonly sessionResource: URI;
|
|
20
|
+
readonly feedbackItems: readonly IAgentFeedback[];
|
|
21
|
+
}
|
|
22
|
+
export interface IAgentFeedbackNavigationBearing {
|
|
23
|
+
readonly activeIdx: number;
|
|
24
|
+
readonly totalCount: number;
|
|
25
|
+
}
|
|
26
|
+
export declare class AgentFeedbackService extends Disposable implements IAgentFeedbackService {
|
|
27
|
+
private readonly _chatEditingService;
|
|
28
|
+
private readonly _agentSessionsService;
|
|
29
|
+
private readonly _editorService;
|
|
30
|
+
private readonly _chatWidgetService;
|
|
31
|
+
private readonly _commandService;
|
|
32
|
+
readonly _serviceBrand: undefined;
|
|
33
|
+
private readonly _onDidChangeFeedback;
|
|
34
|
+
readonly onDidChangeFeedback: Event<IAgentFeedbackChangeEvent>;
|
|
35
|
+
private readonly _onDidChangeNavigation;
|
|
36
|
+
readonly onDidChangeNavigation: Event<URI>;
|
|
37
|
+
/** sessionResource → feedback items */
|
|
38
|
+
private readonly _feedbackBySession;
|
|
39
|
+
private readonly _sessionUpdatedOrder;
|
|
40
|
+
private _sessionUpdatedSequence;
|
|
41
|
+
private readonly _navigationAnchorBySession;
|
|
42
|
+
constructor(_chatEditingService: IChatEditingService, _agentSessionsService: IAgentSessionsService, _editorService: IEditorService, _chatWidgetService: IChatWidgetService, _commandService: ICommandService);
|
|
43
|
+
addFeedback(sessionResource: URI, resourceUri: URI, range: IRange, text: string): IAgentFeedback;
|
|
44
|
+
removeFeedback(sessionResource: URI, feedbackId: string): void;
|
|
45
|
+
getFeedback(sessionResource: URI): readonly IAgentFeedback[];
|
|
46
|
+
getMostRecentSessionForResource(resourceUri: URI): URI | undefined;
|
|
47
|
+
private _sessionContainsResource;
|
|
48
|
+
revealFeedback(sessionResource: URI, feedbackId: string): Promise<void>;
|
|
49
|
+
getNextFeedback(sessionResource: URI, next: boolean): IAgentFeedback | undefined;
|
|
50
|
+
getNavigationBearing(sessionResource: URI): IAgentFeedbackNavigationBearing;
|
|
51
|
+
clearFeedback(sessionResource: URI): void;
|
|
52
|
+
addFeedbackAndSubmit(sessionResource: URI, resourceUri: URI, range: IRange, text: string): Promise<void>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
6
|
+
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
7
|
+
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
8
|
+
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
9
|
+
import { editingEntriesContainResource, agentSessionContainsResource } from '../../../../workbench/contrib/chat/browser/sessionResourceMatching.js';
|
|
10
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
11
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
12
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
13
|
+
|
|
14
|
+
let AgentFeedbackService = class AgentFeedbackService extends Disposable {
|
|
15
|
+
constructor(
|
|
16
|
+
_chatEditingService,
|
|
17
|
+
_agentSessionsService,
|
|
18
|
+
_editorService,
|
|
19
|
+
_chatWidgetService,
|
|
20
|
+
_commandService
|
|
21
|
+
) {
|
|
22
|
+
super();
|
|
23
|
+
this._chatEditingService = _chatEditingService;
|
|
24
|
+
this._agentSessionsService = _agentSessionsService;
|
|
25
|
+
this._editorService = _editorService;
|
|
26
|
+
this._chatWidgetService = _chatWidgetService;
|
|
27
|
+
this._commandService = _commandService;
|
|
28
|
+
this._onDidChangeFeedback = this._store.add(( new Emitter()));
|
|
29
|
+
this.onDidChangeFeedback = this._onDidChangeFeedback.event;
|
|
30
|
+
this._onDidChangeNavigation = this._store.add(( new Emitter()));
|
|
31
|
+
this.onDidChangeNavigation = this._onDidChangeNavigation.event;
|
|
32
|
+
this._feedbackBySession = ( new Map());
|
|
33
|
+
this._sessionUpdatedOrder = ( new Map());
|
|
34
|
+
this._sessionUpdatedSequence = 0;
|
|
35
|
+
this._navigationAnchorBySession = ( new Map());
|
|
36
|
+
}
|
|
37
|
+
addFeedback(sessionResource, resourceUri, range, text) {
|
|
38
|
+
const key = ( sessionResource.toString());
|
|
39
|
+
let feedbackItems = this._feedbackBySession.get(key);
|
|
40
|
+
if (!feedbackItems) {
|
|
41
|
+
feedbackItems = [];
|
|
42
|
+
this._feedbackBySession.set(key, feedbackItems);
|
|
43
|
+
}
|
|
44
|
+
const feedback = {
|
|
45
|
+
id: generateUuid(),
|
|
46
|
+
text,
|
|
47
|
+
resourceUri,
|
|
48
|
+
range,
|
|
49
|
+
sessionResource
|
|
50
|
+
};
|
|
51
|
+
const resourceStr = ( resourceUri.toString());
|
|
52
|
+
const hasExistingForFile = ( feedbackItems.some(f => ( f.resourceUri.toString()) === resourceStr));
|
|
53
|
+
if (!hasExistingForFile) {
|
|
54
|
+
feedbackItems.push(feedback);
|
|
55
|
+
} else {
|
|
56
|
+
let insertIdx = feedbackItems.length;
|
|
57
|
+
for (let i = 0; i < feedbackItems.length; i++) {
|
|
58
|
+
if (( feedbackItems[i].resourceUri.toString()) === resourceStr && feedbackItems[i].range.startLineNumber > range.startLineNumber) {
|
|
59
|
+
insertIdx = i;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
if (( feedbackItems[i].resourceUri.toString()) === resourceStr) {
|
|
63
|
+
insertIdx = i + 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
feedbackItems.splice(insertIdx, 0, feedback);
|
|
67
|
+
}
|
|
68
|
+
this._sessionUpdatedOrder.set(key, ++this._sessionUpdatedSequence);
|
|
69
|
+
this._onDidChangeNavigation.fire(sessionResource);
|
|
70
|
+
this._onDidChangeFeedback.fire({
|
|
71
|
+
sessionResource,
|
|
72
|
+
feedbackItems
|
|
73
|
+
});
|
|
74
|
+
return feedback;
|
|
75
|
+
}
|
|
76
|
+
removeFeedback(sessionResource, feedbackId) {
|
|
77
|
+
const key = ( sessionResource.toString());
|
|
78
|
+
const feedbackItems = this._feedbackBySession.get(key);
|
|
79
|
+
if (!feedbackItems) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const idx = feedbackItems.findIndex(f => f.id === feedbackId);
|
|
83
|
+
if (idx >= 0) {
|
|
84
|
+
feedbackItems.splice(idx, 1);
|
|
85
|
+
if (this._navigationAnchorBySession.get(key) === feedbackId) {
|
|
86
|
+
this._navigationAnchorBySession.delete(key);
|
|
87
|
+
this._onDidChangeNavigation.fire(sessionResource);
|
|
88
|
+
}
|
|
89
|
+
if (feedbackItems.length > 0) {
|
|
90
|
+
this._sessionUpdatedOrder.set(key, ++this._sessionUpdatedSequence);
|
|
91
|
+
} else {
|
|
92
|
+
this._sessionUpdatedOrder.delete(key);
|
|
93
|
+
}
|
|
94
|
+
this._onDidChangeFeedback.fire({
|
|
95
|
+
sessionResource,
|
|
96
|
+
feedbackItems
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
getFeedback(sessionResource) {
|
|
101
|
+
return this._feedbackBySession.get(( sessionResource.toString())) ?? [];
|
|
102
|
+
}
|
|
103
|
+
getMostRecentSessionForResource(resourceUri) {
|
|
104
|
+
let bestSession;
|
|
105
|
+
let bestSequence = -1;
|
|
106
|
+
for (const [, feedbackItems] of this._feedbackBySession) {
|
|
107
|
+
if (!feedbackItems.length) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
const candidate = feedbackItems[0].sessionResource;
|
|
111
|
+
if (!this._sessionContainsResource(candidate, resourceUri, feedbackItems)) {
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
const sequence = this._sessionUpdatedOrder.get(( candidate.toString())) ?? 0;
|
|
115
|
+
if (sequence > bestSequence) {
|
|
116
|
+
bestSession = candidate;
|
|
117
|
+
bestSequence = sequence;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return bestSession;
|
|
121
|
+
}
|
|
122
|
+
_sessionContainsResource(sessionResource, resourceUri, feedbackItems) {
|
|
123
|
+
if (( feedbackItems.some(item => isEqual(item.resourceUri, resourceUri)))) {
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
for (const editingSession of this._chatEditingService.editingSessionsObs.get()) {
|
|
127
|
+
if (!isEqual(editingSession.chatSessionResource, sessionResource)) {
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if (editingEntriesContainResource(editingSession.entries.get(), resourceUri)) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
for (const session of this._agentSessionsService.model.sessions) {
|
|
135
|
+
if (!isEqual(session.resource, sessionResource)) {
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (agentSessionContainsResource(session, resourceUri)) {
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
async revealFeedback(sessionResource, feedbackId) {
|
|
145
|
+
const key = ( sessionResource.toString());
|
|
146
|
+
const feedbackItems = this._feedbackBySession.get(key);
|
|
147
|
+
const feedback = feedbackItems?.find(f => f.id === feedbackId);
|
|
148
|
+
if (!feedback) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
await this._editorService.openEditor({
|
|
152
|
+
resource: feedback.resourceUri,
|
|
153
|
+
options: {
|
|
154
|
+
preserveFocus: false,
|
|
155
|
+
revealIfVisible: true
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
setTimeout(() => {
|
|
159
|
+
this._navigationAnchorBySession.set(key, feedbackId);
|
|
160
|
+
this._onDidChangeNavigation.fire(sessionResource);
|
|
161
|
+
}, 50);
|
|
162
|
+
}
|
|
163
|
+
getNextFeedback(sessionResource, next) {
|
|
164
|
+
const key = ( sessionResource.toString());
|
|
165
|
+
const feedbackItems = this._feedbackBySession.get(key);
|
|
166
|
+
if (!feedbackItems?.length) {
|
|
167
|
+
this._navigationAnchorBySession.delete(key);
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
const anchorId = this._navigationAnchorBySession.get(key);
|
|
171
|
+
let anchorIndex = anchorId ? feedbackItems.findIndex(item => item.id === anchorId) : -1;
|
|
172
|
+
if (anchorIndex < 0 && !next) {
|
|
173
|
+
anchorIndex = 0;
|
|
174
|
+
}
|
|
175
|
+
const nextIndex = next ? (anchorIndex + 1) % feedbackItems.length : (anchorIndex - 1 + feedbackItems.length) % feedbackItems.length;
|
|
176
|
+
const feedback = feedbackItems[nextIndex];
|
|
177
|
+
this._navigationAnchorBySession.set(key, feedback.id);
|
|
178
|
+
this._onDidChangeNavigation.fire(sessionResource);
|
|
179
|
+
return feedback;
|
|
180
|
+
}
|
|
181
|
+
getNavigationBearing(sessionResource) {
|
|
182
|
+
const key = ( sessionResource.toString());
|
|
183
|
+
const feedbackItems = this._feedbackBySession.get(key) ?? [];
|
|
184
|
+
const anchorId = this._navigationAnchorBySession.get(key);
|
|
185
|
+
const activeIdx = anchorId ? feedbackItems.findIndex(item => item.id === anchorId) : -1;
|
|
186
|
+
return {
|
|
187
|
+
activeIdx,
|
|
188
|
+
totalCount: feedbackItems.length
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
clearFeedback(sessionResource) {
|
|
192
|
+
const key = ( sessionResource.toString());
|
|
193
|
+
this._feedbackBySession.delete(key);
|
|
194
|
+
this._sessionUpdatedOrder.delete(key);
|
|
195
|
+
this._navigationAnchorBySession.delete(key);
|
|
196
|
+
this._onDidChangeNavigation.fire(sessionResource);
|
|
197
|
+
this._onDidChangeFeedback.fire({
|
|
198
|
+
sessionResource,
|
|
199
|
+
feedbackItems: []
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
async addFeedbackAndSubmit(sessionResource, resourceUri, range, text) {
|
|
203
|
+
this.addFeedback(sessionResource, resourceUri, range, text);
|
|
204
|
+
const widget = this._chatWidgetService.getWidgetBySessionResource(sessionResource);
|
|
205
|
+
if (widget) {
|
|
206
|
+
const attachmentId = "agentFeedback:" + ( sessionResource.toString());
|
|
207
|
+
const hasAttachment = () => ( widget.attachmentModel.attachments.some(a => a.id === attachmentId));
|
|
208
|
+
if (!hasAttachment()) {
|
|
209
|
+
await Event.toPromise(Event.filter(widget.attachmentModel.onDidChange, () => hasAttachment()));
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
await ( new Promise(resolve => setTimeout(resolve, 100)));
|
|
213
|
+
}
|
|
214
|
+
await this._commandService.executeCommand("agentFeedbackEditor.action.submit");
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
AgentFeedbackService = ( __decorate([( __param(0, IChatEditingService)), ( __param(1, IAgentSessionsService)), ( __param(2, IEditorService)), ( __param(3, IChatWidgetService)), ( __param(4, ICommandService))], AgentFeedbackService));
|
|
218
|
+
|
|
219
|
+
export { AgentFeedbackService };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
4
|
+
import { AICustomizationManagementSection, IStorageSourceFilter } from "../../../../workbench/contrib/chat/common/aiCustomizationWorkspaceService.js";
|
|
5
|
+
import { IAICustomizationWorkspaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service";
|
|
6
|
+
import { IChatPromptSlashCommand } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService";
|
|
7
|
+
import { IPromptsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service";
|
|
8
|
+
import { ISessionsManagementService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service";
|
|
9
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
|
+
import { PromptsType } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes";
|
|
11
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
12
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
13
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
14
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
15
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
16
|
+
/**
|
|
17
|
+
* Agent Sessions override of IAICustomizationWorkspaceService.
|
|
18
|
+
* Delegates to ISessionsManagementService to provide the active session's
|
|
19
|
+
* worktree/repository as the project root, and supports worktree commit.
|
|
20
|
+
*
|
|
21
|
+
* Customization files are always committed to the main repository so they
|
|
22
|
+
* persist across worktrees. When a worktree is active the file is also
|
|
23
|
+
* copied into the worktree and committed there so the running session
|
|
24
|
+
* picks it up immediately.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SessionsAICustomizationWorkspaceService implements IAICustomizationWorkspaceService {
|
|
27
|
+
private readonly sessionsService;
|
|
28
|
+
private readonly instantiationService;
|
|
29
|
+
private readonly promptsService;
|
|
30
|
+
private readonly commandService;
|
|
31
|
+
private readonly logService;
|
|
32
|
+
private readonly fileService;
|
|
33
|
+
private readonly notificationService;
|
|
34
|
+
readonly _serviceBrand: undefined;
|
|
35
|
+
readonly activeProjectRoot: IObservable<URI | undefined>;
|
|
36
|
+
readonly hasOverrideProjectRoot: IObservable<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Transient override for the project root. When set, `activeProjectRoot`
|
|
39
|
+
* returns this value instead of the session-derived root.
|
|
40
|
+
*/
|
|
41
|
+
private readonly _overrideRoot;
|
|
42
|
+
/**
|
|
43
|
+
* CLI-accessible user directories for customization file filtering and creation.
|
|
44
|
+
*/
|
|
45
|
+
private readonly _cliUserRoots;
|
|
46
|
+
/**
|
|
47
|
+
* Pre-built filter for types that should only show CLI-accessible user roots.
|
|
48
|
+
*/
|
|
49
|
+
private readonly _cliUserFilter;
|
|
50
|
+
constructor(sessionsService: ISessionsManagementService, instantiationService: IInstantiationService, promptsService: IPromptsService, pathService: IPathService, commandService: ICommandService, logService: ILogService, fileService: IFileService, notificationService: INotificationService);
|
|
51
|
+
getActiveProjectRoot(): URI | undefined;
|
|
52
|
+
setOverrideProjectRoot(root: URI): void;
|
|
53
|
+
clearOverrideProjectRoot(): void;
|
|
54
|
+
readonly managementSections: readonly AICustomizationManagementSection[];
|
|
55
|
+
private static readonly _hooksFilter;
|
|
56
|
+
private static readonly _allUserRootsFilter;
|
|
57
|
+
getStorageSourceFilter(type: PromptsType): IStorageSourceFilter;
|
|
58
|
+
readonly isSessionsWindow = true;
|
|
59
|
+
/**
|
|
60
|
+
* Commits customization files. Always commits to the main repository
|
|
61
|
+
* so the change persists across worktrees. When a worktree is active
|
|
62
|
+
* the file is also committed there so the session sees it immediately.
|
|
63
|
+
*/
|
|
64
|
+
commitFiles(_projectRoot: URI, fileUris: URI[]): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Commits the deletion of files that have already been removed from disk.
|
|
67
|
+
* Always stages + commits the removal in the main repository, and also
|
|
68
|
+
* in the worktree if one is active.
|
|
69
|
+
*/
|
|
70
|
+
deleteFiles(_projectRoot: URI, fileUris: URI[]): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Computes the repository-relative path for a file. The file may be
|
|
73
|
+
* located under the worktree or the repository root.
|
|
74
|
+
*/
|
|
75
|
+
private getRelativePath;
|
|
76
|
+
/**
|
|
77
|
+
* Commits a single file to the main repository and optionally the worktree.
|
|
78
|
+
* Copies the file content between trees when needed.
|
|
79
|
+
*/
|
|
80
|
+
private commitFileToRepos;
|
|
81
|
+
/**
|
|
82
|
+
* Commits the deletion of a file to the main repository and optionally
|
|
83
|
+
* the worktree. The file is already deleted from disk before this is called;
|
|
84
|
+
* `git add` on a deleted path stages the removal.
|
|
85
|
+
*/
|
|
86
|
+
private commitDeletionToRepos;
|
|
87
|
+
generateCustomization(type: PromptsType): Promise<void>;
|
|
88
|
+
getFilteredPromptSlashCommands(token: CancellationToken): Promise<readonly IChatPromptSlashCommand[]>;
|
|
89
|
+
}
|