open-index/open-npm huggingface dataset:
npm package: @lfades/next-code
Author: lfades
Latest version: 0.0.2

# 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:

```bash
pnpm start
```

That 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:

```ts
// 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:

```bash
pnpm op-test
```