# dsh-agent-teams bundle patch: mounts the agent-teams plugin into the host
# composition of a dsh profile. The plugin registers its `agent_teams_*` tools
# into the shared `tools` registry and one usage section into the global
# system prompt, so every session of the profile can drive AgentTeams through
# natural language ("用 AgentTeams 做 X").
#
# Install: `dsh plugin --profile <name> add <this package>` (npm or a local
# path). The `dsh plugin` command pnpm-installs the package into the profile
# and reconciles it into the profile's `dsh.profile.bundles` layer list.
- insert:
    - id: agent-teams
      # Node-resolvable package name — must stay in sync with package.json
      # `name`. Quoted because `@` is a reserved indicator in YAML and cannot
      # open a plain scalar.
      name: '@nanmicoder/dsh-agent-teams'
      config:
        # Team state lives under `<session workspace>/<stateDir>/<teamId>/`
        # (team.json + inbox/*.jsonl mailboxes).
        stateDir: .agent-teams
        # Provider used to spawn member subagents ('spawn' or 'fork').
        memberProvider: spawn
