claude-flow 1.0.8 → 1.0.9
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/bin/claude-flow-node.js +41 -2
- package/package.json +1 -1
package/bin/claude-flow-node.js
CHANGED
|
@@ -128,7 +128,7 @@ USAGE:
|
|
|
128
128
|
claude-flow [COMMAND] [OPTIONS]
|
|
129
129
|
|
|
130
130
|
COMMANDS:
|
|
131
|
-
${colors.cyan}init${colors.reset} Initialize Claude Code integration files
|
|
131
|
+
${colors.cyan}init${colors.reset} Initialize Claude Code integration files (includes Deno check)
|
|
132
132
|
${colors.cyan}start${colors.reset} Start the orchestration system
|
|
133
133
|
${colors.cyan}agent${colors.reset} Manage agents (spawn, list, terminate, info)
|
|
134
134
|
${colors.cyan}task${colors.reset} Manage tasks (create, list, status, cancel, workflow)
|
|
@@ -150,7 +150,8 @@ GLOBAL OPTIONS:
|
|
|
150
150
|
--help Show help for specific command
|
|
151
151
|
|
|
152
152
|
EXAMPLES:
|
|
153
|
-
claude-flow init # Initialize project
|
|
153
|
+
claude-flow init # Initialize project (checks/installs Deno)
|
|
154
|
+
claude-flow init --skip-deno # Initialize without Deno check
|
|
154
155
|
claude-flow start # Start orchestrator (auto-installs Deno)
|
|
155
156
|
claude-flow agent spawn researcher --name "Bot" # Spawn research agent
|
|
156
157
|
claude-flow task create research "Analyze data" # Create task
|
|
@@ -165,9 +166,47 @@ Documentation: https://github.com/ruvnet/claude-code-flow
|
|
|
165
166
|
async function executeInit(args) {
|
|
166
167
|
const force = args.includes('-f') || args.includes('--force');
|
|
167
168
|
const minimal = args.includes('-m') || args.includes('--minimal');
|
|
169
|
+
const skipDeno = args.includes('--skip-deno');
|
|
168
170
|
|
|
169
171
|
success('Initializing Claude Code integration files...');
|
|
170
172
|
|
|
173
|
+
// Check and optionally install Deno first
|
|
174
|
+
if (!skipDeno) {
|
|
175
|
+
try {
|
|
176
|
+
const denoAvailable = await checkDeno();
|
|
177
|
+
|
|
178
|
+
if (!denoAvailable) {
|
|
179
|
+
const readline = require('readline');
|
|
180
|
+
const rl = readline.createInterface({
|
|
181
|
+
input: process.stdin,
|
|
182
|
+
output: process.stdout
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
warning('Deno is not installed. Claude-Flow requires Deno for full functionality.');
|
|
186
|
+
console.log('Would you like to install Deno now? (y/n)');
|
|
187
|
+
|
|
188
|
+
const answer = await new Promise((resolve) => {
|
|
189
|
+
rl.question('', (answer) => {
|
|
190
|
+
rl.close();
|
|
191
|
+
resolve(answer.toLowerCase());
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
if (answer === 'y' || answer === 'yes') {
|
|
196
|
+
await installDeno();
|
|
197
|
+
console.log('');
|
|
198
|
+
} else {
|
|
199
|
+
info('You can install Deno later from https://deno.land/');
|
|
200
|
+
console.log('');
|
|
201
|
+
}
|
|
202
|
+
} else {
|
|
203
|
+
success('Deno is already installed ✓');
|
|
204
|
+
}
|
|
205
|
+
} catch (error) {
|
|
206
|
+
warning(`Could not check Deno installation: ${error.message}`);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
171
210
|
try {
|
|
172
211
|
// Check if files already exist
|
|
173
212
|
const files = ['CLAUDE.md', 'memory-bank.md', 'coordination.md'];
|