From 006ff20b94b42e14b26ce8f5f16fac8ba5c99f25 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sat, 26 Oct 2024 10:54:22 -0700 Subject: [PATCH] fix: shadcn api route (#1088) --- .../{routes => app}/api/chat/route.ts | 0 apps/registry/registry/registry.ts | 22 ++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) rename apps/registry/registry/{routes => app}/api/chat/route.ts (100%) diff --git a/apps/registry/registry/routes/api/chat/route.ts b/apps/registry/registry/app/api/chat/route.ts similarity index 100% rename from apps/registry/registry/routes/api/chat/route.ts rename to apps/registry/registry/app/api/chat/route.ts diff --git a/apps/registry/registry/registry.ts b/apps/registry/registry/registry.ts index 480ab24d4..cf2e3c503 100644 --- a/apps/registry/registry/registry.ts +++ b/apps/registry/registry/registry.ts @@ -43,8 +43,8 @@ export const registry: RegistryItem[] = [ files: [ { type: "registry:page", - path: "routes/api/chat/route.ts", - target: "app/routes/api/chat/route.ts", + path: "app/api/chat/route.ts", + target: "app/api/chat/route.ts", }, ], registryDependencies: ["https://r.assistant-ui.com/assistant-ui"], @@ -57,7 +57,23 @@ export const registry: RegistryItem[] = [ { type: "registry:component", path: "components/assistant-ui/thread.tsx", - target: "components/assistant-ui/thread.tsx", + target: "components/assistant-ui/my-assistant.tsx", + }, + ], + registryDependencies: [ + "https://r.assistant-ui.com/assistant-ui", + "https://r.assistant-ui.com/markdown", + "https://r.assistant-ui.com/edge-backend", + ], + }, + { + name: "b/chat/quick-start", + type: "registry:block", + files: [ + { + type: "registry:component", + path: "components/assistant-ui/thread.tsx", + target: "components/assistant-ui/my-assistant.tsx", }, ], registryDependencies: [