codexuse-cli 3.6.5 → 3.7.0
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/dist/index.js +27 -5
- package/dist/index.js.map +1 -1
- package/dist/server/{NodeSqliteClient-BPzkJKIG.mjs → NodeSqliteClient-BPNNnMBz.mjs} +4 -4
- package/dist/server/{SqlClient-DSf3-WP1.mjs → SqlClient-B-Bb00hw.mjs} +479 -818
- package/dist/server/{SqlError-Cc34CGhm.mjs → SqlError-3S4KD3xN.mjs} +2 -2
- package/dist/server/{SqliteClient-BBxZHTRF.mjs → SqliteClient-9lnXlJby.mjs} +3 -3
- package/dist/server/index.mjs +1104 -866
- package/dist/server/{open-Cm7F9p66.mjs → open-BM96ykXl.mjs} +1 -1
- package/package.json +1 -1
- package/dist/server/Cache-Ctxz7HFI.mjs +0 -567
package/dist/index.js
CHANGED
|
@@ -3610,6 +3610,24 @@ var import_node_path4 = __toESM(require("path"), 1);
|
|
|
3610
3610
|
var STABLE_CHANNEL = "stable";
|
|
3611
3611
|
var ENV_HINTS = ["CODEX_BINARY", "CODEX_CLI_PATH", "CODEX_PATH"];
|
|
3612
3612
|
var cachedStatus = null;
|
|
3613
|
+
function getPathHintEntries() {
|
|
3614
|
+
const homeDir = process.env.HOME ?? process.env.USERPROFILE ?? "";
|
|
3615
|
+
const homeEntries = homeDir ? [
|
|
3616
|
+
import_node_path4.default.join(homeDir, ".local", "bin"),
|
|
3617
|
+
import_node_path4.default.join(homeDir, ".fnm", "aliases", "default", "bin"),
|
|
3618
|
+
import_node_path4.default.join(homeDir, ".fnm", "current", "bin"),
|
|
3619
|
+
import_node_path4.default.join(homeDir, ".volta", "bin"),
|
|
3620
|
+
import_node_path4.default.join(homeDir, ".asdf", "shims"),
|
|
3621
|
+
import_node_path4.default.join(homeDir, ".bun", "bin")
|
|
3622
|
+
] : [];
|
|
3623
|
+
const configuredHints = (process.env.CODEX_PATH_HINTS ?? "").split(import_node_path4.default.delimiter).map((entry) => entry.trim()).filter(Boolean);
|
|
3624
|
+
return [
|
|
3625
|
+
"/opt/homebrew/bin",
|
|
3626
|
+
"/usr/local/bin",
|
|
3627
|
+
...homeEntries,
|
|
3628
|
+
...configuredHints
|
|
3629
|
+
];
|
|
3630
|
+
}
|
|
3613
3631
|
function fileExists(candidate) {
|
|
3614
3632
|
if (!candidate) {
|
|
3615
3633
|
return null;
|
|
@@ -3639,10 +3657,14 @@ function resolveCodexFromEnv() {
|
|
|
3639
3657
|
}
|
|
3640
3658
|
function resolveCodexFromPath() {
|
|
3641
3659
|
const pathValue = process.env.PATH ?? "";
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3660
|
+
const entries = Array.from(
|
|
3661
|
+
new Set(
|
|
3662
|
+
[
|
|
3663
|
+
...getPathHintEntries(),
|
|
3664
|
+
...pathValue.split(import_node_path4.default.delimiter).map((entry) => entry.trim()).filter(Boolean)
|
|
3665
|
+
].filter(Boolean)
|
|
3666
|
+
)
|
|
3667
|
+
);
|
|
3646
3668
|
const names = process.platform === "win32" ? ["codex.exe", "codex.cmd", "codex.bat", "codex"] : ["codex"];
|
|
3647
3669
|
for (const entry of entries) {
|
|
3648
3670
|
for (const name of names) {
|
|
@@ -10231,7 +10253,7 @@ async function ensureCliStorageReady() {
|
|
|
10231
10253
|
}
|
|
10232
10254
|
|
|
10233
10255
|
// src/app/main.ts
|
|
10234
|
-
var VERSION = true ? "3.
|
|
10256
|
+
var VERSION = true ? "3.7.0" : "0.0.0";
|
|
10235
10257
|
async function runCli() {
|
|
10236
10258
|
const args = process.argv.slice(2);
|
|
10237
10259
|
if (args.length === 0) {
|