@delt/claude-alarm 0.6.8 → 0.6.9
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/dist/cli.js +5 -2
- package/dist/cli.js.map +1 -1
- package/dist/dashboard/index.html +23 -1
- package/dist/hub/server.js +5 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/dashboard/index.html +23 -1
package/dist/cli.js
CHANGED
|
@@ -558,9 +558,12 @@ ${p.message}`;
|
|
|
558
558
|
const previewSlice = preview.slice(0, 800);
|
|
559
559
|
const isShort = !previewSlice.includes("\n") && previewSlice.length < 100;
|
|
560
560
|
const previewHtml = isShort ? `<code>${this.escHtml(previewSlice)}</code>` : this.escHtml(previewSlice);
|
|
561
|
+
let displayTool = toolName;
|
|
562
|
+
const mcpMatch = toolName.match(/__([^_]+)$/);
|
|
563
|
+
if (mcpMatch) displayTool = mcpMatch[1].charAt(0).toUpperCase() + mcpMatch[1].slice(1);
|
|
561
564
|
const text = `\u26A0\uFE0F <b>Permission Request</b> \u2014 ${this.escHtml(sessionLabel)}
|
|
562
565
|
|
|
563
|
-
\u{1F527} <
|
|
566
|
+
\u{1F527} <b>${this.escHtml(displayTool)}</b>
|
|
564
567
|
${previewHtml}${truncNote}`;
|
|
565
568
|
const replyMarkup = {
|
|
566
569
|
inline_keyboard: [[
|
|
@@ -582,7 +585,7 @@ ${previewHtml}${truncNote}`;
|
|
|
582
585
|
await this.answerCallbackQuery(query.id, behavior === "allow" ? "\u2705 Allowed" : "\u274C Denied");
|
|
583
586
|
if (query.message) {
|
|
584
587
|
const label = behavior === "allow" ? "\u2705 <b>Allowed</b>" : "\u274C <b>Denied</b>";
|
|
585
|
-
const original = query.message.text || "";
|
|
588
|
+
const original = this.escHtml(query.message.text || "");
|
|
586
589
|
await this.editMessageText(query.message.chat.id, query.message.message_id, original + `
|
|
587
590
|
|
|
588
591
|
${label}`);
|