clay-server 2.14.0-beta.4 → 2.14.0-beta.6
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 +3 -0
- package/lib/public/modules/tools.js +7 -0
- package/package.json +1 -1
package/lib/public/app.js
CHANGED
|
@@ -2546,6 +2546,9 @@ import { initCommandPalette, handlePaletteSessionSwitch, setPaletteVersion } fro
|
|
|
2546
2546
|
var win = contextData.contextWindow;
|
|
2547
2547
|
return win > 0 ? Math.round((used / win) * 100) : 0;
|
|
2548
2548
|
},
|
|
2549
|
+
isMateDm: function () { return dmMode && dmTargetUser && dmTargetUser.isMate; },
|
|
2550
|
+
getMateName: function () { return dmTargetUser ? (dmTargetUser.displayName || "Mate") : "Mate"; },
|
|
2551
|
+
getMateAvatarUrl: function () { return document.body.dataset.mateAvatarUrl || ""; },
|
|
2549
2552
|
});
|
|
2550
2553
|
|
|
2551
2554
|
// isPlanFile, toolSummary, toolActivityText, shortPath -> modules/tools.js
|
|
@@ -1189,6 +1189,13 @@ export function startThinking() {
|
|
|
1189
1189
|
var el = thinkingGroup.el;
|
|
1190
1190
|
el.classList.remove("done");
|
|
1191
1191
|
el.querySelector(".thinking-content").textContent = "";
|
|
1192
|
+
// Mate mode: restore dots row, hide thinking header
|
|
1193
|
+
if (el.classList.contains("mate-thinking")) {
|
|
1194
|
+
var dotsRow = el.querySelector(".mate-thinking-row");
|
|
1195
|
+
if (dotsRow) dotsRow.style.display = "flex";
|
|
1196
|
+
var header = el.querySelector(".thinking-header");
|
|
1197
|
+
if (header) header.style.display = "none";
|
|
1198
|
+
}
|
|
1192
1199
|
currentThinking = { el: el, fullText: "", startTime: Date.now() };
|
|
1193
1200
|
refreshIcons();
|
|
1194
1201
|
ctx.scrollToBottom();
|