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.
*--------------------------------------------------------------------------------------------*/
// Copies type definitions from the sibling `agent-host-protocol` repo into
// `src/vs/platform/agentHost/common/state/protocol/`. Run via:
//
// npx tsx scripts/sync-agent-host-protocol.ts
//
// Source layout is preserved verbatim: every `.ts` file under
// `agent-host-protocol/types/` (notably the `common/` and `channels-*` folders)
// is copied into the matching subfolder of `protocol/`. Test fixtures
// (`test-cases/`), `*.test.ts` files, and `index.ts` are skipped.
//
// Transformations applied:
// 1. Converts 2-space indentation to tabs.
// 2. Merges duplicate imports from the same module.
// 3. Formats with the project's tsfmt.json settings.
// 4. Adds Microsoft copyright header.
//
// URI stays as `string` (the protocol's canonical representation). VS Code code
// should call `URI.parse()` at point-of-use where a URI class is needed.
import * as fs from 'fs';
import * as path from 'path';
import { execSync } from 'child_process';
import ts
path__dirname
processenv path
path
path
path
tsFormatCodeSettings fs
content fileName
host tsLanguageServiceHost
fileName
name name fileName tsScriptSnapshotcontent
ls tshost
edits lsfileName
i editslength i i
edit editsi
content content editspanstart editnewText contenteditspanstart editspanlength
ls
content
src dest
results src dest
dir relBase
entry fsdir withFileTypes
entry
entryname
rel relBase entryname
pathdir entryname rel
entry
entryname
entryname
entryname
rel relBase entryname
results src rel dest rel
resultsa b adestbdest
results
cwd encoding
content
content
content
lines content
linesline
match line
match
line
spaces matchlength
tabs Mathspaces
remainder spaces
tabs remainder linespaces
content
content content
content content _match typeKeyword names mod
collapsed names
typeKeyword
importsByModule
otherLines
seenModules
line content
typeMatch line
valueMatch line
typeMatch
names mod typeMatch
importsByModulemod
importsByModulemod typeNames valueNames
importsByModulemodtypeNamesnamess ss slength
seenModulesmod
seenModulesmod
otherLines
valueMatch
names mod valueMatch
importsByModulemod
importsByModulemod typeNames valueNames
importsByModulemodvalueNamesnamess ss slength
seenModulesmod
seenModulesmod
otherLines
otherLinesline
otherLinesline
line
mod linelength
entry importsByModulemod
uniqueTypes entrytypeNames
uniqueValues entryvalueNames
uniqueValueslength uniqueTypeslength
allNames uniqueValues uniqueTypesn
uniqueValueslength
line
src dest
content fssrc
content content
content content
content content
content contentline line
header
content header content
content
content
destPath path dest
fspathdestPath recursive
content content dest
fsdestPath content
fs
process
commitHash
files
file files
srcPath path filesrc
srcPath filedest
versionFile path
fsversionFile commitHash