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 { describe, expect, it } from 'vitest';
import { GenAiAttr } from '../../../../platform/otel/common/genAiAttributes';
import type { ICompletedSpanData } from '../../../../platform/otel/common/otelService';
import { extractFilePath, extractToolArgs } from '../../common/sessionStoreTracking';
/**
* These tests verify the span data processing logic used by SessionStoreTracker.
*
* The tests focus on:
* 1. Tool argument extraction from OTel span attributes using the real extractToolArgs helper
* 2. File path extraction using the real extractFilePath helper
*
* Note: Full integration tests of SessionStoreTracker require mocking multiple
* services (ISessionStore, IOTelService, IChatSessionService, etc.) and are
* covered by manual testing and telemetry validation.
*/
// Create a minimal mock span for testing
function makeSpan(overrides: Partial<ICompletedSpanData> = ICompletedSpanData
name
traceId
spanId
startTime
endTime
attributes
events
status code
overrides
span
attributes
GenAiAttr
filePath
content
wrong
args span
args
filePath
content
argsnot
span attributes
span
span
attributes
GenAiAttr
span
span
attributes
GenAiAttr
span
span
attributes
GenAiAttr
filePath
oldString
newString
args span
filePath args
filePath
span
attributes
GenAiAttr
filePath
content
args span
filePath args
filePath
patchInput
span
attributes
GenAiAttr input patchInput
args span
filePath args
filePath
span
attributes
GenAiAttr
explanation
replacements
filePath oldString newString
filePath oldString newString
args span
filePath args
filePath
span
attributes
GenAiAttr command
args span
filePath args
filePath
span
attributes
GenAiAttr content
args span
filePath args
filePath