@inceptionstack/roundhouse 0.3.25 → 0.3.26

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/package.json +1 -1
  2. package/src/gateway.ts +25 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inceptionstack/roundhouse",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "type": "module",
5
5
  "description": "Multi-platform chat gateway that routes messages through a configured AI agent",
6
6
  "license": "MIT",
package/src/gateway.ts CHANGED
@@ -450,7 +450,7 @@ export class Gateway {
450
450
  const agent = this.router.resolve(agentThreadId);
451
451
  if (agent.restart) {
452
452
  await agent.restart(agentThreadId);
453
- await thread.post("🔄 Session restarted. Send a message to begin a new conversation.");
453
+ await thread.post(`🔄 Session restarted (\`${agentThreadId}\`). Send a message to begin a new conversation.`);
454
454
  } else {
455
455
  await thread.post("⚠️ New session not supported for this agent.");
456
456
  }
@@ -548,6 +548,7 @@ export class Gateway {
548
548
  const lines = [
549
549
  `📊 *Roundhouse Status*`,
550
550
  ``,
551
+ `🎫 Session: \`${agentThreadId}\``,
551
552
  `📦 Roundhouse: v${ROUNDHOUSE_VERSION}`,
552
553
  `🤖 Agent: ${agentLabel}`,
553
554
  ];
@@ -1187,25 +1188,29 @@ export class Gateway {
1187
1188
  cronInfo = `Cron jobs: ${cs.enabledCount}/${cs.jobCount} enabled`;
1188
1189
  }
1189
1190
 
1190
- const text = [
1191
- `\u2705 Roundhouse is online`,
1192
- ``,
1193
- `Host: ${host}`,
1194
- `Platforms: ${platforms}`,
1195
- `Agent: ${agentName}${agentInfo}`,
1196
- `Roundhouse: v${ROUNDHOUSE_VERSION}`,
1197
- `Node: ${nodeVer}`,
1198
- `Started: ${now}`,
1199
- `Boot time: ${bootTime.toFixed(1)}s`,
1200
- cronInfo,
1201
- ``,
1202
- `System:`,
1203
- ` CPU: ${sys.cpuPct}% (load ${sys.load1.toFixed(2)}, ${sys.cpuCount} cores)`,
1204
- ` RAM: ${sys.usedGB}/${sys.totalGB} GB (${sys.memPct}%)`,
1205
- ` Process: ${memMB} MB RSS`,
1206
- ].filter(line => line != null).join("\n");
1207
-
1208
- await sendTelegramToMany(chatIds, text);
1191
+ for (const chatId of chatIds) {
1192
+ const sessionId = Number(chatId) < 0 ? `group:${chatId}` : "main";
1193
+ const perChatText = [
1194
+ `\u2705 Roundhouse is online`,
1195
+ ``,
1196
+ `Session: ${sessionId}`,
1197
+ `Host: ${host}`,
1198
+ `Platforms: ${platforms}`,
1199
+ `Agent: ${agentName}${agentInfo}`,
1200
+ `Roundhouse: v${ROUNDHOUSE_VERSION}`,
1201
+ `Node: ${nodeVer}`,
1202
+ `Started: ${now}`,
1203
+ `Boot time: ${bootTime.toFixed(1)}s`,
1204
+ cronInfo,
1205
+ ``,
1206
+ `System:`,
1207
+ ` CPU: ${sys.cpuPct}% (load ${sys.load1.toFixed(2)}, ${sys.cpuCount} cores)`,
1208
+ ` RAM: ${sys.usedGB}/${sys.totalGB} GB (${sys.memPct}%)`,
1209
+ ` Process: ${memMB} MB RSS`,
1210
+ ].filter(line => line != null).join("\n");
1211
+
1212
+ await sendTelegramToMany([chatId], perChatText);
1213
+ }
1209
1214
  }
1210
1215
 
1211
1216
  async stop() {