Skip to content

Commit

Permalink
Try loading character path from repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
avaer committed Feb 8, 2025
1 parent d741060 commit 791a162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ async function loadCharacterTryPath(characterPath: string): Promise<Character> {
// 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
Expand Down

0 comments on commit 791a162

Please sign in to comment.