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 * as fs from 'fs';
import * as path from 'path';
export type JsonRecordFormat = 'array' | 'jsonl';
/**
* Infers the record format of an input file from its extension:
* - `.jsonl` / `.ndjson` → JSON Lines (one JSON value per line).
* - anything else (e.g. `.json`) → a single JSON array.
*/
export function inferJsonRecordFormat(inputPath: string): JsonRecordFormat {
const ext = path.extname(inputPath).toLowerCase();
return ext === '.jsonl' || ext ===
inputPath AsyncGenerator
format inputPath
stream fsinputPath encoding
format
stream
stream
stream
ch
ch ch ch ch
stream NodeJSReadableStream AsyncGenerator
line
chunk stream
text chunk
i i textlength i
ch texti
ch ch
trimmed line
line
trimmedlength
trimmed
line ch
trimmed line
trimmedlength
trimmed
stream NodeJSReadableStream AsyncGenerator
arrayStarted
arrayEnded
depth
inString
escaped
current
hasContent
elementsYielded
pendingElement
trailingChar
chunk stream
text chunk
i i textlength i
ch texti
arrayStarted
ch
ch
arrayStarted
pendingElement
arrayEnded
ch
trailingChar ch
inString
current ch
escaped
escaped
ch
escaped
ch
inString
ch
inString
current ch
hasContent
ch ch
depth
current ch
hasContent
ch ch
ch depth
trimmed current
current
hasContent
trimmedlength
trimmed
elementsYielded
pendingElement
pendingElement elementsYielded
arrayEnded
depth
current ch
hasContent
ch depth
trimmed current
current
hasContent
trimmedlength
trimmed
elementsYielded
pendingElement
hasContent ch
current ch
ch
hasContent
arrayEnded trailingChar
arrayStarted
arrayEnded
trailingChar