Migrate a Custom TypeScript Agent Loop to the Cursor SDK (@cursor/sdk 1.0.26)
A step-by-step checklist for retiring a hand-rolled while-loop agent and running the same job on @cursor/sdk 1.0.26. The tool bodies survive, the loop does not, and three things you probably rely on have no equivalent: a system prompt string, a tool allowlist, and per-turn control.