@agent-wechat/cli 0.7.1 → 0.7.3
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/cli.js +4 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7904,7 +7904,7 @@ import qrTerminal from "qrcode-terminal";
|
|
|
7904
7904
|
import os from "os";
|
|
7905
7905
|
import path from "path";
|
|
7906
7906
|
import { fileURLToPath } from "url";
|
|
7907
|
-
var VERSION = "0.7.
|
|
7907
|
+
var VERSION = "0.7.3";
|
|
7908
7908
|
var CONTAINER_NAME = "agent-wechat";
|
|
7909
7909
|
var GHCR_IMAGE = "ghcr.io/thisnick/agent-wechat";
|
|
7910
7910
|
var DEFAULT_PORT = 6174;
|
|
@@ -8434,22 +8434,11 @@ async function cmdUpdate() {
|
|
|
8434
8434
|
console.error("No running agent-wechat container found.");
|
|
8435
8435
|
process.exit(1);
|
|
8436
8436
|
}
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
`docker inspect --format "{{.Architecture}}" "${container}"`,
|
|
8437
|
+
const uname = execSync(
|
|
8438
|
+
`docker exec "${container}" uname -m`,
|
|
8440
8439
|
{ encoding: "utf-8" }
|
|
8441
8440
|
).trim();
|
|
8442
|
-
|
|
8443
|
-
case "amd64":
|
|
8444
|
-
arch = "amd64";
|
|
8445
|
-
break;
|
|
8446
|
-
case "arm64":
|
|
8447
|
-
arch = "arm64";
|
|
8448
|
-
break;
|
|
8449
|
-
default:
|
|
8450
|
-
const uname = execSync("uname -m", { encoding: "utf-8" }).trim();
|
|
8451
|
-
arch = uname === "x86_64" ? "amd64" : "arm64";
|
|
8452
|
-
}
|
|
8441
|
+
const arch = uname === "x86_64" ? "amd64" : "arm64";
|
|
8453
8442
|
const assetName = `agent-server-${version}-linux-${arch}`;
|
|
8454
8443
|
const tmpFile = path.join(os.tmpdir(), assetName);
|
|
8455
8444
|
console.log(`Downloading ${assetName}...`);
|