mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #4] [MERGED] feat: add Cursor AI support with smart slug-to-path resolution #15
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/4
Author: @Evrim267
Created: 2/20/2026
Status: ✅ Merged
Merged: 2/20/2026
Merged by: @yigitkonur
Base:
main← Head:feat/cursor-support📝 Commits (1)
3ef8e7ffix: resolve Cursor slug paths with dot-separated directory names📊 Changes
1 file changed (+34 additions, -21 deletions)
View changed files
📝
src/parsers/cursor.ts(+34 -21)📄 Description
Summary
Adds full Cursor AI support as the 7th platform in
continues, enabling session handoffs to/from Cursor IDE agent sessions.What's included
src/parsers/cursor.ts): Discovers and parses Cursor agent-transcript JSONL files from~/.cursor/projects//and.with-in project directory slugs (e.g.dzcm.test→dzcm-test). Uses recursive backtracking to correctly resolve ambiguous paths by trying all three interpretations (/,.,-) at each dash positiontool_use/tool_resultcontent blocks for file edits, shell commands, grep, glob, web fetch, MCP tools, and subagentsthinkingcontent blocks as session notes<user_query>wrapper tags from user messagesFiles changed (12 files)
src/parsers/cursor.tsparseCursorSessions()andextractCursorContext()src/parsers/index.tssrc/types/index.ts'cursor'toSessionSourceunionsrc/utils/index.tsbuildIndex()andextractContext()src/utils/markdown.ts'Cursor AI'labelsrc/utils/resume.tssrc/cli.tssrc/__tests__/fixtures/index.tscreateCursorFixture()src/__tests__/unit-conversions.test.tssrc/__tests__/conversions.test.tssrc/__tests__/e2e-conversions.test.tssrc/__tests__/extract-handoffs.tsSlug resolution examples
Test plan
npx tsccompiles cleannpx vitest run)continues list --source cursorshows correct CWD pathscontinues resume <id> --in claudegenerates valid handoff markdownSummary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.