antenna-openclaw-plugin 0.7.2 → 0.8.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/index.ts CHANGED
@@ -227,7 +227,7 @@ export default function register(api: any) {
227
227
  properties: {
228
228
  lat: { type: "number", description: "Latitude (optional if location was shared via web)" },
229
229
  lng: { type: "number", description: "Longitude (optional if location was shared via web)" },
230
- radius_m: { type: "number", description: "Search radius in meters (default: 500)" },
230
+ radius_m: { type: "number", description: "Search radius in meters (default 500, max 1000)" },
231
231
  sender_id: { type: "string", description: "The sender's user ID (from message context)" },
232
232
  channel: { type: "string", description: "The channel name (telegram, whatsapp, etc.)" },
233
233
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-openclaw-plugin",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Antenna — agent-mediated nearby people discovery for OpenClaw",
5
5
  "openclaw": {
6
6
  "extensions": ["./index.ts"]
@@ -46,7 +46,7 @@ Plugin 安装后,agent 应该**主动**开始引导,不要等用户问"怎
46
46
  ### `antenna_scan`
47
47
  Scan for nearby people. Returns **raw profile cards** — no scores, no pre-matching. **You are the matching engine.**
48
48
  - `lat`, `lng`: coordinates (from `LocationLat`/`LocationLon` context, or geocoded from user input)
49
- - `radius_m`: search radius (default 500m)
49
+ - `radius_m`: search radius in meters (default 500, max 1000)
50
50
  - `sender_id`: the user's id from message context
51
51
  - `channel`: the channel name (telegram, whatsapp, discord, etc.)
52
52
 
@@ -137,6 +137,8 @@ Generate a GPS binding link. **You MUST call this immediately after saving a pro
137
137
 
138
138
  `antenna_scan` 返回的是附近所有人的名片,**没有打分、没有预匹配**。你需要:
139
139
 
140
+ **全球推荐 fallback:** 如果 scan 结果里有 `global: true`,说明附近没人,这些是全球推荐。告诉用户“附近暂时没人,但全球有这几个有意思的人”,然后正常推荐。用户仍然可以 accept。
141
+
140
142
  1. 读每个人的名片(emoji、name、line1/2/3)
141
143
  2. 结合你对用户的全部了解,判断谁值得推荐
142
144
  3. 为每个推荐的人写一句**个性化的理由**——不是"你们都提到了 X",而是真正有洞察的话