claude-flow
Version:
Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration
60 lines • 1.5 kB
TypeScript
/**
* Headless Runtime for Background Workers
* Runs without TTY for daemon processes and scheduled tasks
*
* Usage:
* npx @claude-flow/cli headless --worker <type>
* npx @claude-flow/cli headless --daemon
* npx @claude-flow/cli headless --benchmark
*
* Environment:
* CLAUDE_FLOW_HEADLESS=true
* CLAUDE_CODE_HEADLESS=true
*
* @module v3/cli/runtime/headless
*/
import { type HeadlessWorkerType } from '../services/headless-worker-executor.js';
interface HeadlessConfig {
mode: 'worker' | 'daemon' | 'benchmark' | 'status';
workerType?: HeadlessWorkerType;
timeout?: number;
verbose?: boolean;
}
interface BenchmarkResults {
sona: {
avgMs: number;
targetMet: boolean;
};
flashAttention: {
throughputPerMs: number;
speedup: number;
};
hnsw: {
entriesIndexed: number;
searchTime: number;
};
}
/**
* Run a specific worker
*/
declare function runWorker(workerType: HeadlessWorkerType, timeout: number): Promise<void>;
/**
* Run daemon mode
*/
declare function runDaemon(): Promise<void>;
/**
* Run benchmarks
*/
declare function runBenchmarks(): Promise<BenchmarkResults>;
/**
* Show system status
*/
declare function showStatus(): Promise<void>;
/**
* Main entry point
*/
declare function main(): Promise<void>;
export { main, runWorker, runDaemon, runBenchmarks, showStatus };
export type { HeadlessConfig, BenchmarkResults };
//# sourceMappingURL=headless.d.ts.map