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.
*--------------------------------------------------------------------------------------------*/
/**
* Mock-LLM scenarios + response matchers used by smoke tests that exercise a
* model-driven shell tool invocation and verify both:
* 1. The tool actually ran (the tool result contains the echoed marker), and
* 2. The reply appears in the chat (the same marker is rendered).
*
* Two variants are provided to cover the different tool names advertised by
* each surface:
* - {@link shellEchoScenario} matches SDK-based sessions (Copilot CLI,
* Claude, AgentHost), which expose `bash` / `pwsh` / `powershell` tools.
* - {@link runInTerminalScenario} matches the VS Code built-in chat agent
* (used by the "Local" session), which exposes the `run_in_terminal`
* tool.
*
* Both scenarios use a two-turn protocol:
* - Turn 1 (`tool-calls`): the model asks the tool to execute
* `echo <reply>`.
* - Turn 2 (`echo-last-message`): the model replays the last
* (tool-result) message back as a ```json fenced block, so the reply
* appears in the assistant rendering.
*
* Importantly, `echo` is in the default `chat.tools.terminal.autoApprove`
* list, so no extra settings are required to auto-approve the command.
*/
export function shellEchoScenario(reply: string): unknown {
return {
type: 'multi-turn',
turns: [
{
kind: 'tool-calls',
toolCalls:
toolNamePattern
arguments command
kind
reply
type
turns
kind
toolCalls
toolNamePattern
arguments
command
explanation
goal
mode
kind
reply RegExp