@compilr-dev/sdk 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/team/team.js +9 -0
- package/package.json +1 -1
package/dist/team/team.js
CHANGED
|
@@ -152,6 +152,15 @@ export class AgentTeam {
|
|
|
152
152
|
if (defaultTeamAgent) {
|
|
153
153
|
defaultTeamAgent.setAgent(agent);
|
|
154
154
|
}
|
|
155
|
+
// Inject current team roster into the new agent's pins
|
|
156
|
+
if (this._sharedContext.hasTeamRoster() && agent.hasPins()) {
|
|
157
|
+
agent.addPin({
|
|
158
|
+
id: 'team-roster',
|
|
159
|
+
content: this._sharedContext.formatTeamRoster(),
|
|
160
|
+
priority: 'info',
|
|
161
|
+
scope: 'session',
|
|
162
|
+
});
|
|
163
|
+
}
|
|
155
164
|
}
|
|
156
165
|
/**
|
|
157
166
|
* Check if an agent exists in the team
|