From 0a8000dfe17a8d501ff8ce849538712859167e76 Mon Sep 17 00:00:00 2001 From: mibali Date: Tue, 26 Aug 2025 16:49:19 +0100 Subject: [PATCH 1/7] Replace Langbase with runLLM widget integration - Removed @langbase/components and langbase dependencies - Removed custom chat components and API routes - Added runLLM widget via Next.js Script component in layout.tsx - Configured runLLM with Sourcegraph brand styling - Added AGENTS.md with integration documentation - Assistant ID placeholder needs to be updated with actual ID Co-authored-by: Amp Amp-Thread-ID: https://ampcode.com/threads/T-92230f6d-ca98-498f-8898-bffc173575ef --- AGENTS.md | 54 + package-lock.json | 21241 +++++++++++--------------- package.json | 2 - scripts/langbase-create-memory.ts | 18 - src/app/api/chat/route.relevancy.ts | 111 - src/app/api/chat/route.ts | 30 - src/app/chat.tsx | 51 - src/app/layout.tsx | 17 +- src/components/ChatBot/index.tsx | 39 - src/components/ChatBot/styles.css | 90 - 10 files changed, 8627 insertions(+), 13026 deletions(-) create mode 100644 AGENTS.md delete mode 100644 scripts/langbase-create-memory.ts delete mode 100644 src/app/api/chat/route.relevancy.ts delete mode 100644 src/app/api/chat/route.ts delete mode 100644 src/app/chat.tsx delete mode 100644 src/components/ChatBot/index.tsx delete mode 100644 src/components/ChatBot/styles.css diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000..071416993 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,54 @@ +# Sourcegraph Docs - Agent Instructions + +## Build Commands + +- **Type Check**: `npx tsc --noEmit` +- **Build**: `npm run build` +- **Dev**: `npm run dev` +- **Lint**: `npm run lint` + +## AI Chat Integration + +This site uses **runLLM** for the AI chat widget. The integration is implemented via: + +- **Location**: `src/app/layout.tsx` +- **Widget**: runLLM script loaded via Next.js `