snow-flow 3.5.13 → 3.5.14
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 +120 -5
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2462,6 +2462,7 @@ async function createMCPConfig(targetDir, force = false) {
|
|
|
2462
2462
|
"servicenow-system-properties",
|
|
2463
2463
|
"servicenow-update-set",
|
|
2464
2464
|
"servicenow-development-assistant",
|
|
2465
|
+
"servicenow-local-development",
|
|
2465
2466
|
"servicenow-security-compliance",
|
|
2466
2467
|
"servicenow-reporting-analytics",
|
|
2467
2468
|
"servicenow-machine-learning",
|
|
@@ -2473,7 +2474,90 @@ async function createMCPConfig(targetDir, force = false) {
|
|
|
2473
2474
|
],
|
|
2474
2475
|
"permissions": {
|
|
2475
2476
|
"allow": [
|
|
2476
|
-
|
|
2477
|
+
// Snow-Flow Core Commands
|
|
2478
|
+
"Bash(npx snow-flow *)",
|
|
2479
|
+
"Bash(snow-flow *)",
|
|
2480
|
+
"Bash(./snow-flow *)",
|
|
2481
|
+
// Development Commands
|
|
2482
|
+
"Bash(npm run *)",
|
|
2483
|
+
"Bash(npm install *)",
|
|
2484
|
+
"Bash(npm update *)",
|
|
2485
|
+
"Bash(npm test *)",
|
|
2486
|
+
"Bash(npm run lint)",
|
|
2487
|
+
"Bash(npm run build)",
|
|
2488
|
+
"Bash(npm run dev)",
|
|
2489
|
+
"Bash(npm start)",
|
|
2490
|
+
"Bash(yarn *)",
|
|
2491
|
+
"Bash(pnpm *)",
|
|
2492
|
+
// Git Operations
|
|
2493
|
+
"Bash(git status)",
|
|
2494
|
+
"Bash(git diff *)",
|
|
2495
|
+
"Bash(git log *)",
|
|
2496
|
+
"Bash(git add *)",
|
|
2497
|
+
"Bash(git commit *)",
|
|
2498
|
+
"Bash(git push *)",
|
|
2499
|
+
"Bash(git pull *)",
|
|
2500
|
+
"Bash(git branch *)",
|
|
2501
|
+
"Bash(git checkout *)",
|
|
2502
|
+
"Bash(git merge *)",
|
|
2503
|
+
"Bash(git config *)",
|
|
2504
|
+
"Bash(git remote *)",
|
|
2505
|
+
// GitHub CLI
|
|
2506
|
+
"Bash(gh *)",
|
|
2507
|
+
// Node.js and System Commands
|
|
2508
|
+
"Bash(node *)",
|
|
2509
|
+
"Bash(npm *)",
|
|
2510
|
+
"Bash(npx *)",
|
|
2511
|
+
"Bash(which *)",
|
|
2512
|
+
"Bash(pwd)",
|
|
2513
|
+
"Bash(ls *)",
|
|
2514
|
+
"Bash(cd *)",
|
|
2515
|
+
"Bash(mkdir *)",
|
|
2516
|
+
"Bash(rm *)",
|
|
2517
|
+
"Bash(cp *)",
|
|
2518
|
+
"Bash(mv *)",
|
|
2519
|
+
"Bash(find *)",
|
|
2520
|
+
"Bash(grep *)",
|
|
2521
|
+
"Bash(cat *)",
|
|
2522
|
+
"Bash(head *)",
|
|
2523
|
+
"Bash(tail *)",
|
|
2524
|
+
"Bash(less *)",
|
|
2525
|
+
"Bash(more *)",
|
|
2526
|
+
// API Testing and Network
|
|
2527
|
+
"Bash(curl *)",
|
|
2528
|
+
"Bash(wget *)",
|
|
2529
|
+
"Bash(ping *)",
|
|
2530
|
+
"Bash(telnet *)",
|
|
2531
|
+
"Bash(nc *)",
|
|
2532
|
+
"Bash(netstat *)",
|
|
2533
|
+
// JSON and Data Processing
|
|
2534
|
+
"Bash(jq *)",
|
|
2535
|
+
"Bash(awk *)",
|
|
2536
|
+
"Bash(sed *)",
|
|
2537
|
+
"Bash(sort *)",
|
|
2538
|
+
"Bash(uniq *)",
|
|
2539
|
+
"Bash(wc *)",
|
|
2540
|
+
// Process and System Monitoring
|
|
2541
|
+
"Bash(ps *)",
|
|
2542
|
+
"Bash(top)",
|
|
2543
|
+
"Bash(htop)",
|
|
2544
|
+
"Bash(lsof *)",
|
|
2545
|
+
"Bash(df *)",
|
|
2546
|
+
"Bash(du *)",
|
|
2547
|
+
"Bash(free *)",
|
|
2548
|
+
"Bash(uptime)",
|
|
2549
|
+
// Environment
|
|
2550
|
+
"Bash(env)",
|
|
2551
|
+
"Bash(export *)",
|
|
2552
|
+
"Bash(echo *)",
|
|
2553
|
+
"Bash(printenv *)",
|
|
2554
|
+
// Docker (if used)
|
|
2555
|
+
"Bash(docker *)",
|
|
2556
|
+
"Bash(docker-compose *)",
|
|
2557
|
+
// ServiceNow CLI (if exists)
|
|
2558
|
+
"Bash(sn *)",
|
|
2559
|
+
"Bash(snc *)",
|
|
2560
|
+
// File Operations - Claude Code Tools
|
|
2477
2561
|
"Read(*)",
|
|
2478
2562
|
"Write(*)",
|
|
2479
2563
|
"Edit(*)",
|
|
@@ -2490,10 +2574,37 @@ async function createMCPConfig(targetDir, force = false) {
|
|
|
2490
2574
|
"Task(*)",
|
|
2491
2575
|
"ListMcpResourcesTool",
|
|
2492
2576
|
"ReadMcpResourceTool",
|
|
2577
|
+
// MCP Tools - All ServiceNow Servers
|
|
2493
2578
|
"mcp__servicenow-*",
|
|
2494
2579
|
"mcp__snow-flow__*"
|
|
2495
2580
|
],
|
|
2496
|
-
"deny": [
|
|
2581
|
+
"deny": [
|
|
2582
|
+
"Bash(rm -rf /)",
|
|
2583
|
+
"Bash(sudo rm *)",
|
|
2584
|
+
"Bash(sudo *)"
|
|
2585
|
+
]
|
|
2586
|
+
},
|
|
2587
|
+
"hooks": {
|
|
2588
|
+
"PreCompact": [
|
|
2589
|
+
{
|
|
2590
|
+
"matcher": "manual",
|
|
2591
|
+
"hooks": [
|
|
2592
|
+
{
|
|
2593
|
+
"type": "command",
|
|
2594
|
+
"command": "/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo \"$INPUT\" | jq -r \".custom_instructions // \\\"\\\"\"); echo \"🔄 PreCompact Guidance:\"; echo \"📋 IMPORTANT: Review CLAUDE.md in project root for:\"; echo \" • 18+ MCP servers and snow_pull_artifact for widget debugging\"; echo \" • Swarm coordination strategies (hierarchical, mesh, adaptive)\"; echo \" • SPARC methodology workflows with batchtools optimization\"; echo \" • Critical concurrent execution rules (GOLDEN RULE: 1 MESSAGE = ALL OPERATIONS)\"; if [ -n \"$CUSTOM\" ]; then echo \"🎯 Custom compact instructions: $CUSTOM\"; fi; echo \"✅ Ready for compact operation\"'"
|
|
2595
|
+
}
|
|
2596
|
+
]
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"matcher": "auto",
|
|
2600
|
+
"hooks": [
|
|
2601
|
+
{
|
|
2602
|
+
"type": "command",
|
|
2603
|
+
"command": "/bin/bash -c 'echo \"🔄 Auto-Compact Guidance (Context Window Full):\"; echo \"📋 CRITICAL: Before compacting, ensure you understand:\"; echo \" • All 18+ MCP servers including servicenow-local-development\"; echo \" • Use snow_pull_artifact for widget debugging (NOT snow_query_table)\"; echo \" • Concurrent execution patterns from CLAUDE.md\"; echo \" • Batchtools optimization for 300% performance gains\"; echo \" • Swarm coordination strategies for complex tasks\"; echo \"⚡ Apply GOLDEN RULE: Always batch operations in single messages\"; echo \"✅ Auto-compact proceeding with full agent context\"'"
|
|
2604
|
+
}
|
|
2605
|
+
]
|
|
2606
|
+
}
|
|
2607
|
+
]
|
|
2497
2608
|
},
|
|
2498
2609
|
"env": {
|
|
2499
2610
|
"BASH_DEFAULT_TIMEOUT_MS": "0",
|
|
@@ -2508,12 +2619,16 @@ async function createMCPConfig(targetDir, force = false) {
|
|
|
2508
2619
|
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "32000",
|
|
2509
2620
|
"CLAUDE_CODE_TIMEOUT": "0",
|
|
2510
2621
|
"CLAUDE_CODE_SESSION_TIMEOUT": "0",
|
|
2511
|
-
"CLAUDE_CODE_EXECUTION_TIMEOUT": "0"
|
|
2622
|
+
"CLAUDE_CODE_EXECUTION_TIMEOUT": "0",
|
|
2623
|
+
"SNOW_FLOW_DEBUG": "false",
|
|
2624
|
+
"SNOW_FLOW_LOG_LEVEL": "info",
|
|
2625
|
+
"MCP_DEBUG": "false",
|
|
2626
|
+
"NODE_ENV": "development"
|
|
2512
2627
|
},
|
|
2513
2628
|
"cleanupPeriodDays": 90,
|
|
2514
2629
|
"includeCoAuthoredBy": true
|
|
2515
|
-
//
|
|
2516
|
-
//
|
|
2630
|
+
// Snow-Flow v3.5.13+ optimized settings with servicenow-local-development
|
|
2631
|
+
// Comprehensive permissions for Snow-Flow development workflow
|
|
2517
2632
|
};
|
|
2518
2633
|
const claudeSettingsPath = (0, path_1.join)(targetDir, '.claude/settings.json');
|
|
2519
2634
|
await fs_1.promises.writeFile(claudeSettingsPath, JSON.stringify(claudeSettings, null, 2));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "3.5.
|
|
4
|
-
"description": "ServiceNow development framework with
|
|
3
|
+
"version": "3.5.14",
|
|
4
|
+
"description": "ServiceNow development framework with comprehensive Claude Code integration. Enhanced 'snow-flow init' creates optimized settings.json with 18 MCP servers, extensive development permissions, intelligent hooks, and ServiceNow-specific commands. Fixed false positive success reporting in artifact push. Features intelligent timeout configuration for long operations while preventing Claude API timeouts. Executes background scripts using ES5 JavaScript only (ServiceNow Rhino engine requirement). Provides complete development workflow with local artifact sync, widget debugging, deployment validation, and comprehensive platform management.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"bin": {
|