snow-flow 2.0.5 → 2.0.7

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 (52) 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/memory-system.d.ts +1 -0
  27. package/dist/memory/memory-system.js +21 -2
  28. package/memory/claude-flow-data.json +5 -0
  29. package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +30 -0
  30. package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +36 -0
  31. package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +30 -0
  32. package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +30 -0
  33. package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +55 -0
  34. package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +55 -0
  35. package/memory/sessions/README.md +32 -0
  36. package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +9 -0
  37. package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +9 -0
  38. package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +8 -0
  39. package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +9 -0
  40. package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +9 -0
  41. package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +9 -0
  42. package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +58 -0
  43. package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +9 -0
  44. package/package.json +1 -1
  45. package/reports/swarm-auto-centralized-1752649029776.json +13 -0
  46. package/servicenow/widgets/openai_incident_classifier/client_controller.js +284 -0
  47. package/servicenow/widgets/openai_incident_classifier/server_script.js +314 -0
  48. package/servicenow/widgets/openai_incident_classifier/style.css +354 -0
  49. package/servicenow/widgets/openai_incident_classifier/template.html +167 -0
  50. package/servicenow/widgets/openai_incident_classifier/widget.json +86 -0
  51. package/intelligent-mcp.db-shm +0 -0
  52. package/intelligent-mcp.db-wal +0 -0
@@ -0,0 +1,152 @@
1
+ import { SnowAgent, TaskStatus } from '../types/snow-flow.types';
2
+ export interface CoordinationResult {
3
+ success: boolean;
4
+ results: Record<string, any>;
5
+ metrics: ExecutionMetrics;
6
+ errors: Error[];
7
+ warnings: string[];
8
+ }
9
+ export interface ExecutionMetrics {
10
+ totalTasks: number;
11
+ completedTasks: number;
12
+ failedTasks: number;
13
+ totalExecutionTime: number;
14
+ averageTaskTime: number;
15
+ concurrentTasks: number;
16
+ }
17
+ export interface TaskSpecification {
18
+ name: string;
19
+ description: string;
20
+ tasks: TaskDefinition[];
21
+ sharedContext: Record<string, any>;
22
+ qualityGates: QualityGateConfig[];
23
+ executionPattern?: 'sequential' | 'parallel' | 'hybrid';
24
+ }
25
+ export interface TaskDefinition {
26
+ id: string;
27
+ name: string;
28
+ description: string;
29
+ agentType: string;
30
+ requirements: TaskRequirements;
31
+ dependencies: string[];
32
+ outputs: string[];
33
+ priority: 'low' | 'medium' | 'high' | 'critical';
34
+ estimatedDuration?: number;
35
+ maxRetries?: number;
36
+ }
37
+ export interface TaskRequirements {
38
+ inputs: Record<string, any>;
39
+ outputs: string[];
40
+ capabilities: string[];
41
+ resources?: ResourceRequirement[];
42
+ constraints?: Constraint[];
43
+ }
44
+ export interface ResourceRequirement {
45
+ type: 'memory' | 'compute' | 'servicenow_access' | 'external_api';
46
+ amount?: number;
47
+ metadata?: Record<string, any>;
48
+ }
49
+ export interface Constraint {
50
+ type: 'time' | 'resource' | 'dependency' | 'quality';
51
+ value: any;
52
+ description: string;
53
+ }
54
+ export interface TaskNode {
55
+ id: string;
56
+ agent: SnowAgent;
57
+ requirements: TaskRequirements;
58
+ status: TaskStatus;
59
+ result: any;
60
+ error?: Error;
61
+ startTime?: Date;
62
+ endTime?: Date;
63
+ retryCount: number;
64
+ qualityGateResults?: QualityGateResult[];
65
+ }
66
+ export interface AgentSubscriber {
67
+ agent: SnowAgent;
68
+ callback: (key: string, value: any) => Promise<void>;
69
+ }
70
+ export interface QualityGateConfig {
71
+ name: string;
72
+ taskIds: string[];
73
+ gates: QualityGate[];
74
+ }
75
+ export interface QualityGate {
76
+ name: string;
77
+ blocking: boolean;
78
+ validate(result: any): Promise<ValidationResult>;
79
+ }
80
+ export interface ValidationResult {
81
+ passed: boolean;
82
+ score?: number;
83
+ error?: string;
84
+ warnings?: string[];
85
+ suggestions?: string[];
86
+ metadata?: Record<string, any>;
87
+ }
88
+ export interface QualityGateResult {
89
+ gateName: string;
90
+ passed: boolean;
91
+ blocking: boolean;
92
+ validations: ValidationResult[];
93
+ overallScore?: number;
94
+ executionTime: number;
95
+ }
96
+ export interface ProgressStatus {
97
+ total: number;
98
+ completed: number;
99
+ failed: number;
100
+ inProgress: number;
101
+ percentage: number;
102
+ estimated_completion?: Date;
103
+ currentPhase?: string;
104
+ bottlenecks?: string[];
105
+ }
106
+ export interface ProgressListener {
107
+ onProgress(event: string, data: any): void;
108
+ }
109
+ export interface ExecutionPlan {
110
+ phases: ExecutionPhase[];
111
+ totalEstimatedTime: number;
112
+ criticalPath: string[];
113
+ parallelizationOpportunities: ParallelGroup[];
114
+ }
115
+ export interface ExecutionPhase {
116
+ id: string;
117
+ type: 'sequential' | 'parallel';
118
+ tasks: string[];
119
+ estimatedDuration: number;
120
+ dependencies: string[];
121
+ }
122
+ export interface ParallelGroup {
123
+ tasks: string[];
124
+ estimatedSavings: number;
125
+ riskLevel: 'low' | 'medium' | 'high';
126
+ }
127
+ export interface BaseTeam {
128
+ agents: Map<string, SnowAgent>;
129
+ getAgent(id: string): SnowAgent | undefined;
130
+ addAgent(agent: SnowAgent): void;
131
+ removeAgent(id: string): void;
132
+ getAvailableAgents(): SnowAgent[];
133
+ getAgentsByType(type: string): SnowAgent[];
134
+ }
135
+ export interface MemoryValue {
136
+ value: any;
137
+ timestamp: number;
138
+ version: number;
139
+ metadata?: Record<string, any>;
140
+ }
141
+ export interface CoordinationConfig {
142
+ maxConcurrentTasks: number;
143
+ taskTimeout: number;
144
+ enableRetries: boolean;
145
+ maxRetries: number;
146
+ enableQualityGates: boolean;
147
+ enableProgressMonitoring: boolean;
148
+ executionPattern: 'sequential' | 'parallel' | 'hybrid' | 'auto';
149
+ memoryTtl: number;
150
+ errorRecoveryStrategy: 'abort' | 'continue' | 'retry';
151
+ }
152
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -139,6 +139,7 @@ export declare class MemorySystem extends EventEmitter {
139
139
  * Private helper methods
140
140
  */
141
141
  private createCoreTables;
142
+ private runCriticalMigrations;
142
143
  private runMigrations;
143
144
  private startCleanupTimer;
144
145
  private cleanup;
@@ -172,7 +172,9 @@ class MemorySystem extends events_1.EventEmitter {
172
172
  this.db.pragma('synchronous = NORMAL');
173
173
  // Create core tables
174
174
  await this.createCoreTables();
175
- // Run migrations if needed
175
+ // Always run critical migrations (like missing metadata column)
176
+ await this.runCriticalMigrations();
177
+ // Run optional migrations if needed
176
178
  if (this.options.schema?.autoMigrate) {
177
179
  await this.runMigrations();
178
180
  }
@@ -362,7 +364,8 @@ class MemorySystem extends events_1.EventEmitter {
362
364
  ttl INTEGER,
363
365
  expires_at INTEGER,
364
366
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
365
- updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
367
+ updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
368
+ metadata TEXT DEFAULT '{}'
366
369
  );
367
370
 
368
371
  CREATE INDEX IF NOT EXISTS idx_memory_expires ON memory_store(expires_at);
@@ -483,6 +486,22 @@ class MemorySystem extends events_1.EventEmitter {
483
486
  CREATE INDEX IF NOT EXISTS idx_perf_success_time ON performance_metrics(success, created_at);
484
487
  `);
485
488
  }
489
+ async runCriticalMigrations() {
490
+ // Critical migrations that must always run
491
+ try {
492
+ // Fix for missing metadata column
493
+ const tableInfo = this.db.prepare("PRAGMA table_info(memory_store)").all();
494
+ const hasMetadataColumn = tableInfo.some((col) => col.name === 'metadata');
495
+ if (!hasMetadataColumn) {
496
+ this.logger.info('Running critical migration: Adding metadata column to memory_store table...');
497
+ this.db.exec("ALTER TABLE memory_store ADD COLUMN metadata TEXT DEFAULT '{}'");
498
+ this.logger.info('Critical migration completed: Metadata column added successfully');
499
+ }
500
+ }
501
+ catch (error) {
502
+ this.logger.warn('Could not complete critical migrations:', error);
503
+ }
504
+ }
486
505
  async runMigrations() {
487
506
  // Implement schema migrations if needed
488
507
  this.logger.info('Running database migrations...');
@@ -0,0 +1,5 @@
1
+ {
2
+ "agents": [],
3
+ "tasks": [],
4
+ "lastUpdated": 1754038214952
5
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "meta": {
3
+ "sys_id": "000d9224c895221055906c7518aa2d3d",
4
+ "name": "open_nlu_predict_log0001",
5
+ "type": "sys_db_object",
6
+ "last_updated": "2025-05-01 00:51:23"
7
+ },
8
+ "structure": {
9
+ "type": "unknown",
10
+ "components": []
11
+ },
12
+ "context": {
13
+ "usage": "Context analysis would determine usage patterns",
14
+ "dependencies": "Related artifacts would be identified here",
15
+ "impact": "Impact analysis would be performed here"
16
+ },
17
+ "relationships": {
18
+ "relatedArtifacts": [],
19
+ "dependencies": [],
20
+ "usage": []
21
+ },
22
+ "claudeSummary": "open_nlu_predict_log0001 is a sys_db_object in ServiceNow. It can be modified using natural language instructions through Snow-Flow.",
23
+ "modificationPoints": [
24
+ {
25
+ "location": "main_configuration",
26
+ "type": "modify_settings",
27
+ "description": "Main configuration can be modified"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "meta": {
3
+ "sys_id": "0196b66173303010e46b4a2214f6a7a2",
4
+ "name": "Flow Template Subflow",
5
+ "type": "sys_hub_flow",
6
+ "last_updated": "2021-09-29 04:49:06"
7
+ },
8
+ "structure": {
9
+ "type": "flow",
10
+ "components": {
11
+ "name": "Flow Template Subflow",
12
+ "description": "",
13
+ "active": "false",
14
+ "trigger": "Unknown trigger",
15
+ "steps": "Flow definition analysis would go here"
16
+ }
17
+ },
18
+ "context": {
19
+ "usage": "Context analysis would determine usage patterns",
20
+ "dependencies": "Related artifacts would be identified here",
21
+ "impact": "Impact analysis would be performed here"
22
+ },
23
+ "relationships": {
24
+ "relatedArtifacts": [],
25
+ "dependencies": [],
26
+ "usage": []
27
+ },
28
+ "claudeSummary": "Flow Template Subflow is a sys_hub_flow in ServiceNow. It can be modified using natural language instructions through Snow-Flow.",
29
+ "modificationPoints": [
30
+ {
31
+ "location": "main_configuration",
32
+ "type": "modify_settings",
33
+ "description": "Main configuration can be modified"
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "meta": {
3
+ "sys_id": "125e5d1d837e2a102a7ea130ceaad397",
4
+ "name": "iPhone 6 Request Approval Flow",
5
+ "type": "wf_workflow",
6
+ "last_updated": "2025-07-16 17:47:17"
7
+ },
8
+ "structure": {
9
+ "type": "unknown",
10
+ "components": []
11
+ },
12
+ "context": {
13
+ "usage": "Context analysis would determine usage patterns",
14
+ "dependencies": "Related artifacts would be identified here",
15
+ "impact": "Impact analysis would be performed here"
16
+ },
17
+ "relationships": {
18
+ "relatedArtifacts": [],
19
+ "dependencies": [],
20
+ "usage": []
21
+ },
22
+ "claudeSummary": "iPhone 6 Request Approval Flow is a wf_workflow in ServiceNow. It can be modified using natural language instructions through Snow-Flow.",
23
+ "modificationPoints": [
24
+ {
25
+ "location": "main_configuration",
26
+ "type": "modify_settings",
27
+ "description": "Main configuration can be modified"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "meta": {
3
+ "sys_id": "7637c1f2b7112210a5e5911cde11a972",
4
+ "name": "Prevent invalid language code",
5
+ "type": "sys_script",
6
+ "last_updated": "2025-05-18 23:10:10"
7
+ },
8
+ "structure": {
9
+ "type": "unknown",
10
+ "components": []
11
+ },
12
+ "context": {
13
+ "usage": "Context analysis would determine usage patterns",
14
+ "dependencies": "Related artifacts would be identified here",
15
+ "impact": "Impact analysis would be performed here"
16
+ },
17
+ "relationships": {
18
+ "relatedArtifacts": [],
19
+ "dependencies": [],
20
+ "usage": []
21
+ },
22
+ "claudeSummary": "Prevent invalid language code is a sys_script in ServiceNow. It can be modified using natural language instructions through Snow-Flow.",
23
+ "modificationPoints": [
24
+ {
25
+ "location": "main_configuration",
26
+ "type": "modify_settings",
27
+ "description": "Main configuration can be modified"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "key": "default:documentation_tables_1754056582292",
3
+ "data": {
4
+ "generation_metadata": {
5
+ "timestamp": "2025-08-01T13:56:22.292Z",
6
+ "execution_time_ms": 14,
7
+ "scope": [
8
+ "tables"
9
+ ],
10
+ "format": "markdown",
11
+ "audience_level": "mixed",
12
+ "objects_documented": 1,
13
+ "auto_update_enabled": false
14
+ },
15
+ "discovered_objects": [
16
+ {
17
+ "type": "table",
18
+ "name": "incident",
19
+ "label": "Incident",
20
+ "description": "Incident management table",
21
+ "sys_id": "incident_table_id"
22
+ }
23
+ ],
24
+ "documentation_content": {
25
+ "format": "markdown",
26
+ "content": "# ServiceNow tables Documentation\n\n*Generated on: 8/1/2025*\n*Objects documented: 1*\n\n## Table of Contents\n\n- [Executive Summary](#executive-summary)\n- [Architecture Overview](#architecture-overview)\n- [table: incident](#table:-incident)\n- [Best Practices and Recommendations](#best-practices-and-recommendations)\n\n\n## Executive Summary\n\nThis documentation covers 1 ServiceNow objects across multiple categories: 1 table.\n\n### Scope:\n- **Documentation Type**: undefined level\n- **Format**: markdown\n- **Coverage**: tables\n- **Generated**: 8/1/2025\n\n### Key Highlights:\n- Comprehensive coverage of core system components\n- Detailed technical specifications and usage guidelines\n- Best practices and recommendations for optimal implementation\n- Architecture diagrams and relationship mappings\n- API documentation not included\n\n### Audience:\nThis documentation is designed for both technical and business stakeholders.\n \n\n\n## incident\n\n**Type**: table\n**Description**: Incident management table\n\n**System ID**: incident_table_id\n\n### Overview\nIncident management table\n\n### Table Structure\n\n## Incident\n\n**Table Name:** incident\n**Description:** Incident management table\n**Type:** Core ServiceNow Table\n\n### Key Characteristics:\n- Primary table for incident records\n- Extends: task (if applicable)\n- Access controlled by ACLs\n- Supports workflows and business rules\n \n\n### Field Definitions\n\n### Core Fields:\n- **sys_id**: Unique identifier (32-character GUID)\n- **number**: Auto-generated record number\n- **state**: Current state of the record\n- **priority**: Priority level (1-5)\n- **assigned_to**: User assigned to handle the record\n- **short_description**: Brief description of the issue/request\n- **description**: Detailed description\n\n### Custom Fields:\n_(Document any custom fields added to this table)_\n \n\n### Relationships\n\n### Parent-Child Relationships:\n- Extends: task table (inherits all task fields)\n- Child tables: None\n\n### Reference Relationships:\n- assigned_to → sys_user\n- caller_id → sys_user (if applicable)\n- cmdb_ci → cmdb_ci (if applicable)\n\n### Related Lists:\n- Approvals\n- Activities (work notes, comments)\n- Attachments\n \n\n### Dependencies\n- **sys_user** (table): references\n- **task** (table): extends\n- **approval_workflow** (workflow): triggers\n\n### Usage Patterns\n**High Volume Usage**: This object is accessed frequently during business hours\n*Recommendation: Consider performance optimization for peak times*\n\n**Integration Dependency**: Relies on external system integration\n*Recommendation: Ensure proper error handling for integration failures*\n\n### Best Practices\n- Always validate required fields before saving\n- Use proper ACLs to control access\n- Consider performance impact of large datasets\n- Document any custom fields and their purpose\n\n\n\n\n## Best Practices and Recommendations\n\n### General Guidelines:\n- Follow ServiceNow best practices for development and configuration\n- Use proper naming conventions for all objects\n- Document all customizations and configurations\n- Test thoroughly in development before deploying to production\n- Implement proper error handling and logging\n\n### Performance Considerations:\n- Optimize database queries and avoid N+1 query patterns\n- Use appropriate indexes for frequently queried fields\n- Consider caching for frequently accessed data\n- Monitor system performance and resource usage\n\n### Security Best Practices:\n- Implement proper access controls using ACLs\n- Follow principle of least privilege for user permissions\n- Validate all user inputs to prevent security vulnerabilities\n- Regularly review and audit security configurations\n\n### Maintenance and Support:\n- Keep documentation up to date with system changes\n- Implement proper version control for customizations\n- Plan for regular maintenance windows and updates\n- Establish monitoring and alerting for critical processes\n\n### Integration Guidelines:\n- Use standard ServiceNow APIs where possible\n- Implement proper error handling for external integrations\n- Document all integration points and data flows\n- Test integrations thoroughly including failure scenarios\n \n\n",
27
+ "filename": "ServiceNow_tables_Documentation.md"
28
+ },
29
+ "diagrams": null,
30
+ "api_documentation": null,
31
+ "auto_update_config": null,
32
+ "statistics": {
33
+ "total_objects": 1,
34
+ "content_sections": 3,
35
+ "diagrams_generated": 0,
36
+ "api_endpoints_documented": 0,
37
+ "total_words": 538,
38
+ "estimated_reading_time_minutes": 3
39
+ },
40
+ "quality_metrics": {
41
+ "completeness_score": 60,
42
+ "accuracy_score": 100,
43
+ "readability_score": 25,
44
+ "coverage_percentage": 100
45
+ }
46
+ },
47
+ "timestamp": 1754056582292,
48
+ "ttl": 604800000,
49
+ "tags": [],
50
+ "metadata": {
51
+ "creator": "ServiceNowAdvancedFeaturesMCP",
52
+ "version": "1.0.0",
53
+ "description": "Cached data for key: documentation_tables_1754056582292"
54
+ }
55
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "key": "default:documentation_tables_1754057477189",
3
+ "data": {
4
+ "generation_metadata": {
5
+ "timestamp": "2025-08-01T14:11:17.189Z",
6
+ "execution_time_ms": 14,
7
+ "scope": [
8
+ "tables"
9
+ ],
10
+ "format": "markdown",
11
+ "audience_level": "mixed",
12
+ "objects_documented": 1,
13
+ "auto_update_enabled": false
14
+ },
15
+ "discovered_objects": [
16
+ {
17
+ "type": "table",
18
+ "name": "incident",
19
+ "label": "Incident",
20
+ "description": "Incident management table",
21
+ "sys_id": "incident_table_id"
22
+ }
23
+ ],
24
+ "documentation_content": {
25
+ "format": "markdown",
26
+ "content": "# ServiceNow tables Documentation\n\n*Generated on: 8/1/2025*\n*Objects documented: 1*\n\n## Table of Contents\n\n- [Executive Summary](#executive-summary)\n- [Architecture Overview](#architecture-overview)\n- [table: incident](#table:-incident)\n- [Best Practices and Recommendations](#best-practices-and-recommendations)\n\n\n## Executive Summary\n\nThis documentation covers 1 ServiceNow objects across multiple categories: 1 table.\n\n### Scope:\n- **Documentation Type**: undefined level\n- **Format**: markdown\n- **Coverage**: tables\n- **Generated**: 8/1/2025\n\n### Key Highlights:\n- Comprehensive coverage of core system components\n- Detailed technical specifications and usage guidelines\n- Best practices and recommendations for optimal implementation\n- Architecture diagrams and relationship mappings\n- API documentation not included\n\n### Audience:\nThis documentation is designed for both technical and business stakeholders.\n \n\n\n## incident\n\n**Type**: table\n**Description**: Incident management table\n\n**System ID**: incident_table_id\n\n### Overview\nIncident management table\n\n### Table Structure\n\n## Incident\n\n**Table Name:** incident\n**Description:** Incident management table\n**Type:** Core ServiceNow Table\n\n### Key Characteristics:\n- Primary table for incident records\n- Extends: task (if applicable)\n- Access controlled by ACLs\n- Supports workflows and business rules\n \n\n### Field Definitions\n\n### Core Fields:\n- **sys_id**: Unique identifier (32-character GUID)\n- **number**: Auto-generated record number\n- **state**: Current state of the record\n- **priority**: Priority level (1-5)\n- **assigned_to**: User assigned to handle the record\n- **short_description**: Brief description of the issue/request\n- **description**: Detailed description\n\n### Custom Fields:\n_(Document any custom fields added to this table)_\n \n\n### Relationships\n\n### Parent-Child Relationships:\n- Extends: task table (inherits all task fields)\n- Child tables: None\n\n### Reference Relationships:\n- assigned_to → sys_user\n- caller_id → sys_user (if applicable)\n- cmdb_ci → cmdb_ci (if applicable)\n\n### Related Lists:\n- Approvals\n- Activities (work notes, comments)\n- Attachments\n \n\n### Dependencies\n- **sys_user** (table): references\n- **task** (table): extends\n- **approval_workflow** (workflow): triggers\n\n### Usage Patterns\n**High Volume Usage**: This object is accessed frequently during business hours\n*Recommendation: Consider performance optimization for peak times*\n\n**Integration Dependency**: Relies on external system integration\n*Recommendation: Ensure proper error handling for integration failures*\n\n### Best Practices\n- Always validate required fields before saving\n- Use proper ACLs to control access\n- Consider performance impact of large datasets\n- Document any custom fields and their purpose\n\n\n\n\n## Best Practices and Recommendations\n\n### General Guidelines:\n- Follow ServiceNow best practices for development and configuration\n- Use proper naming conventions for all objects\n- Document all customizations and configurations\n- Test thoroughly in development before deploying to production\n- Implement proper error handling and logging\n\n### Performance Considerations:\n- Optimize database queries and avoid N+1 query patterns\n- Use appropriate indexes for frequently queried fields\n- Consider caching for frequently accessed data\n- Monitor system performance and resource usage\n\n### Security Best Practices:\n- Implement proper access controls using ACLs\n- Follow principle of least privilege for user permissions\n- Validate all user inputs to prevent security vulnerabilities\n- Regularly review and audit security configurations\n\n### Maintenance and Support:\n- Keep documentation up to date with system changes\n- Implement proper version control for customizations\n- Plan for regular maintenance windows and updates\n- Establish monitoring and alerting for critical processes\n\n### Integration Guidelines:\n- Use standard ServiceNow APIs where possible\n- Implement proper error handling for external integrations\n- Document all integration points and data flows\n- Test integrations thoroughly including failure scenarios\n \n\n",
27
+ "filename": "ServiceNow_tables_Documentation.md"
28
+ },
29
+ "diagrams": null,
30
+ "api_documentation": null,
31
+ "auto_update_config": null,
32
+ "statistics": {
33
+ "total_objects": 1,
34
+ "content_sections": 3,
35
+ "diagrams_generated": 0,
36
+ "api_endpoints_documented": 0,
37
+ "total_words": 538,
38
+ "estimated_reading_time_minutes": 3
39
+ },
40
+ "quality_metrics": {
41
+ "completeness_score": 60,
42
+ "accuracy_score": 100,
43
+ "readability_score": 25,
44
+ "coverage_percentage": 100
45
+ }
46
+ },
47
+ "timestamp": 1754057477189,
48
+ "ttl": 604800000,
49
+ "tags": [],
50
+ "metadata": {
51
+ "creator": "ServiceNowAdvancedFeaturesMCP",
52
+ "version": "1.0.0",
53
+ "description": "Cached data for key: documentation_tables_1754057477189"
54
+ }
55
+ }
@@ -0,0 +1,32 @@
1
+ # Session Memory Storage
2
+
3
+ ## Purpose
4
+ This directory stores session-based memory data, conversation history, and contextual information for development sessions using the Claude-Flow orchestration system.
5
+
6
+ ## Structure
7
+ Sessions are organized by date and session ID for easy retrieval:
8
+
9
+ ```
10
+ memory/sessions/
11
+ ├── 2024-01-10/
12
+ │ ├── session_001/
13
+ │ │ ├── metadata.json # Session metadata and configuration
14
+ │ │ ├── conversation.md # Full conversation history
15
+ │ │ ├── decisions.md # Key decisions and rationale
16
+ │ │ ├── artifacts/ # Generated files and outputs
17
+ │ │ └── coordination_state/ # Coordination system snapshots
18
+ │ └── ...
19
+ └── shared/
20
+ ├── patterns.md # Common session patterns
21
+ └── templates/ # Session template files
22
+ ```
23
+
24
+ ## Usage Guidelines
25
+ 1. **Session Isolation**: Each session gets its own directory
26
+ 2. **Metadata Completeness**: Always fill out session metadata
27
+ 3. **Conversation Logging**: Document all significant interactions
28
+ 4. **Artifact Organization**: Structure generated files clearly
29
+ 5. **State Preservation**: Snapshot coordination state regularly
30
+
31
+ ## Last Updated
32
+ 2025-08-01T08:50:14.952Z
@@ -0,0 +1,9 @@
1
+ {
2
+ "update_set_id": "01f82af583faea102a7ea130ceaad3d4",
3
+ "name": "iPhone 6 Approval Flow",
4
+ "description": "Flow to check if request is for iPhone 6 and require admin approval for such requests",
5
+ "user_story": "FLOW-001",
6
+ "created_at": "2025-07-18T12:30:12.807Z",
7
+ "state": "in_progress",
8
+ "artifacts": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "update_set_id": "27718fb983faea102a7ea130ceaad34b",
3
+ "name": "iPhone 6 Approval Flow",
4
+ "description": "Flow to require admin approval for iPhone 6 requests. Includes condition checking, approval routing, and notifications for approval/rejection.",
5
+ "user_story": "FLOW-001",
6
+ "created_at": "2025-07-18T14:17:25.143Z",
7
+ "state": "in_progress",
8
+ "artifacts": []
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "update_set_id": "412e9bf6833e22502a7ea130ceaad30a",
3
+ "name": "Auto-HTTP request tracking development (2025-07-21 18:56)",
4
+ "description": "Automatically created Update Set for HTTP request tracking development",
5
+ "created_at": "2025-07-21 18:56:29",
6
+ "state": "in progress",
7
+ "artifacts": []
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "update_set_id": "66fc5a79837aea102a7ea130ceaad3ab",
3
+ "name": "iPhone 6 Admin Approval Flow",
4
+ "description": "Flow to check if a request is for iPhone 6 and route to admin approval if true. Includes flow designer workflow, approval configurations, and notification templates.",
5
+ "user_story": "REQ-001",
6
+ "created_at": "2025-07-18T11:37:52.906Z",
7
+ "state": "in_progress",
8
+ "artifacts": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "update_set_id": "71a30ff5837eea102a7ea130ceaad37f",
3
+ "name": "iPhone 6 Approval Flow",
4
+ "description": "Flow to check for iPhone 6 requests and require admin approval. Includes flow design, approval routing, and notifications.",
5
+ "user_story": "TASK-001",
6
+ "created_at": "2025-07-18T14:26:50.683Z",
7
+ "state": "in_progress",
8
+ "artifacts": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "update_set_id": "74fba27983faea102a7ea130ceaad3bd",
3
+ "name": "iPhone 6 Approval Flow",
4
+ "description": "Implementation of approval flow for iPhone 6 requests. When a request is for an iPhone 6, it requires admin approval before proceeding.",
5
+ "user_story": "FLOW-001",
6
+ "created_at": "2025-07-18T12:43:17.671Z",
7
+ "state": "in_progress",
8
+ "artifacts": []
9
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "update_set_id": "a0b147b5837eea102a7ea130ceaad344",
3
+ "name": "iPhone 6 Testing - Flow Validation",
4
+ "description": "Testing and validation of iPhone 6 approval flow functionality including detection logic, approval routing, notifications, and edge cases",
5
+ "user_story": "TEST-001",
6
+ "created_at": "2025-07-18T14:18:18.118Z",
7
+ "state": "complete",
8
+ "artifacts": [
9
+ {
10
+ "type": "business_rule",
11
+ "sys_id": "07e18bb5837eea102a7ea130ceaad330",
12
+ "name": "iPhone 6 Test Request Creator",
13
+ "created_at": "2025-07-18T14:19:22.675Z"
14
+ },
15
+ {
16
+ "type": "script_include",
17
+ "sys_id": "89128fb5837eea102a7ea130ceaad312",
18
+ "name": "iPhone6ApprovalFlowTester",
19
+ "created_at": "2025-07-18T14:20:04.704Z"
20
+ },
21
+ {
22
+ "type": "ui_action",
23
+ "sys_id": "6b228fb5837eea102a7ea130ceaad31a",
24
+ "name": "Run iPhone 6 Flow Tests",
25
+ "created_at": "2025-07-18T14:20:27.725Z"
26
+ },
27
+ {
28
+ "type": "business_rule",
29
+ "sys_id": "ba3243f5837eea102a7ea130ceaad39d",
30
+ "name": "iPhone 6 Approval Routing Test",
31
+ "created_at": "2025-07-18T14:20:58.345Z"
32
+ },
33
+ {
34
+ "type": "notification",
35
+ "sys_id": "c94243f5837eea102a7ea130ceaad3a5",
36
+ "name": "iPhone 6 Approval Required",
37
+ "created_at": "2025-07-18T14:21:02.112Z"
38
+ },
39
+ {
40
+ "type": "notification",
41
+ "sys_id": "3a4283f5837eea102a7ea130ceaad342",
42
+ "name": "iPhone 6 Request Submitted",
43
+ "created_at": "2025-07-18T14:21:06.169Z"
44
+ },
45
+ {
46
+ "type": "script_include",
47
+ "sys_id": "117247b5837eea102a7ea130ceaad3a6",
48
+ "name": "iPhone6EdgeCaseTester",
49
+ "created_at": "2025-07-18T14:22:54.361Z"
50
+ },
51
+ {
52
+ "type": "script_include",
53
+ "sys_id": "86b283f5837eea102a7ea130ceaad33a",
54
+ "name": "iPhone6TestReportGenerator",
55
+ "created_at": "2025-07-18T14:22:57.448Z"
56
+ }
57
+ ]
58
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "update_set_id": "b13f5eb983baea102a7ea130ceaad33e",
3
+ "name": "iPhone 6 Admin Approval Flow",
4
+ "description": "Implements a flow that checks if a service catalog request is for an iPhone 6. If it is, the request requires admin approval before proceeding.",
5
+ "user_story": "REQ-001",
6
+ "created_at": "2025-07-18T11:47:39.398Z",
7
+ "state": "in_progress",
8
+ "artifacts": []
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Snow-Flow: ServiceNow Advanced Intelligence Platform - 100+ real MCP tools with AI-powered swarm orchestration. Zero Mock Data, 100% Real API Integration. Natural language interface for ServiceNow operations.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -0,0 +1,13 @@
1
+ {
2
+ "objective": "create a multi agent implementation of claude-flow for a servicenow instance. As in the way that we do exactly the same as what claude-flow already does, multi agent orchestration of claude-code, but then for SerivceNow, for example I want that this cmd: [snow-flow swarm 'create a widget for X'] a multi agent orchestration spawns with multiple agents that would create a widget in servicenow, or anything ofcourse. We should look at claude-flows github and should duplicate as best as we could to get this product: https://github.com/ruvnet/claude-flow - this would be called snow-flow as a reference to servicenow that everyone calls snow wrongly and flow as in claude-flow. Just like claude-flow this snow-flow would live in the cli, orchestrating claude-code how to build, but then it would be always pointed towards servicenow. The user should give their OAuth or basic authentication and should be able to, kist like claude-flow, use their claude-code subscription to save on token costs. Claude-flow only orchestrates, claude-code creates so its important that we keep that aspect of the tool",
3
+ "strategy": "auto",
4
+ "mode": "centralized",
5
+ "maxAgents": 5,
6
+ "timeout": 60,
7
+ "parallel": false,
8
+ "monitor": false,
9
+ "output": "json",
10
+ "outputDir": "./reports",
11
+ "timestamp": "2025-07-16T06:57:09.774Z",
12
+ "id": "swarm-auto-centralized-1752649029776"
13
+ }