swarm-engine 1.41.0 → 1.43.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/dist/core/types.d.ts +2 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime/acon.d.ts +61 -0
- package/dist/runtime/acon.d.ts.map +1 -0
- package/dist/runtime/acon.js +266 -0
- package/dist/runtime/acon.js.map +1 -0
- package/dist/runtime/benefits.d.ts +170 -0
- package/dist/runtime/benefits.d.ts.map +1 -0
- package/dist/runtime/benefits.js +588 -0
- package/dist/runtime/benefits.js.map +1 -0
- package/dist/runtime/compactor.d.ts +90 -0
- package/dist/runtime/compactor.d.ts.map +1 -0
- package/dist/runtime/compactor.js +418 -0
- package/dist/runtime/compactor.js.map +1 -0
- package/dist/runtime/context-decay.d.ts +45 -0
- package/dist/runtime/context-decay.d.ts.map +1 -0
- package/dist/runtime/context-decay.js +149 -0
- package/dist/runtime/context-decay.js.map +1 -0
- package/dist/runtime/engine.d.ts +1 -0
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +53 -3
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/output-schemas.d.ts +21 -0
- package/dist/runtime/output-schemas.d.ts.map +1 -0
- package/dist/runtime/output-schemas.js +252 -0
- package/dist/runtime/output-schemas.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structured Output Contracts for Agent Types.
|
|
3
|
+
*
|
|
4
|
+
* Defines JSON schemas per agent type so agents emit structured, compact JSON
|
|
5
|
+
* instead of verbose prose. A reviewer emitting `{"findings": [...]}` is 3-5x
|
|
6
|
+
* more compact than a narrative review.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* const schema = getOutputSchema('reviewer');
|
|
10
|
+
* // Pass schema to agent prompt so it knows the expected output shape
|
|
11
|
+
*/
|
|
12
|
+
// ─── Schema Definitions ─────────────────────────────────────────────
|
|
13
|
+
const researcherSchema = {
|
|
14
|
+
name: 'researcher',
|
|
15
|
+
description: 'Structured research findings with confidence levels and source files',
|
|
16
|
+
schema: {
|
|
17
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
findings: {
|
|
21
|
+
type: 'array',
|
|
22
|
+
items: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
topic: { type: 'string' },
|
|
26
|
+
detail: { type: 'string' },
|
|
27
|
+
files: { type: 'array', items: { type: 'string' } },
|
|
28
|
+
confidence: { type: 'string', enum: ['high', 'medium', 'low'] },
|
|
29
|
+
},
|
|
30
|
+
required: ['topic', 'detail', 'files', 'confidence'],
|
|
31
|
+
additionalProperties: false,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
summary: { type: 'string' },
|
|
35
|
+
unknowns: { type: 'array', items: { type: 'string' } },
|
|
36
|
+
},
|
|
37
|
+
required: ['findings', 'summary', 'unknowns'],
|
|
38
|
+
additionalProperties: false,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const reviewerSchema = {
|
|
42
|
+
name: 'reviewer',
|
|
43
|
+
description: 'Structured code review findings with severity, category, and verdict',
|
|
44
|
+
schema: {
|
|
45
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
findings: {
|
|
49
|
+
type: 'array',
|
|
50
|
+
items: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
file: { type: 'string' },
|
|
54
|
+
line: { type: ['integer', 'null'] },
|
|
55
|
+
severity: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
enum: ['critical', 'high', 'medium', 'low', 'info'],
|
|
58
|
+
},
|
|
59
|
+
category: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
enum: ['bug', 'security', 'performance', 'style', 'logic'],
|
|
62
|
+
},
|
|
63
|
+
issue: { type: 'string' },
|
|
64
|
+
suggestion: { type: ['string', 'null'] },
|
|
65
|
+
},
|
|
66
|
+
required: ['file', 'line', 'severity', 'category', 'issue', 'suggestion'],
|
|
67
|
+
additionalProperties: false,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
verdict: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
enum: ['approve', 'request-changes', 'comment'],
|
|
73
|
+
},
|
|
74
|
+
summary: { type: 'string' },
|
|
75
|
+
},
|
|
76
|
+
required: ['findings', 'verdict', 'summary'],
|
|
77
|
+
additionalProperties: false,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
const testerSchema = {
|
|
81
|
+
name: 'tester',
|
|
82
|
+
description: 'Structured test results with coverage analysis',
|
|
83
|
+
schema: {
|
|
84
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
85
|
+
type: 'object',
|
|
86
|
+
properties: {
|
|
87
|
+
tests: {
|
|
88
|
+
type: 'array',
|
|
89
|
+
items: {
|
|
90
|
+
type: 'object',
|
|
91
|
+
properties: {
|
|
92
|
+
name: { type: 'string' },
|
|
93
|
+
file: { type: 'string' },
|
|
94
|
+
type: { type: 'string', enum: ['unit', 'integration', 'e2e'] },
|
|
95
|
+
status: { type: 'string', enum: ['written', 'existing', 'skipped'] },
|
|
96
|
+
reason: { type: 'string' },
|
|
97
|
+
},
|
|
98
|
+
required: ['name', 'file', 'type', 'status'],
|
|
99
|
+
additionalProperties: false,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
coverage: {
|
|
103
|
+
type: 'object',
|
|
104
|
+
properties: {
|
|
105
|
+
added: { type: 'array', items: { type: 'string' } },
|
|
106
|
+
gaps: { type: 'array', items: { type: 'string' } },
|
|
107
|
+
},
|
|
108
|
+
required: ['added', 'gaps'],
|
|
109
|
+
additionalProperties: false,
|
|
110
|
+
},
|
|
111
|
+
summary: { type: 'string' },
|
|
112
|
+
},
|
|
113
|
+
required: ['tests', 'coverage', 'summary'],
|
|
114
|
+
additionalProperties: false,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
const implementerSchema = {
|
|
118
|
+
name: 'implementer',
|
|
119
|
+
description: 'Structured implementation report with changes, decisions, and blockers',
|
|
120
|
+
schema: {
|
|
121
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
122
|
+
type: 'object',
|
|
123
|
+
properties: {
|
|
124
|
+
changes: {
|
|
125
|
+
type: 'array',
|
|
126
|
+
items: {
|
|
127
|
+
type: 'object',
|
|
128
|
+
properties: {
|
|
129
|
+
file: { type: 'string' },
|
|
130
|
+
action: { type: 'string', enum: ['create', 'modify', 'delete'] },
|
|
131
|
+
description: { type: 'string' },
|
|
132
|
+
},
|
|
133
|
+
required: ['file', 'action', 'description'],
|
|
134
|
+
additionalProperties: false,
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
decisions: {
|
|
138
|
+
type: 'array',
|
|
139
|
+
items: {
|
|
140
|
+
type: 'object',
|
|
141
|
+
properties: {
|
|
142
|
+
choice: { type: 'string' },
|
|
143
|
+
reason: { type: 'string' },
|
|
144
|
+
alternatives: { type: 'array', items: { type: 'string' } },
|
|
145
|
+
},
|
|
146
|
+
required: ['choice', 'reason'],
|
|
147
|
+
additionalProperties: false,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
blockers: { type: 'array', items: { type: 'string' } },
|
|
151
|
+
summary: { type: 'string' },
|
|
152
|
+
},
|
|
153
|
+
required: ['changes', 'decisions', 'blockers', 'summary'],
|
|
154
|
+
additionalProperties: false,
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
const plannerSchema = {
|
|
158
|
+
name: 'planner',
|
|
159
|
+
description: 'Structured execution plan with phases, dependencies, and risks',
|
|
160
|
+
schema: {
|
|
161
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
162
|
+
type: 'object',
|
|
163
|
+
properties: {
|
|
164
|
+
phases: {
|
|
165
|
+
type: 'array',
|
|
166
|
+
items: {
|
|
167
|
+
type: 'object',
|
|
168
|
+
properties: {
|
|
169
|
+
name: { type: 'string' },
|
|
170
|
+
kind: { type: 'string' },
|
|
171
|
+
agents: { type: 'array', items: { type: 'string' } },
|
|
172
|
+
description: { type: 'string' },
|
|
173
|
+
dependsOn: { type: 'array', items: { type: 'string' } },
|
|
174
|
+
},
|
|
175
|
+
required: ['name', 'kind', 'agents', 'description'],
|
|
176
|
+
additionalProperties: false,
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
risks: {
|
|
180
|
+
type: 'array',
|
|
181
|
+
items: {
|
|
182
|
+
type: 'object',
|
|
183
|
+
properties: {
|
|
184
|
+
description: { type: 'string' },
|
|
185
|
+
mitigation: { type: 'string' },
|
|
186
|
+
severity: { type: 'string', enum: ['high', 'medium', 'low'] },
|
|
187
|
+
},
|
|
188
|
+
required: ['description', 'mitigation', 'severity'],
|
|
189
|
+
additionalProperties: false,
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
summary: { type: 'string' },
|
|
193
|
+
},
|
|
194
|
+
required: ['phases', 'risks', 'summary'],
|
|
195
|
+
additionalProperties: false,
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
const debuggerSchema = {
|
|
199
|
+
name: 'debugger',
|
|
200
|
+
description: 'Structured debugging report with hypothesis, root cause, and fix',
|
|
201
|
+
schema: {
|
|
202
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
203
|
+
type: 'object',
|
|
204
|
+
properties: {
|
|
205
|
+
hypothesis: { type: 'string' },
|
|
206
|
+
rootCause: { type: ['string', 'null'] },
|
|
207
|
+
evidence: {
|
|
208
|
+
type: 'array',
|
|
209
|
+
items: {
|
|
210
|
+
type: 'object',
|
|
211
|
+
properties: {
|
|
212
|
+
source: { type: 'string' },
|
|
213
|
+
detail: { type: 'string' },
|
|
214
|
+
},
|
|
215
|
+
required: ['source', 'detail'],
|
|
216
|
+
additionalProperties: false,
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
fix: {
|
|
220
|
+
type: ['object', 'null'],
|
|
221
|
+
properties: {
|
|
222
|
+
file: { type: 'string' },
|
|
223
|
+
description: { type: 'string' },
|
|
224
|
+
},
|
|
225
|
+
required: ['file', 'description'],
|
|
226
|
+
additionalProperties: false,
|
|
227
|
+
},
|
|
228
|
+
summary: { type: 'string' },
|
|
229
|
+
},
|
|
230
|
+
required: ['hypothesis', 'rootCause', 'evidence', 'fix', 'summary'],
|
|
231
|
+
additionalProperties: false,
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
// ─── Registry ───────────────────────────────────────────────────────
|
|
235
|
+
const SCHEMAS = new Map([
|
|
236
|
+
[researcherSchema.name, researcherSchema],
|
|
237
|
+
[reviewerSchema.name, reviewerSchema],
|
|
238
|
+
[testerSchema.name, testerSchema],
|
|
239
|
+
[implementerSchema.name, implementerSchema],
|
|
240
|
+
[plannerSchema.name, plannerSchema],
|
|
241
|
+
[debuggerSchema.name, debuggerSchema],
|
|
242
|
+
]);
|
|
243
|
+
// ─── Public API ─────────────────────────────────────────────────────
|
|
244
|
+
/** Get the output schema for a given agent type. Returns undefined if no schema defined. */
|
|
245
|
+
export function getOutputSchema(agentType) {
|
|
246
|
+
return SCHEMAS.get(agentType);
|
|
247
|
+
}
|
|
248
|
+
/** List all available output schemas. */
|
|
249
|
+
export function listOutputSchemas() {
|
|
250
|
+
return [...SCHEMAS.values()];
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=output-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-schemas.js","sourceRoot":"","sources":["../../src/runtime/output-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,uEAAuE;AAEvE,MAAM,gBAAg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AAc,CAAC,IAAI,EAAE,cAAc,CAAC;CACtC,CAAC,CAAC;AAEH,uEAAuE;AAEvE,4FAA4F;AAC5F,MAAM,UAAU,eAAe,CAAC,SAAiB;IAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAChC,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,iBAAiB;IAC/B,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swarm-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"description": "Self-aware multi-agent orchestration engine with knowledge graph, causal inference, GNN failure prediction, and self-evolving rules — pure TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|