snow-flow 3.4.10 → 3.4.11
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/dist/cli.js +19 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -120,6 +120,8 @@ program
|
|
|
120
120
|
.option('--no-autonomous-healing', 'Disable autonomous self-healing capabilities')
|
|
121
121
|
.option('--autonomous-all', 'Force enable all autonomous systems (overrides individual --no- flags)')
|
|
122
122
|
.option('--no-autonomous-all', 'Disable all autonomous systems (overrides individual settings)')
|
|
123
|
+
.option('--auto-confirm', 'Auto-confirm background script executions (bypasses human-in-the-loop)')
|
|
124
|
+
.option('--no-auto-confirm', 'Force confirmation for all background scripts (default behavior)')
|
|
123
125
|
.option('--verbose', 'Show detailed execution information')
|
|
124
126
|
.action(async (objective, options) => {
|
|
125
127
|
// Check for flow deprecation first
|
|
@@ -140,6 +142,17 @@ program
|
|
|
140
142
|
cliLogger.info(` 🔄 Auto Rollback: ${options.autoRollback ? '✅ Yes' : '❌ No'}`);
|
|
141
143
|
cliLogger.info(` 💾 Shared Memory: ${options.sharedMemory ? '✅ Yes' : '❌ No'}`);
|
|
142
144
|
cliLogger.info(` 📊 Progress Monitoring: ${options.progressMonitoring ? '✅ Yes' : '❌ No'}`);
|
|
145
|
+
// Show script execution preferences
|
|
146
|
+
const autoConfirmEnabled = options.autoConfirm === true;
|
|
147
|
+
const noAutoConfirm = options.autoConfirm === false;
|
|
148
|
+
let scriptConfirmStatus = 'Default (Ask for confirmation)';
|
|
149
|
+
if (autoConfirmEnabled) {
|
|
150
|
+
scriptConfirmStatus = '⚠️ AUTO-CONFIRM ENABLED (No user confirmation)';
|
|
151
|
+
}
|
|
152
|
+
else if (noAutoConfirm) {
|
|
153
|
+
scriptConfirmStatus = '🔒 FORCE CONFIRM (Always ask)';
|
|
154
|
+
}
|
|
155
|
+
cliLogger.info(` 📝 Script Execution: ${scriptConfirmStatus}`);
|
|
143
156
|
// Calculate actual autonomous system states (with override logic)
|
|
144
157
|
// Commander.js converts --no-autonomous-all to autonomousAll: false
|
|
145
158
|
const noAutonomousAll = options.autonomousAll === false;
|
|
@@ -830,7 +843,8 @@ ${hasIntelligentFeatures ? `✅ **INTELLIGENT MODE ACTIVE** - The following feat
|
|
|
830
843
|
- **🚀 Auto Deploy**: ${options.autoDeploy ? '⚠️ WILL DEPLOY TO SERVICENOW AUTOMATICALLY' : '✅ Planning mode - no deployment'}
|
|
831
844
|
- **🔄 Auto Rollback**: ${options.autoRollback ? '✅ Will rollback on any failures' : '❌ No automatic rollback'}
|
|
832
845
|
- **💾 Shared Memory**: ${options.sharedMemory ? '✅ Agents share context via Memory' : '❌ Isolated agent execution'}
|
|
833
|
-
- **📊 Progress Monitoring**: ${options.progressMonitoring ? '✅ Real-time progress tracking' : '❌ No progress monitoring'}
|
|
846
|
+
- **📊 Progress Monitoring**: ${options.progressMonitoring ? '✅ Real-time progress tracking' : '❌ No progress monitoring'}
|
|
847
|
+
- **📝 Script Execution**: ${options.autoConfirm ? '⚠️ AUTO-CONFIRM - Background scripts execute without user confirmation' : options.autoConfirm === false ? '🔒 FORCE CONFIRM - Always ask for script confirmation' : '🤚 DEFAULT - Ask for confirmation on risky scripts'}` : '❌ **STANDARD MODE** - Use manual coordination patterns'}
|
|
834
848
|
|
|
835
849
|
## 🎯 ServiceNow Execution Strategy
|
|
836
850
|
|
|
@@ -838,6 +852,9 @@ ${hasIntelligentFeatures ? `✅ **INTELLIGENT MODE ACTIVE** - The following feat
|
|
|
838
852
|
|
|
839
853
|
**CRITICAL RULE**: All agents MUST attempt to use ServiceNow MCP tools first, regardless of authentication status.
|
|
840
854
|
|
|
855
|
+
### 📝 Background Script Execution Settings
|
|
856
|
+
${options.autoConfirm ? '⚠️ **AUTO-CONFIRM MODE ENABLED**: When calling snow_execute_background_script, ALWAYS add autoConfirm: true parameter to skip user confirmation.\n```javascript\nsnow_execute_background_script({\n script: "your ES5 script here",\n description: "Clear description",\n autoConfirm: true // ⚠️ User enabled auto-confirm mode\n})\n```' : options.autoConfirm === false ? '🔒 **FORCE CONFIRM MODE**: All background scripts will require user confirmation, even simple ones.' : '🤚 **DEFAULT MODE**: Background scripts will ask for user confirmation based on risk level.'}
|
|
857
|
+
|
|
841
858
|
#### Current MCP Tools Available (Snow-Flow v3.3.4)
|
|
842
859
|
${isAuthenticated ? '✅ Authentication detected - full deployment capabilities' : '⚠️ No authentication detected - MCP tools will provide specific instructions if auth needed'}
|
|
843
860
|
|
|
@@ -1677,6 +1694,7 @@ program
|
|
|
1677
1694
|
snow-flow mcp status # Check MCP server status
|
|
1678
1695
|
snow-flow swarm "create a widget for incident management"
|
|
1679
1696
|
snow-flow swarm "create approval flow" # 🔧 Auto-detects Flow Designer and uses XML!
|
|
1697
|
+
snow-flow swarm "generate 5000 incidents" --auto-confirm # 📝 Auto-confirm background scripts
|
|
1680
1698
|
snow-flow spawn widget-builder --name "IncidentWidget"
|
|
1681
1699
|
snow-flow monitor --duration 120
|
|
1682
1700
|
snow-flow memory store "project" "incident_system"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"description": "ServiceNow development framework with MCP server integration. Executes background scripts using ES5 JavaScript only (ServiceNow Rhino engine requirement). Provides 12 MCP servers for ServiceNow operations including widget deployment with coherence validation, table operations, script execution, and system property management.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|