opencode-swarm-plugin 0.18.0 → 0.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm-plugin",
3
- "version": "0.18.0",
3
+ "version": "0.20.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/agent-mail.ts CHANGED
@@ -1,6 +1,19 @@
1
1
  /**
2
2
  * Agent Mail Module - MCP client for multi-agent coordination
3
3
  *
4
+ * ⚠️ DEPRECATED: This MCP-based implementation is deprecated as of v0.14.0.
5
+ *
6
+ * Use the embedded Swarm Mail implementation instead:
7
+ * - swarmmail_* tools in src/streams/swarm-mail.ts
8
+ * - No external MCP server required
9
+ * - Embedded PGLite with event sourcing
10
+ * - Better error messages and recovery
11
+ *
12
+ * This file remains for backward compatibility and will be removed in v1.0.0.
13
+ * See README.md "Migrating from MCP Agent Mail" section for migration guide.
14
+ *
15
+ * ---
16
+ *
4
17
  * This module provides type-safe wrappers around the Agent Mail MCP server.
5
18
  * It enforces context-preservation defaults to prevent session exhaustion.
6
19
  *
@@ -18,6 +31,7 @@ import { tool } from "@opencode-ai/plugin";
18
31
  import { z } from "zod";
19
32
  import { isToolAvailable, warnMissingTool } from "./tool-availability";
20
33
  import { getRateLimiter, type RateLimiter } from "./rate-limiter";
34
+ import type { MailSessionState } from "./streams/events";
21
35
 
22
36
  // ============================================================================
23
37
  // Configuration
@@ -79,13 +93,12 @@ const RECOVERY_CONFIG = {
79
93
  // Types
80
94
  // ============================================================================
81
95
 
82
- /** Agent Mail session state */
83
- export interface AgentMailState {
84
- projectKey: string;
85
- agentName: string;
86
- reservations: number[];
87
- startedAt: string;
88
- }
96
+ /**
97
+ * Agent Mail session state
98
+ * @deprecated Use MailSessionState from streams/events.ts instead
99
+ * This is kept for backward compatibility and re-exported as an alias
100
+ */
101
+ export type AgentMailState = MailSessionState;
89
102
 
90
103
  // ============================================================================
91
104
  // Module-level state (keyed by sessionID)