mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
28 lines
685 B
Rust
28 lines
685 B
Rust
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
use ts_rs::TS;
|
|
|
|
// Types for the TODO tool arguments matching codex-vscode/todo-mcp/src/main.rs
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, TS)]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum StepStatus {
|
|
Pending,
|
|
InProgress,
|
|
Completed,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, TS)]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct PlanItemArg {
|
|
pub step: String,
|
|
pub status: StepStatus,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, TS)]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct UpdatePlanArgs {
|
|
#[serde(default)]
|
|
pub name: Option<String>,
|
|
pub plan: Vec<PlanItemArg>,
|
|
}
|