opencode-swarm 6.13.2 → 6.13.3
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/README.md +1 -1
- package/dist/config/evidence-schema.d.ts +75 -3
- package/dist/hooks/system-enhancer.d.ts +7 -0
- package/dist/index.js +551 -272
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -310,7 +310,7 @@ Per-agent overrides:
|
|
|
310
310
|
| build_check | Runs your project's native build/typecheck |
|
|
311
311
|
| quality_budget | Enforces complexity, duplication, and test ratio limits |
|
|
312
312
|
| pre_check_batch | Runs lint, secretscan, SAST, and quality budget in parallel (~15s vs ~60s sequential) |
|
|
313
|
-
| phase_complete | Enforces phase completion, verifies required agents, logs events, and resets state |
|
|
313
|
+
| phase_complete | Enforces phase completion, verifies required agents, requires a valid retrospective evidence bundle, logs events, and resets state |
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
All tools run locally. No Docker, no network calls, no external APIs.
|
|
@@ -191,6 +191,30 @@ export declare const RetrospectiveEvidenceSchema: z.ZodObject<{
|
|
|
191
191
|
}>;
|
|
192
192
|
top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
193
193
|
lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
194
|
+
user_directives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
195
|
+
directive: z.ZodString;
|
|
196
|
+
category: z.ZodEnum<{
|
|
197
|
+
tooling: "tooling";
|
|
198
|
+
code_style: "code_style";
|
|
199
|
+
architecture: "architecture";
|
|
200
|
+
process: "process";
|
|
201
|
+
other: "other";
|
|
202
|
+
}>;
|
|
203
|
+
scope: z.ZodEnum<{
|
|
204
|
+
project: "project";
|
|
205
|
+
session: "session";
|
|
206
|
+
global: "global";
|
|
207
|
+
}>;
|
|
208
|
+
}, z.core.$strip>>>;
|
|
209
|
+
approaches_tried: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
210
|
+
approach: z.ZodString;
|
|
211
|
+
result: z.ZodEnum<{
|
|
212
|
+
success: "success";
|
|
213
|
+
failure: "failure";
|
|
214
|
+
partial: "partial";
|
|
215
|
+
}>;
|
|
216
|
+
abandoned_reason: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
194
218
|
}, z.core.$strip>;
|
|
195
219
|
export type RetrospectiveEvidence = z.infer<typeof RetrospectiveEvidenceSchema>;
|
|
196
220
|
export declare const SyntaxEvidenceSchema: z.ZodObject<{
|
|
@@ -242,9 +266,9 @@ export declare const PlaceholderEvidenceSchema: z.ZodObject<{
|
|
|
242
266
|
line: z.ZodNumber;
|
|
243
267
|
kind: z.ZodEnum<{
|
|
244
268
|
string: "string";
|
|
269
|
+
other: "other";
|
|
245
270
|
comment: "comment";
|
|
246
271
|
function_body: "function_body";
|
|
247
|
-
other: "other";
|
|
248
272
|
}>;
|
|
249
273
|
excerpt: z.ZodString;
|
|
250
274
|
rule_id: z.ZodString;
|
|
@@ -535,6 +559,30 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
535
559
|
}>;
|
|
536
560
|
top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
537
561
|
lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
562
|
+
user_directives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
563
|
+
directive: z.ZodString;
|
|
564
|
+
category: z.ZodEnum<{
|
|
565
|
+
tooling: "tooling";
|
|
566
|
+
code_style: "code_style";
|
|
567
|
+
architecture: "architecture";
|
|
568
|
+
process: "process";
|
|
569
|
+
other: "other";
|
|
570
|
+
}>;
|
|
571
|
+
scope: z.ZodEnum<{
|
|
572
|
+
project: "project";
|
|
573
|
+
session: "session";
|
|
574
|
+
global: "global";
|
|
575
|
+
}>;
|
|
576
|
+
}, z.core.$strip>>>;
|
|
577
|
+
approaches_tried: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
578
|
+
approach: z.ZodString;
|
|
579
|
+
result: z.ZodEnum<{
|
|
580
|
+
success: "success";
|
|
581
|
+
failure: "failure";
|
|
582
|
+
partial: "partial";
|
|
583
|
+
}>;
|
|
584
|
+
abandoned_reason: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strip>>>;
|
|
538
586
|
}, z.core.$strip>, z.ZodObject<{
|
|
539
587
|
task_id: z.ZodString;
|
|
540
588
|
timestamp: z.ZodString;
|
|
@@ -582,9 +630,9 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
582
630
|
line: z.ZodNumber;
|
|
583
631
|
kind: z.ZodEnum<{
|
|
584
632
|
string: "string";
|
|
633
|
+
other: "other";
|
|
585
634
|
comment: "comment";
|
|
586
635
|
function_body: "function_body";
|
|
587
|
-
other: "other";
|
|
588
636
|
}>;
|
|
589
637
|
excerpt: z.ZodString;
|
|
590
638
|
rule_id: z.ZodString;
|
|
@@ -870,6 +918,30 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
870
918
|
}>;
|
|
871
919
|
top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
872
920
|
lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
921
|
+
user_directives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
922
|
+
directive: z.ZodString;
|
|
923
|
+
category: z.ZodEnum<{
|
|
924
|
+
tooling: "tooling";
|
|
925
|
+
code_style: "code_style";
|
|
926
|
+
architecture: "architecture";
|
|
927
|
+
process: "process";
|
|
928
|
+
other: "other";
|
|
929
|
+
}>;
|
|
930
|
+
scope: z.ZodEnum<{
|
|
931
|
+
project: "project";
|
|
932
|
+
session: "session";
|
|
933
|
+
global: "global";
|
|
934
|
+
}>;
|
|
935
|
+
}, z.core.$strip>>>;
|
|
936
|
+
approaches_tried: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
937
|
+
approach: z.ZodString;
|
|
938
|
+
result: z.ZodEnum<{
|
|
939
|
+
success: "success";
|
|
940
|
+
failure: "failure";
|
|
941
|
+
partial: "partial";
|
|
942
|
+
}>;
|
|
943
|
+
abandoned_reason: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>>>;
|
|
873
945
|
}, z.core.$strip>, z.ZodObject<{
|
|
874
946
|
task_id: z.ZodString;
|
|
875
947
|
timestamp: z.ZodString;
|
|
@@ -917,9 +989,9 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
917
989
|
line: z.ZodNumber;
|
|
918
990
|
kind: z.ZodEnum<{
|
|
919
991
|
string: "string";
|
|
992
|
+
other: "other";
|
|
920
993
|
comment: "comment";
|
|
921
994
|
function_body: "function_body";
|
|
922
|
-
other: "other";
|
|
923
995
|
}>;
|
|
924
996
|
excerpt: z.ZodString;
|
|
925
997
|
rule_id: z.ZodString;
|
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
* Reads plan.md and injects phase context into the system prompt.
|
|
7
7
|
*/
|
|
8
8
|
import type { PluginConfig } from '../config';
|
|
9
|
+
/**
|
|
10
|
+
* Build a retrospective injection string for the architect system message.
|
|
11
|
+
* Tier 1: direct phase-scoped lookup for same-plan previous phase.
|
|
12
|
+
* Tier 2: cross-project historical lessons (Phase 1 only).
|
|
13
|
+
* Returns null if no valid retrospective found.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildRetroInjection(directory: string, currentPhaseNumber: number, currentPlanTitle?: string): Promise<string | null>;
|
|
9
16
|
/**
|
|
10
17
|
* Creates the experimental.chat.system.transform hook for system enhancement.
|
|
11
18
|
*/
|