Skip to content

Add Cursor SDK backend and variant slug resolution#93

Open
Moumouls wants to merge 1 commit into
vercel-labs:mainfrom
Moumouls:cursor-sdk-variant-slugs
Open

Add Cursor SDK backend and variant slug resolution#93
Moumouls wants to merge 1 commit into
vercel-labs:mainfrom
Moumouls:cursor-sdk-variant-slugs

Conversation

@Moumouls

Copy link
Copy Markdown

Summary

  • add a built-in Cursor SDK backend for process, revalidate, and triage, including CLI/preflight/docs coverage
  • resolve Cursor model ids, aliases, and combined option slugs against Cursor.models.list() while keeping composer-2.5 on fast=false by default
  • add focused tests plus live smoke-test validation so the Cursor path appears complete end to end

Test plan

  • pnpm exec vitest run packages/processor/src/__tests__/cursor-model.test.ts packages/processor/src/__tests__/cursor-sdk.test.ts packages/processor/src/__tests__/triage.test.ts
  • pnpm --filter @deepsec/processor build && pnpm --filter deepsec build
  • live triage smoke test with composer-2.5
  • live triage smoke test with gpt-5.4-high
  • live resolver check for gpt-5.4-high-1m and gpt-5.4-1m-high
  • live process smoke test with composer-2.5
  • live process smoke test with gpt-5.4-high

Wire process, revalidate, and triage through the Cursor SDK with account-aware model resolution so Cursor aliases and combined option slugs work while composer-2.5 stays on the non-fast default tier.
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@Moumouls is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​cursor/​sdk@​1.0.1881100799880

View full report

@Moumouls

Copy link
Copy Markdown
Author

Sorry @cramforce, the full integration turned out heavier than I expected. PR built with Cursor and GPT-5.4 High.

Anyone with a Cursor subscription can use every model and option available in their Cursor account.

return resultText;
}

async function runCursorTriagePrompt(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor triage backend instructs the model to read source files, contradicting triage's documented "lightweight, finding-text-only" design and the CLI's "triage uses finding text only" message.

Fix on Vercel

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.

1 participant