snow-flow 8.40.1 → 8.41.0
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 +62 -20
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.d.ts +2 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.js +7 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.js.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.d.ts +14 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.js +220 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.js +236 -0
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts +1 -3
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js +5 -10
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.d.ts +7 -5
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.js +195 -34
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.js.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_execute_script.d.ts +20 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_execute_script.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_execute_script.js +474 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_execute_script.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.js +104 -8
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.js.map +1 -1
- package/dist/templates/agents-md-template.d.ts +1 -1
- package/dist/templates/agents-md-template.d.ts.map +1 -1
- package/dist/templates/agents-md-template.js +4 -4
- package/dist/templates/claude-md-template.d.ts +1 -1
- package/dist/templates/claude-md-template.d.ts.map +1 -1
- package/dist/templates/claude-md-template.js +17 -12
- package/dist/templates/claude-md-template.js.map +1 -1
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ console.log(\`✅ Created Update Set: \${updateSet.name} (sys_id: \${updateSet.s
|
|
|
91
91
|
**Always verify before assuming:**
|
|
92
92
|
\`\`\`javascript
|
|
93
93
|
// ✅ CORRECT - Verify first
|
|
94
|
-
const tableCheck = await
|
|
94
|
+
const tableCheck = await snow_execute_script({
|
|
95
95
|
script: \`
|
|
96
96
|
var gr = new GlideRecord('u_custom_incident_routing');
|
|
97
97
|
gs.info('Table exists: ' + gr.isValid());
|
|
@@ -99,7 +99,8 @@ const tableCheck = await snow_execute_script_with_output({
|
|
|
99
99
|
gr.query();
|
|
100
100
|
gs.info('Record count: ' + gr.getRowCount());
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
\`,
|
|
103
|
+
description: 'Verify custom table exists'
|
|
103
104
|
});
|
|
104
105
|
// Now you know if the table exists and can proceed accordingly
|
|
105
106
|
|
|
@@ -384,7 +385,7 @@ Examples:
|
|
|
384
385
|
|
|
385
386
|
2. **High-level tool > Low-level script**
|
|
386
387
|
- Use \`snow_create_complete_workspace\` instead of manual GlideRecord operations
|
|
387
|
-
- Use dedicated tools instead of \`
|
|
388
|
+
- Use dedicated tools instead of \`snow_execute_script\` when possible
|
|
388
389
|
|
|
389
390
|
3. **Merged tool > Individual actions** (v8.2.0+)
|
|
390
391
|
- Use \`snow_update_set_manage({ action: 'create' })\` instead of searching for \`snow_update_set_create\`
|
|
@@ -484,7 +485,7 @@ await snow_create_business_rule({
|
|
|
484
485
|
});
|
|
485
486
|
|
|
486
487
|
// 3. TEST
|
|
487
|
-
await
|
|
488
|
+
await snow_execute_script({
|
|
488
489
|
script: \`
|
|
489
490
|
var gr = new GlideRecord('sys_script');
|
|
490
491
|
gr.addQuery('name', 'Auto-assign incidents');
|
|
@@ -492,7 +493,8 @@ await snow_execute_script_with_output({
|
|
|
492
493
|
if (gr.next()) {
|
|
493
494
|
gs.info('Business rule created: ' + gr.sys_id);
|
|
494
495
|
}
|
|
495
|
-
|
|
496
|
+
\`,
|
|
497
|
+
description: 'Verify business rule creation'
|
|
496
498
|
});
|
|
497
499
|
|
|
498
500
|
// 4. COMPLETE UPDATE SET
|
|
@@ -640,14 +642,15 @@ await snow_update_set_manage({
|
|
|
640
642
|
**Background scripts are for VERIFICATION ONLY, not development!**
|
|
641
643
|
|
|
642
644
|
\`\`\`javascript
|
|
643
|
-
// ❌ WRONG: Using
|
|
644
|
-
await
|
|
645
|
+
// ❌ WRONG: Using script execution to create workspace
|
|
646
|
+
await snow_execute_script({
|
|
645
647
|
script: \`
|
|
646
648
|
var gr = new GlideRecord('sys_ux_app_config');
|
|
647
649
|
gr.initialize();
|
|
648
650
|
gr.name = 'IT Support Workspace';
|
|
649
651
|
gr.insert();
|
|
650
|
-
|
|
652
|
+
\`,
|
|
653
|
+
description: 'Create workspace via script'
|
|
651
654
|
});
|
|
652
655
|
|
|
653
656
|
// ✅ CORRECT: Use dedicated MCP tool
|
|
@@ -658,10 +661,11 @@ await snow_create_complete_workspace({
|
|
|
658
661
|
});
|
|
659
662
|
\`\`\`
|
|
660
663
|
|
|
661
|
-
**When to use
|
|
664
|
+
**When to use snow_execute_script:**
|
|
662
665
|
- ✅ Testing if a table exists
|
|
663
666
|
- ✅ Verifying a property value
|
|
664
667
|
- ✅ Checking data before operations
|
|
668
|
+
- ✅ Debugging and diagnostics
|
|
665
669
|
- ❌ Creating/updating artifacts (use dedicated tools!)
|
|
666
670
|
|
|
667
671
|
### Anti-Pattern 3: No Mock Data, No Placeholders
|
|
@@ -706,11 +710,12 @@ data.items = items;
|
|
|
706
710
|
"The table u_custom_routing doesn't exist because it's not standard."
|
|
707
711
|
|
|
708
712
|
// ✅ CORRECT: Verify first
|
|
709
|
-
const tableCheck = await
|
|
713
|
+
const tableCheck = await snow_execute_script({
|
|
710
714
|
script: \`
|
|
711
715
|
var gr = new GlideRecord('u_custom_routing');
|
|
712
716
|
gs.info('Table exists: ' + gr.isValid());
|
|
713
|
-
|
|
717
|
+
\`,
|
|
718
|
+
description: 'Check if custom routing table exists'
|
|
714
719
|
});
|
|
715
720
|
|
|
716
721
|
if (tableCheck.includes('Table exists: true')) {
|
|
@@ -755,7 +760,7 @@ await snow_update_set_manage({ action: 'complete', update_set_id: us.sys_id });
|
|
|
755
760
|
| Create business rule | \`snow_create_business_rule\` | ES5 only! |
|
|
756
761
|
| Query incidents | \`snow_query_incidents\` | Specialized tool |
|
|
757
762
|
| Create UI Builder page | \`snow_create_uib_page\` | Modern UI framework |
|
|
758
|
-
| Test script | \`
|
|
763
|
+
| Test script | \`snow_execute_script\` | Verification & debugging |
|
|
759
764
|
| Get property | \`snow_property_manage({ action: 'get' })\` | System config |
|
|
760
765
|
| Create change | \`snow_change_manage({ action: 'create' })\` | ITSM workflow |
|
|
761
766
|
| View system logs | \`snow_get_logs\` | Filter by level, source |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md-template.js","sourceRoot":"","sources":["../../src/templates/claude-md-template.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG
|
|
1
|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@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.41.0",
|
|
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",
|