snow-flow 2.6.1 → 2.6.3

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.
@@ -2117,11 +2117,27 @@ class ServiceNowDevelopmentAssistantMCP {
2117
2117
  table: args.table,
2118
2118
  ...artifact
2119
2119
  };
2120
+ // Don't wait for memory indexing - do it in background
2121
+ // This might be causing the timeout
2122
+ setImmediate(() => {
2123
+ this.intelligentlyIndex(artifact).then(indexed => {
2124
+ this.storeInMemory(indexed).catch(err => {
2125
+ this.logger.warn('Failed to store artifact in memory:', err);
2126
+ });
2127
+ });
2128
+ });
2129
+ // Check response size to avoid MCP runtime timeouts
2130
+ const jsonString = JSON.stringify(formattedArtifact);
2131
+ const sizeInKB = Buffer.byteLength(jsonString) / 1024;
2132
+ // If response is large, use compact format
2133
+ const formattedJson = sizeInKB > 50 ?
2134
+ JSON.stringify(formattedArtifact) : // Compact for large responses
2135
+ JSON.stringify(formattedArtifact, null, 2); // Pretty print for small responses
2120
2136
  return {
2121
2137
  content: [
2122
2138
  {
2123
2139
  type: 'text',
2124
- text: `āœ… Found artifact by sys_id!\n\nšŸŽÆ **${formattedArtifact.name}**\nšŸ†” sys_id: ${args.sys_id}\nšŸ“Š Table: ${args.table}\n\n**All Fields:**\n${JSON.stringify(formattedArtifact, null, 2)}`,
2140
+ text: `āœ… Found artifact by sys_id!\n\nšŸŽÆ **${formattedArtifact.name}**\nšŸ†” sys_id: ${args.sys_id}\nšŸ“Š Table: ${args.table}\nšŸ“ Size: ${sizeInKB.toFixed(1)}KB\n\n**All Fields:**\n${formattedJson}`,
2125
2141
  },
2126
2142
  ],
2127
2143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
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",