mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
Fix command-source API for unified skills directory structure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c026a896aa
commit
f0d37e48c7
@@ -9,8 +9,7 @@ const PROJECT_ROOT = join(__dirname, "../..");
|
||||
export default function handler(req, res) {
|
||||
try {
|
||||
const { id } = req.query;
|
||||
const sourceDir = join(PROJECT_ROOT, "source");
|
||||
const commandPath = join(sourceDir, "commands", `${id}.md`);
|
||||
const commandPath = join(PROJECT_ROOT, "source", "skills", id, "SKILL.md");
|
||||
|
||||
if (!existsSync(commandPath)) {
|
||||
return res.status(404).json({ error: "Command not found" });
|
||||
|
||||
Reference in New Issue
Block a user