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 type { GuardianApprovalReviewAction } from './protocol/generated/v2/GuardianApprovalReviewAction.js';
import type { ItemGuardianApprovalReviewCompletedNotification } from './protocol/generated/v2/ItemGuardianApprovalReviewCompletedNotification.js';
import type { RequestPermissionProfile } from './protocol/generated/v2/RequestPermissionProfile.js';
import type { JsonValue } from './protocol/generated/serde_json/JsonValue.js';
import { unwrapShellInvocation } from './codexShellCommand.js';
/**
* Auto-review (guardian) notifications are emitted by the app-server with
* `ts-rs`-generated camelCase field names. The `thread/approveGuardianDeniedAction`
* request, however, echoes back a `codex_protocol::protocol::GuardianAssessmentEvent`
* that is (de)serialized with plain `serde` — which uses **snake_case** for enum
* variants, enum values, and the tagged-union `type` discriminant. The two shapes
* therefore diverge (`inProgress` vs `in_progress`, `networkAccess` vs
* `network_access`, `unifiedExec` vs `unified_exec`, `toolName` vs `tool_name`, …),
* so we cannot round-trip the notification payload verbatim.
*
* These helpers translate the camelCase completed-review notification into the
* snake_case `GuardianAssessmentEvent` JSON that the app-server can deserialize,
* and summarise a review action for display on the approval card.
*/
status
status
status
source
source source
protocol
protocol
protocol
profile RequestPermissionProfile JsonValue
fs profilefileSystem
fileSystem JsonValue
fs
mapped Record JsonValue read fsread write fswrite
fsglobScanMaxDepth
mappedglob_scan_max_depth fsglobScanMaxDepth
fsentries
mappedentries fsentries JsonValue
fileSystem mapped
network profilenetwork JsonValue file_system fileSystem
action GuardianApprovalReviewAction JsonValue
actiontype
type source actionsource command actioncommand cwd actioncwd
type source actionsource program actionprogram argv actionargv cwd actioncwd
type cwd actioncwd files actionfiles
type target actiontarget host actionhost protocol actionprotocol port actionport
type server actionserver tool_name actiontoolName connector_id actionconnectorId connector_name actionconnectorName tool_title actiontoolTitle
type reason actionreason permissions actionpermissions
notification ItemGuardianApprovalReviewCompletedNotification JsonValue
event Record JsonValue
id notificationreviewId
turn_id notificationturnId
started_at_ms notificationstartedAtMs
status notificationreviewstatus
action notificationaction
notificationtargetItemId
eventtarget_item_id notificationtargetItemId
notificationcompletedAtMs notificationcompletedAtMs
eventcompleted_at_ms notificationcompletedAtMs
notificationreviewriskLevel
eventrisk_level notificationreviewriskLevel
notificationreviewuserAuthorization
eventuser_authorization notificationreviewuserAuthorization
notificationreviewrationale
eventrationale notificationreviewrationale
notificationdecisionSource notificationdecisionSource
eventdecision_source notificationdecisionSource
event
title
detail
toolKind
action GuardianApprovalReviewAction IGuardianActionSummary
actiontype
title detail actioncommand toolKind
title detail actionprogram actionargv toolKind
title detail actionfiles
title detail actiontarget toolKind
title detail
title detail actionreason
text
longestRun text max run Mathmax runlength
fence longestRun
padding text text
summary IGuardianActionSummary rationale
detail summarydetail
header
lines
detail
reason rationale
reason
lines reason
quoted linesline line