Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
// note: trailing slash is important, else the source URLs in V8's file coverage are incorrect
:
'../src/'
,
}
)
)
.
pipe
(
.
)
.
pipe
(
.
end
(
!
!
)
)
;
return
.
duplex
(
,
)
;
}
;
// add src-stream for project files
.
tsProjectSrc
=
(
)
=>
{
return
.
src
(
)
;
}
;
return
;
}
const
=
.
join
(
.
dirname
(
)
,
.
basename
(
,
'.json'
)
+
'.tsbuildinfo'
)
;
const
=
.
define
(
`clean-extension-${name}`
,
async
(
)
=>
{
await
.
rimraf
(
)
(
)
;
.
rmSync
(
,
{
:
true
}
)
;
}
)
;
const
=
.
define
(
`transpile-extension:${name}`
,
.
series
(
,
(
)
=>
{
const
=
createPipeline
(
false
,
true
,
true
)
;
const
=
.
src
(
,
)
.
pipe
(
filter
(
[
'**'
,
'!**/*.ts'
]
)
)
;
const
=
.
merge
(
,
.
tsProjectSrc
(
)
)
;
return
.
pipe
(
pipeline
(
)
)
.
pipe
(
.
dest
(
)
)
;
}
)
)
;
const
=
.
define
(
`compile-extension:${name}`
,
.
series
(
,
async
(
)
=>
{
const
=
.
src
(
,
)
.
pipe
(
filter
(
[
'**'
,
'!**/*.ts'
]
,
{
:
true
}
)
)
;
const
=
.
streamToPromise
(
.
pipe
(
.
dest
(
)
)
)
;
const
=
spawnTsgo
(
,
{
:
'extensions'
}
,
(
)
=>
rewriteTsgoSourceMappingUrlsIfNeeded
(
false
,
,
)
)
;
await
Promise
.
all
(
[
,
]
)
;
}
)
)
;
const
=
.
define
(
`watch-extension:${name}`
,
.
series
(
,
(
)
=>
{
const
=
.
src
(
,
)
.
pipe
(
filter
(
[
'**'
,
'!**/*.ts'
]
,
{
:
true
}
)
)
;
const
=
watcher
(
,
{
...
,
...
{
:
200
}
}
)
;
const
=
.
pipe
(
filter
(
[
'**'
,
'!**/*.ts'
]
,
{
:
true
}
)
)
.
pipe
(
.
dest
(
)
)
;
const
=
.
pipe
(
.
debounce
(
(
)
=>
{
onExtensionCompilationStart
(
)
;
const
=
createTsgoStream
(
,
{
:
'extensions'
}
,
(
)
=>
rewriteTsgoSourceMappingUrlsIfNeeded
(
false
,
,
)
)
;
// Wrap in a result stream that always emits 'end' (even on
// error) so the debounce resets to idle and can process future
// file changes. Errors from tsgo (e.g. type errors causing a
// non-zero exit code) are already reported by spawnTsgo's
// runReporter, so swallowing the stream error is safe.
const
=
.
through
(
)
;
.
on
(
'end'
,
(
)
=>
{
onExtensionCompilationEnd
(
)
;
.
emit
(
'end'
)
;
}
)
;
.
on
(
'error'
,
(
)
=>
{
onExtensionCompilationEnd
(
)
;
.
emit
(
'end'
)
;
}
)
;
return
;
}
,
200
)
)
;
const
=
.
merge
(
.
pipe
(
.
dest
(
)
)
,
,
)
;
return
;
}
)
)
;
// Tasks
.
task
(
)
;
.
task
(
)
;
.
task
(
)
;
return
{
,
,
}
;
}
)
;
const
=
.
define
(
'transpile-extensions'
,
.
parallel
(
...
.
map
(
=>
.
)
)
)
;
.
task
(
)
;
export
const
=
.
define
(
'compile-extensions'
,
.
parallel
(
...
.
map
(
=>
.
)
)
)
;
.
task
(
)
;
export
const
=
.
define
(
'watch-extensions'
,
.
parallel
(
...
.
map
(
=>
.
)
)
)
;
.
task
(
)
;
//#region Extension media
export
const
=
.
define
(
'compile-extension-media'
,
(
)
=>
.
buildExtensionMedia
(
false
)
)
;
.
task
(
)
;
export
const
=
.
define
(
'watch-extension-media'
,
(
)
=>
.
buildExtensionMedia
(
true
)
)
;
.
task
(
)
;
export
const
=
.
define
(
'compile-extension-media-build'
,
(
)
=>
.
buildExtensionMedia
(
false
,
'.build/extensions'
)
)
;
.
task
(
)
;
//#endregion
//#region Azure Pipelines
/**
* Cleans the build directory for extensions
*/
export
const
=
.
define
(
'clean-extensions-build'
,
.
rimraf
(
'.build/extensions'
)
)
;
/**
* brings in the marketplace extensions for the build
*/
const
=
.
define
(
'bundle-marketplace-extensions-build'
,
(
)
=>
.
packageMarketplaceExtensionsStream
(
false
)
.
pipe
(
.
dest
(
'.build'
)
)
)
;
/**
* Compiles the non-native extensions for the build
* @note this does not clean the directory ahead of it. See {@link cleanExtensionsBuildTask} for that.
*/
export
const
=
.
define
(
'compile-non-native-extensions-build'
,
.
series
(
,
.
define
(
'bundle-non-native-extensions-build'
,
(
)
=>
.
packageNonNativeLocalExtensionsStream
(
false
,
false
)
.
pipe
(
.
dest
(
'.build'
)
)
)
)
)
;
.
task
(
)
;
/**
* Compiles the native extensions for the build
* @note this does not clean the directory ahead of it. See {@link cleanExtensionsBuildTask} for that.
*/
export
const
=
.
define
(
'compile-native-extensions-build'
,
(
)
=>
.
packageNativeLocalExtensionsStream
(
false
,
false
)
.
pipe
(
.
dest
(
'.build'
)
)
)
;
.
task
(
)
;
/**
* Compiles the built-in copilot extension for the build.
* Used by non-CI local builds where copilot is not downloaded as a VSIX.
*/
export
const
=
.
define
(
'compile-copilot-extension-build'
,
(
)
=>
.
packageCopilotExtensionStream
(
false
)
.
pipe
(
.
dest
(
'.build'
)
)
)
;
.
task
(
)
;
/**
* Compiles the extensions for the build.
* This is essentially a helper task that combines {@link cleanExtensionsBuildTask}, {@link compileNonNativeExtensionsBuildTask} and {@link compileNativeExtensionsBuildTask}
*/