augushong
5777448d99
feat(mcp): 新增 MCP 密钥/授权/日志三表 Scheme 与模型
2026-08-16 20:20:47 +08:00
augushong
7ff83587b6
feat(log): 新增 ul_debug_log_position 表(migration+scheme+model)
2026-08-16 07:28:27 +08:00
augushong
a43a9a48b9
feat(tools): XHProf 日志导入三层服务与函数监控物化
...
- XhprofProfileParserService(Base/App):纯数组解析 jsonl 行,
meta 字段以真实 fixture 为准;simple_url 缺失兜底与采集端回调同算法;
watch 正则按 callee 物化(ct/wt_sum/wt_max),非法正则编译计 fail 跳过
- XhprofLogReaderService(Base/App):增量读取,半行缓冲超限整行丢弃
(不照抄 nginx 8MB 强制切行);EOF 无换行半行不 yield 不推进 offset;
进度不自动落盘,由导入侧在同一事务内显式 savePosition
- XhprofLogImport 定时任务(Base/App):不受 XHPROF_ENABLE 门控,
runs-*.jsonl 按文件名序增量导入;run 逐条 insert + detail chunk 20
insertAll + run_watch insertAll 与 position 同事务落盘;导至 EOF 后
只删已导完文件
- 修复 T1 缺陷:request_time decimal(12,3) 装不下 10 位时间戳,
Scheme 与 migration 同步改 decimal(13,3)
- 新增 parser 单元测试(真实 fixture 断言,9 用例 42 断言)
与 jsonl fixture;phpunit 注册 unit 测试套件
2026-08-15 06:11:01 +08:00
augushong
7e73902325
feat(admin): XHProf 性能日志五张表 Scheme 迁移与模型
2026-08-14 22:04:52 +08:00
augushong
8faa52ce90
feat(nginx-log): 多节点适配(node_id 全链路 + 全局/按节点聚合 + 节点筛选 + v2.4.0 升级脚本)
...
- 6 张表加 node_id 字段 + position/stat 改复合唯一键(migration)
- 6 个 Scheme 同步 node_id 注解 + 唯一键
- Reader 带 node_id 参数 + 懒加载接管(getLastPosition 回退查 node_id='')
- Aggregator 全局行(node_id='')+ 按节点循环 insertAggregatesForScope
- Stat 所有查询方法加 where node_id 条件
- Dashboard 控制器/视图加节点筛选下拉框 + AJAX 带 node_id
- AccessLog 列表加节点列 + 采集进度卡片显示节点信息
- import 定时任务 run_type 改 all(每节点采集自己的日志)
- v2.4.0 升级脚本追加 ALTER TABLE(幂等 check-then-alter)
- 菜单调整:去掉 Nginx 顶级菜单 + 读取位置管理,改为系统管理下挂两个子菜单
- ulthon-timer 文档补充 run_type=all 多节点部署注意事项
2026-08-08 10:33:20 +08:00
augushong
d5329cdd45
feat(nginx-log): curd 生成 raw/position 后台并改只读
...
- NginxAccessLog + NginxLogPosition Scheme 加 #[Component] 注解
- Scheme Table name 补 ul_ 前缀(curd 严格校验要求)
- curd 生成 nginx 模块完整后台(controller/model/view/js)
- Base/App 双层只读控制器(参照 TimerLogBase 范式)
- AccessLogBase: add/edit/delete/modify 全部 error
- LogPositionBase: 同上
- 视图改造:
- access_log 裁剪到 8 列核心字段(time_local/method/uri/status/remote_addr/request_time/body_bytes_sent/http_user_agent)
- status/request_time 自定义 badge 渲染
- toolbar 清空 + operat 仅保留详情(B 类只读页面)
- log_position 全字段 + 只读化
- HTTP 验证:index 200 OK + add/edit/delete/modify 全部返回错误
2026-07-28 06:21:13 +08:00
augushong
0d19881a22
feat(nginx-log): 新增 6 张表 phinx migration + Scheme + model
2026-07-28 00:03:49 +08:00
augushong
236a343fa9
feat(timer): 新增并发数/触发节点/触发时间三字段及幂等分发
...
Scheme 定义 concurrency(nullable)/trigger_node_id/last_trigger_time 三字段,Model 声明属性,v2.3.0 分发代码幂等 ALTER 保证升级自动同步。
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-07-25 21:57:14 +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
d719a99d14
feat(timer): 新增多节点定时器协调的 Scheme 定义
2026-05-26 18:33:41 +08:00
augushong
8cc08bcb8c
feat: 发布智能体版
2026-03-26 20:22:34 +08:00
augushong
23826cd06e
refactor(scheme): 优化数据库同步逻辑并增加备份表检查
2026-01-09 22:26:34 +08:00
augushong
edeae731f0
refactor: 删除废弃的scheme类文件
2026-01-09 21:40:20 +08:00
augushong
6b4a67aeb4
feat(scheme): 新增多个数据模型类文件
2026-01-09 21:38:25 +08:00
augushong
8de6b99bb3
feat(scheme): 新增数据库表结构同步方案
2026-01-09 21:08:51 +08:00