Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'matches pull requests by number, title, and author'
,
(
)
=>
{
const
=
pullRequest
(
42
,
{
:
'Improve pull request picker'
}
)
;
.
deepStrictEqual
(
{
number
:
pullRequestMatchesQuery
(
,
'#42'
)
,
:
pullRequestMatchesQuery
(
,
'request picker'
)
,
:
pullRequestMatchesQuery
(
,
'AUTHOR'
)
,
:
pullRequestMatchesQuery
(
,
'unrelated'
)
,
}
,
{
number
:
true
,
:
true
,
:
true
,
:
false
,
}
)
;
}
)
;
test
(
'only makes same-repository pull requests without existing sessions available'
,
(
)
=>
{
const
=
{
:
new
Set
(
[
1
]
)
,
:
new
Set
(
[
'feature-2'
]
)
}
;
.
deepStrictEqual
(
[
pullRequest
(
1
)
,
pullRequest
(
2
)
,
pullRequest
(
3
,
{
:
true
}
)
,
pullRequest
(
4
)
,
]
.
map
(
=>
isPullRequestAvailable
(
,
)
)
,
[
false
,
false
,
false
,
true
,
]
)
;
}
)
;
test
(
'merges viewer-group results into the loaded catalog without dropping either set'
,
(
)
=>
{
const
=
mergePullRequestSummaries
(
[
pullRequest
(
1
)
,
pullRequest
(
2
)
,
]
,
[
pullRequest
(
3
,
{
:
true
}
)
,
pullRequest
(
2
,
{
:
true
}
)
,
]
)
;
.
deepStrictEqual
(
.
map
(
=>
(
{
number
:
.
number
,
:
.
,
:
.
,
}
)
)
,
[
{
number
:
1
,
:
false
,
:
false
}
,
{
number
:
2
,
:
false
,
:
true
}
,
{
number
:
3
,
:
true
,
:
false
}
,
]
)
;
}
)
;
test
(
'bootstrap prompt forbids tools and file operations'
,
(
)
=>
{
.
strictEqual
(
createPullRequestBootstrapPrompt
(
pullRequest
(
42
,
{
:
'Improve pull request picker'
}
)
)
,
'Initialize this session for pull request #42. The attached JSON is a complete pull request snapshot. For future questions about this pull request, use the attached snapshot as the primary source and do not fetch pull request data or run tools unless the user explicitly asks for refreshed information or the requested information is absent from the snapshot. Do not inspect or modify files, use tools, or take any other action until the user sends a visible follow-up request. Reply only with "Ready".'
,
)
;
}
)
;
test
(
'creates session metadata with the selected pull request identity'
,
(
)
=>
{
.
deepStrictEqual
(
readSessionGitHubState
(
createPullRequestSessionMetadata
(
'microsoft'
,
'vscode'
,
pullRequest
(
42
,
{
:
'feature'
}
)
)
)
,
{
:
'microsoft'
,
:
'vscode'
,
:
[
'https://github.com/microsoft/vscode/pull/42'
]
,
:
'feature'
,
}
,
)
;
}
)
;
test
(
'creates a transcript context attachment containing the PR snapshot as JSON'
,
(
)
=>
{
const
=
createPullRequestContextAttachment
(
{
:
'owner'
,
:
'repo'
,
number
:
42
,
:
'https://github.com/owner/repo/pull/42'
,
:
'Improve sessions'
,
:
'Description'
,
:
'author'
,
:
false
,
:
'main'
,
:
'feature'
,
:
'feature'
,
:
'2026-01-01T00:00:00Z'
,
:
'@@ -1 +1 @@'
,
:
[
]
,
}
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
:
.
,
:
.
?.
,
:
.
.
toString
(
)
,
:
JSON
.
parse
(
.
??
''
)
,
}
,
{
:
'transcriptContext'
,
:
'#42 Improve sessions'
,
:
'#42 Improve sessions'
,
:
'git-pull-request'
,
:
'https://github.com/owner/repo/pull/42'
,
:
{
:
'Use this snapshot as the primary source for questions about the pull request. Do not fetch pull request data or run tools unless the user explicitly asks for refreshed information or the requested information is absent from this snapshot.'
,
:
'owner'
,
:
'repo'
,
number
:
42
,
:
'https://github.com/owner/repo/pull/42'
,
:
'Improve sessions'
,
:
'Description'
,
:
'author'
,
:
false
,
:
'main'
,
:
'feature'
,
:
'feature'
,
:
'2026-01-01T00:00:00Z'
,
:
'@@ -1 +1 @@'
,
:
[
]
,
}
,
}
)
;
}
)
;
test
(
'shows the provisional session before configuration starts'
,
async
(
)
=>
{
const
=
URI
.
parse
(
'test:///session'
)
;
const
=
new
class
extends
mock<ISession>
(
)
{
readonly
=
;
}
(
)
;
const
=
new
DeferredPromise<void>
(
)
;
const
:
string
[
]
=
[
]
;
const
=
createAndOpenPullRequestSession
(
async
=>
{
.
push
(
'create'
)
;
onSessionCreated
(
)
;
.
push
(
'configureWorktree'
)
;
await
.
;
.
push
(
'commit'
)
;
return
;
}
,
=>
{
.
push
(
`show:${openedResource.toString()}`
)
;
}
,
(
)
=>
{
.
push
(
'hidePicker'
)
;
}
,
)
;
await
Promise
.
resolve
(
)
;
const
=
[
...
]
;
.
complete
(
)
;
const
=
await
;
.
deepStrictEqual
(
{
,
,
:
?.
.
toString
(
)
,
}
,
{
:
[
'create'
,
`show:${resource.toString()}`
,
'hidePicker'
,
'configureWorktree'
]
,
:
[
'create'
,
`show:${resource.toString()}`
,
'hidePicker'
,
'configureWorktree'
,
'commit'
]
,
:
.
toString
(
)
,
}
)
;
}
)
;
test
(
'collects existing pull requests from matching metadata and repository-scoped branches'