Это 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{ describe, expect, it }from'vitest';importtype{ ChatPromptReference }from'vscode';import{ TestLogService }from'../../../../../platform/testing/common/testLogService';import{ mock }from'../../../../../util/common/test/simpleMock';import{URI}from'../../../../../util/vs/base/common/uri';import{
ChatRequestTurn2, ChatResponseMarkdownPart, ChatResponsePullRequestPart, ChatResponseThinkingProgressPart, ChatResponseTurn2, ChatToolInvocationPart, MarkdownString
}from'../../../../../vscodeTypes'
CancellationToken
buildChatHistoryFromEvents createCopilotCLIToolInvocation enrichToolInvocationWithSubagentMetadata extractCdPrefix FakeToolsService getAffectedUrisForEditTool isCopilotCliEditToolCall isCopilotCLIToolThatCouldRequirePermissions isTodoRelatedSqlQuery processToolExecutionComplete processToolExecutionStart RequestIdDetails stripReminders ToolCall updateTodoListFromSqlItems
formatModelDetails formatModelDetailsWithCredits formatModelDetailsWithMultiplier
IChatDelegationSummaryService
part ChatToolInvocationPart
part
msg partinvocationMessage
msg
msg msg
msg msg value
msgvalue
delegationSummary
override sessionId message prompt reference ChatPromptReference
logger
toolName arguments command path
toolName arguments command path new_str
toolName arguments command path
toolName arguments command path
toolName arguments path
toolName arguments path
uri toolName arguments command path
uri
toolName arguments command path
input
input
input
input
input
input
input
input
input
input
events
type data content attachments
type data content
turns events getVSCodeRequestId delegationSummary logger
turns
turnsChatRequestTurn2
turnsChatResponseTurn2
responseParts turns response
parts responsePartsparts responseParts_parts responseParts
prPart partsp p
prPart
markdownPart partsp p
markdownPart
prPart
prPart title
prPart commandcommand
markdownPart
markdownPart valuevalue markdownPart value
invocation toolName toolCallId arguments command path view_range ChatToolInvocationPart
invocationChatToolInvocationPart
msg invocationinvocationMessage invocationinvocationMessage invocationinvocationMessagevalue
msg
msg
events
type data content attachments
type data toolName toolCallId arguments thought
type data toolName toolCallId success
type data toolName toolCallId arguments command description
type data toolName toolCallId success
turns events getVSCodeRequestId delegationSummary logger
turns
responseTurn turns ChatResponseTurn2
responseParts responseTurn response
parts responsePartsparts responseParts_parts responseParts
thinkingParts partsp p
thinkingParts
toolInvocations partsp p
toolInvocations
bashInvocation toolInvocations ChatToolInvocationPart
bashInvocation
events
type data content attachments
type data toolName toolCallId arguments summary
type data toolName toolCallId success
turns events getVSCodeRequestId delegationSummary logger
turns
responseTurn turns ChatResponseTurn2
responseParts responseTurn response
parts responsePartsparts responseParts_parts responseParts
markdownParts partsp p
markdownParts
markdownParts valuevalue markdownParts value
events
type data content attachments
type data content
turns events getVSCodeRequestId delegationSummary logger name multiplier
turns
responseTurn turns ChatResponseTurn2
responseTurnresult details
modelDetails
name multiplier
name multiplier
name multiplier
name multiplier
events
type data selectedModel
type id data content attachments
type data content
type data previousModel newModel
type id data content attachments
type data content
type data previousModel newModel
type id data content attachments
type data content
type data previousModel newModel
type id data content attachments
type data content
turns events getVSCodeRequestId delegationSummary logger modelDetails
turnsturn turn turn turn ChatRequestTurn2modelId
turnsturn turn turn turn ChatResponseTurn2result
details
details
details
details
events
type id data content attachments
type data content
type data model inputTokens outputTokens
turns events getVSCodeRequestId delegationSummary logger name multiplier
turns
turns ChatRequestTurn2modelId
turns ChatResponseTurn2result details
events
type data selectedModel
type id data content attachments
type data content
type id data content attachments
type data content
detailsByEventId Record RequestIdDetails
u1 requestId toolIdEditMap responseModelId
u2 requestId toolIdEditMap responseModelId
sdkRequestId detailsByEventIdsdkRequestId
turns events lookup delegationSummary logger
name multiplier
name multiplier
turns
turnsturn turn turn turn ChatRequestTurn2modelId
turnsturn turn turn turn ChatResponseTurn2result
details
details
events
type id data content attachments
type data content
detailsByEventId Record RequestIdDetails
u1 requestId toolIdEditMap responseModelId creditsUsed
sdkRequestId detailsByEventIdsdkRequestId
turns events lookup delegationSummary logger
name multiplier
turns
turns ChatResponseTurn2result details
events
type id data content attachments
type data content
detailsByEventId Record RequestIdDetails
u1 requestId toolIdEditMap responseModelId creditsUsed
sdkRequestId detailsByEventIdsdkRequestId
turns events lookup delegationSummary logger
name multiplier
turns ChatResponseTurn2result details
events
type id data content attachments
type data content
detailsByEventId Record RequestIdDetails
u1 requestId toolIdEditMap responseModelId
sdkRequestId detailsByEventIdsdkRequestId
turns events lookup delegationSummary logger
name multiplier
turns ChatResponseTurn2result details
events
type id data content attachments
type data content
type id data content attachments
type data content
detailsByEventId Record RequestIdDetails
u1 requestId toolIdEditMap responseModelId creditsUsed
u2 requestId toolIdEditMap responseModelId creditsUsed
sdkRequestId detailsByEventIdsdkRequestId
turns events lookup delegationSummary logger
name multiplier
turnsturn turn turn turn ChatResponseTurn2result
details
details
events
type data
content
attachments
type path displayName
turns events getVSCodeRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
refs requestTurnreferences
fileRef refsr rid
fileRef
fileRefname
events
type data
content
attachments
type path displayName
turns events getVSCodeRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
refs requestTurnreferences
refslength
dirRef refsr rid
dirRef
events
type data
content
attachments
type path displayName
type path displayName
type path displayName
turns events getVSCodeRequestId delegationSummary logger
requestTurn turns ChatRequestTurn2
refs requestTurnreferences
paths refsr rid
pathsnot
pathsnot
paths
events
type data
content
attachments
type path displayName
type path displayName
turns events getVSCodeRequestId delegationSummary logger
requestTurn turns ChatRequestTurn2
appRefs requestTurnreferencesr rid
appRefs
events
type id data content attachments
type id data messageId content
type id data messageId deltaContent parentToolCallId
type id data messageId content parentToolCallId
type id data messageId content
turns events getVSCodeRequestId delegationSummary logger
turns
responseTurn turns ChatResponseTurn2
parts responseTurn responseparts responseTurn response_parts responseTurn response
markdownParts partsp p
allText markdownPartsp p valuevalue p value
allText
allText
allTextnot
allTextnot
events
type id data content attachments
type data content messageId
getRequestId sdkRequestId RequestIdDetails
sdkRequestId
requestId
toolIdEditMap
modeInstructions
uri
name
content
metadata key
isBuiltin
turns events getRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
requestTurnmodeInstructions2
requestTurnmodeInstructions2name
requestTurnmodeInstructions2content
requestTurnmodeInstructions2uri
requestTurnmodeInstructions2metadata key
requestTurnmodeInstructions2isBuiltin
events
type id data content attachments
getRequestId sdkRequestId RequestIdDetails
sdkRequestId
requestId toolIdEditMap
turns events getRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
requestTurnmodeInstructions2
events
type id data content attachments
getRequestId sdkRequestId RequestIdDetails
sdkRequestId
requestId
toolIdEditMap
modeInstructions
name
content
isBuiltin
turns events getRequestId delegationSummary logger
requestTurn turns ChatRequestTurn2
requestTurnmodeInstructions2
requestTurnmodeInstructions2uri
requestTurnmodeInstructions2name
requestTurnmodeInstructions2isBuiltin
events
type data content attachments agentMode
type data content
turns events getVSCodeRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
requestTurnprompt
events
type data content attachments agentMode
type data content
turns events getVSCodeRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
requestTurnprompt
events
type data content attachments
type data content
turns events getVSCodeRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
requestTurnprompt
events
type data content attachments agentMode
type data content
turns events getVSCodeRequestId delegationSummary logger
turns
requestTurn turns ChatRequestTurn2
requestTurnprompt
toolName toolCallId arguments intent
part toolName toolCallId arguments thought
partChatResponseThinkingProgressPart
part toolName toolCallId arguments command description
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments command path
partChatToolInvocationPart
msg part ChatToolInvocationPart
msg
it
part toolName toolCallId arguments path
partChatToolInvocationPart
part ChatToolInvocationPart
it
part toolName toolCallId arguments path diff
partChatToolInvocationPart
part ChatToolInvocationPart
it
part toolName toolCallId arguments path view_range
partChatToolInvocationPart
msg part ChatToolInvocationPart
msg
msg
part toolName toolCallId arguments workType workTitle workDescription
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments summary
partChatResponseMarkdownPart
part ChatResponseMarkdownPartvaluevalue
part toolName toolCallId arguments
part
part toolName toolCallId arguments question
partChatToolInvocationPart
part ChatToolInvocationPart
part
toolName
toolCallId
arguments
message
requestedSchema
properties
target type
required
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments skill
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments description prompt agent_type
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments agent_id
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments summary
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments description query
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments operation file line character
partChatToolInvocationPart
msg part ChatToolInvocationPart
msg
msg
part toolName toolCallId arguments operation query
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments title description draft
partChatToolInvocationPart
part ChatToolInvocationPart
part ChatToolInvocationPartoriginMessage
part toolName toolCallId arguments query
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments subject fact citations reason category
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
part toolName toolCallId arguments dependencies name version ecosystem
partChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
part toolName toolCallId arguments input
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments agent_id message
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
part toolName toolCallId arguments path
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments pattern
partChatToolInvocationPart
part ChatToolInvocationPart
part toolName toolCallId arguments
partChatToolInvocationPart
pending
startEvent type data toolName toolCallId arguments command
part startEvent pending
partChatToolInvocationPart
completeEvent type data toolName toolCallId success
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedisComplete
completedisError
completedisConfirmed
pending
type data toolName toolCallId arguments command pending
completeEvent type data toolName toolCallId success error message code
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedisComplete
completedisError
completedisConfirmed
completed
pending
part
type
data toolName toolCallId arguments summary
pending
partChatResponseMarkdownPart
part ChatResponseMarkdownPartvaluevalue
pendingsize
pending
type
data toolName toolCallId arguments summary
pending
completed
type
data toolName toolCallId success
pending logger
completed
part completed
partChatResponseMarkdownPart
part ChatResponseMarkdownPartvaluevalue
pending
startEvent
type
data toolName toolCallId mcpServerName mcpToolName arguments foo
startEvent pending
completeEvent
type
data
toolName
toolCallId
mcpServerName
mcpToolName
success
result
contents
type text
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedisComplete
completedtoolSpecificData
mcpData completedtoolSpecificData
mcpDatainput
mcpDataoutput
pending
type
data toolName toolCallId mcpServerName mcpToolName arguments
pending
completeEvent
type
data
toolName
toolCallId
mcpServerName
mcpToolName
success
result contents
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedtoolSpecificData
pending
type
data toolName toolCallId mcpServerName mcpToolName arguments
pending
completeEvent
type
data
toolName
toolCallId
mcpServerName
mcpToolName
success
result
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedtoolSpecificData
pending
type
data toolName toolCallId arguments pattern
pending
completeEvent
type
data
toolName
toolCallId
success
result
contents
type text
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedpastTenseMessage
completedtoolSpecificData
data completedtoolSpecificData
datavalues
pending
type
data toolName toolCallId arguments pattern
pending
completeEvent
type
data
toolName
toolCallId
success
result
contents
type text
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedpastTenseMessage
completedpastTenseMessagenot
data completedtoolSpecificData
datavalues
pending
type
data toolName toolCallId arguments pattern
pending
completeEvent
type
data
toolName
toolCallId
success
result
contents
type text
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
data completedtoolSpecificData
datavalues
pending
type
data toolName toolCallId arguments pattern
pending
completeEvent
type
data
toolName
toolCallId
success
result
content
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
completedpastTenseMessage
data completedtoolSpecificData
datavalues
pending
type
data toolName toolCallId arguments pattern
pending
completeEvent
type
data
toolName
toolCallId
success
result
content
completed completeEvent pending logger ChatToolInvocationPart ToolCall parentToolCallId
data completedtoolSpecificData
datavalues
result
result directory command
result
result directory command
result
result directory command
result
result directory command
result
result directory command
workingDirectory
part
toolName
toolCallId
arguments command description
workingDirectory ChatToolInvocationPart
partChatToolInvocationPart
data parttoolSpecificData
datacommandLineoriginal
datapresentationOverrides commandLine
workingDirectory
part
toolName
toolCallId
arguments command description
workingDirectory ChatToolInvocationPart
data parttoolSpecificData
datacommandLineoriginal
datapresentationOverrides
part
toolName
toolCallId
arguments command description
ChatToolInvocationPart
data parttoolSpecificData
datacommandLineoriginal
datapresentationOverrides
workingDirectory
part
toolName
toolCallId
arguments command description
workingDirectory ChatToolInvocationPart
data parttoolSpecificData
datacommandLineoriginal
datapresentationOverrides
workingDirectory
pending
type
data toolName toolCallId arguments command description
pending workingDirectory
completed
type
data
toolName
toolCallId
success
result content
pending logger workingDirectory ChatToolInvocationPart ToolCall parentToolCallId
data completedtoolSpecificData
datacommandLineoriginal
datapresentationOverrides commandLine
datastateexitCode
workingDirectory
pending
type
data toolName toolCallId arguments command description
pending workingDirectory
completed
type
data
toolName
toolCallId
success
result content
pending logger workingDirectory ChatToolInvocationPart ToolCall parentToolCallId
data completedtoolSpecificData
datapresentationOverrides
data Record type data
toolName toolCallId arguments path
toolName toolCallId arguments path
toolName toolCallId arguments command path
toolName toolCallId arguments command
toolName toolCallId arguments command
toolName toolCallId arguments path
toolName toolCallId mcpServerName arguments command
toolName toolCallId mcpServerName arguments path
toolName toolCallId arguments thought
toolName toolCallId arguments
toolName toolCallId arguments pattern
toolName toolCallId arguments pattern
toolName toolCallId arguments command path
events
type data content attachments
type data toolName toolCallId arguments
type data toolName toolCallId success
turns events getVSCodeRequestId delegationSummary logger
turns
events
type data content
type data content attachments
type data content
turns events getVSCodeRequestId delegationSummary logger
turnst t
turnst t
events
type data content
turns events getVSCodeRequestId delegationSummary logger
responseTurns turnst t ChatResponseTurn2
responseTurns
responseParts responseTurns response
parts responsePartsparts responseParts_parts responseParts
prCount partsp p length
mdCount partsp p length
prCount
mdCount
pending
type
data
toolCallId
toolName
arguments description agent_type prompt
pending
pending
part pending
partChatToolInvocationPart
toolPart part ChatToolInvocationPart
data toolParttoolSpecificData
dataagentName
datadescription
pending
pending
events
type id data content attachments
type data toolCallId toolName arguments description agent_type prompt
type data toolCallId agentName agentDisplayName agentDescription
type data toolCallId success result content
type data toolCallId agentName agentDisplayName
turns events getVSCodeRequestId delegationSummary logger
responseTurns turnst t ChatResponseTurn2
responseTurns
parts responseTurns responseparts responseTurns response_parts responseTurns response
toolParts partsp p
toolParts
toolPart toolParts ChatToolInvocationPart
data toolParttoolSpecificData
dataagentName
datadescription
events
type id data content attachments
type data toolCallId toolName arguments description agent_type prompt
type data toolCallId agentName agentDisplayName agentDescription
type data toolCallId toolName parentToolCallId arguments path
type data toolCallId success result content
type data toolCallId toolName parentToolCallId arguments description agent_type prompt
type data toolCallId agentName agentDisplayName agentDescription
type data toolCallId success result content
type data toolCallId agentName agentDisplayName
type data toolCallId success result content
type data toolCallId agentName agentDisplayName
turns events getVSCodeRequestId delegationSummary logger
responseTurns turnst t ChatResponseTurn2
responseTurns
parts responseTurns responseparts responseTurns response_parts responseTurns response
toolParts partsp p ChatToolInvocationPart
toolParts
readPart toolPartsp ptoolCallId
readPartsubAgentInvocationId
nestedTaskPart toolPartsp ptoolCallId
nestedTaskPartsubAgentInvocationId
nestedTaskParttoolSpecificData
events
type id data content attachments
type data toolCallId toolName arguments description agent_type prompt
type data toolCallId agentName agentDisplayName agentDescription
type data toolCallId agentName agentDisplayName error message
type data toolCallId success error code message
turns events getVSCodeRequestId delegationSummary logger
turns
events
type id data content attachments
type data toolCallId toolName arguments description agent_type prompt
type data toolCallId toolName parentToolCallId arguments description agent_type prompt
type data toolCallId toolName parentToolCallId arguments description agent_type prompt
type data toolCallId toolName parentToolCallId arguments pattern
type data toolCallId success result content
type data toolCallId success result content
type data toolCallId success result content
type data toolCallId success result content
turns events getVSCodeRequestId delegationSummary logger
responseTurns turnst t ChatResponseTurn2
parts responseTurns responseparts responseTurns response_parts responseTurns response
toolParts partsp p ChatToolInvocationPart
l0 toolPartsp ptoolCallId
l0subAgentInvocationId
l0toolSpecificData
l1 toolPartsp ptoolCallId
l1subAgentInvocationId
l1toolSpecificData
l2 toolPartsp ptoolCallId
l2subAgentInvocationId
l2toolSpecificData
grep toolPartsp ptoolCallId
grepsubAgentInvocationId
toolsService
id title description status
id title description status
id title description status
id title description status
toolsService
CancellationTokenNone
toolsServiceinvokeToolCalls
toolsServiceinvokeToolCallsname
toolsServiceinvokeToolCallsinput
operation
todoList
id title description status
id title description status
id title description status
id title description status
toolsService
id title description status
toolsService
CancellationTokenNone
input toolsServiceinvokeToolCallsinput todoList status
inputtodoListstatus
toolsService
id title description status
id title description status
toolsService
CancellationTokenNone
input toolsServiceinvokeToolCallsinput todoList id
inputtodoListid
inputtodoListid