Add Skills browser, Cron jobs, SOUL.md editor

- Skills: categorized list with search, detail view with markdown
- Cron: job list grouped by status, manual trigger button
- Soul: full SOUL.md editor with save/revert
- Pulse: quick link cards to Skills, Cron, Soul
- All routes proxied server-side (no CORS)
This commit is contained in:
Hermes
2026-04-09 20:59:33 -05:00
parent 1bce2a29cc
commit f721d87423
10 changed files with 501 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { NextRequest, NextResponse } from "next/server";
const GATEWAY = process.env.HERMES_GATEWAY_URL || "http://127.0.0.1:8642";
export async function POST(_req: NextRequest, { params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
try {
const res = await fetch(GATEWAY + "/api/jobs/" + id + "/run", { method: "POST" });
const data = await res.text();
return new NextResponse(data, {
status: res.status,
headers: { "content-type": "application/json" },
});
} catch {
return NextResponse.json({ error: "gateway unreachable" }, { status: 502 });
}
}