antenna-openclaw-plugin 0.9.0 → 0.10.0

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": "antenna-openclaw-plugin",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Antenna — agent-mediated nearby people discovery for OpenClaw",
5
5
  "openclaw": {
6
6
  "extensions": ["./index.ts"]
@@ -43,9 +43,17 @@ onboarding 完成后,帮用户设置一个每小时自动检查匹配的 cron
43
43
 
44
44
  示例(Hermes):
45
45
  ```
46
- hermes cron add --every 1h --message "Check antenna matches: call antenna_check_matches. If there are new mutual matches or incoming accepts, tell the user. If nothing new, reply HEARTBEAT_OK."
46
+ hermes cron add --every 1h --message "Check antenna matches: call antenna_check_matches. If there are new mutual matches or incoming accepts, tell the user. Also call antenna_discover once per day to get a global recommendation. If nothing new, reply HEARTBEAT_OK."
47
47
  ```
48
48
 
49
+ **第五步:问用户要不要全球推荐**
50
+
51
+ cron 设完后,问用户一句:
52
+ > "要我每天帮你找一个全球最像你的人吗?"
53
+
54
+ 用户说要 → cron 每天调 `antenna_discover` 推送。
55
+ 用户说不要 → 只在 scan 没人时 fallback。
56
+
49
57
  ## When to use
50
58
 
51
59
  - **首次安装后**: 主动开始 onboarding(名片 → 位置)
@@ -101,6 +109,13 @@ Generate a GPS binding link. **You MUST call this immediately after saving a pro
101
109
  - Send this link to the user — they open it on their phone, allow GPS, and their location is automatically shared
102
110
  - **MANDATORY after profile save. Do not wait for user to ask.**
103
111
 
112
+ ### `antenna_discover`
113
+ Get today's global recommendation — the person most similar to you worldwide. 1 per day, no repeats.
114
+ - `sender_id`, `channel`: from context
115
+ - Returns 1 profile (embedding similarity match) that hasn't been recommended before
116
+ - If all users have been recommended, returns a message saying "wait for new people"
117
+ - Use this in the daily cron job, or when user asks "find someone interesting globally"
118
+
104
119
  ## Behavior guidelines
105
120
 
106
121
  ### First-time user — 聊天式引导(不要让用户填表)