snow-flow 8.41.0 → 8.41.1

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.
Files changed (2) hide show
  1. package/CLAUDE.md +11 -8
  2. package/package.json +1 -1
package/CLAUDE.md CHANGED
@@ -171,7 +171,7 @@ console.log(`✅ Created Update Set: ${updateSet.name} (sys_id: ${updateSet.sys_
171
171
 
172
172
  ```javascript
173
173
  // ✅ CORRECT - Verify first
174
- const tableCheck = await snow_execute_script_with_output({
174
+ const tableCheck = await snow_execute_script({
175
175
  script: `
176
176
  var gr = new GlideRecord('u_custom_table');
177
177
  gs.info('Table exists: ' + gr.isValid());
@@ -179,7 +179,8 @@ const tableCheck = await snow_execute_script_with_output({
179
179
  gr.query();
180
180
  gs.info('Record count: ' + gr.getRowCount());
181
181
  }
182
- `
182
+ `,
183
+ description: 'Verify custom table exists'
183
184
  });
184
185
 
185
186
  // ❌ WRONG - Assuming
@@ -574,7 +575,7 @@ function($scope) {
574
575
  | Create Client Script | `snow_create_client_script()` |
575
576
  | Query Incidents | `snow_query_incidents()` |
576
577
  | Query Any Table | `snow_query_table()` |
577
- | Execute Script | `snow_execute_script_with_output()` |
578
+ | Execute Script | `snow_execute_script()` |
578
579
  | Pull Widget to Local | `snow_pull_artifact()` |
579
580
  | Push Widget to Instance | `snow_push_artifact()` |
580
581
  | Get Instance Info | `snow_get_instance_info()` |
@@ -621,9 +622,10 @@ await snow_create_ui_page({
621
622
  **Background scripts are for VERIFICATION ONLY, not creating artifacts!**
622
623
 
623
624
  ```javascript
624
- // ❌ WRONG
625
- await snow_execute_background_script({
626
- script: `var gr = new GlideRecord('sys_script'); gr.insert();`
625
+ // ❌ WRONG - Using script execution to create artifacts
626
+ await snow_execute_script({
627
+ script: `var gr = new GlideRecord('sys_script'); gr.insert();`,
628
+ description: 'Create business rule via script'
627
629
  });
628
630
 
629
631
  // ✅ CORRECT - Use dedicated tools
@@ -667,11 +669,12 @@ data.items = items;
667
669
  "The table u_custom_routing doesn't exist because it's not standard."
668
670
 
669
671
  // ✅ CORRECT - Verify first
670
- const check = await snow_execute_script_with_output({
672
+ const check = await snow_execute_script({
671
673
  script: `
672
674
  var gr = new GlideRecord('u_custom_routing');
673
675
  gs.info('Table exists: ' + gr.isValid());
674
- `
676
+ `,
677
+ description: 'Check if custom routing table exists'
675
678
  });
676
679
  ```
677
680
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "8.41.0",
3
+ "version": "8.41.1",
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",