@codingame/monaco-vscode-api 37.1.0 → 37.2.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/missing-services.js +6 -26
- package/package.json +8 -8
- package/services.d.ts +1 -1
- package/services.js +3 -3
- package/tools.d.ts +4 -0
- package/tools.js +24 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +63 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +305 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
- package/vscode/src/vs/workbench/browser/media/code-icon.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.js +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +4 -3
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +72 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +96 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +1148 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +97 -0
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +32 -0
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +45 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.d.ts +0 -7
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.js +0 -92
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.d.ts +0 -12
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +0 -64
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +0 -262
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +0 -865
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +0 -311
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -231
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1850
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +0 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +0 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +0 -140
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +0 -186
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.js +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.js +0 -17
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -253
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +0 -194
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -87
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -69
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +0 -300
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +0 -272
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +0 -178
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -51
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +0 -195
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +0 -294
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +0 -212
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +0 -955
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +0 -122
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -697
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +0 -150
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +0 -142
- 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 -77
- 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/extensionPromptFileService.d.ts +0 -92
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +0 -335
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1673
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -202
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -872
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +0 -289
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +0 -600
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +0 -239
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +0 -143
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +0 -298
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +0 -177
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +0 -73
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +0 -577
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +0 -90
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +0 -53
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +0 -92
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -518
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -231
- package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.js +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +0 -283
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.d.ts +0 -91
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +0 -340
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +0 -272
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +0 -686
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css +0 -348
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css +0 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css +0 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditController.css +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditorOverlay.css +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css +0 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +0 -131
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.d.ts +0 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -673
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +0 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.d.ts +0 -354
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2926
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.d.ts +0 -200
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +0 -591
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.d.ts +0 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.d.ts +0 -99
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +0 -131
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +0 -158
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +0 -183
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +0 -66
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +0 -429
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +0 -108
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +0 -221
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +0 -142
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.d.ts +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +0 -762
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +0 -357
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +0 -260
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.js +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.d.ts +0 -182
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +0 -796
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +0 -126
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +0 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +0 -443
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +0 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +0 -121
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.d.ts +0 -152
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +0 -1288
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.d.ts +0 -59
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +0 -287
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.d.ts +0 -117
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.d.ts +0 -222
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +0 -1840
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.d.ts +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +0 -449
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewMessages.d.ts +0 -432
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +0 -2546
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +0 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.d.ts +0 -137
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +0 -646
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +0 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +0 -111
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +0 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.d.ts +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +0 -472
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +0 -34
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +0 -275
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.d.ts +0 -69
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.d.ts +0 -125
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +0 -958
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +0 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +0 -458
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.d.ts +0 -80
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +0 -708
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +0 -193
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.d.ts +0 -108
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +0 -717
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -183
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +0 -134
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +0 -135
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +0 -213
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.d.ts +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +0 -480
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +0 -87
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -352
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.d.ts +0 -81
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +0 -19
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { Event } from "../../../../../base/common/event.js";
|
|
2
|
-
import { IMarkdownString } from "../../../../../base/common/htmlContent.js";
|
|
3
|
-
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
4
|
-
import { ResourceMap } from "../../../../../base/common/map.js";
|
|
5
|
-
import { MarshalledId } from "../../../../../base/common/marshallingIds.js";
|
|
6
|
-
import { IObservable } from "../../../../../base/common/observable.js";
|
|
7
|
-
import { ThemeIcon } from "../../../../../base/common/themables.js";
|
|
8
|
-
import { URI } from "../../../../../base/common/uri.js";
|
|
9
|
-
import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
10
|
-
import { IProductService } from "../../../../../platform/product/common/productService.service.js";
|
|
11
|
-
import { IStorageService } from "../../../../../platform/storage/common/storage.service.js";
|
|
12
|
-
import { IWorkspaceContextService } from "../../../../../platform/workspace/common/workspace.service.js";
|
|
13
|
-
import { IWorkspaceTrustManagementService } from "../../../../../platform/workspace/common/workspaceTrust.service.js";
|
|
14
|
-
import { IChatEntitlementService } from "../../../../services/chat/common/chatEntitlementService.service.js";
|
|
15
|
-
import { ILifecycleService } from "../../../../services/lifecycle/common/lifecycle.service.js";
|
|
16
|
-
import { ChatSessionStatus as AgentSessionStatus, IChatSessionItem } from "../../common/chatSessionsService.js";
|
|
17
|
-
import { IChatSessionsService } from "../../common/chatSessionsService.service.js";
|
|
18
|
-
import { IChatWidgetService } from "../chat.service.js";
|
|
19
|
-
export { ChatSessionStatus as AgentSessionStatus, isSessionInProgressStatus } from "../../common/chatSessionsService.js";
|
|
20
|
-
export interface IAgentSessionsModel {
|
|
21
|
-
readonly onWillResolve: Event<string>;
|
|
22
|
-
readonly onDidResolve: Event<string>;
|
|
23
|
-
readonly onDidChangeSessions: Event<void>;
|
|
24
|
-
readonly onDidChangeSessionArchivedState: Event<IAgentSession>;
|
|
25
|
-
readonly resolved: boolean;
|
|
26
|
-
readonly sessions: IAgentSession[];
|
|
27
|
-
getSession(resource: URI): IAgentSession | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Returns an observable that emits the latest {@link IAgentSession} for the
|
|
30
|
-
* given resource (or `undefined` if no session is currently known).
|
|
31
|
-
*
|
|
32
|
-
* The observable updates whenever the underlying session collection changes.
|
|
33
|
-
* The first call for a given resource lazily triggers
|
|
34
|
-
* {@link IChatSessionsService.resolveChatSessionItem} so consumers reading
|
|
35
|
-
* lazy properties (e.g. `changes`) see fresh values once the provider has
|
|
36
|
-
* resolved them. In-flight resolves are deduplicated by the chat sessions
|
|
37
|
-
* service.
|
|
38
|
-
*/
|
|
39
|
-
observeSession(resource: URI): IObservable<IAgentSession | undefined>;
|
|
40
|
-
resolve(provider: string | string[] | undefined): Promise<void>;
|
|
41
|
-
}
|
|
42
|
-
interface IAgentSessionData extends Omit<IChatSessionItem, "archived" | "iconPath" | "isRead"> {
|
|
43
|
-
readonly providerType: string;
|
|
44
|
-
readonly providerLabel: string;
|
|
45
|
-
readonly resource: URI;
|
|
46
|
-
readonly status: AgentSessionStatus;
|
|
47
|
-
readonly tooltip?: string | IMarkdownString;
|
|
48
|
-
readonly label: string;
|
|
49
|
-
readonly description?: string | IMarkdownString;
|
|
50
|
-
readonly badge?: string | IMarkdownString;
|
|
51
|
-
readonly icon: ThemeIcon;
|
|
52
|
-
readonly timing: IChatSessionItem["timing"];
|
|
53
|
-
readonly changes?: IChatSessionItem["changes"];
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Checks if the provided changes object represents valid diff information.
|
|
57
|
-
*/
|
|
58
|
-
export declare function hasValidDiff(changes: IAgentSession["changes"]): boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Gets a summary of agent session changes, converting from array format to object format if needed.
|
|
61
|
-
*/
|
|
62
|
-
export declare function getAgentChangesSummary(changes: IAgentSession["changes"]): {
|
|
63
|
-
readonly files: number;
|
|
64
|
-
readonly insertions: number;
|
|
65
|
-
readonly deletions: number;
|
|
66
|
-
} | undefined;
|
|
67
|
-
export interface IAgentSession extends IAgentSessionData {
|
|
68
|
-
isArchived(): boolean;
|
|
69
|
-
setArchived(archived: boolean): void;
|
|
70
|
-
isPinned(): boolean;
|
|
71
|
-
setPinned(pinned: boolean): void;
|
|
72
|
-
isRead(): boolean;
|
|
73
|
-
isMarkedUnread(): boolean;
|
|
74
|
-
setRead(read: boolean): void;
|
|
75
|
-
}
|
|
76
|
-
interface IInternalAgentSessionData extends IAgentSessionData {
|
|
77
|
-
/**
|
|
78
|
-
* The `archived` property is provided by the session provider
|
|
79
|
-
* and will be used as the initial value if the user has not
|
|
80
|
-
* changed the archived state for the session previously. It
|
|
81
|
-
* is kept internal to not expose it publicly. Use `isArchived()`
|
|
82
|
-
* and `setArchived()` methods instead.
|
|
83
|
-
*/
|
|
84
|
-
readonly archived: boolean | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Read state as reported by the session's provider, authoritative for
|
|
87
|
-
* providers that own it (see {@link ownsReadState}). Kept internal — use
|
|
88
|
-
* `isRead()` / `setRead()`.
|
|
89
|
-
*/
|
|
90
|
-
readonly providerIsRead: boolean | undefined;
|
|
91
|
-
}
|
|
92
|
-
export declare function isLocalAgentSessionItem(session: IAgentSession): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Resolves the pull request associated with an agent session from its provider metadata,
|
|
95
|
-
* preferring an explicit `pullRequestUrl` and falling back to `pullRequestNumber` combined
|
|
96
|
-
* with `owner`/`name`. Returns `undefined` when the session has no associated pull request.
|
|
97
|
-
*/
|
|
98
|
-
export declare function getAgentSessionPullRequestUri(session: Pick<IAgentSession, "metadata">): URI | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* The value for the `chatSessionPullRequest` context key for a session. Never returns an
|
|
101
|
-
* "unknown" value: callers here always have the session's metadata in hand.
|
|
102
|
-
*/
|
|
103
|
-
export declare function getAgentSessionPullRequestContextValue(session: Pick<IAgentSession, "metadata">): "available" | "none";
|
|
104
|
-
export declare function isAgentHostAgentSessionItem(session: IAgentSession): boolean;
|
|
105
|
-
export declare function isAgentSession(obj: unknown): obj is IAgentSession;
|
|
106
|
-
export declare function isAgentSessionsModel(obj: unknown): obj is IAgentSessionsModel;
|
|
107
|
-
export declare function countUnreadSessions(sessions: IAgentSession[]): number;
|
|
108
|
-
interface IAgentSessionState {
|
|
109
|
-
readonly archived?: boolean;
|
|
110
|
-
readonly pinned?: boolean;
|
|
111
|
-
readonly read?: number;
|
|
112
|
-
}
|
|
113
|
-
export declare enum AgentSessionSection {
|
|
114
|
-
Pinned = "pinned",
|
|
115
|
-
Today = "today",
|
|
116
|
-
Yesterday = "yesterday",
|
|
117
|
-
Week = "week",
|
|
118
|
-
Older = "older",
|
|
119
|
-
Archived = "archived",
|
|
120
|
-
More = "more",
|
|
121
|
-
Repository = "repository"
|
|
122
|
-
}
|
|
123
|
-
export interface IAgentSessionSection {
|
|
124
|
-
readonly section: AgentSessionSection;
|
|
125
|
-
readonly label: string;
|
|
126
|
-
readonly sessions: IAgentSession[];
|
|
127
|
-
}
|
|
128
|
-
export declare function isAgentSessionSection(obj: unknown): obj is IAgentSessionSection;
|
|
129
|
-
/**
|
|
130
|
-
* A "Show N More..." item that appears as the last child
|
|
131
|
-
* of a capped repository group section.
|
|
132
|
-
*/
|
|
133
|
-
export interface IAgentSessionShowMore {
|
|
134
|
-
readonly showMore: true;
|
|
135
|
-
readonly sectionLabel: string;
|
|
136
|
-
readonly remainingCount: number;
|
|
137
|
-
}
|
|
138
|
-
export declare function isAgentSessionShowMore(obj: unknown): obj is IAgentSessionShowMore;
|
|
139
|
-
/**
|
|
140
|
-
* A "Show less" item that appears as the last child
|
|
141
|
-
* of an expanded repository group section to allow collapsing back.
|
|
142
|
-
*/
|
|
143
|
-
export interface IAgentSessionShowLess {
|
|
144
|
-
readonly showLess: true;
|
|
145
|
-
readonly sectionLabel: string;
|
|
146
|
-
}
|
|
147
|
-
export declare function isAgentSessionShowLess(obj: unknown): obj is IAgentSessionShowLess;
|
|
148
|
-
export interface IMarshalledAgentSessionContext {
|
|
149
|
-
readonly $mid: MarshalledId.AgentSessionContext;
|
|
150
|
-
readonly session: IAgentSession;
|
|
151
|
-
readonly sessions: IAgentSession[];
|
|
152
|
-
}
|
|
153
|
-
export declare function isMarshalledAgentSessionContext(thing: unknown): thing is IMarshalledAgentSessionContext;
|
|
154
|
-
export declare class AgentSessionsModel extends Disposable implements IAgentSessionsModel {
|
|
155
|
-
private readonly chatSessionsService;
|
|
156
|
-
private readonly lifecycleService;
|
|
157
|
-
private readonly instantiationService;
|
|
158
|
-
private readonly storageService;
|
|
159
|
-
private readonly productService;
|
|
160
|
-
private readonly chatWidgetService;
|
|
161
|
-
private readonly workspaceContextService;
|
|
162
|
-
private readonly workspaceTrustManagementService;
|
|
163
|
-
private readonly chatEntitlementService;
|
|
164
|
-
private readonly _onWillResolve;
|
|
165
|
-
readonly onWillResolve: Event<string>;
|
|
166
|
-
private readonly _onDidResolve;
|
|
167
|
-
readonly onDidResolve: Event<string>;
|
|
168
|
-
private readonly _onDidChangeSessions;
|
|
169
|
-
readonly onDidChangeSessions: Event<void>;
|
|
170
|
-
private readonly _onDidChangeSessionArchivedState;
|
|
171
|
-
readonly onDidChangeSessionArchivedState: Event<IAgentSession>;
|
|
172
|
-
private _resolved;
|
|
173
|
-
get resolved(): boolean;
|
|
174
|
-
private _sessions;
|
|
175
|
-
get sessions(): IAgentSession[];
|
|
176
|
-
private readonly resolvers;
|
|
177
|
-
private readonly cache;
|
|
178
|
-
private readonly logger;
|
|
179
|
-
constructor(chatSessionsService: IChatSessionsService, lifecycleService: ILifecycleService, instantiationService: IInstantiationService, storageService: IStorageService, productService: IProductService, chatWidgetService: IChatWidgetService, workspaceContextService: IWorkspaceContextService, workspaceTrustManagementService: IWorkspaceTrustManagementService, chatEntitlementService: IChatEntitlementService);
|
|
180
|
-
private registerListeners;
|
|
181
|
-
getSession(resource: URI): IAgentSession | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* Hide the extension-host `copilotcli:` row when its agent-host
|
|
184
|
-
* `agent-host-copilotcli:` twin is present, so the list shows a single entry
|
|
185
|
-
* per legacy Copilot CLI session — the agent-host one.
|
|
186
|
-
*
|
|
187
|
-
* A legacy row with no twin yet stays visible: opening it redirects through the
|
|
188
|
-
* agent host and adopts it, so it is never a dead end.
|
|
189
|
-
*
|
|
190
|
-
* Only display is deduped; {@link getSession} and the cache use the full map.
|
|
191
|
-
*/
|
|
192
|
-
private _dedupeMigratedCopilotCliSessions;
|
|
193
|
-
private _changedSignal;
|
|
194
|
-
private readonly _sessionObservables;
|
|
195
|
-
private readonly _resolvedResources;
|
|
196
|
-
observeSession(resource: URI): IObservable<IAgentSession | undefined>;
|
|
197
|
-
resolve(provider: string | string[] | undefined): Promise<void>;
|
|
198
|
-
private resolveProvider;
|
|
199
|
-
private doResolveProvider;
|
|
200
|
-
private toAgentSession;
|
|
201
|
-
private static readonly UNREAD_MARKER;
|
|
202
|
-
private readonly sessionStates;
|
|
203
|
-
private readonly explicitlyMarkedUnreadSessions;
|
|
204
|
-
/**
|
|
205
|
-
* Resolve the state entry for a session, honoring a one-way migration from
|
|
206
|
-
* {@link IAgentSessionData.legacyResource} when no entry yet exists for the
|
|
207
|
-
* session's current resource. Adopts the legacy entry forward (copies it onto
|
|
208
|
-
* the current resource key and removes the legacy entry). Returns undefined if
|
|
209
|
-
* neither a current nor a legacy entry exists.
|
|
210
|
-
*/
|
|
211
|
-
private resolveStateEntry;
|
|
212
|
-
private isArchived;
|
|
213
|
-
private setArchived;
|
|
214
|
-
private isPinned;
|
|
215
|
-
private setPinned;
|
|
216
|
-
private isMarkedUnread;
|
|
217
|
-
/**
|
|
218
|
-
* Whether the session's provider owns read state. When it does the value is
|
|
219
|
-
* shared with every other client on the same backend (the agent window, or
|
|
220
|
-
* another window on the same agent host), so the local heuristics below must
|
|
221
|
-
* not second-guess it.
|
|
222
|
-
*/
|
|
223
|
-
private ownsReadState;
|
|
224
|
-
private isRead;
|
|
225
|
-
/** Grace window absorbing a click away from a session just before it finishes. */
|
|
226
|
-
private static readonly READ_GRACE_WINDOW;
|
|
227
|
-
/**
|
|
228
|
-
* Whether the locally-stored read timestamp covers the session's last
|
|
229
|
-
* activity. Falls back to the read-date baseline when nothing is stored.
|
|
230
|
-
*/
|
|
231
|
-
private localReadDateCoversActivity;
|
|
232
|
-
private sessionTimeForReadStateTracking;
|
|
233
|
-
private setRead;
|
|
234
|
-
private static readonly READ_MIGRATION_DONE_KEY;
|
|
235
|
-
private readonly migratedReadResources;
|
|
236
|
-
/**
|
|
237
|
-
* One-time hand-off of locally-tracked read state to providers that own it,
|
|
238
|
-
* so sessions read before the provider took ownership don't all resurface as
|
|
239
|
-
* unread. Only ever promotes to read, and runs at most once per session so a
|
|
240
|
-
* later "Mark as Unread" is not undone on the next refresh.
|
|
241
|
-
*
|
|
242
|
-
* The ledger is application-scoped even though the local state it hands off
|
|
243
|
-
* is per-workspace: the provider-owned state it writes to is global, so a
|
|
244
|
-
* second workspace that can see the same session (an empty window lists them
|
|
245
|
-
* all) must not migrate it again and re-promote a deliberate "Mark as Unread".
|
|
246
|
-
*/
|
|
247
|
-
private migrateReadStateToProvider;
|
|
248
|
-
private loadMigratedReadResources;
|
|
249
|
-
private static readonly READ_DATE_BASELINE_KEY;
|
|
250
|
-
private readonly readDateBaseline;
|
|
251
|
-
private resolveReadDateBaseline;
|
|
252
|
-
}
|
|
253
|
-
export declare class AgentSessionsCache {
|
|
254
|
-
private readonly storageService;
|
|
255
|
-
private static readonly SESSIONS_STORAGE_KEY;
|
|
256
|
-
private static readonly STATE_STORAGE_KEY;
|
|
257
|
-
constructor(storageService: IStorageService);
|
|
258
|
-
saveCachedSessions(sessions: IInternalAgentSessionData[]): void;
|
|
259
|
-
loadCachedSessions(): IInternalAgentSessionData[];
|
|
260
|
-
saveSessionStates(states: ResourceMap<IAgentSessionState>): void;
|
|
261
|
-
loadSessionStates(): ResourceMap<IAgentSessionState>;
|
|
262
|
-
}
|