WeKnora/migrations/versioned
lyingbug 9e0c28fbc9
feat(artifacts): let users delete generated files (#3447)
* feat(artifacts): let users delete generated files

技能生成的文件此前只能列出、预览和下载,没有任何删除入口,后端
handler/service/repository 三层都没有实现。DeleteSession 里那句注释
("a dedicated GC job or explicit hard-delete API is the right place to
reclaim storage") 留的就是这个位置。

Tombstone, not a row delete. message_artifacts 新增 deleted_at,删除只
打标记不删行。position 是下载接口寻址用的下标(msg.Artifacts[index]),
物理删掉中间一行会让它后面的文件整体前移,已有链接下到错的文件;而
ArtifactCollector 的去重集就是从这张表读的,行没了之后沙箱里 mtime 未变
的同名文件下一轮就会被重新采集回来,删了又出现。墓碑同时挡住这两条。
loadArtifactsByMessage 因此刻意保留墓碑,展示侧用 MessageArtifacts.Live
过滤;NewMessageArtifactRecords 带上 DeletedAt,任何一次消息重写都能把
墓碑原样写回去。

Bytes. 字节是真回收的,走 catalog.Release 引用计数:一份文件可能同时被
知识库条目和后续回答持有,只有所有持有者都放手才 DeleteFile。删多个版本
时同一个对象可能来自多条消息,每条消息的绑定都要释放,字节只删一次。
回收发生在打标记之后,且只针对本次调用真正认领到的行——并发的第二次删除
认领不到任何行,也就不会去动别人正在回收的对象。释放失败一律保留字节:
留个孤儿 blob 以后还能靠墓碑上的 url 回收,删错了则是别人的文档里的图片
凭空消失。

Scope. 会话内面板每个版本单独一行,删的就是点的那一版;产物库一行代表
一个文件(带版本数),默认连同该文件在这个会话里的所有版本一起删,否则
删完这一行还在、只是显示上一版。权限比下载严一档:下载认共享智能体的
只读访问,删除只认会话归属人。

Inline references. 正文里的 resource:// 引用渲染成置灰加删除线的卡片,
不可点击,和「模型引用了不存在的文件」的 --pending 态区分开。图片类产物
也降级成卡片:走 renderImage 只会拉取失败,留下一张永远加载不出来的图。
墓碑必须留在传给渲染器的产物列表里——句柄形式与知识库图片同形,过滤掉
之后句柄对不上本条回答,会被当成外部受保护图片去拉一个已经不存在的
blob,结果是裂图。组件里因此拆出 liveArtifacts 只给计数和文件列表用。

Also: 产物库是 offset 分页的无限列表,删一行会让后续页整体前移漏掉一条,
改成按已显示行数取下一页并按 key 去重;access.ResolveMessageArtifact 与
MessageReferencesFile 不再让墓碑授权访问;SessionArtifacts 过滤墓碑,
避免新回答把引用绑到已删文件上;版本澄清文案不再把已删版本算进版本数。

docs/swagger.* 未重新生成:仓库里那份已经落后若干功能,重生成会带进约
1000 行无关漂移,另开 PR 同步。

* fix(artifacts): close the delete holes found in review

Regeneration. loadKnownSet 把墓碑的 ContentHash 也放进了去重集,于是
knownSameContent 会把「删除后技能重新生成、字节恰好相同」当成 fork
checkout 那种 restore:不上传、不挂回本轮回答,文件再也回不来。墓碑现在
只登记 (path, mtime),不进 hash 也不进 byPath —— 前者才是「沙箱文件没动
过就别复活」需要的键,后者是「同内容恢复」的短路,两件事不该共用。
RecordRestoredArtifactMtime 也不再改墓碑:它的 mtime 就是那把锁。

Message file proxy. /sessions/:id/messages/:message_id/files 走
MessageReferencesFile,而正文检查在最前面且无条件为真。删除不会重写回答,
resource:// 句柄还留在正文里,于是这条代理会继续把已删文件交出去——包括
交给共享智能体的只读访客,也包括「字节因为知识库还持有而没被回收」的情形。
现在先看 artifacts:命中本条消息的墓碑直接 false,命中 live 直接 true,
其余(知识库图、附件)才回落到正文。同一文件挂在多个位置时只要还有一个
live 就仍然可取。

Cross-session bytes. CreateForked 复制产物行时连同存储 URL 一起复制,但
不会给副本重新 Bind,所以 catalog 的引用计数看不到分叉。在父会话里删除会
把分叉还在用的字节删掉。无 catalog 部署、以及存的是裸 provider 路径的行,
同样不在计数覆盖内。回收前新增一道 CountLiveArtifactsByURL:只要还有任何
未删除的行指向同一对象就保留字节,查不出来也保留。配套加了 url 的部分索引。

Atomicity. SoftDeleteSessionArtifacts 原来逐条 UPDATE 不带事务,删多版本
时中途失败会留下「一部分已隐藏、字节没回收、接口 500、用户重试 404」。
现在整批放进一个事务。writeMessageArtifacts 是整表替换,拿着删除前快照的
并发写会让墓碑复活而字节已在回收,现在按 position 把已存在的 deleted_at
合并回去——删除是唯一不允许被过期写覆盖的属性。

all_versions 两个路由改用同一个解析器(strconv.ParseBool),此前一个是
== "true"、另一个是 != "false",显式传 1/TRUE 在两边语义不同;缺省值仍
按路由区分。

测试:收集器三条(未动不复活 / 重新生成要回来 / live 的同内容恢复仍短路)、
access 三条(正文不能复活已删授权、多副本只要有 live 就可取、非产物引用
仍走正文)、service 七条(归属人校验、他人会话拒绝、并发认领为空、live
行仍在则保留字节、guard 失败保留字节、多版本按对象归并 owner、无
source_path 不扫全会话)、repository 三条(墓碑抗过期写、事务回滚、跨会话
URL 计数)、handler 一条(两个路由的 all_versions 解析矩阵)。其中
「重新生成要回来」在改回旧实现时确认会失败。

client/ 没有 artifacts 相关 API(只有一个 SSE 事件类型常量),无需同步。
2026-09-20 13:01:46 +08:00
..
000000_init.down.sql feat(database): update database initialization to conditionally handle embeddings 2025-12-10 17:13:30 +08:00
000000_init.up.sql fix(schema): expand knowledge source length 2026-06-05 15:12:25 +08:00
000001_agent.down.sql feat(database): update database initialization to conditionally handle embeddings 2025-12-10 17:13:30 +08:00
000001_agent.up.sql feat(database): update database initialization to conditionally handle embeddings 2025-12-10 17:13:30 +08:00
000002_embeddings.down.sql feat(database): update database initialization to conditionally handle embeddings 2025-12-10 17:13:30 +08:00
000002_embeddings.up.sql feat(database): update database initialization to conditionally handle embeddings 2025-12-10 17:13:30 +08:00
000003_chunk_flags.down.sql feat: 新增FAQ推荐标签和批量操作支持,优化标签删除逻辑 2025-12-12 19:57:08 +08:00
000003_chunk_flags.up.sql feat: 新增FAQ推荐标签和批量操作支持,优化标签删除逻辑 2025-12-12 19:57:08 +08:00
000004_drop_vlm_model_id.down.sql fix: 强制移除knowledge_bases表中的历史vlm_model_id字段 2025-12-22 13:11:31 +08:00
000004_drop_vlm_model_id.up.sql fix: 强制移除knowledge_bases表中的历史vlm_model_id字段 2025-12-22 13:11:31 +08:00
000005_mentioned_items.down.sql feat: 支持在消息流中展示@的知识库和文件 2025-12-22 13:11:31 +08:00
000005_mentioned_items.up.sql feat: 支持在消息流中展示@的知识库和文件 2025-12-22 13:11:31 +08:00
000006_custom_agents.down.sql refactor: 调整智能体配置,增强智能体选择与状态管理 2025-12-26 21:31:02 +08:00
000006_custom_agents.up.sql refactor: 调整智能体配置,增强智能体选择与状态管理 2025-12-26 21:31:02 +08:00
000007_embeddings_tag_id.down.sql feat: 支持FAQ两级优先级标签过滤 2025-12-30 19:44:53 +08:00
000007_embeddings_tag_id.up.sql docs: sync changes to v0.2.8 changelog 2025-12-31 19:54:03 +08:00
000008_migrate_untagged_faq.down.sql feat: 支持删除文档类型标签 2026-01-15 19:38:16 +08:00
000008_migrate_untagged_faq.up.sql fix: guard pg_search update with skip_embedding 2026-03-19 22:03:09 +08:00
000009_add_last_faq_import_result.down.sql feat: 支持删除文档类型标签 2026-01-15 19:38:16 +08:00
000009_add_last_faq_import_result.up.sql feat: 支持删除文档类型标签 2026-01-15 19:38:16 +08:00
000010_add_seq_id.down.sql feat: 为 FAQ 和标签引入 seq_id 支持 2026-01-14 17:13:44 +08:00
000010_add_seq_id.up.sql feat: 为 FAQ 和标签引入 seq_id 支持 2026-01-14 17:13:44 +08:00
000011_pg_search_update.down.sql feat(migrations): add pg_search extension update migration files 2026-01-30 19:30:35 +08:00
000011_pg_search_update.up.sql fix: guard pg_search update with skip_embedding 2026-03-19 22:03:09 +08:00
000012_organizations.down.sql feat(agent): enhance agent and skill management features 2026-02-09 11:40:25 +08:00
000012_organizations.up.sql feat(agent): enhance agent and skill management features 2026-02-09 11:40:25 +08:00
000013_engine_configs.down.sql feat: introduce WeKnora Lite edition with lightweight configuration and deployment 2026-03-02 21:21:49 +08:00
000013_engine_configs.up.sql refactor: remove mineru_api_base_url from ParserEngineConfig and related components 2026-03-03 13:24:20 +08:00
000014_storage_provider_config.down.sql feat: introduce storage provider configuration and enhance backward compatibility 2026-03-02 21:21:49 +08:00
000014_storage_provider_config.up.sql feat: introduce storage provider configuration and enhance backward compatibility 2026-03-02 21:21:49 +08:00
000015_add_is_fallback.down.sql feat: add fallback response handling and UI indicators 2026-03-05 18:14:14 +08:00
000015_add_is_fallback.up.sql feat: add fallback response handling and UI indicators 2026-03-05 18:14:14 +08:00
000016_add_kb_pinned.down.sql feat: add pinning functionality for knowledge bases 2026-03-05 18:14:14 +08:00
000016_add_kb_pinned.up.sql feat: add pinning functionality for knowledge bases 2026-03-05 18:14:14 +08:00
000017_mcp_builtin.down.sql feat(security): add AES-256-GCM encryption for API keys at rest 2026-03-09 10:35:07 +08:00
000017_mcp_builtin.up.sql feat(security): add AES-256-GCM encryption for API keys at rest 2026-03-09 10:35:07 +08:00
000018_extend_tenant_api_key.down.sql feat(security): add AES-256-GCM encryption for API keys at rest 2026-03-09 10:35:07 +08:00
000018_extend_tenant_api_key.up.sql feat(security): add AES-256-GCM encryption for API keys at rest 2026-03-09 10:35:07 +08:00
000019_add_agent_duration_ms.down.sql chore: update AWS SDK dependencies and add database migrations 2026-03-09 11:46:56 +08:00
000019_add_agent_duration_ms.up.sql chore: update AWS SDK dependencies and add database migrations 2026-03-09 11:46:56 +08:00
000020_add_message_knowledge_id.down.sql chore: update AWS SDK dependencies and add database migrations 2026-03-09 11:46:56 +08:00
000020_add_message_knowledge_id.up.sql chore: update AWS SDK dependencies and add database migrations 2026-03-09 11:46:56 +08:00
000021_im_channel.down.sql feat: implement IM channel sessions and update message handling 2026-03-16 02:40:42 +08:00
000021_im_channel.up.sql feat: implement IM channel sessions and update message handling 2026-03-16 02:40:42 +08:00
000022_message_images.down.sql feat: implement IM channel sessions and update message handling 2026-03-16 02:40:42 +08:00
000022_message_images.up.sql feat: implement IM channel sessions and update message handling 2026-03-16 02:40:42 +08:00
000023_im_channel_kb_id.down.sql feat(im): add file support and knowledge base integration 2026-03-17 22:23:24 +08:00
000023_im_channel_kb_id.up.sql feat(im): add file support and knowledge base integration 2026-03-17 22:23:24 +08:00
000024_im_channel_bot_identity.down.sql feat(im): add file support and knowledge base integration 2026-03-17 22:23:24 +08:00
000024_im_channel_bot_identity.up.sql feat(im): add file support and knowledge base integration 2026-03-17 22:23:24 +08:00
000025_message_channel.down.sql feat(knowledge): add channel support to knowledge entries and related components 2026-03-25 22:08:29 +08:00
000025_message_channel.up.sql feat(knowledge): add channel support to knowledge entries and related components 2026-03-25 22:08:29 +08:00
000026_chunks_query_indexes.down.sql feat(agent): enhance chunk search functionality to include total chunk counts 2026-03-25 22:08:29 +08:00
000026_chunks_query_indexes.up.sql feat(agent): enhance chunk search functionality to include total chunk counts 2026-03-25 22:08:29 +08:00
000027_message_rendered_content.down.sql feat(prompt): enhance context and intent classification in templates 2026-03-26 18:57:12 +08:00
000027_message_rendered_content.up.sql feat(prompt): enhance context and intent classification in templates 2026-03-26 18:57:12 +08:00
000028_im_thread_session.down.sql [NELO-1102] feat(im): add thread-based session mode for IM channels 2026-03-30 10:43:14 +08:00
000028_im_thread_session.up.sql [NELO-1102] feat(im): add thread-based session mode for IM channels 2026-03-30 10:43:14 +08:00
000029_datasource_tables.down.sql feat(web-search): refactor web search provider 2026-03-31 20:22:34 +08:00
000029_datasource_tables.up.sql fix(migrations): correct migration numbers and remove broken trigger 2026-04-03 11:31:21 +08:00
000030_web_search_providers.down.sql feat(web-search): refactor web search provider 2026-03-31 20:22:34 +08:00
000030_web_search_providers.up.sql fix(migrations): correct migration numbers and remove broken trigger 2026-04-03 11:31:21 +08:00
000031_add_asr_config.down.sql feat(asr): add ASR model connection check and update related components 2026-04-02 21:27:27 +08:00
000031_add_asr_config.up.sql fix(migrations): correct migration numbers and remove broken trigger 2026-04-03 11:31:21 +08:00
000032_vector_stores.down.sql feat: add VectorStore entity, repository, and migrations 2026-04-09 01:39:51 +08:00
000032_vector_stores.up.sql feat: add VectorStore entity, repository, and migrations 2026-04-09 01:39:51 +08:00
000033_add_video_info_to_chunks.down.sql fix: 修正视频相关迁移文件版本号冲突,从 000032 改为 000033 2026-04-10 22:01:42 +08:00
000033_add_video_info_to_chunks.up.sql fix: 修正视频相关迁移文件版本号冲突,从 000032 改为 000033 2026-04-10 22:01:42 +08:00
000034_add_attachments.down.sql fix: rename sql file 2026-04-14 14:54:21 +08:00
000034_add_attachments.up.sql fix: rename sql file 2026-04-14 14:54:21 +08:00
000035_add_credentials.down.sql refactor(weknoracloud): update credential handling and configuration 2026-04-15 11:37:24 +08:00
000035_add_credentials.up.sql refactor(weknoracloud): update credential handling and configuration 2026-04-15 11:37:24 +08:00
000036_kb_vector_store_id.down.sql feat: add vector_store_id column to knowledge_bases for per-KB vector store binding 2026-04-20 19:53:44 +08:00
000036_kb_vector_store_id.up.sql feat: add vector_store_id column to knowledge_bases for per-KB vector store binding 2026-04-20 19:53:44 +08:00
000037_wiki_and_indexing.down.sql feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
000037_wiki_and_indexing.up.sql feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
000038_im_session_agent_id.down.sql fix(im): isolate IM sessions per agent and recover from deleted sessions 2026-04-28 20:53:06 +08:00
000038_im_session_agent_id.up.sql fix(im): isolate IM sessions per agent and recover from deleted sessions 2026-04-28 20:53:06 +08:00
000039_session_user_id_and_pin.down.sql feat(sessions): add keyword search, user-scoped pinning, and IM source visibility 2026-04-30 16:23:00 +08:00
000039_session_user_id_and_pin.up.sql feat(sessions): add keyword search, user-scoped pinning, and IM source visibility 2026-04-30 16:23:00 +08:00
000040_wiki_log_entries.down.sql perf(wiki): move ingest log to event table and index to on-demand API 2026-05-08 21:48:52 +08:00
000040_wiki_log_entries.up.sql perf(wiki): move ingest log to event table and index to on-demand API 2026-05-08 21:48:52 +08:00
000041_task_queue_and_wiki_indexes.down.sql perf(wiki-ingest): scale to 4w-doc KBs + generic task queue / dead-letter 2026-05-10 00:01:06 +08:00
000041_task_queue_and_wiki_indexes.up.sql refactor(task_queue): enhance claim handling and test coverage 2026-07-09 17:41:07 +08:00
000042_mcp_tool_approval.down.sql feat(agent): human-in-the-loop approval for MCP tool calls (#1173) 2026-05-10 22:57:12 +08:00
000042_mcp_tool_approval.up.sql feat(agent): human-in-the-loop approval for MCP tool calls (#1173) 2026-05-10 22:57:12 +08:00
000043_tenant_rbac.down.sql refactor(rbac): address PR 1 review feedback 2026-05-18 17:28:58 +08:00
000043_tenant_rbac.up.sql feat(rbac): add tenant_members schema and auth wiring (PR 1 of 3, #1303) 2026-05-18 17:28:58 +08:00
000044_audit_log.down.sql feat(migration): add index on created_at for audit_logs 2026-05-18 17:28:58 +08:00
000044_audit_log.up.sql Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
000045_org_tenant_members.down.sql fix(rbac): dedup pending join/upgrade requests per (org, tenant, type) 2026-05-18 17:28:58 +08:00
000045_org_tenant_members.up.sql fix(rbac): dedup pending join/upgrade requests per (org, tenant, type) 2026-05-18 17:28:58 +08:00
000046_org_owner_tenant_id.down.sql fix(rbac): pin organization owner tenant in DB instead of deriving at runtime 2026-05-18 17:28:58 +08:00
000046_org_owner_tenant_id.up.sql fix(rbac): pin organization owner tenant in DB instead of deriving at runtime 2026-05-18 17:28:58 +08:00
000047_user_resource_favorites.down.sql feat(favorites): implement user favorites and recents functionality 2026-05-18 17:28:58 +08:00
000047_user_resource_favorites.up.sql feat(favorites): implement user favorites and recents functionality 2026-05-18 17:28:58 +08:00
000048_tenant_invitations.down.sql feat(invitations): implement pending invitations feature with polling and dialog 2026-05-18 17:28:58 +08:00
000048_tenant_invitations.up.sql feat(invitations): implement pending invitations feature with polling and dialog 2026-05-18 17:28:58 +08:00
000049_user_preferences.down.sql feat(user-preferences): implement user preferences management with backend support 2026-05-18 17:28:58 +08:00
000049_user_preferences.up.sql feat(user-preferences): implement user preferences management with backend support 2026-05-18 17:28:58 +08:00
000050_user_kb_pins.down.sql feat(knowledge-base): implement per-user pinning for knowledge bases 2026-05-18 17:28:58 +08:00
000050_user_kb_pins.up.sql feat(knowledge-base): implement per-user pinning for knowledge bases 2026-05-18 17:28:58 +08:00
000051_custom_agents_creator_backfill.down.sql feat(i18n): update localization files for improved clarity and consistency 2026-05-18 17:28:58 +08:00
000051_custom_agents_creator_backfill.up.sql feat(i18n): update localization files for improved clarity and consistency 2026-05-18 17:28:58 +08:00
000052_models_managed_by.down.sql feat(builtin-models): add managed_by column to models table 2026-05-26 11:37:03 +08:00
000052_models_managed_by.up.sql feat(builtin-models): add managed_by column to models table 2026-05-26 11:37:03 +08:00
000053_system_admin_and_settings.down.sql refactor(migrations): remove deprecated user system admin migration files and introduce new system settings migration 2026-05-26 21:13:56 +08:00
000053_system_admin_and_settings.up.sql refactor(migrations): remove deprecated user system admin migration files and introduce new system settings migration 2026-05-26 21:13:56 +08:00
000054_invitation_tokens.down.sql feat(rbac): add multi-use share-link invitations for invite_only mode (#1504) 2026-05-27 19:42:01 +08:00
000054_invitation_tokens.up.sql feat(rbac): add multi-use share-link invitations for invite_only mode (#1504) 2026-05-27 19:42:01 +08:00
000055_knowledge_processing_spans.down.sql feat(migrations): add knowledge_processing_spans table and rollback script 2026-05-28 15:14:45 +08:00
000055_knowledge_processing_spans.up.sql feat(migrations): add knowledge_processing_spans table and rollback script 2026-05-28 15:14:45 +08:00
000056_knowledge_pending_subtasks.down.sql feat: add knowledge parse cancellation with finalizing post-process state 2026-05-28 20:16:02 +08:00
000056_knowledge_pending_subtasks.up.sql feat: add knowledge parse cancellation with finalizing post-process state 2026-05-28 20:16:02 +08:00
000057_models_display_name.down.sql feat(migrations): add display_name column to models table 2026-05-29 17:03:42 +08:00
000057_models_display_name.up.sql feat(migrations): add display_name column to models table 2026-05-29 17:03:42 +08:00
000058_expand_knowledge_source.down.sql fix(schema): expand knowledge source length 2026-06-05 15:12:25 +08:00
000058_expand_knowledge_source.up.sql fix(schema): expand knowledge source length 2026-06-05 15:12:25 +08:00
000059_embeddings_hnsw_1024.down.sql fix(migrations): update migration comments for HNSW index 2026-06-08 12:20:37 +08:00
000059_embeddings_hnsw_1024.up.sql fix(migrations): update migration comments for HNSW index 2026-06-08 12:20:37 +08:00
000060_embed_channels.down.sql feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
000060_embed_channels.up.sql feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
000061_wiki_page_hierarchy.down.sql feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
000061_wiki_page_hierarchy.up.sql feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
000062_mcp_oauth.down.sql feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
000062_mcp_oauth.up.sql feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
000063_knowledge_multi_tags.down.sql feat: support multi-tag for document knowledge (#1790) 2026-06-26 00:18:48 +08:00
000063_knowledge_multi_tags.up.sql feat(frontend): redesign tag sidebar chips and tag edit dialog 2026-06-26 10:52:52 +08:00
000064_principal_model.down.sql feat(migrations): add principal model migration for MCP OAuth and tenant API config 2026-06-30 20:01:05 +08:00
000064_principal_model.up.sql feat(migrations): add principal model migration for MCP OAuth and tenant API config 2026-06-30 20:01:05 +08:00
000065_tenant_api_keys.down.sql fix(api-keys): harden scoped key auth after code review 2026-07-07 12:00:13 +08:00
000065_tenant_api_keys.up.sql test(api-keys): add unit tests for tenant API key validation 2026-07-07 12:00:13 +08:00
000066_expand_knowledge_span_name.down.sql fix(spans): expand knowledge span name column and truncate long wiki names 2026-07-13 10:35:44 +08:00
000066_expand_knowledge_span_name.up.sql fix(spans): expand knowledge span name column and truncate long wiki names 2026-07-13 10:35:44 +08:00
000067_question_suggestions.down.sql feat(agent): add question suggestions with after-answer follow-ups 2026-07-14 11:17:25 +08:00
000067_question_suggestions.up.sql feat(agent): add question suggestions with after-answer follow-ups 2026-07-14 11:17:25 +08:00
000068_storage_backends.down.sql feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
000068_storage_backends.up.sql feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
000069_resource_registry.down.sql feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00
000069_resource_registry.up.sql feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00
000070_temporary_documents.down.sql feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
000070_temporary_documents.up.sql feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
000071_platform_api_keys.down.sql feat(api-keys): add platform-scoped API keys for control-plane automation 2026-07-21 17:21:35 +08:00
000071_platform_api_keys.up.sql feat(api-keys): add platform-scoped API keys for control-plane automation 2026-07-21 17:21:35 +08:00
000072_auth_timestamp_tz.down.sql fix: normalize API key expiry timestamps to UTC (#2137) 2026-07-22 17:09:55 +08:00
000072_auth_timestamp_tz.up.sql fix: normalize API key expiry timestamps to UTC (#2137) 2026-07-22 17:09:55 +08:00
000073_kb_activity_scope.down.sql feat(knowledge): add scoped activity audit trail 2026-07-23 10:50:32 +08:00
000073_kb_activity_scope.up.sql feat(knowledge): add scoped activity audit trail 2026-07-23 10:50:32 +08:00
000074_mcp_oauth_refresh_lease.down.sql fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
000074_mcp_oauth_refresh_lease.up.sql fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
000075_wiki_page_revisions.down.sql feat(wiki): add page revision history with diff, revert, and manual editing 2026-07-27 15:03:24 +08:00
000075_wiki_page_revisions.up.sql feat(wiki): add page revision history with diff, revert, and manual editing 2026-07-27 15:03:24 +08:00
000076_knowledge_metadata_external_id_index.down.sql fix(migrations): renumber knowledge metadata index migration to 000076 2026-07-27 17:31:28 +08:00
000076_knowledge_metadata_external_id_index.up.sql fix(migrations): renumber knowledge metadata index migration to 000076 2026-07-27 17:31:28 +08:00
000077_remove_wiki_log.down.sql Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
000077_remove_wiki_log.up.sql Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
000078_chunk_editing_and_custom_metadata.down.sql feat(knowledge): support editable chunks and metadata 2026-07-28 20:23:48 +08:00
000078_chunk_editing_and_custom_metadata.up.sql feat(knowledge): support editable chunks and metadata 2026-07-28 20:23:48 +08:00
000079_knowledge_folder_path.down.sql feat(knowledge): store folder path for folder uploads and expose folder tree API 2026-08-04 20:45:29 +08:00
000079_knowledge_folder_path.up.sql feat(knowledge): store folder path for folder uploads and expose folder tree API 2026-08-04 20:45:29 +08:00
000080_knowledge_base_auto_tag_config.down.sql feat: 增加自动添加标签的功能 2026-08-07 15:01:01 +08:00
000080_knowledge_base_auto_tag_config.up.sql feat: 增加自动添加标签的功能 2026-08-07 15:01:01 +08:00
000081_message_artifacts.down.sql feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
000081_message_artifacts.up.sql feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
000082_tenant_sandbox_config.down.sql feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
000082_tenant_sandbox_config.up.sql feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
000083_session_sandbox_config.down.sql feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
000083_session_sandbox_config.up.sql feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
000084_memory.down.sql feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
000084_memory.up.sql feat(memory): add forced consolidation feature and related i18n updates 2026-08-13 18:00:02 +08:00
000085_message_usage.down.sql feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00
000085_message_usage.up.sql feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00
000086_tenant_skills.down.sql feat(sandbox): add tenant skill snapshot infrastructure 2026-08-24 16:00:23 +08:00
000086_tenant_skills.up.sql feat(sandbox): add tenant skill snapshot infrastructure 2026-08-24 16:00:23 +08:00
000087_skill_install_transcript.down.sql feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
000087_skill_install_transcript.up.sql feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
000088_skill_snapshot_planned_name.down.sql feat(snapshot): introduce planned name for skill snapshots to identify abandoned builds 2026-08-26 16:56:26 +08:00
000088_skill_snapshot_planned_name.up.sql feat(snapshot): introduce planned name for skill snapshots to identify abandoned builds 2026-08-26 16:56:26 +08:00
000089_env_vars.down.sql feat(sandbox): inject per-user and workspace skill env vars at execution 2026-08-27 14:32:00 +08:00
000089_env_vars.up.sql fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
000090_skill_catalog.down.sql feat(skills): store skills in a tenant catalog and install per sandbox 2026-08-28 15:17:37 +08:00
000090_skill_catalog.up.sql fix(skills): keep catalog bundles consistent and surface partial installs 2026-08-28 15:17:37 +08:00
000091_mcp_tool_enabled.down.sql feat(mcp): add per-tool enable toggle (#2989) 2026-09-05 17:19:20 +08:00
000091_mcp_tool_enabled.up.sql feat(mcp): add per-tool enable toggle (#2989) 2026-09-05 17:19:20 +08:00
000092_mcp_metadata.down.sql feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
000092_mcp_metadata.up.sql feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
000093_browser_authorization.down.sql feat(browser): connect local Chrome with task controls and display modes (#3180) 2026-09-11 17:59:27 +08:00
000093_browser_authorization.up.sql feat(browser): connect local Chrome with task controls and display modes (#3180) 2026-09-11 17:59:27 +08:00
000094_memory_consistency.down.sql fix(memory): preserve extraction progress and atomic memory updates (#3224) 2026-09-13 00:04:16 +08:00
000094_memory_consistency.up.sql fix(memory): preserve extraction progress and atomic memory updates (#3224) 2026-09-13 00:04:16 +08:00
000095_memory_vector_search.down.sql fix(memory): rank memories by the query, not by importance 2026-09-13 11:43:17 +08:00
000095_memory_vector_search.up.sql fix(memory): rank memories by the query, not by importance 2026-09-13 11:43:17 +08:00
000096_dingtalk_stream_only.down.sql fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
000096_dingtalk_stream_only.up.sql fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
000097_session_fork.down.sql feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
000097_session_fork.up.sql feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
000098_fork_snapshot_lease.down.sql feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
000098_fork_snapshot_lease.up.sql feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
000099_pg_search_0226.down.sql fix(docker): upgrade ParadeDB for CPUs without AVX2 2026-09-17 17:17:04 +08:00
000099_pg_search_0226.up.sql fix(docker): upgrade ParadeDB for CPUs without AVX2 2026-09-17 17:17:04 +08:00
000100_chunks_index_diet.down.sql perf(chunk): speed up chunk ingestion and batch updates (#3369) 2026-09-17 21:38:15 +08:00
000100_chunks_index_diet.up.sql perf(chunk): speed up chunk ingestion and batch updates (#3369) 2026-09-17 21:38:15 +08:00
000101_knowledge_profiles.down.sql feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
000101_knowledge_profiles.up.sql feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
000102_mcp_endpoints.down.sql feat(mcp): add built-in MCP server with per-workspace endpoints (#3371) 2026-09-17 22:40:05 +08:00
000102_mcp_endpoints.up.sql feat(mcp): add built-in MCP server with per-workspace endpoints (#3371) 2026-09-17 22:40:05 +08:00
000103_message_artifacts_table.down.sql feat(artifacts): artifacts library page backed by a message_artifacts table (#3384) 2026-09-18 12:10:19 +08:00
000103_message_artifacts_table.up.sql feat(artifacts): artifacts library page backed by a message_artifacts table (#3384) 2026-09-18 12:10:19 +08:00
000104_skill_served_version.down.sql fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
000104_skill_served_version.up.sql fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
000105_message_context_checkpoint.down.sql fix(migrations): renumber the context checkpoint migration to 000105 2026-09-18 21:26:26 +08:00
000105_message_context_checkpoint.up.sql fix(migrations): renumber the context checkpoint migration to 000105 2026-09-18 21:26:26 +08:00
000106_messages_session_created_index.down.sql feat(agent): size agent history by the window and calibrate token estimates (#3413) 2026-09-18 22:51:31 +08:00
000106_messages_session_created_index.up.sql feat(agent): size agent history by the window and calibrate token estimates (#3413) 2026-09-18 22:51:31 +08:00
000107_message_artifacts_deleted_at.down.sql feat(artifacts): let users delete generated files (#3447) 2026-09-20 13:01:46 +08:00
000107_message_artifacts_deleted_at.up.sql feat(artifacts): let users delete generated files (#3447) 2026-09-20 13:01:46 +08:00