ARTEX-English/server
Autumn-27 2f5f7c0227 feat(traffic): 流量列表新增「清空全部」,并借空库时机压实索引
一次删除全部流量记录,忽略当前筛选条件。与按 host 删除的两条路径相比多做
两件事:

- 清理索引已不再记录的历史 host 目录。按 host 删除只能从索引反查目录,
  行已消失的孤立目录会一直留着;「清空全部」既然语义是不留残余,就直接
  扫顶层目录(跳过 _index/_blobs/_ca/_delete_staging)。
- 收尾做一次全量压实(optimize + VACUUM + wal_checkpoint(TRUNCATE)),把
  索引占用的磁盘空间还给系统,并把实际释放量返回给前端提示。

VACUUM 的耗时与临时空间只和它保留的内容成正比,所以空库是做全量压实唯一
免费的时机——也正因如此,这一步顺带成为已有实例的转换途径:auto_vacuum
只能通过 VACUUM 生效,清空一次之后旧库即转为增量回收模式,此后日常按
host 删除就能自行回收空间(TestDeleteAllConvertsLegacyIndex 覆盖)。

已绑定到漏洞的流量证据保存在独立的证据库中,不受影响——绑定时已拷出独立
副本,正是为了让热流量可以随时清空而不带走证据。确认弹窗里明确写了这点。

前端把「清空全部」做成 outline 样式而非第二个 destructive 按钮:它忽略一切
筛选条件,不该看起来和「删除该目标」只差一次误点;无流量时禁用。

测试:新增 TestDeleteAllPurgesAndCompacts(清空后索引、正文、blob 引用与
孤立目录全清,空间回收到 1/8 以下,清空后仍可继续录制)与
TestDeleteAllConvertsLegacyIndex(旧库经清空后转为增量回收,随后普通删除
即可回收)。
2026-09-30 02:50:49 -04:00
..
assembly.go fix(agent): 探索图工具在无任务上下文时拒绝而非 nil 崩溃 2026-09-14 13:56:56 -04:00
assembly_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
asset_intercept.go feat: 新增资产拦截规则(全局黑名单)增删改查 2026-09-19 07:58:23 -04:00
assets.go feat(assets): 任务测试资产支持 DSL 搜索 2026-09-11 11:59:46 -04:00
assets_scope_test.go feat(assets): 去掉企业资产范围 256 条规则上限 2026-08-31 11:22:34 -04: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
chat_llm_resolve_test.go fix(chat): 会话已选 LLM 时不再被「全局未激活」误拦,提示按状态细分 2026-08-24 11:55:50 -04:00
chat_mentions.go feat(chat): 支持多类型记录 @ 引用及滚动分页 (#135) 2026-09-16 22:36:07 +08:00
chat_mentions_test.go refactor(engine): 移除从不执行的全局 planner/worker 空壳,就绪信号改用谓词 2026-09-17 09:40:06 -04:00
chatupload.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
commands.go chore: sync upstream v0.3.6 changes 2026-08-28 14:03:07 +08:00
constraints_api.go 同步 2026-08-24 14:14:15 +08:00
conversation_status_test.go feat: 支持会话级漏洞复测与运行状态展示 2026-09-10 16:06:08 +08:00
conversations.go feat(chat): 支持多类型记录 @ 引用及滚动分页 (#135) 2026-09-16 22:36:07 +08:00
core_test.go feat(api): integrate task workflows and mock contracts 2026-08-24 19:31:16 +08:00
customtool.go fix(tools): MCP/自定义工具输出统一走 Capture 截断,修复 mcp 截断不生效 (#176) 2026-09-29 10:09:23 -04:00
customtool_test.go fix(tools): MCP/自定义工具输出统一走 Capture 截断,修复 mcp 截断不生效 (#176) 2026-09-29 10:09:23 -04:00
dto.go feat(tasks): 漏洞列改为按严重度分档显示 严/高/中/低 2026-09-24 13:32:45 -04:00
engine.go refactor(engine): 移除从不执行的全局 planner/worker 空壳,就绪信号改用谓词 2026-09-17 09:40:06 -04:00
engine_cancelcause_test.go 重构 worker 对话:复用 resume 机制,改专属 goroutine 运行 2026-08-31 09:00:21 -04:00
engine_emptyturn_test.go fix(agent): 空转回合注入续跑指令,复用空响应重试次数 2026-09-10 10:49:11 -04:00
engine_llm_calls_test.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
engine_timeout.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
finding_retests.go feat: 支持会话级漏洞复测与运行状态展示 2026-09-10 16:06:08 +08:00
finding_retests_test.go feat: 支持会话级漏洞复测与运行状态展示 2026-09-10 16:06:08 +08:00
finding_traffic.go fix: 修复合并后审查发现的 6 个中/高问题 2026-09-10 10:15:24 -04:00
finding_traffic_export.go feat: 支持漏洞关联多条流量证据 2026-09-10 13:03:20 +08:00
finding_traffic_test.go Merge origin/main into codex/btw-side-question 2026-09-11 00:54:51 +08:00
finding_workflow.go fix(evidence): traffic_search 描述迁移出错不再中断后续 reporter 迁移 2026-09-14 12:44:15 -04:00
finding_workflow_test.go fix(traffic): match recorded hosts with port-aware search (#114) 2026-09-15 00:43:20 +08:00
findings_groups.go feat(findings): 发现页新增「按资产」视图 2026-08-31 10:58:32 -04:00
findings_groups_test.go 归档 2026-08-28 12:56:29 +08:00
goals.go feat(llm): 模型配置新增输出上限,支持 max_completion_tokens 字段名 2026-08-31 12:20:31 -04:00
goals_api.go 同步 2026-08-24 14:14:15 +08:00
goals_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
inheritance_api_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
inheritance_dto_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
intent_intervention.go feat(chat): 支持多类型记录 @ 引用及滚动分页 (#135) 2026-09-16 22:36:07 +08:00
intercept.go feat: filter approval records by status and decision source 2026-09-16 17:24:15 +08:00
intercept_detail_test.go 精简动作审查输入并支持审批来源定位 (#125) 2026-09-15 23:51:37 +08:00
intercept_filter_test.go feat: filter approval records by status and decision source 2026-09-16 17:24:15 +08:00
intercept_live_test.go 精简动作审查输入并支持审批来源定位 (#125) 2026-09-15 23:51:37 +08:00
intercept_review_test.go 精简动作审查输入并支持审批来源定位 (#125) 2026-09-15 23:51:37 +08:00
llmpool.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
llmpool_test.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
llmrec_raw_test.go feat(llmrec): 录制 LLM 请求/响应 HTTP 原文 2026-08-25 09:40:05 -04:00
llmretry.go fix(agent): 空转回合注入续跑指令,复用空响应重试次数 2026-09-10 10:49:11 -04:00
llmretry_test.go feat(llm): 五层重试的次数与间隔可配 2026-09-09 13:35:04 -04:00
logsink.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
manager.go feat(intent): 意图删除支持假删除/真删除两种模式 2026-09-17 12:52:57 -04:00
manager_delete_files_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
manager_lifecycle_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
mcpdiscover.go feat: support legacy SSE MCP servers (#117) 2026-09-15 00:56:16 +08:00
mgmt_test.go fix(security): jwt.key 移出可浏览工作区(存项目根,自动从 data 迁移) 2026-08-11 10:56:39 -04:00
orchestration.go feat(agent): add_hint 触发的规划轮显式播报「本轮由新增 hint 触发」 2026-09-13 11:36:31 -04:00
platform_tools.go feat: support legacy SSE MCP servers (#117) 2026-09-15 00:56:16 +08:00
platform_tools_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
prompt_vars_test.go 同步 2026-08-24 14:14:15 +08:00
scheduler.go fix(trigger): 合并触发会话按任务去重任务描述/目标,避免长目标重复撑爆消息 2026-09-12 09:26:38 -04:00
server.go feat(traffic): 流量列表新增「清空全部」,并借空库时机压实索引 2026-09-30 02:50:49 -04:00
server_mgmt.go feat(agent): 支持持久化 /btw 旁路提问 2026-09-10 21:42:25 +08:00
side_questions.go feat(chat): 支持多类型记录 @ 引用及滚动分页 (#135) 2026-09-16 22:36:07 +08:00
side_questions_test.go feat(intent): 意图删除支持假删除/真删除两种模式 2026-09-17 12:52:57 -04:00
skill_upload_test.go fix(skills): 修复技能压缩包上传失败与中文命名被判非法 2026-08-31 11:37:44 -04:00
skill_usage.go feat(skills): track usage and missing dependencies 2026-08-24 19:30:14 +08:00
skill_zip.go fix(skills): 修复技能压缩包上传失败与中文命名被判非法 2026-08-31 11:37:44 -04:00
sync_scopesentry.go fix(mcp): http 传输支持跳过 TLS 证书校验(自签证书) 2026-09-11 11:37:56 -04:00
task_admission_test.go 同步 2026-08-24 14:14:15 +08:00
task_archive_package.go fix(task-archive): 遇到符号链接跳过而非整包失败 2026-09-19 11:08:15 -04:00
task_archive_package_test.go fix(task-archive): 遇到符号链接跳过而非整包失败 2026-09-19 11:08:15 -04:00
task_archives.go Merge origin/main into codex/btw-side-question 2026-09-11 00:54:51 +08:00
task_archives_test.go 归档 2026-08-28 12:56:29 +08:00
task_assets.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
task_categories.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_categories_test.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_control.go feat(intent): 意图删除支持假删除/真删除两种模式 2026-09-17 12:52:57 -04:00
task_control_routes_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_delete_barrier_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_intercept.go feat: 资产拦截接入执行链,新增任务级拦截/允许规则 2026-09-19 09:06:22 -04:00
task_llm.go refactor(engine): 移除从不执行的全局 planner/worker 空壳,就绪信号改用谓词 2026-09-17 09:40:06 -04:00
task_llm_test.go refactor(engine): 移除从不执行的全局 planner/worker 空壳,就绪信号改用谓词 2026-09-17 09:40:06 -04:00
task_metadata.go 1、将排序做到border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted里,无需单独做个button 2、指定重命名使用ICO,无需使用菜单 2026-08-25 14:56:15 +08:00
task_metadata_test.go 1、将排序做到border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted里,无需单独做个button 2、指定重命名使用ICO,无需使用菜单 2026-08-25 14:56:15 +08:00
task_resolution.go 同步 2026-08-24 14:14:15 +08:00
task_templates.go feat: 任务模板支持预设分类与任务级拦截/允许规则 2026-09-19 09:27:03 -04:00
task_templates_test.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tool_usage.go 抽屉优化 2026-08-25 12:05:26 +08:00
tool_usage_test.go 抽屉优化 2026-08-25 12:05:26 +08:00
tools_wire_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
trigger_merge_test.go fix(trigger): 合并触发会话按任务去重任务描述/目标,避免长目标重复撑爆消息 2026-09-12 09:26:38 -04:00
triggers.go feat(trigger): 新增"任务创建"触发机制(on_task_create) 2026-08-09 02:19:29 -04:00
update.go feat(update): 页面一键更新 + 守护启动脚本 2026-09-11 12:39:59 -04:00
update_test.go feat(update): 页面一键更新 + 守护启动脚本 2026-09-11 12:39:59 -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
worker_message_test.go 重构 worker 对话:复用 resume 机制,改专属 goroutine 运行 2026-08-31 09:00:21 -04:00
workspace.go feat(workspace): 新增工作空间文件管理器(针对 workDir) 2026-08-09 01:01:19 -04:00