opencode-swarm-plugin 0.13.2 → 0.14.0

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/index.js CHANGED
@@ -35192,7 +35192,6 @@ var SwarmPlugin = async (input) => {
35192
35192
  return {
35193
35193
  tool: {
35194
35194
  ...beadsTools,
35195
- ...agentMailTools,
35196
35195
  ...swarmMailTools,
35197
35196
  ...structuredTools,
35198
35197
  ...swarmTools,
@@ -35240,7 +35239,6 @@ var SwarmPlugin = async (input) => {
35240
35239
  var src_default = SwarmPlugin;
35241
35240
  var allTools = {
35242
35241
  ...beadsTools,
35243
- ...agentMailTools,
35244
35242
  ...swarmMailTools,
35245
35243
  ...structuredTools,
35246
35244
  ...swarmTools,
package/dist/plugin.js CHANGED
@@ -31340,19 +31340,6 @@ var agentmail_restart = tool({
31340
31340
  }, null, 2);
31341
31341
  }
31342
31342
  });
31343
- var agentMailTools = {
31344
- agentmail_init,
31345
- agentmail_send,
31346
- agentmail_inbox,
31347
- agentmail_read_message,
31348
- agentmail_summarize_thread,
31349
- agentmail_reserve,
31350
- agentmail_release,
31351
- agentmail_ack,
31352
- agentmail_search,
31353
- agentmail_health,
31354
- agentmail_restart
31355
- };
31356
31343
 
31357
31344
  // src/swarm-mail.ts
31358
31345
  init_dist();
@@ -34723,7 +34710,6 @@ var SwarmPlugin = async (input) => {
34723
34710
  return {
34724
34711
  tool: {
34725
34712
  ...beadsTools,
34726
- ...agentMailTools,
34727
34713
  ...swarmMailTools,
34728
34714
  ...structuredTools,
34729
34715
  ...swarmTools,
@@ -34770,7 +34756,6 @@ var SwarmPlugin = async (input) => {
34770
34756
  };
34771
34757
  var allTools = {
34772
34758
  ...beadsTools,
34773
- ...agentMailTools,
34774
34759
  ...swarmMailTools,
34775
34760
  ...structuredTools,
34776
34761
  ...swarmTools,
@@ -252,139 +252,7 @@ const beads_link_thread = tool({
252
252
  });
253
253
 
254
254
  // =============================================================================
255
- // Agent Mail Tools
256
- // =============================================================================
257
-
258
- const agentmail_init = tool({
259
- description: "Initialize Agent Mail session",
260
- args: {
261
- project_path: tool.schema.string().describe("Absolute path to the project"),
262
- agent_name: tool.schema.string().optional().describe("Custom agent name"),
263
- task_description: tool.schema
264
- .string()
265
- .optional()
266
- .describe("Task description"),
267
- },
268
- execute: (args, ctx) => execTool("agentmail_init", args, ctx),
269
- });
270
-
271
- const agentmail_send = tool({
272
- description: "Send message to other agents",
273
- args: {
274
- to: tool.schema
275
- .array(tool.schema.string())
276
- .describe("Recipient agent names"),
277
- subject: tool.schema.string().describe("Message subject"),
278
- body: tool.schema.string().describe("Message body"),
279
- thread_id: tool.schema
280
- .string()
281
- .optional()
282
- .describe("Thread ID for grouping"),
283
- importance: tool.schema
284
- .enum(["low", "normal", "high", "urgent"])
285
- .optional()
286
- .describe("Message importance"),
287
- ack_required: tool.schema
288
- .boolean()
289
- .optional()
290
- .describe("Require acknowledgment"),
291
- },
292
- execute: (args, ctx) => execTool("agentmail_send", args, ctx),
293
- });
294
-
295
- const agentmail_inbox = tool({
296
- description: "Fetch inbox (CONTEXT-SAFE: bodies excluded, limit 5)",
297
- args: {
298
- limit: tool.schema
299
- .number()
300
- .max(5)
301
- .optional()
302
- .describe("Max messages (max 5)"),
303
- urgent_only: tool.schema
304
- .boolean()
305
- .optional()
306
- .describe("Only urgent messages"),
307
- since_ts: tool.schema
308
- .string()
309
- .optional()
310
- .describe("Messages since timestamp"),
311
- },
312
- execute: (args, ctx) => execTool("agentmail_inbox", args, ctx),
313
- });
314
-
315
- const agentmail_read_message = tool({
316
- description: "Fetch ONE message body by ID",
317
- args: {
318
- message_id: tool.schema.number().describe("Message ID"),
319
- },
320
- execute: (args, ctx) => execTool("agentmail_read_message", args, ctx),
321
- });
322
-
323
- const agentmail_summarize_thread = tool({
324
- description: "Summarize thread (PREFERRED over fetching all messages)",
325
- args: {
326
- thread_id: tool.schema.string().describe("Thread ID"),
327
- include_examples: tool.schema
328
- .boolean()
329
- .optional()
330
- .describe("Include example messages"),
331
- },
332
- execute: (args, ctx) => execTool("agentmail_summarize_thread", args, ctx),
333
- });
334
-
335
- const agentmail_reserve = tool({
336
- description: "Reserve file paths for exclusive editing",
337
- args: {
338
- paths: tool.schema
339
- .array(tool.schema.string())
340
- .describe("File paths/patterns"),
341
- ttl_seconds: tool.schema.number().optional().describe("Reservation TTL"),
342
- exclusive: tool.schema.boolean().optional().describe("Exclusive lock"),
343
- reason: tool.schema.string().optional().describe("Reservation reason"),
344
- },
345
- execute: (args, ctx) => execTool("agentmail_reserve", args, ctx),
346
- });
347
-
348
- const agentmail_release = tool({
349
- description: "Release file reservations",
350
- args: {
351
- paths: tool.schema
352
- .array(tool.schema.string())
353
- .optional()
354
- .describe("Paths to release"),
355
- reservation_ids: tool.schema
356
- .array(tool.schema.number())
357
- .optional()
358
- .describe("Reservation IDs"),
359
- },
360
- execute: (args, ctx) => execTool("agentmail_release", args, ctx),
361
- });
362
-
363
- const agentmail_ack = tool({
364
- description: "Acknowledge a message",
365
- args: {
366
- message_id: tool.schema.number().describe("Message ID"),
367
- },
368
- execute: (args, ctx) => execTool("agentmail_ack", args, ctx),
369
- });
370
-
371
- const agentmail_search = tool({
372
- description: "Search messages by keyword",
373
- args: {
374
- query: tool.schema.string().describe("Search query"),
375
- limit: tool.schema.number().optional().describe("Max results"),
376
- },
377
- execute: (args, ctx) => execTool("agentmail_search", args, ctx),
378
- });
379
-
380
- const agentmail_health = tool({
381
- description: "Check if Agent Mail server is running",
382
- args: {},
383
- execute: (args, ctx) => execTool("agentmail_health", args, ctx),
384
- });
385
-
386
- // =============================================================================
387
- // Swarm Mail Tools (Embedded - Primary)
255
+ // Swarm Mail Tools (Embedded)
388
256
  // =============================================================================
389
257
 
390
258
  const swarmmail_init = tool({
@@ -901,18 +769,7 @@ export const SwarmPlugin: Plugin = async (
901
769
  beads_ready,
902
770
  beads_sync,
903
771
  beads_link_thread,
904
- // Agent Mail (Legacy MCP)
905
- agentmail_init,
906
- agentmail_send,
907
- agentmail_inbox,
908
- agentmail_read_message,
909
- agentmail_summarize_thread,
910
- agentmail_reserve,
911
- agentmail_release,
912
- agentmail_ack,
913
- agentmail_search,
914
- agentmail_health,
915
- // Swarm Mail (Embedded - Primary)
772
+ // Swarm Mail (Embedded)
916
773
  swarmmail_init,
917
774
  swarmmail_send,
918
775
  swarmmail_inbox,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm-plugin",
3
- "version": "0.13.2",
3
+ "version": "0.14.0",
4
4
  "description": "Multi-agent swarm coordination for OpenCode with learning capabilities, beads integration, and Agent Mail",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -135,7 +135,6 @@ export const SwarmPlugin: Plugin = async (
135
135
  */
136
136
  tool: {
137
137
  ...beadsTools,
138
- ...agentMailTools,
139
138
  ...swarmMailTools,
140
139
  ...structuredTools,
141
140
  ...swarmTools,
@@ -357,7 +356,6 @@ export {
357
356
  */
358
357
  export const allTools = {
359
358
  ...beadsTools,
360
- ...agentMailTools,
361
359
  ...swarmMailTools,
362
360
  ...structuredTools,
363
361
  ...swarmTools,