UNPKG

@sethdouglasford/claude-flow

Version:

Claude Code Flow - Advanced AI-powered development workflows with SPARC methodology

33 lines 917 B
/** * Shared type definitions for CLI commands */ // Type guards export function isAgentListOptions(options) { return options && (options.type !== undefined || options.status !== undefined || options.unhealthy !== undefined || options.detailed !== undefined || options.sort !== undefined); } export function isMemoryKey(obj) { return obj && typeof obj.key === "string" && typeof obj.type === "string" && typeof obj.size === "number"; } // Error types export class CommandError extends Error { code; constructor(message, code = "COMMAND_ERROR") { super(message); this.code = code; this.name = "CommandError"; } } export class ValidationError extends CommandError { constructor(message) { super(message, "VALIDATION_ERROR"); this.name = "ValidationError"; } } //# sourceMappingURL=types.js.map