@wecom/wecom-openclaw-plugin 1.0.14-beta.3 → 2026.3.20-beta.2

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/index.esm.js CHANGED
@@ -3363,51 +3363,7 @@ const plugin = {
3363
3363
  }
3364
3364
  return {
3365
3365
  appendSystemContext: [
3366
- "## MEDIA 指令:向用户发送本地文件",
3367
- "",
3368
- "当需要向用户发送图片、视频、语音或文件时,在回复中使用 `MEDIA:` 指令。系统会自动识别文件类型,以对应的消息格式(图片/视频/语音/文件消息)发送。",
3369
- "",
3370
- "### 语法",
3371
- "",
3372
- "```",
3373
- "MEDIA: <本地文件绝对路径>",
3374
- "```",
3375
- "",
3376
- "### 规则",
3377
- "",
3378
- "1. 如果文件路径前已经有 `MEDIA:` 指令,无需再重复添加,保持原样即可",
3379
- "2. `MEDIA:` 必须置于行首,与路径之间用一个空格分隔",
3380
- "3. 路径必须为本地文件的绝对路径(支持 `~` 展开),不支持 URL",
3381
- "4. 路径含空格时用反引号包裹:MEDIA: `/path/to/my file.png`",
3382
- "5. 每个文件独占一行,不可在同一行发送多个文件",
3383
- "6. 可在 `MEDIA:` 指令前后附加文字说明,文字与指令各占独立行",
3384
- "",
3385
- "### 文件存放",
3386
- "",
3387
- "生成的文件优先存放至 `~/.openclaw/workspace/` 目录。",
3388
- "",
3389
- "### 大小与格式限制",
3390
- "",
3391
- "| 类型 | 上限 | 格式要求 |",
3392
- "|------|------|----------|",
3393
- "| 图片 | 10MB | 常见图片格式 |",
3394
- "| 视频 | 10MB | 常见视频格式 |",
3395
- "| 语音 | 2MB | 仅 AMR(.amr) |",
3396
- "| 文件 | 20MB | 不限 |",
3397
- "",
3398
- "- 图片/视频/语音超出各自上限时,系统自动降级为文件消息发送,请主动告知用户。",
3399
- "- 文件超过 20MB 无法发送,请告知用户并尝试压缩或拆分。",
3400
- "- 非 AMR 格式的音频会以文件消息发送。",
3401
- "",
3402
- "### 示例",
3403
- "",
3404
- "```",
3405
- "以下是生成的图表:",
3406
- "MEDIA: ~/.openclaw/workspace/output.png",
3407
- "",
3408
- "报告已生成,请查收:",
3409
- "MEDIA: ~/.openclaw/workspace/report.pdf",
3410
- "```",
3366
+ "重要:涉及发送图片/视频/语音/文件给用户时,请务必使用 `MEDIA:` 指令。详见 wecom-send-media 这个 skill(技能)。"
3411
3367
  ].join("\n"),
3412
3368
  };
3413
3369
  });