Skip to content

refactor: REQ-016 workspace→agent concept unification#168

Merged
EXboys merged 3 commits into
mainfrom
ethink
Jun 22, 2026
Merged

refactor: REQ-016 workspace→agent concept unification#168
EXboys merged 3 commits into
mainfrom
ethink

Conversation

@ethink2026

Copy link
Copy Markdown
Collaborator

REQ-016: Workspace → Agent 概念统一

43 files, +1165/-1456

DB 层

  • workspaces.db → agents.db, workspaces 表 → agents 表(16字段)
  • workspace_members → agent_members, workspace_profiles → agent_profiles
  • gateway_agents + agent_bindings 从 accounts.db 移除
  • 所有表 workspace_id → agent_id (claude_agent_runs, mcp_registry, accounts)
  • ID 前缀: ws_xxx → agt_xxx
  • 旧 workspaces.db + ws_* 目录已清理

后端 (22 files)

  • infra/workspaces.py → agents.py (完整重写)
  • accounts.py: gateway_agents/agent_bindings 移除, issue_agent_key 新增
  • hosted_workspace_engines.py → hosted_agent_engines.py
  • API: /api/v1/workspaces → /api/v1/agents
  • mcp_registry: DB 迁移 (workspace_id→agent_id, 表重命名)

前端 (10 files)

  • CodingAgentWorkspacePage → CodingAgentChatPage
  • WorkspaceAgentProfilePanel → AgentProfilePanel
  • 路由/变量/文案全部 workspace → agent
  • 工作目录面板: 仅模板 Agent 显示

配置

  • EVOTOWN_WORKSPACES_DIR → EVOTOWN_AGENTS_DIR
  • 挂载路径: /app/data/workspaces → /app/data/agents

Hermes Agent and others added 3 commits June 18, 2026 13:40
…ucture

REQ-015 agent_role_dimensions:
  - New table: agent_role_dimensions (role_id, dim_id, dim_values)
  - API: GET/PUT /mcp-roles/{role_id}/dimensions
  - RolePanel: dimension tab with value picker (whitelist mode)
  - mcp_registry refactor: 422 lines restructured

REQ-011/012:
  - mcp_system/ directory with internal_mcp_deploy handler
  - manifest.json for system MCP registration
  - mcp_loader system source routing

Other:
  - mcp_publish_script.py removed (replaced by mcp_system)
  - McpPanel: source tabs + audit columns + internal deploy
  - Backend: agent_templates, claude_code_runner, mcp_loader updates
  - Frontend: EnterpriseConsole dimension route, McpPanel rewrite
  - Dockerfile cleanup
  - REQUIREMENTS_POOL: REQ-005→done, REQ-011/012/013/015/016 updated
DB changes:
  - workspaces.db → agents.db, workspaces → agents table (16 fields)
  - workspace_members → agent_members, workspace_profiles → agent_profiles
  - gateway_agents + agent_bindings removed from accounts.db
  - All workspace_id → agent_id across claude_agent_runs, mcp_registry, accounts DBs
  - ID prefix: agt_xxx (replaces ws_xxx)
  - Old workspaces.db + ws_* directories cleaned from disk

Backend (22 files):
  - infra/workspaces.py → agents.py (full rewrite, clean API)
  - accounts.py: gateway_agents/agent_bindings removed, issue_agent_key added
  - hosted_workspace_engines.py → hosted_agent_engines.py
  - All routes: /api/v1/workspaces → /api/v1/agents
  - All functions: get_workspace → get_agent, etc.
  - mcp_registry: DB migration for workspace_id→agent_id, table renames

Frontend (10 files):
  - CodingAgentWorkspacePage → CodingAgentChatPage
  - WorkspaceAgentProfilePanel → AgentProfilePanel
  - workspaceAgentPresets → agentPresets
  - All workspace_id/workspaceId → agent_id/agentId
  - Workspace directory panel: only show for template agents

Config:
  - EVOTOWN_WORKSPACES_DIR → EVOTOWN_AGENTS_DIR
  - Mount paths: /app/data/workspaces → /app/data/agents
  - .env updated
Integrate runtime_engine support from main while keeping workspace→agent
renaming from REQ-016.

Co-authored-by: Cursor <cursoragent@cursor.com>
@EXboys EXboys merged commit 33240a6 into main Jun 22, 2026
1 of 3 checks passed
@EXboys EXboys deleted the ethink branch June 22, 2026 02:13
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