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 { Disposable } from '../../../../base/common/lifecycle.js';
import {
ResponsePartKind,
ToolCallStatus,
ToolResultContentType,
type ResponsePart,
type Turn,
} from '../../common/state/protocol/state.js';
/**
* Tool names whose `tool_use` blocks spawn a subagent. The SDK's
* `Task` (and legacy `Agent`) tools encode subagent invocations as
* normal tool_use entries; we observe them here at spawn time and
* track each one as a {@link SubagentSpawn}.
*/
export const SUBAGENT_TOOL_NAMES: ReadonlySet<string> = new Set(['Task', 'Agent']);
/**
* Regex matching the SDK's synthetic per-subagent suffix appended to
* `Task`/`Agent` `tool_result` text blocks. Empirically observed
* format: `agentId: <hex> (use SendMessage with to: '<hex>') ...`.
* Tolerant by design — case-insensitive, lenient whitespace, anchored
* only by line start — so minor wording drift between SDK versions
* doesn't silently break correlation.
*/
background
subagentType
description
prompt
_agentId
_announced
_completed
toolUseId
_agentId
agentId
_agentId
_agentId agentId
_announced
_announced
_completed
_completed
agentId
subagentType
description
prompt
_spawns
_innerToParent
override
_spawns
_innerToParent
toolUseId init ISubagentSpawnInit SubagentSpawn
spawn _spawnstoolUseId
spawn
spawn toolUseId
_spawnstoolUseId spawn
initagentId
spawninitagentId
initsubagentType spawnsubagentType
spawnsubagentType initsubagentType
initdescription spawndescription
spawndescription initdescription
initprompt spawnprompt
spawnprompt initprompt
spawn
toolUseId SubagentSpawn
_spawnstoolUseId
toolUseId
_spawnstoolUseId
toolUseId
innerToolUseId parentToolUseId
_innerToParentinnerToolUseId parentToolUseId
innerToolUseId SubagentSpawn
parentId _innerToParentinnerToolUseId
parentId _spawnsparentId
SubagentSpawn
drained SubagentSpawn
spawn _spawns
spawnbackground
drainedspawn
spawn drained
_spawnsspawntoolUseId
spawntoolUseId
drained
transcript Turn
toolCallId agentId transcript
toolCallId agentId
parentToolUseId
innerId parentId _innerToParent
parentId parentToolUseId
_innerToParentinnerId
transcript Turn ReadonlyMap
out
turn transcript
part turnresponseParts
pair part
pair
outpairtoolCallId pairagentId
out
part ResponsePart toolCallId agentId
partkind ResponsePartKindToolCall
state parttoolCall
statetoolName
statestatus ToolCallStatusCompleted statestatus ToolCallStatusPendingResultConfirmation
content statecontent
content
i contentlength i i
block contenti
blocktype ToolResultContentTypeText
m blocktext
m
toolCallId statetoolCallId agentId m