@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.
Files changed (313) hide show
  1. package/missing-services.js +6 -26
  2. package/package.json +8 -8
  3. package/services.d.ts +1 -1
  4. package/services.js +3 -3
  5. package/tools.d.ts +4 -0
  6. package/tools.js +24 -1
  7. package/vscode/src/vs/platform/product/common/product.js +1 -1
  8. package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.js +2 -2
  9. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +63 -0
  10. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +305 -0
  11. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +2 -2
  12. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +1 -2
  13. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
  14. package/vscode/src/vs/workbench/browser/media/code-icon.svg +1 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.d.ts +1 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +2 -1
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +2 -2
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.d.ts +1 -1
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +30 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +39 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.d.ts +1 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.service.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.d.ts +1 -1
  25. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +1 -1
  26. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.service.d.ts +1 -1
  27. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +1 -1
  28. package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.d.ts +1 -0
  29. package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.js +29 -0
  30. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +2 -2
  31. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +1 -1
  32. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +1 -1
  33. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +2 -2
  34. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +1 -1
  35. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +1 -1
  36. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +1 -1
  37. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +1 -1
  39. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.d.ts +1 -1
  40. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.d.ts +3 -0
  41. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.js +7 -0
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +3 -3
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
  44. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
  45. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +1 -1
  46. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
  47. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
  48. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
  49. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
  50. package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.d.ts +1 -1
  51. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts +1 -1
  52. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.d.ts +1 -1
  53. package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.d.ts +1 -1
  54. package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.d.ts +1 -1
  55. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +4 -3
  56. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.d.ts +34 -0
  57. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +72 -0
  58. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +44 -0
  59. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +96 -0
  60. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +1148 -0
  61. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.d.ts +81 -0
  62. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +97 -0
  63. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +32 -0
  64. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +45 -0
  65. package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.d.ts +0 -7
  66. package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.js +0 -92
  67. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.d.ts +0 -12
  68. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +0 -64
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +0 -262
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +0 -865
  71. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +0 -57
  72. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +0 -311
  73. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -15
  74. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -80
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +0 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +0 -57
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -231
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1850
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +0 -109
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +0 -85
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +0 -140
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +0 -186
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.d.ts +0 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.js +0 -5
  85. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.d.ts +0 -46
  86. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.js +0 -17
  87. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -253
  88. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -20
  89. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.d.ts +0 -34
  90. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +0 -194
  91. package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -87
  92. package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -69
  93. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +0 -300
  94. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +0 -272
  95. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +0 -25
  96. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +0 -178
  97. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -78
  98. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -51
  99. package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +0 -67
  100. package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +0 -195
  101. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +0 -67
  102. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +0 -294
  103. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +0 -212
  104. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +0 -955
  105. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +0 -31
  106. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +0 -122
  107. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -65
  108. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -697
  109. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +0 -150
  110. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +0 -142
  111. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
  112. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -77
  113. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
  114. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
  115. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
  116. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
  117. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +0 -92
  118. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +0 -335
  119. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -235
  120. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1673
  121. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -202
  122. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -872
  123. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +0 -35
  124. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +0 -289
  125. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +0 -72
  126. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +0 -600
  127. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +0 -36
  128. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +0 -239
  129. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.d.ts +0 -22
  130. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +0 -143
  131. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.d.ts +0 -24
  132. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +0 -298
  133. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +0 -25
  134. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +0 -177
  135. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +0 -73
  136. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +0 -577
  137. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +0 -11
  138. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +0 -90
  139. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +0 -16
  140. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +0 -130
  141. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +0 -12
  142. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +0 -53
  143. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +0 -5
  144. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +0 -12
  145. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +0 -10
  146. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +0 -92
  147. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -38
  148. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -518
  149. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
  150. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -231
  151. package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.d.ts +0 -20
  152. package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.js +0 -17
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.d.ts +0 -6
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +0 -283
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.d.ts +0 -91
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +0 -340
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.d.ts +0 -17
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +0 -272
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +0 -686
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css +0 -348
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css +0 -8
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css +0 -92
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css +0 -119
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css +0 -79
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css +0 -61
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditController.css +0 -55
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditorOverlay.css +0 -63
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css +0 -79
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css +0 -63
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css +0 -92
  171. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css +0 -79
  172. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css +0 -24
  173. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css +0 -61
  174. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css +0 -102
  175. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.d.ts +0 -27
  176. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +0 -131
  177. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.d.ts +0 -18
  178. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.js +0 -92
  179. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.d.ts +0 -105
  180. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -673
  181. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.d.ts +0 -9
  182. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +0 -37
  183. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.d.ts +0 -354
  184. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2926
  185. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.d.ts +0 -29
  186. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +0 -36
  187. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.d.ts +0 -1
  188. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +0 -19
  189. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.d.ts +0 -200
  190. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +0 -591
  191. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.d.ts +0 -56
  192. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +0 -30
  193. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.d.ts +0 -99
  194. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +0 -131
  195. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.d.ts +0 -30
  196. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +0 -115
  197. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.d.ts +0 -28
  198. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +0 -158
  199. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.d.ts +0 -40
  200. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +0 -183
  201. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.d.ts +0 -10
  202. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +0 -66
  203. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.d.ts +0 -52
  204. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +0 -429
  205. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.d.ts +0 -6
  206. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +0 -108
  207. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.d.ts +0 -36
  208. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +0 -221
  209. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.d.ts +0 -17
  210. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +0 -142
  211. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.d.ts +0 -5
  212. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +0 -23
  213. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.d.ts +0 -18
  214. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +0 -104
  215. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.d.ts +0 -92
  216. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +0 -762
  217. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.d.ts +0 -15
  218. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +0 -58
  219. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.d.ts +0 -36
  220. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +0 -357
  221. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.d.ts +0 -6
  222. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +0 -32
  223. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.d.ts +0 -47
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +0 -260
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.d.ts +0 -9
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.js +0 -10
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.d.ts +0 -10
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +0 -24
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.d.ts +0 -182
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +0 -796
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.d.ts +0 -13
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +0 -79
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.d.ts +0 -30
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +0 -126
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.d.ts +0 -6
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +0 -32
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.d.ts +0 -8
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +0 -50
  239. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.d.ts +0 -18
  240. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +0 -119
  241. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.d.ts +0 -57
  242. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +0 -443
  243. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.d.ts +0 -20
  244. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +0 -56
  245. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.d.ts +0 -24
  246. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +0 -121
  247. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.d.ts +0 -152
  248. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +0 -1288
  249. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.d.ts +0 -59
  250. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +0 -287
  251. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.d.ts +0 -117
  252. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.js +0 -6
  253. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.d.ts +0 -222
  254. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +0 -1840
  255. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.d.ts +0 -63
  256. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +0 -449
  257. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewMessages.d.ts +0 -432
  258. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.d.ts +0 -18
  259. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +0 -2546
  260. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.d.ts +0 -8
  261. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +0 -105
  262. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.d.ts +0 -137
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +0 -646
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.d.ts +0 -21
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +0 -101
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.d.ts +0 -13
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +0 -111
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.d.ts +0 -30
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +0 -65
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.d.ts +0 -13
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +0 -49
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.d.ts +0 -89
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +0 -472
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.d.ts +0 -11
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +0 -34
  276. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.d.ts +0 -33
  277. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +0 -275
  278. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.d.ts +0 -69
  279. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +0 -269
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.d.ts +0 -125
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +0 -958
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.d.ts +0 -9
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +0 -11
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.d.ts +0 -20
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +0 -101
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.d.ts +0 -65
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +0 -458
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.d.ts +0 -80
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +0 -708
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.d.ts +0 -37
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +0 -193
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.d.ts +0 -7
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +0 -62
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.d.ts +0 -108
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +0 -717
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.d.ts +0 -23
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -183
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.d.ts +0 -11
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +0 -134
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.d.ts +0 -20
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +0 -135
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.d.ts +0 -27
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +0 -213
  304. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.d.ts +0 -27
  305. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +0 -104
  306. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.d.ts +0 -115
  307. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +0 -480
  308. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +0 -87
  309. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -352
  310. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.d.ts +0 -81
  311. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +0 -9
  312. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.d.ts +0 -10
  313. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +0 -19
@@ -1,294 +0,0 @@
1
-
2
- import { URI } from '../../../../../base/common/uri.js';
3
- import { ChatConfiguration } from '../constants.js';
4
-
5
- var MarketplaceReferenceKind;
6
- (function(MarketplaceReferenceKind) {
7
- MarketplaceReferenceKind["GitHubShorthand"] = "githubShorthand";
8
- MarketplaceReferenceKind["GitUri"] = "gitUri";
9
- MarketplaceReferenceKind["LocalFileUri"] = "localFileUri";
10
- })(MarketplaceReferenceKind || (MarketplaceReferenceKind = {}));
11
- const _githubShorthandRe = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+(?:#.+)?$/;
12
- function readConfiguredMarketplaces(configurationService) {
13
- const userValues = configurationService.getValue(ChatConfiguration.PluginMarketplaces) ?? [];
14
- const extraObj = configurationService.getValue(ChatConfiguration.ExtraMarketplaces) ?? {};
15
- const extraValues = Object.entries(extraObj).flatMap(([name, value]) => {
16
- if (typeof value !== "string") {
17
- return [];
18
- }
19
- const encoded = parseExtraMarketplaceConfigValue(value);
20
- const src = encoded?.source ?? value;
21
- const autoUpdate = encoded?.autoUpdate;
22
- const isGithubShorthand = _githubShorthandRe.test(src);
23
- return [isGithubShorthand ? {
24
- name,
25
- autoUpdate,
26
- source: {
27
- source: "github",
28
- repo: src
29
- }
30
- } : {
31
- name,
32
- autoUpdate,
33
- source: {
34
- source: "git",
35
- url: src
36
- }
37
- }];
38
- });
39
- return {
40
- userValues,
41
- extraValues,
42
- effectiveValues: [...userValues, ...extraValues]
43
- };
44
- }
45
- function parseExtraMarketplaceConfigValue(value) {
46
- try {
47
- const parsed = JSON.parse(value);
48
- return parsed && typeof parsed === "object" && typeof parsed.source === "string" && typeof parsed.autoUpdate === "boolean" ? parsed : undefined;
49
- } catch {
50
- return undefined;
51
- }
52
- }
53
- function parseMarketplaceReferences(values) {
54
- const byCanonicalId = ( new Map());
55
- for (const value of values) {
56
- let parsed;
57
- if (typeof value === "string") {
58
- parsed = parseMarketplaceReference(value);
59
- } else if (value && typeof value === "object") {
60
- parsed = parseMarketplaceObjectEntry(value);
61
- }
62
- if (parsed) {
63
- const existing = byCanonicalId.get(parsed.canonicalId);
64
- if (!existing) {
65
- byCanonicalId.set(parsed.canonicalId, parsed);
66
- } else if (parsed.autoUpdate !== undefined) {
67
- byCanonicalId.set(parsed.canonicalId, {
68
- ...existing,
69
- autoUpdate: parsed.autoUpdate
70
- });
71
- }
72
- }
73
- }
74
- return [...( byCanonicalId.values())];
75
- }
76
- function parseMarketplaceObjectEntry(entry) {
77
- let sourceType;
78
- let repo;
79
- let url;
80
- let ref;
81
- if (entry.source && typeof entry.source === "object") {
82
- const nested = entry.source;
83
- sourceType = nested.source;
84
- repo = nested.repo;
85
- url = nested.url;
86
- ref = nested.ref;
87
- } else {
88
- sourceType = entry.source;
89
- repo = entry.repo;
90
- url = entry.url;
91
- ref = entry.ref;
92
- }
93
- let parsed;
94
- if (sourceType === "github" && typeof repo === "string") {
95
- parsed = parseMarketplaceReference(appendMarketplaceRef(repo, ref));
96
- } else if (sourceType === "git" && typeof url === "string") {
97
- parsed = parseMarketplaceReference(appendMarketplaceRef(url, ref));
98
- }
99
- if (parsed && typeof entry.name === "string" && entry.name.length > 0) {
100
- parsed = {
101
- ...parsed,
102
- displayLabel: entry.name
103
- };
104
- }
105
- if (parsed && typeof entry.autoUpdate === "boolean") {
106
- parsed = {
107
- ...parsed,
108
- autoUpdate: entry.autoUpdate
109
- };
110
- }
111
- return parsed;
112
- }
113
- function appendMarketplaceRef(value, ref) {
114
- if (!ref) {
115
- return value;
116
- }
117
- const fragmentIndex = value.indexOf("#");
118
- const base = fragmentIndex === -1 ? value : value.slice(0, fragmentIndex);
119
- return `${base}#${ref}`;
120
- }
121
- function deduplicateMarketplaceReferences(primary, secondary) {
122
- const byCanonicalId = ( new Map());
123
- for (const ref of primary) {
124
- byCanonicalId.set(ref.canonicalId, ref);
125
- }
126
- for (const ref of secondary) {
127
- if (!( byCanonicalId.has(ref.canonicalId))) {
128
- byCanonicalId.set(ref.canonicalId, ref);
129
- }
130
- }
131
- return [...( byCanonicalId.values())];
132
- }
133
- function parseMarketplaceReference(value) {
134
- const rawValue = value.trim();
135
- if (!rawValue) {
136
- return undefined;
137
- }
138
- const uriReference = parseUriMarketplaceReference(rawValue);
139
- if (uriReference) {
140
- return uriReference;
141
- }
142
- const scpReference = parseScpMarketplaceReference(rawValue);
143
- if (scpReference) {
144
- return scpReference;
145
- }
146
- const shorthandMatch = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)(?:#(.+))?$/.exec(rawValue);
147
- if (shorthandMatch) {
148
- const owner = shorthandMatch[1];
149
- const repo = shorthandMatch[2];
150
- const ref = shorthandMatch[3];
151
- return {
152
- rawValue,
153
- displayLabel: rawValue,
154
- cloneUrl: `https://github.com/${owner}/${repo}.git`,
155
- canonicalId: getGitHubCanonicalId(owner, repo, ref),
156
- cacheSegments: ["github.com", owner, repo, ...getRefCacheSegments(ref)],
157
- kind: MarketplaceReferenceKind.GitHubShorthand,
158
- ref,
159
- githubRepo: `${owner}/${repo}`
160
- };
161
- }
162
- return undefined;
163
- }
164
- function parseUriMarketplaceReference(rawValue) {
165
- let uri;
166
- try {
167
- uri = ( URI.parse(rawValue));
168
- } catch {
169
- return undefined;
170
- }
171
- const scheme = uri.scheme.toLowerCase();
172
- if (scheme === "file" && /^file:\/\//i.test(rawValue)) {
173
- if (uri.fragment) {
174
- return undefined;
175
- }
176
- const localRepositoryUri = URI.file(uri.fsPath);
177
- return {
178
- rawValue,
179
- displayLabel: localRepositoryUri.fsPath,
180
- cloneUrl: rawValue,
181
- canonicalId: `file:${( localRepositoryUri.toString()).toLowerCase()}`,
182
- cacheSegments: [],
183
- kind: MarketplaceReferenceKind.LocalFileUri,
184
- localRepositoryUri
185
- };
186
- }
187
- if (scheme !== "http" && scheme !== "https" && scheme !== "ssh") {
188
- return undefined;
189
- }
190
- if (!uri.authority) {
191
- return undefined;
192
- }
193
- const ref = uri.fragment || undefined;
194
- const cloneUri = uri.fragment ? uri.with({
195
- fragment: ""
196
- }) : uri;
197
- const sanitizedAuthority = sanitizePathSegment(uri.authority.toLowerCase());
198
- const trimmedPath = uri.path.replace(/\/+/g, "/").replace(/\/+$/g, "").replace(/^\/+/, "");
199
- if (!trimmedPath) {
200
- return {
201
- rawValue,
202
- displayLabel: rawValue,
203
- cloneUrl: ( cloneUri.toString()),
204
- canonicalId: appendRefSuffix(`git:${uri.authority.toLowerCase()}/`, ref),
205
- cacheSegments: [sanitizedAuthority, ...getRefCacheSegments(ref)],
206
- kind: MarketplaceReferenceKind.GitUri,
207
- ref
208
- };
209
- }
210
- const gitSuffix = ".git";
211
- const pathHasGitSuffix = trimmedPath.toLowerCase().endsWith(gitSuffix);
212
- const pathWithoutGit = pathHasGitSuffix ? trimmedPath.slice(0, trimmedPath.length - gitSuffix.length) : trimmedPath;
213
- const pathSegments = ( pathWithoutGit.split("/").map(sanitizePathSegment));
214
- const canonicalPath = pathHasGitSuffix ? trimmedPath.toLowerCase() : `${trimmedPath.toLowerCase()}${gitSuffix}`;
215
- const githubRepo = extractGitHubRepo(uri.authority, pathWithoutGit);
216
- let canonicalId;
217
- if (githubRepo) {
218
- const [owner, repo] = githubRepo.split("/");
219
- canonicalId = getGitHubCanonicalId(owner, repo, ref);
220
- } else {
221
- canonicalId = appendRefSuffix(`git:${uri.authority.toLowerCase()}/${canonicalPath}`, ref);
222
- }
223
- return {
224
- rawValue,
225
- displayLabel: rawValue,
226
- cloneUrl: ( cloneUri.toString()),
227
- canonicalId,
228
- cacheSegments: [sanitizedAuthority, ...pathSegments, ...getRefCacheSegments(ref)],
229
- kind: MarketplaceReferenceKind.GitUri,
230
- ref,
231
- githubRepo
232
- };
233
- }
234
- function parseScpMarketplaceReference(rawValue) {
235
- const match = /^([^@\s]+)@([^:\s]+):(.+?\.git)(?:#(.+))?$/i.exec(rawValue);
236
- if (!match) {
237
- return undefined;
238
- }
239
- const gitSuffix = ".git";
240
- const authority = match[2];
241
- const pathWithGit = match[3].replace(/^\/+/, "");
242
- const ref = match[4];
243
- if (!pathWithGit.toLowerCase().endsWith(gitSuffix)) {
244
- return undefined;
245
- }
246
- const pathWithoutGit = pathWithGit.slice(0, -gitSuffix.length);
247
- const pathSegments = ( pathWithoutGit.split("/").map(sanitizePathSegment));
248
- const githubRepo = extractGitHubRepo(authority, pathWithoutGit);
249
- let canonicalId;
250
- if (githubRepo) {
251
- const [owner, repo] = githubRepo.split("/");
252
- canonicalId = getGitHubCanonicalId(owner, repo, ref);
253
- } else {
254
- canonicalId = appendRefSuffix(`git:${authority.toLowerCase()}/${pathWithGit.toLowerCase()}`, ref);
255
- }
256
- return {
257
- rawValue,
258
- displayLabel: rawValue,
259
- cloneUrl: `${match[1]}@${authority}:${pathWithGit}`,
260
- canonicalId,
261
- cacheSegments: [
262
- sanitizePathSegment(authority.toLowerCase()),
263
- ...pathSegments,
264
- ...getRefCacheSegments(ref)
265
- ],
266
- kind: MarketplaceReferenceKind.GitUri,
267
- ref,
268
- githubRepo
269
- };
270
- }
271
- function extractGitHubRepo(authority, pathWithoutGit) {
272
- if (authority.toLowerCase() !== "github.com") {
273
- return undefined;
274
- }
275
- const parts = pathWithoutGit.split("/");
276
- if (parts.length >= 2 && parts[0] && parts[1]) {
277
- return `${parts[0]}/${parts[1]}`;
278
- }
279
- return undefined;
280
- }
281
- function getGitHubCanonicalId(owner, repo, ref) {
282
- return appendRefSuffix(`github:${owner.toLowerCase()}/${repo.toLowerCase()}`, ref);
283
- }
284
- function appendRefSuffix(canonicalId, ref) {
285
- return ref ? `${canonicalId}#${encodeURIComponent(ref)}` : canonicalId;
286
- }
287
- function getRefCacheSegments(ref) {
288
- return ref ? [`ref_${encodeURIComponent(ref)}`] : [];
289
- }
290
- function sanitizePathSegment(value) {
291
- return value.replace(/[\\/:*?"<>|]/g, "_");
292
- }
293
-
294
- export { MarketplaceReferenceKind, deduplicateMarketplaceReferences, parseMarketplaceObjectEntry, parseMarketplaceReference, parseMarketplaceReferences, readConfiguredMarketplaces };
@@ -1,212 +0,0 @@
1
- import { CancellationToken } from "../../../../../base/common/cancellation.js";
2
- import { Event } from "../../../../../base/common/event.js";
3
- import { Disposable } from "../../../../../base/common/lifecycle.js";
4
- import { IObservable } from "../../../../../base/common/observable.js";
5
- import { URI } from "../../../../../base/common/uri.js";
6
- import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js";
7
- import { IEnvironmentService } from "../../../../../platform/environment/common/environment.service.js";
8
- import { IFileService } from "../../../../../platform/files/common/files.service.js";
9
- import { ILogService } from "../../../../../platform/log/common/log.service.js";
10
- import { IMeteredConnectionService } from "../../../../../platform/meteredConnection/common/meteredConnection.service.js";
11
- import { IRequestService } from "../../../../../platform/request/common/request.service.js";
12
- import { IStorageService } from "../../../../../platform/storage/common/storage.service.js";
13
- import { IExtensionsWorkbenchService } from "../../../extensions/common/extensions.service.js";
14
- import { IAgentPluginRepositoryService } from "./agentPluginRepositoryService.service.js";
15
- import { IWorkspacePluginSettingsService } from "./workspacePluginSettingsService.service.js";
16
- import { IWorkspaceTrustManagementService } from "../../../../../platform/workspace/common/workspaceTrust.service.js";
17
- import { type IMarketplaceReference } from "./marketplaceReference.js";
18
- import { IPluginMarketplaceService } from "./pluginMarketplaceService.service.js";
19
- export { deduplicateMarketplaceReferences, extraKnownMarketplacesToConfigDict, MarketplaceReferenceKind, parseMarketplaceReference, parseMarketplaceReferences, readConfiguredMarketplaces } from "./marketplaceReference.js";
20
- export type { IConfiguredMarketplaces, IMarketplaceReference } from "./marketplaceReference.js";
21
- export declare enum MarketplaceType {
22
- Copilot = "copilot",
23
- Claude = "claude",
24
- OpenPlugin = "openPlugin"
25
- }
26
- export declare enum PluginSourceKind {
27
- RelativePath = "relativePath",
28
- GitHub = "github",
29
- GitUrl = "url",
30
- Npm = "npm",
31
- Pip = "pip"
32
- }
33
- export interface IRelativePathPluginSource {
34
- readonly kind: PluginSourceKind.RelativePath;
35
- /** Resolved relative path within the marketplace repository. */
36
- readonly path: string;
37
- }
38
- export interface IGitHubPluginSource {
39
- readonly kind: PluginSourceKind.GitHub;
40
- readonly repo: string;
41
- readonly ref?: string;
42
- readonly sha?: string;
43
- readonly path?: string;
44
- }
45
- export interface IGitUrlPluginSource {
46
- readonly kind: PluginSourceKind.GitUrl;
47
- /** Full git repository URL (must end with .git). */
48
- readonly url: string;
49
- readonly ref?: string;
50
- readonly sha?: string;
51
- /** Subdirectory within the repository where the plugin lives (for `git-subdir` sources). */
52
- readonly path?: string;
53
- }
54
- export interface INpmPluginSource {
55
- readonly kind: PluginSourceKind.Npm;
56
- readonly package: string;
57
- readonly version?: string;
58
- readonly registry?: string;
59
- }
60
- export interface IPipPluginSource {
61
- readonly kind: PluginSourceKind.Pip;
62
- readonly package: string;
63
- readonly version?: string;
64
- readonly registry?: string;
65
- }
66
- export type IPluginSourceDescriptor = IRelativePathPluginSource | IGitHubPluginSource | IGitUrlPluginSource | INpmPluginSource | IPipPluginSource;
67
- export interface IMarketplacePlugin {
68
- readonly name: string;
69
- readonly description: string;
70
- readonly version: string;
71
- /** Subdirectory within the repository where the plugin lives (for relative-path sources). */
72
- readonly source: string;
73
- /** Structured source descriptor indicating how the plugin should be fetched/installed. */
74
- readonly sourceDescriptor: IPluginSourceDescriptor;
75
- /** Marketplace label shown in UI and plugin provenance. */
76
- readonly marketplace: string;
77
- /** Canonical reference for clone/update/install location resolution. */
78
- readonly marketplaceReference: IMarketplaceReference;
79
- /** The type of marketplace this plugin comes from. */
80
- readonly marketplaceType: MarketplaceType;
81
- readonly readmeUri?: URI;
82
- }
83
- /** Raw JSON shape of a remote plugin source object in marketplace.json. */
84
- interface IJsonPluginSource {
85
- readonly source: string;
86
- readonly repo?: string;
87
- readonly url?: string;
88
- readonly package?: string;
89
- readonly ref?: string;
90
- readonly sha?: string;
91
- readonly path?: string;
92
- readonly version?: string;
93
- readonly registry?: string;
94
- }
95
- export interface IMarketplaceInstalledPlugin {
96
- readonly pluginUri: URI;
97
- readonly plugin: IMarketplacePlugin;
98
- }
99
- /**
100
- * Options for fetching marketplace plugins.
101
- */
102
- export interface IFetchMarketplacePluginsOptions {
103
- /** Bypass the marketplace caches (HTTP TTL cache and cloned-repository TTL) and re-read from the remote. */
104
- readonly refresh?: boolean;
105
- /**
106
- * Called for each marketplace that could not be read. Individual failures
107
- * are otherwise swallowed so that one bad marketplace cannot fail the
108
- * whole fetch, which leaves callers unable to tell a partial result from
109
- * a complete one.
110
- */
111
- readonly onMarketplaceError?: (reference: IMarketplaceReference, error: unknown) => void;
112
- }
113
- export declare class PluginMarketplaceService extends Disposable implements IPluginMarketplaceService {
114
- private readonly _configurationService;
115
- private readonly _requestService;
116
- private readonly _fileService;
117
- private readonly _pluginRepositoryService;
118
- private readonly _logService;
119
- private readonly _storageService;
120
- private readonly _workspacePluginSettingsService;
121
- private readonly _workspaceTrustService;
122
- private readonly _extensionsWorkbenchService;
123
- private readonly _meteredConnectionService;
124
- readonly _serviceBrand: undefined;
125
- private readonly _gitHubMarketplaceCache;
126
- private readonly _installedPluginsStore;
127
- private readonly _pluginMetadata;
128
- private readonly _trustedMarketplacesStore;
129
- private readonly _lastFetchedPluginsStore;
130
- private readonly _marketplacesWithUpdates;
131
- private readonly _updateCheckDelayer;
132
- private _updateChecksInitialized;
133
- private _updateCheckRunning;
134
- readonly onDidChangeMarketplaces: Event<void>;
135
- readonly installedPlugins: IObservable<readonly IMarketplaceInstalledPlugin[]>;
136
- readonly marketplacesWithUpdates: IObservable<ReadonlySet<string>>;
137
- readonly lastFetchedPlugins: IObservable<readonly IMarketplacePlugin[]>;
138
- readonly recommendedPlugins: IObservable<ReadonlySet<string>>;
139
- constructor(_configurationService: IConfigurationService, _requestService: IRequestService, environmentService: IEnvironmentService, _fileService: IFileService, _pluginRepositoryService: IAgentPluginRepositoryService, _logService: ILogService, _storageService: IStorageService, _workspacePluginSettingsService: IWorkspacePluginSettingsService, _workspaceTrustService: IWorkspaceTrustManagementService, _extensionsWorkbenchService: IExtensionsWorkbenchService, _meteredConnectionService: IMeteredConnectionService);
140
- clearUpdatesAvailable(marketplaceIds?: ReadonlySet<string>): void;
141
- fetchMarketplacePlugins(token: CancellationToken, marketplaceIds?: ReadonlySet<string>, options?: IFetchMarketplacePluginsOptions): Promise<IMarketplacePlugin[]>;
142
- private _fetchFromGitHubRepo;
143
- private _getCachedGitHubMarketplacePlugins;
144
- private _loadPersistedGitHubMarketplaceCache;
145
- private _savePersistedGitHubMarketplaceCache;
146
- getMarketplacePluginMetadata(pluginUri: URI): IMarketplacePlugin | undefined;
147
- addInstalledPlugin(pluginUri: URI, plugin: IMarketplacePlugin): void;
148
- removeInstalledPlugin(pluginUri: URI): void;
149
- isMarketplaceTrusted(ref: IMarketplaceReference): boolean;
150
- isStrictMarketplacePolicyActive(): boolean;
151
- isMarketplaceAutoUpdateEnabled(ref: IMarketplaceReference): boolean;
152
- private _isMarketplaceAllowedByStrictPolicy;
153
- /**
154
- * Hydrates installed entries from marketplace metadata. Entries written
155
- * by current builds include the marketplace plugin name, which is enough
156
- * to re-read the full plugin descriptor from the marketplace source. Old
157
- * entries without a name fall back to matching by install URI. Entries
158
- * that came from a single-plugin repository have no marketplace index to
159
- * look up at all and are recovered from the manifest in their install
160
- * directory.
161
- *
162
- * After hydration completes the installed-plugins store is "touched" so
163
- * that the derived {@link installedPlugins} observable re-evaluates with
164
- * the newly available metadata.
165
- */
166
- private _hydratePluginMetadata;
167
- private _readPluginsForInstalledEntry;
168
- /**
169
- * Shared logic to parse a marketplace.json into {@link IMarketplacePlugin}
170
- * objects. Used by both fetch and hydration paths.
171
- */
172
- private _parseMarketplacePlugins;
173
- trustMarketplace(ref: IMarketplaceReference): void;
174
- private _hasAutoUpdateEnabledMarketplace;
175
- /**
176
- * (Re-)schedules the next periodic update check after startup idle and
177
- * whenever the auto-update config or metered connection state changes.
178
- */
179
- private _scheduleUpdateCheck;
180
- private _doRunUpdateCheck;
181
- private _fetchFromClonedRepo;
182
- readPluginsFromDirectory(repoDir: URI, reference: IMarketplaceReference): Promise<IMarketplacePlugin[]>;
183
- readSinglePluginManifest(repoDir: URI, reference: IMarketplaceReference): Promise<IMarketplacePlugin | undefined>;
184
- isPluginDirectory(repoDir: URI): Promise<boolean>;
185
- private _readPluginsFromDirectory;
186
- /**
187
- * Iterates over {@link MARKETPLACE_DEFINITIONS} paths, calling
188
- * {@link readJson} for each to obtain the parsed JSON. Returns the
189
- * plugins from the first definition that yields a valid result.
190
- */
191
- private _readPluginsFromDefinitions;
192
- }
193
- /**
194
- * Parse a raw `source` field from marketplace.json into a structured
195
- * {@link IPluginSourceDescriptor}. Accepts either a relative-path string
196
- * or a JSON object with a `source` discriminant indicating the kind.
197
- */
198
- export declare function parsePluginSource(rawSource: string | IJsonPluginSource | undefined, pluginRoot: string | undefined, logContext: {
199
- pluginName: string;
200
- logService: ILogService;
201
- logPrefix: string;
202
- }): IPluginSourceDescriptor | undefined;
203
- /**
204
- * Returns a human-readable label for a plugin source descriptor,
205
- * suitable for error messages and UI display.
206
- */
207
- export declare function getPluginSourceLabel(descriptor: IPluginSourceDescriptor): string;
208
- /**
209
- * Returns `true` when the marketplace source descriptor differs from the
210
- * installed one — meaning an update should be performed.
211
- */
212
- export declare function hasSourceChanged(installed: IPluginSourceDescriptor, marketplace: IPluginSourceDescriptor): boolean;