diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 44b6d5c8..652cac01 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -16,7 +16,6 @@ mod channels; mod completion; mod config; -mod routines; mod doctor; #[cfg(feature = "import")] pub mod import; @@ -25,6 +24,7 @@ pub mod memory; pub mod oauth_defaults; mod pairing; mod registry; +mod routines; mod service; mod skills; pub mod status; @@ -33,7 +33,6 @@ mod tool; pub use channels::{ChannelsCommand, run_channels_command}; pub use completion::Completion; pub use config::{ConfigCommand, run_config_command}; -pub use routines::{RoutinesCommand, run_routines_command}; pub use doctor::run_doctor_command; #[cfg(feature = "import")] pub use import::{ImportCommand, run_import_command}; @@ -42,6 +41,7 @@ pub use memory::MemoryCommand; pub use memory::run_memory_command_with_db; pub use pairing::{PairingCommand, run_pairing_command, run_pairing_command_with_store}; pub use registry::{RegistryCommand, run_registry_command}; +pub use routines::{RoutinesCommand, run_routines_command}; pub use service::{ServiceCommand, run_service_command}; pub use skills::{SkillsCommand, run_skills_command}; pub use status::run_status_command; diff --git a/src/cli/routines.rs b/src/cli/routines.rs index 305aca63..852fc41f 100644 --- a/src/cli/routines.rs +++ b/src/cli/routines.rs @@ -330,6 +330,8 @@ async fn create( prompt: prompt.to_string(), context_paths: Vec::new(), max_tokens: 4096, + use_tools: false, + max_tool_rounds: 0, }, guardrails: RoutineGuardrails { cooldown: std::time::Duration::from_secs(cooldown_secs), diff --git a/src/tools/builtin/memory.rs b/src/tools/builtin/memory.rs index 87ae7fa5..dadab877 100644 --- a/src/tools/builtin/memory.rs +++ b/src/tools/builtin/memory.rs @@ -420,26 +420,6 @@ impl Tool for MemoryReadTool { } } -#[cfg(test)] -mod path_routing_tests { - use super::looks_like_filesystem_path; - - #[test] - fn detects_filesystem_paths() { - assert!(looks_like_filesystem_path("/Users/nige/file.md")); - assert!(looks_like_filesystem_path("C:\\Users\\nige\\file.md")); - assert!(looks_like_filesystem_path("D:/work/file.md")); - assert!(looks_like_filesystem_path("~/notes.md")); - } - - #[test] - fn allows_workspace_memory_paths() { - assert!(!looks_like_filesystem_path("MEMORY.md")); - assert!(!looks_like_filesystem_path("daily/2026-03-11.md")); - assert!(!looks_like_filesystem_path("projects/alpha/notes.md")); - } -} - /// Tool for viewing workspace structure as a tree. /// /// Returns a hierarchical view of files and directories with configurable depth. @@ -636,3 +616,23 @@ mod tests { assert_eq!(schema["properties"]["depth"]["default"], 1); } } + +#[cfg(test)] +mod path_routing_tests { + use super::looks_like_filesystem_path; + + #[test] + fn detects_filesystem_paths() { + assert!(looks_like_filesystem_path("/Users/nige/file.md")); + assert!(looks_like_filesystem_path("C:\\Users\\nige\\file.md")); + assert!(looks_like_filesystem_path("D:/work/file.md")); + assert!(looks_like_filesystem_path("~/notes.md")); + } + + #[test] + fn allows_workspace_memory_paths() { + assert!(!looks_like_filesystem_path("MEMORY.md")); + assert!(!looks_like_filesystem_path("daily/2026-03-11.md")); + assert!(!looks_like_filesystem_path("projects/alpha/notes.md")); + } +} diff --git a/src/tools/mcp/auth.rs b/src/tools/mcp/auth.rs index a91cb8fc..81f83832 100644 --- a/src/tools/mcp/auth.rs +++ b/src/tools/mcp/auth.rs @@ -1751,7 +1751,11 @@ mod tests { "https://app.attio.com/oidc/authorize", "test-client", "http://127.0.0.1:9876/callback", - &["mcp".to_string(), "offline_access".to_string(), "openid".to_string()], + &[ + "mcp".to_string(), + "offline_access".to_string(), + "openid".to_string(), + ], Some(&pkce), &extra_params, Some("https://mcp.attio.com/mcp"),