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 +16 -14
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -22
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
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
|
|
287
|
-
type: '
|
|
288
|
-
|
|
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.
|
|
459
|
-
await
|
|
460
|
-
type: '
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
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 | `
|
|
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
|
|
1
|
+
export declare const VERSION = "8.37.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
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
|
-
//
|
|
5
|
-
|
|
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
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,
|
|
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.
|
|
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",
|