diff options
| author | soryu <soryu@soryu.co> | 2026-02-08 12:32:53 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-08 12:32:53 +0000 |
| commit | 657a8e55796c9f0cc6f30937de545ed91f052063 (patch) | |
| tree | 7944d9e3a4d9e38216fd6358f85d1636d2f75d1e /makima/src/daemon/api | |
| parent | f0a92073702d614302deff5e83c14ffec3ae6db0 (diff) | |
| download | soryu-657a8e55796c9f0cc6f30937de545ed91f052063.tar.gz soryu-657a8e55796c9f0cc6f30937de545ed91f052063.zip | |
Fixes for directive chain init
Diffstat (limited to 'makima/src/daemon/api')
| -rw-r--r-- | makima/src/daemon/api/directive.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makima/src/daemon/api/directive.rs b/makima/src/daemon/api/directive.rs index 3589e78..c51882b 100644 --- a/makima/src/daemon/api/directive.rs +++ b/makima/src/daemon/api/directive.rs @@ -71,6 +71,26 @@ impl ApiClient { .await } + /// Submit a chain plan for a directive. + pub async fn directive_submit_plan( + &self, + directive_id: Uuid, + plan_json: &str, + ) -> Result<JsonValue, ApiError> { + #[derive(serde::Serialize)] + #[serde(rename_all = "camelCase")] + struct SubmitPlanBody { + plan: String, + } + self.post( + &format!("/api/v1/directives/{}/submit-plan", directive_id), + &SubmitPlanBody { + plan: plan_json.to_string(), + }, + ) + .await + } + /// List evaluations for a step. pub async fn directive_evaluations( &self, |
