Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Moves all .map files from the output directories to a separate source maps directory.
* This keeps source maps out of the packaged extension while making them available for upload.
*/
// Directory might not exist in some build configurations
console
.
warn
(
`Could not process directory ${dir}:`
,
)
;
}
}
}
async
function
main
(
)
{
if
(
.
[
'BUILD_SOURCEVERSION'
]
)
{
console
.
log
(
'Running in CI environment, applying package.json patch for correct versioning and pre-release status...'
)
;
applyPackageJsonPatch
(
)
;
}
await
typeScriptServerPluginPackageJsonInstall
(
)
;
if
(
)
{
const
:
.
[
]
=
[
]
;
const
=
await
.
context
(
)
;
.
push
(
)
;
const
=
await
.
context
(
)
;
.
push
(
)
;
const
=
await
.
context
(
)
;
.
push
(
)
;
const
=
await
.
context
(
)
;
.
push
(
)
;
const
=
await
.
context
(
)
;
.
push
(
)
;
const
=
await
.
context
(
)
;
.
push
(
)
;
let
:
.
|
undefined
;
const
rebuild
=
async
(
)
=>
{
if
(
)
{
clearTimeout
(
)
;
}
=
setTimeout
(
async
(
)
=>
{
console
.
log
(
'[watch] build started'
)
;
for
(
const
of
)
{
try
{
await
.
cancel
(
)
;
await
.
rebuild
(
)
;
}
catch
(
)
{
console
.
error
(
'[watch]'
,
)
;
}
}
console
.
log
(
'[watch] build finished'
)
;
}
,
100
)
;
}
;
const
=
await
import
(
'@parcel/watcher'
)
;
.
subscribe
(
REPO_ROOT
,
(
,
)
=>
{
for
(
const
of
)
{
console
.
log
(
`File change detected: ${event.path}`
)
;
}
rebuild
(
)
;
}
,
{
:
[
`**/.git/**`
,
`**/.simulation/**`
,
`**/test/outcome/**`
,
`.vscode-test/**`
,
`**/.venv/**`
,
`**/dist/**`
,
`**/node_modules/**`
,
`**/*.txt`
,
`**/baseline.json`
,
`**/baseline.old.json`
,
`**/*.w.json`
,
'**/*.sqlite'
,
'**/*.sqlite-journal'
,
'test/aml/out/**'
]
}
)
;
rebuild
(
)
;
}
else
{
await
Promise
.
all
(
[
.
build
(
)
,
.
build
(
)
,
.
build
(
)
,
.
build
(
)
,
.
build
(
)
,
.
build
(
)
,
.
build
(
)
,
]
)
;
// Run postinstall to copy static build assets (wasm, tiktoken, cli) to dist/.
// This is needed because in CI, node_modules may be restored from cache,
// skipping npm ci and thus the postinstall script.
const
=
await
import
(
'child_process'
)
;
.
execFileSync
(
.
,
[
.
join
(
REPO_ROOT
,
'node_modules'
,
'tsx'
,
'dist'
,
'cli.mjs'
)
,
.
join
(
REPO_ROOT
,
'script'
,
'postinstall.ts'
)
,
]
,
{
:
REPO_ROOT
,
:
'inherit'
}
,
)
;
// Move source maps to separate directory so they're not packaged with the extension
await
moveSourceMapsToSeparateDir
(
)
;
}
}
function
applyPackageJsonPatch
(
)
{
const
=
.
[
'VSCODE_QUALITY'
]
;
if
(
!
)
{
throw
new
Error
(
'VSCODE_QUALITY environment variable is not set. This should be set by the build pipeline to ensure correct versioning and pre-release status in package.json.'
)
;
}
const
=
.
join
(
import
.
.
,
'./package.json'
)
;
const
=
JSON
.
parse
(
.
readFileSync
(
,
'utf8'
)
)
;
let
=
.
;
const
=
!==
'stable'
;
if
(
)
{
const
=
.
[
'VSCODE_PUBLISH_COUNTER'
]
;
if
(
!
)
{
throw
new
Error
(
'VSCODE_PUBLISH_COUNTER environment variable is not set. This should be set by the build pipeline to ensure unique versioning for each pre-release build.'
)
;
}
if
(
!
/^\d+$/
.
test
(
)
)
{
throw
new
Error
(
'VSCODE_PUBLISH_COUNTER must be a non-negative integer. This should be set by the build pipeline to ensure unique versioning for each pre-release build.'
)
;
}
const
=
.
parseInt
(
,
10
)
;
if
(
!
.
isInteger
(
)
||
>=
100
)
{
throw
new
Error
(
'VSCODE_PUBLISH_COUNTER is out of range. This should be a whole number between 0 and 99 that increments with each build, but resets periodically (e.g. daily) to avoid excessively long version numbers.'