@vrs-soft/wecom-aibot-mcp 2.4.17 → 2.4.18

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.
Files changed (2) hide show
  1. package/dist/client.js +2 -2
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -252,7 +252,7 @@ class WecomClient extends EventEmitter {
252
252
  : eventKey === 'allow-always' ? '✅ 已允许(永久)'
253
253
  : '❌ 已拒绝';
254
254
  const toolInfo = approval.toolName ? `: ${approval.toolName}` : '';
255
- const desc = approval.description || '';
255
+ const desc = (approval.description || '').replace(/^执行命令:\s*/i, '');
256
256
  const descSnippet = desc ? `\n执行命令: ${desc.slice(0, 100)}${desc.length > 100 ? '…' : ''}` : '';
257
257
  const content = `**审批结果**${toolInfo}\n\n${resultText}${descSnippet}`;
258
258
  this.sendText(content).catch(err => {
@@ -462,7 +462,7 @@ class WecomClient extends EventEmitter {
462
462
  const resultText = result === 'deny' ? '❌ 已拒绝' : '✅ 已允许';
463
463
  const reasonText = reason ? `\n\n原因:${reason}` : '';
464
464
  const toolInfo = approval.toolName ? `: ${approval.toolName}` : '';
465
- const desc = approval.description || '';
465
+ const desc = (approval.description || '').replace(/^执行命令:\s*/i, '');
466
466
  const descBlock = desc ? `\n\n**执行命令**\n\`\`\`\n${desc}\n\`\`\`` : '';
467
467
  this.sendText(`**审批结果(超时自动决策)**${toolInfo}\n\n${resultText}${reasonText}${descBlock}`).catch(err => {
468
468
  logger.error('[wecom] 发送审批确认失败:', err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrs-soft/wecom-aibot-mcp",
3
- "version": "2.4.17",
3
+ "version": "2.4.18",
4
4
  "description": "企业微信智能机器人 MCP 服务 - Claude Code 审批通道",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",