feat(telegram): Cursor Cloud repo agent for linked chats#1072
Draft
feat(telegram): Cursor Cloud repo agent for linked chats#1072
Conversation
Co-authored-by: Ryo Lu <me@ryo.lu>
…p updates - Add cursorRepoAgent to Telegram tool profile (Cloud Agents v1) - Pass bot token/chat into tool context; stream run status to Telegram via waitUntil - Document env vars (CURSOR_API_KEY, CURSOR_RYOS_REPO_URLS); default allowlist is public ryOS repo - Extend tests for status text, heartbeat tools, and executor safety Co-authored-by: Ryo Lu <me@ryo.lu>
|
The preview deployment for ryos-dev is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-04-29 19:14:58 CET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a telegram-only server tool
cursorRepoAgentthat launches Cursor Cloud Agents API v1 jobs against allowlisted GitHub repos (defaulthttps://github.com/ryokun6/ryos). The webhook passes the linked TelegrambotToken/chat/reply_tothrough tool context so the executor canwaitUntila background task that streams SSE (with polling fallback) and sends status / completion messages back into the same DM.Deploy config (secrets):
CURSOR_API_KEY— required; user or service API key from Cursor Dashboard → Integrations.CURSOR_RYOS_REPO_URLS— optional comma-separated list of GitHub HTTPS repo URLs permitted for this deployment (omit to allow only the public ryOS repo).CURSOR_CLOUD_API_BASE_URL— optional override ofhttps://api.cursor.com.Tests: bun tests updated/added (
test-cursor-cloud-agent.test.ts,test-chat-tools-cursor-repo.test.ts, telegram status/heartbeat). This environment did not run the test runner (nobun/Node in PATH); please run locally:bun test tests/test-cursor-cloud-agent.test.ts tests/test-chat-tools-cursor-repo.test.ts tests/test-telegram-status.test.ts tests/test-telegram-heartbeat.test.ts.