ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import assert from 'assert';
import * as fs from 'fs';
import type { ChatErrorDetails, LanguageModelToolInformation, MappedEditsResponseStream, TextDocument } from 'vscode';
import { CodeBlocksMetadata } from '../../src/extension/codeBlocks/node/codeBlockProcessor';
import { agentsToCommands, Intent } from '../../src/extension/common/constants';
import '../../src/extension/intents/node/allIntents';
import { ChatParticipantRequestHandler } from '../../src/extension/prompt/node/chatParticipantRequestHandler';
import { IDocumentContext
CodeMapper ICodeMapperExistingDocument
getContributedToolName
getChatParticipantIdFromName
IConversationOptions
ITabsAndEditorsService
isInExtensionHost
isNotebook SimulationWorkspace
SpyChatResponseStream
ChatRequestTurn ChatResponseTurn
CancellationToken
DisposableStore
IInstantiationService
ChatLocation ChatRequest ChatResponseAnchorPart ChatResponseMarkdownPart Uri
SimulationWorkspaceExtHost
ISimulationTestRuntime SimulationTestFunction
IWorkspaceStateFile
Scenario ScenarioEvaluator
parseQueryForScenarioTest
maxResponseTokens
temperature
topP
options IConversationOptions
_serviceBrand
maxResponseTokens maxResponseTokens
temperature temperature
topP topP
rejectionMessage
options
scenario Scenario evaluator ScenarioEvaluator SimulationTestFunction
testingServiceCollection
disposables
testingServiceCollectionIConversationOptions
simulationWorkspace disposablesisInExtensionHost
simulationWorkspacetestingServiceCollection
accessor testingServiceCollection
testContext accessorISimulationTestRuntime
message err testContextmessage err
history ChatRequestTurn ChatResponseTurn
i i scenariolength i
testCase scenarioi
simulationWorkspacetestCasegetState
testCasesetupCaseaccessor simulationWorkspace
mockProgressReporter
parsedQuery accessor testCase simulationWorkspace
participantId parsedQueryparticipantName parsedQueryparticipantName
request ChatRequest prompt parsedQueryquery references parsedQueryvariables command parsedQuerycommand location ChatLocationPanel location2 attempt enableCommandDetection isParticipantDetected toolReferences parsedQuerytoolReferences toolInvocationToken model tools id sessionId sessionResource Uri hasHooksEnabled
testCasetools
toolName shouldUse ObjecttestCasetools
requesttools name toolName LanguageModelToolInformation shouldUse
interactiveSession accessorIInstantiationService
ChatParticipantRequestHandler
history
request
mockProgressReporter
CancellationTokenNone
agentId participantId
agentName parsedQueryparticipantName
intentId parsedQueryparticipantName parsedQuerycommand parsedQuerycommand
parsedQuerycommand agentsToCommandsparsedQueryparticipantName IntentparsedQuerycommand
parsedQueryparticipantName
result interactiveSession
assertresulterrorDetails resulterrorDetailsmessage
history requestprompt requestcommand requestreferences participantId
history mockProgressReporteritemsx x x result participantId requestcommand
testCaseanswer mockProgressReportercurrentProgress
turn interactiveSessionconversation
fullResponse turnresponseMessagemessage
accessorISimulationTestRuntime
kind
content fullResponse
commands mockProgressReportercommandButtons
command commands
scenarioiapplyChatCodeBlocks
codeBlocks turnCodeBlocksMetadatacodeBlocks
testRuntime accessorISimulationTestRuntime
codeBlockslength
codeMapper accessorIInstantiationServiceCodeMapper
changedDocs Map document TextDocument originalContent postContent
codeBlockApplyErrorDetails ChatErrorDetails
codeBlock codeBlocks
prevDocument simulationWorkspaceactiveTextEditordocument
codeBlockresource
simulationWorkspacecodeBlockresource
editor accessorITabsAndEditorsServiceactiveTextEditor
codeMap codeBlockcode
document simulationWorkspaceactiveTextEditordocument
documentContext IDocumentContexteditor
workspacePath simulationWorkspacedocumenturi
previousTextContent document
response MappedEditsResponseStream
target edits
simulationWorkspacetarget edits edits edits
target edits
simulationWorkspacetarget edits edits edits
input ICodeMapperExistingDocument createNew codeBlock codeMap uri documenturi markdownBeforeBlock existingDocument documentContextdocument
result codeMapperinput response CancellationTokenNone
result
codeBlockApplyErrorDetails
message
resulterrorDetails
resulterrorDetailsmessage
codeBlockApplyErrorDetails resulterrorDetails
postEditTextContent editordocument
previousTextContent postEditTextContent
previousChange changedDocsworkspacePath
previousChange
previousChangepostContent postEditTextContent
changedDocsworkspacePath previousChange
changedDocsworkspacePath document originalContent previousTextContent postContent postEditTextContent
prevDocument
simulationWorkspaceprevDocumenturi
changedFilePaths IWorkspaceStateFile
codeBlockApplyErrorDetails changedDocssize
seenDoc
workspacePath changes changedDocs
seenDocworkspacePath
seenDocworkspacePath
changesdocumenturi
testRuntimeworkspacePath changesoriginalContent
changedFilePaths
workspacePath
relativeDiskPath testRuntimeworkspacePath changespostContent
languageId changesdocumentlanguageId
testRuntimeworkspacePath changesoriginalContent
changedFilePaths
workspacePath
relativeDiskPath testRuntimeworkspacePath changespostContent
languageId changesdocumentlanguageId
testRuntime
kind
files changedFilePathsf srcUri fworkspacePath post frelativeDiskPath
codeBlockApplyErrorDetails
testRuntime
kind
error codeBlockApplyErrorDetailsmessage
hitContentFilter codeBlockApplyErrorDetailsresponseIsFiltered
critical
evaluatedResponse
accessor
testCasequestion
mockProgressReportercurrentProgress
fullResponse
turn
i
commands
mockProgressReporterconfirmations
mockProgressReporterfileTrees
assertevaluatedResponsesuccess evaluatedResponseerrorMessage
disposables
scenario Scenario
workspaceFolderPath scenariogetStateworkspaceFolderPath
workspaceFolderPath fsworkspaceFolderPathlength
e