Download codex-rs/protocol/src/plan_tool.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 801 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/protocol/src/plan_tool.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/protocol/src/plan_tool.rs
-
curl -L -o plan_tool.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/protocol/src/plan_tool.rs
801 Bytes
| use schemars::JsonSchema; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| use ts_rs::TS; | |
| // Types for the TODO tool arguments matching codex-vscode/todo-mcp/src/main.rs | |
| pub enum StepStatus { | |
| Pending, | |
| InProgress, | |
| Completed, | |
| } | |
| pub struct PlanItemArg { | |
| pub step: String, | |
| pub status: StepStatus, | |
| } | |
| pub struct UpdatePlanArgs { | |
| /// Arguments for the `update_plan` todo/checklist tool (not plan mode). | |
| pub explanation: Option<String>, | |
| pub plan: Vec<PlanItemArg>, | |
| } | |