snow-flow 5.0.1 → 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.
- package/README.md +25 -10
- package/dist/cli.js +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -80,16 +80,31 @@ snow-flow auth status
|
|
|
80
80
|
|
|
81
81
|
#### ServiceNow OAuth Configuration
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
1. **Navigate to System OAuth → Application Registry
|
|
86
|
-
2. **Click
|
|
87
|
-
3. **
|
|
88
|
-
- Name
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
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('✅
|
|
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 -
|
|
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('✅
|
|
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
|
|
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.
|
|
4
|
-
"description": "CLAUDE AGENT SDK INTEGRATION - v5.0.
|
|
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": {
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
"npm": ">=8.0.0"
|
|
458
458
|
},
|
|
459
459
|
"dependencies": {
|
|
460
|
-
"@anthropic-ai/claude-agent-sdk": "
|
|
460
|
+
"@anthropic-ai/claude-agent-sdk": "0.1.1",
|
|
461
461
|
"@anthropic-ai/sdk": "^0.65.0",
|
|
462
462
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
463
463
|
"@tensorflow/tfjs-node": "^4.22.0",
|