Skip to content

feat: registry hardening, structural analysis, single-repo MCP default#19

Merged
carlos-alm merged 4 commits intomainfrom
feat/registry-hardening
Feb 22, 2026
Merged

feat: registry hardening, structural analysis, single-repo MCP default#19
carlos-alm merged 4 commits intomainfrom
feat/registry-hardening

Conversation

@carlos-alm
Copy link
Contributor

Summary

  • Multi-repo registry hardening: pruneRegistry() for stale entries, --repos allowlist for access control, auto-suffix name collisions
  • Structural analysis: new src/structure.js with directory nodes, containment edges, and metrics (symbol density, fan-out, cohesion). New codegraph structure and codegraph hotspots CLI commands
  • Single-repo MCP default: MCP server locked to local project by default; multi-repo requires explicit --multi-repo or --repos opt-in
  • Security: eliminated SQL interpolation in hotspotsData, broke parser.jsconstants.js circular dependency
  • v1.5.0 release notes added to CHANGELOG

Test plan

  • npm test passes all existing + new tests
  • codegraph build . succeeds on self
  • codegraph structure and codegraph hotspots produce expected output
  • codegraph mcp starts in single-repo mode by default
  • codegraph mcp --multi-repo enables multi-repo access
  • codegraph registry prune removes stale entries

Analyze 21 code intelligence tools, rank codegraph #7/22, and
establish 8 core principles (zero-infrastructure, dual engine,
confidence scoring, incremental builds, embeddable-first,
single registry, security defaults, scope boundaries).
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 22, 2026

Greptile Summary

This PR adds v1.5.0 release documentation and hardens the publish workflow. The changes include:

  • Workflow hardening: Added release trigger support to extract version from GitHub release tags, verification that version was actually bumped, and pre-publish check to prevent duplicate npm packages
  • Release notes: Comprehensive v1.5.0 CHANGELOG documenting multi-repo registry hardening, structural analysis features, single-repo MCP default, and security fixes
  • Strategic documentation: New COMPETITIVE_ANALYSIS.md analyzing 21 code graph tools with detailed scoring and roadmap, and FOUNDATION.md establishing 8 core principles for the project
  • Updated comparisons: README comparison table now references actual competitors (code-graph-rag, glimpse, CodeMCP, etc.) instead of outdated tools

All documentation changes follow CLAUDE.md conventions (removed prohibited references). No code changes in this PR - exclusively documentation and CI/CD improvements.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk - exclusively documentation and workflow hardening
  • All changes are documentation updates and CI/CD improvements with no runtime code changes. The workflow enhancements add safety checks (version bump verification, duplicate detection) that reduce publish failures. Documentation is comprehensive and well-researched. Follows CLAUDE.md conventions by removing prohibited references.
  • No files require special attention - all changes are safe

Important Files Changed

Filename Overview
.github/workflows/publish.yml Hardens publish workflow with release trigger support, version bump verification, and npm duplicate check - clean changes with improved safety
CHANGELOG.md Adds v1.5.0 release notes with comprehensive feature/bug/test documentation, removes prohibited reference per CLAUDE.md
COMPETITIVE_ANALYSIS.md New comprehensive competitive analysis of 21 code graph tools with scoring, comparison, and roadmap - well-researched documentation
FOUNDATION.md New foundation document establishing 8 core principles and product positioning - clear architectural philosophy
README.md Updates comparison table to reference actual competitors instead of outdated tools - improves accuracy and relevance

Last reviewed commit: 1571f2a

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

The release trigger had no access to version-override inputs, causing
commit-and-tag-version to fall through to auto-detect which silently
produced the stale version. Now extracts version from the release tag,
verifies the bump actually happened, and checks npm registry before
publishing to catch version conflicts early.
@carlos-alm
Copy link
Contributor Author

Latest: README competitive comparison update

Replaced the feature comparison table with actual competitors from COMPETITIVE_ANALYSIS.md:

Removed (not real competitors):

  • Madge, dep-cruiser, Skott — file-level JS-only tools
  • Nx graph — project-level monorepo tool
  • Sourcetrail — archived since 2021
  • GitNexus — PolyForm Noncommercial license

Added (ranked above us + Claude-code-memory):

Also updated the "How other tools compare" section with descriptions for all new entries, trimmed irrelevant old entries (Sourcegraph, CodeSee, Understand, Snyk Code — different product categories).

@carlos-alm
Copy link
Contributor Author

@greptileai

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@carlos-alm carlos-alm merged commit ea93512 into main Feb 22, 2026
12 checks passed
@carlos-alm carlos-alm deleted the feat/registry-hardening branch February 22, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant