eadfilesync, writefilesync, mkdirsync } from "fs";
import { join } from "path";
import { homedir } from "os";
const marker_start = "<!-- memeplex-cli:start -->";
const marker_end = "<!-- memeplex-cli:end -->";
const context_block = `
## memeplex cli (\`memeplex\`)
when the user asks to check balance, send, swap, earn, or do anything with
their memeplex wallet — use the \`memeplex\` cli command, not mcp tools.
\`\`\`
memeplex balance # wallet balances across all chains
memeplex send <amt> <asset> [--to <addr>] [--chain <chain>]
memeplex swap <amt> <from> [--to <asset>] [--chain <chain>]
memeplex earn supply|withdraw <amt> <asset> [--chain <chain>]
memeplex history