From 791a162c09a8a63ef185d206aeb2241205cbe419 Mon Sep 17 00:00:00 2001 From: Avaer Kazmer Date: Fri, 7 Feb 2025 18:18:37 -0800 Subject: [PATCH] Try loading character path from repo root --- packages/agent/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/agent/src/index.ts b/packages/agent/src/index.ts index 5f1af9494e3..476e3937f5c 100644 --- a/packages/agent/src/index.ts +++ b/packages/agent/src/index.ts @@ -184,6 +184,7 @@ async function loadCharacterTryPath(characterPath: string): Promise { // Try different path resolutions in order const pathsToTry = [ characterPath, // exact path as specified + path.resolve(process.cwd(), '..', '..', characterPath), // relative to root directory path.resolve(process.cwd(), characterPath), // relative to cwd path.resolve(process.cwd(), "agent", characterPath), // Add this path.resolve(__dirname, characterPath), // relative to current script