clay-server 2.14.0-beta.5 → 2.14.0-beta.7
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/lib/public/app.js +8 -0
- package/package.json +1 -1
package/lib/public/app.js
CHANGED
|
@@ -871,6 +871,11 @@ import { initCommandPalette, handlePaletteSessionSwitch, setPaletteVersion } fro
|
|
|
871
871
|
savedMainWs = null;
|
|
872
872
|
}
|
|
873
873
|
mateWs = null;
|
|
874
|
+
// If main ws is also closed (server shutdown), show disconnect screen
|
|
875
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) {
|
|
876
|
+
setStatus("disconnected");
|
|
877
|
+
scheduleReconnect();
|
|
878
|
+
}
|
|
874
879
|
};
|
|
875
880
|
}
|
|
876
881
|
|
|
@@ -2546,6 +2551,9 @@ import { initCommandPalette, handlePaletteSessionSwitch, setPaletteVersion } fro
|
|
|
2546
2551
|
var win = contextData.contextWindow;
|
|
2547
2552
|
return win > 0 ? Math.round((used / win) * 100) : 0;
|
|
2548
2553
|
},
|
|
2554
|
+
isMateDm: function () { return dmMode && dmTargetUser && dmTargetUser.isMate; },
|
|
2555
|
+
getMateName: function () { return dmTargetUser ? (dmTargetUser.displayName || "Mate") : "Mate"; },
|
|
2556
|
+
getMateAvatarUrl: function () { return document.body.dataset.mateAvatarUrl || ""; },
|
|
2549
2557
|
});
|
|
2550
2558
|
|
|
2551
2559
|
// isPlanFile, toolSummary, toolActivityText, shortPath -> modules/tools.js
|