- apps/web: Next.js dashboard — pages (/, /skills, /marketplace, /protected) + API routes
(/api/health, /api/skills, /api/services, /api/x402/weather) adapted from the real x402
next fullstack example; reads a generated static skills catalog (251 skills, 62 domains)
- generated skills.json catalog (gen-catalog now emits JSON for web + tooling)
- contracts: interfaces/, libraries/ (SafeTransferLib, SignatureLib, StoaTypes), mocks/,
DeployAtlantic/DeployLocal/ExportAbis scripts — all compile
- sdk: types, errors, addresses, chains, abis modules (wired into barrel; 0 tsc errors)
- mercator: planner (seller scoring), scenario, trace, wallet, demo runners
- examples: numbered demos (05-08,10) + x402 seller server
- config/docs: turbo.json, .prettierrc, eslint.config.js, SUBMISSION.md,
docs/HACKATHON_SUBMISSION.md, deployments/{pharos-atlantic,localhost}.json
- oss/ (gitignored): cloned x402, pharos-agent-kit, pharos-examples, pharos-skill-engine
14 lines
311 B
TypeScript
14 lines
311 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { getCatalog, getSkillCount } from "@/lib/stoa";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET() {
|
|
const catalog = getCatalog();
|
|
return NextResponse.json({
|
|
total: getSkillCount(),
|
|
domains: catalog.length,
|
|
catalog,
|
|
});
|
|
}
|