Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
// Certain models just really want to pass incorrect input
if
(
(
.
input
as
unknown
as
Record
<
string
,
string
>
)
.
path
)
{
throw
new
Error
(
'The property "path" is not supported'
)
;
}
const
=
.
model
&&
(
await
this
.
endpointProvider
.
getChatEndpoint
(
.
model
)
)
;
const
=
?.
;
// The input _should_ be a pattern matching inside a workspace, folder, but sometimes we get absolute paths, so try to resolve them
const
=
new
WorkingDirectory
(
.
workingDirectory
,
this
.
workspaceService
)
;
const
=
inputGlobToPattern
(
.
input
.
query
,
,
)
;
void
this
.
sendSearchToolTelemetry
(
,
.
folderName
)
;
// try find text with a timeout of 20s
const
=
20_000
;
const
=
await
raceTimeoutAndCancellationError
(
(
)
=>
Promise
.
resolve
(
this
.
searchService
.
findFiles
(
.
patterns
,
{
:
true
}
,
)
)
,
,
,
'Timeout in searching files, try a more specific search pattern'
)
;
checkCancellation
(
)
;
const
=
.
input
.
maxResults
??
20
;
const
=
.
slice
(
0
,
)
;
// Render the prompt element with a timeout
const
=
await
renderPromptElementJSON
(
this
.
instantiationService
,
FindFilesResult
,
{
:
,
:
.
length
}
,
.
tokenizationOptions
,
)
;
const
=
new
ExtendedLanguageModelToolResult
(
[
new
LanguageModelPromptTsxPart
(
)
]
)
;
const
=
this
.
formatQueryLabel
(
,
.
input
.
query
)
;
.
toolResultMessage
=
.
length
===
0
?
new
MarkdownString
(
.
t
`Searched for files matching ${query}, no matches`
)
:
.
length
===
1
?
new
MarkdownString
(
.
t
`Searched for files matching ${query}, 1 match`
)
:
new
MarkdownString
(
.
t
`Searched for files matching ${query}, ${resultsToShow.length} matches`
)
;
.
toolResultDetails
=
;
return
;
}
private
async
sendSearchToolTelemetry
(
:
.
LanguageModelToolInvocationOptions
<
IFindFilesToolParams
>
,
:
string
|
undefined
)
:
Promise
<
void
>
{
const
=
.
model
&&
(
await
this
.
endpointProvider
.
getChatEndpoint
(
.
model
)
)
.
model
;
const
=
this
.
workspaceService
.
getWorkspaceFolders
(
)
.
length
>
1
;
const
=
.
input
.
query
;
/* __GDPR__
"findFilesToolInvoked" : {
"owner": "roblourens",
"comment": "Telemetry for the findFiles tool in multi-root workspaces",
"requestId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "The id of the current request turn." },
"model": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "The model that invoked the tool" },
"isMultiRoot": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Whether the workspace has multiple root folders" },
"queryScopedToFolder": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Whether the query was resolved to a specific workspace folder" },
"queryStartsWithFolderPath": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Whether the raw query starts with a workspace folder absolute path" },
"queryContainsFolderPath": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Whether the raw query contains a workspace folder absolute path anywhere" }
}
*/