stoa/apps/web/app/api/run/route.ts
stoa 1a9b5f90a5 feat(web): live skill playground — run read-only skills server-side
- /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
2026-06-12 09:57:46 +03:00

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 });
}