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.
*--------------------------------------------------------------------------------------------*/
/**
* Per-(vscode-platform, arch) agent-SDK producer. Builds the tarballs needed
* by ONE VS Code build, optionally uploads them to the CDN, and writes a
* small JSON results file that the gulpfile-side `packageTask` reads to
* stamp `product.json`'s `agentSdks` field.
*
* Run as a pipeline step BEFORE the gulp packaging step on the same agent
* (via `build/azure-pipelines/common/agent-sdk-produce.yml`).
*
* Behavior split by VSCODE_PUBLISH:
*
* - VSCODE_PUBLISH=true (real release builds): build → upload (HEAD-then-
* decide idempotent) → write results JSON → emit task.setvariable so
* the gulp step stamps product.agentSdks.
*
* - VSCODE_PUBLISH unset / not 'true' (PR / CI / test runs): build only.
* Tarballs stay on disk at `.build/agent-sdk/tarballs/` so the pipeline
* can publish them as artifacts for inspection, but no CDN upload
* happens and no results file is written — so product.json ships
* without `agentSdks` and the runtime stays on the dev-override path,
* same as a local `npm run gulp` invocation.
*
* Each (sdk, sdkTarget) pair has exactly one producer per pipeline run —
* `darwin-arm64` is only built by the macOS arm64 job, `linux-x64-musl`
* only by the Alpine x64 job, etc. So there's no cross-host race over
* the same blob, and the HEAD-then-fail in `upload.ts` is purely a
* defense against re-runs with drifted bytes (toolchain change, etc.).
*
* For VS Code builds where no SDK applies (e.g. armhf), exits with an
* empty result set. product.json ships without `agentSdks` regardless of
* VSCODE_PUBLISH.
*/
import * as fs from 'fs';
import * as path from 'path';
import {
buildCdnUrlTemplate,
getSdks,
getSdkTargetForBuild,
type IAgentSdkResults
parseFlags
buildOne
uploadOne
vscodePlatform VscodeBuildPlatform
arch
resultsFile
tarballsDir
upload
ICliArgs
flags processargv
vscodePlatform flags
vscodePlatform vscodePlatform VscodeBuildPlatform
known
arch flags
arch
upload processenv
tarballsDir pathprocess
resultsFile processenv
pathprocess
vscodePlatform vscodePlatform VscodeBuildPlatform arch resultsFile tarballsDir upload
args
fsargstarballsDir recursive
results IAgentSdkResults
sdks
produced
sdkssdk sdk argsvscodePlatform argsarch argstarballsDir argsupload
i i sdkslength i
entry producedi
entry
resultssdksi entry
tarballCount fsargstarballsDirf flength
tarballCount
argsupload
fspathargsresultsFile recursive
fsargsresultsFile results
sdkCount Objectresultslength
sdk Sdk
vscodePlatform VscodeBuildPlatform
arch
tarballsDir
upload
IAgentSdkResults
sdkTarget vscodePlatform arch sdk
sdkTarget
built IBuildResult sdk sdkTarget outDir tarballsDir
upload
sdk
sdkVersion builtsdkVersion
sdkTarget
tgzPath builttgzPath
sha256 builtsha256
version builtsdkVersion urlTemplate sdk builtsdkVersion
err
err
process