nexus-agents 2.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.
- package/LICENSE +27 -0
- package/dist/chunk-3VJOPTVX.js +13142 -0
- package/dist/chunk-3VJOPTVX.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +86 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +8526 -0
- package/dist/index.js +551 -0
- package/dist/index.js.map +1 -0
- package/dist/workflows/templates/bug-fix.yaml +109 -0
- package/dist/workflows/templates/code-review.yaml +84 -0
- package/dist/workflows/templates/documentation-update.yaml +91 -0
- package/dist/workflows/templates/feature-implementation.yaml +124 -0
- package/package.json +71 -0
- package/src/workflows/templates/bug-fix.yaml +109 -0
- package/src/workflows/templates/code-review.yaml +84 -0
- package/src/workflows/templates/documentation-update.yaml +91 -0
- package/src/workflows/templates/feature-implementation.yaml +124 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AdapterConfigSchema,
|
|
3
|
+
AdapterFactory,
|
|
4
|
+
AdapterModelError,
|
|
5
|
+
AgentCapability,
|
|
6
|
+
AgentError,
|
|
7
|
+
AgentMessageSchema,
|
|
8
|
+
AgentRoleSchema,
|
|
9
|
+
AgentRoleSchema2,
|
|
10
|
+
AgentStateMachine,
|
|
11
|
+
AnalysisError,
|
|
12
|
+
AppConfigSchema,
|
|
13
|
+
ArchitectureExpert,
|
|
14
|
+
BUILT_IN_EXPERTS,
|
|
15
|
+
BUILT_IN_TEMPLATES,
|
|
16
|
+
BaseAdapter,
|
|
17
|
+
BaseAgent,
|
|
18
|
+
BaseAgentOptionsSchema,
|
|
19
|
+
BuiltInExpertTypeSchema,
|
|
20
|
+
CLAUDE_MODELS,
|
|
21
|
+
CLAUDE_MODEL_ALIASES,
|
|
22
|
+
ClaudeAdapter,
|
|
23
|
+
CodeChangeSchema,
|
|
24
|
+
CodeExpert,
|
|
25
|
+
CollaborationConfigSchema,
|
|
26
|
+
CollaborationPatternSchema,
|
|
27
|
+
CollaborationSession,
|
|
28
|
+
ConfigError,
|
|
29
|
+
ConsensusProtocol,
|
|
30
|
+
ContentPriority,
|
|
31
|
+
ContextBudgetSchema,
|
|
32
|
+
ContextManager,
|
|
33
|
+
ContextManagerConfigSchema,
|
|
34
|
+
ContextPruner,
|
|
35
|
+
ContextPrunerConfigSchema,
|
|
36
|
+
CoverageMetricsSchema,
|
|
37
|
+
CreateExpertInputSchema,
|
|
38
|
+
DEFAULT_BUDGET,
|
|
39
|
+
DEFAULT_MAX_RETRIES,
|
|
40
|
+
DEFAULT_RETRY_CONFIG,
|
|
41
|
+
DEFAULT_TIMEOUTS,
|
|
42
|
+
DependencyGraph,
|
|
43
|
+
DocumentationExpert,
|
|
44
|
+
EXPERT_CAPABILITIES,
|
|
45
|
+
EXPERT_DEFAULT_CAPABILITIES,
|
|
46
|
+
EXPERT_DEFAULT_TEMPERATURES,
|
|
47
|
+
EXPERT_TYPE_TO_ROLE,
|
|
48
|
+
ErrorCode,
|
|
49
|
+
Expert,
|
|
50
|
+
ExpertAssignmentSchema,
|
|
51
|
+
ExpertCollaborationPattern,
|
|
52
|
+
ExpertConfigSchema,
|
|
53
|
+
ExpertConfigSchema2,
|
|
54
|
+
ExpertDefinitionSchema,
|
|
55
|
+
ExpertDomainSchema,
|
|
56
|
+
ExpertFactory,
|
|
57
|
+
ExpertFactoryAdapter,
|
|
58
|
+
ExpertMatchSchema,
|
|
59
|
+
ExpertOptionsSchema,
|
|
60
|
+
ExpertOutputSchema,
|
|
61
|
+
ExpertParticipationSchema,
|
|
62
|
+
ExpertRegistry,
|
|
63
|
+
FactoryError,
|
|
64
|
+
GEMINI_MODELS,
|
|
65
|
+
GEMINI_MODEL_ALIASES,
|
|
66
|
+
GeminiAdapter,
|
|
67
|
+
GeneratedTestSchema,
|
|
68
|
+
InputDefinitionSchema,
|
|
69
|
+
InputDefinitionSchema2,
|
|
70
|
+
InputTypeSchema,
|
|
71
|
+
LoggingConfigSchema,
|
|
72
|
+
MIN_EXPERTS_FOR_PATTERN,
|
|
73
|
+
ModelCapability,
|
|
74
|
+
ModelConfigSchema,
|
|
75
|
+
ModelError,
|
|
76
|
+
ModelPreferenceSchema,
|
|
77
|
+
ModelTiersSchema,
|
|
78
|
+
NexusError,
|
|
79
|
+
OLLAMA_MODELS,
|
|
80
|
+
OPENAI_MODELS,
|
|
81
|
+
OPENAI_MODEL_ALIASES,
|
|
82
|
+
OllamaAdapter,
|
|
83
|
+
OpenAIAdapter,
|
|
84
|
+
OrchestrateInputSchema,
|
|
85
|
+
OrchestrateOutputSchema,
|
|
86
|
+
OrchestrationError,
|
|
87
|
+
ParallelProtocol,
|
|
88
|
+
ParseError,
|
|
89
|
+
ProtocolFactory,
|
|
90
|
+
ProviderConfigSchema,
|
|
91
|
+
PruningStrategy,
|
|
92
|
+
RateLimitError,
|
|
93
|
+
RateLimiter,
|
|
94
|
+
RateLimiter2,
|
|
95
|
+
RegistryError,
|
|
96
|
+
ResultAggregator,
|
|
97
|
+
RetryExhaustedError,
|
|
98
|
+
ReviewProtocol,
|
|
99
|
+
ReviewResponseMessageSchema,
|
|
100
|
+
RunWorkflowInputSchema,
|
|
101
|
+
ScoreBreakdownSchema,
|
|
102
|
+
SecurityConfigSchema,
|
|
103
|
+
SecurityError,
|
|
104
|
+
SecurityExpert,
|
|
105
|
+
SelectionError,
|
|
106
|
+
SelectionOptionsSchema,
|
|
107
|
+
SelectionResultSchema,
|
|
108
|
+
SequentialProtocol,
|
|
109
|
+
SessionStatusSchema,
|
|
110
|
+
SimpleAgent,
|
|
111
|
+
StepExecutor,
|
|
112
|
+
StreamCancelledError,
|
|
113
|
+
StreamController,
|
|
114
|
+
StreamError,
|
|
115
|
+
SubTaskSchema,
|
|
116
|
+
SubtaskPrioritySchema,
|
|
117
|
+
SubtaskStatusSchema,
|
|
118
|
+
SynthesizedResultSchema,
|
|
119
|
+
TASK_TYPE_EXPERTS,
|
|
120
|
+
TEMPLATE_CATEGORIES,
|
|
121
|
+
TEMPLATE_KEYWORDS,
|
|
122
|
+
TaskAnalysisResultSchema,
|
|
123
|
+
TaskAnalysisSchema,
|
|
124
|
+
TaskComplexity,
|
|
125
|
+
TaskDomain,
|
|
126
|
+
TaskQueue,
|
|
127
|
+
TaskSchema,
|
|
128
|
+
TechLead,
|
|
129
|
+
TechLeadOptionsSchema,
|
|
130
|
+
TemplateCategorySchema,
|
|
131
|
+
TemplateMetadataSchema,
|
|
132
|
+
TemplateRegistry,
|
|
133
|
+
TestingExpert,
|
|
134
|
+
TimeoutError,
|
|
135
|
+
VERSION,
|
|
136
|
+
ValidationError,
|
|
137
|
+
VoteDecisionSchema,
|
|
138
|
+
VoteMessageSchema,
|
|
139
|
+
VulnerabilitySchema,
|
|
140
|
+
VulnerabilitySeveritySchema,
|
|
141
|
+
WorkflowConfigSchema,
|
|
142
|
+
WorkflowDefinitionSchema,
|
|
143
|
+
WorkflowDefinitionSchema2,
|
|
144
|
+
WorkflowError,
|
|
145
|
+
WorkflowInputsSchema,
|
|
146
|
+
WorkflowStepSchema,
|
|
147
|
+
WorkflowStepSchema2,
|
|
148
|
+
aggregateResults,
|
|
149
|
+
allSucceeded,
|
|
150
|
+
analyzeTask,
|
|
151
|
+
areStepsCompleted,
|
|
152
|
+
bufferStream,
|
|
153
|
+
buildDependencyGraph,
|
|
154
|
+
calculateDelay,
|
|
155
|
+
cancelExecution,
|
|
156
|
+
closeServer,
|
|
157
|
+
collectStream,
|
|
158
|
+
concatStreams,
|
|
159
|
+
connectTransport,
|
|
160
|
+
containsExpressions,
|
|
161
|
+
createArchitectureExpert,
|
|
162
|
+
createClaudeAdapter,
|
|
163
|
+
createCodeExpert,
|
|
164
|
+
createCollaborationSession,
|
|
165
|
+
createDefaultDeps,
|
|
166
|
+
createDefaultRateLimiter,
|
|
167
|
+
createDefaultRegistry,
|
|
168
|
+
createDocumentationExpert,
|
|
169
|
+
createExecutionContext,
|
|
170
|
+
createExecutionPlan,
|
|
171
|
+
createGeminiAdapter,
|
|
172
|
+
createIsolatedRegistry,
|
|
173
|
+
createLogger,
|
|
174
|
+
createMcpLogger,
|
|
175
|
+
createMockTechLead,
|
|
176
|
+
createOllamaAdapter,
|
|
177
|
+
createOpenAIAdapter,
|
|
178
|
+
createProtocolFactory,
|
|
179
|
+
createRateLimiter,
|
|
180
|
+
createResultAggregator,
|
|
181
|
+
createSecurityExpert,
|
|
182
|
+
createServer,
|
|
183
|
+
createStateMachine,
|
|
184
|
+
createStepExecutor,
|
|
185
|
+
createStream,
|
|
186
|
+
createTaskQueue,
|
|
187
|
+
createTechLead,
|
|
188
|
+
createTemplateRegistry,
|
|
189
|
+
createTestingExpert,
|
|
190
|
+
createTimer,
|
|
191
|
+
createToolLogger,
|
|
192
|
+
createValidator,
|
|
193
|
+
defaultConfig,
|
|
194
|
+
defaultFactory,
|
|
195
|
+
err,
|
|
196
|
+
executeParallel,
|
|
197
|
+
extractExpressions,
|
|
198
|
+
filterStream,
|
|
199
|
+
formatZodErrors,
|
|
200
|
+
fromArray,
|
|
201
|
+
getAvailableRoles,
|
|
202
|
+
getBuiltInTemplates,
|
|
203
|
+
getBuiltInTemplatesPath,
|
|
204
|
+
getBuiltInTemplatesWithMetadata,
|
|
205
|
+
getCapabilitiesForRole,
|
|
206
|
+
getCompletedSteps,
|
|
207
|
+
getExecutionDuration,
|
|
208
|
+
getExecutionOrder,
|
|
209
|
+
getExpertRegistry,
|
|
210
|
+
getFailedSteps,
|
|
211
|
+
getReferencedSteps,
|
|
212
|
+
getStepResult,
|
|
213
|
+
getTopologicalOrder,
|
|
214
|
+
getVariable,
|
|
215
|
+
isCancelled,
|
|
216
|
+
isErr,
|
|
217
|
+
isOk,
|
|
218
|
+
isRetryableError,
|
|
219
|
+
isStepCompleted,
|
|
220
|
+
isZodError,
|
|
221
|
+
loadTemplateFile,
|
|
222
|
+
loadTemplatesFromDirectory,
|
|
223
|
+
loadWorkflowFile,
|
|
224
|
+
logToolError,
|
|
225
|
+
logToolStart,
|
|
226
|
+
logToolSuccess,
|
|
227
|
+
logger,
|
|
228
|
+
map,
|
|
229
|
+
mapErr,
|
|
230
|
+
mergeStreams,
|
|
231
|
+
ok,
|
|
232
|
+
parseExpression,
|
|
233
|
+
parseTemplateContent,
|
|
234
|
+
parseWorkflowJson,
|
|
235
|
+
parseWorkflowYaml,
|
|
236
|
+
quickSelect,
|
|
237
|
+
reduceStream,
|
|
238
|
+
registerCreateExpertTool,
|
|
239
|
+
registerOrchestrateTool,
|
|
240
|
+
registerRunWorkflowTool,
|
|
241
|
+
registerTools,
|
|
242
|
+
resetRegistry,
|
|
243
|
+
resolveExpression,
|
|
244
|
+
resolveInput,
|
|
245
|
+
resolveStringExpressions,
|
|
246
|
+
safeValidateExpertConfig,
|
|
247
|
+
sanitize,
|
|
248
|
+
selectExperts,
|
|
249
|
+
setVariable,
|
|
250
|
+
skip,
|
|
251
|
+
sleep,
|
|
252
|
+
snapshotContext,
|
|
253
|
+
startStdioServer,
|
|
254
|
+
storeStepResult,
|
|
255
|
+
take,
|
|
256
|
+
takeUntil,
|
|
257
|
+
tapStream,
|
|
258
|
+
toolError,
|
|
259
|
+
toolSuccess,
|
|
260
|
+
transformStream,
|
|
261
|
+
unwrap,
|
|
262
|
+
unwrapOr,
|
|
263
|
+
validateDependencyGraph,
|
|
264
|
+
validateExpertConfig,
|
|
265
|
+
validateExpressions,
|
|
266
|
+
validateRequiredInputs,
|
|
267
|
+
validateToolInput,
|
|
268
|
+
validateWorkflow,
|
|
269
|
+
validateWorkflowDependencies,
|
|
270
|
+
withLogging,
|
|
271
|
+
withRetries,
|
|
272
|
+
withRetry,
|
|
273
|
+
withRetryWrapper,
|
|
274
|
+
withTimeout
|
|
275
|
+
} from "./chunk-3VJOPTVX.js";
|
|
276
|
+
export {
|
|
277
|
+
AdapterConfigSchema,
|
|
278
|
+
AdapterFactory,
|
|
279
|
+
AdapterModelError,
|
|
280
|
+
RateLimiter as AdapterRateLimiter,
|
|
281
|
+
AgentCapability,
|
|
282
|
+
AgentError,
|
|
283
|
+
AgentMessageSchema,
|
|
284
|
+
AgentRoleSchema2 as AgentRoleSchema,
|
|
285
|
+
AgentStateMachine,
|
|
286
|
+
StepExecutor as AgentStepExecutor,
|
|
287
|
+
AnalysisError,
|
|
288
|
+
AppConfigSchema,
|
|
289
|
+
ArchitectureExpert,
|
|
290
|
+
BUILT_IN_EXPERTS,
|
|
291
|
+
BUILT_IN_TEMPLATES,
|
|
292
|
+
BaseAdapter,
|
|
293
|
+
BaseAgent,
|
|
294
|
+
BaseAgentOptionsSchema,
|
|
295
|
+
BuiltInExpertTypeSchema,
|
|
296
|
+
CLAUDE_MODELS,
|
|
297
|
+
CLAUDE_MODEL_ALIASES,
|
|
298
|
+
ClaudeAdapter,
|
|
299
|
+
CodeChangeSchema,
|
|
300
|
+
CodeExpert,
|
|
301
|
+
CollaborationConfigSchema,
|
|
302
|
+
CollaborationPatternSchema,
|
|
303
|
+
CollaborationSession,
|
|
304
|
+
ConfigError,
|
|
305
|
+
ExpertConfigSchema as ConfigExpertConfigSchema,
|
|
306
|
+
ExpertDefinitionSchema as ConfigExpertDefinitionSchema,
|
|
307
|
+
ConsensusProtocol,
|
|
308
|
+
ContentPriority,
|
|
309
|
+
ContextBudgetSchema,
|
|
310
|
+
ContextManager,
|
|
311
|
+
ContextManagerConfigSchema,
|
|
312
|
+
ContextPruner,
|
|
313
|
+
ContextPrunerConfigSchema,
|
|
314
|
+
CoverageMetricsSchema,
|
|
315
|
+
CreateExpertInputSchema,
|
|
316
|
+
DEFAULT_BUDGET,
|
|
317
|
+
DEFAULT_MAX_RETRIES,
|
|
318
|
+
DEFAULT_RETRY_CONFIG,
|
|
319
|
+
DEFAULT_TIMEOUTS,
|
|
320
|
+
DependencyGraph,
|
|
321
|
+
DocumentationExpert,
|
|
322
|
+
EXPERT_CAPABILITIES,
|
|
323
|
+
EXPERT_DEFAULT_CAPABILITIES,
|
|
324
|
+
EXPERT_DEFAULT_TEMPERATURES,
|
|
325
|
+
EXPERT_TYPE_TO_ROLE,
|
|
326
|
+
ErrorCode,
|
|
327
|
+
Expert,
|
|
328
|
+
ExpertAssignmentSchema,
|
|
329
|
+
ExpertCollaborationPattern,
|
|
330
|
+
ExpertConfigSchema2 as ExpertConfigSchema,
|
|
331
|
+
ExpertDomainSchema,
|
|
332
|
+
ExpertFactory,
|
|
333
|
+
ExpertFactoryAdapter,
|
|
334
|
+
ExpertMatchSchema,
|
|
335
|
+
ExpertOptionsSchema,
|
|
336
|
+
ExpertOutputSchema,
|
|
337
|
+
ExpertParticipationSchema,
|
|
338
|
+
ExpertRegistry,
|
|
339
|
+
FactoryError,
|
|
340
|
+
GEMINI_MODELS,
|
|
341
|
+
GEMINI_MODEL_ALIASES,
|
|
342
|
+
GeminiAdapter,
|
|
343
|
+
GeneratedTestSchema,
|
|
344
|
+
InputDefinitionSchema2 as InputDefinitionSchema,
|
|
345
|
+
InputTypeSchema,
|
|
346
|
+
LoggingConfigSchema,
|
|
347
|
+
MIN_EXPERTS_FOR_PATTERN,
|
|
348
|
+
RateLimiter2 as McpRateLimiter,
|
|
349
|
+
ModelCapability,
|
|
350
|
+
ModelConfigSchema,
|
|
351
|
+
ModelError,
|
|
352
|
+
ModelPreferenceSchema,
|
|
353
|
+
ModelTiersSchema,
|
|
354
|
+
NexusError,
|
|
355
|
+
OLLAMA_MODELS,
|
|
356
|
+
OPENAI_MODELS,
|
|
357
|
+
OPENAI_MODEL_ALIASES,
|
|
358
|
+
OllamaAdapter,
|
|
359
|
+
OpenAIAdapter,
|
|
360
|
+
OrchestrateInputSchema,
|
|
361
|
+
OrchestrateOutputSchema,
|
|
362
|
+
OrchestrationError,
|
|
363
|
+
ParallelProtocol,
|
|
364
|
+
ParseError,
|
|
365
|
+
ProtocolFactory,
|
|
366
|
+
ProviderConfigSchema,
|
|
367
|
+
PruningStrategy,
|
|
368
|
+
RateLimitError,
|
|
369
|
+
RegistryError,
|
|
370
|
+
ResultAggregator,
|
|
371
|
+
RetryExhaustedError,
|
|
372
|
+
ReviewProtocol,
|
|
373
|
+
ReviewResponseMessageSchema,
|
|
374
|
+
RunWorkflowInputSchema,
|
|
375
|
+
ScoreBreakdownSchema,
|
|
376
|
+
SecurityConfigSchema,
|
|
377
|
+
SecurityError,
|
|
378
|
+
SecurityExpert,
|
|
379
|
+
SelectionError,
|
|
380
|
+
SelectionOptionsSchema,
|
|
381
|
+
SelectionResultSchema,
|
|
382
|
+
SequentialProtocol,
|
|
383
|
+
SessionStatusSchema,
|
|
384
|
+
SimpleAgent,
|
|
385
|
+
StreamCancelledError,
|
|
386
|
+
StreamController,
|
|
387
|
+
StreamError,
|
|
388
|
+
AgentRoleSchema as StrictAgentRoleSchema,
|
|
389
|
+
InputDefinitionSchema as StrictInputDefinitionSchema,
|
|
390
|
+
WorkflowDefinitionSchema as StrictWorkflowDefinitionSchema,
|
|
391
|
+
WorkflowStepSchema as StrictWorkflowStepSchema,
|
|
392
|
+
SubTaskSchema,
|
|
393
|
+
SubtaskPrioritySchema,
|
|
394
|
+
SubtaskStatusSchema,
|
|
395
|
+
SynthesizedResultSchema,
|
|
396
|
+
TASK_TYPE_EXPERTS,
|
|
397
|
+
TEMPLATE_CATEGORIES,
|
|
398
|
+
TEMPLATE_KEYWORDS,
|
|
399
|
+
TaskAnalysisResultSchema,
|
|
400
|
+
TaskAnalysisSchema,
|
|
401
|
+
TaskComplexity,
|
|
402
|
+
TaskDomain,
|
|
403
|
+
TaskQueue,
|
|
404
|
+
TaskSchema,
|
|
405
|
+
TechLead,
|
|
406
|
+
TechLeadOptionsSchema,
|
|
407
|
+
TemplateCategorySchema,
|
|
408
|
+
TemplateMetadataSchema,
|
|
409
|
+
TemplateRegistry,
|
|
410
|
+
TestingExpert,
|
|
411
|
+
TimeoutError,
|
|
412
|
+
VERSION,
|
|
413
|
+
ValidationError,
|
|
414
|
+
VoteDecisionSchema,
|
|
415
|
+
VoteMessageSchema,
|
|
416
|
+
VulnerabilitySchema,
|
|
417
|
+
VulnerabilitySeveritySchema,
|
|
418
|
+
WorkflowConfigSchema,
|
|
419
|
+
WorkflowDefinitionSchema2 as WorkflowDefinitionSchema,
|
|
420
|
+
WorkflowError,
|
|
421
|
+
WorkflowInputsSchema,
|
|
422
|
+
WorkflowStepSchema2 as WorkflowStepSchema,
|
|
423
|
+
aggregateResults,
|
|
424
|
+
allSucceeded,
|
|
425
|
+
analyzeTask,
|
|
426
|
+
areStepsCompleted,
|
|
427
|
+
bufferStream,
|
|
428
|
+
buildDependencyGraph,
|
|
429
|
+
calculateDelay,
|
|
430
|
+
cancelExecution,
|
|
431
|
+
closeServer,
|
|
432
|
+
collectStream,
|
|
433
|
+
concatStreams,
|
|
434
|
+
connectTransport,
|
|
435
|
+
containsExpressions,
|
|
436
|
+
createStepExecutor as createAgentStepExecutor,
|
|
437
|
+
createArchitectureExpert,
|
|
438
|
+
createClaudeAdapter,
|
|
439
|
+
createCodeExpert,
|
|
440
|
+
createCollaborationSession,
|
|
441
|
+
createDefaultDeps,
|
|
442
|
+
createDefaultRateLimiter,
|
|
443
|
+
createDefaultRegistry,
|
|
444
|
+
createDocumentationExpert,
|
|
445
|
+
createExecutionContext,
|
|
446
|
+
createExecutionPlan,
|
|
447
|
+
createGeminiAdapter,
|
|
448
|
+
createIsolatedRegistry,
|
|
449
|
+
createLogger,
|
|
450
|
+
createMcpLogger,
|
|
451
|
+
createMockTechLead,
|
|
452
|
+
createOllamaAdapter,
|
|
453
|
+
createOpenAIAdapter,
|
|
454
|
+
createProtocolFactory,
|
|
455
|
+
createRateLimiter,
|
|
456
|
+
createResultAggregator,
|
|
457
|
+
createSecurityExpert,
|
|
458
|
+
createServer,
|
|
459
|
+
createStateMachine,
|
|
460
|
+
createStream,
|
|
461
|
+
createTaskQueue,
|
|
462
|
+
createTechLead,
|
|
463
|
+
createTemplateRegistry,
|
|
464
|
+
createTestingExpert,
|
|
465
|
+
createTimer,
|
|
466
|
+
createToolLogger,
|
|
467
|
+
createValidator,
|
|
468
|
+
defaultConfig,
|
|
469
|
+
defaultFactory,
|
|
470
|
+
err,
|
|
471
|
+
executeParallel,
|
|
472
|
+
extractExpressions,
|
|
473
|
+
filterStream,
|
|
474
|
+
formatZodErrors,
|
|
475
|
+
fromArray,
|
|
476
|
+
getAvailableRoles,
|
|
477
|
+
getBuiltInTemplates,
|
|
478
|
+
getBuiltInTemplatesPath,
|
|
479
|
+
getBuiltInTemplatesWithMetadata,
|
|
480
|
+
getCapabilitiesForRole,
|
|
481
|
+
getCompletedSteps,
|
|
482
|
+
getExecutionDuration,
|
|
483
|
+
getExecutionOrder,
|
|
484
|
+
getExpertRegistry,
|
|
485
|
+
getFailedSteps,
|
|
486
|
+
getReferencedSteps,
|
|
487
|
+
getStepResult,
|
|
488
|
+
getTopologicalOrder,
|
|
489
|
+
getVariable,
|
|
490
|
+
isCancelled,
|
|
491
|
+
isErr,
|
|
492
|
+
isOk,
|
|
493
|
+
isRetryableError,
|
|
494
|
+
isStepCompleted,
|
|
495
|
+
isZodError,
|
|
496
|
+
loadTemplateFile,
|
|
497
|
+
loadTemplatesFromDirectory,
|
|
498
|
+
loadWorkflowFile,
|
|
499
|
+
logToolError,
|
|
500
|
+
logToolStart,
|
|
501
|
+
logToolSuccess,
|
|
502
|
+
logger,
|
|
503
|
+
map,
|
|
504
|
+
mapErr,
|
|
505
|
+
mergeStreams,
|
|
506
|
+
ok,
|
|
507
|
+
parseExpression,
|
|
508
|
+
parseTemplateContent,
|
|
509
|
+
parseWorkflowJson,
|
|
510
|
+
parseWorkflowYaml,
|
|
511
|
+
quickSelect,
|
|
512
|
+
reduceStream,
|
|
513
|
+
registerCreateExpertTool,
|
|
514
|
+
registerOrchestrateTool,
|
|
515
|
+
registerRunWorkflowTool,
|
|
516
|
+
registerTools,
|
|
517
|
+
resetRegistry,
|
|
518
|
+
resolveExpression,
|
|
519
|
+
resolveInput,
|
|
520
|
+
resolveStringExpressions,
|
|
521
|
+
safeValidateExpertConfig,
|
|
522
|
+
sanitize,
|
|
523
|
+
selectExperts,
|
|
524
|
+
setVariable,
|
|
525
|
+
skip,
|
|
526
|
+
sleep,
|
|
527
|
+
snapshotContext,
|
|
528
|
+
startStdioServer,
|
|
529
|
+
storeStepResult,
|
|
530
|
+
take,
|
|
531
|
+
takeUntil,
|
|
532
|
+
tapStream,
|
|
533
|
+
toolError,
|
|
534
|
+
toolSuccess,
|
|
535
|
+
transformStream,
|
|
536
|
+
unwrap,
|
|
537
|
+
unwrapOr,
|
|
538
|
+
validateDependencyGraph,
|
|
539
|
+
validateExpertConfig,
|
|
540
|
+
validateExpressions,
|
|
541
|
+
validateRequiredInputs,
|
|
542
|
+
validateToolInput,
|
|
543
|
+
validateWorkflow,
|
|
544
|
+
validateWorkflowDependencies,
|
|
545
|
+
withLogging,
|
|
546
|
+
withRetries,
|
|
547
|
+
withRetry,
|
|
548
|
+
withRetryWrapper,
|
|
549
|
+
withTimeout
|
|
550
|
+
};
|
|
551
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Bug Fix Workflow Template
|
|
2
|
+
# Structured bug diagnosis, fix, and verification
|
|
3
|
+
#
|
|
4
|
+
# Usage:
|
|
5
|
+
# Provide bug description and affected files.
|
|
6
|
+
# Workflow diagnoses the issue, implements fix, and verifies.
|
|
7
|
+
|
|
8
|
+
name: bug-fix
|
|
9
|
+
version: '1.0.0'
|
|
10
|
+
description: |
|
|
11
|
+
Bug fix workflow for diagnosing, fixing, and verifying bugs.
|
|
12
|
+
Follows systematic approach: diagnose root cause, implement fix,
|
|
13
|
+
add regression tests, and verify the solution.
|
|
14
|
+
|
|
15
|
+
inputs:
|
|
16
|
+
- name: bugDescription
|
|
17
|
+
type: string
|
|
18
|
+
description: Description of the bug and reproduction steps
|
|
19
|
+
required: true
|
|
20
|
+
|
|
21
|
+
- name: affectedFiles
|
|
22
|
+
type: array
|
|
23
|
+
description: Files known to be affected by the bug
|
|
24
|
+
required: false
|
|
25
|
+
|
|
26
|
+
- name: severity
|
|
27
|
+
type: string
|
|
28
|
+
description: Bug severity (critical, high, medium, low)
|
|
29
|
+
default: medium
|
|
30
|
+
|
|
31
|
+
- name: addRegressionTest
|
|
32
|
+
type: boolean
|
|
33
|
+
description: Whether to add regression test
|
|
34
|
+
default: true
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
# Step 1: Diagnose the bug
|
|
38
|
+
- id: diagnose
|
|
39
|
+
agent: code_expert
|
|
40
|
+
action: diagnose_bug
|
|
41
|
+
description: |
|
|
42
|
+
Analyzes the bug to identify root cause:
|
|
43
|
+
- Traces code execution path
|
|
44
|
+
- Identifies faulty logic
|
|
45
|
+
- Determines scope of impact
|
|
46
|
+
- Documents reproduction steps
|
|
47
|
+
inputs:
|
|
48
|
+
description: ${{ inputs.bugDescription }}
|
|
49
|
+
affectedFiles: ${{ inputs.affectedFiles }}
|
|
50
|
+
severity: ${{ inputs.severity }}
|
|
51
|
+
timeout: 120000
|
|
52
|
+
retries: 1
|
|
53
|
+
|
|
54
|
+
# Step 2: Implement the fix
|
|
55
|
+
- id: fix
|
|
56
|
+
agent: code_expert
|
|
57
|
+
action: implement_fix
|
|
58
|
+
description: |
|
|
59
|
+
Implements the bug fix:
|
|
60
|
+
- Modifies affected code
|
|
61
|
+
- Ensures minimal change footprint
|
|
62
|
+
- Preserves existing functionality
|
|
63
|
+
- Adds defensive coding where needed
|
|
64
|
+
inputs:
|
|
65
|
+
diagnosis: ${{ steps.diagnose.output }}
|
|
66
|
+
affectedFiles: ${{ inputs.affectedFiles }}
|
|
67
|
+
severity: ${{ inputs.severity }}
|
|
68
|
+
dependsOn:
|
|
69
|
+
- diagnose
|
|
70
|
+
timeout: 120000
|
|
71
|
+
retries: 2
|
|
72
|
+
|
|
73
|
+
# Step 3: Generate regression test
|
|
74
|
+
- id: test
|
|
75
|
+
agent: testing_expert
|
|
76
|
+
action: generate_regression_test
|
|
77
|
+
description: |
|
|
78
|
+
Creates regression tests:
|
|
79
|
+
- Tests that would have caught the bug
|
|
80
|
+
- Verifies the fix works correctly
|
|
81
|
+
- Edge cases around the bug
|
|
82
|
+
inputs:
|
|
83
|
+
diagnosis: ${{ steps.diagnose.output }}
|
|
84
|
+
fix: ${{ steps.fix.output }}
|
|
85
|
+
bugDescription: ${{ inputs.bugDescription }}
|
|
86
|
+
dependsOn:
|
|
87
|
+
- fix
|
|
88
|
+
condition: ${{ inputs.addRegressionTest == true }}
|
|
89
|
+
timeout: 90000
|
|
90
|
+
|
|
91
|
+
# Step 4: Verify the fix
|
|
92
|
+
- id: verify
|
|
93
|
+
agent: testing_expert
|
|
94
|
+
action: verify_fix
|
|
95
|
+
description: |
|
|
96
|
+
Verifies the fix is complete:
|
|
97
|
+
- Runs existing tests
|
|
98
|
+
- Runs new regression tests
|
|
99
|
+
- Checks for side effects
|
|
100
|
+
- Confirms bug is resolved
|
|
101
|
+
inputs:
|
|
102
|
+
diagnosis: ${{ steps.diagnose.output }}
|
|
103
|
+
fix: ${{ steps.fix.output }}
|
|
104
|
+
tests: ${{ steps.test.output }}
|
|
105
|
+
dependsOn:
|
|
106
|
+
- test
|
|
107
|
+
timeout: 90000
|
|
108
|
+
|
|
109
|
+
timeout: 420000
|