@codingame/monaco-vscode-chat-service-override 37.0.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 (459) hide show
  1. package/index.js +26 -5
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/agentHost/browser/agentHostEnablementService.js +1 -1
  4. package/vscode/src/vs/platform/agentHost/browser/agentHostProtocolClient.js +1 -1
  5. package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.d.ts +74 -0
  6. package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.js +90 -0
  7. package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.d.ts +8 -0
  8. package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.js +16 -0
  9. package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +53 -53
  10. package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.d.ts +16 -0
  11. package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.js +14 -0
  12. package/vscode/src/vs/platform/agentHost/common/agentMerge.js +7 -7
  13. package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.d.ts +24 -0
  14. package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.js +13 -0
  15. package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +22 -0
  16. package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +21 -0
  17. package/vscode/src/vs/platform/agentHost/common/agentModelPricing.d.ts +114 -0
  18. package/vscode/src/vs/platform/agentHost/common/agentModelPricing.js +56 -0
  19. package/vscode/src/vs/platform/agentHost/common/changesetUri.js +15 -1
  20. package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.d.ts +73 -0
  21. package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.js +141 -0
  22. package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.js +42 -1
  23. package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.d.ts +27 -0
  24. package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.js +14 -0
  25. package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.d.ts +14 -0
  26. package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.js +11 -0
  27. package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +13 -13
  28. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +1 -1
  29. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +4 -1
  30. package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.d.ts +4 -0
  31. package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.js +6 -0
  32. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
  33. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +104 -0
  34. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +827 -0
  35. package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +15 -0
  36. package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +71 -0
  37. package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.d.ts +16 -0
  38. package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.js +95 -0
  39. package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.d.ts +22 -0
  40. package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js +286 -0
  41. package/vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.d.ts +10 -0
  42. package/vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.js +38 -0
  43. package/vscode/src/vs/workbench/api/browser/mainThreadChatQuota.d.ts +9 -0
  44. package/vscode/src/vs/workbench/api/browser/mainThreadChatQuota.js +22 -0
  45. package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +130 -0
  46. package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +907 -0
  47. package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.d.ts +10 -0
  48. package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.js +28 -0
  49. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +27 -0
  50. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +167 -0
  51. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.d.ts +46 -0
  52. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +356 -0
  53. package/vscode/src/vs/workbench/browser/chatChangesPill.js +2 -2
  54. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +28 -28
  55. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
  56. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +18 -18
  57. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +4 -4
  58. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
  59. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
  60. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +11 -11
  61. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
  62. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
  63. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
  64. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
  65. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
  66. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
  67. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +28 -28
  68. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +1 -1
  69. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +18 -18
  70. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  71. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +93 -93
  72. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
  74. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
  75. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
  76. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +7 -7
  77. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  78. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +7 -7
  79. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  80. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  81. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  82. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
  83. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -13
  84. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +16 -16
  85. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  86. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -15
  87. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  88. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
  89. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +32 -32
  90. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +10 -10
  91. package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +5 -5
  92. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
  93. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +3 -3
  94. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  95. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +2 -2
  96. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +1 -1
  97. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +14 -14
  98. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +16 -16
  99. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.d.ts +34 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.js +229 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.d.ts +57 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +460 -0
  103. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationSyncProvider.d.ts +1 -1
  104. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.d.ts +1 -0
  105. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.js +92 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +1 -1
  107. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.d.ts +23 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.js +46 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.d.ts +142 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.js +746 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.d.ts +77 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +474 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.d.ts +169 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.js +261 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.d.ts +20 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.js +90 -0
  117. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.d.ts +35 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.js +73 -0
  119. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.d.ts +20 -0
  120. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.js +61 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +112 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +192 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +1 -1
  124. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +6 -6
  125. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.d.ts +21 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +137 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +301 -12
  128. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.d.ts +84 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.js +96 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.d.ts +884 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +5870 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +19 -19
  133. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.d.ts +27 -0
  134. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.js +129 -0
  135. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.d.ts +42 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.js +221 -0
  137. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.d.ts +125 -0
  138. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.js +345 -0
  139. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +1 -1
  140. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.d.ts +1 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +68 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.d.ts +62 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +163 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.d.ts +54 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +219 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.d.ts +10 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.js +50 -0
  148. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.d.ts +42 -0
  149. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +132 -0
  150. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.d.ts +1 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +85 -0
  152. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.d.ts +79 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +161 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.d.ts +18 -0
  155. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.js +13 -0
  156. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.d.ts +28 -0
  157. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.js +71 -0
  158. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.d.ts +35 -0
  159. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.js +205 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +1 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +1 -1
  162. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +51 -51
  163. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +1 -1
  164. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +4 -4
  165. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +1 -1
  166. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +1 -1
  167. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  168. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +1 -1
  169. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
  170. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +1 -1
  171. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +2 -2
  172. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -5
  173. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +23 -23
  174. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  175. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  176. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/externalSessionsFilterMenu.js +6 -6
  177. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +2 -2
  178. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.js +7 -7
  179. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +3 -3
  180. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -15
  181. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +1 -1
  182. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +1 -1
  183. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +3 -3
  184. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +126 -126
  185. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +44 -44
  186. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +138 -138
  187. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +3 -3
  188. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.d.ts +1 -1
  189. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.js +6 -6
  190. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +37 -37
  191. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +1 -1
  192. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +1 -1
  193. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +1 -1
  194. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigration.d.ts +1 -1
  196. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +6 -6
  197. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.js +146 -146
  198. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.js +29 -29
  199. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +9 -9
  200. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +1 -1
  201. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +40 -40
  202. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +7 -7
  203. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +8 -8
  204. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +5 -5
  205. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +76 -76
  206. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +1 -1
  207. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +116 -116
  208. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +1 -1
  209. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +4 -4
  210. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +50 -50
  211. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +2 -2
  212. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +356 -356
  213. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +1 -1
  214. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +38 -38
  215. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +5 -5
  216. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +1 -1
  217. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  218. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +1 -1
  219. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +124 -124
  220. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
  221. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +1 -1
  222. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  223. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  224. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +3 -3
  225. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
  226. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
  227. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +1 -1
  228. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +8 -8
  229. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  230. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  231. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
  232. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
  233. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +12 -12
  234. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +1 -1
  235. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +18 -18
  236. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +1 -1
  237. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
  238. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +1 -1
  239. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  240. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +1 -1
  241. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  242. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +36 -36
  243. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +1 -1
  244. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  245. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +40 -40
  246. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  247. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
  248. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
  249. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  250. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
  251. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  252. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  253. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -1
  254. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
  256. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
  257. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
  258. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +1 -1
  259. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  260. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +3 -3
  261. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.js +3 -3
  262. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
  263. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  264. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -63
  265. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
  266. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
  267. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +12 -12
  268. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +1 -1
  269. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
  270. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +35 -35
  271. package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +2 -2
  272. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +27 -27
  273. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  274. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +2 -0
  275. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +57 -0
  276. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +21 -21
  277. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +1 -1
  278. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +11 -11
  279. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +1 -1
  280. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  281. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +27 -27
  282. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +1 -1
  283. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +17 -17
  284. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +20 -20
  285. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +62 -62
  286. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +10 -10
  287. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
  288. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
  289. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +7 -7
  290. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  291. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
  292. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
  293. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  294. package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.d.ts +1 -1
  295. package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.js +1 -1
  296. package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationContribution.js +1 -1
  297. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
  298. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
  299. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +6 -6
  300. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +1 -1
  301. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +29 -29
  302. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +1 -1
  303. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +16 -16
  304. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +7 -7
  305. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +2 -2
  306. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +30 -30
  307. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +4 -4
  308. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  309. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +2 -2
  310. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  311. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  312. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  313. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  314. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  315. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +5 -5
  316. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +4 -4
  317. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +4 -4
  318. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +3 -3
  319. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +1 -1
  320. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +3 -3
  321. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +21 -21
  322. package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.js +18 -18
  323. package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.js +2 -2
  324. package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +10 -10
  325. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  326. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +26 -26
  327. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +9 -9
  328. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +1 -1
  329. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +8 -8
  330. package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
  331. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  332. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +1 -1
  333. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +17 -17
  334. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
  335. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +11 -11
  336. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +2 -2
  337. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.js +1 -1
  338. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +12 -12
  339. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +2 -2
  340. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +13 -5
  341. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputReferenceDecorations.js +1 -1
  342. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  343. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
  344. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -1
  345. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +11 -11
  346. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  347. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugEvents.d.ts +1 -1
  348. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +253 -0
  349. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +20 -0
  350. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +1 -1
  351. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +1 -1
  352. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +10 -10
  353. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +300 -0
  354. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +272 -0
  355. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
  356. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +25 -0
  357. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +178 -0
  358. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +78 -0
  359. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +51 -0
  360. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +2 -2
  361. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +14 -14
  362. package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +67 -0
  363. package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +195 -0
  364. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +67 -0
  365. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +294 -0
  366. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +212 -0
  367. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +955 -0
  368. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +31 -0
  369. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +122 -0
  370. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +1 -1
  371. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +1 -1
  372. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  373. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +65 -0
  374. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +698 -0
  375. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +50 -0
  376. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +78 -0
  377. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +77 -0
  378. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +120 -0
  379. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +10 -0
  380. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +23 -0
  381. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
  382. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
  383. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
  384. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +154 -154
  385. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +92 -0
  386. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +335 -0
  387. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +235 -0
  388. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +1673 -0
  389. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +202 -0
  390. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +872 -0
  391. package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.js +9 -9
  392. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +36 -0
  393. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +239 -0
  394. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.d.ts +21 -0
  395. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +143 -0
  396. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.d.ts +24 -0
  397. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +298 -0
  398. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +25 -0
  399. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +177 -0
  400. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +73 -0
  401. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +577 -0
  402. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +11 -0
  403. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +90 -0
  404. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +16 -0
  405. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +130 -0
  406. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +12 -0
  407. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +53 -0
  408. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +5 -0
  409. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +12 -0
  410. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +10 -0
  411. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +91 -0
  412. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +38 -0
  413. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +518 -0
  414. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +6 -0
  415. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +231 -0
  416. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  417. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
  418. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
  419. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
  420. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
  421. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  422. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +1 -1
  423. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
  424. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  425. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  426. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +11 -11
  427. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +9 -9
  428. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  429. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  430. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +10 -10
  431. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  432. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  433. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
  434. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
  435. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
  436. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  437. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  438. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  439. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
  440. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -4
  441. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -4
  442. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +4 -4
  443. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +3 -3
  444. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -5
  445. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +74 -74
  446. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +11 -11
  447. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
  448. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +8 -8
  449. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +15 -15
  450. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  451. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.d.ts +1 -1
  452. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.js +1 -1
  453. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +1 -1
  454. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +4 -4
  455. package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +3 -3
  456. package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +0 -30
  457. package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +0 -87
  458. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +0 -205
  459. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +0 -1580
@@ -0,0 +1,114 @@
1
+ import type { SessionModelInfo } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/state";
2
+ import type { IAgentModelInfo } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agent";
3
+ /**
4
+ * Well-known model picker metadata carried under a model's open `_meta` bag (see {@link IAgentModelInfo._meta} /
5
+ * {@link SessionModelInfo._meta}). Agents populate these keys so the chat model picker can render pricing,
6
+ * capability categories, and promotions.
7
+ *
8
+ * All cost values are expressed as credits per 1M tokens — the same unit the model picker hover renders (see
9
+ * `getModelHoverContent` in `modelPicker/modelPickerHover.ts`). Fields are optional; agents omit what they don't know.
10
+ */
11
+ export interface IAgentModelPricingMeta {
12
+ /** Request multiplier (e.g. `1.5` rendered as "1.5x"). */
13
+ readonly multiplierNumeric?: number;
14
+ /** Default-tier input cost in credits per 1M tokens. */
15
+ readonly inputCost?: number;
16
+ /** Default-tier cached-input (read) cost in credits per 1M tokens. */
17
+ readonly cacheCost?: number;
18
+ /** Default-tier cache-write cost in credits per 1M tokens. */
19
+ readonly cacheWriteCost?: number;
20
+ /** Default-tier output cost in credits per 1M tokens. */
21
+ readonly outputCost?: number;
22
+ /** Long-context-tier input cost in credits per 1M tokens. */
23
+ readonly longContextInputCost?: number;
24
+ /** Long-context-tier cached-input (read) cost in credits per 1M tokens. */
25
+ readonly longContextCacheCost?: number;
26
+ /** Long-context-tier cache-write cost in credits per 1M tokens. */
27
+ readonly longContextCacheWriteCost?: number;
28
+ /** Long-context-tier output cost in credits per 1M tokens. */
29
+ readonly longContextOutputCost?: number;
30
+ /** Coarse price bucket (e.g. `low`, `medium`, `high`) for an at-a-glance tag. */
31
+ readonly priceCategory?: string;
32
+ /** Capability category (e.g. `lightweight`, `versatile`, `powerful`) shown in the model picker hover. */
33
+ readonly category?: string;
34
+ /** Whole-number percentage discount (0-100) for the synthetic `auto` model; shown as a "{n}% discount" detail. */
35
+ readonly discountPercent?: number;
36
+ /** Promotional information for the model. A `discountPercent` of `0` is a valid message-only promo. */
37
+ readonly promo?: {
38
+ readonly id: string;
39
+ readonly discountPercent: number;
40
+ /** ISO 8601 end date; absent for open-ended promotions. */
41
+ readonly endsAt?: string;
42
+ readonly message: string;
43
+ readonly showBanner?: boolean;
44
+ };
45
+ }
46
+ /**
47
+ * Reads the well-known {@link IAgentModelPricingMeta} keys from a model's open `_meta` bag, ignoring any unrelated
48
+ * provider-specific keys and values of the wrong type. Returns an object containing only the keys that were present
49
+ * with a valid value.
50
+ */
51
+ export declare function readAgentModelPricingMeta(model: IAgentModelInfo | SessionModelInfo): IAgentModelPricingMeta;
52
+ /**
53
+ * Builds a `_meta` payload from {@link IAgentModelPricingMeta}, dropping `undefined` entries. Returns `undefined` when
54
+ * no model picker fields are known so callers can avoid attaching an empty `_meta` object.
55
+ */
56
+ export declare function createAgentModelPricingMeta(pricing: IAgentModelPricingMeta): Record<string, unknown> | undefined;
57
+ /**
58
+ * Normalizes a raw CAPI or Copilot SDK billing payload into the camelCase
59
+ * {@link ICAPIModelBilling} shape that {@link createPricingMetaFromBilling} expects.
60
+ * Prices are converted from the payload's billing batch to credits per million tokens.
61
+ */
62
+ export declare function normalizeCAPIBilling(raw: unknown): ICAPIModelBilling | undefined;
63
+ /**
64
+ * Normalized model billing shape shared by CAPI-backed agents and the Copilot SDK model list.
65
+ * Raw snake_case and current SDK fields are converted at the read boundary by {@link normalizeCAPIBilling}.
66
+ */
67
+ export interface ICAPIModelBilling {
68
+ readonly multiplier?: number;
69
+ /** Coarse price bucket surfaced as a tag in the model picker hover. */
70
+ readonly priceCategory?: string;
71
+ /** Whole-number percentage discount (0-100) for the synthetic `auto` model; rendered as a "{n}% discount" detail. */
72
+ readonly discountPercent?: number;
73
+ /** Promotional information for the model. A `discountPercent` of `0` is a valid message-only promo. */
74
+ readonly promo?: {
75
+ readonly id: string;
76
+ readonly discountPercent: number;
77
+ /** ISO 8601 end date; absent for open-ended promotions. */
78
+ readonly endsAt?: string;
79
+ readonly message: string;
80
+ /** Whether the promo may be surfaced as a chat input banner. Absent means eligible; only `false` suppresses it. */
81
+ readonly showBanner?: boolean;
82
+ };
83
+ readonly tokenPrices?: {
84
+ readonly contextMax?: number;
85
+ readonly inputPrice?: number;
86
+ readonly cachePrice?: number;
87
+ readonly cacheWritePrice?: number;
88
+ readonly outputPrice?: number;
89
+ readonly longContext?: {
90
+ readonly contextMax?: number;
91
+ readonly inputPrice?: number;
92
+ readonly cachePrice?: number;
93
+ readonly cacheWritePrice?: number;
94
+ readonly outputPrice?: number;
95
+ };
96
+ };
97
+ }
98
+ /**
99
+ * Converts a CAPI model's billing payload into an {@link IAgentModelPricingMeta} `_meta` bag. Long-context costs are
100
+ * only emitted when there is an actual surcharge (at least one long-context price differs from the default tier).
101
+ * When emitting, any missing long-context field falls back to the default-tier value so the hover table renders
102
+ * complete rows. See {@link hasLongContextSurcharge} for the surcharge detection logic.
103
+ *
104
+ * @param billing - The model's billing info, narrowed through {@link ICAPIModelBilling}.
105
+ * @param priceCategory - An optional override for the price category (e.g. from `modelPickerPriceCategory` on the
106
+ * model object itself). Falls back to `billing.priceCategory` when not provided.
107
+ * @param category - The model's capability category from its top-level `modelPickerCategory` field.
108
+ */
109
+ export declare function createPricingMetaFromBilling(billing: ICAPIModelBilling | undefined, priceCategory?: string, category?: string): Record<string, unknown> | undefined;
110
+ /**
111
+ * Whether the model's long-context tier has any cost that differs from its default tier.
112
+ * Drives the context-size picker default: smaller tier when surcharged, full window when free.
113
+ */
114
+ export declare function hasLongContextSurcharge(billing: ICAPIModelBilling | undefined): boolean;
@@ -0,0 +1,56 @@
1
+
2
+
3
+ const NUMBER_KEYS = [
4
+ "multiplierNumeric",
5
+ "inputCost",
6
+ "cacheCost",
7
+ "cacheWriteCost",
8
+ "outputCost",
9
+ "longContextInputCost",
10
+ "longContextCacheCost",
11
+ "longContextCacheWriteCost",
12
+ "longContextOutputCost",
13
+ "discountPercent"
14
+ ];
15
+ const COPILOT_MODEL_PICKER_CATEGORY_META_KEY = "copilot.modelPickerCategory";
16
+ function readAgentModelPricingMeta(model) {
17
+ const meta = model._meta;
18
+ if (!meta) {
19
+ return {};
20
+ }
21
+ const result = {};
22
+ for (const key of NUMBER_KEYS) {
23
+ const value = meta[key];
24
+ if (typeof value === "number") {
25
+ result[key] = value;
26
+ }
27
+ }
28
+ if (typeof meta.priceCategory === "string") {
29
+ result.priceCategory = meta.priceCategory;
30
+ }
31
+ if (typeof meta.category === "string") {
32
+ result.category = meta.category;
33
+ } else if (typeof meta[COPILOT_MODEL_PICKER_CATEGORY_META_KEY] === "string") {
34
+ result.category = meta[COPILOT_MODEL_PICKER_CATEGORY_META_KEY];
35
+ }
36
+ const rawPromo = meta.promo;
37
+ if (rawPromo && typeof rawPromo === "object" && !Array.isArray(rawPromo)) {
38
+ const p = rawPromo;
39
+ if (typeof p.id === "string" && typeof p.discountPercent === "number" && typeof p.message === "string") {
40
+ result.promo = {
41
+ id: p.id,
42
+ discountPercent: p.discountPercent,
43
+ message: p.message,
44
+ ...(typeof p.endsAt === "string" ? {
45
+ endsAt: p.endsAt
46
+ } : {}),
47
+ ...(typeof p.showBanner === "boolean" ? {
48
+ showBanner: p.showBanner
49
+ } : {})
50
+ };
51
+ }
52
+ }
53
+ return result;
54
+ }
55
+
56
+ export { readAgentModelPricingMeta };
@@ -4,6 +4,9 @@ import './agentMerge.js';
4
4
  import '@codingame/monaco-vscode-katex-common/vscode/vs/platform/agentHost/common/meta/agentSystemNotificationMeta';
5
5
  import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionState';
6
6
 
7
+ const BRANCH_CHANGESET_ID = "branch";
8
+ const TURN_CHANGESET_PREFIX = "turn/";
9
+ const CHANGESET_PATH_SEGMENT = "/changeset/";
7
10
  var ChangesetKind;
8
11
  (function(ChangesetKind) {
9
12
  ChangesetKind["Branch"] = "branch";
@@ -23,5 +26,16 @@ function resolveChangesetUriTemplate(sessionUri, uriTemplate) {
23
26
  }
24
27
  return `${sessionUri.replace(/\/+$/, "")}/${uriTemplate.replace(/^\/+/, "")}`;
25
28
  }
29
+ function buildBranchChangesetUri(sessionUri) {
30
+ return `${sessionUri}${CHANGESET_PATH_SEGMENT}${BRANCH_CHANGESET_ID}`;
31
+ }
32
+ function buildTurnChangesetUri(sessionUri, turnId) {
33
+ if (!turnId || turnId.includes("/")) {
34
+ throw ( new Error(
35
+ `buildTurnChangesetUri: turnId must be non-empty and not contain '/' (got ${JSON.stringify(turnId)})`
36
+ ));
37
+ }
38
+ return `${sessionUri}${CHANGESET_PATH_SEGMENT}${TURN_CHANGESET_PREFIX}${turnId}`;
39
+ }
26
40
 
27
- export { ChangesetKind, resolveChangesetUriTemplate, selectDefaultChangeset };
41
+ export { ChangesetKind, buildBranchChangesetUri, buildTurnChangesetUri, resolveChangesetUriTemplate, selectDefaultChangeset };
@@ -0,0 +1,73 @@
1
+ /**
2
+ * A single flattened completion form of a config-action slash command (the bare
3
+ * command or one of its named sub-arguments), ready to be emitted as a
4
+ * completion item.
5
+ */
6
+ export interface ICopilotConfigSlashCommandItem {
7
+ /**
8
+ * The text inserted when accepted. Empty for a pure toggle (nothing is left
9
+ * in the input); `/command ` (trailing space) for an item that keeps the text
10
+ * so an argument can be typed.
11
+ */
12
+ readonly insertText: string;
13
+ /** The display label shown in the picker (e.g. `/autopilot on`). */
14
+ readonly label: string;
15
+ /** The command name (without the leading `/`). */
16
+ readonly command: string;
17
+ /** Human-readable description shown in completion detail. */
18
+ readonly description: string;
19
+ /** Argument hint (ghost text) shown after acceptance for keep-text items. */
20
+ readonly argumentHint?: string;
21
+ /** The session-config change applied when accepted. */
22
+ readonly applyConfig: Readonly<Record<string, string>>;
23
+ /** Sort key used to order completions. */
24
+ readonly sortText: string;
25
+ }
26
+ /**
27
+ * The set of command names that are config-action commands. Used by the send
28
+ * path to decide whether a leading slash command should be intercepted (applied
29
+ * + stripped) rather than dispatched to the runtime.
30
+ */
31
+ export declare function isCopilotConfigSlashCommand(command: string): boolean;
32
+ /**
33
+ * The current session-config state used to filter config-action slash command
34
+ * completions so only the state-changing forms are offered (e.g. `/autopilot on`
35
+ * is hidden while already in autopilot mode).
36
+ */
37
+ export interface ICopilotConfigSlashCommandState {
38
+ /** The session's current `mode` axis value (e.g. `interactive` / `plan` / `autopilot`). */
39
+ readonly mode?: string;
40
+ /** The session's current `autoApprove` axis value (e.g. `default` / `autoApprove`). */
41
+ readonly autoApprove?: string;
42
+ }
43
+ /**
44
+ * Returns the flattened completion items (one per command form) whose command
45
+ * name fuzzy matches `typed` (the text after the leading `/`, case-insensitive).
46
+ * When `typed` is empty, all items are returned.
47
+ *
48
+ * When `state` (the session's current config values) is provided, pure toggle
49
+ * forms that would be a no-op are filtered out so only the state-changing forms
50
+ * are offered (see {@link shouldOfferOption}).
51
+ */
52
+ export declare function getCopilotConfigSlashCommandItems(typed: string, state?: ICopilotConfigSlashCommandState): ICopilotConfigSlashCommandItem[];
53
+ /**
54
+ * Result of resolving a config-action slash command on send.
55
+ */
56
+ export interface ICopilotConfigSlashCommandSendResult {
57
+ /** The session-config change to (re-)apply. */
58
+ readonly applyConfig: Readonly<Record<string, string>>;
59
+ /**
60
+ * The prompt text that should be forwarded to the runtime after stripping the
61
+ * command token (and any recognized sub-argument). Empty when the command is a
62
+ * pure toggle with no trailing prompt.
63
+ */
64
+ readonly strippedPrompt: string;
65
+ }
66
+ /**
67
+ * Resolves a leading config-action slash command for the send path: maps the
68
+ * command (and any recognized `on`/`off` sub-argument) to the session-config
69
+ * change to apply, and returns the remaining prompt text to forward with the
70
+ * command token stripped. Returns `undefined` for non-config-action commands so
71
+ * callers fall through to their normal (runtime) handling.
72
+ */
73
+ export declare function resolveCopilotConfigSlashCommandOnSend(command: string, rest: string): ICopilotConfigSlashCommandSendResult | undefined;
@@ -0,0 +1,141 @@
1
+
2
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
3
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
+ import { SessionConfigKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/sessionConfigKeys';
5
+
6
+ const AUTO_APPROVE_BYPASS = "autoApprove";
7
+ const AUTO_APPROVE_DEFAULT = "default";
8
+ const MODE_INTERACTIVE = "interactive";
9
+ const MODE_PLAN = "plan";
10
+ const MODE_AUTOPILOT = "autopilot";
11
+ function setBypassDetail() {
12
+ return localize(2094, "Set permissions to bypass approvals");
13
+ }
14
+ function setDefaultDetail() {
15
+ return localize(2095, "Set permissions back to default");
16
+ }
17
+ function autopilotOnDetail() {
18
+ return localize(2096, "Switch to autopilot mode");
19
+ }
20
+ function exitAutopilotDetail() {
21
+ return localize(2097, "Switch to interactive mode");
22
+ }
23
+ function autopilotPromptDetail() {
24
+ return localize(2098, "Switch to autopilot mode with an objective");
25
+ }
26
+ function planPromptDetail() {
27
+ return localize(2099, "Create an implementation plan before coding");
28
+ }
29
+ function autopilotArgumentHint() {
30
+ return localize(2100, "objective");
31
+ }
32
+ function promptArgumentHint() {
33
+ return localize(2101, "Describe what you want to plan or research");
34
+ }
35
+ function getConfigSlashCommands() {
36
+ return [{
37
+ command: "yolo",
38
+ sortText: "z1_yolo",
39
+ options: [{
40
+ arg: "on",
41
+ detail: setBypassDetail(),
42
+ config: {
43
+ [SessionConfigKey.AutoApprove]: AUTO_APPROVE_BYPASS
44
+ }
45
+ }, {
46
+ arg: "off",
47
+ detail: setDefaultDetail(),
48
+ config: {
49
+ [SessionConfigKey.AutoApprove]: AUTO_APPROVE_DEFAULT
50
+ }
51
+ }]
52
+ }, {
53
+ command: "allow-all",
54
+ sortText: "z1_allow-all",
55
+ options: [{
56
+ arg: "on",
57
+ detail: setBypassDetail(),
58
+ config: {
59
+ [SessionConfigKey.AutoApprove]: AUTO_APPROVE_BYPASS
60
+ }
61
+ }, {
62
+ arg: "off",
63
+ detail: setDefaultDetail(),
64
+ config: {
65
+ [SessionConfigKey.AutoApprove]: AUTO_APPROVE_DEFAULT
66
+ }
67
+ }]
68
+ }, {
69
+ command: "autopilot",
70
+ sortText: "z1_autopilot",
71
+ options: [{
72
+ arg: "on",
73
+ detail: autopilotOnDetail(),
74
+ config: {
75
+ [SessionConfigKey.Mode]: MODE_AUTOPILOT
76
+ }
77
+ }, {
78
+ arg: "off",
79
+ detail: exitAutopilotDetail(),
80
+ config: {
81
+ [SessionConfigKey.Mode]: MODE_INTERACTIVE
82
+ }
83
+ }, {
84
+ detail: autopilotPromptDetail(),
85
+ config: {
86
+ [SessionConfigKey.Mode]: MODE_AUTOPILOT
87
+ },
88
+ argumentHint: autopilotArgumentHint()
89
+ }]
90
+ }, {
91
+ command: "plan",
92
+ sortText: "z1_plan",
93
+ options: [{
94
+ detail: planPromptDetail(),
95
+ config: {
96
+ [SessionConfigKey.Mode]: MODE_PLAN
97
+ },
98
+ argumentHint: promptArgumentHint()
99
+ }]
100
+ }, {
101
+ command: "goal",
102
+ sortText: "z1_goal",
103
+ options: [{
104
+ detail: planPromptDetail(),
105
+ config: {
106
+ [SessionConfigKey.Mode]: MODE_PLAN
107
+ },
108
+ argumentHint: promptArgumentHint()
109
+ }]
110
+ }];
111
+ }
112
+ function resolveCopilotConfigSlashCommandOnSend(command, rest) {
113
+ const descriptor = getConfigSlashCommands().find(c => c.command.toLowerCase() === command.toLowerCase());
114
+ if (!descriptor) {
115
+ return undefined;
116
+ }
117
+ const trimmedRest = rest.trim();
118
+ const namedOptions = descriptor.options.filter(o => o.arg !== undefined);
119
+ const baseOption = descriptor.options.find(o => o.arg === undefined);
120
+ if (namedOptions.length > 0 && trimmedRest.length > 0) {
121
+ const match = /^(\S+)(?:\s+([\s\S]*))?$/.exec(trimmedRest);
122
+ const firstToken = match?.[1]?.toLowerCase();
123
+ const matched = namedOptions.find(o => o.arg?.toLowerCase() === firstToken);
124
+ if (matched) {
125
+ return {
126
+ applyConfig: matched.config,
127
+ strippedPrompt: (match?.[2] ?? "").trim()
128
+ };
129
+ }
130
+ if (!baseOption) {
131
+ return undefined;
132
+ }
133
+ }
134
+ const fallback = baseOption ?? descriptor.options[0];
135
+ return {
136
+ applyConfig: fallback.config,
137
+ strippedPrompt: trimmedRest
138
+ };
139
+ }
140
+
141
+ export { resolveCopilotConfigSlashCommandOnSend };
@@ -1,5 +1,46 @@
1
1
 
2
2
 
3
+ function readCompletionAttachmentMeta(attachment) {
4
+ const meta = attachment._meta;
5
+ if (!meta || typeof meta !== "object" || Array.isArray(meta)) {
6
+ return undefined;
7
+ }
8
+ if (typeof meta["command"] === "string") {
9
+ const action = readCompletionActionMeta(meta["action"]);
10
+ return {
11
+ kind: "command",
12
+ command: meta["command"],
13
+ ...(meta["isSkill"] === true ? {
14
+ isSkill: true
15
+ } : {}),
16
+ ...(typeof meta["description"] === "string" ? {
17
+ description: meta["description"]
18
+ } : {}),
19
+ ...(typeof meta["argumentHint"] === "string" ? {
20
+ argumentHint: meta["argumentHint"]
21
+ } : {}),
22
+ ...(action ? {
23
+ action
24
+ } : {})
25
+ };
26
+ }
27
+ if (typeof meta["uri"] === "string") {
28
+ return {
29
+ kind: "skill",
30
+ uri: meta["uri"],
31
+ ...(typeof meta["name"] === "string" ? {
32
+ name: meta["name"]
33
+ } : {}),
34
+ ...(typeof meta["displayName"] === "string" ? {
35
+ displayName: meta["displayName"]
36
+ } : {}),
37
+ ...(typeof meta["description"] === "string" ? {
38
+ description: meta["description"]
39
+ } : {})
40
+ };
41
+ }
42
+ return undefined;
43
+ }
3
44
  function getCompletionAction(meta) {
4
45
  if (!meta || typeof meta !== "object" || Array.isArray(meta)) {
5
46
  return undefined;
@@ -35,4 +76,4 @@ function getCommandArgumentHint(meta) {
35
76
  return typeof meta["argumentHint"] === "string" ? meta["argumentHint"] : undefined;
36
77
  }
37
78
 
38
- export { getCommandArgumentHint, getCompletionAction };
79
+ export { getCommandArgumentHint, getCompletionAction, readCompletionAttachmentMeta };
@@ -0,0 +1,27 @@
1
+ import type { AgentCustomization } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/state";
2
+ /**
3
+ * Well-known typed view over a custom agent's `_meta` bag (see
4
+ * `AgentCustomization._meta`), populated by the host's customization discovery
5
+ * and read by the agents-window customization providers. Read it through
6
+ * {@link readAgentCustomizationMeta} rather than indexing `_meta` directly.
7
+ */
8
+ export interface IAgentCustomizationMeta {
9
+ /**
10
+ * Whether the user may invoke this custom agent directly (e.g. from the
11
+ * agent picker). Absent is treated as `true` by convention — only an
12
+ * explicit `false` hides the agent from direct user invocation.
13
+ */
14
+ readonly userInvocable?: boolean;
15
+ }
16
+ /**
17
+ * Reads the well-known {@link IAgentCustomizationMeta} keys from a custom
18
+ * agent's `_meta` bag, dropping unknown keys and wrong-typed values.
19
+ */
20
+ export declare function readAgentCustomizationMeta(agent: AgentCustomization): IAgentCustomizationMeta;
21
+ /**
22
+ * Serializes a typed {@link IAgentCustomizationMeta} into the `_meta` record,
23
+ * dropping `undefined` entries and returning `undefined` when empty. Build a
24
+ * custom agent's `_meta` through this so producers stay in lock-step with
25
+ * {@link readAgentCustomizationMeta}.
26
+ */
27
+ export declare function toAgentCustomizationMeta(meta: IAgentCustomizationMeta): Record<string, unknown> | undefined;
@@ -0,0 +1,14 @@
1
+
2
+
3
+ function readAgentCustomizationMeta(agent) {
4
+ const meta = agent._meta;
5
+ const result = {};
6
+ if (agent.disableUserInvocation === true) {
7
+ result.userInvocable = false;
8
+ } else if (typeof meta?.["userInvocable"] === "boolean") {
9
+ result.userInvocable = meta["userInvocable"];
10
+ }
11
+ return result;
12
+ }
13
+
14
+ export { readAgentCustomizationMeta };
@@ -0,0 +1,14 @@
1
+ /** VS Code-owned request metadata indicating a throwaway chat surface. */
2
+ export declare const VSCODE_EPHEMERAL_SESSION_META_KEY = "vscode.chat.ephemeralSession";
3
+ interface IHasEphemeralSessionMeta {
4
+ readonly _meta?: Record<string, unknown>;
5
+ }
6
+ /** Typed view over VS Code's ephemeral-session request metadata. */
7
+ export interface IEphemeralSessionMeta {
8
+ readonly isEphemeral?: boolean;
9
+ }
10
+ /** Reads recognized ephemeral-session metadata, dropping wrong-typed values. */
11
+ export declare function readEphemeralSessionMeta(source: IHasEphemeralSessionMeta): IEphemeralSessionMeta;
12
+ /** Adds VS Code's ephemeral-session metadata to an open request metadata bag. */
13
+ export declare function withEphemeralSessionMeta(meta: Record<string, unknown> | undefined, isEphemeral: boolean | undefined): Record<string, unknown> | undefined;
14
+ export {};
@@ -0,0 +1,11 @@
1
+
2
+
3
+ const VSCODE_EPHEMERAL_SESSION_META_KEY = 'vscode.chat.ephemeralSession';
4
+ function withEphemeralSessionMeta(meta, isEphemeral) {
5
+ if (isEphemeral === undefined) {
6
+ return meta;
7
+ }
8
+ return { ...(meta ?? {}), [VSCODE_EPHEMERAL_SESSION_META_KEY]: isEphemeral };
9
+ }
10
+
11
+ export { VSCODE_EPHEMERAL_SESSION_META_KEY, withEphemeralSessionMeta };
@@ -24,56 +24,56 @@ var AgentHostSandboxKey;
24
24
  createSchema({
25
25
  [AgentHostSandboxConfigKey.Sandbox]: schemaProperty({
26
26
  type: "object",
27
- title: ( localize(2080, "Agent Sandbox")),
27
+ title: ( localize(2126, "Agent Sandbox")),
28
28
  properties: {
29
29
  [AgentHostSandboxKey.Enabled]: {
30
30
  type: "string",
31
- title: ( localize(2081, "Sandbox Enabled")),
31
+ title: ( localize(2127, "Sandbox Enabled")),
32
32
  enum: [AgentSandboxEnabledValue.Off, AgentSandboxEnabledValue.On]
33
33
  },
34
34
  [AgentHostSandboxKey.WindowsEnabled]: {
35
35
  type: "string",
36
- title: ( localize(2082, "Sandbox Enabled (Windows)")),
36
+ title: ( localize(2128, "Sandbox Enabled (Windows)")),
37
37
  enum: [AgentSandboxEnabledValue.Off, AgentSandboxEnabledValue.On]
38
38
  },
39
39
  [AgentHostSandboxKey.AllowNetwork]: {
40
40
  type: "boolean",
41
- title: ( localize(2083, "Allow Network"))
41
+ title: ( localize(2129, "Allow Network"))
42
42
  },
43
43
  [AgentHostSandboxKey.AllowUnsandboxedCommands]: {
44
44
  type: "boolean",
45
- title: ( localize(2084, "Allow Unsandboxed Commands"))
45
+ title: ( localize(2130, "Allow Unsandboxed Commands"))
46
46
  },
47
47
  [AgentHostSandboxKey.LinuxFileSystem]: {
48
48
  type: "object",
49
- title: ( localize(2085, "Linux Sandbox Filesystem"))
49
+ title: ( localize(2131, "Linux Sandbox Filesystem"))
50
50
  },
51
51
  [AgentHostSandboxKey.MacFileSystem]: {
52
52
  type: "object",
53
- title: ( localize(2086, "macOS Sandbox Filesystem"))
53
+ title: ( localize(2132, "macOS Sandbox Filesystem"))
54
54
  },
55
55
  [AgentHostSandboxKey.WindowsFileSystem]: {
56
56
  type: "object",
57
- title: ( localize(2087, "Windows Sandbox Filesystem"))
57
+ title: ( localize(2133, "Windows Sandbox Filesystem"))
58
58
  },
59
59
  [AgentHostSandboxKey.AdvancedRuntime]: {
60
60
  type: "object",
61
- title: ( localize(2088, "Advanced Sandbox Runtime"))
61
+ title: ( localize(2134, "Advanced Sandbox Runtime"))
62
62
  },
63
63
  [AgentHostSandboxKey.AllowedNetworkDomains]: {
64
64
  type: "array",
65
- title: ( localize(2089, "Allowed Network Domains")),
65
+ title: ( localize(2135, "Allowed Network Domains")),
66
66
  items: {
67
67
  type: "string",
68
- title: ( localize(2090, "Domain"))
68
+ title: ( localize(2136, "Domain"))
69
69
  }
70
70
  },
71
71
  [AgentHostSandboxKey.DeniedNetworkDomains]: {
72
72
  type: "array",
73
- title: ( localize(2091, "Denied Network Domains")),
73
+ title: ( localize(2137, "Denied Network Domains")),
74
74
  items: {
75
75
  type: "string",
76
- title: ( localize(2092, "Domain"))
76
+ title: ( localize(2138, "Domain"))
77
77
  }
78
78
  }
79
79
  }
@@ -17,7 +17,7 @@ import { automationReducer } from './protocol/channels-automation/reducer.js';
17
17
  import { automationRunReducer } from './protocol/channels-automation-run/reducer.js';
18
18
  import '@codingame/monaco-vscode-katex-common/vscode/vs/platform/agentHost/common/meta/agentPermissionRequestMeta';
19
19
  import { isAhpRootChannel, isAhpAutomationCatalogChannel, isAhpAutomationRunChannel, StateComponents } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionState';
20
- import { normalizeLegacyChatStateErrors } from './legacyProtocolCompatibility.js';
20
+ import { normalizeLegacyChatStateErrors } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/legacyProtocolCompatibility';
21
21
  import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
22
22
 
23
23
  class BaseAgentSubscription extends Disposable {
@@ -3,7 +3,10 @@ export { ActionType } from '@codingame/monaco-vscode-api/vscode/vs/platform/agen
3
3
  export { AuthRequiredReason } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/common/notifications';
4
4
 
5
5
  const NotificationType = {
6
- SessionRemoved: 'root/sessionRemoved'};
6
+ SessionRemoved: 'root/sessionRemoved',
7
+ Progress: 'root/progress',
8
+ AuthRequired: 'auth/required',
9
+ };
7
10
  function isSessionAction(action) {
8
11
  return action.type.startsWith('session/');
9
12
  }
@@ -0,0 +1,4 @@
1
+ /** Runtime/model-facing override name. */
2
+ export declare const RUNTIME_TOOL_SEARCH_TOOL_NAME = "tool_search_tool";
3
+ /** Client/workbench-facing tool reference name. */
4
+ export declare const CLIENT_TOOL_SEARCH_REFERENCE_NAME = "toolSearch";
@@ -0,0 +1,6 @@
1
+
2
+
3
+ const RUNTIME_TOOL_SEARCH_TOOL_NAME = 'tool_search_tool';
4
+ const CLIENT_TOOL_SEARCH_REFERENCE_NAME = 'toolSearch';
5
+
6
+ export { CLIENT_TOOL_SEARCH_REFERENCE_NAME, RUNTIME_TOOL_SEARCH_TOOL_NAME };
@@ -61,7 +61,7 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
61
61
  formatError(uri) {
62
62
  const domain = extractDomainFromUri(uri);
63
63
  return localize(
64
- 2363,
64
+ 2409,
65
65
  "Access to {0} is blocked by network domain policy (see `{1}` and `{2}` settings).",
66
66
  domain ?? uri.authority,
67
67
  AgentNetworkDomainSettingId.AllowedNetworkDomains,