Это 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.
*--------------------------------------------------------------------------------------------*/import assert from'assert';import{ ensureNoDisposablesAreLeakedInTestSuite }from'../../../../../../base/test/common/utils.js';import{ IQuickInputService, IQuickPickItem }from'../../../../../../platform/quickinput/common/quickInput.js';import{ IRemoteAgentHostEntry, RemoteAgentHostEntryType }from'../../../../../../platform/agentHost/common/remoteAgentHostService.js';import{ ICachedTunnel }from'../../../../../../platform/agentHost/common/tunnelAgentHost.js';import{ IAgentHostSessionsProvider }from'../../../../../common/agentHostSessionsProvider.js';import{ ISessionsProvider }from'../../../../../services/sessions/common/sessionsProvider.js';
collectRemoteAgentHostLocationTargets findAgentHostProviderForTarget pickRemoteAgentHostLocationTarget
name sshConfigHost address IRemoteAgentHostEntry
name connection type RemoteAgentHostEntryType address hostName sshConfigHost sshConfigHost
name address user host port IRemoteAgentHostEntry
name connection type RemoteAgentHostEntryType address hostName host user port
name address IRemoteAgentHostEntry
name connection type RemoteAgentHostEntryTypeWebSocket address
tunnelId name ICachedTunnel
tunnelId clusterId name
assert
targets
asserttargets preferenceKey address label
targets
asserttargets preferenceKey address label
targets
asserttargets preferenceKey address label
targets
asserttargets
targets
asserttargets preferenceKey address label
targets
asserttargets preferenceKey address label
targets
asserttargets
preferenceKey address label
preferenceKey address label
pickCalled
quickInputService pickCalled IQuickInputService
target quickInputService
asserttarget
assertpickCalled
pickCalled
quickInputService pickCalled IQuickInputService
sole preferenceKey address label
target quickInputService sole
asserttarget sole
assertpickCalled
a preferenceKey address label
b preferenceKey address label
offeredItems IQuickPickItem
quickInputService
picks IQuickPickItem
offeredItems picks
picks
IQuickInputService
target quickInputService a b
asserttarget b
assertofferedItemslength
quickInputService IQuickInputService
target quickInputService
preferenceKey address label
preferenceKey address label
asserttarget
id remoteAddress ISessionsProvider
id label id remoteAddress IAgentHostSessionsProvider
id remoteAddress ISessionsProvider
id label id remoteAddress ISessionsProvider
match
provider match
assertprovider match
provider
assertprovider
provider
assertprovider
provider
assertprovider
assert
match
providers
match
assertproviders match
/**
* A realistic configured SSH entry: `address` is the forwarded local
* WebSocket endpoint (e.g. `localhost:4321`) established by the SSH
* tunnel, distinct from `sshConfigHost` (the stable SSH config alias used
* to key the preference).
*/
function
sshEntry
(
:
string
,
:
string
,
:
string
)
:
{
return
{
,
:
{
:
.
SSH
,
,
:
,
}
}
;
}
/** A config-less SSH entry (no `sshConfigHost` alias), keyed by `user@host:port`. */
function
sshEntryWithoutAlias
(
:
string
,
:
string
,
:
string
,
:
string
,
:
number
)
:
{
return
{
,
:
{
:
.
SSH
,
,
:
,
,
}
}
;
}
function
webSocketEntry
(
:
string
,
:
string
)
:
{
return
{
,
:
{
:
.
,
}
}
;
}
function
tunnel
(
:
string
,
:
string
)
:
{
return
{
,
:
'cluster'
,
}
;
}
suite
(
'collectRemoteAgentHostLocationTargets'
,
(
)
=>
{
ensureNoDisposablesAreLeakedInTestSuite
(
)
;
test
(
'returns an empty list when there are no SSH entries and no cached tunnels'
,
(
)
=>
{
.
deepStrictEqual
(
collectRemoteAgentHostLocationTargets
(
[
]
,
[
]
)
,
[
]
)
;
}
)
;
test
(
'includes one target per SSH entry, keyed by its stable ssh:<alias> preference key, distinct from its live forwarded address'
,
(
)
=>
{
const
=
collectRemoteAgentHostLocationTargets
(
[
sshEntry
(
'My Server'
,
'my-host-alias'
,
'localhost:4321'
)
]
,
[
]
)
;
.
deepStrictEqual
(
,
[
{
:
'ssh:my-host-alias'
,
:
'localhost:4321'
,
:
'My Server'
}
]
)
;
}
)
;
test
(
'keys a config-less SSH entry by user@host:port, mirroring computeSSHConnectionKey'
,
(
)
=>
{
const
=
collectRemoteAgentHostLocationTargets
(
[
sshEntryWithoutAlias
(
'My Server'
,
'localhost:4321'
,
'alice'
,
'myserver.example.com'
,
2222
)
]
,
[
]
,
)
;
.
deepStrictEqual
(
,
[
{
:
'alice@myserver.example.com:2222'
,
:
'localhost:4321'
,
:
'My Server'
}
]
)
;
}
)
;
test
(
'includes one target per cached tunnel, keyed with the tunnel address prefix'