ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это 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 type WebSocket from 'ws';
import type { AnyAuthMethod, AuthenticationType, ConnectConfig } from 'ssh2';
import { promises as fsp } from 'fs';
import * as os from 'os';
import * as cp from 'child_process';
import { dirname, join, isAbsolute, basename } from '../../../base/common/path.js';
import { Emitter, Event } from
Disposable DisposableMap toDisposable
raceTimeout
CancellationError
localize
ILogService
IProductService
ITelemetryService TelemetryConfiguration
ISSHRemoteAgentHostMainService
SSHAuthMethod
computeSSHConnectionKey
SSHHostKeyDeniedError
computeHostKeyFingerprint
matchKnownHosts
parseKnownHosts
readHostKeyType
RemoteAgentHostLocationPreference
IRelayMessage
AgentHostTelemetryLevelEnvKey
telemetryLevelToAgentHostValue
isSameAgentHostEndpointIdentity
buildAgentHostBaseCommand
buildAgentHostSpawnCommand
buildAgentRelayCommand
extractAgentHostWebSocketURL
filterLiveAgentHostEndpoints
getRemoteCLIDataDir
redactToken
resolveRemotePlatform
runAgentEndpoints
shellEscape
validateAgentHostTelemetryLevel
waitForNewStandaloneEndpoint
ensureRemoteAgentHostCliInstalled
parseSSHConfigHostEntries parseSSHGOutput stripSSHComment
removeAnsiEscapeCodes
ReadWriteStream
event data Buffer
event code
event err Error
event args
stderr event data Buffer
event SSHClient
event err Error SSHClient
event SSHClient
event keys Buffer type SSHClient
event SSHClient
event err Error SSHClient
config ConnectConfig
command err Error stream SSHChannel SSHClient
srcIP srcPort dstIP dstPort err Error channel SSHChannel SSHClient
ReturnType setTimeout
type username key Buffer keyPath encrypted
type username agent
type username password
type username
attempt SSHAuthAttempt
attempttype
name
instructions
prompts ISSHKeyboardInteractivePrompt
responses
keyPath
passphrase
attempt SSHAuthAttempt
kbiHandler SSHKeyboardInteractivePromptHandler
keyPassphraseHandler SSHKeyPassphrasePromptHandler
next AnyAuthMethod
AnyAuthMethod
attempttype
keyPath _kp encrypted _encrypted payload attempt
attemptencrypted
keyPassphraseHandler
attemptkeyPath passphrase
passphrase
payload passphrase
payload
attempt
kbiHandler
type
username attemptusername
name instructions _lang prompts finish
normalized promptsp prompt pprompt echo pecho
name instructions normalized responses responses
attempt SSHAuthAttempt methodsLeft AuthenticationType
methodsLeft
protocolMethod AuthenticationType attempttype attempttype
methodsLeftprotocolMethod
attempts SSHAuthAttempt
logService ILogService
kbiHandler SSHKeyboardInteractivePromptHandler
keyPassphraseHandler SSHKeyPassphrasePromptHandler
methodsLeft AuthenticationType partialSuccess next AnyAuthMethod
index
methodsLeft _partialSuccess callback
index attemptslength
attempt attemptsindex
attempt methodsLeft
logService
method attempt kbiHandler keyPassphraseHandler callback
method
attempttype attemptencrypted keyPassphraseHandler
logService
logService
logService
method
logService
buffer Buffer offset value offset
offset bufferlength
length bufferoffset
valueOffset offset
nextOffset valueOffset length
nextOffset bufferlength
value buffer valueOffset nextOffset offset nextOffset
key Buffer
text key
text text
openSSHKey text
openSSHKey
data BufferopenSSHKey
magic Buffer
datalength magiclength data magiclengthmagic
cipher data magiclength
cipher ciphervalue
client SSHClient command opts ignoreExitCode stdout stderr code
resolve reject
clientcommand err Error stream SSHChannel
err
err
stdout
stderr
settled
error Error code
settled
settled
error
error
code optsignoreExitCode
stdout stderr code code
stream data Buffer stdout data
streamstderr data Buffer stderr data
stream streamErr Error streamErr
stream code code
client SSHClient command opts ignoreExitCode stdout stderr code
command opts client command opts
client SSHClient
logService ILogService
cliBin
cliDataDir
commandOverride
telemetryLevel TelemetryConfiguration
port connectionToken pid stream SSHChannel
resolve reject
commandOverride cliBin cliDataDir
validatedTelemetryLevel telemetryLevel
baseCmd commandOverride cliBin cliDataDir validatedTelemetryLevel
cmd
logService
clientcmd err Error stream SSHChannel
err
err
resolved
outputBuf
pid
timeout
resolved
resolved
clean outputBuf
pid
pidMatch clean
pidMatch
pid pidMatch
logService
resolved
match clean
match
resolved
timeout
logService
port matchport connectionToken matchtoken pid stream
streamstderr data Buffer
text data
outputBuf text
logService
stream data Buffer
text data
outputBuf text
logService
stream streamErr Error
resolved
resolved
timeout
streamErr
stream code
resolved
resolved
timeout
client SSHClient dstHost dstPort SSHChannel
resolve reject
client dstHost dstPort err Error channel SSHChannel
err
err
channel
client SSHClient command logService ILogService SSHChannel
resolve reject
clientcommand err Error stream SSHChannel
err
err
streamstderr data Buffer
logService
stream
nativeRequire NodeJSRequire
channel SSHChannel
urlHost
urlPort
connectionToken
logService ILogService
data
data
resolve reject
WebSocket
url
connectionToken
url
ws url createConnection channel WebSocketClientOptions
ws
logService
data
wsreadyState ws
wsdata
ws
ws data WebSocketRawData
data
Bufferdata
data
Buffer data
data
ws onClose
ws wsErr
logService
wsErr
nativeRequire NodeJSRequire
client SSHClient
endpoint AgentHostEndpointAddress
relayCliBin
relayCliDataDir
relayInstanceId
relayUserDataPath
connectionToken
logService ILogService
data
data
channel SSHChannel
urlHost
urlPort
endpointtype
channel client endpointhost endpointport
urlHost endpointhost
urlPort endpointport
command relayCliBin relayCliDataDir relayInstanceId relayUserDataPath
logService
channel client command logService
urlHost
urlPort
nativeRequire channel urlHost urlPort connectionToken logService onMessage onClose
config ISSHAgentHostConfig ISSHAgentHostConfigSanitized
password _p privateKeyPath _k sanitized config
sanitized
_onDidClose
onDidClose _onDidCloseevent
config ISSHAgentHostConfigSanitized
_closed
_sshClientDetached
_logService
err Error
_logService
fullConfig ISSHAgentHostConfig
connectionId
address
name
connectionToken
endpoint AgentHostEndpointAddress
serverType AgentHostServerType
instanceId
lifecycle SSHAgentHostLifecycle
cliBin
cliDataDir
userDataPath
sshClient SSHClient
_relay data
_remoteStream SSHChannel
_logService ILogService
config fullConfig
_closed
_closed
_relay
_sshClientDetached
_remoteStream
sshClient
_onDidClose
_onDidClose
sshClient _sshCloseListener
sshClient _sshErrorListener
_sshClientDetached
sshClient _sshCloseListener
sshClient _sshErrorListener
data
_relaydata
_serviceBrand
_onDidChangeConnections
onDidChangeConnections Event _onDidChangeConnectionsevent
_onDidCloseConnection
onDidCloseConnection Event _onDidCloseConnectionevent
_onDidReportConnectProgress
onDidReportConnectProgress EventISSHConnectProgress _onDidReportConnectProgressevent
_onDidRelayMessage
onDidRelayMessage EventIRelayMessage _onDidRelayMessageevent
_onDidRelayClose
onDidRelayClose Event _onDidRelayCloseevent
_onDidRequestKeyboardInteractive
onDidRequestKeyboardInteractive EventISSHKeyboardInteractiveRequest _onDidRequestKeyboardInteractiveevent
_onDidCancelKeyboardInteractive
onDidCancelKeyboardInteractive Event _onDidCancelKeyboardInteractiveevent
_onDidRequestEndpointSelection
onDidRequestEndpointSelection EventISSHEndpointSelectionRequest _onDidRequestEndpointSelectionevent
_onDidCancelEndpointSelection
onDidCancelEndpointSelection Event _onDidCancelEndpointSelectionevent
_onDidRequestHostKeyVerification
onDidRequestHostKeyVerification EventISSHHostKeyVerificationRequest _onDidRequestHostKeyVerificationevent
_onDidCancelHostKeyVerification
onDidCancelHostKeyVerification Event _onDidCancelHostKeyVerificationevent
_onDidAnnounceHostKeys
onDidAnnounceHostKeys EventISSHHostKeysAnnouncement _onDidAnnounceHostKeysevent
_pendingKbiRequests
_kbiRequestCounter
_pendingEndpointSelections
_endpointSelectionCounter
_pendingHostKeyRequests onUserDenied
_hostKeyRequestCounter
_connections
_nativeRequire NodeJSRequire
relayCreationTimeoutMs
_logService ILogService
_productService IProductService
_telemetryService ITelemetryService
NodeJSRequire
_nativeRequire
nodeModule
_nativeRequire nodeModulemetaurl
_nativeRequire
config ISSHAgentHostConfig replaceRelay ISSHConnectResult
connectionKey config
existing _connectionsconnectionKey
existing
replaceRelay
_logService
sshClient endpoint connectionToken serverType instanceId lifecycle cliBin cliDataDir userDataPath existing
_connectionsconnectionKey
existing
existing
connectionId connectionKey
conn SSHConnection
timeoutMs relayCreationTimeoutMs
relay
sshClient endpoint cliBin cliDataDir instanceId userDataPath connectionToken
data _onDidRelayMessage connectionId data
conn
timeoutMs
relay
conn
config connectionId connectionKey configname
connectionToken endpoint serverType instanceId lifecycle cliBin cliDataDir userDataPath
sshClient relay
_logService
EventconnonDidClose
_connectionsconnectionKey conn
_connectionsconnectionKey
_onDidRelayCloseconnectionId
_onDidCloseConnectionconnectionId
_onDidChangeConnections
_connectionsconnectionKey conn
connectionId connconnectionId
address connaddress
name connname
connectionToken connconnectionToken
config connconfig
sshConfigHost configsshConfigHost
serverType connserverType
instanceId conninstanceId
primary
lifecycle connlifecycle
err
sshClient
_onDidRelayCloseconnectionId
_onDidCloseConnectionconnectionId
_onDidChangeConnections
err
connectionId existingconnectionId
address existingaddress
name existingname
connectionToken existingconnectionToken
config existingconfig
sshConfigHost configsshConfigHost
serverType existingserverType
instanceId existinginstanceId
primary
lifecycle existinglifecycle
_logService
displayHost configsshConfigHost
sshClient SSHClient
message
_onDidReportConnectProgress connectionKey message
sshClient config connectionKey
endpoint AgentHostEndpointAddress
connectionToken
serverType AgentHostServerType
instanceId
lifecycle SSHAgentHostLifecycle
cliBin
cliDataDir
userDataPath
agentStream SSHChannel
configremoteAgentHostCommand
_logService
result sshClient configremoteAgentHostCommand _effectiveTelemetryLevel
endpoint type host port resultport
connectionToken resultconnectionToken
agentStream resultstream
serverType
instanceId
lifecycle
stdout unameS sshClient
stdout unameM sshClient
platform unameS unameM
platform
_logService
cliBin sshClient platform reportProgress
cliDataDir _serverDataFolderName
exec sshClient
initial exec cliBin cliDataDir
userDataPath initialuserDataPath
live exec initialendpoints
editors livee etype
standalones livee etype
spawnDedicated IAgentHostEndpointMetadata
spawnCommand cliBin cliDataDir userDataPath _effectiveTelemetryLevel
_logService
spawnCommand ignoreExitCode err
_logService
exec cliBin cliDataDir userDataPath live
selectDedicated chosen IAgentHostEndpointMetadata lifecycle SSHAgentHostLifecycle
standaloneslength
chosen lifecycle
deterministic standalonesa b ainstanceIdbinstanceId
chosen deterministic lifecycle
selectEndpoint chosen IAgentHostEndpointMetadata lifecycle SSHAgentHostLifecycle
configpreferredAgentLocation
editorslength
deterministic editorsa b ainstanceIdbinstanceId
chosen deterministic lifecycle
configpreferredAgentLocation
configuserInitiated
editorslength
standaloneslength
chosen lifecycle
standaloneslength
chosen standalones lifecycle
selection sshClient connectionKey displayHost standalones
selectionkind
chosen lifecycle
found standalonese e selection
found
chosen found lifecycle
selection sshClient connectionKey displayHost live
selectionkind
chosen lifecycle
found livee e selection
found
chosen found lifecycle
selected
endpoint selectedchosenendpoint
connectionToken selectedchosenconnectionToken
serverType selectedchosentype
instanceId selectedchoseninstanceId
lifecycle selectedlifecycle
connectionId connectionKey
conn SSHConnection
relay data
relay
sshClient endpoint cliBin cliDataDir instanceId userDataPath connectionToken
data _onDidRelayMessage connectionId data
conn
relayErr
relayErrorMessage relayErr relayErrmessage relayErr
_logService
configremoteAgentHostCommand cliBin cliDataDir
sshClient cliBin cliDataDir userDataPath
rereadErr
_logService
address connectionKey
conn
config
connectionId
address
configname
connectionToken
endpoint
serverType
instanceId
lifecycle
cliBin
cliDataDir
userDataPath
sshClient
relay
agentStream
_logService
EventconnonDidClose
_connectionsconnectionKey conn
_connectionsconnectionKey
_onDidRelayCloseconnectionId
_onDidCloseConnectionconnectionId
_onDidChangeConnections
_connectionsconnectionKey conn
sshClient
_onDidChangeConnections
connectionId
address
name configname
connectionToken
config connconfig
sshConfigHost configsshConfigHost
serverType
instanceId
primary
lifecycle
err
sshClient
err
_logService err
err
host
key conn _connections
key host connconnectionId host
conn
connectionId message
conn _connections
connconnectionId connectionId
connmessage
sshConfigHost name remoteAgentHostCommand agentForward userInitiated preferredAgentLocation RemoteAgentHostLocationPreference ISSHConnectResult
_logService
resolved sshConfigHost
privateKeyPath
resolvedidentityFilelength SSHRemoteAgentHostMainServiceresolvedidentityFile
privateKeyPath resolvedidentityFile
_logService
host resolvedhostname
port resolvedport resolvedport
username resolveduser sshConfigHost
authMethod SSHAuthMethodAgent
privateKeyPath
identityAgent resolvedidentityAgent
name
sshConfigHost
remoteAgentHostCommand
agentForward agentForward resolvedforwardAgent
userInitiated
preferredAgentLocation
configPath os
content fspconfigPath
content configPath
_logService
sshDir os
configPath sshDir
isPosix processplatform
fspsshDir recursive mode isPosix
err
_logService
err
fspconfigPath
handle fspconfigPath isPosix
handle
err
_logService
err
configPath
isWindows processplatform
userConfigPath os
systemConfigPath isWindows
processenv
result userConfigPath
fspsystemConfigPath
resultsystemConfigPath
result
host ISSHResolvedConfig
resolve reject
cp host timeout err stdout
err
config stdout
config
content configDir visited Set
seen visited
hosts
hostscontent
line content
trimmed line
trimmed trimmed
includeMatch trimmed
includeMatch
rawValue includeMatch
patterns rawValueBoolean
rawPattern patterns
pattern rawPattern os
resolvedPattern pattern pattern configDir pattern
seenresolvedPattern
seenresolvedPattern
stat fspresolvedPattern
stat
files fspresolvedPattern
file files
sub fspresolvedPattern file
hosts sub resolvedPattern seen
sub fspresolvedPattern
hosts sub resolvedPattern seen
dir resolvedPattern
base resolvedPattern
base
files fspdir
file files
regex base
regexfile
sub fspdir file
hosts sub dir seen
hosts
stdout ISSHResolvedConfig
stdout
config ISSHAgentHostConfig
connectionKey
SSHClient
port configport
connectConfig ConnectConfig
host confighost
port
username configusername
readyTimeout
keepaliveInterval
attempts config
_logService
displayHost configsshConfigHost
liveKbiRequests
cancelConnectFromKbi
armDeadline ms
wrapPromptFinish value value
armDeadline
value
kbiHandler SSHKeyboardInteractivePromptHandler attemptsa atype
name instructions prompts finish
armDeadline
requestId connectionKey displayHost displayHost configusername name instructions prompts finish cancelConnectFromKbi
liveKbiRequestsrequestId
keyPassphraseHandler SSHKeyPassphrasePromptHandler attemptsa atype aencrypted
keyPath finish
armDeadline
requestId
connectionKey displayHost
displayHost
configusername
prompt keyPath echo
responses responses
cancelConnectFromKbi
liveKbiRequestsrequestId
connectConfigauthHandler attempts _logService kbiHandler keyPassphraseHandler ConnectConfig
requestId liveKbiRequests
pending _pendingKbiRequestsrequestId
_pendingKbiRequestsrequestId
_onDidCancelKeyboardInteractiverequestId
pending
liveKbiRequests
configagentForward
agentSock config
agentSock
connectConfigagent agentSock
connectConfigagentForward
_logService
_logService
liveHostKeyRequests
hostKeyVerificationAborted
hostKeyDenied
hostKeyVerificationAborted
requestId liveHostKeyRequests
pending _pendingHostKeyRequestsrequestId
_pendingHostKeyRequestsrequestId
_onDidCancelHostKeyVerificationrequestId
pending
liveHostKeyRequests
connectConfig key Buffer permitted
connectionKey displayHost
displayHost
config
port
key
verify
requestId
liveHostKeyRequestsrequestId
armDeadline
hostKeyDenied
hostKeyVerificationAborted
armDeadline
client
resolve reject
settled
deadlineTimer IHandshakeDeadlineHandle
deadlineTimer
deadlineTimer
ms
settled
deadlineTimer ms
settled
settled
_logService
client
err Error endClient
settled
settled
endClient
client
err
_logService
client
client err Error
_logService
hostKeyDenied displayHost err
client
hostKeyDenied
displayHost
client keys Buffer type
connectionKey displayHost confighost port keys
clientconnectConfig
ms IHandshakeDeadlineHandle
onExpired ms
timer IHandshakeDeadlineHandle
timer
timer
SSHClient
nativeRequire
ssh2Module Client
SSHClient
config ISSHAgentHostConfig SSHAuthAttempt
attempts SSHAuthAttempt
username configusername
configauthMethod
SSHAuthMethodAgent
agentSock config
agentSock
attempts type username agent agentSock
explicitKeyPath configprivateKeyPath
explicitIsDefault explicitKeyPath SSHRemoteAgentHostMainServiceexplicitKeyPath
explicitKeyPath explicitIsDefault
explicit explicitKeyPath
explicit
attempts type username key explicit keyPath explicitKeyPath explicit encrypted
keyPath SSHRemoteAgentHostMainService_defaultKeyPaths
contents keyPath
contents
attempts type username key contents keyPath contents encrypted
attempts type username
SSHAuthMethodKeyFile
configprivateKeyPath
explicit configprivateKeyPath
explicit
configprivateKeyPath
attempts type username key explicit keyPath configprivateKeyPath explicit encrypted
SSHAuthMethodPassword
configpassword
attempts type username password configpassword
attempts
_defaultKeyPaths
keyPath
keyPath os
keyPath
normalized SSHRemoteAgentHostMainServicekeyPath
SSHRemoteAgentHostMainService_defaultKeyPathsp SSHRemoteAgentHostMainServicep normalized
processenv
config ISSHAgentHostConfig
configidentityAgent
configidentityAgent
identityAgent
trimmed identityAgent
trimmed trimmed
trimmed
trimmed
envMatch trimmed
envMatchgroups processenvenvMatchgroupsbraced envMatchgroupsplain
trimmed os
connectionKey
displayHost
username
name
instructions
prompts ISSHKeyboardInteractivePrompt
responses
requestId
settled
responses
settled
settled
_pendingKbiRequestsrequestId
responses
_pendingKbiRequestsrequestId finish finishOnce cancelConnect
_logService
_onDidRequestKeyboardInteractive
requestId
connectionKey
displayHost
username
name
instructions
prompts promptsp prompt pprompt echo pecho
requestId
requestId responses
pending _pendingKbiRequestsrequestId
pending
_logService
responses
pending
pending
pendingresponses
host entries IKnownHostsEntry strictHostKeyChecking SSHStrictHostKeyChecking
resolved ISSHResolvedConfig
resolved host
err
_logService
paths
resolveduserKnownHostsFiles
resolvedglobalKnownHostsFiles
entries IKnownHostsEntry
path paths
expanded path os
entries fspexpanded
entries strictHostKeyChecking resolvedstrictHostKeyChecking
connectionKey
displayHost
config ISSHAgentHostConfig
port
key Buffer
permitted
requestId
settled
prompted
permitted
settled
settled
prompted
permitted
keyType key
keyType
_logService
fingerprint key
entries strictHostKeyChecking configsshConfigHost confighost
_logService
knownHostsMatch entries confighost port keyType key
_logService
requestId
prompted
onUserDenied requestId
_pendingHostKeyRequestsrequestId verify verifyOnce onUserDenied
_onDidRequestHostKeyVerification
requestId
connectionKey
displayHost
host confighost
port
keyType
fingerprint
knownHostsMatch
strictHostKeyChecking strictHostKeyChecking
userInitiated configuserInitiated
err
_logService err
requestId trusted
pending _pendingHostKeyRequestsrequestId
pending
_logService
_pendingHostKeyRequestsrequestId
_logService
trusted
pendingonUserDenied
pendingtrusted
connectionKey
host
port
keys Buffer type
announced keyType fingerprint
key keys
blob key
keyType blob
keyType keyType keytype
announced keyType fingerprint blob
err
_logService
announcedlength
_logService
_onDidAnnounceHostKeys connectionKey host port keys announced
client SSHClient
connectionKey
displayHost
candidates IAgentHostEndpointMetadata
ISSHEndpointSelection
requestId
resolve reject
settled
settled
settled
_pendingEndpointSelectionsrequestId
client onClientUnavailable
client onClientUnavailable
_onDidCancelEndpointSelectionrequestId
client onClientUnavailable
client onClientUnavailable
_pendingEndpointSelectionsrequestId selection
settled
settled
client onClientUnavailable
client onClientUnavailable
selection
selection
_logService
_onDidRequestEndpointSelection
requestId
connectionKey
displayHost
candidates candidatesc ISSHEndpointCandidate type ctype pid cpid instanceId cinstanceId quality cquality endpoint cendpoint
requestId selection ISSHEndpointSelection
pending _pendingEndpointSelectionsrequestId
pending
_logService
_pendingEndpointSelectionsrequestId
selection
keyPath Buffer
resolved keyPath os
fspresolved
error
errorCode error NodeJSErrnoExceptioncode
errorCode errorCode
_logService error
_productServicequality
_productServiceserverDataFolderName
_productServicecommit
TelemetryConfiguration
_telemetryServicetelemetryLevel
client SSHClient cliBin cliDataDir commandOverride telemetryLevel TelemetryConfiguration
port connectionToken pid stream SSHChannel
client _logService cliBin cliDataDir commandOverride telemetryLevel
client SSHClient
endpoint AgentHostEndpointAddress
relayCliBin
relayCliDataDir
relayInstanceId
relayUserDataPath
connectionToken
data
data
nativeRequire
nativeRequire client endpoint relayCliBin relayCliDataDir relayInstanceId relayUserDataPath connectionToken _logService onMessage onClose
client SSHClient platform os arch message
client platform
serverDataFolderName _serverDataFolderName
quality _quality
commit _commit
logService _logService
logPrefix