metame-cli 1.4.5 → 1.4.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/package.json +1 -1
- package/scripts/daemon.js +1 -1
package/package.json
CHANGED
package/scripts/daemon.js
CHANGED
|
@@ -4613,7 +4613,7 @@ async function startFeishuBridge(config, executeTaskByName) {
|
|
|
4613
4613
|
const isBindCmd = trimmedText && (trimmedText.startsWith('/bind') || trimmedText.startsWith('/agent bind') || trimmedText.startsWith('/agent new'));
|
|
4614
4614
|
if (!allowedIds.includes(chatId) && !isBindCmd) {
|
|
4615
4615
|
log('WARN', `Feishu: rejected message from ${chatId}`);
|
|
4616
|
-
bot.sendMessage(chatId, `⚠️ 此会话 (ID: ${chatId}) 未授权。\n\n发送以下命令注册:\n/bind personal ~/\n\n这会将此会话绑定到你的主目录。`).catch(() => {});
|
|
4616
|
+
(bot.sendMarkdown ? bot.sendMarkdown(chatId, `⚠️ **此会话未授权**\n\n会话 ID: \`${chatId}\`\n\n发送以下命令注册:\n\`/bind personal ~/\`\n\n这会将此会话绑定到你的主目录。`) : bot.sendMessage(chatId, `⚠️ 此会话 (ID: ${chatId}) 未授权。\n\n发送以下命令注册:\n/bind personal ~/\n\n这会将此会话绑定到你的主目录。`)).catch(() => {});
|
|
4617
4617
|
return;
|
|
4618
4618
|
}
|
|
4619
4619
|
|