Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'Whether the action was performed in an Agent Host-backed chat session.'
}
;
}
;
type
ChatVoteEvent
=
&
{
:
'up'
|
'down'
;
:
string
;
:
string
|
undefined
;
}
;
type
ChatVoteClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the user voted up or down.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the chat agent that this vote is for.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the slash command that this vote is for.'
}
;
:
'roblourens'
;
:
'Provides insight into the performance of Chat agents.'
;
}
;
type
ChatCopyEvent
=
&
{
:
'action'
|
'toolbar'
;
:
string
;
:
string
|
undefined
;
}
;
type
ChatCopyClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'How the copy was initiated.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the chat agent that the copy acted on.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the slash command the copy acted on.'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatInsertEvent
=
&
{
:
boolean
;
:
string
;
:
string
|
undefined
;
}
;
type
ChatInsertClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the code was inserted into a new untitled file.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the chat agent that this insertion is for.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the slash command that this insertion is for.'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatApplyEvent
=
&
{
:
boolean
;
:
string
;
:
string
|
undefined
;
:
string
|
undefined
;
:
boolean
;
}
;
type
ChatApplyClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the code was inserted into a new untitled file.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the chat agent that this insertion is for.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the slash command that this insertion is for.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The code mapper that wa used to compute the edit.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether there was a change proposed to the user.'
}
;
:
'aeschli'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatFollowupEvent
=
&
{
:
string
;
:
string
|
undefined
;
}
;
type
ChatFollowupClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the related chat agent.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the related slash command.'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatTerminalEvent
=
&
{
:
string
;
:
string
;
:
string
|
undefined
;
}
;
type
ChatTerminalClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The language of the code that was run in the terminal.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the related chat agent.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the related slash command.'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatFollowupsRetrievedEvent
=
&
{
:
string
;
:
string
|
undefined
;
:
number
;
}
;
type
ChatFollowupsRetrievedClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the related chat agent.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The name of the related slash command.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The number of followup prompts returned by the agent.'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatEditSessionEvent
=
&
{
:
string
;
:
'accepted'
|
'rejected'
|
'userModified'
;
:
boolean
;
:
string
;
:
string
;
:
string
;
}
;
type
ChatEditSessionClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the related chat agent.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The outcome of the edited file action.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether there are remaining edits in the file after this action.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the chat request that produced the edit.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The AI model used to generate the edit.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The chat mode used for the request (e.g. ask, edit, agent).'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
type
ChatEditHunkEvent
=
&
{
:
string
;
:
'accepted'
|
'rejected'
;
:
number
;
:
boolean
;
:
string
;
:
string
;
:
string
;
}
;
type
ChatEditHunkClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the related chat agent.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The outcome of the edit hunk action.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The number of lines in the relevant change.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether there are remaining edits in the file after this action.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The ID of the chat request that produced the edit.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The AI model used to generate the edit.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The chat mode used for the request (e.g. ask, edit, agent).'
}
;
:
'roblourens'
;
:
'Provides insight into the usage of Chat features.'
;
}
;
export
type
ChatProviderInvokedEvent
=
&
{
:
number
;
:
number
|
undefined
;
:
number
|
undefined
;
:
'success'
|
'error'
|
'errorWithOutput'
|
'cancelled'
|
'filtered'
;
:
'string'
|
'followup'
|
'slashCommand'
;
:
string
;
:
string
;
:
string
;
:
string
|
undefined
;
:
string
|
undefined
;
:
;
:
number
;
:
number
;
:
boolean
;
:
boolean
;
:
string
[
]
;
:
string
|
undefined
;
:
|
undefined
;
:
string
|
undefined
;
:
string
|
undefined
;
:
string
|
undefined
;
:
string
|
undefined
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
}
;
export
type
ChatProviderInvokedClassification
=
&
{
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
true
;
:
'The zero-based index of the request within the chat session.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'The time in milliseconds from invoking the provider to getting the first data.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'The total time it took to run the provider\'s `provideResponseWithProgress`.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether invoking the ChatProvider resulted in an error.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The type of request that the user made.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'A random ID for the session.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'The identifier of the chat request, used to correlate workbench and agent host telemetry.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The type of agent used.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The extension that contributed the agent.'
}
;
?
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The type of slashCommand used.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The location at which chat request was made.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The number of public code citations that were returned with the response.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The number of code blocks in the response.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the participant was automatically detected.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether participation detection was disabled for this invocation.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The types of variables/attachments that the user included with their query.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The model used to generate the response.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The tool auto-approval permission level selected in the permission picker (default, assisted, autoApprove, or autopilot). Undefined when the picker is not applicable (e.g. ask mode or API-driven requests).'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The chat mode used for the request. Built-in modes (ask, agent, edit), extension-contributed names (e.g. Plan), or a hashed identifier for user-created custom agents.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The session type scheme (e.g. vscodeLocalChatSession for local, or remote session scheme).'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'For remote agent host sessions, the underlying harness/provider (e.g. copilotcli, claude, codex) so remote activity can be split by harness. Undefined for non-remote sessions.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Why the session type was selected when the session was created. Undefined for restored or reused sessions.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the chat request was made in a virtual workspace.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The effective value of the chat.defaultToCopilotHarness setting when the request started.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The effective value of the chat.editor.preferCopilotHarness setting when the request started.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The effective value of the chat.editor.localAgent.enabled setting when the request started.'
}
;
:
'roblourens'
;
:
'Provides insight into the performance of Chat agents.'
// this shows why attachments still have to be cleaned up somewhat
return
.
.
map
(
=>
{
if
(
.
===
'implicit'
)
{
return
'implicit'
;
}
else
if
(
.
)
{
// 'range' is range within the prompt text
if
(
.
===
'tool'
)
{
return
'toolInPrompt'
;
}
else
if
(
.
===
'toolset'
)
{
return
'toolsetInPrompt'
;
}
else
{
return
'fileInPrompt'
;
}
}
else
if
(
.
===
'command'
)
{
return
'command'
;
}
else
if
(
.
===
'symbol'
)
{
return
'symbol'
;
}
else
if
(
isImageVariableEntry
(
)
)
{
return
'image'
;
}
else
if
(
.
===
'directory'
)
{
return
'directory'
;
}
else
if
(
.
===
'tool'
)
{
return
'tool'
;
}
else
if
(
.
===
'toolset'
)
{
return
'toolset'
;
}
else
{
if
(
URI
.
isUri
(
.
)
)
{
return
'file'
;
}
else
if
(
isLocation
(
.
)
)
{
return
'location'
;
}
else
{
return
'otherAttachment'
;
}
}
}
)
;
}
private
resolveModelId
(
:
string
|
undefined
)
:
string
|
undefined
{
return
&&
this
.
.
lookupLanguageModel
(
)
?.
;
}
}
function
getChatSessionTypeForTelemetry
(
:
URI
)
:
string
{
const
=
getChatSessionType
(
)
;
// Collapse the high-cardinality, host-specific authority into a single
// value (the authority is PII); the harness is reported separately.
return
isRemoteAgentHostSessionType
(
)
?
'remote-agent-host'
:
;
}
function
getIsAgentHostSessionForTelemetry
(
:
URI
)
:
boolean
{
return
isAgentHostSessionResource
(
)
;
}
/**
* For remote agent host sessions, the underlying harness/provider so remote
* activity can be split by harness (the collapsed sessionType cannot). See
* telemetry gap #2 in #8209. Undefined for non-remote sessions.
*/