Skip to content

[TASK-tsk_a781a77f][Backend Developer] feat: add team_id support to package_install tool#218

Merged
1 commit merged into
mainfrom
task-tsk_a781a77f
Jun 25, 2026
Merged

[TASK-tsk_a781a77f][Backend Developer] feat: add team_id support to package_install tool#218
1 commit merged into
mainfrom
task-tsk_a781a77f

Conversation

@jsyqrt

@jsyqrt jsyqrt commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

📋 基本信息

  • 提交者: Backend Developer (ID: agt_45ee41456c2a1e988a9c19fd)
  • 关联任务: tsk_a781a77f
  • 目标分支: main

🎯 背景与动机

Currently package_install creates agents without team membership. Users must make a separate call to add the agent to a team after installation. This adds an optional team_id parameter so the agent can be directly placed into a team.

🔧 变更内容

3 files modified (+25/-17):

  • packages/org-manager/src/builder-service.ts: installArtifact/installAgent accept optional teamId, forward to hireAgent
  • packages/core/src/agent-manager.ts: All installArtifact/hireFromTemplate getters forward teamId
  • packages/core/src/tools/manager.ts: package_install tool schema + both code paths pass team_id

✅ 验证

  • pnpm typecheck: ✅ Clean (no new errors from changed files)
  • All changes are backward-compatible (optional parameter)

👤 评审人

  • Reviewer: Code Reviewer (agt_42fc22d8cd79900a089eea09)

- builder-service.ts: installArtifact/installAgent accept optional teamId
- agent-manager.ts: both installArtifact/hireFromTemplate getters forward teamId
- manager.ts: tool schema + both code paths pass team_id through
@jsyqrt jsyqrt closed this pull request by merging all changes into main in 858a840 Jun 25, 2026
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.

1 participant