#376

feat: add zero graph diff command (#348-PR2)

OpenTumCucTomwants to merge intofrom

Summary

Implement #348-PR2: Node-level "what changed" diff.

Adds a new zero graph diff --base <a> <b> --json command that computes a real changeset between two graph versions, keyed on the stable node identity established by #355.

JSON Output

{
  "schemaVersion": 1,
  "ok": true,
  "leftNodeCount": N,
  "rightNodeCount": M,
  "diffs": [
    {"kind": "added", "nodeId": "...", "nodeKind": "Function", "name": "foo"},
    {"kind": "removed", "nodeId": "...", "nodeKind": "Function", "name": "bar"},
    {"kind": "modified", "nodeId": "...", "field": "value", "leftValue": "300", "rightValue": "301"}
  ]
}

Acceptance Criteria

  • A value edit shows as one modified entry (not add+remove)
  • Add/delete classified correctly via stable node ID matching
  • Read-only operation (cannot corrupt a graph)
  • Conformance test added

Activity

13
vercel[bot]5mo ago

@TumCucTom is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot]reviewed5mo ago
vercel[bot]5mo ago

Additional Suggestion:

The zero graph diff subcommand is registered, routed, and tested but missing from z_program_graph_print_command_help() and docs/articles/cli-reference.md, making it undiscoverable.

vercel[bot]reviewed5mo ago
vercel[bot]reviewed5mo ago