codexuse-cli 3.9.2 → 3.9.8
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 +8 -4
- package/dist/index.js +2111 -521
- package/dist/index.js.map +1 -1
- package/dist/server/index.mjs +2902 -697
- package/dist/server/{open-DX6_a9Ta.mjs → open-BWXrZXJl.mjs} +6 -6
- package/package.json +2 -2
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import childProcess, { execFile } from "node:child_process";
|
|
4
4
|
import fs from "node:fs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import nodeOs from "node:os";
|
|
6
|
+
import nodePath from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import fs$1, { constants as constants$1 } from "node:fs/promises";
|
|
9
9
|
import { promisify } from "node:util";
|
|
@@ -49,7 +49,7 @@ function isInsideContainer() {
|
|
|
49
49
|
//#region ../../node_modules/.bun/is-wsl@3.1.1/node_modules/is-wsl/index.js
|
|
50
50
|
const isWsl = () => {
|
|
51
51
|
if (process.platform !== "linux") return false;
|
|
52
|
-
if (
|
|
52
|
+
if (nodeOs.release().toLowerCase().includes("microsoft")) {
|
|
53
53
|
if (isInsideContainer()) return false;
|
|
54
54
|
return true;
|
|
55
55
|
}
|
|
@@ -323,8 +323,8 @@ const isInSsh = Boolean(process.env.SSH_CONNECTION || process.env.SSH_CLIENT ||
|
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region ../../node_modules/.bun/open@11.0.0/node_modules/open/index.js
|
|
325
325
|
const fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
326
|
-
const __dirname = import.meta.url ?
|
|
327
|
-
const localXdgOpenPath =
|
|
326
|
+
const __dirname = import.meta.url ? nodePath.dirname(fileURLToPath(import.meta.url)) : "";
|
|
327
|
+
const localXdgOpenPath = nodePath.join(__dirname, "xdg-open");
|
|
328
328
|
const { platform, arch } = process;
|
|
329
329
|
const tryEachApp = async (apps, opener) => {
|
|
330
330
|
if (apps.length === 0) return;
|
|
@@ -551,4 +551,4 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({ darwin: "Safari"
|
|
|
551
551
|
//#endregion
|
|
552
552
|
export { apps, open as default, openApp };
|
|
553
553
|
|
|
554
|
-
//# sourceMappingURL=open-
|
|
554
|
+
//# sourceMappingURL=open-BWXrZXJl.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codexuse-cli",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.8",
|
|
4
4
|
"description": "CodexUse CLI for profiles, Accounts Pool, daemon mode, licenses, and sync.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hoang",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"typecheck": "bunx tsc --noEmit"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ws": "^8.
|
|
26
|
+
"ws": "^8.21.0"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
29
|
"node-pty": "^1.1.0"
|