From be167846eb0e6bdd12de588ae00bcade7d929c83 Mon Sep 17 00:00:00 2001 From: na-trium-144 <100704180+na-trium-144@users.noreply.github.com> Date: Wed, 12 Aug 2026 05:01:48 +0000 Subject: [PATCH 1/8] feat: Add /[lang]/sandbox page with REPL, code execution, file addition, and section chat --- app/(docs)/@chat/chat/[chatId]/chatArea.tsx | 24 +- .../@docs/[lang]/[pageId]/pageContent.tsx | 2 +- app/(docs)/@docs/[lang]/sandbox/page.tsx | 55 +++++ .../@docs/[lang]/sandbox/sandboxContent.tsx | 216 ++++++++++++++++++ app/api/chat/route.ts | 146 +++++++----- app/lib/chatHistory.ts | 12 + app/lib/docs.ts | 16 ++ app/sidebar.tsx | 14 ++ app/terminal/page.tsx | 69 +----- app/terminal/sampleConfig.ts | 72 ++++++ 10 files changed, 487 insertions(+), 139 deletions(-) create mode 100644 app/(docs)/@docs/[lang]/sandbox/page.tsx create mode 100644 app/(docs)/@docs/[lang]/sandbox/sandboxContent.tsx create mode 100644 app/terminal/sampleConfig.ts diff --git a/app/(docs)/@chat/chat/[chatId]/chatArea.tsx b/app/(docs)/@chat/chat/[chatId]/chatArea.tsx index 63bef250..0de65b0e 100644 --- a/app/(docs)/@chat/chat/[chatId]/chatArea.tsx +++ b/app/(docs)/@chat/chat/[chatId]/chatArea.tsx @@ -127,20 +127,28 @@ export function ChatAreaContent(props: Props) {
{filenameError}
+ )} + + {userFiles.map((filename) => ( +