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 { vEnum, vObj, vOptionalProp, vString, type ValidatorType } from '../../../base/common/validation.js';
import type { AgentHostDebugLogsArtifactKind, IAgentHostManagedSettingsDiagnostics, IAgentHostNetworkDiagnosticsInfo, IAgentHostNetworkFetchResult } from './agentService.js';
import type { InitializeResult } from './state/protocol/common/commands.js';
export const CollectAgentHostDebugLogsExtensionMethod = 'vscode/collectAgentHostDebugLogs';
export const GetAgentHostSessionStateFileExtensionMethod = 'vscode/getAgentHostSessionStateFile';
export const ReadAgentHostDebugLogsChunkExtensionMethod = 'vscode/readAgentHostDebugLogsChunk';
const AgentHostChatStateFileCapabilityMetaKey = 'vscode.getAgentHostSessionStateFile.chat';
export interface IAgentHostExtensionInitializeResultMeta extends Record<string, unknown> {
readonly [AgentHostChatStateFileCapabilityMetaKey]?: true;
}
export interface IAgentHostExtensionInitializeResult extends InitializeResult {
readonly _meta?: IAgentHostExtensionInitializeResultMeta;
}
export function getAgentHostExtensionInitializeResultMeta(): IAgentHostExtensionInitializeResultMeta {
return { [AgentHostChatStateFileCapabilityMetaKey]: true };
}
export function supportsAgentHostChatStateFile(result: IAgentHostExtensionInitializeResult | undefined): boolean {
const meta = result?._meta;
return meta?.[AgentHostChatStateFileCapabilityMetaKey] === true;
}
export const collectAgentHostDebugLogsParamsValidator = vObj({
session: vOptionalProp(vString()),
chat: vOptionalProp(vString()),
kind: vEnum('archive', 'directory'),
});
export type CollectAgentHostDebugLogsParams = ValidatorType<typeof collectAgentHostDebugLogsParamsValidator>;
export interface IAgentHostExtensionCommandMap {
'shutdown': { params: undefined; result: void };
'getNetworkDiagnosticsInfo': { params: undefined; result: IAgentHostNetworkDiagnosticsInfo };
'getManagedSettingsDiagnostics': { params: undefined; result: readonly IAgentHostManagedSettingsDiagnostics[] };
'diagnosticsFetch': { params: { url: string }; result: IAgentHostNetworkFetchResult };
[GetAgentHostSessionStateFileExtensionMethod]: {
params: { session: string; chat?: string };
result: { resource?: string };
};
[CollectAgentHostDebugLogsExtensionMethod]: {
params: CollectAgentHostDebugLogsParams;
result: { kind: AgentHostDebugLogsArtifactKind; resource: string; providerLogsIncluded: boolean; size: number; uncompressedSize: number; entries: readonly { path: string; size: number }[] };
};
[ReadAgentHostDebugLogsChunkExtensionMethod]: {
params: { resource: string; position: number };
/** `data` is base64; at most `AGENT_HOST_DEBUG_LOGS_CHUNK_BYTES` decoded bytes. */
result: { data: string; eof: boolean };
};
}