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 { exec } from 'child_process';
import * as fs from 'fs';
import { glob } from 'glob';
import * as jsonc from 'jsonc-parser';
import * as path from 'path';
import { promisify } from 'util';
const REPO_ROOT = path.join(__dirname, '..', '..');
const CHAT_LIB_DIR path
path
execAsync exec
entryPoints
srcPath
destPath
relativePath
dependencies
processedFiles
allFiles
pathMappings Map
tsconfigPath path
tsconfigContent fspromisestsconfigPath
tsconfig jsonctsconfigContent
tsconfigcompilerOptionspaths
alias targets ObjecttsconfigcompilerOptionspaths
alias
targets targetslength
target targets
cleanTarget target
cleanAlias alias
pathMappingscleanAlias cleanTarget
pathMappings
fs
fspromises recursive force
fspromises recursive
testFiles cwd
queue entryPoints testFiles
queuelength
filePath queue
processedFilesfilePath
fullPath path filePath
fsfullPath
dependencies fullPath
destPath filePath
allFilesfilePath
srcPath fullPath
destPath
relativePath filePath
dependencies
processedFilesfilePath
dependenciesdep
processedFilesdep
queuedep
filePath
content fspromisesfilePath
dependencies
lines content
activeLines
inBlockComment
line lines
line
filePath line
inBlockComment
inBlockComment
line
inBlockComment
trimmedLine line
trimmedLine
processedLine line
trimmedLine trimmedLine
commentIndex line
commentIndex
beforeComment line commentIndex
singleQuotes beforeComment length
doubleQuotes beforeComment length
singleQuotes doubleQuotes
processedLine beforeComment
activeLinesprocessedLine
activeContent activeLines
relativeImportRegex
match
match relativeImportRegexactiveContent
importPath match
resolvedPath filePath importPath
resolvedPath
dependenciesresolvedPath
aliasImportRegex
match aliasImportRegexactiveContent
importPath match
resolvedPath importPath
resolvedPath
dependenciesresolvedPath
filePath
jsxRelativeImportRegex
match jsxRelativeImportRegexactiveContent
importPath match
resolvedPath filePath pathimportPath
resolvedPath
dependenciesresolvedPath
resolvedDevPath filePath pathimportPath
resolvedDevPath
dependenciesresolvedDevPath
dependencies
importPath
alias targetPath pathMappings
importPath alias
path targetPath
importPathalias
remainder importPathaliaslength
fullPath path targetPath remainder
fullPath
basePath
fsbasePath
path basePath
fsbasePath
path basePath
fsbasePath
path basePath
fspathbasePath
path pathbasePath
fspathbasePath
path pathbasePath
fspathbasePath
path pathbasePath
fsbasePath
path basePath
fromFile importPath
fromDir pathfromFile
resolved pathfromDir importPath
importPath
baseResolved resolved
fsbaseResolved
path baseResolved
fsbaseResolved
path baseResolved
fsresolved
path resolved
fsresolved
path resolved
fsresolved
path resolved
fspathresolved
path pathresolved
fspathresolved
path pathresolved
fspathresolved
path pathresolved
fsresolved
path resolved
filePath
filePath
filePath
normalizedPath filePath
relativePath normalizedPath
path relativePath
fileInfo allFiles
fileInforelativePath
fspromisespathfileInfodestPath recursive
content fspromisesfileInfosrcPath
transformedContent content fileInforelativePath
fspromisesfileInfodestPath transformedContent
content filePath
transformed content
normalizedFilePath filePath
transformed transformed normalizedFilePath
transformed transformed normalizedFilePath
normalizedFilePath
transformed transformed
normalizedFilePath
transformed transformed
match importClause importPath
rewrittenPath filePath importPath
transformed
content filePath
filePath
content
vscodeImportRegex
contentvscodeImportRegex match importPrefix importClause
shimPath filePath
content filePath
filePath
content
filePath
content
vscodeTypesImportRegex
contentvscodeTypesImportRegex match importPrefix importClause importPath
shimPath filePath
filePath
filePath
relativePath filePath
pathSegments relativePath
depth pathSegmentslength
upLevels depth
fromFile importPath
fromFile
importPath
importPath
mainTsPath path
mainTsContent fspromisesmainTsPath
transformedMainTs mainTsContent
fspromisespath transformedMainTs
testDir path
replyFiles cwd testDir
file replyFiles
srcPath pathtestDir file
destPath path file
fspromisespathdestPath recursive
fspromisessrcPath destPath
chatLibTsconfigPath path
tsconfigContent fspromiseschatLibTsconfigPath
tsconfig jsonctsconfigContent
tsconfigcompilerOptions
tsconfigcompilerOptions
tsconfigcompilerOptionspaths
tsconfigcompilerOptionspaths
rootTsconfigPath path
rootTsconfigContent fspromisesrootTsconfigPath
rootTsconfig jsoncrootTsconfigContent
alias targetPath pathMappings
pathWithoutSrc targetPath
chatLibPath
aliasWithWildcard alias
pathWithWildcard chatLibPath
rootTsconfigcompilerOptionspaths
key ObjectrootTsconfigcompilerOptionspaths
keyWithoutWildcard key
keyWithoutWildcard alias key
aliasWithWildcard alias
pathWithWildcard chatLibPath
tsconfigcompilerOptionspathsaliasWithWildcard pathWithWildcard
fspromises
chatLibTsconfigPath
tsconfig
ObjecttsconfigcompilerOptionspaths
staticFiles
file staticFiles
filePath path file
fsfilePath
mainTsPath path
fsmainTsPath
vscodeApiSrcPath path
fsvscodeApiSrcPath
content fspromisesvscodeApiSrcPath
refRegex
match
referencedFiles refPath fileName
match refRegexcontent
refPath match
fileName pathrefPath
referencedFiles refPath fileName
vscodeDtsDestDir path
fspromisesvscodeDtsDestDir recursive
refPath fileName referencedFiles
srcPath pathpathvscodeApiSrcPath refPath
fssrcPath
destPath pathvscodeDtsDestDir fileName
fspromisessrcPath destPath
updatedContent content
_match refPath
fileName pathrefPath
vscodeApiDestPath path
fspromisesvscodeApiDestPath updatedContent
vscodeRepoRoot path
thenableSrcPath pathvscodeRepoRoot
fsthenableSrcPath
fspromisesthenableSrcPath pathvscodeDtsDestDir
tokenizerDir path
tikTokenFiles cwd tokenizerDir
file tikTokenFiles
srcPath pathtokenizerDir file
destPath path file
fspromisespathdestPath recursive
fspromisessrcPath destPath
srcPath path
destPath path
fspromisessrcPath destPath
rootPackageJsonPath path
chatLibPackageJsonPath path
rootPackageLockPath path
chatLibPackageLockPath path
rootPackageJson fspromisesrootPackageJsonPath
chatLibPackageJson fspromiseschatLibPackageJsonPath
rootDependencies
rootPackageJsondependencies
rootPackageJsondevDependencies
updatedCount
removedCount
changes
updatedPackages
depType
chatLibPackageJsondepType
dependencyNames ObjectchatLibPackageJsondepType
depName dependencyNames
rootDependenciesdepName
oldVersion chatLibPackageJsondepTypedepName
newVersion rootDependenciesdepName
oldVersion newVersion
chatLibPackageJsondepTypedepName newVersion
changes
updatedCount
updatedPackagesdepName
chatLibPackageJsondepTypedepName
changes
removedCount
ObjectchatLibPackageJsondepTypelength
chatLibPackageJsondepType
fspromises
chatLibPackageJsonPath
chatLibPackageJson
changeslength
changeschange change
updatedPackagessize fsrootPackageLockPath fschatLibPackageLockPath
rootPackageLock fspromisesrootPackageLockPath
chatLibPackageLock fspromiseschatLibPackageLockPath
chatLibPackageLockpackages chatLibPackageLockpackages
chatLibPackageLockpackagesdependencies chatLibPackageJsondependencies
chatLibPackageLockpackagesdevDependencies chatLibPackageJsondevDependencies
packagesToUpdate
queue
pkgName updatedPackages
pkgPath
queuepkgPath
packagesToUpdatepkgPath
queuelength
pkgPath queue
pkgInfo rootPackageLockpackagespkgPath
pkgInfo
deps
pkgInfodependencies
pkgInfooptionalDependencies
pkgInfodevDependencies
depName Objectdeps
nestedDepPath
topLevelDepPath
actualDepPath
rootPackageLockpackagesnestedDepPath
actualDepPath nestedDepPath
rootPackageLockpackagestopLevelDepPath
actualDepPath topLevelDepPath
pathParts pkgPath
i pathPartslength i i
parentPath pathParts i
candidatePath parentPath
rootPackageLockpackagescandidatePath
actualDepPath candidatePath
actualDepPath packagesToUpdateactualDepPath
packagesToUpdateactualDepPath
queueactualDepPath
lockUpdatedCount
pkgPath packagesToUpdate
rootPackageLockpackagespkgPath
chatLibPackageLockpackagespkgPath rootPackageLockpackagespkgPath
lockUpdatedCount
fspromises
chatLibPackageLockPath
chatLibPackageLock
stdout stderr
cwd
timeout
stderr
stderr
error
errorstdout errormessage
extractor
extractor
error
error
process
main module