snow-flow 8.37.0 → 8.37.2

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.
package/CLAUDE.md CHANGED
@@ -283,9 +283,13 @@ const updateSet = await snow_update_set_manage({
283
283
  // Changes will be automatically tracked in this Update Set
284
284
 
285
285
  // STEP 3: NOW DEVELOP (all changes auto-tracked in Update Set)
286
- await snow_deploy({
287
- type: 'widget',
288
- config: { name: 'incident_dashboard', ... }
286
+ await snow_create_artifact({
287
+ type: 'sp_widget',
288
+ name: 'incident_dashboard',
289
+ title: 'Incident Dashboard',
290
+ template: '<div>{{data.message}}</div>',
291
+ server_script: 'data.message = "Hello World";', // ES5 only!
292
+ client_script: 'function($scope) { var c = this; }'
289
293
  });
290
294
 
291
295
  await snow_create_business_rule({
@@ -455,16 +459,14 @@ Is this a development task? (Creating/modifying ServiceNow artifacts)
455
459
  // 1. UPDATE SET FIRST
456
460
  await snow_update_set_manage({ action: 'create', name: "Feature: X" });
457
461
 
458
- // 2. DEPLOY WIDGET
459
- await snow_deploy({
460
- type: 'widget',
461
- config: {
462
- name: 'incident_dashboard',
463
- title: 'Incident Dashboard',
464
- template: '<div>{{data.message}}</div>',
465
- server_script: 'data.message = "Hello World";',
466
- client_script: 'function($scope) { var c = this; }'
467
- }
462
+ // 2. CREATE WIDGET
463
+ await snow_create_artifact({
464
+ type: 'sp_widget',
465
+ name: 'incident_dashboard',
466
+ title: 'Incident Dashboard',
467
+ template: '<div>{{data.message}}</div>',
468
+ server_script: 'data.message = "Hello World";', // ES5 only!
469
+ client_script: 'function($scope) { var c = this; }'
468
470
  });
469
471
 
470
472
  // 3. VERIFY
@@ -795,7 +797,7 @@ await snow_update_set_manage({ action: 'complete', update_set_id: us.sys_id });
795
797
  | User Want | MCP Tool | Notes |
796
798
  |-----------|----------|-------|
797
799
  | Create workspace | `snow_create_complete_workspace` | One call, handles all steps |
798
- | Create widget | `snow_deploy({ type: 'widget' })` | After Update Set |
800
+ | Create widget | `snow_create_artifact({ type: 'sp_widget' })` | After Update Set |
799
801
  | Fix widget | `snow_pull_artifact` | Local sync, NOT query! |
800
802
  | Create business rule | `snow_create_business_rule` | ES5 only! |
801
803
  | Query incidents | `snow_query_incidents` | Specialized tool |
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION: string;
1
+ export declare const VERSION = "8.37.2";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,OAAO,QAAe,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/dist/version.js CHANGED
@@ -1,26 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- // Dynamically read version from package.json
5
- // This ensures the version is always up-to-date without manual sync
6
- const fs_1 = require("fs");
7
- const path_1 = require("path");
8
- let cachedVersion = null;
9
- function getVersion() {
10
- if (cachedVersion)
11
- return cachedVersion;
12
- try {
13
- // In CommonJS, __dirname is available
14
- const packageJsonPath = (0, path_1.join)(__dirname, '..', 'package.json');
15
- const packageJson = JSON.parse((0, fs_1.readFileSync)(packageJsonPath, 'utf-8'));
16
- cachedVersion = packageJson.version;
17
- return cachedVersion;
18
- }
19
- catch (error) {
20
- console.error('Failed to read version from package.json:', error);
21
- return '0.0.0'; // Fallback
22
- }
23
- }
24
- // Export as const for backward compatibility
25
- exports.VERSION = getVersion();
4
+ // Auto-generated by npm version command
5
+ exports.VERSION = '8.37.2';
26
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,oEAAoE;AACpE,2BAAkC;AAClC,+BAA4B;AAE5B,IAAI,aAAa,GAAkB,IAAI,CAAC;AAExC,SAAS,UAAU;IACjB,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IAExC,IAAI,CAAC;QACH,sCAAsC;QACtC,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;QACvE,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC;QACpC,OAAO,aAAa,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,2CAA2C,EAAE,KAAK,CAAC,CAAC;QAClE,OAAO,OAAO,CAAC,CAAC,WAAW;IAC7B,CAAC;AACH,CAAC;AAED,6CAA6C;AAChC,QAAA,OAAO,GAAG,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,wCAAwC;AAC3B,QAAA,OAAO,GAAG,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "8.37.0",
3
+ "version": "8.37.2",
4
4
  "description": "ServiceNow development with SnowCode - 75+ LLM providers (Claude, GPT, Gemini, Llama, Mistral, DeepSeek, Groq, Ollama) • 395 Optimized Tools • 2 MCP Servers • Multi-agent orchestration • Use ANY AI coding assistant (ML tools moved to Enterprise)",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",