ARTEX/server
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 init 2026-08-21 11:16:19 +08:00
assembly_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
assets.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
assets_scope_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
auth.go fix(security): jwt.key 移出可浏览工作区(存项目根,自动从 data 迁移) 2026-08-11 10:56:39 -04:00
broadcast.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
chatupload.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
commands.go init 2026-08-21 11:16:19 +08:00
conversations.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
core_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
customtool.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
customtool_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
dto.go feat(task): 资产覆盖度功能可按任务开关 2026-08-22 10:03:18 -04:00
engine.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
engine_cancelcause_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
engine_llm_calls_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
engine_timeout.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
findings_groups.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
findings_groups_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
goals.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
goals_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
inheritance_api_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
inheritance_dto_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
intercept.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
llmpool.go feat(llm): LLM 配置轮询(故障转移),某个配置没额度/失效时自动切下一个 2026-08-19 11:07:53 -04:00
llmpool_test.go feat(llm): LLM 配置轮询(故障转移),某个配置没额度/失效时自动切下一个 2026-08-19 11:07:53 -04:00
logsink.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
manager.go feat(task): 资产覆盖度功能可按任务开关 2026-08-22 10:03:18 -04:00
manager_delete_files_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
manager_lifecycle_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
mcpdiscover.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
mgmt_test.go fix(security): jwt.key 移出可浏览工作区(存项目根,自动从 data 迁移) 2026-08-11 10:56:39 -04:00
orchestration.go feat(insert_assets): 资产可标记是否与当前任务相关(related) 2026-08-22 10:26:11 -04:00
platform_tools.go refactor(asset): delete_assets_by_host 改为平台工具(默认绑 Auto) 2026-08-09 04:49:57 -04:00
platform_tools_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
scheduler.go feat(tasks): 任务并发上限(可选,超限排队自动补位) 2026-08-19 10:05:01 -04:00
server.go feat(traffic): 正文入库 + 全文搜索,删除改为 SQL 事务 2026-08-22 11:36:58 -04:00
server_mgmt.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
skill_usage.go init 2026-08-21 11:16:19 +08:00
sync_scopesentry.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
task_admission_test.go fix(llm): Agent 绑定优先于任务 LLM 配置链 2026-08-22 06:14:18 -04:00
task_control.go feat: prepare 0.3.3 worker llm agent and ui enhancements 2026-08-21 23:55:43 +08:00
task_control_routes_test.go feat: prepare 0.3.3 worker llm agent and ui enhancements 2026-08-21 23:55:43 +08:00
task_delete_barrier_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
task_llm.go fix(llm): Agent 绑定优先于任务 LLM 配置链 2026-08-22 06:14:18 -04:00
task_llm_test.go fix(llm): Agent 绑定优先于任务 LLM 配置链 2026-08-22 06:14:18 -04:00
task_resolution.go fix(llm): Agent 绑定优先于任务 LLM 配置链 2026-08-22 06:14:18 -04:00
task_templates.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
task_templates_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tools_wire_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
triggers.go feat(trigger): 新增"任务创建"触发机制(on_task_create) 2026-08-09 02:19:29 -04:00
webui_embed.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
webui_stub.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
workspace.go feat(workspace): 新增工作空间文件管理器(针对 workDir) 2026-08-09 01:01:19 -04:00