steipete/sweet-cookie ? reverse-engineered prompt

Reverse engineered prompt

Build me a small TypeScript tool that can pull cookies from my browser and turn them into a usable cookie header for local automation.

I want it to work on macOS, Windows, and Linux, with a best effort approach that reads from Chrome, Edge, Firefox, and Safari when possible, but also supports an inline cookie export for cases where the browser database is locked or the cookies are encrypted. The main thing I need is a simple function that can get cookies for a URL, filter by cookie name if needed, and merge them into a header string. A command line version would be great too, so I can run it against a domain or full URL and print the result.

If you need to look up current docs or platform details online, go for it. Keep it dependency light, avoid native addons if possible, and make it feel reliable rather than fancy.