@seamnet/client 0.3.6 → 0.3.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/mcp-server.cjs +2 -2
- package/lib/plugins/im.cjs +2 -2
- package/package.json +1 -1
package/lib/mcp-server.cjs
CHANGED
|
@@ -51,7 +51,7 @@ const rl = readline.createInterface({ input: process.stdin });
|
|
|
51
51
|
const tools = [
|
|
52
52
|
{
|
|
53
53
|
name: 'msg_send_im',
|
|
54
|
-
description: '
|
|
54
|
+
description: '发送 Seam 私聊消息。当终端出现 💬 [Seam] 开头的消息时,用此工具回复。终端里直接跟你对话的人不走 Seam,直接回复即可。',
|
|
55
55
|
inputSchema: {
|
|
56
56
|
type: 'object',
|
|
57
57
|
properties: {
|
|
@@ -63,7 +63,7 @@ const tools = [
|
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
name: 'msg_send_group',
|
|
66
|
-
description: '
|
|
66
|
+
description: '发送 Seam 群消息。当终端出现 💬 [Seam群] 开头的消息时,用此工具回复。',
|
|
67
67
|
inputSchema: {
|
|
68
68
|
type: 'object',
|
|
69
69
|
properties: {
|
package/lib/plugins/im.cjs
CHANGED
|
@@ -108,8 +108,8 @@ function createImPlugin({ credentials, socketPath, seamDir, ccSession }) {
|
|
|
108
108
|
if (!text) continue;
|
|
109
109
|
|
|
110
110
|
const isGroup = msg.conversationType === TencentCloudChat.TYPES.CONV_GROUP;
|
|
111
|
-
const prefix = isGroup ? '💬
|
|
112
|
-
const line = `${prefix}
|
|
111
|
+
const prefix = isGroup ? '💬 [Seam群]' : '💬 [Seam]';
|
|
112
|
+
const line = `${prefix} ${msg.from}: ${text}`;
|
|
113
113
|
|
|
114
114
|
console.log(`[im-plugin] ${line}`);
|
|
115
115
|
injectToTerminal(line);
|