moflo 4.10.23 → 4.10.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.
- package/dist/src/cli/commands/agent.js +14 -14
- package/dist/src/cli/commands/analyze.js +52 -52
- package/dist/src/cli/commands/benchmark.js +14 -14
- package/dist/src/cli/commands/claims.js +15 -15
- package/dist/src/cli/commands/completions.js +40 -40
- package/dist/src/cli/commands/config.js +8 -8
- package/dist/src/cli/commands/daemon.js +24 -24
- package/dist/src/cli/commands/deployment.js +15 -15
- package/dist/src/cli/commands/doctor-checks-config.js +6 -6
- package/dist/src/cli/commands/doctor.js +10 -10
- package/dist/src/cli/commands/embeddings.js +49 -49
- package/dist/src/cli/commands/guidance.js +22 -22
- package/dist/src/cli/commands/hive-mind.js +21 -21
- package/dist/src/cli/commands/hooks.js +95 -95
- package/dist/src/cli/commands/init.js +17 -17
- package/dist/src/cli/commands/issues.js +6 -6
- package/dist/src/cli/commands/mcp.js +10 -10
- package/dist/src/cli/commands/memory.js +56 -47
- package/dist/src/cli/commands/migrate.js +5 -5
- package/dist/src/cli/commands/neural.js +31 -31
- package/dist/src/cli/commands/performance.js +13 -13
- package/dist/src/cli/commands/plugins.js +26 -26
- package/dist/src/cli/commands/process.js +32 -32
- package/dist/src/cli/commands/progress.js +5 -5
- package/dist/src/cli/commands/providers.js +13 -13
- package/dist/src/cli/commands/route.js +26 -26
- package/dist/src/cli/commands/security.js +19 -19
- package/dist/src/cli/commands/session.js +13 -13
- package/dist/src/cli/commands/start.js +11 -11
- package/dist/src/cli/commands/status.js +8 -8
- package/dist/src/cli/commands/swarm.js +7 -7
- package/dist/src/cli/commands/task.js +9 -9
- package/dist/src/cli/commands/transfer-store.js +16 -16
- package/dist/src/cli/commands/update.js +2 -2
- package/dist/src/cli/hooks/statusline/index.js +3 -3
- package/dist/src/cli/init/executor.js +6 -6
- package/dist/src/cli/init/helpers-generator.js +4 -4
- package/dist/src/cli/mcp-tools/hooks-tools.js +1 -1
- package/dist/src/cli/memory/auto-memory-bridge.js +1 -1
- package/dist/src/cli/memory/memory-initializer.js +1 -1
- package/dist/src/cli/plugins/tests/demo-plugin-store.js +6 -6
- package/dist/src/cli/version.js +1 -1
- package/package.json +2 -2
|
@@ -15,9 +15,9 @@ const compileCommand = {
|
|
|
15
15
|
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
16
16
|
],
|
|
17
17
|
examples: [
|
|
18
|
-
{ command: '
|
|
19
|
-
{ command: '
|
|
20
|
-
{ command: '
|
|
18
|
+
{ command: 'flo guidance compile', description: 'Compile default CLAUDE.md' },
|
|
19
|
+
{ command: 'flo guidance compile -r ./CLAUDE.md -l ./CLAUDE.local.md', description: 'Compile with local overlay' },
|
|
20
|
+
{ command: 'flo guidance compile --json', description: 'Output compiled bundle as JSON' },
|
|
21
21
|
],
|
|
22
22
|
action: async (ctx) => {
|
|
23
23
|
const rootPath = ctx.flags.root || './CLAUDE.md';
|
|
@@ -89,8 +89,8 @@ const retrieveCommand = {
|
|
|
89
89
|
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
90
90
|
],
|
|
91
91
|
examples: [
|
|
92
|
-
{ command: '
|
|
93
|
-
{ command: '
|
|
92
|
+
{ command: 'flo guidance retrieve -t "Fix SQL injection in user search"', description: 'Retrieve guidance for a security task' },
|
|
93
|
+
{ command: 'flo guidance retrieve -t "Add unit tests" -n 3', description: 'Retrieve top 3 shards for testing' },
|
|
94
94
|
],
|
|
95
95
|
action: async (ctx) => {
|
|
96
96
|
const task = ctx.flags.task;
|
|
@@ -175,8 +175,8 @@ const gatesCommand = {
|
|
|
175
175
|
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
176
176
|
],
|
|
177
177
|
examples: [
|
|
178
|
-
{ command: '
|
|
179
|
-
{ command: '
|
|
178
|
+
{ command: 'flo guidance gates -c "rm -rf /tmp"', description: 'Check if a command is destructive' },
|
|
179
|
+
{ command: 'flo guidance gates --content "api_key=sk-abc123..."', description: 'Check content for secrets' },
|
|
180
180
|
],
|
|
181
181
|
action: async (ctx) => {
|
|
182
182
|
const command = ctx.flags.command;
|
|
@@ -316,10 +316,10 @@ const optimizeCommand = {
|
|
|
316
316
|
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
317
317
|
],
|
|
318
318
|
examples: [
|
|
319
|
-
{ command: '
|
|
320
|
-
{ command: '
|
|
321
|
-
{ command: '
|
|
322
|
-
{ command: '
|
|
319
|
+
{ command: 'flo guidance optimize', description: 'Analyze current CLAUDE.md and show suggestions' },
|
|
320
|
+
{ command: 'flo guidance optimize --apply', description: 'Apply optimizations to CLAUDE.md' },
|
|
321
|
+
{ command: 'flo guidance optimize -s compact --apply', description: 'Optimize for compact context window' },
|
|
322
|
+
{ command: 'flo guidance optimize --target-score 95', description: 'Optimize until score reaches 95' },
|
|
323
323
|
],
|
|
324
324
|
action: async (ctx) => {
|
|
325
325
|
const rootPath = ctx.flags.root || './CLAUDE.md';
|
|
@@ -419,10 +419,10 @@ const abTestCommand = {
|
|
|
419
419
|
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
420
420
|
],
|
|
421
421
|
examples: [
|
|
422
|
-
{ command: '
|
|
423
|
-
{ command: '
|
|
424
|
-
{ command: '
|
|
425
|
-
{ command: '
|
|
422
|
+
{ command: 'flo guidance ab-test', description: 'Run default A/B test (no guidance vs ./CLAUDE.md)' },
|
|
423
|
+
{ command: 'flo guidance ab-test -a old.md -b new.md', description: 'Compare two CLAUDE.md versions' },
|
|
424
|
+
{ command: 'flo guidance ab-test --tasks custom-tasks.json', description: 'Run with custom test tasks' },
|
|
425
|
+
{ command: 'flo guidance ab-test --json', description: 'Output full report as JSON' },
|
|
426
426
|
],
|
|
427
427
|
action: async (ctx) => {
|
|
428
428
|
const configAPath = ctx.flags.configA;
|
|
@@ -534,12 +534,12 @@ export const guidanceCommand = {
|
|
|
534
534
|
],
|
|
535
535
|
options: [],
|
|
536
536
|
examples: [
|
|
537
|
-
{ command: '
|
|
538
|
-
{ command: '
|
|
539
|
-
{ command: '
|
|
540
|
-
{ command: '
|
|
541
|
-
{ command: '
|
|
542
|
-
{ command: '
|
|
537
|
+
{ command: 'flo guidance compile', description: 'Compile CLAUDE.md into policy bundle' },
|
|
538
|
+
{ command: 'flo guidance retrieve -t "Fix auth bug"', description: 'Retrieve relevant guidance' },
|
|
539
|
+
{ command: 'flo guidance gates -c "rm -rf /"', description: 'Check enforcement gates' },
|
|
540
|
+
{ command: 'flo guidance status', description: 'Show control plane status' },
|
|
541
|
+
{ command: 'flo guidance optimize', description: 'Analyze and optimize CLAUDE.md' },
|
|
542
|
+
{ command: 'flo guidance ab-test', description: 'Run A/B behavioral comparison' },
|
|
543
543
|
],
|
|
544
544
|
action: async (ctx) => {
|
|
545
545
|
output.writeln();
|
|
@@ -554,7 +554,7 @@ export const guidanceCommand = {
|
|
|
554
554
|
output.writeln(` ${output.bold('optimize')} Analyze and optimize CLAUDE.md`);
|
|
555
555
|
output.writeln(` ${output.bold('ab-test')} Run A/B behavioral comparison`);
|
|
556
556
|
output.writeln();
|
|
557
|
-
output.writeln(output.dim('Use
|
|
557
|
+
output.writeln(output.dim('Use flo guidance <subcommand> --help for details'));
|
|
558
558
|
return { success: true };
|
|
559
559
|
},
|
|
560
560
|
};
|
|
@@ -182,7 +182,7 @@ async function spawnClaudeCodeInstance(swarmId, swarmName, objective, workers, f
|
|
|
182
182
|
`Worker Count: ${output.highlight(String(workers.length))}`,
|
|
183
183
|
`Worker Types: ${output.highlight(Object.keys(workerGroups).join(', '))}`,
|
|
184
184
|
`Consensus: ${output.highlight(flags.consensus || 'byzantine')}`,
|
|
185
|
-
`MCP Tools: ${output.success('Full
|
|
185
|
+
`MCP Tools: ${output.success('Full moflo integration enabled')}`
|
|
186
186
|
]);
|
|
187
187
|
// Ensure sessions directory exists
|
|
188
188
|
const sessionsDir = join('.hive-mind', 'sessions');
|
|
@@ -361,8 +361,8 @@ const initCommand = {
|
|
|
361
361
|
}
|
|
362
362
|
],
|
|
363
363
|
examples: [
|
|
364
|
-
{ command: '
|
|
365
|
-
{ command: '
|
|
364
|
+
{ command: 'flo hive-mind init -t hierarchical-mesh', description: 'Init hierarchical mesh' },
|
|
365
|
+
{ command: 'flo hive-mind init -c byzantine -m 20', description: 'Init with Byzantine consensus' }
|
|
366
366
|
],
|
|
367
367
|
action: async (ctx) => {
|
|
368
368
|
let topology = ctx.flags.topology;
|
|
@@ -411,8 +411,8 @@ const initCommand = {
|
|
|
411
411
|
].join('\n'), 'Hive Mind Configuration');
|
|
412
412
|
output.writeln();
|
|
413
413
|
output.printInfo('Queen agent is ready to coordinate worker agents');
|
|
414
|
-
output.writeln(output.dim(' Use "
|
|
415
|
-
output.writeln(output.dim(' Use "
|
|
414
|
+
output.writeln(output.dim(' Use "flo hive-mind spawn" to add workers'));
|
|
415
|
+
output.writeln(output.dim(' Use "flo hive-mind spawn --claude" to launch Claude Code'));
|
|
416
416
|
return { success: true, data: result };
|
|
417
417
|
}
|
|
418
418
|
catch (error) {
|
|
@@ -500,11 +500,11 @@ const spawnCommand = {
|
|
|
500
500
|
}
|
|
501
501
|
],
|
|
502
502
|
examples: [
|
|
503
|
-
{ command: '
|
|
504
|
-
{ command: '
|
|
505
|
-
{ command: '
|
|
506
|
-
{ command: '
|
|
507
|
-
{ command: '
|
|
503
|
+
{ command: 'flo hive-mind spawn -n 5', description: 'Spawn 5 workers' },
|
|
504
|
+
{ command: 'flo hive-mind spawn -n 3 -r specialist', description: 'Spawn 3 specialists' },
|
|
505
|
+
{ command: 'flo hive-mind spawn -t coder -p my-coder', description: 'Spawn coder with custom prefix' },
|
|
506
|
+
{ command: 'flo hive-mind spawn --claude -o "Build a REST API"', description: 'Launch Claude Code with objective' },
|
|
507
|
+
{ command: 'flo hive-mind spawn -n 5 --claude -o "Research AI patterns"', description: 'Spawn workers and launch Claude Code' }
|
|
508
508
|
],
|
|
509
509
|
action: async (ctx) => {
|
|
510
510
|
// Parse count with fallback to default
|
|
@@ -673,7 +673,7 @@ const statusCommand = {
|
|
|
673
673
|
output.writeln();
|
|
674
674
|
output.writeln(output.bold('Worker Agents'));
|
|
675
675
|
if (workerData.length === 0) {
|
|
676
|
-
output.printInfo('No workers in hive. Use "
|
|
676
|
+
output.printInfo('No workers in hive. Use "flo hive-mind spawn" to add workers.');
|
|
677
677
|
}
|
|
678
678
|
else {
|
|
679
679
|
output.printTable({
|
|
@@ -763,8 +763,8 @@ const taskCommand = {
|
|
|
763
763
|
}
|
|
764
764
|
],
|
|
765
765
|
examples: [
|
|
766
|
-
{ command: '
|
|
767
|
-
{ command: '
|
|
766
|
+
{ command: 'flo hive-mind task -d "Implement auth module"', description: 'Submit task' },
|
|
767
|
+
{ command: 'flo hive-mind task -d "Security review" -p critical -c', description: 'Critical task with consensus' }
|
|
768
768
|
],
|
|
769
769
|
action: async (ctx) => {
|
|
770
770
|
let description = ctx.flags.description || ctx.args.join(' ');
|
|
@@ -804,7 +804,7 @@ const taskCommand = {
|
|
|
804
804
|
].join('\n'), 'Task Submitted');
|
|
805
805
|
output.writeln();
|
|
806
806
|
output.printSuccess('Task submitted to hive');
|
|
807
|
-
output.writeln(output.dim(` Track with:
|
|
807
|
+
output.writeln(output.dim(` Track with: flo hive-mind task-status ${result.taskId}`));
|
|
808
808
|
return { success: true, data: result };
|
|
809
809
|
}
|
|
810
810
|
catch (error) {
|
|
@@ -1135,16 +1135,16 @@ export const hiveMindCommand = {
|
|
|
1135
1135
|
subcommands: [initCommand, spawnCommand, statusCommand, taskCommand, joinCommand, leaveCommand, consensusCommand, broadcastCommand, memorySubCommand, optimizeMemoryCommand, shutdownCommand],
|
|
1136
1136
|
options: [],
|
|
1137
1137
|
examples: [
|
|
1138
|
-
{ command: '
|
|
1139
|
-
{ command: '
|
|
1140
|
-
{ command: '
|
|
1141
|
-
{ command: '
|
|
1138
|
+
{ command: 'flo hive-mind init -t hierarchical-mesh', description: 'Initialize hive' },
|
|
1139
|
+
{ command: 'flo hive-mind spawn -n 5', description: 'Spawn workers' },
|
|
1140
|
+
{ command: 'flo hive-mind spawn --claude -o "Build a feature"', description: 'Launch Claude Code with hive mind' },
|
|
1141
|
+
{ command: 'flo hive-mind task -d "Build feature"', description: 'Submit task' }
|
|
1142
1142
|
],
|
|
1143
1143
|
action: async () => {
|
|
1144
1144
|
output.writeln();
|
|
1145
1145
|
output.writeln(output.bold('Hive Mind - Consensus-Based Multi-Agent Coordination'));
|
|
1146
1146
|
output.writeln();
|
|
1147
|
-
output.writeln('Usage:
|
|
1147
|
+
output.writeln('Usage: flo hive-mind <subcommand> [options]');
|
|
1148
1148
|
output.writeln();
|
|
1149
1149
|
output.writeln('Subcommands:');
|
|
1150
1150
|
output.printList([
|
|
@@ -1172,8 +1172,8 @@ export const hiveMindCommand = {
|
|
|
1172
1172
|
]);
|
|
1173
1173
|
output.writeln();
|
|
1174
1174
|
output.writeln('Quick Start with Claude Code:');
|
|
1175
|
-
output.writeln(output.dim('
|
|
1176
|
-
output.writeln(output.dim('
|
|
1175
|
+
output.writeln(output.dim(' flo hive-mind init'));
|
|
1176
|
+
output.writeln(output.dim(' flo hive-mind spawn -n 5 --claude -o "Your objective here"'));
|
|
1177
1177
|
return { success: true };
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|