@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,202 @@
|
|
|
1
|
+
import { OpenAI, Raw } from '@vscode/prompt-tsx';
|
|
2
|
+
import { TelemetryData } from '../../telemetry/common/telemetryData';
|
|
3
|
+
import { ThinkingData, ThinkingDataInMessage } from '../../thinking/common/thinking';
|
|
4
|
+
import { ICopilotReference, RequestId } from './fetch';
|
|
5
|
+
/**
|
|
6
|
+
* How the logprobs field looks in the OpenAI API chunks.
|
|
7
|
+
*/
|
|
8
|
+
export interface APILogprobs {
|
|
9
|
+
text_offset: number[];
|
|
10
|
+
token_logprobs: number[];
|
|
11
|
+
top_logprobs?: {
|
|
12
|
+
[key: string]: number;
|
|
13
|
+
}[];
|
|
14
|
+
tokens: string[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Usage statistics for the completion request.
|
|
18
|
+
*/
|
|
19
|
+
export interface APIUsage {
|
|
20
|
+
/**
|
|
21
|
+
* Number of tokens in the prompt.
|
|
22
|
+
*/
|
|
23
|
+
prompt_tokens: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of tokens in the generated completion.
|
|
26
|
+
*/
|
|
27
|
+
completion_tokens: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total number of tokens used in the request (prompt + completion).
|
|
30
|
+
*/
|
|
31
|
+
total_tokens: number;
|
|
32
|
+
/**
|
|
33
|
+
* Breakdown of tokens used in the prompt.
|
|
34
|
+
*/
|
|
35
|
+
prompt_tokens_details?: {
|
|
36
|
+
cached_tokens: number;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Breakdown of tokens used in a completion.
|
|
40
|
+
*
|
|
41
|
+
* @remark it's an optional field because Copilot Proxy returns this information but not CAPI as of 18 Jun 2025
|
|
42
|
+
*/
|
|
43
|
+
completion_tokens_details?: {
|
|
44
|
+
/**
|
|
45
|
+
* Tokens generated by the model for reasoning.
|
|
46
|
+
*/
|
|
47
|
+
reasoning_tokens: number;
|
|
48
|
+
/**
|
|
49
|
+
* When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
|
|
50
|
+
*/
|
|
51
|
+
accepted_prediction_tokens: number;
|
|
52
|
+
/**
|
|
53
|
+
* When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion.
|
|
54
|
+
* However, like reasoning tokens, these tokens are still counted in the total completion tokens for purposes of billing,
|
|
55
|
+
* output, and context window limits.
|
|
56
|
+
*/
|
|
57
|
+
rejected_prediction_tokens: number;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export declare function isApiUsage(obj: unknown): obj is APIUsage;
|
|
61
|
+
export interface APIJsonData {
|
|
62
|
+
text: string;
|
|
63
|
+
tokens: readonly string[];
|
|
64
|
+
logprobs?: APILogprobs;
|
|
65
|
+
}
|
|
66
|
+
export interface APIErrorResponse {
|
|
67
|
+
code: number;
|
|
68
|
+
message: string;
|
|
69
|
+
metadata?: Record<string, any>;
|
|
70
|
+
}
|
|
71
|
+
export declare enum ChatRole {
|
|
72
|
+
System = "system",
|
|
73
|
+
User = "user",
|
|
74
|
+
Assistant = "assistant",
|
|
75
|
+
Function = "function",
|
|
76
|
+
Tool = "tool"
|
|
77
|
+
}
|
|
78
|
+
export type CAPIChatMessage = OpenAI.ChatMessage & {
|
|
79
|
+
/**
|
|
80
|
+
* CAPI references used in this message.
|
|
81
|
+
*/
|
|
82
|
+
copilot_references?: ICopilotReference[];
|
|
83
|
+
/**
|
|
84
|
+
* CAPI confirmations used in this message.
|
|
85
|
+
*/
|
|
86
|
+
copilot_confirmations?: {
|
|
87
|
+
state: string;
|
|
88
|
+
confirmation: any;
|
|
89
|
+
}[];
|
|
90
|
+
copilot_cache_control?: {
|
|
91
|
+
'type': 'ephemeral';
|
|
92
|
+
};
|
|
93
|
+
} & ThinkingDataInMessage;
|
|
94
|
+
export declare function getCAPITextPart(content: string | OpenAI.ChatCompletionContentPart[] | OpenAI.ChatCompletionContentPart): string;
|
|
95
|
+
export type RawMessageConversionCallback = (message: CAPIChatMessage, thinkingData?: ThinkingData) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Converts a raw TSX chat message to CAPI's format.
|
|
98
|
+
*
|
|
99
|
+
* **Extra:** the raw message can have `copilot_references` and
|
|
100
|
+
* `copilot_confirmations` properties, which are copied to the CAPI message.
|
|
101
|
+
*/
|
|
102
|
+
export declare function rawMessageToCAPI(message: Raw.ChatMessage, callback?: RawMessageConversionCallback): CAPIChatMessage;
|
|
103
|
+
export declare function rawMessageToCAPI(message: Raw.ChatMessage[], callback?: RawMessageConversionCallback): CAPIChatMessage[];
|
|
104
|
+
export declare enum FinishedCompletionReason {
|
|
105
|
+
/**
|
|
106
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
107
|
+
*/
|
|
108
|
+
Stop = "stop",
|
|
109
|
+
/**
|
|
110
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
111
|
+
*/
|
|
112
|
+
Length = "length",
|
|
113
|
+
/**
|
|
114
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
115
|
+
*/
|
|
116
|
+
FunctionCall = "function_call",
|
|
117
|
+
/**
|
|
118
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
119
|
+
*/
|
|
120
|
+
ToolCalls = "tool_calls",
|
|
121
|
+
/**
|
|
122
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
123
|
+
*/
|
|
124
|
+
ContentFilter = "content_filter",
|
|
125
|
+
/**
|
|
126
|
+
* Reason generated by the server (CAPI). Happens when the stream cannot be completed and the server must terminate the response.
|
|
127
|
+
*/
|
|
128
|
+
ServerError = "error",
|
|
129
|
+
/**
|
|
130
|
+
* Reason generated by the client when the finish callback asked for processing to stop.
|
|
131
|
+
*/
|
|
132
|
+
ClientTrimmed = "client-trimmed",
|
|
133
|
+
/**
|
|
134
|
+
* Reason generated by the client when we never received a finish_reason for this particular completion (indicates a server-side bug)
|
|
135
|
+
*/
|
|
136
|
+
ClientIterationDone = "Iteration Done",
|
|
137
|
+
/**
|
|
138
|
+
* Reason generated by the client when we never received a finish_reason for this particular completion (indicates a server-side bug)
|
|
139
|
+
*/
|
|
140
|
+
ClientDone = "DONE"
|
|
141
|
+
}
|
|
142
|
+
export interface IToolCall {
|
|
143
|
+
index: number;
|
|
144
|
+
id?: string;
|
|
145
|
+
function?: {
|
|
146
|
+
name: string;
|
|
147
|
+
arguments: string;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Contains the possible reasons a response can be filtered
|
|
152
|
+
*/
|
|
153
|
+
export declare enum FilterReason {
|
|
154
|
+
/**
|
|
155
|
+
* Content deemed to be hateful
|
|
156
|
+
*/
|
|
157
|
+
Hate = "hate",
|
|
158
|
+
/**
|
|
159
|
+
* Content deemed to cause self harm
|
|
160
|
+
*/
|
|
161
|
+
SelfHarm = "self_harm",
|
|
162
|
+
/**
|
|
163
|
+
* Content deemed to be sexual in nature
|
|
164
|
+
*/
|
|
165
|
+
Sexual = "sexual",
|
|
166
|
+
/**
|
|
167
|
+
* Content deemed to be violent in nature
|
|
168
|
+
*/
|
|
169
|
+
Violence = "violence",
|
|
170
|
+
/**
|
|
171
|
+
* Content contains copyrighted material
|
|
172
|
+
*/
|
|
173
|
+
Copyright = "snippy",
|
|
174
|
+
/**
|
|
175
|
+
* The prompt was filtered, the reason was not provided
|
|
176
|
+
*/
|
|
177
|
+
Prompt = "prompt"
|
|
178
|
+
}
|
|
179
|
+
export interface ChatCompletion {
|
|
180
|
+
message: Raw.ChatMessage;
|
|
181
|
+
choiceIndex: number;
|
|
182
|
+
requestId: RequestId;
|
|
183
|
+
tokens: readonly string[];
|
|
184
|
+
usage: APIUsage | undefined;
|
|
185
|
+
blockFinished: boolean;
|
|
186
|
+
finishReason: FinishedCompletionReason;
|
|
187
|
+
filterReason?: FilterReason;
|
|
188
|
+
telemetryData: TelemetryData;
|
|
189
|
+
error?: APIErrorResponse;
|
|
190
|
+
}
|
|
191
|
+
export interface ChoiceLogProbs {
|
|
192
|
+
content: ChoiceLogProbsContent[];
|
|
193
|
+
}
|
|
194
|
+
export interface TokenLogProb {
|
|
195
|
+
bytes: number[];
|
|
196
|
+
token: string;
|
|
197
|
+
logprob: number;
|
|
198
|
+
}
|
|
199
|
+
export interface ChoiceLogProbsContent extends TokenLogProb {
|
|
200
|
+
top_logprobs: TokenLogProb[];
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/common/openai.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,144 @@
|
|
|
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.FilterReason = exports.FinishedCompletionReason = exports.ChatRole = void 0;
|
|
8
|
+
exports.isApiUsage = isApiUsage;
|
|
9
|
+
exports.getCAPITextPart = getCAPITextPart;
|
|
10
|
+
exports.rawMessageToCAPI = rawMessageToCAPI;
|
|
11
|
+
const prompt_tsx_1 = require("@vscode/prompt-tsx");
|
|
12
|
+
const rawTypes_1 = require("@vscode/prompt-tsx/dist/base/output/rawTypes");
|
|
13
|
+
const thinkingDataContainer_1 = require("../../endpoint/common/thinkingDataContainer");
|
|
14
|
+
function isApiUsage(obj) {
|
|
15
|
+
return typeof obj.prompt_tokens === 'number' &&
|
|
16
|
+
typeof obj.completion_tokens === 'number' &&
|
|
17
|
+
typeof obj.total_tokens === 'number';
|
|
18
|
+
}
|
|
19
|
+
var ChatRole;
|
|
20
|
+
(function (ChatRole) {
|
|
21
|
+
ChatRole["System"] = "system";
|
|
22
|
+
ChatRole["User"] = "user";
|
|
23
|
+
ChatRole["Assistant"] = "assistant";
|
|
24
|
+
ChatRole["Function"] = "function";
|
|
25
|
+
ChatRole["Tool"] = "tool";
|
|
26
|
+
})(ChatRole || (exports.ChatRole = ChatRole = {}));
|
|
27
|
+
function getCAPITextPart(content) {
|
|
28
|
+
if (Array.isArray(content)) {
|
|
29
|
+
return content.map((part) => getCAPITextPart(part)).join('');
|
|
30
|
+
}
|
|
31
|
+
else if (typeof content === 'string') {
|
|
32
|
+
return content;
|
|
33
|
+
}
|
|
34
|
+
else if (typeof content === 'object' && 'text' in content) {
|
|
35
|
+
return content.text;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
return '';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function rawMessageToCAPI(message, callback) {
|
|
42
|
+
if (Array.isArray(message)) {
|
|
43
|
+
return message.map(m => rawMessageToCAPI(m, callback));
|
|
44
|
+
}
|
|
45
|
+
const out = (0, prompt_tsx_1.toMode)(prompt_tsx_1.OutputMode.OpenAI, message);
|
|
46
|
+
if ('copilot_references' in message) {
|
|
47
|
+
out.copilot_references = message.copilot_references;
|
|
48
|
+
}
|
|
49
|
+
if ('copilot_confirmations' in message) {
|
|
50
|
+
out.copilot_confirmations = message.copilot_confirmations;
|
|
51
|
+
}
|
|
52
|
+
if (typeof out.content === 'string') {
|
|
53
|
+
out.content = out.content.trimEnd();
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
for (const part of out.content) {
|
|
57
|
+
if (part.type === 'text') {
|
|
58
|
+
part.text = part.text.trimEnd();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (message.content.find(part => part.type === rawTypes_1.ChatCompletionContentPartKind.CacheBreakpoint)) {
|
|
63
|
+
out.copilot_cache_control = { type: 'ephemeral' };
|
|
64
|
+
}
|
|
65
|
+
for (const content of message.content) {
|
|
66
|
+
if (content.type === prompt_tsx_1.Raw.ChatCompletionContentPartKind.Opaque) {
|
|
67
|
+
const data = (0, thinkingDataContainer_1.rawPartAsThinkingData)(content);
|
|
68
|
+
if (callback && data) {
|
|
69
|
+
callback(out, data);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
75
|
+
var FinishedCompletionReason;
|
|
76
|
+
(function (FinishedCompletionReason) {
|
|
77
|
+
/**
|
|
78
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
79
|
+
*/
|
|
80
|
+
FinishedCompletionReason["Stop"] = "stop";
|
|
81
|
+
/**
|
|
82
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
83
|
+
*/
|
|
84
|
+
FinishedCompletionReason["Length"] = "length";
|
|
85
|
+
/**
|
|
86
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
87
|
+
*/
|
|
88
|
+
FinishedCompletionReason["FunctionCall"] = "function_call";
|
|
89
|
+
/**
|
|
90
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
91
|
+
*/
|
|
92
|
+
FinishedCompletionReason["ToolCalls"] = "tool_calls";
|
|
93
|
+
/**
|
|
94
|
+
* Reason generated by the server. See https://platform.openai.com/docs/guides/gpt/chat-completions-api
|
|
95
|
+
*/
|
|
96
|
+
FinishedCompletionReason["ContentFilter"] = "content_filter";
|
|
97
|
+
/**
|
|
98
|
+
* Reason generated by the server (CAPI). Happens when the stream cannot be completed and the server must terminate the response.
|
|
99
|
+
*/
|
|
100
|
+
FinishedCompletionReason["ServerError"] = "error";
|
|
101
|
+
/**
|
|
102
|
+
* Reason generated by the client when the finish callback asked for processing to stop.
|
|
103
|
+
*/
|
|
104
|
+
FinishedCompletionReason["ClientTrimmed"] = "client-trimmed";
|
|
105
|
+
/**
|
|
106
|
+
* Reason generated by the client when we never received a finish_reason for this particular completion (indicates a server-side bug)
|
|
107
|
+
*/
|
|
108
|
+
FinishedCompletionReason["ClientIterationDone"] = "Iteration Done";
|
|
109
|
+
/**
|
|
110
|
+
* Reason generated by the client when we never received a finish_reason for this particular completion (indicates a server-side bug)
|
|
111
|
+
*/
|
|
112
|
+
FinishedCompletionReason["ClientDone"] = "DONE";
|
|
113
|
+
})(FinishedCompletionReason || (exports.FinishedCompletionReason = FinishedCompletionReason = {}));
|
|
114
|
+
/**
|
|
115
|
+
* Contains the possible reasons a response can be filtered
|
|
116
|
+
*/
|
|
117
|
+
var FilterReason;
|
|
118
|
+
(function (FilterReason) {
|
|
119
|
+
/**
|
|
120
|
+
* Content deemed to be hateful
|
|
121
|
+
*/
|
|
122
|
+
FilterReason["Hate"] = "hate";
|
|
123
|
+
/**
|
|
124
|
+
* Content deemed to cause self harm
|
|
125
|
+
*/
|
|
126
|
+
FilterReason["SelfHarm"] = "self_harm";
|
|
127
|
+
/**
|
|
128
|
+
* Content deemed to be sexual in nature
|
|
129
|
+
*/
|
|
130
|
+
FilterReason["Sexual"] = "sexual";
|
|
131
|
+
/**
|
|
132
|
+
* Content deemed to be violent in nature
|
|
133
|
+
*/
|
|
134
|
+
FilterReason["Violence"] = "violence";
|
|
135
|
+
/**
|
|
136
|
+
* Content contains copyrighted material
|
|
137
|
+
*/
|
|
138
|
+
FilterReason["Copyright"] = "snippy";
|
|
139
|
+
/**
|
|
140
|
+
* The prompt was filtered, the reason was not provided
|
|
141
|
+
*/
|
|
142
|
+
FilterReason["Prompt"] = "prompt";
|
|
143
|
+
})(FilterReason || (exports.FilterReason = FilterReason = {}));
|
|
144
|
+
//# sourceMappingURL=openai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/common/openai.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ILogService } from '../../log/common/logService';
|
|
2
|
+
import { ITelemetryService } from '../../telemetry/common/telemetry';
|
|
3
|
+
import { TelemetryData } from '../../telemetry/common/telemetryData';
|
|
4
|
+
import { CAPIChatMessage, ChatCompletion } from '../common/openai';
|
|
5
|
+
import { FinishedCompletion } from './stream';
|
|
6
|
+
export declare function sendEngineMessagesLengthTelemetry(telemetryService: ITelemetryService, messages: CAPIChatMessage[], telemetryData: TelemetryData, isOutput: boolean, logService?: ILogService): void;
|
|
7
|
+
export declare function sendEngineMessagesTelemetry(telemetryService: ITelemetryService, messages: CAPIChatMessage[], telemetryData: TelemetryData, isOutput: boolean, logService?: ILogService): void;
|
|
8
|
+
export declare function prepareChatCompletionForReturn(telemetryService: ITelemetryService, logService: ILogService, c: FinishedCompletion, telemetryData: TelemetryData): ChatCompletion;
|
|
9
|
+
//# sourceMappingURL=chatStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatStream.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/node/chatStream.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAuB,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAe,eAAe,EAAE,cAAc,EAAoB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAwB,MAAM,UAAU,CAAC;AAGpE,wBAAgB,iCAAiC,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW,QAsD5L;AAED,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW,QAStL;AAED,wBAAgB,8BAA8B,CAC7C,gBAAgB,EAAE,iBAAiB,EACnC,UAAU,EAAE,WAAW,EACvB,CAAC,EAAE,kBAAkB,EACrB,aAAa,EAAE,aAAa,GAC1B,cAAc,CAkDhB"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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.sendEngineMessagesLengthTelemetry = sendEngineMessagesLengthTelemetry;
|
|
8
|
+
exports.sendEngineMessagesTelemetry = sendEngineMessagesTelemetry;
|
|
9
|
+
exports.prepareChatCompletionForReturn = prepareChatCompletionForReturn;
|
|
10
|
+
const prompt_tsx_1 = require("@vscode/prompt-tsx");
|
|
11
|
+
const globalStringUtils_1 = require("../../chat/common/globalStringUtils");
|
|
12
|
+
const telemetry_1 = require("../../telemetry/common/telemetry");
|
|
13
|
+
const openai_1 = require("../common/openai");
|
|
14
|
+
const stream_1 = require("./stream");
|
|
15
|
+
// TODO @lramos15 - Find a better file for this, since this file is for the chat stream and should not be telemetry related
|
|
16
|
+
function sendEngineMessagesLengthTelemetry(telemetryService, messages, telemetryData, isOutput, logService) {
|
|
17
|
+
const messageType = isOutput ? 'output' : 'input';
|
|
18
|
+
// Get the unique model call ID - it should already be set in the base telemetryData
|
|
19
|
+
const modelCallId = telemetryData.properties.modelCallId;
|
|
20
|
+
if (!modelCallId) {
|
|
21
|
+
// This shouldn't happen if the ID was properly generated at request start
|
|
22
|
+
logService?.warn('[TELEMETRY] modelCallId not found in telemetryData, input/output messages cannot be linked');
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
// Create messages with content and tool_calls arguments replaced by length
|
|
26
|
+
const messagesWithLength = messages.map(msg => {
|
|
27
|
+
const processedMsg = {
|
|
28
|
+
...msg, // This preserves ALL existing fields including tool_calls, tool_call_id, copilot_references, etc.
|
|
29
|
+
content: typeof msg.content === 'string'
|
|
30
|
+
? msg.content.length
|
|
31
|
+
: Array.isArray(msg.content)
|
|
32
|
+
? msg.content.reduce((total, part) => {
|
|
33
|
+
if (typeof part === 'string') {
|
|
34
|
+
return total + part.length;
|
|
35
|
+
}
|
|
36
|
+
if (part.type === 'text') {
|
|
37
|
+
return total + (part.text?.length || 0);
|
|
38
|
+
}
|
|
39
|
+
return total;
|
|
40
|
+
}, 0)
|
|
41
|
+
: 0,
|
|
42
|
+
};
|
|
43
|
+
// Process tool_calls if present
|
|
44
|
+
if ('tool_calls' in msg && msg.tool_calls && Array.isArray(msg.tool_calls)) {
|
|
45
|
+
processedMsg.tool_calls = msg.tool_calls.map((toolCall) => ({
|
|
46
|
+
...toolCall,
|
|
47
|
+
function: toolCall.function ? {
|
|
48
|
+
...toolCall.function,
|
|
49
|
+
arguments: typeof toolCall.function.arguments === 'string'
|
|
50
|
+
? toolCall.function.arguments.length
|
|
51
|
+
: toolCall.function.arguments
|
|
52
|
+
} : toolCall.function
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
return processedMsg;
|
|
56
|
+
});
|
|
57
|
+
const telemetryDataWithPrompt = telemetryData.extendedBy({
|
|
58
|
+
messagesJson: JSON.stringify(messagesWithLength),
|
|
59
|
+
message_direction: messageType,
|
|
60
|
+
modelCallId: modelCallId, // Include at telemetry event level too
|
|
61
|
+
});
|
|
62
|
+
telemetryService.sendEnhancedGHTelemetryEvent('engine.messages.length', (0, telemetry_1.multiplexProperties)(telemetryDataWithPrompt.properties), telemetryDataWithPrompt.measurements);
|
|
63
|
+
telemetryService.sendInternalMSFTTelemetryEvent('engine.messages.length', (0, telemetry_1.multiplexProperties)(telemetryDataWithPrompt.properties), telemetryDataWithPrompt.measurements);
|
|
64
|
+
}
|
|
65
|
+
function sendEngineMessagesTelemetry(telemetryService, messages, telemetryData, isOutput, logService) {
|
|
66
|
+
const telemetryDataWithPrompt = telemetryData.extendedBy({
|
|
67
|
+
messagesJson: JSON.stringify(messages),
|
|
68
|
+
});
|
|
69
|
+
telemetryService.sendEnhancedGHTelemetryEvent('engine.messages', (0, telemetry_1.multiplexProperties)(telemetryDataWithPrompt.properties), telemetryDataWithPrompt.measurements);
|
|
70
|
+
telemetryService.sendInternalMSFTTelemetryEvent('engine.messages', (0, telemetry_1.multiplexProperties)(telemetryDataWithPrompt.properties), telemetryDataWithPrompt.measurements);
|
|
71
|
+
// Also send length-only telemetry
|
|
72
|
+
sendEngineMessagesLengthTelemetry(telemetryService, messages, telemetryData, isOutput, logService);
|
|
73
|
+
}
|
|
74
|
+
function prepareChatCompletionForReturn(telemetryService, logService, c, telemetryData) {
|
|
75
|
+
let messageContent = c.solution.text.join('');
|
|
76
|
+
let blockFinished = false;
|
|
77
|
+
if (c.finishOffset !== undefined) {
|
|
78
|
+
// Trim solution to finishOffset returned by finishedCb
|
|
79
|
+
logService.debug(`message ${c.index}: early finish at offset ${c.finishOffset}`);
|
|
80
|
+
messageContent = messageContent.substring(0, c.finishOffset);
|
|
81
|
+
blockFinished = true;
|
|
82
|
+
}
|
|
83
|
+
logService.info(`message ${c.index} returned. finish reason: [${c.reason}]`);
|
|
84
|
+
logService.debug(`message ${c.index} details: finishOffset: [${c.finishOffset}] completionId: [{${c.requestId.completionId}}] created: [{${c.requestId.created}}]`);
|
|
85
|
+
const jsonData = (0, stream_1.convertToAPIJsonData)(c.solution);
|
|
86
|
+
const message = {
|
|
87
|
+
role: prompt_tsx_1.Raw.ChatRole.Assistant,
|
|
88
|
+
content: (0, globalStringUtils_1.toTextParts)(messageContent),
|
|
89
|
+
};
|
|
90
|
+
// Create enhanced message for telemetry with usage information
|
|
91
|
+
const telemetryMessage = (0, openai_1.rawMessageToCAPI)(message);
|
|
92
|
+
// Add request metadata to telemetry data
|
|
93
|
+
telemetryData.extendWithRequestId(c.requestId);
|
|
94
|
+
// Add usage information to telemetryData if available
|
|
95
|
+
let telemetryDataWithUsage = telemetryData;
|
|
96
|
+
if (c.usage) {
|
|
97
|
+
telemetryDataWithUsage = telemetryData.extendedBy({}, {
|
|
98
|
+
promptTokens: c.usage.prompt_tokens,
|
|
99
|
+
completionTokens: c.usage.completion_tokens,
|
|
100
|
+
totalTokens: c.usage.total_tokens
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
sendEngineMessagesTelemetry(telemetryService, [telemetryMessage], telemetryDataWithUsage, true, logService);
|
|
104
|
+
return {
|
|
105
|
+
message: message,
|
|
106
|
+
choiceIndex: c.index,
|
|
107
|
+
requestId: c.requestId,
|
|
108
|
+
blockFinished: blockFinished,
|
|
109
|
+
finishReason: c.reason,
|
|
110
|
+
filterReason: c.filterReason,
|
|
111
|
+
error: c.error,
|
|
112
|
+
tokens: jsonData.tokens,
|
|
113
|
+
usage: c.usage,
|
|
114
|
+
telemetryData: telemetryDataWithUsage,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=chatStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatStream.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/node/chatStream.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { CancellationToken } from 'vscode';
|
|
2
|
+
import { ILogService } from '../../log/common/logService';
|
|
3
|
+
import { ITelemetryService } from '../../telemetry/common/telemetry';
|
|
4
|
+
import { RawThinkingDelta } from '../../thinking/common/thinking';
|
|
5
|
+
import { FinishedCallback, ICodeVulnerabilityAnnotation, IIPCodeCitation, RequestId } from '../common/fetch';
|
|
6
|
+
import { Response } from '../common/fetcherService';
|
|
7
|
+
import { APIErrorResponse, APIJsonData, APIUsage, ChoiceLogProbs, FilterReason, FinishedCompletionReason, IToolCall } from '../common/openai';
|
|
8
|
+
/** Gathers together many chunks of a single completion choice. */
|
|
9
|
+
declare class APIJsonDataStreaming {
|
|
10
|
+
get text(): readonly string[];
|
|
11
|
+
private _text;
|
|
12
|
+
private _newText;
|
|
13
|
+
append(choice: ExtendedChoiceJSON): void;
|
|
14
|
+
flush(): string;
|
|
15
|
+
private static _removeCR;
|
|
16
|
+
toJSON(): {
|
|
17
|
+
text: string[];
|
|
18
|
+
newText: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare function splitChunk(chunk: string): [string[], string];
|
|
22
|
+
/**
|
|
23
|
+
* A single finished completion returned from the model or proxy, along with
|
|
24
|
+
* some metadata.
|
|
25
|
+
*/
|
|
26
|
+
export interface FinishedCompletion {
|
|
27
|
+
solution: APIJsonDataStreaming;
|
|
28
|
+
/** An optional offset into `solution.text.join('')` where the completion finishes. */
|
|
29
|
+
finishOffset: number | undefined;
|
|
30
|
+
/** A copilot-specific human-readable reason for the completion finishing. */
|
|
31
|
+
reason: FinishedCompletionReason;
|
|
32
|
+
/** A copilot-specific reason for filtering the response. Only returns when reason === FinishedCompletionReason.ContentFilter */
|
|
33
|
+
filterReason?: FilterReason;
|
|
34
|
+
error?: APIErrorResponse;
|
|
35
|
+
/** The token usage reported from CAPI */
|
|
36
|
+
usage?: APIUsage;
|
|
37
|
+
requestId: RequestId;
|
|
38
|
+
index: number;
|
|
39
|
+
}
|
|
40
|
+
/** What comes back from the OpenAI API for a single choice in an SSE chunk. */
|
|
41
|
+
interface ChoiceJSON {
|
|
42
|
+
index: number;
|
|
43
|
+
/**
|
|
44
|
+
* The text attribute as defined in completions streaming.
|
|
45
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format
|
|
46
|
+
*/
|
|
47
|
+
text?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The delta attribute as defined in chat streaming.
|
|
50
|
+
* See https://github.com/openai/openai-cookbook/blob/main/examples/How_to_stream_completions.ipynb
|
|
51
|
+
*/
|
|
52
|
+
delta?: {
|
|
53
|
+
content: string | null;
|
|
54
|
+
};
|
|
55
|
+
finish_reason?: FinishedCompletionReason.Stop | FinishedCompletionReason.Length | FinishedCompletionReason.FunctionCall | FinishedCompletionReason.ContentFilter | FinishedCompletionReason.ServerError | FinishedCompletionReason.ToolCalls | null;
|
|
56
|
+
logprobs?: ChoiceLogProbs;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Extensions to the OpenAI stream format
|
|
60
|
+
*/
|
|
61
|
+
interface ExtendedChoiceJSON extends ChoiceJSON {
|
|
62
|
+
content_filter_results?: Record<Exclude<FilterReason, FilterReason.Copyright>, {
|
|
63
|
+
filtered: boolean;
|
|
64
|
+
severity: string;
|
|
65
|
+
}>;
|
|
66
|
+
message?: RawThinkingDelta;
|
|
67
|
+
delta?: {
|
|
68
|
+
content: string | null;
|
|
69
|
+
copilot_annotations?: {
|
|
70
|
+
CodeVulnerability: ICodeVulnerabilityAnnotation[];
|
|
71
|
+
IPCodeCitations: IIPCodeCitation[];
|
|
72
|
+
TextCopyright: boolean | undefined;
|
|
73
|
+
Sexual: boolean | undefined;
|
|
74
|
+
SexualPattern: boolean | undefined;
|
|
75
|
+
Violence: boolean | undefined;
|
|
76
|
+
HateSpeech: boolean | undefined;
|
|
77
|
+
HateSpeechPattern: boolean | undefined;
|
|
78
|
+
SelfHarm: boolean | undefined;
|
|
79
|
+
PromptPromBlockList: boolean | undefined;
|
|
80
|
+
};
|
|
81
|
+
function_call?: {
|
|
82
|
+
name: string;
|
|
83
|
+
arguments: string;
|
|
84
|
+
};
|
|
85
|
+
tool_calls?: IToolCall[];
|
|
86
|
+
role?: string;
|
|
87
|
+
name?: string;
|
|
88
|
+
} & RawThinkingDelta;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Processes an HTTP request containing what is assumed to be an SSE stream of
|
|
92
|
+
* OpenAI API data. Yields a stream of `FinishedCompletion` objects, each as
|
|
93
|
+
* soon as it's finished.
|
|
94
|
+
*/
|
|
95
|
+
export declare class SSEProcessor {
|
|
96
|
+
private readonly logService;
|
|
97
|
+
private readonly telemetryService;
|
|
98
|
+
private readonly expectedNumChoices;
|
|
99
|
+
private readonly response;
|
|
100
|
+
private readonly body;
|
|
101
|
+
private readonly cancellationToken?;
|
|
102
|
+
private requestId;
|
|
103
|
+
/**
|
|
104
|
+
* A key & value being here means at least one chunk with that choice index
|
|
105
|
+
* has been received. A null value means we've already finished the given
|
|
106
|
+
* solution and should not process incoming tokens further.
|
|
107
|
+
*/
|
|
108
|
+
private readonly solutions;
|
|
109
|
+
private readonly completedFunctionCallIdxs;
|
|
110
|
+
private readonly functionCalls;
|
|
111
|
+
private readonly toolCalls;
|
|
112
|
+
private functionCallName;
|
|
113
|
+
private constructor();
|
|
114
|
+
static create(logService: ILogService, telemetryService: ITelemetryService, expectedNumChoices: number, response: Response, cancellationToken?: CancellationToken): Promise<SSEProcessor>;
|
|
115
|
+
/**
|
|
116
|
+
* Yields finished completions as soon as they are available. The finishedCb
|
|
117
|
+
* is used to determine when a completion is done and should be truncated.
|
|
118
|
+
* It is called on the whole of the received solution text, once at the end
|
|
119
|
+
* of the completion (if it stops by itself) and also on any chunk that has
|
|
120
|
+
* a newline in it.
|
|
121
|
+
*
|
|
122
|
+
* Closes the server request stream when all choices are finished/truncated
|
|
123
|
+
* (as long as fastCancellation is true).
|
|
124
|
+
*
|
|
125
|
+
* Note that for this to work, the caller must consume the entire stream.
|
|
126
|
+
* This happens automatically when using a `for await` loop, but when
|
|
127
|
+
* iterating manually this needs to be done by calling `.next()` until it
|
|
128
|
+
* returns an item with done = true (or calling `.return()`).
|
|
129
|
+
*/
|
|
130
|
+
processSSE(finishedCb?: FinishedCallback): AsyncIterable<FinishedCompletion>;
|
|
131
|
+
private processSSEInner;
|
|
132
|
+
/** Yields the solutions that weren't yet finished, with a 'DONE' reason. */
|
|
133
|
+
private finishSolutions;
|
|
134
|
+
/**
|
|
135
|
+
* Returns whether the cancellation token was cancelled and closes the
|
|
136
|
+
* stream if it was.
|
|
137
|
+
*/
|
|
138
|
+
private maybeCancel;
|
|
139
|
+
private cancel;
|
|
140
|
+
private logChoice;
|
|
141
|
+
}
|
|
142
|
+
export declare function convertToAPIJsonData(streamingData: APIJsonDataStreaming): APIJsonData;
|
|
143
|
+
export declare function sendCommunicationErrorTelemetry(telemetryService: ITelemetryService, message: string, extra?: any): void;
|
|
144
|
+
export {};
|
|
145
|
+
//# sourceMappingURL=stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/node/stream.ts"],"names":[],"mappings":"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"}
|