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:
@@ -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 => {
|
||||
|
||||
@@ -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")
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user