moadim 3.2.2

Loop engine for AI agents — routines over REST, MCP, and a built-in web UI
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shared `move_routine` logic for HTTP and MCP.

use crate::error::AppError;
pub(crate) use crate::routines::{MoveRoutineRequest, RoutineResponse, RoutineStore};

/// Move a routine's filesystem directory explicitly.
pub fn build(
    store: &RoutineStore,
    id: &str,
    req: MoveRoutineRequest,
) -> Result<RoutineResponse, AppError> {
    crate::routines::svc_move(store, id, req)
}