Skip to content

feat: suggest reviewable migration adapters from diffs (#62) - #139

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/adapter-suggestions-c2a5
Sep 18, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/adapter-suggestions-c2a5

Conversation

@askmy-stack

Copy link
Copy Markdown
Owner

Summary

Implements #62: generate reviewable MigrationAdapter drafts from rename / schema diffs.

Changes

  • Library: tool_semantics.suggest.suggest_adapter → AdapterSuggestion (adapter + confidence notes, always auto_apply=false)
  • CLI: tool-semantics suggest-adapter BASELINE CANDIDATE -o adapter.json
  • Suggestions for tool.renamed, sole remove+add aliases, parameter renames, unambiguous enum remaps; skips required-param adds and tied/ambiguous enums
  • Docs: docs/adapters.md confidence limits + usage
  • Tests: github v1→v2 fixtures + CLI smoke test

Acceptance criteria

  • Suggested adapter draft (aliases, arg maps, enum remaps when unambiguous)
  • Reviewable JSON — never auto-applied (auto_apply=false)
  • Document confidence limits
  • CLI + library helper
  • Tests with github_server_v1 → v2 style fixtures
  • Docs in docs/adapters.md

Closes #62.

Open in Web Open in Cursor 

Add suggest_adapter library helper and suggest-adapter CLI that drafts
ToolAlias / ArgumentMap / EnumMap JSON from rename and schema signals.
Drafts always set auto_apply=false with confidence notes; never applied by CI.

Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>
@askmy-stack
askmy-stack marked this pull request as ready for review September 18, 2026 18:22
Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>
@cursor
cursor Bot merged commit ce28e32 into main Sep 18, 2026
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.

Automate migration adapter suggestions from rename / schema diffs

2 participants