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 type { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
import { URI } from '../../../../base/common/uri.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../base/test/common/utils.js';
import { NullLogService } from '../../../log/common/log.js';
import { ActionType } from '../../common/state/sessionActions.js';
import { ToolCallConfirmationReason, ToolCallContributorKind } from '../../common/state/sessionState.js';
import { ClaudeMapperState mapSDKMessageToAgentSignals
SubagentRegistry
buildTopLevelSubagentReadyAction mapSubagentSystemMessage
makeAssistantMessage
makeContentBlockStartText
makeContentBlockStartToolUse
makeStreamEvent
makeUserToolResultMessage
disposables
SubagentRegistry
disposables
state
log
registry
state log registry
state log registry
state log registry
assert
task registrytoolUseId
agent registrytoolUseId
read registry
task
agent
read
state
log
registry
taskSignals
state log registry
readSignals
state log registry
taskAction taskSignals
readAction readSignals
asserttaskActionkind taskActionactiontype ActionTypeChatToolCallStart
assertreadActionkind readActionactiontype ActionTypeChatToolCallStart
assert
taskMeta taskActionaction_meta
readMeta readActionaction_meta
taskMeta toolKind
readMeta toolKind
state
log
registry
state log registry
canonical
type
id
name
input description subagent_type prompt
out canonical state log registry
ready outs skind sactiontype ActionTypeChatToolCallReady
assertready readykind readyactiontype ActionTypeChatToolCallReady
spawn registry
assert
toolCallId readyactiontoolCallId
invocationMessage readyactioninvocationMessage
confirmed readyactionconfirmed
meta readyaction_meta
parentToolCallId readyparentToolCallId
spawnSubagentType spawnsubagentType
spawnDescription spawndescription
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
meta
toolKind
subagentDescription
subagentAgentName
parentToolCallId
spawnSubagentType
spawnDescription
state
log
registry
state log registry
innerText
innerTextparent_tool_use_id
first innerText state log registry
innerToolUse
innerToolUseparent_tool_use_id
second innerToolUse state log registry
assert
firstKinds firsts skind
firstStartedToolCallId firstkind firsttoolCallId
firstActionParent firsts skind s skind sparentToolCallId
secondKinds seconds skind
secondActionParent seconds skind s skind sparentToolCallId
innerToolParentSpawnId registrytoolUseId
firstKinds
firstStartedToolCallId
firstActionParent
secondKinds
secondActionParent
innerToolParentSpawnId
state
log
registry
innerText
innerTextparent_tool_use_id
out innerText state log registry
assert
kinds outs skind
actionParents outs skind s skind sparentToolCallId
kinds
actionParents
state
log
registry
state log registry
innerAssistant
type text citations
type id name input pattern
innerAssistantparent_tool_use_id
fromAssistant innerAssistant state log registry
innerToolResult
innerToolResultparent_tool_use_id
fromToolResult innerToolResult state log registry
kinds fromAssistants skind
allParentIds fromAssistant fromToolResults skind s skind sparentToolCallId
modelCallParentId fromAssistants skind parentToolCallId
completeAction fromToolResults skind sactiontype ActionTypeChatToolCallComplete
completePastTense completeActionkind completeActionactiontype ActionTypeChatToolCallComplete
completeActionactionresultpastTenseMessage
assert
fromAssistantKinds kinds
toolUseEdge registrytoolUseId
fromToolResultHasComplete completeAction
everyActionTaggedWithParent allParentIdsp p
modelCallParentId
completePastTense
fromAssistantKinds
toolUseEdge
fromToolResultHasComplete
everyActionTaggedWithParent
modelCallParentId
completePastTense markdown
state
log
registry
parentToolCallId
parentToolCallId
state log registry
innerAssistant
type id name input command
innerAssistantparent_tool_use_id parentToolCallId
fromAssistant innerAssistant state log registry
innerToolResult
innerToolResultparent_tool_use_id parentToolCallId
fromResult innerToolResult state log registry
actions fromAssistant fromResultsignal signalkind signal signalkind signalaction
assertactionsaction
actiontype
ActionTypeChatToolCallStart
type actiontype
toolName actiontoolName
displayName actiondisplayName
contributor actioncontributor
meta action_meta
ActionTypeChatToolCallReady
type actiontype
invocationMessage actioninvocationMessage
toolInput actiontoolInput
ActionTypeChatToolCallComplete
type actiontype
pastTenseMessage actionresultpastTenseMessage
item item
type ActionTypeChatToolCallStart
toolName
displayName
contributor kind ToolCallContributorKindClient clientId
meta
type ActionTypeChatToolCallReady
invocationMessage
toolInput
type ActionTypeChatToolCallComplete
pastTenseMessage
state
log
registry
state log registry
signals
state log registry
assert
kinds signalss skind
completedToolCallId signalss skind toolCallId
spawnCleared registry
kinds
completedToolCallId
spawnCleared
state
log
registry
state log registry
type subtype task_id tool_use_id description SDKMessage
state log registry
afterToolResult
state log registry
isBackgroundAfterToolResult registrybackground
afterNotification
type subtype task_id tool_use_id status output_file summary SDKMessage
state log registry
afterNotificationAgain
type subtype task_id tool_use_id status output_file summary SDKMessage
state log registry
assert
afterToolResultKinds afterToolResults skind
isBackgroundAfterToolResult
afterNotificationKinds afterNotifications skind
completedToolCallId afterNotifications skind toolCallId
afterNotificationAgainKinds afterNotificationAgains skind
spawnClearedAfterNotification registry
afterToolResultKinds
isBackgroundAfterToolResult
afterNotificationKinds
completedToolCallId
afterNotificationAgainKinds
spawnClearedAfterNotification
registry
malformed
type id name input description subagent_type Record
registry
assertmalformedkind malformedactiontype ActionTypeChatToolCallReady
spawn registry
assert
meta malformedaction_meta
invocationMessage malformedactioninvocationMessage
spawnRecorded spawntoolUseId
spawnSubagentType spawnsubagentType
spawnDescription spawndescription
meta toolKind
invocationMessage
spawnRecorded
spawnSubagentType
spawnDescription
registry
registry
inProgress type subtype task_id tool_use_id status SDKMessage type registry
missingId type subtype task_id status SDKMessage type registry
unknownEntry type subtype task_id tool_use_id status SDKMessage type registry
assert
inProgressKinds inProgresss skind
missingIdKinds missingIds skind
unknownEntryKinds unknownEntrys skind
inProgressKinds
missingIdKinds
unknownEntryKinds