@vscode/chat-lib 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +21 -0
- package/README.md +13 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts +32 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.js +159 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.js.map +1 -0
- package/dist/src/_internal/extension/common/constants.d.ts +37 -0
- package/dist/src/_internal/extension/common/constants.d.ts.map +1 -0
- package/dist/src/_internal/extension/common/constants.js +59 -0
- package/dist/src/_internal/extension/common/constants.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.d.ts +24 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.js +100 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.d.ts +19 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.js +275 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts +16 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js +147 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.d.ts +47 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.js +189 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.d.ts +15 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.js +137 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.d.ts +18 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.js +156 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.d.ts +7 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.js +24 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts +8 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.js +7 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts +47 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +230 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts +73 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +629 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts +241 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js +680 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts +38 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js +16 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js.map +1 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.d.ts +2 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.js +28 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.js.map +1 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts +62 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +639 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.d.ts +42 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.js +125 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.d.ts +60 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.js +416 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.d.ts +30 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.js +64 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.d.ts +26 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.js +41 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.js.map +1 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +51 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js +517 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts +23 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js +96 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +75 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js +796 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts +8 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.js +55 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/authentication.d.ts +145 -0
- package/dist/src/_internal/platform/authentication/common/authentication.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/authentication.js +156 -0
- package/dist/src/_internal/platform/authentication/common/authentication.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts +190 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.js +181 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.d.ts +50 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.js +14 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.d.ts +23 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.js +30 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts +23 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js +92 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js.map +1 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts +80 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js +274 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts +48 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.js +77 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.d.ts +54 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.js +10 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.d.ts +16 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.js +99 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +264 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.js +299 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.d.ts +9 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.js +10 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.d.ts +10 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.js +52 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/interactionService.d.ts +18 -0
- package/dist/src/_internal/platform/chat/common/interactionService.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/interactionService.js +28 -0
- package/dist/src/_internal/platform/chat/common/interactionService.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +513 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.js +529 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.d.ts +15 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.js +33 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.d.ts +94 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.js +36 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/validator.d.ts +35 -0
- package/dist/src/_internal/platform/configuration/common/validator.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/validator.js +195 -0
- package/dist/src/_internal/platform/configuration/common/validator.js.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffService.d.ts +27 -0
- package/dist/src/_internal/platform/diff/common/diffService.d.ts.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffService.js +10 -0
- package/dist/src/_internal/platform/diff/common/diffService.js.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.d.ts +34 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.d.ts.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.js +44 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.js.map +1 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.d.ts +14 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.js +95 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/abstractText.d.ts +58 -0
- package/dist/src/_internal/platform/editing/common/abstractText.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/abstractText.js +129 -0
- package/dist/src/_internal/platform/editing/common/abstractText.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts +38 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js +96 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.d.ts +28 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.js +158 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts +55 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js +195 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts +15 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.js +25 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +55 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +111 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.d.ts +18 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.js +12 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts +83 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js +23 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts +7 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.js +15 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.d.ts +7 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.js +14 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.d.ts +31 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.js +73 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.d.ts +17 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.js +37 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.d.ts +7 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js +30 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts +90 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +349 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.d.ts +19 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.js +80 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.d.ts +4 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.js +39 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +13 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js +308 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -0
- package/dist/src/_internal/platform/env/common/envService.d.ts +84 -0
- package/dist/src/_internal/platform/env/common/envService.d.ts.map +1 -0
- package/dist/src/_internal/platform/env/common/envService.js +64 -0
- package/dist/src/_internal/platform/env/common/envService.js.map +1 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.d.ts +21 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.d.ts.map +1 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.js +57 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.js.map +1 -0
- package/dist/src/_internal/platform/env/common/packagejson.d.ts +42 -0
- package/dist/src/_internal/platform/env/common/packagejson.d.ts.map +1 -0
- package/dist/src/_internal/platform/env/common/packagejson.js +12 -0
- package/dist/src/_internal/platform/env/common/packagejson.js.map +1 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.d.ts +12 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.d.ts.map +1 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.js +10 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.js.map +1 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.d.ts +11 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.d.ts.map +1 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.js +19 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.js.map +1 -0
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts +7 -0
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -0
- package/dist/src/_internal/platform/github/common/githubAPI.js +42 -0
- package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -0
- package/dist/src/_internal/platform/github/common/githubService.d.ts +63 -0
- package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -0
- package/dist/src/_internal/platform/github/common/githubService.js +37 -0
- package/dist/src/_internal/platform/github/common/githubService.js.map +1 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.d.ts +9 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.js +21 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.d.ts +30 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.d.ts.map +1 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.js +73 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.js.map +1 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts +162 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.js +3 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.d.ts +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.js +31 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.d.ts +20 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.js +44 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.d.ts +73 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js +142 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.d.ts +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.js +59 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.d.ts +6 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.js +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts +44 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js +57 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.d.ts +8 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.js +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.d.ts +36 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.js +68 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.d.ts +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js +42 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts +24 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js +62 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.d.ts +3 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.js +125 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.d.ts +46 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.js +171 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.d.ts +9 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.js +32 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +50 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +54 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.d.ts +5 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.js +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.d.ts +98 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.js +111 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts +132 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js +398 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.d.ts +11 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.js +50 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.d.ts +90 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.js +169 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts +34 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js +185 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +223 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +315 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js +53 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.d.ts +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.js +38 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.d.ts +3 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.js +26 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.d.ts +19 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.js +44 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.d.ts +45 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.js +49 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.d.ts +17 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.js +300 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.d.ts +37 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.js +116 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.js.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.d.ts +13 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.js +10 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.js.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.d.ts +13 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.js +31 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.js.map +1 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts +146 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.js +42 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.js.map +1 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts +26 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js +53 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js.map +1 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.d.ts +11 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.js +30 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.js.map +1 -0
- package/dist/src/_internal/platform/log/common/logService.d.ts +100 -0
- package/dist/src/_internal/platform/log/common/logService.d.ts.map +1 -0
- package/dist/src/_internal/platform/log/common/logService.js +178 -0
- package/dist/src/_internal/platform/log/common/logService.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts +69 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js +23 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts +80 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js +77 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts +26 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.js +125 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts +27 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js +222 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts +10 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js +86 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetch.d.ts +256 -0
- package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetch.js +51 -0
- package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.d.ts +53 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.js +46 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/networking.d.ts +213 -0
- package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/networking.js +148 -0
- package/dist/src/_internal/platform/networking/common/networking.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/openai.d.ts +202 -0
- package/dist/src/_internal/platform/networking/common/openai.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/openai.js +144 -0
- package/dist/src/_internal/platform/networking/common/openai.js.map +1 -0
- package/dist/src/_internal/platform/networking/node/chatStream.d.ts +9 -0
- package/dist/src/_internal/platform/networking/node/chatStream.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/node/chatStream.js +117 -0
- package/dist/src/_internal/platform/networking/node/chatStream.js.map +1 -0
- package/dist/src/_internal/platform/networking/node/stream.d.ts +145 -0
- package/dist/src/_internal/platform/networking/node/stream.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/node/stream.js +595 -0
- package/dist/src/_internal/platform/networking/node/stream.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.d.ts +28 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.js +85 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.d.ts +6 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.js +14 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts +31 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js +14 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts +15 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js +232 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts +16 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js +231 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts +13 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js +191 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.d.ts +34 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.js +123 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/helpers.d.ts +79 -0
- package/dist/src/_internal/platform/notebook/common/helpers.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/helpers.js +157 -0
- package/dist/src/_internal/platform/notebook/common/helpers.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.d.ts +34 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.js +10 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.js.map +1 -0
- package/dist/src/_internal/platform/openai/node/fetch.d.ts +77 -0
- package/dist/src/_internal/platform/openai/node/fetch.d.ts.map +1 -0
- package/dist/src/_internal/platform/openai/node/fetch.js +408 -0
- package/dist/src/_internal/platform/openai/node/fetch.js.map +1 -0
- package/dist/src/_internal/platform/parser/node/nodes.d.ts +93 -0
- package/dist/src/_internal/platform/parser/node/nodes.d.ts.map +1 -0
- package/dist/src/_internal/platform/parser/node/nodes.js +133 -0
- package/dist/src/_internal/platform/parser/node/nodes.js.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.d.ts +14 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.d.ts.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.js +28 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.js.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts +198 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.js +177 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.js.map +1 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.d.ts +12 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.d.ts.map +1 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.js +19 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.js.map +1 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.d.ts +13 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.d.ts.map +1 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.js +16 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts +46 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js +23 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.d.ts +18 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.js +50 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts +145 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.js +87 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts +60 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.js +169 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.js.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinking.d.ts +49 -0
- package/dist/src/_internal/platform/thinking/common/thinking.d.ts.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinking.js +11 -0
- package/dist/src/_internal/platform/thinking/common/thinking.js.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.d.ts +6 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.d.ts.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.js +56 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/cl100k_base.tiktoken +100256 -0
- package/dist/src/_internal/platform/tokenizer/node/o200k_base.tiktoken +199998 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.d.ts +3 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.js +24 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.d.ts +17 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.js +58 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.d.ts +2 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.js +25 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.d.ts +32 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.js +308 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.js.map +1 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.d.ts +104 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.d.ts.map +1 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.js +176 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.js.map +1 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts +115 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts.map +1 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js +33 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js.map +1 -0
- package/dist/src/_internal/util/common/anomalyDetection.d.ts +16 -0
- package/dist/src/_internal/util/common/anomalyDetection.d.ts.map +1 -0
- package/dist/src/_internal/util/common/anomalyDetection.js +100 -0
- package/dist/src/_internal/util/common/anomalyDetection.js.map +1 -0
- package/dist/src/_internal/util/common/arrays.d.ts +18 -0
- package/dist/src/_internal/util/common/arrays.d.ts.map +1 -0
- package/dist/src/_internal/util/common/arrays.js +80 -0
- package/dist/src/_internal/util/common/arrays.js.map +1 -0
- package/dist/src/_internal/util/common/async.d.ts +35 -0
- package/dist/src/_internal/util/common/async.d.ts.map +1 -0
- package/dist/src/_internal/util/common/async.js +146 -0
- package/dist/src/_internal/util/common/async.js.map +1 -0
- package/dist/src/_internal/util/common/cache.d.ts +42 -0
- package/dist/src/_internal/util/common/cache.d.ts.map +1 -0
- package/dist/src/_internal/util/common/cache.js +157 -0
- package/dist/src/_internal/util/common/cache.js.map +1 -0
- package/dist/src/_internal/util/common/crypto.d.ts +3 -0
- package/dist/src/_internal/util/common/crypto.d.ts.map +1 -0
- package/dist/src/_internal/util/common/crypto.js +33 -0
- package/dist/src/_internal/util/common/crypto.js.map +1 -0
- package/dist/src/_internal/util/common/errors.d.ts +3 -0
- package/dist/src/_internal/util/common/errors.d.ts.map +1 -0
- package/dist/src/_internal/util/common/errors.js +22 -0
- package/dist/src/_internal/util/common/errors.js.map +1 -0
- package/dist/src/_internal/util/common/imageUtils.d.ts +23 -0
- package/dist/src/_internal/util/common/imageUtils.d.ts.map +1 -0
- package/dist/src/_internal/util/common/imageUtils.js +148 -0
- package/dist/src/_internal/util/common/imageUtils.js.map +1 -0
- package/dist/src/_internal/util/common/languages.d.ts +560 -0
- package/dist/src/_internal/util/common/languages.d.ts.map +1 -0
- package/dist/src/_internal/util/common/languages.js +901 -0
- package/dist/src/_internal/util/common/languages.js.map +1 -0
- package/dist/src/_internal/util/common/notebooks.d.ts +88 -0
- package/dist/src/_internal/util/common/notebooks.d.ts.map +1 -0
- package/dist/src/_internal/util/common/notebooks.js +270 -0
- package/dist/src/_internal/util/common/notebooks.js.map +1 -0
- package/dist/src/_internal/util/common/result.d.ts +32 -0
- package/dist/src/_internal/util/common/result.d.ts.map +1 -0
- package/dist/src/_internal/util/common/result.js +65 -0
- package/dist/src/_internal/util/common/result.js.map +1 -0
- package/dist/src/_internal/util/common/services.d.ts +17 -0
- package/dist/src/_internal/util/common/services.d.ts.map +1 -0
- package/dist/src/_internal/util/common/services.js +32 -0
- package/dist/src/_internal/util/common/services.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts +301 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.js +380 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/editing.d.ts +101 -0
- package/dist/src/_internal/util/common/test/shims/editing.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/editing.js +149 -0
- package/dist/src/_internal/util/common/test/shims/editing.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/enums.d.ts +50 -0
- package/dist/src/_internal/util/common/test/shims/enums.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/enums.js +65 -0
- package/dist/src/_internal/util/common/test/shims/enums.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/l10n.d.ts +8 -0
- package/dist/src/_internal/util/common/test/shims/l10n.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/l10n.js +26 -0
- package/dist/src/_internal/util/common/test/shims/l10n.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.d.ts +13 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.js +24 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/terminal.d.ts +26 -0
- package/dist/src/_internal/util/common/test/shims/terminal.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/terminal.js +34 -0
- package/dist/src/_internal/util/common/test/shims/terminal.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts +4 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +113 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -0
- package/dist/src/_internal/util/common/time.d.ts +8 -0
- package/dist/src/_internal/util/common/time.d.ts.map +1 -0
- package/dist/src/_internal/util/common/time.js +30 -0
- package/dist/src/_internal/util/common/time.js.map +1 -0
- package/dist/src/_internal/util/common/tokenizer.d.ts +19 -0
- package/dist/src/_internal/util/common/tokenizer.d.ts.map +1 -0
- package/dist/src/_internal/util/common/tokenizer.js +14 -0
- package/dist/src/_internal/util/common/tokenizer.js.map +1 -0
- package/dist/src/_internal/util/common/tracing.d.ts +8 -0
- package/dist/src/_internal/util/common/tracing.d.ts.map +1 -0
- package/dist/src/_internal/util/common/tracing.js +49 -0
- package/dist/src/_internal/util/common/tracing.js.map +1 -0
- package/dist/src/_internal/util/common/types.d.ts +7 -0
- package/dist/src/_internal/util/common/types.d.ts.map +1 -0
- package/dist/src/_internal/util/common/types.js +35 -0
- package/dist/src/_internal/util/common/types.js.map +1 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.d.ts +9 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.d.ts.map +1 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.js +38 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.js.map +1 -0
- package/dist/src/_internal/util/node/worker.d.ts +44 -0
- package/dist/src/_internal/util/node/worker.d.ts.map +1 -0
- package/dist/src/_internal/util/node/worker.js +115 -0
- package/dist/src/_internal/util/node/worker.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arrays.d.ts +299 -0
- package/dist/src/_internal/util/vs/base/common/arrays.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arrays.js +836 -0
- package/dist/src/_internal/util/vs/base/common/arrays.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.d.ts +69 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.js +193 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/assert.d.ts +35 -0
- package/dist/src/_internal/util/vs/base/common/assert.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/assert.js +86 -0
- package/dist/src/_internal/util/vs/base/common/assert.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/async.d.ts +764 -0
- package/dist/src/_internal/util/vs/base/common/async.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/async.js +2037 -0
- package/dist/src/_internal/util/vs/base/common/async.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/buffer.d.ts +92 -0
- package/dist/src/_internal/util/vs/base/common/buffer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/buffer.js +480 -0
- package/dist/src/_internal/util/vs/base/common/buffer.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cache.d.ts +47 -0
- package/dist/src/_internal/util/vs/base/common/cache.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cache.js +95 -0
- package/dist/src/_internal/util/vs/base/common/cache.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.d.ts +31 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.js +120 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/charCode.d.ts +428 -0
- package/dist/src/_internal/util/vs/base/common/charCode.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/charCode.js +4 -0
- package/dist/src/_internal/util/vs/base/common/charCode.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codicons.d.ts +681 -0
- package/dist/src/_internal/util/vs/base/common/codicons.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codicons.js +59 -0
- package/dist/src/_internal/util/vs/base/common/codicons.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts +607 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js +619 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.d.ts +9 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.js +25 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/collections.d.ts +49 -0
- package/dist/src/_internal/util/vs/base/common/collections.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/collections.js +134 -0
- package/dist/src/_internal/util/vs/base/common/collections.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.d.ts +151 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.js +1064 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.d.ts +39 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.js +38 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/equals.d.ts +38 -0
- package/dist/src/_internal/util/vs/base/common/equals.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/equals.js +166 -0
- package/dist/src/_internal/util/vs/base/common/equals.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/errors.d.ts +114 -0
- package/dist/src/_internal/util/vs/base/common/errors.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/errors.js +274 -0
- package/dist/src/_internal/util/vs/base/common/errors.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/event.d.ts +567 -0
- package/dist/src/_internal/util/vs/base/common/event.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/event.js +1405 -0
- package/dist/src/_internal/util/vs/base/common/event.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/extpath.d.ts +58 -0
- package/dist/src/_internal/util/vs/base/common/extpath.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/extpath.js +363 -0
- package/dist/src/_internal/util/vs/base/common/extpath.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/filters.d.ts +63 -0
- package/dist/src/_internal/util/vs/base/common/filters.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/filters.js +821 -0
- package/dist/src/_internal/util/vs/base/common/filters.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/functional.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/functional.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/functional.js +35 -0
- package/dist/src/_internal/util/vs/base/common/functional.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/glob.d.ts +72 -0
- package/dist/src/_internal/util/vs/base/common/glob.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/glob.js +622 -0
- package/dist/src/_internal/util/vs/base/common/glob.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/hash.d.ts +41 -0
- package/dist/src/_internal/util/vs/base/common/hash.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/hash.js +320 -0
- package/dist/src/_internal/util/vs/base/common/hash.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts +59 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.js +179 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.d.ts +21 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.js +95 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iterator.d.ts +33 -0
- package/dist/src/_internal/util/vs/base/common/iterator.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iterator.js +188 -0
- package/dist/src/_internal/util/vs/base/common/iterator.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lazy.d.ts +23 -0
- package/dist/src/_internal/util/vs/base/common/lazy.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lazy.js +57 -0
- package/dist/src/_internal/util/vs/base/common/lazy.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts +262 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.js +703 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.d.ts +16 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.js +130 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/map.d.ts +175 -0
- package/dist/src/_internal/util/vs/base/common/map.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/map.js +796 -0
- package/dist/src/_internal/util/vs/base/common/map.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.d.ts +29 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.js +4 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/mime.d.ts +19 -0
- package/dist/src/_internal/util/vs/base/common/mime.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/mime.js +127 -0
- package/dist/src/_internal/util/vs/base/common/mime.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.d.ts +10 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.js +324 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/network.d.ts +189 -0
- package/dist/src/_internal/util/vs/base/common/network.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/network.js +386 -0
- package/dist/src/_internal/util/vs/base/common/network.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/numbers.d.ts +71 -0
- package/dist/src/_internal/util/vs/base/common/numbers.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/numbers.js +148 -0
- package/dist/src/_internal/util/vs/base/common/numbers.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/objects.d.ts +36 -0
- package/dist/src/_internal/util/vs/base/common/objects.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/objects.js +231 -0
- package/dist/src/_internal/util/vs/base/common/objects.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observable.d.ts +2 -0
- package/dist/src/_internal/util/vs/base/common/observable.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observable.js +24 -0
- package/dist/src/_internal/util/vs/base/common/observable.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts +169 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.js +18 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts +45 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js +76 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.d.ts +3 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.js +15 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.d.ts +6 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.js +24 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts +21 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js +64 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts +34 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js +112 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.d.ts +16 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.js +57 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.d.ts +25 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.js +101 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts +41 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js +346 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js +68 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +44 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +445 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts +42 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js +59 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.d.ts +14 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.js +69 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.d.ts +31 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.js +97 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.d.ts +19 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.js +65 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts +55 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js +133 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.d.ts +6 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.js +36 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts +47 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js +99 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts +83 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js +355 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +28 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.js +124 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +34 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js +118 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.d.ts +12 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.js +45 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +6 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +39 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.d.ts +38 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.js +105 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +9 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.js +16 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.d.ts +57 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.js +139 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +53 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js +212 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts +18 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.js +63 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.d.ts +28 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.js +116 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts +76 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js +113 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.d.ts +8 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.js +59 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.d.ts +44 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.js +256 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js +85 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.js +26 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/path.d.ts +40 -0
- package/dist/src/_internal/util/vs/base/common/path.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/path.js +1494 -0
- package/dist/src/_internal/util/vs/base/common/path.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/platform.d.ts +100 -0
- package/dist/src/_internal/util/vs/base/common/platform.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/platform.js +254 -0
- package/dist/src/_internal/util/vs/base/common/platform.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/process.d.ts +28 -0
- package/dist/src/_internal/util/vs/base/common/process.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/process.js +69 -0
- package/dist/src/_internal/util/vs/base/common/process.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/resources.d.ts +188 -0
- package/dist/src/_internal/util/vs/base/common/resources.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/resources.js +324 -0
- package/dist/src/_internal/util/vs/base/common/resources.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sequence.d.ts +20 -0
- package/dist/src/_internal/util/vs/base/common/sequence.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sequence.js +22 -0
- package/dist/src/_internal/util/vs/base/common/sequence.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.d.ts +78 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.js +175 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.js +30 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stream.d.ts +212 -0
- package/dist/src/_internal/util/vs/base/common/stream.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stream.js +495 -0
- package/dist/src/_internal/util/vs/base/common/stream.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/strings.d.ts +264 -0
- package/dist/src/_internal/util/vs/base/common/strings.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/strings.js +1162 -0
- package/dist/src/_internal/util/vs/base/common/strings.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/symbols.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/symbols.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/symbols.js +13 -0
- package/dist/src/_internal/util/vs/base/common/symbols.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/themables.d.ts +31 -0
- package/dist/src/_internal/util/vs/base/common/themables.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/themables.js +92 -0
- package/dist/src/_internal/util/vs/base/common/themables.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/types.d.ts +184 -0
- package/dist/src/_internal/util/vs/base/common/types.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/types.js +265 -0
- package/dist/src/_internal/util/vs/base/common/types.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uint.d.ts +32 -0
- package/dist/src/_internal/util/vs/base/common/uint.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uint.js +24 -0
- package/dist/src/_internal/util/vs/base/common/uint.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uri.d.ts +172 -0
- package/dist/src/_internal/util/vs/base/common/uri.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uri.js +653 -0
- package/dist/src/_internal/util/vs/base/common/uri.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uuid.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/uuid.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uuid.js +66 -0
- package/dist/src/_internal/util/vs/base/common/uuid.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.d.ts +28 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.js +35 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts +109 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js +341 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts +53 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js +322 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts +135 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js +437 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.d.ts +50 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.js +348 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.d.ts +91 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.js +142 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.d.ts +195 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.js +424 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts +108 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js +357 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.d.ts +79 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.js +242 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts +40 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js +105 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.d.ts +3 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.js +28 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.d.ts +39 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.js +110 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.d.ts +34 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.js +134 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.d.ts +28 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.js +137 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts +83 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +154 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts +9 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +104 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts +8 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js +165 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.d.ts +4 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +251 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.d.ts +9 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +213 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +10 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +380 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts +13 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js +36 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +32 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +208 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts +23 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.js +64 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.d.ts +70 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.js +501 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.d.ts +46 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.js +33 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.d.ts +84 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.js +287 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.d.ts +71 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.js +234 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/nls.d.ts +143 -0
- package/dist/src/_internal/util/vs/nls.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/nls.js +84 -0
- package/dist/src/_internal/util/vs/nls.js.map +1 -0
- package/dist/src/_internal/util/vs/nls.messages.d.ts +3 -0
- package/dist/src/_internal/util/vs/nls.messages.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/nls.messages.js +22 -0
- package/dist/src/_internal/util/vs/nls.messages.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts +10 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js +17 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.d.ts +26 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.js +99 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts +70 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js +48 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts +56 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js +406 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.d.ts +10 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.js +25 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +32 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.js +103 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +8 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +38 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.d.ts +12 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.js +53 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.d.ts +21 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.js +72 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.d.ts +85 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.js +243 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.d.ts +30 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.js +178 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.d.ts +27 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.js +148 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.d.ts +21 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.js +84 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.d.ts +13 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.js +95 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +14 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +30 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +46 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.js +82 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.d.ts +25 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.js +93 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.js.map +1 -0
- package/dist/src/_internal/vscodeTypes.d.ts +95 -0
- package/dist/src/_internal/vscodeTypes.d.ts.map +1 -0
- package/dist/src/_internal/vscodeTypes.js +133 -0
- package/dist/src/_internal/vscodeTypes.js.map +1 -0
- package/dist/src/main.d.ts +13 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +190 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/package.json +4063 -0
- package/package.json +64 -0
- package/src/_internal/extension/byok/node/openAIEndpoint.ts +171 -0
- package/src/_internal/extension/common/constants.ts +90 -0
- package/src/_internal/extension/inlineEdits/common/delayer.ts +108 -0
- package/src/_internal/extension/inlineEdits/common/editRebase.ts +268 -0
- package/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.tsx +163 -0
- package/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.ts +225 -0
- package/src/_internal/extension/inlineEdits/common/rejectionCollector.ts +164 -0
- package/src/_internal/extension/inlineEdits/node/debugRecorder.ts +205 -0
- package/src/_internal/extension/inlineEdits/node/importFiltering.ts +25 -0
- package/src/_internal/extension/inlineEdits/node/nesConfigs.ts +12 -0
- package/src/_internal/extension/inlineEdits/node/nextEditCache.ts +278 -0
- package/src/_internal/extension/inlineEdits/node/nextEditProvider.ts +778 -0
- package/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.ts +983 -0
- package/src/_internal/extension/inlineEdits/node/nextEditResult.ts +40 -0
- package/src/_internal/extension/prompt/common/importStatement.ts +25 -0
- package/src/_internal/extension/prompt/node/chatMLFetcher.ts +706 -0
- package/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.ts +146 -0
- package/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.ts +527 -0
- package/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.ts +76 -0
- package/src/_internal/extension/prompts/node/inline/visualization.ts +65 -0
- package/src/_internal/extension/vscode.proposed.activeComment.d.ts +23 -0
- package/src/_internal/extension/vscode.proposed.aiRelatedInformation.d.ts +49 -0
- package/src/_internal/extension/vscode.proposed.aiSettingsSearch.d.ts +31 -0
- package/src/_internal/extension/vscode.proposed.aiTextSearchProvider.d.ts +41 -0
- package/src/_internal/extension/vscode.proposed.authLearnMore.d.ts +16 -0
- package/src/_internal/extension/vscode.proposed.chatBinaryReferenceData.d.ts +41 -0
- package/src/_internal/extension/vscode.proposed.chatEditing.d.ts +29 -0
- package/src/_internal/extension/vscode.proposed.chatParticipantAdditions.d.ts +636 -0
- package/src/_internal/extension/vscode.proposed.chatParticipantPrivate.d.ts +276 -0
- package/src/_internal/extension/vscode.proposed.chatProvider.d.ts +62 -0
- package/src/_internal/extension/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
- package/src/_internal/extension/vscode.proposed.chatReferenceDiagnostic.d.ts +23 -0
- package/src/_internal/extension/vscode.proposed.chatSessionsProvider.d.ts +218 -0
- package/src/_internal/extension/vscode.proposed.chatStatusItem.d.ts +61 -0
- package/src/_internal/extension/vscode.proposed.codeActionAI.d.ts +16 -0
- package/src/_internal/extension/vscode.proposed.commentReveal.d.ts +32 -0
- package/src/_internal/extension/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
- package/src/_internal/extension/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
- package/src/_internal/extension/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
- package/src/_internal/extension/vscode.proposed.dataChannels.d.ts +19 -0
- package/src/_internal/extension/vscode.proposed.defaultChatParticipant.d.ts +52 -0
- package/src/_internal/extension/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
- package/src/_internal/extension/vscode.proposed.embeddings.d.ts +33 -0
- package/src/_internal/extension/vscode.proposed.extensionsAny.d.ts +40 -0
- package/src/_internal/extension/vscode.proposed.findFiles2.d.ts +125 -0
- package/src/_internal/extension/vscode.proposed.findTextInFiles.d.ts +104 -0
- package/src/_internal/extension/vscode.proposed.findTextInFiles2.d.ts +144 -0
- package/src/_internal/extension/vscode.proposed.inlineCompletionsAdditions.d.ts +202 -0
- package/src/_internal/extension/vscode.proposed.interactive.d.ts +11 -0
- package/src/_internal/extension/vscode.proposed.languageModelCapabilities.d.ts +25 -0
- package/src/_internal/extension/vscode.proposed.languageModelDataPart.d.ts +163 -0
- package/src/_internal/extension/vscode.proposed.languageModelSystem.d.ts +17 -0
- package/src/_internal/extension/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
- package/src/_internal/extension/vscode.proposed.languageModelToolResultAudience.d.ts +36 -0
- package/src/_internal/extension/vscode.proposed.mappedEditsProvider.d.ts +110 -0
- package/src/_internal/extension/vscode.proposed.newSymbolNamesProvider.d.ts +47 -0
- package/src/_internal/extension/vscode.proposed.readonlyMessage.d.ts +14 -0
- package/src/_internal/extension/vscode.proposed.resolvers.d.ts +475 -0
- package/src/_internal/extension/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
- package/src/_internal/extension/vscode.proposed.taskProblemMatcherStatus.d.ts +42 -0
- package/src/_internal/extension/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
- package/src/_internal/extension/vscode.proposed.terminalExecuteCommandEvent.d.ts +48 -0
- package/src/_internal/extension/vscode.proposed.terminalQuickFixProvider.d.ts +87 -0
- package/src/_internal/extension/vscode.proposed.terminalSelection.d.ts +16 -0
- package/src/_internal/extension/vscode.proposed.testObserver.d.ts +199 -0
- package/src/_internal/extension/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/src/_internal/extension/vscode.proposed.textSearchProvider.d.ts +281 -0
- package/src/_internal/extension/vscode.proposed.textSearchProvider2.d.ts +297 -0
- package/src/_internal/extension/xtab/common/promptCrafting.ts +670 -0
- package/src/_internal/extension/xtab/node/xtabEndpoint.ts +102 -0
- package/src/_internal/extension/xtab/node/xtabProvider.ts +976 -0
- package/src/_internal/extension/xtab/node/xtabUtils.ts +62 -0
- package/src/_internal/platform/authentication/common/authentication.ts +309 -0
- package/src/_internal/platform/authentication/common/copilotToken.ts +300 -0
- package/src/_internal/platform/authentication/common/copilotTokenManager.ts +59 -0
- package/src/_internal/platform/authentication/common/copilotTokenStore.ts +40 -0
- package/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.ts +96 -0
- package/src/_internal/platform/authentication/node/copilotTokenManager.ts +303 -0
- package/src/_internal/platform/chat/common/chatMLFetcher.ts +124 -0
- package/src/_internal/platform/chat/common/chatQuotaService.ts +63 -0
- package/src/_internal/platform/chat/common/chatQuotaServiceImpl.ts +96 -0
- package/src/_internal/platform/chat/common/commonTypes.ts +353 -0
- package/src/_internal/platform/chat/common/conversationOptions.ts +16 -0
- package/src/_internal/platform/chat/common/globalStringUtils.ts +54 -0
- package/src/_internal/platform/chat/common/interactionService.ts +35 -0
- package/src/_internal/platform/configuration/common/configurationService.ts +803 -0
- package/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.ts +39 -0
- package/src/_internal/platform/configuration/common/jsonSchema.ts +139 -0
- package/src/_internal/platform/configuration/common/validator.ts +242 -0
- package/src/_internal/platform/diff/common/diffService.ts +41 -0
- package/src/_internal/platform/diff/common/diffWorker.ts +83 -0
- package/src/_internal/platform/diff/node/diffServiceImpl.ts +85 -0
- package/src/_internal/platform/editing/common/abstractText.ts +177 -0
- package/src/_internal/platform/editing/common/notebookDocumentSnapshot.ts +122 -0
- package/src/_internal/platform/editing/common/positionOffsetTransformer.ts +202 -0
- package/src/_internal/platform/editing/common/textDocumentSnapshot.ts +274 -0
- package/src/_internal/platform/endpoint/common/capiClient.ts +37 -0
- package/src/_internal/platform/endpoint/common/chatModelCapabilities.ts +115 -0
- package/src/_internal/platform/endpoint/common/domainService.ts +27 -0
- package/src/_internal/platform/endpoint/common/endpointProvider.ts +104 -0
- package/src/_internal/platform/endpoint/common/endpointTypes.ts +12 -0
- package/src/_internal/platform/endpoint/common/licenseAgreement.ts +11 -0
- package/src/_internal/platform/endpoint/common/statefulMarkerContainer.tsx +85 -0
- package/src/_internal/platform/endpoint/common/thinkingDataContainer.tsx +44 -0
- package/src/_internal/platform/endpoint/node/capiClientImpl.ts +18 -0
- package/src/_internal/platform/endpoint/node/chatEndpoint.ts +435 -0
- package/src/_internal/platform/endpoint/node/domainServiceImpl.ts +80 -0
- package/src/_internal/platform/endpoint/node/proxyXtabEndpoint.ts +43 -0
- package/src/_internal/platform/endpoint/node/responsesApi.ts +326 -0
- package/src/_internal/platform/env/common/envService.ts +134 -0
- package/src/_internal/platform/env/common/nullEnvService.ts +68 -0
- package/src/_internal/platform/env/common/packagejson.ts +49 -0
- package/src/_internal/platform/git/common/gitExtensionService.ts +21 -0
- package/src/_internal/platform/git/common/nullGitExtensionService.ts +20 -0
- package/src/_internal/platform/git/vscode/git.d.ts +414 -0
- package/src/_internal/platform/github/common/githubAPI.ts +44 -0
- package/src/_internal/platform/github/common/githubService.ts +87 -0
- package/src/_internal/platform/github/common/nullOctokitServiceImpl.ts +21 -0
- package/src/_internal/platform/ignore/common/ignoreService.ts +72 -0
- package/src/_internal/platform/inlineCompletions/common/api.ts +198 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.ts +32 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/documentId.ts +52 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/edit.ts +165 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.ts +74 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.ts +14 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.ts +107 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/languageId.ts +14 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/permutation.ts +69 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.ts +49 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.ts +74 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.ts +132 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.ts +184 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.ts +32 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts +89 -0
- package/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.ts +10 -0
- package/src/_internal/platform/inlineEdits/common/editReason.ts +134 -0
- package/src/_internal/platform/inlineEdits/common/inlineEditLogContext.ts +490 -0
- package/src/_internal/platform/inlineEdits/common/observableGit.ts +49 -0
- package/src/_internal/platform/inlineEdits/common/observableWorkspace.ts +239 -0
- package/src/_internal/platform/inlineEdits/common/responseProcessor.ts +249 -0
- package/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.ts +468 -0
- package/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.ts +59 -0
- package/src/_internal/platform/inlineEdits/common/utils/observable.ts +54 -0
- package/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.ts +29 -0
- package/src/_internal/platform/inlineEdits/common/utils/utils.ts +56 -0
- package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.ts +60 -0
- package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.ts +353 -0
- package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.ts +176 -0
- package/src/_internal/platform/languageContextProvider/common/languageContextProviderService.ts +25 -0
- package/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.ts +38 -0
- package/src/_internal/platform/languageServer/common/languageContextService.ts +186 -0
- package/src/_internal/platform/languages/common/languageDiagnosticsService.ts +67 -0
- package/src/_internal/platform/languages/common/testLanguageDiagnosticsService.ts +28 -0
- package/src/_internal/platform/log/common/logService.ts +232 -0
- package/src/_internal/platform/nesFetch/common/completionsAPI.ts +78 -0
- package/src/_internal/platform/nesFetch/common/completionsFetchService.ts +118 -0
- package/src/_internal/platform/nesFetch/common/responseStream.ts +151 -0
- package/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.ts +236 -0
- package/src/_internal/platform/nesFetch/node/streamTransformer.ts +95 -0
- package/src/_internal/platform/networking/common/fetch.ts +349 -0
- package/src/_internal/platform/networking/common/fetcherService.ts +84 -0
- package/src/_internal/platform/networking/common/networking.ts +442 -0
- package/src/_internal/platform/networking/common/openai.ts +273 -0
- package/src/_internal/platform/networking/node/chatStream.ts +137 -0
- package/src/_internal/platform/networking/node/stream.ts +749 -0
- package/src/_internal/platform/notebook/common/alternativeContent.ts +89 -0
- package/src/_internal/platform/notebook/common/alternativeContentFormat.ts +10 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.json.ts +262 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.text.ts +243 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.ts +41 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.xml.ts +205 -0
- package/src/_internal/platform/notebook/common/alternativeNotebookDocument.ts +155 -0
- package/src/_internal/platform/notebook/common/helpers.ts +212 -0
- package/src/_internal/platform/notebook/common/notebookService.ts +43 -0
- package/src/_internal/platform/openai/node/fetch.ts +596 -0
- package/src/_internal/platform/parser/node/nodes.ts +190 -0
- package/src/_internal/platform/requestLogger/node/nullRequestLogger.ts +26 -0
- package/src/_internal/platform/requestLogger/node/requestLogger.ts +383 -0
- package/src/_internal/platform/simulationTestContext/common/simulationTestContext.ts +29 -0
- package/src/_internal/platform/snippy/common/snippyService.ts +25 -0
- package/src/_internal/platform/telemetry/common/nullExperimentationService.ts +64 -0
- package/src/_internal/platform/telemetry/common/nullTelemetryService.ts +53 -0
- package/src/_internal/platform/telemetry/common/telemetry.ts +215 -0
- package/src/_internal/platform/telemetry/common/telemetryData.ts +205 -0
- package/src/_internal/platform/thinking/common/thinking.ts +61 -0
- package/src/_internal/platform/thinking/common/thinkingUtils.ts +57 -0
- package/src/_internal/platform/tokenizer/node/parseTikTokens.ts +23 -0
- package/src/_internal/platform/tokenizer/node/tikTokenizerImpl.ts +74 -0
- package/src/_internal/platform/tokenizer/node/tikTokenizerWorker.ts +24 -0
- package/src/_internal/platform/tokenizer/node/tokenizer.ts +357 -0
- package/src/_internal/platform/workspace/common/workspaceService.ts +226 -0
- package/src/_internal/platform/workspaceRecorder/common/workspaceLog.ts +118 -0
- package/src/_internal/util/common/anomalyDetection.ts +112 -0
- package/src/_internal/util/common/arrays.ts +81 -0
- package/src/_internal/util/common/async.ts +155 -0
- package/src/_internal/util/common/cache.ts +183 -0
- package/src/_internal/util/common/crypto.ts +41 -0
- package/src/_internal/util/common/errors.ts +22 -0
- package/src/_internal/util/common/globals.d.ts +12 -0
- package/src/_internal/util/common/imageUtils.ts +154 -0
- package/src/_internal/util/common/languages.ts +940 -0
- package/src/_internal/util/common/notebooks.ts +286 -0
- package/src/_internal/util/common/result.ts +71 -0
- package/src/_internal/util/common/services.ts +43 -0
- package/src/_internal/util/common/test/shims/chatTypes.ts +448 -0
- package/src/_internal/util/common/test/shims/editing.ts +233 -0
- package/src/_internal/util/common/test/shims/enums.ts +61 -0
- package/src/_internal/util/common/test/shims/l10n.ts +37 -0
- package/src/_internal/util/common/test/shims/newSymbolName.ts +23 -0
- package/src/_internal/util/common/test/shims/terminal.ts +33 -0
- package/src/_internal/util/common/test/shims/vscodeTypesShim.ts +115 -0
- package/src/_internal/util/common/time.ts +31 -0
- package/src/_internal/util/common/tokenizer.ts +30 -0
- package/src/_internal/util/common/tracing.ts +52 -0
- package/src/_internal/util/common/types.ts +33 -0
- package/src/_internal/util/common/variableLengthQuantity.ts +40 -0
- package/src/_internal/util/node/worker.ts +130 -0
- package/src/_internal/util/vs/base/common/arrays.ts +926 -0
- package/src/_internal/util/vs/base/common/arraysFind.ts +206 -0
- package/src/_internal/util/vs/base/common/assert.ts +89 -0
- package/src/_internal/util/vs/base/common/async.ts +2582 -0
- package/src/_internal/util/vs/base/common/buffer.ts +501 -0
- package/src/_internal/util/vs/base/common/cache.ts +122 -0
- package/src/_internal/util/vs/base/common/cancellation.ts +150 -0
- package/src/_internal/util/vs/base/common/charCode.ts +452 -0
- package/src/_internal/util/vs/base/common/codicons.ts +66 -0
- package/src/_internal/util/vs/base/common/codiconsLibrary.ts +618 -0
- package/src/_internal/util/vs/base/common/codiconsUtil.ts +30 -0
- package/src/_internal/util/vs/base/common/collections.ts +156 -0
- package/src/_internal/util/vs/base/common/diff/diff.ts +1317 -0
- package/src/_internal/util/vs/base/common/diff/diffChange.ts +62 -0
- package/src/_internal/util/vs/base/common/equals.ts +148 -0
- package/src/_internal/util/vs/base/common/errors.ts +342 -0
- package/src/_internal/util/vs/base/common/event.ts +1782 -0
- package/src/_internal/util/vs/base/common/extpath.ts +425 -0
- package/src/_internal/util/vs/base/common/filters.ts +928 -0
- package/src/_internal/util/vs/base/common/functional.ts +34 -0
- package/src/_internal/util/vs/base/common/glob.ts +839 -0
- package/src/_internal/util/vs/base/common/hash.ts +326 -0
- package/src/_internal/util/vs/base/common/htmlContent.ts +212 -0
- package/src/_internal/util/vs/base/common/iconLabels.ts +118 -0
- package/src/_internal/util/vs/base/common/iterator.ts +196 -0
- package/src/_internal/util/vs/base/common/lazy.ts +59 -0
- package/src/_internal/util/vs/base/common/lifecycle.ts +845 -0
- package/src/_internal/util/vs/base/common/linkedList.ts +144 -0
- package/src/_internal/util/vs/base/common/map.ts +954 -0
- package/src/_internal/util/vs/base/common/marshallingIds.ts +35 -0
- package/src/_internal/util/vs/base/common/mime.ts +136 -0
- package/src/_internal/util/vs/base/common/naturalLanguage/korean.ts +425 -0
- package/src/_internal/util/vs/base/common/network.ts +429 -0
- package/src/_internal/util/vs/base/common/numbers.ts +166 -0
- package/src/_internal/util/vs/base/common/objects.ts +242 -0
- package/src/_internal/util/vs/base/common/observable.ts +10 -0
- package/src/_internal/util/vs/base/common/observableInternal/base.ts +208 -0
- package/src/_internal/util/vs/base/common/observableInternal/changeTracker.ts +96 -0
- package/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.ts +9 -0
- package/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.ts +12 -0
- package/src/_internal/util/vs/base/common/observableInternal/debugLocation.ts +88 -0
- package/src/_internal/util/vs/base/common/observableInternal/debugName.ts +150 -0
- package/src/_internal/util/vs/base/common/observableInternal/experimental/utils.ts +62 -0
- package/src/_internal/util/vs/base/common/observableInternal/index.ts +61 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.ts +388 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerApi.d.ts +154 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.ts +80 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.ts +485 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.ts +103 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.ts +69 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/logging.ts +133 -0
- package/src/_internal/util/vs/base/common/observableInternal/map.ts +81 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.ts +172 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.ts +44 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/derived.ts +190 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.ts +445 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.ts +154 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.ts +174 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.ts +67 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.ts +62 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.ts +131 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.ts +37 -0
- package/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.ts +188 -0
- package/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.ts +256 -0
- package/src/_internal/util/vs/base/common/observableInternal/set.ts +78 -0
- package/src/_internal/util/vs/base/common/observableInternal/transaction.ts +115 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/promise.ts +129 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.ts +65 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/utils.ts +281 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.ts +101 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.ts +31 -0
- package/src/_internal/util/vs/base/common/path.ts +1591 -0
- package/src/_internal/util/vs/base/common/platform.ts +282 -0
- package/src/_internal/util/vs/base/common/process.ts +78 -0
- package/src/_internal/util/vs/base/common/resources.ts +446 -0
- package/src/_internal/util/vs/base/common/sequence.ts +36 -0
- package/src/_internal/util/vs/base/common/sseParser.ts +247 -0
- package/src/_internal/util/vs/base/common/stopwatch.ts +43 -0
- package/src/_internal/util/vs/base/common/stream.ts +792 -0
- package/src/_internal/util/vs/base/common/strings.ts +1364 -0
- package/src/_internal/util/vs/base/common/symbols.ts +11 -0
- package/src/_internal/util/vs/base/common/themables.ts +106 -0
- package/src/_internal/util/vs/base/common/types.ts +345 -0
- package/src/_internal/util/vs/base/common/uint.ts +61 -0
- package/src/_internal/util/vs/base/common/uri.ts +752 -0
- package/src/_internal/util/vs/base/common/uuid.ts +72 -0
- package/src/_internal/util/vs/base-common.d.ts +42 -0
- package/src/_internal/util/vs/editor/common/core/editOperation.ts +62 -0
- package/src/_internal/util/vs/editor/common/core/edits/edit.ts +399 -0
- package/src/_internal/util/vs/editor/common/core/edits/lineEdit.ts +414 -0
- package/src/_internal/util/vs/editor/common/core/edits/stringEdit.ts +568 -0
- package/src/_internal/util/vs/editor/common/core/edits/textEdit.ts +411 -0
- package/src/_internal/util/vs/editor/common/core/position.ts +186 -0
- package/src/_internal/util/vs/editor/common/core/range.ts +519 -0
- package/src/_internal/util/vs/editor/common/core/ranges/lineRange.ts +416 -0
- package/src/_internal/util/vs/editor/common/core/ranges/offsetRange.ts +275 -0
- package/src/_internal/util/vs/editor/common/core/text/abstractText.ts +127 -0
- package/src/_internal/util/vs/editor/common/core/text/positionToOffset.ts +26 -0
- package/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.ts +144 -0
- package/src/_internal/util/vs/editor/common/core/text/textLength.ts +150 -0
- package/src/_internal/util/vs/editor/common/core/wordHelper.ts +177 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.ts +210 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.ts +109 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.ts +178 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.ts +331 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.ts +273 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.ts +475 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.ts +47 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.ts +248 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.ts +76 -0
- package/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.ts +693 -0
- package/src/_internal/util/vs/editor/common/diff/linesDiffComputer.ts +61 -0
- package/src/_internal/util/vs/editor/common/diff/rangeMapping.ts +418 -0
- package/src/_internal/util/vs/editor/common/model/prefixSumComputer.ts +304 -0
- package/src/_internal/util/vs/nls.messages.ts +21 -0
- package/src/_internal/util/vs/nls.ts +243 -0
- package/src/_internal/util/vs/platform/instantiation/common/descriptors.ts +23 -0
- package/src/_internal/util/vs/platform/instantiation/common/graph.ts +113 -0
- package/src/_internal/util/vs/platform/instantiation/common/instantiation.ts +127 -0
- package/src/_internal/util/vs/platform/instantiation/common/instantiationService.ts +483 -0
- package/src/_internal/util/vs/platform/instantiation/common/serviceCollection.ts +34 -0
- package/src/_internal/util/vs/vscode-globals-nls.d.ts +42 -0
- package/src/_internal/util/vs/vscode-globals-product.d.ts +35 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.ts +109 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.ts +34 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/location.ts +51 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.ts +83 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.ts +296 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/position.ts +195 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/range.ts +167 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.ts +94 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.ts +103 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.ts +44 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.ts +89 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.ts +99 -0
- package/src/_internal/vscodeTypes.ts +100 -0
- package/src/main.ts +207 -0
- package/src/package.json +4063 -0
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SSEProcessor = void 0;
|
|
8
|
+
exports.splitChunk = splitChunk;
|
|
9
|
+
exports.convertToAPIJsonData = convertToAPIJsonData;
|
|
10
|
+
exports.sendCommunicationErrorTelemetry = sendCommunicationErrorTelemetry;
|
|
11
|
+
const logService_1 = require("../../log/common/logService");
|
|
12
|
+
const telemetryData_1 = require("../../telemetry/common/telemetryData");
|
|
13
|
+
const thinkingUtils_1 = require("../../thinking/common/thinkingUtils");
|
|
14
|
+
const fetch_1 = require("../common/fetch");
|
|
15
|
+
const openai_1 = require("../common/openai");
|
|
16
|
+
/** Gathers together many chunks of a single completion choice. */
|
|
17
|
+
class APIJsonDataStreaming {
|
|
18
|
+
constructor() {
|
|
19
|
+
this._text = [];
|
|
20
|
+
this._newText = [];
|
|
21
|
+
}
|
|
22
|
+
get text() {
|
|
23
|
+
return this._text;
|
|
24
|
+
}
|
|
25
|
+
append(choice) {
|
|
26
|
+
if (choice.text) {
|
|
27
|
+
const str = APIJsonDataStreaming._removeCR(choice.text);
|
|
28
|
+
this._text.push(str);
|
|
29
|
+
this._newText.push(str);
|
|
30
|
+
}
|
|
31
|
+
if (choice.delta?.content) {
|
|
32
|
+
const str = APIJsonDataStreaming._removeCR(choice.delta.content);
|
|
33
|
+
this._text.push(str);
|
|
34
|
+
this._newText.push(str);
|
|
35
|
+
}
|
|
36
|
+
if (choice.delta?.function_call && (choice.delta.function_call.name || choice.delta.function_call.arguments)) {
|
|
37
|
+
const str = APIJsonDataStreaming._removeCR(choice.delta.function_call.arguments);
|
|
38
|
+
this._text.push(str);
|
|
39
|
+
this._newText.push(str);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
flush() {
|
|
43
|
+
const delta = this._newText.join('');
|
|
44
|
+
this._newText = [];
|
|
45
|
+
return delta;
|
|
46
|
+
}
|
|
47
|
+
static _removeCR(text) {
|
|
48
|
+
return text.replace(/\r$/g, '');
|
|
49
|
+
}
|
|
50
|
+
toJSON() {
|
|
51
|
+
return {
|
|
52
|
+
text: this._text,
|
|
53
|
+
newText: this._newText
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class StreamingToolCall {
|
|
58
|
+
constructor() {
|
|
59
|
+
this.arguments = '';
|
|
60
|
+
}
|
|
61
|
+
update(toolCall) {
|
|
62
|
+
if (toolCall.id) {
|
|
63
|
+
this.id = toolCall.id;
|
|
64
|
+
}
|
|
65
|
+
if (toolCall.function?.name) {
|
|
66
|
+
this.name = toolCall.function.name;
|
|
67
|
+
}
|
|
68
|
+
if (toolCall.function?.arguments) {
|
|
69
|
+
this.arguments += toolCall.function.arguments;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
class StreamingToolCalls {
|
|
74
|
+
constructor() {
|
|
75
|
+
this.toolCalls = [];
|
|
76
|
+
}
|
|
77
|
+
getToolCalls() {
|
|
78
|
+
return this.toolCalls.map(call => {
|
|
79
|
+
return {
|
|
80
|
+
name: call.name,
|
|
81
|
+
arguments: call.arguments,
|
|
82
|
+
id: call.id,
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
hasToolCalls() {
|
|
87
|
+
return this.toolCalls.length > 0;
|
|
88
|
+
}
|
|
89
|
+
update(choice) {
|
|
90
|
+
choice.delta?.tool_calls?.forEach(toolCall => {
|
|
91
|
+
let currentCall = this.toolCalls.at(-1);
|
|
92
|
+
if (!currentCall || (toolCall.id && currentCall.id !== toolCall.id)) {
|
|
93
|
+
currentCall = new StreamingToolCall();
|
|
94
|
+
this.toolCalls.push(currentCall);
|
|
95
|
+
}
|
|
96
|
+
currentCall.update(toolCall);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// Given a string of lines separated by one or more newlines, returns complete
|
|
101
|
+
// lines and any remaining partial line data. Exported for test only.
|
|
102
|
+
function splitChunk(chunk) {
|
|
103
|
+
const dataLines = chunk.split('\n');
|
|
104
|
+
const newExtra = dataLines.pop(); // will be empty string if chunk ends with "\n"
|
|
105
|
+
return [dataLines.filter(line => line !== ''), newExtra];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Processes an HTTP request containing what is assumed to be an SSE stream of
|
|
109
|
+
* OpenAI API data. Yields a stream of `FinishedCompletion` objects, each as
|
|
110
|
+
* soon as it's finished.
|
|
111
|
+
*/
|
|
112
|
+
class SSEProcessor {
|
|
113
|
+
constructor(logService, telemetryService, expectedNumChoices, response, body, cancellationToken) {
|
|
114
|
+
this.logService = logService;
|
|
115
|
+
this.telemetryService = telemetryService;
|
|
116
|
+
this.expectedNumChoices = expectedNumChoices;
|
|
117
|
+
this.response = response;
|
|
118
|
+
this.body = body;
|
|
119
|
+
this.cancellationToken = cancellationToken;
|
|
120
|
+
this.requestId = (0, fetch_1.getRequestId)(this.response);
|
|
121
|
+
/**
|
|
122
|
+
* A key & value being here means at least one chunk with that choice index
|
|
123
|
+
* has been received. A null value means we've already finished the given
|
|
124
|
+
* solution and should not process incoming tokens further.
|
|
125
|
+
*/
|
|
126
|
+
this.solutions = {};
|
|
127
|
+
this.completedFunctionCallIdxs = new Map();
|
|
128
|
+
this.functionCalls = {};
|
|
129
|
+
this.toolCalls = new StreamingToolCalls();
|
|
130
|
+
this.functionCallName = undefined;
|
|
131
|
+
}
|
|
132
|
+
static async create(logService, telemetryService, expectedNumChoices, response, cancellationToken) {
|
|
133
|
+
const body = (await response.body());
|
|
134
|
+
body.setEncoding('utf8');
|
|
135
|
+
return new SSEProcessor(logService, telemetryService, expectedNumChoices, response, body, cancellationToken);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Yields finished completions as soon as they are available. The finishedCb
|
|
139
|
+
* is used to determine when a completion is done and should be truncated.
|
|
140
|
+
* It is called on the whole of the received solution text, once at the end
|
|
141
|
+
* of the completion (if it stops by itself) and also on any chunk that has
|
|
142
|
+
* a newline in it.
|
|
143
|
+
*
|
|
144
|
+
* Closes the server request stream when all choices are finished/truncated
|
|
145
|
+
* (as long as fastCancellation is true).
|
|
146
|
+
*
|
|
147
|
+
* Note that for this to work, the caller must consume the entire stream.
|
|
148
|
+
* This happens automatically when using a `for await` loop, but when
|
|
149
|
+
* iterating manually this needs to be done by calling `.next()` until it
|
|
150
|
+
* returns an item with done = true (or calling `.return()`).
|
|
151
|
+
*/
|
|
152
|
+
async *processSSE(finishedCb = async () => undefined) {
|
|
153
|
+
try {
|
|
154
|
+
// If it's n > 1 we don't handle usage as the usage is global for the stream and all our code assumes per choice
|
|
155
|
+
// Therefore we will just skip over the usage and yield the completions
|
|
156
|
+
if (this.expectedNumChoices > 1) {
|
|
157
|
+
for await (const usageOrCompletions of this.processSSEInner(finishedCb)) {
|
|
158
|
+
if (!(0, openai_1.isApiUsage)(usageOrCompletions)) {
|
|
159
|
+
yield usageOrCompletions;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
let completion;
|
|
165
|
+
let usage;
|
|
166
|
+
// Process both the usage and the completions, then yield one combined completions
|
|
167
|
+
for await (const usageOrCompletions of this.processSSEInner(finishedCb)) {
|
|
168
|
+
if ((0, openai_1.isApiUsage)(usageOrCompletions)) {
|
|
169
|
+
usage = usageOrCompletions;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
completion = usageOrCompletions;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
if (this.maybeCancel('after receiving the completion, but maybe before we got the usage')) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
if (completion) {
|
|
179
|
+
completion.usage = usage;
|
|
180
|
+
yield completion;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
finally {
|
|
185
|
+
this.cancel();
|
|
186
|
+
this.logService.info(`request done: requestId: [${this.requestId.headerRequestId}] model deployment ID: [${this.requestId.deploymentId}]`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
async *processSSEInner(finishedCb) {
|
|
190
|
+
// Collects pieces of the SSE stream that haven't been fully processed yet.
|
|
191
|
+
let extraData = '';
|
|
192
|
+
// This flag is set when at least for one solution we finished early (via `finishedCb`).
|
|
193
|
+
let hadEarlyFinishedSolution = false;
|
|
194
|
+
// Iterate over arbitrarily sized chunks coming in from the network.
|
|
195
|
+
for await (const chunk of this.body) {
|
|
196
|
+
if (this.maybeCancel('after awaiting body chunk')) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
// this.logService.public.debug(chunk.toString());
|
|
200
|
+
const [dataLines, remainder] = splitChunk(extraData + chunk.toString());
|
|
201
|
+
extraData = remainder;
|
|
202
|
+
// Each dataLine is complete since we've seen at least one \n after it
|
|
203
|
+
// The platform agent can return a 'function_call' finish_reason, which isn't a real function call
|
|
204
|
+
// but is echoing internal function call messages back to us. So don't treat them as real function calls
|
|
205
|
+
// if we received more data after that
|
|
206
|
+
let allowCompletingSolution = true;
|
|
207
|
+
let thinkingFound = false;
|
|
208
|
+
for (const dataLine of dataLines) {
|
|
209
|
+
// Lines which start with a `:` are SSE Comments per the spec and can be ignored
|
|
210
|
+
if (dataLine.startsWith(':')) {
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
const lineWithoutData = dataLine.slice('data:'.length).trim();
|
|
214
|
+
if (lineWithoutData === '[DONE]') {
|
|
215
|
+
thinkingFound = false;
|
|
216
|
+
yield* this.finishSolutions();
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
// TODO @lramos15 - This should not be an ugly inlined type like this
|
|
220
|
+
let json;
|
|
221
|
+
try {
|
|
222
|
+
json = JSON.parse(lineWithoutData);
|
|
223
|
+
}
|
|
224
|
+
catch (e) {
|
|
225
|
+
this.logService.error(`Error parsing JSON stream data for request id ${this.requestId.headerRequestId}:${dataLine}`);
|
|
226
|
+
sendCommunicationErrorTelemetry(this.telemetryService, `Error parsing JSON stream data for request id ${this.requestId.headerRequestId}:`, dataLine);
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
// Track usage data for this stream. Usage is global and not per choice. Therefore it's emitted as its own chunk
|
|
230
|
+
if (json.usage) {
|
|
231
|
+
yield json.usage;
|
|
232
|
+
}
|
|
233
|
+
// A message with a confirmation may or may not have 'choices'
|
|
234
|
+
if (json.copilot_confirmation && isCopilotConfirmation(json.copilot_confirmation)) {
|
|
235
|
+
await finishedCb('', 0, { text: '', copilotConfirmation: json.copilot_confirmation });
|
|
236
|
+
}
|
|
237
|
+
if (!json.choices) {
|
|
238
|
+
// Currently there are messages with a null 'choices' that include copilot_references- ignore these
|
|
239
|
+
if (!json.copilot_references && !json.copilot_confirmation) {
|
|
240
|
+
if (json.error !== undefined) {
|
|
241
|
+
this.logService.error(`Error in response for request id ${this.requestId.headerRequestId}:${json.error.message}`);
|
|
242
|
+
sendCommunicationErrorTelemetry(this.telemetryService, `Error in response for request id ${this.requestId.headerRequestId}:`, json.error.message);
|
|
243
|
+
// Encountered an error mid stream we immediately yield as the response is not usable.
|
|
244
|
+
yield {
|
|
245
|
+
index: 0,
|
|
246
|
+
finishOffset: undefined,
|
|
247
|
+
solution: new APIJsonDataStreaming(),
|
|
248
|
+
reason: openai_1.FinishedCompletionReason.ServerError,
|
|
249
|
+
error: json.error,
|
|
250
|
+
requestId: this.requestId,
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
this.logService.error(`Unexpected response with no choices or error for request id ${this.requestId.headerRequestId}`);
|
|
255
|
+
sendCommunicationErrorTelemetry(this.telemetryService, `Unexpected response with no choices or error for request id ${this.requestId.headerRequestId}`);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
// There are also messages with a null 'choices' that include copilot_errors- report these
|
|
259
|
+
if (json.copilot_errors) {
|
|
260
|
+
await finishedCb('', 0, { text: '', copilotErrors: json.copilot_errors });
|
|
261
|
+
}
|
|
262
|
+
if (json.copilot_references) {
|
|
263
|
+
await finishedCb('', 0, { text: '', copilotReferences: json.copilot_references });
|
|
264
|
+
}
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
if (this.requestId.created === 0) {
|
|
268
|
+
// Would only be 0 if we're the first actual response chunk
|
|
269
|
+
this.requestId = (0, fetch_1.getRequestId)(this.response, json);
|
|
270
|
+
if (this.requestId.created === 0 && json.choices?.length) { // An initial chunk is sent with an empty choices array and no id, to hold `prompt_filter_results`
|
|
271
|
+
this.logService.error(`Request id invalid, should have "completionId" and "created": ${JSON.stringify(this.requestId)} ${this.requestId}`);
|
|
272
|
+
sendCommunicationErrorTelemetry(this.telemetryService, `Request id invalid, should have "completionId" and "created": ${JSON.stringify(this.requestId)}`, this.requestId);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
for (let i = 0; i < json.choices.length; i++) {
|
|
276
|
+
const choice = json.choices[i];
|
|
277
|
+
this.logChoice(choice);
|
|
278
|
+
const thinkingDelta = (0, thinkingUtils_1.extractThinkingDeltaFromChoice)(choice);
|
|
279
|
+
// Once we observe any thinking text or an id in this batch, keep the flag true
|
|
280
|
+
thinkingFound ||= !!(thinkingDelta?.text || thinkingDelta?.id);
|
|
281
|
+
if (!(choice.index in this.solutions)) {
|
|
282
|
+
this.solutions[choice.index] = new APIJsonDataStreaming();
|
|
283
|
+
}
|
|
284
|
+
const solution = this.solutions[choice.index];
|
|
285
|
+
if (solution === null) {
|
|
286
|
+
if (thinkingDelta) {
|
|
287
|
+
await finishedCb('', choice.index, { text: '', thinking: thinkingDelta });
|
|
288
|
+
}
|
|
289
|
+
continue; // already finished
|
|
290
|
+
}
|
|
291
|
+
let finishOffset;
|
|
292
|
+
const emitSolution = async (delta) => {
|
|
293
|
+
if (delta?.vulnAnnotations && (!Array.isArray(delta.vulnAnnotations) || !delta.vulnAnnotations.every(a => (0, fetch_1.isCopilotAnnotation)(a)))) {
|
|
294
|
+
delta.vulnAnnotations = undefined;
|
|
295
|
+
}
|
|
296
|
+
// Validate code citation annotations carefully, because the API is a work in progress
|
|
297
|
+
if (delta?.ipCodeCitations && (!Array.isArray(delta.ipCodeCitations) || !delta.ipCodeCitations.every(fetch_1.isCodeCitationAnnotation))) {
|
|
298
|
+
delta.ipCodeCitations = undefined;
|
|
299
|
+
}
|
|
300
|
+
finishOffset = await finishedCb(solution.text.join(''), choice.index, {
|
|
301
|
+
text: solution.flush(),
|
|
302
|
+
logprobs: choice.logprobs,
|
|
303
|
+
codeVulnAnnotations: delta?.vulnAnnotations,
|
|
304
|
+
ipCitations: delta?.ipCodeCitations,
|
|
305
|
+
copilotReferences: delta?.references,
|
|
306
|
+
copilotToolCalls: delta?.toolCalls,
|
|
307
|
+
_deprecatedCopilotFunctionCalls: delta?.functionCalls,
|
|
308
|
+
beginToolCalls: delta?.beginToolCalls,
|
|
309
|
+
copilotErrors: delta?.errors,
|
|
310
|
+
thinking: thinkingDelta ?? delta?.thinking,
|
|
311
|
+
});
|
|
312
|
+
if (finishOffset !== undefined) {
|
|
313
|
+
hadEarlyFinishedSolution = true;
|
|
314
|
+
}
|
|
315
|
+
return this.maybeCancel('after awaiting finishedCb');
|
|
316
|
+
};
|
|
317
|
+
let handled = true;
|
|
318
|
+
if (choice.delta?.tool_calls) {
|
|
319
|
+
if (!this.toolCalls.hasToolCalls() && solution.text.length > 0) {
|
|
320
|
+
const firstToolName = choice.delta.tool_calls.at(0)?.function?.name;
|
|
321
|
+
if (firstToolName) {
|
|
322
|
+
// Flush the linkifier stream. See #16465
|
|
323
|
+
solution.append({ index: 0, delta: { content: ' ' } });
|
|
324
|
+
await emitSolution({ beginToolCalls: [{ name: firstToolName }] });
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
this.toolCalls.update(choice);
|
|
328
|
+
}
|
|
329
|
+
else if (choice.delta?.copilot_annotations?.CodeVulnerability || choice.delta?.copilot_annotations?.IPCodeCitations) {
|
|
330
|
+
if (await emitSolution()) {
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
if (!hadEarlyFinishedSolution) {
|
|
334
|
+
solution.append(choice);
|
|
335
|
+
if (await emitSolution({ vulnAnnotations: choice.delta?.copilot_annotations?.CodeVulnerability, ipCodeCitations: choice.delta?.copilot_annotations?.IPCodeCitations })) {
|
|
336
|
+
continue;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
else if (choice.delta?.role === 'function') {
|
|
341
|
+
if (choice.delta.content) {
|
|
342
|
+
try {
|
|
343
|
+
const references = JSON.parse(choice.delta.content);
|
|
344
|
+
if (Array.isArray(references)) {
|
|
345
|
+
if (await emitSolution({ references: references })) {
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
catch (ex) {
|
|
351
|
+
this.logService.error(`Error parsing function references: ${JSON.stringify(ex)}`);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
else if (choice.delta?.function_call && (choice.delta.function_call.name || choice.delta.function_call.arguments)) {
|
|
356
|
+
allowCompletingSolution = false;
|
|
357
|
+
this.functionCallName ??= choice.delta.function_call.name;
|
|
358
|
+
this.functionCalls[this.functionCallName] ??= new APIJsonDataStreaming();
|
|
359
|
+
const functionCall = this.functionCalls[this.functionCallName];
|
|
360
|
+
functionCall.append(choice);
|
|
361
|
+
}
|
|
362
|
+
else if ((choice.finish_reason === openai_1.FinishedCompletionReason.FunctionCall || choice.finish_reason === openai_1.FinishedCompletionReason.Stop) && this.functionCallName) {
|
|
363
|
+
// We don't want to yield the function call until we have all the data
|
|
364
|
+
const functionCallStreamObj = this.functionCalls[this.functionCallName];
|
|
365
|
+
const functionCall = { name: this.functionCallName, arguments: functionCallStreamObj.flush() };
|
|
366
|
+
this.completedFunctionCallIdxs.set(choice.index, 'function');
|
|
367
|
+
try {
|
|
368
|
+
if (await emitSolution({ functionCalls: [functionCall] })) {
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
catch (error) {
|
|
373
|
+
this.logService.error(error);
|
|
374
|
+
}
|
|
375
|
+
this.functionCalls[this.functionCallName] = null;
|
|
376
|
+
this.functionCallName = undefined;
|
|
377
|
+
if (choice.finish_reason === openai_1.FinishedCompletionReason.FunctionCall) {
|
|
378
|
+
// See note about the 'function_call' finish_reason below
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
handled = false;
|
|
384
|
+
}
|
|
385
|
+
if ((choice.finish_reason === openai_1.FinishedCompletionReason.ToolCalls || choice.finish_reason === openai_1.FinishedCompletionReason.Stop) && this.toolCalls.hasToolCalls()) {
|
|
386
|
+
handled = true;
|
|
387
|
+
const toolCalls = this.toolCalls.getToolCalls();
|
|
388
|
+
this.completedFunctionCallIdxs.set(choice.index, 'tool');
|
|
389
|
+
const toolId = toolCalls.length > 0 ? toolCalls[0].id : undefined;
|
|
390
|
+
try {
|
|
391
|
+
if (await emitSolution({ toolCalls: toolCalls, thinking: (toolId && thinkingFound) ? { metadata: { toolId } } : undefined })) {
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
catch (error) {
|
|
396
|
+
this.logService.error(error);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (!handled) {
|
|
400
|
+
solution.append(choice);
|
|
401
|
+
// Call finishedCb to determine if the solution is now complete.
|
|
402
|
+
if (await emitSolution()) {
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
const solutionDone = Boolean(choice.finish_reason) || finishOffset !== undefined;
|
|
407
|
+
if (!solutionDone) {
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
// NOTE: When there is a finish_reason the text of subsequent chunks is always '',
|
|
411
|
+
// (current chunk might still have useful text, that is why we add it above).
|
|
412
|
+
// So we know that we already got all the text to be displayed for the user.
|
|
413
|
+
// TODO: This might contain additional logprobs for excluded next tokens. We should
|
|
414
|
+
// filter out indices that correspond to excluded tokens. It will not affect the
|
|
415
|
+
// text though.
|
|
416
|
+
yield {
|
|
417
|
+
solution,
|
|
418
|
+
finishOffset,
|
|
419
|
+
reason: choice.finish_reason ?? openai_1.FinishedCompletionReason.ClientTrimmed,
|
|
420
|
+
filterReason: choiceToFilterReason(choice),
|
|
421
|
+
requestId: this.requestId,
|
|
422
|
+
index: choice.index,
|
|
423
|
+
};
|
|
424
|
+
if (this.maybeCancel('after yielding finished choice')) {
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
if (allowCompletingSolution) {
|
|
428
|
+
this.solutions[choice.index] = null;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
// Yield whatever solutions remain incomplete in case no [DONE] was received.
|
|
434
|
+
// This shouldn't happen in practice unless there was an error somewhere.
|
|
435
|
+
for (const [index, solution] of Object.entries(this.solutions)) {
|
|
436
|
+
const solutionIndex = Number(index); // Convert `index` from string to number
|
|
437
|
+
if (solution === null) {
|
|
438
|
+
continue; // already finished
|
|
439
|
+
}
|
|
440
|
+
yield {
|
|
441
|
+
solution,
|
|
442
|
+
finishOffset: undefined,
|
|
443
|
+
reason: openai_1.FinishedCompletionReason.ClientIterationDone,
|
|
444
|
+
requestId: this.requestId,
|
|
445
|
+
index: solutionIndex,
|
|
446
|
+
};
|
|
447
|
+
if (this.maybeCancel('after yielding after iteration done')) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
// Error message can be present in `extraData`
|
|
452
|
+
//
|
|
453
|
+
// When `finishedCb` decides to finish a solution early, it is possible that
|
|
454
|
+
// we will have unfinished or partial JSON data in `extraData` because we
|
|
455
|
+
// break out of the above for loop as soon as all solutions are finished.
|
|
456
|
+
//
|
|
457
|
+
// We don't want to alarm ourselves with such partial JSON data.
|
|
458
|
+
if (extraData.length > 0 && !hadEarlyFinishedSolution) {
|
|
459
|
+
try {
|
|
460
|
+
const extraDataJson = JSON.parse(extraData);
|
|
461
|
+
if (extraDataJson.error !== undefined) {
|
|
462
|
+
this.logService.error(extraDataJson.error, `Error in response: ${extraDataJson.error.message}`);
|
|
463
|
+
sendCommunicationErrorTelemetry(this.telemetryService, `Error in response: ${extraDataJson.error.message}`, extraDataJson.error);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
catch (e) {
|
|
467
|
+
this.logService.error(`Error parsing extraData for request id ${this.requestId.headerRequestId}: ${extraData}`);
|
|
468
|
+
sendCommunicationErrorTelemetry(this.telemetryService, `Error parsing extraData for request id ${this.requestId.headerRequestId}: ${extraData}`);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
/** Yields the solutions that weren't yet finished, with a 'DONE' reason. */
|
|
473
|
+
async *finishSolutions() {
|
|
474
|
+
for (const [index, solution] of Object.entries(this.solutions)) {
|
|
475
|
+
const solutionIndex = Number(index); // Convert `index` from string to number
|
|
476
|
+
if (solution === null) {
|
|
477
|
+
continue; // already finished
|
|
478
|
+
}
|
|
479
|
+
if (this.completedFunctionCallIdxs.has(solutionIndex)) {
|
|
480
|
+
yield {
|
|
481
|
+
solution,
|
|
482
|
+
finishOffset: undefined,
|
|
483
|
+
reason: this.completedFunctionCallIdxs.get(solutionIndex) === 'function' ? openai_1.FinishedCompletionReason.FunctionCall : openai_1.FinishedCompletionReason.ToolCalls,
|
|
484
|
+
requestId: this.requestId,
|
|
485
|
+
index: solutionIndex,
|
|
486
|
+
};
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
yield {
|
|
490
|
+
solution,
|
|
491
|
+
finishOffset: undefined,
|
|
492
|
+
reason: openai_1.FinishedCompletionReason.ClientDone,
|
|
493
|
+
requestId: this.requestId,
|
|
494
|
+
index: solutionIndex,
|
|
495
|
+
};
|
|
496
|
+
if (this.maybeCancel('after yielding on DONE')) {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Returns whether the cancellation token was cancelled and closes the
|
|
503
|
+
* stream if it was.
|
|
504
|
+
*/
|
|
505
|
+
maybeCancel(description) {
|
|
506
|
+
if (this.cancellationToken?.isCancellationRequested) {
|
|
507
|
+
this.logService.debug('Cancelled: ' + description);
|
|
508
|
+
this.cancel();
|
|
509
|
+
return true;
|
|
510
|
+
}
|
|
511
|
+
return false;
|
|
512
|
+
}
|
|
513
|
+
cancel() {
|
|
514
|
+
this.body.destroy();
|
|
515
|
+
}
|
|
516
|
+
logChoice(choice) {
|
|
517
|
+
const choiceCopy = { ...choice };
|
|
518
|
+
delete choiceCopy.index;
|
|
519
|
+
delete choiceCopy.content_filter_results;
|
|
520
|
+
delete choiceCopy.content_filter_offsets;
|
|
521
|
+
this.logService.trace(`choice ${JSON.stringify(choiceCopy)}`);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
exports.SSEProcessor = SSEProcessor;
|
|
525
|
+
// data: {"choices":null,"copilot_confirmation":{"type":"action","title":"Are you sure you want to proceed?","message":"This action is irreversible.","confirmation":{"id":"123"}},"id":null}
|
|
526
|
+
function isCopilotConfirmation(obj) {
|
|
527
|
+
return typeof obj.title === 'string' &&
|
|
528
|
+
typeof obj.message === 'string' &&
|
|
529
|
+
!!obj.confirmation;
|
|
530
|
+
}
|
|
531
|
+
// Function to convert from APIJsonDataStreaming to APIJsonData format
|
|
532
|
+
function convertToAPIJsonData(streamingData) {
|
|
533
|
+
const joinedText = streamingData.text.join('');
|
|
534
|
+
const out = {
|
|
535
|
+
text: joinedText,
|
|
536
|
+
tokens: streamingData.text,
|
|
537
|
+
};
|
|
538
|
+
return out;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Given a choice from the API call, returns the reason for filtering out the choice, or undefined if the choice should not be filtered out.
|
|
542
|
+
* @param choice The choice from the API call
|
|
543
|
+
* @returns The reason for filtering out the choice, or undefined if the choice should not be filtered out.
|
|
544
|
+
*/
|
|
545
|
+
function choiceToFilterReason(choice) {
|
|
546
|
+
if (choice.finish_reason !== openai_1.FinishedCompletionReason.ContentFilter) {
|
|
547
|
+
return undefined;
|
|
548
|
+
}
|
|
549
|
+
if (choice.delta?.copilot_annotations?.TextCopyright) {
|
|
550
|
+
return openai_1.FilterReason.Copyright;
|
|
551
|
+
}
|
|
552
|
+
if (choice.delta?.copilot_annotations?.Sexual || choice.delta?.copilot_annotations?.SexualPattern) {
|
|
553
|
+
return openai_1.FilterReason.Sexual;
|
|
554
|
+
}
|
|
555
|
+
if (choice.delta?.copilot_annotations?.Violence) {
|
|
556
|
+
return openai_1.FilterReason.Violence;
|
|
557
|
+
}
|
|
558
|
+
if (choice.delta?.copilot_annotations?.HateSpeech || choice.delta?.copilot_annotations?.HateSpeechPattern) {
|
|
559
|
+
return openai_1.FilterReason.Hate;
|
|
560
|
+
}
|
|
561
|
+
if (choice.delta?.copilot_annotations?.SelfHarm) {
|
|
562
|
+
return openai_1.FilterReason.SelfHarm;
|
|
563
|
+
}
|
|
564
|
+
if (choice.delta?.copilot_annotations?.PromptPromBlockList) {
|
|
565
|
+
return openai_1.FilterReason.Prompt;
|
|
566
|
+
}
|
|
567
|
+
if (!choice.content_filter_results) {
|
|
568
|
+
return undefined;
|
|
569
|
+
}
|
|
570
|
+
for (const filter of Object.keys(choice.content_filter_results)) {
|
|
571
|
+
if (choice.content_filter_results[filter]?.filtered) {
|
|
572
|
+
return filter;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return undefined;
|
|
576
|
+
}
|
|
577
|
+
function sendCommunicationErrorTelemetry(telemetryService, message, extra) {
|
|
578
|
+
const args = [message, extra];
|
|
579
|
+
const secureMessage = (args.length > 0 ? JSON.stringify(args) : 'no msg');
|
|
580
|
+
const enhancedData = telemetryData_1.TelemetryData.createAndMarkAsIssued({
|
|
581
|
+
context: 'fetch',
|
|
582
|
+
level: logService_1.LogLevel[logService_1.LogLevel.Error],
|
|
583
|
+
message: secureMessage,
|
|
584
|
+
});
|
|
585
|
+
// send full content to secure telemetry
|
|
586
|
+
telemetryService.sendEnhancedGHTelemetryErrorEvent('log', enhancedData.properties, enhancedData.measurements);
|
|
587
|
+
const data = telemetryData_1.TelemetryData.createAndMarkAsIssued({
|
|
588
|
+
context: 'fetch',
|
|
589
|
+
level: logService_1.LogLevel[logService_1.LogLevel.Error],
|
|
590
|
+
message: '[redacted]',
|
|
591
|
+
});
|
|
592
|
+
// send content that excludes customer data to standard telemetry
|
|
593
|
+
telemetryService.sendGHTelemetryErrorEvent('log', data.properties, data.measurements);
|
|
594
|
+
}
|
|
595
|
+
//# sourceMappingURL=stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/node/stream.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAmHhG,gCAIC;AAmiBD,oDAOC;AA+CD,0EAyBC;AAruBD,4DAAoE;AAEpE,wEAAqE;A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Y,CAAC,CAAC;IAE9G,MAAM,IAAI,GAAG,6BAAa,CAAC,qBAAqB,CAAC;QAChD,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,qBAAQ,CAAC,qBAAQ,CAAC,KAAK,CAAC;QAC/B,OAAO,EAAE,YAAY;KACrB,CAAC,CAAC;IAEH,iEAAiE;IACjE,gBAAgB,CAAC,yBAAyB,CACzC,KAAK,EACL,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,YAAY,CACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { LanguageModelChat, NotebookDocument, Uri } from 'vscode';
|
|
2
|
+
import { Range } from '../../../util/common/test/shims/vscodeTypesShim';
|
|
3
|
+
import { IConfigurationService } from '../../configuration/common/configurationService';
|
|
4
|
+
import { IChatEndpoint } from '../../networking/common/networking';
|
|
5
|
+
import { IExperimentationService } from '../../telemetry/common/nullExperimentationService';
|
|
6
|
+
import { BaseAlternativeNotebookContentProvider } from './alternativeContentProvider';
|
|
7
|
+
export type AlternativeContentFormat = 'xml' | 'text' | 'json';
|
|
8
|
+
export declare function getAlternativeNotebookDocumentProvider(kind: 'xml' | 'text' | 'json'): BaseAlternativeNotebookContentProvider;
|
|
9
|
+
/**
|
|
10
|
+
* Given the content, determine the format of the content.
|
|
11
|
+
*/
|
|
12
|
+
export declare function inferAlternativeNotebookContentFormat(content: string): AlternativeContentFormat;
|
|
13
|
+
export declare const IAlternativeNotebookContentService: import("../../../util/common/services").ServiceIdentifier<IAlternativeNotebookContentService>;
|
|
14
|
+
export interface IAlternativeNotebookContentService {
|
|
15
|
+
readonly _serviceBrand: undefined;
|
|
16
|
+
getFormat(options: LanguageModelChat | IChatEndpoint | undefined): AlternativeContentFormat;
|
|
17
|
+
create(format: AlternativeContentFormat): BaseAlternativeNotebookContentProvider;
|
|
18
|
+
}
|
|
19
|
+
export declare class AlternativeNotebookContentService implements IAlternativeNotebookContentService {
|
|
20
|
+
private readonly configurationService;
|
|
21
|
+
private readonly experimentationService;
|
|
22
|
+
readonly _serviceBrand: undefined;
|
|
23
|
+
constructor(configurationService: IConfigurationService, experimentationService: IExperimentationService);
|
|
24
|
+
getFormat(options: LanguageModelChat | IChatEndpoint | undefined): AlternativeContentFormat;
|
|
25
|
+
create(format: AlternativeContentFormat): BaseAlternativeNotebookContentProvider;
|
|
26
|
+
}
|
|
27
|
+
export declare function getAltNotebookRange(range: Range, cellUri: Uri, notebook: NotebookDocument, format: AlternativeContentFormat): Range | undefined;
|
|
28
|
+
//# sourceMappingURL=alternativeContent.d.ts.map
|