remote-dsh 0.4.2 → 0.4.4

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.
Files changed (2) hide show
  1. package/dist/bin.js +6 -4
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -196,7 +196,8 @@ function parseGlobal(argv) {
196
196
  flags.push(argv[i]);
197
197
  }
198
198
  }
199
- return { configPath: resolveConfigPath(configPath), flags };
199
+ // 返回原始值(undefined 或显式 --config);gateway/hub 子命令分别按自己的默认路径 resolve
200
+ return { configPath, flags };
200
201
  }
201
202
  function parseServeArgs(args, configPath) {
202
203
  const opts = { configPath };
@@ -276,7 +277,7 @@ function parseJoinArgs(args) {
276
277
  }
277
278
  async function handleUser(args, configPath) {
278
279
  const action = args[0];
279
- const um = new UserManager(configPath);
280
+ const um = new UserManager(resolveConfigPath(configPath));
280
281
  switch (action) {
281
282
  case "add": {
282
283
  const name = args[1];
@@ -327,7 +328,7 @@ async function handleService(args, configPath) {
327
328
  const action = args[0];
328
329
  switch (action) {
329
330
  case "install":
330
- console.log(await installService(configPath));
331
+ console.log(await installService(resolveConfigPath(configPath)));
331
332
  console.log("rdsh: service installed — it starts on boot and restarts on crash.");
332
333
  return;
333
334
  case "status":
@@ -572,5 +573,6 @@ function nextPipeLine() {
572
573
  rl.on("close", () => resolve(pipeLines.shift() ?? ""));
573
574
  });
574
575
  }
575
- void main();
576
+ // 管理命令(serve/join 常驻不 resolve)完成后显式退出:避免 TTY stdin / 句柄残留导致进程挂住
577
+ void main().then(() => process.exit(process.exitCode ?? 0));
576
578
  //# sourceMappingURL=bin.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remote-dsh",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Secure remote access for DeepSeek Harness: rdsh serve / rdsh join / rdsh hub",
5
5
  "license": "MIT",
6
6
  "type": "module",