fischer-agentkit/src/agentkit/server/routes
chiguyong a6e1bf5884
Test / backend-test (pull_request) Has been cancelled Details
Test / frontend-unit (pull_request) Has been cancelled Details
Test / api-e2e (pull_request) Has been cancelled Details
Test / frontend-e2e (pull_request) Has been cancelled Details
feat(bitable): 多维表格文件层 + 默认字段 + 表内字段操作 + ce-code-review 修复 (Stage 1)
实现多维表格 UI 完整性 Stage 1(U1-U6),补齐飞书/twenty 对齐缺失的文件层、
默认字段与表内字段操作能力,并修复 ce-code-review 走查发现的 P0/P1 级问题。

后端(U1-U2):
- 新增 BitableFile 实体(models/db/repository/service/routes),三级层级:文件→数据表→字段/记录
- Schema V2 迁移:bitable_files 表 + tables.file_id 列,幂等(IF NOT EXISTS),保留 V1 孤儿表
- 新建数据表自动创建 5 个默认字段(标题/状态/日期/创建人/创建时间)
- agent-owned 字段在 create_record 时自动填充(按 type+owner 匹配,传 actor_user_id)
- 7 个文件 REST 端点 + IDOR ownership 检查(404-before-403,internal token 旁路)

前端(U3-U5):
- 文件列表页(FileCard 网格 + 新建/重命名/删除)+ 文件详情页(侧栏表格列表 + vxe-table 网格)
- Vue Router 嵌套路由 /bitable → /bitable/:fileId → /bitable/:fileId/:tableId
- 列头菜单(编辑/隐藏/删除字段)+ 末尾 + 列新增字段
- select/multiselect 字段自定义单元格编辑器 + Tag 展示
- Pinia store 扩展 file 状态与动作,深链直访回退 getFile,fileId 切换 watch

测试(U6):
- 文件 CRUD(12 例)+ 默认字段(10 例)单元测试
- 3 个 E2E spec(视图加载、文件流、字段操作),后端不可用时优雅跳过

ce-code-review 修复(P0/P1):
- P0 路由冲突:GET /files/{file_id} 遮蔽下载端点 → 下载改 /uploads/{filename}
- P0 IDOR:update/delete field/record/view 五端点补 ownership 检查
- P1 is_initialized property 缺失致二次初始化崩溃
- P1 直接 URL 导航失效(files 数组为空)→ selectFile 回退 getFile
- P1 fileId 切换不重载 → 增加 watch
- P1 轮询丢弃最终公式值(wasCalculating 守卫)+ 复用视图 filters
- P1 测试断言 200→201;test_db 无 URL 用例解除 postgres 标记得以执行
- P2 _check_table_ownership 403→404;输入长度校验;upload field-table 一致性校验
- P2 multiselect 浅比较 → 深比较;E2E bitable-view 补 waitForServer 守卫

验证:ruff check 通过;pytest 91 passed/116 skipped;vue-tsc --noEmit 通过。
2026-06-29 04:07:45 +08:00
..
__init__.py feat(mcp): U14 — Skill/Team MCP publish with admin auth + dangerous-tool opt-in 2026-06-25 21:10:06 +08:00
admin.py fix(review): U5 DB migration — always run init_auth_db + busy_timeout 2026-06-22 16:40:30 +08:00
agents.py feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
auth.py fix: Tauri reload, multi-conv blocking, skill install, UI polish 2026-06-23 11:03:46 +08:00
bitable.py feat(bitable): 多维表格文件层 + 默认字段 + 表内字段操作 + ce-code-review 修复 (Stage 1) 2026-06-29 04:07:45 +08:00
calendar.py test(calendar): wire calendar router into app.py + test plan 2026-06-24 11:51:31 +08:00
channels.py fix(security): P0 安全加固 + 多实例部署一致性 (U1-U4 + U5c) 2026-06-26 04:05:33 +08:00
chat.py feat(orchestrator): add pipeline checkpoint and crash recovery (U7) 2026-06-24 21:04:18 +08:00
config_sync.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
documents.py feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
evolution.py feat(agentkit): Phase 4 enterprise production upgrade — 12 Implementation Units 2026-06-06 21:51:04 +08:00
evolution_dashboard.py fix(gui): 修复对话无skill时无法聊天、空对话列表、输入框清空、监控数据 2026-06-13 11:32:45 +08:00
experts.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
health.py fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00
kb_management.py feat(rag_platform): U6 — hit processing mode + KB settings 2026-06-25 12:44:47 +08:00
llm.py fix: code review P0/P1 fixes — history param bug, llm dict access, WS ping 2026-06-15 08:30:49 +08:00
llm_gateway.py fix(review): U1 Redis quota enforcement — key construction + fail-closed + degradation recovery + async 2026-06-22 16:22:33 +08:00
mcp_publish.py feat(mcp): U14 — Skill/Team MCP publish with admin auth + dangerous-tool opt-in 2026-06-25 21:10:06 +08:00
memory.py feat(agentkit): Phase 4 enterprise production upgrade — 12 Implementation Units 2026-06-06 21:51:04 +08:00
metrics.py fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00
portal.py fix(code-review): 修复走查发现的 13 High + Medium 安全/可靠性问题 2026-06-28 15:06:41 +08:00
settings.py fix(review): U3 atomic file writes for YAML + .env + skill config 2026-06-22 17:03:27 +08:00
skill_management.py feat(skills): distinguish agent templates from business skills in UI 2026-06-23 15:55:59 +08:00
skills.py feat(admin): U6 — Skill & KB management endpoints + department binding 2026-06-21 16:19:51 +08:00
system.py fix: UI/UX 修复 + 暗色主题 + async generator 防御 2026-06-20 23:35:57 +08:00
tasks.py feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
terminal.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
terminal_server.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
terminal_whitelist.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
workflows.py fix: comprehensive code review fixes + WS test stability 2026-06-15 08:17:34 +08:00
ws.py fix: comprehensive code review fixes + WS test stability 2026-06-15 08:17:34 +08:00