Skip to content

Commit b3eb692

Browse files
committed
chore: rename npm package to codext
1 parent 42e3b14 commit b3eb692

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

codex-cli/bin/codex.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ try {
9292
const packageManager = detectPackageManager();
9393
const updateCommand =
9494
packageManager === "bun"
95-
? "bun install -g @loongphy/codex@latest"
96-
: "npm install -g @loongphy/codex@latest";
95+
? "bun install -g @loongphy/codext@latest"
96+
: "npm install -g @loongphy/codext@latest";
9797
throw new Error(
9898
`Missing optional dependency ${platformPackage}. Reinstall Codex: ${updateCommand}`,
9999
);
@@ -104,8 +104,8 @@ if (!vendorRoot) {
104104
const packageManager = detectPackageManager();
105105
const updateCommand =
106106
packageManager === "bun"
107-
? "bun install -g @loongphy/codex@latest"
108-
: "npm install -g @loongphy/codex@latest";
107+
? "bun install -g @loongphy/codext@latest"
108+
: "npm install -g @loongphy/codext@latest";
109109
throw new Error(
110110
`Missing optional dependency ${platformPackage}. Reinstall Codex: ${updateCommand}`,
111111
);

codex-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@loongphy/codex",
2+
"name": "@loongphy/codext",
33
"version": "0.0.0-dev",
44
"license": "Apache-2.0",
55
"bin": {

codex-cli/scripts/build_npm_package.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Stage and optionally package the @loongphy/codex npm module."""
2+
"""Stage and optionally package the @loongphy/codext npm module."""
33

44
import argparse
55
import json
@@ -14,10 +14,10 @@
1414
REPO_ROOT = CODEX_CLI_ROOT.parent
1515
RESPONSES_API_PROXY_NPM_ROOT = REPO_ROOT / "codex-rs" / "responses-api-proxy" / "npm"
1616
CODEX_SDK_ROOT = REPO_ROOT / "sdk" / "typescript"
17-
CODEX_NPM_NAME = "@loongphy/codex"
17+
CODEX_NPM_NAME = "@loongphy/codext"
1818

1919
# `npm_name` is the local optional-dependency alias consumed by `bin/codex.js`.
20-
# The underlying package published to npm is always `@loongphy/codex`.
20+
# The underlying package published to npm is always `@loongphy/codext`.
2121
CODEX_PLATFORM_PACKAGES: dict[str, dict[str, str]] = {
2222
"codex-linux-x64": {
2323
"npm_name": "@openai/codex-linux-x64",

scripts/install/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (-not (Get-Command npm -ErrorAction SilentlyContinue)) {
4141
}
4242

4343
$resolvedVersion = Normalize-Version -RawVersion $Version
44-
$packageSpec = "@loongphy/codex"
44+
$packageSpec = "@loongphy/codext"
4545
if ($resolvedVersion -ne "latest") {
4646
$packageSpec = "$packageSpec@$resolvedVersion"
4747
}

scripts/install/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -eu
44

55
VERSION="${1:-latest}"
6-
PACKAGE="@loongphy/codex"
6+
PACKAGE="@loongphy/codext"
77

88
step() {
99
printf '==> %s\n' "$1"

0 commit comments

Comments
 (0)