Dependencies
Dependency graph operations. Inspect what a definition depends on and what depends on it.
2 methods
client.dependencies.get()
Get the forward dependency graph — what this definition depends on. Includes cycle detection.
Parameters
typerequiredstringDefinition type.
agentcommandworkflowpipelinenamerequiredstringDefinition name.
versionrequiredstringDefinition version.
maxDepthoptionalnumberMaximum graph depth to traverse.
Return Fields
nodesrequiredDependencyNode[]Graph nodes with id, type, name, version, and status.
edgesrequiredDependencyEdge[]Graph edges with from, to, and relationship type.
cycleDetectedrequiredbooleanWhether circular dependencies were detected.
cyclesoptionalstring[][]Detected dependency cycles, if any.
get(type: DefinitionType, name: string, version: string, options?: GetDependenciesOptions): Promise<DependencyGraph>typescript
import { RegistryClient } from '@uluops/registry-sdk';
const client = new RegistryClient({
apiKey: 'ulr_your-api-key',
});
const result = await client.dependencies.get('agent', 'my-project', '1.0.0');
console.log(result.nodes);Response Type
// Promise<DependencyGraph>
{
nodes: DependencyNode[];
edges: DependencyEdge[];
cycleDetected: boolean;
cycles?: string[][];
}client.dependencies.getDependents()
Get the reverse dependency graph — what definitions depend on this one.
Parameters
typerequiredstringDefinition type.
agentcommandworkflowpipelinenamerequiredstringDefinition name.
versionrequiredstringDefinition version.
getDependents(type: DefinitionType, name: string, version: string): Promise<DependencyGraph>typescript
import { RegistryClient } from '@uluops/registry-sdk';
const client = new RegistryClient({
apiKey: 'ulr_your-api-key',
});
const result = await client.dependencies.getDependents('agent', 'my-project', '1.0.0');Response Type
Promise<DependencyGraph>