snow-flow 1.4.2 → 1.4.3
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 +3 -52
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2096,24 +2096,9 @@ program
|
|
|
2096
2096
|
console.log(' ✓ CLAUDE.md - Development documentation');
|
|
2097
2097
|
console.log(' ✓ README.md - Project documentation');
|
|
2098
2098
|
if (!options.skipMcp) {
|
|
2099
|
-
console.log(chalk_1.default.yellow.bold('\n
|
|
2100
|
-
console.log('\
|
|
2101
|
-
|
|
2102
|
-
const rl = readline.createInterface({
|
|
2103
|
-
input: process.stdin,
|
|
2104
|
-
output: process.stdout
|
|
2105
|
-
});
|
|
2106
|
-
const answer = await new Promise(resolve => {
|
|
2107
|
-
rl.question('> ', resolve);
|
|
2108
|
-
});
|
|
2109
|
-
rl.close();
|
|
2110
|
-
if (!answer || answer.toLowerCase() === 'y') {
|
|
2111
|
-
await activateMCPServers();
|
|
2112
|
-
}
|
|
2113
|
-
else {
|
|
2114
|
-
console.log('\n📝 To activate MCP servers manually later, run:');
|
|
2115
|
-
console.log(chalk_1.default.cyan(' claude --mcp-config .mcp.json .'));
|
|
2116
|
-
}
|
|
2099
|
+
console.log(chalk_1.default.yellow.bold('\n📝 MCP servers are configured for Claude Code'));
|
|
2100
|
+
console.log('\nTo activate MCP servers in Claude Code, run:');
|
|
2101
|
+
console.log(chalk_1.default.cyan(' claude --mcp-config .mcp.json .'));
|
|
2117
2102
|
}
|
|
2118
2103
|
}
|
|
2119
2104
|
console.log(chalk_1.default.blue.bold('\n🎯 Next steps:'));
|
|
@@ -5202,40 +5187,6 @@ program
|
|
|
5202
5187
|
// ===================================================
|
|
5203
5188
|
// 🎯 INTEGRATE SNOW-FLOW HIVE-MIND SYSTEM
|
|
5204
5189
|
// ===================================================
|
|
5205
|
-
async function activateMCPServers() {
|
|
5206
|
-
console.log(chalk_1.default.blue.bold('\n🚀 Activating MCP servers in Claude Code...'));
|
|
5207
|
-
try {
|
|
5208
|
-
const { spawn } = await Promise.resolve().then(() => __importStar(require('child_process')));
|
|
5209
|
-
const platform = process.platform;
|
|
5210
|
-
// Check if claude command exists
|
|
5211
|
-
const claudeCommand = platform === 'win32' ? 'claude.exe' : 'claude';
|
|
5212
|
-
console.log('📡 Starting Claude Code with MCP configuration...');
|
|
5213
|
-
// Launch Claude with MCP config
|
|
5214
|
-
const claudeProcess = spawn(claudeCommand, ['--mcp-config', '.mcp.json', '.'], {
|
|
5215
|
-
stdio: 'inherit',
|
|
5216
|
-
shell: true
|
|
5217
|
-
});
|
|
5218
|
-
claudeProcess.on('error', (error) => {
|
|
5219
|
-
if (error.message.includes('ENOENT')) {
|
|
5220
|
-
console.error(chalk_1.default.red('\n❌ Claude Code not found. Please install it first:'));
|
|
5221
|
-
console.log(' Visit: https://claude.ai/download');
|
|
5222
|
-
}
|
|
5223
|
-
else {
|
|
5224
|
-
console.error(chalk_1.default.red('\n❌ Failed to start Claude Code:'), error.message);
|
|
5225
|
-
}
|
|
5226
|
-
});
|
|
5227
|
-
claudeProcess.on('spawn', () => {
|
|
5228
|
-
console.log(chalk_1.default.green('✅ Claude Code started with MCP servers!'));
|
|
5229
|
-
console.log('\n📋 All 11 ServiceNow MCP servers are now available in Claude Code');
|
|
5230
|
-
console.log('🎯 You can start using Snow-Flow commands immediately!');
|
|
5231
|
-
});
|
|
5232
|
-
}
|
|
5233
|
-
catch (error) {
|
|
5234
|
-
console.error(chalk_1.default.red('\n❌ Failed to activate MCP servers:'), error);
|
|
5235
|
-
console.log('\n📝 To activate manually, run:');
|
|
5236
|
-
console.log(chalk_1.default.cyan(' claude --mcp-config .mcp.json .'));
|
|
5237
|
-
}
|
|
5238
|
-
}
|
|
5239
5190
|
// Note: The new integrated commands enhance the existing CLI with:
|
|
5240
5191
|
// - Advanced system status monitoring
|
|
5241
5192
|
// - Real-time monitoring dashboard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development inspired by claude-flow. Transform complex workflows into elegant one-command orchestration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|