huskies: merge 1032
This commit is contained in:
@@ -66,14 +66,9 @@ pub(crate) async fn tool_rebuild_and_restart(ctx: &AppContext) -> Result<String,
|
||||
/// WebSocket session, which presents a dialog to the user. Blocks until the
|
||||
/// user approves or denies (with a 5-minute timeout).
|
||||
pub(crate) fn tool_move_story(args: &Value, _ctx: &AppContext) -> Result<String, String> {
|
||||
let story_id = args
|
||||
.get("story_id")
|
||||
.and_then(|v| v.as_str())
|
||||
.ok_or("Missing required argument: story_id")?;
|
||||
let target_stage = args
|
||||
.get("target_stage")
|
||||
.and_then(|v| v.as_str())
|
||||
.ok_or("Missing required argument: target_stage")?;
|
||||
let req = crate::validation::MoveStoryRequest::from_json(args)?;
|
||||
let story_id = req.story_id.as_str();
|
||||
let target_stage = req.target_stage.as_str();
|
||||
|
||||
let (from_stage, to_stage) = move_story_to_stage(story_id, target_stage)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user