From 633725bd88331eba0aa910199fa4a243d7cb245b Mon Sep 17 00:00:00 2001 From: Bruno Galego Date: Thu, 21 Nov 2024 13:23:16 +0000 Subject: [PATCH] fix loadCharacter path gain agent does runs in root --- agent/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/src/index.ts b/agent/src/index.ts index 3b39e741f5..cb580eed77 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -70,7 +70,7 @@ export async function loadCharacters( ): Promise { let characterPaths = charactersArg?.split(",").map((filePath) => { if (path.basename(filePath) === filePath) { - filePath = "./characters/" + filePath; + filePath = "../characters/" + filePath; } return path.resolve(process.cwd(), filePath.trim()); });