snow-flow 5.0.2 → 5.0.4

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 (3) hide show
  1. package/README.md +25 -10
  2. package/dist/cli.js +4 -4
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -80,16 +80,31 @@ snow-flow auth status
80
80
 
81
81
  #### ServiceNow OAuth Configuration
82
82
 
83
- To set up OAuth in your ServiceNow instance:
84
-
85
- 1. **Navigate to System OAuth → Application Registry**
86
- 2. **Click "New" → "Create an OAuth API endpoint"** (not client credentials)
87
- 3. **Fill required fields:**
88
- - Name: `Snow-Flow Integration`
89
- - Client ID: `snow-flow-client`
90
- - Redirect URL: `http://localhost:3000/callback`
91
- 4. **Save and copy the Client ID and Client Secret**
92
- 5. **Run `snow-flow auth login`** - this opens browser for authentication
83
+ ⚠️ **IMPORTANT:** Snow-Flow uses OAuth 2.0 Authorization Code Flow with browser authentication. Follow these exact steps:
84
+
85
+ 1. **Navigate to:** System OAuth → Application Registry
86
+ 2. **Click:** New → **"Create an OAuth API endpoint for external clients"**
87
+ 3. **Configure OAuth Application:**
88
+ - **Name:** `Snow-Flow Integration` (or any name you prefer)
89
+ - **Redirect URL:** `http://localhost:3005/callback` ⚠️ **MUST be exactly this!**
90
+ - **Refresh Token Lifespan:** `0` (unlimited - recommended)
91
+ - **Access Token Lifespan:** `1800` (30 minutes)
92
+ 4. **Save** - ServiceNow will auto-generate:
93
+ - Client ID (copy this)
94
+ - Client Secret (copy this - shown only once!)
95
+ 5. **Create `.env` file** in your project with:
96
+ ```bash
97
+ SNOW_INSTANCE=your-instance.service-now.com
98
+ SNOW_CLIENT_ID=<your_client_id>
99
+ SNOW_CLIENT_SECRET=<your_client_secret>
100
+ ```
101
+ 6. **Run:** `snow-flow auth login`
102
+ - Opens browser automatically for ServiceNow login
103
+ - Redirects to `http://localhost:3005/callback` after authentication
104
+ - Stores OAuth tokens locally for future use
105
+
106
+ **Why this exact redirect URL?**
107
+ Snow-Flow starts a local OAuth callback server on port 3005. ServiceNow must redirect to **exactly** `http://localhost:3005/callback` - any mismatch (wrong port, missing `/callback`) will cause "Invalid redirect_uri" errors.
93
108
 
94
109
  #### Common Authentication Issues
95
110
 
package/dist/cli.js CHANGED
@@ -574,7 +574,7 @@ async function executeClaudeCode(prompt) {
574
574
  // SDK automatically initializes MCP servers from configuration
575
575
  if (hasMcpConfig) {
576
576
  console.log(chalk_1.default.blue('ℹ️ MCP servers managed by Claude Agent SDK v0.1.1'));
577
- console.log(chalk_1.default.green('✅ 448 ServiceNow tools available via SDK integration'));
577
+ console.log(chalk_1.default.green('✅ 235+ ServiceNow tools available via unified MCP server'));
578
578
  }
579
579
  // Launch Claude Code with MCP config and skip permissions to avoid raw mode issues
580
580
  const claudeArgs = hasMcpConfig
@@ -1720,14 +1720,14 @@ program
1720
1720
  console.log(chalk_1.default.green.bold('\n✅ Snow-Flow project initialized successfully!'));
1721
1721
  console.log('\n📋 Created Snow-Flow configuration:');
1722
1722
  console.log(' ✓ .claude/ - Claude Code MCP configuration');
1723
- console.log(' ✓ .mcp.json - 20+ ServiceNow MCP servers (240+ tools including complete UX Workspace workflow)');
1723
+ console.log(' ✓ .mcp.json - 2 unified MCP servers (235+ tools including complete UX Workspace workflow)');
1724
1724
  console.log(' ✓ CLAUDE.md - Complete development guide');
1725
1725
  console.log(' ✓ README.md - Current capabilities documentation');
1726
1726
  console.log(' ✓ .snow-flow/ - Project workspace and memory');
1727
1727
  if (!options.skipMcp) {
1728
1728
  // NOTE: MCP servers now managed by Claude Agent SDK (v4.7.0+)
1729
1729
  console.log(chalk_1.default.blue('\nℹ️ MCP servers now managed by Claude Agent SDK v0.1.1'));
1730
- console.log(chalk_1.default.green('✅ 448 ServiceNow tools automatically available via SDK'));
1730
+ console.log(chalk_1.default.green('✅ 235+ ServiceNow tools automatically available via unified server'));
1731
1731
  console.log(chalk_1.default.blue('📋 SDK handles MCP server lifecycle automatically'));
1732
1732
  }
1733
1733
  console.log(chalk_1.default.blue.bold('\n🎯 Next steps:'));
@@ -1736,7 +1736,7 @@ program
1736
1736
  console.log('2. Authenticate Snow-Flow: ' + chalk_1.default.cyan('snow-flow auth login'));
1737
1737
  console.log('3. Start developing: ' + chalk_1.default.cyan('snow-flow swarm "create incident dashboard"'));
1738
1738
  console.log('\n📚 Complete documentation: ' + chalk_1.default.blue('https://snow-flow.dev'));
1739
- console.log('💡 Complete 6-step UX Workspace creation, UI Builder, and 240+ tools now available');
1739
+ console.log('💡 Complete UX Workspace creation, UI Builder, and 235+ unified tools now available');
1740
1740
  // Force exit to prevent hanging
1741
1741
  process.exit(0);
1742
1742
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "5.0.2",
4
- "description": "CLAUDE AGENT SDK INTEGRATION - v5.0.2 with @anthropic-ai/claude-agent-sdk@0.1.1 (official latest) featuring 86% code reduction (2832→400 lines), unified MCP server (235+ tools), SDK-native execution, intelligent orchestration, advanced memory, and 2.8-4.4x parallelization speedup.",
3
+ "version": "5.0.4",
4
+ "description": "CLAUDE AGENT SDK INTEGRATION - v5.0.4 with @anthropic-ai/claude-agent-sdk@0.1.1 (official latest) featuring 86% code reduction (2832→400 lines), unified MCP server (235+ tools), SDK-native execution, intelligent orchestration, advanced memory, and 2.8-4.4x parallelization speedup.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
7
7
  "bin": {