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 type { Attachment, SessionEvent, SessionEventPayload, SkillInvokedData, ToolExecutionCompleteContent } from '@github/copilot-sdk';
// =============================================================================
// Minimal session-event shapes for tests
// =============================================================================
// Production (`node/copilot/mapSessionEvents.ts`) consumes the real SDK
// `SessionEvent` union. The SDK members require envelope fields the mapper
// never reads (`parentId`, `timestamp`, `ephemeral`, …) plus stricter `data`
// shapes, which makes hand-written event literals noisy. These ergonomic
// subsets let tests construct only the fields the mapper actually reads; feed
// them to the production mapper via {@link toSessionEvents}.
export interface ISessionEventToolStart {
type: 'tool.execution_start';
/** Envelope-level sub-agent instance id; resolved to the parent tool call id via `subagent.started`. */
agentId?: string;
/** ISO 8601 envelope timestamp; the mapper uses it to restore turn timing. */
timestamp
data
toolCallId
toolName
arguments
mcpServerName
mcpToolName
toolDescription
parentToolCallId
type
agentId
timestamp
data
toolCallId
success
result
content
contents ToolExecutionCompleteContent
error message code
isUserRequested
toolTelemetry
mcpServerName
mcpToolName
toolDescription
parentToolCallId
type
id
agentId
timestamp
data
messageId
interactionId
content
toolRequests toolCallId name arguments type mcpServerName mcpToolName toolDescription
reasoningOpaque
reasoningText
encryptedContent
parentToolCallId
source
attachments Attachment
type
id
agentId
data SkillInvokedData
type
agentId
data
toolCallId
agentName
agentDisplayName
agentDescription
type
agentId
data
reason
type
agentId
timestamp
data
turnId
interactionId
type
id
timestamp
data SessionEventPayload
type
id
agentId
timestamp
data SessionEventPayload
ISessionEventToolStart
ISessionEventToolComplete
ISessionEventMessage
ISessionEventSubagentStarted
ISessionEventSkillInvoked
ISessionEventAbort
ISessionEventAssistantTurn
ISessionEventSystemNotification
ISessionEventError
type agentId timestamp data
events ISessionEvent SessionEvent
events SessionEvent