refactor(adapters-cursor): isolate desktop executor type contract (split S04 L0/5) - #3557
refactor(adapters-cursor): isolate desktop executor type contract (split S04 L0/5)#3557lidge-jun wants to merge 2 commits into
Conversation
|
✅ READY
Hygiene✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe PR moves ChangesDesktop executor contract
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change relocates the desktop executor configuration type without changing runtime execution behavior. Compatibility and import-boundary coverage are present, so no merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 64 / 80이 PR은 Cursor 어댑터 분할 열차(S04)의 맨 아래 칸(L0/5)입니다. 지금 라인 desktop-executor-contract.ts:6–15 - 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Ingwannu
left a comment
There was a problem hiding this comment.
Approved on exact head 97df51515c22ccd610665989aa940f15bc3bca24.
This is a clean type-graph boundary change: DesktopExecutorConfig moved unchanged into a dependency-free contract leaf, the historical type export from native-exec-desktop.ts remains compatible, and OcxProviderConfig now references only the erased contract path. The added regression verifies both import surfaces remain structurally identical and prevents src/types/provider.ts from regaining the implementation edge that closes the cycle.
No runtime execution path or configuration semantics changed. Diff hygiene, the focused Cursor executor coverage in the exact-head suite, typecheck, privacy gates, React Doctor, and full cross-platform CI are green. No unresolved current-head review thread remains.
|
Superseded by aggregate PR #3668, admin-merged into dev as 6585e6a after exact-head CI and tested-tree verification. This original PR was not individually merged; its rebased content and historical records were consolidated in #3668. The original branch is preserved. Further unimplemented debt layers remain deferred. |
Summary
DesktopExecutorConfig(15 lines,src/adapters/cursor/native-exec-desktop.ts:23–37) moves verbatim to a dependency-freesrc/adapters/cursor/desktop-executor-contract.ts;native-exec-desktop.tskeeps the historical export viaexport type { DesktopExecutorConfig } from "./desktop-executor-contract"plus a localimport type;src/types/provider.ts:701retargets its inlineimport()type to the contract.src/types/provider.ts → native-exec-desktop.ts → native-exec-tools.ts → tool-definitions.ts → src/types.tsso the upcoming cursor adapter split layers cannot join that cycle. Zero runtime change (every added/changed binding is erased).devlog/_plan/260905_now_split_train/105_cursor_desktop_executor_contract.md; parent decisions in003_parent_decisions.md(TYPE-CYCLE-01, PURE-MOVE-SIZE-01).Stack (merge bottom-up; S04 adapters-cursor):
Base: dev. Review this PR's diff only (3 files, +18/−16; non-move diff 4 lines). Move-aware view:
git diff --color-moved=dimmed-zebra dev...HEAD.Verification
bun run typecheck→ exit 0bun test tests/providers/cursor/cursor-desktop-exec.test.ts→ 14 pass / 0 failbun run privacy:scan→ passedwc -l: contract 15, native-exec-desktop 194 (was 207), provider.ts 723 (unchanged count){DesktopExecutorConfig, desktopDepsFromConfig}both sides; independent read-only review (gpt-6-astra) confirmed byte-identical move and zero new runtime imports.lidge) at this exact SHA: recorded in the devlog doc once it completes.Checklist
Summary by CodeRabbit