From d0e333451bd794a419e96f28db925772950ea156 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Sat, 4 Jul 2026 00:29:42 +0200 Subject: feat: add mastracode integration (#788) * feat: add mastracode integration refs #337 Co-authored-by: Mastra Code (openai/gpt-5.5) Co-authored-by: Ogulcan Celik --- src/integration/env.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/integration/env.rs') diff --git a/src/integration/env.rs b/src/integration/env.rs index 575c4c9a..ef946729 100644 --- a/src/integration/env.rs +++ b/src/integration/env.rs @@ -124,6 +124,10 @@ pub(crate) fn cursor_dir() -> io::Result { config_dir_from_env_or_home(CURSOR_CONFIG_DIR_ENV_VAR, &[".cursor"]) } +pub(crate) fn mastracode_dir() -> io::Result { + Ok(home_dir()?.join(".mastracode")) +} + pub(crate) fn home_dir() -> io::Result { if let Some(home) = std::env::var_os("HOME").filter(|value| !value.is_empty()) { return Ok(PathBuf::from(home)); -- cgit v1.2.3