1// GET /identity.md: the identity spec as plain markdown, for agents.2import { define } from "../utils.ts";3import { identitySpec } from "../lib/identity_spec.ts";4import { publicOrigin } from "../lib/prompt.ts";56export const handler = define.handlers({7 GET(ctx) {8 const origin = Deno.env.get("MOSAIC_PUBLIC_URL")9 ? publicOrigin()10 : ctx.url.origin;11 return new Response(identitySpec(origin), {12 headers: { "Content-Type": "text/markdown; charset=utf-8" },13 });14 },15});