Skip to main content

Module git_tools

Module git_tools 

Source
Expand description

Git-integrated MCP tools for CodeGraph versioning.

Provides 4 tools that integrate with nusy-arrow-git:

  • codegraph_commit — snapshot CodeGraph state to Parquet
  • codegraph_checkout — restore CodeGraph state from a commit
  • codegraph_diff — object-level diff between CodeGraph states
  • codegraph_merge — 3-way merge with conflict detection

These operate on CodeNode/CodeEdge RecordBatches, delegating persistence and versioning to nusy-arrow-git primitives.

Structs§

CodeConflict
A conflict detected during merge.
CodeDiffEntry
A single entry in a CodeGraph diff.
CodeDiffResult
Result of a CodeGraph diff.
CodeMergeResult
Result of a 3-way merge.
MergeWarning
A warning about potential interaction between changes.
SmartMergeResult
Result of a smart merge (standard merge + interaction warnings).

Enums§

CodeDiffChangeType
The type of change in a diff.
GitToolError
Errors from git tool operations.

Functions§

codegraph_diff
Compute an object-level diff between two CodeNodes batches.
codegraph_merge
3-way merge of CodeNodes batches.
smart_merge
Smart 3-way merge with interaction warning detection.

Type Aliases§

Result