@desplega.ai/agent-swarm 1.76.3 → 1.77.1

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.
@@ -175,6 +175,50 @@ describe("toolCallToProgress", () => {
175
175
  expect(result).toBe("🔌 context7: Query docs");
176
176
  });
177
177
 
178
+ // --- Provider-normalized MCP variants ---
179
+
180
+ test("bare agent-swarm store-progress is skipped", () => {
181
+ expect(toolCallToProgress("store-progress", {})).toBeNull();
182
+ });
183
+
184
+ test("bare agent-swarm send-task has pretty label", () => {
185
+ const result = toolCallToProgress("send-task", {});
186
+ expect(result).toBe("📤 Delegating task");
187
+ });
188
+
189
+ test("bare agent-swarm db-query has pretty label", () => {
190
+ const result = toolCallToProgress("db-query", {});
191
+ expect(result).toBe("🗃️ Querying database");
192
+ });
193
+
194
+ test("codex MCP args with agent-swarm server use pretty labels", () => {
195
+ const result = toolCallToProgress("send-task", {
196
+ server: "agent-swarm",
197
+ tool: "send-task",
198
+ arguments: { task: "ping" },
199
+ });
200
+ expect(result).toBe("📤 Delegating task");
201
+ });
202
+
203
+ test("codex MCP args with agent-swarm store-progress are skipped", () => {
204
+ expect(
205
+ toolCallToProgress("store-progress", {
206
+ server: "agent-swarm",
207
+ tool: "store-progress",
208
+ arguments: { status: "completed" },
209
+ }),
210
+ ).toBeNull();
211
+ });
212
+
213
+ test("codex MCP args with external server keep server prefix", () => {
214
+ const result = toolCallToProgress("list-issues", {
215
+ server: "linear",
216
+ tool: "list-issues",
217
+ arguments: {},
218
+ });
219
+ expect(result).toBe("🔌 linear: List issues");
220
+ });
221
+
178
222
  // --- Short path helper (tested implicitly) ---
179
223
 
180
224
  test("Read with short path (<=2 segments) keeps full path", () => {