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';
// Some dependencies ship their native binary in a per-platform package that is
// declared as an *optional* dependency of a small base package — e.g.
// `@openai/codex` and `@anthropic-ai/claude-agent-sdk` are thin launchers and
// the real binaries live in `@openai/codex-<platform>-<arch>` /
// `@anthropic-ai/claude-agent-sdk-<platform>-<arch>`. `npm install` / `npm ci`
// do NOT fail when an optional dependency cannot be installed, so a transient
// hiccup can leave the base package present while the per-platform package is
// missing (see https://github.com/microsoft/vscode/pull/323881).
//
// `findMissingNativeOptionalDep` is the reusable primitive that detects this.
// It is used from two places:
// - The CLI entry point below runs after `npm ci` in the node_modules
// cache-build jobs (.github/workflows/pr-node-modules.yml) and fails the
// job so a poisoned cache is never saved.
// - The agent-SDK producer (build/agent-sdk/package.ts) runs it after its
// scratch `npm ci` so a binary-less tarball is never built and uploaded to
// the CDN.
/**
* Returns the name of the required per-platform package that is missing from
* `nodeModulesDir`, or `undefined` when nothing is wrong.
*
* A base package (e.g. `@openai/codex`) ships its native binary in a
* per-platform optional dependency named `<base>-<target>` (e.g.
* `@openai/codex-linux-x64`, `@anthropic-ai/claude-agent-sdk-linux-x64-musl`).
* npm does not fail when an optional dependency cannot be installed, so this
* detects a base package that ended up installed without its matching native
* package.
*
* `target` is the `<platform>-<arch>[-<libc>]` suffix — e.g. `darwin-arm64`,
* `linux-x64`, `linux-x64-musl`.
*
* Only enforced when the base package itself is installed; if it is not, the
* dependency simply was not requested here and there is nothing to verify.
*/
nodeModulesDir basePackage target
fspathnodeModulesDir basePackage
platformPackage
fspathnodeModulesDir platformPackage
platformPackage
metafilename processargv
platform arch process
platform arch
nodeModulesDir pathmetadirname
target
errors
basePackage
missing nodeModulesDir basePackage target
missing
errors
errorslength
err errors
process