gitnexus 1.6.5-rc.30 → 1.6.5-rc.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,8 +27,18 @@ export interface AnalyzeOptions {
27
27
  verbose?: boolean;
28
28
  /** Skip AGENTS.md and CLAUDE.md gitnexus block updates. */
29
29
  skipAgentsMd?: boolean;
30
- /** Omit volatile symbol/relationship counts from AGENTS.md and CLAUDE.md. */
31
- noStats?: boolean;
30
+ /**
31
+ * Stats inclusion in AGENTS.md and CLAUDE.md.
32
+ *
33
+ * Commander.js represents `--no-stats` as `stats: boolean` (default
34
+ * `true`; `false` when the user passes `--no-stats`), NOT as
35
+ * `noStats: boolean`. Reading the negated form would always be
36
+ * `undefined` and the flag would silently no-op (#1477). Consumers
37
+ * that want "did the user request --no-stats?" should compare with
38
+ * `=== false` to distinguish the explicit-off case from the
39
+ * default-on case.
40
+ */
41
+ stats?: boolean;
32
42
  /** Skip installing standard GitNexus skill files to .claude/skills/gitnexus/. */
33
43
  skipSkills?: boolean;
34
44
  /** Pure index mode: skip all file injection (AGENTS.md, CLAUDE.md, skills). */
@@ -322,7 +322,12 @@ export const analyzeCommand = async (inputPath, options) => {
322
322
  skipGit: options?.skipGit,
323
323
  skipAgentsMd,
324
324
  skipSkills,
325
- noStats: options?.noStats,
325
+ // commander.js `.option('--no-stats', …)` registers the flag as
326
+ // `options.stats` (boolean, default true; `false` when the user
327
+ // passed --no-stats). Reading `options?.noStats` here returns
328
+ // undefined every time, so the flag was a no-op on the markdown
329
+ // rewrite path before this fix. See #1477.
330
+ noStats: options?.stats === false,
326
331
  registryName: options?.name,
327
332
  // Registry-collision bypass — its own CLI flag, intentionally NOT
328
333
  // overloading --force. A user who hits the collision guard should
@@ -393,7 +398,13 @@ export const analyzeCommand = async (inputPath, options) => {
393
398
  communities: s.communities,
394
399
  clusters: aggregatedClusterCount,
395
400
  processes: s.processes,
396
- }, skillResult.skills, { skipAgentsMd, skipSkills, noStats: options?.noStats });
401
+ }, skillResult.skills, {
402
+ skipAgentsMd,
403
+ skipSkills,
404
+ // Mirror runFullAnalysis `noStats` bridge (#1477) — same expression;
405
+ // exercised on the `--skills` path by analyze-no-stats-bridge.test.ts.
406
+ noStats: options?.stats === false,
407
+ });
397
408
  }
398
409
  }
399
410
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.5-rc.30",
3
+ "version": "1.6.5-rc.31",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",