@lavilas/codex 1.3.61 → 1.3.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/postinstall.js +27 -1
- package/package.json +8 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</p>
|
|
6
6
|
</br>
|
|
7
7
|
If you want Codex in your code editor (VS Code, Cursor, Windsurf), <a href="https://developers.openai.com/codex/ide">install in your IDE.</a>
|
|
8
|
-
</br>If you want the desktop app experience, run <code>
|
|
8
|
+
</br>If you want the desktop app experience, run <code>lavilas app</code> or visit <a href="https://chatgpt.com/codex?app-landing-page=true">the Codex App page</a>.
|
|
9
9
|
</br>If you are looking for the <em>cloud-based agent</em> from OpenAI, <strong>Codex Web</strong>, go to <a href="https://chatgpt.com/codex">chatgpt.com/codex</a>.</p>
|
|
10
10
|
|
|
11
11
|
---
|
|
@@ -26,7 +26,7 @@ npm install -g @lavilas/codex
|
|
|
26
26
|
brew install --cask codex
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
Then simply run `
|
|
29
|
+
Then simply run `lavilas` to get started.
|
|
30
30
|
|
|
31
31
|
<details>
|
|
32
32
|
<summary>You can also go to the <a href="https://github.com/openai/codex/releases/latest">latest GitHub Release</a> and download the appropriate binary for your platform.</summary>
|
|
@@ -46,7 +46,7 @@ Each archive contains a single entry with the platform baked into the name (e.g.
|
|
|
46
46
|
|
|
47
47
|
### Using Codex with your ChatGPT plan
|
|
48
48
|
|
|
49
|
-
Run `
|
|
49
|
+
Run `lavilas` and select **Sign in with ChatGPT**. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Team, Edu, or Enterprise plan. [Learn more about what's included in your ChatGPT plan](https://help.openai.com/en/articles/11369540-codex-in-chatgpt).
|
|
50
50
|
|
|
51
51
|
You can also use Codex with an API key, but this requires [additional setup](https://developers.openai.com/codex/auth#sign-in-with-an-api-key).
|
|
52
52
|
|
package/bin/postinstall.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { spawnSync } from "node:child_process";
|
|
4
|
-
import { readFileSync } from "node:fs";
|
|
4
|
+
import { readFileSync, rmSync } from "node:fs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -21,6 +21,30 @@ const __dirname = path.dirname(__filename);
|
|
|
21
21
|
const packageDir = path.join(__dirname, "..");
|
|
22
22
|
const require = createRequire(import.meta.url);
|
|
23
23
|
|
|
24
|
+
function removeLegacyGlobalBinLinks() {
|
|
25
|
+
if (process.env.npm_config_global !== "true") {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const prefix = process.env.npm_config_prefix;
|
|
30
|
+
if (!prefix) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const binDir = process.platform === "win32" ? prefix : path.join(prefix, "bin");
|
|
35
|
+
const legacyNames = process.platform === "win32"
|
|
36
|
+
? ["codex", "codex.cmd", "codex.ps1", "кодекс", "кодекс.cmd", "кодекс.ps1", "лавилас", "лавилас.cmd", "лавилас.ps1"]
|
|
37
|
+
: ["codex", "кодекс", "лавилас"];
|
|
38
|
+
|
|
39
|
+
for (const entry of legacyNames) {
|
|
40
|
+
try {
|
|
41
|
+
rmSync(path.join(binDir, entry), { force: true });
|
|
42
|
+
} catch {
|
|
43
|
+
// Ignore cleanup failures and keep the install itself healthy.
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
24
48
|
if (!packageDir.includes(`${path.sep}node_modules${path.sep}`)) {
|
|
25
49
|
process.exit(0);
|
|
26
50
|
}
|
|
@@ -93,3 +117,5 @@ if (result.status !== 0) {
|
|
|
93
117
|
}
|
|
94
118
|
process.exit(result.status ?? 1);
|
|
95
119
|
}
|
|
120
|
+
|
|
121
|
+
removeLegacyGlobalBinLinks();
|
package/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lavilas/codex",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.68",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"bin": {
|
|
6
|
-
"
|
|
7
|
-
"lavilas": "bin/codex.js",
|
|
8
|
-
"\u043a\u043e\u0434\u0435\u043a\u0441": "bin/codex.js",
|
|
9
|
-
"\u043b\u0430\u0432\u0438\u043b\u0430\u0441": "bin/codex.js"
|
|
6
|
+
"lavilas": "bin/codex.js"
|
|
10
7
|
},
|
|
11
8
|
"type": "module",
|
|
12
9
|
"engines": {
|
|
@@ -26,11 +23,11 @@
|
|
|
26
23
|
},
|
|
27
24
|
"packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc",
|
|
28
25
|
"optionalDependencies": {
|
|
29
|
-
"@lavilas/codex-linux-x64": "1.3.
|
|
30
|
-
"@lavilas/codex-linux-arm64": "1.3.
|
|
31
|
-
"@lavilas/codex-darwin-x64": "1.3.
|
|
32
|
-
"@lavilas/codex-darwin-arm64": "1.3.
|
|
33
|
-
"@lavilas/codex-win32-x64": "1.3.
|
|
34
|
-
"@lavilas/codex-win32-arm64": "1.3.
|
|
26
|
+
"@lavilas/codex-linux-x64": "1.3.68",
|
|
27
|
+
"@lavilas/codex-linux-arm64": "1.3.68",
|
|
28
|
+
"@lavilas/codex-darwin-x64": "1.3.68",
|
|
29
|
+
"@lavilas/codex-darwin-arm64": "1.3.68",
|
|
30
|
+
"@lavilas/codex-win32-x64": "1.3.68",
|
|
31
|
+
"@lavilas/codex-win32-arm64": "1.3.68"
|
|
35
32
|
}
|
|
36
33
|
}
|