@lfades/next-code
v0.0.2
Published
Downloads
8
Readme
next-code
Running the sandbox locally
First, make sure to copy the envs from vc env pull into packages/next-code/.env.local. The Vercel OIDC token is necessary to run the sandbox.
Then, go to packages/next-code and run:
pnpm startThat will start the sandbox and log 2 URLs, one for the opencode server and another one for the GH pr tool server.
To send a prompt and create a PR, open packages/next-code/src/opencode-test.ts and paste the URLs at the top:
// Replace with the URLs returned by the sandbox
const OPENCODE_URL = "https://sb-19hrigzn8qfk.vercel.run"
const TOOL_URL = "https://sb-6m2lluos7ht7.vercel.run"You can also go to the bottom of the file to change the prompt to send.
Now, in the packages/next-code folder, run:
pnpm op-test