Move MVP operator reads onto Epiphany view

This commit is contained in:
Meta Vens 2026-05-12 04:50:51 +01:00
commit 7b1e79a765
15 changed files with 1138 additions and 78 deletions

View file

@ -4753,7 +4753,12 @@
"enum": [
"scene",
"jobs",
"pressure"
"roles",
"planning",
"pressure",
"reorient",
"crrc",
"coordinator"
],
"type": "string"
},

View file

@ -17833,14 +17833,278 @@
},
"type": "object"
},
"ThreadEpiphanyViewCoordinator": {
"properties": {
"action": {
"$ref": "#/definitions/v2/ThreadEpiphanyCoordinatorAction"
},
"canAutoRun": {
"type": "boolean"
},
"note": {
"type": "string"
},
"reason": {
"type": "string"
},
"recommendedSceneAction": {
"anyOf": [
{
"$ref": "#/definitions/v2/ThreadEpiphanySceneAction"
},
{
"type": "null"
}
]
},
"requiresReview": {
"type": "boolean"
},
"roles": {
"items": {
"$ref": "#/definitions/v2/ThreadEpiphanyRoleLane"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyRolesSource"
},
"sourceSignals": {
"$ref": "#/definitions/v2/ThreadEpiphanyCoordinatorSignals"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientStateStatus"
},
"targetRole": {
"anyOf": [
{
"$ref": "#/definitions/v2/ThreadEpiphanyRoleId"
},
{
"type": "null"
}
]
},
"threadId": {
"type": "string"
}
},
"required": [
"action",
"canAutoRun",
"note",
"reason",
"requiresReview",
"roles",
"source",
"sourceSignals",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewCrrc": {
"properties": {
"availableActions": {
"items": {
"$ref": "#/definitions/v2/ThreadEpiphanySceneAction"
},
"type": "array"
},
"decision": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientDecision"
},
"note": {
"type": "string"
},
"pressure": {
"$ref": "#/definitions/v2/ThreadEpiphanyPressure"
},
"recommendation": {
"$ref": "#/definitions/v2/ThreadEpiphanyCrrcRecommendation"
},
"reorientBindingId": {
"type": "string"
},
"reorientFinding": {
"anyOf": [
{
"$ref": "#/definitions/v2/ThreadEpiphanyReorientFinding"
},
{
"type": "null"
}
]
},
"reorientJob": {
"anyOf": [
{
"$ref": "#/definitions/v2/ThreadEpiphanyJob"
},
{
"type": "null"
}
]
},
"reorientResultStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientResultStatus"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientStateStatus"
},
"threadId": {
"type": "string"
}
},
"required": [
"decision",
"note",
"pressure",
"recommendation",
"reorientBindingId",
"reorientResultStatus",
"source",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewLens": {
"enum": [
"scene",
"jobs",
"pressure"
"roles",
"planning",
"pressure",
"reorient",
"crrc",
"coordinator"
],
"type": "string"
},
"ThreadEpiphanyViewPlanning": {
"properties": {
"planning": {
"$ref": "#/definitions/v2/EpiphanyPlanningState"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyContextSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyContextStateStatus"
},
"summary": {
"$ref": "#/definitions/v2/ThreadEpiphanyPlanningSummary"
},
"threadId": {
"type": "string"
}
},
"required": [
"planning",
"source",
"stateStatus",
"summary",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewReorient": {
"properties": {
"decision": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientDecision"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientStateStatus"
},
"threadId": {
"type": "string"
}
},
"required": [
"decision",
"source",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewRoles": {
"properties": {
"note": {
"type": "string"
},
"roles": {
"items": {
"$ref": "#/definitions/v2/ThreadEpiphanyRoleLane"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyRolesSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientStateStatus"
},
"threadId": {
"type": "string"
}
},
"required": [
"note",
"roles",
"source",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadForkParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",

View file

@ -15720,14 +15720,278 @@
},
"type": "object"
},
"ThreadEpiphanyViewCoordinator": {
"properties": {
"action": {
"$ref": "#/definitions/ThreadEpiphanyCoordinatorAction"
},
"canAutoRun": {
"type": "boolean"
},
"note": {
"type": "string"
},
"reason": {
"type": "string"
},
"recommendedSceneAction": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanySceneAction"
},
{
"type": "null"
}
]
},
"requiresReview": {
"type": "boolean"
},
"roles": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyRoleLane"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyRolesSource"
},
"sourceSignals": {
"$ref": "#/definitions/ThreadEpiphanyCoordinatorSignals"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/ThreadEpiphanyReorientStateStatus"
},
"targetRole": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyRoleId"
},
{
"type": "null"
}
]
},
"threadId": {
"type": "string"
}
},
"required": [
"action",
"canAutoRun",
"note",
"reason",
"requiresReview",
"roles",
"source",
"sourceSignals",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewCrrc": {
"properties": {
"availableActions": {
"items": {
"$ref": "#/definitions/ThreadEpiphanySceneAction"
},
"type": "array"
},
"decision": {
"$ref": "#/definitions/ThreadEpiphanyReorientDecision"
},
"note": {
"type": "string"
},
"pressure": {
"$ref": "#/definitions/ThreadEpiphanyPressure"
},
"recommendation": {
"$ref": "#/definitions/ThreadEpiphanyCrrcRecommendation"
},
"reorientBindingId": {
"type": "string"
},
"reorientFinding": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyReorientFinding"
},
{
"type": "null"
}
]
},
"reorientJob": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyJob"
},
{
"type": "null"
}
]
},
"reorientResultStatus": {
"$ref": "#/definitions/ThreadEpiphanyReorientResultStatus"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyReorientSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/ThreadEpiphanyReorientStateStatus"
},
"threadId": {
"type": "string"
}
},
"required": [
"decision",
"note",
"pressure",
"recommendation",
"reorientBindingId",
"reorientResultStatus",
"source",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewLens": {
"enum": [
"scene",
"jobs",
"pressure"
"roles",
"planning",
"pressure",
"reorient",
"crrc",
"coordinator"
],
"type": "string"
},
"ThreadEpiphanyViewPlanning": {
"properties": {
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyContextSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/ThreadEpiphanyContextStateStatus"
},
"summary": {
"$ref": "#/definitions/ThreadEpiphanyPlanningSummary"
},
"threadId": {
"type": "string"
}
},
"required": [
"planning",
"source",
"stateStatus",
"summary",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewReorient": {
"properties": {
"decision": {
"$ref": "#/definitions/ThreadEpiphanyReorientDecision"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyReorientSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/ThreadEpiphanyReorientStateStatus"
},
"threadId": {
"type": "string"
}
},
"required": [
"decision",
"source",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyViewRoles": {
"properties": {
"note": {
"type": "string"
},
"roles": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyRoleLane"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyRolesSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"stateStatus": {
"$ref": "#/definitions/ThreadEpiphanyReorientStateStatus"
},
"threadId": {
"type": "string"
}
},
"required": [
"note",
"roles",
"source",
"stateStatus",
"threadId"
],
"type": "object"
},
"ThreadForkParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",

View file

@ -0,0 +1,12 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyCoordinatorAction } from "./ThreadEpiphanyCoordinatorAction";
import type { ThreadEpiphanyCoordinatorSignals } from "./ThreadEpiphanyCoordinatorSignals";
import type { ThreadEpiphanyReorientStateStatus } from "./ThreadEpiphanyReorientStateStatus";
import type { ThreadEpiphanyRoleId } from "./ThreadEpiphanyRoleId";
import type { ThreadEpiphanyRoleLane } from "./ThreadEpiphanyRoleLane";
import type { ThreadEpiphanyRolesSource } from "./ThreadEpiphanyRolesSource";
import type { ThreadEpiphanySceneAction } from "./ThreadEpiphanySceneAction";
export type ThreadEpiphanyViewCoordinator = { threadId: string, source: ThreadEpiphanyRolesSource, stateStatus: ThreadEpiphanyReorientStateStatus, stateRevision?: bigint | null, action: ThreadEpiphanyCoordinatorAction, targetRole?: ThreadEpiphanyRoleId | null, recommendedSceneAction?: ThreadEpiphanySceneAction | null, requiresReview: boolean, canAutoRun: boolean, reason: string, sourceSignals: ThreadEpiphanyCoordinatorSignals, roles: Array<ThreadEpiphanyRoleLane>, note: string, };

View file

@ -0,0 +1,14 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyCrrcRecommendation } from "./ThreadEpiphanyCrrcRecommendation";
import type { ThreadEpiphanyJob } from "./ThreadEpiphanyJob";
import type { ThreadEpiphanyPressure } from "./ThreadEpiphanyPressure";
import type { ThreadEpiphanyReorientDecision } from "./ThreadEpiphanyReorientDecision";
import type { ThreadEpiphanyReorientFinding } from "./ThreadEpiphanyReorientFinding";
import type { ThreadEpiphanyReorientResultStatus } from "./ThreadEpiphanyReorientResultStatus";
import type { ThreadEpiphanyReorientSource } from "./ThreadEpiphanyReorientSource";
import type { ThreadEpiphanyReorientStateStatus } from "./ThreadEpiphanyReorientStateStatus";
import type { ThreadEpiphanySceneAction } from "./ThreadEpiphanySceneAction";
export type ThreadEpiphanyViewCrrc = { threadId: string, source: ThreadEpiphanyReorientSource, stateStatus: ThreadEpiphanyReorientStateStatus, stateRevision?: bigint | null, pressure: ThreadEpiphanyPressure, decision: ThreadEpiphanyReorientDecision, recommendation: ThreadEpiphanyCrrcRecommendation, reorientBindingId: string, reorientResultStatus: ThreadEpiphanyReorientResultStatus, reorientJob?: ThreadEpiphanyJob | null, reorientFinding?: ThreadEpiphanyReorientFinding | null, availableActions?: Array<ThreadEpiphanySceneAction>, note: string, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyViewLens = "scene" | "jobs" | "pressure";
export type ThreadEpiphanyViewLens = "scene" | "jobs" | "roles" | "planning" | "pressure" | "reorient" | "crrc" | "coordinator";

View file

@ -0,0 +1,9 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EpiphanyPlanningState } from "../EpiphanyPlanningState";
import type { ThreadEpiphanyContextSource } from "./ThreadEpiphanyContextSource";
import type { ThreadEpiphanyContextStateStatus } from "./ThreadEpiphanyContextStateStatus";
import type { ThreadEpiphanyPlanningSummary } from "./ThreadEpiphanyPlanningSummary";
export type ThreadEpiphanyViewPlanning = { threadId: string, source: ThreadEpiphanyContextSource, stateStatus: ThreadEpiphanyContextStateStatus, stateRevision?: bigint | null, planning: EpiphanyPlanningState, summary: ThreadEpiphanyPlanningSummary, };

View file

@ -0,0 +1,8 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyReorientDecision } from "./ThreadEpiphanyReorientDecision";
import type { ThreadEpiphanyReorientSource } from "./ThreadEpiphanyReorientSource";
import type { ThreadEpiphanyReorientStateStatus } from "./ThreadEpiphanyReorientStateStatus";
export type ThreadEpiphanyViewReorient = { threadId: string, source: ThreadEpiphanyReorientSource, stateStatus: ThreadEpiphanyReorientStateStatus, stateRevision?: bigint | null, decision: ThreadEpiphanyReorientDecision, };

View file

@ -0,0 +1,8 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyReorientStateStatus } from "./ThreadEpiphanyReorientStateStatus";
import type { ThreadEpiphanyRoleLane } from "./ThreadEpiphanyRoleLane";
import type { ThreadEpiphanyRolesSource } from "./ThreadEpiphanyRolesSource";
export type ThreadEpiphanyViewRoles = { threadId: string, source: ThreadEpiphanyRolesSource, stateStatus: ThreadEpiphanyReorientStateStatus, stateRevision?: bigint | null, roles: Array<ThreadEpiphanyRoleLane>, note: string, };

View file

@ -387,7 +387,12 @@ export type { ThreadEpiphanyStateUpdatedField } from "./ThreadEpiphanyStateUpdat
export type { ThreadEpiphanyStateUpdatedNotification } from "./ThreadEpiphanyStateUpdatedNotification";
export type { ThreadEpiphanyStateUpdatedSource } from "./ThreadEpiphanyStateUpdatedSource";
export type { ThreadEpiphanyUpdatePatch } from "./ThreadEpiphanyUpdatePatch";
export type { ThreadEpiphanyViewCoordinator } from "./ThreadEpiphanyViewCoordinator";
export type { ThreadEpiphanyViewCrrc } from "./ThreadEpiphanyViewCrrc";
export type { ThreadEpiphanyViewLens } from "./ThreadEpiphanyViewLens";
export type { ThreadEpiphanyViewPlanning } from "./ThreadEpiphanyViewPlanning";
export type { ThreadEpiphanyViewReorient } from "./ThreadEpiphanyViewReorient";
export type { ThreadEpiphanyViewRoles } from "./ThreadEpiphanyViewRoles";
export type { ThreadForkParams } from "./ThreadForkParams";
export type { ThreadForkResponse } from "./ThreadForkResponse";
export type { ThreadInjectItemsParams } from "./ThreadInjectItemsParams";

View file

@ -1914,6 +1914,8 @@ mod tests {
lenses: vec![v2::ThreadEpiphanyViewLens::Pressure],
scene: None,
jobs: Vec::new(),
roles: None,
planning: None,
pressure: Some(v2::ThreadEpiphanyPressure {
status: v2::ThreadEpiphanyPressureStatus::Ready,
level: v2::ThreadEpiphanyPressureLevel::Low,
@ -1927,6 +1929,9 @@ mod tests {
note: "Context window usage is below the compaction prep threshold."
.to_string(),
}),
reorient: None,
crrc: None,
coordinator: None,
},
};

View file

@ -3946,7 +3946,12 @@ pub struct ThreadEpiphanySceneResponse {
pub enum ThreadEpiphanyViewLens {
Scene,
Jobs,
Roles,
Planning,
Pressure,
Reorient,
Crrc,
Coordinator,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
@ -3958,23 +3963,6 @@ pub struct ThreadEpiphanyViewParams {
pub lenses: Vec<ThreadEpiphanyViewLens>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewResponse {
pub thread_id: String,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub lenses: Vec<ThreadEpiphanyViewLens>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub scene: Option<ThreadEpiphanyScene>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub jobs: Vec<ThreadEpiphanyJob>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub pressure: Option<ThreadEpiphanyPressure>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
@ -5203,6 +5191,130 @@ pub struct ThreadEpiphanyCrrcRecommendation {
pub reason: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewResponse {
pub thread_id: String,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub lenses: Vec<ThreadEpiphanyViewLens>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub scene: Option<ThreadEpiphanyScene>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub jobs: Vec<ThreadEpiphanyJob>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub roles: Option<ThreadEpiphanyViewRoles>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub planning: Option<ThreadEpiphanyViewPlanning>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub pressure: Option<ThreadEpiphanyPressure>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub reorient: Option<ThreadEpiphanyViewReorient>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub crrc: Option<ThreadEpiphanyViewCrrc>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub coordinator: Option<ThreadEpiphanyViewCoordinator>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewRoles {
pub thread_id: String,
pub source: ThreadEpiphanyRolesSource,
pub state_status: ThreadEpiphanyReorientStateStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_revision: Option<u64>,
pub roles: Vec<ThreadEpiphanyRoleLane>,
pub note: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewPlanning {
pub thread_id: String,
pub source: ThreadEpiphanyContextSource,
pub state_status: ThreadEpiphanyContextStateStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_revision: Option<u64>,
pub planning: CoreEpiphanyPlanningState,
pub summary: ThreadEpiphanyPlanningSummary,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewReorient {
pub thread_id: String,
pub source: ThreadEpiphanyReorientSource,
pub state_status: ThreadEpiphanyReorientStateStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_revision: Option<u64>,
pub decision: ThreadEpiphanyReorientDecision,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewCrrc {
pub thread_id: String,
pub source: ThreadEpiphanyReorientSource,
pub state_status: ThreadEpiphanyReorientStateStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_revision: Option<u64>,
pub pressure: ThreadEpiphanyPressure,
pub decision: ThreadEpiphanyReorientDecision,
pub recommendation: ThreadEpiphanyCrrcRecommendation,
pub reorient_binding_id: String,
pub reorient_result_status: ThreadEpiphanyReorientResultStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub reorient_job: Option<ThreadEpiphanyJob>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub reorient_finding: Option<ThreadEpiphanyReorientFinding>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub available_actions: Vec<ThreadEpiphanySceneAction>,
pub note: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyViewCoordinator {
pub thread_id: String,
pub source: ThreadEpiphanyRolesSource,
pub state_status: ThreadEpiphanyReorientStateStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_revision: Option<u64>,
pub action: ThreadEpiphanyCoordinatorAction,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub target_role: Option<ThreadEpiphanyRoleId>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub recommended_scene_action: Option<ThreadEpiphanySceneAction>,
pub requires_review: bool,
pub can_auto_run: bool,
pub reason: String,
pub source_signals: ThreadEpiphanyCoordinatorSignals,
pub roles: Vec<ThreadEpiphanyRoleLane>,
pub note: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]