Phase 4: TypeScript/Node.js Components

Updated all TypeScript and JavaScript source files:

- Renamed sdk/typescript/src/codex.ts → llmx.ts
- Renamed sdk/typescript/src/codexOptions.ts → llmxOptions.ts
- Updated class names: Codex → LLMX, CodexExec → LLMXExec, CodexOptions → LLMXOptions
- Updated property names: codexPathOverride → llmxPathOverride
- Updated package imports: @openai/codex-sdk → @llmx/llmx-sdk
- Updated all references in sample files and tests
- Renamed responses-api-proxy binary: codex-responses-api-proxy.js → llmx-responses-api-proxy.js
- Updated comments referencing Codex → LLMX
- Updated session path references: ~/.codex → ~/.llmx

Files changed: 16 TypeScript/JavaScript files across SDK, samples, and tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sebastian Krüger
2025-11-11 14:43:58 +01:00
parent a6c537ac50
commit 0c2c36e14e
16 changed files with 81 additions and 81 deletions

View File

@@ -3,12 +3,12 @@
import { createInterface } from "node:readline/promises";
import { stdin as input, stdout as output } from "node:process";
import { Codex } from "@openai/codex-sdk";
import type { ThreadEvent, ThreadItem } from "@openai/codex-sdk";
import { codexPathOverride } from "./helpers.ts";
import { LLMX } from "@llmx/llmx-sdk";
import type { ThreadEvent, ThreadItem } from "@llmx/llmx-sdk";
import { llmxPathOverride } from "./helpers.ts";
const codex = new Codex({ codexPathOverride: codexPathOverride() });
const thread = codex.startThread();
const llmx = new LLMX({ llmxPathOverride: llmxPathOverride() });
const thread = llmx.startThread();
const rl = createInterface({ input, output });
const handleItemCompleted = (item: ThreadItem): void => {

View File

@@ -1,8 +1,8 @@
import path from "node:path";
export function codexPathOverride() {
export function llmxPathOverride() {
return (
process.env.CODEX_EXECUTABLE ??
path.join(process.cwd(), "..", "..", "codex-rs", "target", "debug", "codex")
path.join(process.cwd(), "..", "..", "llmx-rs", "target", "debug", "llmx")
);
}

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env -S NODE_NO_WARNINGS=1 pnpm ts-node-esm --files
import { Codex } from "@openai/codex-sdk";
import { LLMX } from "@llmx/llmx-sdk";
import { codexPathOverride } from "./helpers.ts";
import { llmxPathOverride } from "./helpers.ts";
const codex = new Codex({ codexPathOverride: codexPathOverride() });
const llmx = new LLMX({ llmxPathOverride: llmxPathOverride() });
const thread = codex.startThread();
const thread = llmx.startThread();
const schema = {
type: "object",

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env -S NODE_NO_WARNINGS=1 pnpm ts-node-esm --files
import { Codex } from "@openai/codex-sdk";
import { codexPathOverride } from "./helpers.ts";
import { LLMX } from "@llmx/llmx-sdk";
import { llmxPathOverride } from "./helpers.ts";
import z from "zod";
import zodToJsonSchema from "zod-to-json-schema";
const codex = new Codex({ codexPathOverride: codexPathOverride() });
const thread = codex.startThread();
const llmx = new LLMX({ llmxPathOverride: llmxPathOverride() });
const thread = llmx.startThread();
const schema = z.object({
summary: z.string(),