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 { localize } from '../../../../nls.js';
import { ConfirmationOptionKind, ChatInputAnswerState, ChatInputAnswerValueKind, ChatInputQuestionKind, ToolCallStatus, type ChatInputOption, type ChatInputQuestion, type ToolCallPendingConfirmationState } from '../../common/state/protocol/state.js';
import type { ChatInputAnswer } from '../../common/state/sessionState.js';
import { getClaudeToolDisplayName } from './claudeToolDisplay.js';
/**
* Pure projections between the Claude SDK's interactive built-in tool
* inputs/outputs and the agentHost workbench protocol.
*
* Phase 7 S3.5. The two interactive tools (`ExitPlanMode`,
* `AskUserQuestion`) are exempt from the SDK's `permissionMode` auto-
* approval and always reach `canUseTool`. The agent's job for each is
* to render a workbench prompt and translate the user's answer back
* into the SDK's `PermissionResult` shape — this module owns those
* projections so they can be tested without standing up an agent.
*/
input Record toolUseID ToolCallPendingConfirmationState
plan inputplan inputplan
status ToolCallStatusPendingConfirmation
toolCallId toolUseID
toolName
displayName
invocationMessage markdown plan
toolInput input
confirmationTitle
options
id label kind ConfirmationOptionKindApprove
id label kind ConfirmationOptionKindDeny
questions ReadonlyArray
question
header
options ReadonlyArray label description
multiSelect
allowFreeformInput
input Record ParsedAskUserQuestionInput
askInput input PartialParsedAskUserQuestionInput
askInputquestionslength
questions askInputquestions
header idx
header
askInput ParsedAskUserQuestionInput ChatInputQuestion
askInputquestionsq idx
opts ChatInputOption qoptionsopt
id optlabel
label optlabel
optdescription description optdescription
id qheader idx
qmultiSelect
id
kind ChatInputQuestionKindMultiSelect
title qheader
message qquestion
options opts
allowFreeformInput qallowFreeformInput
id
kind ChatInputQuestionKindSingleSelect
title qheader
message qquestion
options opts
allowFreeformInput qallowFreeformInput
askInput ParsedAskUserQuestionInput answers Record ChatInputAnswer Record
result Record
idx idx askInputquestionslength idx
q askInputquestionsidx
a answersqheader idx
a astate ChatInputAnswerStateSkipped
parts
value avalue
valuekind ChatInputAnswerValueKindSelected
valuevalue partsvaluevalue
valuefreeformValues partsvaluefreeformValues
valuekind ChatInputAnswerValueKindSelectedMany
partsvaluevalue
valuefreeformValues partsvaluefreeformValues
valuekind ChatInputAnswerValueKindText
partsvaluevalue
partslength
resultqquestion parts
result