feat: add OperationSetting component and integrate into settings page

- Introduced OperationSetting component for managing agent configurations.
- Updated settings page to include a new tab for operation settings.
- Implemented functionality to fetch and update agent parameters such as heartbeat interval, sync interval, and auto-update settings.

docs: enhance deployment documentation for agent installation

- Added detailed instructions for agent installation using a script.
- Included examples for using discovery and agent tokens.
- Updated sections on global discovery tokens and agent auto-update features.

docs: revise design and development guidelines for V3

- Updated design document to reflect the current state and goals for V3.
- Clarified development guidelines to focus on operational experience improvements.

ci: add GitHub Actions workflow for agent releases

- Created a new workflow to automate the release of agent binaries on GitHub.
- Configured the workflow to build binaries for multiple platforms and publish them as releases.

feat: implement self-update mechanism for agent

- Added updater module to handle checking for and applying updates from GitHub releases.
- Implemented logic to restart the agent after a successful update.

chore: create install script for agent deployment

- Developed a bash script to facilitate the installation of the ATSFlare agent.
- The script supports automatic configuration and systemd service creation.
This commit is contained in:
ryan
2026-03-10 20:22:42 +08:00
parent c568b719b4
commit 83a11ead2b
24 changed files with 1315 additions and 101 deletions
+11 -3
View File
@@ -1,13 +1,13 @@
# ATSFlare 开发规范(V3 准备版)
# ATSFlare 开发规范(V3)
## 1. 适用范围
本规范适用于当前代码基线以及第三版开始前后的所有开发工作。
本规范适用于当前代码基线以及第三版的所有开发工作。
当前系统状态:
* 第一版、第二版功能已完成
* 当前开发重点不再是补历史阶段细节,而是稳定基线并准备第三版
* 第三版聚焦运维体验优化
* 超出 `docs/design.md` 当前边界的需求,必须先补设计,再编码
---
@@ -202,6 +202,14 @@ Agent 必须满足:
* 本地状态文件损坏时允许重建,但不能破坏当前生效配置
* Docker 容器异常时,启动阶段应自动重建
V3 新增行为:
* 心跳响应包含 `agent_settings` 时,动态调整定时器间隔
* `auto_update=true` 时在每次心跳后检查 GitHub Releases 更新
* 自我更新失败不影响心跳与同步
* Server 下发的间隔值不持久化到 `agent.json`,重启后以本地为准
* Agent 新增 `internal/updater` 模块处理自我更新逻辑
---
## 8. 前端开发规范