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 type { SessionMessage } from '@anthropic-ai/claude-agent-sdk';
import type { URI } from '../../../../base/common/uri.js';
import { localize } from '../../../../nls.js';
import type { ILogService } from '../../../log/common/log.js';
import {
ResponsePartKind,
ToolCallCancellationReason,
ToolCallConfirmationReason,
ToolCallStatus,
ToolResultContentType,
TurnState,
MessageKind,
type ResponsePart,
type ToolCallCancelledState,
type ToolCallCompletedState
buildSubagentSessionUri
readToolCallMeta
formatGenericToolInput
buildClaudeToolMeta getClaudeInvocationMessage getClaudePastTenseMessage getClaudeToolDisplayName getClaudeToolInputString
hasClientToolNamePrefix stripClientToolNamePrefix
messages SessionMessage
session
logService ILogService
Turn
builder session logService
msg messages
parsed msg
parsed
builderparsed
builder
messages SessionMessage turnId
turnOpen
seenTarget
lastAssistantUuid
msg messages
parsed msg
parsed
parsedkind
seenTarget
turnOpen
parseduuid turnId
seenTarget
parsedkind
turnOpen
turnOpen
parseduuid turnId
seenTarget
seenTarget
lastAssistantUuid parseduuid
seenTarget
lastAssistantUuid
type text
type tool_use_id content is_error
type text thinking id name input
kind uuid text timestamp
kind uuid results UserToolResultBlock timestamp
kind uuid blocks AssistantBlock isInner timestamp
kind uuid subtype text timestamp
msg SessionMessage ParsedSessionMessage
timestamp msg
msgtype
msg timestamp
msg timestamp
msg timestamp
msg SessionMessage timestamp
msgtimestamp
timestamp Datemsgtimestamp
Numbertimestamp timestamp
msg SessionMessage timestamp ParsedSessionMessage
content msgmessage
content
content
content
kind uuid msguuid text content timestamp
textBlocks contentb b UserTextBlock btype
textBlockslength
results contentb b UserToolResultBlock btype
resultslength kind uuid msguuid results timestamp
kind uuid msguuid text textBlocksb btext timestamp
msg SessionMessage timestamp ParsedSessionMessage
blocks msgmessage
blocks blockslength
kind uuid msguuid blocks isInner msgparent_tool_use_id timestamp
msg SessionMessage timestamp ParsedSessionMessage
subtype msgmessage
subtype subtype
text msgmessage
kind uuid msguuid subtype text timestamp
ReadonlySet
id
userText
startedAt
lastResponseAt
responseParts ResponsePart
pendingToolUseIds Set
toolCallParts Map ToolCallResponsePart
_turns Turn
_active InProgressTurn
_toolUses
_recoveredPromptlessTurns
_orphanToolResults
_session _logService ILogService
msg ParsedSessionMessage
msgkind
_active
id msguuid
userText msgtext
startedAt msgtimestamp
responseParts
pendingToolUseIds
toolCallParts
updatesActiveTurn
block msgresults
updatesActiveTurn block _activeid updatesActiveTurn
updatesActiveTurn _active msgtimestamp
_activelastResponseAt msgtimestamp
msg
_active
_activeresponseParts
kind ResponsePartKindSystemNotification
content msgtext
msgtimestamp
_activelastResponseAt msgtimestamp
Turn
_recoveredPromptlessTurns _orphanToolResults
_logService
_turns
msg ParsedSessionMessage kind
_active
msgisInner
_recoveredPromptlessTurns
_active
id msguuid
userText msgisInner
startedAt msgtimestamp
responseParts
pendingToolUseIds
toolCallParts
textPartCounter
reasoningPartCounter
block msgblocks
blocktype blocktext
_activeresponseParts
kind ResponsePartKindMarkdown
id
content blocktext
blocktype blockthinking
_activeresponseParts
kind ResponsePartKindReasoning
id
content blockthinking
blocktype blockid blockname
blockid blockname blockinput blockname
msgtimestamp
_activelastResponseAt msgtimestamp
toolUseId toolName input isClientTool
_active
displayName isClientTool toolName toolName
parsedInput input input input Record
meta isClientTool toolName
placeholder ToolCallCancelledState
status ToolCallStatusCancelled
toolCallId toolUseId
toolName
displayName
invocationMessage isClientTool displayName toolName displayName parsedInput
toolInput parsedInput
isClientTool parsedInput toolName parsedInput
input input input input
reason ToolCallCancellationReasonSkipped
meta _meta meta
part ToolCallResponsePart
kind ResponsePartKindToolCall
toolCall placeholder
_activeresponsePartspart
_activetoolCallPartstoolUseId part
_activependingToolUseIdstoolUseId
_toolUsestoolUseId turnId _activeid parsedInput isClientTool
block UserToolResultBlock
entry _toolUsesblocktool_use_id
entry
_orphanToolResults
announcingTurnId entryturnId
part announcingTurnId blocktool_use_id
part
isError blockis_error
previousState parttoolCall
isSubagent previousStatetoolKind
content ToolResultContent blockcontent
resultText content
c c type ToolResultContentTypeText text ctype ToolResultContentTypeText
c ctext
isSubagent
content
type ToolResultContentTypeSubagent
resource _session previousStatetoolCallId
title previousStatedisplayName
completed ToolCallCompletedState
status ToolCallStatusCompleted
toolCallId previousStatetoolCallId
toolName previousStatetoolName
displayName previousStatedisplayName
invocationMessage previousStateinvocationMessage previousStatedisplayName
toolInput previousStatestatus ToolCallStatusStreaming previousStatetoolInput
confirmed ToolCallConfirmationReasonNotNeeded
success isError
pastTenseMessage entryisClientTool
previousStatedisplayName
previousStatetoolName previousStatedisplayName entryparsedInput isError resultText
content contentlength content
previousState_meta _meta previousState_meta
parttoolCall completed
_activeid announcingTurnId
_activependingToolUseIdsblocktool_use_id
announcingTurnId
turnId toolUseId ToolCallResponsePart
_active _activeid turnId
_activetoolCallPartstoolUseId
i _turnslength i i
_turnsiid turnId
part _turnsiresponseParts
partkind ResponsePartKindToolCall parttoolCalltoolCallId toolUseId
part
_active
a _active
state apendingToolUseIdssize TurnStateComplete TurnStateCancelled
startedAt astartedAt DateastartedAt
endedAt alastResponseAt DatealastResponseAt
duration startedAt endedAt NumberstartedAt NumberendedAt
Math endedAt startedAt
turn Turn
id aid
startedAt astartedAt
duration
message text auserText origin kind MessageKindUser
responseParts aresponseParts
usage
state
_turnsturn
_active
raw ReadonlyArrayUserTextBlock UserToolResultBlock
raw raw
content raw content content
content
contentlength content
content contentlength
out UserTextBlock UserToolResultBlock
block content
block block
b block type text tool_use_id content is_error
btype btext
out type text btext
btype btool_use_id
out type tool_use_id btool_use_id content bcontent is_error bis_error
outlength out
raw AssistantBlock
raw raw
content raw content content
content
out AssistantBlock
block content
block block
b block type text thinking id name input
btype
out
type btype
text btext btext
thinking bthinking bthinking
id bid bid
name bname bname
input binput
out
raw
raw raw
subtype raw subtype subtype
subtype subtype
raw
raw raw
r raw text message
rtext
rtext
rmessage
rmessage
content type ToolResultContentTypeText text
content
contentlength type ToolResultContentTypeText text content
content
out type ToolResultContentTypeText text
block content
block block
b block type text
btype btext
out type ToolResultContentTypeText text btext
outlength out
v
v
content ReadonlyArrayUserTextBlock UserToolResultBlock
content
content
firstText contentb b UserTextBlock btype
firstText firstTexttext