accounts/internal
Haitao Pan 8b8a2aa3fa feat(agent-persistence): implement PostgreSQL persistence for agent registry
Core Changes:
- Add Agent struct and management methods to Store interface
- Implement PostgreSQL store methods (UpsertAgent, ListAgents, DeleteAgent, DeleteStaleAgents)
- Integrate persistence into Registry with async database writes
- Add Load() method to restore agents from database on startup
- Implement runAgentCleanup background task (5min interval, 10min stale threshold)

Database:
- Update agents table schema to use JSONB for groups field
- Add indexes on last_heartbeat and healthy columns
- Support health tracking and automatic cleanup of stale agents

Documentation:
- Add comprehensive DB access and upgrade guide
- Include agent persistence implementation plan
- Document diagnostic procedures and troubleshooting steps
- Add walkthrough of multi-agent support implementation

This enables:
- Persistent agent state across service restarts
- Automatic cleanup of offline agents
- Multi-agent support with shared token authentication
2026-02-05 08:34:25 +08:00
..
agentmode feat: Template Xray TCP certificate and key file paths using a domain placeholder. 2026-01-27 22:01:07 +08:00
agentproto feat: Implement dynamic agent registration using self-reported IDs and persist agent details in a new agents database table. 2026-02-05 00:07:30 +08:00
agentserver feat(agent-persistence): implement PostgreSQL persistence for agent registry 2026-02-05 08:34:25 +08:00
auth feat: Add multiple context and editor hooks to ChatInput component. 2026-02-02 21:02:32 +08:00
cache feat: move account service to repo root 2026-01-16 16:15:23 +08:00
mailer feat: move account service to repo root 2026-01-16 16:15:23 +08:00
migrate reset accounts.svc.plus repo 2026-01-23 23:16:37 +08:00
model feat: move account service to repo root 2026-01-16 16:15:23 +08:00
service feat: move account service to repo root 2026-01-16 16:15:23 +08:00
store feat(agent-persistence): implement PostgreSQL persistence for agent registry 2026-02-05 08:34:25 +08:00
syncer feat: move account service to repo root 2026-01-16 16:15:23 +08:00
utils feat: move account service to repo root 2026-01-16 16:15:23 +08:00
xrayconfig feat(vless): support multi-region URI schemes and node metadata 2026-02-04 20:48:21 +08:00