UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

2 lines (1 loc) • 2.74 kB
export declare const SHOPIFY_UCP_CHANNEL_TEMPLATE = "import { defineChannel, GET } from \"eve/channels\";\n\nconst profile = {\n ucp: {\n version: \"2026-04-08\",\n services: {\n \"dev.ucp.shopping\": [\n {\n version: \"2026-04-08\",\n spec: \"https://ucp.dev/2026-04-08/specification/overview\",\n transport: \"mcp\",\n schema: \"https://ucp.dev/2026-04-08/services/shopping/mcp.openrpc.json\",\n },\n ],\n },\n capabilities: {\n \"dev.ucp.shopping.checkout\": [{ version: \"2026-04-08\" }],\n \"dev.ucp.shopping.fulfillment\": [\n {\n version: \"2026-04-08\",\n extends: [\"dev.ucp.shopping.checkout\", \"dev.ucp.shopping.cart\"],\n },\n ],\n \"dev.ucp.shopping.buyer_consent\": [\n {\n version: \"2026-04-08\",\n extends: \"dev.ucp.shopping.checkout\",\n },\n ],\n \"dev.ucp.shopping.discount\": [\n {\n version: \"2026-04-08\",\n extends: [\"dev.ucp.shopping.checkout\", \"dev.ucp.shopping.cart\"],\n },\n ],\n \"dev.ucp.shopping.cart\": [\n {\n version: \"2026-04-08\",\n spec: \"https://ucp.dev/2026-04-08/specification/cart\",\n schema: \"https://ucp.dev/2026-04-08/schemas/shopping/cart.json\",\n },\n ],\n \"dev.ucp.shopping.catalog.search\": [\n {\n version: \"2026-04-08\",\n spec: \"https://ucp.dev/2026-04-08/specification/catalog/search\",\n schema: \"https://ucp.dev/2026-04-08/schemas/shopping/catalog_search.json\",\n },\n ],\n \"dev.ucp.shopping.catalog.lookup\": [\n {\n version: \"2026-04-08\",\n spec: \"https://ucp.dev/2026-04-08/specification/catalog/lookup\",\n schema: \"https://ucp.dev/2026-04-08/schemas/shopping/catalog_lookup.json\",\n },\n ],\n \"dev.shopify.catalog\": [\n {\n version: \"2026-04-08\",\n spec: \"https://shopify.dev/docs/agents/catalog/storefront-catalog\",\n schema: \"https://shopify.dev/ucp/schemas/2026-04-08/shopify_catalog.json\",\n extends: [\n \"dev.ucp.shopping.catalog.lookup\",\n \"dev.ucp.shopping.catalog.search\",\n ],\n },\n ],\n },\n payment_handlers: {},\n },\n};\n\nconst body = JSON.stringify(profile);\n\nexport default defineChannel({\n cors: true,\n routes: [\n GET(\"/.well-known/ucp\", async () => {\n return new Response(body, {\n headers: {\n \"content-type\": \"application/json\",\n \"cache-control\": \"public, max-age=300\",\n },\n });\n }),\n ],\n});\n";