zhizhi/server/age-os
copilot-swe-agent[bot] ba4c233509
fix: COS训练Agent大文件崩溃 — 添加Buffer安全处理、HEAD预检、分块提取策略
修复两个训练失败根因:
1. conversations.json (665MB) 超过Node.js字符串限制导致ERR_STRING_TOO_LONG崩溃
2. 单文件崩溃导致整个训练管线中断,后续文件无法处理

- cos.js: 添加readBuffer/head/readPartial方法,cosRequest增加try/catch防止未捕获异常
- corpus-extractor-ops.js: 超大文件(>200MB)采用分块采样策略,ZIP文件提前检测避免无效读取
- cos-training-trigger.js: 增加文件大小预警日志,分类计数(成功/跳过/失败)

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f10f1b02-ed4e-4ee8-ac27-0580c1cf8a7e

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 00:55:39 +00:00
..
agents fix: 修复代码审查反馈 — 防并发扫描 + 显式默认内容类型 2026-04-08 11:42:58 +00:00
mcp-server fix: COS训练Agent大文件崩溃 — 添加Buffer安全处理、HEAD预检、分块提取策略 2026-04-11 00:55:39 +00:00
schema feat: implement light tree architecture — database schema, MCP tools, HLDP extension, tree gardener agent 2026-04-09 04:31:00 +00:00
scripts feat: 自动部署SQL迁移 + S15人格体数据库引擎 2026-04-08 11:38:46 +00:00
ecosystem.brain.config.js D57: Brain server init script + AGE OS deployment infrastructure 2026-04-05 07:46:18 +00:00
ecosystem.config.js fix: 代码审查修复 — 默认绑定127.0.0.1 + persona_id字符验证 + .env.mcp错误日志 2026-04-07 15:17:52 +00:00
package.json D51 S6+S7: Notion client, GitHub client, 11 new MCP tools, 3800→3100 gateway 2026-04-04 15:21:18 +00:00