aboutsummaryrefslogtreecommitdiff
path: root/src/integration/env.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-13 18:36:47 +0300
committerGitHub <noreply@github.com>2026-09-13 17:36:47 +0200
commitfc1cb77f0572948552377b23f7754a3016ac7dfa (patch)
tree5412b796aaaa00894fe628b2ffed8d747e6f452d /src/integration/env.rs
parent3be35231497f33f38aeffd84df02642479995bc6 (diff)
feat: add Letta Code detection and restore (#3107)
refs #3106 Co-authored-by: Cameron <cameron@pfiffer.org>
Diffstat (limited to 'src/integration/env.rs')
-rw-r--r--src/integration/env.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/integration/env.rs b/src/integration/env.rs
index 48320c72..548c1386 100644
--- a/src/integration/env.rs
+++ b/src/integration/env.rs
@@ -175,6 +175,10 @@ pub(crate) fn qwen_dir() -> io::Result<PathBuf> {
config_dir_from_env_or_home(QWEN_HOME_ENV_VAR, &[".qwen"])
}
+pub(crate) fn letta_dir() -> io::Result<PathBuf> {
+ Ok(home_dir()?.join(".letta"))
+}
+
pub(crate) fn cursor_dir() -> io::Result<PathBuf> {
config_dir_from_env_or_home(CURSOR_CONFIG_DIR_ENV_VAR, &[".cursor"])
}