agent-mailbox-core 1.0.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.
@@ -0,0 +1,149 @@
1
+ /**
2
+ * OpenCode Plugin wrapper for agent-mailbox
3
+ *
4
+ * Usage in opencode.json:
5
+ * "plugin": ["agent-mailbox/plugin"]
6
+ */
7
+ declare const _default: (ctx: import("@opencode-ai/plugin").PluginInput) => Promise<{
8
+ tool: {
9
+ msg_send: {
10
+ description: string;
11
+ args: {
12
+ to_agent: import("zod").ZodString;
13
+ subject: import("zod").ZodString;
14
+ body: import("zod").ZodString;
15
+ thread_id: import("zod").ZodOptional<import("zod").ZodString>;
16
+ priority: import("zod").ZodOptional<import("zod").ZodEnum<{
17
+ high: "high";
18
+ normal: "normal";
19
+ low: "low";
20
+ }>>;
21
+ ttl_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
22
+ idempotency_key: import("zod").ZodOptional<import("zod").ZodString>;
23
+ trace_id: import("zod").ZodOptional<import("zod").ZodString>;
24
+ };
25
+ execute(args: {
26
+ to_agent: string;
27
+ subject: string;
28
+ body: string;
29
+ thread_id?: string | undefined;
30
+ priority?: "high" | "normal" | "low" | undefined;
31
+ ttl_seconds?: number | undefined;
32
+ idempotency_key?: string | undefined;
33
+ trace_id?: string | undefined;
34
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
35
+ };
36
+ msg_read_inbox: {
37
+ description: string;
38
+ args: {
39
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
40
+ include_read: import("zod").ZodOptional<import("zod").ZodBoolean>;
41
+ };
42
+ execute(args: {
43
+ limit?: number | undefined;
44
+ include_read?: boolean | undefined;
45
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
46
+ };
47
+ msg_acknowledge: {
48
+ description: string;
49
+ args: {
50
+ message_id: import("zod").ZodNumber;
51
+ response: import("zod").ZodOptional<import("zod").ZodString>;
52
+ };
53
+ execute(args: {
54
+ message_id: number;
55
+ response?: string | undefined;
56
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
57
+ };
58
+ msg_search: {
59
+ description: string;
60
+ args: {
61
+ query: import("zod").ZodString;
62
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
63
+ };
64
+ execute(args: {
65
+ query: string;
66
+ limit?: number | undefined;
67
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
68
+ };
69
+ msg_broadcast: {
70
+ description: string;
71
+ args: {
72
+ subject: import("zod").ZodString;
73
+ body: import("zod").ZodString;
74
+ priority: import("zod").ZodOptional<import("zod").ZodEnum<{
75
+ high: "high";
76
+ normal: "normal";
77
+ low: "low";
78
+ }>>;
79
+ };
80
+ execute(args: {
81
+ subject: string;
82
+ body: string;
83
+ priority?: "high" | "normal" | "low" | undefined;
84
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
85
+ };
86
+ msg_list_threads: {
87
+ description: string;
88
+ args: {
89
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
90
+ };
91
+ execute(args: {
92
+ limit?: number | undefined;
93
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
94
+ };
95
+ msg_request: {
96
+ description: string;
97
+ args: {
98
+ to_agent: import("zod").ZodString;
99
+ subject: import("zod").ZodString;
100
+ body: import("zod").ZodString;
101
+ timeout_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
102
+ };
103
+ execute(args: {
104
+ to_agent: string;
105
+ subject: string;
106
+ body: string;
107
+ timeout_seconds?: number | undefined;
108
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
109
+ };
110
+ msg_list_agents: {
111
+ description: string;
112
+ args: {};
113
+ execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
114
+ };
115
+ msg_activity_feed: {
116
+ description: string;
117
+ args: {
118
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
119
+ minutes: import("zod").ZodOptional<import("zod").ZodNumber>;
120
+ };
121
+ execute(args: {
122
+ limit?: number | undefined;
123
+ minutes?: number | undefined;
124
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
125
+ };
126
+ msg_metrics: {
127
+ description: string;
128
+ args: {};
129
+ execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
130
+ };
131
+ msg_dead_letters: {
132
+ description: string;
133
+ args: {
134
+ action: import("zod").ZodOptional<import("zod").ZodEnum<{
135
+ list: "list";
136
+ replay: "replay";
137
+ }>>;
138
+ id: import("zod").ZodOptional<import("zod").ZodNumber>;
139
+ };
140
+ execute(args: {
141
+ action?: "list" | "replay" | undefined;
142
+ id?: number | undefined;
143
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
144
+ };
145
+ };
146
+ "experimental.chat.system.transform": (input: any, output: any) => Promise<void>;
147
+ }>;
148
+ export default _default;
149
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDA4OqD,GAAG,UAAU,GAAG;;AAxNxE,wBA4NoB"}