snow-flow 3.5.12 → 3.5.13

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.
@@ -318,7 +318,14 @@ class ArtifactLocalSync {
318
318
  try {
319
319
  console.log(`\nšŸ“¤ Updating ${config.displayName} in ServiceNow...`);
320
320
  const timeoutConfig = (0, mcp_timeout_config_js_1.getMCPTimeoutConfig)();
321
- await (0, mcp_timeout_config_js_1.withMCPTimeout)(this.client.updateRecord(config.tableName, sys_id, updates), timeoutConfig.pushToolTimeout, `Update ${config.displayName} ${sys_id}`);
321
+ const updateResult = await (0, mcp_timeout_config_js_1.withMCPTimeout)(this.client.updateRecord(config.tableName, sys_id, updates), timeoutConfig.pushToolTimeout, `Update ${config.displayName} ${sys_id}`);
322
+ // CRITICAL FIX: Check if the API call was actually successful
323
+ if (!updateResult || !updateResult.success) {
324
+ const errorMsg = updateResult?.error || 'Unknown API error';
325
+ console.error(`āŒ ServiceNow API returned failure: ${errorMsg}`);
326
+ artifact.syncStatus = 'pending_upload';
327
+ return false;
328
+ }
322
329
  artifact.syncStatus = 'synced';
323
330
  artifact.lastSyncedAt = new Date();
324
331
  console.log(`āœ… ${config.displayName} successfully updated in ServiceNow!`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "3.5.12",
4
- "description": "ServiceNow development framework with MCP server integration and balanced timeout protection. Features intelligent timeout configuration for long operations while preventing Claude API timeouts. Debug logging cleaned up for production use. Executes background scripts using ES5 JavaScript only (ServiceNow Rhino engine requirement). Provides 18 MCP servers including local development sync for editing ServiceNow artifacts with Claude Code native tools, widget deployment with coherence validation, table operations, script execution, machine learning, advanced features, and comprehensive platform management.",
3
+ "version": "3.5.13",
4
+ "description": "ServiceNow development framework with MCP server integration and reliable push operations. Fixed false positive success reporting in artifact push - now properly validates API responses. Features intelligent timeout configuration for long operations while preventing Claude API timeouts. Debug logging cleaned up for production use. Executes background scripts using ES5 JavaScript only (ServiceNow Rhino engine requirement). Provides 18 MCP servers including local development sync for editing ServiceNow artifacts with Claude Code native tools, widget deployment with coherence validation, table operations, script execution, machine learning, advanced features, and comprehensive platform management.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
7
7
  "bin": {