Phase 1: Repository & Infrastructure Setup
- Renamed directories: codex-rs -> llmx-rs, codex-cli -> llmx-cli
- Updated package.json files:
- Root: llmx-monorepo
- CLI: @llmx/llmx
- SDK: @llmx/llmx-sdk
- Updated pnpm workspace configuration
- Renamed binary: codex.js -> llmx.js
- Updated environment variables: CODEX_* -> LLMX_*
- Changed repository URLs to valknar/llmx
🤖 Generated with Claude Code
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@openai/codex",
|
|
||||||
"version": "0.0.0-dev",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"bin": {
|
|
||||||
"codex": "bin/codex.js"
|
|
||||||
},
|
|
||||||
"type": "module",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=16"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"bin",
|
|
||||||
"vendor"
|
|
||||||
],
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/openai/codex.git",
|
|
||||||
"directory": "codex-cli"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
// Unified entry point for the Codex CLI.
|
// Unified entry point for the LLMX CLI.
|
||||||
|
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { existsSync } from "fs";
|
import { existsSync } from "fs";
|
||||||
@@ -61,8 +61,8 @@ if (!targetTriple) {
|
|||||||
|
|
||||||
const vendorRoot = path.join(__dirname, "..", "vendor");
|
const vendorRoot = path.join(__dirname, "..", "vendor");
|
||||||
const archRoot = path.join(vendorRoot, targetTriple);
|
const archRoot = path.join(vendorRoot, targetTriple);
|
||||||
const codexBinaryName = process.platform === "win32" ? "codex.exe" : "codex";
|
const llmxBinaryName = process.platform === "win32" ? "llmx.exe" : "llmx";
|
||||||
const binaryPath = path.join(archRoot, "codex", codexBinaryName);
|
const binaryPath = path.join(archRoot, "llmx", llmxBinaryName);
|
||||||
|
|
||||||
// Use an asynchronous spawn instead of spawnSync so that Node is able to
|
// Use an asynchronous spawn instead of spawnSync so that Node is able to
|
||||||
// respond to signals (e.g. Ctrl-C / SIGINT) while the native binary is
|
// respond to signals (e.g. Ctrl-C / SIGINT) while the native binary is
|
||||||
@@ -81,7 +81,7 @@ function getUpdatedPath(newDirs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use heuristics to detect the package manager that was used to install Codex
|
* Use heuristics to detect the package manager that was used to install LLMX
|
||||||
* in order to give the user a hint about how to update it.
|
* in order to give the user a hint about how to update it.
|
||||||
*/
|
*/
|
||||||
function detectPackageManager() {
|
function detectPackageManager() {
|
||||||
@@ -116,8 +116,8 @@ const updatedPath = getUpdatedPath(additionalDirs);
|
|||||||
const env = { ...process.env, PATH: updatedPath };
|
const env = { ...process.env, PATH: updatedPath };
|
||||||
const packageManagerEnvVar =
|
const packageManagerEnvVar =
|
||||||
detectPackageManager() === "bun"
|
detectPackageManager() === "bun"
|
||||||
? "CODEX_MANAGED_BY_BUN"
|
? "LLMX_MANAGED_BY_BUN"
|
||||||
: "CODEX_MANAGED_BY_NPM";
|
: "LLMX_MANAGED_BY_NPM";
|
||||||
env[packageManagerEnvVar] = "1";
|
env[packageManagerEnvVar] = "1";
|
||||||
|
|
||||||
const child = spawn(binaryPath, process.argv.slice(2), {
|
const child = spawn(binaryPath, process.argv.slice(2), {
|
||||||
22
llmx-cli/package.json
Normal file
22
llmx-cli/package.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "@llmx/llmx",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"description": "LLMX CLI - Multi-provider coding agent powered by LiteLLM",
|
||||||
|
"bin": {
|
||||||
|
"llmx": "bin/llmx.js"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"bin",
|
||||||
|
"vendor"
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/valknar/llmx.git",
|
||||||
|
"directory": "llmx-cli"
|
||||||
|
}
|
||||||
|
}
|
||||||
0
codex-rs/Cargo.lock → llmx-rs/Cargo.lock
generated
0
codex-rs/Cargo.lock → llmx-rs/Cargo.lock
generated
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user