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 of the Foundry Local native runtime (the
* prebuilt N-API addon + the Foundry Local Core / onnxruntime / onnxruntime-genai
* shared libraries). Callable as both a Node library (`buildOne(...)`) and a thin
* CLI (bottom of this file).
*
* The library form is what `produce.ts` calls during the per-platform
* "Dictation runtime: build + upload" pipeline step; the CLI form is for local
* one-off builds and requires `VSS_NUGET_ACCESSTOKEN` for the VS Code NuGet feed.
*
* The addon is copied from the pinned `foundry-local-sdk` package's `prebuilds/`
* (which ships every target), and the core libraries are fetched from NuGet for
* the requested target's RID via `fetchCoreLibraries` (NOT the SDK's host-locked
* installer), so ANY build host can produce ANY target's tarball. This is what
* lets VS Code's ARM64 desktop builds — which run on x64 pools — publish their
* `linux-arm64`/`win32-arm64` runtimes.
*
* The produced tarball's internal layout mirrors the runtime cache layout so the
* runtime extraction is a plain untar:
*
* prebuilds/<target>/foundry_local_napi.node
* foundry-local-core/<target>/<core libraries>
*/
import { createRequire } from 'module';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as tar from
getRuntimeVersion parseFlags sha256OfFile
fetchCoreLibraries getStandardArtifacts requiredCoreLibraryNames
sdkRequire metaurl
tgzPath
sha256
version
sizeBytes
target
outDir
args IBuildArgs IBuildResult
argstarget
version
stagingDir fspathos
stagingDir argstarget
stagingDir argstarget
fsargsoutDir recursive
tgzPath pathargsoutDir
stagingDir tgzPath
sha256 tgzPath
sizeBytes fstgzPathsize
tgzPath sha256 version sizeBytes
fsstagingDir recursive force
stagingDir target
sdkRoot pathsdkRequire
addonSrc pathsdkRoot target
fsaddonSrc
addonDest pathstagingDir target
fspathaddonDest recursive
fsaddonSrc addonDest
stagingDir target
dependencies IFoundryDependencyVersions
artifacts target dependencies
coreDir pathstagingDir target
target artifacts coreDir
name target
fspathcoreDir name
stagingDir outTgz
tar
file outTgz
cwd stagingDir
gzip level
portable
mtime
metafilename processargv
IBuildArgs
flags processargv
target flags
target
outDir flags pathprocess
target outDir
err
err
process