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 { readFileSync } from 'fs';
import { readVariableLengthQuantity } from '../../../util/common/variableLengthQuantity';
import { VSBuffer } from '../../../util/vs/base/common/buffer';
/** See `script/build/compressTikToken.ts` */
export const parseTikTokenBinary = (file: string): Map<Uint8Array, number> => {
const contents = readFileSync(file);
const result = new Map<Uint8Array, number>();
for (let i = 0; i < contents.length;) {
const termLength = readVariableLengthQuantity(VSBuffer.wrap(contents), i);
i += termLength.consumed;
result.set(contents.subarray(i, i + termLength.value), result.size);
i += termLength.value;
}
return result;
};