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 edit:

rUvb68a57af8415
diff --git a/v3/@claude-flow/integration/src/index.ts b/v3/@claude-flow/integration/src/index.ts
index 3055686643..c4a06a9b36 100644
--- a/v3/@claude-flow/integration/src/index.ts
+++ b/v3/@claude-flow/integration/src/index.ts
@@ -274,6 +274,27 @@ export {
IntegrationError,
} from './types.js';
+// ===== Multi-Model Router (Cost Optimization) =====
+export {
+ MultiModelRouter,
+ createMultiModelRouter,
+ getDefaultMultiModelRouter,
+} from './multi-model-router.js';
+
+export type {
+ ProviderType as RouterProviderType,
+ ModelConfig,
+ ProviderConfig,
+ RoutingRule,
+ RoutingMode,
+ CacheConfig,
+ BudgetConfig,
+ MultiModelRouterConfig,
+ RouteRequest,
+ RouteResult,
+ RouterStats,
+} from './multi-model-router.js';
+
// ===== Quick Start Utilities =====
/**
diff --git a/v3/@claude-flow/swarm/src/workers/index.ts b/v3/@claude-flow/swarm/src/workers/index.ts
new file mode 100644
index 0000000000..26722bcdbc
--- /dev/null
+++ b/v3/@claude-flow/swarm/src/workers/index.ts
@@ -0,0 +1,64 @@
+/**
+ * @claude-flow/swarm/workers
+ * Worker Dispatch Module (agentic-flow@alpha compatible)
+ *
+ * Provides background worker functionality with 12 trigger types
+ * for analysis, optimization, and automation tasks.
+ *
+ * Triggers:
+ * - ultralearn: Deep pattern learning
+ * - optimize: Code/performance optimization
+ * - consolidate: Memory consolidation
+ * - predict: Predictive analysis
+ * - audit: Security/quality audit
+ * - map: Codebase mapping
+ * - preload: Context preloading
+ * - deepdive: Deep code analysis
+ * - document: Documentation generation
+ * - refactor: Code refactoring suggestions
+ * - benchmark: Performance benchmarking
+ * - testgaps: Test coverage analysis
+ *
+ * @module @claude-flow/swarm/workers
+ * @version 3.0.0-alpha.1
+ */
+
+export {
+ WorkerDispatchService,
+ getWorkerDispatchService,
+ type WorkerTrigger,
+ type WorkerStatus,
+ type WorkerPriority,
+ type TriggerConfig,
+ type WorkerInstance,
+ type WorkerResult,
+ type WorkerDispatchOptions,
+ type TriggerDetectionResult,
+ type WorkerStats,
+} from './worker-dispatch.js';
+
+// Re-export trigger types for convenience
+export const WORKER_TRIGGERS = [
+ 'ultralearn',
+ 'optimize',
+ 'consolidate',
+ 'predict',
+ 'audit',
+ 'map',
+ 'preload',
+ 'deepdive',
+ 'document',
+ 'refactor',
+ 'benchmark',
+ 'testgaps',
+] as const;
+
+export const WORKER_PRIORITIES = ['low', 'normal', 'high', 'critical'] as const;
+
+export const WORKER_STATUSES = [
+ 'pending',
+ 'running',
+ 'completed',
+ 'failed',
+ 'cancelled',
+] as const;