Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Returns a no-op {@link IAgentHostGitService} suitable for tests that
* exercise the {@link AgentService} but don't care about git state.
* Tests that DO care about git state should pass their own implementation.
*/
export
function
createNoopGitService
(
)
:
import
(
'../../common/agentHostGitService.js'
)
.
{
return
{
:
undefined
,
getCurrentBranch
:
async
(
)
=>
undefined
,
getDefaultBranch
:
async
(
)
=>
undefined
,
getBranch
:
async
(
)
=>
undefined
,
getRefs
:
async
(
)
=>
[
]
,
getBranches
:
async
(
)
=>
[
]
,
getRepositoryRoot
:
async
(
)
=>
undefined
,
getWorktreeRoots
:
async
(
)
=>
[
]
,
addWorktree
:
async
(
)
=>
{
}
,
copyWorktreeIncludeFiles
:
async
(
)
=>
{
}
,
addExistingWorktree
:
async
(
)
=>
{
}
,
removeWorktree
:
async
(
)
=>
{
}
,
branchExists
:
async
(
)
=>
false
,
createBranch
:
async
(
)
=>
{
}
,
hasUncommittedChanges
:
async
(
)
=>
false
,
commitAll
:
async
(
)
=>
{
}
,
mergeBranch
:
async
(
)
=>
''
,
restore
:
async
(
)
=>
{
}
,
hasUpstream
:
async
(
)
=>
false
,
pull
:
async
(
)
=>
{
}
,
push
:
async
(
)
=>
{
}
,
getSessionGitState
:
async
(
)
=>
undefined
,
computeSessionFileDiffs
:
async
(
)
=>
undefined
,
resolveBranchBaselineCommit
:
async
(
)
=>
undefined
,
showBlob
:
async
(
)
=>
undefined
,
captureWorkingTreeAsTree
:
async
(
)
=>
undefined
,
commitTree
:
async
(
)
=>
undefined
,
updateRef
:
async
(
)
=>
{
}
,
deleteRefs
:
async
(
)
=>
{
}
,
revParse
:
async
(
)
=>
undefined
,
overlayPathIntoTree
:
async
(
)
=>
undefined
,
diffTreePaths
:
async
(
)
=>
undefined
,
computeFileDiffsBetweenRefs
:
async
(
)
=>
undefined
,
getFetchRemoteUrls
:
async
(
)
=>
undefined
,
getUntrackedPaths
:
async
(
)
=>
[
]
,
getBranchDiffSafetyInfo
:
async
(
)
=>
undefined
,
getDiffPatchBetweenRefs
:
async
(
)
=>
undefined
,
}
;
}
/**
* Returns a no-op {@link IAgentHostChangesetService} for tests that need to
* inject the changeset service but don't exercise changeset computation.
* Individual methods can be reassigned by callers that want to spy on them.
*/
export
function
createNoopChangesetService
(
)
:
import
(
'../../common/agentHostChangesetService.js'
)
.
{
return
{
:
undefined
,
registerStaticChangesets
:
(
)
=>
{
}
,
restoreStaticChangeset
:
(
)
=>
{
}
,
parsePersistedStaticChangesets
:
(
)
=>
(
{
}
)
,
applyPersistedStaticChangesets
:
(
)
=>
{
}
,
restorePersistedStaticChangesets
:
(
)
=>
(
{
}
)
,
persistChangesSummary
:
(
)
=>
{
}
,
getListMetadataKeys
:
(
)
=>
undefined
,
computeListEntryChanges
:
(
)
=>
undefined
,
isStaticChangesetComputeActive
:
(
)
=>
false
,
refreshChangesetCatalog
:
(
)
=>
{
}
,
refreshBranchChangeset
:
(
)
=>
{
}
,
refreshSessionChangeset
:
(
)
=>
{
}
,
onWorkingDirectoryAvailable
:
(
)
=>
{
}
,
recomputeSubscribedChangesets
:
(
)
=>
{
}
,
computeTurnChangeset
:
async
=>
,
computeCompareTurnsChangeset
:
async
=>
,
computeUncommittedChangeset
:
async
=>
,
onToolCallEditsApplied
:
(
)
=>
{
}
,
onTurnComplete
:
(
)
=>
{
}
,
onSessionTruncated
:
(
)
=>
{
}
,
}
;
}
export
function
createNoopGitStateService
(
)
:
{
return
{
:
undefined
,
:
.
,
:
.
,
refreshSessionGitState
:
async
(
:
string
,
?
:
URI
)
=>
{
}
,
resolveSessionBaseBranchName
:
async
(
:
string
)
=>
undefined
,
setSessionGitHubState
:
async
(
:
string
,
:
)
=>
{
}
,
recordSessionMerge
:
async
(
:
string
,
:
string
)
=>
{
}
,
attachSessionGitHubPullRequest
:
async
(
:
string
,
?
:
URI
)
=>
{
}
,
}
;
}
function
createReference<T>
(
:
T
)
:
<
T
>
{
return
{
,
dispose
:
(
)
=>
{
}
,
}
;
}
/**
* Recording {@link IAgentHostCheckpointService} double that captures
* {@link captureBaselineCheckpoint} invocations (session + resolved working
* directories) so tests can assert baseline capture on the fresh materialize
* path — and its absence on resume / subsequent sends. All other methods are
* no-ops, mirroring `NULL_CHECKPOINT_SERVICE`.
*/