metame-cli 1.4.8 → 1.4.10
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 +2 -2
- package/scripts/daemon.js +1 -1
- package/scripts/feishu-adapter.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metame-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "The Cognitive Profile Layer for Claude Code. Knows how you think, not just what you said.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=22.5"
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
package/scripts/daemon.js
CHANGED
|
@@ -4245,7 +4245,7 @@ async function askClaude(bot, chatId, prompt, config, readOnly = false) {
|
|
|
4245
4245
|
// Send a single status message, updated in-place, deleted on completion
|
|
4246
4246
|
let statusMsgId = null;
|
|
4247
4247
|
try {
|
|
4248
|
-
const msg = await bot.sendMessage(chatId, '🤔');
|
|
4248
|
+
const msg = await (bot.sendMarkdown ? bot.sendMarkdown(chatId, '🤔') : bot.sendMessage(chatId, '🤔'));
|
|
4249
4249
|
if (msg && msg.message_id) statusMsgId = msg.message_id;
|
|
4250
4250
|
} catch (e) {
|
|
4251
4251
|
log('ERROR', `Failed to send ack to ${chatId}: ${e.message}`);
|
|
@@ -100,9 +100,12 @@ function createBot(config) {
|
|
|
100
100
|
async editMessage(chatId, messageId, text) {
|
|
101
101
|
if (this._editBroken) return false;
|
|
102
102
|
try {
|
|
103
|
+
// Feishu patch API only works on card (interactive) messages
|
|
104
|
+
// Update card content with markdown element
|
|
105
|
+
const card = { schema: '2.0', body: { elements: [{ tag: 'markdown', content: text }] } };
|
|
103
106
|
await withTimeout(client.im.message.patch({
|
|
104
107
|
path: { message_id: messageId },
|
|
105
|
-
data: { content: JSON.stringify(
|
|
108
|
+
data: { content: JSON.stringify(card) },
|
|
106
109
|
}));
|
|
107
110
|
return true;
|
|
108
111
|
} catch (e) {
|