mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
28 lines
715 B
Rust
28 lines
715 B
Rust
use schemars::JsonSchema;
|
|
use serde::{Deserialize, Serialize};
|
|
use ts_rs::TS;
|
|
|
|
// Types for the TODO tool arguments matching codex-vscode/todo-mcp/src/main.rs
|
|
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, TS)]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum StepStatus {
|
|
Pending,
|
|
InProgress,
|
|
Completed,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, TS)]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct PlanItemArg {
|
|
pub step: String,
|
|
pub status: StepStatus,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, TS)]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct UpdatePlanArgs {
|
|
#[serde(default)]
|
|
pub explanation: Option<String>,
|
|
pub plan: Vec<PlanItemArg>,
|
|
}
|