musubi-sdd 3.10.0 → 5.1.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/README.md +24 -19
- package/package.json +1 -1
- package/src/agents/agent-loop.js +532 -0
- package/src/agents/agentic/code-generator.js +767 -0
- package/src/agents/agentic/code-reviewer.js +698 -0
- package/src/agents/agentic/index.js +43 -0
- package/src/agents/function-tool.js +432 -0
- package/src/agents/index.js +45 -0
- package/src/agents/schema-generator.js +514 -0
- package/src/analyzers/ast-extractor.js +870 -0
- package/src/analyzers/context-optimizer.js +681 -0
- package/src/analyzers/repository-map.js +692 -0
- package/src/integrations/index.js +7 -1
- package/src/integrations/mcp/index.js +175 -0
- package/src/integrations/mcp/mcp-context-provider.js +472 -0
- package/src/integrations/mcp/mcp-discovery.js +436 -0
- package/src/integrations/mcp/mcp-tool-registry.js +467 -0
- package/src/integrations/mcp-connector.js +818 -0
- package/src/integrations/tool-discovery.js +589 -0
- package/src/managers/index.js +7 -0
- package/src/managers/skill-tools.js +565 -0
- package/src/monitoring/cost-tracker.js +7 -0
- package/src/monitoring/incident-manager.js +10 -0
- package/src/monitoring/observability.js +10 -0
- package/src/monitoring/quality-dashboard.js +491 -0
- package/src/monitoring/release-manager.js +10 -0
- package/src/orchestration/agent-skill-binding.js +655 -0
- package/src/orchestration/error-handler.js +827 -0
- package/src/orchestration/index.js +235 -1
- package/src/orchestration/mcp-tool-adapters.js +896 -0
- package/src/orchestration/reasoning/index.js +58 -0
- package/src/orchestration/reasoning/planning-engine.js +831 -0
- package/src/orchestration/reasoning/reasoning-engine.js +710 -0
- package/src/orchestration/reasoning/self-correction.js +751 -0
- package/src/orchestration/skill-executor.js +665 -0
- package/src/orchestration/skill-registry.js +650 -0
- package/src/orchestration/workflow-examples.js +1072 -0
- package/src/orchestration/workflow-executor.js +779 -0
- package/src/phase4-integration.js +248 -0
- package/src/phase5-integration.js +402 -0
- package/src/steering/steering-auto-update.js +572 -0
- package/src/steering/steering-validator.js +547 -0
- package/src/templates/template-constraints.js +646 -0
- package/src/validators/advanced-validation.js +580 -0
|
@@ -127,6 +127,133 @@ const {
|
|
|
127
127
|
globalRuleRegistry
|
|
128
128
|
} = require('./guardrails');
|
|
129
129
|
|
|
130
|
+
// Sprint 3.5: Advanced Workflows
|
|
131
|
+
const {
|
|
132
|
+
WorkflowExecutor,
|
|
133
|
+
WorkflowDefinition,
|
|
134
|
+
ExecutionContext: WorkflowExecutionContext,
|
|
135
|
+
StepResult,
|
|
136
|
+
StepType: WorkflowStepType,
|
|
137
|
+
ExecutionState,
|
|
138
|
+
RecoveryStrategy
|
|
139
|
+
} = require('./workflow-executor');
|
|
140
|
+
|
|
141
|
+
const {
|
|
142
|
+
ErrorHandler,
|
|
143
|
+
ErrorClassifier,
|
|
144
|
+
ErrorAggregator,
|
|
145
|
+
CircuitBreaker,
|
|
146
|
+
GracefulDegradation,
|
|
147
|
+
WorkflowError,
|
|
148
|
+
ErrorSeverity,
|
|
149
|
+
ErrorCategory,
|
|
150
|
+
CircuitState
|
|
151
|
+
} = require('./error-handler');
|
|
152
|
+
|
|
153
|
+
const {
|
|
154
|
+
featureDevelopmentWorkflow,
|
|
155
|
+
cicdPipelineWorkflow,
|
|
156
|
+
codeReviewWorkflow,
|
|
157
|
+
incidentResponseWorkflow,
|
|
158
|
+
dataPipelineWorkflow,
|
|
159
|
+
createWorkflowFromTemplate
|
|
160
|
+
} = require('./workflow-examples');
|
|
161
|
+
|
|
162
|
+
// Sprint 3.1-3.3: Skill System Architecture
|
|
163
|
+
const {
|
|
164
|
+
SkillRegistry,
|
|
165
|
+
SkillDefinition,
|
|
166
|
+
SkillHealth,
|
|
167
|
+
SkillCategory
|
|
168
|
+
} = require('./skill-registry');
|
|
169
|
+
|
|
170
|
+
const {
|
|
171
|
+
SkillExecutor,
|
|
172
|
+
ExecutionPriority,
|
|
173
|
+
ParallelExecutor,
|
|
174
|
+
ValidationError,
|
|
175
|
+
GuardrailError
|
|
176
|
+
} = require('./skill-executor');
|
|
177
|
+
|
|
178
|
+
const {
|
|
179
|
+
AgentSkillBinding,
|
|
180
|
+
AgentDefinition,
|
|
181
|
+
BindingRecord,
|
|
182
|
+
AgentStatus,
|
|
183
|
+
CapabilityMatcher
|
|
184
|
+
} = require('./agent-skill-binding');
|
|
185
|
+
|
|
186
|
+
const {
|
|
187
|
+
MCPTransport,
|
|
188
|
+
AdapterDirection,
|
|
189
|
+
MCPToolDefinition,
|
|
190
|
+
SchemaTranslator,
|
|
191
|
+
MCPToSkillAdapter,
|
|
192
|
+
SkillToMCPAdapter,
|
|
193
|
+
MCPAdapterManager
|
|
194
|
+
} = require('./mcp-tool-adapters');
|
|
195
|
+
|
|
196
|
+
// Phase 4: Agent Loop & Agentic Features
|
|
197
|
+
const phase4 = require('../phase4-integration');
|
|
198
|
+
const {
|
|
199
|
+
createIntegratedAgent,
|
|
200
|
+
// Sprint 4.2: Codebase Intelligence
|
|
201
|
+
RepositoryMap,
|
|
202
|
+
ASTExtractor,
|
|
203
|
+
ContextOptimizer,
|
|
204
|
+
createRepositoryMap,
|
|
205
|
+
createASTExtractor,
|
|
206
|
+
createContextOptimizer,
|
|
207
|
+
// Sprint 4.3: Agentic Reasoning
|
|
208
|
+
ReasoningEngine,
|
|
209
|
+
PlanningEngine,
|
|
210
|
+
SelfCorrection,
|
|
211
|
+
createReasoningEngine,
|
|
212
|
+
createPlanningEngine,
|
|
213
|
+
createSelfCorrection,
|
|
214
|
+
// Sprint 4.4: Agentic Features
|
|
215
|
+
CodeGenerator,
|
|
216
|
+
CodeReviewer,
|
|
217
|
+
createCodeGenerator,
|
|
218
|
+
createCodeReviewer
|
|
219
|
+
} = phase4;
|
|
220
|
+
|
|
221
|
+
// Phase 5: Advanced Features
|
|
222
|
+
const {
|
|
223
|
+
Phase5Integration,
|
|
224
|
+
createPhase5Integration,
|
|
225
|
+
INTEGRATION_STATUS,
|
|
226
|
+
// Sprint 5.1
|
|
227
|
+
SteeringAutoUpdate,
|
|
228
|
+
SteeringValidator,
|
|
229
|
+
createSteeringAutoUpdate,
|
|
230
|
+
createSteeringValidator,
|
|
231
|
+
TRIGGER,
|
|
232
|
+
STEERING_TYPE,
|
|
233
|
+
SEVERITY,
|
|
234
|
+
RULE_TYPE,
|
|
235
|
+
// Sprint 5.2
|
|
236
|
+
TemplateConstraints,
|
|
237
|
+
ThinkingChecklist,
|
|
238
|
+
createTemplateConstraints,
|
|
239
|
+
createThinkingChecklist,
|
|
240
|
+
CONSTRAINT_TYPE,
|
|
241
|
+
UNCERTAINTY,
|
|
242
|
+
MARKER_TYPE,
|
|
243
|
+
// Sprint 5.3
|
|
244
|
+
QualityDashboard,
|
|
245
|
+
createQualityDashboard,
|
|
246
|
+
METRIC_CATEGORY,
|
|
247
|
+
HEALTH_STATUS,
|
|
248
|
+
CONSTITUTIONAL_ARTICLES,
|
|
249
|
+
// Sprint 5.4
|
|
250
|
+
AdvancedValidation,
|
|
251
|
+
createAdvancedValidation,
|
|
252
|
+
VALIDATION_TYPE,
|
|
253
|
+
ARTIFACT_TYPE,
|
|
254
|
+
GAP_SEVERITY
|
|
255
|
+
} = require('../phase5-integration');
|
|
256
|
+
|
|
130
257
|
/**
|
|
131
258
|
* Create a fully configured orchestration engine
|
|
132
259
|
* with default patterns registered
|
|
@@ -270,5 +397,112 @@ module.exports = {
|
|
|
270
397
|
// Constants
|
|
271
398
|
PatternType,
|
|
272
399
|
ExecutionStatus,
|
|
273
|
-
Priority
|
|
400
|
+
Priority,
|
|
401
|
+
|
|
402
|
+
// Workflow Executor (Sprint 3.5)
|
|
403
|
+
WorkflowExecutor,
|
|
404
|
+
WorkflowDefinition,
|
|
405
|
+
WorkflowExecutionContext,
|
|
406
|
+
StepResult,
|
|
407
|
+
WorkflowStepType,
|
|
408
|
+
ExecutionState,
|
|
409
|
+
RecoveryStrategy,
|
|
410
|
+
|
|
411
|
+
// Error Handler (Sprint 3.5)
|
|
412
|
+
ErrorHandler,
|
|
413
|
+
ErrorClassifier,
|
|
414
|
+
ErrorAggregator,
|
|
415
|
+
CircuitBreaker,
|
|
416
|
+
GracefulDegradation,
|
|
417
|
+
WorkflowError,
|
|
418
|
+
ErrorSeverity,
|
|
419
|
+
ErrorCategory,
|
|
420
|
+
CircuitState,
|
|
421
|
+
|
|
422
|
+
// Workflow Examples (Sprint 3.5)
|
|
423
|
+
featureDevelopmentWorkflow,
|
|
424
|
+
cicdPipelineWorkflow,
|
|
425
|
+
codeReviewWorkflow,
|
|
426
|
+
incidentResponseWorkflow,
|
|
427
|
+
dataPipelineWorkflow,
|
|
428
|
+
createWorkflowFromTemplate,
|
|
429
|
+
|
|
430
|
+
// Skill Registry (Sprint 3.1)
|
|
431
|
+
SkillRegistry,
|
|
432
|
+
SkillDefinition,
|
|
433
|
+
SkillHealth,
|
|
434
|
+
SkillCategory,
|
|
435
|
+
|
|
436
|
+
// Skill Executor (Sprint 3.2)
|
|
437
|
+
SkillExecutor,
|
|
438
|
+
ExecutionPriority,
|
|
439
|
+
ParallelExecutor,
|
|
440
|
+
ValidationError,
|
|
441
|
+
GuardrailError,
|
|
442
|
+
|
|
443
|
+
// Agent-Skill Binding (Sprint 3.3)
|
|
444
|
+
AgentSkillBinding,
|
|
445
|
+
AgentDefinition,
|
|
446
|
+
BindingRecord,
|
|
447
|
+
AgentStatus,
|
|
448
|
+
CapabilityMatcher,
|
|
449
|
+
|
|
450
|
+
// MCP Tool Adapters (Sprint 3.3.5)
|
|
451
|
+
MCPTransport,
|
|
452
|
+
AdapterDirection,
|
|
453
|
+
MCPToolDefinition,
|
|
454
|
+
SchemaTranslator,
|
|
455
|
+
MCPToSkillAdapter,
|
|
456
|
+
SkillToMCPAdapter,
|
|
457
|
+
MCPAdapterManager,
|
|
458
|
+
|
|
459
|
+
// Phase 4: Agent Loop & Agentic Features
|
|
460
|
+
phase4,
|
|
461
|
+
createIntegratedAgent,
|
|
462
|
+
RepositoryMap,
|
|
463
|
+
ASTExtractor,
|
|
464
|
+
ContextOptimizer,
|
|
465
|
+
createRepositoryMap,
|
|
466
|
+
createASTExtractor,
|
|
467
|
+
createContextOptimizer,
|
|
468
|
+
ReasoningEngine,
|
|
469
|
+
PlanningEngine,
|
|
470
|
+
SelfCorrection,
|
|
471
|
+
createReasoningEngine,
|
|
472
|
+
createPlanningEngine,
|
|
473
|
+
createSelfCorrection,
|
|
474
|
+
CodeGenerator,
|
|
475
|
+
CodeReviewer,
|
|
476
|
+
createCodeGenerator,
|
|
477
|
+
createCodeReviewer,
|
|
478
|
+
|
|
479
|
+
// Phase 5: Advanced Features
|
|
480
|
+
Phase5Integration,
|
|
481
|
+
createPhase5Integration,
|
|
482
|
+
INTEGRATION_STATUS,
|
|
483
|
+
SteeringAutoUpdate,
|
|
484
|
+
SteeringValidator,
|
|
485
|
+
createSteeringAutoUpdate,
|
|
486
|
+
createSteeringValidator,
|
|
487
|
+
TRIGGER,
|
|
488
|
+
STEERING_TYPE,
|
|
489
|
+
SEVERITY,
|
|
490
|
+
RULE_TYPE,
|
|
491
|
+
TemplateConstraints,
|
|
492
|
+
ThinkingChecklist,
|
|
493
|
+
createTemplateConstraints,
|
|
494
|
+
createThinkingChecklist,
|
|
495
|
+
CONSTRAINT_TYPE,
|
|
496
|
+
UNCERTAINTY,
|
|
497
|
+
MARKER_TYPE,
|
|
498
|
+
QualityDashboard,
|
|
499
|
+
createQualityDashboard,
|
|
500
|
+
METRIC_CATEGORY,
|
|
501
|
+
HEALTH_STATUS,
|
|
502
|
+
CONSTITUTIONAL_ARTICLES,
|
|
503
|
+
AdvancedValidation,
|
|
504
|
+
createAdvancedValidation,
|
|
505
|
+
VALIDATION_TYPE,
|
|
506
|
+
ARTIFACT_TYPE,
|
|
507
|
+
GAP_SEVERITY
|
|
274
508
|
};
|