ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as l10n from '@vscode/l10n';
import type * as vscode from 'vscode';
import { IChatHookService, IPostToolUseHookResult, IPreToolUseHookResult } from '../../../platform/chat/common/chatHookService';
import { IPostToolUseHookCommandInput, IPostToolUseHookSpecificCommandOutput, IPreToolUseHookCommandInput, IPreToolUseHookSpecificCommandOutput } from '../../../platform/chat/common/hookCommandTypes';
import { HookCommandResultKind, IHookCommandResult, IHookExecutor } from '../../../platform/chat/common/hookExecutor';
import { IHooksOutputChannel } from '../../../platform/chat/common/hooksOutputChannel'
ISessionTranscriptService
ILogService
CopilotChatAttr GenAiAttr GenAiOperationName GitHubCopilotAttr IOTelService SpanKind SpanStatusCode truncateForOTel
ITelemetryService
raceTimeout
CancellationToken
StopWatch
formatHookErrorMessage processHookResults
IToolsService isToolValidationError
ChatHookTelemetry
permissionPriority Record
compatibleHookEventNames ReadonlyMapvscodeChatHookType vscodeChatHookType
hookEventName hookType
hookEventName hookType compatibleHookEventNameshookEventName vscodeChatHookType hookType
redactedInputKeys
_serviceBrand
_requestCounter
_telemetry ChatHookTelemetry
_sessionTranscriptService ISessionTranscriptService
_logService ILogService
_hookExecutor IHookExecutor
_outputChannel IHooksOutputChannel
telemetryService ITelemetryService
_toolsService IToolsService
_otelService IOTelService
_telemetry telemetryService
requestId hookType message
_outputChannel
input Record Record
result input
key redactedInputKeys
Objectresult key
resultkey
result
requestId hookType commandResult IHookCommandResult elapsed
elapsedRounded Mathelapsed
resultKindStr commandResultkind HookCommandResultKindSuccess
commandResultkind HookCommandResultKindNonBlockingError
resultStr commandResultresult commandResultresult commandResultresult
hasOutput resultStrlength resultStr resultStr
hasOutput
requestId hookType
requestId hookType
requestId hookType
hooks vscodeChatRequestHooks
hooks
_telemetryhooks
hookType vscodeChatHookType hooks vscodeChatRequestHooks input sessionId token vscodeCancellationToken vscodeChatHookResult
hooks
hookCommands hookshookType
hookCommands hookCommandslength
hookCount hookCommandslength
overallStopWatch StopWatch
hasError
hasCaughtException
transcriptPath vscodeUri
sessionId
_sessionTranscriptServicesessionId
transcriptPath _sessionTranscriptServicesessionId
commonInput
timestamp
hook_event_name hookType
sessionId session_id sessionId
transcriptPath transcript_path transcriptPathfsPath
fullInput input input
commonInput input
commonInput
results vscodeChatHookResult
effectiveToken token CancellationTokenNone
requestId _requestCounter
_logService
requestId hookType
chatSessionId sessionId
hookCommand hookCommands
commandInput hookCommandcwd
fullInput cwd hookCommandcwdfsPath
fullInput
requestId hookType
inputForLog commandInput Record
requestId hookType
hookToolName commandInput tool_name tool_name
hookToolNamesJson hookToolName hookToolName
span _otelService
kind SpanKind
attributes
GenAiAttr GenAiOperationName
CopilotChatAttr hookType
hookCommandcommand
chatSessionId GenAiAttr chatSessionId
chatSessionId CopilotChatAttr chatSessionId
chatSessionId CopilotChatAttr chatSessionId
hookToolNamesJson GitHubCopilotAttr hookToolNamesJson
spanCopilotChatAttr commandInput _otelServiceconfigmaxAttributeSizeChars
sw StopWatch
commandResult _hookExecutorhookCommand commandInput effectiveToken
elapsed sw
spanGitHubCopilotAttr elapsed
requestId hookType commandResult elapsed
resultKind commandResultkind HookCommandResultKindSuccess
commandResultkind HookCommandResultKindNonBlockingError
spanCopilotChatAttr resultKind
hookDecision commandResultkind HookCommandResultKindError
commandResultkind HookCommandResultKindNonBlockingError
spanGitHubCopilotAttr hookDecision
commandResultkind HookCommandResultKindError commandResultkind HookCommandResultKindNonBlockingError
hasError
commandResultexitCode
span commandResultexitCode
spanSpanStatusCode commandResultresult commandResultresult
spanSpanStatusCode
output commandResultresult commandResultresult commandResultresult
output
spanCopilotChatAttr output _otelServiceconfigmaxAttributeSizeChars
result hookType commandResult
resultsresult
resultstopReason
hookDecision
spanGitHubCopilotAttr
requestId hookType
_logService
spanErr
error spanErr spanErr spanErr
spanerror
spanSpanStatusCode errormessage
spanErr
span
err
hasCaughtException
errMessage err errmessage err
requestId hookType
_logServiceerr err errMessage
results
resultKind
output
warningMessage errMessage
results
e
hasCaughtException
_logService e
_telemetryhookType hookCount overallStopWatch hasError hasCaughtException
hookType commandResult IHookCommandResult vscodeChatHookResult
commandResultkind
HookCommandResultKindError
message commandResultresult commandResultresult commandResultresult
resultKind
output message
HookCommandResultKindNonBlockingError
errorMessage commandResultresult commandResultresult commandResultresult
resultKind
output
warningMessage errorMessage
HookCommandResultKindSuccess
commandResultresult
resultKind
output commandResultresult
resultObj commandResultresult Record
stopReason resultObj resultObj
continueFlag resultObj
systemMessage resultObj resultObj
effectiveStopReason stopReason
continueFlag effectiveStopReason
effectiveStopReason
topLevelHookEventName resultObj
topLevelHookEventName topLevelHookEventName hookType
_logService
resultKind
output
stripHookSpecificOutput
hookSpecificOutput resultObj
hookSpecificOutput hookSpecificOutput
nestedHookEventName hookSpecificOutput Record
nestedHookEventName nestedHookEventName hookType
_logService
stripHookSpecificOutput
commonFields
stripHookSpecificOutput
commonFields
hookOutput Record
key value ObjectresultObj
value commonFieldskey
hookOutputkey value
resultKind
stopReason effectiveStopReason
warningMessage systemMessage
output ObjecthookOutputlength hookOutput
resultKind
warningMessage
output
toolName toolInput toolCallId hooks vscodeChatRequestHooks sessionId token vscodeCancellationToken outputStream vscodeChatResponseStream IPreToolUseHookResult
hookInput IPreToolUseHookCommandInput
tool_name toolName
tool_input toolInput
tool_use_id toolCallId
results
hooks
hookInput
sessionId
token
resultslength
mostRestrictiveDecision
denyReasons
askReason
allowReason
lastUpdatedInput object
allAdditionalContext
hookType
results
outputStream
logService _logService
output
output output
hookOutput output hookSpecificOutput IPreToolUseHookSpecificCommandOutput
hookSpecificOutput hookOutputhookSpecificOutput
hookSpecificOutput
hookSpecificOutputadditionalContext
allAdditionalContexthookSpecificOutputadditionalContext
hookSpecificOutputupdatedInput
lastUpdatedInput hookSpecificOutputupdatedInput
decision hookSpecificOutputpermissionDecision
decision
decision permissionPriority
message
_logService
_outputChannel
decision
hookSpecificOutputpermissionDecisionReason
denyReasonshookSpecificOutputpermissionDecisionReason
mostRestrictiveDecision
mostRestrictiveDecision
mostRestrictiveDecision permissionPrioritydecision permissionPrioritymostRestrictiveDecision
mostRestrictiveDecision decision
decision
askReason hookSpecificOutputpermissionDecisionReason
allowReason hookSpecificOutputpermissionDecisionReason
errorMessage
errorMessage
denyReasonserrorMessage
mostRestrictiveDecision
winningReason
mostRestrictiveDecision
winningReason denyReasonslength denyReasons
mostRestrictiveDecision
winningReason askReason
mostRestrictiveDecision
winningReason allowReason
mostRestrictiveDecision
renderedReason
denyReasonslength
renderedReason l10n toolName
denyReasonslength
renderedReason l10n toolName denyReasons
numbered denyReasonsr i
renderedReason l10n toolName numbered
outputStream renderedReason
lastUpdatedInput
validationResult _toolsServicetoolName lastUpdatedInput
validationResult
message
_logService
_outputChannel
lastUpdatedInput
mostRestrictiveDecision lastUpdatedInput allAdditionalContextlength
hookResult IPreToolUseHookResult
permissionDecision mostRestrictiveDecision
permissionDecisionReason winningReason
updatedInput lastUpdatedInput
additionalContext allAdditionalContextlength allAdditionalContext
_telemetryhookResult
hookResult
toolName toolInput toolResponseText toolCallId hooks vscodeChatRequestHooks sessionId token vscodeCancellationToken outputStream vscodeChatResponseStream IPostToolUseHookResult
hookInput IPostToolUseHookCommandInput
tool_name toolName
tool_input toolInput
tool_response toolResponseText
tool_use_id toolCallId
results
hooks
hookInput
sessionId
token
tokenisCancellationRequested
resultslength
hasBlock
blockReason
allAdditionalContext
hookType
results
outputStream
logService _logService
output
output output
hookOutput output
decision
reason
hookSpecificOutput IPostToolUseHookSpecificCommandOutput
hookOutputhookSpecificOutputadditionalContext
allAdditionalContexthookOutputhookSpecificOutputadditionalContext
hookOutputdecision hasBlock
hasBlock
blockReason hookOutputreason
hookOutputdecision hookOutputdecision
message
_logService
_outputChannel
errorMessage
hasBlock
hasBlock
messageWithTool errorMessage
l10n toolName errorMessage
l10n toolName
blockReason messageWithTool
outputStream messageWithTool
messageWithTool errorMessage
l10n toolName errorMessage
l10n toolName
outputStream messageWithTool
hasBlock allAdditionalContextlength
hookResult IPostToolUseHookResult
decision hasBlock
reason blockReason
additionalContext allAdditionalContextlength allAdditionalContext
_telemetryhookResult
hookResult