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 { createHash } from 'node:crypto';
import type { Readable } from 'node:stream';
export async function createSha256FromStream(stream: Readable): Promise<string> {
const hash = createHash('sha256');
for await (const chunk of stream) {
hash.update(chunk);
}
return hash.digest('hex');
}
/**
* Synchronous SHA-256 hex digest used to redact identifiers in OTel telemetry
* (e.g., MCP server names). Returns `''` for empty/undefined input so callers
* can short-circuit on `!result`.
*/
export function hashTelemetryValue(value: string | undefined | null): string {
if (!value) {
return '';
}
return createHash('sha256').update(value).digest('hex');
}