snow-flow 2.0.4 → 2.0.6

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.
Files changed (74) hide show
  1. package/dist/config/snow-flow-config.d.ts +1492 -0
  2. package/dist/config/snow-flow-config.js +938 -0
  3. package/dist/coordination/coordination-engine.d.ts +41 -0
  4. package/dist/coordination/coordination-engine.js +324 -0
  5. package/dist/coordination/coordination.test.d.ts +6 -0
  6. package/dist/coordination/example.d.ts +31 -0
  7. package/dist/coordination/example.js +394 -0
  8. package/dist/coordination/execution-patterns.d.ts +43 -0
  9. package/dist/coordination/execution-patterns.js +507 -0
  10. package/dist/coordination/factory.d.ts +94 -0
  11. package/dist/coordination/factory.js +433 -0
  12. package/dist/coordination/index.d.ts +71 -0
  13. package/dist/coordination/index.js +135 -0
  14. package/dist/coordination/progress-monitor.d.ts +71 -0
  15. package/dist/coordination/progress-monitor.js +505 -0
  16. package/dist/coordination/quality-gates.d.ts +124 -0
  17. package/dist/coordination/quality-gates.js +577 -0
  18. package/dist/coordination/shared-memory.d.ts +39 -0
  19. package/dist/coordination/shared-memory.js +289 -0
  20. package/dist/coordination/task-dependencies.d.ts +50 -0
  21. package/dist/coordination/task-dependencies.js +407 -0
  22. package/dist/coordination/team-coordinator.d.ts +59 -0
  23. package/dist/coordination/team-coordinator.js +550 -0
  24. package/dist/coordination/types.d.ts +152 -0
  25. package/dist/coordination/types.js +3 -0
  26. package/dist/memory/hierarchical-memory-system.d.ts +90 -0
  27. package/dist/memory/hierarchical-memory-system.js +400 -0
  28. package/dist/memory/index.d.ts +9 -0
  29. package/dist/memory/index.js +20 -0
  30. package/dist/memory/mcp-integration-example.d.ts +6 -0
  31. package/dist/memory/mcp-integration-example.js +281 -0
  32. package/dist/memory/memory-client.d.ts +199 -0
  33. package/dist/memory/memory-client.js +364 -0
  34. package/dist/memory/memory-manager.d.ts +29 -0
  35. package/dist/memory/memory-manager.js +280 -0
  36. package/dist/memory/memory-operations.d.ts +179 -0
  37. package/dist/memory/memory-operations.js +691 -0
  38. package/dist/memory/memory-system.d.ts +152 -0
  39. package/dist/memory/memory-system.js +632 -0
  40. package/dist/memory/memory-test.d.ts +6 -0
  41. package/dist/memory/memory-test.js +161 -0
  42. package/dist/memory/servicenow-artifact-indexer.d.ts +119 -0
  43. package/dist/memory/servicenow-artifact-indexer.js +560 -0
  44. package/dist/memory/snow-flow-memory-patterns.d.ts +213 -0
  45. package/dist/memory/snow-flow-memory-patterns.js +200 -0
  46. package/dist/memory/snow-memory.d.ts +54 -0
  47. package/dist/memory/snow-memory.js +301 -0
  48. package/dist/memory/swarm-memory.d.ts +135 -0
  49. package/dist/memory/swarm-memory.js +378 -0
  50. package/memory/claude-flow-data.json +5 -0
  51. package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +30 -0
  52. package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +36 -0
  53. package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +30 -0
  54. package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +30 -0
  55. package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +55 -0
  56. package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +55 -0
  57. package/memory/sessions/README.md +32 -0
  58. package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +9 -0
  59. package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +9 -0
  60. package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +8 -0
  61. package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +9 -0
  62. package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +9 -0
  63. package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +9 -0
  64. package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +58 -0
  65. package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +9 -0
  66. package/package.json +1 -1
  67. package/reports/swarm-auto-centralized-1752649029776.json +13 -0
  68. package/scripts/postinstall.js +30 -0
  69. package/scripts/update-version.js +31 -0
  70. package/servicenow/widgets/openai_incident_classifier/client_controller.js +284 -0
  71. package/servicenow/widgets/openai_incident_classifier/server_script.js +314 -0
  72. package/servicenow/widgets/openai_incident_classifier/style.css +354 -0
  73. package/servicenow/widgets/openai_incident_classifier/template.html +167 -0
  74. package/servicenow/widgets/openai_incident_classifier/widget.json +86 -0
@@ -0,0 +1,433 @@
1
+ "use strict";
2
+ /**
3
+ * Factory functions for creating coordination framework components
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TaskSpecificationBuilder = void 0;
7
+ exports.createCoordinationEngine = createCoordinationEngine;
8
+ exports.createStandardQualityGates = createStandardQualityGates;
9
+ exports.createServiceNowQualityGates = createServiceNowQualityGates;
10
+ exports.createProgressListener = createProgressListener;
11
+ exports.createServiceNowTaskSpecification = createServiceNowTaskSpecification;
12
+ exports.createServiceNowCoordinationSetup = createServiceNowCoordinationSetup;
13
+ const coordination_engine_1 = require("./coordination-engine");
14
+ const quality_gates_1 = require("./quality-gates");
15
+ const logger_1 = require("../utils/logger");
16
+ /**
17
+ * Create a coordination engine with sensible defaults
18
+ */
19
+ function createCoordinationEngine(config = {}) {
20
+ const defaultConfig = {
21
+ maxConcurrentTasks: 5,
22
+ taskTimeout: 300000, // 5 minutes
23
+ enableRetries: true,
24
+ maxRetries: 3,
25
+ enableQualityGates: true,
26
+ enableProgressMonitoring: true,
27
+ executionPattern: 'auto',
28
+ memoryTtl: 3600000, // 1 hour
29
+ errorRecoveryStrategy: 'retry'
30
+ };
31
+ const finalConfig = { ...defaultConfig, ...config };
32
+ logger_1.logger.info('🏭 Creating coordination engine', { config: finalConfig });
33
+ return new coordination_engine_1.CoordinationEngine(finalConfig);
34
+ }
35
+ /**
36
+ * Create standard quality gates for general development
37
+ */
38
+ function createStandardQualityGates() {
39
+ const manager = new quality_gates_1.QualityGateManager({
40
+ enableBlocking: true,
41
+ enableScoring: true,
42
+ minPassingScore: 0.7,
43
+ enableMetrics: true,
44
+ timeoutMs: 30000
45
+ });
46
+ // Add standard gates
47
+ const codeGate = new quality_gates_1.CodeQualityGate({
48
+ maxComplexity: 10,
49
+ minCoverage: 80,
50
+ requireDocumentation: true,
51
+ blocking: true
52
+ });
53
+ const securityGate = new quality_gates_1.SecurityGate({
54
+ checkInjection: true,
55
+ checkXSS: true,
56
+ checkSecrets: true,
57
+ checkAuth: true
58
+ });
59
+ const performanceGate = new quality_gates_1.PerformanceGate({
60
+ maxResponseTime: 5000,
61
+ maxMemoryUsage: 100,
62
+ blocking: false
63
+ });
64
+ logger_1.logger.info('🛡️ Created standard quality gates', {
65
+ gates: ['code_quality', 'security', 'performance']
66
+ });
67
+ return manager;
68
+ }
69
+ /**
70
+ * Create ServiceNow-specific quality gates
71
+ */
72
+ function createServiceNowQualityGates() {
73
+ const manager = new quality_gates_1.QualityGateManager({
74
+ enableBlocking: true,
75
+ enableScoring: true,
76
+ minPassingScore: 0.8,
77
+ enableMetrics: true,
78
+ timeoutMs: 45000 // Longer timeout for ServiceNow operations
79
+ });
80
+ // ServiceNow specific gates
81
+ const snowGate = new quality_gates_1.ServiceNowGate({
82
+ checkScope: true,
83
+ checkUpdateSet: true,
84
+ checkNaming: true,
85
+ checkDependencies: true,
86
+ blocking: true
87
+ });
88
+ const businessGate = new quality_gates_1.BusinessLogicGate({
89
+ checkRequirements: true,
90
+ checkOutputs: true,
91
+ checkErrorHandling: true,
92
+ blocking: true
93
+ });
94
+ const codeGate = new quality_gates_1.CodeQualityGate({
95
+ maxComplexity: 15, // Slightly higher for ServiceNow scripts
96
+ minCoverage: 70, // Slightly lower due to ServiceNow testing constraints
97
+ requireDocumentation: true,
98
+ blocking: true
99
+ });
100
+ const securityGate = new quality_gates_1.SecurityGate({
101
+ checkInjection: true,
102
+ checkXSS: true,
103
+ checkSecrets: true,
104
+ checkAuth: true,
105
+ checkPermissions: true // Important for ServiceNow
106
+ });
107
+ logger_1.logger.info('🛡️ Created ServiceNow quality gates', {
108
+ gates: ['servicenow_compliance', 'business_logic', 'code_quality', 'security']
109
+ });
110
+ return manager;
111
+ }
112
+ /**
113
+ * Create a progress listener with common logging
114
+ */
115
+ function createProgressListener(config = {}) {
116
+ const { logLevel = 'info', logProgress = true, logTasks = true, logAgents = false, logPerformance = false, customHandler } = config;
117
+ return {
118
+ onProgress(event, data) {
119
+ try {
120
+ // Custom handler takes precedence
121
+ if (customHandler) {
122
+ customHandler(event, data);
123
+ return;
124
+ }
125
+ // Standard logging based on event type and configuration
126
+ switch (event) {
127
+ case 'task_progress':
128
+ if (logProgress) {
129
+ logger_1.logger[logLevel]('📊 Progress Update', {
130
+ completed: data.completed,
131
+ total: data.total,
132
+ percentage: data.percentage,
133
+ phase: data.currentPhase
134
+ });
135
+ }
136
+ break;
137
+ case 'task:completed':
138
+ if (logTasks) {
139
+ logger_1.logger[logLevel]('✅ Task Completed', {
140
+ taskId: data.taskId,
141
+ progress: `${Math.round(data.progress * 100)}%`
142
+ });
143
+ }
144
+ break;
145
+ case 'task:failed':
146
+ if (logTasks) {
147
+ logger_1.logger.error('❌ Task Failed', {
148
+ taskId: data.taskId,
149
+ error: data.error?.message
150
+ });
151
+ }
152
+ break;
153
+ case 'agent_health':
154
+ if (logAgents) {
155
+ const unhealthy = Object.entries(data.agents)
156
+ .filter(([, health]) => health.status === 'error').length;
157
+ if (unhealthy > 0) {
158
+ logger_1.logger.warn('⚠️ Agent Health Issue', {
159
+ unhealthyAgents: unhealthy,
160
+ totalAgents: Object.keys(data.agents).length
161
+ });
162
+ }
163
+ }
164
+ break;
165
+ case 'performance_metrics':
166
+ if (logPerformance) {
167
+ logger_1.logger[logLevel]('⚡ Performance Metrics', {
168
+ efficiency: `${Math.round(data.efficiency * 100)}%`,
169
+ throughput: data.throughput.toFixed(2),
170
+ averageTime: `${Math.round(data.averageTaskTime / 1000)}s`
171
+ });
172
+ }
173
+ break;
174
+ case 'bottlenecks_detected':
175
+ logger_1.logger.warn('🚧 Bottlenecks Detected', {
176
+ count: data.bottlenecks?.length || 0,
177
+ types: data.bottlenecks?.map((b) => b.type) || []
178
+ });
179
+ break;
180
+ case 'memory:high_usage':
181
+ logger_1.logger.warn('🧠 High Memory Usage', {
182
+ usage: `${Math.round(data.usage)}%`
183
+ });
184
+ break;
185
+ default:
186
+ // Log unknown events at debug level
187
+ logger_1.logger.debug('📡 Coordination Event', { event, data });
188
+ }
189
+ }
190
+ catch (error) {
191
+ logger_1.logger.error('❌ Progress listener error', {
192
+ event,
193
+ error: error.message
194
+ });
195
+ }
196
+ }
197
+ };
198
+ }
199
+ /**
200
+ * Create a task specification builder for common ServiceNow patterns
201
+ */
202
+ function createServiceNowTaskSpecification(name, description) {
203
+ return new TaskSpecificationBuilder(name, description);
204
+ }
205
+ /**
206
+ * Builder pattern for creating task specifications
207
+ */
208
+ class TaskSpecificationBuilder {
209
+ constructor(name, description) {
210
+ this.spec = {
211
+ name,
212
+ description,
213
+ tasks: [],
214
+ sharedContext: {},
215
+ qualityGates: [],
216
+ executionPattern: 'auto'
217
+ };
218
+ }
219
+ /**
220
+ * Add a task to the specification
221
+ */
222
+ addTask(task) {
223
+ this.spec.tasks.push({
224
+ id: task.id,
225
+ name: task.name,
226
+ description: task.description,
227
+ agentType: task.agentType,
228
+ requirements: task.requirements,
229
+ dependencies: task.dependencies || [],
230
+ outputs: task.outputs || [],
231
+ priority: task.priority || 'medium'
232
+ });
233
+ return this;
234
+ }
235
+ /**
236
+ * Add shared context
237
+ */
238
+ addContext(key, value) {
239
+ this.spec.sharedContext[key] = value;
240
+ return this;
241
+ }
242
+ /**
243
+ * Set execution pattern
244
+ */
245
+ setExecutionPattern(pattern) {
246
+ this.spec.executionPattern = pattern;
247
+ return this;
248
+ }
249
+ /**
250
+ * Add quality gates
251
+ */
252
+ addQualityGates(config) {
253
+ this.spec.qualityGates.push(config);
254
+ return this;
255
+ }
256
+ /**
257
+ * Add ServiceNow widget development tasks
258
+ */
259
+ addWidgetDevelopmentTasks(widgetName) {
260
+ return this
261
+ .addTask({
262
+ id: 'analyze_requirements',
263
+ name: 'Analyze Requirements',
264
+ description: 'Analyze widget requirements and design specifications',
265
+ agentType: 'analyst',
266
+ requirements: {
267
+ inputs: { widgetSpec: widgetName },
268
+ outputs: ['requirements', 'design'],
269
+ capabilities: ['analysis', 'design']
270
+ }
271
+ })
272
+ .addTask({
273
+ id: 'create_widget_template',
274
+ name: 'Create Widget Template',
275
+ description: 'Create HTML template for the widget',
276
+ agentType: 'ui-builder',
277
+ requirements: {
278
+ inputs: {},
279
+ outputs: ['template', 'css'],
280
+ capabilities: ['html', 'css', 'servicenow']
281
+ },
282
+ dependencies: ['analyze_requirements']
283
+ })
284
+ .addTask({
285
+ id: 'implement_client_script',
286
+ name: 'Implement Client Script',
287
+ description: 'Implement client-side JavaScript functionality',
288
+ agentType: 'coder',
289
+ requirements: {
290
+ inputs: {},
291
+ outputs: ['clientScript'],
292
+ capabilities: ['javascript', 'servicenow', 'frontend']
293
+ },
294
+ dependencies: ['create_widget_template']
295
+ })
296
+ .addTask({
297
+ id: 'implement_server_script',
298
+ name: 'Implement Server Script',
299
+ description: 'Implement server-side logic and data access',
300
+ agentType: 'coder',
301
+ requirements: {
302
+ inputs: {},
303
+ outputs: ['serverScript'],
304
+ capabilities: ['javascript', 'servicenow', 'backend']
305
+ },
306
+ dependencies: ['analyze_requirements']
307
+ })
308
+ .addTask({
309
+ id: 'deploy_widget',
310
+ name: 'Deploy Widget',
311
+ description: 'Deploy widget to ServiceNow instance',
312
+ agentType: 'servicenow-specialist',
313
+ requirements: {
314
+ inputs: {},
315
+ outputs: ['deploymentResult'],
316
+ capabilities: ['servicenow', 'deployment']
317
+ },
318
+ dependencies: ['implement_client_script', 'implement_server_script']
319
+ })
320
+ .addTask({
321
+ id: 'test_widget',
322
+ name: 'Test Widget',
323
+ description: 'Test widget functionality and integration',
324
+ agentType: 'tester',
325
+ requirements: {
326
+ inputs: {},
327
+ outputs: ['testResults'],
328
+ capabilities: ['testing', 'servicenow']
329
+ },
330
+ dependencies: ['deploy_widget']
331
+ });
332
+ }
333
+ /**
334
+ * Add ServiceNow flow development tasks
335
+ */
336
+ addFlowDevelopmentTasks(flowName) {
337
+ return this
338
+ .addTask({
339
+ id: 'design_flow',
340
+ name: 'Design Flow',
341
+ description: 'Design flow structure and logic',
342
+ agentType: 'workflow-designer',
343
+ requirements: {
344
+ inputs: { flowSpec: flowName },
345
+ outputs: ['flowDesign', 'flowSteps'],
346
+ capabilities: ['workflow', 'design', 'servicenow']
347
+ }
348
+ })
349
+ .addTask({
350
+ id: 'implement_flow',
351
+ name: 'Implement Flow',
352
+ description: 'Implement flow using ServiceNow Flow Designer',
353
+ agentType: 'servicenow-specialist',
354
+ requirements: {
355
+ inputs: {},
356
+ outputs: ['flowDefinition'],
357
+ capabilities: ['servicenow', 'flow-designer', 'automation']
358
+ },
359
+ dependencies: ['design_flow']
360
+ })
361
+ .addTask({
362
+ id: 'test_flow',
363
+ name: 'Test Flow',
364
+ description: 'Test flow execution with mock data',
365
+ agentType: 'tester',
366
+ requirements: {
367
+ inputs: {},
368
+ outputs: ['testResults'],
369
+ capabilities: ['testing', 'servicenow', 'automation']
370
+ },
371
+ dependencies: ['implement_flow']
372
+ });
373
+ }
374
+ /**
375
+ * Build the final task specification
376
+ */
377
+ build() {
378
+ // Add default quality gates if none specified
379
+ if (this.spec.qualityGates.length === 0) {
380
+ this.spec.qualityGates.push({
381
+ name: 'default_gates',
382
+ taskIds: this.spec.tasks.map(t => t.id),
383
+ gates: [] // Will be populated by createServiceNowQualityGates()
384
+ });
385
+ }
386
+ logger_1.logger.info('🏗️ Built task specification', {
387
+ name: this.spec.name,
388
+ tasks: this.spec.tasks.length,
389
+ qualityGates: this.spec.qualityGates.length
390
+ });
391
+ return { ...this.spec };
392
+ }
393
+ }
394
+ exports.TaskSpecificationBuilder = TaskSpecificationBuilder;
395
+ /**
396
+ * Create a complete coordination setup for ServiceNow development
397
+ */
398
+ function createServiceNowCoordinationSetup(config) {
399
+ const { maxConcurrentTasks = 5, enableAdvancedQualityGates = true, memoryTtl = 3600000, progressLogging = true } = config;
400
+ // Create coordination engine
401
+ const engine = createCoordinationEngine({
402
+ maxConcurrentTasks,
403
+ enableQualityGates: enableAdvancedQualityGates,
404
+ memoryTtl,
405
+ executionPattern: 'hybrid'
406
+ });
407
+ // Create quality gates
408
+ const qualityGates = enableAdvancedQualityGates
409
+ ? createServiceNowQualityGates()
410
+ : createStandardQualityGates();
411
+ // Create progress listener
412
+ const progressListener = createProgressListener({
413
+ logLevel: 'info',
414
+ logProgress: progressLogging,
415
+ logTasks: progressLogging,
416
+ logAgents: true,
417
+ logPerformance: true
418
+ });
419
+ // Task builder factory
420
+ const taskBuilder = (name, description) => createServiceNowTaskSpecification(name, description);
421
+ logger_1.logger.info('🚀 ServiceNow coordination setup created', {
422
+ maxConcurrentTasks,
423
+ advancedQualityGates: enableAdvancedQualityGates,
424
+ progressLogging
425
+ });
426
+ return {
427
+ engine,
428
+ qualityGates,
429
+ progressListener,
430
+ taskBuilder
431
+ };
432
+ }
433
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Team Coordination Framework
3
+ *
4
+ * A comprehensive framework for managing communication, dependencies, and quality gates
5
+ * between specialized agents in ServiceNow development workflows.
6
+ */
7
+ export { CoordinationEngine } from './coordination-engine';
8
+ export { SharedMemoryManager } from './shared-memory';
9
+ export { TaskDependencyGraph } from './task-dependencies';
10
+ export { QualityGateManager, CodeQualityGate, SecurityGate, PerformanceGate, ServiceNowGate, BusinessLogicGate } from './quality-gates';
11
+ export { ExecutionPattern, SequentialExecutionPattern, ParallelExecutionPattern, HybridExecutionPattern, AdaptiveExecutionPattern } from './execution-patterns';
12
+ export { ProgressMonitor } from './progress-monitor';
13
+ export * from './types';
14
+ export { createCoordinationEngine, createStandardQualityGates, createServiceNowQualityGates, createProgressListener } from './factory';
15
+ /**
16
+ * Main coordination framework entry point
17
+ *
18
+ * Example usage:
19
+ * ```typescript
20
+ * import { CoordinationFramework } from './coordination';
21
+ *
22
+ * const framework = new CoordinationFramework({
23
+ * maxConcurrentTasks: 5,
24
+ * enableQualityGates: true,
25
+ * executionPattern: 'hybrid'
26
+ * });
27
+ *
28
+ * const result = await framework.coordinate(team, specification);
29
+ * ```
30
+ */
31
+ export declare class CoordinationFramework {
32
+ private engine;
33
+ constructor(config?: Partial<import('./types').CoordinationConfig>);
34
+ /**
35
+ * Coordinate team execution of a task specification
36
+ */
37
+ coordinate(team: import('./types').BaseTeam, specification: import('./types').TaskSpecification): Promise<import('./types').CoordinationResult>;
38
+ /**
39
+ * Get execution plan without executing
40
+ */
41
+ plan(specification: import('./types').TaskSpecification): Promise<import('./types').ExecutionPlan>;
42
+ /**
43
+ * Access the shared memory manager
44
+ */
45
+ getSharedMemory(): SharedMemoryManager;
46
+ /**
47
+ * Access the quality gate manager
48
+ */
49
+ getQualityGates(): QualityGateManager;
50
+ /**
51
+ * Pause execution
52
+ */
53
+ pause(): Promise<void>;
54
+ /**
55
+ * Resume execution
56
+ */
57
+ resume(): Promise<void>;
58
+ /**
59
+ * Abort execution
60
+ */
61
+ abort(reason: string): Promise<void>;
62
+ /**
63
+ * Subscribe to coordination events
64
+ */
65
+ on(event: string, listener: (...args: any[]) => void): void;
66
+ /**
67
+ * Remove event listener
68
+ */
69
+ off(event: string, listener: (...args: any[]) => void): void;
70
+ }
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ /**
3
+ * Team Coordination Framework
4
+ *
5
+ * A comprehensive framework for managing communication, dependencies, and quality gates
6
+ * between specialized agents in ServiceNow development workflows.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.CoordinationFramework = exports.createProgressListener = exports.createServiceNowQualityGates = exports.createStandardQualityGates = exports.createCoordinationEngine = exports.ProgressMonitor = exports.AdaptiveExecutionPattern = exports.HybridExecutionPattern = exports.ParallelExecutionPattern = exports.SequentialExecutionPattern = exports.ExecutionPattern = exports.BusinessLogicGate = exports.ServiceNowGate = exports.PerformanceGate = exports.SecurityGate = exports.CodeQualityGate = exports.QualityGateManager = exports.TaskDependencyGraph = exports.SharedMemoryManager = exports.CoordinationEngine = void 0;
24
+ // Core coordination engine
25
+ var coordination_engine_1 = require("./coordination-engine");
26
+ Object.defineProperty(exports, "CoordinationEngine", { enumerable: true, get: function () { return coordination_engine_1.CoordinationEngine; } });
27
+ // Shared memory management
28
+ var shared_memory_1 = require("./shared-memory");
29
+ Object.defineProperty(exports, "SharedMemoryManager", { enumerable: true, get: function () { return shared_memory_1.SharedMemoryManager; } });
30
+ // Task dependency management
31
+ var task_dependencies_1 = require("./task-dependencies");
32
+ Object.defineProperty(exports, "TaskDependencyGraph", { enumerable: true, get: function () { return task_dependencies_1.TaskDependencyGraph; } });
33
+ // Quality gates system
34
+ var quality_gates_1 = require("./quality-gates");
35
+ Object.defineProperty(exports, "QualityGateManager", { enumerable: true, get: function () { return quality_gates_1.QualityGateManager; } });
36
+ Object.defineProperty(exports, "CodeQualityGate", { enumerable: true, get: function () { return quality_gates_1.CodeQualityGate; } });
37
+ Object.defineProperty(exports, "SecurityGate", { enumerable: true, get: function () { return quality_gates_1.SecurityGate; } });
38
+ Object.defineProperty(exports, "PerformanceGate", { enumerable: true, get: function () { return quality_gates_1.PerformanceGate; } });
39
+ Object.defineProperty(exports, "ServiceNowGate", { enumerable: true, get: function () { return quality_gates_1.ServiceNowGate; } });
40
+ Object.defineProperty(exports, "BusinessLogicGate", { enumerable: true, get: function () { return quality_gates_1.BusinessLogicGate; } });
41
+ // Execution patterns
42
+ var execution_patterns_1 = require("./execution-patterns");
43
+ Object.defineProperty(exports, "ExecutionPattern", { enumerable: true, get: function () { return execution_patterns_1.ExecutionPattern; } });
44
+ Object.defineProperty(exports, "SequentialExecutionPattern", { enumerable: true, get: function () { return execution_patterns_1.SequentialExecutionPattern; } });
45
+ Object.defineProperty(exports, "ParallelExecutionPattern", { enumerable: true, get: function () { return execution_patterns_1.ParallelExecutionPattern; } });
46
+ Object.defineProperty(exports, "HybridExecutionPattern", { enumerable: true, get: function () { return execution_patterns_1.HybridExecutionPattern; } });
47
+ Object.defineProperty(exports, "AdaptiveExecutionPattern", { enumerable: true, get: function () { return execution_patterns_1.AdaptiveExecutionPattern; } });
48
+ // Progress monitoring
49
+ var progress_monitor_1 = require("./progress-monitor");
50
+ Object.defineProperty(exports, "ProgressMonitor", { enumerable: true, get: function () { return progress_monitor_1.ProgressMonitor; } });
51
+ // Type definitions
52
+ __exportStar(require("./types"), exports);
53
+ // Convenience factory functions
54
+ var factory_1 = require("./factory");
55
+ Object.defineProperty(exports, "createCoordinationEngine", { enumerable: true, get: function () { return factory_1.createCoordinationEngine; } });
56
+ Object.defineProperty(exports, "createStandardQualityGates", { enumerable: true, get: function () { return factory_1.createStandardQualityGates; } });
57
+ Object.defineProperty(exports, "createServiceNowQualityGates", { enumerable: true, get: function () { return factory_1.createServiceNowQualityGates; } });
58
+ Object.defineProperty(exports, "createProgressListener", { enumerable: true, get: function () { return factory_1.createProgressListener; } });
59
+ /**
60
+ * Main coordination framework entry point
61
+ *
62
+ * Example usage:
63
+ * ```typescript
64
+ * import { CoordinationFramework } from './coordination';
65
+ *
66
+ * const framework = new CoordinationFramework({
67
+ * maxConcurrentTasks: 5,
68
+ * enableQualityGates: true,
69
+ * executionPattern: 'hybrid'
70
+ * });
71
+ *
72
+ * const result = await framework.coordinate(team, specification);
73
+ * ```
74
+ */
75
+ class CoordinationFramework {
76
+ constructor(config = {}) {
77
+ this.engine = new CoordinationEngine(config);
78
+ }
79
+ /**
80
+ * Coordinate team execution of a task specification
81
+ */
82
+ async coordinate(team, specification) {
83
+ return await this.engine.coordinateTeamExecution(team, specification);
84
+ }
85
+ /**
86
+ * Get execution plan without executing
87
+ */
88
+ async plan(specification) {
89
+ return await this.engine.getExecutionPlan(specification);
90
+ }
91
+ /**
92
+ * Access the shared memory manager
93
+ */
94
+ getSharedMemory() {
95
+ return this.engine.getSharedMemory();
96
+ }
97
+ /**
98
+ * Access the quality gate manager
99
+ */
100
+ getQualityGates() {
101
+ return this.engine.getQualityGateManager();
102
+ }
103
+ /**
104
+ * Pause execution
105
+ */
106
+ async pause() {
107
+ return await this.engine.pauseExecution();
108
+ }
109
+ /**
110
+ * Resume execution
111
+ */
112
+ async resume() {
113
+ return await this.engine.resumeExecution();
114
+ }
115
+ /**
116
+ * Abort execution
117
+ */
118
+ async abort(reason) {
119
+ return await this.engine.abortExecution(reason);
120
+ }
121
+ /**
122
+ * Subscribe to coordination events
123
+ */
124
+ on(event, listener) {
125
+ this.engine.on(event, listener);
126
+ }
127
+ /**
128
+ * Remove event listener
129
+ */
130
+ off(event, listener) {
131
+ this.engine.off(event, listener);
132
+ }
133
+ }
134
+ exports.CoordinationFramework = CoordinationFramework;
135
+ //# sourceMappingURL=index.js.map