Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*
* Input: Ask chat to run an echo command through the terminal tool with sandboxing enabled.
* Expected result: The command is sandbox-wrapped and its output contains
* `${sandboxReply}` and `SANDBOX_EXIT_CODE=0`.
*/
.
skip
(
'runs terminal commands inside the sandbox'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Run the terminal sandbox probe [scenario:${SANDBOX_SCENARIO_ID}]`
)
;
const
=
await
.
.
.
waitForResponseText
(
SANDBOX_EXIT_CODE_PATTERN
,
CHAT_RESPONSE_TIMEOUT
)
;
.
log
(
`[Chat Sandbox] response: ${responseText}`
)
;
.
ok
(
.
requestCount
(
)
>
,
'expected the mock LLM server to receive the sandbox scenario'
)
;
.
ok
(
.
includes
(
)
,
'expected the terminal result to include the sandbox probe reply'
)
;
const
=
SANDBOX_EXIT_CODE_PATTERN
.
exec
(
)
;
.
ok
(
,
'expected the terminal result to include the sandbox probe exit code'
)
;
.
strictEqual
(
Number
(
[
1
]
)
,
0
,
'expected the sandboxed terminal command to exit successfully'
)
;
// Confirm that the terminal tool actually wrapped the command for
// sandbox execution instead of using an unsandboxed fallback.
const
=
.
join
(
.
,
'terminal.log'
)
;
const
=
.
readFileSync
(
,
'utf8'
)
;
.
match
(
,
/RunInTerminalTool: Command rewritten by CommandLineSandboxRewriter: Wrapped command for sandbox execution/
,
`expected sandbox-wrapped terminal execution in ${terminalLogPath}`
/*
* Input: Ask chat to run `echo test > "$TMPDIR/test.txt"` in the sandbox-provided temp directory.
* Expected result: The output contains `TMPDIR_EXIT_CODE=0`.
*/
it
(
'allows writing to the sandbox TMPDIR'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Run the terminal TMPDIR sandbox probe [scenario:${TMPDIR_SCENARIO_ID}]`
)
;
const
=
await
.
.
.
waitForResponseText
(
TMPDIR_EXIT_CODE_PATTERN
,
CHAT_RESPONSE_TIMEOUT
)
;
.
log
(
`[Chat Sandbox/TMPDIR] response: ${responseText}`
)
;
.
ok
(
.
requestCount
(
)
>
,
'expected the mock LLM server to receive the TMPDIR sandbox scenario'
)
;
const
=
TMPDIR_EXIT_CODE_PATTERN
.
exec
(
)
;
.
ok
(
,
'expected the terminal result to include the TMPDIR probe exit codes'
/*
* Input: Ask chat to run `echo test > test.txt` in the host OS temp directory instead of $TMPDIR.
* Expected result: The output contains `MOCKED_CHAT_SANDBOX_HOST_TMP_COMPLETE` after the command
* finishes, and no file is created in the host temp directory.
*/
it
(
'blocks writing to the host temp directory'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Run the host temp directory sandbox probe [scenario:${HOST_TMP_SCENARIO_ID}]`
/*
* Input: Ask chat to run an HTTP request to the local mock server with allowNetwork disabled.
* Expected result: The sandbox blocks the request and its output contains a network error such as
* `ECONNREFUSED`, `EPERM`, `EACCES`, `ENETUNREACH`, `EHOSTUNREACH`, `ENETDOWN`, or `EAI_AGAIN`.
*/
it
(
'blocks terminal network access by default'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Run the terminal network sandbox probe [scenario:${NETWORK_SCENARIO_ID}]`
/*
* Input: Enable allowNetwork and ask chat to run an HTTP request to the local mock server.
* Expected result: The sandbox permits the request and its output contains `${networkAllowedReply}`.
*/
describe
(
'with terminal network access enabled'
,
function
(
)
{
before
(
async
function
(
)
{
const
=
this
.
as
;
await
updateUserSettingsWhileChatIsOpen
(
,
[
[
'chat.agent.sandbox.allowNetwork'
,
'true'
]
,
]
)
;
}
)
;
it
(
'allows terminal network access'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Run the allowed terminal network sandbox probe [scenario:${NETWORK_ALLOWED_SCENARIO_ID}]`
/*
* Input: Ask chat to read a test file in the home directory without configuring allowRead.
* Expected result: The sandbox blocks the read and its output contains
* `HOME_READ_BLOCKED_EXIT_CODE=<nonzero exit code>`.
*/
it
(
'blocks reading files in the home directory outside the workspace by default'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Read the home directory sandbox probe [scenario:${HOME_READ_SCENARIO_ID}]`
'expected the mock LLM server to receive the home read sandbox scenario'
)
;
const
=
HOME_READ_BLOCKED_EXIT_CODE_PATTERN
.
exec
(
)
;
.
ok
(
,
'expected the terminal result to include the home read exit code'
)
;
const
=
Number
(
[
1
]
)
;
.
notStrictEqual
(
,
0
,
`expected the sandbox to block reading ${homeFilePath}; the path must be added to chat.agent.sandbox.fileSystem.${process.platform ==='darwin'?'mac':'linux'}.allowRead to permit access`
/*
* Input: Add the home test file to allowRead and ask chat to read it through the terminal tool.
* Expected result: The sandbox permits the read and the chat UI contains the unique file contents.
*/
describe
(
'with home file read access enabled'
,
function
(
)
{
before
(
async
function
(
)
{
const
=
this
.
as
;
const
=
JSON
.
stringify
(
{
:
[
]
}
)
;
await
updateUserSettingsWhileChatIsOpen
(
,
[
[
'chat.agent.sandbox.fileSystem.linux'
,
]
,
[
'chat.agent.sandbox.fileSystem.mac'
,
]
,
]
)
;
}
)
;
it
(
'allows reading a configured home directory file'
,
async
function
(
)
{
const
=
this
.
as
;
try
{
const
=
.
requestCount
(
)
;
await
.
.
.
sendMessage
(
`Read the allowed home directory sandbox probe [scenario:${HOME_READ_ALLOWED_SCENARIO_ID}]`