snow-flow 2.6.8 → 2.6.9
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.
|
@@ -511,11 +511,12 @@ class ServiceNowMachineLearningMCP {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
// Use custom TensorFlow.js neural network
|
|
514
|
-
this.logger.info(
|
|
514
|
+
this.logger.info(`Training custom LSTM neural network for incident classification with ${sample_size} samples...`);
|
|
515
515
|
// Fetch historical incidents
|
|
516
516
|
const incidents = await this.fetchIncidentData(sample_size);
|
|
517
|
+
this.logger.info(`Retrieved ${incidents.length} incidents from ServiceNow`);
|
|
517
518
|
if (incidents.length < 100) {
|
|
518
|
-
throw new Error(
|
|
519
|
+
throw new Error(`Insufficient data for training (need at least 100 incidents, got ${incidents.length})`);
|
|
519
520
|
}
|
|
520
521
|
// Prepare training data
|
|
521
522
|
const { features, labels, tokenizer, categories } = await this.prepareIncidentData(incidents);
|
|
@@ -1002,12 +1003,15 @@ class ServiceNowMachineLearningMCP {
|
|
|
1002
1003
|
// Helper methods
|
|
1003
1004
|
async fetchIncidentData(limit) {
|
|
1004
1005
|
// Fetch real incidents from ServiceNow - no ML API needed!
|
|
1005
|
-
|
|
1006
|
+
// Include both active and resolved incidents for better training data
|
|
1007
|
+
// Order by sys_created_on DESC to get most recent incidents
|
|
1008
|
+
const query = 'ORDERBYDESCsys_created_on'; // Get most recent incidents, both active and resolved
|
|
1006
1009
|
// Use searchRecords for proper authentication handling
|
|
1007
1010
|
const response = await this.client.searchRecords('incident', query, limit);
|
|
1008
1011
|
if (!response.success || !response.data?.result) {
|
|
1009
1012
|
throw new Error('Failed to fetch incident data. Ensure you have read access to the incident table.');
|
|
1010
1013
|
}
|
|
1014
|
+
this.logger.info(`Fetched ${response.data.result.length} incidents for ML training (requested: ${limit})`);
|
|
1011
1015
|
return response.data.result.map((inc) => ({
|
|
1012
1016
|
short_description: inc.short_description || '',
|
|
1013
1017
|
description: inc.description || '',
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -14,6 +14,20 @@ exports.VERSION_INFO = {
|
|
|
14
14
|
name: 'Snow-Flow',
|
|
15
15
|
description: 'ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development',
|
|
16
16
|
features: {
|
|
17
|
+
'2.6.9': [
|
|
18
|
+
'🔍 ML QUERY FIX: Removed restrictive filters limiting training data to only resolved incidents',
|
|
19
|
+
'📊 ALL INCIDENTS: ML training now includes both active AND resolved incidents',
|
|
20
|
+
'📈 MORE DATA: Significantly increased available training data for better ML models',
|
|
21
|
+
'🚀 BETTER LOGS: Added detailed logging for ML data fetching and training process',
|
|
22
|
+
'✅ SORTED DATA: Fetches most recent incidents first (ORDER BY sys_created_on DESC)',
|
|
23
|
+
],
|
|
24
|
+
'2.6.8': [
|
|
25
|
+
'🔧 ML API FIX: Fixed incident data fetching using searchRecords instead of makeRequest',
|
|
26
|
+
'✅ AUTHENTICATION: Proper authentication handling for ML training data retrieval',
|
|
27
|
+
'📊 CONSISTENT API: ML MCP now uses same methods as operations MCP for data access',
|
|
28
|
+
'🚀 TRAINING WORKS: ml_train_incident_classifier can now fetch incidents correctly',
|
|
29
|
+
'🤖 BETTER ERRORS: Clear error messages when permissions are missing',
|
|
30
|
+
],
|
|
17
31
|
'2.6.7': [
|
|
18
32
|
'🤖 ML HYBRID MODE: Custom neural networks work WITHOUT PA/PI plugins!',
|
|
19
33
|
'✅ SMART FALLBACK: If PI available, uses it for 95%+ accuracy, else TensorFlow.js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.9",
|
|
4
4
|
"description": "Snow-Flow: ServiceNow Advanced Intelligence Platform - 100+ real MCP tools with AI-powered swarm orchestration and neural networks. Dynamic task categorization using AI. Machine learning for incident classification, change risk prediction, and anomaly detection. Zero Mock Data, 100% Real API Integration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|