feat: 技能收藏与常驻(always-on)支持
- 新增 skill_favorites / skill_always_on 迁移与持久化模型字段 - skills 路由、存储、前端设置页支持收藏与常驻 - 调整摘要中间件与 lead agent 提示词 - 同步岗位 position_sync 及相关配置清理 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5ebbb82d66
commit
5182ea5d11
19 files changed
+472
-107
No files matched your search
@@ -85,3 +85,23 @@ class SkillStore(ABC):
|
||||
DB round-trip per candidate skill.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
async def list_always_on_names(self) -> set[str]:
|
||||
"""Return the set of skill names marked 常驻(免压缩) (``always_on = True``).
|
||||
|
||||
Batch query used by the prompt builder to decide which skills bypass
|
||||
skill compression — one query instead of a per-skill round-trip.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
async def list_favorite_skill_names(self, user_id: str) -> set[str]:
|
||||
"""Return the skill names in ``user_id``'s "我的技能" collection.
|
||||
|
||||
These are skills the user does not own but that landed in their list —
|
||||
currently only via their 岗位 (position) sync (``origin='position'``).
|
||||
Owned skills are NOT included here (the caller detects those via
|
||||
``owner_user_id``).
|
||||
"""
|
||||
raise NotImplementedError
|
||||
Reference in new issue
Block a user