ARTEX-English/db
Autumn-27 10f6a4fbc7 feat(agent): list_facts 改为分页+关键词过滤,避免上下文膨胀
fact 多时旧的 list_facts 一次返回每任务至多 500 条且 summary 不截断,
一次调用就可能撑爆上下文。改为分页(默认 20,最新在前)+ q 关键词过滤,
返回 {facts, total, has_more, next_before},summary 超长按 rune 截断。

- db: listByKindPageFiltered/countByKindFiltered(payload->>'summary' ILIKE)
  + ListByKindPageWithSources 跨本任务/继承任务合并分页
- agent: list_facts 加 limit/before/q 参数,compactFact 截断 summary;
  worker/planner 提示词同步说明分页语义
- server: 旧库一次性迁移把 list_facts 新 schema 刷进 tools 目录表
  (SeedTool 首插入only,否则工具管理页显示「无参数」);flag bump 到 v7
2026-08-27 12:15:02 -04:00
..
activity_page_test.go feat(activity): 任务会话历史反向分页 + SSE 可靠性整改 2026-08-11 09:13:12 -04:00
asset_dsl.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
assets.go fix(assets): ip 字段拒收主机名,并告诉调用方该怎么改 2026-08-24 10:32:10 -04:00
assets_test.go fix(assets): ip 字段拒收主机名,并告诉调用方该怎么改 2026-08-24 10:32:10 -04:00
commands.go feat(commands): 工具执行页新增调用次数统计 2026-08-27 10:56:11 -04:00
companies.go fix(assets): 企业归属重算不再被单行非法 ip 打挂,并明确告知是哪些资产 2026-08-24 10:16:17 -04:00
companies_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
company_lock_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
company_scope.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
company_scope_consistency_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
company_scope_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
config.go feat(llm): 每个 LLM 配置支持流式/非流式切换(默认流式) 2026-08-25 10:49:47 -04:00
config_test.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
constants.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
constraints.go 同步 2026-08-24 14:14:15 +08:00
conversation.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
conversation_pin_test.go feat(chat): add conversation pinning and rename controls 2026-08-24 19:29:38 +08:00
customtool_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
db.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
db_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
exploration.go feat(agent): list_facts 改为分页+关键词过滤,避免上下文膨胀 2026-08-27 12:15:02 -04:00
exploration_sources.go feat(agent): list_facts 改为分页+关键词过滤,避免上下文膨胀 2026-08-27 12:15:02 -04:00
exploration_sources_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
exploration_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
exploration_tokens_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
findings.go feat(findings): group findings and add deepen workflows 2026-08-24 19:29:24 +08:00
findings_test.go feat(findings): group findings and add deepen workflows 2026-08-24 19:29:24 +08:00
intent_admission.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
intent_control_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
intercept.go 同步 2026-08-24 14:14:15 +08:00
llm_records_migrate_test.go feat(llmrec): 录制 LLM 请求/响应 HTTP 原文 2026-08-25 09:40:05 -04:00
llm_usage.go feat(metrics): add persistent LLM usage analytics 2026-08-24 19:30:07 +08:00
llmhealth.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
logs.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
nkey.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
schema.sql feat(llm): 支持 OpenAI Responses API 格式的 LLM 配置 2026-08-25 11:39:24 -04:00
settings.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
skill_usage.go feat(skills): track usage and missing dependencies 2026-08-24 19:30:14 +08:00
skill_usage_test.go feat(skills): track usage and missing dependencies 2026-08-24 19:30:14 +08:00
task_assets.go style(db): 对齐 ICP 范围匹配 SQL 缩进,并注明手工挂载资产的语句顺序依赖 2026-08-24 08:55:55 -04:00
task_assets_context.go fix(assets): 企业归属重算不再被单行非法 ip 打挂,并明确告知是哪些资产 2026-08-24 10:16:17 -04:00
task_assets_test.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_context.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_context_lock_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_context_unit_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_delete_concurrency_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +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_queue_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_scope.go fix(assets): 企业归属重算不再被单行非法 ip 打挂,并明确告知是哪些资产 2026-08-24 10:16:17 -04:00
task_scope_test.go fix(scope): add_task_scope 支持 host:port 目标,入库前剥端口 2026-08-09 09:09:59 -04:00
task_source_limit_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_templates.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
task_templates_test.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
tasks.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
tasks_test.go fix(tasks): 任务列表改按 id 降序,消除同刻创建任务的抖动 2026-08-24 11:08:10 -04: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.go 抽屉优化 2026-08-25 12:05:26 +08:00
triggers.go feat(trigger): 新增"任务创建"触发机制(on_task_create) 2026-08-09 02:19:29 -04:00