@vscode/chat-lib 0.0.5-0 → 0.0.5-10
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/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts +7 -2
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts.map +1 -1
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.js +16 -5
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.js.map +1 -1
- package/dist/src/_internal/extension/common/constants.d.ts +1 -0
- package/dist/src/_internal/extension/common/constants.d.ts.map +1 -1
- package/dist/src/_internal/extension/common/constants.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/common/jumpToCursorPosition.d.ts +2 -0
- package/dist/src/_internal/extension/inlineEdits/common/jumpToCursorPosition.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/jumpToCursorPosition.js +9 -0
- package/dist/src/_internal/extension/inlineEdits/common/jumpToCursorPosition.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +70 -9
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js +2 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts +4 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js.map +1 -1
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +18 -6
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +0 -19
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js +13 -123
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -1
- package/dist/src/_internal/extension/xtab/common/systemMessages.d.ts +6 -0
- package/dist/src/_internal/extension/xtab/common/systemMessages.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/systemMessages.js +104 -0
- package/dist/src/_internal/extension/xtab/common/systemMessages.js.map +1 -0
- package/dist/src/_internal/extension/xtab/common/tags.d.ts +15 -0
- package/dist/src/_internal/extension/xtab/common/tags.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/tags.js +24 -0
- package/dist/src/_internal/extension/xtab/common/tags.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +2 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js +91 -45
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
- package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts +3 -1
- package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts.map +1 -1
- package/dist/src/_internal/platform/authentication/common/copilotToken.js +3 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.js.map +1 -1
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts +1 -3
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts.map +1 -1
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js +8 -14
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js.map +1 -1
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts +25 -11
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts.map +1 -1
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js +71 -24
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js.map +1 -1
- package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +6 -1
- package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -1
- package/dist/src/_internal/platform/chat/common/commonTypes.js +4 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +15 -5
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.js +19 -9
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts +3 -3
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts.map +1 -1
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js +11 -6
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js.map +1 -1
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts +1 -1
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts.map +1 -1
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js +1 -1
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +6 -1
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +28 -20
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts +9 -2
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/autoChatEndpoint.d.ts +30 -0
- package/dist/src/_internal/platform/endpoint/node/autoChatEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/autoChatEndpoint.js +118 -0
- package/dist/src/_internal/platform/endpoint/node/autoChatEndpoint.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts +3 -4
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +41 -70
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +9 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js +35 -30
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts +6 -1
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -1
- package/dist/src/_internal/platform/github/common/githubAPI.js +77 -0
- package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -1
- package/dist/src/_internal/platform/github/common/githubService.d.ts +47 -13
- package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
- package/dist/src/_internal/platform/github/common/githubService.js +23 -0
- package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
- package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts +5 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.d.ts +6 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.js +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +8 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +26 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +7 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +7 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts +5 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js +45 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js.map +1 -1
- package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts +12 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts.map +1 -1
- package/dist/src/_internal/platform/languageServer/common/languageContextService.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetcherService.d.ts +1 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetcherService.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/networking.d.ts +6 -1
- package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/networking.js +2 -0
- package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/openai.d.ts +1 -0
- package/dist/src/_internal/platform/networking/common/openai.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/node/chatStream.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/node/chatStream.js +1 -0
- package/dist/src/_internal/platform/networking/node/chatStream.js.map +1 -1
- package/dist/src/_internal/platform/networking/node/stream.d.ts +2 -0
- package/dist/src/_internal/platform/networking/node/stream.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/node/stream.js +5 -4
- package/dist/src/_internal/platform/networking/node/stream.js.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts +5 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js +3 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js +32 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js +24 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js.map +1 -1
- package/dist/src/_internal/platform/openai/node/fetch.js +2 -0
- package/dist/src/_internal/platform/openai/node/fetch.js.map +1 -1
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts +5 -42
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts.map +1 -1
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.js +1 -40
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.js.map +1 -1
- package/dist/src/_internal/util/common/crypto.d.ts +1 -0
- package/dist/src/_internal/util/common/crypto.d.ts.map +1 -1
- package/dist/src/_internal/util/common/crypto.js +10 -0
- package/dist/src/_internal/util/common/crypto.js.map +1 -1
- package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts +22 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts.map +1 -1
- package/dist/src/_internal/util/common/test/shims/chatTypes.js +26 -1
- package/dist/src/_internal/util/common/test/shims/chatTypes.js.map +1 -1
- package/dist/src/_internal/util/common/test/shims/enums.d.ts +5 -0
- package/dist/src/_internal/util/common/test/shims/enums.d.ts.map +1 -1
- package/dist/src/_internal/util/common/test/shims/enums.js +7 -1
- package/dist/src/_internal/util/common/test/shims/enums.js.map +1 -1
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +4 -1
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/async.d.ts +7 -3
- package/dist/src/_internal/util/vs/base/common/async.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/async.js +16 -5
- package/dist/src/_internal/util/vs/base/common/async.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/cache.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/cache.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/cache.js +27 -1
- package/dist/src/_internal/util/vs/base/common/cache.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/cancellation.d.ts +21 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/cancellation.js +53 -1
- package/dist/src/_internal/util/vs/base/common/cancellation.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/codicons.d.ts +16 -1
- package/dist/src/_internal/util/vs/base/common/codicons.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts +16 -1
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js +16 -1
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/errors.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/errors.js +1 -0
- package/dist/src/_internal/util/vs/base/common/errors.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/extpath.js +4 -4
- package/dist/src/_internal/util/vs/base/common/extpath.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/glob.js +1 -1
- package/dist/src/_internal/util/vs/base/common/glob.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/hash.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts +2 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/htmlContent.js +9 -5
- package/dist/src/_internal/util/vs/base/common/htmlContent.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts +17 -2
- package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/lifecycle.js +41 -8
- package/dist/src/_internal/util/vs/base/common/lifecycle.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/map.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/network.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/network.js +1 -0
- package/dist/src/_internal/util/vs/base/common/network.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/numbers.d.ts +0 -45
- package/dist/src/_internal/util/vs/base/common/numbers.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/numbers.js +0 -55
- package/dist/src/_internal/util/vs/base/common/numbers.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/objects.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts +4 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js +4 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.js +3 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +71 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts +4 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js +8 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js +9 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js +12 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js +4 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js +10 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.js +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js +3 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js +2 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/platform.d.ts +1 -0
- package/dist/src/_internal/util/vs/base/common/platform.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/platform.js +4 -0
- package/dist/src/_internal/util/vs/base/common/platform.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/process.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/stream.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/strings.d.ts +0 -1
- package/dist/src/_internal/util/vs/base/common/strings.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/strings.js +0 -4
- package/dist/src/_internal/util/vs/base/common/strings.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/themables.d.ts +8 -0
- package/dist/src/_internal/util/vs/base/common/themables.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/themables.js +14 -0
- package/dist/src/_internal/util/vs/base/common/themables.js.map +1 -1
- package/dist/src/_internal/util/vs/base/common/types.d.ts +4 -0
- package/dist/src/_internal/util/vs/base/common/types.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/base/common/types.js +11 -1
- package/dist/src/_internal/util/vs/base/common/types.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js +12 -3
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/position.d.ts +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/position.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/position.js +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/position.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/range.d.ts +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/range.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/range.js +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/range.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts +3 -3
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts +3 -2
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js +5 -1
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js.map +1 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts +2 -2
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js.map +1 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts +8 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js.map +1 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts.map +1 -1
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js.map +1 -1
- package/dist/src/_internal/vscodeTypes.d.ts +3 -0
- package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
- package/dist/src/_internal/vscodeTypes.js +5 -2
- package/dist/src/_internal/vscodeTypes.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js +2 -2
- package/dist/src/main.js.map +1 -1
- package/dist/src/package.json +256 -86
- package/package.json +3 -3
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts +0 -16
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts.map +0 -1
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js +0 -147
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js.map +0 -1
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts +0 -69
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts.map +0 -1
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js +0 -23
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js.map +0 -1
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts +0 -80
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts.map +0 -1
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js +0 -77
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js.map +0 -1
- package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts +0 -26
- package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts.map +0 -1
- package/dist/src/_internal/platform/nesFetch/common/responseStream.js +0 -125
- package/dist/src/_internal/platform/nesFetch/common/responseStream.js.map +0 -1
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts +0 -27
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts.map +0 -1
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js +0 -222
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js.map +0 -1
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts +0 -10
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts.map +0 -1
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js +0 -86
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.N_LINES_AS_CONTEXT = exports.N_LINES_BELOW = exports.N_LINES_ABOVE = exports.PromptPieces =
|
|
7
|
+
exports.N_LINES_AS_CONTEXT = exports.N_LINES_BELOW = exports.N_LINES_ABOVE = exports.PromptPieces = void 0;
|
|
8
8
|
exports.getUserPrompt = getUserPrompt;
|
|
9
9
|
exports.toUniquePath = toUniquePath;
|
|
10
10
|
exports.buildCodeSnippetsUsingPagedClipping = buildCodeSnippetsUsingPagedClipping;
|
|
@@ -20,117 +20,7 @@ const arrays_1 = require("../../../util/vs/base/common/arrays");
|
|
|
20
20
|
const errors_1 = require("../../../util/vs/base/common/errors");
|
|
21
21
|
const network_1 = require("../../../util/vs/base/common/network");
|
|
22
22
|
const offsetRange_1 = require("../../../util/vs/editor/common/core/ranges/offsetRange");
|
|
23
|
-
|
|
24
|
-
(function (PromptTags) {
|
|
25
|
-
PromptTags.CURSOR = "<|cursor|>";
|
|
26
|
-
function createTag(key) {
|
|
27
|
-
return {
|
|
28
|
-
start: `<|${key}|>`,
|
|
29
|
-
end: `<|/${key}|>`
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
PromptTags.EDIT_WINDOW = createTag("code_to_edit");
|
|
33
|
-
PromptTags.AREA_AROUND = createTag("area_around_code_to_edit");
|
|
34
|
-
PromptTags.CURRENT_FILE = createTag("current_file_content");
|
|
35
|
-
PromptTags.EDIT_HISTORY = createTag("edit_diff_history");
|
|
36
|
-
PromptTags.RECENT_FILES = createTag("recently_viewed_code_snippets");
|
|
37
|
-
PromptTags.RECENT_FILE = createTag("recently_viewed_code_snippet");
|
|
38
|
-
})(PromptTags || (exports.PromptTags = PromptTags = {}));
|
|
39
|
-
exports.systemPromptTemplate = `Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the ${PromptTags.EDIT_WINDOW.start} and ${PromptTags.EDIT_WINDOW.end} tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
|
|
40
|
-
|
|
41
|
-
You have access to the following information to help you make informed suggestions:
|
|
42
|
-
|
|
43
|
-
- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest, with line numbers in the form #| to help you understand the edit diff history. It's possible these are entirely irrelevant to the developer's change.
|
|
44
|
-
- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code. Line numbers in the form #| are included to help you understand the edit diff history.
|
|
45
|
-
- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.
|
|
46
|
-
- area_around_code_to_edit: The context showing the code surrounding the section to be edited.
|
|
47
|
-
- cursor position marked as ${PromptTags.CURSOR}: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.
|
|
48
|
-
|
|
49
|
-
Your task is to predict and complete the changes the developer would have made next in the ${PromptTags.EDIT_WINDOW.start} section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.
|
|
50
|
-
|
|
51
|
-
# Steps
|
|
52
|
-
|
|
53
|
-
1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.
|
|
54
|
-
2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.
|
|
55
|
-
3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.
|
|
56
|
-
4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.
|
|
57
|
-
|
|
58
|
-
# Output Format
|
|
59
|
-
|
|
60
|
-
- Provide only the revised code within the tags. If no changes are necessary, simply return the original code from within the ${PromptTags.EDIT_WINDOW.start} and ${PromptTags.EDIT_WINDOW.end} tags.
|
|
61
|
-
- There are line numbers in the form #| in the code displayed to you above, but these are just for your reference. Please do not include the numbers of the form #| in your response.
|
|
62
|
-
- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the ${PromptTags.EDIT_WINDOW.start} or ${PromptTags.EDIT_WINDOW.end} tags.
|
|
63
|
-
|
|
64
|
-
\`\`\`
|
|
65
|
-
// Your revised code goes here
|
|
66
|
-
\`\`\`
|
|
67
|
-
|
|
68
|
-
# Notes
|
|
69
|
-
|
|
70
|
-
- Apologize with "Sorry, I can't assist with that." for requests that may breach Microsoft content guidelines.
|
|
71
|
-
- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.
|
|
72
|
-
- Don't include the line numbers of the form #| in your response.`;
|
|
73
|
-
exports.unifiedModelSystemPrompt = `Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
|
|
74
|
-
|
|
75
|
-
You have access to the following information to help you make informed suggestions:
|
|
76
|
-
|
|
77
|
-
- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest. It's possible these are entirely irrelevant to the developer's change.
|
|
78
|
-
- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code.
|
|
79
|
-
- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.
|
|
80
|
-
- area_around_code_to_edit: The context showing the code surrounding the section to be edited.
|
|
81
|
-
- cursor position marked as <|cursor|>: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.
|
|
82
|
-
|
|
83
|
-
Your task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.
|
|
84
|
-
|
|
85
|
-
# Steps
|
|
86
|
-
|
|
87
|
-
1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.
|
|
88
|
-
2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.
|
|
89
|
-
3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.
|
|
90
|
-
4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.
|
|
91
|
-
|
|
92
|
-
# Output Format
|
|
93
|
-
- Your response should start with the word <EDIT>, <INSERT>, or <NO_CHANGE>.
|
|
94
|
-
- If your are making an edit, start with <EDIT>, then provide the rewritten code window, then </EDIT>.
|
|
95
|
-
- If you are inserting new code, start with <INSERT> and then provide only the new code that will be inserted at the cursor position, then </INSERT>.
|
|
96
|
-
- If no changes are necessary, reply only with <NO_CHANGE>.
|
|
97
|
-
- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the <|code_to_edit|> or <|/code_to_edit|> tags.
|
|
98
|
-
|
|
99
|
-
# Notes
|
|
100
|
-
|
|
101
|
-
- Apologize with "Sorry, I can't assist with that." for requests that may breach Microsoft content guidelines.
|
|
102
|
-
- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
103
|
-
exports.nes41Miniv3SystemPrompt = `Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
|
|
104
|
-
|
|
105
|
-
You have access to the following information to help you make informed suggestions:
|
|
106
|
-
|
|
107
|
-
- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest. It's possible these are entirely irrelevant to the developer's change.
|
|
108
|
-
- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code.
|
|
109
|
-
- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.
|
|
110
|
-
- area_around_code_to_edit: The context showing the code surrounding the section to be edited.
|
|
111
|
-
- cursor position marked as <|cursor|>: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.
|
|
112
|
-
|
|
113
|
-
Your task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.
|
|
114
|
-
|
|
115
|
-
# Steps
|
|
116
|
-
|
|
117
|
-
1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.
|
|
118
|
-
2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.
|
|
119
|
-
3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.
|
|
120
|
-
4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.
|
|
121
|
-
|
|
122
|
-
# Output Format
|
|
123
|
-
- Your response should start with the word <EDIT> or <NO_CHANGE>.
|
|
124
|
-
- If your are making an edit, start with <EDIT>, then provide the rewritten code window, then </EDIT>.
|
|
125
|
-
- If no changes are necessary, reply only with <NO_CHANGE>.
|
|
126
|
-
- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the <|code_to_edit|> or <|/code_to_edit|> tags.
|
|
127
|
-
|
|
128
|
-
# Notes
|
|
129
|
-
|
|
130
|
-
- Apologize with "Sorry, I can't assist with that." for requests that may breach Microsoft content guidelines.
|
|
131
|
-
- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
132
|
-
exports.simplifiedPrompt = 'Predict next code edit based on the context given by the user.';
|
|
133
|
-
exports.xtab275SystemPrompt = `Predict the next code edit based on user context, following Microsoft content policies and avoiding copyright violations. If a request may breach guidelines, reply: "Sorry, I can't assist with that."`;
|
|
23
|
+
const tags_1 = require("./tags");
|
|
134
24
|
class PromptPieces {
|
|
135
25
|
constructor(currentDocument, editWindowLinesRange, areaAroundEditWindowLinesRange, activeDoc, xtabHistory, currentFileContent, areaAroundCodeToEdit, langCtx, computeTokens, opts) {
|
|
136
26
|
this.currentDocument = currentDocument;
|
|
@@ -154,18 +44,18 @@ function getUserPrompt(promptPieces) {
|
|
|
154
44
|
const relatedInformation = getRelatedInformation(langCtx);
|
|
155
45
|
const currentFilePath = toUniquePath(activeDoc.id, activeDoc.workspaceRoot?.path);
|
|
156
46
|
const postScript = promptPieces.opts.includePostScript ? getPostScript(opts.promptingStrategy, currentFilePath) : '';
|
|
157
|
-
const mainPrompt = `${PromptTags.RECENT_FILES.start}
|
|
47
|
+
const mainPrompt = `${tags_1.PromptTags.RECENT_FILES.start}
|
|
158
48
|
${recentlyViewedCodeSnippets}
|
|
159
|
-
${PromptTags.RECENT_FILES.end}
|
|
49
|
+
${tags_1.PromptTags.RECENT_FILES.end}
|
|
160
50
|
|
|
161
|
-
${PromptTags.CURRENT_FILE.start}
|
|
51
|
+
${tags_1.PromptTags.CURRENT_FILE.start}
|
|
162
52
|
current_file_path: ${currentFilePath}
|
|
163
53
|
${currentFileContent}
|
|
164
|
-
${PromptTags.CURRENT_FILE.end}
|
|
54
|
+
${tags_1.PromptTags.CURRENT_FILE.end}
|
|
165
55
|
|
|
166
|
-
${PromptTags.EDIT_HISTORY.start}
|
|
56
|
+
${tags_1.PromptTags.EDIT_HISTORY.start}
|
|
167
57
|
${editDiffHistory}
|
|
168
|
-
${PromptTags.EDIT_HISTORY.end}
|
|
58
|
+
${tags_1.PromptTags.EDIT_HISTORY.end}
|
|
169
59
|
|
|
170
60
|
${areaAroundCodeToEdit}`;
|
|
171
61
|
const includeBackticks = opts.promptingStrategy !== xtabPromptOptions_1.PromptingStrategy.Nes41Miniv3 && opts.promptingStrategy !== xtabPromptOptions_1.PromptingStrategy.Codexv21NesUnified;
|
|
@@ -182,20 +72,20 @@ function getPostScript(strategy, currentFilePath) {
|
|
|
182
72
|
case xtabPromptOptions_1.PromptingStrategy.Codexv21NesUnified:
|
|
183
73
|
break;
|
|
184
74
|
case xtabPromptOptions_1.PromptingStrategy.UnifiedModel:
|
|
185
|
-
postScript = `The developer was working on a section of code within the tags \`code_to_edit\` in the file located at \`${currentFilePath}\`. Using the given \`recently_viewed_code_snippets\`, \`current_file_content\`, \`edit_diff_history\`, \`area_around_code_to_edit\`, and the cursor position marked as \`${PromptTags.CURSOR}\`, please continue the developer's work. Update the \`code_to_edit\` section by predicting and completing the changes they would have made next. Start your response with <EDIT>, <INSERT>, or <NO_CHANGE>. If you are making an edit, start with <EDIT> and then provide the rewritten code window followed by </EDIT>. If you are inserting new code, start with <INSERT> and then provide only the new code that will be inserted at the cursor position followed by </INSERT>. If no changes are necessary, reply only with <NO_CHANGE>. Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
75
|
+
postScript = `The developer was working on a section of code within the tags \`code_to_edit\` in the file located at \`${currentFilePath}\`. Using the given \`recently_viewed_code_snippets\`, \`current_file_content\`, \`edit_diff_history\`, \`area_around_code_to_edit\`, and the cursor position marked as \`${tags_1.PromptTags.CURSOR}\`, please continue the developer's work. Update the \`code_to_edit\` section by predicting and completing the changes they would have made next. Start your response with <EDIT>, <INSERT>, or <NO_CHANGE>. If you are making an edit, start with <EDIT> and then provide the rewritten code window followed by </EDIT>. If you are inserting new code, start with <INSERT> and then provide only the new code that will be inserted at the cursor position followed by </INSERT>. If no changes are necessary, reply only with <NO_CHANGE>. Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
186
76
|
break;
|
|
187
77
|
case xtabPromptOptions_1.PromptingStrategy.Nes41Miniv3:
|
|
188
78
|
postScript = `The developer was working on a section of code within the tags <|code_to_edit|> in the file located at \`${currentFilePath}\`. Using the given \`recently_viewed_code_snippets\`, \`current_file_content\`, \`edit_diff_history\`, \`area_around_code_to_edit\`, and the cursor position marked as \`<|cursor|>\`, please continue the developer's work. Update the <|code_to_edit|> section by predicting and completing the changes they would have made next. Start your response with <EDIT> or <NO_CHANGE>. If you are making an edit, start with <EDIT> and then provide the rewritten code window followed by </EDIT>. If no changes are necessary, reply only with <NO_CHANGE>. Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
189
79
|
break;
|
|
190
80
|
case xtabPromptOptions_1.PromptingStrategy.Xtab275:
|
|
191
|
-
postScript = `The developer was working on a section of code within the tags \`code_to_edit\` in the file located at \`${currentFilePath}\`. Using the given \`recently_viewed_code_snippets\`, \`current_file_content\`, \`edit_diff_history\`, \`area_around_code_to_edit\`, and the cursor position marked as \`${PromptTags.CURSOR}\`, please continue the developer's work. Update the \`code_to_edit\` section by predicting and completing the changes they would have made next. Provide the revised code that was between the \`${PromptTags.EDIT_WINDOW.start}\` and \`${PromptTags.EDIT_WINDOW.end}\` tags, but do not include the tags themselves. Avoid undoing or reverting the developer's last change unless there are obvious typos or errors. Don't include the line numbers or the form #| in your response. Do not skip any lines. Do not be lazy.`;
|
|
81
|
+
postScript = `The developer was working on a section of code within the tags \`code_to_edit\` in the file located at \`${currentFilePath}\`. Using the given \`recently_viewed_code_snippets\`, \`current_file_content\`, \`edit_diff_history\`, \`area_around_code_to_edit\`, and the cursor position marked as \`${tags_1.PromptTags.CURSOR}\`, please continue the developer's work. Update the \`code_to_edit\` section by predicting and completing the changes they would have made next. Provide the revised code that was between the \`${tags_1.PromptTags.EDIT_WINDOW.start}\` and \`${tags_1.PromptTags.EDIT_WINDOW.end}\` tags, but do not include the tags themselves. Avoid undoing or reverting the developer's last change unless there are obvious typos or errors. Don't include the line numbers or the form #| in your response. Do not skip any lines. Do not be lazy.`;
|
|
192
82
|
break;
|
|
193
83
|
case xtabPromptOptions_1.PromptingStrategy.SimplifiedSystemPrompt:
|
|
194
84
|
default:
|
|
195
85
|
postScript = `The developer was working on a section of code within the tags \`code_to_edit\` in the file located at \`${currentFilePath}\`. \
|
|
196
86
|
Using the given \`recently_viewed_code_snippets\`, \`current_file_content\`, \`edit_diff_history\`, \`area_around_code_to_edit\`, and the cursor \
|
|
197
|
-
position marked as \`${PromptTags.CURSOR}\`, please continue the developer's work. Update the \`code_to_edit\` section by predicting and completing the changes \
|
|
198
|
-
they would have made next. Provide the revised code that was between the \`${PromptTags.EDIT_WINDOW.start}\` and \`${PromptTags.EDIT_WINDOW.end}\` tags with the following format, but do not include the tags themselves.
|
|
87
|
+
position marked as \`${tags_1.PromptTags.CURSOR}\`, please continue the developer's work. Update the \`code_to_edit\` section by predicting and completing the changes \
|
|
88
|
+
they would have made next. Provide the revised code that was between the \`${tags_1.PromptTags.EDIT_WINDOW.start}\` and \`${tags_1.PromptTags.EDIT_WINDOW.end}\` tags with the following format, but do not include the tags themselves.
|
|
199
89
|
\`\`\`
|
|
200
90
|
// Your revised code goes here
|
|
201
91
|
\`\`\``;
|
|
@@ -299,7 +189,7 @@ function formatCodeSnippet(documentId, fileContent, truncate = false) {
|
|
|
299
189
|
const firstLine = truncate
|
|
300
190
|
? `code_snippet_file_path: ${filePath} (truncated)`
|
|
301
191
|
: `code_snippet_file_path: ${filePath}`;
|
|
302
|
-
return [PromptTags.RECENT_FILE.start, firstLine, fileContent, PromptTags.RECENT_FILE.end].join('\n');
|
|
192
|
+
return [tags_1.PromptTags.RECENT_FILE.start, firstLine, fileContent, tags_1.PromptTags.RECENT_FILE.end].join('\n');
|
|
303
193
|
}
|
|
304
194
|
function getRecentCodeSnippets(activeDoc, xtabHistory, langCtx, computeTokens, opts) {
|
|
305
195
|
const { includeViewedFiles, nDocuments } = opts.recentlyViewedDocuments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptCrafting.js","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/common/promptCrafting.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAiKhG,sCAsC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EF,OAAO,eAAM,CAAC,EAAE,CAAC,EAAE,wBAAwB,EAAE,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,wBAAwB,CAAC,MAAM,EAAE,CAAC,CAAC;AAC9H,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const systemPromptTemplate: string;
|
|
2
|
+
export declare const unifiedModelSystemPrompt = "Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.\n\nYou have access to the following information to help you make informed suggestions:\n\n- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest. It's possible these are entirely irrelevant to the developer's change.\n- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code.\n- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.\n- area_around_code_to_edit: The context showing the code surrounding the section to be edited.\n- cursor position marked as <|cursor|>: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.\n\nYour task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.\n\n# Steps\n\n1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.\n2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.\n3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.\n4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.\n\n# Output Format\n- Your response should start with the word <EDIT>, <INSERT>, or <NO_CHANGE>.\n- If your are making an edit, start with <EDIT>, then provide the rewritten code window, then </EDIT>.\n- If you are inserting new code, start with <INSERT> and then provide only the new code that will be inserted at the cursor position, then </INSERT>.\n- If no changes are necessary, reply only with <NO_CHANGE>.\n- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the <|code_to_edit|> or <|/code_to_edit|> tags.\n\n# Notes\n\n- Apologize with \"Sorry, I can't assist with that.\" for requests that may breach Microsoft content guidelines.\n- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.";
|
|
3
|
+
export declare const nes41Miniv3SystemPrompt = "Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.\n\nYou have access to the following information to help you make informed suggestions:\n\n- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest. It's possible these are entirely irrelevant to the developer's change.\n- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code.\n- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.\n- area_around_code_to_edit: The context showing the code surrounding the section to be edited.\n- cursor position marked as <|cursor|>: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.\n\nYour task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.\n\n# Steps\n\n1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.\n2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.\n3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.\n4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.\n\n# Output Format\n- Your response should start with the word <EDIT> or <NO_CHANGE>.\n- If your are making an edit, start with <EDIT>, then provide the rewritten code window, then </EDIT>.\n- If no changes are necessary, reply only with <NO_CHANGE>.\n- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the <|code_to_edit|> or <|/code_to_edit|> tags.\n\n# Notes\n\n- Apologize with \"Sorry, I can't assist with that.\" for requests that may breach Microsoft content guidelines.\n- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.";
|
|
4
|
+
export declare const simplifiedPrompt = "Predict next code edit based on the context given by the user.";
|
|
5
|
+
export declare const xtab275SystemPrompt = "Predict the next code edit based on user context, following Microsoft content policies and avoiding copyright violations. If a request may breach guidelines, reply: \"Sorry, I can't assist with that.\"";
|
|
6
|
+
//# sourceMappingURL=systemMessages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemMessages.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/common/systemMessages.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,QAiCiC,CAAC;AAEnE,eAAO,MAAM,wBAAwB,k0GA6B8D,CAAC;AAEpG,eAAO,MAAM,uBAAuB,gqGA4B+D,CAAC;AAEpG,eAAO,MAAM,gBAAgB,mEAAmE,CAAC;AAEjG,eAAO,MAAM,mBAAmB,8MAA4M,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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.xtab275SystemPrompt = exports.simplifiedPrompt = exports.nes41Miniv3SystemPrompt = exports.unifiedModelSystemPrompt = exports.systemPromptTemplate = void 0;
|
|
8
|
+
const tags_1 = require("./tags");
|
|
9
|
+
exports.systemPromptTemplate = `Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the ${tags_1.PromptTags.EDIT_WINDOW.start} and ${tags_1.PromptTags.EDIT_WINDOW.end} tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
|
|
10
|
+
|
|
11
|
+
You have access to the following information to help you make informed suggestions:
|
|
12
|
+
|
|
13
|
+
- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest, with line numbers in the form #| to help you understand the edit diff history. It's possible these are entirely irrelevant to the developer's change.
|
|
14
|
+
- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code. Line numbers in the form #| are included to help you understand the edit diff history.
|
|
15
|
+
- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.
|
|
16
|
+
- area_around_code_to_edit: The context showing the code surrounding the section to be edited.
|
|
17
|
+
- cursor position marked as ${tags_1.PromptTags.CURSOR}: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.
|
|
18
|
+
|
|
19
|
+
Your task is to predict and complete the changes the developer would have made next in the ${tags_1.PromptTags.EDIT_WINDOW.start} section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.
|
|
20
|
+
|
|
21
|
+
# Steps
|
|
22
|
+
|
|
23
|
+
1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.
|
|
24
|
+
2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.
|
|
25
|
+
3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.
|
|
26
|
+
4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.
|
|
27
|
+
|
|
28
|
+
# Output Format
|
|
29
|
+
|
|
30
|
+
- Provide only the revised code within the tags. If no changes are necessary, simply return the original code from within the ${tags_1.PromptTags.EDIT_WINDOW.start} and ${tags_1.PromptTags.EDIT_WINDOW.end} tags.
|
|
31
|
+
- There are line numbers in the form #| in the code displayed to you above, but these are just for your reference. Please do not include the numbers of the form #| in your response.
|
|
32
|
+
- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the ${tags_1.PromptTags.EDIT_WINDOW.start} or ${tags_1.PromptTags.EDIT_WINDOW.end} tags.
|
|
33
|
+
|
|
34
|
+
\`\`\`
|
|
35
|
+
// Your revised code goes here
|
|
36
|
+
\`\`\`
|
|
37
|
+
|
|
38
|
+
# Notes
|
|
39
|
+
|
|
40
|
+
- Apologize with "Sorry, I can't assist with that." for requests that may breach Microsoft content guidelines.
|
|
41
|
+
- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.
|
|
42
|
+
- Don't include the line numbers of the form #| in your response.`;
|
|
43
|
+
exports.unifiedModelSystemPrompt = `Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
|
|
44
|
+
|
|
45
|
+
You have access to the following information to help you make informed suggestions:
|
|
46
|
+
|
|
47
|
+
- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest. It's possible these are entirely irrelevant to the developer's change.
|
|
48
|
+
- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code.
|
|
49
|
+
- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.
|
|
50
|
+
- area_around_code_to_edit: The context showing the code surrounding the section to be edited.
|
|
51
|
+
- cursor position marked as <|cursor|>: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.
|
|
52
|
+
|
|
53
|
+
Your task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.
|
|
54
|
+
|
|
55
|
+
# Steps
|
|
56
|
+
|
|
57
|
+
1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.
|
|
58
|
+
2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.
|
|
59
|
+
3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.
|
|
60
|
+
4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.
|
|
61
|
+
|
|
62
|
+
# Output Format
|
|
63
|
+
- Your response should start with the word <EDIT>, <INSERT>, or <NO_CHANGE>.
|
|
64
|
+
- If your are making an edit, start with <EDIT>, then provide the rewritten code window, then </EDIT>.
|
|
65
|
+
- If you are inserting new code, start with <INSERT> and then provide only the new code that will be inserted at the cursor position, then </INSERT>.
|
|
66
|
+
- If no changes are necessary, reply only with <NO_CHANGE>.
|
|
67
|
+
- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the <|code_to_edit|> or <|/code_to_edit|> tags.
|
|
68
|
+
|
|
69
|
+
# Notes
|
|
70
|
+
|
|
71
|
+
- Apologize with "Sorry, I can't assist with that." for requests that may breach Microsoft content guidelines.
|
|
72
|
+
- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
73
|
+
exports.nes41Miniv3SystemPrompt = `Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
|
|
74
|
+
|
|
75
|
+
You have access to the following information to help you make informed suggestions:
|
|
76
|
+
|
|
77
|
+
- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest. It's possible these are entirely irrelevant to the developer's change.
|
|
78
|
+
- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code.
|
|
79
|
+
- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer's intentions. These changes are listed from oldest to latest. It's possible a lot of old edit diff history is entirely irrelevant to the developer's change.
|
|
80
|
+
- area_around_code_to_edit: The context showing the code surrounding the section to be edited.
|
|
81
|
+
- cursor position marked as <|cursor|>: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.
|
|
82
|
+
|
|
83
|
+
Your task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they're following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn't get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.
|
|
84
|
+
|
|
85
|
+
# Steps
|
|
86
|
+
|
|
87
|
+
1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.
|
|
88
|
+
2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.
|
|
89
|
+
3. **Suggest Edits**: If changes are required, ensure they align with the developer's patterns and improve code quality.
|
|
90
|
+
4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.
|
|
91
|
+
|
|
92
|
+
# Output Format
|
|
93
|
+
- Your response should start with the word <EDIT> or <NO_CHANGE>.
|
|
94
|
+
- If your are making an edit, start with <EDIT>, then provide the rewritten code window, then </EDIT>.
|
|
95
|
+
- If no changes are necessary, reply only with <NO_CHANGE>.
|
|
96
|
+
- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags and should not include the <|code_to_edit|> or <|/code_to_edit|> tags.
|
|
97
|
+
|
|
98
|
+
# Notes
|
|
99
|
+
|
|
100
|
+
- Apologize with "Sorry, I can't assist with that." for requests that may breach Microsoft content guidelines.
|
|
101
|
+
- Avoid undoing or reverting the developer's last change unless there are obvious typos or errors.`;
|
|
102
|
+
exports.simplifiedPrompt = 'Predict next code edit based on the context given by the user.';
|
|
103
|
+
exports.xtab275SystemPrompt = `Predict the next code edit based on user context, following Microsoft content policies and avoiding copyright violations. If a request may breach guidelines, reply: "Sorry, I can't assist with that."`;
|
|
104
|
+
//# sourceMappingURL=systemMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemMessages.js","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/common/systemMessages.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,iCAAoC;AAEvB,QAAA,oBAAoB,GAAG,gJAAgJ,iBAAU,CAAC,WAAW,CAAC,KAAK,QAAQ,iBAAU,CAAC,WAAW,CAAC,GAAG;;;;;;;;8BAQpN,iBAAU,CAAC,MAAM;;6FAE8C,iBAAU,CAAC,WAAW,CAAC,KAAK;;;;;;;;;;;gIAWO,iBAAU,CAAC,WAAW,CAAC,KAAK,QAAQ,iBAAU,CAAC,WAAW,CAAC,GAAG;;iLAEb,iBAAU,CAAC,WAAW,CAAC,KAAK,OAAO,iBAAU,CAAC,WAAW,CAAC,GAAG;;;;;;;;;;kEAU5K,CAAC;AAEtD,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGA6B2D,CAAC;AAEvF,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGA4B4D,CAAC;AAEvF,QAAA,gBAAgB,GAAG,gEAAgE,CAAC;AAEpF,QAAA,mBAAmB,GAAG,yMAAyM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare namespace PromptTags {
|
|
2
|
+
export const CURSOR = "<|cursor|>";
|
|
3
|
+
type Tag = {
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
};
|
|
7
|
+
export const EDIT_WINDOW: Tag;
|
|
8
|
+
export const AREA_AROUND: Tag;
|
|
9
|
+
export const CURRENT_FILE: Tag;
|
|
10
|
+
export const EDIT_HISTORY: Tag;
|
|
11
|
+
export const RECENT_FILES: Tag;
|
|
12
|
+
export const RECENT_FILE: Tag;
|
|
13
|
+
export {};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/common/tags.ts"],"names":[],"mappings":"AAKA,yBAAiB,UAAU,CAAC;IAC3B,MAAM,CAAC,MAAM,MAAM,eAAe,CAAC;IAEnC,KAAK,GAAG,GAAG;QACV,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;IASF,MAAM,CAAC,MAAM,WAAW,KAA4B,CAAC;IAErD,MAAM,CAAC,MAAM,WAAW,KAAwC,CAAC;IAEjE,MAAM,CAAC,MAAM,YAAY,KAAoC,CAAC;IAE9D,MAAM,CAAC,MAAM,YAAY,KAAiC,CAAC;IAE3D,MAAM,CAAC,MAAM,YAAY,KAA6C,CAAC;IAEvE,MAAM,CAAC,MAAM,WAAW,KAA4C,CAAC;;CACrE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.PromptTags = void 0;
|
|
8
|
+
var PromptTags;
|
|
9
|
+
(function (PromptTags) {
|
|
10
|
+
PromptTags.CURSOR = "<|cursor|>";
|
|
11
|
+
function createTag(key) {
|
|
12
|
+
return {
|
|
13
|
+
start: `<|${key}|>`,
|
|
14
|
+
end: `<|/${key}|>`
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
PromptTags.EDIT_WINDOW = createTag("code_to_edit");
|
|
18
|
+
PromptTags.AREA_AROUND = createTag("area_around_code_to_edit");
|
|
19
|
+
PromptTags.CURRENT_FILE = createTag("current_file_content");
|
|
20
|
+
PromptTags.EDIT_HISTORY = createTag("edit_diff_history");
|
|
21
|
+
PromptTags.RECENT_FILES = createTag("recently_viewed_code_snippets");
|
|
22
|
+
PromptTags.RECENT_FILE = createTag("recently_viewed_code_snippet");
|
|
23
|
+
})(PromptTags || (exports.PromptTags = PromptTags = {}));
|
|
24
|
+
//# sourceMappingURL=tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/common/tags.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,IAAiB,UAAU,CA0B1B;AA1BD,WAAiB,UAAU;IACb,iBAAM,GAAG,YAAY,CAAC;IAOnC,SAAS,SAAS,CAAC,GAAW;QAC7B,OAAO;YACN,KAAK,EAAE,KAAK,GAAG,IAAI;YACnB,GAAG,EAAE,MAAM,GAAG,IAAI;SAClB,CAAC;IACH,CAAC;IAEY,sBAAW,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC;IAExC,sBAAW,GAAG,SAAS,CAAC,0BAA0B,CAAC,CAAC;IAEpD,uBAAY,GAAG,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAEjD,uBAAY,GAAG,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAE9C,uBAAY,GAAG,SAAS,CAAC,+BAA+B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I;aACvB;YACD,QAAQ,EAAE;gBACT,SAAS,EAAE,IAAI;gBACf,mBAAmB,EAAE,KAAK;gBAC1B,UAAU,EAAE,KAAK;gBACjB,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE,IAAI;aAChB;SACD;KACD,AAvB2B,CAuB1B;IAEF,YACkB,IAAY,EACZ,OAAe,EAChC,oBAAwC,EACA,cAAqC,EAC7D,cAA8B,EAC7B,eAAgC,EAC7B,kBAAsC,EACvC,iBAAoC,EAC/B,YAAoC,EAC5C,cAA8B,EAC1B,kBAAsC,EACnC,qBAA4C,EAC1C,uBAAgD,EAC5D,WAAwB;QAErC,MAAM,aAAa,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,GAAG,cAAY,CAAC,aAAa,EAAE,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,cAAY,CAAC,aAAa,CAAC;QACtI,KAAK,CACJ,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,WAAW,CACX,CAAC;QA7Be,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAAQ;QAEQ,mBAAc,GAAd,cAAc,CAAuB;IA2B9E,CAAC;IAED,IAAa,oBAAoB;QAChC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,gCAAS,CAAC,QAAQ,CAAC,0BAA0B,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC;IAClG,CAAC;
|
|
1
|
+
{"version":3,"file":"xtabEndpoint.js","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/node/xtabEndpoint.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;;;;;;;;AAEhG,2FAAgG;AAChG,+EAA6E;AAC7E,sGAA2H;AAC3H,6EAAkF;AAClF,mFAAiF;AAEjF,+EAA4E;AAC5E,wEAAsE;AACt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AAQ;QACZ,YAAO,GAAP,OAAO,CAAQ;QAEQ,mBAAc,GAAd,cAAc,CAAuB;IA2B9E,CAAC;IAED,IAAa,oBAAoB;QAChC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,gCAAS,CAAC,QAAQ,CAAC,0BAA0B,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC;IAClG,CAAC;IAGe,eAAe;QAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,gCAAS,CAAC,QAAQ,CAAC,6BAA6B,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC;QAC/G,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,mCAAmC,IAAI,CAAC,oBAAoB,iLAAiL,CAAC;YAC9P,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO;YACN,eAAe,EAAE,UAAU,MAAM,EAAE;YACnC,SAAS,EAAE,MAAM;SACjB,CAAC;IACH,CAAC;;AA5EW,oCAAY;uBAAZ,YAAY;IA+BtB,WAAA,4CAAqB,CAAA;IACrB,WAAA,8BAAc,CAAA;IACd,WAAA,gCAAe,CAAA;IACf,WAAA,+BAAkB,CAAA;IAClB,WAAA,6BAAiB,CAAA;IACjB,WAAA,uCAAsB,CAAA;IACtB,WAAA,8BAAc,CAAA;IACd,YAAA,8BAAkB,CAAA;IAClB,YAAA,qCAAqB,CAAA;IACrB,YAAA,oDAAuB,CAAA;IACvB,YAAA,wBAAW,CAAA;GAzCD,YAAY,CA6ExB"}
|
|
@@ -58,7 +58,8 @@ export declare class XtabProvider implements IStatelessNextEditProvider {
|
|
|
58
58
|
private getLanguageContext;
|
|
59
59
|
streamEdits(request: StatelessNextEditRequest, pushEdit: PushEdit, endpoint: IChatEndpoint, messages: Raw.ChatMessage[], editWindow: OffsetRange, editWindowLines: string[], cursorOriginalLinesOffset: number, cursorLineOffset: number, // cursor offset within the line it's in; 1-based
|
|
60
60
|
editWindowLineRange: OffsetRange, promptPieces: PromptPieces, prediction: Prediction | undefined, opts: {
|
|
61
|
-
|
|
61
|
+
showLabel: boolean;
|
|
62
|
+
responseFormat: xtabPromptOptions.ResponseFormat;
|
|
62
63
|
shouldRemoveCursorTagFromResponse: boolean;
|
|
63
64
|
retryState: RetryState;
|
|
64
65
|
}, delaySession: DelaySession, parentTracer: ITracer, telemetryBuilder: StatelessNextEditTelemetryBuilder, logContext: InlineEditRequestLogContext, cancellationToken: CancellationToken): Promise<Result<void, NoNextEditReason> | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xtabProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/node/xtabProvider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAoC,qBAAqB,EAAkB,MAAM,6DAA6D,CAAC;AACtJ,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"xtabProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/extension/xtab/node/xtabProvider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAoC,qBAAqB,EAAkB,MAAM,6DAA6D,CAAC;AACtJ,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAK/E,OAAO,KAAK,iBAAiB,MAAM,kEAAkE,CAAC;AAEtG,OAAO,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAExG,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,QAAQ,EAAE,sBAAsB,EAA6B,wBAA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