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.
*--------------------------------------------------------------------------------------------*/
/**
* Integration tests for client-provided tool handling through the protocol layer.
*
* These tests verify that:
* - tool_start with client contributor emits only a toolCallStart (no auto-ready)
* - tool_ready without confirmationTitle transitions to Running (auto-confirmed)
* - tool_ready with confirmationTitle transitions to PendingConfirmation
* - toolCallComplete dispatched by the client flows through to the agent
*
* Run with:
* ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/protocol/clientTools.integrationTest.ts
*/
import assert from 'assert';
import { ToolCallContributorKind, ToolResultContentType, type ToolCallContributor } from '../../../common/state/sessionState.js';
import {
createAndSubscribeSession,
defaultChatChannel,
dispatchTurnStarted,
getAgentHostE2ETestTimeout,
getActionEnvelope,
IServerHandle,
isActionNotification,
startServer,
stopServer,
TestProtocolClient,
} from '../serverIntegrationTestHelpers.js';
suite('Protocol WebSocket — Client Tools'
server IServerHandle
client TestProtocolClient
server
server
client serverport
client
client
sessionUri client
client sessionUri
toolStartNotif toolReadyNotif
clientn n
clientn n
toolStartAction toolStartNotifaction
toolCallId
contributor ToolCallContributor
asserttoolStartActiontoolCallId
asserttoolStartActioncontributor kind ToolCallContributorKindClient clientId
toolReadyAction toolReadyNotifaction
toolCallId
confirmed
asserttoolReadyActiontoolCallId
asserttoolReadyActionconfirmed
client
clientSeq
channel sessionUri
action
type
turnId
toolCallId
result
success
pastTenseMessage
content type ToolResultContentTypeText text
client
n n
sessionUri client
client sessionUri
toolStartNotif client
n n
toolStartAction toolStartNotifaction
toolCallId
contributor ToolCallContributor
asserttoolStartActiontoolCallId
asserttoolStartActioncontributor kind ToolCallContributorKindClient clientId
toolReadyNotif client
n n
toolReadyAction toolReadyNotifaction
toolCallId
confirmationTitle
confirmed
asserttoolReadyActiontoolCallId
asserttoolReadyActionconfirmationTitle
asserttoolReadyActionconfirmed
client
clientSeq
channel sessionUri
action
type
turnId
toolCallId
approved
client
n n
sessionUri client
client sessionUri
client
n n
client
clientSeq
channel sessionUri
action
type
turnId
toolCallId
result
success
pastTenseMessage
content type ToolResultContentTypeText text
client
n n