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 { expect, Mock, suite, test, vi } from 'vitest';
import type * as vscode from 'vscode';
import { InlineChatIntent } from '../../node/inlineChatIntent';
import { IInstantiationService } from '../../../../util/vs/platform/instantiation/common/instantiation';
import { IEndpointProvider } from '../../../../platform/endpoint/common/endpointProvider';
import { IAuthenticationService } from '../../../../platform/authentication/common/authentication';
import { ILogService } from
IToolsService
IIgnoreService
IEditSurvivalTrackerService
IOctoKitService
Conversation Turn
ChatLocation ChatFetchResponseType
IDocumentContext
ChatTelemetryBuilder
CancellationToken
ChatRequestEditorData
CopilotInteractiveEditorResponse
IToolCall
ToolCallRound
TextDocumentSnapshot
createTextDocumentData
IConfigurationService
IExperimentationService
IOTelService SpanStatusCode
CapturingOTelService
CopilotChatAttr GenAiAttr GenAiOperationName GitHubCopilotAttr
PromptRenderer
BasePromptElementProps
ToolName
id name arguments
value
requestId
modelCallId
resolvedModel
usage
prompt_tokens
completion_tokens
prompt_tokens_details
cached_tokens
cache_creation_input_tokens
completion_tokens_details
reasoning_tokens
toolCalls TestToolCall
advanceTimeMs
responses TestModelResponse
toolResults hasError
advanceTime ms
markEditOnSuccessfulTool
mockInstantiationService
createInstance victor args
ctorname
getContextualMessage vi
ctorname
run vi
lastResponse type ChatFetchResponseTypeSuccess value
telemetry telemetryMessageId
needsExitTool
IInstantiationService
mockEndpointProvider
getChatEndpoint vi supportsToolCalls
IEndpointProvider
mockAuthService
getCopilotToken vi
IAuthenticationService
mockLogService
warn vi
error vi
trace vi
ILogService
mockIgnoreService
isCopilotIgnored vi
IIgnoreService
mockEditTracker
collectAIEdits vi
mockEditSurvivalTrackerService
initialize vimockEditTracker
IEditSurvivalTrackerService
mockOctoKitService
getGitHubOutageStatus vi
IOctoKitService
intent
mockInstantiationService
mockEndpointProvider
mockAuthService
mockLogService
mockIgnoreService
mockEditSurvivalTrackerService
mockOctoKitService
mockTurn
setMetadata vi
conversation mockTurn Turn
document document
request
prompt
location2 vscodeTextEditor document vscodeSelection vscodeRange
toolInvocationToken vscodeChatParticipantToolToken
vscodeChatRequest
stream
progress vi
text vi
vscodeChatResponseStream
token CancellationTokenNone
documentContext document TextDocumentSnapshotdocument IDocumentContext
chatTelemetry ChatTelemetryBuilder
intentconversation request stream token documentContext ChatLocationEditor chatTelemetry
mockTurnsetMetadata
metadata mockTurnsetMetadatamockcalls
metadataCopilotInteractiveEditorResponse
metadatamessageId
metadatapromptQueryquery
metadatapromptQuerydocumentdocumentContextdocument
harness
harness
harness
harnessotelServicespans
expect
name
statusCode SpanStatusCode
ended
attributes expect
GenAiAttr GenAiOperationName
GenAiAttr
GenAiAttr
GenAiAttr
GenAiAttr
GenAiAttr
GenAiAttr
CopilotChatAttr
CopilotChatAttr
CopilotChatAttr
GitHubCopilotAttr
harness
invokeToolCalledWhileSpanActive
harnessmockToolsServiceinvokeTool ReturnType vifn name
name
rootSpan harnessotelServicespanss sname
invokeToolCalledWhileSpanActive rootSpan rootSpanended
harness
harness
harnessmockToolsServiceinvokeTool
expect
expect
invokeToolCalledWhileSpanActive
now
nowSpy viDate now
firstToolCall id name ToolNameApplyPatch arguments
secondToolCall id name ToolNameApplyPatch arguments
harness
responses
value
requestId
modelCallId
resolvedModel
usage
prompt_tokens
completion_tokens
prompt_tokens_details cached_tokens
toolCalls firstToolCall
advanceTimeMs
value
requestId
modelCallId
resolvedModel
usage
prompt_tokens
completion_tokens
prompt_tokens_details cached_tokens cache_creation_input_tokens
completion_tokens_details reasoning_tokens
toolCalls secondToolCall
advanceTimeMs
toolResults hasError hasError
ms now ms
markEditOnSuccessfulTool
harness
harness
nowSpy
rootSpan harnessotelServicespans
sendToolCallingTelemetryMock harnesstelemetrysendToolCallingTelemetry Mock
invokeToolWithEndpointMock harnessmockToolsServiceinvokeToolWithEndpoint Mock
sendToolCallingTelemetryMock
recordedRounds sendToolCallingTelemetryMockmockcalls ToolCallRound
rounds recordedRoundsround
response roundresponse
toolCalls roundtoolCallstoolCall IToolCall id toolCallid name toolCallname
rootSpan
statusCode rootSpanstatusCode
attributes rootSpanattributes
toolInvocations invokeToolWithEndpointMockmockcallslength
rounds
rootSpan
statusCode SpanStatusCode
attributes expect
CopilotChatAttr
GenAiAttr
GenAiAttr
GenAiAttr
GenAiAttr
GenAiAttr
GenAiAttr
toolInvocations
rounds
response toolCalls id name ToolNameApplyPatch
response toolCalls id name ToolNameApplyPatch
harnessotelServicemetricsexpect
name
value expect
attributes GenAiAttr
name
value
attributes GenAiAttr
harness
harnessmockEndpointmakeChatRequest2
result harness
result
errorDetails
message
harness
harnessotelServicespans
expect
name
statusCode SpanStatusCode
statusMessage
ended
attributes expect
GenAiAttr GenAiOperationName
options InlineChatHarnessOptions
otelService
document document
availableTool
name ToolNameApplyPatch
description
inputSchema
vscodeLanguageModelToolInformation
mockLogService
warn vi
error vi
trace vi
ILogService
telemetry
telemetryMessageId
sessionId
editCount
markEmittedEdits vi
markReceivedToken vi
sendTelemetry vi
sendToolCallingTelemetry vi
toolResultIndex
mockToolsService
getTool viname name ToolNameApplyPatch availableTool
invokeTool vi
validateToolInput vi inputObj
getCopilotTool vi
invokeToolWithEndpoint vi
result optionstoolResultstoolResultIndex hasError
resulthasError optionsmarkEditOnSuccessfulTool
telemetryeditCount
result
IToolsService
mockInstantiationService
createInstance victor args args
ctorname
getContextualMessage vi
ctorname
args
mockInstantiationService
mockLogService
mockToolsService
getExperimentBasedConfig vi IConfigurationService
IExperimentationService
otelService IOTelService
invokeFunction viavailableTool
IInstantiationService
responses optionsresponses
value
requestId
modelCallId
resolvedModel
usage
prompt_tokens
completion_tokens
responseIndex
mockEndpoint
supportsToolCalls
model
acquireTokenizer vi
countToolTokens vi
makeChatRequest2 vi requestOptions finishedCb text index delta copilotToolCalls TestToolCall
response responsesresponseIndex
response
responseadvanceTimeMs
optionsadvanceTimeresponseadvanceTimeMs
responsetoolCalls
requestOptionsfinishedCb copilotToolCalls responsetoolCalls
type ChatFetchResponseTypeSuccess
value responsevalue
requestId responserequestId
modelCallId responsemodelCallId
resolvedModel responseresolvedModel
usage responseusage
mockEndpointProvider
getChatEndpoint vimockEndpoint
IEndpointProvider
mockAuthService
getCopilotToken vi
IAuthenticationService
mockIgnoreService
isCopilotIgnored vi
IIgnoreService
mockEditTracker
collectAIEdits vi
mockEditSurvivalTrackerService
initialize vimockEditTracker
IEditSurvivalTrackerService
mockOctoKitService
getGitHubOutageStatus vi
IOctoKitService
renderSpy viPromptRenderer
render vi
messages
tokenCount
references
PromptRendererBasePromptElementProps
intent
mockInstantiationService
mockEndpointProvider
mockAuthService
mockLogService
mockIgnoreService
mockEditSurvivalTrackerService
mockOctoKitService
mockTurn
setMetadata vi
conversation mockTurn Turn
request
prompt
location2 vscodeTextEditor document isEmpty vscodeSelection vscodeRange
toolInvocationToken vscodeChatParticipantToolToken
references
tools
vscodeChatRequest
stream
progress vi
text vi
vscodeChatResponseStream
documentContext document TextDocumentSnapshotdocument IDocumentContext
chatTelemetry
makeRequest vitelemetry
ChatTelemetryBuilder
otelService
telemetry
mockEndpoint
mockToolsService
intentconversation request stream CancellationTokenNone documentContext ChatLocationEditor chatTelemetry
renderSpy