snow-flow 1.1.71 → 1.1.73
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 +65 -20
- package/dist/mcp/servicenow-deployment-mcp.js +507 -8
- package/dist/mcp/servicenow-deployment-mcp.js.map +1 -1
- package/dist/mcp/servicenow-update-set-mcp.js +112 -16
- package/dist/mcp/servicenow-update-set-mcp.js.map +1 -1
- package/dist/version.d.ts +11 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +61 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -30,6 +30,37 @@
|
|
|
30
30
|
- CHECK current update set before starting work
|
|
31
31
|
- COMPLETE update sets before moving between environments
|
|
32
32
|
|
|
33
|
+
## 🎯 Simplified Deployment API (v1.1.73+)
|
|
34
|
+
|
|
35
|
+
### One Tool for All Deployments
|
|
36
|
+
**NEW**: All deployment operations now use the unified `snow_deploy` tool instead of multiple separate tools:
|
|
37
|
+
|
|
38
|
+
```javascript
|
|
39
|
+
// ✅ SIMPLIFIED API - One tool for everything
|
|
40
|
+
snow_deploy({
|
|
41
|
+
type: "widget", // widget, flow, application, script, batch
|
|
42
|
+
config: { ... }, // Configuration for widgets/scripts
|
|
43
|
+
instruction: "...", // Natural language for flows
|
|
44
|
+
artifacts: [...], // For batch deployments
|
|
45
|
+
dry_run: false, // Preview mode
|
|
46
|
+
parallel: true, // Batch optimization
|
|
47
|
+
transaction_mode: true // All-or-nothing deployment
|
|
48
|
+
});
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Backward Compatibility
|
|
52
|
+
All old deployment tools still work but show deprecation warnings:
|
|
53
|
+
- `snow_deploy_widget()` → redirects to `snow_deploy({type: "widget"})`
|
|
54
|
+
- `snow_deploy_flow()` → redirects to `snow_deploy({type: "flow"})`
|
|
55
|
+
- `snow_deploy_application()` → redirects to `snow_deploy({type: "application"})`
|
|
56
|
+
- `snow_bulk_deploy()` → redirects to `snow_deploy({type: "batch"})`
|
|
57
|
+
|
|
58
|
+
### Benefits
|
|
59
|
+
- **75% fewer deployment commands** - One tool instead of 4+
|
|
60
|
+
- **Consistent interface** - Same parameters across all artifact types
|
|
61
|
+
- **Automatic fallbacks** - Built-in resilience and error recovery
|
|
62
|
+
- **Better error messages** - Unified error handling and guidance
|
|
63
|
+
|
|
33
64
|
## 📋 Essential MCP Tool Patterns
|
|
34
65
|
|
|
35
66
|
### Batch Operations for Maximum Efficiency
|
|
@@ -137,17 +168,23 @@ snow_link_catalog_to_flow({
|
|
|
137
168
|
|
|
138
169
|
### Widget Development Tools
|
|
139
170
|
```javascript
|
|
140
|
-
// Deploy widgets with automatic validation
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
171
|
+
// Deploy widgets with automatic validation (SIMPLIFIED API v1.1.73+)
|
|
172
|
+
snow_deploy({
|
|
173
|
+
type: "widget",
|
|
174
|
+
config: {
|
|
175
|
+
name: "incident_dashboard",
|
|
176
|
+
title: "Incident Dashboard",
|
|
177
|
+
template: htmlContent,
|
|
178
|
+
css: cssContent,
|
|
179
|
+
client_script: clientJS,
|
|
180
|
+
server_script: serverJS,
|
|
181
|
+
demo_data: { incidents: [...] }
|
|
182
|
+
}
|
|
149
183
|
});
|
|
150
184
|
|
|
185
|
+
// OLD API (deprecated but still works with automatic redirection)
|
|
186
|
+
// snow_deploy_widget() - shows deprecation warning, redirects to snow_deploy
|
|
187
|
+
|
|
151
188
|
// Preview and test widgets
|
|
152
189
|
snow_preview_widget({
|
|
153
190
|
widget_id: "incident_dashboard",
|
|
@@ -167,17 +204,21 @@ snow_widget_test({
|
|
|
167
204
|
|
|
168
205
|
### Bulk Operations
|
|
169
206
|
```javascript
|
|
170
|
-
// Deploy multiple artifacts at once
|
|
171
|
-
|
|
207
|
+
// Deploy multiple artifacts at once (SIMPLIFIED API v1.1.73+)
|
|
208
|
+
snow_deploy({
|
|
209
|
+
type: "batch",
|
|
172
210
|
artifacts: [
|
|
173
|
-
{ type: "widget",
|
|
174
|
-
{ type: "flow",
|
|
175
|
-
{ type: "script",
|
|
211
|
+
{ type: "widget", config: widgetData },
|
|
212
|
+
{ type: "flow", instruction: "approval flow" },
|
|
213
|
+
{ type: "script", config: scriptData }
|
|
176
214
|
],
|
|
177
215
|
transaction_mode: true, // All or nothing
|
|
178
|
-
parallel: true, // Deploy simultaneously
|
|
216
|
+
parallel: true, // Deploy simultaneously
|
|
179
217
|
dry_run: false
|
|
180
218
|
});
|
|
219
|
+
|
|
220
|
+
// OLD API (deprecated but still works with automatic redirection)
|
|
221
|
+
// snow_bulk_deploy() - shows deprecation warning, redirects to snow_deploy
|
|
181
222
|
```
|
|
182
223
|
|
|
183
224
|
### Intelligent Analysis
|
|
@@ -210,16 +251,20 @@ snow_pattern_analysis({
|
|
|
210
251
|
|
|
211
252
|
Example:
|
|
212
253
|
```javascript
|
|
213
|
-
//
|
|
254
|
+
// BEST - Natural language with simplified deployment (v1.1.73+)
|
|
214
255
|
snow_create_flow({
|
|
215
256
|
instruction: "create approval flow for user provisioning",
|
|
216
257
|
deploy_immediately: true
|
|
217
258
|
})
|
|
218
259
|
|
|
219
|
-
//
|
|
220
|
-
|
|
221
|
-
|
|
260
|
+
// ALTERNATIVE - Direct deployment with simplified API
|
|
261
|
+
snow_deploy({
|
|
262
|
+
type: "flow",
|
|
263
|
+
instruction: "approval flow for user provisioning"
|
|
222
264
|
})
|
|
265
|
+
|
|
266
|
+
// OLD API (deprecated but still works with automatic redirection)
|
|
267
|
+
// snow_deploy_flow() - shows deprecation warning, redirects to snow_deploy
|
|
223
268
|
```
|
|
224
269
|
|
|
225
270
|
## ⚡ Performance Optimization
|
|
@@ -251,7 +296,7 @@ MultiRead([
|
|
|
251
296
|
2. **Planning Phase**: Use TodoWrite to plan all tasks
|
|
252
297
|
3. **Development Phase**: Launch agents concurrently
|
|
253
298
|
4. **Testing Phase**: Use mock testing tools
|
|
254
|
-
5. **Deployment Phase**: Use
|
|
299
|
+
5. **Deployment Phase**: Use simplified snow_deploy with validation
|
|
255
300
|
|
|
256
301
|
### Error Recovery Patterns
|
|
257
302
|
```javascript
|