From 84bdf7313edd5d53ab21fc02a14d74eeee4cb15a Mon Sep 17 00:00:00 2001 From: lim Date: Wed, 19 Nov 2025 13:20:00 +0000 Subject: [PATCH 1/4] chore --- .vscode/settings.json | 1 + lib/k8s/sandbox-manager.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 581a1c0..534b113 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,7 @@ "clusterdefinition", "clusterversion", "fullstackagent", + "homevn", "kbcli", "kubeblocks", "Kubeconfig", diff --git a/lib/k8s/sandbox-manager.ts b/lib/k8s/sandbox-manager.ts index 9cc599b..3f51ce8 100644 --- a/lib/k8s/sandbox-manager.ts +++ b/lib/k8s/sandbox-manager.ts @@ -765,7 +765,7 @@ exec filebrowser --database /database/filebrowser.db }, volumeMounts: [ { - name: 'vn-homevn-agent', + name: 'vn-homevn-fulling', mountPath: '/srv', }, { From 90bb63c5a0e9478145971f19c5ecb720d79d2ef3 Mon Sep 17 00:00:00 2001 From: lim Date: Wed, 19 Nov 2025 13:43:23 +0000 Subject: [PATCH 2/4] chore --- lib/util/filebrowser.ts | 2 +- sandbox/Dockerfile | 6 ++++++ sandbox/ttyd-auth.sh | 28 +++++++++++++++++++++++++++- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/lib/util/filebrowser.ts b/lib/util/filebrowser.ts index 979a042..a129004 100644 --- a/lib/util/filebrowser.ts +++ b/lib/util/filebrowser.ts @@ -125,7 +125,7 @@ export async function uploadFileToFileBrowser( .join('/') // Build TUS endpoint with path - const tusEndpoint = `${fileBrowserUrl}/api/tus${encodedPath}/${encodedFilename}?override=false` + const tusEndpoint = `${fileBrowserUrl}/api/tus${encodedPath}/${encodedFilename}?override=true` return new Promise((resolve, reject) => { const upload = new tus.Upload(file, { diff --git a/sandbox/Dockerfile b/sandbox/Dockerfile index b31ca5d..865f301 100644 --- a/sandbox/Dockerfile +++ b/sandbox/Dockerfile @@ -23,6 +23,8 @@ ENV DEBIAN_FRONTEND=noninteractive \ PATH="/root/.local/bin:/home/fulling/.local/bin:$PATH" \ TERM=xterm-256color \ COLORTERM=truecolor \ + LANG=en_US.UTF-8 \ + LC_ALL=en_US.UTF-8 \ ANTHROPIC_BASE_URL="" \ ANTHROPIC_AUTH_TOKEN="" \ ANTHROPIC_MODEL="" \ @@ -42,8 +44,10 @@ RUN set -eux; \ build-essential \ ca-certificates \ curl \ + fonts-noto-cjk \ git \ gnupg \ + locales \ lsb-release \ nano \ python3 \ @@ -53,6 +57,8 @@ RUN set -eux; \ unzip \ vim \ wget; \ + # Generate locales + locale-gen en_US.UTF-8 zh_CN.UTF-8; \ # Add Node.js 22.x LTS repository curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -; \ # Add PostgreSQL repository (using new gpg keyring method) diff --git a/sandbox/ttyd-auth.sh b/sandbox/ttyd-auth.sh index 87d8c52..76847cc 100644 --- a/sandbox/ttyd-auth.sh +++ b/sandbox/ttyd-auth.sh @@ -35,6 +35,12 @@ echo "✓ Authentication successful" # Optional: Handle terminal session ID for file upload directory tracking if [ "$#" -ge 2 ] && [ -n "$2" ]; then + # Validate format: only allow alphanumeric, hyphens, and underscores + if [[ ! "$2" =~ ^[a-zA-Z0-9_-]+$ ]]; then + echo "ERROR: Invalid session ID format" + sleep infinity + fi + TERMINAL_SESSION_ID="$2" export TERMINAL_SESSION_ID @@ -46,5 +52,25 @@ if [ "$#" -ge 2 ] && [ -n "$2" ]; then echo "✓ Terminal session: ${TERMINAL_SESSION_ID}" fi +# Print welcome message and instructions +echo "" +echo "👋 Welcome to your FullstackAgent Sandbox!" +echo "========================================" +echo "" +echo "🚀 Getting Started:" +echo " Your Next.js project is ready in this directory." +echo "" +echo "📦 1. Install dependencies:" +echo " pnpm install" +echo "" +echo "▶️ 2. Start the development server:" +echo " pnpm dev" +echo "" +echo "🤖 3. Use AI assistance:" +echo " claude" +echo "" +echo "Happy coding!" +echo "" + # Start bash shell -exec /bin/bash +exec /bin/bash \ No newline at end of file From 833847244781756c9d5a8970a22957fad9277fff Mon Sep 17 00:00:00 2001 From: lim Date: Wed, 19 Nov 2025 13:45:37 +0000 Subject: [PATCH 3/4] chore --- lib/k8s/sandbox-manager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/k8s/sandbox-manager.ts b/lib/k8s/sandbox-manager.ts index 3f51ce8..2de91f4 100644 --- a/lib/k8s/sandbox-manager.ts +++ b/lib/k8s/sandbox-manager.ts @@ -706,7 +706,8 @@ export class SandboxManager { }, { name: 'filebrowser', - image: 'filebrowser/filebrowser:latest', + // docker pull filebrowser/filebrowser:v2-s6 + image: 'filebrowser/filebrowser:v2-s6', command: ['/bin/sh', '-c'], args: [ ` From e735bcb34ea4b565852d082d06a8e49857316b05 Mon Sep 17 00:00:00 2001 From: lim Date: Wed, 19 Nov 2025 13:54:47 +0000 Subject: [PATCH 4/4] chore --- sandbox/ttyd-auth.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sandbox/ttyd-auth.sh b/sandbox/ttyd-auth.sh index 76847cc..0be5e98 100644 --- a/sandbox/ttyd-auth.sh +++ b/sandbox/ttyd-auth.sh @@ -69,6 +69,11 @@ echo "" echo "🤖 3. Use AI assistance:" echo " claude" echo "" +echo "📎 4. Upload files:" +echo " • Drag and drop files to the terminal" +echo " • Paste images to upload" +echo " • Files will be uploaded to the current directory" +echo "" echo "Happy coding!" echo ""