Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUvae835c358308
diff --git a/v3/@claude-flow/cli/src/index.ts b/v3/@claude-flow/cli/src/index.ts
index ef8498e6cb..b92ae6953c 100644
--- a/v3/@claude-flow/cli/src/index.ts
+++ b/v3/@claude-flow/cli/src/index.ts
@@ -369,6 +369,38 @@ export class CLI {
this.output.writeln(`${this.name} v${this.version}`);
}
+ /**
+ * Check for updates on startup (non-blocking)
+ * Shows notification if updates are available
+ */
+ private async checkForUpdatesOnStartup(): Promise<void> {
+ try {
+ const result = await runStartupUpdateCheck({ autoUpdate: true });
+
+ // Show notifications for available updates that weren't auto-applied
+ if (result.checked && result.updatesAvailable.length > 0) {
+ const nonAutoUpdates = result.updatesAvailable.filter(u => !u.shouldAutoUpdate);
+
+ if (result.updatesApplied.length > 0) {
+ this.output.writeln(
+ this.output.dim(`Auto-updated: ${result.updatesApplied.join(', ')}`)
+ );
+ }
+
+ if (nonAutoUpdates.length > 0) {
+ this.output.writeln(
+ this.output.dim(`Updates available: ${nonAutoUpdates.map(u => `${u.package}@${u.latestVersion}`).join(', ')}`)
+ );
+ this.output.writeln(
+ this.output.dim(`Run 'claude-flow update check' for details`)
+ );
+ }
+ }
+ } catch {
+ // Silently fail - don't interrupt CLI usage
+ }
+ }
+
/**
* Load configuration file
*/