nodus-wechat 0.7.0 → 0.7.1
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/bin/nodus-wechat.js +14 -2
- package/package.json +1 -1
package/bin/nodus-wechat.js
CHANGED
|
@@ -8,7 +8,7 @@ const os = require("node:os");
|
|
|
8
8
|
const path = require("node:path");
|
|
9
9
|
const childProcess = require("node:child_process");
|
|
10
10
|
|
|
11
|
-
const VERSION = "0.7.
|
|
11
|
+
const VERSION = "0.7.1";
|
|
12
12
|
const DEFAULT_BASE_URL = "https://api.nodus.sbs/";
|
|
13
13
|
const DEFAULT_MODEL = "gpt-5.5";
|
|
14
14
|
const DEFAULT_OPENILINK_ORIGIN = "http://localhost:9800";
|
|
@@ -247,12 +247,24 @@ function openiLinkInstallCommand() {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
function runHermesInstaller(hermesDir) {
|
|
250
|
+
const checkoutDir = path.join(hermesDir, "hermes-agent");
|
|
251
|
+
if (fs.existsSync(checkoutDir) && fs.existsSync(path.join(checkoutDir, ".git")) && !fs.existsSync(path.join(checkoutDir, "pyproject.toml"))) {
|
|
252
|
+
fs.rmSync(checkoutDir, { recursive: true, force: true });
|
|
253
|
+
}
|
|
254
|
+
|
|
250
255
|
const args = ["--skip-setup", "--hermes-home", hermesDir];
|
|
251
256
|
const command = `${hermesInstallCommand()} ${args.map(shellQuote).join(" ")}`;
|
|
252
257
|
const result = childProcess.spawnSync(command, {
|
|
253
258
|
shell: true,
|
|
254
259
|
stdio: "inherit",
|
|
255
|
-
env: {
|
|
260
|
+
env: {
|
|
261
|
+
...process.env,
|
|
262
|
+
HERMES_HOME: hermesDir,
|
|
263
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
264
|
+
GIT_CONFIG_COUNT: "1",
|
|
265
|
+
GIT_CONFIG_KEY_0: "url.https://github.com/.insteadOf",
|
|
266
|
+
GIT_CONFIG_VALUE_0: "git@github.com:",
|
|
267
|
+
},
|
|
256
268
|
});
|
|
257
269
|
|
|
258
270
|
if (result.error) {
|