Skip to content

refactor: unify JSON-to-graph conversion, remove GraphConfig#11

Merged
sonesuke merged 6 commits intomainfrom
refactor/unified-json-to-graph
Apr 5, 2026
Merged

refactor: unify JSON-to-graph conversion, remove GraphConfig#11
sonesuke merged 6 commits intomainfrom
refactor/unified-json-to-graph

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

@sonesuke sonesuke commented Apr 5, 2026

Summary

  • Unify JSON-to-graph conversion into a single code path, removing GraphConfig abstraction
  • Remove src/config.rs entirely
  • Simplify devcontainer config (remove tmux/vim, update model versions, add gh config mount)
  • Apply rustfmt and use is_some_and idiom

Test plan

  • cargo test — 69 unit tests + 10 doc tests passing
  • cargo clippy — no warnings
  • cargo fmt — clean

🤖 Generated with Claude Code

sonesuke and others added 6 commits April 5, 2026 09:21
All JSON objects are now converted to a graph using a single unified
strategy: the root object becomes a node, nested arrays become child
nodes connected by edges named after the array key, and scalar fields
become properties. This eliminates the need for separate modes or
manual configuration.

- Remove GraphConfig, from_json_config, and config.rs entirely
- Remove GraphConfig parameter from storage trait methods
- Simplify API to two constructors: from_json_auto and from_json_with_label
- Update README to reflect the simplified API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ersions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke merged commit 0f8d187 into main Apr 5, 2026
4 checks passed
@sonesuke sonesuke deleted the refactor/unified-json-to-graph branch April 5, 2026 09:32
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