fischer-agentkit/tests/unit/server
chiguyong fd7f6816b8 feat(admin): U6 — Skill & KB management endpoints + department binding
SkillService: enable/disable (persisted in skill_states table, schema
v4), import from YAML (with path traversal + name validation), reload
from file, update config. GET /skills now filters disabled skills.

KbService: list/upload/delete documents with department_id binding.
Added department_id field to KnowledgeSource + UploadedDocument.
Department visibility: (bound to user depts) ∪ (global = None).

10 new admin endpoints: skill enable/disable/import/reload/update,
KB documents CRUD, source sync/rebuild. All guarded by _require_admin.

Implemented reload stub in skill_management.py (was no-op).

54 new tests (26 unit + 28 integration). Fixed 4 pre-existing lint
errors. 357 admin tests pass, no regressions.
2026-06-21 16:19:51 +08:00
..
__init__.py fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
test_chat_team.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_event_queue_integration.py feat: integrate SQ/EQ into portal WebSocket and CLI (Phase 4) 2026-06-17 11:05:04 +08:00
test_evolution_dashboard.py feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00
test_kb_management.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_portal_routes.py feat: SQLite persistence, verification loop, spec-driven execution 2026-06-17 10:45:20 +08:00
test_portal_ws_background.py fix: WebSocket task persistence three-layer defense with security hardening 2026-06-17 22:11:51 +08:00
test_settings_routes.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_skill_management.py feat(admin): U6 — Skill & KB management endpoints + department binding 2026-06-21 16:19:51 +08:00
test_terminal_routes.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_workflow_routes.py feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00