Skip to content

feat: Agent model policy, MCP, roles, auth, UI restructure#155

Merged
EXboys merged 6 commits into
mainfrom
feat/claude-agent-conversation-fixes
Jun 15, 2026
Merged

feat: Agent model policy, MCP, roles, auth, UI restructure#155
EXboys merged 6 commits into
mainfrom
feat/claude-agent-conversation-fixes

Conversation

@ethink2026

Copy link
Copy Markdown
Collaborator

变更概览

33 个文件,+4082/-1206 行,6 个模块:

feat(agent): workspace 级模型策略

  • model_policy 字段 (all | routes_only),控制上游模型可见性
  • 创建/编辑 workspace 弹窗增加策略选择器

refactor(agent): 路由更名为 /agent

  • /coding-agent → /agent,API 同步更新
  • 删除废弃 AgentEntryPage、AgentsPanel

feat(auth): 账号密码登录

  • bcrypt 密码哈希,staff session 支持

feat(skills): 技能管理统一

  • source_type 分类,SkillsManagementPage

feat(mcp): MCP 服务管理 + 角色系统 + 菜单重构

  • mcp_registry:MCP 注册表、workspace/role 权限策略
  • McpPanel + RolePanel 管理面板
  • Agent 工作台移除手动 MCP 选择器,运行时自动注入
  • 后台菜单二级分组:首页 | 智能体中心 | 能力中心 | 模型管理 | 企业管理

refactor(workspace): 简化目录结构

  • 目录从 base/{owner}/{ws} 简化为 base/{ws}

Hermes Agent added 6 commits June 15, 2026 11:39
…ibility

- Add model_policy column to workspaces table (all | routes_only, default all for existing)
- list_available_models(policy) filters by policy; routes_only hides upstream models
- GET /coding-agent/options accepts workspace_id, respects workspace policy
- POST/PATCH workspace validates routes_only requires >=1 enabled route alias
- Frontend: create/edit workspace modals show model_policy radio (admin only)
- Frontend: workspace options API call includes workspace_id for policy filtering
…ated AgentEntryPage

- Frontend: /coding-agent → /agent, /coding-agent/workspaces/:id → /agent/workspaces/:id
- Backend: /api/v1/coding-agent/options → /api/v1/agent/options
- Remove deprecated AgentEntryPage.tsx and AgentsPanel.tsx (replaced by workspace system)
- Update DispatchPanel, EnterpriseConsole tab mapping to use new routes
- Rename workspace title to 'Agent 工作台'
- Add login_name and password_hash to gateway_accounts table
- Implement staff-login endpoint with bcrypt password verification
- Staff session creates token for console API access
- require_admin supports staff session in addition to API keys
- Frontend: staff login UI, token management, session helpers
- Simplify GatewayAccountsPanel, remove SetupAgentRequest
- Add clearConsoleSession and isAdmin to auth hooks
- Add source_type column to skills table (enterprise/user)
- Skill market API supports source_type filter
- account_skills API adds workspace-skills scan endpoint
- New SkillsManagementPage for unified skill assignment
- Simplify SkillTab component
- Extract GatewayApiKey type to AccountKeyTable
…cture

- New mcp_registry.py: MCP service catalog + workspace/role policies
- New mcp_services API: CRUD for MCP services, policies, roles
- New McpPanel.tsx: MCP management with direct-binding + role tabs
- New RolePanel.tsx: standalone agent role management (/console/roles)
- Auto-inject MCP from workspace policy (remove manual MCP selector)
- Admin menu restructured: 4 expandable groups + standalone Home
- Groups: 智能体中心, 能力中心, 模型管理, 企业管理
- REQUIREMENTS_POOL updated with REQ-005 (MCP) and REQ-006 (Skills)
…rectory

- Flatten workspace dir: base/owner_id/ws_id → base/ws_id
- Store workspace_id as root_path instead of absolute path
@EXboys EXboys merged commit a218d3d into main Jun 15, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants