Commit Graph

18 Commits

Author SHA1 Message Date
7a601b57b8 fix: rotate Gitea token and prevent empty assistant messages in history
- Empty message fix: skip pushing assistant msg to history when both
  content and tool_calls are absent (GLM-5 mid-reasoning token exhaustion).
  Also filter preexisting empty assistant messages from returned history.
- System prompt now correctly injects knowledgeContext from opts into the
  Tier-B system message (was missing in the loop's buildMessages).
- GITEA_API_TOKEN updated externally in Coolify (old token was invalid).

Made-with: Cursor
2026-02-27 20:17:34 -08:00
3417578c28 fix: decode GCP_SA_KEY_BASE64 for Vertex AI auth (avoids Dockerfile injection issues)
Made-with: Cursor
2026-02-27 20:00:21 -08:00
229987e788 fix: use service account JSON key for Vertex AI auth instead of metadata server
The VM's metadata server doesn't grant cloud-platform scope by default.
Read GOOGLE_APPLICATION_CREDENTIALS_JSON env var (service account key JSON)
and pass it directly to GoogleAuth. Falls back to metadata server if unset.
This restores GLM-5 access via Vertex AI.

Made-with: Cursor
2026-02-27 19:51:48 -08:00
1dafd05371 fix: replace gcloud shell-out with google-auth-library for Vertex AI tokens
gcloud is not available inside the Docker container. Use google-auth-library
instead, which reads credentials from the GCP metadata server (works on any
GCP VM) or GOOGLE_APPLICATION_CREDENTIALS env var. Also rebuilds dist/.

Made-with: Cursor
2026-02-27 19:38:07 -08:00
59fe313963 fix: add all missing source files (llm.ts, updated agent-runner/agents)
src/llm.ts was never committed — this caused the Docker build to fail
with "Cannot find module './llm'". Also commit updated agent-runner.ts,
agents.ts, and .env.example that reference the new LLM client.

Made-with: Cursor
2026-02-27 19:33:59 -08:00
f2fc976637 fix: force NODE_ENV=development during npm ci so tsc is installed
Made-with: Cursor
2026-02-27 19:30:40 -08:00
d9368e4abd fix: compile dist from source in Docker, fix ChatResult interface
- Dockerfile now runs tsc during build so committed dist/ is never stale
- ChatResult interface was missing history[] and memoryUpdates[] fields
- Re-add missing MemoryUpdate import in orchestrator.ts
- Rebuild dist/ with all new fields included

Made-with: Cursor
2026-02-27 19:27:42 -08:00
837b6e8b8d feat: persistent conversation + save_memory tool
- ToolContext gets memoryUpdates[] — accumulated by save_memory calls
- orchestratorChat accepts preloadedHistory and knowledgeContext opts
- History trimmed to last 40 messages per turn (cost control)
- Knowledge items injected into system prompt as ## Project Memory
- ChatResult returns history[] and memoryUpdates[] for frontend persistence
- server.ts accepts history/knowledge_context from POST body
- save_memory tool: lets AI persist facts (key, type, value) to long-term memory

Made-with: Cursor
2026-02-27 18:55:33 -08:00
5cb1e82169 feat: Master Orchestrator — persistent chat with full project context and awareness tools
Made-with: Cursor
2026-02-26 15:54:03 -08:00
Vibn Agent Runner
7d426c36e2 feat: Add GET /api/status endpoint with job stats and update PROJECT.md 2026-02-26 23:30:15 +00:00
Vibn Agent Runner
24b18e98bd feat: add simple test file and script 2026-02-26 23:29:40 +00:00
f969fb3b6b fix: capture raw body for HMAC before express.json() middleware
Made-with: Cursor
2026-02-26 15:27:38 -08:00
d3b04fcd22 feat: Gitea webhook with HMAC-SHA256 auth, agent label routing, auto-close issues
Made-with: Cursor
2026-02-26 15:24:25 -08:00
Vibn Agent Runner
1eadbb6631 feat: Add PROJECT.md documentation for vibn-agent-runner 2026-02-26 23:04:01 +00:00
45bca13479 fix: clean git credentials before push to avoid double-auth URLs
Made-with: Cursor
2026-02-26 15:01:42 -08:00
d3c3270309 fix: set git identity for agent commits in container
Made-with: Cursor
2026-02-26 14:58:16 -08:00
0de41a3401 fix: create /workspaces dir, clone repo before running agent
Made-with: Cursor
2026-02-26 14:55:29 -08:00
8870f2b1e0 init: vibn-agent-runner — Gemini autonomous agent backend
Made-with: Cursor
2026-02-26 14:50:20 -08:00