Repository navigation
refactor(orcad): move the Node host adapters out of orcad-entry.ts (fix main lint) - #28530
Conversation
Fixes main's lint: #28464 left orcad-entry.ts at 301 lines (max 300). No behaviour change.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
…code adoption Adopt upstream's orcad-host-adapters extraction (drop our duplicate). Keep ZCode in the CLI-conversation adoption map under upstream's new row-agent shape. Port upstream's agent-aware preparation-failure notification into the extracted ai-vault-session-launch-target-notify module the merged call sites use.
ELI5
Main's lint check fails because one file grew one line past the size limit. This moves a self-contained piece of that file into its own file. Nothing behaves differently.
What Changed
src/main/orcad/orcad-host-adapters.tsholds the Node server's stand-ins for Electron's app environment and secret store (installOrcadHostAdapters, the quit-handler runner), moved verbatim fromorcad-entry.ts.orcad-entry.tsimports them; it drops from 420 to ~350 physical lines and back under the 300-line lint limit.installOrcadHostAdaptersfromorcad-entrynow import it from the new module.Why
#28464 pushed
orcad-entry.tsto 301 counted lines, so the Lint step on main (and every PR) fails. The host adapters are a cohesive unit with no dependency on the startup sequence, so they split out cleanly; disablingmax-linesis not allowed.Linked Issue
N/A (main lint fix)
Visual Proof
N/A: refactor with no behaviour change.
Testing
pnpm tc:node, oxlint on changed files,pnpm run check:code-quality:changed,check:max-lines-ratchetall pass.orcad-entry,orcad-forked-child-paths,orcad-wsl-guest-shell-path,orcad-launch-contract,orcad-push-startuptests pass (34).Automated tests added/updated, or explained why not below (existing tests cover the moved code)