103 Commits

Author SHA1 Message Date
4077150295 feat: integrate dynamic config into AI chat — temperature/max_tokens/URL from DB
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-22 22:39:52 +08:00
585cde9431 fix: Logger name typo
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 21s
2026-05-22 22:36:49 +08:00
b7cd0b2588 fix: AppAppAppConfigService typo
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-22 22:36:40 +08:00
8d52214dd5 feat: M0-03 Config & Feature Flag — DB-backed config + Redis cache + Admin AAPI
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-22 22:36:32 +08:00
4c4d14724a feat: M0-02 Admin event management AAPI — queues overview + failed + retry
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 22:27:07 +08:00
42e9e80f4c feat: M0-02 EventBus — sync+async publish + DomainEvents queue
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 1m14s
2026-05-22 22:22:25 +08:00
3fd5f94db5 feat: complete M0-01 — TraceId + BaseService + DomainEvent + SensitiveLogger
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s
2026-05-22 22:19:06 +08:00
25d25b44f0 fix: don't kill stream after approval — only abort on stop
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 19:18:27 +08:00
e6ecb2c48f fix: remove break after approval.request — let stream continue
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 19:15:54 +08:00
2753063b6f feat: pass through approval.request events + approval endpoint
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-22 17:31:55 +08:00
fc2725b5df feat: forward tool.started/completed events in SSE stream
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s
2026-05-22 17:20:28 +08:00
ff56b79659 fix: knowledgeItems → items
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 15:54:25 +08:00
0e85231712 feat: admin knowledge base list with Prisma
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 17s
2026-05-22 15:54:06 +08:00
644d62681e ci: use fetch+reset for force push safety
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 15:44:38 +08:00
997b3c0cdb feat: admin cost management — CRUD + monthly summary + expiry
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 15:40:24 +08:00
c6aa4cf88a feat: admin billing API — DeepSeek + SiliconFlow balances
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-22 15:31:51 +08:00
ee6ef23fb2 revert: remove billing module — already exists elsewhere
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 17s
2026-05-22 15:28:02 +08:00
c170f6048b feat: admin billing API — query DeepSeek + SiliconFlow balances
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 15:23:25 +08:00
cdf6195e6d chore: update remote to wangdl/api-server
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 15:05:46 +08:00
97af7f4cce fix: skip /data disk when identical to / on remote
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s
2026-05-22 14:12:42 +08:00
7c712bc931 fix: add python/main.py process aliases
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 14:09:15 +08:00
3079b2a18e fix: clean rewrite remote metrics with individual SSH calls
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
2026-05-22 14:04:14 +08:00
27dfc1c028 fix: add newlines to remote SSH awk commands
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 14:00:31 +08:00
fc968830c5 fix: correct ps auxww column parsing + robust remote SSH script
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
2026-05-22 13:57:26 +08:00
92173cb8c4 fix: single SSH script for remote metrics + Chinese uptime + process desc
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-22 13:51:19 +08:00
1776bed47e feat: friendly process names + data disk + public IPs + domains
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
2026-05-22 13:42:42 +08:00
13a7718a3c fix: simplify remote SSH commands for reliability
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 13:34:08 +08:00
ad6112f4ab fix: use wangdl.pem for 4-core SSH
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-22 13:31:45 +08:00
f30a446bd5 feat: server metrics API — local os + remote SSH
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-22 13:30:44 +08:00
c31725433d feat: runs + SSE streaming proxy from Hermes /v1/runs
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 11:29:22 +08:00
aa0575b71b fix: normalize IP by stripping ::ffff: prefix
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
2026-05-22 11:23:06 +08:00
63e73ecfaa fix: trust proxy for real client IP from Nginx
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
2026-05-22 11:20:54 +08:00
f2d3f3f13f feat: add AdminMessage persistence + conversation title auto-set + messages API
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 21s
2026-05-22 11:03:24 +08:00
73e52d2201 fix: add validation decorators to conversation DTO
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-22 10:49:27 +08:00
f20bdc0d7a feat: add conversation management — sessionId + X-Hermes-Session-Id + CRUD
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 10:43:18 +08:00
3b42a8618a refactor: remove hardcoded system prompt — let Hermes handle natively
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 40s
2026-05-22 10:28:41 +08:00
c2e8f92abe refactor: remove DeepSeek fallback — Hermes only; fail fast on error
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 10:10:11 +08:00
6413936472 ci: fix missing DATABASE_URL env for prisma migrate
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s
2026-05-22 10:08:24 +08:00
ea7f6736df ci: add NestJS build + deploy — npm ci + prisma + nest build + rsync + restart
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 23s
2026-05-22 10:04:47 +08:00
WangDL
34774e5325 fix: type cast messages for DeepSeekProvider compatibility
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 12s
2026-05-22 00:28:12 +08:00
WangDL
a550ce2e67 feat: route admin chat through Hermes Agent API (DeepSeek fallback)
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 11s
2026-05-22 00:20:34 +08:00
WangDL
2b0bc92ebb feat: add hermes dashboard config endpoint to admin-ai-chat
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 12s
2026-05-22 00:02:14 +08:00
WangDL
f2d1c16299 fix: correct AdminRole import path in admin-ai-chat controller
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 9s
2026-05-21 23:58:56 +08:00
WangDL
017d78a8d6 fix: add admin-ai-chat module + fix AdminUsersModule PasswordService dependency
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 11s
2026-05-21 23:57:59 +08:00
b8a1fb0921 feat: add admin backend modules — dashboard, audit-log, admin-users
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 10s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 17:22:48 +08:00
5a7c21dd60 feat: implement complete admin authentication system
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 9s
- Add AdminRole enum (SUPER_ADMIN/ADMIN/OPERATIONS/DEVELOPER/READONLY) with hierarchy
- Add PasswordService (bcryptjs, 12 rounds), AdminTokenService (type=admin JWT)
- Add AdminAuthService: login/lockout/refresh/logout with audit logging
- Add AdminAuthController: /admin-api/auth/{login,refresh,logout,me}
- Add AdminAuthGuard: validates type=admin, user status, session, lockout
- Add AdminRolesGuard + @AdminRoles() decorator for RBAC
- Add AdminAuditService for audit log persistence
- Add AdminLoginRateLimit (10 req/15min per IP)
- Add prisma/seed.ts for SUPER_ADMIN initialization via env vars
- Update JwtAuthGuard to skip /admin-api/* and /internal/* paths
- Update main.ts to exclude admin-api/internal from global 'api' prefix
- Update jwt.config.ts with admin JWT secrets and expiry config

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 15:05:31 +08:00
e5c6113b25 feat: add admin_users, admin_sessions, admin_audit_logs tables
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 13s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 14:39:38 +08:00
69dbf24237 simplify CI: remove Docker deploy, keep only RAG Worker + health
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 10s
API runs via systemd on port 3000, Docker deployment not needed yet.
Health check now targets the actual running API.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 17:30:59 +08:00
1fb6dd4929 fix: Dockerfile build arg for prisma generate + cleanup deploy
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1m42s
- Add ARG DATABASE_URL to Dockerfile so prisma generate works at build time
- Fix env file path (/opt/zhixi/env/ not /etc/zhixi/)
- Fix MySQL container name (mysql, not mysql-zhixi)
- Use correct DB name (zhixi_prod)
- Prevent duplicate mysql/redis containers from docker compose

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 17:25:35 +08:00
c64dc9c95a fix: correct .env.production path for Docker container
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 59s
/opt/zhixi/env/.env.production, not /etc/zhixi/.env.production

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 17:20:54 +08:00