12 Commits

Author SHA1 Message Date
zsai001
25298e0ff8 download files from cloud server. 2025-12-09 20:47:39 +08:00
zsai001
c1e5c1a52d remove rust files, fix agent install 2025-12-04 20:07:38 +08:00
zsai001
7276dc6c33 fix(scripts): Fail gracefully when GitHub API is unavailable
- Remove default fallback version (v1.0.0/v1.3.0) when API fails
- Exit with error message instead of using incorrect version
- Prevents downloading non-existent versions when rate limited
- Add better error message explaining rate limiting issue
2025-12-03 02:07:52 +08:00
zsai001
a394bf964f fix(scripts): Improve download reliability with retry and better error handling
- Add retry logic (3 attempts) for downloads
- Use curl -L to follow redirects properly
- Verify downloaded file is not empty
- Show better error messages on failure
2025-12-03 01:21:26 +08:00
zsai001
fd058aa8a5 fix(scripts): Update install scripts for Go binary naming convention
- Change architecture naming from x86_64/aarch64 to amd64/arm64
- Remove musl suffix (Go binaries are statically linked by default)
- Add FreeBSD support
- Sync docs/ scripts with scripts/
2025-12-03 01:14:41 +08:00
zsai001
4b3ab29d08 feat: add version management, upgrade, and node editing features
Backend:
- Add version tracking for server and agents
- Add version check API (fetches from GitHub releases)
- Add server version endpoint (/api/version)
- Add update server info endpoint (PUT /api/servers/:id)
- Add tag field to RemoteServer
- Agent automatically reports version in metrics
- Simplify agent registration (remove location/provider requirement)

Frontend:
- Display server version and check for updates in Settings
- Show update available badge with download link
- Display agent version in node list and dashboard
- Add edit button for nodes (name, tag, location, provider)
- Add inline edit form for node properties
- Show version and tag badges in dashboard cards

Scripts:
- Update agent.sh to remove location/provider parameters
- Update install command generation
2025-12-02 17:10:23 +08:00
zsai001
fefd36264e fix: 使用 musl 静态链接解决 glibc 兼容性问题
- 添加 build-release.sh 构建脚本,支持 musl 静态编译
- 更新 agent.sh 和 install.sh 使用 musl 二进制文件
- 更新 GitHub Actions 工作流自动构建 musl 版本
- musl 静态二进制文件可在任意 Linux 系统运行,无需依赖特定 glibc 版本
2025-12-01 23:54:52 +08:00
zsai001
05c33eb32e refactor: simplify agent installer to use Rust binary only
- Remove shell-based agent implementation
- agent.sh now downloads and installs Rust binary
- Simplify README and docs
- Remove redundant install-agent.sh scripts
2025-12-01 23:27:14 +08:00
zsai001
e22146c51f feat: add Rust agent with auto-reconnect WebSocket
- Add vstats-agent Rust binary (~2MB) for reliable metrics collection
- Implement WebSocket client with exponential backoff reconnection
- Add CLI commands: run, register, install, uninstall, show-config
- Support systemd service installation on Linux
- Support launchd service installation on macOS
- Update GitHub Actions to build agent for all platforms
- Fix shell agent broken pipe errors with reconnection loop
- Update docs and README with Rust agent installation instructions
2025-12-01 22:47:44 +08:00
zsai001
12489f7c9a feat: major refactor and new features
- Refactor: Split main.rs into modules (config, db, types, handlers, websocket, collector, middleware, state)
- Feature: Add grid view for server list on Dashboard
- Feature: Add 1Y (yearly) time range for history charts
- Feature: Show local server metrics on Dashboard (no demo data)
- Feature: Light/Dark theme support with proper styling
- Fix: Auth token persistence across page refreshes
- Fix: Route parameter syntax for Axum 0.7
- Update: start-dev.sh now rebuilds frontend and backend
- Update: Better gitignore for runtime files
2025-12-01 22:27:14 +08:00
zsai001
f5779e5e52 add new files. 2025-12-01 17:19:46 +08:00
zsai001
b0ab39e2d5 init project. 2025-12-01 17:03:47 +08:00