[PR #2] [MERGED] feat: add Cursor AI support #13

Closed
opened 2026-03-04 01:39:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yigitkonur/cli-continues/pull/2
Author: @Evrim267
Created: 2/19/2026
Status: Merged
Merged: 2/20/2026
Merged by: @yigitkonur

Base: mainHead: feat/cursor-support


📝 Commits (1)

  • 0a91977 feat: add Cursor AI support

📊 Changes

12 files changed (+616 additions, -19 deletions)

View changed files

📝 src/__tests__/conversions.test.ts (+7 -1)
📝 src/__tests__/e2e-conversions.test.ts (+8 -4)
📝 src/__tests__/extract-handoffs.ts (+4 -1)
📝 src/__tests__/fixtures/index.ts (+80 -0)
📝 src/__tests__/unit-conversions.test.ts (+85 -5)
📝 src/cli.ts (+13 -4)
src/parsers/cursor.ts (+395 -0)
📝 src/parsers/index.ts (+1 -0)
📝 src/types/index.ts (+1 -1)
📝 src/utils/index.ts (+6 -2)
📝 src/utils/markdown.ts (+1 -0)
📝 src/utils/resume.ts (+15 -1)

📄 Description

Summary

  • Add Cursor AI as the 7th supported platform
  • New parser (src/parsers/cursor.ts) that discovers and parses agent-transcript JSONL files from ~/.cursor/projects/*/agent-transcripts/
  • Extracts conversation history, tool usage (Anthropic-style tool_use/tool_result blocks), and thinking/reasoning highlights
  • Strips <user_query> wrapper tags from Cursor's user messages
  • Derives working directory from project slug path
  • Full integration across all modules: types, index, resume, CLI quick-command (continues cursor), source colors
  • Test fixtures and 42 cross-tool conversion paths (7×6) all passing (111 tests)

Files Changed

File Change
src/parsers/cursor.ts New — Cursor session parser
src/types/index.ts Add 'cursor' to SessionSource union
src/parsers/index.ts Barrel export
src/utils/index.ts Wire into buildIndex() and extractContext()
src/utils/markdown.ts Add 'Cursor AI' to SOURCE_LABELS
src/utils/resume.ts Native resume, cross-tool handoff, tool detection
src/cli.ts Color (blueBright), quick-resume command, help texts
src/__tests__/fixtures/index.ts createCursorFixture()
src/__tests__/unit-conversions.test.ts Cursor parser tests + 42 conversion paths
src/__tests__/conversions.test.ts Cursor integration
src/__tests__/e2e-conversions.test.ts Cursor integration
src/__tests__/extract-handoffs.ts Cursor integration

Test plan

  • TypeScript compiles with no errors (tsc --noEmit)
  • All 111 unit tests pass (vitest run)
  • Build succeeds (tsc)
  • Manual test with real Cursor agent-transcripts on a machine with Cursor installed

Summary by CodeRabbit

Release Notes

  • New Features

    • Added support for Cursor AI as a new session source. Parse and extract context from Cursor transcripts located at ~/.cursor/projects/*/agent-transcripts/.
    • Introduced new cursor [n] CLI command to resume the Nth newest Cursor session.
    • Enabled cross-tool handoffs between Cursor and other supported tools.
    • Cursor sessions now appear in session listing and picking workflows.
  • Tests

    • Extended test coverage to verify Cursor source support across all conversion and handoff scenarios.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/yigitkonur/cli-continues/pull/2 **Author:** [@Evrim267](https://github.com/Evrim267) **Created:** 2/19/2026 **Status:** ✅ Merged **Merged:** 2/20/2026 **Merged by:** [@yigitkonur](https://github.com/yigitkonur) **Base:** `main` ← **Head:** `feat/cursor-support` --- ### 📝 Commits (1) - [`0a91977`](https://github.com/yigitkonur/cli-continues/commit/0a91977de9d833f0e5618eb14c72d3b1088be461) feat: add Cursor AI support ### 📊 Changes **12 files changed** (+616 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `src/__tests__/conversions.test.ts` (+7 -1) 📝 `src/__tests__/e2e-conversions.test.ts` (+8 -4) 📝 `src/__tests__/extract-handoffs.ts` (+4 -1) 📝 `src/__tests__/fixtures/index.ts` (+80 -0) 📝 `src/__tests__/unit-conversions.test.ts` (+85 -5) 📝 `src/cli.ts` (+13 -4) ➕ `src/parsers/cursor.ts` (+395 -0) 📝 `src/parsers/index.ts` (+1 -0) 📝 `src/types/index.ts` (+1 -1) 📝 `src/utils/index.ts` (+6 -2) 📝 `src/utils/markdown.ts` (+1 -0) 📝 `src/utils/resume.ts` (+15 -1) </details> ### 📄 Description ## Summary - Add **Cursor AI** as the 7th supported platform - New parser (`src/parsers/cursor.ts`) that discovers and parses agent-transcript JSONL files from `~/.cursor/projects/*/agent-transcripts/` - Extracts conversation history, tool usage (Anthropic-style `tool_use`/`tool_result` blocks), and thinking/reasoning highlights - Strips `<user_query>` wrapper tags from Cursor's user messages - Derives working directory from project slug path - Full integration across all modules: types, index, resume, CLI quick-command (`continues cursor`), source colors - Test fixtures and **42 cross-tool conversion paths** (7×6) all passing (111 tests) ## Files Changed | File | Change | |------|--------| | `src/parsers/cursor.ts` | **New** — Cursor session parser | | `src/types/index.ts` | Add `'cursor'` to `SessionSource` union | | `src/parsers/index.ts` | Barrel export | | `src/utils/index.ts` | Wire into `buildIndex()` and `extractContext()` | | `src/utils/markdown.ts` | Add `'Cursor AI'` to `SOURCE_LABELS` | | `src/utils/resume.ts` | Native resume, cross-tool handoff, tool detection | | `src/cli.ts` | Color (`blueBright`), quick-resume command, help texts | | `src/__tests__/fixtures/index.ts` | `createCursorFixture()` | | `src/__tests__/unit-conversions.test.ts` | Cursor parser tests + 42 conversion paths | | `src/__tests__/conversions.test.ts` | Cursor integration | | `src/__tests__/e2e-conversions.test.ts` | Cursor integration | | `src/__tests__/extract-handoffs.ts` | Cursor integration | ## Test plan - [x] TypeScript compiles with no errors (`tsc --noEmit`) - [x] All 111 unit tests pass (`vitest run`) - [x] Build succeeds (`tsc`) - [ ] Manual test with real Cursor agent-transcripts on a machine with Cursor installed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added support for Cursor AI as a new session source. Parse and extract context from Cursor transcripts located at `~/.cursor/projects/*/agent-transcripts/`. * Introduced new `cursor [n]` CLI command to resume the Nth newest Cursor session. * Enabled cross-tool handoffs between Cursor and other supported tools. * Cursor sessions now appear in session listing and picking workflows. * **Tests** * Extended test coverage to verify Cursor source support across all conversion and handoff scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:39:15 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cli-continues#13
No description provided.