open-index/open-npm huggingface dataset:
npm package: @jojoyo/codex-responses-api-proxy
Description: <p align="center"><code>npm i -g @jojoyo/codex-responses-api-proxy</code> to install <code>codex-responses-api-proxy</code></p>
Latest version: 0.44.0-fork.3

# @jojoyo/codex-responses-api-proxy

<p align="center"><code>npm i -g @jojoyo/codex-responses-api-proxy</code> to install <code>codex-responses-api-proxy</code></p>

This package distributes the prebuilt [Codex Responses API proxy binary](https://github.com/yoyooyooo/codex/tree/main/codex-rs/responses-api-proxy) for macOS, Linux, and Windows.

To see available options, run:

```
node ./bin/codex-responses-api-proxy.js --help
```

Refer to [`codex-rs/responses-api-proxy/README.md`](https://github.com/yoyooyooo/codex/blob/main/codex-rs/responses-api-proxy/README.md) for detailed documentation.
npm package: @jojoyo/codex-sdk
Description: TypeScript SDK for Codex APIs.
Latest version: 0.44.0-fork.3

# Codex SDK

Bring the power of the best coding agent to your application.

## Installation

```bash
npm install @jojoyo/codex-sdk
```

## Usage

Call `startThread()` and `run()` to start a thead with Codex.

```typescript
import { Codex } from "@jojoyo/codex-sdk";

const codex = new Codex();
const thread = codex.startThread();
const result = await thread.run("Diagnose the test failure and propose a fix");

console.log(result);
```

You can call `run()` again to continue the same thread.

```typescript
const result = await thread.run("Implement the fix");

console.log(result);
```

### Streaming

The `await run()` method completes when a thread turn is complete and agent is prepared the final response.

You can thread items while they are being produced by calling `await runStreamed()`.

```typescript
const result = thread.runStreamed("Diagnose the test failure and propose a fix");
```

### Resuming a thread

If you don't have the original `Thread` instance to continue the thread, you can resume a thread by calling `resumeThread()` and providing the thread.

```typescript
const threadId = "...";
const thread = codex.resumeThread(threadId);
const result = await thread.run("Implement the fix");

console.log(result);
```

### Working directory

By default, Codex will run in the current working directory. You can change the working directory by passing the `workingDirectory` option to the when creating a thread.

```typescript
const thread = codex.startThread({
  workingDirectory: "/path/to/working/directory",
});
```

To avoid unrecoverable errors, Codex requires the working directory to be a git repository. You can skip the git repository check by passing the `skipGitRepoCheck` option to the when creating a thread.

```typescript
const thread = codex.startThread({
  skipGitRepoCheck: true,
});
```