303 Commits

Author SHA1 Message Date
augushong
c7cfa40539 chore: bump version to v2.2.4 2026-05-27 20:52:13 +08:00
augushong
7ecbd03730 chore: bump version to v2.2.3
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-27 20:24:23 +08:00
augushong
c16964679d feat(menu): 补充定时器和主机列表的默认菜单初始化数据
在 SystemMenu 初始化数据中新增定时器配置(id=256)、定时器日志(id=257)、主机列表(id=258)三条菜单,确保 seed:run 后菜单自动可用

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-27 20:22:23 +08:00
augushong
a2916d7505 refactor(ulthon-admin): 重写入口文件并更新模板引用
将 ulthon-admin.js 简化为入口文件(8行),仅负责组装 admin 对象并清理临时变量。更新 _require.html 按依赖顺序加载 6 个拆分文件。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-27 07:51:42 +08:00
augushong
a9810516c1 chore(release): 发布 v2.2.2 2026-05-26 21:40:45 +08:00
augushong
3f8f79b445 feat(update): 新增 --keep-repo 参数,dry-run 模式下保留上游克隆目录便于对比 2026-05-26 21:38:16 +08:00
augushong
58d87d9980 docs(VersionBase): update usage comment of version command
fix the outdated description of the version command usage steps
2026-05-26 21:01:49 +08:00
augushong
fce0b1cf0a chore: bump version to v2.2.1 2026-05-26 20:48:53 +08:00
augushong
8e8c56ab53 chore: bump version to v2.2.0 and update full changelog
更新了版本号到v2.2.0,补充完整的版本更新说明,包含新功能、修复项、文档更新、重构、性能优化和其他变更内容
2026-05-26 20:34:57 +08:00
augushong
e005c9a3a2 docs(version): 补充 admin:version 命令的发布流程注释与帮助说明 2026-05-26 20:11:06 +08:00
augushong
b7094eee8a fix(host): 主机列表页设为只读
Remove add/edit/delete buttons and auth attributes from host list page. Hosts are auto-registered via heartbeat, manual CRUD is meaningless. Keep only setMaster operation.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 18:33:47 +08:00
augushong
e558a97e91 fix(host): 防止主节点重复并修复 setMaster 权限
Clear all is_master flags before electing new master to prevent multiple master records. Fix setMaster annotation from @auth true to proper @NodeAnotation format so permission node is generated correctly.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 18:33:46 +08:00
augushong
a47bbb2c6a fix(timer): 自动记录执行日志并捕获结果
Add execute() wrapper in TimerControllerBase that wraps do() with logStart/logEnd, captures return value to result field. Change site URL routing from /do to /execute with task_name injection. Add result field to system_timer_log scheme.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 18:33:45 +08:00
augushong
e1bf94a55e feat(timer): 新增日志每日自动清理定时任务
- New LogClean timer controller (site type, frequency 86400s)
- run_type defaults to auto, only one node cleans per day
- Cleans system_timer_log records older than 30 days
2026-05-26 18:33:45 +08:00
augushong
fd89a60425 fix(timer): 修复 F2 代码质量问题
- HostServiceBase: move Log::error before throw so it actually executes
- TimerBase: remove empty comment block
2026-05-26 18:33:44 +08:00
augushong
90e584f5a1 feat(timer): 新增定时器配置、日志和主机的后台管理界面
T10: TimerConfig CURD - task management with run_type/status editing,
     manual trigger button, task_name read-only, no add/delete
T11: TimerLog CURD - read-only log viewer with filters and color badges
T12: Host list enhanced - is_master column, setMaster button
2026-05-26 18:33:43 +08:00
augushong
25fab093fa feat(timer): 新增 run_type 调度、host_id 投递和日志清理
T7: TimerBase shouldExecuteTask() - main/auto/all/manual/disabled modes
    with two-phase DB row lock for auto mode
T8: TimerControllerBase - host_id param, logStart/logEnd methods
    TimerServiceBase - inject host_id into site URLs
T9: TimerLogClean command - php think admin:timer:log:clean --days=30
2026-05-26 18:33:42 +08:00
augushong
abeac2c3cb feat(timer): 新增配置同步到数据库及主节点选举
T5: TimerServiceBase.syncConfigToDatabase() - syncs task config to DB
T6: HostServiceBase - auto master election, stale node detection,
    getMasterNode/setMasterNode methods
2026-05-26 18:33:41 +08:00
augushong
ca094c9116 feat(update): 输出增强 -- 按目录分组、风险摘要、策略标注、--show 过滤 2026-05-25 22:47:46 +08:00
augushong
67c613788f feat(update): 冲突策略参数替代交互确认 2026-05-25 22:44:34 +08:00
augushong
2e3fac93f0 feat(update): 注册冲突策略和输出范围选项 2026-05-25 22:41:08 +08:00
augushong
07d5823c81 feat(update): 后更新引导提示 2026-05-25 21:41:55 +08:00
augushong
65b196e768 feat(update): composer.json 智能对比输出具体命令 2026-05-25 21:38:58 +08:00
augushong
a17ba88068 feat(update): 新增 --dry-run 预览模式 2026-05-25 21:35:47 +08:00
augushong
fb3f807877 refactor(update): extend/think 归入可选更新范围 2026-05-25 21:30:27 +08:00
augushong
76fe865274 perf(update): clone 一次仓库并本地复制替代第二次网络 clone; 排除 public/storage 和 public/build 2026-05-25 21:28:21 +08:00
augushong
577ee6b974 feat(debug): 报错页面增加手机端适配,工具栏可折叠,修复原生布局溢出问题 2026-05-24 10:09:27 +08:00
augushong
7312db717c fix(debug): 修复预览不实时更新、出错位置不生效、中文Unicode转义等问题,预览改为右侧弹出面板,增加字数统计 2026-05-24 09:32:32 +08:00
augushong
4668865b4f fix(debug): 复选框变更时自动保存状态到localStorage 2026-05-24 09:03:02 +08:00
augushong
e263d172cd fix(debug): 修复Markdown中文输出为Unicode转义的问题 2026-05-24 08:59:16 +08:00
augushong
0225e65975 feat(debug): 报错页面增加AI友好格式和可配置一键复制功能 2026-05-24 08:55:23 +08:00
augushong
218810a7db refactor: 迁移根目录 docker/ 到 source/docker/,更新所有路径引用
- 将 docker/{nginx.conf,run.sh,zz-phprun.ini,zz-phpfpm.conf} 移动到 source/docker/
- 更新所有 Dockerfile 中 /var/www/html/docker/ -> /var/www/html/source/docker/
- 更新 stack.json managed_files 路径前缀
- 重组 stack 模式目录结构 docker/ -> source/docker/
- 更新 source/README.md 目录描述
- 更新 AdminUpdateServiceBase.php 可选文件前缀
2026-05-12 23:13:47 +08:00
augushong
81706debbb fix(upload): 修复云存储上传失败时静默返回空save_name的问题 2026-05-11 21:23:00 +08:00
augushong
9a3442d7f5 feat: 更新版本至 v2.1.4 并同步更新日志
- 新增支持更新到 ulthon_admin 的 master 分支功能
- 修复目录忽略逻辑的前缀匹配误命中问题
- 更新 source 目录结构及相关文档说明
- 优化持续集成配置,避免覆盖现有 .env 文件
- 从 Git 跟踪中移除 .sisyphus 目录
2026-05-07 23:00:49 +08:00
augushong
37c8142721 feat(update): 支持更新到 ulthon_admin 的 master 分支
新增 `--update-master` 选项,允许用户选择更新到远程仓库的 master 分支,而非默认的最新标签版本。这为需要最新开发版代码的场景提供了灵活性。
2026-05-07 22:59:19 +08:00
augushong
718034a7b4 fix(update): 修复目录忽略逻辑的前缀匹配误命中问题
isIgnoredPath 和 testIsOptionalFiles 方法使用 str_starts_with 做前缀匹配,
导致 .gitea 被 .git 规则误跳过,.gitignore/.gitattributes 同样受影响。
改为精确目录名匹配: ===  || str_starts_with(,  . '/')
2026-05-06 20:55:17 +08:00
augushong
11101e338d chore: 发布新版本 2026-05-06 20:08:27 +08:00
augushong
8b0a59c880 chore: 发布新版本 2026-05-06 19:08:28 +08:00
augushong
b44fcfd86c feat(stack): 新增 stack 模式管理功能
- 新增 `php think admin:stack:mode` 命令,支持 list/use/current/rollback 操作
- 新增 StackModeService 服务,负责模式切换、备份与回滚逻辑
- 在 source/stack/ 目录下添加 default、full、base-build 三种模式的配置文件
- 更新 UlthonAdminService 以注册新的命令行工具
2026-04-24 23:20:13 +08:00
augushong
7ef19f6357 refactor: 提取文件收集逻辑到独立方法
将重复的文件收集和忽略前缀检查代码提取为 `collectTrackedFiles` 和 `isIgnoredPath` 方法,提高代码复用性和可读性。
2026-03-27 20:26:34 +08:00
augushong
c0d3acbd4d chore: 发布新版本 2026-03-27 20:23:42 +08:00
augushong
ce27837614 fix: 支持解析带括号的提交类型格式
更新正则表达式以匹配 type(scope): message 格式,确保版本日志能正确分组包含可选作用域的提交信息。
2026-03-27 20:21:40 +08:00
augushong
86705364fe chore: 发布新版本 2026-03-26 20:27:14 +08:00
augushong
8cc08bcb8c feat: 发布智能体版 2026-03-26 20:22:34 +08:00
augushong
1a88ff286e feat(uniapp): 集成 Pinia 状态管理并实现用户认证流程 2026-02-01 12:01:37 +08:00
augushong
b6b690edb3 feat(tools/db): 在表结构描述中显示表注释 2026-02-01 00:22:51 +08:00
augushong
6aa176a39a fix(scheme): 改进MySQL表注释获取与对比的可靠性 2026-02-01 00:14:45 +08:00
augushong
5bee1b3733 feat(console): 添加 --force-force 参数以跳过所有交互确认 2026-01-31 23:00:51 +08:00
augushong
0fad2b7e10 docs: 更新项目文档中的框架版本信息 2026-01-28 20:36:15 +08:00
augushong
e8f58ef322 feat(command): 新增数据库调试命令行工具集 2026-01-26 23:10:10 +08:00