@meet-im/meet 2.0.5 → 2.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meet-im/meet",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "type": "module",
5
5
  "description": "OpenClaw Meet channel plugin",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "test:coverage": "vitest run --coverage",
13
13
  "ci:check": "npx tsc --noEmit && npm run test:coverage",
14
14
  "pack": "pnpm pack && node scripts/pack.js",
15
- "publish": "npm publish --registry https://registry.npmjs.org --access public"
15
+ "release": "npm publish --registry https://registry.npmjs.org --access public"
16
16
  },
17
17
  "license": "MIT",
18
18
  "files": [
@@ -1,23 +1,21 @@
1
1
  ---
2
2
  name: meet-emojis
3
- description: "Meet 微信风格表情。激活当在 Meet 渠道回复消息时,主动使用 [名称] 格式添加表情,如 [微笑]、[OK]、[666]。让回复更生动友好。支持中英文表情名称,如找不到匹配表情可使用 Unicode emoji。"
3
+ description: "Meet 微信风格表情格式。使用 [名称] 格式,如 [微笑]、[OK]、[666]。支持中英文,也可用 Unicode emoji。"
4
4
  metadata: { "openclaw": { "emoji": "😊", "requires": { "config": ["channels.meet"] } } }
5
5
  allowed-tools: ["message"]
6
6
  ---
7
7
 
8
- # Meet Emojis
8
+ # Meet 表情使用指南
9
9
 
10
- Meet IM 消息中使用微信风格的表情符号,让回复更生动友好。## 主动使用
11
- **在 Meet 渠道回复消息时,应主动使用表情来增强表达效果。** 表情可以让语气更友好、情感更明确。
10
+ Meet IM 使用微信风格表情,可在消息中自然添加表情来增强表达。
12
11
 
13
- ## 基本格式
12
+ ## 格式要求
14
13
 
15
- 使用 `[名称]` 格式插入表情:
14
+ **使用 `[名称]` 格式**,方括号不能省略:
16
15
 
17
16
  ```
18
- 好的,我来处理[微笑]
19
- 没问题[OK]
20
- 太棒了[666]
17
+ 正确:好的,我来处理[微笑]
18
+ 错误:好的,我来处理微笑 ← 缺少方括号
21
19
  ```
22
20
 
23
21
  ## 常用表情
@@ -65,13 +63,13 @@ allowed-tools: ["message"]
65
63
  好的,有问题随时联系[再见]
66
64
  ```
67
65
 
68
- ## 注意事项
66
+ ## 使用提示
69
67
 
70
- 1. **优先使用技能表情**:优先使用本文档中的 `[名称]` 格式表情;如果找不到匹配的表情,可以直接使用 Unicode emoji(如 😊👍❤️)
71
- 2. **格式要求**:必须是 `[名称]` 格式,方括号不能省略
72
- 3. **名称匹配**:使用简体中文名称或英文名称均可
73
- 4. **大小写**:英文名称区分大小写,如 `[OK]` 而非 `[ok]`
74
- 5. **适度使用**:每条消息建议不超过 2-3 个表情
68
+ 1. **格式**:`[名称]` 格式,方括号不可缺少
69
+ 2. **名称**:简体中文或英文均可,如 `[微笑]` 或 `[Smile]`
70
+ 3. **大小写**:英文首字母大写,如 `[OK]` 而非 `[ok]`
71
+ 4. **后备**:找不到匹配的表情可用 Unicode emoji(😊👍❤️)
72
+ 5. **自然使用**:在合适的场景自然添加,无需每条消息都加
75
73
 
76
74
  ## 完整表情列表
77
75
 
package/src/send.ts CHANGED
@@ -182,9 +182,19 @@ export async function sendMessageMeet(
182
182
  }
183
183
  // 检查 token 是否未解析(仍是 secret ref 格式)
184
184
  if (token.startsWith("${secret:")) {
185
+ const accountArg = accountId ? ` --account ${accountId}` : "";
185
186
  throw new Error(
186
- `Meet API token not resolved (still a secret reference). ` +
187
- `Ensure Gateway is running or token is configured directly. ` +
187
+ `Meet API token not resolved (still a secret reference).\n` +
188
+ `\n` +
189
+ `This usually means:\n` +
190
+ `1. Gateway is not running in this workspace, or\n` +
191
+ `2. Token is already in use by another process (Meet only allows single login)\n` +
192
+ `\n` +
193
+ `Solutions:\n` +
194
+ `- If Gateway is running elsewhere: use \`message\` tool (OpenClaw will route through Gateway)\n` +
195
+ `- If you need to send files: put them in a shared location and ask someone with Gateway access to send\n` +
196
+ `- To start Gateway: openclaw gateway start${accountArg}\n` +
197
+ `\n` +
188
198
  `AccountId: ${account.accountId}`
189
199
  );
190
200
  }
@@ -243,9 +253,19 @@ export async function sendMediaMeet(
243
253
  }
244
254
  // 检查 token 是否未解析(仍是 secret ref 格式)
245
255
  if (token.startsWith("${secret:")) {
256
+ const accountArg = accountId ? ` --account ${accountId}` : "";
246
257
  throw new Error(
247
- `Meet API token not resolved (still a secret reference). ` +
248
- `Ensure Gateway is running or token is configured directly. ` +
258
+ `Meet API token not resolved (still a secret reference).\n` +
259
+ `\n` +
260
+ `This usually means:\n` +
261
+ `1. Gateway is not running in this workspace, or\n` +
262
+ `2. Token is already in use by another process (Meet only allows single login)\n` +
263
+ `\n` +
264
+ `Solutions:\n` +
265
+ `- If Gateway is running elsewhere: use \`message\` tool (OpenClaw will route through Gateway)\n` +
266
+ `- If you need to send files: put them in a shared location and ask someone with Gateway access to send\n` +
267
+ `- To start Gateway: openclaw gateway start${accountArg}\n` +
268
+ `\n` +
249
269
  `AccountId: ${account.accountId}`
250
270
  );
251
271
  }