We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e74b4a1 commit 0cb293aCopy full SHA for 0cb293a
extensions/cli/src/services/AgentFileService.ts
@@ -62,12 +62,9 @@ export class AgentFileService
62
// slug COULD be path, fall back to relative path
63
}
64
65
- if (agentPath.startsWith("file:/")) {
66
- const path = fileURLToPath(agentPath);
67
- const content = fs.readFileSync(path, "utf-8");
68
- return parseAgentFile(content);
69
- }
70
- const resolvedPath = path.resolve(agentPath);
+ const resolvedPath = agentPath.startsWith("file:/")
+ ? fileURLToPath(agentPath)
+ : path.resolve(agentPath);
71
const content = fs.readFileSync(resolvedPath, "utf-8");
72
return parseAgentFile(content);
73
} catch (e) {
0 commit comments