openclaw-glance-plugin 0.1.21 → 0.1.22

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": "openclaw-glance-plugin",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "OpenClaw plugin client for ticker-monitor openclaw-bridge",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -29,10 +29,15 @@
29
29
  channel,sender_id,sender_name,phone,email,dingtalk_cas_id,customer_name,updated_at,notes
30
30
  ```
31
31
 
32
- 取值优先级:
33
- 1. 本轮用户明确提供
34
- 2. CSV 历史默认值
35
- 3. 仍缺必填字段 -> 追问
32
+ 执行要求:
33
+ 1. 凡是 `watch.create` 或 `notify.*` 涉及 `call/sms/email/dingtalk`,调用前必须先查询该 CSV。
34
+ 2. 取值优先级固定为:
35
+ - 本轮用户明确提供
36
+ - CSV 历史默认值
37
+ - 仍缺必填字段 -> 追问
38
+ 3. 若用户在本轮提供了新的联系方式,且本次 `watch.create` / `notify.*` 成功,必须回写 CSV。
39
+ 4. 联系人记忆只认该 CSV;不依赖、不读取、不提及 `watch-notify-contacts.json`。
40
+ 5. 若 CSV 不存在,先创建带表头的文件,再写入首条联系人记录。
36
41
 
37
42
  查询示例:
38
43
 
@@ -40,6 +45,11 @@ channel,sender_id,sender_name,phone,email,dingtalk_cas_id,customer_name,updated_
40
45
  rg -n '^dingtalk,jinguo\.xie,' ~/.openclaw/workspace/memory/watch-notify-contacts.csv
41
46
  ```
42
47
 
48
+ 写回要求:
49
+ - 已有同一 `(channel, sender_id)` 记录时,更新该行,不重复追加。
50
+ - 不存在时,按表头字段顺序追加新行。
51
+ - `updated_at` 使用当前会话时区时间的 ISO-8601 字符串。
52
+
43
53
  ## `watch.create` 渠道必填
44
54
 
45
55
  - 选 `email` -> `channel_configs.email.to_address/template_id/title/content`