Compare commits
5 Commits
817cc5585e
...
47b19d7249
| Author | SHA1 | Date |
|---|---|---|
|
|
47b19d7249 | |
|
|
131cca2939 | |
|
|
9e2595503f | |
|
|
28ecbfe9b5 | |
|
|
033aa717f4 |
|
|
@ -235,7 +235,7 @@ async function buildAllAgents(projectDir, force = false) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const agentName = file.replace('.agent.yaml', '');
|
const agentName = path.basename(file, '.agent.yaml');
|
||||||
const agentYamlPath = path.join(agentsDir, file);
|
const agentYamlPath = path.join(agentsDir, file);
|
||||||
const outputPath = path.join(agentsDir, `${agentName}.md`);
|
const outputPath = path.join(agentsDir, `${agentName}.md`);
|
||||||
|
|
||||||
|
|
@ -330,7 +330,7 @@ async function checkBuildStatus(projectDir) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const agentName = file.replace('.agent.yaml', '');
|
const agentName = path.basename(file, '.agent.yaml');
|
||||||
const agentYamlPath = path.join(agentsDir, file);
|
const agentYamlPath = path.join(agentsDir, file);
|
||||||
const outputPath = path.join(agentsDir, `${agentName}.md`);
|
const outputPath = path.join(agentsDir, `${agentName}.md`);
|
||||||
|
|
||||||
|
|
@ -449,7 +449,7 @@ async function listAvailableAgents(projectDir) {
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
if (file.endsWith('.agent.yaml')) {
|
if (file.endsWith('.agent.yaml')) {
|
||||||
const agentName = file.replace('.agent.yaml', '');
|
const agentName = path.basename(file, '.agent.yaml');
|
||||||
console.log(chalk.dim(` - ${agentName} (${module})`));
|
console.log(chalk.dim(` - ${agentName} (${module})`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue