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/src/swarm-mail.ts CHANGED
@@ -28,6 +28,7 @@ import {
28
28
  checkSwarmHealth,
29
29
  } from "./streams/swarm-mail";
30
30
  import { getActiveReservations } from "./streams/projections";
31
+ import type { MailSessionState } from "./streams/events";
31
32
  import {
32
33
  existsSync,
33
34
  mkdirSync,
@@ -47,13 +48,12 @@ interface ToolContext {
47
48
  sessionID: string;
48
49
  }
49
50
 
50
- /** Swarm Mail session state */
51
- export interface SwarmMailState {
52
- projectKey: string;
53
- agentName: string;
54
- reservations: number[];
55
- startedAt: string;
56
- }
51
+ /**
52
+ * Swarm Mail session state
53
+ * @deprecated Use MailSessionState from streams/events.ts instead
54
+ * This is kept for backward compatibility and re-exported as an alias
55
+ */
56
+ export type SwarmMailState = MailSessionState;
57
57
 
58
58
  /** Init tool arguments */
59
59
  interface InitArgs {