opencode-swarm-plugin 0.62.2 → 0.63.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,248 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Set working directory for ralph operations
4
+ */
5
+ export declare function setRalphWorkingDirectory(directory: string): void;
6
+ /**
7
+ * Get working directory for ralph operations
8
+ */
9
+ export declare function getRalphWorkingDirectory(): string;
10
+ /**
11
+ * Initialize a ralph project
12
+ */
13
+ export declare const ralph_init: {
14
+ description: string;
15
+ args: {
16
+ workdir: z.ZodOptional<z.ZodString>;
17
+ project_name: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ use_hive: z.ZodOptional<z.ZodBoolean>;
20
+ };
21
+ execute(args: {
22
+ project_name: string;
23
+ workdir?: string | undefined;
24
+ description?: string | undefined;
25
+ use_hive?: boolean | undefined;
26
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
27
+ };
28
+ /**
29
+ * Add a story to the PRD
30
+ */
31
+ export declare const ralph_story: {
32
+ description: string;
33
+ args: {
34
+ workdir: z.ZodOptional<z.ZodString>;
35
+ title: z.ZodString;
36
+ description: z.ZodString;
37
+ priority: z.ZodOptional<z.ZodNumber>;
38
+ validation_command: z.ZodOptional<z.ZodString>;
39
+ acceptance_criteria: z.ZodOptional<z.ZodString>;
40
+ };
41
+ execute(args: {
42
+ title: string;
43
+ description: string;
44
+ workdir?: string | undefined;
45
+ priority?: number | undefined;
46
+ validation_command?: string | undefined;
47
+ acceptance_criteria?: string | undefined;
48
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
49
+ };
50
+ /**
51
+ * Run a single iteration
52
+ */
53
+ export declare const ralph_iterate: {
54
+ description: string;
55
+ args: {
56
+ workdir: z.ZodOptional<z.ZodString>;
57
+ model: z.ZodOptional<z.ZodString>;
58
+ sandbox: z.ZodOptional<z.ZodString>;
59
+ dry_run: z.ZodOptional<z.ZodBoolean>;
60
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
61
+ };
62
+ execute(args: {
63
+ workdir?: string | undefined;
64
+ model?: string | undefined;
65
+ sandbox?: string | undefined;
66
+ dry_run?: boolean | undefined;
67
+ timeout_ms?: number | undefined;
68
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
69
+ };
70
+ /**
71
+ * Run the full ralph loop
72
+ */
73
+ export declare const ralph_loop: {
74
+ description: string;
75
+ args: {
76
+ workdir: z.ZodOptional<z.ZodString>;
77
+ max_iterations: z.ZodOptional<z.ZodNumber>;
78
+ model: z.ZodOptional<z.ZodString>;
79
+ sandbox: z.ZodOptional<z.ZodString>;
80
+ stop_on_failure: z.ZodOptional<z.ZodBoolean>;
81
+ auto_commit: z.ZodOptional<z.ZodBoolean>;
82
+ sync: z.ZodOptional<z.ZodBoolean>;
83
+ };
84
+ execute(args: {
85
+ workdir?: string | undefined;
86
+ max_iterations?: number | undefined;
87
+ model?: string | undefined;
88
+ sandbox?: string | undefined;
89
+ stop_on_failure?: boolean | undefined;
90
+ auto_commit?: boolean | undefined;
91
+ sync?: boolean | undefined;
92
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
93
+ };
94
+ /**
95
+ * Get ralph status
96
+ */
97
+ export declare const ralph_status: {
98
+ description: string;
99
+ args: {
100
+ workdir: z.ZodOptional<z.ZodString>;
101
+ job_id: z.ZodOptional<z.ZodString>;
102
+ };
103
+ execute(args: {
104
+ workdir?: string | undefined;
105
+ job_id?: string | undefined;
106
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
107
+ };
108
+ /**
109
+ * Cancel a running loop
110
+ */
111
+ export declare const ralph_cancel: {
112
+ description: string;
113
+ args: {
114
+ job_id: z.ZodString;
115
+ };
116
+ execute(args: {
117
+ job_id: string;
118
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
119
+ };
120
+ /**
121
+ * Review completed work
122
+ */
123
+ export declare const ralph_review: {
124
+ description: string;
125
+ args: {
126
+ workdir: z.ZodOptional<z.ZodString>;
127
+ story_id: z.ZodString;
128
+ approve: z.ZodBoolean;
129
+ feedback: z.ZodOptional<z.ZodString>;
130
+ };
131
+ execute(args: {
132
+ story_id: string;
133
+ approve: boolean;
134
+ workdir?: string | undefined;
135
+ feedback?: string | undefined;
136
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
137
+ };
138
+ export declare const ralphSupervisorTools: {
139
+ ralph_init: {
140
+ description: string;
141
+ args: {
142
+ workdir: z.ZodOptional<z.ZodString>;
143
+ project_name: z.ZodString;
144
+ description: z.ZodOptional<z.ZodString>;
145
+ use_hive: z.ZodOptional<z.ZodBoolean>;
146
+ };
147
+ execute(args: {
148
+ project_name: string;
149
+ workdir?: string | undefined;
150
+ description?: string | undefined;
151
+ use_hive?: boolean | undefined;
152
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
153
+ };
154
+ ralph_story: {
155
+ description: string;
156
+ args: {
157
+ workdir: z.ZodOptional<z.ZodString>;
158
+ title: z.ZodString;
159
+ description: z.ZodString;
160
+ priority: z.ZodOptional<z.ZodNumber>;
161
+ validation_command: z.ZodOptional<z.ZodString>;
162
+ acceptance_criteria: z.ZodOptional<z.ZodString>;
163
+ };
164
+ execute(args: {
165
+ title: string;
166
+ description: string;
167
+ workdir?: string | undefined;
168
+ priority?: number | undefined;
169
+ validation_command?: string | undefined;
170
+ acceptance_criteria?: string | undefined;
171
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
172
+ };
173
+ ralph_iterate: {
174
+ description: string;
175
+ args: {
176
+ workdir: z.ZodOptional<z.ZodString>;
177
+ model: z.ZodOptional<z.ZodString>;
178
+ sandbox: z.ZodOptional<z.ZodString>;
179
+ dry_run: z.ZodOptional<z.ZodBoolean>;
180
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
181
+ };
182
+ execute(args: {
183
+ workdir?: string | undefined;
184
+ model?: string | undefined;
185
+ sandbox?: string | undefined;
186
+ dry_run?: boolean | undefined;
187
+ timeout_ms?: number | undefined;
188
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
189
+ };
190
+ ralph_loop: {
191
+ description: string;
192
+ args: {
193
+ workdir: z.ZodOptional<z.ZodString>;
194
+ max_iterations: z.ZodOptional<z.ZodNumber>;
195
+ model: z.ZodOptional<z.ZodString>;
196
+ sandbox: z.ZodOptional<z.ZodString>;
197
+ stop_on_failure: z.ZodOptional<z.ZodBoolean>;
198
+ auto_commit: z.ZodOptional<z.ZodBoolean>;
199
+ sync: z.ZodOptional<z.ZodBoolean>;
200
+ };
201
+ execute(args: {
202
+ workdir?: string | undefined;
203
+ max_iterations?: number | undefined;
204
+ model?: string | undefined;
205
+ sandbox?: string | undefined;
206
+ stop_on_failure?: boolean | undefined;
207
+ auto_commit?: boolean | undefined;
208
+ sync?: boolean | undefined;
209
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
210
+ };
211
+ ralph_status: {
212
+ description: string;
213
+ args: {
214
+ workdir: z.ZodOptional<z.ZodString>;
215
+ job_id: z.ZodOptional<z.ZodString>;
216
+ };
217
+ execute(args: {
218
+ workdir?: string | undefined;
219
+ job_id?: string | undefined;
220
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
221
+ };
222
+ ralph_cancel: {
223
+ description: string;
224
+ args: {
225
+ job_id: z.ZodString;
226
+ };
227
+ execute(args: {
228
+ job_id: string;
229
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
230
+ };
231
+ ralph_review: {
232
+ description: string;
233
+ args: {
234
+ workdir: z.ZodOptional<z.ZodString>;
235
+ story_id: z.ZodString;
236
+ approve: z.ZodBoolean;
237
+ feedback: z.ZodOptional<z.ZodString>;
238
+ };
239
+ execute(args: {
240
+ story_id: string;
241
+ approve: boolean;
242
+ workdir?: string | undefined;
243
+ feedback?: string | undefined;
244
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
245
+ };
246
+ };
247
+ export default ralphSupervisorTools;
248
+ //# sourceMappingURL=ralph-supervisor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ralph-supervisor.d.ts","sourceRoot":"","sources":["../src/ralph-supervisor.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuCxB;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEhE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAgfD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAuDrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;CA2DtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CA8DxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAyKrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;CA6EvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;CAgCvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAqEvB,CAAC;AAMH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}