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
| #!/usr/bin/env python3 | |
| """ | |
| Export Cursor agent chats on macOS (portable Markdown). | |
| What it does: | |
| - Searches Cursor workspace state DBs for a conversation title (Composer name) | |
| and returns matching composerId(s). | |
| - Locates the corresponding local transcript(s) under ~/.cursor/projects/**/agent-transcripts/ | |
| - Writes a Markdown file containing the raw transcript(s), with paths sanitized for sharing. |
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
| import datetime | |
| from slack_sdk import WebClient | |
| """Get the SLACK_API_TOKEN: | |
| 1. To get a token for this script, create an app at https://api.slack.com/apps (Choose 'From scratch') | |
| 2. Go to 'OAuth & Permissions' > 'Scopes' section > 'User Token Scopes' > Add these permissions: | |
| # admin.conversations:write | |
| # admin.conversations:read | |
| # channels:read | |
| # channels:history |
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
| import os | |
| import math | |
| import time | |
| import random | |
| import numpy as np | |
| import pandas as pd | |
| import torch | |
| import torch.nn as nn |