Code reference detail
rope.ts
packages/cli/src/commands/rope.ts
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| rope | done | Rope is the command / function used for [roping], It is used in the [analysers] and the [cli] / [mcp]. Surface: CLI `reqlan rope <target> [--fray <n>] [--tuning <mode>] [--graph]`, MCP tool `rope`, and AnalysisApi `rope`. Default `fray` is dynamic ( see [dynamic-rope-tuning] ); `--fray <n>` overrides it. Returns the chain of ideas around the target with each idea ' s context, respecting click session deduplication ( [click-store-context-optimisation] ). Ambiguous targets return ranked matches; no match falls through to search. The target may be `@root` ( [rope-graph] ). Implemented by ["../../crates/reqlan-analytical/src/rope.rs"], `rope` in ["../../crates/reqlan-analytical/src/api.rs"], `rope` in ["../../crates/reqlan-napi/src/analysis.rs"], `rope` in ["../../packages/analytical/src/native/native-analysis-api.ts"], ["../../packages/cli/src/commands/rope.ts"], and `handleRopeTool` in ["../../packages/mcp/src/server.ts"]. | 0.065 | |
| rope-graph | done | `--graph` on the CLI `rope` command renders the [rope-output] chain as a linearised graph in the terminal: the root at the top, then box-drawing lines ( `├─`, `└─`, `│` ) to each idea in chain order; the first drawn line runs from the root to the highest-cardinality idea. Each drawn node keeps its context lines, dim hops, and dim score per [rope-output]. Root selection: the target idea is the implicit root. The target `@root` ropes the project root instead: the ideas with no inbound content references ( nothing references them; ideaset membership does not count ) — the project ' s constitution. More than one root lists ranked matches; `@root` resolves before any other target form. `--graph` is a CLI render mode only: JSON and MCP output carry the same `via` rows and stay plain. | 0.045 |
Reference labels
"../../packages/cli/src/commands/rope.ts"