link_repos
Record a dependency relationship between two repositories in the organization graph, such as imports or API calls.
Instructions
Record a dependency relationship between two repos in the org graph. Call this when you discover that one repo imports from or calls another.
relationship: 'imports' | 'calls_api' | 'shares_schema' | 'discovered' | 'child_of' src_repo / dst_repo: absolute filesystem paths to the repos. service_type: optional — 'rest_api', 'grpc', 'worker', 'frontend', 'library' port: optional — port number the destination service listens on api_base_url: optional — base URL/path prefix for the destination's API
Do NOT call for repos not yet registered via cognirepo init. Returns: {linked: True, edge: {src, dst, kind}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src_repo | Yes | ||
| dst_repo | Yes | ||
| relationship | No | imports | |
| note | No | ||
| service_type | No | ||
| port | No | ||
| api_base_url | No |