Skip to content

feat: sphinx-needs JSON import adapter (migration path)#143

Merged
avrabe merged 1 commit intomainfrom
worktree-agent-a7a0556a
Apr 13, 2026
Merged

feat: sphinx-needs JSON import adapter (migration path)#143
avrabe merged 1 commit intomainfrom
worktree-agent-a7a0556a

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 13, 2026

Summary

Wires the existing needs-json import adapter into the CLI:

rivet import-results --format needs-json needs.json --output artifacts/
  • Reads sphinx-needs needs.json export format
  • Maps needs types, links, tags, status to rivet artifacts
  • ID normalization (underscore → hyphen)
  • Configurable type mapping and link type
  • Outputs generic YAML for immediate use with rivet validate

This provides the migration path for projects currently using sphinx-needs.

Implements: REQ-025

🤖 Generated with Claude Code

Add needs-json format support to the import-results CLI command,
enabling sphinx-needs users to import their needs.json exports into
rivet as generic YAML artifacts.

The core adapter (rivet-core/src/formats/needs_json.rs) was already
implemented with full support for type mapping, ID normalization
(underscore to hyphen), configurable link types, tag/status
preservation, and extra field forwarding. This commit wires it into
the CLI's import-results command so users can run:

  rivet import-results --format needs-json needs.json --output artifacts/

Implements: REQ-025

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 1c38ff9 Previous: 9db1988 Ratio
link_graph_build/10000 28806377 ns/iter (± 2857931) 23949147 ns/iter (± 1257918) 1.20

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 7588c3c into main Apr 13, 2026
17 of 20 checks passed
@avrabe avrabe deleted the worktree-agent-a7a0556a branch April 13, 2026 18:05
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