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 { spawnSync } from 'child_process';
import * as readline from 'readline';
import * as path from '../../../util/vs/base/common/path';
// ⚠️⚠️⚠️
// This file is built into a standalone bundle, executed from the terminal.
// Avoid including unnecessary dependencies!
//
// This is used on macOS and Linux. On Windows, you'll need to make changes
// in copilotCLITerminalIntegration.ps1 instead. This is because Electron on Windows
// is not built with support for console stdin.
// ⚠️⚠️⚠️
/*
* Universal GitHub Copilot CLI bootstrapper
*
* Works from any interactive shell (bash, zsh, sh, PowerShell Core (pwsh), Nushell, csh/tcsh) via shebang.
* Responsibilities:
* 1. Locate the real Copilot CLI binary (avoid recursion if this file shadows it).
* 2. Offer to install if missing (npm -g @github/copilot).
* 3. Enforce minimum version (>= REQUIRED_VERSION) with interactive update.
* 4. Execute the real binary with original arguments and exit with its status.
*
* NOTE: This file intentionally keeps logic self‑contained (no external deps) so it can be dropped into PATH directly.
*/
const REQUIRED_VERSION = '0.0.394';
const
env processenv processenv
rl readline
input processstdin
output processstdout
msg processstdoutmsg
msg processstderrmsg
question
resolve
rl answer
answer
v
cleaned v
i cleanedi
versionA versionB
aa versionA bb versionB
i i i
aai bbi
aai bbi
installed version
result env shell encoding
resulterror resultstatus
m resultstdout
m version m installed installed
args label
result args stdio env
resulterror
resultstatus
label
result stdio env
resulterror
resultstatus
label
result stdio env
resulterror
resultstatus
label
result stdio env
resulterror
resultstatus
cmd
result env encoding
resulterror resultstatus
label update
update label
label
label
label
version
version
process
version
version
version
process
message
resolve
rl
process
info
infoversion
infoversion
info
args processargv
args
args
args stdio env
process