UNPKG

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

28 lines 1.48 kB
/** * V3 CLI Daemon Command * Manages background worker daemon (Node.js-based, similar to shell helpers) */ import type { Command } from '../types.js'; /** * #1914: Resolve the `--workspace` flag to an absolute path, or return null * if it is absent / not a usable string. Rejects values with null bytes or * shell metacharacters (defence-in-depth — the value is later embedded in a * forked child's argv and compared against `ps`/`tasklist` output). */ export declare function resolveWorkspaceFlag(raw: unknown): string | null; /** * #1914: True when a process command line (from `ps -eo command` on POSIX or * the tasklist Window Title column on Windows) belongs to a daemon started * for `workspaceRoot`. The launcher (`startBackgroundDaemon`) always appends * `--workspace <root>` as the FINAL argv entry, so an exact trailing match * after stripping trailing whitespace/quotes is unambiguous — even for * workspace paths containing spaces — and never a bare path-prefix match, * so workspace `/a/proj` does not reap `/a/proj-other`'s daemon. A daemon * whose argv puts `--workspace` mid-list (only possible via a hand-rolled * invocation) simply won't be auto-reaped — `daemon stop` still handles it * via the PID file. */ export declare function daemonCommandLineBelongsToWorkspace(commandLine: string, workspaceRoot: string): boolean; export declare const daemonCommand: Command; export default daemonCommand; //# sourceMappingURL=daemon.d.ts.map