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 { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../base/test/common/utils.js';
import { ConfirmationOptionKind, ChatInputAnswerState, ChatInputAnswerValueKind, ChatInputQuestionKind, ToolCallStatus } from '../../common/state/protocol/state.js';
import {
buildAskUserSessionInputQuestions,
buildExitPlanModeConfirmationState,
flattenAskUserAnswers,
parseAskUserQuestionInput,
type ParsedAskUserQuestionInput,
} from '../../node/claude/claudeInteractiveTools.js';
/**
* Pure-projection tests for [claudeInteractiveTools.ts](../../node/claude/claudeInteractiveTools.ts).
* The agent's `_handleExitPlanMode` and `_handleAskUserQuestion` are
* 4-line orchestrators delegating SDK ↔ workbench projections to these
* helpers; testing the projections directly avoids the agent harness.
*/
suite('claudeInteractiveTools'
state plan
assertstate
status ToolCallStatusPendingConfirmation
toolCallId
toolName
displayName
invocationMessage markdown
toolInput
confirmationTitle
options
id label kind ConfirmationOptionKindApprove
id label kind ConfirmationOptionKindDeny
missing
wrongType plan
assertmissinginvocationMessage markdown
assertwrongTypeinvocationMessage markdown
assert
assert questions
parsed
questions question header options
assertparsed
assertparsedquestionslength
askInput ParsedAskUserQuestionInput
questions
question
header
options
label description
label
result askInput
assertresult
id
kind ChatInputQuestionKindSingleSelect
title
message
options
id label description
id label
allowFreeformInput
askInput ParsedAskUserQuestionInput
questions
question
header
options label
multiSelect
allowFreeformInput
result askInput
question result
assertquestionkind ChatInputQuestionKindMultiSelect
assertquestionkind ChatInputQuestionKindMultiSelect questionallowFreeformInput
askInput ParsedAskUserQuestionInput
questions
question header options
question header options
result askInput
assertresultid
assertresultid
askInput ParsedAskUserQuestionInput
questions
question header options
question header options label label
question header options label label
question header options
answers askInput
name
state ChatInputAnswerStateSubmitted
value kind ChatInputAnswerValueKindText value
one
state ChatInputAnswerStateSubmitted
value kind ChatInputAnswerValueKindSelected value freeformValues
many
state ChatInputAnswerStateSubmitted
value kind ChatInputAnswerValueKindSelectedMany value freeformValues
skipped
state ChatInputAnswerStateSkipped
assertanswers
answers askInput
skipped state ChatInputAnswerStateSkipped
assertanswers
answers askInput
one
state ChatInputAnswerStateSubmitted
value kind ChatInputAnswerValueKindSelected value
assertanswers
blankHeaderInput ParsedAskUserQuestionInput
questions
question header options
question header options
answers blankHeaderInput
state ChatInputAnswerStateSubmitted
value kind ChatInputAnswerValueKindText value
named
state ChatInputAnswerStateSubmitted
value kind ChatInputAnswerValueKindText value
assertanswers