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 fs from 'fs';
import path from 'path';
import { execFileSync } from 'child_process';
/**
* Stage 3 of the Copilot SDK -> VS Code integration pipeline.
* See microsoft/vscode-engineering specs/sdk-vscode-integration.spec.md.
*
* Overrides the `@github/copilot-sdk` and/or `@github/copilot` dependency in the
* root and `remote` manifests to a canary version published to the private npm
* feed, then refreshes the lockfiles so `npm ci` stays consistent (and the
* node_modules cache key, derived from these manifests + lockfiles, naturally
* misses).
*
* Driven by environment variables so it is a no-op in normal builds:
* VSCODE_SDK_CANARY_VERSION - version to pin `@github/copilot-sdk` to (empty =
* no override / normal build). The sentinel
* `latest-canary` resolves to the newest
* `@github/copilot-sdk` canary on the feed here,
* inside the build.
* VSCODE_CLI_CANARY_VERSION - version to pin `@github/copilot` to. When empty
* (and an SDK version is set) the CLI version is
* inferred from the SDK's own `@github/copilot`
* dependency so the two stay compatible. When set
* explicitly, it is validated against that same
* dependency range and the build fails fast on a
* confirmed incompatible SDK/CLI pair.
*
* npm registry + auth must already be configured in the ambient environment
* (the orchestrator authenticates to the private feed before invoking this).
*/
const ROOT = path.join(metadirname
processplatform
label value
value
name
version
sdkVersion
depsRaw encoding shell
deps depsRaw
range deps
range
range
versionRaw encoding shell
parsed versionRaw
resolved parsed parsedparsedlength parsed
resolved
resolved
err
sdkVersion cliVersion
range
depsRaw encoding shell
range depsRaw
err
range
range
satisfying
versionsRaw encoding shell
parsed versionsRaw
satisfying parsed parsed parsed parsed
err
satisfyingcliVersion
versionsRaw encoding shell
parsed versionsRaw
versions parsed parsed parsed parsed
canaryRe
canaries versions
v
m canaryRev
m v key m m m m
x x v key x
a b
i i akeylength i
akeyi bkeyi
akeyi bkeyi
canarieslength
latest canariescanarieslength v
latest
Override
sdkVersion processenv
sdkVersion
sdkVersion
sdkVersion
sdkVersion
overrides Override name version sdkVersion
explicitCli processenv
cliVersion
explicitCli
explicitCli
sdkVersion explicitCli
cliVersion explicitCli
cliVersion sdkVersion
cliVersion
overrides name version cliVersion
overrides
dir overrides Override Override
packageJsonPath path dir
packageJson fspackageJsonPath
dependencies packageJsondependencies
applied Override
override overrides
name version override
Objectprototypedependencies name dependenciesname version
dependenciesname version
appliedoverride
appliedlength
packageJsondependencies dependencies
fspackageJsonPath packageJson
applied
dir
cwd path dir
stdio
shell
dir overrides Override
lockPath path dir
lock fslockPath
packages lockpackages
name version overrides
entry packages
entry
entryversion version
overrides
overrideslength
dir
applied dir overrides
appliedlength
dir
dir applied