snow-flow 2.0.0 → 2.0.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.
@@ -1,126 +0,0 @@
1
- #!/bin/bash
2
- # Snow-Flow v1.4.39 Test Commands - Shell-Ready Format
3
- # Run each command individually or source this file
4
-
5
- echo "šŸ Testing Snow-Flow Native AI Swarm Orchestration (14 tools)"
6
- mcp__snow-flow__swarm_init --topology hierarchical --maxAgents 5
7
- mcp__snow-flow__agent_spawn --type researcher --name "Research Agent"
8
- mcp__snow-flow__task_orchestrate --task "Analyze ServiceNow best practices"
9
- mcp__snow-flow__swarm_status
10
- mcp__snow-flow__memory_usage --action store --key test_result --value success
11
- mcp__snow-flow__memory_search --pattern test --limit 10
12
- mcp__snow-flow__neural_train --pattern_type optimization --training_data "sample data"
13
- mcp__snow-flow__neural_patterns --action analyze
14
- mcp__snow-flow__performance_report --format summary
15
- mcp__snow-flow__neural_status --modelId default-model
16
- mcp__snow-flow__token_usage --operation all --timeframe 24h
17
- mcp__snow-flow__memory_usage --action retrieve --key test_result
18
- mcp__snow-flow__memory_usage --action list --namespace default
19
- mcp__snow-flow__memory_usage --action delete --key test_result
20
-
21
- echo "šŸ”„ Testing Update Set Management (9 tools)"
22
- mcp__servicenow-update-set__snow_update_set_create --name "TEST-139: v1.4.39 Testing" --description "Testing all tools"
23
- mcp__servicenow-update-set__snow_update_set_current
24
- mcp__servicenow-update-set__snow_update_set_list --limit 5
25
- mcp__servicenow-update-set__snow_update_set_add_artifact --type widget --sys_id test123 --name "Test Widget"
26
- mcp__servicenow-update-set__snow_update_set_preview
27
- mcp__servicenow-update-set__snow_update_set_complete --notes "Testing completed"
28
- mcp__servicenow-update-set__snow_update_set_export --output_path "./update_set_export.xml"
29
- mcp__servicenow-update-set__snow_ensure_active_update_set --context "testing v1.4.39"
30
- mcp__servicenow-deployment__snow_smart_update_set --detect_context true
31
-
32
- echo "šŸš€ Testing Deployment Tools (10 tools)"
33
- mcp__servicenow-deployment__snow_auth_diagnostics
34
- mcp__servicenow-deployment__snow_deployment_status --limit 5
35
- mcp__servicenow-deployment__snow_validate_deployment --type widget --artifact {}
36
- mcp__servicenow-deployment__snow_export_artifact --type widget --sys_id test123
37
- mcp__servicenow-deployment__snow_validate_sysid --sys_id test123 --table sp_widget
38
- mcp__servicenow-deployment__snow_deployment_debug
39
- mcp__servicenow-deployment__snow_preview_widget --template "<div>Test</div>"
40
- mcp__servicenow-deployment__snow_widget_test --sys_id test123
41
- mcp__servicenow-deployment__snow_deploy --type widget --instruction "Create test widget"
42
- mcp__servicenow-deployment__snow_create_solution_package --name "Test Package" --artifacts []
43
-
44
- echo "šŸ“Š Testing ServiceNow Operations (20 tools)"
45
- mcp__servicenow-operations__snow_query_incidents --query "priority=1" --limit 5
46
- mcp__servicenow-operations__snow_analyze_incident --incident_id INC0000001
47
- mcp__servicenow-operations__snow_query_requests --query "active=true" --limit 5
48
- mcp__servicenow-operations__snow_query_problems --query "active=true" --limit 5
49
- mcp__servicenow-operations__snow_cmdb_search --query server --ci_type server
50
- mcp__servicenow-operations__snow_user_lookup --identifier admin
51
- mcp__servicenow-operations__snow_operational_metrics --timeframe week
52
- mcp__servicenow-operations__snow_pattern__analysis --analysis_type incident_patterns
53
- mcp__servicenow-operations__snow_knowledge_search --query "network issues"
54
- mcp__servicenow-operations__snow_predictive__analysis --prediction_type incident_volume
55
- mcp__servicenow-operations__snow_catalog_item_manager --action list
56
- mcp__servicenow-operations__snow_catalog_item_search --query iPhone
57
- mcp__servicenow-operations__snow_cleanup_test_artifacts --dry_run true
58
- mcp__servicenow-operations__snow_create_user_group --name "Test Group v139"
59
- mcp__servicenow-operations__snow_create_user --user_name test.user.v139 --first_name Test --last_name User --email test@example.com
60
- mcp__servicenow-operations__snow_assign_user_to_group --user test.user.v139 --group "Test Group v139"
61
- mcp__servicenow-operations__snow_list_group_members --group "Test Group v139"
62
- mcp__servicenow-operations__snow_auto_resolve_incident --incident_id INC0000001 --dry_run true
63
- mcp__servicenow-operations__snow_remove_user_from_group --user test.user.v139 --group "Test Group v139"
64
- mcp__servicenow-operations__snow_catalog_item_manager --action create --name "Test Item v139"
65
-
66
- echo "šŸ”§ Testing Platform Development (9 tools)"
67
- mcp__servicenow-platform-development__snow_discover_platform_tables --category all
68
- mcp__servicenow-platform-development__snow_discover_table_fields --tableName incident
69
- mcp__servicenow-platform-development__snow_table_schema_discovery --tableName incident
70
- mcp__servicenow-platform-development__snow_create_ui_page --name test_page_v139 --title "Test Page" --html "<h1>Test</h1>"
71
- mcp__servicenow-platform-development__snow_create_script_include --name TestUtils139 --script "var TestUtils139 = Class.create();"
72
- mcp__servicenow-platform-development__snow_create_business_rule --name "Test Rule v139" --tableName incident --script "// test" --when before
73
- mcp__servicenow-platform-development__snow_create_client_script --name "Test Client v139" --tableName incident --script "// test" --type onLoad
74
- mcp__servicenow-platform-development__snow_create_ui_policy --name "Test Policy v139" --tableName incident --condition "priority=1"
75
- mcp__servicenow-platform-development__snow_create_ui_action --name "Test Action v139" --tableName incident --script "// test"
76
-
77
- echo "šŸ”— Testing Integration (10 tools)"
78
- mcp__servicenow-integration__snow_discover_integration_endpoints --type all
79
- mcp__servicenow-integration__snow_discover_data_sources
80
- mcp__servicenow-integration__snow_create_rest_message --name "Test REST v139" --endpoint "https://api.example.com"
81
- mcp__servicenow-integration__snow_create_rest_method --restMessageName "Test REST v139" --methodName GET --httpMethod GET
82
- mcp__servicenow-integration__snow_create_transform_map --name "Test Transform v139" --sourceTable import_set --targetTable incident
83
- mcp__servicenow-integration__snow_create_field_map --transformMapName "Test Transform v139" --sourceField priority --targetField priority
84
- mcp__servicenow-integration__snow_create_import_set --name test_import_v139 --label "Test Import"
85
- mcp__servicenow-integration__snow_create_web_service --name "Test WS v139" --wsdlUrl "https://example.com/wsdl"
86
- mcp__servicenow-integration__snow_create_email_config --name "Test Email v139" --serverType SMTP --serverName smtp.example.com
87
- mcp__servicenow-integration__snow_test_integration --endpointName "Test REST v139"
88
-
89
- echo "šŸ“ˆ Testing Reporting & Analytics (11 tools)"
90
- mcp__servicenow-reporting-analytics__snow_discover_reporting_tables
91
- mcp__servicenow-reporting-analytics__snow_discover_report_fields --table incident
92
- mcp__servicenow-reporting-analytics__snow_analyze_data_quality --table incident
93
- mcp__servicenow-reporting-analytics__snow_create_report --name "Test Report v139" --table incident --fields '["number", "priority"]'
94
- mcp__servicenow-reporting-analytics__snow_create_dashboard --name "Test Dashboard v139" --widgets []
95
- mcp__servicenow-reporting-analytics__snow_create_kpi --name "Test KPI v139" --table incident --metric count --aggregation count
96
- mcp__servicenow-reporting-analytics__snow_create_data_visualization --name "Test Viz v139" --type bar --dataSource incident
97
- mcp__servicenow-reporting-analytics__snow_create_performance_analytics --name "Test Analytics v139" --dataSource incident --metrics '["count"]'
98
- mcp__servicenow-reporting-analytics__snow_create_scheduled_report --reportName "Test Report v139" --schedule daily --recipients '["test@example.com"]'
99
- mcp__servicenow-reporting-analytics__snow_generate_insights --table incident
100
- mcp__servicenow-reporting-analytics__snow_export_report_data --reportName "Test Report v139" --format CSV
101
-
102
- echo "āš™ļø Testing Automation (10 tools)"
103
- mcp__servicenow-automation__snow_discover_schedules
104
- mcp__servicenow-automation__snow_discover_events
105
- mcp__servicenow-automation__snow_discover_automation_jobs
106
- mcp__servicenow-automation__snow_create_scheduled_job --name "Test Job v139" --script "gs.log('test');" --schedule daily
107
- mcp__servicenow-automation__snow_create_notification --name "Test Notif v139" --table incident --when inserted --recipients admin --subject Test --message Test
108
- mcp__servicenow-automation__snow_create_event_rule --name "Test Event v139" --eventName incident.insert --script "// test"
109
- mcp__servicenow-automation__snow_create_sla_definition --name "Test SLA v139" --table incident --condition "priority=1" --duration "1 hour"
110
- mcp__servicenow-automation__snow_create_escalation_rule --name "Test Escalation v139" --table incident --condition "priority=1" --escalationTime 60 --escalationScript "// test"
111
- mcp__servicenow-automation__snow_create_workflow_activity --name "Test Activity v139" --workflowName "Test Workflow" --activityType approval
112
- mcp__servicenow-automation__snow_test_scheduled_job --jobName "Test Job v139"
113
-
114
- echo "šŸ›”ļø Testing Security & Compliance (10 tools)"
115
- mcp__servicenow-security-compliance__snow_discover_security_frameworks
116
- mcp__servicenow-security-compliance__snow_discover_security_policies
117
- mcp__servicenow-security-compliance__snow_create_security_policy --name "Test Policy v139" --type access --rules []
118
- mcp__servicenow-security-compliance__snow_create_compliance_rule --name "Test Compliance v139" --framework SOX --requirement Test --validation true
119
- mcp__servicenow-security-compliance__snow_create_audit_rule --name "Test Audit v139" --table incident --events '["create", "update"]'
120
- mcp__servicenow-security-compliance__snow_create_access_control --name "Test ACL v139" --table incident --operation read
121
- mcp__servicenow-security-compliance__snow_create_data_policy --name "Test Data v139" --table incident --fields '["priority"]' --classification internal
122
- mcp__servicenow-security-compliance__snow_create_vulnerability_scan --name "Test Scan v139" --scope application
123
- mcp__servicenow-security-compliance__snow_run_compliance_scan --framework SOX
124
- mcp__servicenow-security-compliance__snow_security_risk_assessment --scope instance
125
-
126
- echo "āœ… Test commands ready! Total: 103 tools"
package/activate-mcp.sh DELETED
@@ -1,15 +0,0 @@
1
- #!/bin/bash
2
- # Snow-Flow MCP Activation Script
3
- echo "šŸš€ Starting Claude Code with MCP servers..."
4
- echo "šŸ“ Working directory: /Users/nielsvanderwerf/Projects/servicenow_multiagent"
5
- echo ""
6
-
7
- # Change to project directory
8
- cd "/Users/nielsvanderwerf/Projects/servicenow_multiagent"
9
-
10
- # Start Claude Code with MCP config
11
- claude --mcp-config .mcp.json .
12
-
13
- echo ""
14
- echo "āœ… Claude Code started with MCP servers!"
15
- echo "šŸ’” Check MCP servers with: /mcp in Claude Code"
package/claude-flow DELETED
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Claude Flow CLI - Universal Wrapper
5
- * Works in both CommonJS and ES Module projects
6
- */
7
-
8
- // Use dynamic import to work in both CommonJS and ES modules
9
- (async () => {
10
- const { spawn } = await import('child_process');
11
- const { resolve } = await import('path');
12
- const { fileURLToPath } = await import('url');
13
-
14
- // Detect if we're running in ES module context
15
- let __dirname;
16
- try {
17
- // Check if import.meta is available (ES modules)
18
- if (typeof import.meta !== 'undefined' && import.meta.url) {
19
- const __filename = fileURLToPath(import.meta.url);
20
- __dirname = resolve(__filename, '..');
21
- } else {
22
- // Fallback for CommonJS
23
- __dirname = process.cwd();
24
- }
25
- } catch {
26
- // Fallback for CommonJS
27
- __dirname = process.cwd();
28
- }
29
-
30
- // Try multiple strategies to find claude-flow
31
- const strategies = [
32
- // 1. Local node_modules
33
- async () => {
34
- try {
35
- const localPath = resolve(process.cwd(), 'node_modules/.bin/claude-flow');
36
- const { existsSync } = await import('fs');
37
- if (existsSync(localPath)) {
38
- return spawn(localPath, process.argv.slice(2), { stdio: 'inherit' });
39
- }
40
- } catch {}
41
- },
42
-
43
- // 2. Parent node_modules (monorepo)
44
- async () => {
45
- try {
46
- const parentPath = resolve(process.cwd(), '../node_modules/.bin/claude-flow');
47
- const { existsSync } = await import('fs');
48
- if (existsSync(parentPath)) {
49
- return spawn(parentPath, process.argv.slice(2), { stdio: 'inherit' });
50
- }
51
- } catch {}
52
- },
53
-
54
- // 3. NPX with latest alpha version (prioritized over global)
55
- async () => {
56
- return spawn('npx', ['claude-flow@alpha', ...process.argv.slice(2)], {
57
- stdio: 'inherit',
58
- });
59
- },
60
- ];
61
-
62
- // Try each strategy
63
- for (const strategy of strategies) {
64
- try {
65
- const child = await strategy();
66
- if (child) {
67
- child.on('exit', (code) => process.exit(code || 0));
68
- child.on('error', (err) => {
69
- if (err.code !== 'ENOENT') {
70
- console.error('Error:', err);
71
- process.exit(1);
72
- }
73
- });
74
- return;
75
- }
76
- } catch {}
77
- }
78
-
79
- console.error('Could not find claude-flow. Please install it with: npm install claude-flow');
80
- process.exit(1);
81
- })();
package/claude-flow.bat DELETED
@@ -1,18 +0,0 @@
1
- @echo off
2
- :: Claude Flow CLI for Windows
3
- :: AI-Driven Development Toolkit
4
-
5
- setlocal
6
-
7
- :: Check if Node.js is installed
8
- where node >nul 2>nul
9
- if %errorlevel% neq 0 (
10
- echo Error: Node.js is not installed or not in PATH
11
- echo Please install Node.js from https://nodejs.org/
12
- exit /b 1
13
- )
14
-
15
- :: Run Claude Flow CLI
16
- node "%~dp0claude-flow" %*
17
-
18
- endlocal
@@ -1,20 +0,0 @@
1
- {
2
- "features": {
3
- "autoTopologySelection": true,
4
- "parallelExecution": true,
5
- "neuralTraining": true,
6
- "bottleneckAnalysis": true,
7
- "smartAutoSpawning": true,
8
- "selfHealingWorkflows": true,
9
- "crossSessionMemory": true,
10
- "githubIntegration": true
11
- },
12
- "performance": {
13
- "maxAgents": 10,
14
- "defaultTopology": "hierarchical",
15
- "executionStrategy": "parallel",
16
- "tokenOptimization": true,
17
- "cacheEnabled": true,
18
- "telemetryLevel": "detailed"
19
- }
20
- }
package/claude-flow.ps1 DELETED
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- # Claude Flow CLI for PowerShell
3
- # AI-Driven Development Toolkit
4
-
5
- param(
6
- [Parameter(ValueFromRemainingArguments=$true)]
7
- [string[]]$Arguments
8
- )
9
-
10
- # Check if Node.js is installed
11
- if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
12
- Write-Error "Node.js is not installed or not in PATH"
13
- Write-Error "Please install Node.js from https://nodejs.org/"
14
- exit 1
15
- }
16
-
17
- # Get the script directory
18
- $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
19
-
20
- # Run Claude Flow CLI
21
- & node "$scriptDir\claude-flow" @Arguments
22
-
23
- # Forward the exit code
24
- exit $LASTEXITCODE
@@ -1,134 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Manual MCP Registration Script for Snow-Flow
5
- * Run this to register Snow-Flow MCP servers with Claude Desktop
6
- */
7
-
8
- const fs = require('fs');
9
- const path = require('path');
10
- const os = require('os');
11
-
12
- // Claude Desktop config path on macOS
13
- const CLAUDE_CONFIG_PATH = path.join(
14
- os.homedir(),
15
- 'Library',
16
- 'Application Support',
17
- 'Claude',
18
- 'claude_desktop_config.json'
19
- );
20
-
21
- // Determine Snow-Flow installation path
22
- const SNOW_FLOW_PATH = '/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow';
23
-
24
- // Snow-Flow MCP servers configuration
25
- const SNOW_FLOW_SERVERS = {
26
- "snow-flow-operations": {
27
- "command": "node",
28
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-operations-mcp.js`]
29
- },
30
- "snow-flow-automation": {
31
- "command": "node",
32
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-automation-mcp.js`]
33
- },
34
- "snow-flow-integration": {
35
- "command": "node",
36
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-integration-mcp.js`]
37
- },
38
- "snow-flow-deployment": {
39
- "command": "node",
40
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-deployment-mcp.js`]
41
- },
42
- "snow-flow-platform-development": {
43
- "command": "node",
44
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-platform-development-mcp.js`]
45
- },
46
- "snow-flow-reporting-analytics": {
47
- "command": "node",
48
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-reporting-analytics-mcp.js`]
49
- },
50
- "snow-flow-security-compliance": {
51
- "command": "node",
52
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-security-compliance-mcp.js`]
53
- },
54
- "snow-flow-update-set": {
55
- "command": "node",
56
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-update-set-mcp.js`]
57
- },
58
- "snow-flow-intelligent": {
59
- "command": "node",
60
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-intelligent-mcp.js`]
61
- },
62
- "snow-flow-graph-memory": {
63
- "command": "node",
64
- "args": [`${SNOW_FLOW_PATH}/dist/mcp/servicenow-graph-memory-mcp.js`]
65
- }
66
- };
67
-
68
- // Add environment variables if .env exists
69
- const envPath = path.join(SNOW_FLOW_PATH, '.env');
70
- if (fs.existsSync(envPath)) {
71
- const envContent = fs.readFileSync(envPath, 'utf8');
72
- const envVars = {};
73
-
74
- envContent.split('\n').forEach(line => {
75
- const [key, value] = line.split('=');
76
- if (key && value) {
77
- envVars[key.trim()] = value.trim().replace(/^["']|["']$/g, '');
78
- }
79
- });
80
-
81
- // Add env vars to each server
82
- Object.keys(SNOW_FLOW_SERVERS).forEach(serverKey => {
83
- SNOW_FLOW_SERVERS[serverKey].env = envVars;
84
- });
85
- }
86
-
87
- console.log('šŸ“‹ Registering Snow-Flow MCP servers with Claude Desktop...\n');
88
-
89
- try {
90
- // Read existing config
91
- let config = { mcpServers: {} };
92
- if (fs.existsSync(CLAUDE_CONFIG_PATH)) {
93
- config = JSON.parse(fs.readFileSync(CLAUDE_CONFIG_PATH, 'utf8'));
94
- if (!config.mcpServers) {
95
- config.mcpServers = {};
96
- }
97
- }
98
-
99
- // Add Snow-Flow servers
100
- let addedCount = 0;
101
- Object.keys(SNOW_FLOW_SERVERS).forEach(key => {
102
- if (!config.mcpServers[key]) {
103
- config.mcpServers[key] = SNOW_FLOW_SERVERS[key];
104
- addedCount++;
105
- console.log(`āœ… Added ${key}`);
106
- } else {
107
- console.log(`ā­ļø ${key} already exists`);
108
- }
109
- });
110
-
111
- // Write updated config
112
- fs.writeFileSync(CLAUDE_CONFIG_PATH, JSON.stringify(config, null, 2));
113
-
114
- console.log(`\nšŸ“ Updated Claude Desktop configuration`);
115
- console.log(` Added ${addedCount} new servers`);
116
- console.log(` Path: ${CLAUDE_CONFIG_PATH}`);
117
-
118
- console.log('\nšŸ”„ Please restart Claude Desktop to load the MCP servers');
119
- console.log('šŸ’” Use /mcp in Claude to verify the servers are available');
120
-
121
- // Also create a proper .env file in Snow-Flow directory if needed
122
- if (!fs.existsSync(envPath)) {
123
- console.log('\nāš ļø No .env file found in Snow-Flow installation');
124
- console.log(' Create one at: ' + envPath);
125
- console.log(' With your ServiceNow credentials:');
126
- console.log(' SNOW_INSTANCE=your-instance.service-now.com');
127
- console.log(' SNOW_CLIENT_ID=your-client-id');
128
- console.log(' SNOW_CLIENT_SECRET=your-client-secret');
129
- }
130
-
131
- } catch (error) {
132
- console.error('āŒ Error registering MCP servers:', error.message);
133
- process.exit(1);
134
- }
package/mcp-wrapper.sh DELETED
@@ -1,12 +0,0 @@
1
- #!/bin/bash
2
- # MCP Server Wrapper for Claude Code compatibility
3
- # This wrapper ensures proper execution of Node.js MCP servers
4
-
5
- # Get the script to run from first argument
6
- SCRIPT="$1"
7
-
8
- # Shift arguments to pass remaining to the script
9
- shift
10
-
11
- # Execute with Node.js
12
- exec node "$SCRIPT" "$@"