Performs a deep comparison of two functions: computes a similarity score, produces a structural diff, and identifies shared callers and callees. Identify each function by node ID or by file path and line number.
stellarion_find_duplicates or stellarion_find_similar flags a pair — drill into the details| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
uriA | string | No | — | File path of the first function (used with lineA) |
lineA | number | No | — | Line number of the first function (used with uriA) |
uriB | string | No | — | File path of the second function (used with lineB) |
lineB | number | No | — | Line number of the second function (used with uriB) |
nodeIdA | string | No | — | Graph node ID of the first function (alternative to uriA + lineA) |
nodeIdB | string | No | — | Graph node ID of the second function (alternative to uriB + lineB) |
Provide either nodeIdA/nodeIdB or uriA+lineA/uriB+lineB for each function.
Compare the function at src/auth/validate.ts line 15 with the one at src/api/check_auth.ts line 42.
Returns a detailed comparison including similarity score, structural differences, and shared dependencies.
Compare nodes abc123 and def456 — are they duplicates?
Uses node IDs from a previous query (e.g., from stellarion_find_duplicates).
I found two similar functions: processPayment in payment.rs line 30 and handlePayment in checkout.rs line 55.
Can they be merged? Compare them in detail.
The structural diff and shared callers/callees help determine merge feasibility.