fischer-agentkit/src/agentkit
chiguyong 2f55fc7434 feat(auth): U11 AuthProvider 抽象层 + auth_sessions schema
为未来对接集团 IdP(OIDC / SAML / LDAP / 飞书 / 钉钉 / 企微)留扩展点,
同时落地 auth_sessions 表(V2 替代 user_sessions)。

变更
- models.py: 新增 auth_sessions + auth_meta 表,V1→V2 数据回填
- providers/base.py: AuthProvider Protocol 接口契约
- providers/local.py: LocalAuthProvider 默认实现(封装 SQLite + bcrypt)
- providers/oidc_stub.py: StubOIDCProvider 占位(NotImplementedError)
- providers/__init__.py: get_auth_provider DI 工厂(lru_cache 单例)
- providers/exceptions.py: AuthProviderError / InvalidCredentials / ProviderNotImplemented
- providers/user.py: Provider-agnostic User 值对象
- tests/unit/auth/: 37 个测试覆盖 Protocol / DI / Local / OIDC 行为

auth_sessions.auth_provider 字段记录登录来源(local / oidc-stub / 未来
oidc-keycloak / saml / ldap),未来切 IdP 时审计可溯源。

测试: 37 passed (providers) + 62 passed (auth 全集) + ruff check clean
2026-06-21 01:28:14 +08:00
..
bus fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
chat fix: UI/UX 修复 + 暗色主题 + async generator 防御 2026-06-20 23:35:57 +08:00
cli fix(routing): U1-U6 路由优化 + 修复方案 + 代码审查修复 2026-06-20 19:31:49 +08:00
client feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
core fix: UI/UX 修复 + 暗色主题 + async generator 防御 2026-06-20 23:35:57 +08:00
evaluation feat(evaluation): U9 Ragas evaluation pipeline for RAG quality assessment 2026-06-06 22:49:27 +08:00
evolution feat: P0 production hardening — LLM cache, semantic routing, state persistence 2026-06-14 15:16:00 +08:00
experts feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
llm fix: UI/UX 修复 + 暗色主题 + async generator 防御 2026-06-20 23:35:57 +08:00
marketplace fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
mcp fix(agentkit): resolve all P0/P1/P2/P3 issues from code review 2026-06-07 22:05:18 +08:00
memory feat: P0 production hardening — LLM cache, semantic routing, state persistence 2026-06-14 15:16:00 +08:00
orchestrator fix(pipeline): address code review findings for adversarial loop 2026-06-12 10:02:37 +08:00
org feat(marketplace): add Phase B/C - CostAwareRouter, OrganizationContext, AlignmentGuard, Soul Evolution, Auction, Server Integration 2026-06-10 19:09:02 +08:00
prompts fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00
quality fix(review): apply code review fixes from ce-code-review 2026-06-16 00:24:14 +08:00
router feat(router): optimize routing intelligence — ExecutionMode expansion, multi-candidate scoring, quality gate skill match 2026-06-15 22:43:13 +08:00
server feat(auth): U11 AuthProvider 抽象层 + auth_sessions schema 2026-06-21 01:28:14 +08:00
session fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
skills fix(routing): U1-U6 路由优化 + 修复方案 + 代码审查修复 2026-06-20 19:31:49 +08:00
telemetry fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
tools feat: hub-and-spoke experts, tiered tool injection, unified event model (U3/U7/U10) 2026-06-17 10:46:16 +08:00
utils fix(security,reliability): resolve all P2 findings from code review 2026-06-10 15:05:40 +08:00
__init__.py feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
__main__.py feat(cli): AgentKit CLI with serve/version/health/task/skill/init/usage 2026-06-06 12:45:51 +08:00