ARTEX/agent
Autumn-27 eddb98b256 feat(traffic): 正文入库 + 全文搜索,删除改为 SQL 事务
流量录制不再镜像 URL 路径写文件树,改为整条 exchange 落 SQLite:

- record: 元数据/头/正文写库;>256KB 的 body 才溢出到 _blobs(单层
  桶、按 hash 去重),库里留 8KB 预览 + 指针。文本正文全量喂 trigram
  FTS 索引(二进制按 content-type 跳过),支持任意子串与中文全文搜索。
- 删除退化为一个 SQL 事务级联删四张表,host 树后台异步回收,不再在
  写锁内 RemoveAll + 全树扫描——删除从数小时降到毫秒级,期间不再停摆录制。
- gcBlobs 改走 blob_refs 反查,顺带清理空桶目录;保留对旧文件树的
  引用扫描与 Get 回落,历史数据免迁移仍可读、可搜(元数据)、可删。
- 新增 traffic_blob 工具与 GET /api/traffic/blob 流式下载大 body;
  traffic_search 增加 body_contains 全文参数。

新表均为 CREATE TABLE IF NOT EXISTS,旧库自动补建,无需 ALTER 迁移。

Claude-Session: https://claude.ai/code/session_01RtPQYJ8W1mcaace3sHWGDm
2026-08-22 11:36:58 -04:00
..
assembly.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
blackboard_inheritance_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
cancelcause.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
capture.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
capture_usage_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
chat.go init 2026-08-21 11:16:19 +08:00
coverage_params_test.go feat(insert_assets): 资产可标记是否与当前任务相关(related) 2026-08-22 10:26:11 -04:00
deferred.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
deferred_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
goals.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
insert_assets_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
mainagent.go feat(insert_assets): 资产可标记是否与当前任务相关(related) 2026-08-22 10:26:11 -04:00
planner.go feat(task): 资产覆盖度功能可按任务开关 2026-08-22 10:03:18 -04:00
prompt.go feat: 提示词新增全局变量 DataDir + 触发合并/种子意图默认值调整 2026-08-15 00:19:14 -04:00
prompt_now_test.go feat: 提示词新增全局变量 DataDir + 触发合并/种子意图默认值调整 2026-08-15 00:19:14 -04:00
prompt_test.go feat: 提示词新增全局变量 DataDir + 触发合并/种子意图默认值调整 2026-08-15 00:19:14 -04:00
promptcatalog.go tweak: reporter 报告模板将「证据」与「PoC」拆成两节 2026-08-18 12:20:53 -04:00
provider.go init 2026-08-21 11:16:19 +08:00
provider_quota_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
runinfo.go init 2026-08-21 11:16:19 +08:00
taskclock.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
terminalreason.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
terminalreason_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
toolcatalog.go feat: goal_met 默认不绑任何 agent + 去掉 planner 相关提示词 2026-08-17 09:26:59 -04:00
toolcatalog_test.go feat(coverage): 资产测试覆盖度(task_scope 范围 + fact 派生已测) 2026-08-08 09:09:38 -04:00
tools.go feat(insert_assets): 资产可标记是否与当前任务相关(related) 2026-08-22 10:26:11 -04:00
tools_insert.go feat(insert_assets): 资产可标记是否与当前任务相关(related) 2026-08-22 10:26:11 -04:00
tools_overview_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
worker.go feat(traffic): 正文入库 + 全文搜索,删除改为 SQL 事务 2026-08-22 11:36:58 -04:00
wrapup.go feat: 收尾默认轮数统一改为 10 2026-08-17 09:54:04 -04:00