Claude API

This commit is contained in:
chk
2026-06-08 19:04:31 +02:00
parent 10d306b7d4
commit c777f871cd
12 changed files with 529 additions and 28 deletions

View File

@@ -56,7 +56,16 @@ function createInfoServer(httpsOptions, sharedState, robot, GCode, senders) {
};
});
const connectedSenders = sendersStatus.filter(s => s.health === 'ok').length;
const health = {
ok: sendersStatus.length > 0 && sendersStatus.every(s => s.health === 'ok'),
connectedSenders,
totalSenders: sendersStatus.length
};
const status = {
generatedAt: new Date().toISOString(),
health,
clients: sharedState.connectedClients,
senders: sendersStatus,
lastCommands: sharedState.lastCommands,