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.
This commit is contained in:
admin
2026-05-05 19:47:30 +00:00
Unverified
parent ac5de0df28
commit 91165bf6d1

View File

@@ -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