Referenced by12
Labels1

Referencing ideas

IdeaStatusTagsSummaryKatz
clickdoneThe [click_ontology] function returns compact local context for one target. Input: an idea name, a `path#idea` ref, a `.rq` file path, or an indexed code file ( [click_input], [click_code_file] ). Resolution uses [click_ambiguity]: no match uses search; more than one match is ranked; one match uses [click_output]. Optional [click_max_detail] flags cap how many names and bodies are listed. Optional `sessionKey` continues a [click_session]. A second click on a centre already clicked in that session returns the connected content ( [click_session] ). Surfaces: CLI `reqlan click` ( [click_cli] ), MCP `click` ( [mcp_server] ), and [native_analysis_api] `click`. MCP search and retrieval use this tool only ( ["../extension/agent/skills-and-mcp.rq".mcp_click_retrieval] ). Engine: [click_rust] on ["./cli_package.rq".architecture] / ["../core_analysis/rust_port.rq".analytical_rust_port]. Related: [function_parity], [commands], [agent_advisory], [click_session], [click_input], [click_max_detail], [click_output].0.190
click_ambiguitydoneEngine function that classifies a name or target as none, unique, or ambiguous. A name is ambiguous when more than one indexed idea or indexed file shares that exact name. Names are unique inside one file ( [idea_name] ); ambiguity is across files. `path#idea` and a full indexed path are unique when that record exists. Click uses this function to choose the [click_input] path and to decide when [click_output] prints a file path next to a name. Outbound [wildcard_reference] targets are ambiguous: print their matching paths. Surfaces: AnalysisApi `checkNameAmbiguity` ( engine ). Click must call it. CLI / MCP exposure is not required.0.091
diffdoneCompare ideas in two git snapshots. The key is the file path plus the [idea_name]. The command reads `.rq` files from git and parses each snapshot. It does not read or write the ideas index. Line position does not count. The same body and attributes at a different line are unchanged. Content is the idea body plus its attributes. Change kinds: - created — the key exists only on the right snapshot - deleted — the key exists only on the left snapshot - modified — the key exists on both snapshots and the content differs - moved — the name exists in exactly one file on each side, the paths differ, and the content is the same The same name in more than one file on one side stays on the path-plus-name key. A renamed idea is deleted plus created. Unchanged ideas are omitted. A reference-only edit stays modified. No arguments: if any `.rq` path is staged, unstaged, or untracked and not gitignored, the left side is `HEAD` and the right side is that pending snapshot. Otherwise the left side is `HEAD~1` and the right side is `HEAD`. A non- `.rq` change does not select the pending snapshot. One argument: that revision against `HEAD`. Two arguments: the first revision against the second. A target is a branch, a commit, `HEAD`, `~N` ( `HEAD~N` ), or `<rev>~N`. The pending snapshot uses the working-tree file for an unstaged edit, the index blob when the working tree matches `HEAD`, and the working-tree file when a path is both staged and unstaged. An untracked `.rq` file that git does not ignore is included. If `HEAD` has no parent, the left snapshot is empty and every idea on `HEAD` is created. A missing revision or a directory that is not a git repository is an error. Exit status is 2. A successful diff exits 0, including an empty diff. When a side is filled by a default, the human CLI and [diff_webview] print a header `Comparing <from> -> <to>` before the rows. Explicit two-argument runs omit that header. `--json` and MCP stay a row array only. Surfaces: CLI `reqlan diff` ( [commands] ), MCP [skills_and_mcp.mcp_diff], and [diff_webview]. Engine: ["../../crates/reqlan-analytical/src/diff.rs"]. Git spawns stay hidden ( [consumption_silence] ). Related: [architecture] [function_parity] [idea] [idea_reference] [diff_verbosity] [diff_cli_color]0.147
check_glob_patternsdone[check] accepts more than one `--glob` pattern. Repeat `--glob` for each pattern. A file is in the recursive scan when it matches any glob. One `--glob` selects the same files as one path glob. A reference target that matches no glob is still checked. That target must resolve. [check] does not walk a directory that matches no glob. A positional path can name a file outside the globs. [check] checks that file. A positional path that is a directory outside the globs is not walked. An empty `--glob` value is an error. API: `AnalysisApi.check({ pathGlobs, paths })`. CLI: ["../cli/cli_package.rq".commands]. MCP: ["../extension/agent/skills-and-mcp.rq".mcp_check]. Related: [check]0.292
check_no_cachedone[check] accepts `--no-cache`. The flag bypasses the on-disk ideas-index SQLite ( `<base>/.reqlan/ideas-index.sqlite` ). This is not the soft mtime skip used by indexer sync ( ["../indexer/indexer.rq".nonblocking_index] ). With the flag, the process does not open, read, or write that SQLite file. [check] builds an in-memory ideas index from source files on disk and reports issues from that view. Default [check] may still open and soft-sync the on-disk ideas index. `--json`, `--pipe`, `--glob`, skip flags, wildcard flags, and [check_verbose] still apply. CLI: ["../cli/cli_package.rq".commands]. API open: `AnalysisRuntime::open_uncached` / `openAnalysisApi({ noCache: true })`. Related: [check] [check_verbose] ["../extension/index-host/index.rq".application_memory] ["../indexer/sqlite-schema.rq".ideas_index_sqlite]0.293
check_skip_gitignored_targetsdone[check] omits a file [reference] issue when Git ignore rules ignore the missing target. The analyser function `check_references` takes `skip_gitignored_targets` ( default false ). Match uses the workspace ["../../.gitignore"] and nested `.gitignore` files on the target path. Match uses the resolved path from the workspace root, not the authored path in the source file. Idea references, comment references, and missing imported idea names stay in the issue list. Missing import paths follow the same skip as file references ( [check_unresolved_imports] ). Use this when a referenced file is build output or editor config that git does not store. Examples: `.cursor/` for ["../extension/agent/chat-participant.rq".mcp], and `packages/extension/media/webviews/` for ["../extension/host/onboarding/page-thanks-for-installing.rq".installation_event]. CLI: `--skip-gitignored-targets` ( ["../cli/cli_package.rq".commands] ). API: `AnalysisApi.check({ skipGitignoredTargets })`. CI: ["../../.github/workflows/ci.yml"] and ["../../azure-pipelines.yml"] pass `--skip-gitignored-targets` because a CI checkout does not contain gitignored files ( [check_meta_implementation] ). Related: [check] [check_skip_targets] [check_unresolved_imports] [check_meta_implementation]0.405
check_skip_targetsdone[check] omits an issue when the missing [reference] target matches a skip glob. The analyser function `check_references` takes `skip_targets`: a list of globs. Match uses the same path glob rules as `--glob`. Match is against the issue `label` ( the missing target ), not the source file. An empty skip glob has no effect. Use this when a referenced file is not in git and you name the skip glob. For all Git ignore rules, use [check_skip_gitignored_targets]. CLI: repeatable `--skip-target <glob>` ( ["../cli/cli_package.rq".commands] ). API: `AnalysisApi.check({ skipTargets })`. Related: [check] [check_skip_gitignored_targets] [check_meta_implementation]0.405
check_unused_importsin-progress`check_references` reports an unused import when the import path resolves, the named idea exists, and the bound name produced by the import specifier or import alias is never referenced in the file body ( no `Local` reference to the bound name, no `Qualified` reference with qualifier = alias, no `IdeaSet` member with that name ). Issue kind is `unused_import`. Severity defaults to `warning` ( controlled by `unusedImports`: `"warn"` | `"error"` | `"off"`, default `"warn"` ). CLI flag: `--unused-imports <warn|error|off>`. Per-file `unusedImports` is read from `.reqlan/config.json` for the source file ' s applying base. Suppressed when the preceding line is `//rq-ignore-error`. Related: [check], [check_unresolved_imports], ["../language/imports.rq".unused_imports], ["../extension/host/configuration.rq".configuration_import_roots].0.163
check_verbosedone[check] accepts `-v`, `-vv`, and `-vvv`. These flags write sync diagnostics to stderr. They do not change stdout, `--json`, or `--pipe` issue output. Default ( no flag ): stderr stays quiet except command errors. `-v`: index mode ( `disk` or `memory` from [check_no_cache] ), sync totals ( indexed, skipped_mtime, errors, processed / total ), and issue count. `-vv`: also one stderr line per sync file action ( `indexed`, `skipped_mtime`, `error`, `skipped` ). `-vvv`: also appends skip and error detail on those file lines. With [check_no_cache], file lines come from the from-source index pass. That pass must not report process-local soft mtime skips against the in-memory rows just written. Default disk check may still report `skipped_mtime` against the on-disk ideas index. API: `openAnalysisApi({ recordFileEvents })` then `checkReport` / `AnalysisRuntime::check_report`. CLI: ["../cli/cli_package.rq".commands]. Related: [check] [check_no_cache] ["../indexer/indexer.rq".nonblocking_index]0.293
ropedoneRope 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
q2_rust_type_errorfixed `parse_sparse_wildcard_handling("unusedImports", unused_imports)?` + pass `Some(unused_imports)` to `.check()`.`reqlan-napi/src/lib.rs` added `unused_imports: Option<String>` to `check_references` but passed `unused_imports.unwrap_or(SparseWildcardHandling::Warn)` to `.check()` which expects `Option<SparseWildcardHandling>`. `unwrap_or` on `Option<String>` requires a `String` default; the enum value caused E0308 in both directions.0.036
napi_module_barreldoneper [stack] `crates/reqlan-napi/src/lib.rs` is a barrel: it only declares modules and re-exports the napi items. Logic lives in one module per binding surface. Modules: `scan.rs` ( scanWorkspace task, createBase ), `analysis.rs` ( NativeAnalysisRuntime ), `sql_db.rs` ( NativeSqlDb ), `workspace_index.rs` ( NativeWorkspaceIndex ), `source.rs` ( parse / extract / local-symbolic source helpers ), `planner.rs` ( barrel / move / delete plan ), `util.rs` ( shared error mappers, wire-JSON helpers ). Invariants: the JS surface and generated napi `.d.ts` do not change; modules stay flat in `src/` so `rq:[...]` comment paths keep `../../../reqlan rq` depth; `rq:` doc comments move with their items; `@implementation` refs in ["../../reqlan rq"] point at the module that holds the item, not the barrel. New analysis bindings must follow ["../core_analysis/rope.rq".rope]: engine item in `reqlan-analytical`, `analysis.rs` binding, AnalysisApi facade, and cross-referenced tests.0.036

Reference labels

"../../crates/reqlan-napi/src/analysis.rs"