@@ -1130,10 +1130,14 @@ function checkAgentsInstalled() {
|
||||
}
|
||||
|
||||
for (const agent of expectedAgents) {
|
||||
// Check both .md (standard) and .agent.md (Copilot) file formats.
|
||||
// Check all runtime agent file formats:
|
||||
// - .md (Claude/OpenCode/Gemini/etc.)
|
||||
// - .agent.md (Copilot)
|
||||
// - .toml (Codex)
|
||||
const agentFile = path.join(agentsDir, `${agent}.md`);
|
||||
const agentFileCopilot = path.join(agentsDir, `${agent}.agent.md`);
|
||||
if (fs.existsSync(agentFile) || fs.existsSync(agentFileCopilot)) {
|
||||
const agentFileCodex = path.join(agentsDir, `${agent}.toml`);
|
||||
if (fs.existsSync(agentFile) || fs.existsSync(agentFileCopilot) || fs.existsSync(agentFileCodex)) {
|
||||
installed.push(agent);
|
||||
} else {
|
||||
missing.push(agent);
|
||||
|
||||
Reference in New Issue
Block a user