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 * as fs from 'fs';
import * as os from 'os';
import { dirname, join } from '../../../base/common/path.js';
import { format2 } from '../../../base/common/strings.js';
import { CancellationToken } from '../../../base/common/cancellation.js';
import { CancellationError } from '../../../base/common/errors.js';
/**
* On-demand provisioning of the Foundry Local native runtime used by on-device
* dictation.
*
* `foundry-local-sdk` ships a prebuilt N-API addon (`foundry_local_napi.node`)
* and native core libraries (Foundry Local Core + ONNX Runtime + ONNX Runtime
* GenAI). The addon requires a newer glibc than VS Code's minimum supported
* Linux distros, so we deliberately do NOT bundle any of this native payload
* with the product (see `build/gulpfile.vscode.ts`). Instead we republish a
* per-target tarball of the addon + core libraries to VS Code's CDN at build
* time (see `build/dictation-runtime/`) and download it here, at runtime, only
* on supported platforms, into a per-user writable cache — keeping the shipped
* package's glibc floor intact and avoiding any runtime dependency on the npm
* registry or NuGet.
*
* The SDK loader (`dist/detail/coreInterop.js`) is patched during
* `postinstall` to honor `VSCODE_FOUNDRY_LOCAL_NATIVE_DIR`, pointing it at the
* cache directory this module populates. The tarball's internal layout mirrors
* the SDK's own package layout so the patched resolution is a trivial path join:
*
* <cacheRoot>/<version>/prebuilds/<target>/foundry_local_napi.node
* <cacheRoot>/<version>/foundry-local-core/<target>/<core libraries>
*
* NOTE: the single CDN download leg honors the standard proxy environment
* variables (`HTTPS_PROXY`/`HTTP_PROXY`/`ALL_PROXY`, with `NO_PROXY`). VS Code's
* `http.proxy`/`http.noProxy` settings are applied as these same environment
* variables before provisioning (see `LocalTranscriptionService.start`), so a
* proxy configured only in VS Code is honored here and by the native model
* download too; `http.proxyAuthorization` (Basic) is folded into the proxy URL
* and `http.proxyStrictSSL === false` disables TLS verification for this leg.
* TLS-intercepting proxies otherwise rely on the CA being in the OS trust store.
*/
ReadonlySet
key
key key
message
urlTemplate
version
inFlight
cacheRoot download IFoundryLocalRuntimeDownload token CancellationToken onProgress FoundryLocalRuntimeProgress
platformKey
platformKey
overrideDir cacheRoot downloadversion
existing inFlightoverrideDir
existing
existing
promise overrideDir platformKey download token onProgress
inFlightoverrideDir
inFlightoverrideDir promise
promise
overrideDir platformKey download IFoundryLocalRuntimeDownload token CancellationToken onProgress FoundryLocalRuntimeProgress
overrideDir platformKey
overrideDir
platformKey
onProgress
overrideDir platformKey downloadurlTemplate downloadversion token
overrideDir
overrideDir platformKey urlTemplate version token CancellationToken
addonPath overrideDir platformKey
coreDir overrideDir platformKey
url urlTemplate target platformKey
staging overrideDir
stagingAddon staging platformKey
stagingCore staging platformKey
url staging token
token
fsstagingAddon stagingCore
stagingAddon addonPath
stagingCore coreDir
fspromisesstaging recursive force
fsaddonPath coreDir
fspromisesoverrideDir platformKey
overrideDir platformKey
overrideDir
overrideDir platformKey
overrideDir platformKey
overrideDir platformKey
overrideDir platformKey
overrideDir platformKey
fsoverrideDir platformKey
fsoverrideDir platformKey
overrideDir platformKey
from to
fspromisesto recursive
fspromisesfrom to
err
fsto
err
platformKey
platformKey
glibc
glibc glibc glibc glibc
err
err Error code code
err
report process report getReport header glibcVersionRuntime report
version reportgetReportheaderglibcVersionRuntime
match version version
match
match match
url stagingDir token CancellationToken
fspromisesstagingDir recursive
tmpDir fspromisesos
tarballPath tmpDir
url tarballPath token
token
tar
tar file tarballPath cwd stagingDir
fspromisestmpDir recursive force
ext processplatform processplatform
prefix processplatform
coreDir
name fscoreDir name
targetUrl env NodeJSProcessEnv processenv
parsed
parsed targetUrl
scheme parsedprotocol
env envhttp_proxy
env envhttps_proxy
proxy scheme env envall_proxy
proxy
noProxy env envno_proxy
noProxy noProxy parsedhostname
proxy
noProxy hostname
host hostname
noProxyraw
entry raw
entry
entry host entry host
targetUrl Agent
proxyUrl targetUrl
proxyUrl
HttpsProxyAgent
proxyUrl
url dest token CancellationToken
https http
u uprotocol httpget httpsget
agent url
resolve reject
settled
timer ReturnType setTimeout
activeRequest ClientRequest
file fsdest
err Error
settled
settled
timer
timer
activeRequest
err
file fspromisesdest force err
timer
timer
timer
request currentUrl redirectsLeft
tokenisCancellationRequested
activeRequest currentUrlcurrentUrl agent response
status responsestatusCode
status status responseheaderslocation
response
redirectsLeft
responseheaderslocation currentUrl redirectsLeft
status
response
response armTimeout
response err err
responsefile
file fileerr err err
activeRequest err err
file err err
url
token CancellationToken
tokenisCancellationRequested