herdr-remote 0.2.5 → 0.2.6
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/tui.mjs +12 -2
- package/herdr-plugin.toml +2 -2
- package/package.json +1 -1
- package/src/config.js +6 -0
- package/src/i18n/en.js +1 -0
- package/src/i18n/zh.js +1 -0
- package/src/settings-model.js +5 -1
package/dist/tui.mjs
CHANGED
|
@@ -238,6 +238,10 @@ var require_config = __commonJS({
|
|
|
238
238
|
if (!Array.isArray(config.herdr.args) || !config.herdr.args.every((arg) => typeof arg === "string")) {
|
|
239
239
|
config.herdr.args = [];
|
|
240
240
|
}
|
|
241
|
+
if (config.herdr.args.includes("--no-session")) {
|
|
242
|
+
config.herdr.args = config.herdr.args.filter((arg) => arg !== "--no-session");
|
|
243
|
+
process.stderr.write("herdr-remote: ignoring removed --no-session argument (removed in Herdr 0.9.0)\n");
|
|
244
|
+
}
|
|
241
245
|
if (typeof config.herdr.socketPath !== "string" || config.herdr.socketPath.length === 0) {
|
|
242
246
|
config.herdr.socketPath = null;
|
|
243
247
|
}
|
|
@@ -569,6 +573,7 @@ var require_en = __commonJS({
|
|
|
569
573
|
"error.invalidKeepalive": "Unknown keep-alive manager.",
|
|
570
574
|
"error.unknownField": "Unknown setting.",
|
|
571
575
|
"error.remoteUrlRequired": "Relay URL is required for self-hosted relay mode.",
|
|
576
|
+
"error.removedHerdrArg": "Herdr 0.9.0 removed --no-session; remove it from the extra arguments.",
|
|
572
577
|
"error.saveFailed": "Could not save configuration: {message}",
|
|
573
578
|
"hint.navigate": "\u2191\u2193 move",
|
|
574
579
|
"hint.select": "\u21B5 select",
|
|
@@ -793,6 +798,7 @@ var require_zh = __commonJS({
|
|
|
793
798
|
"error.invalidKeepalive": "\u672A\u77E5\u7684\u4FDD\u6D3B\u7BA1\u7406\u65B9\u5F0F\u3002",
|
|
794
799
|
"error.unknownField": "\u672A\u77E5\u7684\u8BBE\u7F6E\u9879\u3002",
|
|
795
800
|
"error.remoteUrlRequired": "\u81EA\u5EFA Relay \u6A21\u5F0F\u987B\u586B\u5199 Relay \u5730\u5740\u3002",
|
|
801
|
+
"error.removedHerdrArg": "Herdr 0.9.0 \u5DF2\u79FB\u9664 --no-session\uFF0C\u8BF7\u4ECE\u9644\u52A0\u53C2\u6570\u4E2D\u79FB\u9664\u3002",
|
|
796
802
|
"error.saveFailed": "\u4FDD\u5B58\u914D\u7F6E\u5931\u8D25\uFF1A{message}",
|
|
797
803
|
"hint.navigate": "\u2191\u2193 \u79FB\u52A8",
|
|
798
804
|
"hint.select": "\u21B5 \u9009\u62E9",
|
|
@@ -1126,7 +1132,11 @@ var require_settings_model = __commonJS({
|
|
|
1126
1132
|
break;
|
|
1127
1133
|
}
|
|
1128
1134
|
case "herdrArgs": {
|
|
1129
|
-
|
|
1135
|
+
const args = value ? value.split(/\s+/).filter(Boolean) : [];
|
|
1136
|
+
if (args.includes("--no-session")) {
|
|
1137
|
+
return { draft, errorKey: "error.removedHerdrArg" };
|
|
1138
|
+
}
|
|
1139
|
+
next.herdr.args = args;
|
|
1130
1140
|
break;
|
|
1131
1141
|
}
|
|
1132
1142
|
case "language": {
|
|
@@ -3879,7 +3889,7 @@ function About({ ctx }) {
|
|
|
3879
3889
|
children: updateLabel
|
|
3880
3890
|
}
|
|
3881
3891
|
) }),
|
|
3882
|
-
/* @__PURE__ */ jsx10(Row, { label: t("about.version"), children: /* @__PURE__ */ jsx10(Text9, { color: theme.muted, children: "0.2.
|
|
3892
|
+
/* @__PURE__ */ jsx10(Row, { label: t("about.version"), children: /* @__PURE__ */ jsx10(Text9, { color: theme.muted, children: "0.2.6" }) }),
|
|
3883
3893
|
/* @__PURE__ */ jsx10(Row, { label: t("about.configPath"), children: /* @__PURE__ */ jsx10(Text9, { color: theme.muted, children: (0, import_config.configPath)() }) }),
|
|
3884
3894
|
/* @__PURE__ */ jsx10(Row, { label: t("about.statePath"), children: /* @__PURE__ */ jsx10(Text9, { color: theme.muted, children: (0, import_config.stateDir)() }) }),
|
|
3885
3895
|
/* @__PURE__ */ jsx10(Box9, { marginTop: 1, children: /* @__PURE__ */ jsx10(Text9, { color: theme.muted, children: t("about.docs") }) }),
|
package/herdr-plugin.toml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
id = "herdr.remote.web"
|
|
2
2
|
name = "Herdr Remote Web"
|
|
3
|
-
version = "0.2.
|
|
4
|
-
min_herdr_version = "0.
|
|
3
|
+
version = "0.2.6"
|
|
4
|
+
min_herdr_version = "0.9.0"
|
|
5
5
|
description = "Browser access to Herdr workspaces via local or self-hosted relay"
|
|
6
6
|
platforms = ["linux", "macos"]
|
|
7
7
|
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -273,6 +273,12 @@ function validate(config) {
|
|
|
273
273
|
if (!Array.isArray(config.herdr.args) || !config.herdr.args.every((arg) => typeof arg === 'string')) {
|
|
274
274
|
config.herdr.args = [];
|
|
275
275
|
}
|
|
276
|
+
// Herdr 0.9.0 removed --no-session; retaining it in saved configs causes
|
|
277
|
+
// session creation to fail. Filter it out if present.
|
|
278
|
+
if (config.herdr.args.includes('--no-session')) {
|
|
279
|
+
config.herdr.args = config.herdr.args.filter((arg) => arg !== '--no-session');
|
|
280
|
+
process.stderr.write('herdr-remote: ignoring removed --no-session argument (removed in Herdr 0.9.0)\n');
|
|
281
|
+
}
|
|
276
282
|
if (typeof config.herdr.socketPath !== 'string' || config.herdr.socketPath.length === 0) {
|
|
277
283
|
config.herdr.socketPath = null;
|
|
278
284
|
}
|
package/src/i18n/en.js
CHANGED
|
@@ -206,6 +206,7 @@ module.exports = {
|
|
|
206
206
|
'error.invalidKeepalive': 'Unknown keep-alive manager.',
|
|
207
207
|
'error.unknownField': 'Unknown setting.',
|
|
208
208
|
'error.remoteUrlRequired': 'Relay URL is required for self-hosted relay mode.',
|
|
209
|
+
'error.removedHerdrArg': 'Herdr 0.9.0 removed --no-session; remove it from the extra arguments.',
|
|
209
210
|
'error.saveFailed': 'Could not save configuration: {message}',
|
|
210
211
|
|
|
211
212
|
'hint.navigate': '↑↓ move',
|
package/src/i18n/zh.js
CHANGED
|
@@ -205,6 +205,7 @@ module.exports = {
|
|
|
205
205
|
'error.invalidKeepalive': '未知的保活管理方式。',
|
|
206
206
|
'error.unknownField': '未知的设置项。',
|
|
207
207
|
'error.remoteUrlRequired': '自建 Relay 模式须填写 Relay 地址。',
|
|
208
|
+
'error.removedHerdrArg': 'Herdr 0.9.0 已移除 --no-session,请从附加参数中移除。',
|
|
208
209
|
'error.saveFailed': '保存配置失败:{message}',
|
|
209
210
|
|
|
210
211
|
'hint.navigate': '↑↓ 移动',
|
package/src/settings-model.js
CHANGED
|
@@ -204,7 +204,11 @@ function setField(draft, id, rawValue) {
|
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
206
206
|
case 'herdrArgs': {
|
|
207
|
-
|
|
207
|
+
const args = value ? value.split(/\s+/).filter(Boolean) : [];
|
|
208
|
+
if (args.includes('--no-session')) {
|
|
209
|
+
return { draft, errorKey: 'error.removedHerdrArg' };
|
|
210
|
+
}
|
|
211
|
+
next.herdr.args = args;
|
|
208
212
|
break;
|
|
209
213
|
}
|
|
210
214
|
case 'language': {
|