Skip to content

feat(snapshot): export-snapshot + import-snapshot — share CodeLens graph across team (closes #12)#107

Merged
Wolfvin merged 1 commit into
mainfrom
feat/12-snapshot-export-import
Jun 30, 2026
Merged

feat(snapshot): export-snapshot + import-snapshot — share CodeLens graph across team (closes #12)#107
Wolfvin merged 1 commit into
mainfrom
feat/12-snapshot-export-import

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

Implements issue #12: team graph snapshot export/import.

Commands

  • codelens export-snapshot [--output path] — export graph as .gz
  • codelens import-snapshot [--input path] [--merge] — restore graph

Files

  • New: scripts/commands/export_snapshot.py
  • New: scripts/commands/import_snapshot.py
  • New: scripts/snapshot_io.py (shared snapshot format helpers)
  • New: tests/test_snapshot.py (15 round-trip + merge + validation tests)
  • Synced: docs/metadata command counts (63 → 65) via sync_command_count.py

Verification

  • Tests: 802 passed, 87 skipped, 1 pre-existing unrelated failure (test_hybrid_engine query confidence — environment-dependent, failing on baseline before this PR)
  • Round-trip: export → import → query = same results (graph-schema matches; all 5 tables match row-for-row)
  • Snapshot size on smoke fixture: 592 B (gzip-compressed JSON)
  • Constraint honored: snapshot contains graph metadata only — no file content (files table stores content_hash, not bytes)

Closes #12

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@sonarqubecloud

Copy link
Copy Markdown

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.

[FEATURE] Team-shared graph snapshot: commit compressed index to repo

1 participant