gsxdsm
bccb552211
FN-7697: fix Cursor CLI auth-status and model-list discovery
Corrects the Cursor plugin's CLI integration to match cursor-agent's real command contract instead of best-effort heuristics.
- Derive authentication from `cursor-agent status --format json` (`isAuthenticated` field), failing closed with an actionable reason on non-zero exit or malformed JSON, instead of treating `--version` success as auth-ready.
- Switch model discovery to `cursor-agent models` plain-text output (`id - Label` lines), filtering header/tip/empty-state lines, since `--json`/`model list` are not supported.
- Update README to document the corrected CLI usage.
- Add regression tests covering probe.ts auth-status parsing and process-manager.ts model discovery.
- Add changeset (patch) documenting the fix.
Files changed:
.changeset/fn-7697-cursor-cli.md | 7 ++
plugins/fusion-plugin-cursor-runtime/README.md | 3 +-
.../src/__tests__/probe.test.ts | 94 +++++++++++++++++++---
.../src/__tests__/process-manager.test.ts | 89 +++++++++++++-------
plugins/fusion-plugin-cursor-runtime/src/probe.ts | 39 +++++++--
.../src/process-manager.ts | 84 ++++++++++++-------
6 files changed, 239 insertions(+), 77 deletions(-)
Fusion-Task-Id: FN-7697
Fusion-Task-Lineage: 6dd56a7f-da8f-4a73-82ff-5e9baab697c5
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-08 23:39:33 -07:00
..
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 23:39:33 -07:00
2026-07-08 22:30:29 -07:00
2026-07-08 16:27:10 -07:00
2026-07-01 20:40:02 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-04-09 20:19:43 -07:00