Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Renders a string of markdown for use in an external document context.
*
* Uses VS Code's syntax highlighting code blocks. Also does not attach all the hooks and customization that normal
* markdown renderer.
*/
export
async
function
renderMarkdownDocument
(
:
string
,
:
,
:
,
?
:
,
:
=
.
,
)
:
Promise
<
>
{
const
=
new
marked
.
Marked
(
.
markedHighlight
(
{
:
true
,
async
highlight
(
:
string
,
:
string
)
:
Promise
<
string
>
{
if
(
typeof
!==
'string'
)
{
return
escape
(
)
;
}
await
.
whenInstalledExtensionsRegistered
(
)
;
if
(
?.
)
{
return
''
;
}
const
=
.
getLanguageIdByLanguageName
(
)
??
.
getLanguageIdByLanguageName
(
.
split
(
/\s+|:|,|(?!^)\{|\?]/
,
1
)
[
0
]
)
;
return
tokenizeToString
(
,
,
)
;
}
}
)
,
markedGfmHeadingIdPlugin
(
)
,
...
(
?.
??
[
]
)
,
)
;
const
=
await
raceCancellationError
(
.
parse
(
,
{
:
true
}
)
,
??
.
)
;
return
sanitize
(
,
?.
)
;
}
namespace
{
// Copied from https://github.com/markedjs/marked-highlight/blob/main/src/index.js
export
function
markedHighlight
(
:
.
&
{
highlight
:
(
:
string
,
:
string
)
=>
string
|
Promise
<
string
>
}
)
:
.
{
if
(
typeof
===
'function'
)
{
=
{
:
,
}
;
}
if
(
!
||
typeof
.
!==
'function'
)
{
throw
new
Error
(
'Must provide highlight function'
)
;
}
return
{
:
!
!
.
,
walkTokens
(
:
.
)
:
Promise
<
void
>
|
void
{
if
(
.
!==
'code'
)
{
return
;
}
if
(
.
)
{
return
Promise
.
resolve
(
.
highlight
(
.
,
.
)
)
.
then
(
updateToken
(
)
)
;
}
const
=
.
highlight
(
.
,
.
)
;
if
(
instanceof
Promise
)
{
throw
new
Error
(
'markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.'
)
;
}
updateToken
(
)
(
)
;
}
,
:
{
code
(
{
,
,
}
:
.
.
)
{
const
=
?
` class="language-${escape(lang)}"`
:
''
;
=
.
replace
(
/\n$/
,
''
)
;
return
`<pre><code${classAttr}>${escaped ? text :escape(text,true)}\n</code></pre>`