@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.
- package/package.json +1 -1
- package/src/gateway.ts +25 -20
package/package.json
CHANGED
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(
|
|
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
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
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() {
|