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.
*--------------------------------------------------------------------------------------------*/
// Verify the vendored codex app-server protocol client
// (src/vs/platform/agentHost/node/codex/protocol/generated/**) is byte-for-byte what the
// generation script produces for the codex version pinned in the repo-root package.json
// devDependencies (@openai/codex). Guards against hand-edited or stale generated files:
// the committed client must be reproducible by `npm run codex:gen-protocol`.
//
// Usage:
// node build/codex/check-protocol-sync.ts
// Always regenerate into a scratch dir and compare (local "is my client fresh?").
//
// node build/codex/check-protocol-sync.ts --if-changed [--base <ref>]
// CI mode: only run when the PR touches codex generation outputs (the generated dir
// or codex-version.txt). `--base` defaults to origin/main.
//
// Never modifies the working tree. Exit codes: 0 = in sync (or skipped), 1 = drift.
import { spawnSync } from 'node:child_process';
import { mkdtempSync, readdirSync, readFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os'
path
pathToFileURL
resolveCodexBinary
readBinaryVersion
readPinnedVersion
generate
toPosix p ppathsep
path
path
pkg path
version pkgdevDependencies
version
version
changedPaths
changedPathsp
p
prefix prefix pprefix p prefix
baseRef
baseRef cwd encoding
r
rstatus
baseRef cwd encoding
r
rstatus
changed rstdouts sBoolean
changed
dir
out
walk d rel
entry d withFileTypes
entryname
abs pathd entryname
r rel entryname
entry abs r
entry outr
dir
out
committedDir freshDir
committed committedDir
fresh freshDir
diffs
rel committed
freshrel
diffs
a pathcommittedDir rel
b pathfreshDir rel
ab
diffs
rel fresh
committedrel
diffs
diffs
message
process
argv processargv
ifChanged argv
base
baseFlagIdx argv
baseFlagIdx base argvbaseFlagIdx
baseEq argva a
baseEq base baseEqlength
ifChanged
ref base
changed ref
changedlength
c changed
devDep
bin
binVersion bin
pinned
binVersion devDep
scratch path
bin scratch binVersion
diffs scratch
diffslength
d diffs
diffslength
process
scratch recursive force
pinned devDep
processargv metaurl processargvhref