Skip to content

Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.

Merge remote-tracking branch 'origin/main' into feat/language-breadth-lsp

Shrish Dwivedi43c80ecf85d2
diff --cc src/cli.ts
index 1c5a9106,ce2c14cf..43b0cfc7
--- a/src/cli.ts
+++ b/src/cli.ts
@@@ -247,13 -263,13 +265,14 @@@ progra
.option("--full", "with --source: inline whole definition spans instead of the default ≤8-line crux excerpts")
.option("--in <path>", "narrow to nodes under this path prefix, filtered before scoring (segment-aware, like scopeOf)")
.option("--json", "output the result as JSON")
+ .option("--no-graph-rank", "rank by lexical relevance only, without the graph-connectivity re-rank (ablation/eval)")
.option(...NO_REFRESH_FLAG)
- .action(async (query: string, dir: string, opts: { limit: string; source?: boolean; full?: boolean; in?: string; json?: boolean; refresh?: boolean; graphRank?: boolean }) => {
- .action(async (query: string, dirArg: string | undefined, opts: { limit: string; source?: boolean; full?: boolean; in?: string; json?: boolean; refresh?: boolean }) => {
++ .action(async (query: string, dirArg: string | undefined, opts: { limit: string; source?: boolean; full?: boolean; in?: string; json?: boolean; refresh?: boolean; graphRank?: boolean }) => {
+ const dir = queryRoot(dirArg);
await refreshBefore(dir, opts);
const askGlobalDir = program.opts<GlobalOpts>().dir;
- if (readWorkspace(resolve(dir), askGlobalDir)) {
- runWorkspaceAsk(resolve(dir), askGlobalDir, query, {
+ if (readWorkspace(dir, askGlobalDir)) {
+ runWorkspaceAsk(dir, askGlobalDir, query, {
limit: Number(opts.limit), source: opts.source, full: opts.full, in: opts.in, json: opts.json,
});
return;
@@@ -294,13 -311,14 +314,14 @@@ progra
program
.command("check")
.description("Fail if graft/ is stale relative to the code (for CI)")
- .argument("[dir]", "repository root", ".")
+ .argument(...DIR_ARG)
.option("-e, --extensions <exts...>", "code extensions to include")
.option("--json", "output the drift as JSON")
- .action(async (dir: string, opts: { extensions?: string[]; json?: boolean }) => {
- .action((dirArg: string | undefined, opts: { extensions?: string[]; json?: boolean }) => {
++ .action(async (dirArg: string | undefined, opts: { extensions?: string[]; json?: boolean }) => {
+ const dir = queryRoot(dirArg);
const checkGlobalDir = program.opts<GlobalOpts>().dir;
- if (readWorkspace(resolve(dir), checkGlobalDir)) {
- await runWorkspaceCheck(resolve(dir), checkGlobalDir);
+ if (readWorkspace(dir, checkGlobalDir)) {
- runWorkspaceCheck(dir, checkGlobalDir);
++ await runWorkspaceCheck(dir, checkGlobalDir);
return;
}
const engine = engineFrom();