- /playground page: pick a runnable skill, edit JSON input, see live result - /api/run (list runnable skills) + /api/run/[skill] (execute pure/market-data skills) - lib/safe-skills.ts: allowlist of keyless/read-only domains (pure + marketdata) - next.config transpilePackages so routes can import @stoa/skills - dashboard nav links all pages (agents/playground/connect added) - web app: 8 pages + 8 API routes
11 lines
357 B
TypeScript
11 lines
357 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { getRunnableSkills } from "@/lib/safe-skills";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
/// GET /api/run — list the skills runnable in the playground (pure + read-only).
|
|
export async function GET() {
|
|
const skills = getRunnableSkills();
|
|
return NextResponse.json({ count: skills.length, skills });
|
|
}
|