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.
*--------------------------------------------------------------------------------------------*/
/**
* Builds one per-target tarball for one agent SDK. Callable as both a Node
* library function (`buildOne(...)`) and a thin CLI (the bottom of this file).
*
* The library form is what `produce.ts` calls during the per-platform
* "Agent SDK: build + upload" pipeline step; the CLI form is for local
* one-off builds during development.
*
* Runs on any OS — `npm install` with `npm_config_libc/os/cpu` set fetches
* the foreign platform's pre-built binary package as-is from the registry,
* no compilation involved. The tarball is then `tar`'d on whatever host is
* doing the packaging. Each `(sdk, target)` pair has exactly one producer
* per pipeline run (no cross-host race), so we don't need byte-identical
* tarballs across OSes — only across re-runs on the same host, which the
* same npm install + same tar version produces naturally.
*
* SDK version pinning:
* - Pinned via repo-root `package.json` devDeps (`getSdkVersion`).
* - No `node_modules` package-lock for the scratch install: transitive
* drift surfaces at upload time as a sha mismatch against the existing
* blob, where a human investigates.
*
* Uses node-tar (pure JS) for tar creation rather than system tar so that
* tarballs produced on a Windows or macOS host have the same shape as ones
* produced on Linux — same library, same flags, same output bytes given
* the same input tree.
*/
import { spawnSync } from 'child_process';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
tar
findMissingNativeOptionalDep
getAgentDir getAgentMeta parseFlags sha256OfFile
tgzPath
sha256
sdkVersion
sizeBytes
sdk Sdk
sdkTarget
outDir
args IBuildArgs IBuildResult
name packageName version sdkVersion argssdk
agentDir argssdk
stagingDir fspathos
fspathagentDir pathstagingDir
fspathagentDir pathstagingDir
os targetOs cpu libc argssdkTarget
npmEnv NodeJSProcessEnv npm_config_os targetOs npm_config_cpu cpu
libc
npmEnvnpm_config_libc libc
stagingDir npmEnv
nodeModulesDir pathstagingDir
missingNativeDep nodeModulesDir packageName argssdkTarget
missingNativeDep
nodeModulesDir argssdk
fsargsoutDir recursive
tgzPath pathargsoutDir
stagingDir tgzPath
sha256 tgzPath
sizeBytes fstgzPathsize
tgzPath sha256 sdkVersion sizeBytes
fsstagingDir recursive force
sdkTarget os cpu libc
match sdkTarget
match
osStr cpu libc match
os osStr cpu libc
nodeModulesDir sdk Sdk
sdk
scopeDir pathnodeModulesDir
fsscopeDir
child fsscopeDir
child
binary pathscopeDir child
fsbinary
fsbinary
scopeDir pathnodeModulesDir
fsscopeDir
child fsscopeDir
child
vendorDir pathscopeDir child
fsvendorDir
triple fsvendorDir
binDir pathvendorDir triple
fsbinDir
f fsbinDir
fspathbinDir f
workDir env NodeJSProcessEnv
isWindows processplatform
npm isWindows
result npm
cwd workDir
env processenv env
stdio
shell isWindows
resulterror
resultstatus
stagingDir outTgz
tar
file outTgz
cwd stagingDir
gzip level
portable
mtime
metafilename processargv
IBuildArgs
flags processargv
sdk flags
sdk sdk
sdkTarget flags
sdkTarget
outDir flags pathprocess
sdk sdkTarget outDir
err
err
process