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 { afterEach, beforeEach, describe, expect, it } from 'vitest';
import type { LanguageModelToolInformation } from 'vscode';
import { Embedding, EmbeddingType } from '../../../../../platform/embeddings/common/embeddingsComputer';
import { IVSCodeExtensionContext } from '../../../../../platform/extContext/common/extensionContext';
import { IFileSystemService } from '../../../../../platform/filesystem/common/fileSystemService';
import { MockFileSystemService } from '../../../../../platform/filesystem/node/test/mockFileSystemService';
import { ITestingServicesAccessor
DisposableStore
createExtensionUnitTestingServices
ToolEmbeddingLocalCache
writtenFiles
override uri content Uint8Array
uriString uri
writtenFilesuriString content
contentString Buffercontent
uri contentString
override uri Uint8Array
uriString uri
writtenFilesuriString
writtenFilesuriString
base64Content uri
Buffer base64Content
uri Uint8Array
writtenFilesuri
disposables DisposableStore
accessor ITestingServicesAccessor
mockFileSystem TestableFileSystemService
cache ToolEmbeddingLocalCache
mockContext IVSCodeExtensionContext
embeddingType EmbeddingType
createSampleTool name description LanguageModelToolInformation
name
description
LanguageModelToolInformation
createSampleEmbedding type EmbeddingType values Embedding
type
value values
createFloat32Embedding type EmbeddingType values Embedding
type
value Float32Arrayvalues
actual Embedding expected Embedding
actual
actualtypeexpectedtype
actualvaluelengthexpectedvaluelength
actualvalueactualVal i
expectedVal expectedvaluei
MathactualVal expectedVal
disposables
testingServiceCollection disposables
mockFileSystem
testingServiceCollectionIFileSystemService mockFileSystem
testingServiceCollectionIVSCodeExtensionContext globalStorageUri
accessor testingServiceCollection
mockContext accessorIVSCodeExtensionContext
embeddingType EmbeddingTypetext3small_512
cache disposables
embeddingType
mockFileSystem
mockContext
disposables
cacheresolvesnot
tool
cachetool
tool
embedding embeddingType
cachetool embedding
retrieved cachetool
retrievedembedding
tool1
tool2
embedding embeddingType
cachetool1 embedding
retrieved cachetool2
retrievedembedding
tool1
tool2
embedding1 embeddingType
embedding2 embeddingType
cachetool1 embedding1
cachetool2 embedding2
cachetool1embedding1
cachetool2embedding2
tool1
tool2
embedding1 embeddingType
embedding2 embeddingType
cachetool1 embedding1
cachetool2 embedding2
cache
cacheUri mockContextglobalStorageUri
writtenContent mockFileSystemcacheUri
writtenContent
writtenContentlength
newCache disposables
embeddingType
mockFileSystem
mockContext
newCache
newCachetool1 embedding1
newCachetool2 embedding2
tool
embedding embeddingType
tool embedding
cache
differentType EmbeddingTypemetis_1024_I16_Binary
newCache disposables
differentType
mockFileSystem
mockContext
newCache
newCachetool
cacheUri mockContextglobalStorageUri
corruptedData
mockFileSystemcacheUri corruptedData
cacheresolvesnot
tool
cachetool
tool
embedding embeddingType
cachetool embedding
cache
cacheUri mockContextglobalStorageUri
currentContent mockFileSystemcacheUri
modifiedContent currentContent
modifiedContent
mockFileSystemcacheUri modifiedContent
newCache disposables
embeddingType
mockFileSystem
mockContext
newCache
newCachetool
tool
embedding embeddingType _ i i
cachetool embedding
cache
cacheUri mockContextglobalStorageUri
content mockFileSystemcacheUri
contentlength
contentlength
tools LanguageModelToolInformation
embeddings Embedding
i i i
tool
embedding embeddingType i i i i
toolstool
embeddingsembedding
cachetool embedding
cache
newCache disposables
embeddingType
mockFileSystem
mockContext
newCache
toolstool i
cachetoolembeddingsi
newCachetool embeddingsi