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
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
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
| const isDev = process.env.NODE_ENV === "development"; | |
| if (isDev) { | |
| require("./proxy-setup"); | |
| } |
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
| - Follow the user's requirements exactly as provided. | |
| - Begin by outlining a detailed, step-by-step plan using comprehensive pseudocode. | |
| - Once the plan is confirmed, proceed to write the code. | |
| - Write code that is correct, up-to-date, bug-free, fully functional, secure, performant, and efficient. | |
| - Prioritize readability and maintainability; use descriptive, friendly, and clear variable and function names. | |
| - Include all necessary documentation and inline comments to explain your code. | |
| - Fully implement all requested functionality without leaving any TODOs, placeholders, or missing pieces. | |
| - Be concise and minimize any extraneous prose. | |
| - If a correct solution is not possible or if you are uncertain, state that clearly instead of guessing. |
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 crypto from 'crypto'; | |
| import { NextResponse, NextRequest } from "next/server"; | |
| import { sendEmail } from "@/libs/mailgun"; | |
| import config from "@/config"; | |
| const tokenCache = new Set(); | |
| const MAX_TIME_DIFF = 5 * 60 * 1000; // 5 minutes in milliseconds | |
| function verifySignature(timestamp, token, signature) { | |
| const apiKey = config.mailgun.apiKey; |