27 lines
858 B
TypeScript
27 lines
858 B
TypeScript
import type { FastifyInstance } from "fastify";
|
|
|
|
import { allowedAgentScopes, deniedMvpCapabilities, reporterPresetScopes, taskAuthorPresetScopes } from "../domain/scopes.js";
|
|
import { mcpToolDefinitions } from "../mcp/tools.js";
|
|
|
|
export async function registerAgentRoutes(app: FastifyInstance): Promise<void> {
|
|
app.get("/api/v1/meta/capabilities", async () => ({
|
|
ok: true,
|
|
presets: {
|
|
task_author: taskAuthorPresetScopes,
|
|
reporter: reporterPresetScopes,
|
|
},
|
|
allowed_scopes: allowedAgentScopes,
|
|
denied_mvp_capabilities: deniedMvpCapabilities,
|
|
mcp_tools: mcpToolDefinitions,
|
|
}));
|
|
|
|
app.post("/api/v1/agents", async (_request, reply) =>
|
|
reply.status(501).send({
|
|
ok: false,
|
|
error: "not_implemented",
|
|
message: "Agent persistence starts in Phase 1 after database migrations are added.",
|
|
})
|
|
);
|
|
}
|
|
|