@nordbyte/nordrelay 0.3.1 → 0.4.0

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 (48) hide show
  1. package/.env.example +45 -2
  2. package/README.md +204 -30
  3. package/dist/agent-activity.js +300 -0
  4. package/dist/agent-adapter.js +17 -30
  5. package/dist/agent-factory.js +27 -0
  6. package/dist/agent.js +123 -9
  7. package/dist/artifacts.js +1 -1
  8. package/dist/audit-log.js +1 -1
  9. package/dist/bot-ui.js +1 -1
  10. package/dist/bot.js +328 -159
  11. package/dist/claude-code-auth.js +121 -0
  12. package/dist/claude-code-cli.js +19 -0
  13. package/dist/claude-code-launch.js +73 -0
  14. package/dist/claude-code-session.js +660 -0
  15. package/dist/claude-code-state.js +590 -0
  16. package/dist/codex-session.js +12 -1
  17. package/dist/config.js +113 -9
  18. package/dist/hermes-api.js +150 -0
  19. package/dist/hermes-auth.js +96 -0
  20. package/dist/hermes-cli.js +19 -0
  21. package/dist/hermes-launch.js +57 -0
  22. package/dist/hermes-session.js +477 -0
  23. package/dist/hermes-state.js +609 -0
  24. package/dist/index.js +51 -8
  25. package/dist/openclaw-auth.js +27 -0
  26. package/dist/openclaw-cli.js +19 -0
  27. package/dist/openclaw-gateway.js +285 -0
  28. package/dist/openclaw-launch.js +65 -0
  29. package/dist/openclaw-session.js +549 -0
  30. package/dist/openclaw-state.js +409 -0
  31. package/dist/operations.js +83 -2
  32. package/dist/pi-auth.js +59 -0
  33. package/dist/pi-launch.js +61 -0
  34. package/dist/pi-rpc.js +18 -0
  35. package/dist/pi-session.js +103 -15
  36. package/dist/pi-state.js +253 -0
  37. package/dist/relay-runtime.js +673 -51
  38. package/dist/session-format.js +28 -18
  39. package/dist/session-registry.js +40 -15
  40. package/dist/settings-service.js +35 -4
  41. package/dist/web-dashboard-ui.js +18 -0
  42. package/dist/web-dashboard.js +329 -47
  43. package/package.json +8 -3
  44. package/plugins/nordrelay/.codex-plugin/plugin.json +7 -4
  45. package/plugins/nordrelay/commands/remote.md +2 -2
  46. package/plugins/nordrelay/scripts/nordrelay.mjs +131 -3
  47. package/plugins/nordrelay/skills/telegram-remote/SKILL.md +2 -2
  48. package/CHANGELOG.md +0 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordbyte/nordrelay",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Remote control plane for coding agents across messaging channels.",
5
5
  "type": "module",
6
6
  "author": "Ricardo",
@@ -18,6 +18,10 @@
18
18
  "remote-control",
19
19
  "codex",
20
20
  "pi",
21
+ "hermes",
22
+ "openclaw",
23
+ "claude-code",
24
+ "claude",
21
25
  "telegram",
22
26
  "bot",
23
27
  "automation"
@@ -30,7 +34,6 @@
30
34
  "dist/",
31
35
  "plugins/",
32
36
  "launchd/",
33
- "CHANGELOG.md",
34
37
  ".env.example",
35
38
  "Dockerfile",
36
39
  "docker-compose.yml"
@@ -50,9 +53,11 @@
50
53
  "test": "vitest run"
51
54
  },
52
55
  "dependencies": {
56
+ "@anthropic-ai/claude-agent-sdk": "^0.2.140",
53
57
  "@grammyjs/auto-retry": "^2.0.2",
54
58
  "@openai/codex-sdk": "^0.130.0",
55
- "grammy": "^1.41.1"
59
+ "grammy": "^1.41.1",
60
+ "zod": "^4.4.3"
56
61
  },
57
62
  "devDependencies": {
58
63
  "@types/better-sqlite3": "^7.6.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nordrelay",
3
- "version": "0.3.0",
4
- "description": "Run a remote-control bridge for coding agents. The current adapter connects Codex sessions to Telegram with streaming replies, multi-session controls, attachments, voice input, model selection, thread browsing, and handback.",
3
+ "version": "0.3.1",
4
+ "description": "Run a remote-control bridge for coding agents. Current adapters connect Codex, Pi, Hermes, and OpenClaw sessions to Telegram with streaming replies, multi-session controls, attachments, voice input, model selection, thread browsing, and handback.",
5
5
  "author": {
6
6
  "name": "Ricardo",
7
7
  "url": "https://github.com/nordbyte"
@@ -14,6 +14,9 @@
14
14
  "messaging",
15
15
  "remote-control",
16
16
  "codex",
17
+ "pi",
18
+ "hermes",
19
+ "openclaw",
17
20
  "telegram",
18
21
  "bot",
19
22
  "app-server"
@@ -22,7 +25,7 @@
22
25
  "interface": {
23
26
  "displayName": "NordRelay",
24
27
  "shortDescription": "Remote-control bridge for coding agents",
25
- "longDescription": "Starts NordRelay, a messaging bridge for coding agents. The current runtime connects Codex and Pi sessions to Telegram: messages become agent turns, replies and tool activity stream back to Telegram, each chat or forum topic has its own session, and commands provide thread browsing, model and reasoning controls, launch profiles, attachments, voice transcription, artifacts, login, abort, retry, and CLI handback.",
28
+ "longDescription": "Starts NordRelay, a messaging bridge for coding agents. The current runtime connects Codex, Pi, Hermes, and OpenClaw sessions to Telegram: messages become agent turns, replies and tool activity stream back to Telegram, each chat or forum topic has its own session, and commands provide thread browsing, model and reasoning controls, launch profiles, attachments, voice transcription, artifacts, login, abort, retry, and CLI handback.",
26
29
  "developerName": "Ricardo",
27
30
  "category": "Productivity",
28
31
  "capabilities": [
@@ -38,7 +41,7 @@
38
41
  "Show NordRelay status",
39
42
  "Stop NordRelay",
40
43
  "Show Telegram session browser",
41
- "Select Codex model"
44
+ "Select agent model"
42
45
  ],
43
46
  "brandColor": "#229ED9",
44
47
  "composerIcon": "./assets/nordrelay.svg",
@@ -21,7 +21,7 @@ Codex plugin commands are namespaced by the plugin id in current plugin-aware co
21
21
  ## Workflow
22
22
 
23
23
  1. Locate the plugin root containing `.codex-plugin/plugin.json` with `"name": "nordrelay"`. In a source checkout this is usually `<repo>/plugins/nordrelay`.
24
- 2. Check whether `TELEGRAM_BOT_TOKEN` and either `TELEGRAM_ALLOWED_USER_IDS`, `TELEGRAM_ALLOWED_CHAT_IDS`, or `TELEGRAM_ALLOW_ANY_CHAT=1` are available from the environment or from `.env`.
24
+ 2. Check whether `TELEGRAM_BOT_TOKEN` and `TELEGRAM_ADMIN_USER_IDS` are available from the environment or from the NordRelay env file.
25
25
  3. Run the connector command from the plugin root:
26
26
 
27
27
  ```bash
@@ -29,5 +29,5 @@ node scripts/nordrelay.mjs ${ARGUMENTS:-start}
29
29
  ```
30
30
 
31
31
  4. If `${ARGUMENTS}` is empty, use `start`.
32
- 5. After `start` or `restart`, run `node scripts/nordrelay.mjs status` and report the PID, selected Codex thread id, and log file.
32
+ 5. After `start` or `restart`, run `node scripts/nordrelay.mjs status` and report the PID, selected thread id if visible, and log file.
33
33
  6. If startup fails because dependencies are missing, run `npm install` and `npm run build` in the repository root.
@@ -9,22 +9,36 @@ import readline from "node:readline/promises";
9
9
  import { spawn } from "node:child_process";
10
10
  import { fileURLToPath } from "node:url";
11
11
 
12
- const VERSION = "0.3.0";
12
+ const FALLBACK_VERSION = "0.3.1";
13
13
  const require = createRequire(import.meta.url);
14
14
  const APP_NAME = "nordrelay";
15
15
  const SCRIPT_PATH = fileURLToPath(import.meta.url);
16
16
  const PLUGIN_ROOT = path.resolve(path.dirname(SCRIPT_PATH), "..");
17
17
  const DEFAULT_MARKETPLACE_ROOT = path.resolve(PLUGIN_ROOT, "../..");
18
18
  const RUNTIME_ROOT = findRuntimeRoot();
19
+ const VERSION = readRuntimePackageVersion() || FALLBACK_VERSION;
19
20
  const DEFAULT_HOME = path.join(os.homedir(), ".nordrelay");
20
21
 
21
22
  function nowIso() {
22
23
  return new Date().toISOString();
23
24
  }
24
25
 
26
+ function readRuntimePackageVersion() {
27
+ try {
28
+ const pkg = JSON.parse(fs.readFileSync(path.join(RUNTIME_ROOT, "package.json"), "utf8"));
29
+ return typeof pkg.version === "string" && pkg.version.trim() ? pkg.version.trim() : null;
30
+ } catch {
31
+ return null;
32
+ }
33
+ }
34
+
25
35
  function parseArgs(argv) {
26
36
  const copy = [...argv];
27
37
  let command = "foreground";
38
+ if (copy[0] === "--version" || copy[0] === "-v") {
39
+ command = "version";
40
+ copy.shift();
41
+ }
28
42
  if (copy[0] && !copy[0].startsWith("-")) {
29
43
  command = copy.shift();
30
44
  }
@@ -50,6 +64,9 @@ function parseArgs(argv) {
50
64
  else if (arg === "--admin-id") options.telegramAdminUserIds = requireValue(copy, ++i, arg);
51
65
  else if (arg === "--state-backend") options.stateBackend = requireValue(copy, ++i, arg);
52
66
  else if (arg === "--enable-pi") options.enablePi = true;
67
+ else if (arg === "--enable-hermes") options.enableHermes = true;
68
+ else if (arg === "--enable-openclaw") options.enableOpenClaw = true;
69
+ else if (arg === "--enable-claude-code") options.enableClaudeCode = true;
53
70
  else if (arg === "--disable-codex") options.disableCodex = true;
54
71
  }
55
72
 
@@ -250,6 +267,7 @@ async function commandStop(options) {
250
267
  }
251
268
 
252
269
  async function commandStatus(options) {
270
+ loadEnvFiles(options.home);
253
271
  const pid = await readPid(options.pidFile);
254
272
  const state = await readJson(options.stateFile, {});
255
273
  const running = isProcessRunning(pid);
@@ -259,6 +277,11 @@ async function commandStatus(options) {
259
277
  console.log(`Mode: ${state.sessionMode || "per Telegram context"}`);
260
278
  console.log(`Auth: ${state.authenticated === undefined ? "-" : state.authenticated ? "yes" : "no"}`);
261
279
  console.log(`Codex CLI: ${state.codexCli || "-"}`);
280
+ console.log(`Pi CLI: ${state.piCli || "-"}`);
281
+ console.log(`Hermes CLI: ${state.hermesCli || "-"}`);
282
+ console.log(`OpenClaw CLI: ${state.openClawCli || "-"}`);
283
+ console.log(`Claude Code CLI: ${state.claudeCodeCli || "-"}`);
284
+ console.log(`OpenClaw Gateway: ${state.openClawGateway || process.env.OPENCLAW_GATEWAY_URL || "-"}`);
262
285
  console.log(`Log: ${options.logFile}`);
263
286
  if (state.error) console.log(`Error: ${state.error}`);
264
287
  }
@@ -284,11 +307,23 @@ async function commandInit(options) {
284
307
  await ask(rl, "Telegram admin user id", "");
285
308
  const enableCodex = options.disableCodex ? "false" : await askChoice(rl, "Enable Codex", "true");
286
309
  const enablePi = options.enablePi ? "true" : await askChoice(rl, "Enable Pi", "false");
310
+ const enableHermes = options.enableHermes ? "true" : await askChoice(rl, "Enable Hermes", "false");
311
+ const enableOpenClaw = options.enableOpenClaw ? "true" : await askChoice(rl, "Enable OpenClaw", "false");
312
+ const enableClaudeCode = options.enableClaudeCode ? "true" : await askChoice(rl, "Enable Claude Code", "false");
287
313
  const stateBackend = options.stateBackend || await askChoice(rl, "State backend (json/sqlite)", "json");
288
314
 
289
315
  if (!telegramBotToken) throw new Error("Telegram bot token is required.");
290
316
  if (!telegramAdminUserIds) throw new Error("Telegram admin user id is required.");
291
- if (enableCodex !== "true" && enablePi !== "true") throw new Error("At least one agent must be enabled.");
317
+ if (enableCodex !== "true" && enablePi !== "true" && enableHermes !== "true" && enableOpenClaw !== "true" && enableClaudeCode !== "true") throw new Error("At least one agent must be enabled.");
318
+ const defaultAgent = enableCodex === "true"
319
+ ? "codex"
320
+ : enablePi === "true"
321
+ ? "pi"
322
+ : enableHermes === "true"
323
+ ? "hermes"
324
+ : enableOpenClaw === "true"
325
+ ? "openclaw"
326
+ : "claude-code";
292
327
 
293
328
  const lines = [
294
329
  "# NordRelay local runtime config.",
@@ -298,7 +333,18 @@ async function commandInit(options) {
298
333
  "TELEGRAM_ALLOW_ANY_CHAT=false",
299
334
  `NORDRELAY_CODEX_ENABLED=${enableCodex}`,
300
335
  `NORDRELAY_PI_ENABLED=${enablePi}`,
301
- `NORDRELAY_DEFAULT_AGENT=${enableCodex === "true" ? "codex" : "pi"}`,
336
+ `NORDRELAY_HERMES_ENABLED=${enableHermes}`,
337
+ `NORDRELAY_OPENCLAW_ENABLED=${enableOpenClaw}`,
338
+ `NORDRELAY_CLAUDE_CODE_ENABLED=${enableClaudeCode}`,
339
+ `NORDRELAY_DEFAULT_AGENT=${defaultAgent}`,
340
+ "PI_DEFAULT_PROFILE=default",
341
+ "HERMES_API_BASE_URL=http://127.0.0.1:8642",
342
+ "HERMES_DEFAULT_PROFILE=default",
343
+ "OPENCLAW_GATEWAY_URL=ws://127.0.0.1:18789",
344
+ "OPENCLAW_AGENT_ID=main",
345
+ "OPENCLAW_DEFAULT_PROFILE=default",
346
+ "CLAUDE_CODE_DEFAULT_PROFILE=default",
347
+ "CLAUDE_CODE_MAX_TURNS=100",
302
348
  `NORDRELAY_STATE_BACKEND=${stateBackend === "sqlite" ? "sqlite" : "json"}`,
303
349
  "TELEGRAM_TRANSPORT=polling",
304
350
  "TELEGRAM_AUTO_SEND_ARTIFACTS=false",
@@ -324,8 +370,18 @@ async function commandDoctor(options) {
324
370
  checks.push(check("Private by default", process.env.TELEGRAM_ALLOW_ANY_CHAT !== "true", "TELEGRAM_ALLOW_ANY_CHAT is not true"));
325
371
  checks.push(check("Codex enabled flag", process.env.NORDRELAY_CODEX_ENABLED !== "false", `NORDRELAY_CODEX_ENABLED=${process.env.NORDRELAY_CODEX_ENABLED ?? "true"}`));
326
372
  checks.push(check("Pi enabled flag", process.env.NORDRELAY_PI_ENABLED === "true" || process.env.NORDRELAY_PI_ENABLED === undefined, `NORDRELAY_PI_ENABLED=${process.env.NORDRELAY_PI_ENABLED ?? "false"}`, process.env.NORDRELAY_PI_ENABLED === "true" ? "pass" : "warn"));
373
+ checks.push(check("Hermes enabled flag", process.env.NORDRELAY_HERMES_ENABLED === "true", `NORDRELAY_HERMES_ENABLED=${process.env.NORDRELAY_HERMES_ENABLED ?? "false"}`, process.env.NORDRELAY_HERMES_ENABLED === "true" ? "pass" : "warn"));
374
+ checks.push(check("OpenClaw enabled flag", process.env.NORDRELAY_OPENCLAW_ENABLED === "true", `NORDRELAY_OPENCLAW_ENABLED=${process.env.NORDRELAY_OPENCLAW_ENABLED ?? "false"}`, process.env.NORDRELAY_OPENCLAW_ENABLED === "true" ? "pass" : "warn"));
375
+ checks.push(check("Claude Code enabled flag", process.env.NORDRELAY_CLAUDE_CODE_ENABLED === "true", `NORDRELAY_CLAUDE_CODE_ENABLED=${process.env.NORDRELAY_CLAUDE_CODE_ENABLED ?? "false"}`, process.env.NORDRELAY_CLAUDE_CODE_ENABLED === "true" ? "pass" : "warn"));
327
376
  checks.push(check("Codex CLI", Boolean(findExecutable(process.env.CODEX_CLI_PATH || "codex")), process.env.CODEX_CLI_PATH || findExecutable("codex") || "not found", process.env.NORDRELAY_CODEX_ENABLED === "false" ? "warn" : "fail"));
328
377
  checks.push(check("Pi CLI", Boolean(findExecutable(process.env.PI_CLI_PATH || "pi")), process.env.PI_CLI_PATH || findExecutable("pi") || "not found", process.env.NORDRELAY_PI_ENABLED === "true" ? "fail" : "warn"));
378
+ checks.push(check("Hermes CLI", Boolean(findExecutable(process.env.HERMES_CLI_PATH || "hermes")), process.env.HERMES_CLI_PATH || findExecutable("hermes") || "not found", process.env.NORDRELAY_HERMES_ENABLED === "true" ? "fail" : "warn"));
379
+ checks.push(check("OpenClaw CLI", Boolean(findExecutable(process.env.OPENCLAW_CLI_PATH || "openclaw")), process.env.OPENCLAW_CLI_PATH || findExecutable("openclaw") || "not found", process.env.NORDRELAY_OPENCLAW_ENABLED === "true" ? "fail" : "warn"));
380
+ checks.push(check("Claude Code CLI", Boolean(findExecutable(process.env.CLAUDE_CODE_CLI_PATH || "claude")), process.env.CLAUDE_CODE_CLI_PATH || findExecutable("claude") || "SDK bundled runtime", "warn"));
381
+ const hermesApiCheck = await checkHermesApiServer();
382
+ checks.push(check("Hermes API Server", hermesApiCheck.ok, hermesApiCheck.detail, process.env.NORDRELAY_HERMES_ENABLED === "true" ? "fail" : "warn"));
383
+ const openClawGatewayCheck = await checkOpenClawGateway();
384
+ checks.push(check("OpenClaw Gateway", openClawGatewayCheck.ok, openClawGatewayCheck.detail, process.env.NORDRELAY_OPENCLAW_ENABLED === "true" ? "fail" : "warn"));
329
385
  checks.push(check("ffmpeg", Boolean(findExecutable("ffmpeg")), findExecutable("ffmpeg") || "not found", "warn"));
330
386
  const stateBackendCheck = validateStateBackend();
331
387
  checks.push(check("State backend", stateBackendCheck.ok, stateBackendCheck.detail));
@@ -341,6 +397,78 @@ async function commandDoctor(options) {
341
397
  if (failed.length > 0) process.exitCode = 1;
342
398
  }
343
399
 
400
+ async function checkHermesApiServer() {
401
+ const baseUrl = (process.env.HERMES_API_BASE_URL || "http://127.0.0.1:8642").replace(/\/+$/, "");
402
+ const headers = process.env.HERMES_API_KEY ? { authorization: `Bearer ${process.env.HERMES_API_KEY}` } : {};
403
+ try {
404
+ const response = await fetch(`${baseUrl}/health`, { headers, signal: AbortSignal.timeout(2000) });
405
+ return {
406
+ ok: response.ok,
407
+ detail: response.ok ? `${baseUrl}/health ok` : `${baseUrl}/health HTTP ${response.status}`,
408
+ };
409
+ } catch (error) {
410
+ return {
411
+ ok: false,
412
+ detail: `${baseUrl}/health failed: ${error instanceof Error ? error.message : String(error)}`,
413
+ };
414
+ }
415
+ }
416
+
417
+ async function checkOpenClawGateway() {
418
+ const gatewayUrl = process.env.OPENCLAW_GATEWAY_URL || "ws://127.0.0.1:18789";
419
+ const WebSocketClass = globalThis.WebSocket;
420
+ if (!WebSocketClass) {
421
+ return { ok: false, detail: "Node.js WebSocket runtime is unavailable" };
422
+ }
423
+
424
+ return new Promise((resolve) => {
425
+ let settled = false;
426
+ const finish = (value) => {
427
+ if (settled) return;
428
+ settled = true;
429
+ clearTimeout(timeout);
430
+ try {
431
+ socket.close();
432
+ } catch {
433
+ // Ignore close errors during diagnostics.
434
+ }
435
+ resolve(value);
436
+ };
437
+ const timeout = setTimeout(() => {
438
+ finish({ ok: false, detail: `${gatewayUrl} timed out` });
439
+ }, 2000);
440
+ timeout.unref?.();
441
+
442
+ let socket;
443
+ try {
444
+ socket = new WebSocketClass(gatewayUrl);
445
+ } catch (error) {
446
+ clearTimeout(timeout);
447
+ resolve({ ok: false, detail: `${gatewayUrl} failed: ${error instanceof Error ? error.message : String(error)}` });
448
+ return;
449
+ }
450
+
451
+ socket.addEventListener("open", () => {
452
+ const auth = {};
453
+ if (process.env.OPENCLAW_GATEWAY_TOKEN) auth.token = process.env.OPENCLAW_GATEWAY_TOKEN;
454
+ if (process.env.OPENCLAW_GATEWAY_PASSWORD) auth.password = process.env.OPENCLAW_GATEWAY_PASSWORD;
455
+ const params = {
456
+ client: { name: "NordRelay doctor", deviceFamily: "nordrelay" },
457
+ role: "operator",
458
+ subscribe: ["health"],
459
+ };
460
+ if (Object.keys(auth).length > 0) params.auth = auth;
461
+ socket.send(JSON.stringify({ type: "connect", id: "doctor", params }));
462
+ }, { once: true });
463
+ socket.addEventListener("message", () => {
464
+ finish({ ok: true, detail: `${gatewayUrl} reachable` });
465
+ }, { once: true });
466
+ socket.addEventListener("error", () => {
467
+ finish({ ok: false, detail: `${gatewayUrl} failed` });
468
+ }, { once: true });
469
+ });
470
+ }
471
+
344
472
  async function commandWeb(options) {
345
473
  await mkdirp(options.home);
346
474
  loadEnvFiles(options.home);
@@ -5,7 +5,7 @@ description: Use when the user wants to start, inspect, stop, or troubleshoot th
5
5
 
6
6
  # Telegram Remote
7
7
 
8
- After the bot process is running, Telegram provides the actual controls (`/new`, `/sessions`, `/sync`, `/pinned`, `/pin`, `/unpin`, `/attach`, `/handback`, `/model`, `/reasoning`, `/fast`, `/launch_profiles`, `/retry`, `/queue`, `/cancel`, `/clearqueue`, `/artifacts`, `/abort`, `/stop`, `/tasks`, `/progress`, `/status`, `/health`, `/version`, `/logs`, `/diagnostics`, `/restart`, `/update`, voice, photos, documents, media groups, artifacts, login). The Codex-side command is only a process manager.
8
+ After the bot process is running, Telegram provides the actual controls (`/agent`, `/new`, `/sessions`, `/sync`, `/pinned`, `/pin`, `/unpin`, `/attach`, `/handback`, `/model`, `/reasoning`, `/fast`, `/launch_profiles`, `/retry`, `/queue`, `/cancel`, `/clearqueue`, `/artifacts`, `/abort`, `/stop`, `/tasks`, `/progress`, `/status`, `/health`, `/version`, `/logs`, `/diagnostics`, `/restart`, `/update`, voice, photos, documents, media groups, artifacts, login). The Codex-side command is only a process manager.
9
9
 
10
10
  Use the local connector script in the plugin root. In a source checkout, the plugin root is usually:
11
11
 
@@ -21,6 +21,6 @@ node scripts/nordrelay.mjs status
21
21
  node scripts/nordrelay.mjs stop
22
22
  ```
23
23
 
24
- The bridge needs `TELEGRAM_BOT_TOKEN` and either `TELEGRAM_ALLOWED_USER_IDS`, `TELEGRAM_ALLOWED_CHAT_IDS`, or `TELEGRAM_ALLOW_ANY_CHAT=1`.
24
+ The bridge needs `TELEGRAM_BOT_TOKEN` and `TELEGRAM_ADMIN_USER_IDS` by default. Optional non-admin operators can be added with `TELEGRAM_ALLOWED_USER_IDS` or trusted group/topic access can be added with `TELEGRAM_ALLOWED_CHAT_IDS`.
25
25
 
26
26
  Prefer `start` for normal use. Use `foreground` only when debugging connection problems, because it keeps the current command running. If the runtime is missing, run `npm install` and `npm run build` in the repository root.
package/CHANGELOG.md DELETED
@@ -1,26 +0,0 @@
1
- # Changelog
2
-
3
- ## v0.3.1 - 2026-05-12
4
-
5
- Commits since `v0.3.0`:
6
-
7
- - Move runtime home to .nordrelay.
8
- - Improve dashboard live status handling.
9
- - Separate dashboard contexts from Telegram sessions.
10
- - Expand dashboard controls and activity views.
11
-
12
- ## v0.3.0 - 2026-05-12
13
-
14
- Commits since `v0.2.1`:
15
-
16
- - Prepare v0.3.0 release with copyable WebUI thread IDs and aligned session controls.
17
- - Improve dashboard usability and uploads.
18
- - Expand WebUI dashboard.
19
- - Keep dashboard server running.
20
- - Expand NordRelay platform features.
21
- - Hide missing timestamp marker in logs.
22
- - Show CLI paths directly in version output.
23
- - Add version freshness checks.
24
- - Render log messages as normal text.
25
- - Improve version and log display.
26
- - Improve logs and self-update behavior.