From 91165bf6d12dee995b03e30efd05ce53ee32bf17 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 5 May 2026 19:47:30 +0000 Subject: [PATCH] feat: add infrastructure context to zCode system prompt Non-secret only: Gitea repo URL, systemd service name, deploy workflow, self-evolve push behavior. Zero credentials in source. --- src/bot/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bot/index.js b/src/bot/index.js index b269216b..a9e2b3c4 100644 --- a/src/bot/index.js +++ b/src/bot/index.js @@ -79,6 +79,10 @@ function buildSystemPrompt(svc) { lines.push(`- **${a.id}** (${a.name}): ${a.description}`); } lines.push('', `## Infrastructure +- Source repo: https://github.rommark.dev/admin/zCode-CLI-X.git (Gitea — git push origin main) +- Running on VPS as systemd user service: zcode.service +- Deploy: git push → pull on VPS → npm install → systemctl restart zcode +- Self-evolve tool auto-commits + pushes to Gitea after code changes - RTK (Rust Token Killer) active - Z.AI API via ${svc.config?.api?.baseUrl || 'z.ai'} - Telegram webhook + WebSocket