pub enum C2NodeResponse {
Show 48 variants
Snapshot {
event_sequence: u64,
controller: Option<ControllerState>,
snapshot: C2NodeSnapshot,
},
Resync {
event_sequence: u64,
oldest_available_sequence: u64,
snapshot: C2NodeSnapshot,
events: Vec<C2NodeEventEnvelope>,
},
Armed {
reservation_id: HarnessMcpReservationId,
activation_digest: HarnessMcpActivationDigest,
expires_at_unix_ms: u64,
},
Spawned {
reservation_id: HarnessMcpReservationId,
activation_digest: HarnessMcpActivationDigest,
receipt: ResolvedSpawnReceipt,
},
Activated {
reservation_id: HarnessMcpReservationId,
activation_digest: HarnessMcpActivationDigest,
record_id: SessionRecordId,
session: SessionAddress,
},
Aborted {
reservation_id: HarnessMcpReservationId,
activation_digest: HarnessMcpActivationDigest,
},
ReplyChunkAccepted {
reservation_id: HarnessMcpReservationId,
activation_digest: HarnessMcpActivationDigest,
record_id: SessionRecordId,
session: SessionAddress,
call_id: HarnessMcpCallId,
next_offset: u32,
completed: bool,
},
CallRejected {
reservation_id: HarnessMcpReservationId,
activation_digest: HarnessMcpActivationDigest,
record_id: SessionRecordId,
session: SessionAddress,
call_id: HarnessMcpCallId,
},
DeliveryStageBegun {
stage_id: DeliveryStageId,
manifest_digest: DeliveryManifestDigestV2,
missing_blobs: Vec<DeliveryBlobDigestV1>,
},
DeliveryBlobChunkAccepted {
stage_id: DeliveryStageId,
blob_digest: DeliveryBlobDigestV1,
next_offset: u64,
},
DeliveryCommitted {
receipt: DeliveryCommitReceiptV1,
},
DeliveryStageAborted {
stage_id: DeliveryStageId,
},
WorkspaceInspected {
inspection: C2WorkspaceInspection,
},
HostDirectoriesBrowsed {
listing: HostDirectoryListing,
},
WorkspaceFileRead {
file: WorkspaceFileRead,
},
WorkspaceFileWritten {
file: WorkspaceFileRead,
},
WorkspaceFileCreated {
file: WorkspaceFileRead,
},
WorkspaceDirectoryCreated {
workspace_id: WorkspaceId,
entry: WorkspaceEntry,
},
GitHistoryRead {
workspace_id: WorkspaceId,
page: GitHistoryPage,
},
GitDiffRead {
workspace_id: WorkspaceId,
diff: GitDiff,
},
Controller {
controller: Option<ControllerState>,
},
SpawnAccepted {
session: SessionAddress,
},
SpawnSpecAccepted {
receipt: ResolvedSpawnReceipt,
},
ManagedWorktreeSpawnAccepted {
receipt: ManagedWorktreeSpawnReceipt,
},
ManagedWorktreeCleanup {
lease: ManagedWorktreeLeaseSnapshot,
},
SessionRecordUpdated {
record: C2ManagedSessionRecord,
},
ProviderSessionIndexed {
record: C2ManagedSessionRecord,
},
NativeSessionIndexed {
selection: NativeSessionSelection,
record: C2ManagedSessionRecord,
},
SessionRecordResumed {
record: C2ManagedSessionRecord,
session: SessionAddress,
},
SessionRecordForgotten {
record_id: SessionRecordId,
},
NativeSessionsCataloged {
route: NativeSessionCatalogRoute,
entries: Vec<NativeSessionCatalogEntry>,
summary: Option<NativeSessionCatalogSummary>,
},
NativeSessionsPaged {
route: NativeSessionCatalogRoute,
page: NativeSessionCatalogPage,
},
NativeSessionPreviewed {
selection: NativeSessionSelection,
preview: NativeSessionPreview,
},
SessionRecordPreviewed {
record_id: SessionRecordId,
preview: SessionRecordPreview,
},
HistoryDiscovered {
session: SessionAddress,
candidates: Vec<HistoryCandidateSummary>,
},
HistoryLoaded {
session: SessionAddress,
session_id: String,
message_count: u64,
completed_turn_count: Option<u64>,
},
ContextPackExported {
context: ResolvedContextPackReceipt,
},
ContextPackForSessionRecordExported {
record_id: SessionRecordId,
session: SessionAddress,
context: ResolvedContextPackReceipt,
},
ContextPackForgotten {
context_id: SpawnContextId,
},
DurableContextPackResolved {
context: ResolvedContextPackReceipt,
},
ContextPackBytesRead {
pack: ContextPackBytesRead,
},
WorkspaceRegistered {
workspace: C2WorkspaceSnapshot,
},
StandaloneWorkspaceCreated {
workspace: C2WorkspaceSnapshot,
},
WorkspaceUnregistered {
workspace_id: WorkspaceId,
},
WorktreeCreated {
worktree: C2GitWorktreeSnapshot,
workspace: C2WorkspaceSnapshot,
},
WorktreeRemoved {
target_root: OpaqueHostPath,
workspace_id: Option<WorkspaceId>,
},
Accepted,
ShuttingDown,
}Variants§
Snapshot
Resync
Armed
Spawned
Fields
§
reservation_id: HarnessMcpReservationId§
activation_digest: HarnessMcpActivationDigest§
receipt: ResolvedSpawnReceiptActivated
Fields
§
reservation_id: HarnessMcpReservationId§
activation_digest: HarnessMcpActivationDigest§
record_id: SessionRecordId§
session: SessionAddressAborted
ReplyChunkAccepted
Fields
§
reservation_id: HarnessMcpReservationId§
activation_digest: HarnessMcpActivationDigest§
record_id: SessionRecordId§
session: SessionAddress§
call_id: HarnessMcpCallIdCallRejected
Fields
§
reservation_id: HarnessMcpReservationId§
activation_digest: HarnessMcpActivationDigest§
record_id: SessionRecordId§
session: SessionAddress§
call_id: HarnessMcpCallIdDeliveryStageBegun
Fields
§
stage_id: DeliveryStageId§
manifest_digest: DeliveryManifestDigestV2§
missing_blobs: Vec<DeliveryBlobDigestV1>DeliveryBlobChunkAccepted
DeliveryCommitted
Fields
§
receipt: DeliveryCommitReceiptV1DeliveryStageAborted
Fields
§
stage_id: DeliveryStageIdWorkspaceInspected
Fields
§
inspection: C2WorkspaceInspectionHostDirectoriesBrowsed
Fields
§
listing: HostDirectoryListingWorkspaceFileRead
Fields
§
file: WorkspaceFileReadWorkspaceFileWritten
Fields
§
file: WorkspaceFileReadWorkspaceFileCreated
Fields
§
file: WorkspaceFileReadWorkspaceDirectoryCreated
GitHistoryRead
GitDiffRead
Controller
Fields
§
controller: Option<ControllerState>SpawnAccepted
Fields
§
session: SessionAddressSpawnSpecAccepted
Fields
§
receipt: ResolvedSpawnReceiptManagedWorktreeSpawnAccepted
Fields
§
receipt: ManagedWorktreeSpawnReceiptManagedWorktreeCleanup
Fields
SessionRecordUpdated
Fields
§
record: C2ManagedSessionRecordProviderSessionIndexed
Fields
§
record: C2ManagedSessionRecordNativeSessionIndexed
SessionRecordResumed
SessionRecordForgotten
Fields
§
record_id: SessionRecordIdNativeSessionsCataloged
Fields
§
route: NativeSessionCatalogRoute§
entries: Vec<NativeSessionCatalogEntry>§
summary: Option<NativeSessionCatalogSummary>NativeSessionsPaged
NativeSessionPreviewed
SessionRecordPreviewed
HistoryDiscovered
HistoryLoaded
Fields
§
session: SessionAddressContextPackExported
Fields
§
context: ResolvedContextPackReceiptContextPackForSessionRecordExported
ContextPackForgotten
Fields
§
context_id: SpawnContextIdDurableContextPackResolved
Fields
§
context: ResolvedContextPackReceiptContextPackBytesRead
Fields
§
pack: ContextPackBytesReadWorkspaceRegistered
Fields
§
workspace: C2WorkspaceSnapshotStandaloneWorkspaceCreated
Fields
§
workspace: C2WorkspaceSnapshotWorkspaceUnregistered
Fields
§
workspace_id: WorkspaceIdWorktreeCreated
WorktreeRemoved
Accepted
ShuttingDown
Implementations§
Source§impl C2NodeResponse
impl C2NodeResponse
Sourcepub fn from_node_response_with_control_detail(response: &NodeResponse) -> Self
pub fn from_node_response_with_control_detail(response: &NodeResponse) -> Self
Like From, but the control events of a Resync keep their sanitized
telemetry detail; see control_telemetry_detail.
pub fn requires_control_detail_capability(&self) -> bool
pub fn strip_control_detail(&mut self)
pub fn requires_session_record_context_export_capability(&self) -> bool
pub fn requires_harness_mcp_proxy_capability(&self) -> bool
Source§impl C2NodeResponse
impl C2NodeResponse
pub fn native_session_catalog_contract_is_valid(&self) -> bool
pub fn requires_native_session_catalog_capability(&self) -> bool
pub fn requires_native_session_catalog_paging_capability(&self) -> bool
pub fn requires_native_session_preview_capability(&self) -> bool
pub fn requires_native_session_index_capability(&self) -> bool
pub fn native_session_index_contract_is_valid(&self) -> bool
pub fn native_session_preview_contract_is_valid(&self) -> bool
pub fn requires_host_directory_browse_capability(&self) -> bool
pub fn requires_workspace_entry_create_capability(&self) -> bool
pub fn requires_child_environment_profile_capability(&self) -> bool
pub fn requires_session_bundle_materialization_capability(&self) -> bool
pub fn requires_history_context_pack_capability(&self) -> bool
pub fn requires_session_task_correlation_capability(&self) -> bool
Trait Implementations§
Source§impl Clone for C2NodeResponse
impl Clone for C2NodeResponse
Source§impl Debug for C2NodeResponse
impl Debug for C2NodeResponse
Source§impl<'de> Deserialize<'de> for C2NodeResponse
impl<'de> Deserialize<'de> for C2NodeResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for C2NodeResponse
Source§impl From<&NodeResponse> for C2NodeResponse
impl From<&NodeResponse> for C2NodeResponse
Source§fn from(response: &NodeResponse) -> Self
fn from(response: &NodeResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for C2NodeResponse
impl PartialEq for C2NodeResponse
Source§impl Serialize for C2NodeResponse
impl Serialize for C2NodeResponse
impl StructuralPartialEq for C2NodeResponse
Auto Trait Implementations§
impl Freeze for C2NodeResponse
impl RefUnwindSafe for C2NodeResponse
impl Send for C2NodeResponse
impl Sync for C2NodeResponse
impl Unpin for C2NodeResponse
impl UnsafeUnpin for C2NodeResponse
impl UnwindSafe for C2NodeResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more