WORK IN PROGRESS
Run these once to set it up:
pnpm i -D @libsql/client
echo '{"node":{"externalPackages":["@libsql/client"]}}' > convex.json
printf '"use node";\nexport * as _ from "@libsql/client";' > convex/_hax.ts
To iterate on Convex + Mastra in parallel:
pnpm run dev
FYI: when you edit Mastra files, they won't by default be picked up by the Convex dev server since they're not in the convex/
directory.
npx convex run node.ts:a