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.
@@ -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.0";
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: { ...process.env, HERMES_HOME: hermesDir },
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodus-wechat",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "CLI installer for Nodus WeChat, Hermes, and the local OpeniLink webhook runtime.",
5
5
  "license": "MIT",
6
6
  "private": false,