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 { ChildProcess, fork } from 'child_process';
import { cp, lstat, mkdir, readFile, readdir, realpath, rename, rm, stat, writeFile } from 'fs/promises';
import { raceTimeout } from '../../../../base/common/async.js';
import { Schemas } from '../../../../base/common/network.js';
import { createRequire } from 'module';
import { mkdirSync } from 'fs';
import userInfo
fileURLToPath
WebSocket
CapiReplayProxy
dirname resolve resolvePath
ContentEncoding
ResourceType
ResourceWriteMode
SubscribeResult
ActionType
SessionAddedParams
MessageKind buildDefaultChatUri mergeSessionWithDefaultChat parseDefaultChatUri
AgentHostCodexAgentBinaryArgsEnvVar AgentHostCodexAgentCodexHomeEnvVar AgentHostCodexAgentEnabledEnvVar
AhpErrorCodes
isJsonRpcNotification
isJsonRpcRequest
isJsonRpcResponse
JsonRpcErrorCodes
ProtocolError
AhpSnapshotRecorder
recordAhpSurface
isCI isWindows
killTree
createIsolatedProviderEnvironment
processenv
result
err Error
isWindows
createResourceWatch CreateResourceWatchParams
resourceRequest ResourceRequestParams
resourceRead ResourceReadParams
resourceList ResourceListParams
resourceResolve ResourceResolveParams
resourceWrite ResourceWriteParams
resourceMkdir ResourceMkdirParams
resourceDelete ResourceDeleteParams
resourceMove ResourceMoveParams
resourceCopy ResourceCopyParams
createResourceWatch CreateResourceWatchResult
resourceRequest ResourceRequestResult
resourceRead ResourceReadResult
resourceList ResourceListResult
resourceResolve ResourceResolveResult
resourceWrite ResourceWriteResult
resourceMkdir ResourceMkdirResult
resourceDelete ResourceDeleteResult
resourceMove ResourceMoveResult
resourceCopy ResourceCopyResult
method ReverseRequestMethod
uri
_ws WebSocket
_ahpSnapshot
_nextId
_pendingCalls
_notifications AhpNotification
_notifWaiters n AhpNotification n AhpNotification err Error
_nextWatchId
_closed
_servedReverseRequests IServedReverseRequest
port
_takeReplayError Error
_setWorkingDirectory workingDirectory
_ws
resolve reject
_ws
_ws data Buffer
text data data data
msg text ProtocolMessage
_ahpSnapshot msg
msg
_ws reject
msg ProtocolMessage
msg
pending _pendingCallsmsgid
pending
_pendingCallsmsgid
errResp msg JsonRpcErrorResponse
errResperror
pending errResperrorcode errResperrormessage errResperrordata
pendingmsg JsonRpcSuccessResponseresult
msg
msgmethod
msg
msg
notif msg
notifmethod
notifmethod
envelope notifparams ActionEnvelope
envelopeactiontype
_notificationsnotif
msg JsonRpcRequest
msgmethod
params msgparams uri source
_servedReverseRequests method msgmethod uri paramsuri paramssource
result msgmethod msgparams ReverseRequestParamsByMethodReverseRequestMethod
response JsonRpcSuccessResponse jsonrpc id msgid result
_ahpSnapshot response
_wsresponse
error
protocolError error
response JsonRpcErrorResponse
jsonrpc
id msgid
error
code protocolErrorcode
message protocolErrormessage
data protocolErrordata
_ahpSnapshot response
_wsresponse
error ProtocolError
error
error
errorCodeValue error Objecterror value
errorCode errorCodeValue errorCodeValue
message error errormessage error
errorCode
AhpErrorCodesNotFound message
AhpErrorCodesPermissionDenied message
AhpErrorCodesAlreadyExists message
AhpErrorCodesConflict message
JsonRpcErrorCodesInternalError message
method method ReverseRequestMethod
method
method params ResourceRequestParams ResourceRequestResult
method params CreateResourceWatchParams CreateResourceWatchResult
method params ResourceReadParams ResourceReadResult
method params ResourceListParams ResourceListResult
method params ResourceResolveParams ResourceResolveResult
method params ResourceWriteParams ResourceWriteResult
method params ResourceMkdirParams ResourceMkdirResult
method params ResourceDeleteParams ResourceDeleteResult
method params ResourceMoveParams ResourceMoveResult
method params ResourceCopyParams ResourceCopyResult
method ReverseRequestMethod
params ReverseRequestParamsByMethodReverseRequestMethod
ReverseRequestResultByMethodReverseRequestMethod
method ReverseRequestMethod
params ReverseRequestParamsByMethodReverseRequestMethod
ReverseRequestResultByMethodReverseRequestMethod
method
params CreateResourceWatchParams
params ResourceReadParams
params ResourceListParams
params ResourceResolveParams
params ResourceWriteParams
params ResourceMkdirParams
params ResourceDeleteParams
params ResourceMoveParams
params ResourceCopyParams
value
value
uri
urischeme Schemasfile
urifsPath
path
path
params ResourceReadParams ResourceReadResult
uri paramsuri
filePath uri
encoding paramsencoding ContentEncodingUtf8 ContentEncodingUtf8 ContentEncodingBase64
content filePath
data encoding ContentEncodingUtf8 content content
encoding
params ResourceListParams ResourceListResult
uri paramsuri
dirPath uri
entries dirPath withFileTypes
entries entriesentry
name entryname
type entry
params ResourceResolveParams ResourceResolveResult
requested paramsuri
requestedPath requested
followSymlinks paramsfollowSymlinks
lst requestedPath
lst followSymlinks
resolvedPath requestedPath
resolvedUri resolvedPath
resolvedStat resolvedPath
uri resolvedUri
type resolvedStat ResourceTypeDirectory ResourceTypeFile
size resolvedStat resolvedStatsize
mtime resolvedStatmtime
ctime resolvedStatctime
etag
st followSymlinks requestedPath lst
uri requested
type lst followSymlinks ResourceTypeSymlink st ResourceTypeDirectory ResourceTypeFile
size st stsize
mtime stmtime
ctime stctime
etag
params ResourceWriteParams ResourceWriteResult
uri paramsuri
filePath uri
dataEncoding paramsencoding ContentEncodingUtf8 ContentEncodingUtf8 ContentEncodingBase64
incoming Bufferparamsdata dataEncoding
mode paramsmode ResourceWriteModeTruncate
position Math paramsposition
createOnly paramscreateOnly
filePath recursive
existing createOnly filePath filePath Buffer
clampedStart Mathposition existinglength
next Buffer
mode
ResourceWriteModeAppend
insertAt Math existinglength Mathposition existinglength
next Bufferexisting insertAt incoming existinginsertAt
ResourceWriteModeInsert
next Bufferexisting clampedStart incoming existingclampedStart
ResourceWriteModeTruncate
next Bufferexisting clampedStart incoming
filePath next createOnly flag
params ResourceMkdirParams ResourceMkdirResult
uri paramsuri
dirPath uri
dirPath recursive
params ResourceDeleteParams ResourceDeleteResult
uri paramsuri
targetPath uri
targetPath recursive paramsrecursive force
params ResourceMoveParams ResourceMoveResult
source paramssource
destination paramsdestination
failIfExists paramsfailIfExists
failIfExists destination
AhpErrorCodesAlreadyExists
destination recursive
source destination
params ResourceCopyParams ResourceCopyResult
source paramssource
destination paramsdestination
failIfExists paramsfailIfExists
failIfExists destination
AhpErrorCodesAlreadyExists
destination recursive
source destination recursive force failIfExists errorOnExist failIfExists
_params CreateResourceWatchParams CreateResourceWatchResult
channel
method params
method
method
dispatched params DispatchActionParams
dispatchedactiontype
message JsonRpcNotification jsonrpc method params
_ahpSnapshot message
_wsmessage
params DispatchActionParams
params
method params timeoutMs
method
id _nextId
message JsonRpcRequest jsonrpc id method params
_ahpSnapshot message
resolve reject
timer
_pendingCallsid
timeoutMs
_pendingCallsid
result timer result
err timer err
_wsmessage
error
_pendingCallsid
timer
error
n AhpNotification timeoutMs AhpNotification
existing _notificationspredicate
existing
existing
resolve reject
waiter
predicate
resolve
reject
timer
timer
waiter
received _notificationsn
action nmethod nparams ActionEnvelopeactiontype
action nmethod
timeoutMs
_notifWaiterswaiter
i _notifWaiterslength i i
waiter _notifWaitersi
match _notificationswaiterpredicate
match
_notifWaitersi
waiter
waitermatch
waiter n AhpNotification n AhpNotification err Error
idx _notifWaiterswaiter
idx
_notifWaitersidx
predicate n AhpNotification AhpNotification
predicate _notificationspredicate _notifications
data
_wsdata
timeoutMs
resolve reject
timer
timeoutMs
data Buffer
text data data data
text
timer
_ws onMsg
_ws onMsg
_closed
_closed
w _notifWaiters
w
w
_notifWaiterslength
p _pendingCalls
p
_pendingCalls
_ws
_notificationslength
IServedReverseRequest
_servedReverseRequests
_servedReverseRequestslength
_ahpSnapshot
normalization IAhpSnapshotNormalization
_ahpSnapshotnormalization
workingDirectory
_setWorkingDirectoryworkingDirectory
_ahpSnapshot
options IAhpSnapshotOptions
_ahpSnapshotoptions
Error
_takeReplayError
process ChildProcess
port
mockLlm IMockLlmServerHandleWithLog
capiReplay CapiReplayProxy
isCI isWindows
server IServerHandle
serverProcess serverprocess
serverProcess serverProcessexitCode serverProcesssignalCode
serverExit resolve
serverProcess onExit
serverProcessexitCode serverProcesssignalCode
serverProcess onExit
serverProcessstdin
serverExit
serverProcessexitCode serverProcesssignalCode
pid serverProcesspid
pid
pid
error
serverProcessexitCode serverProcesssignalCode
error
serverExit
server IServerHandle
serverProcess serverprocess
serverProcess serverProcessexitCode serverProcesssignalCode
pid serverProcesspid
pid
serverExit resolve
serverProcess onExit
serverProcessexitCode serverProcesssignalCode
serverProcess onExit
pid
error
serverProcessexitCode serverProcesssignalCode
error
serverExit
url
getRequests
logMessages
port options logger msg verbose captureRequests IMockLlmServerHandle
id definition
id
definition
normalTimeoutMs extendedTimeoutMs
isCI isWindows extendedTimeoutMs normalTimeoutMs
environment NodeJSProcessEnv NodeJSProcessEnv
childEnvironment environment
coveragePath process
coveragePath recursive
childEnvironment coveragePath
childEnvironment
childEnvironment
mockUrl copilotPlan
Buffer
token
expires_at MathDate
refresh_in
sku copilotPlan
individual
isNoAuthUser
copilot_plan copilotPlan
organization_login_list
endpoints api mockUrl proxy mockUrl
scenarios IMockScenario IMockLlmServerHandleWithLog
mockServerPath metaurl
nodeRequire metaurl
mockModule mockServerPath IMockLlmServerModule
mockModule
type
turns kind
scenario scenarios
mockModulescenarioid scenariodefinition
messages
serverHandle mockModule msg messagesmsg verbose captureRequests
serverHandle logMessages messages
options quiet userDataDir env NodeJSProcessEnv startupTimeoutMs IServerHandle
resolve reject
serverPath metaurl
args
optionsquiet
args
optionsuserDataDir
args optionsuserDataDir
child serverPath args
stdio
env processenv optionsenv
timer
child
optionsstartupTimeoutMs
childstdout data Buffer
text data
match text
match
timer
process child port match
childstderr
child err
timer
err
child code
timer
options homeDir claudeSdkRoot codexSdkRoot codexHomeDir codexAgentEnabled mockLlm userDataDir logLevel env NodeJSProcessEnv capiReplay fixturePath mode CapiReplayMode workDir real allowPosixCommands allowStaleRecordedRequest recordingModelResponse ICapiReplayResponse existingCapiReplay CapiReplayProxy mockScenarios IMockScenario IServerHandle
realCapture optionscapiReplayreal
mockLlmServer optionsmockLlm optionscapiReplay realCapture optionsmockScenarios
capiReplayProxy optionsexistingCapiReplay
capiReplayProxy optionscapiReplay
optionscapiReplay capiReplayProxy
capiReplayProxy realCapture
fixturePath optionscapiReplayfixturePath
mode optionscapiReplaymode
workDir optionscapiReplayworkDir
allowPosixCommands optionscapiReplayallowPosixCommands
allowStaleRecordedRequest optionscapiReplayallowStaleRecordedRequest
recordingModelResponse optionscapiReplayrecordingModelResponse
homeDir optionshomeDir
userName username
githubUpstreamUrl processenv
capiUpstreamUrl processenv
fixturePath optionscapiReplayfixturePath
mode optionscapiReplaymode
workDir optionscapiReplayworkDir
allowPosixCommands optionscapiReplayallowPosixCommands
allowStaleRecordedRequest optionscapiReplayallowStaleRecordedRequest
homeDir optionshomeDir
userName username
upstreamUrl mockLlmServerurl
capiReplayProxy
capiUrl capiReplayProxyurl mockLlmServerurl
resolve reject
serverPath metaurl
args
optionsclaudeSdkRoot
args optionsclaudeSdkRoot
optionscodexSdkRoot
args optionscodexSdkRoot
optionsuserDataDir
args optionsuserDataDir
optionslogLevel
args optionslogLevel
childEnv
optionshomeDir processenv optionsenv
optionscodexHomeDir AgentHostCodexAgentCodexHomeEnvVar optionscodexHomeDir
optionscodexSdkRoot AgentHostCodexAgentEnabledEnvVar optionscodexAgentEnabled
optionscodexSdkRoot optionscapiReplay AgentHostCodexAgentBinaryArgsEnvVar
realCapture
capiUrl
capiUrl
capiUrl
mockLlmServer
capiUrl
capiUrl
capiUrl
capiUrl
child ChildProcess
child serverPath args
stdio
env childEnv
err
mockLlmServer
capiReplayProxy
err
mockClosed
closeMockServer
mockClosed mockLlmServer
mockClosed
capiReplayProxy
mockLlmServer
child
timer
child
childstdout data Buffer
text data
match text
match
timer
process child port match mockLlm mockLlmServer capiReplay capiReplayProxy
childstderr
child err
timer
err
child code
timer
sessionCounter
scheme path
sessionUri
sessionUri
n AhpNotification actionType
nmethod
envelope nparams ActionEnvelope
envelopeactiontype actionType
n AhpNotification ActionEnvelope
nparams ActionEnvelope
c TestProtocolClient clientId workingDirectory
channel protocolVersions clientId
channel provider workingDirectories workingDirectory workingDirectory
notif cn
nmethod
realSessionUri notifparams SessionAddedParamssummaryresource
c channel realSessionUri
c channel realSessionUri
c
realSessionUri
c TestProtocolClient session turnId text clientSeq
c
channel session
clientSeq
action
type ActionTypeChatTurnStarted
turnId
startedAt
message text origin kind MessageKindUser
c TestProtocolClient sessionUri ISessionWithDefaultChat
owningSession sessionUri sessionUri
chatUri sessionUri sessionUri sessionUri
sessionSnap c channel owningSession
chatSnap c channel chatUri
sessionSnapsnapshotstate SessionState
chatSnapsnapshotstate ChatState