Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/** Time delay in milliseconds between acceptance and measurement */
TIME_DELAY_MS
:
'copilot_chat.time_delay_ms'
,
/** Whether additional unactioned edits remain */
HAS_REMAINING_EDITS
:
'copilot_chat.has_remaining_edits'
,
/** Git branch name (HEAD) */
REPO_HEAD_BRANCH_NAME
:
'copilot_chat.repo.head_branch_name'
,
/** Git commit hash (HEAD) */
REPO_HEAD_COMMIT_HASH
:
'copilot_chat.repo.head_commit_hash'
,
/** Normalized remote fetch URL */
REPO_REMOTE_URL
:
'copilot_chat.repo.remote_url'
,
/** File path relative to the repository root */
FILE_RELATIVE_PATH
:
'copilot_chat.file.relative_path'
,
/** Hook type / event name (e.g. PreToolUse, PostToolUse, Stop) */
HOOK_TYPE
:
'copilot_chat.hook_type'
,
/** Serialized hook command input (truncated; emitters may or may not gate on captureContent — used by the Agent Debug Log panel) */
HOOK_INPUT
:
'copilot_chat.hook_input'
,
/** Serialized hook command output (truncated; emitters may or may not gate on captureContent — used by the Agent Debug Log panel) */
HOOK_OUTPUT
:
'copilot_chat.hook_output'
,
/** Hook result kind: 'success', 'error', or 'non_blocking_error' */
HOOK_RESULT_KIND
:
'copilot_chat.hook_result_kind'
,
/** Custom chat mode name (when a custom mode is active) */
MODE_NAME
:
'copilot_chat.mode_name'
,
/** Per-request cost from copilot_usage.total_nano_aiu */
COPILOT_USAGE_NANO_AIU
:
'copilot_chat.copilot_usage_nano_aiu'
,
}
as
const
;
export
type
EditSource
=
'inline_chat'
|
'chat_editing'
|
'chat_editing_hunk'
|
'apply_patch'
|
'replace_string'
|
'code_mapper'
;
export
type
EditOutcome
=
'accepted'
|
'rejected'
|
'saved'
|
'unknown'
;
/**
* Standard OTel attributes used alongside GenAI attributes.
*/
export
const
=
{
ERROR_TYPE
:
'error.type'
,
SERVER_ADDRESS
:
'server.address'
,
SERVER_PORT
:
'server.port'
,
}
as
const
;
/**
* Attribute keys emitted by the Copilot CLI SDK's native OTel instrumentation
* (read by the bridge processor and the debug panel; the extension itself does
* not produce these).
*/
export
const
=
{
HOOK_TYPE
:
'github.copilot.hook.type'
,
HOOK_INVOCATION_ID
:
'github.copilot.hook.invocation_id'
,
}
as
const
;
/**
* Canonical `github.copilot.*` attribute namespace for Copilot Chat. These
* attributes are dual-emitted alongside the legacy `copilot_chat.*` keys; new
* dashboards should prefer this namespace.
*/
export
const
=
{
/** Agent type classifier: `builtin` | `plugin` | `custom`. */
AGENT_TYPE
:
'github.copilot.agent.type'
,
/** Git remote URL (normalized). Dual of `copilot_chat.repo.remote_url`. */
GIT_REPOSITORY
:
'github.copilot.git.repository'
,
/** Git HEAD branch. Dual of `copilot_chat.repo.head_branch_name`. */
GIT_BRANCH
:
'github.copilot.git.branch'
,
/** Git HEAD commit. Dual of `copilot_chat.repo.head_commit_hash`. */
GIT_COMMIT_SHA
:
'github.copilot.git.commit_sha'
,
/** GitHub `owner` segment derived from the remote URL (gated like the URL itself). */
/** Raw MCP server name for an MCP tool call (gated). */
TOOL_PARAM_MCP_SERVER_NAME
:
'github.copilot.tool.parameters.mcp_server_name'
,
/** MCP tool name (the part after the `mcp_<server>_` prefix). */
TOOL_PARAM_MCP_TOOL_NAME
:
'github.copilot.tool.parameters.mcp_tool_name'
,
}
as
const
;
export
type
AgentType
=
'builtin'
|
'plugin'
|
'custom'
;
export
type
HookDecision
=
'block'
|
'approve'
|
'non_blocking_error'
|
'pass'
;
export
type
EditOperationType
=
'create'
|
'update'
|
'str_replace'
|
'insert'
;
/** Max length for the `tool.parameters.command` attribute. */
export
const
TOOL_PARAM_COMMAND_MAX_LEN
=
256
;
/** Tool names treated as shell-command tools for parameter extraction. */
export
const
SHELL_TOOL_NAMES
:
<
string
>
=
new
Set
(
[
'bash'
,
'powershell'
,
'local_shell'
,
'runInTerminal'
,
'run_in_terminal'
,
// Claude
'Bash'
,
]
)
;
/**
* Tool names treated as file tools for parameter extraction. Covers VS Code's
* `ToolName` enum values (snake_case, see `extension/tools/common/toolNames.ts`)
* and the camelCase / Claude-style variants seen on external surfaces.
*/