parseVersion (registry/dependency-graph.ts)

ruflo · v3/@claude-flow/plugins/src/registry/dependency-graph.ts · typescript · MIT
automation

* Dependency Graph Manages plugin dependencies with version constraint checking, safe unload detection, and topological sorting. / ============================================================================ Types

// Source: https://github.com/ruvnet/ruflo | License: MIT | Copyright 2024-2026 ruvnet
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Dependency Graph
 *
 * Manages plugin dependencies with version constraint checking,
 * safe unload detection, and topological sorting.
 */

// ============================================================================
// Types
// ============================================================================

export interface PluginDependency {
  name: string;
  version: string;        // Semver range: "^3.0.0", ">=2.1.0 <3.0.0", "*"
  optional?: boolean;     // Don't fail if missing
  peerDependency?: boolean;
}

export interface DependencyNode {
  name: string;
  version: string;
  dependencies: PluginDependency[];
}

export interf

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key