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 { Event } from '../../../../base/common/event.js';
import { deriveGitHubEndpoints, gitHubCopilotResource, gitHubRepoResource } from '../../common/githubEndpoints.js';
import { IAgentHostGitHubEndpointService } from '../../node/agentHostGitHubEndpointService.js';
/**
* A static {@link IAgentHostGitHubEndpointService} for tests. Resolves the same
* endpoints as production for a given (optional) enterprise URI; `onDidChange`
* never fires.
*/
export function createTestGitHubEndpointService(enterpriseUri?: string): IAgentHostGitHubEndpointService {
const endpoints = deriveGitHubEndpoints(enterpriseUri);
return {
_serviceBrand: undefined,
onDidChange: Event.None,
getApiBaseUri: () => endpoints.apiBaseUri,
getGraphQlUri: () => endpoints.graphQlUri,
getEnterpriseHost: () => endpoints.enterpriseHost,
getEnterpriseUri: () => enterpriseUri || undefined,
getCopilotResource: () => gitHubCopilotResource(endpoints),
getRepoResource: () => gitHubRepoResource(endpoints),
};
}