From 2b031f9d35c7ea92d3aac6bbc8ec158f56ff6221 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Mon, 11 May 2026 17:11:54 +0100 Subject: [PATCH] fix(cli): resolve merge conflict markers in analyze.ts (PR #1478) Remove leftover conflict hunks from main merge; keep commander stats shape (stats?: boolean), wire noStats: options?.stats === false into runFullAnalysis and generateAIContextFiles, and retain indexOnly / skipSkills / skipAgentsMd wiring from main. Co-authored-by: Cursor --- gitnexus/src/cli/analyze.ts | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/gitnexus/src/cli/analyze.ts b/gitnexus/src/cli/analyze.ts index 84fa99c3b..15ddbc1ed 100644 --- a/gitnexus/src/cli/analyze.ts +++ b/gitnexus/src/cli/analyze.ts @@ -117,7 +117,6 @@ export interface AnalyzeOptions { verbose?: boolean; /** Skip AGENTS.md and CLAUDE.md gitnexus block updates. */ skipAgentsMd?: boolean; -<<<<<<< fix/no-stats-flag-effective /** * Stats inclusion in AGENTS.md and CLAUDE.md. * @@ -130,14 +129,10 @@ export interface AnalyzeOptions { * default-on case. */ stats?: boolean; -======= - /** Omit volatile symbol/relationship counts from AGENTS.md and CLAUDE.md. */ - noStats?: boolean; /** Skip installing standard GitNexus skill files to .claude/skills/gitnexus/. */ skipSkills?: boolean; /** Pure index mode: skip all file injection (AGENTS.md, CLAUDE.md, skills). */ indexOnly?: boolean; ->>>>>>> main /** Index the folder even when no .git directory is present. */ skipGit?: boolean; /** @@ -462,19 +457,14 @@ export const analyzeCommand = async (inputPath?: string, options?: AnalyzeOption embeddingsNodeLimit, dropEmbeddings: options?.dropEmbeddings, skipGit: options?.skipGit, -<<<<<<< fix/no-stats-flag-effective - skipAgentsMd: options?.skipAgentsMd, + skipAgentsMd, + skipSkills, // commander.js `.option('--no-stats', …)` registers the flag as // `options.stats` (boolean, default true; `false` when the user // passed --no-stats). Reading `options?.noStats` here returns // undefined every time, so the flag was a no-op on the markdown // rewrite path before this fix. See #1477. noStats: options?.stats === false, -======= - skipAgentsMd, - skipSkills, - noStats: options?.noStats, ->>>>>>> main registryName: options?.name, // Registry-collision bypass — its own CLI flag, intentionally NOT // overloading --force. A user who hits the collision guard should @@ -562,13 +552,13 @@ export const analyzeCommand = async (inputPath?: string, options?: AnalyzeOption processes: s.processes, }, skillResult.skills, -<<<<<<< fix/no-stats-flag-effective - // See note above (#1477): commander stores --no-stats as - // `options.stats === false`, not as `options.noStats`. - { skipAgentsMd: options?.skipAgentsMd, noStats: options?.stats === false }, -======= - { skipAgentsMd, skipSkills, noStats: options?.noStats }, ->>>>>>> main + { + skipAgentsMd, + skipSkills, + // See note above (#1477): commander stores --no-stats as + // `options.stats === false`, not as `options.noStats`. + noStats: options?.stats === false, + }, ); } } catch {