snow-flow 3.4.23 → 3.4.24

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/dist/cli.js +7 -45
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2454,6 +2454,10 @@ async function createMCPConfig(targetDir, force = false) {
2454
2454
  const legacyConfigPath = (0, path_1.join)(targetDir, '.claude/mcp-config.json');
2455
2455
  await fs_1.promises.writeFile(legacyConfigPath, JSON.stringify(finalConfig, null, 2));
2456
2456
  // Create comprehensive Claude Code settings file
2457
+ // NOTE: Only include properties that Claude Code actually accepts
2458
+ // Valid properties: apiKeyHelper, cleanupPeriodDays, env, includeCoAuthoredBy,
2459
+ // permissions, hooks, model, statusLine, forceLoginMethod, enableAllProjectMcpServers,
2460
+ // enabledMcpjsonServers, disabledMcpjsonServers, awsAuthRefresh, awsCredentialExport
2457
2461
  const claudeSettings = {
2458
2462
  "enabledMcpjsonServers": [
2459
2463
  "snow-flow",
@@ -2508,51 +2512,9 @@ async function createMCPConfig(targetDir, force = false) {
2508
2512
  "CLAUDE_CODE_EXECUTION_TIMEOUT": "0"
2509
2513
  },
2510
2514
  "cleanupPeriodDays": 90,
2511
- "includeCoAuthoredBy": true,
2512
- "automation": {
2513
- "enabled": true,
2514
- "defaultTimeout": 300000,
2515
- "maxRetries": 3,
2516
- "retryBackoff": 2000,
2517
- "parallelExecution": true,
2518
- "batchOperations": true,
2519
- "autoSaveMemory": true,
2520
- "autoCommit": false
2521
- },
2522
- "snowFlow": {
2523
- "version": "1.4.35",
2524
- "swarmDefaults": {
2525
- "maxAgents": 10,
2526
- "timeout": 0,
2527
- "parallel": true,
2528
- "monitor": true,
2529
- "outputFormat": "json"
2530
- },
2531
- "sparcDefaults": {
2532
- "timeout": 0,
2533
- "parallel": true,
2534
- "batch": true,
2535
- "memoryKey": "sparc_session"
2536
- },
2537
- "memoryDefaults": {
2538
- "maxSize": "5GB",
2539
- "autoCompress": true,
2540
- "autoCleanup": true,
2541
- "indexingEnabled": true,
2542
- "persistenceEnabled": true
2543
- }
2544
- },
2545
- "mcpServers": {
2546
- "servicenow": {
2547
- "command": "node",
2548
- "args": ["dist/mcp/start-servicenow-mcp.js"],
2549
- "env": {
2550
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
2551
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
2552
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
2553
- }
2554
- }
2555
- }
2515
+ "includeCoAuthoredBy": true
2516
+ // Removed invalid properties: automation, snowFlow, mcpServers
2517
+ // These were causing "Property X is not allowed" errors in Claude Code
2556
2518
  };
2557
2519
  const claudeSettingsPath = (0, path_1.join)(targetDir, '.claude/settings.json');
2558
2520
  await fs_1.promises.writeFile(claudeSettingsPath, JSON.stringify(claudeSettings, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "3.4.23",
3
+ "version": "3.4.24",
4
4
  "description": "ServiceNow development framework with MCP server integration. Executes background scripts using ES5 JavaScript only (ServiceNow Rhino engine requirement). Provides 17 MCP servers for complete ServiceNow operations including widget deployment with coherence validation, table operations, script execution, machine learning, advanced features, and comprehensive platform management.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",