remote-dsh 0.4.3 → 0.4.5
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/bin.js +4 -3
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -196,7 +196,8 @@ function parseGlobal(argv) {
|
|
|
196
196
|
flags.push(argv[i]);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
|
|
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":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remote-dsh",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Secure remote access for DeepSeek Harness: rdsh serve / rdsh join / rdsh hub",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"rdsh-
|
|
27
|
-
"rdsh-
|
|
26
|
+
"rdsh-hub": "0.2.1",
|
|
27
|
+
"rdsh-gateway": "0.2.1"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc -p tsconfig.json",
|